@feedmepos/mf-hrm-portal 2.0.17-dev.2 → 2.0.17-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/{AuditLogList-DQOiwup5.js → AuditLogList-C6qAeY5g.js} +5 -5
- package/dist/{EmployeeList-oERrzrAd.js → EmployeeList-COtXtTqG.js} +16 -17
- package/dist/{Main-C8ja5xs6.js → Main--tejoyEP.js} +4 -4
- package/dist/{Main-2uJvk5L7.js → Main-BNXKItvX.js} +8 -7
- package/dist/{Main-5nIpv-Sp.js → Main-Dkr5lzbv.js} +9 -9
- package/dist/PermissionSetList-B_Sdvbu7.js +340 -0
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-B-hvBqE0.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BBsaxaXu.js} +575 -575
- package/dist/{RoleList-CDBP2W5v.js → RoleList-SZCgvYvC.js} +17 -18
- package/dist/TeamMemberList-Dk5HeFfQ.js +1008 -0
- package/dist/{TimesheetList-D1ByiuwP.js → TimesheetList-D-3k0Uad.js} +6 -6
- package/dist/{app-hS6MBhCw.js → app-BjXuSCis.js} +4 -4
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-DFcH-XYr.js → dayjs.min-z-vrgFCL.js} +1 -1
- package/dist/{employee-fBtBUEwZ.js → employee-DAqAMupR.js} +3 -3
- package/dist/{iteration-D23fqAQH.js → iteration-Cp1eSTJA.js} +1 -1
- package/dist/{lodash-Cqc7y4P5.js → lodash-CXLZQQp8.js} +1 -1
- package/dist/{rule-BBJzenE1.js → rule-vBxopbM_.js} +2 -2
- package/dist/src/views/team/member/AddMemberForm.vue.d.ts +2 -0
- package/dist/{team-Dq3VcGNH.js → team-CnQ_rIx2.js} +1 -1
- package/dist/{timesheet-OfLQjuvO.js → timesheet-BlPhOifI.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-Du6PRBq0.js → useAppStore-BVnrWyPF.js} +1 -1
- package/dist/useDiscardConfirm-DPhEV6v0.js +157 -0
- package/dist/{useLoading-DkTCR5A7.js → useLoading-7ia-Bps7.js} +1 -1
- package/dist/{useReportPermissions-DhhjBwPs.js → useReportPermissions-C8HMek35.js} +3 -3
- package/package.json +1 -1
- package/dist/PermissionSetList-CtpaWlVM.js +0 -323
- package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +0 -132
- package/dist/TeamMemberList-DSzNjP4y.js +0 -996
- package/dist/useDiscardConfirm-BHni0LNu.js +0 -28
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
1
|
+
import { getCurrentInstance as xt, inject as Jn, ref as bt, shallowRef as Kn, computed as z, watch as St, onMounted as Rn, onUnmounted as Qn, defineComponent as Oe, h as An, createVNode as _e, Text as zn, Fragment as ye, resolveComponent as Qe, createBlock as De, openBlock as Q, withCtx as pe, createElementVNode as ie, createElementBlock as oe, toDisplayString as Te, unref as Y, renderList as ge, toRef as Qt, normalizeStyle as mt, renderSlot as ke, createCommentVNode as Se, createTextVNode as qn, useSlots as es, normalizeClass as at, createSlots as xe, mergeModels as zt, useModel as ts } from "vue";
|
|
2
2
|
import { useI18n as nt, useCoreStore as ns } from "@feedmepos/mf-common";
|
|
3
3
|
import "@vue/devtools-api";
|
|
4
|
-
import { p as Dt, d as ss, v as as, w as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { u as os, p as is, d as me, C as cs, A as Lt } from "./app-
|
|
7
|
-
import { d as dt, g as us, b as ms } from "./iteration-
|
|
8
|
-
import { u as ds } from "./useAppStore-
|
|
4
|
+
import { p as Dt, d as ss, v as as, w as kt, x as rs, j as ls, $ as Ot } from "./rule-vBxopbM_.js";
|
|
5
|
+
import { _ as Zt } from "./CollapsibleWrapper.vue_vue_type_script_setup_true_lang-BLJlmPVa.js";
|
|
6
|
+
import { u as os, p as is, d as me, C as cs, A as Lt } from "./app-BjXuSCis.js";
|
|
7
|
+
import { d as dt, g as us, b as ms } from "./iteration-Cp1eSTJA.js";
|
|
8
|
+
import { u as ds } from "./useAppStore-BVnrWyPF.js";
|
|
9
9
|
/*!
|
|
10
10
|
* shared v10.0.5
|
|
11
11
|
* (c) 2024 kazuya kawaguchi
|
|
12
12
|
* Released under the MIT License.
|
|
13
13
|
*/
|
|
14
|
-
const qt = typeof window < "u", je = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), fs = (e, t, n) => _s({ l: e, k: t, s: n }), _s = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), de = (e) => typeof e == "number" && isFinite(e), ps = (e) => Xt(e) === "[object Date]", _t = (e) => Xt(e) === "[object RegExp]",
|
|
14
|
+
const qt = typeof window < "u", je = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), fs = (e, t, n) => _s({ l: e, k: t, s: n }), _s = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), de = (e) => typeof e == "number" && isFinite(e), ps = (e) => Xt(e) === "[object Date]", _t = (e) => Xt(e) === "[object RegExp]", ht = (e) => $(e) && Object.keys(e).length === 0, fe = Object.assign, bs = Object.create, q = (e = null) => bs(e);
|
|
15
15
|
let en;
|
|
16
16
|
const Fe = () => en || (en = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : q());
|
|
17
17
|
function tn(e) {
|
|
18
18
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
19
19
|
}
|
|
20
|
-
const
|
|
20
|
+
const hs = Object.prototype.hasOwnProperty;
|
|
21
21
|
function Ee(e, t) {
|
|
22
|
-
return
|
|
22
|
+
return hs.call(e, t);
|
|
23
23
|
}
|
|
24
|
-
const ue = Array.isArray, se = (e) => typeof e == "function", P = (e) => typeof e == "string", ce = (e) => typeof e == "boolean", J = (e) => e !== null && typeof e == "object",
|
|
25
|
-
function
|
|
24
|
+
const ue = Array.isArray, se = (e) => typeof e == "function", P = (e) => typeof e == "string", ce = (e) => typeof e == "boolean", J = (e) => e !== null && typeof e == "object", gs = (e) => J(e) && se(e.then) && se(e.catch), Sn = Object.prototype.toString, Xt = (e) => Sn.call(e), $ = (e) => Xt(e) === "[object Object]", vs = (e) => e == null ? "" : ue(e) || $(e) && e.toString === Sn ? JSON.stringify(e, null, 2) : String(e);
|
|
25
|
+
function Bt(e, t = "") {
|
|
26
26
|
return e.reduce((n, s, l) => l === 0 ? n + s : n + t + s, "");
|
|
27
27
|
}
|
|
28
28
|
function Is(e, t) {
|
|
@@ -64,19 +64,19 @@ const K = {
|
|
|
64
64
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
65
65
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
66
66
|
}, Ns = 17;
|
|
67
|
-
function
|
|
67
|
+
function gt(e, t, n = {}) {
|
|
68
68
|
const { domain: s, messages: l, args: a } = n, c = e, u = new SyntaxError(String(c));
|
|
69
69
|
return u.code = e, t && (u.location = t), u.domain = s, u;
|
|
70
70
|
}
|
|
71
71
|
function ys(e) {
|
|
72
72
|
throw e;
|
|
73
73
|
}
|
|
74
|
-
const Le = " ",
|
|
75
|
-
`,
|
|
74
|
+
const Le = " ", Ts = "\r", be = `
|
|
75
|
+
`, ks = "\u2028", Os = "\u2029";
|
|
76
76
|
function Ls(e) {
|
|
77
77
|
const t = e;
|
|
78
78
|
let n = 0, s = 1, l = 1, a = 0;
|
|
79
|
-
const c = (I) => t[I] ===
|
|
79
|
+
const c = (I) => t[I] === Ts && t[I + 1] === be, u = (I) => t[I] === be, m = (I) => t[I] === Os, p = (I) => t[I] === ks, y = (I) => c(I) || u(I) || m(I) || p(I), k = () => n, O = () => s, w = () => l, V = () => a, R = (I) => c(I) || m(I) || p(I) ? be : t[I], M = () => R(n), i = () => R(n + a);
|
|
80
80
|
function d() {
|
|
81
81
|
return a = 0, y(n) && (s++, l = 0), c(n) && n++, n++, l++, t[n];
|
|
82
82
|
}
|
|
@@ -96,11 +96,11 @@ function Ls(e) {
|
|
|
96
96
|
a = 0;
|
|
97
97
|
}
|
|
98
98
|
return {
|
|
99
|
-
index:
|
|
99
|
+
index: k,
|
|
100
100
|
line: O,
|
|
101
101
|
column: w,
|
|
102
102
|
peekOffset: V,
|
|
103
|
-
charAt:
|
|
103
|
+
charAt: R,
|
|
104
104
|
currentChar: M,
|
|
105
105
|
currentPeek: i,
|
|
106
106
|
next: d,
|
|
@@ -110,7 +110,7 @@ function Ls(e) {
|
|
|
110
110
|
skipToPeek: D
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
|
-
const Ae = void 0,
|
|
113
|
+
const Ae = void 0, Cs = ".", nn = "'", Rs = "tokenizer";
|
|
114
114
|
function As(e, t = {}) {
|
|
115
115
|
const n = t.location !== !1, s = Ls(e), l = () => s.index(), a = () => Es(s.line(), s.column(), s.index()), c = a(), u = l(), m = {
|
|
116
116
|
currentType: 13,
|
|
@@ -125,11 +125,11 @@ function As(e, t = {}) {
|
|
|
125
125
|
inLinked: !1,
|
|
126
126
|
text: ""
|
|
127
127
|
}, p = () => m, { onError: y } = t;
|
|
128
|
-
function
|
|
128
|
+
function k(r, o, b, ...U) {
|
|
129
129
|
const re = p();
|
|
130
130
|
if (o.column += b, o.offset += b, y) {
|
|
131
|
-
const X = n ? Mt(re.startLoc, o) : null, f =
|
|
132
|
-
domain:
|
|
131
|
+
const X = n ? Mt(re.startLoc, o) : null, f = gt(r, X, {
|
|
132
|
+
domain: Rs,
|
|
133
133
|
args: U
|
|
134
134
|
});
|
|
135
135
|
y(f);
|
|
@@ -146,16 +146,16 @@ function As(e, t = {}) {
|
|
|
146
146
|
/* TokenTypes.EOF */
|
|
147
147
|
);
|
|
148
148
|
function V(r, o) {
|
|
149
|
-
return r.currentChar() === o ? (r.next(), o) : (
|
|
149
|
+
return r.currentChar() === o ? (r.next(), o) : (k(K.EXPECTED_TOKEN, a(), 0, o), "");
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function R(r) {
|
|
152
152
|
let o = "";
|
|
153
153
|
for (; r.currentPeek() === Le || r.currentPeek() === be; )
|
|
154
154
|
o += r.currentPeek(), r.peek();
|
|
155
155
|
return o;
|
|
156
156
|
}
|
|
157
157
|
function M(r) {
|
|
158
|
-
const o =
|
|
158
|
+
const o = R(r);
|
|
159
159
|
return r.skipToPeek(), o;
|
|
160
160
|
}
|
|
161
161
|
function i(r) {
|
|
@@ -176,7 +176,7 @@ function As(e, t = {}) {
|
|
|
176
176
|
const { currentType: b } = o;
|
|
177
177
|
if (b !== 2)
|
|
178
178
|
return !1;
|
|
179
|
-
|
|
179
|
+
R(r);
|
|
180
180
|
const U = i(r.currentPeek());
|
|
181
181
|
return r.resetPeek(), U;
|
|
182
182
|
}
|
|
@@ -184,7 +184,7 @@ function As(e, t = {}) {
|
|
|
184
184
|
const { currentType: b } = o;
|
|
185
185
|
if (b !== 2)
|
|
186
186
|
return !1;
|
|
187
|
-
|
|
187
|
+
R(r);
|
|
188
188
|
const U = r.currentPeek() === "-" ? r.peek() : r.currentPeek(), re = d(U);
|
|
189
189
|
return r.resetPeek(), re;
|
|
190
190
|
}
|
|
@@ -192,7 +192,7 @@ function As(e, t = {}) {
|
|
|
192
192
|
const { currentType: b } = o;
|
|
193
193
|
if (b !== 2)
|
|
194
194
|
return !1;
|
|
195
|
-
|
|
195
|
+
R(r);
|
|
196
196
|
const U = r.currentPeek() === nn;
|
|
197
197
|
return r.resetPeek(), U;
|
|
198
198
|
}
|
|
@@ -200,7 +200,7 @@ function As(e, t = {}) {
|
|
|
200
200
|
const { currentType: b } = o;
|
|
201
201
|
if (b !== 7)
|
|
202
202
|
return !1;
|
|
203
|
-
|
|
203
|
+
R(r);
|
|
204
204
|
const U = r.currentPeek() === ".";
|
|
205
205
|
return r.resetPeek(), U;
|
|
206
206
|
}
|
|
@@ -208,7 +208,7 @@ function As(e, t = {}) {
|
|
|
208
208
|
const { currentType: b } = o;
|
|
209
209
|
if (b !== 8)
|
|
210
210
|
return !1;
|
|
211
|
-
|
|
211
|
+
R(r);
|
|
212
212
|
const U = i(r.currentPeek());
|
|
213
213
|
return r.resetPeek(), U;
|
|
214
214
|
}
|
|
@@ -216,26 +216,26 @@ function As(e, t = {}) {
|
|
|
216
216
|
const { currentType: b } = o;
|
|
217
217
|
if (!(b === 7 || b === 11))
|
|
218
218
|
return !1;
|
|
219
|
-
|
|
219
|
+
R(r);
|
|
220
220
|
const U = r.currentPeek() === ":";
|
|
221
221
|
return r.resetPeek(), U;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function h(r, o) {
|
|
224
224
|
const { currentType: b } = o;
|
|
225
225
|
if (b !== 9)
|
|
226
226
|
return !1;
|
|
227
227
|
const U = () => {
|
|
228
228
|
const X = r.currentPeek();
|
|
229
|
-
return X === "{" ? i(r.peek()) : X === "@" || X === "|" || X === ":" || X === "." || X === Le || !X ? !1 : X === be ? (r.peek(), U()) :
|
|
229
|
+
return X === "{" ? i(r.peek()) : X === "@" || X === "|" || X === ":" || X === "." || X === Le || !X ? !1 : X === be ? (r.peek(), U()) : C(r, !1);
|
|
230
230
|
}, re = U();
|
|
231
231
|
return r.resetPeek(), re;
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
|
|
233
|
+
function g(r) {
|
|
234
|
+
R(r);
|
|
235
235
|
const o = r.currentPeek() === "|";
|
|
236
236
|
return r.resetPeek(), o;
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function C(r, o = !0) {
|
|
239
239
|
const b = (re = !1, X = "") => {
|
|
240
240
|
const f = r.currentPeek();
|
|
241
241
|
return f === "{" || f === "@" || !f ? re : f === "|" ? !(X === Le || X === be) : f === Le ? (r.peek(), b(!0, Le)) : f === be ? (r.peek(), b(!0, be)) : !0;
|
|
@@ -254,7 +254,7 @@ function As(e, t = {}) {
|
|
|
254
254
|
o === 95 || // _
|
|
255
255
|
o === 36;
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function Z(r) {
|
|
258
258
|
return E(r, F);
|
|
259
259
|
}
|
|
260
260
|
function v(r) {
|
|
@@ -291,17 +291,17 @@ function As(e, t = {}) {
|
|
|
291
291
|
b += o;
|
|
292
292
|
return b;
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function B(r) {
|
|
295
295
|
let o = "";
|
|
296
296
|
for (; ; ) {
|
|
297
297
|
const b = r.currentChar();
|
|
298
298
|
if (b === "{" || b === "}" || b === "@" || b === "|" || !b)
|
|
299
299
|
break;
|
|
300
300
|
if (b === Le || b === be)
|
|
301
|
-
if (
|
|
301
|
+
if (C(r))
|
|
302
302
|
o += b, r.next();
|
|
303
303
|
else {
|
|
304
|
-
if (
|
|
304
|
+
if (g(r))
|
|
305
305
|
break;
|
|
306
306
|
o += b, r.next();
|
|
307
307
|
}
|
|
@@ -310,17 +310,17 @@ function As(e, t = {}) {
|
|
|
310
310
|
}
|
|
311
311
|
return o;
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function he(r) {
|
|
314
314
|
M(r);
|
|
315
315
|
let o = "", b = "";
|
|
316
316
|
for (; o = A(r); )
|
|
317
317
|
b += o;
|
|
318
|
-
return r.currentChar() === Ae &&
|
|
318
|
+
return r.currentChar() === Ae && k(K.UNTERMINATED_CLOSING_BRACE, a(), 0), b;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function x(r) {
|
|
321
321
|
M(r);
|
|
322
322
|
let o = "";
|
|
323
|
-
return r.currentChar() === "-" ? (r.next(), o += `-${ee(r)}`) : o += ee(r), r.currentChar() === Ae &&
|
|
323
|
+
return r.currentChar() === "-" ? (r.next(), o += `-${ee(r)}`) : o += ee(r), r.currentChar() === Ae && k(K.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
324
324
|
}
|
|
325
325
|
function ae(r) {
|
|
326
326
|
return r !== nn && r !== be;
|
|
@@ -331,7 +331,7 @@ function As(e, t = {}) {
|
|
|
331
331
|
for (; o = E(r, ae); )
|
|
332
332
|
o === "\\" ? b += Ie(r) : b += o;
|
|
333
333
|
const U = r.currentChar();
|
|
334
|
-
return U === be || U === Ae ? (
|
|
334
|
+
return U === be || U === Ae ? (k(K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), U === be && (r.next(), V(r, "'")), b) : (V(r, "'"), b);
|
|
335
335
|
}
|
|
336
336
|
function Ie(r) {
|
|
337
337
|
const o = r.currentChar();
|
|
@@ -344,7 +344,7 @@ function As(e, t = {}) {
|
|
|
344
344
|
case "U":
|
|
345
345
|
return He(r, o, 6);
|
|
346
346
|
default:
|
|
347
|
-
return
|
|
347
|
+
return k(K.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
function He(r, o, b) {
|
|
@@ -353,26 +353,26 @@ function As(e, t = {}) {
|
|
|
353
353
|
for (let re = 0; re < b; re++) {
|
|
354
354
|
const X = j(r);
|
|
355
355
|
if (!X) {
|
|
356
|
-
|
|
356
|
+
k(K.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${U}${r.currentChar()}`);
|
|
357
357
|
break;
|
|
358
358
|
}
|
|
359
359
|
U += X;
|
|
360
360
|
}
|
|
361
361
|
return `\\${o}${U}`;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function Ye(r) {
|
|
364
364
|
return r !== "{" && r !== "}" && r !== Le && r !== be;
|
|
365
365
|
}
|
|
366
366
|
function Et(r) {
|
|
367
367
|
M(r);
|
|
368
368
|
let o = "", b = "";
|
|
369
|
-
for (; o = E(r,
|
|
369
|
+
for (; o = E(r, Ye); )
|
|
370
370
|
b += o;
|
|
371
371
|
return b;
|
|
372
372
|
}
|
|
373
373
|
function Nt(r) {
|
|
374
374
|
let o = "", b = "";
|
|
375
|
-
for (; o =
|
|
375
|
+
for (; o = Z(r); )
|
|
376
376
|
b += o;
|
|
377
377
|
return b;
|
|
378
378
|
}
|
|
@@ -396,35 +396,35 @@ function As(e, t = {}) {
|
|
|
396
396
|
let b = null;
|
|
397
397
|
switch (r.currentChar()) {
|
|
398
398
|
case "{":
|
|
399
|
-
return o.braceNest >= 1 &&
|
|
399
|
+
return o.braceNest >= 1 && k(K.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), r.next(), b = O(
|
|
400
400
|
o,
|
|
401
401
|
2,
|
|
402
402
|
"{"
|
|
403
403
|
/* TokenChars.BraceLeft */
|
|
404
404
|
), M(r), o.braceNest++, b;
|
|
405
405
|
case "}":
|
|
406
|
-
return o.braceNest > 0 && o.currentType === 2 &&
|
|
406
|
+
return o.braceNest > 0 && o.currentType === 2 && k(K.EMPTY_PLACEHOLDER, a(), 0), r.next(), b = O(
|
|
407
407
|
o,
|
|
408
408
|
3,
|
|
409
409
|
"}"
|
|
410
410
|
/* TokenChars.BraceRight */
|
|
411
411
|
), o.braceNest--, o.braceNest > 0 && M(r), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), b;
|
|
412
412
|
case "@":
|
|
413
|
-
return o.braceNest > 0 &&
|
|
413
|
+
return o.braceNest > 0 && k(K.UNTERMINATED_CLOSING_BRACE, a(), 0), b = Ve(r, o) || w(o), o.braceNest = 0, b;
|
|
414
414
|
default: {
|
|
415
415
|
let re = !0, X = !0, f = !0;
|
|
416
|
-
if (
|
|
417
|
-
return o.braceNest > 0 &&
|
|
416
|
+
if (g(r))
|
|
417
|
+
return o.braceNest > 0 && k(K.UNTERMINATED_CLOSING_BRACE, a(), 0), b = O(o, 1, $e(r)), o.braceNest = 0, o.inLinked = !1, b;
|
|
418
418
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
419
|
-
return
|
|
419
|
+
return k(K.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, Je(r, o);
|
|
420
420
|
if (re = L(r, o))
|
|
421
|
-
return b = O(o, 4,
|
|
421
|
+
return b = O(o, 4, he(r)), M(r), b;
|
|
422
422
|
if (X = _(r, o))
|
|
423
|
-
return b = O(o, 5,
|
|
423
|
+
return b = O(o, 5, x(r)), M(r), b;
|
|
424
424
|
if (f = S(r, o))
|
|
425
425
|
return b = O(o, 6, ne(r)), M(r), b;
|
|
426
426
|
if (!re && !X && !f)
|
|
427
|
-
return b = O(o, 12, Et(r)),
|
|
427
|
+
return b = O(o, 12, Et(r)), k(K.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, b.value), M(r), b;
|
|
428
428
|
break;
|
|
429
429
|
}
|
|
430
430
|
}
|
|
@@ -434,7 +434,7 @@ function As(e, t = {}) {
|
|
|
434
434
|
const { currentType: b } = o;
|
|
435
435
|
let U = null;
|
|
436
436
|
const re = r.currentChar();
|
|
437
|
-
switch ((b === 7 || b === 8 || b === 11 || b === 9) && (re === be || re === Le) &&
|
|
437
|
+
switch ((b === 7 || b === 8 || b === 11 || b === 9) && (re === be || re === Le) && k(K.INVALID_LINKED_FORMAT, a(), 0), re) {
|
|
438
438
|
case "@":
|
|
439
439
|
return r.next(), U = O(
|
|
440
440
|
o,
|
|
@@ -457,7 +457,7 @@ function As(e, t = {}) {
|
|
|
457
457
|
/* TokenChars.LinkedDelimiter */
|
|
458
458
|
);
|
|
459
459
|
default:
|
|
460
|
-
return
|
|
460
|
+
return g(r) ? (U = O(o, 1, $e(r)), o.braceNest = 0, o.inLinked = !1, U) : D(r, o) || H(r, o) ? (M(r), Ve(r, o)) : I(r, o) ? (M(r), O(o, 11, Nt(r))) : h(r, o) ? (M(r), re === "{" ? Ue(r, o) || U : O(o, 10, yt(r))) : (b === 7 && k(K.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, Je(r, o));
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
function Je(r, o) {
|
|
@@ -473,7 +473,7 @@ function As(e, t = {}) {
|
|
|
473
473
|
case "{":
|
|
474
474
|
return Ue(r, o) || w(o);
|
|
475
475
|
case "}":
|
|
476
|
-
return
|
|
476
|
+
return k(K.UNBALANCED_CLOSING_BRACE, a(), 0), r.next(), O(
|
|
477
477
|
o,
|
|
478
478
|
3,
|
|
479
479
|
"}"
|
|
@@ -482,16 +482,16 @@ function As(e, t = {}) {
|
|
|
482
482
|
case "@":
|
|
483
483
|
return Ve(r, o) || w(o);
|
|
484
484
|
default: {
|
|
485
|
-
if (
|
|
485
|
+
if (g(r))
|
|
486
486
|
return b = O(o, 1, $e(r)), o.braceNest = 0, o.inLinked = !1, b;
|
|
487
|
-
if (
|
|
488
|
-
return O(o, 0,
|
|
487
|
+
if (C(r))
|
|
488
|
+
return O(o, 0, B(r));
|
|
489
489
|
break;
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
492
|
return b;
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function Tt() {
|
|
495
495
|
const { currentType: r, offset: o, startLoc: b, endLoc: U } = m;
|
|
496
496
|
return m.lastType = r, m.lastOffset = o, m.lastStartLoc = b, m.lastEndLoc = U, m.offset = l(), m.startLoc = a(), s.currentChar() === Ae ? O(
|
|
497
497
|
m,
|
|
@@ -500,7 +500,7 @@ function As(e, t = {}) {
|
|
|
500
500
|
) : Je(s, m);
|
|
501
501
|
}
|
|
502
502
|
return {
|
|
503
|
-
nextToken:
|
|
503
|
+
nextToken: Tt,
|
|
504
504
|
currentOffset: l,
|
|
505
505
|
currentPosition: a,
|
|
506
506
|
context: p
|
|
@@ -524,7 +524,7 @@ function ws(e = {}) {
|
|
|
524
524
|
function s(i, d, L, _, ...S) {
|
|
525
525
|
const D = i.currentPosition();
|
|
526
526
|
if (D.offset += _, D.column += _, n) {
|
|
527
|
-
const I = t ? Mt(L, D) : null, H =
|
|
527
|
+
const I = t ? Mt(L, D) : null, H = gt(d, I, {
|
|
528
528
|
domain: Ss,
|
|
529
529
|
args: S
|
|
530
530
|
});
|
|
@@ -563,7 +563,7 @@ function ws(e = {}) {
|
|
|
563
563
|
node: D
|
|
564
564
|
});
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function k(i, d) {
|
|
567
567
|
const L = i.context(), _ = l(7, L.offset, L.startLoc);
|
|
568
568
|
return _.value = d, a(_, i.currentOffset(), i.currentPosition()), _;
|
|
569
569
|
}
|
|
@@ -576,7 +576,7 @@ function ws(e = {}) {
|
|
|
576
576
|
}
|
|
577
577
|
switch (_.type !== 9 && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(_)), _ = i.nextToken(), _.type === 2 && (_ = i.nextToken()), _.type) {
|
|
578
578
|
case 10:
|
|
579
|
-
_.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(_)), L.key =
|
|
579
|
+
_.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(_)), L.key = k(i, _.value || "");
|
|
580
580
|
break;
|
|
581
581
|
case 4:
|
|
582
582
|
_.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(_)), L.key = m(i, _.value || "");
|
|
@@ -605,23 +605,23 @@ function ws(e = {}) {
|
|
|
605
605
|
S.items = [];
|
|
606
606
|
let D = null;
|
|
607
607
|
do {
|
|
608
|
-
const
|
|
609
|
-
switch (D = null,
|
|
608
|
+
const h = D || i.nextToken();
|
|
609
|
+
switch (D = null, h.type) {
|
|
610
610
|
case 0:
|
|
611
|
-
|
|
611
|
+
h.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(h)), S.items.push(c(i, h.value || ""));
|
|
612
612
|
break;
|
|
613
613
|
case 5:
|
|
614
|
-
|
|
614
|
+
h.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(h)), S.items.push(u(i, h.value || ""));
|
|
615
615
|
break;
|
|
616
616
|
case 4:
|
|
617
|
-
|
|
617
|
+
h.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(h)), S.items.push(m(i, h.value || ""));
|
|
618
618
|
break;
|
|
619
619
|
case 6:
|
|
620
|
-
|
|
620
|
+
h.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(h)), S.items.push(p(i, h.value || ""));
|
|
621
621
|
break;
|
|
622
622
|
case 7: {
|
|
623
|
-
const
|
|
624
|
-
S.items.push(
|
|
623
|
+
const g = O(i);
|
|
624
|
+
S.items.push(g.node), D = g.nextConsumeToken || null;
|
|
625
625
|
break;
|
|
626
626
|
}
|
|
627
627
|
}
|
|
@@ -640,13 +640,13 @@ function ws(e = {}) {
|
|
|
640
640
|
} while (S.currentType !== 13);
|
|
641
641
|
return D && s(i, K.MUST_HAVE_MESSAGES_IN_PLURAL, L, 0), a(I, i.currentOffset(), i.currentPosition()), I;
|
|
642
642
|
}
|
|
643
|
-
function
|
|
643
|
+
function R(i) {
|
|
644
644
|
const d = i.context(), { offset: L, startLoc: _ } = d, S = w(i);
|
|
645
645
|
return d.currentType === 13 ? S : V(i, L, _, S);
|
|
646
646
|
}
|
|
647
647
|
function M(i) {
|
|
648
648
|
const d = As(i, fe({}, e)), L = d.context(), _ = l(0, L.offset, L.startLoc);
|
|
649
|
-
return t && _.loc && (_.loc.source = i), _.body =
|
|
649
|
+
return t && _.loc && (_.loc.source = i), _.body = R(d), e.onCacheKey && (_.cacheKey = e.onCacheKey(i)), L.currentType !== 13 && s(d, K.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, i[L.offset] || ""), a(_, d.currentOffset(), d.currentPosition()), _;
|
|
650
650
|
}
|
|
651
651
|
return { parse: M };
|
|
652
652
|
}
|
|
@@ -734,7 +734,7 @@ function an(e) {
|
|
|
734
734
|
t.push(s.value);
|
|
735
735
|
}
|
|
736
736
|
if (t.length === e.items.length) {
|
|
737
|
-
e.static =
|
|
737
|
+
e.static = Bt(t);
|
|
738
738
|
for (let n = 0; n < e.items.length; n++) {
|
|
739
739
|
const s = e.items[n];
|
|
740
740
|
(s.type === 3 || s.type === 9) && delete s.value;
|
|
@@ -803,20 +803,20 @@ function Us(e, t) {
|
|
|
803
803
|
};
|
|
804
804
|
a && e.loc && (c.source = e.loc.source);
|
|
805
805
|
const u = () => c;
|
|
806
|
-
function m(
|
|
807
|
-
c.code +=
|
|
806
|
+
function m(R, M) {
|
|
807
|
+
c.code += R;
|
|
808
808
|
}
|
|
809
|
-
function p(
|
|
809
|
+
function p(R, M = !0) {
|
|
810
810
|
const i = M ? s : "";
|
|
811
|
-
m(l ? i + " ".repeat(
|
|
811
|
+
m(l ? i + " ".repeat(R) : i);
|
|
812
812
|
}
|
|
813
|
-
function y(
|
|
813
|
+
function y(R = !0) {
|
|
814
814
|
const M = ++c.indentLevel;
|
|
815
|
-
|
|
815
|
+
R && p(M);
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function k(R = !0) {
|
|
818
818
|
const M = --c.indentLevel;
|
|
819
|
-
|
|
819
|
+
R && p(M);
|
|
820
820
|
}
|
|
821
821
|
function O() {
|
|
822
822
|
p(c.indentLevel);
|
|
@@ -825,9 +825,9 @@ function Us(e, t) {
|
|
|
825
825
|
context: u,
|
|
826
826
|
push: m,
|
|
827
827
|
indent: y,
|
|
828
|
-
deindent:
|
|
828
|
+
deindent: k,
|
|
829
829
|
newline: O,
|
|
830
|
-
helper: (
|
|
830
|
+
helper: (R) => `_${R}`,
|
|
831
831
|
needIndent: () => c.needIndent
|
|
832
832
|
};
|
|
833
833
|
}
|
|
@@ -836,7 +836,7 @@ function Vs(e, t) {
|
|
|
836
836
|
e.push(`${n(
|
|
837
837
|
"linked"
|
|
838
838
|
/* HelperNameMap.LINKED */
|
|
839
|
-
)}(`),
|
|
839
|
+
)}(`), Ze(e, t.key), t.modifier ? (e.push(", "), Ze(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
840
840
|
}
|
|
841
841
|
function Gs(e, t) {
|
|
842
842
|
const { helper: n, needIndent: s } = e;
|
|
@@ -845,7 +845,7 @@ function Gs(e, t) {
|
|
|
845
845
|
/* HelperNameMap.NORMALIZE */
|
|
846
846
|
)}([`), e.indent(s());
|
|
847
847
|
const l = t.items.length;
|
|
848
|
-
for (let a = 0; a < l && (
|
|
848
|
+
for (let a = 0; a < l && (Ze(e, t.items[a]), a !== l - 1); a++)
|
|
849
849
|
e.push(", ");
|
|
850
850
|
e.deindent(s()), e.push("])");
|
|
851
851
|
}
|
|
@@ -857,19 +857,19 @@ function Ws(e, t) {
|
|
|
857
857
|
/* HelperNameMap.PLURAL */
|
|
858
858
|
)}([`), e.indent(s());
|
|
859
859
|
const l = t.cases.length;
|
|
860
|
-
for (let a = 0; a < l && (
|
|
860
|
+
for (let a = 0; a < l && (Ze(e, t.cases[a]), a !== l - 1); a++)
|
|
861
861
|
e.push(", ");
|
|
862
862
|
e.deindent(s()), e.push("])");
|
|
863
863
|
}
|
|
864
864
|
}
|
|
865
|
-
function
|
|
866
|
-
t.body ?
|
|
865
|
+
function xs(e, t) {
|
|
866
|
+
t.body ? Ze(e, t.body) : e.push("null");
|
|
867
867
|
}
|
|
868
|
-
function
|
|
868
|
+
function Ze(e, t) {
|
|
869
869
|
const { helper: n } = e;
|
|
870
870
|
switch (t.type) {
|
|
871
871
|
case 0:
|
|
872
|
-
|
|
872
|
+
xs(e, t);
|
|
873
873
|
break;
|
|
874
874
|
case 1:
|
|
875
875
|
Ws(e, t);
|
|
@@ -912,7 +912,7 @@ function xe(e, t) {
|
|
|
912
912
|
break;
|
|
913
913
|
}
|
|
914
914
|
}
|
|
915
|
-
const
|
|
915
|
+
const Zs = (e, t = {}) => {
|
|
916
916
|
const n = P(t.mode) ? t.mode : "normal", s = P(t.filename) ? t.filename : "message.intl";
|
|
917
917
|
t.sourceMap;
|
|
918
918
|
const l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
@@ -921,7 +921,7 @@ const xs = (e, t = {}) => {
|
|
|
921
921
|
breakLineCode: l,
|
|
922
922
|
needIndent: a
|
|
923
923
|
});
|
|
924
|
-
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), c.length > 0 && (u.push(`const { ${
|
|
924
|
+
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), c.length > 0 && (u.push(`const { ${Bt(c.map((y) => `${y}: _${y}`), ", ")} } = ctx`), u.newline()), u.push("return "), Ze(u, e), u.deindent(a), u.push("}"), delete e.helpers;
|
|
925
925
|
const { code: m, map: p } = u.context();
|
|
926
926
|
return {
|
|
927
927
|
ast: e,
|
|
@@ -932,24 +932,24 @@ const xs = (e, t = {}) => {
|
|
|
932
932
|
};
|
|
933
933
|
function Xs(e, t = {}) {
|
|
934
934
|
const n = fe({}, t), s = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize, u = ws(n).parse(e);
|
|
935
|
-
return s ? (a && js(u), l && We(u), { ast: u, code: "" }) : (Fs(u, n),
|
|
935
|
+
return s ? (a && js(u), l && We(u), { ast: u, code: "" }) : (Fs(u, n), Zs(u, n));
|
|
936
936
|
}
|
|
937
|
-
var
|
|
937
|
+
var Bs = { env: { NODE_ENV: "production" } };
|
|
938
938
|
function Hs() {
|
|
939
939
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Fe().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Fe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
940
940
|
}
|
|
941
|
-
function
|
|
942
|
-
return (n) =>
|
|
941
|
+
function Ct(e) {
|
|
942
|
+
return (n) => Ys(n, e);
|
|
943
943
|
}
|
|
944
|
-
function
|
|
944
|
+
function Ys(e, t) {
|
|
945
945
|
const n = Js(t);
|
|
946
946
|
if (n == null)
|
|
947
|
-
throw
|
|
947
|
+
throw ze(
|
|
948
948
|
0
|
|
949
949
|
/* NodeTypes.Resource */
|
|
950
950
|
);
|
|
951
|
-
if (
|
|
952
|
-
const a =
|
|
951
|
+
if (Yt(n) === 1) {
|
|
952
|
+
const a = Qs(n);
|
|
953
953
|
return e.plural(a.reduce((c, u) => [
|
|
954
954
|
...c,
|
|
955
955
|
rn(e, u)
|
|
@@ -962,7 +962,7 @@ function Js(e) {
|
|
|
962
962
|
return Me(e, $s);
|
|
963
963
|
}
|
|
964
964
|
const Ks = ["c", "cases"];
|
|
965
|
-
function
|
|
965
|
+
function Qs(e) {
|
|
966
966
|
return Me(e, Ks, []);
|
|
967
967
|
}
|
|
968
968
|
function rn(e, t) {
|
|
@@ -974,16 +974,16 @@ function rn(e, t) {
|
|
|
974
974
|
return e.normalize(s);
|
|
975
975
|
}
|
|
976
976
|
}
|
|
977
|
-
const
|
|
977
|
+
const zs = ["s", "static"];
|
|
978
978
|
function qs(e) {
|
|
979
|
-
return Me(e,
|
|
979
|
+
return Me(e, zs);
|
|
980
980
|
}
|
|
981
981
|
const ea = ["i", "items"];
|
|
982
982
|
function ta(e) {
|
|
983
983
|
return Me(e, ea, []);
|
|
984
984
|
}
|
|
985
985
|
function wt(e, t) {
|
|
986
|
-
const n =
|
|
986
|
+
const n = Yt(t);
|
|
987
987
|
switch (n) {
|
|
988
988
|
case 3:
|
|
989
989
|
return lt(t, n);
|
|
@@ -995,7 +995,7 @@ function wt(e, t) {
|
|
|
995
995
|
return e.interpolate(e.named(s.k));
|
|
996
996
|
if (Ee(s, "key") && s.key)
|
|
997
997
|
return e.interpolate(e.named(s.key));
|
|
998
|
-
throw
|
|
998
|
+
throw ze(n);
|
|
999
999
|
}
|
|
1000
1000
|
case 5: {
|
|
1001
1001
|
const s = t;
|
|
@@ -1003,7 +1003,7 @@ function wt(e, t) {
|
|
|
1003
1003
|
return e.interpolate(e.list(s.i));
|
|
1004
1004
|
if (Ee(s, "index") && de(s.index))
|
|
1005
1005
|
return e.interpolate(e.list(s.index));
|
|
1006
|
-
throw
|
|
1006
|
+
throw ze(n);
|
|
1007
1007
|
}
|
|
1008
1008
|
case 6: {
|
|
1009
1009
|
const s = t, l = ra(s), a = oa(s);
|
|
@@ -1018,7 +1018,7 @@ function wt(e, t) {
|
|
|
1018
1018
|
}
|
|
1019
1019
|
}
|
|
1020
1020
|
const na = ["t", "type"];
|
|
1021
|
-
function
|
|
1021
|
+
function Yt(e) {
|
|
1022
1022
|
return Me(e, na);
|
|
1023
1023
|
}
|
|
1024
1024
|
const sa = ["v", "value"];
|
|
@@ -1026,7 +1026,7 @@ function lt(e, t) {
|
|
|
1026
1026
|
const n = Me(e, sa);
|
|
1027
1027
|
if (n)
|
|
1028
1028
|
return n;
|
|
1029
|
-
throw
|
|
1029
|
+
throw ze(t);
|
|
1030
1030
|
}
|
|
1031
1031
|
const aa = ["m", "modifier"];
|
|
1032
1032
|
function ra(e) {
|
|
@@ -1037,7 +1037,7 @@ function oa(e) {
|
|
|
1037
1037
|
const t = Me(e, la);
|
|
1038
1038
|
if (t)
|
|
1039
1039
|
return t;
|
|
1040
|
-
throw
|
|
1040
|
+
throw ze(
|
|
1041
1041
|
6
|
|
1042
1042
|
/* NodeTypes.Linked */
|
|
1043
1043
|
);
|
|
@@ -1050,13 +1050,13 @@ function Me(e, t, n) {
|
|
|
1050
1050
|
}
|
|
1051
1051
|
return n;
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1053
|
+
function ze(e) {
|
|
1054
1054
|
return new Error(`unhandled node type: ${e}`);
|
|
1055
1055
|
}
|
|
1056
1056
|
const ia = (e) => e;
|
|
1057
1057
|
let ot = q();
|
|
1058
1058
|
function Xe(e) {
|
|
1059
|
-
return J(e) &&
|
|
1059
|
+
return J(e) && Yt(e) === 0 && (Ee(e, "b") || Ee(e, "body"));
|
|
1060
1060
|
}
|
|
1061
1061
|
function ca(e, t = {}) {
|
|
1062
1062
|
let n = !1;
|
|
@@ -1074,17 +1074,17 @@ function ua(e, t) {
|
|
|
1074
1074
|
return l;
|
|
1075
1075
|
const { ast: a, detectError: c } = ca(e, {
|
|
1076
1076
|
...t,
|
|
1077
|
-
location:
|
|
1077
|
+
location: Bs.env.NODE_ENV !== "production",
|
|
1078
1078
|
jit: !0
|
|
1079
|
-
}), u =
|
|
1079
|
+
}), u = Ct(a);
|
|
1080
1080
|
return c ? u : ot[s] = u;
|
|
1081
1081
|
} else {
|
|
1082
1082
|
const n = e.cacheKey;
|
|
1083
1083
|
if (n) {
|
|
1084
1084
|
const s = ot[n];
|
|
1085
|
-
return s || (ot[n] =
|
|
1085
|
+
return s || (ot[n] = Ct(e));
|
|
1086
1086
|
} else
|
|
1087
|
-
return
|
|
1087
|
+
return Ct(e);
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
1090
|
let qe = null;
|
|
@@ -1103,7 +1103,7 @@ const fa = /* @__PURE__ */ _a("function:translate");
|
|
|
1103
1103
|
function _a(e) {
|
|
1104
1104
|
return (t) => qe && qe.emit(e, t);
|
|
1105
1105
|
}
|
|
1106
|
-
const
|
|
1106
|
+
const Ce = {
|
|
1107
1107
|
INVALID_ARGUMENT: Ns,
|
|
1108
1108
|
// 17
|
|
1109
1109
|
INVALID_DATE_ARGUMENT: 18,
|
|
@@ -1112,28 +1112,28 @@ const Re = {
|
|
|
1112
1112
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1113
1113
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1114
1114
|
}, pa = 24;
|
|
1115
|
-
function
|
|
1116
|
-
return
|
|
1115
|
+
function Re(e) {
|
|
1116
|
+
return gt(e, null, void 0);
|
|
1117
1117
|
}
|
|
1118
1118
|
function $t(e, t) {
|
|
1119
1119
|
return t.locale != null ? ln(t.locale) : ln(e.locale);
|
|
1120
1120
|
}
|
|
1121
|
-
let
|
|
1121
|
+
let Rt;
|
|
1122
1122
|
function ln(e) {
|
|
1123
1123
|
if (P(e))
|
|
1124
1124
|
return e;
|
|
1125
1125
|
if (se(e)) {
|
|
1126
|
-
if (e.resolvedOnce &&
|
|
1127
|
-
return
|
|
1126
|
+
if (e.resolvedOnce && Rt != null)
|
|
1127
|
+
return Rt;
|
|
1128
1128
|
if (e.constructor.name === "Function") {
|
|
1129
1129
|
const t = e();
|
|
1130
|
-
if (
|
|
1131
|
-
throw Ce
|
|
1132
|
-
return
|
|
1130
|
+
if (gs(t))
|
|
1131
|
+
throw Re(Ce.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1132
|
+
return Rt = t;
|
|
1133
1133
|
} else
|
|
1134
|
-
throw Ce
|
|
1134
|
+
throw Re(Ce.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1135
1135
|
} else
|
|
1136
|
-
throw Ce
|
|
1136
|
+
throw Re(Ce.NOT_SUPPORT_LOCALE_TYPE);
|
|
1137
1137
|
}
|
|
1138
1138
|
function ba(e, t, n) {
|
|
1139
1139
|
return [.../* @__PURE__ */ new Set([
|
|
@@ -1159,20 +1159,20 @@ function on(e, t, n) {
|
|
|
1159
1159
|
let s = !0;
|
|
1160
1160
|
for (let l = 0; l < t.length && ce(s); l++) {
|
|
1161
1161
|
const a = t[l];
|
|
1162
|
-
P(a) && (s =
|
|
1162
|
+
P(a) && (s = ha(e, t[l], n));
|
|
1163
1163
|
}
|
|
1164
1164
|
return s;
|
|
1165
1165
|
}
|
|
1166
|
-
function
|
|
1166
|
+
function ha(e, t, n) {
|
|
1167
1167
|
let s;
|
|
1168
1168
|
const l = t.split("-");
|
|
1169
1169
|
do {
|
|
1170
1170
|
const a = l.join("-");
|
|
1171
|
-
s =
|
|
1171
|
+
s = ga(e, a, n), l.splice(-1, 1);
|
|
1172
1172
|
} while (l.length && s === !0);
|
|
1173
1173
|
return s;
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function ga(e, t, n) {
|
|
1176
1176
|
let s = !1;
|
|
1177
1177
|
if (!e.includes(t) && (s = !0, t)) {
|
|
1178
1178
|
s = t[t.length - 1] !== "!";
|
|
@@ -1379,9 +1379,9 @@ function ya(e) {
|
|
|
1379
1379
|
const t = e.trim();
|
|
1380
1380
|
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Ia(t) ? Ea(t) : "*" + t;
|
|
1381
1381
|
}
|
|
1382
|
-
function
|
|
1382
|
+
function Ta(e) {
|
|
1383
1383
|
const t = [];
|
|
1384
|
-
let n = -1, s = 0, l = 0, a, c, u, m, p, y,
|
|
1384
|
+
let n = -1, s = 0, l = 0, a, c, u, m, p, y, k;
|
|
1385
1385
|
const O = [];
|
|
1386
1386
|
O[
|
|
1387
1387
|
0
|
|
@@ -1429,21 +1429,21 @@ function ka(e) {
|
|
|
1429
1429
|
}
|
|
1430
1430
|
for (; s !== null; )
|
|
1431
1431
|
if (n++, a = e[n], !(a === "\\" && w())) {
|
|
1432
|
-
if (m = Na(a),
|
|
1432
|
+
if (m = Na(a), k = we[s], p = k[m] || k.l || 8, p === 8 || (s = p[0], p[1] !== void 0 && (y = O[p[1]], y && (u = a, y() === !1))))
|
|
1433
1433
|
return;
|
|
1434
1434
|
if (s === 7)
|
|
1435
1435
|
return t;
|
|
1436
1436
|
}
|
|
1437
1437
|
}
|
|
1438
1438
|
const cn = /* @__PURE__ */ new Map();
|
|
1439
|
-
function
|
|
1439
|
+
function ka(e, t) {
|
|
1440
1440
|
return J(e) ? e[t] : null;
|
|
1441
1441
|
}
|
|
1442
1442
|
function Oa(e, t) {
|
|
1443
1443
|
if (!J(e))
|
|
1444
1444
|
return null;
|
|
1445
1445
|
let n = cn.get(t);
|
|
1446
|
-
if (n || (n =
|
|
1446
|
+
if (n || (n = Ta(t), n && cn.set(t, n)), !n)
|
|
1447
1447
|
return null;
|
|
1448
1448
|
const s = n.length;
|
|
1449
1449
|
let l = e, a = 0;
|
|
@@ -1456,7 +1456,7 @@ function Oa(e, t) {
|
|
|
1456
1456
|
return l;
|
|
1457
1457
|
}
|
|
1458
1458
|
const La = "10.0.5", vt = -1, pt = "en-US", un = "", mn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1459
|
-
function
|
|
1459
|
+
function Ca() {
|
|
1460
1460
|
return {
|
|
1461
1461
|
upper: (e, t) => t === "text" && P(e) ? e.toUpperCase() : t === "vnode" && J(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1462
1462
|
lower: (e, t) => t === "text" && P(e) ? e.toLowerCase() : t === "vnode" && J(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
@@ -1464,7 +1464,7 @@ function Ra() {
|
|
|
1464
1464
|
};
|
|
1465
1465
|
}
|
|
1466
1466
|
let Mn;
|
|
1467
|
-
function
|
|
1467
|
+
function Ra(e) {
|
|
1468
1468
|
Mn = e;
|
|
1469
1469
|
}
|
|
1470
1470
|
let wn;
|
|
@@ -1485,7 +1485,7 @@ const dn = (e) => {
|
|
|
1485
1485
|
}, wa = () => jn;
|
|
1486
1486
|
let fn = 0;
|
|
1487
1487
|
function Pa(e = {}) {
|
|
1488
|
-
const t = se(e.onWarn) ? e.onWarn : Is, n = P(e.version) ? e.version : La, s = P(e.locale) || se(e.locale) ? e.locale : pt, l = se(s) ? pt : s, a = ue(e.fallbackLocale) || $(e.fallbackLocale) || P(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, c = $(e.messages) ? e.messages : At(l), u = $(e.datetimeFormats) ? e.datetimeFormats : At(l), m = $(e.numberFormats) ? e.numberFormats : At(l), p = fe(q(), e.modifiers,
|
|
1488
|
+
const t = se(e.onWarn) ? e.onWarn : Is, n = P(e.version) ? e.version : La, s = P(e.locale) || se(e.locale) ? e.locale : pt, l = se(s) ? pt : s, a = ue(e.fallbackLocale) || $(e.fallbackLocale) || P(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, c = $(e.messages) ? e.messages : At(l), u = $(e.datetimeFormats) ? e.datetimeFormats : At(l), m = $(e.numberFormats) ? e.numberFormats : At(l), p = fe(q(), e.modifiers, Ca()), y = e.pluralRules || q(), k = se(e.missing) ? e.missing : null, O = ce(e.missingWarn) || _t(e.missingWarn) ? e.missingWarn : !0, w = ce(e.fallbackWarn) || _t(e.fallbackWarn) ? e.fallbackWarn : !0, V = !!e.fallbackFormat, R = !!e.unresolving, M = se(e.postTranslation) ? e.postTranslation : null, i = $(e.processor) ? e.processor : null, d = ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, L = !!e.escapeParameter, _ = se(e.messageCompiler) ? e.messageCompiler : Mn, S = se(e.messageResolver) ? e.messageResolver : wn || ka, D = se(e.localeFallbacker) ? e.localeFallbacker : Pn || ba, I = J(e.fallbackContext) ? e.fallbackContext : void 0, H = e, h = J(H.__datetimeFormatters) ? H.__datetimeFormatters : /* @__PURE__ */ new Map(), g = J(H.__numberFormatters) ? H.__numberFormatters : /* @__PURE__ */ new Map(), C = J(H.__meta) ? H.__meta : {};
|
|
1489
1489
|
fn++;
|
|
1490
1490
|
const E = {
|
|
1491
1491
|
version: n,
|
|
@@ -1495,11 +1495,11 @@ function Pa(e = {}) {
|
|
|
1495
1495
|
messages: c,
|
|
1496
1496
|
modifiers: p,
|
|
1497
1497
|
pluralRules: y,
|
|
1498
|
-
missing:
|
|
1498
|
+
missing: k,
|
|
1499
1499
|
missingWarn: O,
|
|
1500
1500
|
fallbackWarn: w,
|
|
1501
1501
|
fallbackFormat: V,
|
|
1502
|
-
unresolving:
|
|
1502
|
+
unresolving: R,
|
|
1503
1503
|
postTranslation: M,
|
|
1504
1504
|
processor: i,
|
|
1505
1505
|
warnHtmlMessage: d,
|
|
@@ -1509,9 +1509,9 @@ function Pa(e = {}) {
|
|
|
1509
1509
|
localeFallbacker: D,
|
|
1510
1510
|
fallbackContext: I,
|
|
1511
1511
|
onWarn: t,
|
|
1512
|
-
__meta:
|
|
1512
|
+
__meta: C
|
|
1513
1513
|
};
|
|
1514
|
-
return E.datetimeFormats = u, E.numberFormats = m, E.__datetimeFormatters =
|
|
1514
|
+
return E.datetimeFormats = u, E.numberFormats = m, E.__datetimeFormatters = h, E.__numberFormatters = g, __INTLIFY_PROD_DEVTOOLS__ && da(E, n, C), E;
|
|
1515
1515
|
}
|
|
1516
1516
|
const At = (e) => ({ [e]: q() });
|
|
1517
1517
|
function Jt(e, t, n, s, l) {
|
|
@@ -1539,26 +1539,26 @@ function ja(e, t) {
|
|
|
1539
1539
|
return !1;
|
|
1540
1540
|
}
|
|
1541
1541
|
function _n(e, ...t) {
|
|
1542
|
-
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __datetimeFormatters: u } = e, [m, p, y,
|
|
1542
|
+
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __datetimeFormatters: u } = e, [m, p, y, k] = Pt(...t), O = ce(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1543
1543
|
ce(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1544
|
-
const w = !!y.part, V = $t(e, y),
|
|
1544
|
+
const w = !!y.part, V = $t(e, y), R = c(
|
|
1545
1545
|
e,
|
|
1546
1546
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1547
1547
|
l,
|
|
1548
1548
|
V
|
|
1549
1549
|
);
|
|
1550
1550
|
if (!P(m) || m === "")
|
|
1551
|
-
return new Intl.DateTimeFormat(V,
|
|
1551
|
+
return new Intl.DateTimeFormat(V, k).format(p);
|
|
1552
1552
|
let M = {}, i, d = null;
|
|
1553
1553
|
const L = "datetime format";
|
|
1554
|
-
for (let D = 0; D <
|
|
1554
|
+
for (let D = 0; D < R.length && (i = R[D], M = n[i] || {}, d = M[m], !$(d)); D++)
|
|
1555
1555
|
Jt(e, m, i, O, L);
|
|
1556
1556
|
if (!$(d) || !P(i))
|
|
1557
1557
|
return s ? vt : m;
|
|
1558
1558
|
let _ = `${i}__${m}`;
|
|
1559
|
-
|
|
1559
|
+
ht(k) || (_ = `${_}__${JSON.stringify(k)}`);
|
|
1560
1560
|
let S = u.get(_);
|
|
1561
|
-
return S || (S = new Intl.DateTimeFormat(i, fe({}, d,
|
|
1561
|
+
return S || (S = new Intl.DateTimeFormat(i, fe({}, d, k)), u.set(_, S)), w ? S.formatToParts(p) : S.format(p);
|
|
1562
1562
|
}
|
|
1563
1563
|
const Un = [
|
|
1564
1564
|
"localeMatcher",
|
|
@@ -1588,22 +1588,22 @@ function Pt(...e) {
|
|
|
1588
1588
|
if (P(t)) {
|
|
1589
1589
|
const m = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1590
1590
|
if (!m)
|
|
1591
|
-
throw Ce
|
|
1591
|
+
throw Re(Ce.INVALID_ISO_DATE_ARGUMENT);
|
|
1592
1592
|
const p = m[3] ? m[3].trim().startsWith("T") ? `${m[1].trim()}${m[3].trim()}` : `${m[1].trim()}T${m[3].trim()}` : m[1].trim();
|
|
1593
1593
|
u = new Date(p);
|
|
1594
1594
|
try {
|
|
1595
1595
|
u.toISOString();
|
|
1596
1596
|
} catch {
|
|
1597
|
-
throw Ce
|
|
1597
|
+
throw Re(Ce.INVALID_ISO_DATE_ARGUMENT);
|
|
1598
1598
|
}
|
|
1599
1599
|
} else if (ps(t)) {
|
|
1600
1600
|
if (isNaN(t.getTime()))
|
|
1601
|
-
throw Ce
|
|
1601
|
+
throw Re(Ce.INVALID_DATE_ARGUMENT);
|
|
1602
1602
|
u = t;
|
|
1603
1603
|
} else if (de(t))
|
|
1604
1604
|
u = t;
|
|
1605
1605
|
else
|
|
1606
|
-
throw Ce
|
|
1606
|
+
throw Re(Ce.INVALID_ARGUMENT);
|
|
1607
1607
|
return P(n) ? a.key = n : $(n) && Object.keys(n).forEach((m) => {
|
|
1608
1608
|
Un.includes(m) ? c[m] = n[m] : a[m] = n[m];
|
|
1609
1609
|
}), P(s) ? a.locale = s : $(s) && (c = s), $(l) && (c = l), [a.key || "", u, a, c];
|
|
@@ -1616,26 +1616,26 @@ function pn(e, t, n) {
|
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
1618
1618
|
function bn(e, ...t) {
|
|
1619
|
-
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __numberFormatters: u } = e, [m, p, y,
|
|
1619
|
+
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __numberFormatters: u } = e, [m, p, y, k] = Ft(...t), O = ce(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1620
1620
|
ce(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1621
|
-
const w = !!y.part, V = $t(e, y),
|
|
1621
|
+
const w = !!y.part, V = $t(e, y), R = c(
|
|
1622
1622
|
e,
|
|
1623
1623
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1624
1624
|
l,
|
|
1625
1625
|
V
|
|
1626
1626
|
);
|
|
1627
1627
|
if (!P(m) || m === "")
|
|
1628
|
-
return new Intl.NumberFormat(V,
|
|
1628
|
+
return new Intl.NumberFormat(V, k).format(p);
|
|
1629
1629
|
let M = {}, i, d = null;
|
|
1630
1630
|
const L = "number format";
|
|
1631
|
-
for (let D = 0; D <
|
|
1631
|
+
for (let D = 0; D < R.length && (i = R[D], M = n[i] || {}, d = M[m], !$(d)); D++)
|
|
1632
1632
|
Jt(e, m, i, O, L);
|
|
1633
1633
|
if (!$(d) || !P(i))
|
|
1634
1634
|
return s ? vt : m;
|
|
1635
1635
|
let _ = `${i}__${m}`;
|
|
1636
|
-
|
|
1636
|
+
ht(k) || (_ = `${_}__${JSON.stringify(k)}`);
|
|
1637
1637
|
let S = u.get(_);
|
|
1638
|
-
return S || (S = new Intl.NumberFormat(i, fe({}, d,
|
|
1638
|
+
return S || (S = new Intl.NumberFormat(i, fe({}, d, k)), u.set(_, S)), w ? S.formatToParts(p) : S.format(p);
|
|
1639
1639
|
}
|
|
1640
1640
|
const Vn = [
|
|
1641
1641
|
"localeMatcher",
|
|
@@ -1663,39 +1663,39 @@ function Ft(...e) {
|
|
|
1663
1663
|
const [t, n, s, l] = e, a = q();
|
|
1664
1664
|
let c = q();
|
|
1665
1665
|
if (!de(t))
|
|
1666
|
-
throw Ce
|
|
1666
|
+
throw Re(Ce.INVALID_ARGUMENT);
|
|
1667
1667
|
const u = t;
|
|
1668
1668
|
return P(n) ? a.key = n : $(n) && Object.keys(n).forEach((m) => {
|
|
1669
1669
|
Vn.includes(m) ? c[m] = n[m] : a[m] = n[m];
|
|
1670
1670
|
}), P(s) ? a.locale = s : $(s) && (c = s), $(l) && (c = l), [a.key || "", u, a, c];
|
|
1671
1671
|
}
|
|
1672
|
-
function
|
|
1672
|
+
function hn(e, t, n) {
|
|
1673
1673
|
const s = e;
|
|
1674
1674
|
for (const l in n) {
|
|
1675
1675
|
const a = `${t}__${l}`;
|
|
1676
1676
|
s.__numberFormatters.has(a) && s.__numberFormatters.delete(a);
|
|
1677
1677
|
}
|
|
1678
1678
|
}
|
|
1679
|
-
const Ua = (e) => e, Va = (e) => "", Ga = "text", Wa = (e) => e.length === 0 ? "" :
|
|
1680
|
-
function
|
|
1679
|
+
const Ua = (e) => e, Va = (e) => "", Ga = "text", Wa = (e) => e.length === 0 ? "" : Bt(e), xa = vs;
|
|
1680
|
+
function gn(e, t) {
|
|
1681
1681
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1682
1682
|
}
|
|
1683
|
-
function
|
|
1683
|
+
function Za(e) {
|
|
1684
1684
|
const t = de(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1685
1685
|
return e.named && (de(e.named.count) || de(e.named.n)) ? de(e.named.count) ? e.named.count : de(e.named.n) ? e.named.n : t : t;
|
|
1686
1686
|
}
|
|
1687
1687
|
function Xa(e, t) {
|
|
1688
1688
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1689
1689
|
}
|
|
1690
|
-
function
|
|
1691
|
-
const t = e.locale, n =
|
|
1690
|
+
function Ba(e = {}) {
|
|
1691
|
+
const t = e.locale, n = Za(e), s = J(e.pluralRules) && P(t) && se(e.pluralRules[t]) ? e.pluralRules[t] : gn, l = J(e.pluralRules) && P(t) && se(e.pluralRules[t]) ? gn : void 0, a = (i) => i[s(n, i.length, l)], c = e.list || [], u = (i) => c[i], m = e.named || q();
|
|
1692
1692
|
de(e.pluralIndex) && Xa(n, m);
|
|
1693
1693
|
const p = (i) => m[i];
|
|
1694
1694
|
function y(i, d) {
|
|
1695
1695
|
const L = se(e.messages) ? e.messages(i, !!d) : J(e.messages) ? e.messages[i] : !1;
|
|
1696
1696
|
return L || (e.parent ? e.parent.message(i) : Va);
|
|
1697
1697
|
}
|
|
1698
|
-
const
|
|
1698
|
+
const k = (i) => e.modifiers ? e.modifiers[i] : Ua, O = $(e.processor) && se(e.processor.normalize) ? e.processor.normalize : Wa, w = $(e.processor) && se(e.processor.interpolate) ? e.processor.interpolate : xa, V = $(e.processor) && P(e.processor.type) ? e.processor.type : Ga, M = {
|
|
1699
1699
|
list: u,
|
|
1700
1700
|
named: p,
|
|
1701
1701
|
plural: a,
|
|
@@ -1707,7 +1707,7 @@ function Ya(e = {}) {
|
|
|
1707
1707
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1708
1708
|
S === "vnode" && ue(I) && D ? I[0] : I
|
|
1709
1709
|
);
|
|
1710
|
-
return D ?
|
|
1710
|
+
return D ? k(D)(H, S) : H;
|
|
1711
1711
|
},
|
|
1712
1712
|
message: y,
|
|
1713
1713
|
type: V,
|
|
@@ -1719,14 +1719,14 @@ function Ya(e = {}) {
|
|
|
1719
1719
|
}
|
|
1720
1720
|
const vn = () => "", ve = (e) => se(e);
|
|
1721
1721
|
function In(e, ...t) {
|
|
1722
|
-
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: c, messages: u } = e, [m, p] = jt(...t), y = ce(p.missingWarn) ? p.missingWarn : e.missingWarn,
|
|
1722
|
+
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: c, messages: u } = e, [m, p] = jt(...t), y = ce(p.missingWarn) ? p.missingWarn : e.missingWarn, k = ce(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, O = ce(p.escapeParameter) ? p.escapeParameter : e.escapeParameter, w = !!p.resolvedMessage, V = P(p.default) || ce(p.default) ? ce(p.default) ? a ? m : () => m : p.default : n ? a ? m : () => m : null, R = n || V != null && (P(V) || se(V)), M = $t(e, p);
|
|
1723
1723
|
O && Ha(p);
|
|
1724
1724
|
let [i, d, L] = w ? [
|
|
1725
1725
|
m,
|
|
1726
1726
|
M,
|
|
1727
1727
|
u[M] || q()
|
|
1728
|
-
] : Gn(e, m, M, c,
|
|
1729
|
-
if (!w && !(P(_) || Xe(_) || ve(_)) &&
|
|
1728
|
+
] : Gn(e, m, M, c, k, y), _ = i, S = m;
|
|
1729
|
+
if (!w && !(P(_) || Xe(_) || ve(_)) && R && (_ = V, S = _), !w && (!(P(_) || Xe(_) || ve(_)) || !P(d)))
|
|
1730
1730
|
return l ? vt : m;
|
|
1731
1731
|
let D = !1;
|
|
1732
1732
|
const I = () => {
|
|
@@ -1734,7 +1734,7 @@ function In(e, ...t) {
|
|
|
1734
1734
|
}, H = ve(_) ? _ : Wn(e, m, d, _, S, I);
|
|
1735
1735
|
if (D)
|
|
1736
1736
|
return _;
|
|
1737
|
-
const
|
|
1737
|
+
const h = Ja(e, d, L, p), g = Ba(h), C = Ya(e, H, g), E = s ? s(C, m) : C;
|
|
1738
1738
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1739
1739
|
const F = {
|
|
1740
1740
|
timestamp: Date.now(),
|
|
@@ -1754,9 +1754,9 @@ function Ha(e) {
|
|
|
1754
1754
|
}
|
|
1755
1755
|
function Gn(e, t, n, s, l, a) {
|
|
1756
1756
|
const { messages: c, onWarn: u, messageResolver: m, localeFallbacker: p } = e, y = p(e, s, n);
|
|
1757
|
-
let
|
|
1757
|
+
let k = q(), O, w = null;
|
|
1758
1758
|
const V = "translate";
|
|
1759
|
-
for (let
|
|
1759
|
+
for (let R = 0; R < y.length && (O = y[R], k = c[O] || q(), (w = m(k, t)) === null && (w = k[t]), !(P(w) || Xe(w) || ve(w))); R++)
|
|
1760
1760
|
if (!ja(O, y)) {
|
|
1761
1761
|
const M = Jt(
|
|
1762
1762
|
e,
|
|
@@ -1768,7 +1768,7 @@ function Gn(e, t, n, s, l, a) {
|
|
|
1768
1768
|
);
|
|
1769
1769
|
M !== t && (w = M);
|
|
1770
1770
|
}
|
|
1771
|
-
return [w, O,
|
|
1771
|
+
return [w, O, k];
|
|
1772
1772
|
}
|
|
1773
1773
|
function Wn(e, t, n, s, l, a) {
|
|
1774
1774
|
const { messageCompiler: c, warnHtmlMessage: u } = e;
|
|
@@ -1783,15 +1783,15 @@ function Wn(e, t, n, s, l, a) {
|
|
|
1783
1783
|
const m = c(s, $a(e, n, l, s, u, a));
|
|
1784
1784
|
return m.locale = n, m.key = t, m.source = s, m;
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1786
|
+
function Ya(e, t, n) {
|
|
1787
1787
|
return t(n);
|
|
1788
1788
|
}
|
|
1789
1789
|
function jt(...e) {
|
|
1790
1790
|
const [t, n, s] = e, l = q();
|
|
1791
1791
|
if (!P(t) && !de(t) && !ve(t) && !Xe(t))
|
|
1792
|
-
throw Ce
|
|
1792
|
+
throw Re(Ce.INVALID_ARGUMENT);
|
|
1793
1793
|
const a = de(t) ? String(t) : (ve(t), t);
|
|
1794
|
-
return de(n) ? l.plural = n : P(n) ? l.default = n : $(n) && !
|
|
1794
|
+
return de(n) ? l.plural = n : P(n) ? l.default = n : $(n) && !ht(n) ? l.named = n : ue(n) && (l.list = n), de(s) ? l.plural = s : P(s) ? l.default = s : $(s) && fe(l, s), [a, l];
|
|
1795
1795
|
}
|
|
1796
1796
|
function $a(e, t, n, s, l, a) {
|
|
1797
1797
|
return {
|
|
@@ -1810,8 +1810,8 @@ function Ja(e, t, n, s) {
|
|
|
1810
1810
|
modifiers: l,
|
|
1811
1811
|
pluralRules: a,
|
|
1812
1812
|
messages: (w, V) => {
|
|
1813
|
-
let
|
|
1814
|
-
if (
|
|
1813
|
+
let R = c(n, w);
|
|
1814
|
+
if (R == null && (y || V)) {
|
|
1815
1815
|
const [, , M] = Gn(
|
|
1816
1816
|
y || e,
|
|
1817
1817
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
@@ -1821,26 +1821,26 @@ function Ja(e, t, n, s) {
|
|
|
1821
1821
|
m,
|
|
1822
1822
|
p
|
|
1823
1823
|
);
|
|
1824
|
-
|
|
1824
|
+
R = c(M, w);
|
|
1825
1825
|
}
|
|
1826
|
-
if (P(
|
|
1826
|
+
if (P(R) || Xe(R)) {
|
|
1827
1827
|
let M = !1;
|
|
1828
|
-
const d = Wn(e, w, t,
|
|
1828
|
+
const d = Wn(e, w, t, R, w, () => {
|
|
1829
1829
|
M = !0;
|
|
1830
1830
|
});
|
|
1831
1831
|
return M ? vn : d;
|
|
1832
|
-
} else return ve(
|
|
1832
|
+
} else return ve(R) ? R : vn;
|
|
1833
1833
|
}
|
|
1834
1834
|
};
|
|
1835
1835
|
return e.processor && (O.processor = e.processor), s.list && (O.list = s.list), s.named && (O.named = s.named), de(s.plural) && (O.pluralIndex = s.plural), O;
|
|
1836
1836
|
}
|
|
1837
1837
|
Hs();
|
|
1838
|
-
var Ka = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_a045c1ac-d974-4bf0-a07d-66d69817a156", npm_package_devDependencies__types_node: "^18.17.17", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", npm_package_devDependencies_vitest: "^1.2.0", USER: "runner", npm_config_always_auth: "", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v24.5.0 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.16", npm_package_devDependencies_vue_i18n: "10.0.5", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_a045c1ac-d974-4bf0-a07d-66d69817a156", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.2.0", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_files_0: "dist", npm_package_devDependencies_eslint_import_resolver_typescript: "^4.4.4", HOME: "/home/runner", npm_package_devDependencies__eslint_js: "^9.39.2", npm_package_devDependencies__typescript_eslint_parser: "^8.52.0", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_devDependencies_eslint_config_prettier: "^10.1.8", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.5.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "^1.29.10", npm_package_devDependencies_code_inspector_plugin: "^0.20.16", npm_package_devDependencies_npm_run_all2: "^6.0.6", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1868", ACTIONS_ORCHESTRATION_ID: "7849f5ab-9314-4645-8834-3ff37c4b8ddc.publish.publish.__default", npm_package_dependencies__feedmepos_ui_library: "^1.10.6", npm_package_dependencies_dayjs: "^1.11.10", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "VITE_TARGET_ENV=dev pnpm build:mf && pnpm build:dts", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.9.3", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^2.0.6", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260525.161.1", npm_package_scripts_dev: "vite", npm_package_devDependencies_prettier: "^3.7.4", npm_package_devDependencies_sass_embedded: "^1.93.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_devDependencies__vue_tsconfig: "^0.4.0", npm_package_devDependencies_eslint_plugin_import: "^2.32.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:15397", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.16", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^8.52.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.10/x64", GITHUB_RUN_ID: "26625915690", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "63a9df783c1b7d83be0869208fc1fb496b26dc79", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/feat/apply-figma-design-clean", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9mZWF0L2FwcGx5LWZpZ21hLWRlc2lnbi1jbGVhblwiLFwiUGVybWlzc2lvblwiOjN9LHtcIlNjb3BlXCI6XCJyZWZzL2hlYWRzL21haW5cIixcIlBlcm1pc3Npb25cIjoxfV0iLCJhY3NsIjoiMTAiLCJhdWQiOiJ2c286NmY5NmZhODktYjdiZi00ODc4LWJhZDMtODk4MDA2NTY2YjZlIiwiYmlsbGluZ19vd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsImV4cCI6MTc4MDA2NDIyMCwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiaWF0IjoxNzgwMDQyMDIwLCJpc3MiOiJodHRwczovL3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tIiwiam9iX2lkIjoiN2QwZTI5ZWUtMmQ3Ny01Yzg1LWI4ODEtNGI4N2JlY2VjOGUyIiwibmFtZWlkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwibmJmIjoxNzgwMDQxNzIwLCJvaWRjX2V4dHJhIjoie1wiYWN0b3JcIjpcIkNhc3RhLW1lcmVcIixcImFjdG9yX2lkXCI6XCI4MjI5ODAxN1wiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI3ODQ2MjQ5OTI4OVwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiMjIwZjdlNzZlMGRjYTA5M2M0NzUwMzdiOGU3YzBmNTUzYjYxNzIzOVwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL2ZlYXQvYXBwbHktZmlnbWEtZGVzaWduLWNsZWFuXCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjI2NjI1OTE1NjkwXCIsXCJydW5fbnVtYmVyXCI6XCIxMDBcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCI2M2E5ZGY3ODNjMWI3ZDgzYmUwODY5MjA4ZmMxZmI0OTZiMjZkYzc5XCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy9mZWF0L2FwcGx5LWZpZ21hLWRlc2lnbi1jbGVhblwiLFwid29ya2Zsb3dfc2hhXCI6XCI2M2E5ZGY3ODNjMWI3ZDgzYmUwODY5MjA4ZmMxZmI0OTZiMjZkYzc5XCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9mZWF0L2FwcGx5LWZpZ21hLWRlc2lnbi1jbGVhbiIsIm9yY2hfaWQiOiI3ODQ5ZjVhYi05MzE0LTQ2NDUtODgzNC0zZmYzN2M0YjhkZGMucHVibGlzaC5wdWJsaXNoLl9fZGVmYXVsdCIsIm93bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwicGxhbl9pZCI6Ijc4NDlmNWFiLTkzMTQtNDY0NS04ODM0LTNmZjM3YzRiOGRkYyIsInJlcG9zaXRvcnlfaWQiOiIxMTI0NjcyMjM1IiwicmVwb3NpdG9yeV9vd25lcl9pZCI6IjU0ODMxNTE1IiwicmVwb3NpdG9yeV92aXNpYmlsaXR5IjoicHJpdmF0ZSIsInJ1bl9pZCI6IjI2NjI1OTE1NjkwIiwicnVuX251bWJlciI6IjEwMCIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDAwNzMzODYiLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czo3ODQ5ZjVhYi05MzE0LTQ2NDUtODgzNC0zZmYzN2M0YjhkZGM6N2QwZTI5ZWUtMmQ3Ny01Yzg1LWI4ODEtNGI4N2JlY2VjOGUyIEFjdGlvbnMuUnVubmVyOjc4NDlmNWFiLTkzMTQtNDY0NS04ODM0LTNmZjM3YzRiOGRkYzo3ZDBlMjllZS0yZDc3LTVjODUtYjg4MS00Yjg3YmVjZWM4ZTIgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6Nzg0OWY1YWItOTMxNC00NjQ1LTg4MzQtM2ZmMzdjNGI4ZGRjOjdkMGUyOWVlLTJkNzctNWM4NS1iODgxLTRiODdiZWNlYzhlMiBnZW5lcmF0ZV9pZF90b2tlbjo3ODQ5ZjVhYi05MzE0LTQ2NDUtODgzNC0zZmYzN2M0YjhkZGM6N2QwZTI5ZWUtMmQ3Ny01Yzg1LWI4ODEtNGI4N2JlY2VjOGUyIEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiNjNhOWRmNzgzYzFiN2Q4M2JlMDg2OTIwOGZjMWZiNDk2YjI2ZGM3OSIsInRydXN0X3RpZXIiOiIxIn0.ygVmYD1dbUN3h8WckO7HH4P56-XDWresTReo45RthWWYN6ANX57WC9DU6WKOBLZGAeObZxzNi6_hmk3rpNjg-pshSjgJ1NuJEe2U7t_QIMHJZVyc7deJB3FQIqFApjncVlRvWbdtwuWy9iBogm7yYOfIEaWX9Hjua0HNsZiE9FgUyQox-onp2wJHVNXfsmOlLLbQWMbEkZvEohcRJs2qGlFmKq8EltkecaLbwziTOnjr9zAPEJhki7f_m79buBgAEj6504JZGM3M24DHa6Lgw11NSmSvUMc9iU-3wDG0rbRu8cKGt0xbvpOY2ptpYXTMNWsxUffQdP_EVKs9Zns0og", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_package_dependencies_axios: "^1.7.7", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/24.5.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_212dee19-c4df-4068-a171-13c34d3fbefb", INVOCATION_ID: "ea1511994a0846939d8d50c1ac1e7d8e", 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: "100", GITHUB_TRIGGERING_ACTOR: "Casta-mere", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --access public --tag latest --no-git-checks", npm_package_scripts_publish_npm_beta: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --access public --tag beta --no-git-checks", npm_package_scripts_publish_github: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --tag latest --no-git-checks", npm_package_scripts_publish_github_beta: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --tag beta --no-git-checks", npm_config_frozen_lockfile: "", npm_package_devDependencies__vitest_ui: "^1.2.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies__vue_eslint_config_typescript: "^12.0.0", npm_package_devDependencies_eslint: "^9.39.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000073386", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "feat/apply-figma-design-clean", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "^2.14.36", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__casl_ability: "^3.4.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^4.0.0", npm_package_devDependencies__vue_eslint_config_prettier: "^8.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.0.17-dev.2", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts", npm_package_dependencies__feedmepos_hrm_permission: "workspace:*", npm_package_devDependencies__rushstack_eslint_patch: "^1.3.3", npm_package_devDependencies_eslint_plugin_unused_imports: "^4.3.0", npm_package_devDependencies_jsdom: "^24.0.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_uuid: "^10.0.0", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "63a9df783c1b7d83be0869208fc1fb496b26dc79", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.2", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/feat/apply-figma-design-clean", GITHUB_ACTOR: "Casta-mere", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", npm_package_devDependencies_globals: "^16.5.0", npm_package_scripts_format: "prettier --write src/", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_a045c1ac-d974-4bf0-a07d-66d69817a156", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "82298017", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_package_devDependencies_vue_eslint_parser: "^10.2.0", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/173//idtoken/7849f5ab-9314-4645-8834-3ff37c4b8ddc/7d0e29ee-2d77-5c85-b881-4b87becec8e2?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_a045c1ac-d974-4bf0-a07d-66d69817a156", npm_package_exports___types: "./dist/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_feature_flag: "^0.0.15", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_devDependencies_eslint_plugin_vue: "^9.33.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_14.6.0", 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_a045c1ac-d974-4bf0-a07d-66d69817a156", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1839
|
-
const
|
|
1840
|
-
function
|
|
1838
|
+
var Ka = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_0a98789b-bda3-48bb-ba13-1f807a2683e0", npm_package_devDependencies__types_node: "^18.17.17", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", npm_package_devDependencies_vitest: "^1.2.0", USER: "runner", npm_config_always_auth: "", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v24.5.0 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.16", npm_package_devDependencies_vue_i18n: "10.0.5", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_0a98789b-bda3-48bb-ba13-1f807a2683e0", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.2.0", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_files_0: "dist", npm_package_devDependencies_eslint_import_resolver_typescript: "^4.4.4", HOME: "/home/runner", npm_package_devDependencies__eslint_js: "^9.39.2", npm_package_devDependencies__typescript_eslint_parser: "^8.52.0", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_devDependencies_eslint_config_prettier: "^10.1.8", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.5.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "^1.29.10", npm_package_devDependencies_code_inspector_plugin: "^0.20.16", npm_package_devDependencies_npm_run_all2: "^6.0.6", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1849", ACTIONS_ORCHESTRATION_ID: "17438128-6fd9-4cd6-850e-7f8cf64f4859.publish.publish.__default", npm_package_dependencies__feedmepos_ui_library: "^1.10.6", npm_package_dependencies_dayjs: "^1.11.10", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "VITE_TARGET_ENV=dev pnpm build:mf && pnpm build:dts", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.9.3", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^2.0.6", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260525.161.1", npm_package_scripts_dev: "vite", npm_package_devDependencies_prettier: "^3.7.4", npm_package_devDependencies_sass_embedded: "^1.93.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_devDependencies__vue_tsconfig: "^0.4.0", npm_package_devDependencies_eslint_plugin_import: "^2.32.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:10904", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.16", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^8.52.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.10/x64", GITHUB_RUN_ID: "26627495912", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "f0ba85fb30d1455771547913b8449b670f55158f", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/feat/apply-figma-design-clean", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9mZWF0L2FwcGx5LWZpZ21hLWRlc2lnbi1jbGVhblwiLFwiUGVybWlzc2lvblwiOjN9LHtcIlNjb3BlXCI6XCJyZWZzL2hlYWRzL21haW5cIixcIlBlcm1pc3Npb25cIjoxfV0iLCJhY3NsIjoiMTAiLCJhdWQiOiJ2c286NmY5NmZhODktYjdiZi00ODc4LWJhZDMtODk4MDA2NTY2YjZlIiwiYmlsbGluZ19vd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsImV4cCI6MTc4MDA2NjQwNCwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiaWF0IjoxNzgwMDQ0MjA0LCJpc3MiOiJodHRwczovL3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tIiwiam9iX2lkIjoiMjBkOWJmZGItMDkxOS01ZTMwLWFlNWYtMTQ3YjgzYTllOTRkIiwibmFtZWlkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwibmJmIjoxNzgwMDQzOTA0LCJvaWRjX2V4dHJhIjoie1wiYWN0b3JcIjpcIkNhc3RhLW1lcmVcIixcImFjdG9yX2lkXCI6XCI4MjI5ODAxN1wiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI3ODQ2NzcxNTA4MlwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiMjIwZjdlNzZlMGRjYTA5M2M0NzUwMzdiOGU3YzBmNTUzYjYxNzIzOVwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL2ZlYXQvYXBwbHktZmlnbWEtZGVzaWduLWNsZWFuXCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjI2NjI3NDk1OTEyXCIsXCJydW5fbnVtYmVyXCI6XCIxMDFcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCJmMGJhODVmYjMwZDE0NTU3NzE1NDc5MTNiODQ0OWI2NzBmNTUxNThmXCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy9mZWF0L2FwcGx5LWZpZ21hLWRlc2lnbi1jbGVhblwiLFwid29ya2Zsb3dfc2hhXCI6XCJmMGJhODVmYjMwZDE0NTU3NzE1NDc5MTNiODQ0OWI2NzBmNTUxNThmXCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9mZWF0L2FwcGx5LWZpZ21hLWRlc2lnbi1jbGVhbiIsIm9yY2hfaWQiOiIxNzQzODEyOC02ZmQ5LTRjZDYtODUwZS03ZjhjZjY0ZjQ4NTkucHVibGlzaC5wdWJsaXNoLl9fZGVmYXVsdCIsIm93bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwicGxhbl9pZCI6IjE3NDM4MTI4LTZmZDktNGNkNi04NTBlLTdmOGNmNjRmNDg1OSIsInJlcG9zaXRvcnlfaWQiOiIxMTI0NjcyMjM1IiwicmVwb3NpdG9yeV9vd25lcl9pZCI6IjU0ODMxNTE1IiwicmVwb3NpdG9yeV92aXNpYmlsaXR5IjoicHJpdmF0ZSIsInJ1bl9pZCI6IjI2NjI3NDk1OTEyIiwicnVuX251bWJlciI6IjEwMSIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDAwNzM0MjAiLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czoxNzQzODEyOC02ZmQ5LTRjZDYtODUwZS03ZjhjZjY0ZjQ4NTk6MjBkOWJmZGItMDkxOS01ZTMwLWFlNWYtMTQ3YjgzYTllOTRkIEFjdGlvbnMuUnVubmVyOjE3NDM4MTI4LTZmZDktNGNkNi04NTBlLTdmOGNmNjRmNDg1OToyMGQ5YmZkYi0wOTE5LTVlMzAtYWU1Zi0xNDdiODNhOWU5NGQgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6MTc0MzgxMjgtNmZkOS00Y2Q2LTg1MGUtN2Y4Y2Y2NGY0ODU5OjIwZDliZmRiLTA5MTktNWUzMC1hZTVmLTE0N2I4M2E5ZTk0ZCBnZW5lcmF0ZV9pZF90b2tlbjoxNzQzODEyOC02ZmQ5LTRjZDYtODUwZS03ZjhjZjY0ZjQ4NTk6MjBkOWJmZGItMDkxOS01ZTMwLWFlNWYtMTQ3YjgzYTllOTRkIEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiZjBiYTg1ZmIzMGQxNDU1NzcxNTQ3OTEzYjg0NDliNjcwZjU1MTU4ZiIsInRydXN0X3RpZXIiOiIxIn0.aeS4xo_WI64A0OPHk-__e-ZFLj7-euh2gd2Hv9y90_ZngV0i5AAjg5zWMgBuCbDMraMsgot-pV7-fP-rxbf84QuilfkvGmsLchGNKg2KLGKTA6hQpJIpQ4sH44n2GP8lfmIab720KqcCc38wASM6qU0O75WOK-COU5Uukld1OBsJal69R2-UP0VoVcZK8MX8SCe5iIb7I1XMwyn4G7vmGBz70s0fZNn6o92eqhEGuDe9d77iPYCsWDLJfyd2iBMoGHRy__tTtgubc66dc6ujPQHr0UeENxUSmiXafBRMOALaCWER3QhJBLEqKylsH1zKTIYyFDGHuyYPOkIAx5wJww", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_package_dependencies_axios: "^1.7.7", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/24.5.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_66c20d25-8c22-4fdb-a2b9-d9cdcf346a78", INVOCATION_ID: "ac78e26f0bba4d7ab68b7053e455cdd2", 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: "101", GITHUB_TRIGGERING_ACTOR: "Casta-mere", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --access public --tag latest --no-git-checks", npm_package_scripts_publish_npm_beta: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --access public --tag beta --no-git-checks", npm_package_scripts_publish_github: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --tag latest --no-git-checks", npm_package_scripts_publish_github_beta: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --tag beta --no-git-checks", npm_config_frozen_lockfile: "", npm_package_devDependencies__vitest_ui: "^1.2.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies__vue_eslint_config_typescript: "^12.0.0", npm_package_devDependencies_eslint: "^9.39.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000073420", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "feat/apply-figma-design-clean", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "^2.14.36", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__casl_ability: "^3.4.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^4.0.0", npm_package_devDependencies__vue_eslint_config_prettier: "^8.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.0.17-dev.3", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts", npm_package_dependencies__feedmepos_hrm_permission: "workspace:*", npm_package_devDependencies__rushstack_eslint_patch: "^1.3.3", npm_package_devDependencies_eslint_plugin_unused_imports: "^4.3.0", npm_package_devDependencies_jsdom: "^24.0.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_uuid: "^10.0.0", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "f0ba85fb30d1455771547913b8449b670f55158f", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.2", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/feat/apply-figma-design-clean", GITHUB_ACTOR: "Casta-mere", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", npm_package_devDependencies_globals: "^16.5.0", npm_package_scripts_format: "prettier --write src/", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_0a98789b-bda3-48bb-ba13-1f807a2683e0", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "82298017", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_package_devDependencies_vue_eslint_parser: "^10.2.0", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/179//idtoken/17438128-6fd9-4cd6-850e-7f8cf64f4859/20d9bfdb-0919-5e30-ae5f-147b83a9e94d?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_0a98789b-bda3-48bb-ba13-1f807a2683e0", npm_package_exports___types: "./dist/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_feature_flag: "^0.0.15", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_devDependencies_eslint_plugin_vue: "^9.33.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_14.6.0", 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_0a98789b-bda3-48bb-ba13-1f807a2683e0", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1839
|
+
const Qa = "10.0.5";
|
|
1840
|
+
function za() {
|
|
1841
1841
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Fe().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Fe().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Fe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Fe().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1842
1842
|
}
|
|
1843
|
-
const
|
|
1843
|
+
const Be = {
|
|
1844
1844
|
// composer module errors
|
|
1845
1845
|
UNEXPECTED_RETURN_TYPE: pa,
|
|
1846
1846
|
// 24
|
|
@@ -1854,9 +1854,9 @@ const Ye = {
|
|
|
1854
1854
|
UNEXPECTED_ERROR: 32
|
|
1855
1855
|
};
|
|
1856
1856
|
function et(e, ...t) {
|
|
1857
|
-
return
|
|
1857
|
+
return gt(e, null, void 0);
|
|
1858
1858
|
}
|
|
1859
|
-
const Ut = /* @__PURE__ */ je("__translateVNode"), Vt = /* @__PURE__ */ je("__datetimeParts"), Gt = /* @__PURE__ */ je("__numberParts"), qa = je("__setPluralRules"),
|
|
1859
|
+
const Ut = /* @__PURE__ */ je("__translateVNode"), Vt = /* @__PURE__ */ je("__datetimeParts"), Gt = /* @__PURE__ */ je("__numberParts"), qa = je("__setPluralRules"), xn = /* @__PURE__ */ je("__injectWithOption"), Wt = /* @__PURE__ */ je("__dispose");
|
|
1860
1860
|
function tt(e) {
|
|
1861
1861
|
if (!J(e))
|
|
1862
1862
|
return e;
|
|
@@ -1878,7 +1878,7 @@ function tt(e) {
|
|
|
1878
1878
|
}
|
|
1879
1879
|
return e;
|
|
1880
1880
|
}
|
|
1881
|
-
function
|
|
1881
|
+
function Zn(e, t) {
|
|
1882
1882
|
const { messages: n, __i18n: s, messageResolver: l, flatJson: a } = t, c = $(n) ? n : ue(s) ? q() : { [e]: q() };
|
|
1883
1883
|
if (ue(s) && s.forEach((u) => {
|
|
1884
1884
|
if ("locale" in u && "resource" in u) {
|
|
@@ -1896,7 +1896,7 @@ function Xn(e) {
|
|
|
1896
1896
|
}
|
|
1897
1897
|
function er(e, t, n) {
|
|
1898
1898
|
let s = J(t.messages) ? t.messages : q();
|
|
1899
|
-
"__i18nGlobal" in n && (s =
|
|
1899
|
+
"__i18nGlobal" in n && (s = Zn(e.locale.value, {
|
|
1900
1900
|
messages: s,
|
|
1901
1901
|
__i18n: n.__i18nGlobal
|
|
1902
1902
|
}));
|
|
@@ -1920,15 +1920,15 @@ function er(e, t, n) {
|
|
|
1920
1920
|
}
|
|
1921
1921
|
}
|
|
1922
1922
|
function En(e) {
|
|
1923
|
-
return _e(
|
|
1923
|
+
return _e(zn, null, e, 0);
|
|
1924
1924
|
}
|
|
1925
1925
|
const Nn = "__INTLIFY_META__", yn = () => [], tr = () => !1;
|
|
1926
|
-
let
|
|
1927
|
-
function
|
|
1928
|
-
return (t, n, s, l) => e(n, s,
|
|
1926
|
+
let Tn = 0;
|
|
1927
|
+
function kn(e) {
|
|
1928
|
+
return (t, n, s, l) => e(n, s, xt() || void 0, l);
|
|
1929
1929
|
}
|
|
1930
1930
|
const nr = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1931
|
-
const e =
|
|
1931
|
+
const e = xt();
|
|
1932
1932
|
let t = null;
|
|
1933
1933
|
return e && (t = Xn(e)[Nn]) ? { [Nn]: t } : null;
|
|
1934
1934
|
};
|
|
@@ -1941,14 +1941,14 @@ function sr(e = {}) {
|
|
|
1941
1941
|
), m = a(
|
|
1942
1942
|
// prettier-ignore
|
|
1943
1943
|
t && c ? t.fallbackLocale.value : P(e.fallbackLocale) || ue(e.fallbackLocale) || $(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
1944
|
-
), p = a(
|
|
1945
|
-
let O = t ? t.missingWarn : ce(e.missingWarn) || _t(e.missingWarn) ? e.missingWarn : !0, w = t ? t.fallbackWarn : ce(e.fallbackWarn) || _t(e.fallbackWarn) ? e.fallbackWarn : !0, V = t ? t.fallbackRoot : ce(e.fallbackRoot) ? e.fallbackRoot : !0,
|
|
1944
|
+
), p = a(Zn(u.value, e)), y = a($(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), k = a($(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
|
|
1945
|
+
let O = t ? t.missingWarn : ce(e.missingWarn) || _t(e.missingWarn) ? e.missingWarn : !0, w = t ? t.fallbackWarn : ce(e.fallbackWarn) || _t(e.fallbackWarn) ? e.fallbackWarn : !0, V = t ? t.fallbackRoot : ce(e.fallbackRoot) ? e.fallbackRoot : !0, R = !!e.fallbackFormat, M = se(e.missing) ? e.missing : null, i = se(e.missing) ? kn(e.missing) : null, d = se(e.postTranslation) ? e.postTranslation : null, L = t ? t.warnHtmlMessage : ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, _ = !!e.escapeParameter;
|
|
1946
1946
|
const S = t ? t.modifiers : $(e.modifiers) ? e.modifiers : {};
|
|
1947
1947
|
let D = e.pluralRules || t && t.pluralRules, I;
|
|
1948
1948
|
I = (() => {
|
|
1949
1949
|
s && dn(null);
|
|
1950
1950
|
const f = {
|
|
1951
|
-
version:
|
|
1951
|
+
version: Qa,
|
|
1952
1952
|
locale: u.value,
|
|
1953
1953
|
fallbackLocale: m.value,
|
|
1954
1954
|
messages: p.value,
|
|
@@ -1957,7 +1957,7 @@ function sr(e = {}) {
|
|
|
1957
1957
|
missing: i === null ? void 0 : i,
|
|
1958
1958
|
missingWarn: O,
|
|
1959
1959
|
fallbackWarn: w,
|
|
1960
|
-
fallbackFormat:
|
|
1960
|
+
fallbackFormat: R,
|
|
1961
1961
|
unresolving: !0,
|
|
1962
1962
|
postTranslation: d === null ? void 0 : d,
|
|
1963
1963
|
warnHtmlMessage: L,
|
|
@@ -1966,30 +1966,30 @@ function sr(e = {}) {
|
|
|
1966
1966
|
messageCompiler: e.messageCompiler,
|
|
1967
1967
|
__meta: { framework: "vue" }
|
|
1968
1968
|
};
|
|
1969
|
-
f.datetimeFormats = y.value, f.numberFormats =
|
|
1970
|
-
const
|
|
1971
|
-
return s && dn(
|
|
1969
|
+
f.datetimeFormats = y.value, f.numberFormats = k.value, f.__datetimeFormatters = $(I) ? I.__datetimeFormatters : void 0, f.__numberFormatters = $(I) ? I.__numberFormatters : void 0;
|
|
1970
|
+
const T = Pa(f);
|
|
1971
|
+
return s && dn(T), T;
|
|
1972
1972
|
})(), Ke(I, u.value, m.value);
|
|
1973
|
-
function
|
|
1973
|
+
function h() {
|
|
1974
1974
|
return [
|
|
1975
1975
|
u.value,
|
|
1976
1976
|
m.value,
|
|
1977
1977
|
p.value,
|
|
1978
1978
|
y.value,
|
|
1979
|
-
|
|
1979
|
+
k.value
|
|
1980
1980
|
];
|
|
1981
1981
|
}
|
|
1982
|
-
const
|
|
1982
|
+
const g = z({
|
|
1983
1983
|
get: () => u.value,
|
|
1984
1984
|
set: (f) => {
|
|
1985
1985
|
u.value = f, I.locale = u.value;
|
|
1986
1986
|
}
|
|
1987
|
-
}),
|
|
1987
|
+
}), C = z({
|
|
1988
1988
|
get: () => m.value,
|
|
1989
1989
|
set: (f) => {
|
|
1990
1990
|
m.value = f, I.fallbackLocale = m.value, Ke(I, u.value, f);
|
|
1991
1991
|
}
|
|
1992
|
-
}), E =
|
|
1992
|
+
}), E = z(() => p.value), F = /* @__PURE__ */ z(() => y.value), Z = /* @__PURE__ */ z(() => k.value);
|
|
1993
1993
|
function v() {
|
|
1994
1994
|
return se(d) ? d : null;
|
|
1995
1995
|
}
|
|
@@ -2000,10 +2000,10 @@ function sr(e = {}) {
|
|
|
2000
2000
|
return M;
|
|
2001
2001
|
}
|
|
2002
2002
|
function G(f) {
|
|
2003
|
-
f !== null && (i =
|
|
2003
|
+
f !== null && (i = kn(f)), M = f, I.missing = i;
|
|
2004
2004
|
}
|
|
2005
|
-
const W = (f,
|
|
2006
|
-
|
|
2005
|
+
const W = (f, T, te, le, Pe, st) => {
|
|
2006
|
+
h();
|
|
2007
2007
|
let Ge;
|
|
2008
2008
|
try {
|
|
2009
2009
|
Ka.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (I.fallbackContext = t ? wa() : void 0), Ge = f(I);
|
|
@@ -2012,129 +2012,129 @@ function sr(e = {}) {
|
|
|
2012
2012
|
}
|
|
2013
2013
|
if (te !== "translate exists" && // for not `te` (e.g `t`)
|
|
2014
2014
|
de(Ge) && Ge === vt || te === "translate exists" && !Ge) {
|
|
2015
|
-
const [$n, Gr] =
|
|
2015
|
+
const [$n, Gr] = T();
|
|
2016
2016
|
return t && V ? le(t) : Pe($n);
|
|
2017
2017
|
} else {
|
|
2018
2018
|
if (st(Ge))
|
|
2019
2019
|
return Ge;
|
|
2020
|
-
throw et(
|
|
2020
|
+
throw et(Be.UNEXPECTED_RETURN_TYPE);
|
|
2021
2021
|
}
|
|
2022
2022
|
};
|
|
2023
2023
|
function j(...f) {
|
|
2024
|
-
return W((
|
|
2024
|
+
return W((T) => Reflect.apply(In, null, [T, ...f]), () => jt(...f), "translate", (T) => Reflect.apply(T.t, T, [...f]), (T) => T, (T) => P(T));
|
|
2025
2025
|
}
|
|
2026
2026
|
function ee(...f) {
|
|
2027
|
-
const [
|
|
2027
|
+
const [T, te, le] = f;
|
|
2028
2028
|
if (le && !J(le))
|
|
2029
|
-
throw et(
|
|
2030
|
-
return j(
|
|
2029
|
+
throw et(Be.INVALID_ARGUMENT);
|
|
2030
|
+
return j(T, te, fe({ resolvedMessage: !0 }, le || {}));
|
|
2031
2031
|
}
|
|
2032
|
-
function
|
|
2033
|
-
return W((
|
|
2032
|
+
function B(...f) {
|
|
2033
|
+
return W((T) => Reflect.apply(_n, null, [T, ...f]), () => Pt(...f), "datetime format", (T) => Reflect.apply(T.d, T, [...f]), () => un, (T) => P(T));
|
|
2034
2034
|
}
|
|
2035
|
-
function
|
|
2036
|
-
return W((
|
|
2035
|
+
function he(...f) {
|
|
2036
|
+
return W((T) => Reflect.apply(bn, null, [T, ...f]), () => Ft(...f), "number format", (T) => Reflect.apply(T.n, T, [...f]), () => un, (T) => P(T));
|
|
2037
2037
|
}
|
|
2038
|
-
function
|
|
2039
|
-
return f.map((
|
|
2038
|
+
function x(f) {
|
|
2039
|
+
return f.map((T) => P(T) || de(T) || ce(T) ? En(String(T)) : T);
|
|
2040
2040
|
}
|
|
2041
2041
|
const ne = {
|
|
2042
|
-
normalize:
|
|
2042
|
+
normalize: x,
|
|
2043
2043
|
interpolate: (f) => f,
|
|
2044
2044
|
type: "vnode"
|
|
2045
2045
|
};
|
|
2046
2046
|
function Ie(...f) {
|
|
2047
|
-
return W((
|
|
2047
|
+
return W((T) => {
|
|
2048
2048
|
let te;
|
|
2049
|
-
const le =
|
|
2049
|
+
const le = T;
|
|
2050
2050
|
try {
|
|
2051
2051
|
le.processor = ne, te = Reflect.apply(In, null, [le, ...f]);
|
|
2052
2052
|
} finally {
|
|
2053
2053
|
le.processor = null;
|
|
2054
2054
|
}
|
|
2055
2055
|
return te;
|
|
2056
|
-
}, () => jt(...f), "translate", (
|
|
2056
|
+
}, () => jt(...f), "translate", (T) => T[Ut](...f), (T) => [En(T)], (T) => ue(T));
|
|
2057
2057
|
}
|
|
2058
2058
|
function He(...f) {
|
|
2059
|
-
return W((
|
|
2059
|
+
return W((T) => Reflect.apply(bn, null, [T, ...f]), () => Ft(...f), "number format", (T) => T[Gt](...f), yn, (T) => P(T) || ue(T));
|
|
2060
2060
|
}
|
|
2061
|
-
function
|
|
2062
|
-
return W((
|
|
2061
|
+
function Ye(...f) {
|
|
2062
|
+
return W((T) => Reflect.apply(_n, null, [T, ...f]), () => Pt(...f), "datetime format", (T) => T[Vt](...f), yn, (T) => P(T) || ue(T));
|
|
2063
2063
|
}
|
|
2064
2064
|
function Et(f) {
|
|
2065
2065
|
D = f, I.pluralRules = D;
|
|
2066
2066
|
}
|
|
2067
|
-
function Nt(f,
|
|
2067
|
+
function Nt(f, T) {
|
|
2068
2068
|
return W(() => {
|
|
2069
2069
|
if (!f)
|
|
2070
2070
|
return !1;
|
|
2071
|
-
const te = P(
|
|
2071
|
+
const te = P(T) ? T : u.value, le = Ue(te), Pe = I.messageResolver(le, f);
|
|
2072
2072
|
return Xe(Pe) || ve(Pe) || P(Pe);
|
|
2073
|
-
}, () => [f], "translate exists", (te) => Reflect.apply(te.te, te, [f,
|
|
2073
|
+
}, () => [f], "translate exists", (te) => Reflect.apply(te.te, te, [f, T]), tr, (te) => ce(te));
|
|
2074
2074
|
}
|
|
2075
2075
|
function yt(f) {
|
|
2076
|
-
let
|
|
2076
|
+
let T = null;
|
|
2077
2077
|
const te = Dn(I, m.value, u.value);
|
|
2078
2078
|
for (let le = 0; le < te.length; le++) {
|
|
2079
2079
|
const Pe = p.value[te[le]] || {}, st = I.messageResolver(Pe, f);
|
|
2080
2080
|
if (st != null) {
|
|
2081
|
-
|
|
2081
|
+
T = st;
|
|
2082
2082
|
break;
|
|
2083
2083
|
}
|
|
2084
2084
|
}
|
|
2085
|
-
return
|
|
2085
|
+
return T;
|
|
2086
2086
|
}
|
|
2087
2087
|
function $e(f) {
|
|
2088
|
-
const
|
|
2089
|
-
return
|
|
2088
|
+
const T = yt(f);
|
|
2089
|
+
return T ?? (t ? t.tm(f) || {} : {});
|
|
2090
2090
|
}
|
|
2091
2091
|
function Ue(f) {
|
|
2092
2092
|
return p.value[f] || {};
|
|
2093
2093
|
}
|
|
2094
|
-
function Ve(f,
|
|
2094
|
+
function Ve(f, T) {
|
|
2095
2095
|
if (l) {
|
|
2096
|
-
const te = { [f]:
|
|
2096
|
+
const te = { [f]: T };
|
|
2097
2097
|
for (const le in te)
|
|
2098
2098
|
Ee(te, le) && tt(te[le]);
|
|
2099
|
-
|
|
2099
|
+
T = te[f];
|
|
2100
2100
|
}
|
|
2101
|
-
p.value[f] =
|
|
2101
|
+
p.value[f] = T, I.messages = p.value;
|
|
2102
2102
|
}
|
|
2103
|
-
function Je(f,
|
|
2103
|
+
function Je(f, T) {
|
|
2104
2104
|
p.value[f] = p.value[f] || {};
|
|
2105
|
-
const te = { [f]:
|
|
2105
|
+
const te = { [f]: T };
|
|
2106
2106
|
if (l)
|
|
2107
2107
|
for (const le in te)
|
|
2108
2108
|
Ee(te, le) && tt(te[le]);
|
|
2109
|
-
|
|
2109
|
+
T = te[f], ft(T, p.value[f]), I.messages = p.value;
|
|
2110
2110
|
}
|
|
2111
|
-
function
|
|
2111
|
+
function Tt(f) {
|
|
2112
2112
|
return y.value[f] || {};
|
|
2113
2113
|
}
|
|
2114
|
-
function r(f,
|
|
2115
|
-
y.value[f] =
|
|
2114
|
+
function r(f, T) {
|
|
2115
|
+
y.value[f] = T, I.datetimeFormats = y.value, pn(I, f, T);
|
|
2116
2116
|
}
|
|
2117
|
-
function o(f,
|
|
2118
|
-
y.value[f] = fe(y.value[f] || {},
|
|
2117
|
+
function o(f, T) {
|
|
2118
|
+
y.value[f] = fe(y.value[f] || {}, T), I.datetimeFormats = y.value, pn(I, f, T);
|
|
2119
2119
|
}
|
|
2120
2120
|
function b(f) {
|
|
2121
|
-
return
|
|
2121
|
+
return k.value[f] || {};
|
|
2122
2122
|
}
|
|
2123
|
-
function U(f,
|
|
2124
|
-
|
|
2123
|
+
function U(f, T) {
|
|
2124
|
+
k.value[f] = T, I.numberFormats = k.value, hn(I, f, T);
|
|
2125
2125
|
}
|
|
2126
|
-
function re(f,
|
|
2127
|
-
|
|
2126
|
+
function re(f, T) {
|
|
2127
|
+
k.value[f] = fe(k.value[f] || {}, T), I.numberFormats = k.value, hn(I, f, T);
|
|
2128
2128
|
}
|
|
2129
|
-
|
|
2129
|
+
Tn++, t && qt && (St(t.locale, (f) => {
|
|
2130
2130
|
c && (u.value = f, I.locale = f, Ke(I, u.value, m.value));
|
|
2131
2131
|
}), St(t.fallbackLocale, (f) => {
|
|
2132
2132
|
c && (m.value = f, I.fallbackLocale = f, Ke(I, u.value, m.value));
|
|
2133
2133
|
}));
|
|
2134
2134
|
const X = {
|
|
2135
|
-
id:
|
|
2136
|
-
locale:
|
|
2137
|
-
fallbackLocale:
|
|
2135
|
+
id: Tn,
|
|
2136
|
+
locale: g,
|
|
2137
|
+
fallbackLocale: C,
|
|
2138
2138
|
get inheritLocale() {
|
|
2139
2139
|
return c;
|
|
2140
2140
|
},
|
|
@@ -2173,10 +2173,10 @@ function sr(e = {}) {
|
|
|
2173
2173
|
V = f;
|
|
2174
2174
|
},
|
|
2175
2175
|
get fallbackFormat() {
|
|
2176
|
-
return
|
|
2176
|
+
return R;
|
|
2177
2177
|
},
|
|
2178
2178
|
set fallbackFormat(f) {
|
|
2179
|
-
|
|
2179
|
+
R = f, I.fallbackFormat = R;
|
|
2180
2180
|
},
|
|
2181
2181
|
get warnHtmlMessage() {
|
|
2182
2182
|
return L;
|
|
@@ -2200,7 +2200,7 @@ function sr(e = {}) {
|
|
|
2200
2200
|
setMissingHandler: G,
|
|
2201
2201
|
[qa]: Et
|
|
2202
2202
|
};
|
|
2203
|
-
return X.datetimeFormats = F, X.numberFormats =
|
|
2203
|
+
return X.datetimeFormats = F, X.numberFormats = Z, X.rt = ee, X.te = Nt, X.tm = $e, X.d = B, X.n = he, X.getDateTimeFormat = Tt, X.setDateTimeFormat = r, X.mergeDateTimeFormat = o, X.getNumberFormat = b, X.setNumberFormat = U, X.mergeNumberFormat = re, X[xn] = n, X[Ut] = Ie, X[Vt] = Ye, X[Gt] = He, X;
|
|
2204
2204
|
}
|
|
2205
2205
|
const Kt = {
|
|
2206
2206
|
tag: {
|
|
@@ -2230,7 +2230,7 @@ function ar({ slots: e }, t) {
|
|
|
2230
2230
|
return l && (n[s] = l()), n;
|
|
2231
2231
|
}, q());
|
|
2232
2232
|
}
|
|
2233
|
-
function
|
|
2233
|
+
function Bn() {
|
|
2234
2234
|
return ye;
|
|
2235
2235
|
}
|
|
2236
2236
|
fe({
|
|
@@ -2255,11 +2255,11 @@ function Hn(e, t, n, s) {
|
|
|
2255
2255
|
const m = s(e.value, c, u);
|
|
2256
2256
|
let p = [c.key];
|
|
2257
2257
|
ue(m) ? p = m.map((O, w) => {
|
|
2258
|
-
const V = l[O.type],
|
|
2259
|
-
return rr(
|
|
2258
|
+
const V = l[O.type], R = V ? V({ [O.type]: O.value, index: w, parts: m }) : [O.value];
|
|
2259
|
+
return rr(R) && (R[0].key = `${O.type}-${w}`), R;
|
|
2260
2260
|
}) : P(m) && (p = [m]);
|
|
2261
|
-
const y = fe(q(), a),
|
|
2262
|
-
return An(
|
|
2261
|
+
const y = fe(q(), a), k = P(e.tag) || J(e.tag) ? e.tag : Bn();
|
|
2262
|
+
return An(k, y, p);
|
|
2263
2263
|
};
|
|
2264
2264
|
}
|
|
2265
2265
|
fe({
|
|
@@ -2282,11 +2282,11 @@ fe({
|
|
|
2282
2282
|
}, Kt);
|
|
2283
2283
|
const lr = /* @__PURE__ */ je("global-vue-i18n");
|
|
2284
2284
|
function It(e = {}) {
|
|
2285
|
-
const t =
|
|
2285
|
+
const t = xt();
|
|
2286
2286
|
if (t == null)
|
|
2287
|
-
throw et(
|
|
2287
|
+
throw et(Be.MUST_BE_CALL_SETUP_TOP);
|
|
2288
2288
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2289
|
-
throw et(
|
|
2289
|
+
throw et(Be.NOT_INSTALLED);
|
|
2290
2290
|
const n = or(t), s = cr(n), l = Xn(t), a = ir(e, l);
|
|
2291
2291
|
if (a === "global")
|
|
2292
2292
|
return er(s, e, l), s;
|
|
@@ -2305,11 +2305,11 @@ function It(e = {}) {
|
|
|
2305
2305
|
function or(e) {
|
|
2306
2306
|
const t = Jn(e.isCE ? lr : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2307
2307
|
if (!t)
|
|
2308
|
-
throw et(e.isCE ?
|
|
2308
|
+
throw et(e.isCE ? Be.NOT_INSTALLED_WITH_PROVIDE : Be.UNEXPECTED_ERROR);
|
|
2309
2309
|
return t;
|
|
2310
2310
|
}
|
|
2311
2311
|
function ir(e, t) {
|
|
2312
|
-
return
|
|
2312
|
+
return ht(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2313
2313
|
}
|
|
2314
2314
|
function cr(e) {
|
|
2315
2315
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
@@ -2324,7 +2324,7 @@ function ur(e, t, n = !1) {
|
|
|
2324
2324
|
s = c.__getInstance(a);
|
|
2325
2325
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
2326
2326
|
const u = c.__getInstance(a);
|
|
2327
|
-
u != null && (s = u.__composer, n && s && !s[
|
|
2327
|
+
u != null && (s = u.__composer, n && s && !s[xn] && (s = null));
|
|
2328
2328
|
}
|
|
2329
2329
|
if (s != null || l === a)
|
|
2330
2330
|
break;
|
|
@@ -2336,16 +2336,16 @@ function mr(e, t = !1) {
|
|
|
2336
2336
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2337
2337
|
}
|
|
2338
2338
|
function dr(e, t, n) {
|
|
2339
|
-
|
|
2340
|
-
}, t),
|
|
2339
|
+
Rn(() => {
|
|
2340
|
+
}, t), Qn(() => {
|
|
2341
2341
|
const s = n;
|
|
2342
2342
|
e.__deleteInstance(t);
|
|
2343
2343
|
const l = s[Wt];
|
|
2344
2344
|
l && (l(), delete s[Wt]);
|
|
2345
2345
|
}, t);
|
|
2346
2346
|
}
|
|
2347
|
-
|
|
2348
|
-
|
|
2347
|
+
za();
|
|
2348
|
+
Ra(ua);
|
|
2349
2349
|
Aa(Oa);
|
|
2350
2350
|
Sa(Dn);
|
|
2351
2351
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
@@ -2363,16 +2363,16 @@ const it = /* @__PURE__ */ Oe({
|
|
|
2363
2363
|
setup(e) {
|
|
2364
2364
|
const { t } = It();
|
|
2365
2365
|
return (n, s) => {
|
|
2366
|
-
const l =
|
|
2367
|
-
return
|
|
2366
|
+
const l = Qe("FmIcon"), a = Qe("FmTooltip");
|
|
2367
|
+
return Q(), De(a, {
|
|
2368
2368
|
variant: "plain",
|
|
2369
2369
|
placement: "right",
|
|
2370
2370
|
"z-index": 50
|
|
2371
2371
|
}, {
|
|
2372
2372
|
content: pe(() => [
|
|
2373
|
-
ie("div", null,
|
|
2374
|
-
(
|
|
2375
|
-
ie("div", null, "- " +
|
|
2373
|
+
ie("div", null, Te(Y(t)("team.memberForm.permissions.inherited")), 1),
|
|
2374
|
+
(Q(!0), oe(ye, null, ge(e.item.setNames, (c) => (Q(), oe("div", { key: c }, [
|
|
2375
|
+
ie("div", null, "- " + Te(c), 1)
|
|
2376
2376
|
]))), 128))
|
|
2377
2377
|
]),
|
|
2378
2378
|
default: pe(() => [
|
|
@@ -2403,142 +2403,142 @@ function On(e, t, n) {
|
|
|
2403
2403
|
}
|
|
2404
2404
|
const Ln = Object.values(is);
|
|
2405
2405
|
function fr(e, t, n, s) {
|
|
2406
|
-
const { getFlagValue: l, getFlag: a } = os(), c =
|
|
2406
|
+
const { getFlagValue: l, getFlag: a } = os(), c = z(() => {
|
|
2407
2407
|
var E;
|
|
2408
|
-
const
|
|
2408
|
+
const h = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map();
|
|
2409
2409
|
for (const F of t.value) {
|
|
2410
|
-
const
|
|
2411
|
-
|
|
2410
|
+
const Z = F.category;
|
|
2411
|
+
Z && (n.value.includes(F.subject) || F.showByFeatureFlag && ((E = a(F.showByFeatureFlag)) == null ? void 0 : E.enabled) === !1 && l(F.showByFeatureFlag) === "true" || (h.has(Z) || h.set(Z, []), h.get(Z).push({ label: F.label, value: F.subject }), g.set(F.subject, F)));
|
|
2412
2412
|
}
|
|
2413
|
-
return [...
|
|
2414
|
-
const v = Ln.indexOf(F), A = Ln.indexOf(
|
|
2415
|
-
return v === -1 && A === -1 ? F.localeCompare(
|
|
2413
|
+
return [...h.keys()].sort((F, Z) => {
|
|
2414
|
+
const v = Ln.indexOf(F), A = Ln.indexOf(Z);
|
|
2415
|
+
return v === -1 && A === -1 ? F.localeCompare(Z) : v === -1 ? 1 : A === -1 ? -1 : v - A;
|
|
2416
2416
|
}).map((F) => {
|
|
2417
|
-
const
|
|
2418
|
-
for (const
|
|
2419
|
-
const ae =
|
|
2420
|
-
ae && v.set(
|
|
2417
|
+
const Z = h.get(F), v = /* @__PURE__ */ new Map();
|
|
2418
|
+
for (const x of Z) {
|
|
2419
|
+
const ae = g.get(x.value);
|
|
2420
|
+
ae && v.set(x.value, ae.actions);
|
|
2421
2421
|
}
|
|
2422
|
-
const A =
|
|
2423
|
-
const ae = v.get(
|
|
2422
|
+
const A = Z.some((x) => {
|
|
2423
|
+
const ae = v.get(x.value);
|
|
2424
2424
|
return ae && ae.length > 1;
|
|
2425
2425
|
}), N = A ? [
|
|
2426
2426
|
...new Set(
|
|
2427
|
-
|
|
2427
|
+
Z.flatMap((x) => v.get(x.value) ?? []).filter((x) => x !== "manage")
|
|
2428
2428
|
)
|
|
2429
2429
|
] : [], G = /* @__PURE__ */ new Map();
|
|
2430
|
-
for (const
|
|
2431
|
-
|
|
2430
|
+
for (const x of e.value)
|
|
2431
|
+
Z.some((ae) => ae.value === x.subject) && !x.inverted && G.set(x.subject, new Set(x.actions));
|
|
2432
2432
|
const W = A ? e.value.filter(
|
|
2433
|
-
(
|
|
2434
|
-
).map((
|
|
2433
|
+
(x) => Z.some((ae) => ae.value === x.subject) && !x.inverted && x.actions.includes("manage")
|
|
2434
|
+
).map((x) => x.subject) : e.value.filter((x) => Z.some((ae) => ae.value === x.subject) && !x.inverted).map((x) => x.subject), j = Z.find((x) => {
|
|
2435
2435
|
var ae;
|
|
2436
|
-
return (ae =
|
|
2437
|
-
}), ee = (j == null ? void 0 : j.value) ?? null,
|
|
2436
|
+
return (ae = g.get(x.value)) == null ? void 0 : ae.isCategoryCover;
|
|
2437
|
+
}), ee = (j == null ? void 0 : j.value) ?? null, B = ee ? G.get(ee) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), he = B.has("manage");
|
|
2438
2438
|
return {
|
|
2439
2439
|
category: F,
|
|
2440
|
-
options:
|
|
2440
|
+
options: Z,
|
|
2441
2441
|
selectedSubjects: W,
|
|
2442
2442
|
isMultiAction: A,
|
|
2443
2443
|
actionColumns: N,
|
|
2444
2444
|
permissionActionsMap: v,
|
|
2445
2445
|
selectedActionsMap: G,
|
|
2446
2446
|
coverSubject: ee,
|
|
2447
|
-
coverSelectedActions:
|
|
2448
|
-
coverCoversAll:
|
|
2447
|
+
coverSelectedActions: B,
|
|
2448
|
+
coverCoversAll: he
|
|
2449
2449
|
};
|
|
2450
2450
|
});
|
|
2451
2451
|
});
|
|
2452
|
-
function u(
|
|
2452
|
+
function u(h, g) {
|
|
2453
2453
|
var E;
|
|
2454
|
-
const
|
|
2454
|
+
const C = ((E = c.value.find((F) => F.category === h)) == null ? void 0 : E.options) ?? [];
|
|
2455
2455
|
s("update:model-value", [
|
|
2456
|
-
...e.value.filter((F) => !
|
|
2457
|
-
...t.value.filter((F) =>
|
|
2458
|
-
({ category: F, showByFeatureFlag:
|
|
2456
|
+
...e.value.filter((F) => !C.some((Z) => Z.value === F.subject)),
|
|
2457
|
+
...t.value.filter((F) => g.includes(F.subject)).map(
|
|
2458
|
+
({ category: F, showByFeatureFlag: Z, isCategoryCover: v, ...A }) => A
|
|
2459
2459
|
)
|
|
2460
2460
|
]);
|
|
2461
2461
|
}
|
|
2462
|
-
function m(
|
|
2463
|
-
return
|
|
2462
|
+
function m(h) {
|
|
2463
|
+
return h.options.length > 0 && h.options.every((g) => h.selectedSubjects.includes(g.value));
|
|
2464
2464
|
}
|
|
2465
|
-
function p(
|
|
2466
|
-
if (
|
|
2467
|
-
const
|
|
2468
|
-
(
|
|
2465
|
+
function p(h) {
|
|
2466
|
+
if (h.options.length === 0) return !1;
|
|
2467
|
+
const g = h.options.filter(
|
|
2468
|
+
(C) => h.selectedSubjects.includes(C.value)
|
|
2469
2469
|
).length;
|
|
2470
|
-
return
|
|
2470
|
+
return g > 0 && g < h.options.length;
|
|
2471
2471
|
}
|
|
2472
|
-
function y(
|
|
2473
|
-
const
|
|
2474
|
-
(
|
|
2472
|
+
function y(h) {
|
|
2473
|
+
const g = e.value.filter(
|
|
2474
|
+
(C) => !h.options.some((E) => E.value === C.subject)
|
|
2475
2475
|
);
|
|
2476
|
-
if (m(
|
|
2477
|
-
s("update:model-value",
|
|
2476
|
+
if (m(h))
|
|
2477
|
+
s("update:model-value", g);
|
|
2478
2478
|
else {
|
|
2479
|
-
const
|
|
2480
|
-
({ category: E, showByFeatureFlag: F, isCategoryCover:
|
|
2479
|
+
const C = t.value.filter((E) => h.options.some((F) => F.value === E.subject)).map(
|
|
2480
|
+
({ category: E, showByFeatureFlag: F, isCategoryCover: Z, ...v }) => v
|
|
2481
2481
|
);
|
|
2482
|
-
s("update:model-value", [...
|
|
2482
|
+
s("update:model-value", [...g, ...C]);
|
|
2483
2483
|
}
|
|
2484
2484
|
}
|
|
2485
|
-
function
|
|
2486
|
-
const
|
|
2487
|
-
return
|
|
2485
|
+
function k(h, g) {
|
|
2486
|
+
const C = h.selectedActionsMap.get(g);
|
|
2487
|
+
return C ? C.has("manage") : !1;
|
|
2488
2488
|
}
|
|
2489
|
-
function O(
|
|
2490
|
-
const
|
|
2491
|
-
if (!
|
|
2492
|
-
const E =
|
|
2489
|
+
function O(h, g) {
|
|
2490
|
+
const C = h.permissionActionsMap.get(g);
|
|
2491
|
+
if (!C) return !1;
|
|
2492
|
+
const E = C.filter((v) => v !== "manage");
|
|
2493
2493
|
if (E.length === 0) return !1;
|
|
2494
|
-
const F =
|
|
2494
|
+
const F = h.selectedActionsMap.get(g);
|
|
2495
2495
|
if (!F) return !1;
|
|
2496
|
-
const
|
|
2497
|
-
return
|
|
2496
|
+
const Z = E.filter((v) => F.has(v));
|
|
2497
|
+
return Z.length > 0 && Z.length < E.length;
|
|
2498
2498
|
}
|
|
2499
|
-
function w(
|
|
2500
|
-
if (
|
|
2501
|
-
const E = t.value.find((G) => G.subject ===
|
|
2499
|
+
function w(h, g, C) {
|
|
2500
|
+
if (C) {
|
|
2501
|
+
const E = t.value.find((G) => G.subject === g);
|
|
2502
2502
|
if (!E) return;
|
|
2503
2503
|
const {
|
|
2504
2504
|
category: F,
|
|
2505
|
-
showByFeatureFlag:
|
|
2505
|
+
showByFeatureFlag: Z,
|
|
2506
2506
|
isCategoryCover: v,
|
|
2507
2507
|
...A
|
|
2508
|
-
} = E, N = e.value.filter((G) => G.subject !==
|
|
2508
|
+
} = E, N = e.value.filter((G) => G.subject !== g);
|
|
2509
2509
|
N.push(A), s("update:model-value", N);
|
|
2510
2510
|
} else
|
|
2511
2511
|
s(
|
|
2512
2512
|
"update:model-value",
|
|
2513
|
-
e.value.filter((E) => E.subject !==
|
|
2513
|
+
e.value.filter((E) => E.subject !== g)
|
|
2514
2514
|
);
|
|
2515
2515
|
}
|
|
2516
|
-
function V(
|
|
2517
|
-
const
|
|
2518
|
-
return
|
|
2516
|
+
function V(h, g) {
|
|
2517
|
+
const C = h.permissionActionsMap.get(g);
|
|
2518
|
+
return C ? C.some((E) => E !== "manage") : !1;
|
|
2519
2519
|
}
|
|
2520
|
-
function
|
|
2521
|
-
const E =
|
|
2522
|
-
return E ? E.has(
|
|
2520
|
+
function R(h, g, C) {
|
|
2521
|
+
const E = h.selectedActionsMap.get(g);
|
|
2522
|
+
return E ? E.has(C) : !1;
|
|
2523
2523
|
}
|
|
2524
|
-
function M(
|
|
2525
|
-
return !
|
|
2524
|
+
function M(h, g) {
|
|
2525
|
+
return !h.coverSubject || g === h.coverSubject ? !1 : h.coverCoversAll;
|
|
2526
2526
|
}
|
|
2527
|
-
function i(
|
|
2528
|
-
return !
|
|
2527
|
+
function i(h, g, C) {
|
|
2528
|
+
return !h.coverSubject || g === h.coverSubject ? !1 : h.coverCoversAll ? !0 : h.coverSelectedActions.has(C);
|
|
2529
2529
|
}
|
|
2530
|
-
function d(
|
|
2531
|
-
const E =
|
|
2532
|
-
return E ? E.includes(
|
|
2530
|
+
function d(h, g, C) {
|
|
2531
|
+
const E = h.permissionActionsMap.get(g);
|
|
2532
|
+
return E ? E.includes(C) : !1;
|
|
2533
2533
|
}
|
|
2534
|
-
function L(
|
|
2535
|
-
const E = [...e.value], F = E.findIndex((v) => v.subject ===
|
|
2536
|
-
if (
|
|
2534
|
+
function L(h, g, C) {
|
|
2535
|
+
const E = [...e.value], F = E.findIndex((v) => v.subject === h && !v.inverted);
|
|
2536
|
+
if (C)
|
|
2537
2537
|
if (F >= 0) {
|
|
2538
2538
|
const v = { ...E[F] }, A = new Set(v.actions);
|
|
2539
|
-
A.add(
|
|
2539
|
+
A.add(g), v.actions = Array.from(A), E[F] = v;
|
|
2540
2540
|
} else {
|
|
2541
|
-
const v = t.value.find((j) => j.subject ===
|
|
2541
|
+
const v = t.value.find((j) => j.subject === h);
|
|
2542
2542
|
if (!v) return;
|
|
2543
2543
|
const {
|
|
2544
2544
|
category: A,
|
|
@@ -2546,46 +2546,46 @@ function fr(e, t, n, s) {
|
|
|
2546
2546
|
isCategoryCover: G,
|
|
2547
2547
|
...W
|
|
2548
2548
|
} = v;
|
|
2549
|
-
E.push({ ...W, actions: [
|
|
2549
|
+
E.push({ ...W, actions: [g] });
|
|
2550
2550
|
}
|
|
2551
2551
|
else if (F >= 0) {
|
|
2552
|
-
const v = { ...E[F] }, A = v.actions.filter((N) => N !==
|
|
2552
|
+
const v = { ...E[F] }, A = v.actions.filter((N) => N !== g);
|
|
2553
2553
|
A.length === 0 ? E.splice(F, 1) : (v.actions = A, E[F] = v);
|
|
2554
2554
|
}
|
|
2555
|
-
const
|
|
2556
|
-
|
|
2555
|
+
const Z = t.value.find((v) => v.subject === h);
|
|
2556
|
+
Z && On(E, h, Z.actions), s("update:model-value", E);
|
|
2557
2557
|
}
|
|
2558
|
-
function _(
|
|
2559
|
-
const
|
|
2560
|
-
(E) => d(
|
|
2558
|
+
function _(h, g) {
|
|
2559
|
+
const C = h.options.filter(
|
|
2560
|
+
(E) => d(h, E.value, g)
|
|
2561
2561
|
);
|
|
2562
|
-
return
|
|
2563
|
-
(E) =>
|
|
2562
|
+
return C.length === 0 ? !1 : C.every(
|
|
2563
|
+
(E) => R(h, E.value, g) || i(h, E.value, g)
|
|
2564
2564
|
);
|
|
2565
2565
|
}
|
|
2566
|
-
function S(
|
|
2567
|
-
const
|
|
2568
|
-
(F) => d(
|
|
2566
|
+
function S(h, g) {
|
|
2567
|
+
const C = h.options.filter(
|
|
2568
|
+
(F) => d(h, F.value, g)
|
|
2569
2569
|
);
|
|
2570
|
-
if (
|
|
2571
|
-
const E =
|
|
2572
|
-
(F) =>
|
|
2570
|
+
if (C.length === 0) return !1;
|
|
2571
|
+
const E = C.filter(
|
|
2572
|
+
(F) => R(h, F.value, g) || i(h, F.value, g)
|
|
2573
2573
|
).length;
|
|
2574
|
-
return E > 0 && E <
|
|
2574
|
+
return E > 0 && E < C.length;
|
|
2575
2575
|
}
|
|
2576
|
-
function D(
|
|
2576
|
+
function D(h, g, C) {
|
|
2577
2577
|
const E = [...e.value];
|
|
2578
|
-
for (const F of
|
|
2579
|
-
if (!d(
|
|
2580
|
-
const
|
|
2581
|
-
(N) => N.subject ===
|
|
2578
|
+
for (const F of h.options) {
|
|
2579
|
+
if (!d(h, F.value, g)) continue;
|
|
2580
|
+
const Z = F.value, v = E.findIndex(
|
|
2581
|
+
(N) => N.subject === Z && !N.inverted
|
|
2582
2582
|
);
|
|
2583
|
-
if (
|
|
2583
|
+
if (C)
|
|
2584
2584
|
if (v >= 0) {
|
|
2585
2585
|
const N = { ...E[v] }, G = new Set(N.actions);
|
|
2586
|
-
G.add(
|
|
2586
|
+
G.add(g), N.actions = Array.from(G), E[v] = N;
|
|
2587
2587
|
} else {
|
|
2588
|
-
const N = t.value.find((
|
|
2588
|
+
const N = t.value.find((B) => B.subject === Z);
|
|
2589
2589
|
if (!N) continue;
|
|
2590
2590
|
const {
|
|
2591
2591
|
category: G,
|
|
@@ -2593,14 +2593,14 @@ function fr(e, t, n, s) {
|
|
|
2593
2593
|
isCategoryCover: j,
|
|
2594
2594
|
...ee
|
|
2595
2595
|
} = N;
|
|
2596
|
-
E.push({ ...ee, actions: [
|
|
2596
|
+
E.push({ ...ee, actions: [g] });
|
|
2597
2597
|
}
|
|
2598
2598
|
else if (v >= 0) {
|
|
2599
|
-
const N = { ...E[v] }, G = N.actions.filter((W) => W !==
|
|
2599
|
+
const N = { ...E[v] }, G = N.actions.filter((W) => W !== g);
|
|
2600
2600
|
G.length === 0 ? E.splice(v, 1) : (N.actions = G, E[v] = N);
|
|
2601
2601
|
}
|
|
2602
|
-
const A = t.value.find((N) => N.subject ===
|
|
2603
|
-
A && On(E,
|
|
2602
|
+
const A = t.value.find((N) => N.subject === Z);
|
|
2603
|
+
A && On(E, Z, A.actions);
|
|
2604
2604
|
}
|
|
2605
2605
|
s("update:model-value", E);
|
|
2606
2606
|
}
|
|
@@ -2609,8 +2609,8 @@ function fr(e, t, n, s) {
|
|
|
2609
2609
|
create: "Duplicate",
|
|
2610
2610
|
update: "Edit"
|
|
2611
2611
|
};
|
|
2612
|
-
function H(
|
|
2613
|
-
return I[
|
|
2612
|
+
function H(h) {
|
|
2613
|
+
return I[h] ?? h.charAt(0).toUpperCase() + h.slice(1);
|
|
2614
2614
|
}
|
|
2615
2615
|
return {
|
|
2616
2616
|
categoryGroups: c,
|
|
@@ -2618,11 +2618,11 @@ function fr(e, t, n, s) {
|
|
|
2618
2618
|
isAllManageChecked: m,
|
|
2619
2619
|
isAllManageIndeterminate: p,
|
|
2620
2620
|
toggleAllManage: y,
|
|
2621
|
-
isManageChecked:
|
|
2621
|
+
isManageChecked: k,
|
|
2622
2622
|
isManageIndeterminate: O,
|
|
2623
2623
|
toggleManage: w,
|
|
2624
2624
|
hasNonManageActions: V,
|
|
2625
|
-
isActionChecked:
|
|
2625
|
+
isActionChecked: R,
|
|
2626
2626
|
isRowFullyCoveredByCover: M,
|
|
2627
2627
|
isActionCoveredByCover: i,
|
|
2628
2628
|
permissionDefinesAction: d,
|
|
@@ -2633,7 +2633,7 @@ function fr(e, t, n, s) {
|
|
|
2633
2633
|
actionLabel: H
|
|
2634
2634
|
};
|
|
2635
2635
|
}
|
|
2636
|
-
const _r = { class: "flex flex-col gap-16" }, pr = { class: "fm-typo-en-title-sm-600" }, br = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" },
|
|
2636
|
+
const _r = { class: "flex flex-col gap-16" }, pr = { class: "fm-typo-en-title-sm-600" }, br = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, hr = ["onClick"], gr = { class: "flex justify-center" }, vr = { class: "flex items-center min-w-0 gap-8" }, Ir = ["title", "onClick"], Er = { class: "flex justify-center" }, Nr = /* @__PURE__ */ Oe({
|
|
2637
2637
|
__name: "BasePermission",
|
|
2638
2638
|
props: {
|
|
2639
2639
|
modelValue: {
|
|
@@ -2655,27 +2655,27 @@ const _r = { class: "flex flex-col gap-16" }, pr = { class: "fm-typo-en-title-sm
|
|
|
2655
2655
|
},
|
|
2656
2656
|
emits: ["update:model-value"],
|
|
2657
2657
|
setup(e, { emit: t }) {
|
|
2658
|
-
const n = e, s = t, l =
|
|
2658
|
+
const n = e, s = t, l = z(() => [...Dt, ...n.additionalPermissions]), {
|
|
2659
2659
|
categoryGroups: a,
|
|
2660
2660
|
isAllManageChecked: c,
|
|
2661
2661
|
isAllManageIndeterminate: u,
|
|
2662
2662
|
toggleAllManage: m,
|
|
2663
2663
|
isManageChecked: p,
|
|
2664
2664
|
isManageIndeterminate: y,
|
|
2665
|
-
toggleManage:
|
|
2665
|
+
toggleManage: k,
|
|
2666
2666
|
isActionChecked: O,
|
|
2667
2667
|
isRowFullyCoveredByCover: w,
|
|
2668
2668
|
isActionCoveredByCover: V,
|
|
2669
|
-
permissionDefinesAction:
|
|
2669
|
+
permissionDefinesAction: R,
|
|
2670
2670
|
toggleAction: M,
|
|
2671
2671
|
isAllActionChecked: i,
|
|
2672
2672
|
isAllActionIndeterminate: d,
|
|
2673
2673
|
toggleAllAction: L,
|
|
2674
2674
|
actionLabel: _
|
|
2675
2675
|
} = fr(
|
|
2676
|
-
|
|
2676
|
+
Qt(n, "modelValue"),
|
|
2677
2677
|
l,
|
|
2678
|
-
|
|
2678
|
+
Qt(n, "excludedSubjects"),
|
|
2679
2679
|
(I, H) => s("update:model-value", H)
|
|
2680
2680
|
), { t: S } = nt();
|
|
2681
2681
|
function D(I) {
|
|
@@ -2683,89 +2683,89 @@ const _r = { class: "flex flex-col gap-16" }, pr = { class: "fm-typo-en-title-sm
|
|
|
2683
2683
|
return H === 0 ? "" : S("team.memberForm.permissions.allowedCount", { count: H });
|
|
2684
2684
|
}
|
|
2685
2685
|
return (I, H) => {
|
|
2686
|
-
const
|
|
2687
|
-
return
|
|
2688
|
-
(
|
|
2689
|
-
key:
|
|
2690
|
-
subtitle: D(
|
|
2686
|
+
const h = Qe("FmCheckbox");
|
|
2687
|
+
return Q(), oe("div", _r, [
|
|
2688
|
+
(Q(!0), oe(ye, null, ge(Y(a), (g) => (Q(), De(Zt, {
|
|
2689
|
+
key: g.category,
|
|
2690
|
+
subtitle: D(g)
|
|
2691
2691
|
}, {
|
|
2692
2692
|
title: pe(() => [
|
|
2693
|
-
ie("p", pr,
|
|
2693
|
+
ie("p", pr, Te(g.category), 1)
|
|
2694
2694
|
]),
|
|
2695
2695
|
default: pe(() => [
|
|
2696
2696
|
ie("div", {
|
|
2697
2697
|
class: "mt-16 grid items-center gap-y-8",
|
|
2698
2698
|
style: mt({
|
|
2699
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2699
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${g.actionColumns.length + 1}, 80px)`
|
|
2700
2700
|
})
|
|
2701
2701
|
}, [
|
|
2702
2702
|
H[0] || (H[0] = ie("div", null, null, -1)),
|
|
2703
|
-
ie("div", br,
|
|
2704
|
-
(
|
|
2705
|
-
key: `header-${
|
|
2703
|
+
ie("div", br, Te(Y(S)("team.memberForm.permissions.columnManage")), 1),
|
|
2704
|
+
(Q(!0), oe(ye, null, ge(g.actionColumns, (C) => (Q(), oe("div", {
|
|
2705
|
+
key: `header-${C}`,
|
|
2706
2706
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2707
|
-
},
|
|
2707
|
+
}, Te(Y(_)(C)), 1))), 128)),
|
|
2708
2708
|
ie("div", {
|
|
2709
2709
|
class: "cursor-pointer",
|
|
2710
|
-
onClick: (
|
|
2711
|
-
}, " All ", 8,
|
|
2712
|
-
ie("div",
|
|
2713
|
-
_e(
|
|
2714
|
-
"model-value":
|
|
2715
|
-
indeterminate:
|
|
2710
|
+
onClick: (C) => !e.disable && Y(m)(g)
|
|
2711
|
+
}, " All ", 8, hr),
|
|
2712
|
+
ie("div", gr, [
|
|
2713
|
+
_e(h, {
|
|
2714
|
+
"model-value": Y(c)(g),
|
|
2715
|
+
indeterminate: Y(u)(g),
|
|
2716
2716
|
value: !0,
|
|
2717
2717
|
disabled: e.disable,
|
|
2718
2718
|
size: "sm",
|
|
2719
2719
|
dense: "",
|
|
2720
|
-
"onUpdate:modelValue": (
|
|
2720
|
+
"onUpdate:modelValue": (C) => Y(m)(g)
|
|
2721
2721
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2722
2722
|
]),
|
|
2723
|
-
(
|
|
2724
|
-
key: `all-${
|
|
2723
|
+
(Q(!0), oe(ye, null, ge(g.actionColumns, (C) => (Q(), oe("div", {
|
|
2724
|
+
key: `all-${C}`,
|
|
2725
2725
|
class: "flex justify-center"
|
|
2726
2726
|
}, [
|
|
2727
|
-
_e(
|
|
2728
|
-
"model-value":
|
|
2729
|
-
indeterminate:
|
|
2730
|
-
value:
|
|
2727
|
+
_e(h, {
|
|
2728
|
+
"model-value": Y(i)(g, C),
|
|
2729
|
+
indeterminate: Y(d)(g, C),
|
|
2730
|
+
value: C,
|
|
2731
2731
|
disabled: e.disable,
|
|
2732
2732
|
size: "sm",
|
|
2733
2733
|
dense: "",
|
|
2734
|
-
"onUpdate:modelValue": (E) =>
|
|
2734
|
+
"onUpdate:modelValue": (E) => Y(L)(g, C, E)
|
|
2735
2735
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2736
2736
|
]))), 128)),
|
|
2737
|
-
(
|
|
2738
|
-
key:
|
|
2737
|
+
(Q(!0), oe(ye, null, ge(g.options, (C) => (Q(), oe(ye, {
|
|
2738
|
+
key: C.value
|
|
2739
2739
|
}, [
|
|
2740
2740
|
ie("div", vr, [
|
|
2741
2741
|
ie("span", {
|
|
2742
2742
|
class: "block truncate cursor-pointer",
|
|
2743
|
-
title:
|
|
2744
|
-
onClick: (E) => !e.disable && !
|
|
2745
|
-
},
|
|
2746
|
-
|
|
2743
|
+
title: C.label,
|
|
2744
|
+
onClick: (E) => !e.disable && !Y(w)(g, C.value) && Y(k)(g, C.value, !Y(p)(g, C.value))
|
|
2745
|
+
}, Te(C.label), 9, Ir),
|
|
2746
|
+
ke(I.$slots, `checkbox-${C.value}-append`, { option: C })
|
|
2747
2747
|
]),
|
|
2748
2748
|
ie("div", Er, [
|
|
2749
|
-
_e(
|
|
2750
|
-
"model-value":
|
|
2751
|
-
value:
|
|
2752
|
-
disabled: e.disable ||
|
|
2753
|
-
indeterminate:
|
|
2749
|
+
_e(h, {
|
|
2750
|
+
"model-value": Y(p)(g, C.value) || Y(w)(g, C.value),
|
|
2751
|
+
value: C.value,
|
|
2752
|
+
disabled: e.disable || Y(w)(g, C.value),
|
|
2753
|
+
indeterminate: Y(y)(g, C.value),
|
|
2754
2754
|
size: "sm",
|
|
2755
|
-
"onUpdate:modelValue": (E) =>
|
|
2755
|
+
"onUpdate:modelValue": (E) => Y(k)(g, C.value, E)
|
|
2756
2756
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2757
2757
|
]),
|
|
2758
|
-
(
|
|
2759
|
-
key: `${
|
|
2758
|
+
(Q(!0), oe(ye, null, ge(g.actionColumns, (E) => (Q(), oe("div", {
|
|
2759
|
+
key: `${C.value}-${E}`,
|
|
2760
2760
|
class: "flex justify-center"
|
|
2761
2761
|
}, [
|
|
2762
|
-
|
|
2762
|
+
Y(R)(g, C.value, E) ? (Q(), De(h, {
|
|
2763
2763
|
key: 0,
|
|
2764
|
-
"model-value":
|
|
2764
|
+
"model-value": Y(O)(g, C.value, E) || Y(V)(g, C.value, E),
|
|
2765
2765
|
value: E,
|
|
2766
|
-
disabled: e.disable ||
|
|
2766
|
+
disabled: e.disable || Y(V)(g, C.value, E),
|
|
2767
2767
|
size: "sm",
|
|
2768
|
-
"onUpdate:modelValue": (F) =>
|
|
2768
|
+
"onUpdate:modelValue": (F) => Y(M)(C.value, E, F)
|
|
2769
2769
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Se("", !0)
|
|
2770
2770
|
]))), 128))
|
|
2771
2771
|
], 64))), 128))
|
|
@@ -2776,10 +2776,10 @@ const _r = { class: "flex flex-col gap-16" }, pr = { class: "fm-typo-en-title-sm
|
|
|
2776
2776
|
]);
|
|
2777
2777
|
};
|
|
2778
2778
|
}
|
|
2779
|
-
}), yr = { class: "space-y-16" },
|
|
2779
|
+
}), yr = { class: "space-y-16" }, Tr = {
|
|
2780
2780
|
key: 0,
|
|
2781
2781
|
class: "flex fm-typo-en-title-sm-600"
|
|
2782
|
-
},
|
|
2782
|
+
}, kr = {
|
|
2783
2783
|
key: 0,
|
|
2784
2784
|
class: "q-mr-xs text-red col"
|
|
2785
2785
|
}, Or = { class: "form-input" }, Lr = /* @__PURE__ */ Oe({
|
|
@@ -2800,33 +2800,33 @@ const _r = { class: "flex flex-col gap-16" }, pr = { class: "fm-typo-en-title-sm
|
|
|
2800
2800
|
},
|
|
2801
2801
|
setup(e) {
|
|
2802
2802
|
const t = e;
|
|
2803
|
-
return (n, s) => (
|
|
2804
|
-
|
|
2805
|
-
t.title ? (
|
|
2803
|
+
return (n, s) => (Q(), oe("div", yr, [
|
|
2804
|
+
ke(n.$slots, "top", {}, () => [
|
|
2805
|
+
t.title ? (Q(), oe("div", Tr, [
|
|
2806
2806
|
ie("div", null, [
|
|
2807
|
-
t.required ? (
|
|
2808
|
-
qn(
|
|
2807
|
+
t.required ? (Q(), oe("span", kr, "*")) : Se("", !0),
|
|
2808
|
+
qn(Te(t.title), 1)
|
|
2809
2809
|
]),
|
|
2810
|
-
|
|
2810
|
+
ke(n.$slots, "title-right")
|
|
2811
2811
|
])) : Se("", !0)
|
|
2812
2812
|
]),
|
|
2813
2813
|
ie("div", Or, [
|
|
2814
|
-
|
|
2814
|
+
ke(n.$slots, "default")
|
|
2815
2815
|
])
|
|
2816
2816
|
]));
|
|
2817
2817
|
}
|
|
2818
2818
|
});
|
|
2819
|
-
function
|
|
2819
|
+
function Cr(e, t) {
|
|
2820
2820
|
let n = "", s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
2821
2821
|
const l = s.length;
|
|
2822
2822
|
for (let a = 0; a < e; a++)
|
|
2823
2823
|
n += s.charAt(Math.floor(Math.random() * l));
|
|
2824
2824
|
return n;
|
|
2825
2825
|
}
|
|
2826
|
-
const
|
|
2826
|
+
const Rr = { class: "col flex items-center" }, Ar = {
|
|
2827
2827
|
key: 1,
|
|
2828
2828
|
class: "q-pa-sm form-error-message text-error"
|
|
2829
|
-
},
|
|
2829
|
+
}, Yn = /* @__PURE__ */ Oe({
|
|
2830
2830
|
__name: "CheckboxInput",
|
|
2831
2831
|
props: {
|
|
2832
2832
|
options: {
|
|
@@ -2884,47 +2884,47 @@ const Cr = { class: "col flex items-center" }, Ar = {
|
|
|
2884
2884
|
},
|
|
2885
2885
|
emits: ["update:model-value"],
|
|
2886
2886
|
setup(e, { emit: t }) {
|
|
2887
|
-
const n = e, s = t, { t: l } = nt(), a = bt(!1), c = es(), u =
|
|
2888
|
-
() => n.modelValue.filter((
|
|
2889
|
-
),
|
|
2887
|
+
const n = e, s = t, { t: l } = nt(), a = bt(!1), c = es(), 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), m = `checkbox-${Cr(6)}`, p = z(() => u.value !== !0), y = z(
|
|
2888
|
+
() => n.modelValue.filter((R) => n.options.some((M) => M.value === R))
|
|
2889
|
+
), k = z(
|
|
2890
2890
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2891
|
-
), O =
|
|
2891
|
+
), O = z(() => n.options.length > 0 && n.options.length === y.value.length);
|
|
2892
2892
|
function w() {
|
|
2893
|
-
const
|
|
2893
|
+
const R = n.modelValue.filter((M) => !y.value.includes(M));
|
|
2894
2894
|
if (O.value === !0)
|
|
2895
|
-
s("update:model-value",
|
|
2895
|
+
s("update:model-value", R);
|
|
2896
2896
|
else {
|
|
2897
2897
|
const M = n.includeDisabledOptionsWhenSelectAll ? n.options.map((i) => i.value) : n.options.filter((i) => !i.disabled).map((i) => i.value);
|
|
2898
|
-
s("update:model-value", [...
|
|
2898
|
+
s("update:model-value", [...R, ...M]);
|
|
2899
2899
|
}
|
|
2900
2900
|
}
|
|
2901
|
-
function V(
|
|
2901
|
+
function V(R, M) {
|
|
2902
2902
|
let i = dt(n.modelValue);
|
|
2903
|
-
M ? i.every((d) => d !==
|
|
2903
|
+
M ? i.every((d) => d !== R) && i.push(R) : i = i.filter((d) => d !== R), s("update:model-value", i);
|
|
2904
2904
|
}
|
|
2905
|
-
return (
|
|
2906
|
-
const i =
|
|
2907
|
-
return
|
|
2905
|
+
return (R, M) => {
|
|
2906
|
+
const i = Qe("FmCheckbox");
|
|
2907
|
+
return Q(), De(Lr, {
|
|
2908
2908
|
id: m,
|
|
2909
2909
|
title: e.title,
|
|
2910
2910
|
required: !1
|
|
2911
2911
|
}, {
|
|
2912
2912
|
top: pe(() => [
|
|
2913
|
-
|
|
2913
|
+
ke(R.$slots, "top")
|
|
2914
2914
|
]),
|
|
2915
2915
|
default: pe(() => [
|
|
2916
|
-
n.showAllToggle ? (
|
|
2916
|
+
n.showAllToggle ? (Q(), De(i, {
|
|
2917
2917
|
key: 0,
|
|
2918
2918
|
"model-value": O.value,
|
|
2919
2919
|
disabled: e.disable,
|
|
2920
|
-
label:
|
|
2920
|
+
label: k.value,
|
|
2921
2921
|
style: mt(`margin-bottom: ${n.gutter}px`),
|
|
2922
2922
|
size: "sm",
|
|
2923
2923
|
dense: "",
|
|
2924
|
-
value:
|
|
2924
|
+
value: k.value,
|
|
2925
2925
|
"onUpdate:modelValue": w
|
|
2926
2926
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Se("", !0),
|
|
2927
|
-
(
|
|
2927
|
+
(Q(!0), oe(ye, null, ge(e.options, (d, L) => (Q(), oe("div", {
|
|
2928
2928
|
key: d.value,
|
|
2929
2929
|
style: mt(`margin-bottom: ${L < e.options.length - 1 ? n.gutter : 0}px`),
|
|
2930
2930
|
class: at(L < e.options.length - 1 ? "q-mb-sm" : "")
|
|
@@ -2932,7 +2932,7 @@ const Cr = { class: "col flex items-center" }, Ar = {
|
|
|
2932
2932
|
ie("div", {
|
|
2933
2933
|
class: at(["row justify-between", e.alignCenter ? "items-center" : "items-start"])
|
|
2934
2934
|
}, [
|
|
2935
|
-
ie("div",
|
|
2935
|
+
ie("div", Rr, [
|
|
2936
2936
|
_e(i, {
|
|
2937
2937
|
"model-value": e.modelValue.includes(d.value),
|
|
2938
2938
|
disabled: e.disable || d.disabled,
|
|
@@ -2941,41 +2941,41 @@ const Cr = { class: "col flex items-center" }, Ar = {
|
|
|
2941
2941
|
value: d.label,
|
|
2942
2942
|
"onUpdate:modelValue": (_) => V(d.value, _)
|
|
2943
2943
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
2944
|
-
|
|
2944
|
+
ke(R.$slots, `checkbox-${d.key || d.value}-append`, {
|
|
2945
2945
|
option: d,
|
|
2946
2946
|
selected: e.modelValue.includes(d.value)
|
|
2947
2947
|
})
|
|
2948
2948
|
]),
|
|
2949
|
-
|
|
2949
|
+
Y(c)[`checkbox-${d.key || d.value}-end`] && (e.modelValue.includes(d.value) || e.falsyShowSlot) ? (Q(), oe("div", {
|
|
2950
2950
|
key: 0,
|
|
2951
2951
|
class: at([{ "q-checkbox disabled": e.disable || d.disabled }, "col"])
|
|
2952
2952
|
}, [
|
|
2953
|
-
|
|
2953
|
+
ke(R.$slots, `checkbox-${d.key || d.value}-end`, {
|
|
2954
2954
|
option: d,
|
|
2955
2955
|
value: e.modelValue.includes(d.value),
|
|
2956
2956
|
disable: e.disable || d.disabled
|
|
2957
2957
|
})
|
|
2958
2958
|
], 2)) : Se("", !0)
|
|
2959
2959
|
], 2),
|
|
2960
|
-
|
|
2960
|
+
Y(c)[`checkbox-${d.key || d.value}-bottom`] && (e.modelValue.includes(d.value) || e.falsyShowSlot) ? (Q(), oe("div", {
|
|
2961
2961
|
key: 0,
|
|
2962
2962
|
class: at(["q-mt-sm", { "q-checkbox disabled": e.disable || d.disabled }]),
|
|
2963
2963
|
style: mt(`margin-left: ${e.bottomSlotIndent}`)
|
|
2964
2964
|
}, [
|
|
2965
|
-
|
|
2965
|
+
ke(R.$slots, `checkbox-${d.key || d.value}-bottom`, {
|
|
2966
2966
|
option: d,
|
|
2967
2967
|
disable: e.disable || d.disabled,
|
|
2968
2968
|
value: e.modelValue.includes(d.value)
|
|
2969
2969
|
})
|
|
2970
2970
|
], 6)) : Se("", !0)
|
|
2971
2971
|
], 6))), 128)),
|
|
2972
|
-
a.value && p.value ? (
|
|
2972
|
+
a.value && p.value ? (Q(), oe("div", Ar, Te(u.value), 1)) : Se("", !0)
|
|
2973
2973
|
]),
|
|
2974
2974
|
_: 3
|
|
2975
2975
|
}, 8, ["title"]);
|
|
2976
2976
|
};
|
|
2977
2977
|
}
|
|
2978
|
-
}), Sr = { class: "fm-typo-en-title-sm-600" }, ct = "includedFuture",
|
|
2978
|
+
}), Sr = { class: "fm-typo-en-title-sm-600" }, ct = "includedFuture", Cn = /* @__PURE__ */ Oe({
|
|
2979
2979
|
__name: "ConditionPermission",
|
|
2980
2980
|
props: {
|
|
2981
2981
|
modelValue: {
|
|
@@ -2997,7 +2997,7 @@ const Cr = { class: "col flex items-center" }, Ar = {
|
|
|
2997
2997
|
},
|
|
2998
2998
|
emits: ["update:model-value"],
|
|
2999
2999
|
setup(e, { emit: t }) {
|
|
3000
|
-
const n = e, s = t, { t: l } = nt(), a =
|
|
3000
|
+
const n = e, s = t, { t: l } = nt(), a = z(() => [
|
|
3001
3001
|
{
|
|
3002
3002
|
label: l("team.memberForm.permissions.includedFuture", { context: n.context }),
|
|
3003
3003
|
value: ct,
|
|
@@ -3007,30 +3007,30 @@ const Cr = { class: "col flex items-center" }, Ar = {
|
|
|
3007
3007
|
...n.options.filter(
|
|
3008
3008
|
(y) => y.label.toLocaleLowerCase().includes(p.value.toLocaleLowerCase())
|
|
3009
3009
|
)
|
|
3010
|
-
]), c =
|
|
3011
|
-
const y = c.value.filter((
|
|
3010
|
+
]), c = z(() => n.modelValue ? n.modelValue : [ct, ...n.options.map((y) => y.value)]), u = z(() => {
|
|
3011
|
+
const y = c.value.filter((k) => k !== ct).length;
|
|
3012
3012
|
return y === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: y });
|
|
3013
3013
|
});
|
|
3014
3014
|
function m(y) {
|
|
3015
|
-
const
|
|
3016
|
-
s("update:model-value",
|
|
3015
|
+
const k = y.length === a.value.length;
|
|
3016
|
+
s("update:model-value", k ? null : y.filter((O) => O !== ct));
|
|
3017
3017
|
}
|
|
3018
3018
|
const p = bt("");
|
|
3019
|
-
return (y,
|
|
3020
|
-
const O =
|
|
3021
|
-
return
|
|
3019
|
+
return (y, k) => {
|
|
3020
|
+
const O = Qe("fm-search");
|
|
3021
|
+
return Q(), De(Zt, { subtitle: u.value }, {
|
|
3022
3022
|
title: pe(() => [
|
|
3023
|
-
ie("p", Sr,
|
|
3023
|
+
ie("p", Sr, Te(Y(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3024
3024
|
]),
|
|
3025
3025
|
default: pe(() => [
|
|
3026
|
-
e.options.length > 1 ? (
|
|
3026
|
+
e.options.length > 1 ? (Q(), De(O, {
|
|
3027
3027
|
key: 0,
|
|
3028
3028
|
modelValue: p.value,
|
|
3029
|
-
"onUpdate:modelValue":
|
|
3029
|
+
"onUpdate:modelValue": k[0] || (k[0] = (w) => p.value = w),
|
|
3030
3030
|
class: "mt-16",
|
|
3031
|
-
placeholder:
|
|
3031
|
+
placeholder: Y(l)("team.memberForm.permissions.search", { context: e.context })
|
|
3032
3032
|
}, null, 8, ["modelValue", "placeholder"])) : Se("", !0),
|
|
3033
|
-
_e(
|
|
3033
|
+
_e(Yn, {
|
|
3034
3034
|
"model-value": c.value,
|
|
3035
3035
|
options: a.value,
|
|
3036
3036
|
"show-intermediate": !1,
|
|
@@ -3040,11 +3040,11 @@ const Cr = { class: "col flex items-center" }, Ar = {
|
|
|
3040
3040
|
title: "",
|
|
3041
3041
|
class: "mt-16",
|
|
3042
3042
|
"onUpdate:modelValue": m
|
|
3043
|
-
},
|
|
3044
|
-
|
|
3043
|
+
}, xe({ _: 2 }, [
|
|
3044
|
+
ge(a.value, (w) => ({
|
|
3045
3045
|
name: `checkbox-${w.value}-append`,
|
|
3046
3046
|
fn: pe(({ option: V }) => [
|
|
3047
|
-
|
|
3047
|
+
ke(y.$slots, `checkbox-${w.value}-append`, { option: V })
|
|
3048
3048
|
])
|
|
3049
3049
|
}))
|
|
3050
3050
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3075,7 +3075,7 @@ const Cr = { class: "col flex items-center" }, Ar = {
|
|
|
3075
3075
|
},
|
|
3076
3076
|
emits: ["update:model-value"],
|
|
3077
3077
|
setup(e, { emit: t }) {
|
|
3078
|
-
const n = e, s = t, { t: l } = nt(), a =
|
|
3078
|
+
const n = e, s = t, { t: l } = nt(), a = z(() => {
|
|
3079
3079
|
const p = n.restaurantIds;
|
|
3080
3080
|
return [
|
|
3081
3081
|
{
|
|
@@ -3086,23 +3086,23 @@ const Cr = { class: "col flex items-center" }, Ar = {
|
|
|
3086
3086
|
...n.roles.map((y) => ({
|
|
3087
3087
|
label: y.name,
|
|
3088
3088
|
value: y._id,
|
|
3089
|
-
disabled: !!p && y.restaurants.every(({ id:
|
|
3089
|
+
disabled: !!p && y.restaurants.every(({ id: k }) => !p.includes(k))
|
|
3090
3090
|
}))
|
|
3091
3091
|
];
|
|
3092
|
-
}), c =
|
|
3092
|
+
}), c = z(() => n.modelValue ? n.modelValue : [ut, ...n.roles.map((p) => p._id)]), u = z(() => {
|
|
3093
3093
|
const p = c.value.filter((y) => y !== ut).length;
|
|
3094
3094
|
return p === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: p });
|
|
3095
3095
|
});
|
|
3096
3096
|
function m(p) {
|
|
3097
3097
|
const y = p.length === a.value.length;
|
|
3098
|
-
s("update:model-value", y ? null : p.filter((
|
|
3098
|
+
s("update:model-value", y ? null : p.filter((k) => k !== ut));
|
|
3099
3099
|
}
|
|
3100
|
-
return (p, y) => (
|
|
3100
|
+
return (p, y) => (Q(), De(Zt, { subtitle: u.value }, {
|
|
3101
3101
|
title: pe(() => [
|
|
3102
|
-
ie("p", Dr,
|
|
3102
|
+
ie("p", Dr, Te(Y(l)("team.memberForm.permissions.roles")), 1)
|
|
3103
3103
|
]),
|
|
3104
3104
|
default: pe(() => [
|
|
3105
|
-
_e(
|
|
3105
|
+
_e(Yn, {
|
|
3106
3106
|
"model-value": c.value,
|
|
3107
3107
|
options: a.value,
|
|
3108
3108
|
"show-intermediate": !1,
|
|
@@ -3111,11 +3111,11 @@ const Cr = { class: "col flex items-center" }, Ar = {
|
|
|
3111
3111
|
title: "",
|
|
3112
3112
|
class: "mt-16",
|
|
3113
3113
|
"onUpdate:modelValue": m
|
|
3114
|
-
},
|
|
3115
|
-
|
|
3116
|
-
name: `checkbox-${
|
|
3114
|
+
}, xe({ _: 2 }, [
|
|
3115
|
+
ge(a.value, (k) => ({
|
|
3116
|
+
name: `checkbox-${k.value}-append`,
|
|
3117
3117
|
fn: pe(({ option: O }) => [
|
|
3118
|
-
|
|
3118
|
+
ke(p.$slots, `checkbox-${k.value}-append`, { option: O })
|
|
3119
3119
|
])
|
|
3120
3120
|
}))
|
|
3121
3121
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3129,7 +3129,7 @@ const Cr = { class: "col flex items-center" }, Ar = {
|
|
|
3129
3129
|
}
|
|
3130
3130
|
}, Pr = { class: "flex flex-col gap-32" }, Fr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, jr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Ur = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Vr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Jr = /* @__PURE__ */ Oe({
|
|
3131
3131
|
__name: "PortalPermissionEditor",
|
|
3132
|
-
props: /* @__PURE__ */
|
|
3132
|
+
props: /* @__PURE__ */ zt({
|
|
3133
3133
|
disable: {
|
|
3134
3134
|
type: Boolean,
|
|
3135
3135
|
default: !1
|
|
@@ -3142,13 +3142,13 @@ const Cr = { class: "col flex items-center" }, Ar = {
|
|
|
3142
3142
|
modelValue: { default: () => [] },
|
|
3143
3143
|
modelModifiers: {}
|
|
3144
3144
|
}),
|
|
3145
|
-
emits: /* @__PURE__ */
|
|
3145
|
+
emits: /* @__PURE__ */ zt(["permissionChanged"], ["update:modelValue"]),
|
|
3146
3146
|
setup(e, { emit: t }) {
|
|
3147
3147
|
const n = ts(e, "modelValue"), s = e, l = t, { t: a } = nt(), { fetchCustomReportPermissions: c, customReportPermissions: u } = ss();
|
|
3148
3148
|
function m(v) {
|
|
3149
3149
|
return Dt.find((A) => A.subject === v) ?? u.value.find((A) => A.subject === v);
|
|
3150
3150
|
}
|
|
3151
|
-
const p =
|
|
3151
|
+
const p = z(() => {
|
|
3152
3152
|
const v = [...Dt, ...u.value].filter((N) => !w.includes(N.subject)).map((N) => N.subject);
|
|
3153
3153
|
return as(
|
|
3154
3154
|
s.inheritPermissions.map((N) => ({
|
|
@@ -3159,36 +3159,36 @@ const Cr = { class: "col flex items-center" }, Ar = {
|
|
|
3159
3159
|
id: N.subject,
|
|
3160
3160
|
setNames: N.setNames
|
|
3161
3161
|
}));
|
|
3162
|
-
}), y =
|
|
3162
|
+
}), y = z(() => {
|
|
3163
3163
|
const v = s.inheritPermissions.map((A) => ({
|
|
3164
3164
|
...A,
|
|
3165
3165
|
permissions: A.permissions.filter(
|
|
3166
3166
|
(N) => N.subject === me.Subject.Business.inventory_stock
|
|
3167
3167
|
)
|
|
3168
3168
|
}));
|
|
3169
|
-
return
|
|
3169
|
+
return kt(
|
|
3170
3170
|
v,
|
|
3171
3171
|
"warehouseId",
|
|
3172
|
-
|
|
3172
|
+
R.value.map((A) => A._id)
|
|
3173
3173
|
);
|
|
3174
|
-
}),
|
|
3174
|
+
}), k = z(() => {
|
|
3175
3175
|
const v = s.inheritPermissions.map((A) => ({
|
|
3176
3176
|
...A,
|
|
3177
3177
|
permissions: A.permissions.filter(
|
|
3178
3178
|
(N) => N.subject === me.Subject.Restaurant.restaurant
|
|
3179
3179
|
)
|
|
3180
3180
|
}));
|
|
3181
|
-
return
|
|
3181
|
+
return kt(
|
|
3182
3182
|
v,
|
|
3183
3183
|
"restaurantId",
|
|
3184
3184
|
L.value.map((A) => A._id)
|
|
3185
3185
|
);
|
|
3186
|
-
}), O =
|
|
3186
|
+
}), O = z(() => {
|
|
3187
3187
|
const v = s.inheritPermissions.map((A) => ({
|
|
3188
3188
|
...A,
|
|
3189
3189
|
permissions: A.permissions.filter((N) => N.subject === me.Subject.Business.role)
|
|
3190
3190
|
}));
|
|
3191
|
-
return
|
|
3191
|
+
return kt(
|
|
3192
3192
|
v,
|
|
3193
3193
|
"roleId",
|
|
3194
3194
|
_.value.map((A) => A._id)
|
|
@@ -3198,13 +3198,13 @@ const Cr = { class: "col flex items-center" }, Ar = {
|
|
|
3198
3198
|
me.Subject.Business.role,
|
|
3199
3199
|
me.Subject.Restaurant.restaurant,
|
|
3200
3200
|
me.Subject.Business.inventory_stock
|
|
3201
|
-
], V =
|
|
3201
|
+
], V = z(() => {
|
|
3202
3202
|
var A;
|
|
3203
3203
|
const v = (A = n.value) == null ? void 0 : A.find(
|
|
3204
3204
|
(N) => N.subject === me.Subject.Business.inventory_stock
|
|
3205
3205
|
);
|
|
3206
3206
|
return v ? v.conditions ? JSON.parse(v.conditions).warehouseId.$in : null : [];
|
|
3207
|
-
}),
|
|
3207
|
+
}), R = bt([]), M = z(() => R.value.map((v) => ({
|
|
3208
3208
|
label: v.profile.name,
|
|
3209
3209
|
value: v._id
|
|
3210
3210
|
})));
|
|
@@ -3225,16 +3225,16 @@ const Cr = { class: "col flex items-center" }, Ar = {
|
|
|
3225
3225
|
}
|
|
3226
3226
|
return N;
|
|
3227
3227
|
}
|
|
3228
|
-
const { restaurants: L } = ns(), _ = ds().roles, S =
|
|
3228
|
+
const { restaurants: L } = ns(), _ = ds().roles, S = z(() => L.value.map((v) => ({
|
|
3229
3229
|
label: `${v.profile.code ? v.profile.code + "-" : ""}${v.profile.name}`,
|
|
3230
3230
|
value: v._id
|
|
3231
|
-
}))), D =
|
|
3231
|
+
}))), D = z(() => L.value.reduce((v, A) => (v[A._id] = _.value.filter((N) => N.restaurants.some((G) => G.id === A._id)).map((N) => N._id), v), {})), I = z(() => rs(n.value));
|
|
3232
3232
|
function H(v) {
|
|
3233
|
-
const A =
|
|
3233
|
+
const A = g(n.value, v);
|
|
3234
3234
|
n.value = A;
|
|
3235
3235
|
}
|
|
3236
|
-
const
|
|
3237
|
-
function
|
|
3236
|
+
const h = z(() => ls(n.value));
|
|
3237
|
+
function g(v, A) {
|
|
3238
3238
|
var G;
|
|
3239
3239
|
let N = dt(
|
|
3240
3240
|
v.filter(
|
|
@@ -3248,11 +3248,11 @@ const Cr = { class: "col flex items-center" }, Ar = {
|
|
|
3248
3248
|
...ee
|
|
3249
3249
|
} = cs.restaurant;
|
|
3250
3250
|
N.push(ee);
|
|
3251
|
-
const
|
|
3251
|
+
const B = {
|
|
3252
3252
|
actions: [me.Action.manage],
|
|
3253
3253
|
subject: me.Subject.Restaurant.restaurant
|
|
3254
3254
|
};
|
|
3255
|
-
A && (
|
|
3255
|
+
A && (B.conditions = JSON.stringify({ restaurantId: { $in: A } })), N.push(B);
|
|
3256
3256
|
}
|
|
3257
3257
|
if (A) {
|
|
3258
3258
|
const W = [
|
|
@@ -3260,12 +3260,12 @@ const Cr = { class: "col flex items-center" }, Ar = {
|
|
|
3260
3260
|
], j = _.value.map((ee) => ee._id);
|
|
3261
3261
|
W.length !== j.length && (N = E(
|
|
3262
3262
|
N,
|
|
3263
|
-
(G =
|
|
3263
|
+
(G = h.value || j) == null ? void 0 : G.filter((ee) => W.includes(ee))
|
|
3264
3264
|
));
|
|
3265
3265
|
}
|
|
3266
3266
|
return N;
|
|
3267
3267
|
}
|
|
3268
|
-
function
|
|
3268
|
+
function C(v) {
|
|
3269
3269
|
const A = E(n.value, v);
|
|
3270
3270
|
n.value = A;
|
|
3271
3271
|
}
|
|
@@ -3283,13 +3283,13 @@ const Cr = { class: "col flex items-center" }, Ar = {
|
|
|
3283
3283
|
}
|
|
3284
3284
|
return N;
|
|
3285
3285
|
}
|
|
3286
|
-
|
|
3286
|
+
Rn(async () => {
|
|
3287
3287
|
await Promise.all([
|
|
3288
|
-
wr.readWarehouses().then((v) =>
|
|
3288
|
+
wr.readWarehouses().then((v) => R.value = v),
|
|
3289
3289
|
c()
|
|
3290
3290
|
]);
|
|
3291
3291
|
});
|
|
3292
|
-
const F =
|
|
3292
|
+
const F = z(() => Ot(
|
|
3293
3293
|
n.value,
|
|
3294
3294
|
Lt
|
|
3295
3295
|
).filter((N) => {
|
|
@@ -3302,9 +3302,9 @@ const Cr = { class: "col flex items-center" }, Ar = {
|
|
|
3302
3302
|
const W = m(N.subject);
|
|
3303
3303
|
if (!W) return N;
|
|
3304
3304
|
const j = W.actions;
|
|
3305
|
-
return j.length <= 1 || j.filter((
|
|
3305
|
+
return j.length <= 1 || j.filter((B) => !G.includes(B)).length === 0 ? N : { ...N, actions: [...j] };
|
|
3306
3306
|
}));
|
|
3307
|
-
function
|
|
3307
|
+
function Z(v) {
|
|
3308
3308
|
const A = new Set(
|
|
3309
3309
|
F.value.filter((j) => !j.inverted).map((j) => j.subject)
|
|
3310
3310
|
), N = new Set(
|
|
@@ -3314,22 +3314,22 @@ const Cr = { class: "col flex items-center" }, Ar = {
|
|
|
3314
3314
|
);
|
|
3315
3315
|
let W = [...n.value];
|
|
3316
3316
|
for (const j of A)
|
|
3317
|
-
N.has(j) || (G.has(j) && (W = W.filter((
|
|
3317
|
+
N.has(j) || (G.has(j) && (W = W.filter((B) => B.subject !== j)), (!G.has(j) || Ot(
|
|
3318
3318
|
W,
|
|
3319
3319
|
Lt
|
|
3320
3320
|
).some(
|
|
3321
|
-
(
|
|
3322
|
-
)) && !W.some((
|
|
3321
|
+
(B) => B.subject === j && !B.inverted && B.actions.includes("manage")
|
|
3322
|
+
)) && !W.some((B) => B.subject === j && B.inverted) && W.push({ subject: j, actions: ["manage"], inverted: !0 }));
|
|
3323
3323
|
for (const j of N)
|
|
3324
3324
|
if (!A.has(j)) {
|
|
3325
|
-
const ee = W.some((
|
|
3326
|
-
if (W = W.filter((
|
|
3327
|
-
const
|
|
3328
|
-
(
|
|
3329
|
-
),
|
|
3330
|
-
if (
|
|
3331
|
-
const { category:
|
|
3332
|
-
W.push({ ...ne, actions:
|
|
3325
|
+
const ee = W.some((B) => B.subject === j && B.inverted);
|
|
3326
|
+
if (W = W.filter((B) => !(B.subject === j && B.inverted)), !ee && !G.has(j)) {
|
|
3327
|
+
const B = v.find(
|
|
3328
|
+
(x) => x.subject === j && !x.inverted
|
|
3329
|
+
), he = m(j);
|
|
3330
|
+
if (he && B) {
|
|
3331
|
+
const { category: x, showByFeatureFlag: ae, ...ne } = he;
|
|
3332
|
+
W.push({ ...ne, actions: B.actions });
|
|
3333
3333
|
}
|
|
3334
3334
|
}
|
|
3335
3335
|
}
|
|
@@ -3337,30 +3337,30 @@ const Cr = { class: "col flex items-center" }, Ar = {
|
|
|
3337
3337
|
if (!A.has(j)) continue;
|
|
3338
3338
|
const ee = F.value.find(
|
|
3339
3339
|
(ne) => ne.subject === j && !ne.inverted
|
|
3340
|
-
),
|
|
3341
|
-
if (!ee || !
|
|
3342
|
-
const
|
|
3343
|
-
if (
|
|
3340
|
+
), B = v.find((ne) => ne.subject === j && !ne.inverted);
|
|
3341
|
+
if (!ee || !B) continue;
|
|
3342
|
+
const he = new Set(ee.actions), x = new Set(B.actions);
|
|
3343
|
+
if (he.size === x.size && [...he].every((ne) => x.has(ne)))
|
|
3344
3344
|
continue;
|
|
3345
3345
|
const ae = W.findIndex((ne) => ne.subject === j && !ne.inverted);
|
|
3346
3346
|
if (ae >= 0)
|
|
3347
3347
|
W[ae] = {
|
|
3348
3348
|
...W[ae],
|
|
3349
|
-
actions: Array.from(
|
|
3349
|
+
actions: Array.from(x)
|
|
3350
3350
|
};
|
|
3351
3351
|
else {
|
|
3352
3352
|
const ne = m(j);
|
|
3353
3353
|
if (ne) {
|
|
3354
|
-
const { category: Ie, showByFeatureFlag: He, ...
|
|
3355
|
-
W.push({ ...
|
|
3354
|
+
const { category: Ie, showByFeatureFlag: He, ...Ye } = ne;
|
|
3355
|
+
W.push({ ...Ye, actions: Array.from(x) });
|
|
3356
3356
|
}
|
|
3357
3357
|
}
|
|
3358
|
-
|
|
3358
|
+
he.has("manage") && !x.has("manage") && Ot(
|
|
3359
3359
|
W,
|
|
3360
3360
|
Lt
|
|
3361
3361
|
).some(
|
|
3362
3362
|
(Ie) => Ie.subject === j && !Ie.inverted && Ie.actions.includes("manage")
|
|
3363
|
-
) && !W.some((Ie) => Ie.subject === j && Ie.inverted) && W.push({ subject: j, actions: ["manage"], inverted: !0 }), !
|
|
3363
|
+
) && !W.some((Ie) => Ie.subject === j && Ie.inverted) && W.push({ subject: j, actions: ["manage"], inverted: !0 }), !he.has("manage") && x.has("manage") && (W = W.filter((ne) => !(ne.subject === j && ne.inverted)));
|
|
3364
3364
|
}
|
|
3365
3365
|
n.value = W;
|
|
3366
3366
|
}
|
|
@@ -3370,15 +3370,15 @@ const Cr = { class: "col flex items-center" }, Ar = {
|
|
|
3370
3370
|
l("permissionChanged", v);
|
|
3371
3371
|
},
|
|
3372
3372
|
{ deep: !0 }
|
|
3373
|
-
), (v, A) => (
|
|
3373
|
+
), (v, A) => (Q(), oe("div", Pr, [
|
|
3374
3374
|
ie("div", Fr, [
|
|
3375
3375
|
_e(Nr, {
|
|
3376
3376
|
"model-value": F.value,
|
|
3377
3377
|
"excluded-subjects": w,
|
|
3378
|
-
"additional-permissions":
|
|
3379
|
-
"onUpdate:modelValue":
|
|
3380
|
-
},
|
|
3381
|
-
|
|
3378
|
+
"additional-permissions": Y(u),
|
|
3379
|
+
"onUpdate:modelValue": Z
|
|
3380
|
+
}, xe({ _: 2 }, [
|
|
3381
|
+
ge(p.value, (N) => ({
|
|
3382
3382
|
name: `checkbox-${N.id}-append`,
|
|
3383
3383
|
fn: pe(() => [
|
|
3384
3384
|
_e(it, { item: N }, null, 8, ["item"])
|
|
@@ -3387,13 +3387,13 @@ const Cr = { class: "col flex items-center" }, Ar = {
|
|
|
3387
3387
|
]), 1032, ["model-value", "additional-permissions"])
|
|
3388
3388
|
]),
|
|
3389
3389
|
ie("div", jr, [
|
|
3390
|
-
_e(
|
|
3390
|
+
_e(Cn, {
|
|
3391
3391
|
"model-value": V.value,
|
|
3392
3392
|
options: M.value,
|
|
3393
|
-
context:
|
|
3393
|
+
context: Y(a)("team.labels.warehouse"),
|
|
3394
3394
|
"onUpdate:modelValue": i
|
|
3395
|
-
},
|
|
3396
|
-
|
|
3395
|
+
}, xe({ _: 2 }, [
|
|
3396
|
+
ge(y.value, (N) => ({
|
|
3397
3397
|
name: `checkbox-${N.id}-append`,
|
|
3398
3398
|
fn: pe(() => [
|
|
3399
3399
|
_e(it, { item: N }, null, 8, ["item"])
|
|
@@ -3402,13 +3402,13 @@ const Cr = { class: "col flex items-center" }, Ar = {
|
|
|
3402
3402
|
]), 1032, ["model-value", "options", "context"])
|
|
3403
3403
|
]),
|
|
3404
3404
|
ie("div", Ur, [
|
|
3405
|
-
_e(
|
|
3405
|
+
_e(Cn, {
|
|
3406
3406
|
"model-value": I.value,
|
|
3407
3407
|
options: S.value,
|
|
3408
|
-
context:
|
|
3408
|
+
context: Y(a)("team.labels.restaurant"),
|
|
3409
3409
|
"onUpdate:modelValue": H
|
|
3410
|
-
},
|
|
3411
|
-
|
|
3410
|
+
}, xe({ _: 2 }, [
|
|
3411
|
+
ge(k.value, (N) => ({
|
|
3412
3412
|
name: `checkbox-${N.id}-append`,
|
|
3413
3413
|
fn: pe(() => [
|
|
3414
3414
|
_e(it, { item: N }, null, 8, ["item"])
|
|
@@ -3418,12 +3418,12 @@ const Cr = { class: "col flex items-center" }, Ar = {
|
|
|
3418
3418
|
]),
|
|
3419
3419
|
ie("div", Vr, [
|
|
3420
3420
|
_e(Mr, {
|
|
3421
|
-
roles:
|
|
3422
|
-
"model-value":
|
|
3421
|
+
roles: Y(_),
|
|
3422
|
+
"model-value": h.value,
|
|
3423
3423
|
"restaurant-ids": I.value,
|
|
3424
|
-
"onUpdate:modelValue":
|
|
3425
|
-
},
|
|
3426
|
-
|
|
3424
|
+
"onUpdate:modelValue": C
|
|
3425
|
+
}, xe({ _: 2 }, [
|
|
3426
|
+
ge(O.value, (N) => ({
|
|
3427
3427
|
name: `checkbox-${N.id}-append`,
|
|
3428
3428
|
fn: pe(() => [
|
|
3429
3429
|
_e(it, { item: N }, null, 8, ["item"])
|