@feedmepos/mf-hrm-portal 2.0.15-dev.4 → 2.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AuditLogList-DnmeTc37.js → AuditLogList-DT1D_rW_.js} +4 -4
- package/dist/{EmployeeList-DxlllTty.js → EmployeeList-BTmOkuWX.js} +5 -5
- package/dist/{Main-COZvNyhk.js → Main-BMvwjPPD.js} +4 -4
- package/dist/{Main-D1yqf9Yq.js → Main-C-dKpY-V.js} +4 -4
- package/dist/{Main-CeFkxIhA.js → Main-D8mxSLIh.js} +9 -9
- package/dist/{PermissionSetList-Ckc-VGme.js → PermissionSetList-CTWB57n_.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-n4_wNZbg.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-wr96xoqk.js} +930 -930
- package/dist/{RoleList-BDbQX9of.js → RoleList-DcEBivyI.js} +7 -7
- package/dist/{TeamMemberList-DJYxuPyN.js → TeamMemberList-C46vLENm.js} +6 -6
- package/dist/{TimesheetList-CxehedOx.js → TimesheetList-DVBxt0yy.js} +6 -6
- package/dist/{app-DEA0Bhzy.js → app-CONjCq7W.js} +4 -4
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-D-rfdWhu.js → dayjs.min-BlvCNVv4.js} +1 -1
- package/dist/{employee-CFnP1VvM.js → employee-CNav3hRK.js} +3 -3
- package/dist/{iteration-S7YxnyNB.js → iteration-Do5zrsL-.js} +2 -2
- package/dist/{lodash-BdeQh1LM.js → lodash-hgToynpT.js} +1 -1
- package/dist/{rule-DbvJ1q_w.js → rule-Da7kiCOw.js} +2 -2
- package/dist/{timesheet-CPZSm4Qs.js → timesheet-4wryxAvv.js} +2 -2
- package/dist/{useAppStore-CJ6tnELc.js → useAppStore-BfHJkgiZ.js} +1 -1
- package/dist/{useLoading-BuN7YL-v.js → useLoading-B4Zk_3P4.js} +1 -1
- package/dist/{useReportPermissions-D-GJuNg3.js → useReportPermissions-DDfUTfzR.js} +3 -3
- package/package.json +1 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { getCurrentInstance as xt, inject as
|
|
1
|
+
import { getCurrentInstance as xt, inject as Jn, ref as Ue, shallowRef as Kn, computed as te, watch as St, onMounted as Yt, onUnmounted as Cn, defineComponent as ye, h as Sn, createVNode as _e, Text as zn, Fragment as Ee, resolveComponent as Ze, createBlock as Se, openBlock as H, withCtx as ge, createElementVNode as ae, createElementBlock as se, toDisplayString as Ce, unref as B, renderList as he, renderSlot as be, createCommentVNode as Oe, createTextVNode as Qn, useSlots as qn, normalizeStyle as ct, normalizeClass as qe, toRef as Qt, createSlots as Fe, nextTick as es, mergeModels as qt, useModel as ts } from "vue";
|
|
2
2
|
import { useI18n as _t, 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 { d as ut, g as os, b as is } from "./iteration-
|
|
6
|
-
import { u as cs, p as us, d as
|
|
7
|
-
import { u as
|
|
4
|
+
import { p as Dt, d as ss, v as as, w as yt, x as rs, j as ls, $ as Tt } from "./rule-Da7kiCOw.js";
|
|
5
|
+
import { d as ut, g as os, b as is } from "./iteration-Do5zrsL-.js";
|
|
6
|
+
import { u as cs, p as us, d as de, C as ds, A as kt } from "./app-CONjCq7W.js";
|
|
7
|
+
import { u as ms } from "./useAppStore-BfHJkgiZ.js";
|
|
8
8
|
/*!
|
|
9
9
|
* shared v10.0.5
|
|
10
10
|
* (c) 2024 kazuya kawaguchi
|
|
11
11
|
* Released under the MIT License.
|
|
12
12
|
*/
|
|
13
|
-
const en = typeof window < "u", Ve = (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"),
|
|
13
|
+
const en = typeof window < "u", Ve = (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"), me = (e) => typeof e == "number" && isFinite(e), ps = (e) => Zt(e) === "[object Date]", mt = (e) => Zt(e) === "[object RegExp]", pt = (e) => J(e) && Object.keys(e).length === 0, fe = Object.assign, hs = Object.create, q = (e = null) => hs(e);
|
|
14
14
|
let tn;
|
|
15
15
|
const je = () => tn || (tn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : q());
|
|
16
16
|
function nn(e) {
|
|
17
17
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
18
18
|
}
|
|
19
|
-
const
|
|
20
|
-
function
|
|
21
|
-
return
|
|
19
|
+
const gs = Object.prototype.hasOwnProperty;
|
|
20
|
+
function Ne(e, t) {
|
|
21
|
+
return gs.call(e, t);
|
|
22
22
|
}
|
|
23
|
-
const ue = Array.isArray, le = (e) => typeof e == "function", F = (e) => typeof e == "string", ce = (e) => typeof e == "boolean", K = (e) => e !== null && typeof e == "object",
|
|
24
|
-
function
|
|
23
|
+
const ue = Array.isArray, le = (e) => typeof e == "function", F = (e) => typeof e == "string", ce = (e) => typeof e == "boolean", K = (e) => e !== null && typeof e == "object", bs = (e) => K(e) && le(e.then) && le(e.catch), Dn = Object.prototype.toString, Zt = (e) => Dn.call(e), J = (e) => Zt(e) === "[object Object]", vs = (e) => e == null ? "" : ue(e) || J(e) && e.toString === Dn ? JSON.stringify(e, null, 2) : String(e);
|
|
24
|
+
function Xt(e, t = "") {
|
|
25
25
|
return e.reduce((n, s, l) => l === 0 ? n + s : n + t + s, "");
|
|
26
26
|
}
|
|
27
27
|
function Is(e, t) {
|
|
28
28
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
29
29
|
}
|
|
30
30
|
const rt = (e) => !K(e) || ue(e);
|
|
31
|
-
function
|
|
31
|
+
function dt(e, t) {
|
|
32
32
|
if (rt(e) || rt(t))
|
|
33
33
|
throw new Error("Invalid value");
|
|
34
34
|
const n = [{ src: e, des: t }];
|
|
@@ -45,7 +45,7 @@ function Es(e, t, n) {
|
|
|
45
45
|
function Mt(e, t, n) {
|
|
46
46
|
return { start: e, end: t };
|
|
47
47
|
}
|
|
48
|
-
const
|
|
48
|
+
const Q = {
|
|
49
49
|
// tokenizer error codes
|
|
50
50
|
EXPECTED_TOKEN: 1,
|
|
51
51
|
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
|
@@ -62,94 +62,94 @@ const z = {
|
|
|
62
62
|
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
63
63
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
64
64
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
65
|
-
},
|
|
65
|
+
}, Ns = 17;
|
|
66
66
|
function ht(e, t, n = {}) {
|
|
67
|
-
const { domain: s, messages: l, args: a } = n, c = e,
|
|
68
|
-
return
|
|
67
|
+
const { domain: s, messages: l, args: a } = n, c = e, d = new SyntaxError(String(c));
|
|
68
|
+
return d.code = e, t && (d.location = t), d.domain = s, d;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function ys(e) {
|
|
71
71
|
throw e;
|
|
72
72
|
}
|
|
73
|
-
const
|
|
74
|
-
`,
|
|
73
|
+
const ke = " ", Ts = "\r", pe = `
|
|
74
|
+
`, ks = "\u2028", Os = "\u2029";
|
|
75
75
|
function Ls(e) {
|
|
76
76
|
const t = e;
|
|
77
77
|
let n = 0, s = 1, l = 1, a = 0;
|
|
78
|
-
const c = (
|
|
79
|
-
function
|
|
78
|
+
const c = (b) => t[b] === Ts && t[b + 1] === pe, d = (b) => t[b] === pe, u = (b) => t[b] === Os, p = (b) => t[b] === ks, O = (b) => c(b) || d(b) || u(b) || p(b), A = () => n, N = () => s, P = () => l, V = () => a, L = (b) => c(b) || u(b) || p(b) ? pe : t[b], M = () => L(n), i = () => L(n + a);
|
|
79
|
+
function m() {
|
|
80
80
|
return a = 0, O(n) && (s++, l = 0), c(n) && n++, n++, l++, t[n];
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function y() {
|
|
83
83
|
return c(n + a) && a++, a++, t[n + a];
|
|
84
84
|
}
|
|
85
85
|
function _() {
|
|
86
86
|
n = 0, s = 1, l = 1, a = 0;
|
|
87
87
|
}
|
|
88
|
-
function w(
|
|
89
|
-
a =
|
|
88
|
+
function w(b = 0) {
|
|
89
|
+
a = b;
|
|
90
90
|
}
|
|
91
91
|
function S() {
|
|
92
|
-
const
|
|
93
|
-
for (;
|
|
94
|
-
|
|
92
|
+
const b = n + a;
|
|
93
|
+
for (; b !== n; )
|
|
94
|
+
m();
|
|
95
95
|
a = 0;
|
|
96
96
|
}
|
|
97
97
|
return {
|
|
98
|
-
index:
|
|
99
|
-
line:
|
|
98
|
+
index: A,
|
|
99
|
+
line: N,
|
|
100
100
|
column: P,
|
|
101
101
|
peekOffset: V,
|
|
102
102
|
charAt: L,
|
|
103
103
|
currentChar: M,
|
|
104
104
|
currentPeek: i,
|
|
105
|
-
next:
|
|
106
|
-
peek:
|
|
105
|
+
next: m,
|
|
106
|
+
peek: y,
|
|
107
107
|
reset: _,
|
|
108
108
|
resetPeek: w,
|
|
109
109
|
skipToPeek: S
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
|
-
const
|
|
113
|
-
function
|
|
114
|
-
const n = t.location !== !1, s = Ls(e), l = () => s.index(), a = () => Es(s.line(), s.column(), s.index()), c = a(),
|
|
112
|
+
const Ae = void 0, Rs = ".", sn = "'", As = "tokenizer";
|
|
113
|
+
function Cs(e, t = {}) {
|
|
114
|
+
const n = t.location !== !1, s = Ls(e), l = () => s.index(), a = () => Es(s.line(), s.column(), s.index()), c = a(), d = l(), u = {
|
|
115
115
|
currentType: 13,
|
|
116
|
-
offset:
|
|
116
|
+
offset: d,
|
|
117
117
|
startLoc: c,
|
|
118
118
|
endLoc: c,
|
|
119
119
|
lastType: 13,
|
|
120
|
-
lastOffset:
|
|
120
|
+
lastOffset: d,
|
|
121
121
|
lastStartLoc: c,
|
|
122
122
|
lastEndLoc: c,
|
|
123
123
|
braceNest: 0,
|
|
124
124
|
inLinked: !1,
|
|
125
125
|
text: ""
|
|
126
126
|
}, p = () => u, { onError: O } = t;
|
|
127
|
-
function
|
|
127
|
+
function A(r, o, g, ...U) {
|
|
128
128
|
const oe = p();
|
|
129
|
-
if (o.column +=
|
|
129
|
+
if (o.column += g, o.offset += g, O) {
|
|
130
130
|
const Z = n ? Mt(oe.startLoc, o) : null, f = ht(r, Z, {
|
|
131
|
-
domain:
|
|
131
|
+
domain: As,
|
|
132
132
|
args: U
|
|
133
133
|
});
|
|
134
134
|
O(f);
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function N(r, o, g) {
|
|
138
138
|
r.endLoc = a(), r.currentType = o;
|
|
139
139
|
const U = { type: o };
|
|
140
|
-
return n && (U.loc = Mt(r.startLoc, r.endLoc)),
|
|
140
|
+
return n && (U.loc = Mt(r.startLoc, r.endLoc)), g != null && (U.value = g), U;
|
|
141
141
|
}
|
|
142
|
-
const P = (r) =>
|
|
142
|
+
const P = (r) => N(
|
|
143
143
|
r,
|
|
144
144
|
13
|
|
145
145
|
/* TokenTypes.EOF */
|
|
146
146
|
);
|
|
147
147
|
function V(r, o) {
|
|
148
|
-
return r.currentChar() === o ? (r.next(), o) : (
|
|
148
|
+
return r.currentChar() === o ? (r.next(), o) : (A(Q.EXPECTED_TOKEN, a(), 0, o), "");
|
|
149
149
|
}
|
|
150
150
|
function L(r) {
|
|
151
151
|
let o = "";
|
|
152
|
-
for (; r.currentPeek() ===
|
|
152
|
+
for (; r.currentPeek() === ke || r.currentPeek() === pe; )
|
|
153
153
|
o += r.currentPeek(), r.peek();
|
|
154
154
|
return o;
|
|
155
155
|
}
|
|
@@ -158,74 +158,74 @@ function As(e, t = {}) {
|
|
|
158
158
|
return r.skipToPeek(), o;
|
|
159
159
|
}
|
|
160
160
|
function i(r) {
|
|
161
|
-
if (r ===
|
|
161
|
+
if (r === Ae)
|
|
162
162
|
return !1;
|
|
163
163
|
const o = r.charCodeAt(0);
|
|
164
164
|
return o >= 97 && o <= 122 || // a-z
|
|
165
165
|
o >= 65 && o <= 90 || // A-Z
|
|
166
166
|
o === 95;
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
if (r ===
|
|
168
|
+
function m(r) {
|
|
169
|
+
if (r === Ae)
|
|
170
170
|
return !1;
|
|
171
171
|
const o = r.charCodeAt(0);
|
|
172
172
|
return o >= 48 && o <= 57;
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
const { currentType:
|
|
176
|
-
if (
|
|
174
|
+
function y(r, o) {
|
|
175
|
+
const { currentType: g } = o;
|
|
176
|
+
if (g !== 2)
|
|
177
177
|
return !1;
|
|
178
178
|
L(r);
|
|
179
179
|
const U = i(r.currentPeek());
|
|
180
180
|
return r.resetPeek(), U;
|
|
181
181
|
}
|
|
182
182
|
function _(r, o) {
|
|
183
|
-
const { currentType:
|
|
184
|
-
if (
|
|
183
|
+
const { currentType: g } = o;
|
|
184
|
+
if (g !== 2)
|
|
185
185
|
return !1;
|
|
186
186
|
L(r);
|
|
187
|
-
const U = r.currentPeek() === "-" ? r.peek() : r.currentPeek(), oe =
|
|
187
|
+
const U = r.currentPeek() === "-" ? r.peek() : r.currentPeek(), oe = m(U);
|
|
188
188
|
return r.resetPeek(), oe;
|
|
189
189
|
}
|
|
190
190
|
function w(r, o) {
|
|
191
|
-
const { currentType:
|
|
192
|
-
if (
|
|
191
|
+
const { currentType: g } = o;
|
|
192
|
+
if (g !== 2)
|
|
193
193
|
return !1;
|
|
194
194
|
L(r);
|
|
195
195
|
const U = r.currentPeek() === sn;
|
|
196
196
|
return r.resetPeek(), U;
|
|
197
197
|
}
|
|
198
198
|
function S(r, o) {
|
|
199
|
-
const { currentType:
|
|
200
|
-
if (
|
|
199
|
+
const { currentType: g } = o;
|
|
200
|
+
if (g !== 7)
|
|
201
201
|
return !1;
|
|
202
202
|
L(r);
|
|
203
203
|
const U = r.currentPeek() === ".";
|
|
204
204
|
return r.resetPeek(), U;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
const { currentType:
|
|
208
|
-
if (
|
|
206
|
+
function b(r, o) {
|
|
207
|
+
const { currentType: g } = o;
|
|
208
|
+
if (g !== 8)
|
|
209
209
|
return !1;
|
|
210
210
|
L(r);
|
|
211
211
|
const U = i(r.currentPeek());
|
|
212
212
|
return r.resetPeek(), U;
|
|
213
213
|
}
|
|
214
214
|
function v(r, o) {
|
|
215
|
-
const { currentType:
|
|
216
|
-
if (!(
|
|
215
|
+
const { currentType: g } = o;
|
|
216
|
+
if (!(g === 7 || g === 11))
|
|
217
217
|
return !1;
|
|
218
218
|
L(r);
|
|
219
219
|
const U = r.currentPeek() === ":";
|
|
220
220
|
return r.resetPeek(), U;
|
|
221
221
|
}
|
|
222
222
|
function h(r, o) {
|
|
223
|
-
const { currentType:
|
|
224
|
-
if (
|
|
223
|
+
const { currentType: g } = o;
|
|
224
|
+
if (g !== 9)
|
|
225
225
|
return !1;
|
|
226
226
|
const U = () => {
|
|
227
227
|
const Z = r.currentPeek();
|
|
228
|
-
return Z === "{" ? i(r.peek()) : Z === "@" || Z === "|" || Z === ":" || Z === "." || Z ===
|
|
228
|
+
return Z === "{" ? i(r.peek()) : Z === "@" || Z === "|" || Z === ":" || Z === "." || Z === ke || !Z ? !1 : Z === pe ? (r.peek(), U()) : C(r, !1);
|
|
229
229
|
}, oe = U();
|
|
230
230
|
return r.resetPeek(), oe;
|
|
231
231
|
}
|
|
@@ -234,16 +234,16 @@ function As(e, t = {}) {
|
|
|
234
234
|
const o = r.currentPeek() === "|";
|
|
235
235
|
return r.resetPeek(), o;
|
|
236
236
|
}
|
|
237
|
-
function
|
|
238
|
-
const
|
|
237
|
+
function C(r, o = !0) {
|
|
238
|
+
const g = (oe = !1, Z = "") => {
|
|
239
239
|
const f = r.currentPeek();
|
|
240
|
-
return f === "{" || f === "@" || !f ? oe : f === "|" ? !(Z ===
|
|
241
|
-
}, U =
|
|
240
|
+
return f === "{" || f === "@" || !f ? oe : f === "|" ? !(Z === ke || Z === pe) : f === ke ? (r.peek(), g(!0, ke)) : f === pe ? (r.peek(), g(!0, pe)) : !0;
|
|
241
|
+
}, U = g();
|
|
242
242
|
return o && r.resetPeek(), U;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
245
|
-
const
|
|
246
|
-
return
|
|
244
|
+
function R(r, o) {
|
|
245
|
+
const g = r.currentChar();
|
|
246
|
+
return g === Ae ? Ae : o(g) ? (r.next(), g) : null;
|
|
247
247
|
}
|
|
248
248
|
function x(r) {
|
|
249
249
|
const o = r.charCodeAt(0);
|
|
@@ -254,7 +254,7 @@ function As(e, t = {}) {
|
|
|
254
254
|
o === 36;
|
|
255
255
|
}
|
|
256
256
|
function W(r) {
|
|
257
|
-
return
|
|
257
|
+
return R(r, x);
|
|
258
258
|
}
|
|
259
259
|
function D(r) {
|
|
260
260
|
const o = r.charCodeAt(0);
|
|
@@ -265,15 +265,15 @@ function As(e, t = {}) {
|
|
|
265
265
|
o === 36 || // $
|
|
266
266
|
o === 45;
|
|
267
267
|
}
|
|
268
|
-
function T(r) {
|
|
269
|
-
return C(r, D);
|
|
270
|
-
}
|
|
271
268
|
function k(r) {
|
|
269
|
+
return R(r, D);
|
|
270
|
+
}
|
|
271
|
+
function T(r) {
|
|
272
272
|
const o = r.charCodeAt(0);
|
|
273
273
|
return o >= 48 && o <= 57;
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
return
|
|
275
|
+
function X(r) {
|
|
276
|
+
return R(r, T);
|
|
277
277
|
}
|
|
278
278
|
function G(r) {
|
|
279
279
|
const o = r.charCodeAt(0);
|
|
@@ -282,55 +282,55 @@ function As(e, t = {}) {
|
|
|
282
282
|
o >= 97 && o <= 102;
|
|
283
283
|
}
|
|
284
284
|
function j(r) {
|
|
285
|
-
return
|
|
285
|
+
return R(r, G);
|
|
286
286
|
}
|
|
287
287
|
function ne(r) {
|
|
288
|
-
let o = "",
|
|
289
|
-
for (; o =
|
|
290
|
-
|
|
291
|
-
return
|
|
288
|
+
let o = "", g = "";
|
|
289
|
+
for (; o = X(r); )
|
|
290
|
+
g += o;
|
|
291
|
+
return g;
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function $(r) {
|
|
294
294
|
let o = "";
|
|
295
295
|
for (; ; ) {
|
|
296
|
-
const
|
|
297
|
-
if (
|
|
296
|
+
const g = r.currentChar();
|
|
297
|
+
if (g === "{" || g === "}" || g === "@" || g === "|" || !g)
|
|
298
298
|
break;
|
|
299
|
-
if (
|
|
300
|
-
if (
|
|
301
|
-
o +=
|
|
299
|
+
if (g === ke || g === pe)
|
|
300
|
+
if (C(r))
|
|
301
|
+
o += g, r.next();
|
|
302
302
|
else {
|
|
303
303
|
if (E(r))
|
|
304
304
|
break;
|
|
305
|
-
o +=
|
|
305
|
+
o += g, r.next();
|
|
306
306
|
}
|
|
307
307
|
else
|
|
308
|
-
o +=
|
|
308
|
+
o += g, r.next();
|
|
309
309
|
}
|
|
310
310
|
return o;
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function Y(r) {
|
|
313
313
|
M(r);
|
|
314
|
-
let o = "",
|
|
315
|
-
for (; o =
|
|
316
|
-
|
|
317
|
-
return r.currentChar() ===
|
|
314
|
+
let o = "", g = "";
|
|
315
|
+
for (; o = k(r); )
|
|
316
|
+
g += o;
|
|
317
|
+
return r.currentChar() === Ae && A(Q.UNTERMINATED_CLOSING_BRACE, a(), 0), g;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function z(r) {
|
|
320
320
|
M(r);
|
|
321
321
|
let o = "";
|
|
322
|
-
return r.currentChar() === "-" ? (r.next(), o += `-${ne(r)}`) : o += ne(r), r.currentChar() ===
|
|
322
|
+
return r.currentChar() === "-" ? (r.next(), o += `-${ne(r)}`) : o += ne(r), r.currentChar() === Ae && A(Q.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
323
323
|
}
|
|
324
324
|
function we(r) {
|
|
325
325
|
return r !== sn && r !== pe;
|
|
326
326
|
}
|
|
327
327
|
function re(r) {
|
|
328
328
|
M(r), V(r, "'");
|
|
329
|
-
let o = "",
|
|
330
|
-
for (; o =
|
|
331
|
-
o === "\\" ?
|
|
329
|
+
let o = "", g = "";
|
|
330
|
+
for (; o = R(r, we); )
|
|
331
|
+
o === "\\" ? g += Ie(r) : g += o;
|
|
332
332
|
const U = r.currentChar();
|
|
333
|
-
return U === pe || U ===
|
|
333
|
+
return U === pe || U === Ae ? (A(Q.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), U === pe && (r.next(), V(r, "'")), g) : (V(r, "'"), g);
|
|
334
334
|
}
|
|
335
335
|
function Ie(r) {
|
|
336
336
|
const o = r.currentChar();
|
|
@@ -339,46 +339,46 @@ function As(e, t = {}) {
|
|
|
339
339
|
case "'":
|
|
340
340
|
return r.next(), `\\${o}`;
|
|
341
341
|
case "u":
|
|
342
|
-
return
|
|
342
|
+
return $e(r, o, 4);
|
|
343
343
|
case "U":
|
|
344
|
-
return
|
|
344
|
+
return $e(r, o, 6);
|
|
345
345
|
default:
|
|
346
|
-
return
|
|
346
|
+
return A(Q.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function $e(r, o, g) {
|
|
350
350
|
V(r, o);
|
|
351
351
|
let U = "";
|
|
352
|
-
for (let oe = 0; oe <
|
|
352
|
+
for (let oe = 0; oe < g; oe++) {
|
|
353
353
|
const Z = j(r);
|
|
354
354
|
if (!Z) {
|
|
355
|
-
|
|
355
|
+
A(Q.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${U}${r.currentChar()}`);
|
|
356
356
|
break;
|
|
357
357
|
}
|
|
358
358
|
U += Z;
|
|
359
359
|
}
|
|
360
360
|
return `\\${o}${U}`;
|
|
361
361
|
}
|
|
362
|
-
function
|
|
363
|
-
return r !== "{" && r !== "}" && r !==
|
|
362
|
+
function Je(r) {
|
|
363
|
+
return r !== "{" && r !== "}" && r !== ke && r !== pe;
|
|
364
364
|
}
|
|
365
365
|
function vt(r) {
|
|
366
366
|
M(r);
|
|
367
|
-
let o = "",
|
|
368
|
-
for (; o =
|
|
369
|
-
|
|
370
|
-
return
|
|
367
|
+
let o = "", g = "";
|
|
368
|
+
for (; o = R(r, Je); )
|
|
369
|
+
g += o;
|
|
370
|
+
return g;
|
|
371
371
|
}
|
|
372
372
|
function It(r) {
|
|
373
|
-
let o = "",
|
|
373
|
+
let o = "", g = "";
|
|
374
374
|
for (; o = W(r); )
|
|
375
|
-
|
|
376
|
-
return
|
|
375
|
+
g += o;
|
|
376
|
+
return g;
|
|
377
377
|
}
|
|
378
378
|
function Et(r) {
|
|
379
|
-
const o = (
|
|
379
|
+
const o = (g) => {
|
|
380
380
|
const U = r.currentChar();
|
|
381
|
-
return U === "{" || U === "@" || U === "|" || U === "(" || U === ")" || !U || U ===
|
|
381
|
+
return U === "{" || U === "@" || U === "|" || U === "(" || U === ")" || !U || U === ke ? g : (g += U, r.next(), o(g));
|
|
382
382
|
};
|
|
383
383
|
return o("");
|
|
384
384
|
}
|
|
@@ -392,75 +392,75 @@ function As(e, t = {}) {
|
|
|
392
392
|
return M(r), o;
|
|
393
393
|
}
|
|
394
394
|
function We(r, o) {
|
|
395
|
-
let
|
|
395
|
+
let g = null;
|
|
396
396
|
switch (r.currentChar()) {
|
|
397
397
|
case "{":
|
|
398
|
-
return o.braceNest >= 1 &&
|
|
398
|
+
return o.braceNest >= 1 && A(Q.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), r.next(), g = N(
|
|
399
399
|
o,
|
|
400
400
|
2,
|
|
401
401
|
"{"
|
|
402
402
|
/* TokenChars.BraceLeft */
|
|
403
|
-
), M(r), o.braceNest++,
|
|
403
|
+
), M(r), o.braceNest++, g;
|
|
404
404
|
case "}":
|
|
405
|
-
return o.braceNest > 0 && o.currentType === 2 &&
|
|
405
|
+
return o.braceNest > 0 && o.currentType === 2 && A(Q.EMPTY_PLACEHOLDER, a(), 0), r.next(), g = N(
|
|
406
406
|
o,
|
|
407
407
|
3,
|
|
408
408
|
"}"
|
|
409
409
|
/* TokenChars.BraceRight */
|
|
410
|
-
), o.braceNest--, o.braceNest > 0 && M(r), o.inLinked && o.braceNest === 0 && (o.inLinked = !1),
|
|
410
|
+
), o.braceNest--, o.braceNest > 0 && M(r), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), g;
|
|
411
411
|
case "@":
|
|
412
|
-
return o.braceNest > 0 &&
|
|
412
|
+
return o.braceNest > 0 && A(Q.UNTERMINATED_CLOSING_BRACE, a(), 0), g = Ge(r, o) || P(o), o.braceNest = 0, g;
|
|
413
413
|
default: {
|
|
414
414
|
let oe = !0, Z = !0, f = !0;
|
|
415
415
|
if (E(r))
|
|
416
|
-
return o.braceNest > 0 &&
|
|
416
|
+
return o.braceNest > 0 && A(Q.UNTERMINATED_CLOSING_BRACE, a(), 0), g = N(o, 1, Ke(r)), o.braceNest = 0, o.inLinked = !1, g;
|
|
417
417
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
418
|
-
return
|
|
419
|
-
if (oe =
|
|
420
|
-
return
|
|
418
|
+
return A(Q.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, ze(r, o);
|
|
419
|
+
if (oe = y(r, o))
|
|
420
|
+
return g = N(o, 4, Y(r)), M(r), g;
|
|
421
421
|
if (Z = _(r, o))
|
|
422
|
-
return
|
|
422
|
+
return g = N(o, 5, z(r)), M(r), g;
|
|
423
423
|
if (f = w(r, o))
|
|
424
|
-
return
|
|
424
|
+
return g = N(o, 6, re(r)), M(r), g;
|
|
425
425
|
if (!oe && !Z && !f)
|
|
426
|
-
return
|
|
426
|
+
return g = N(o, 12, vt(r)), A(Q.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, g.value), M(r), g;
|
|
427
427
|
break;
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
|
-
return
|
|
430
|
+
return g;
|
|
431
431
|
}
|
|
432
432
|
function Ge(r, o) {
|
|
433
|
-
const { currentType:
|
|
433
|
+
const { currentType: g } = o;
|
|
434
434
|
let U = null;
|
|
435
435
|
const oe = r.currentChar();
|
|
436
|
-
switch ((
|
|
436
|
+
switch ((g === 7 || g === 8 || g === 11 || g === 9) && (oe === pe || oe === ke) && A(Q.INVALID_LINKED_FORMAT, a(), 0), oe) {
|
|
437
437
|
case "@":
|
|
438
|
-
return r.next(), U =
|
|
438
|
+
return r.next(), U = N(
|
|
439
439
|
o,
|
|
440
440
|
7,
|
|
441
441
|
"@"
|
|
442
442
|
/* TokenChars.LinkedAlias */
|
|
443
443
|
), o.inLinked = !0, U;
|
|
444
444
|
case ".":
|
|
445
|
-
return M(r), r.next(),
|
|
445
|
+
return M(r), r.next(), N(
|
|
446
446
|
o,
|
|
447
447
|
8,
|
|
448
448
|
"."
|
|
449
449
|
/* TokenChars.LinkedDot */
|
|
450
450
|
);
|
|
451
451
|
case ":":
|
|
452
|
-
return M(r), r.next(),
|
|
452
|
+
return M(r), r.next(), N(
|
|
453
453
|
o,
|
|
454
454
|
9,
|
|
455
455
|
":"
|
|
456
456
|
/* TokenChars.LinkedDelimiter */
|
|
457
457
|
);
|
|
458
458
|
default:
|
|
459
|
-
return E(r) ? (U =
|
|
459
|
+
return E(r) ? (U = N(o, 1, Ke(r)), o.braceNest = 0, o.inLinked = !1, U) : S(r, o) || v(r, o) ? (M(r), Ge(r, o)) : b(r, o) ? (M(r), N(o, 11, It(r))) : h(r, o) ? (M(r), oe === "{" ? We(r, o) || U : N(o, 10, Et(r))) : (g === 7 && A(Q.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, ze(r, o));
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
function
|
|
463
|
-
let
|
|
462
|
+
function ze(r, o) {
|
|
463
|
+
let g = {
|
|
464
464
|
type: 13
|
|
465
465
|
/* TokenTypes.EOF */
|
|
466
466
|
};
|
|
@@ -472,7 +472,7 @@ function As(e, t = {}) {
|
|
|
472
472
|
case "{":
|
|
473
473
|
return We(r, o) || P(o);
|
|
474
474
|
case "}":
|
|
475
|
-
return
|
|
475
|
+
return A(Q.UNBALANCED_CLOSING_BRACE, a(), 0), r.next(), N(
|
|
476
476
|
o,
|
|
477
477
|
3,
|
|
478
478
|
"}"
|
|
@@ -482,24 +482,24 @@ function As(e, t = {}) {
|
|
|
482
482
|
return Ge(r, o) || P(o);
|
|
483
483
|
default: {
|
|
484
484
|
if (E(r))
|
|
485
|
-
return
|
|
486
|
-
if (
|
|
487
|
-
return
|
|
485
|
+
return g = N(o, 1, Ke(r)), o.braceNest = 0, o.inLinked = !1, g;
|
|
486
|
+
if (C(r))
|
|
487
|
+
return N(o, 0, $(r));
|
|
488
488
|
break;
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
return
|
|
491
|
+
return g;
|
|
492
492
|
}
|
|
493
|
-
function
|
|
494
|
-
const { currentType: r, offset: o, startLoc:
|
|
495
|
-
return u.lastType = r, u.lastOffset = o, u.lastStartLoc =
|
|
493
|
+
function Nt() {
|
|
494
|
+
const { currentType: r, offset: o, startLoc: g, endLoc: U } = u;
|
|
495
|
+
return u.lastType = r, u.lastOffset = o, u.lastStartLoc = g, u.lastEndLoc = U, u.offset = l(), u.startLoc = a(), s.currentChar() === Ae ? N(
|
|
496
496
|
u,
|
|
497
497
|
13
|
|
498
498
|
/* TokenTypes.EOF */
|
|
499
|
-
) :
|
|
499
|
+
) : ze(s, u);
|
|
500
500
|
}
|
|
501
501
|
return {
|
|
502
|
-
nextToken:
|
|
502
|
+
nextToken: Nt,
|
|
503
503
|
currentOffset: l,
|
|
504
504
|
currentPosition: a,
|
|
505
505
|
context: p
|
|
@@ -520,136 +520,136 @@ function Ms(e, t, n) {
|
|
|
520
520
|
}
|
|
521
521
|
function ws(e = {}) {
|
|
522
522
|
const t = e.location !== !1, { onError: n } = e;
|
|
523
|
-
function s(i,
|
|
523
|
+
function s(i, m, y, _, ...w) {
|
|
524
524
|
const S = i.currentPosition();
|
|
525
525
|
if (S.offset += _, S.column += _, n) {
|
|
526
|
-
const
|
|
526
|
+
const b = t ? Mt(y, S) : null, v = ht(m, b, {
|
|
527
527
|
domain: Ss,
|
|
528
528
|
args: w
|
|
529
529
|
});
|
|
530
530
|
n(v);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
|
-
function l(i,
|
|
533
|
+
function l(i, m, y) {
|
|
534
534
|
const _ = { type: i };
|
|
535
|
-
return t && (_.start =
|
|
535
|
+
return t && (_.start = m, _.end = m, _.loc = { start: y, end: y }), _;
|
|
536
536
|
}
|
|
537
|
-
function a(i,
|
|
538
|
-
t && (i.end =
|
|
537
|
+
function a(i, m, y, _) {
|
|
538
|
+
t && (i.end = m, i.loc && (i.loc.end = y));
|
|
539
539
|
}
|
|
540
|
-
function c(i,
|
|
541
|
-
const
|
|
542
|
-
return _.value =
|
|
540
|
+
function c(i, m) {
|
|
541
|
+
const y = i.context(), _ = l(3, y.offset, y.startLoc);
|
|
542
|
+
return _.value = m, a(_, i.currentOffset(), i.currentPosition()), _;
|
|
543
543
|
}
|
|
544
|
-
function
|
|
545
|
-
const
|
|
546
|
-
return S.index = parseInt(
|
|
544
|
+
function d(i, m) {
|
|
545
|
+
const y = i.context(), { lastOffset: _, lastStartLoc: w } = y, S = l(5, _, w);
|
|
546
|
+
return S.index = parseInt(m, 10), i.nextToken(), a(S, i.currentOffset(), i.currentPosition()), S;
|
|
547
547
|
}
|
|
548
|
-
function u(i,
|
|
549
|
-
const
|
|
550
|
-
return S.key =
|
|
548
|
+
function u(i, m) {
|
|
549
|
+
const y = i.context(), { lastOffset: _, lastStartLoc: w } = y, S = l(4, _, w);
|
|
550
|
+
return S.key = m, i.nextToken(), a(S, i.currentOffset(), i.currentPosition()), S;
|
|
551
551
|
}
|
|
552
|
-
function p(i,
|
|
553
|
-
const
|
|
554
|
-
return S.value =
|
|
552
|
+
function p(i, m) {
|
|
553
|
+
const y = i.context(), { lastOffset: _, lastStartLoc: w } = y, S = l(9, _, w);
|
|
554
|
+
return S.value = m.replace(Ds, Ms), i.nextToken(), a(S, i.currentOffset(), i.currentPosition()), S;
|
|
555
555
|
}
|
|
556
556
|
function O(i) {
|
|
557
|
-
const
|
|
558
|
-
return
|
|
559
|
-
nextConsumeToken:
|
|
557
|
+
const m = i.nextToken(), y = i.context(), { lastOffset: _, lastStartLoc: w } = y, S = l(8, _, w);
|
|
558
|
+
return m.type !== 11 ? (s(i, Q.UNEXPECTED_EMPTY_LINKED_MODIFIER, y.lastStartLoc, 0), S.value = "", a(S, _, w), {
|
|
559
|
+
nextConsumeToken: m,
|
|
560
560
|
node: S
|
|
561
|
-
}) : (
|
|
561
|
+
}) : (m.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, Te(m)), S.value = m.value || "", a(S, i.currentOffset(), i.currentPosition()), {
|
|
562
562
|
node: S
|
|
563
563
|
});
|
|
564
564
|
}
|
|
565
|
-
function
|
|
566
|
-
const
|
|
567
|
-
return _.value =
|
|
565
|
+
function A(i, m) {
|
|
566
|
+
const y = i.context(), _ = l(7, y.offset, y.startLoc);
|
|
567
|
+
return _.value = m, a(_, i.currentOffset(), i.currentPosition()), _;
|
|
568
568
|
}
|
|
569
|
-
function
|
|
570
|
-
const
|
|
569
|
+
function N(i) {
|
|
570
|
+
const m = i.context(), y = l(6, m.offset, m.startLoc);
|
|
571
571
|
let _ = i.nextToken();
|
|
572
572
|
if (_.type === 8) {
|
|
573
573
|
const w = O(i);
|
|
574
|
-
|
|
574
|
+
y.modifier = w.node, _ = w.nextConsumeToken || i.nextToken();
|
|
575
575
|
}
|
|
576
|
-
switch (_.type !== 9 && s(i,
|
|
576
|
+
switch (_.type !== 9 && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, Te(_)), _ = i.nextToken(), _.type === 2 && (_ = i.nextToken()), _.type) {
|
|
577
577
|
case 10:
|
|
578
|
-
_.value == null && s(i,
|
|
578
|
+
_.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, Te(_)), y.key = A(i, _.value || "");
|
|
579
579
|
break;
|
|
580
580
|
case 4:
|
|
581
|
-
_.value == null && s(i,
|
|
581
|
+
_.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, Te(_)), y.key = u(i, _.value || "");
|
|
582
582
|
break;
|
|
583
583
|
case 5:
|
|
584
|
-
_.value == null && s(i,
|
|
584
|
+
_.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, Te(_)), y.key = d(i, _.value || "");
|
|
585
585
|
break;
|
|
586
586
|
case 6:
|
|
587
|
-
_.value == null && s(i,
|
|
587
|
+
_.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, Te(_)), y.key = p(i, _.value || "");
|
|
588
588
|
break;
|
|
589
589
|
default: {
|
|
590
|
-
s(i,
|
|
590
|
+
s(i, Q.UNEXPECTED_EMPTY_LINKED_KEY, m.lastStartLoc, 0);
|
|
591
591
|
const w = i.context(), S = l(7, w.offset, w.startLoc);
|
|
592
|
-
return S.value = "", a(S, w.offset, w.startLoc),
|
|
592
|
+
return S.value = "", a(S, w.offset, w.startLoc), y.key = S, a(y, w.offset, w.startLoc), {
|
|
593
593
|
nextConsumeToken: _,
|
|
594
|
-
node:
|
|
594
|
+
node: y
|
|
595
595
|
};
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
|
-
return a(
|
|
599
|
-
node:
|
|
598
|
+
return a(y, i.currentOffset(), i.currentPosition()), {
|
|
599
|
+
node: y
|
|
600
600
|
};
|
|
601
601
|
}
|
|
602
602
|
function P(i) {
|
|
603
|
-
const
|
|
603
|
+
const m = i.context(), y = m.currentType === 1 ? i.currentOffset() : m.offset, _ = m.currentType === 1 ? m.endLoc : m.startLoc, w = l(2, y, _);
|
|
604
604
|
w.items = [];
|
|
605
605
|
let S = null;
|
|
606
606
|
do {
|
|
607
607
|
const h = S || i.nextToken();
|
|
608
608
|
switch (S = null, h.type) {
|
|
609
609
|
case 0:
|
|
610
|
-
h.value == null && s(i,
|
|
610
|
+
h.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, Te(h)), w.items.push(c(i, h.value || ""));
|
|
611
611
|
break;
|
|
612
612
|
case 5:
|
|
613
|
-
h.value == null && s(i,
|
|
613
|
+
h.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, Te(h)), w.items.push(d(i, h.value || ""));
|
|
614
614
|
break;
|
|
615
615
|
case 4:
|
|
616
|
-
h.value == null && s(i,
|
|
616
|
+
h.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, Te(h)), w.items.push(u(i, h.value || ""));
|
|
617
617
|
break;
|
|
618
618
|
case 6:
|
|
619
|
-
h.value == null && s(i,
|
|
619
|
+
h.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, Te(h)), w.items.push(p(i, h.value || ""));
|
|
620
620
|
break;
|
|
621
621
|
case 7: {
|
|
622
|
-
const E =
|
|
622
|
+
const E = N(i);
|
|
623
623
|
w.items.push(E.node), S = E.nextConsumeToken || null;
|
|
624
624
|
break;
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
|
-
} while (
|
|
628
|
-
const
|
|
629
|
-
return a(w,
|
|
627
|
+
} while (m.currentType !== 13 && m.currentType !== 1);
|
|
628
|
+
const b = m.currentType === 1 ? m.lastOffset : i.currentOffset(), v = m.currentType === 1 ? m.lastEndLoc : i.currentPosition();
|
|
629
|
+
return a(w, b, v), w;
|
|
630
630
|
}
|
|
631
|
-
function V(i,
|
|
631
|
+
function V(i, m, y, _) {
|
|
632
632
|
const w = i.context();
|
|
633
633
|
let S = _.items.length === 0;
|
|
634
|
-
const
|
|
635
|
-
|
|
634
|
+
const b = l(1, m, y);
|
|
635
|
+
b.cases = [], b.cases.push(_);
|
|
636
636
|
do {
|
|
637
637
|
const v = P(i);
|
|
638
|
-
S || (S = v.items.length === 0),
|
|
638
|
+
S || (S = v.items.length === 0), b.cases.push(v);
|
|
639
639
|
} while (w.currentType !== 13);
|
|
640
|
-
return S && s(i,
|
|
640
|
+
return S && s(i, Q.MUST_HAVE_MESSAGES_IN_PLURAL, y, 0), a(b, i.currentOffset(), i.currentPosition()), b;
|
|
641
641
|
}
|
|
642
642
|
function L(i) {
|
|
643
|
-
const
|
|
644
|
-
return
|
|
643
|
+
const m = i.context(), { offset: y, startLoc: _ } = m, w = P(i);
|
|
644
|
+
return m.currentType === 13 ? w : V(i, y, _, w);
|
|
645
645
|
}
|
|
646
646
|
function M(i) {
|
|
647
|
-
const
|
|
648
|
-
return t && _.loc && (_.loc.source = i), _.body = L(
|
|
647
|
+
const m = Cs(i, fe({}, e)), y = m.context(), _ = l(0, y.offset, y.startLoc);
|
|
648
|
+
return t && _.loc && (_.loc.source = i), _.body = L(m), e.onCacheKey && (_.cacheKey = e.onCacheKey(i)), y.currentType !== 13 && s(m, Q.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, i[y.offset] || ""), a(_, m.currentOffset(), m.currentPosition()), _;
|
|
649
649
|
}
|
|
650
650
|
return { parse: M };
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function Te(e) {
|
|
653
653
|
if (e.type === 13)
|
|
654
654
|
return "EOF";
|
|
655
655
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
@@ -664,9 +664,9 @@ function Ps(e, t = {}) {
|
|
|
664
664
|
}
|
|
665
665
|
function an(e, t) {
|
|
666
666
|
for (let n = 0; n < e.length; n++)
|
|
667
|
-
|
|
667
|
+
Ht(e[n], t);
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function Ht(e, t) {
|
|
670
670
|
switch (e.type) {
|
|
671
671
|
case 1:
|
|
672
672
|
an(e.cases, t), t.helper(
|
|
@@ -678,7 +678,7 @@ function Yt(e, t) {
|
|
|
678
678
|
an(e.items, t);
|
|
679
679
|
break;
|
|
680
680
|
case 6: {
|
|
681
|
-
|
|
681
|
+
Ht(e.key, t), t.helper(
|
|
682
682
|
"linked"
|
|
683
683
|
/* HelperNameMap.LINKED */
|
|
684
684
|
), t.helper(
|
|
@@ -712,7 +712,7 @@ function Fs(e, t = {}) {
|
|
|
712
712
|
n.helper(
|
|
713
713
|
"normalize"
|
|
714
714
|
/* HelperNameMap.NORMALIZE */
|
|
715
|
-
), e.body &&
|
|
715
|
+
), e.body && Ht(e.body, n);
|
|
716
716
|
const s = n.context();
|
|
717
717
|
e.helpers = Array.from(s.helpers);
|
|
718
718
|
}
|
|
@@ -733,7 +733,7 @@ function rn(e) {
|
|
|
733
733
|
t.push(s.value);
|
|
734
734
|
}
|
|
735
735
|
if (t.length === e.items.length) {
|
|
736
|
-
e.static =
|
|
736
|
+
e.static = Xt(t);
|
|
737
737
|
for (let n = 0; n < e.items.length; n++) {
|
|
738
738
|
const s = e.items[n];
|
|
739
739
|
(s.type === 3 || s.type === 9) && delete s.value;
|
|
@@ -741,24 +741,24 @@ function rn(e) {
|
|
|
741
741
|
}
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function Ye(e) {
|
|
745
745
|
switch (e.t = e.type, e.type) {
|
|
746
746
|
case 0: {
|
|
747
747
|
const t = e;
|
|
748
|
-
|
|
748
|
+
Ye(t.body), t.b = t.body, delete t.body;
|
|
749
749
|
break;
|
|
750
750
|
}
|
|
751
751
|
case 1: {
|
|
752
752
|
const t = e, n = t.cases;
|
|
753
753
|
for (let s = 0; s < n.length; s++)
|
|
754
|
-
|
|
754
|
+
Ye(n[s]);
|
|
755
755
|
t.c = n, delete t.cases;
|
|
756
756
|
break;
|
|
757
757
|
}
|
|
758
758
|
case 2: {
|
|
759
759
|
const t = e, n = t.items;
|
|
760
760
|
for (let s = 0; s < n.length; s++)
|
|
761
|
-
|
|
761
|
+
Ye(n[s]);
|
|
762
762
|
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
763
763
|
break;
|
|
764
764
|
}
|
|
@@ -772,7 +772,7 @@ function Xe(e) {
|
|
|
772
772
|
}
|
|
773
773
|
case 6: {
|
|
774
774
|
const t = e;
|
|
775
|
-
|
|
775
|
+
Ye(t.key), t.k = t.key, delete t.key, t.modifier && (Ye(t.modifier), t.m = t.modifier, delete t.modifier);
|
|
776
776
|
break;
|
|
777
777
|
}
|
|
778
778
|
case 5: {
|
|
@@ -801,7 +801,7 @@ function Us(e, t) {
|
|
|
801
801
|
indentLevel: 0
|
|
802
802
|
};
|
|
803
803
|
a && e.loc && (c.source = e.loc.source);
|
|
804
|
-
const
|
|
804
|
+
const d = () => c;
|
|
805
805
|
function u(L, M) {
|
|
806
806
|
c.code += L;
|
|
807
807
|
}
|
|
@@ -813,19 +813,19 @@ function Us(e, t) {
|
|
|
813
813
|
const M = ++c.indentLevel;
|
|
814
814
|
L && p(M);
|
|
815
815
|
}
|
|
816
|
-
function
|
|
816
|
+
function A(L = !0) {
|
|
817
817
|
const M = --c.indentLevel;
|
|
818
818
|
L && p(M);
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function N() {
|
|
821
821
|
p(c.indentLevel);
|
|
822
822
|
}
|
|
823
823
|
return {
|
|
824
|
-
context:
|
|
824
|
+
context: d,
|
|
825
825
|
push: u,
|
|
826
826
|
indent: O,
|
|
827
|
-
deindent:
|
|
828
|
-
newline:
|
|
827
|
+
deindent: A,
|
|
828
|
+
newline: N,
|
|
829
829
|
helper: (L) => `_${L}`,
|
|
830
830
|
needIndent: () => c.needIndent
|
|
831
831
|
};
|
|
@@ -835,7 +835,7 @@ function Vs(e, t) {
|
|
|
835
835
|
e.push(`${n(
|
|
836
836
|
"linked"
|
|
837
837
|
/* HelperNameMap.LINKED */
|
|
838
|
-
)}(`),
|
|
838
|
+
)}(`), Xe(e, t.key), t.modifier ? (e.push(", "), Xe(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
839
839
|
}
|
|
840
840
|
function Ws(e, t) {
|
|
841
841
|
const { helper: n, needIndent: s } = e;
|
|
@@ -844,7 +844,7 @@ function Ws(e, t) {
|
|
|
844
844
|
/* HelperNameMap.NORMALIZE */
|
|
845
845
|
)}([`), e.indent(s());
|
|
846
846
|
const l = t.items.length;
|
|
847
|
-
for (let a = 0; a < l && (
|
|
847
|
+
for (let a = 0; a < l && (Xe(e, t.items[a]), a !== l - 1); a++)
|
|
848
848
|
e.push(", ");
|
|
849
849
|
e.deindent(s()), e.push("])");
|
|
850
850
|
}
|
|
@@ -856,15 +856,15 @@ function Gs(e, t) {
|
|
|
856
856
|
/* HelperNameMap.PLURAL */
|
|
857
857
|
)}([`), e.indent(s());
|
|
858
858
|
const l = t.cases.length;
|
|
859
|
-
for (let a = 0; a < l && (
|
|
859
|
+
for (let a = 0; a < l && (Xe(e, t.cases[a]), a !== l - 1); a++)
|
|
860
860
|
e.push(", ");
|
|
861
861
|
e.deindent(s()), e.push("])");
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
864
|
function xs(e, t) {
|
|
865
|
-
t.body ?
|
|
865
|
+
t.body ? Xe(e, t.body) : e.push("null");
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function Xe(e, t) {
|
|
868
868
|
const { helper: n } = e;
|
|
869
869
|
switch (t.type) {
|
|
870
870
|
case 0:
|
|
@@ -911,17 +911,17 @@ function He(e, t) {
|
|
|
911
911
|
break;
|
|
912
912
|
}
|
|
913
913
|
}
|
|
914
|
-
const
|
|
914
|
+
const Ys = (e, t = {}) => {
|
|
915
915
|
const n = F(t.mode) ? t.mode : "normal", s = F(t.filename) ? t.filename : "message.intl";
|
|
916
916
|
t.sourceMap;
|
|
917
917
|
const l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
918
|
-
`, a = t.needIndent ? t.needIndent : n !== "arrow", c = e.helpers || [],
|
|
918
|
+
`, a = t.needIndent ? t.needIndent : n !== "arrow", c = e.helpers || [], d = Us(e, {
|
|
919
919
|
filename: s,
|
|
920
920
|
breakLineCode: l,
|
|
921
921
|
needIndent: a
|
|
922
922
|
});
|
|
923
|
-
|
|
924
|
-
const { code: u, map: p } =
|
|
923
|
+
d.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), d.indent(a), c.length > 0 && (d.push(`const { ${Xt(c.map((O) => `${O}: _${O}`), ", ")} } = ctx`), d.newline()), d.push("return "), Xe(d, e), d.deindent(a), d.push("}"), delete e.helpers;
|
|
924
|
+
const { code: u, map: p } = d.context();
|
|
925
925
|
return {
|
|
926
926
|
ast: e,
|
|
927
927
|
code: u,
|
|
@@ -930,38 +930,38 @@ const Xs = (e, t = {}) => {
|
|
|
930
930
|
};
|
|
931
931
|
};
|
|
932
932
|
function Zs(e, t = {}) {
|
|
933
|
-
const n = fe({}, t), s = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize,
|
|
934
|
-
return s ? (a && js(
|
|
933
|
+
const n = fe({}, t), s = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize, d = ws(n).parse(e);
|
|
934
|
+
return s ? (a && js(d), l && Ye(d), { ast: d, code: "" }) : (Fs(d, n), Ys(d, n));
|
|
935
935
|
}
|
|
936
|
-
var
|
|
937
|
-
function
|
|
936
|
+
var Xs = { env: { NODE_ENV: "production" } };
|
|
937
|
+
function Hs() {
|
|
938
938
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (je().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (je().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
939
939
|
}
|
|
940
940
|
function Ot(e) {
|
|
941
941
|
return (n) => Bs(n, e);
|
|
942
942
|
}
|
|
943
943
|
function Bs(e, t) {
|
|
944
|
-
const n =
|
|
944
|
+
const n = Js(t);
|
|
945
945
|
if (n == null)
|
|
946
946
|
throw et(
|
|
947
947
|
0
|
|
948
948
|
/* NodeTypes.Resource */
|
|
949
949
|
);
|
|
950
950
|
if (Bt(n) === 1) {
|
|
951
|
-
const a =
|
|
952
|
-
return e.plural(a.reduce((c,
|
|
951
|
+
const a = zs(n);
|
|
952
|
+
return e.plural(a.reduce((c, d) => [
|
|
953
953
|
...c,
|
|
954
|
-
ln(e,
|
|
954
|
+
ln(e, d)
|
|
955
955
|
], []));
|
|
956
956
|
} else
|
|
957
957
|
return ln(e, n);
|
|
958
958
|
}
|
|
959
|
-
const
|
|
960
|
-
function
|
|
961
|
-
return De(e,
|
|
959
|
+
const $s = ["b", "body"];
|
|
960
|
+
function Js(e) {
|
|
961
|
+
return De(e, $s);
|
|
962
962
|
}
|
|
963
963
|
const Ks = ["c", "cases"];
|
|
964
|
-
function
|
|
964
|
+
function zs(e) {
|
|
965
965
|
return De(e, Ks, []);
|
|
966
966
|
}
|
|
967
967
|
function ln(e, t) {
|
|
@@ -973,9 +973,9 @@ function ln(e, t) {
|
|
|
973
973
|
return e.normalize(s);
|
|
974
974
|
}
|
|
975
975
|
}
|
|
976
|
-
const
|
|
976
|
+
const Qs = ["s", "static"];
|
|
977
977
|
function qs(e) {
|
|
978
|
-
return De(e,
|
|
978
|
+
return De(e, Qs);
|
|
979
979
|
}
|
|
980
980
|
const ea = ["i", "items"];
|
|
981
981
|
function ta(e) {
|
|
@@ -990,17 +990,17 @@ function wt(e, t) {
|
|
|
990
990
|
return lt(t, n);
|
|
991
991
|
case 4: {
|
|
992
992
|
const s = t;
|
|
993
|
-
if (
|
|
993
|
+
if (Ne(s, "k") && s.k)
|
|
994
994
|
return e.interpolate(e.named(s.k));
|
|
995
|
-
if (
|
|
995
|
+
if (Ne(s, "key") && s.key)
|
|
996
996
|
return e.interpolate(e.named(s.key));
|
|
997
997
|
throw et(n);
|
|
998
998
|
}
|
|
999
999
|
case 5: {
|
|
1000
1000
|
const s = t;
|
|
1001
|
-
if (
|
|
1001
|
+
if (Ne(s, "i") && me(s.i))
|
|
1002
1002
|
return e.interpolate(e.list(s.i));
|
|
1003
|
-
if (
|
|
1003
|
+
if (Ne(s, "index") && me(s.index))
|
|
1004
1004
|
return e.interpolate(e.list(s.index));
|
|
1005
1005
|
throw et(n);
|
|
1006
1006
|
}
|
|
@@ -1044,7 +1044,7 @@ function oa(e) {
|
|
|
1044
1044
|
function De(e, t, n) {
|
|
1045
1045
|
for (let s = 0; s < t.length; s++) {
|
|
1046
1046
|
const l = t[s];
|
|
1047
|
-
if (
|
|
1047
|
+
if (Ne(e, l) && e[l] != null)
|
|
1048
1048
|
return e[l];
|
|
1049
1049
|
}
|
|
1050
1050
|
return n;
|
|
@@ -1054,12 +1054,12 @@ function et(e) {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
const ia = (e) => e;
|
|
1056
1056
|
let ot = q();
|
|
1057
|
-
function
|
|
1058
|
-
return K(e) && Bt(e) === 0 && (
|
|
1057
|
+
function He(e) {
|
|
1058
|
+
return K(e) && Bt(e) === 0 && (Ne(e, "b") || Ne(e, "body"));
|
|
1059
1059
|
}
|
|
1060
1060
|
function ca(e, t = {}) {
|
|
1061
1061
|
let n = !1;
|
|
1062
|
-
const s = t.onError ||
|
|
1062
|
+
const s = t.onError || ys;
|
|
1063
1063
|
return t.onError = (l) => {
|
|
1064
1064
|
n = !0, s(l);
|
|
1065
1065
|
}, { ...Zs(e, t), detectError: n };
|
|
@@ -1073,10 +1073,10 @@ function ua(e, t) {
|
|
|
1073
1073
|
return l;
|
|
1074
1074
|
const { ast: a, detectError: c } = ca(e, {
|
|
1075
1075
|
...t,
|
|
1076
|
-
location:
|
|
1076
|
+
location: Xs.env.NODE_ENV !== "production",
|
|
1077
1077
|
jit: !0
|
|
1078
|
-
}),
|
|
1079
|
-
return c ?
|
|
1078
|
+
}), d = Ot(a);
|
|
1079
|
+
return c ? d : ot[s] = d;
|
|
1080
1080
|
} else {
|
|
1081
1081
|
const n = e.cacheKey;
|
|
1082
1082
|
if (n) {
|
|
@@ -1087,10 +1087,10 @@ function ua(e, t) {
|
|
|
1087
1087
|
}
|
|
1088
1088
|
}
|
|
1089
1089
|
let tt = null;
|
|
1090
|
-
function
|
|
1090
|
+
function da(e) {
|
|
1091
1091
|
tt = e;
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1093
|
+
function ma(e, t, n) {
|
|
1094
1094
|
tt && tt.emit("i18n:init", {
|
|
1095
1095
|
timestamp: Date.now(),
|
|
1096
1096
|
i18n: e,
|
|
@@ -1103,7 +1103,7 @@ function _a(e) {
|
|
|
1103
1103
|
return (t) => tt && tt.emit(e, t);
|
|
1104
1104
|
}
|
|
1105
1105
|
const Le = {
|
|
1106
|
-
INVALID_ARGUMENT:
|
|
1106
|
+
INVALID_ARGUMENT: Ns,
|
|
1107
1107
|
// 17
|
|
1108
1108
|
INVALID_DATE_ARGUMENT: 18,
|
|
1109
1109
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1111,10 +1111,10 @@ const Le = {
|
|
|
1111
1111
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1112
1112
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1113
1113
|
}, pa = 24;
|
|
1114
|
-
function
|
|
1114
|
+
function Re(e) {
|
|
1115
1115
|
return ht(e, null, void 0);
|
|
1116
1116
|
}
|
|
1117
|
-
function
|
|
1117
|
+
function $t(e, t) {
|
|
1118
1118
|
return t.locale != null ? on(t.locale) : on(e.locale);
|
|
1119
1119
|
}
|
|
1120
1120
|
let Lt;
|
|
@@ -1126,13 +1126,13 @@ function on(e) {
|
|
|
1126
1126
|
return Lt;
|
|
1127
1127
|
if (e.constructor.name === "Function") {
|
|
1128
1128
|
const t = e();
|
|
1129
|
-
if (
|
|
1130
|
-
throw
|
|
1129
|
+
if (bs(t))
|
|
1130
|
+
throw Re(Le.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1131
1131
|
return Lt = t;
|
|
1132
1132
|
} else
|
|
1133
|
-
throw
|
|
1133
|
+
throw Re(Le.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1134
1134
|
} else
|
|
1135
|
-
throw
|
|
1135
|
+
throw Re(Le.NOT_SUPPORT_LOCALE_TYPE);
|
|
1136
1136
|
}
|
|
1137
1137
|
function ha(e, t, n) {
|
|
1138
1138
|
return [.../* @__PURE__ */ new Set([
|
|
@@ -1149,8 +1149,8 @@ function Mn(e, t, n) {
|
|
|
1149
1149
|
let c = [n];
|
|
1150
1150
|
for (; ue(c); )
|
|
1151
1151
|
c = cn(a, c, t);
|
|
1152
|
-
const
|
|
1153
|
-
c = F(
|
|
1152
|
+
const d = ue(t) || !J(t) ? t : t.default ? t.default : null;
|
|
1153
|
+
c = F(d) ? [d] : d, ue(c) && cn(a, c, !1), l.__localeChainCache.set(s, a);
|
|
1154
1154
|
}
|
|
1155
1155
|
return a;
|
|
1156
1156
|
}
|
|
@@ -1158,25 +1158,25 @@ function cn(e, t, n) {
|
|
|
1158
1158
|
let s = !0;
|
|
1159
1159
|
for (let l = 0; l < t.length && ce(s); l++) {
|
|
1160
1160
|
const a = t[l];
|
|
1161
|
-
F(a) && (s =
|
|
1161
|
+
F(a) && (s = ga(e, t[l], n));
|
|
1162
1162
|
}
|
|
1163
1163
|
return s;
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1165
|
+
function ga(e, t, n) {
|
|
1166
1166
|
let s;
|
|
1167
1167
|
const l = t.split("-");
|
|
1168
1168
|
do {
|
|
1169
1169
|
const a = l.join("-");
|
|
1170
|
-
s =
|
|
1170
|
+
s = ba(e, a, n), l.splice(-1, 1);
|
|
1171
1171
|
} while (l.length && s === !0);
|
|
1172
1172
|
return s;
|
|
1173
1173
|
}
|
|
1174
|
-
function
|
|
1174
|
+
function ba(e, t, n) {
|
|
1175
1175
|
let s = !1;
|
|
1176
1176
|
if (!e.includes(t) && (s = !0, t)) {
|
|
1177
1177
|
s = t[t.length - 1] !== "!";
|
|
1178
1178
|
const l = t.replace(/!/g, "");
|
|
1179
|
-
e.push(l), (ue(n) ||
|
|
1179
|
+
e.push(l), (ue(n) || J(n)) && n[l] && (s = n[l]);
|
|
1180
1180
|
}
|
|
1181
1181
|
return s;
|
|
1182
1182
|
}
|
|
@@ -1349,7 +1349,7 @@ function Ea(e) {
|
|
|
1349
1349
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1350
1350
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1351
1351
|
}
|
|
1352
|
-
function
|
|
1352
|
+
function Na(e) {
|
|
1353
1353
|
if (e == null)
|
|
1354
1354
|
return "o";
|
|
1355
1355
|
switch (e.charCodeAt(0)) {
|
|
@@ -1374,45 +1374,45 @@ function ya(e) {
|
|
|
1374
1374
|
}
|
|
1375
1375
|
return "i";
|
|
1376
1376
|
}
|
|
1377
|
-
function
|
|
1377
|
+
function ya(e) {
|
|
1378
1378
|
const t = e.trim();
|
|
1379
1379
|
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Ia(t) ? Ea(t) : "*" + t;
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1381
|
+
function Ta(e) {
|
|
1382
1382
|
const t = [];
|
|
1383
|
-
let n = -1, s = 0, l = 0, a, c,
|
|
1384
|
-
const
|
|
1385
|
-
|
|
1383
|
+
let n = -1, s = 0, l = 0, a, c, d, u, p, O, A;
|
|
1384
|
+
const N = [];
|
|
1385
|
+
N[
|
|
1386
1386
|
0
|
|
1387
1387
|
/* Actions.APPEND */
|
|
1388
1388
|
] = () => {
|
|
1389
|
-
c === void 0 ? c =
|
|
1390
|
-
},
|
|
1389
|
+
c === void 0 ? c = d : c += d;
|
|
1390
|
+
}, N[
|
|
1391
1391
|
1
|
|
1392
1392
|
/* Actions.PUSH */
|
|
1393
1393
|
] = () => {
|
|
1394
1394
|
c !== void 0 && (t.push(c), c = void 0);
|
|
1395
|
-
},
|
|
1395
|
+
}, N[
|
|
1396
1396
|
2
|
|
1397
1397
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1398
1398
|
] = () => {
|
|
1399
|
-
|
|
1399
|
+
N[
|
|
1400
1400
|
0
|
|
1401
1401
|
/* Actions.APPEND */
|
|
1402
1402
|
](), l++;
|
|
1403
|
-
},
|
|
1403
|
+
}, N[
|
|
1404
1404
|
3
|
|
1405
1405
|
/* Actions.PUSH_SUB_PATH */
|
|
1406
1406
|
] = () => {
|
|
1407
1407
|
if (l > 0)
|
|
1408
|
-
l--, s = 4,
|
|
1408
|
+
l--, s = 4, N[
|
|
1409
1409
|
0
|
|
1410
1410
|
/* Actions.APPEND */
|
|
1411
1411
|
]();
|
|
1412
1412
|
else {
|
|
1413
|
-
if (l = 0, c === void 0 || (c =
|
|
1413
|
+
if (l = 0, c === void 0 || (c = ya(c), c === !1))
|
|
1414
1414
|
return !1;
|
|
1415
|
-
|
|
1415
|
+
N[
|
|
1416
1416
|
1
|
|
1417
1417
|
/* Actions.PUSH */
|
|
1418
1418
|
]();
|
|
@@ -1421,28 +1421,28 @@ function ka(e) {
|
|
|
1421
1421
|
function P() {
|
|
1422
1422
|
const V = e[n + 1];
|
|
1423
1423
|
if (s === 5 && V === "'" || s === 6 && V === '"')
|
|
1424
|
-
return n++,
|
|
1424
|
+
return n++, d = "\\" + V, N[
|
|
1425
1425
|
0
|
|
1426
1426
|
/* Actions.APPEND */
|
|
1427
1427
|
](), !0;
|
|
1428
1428
|
}
|
|
1429
1429
|
for (; s !== null; )
|
|
1430
1430
|
if (n++, a = e[n], !(a === "\\" && P())) {
|
|
1431
|
-
if (u =
|
|
1431
|
+
if (u = Na(a), A = Me[s], p = A[u] || A.l || 8, p === 8 || (s = p[0], p[1] !== void 0 && (O = N[p[1]], O && (d = a, O() === !1))))
|
|
1432
1432
|
return;
|
|
1433
1433
|
if (s === 7)
|
|
1434
1434
|
return t;
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
1437
|
const un = /* @__PURE__ */ new Map();
|
|
1438
|
-
function
|
|
1438
|
+
function ka(e, t) {
|
|
1439
1439
|
return K(e) ? e[t] : null;
|
|
1440
1440
|
}
|
|
1441
1441
|
function Oa(e, t) {
|
|
1442
1442
|
if (!K(e))
|
|
1443
1443
|
return null;
|
|
1444
1444
|
let n = un.get(t);
|
|
1445
|
-
if (n || (n =
|
|
1445
|
+
if (n || (n = Ta(t), n && un.set(t, n)), !n)
|
|
1446
1446
|
return null;
|
|
1447
1447
|
const s = n.length;
|
|
1448
1448
|
let l = e, a = 0;
|
|
@@ -1454,20 +1454,20 @@ function Oa(e, t) {
|
|
|
1454
1454
|
}
|
|
1455
1455
|
return l;
|
|
1456
1456
|
}
|
|
1457
|
-
const La = "10.0.5",
|
|
1458
|
-
function
|
|
1457
|
+
const La = "10.0.5", gt = -1, ft = "en-US", dn = "", mn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1458
|
+
function Ra() {
|
|
1459
1459
|
return {
|
|
1460
1460
|
upper: (e, t) => t === "text" && F(e) ? e.toUpperCase() : t === "vnode" && K(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1461
1461
|
lower: (e, t) => t === "text" && F(e) ? e.toLowerCase() : t === "vnode" && K(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1462
|
-
capitalize: (e, t) => t === "text" && F(e) ?
|
|
1462
|
+
capitalize: (e, t) => t === "text" && F(e) ? mn(e) : t === "vnode" && K(e) && "__v_isVNode" in e ? mn(e.children) : e
|
|
1463
1463
|
};
|
|
1464
1464
|
}
|
|
1465
1465
|
let wn;
|
|
1466
|
-
function
|
|
1466
|
+
function Aa(e) {
|
|
1467
1467
|
wn = e;
|
|
1468
1468
|
}
|
|
1469
1469
|
let Pn;
|
|
1470
|
-
function
|
|
1470
|
+
function Ca(e) {
|
|
1471
1471
|
Pn = e;
|
|
1472
1472
|
}
|
|
1473
1473
|
let Fn;
|
|
@@ -1484,9 +1484,9 @@ const fn = (e) => {
|
|
|
1484
1484
|
}, wa = () => Un;
|
|
1485
1485
|
let _n = 0;
|
|
1486
1486
|
function Pa(e = {}) {
|
|
1487
|
-
const t = le(e.onWarn) ? e.onWarn : Is, n = F(e.version) ? e.version : La, s = F(e.locale) || le(e.locale) ? e.locale : ft, l = le(s) ? ft : s, a = ue(e.fallbackLocale) ||
|
|
1487
|
+
const t = le(e.onWarn) ? e.onWarn : Is, n = F(e.version) ? e.version : La, s = F(e.locale) || le(e.locale) ? e.locale : ft, l = le(s) ? ft : s, a = ue(e.fallbackLocale) || J(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, c = J(e.messages) ? e.messages : Rt(l), d = J(e.datetimeFormats) ? e.datetimeFormats : Rt(l), u = J(e.numberFormats) ? e.numberFormats : Rt(l), p = fe(q(), e.modifiers, Ra()), O = e.pluralRules || q(), A = le(e.missing) ? e.missing : null, N = ce(e.missingWarn) || mt(e.missingWarn) ? e.missingWarn : !0, P = ce(e.fallbackWarn) || mt(e.fallbackWarn) ? e.fallbackWarn : !0, V = !!e.fallbackFormat, L = !!e.unresolving, M = le(e.postTranslation) ? e.postTranslation : null, i = J(e.processor) ? e.processor : null, m = ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter, _ = le(e.messageCompiler) ? e.messageCompiler : wn, w = le(e.messageResolver) ? e.messageResolver : Pn || ka, S = le(e.localeFallbacker) ? e.localeFallbacker : Fn || ha, b = K(e.fallbackContext) ? e.fallbackContext : void 0, v = e, h = K(v.__datetimeFormatters) ? v.__datetimeFormatters : /* @__PURE__ */ new Map(), E = K(v.__numberFormatters) ? v.__numberFormatters : /* @__PURE__ */ new Map(), C = K(v.__meta) ? v.__meta : {};
|
|
1488
1488
|
_n++;
|
|
1489
|
-
const
|
|
1489
|
+
const R = {
|
|
1490
1490
|
version: n,
|
|
1491
1491
|
cid: _n,
|
|
1492
1492
|
locale: s,
|
|
@@ -1494,34 +1494,34 @@ function Pa(e = {}) {
|
|
|
1494
1494
|
messages: c,
|
|
1495
1495
|
modifiers: p,
|
|
1496
1496
|
pluralRules: O,
|
|
1497
|
-
missing:
|
|
1498
|
-
missingWarn:
|
|
1497
|
+
missing: A,
|
|
1498
|
+
missingWarn: N,
|
|
1499
1499
|
fallbackWarn: P,
|
|
1500
1500
|
fallbackFormat: V,
|
|
1501
1501
|
unresolving: L,
|
|
1502
1502
|
postTranslation: M,
|
|
1503
1503
|
processor: i,
|
|
1504
|
-
warnHtmlMessage:
|
|
1505
|
-
escapeParameter:
|
|
1504
|
+
warnHtmlMessage: m,
|
|
1505
|
+
escapeParameter: y,
|
|
1506
1506
|
messageCompiler: _,
|
|
1507
1507
|
messageResolver: w,
|
|
1508
1508
|
localeFallbacker: S,
|
|
1509
|
-
fallbackContext:
|
|
1509
|
+
fallbackContext: b,
|
|
1510
1510
|
onWarn: t,
|
|
1511
|
-
__meta:
|
|
1511
|
+
__meta: C
|
|
1512
1512
|
};
|
|
1513
|
-
return
|
|
1513
|
+
return R.datetimeFormats = d, R.numberFormats = u, R.__datetimeFormatters = h, R.__numberFormatters = E, __INTLIFY_PROD_DEVTOOLS__ && ma(R, n, C), R;
|
|
1514
1514
|
}
|
|
1515
|
-
const
|
|
1516
|
-
function
|
|
1515
|
+
const Rt = (e) => ({ [e]: q() });
|
|
1516
|
+
function Jt(e, t, n, s, l) {
|
|
1517
1517
|
const { missing: a, onWarn: c } = e;
|
|
1518
1518
|
if (a !== null) {
|
|
1519
|
-
const
|
|
1520
|
-
return F(
|
|
1519
|
+
const d = a(e, n, t, l);
|
|
1520
|
+
return F(d) ? d : t;
|
|
1521
1521
|
} else
|
|
1522
1522
|
return t;
|
|
1523
1523
|
}
|
|
1524
|
-
function
|
|
1524
|
+
function Qe(e, t, n) {
|
|
1525
1525
|
const s = e;
|
|
1526
1526
|
s.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1527
1527
|
}
|
|
@@ -1538,26 +1538,26 @@ function ja(e, t) {
|
|
|
1538
1538
|
return !1;
|
|
1539
1539
|
}
|
|
1540
1540
|
function pn(e, ...t) {
|
|
1541
|
-
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __datetimeFormatters:
|
|
1541
|
+
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __datetimeFormatters: d } = e, [u, p, O, A] = Pt(...t), N = ce(O.missingWarn) ? O.missingWarn : e.missingWarn;
|
|
1542
1542
|
ce(O.fallbackWarn) ? O.fallbackWarn : e.fallbackWarn;
|
|
1543
|
-
const P = !!O.part, V =
|
|
1543
|
+
const P = !!O.part, V = $t(e, O), L = c(
|
|
1544
1544
|
e,
|
|
1545
1545
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1546
1546
|
l,
|
|
1547
1547
|
V
|
|
1548
1548
|
);
|
|
1549
1549
|
if (!F(u) || u === "")
|
|
1550
|
-
return new Intl.DateTimeFormat(V,
|
|
1551
|
-
let M = {}, i,
|
|
1552
|
-
const
|
|
1553
|
-
for (let S = 0; S < L.length && (i = L[S], M = n[i] || {},
|
|
1554
|
-
|
|
1555
|
-
if (
|
|
1556
|
-
return s ?
|
|
1550
|
+
return new Intl.DateTimeFormat(V, A).format(p);
|
|
1551
|
+
let M = {}, i, m = null;
|
|
1552
|
+
const y = "datetime format";
|
|
1553
|
+
for (let S = 0; S < L.length && (i = L[S], M = n[i] || {}, m = M[u], !J(m)); S++)
|
|
1554
|
+
Jt(e, u, i, N, y);
|
|
1555
|
+
if (!J(m) || !F(i))
|
|
1556
|
+
return s ? gt : u;
|
|
1557
1557
|
let _ = `${i}__${u}`;
|
|
1558
|
-
pt(
|
|
1559
|
-
let w =
|
|
1560
|
-
return w || (w = new Intl.DateTimeFormat(i, fe({},
|
|
1558
|
+
pt(A) || (_ = `${_}__${JSON.stringify(A)}`);
|
|
1559
|
+
let w = d.get(_);
|
|
1560
|
+
return w || (w = new Intl.DateTimeFormat(i, fe({}, m, A)), d.set(_, w)), P ? w.formatToParts(p) : w.format(p);
|
|
1561
1561
|
}
|
|
1562
1562
|
const Vn = [
|
|
1563
1563
|
"localeMatcher",
|
|
@@ -1583,29 +1583,29 @@ const Vn = [
|
|
|
1583
1583
|
];
|
|
1584
1584
|
function Pt(...e) {
|
|
1585
1585
|
const [t, n, s, l] = e, a = q();
|
|
1586
|
-
let c = q(),
|
|
1586
|
+
let c = q(), d;
|
|
1587
1587
|
if (F(t)) {
|
|
1588
1588
|
const u = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1589
1589
|
if (!u)
|
|
1590
|
-
throw
|
|
1590
|
+
throw Re(Le.INVALID_ISO_DATE_ARGUMENT);
|
|
1591
1591
|
const p = u[3] ? u[3].trim().startsWith("T") ? `${u[1].trim()}${u[3].trim()}` : `${u[1].trim()}T${u[3].trim()}` : u[1].trim();
|
|
1592
|
-
|
|
1592
|
+
d = new Date(p);
|
|
1593
1593
|
try {
|
|
1594
|
-
|
|
1594
|
+
d.toISOString();
|
|
1595
1595
|
} catch {
|
|
1596
|
-
throw
|
|
1596
|
+
throw Re(Le.INVALID_ISO_DATE_ARGUMENT);
|
|
1597
1597
|
}
|
|
1598
1598
|
} else if (ps(t)) {
|
|
1599
1599
|
if (isNaN(t.getTime()))
|
|
1600
|
-
throw
|
|
1601
|
-
|
|
1602
|
-
} else if (
|
|
1603
|
-
|
|
1600
|
+
throw Re(Le.INVALID_DATE_ARGUMENT);
|
|
1601
|
+
d = t;
|
|
1602
|
+
} else if (me(t))
|
|
1603
|
+
d = t;
|
|
1604
1604
|
else
|
|
1605
|
-
throw
|
|
1606
|
-
return F(n) ? a.key = n :
|
|
1605
|
+
throw Re(Le.INVALID_ARGUMENT);
|
|
1606
|
+
return F(n) ? a.key = n : J(n) && Object.keys(n).forEach((u) => {
|
|
1607
1607
|
Vn.includes(u) ? c[u] = n[u] : a[u] = n[u];
|
|
1608
|
-
}), F(s) ? a.locale = s :
|
|
1608
|
+
}), F(s) ? a.locale = s : J(s) && (c = s), J(l) && (c = l), [a.key || "", d, a, c];
|
|
1609
1609
|
}
|
|
1610
1610
|
function hn(e, t, n) {
|
|
1611
1611
|
const s = e;
|
|
@@ -1614,27 +1614,27 @@ function hn(e, t, n) {
|
|
|
1614
1614
|
s.__datetimeFormatters.has(a) && s.__datetimeFormatters.delete(a);
|
|
1615
1615
|
}
|
|
1616
1616
|
}
|
|
1617
|
-
function
|
|
1618
|
-
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __numberFormatters:
|
|
1617
|
+
function gn(e, ...t) {
|
|
1618
|
+
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __numberFormatters: d } = e, [u, p, O, A] = Ft(...t), N = ce(O.missingWarn) ? O.missingWarn : e.missingWarn;
|
|
1619
1619
|
ce(O.fallbackWarn) ? O.fallbackWarn : e.fallbackWarn;
|
|
1620
|
-
const P = !!O.part, V =
|
|
1620
|
+
const P = !!O.part, V = $t(e, O), L = c(
|
|
1621
1621
|
e,
|
|
1622
1622
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1623
1623
|
l,
|
|
1624
1624
|
V
|
|
1625
1625
|
);
|
|
1626
1626
|
if (!F(u) || u === "")
|
|
1627
|
-
return new Intl.NumberFormat(V,
|
|
1628
|
-
let M = {}, i,
|
|
1629
|
-
const
|
|
1630
|
-
for (let S = 0; S < L.length && (i = L[S], M = n[i] || {},
|
|
1631
|
-
|
|
1632
|
-
if (
|
|
1633
|
-
return s ?
|
|
1627
|
+
return new Intl.NumberFormat(V, A).format(p);
|
|
1628
|
+
let M = {}, i, m = null;
|
|
1629
|
+
const y = "number format";
|
|
1630
|
+
for (let S = 0; S < L.length && (i = L[S], M = n[i] || {}, m = M[u], !J(m)); S++)
|
|
1631
|
+
Jt(e, u, i, N, y);
|
|
1632
|
+
if (!J(m) || !F(i))
|
|
1633
|
+
return s ? gt : u;
|
|
1634
1634
|
let _ = `${i}__${u}`;
|
|
1635
|
-
pt(
|
|
1636
|
-
let w =
|
|
1637
|
-
return w || (w = new Intl.NumberFormat(i, fe({},
|
|
1635
|
+
pt(A) || (_ = `${_}__${JSON.stringify(A)}`);
|
|
1636
|
+
let w = d.get(_);
|
|
1637
|
+
return w || (w = new Intl.NumberFormat(i, fe({}, m, A)), d.set(_, w)), P ? w.formatToParts(p) : w.format(p);
|
|
1638
1638
|
}
|
|
1639
1639
|
const Wn = [
|
|
1640
1640
|
"localeMatcher",
|
|
@@ -1661,116 +1661,116 @@ const Wn = [
|
|
|
1661
1661
|
function Ft(...e) {
|
|
1662
1662
|
const [t, n, s, l] = e, a = q();
|
|
1663
1663
|
let c = q();
|
|
1664
|
-
if (!
|
|
1665
|
-
throw
|
|
1666
|
-
const
|
|
1667
|
-
return F(n) ? a.key = n :
|
|
1664
|
+
if (!me(t))
|
|
1665
|
+
throw Re(Le.INVALID_ARGUMENT);
|
|
1666
|
+
const d = t;
|
|
1667
|
+
return F(n) ? a.key = n : J(n) && Object.keys(n).forEach((u) => {
|
|
1668
1668
|
Wn.includes(u) ? c[u] = n[u] : a[u] = n[u];
|
|
1669
|
-
}), F(s) ? a.locale = s :
|
|
1669
|
+
}), F(s) ? a.locale = s : J(s) && (c = s), J(l) && (c = l), [a.key || "", d, a, c];
|
|
1670
1670
|
}
|
|
1671
|
-
function
|
|
1671
|
+
function bn(e, t, n) {
|
|
1672
1672
|
const s = e;
|
|
1673
1673
|
for (const l in n) {
|
|
1674
1674
|
const a = `${t}__${l}`;
|
|
1675
1675
|
s.__numberFormatters.has(a) && s.__numberFormatters.delete(a);
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
|
-
const Ua = (e) => e, Va = (e) => "", Wa = "text", Ga = (e) => e.length === 0 ? "" :
|
|
1678
|
+
const Ua = (e) => e, Va = (e) => "", Wa = "text", Ga = (e) => e.length === 0 ? "" : Xt(e), xa = vs;
|
|
1679
1679
|
function vn(e, t) {
|
|
1680
1680
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1681
1681
|
}
|
|
1682
|
-
function
|
|
1683
|
-
const t =
|
|
1684
|
-
return e.named && (
|
|
1682
|
+
function Ya(e) {
|
|
1683
|
+
const t = me(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1684
|
+
return e.named && (me(e.named.count) || me(e.named.n)) ? me(e.named.count) ? e.named.count : me(e.named.n) ? e.named.n : t : t;
|
|
1685
1685
|
}
|
|
1686
1686
|
function Za(e, t) {
|
|
1687
1687
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1688
1688
|
}
|
|
1689
|
-
function
|
|
1690
|
-
const t = e.locale, n =
|
|
1691
|
-
|
|
1689
|
+
function Xa(e = {}) {
|
|
1690
|
+
const t = e.locale, n = Ya(e), s = K(e.pluralRules) && F(t) && le(e.pluralRules[t]) ? e.pluralRules[t] : vn, l = K(e.pluralRules) && F(t) && le(e.pluralRules[t]) ? vn : void 0, a = (i) => i[s(n, i.length, l)], c = e.list || [], d = (i) => c[i], u = e.named || q();
|
|
1691
|
+
me(e.pluralIndex) && Za(n, u);
|
|
1692
1692
|
const p = (i) => u[i];
|
|
1693
|
-
function O(i,
|
|
1694
|
-
const
|
|
1695
|
-
return
|
|
1693
|
+
function O(i, m) {
|
|
1694
|
+
const y = le(e.messages) ? e.messages(i, !!m) : K(e.messages) ? e.messages[i] : !1;
|
|
1695
|
+
return y || (e.parent ? e.parent.message(i) : Va);
|
|
1696
1696
|
}
|
|
1697
|
-
const
|
|
1698
|
-
list:
|
|
1697
|
+
const A = (i) => e.modifiers ? e.modifiers[i] : Ua, N = J(e.processor) && le(e.processor.normalize) ? e.processor.normalize : Ga, P = J(e.processor) && le(e.processor.interpolate) ? e.processor.interpolate : xa, V = J(e.processor) && F(e.processor.type) ? e.processor.type : Wa, M = {
|
|
1698
|
+
list: d,
|
|
1699
1699
|
named: p,
|
|
1700
1700
|
plural: a,
|
|
1701
|
-
linked: (i, ...
|
|
1702
|
-
const [
|
|
1701
|
+
linked: (i, ...m) => {
|
|
1702
|
+
const [y, _] = m;
|
|
1703
1703
|
let w = "text", S = "";
|
|
1704
|
-
|
|
1705
|
-
const
|
|
1704
|
+
m.length === 1 ? K(y) ? (S = y.modifier || S, w = y.type || w) : F(y) && (S = y || S) : m.length === 2 && (F(y) && (S = y || S), F(_) && (w = _ || w));
|
|
1705
|
+
const b = O(i, !0)(M), v = (
|
|
1706
1706
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1707
|
-
w === "vnode" && ue(
|
|
1707
|
+
w === "vnode" && ue(b) && S ? b[0] : b
|
|
1708
1708
|
);
|
|
1709
|
-
return S ?
|
|
1709
|
+
return S ? A(S)(v, w) : v;
|
|
1710
1710
|
},
|
|
1711
1711
|
message: O,
|
|
1712
1712
|
type: V,
|
|
1713
1713
|
interpolate: P,
|
|
1714
|
-
normalize:
|
|
1714
|
+
normalize: N,
|
|
1715
1715
|
values: fe(q(), c, u)
|
|
1716
1716
|
};
|
|
1717
1717
|
return M;
|
|
1718
1718
|
}
|
|
1719
1719
|
const In = () => "", ve = (e) => le(e);
|
|
1720
1720
|
function En(e, ...t) {
|
|
1721
|
-
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: c, messages:
|
|
1722
|
-
|
|
1723
|
-
let [i,
|
|
1721
|
+
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: c, messages: d } = e, [u, p] = jt(...t), O = ce(p.missingWarn) ? p.missingWarn : e.missingWarn, A = ce(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, N = ce(p.escapeParameter) ? p.escapeParameter : e.escapeParameter, P = !!p.resolvedMessage, V = F(p.default) || ce(p.default) ? ce(p.default) ? a ? u : () => u : p.default : n ? a ? u : () => u : null, L = n || V != null && (F(V) || le(V)), M = $t(e, p);
|
|
1722
|
+
N && Ha(p);
|
|
1723
|
+
let [i, m, y] = P ? [
|
|
1724
1724
|
u,
|
|
1725
1725
|
M,
|
|
1726
|
-
|
|
1727
|
-
] : Gn(e, u, M, c,
|
|
1728
|
-
if (!P && !(F(_) ||
|
|
1729
|
-
return l ?
|
|
1726
|
+
d[M] || q()
|
|
1727
|
+
] : Gn(e, u, M, c, A, O), _ = i, w = u;
|
|
1728
|
+
if (!P && !(F(_) || He(_) || ve(_)) && L && (_ = V, w = _), !P && (!(F(_) || He(_) || ve(_)) || !F(m)))
|
|
1729
|
+
return l ? gt : u;
|
|
1730
1730
|
let S = !1;
|
|
1731
|
-
const
|
|
1731
|
+
const b = () => {
|
|
1732
1732
|
S = !0;
|
|
1733
|
-
}, v = ve(_) ? _ : xn(e, u,
|
|
1733
|
+
}, v = ve(_) ? _ : xn(e, u, m, _, w, b);
|
|
1734
1734
|
if (S)
|
|
1735
1735
|
return _;
|
|
1736
|
-
const h =
|
|
1736
|
+
const h = Ja(e, m, y, p), E = Xa(h), C = Ba(e, v, E), R = s ? s(C, u) : C;
|
|
1737
1737
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1738
1738
|
const x = {
|
|
1739
1739
|
timestamp: Date.now(),
|
|
1740
1740
|
key: F(u) ? u : ve(_) ? _.key : "",
|
|
1741
|
-
locale:
|
|
1741
|
+
locale: m || (ve(_) ? _.locale : ""),
|
|
1742
1742
|
format: F(_) ? _ : ve(_) ? _.source : "",
|
|
1743
|
-
message:
|
|
1743
|
+
message: R
|
|
1744
1744
|
};
|
|
1745
1745
|
x.meta = fe({}, e.__meta, /* @__PURE__ */ Ma() || {}), fa(x);
|
|
1746
1746
|
}
|
|
1747
|
-
return
|
|
1747
|
+
return R;
|
|
1748
1748
|
}
|
|
1749
|
-
function
|
|
1749
|
+
function Ha(e) {
|
|
1750
1750
|
ue(e.list) ? e.list = e.list.map((t) => F(t) ? nn(t) : t) : K(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1751
1751
|
F(e.named[t]) && (e.named[t] = nn(e.named[t]));
|
|
1752
1752
|
});
|
|
1753
1753
|
}
|
|
1754
1754
|
function Gn(e, t, n, s, l, a) {
|
|
1755
|
-
const { messages: c, onWarn:
|
|
1756
|
-
let
|
|
1755
|
+
const { messages: c, onWarn: d, messageResolver: u, localeFallbacker: p } = e, O = p(e, s, n);
|
|
1756
|
+
let A = q(), N, P = null;
|
|
1757
1757
|
const V = "translate";
|
|
1758
|
-
for (let L = 0; L < O.length && (
|
|
1759
|
-
if (!ja(
|
|
1760
|
-
const M =
|
|
1758
|
+
for (let L = 0; L < O.length && (N = O[L], A = c[N] || q(), (P = u(A, t)) === null && (P = A[t]), !(F(P) || He(P) || ve(P))); L++)
|
|
1759
|
+
if (!ja(N, O)) {
|
|
1760
|
+
const M = Jt(
|
|
1761
1761
|
e,
|
|
1762
1762
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1763
1763
|
t,
|
|
1764
|
-
|
|
1764
|
+
N,
|
|
1765
1765
|
a,
|
|
1766
1766
|
V
|
|
1767
1767
|
);
|
|
1768
1768
|
M !== t && (P = M);
|
|
1769
1769
|
}
|
|
1770
|
-
return [P,
|
|
1770
|
+
return [P, N, A];
|
|
1771
1771
|
}
|
|
1772
1772
|
function xn(e, t, n, s, l, a) {
|
|
1773
|
-
const { messageCompiler: c, warnHtmlMessage:
|
|
1773
|
+
const { messageCompiler: c, warnHtmlMessage: d } = e;
|
|
1774
1774
|
if (ve(s)) {
|
|
1775
1775
|
const p = s;
|
|
1776
1776
|
return p.locale = p.locale || n, p.key = p.key || t, p;
|
|
@@ -1779,7 +1779,7 @@ function xn(e, t, n, s, l, a) {
|
|
|
1779
1779
|
const p = () => s;
|
|
1780
1780
|
return p.locale = n, p.key = t, p;
|
|
1781
1781
|
}
|
|
1782
|
-
const u = c(s,
|
|
1782
|
+
const u = c(s, $a(e, n, l, s, d, a));
|
|
1783
1783
|
return u.locale = n, u.key = t, u.source = s, u;
|
|
1784
1784
|
}
|
|
1785
1785
|
function Ba(e, t, n) {
|
|
@@ -1787,12 +1787,12 @@ function Ba(e, t, n) {
|
|
|
1787
1787
|
}
|
|
1788
1788
|
function jt(...e) {
|
|
1789
1789
|
const [t, n, s] = e, l = q();
|
|
1790
|
-
if (!F(t) && !
|
|
1791
|
-
throw
|
|
1792
|
-
const a =
|
|
1793
|
-
return
|
|
1790
|
+
if (!F(t) && !me(t) && !ve(t) && !He(t))
|
|
1791
|
+
throw Re(Le.INVALID_ARGUMENT);
|
|
1792
|
+
const a = me(t) ? String(t) : (ve(t), t);
|
|
1793
|
+
return me(n) ? l.plural = n : F(n) ? l.default = n : J(n) && !pt(n) ? l.named = n : ue(n) && (l.list = n), me(s) ? l.plural = s : F(s) ? l.default = s : J(s) && fe(l, s), [a, l];
|
|
1794
1794
|
}
|
|
1795
|
-
function
|
|
1795
|
+
function $a(e, t, n, s, l, a) {
|
|
1796
1796
|
return {
|
|
1797
1797
|
locale: t,
|
|
1798
1798
|
key: n,
|
|
@@ -1803,8 +1803,8 @@ function Ja(e, t, n, s, l, a) {
|
|
|
1803
1803
|
onCacheKey: (c) => fs(t, n, c)
|
|
1804
1804
|
};
|
|
1805
1805
|
}
|
|
1806
|
-
function
|
|
1807
|
-
const { modifiers: l, pluralRules: a, messageResolver: c, fallbackLocale:
|
|
1806
|
+
function Ja(e, t, n, s) {
|
|
1807
|
+
const { modifiers: l, pluralRules: a, messageResolver: c, fallbackLocale: d, fallbackWarn: u, missingWarn: p, fallbackContext: O } = e, N = {
|
|
1808
1808
|
locale: t,
|
|
1809
1809
|
modifiers: l,
|
|
1810
1810
|
pluralRules: a,
|
|
@@ -1816,27 +1816,27 @@ function $a(e, t, n, s) {
|
|
|
1816
1816
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1817
1817
|
P,
|
|
1818
1818
|
t,
|
|
1819
|
-
|
|
1819
|
+
d,
|
|
1820
1820
|
u,
|
|
1821
1821
|
p
|
|
1822
1822
|
);
|
|
1823
1823
|
L = c(M, P);
|
|
1824
1824
|
}
|
|
1825
|
-
if (F(L) ||
|
|
1825
|
+
if (F(L) || He(L)) {
|
|
1826
1826
|
let M = !1;
|
|
1827
|
-
const
|
|
1827
|
+
const m = xn(e, P, t, L, P, () => {
|
|
1828
1828
|
M = !0;
|
|
1829
1829
|
});
|
|
1830
|
-
return M ? In :
|
|
1830
|
+
return M ? In : m;
|
|
1831
1831
|
} else return ve(L) ? L : In;
|
|
1832
1832
|
}
|
|
1833
1833
|
};
|
|
1834
|
-
return e.processor && (
|
|
1834
|
+
return e.processor && (N.processor = e.processor), s.list && (N.list = s.list), s.named && (N.named = s.named), me(s.plural) && (N.pluralIndex = s.plural), N;
|
|
1835
1835
|
}
|
|
1836
|
-
|
|
1837
|
-
var Ka = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_f01a4c8a-940b-45a1-aaef-6a320521139d", 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_f01a4c8a-940b-45a1-aaef-6a320521139d", 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: "1860", ACTIONS_ORCHESTRATION_ID: "54ba7b0f-6dab-4c08-be82-1bb202a43eed.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: "20260518.149.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:14866", 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: "26441908334", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "549912a0a1137bbe18895864502207e3c841c82d", 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/perf/improve-hrm-performance", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9wZXJmL2ltcHJvdmUtaHJtLXBlcmZvcm1hbmNlXCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsImF1ZCI6InZzbzo2Zjk2ZmE4OS1iN2JmLTQ4NzgtYmFkMy04OTgwMDY1NjZiNmUiLCJiaWxsaW5nX293bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwiZXhwIjoxNzc5ODA3MTQ3LCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3ByaW1hcnlzaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJpYXQiOjE3Nzk3ODQ5NDcsImlzcyI6Imh0dHBzOi8vdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJqb2JfaWQiOiJkN2NlYjVlZC03ODNlLTUxYjMtODhkMC0yNDIyYjVjZDNjZjIiLCJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJuYmYiOjE3Nzk3ODQ2NDcsIm9pZGNfZXh0cmEiOiJ7XCJhY3RvclwiOlwianVuLWxlZS1mZWVkbWVcIixcImFjdG9yX2lkXCI6XCIyMzkyODI4NjJcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiNzc4MzgyMjM4ODZcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjIyMGY3ZTc2ZTBkY2EwOTNjNDc1MDM3YjhlN2MwZjU1M2I2MTcyMzlcIixcInJlZlwiOlwicmVmcy9oZWFkcy9wZXJmL2ltcHJvdmUtaHJtLXBlcmZvcm1hbmNlXCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjI2NDQxOTA4MzM0XCIsXCJydW5fbnVtYmVyXCI6XCI5NVwiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcIjU0OTkxMmEwYTExMzdiYmUxODg5NTg2NDUwMjIwN2UzYzg0MWM4MmRcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIGhybS1wb3J0YWxcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtaHJtLXBvcnRhbC10cnVzdGVkLnltbEByZWZzL2hlYWRzL3BlcmYvaW1wcm92ZS1ocm0tcGVyZm9ybWFuY2VcIixcIndvcmtmbG93X3NoYVwiOlwiNTQ5OTEyYTBhMTEzN2JiZTE4ODk1ODY0NTAyMjA3ZTNjODQxYzgyZFwifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvaHJtLXNlcnZpY2U6cmVmOnJlZnMvaGVhZHMvcGVyZi9pbXByb3ZlLWhybS1wZXJmb3JtYW5jZSIsIm9yY2hfaWQiOiI1NGJhN2IwZi02ZGFiLTRjMDgtYmU4Mi0xYmIyMDJhNDNlZWQucHVibGlzaC5wdWJsaXNoLl9fZGVmYXVsdCIsIm93bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwicGxhbl9pZCI6IjU0YmE3YjBmLTZkYWItNGMwOC1iZTgyLTFiYjIwMmE0M2VlZCIsInJlcG9zaXRvcnlfaWQiOiIxMTI0NjcyMjM1IiwicmVwb3NpdG9yeV9vd25lcl9pZCI6IjU0ODMxNTE1IiwicmVwb3NpdG9yeV92aXNpYmlsaXR5IjoicHJpdmF0ZSIsInJ1bl9pZCI6IjI2NDQxOTA4MzM0IiwicnVuX251bWJlciI6Ijk1IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDA3MjA2MiIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjU0YmE3YjBmLTZkYWItNGMwOC1iZTgyLTFiYjIwMmE0M2VlZDpkN2NlYjVlZC03ODNlLTUxYjMtODhkMC0yNDIyYjVjZDNjZjIgQWN0aW9ucy5SdW5uZXI6NTRiYTdiMGYtNmRhYi00YzA4LWJlODItMWJiMjAyYTQzZWVkOmQ3Y2ViNWVkLTc4M2UtNTFiMy04OGQwLTI0MjJiNWNkM2NmMiBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czo1NGJhN2IwZi02ZGFiLTRjMDgtYmU4Mi0xYmIyMDJhNDNlZWQ6ZDdjZWI1ZWQtNzgzZS01MWIzLTg4ZDAtMjQyMmI1Y2QzY2YyIGdlbmVyYXRlX2lkX3Rva2VuOjU0YmE3YjBmLTZkYWItNGMwOC1iZTgyLTFiYjIwMmE0M2VlZDpkN2NlYjVlZC03ODNlLTUxYjMtODhkMC0yNDIyYjVjZDNjZjIgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiI1NDk5MTJhMGExMTM3YmJlMTg4OTU4NjQ1MDIyMDdlM2M4NDFjODJkIiwidHJ1c3RfdGllciI6IjEifQ.l4R4Iuf4s7TyeSSVW_fGgGrlS-z1yM3mhQSYrWUbezK_D_y8tgOo1kF2BjO85hzrf6R4BrWZTAG_9mAihtV2zsvJAfUTzcP23Iph0qAdcgvHBaMuWqhdf3n1_qnU7vkG8FY1JnFFFu7sna7LUKnLKHSxIddfmmmbWH19Z0DAhefnaPxmuJuwP0WE8vGWEcHaOe-tnCZvEZDZfENAubC3cthvAQxrd9cFVetgIcp6XzG4bqnpjcK32IyJ0KpbJ_eDoH-R7Qx4pI6z2LVH62UT198N0LgrWngXRnEm7FHKshUrQncp81hZWzPU5I8rWoNsSANu59KEm9WKaCnhkJLvXA", 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_8fb136d7-bf7f-4783-885a-4d5b94f9587c", INVOCATION_ID: "91b10136d17d45bdb500ac1aef1470f6", 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: "95", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --access public --tag latest --no-git-checks", npm_package_scripts_publish_npm_beta: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --access public --tag beta --no-git-checks", npm_package_scripts_publish_github: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --tag latest --no-git-checks", npm_package_scripts_publish_github_beta: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --tag beta --no-git-checks", npm_config_frozen_lockfile: "", npm_package_devDependencies__vitest_ui: "^1.2.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies__vue_eslint_config_typescript: "^12.0.0", npm_package_devDependencies_eslint: "^9.39.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000072062", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "perf/improve-hrm-performance", 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.15-dev.4", 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: "549912a0a1137bbe18895864502207e3c841c82d", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.2", GITHUB_REF: "refs/heads/perf/improve-hrm-performance", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", npm_package_devDependencies_globals: "^16.5.0", npm_package_scripts_format: "prettier --write src/", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_f01a4c8a-940b-45a1-aaef-6a320521139d", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_package_devDependencies_vue_eslint_parser: "^10.2.0", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-2-azure-eastus.actions.githubusercontent.com/173//idtoken/54ba7b0f-6dab-4c08-be82-1bb202a43eed/d7ceb5ed-783e-51b3-88d0-2422b5cd3cf2?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_f01a4c8a-940b-45a1-aaef-6a320521139d", 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_f01a4c8a-940b-45a1-aaef-6a320521139d", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1838
|
-
const
|
|
1839
|
-
function
|
|
1836
|
+
Hs();
|
|
1837
|
+
var Ka = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_9a9ddf97-6a95-4e13-9183-a61d50cead61", 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_9a9ddf97-6a95-4e13-9183-a61d50cead61", 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: "1867", ACTIONS_ORCHESTRATION_ID: "9a870c77-1f78-4ac1-a06a-4b2a84c39eed.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: "20260518.149.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:15489", 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: "26466047465", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "590aa795329e3b74add6068dd9f90072198612e7", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/main", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6M31dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3Nzk4NDA4NTMsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc3OTgxODY1MywiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjEzZmVhMmVjLTYwODQtNTI0NC04OTFhLWYyNDc2MjgwNjk1ZCIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc3OTgxODM1Mywib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI3NzkyNjQ4NjYyNlwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiMjIwZjdlNzZlMGRjYTA5M2M0NzUwMzdiOGU3YzBmNTUzYjYxNzIzOVwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL21haW5cIixcInJlZl9wcm90ZWN0ZWRcIjpcInRydWVcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIyNjQ2NjA0NzQ2NVwiLFwicnVuX251bWJlclwiOlwiOTZcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCI1OTBhYTc5NTMyOWUzYjc0YWRkNjA2OGRkOWY5MDA3MjE5ODYxMmU3XCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy9tYWluXCIsXCJ3b3JrZmxvd19zaGFcIjpcIjU5MGFhNzk1MzI5ZTNiNzRhZGQ2MDY4ZGQ5ZjkwMDcyMTk4NjEyZTdcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL2hybS1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL21haW4iLCJvcmNoX2lkIjoiOWE4NzBjNzctMWY3OC00YWMxLWEwNmEtNGIyYTg0YzM5ZWVkLnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiI5YTg3MGM3Ny0xZjc4LTRhYzEtYTA2YS00YjJhODRjMzllZWQiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiIyNjQ2NjA0NzQ2NSIsInJ1bl9udW1iZXIiOiI5NiIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDAwNzIyMjYiLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czo5YTg3MGM3Ny0xZjc4LTRhYzEtYTA2YS00YjJhODRjMzllZWQ6MTNmZWEyZWMtNjA4NC01MjQ0LTg5MWEtZjI0NzYyODA2OTVkIEFjdGlvbnMuUnVubmVyOjlhODcwYzc3LTFmNzgtNGFjMS1hMDZhLTRiMmE4NGMzOWVlZDoxM2ZlYTJlYy02MDg0LTUyNDQtODkxYS1mMjQ3NjI4MDY5NWQgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6OWE4NzBjNzctMWY3OC00YWMxLWEwNmEtNGIyYTg0YzM5ZWVkOjEzZmVhMmVjLTYwODQtNTI0NC04OTFhLWYyNDc2MjgwNjk1ZCBnZW5lcmF0ZV9pZF90b2tlbjo5YTg3MGM3Ny0xZjc4LTRhYzEtYTA2YS00YjJhODRjMzllZWQ6MTNmZWEyZWMtNjA4NC01MjQ0LTg5MWEtZjI0NzYyODA2OTVkIEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiNTkwYWE3OTUzMjllM2I3NGFkZDYwNjhkZDlmOTAwNzIxOTg2MTJlNyIsInRydXN0X3RpZXIiOiIxIn0.vJufDINKy7SBKOXmWesGDJvKvvtfNlkJIusf3GIwz0QOGg4juDgib5f2MZUpdNp1_z7wSjvqKTp4L3j-LxPvwOmpa184kGW5mVel_e2I2ZeMJrNY6D7htSxOSnr8bGBIRAA6MwGH1tBV8MsOjF0eOsR84pH743VG2n8-0rIRDV-NxwD7PZPLTgqiF4yD2-P2NB6FZpFJWr59rzbuAmvO1AtgbrwHOcvqbX4RD7uAWA2yXXQoiVUMN2661Iw_MHUoeysipaAXhQe6HgRJIni7kJwGMfuogKT1i_KuYI678ulmbW4Y_f0_xpKjpPriWJ5Hn_MI6SqpNYajNP-7-PCxHA", 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_a748d261-0a8f-413c-ad03-e7e5e71bba4e", INVOCATION_ID: "90967cfb155b4eb095566d790c88b551", 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: "96", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --access public --tag latest --no-git-checks", npm_package_scripts_publish_npm_beta: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --access public --tag beta --no-git-checks", npm_package_scripts_publish_github: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --tag latest --no-git-checks", npm_package_scripts_publish_github_beta: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --tag beta --no-git-checks", npm_config_frozen_lockfile: "", npm_package_devDependencies__vitest_ui: "^1.2.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies__vue_eslint_config_typescript: "^12.0.0", npm_package_devDependencies_eslint: "^9.39.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000072226", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "^2.14.36", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__casl_ability: "^3.4.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^4.0.0", npm_package_devDependencies__vue_eslint_config_prettier: "^8.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.0.15", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts", npm_package_dependencies__feedmepos_hrm_permission: "workspace:*", npm_package_devDependencies__rushstack_eslint_patch: "^1.3.3", npm_package_devDependencies_eslint_plugin_unused_imports: "^4.3.0", npm_package_devDependencies_jsdom: "^24.0.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "true", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_uuid: "^10.0.0", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "590aa795329e3b74add6068dd9f90072198612e7", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.2", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_devDependencies_globals: "^16.5.0", npm_package_scripts_format: "prettier --write src/", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_9a9ddf97-6a95-4e13-9183-a61d50cead61", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_package_devDependencies_vue_eslint_parser: "^10.2.0", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/116//idtoken/9a870c77-1f78-4ac1-a06a-4b2a84c39eed/13fea2ec-6084-5244-891a-f2476280695d?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_9a9ddf97-6a95-4e13-9183-a61d50cead61", 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_9a9ddf97-6a95-4e13-9183-a61d50cead61", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1838
|
+
const za = "10.0.5";
|
|
1839
|
+
function Qa() {
|
|
1840
1840
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (je().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (je().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (je().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (je().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1841
1841
|
}
|
|
1842
1842
|
const Be = {
|
|
@@ -1855,12 +1855,12 @@ const Be = {
|
|
|
1855
1855
|
function nt(e, ...t) {
|
|
1856
1856
|
return ht(e, null, void 0);
|
|
1857
1857
|
}
|
|
1858
|
-
const Ut = /* @__PURE__ */ Ve("__translateVNode"), Vt = /* @__PURE__ */ Ve("__datetimeParts"), Wt = /* @__PURE__ */ Ve("__numberParts"), qa = Ve("__setPluralRules"),
|
|
1858
|
+
const Ut = /* @__PURE__ */ Ve("__translateVNode"), Vt = /* @__PURE__ */ Ve("__datetimeParts"), Wt = /* @__PURE__ */ Ve("__numberParts"), qa = Ve("__setPluralRules"), Yn = /* @__PURE__ */ Ve("__injectWithOption"), Gt = /* @__PURE__ */ Ve("__dispose");
|
|
1859
1859
|
function st(e) {
|
|
1860
1860
|
if (!K(e))
|
|
1861
1861
|
return e;
|
|
1862
1862
|
for (const t in e)
|
|
1863
|
-
if (
|
|
1863
|
+
if (Ne(e, t))
|
|
1864
1864
|
if (!t.includes("."))
|
|
1865
1865
|
K(e[t]) && st(e[t]);
|
|
1866
1866
|
else {
|
|
@@ -1878,19 +1878,19 @@ function st(e) {
|
|
|
1878
1878
|
return e;
|
|
1879
1879
|
}
|
|
1880
1880
|
function Zn(e, t) {
|
|
1881
|
-
const { messages: n, __i18n: s, messageResolver: l, flatJson: a } = t, c =
|
|
1882
|
-
if (ue(s) && s.forEach((
|
|
1883
|
-
if ("locale" in
|
|
1884
|
-
const { locale: u, resource: p } =
|
|
1885
|
-
u ? (c[u] = c[u] || q(),
|
|
1881
|
+
const { messages: n, __i18n: s, messageResolver: l, flatJson: a } = t, c = J(n) ? n : ue(s) ? q() : { [e]: q() };
|
|
1882
|
+
if (ue(s) && s.forEach((d) => {
|
|
1883
|
+
if ("locale" in d && "resource" in d) {
|
|
1884
|
+
const { locale: u, resource: p } = d;
|
|
1885
|
+
u ? (c[u] = c[u] || q(), dt(p, c[u])) : dt(p, c);
|
|
1886
1886
|
} else
|
|
1887
|
-
F(
|
|
1887
|
+
F(d) && dt(JSON.parse(d), c);
|
|
1888
1888
|
}), l == null && a)
|
|
1889
|
-
for (const
|
|
1890
|
-
|
|
1889
|
+
for (const d in c)
|
|
1890
|
+
Ne(c, d) && st(c[d]);
|
|
1891
1891
|
return c;
|
|
1892
1892
|
}
|
|
1893
|
-
function
|
|
1893
|
+
function Xn(e) {
|
|
1894
1894
|
return e.type;
|
|
1895
1895
|
}
|
|
1896
1896
|
function er(e, t, n) {
|
|
@@ -1918,101 +1918,101 @@ function er(e, t, n) {
|
|
|
1918
1918
|
}
|
|
1919
1919
|
}
|
|
1920
1920
|
}
|
|
1921
|
-
function
|
|
1922
|
-
return _e(
|
|
1921
|
+
function Nn(e) {
|
|
1922
|
+
return _e(zn, null, e, 0);
|
|
1923
1923
|
}
|
|
1924
|
-
const
|
|
1925
|
-
let
|
|
1924
|
+
const yn = "__INTLIFY_META__", Tn = () => [], tr = () => !1;
|
|
1925
|
+
let kn = 0;
|
|
1926
1926
|
function On(e) {
|
|
1927
1927
|
return (t, n, s, l) => e(n, s, xt() || void 0, l);
|
|
1928
1928
|
}
|
|
1929
1929
|
const nr = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1930
1930
|
const e = xt();
|
|
1931
1931
|
let t = null;
|
|
1932
|
-
return e && (t =
|
|
1932
|
+
return e && (t = Xn(e)[yn]) ? { [yn]: t } : null;
|
|
1933
1933
|
};
|
|
1934
1934
|
function sr(e = {}) {
|
|
1935
1935
|
const { __root: t, __injectWithOption: n } = e, s = t === void 0, l = e.flatJson, a = en ? Ue : Kn;
|
|
1936
1936
|
let c = ce(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1937
|
-
const
|
|
1937
|
+
const d = a(
|
|
1938
1938
|
// prettier-ignore
|
|
1939
1939
|
t && c ? t.locale.value : F(e.locale) ? e.locale : ft
|
|
1940
1940
|
), u = a(
|
|
1941
1941
|
// prettier-ignore
|
|
1942
|
-
t && c ? t.fallbackLocale.value : F(e.fallbackLocale) || ue(e.fallbackLocale) ||
|
|
1943
|
-
), p = a(Zn(
|
|
1944
|
-
let
|
|
1945
|
-
const w = t ? t.modifiers :
|
|
1946
|
-
let S = e.pluralRules || t && t.pluralRules,
|
|
1947
|
-
|
|
1942
|
+
t && c ? t.fallbackLocale.value : F(e.fallbackLocale) || ue(e.fallbackLocale) || J(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : d.value
|
|
1943
|
+
), p = a(Zn(d.value, e)), O = a(J(e.datetimeFormats) ? e.datetimeFormats : { [d.value]: {} }), A = a(J(e.numberFormats) ? e.numberFormats : { [d.value]: {} });
|
|
1944
|
+
let N = t ? t.missingWarn : ce(e.missingWarn) || mt(e.missingWarn) ? e.missingWarn : !0, P = t ? t.fallbackWarn : ce(e.fallbackWarn) || mt(e.fallbackWarn) ? e.fallbackWarn : !0, V = t ? t.fallbackRoot : ce(e.fallbackRoot) ? e.fallbackRoot : !0, L = !!e.fallbackFormat, M = le(e.missing) ? e.missing : null, i = le(e.missing) ? On(e.missing) : null, m = le(e.postTranslation) ? e.postTranslation : null, y = t ? t.warnHtmlMessage : ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, _ = !!e.escapeParameter;
|
|
1945
|
+
const w = t ? t.modifiers : J(e.modifiers) ? e.modifiers : {};
|
|
1946
|
+
let S = e.pluralRules || t && t.pluralRules, b;
|
|
1947
|
+
b = (() => {
|
|
1948
1948
|
s && fn(null);
|
|
1949
1949
|
const f = {
|
|
1950
|
-
version:
|
|
1951
|
-
locale:
|
|
1950
|
+
version: za,
|
|
1951
|
+
locale: d.value,
|
|
1952
1952
|
fallbackLocale: u.value,
|
|
1953
1953
|
messages: p.value,
|
|
1954
1954
|
modifiers: w,
|
|
1955
1955
|
pluralRules: S,
|
|
1956
1956
|
missing: i === null ? void 0 : i,
|
|
1957
|
-
missingWarn:
|
|
1957
|
+
missingWarn: N,
|
|
1958
1958
|
fallbackWarn: P,
|
|
1959
1959
|
fallbackFormat: L,
|
|
1960
1960
|
unresolving: !0,
|
|
1961
|
-
postTranslation:
|
|
1962
|
-
warnHtmlMessage:
|
|
1961
|
+
postTranslation: m === null ? void 0 : m,
|
|
1962
|
+
warnHtmlMessage: y,
|
|
1963
1963
|
escapeParameter: _,
|
|
1964
1964
|
messageResolver: e.messageResolver,
|
|
1965
1965
|
messageCompiler: e.messageCompiler,
|
|
1966
1966
|
__meta: { framework: "vue" }
|
|
1967
1967
|
};
|
|
1968
|
-
f.datetimeFormats = O.value, f.numberFormats =
|
|
1968
|
+
f.datetimeFormats = O.value, f.numberFormats = A.value, f.__datetimeFormatters = J(b) ? b.__datetimeFormatters : void 0, f.__numberFormatters = J(b) ? b.__numberFormatters : void 0;
|
|
1969
1969
|
const I = Pa(f);
|
|
1970
1970
|
return s && fn(I), I;
|
|
1971
|
-
})(),
|
|
1971
|
+
})(), Qe(b, d.value, u.value);
|
|
1972
1972
|
function h() {
|
|
1973
1973
|
return [
|
|
1974
|
-
|
|
1974
|
+
d.value,
|
|
1975
1975
|
u.value,
|
|
1976
1976
|
p.value,
|
|
1977
1977
|
O.value,
|
|
1978
|
-
|
|
1978
|
+
A.value
|
|
1979
1979
|
];
|
|
1980
1980
|
}
|
|
1981
1981
|
const E = te({
|
|
1982
|
-
get: () =>
|
|
1982
|
+
get: () => d.value,
|
|
1983
1983
|
set: (f) => {
|
|
1984
|
-
|
|
1984
|
+
d.value = f, b.locale = d.value;
|
|
1985
1985
|
}
|
|
1986
|
-
}),
|
|
1986
|
+
}), C = te({
|
|
1987
1987
|
get: () => u.value,
|
|
1988
1988
|
set: (f) => {
|
|
1989
|
-
u.value = f,
|
|
1989
|
+
u.value = f, b.fallbackLocale = u.value, Qe(b, d.value, f);
|
|
1990
1990
|
}
|
|
1991
|
-
}),
|
|
1991
|
+
}), R = te(() => p.value), x = /* @__PURE__ */ te(() => O.value), W = /* @__PURE__ */ te(() => A.value);
|
|
1992
1992
|
function D() {
|
|
1993
|
-
return le(
|
|
1993
|
+
return le(m) ? m : null;
|
|
1994
1994
|
}
|
|
1995
|
-
function
|
|
1996
|
-
|
|
1995
|
+
function k(f) {
|
|
1996
|
+
m = f, b.postTranslation = f;
|
|
1997
1997
|
}
|
|
1998
|
-
function
|
|
1998
|
+
function T() {
|
|
1999
1999
|
return M;
|
|
2000
2000
|
}
|
|
2001
|
-
function
|
|
2002
|
-
f !== null && (i = On(f)), M = f,
|
|
2001
|
+
function X(f) {
|
|
2002
|
+
f !== null && (i = On(f)), M = f, b.missing = i;
|
|
2003
2003
|
}
|
|
2004
2004
|
const G = (f, I, ee, ie, Pe, at) => {
|
|
2005
2005
|
h();
|
|
2006
2006
|
let xe;
|
|
2007
2007
|
try {
|
|
2008
|
-
Ka.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (
|
|
2008
|
+
Ka.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (b.fallbackContext = t ? wa() : void 0), xe = f(b);
|
|
2009
2009
|
} finally {
|
|
2010
|
-
__INTLIFY_PROD_DEVTOOLS__, s || (
|
|
2010
|
+
__INTLIFY_PROD_DEVTOOLS__, s || (b.fallbackContext = void 0);
|
|
2011
2011
|
}
|
|
2012
2012
|
if (ee !== "translate exists" && // for not `te` (e.g `t`)
|
|
2013
|
-
|
|
2014
|
-
const [
|
|
2015
|
-
return t && V ? ie(t) : Pe(
|
|
2013
|
+
me(xe) && xe === gt || ee === "translate exists" && !xe) {
|
|
2014
|
+
const [$n, Hr] = I();
|
|
2015
|
+
return t && V ? ie(t) : Pe($n);
|
|
2016
2016
|
} else {
|
|
2017
2017
|
if (at(xe))
|
|
2018
2018
|
return xe;
|
|
@@ -2028,17 +2028,17 @@ function sr(e = {}) {
|
|
|
2028
2028
|
throw nt(Be.INVALID_ARGUMENT);
|
|
2029
2029
|
return j(I, ee, fe({ resolvedMessage: !0 }, ie || {}));
|
|
2030
2030
|
}
|
|
2031
|
-
function
|
|
2032
|
-
return G((I) => Reflect.apply(pn, null, [I, ...f]), () => Pt(...f), "datetime format", (I) => Reflect.apply(I.d, I, [...f]), () =>
|
|
2031
|
+
function $(...f) {
|
|
2032
|
+
return G((I) => Reflect.apply(pn, null, [I, ...f]), () => Pt(...f), "datetime format", (I) => Reflect.apply(I.d, I, [...f]), () => dn, (I) => F(I));
|
|
2033
2033
|
}
|
|
2034
|
-
function
|
|
2035
|
-
return G((I) => Reflect.apply(
|
|
2034
|
+
function Y(...f) {
|
|
2035
|
+
return G((I) => Reflect.apply(gn, null, [I, ...f]), () => Ft(...f), "number format", (I) => Reflect.apply(I.n, I, [...f]), () => dn, (I) => F(I));
|
|
2036
2036
|
}
|
|
2037
|
-
function
|
|
2038
|
-
return f.map((I) => F(I) ||
|
|
2037
|
+
function z(f) {
|
|
2038
|
+
return f.map((I) => F(I) || me(I) || ce(I) ? Nn(String(I)) : I);
|
|
2039
2039
|
}
|
|
2040
2040
|
const re = {
|
|
2041
|
-
normalize:
|
|
2041
|
+
normalize: z,
|
|
2042
2042
|
interpolate: (f) => f,
|
|
2043
2043
|
type: "vnode"
|
|
2044
2044
|
};
|
|
@@ -2052,30 +2052,30 @@ function sr(e = {}) {
|
|
|
2052
2052
|
ie.processor = null;
|
|
2053
2053
|
}
|
|
2054
2054
|
return ee;
|
|
2055
|
-
}, () => jt(...f), "translate", (I) => I[Ut](...f), (I) => [
|
|
2056
|
-
}
|
|
2057
|
-
function Je(...f) {
|
|
2058
|
-
return G((I) => Reflect.apply(bn, null, [I, ...f]), () => Ft(...f), "number format", (I) => I[Wt](...f), kn, (I) => F(I) || ue(I));
|
|
2055
|
+
}, () => jt(...f), "translate", (I) => I[Ut](...f), (I) => [Nn(I)], (I) => ue(I));
|
|
2059
2056
|
}
|
|
2060
2057
|
function $e(...f) {
|
|
2061
|
-
return G((I) => Reflect.apply(
|
|
2058
|
+
return G((I) => Reflect.apply(gn, null, [I, ...f]), () => Ft(...f), "number format", (I) => I[Wt](...f), Tn, (I) => F(I) || ue(I));
|
|
2059
|
+
}
|
|
2060
|
+
function Je(...f) {
|
|
2061
|
+
return G((I) => Reflect.apply(pn, null, [I, ...f]), () => Pt(...f), "datetime format", (I) => I[Vt](...f), Tn, (I) => F(I) || ue(I));
|
|
2062
2062
|
}
|
|
2063
2063
|
function vt(f) {
|
|
2064
|
-
S = f,
|
|
2064
|
+
S = f, b.pluralRules = S;
|
|
2065
2065
|
}
|
|
2066
2066
|
function It(f, I) {
|
|
2067
2067
|
return G(() => {
|
|
2068
2068
|
if (!f)
|
|
2069
2069
|
return !1;
|
|
2070
|
-
const ee = F(I) ? I :
|
|
2071
|
-
return
|
|
2070
|
+
const ee = F(I) ? I : d.value, ie = We(ee), Pe = b.messageResolver(ie, f);
|
|
2071
|
+
return He(Pe) || ve(Pe) || F(Pe);
|
|
2072
2072
|
}, () => [f], "translate exists", (ee) => Reflect.apply(ee.te, ee, [f, I]), tr, (ee) => ce(ee));
|
|
2073
2073
|
}
|
|
2074
2074
|
function Et(f) {
|
|
2075
2075
|
let I = null;
|
|
2076
|
-
const ee = Mn(
|
|
2076
|
+
const ee = Mn(b, u.value, d.value);
|
|
2077
2077
|
for (let ie = 0; ie < ee.length; ie++) {
|
|
2078
|
-
const Pe = p.value[ee[ie]] || {}, at =
|
|
2078
|
+
const Pe = p.value[ee[ie]] || {}, at = b.messageResolver(Pe, f);
|
|
2079
2079
|
if (at != null) {
|
|
2080
2080
|
I = at;
|
|
2081
2081
|
break;
|
|
@@ -2094,56 +2094,56 @@ function sr(e = {}) {
|
|
|
2094
2094
|
if (l) {
|
|
2095
2095
|
const ee = { [f]: I };
|
|
2096
2096
|
for (const ie in ee)
|
|
2097
|
-
|
|
2097
|
+
Ne(ee, ie) && st(ee[ie]);
|
|
2098
2098
|
I = ee[f];
|
|
2099
2099
|
}
|
|
2100
|
-
p.value[f] = I,
|
|
2100
|
+
p.value[f] = I, b.messages = p.value;
|
|
2101
2101
|
}
|
|
2102
|
-
function
|
|
2102
|
+
function ze(f, I) {
|
|
2103
2103
|
p.value[f] = p.value[f] || {};
|
|
2104
2104
|
const ee = { [f]: I };
|
|
2105
2105
|
if (l)
|
|
2106
2106
|
for (const ie in ee)
|
|
2107
|
-
|
|
2108
|
-
I = ee[f],
|
|
2107
|
+
Ne(ee, ie) && st(ee[ie]);
|
|
2108
|
+
I = ee[f], dt(I, p.value[f]), b.messages = p.value;
|
|
2109
2109
|
}
|
|
2110
|
-
function
|
|
2110
|
+
function Nt(f) {
|
|
2111
2111
|
return O.value[f] || {};
|
|
2112
2112
|
}
|
|
2113
2113
|
function r(f, I) {
|
|
2114
|
-
O.value[f] = I,
|
|
2114
|
+
O.value[f] = I, b.datetimeFormats = O.value, hn(b, f, I);
|
|
2115
2115
|
}
|
|
2116
2116
|
function o(f, I) {
|
|
2117
|
-
O.value[f] = fe(O.value[f] || {}, I),
|
|
2117
|
+
O.value[f] = fe(O.value[f] || {}, I), b.datetimeFormats = O.value, hn(b, f, I);
|
|
2118
2118
|
}
|
|
2119
|
-
function
|
|
2120
|
-
return
|
|
2119
|
+
function g(f) {
|
|
2120
|
+
return A.value[f] || {};
|
|
2121
2121
|
}
|
|
2122
2122
|
function U(f, I) {
|
|
2123
|
-
|
|
2123
|
+
A.value[f] = I, b.numberFormats = A.value, bn(b, f, I);
|
|
2124
2124
|
}
|
|
2125
2125
|
function oe(f, I) {
|
|
2126
|
-
|
|
2126
|
+
A.value[f] = fe(A.value[f] || {}, I), b.numberFormats = A.value, bn(b, f, I);
|
|
2127
2127
|
}
|
|
2128
|
-
|
|
2129
|
-
c && (
|
|
2128
|
+
kn++, t && en && (St(t.locale, (f) => {
|
|
2129
|
+
c && (d.value = f, b.locale = f, Qe(b, d.value, u.value));
|
|
2130
2130
|
}), St(t.fallbackLocale, (f) => {
|
|
2131
|
-
c && (u.value = f,
|
|
2131
|
+
c && (u.value = f, b.fallbackLocale = f, Qe(b, d.value, u.value));
|
|
2132
2132
|
}));
|
|
2133
2133
|
const Z = {
|
|
2134
|
-
id:
|
|
2134
|
+
id: kn,
|
|
2135
2135
|
locale: E,
|
|
2136
|
-
fallbackLocale:
|
|
2136
|
+
fallbackLocale: C,
|
|
2137
2137
|
get inheritLocale() {
|
|
2138
2138
|
return c;
|
|
2139
2139
|
},
|
|
2140
2140
|
set inheritLocale(f) {
|
|
2141
|
-
c = f, f && t && (
|
|
2141
|
+
c = f, f && t && (d.value = t.locale.value, u.value = t.fallbackLocale.value, Qe(b, d.value, u.value));
|
|
2142
2142
|
},
|
|
2143
2143
|
get availableLocales() {
|
|
2144
2144
|
return Object.keys(p.value).sort();
|
|
2145
2145
|
},
|
|
2146
|
-
messages:
|
|
2146
|
+
messages: R,
|
|
2147
2147
|
get modifiers() {
|
|
2148
2148
|
return w;
|
|
2149
2149
|
},
|
|
@@ -2154,16 +2154,16 @@ function sr(e = {}) {
|
|
|
2154
2154
|
return s;
|
|
2155
2155
|
},
|
|
2156
2156
|
get missingWarn() {
|
|
2157
|
-
return
|
|
2157
|
+
return N;
|
|
2158
2158
|
},
|
|
2159
2159
|
set missingWarn(f) {
|
|
2160
|
-
|
|
2160
|
+
N = f, b.missingWarn = N;
|
|
2161
2161
|
},
|
|
2162
2162
|
get fallbackWarn() {
|
|
2163
2163
|
return P;
|
|
2164
2164
|
},
|
|
2165
2165
|
set fallbackWarn(f) {
|
|
2166
|
-
P = f,
|
|
2166
|
+
P = f, b.fallbackWarn = P;
|
|
2167
2167
|
},
|
|
2168
2168
|
get fallbackRoot() {
|
|
2169
2169
|
return V;
|
|
@@ -2175,31 +2175,31 @@ function sr(e = {}) {
|
|
|
2175
2175
|
return L;
|
|
2176
2176
|
},
|
|
2177
2177
|
set fallbackFormat(f) {
|
|
2178
|
-
L = f,
|
|
2178
|
+
L = f, b.fallbackFormat = L;
|
|
2179
2179
|
},
|
|
2180
2180
|
get warnHtmlMessage() {
|
|
2181
|
-
return
|
|
2181
|
+
return y;
|
|
2182
2182
|
},
|
|
2183
2183
|
set warnHtmlMessage(f) {
|
|
2184
|
-
|
|
2184
|
+
y = f, b.warnHtmlMessage = f;
|
|
2185
2185
|
},
|
|
2186
2186
|
get escapeParameter() {
|
|
2187
2187
|
return _;
|
|
2188
2188
|
},
|
|
2189
2189
|
set escapeParameter(f) {
|
|
2190
|
-
_ = f,
|
|
2190
|
+
_ = f, b.escapeParameter = f;
|
|
2191
2191
|
},
|
|
2192
2192
|
t: j,
|
|
2193
2193
|
getLocaleMessage: We,
|
|
2194
2194
|
setLocaleMessage: Ge,
|
|
2195
|
-
mergeLocaleMessage:
|
|
2195
|
+
mergeLocaleMessage: ze,
|
|
2196
2196
|
getPostTranslationHandler: D,
|
|
2197
|
-
setPostTranslationHandler:
|
|
2198
|
-
getMissingHandler:
|
|
2199
|
-
setMissingHandler:
|
|
2197
|
+
setPostTranslationHandler: k,
|
|
2198
|
+
getMissingHandler: T,
|
|
2199
|
+
setMissingHandler: X,
|
|
2200
2200
|
[qa]: vt
|
|
2201
2201
|
};
|
|
2202
|
-
return Z.datetimeFormats = x, Z.numberFormats = W, Z.rt = ne, Z.te = It, Z.tm = Ke, Z.d =
|
|
2202
|
+
return Z.datetimeFormats = x, Z.numberFormats = W, Z.rt = ne, Z.te = It, Z.tm = Ke, Z.d = $, Z.n = Y, Z.getDateTimeFormat = Nt, Z.setDateTimeFormat = r, Z.mergeDateTimeFormat = o, Z.getNumberFormat = g, Z.setNumberFormat = U, Z.mergeNumberFormat = oe, Z[Yn] = n, Z[Ut] = Ie, Z[Vt] = Je, Z[Wt] = $e, Z;
|
|
2203
2203
|
}
|
|
2204
2204
|
const Kt = {
|
|
2205
2205
|
tag: {
|
|
@@ -2229,7 +2229,7 @@ function ar({ slots: e }, t) {
|
|
|
2229
2229
|
return l && (n[s] = l()), n;
|
|
2230
2230
|
}, q());
|
|
2231
2231
|
}
|
|
2232
|
-
function
|
|
2232
|
+
function Hn() {
|
|
2233
2233
|
return Ee;
|
|
2234
2234
|
}
|
|
2235
2235
|
fe({
|
|
@@ -2239,7 +2239,7 @@ fe({
|
|
|
2239
2239
|
},
|
|
2240
2240
|
plural: {
|
|
2241
2241
|
type: [Number, String],
|
|
2242
|
-
validator: (e) =>
|
|
2242
|
+
validator: (e) => me(e) || !isNaN(e)
|
|
2243
2243
|
}
|
|
2244
2244
|
}, Kt);
|
|
2245
2245
|
function rr(e) {
|
|
@@ -2249,16 +2249,16 @@ function Bn(e, t, n, s) {
|
|
|
2249
2249
|
const { slots: l, attrs: a } = t;
|
|
2250
2250
|
return () => {
|
|
2251
2251
|
const c = { part: !0 };
|
|
2252
|
-
let
|
|
2253
|
-
e.locale && (c.locale = e.locale), F(e.format) ? c.key = e.format : K(e.format) && (F(e.format.key) && (c.key = e.format.key),
|
|
2254
|
-
const u = s(e.value, c,
|
|
2252
|
+
let d = q();
|
|
2253
|
+
e.locale && (c.locale = e.locale), F(e.format) ? c.key = e.format : K(e.format) && (F(e.format.key) && (c.key = e.format.key), d = Object.keys(e.format).reduce((N, P) => n.includes(P) ? fe(q(), N, { [P]: e.format[P] }) : N, q()));
|
|
2254
|
+
const u = s(e.value, c, d);
|
|
2255
2255
|
let p = [c.key];
|
|
2256
|
-
ue(u) ? p = u.map((
|
|
2257
|
-
const V = l[
|
|
2258
|
-
return rr(L) && (L[0].key = `${
|
|
2256
|
+
ue(u) ? p = u.map((N, P) => {
|
|
2257
|
+
const V = l[N.type], L = V ? V({ [N.type]: N.value, index: P, parts: u }) : [N.value];
|
|
2258
|
+
return rr(L) && (L[0].key = `${N.type}-${P}`), L;
|
|
2259
2259
|
}) : F(u) && (p = [u]);
|
|
2260
|
-
const O = fe(q(), a),
|
|
2261
|
-
return Sn(
|
|
2260
|
+
const O = fe(q(), a), A = F(e.tag) || K(e.tag) ? e.tag : Hn();
|
|
2261
|
+
return Sn(A, O, p);
|
|
2262
2262
|
};
|
|
2263
2263
|
}
|
|
2264
2264
|
fe({
|
|
@@ -2280,13 +2280,13 @@ fe({
|
|
|
2280
2280
|
}
|
|
2281
2281
|
}, Kt);
|
|
2282
2282
|
const lr = /* @__PURE__ */ Ve("global-vue-i18n");
|
|
2283
|
-
function
|
|
2283
|
+
function bt(e = {}) {
|
|
2284
2284
|
const t = xt();
|
|
2285
2285
|
if (t == null)
|
|
2286
2286
|
throw nt(Be.MUST_BE_CALL_SETUP_TOP);
|
|
2287
2287
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2288
2288
|
throw nt(Be.NOT_INSTALLED);
|
|
2289
|
-
const n = or(t), s = cr(n), l =
|
|
2289
|
+
const n = or(t), s = cr(n), l = Xn(t), a = ir(e, l);
|
|
2290
2290
|
if (a === "global")
|
|
2291
2291
|
return er(s, e, l), s;
|
|
2292
2292
|
if (a === "parent") {
|
|
@@ -2294,15 +2294,15 @@ function gt(e = {}) {
|
|
|
2294
2294
|
return u == null && (u = s), u;
|
|
2295
2295
|
}
|
|
2296
2296
|
const c = n;
|
|
2297
|
-
let
|
|
2298
|
-
if (
|
|
2297
|
+
let d = c.__getInstance(t);
|
|
2298
|
+
if (d == null) {
|
|
2299
2299
|
const u = fe({}, e);
|
|
2300
|
-
"__i18n" in l && (u.__i18n = l.__i18n), s && (u.__root = s),
|
|
2300
|
+
"__i18n" in l && (u.__i18n = l.__i18n), s && (u.__root = s), d = sr(u), c.__composerExtend && (d[Gt] = c.__composerExtend(d)), mr(c, t, d), c.__setInstance(t, d);
|
|
2301
2301
|
}
|
|
2302
|
-
return
|
|
2302
|
+
return d;
|
|
2303
2303
|
}
|
|
2304
2304
|
function or(e) {
|
|
2305
|
-
const t =
|
|
2305
|
+
const t = Jn(e.isCE ? lr : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2306
2306
|
if (!t)
|
|
2307
2307
|
throw nt(e.isCE ? Be.NOT_INSTALLED_WITH_PROVIDE : Be.UNEXPECTED_ERROR);
|
|
2308
2308
|
return t;
|
|
@@ -2316,14 +2316,14 @@ function cr(e) {
|
|
|
2316
2316
|
function ur(e, t, n = !1) {
|
|
2317
2317
|
let s = null;
|
|
2318
2318
|
const l = t.root;
|
|
2319
|
-
let a =
|
|
2319
|
+
let a = dr(t, n);
|
|
2320
2320
|
for (; a != null; ) {
|
|
2321
2321
|
const c = e;
|
|
2322
2322
|
if (e.mode === "composition")
|
|
2323
2323
|
s = c.__getInstance(a);
|
|
2324
2324
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
2325
|
-
const
|
|
2326
|
-
|
|
2325
|
+
const d = c.__getInstance(a);
|
|
2326
|
+
d != null && (s = d.__composer, n && s && !s[Yn] && (s = null));
|
|
2327
2327
|
}
|
|
2328
2328
|
if (s != null || l === a)
|
|
2329
2329
|
break;
|
|
@@ -2331,27 +2331,27 @@ function ur(e, t, n = !1) {
|
|
|
2331
2331
|
}
|
|
2332
2332
|
return s;
|
|
2333
2333
|
}
|
|
2334
|
-
function
|
|
2334
|
+
function dr(e, t = !1) {
|
|
2335
2335
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2336
2336
|
}
|
|
2337
|
-
function
|
|
2338
|
-
|
|
2339
|
-
}, t),
|
|
2337
|
+
function mr(e, t, n) {
|
|
2338
|
+
Yt(() => {
|
|
2339
|
+
}, t), Cn(() => {
|
|
2340
2340
|
const s = n;
|
|
2341
2341
|
e.__deleteInstance(t);
|
|
2342
2342
|
const l = s[Gt];
|
|
2343
2343
|
l && (l(), delete s[Gt]);
|
|
2344
2344
|
}, t);
|
|
2345
2345
|
}
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2346
|
+
Qa();
|
|
2347
|
+
Aa(ua);
|
|
2348
|
+
Ca(Oa);
|
|
2349
2349
|
Sa(Mn);
|
|
2350
2350
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2351
2351
|
const e = je();
|
|
2352
|
-
e.__INTLIFY__ = !0,
|
|
2352
|
+
e.__INTLIFY__ = !0, da(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2353
2353
|
}
|
|
2354
|
-
const it = /* @__PURE__ */
|
|
2354
|
+
const it = /* @__PURE__ */ ye({
|
|
2355
2355
|
__name: "InheritPermissionTooltip",
|
|
2356
2356
|
props: {
|
|
2357
2357
|
item: {
|
|
@@ -2360,21 +2360,21 @@ const it = /* @__PURE__ */ Ne({
|
|
|
2360
2360
|
}
|
|
2361
2361
|
},
|
|
2362
2362
|
setup(e) {
|
|
2363
|
-
const { t } =
|
|
2363
|
+
const { t } = bt();
|
|
2364
2364
|
return (n, s) => {
|
|
2365
2365
|
const l = Ze("FmIcon"), a = Ze("FmTooltip");
|
|
2366
|
-
return
|
|
2366
|
+
return H(), Se(a, {
|
|
2367
2367
|
variant: "plain",
|
|
2368
2368
|
placement: "right",
|
|
2369
2369
|
"z-index": 50
|
|
2370
2370
|
}, {
|
|
2371
|
-
content:
|
|
2372
|
-
ae("div", null,
|
|
2373
|
-
(
|
|
2374
|
-
ae("div", null, "- " +
|
|
2371
|
+
content: ge(() => [
|
|
2372
|
+
ae("div", null, Ce(B(t)("team.memberForm.permissions.inherited")), 1),
|
|
2373
|
+
(H(!0), se(Ee, null, he(e.item.setNames, (c) => (H(), se("div", { key: c }, [
|
|
2374
|
+
ae("div", null, "- " + Ce(c), 1)
|
|
2375
2375
|
]))), 128))
|
|
2376
2376
|
]),
|
|
2377
|
-
default:
|
|
2377
|
+
default: ge(() => [
|
|
2378
2378
|
_e(l, {
|
|
2379
2379
|
name: "admin_panel_settings",
|
|
2380
2380
|
size: "sm",
|
|
@@ -2391,7 +2391,7 @@ const it = /* @__PURE__ */ Ne({
|
|
|
2391
2391
|
}, pr = {
|
|
2392
2392
|
key: 0,
|
|
2393
2393
|
class: "q-mr-xs text-red col"
|
|
2394
|
-
}, hr = { class: "form-input" },
|
|
2394
|
+
}, hr = { class: "form-input" }, gr = /* @__PURE__ */ ye({
|
|
2395
2395
|
__name: "AppForm",
|
|
2396
2396
|
props: {
|
|
2397
2397
|
title: {
|
|
@@ -2409,23 +2409,23 @@ const it = /* @__PURE__ */ Ne({
|
|
|
2409
2409
|
},
|
|
2410
2410
|
setup(e) {
|
|
2411
2411
|
const t = e;
|
|
2412
|
-
return (n, s) => (
|
|
2413
|
-
|
|
2414
|
-
t.title ? (
|
|
2412
|
+
return (n, s) => (H(), se("div", fr, [
|
|
2413
|
+
be(n.$slots, "top", {}, () => [
|
|
2414
|
+
t.title ? (H(), se("div", _r, [
|
|
2415
2415
|
ae("div", null, [
|
|
2416
|
-
t.required ? (
|
|
2417
|
-
|
|
2416
|
+
t.required ? (H(), se("span", pr, "*")) : Oe("", !0),
|
|
2417
|
+
Qn(Ce(t.title), 1)
|
|
2418
2418
|
]),
|
|
2419
|
-
|
|
2419
|
+
be(n.$slots, "title-right")
|
|
2420
2420
|
])) : Oe("", !0)
|
|
2421
2421
|
]),
|
|
2422
2422
|
ae("div", hr, [
|
|
2423
|
-
|
|
2423
|
+
be(n.$slots, "default")
|
|
2424
2424
|
])
|
|
2425
2425
|
]));
|
|
2426
2426
|
}
|
|
2427
2427
|
});
|
|
2428
|
-
function
|
|
2428
|
+
function br(e, t) {
|
|
2429
2429
|
let n = "", s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
2430
2430
|
const l = s.length;
|
|
2431
2431
|
for (let a = 0; a < e; a++)
|
|
@@ -2435,7 +2435,7 @@ function gr(e, t) {
|
|
|
2435
2435
|
const vr = { class: "col flex items-center" }, Ir = {
|
|
2436
2436
|
key: 1,
|
|
2437
2437
|
class: "q-pa-sm form-error-message text-error"
|
|
2438
|
-
},
|
|
2438
|
+
}, zt = /* @__PURE__ */ ye({
|
|
2439
2439
|
__name: "CheckboxInput",
|
|
2440
2440
|
props: {
|
|
2441
2441
|
options: {
|
|
@@ -2493,14 +2493,14 @@ const vr = { class: "col flex items-center" }, Ir = {
|
|
|
2493
2493
|
},
|
|
2494
2494
|
emits: ["update:model-value"],
|
|
2495
2495
|
setup(e, { emit: t }) {
|
|
2496
|
-
const n = e, s = t, { t: l } = _t(), a = Ue(!1), c = qn(),
|
|
2496
|
+
const n = e, s = t, { t: l } = _t(), a = Ue(!1), c = qn(), d = te(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), u = `checkbox-${br(6)}`, p = te(() => d.value !== !0), O = te(
|
|
2497
2497
|
() => n.modelValue.filter((L) => n.options.some((M) => M.value === L))
|
|
2498
|
-
),
|
|
2498
|
+
), A = te(
|
|
2499
2499
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2500
|
-
),
|
|
2500
|
+
), N = te(() => n.options.length > 0 && n.options.length === O.value.length);
|
|
2501
2501
|
function P() {
|
|
2502
2502
|
const L = n.modelValue.filter((M) => !O.value.includes(M));
|
|
2503
|
-
if (
|
|
2503
|
+
if (N.value === !0)
|
|
2504
2504
|
s("update:model-value", L);
|
|
2505
2505
|
else {
|
|
2506
2506
|
const M = n.includeDisabledOptionsWhenSelectAll ? n.options.map((i) => i.value) : n.options.filter((i) => !i.disabled).map((i) => i.value);
|
|
@@ -2509,76 +2509,76 @@ const vr = { class: "col flex items-center" }, Ir = {
|
|
|
2509
2509
|
}
|
|
2510
2510
|
function V(L, M) {
|
|
2511
2511
|
let i = ut(n.modelValue);
|
|
2512
|
-
M ? i.every((
|
|
2512
|
+
M ? i.every((m) => m !== L) && i.push(L) : i = i.filter((m) => m !== L), s("update:model-value", i);
|
|
2513
2513
|
}
|
|
2514
2514
|
return (L, M) => {
|
|
2515
2515
|
const i = Ze("FmCheckbox");
|
|
2516
|
-
return
|
|
2516
|
+
return H(), Se(gr, {
|
|
2517
2517
|
id: u,
|
|
2518
2518
|
title: e.title,
|
|
2519
2519
|
required: !1
|
|
2520
2520
|
}, {
|
|
2521
|
-
top:
|
|
2522
|
-
|
|
2521
|
+
top: ge(() => [
|
|
2522
|
+
be(L.$slots, "top")
|
|
2523
2523
|
]),
|
|
2524
|
-
default:
|
|
2525
|
-
n.showAllToggle ? (
|
|
2524
|
+
default: ge(() => [
|
|
2525
|
+
n.showAllToggle ? (H(), Se(i, {
|
|
2526
2526
|
key: 0,
|
|
2527
|
-
"model-value":
|
|
2527
|
+
"model-value": N.value,
|
|
2528
2528
|
disabled: e.disable,
|
|
2529
|
-
label:
|
|
2529
|
+
label: A.value,
|
|
2530
2530
|
style: ct(`margin-bottom: ${n.gutter}px`),
|
|
2531
2531
|
size: "sm",
|
|
2532
2532
|
dense: "",
|
|
2533
|
-
value:
|
|
2533
|
+
value: A.value,
|
|
2534
2534
|
"onUpdate:modelValue": P
|
|
2535
2535
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Oe("", !0),
|
|
2536
|
-
(
|
|
2537
|
-
key:
|
|
2538
|
-
style: ct(`margin-bottom: ${
|
|
2539
|
-
class: qe(
|
|
2536
|
+
(H(!0), se(Ee, null, he(e.options, (m, y) => (H(), se("div", {
|
|
2537
|
+
key: m.value,
|
|
2538
|
+
style: ct(`margin-bottom: ${y < e.options.length - 1 ? n.gutter : 0}px`),
|
|
2539
|
+
class: qe(y < e.options.length - 1 ? "q-mb-sm" : "")
|
|
2540
2540
|
}, [
|
|
2541
2541
|
ae("div", {
|
|
2542
2542
|
class: qe(["row justify-between", e.alignCenter ? "items-center" : "items-start"])
|
|
2543
2543
|
}, [
|
|
2544
2544
|
ae("div", vr, [
|
|
2545
2545
|
_e(i, {
|
|
2546
|
-
"model-value": e.modelValue.includes(
|
|
2547
|
-
disabled: e.disable ||
|
|
2546
|
+
"model-value": e.modelValue.includes(m.value),
|
|
2547
|
+
disabled: e.disable || m.disabled,
|
|
2548
2548
|
size: "sm",
|
|
2549
|
-
label:
|
|
2550
|
-
value:
|
|
2551
|
-
"onUpdate:modelValue": (_) => V(
|
|
2549
|
+
label: m.label,
|
|
2550
|
+
value: m.label,
|
|
2551
|
+
"onUpdate:modelValue": (_) => V(m.value, _)
|
|
2552
2552
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
2553
|
-
|
|
2554
|
-
option:
|
|
2555
|
-
selected: e.modelValue.includes(
|
|
2553
|
+
be(L.$slots, `checkbox-${m.key || m.value}-append`, {
|
|
2554
|
+
option: m,
|
|
2555
|
+
selected: e.modelValue.includes(m.value)
|
|
2556
2556
|
})
|
|
2557
2557
|
]),
|
|
2558
|
-
B(c)[`checkbox-${
|
|
2558
|
+
B(c)[`checkbox-${m.key || m.value}-end`] && (e.modelValue.includes(m.value) || e.falsyShowSlot) ? (H(), se("div", {
|
|
2559
2559
|
key: 0,
|
|
2560
|
-
class: qe([{ "q-checkbox disabled": e.disable ||
|
|
2560
|
+
class: qe([{ "q-checkbox disabled": e.disable || m.disabled }, "col"])
|
|
2561
2561
|
}, [
|
|
2562
|
-
|
|
2563
|
-
option:
|
|
2564
|
-
value: e.modelValue.includes(
|
|
2565
|
-
disable: e.disable ||
|
|
2562
|
+
be(L.$slots, `checkbox-${m.key || m.value}-end`, {
|
|
2563
|
+
option: m,
|
|
2564
|
+
value: e.modelValue.includes(m.value),
|
|
2565
|
+
disable: e.disable || m.disabled
|
|
2566
2566
|
})
|
|
2567
2567
|
], 2)) : Oe("", !0)
|
|
2568
2568
|
], 2),
|
|
2569
|
-
B(c)[`checkbox-${
|
|
2569
|
+
B(c)[`checkbox-${m.key || m.value}-bottom`] && (e.modelValue.includes(m.value) || e.falsyShowSlot) ? (H(), se("div", {
|
|
2570
2570
|
key: 0,
|
|
2571
|
-
class: qe(["q-mt-sm", { "q-checkbox disabled": e.disable ||
|
|
2571
|
+
class: qe(["q-mt-sm", { "q-checkbox disabled": e.disable || m.disabled }]),
|
|
2572
2572
|
style: ct(`margin-left: ${e.bottomSlotIndent}`)
|
|
2573
2573
|
}, [
|
|
2574
|
-
|
|
2575
|
-
option:
|
|
2576
|
-
disable: e.disable ||
|
|
2577
|
-
value: e.modelValue.includes(
|
|
2574
|
+
be(L.$slots, `checkbox-${m.key || m.value}-bottom`, {
|
|
2575
|
+
option: m,
|
|
2576
|
+
disable: e.disable || m.disabled,
|
|
2577
|
+
value: e.modelValue.includes(m.value)
|
|
2578
2578
|
})
|
|
2579
2579
|
], 6)) : Oe("", !0)
|
|
2580
2580
|
], 6))), 128)),
|
|
2581
|
-
a.value && p.value ? (
|
|
2581
|
+
a.value && p.value ? (H(), se("div", Ir, Ce(d.value), 1)) : Oe("", !0)
|
|
2582
2582
|
]),
|
|
2583
2583
|
_: 3
|
|
2584
2584
|
}, 8, ["title"]);
|
|
@@ -2586,11 +2586,11 @@ const vr = { class: "col flex items-center" }, Ir = {
|
|
|
2586
2586
|
}
|
|
2587
2587
|
});
|
|
2588
2588
|
function Ln(e, t, n) {
|
|
2589
|
-
const s = n.filter((
|
|
2589
|
+
const s = n.filter((d) => d !== "manage");
|
|
2590
2590
|
if (s.length === 0) return;
|
|
2591
|
-
const l = e.findIndex((
|
|
2591
|
+
const l = e.findIndex((d) => d.subject === t && !d.inverted);
|
|
2592
2592
|
if (l < 0) return;
|
|
2593
|
-
const a = new Set(e[l].actions), c = s.every((
|
|
2593
|
+
const a = new Set(e[l].actions), c = s.every((d) => a.has(d));
|
|
2594
2594
|
c && !a.has("manage") ? (a.add("manage"), e[l] = {
|
|
2595
2595
|
...e[l],
|
|
2596
2596
|
actions: Array.from(a)
|
|
@@ -2599,61 +2599,61 @@ function Ln(e, t, n) {
|
|
|
2599
2599
|
actions: Array.from(a)
|
|
2600
2600
|
});
|
|
2601
2601
|
}
|
|
2602
|
-
const
|
|
2602
|
+
const Rn = Object.values(us);
|
|
2603
2603
|
function Er(e, t, n, s) {
|
|
2604
2604
|
const { getFlagValue: l, getFlag: a } = cs(), c = te(() => {
|
|
2605
|
-
var
|
|
2605
|
+
var C;
|
|
2606
2606
|
const v = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map();
|
|
2607
|
-
for (const
|
|
2608
|
-
const x =
|
|
2609
|
-
x && (n.value.includes(
|
|
2607
|
+
for (const R of t.value) {
|
|
2608
|
+
const x = R.category;
|
|
2609
|
+
x && (n.value.includes(R.subject) || R.showByFeatureFlag && ((C = a(R.showByFeatureFlag)) == null ? void 0 : C.enabled) === !1 && l(R.showByFeatureFlag) === "true" || (v.has(x) || v.set(x, []), v.get(x).push({ label: R.label, value: R.subject }), h.set(R.subject, R)));
|
|
2610
2610
|
}
|
|
2611
|
-
return [...v.keys()].sort((
|
|
2612
|
-
const W =
|
|
2613
|
-
return W === -1 && D === -1 ?
|
|
2614
|
-
}).map((
|
|
2615
|
-
const x = v.get(
|
|
2616
|
-
for (const
|
|
2617
|
-
const
|
|
2618
|
-
|
|
2611
|
+
return [...v.keys()].sort((R, x) => {
|
|
2612
|
+
const W = Rn.indexOf(R), D = Rn.indexOf(x);
|
|
2613
|
+
return W === -1 && D === -1 ? R.localeCompare(x) : W === -1 ? 1 : D === -1 ? -1 : W - D;
|
|
2614
|
+
}).map((R) => {
|
|
2615
|
+
const x = v.get(R), W = /* @__PURE__ */ new Map();
|
|
2616
|
+
for (const Y of x) {
|
|
2617
|
+
const z = h.get(Y.value);
|
|
2618
|
+
z && W.set(Y.value, z.actions);
|
|
2619
2619
|
}
|
|
2620
|
-
const D = x.some((
|
|
2621
|
-
const
|
|
2622
|
-
return
|
|
2623
|
-
}),
|
|
2620
|
+
const D = x.some((Y) => {
|
|
2621
|
+
const z = W.get(Y.value);
|
|
2622
|
+
return z && z.length > 1;
|
|
2623
|
+
}), k = D ? [
|
|
2624
2624
|
...new Set(
|
|
2625
|
-
x.flatMap((
|
|
2625
|
+
x.flatMap((Y) => W.get(Y.value) ?? []).filter((Y) => Y !== "manage")
|
|
2626
2626
|
)
|
|
2627
|
-
] : [],
|
|
2628
|
-
for (const
|
|
2629
|
-
x.some((
|
|
2630
|
-
const
|
|
2631
|
-
(
|
|
2632
|
-
).map((
|
|
2633
|
-
var
|
|
2634
|
-
return (
|
|
2635
|
-
}), j = (G == null ? void 0 : G.value) ?? null, ne = j ?
|
|
2627
|
+
] : [], T = /* @__PURE__ */ new Map();
|
|
2628
|
+
for (const Y of e.value)
|
|
2629
|
+
x.some((z) => z.value === Y.subject) && !Y.inverted && T.set(Y.subject, new Set(Y.actions));
|
|
2630
|
+
const X = D ? e.value.filter(
|
|
2631
|
+
(Y) => x.some((z) => z.value === Y.subject) && !Y.inverted && Y.actions.includes("manage")
|
|
2632
|
+
).map((Y) => Y.subject) : e.value.filter((Y) => x.some((z) => z.value === Y.subject) && !Y.inverted).map((Y) => Y.subject), G = x.find((Y) => {
|
|
2633
|
+
var z;
|
|
2634
|
+
return (z = h.get(Y.value)) == null ? void 0 : z.isCategoryCover;
|
|
2635
|
+
}), j = (G == null ? void 0 : G.value) ?? null, ne = j ? T.get(j) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), $ = ne.has("manage");
|
|
2636
2636
|
return {
|
|
2637
|
-
category:
|
|
2637
|
+
category: R,
|
|
2638
2638
|
options: x,
|
|
2639
|
-
selectedSubjects:
|
|
2639
|
+
selectedSubjects: X,
|
|
2640
2640
|
isMultiAction: D,
|
|
2641
|
-
actionColumns:
|
|
2641
|
+
actionColumns: k,
|
|
2642
2642
|
permissionActionsMap: W,
|
|
2643
|
-
selectedActionsMap:
|
|
2643
|
+
selectedActionsMap: T,
|
|
2644
2644
|
coverSubject: j,
|
|
2645
2645
|
coverSelectedActions: ne,
|
|
2646
|
-
coverCoversAll:
|
|
2646
|
+
coverCoversAll: $
|
|
2647
2647
|
};
|
|
2648
2648
|
});
|
|
2649
2649
|
});
|
|
2650
|
-
function
|
|
2651
|
-
var
|
|
2652
|
-
const E = ((
|
|
2650
|
+
function d(v, h) {
|
|
2651
|
+
var C;
|
|
2652
|
+
const E = ((C = c.value.find((R) => R.category === v)) == null ? void 0 : C.options) ?? [];
|
|
2653
2653
|
s("update:model-value", [
|
|
2654
|
-
...e.value.filter((
|
|
2655
|
-
...t.value.filter((
|
|
2656
|
-
({ category:
|
|
2654
|
+
...e.value.filter((R) => !E.some((x) => x.value === R.subject)),
|
|
2655
|
+
...t.value.filter((R) => h.includes(R.subject)).map(
|
|
2656
|
+
({ category: R, showByFeatureFlag: x, isCategoryCover: W, ...D }) => D
|
|
2657
2657
|
)
|
|
2658
2658
|
]);
|
|
2659
2659
|
}
|
|
@@ -2662,13 +2662,13 @@ function Er(e, t, n, s) {
|
|
|
2662
2662
|
}
|
|
2663
2663
|
function p(v) {
|
|
2664
2664
|
const h = e.value.filter(
|
|
2665
|
-
(E) => !v.options.some((
|
|
2665
|
+
(E) => !v.options.some((C) => C.value === E.subject)
|
|
2666
2666
|
);
|
|
2667
2667
|
if (u(v))
|
|
2668
2668
|
s("update:model-value", h);
|
|
2669
2669
|
else {
|
|
2670
|
-
const E = t.value.filter((
|
|
2671
|
-
({ category:
|
|
2670
|
+
const E = t.value.filter((C) => v.options.some((R) => R.value === C.subject)).map(
|
|
2671
|
+
({ category: C, showByFeatureFlag: R, isCategoryCover: x, ...W }) => W
|
|
2672
2672
|
);
|
|
2673
2673
|
s("update:model-value", [...h, ...E]);
|
|
2674
2674
|
}
|
|
@@ -2677,40 +2677,40 @@ function Er(e, t, n, s) {
|
|
|
2677
2677
|
const E = v.selectedActionsMap.get(h);
|
|
2678
2678
|
return E ? E.has("manage") : !1;
|
|
2679
2679
|
}
|
|
2680
|
-
function
|
|
2680
|
+
function A(v, h) {
|
|
2681
2681
|
const E = v.permissionActionsMap.get(h);
|
|
2682
2682
|
if (!E) return !1;
|
|
2683
|
-
const
|
|
2684
|
-
if (
|
|
2685
|
-
const
|
|
2686
|
-
if (!
|
|
2687
|
-
const x =
|
|
2688
|
-
return x.length > 0 && x.length <
|
|
2689
|
-
}
|
|
2690
|
-
function
|
|
2683
|
+
const C = E.filter((W) => W !== "manage");
|
|
2684
|
+
if (C.length === 0) return !1;
|
|
2685
|
+
const R = v.selectedActionsMap.get(h);
|
|
2686
|
+
if (!R) return !1;
|
|
2687
|
+
const x = C.filter((W) => R.has(W));
|
|
2688
|
+
return x.length > 0 && x.length < C.length;
|
|
2689
|
+
}
|
|
2690
|
+
function N(v, h, E) {
|
|
2691
2691
|
if (E) {
|
|
2692
|
-
const
|
|
2693
|
-
if (!
|
|
2692
|
+
const C = t.value.find((T) => T.subject === h);
|
|
2693
|
+
if (!C) return;
|
|
2694
2694
|
const {
|
|
2695
|
-
category:
|
|
2695
|
+
category: R,
|
|
2696
2696
|
showByFeatureFlag: x,
|
|
2697
2697
|
isCategoryCover: W,
|
|
2698
2698
|
...D
|
|
2699
|
-
} =
|
|
2700
|
-
|
|
2699
|
+
} = C, k = e.value.filter((T) => T.subject !== h);
|
|
2700
|
+
k.push(D), s("update:model-value", k);
|
|
2701
2701
|
} else
|
|
2702
2702
|
s(
|
|
2703
2703
|
"update:model-value",
|
|
2704
|
-
e.value.filter((
|
|
2704
|
+
e.value.filter((C) => C.subject !== h)
|
|
2705
2705
|
);
|
|
2706
2706
|
}
|
|
2707
2707
|
function P(v, h) {
|
|
2708
2708
|
const E = v.permissionActionsMap.get(h);
|
|
2709
|
-
return E ? E.some((
|
|
2709
|
+
return E ? E.some((C) => C !== "manage") : !1;
|
|
2710
2710
|
}
|
|
2711
2711
|
function V(v, h, E) {
|
|
2712
|
-
const
|
|
2713
|
-
return
|
|
2712
|
+
const C = v.selectedActionsMap.get(h);
|
|
2713
|
+
return C ? C.has(E) : !1;
|
|
2714
2714
|
}
|
|
2715
2715
|
function L(v, h) {
|
|
2716
2716
|
return !v.coverSubject || h === v.coverSubject ? !1 : v.coverCoversAll;
|
|
@@ -2719,117 +2719,117 @@ function Er(e, t, n, s) {
|
|
|
2719
2719
|
return !v.coverSubject || h === v.coverSubject ? !1 : v.coverCoversAll ? !0 : v.coverSelectedActions.has(E);
|
|
2720
2720
|
}
|
|
2721
2721
|
function i(v, h, E) {
|
|
2722
|
-
const
|
|
2723
|
-
return
|
|
2722
|
+
const C = v.permissionActionsMap.get(h);
|
|
2723
|
+
return C ? C.includes(E) : !1;
|
|
2724
2724
|
}
|
|
2725
|
-
function
|
|
2726
|
-
const
|
|
2725
|
+
function m(v, h, E) {
|
|
2726
|
+
const C = [...e.value], R = C.findIndex((W) => W.subject === v && !W.inverted);
|
|
2727
2727
|
if (E)
|
|
2728
|
-
if (
|
|
2729
|
-
const W = { ...
|
|
2730
|
-
D.add(h), W.actions = Array.from(D),
|
|
2728
|
+
if (R >= 0) {
|
|
2729
|
+
const W = { ...C[R] }, D = new Set(W.actions);
|
|
2730
|
+
D.add(h), W.actions = Array.from(D), C[R] = W;
|
|
2731
2731
|
} else {
|
|
2732
2732
|
const W = t.value.find((G) => G.subject === v);
|
|
2733
2733
|
if (!W) return;
|
|
2734
2734
|
const {
|
|
2735
2735
|
category: D,
|
|
2736
|
-
showByFeatureFlag:
|
|
2737
|
-
isCategoryCover:
|
|
2738
|
-
...
|
|
2736
|
+
showByFeatureFlag: k,
|
|
2737
|
+
isCategoryCover: T,
|
|
2738
|
+
...X
|
|
2739
2739
|
} = W;
|
|
2740
|
-
|
|
2740
|
+
C.push({ ...X, actions: [h] });
|
|
2741
2741
|
}
|
|
2742
|
-
else if (
|
|
2743
|
-
const W = { ...
|
|
2744
|
-
D.length === 0 ?
|
|
2742
|
+
else if (R >= 0) {
|
|
2743
|
+
const W = { ...C[R] }, D = W.actions.filter((k) => k !== h);
|
|
2744
|
+
D.length === 0 ? C.splice(R, 1) : (W.actions = D, C[R] = W);
|
|
2745
2745
|
}
|
|
2746
2746
|
const x = t.value.find((W) => W.subject === v);
|
|
2747
|
-
x && Ln(
|
|
2747
|
+
x && Ln(C, v, x.actions), s("update:model-value", C);
|
|
2748
2748
|
}
|
|
2749
|
-
function
|
|
2749
|
+
function y(v, h) {
|
|
2750
2750
|
const E = v.options.filter(
|
|
2751
|
-
(
|
|
2751
|
+
(C) => i(v, C.value, h)
|
|
2752
2752
|
);
|
|
2753
2753
|
return E.length === 0 ? !1 : E.every(
|
|
2754
|
-
(
|
|
2754
|
+
(C) => V(v, C.value, h) || M(v, C.value, h)
|
|
2755
2755
|
);
|
|
2756
2756
|
}
|
|
2757
2757
|
function _(v, h) {
|
|
2758
2758
|
const E = v.options.filter(
|
|
2759
|
-
(
|
|
2759
|
+
(R) => i(v, R.value, h)
|
|
2760
2760
|
);
|
|
2761
2761
|
if (E.length === 0) return !1;
|
|
2762
|
-
const
|
|
2763
|
-
(
|
|
2762
|
+
const C = E.filter(
|
|
2763
|
+
(R) => V(v, R.value, h) || M(v, R.value, h)
|
|
2764
2764
|
).length;
|
|
2765
|
-
return
|
|
2765
|
+
return C > 0 && C < E.length;
|
|
2766
2766
|
}
|
|
2767
2767
|
function w(v, h, E) {
|
|
2768
|
-
const
|
|
2769
|
-
for (const
|
|
2770
|
-
if (!i(v,
|
|
2771
|
-
const x =
|
|
2772
|
-
(
|
|
2768
|
+
const C = [...e.value];
|
|
2769
|
+
for (const R of v.options) {
|
|
2770
|
+
if (!i(v, R.value, h)) continue;
|
|
2771
|
+
const x = R.value, W = C.findIndex(
|
|
2772
|
+
(k) => k.subject === x && !k.inverted
|
|
2773
2773
|
);
|
|
2774
2774
|
if (E)
|
|
2775
2775
|
if (W >= 0) {
|
|
2776
|
-
const
|
|
2777
|
-
|
|
2776
|
+
const k = { ...C[W] }, T = new Set(k.actions);
|
|
2777
|
+
T.add(h), k.actions = Array.from(T), C[W] = k;
|
|
2778
2778
|
} else {
|
|
2779
|
-
const
|
|
2780
|
-
if (!
|
|
2779
|
+
const k = t.value.find((ne) => ne.subject === x);
|
|
2780
|
+
if (!k) continue;
|
|
2781
2781
|
const {
|
|
2782
|
-
category:
|
|
2783
|
-
showByFeatureFlag:
|
|
2782
|
+
category: T,
|
|
2783
|
+
showByFeatureFlag: X,
|
|
2784
2784
|
isCategoryCover: G,
|
|
2785
2785
|
...j
|
|
2786
|
-
} =
|
|
2787
|
-
|
|
2786
|
+
} = k;
|
|
2787
|
+
C.push({ ...j, actions: [h] });
|
|
2788
2788
|
}
|
|
2789
2789
|
else if (W >= 0) {
|
|
2790
|
-
const
|
|
2791
|
-
|
|
2790
|
+
const k = { ...C[W] }, T = k.actions.filter((X) => X !== h);
|
|
2791
|
+
T.length === 0 ? C.splice(W, 1) : (k.actions = T, C[W] = k);
|
|
2792
2792
|
}
|
|
2793
|
-
const D = t.value.find((
|
|
2794
|
-
D && Ln(
|
|
2793
|
+
const D = t.value.find((k) => k.subject === x);
|
|
2794
|
+
D && Ln(C, x, D.actions);
|
|
2795
2795
|
}
|
|
2796
|
-
s("update:model-value",
|
|
2796
|
+
s("update:model-value", C);
|
|
2797
2797
|
}
|
|
2798
2798
|
const S = {
|
|
2799
2799
|
read: "View",
|
|
2800
2800
|
create: "Duplicate",
|
|
2801
2801
|
update: "Edit"
|
|
2802
2802
|
};
|
|
2803
|
-
function
|
|
2803
|
+
function b(v) {
|
|
2804
2804
|
return S[v] ?? v.charAt(0).toUpperCase() + v.slice(1);
|
|
2805
2805
|
}
|
|
2806
2806
|
return {
|
|
2807
2807
|
categoryGroups: c,
|
|
2808
|
-
toggleCategory:
|
|
2808
|
+
toggleCategory: d,
|
|
2809
2809
|
isAllManageChecked: u,
|
|
2810
2810
|
toggleAllManage: p,
|
|
2811
2811
|
isManageChecked: O,
|
|
2812
|
-
isManageIndeterminate:
|
|
2813
|
-
toggleManage:
|
|
2812
|
+
isManageIndeterminate: A,
|
|
2813
|
+
toggleManage: N,
|
|
2814
2814
|
hasNonManageActions: P,
|
|
2815
2815
|
isActionChecked: V,
|
|
2816
2816
|
isRowFullyCoveredByCover: L,
|
|
2817
2817
|
isActionCoveredByCover: M,
|
|
2818
2818
|
permissionDefinesAction: i,
|
|
2819
|
-
toggleAction:
|
|
2820
|
-
isAllActionChecked:
|
|
2819
|
+
toggleAction: m,
|
|
2820
|
+
isAllActionChecked: y,
|
|
2821
2821
|
isAllActionIndeterminate: _,
|
|
2822
2822
|
toggleAllAction: w,
|
|
2823
|
-
actionLabel:
|
|
2823
|
+
actionLabel: b
|
|
2824
2824
|
};
|
|
2825
2825
|
}
|
|
2826
|
-
const
|
|
2826
|
+
const Nr = { class: "flex flex-col gap-16" }, yr = {
|
|
2827
2827
|
key: 1,
|
|
2828
2828
|
class: "space-y-16"
|
|
2829
|
-
},
|
|
2829
|
+
}, Tr = { class: "flex items-end justify-between" }, kr = { class: "fm-typo-en-title-sm-600" }, Or = { class: "flex" }, Lr = { class: "form-input" }, Rr = { class: "flex items-center justify-between q-mb-xs" }, Ar = { class: "flex shrink-0" }, Cr = { class: "flex items-center justify-between gap-4" }, Sr = { class: "flex items-center min-w-0 flex-1 gap-8" }, Dr = ["title", "onClick"], Mr = {
|
|
2830
2830
|
key: 0,
|
|
2831
2831
|
class: "flex shrink-0"
|
|
2832
|
-
}, wr = /* @__PURE__ */
|
|
2832
|
+
}, wr = /* @__PURE__ */ ye({
|
|
2833
2833
|
__name: "BasePermission",
|
|
2834
2834
|
props: {
|
|
2835
2835
|
modelValue: {
|
|
@@ -2854,47 +2854,47 @@ const yr = { class: "flex flex-col gap-16" }, Nr = {
|
|
|
2854
2854
|
const n = e, s = t, l = te(() => [...Dt, ...n.additionalPermissions]), {
|
|
2855
2855
|
categoryGroups: a,
|
|
2856
2856
|
toggleCategory: c,
|
|
2857
|
-
isAllManageChecked:
|
|
2857
|
+
isAllManageChecked: d,
|
|
2858
2858
|
toggleAllManage: u,
|
|
2859
2859
|
isManageChecked: p,
|
|
2860
2860
|
isManageIndeterminate: O,
|
|
2861
|
-
toggleManage:
|
|
2862
|
-
hasNonManageActions:
|
|
2861
|
+
toggleManage: A,
|
|
2862
|
+
hasNonManageActions: N,
|
|
2863
2863
|
isActionChecked: P,
|
|
2864
2864
|
isRowFullyCoveredByCover: V,
|
|
2865
2865
|
isActionCoveredByCover: L,
|
|
2866
2866
|
permissionDefinesAction: M,
|
|
2867
2867
|
toggleAction: i,
|
|
2868
|
-
isAllActionChecked:
|
|
2869
|
-
isAllActionIndeterminate:
|
|
2868
|
+
isAllActionChecked: m,
|
|
2869
|
+
isAllActionIndeterminate: y,
|
|
2870
2870
|
toggleAllAction: _,
|
|
2871
2871
|
actionLabel: w
|
|
2872
2872
|
} = Er(
|
|
2873
|
-
|
|
2873
|
+
Qt(n, "modelValue"),
|
|
2874
2874
|
l,
|
|
2875
|
-
|
|
2876
|
-
(S,
|
|
2875
|
+
Qt(n, "excludedSubjects"),
|
|
2876
|
+
(S, b) => s("update:model-value", b)
|
|
2877
2877
|
);
|
|
2878
|
-
return (S,
|
|
2878
|
+
return (S, b) => {
|
|
2879
2879
|
const v = Ze("FmCheckbox");
|
|
2880
|
-
return
|
|
2881
|
-
(
|
|
2880
|
+
return H(), se("div", Nr, [
|
|
2881
|
+
(H(!0), se(Ee, null, he(B(a), (h) => (H(), se(Ee, {
|
|
2882
2882
|
key: h.category
|
|
2883
2883
|
}, [
|
|
2884
|
-
h.isMultiAction ? (
|
|
2885
|
-
ae("div",
|
|
2886
|
-
ae("div",
|
|
2884
|
+
h.isMultiAction ? (H(), se("div", yr, [
|
|
2885
|
+
ae("div", Tr, [
|
|
2886
|
+
ae("div", kr, Ce(h.category), 1),
|
|
2887
2887
|
ae("div", Or, [
|
|
2888
|
-
(
|
|
2888
|
+
(H(!0), se(Ee, null, he(h.actionColumns, (E) => (H(), se("span", {
|
|
2889
2889
|
key: E,
|
|
2890
2890
|
class: "w-[56px] text-center fm-typo-en-body-sm-400 text-fm-color-neutral-gray-600"
|
|
2891
|
-
},
|
|
2891
|
+
}, Ce(B(w)(E)), 1))), 128))
|
|
2892
2892
|
])
|
|
2893
2893
|
]),
|
|
2894
2894
|
ae("div", Lr, [
|
|
2895
|
-
ae("div",
|
|
2895
|
+
ae("div", Rr, [
|
|
2896
2896
|
_e(v, {
|
|
2897
|
-
"model-value": B(
|
|
2897
|
+
"model-value": B(d)(h),
|
|
2898
2898
|
value: !0,
|
|
2899
2899
|
disabled: e.disable,
|
|
2900
2900
|
label: "All",
|
|
@@ -2902,28 +2902,28 @@ const yr = { class: "flex flex-col gap-16" }, Nr = {
|
|
|
2902
2902
|
dense: "",
|
|
2903
2903
|
"onUpdate:modelValue": (E) => B(u)(h)
|
|
2904
2904
|
}, null, 8, ["model-value", "disabled", "onUpdate:modelValue"]),
|
|
2905
|
-
ae("div",
|
|
2906
|
-
(
|
|
2905
|
+
ae("div", Ar, [
|
|
2906
|
+
(H(!0), se(Ee, null, he(h.actionColumns, (E) => (H(), se("div", {
|
|
2907
2907
|
key: E,
|
|
2908
2908
|
class: "w-[56px] flex justify-center"
|
|
2909
2909
|
}, [
|
|
2910
2910
|
_e(v, {
|
|
2911
|
-
"model-value": B(
|
|
2912
|
-
indeterminate: B(
|
|
2911
|
+
"model-value": B(m)(h, E),
|
|
2912
|
+
indeterminate: B(y)(h, E),
|
|
2913
2913
|
value: E,
|
|
2914
2914
|
disabled: e.disable,
|
|
2915
2915
|
size: "sm",
|
|
2916
2916
|
dense: "",
|
|
2917
|
-
"onUpdate:modelValue": (
|
|
2917
|
+
"onUpdate:modelValue": (C) => B(_)(h, E, C)
|
|
2918
2918
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2919
2919
|
]))), 128))
|
|
2920
2920
|
])
|
|
2921
2921
|
]),
|
|
2922
|
-
(
|
|
2922
|
+
(H(!0), se(Ee, null, he(h.options, (E, C) => (H(), se("div", {
|
|
2923
2923
|
key: E.value,
|
|
2924
|
-
class: qe(
|
|
2924
|
+
class: qe(C < h.options.length - 1 ? "q-mb-xs" : "")
|
|
2925
2925
|
}, [
|
|
2926
|
-
ae("div",
|
|
2926
|
+
ae("div", Cr, [
|
|
2927
2927
|
ae("div", Sr, [
|
|
2928
2928
|
_e(v, {
|
|
2929
2929
|
"model-value": B(p)(h, E.value) || B(V)(h, E.value),
|
|
@@ -2932,34 +2932,34 @@ const yr = { class: "flex flex-col gap-16" }, Nr = {
|
|
|
2932
2932
|
indeterminate: B(O)(h, E.value),
|
|
2933
2933
|
size: "sm",
|
|
2934
2934
|
class: "shrink-0",
|
|
2935
|
-
"onUpdate:modelValue": (
|
|
2935
|
+
"onUpdate:modelValue": (R) => B(A)(h, E.value, R)
|
|
2936
2936
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"]),
|
|
2937
2937
|
ae("span", {
|
|
2938
2938
|
class: "block truncate cursor-pointer",
|
|
2939
2939
|
title: E.label,
|
|
2940
|
-
onClick: (
|
|
2941
|
-
},
|
|
2942
|
-
|
|
2940
|
+
onClick: (R) => !e.disable && !B(V)(h, E.value) && B(A)(h, E.value, !B(p)(h, E.value))
|
|
2941
|
+
}, Ce(E.label), 9, Dr),
|
|
2942
|
+
be(S.$slots, `checkbox-${E.value}-append`, { option: E })
|
|
2943
2943
|
]),
|
|
2944
|
-
B(
|
|
2945
|
-
(
|
|
2946
|
-
key:
|
|
2944
|
+
B(N)(h, E.value) ? (H(), se("div", Mr, [
|
|
2945
|
+
(H(!0), se(Ee, null, he(h.actionColumns, (R) => (H(), se("div", {
|
|
2946
|
+
key: R,
|
|
2947
2947
|
class: "w-[56px] flex justify-center"
|
|
2948
2948
|
}, [
|
|
2949
|
-
B(M)(h, E.value,
|
|
2949
|
+
B(M)(h, E.value, R) ? (H(), Se(v, {
|
|
2950
2950
|
key: 0,
|
|
2951
|
-
"model-value": B(P)(h, E.value,
|
|
2952
|
-
value:
|
|
2953
|
-
disabled: e.disable || B(L)(h, E.value,
|
|
2951
|
+
"model-value": B(P)(h, E.value, R) || B(L)(h, E.value, R),
|
|
2952
|
+
value: R,
|
|
2953
|
+
disabled: e.disable || B(L)(h, E.value, R),
|
|
2954
2954
|
size: "sm",
|
|
2955
|
-
"onUpdate:modelValue": (x) => B(i)(E.value,
|
|
2955
|
+
"onUpdate:modelValue": (x) => B(i)(E.value, R, x)
|
|
2956
2956
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Oe("", !0)
|
|
2957
2957
|
]))), 128))
|
|
2958
2958
|
])) : Oe("", !0)
|
|
2959
2959
|
])
|
|
2960
2960
|
], 2))), 128))
|
|
2961
2961
|
])
|
|
2962
|
-
])) : (
|
|
2962
|
+
])) : (H(), Se(zt, {
|
|
2963
2963
|
key: 0,
|
|
2964
2964
|
"model-value": h.selectedSubjects,
|
|
2965
2965
|
options: h.options,
|
|
@@ -2969,8 +2969,8 @@ const yr = { class: "flex flex-col gap-16" }, Nr = {
|
|
|
2969
2969
|
}, Fe({ _: 2 }, [
|
|
2970
2970
|
he(h.options, (E) => ({
|
|
2971
2971
|
name: `checkbox-${E.value}-append`,
|
|
2972
|
-
fn:
|
|
2973
|
-
|
|
2972
|
+
fn: ge(({ option: C }) => [
|
|
2973
|
+
be(S.$slots, `checkbox-${E.value}-append`, { option: C })
|
|
2974
2974
|
])
|
|
2975
2975
|
}))
|
|
2976
2976
|
]), 1032, ["model-value", "options", "disable", "title", "onUpdate:modelValue"]))
|
|
@@ -2978,7 +2978,7 @@ const yr = { class: "flex flex-col gap-16" }, Nr = {
|
|
|
2978
2978
|
]);
|
|
2979
2979
|
};
|
|
2980
2980
|
}
|
|
2981
|
-
}), Pr = { class: "flex items-center" }, Fr = { class: "ml-auto" }, jr = /* @__PURE__ */
|
|
2981
|
+
}), Pr = { class: "flex items-center" }, Fr = { class: "ml-auto" }, jr = /* @__PURE__ */ ye({
|
|
2982
2982
|
__name: "CollapsibleWrapper",
|
|
2983
2983
|
props: {
|
|
2984
2984
|
title: { default: "" },
|
|
@@ -2990,21 +2990,21 @@ const yr = { class: "flex flex-col gap-16" }, Nr = {
|
|
|
2990
2990
|
function c() {
|
|
2991
2991
|
n.value = !n.value;
|
|
2992
2992
|
}
|
|
2993
|
-
function
|
|
2993
|
+
function d() {
|
|
2994
2994
|
s.value && (l.value = s.value.scrollHeight);
|
|
2995
2995
|
}
|
|
2996
|
-
return
|
|
2996
|
+
return Yt(async () => {
|
|
2997
2997
|
await es(), s.value && (a = new ResizeObserver(() => {
|
|
2998
|
-
|
|
2998
|
+
d();
|
|
2999
2999
|
}), a.observe(s.value));
|
|
3000
|
-
}),
|
|
3000
|
+
}), Cn(() => {
|
|
3001
3001
|
a == null || a.disconnect();
|
|
3002
3002
|
}), (u, p) => {
|
|
3003
3003
|
const O = Ze("FmButton");
|
|
3004
|
-
return
|
|
3004
|
+
return H(), se(Ee, null, [
|
|
3005
3005
|
ae("div", { onClick: c }, [
|
|
3006
3006
|
ae("div", Pr, [
|
|
3007
|
-
|
|
3007
|
+
be(u.$slots, "title"),
|
|
3008
3008
|
ae("div", Fr, [
|
|
3009
3009
|
_e(O, {
|
|
3010
3010
|
icon: n.value ? "keyboard_arrow_down" : "keyboard_arrow_up",
|
|
@@ -3021,12 +3021,12 @@ const yr = { class: "flex flex-col gap-16" }, Nr = {
|
|
|
3021
3021
|
class: "transition-all duration-300 ease-in-out overflow-hidden",
|
|
3022
3022
|
style: ct({ maxHeight: n.value ? "0" : l.value + "px" })
|
|
3023
3023
|
}, [
|
|
3024
|
-
|
|
3024
|
+
be(u.$slots, "default")
|
|
3025
3025
|
], 4)
|
|
3026
3026
|
], 64);
|
|
3027
3027
|
};
|
|
3028
3028
|
}
|
|
3029
|
-
}), Ur = { class: "fm-typo-en-title-sm-600" },
|
|
3029
|
+
}), Ur = { class: "fm-typo-en-title-sm-600" }, At = "includedFuture", An = /* @__PURE__ */ ye({
|
|
3030
3030
|
__name: "ConditionPermission",
|
|
3031
3031
|
props: {
|
|
3032
3032
|
modelValue: {
|
|
@@ -3051,34 +3051,34 @@ const yr = { class: "flex flex-col gap-16" }, Nr = {
|
|
|
3051
3051
|
const n = e, s = t, { t: l } = _t(), a = te(() => [
|
|
3052
3052
|
{
|
|
3053
3053
|
label: l("team.memberForm.permissions.includedFuture", { context: n.context }),
|
|
3054
|
-
value:
|
|
3054
|
+
value: At,
|
|
3055
3055
|
// Can only be selected if all other options are selected
|
|
3056
3056
|
disable: !!n.modelValue && n.options.length > n.modelValue.length
|
|
3057
3057
|
},
|
|
3058
3058
|
...n.options.filter(
|
|
3059
3059
|
(p) => p.label.toLocaleLowerCase().includes(u.value.toLocaleLowerCase())
|
|
3060
3060
|
)
|
|
3061
|
-
]), c = te(() => n.modelValue ? n.modelValue : [
|
|
3062
|
-
function
|
|
3061
|
+
]), c = te(() => n.modelValue ? n.modelValue : [At, ...n.options.map((p) => p.value)]);
|
|
3062
|
+
function d(p) {
|
|
3063
3063
|
const O = p.length === a.value.length;
|
|
3064
|
-
s("update:model-value", O ? null : p.filter((
|
|
3064
|
+
s("update:model-value", O ? null : p.filter((A) => A !== At));
|
|
3065
3065
|
}
|
|
3066
3066
|
const u = Ue("");
|
|
3067
3067
|
return (p, O) => {
|
|
3068
|
-
const
|
|
3069
|
-
return
|
|
3070
|
-
title:
|
|
3071
|
-
ae("p", Ur,
|
|
3068
|
+
const A = Ze("fm-search");
|
|
3069
|
+
return H(), Se(jr, null, {
|
|
3070
|
+
title: ge(() => [
|
|
3071
|
+
ae("p", Ur, Ce(B(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3072
3072
|
]),
|
|
3073
|
-
default:
|
|
3074
|
-
e.options.length > 1 ? (
|
|
3073
|
+
default: ge(() => [
|
|
3074
|
+
e.options.length > 1 ? (H(), Se(A, {
|
|
3075
3075
|
key: 0,
|
|
3076
3076
|
modelValue: u.value,
|
|
3077
|
-
"onUpdate:modelValue": O[0] || (O[0] = (
|
|
3077
|
+
"onUpdate:modelValue": O[0] || (O[0] = (N) => u.value = N),
|
|
3078
3078
|
class: "mt-16",
|
|
3079
3079
|
placeholder: B(l)("team.memberForm.permissions.search", { context: e.context })
|
|
3080
3080
|
}, null, 8, ["modelValue", "placeholder"])) : Oe("", !0),
|
|
3081
|
-
_e(
|
|
3081
|
+
_e(zt, {
|
|
3082
3082
|
"model-value": c.value,
|
|
3083
3083
|
options: a.value,
|
|
3084
3084
|
"show-intermediate": !1,
|
|
@@ -3087,12 +3087,12 @@ const yr = { class: "flex flex-col gap-16" }, Nr = {
|
|
|
3087
3087
|
"include-disabled-options-when-select-all": !0,
|
|
3088
3088
|
title: "",
|
|
3089
3089
|
class: "mt-16",
|
|
3090
|
-
"onUpdate:modelValue":
|
|
3090
|
+
"onUpdate:modelValue": d
|
|
3091
3091
|
}, Fe({ _: 2 }, [
|
|
3092
|
-
he(a.value, (
|
|
3093
|
-
name: `checkbox-${
|
|
3094
|
-
fn:
|
|
3095
|
-
|
|
3092
|
+
he(a.value, (N) => ({
|
|
3093
|
+
name: `checkbox-${N.value}-append`,
|
|
3094
|
+
fn: ge(({ option: P }) => [
|
|
3095
|
+
be(p.$slots, `checkbox-${N.value}-append`, { option: P })
|
|
3096
3096
|
])
|
|
3097
3097
|
}))
|
|
3098
3098
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3101,7 +3101,7 @@ const yr = { class: "flex flex-col gap-16" }, Nr = {
|
|
|
3101
3101
|
});
|
|
3102
3102
|
};
|
|
3103
3103
|
}
|
|
3104
|
-
}),
|
|
3104
|
+
}), Ct = "includedNewRole", Vr = /* @__PURE__ */ ye({
|
|
3105
3105
|
__name: "PosRolePermission",
|
|
3106
3106
|
props: {
|
|
3107
3107
|
modelValue: {
|
|
@@ -3128,7 +3128,7 @@ const yr = { class: "flex flex-col gap-16" }, Nr = {
|
|
|
3128
3128
|
return [
|
|
3129
3129
|
{
|
|
3130
3130
|
label: l("team.memberForm.permissions.includedNewRole"),
|
|
3131
|
-
value:
|
|
3131
|
+
value: Ct,
|
|
3132
3132
|
disable: !!n.modelValue && n.roles.length > n.modelValue.length
|
|
3133
3133
|
},
|
|
3134
3134
|
...n.roles.map((p) => ({
|
|
@@ -3137,24 +3137,24 @@ const yr = { class: "flex flex-col gap-16" }, Nr = {
|
|
|
3137
3137
|
disable: !!u && p.restaurants.every(({ id: O }) => !u.includes(O))
|
|
3138
3138
|
}))
|
|
3139
3139
|
];
|
|
3140
|
-
}), c = te(() => n.modelValue ? n.modelValue : [
|
|
3141
|
-
function
|
|
3140
|
+
}), c = te(() => n.modelValue ? n.modelValue : [Ct, ...n.roles.map((u) => u._id)]);
|
|
3141
|
+
function d(u) {
|
|
3142
3142
|
const p = u.length === a.value.length;
|
|
3143
|
-
s("update:model-value", p ? null : u.filter((O) => O !==
|
|
3143
|
+
s("update:model-value", p ? null : u.filter((O) => O !== Ct));
|
|
3144
3144
|
}
|
|
3145
|
-
return (u, p) => (
|
|
3145
|
+
return (u, p) => (H(), Se(zt, {
|
|
3146
3146
|
"model-value": c.value,
|
|
3147
3147
|
options: a.value,
|
|
3148
3148
|
"show-intermediate": !1,
|
|
3149
3149
|
"show-all-toggle": !1,
|
|
3150
3150
|
disable: e.disable,
|
|
3151
3151
|
title: B(l)("team.memberForm.permissions.roles"),
|
|
3152
|
-
"onUpdate:modelValue":
|
|
3152
|
+
"onUpdate:modelValue": d
|
|
3153
3153
|
}, Fe({ _: 2 }, [
|
|
3154
3154
|
he(a.value, (O) => ({
|
|
3155
3155
|
name: `checkbox-${O.value}-append`,
|
|
3156
|
-
fn:
|
|
3157
|
-
|
|
3156
|
+
fn: ge(({ option: A }) => [
|
|
3157
|
+
be(u.$slots, `checkbox-${O.value}-append`, { option: A })
|
|
3158
3158
|
])
|
|
3159
3159
|
}))
|
|
3160
3160
|
]), 1032, ["model-value", "options", "disable", "title"]));
|
|
@@ -3163,7 +3163,7 @@ const yr = { class: "flex flex-col gap-16" }, Nr = {
|
|
|
3163
3163
|
async readWarehouses() {
|
|
3164
3164
|
return os(await is().get("/warehouses"));
|
|
3165
3165
|
}
|
|
3166
|
-
}, Gr = { class: "flex flex-col gap-32" }, xr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" },
|
|
3166
|
+
}, Gr = { class: "flex flex-col gap-32" }, xr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Yr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Zr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Xr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, el = /* @__PURE__ */ ye({
|
|
3167
3167
|
__name: "PortalPermissionEditor",
|
|
3168
3168
|
props: /* @__PURE__ */ qt({
|
|
3169
3169
|
disable: {
|
|
@@ -3180,64 +3180,64 @@ const yr = { class: "flex flex-col gap-16" }, Nr = {
|
|
|
3180
3180
|
}),
|
|
3181
3181
|
emits: /* @__PURE__ */ qt(["permissionChanged"], ["update:modelValue"]),
|
|
3182
3182
|
setup(e, { emit: t }) {
|
|
3183
|
-
const n = ts(e, "modelValue"), s = e, l = t, { t: a } = _t(), { fetchCustomReportPermissions: c, customReportPermissions:
|
|
3183
|
+
const n = ts(e, "modelValue"), s = e, l = t, { t: a } = _t(), { fetchCustomReportPermissions: c, customReportPermissions: d } = ss();
|
|
3184
3184
|
function u(D) {
|
|
3185
|
-
return Dt.find((
|
|
3185
|
+
return Dt.find((k) => k.subject === D) ?? d.value.find((k) => k.subject === D);
|
|
3186
3186
|
}
|
|
3187
3187
|
const p = te(() => {
|
|
3188
|
-
const D = [...Dt, ...
|
|
3188
|
+
const D = [...Dt, ...d.value].filter((T) => !P.includes(T.subject)).map((T) => T.subject);
|
|
3189
3189
|
return as(
|
|
3190
|
-
s.inheritPermissions.map((
|
|
3191
|
-
...
|
|
3192
|
-
permissions:
|
|
3190
|
+
s.inheritPermissions.map((T) => ({
|
|
3191
|
+
...T,
|
|
3192
|
+
permissions: T.permissions.filter((X) => D.includes(X.subject))
|
|
3193
3193
|
}))
|
|
3194
|
-
).map((
|
|
3195
|
-
id:
|
|
3196
|
-
setNames:
|
|
3194
|
+
).map((T) => ({
|
|
3195
|
+
id: T.subject,
|
|
3196
|
+
setNames: T.setNames
|
|
3197
3197
|
}));
|
|
3198
3198
|
}), O = te(() => {
|
|
3199
|
-
const D = s.inheritPermissions.map((
|
|
3200
|
-
...
|
|
3201
|
-
permissions:
|
|
3202
|
-
(
|
|
3199
|
+
const D = s.inheritPermissions.map((k) => ({
|
|
3200
|
+
...k,
|
|
3201
|
+
permissions: k.permissions.filter(
|
|
3202
|
+
(T) => T.subject === de.Subject.Business.inventory_stock
|
|
3203
3203
|
)
|
|
3204
3204
|
}));
|
|
3205
|
-
return
|
|
3205
|
+
return yt(
|
|
3206
3206
|
D,
|
|
3207
3207
|
"warehouseId",
|
|
3208
|
-
L.value.map((
|
|
3208
|
+
L.value.map((k) => k._id)
|
|
3209
3209
|
);
|
|
3210
|
-
}),
|
|
3211
|
-
const D = s.inheritPermissions.map((
|
|
3212
|
-
...
|
|
3213
|
-
permissions:
|
|
3214
|
-
(
|
|
3210
|
+
}), A = te(() => {
|
|
3211
|
+
const D = s.inheritPermissions.map((k) => ({
|
|
3212
|
+
...k,
|
|
3213
|
+
permissions: k.permissions.filter(
|
|
3214
|
+
(T) => T.subject === de.Subject.Restaurant.restaurant
|
|
3215
3215
|
)
|
|
3216
3216
|
}));
|
|
3217
|
-
return
|
|
3217
|
+
return yt(
|
|
3218
3218
|
D,
|
|
3219
3219
|
"restaurantId",
|
|
3220
|
-
|
|
3220
|
+
y.value.map((k) => k._id)
|
|
3221
3221
|
);
|
|
3222
|
-
}),
|
|
3223
|
-
const D = s.inheritPermissions.map((
|
|
3224
|
-
...
|
|
3225
|
-
permissions:
|
|
3222
|
+
}), N = te(() => {
|
|
3223
|
+
const D = s.inheritPermissions.map((k) => ({
|
|
3224
|
+
...k,
|
|
3225
|
+
permissions: k.permissions.filter((T) => T.subject === de.Subject.Business.role)
|
|
3226
3226
|
}));
|
|
3227
|
-
return
|
|
3227
|
+
return yt(
|
|
3228
3228
|
D,
|
|
3229
3229
|
"roleId",
|
|
3230
|
-
_.value.map((
|
|
3230
|
+
_.value.map((k) => k._id)
|
|
3231
3231
|
);
|
|
3232
3232
|
}), P = [
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3233
|
+
de.Subject.Business.restaurant,
|
|
3234
|
+
de.Subject.Business.role,
|
|
3235
|
+
de.Subject.Restaurant.restaurant,
|
|
3236
|
+
de.Subject.Business.inventory_stock
|
|
3237
3237
|
], V = te(() => {
|
|
3238
|
-
var
|
|
3239
|
-
const D = (
|
|
3240
|
-
(
|
|
3238
|
+
var k;
|
|
3239
|
+
const D = (k = n.value) == null ? void 0 : k.find(
|
|
3240
|
+
(T) => T.subject === de.Subject.Business.inventory_stock
|
|
3241
3241
|
);
|
|
3242
3242
|
return D ? D.conditions ? JSON.parse(D.conditions).warehouseId.$in : null : [];
|
|
3243
3243
|
}), L = Ue([]), M = te(() => L.value.map((D) => ({
|
|
@@ -3245,158 +3245,158 @@ const yr = { class: "flex flex-col gap-16" }, Nr = {
|
|
|
3245
3245
|
value: D._id
|
|
3246
3246
|
})));
|
|
3247
3247
|
function i(D) {
|
|
3248
|
-
const
|
|
3249
|
-
n.value =
|
|
3248
|
+
const k = m(n.value, D);
|
|
3249
|
+
n.value = k;
|
|
3250
3250
|
}
|
|
3251
|
-
function
|
|
3252
|
-
let
|
|
3253
|
-
D.filter((
|
|
3251
|
+
function m(D, k) {
|
|
3252
|
+
let T = ut(
|
|
3253
|
+
D.filter((X) => X.subject !== de.Subject.Business.inventory_stock)
|
|
3254
3254
|
);
|
|
3255
|
-
if (!
|
|
3256
|
-
const
|
|
3257
|
-
actions: [
|
|
3258
|
-
subject:
|
|
3255
|
+
if (!k || k.length > 0) {
|
|
3256
|
+
const X = {
|
|
3257
|
+
actions: [de.Action.manage],
|
|
3258
|
+
subject: de.Subject.Business.inventory_stock
|
|
3259
3259
|
};
|
|
3260
|
-
|
|
3260
|
+
k && (X.conditions = JSON.stringify({ warehouseId: { $in: k } })), T.push(X);
|
|
3261
3261
|
}
|
|
3262
|
-
return
|
|
3262
|
+
return T;
|
|
3263
3263
|
}
|
|
3264
|
-
const { restaurants:
|
|
3264
|
+
const { restaurants: y } = ns(), _ = ms().roles, w = te(() => y.value.map((D) => ({
|
|
3265
3265
|
label: `${D.profile.code ? D.profile.code + "-" : ""}${D.profile.name}`,
|
|
3266
3266
|
value: D._id
|
|
3267
|
-
}))), S = te(() =>
|
|
3267
|
+
}))), S = te(() => y.value.reduce((D, k) => (D[k._id] = _.value.filter((T) => T.restaurants.some((X) => X.id === k._id)).map((T) => T._id), D), {})), b = te(() => rs(n.value));
|
|
3268
3268
|
function v(D) {
|
|
3269
|
-
const
|
|
3270
|
-
n.value =
|
|
3269
|
+
const k = E(n.value, D);
|
|
3270
|
+
n.value = k;
|
|
3271
3271
|
}
|
|
3272
3272
|
const h = te(() => ls(n.value));
|
|
3273
|
-
function E(D,
|
|
3274
|
-
var
|
|
3275
|
-
let
|
|
3273
|
+
function E(D, k) {
|
|
3274
|
+
var X;
|
|
3275
|
+
let T = ut(
|
|
3276
3276
|
D.filter(
|
|
3277
|
-
(G) => G.subject !==
|
|
3277
|
+
(G) => G.subject !== de.Subject.Business.restaurant && G.subject !== de.Subject.Restaurant.restaurant
|
|
3278
3278
|
)
|
|
3279
3279
|
);
|
|
3280
|
-
if (!
|
|
3280
|
+
if (!k || k.length > 0) {
|
|
3281
3281
|
const {
|
|
3282
3282
|
category: G,
|
|
3283
3283
|
showByFeatureFlag: j,
|
|
3284
3284
|
...ne
|
|
3285
|
-
} =
|
|
3286
|
-
|
|
3287
|
-
const
|
|
3288
|
-
actions: [
|
|
3289
|
-
subject:
|
|
3285
|
+
} = ds.restaurant;
|
|
3286
|
+
T.push(ne);
|
|
3287
|
+
const $ = {
|
|
3288
|
+
actions: [de.Action.manage],
|
|
3289
|
+
subject: de.Subject.Restaurant.restaurant
|
|
3290
3290
|
};
|
|
3291
|
-
|
|
3291
|
+
k && ($.conditions = JSON.stringify({ restaurantId: { $in: k } })), T.push($);
|
|
3292
3292
|
}
|
|
3293
|
-
if (
|
|
3293
|
+
if (k) {
|
|
3294
3294
|
const G = [
|
|
3295
|
-
...new Set(
|
|
3295
|
+
...new Set(k.map((ne) => S.value[ne]).flatMap((ne) => ne))
|
|
3296
3296
|
], j = _.value.map((ne) => ne._id);
|
|
3297
|
-
G.length !== j.length && (
|
|
3298
|
-
|
|
3299
|
-
(
|
|
3297
|
+
G.length !== j.length && (T = R(
|
|
3298
|
+
T,
|
|
3299
|
+
(X = h.value || j) == null ? void 0 : X.filter((ne) => G.includes(ne))
|
|
3300
3300
|
));
|
|
3301
3301
|
}
|
|
3302
|
-
return
|
|
3302
|
+
return T;
|
|
3303
3303
|
}
|
|
3304
|
-
function
|
|
3305
|
-
const
|
|
3306
|
-
n.value =
|
|
3304
|
+
function C(D) {
|
|
3305
|
+
const k = R(n.value, D);
|
|
3306
|
+
n.value = k;
|
|
3307
3307
|
}
|
|
3308
|
-
function
|
|
3309
|
-
let
|
|
3310
|
-
D.filter((
|
|
3308
|
+
function R(D, k) {
|
|
3309
|
+
let T = ut(
|
|
3310
|
+
D.filter((X) => X.subject !== de.Subject.Business.role)
|
|
3311
3311
|
);
|
|
3312
|
-
if (
|
|
3313
|
-
const
|
|
3314
|
-
actions: [
|
|
3315
|
-
subject:
|
|
3316
|
-
conditions: JSON.stringify({ roleId: { $in:
|
|
3312
|
+
if (k && k.length > 0) {
|
|
3313
|
+
const X = {
|
|
3314
|
+
actions: [de.Action.manage],
|
|
3315
|
+
subject: de.Subject.Business.role,
|
|
3316
|
+
conditions: JSON.stringify({ roleId: { $in: k } })
|
|
3317
3317
|
};
|
|
3318
|
-
|
|
3318
|
+
T.push(X);
|
|
3319
3319
|
}
|
|
3320
|
-
return
|
|
3320
|
+
return T;
|
|
3321
3321
|
}
|
|
3322
|
-
|
|
3322
|
+
Yt(async () => {
|
|
3323
3323
|
await Promise.all([
|
|
3324
3324
|
Wr.readWarehouses().then((D) => L.value = D),
|
|
3325
3325
|
c()
|
|
3326
3326
|
]);
|
|
3327
3327
|
});
|
|
3328
|
-
const x = te(() =>
|
|
3328
|
+
const x = te(() => Tt(
|
|
3329
3329
|
n.value,
|
|
3330
|
-
|
|
3331
|
-
).filter((
|
|
3332
|
-
const
|
|
3333
|
-
return (
|
|
3334
|
-
}).map((
|
|
3335
|
-
if (
|
|
3336
|
-
const
|
|
3337
|
-
if (!
|
|
3338
|
-
const G = u(
|
|
3339
|
-
if (!G) return
|
|
3330
|
+
kt
|
|
3331
|
+
).filter((T) => {
|
|
3332
|
+
const X = T.source;
|
|
3333
|
+
return (X == null ? void 0 : X.type) !== "systemPermissionSet" ? !0 : T.actions.includes("manage");
|
|
3334
|
+
}).map((T) => {
|
|
3335
|
+
if (T.inverted) return T;
|
|
3336
|
+
const X = T.actions;
|
|
3337
|
+
if (!X.includes("manage")) return T;
|
|
3338
|
+
const G = u(T.subject);
|
|
3339
|
+
if (!G) return T;
|
|
3340
3340
|
const j = G.actions;
|
|
3341
|
-
return j.length <= 1 || j.filter((
|
|
3341
|
+
return j.length <= 1 || j.filter(($) => !X.includes($)).length === 0 ? T : { ...T, actions: [...j] };
|
|
3342
3342
|
}));
|
|
3343
3343
|
function W(D) {
|
|
3344
|
-
const
|
|
3344
|
+
const k = new Set(
|
|
3345
3345
|
x.value.filter((j) => !j.inverted).map((j) => j.subject)
|
|
3346
|
-
),
|
|
3346
|
+
), T = new Set(
|
|
3347
3347
|
D.filter((j) => !j.inverted).map((j) => j.subject)
|
|
3348
|
-
),
|
|
3348
|
+
), X = new Set(
|
|
3349
3349
|
n.value.filter((j) => !j.inverted).map((j) => j.subject)
|
|
3350
3350
|
);
|
|
3351
3351
|
let G = [...n.value];
|
|
3352
|
-
for (const j of
|
|
3353
|
-
|
|
3352
|
+
for (const j of k)
|
|
3353
|
+
T.has(j) || (X.has(j) && (G = G.filter(($) => $.subject !== j)), (!X.has(j) || Tt(
|
|
3354
3354
|
G,
|
|
3355
|
-
|
|
3355
|
+
kt
|
|
3356
3356
|
).some(
|
|
3357
|
-
(
|
|
3358
|
-
)) && !G.some((
|
|
3359
|
-
for (const j of
|
|
3360
|
-
if (!
|
|
3361
|
-
const ne = G.some((
|
|
3362
|
-
if (G = G.filter((
|
|
3363
|
-
const
|
|
3364
|
-
(
|
|
3365
|
-
),
|
|
3366
|
-
if (
|
|
3367
|
-
const { category:
|
|
3368
|
-
G.push({ ...re, actions:
|
|
3357
|
+
($) => $.subject === j && !$.inverted && $.actions.includes("manage")
|
|
3358
|
+
)) && !G.some(($) => $.subject === j && $.inverted) && G.push({ subject: j, actions: ["manage"], inverted: !0 }));
|
|
3359
|
+
for (const j of T)
|
|
3360
|
+
if (!k.has(j)) {
|
|
3361
|
+
const ne = G.some(($) => $.subject === j && $.inverted);
|
|
3362
|
+
if (G = G.filter(($) => !($.subject === j && $.inverted)), !ne && !X.has(j)) {
|
|
3363
|
+
const $ = D.find(
|
|
3364
|
+
(z) => z.subject === j && !z.inverted
|
|
3365
|
+
), Y = u(j);
|
|
3366
|
+
if (Y && $) {
|
|
3367
|
+
const { category: z, showByFeatureFlag: we, ...re } = Y;
|
|
3368
|
+
G.push({ ...re, actions: $.actions });
|
|
3369
3369
|
}
|
|
3370
3370
|
}
|
|
3371
3371
|
}
|
|
3372
|
-
for (const j of
|
|
3373
|
-
if (!
|
|
3372
|
+
for (const j of T) {
|
|
3373
|
+
if (!k.has(j)) continue;
|
|
3374
3374
|
const ne = x.value.find(
|
|
3375
3375
|
(re) => re.subject === j && !re.inverted
|
|
3376
|
-
),
|
|
3377
|
-
if (!ne ||
|
|
3378
|
-
const
|
|
3379
|
-
if (
|
|
3376
|
+
), $ = D.find((re) => re.subject === j && !re.inverted);
|
|
3377
|
+
if (!ne || !$) continue;
|
|
3378
|
+
const Y = new Set(ne.actions), z = new Set($.actions);
|
|
3379
|
+
if (Y.size === z.size && [...Y].every((re) => z.has(re)))
|
|
3380
3380
|
continue;
|
|
3381
3381
|
const we = G.findIndex((re) => re.subject === j && !re.inverted);
|
|
3382
3382
|
if (we >= 0)
|
|
3383
3383
|
G[we] = {
|
|
3384
3384
|
...G[we],
|
|
3385
|
-
actions: Array.from(
|
|
3385
|
+
actions: Array.from(z)
|
|
3386
3386
|
};
|
|
3387
3387
|
else {
|
|
3388
3388
|
const re = u(j);
|
|
3389
3389
|
if (re) {
|
|
3390
|
-
const { category: Ie, showByFeatureFlag:
|
|
3391
|
-
G.push({
|
|
3390
|
+
const { category: Ie, showByFeatureFlag: $e, ...Je } = re;
|
|
3391
|
+
G.push({ ...Je, actions: Array.from(z) });
|
|
3392
3392
|
}
|
|
3393
3393
|
}
|
|
3394
|
-
|
|
3394
|
+
Y.has("manage") && !z.has("manage") && Tt(
|
|
3395
3395
|
G,
|
|
3396
|
-
|
|
3396
|
+
kt
|
|
3397
3397
|
).some(
|
|
3398
3398
|
(Ie) => Ie.subject === j && !Ie.inverted && Ie.actions.includes("manage")
|
|
3399
|
-
) && !G.some((Ie) => Ie.subject === j && Ie.inverted) && G.push({ subject: j, actions: ["manage"], inverted: !0 }), !
|
|
3399
|
+
) && !G.some((Ie) => Ie.subject === j && Ie.inverted) && G.push({ subject: j, actions: ["manage"], inverted: !0 }), !Y.has("manage") && z.has("manage") && (G = G.filter((re) => !(re.subject === j && re.inverted)));
|
|
3400
3400
|
}
|
|
3401
3401
|
n.value = G;
|
|
3402
3402
|
}
|
|
@@ -3406,63 +3406,63 @@ const yr = { class: "flex flex-col gap-16" }, Nr = {
|
|
|
3406
3406
|
l("permissionChanged", D);
|
|
3407
3407
|
},
|
|
3408
3408
|
{ deep: !0 }
|
|
3409
|
-
), (D,
|
|
3409
|
+
), (D, k) => (H(), se("div", Gr, [
|
|
3410
3410
|
ae("div", xr, [
|
|
3411
3411
|
_e(wr, {
|
|
3412
3412
|
"model-value": x.value,
|
|
3413
3413
|
"excluded-subjects": P,
|
|
3414
|
-
"additional-permissions": B(
|
|
3414
|
+
"additional-permissions": B(d),
|
|
3415
3415
|
"onUpdate:modelValue": W
|
|
3416
3416
|
}, Fe({ _: 2 }, [
|
|
3417
|
-
he(p.value, (
|
|
3418
|
-
name: `checkbox-${
|
|
3419
|
-
fn:
|
|
3420
|
-
_e(it, { item:
|
|
3417
|
+
he(p.value, (T) => ({
|
|
3418
|
+
name: `checkbox-${T.id}-append`,
|
|
3419
|
+
fn: ge(() => [
|
|
3420
|
+
_e(it, { item: T }, null, 8, ["item"])
|
|
3421
3421
|
])
|
|
3422
3422
|
}))
|
|
3423
3423
|
]), 1032, ["model-value", "additional-permissions"])
|
|
3424
3424
|
]),
|
|
3425
|
-
ae("div",
|
|
3426
|
-
_e(
|
|
3425
|
+
ae("div", Yr, [
|
|
3426
|
+
_e(An, {
|
|
3427
3427
|
"model-value": V.value,
|
|
3428
3428
|
options: M.value,
|
|
3429
3429
|
context: B(a)("team.labels.warehouse"),
|
|
3430
3430
|
"onUpdate:modelValue": i
|
|
3431
3431
|
}, Fe({ _: 2 }, [
|
|
3432
|
-
he(O.value, (
|
|
3433
|
-
name: `checkbox-${
|
|
3434
|
-
fn:
|
|
3435
|
-
_e(it, { item:
|
|
3432
|
+
he(O.value, (T) => ({
|
|
3433
|
+
name: `checkbox-${T.id}-append`,
|
|
3434
|
+
fn: ge(() => [
|
|
3435
|
+
_e(it, { item: T }, null, 8, ["item"])
|
|
3436
3436
|
])
|
|
3437
3437
|
}))
|
|
3438
3438
|
]), 1032, ["model-value", "options", "context"])
|
|
3439
3439
|
]),
|
|
3440
3440
|
ae("div", Zr, [
|
|
3441
|
-
_e(
|
|
3442
|
-
"model-value":
|
|
3441
|
+
_e(An, {
|
|
3442
|
+
"model-value": b.value,
|
|
3443
3443
|
options: w.value,
|
|
3444
3444
|
context: B(a)("team.labels.restaurant"),
|
|
3445
3445
|
"onUpdate:modelValue": v
|
|
3446
3446
|
}, Fe({ _: 2 }, [
|
|
3447
|
-
he(
|
|
3448
|
-
name: `checkbox-${
|
|
3449
|
-
fn:
|
|
3450
|
-
_e(it, { item:
|
|
3447
|
+
he(A.value, (T) => ({
|
|
3448
|
+
name: `checkbox-${T.id}-append`,
|
|
3449
|
+
fn: ge(() => [
|
|
3450
|
+
_e(it, { item: T }, null, 8, ["item"])
|
|
3451
3451
|
])
|
|
3452
3452
|
}))
|
|
3453
3453
|
]), 1032, ["model-value", "options", "context"])
|
|
3454
3454
|
]),
|
|
3455
|
-
ae("div",
|
|
3455
|
+
ae("div", Xr, [
|
|
3456
3456
|
_e(Vr, {
|
|
3457
3457
|
roles: B(_),
|
|
3458
3458
|
"model-value": h.value,
|
|
3459
|
-
"restaurant-ids":
|
|
3460
|
-
"onUpdate:modelValue":
|
|
3459
|
+
"restaurant-ids": b.value,
|
|
3460
|
+
"onUpdate:modelValue": C
|
|
3461
3461
|
}, Fe({ _: 2 }, [
|
|
3462
|
-
he(
|
|
3463
|
-
name: `checkbox-${
|
|
3464
|
-
fn:
|
|
3465
|
-
_e(it, { item:
|
|
3462
|
+
he(N.value, (T) => ({
|
|
3463
|
+
name: `checkbox-${T.id}-append`,
|
|
3464
|
+
fn: ge(() => [
|
|
3465
|
+
_e(it, { item: T }, null, 8, ["item"])
|
|
3466
3466
|
])
|
|
3467
3467
|
}))
|
|
3468
3468
|
]), 1032, ["roles", "model-value", "restaurant-ids"])
|
|
@@ -3471,6 +3471,6 @@ const yr = { class: "flex flex-col gap-16" }, Nr = {
|
|
|
3471
3471
|
}
|
|
3472
3472
|
});
|
|
3473
3473
|
export {
|
|
3474
|
-
|
|
3474
|
+
zt as _,
|
|
3475
3475
|
el as a
|
|
3476
3476
|
};
|