@feedmepos/mf-hrm-portal 1.1.3-dev → 1.1.4-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AuditLogList-DNQh1rE9.js → AuditLogList-0rqa9ncI.js} +4 -4
- package/dist/{EmployeeList-zU7fmC4c.js → EmployeeList-mdnsnAmg.js} +5 -5
- package/dist/{Main-DGymQNz9.js → Main-BrxuUrCb.js} +10 -9
- package/dist/{Main-BqhrqOzx.js → Main-Dkk58R0T.js} +13 -11
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BvjXcknf.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CRJCyyrg.js} +539 -538
- package/dist/{RoleList-jbZqer7A.js → RoleList-BCWc9C8R.js} +63 -62
- package/dist/{RolePermissionList-Dd8ks5i7.js → RolePermissionList-0kTvinIs.js} +3 -3
- package/dist/{TeamMemberList-uamoOFIV.js → TeamMemberList-C2yZWHI4.js} +145 -143
- package/dist/{TimesheetList-hgT9DrHd.js → TimesheetList-U1SXbSth.js} +6 -6
- package/dist/app-DKuRvdeB.js +1637 -0
- package/dist/app.js +4 -4
- package/dist/{dayjs.min-CgN1oBQf.js → dayjs.min-CxMnYvrg.js} +13 -13
- package/dist/{employee-khk560IC.js → employee-D9A-2noc.js} +3 -3
- package/dist/{index-D5sdamN5.js → index-DEH1isVF.js} +734 -1087
- package/dist/{lodash-7Am6_Zd3.js → lodash-Bbnb5Nlh.js} +1 -1
- package/dist/{team-CFyc6tnm.js → team-D9GxbwvB.js} +1 -1
- package/dist/{timesheet-DKhEeLe7.js → timesheet-pnAANVbk.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DOSLuH24.js → useAppStore-BJZiy3Q1.js} +1 -1
- package/dist/{useLoading-BA-GSZ3R.js → useLoading-FywoIKYV.js} +1 -1
- package/package.json +2 -2
- package/dist/app-CcbYGJ22.js +0 -2598
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { getCurrentInstance as Wt, inject as
|
|
1
|
+
import { getCurrentInstance as Wt, inject as Yn, ref as ke, shallowRef as Hn, computed as j, watch as Rt, onMounted as jt, onUnmounted as yn, defineComponent as ce, h as Ln, createVNode as ne, Text as Bn, Fragment as we, resolveComponent as je, createBlock as Oe, openBlock as B, withCtx as se, createElementVNode as ee, createElementBlock as te, toDisplayString as Ge, unref as be, renderList as me, renderSlot as le, createCommentVNode as Ne, createTextVNode as Jn, useSlots as $n, normalizeStyle as tt, normalizeClass as Ke, createSlots as ve, nextTick as Kn, mergeModels as Kt, useModel as zn } from "vue";
|
|
2
2
|
import { useI18n as at, useCoreStore as Qn } from "@feedmepos/mf-common";
|
|
3
3
|
import "@vue/devtools-api";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { m as We, w as Ct, g as qn, b as es, x as vt, y as ts, n as ns } from "./index-DEH1isVF.js";
|
|
5
|
+
import { PermissionCategory as ss, Permission as Q, FullPortalPermissions as zt } from "@feedmepos/hrm-permission";
|
|
6
|
+
import { mergePermissionSet as rs } from "@feedmepos/hrm-permission/utils";
|
|
7
|
+
import { u as as } from "./useAppStore-BJZiy3Q1.js";
|
|
7
8
|
/*!
|
|
8
9
|
* shared v10.0.5
|
|
9
10
|
* (c) 2024 kazuya kawaguchi
|
|
10
11
|
* Released under the MIT License.
|
|
11
12
|
*/
|
|
12
|
-
const Qt = typeof window < "u",
|
|
13
|
+
const Qt = typeof window < "u", ye = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), ls = (e, t, n) => os({ l: e, k: t, s: n }), os = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), K = (e) => typeof e == "number" && isFinite(e), is = (e) => Gt(e) === "[object Date]", st = (e) => Gt(e) === "[object RegExp]", lt = (e) => w(e) && Object.keys(e).length === 0, z = Object.assign, cs = Object.create, U = (e = null) => cs(e);
|
|
13
14
|
let qt;
|
|
14
|
-
const
|
|
15
|
+
const Te = () => qt || (qt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : U());
|
|
15
16
|
function en(e) {
|
|
16
17
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
17
18
|
}
|
|
@@ -19,7 +20,7 @@ const us = Object.prototype.hasOwnProperty;
|
|
|
19
20
|
function ie(e, t) {
|
|
20
21
|
return us.call(e, t);
|
|
21
22
|
}
|
|
22
|
-
const $ = Array.isArray, Z = (e) => typeof e == "function", R = (e) => typeof e == "string", J = (e) => typeof e == "boolean", F = (e) => e !== null && typeof e == "object", ms = (e) => F(e) && Z(e.then) && Z(e.catch), Rn = Object.prototype.toString,
|
|
23
|
+
const $ = Array.isArray, Z = (e) => typeof e == "function", R = (e) => typeof e == "string", J = (e) => typeof e == "boolean", F = (e) => e !== null && typeof e == "object", ms = (e) => F(e) && Z(e.then) && Z(e.catch), Rn = Object.prototype.toString, Gt = (e) => Rn.call(e), w = (e) => Gt(e) === "[object Object]", ds = (e) => e == null ? "" : $(e) || w(e) && e.toString === Rn ? JSON.stringify(e, null, 2) : String(e);
|
|
23
24
|
function Xt(e, t = "") {
|
|
24
25
|
return e.reduce((n, s, l) => l === 0 ? n + s : n + t + s, "");
|
|
25
26
|
}
|
|
@@ -34,7 +35,7 @@ function nt(e, t) {
|
|
|
34
35
|
for (; n.length; ) {
|
|
35
36
|
const { src: s, des: l } = n.pop();
|
|
36
37
|
Object.keys(s).forEach((r) => {
|
|
37
|
-
r !== "__proto__" && (F(s[r]) && !F(l[r]) && (l[r] = Array.isArray(s[r]) ? [] :
|
|
38
|
+
r !== "__proto__" && (F(s[r]) && !F(l[r]) && (l[r] = Array.isArray(s[r]) ? [] : U()), ze(l[r]) || ze(s[r]) ? l[r] = s[r] : n.push({ src: s[r], des: l[r] }));
|
|
38
39
|
});
|
|
39
40
|
}
|
|
40
41
|
}
|
|
@@ -44,7 +45,7 @@ function fs(e, t, n) {
|
|
|
44
45
|
function St(e, t, n) {
|
|
45
46
|
return { start: e, end: t };
|
|
46
47
|
}
|
|
47
|
-
const
|
|
48
|
+
const V = {
|
|
48
49
|
// tokenizer error codes
|
|
49
50
|
EXPECTED_TOKEN: 1,
|
|
50
51
|
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
|
@@ -66,17 +67,17 @@ function ot(e, t, n = {}) {
|
|
|
66
67
|
const { domain: s, messages: l, args: r } = n, c = e, m = new SyntaxError(String(c));
|
|
67
68
|
return m.code = e, t && (m.location = t), m.domain = s, m;
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
+
function bs(e) {
|
|
70
71
|
throw e;
|
|
71
72
|
}
|
|
72
|
-
const _e = " ",
|
|
73
|
-
`,
|
|
73
|
+
const _e = " ", gs = "\r", q = `
|
|
74
|
+
`, hs = "\u2028", Es = "\u2029";
|
|
74
75
|
function Is(e) {
|
|
75
76
|
const t = e;
|
|
76
77
|
let n = 0, s = 1, l = 1, r = 0;
|
|
77
|
-
const c = (N) => t[N] ===
|
|
78
|
+
const c = (N) => t[N] === gs && t[N + 1] === q, m = (N) => t[N] === q, u = (N) => t[N] === Es, _ = (N) => t[N] === hs, g = (N) => c(N) || m(N) || u(N) || _(N), E = () => n, h = () => s, C = () => l, M = () => r, T = (N) => c(N) || u(N) || _(N) ? q : t[N], O = () => T(n), i = () => T(n + r);
|
|
78
79
|
function d() {
|
|
79
|
-
return r = 0,
|
|
80
|
+
return r = 0, g(n) && (s++, l = 0), c(n) && n++, n++, l++, t[n];
|
|
80
81
|
}
|
|
81
82
|
function v() {
|
|
82
83
|
return c(n + r) && r++, r++, t[n + r];
|
|
@@ -84,10 +85,10 @@ function Is(e) {
|
|
|
84
85
|
function p() {
|
|
85
86
|
n = 0, s = 1, l = 1, r = 0;
|
|
86
87
|
}
|
|
87
|
-
function
|
|
88
|
+
function y(N = 0) {
|
|
88
89
|
r = N;
|
|
89
90
|
}
|
|
90
|
-
function
|
|
91
|
+
function k() {
|
|
91
92
|
const N = n + r;
|
|
92
93
|
for (; N !== n; )
|
|
93
94
|
d();
|
|
@@ -95,21 +96,21 @@ function Is(e) {
|
|
|
95
96
|
}
|
|
96
97
|
return {
|
|
97
98
|
index: E,
|
|
98
|
-
line:
|
|
99
|
+
line: h,
|
|
99
100
|
column: C,
|
|
100
101
|
peekOffset: M,
|
|
101
|
-
charAt:
|
|
102
|
+
charAt: T,
|
|
102
103
|
currentChar: O,
|
|
103
104
|
currentPeek: i,
|
|
104
105
|
next: d,
|
|
105
106
|
peek: v,
|
|
106
107
|
reset: p,
|
|
107
|
-
resetPeek:
|
|
108
|
-
skipToPeek:
|
|
108
|
+
resetPeek: y,
|
|
109
|
+
skipToPeek: k
|
|
109
110
|
};
|
|
110
111
|
}
|
|
111
|
-
const
|
|
112
|
-
function
|
|
112
|
+
const ge = void 0, Ns = ".", tn = "'", vs = "tokenizer";
|
|
113
|
+
function Ts(e, t = {}) {
|
|
113
114
|
const n = t.location !== !1, s = Is(e), l = () => s.index(), r = () => fs(s.line(), s.column(), s.index()), c = r(), m = l(), u = {
|
|
114
115
|
currentType: 13,
|
|
115
116
|
offset: m,
|
|
@@ -122,42 +123,42 @@ function ys(e, t = {}) {
|
|
|
122
123
|
braceNest: 0,
|
|
123
124
|
inLinked: !1,
|
|
124
125
|
text: ""
|
|
125
|
-
}, _ = () => u, { onError:
|
|
126
|
-
function E(a, o,
|
|
127
|
-
const
|
|
128
|
-
if (o.column +=
|
|
129
|
-
const P = n ? St(
|
|
126
|
+
}, _ = () => u, { onError: g } = t;
|
|
127
|
+
function E(a, o, b, ...A) {
|
|
128
|
+
const Y = _();
|
|
129
|
+
if (o.column += b, o.offset += b, g) {
|
|
130
|
+
const P = n ? St(Y.startLoc, o) : null, f = ot(a, P, {
|
|
130
131
|
domain: vs,
|
|
131
132
|
args: A
|
|
132
133
|
});
|
|
133
|
-
|
|
134
|
+
g(f);
|
|
134
135
|
}
|
|
135
136
|
}
|
|
136
|
-
function
|
|
137
|
+
function h(a, o, b) {
|
|
137
138
|
a.endLoc = r(), a.currentType = o;
|
|
138
139
|
const A = { type: o };
|
|
139
|
-
return n && (A.loc = St(a.startLoc, a.endLoc)),
|
|
140
|
+
return n && (A.loc = St(a.startLoc, a.endLoc)), b != null && (A.value = b), A;
|
|
140
141
|
}
|
|
141
|
-
const C = (a) =>
|
|
142
|
+
const C = (a) => h(
|
|
142
143
|
a,
|
|
143
144
|
13
|
|
144
145
|
/* TokenTypes.EOF */
|
|
145
146
|
);
|
|
146
147
|
function M(a, o) {
|
|
147
|
-
return a.currentChar() === o ? (a.next(), o) : (E(
|
|
148
|
+
return a.currentChar() === o ? (a.next(), o) : (E(V.EXPECTED_TOKEN, r(), 0, o), "");
|
|
148
149
|
}
|
|
149
|
-
function
|
|
150
|
+
function T(a) {
|
|
150
151
|
let o = "";
|
|
151
152
|
for (; a.currentPeek() === _e || a.currentPeek() === q; )
|
|
152
153
|
o += a.currentPeek(), a.peek();
|
|
153
154
|
return o;
|
|
154
155
|
}
|
|
155
156
|
function O(a) {
|
|
156
|
-
const o =
|
|
157
|
+
const o = T(a);
|
|
157
158
|
return a.skipToPeek(), o;
|
|
158
159
|
}
|
|
159
160
|
function i(a) {
|
|
160
|
-
if (a ===
|
|
161
|
+
if (a === ge)
|
|
161
162
|
return !1;
|
|
162
163
|
const o = a.charCodeAt(0);
|
|
163
164
|
return o >= 97 && o <= 122 || // a-z
|
|
@@ -165,84 +166,84 @@ function ys(e, t = {}) {
|
|
|
165
166
|
o === 95;
|
|
166
167
|
}
|
|
167
168
|
function d(a) {
|
|
168
|
-
if (a ===
|
|
169
|
+
if (a === ge)
|
|
169
170
|
return !1;
|
|
170
171
|
const o = a.charCodeAt(0);
|
|
171
172
|
return o >= 48 && o <= 57;
|
|
172
173
|
}
|
|
173
174
|
function v(a, o) {
|
|
174
|
-
const { currentType:
|
|
175
|
-
if (
|
|
175
|
+
const { currentType: b } = o;
|
|
176
|
+
if (b !== 2)
|
|
176
177
|
return !1;
|
|
177
|
-
|
|
178
|
+
T(a);
|
|
178
179
|
const A = i(a.currentPeek());
|
|
179
180
|
return a.resetPeek(), A;
|
|
180
181
|
}
|
|
181
182
|
function p(a, o) {
|
|
182
|
-
const { currentType:
|
|
183
|
-
if (
|
|
183
|
+
const { currentType: b } = o;
|
|
184
|
+
if (b !== 2)
|
|
184
185
|
return !1;
|
|
185
|
-
|
|
186
|
-
const A = a.currentPeek() === "-" ? a.peek() : a.currentPeek(),
|
|
187
|
-
return a.resetPeek(),
|
|
186
|
+
T(a);
|
|
187
|
+
const A = a.currentPeek() === "-" ? a.peek() : a.currentPeek(), Y = d(A);
|
|
188
|
+
return a.resetPeek(), Y;
|
|
188
189
|
}
|
|
189
|
-
function
|
|
190
|
-
const { currentType:
|
|
191
|
-
if (
|
|
190
|
+
function y(a, o) {
|
|
191
|
+
const { currentType: b } = o;
|
|
192
|
+
if (b !== 2)
|
|
192
193
|
return !1;
|
|
193
|
-
|
|
194
|
+
T(a);
|
|
194
195
|
const A = a.currentPeek() === tn;
|
|
195
196
|
return a.resetPeek(), A;
|
|
196
197
|
}
|
|
197
|
-
function
|
|
198
|
-
const { currentType:
|
|
199
|
-
if (
|
|
198
|
+
function k(a, o) {
|
|
199
|
+
const { currentType: b } = o;
|
|
200
|
+
if (b !== 7)
|
|
200
201
|
return !1;
|
|
201
|
-
|
|
202
|
+
T(a);
|
|
202
203
|
const A = a.currentPeek() === ".";
|
|
203
204
|
return a.resetPeek(), A;
|
|
204
205
|
}
|
|
205
206
|
function N(a, o) {
|
|
206
|
-
const { currentType:
|
|
207
|
-
if (
|
|
207
|
+
const { currentType: b } = o;
|
|
208
|
+
if (b !== 8)
|
|
208
209
|
return !1;
|
|
209
|
-
|
|
210
|
+
T(a);
|
|
210
211
|
const A = i(a.currentPeek());
|
|
211
212
|
return a.resetPeek(), A;
|
|
212
213
|
}
|
|
213
214
|
function X(a, o) {
|
|
214
|
-
const { currentType:
|
|
215
|
-
if (!(
|
|
215
|
+
const { currentType: b } = o;
|
|
216
|
+
if (!(b === 7 || b === 11))
|
|
216
217
|
return !1;
|
|
217
|
-
|
|
218
|
+
T(a);
|
|
218
219
|
const A = a.currentPeek() === ":";
|
|
219
220
|
return a.resetPeek(), A;
|
|
220
221
|
}
|
|
221
|
-
function
|
|
222
|
-
const { currentType:
|
|
223
|
-
if (
|
|
222
|
+
function G(a, o) {
|
|
223
|
+
const { currentType: b } = o;
|
|
224
|
+
if (b !== 9)
|
|
224
225
|
return !1;
|
|
225
226
|
const A = () => {
|
|
226
227
|
const P = a.currentPeek();
|
|
227
228
|
return P === "{" ? i(a.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === _e || !P ? !1 : P === q ? (a.peek(), A()) : S(a, !1);
|
|
228
|
-
},
|
|
229
|
-
return a.resetPeek(),
|
|
229
|
+
}, Y = A();
|
|
230
|
+
return a.resetPeek(), Y;
|
|
230
231
|
}
|
|
231
232
|
function D(a) {
|
|
232
|
-
|
|
233
|
+
T(a);
|
|
233
234
|
const o = a.currentPeek() === "|";
|
|
234
235
|
return a.resetPeek(), o;
|
|
235
236
|
}
|
|
236
237
|
function S(a, o = !0) {
|
|
237
|
-
const
|
|
238
|
+
const b = (Y = !1, P = "") => {
|
|
238
239
|
const f = a.currentPeek();
|
|
239
|
-
return f === "{" || f === "@" || !f ?
|
|
240
|
-
}, A =
|
|
240
|
+
return f === "{" || f === "@" || !f ? Y : f === "|" ? !(P === _e || P === q) : f === _e ? (a.peek(), b(!0, _e)) : f === q ? (a.peek(), b(!0, q)) : !0;
|
|
241
|
+
}, A = b();
|
|
241
242
|
return o && a.resetPeek(), A;
|
|
242
243
|
}
|
|
243
244
|
function L(a, o) {
|
|
244
|
-
const
|
|
245
|
-
return
|
|
245
|
+
const b = a.currentChar();
|
|
246
|
+
return b === ge ? ge : o(b) ? (a.next(), b) : null;
|
|
246
247
|
}
|
|
247
248
|
function x(a) {
|
|
248
249
|
const o = a.charCodeAt(0);
|
|
@@ -280,58 +281,58 @@ function ys(e, t = {}) {
|
|
|
280
281
|
o >= 65 && o <= 70 || // A-F
|
|
281
282
|
o >= 97 && o <= 102;
|
|
282
283
|
}
|
|
283
|
-
function
|
|
284
|
+
function He(a) {
|
|
284
285
|
return L(a, de);
|
|
285
286
|
}
|
|
286
287
|
function Be(a) {
|
|
287
|
-
let o = "",
|
|
288
|
+
let o = "", b = "";
|
|
288
289
|
for (; o = mt(a); )
|
|
289
|
-
|
|
290
|
-
return
|
|
290
|
+
b += o;
|
|
291
|
+
return b;
|
|
291
292
|
}
|
|
292
293
|
function dt(a) {
|
|
293
294
|
let o = "";
|
|
294
295
|
for (; ; ) {
|
|
295
|
-
const
|
|
296
|
-
if (
|
|
296
|
+
const b = a.currentChar();
|
|
297
|
+
if (b === "{" || b === "}" || b === "@" || b === "|" || !b)
|
|
297
298
|
break;
|
|
298
|
-
if (
|
|
299
|
+
if (b === _e || b === q)
|
|
299
300
|
if (S(a))
|
|
300
|
-
o +=
|
|
301
|
+
o += b, a.next();
|
|
301
302
|
else {
|
|
302
303
|
if (D(a))
|
|
303
304
|
break;
|
|
304
|
-
o +=
|
|
305
|
+
o += b, a.next();
|
|
305
306
|
}
|
|
306
307
|
else
|
|
307
|
-
o +=
|
|
308
|
+
o += b, a.next();
|
|
308
309
|
}
|
|
309
310
|
return o;
|
|
310
311
|
}
|
|
311
312
|
function _t(a) {
|
|
312
313
|
O(a);
|
|
313
|
-
let o = "",
|
|
314
|
+
let o = "", b = "";
|
|
314
315
|
for (; o = oe(a); )
|
|
315
|
-
|
|
316
|
-
return a.currentChar() ===
|
|
316
|
+
b += o;
|
|
317
|
+
return a.currentChar() === ge && E(V.UNTERMINATED_CLOSING_BRACE, r(), 0), b;
|
|
317
318
|
}
|
|
318
319
|
function ft(a) {
|
|
319
320
|
O(a);
|
|
320
321
|
let o = "";
|
|
321
|
-
return a.currentChar() === "-" ? (a.next(), o += `-${Be(a)}`) : o += Be(a), a.currentChar() ===
|
|
322
|
+
return a.currentChar() === "-" ? (a.next(), o += `-${Be(a)}`) : o += Be(a), a.currentChar() === ge && E(V.UNTERMINATED_CLOSING_BRACE, r(), 0), o;
|
|
322
323
|
}
|
|
323
324
|
function $t(a) {
|
|
324
325
|
return a !== tn && a !== q;
|
|
325
326
|
}
|
|
326
327
|
function pt(a) {
|
|
327
328
|
O(a), M(a, "'");
|
|
328
|
-
let o = "",
|
|
329
|
+
let o = "", b = "";
|
|
329
330
|
for (; o = L(a, $t); )
|
|
330
|
-
o === "\\" ?
|
|
331
|
+
o === "\\" ? b += bt(a) : b += o;
|
|
331
332
|
const A = a.currentChar();
|
|
332
|
-
return A === q || A ===
|
|
333
|
+
return A === q || A === ge ? (E(V.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, r(), 0), A === q && (a.next(), M(a, "'")), b) : (M(a, "'"), b);
|
|
333
334
|
}
|
|
334
|
-
function
|
|
335
|
+
function bt(a) {
|
|
335
336
|
const o = a.currentChar();
|
|
336
337
|
switch (o) {
|
|
337
338
|
case "\\":
|
|
@@ -342,42 +343,42 @@ function ys(e, t = {}) {
|
|
|
342
343
|
case "U":
|
|
343
344
|
return Je(a, o, 6);
|
|
344
345
|
default:
|
|
345
|
-
return E(
|
|
346
|
+
return E(V.UNKNOWN_ESCAPE_SEQUENCE, r(), 0, o), "";
|
|
346
347
|
}
|
|
347
348
|
}
|
|
348
|
-
function Je(a, o,
|
|
349
|
+
function Je(a, o, b) {
|
|
349
350
|
M(a, o);
|
|
350
351
|
let A = "";
|
|
351
|
-
for (let
|
|
352
|
-
const P =
|
|
352
|
+
for (let Y = 0; Y < b; Y++) {
|
|
353
|
+
const P = He(a);
|
|
353
354
|
if (!P) {
|
|
354
|
-
E(
|
|
355
|
+
E(V.INVALID_UNICODE_ESCAPE_SEQUENCE, r(), 0, `\\${o}${A}${a.currentChar()}`);
|
|
355
356
|
break;
|
|
356
357
|
}
|
|
357
358
|
A += P;
|
|
358
359
|
}
|
|
359
360
|
return `\\${o}${A}`;
|
|
360
361
|
}
|
|
361
|
-
function
|
|
362
|
+
function gt(a) {
|
|
362
363
|
return a !== "{" && a !== "}" && a !== _e && a !== q;
|
|
363
364
|
}
|
|
364
|
-
function
|
|
365
|
+
function ht(a) {
|
|
365
366
|
O(a);
|
|
366
|
-
let o = "",
|
|
367
|
-
for (; o = L(a,
|
|
368
|
-
|
|
369
|
-
return
|
|
367
|
+
let o = "", b = "";
|
|
368
|
+
for (; o = L(a, gt); )
|
|
369
|
+
b += o;
|
|
370
|
+
return b;
|
|
370
371
|
}
|
|
371
372
|
function Et(a) {
|
|
372
|
-
let o = "",
|
|
373
|
+
let o = "", b = "";
|
|
373
374
|
for (; o = re(a); )
|
|
374
|
-
|
|
375
|
-
return
|
|
375
|
+
b += o;
|
|
376
|
+
return b;
|
|
376
377
|
}
|
|
377
378
|
function It(a) {
|
|
378
|
-
const o = (
|
|
379
|
+
const o = (b) => {
|
|
379
380
|
const A = a.currentChar();
|
|
380
|
-
return A === "{" || A === "@" || A === "|" || A === "(" || A === ")" || !A || A === _e ?
|
|
381
|
+
return A === "{" || A === "@" || A === "|" || A === "(" || A === ")" || !A || A === _e ? b : (b += A, a.next(), o(b));
|
|
381
382
|
};
|
|
382
383
|
return o("");
|
|
383
384
|
}
|
|
@@ -391,75 +392,75 @@ function ys(e, t = {}) {
|
|
|
391
392
|
return O(a), o;
|
|
392
393
|
}
|
|
393
394
|
function Re(a, o) {
|
|
394
|
-
let
|
|
395
|
+
let b = null;
|
|
395
396
|
switch (a.currentChar()) {
|
|
396
397
|
case "{":
|
|
397
|
-
return o.braceNest >= 1 && E(
|
|
398
|
+
return o.braceNest >= 1 && E(V.NOT_ALLOW_NEST_PLACEHOLDER, r(), 0), a.next(), b = h(
|
|
398
399
|
o,
|
|
399
400
|
2,
|
|
400
401
|
"{"
|
|
401
402
|
/* TokenChars.BraceLeft */
|
|
402
|
-
), O(a), o.braceNest++,
|
|
403
|
+
), O(a), o.braceNest++, b;
|
|
403
404
|
case "}":
|
|
404
|
-
return o.braceNest > 0 && o.currentType === 2 && E(
|
|
405
|
+
return o.braceNest > 0 && o.currentType === 2 && E(V.EMPTY_PLACEHOLDER, r(), 0), a.next(), b = h(
|
|
405
406
|
o,
|
|
406
407
|
3,
|
|
407
408
|
"}"
|
|
408
409
|
/* TokenChars.BraceRight */
|
|
409
|
-
), o.braceNest--, o.braceNest > 0 && O(a), o.inLinked && o.braceNest === 0 && (o.inLinked = !1),
|
|
410
|
+
), o.braceNest--, o.braceNest > 0 && O(a), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), b;
|
|
410
411
|
case "@":
|
|
411
|
-
return o.braceNest > 0 && E(
|
|
412
|
+
return o.braceNest > 0 && E(V.UNTERMINATED_CLOSING_BRACE, r(), 0), b = Ce(a, o) || C(o), o.braceNest = 0, b;
|
|
412
413
|
default: {
|
|
413
|
-
let
|
|
414
|
+
let Y = !0, P = !0, f = !0;
|
|
414
415
|
if (D(a))
|
|
415
|
-
return o.braceNest > 0 && E(
|
|
416
|
+
return o.braceNest > 0 && E(V.UNTERMINATED_CLOSING_BRACE, r(), 0), b = h(o, 1, Fe(a)), o.braceNest = 0, o.inLinked = !1, b;
|
|
416
417
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
417
|
-
return E(
|
|
418
|
-
if (
|
|
419
|
-
return
|
|
418
|
+
return E(V.UNTERMINATED_CLOSING_BRACE, r(), 0), o.braceNest = 0, Ve(a, o);
|
|
419
|
+
if (Y = v(a, o))
|
|
420
|
+
return b = h(o, 4, _t(a)), O(a), b;
|
|
420
421
|
if (P = p(a, o))
|
|
421
|
-
return
|
|
422
|
-
if (f =
|
|
423
|
-
return
|
|
424
|
-
if (!
|
|
425
|
-
return
|
|
422
|
+
return b = h(o, 5, ft(a)), O(a), b;
|
|
423
|
+
if (f = y(a, o))
|
|
424
|
+
return b = h(o, 6, pt(a)), O(a), b;
|
|
425
|
+
if (!Y && !P && !f)
|
|
426
|
+
return b = h(o, 12, ht(a)), E(V.INVALID_TOKEN_IN_PLACEHOLDER, r(), 0, b.value), O(a), b;
|
|
426
427
|
break;
|
|
427
428
|
}
|
|
428
429
|
}
|
|
429
|
-
return
|
|
430
|
+
return b;
|
|
430
431
|
}
|
|
431
432
|
function Ce(a, o) {
|
|
432
|
-
const { currentType:
|
|
433
|
+
const { currentType: b } = o;
|
|
433
434
|
let A = null;
|
|
434
|
-
const
|
|
435
|
-
switch ((
|
|
435
|
+
const Y = a.currentChar();
|
|
436
|
+
switch ((b === 7 || b === 8 || b === 11 || b === 9) && (Y === q || Y === _e) && E(V.INVALID_LINKED_FORMAT, r(), 0), Y) {
|
|
436
437
|
case "@":
|
|
437
|
-
return a.next(), A =
|
|
438
|
+
return a.next(), A = h(
|
|
438
439
|
o,
|
|
439
440
|
7,
|
|
440
441
|
"@"
|
|
441
442
|
/* TokenChars.LinkedAlias */
|
|
442
443
|
), o.inLinked = !0, A;
|
|
443
444
|
case ".":
|
|
444
|
-
return O(a), a.next(),
|
|
445
|
+
return O(a), a.next(), h(
|
|
445
446
|
o,
|
|
446
447
|
8,
|
|
447
448
|
"."
|
|
448
449
|
/* TokenChars.LinkedDot */
|
|
449
450
|
);
|
|
450
451
|
case ":":
|
|
451
|
-
return O(a), a.next(),
|
|
452
|
+
return O(a), a.next(), h(
|
|
452
453
|
o,
|
|
453
454
|
9,
|
|
454
455
|
":"
|
|
455
456
|
/* TokenChars.LinkedDelimiter */
|
|
456
457
|
);
|
|
457
458
|
default:
|
|
458
|
-
return D(a) ? (A =
|
|
459
|
+
return D(a) ? (A = h(o, 1, Fe(a)), o.braceNest = 0, o.inLinked = !1, A) : k(a, o) || X(a, o) ? (O(a), Ce(a, o)) : N(a, o) ? (O(a), h(o, 11, Et(a))) : G(a, o) ? (O(a), Y === "{" ? Re(a, o) || A : h(o, 10, It(a))) : (b === 7 && E(V.INVALID_LINKED_FORMAT, r(), 0), o.braceNest = 0, o.inLinked = !1, Ve(a, o));
|
|
459
460
|
}
|
|
460
461
|
}
|
|
461
|
-
function
|
|
462
|
-
let
|
|
462
|
+
function Ve(a, o) {
|
|
463
|
+
let b = {
|
|
463
464
|
type: 13
|
|
464
465
|
/* TokenTypes.EOF */
|
|
465
466
|
};
|
|
@@ -471,7 +472,7 @@ function ys(e, t = {}) {
|
|
|
471
472
|
case "{":
|
|
472
473
|
return Re(a, o) || C(o);
|
|
473
474
|
case "}":
|
|
474
|
-
return E(
|
|
475
|
+
return E(V.UNBALANCED_CLOSING_BRACE, r(), 0), a.next(), h(
|
|
475
476
|
o,
|
|
476
477
|
3,
|
|
477
478
|
"}"
|
|
@@ -481,21 +482,21 @@ function ys(e, t = {}) {
|
|
|
481
482
|
return Ce(a, o) || C(o);
|
|
482
483
|
default: {
|
|
483
484
|
if (D(a))
|
|
484
|
-
return
|
|
485
|
+
return b = h(o, 1, Fe(a)), o.braceNest = 0, o.inLinked = !1, b;
|
|
485
486
|
if (S(a))
|
|
486
|
-
return
|
|
487
|
+
return h(o, 0, dt(a));
|
|
487
488
|
break;
|
|
488
489
|
}
|
|
489
490
|
}
|
|
490
|
-
return
|
|
491
|
+
return b;
|
|
491
492
|
}
|
|
492
493
|
function Nt() {
|
|
493
|
-
const { currentType: a, offset: o, startLoc:
|
|
494
|
-
return u.lastType = a, u.lastOffset = o, u.lastStartLoc =
|
|
494
|
+
const { currentType: a, offset: o, startLoc: b, endLoc: A } = u;
|
|
495
|
+
return u.lastType = a, u.lastOffset = o, u.lastStartLoc = b, u.lastEndLoc = A, u.offset = l(), u.startLoc = r(), s.currentChar() === ge ? h(
|
|
495
496
|
u,
|
|
496
497
|
13
|
|
497
498
|
/* TokenTypes.EOF */
|
|
498
|
-
) :
|
|
499
|
+
) : Ve(s, u);
|
|
499
500
|
}
|
|
500
501
|
return {
|
|
501
502
|
nextToken: Nt,
|
|
@@ -504,8 +505,8 @@ function ys(e, t = {}) {
|
|
|
504
505
|
context: _
|
|
505
506
|
};
|
|
506
507
|
}
|
|
507
|
-
const
|
|
508
|
-
function
|
|
508
|
+
const ks = "parser", Os = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
509
|
+
function ys(e, t, n) {
|
|
509
510
|
switch (e) {
|
|
510
511
|
case "\\\\":
|
|
511
512
|
return "\\";
|
|
@@ -519,12 +520,12 @@ function ks(e, t, n) {
|
|
|
519
520
|
}
|
|
520
521
|
function Ls(e = {}) {
|
|
521
522
|
const t = e.location !== !1, { onError: n } = e;
|
|
522
|
-
function s(i, d, v, p, ...
|
|
523
|
-
const
|
|
524
|
-
if (
|
|
525
|
-
const N = t ? St(v,
|
|
526
|
-
domain:
|
|
527
|
-
args:
|
|
523
|
+
function s(i, d, v, p, ...y) {
|
|
524
|
+
const k = i.currentPosition();
|
|
525
|
+
if (k.offset += p, k.column += p, n) {
|
|
526
|
+
const N = t ? St(v, k) : null, X = ot(d, N, {
|
|
527
|
+
domain: ks,
|
|
528
|
+
args: y
|
|
528
529
|
});
|
|
529
530
|
n(X);
|
|
530
531
|
}
|
|
@@ -541,54 +542,54 @@ function Ls(e = {}) {
|
|
|
541
542
|
return p.value = d, r(p, i.currentOffset(), i.currentPosition()), p;
|
|
542
543
|
}
|
|
543
544
|
function m(i, d) {
|
|
544
|
-
const v = i.context(), { lastOffset: p, lastStartLoc:
|
|
545
|
-
return
|
|
545
|
+
const v = i.context(), { lastOffset: p, lastStartLoc: y } = v, k = l(5, p, y);
|
|
546
|
+
return k.index = parseInt(d, 10), i.nextToken(), r(k, i.currentOffset(), i.currentPosition()), k;
|
|
546
547
|
}
|
|
547
548
|
function u(i, d) {
|
|
548
|
-
const v = i.context(), { lastOffset: p, lastStartLoc:
|
|
549
|
-
return
|
|
549
|
+
const v = i.context(), { lastOffset: p, lastStartLoc: y } = v, k = l(4, p, y);
|
|
550
|
+
return k.key = d, i.nextToken(), r(k, i.currentOffset(), i.currentPosition()), k;
|
|
550
551
|
}
|
|
551
552
|
function _(i, d) {
|
|
552
|
-
const v = i.context(), { lastOffset: p, lastStartLoc:
|
|
553
|
-
return
|
|
553
|
+
const v = i.context(), { lastOffset: p, lastStartLoc: y } = v, k = l(9, p, y);
|
|
554
|
+
return k.value = d.replace(Os, ys), i.nextToken(), r(k, i.currentOffset(), i.currentPosition()), k;
|
|
554
555
|
}
|
|
555
|
-
function
|
|
556
|
-
const d = i.nextToken(), v = i.context(), { lastOffset: p, lastStartLoc:
|
|
557
|
-
return d.type !== 11 ? (s(i,
|
|
556
|
+
function g(i) {
|
|
557
|
+
const d = i.nextToken(), v = i.context(), { lastOffset: p, lastStartLoc: y } = v, k = l(8, p, y);
|
|
558
|
+
return d.type !== 11 ? (s(i, V.UNEXPECTED_EMPTY_LINKED_MODIFIER, v.lastStartLoc, 0), k.value = "", r(k, p, y), {
|
|
558
559
|
nextConsumeToken: d,
|
|
559
|
-
node:
|
|
560
|
-
}) : (d.value == null && s(i,
|
|
561
|
-
node:
|
|
560
|
+
node: k
|
|
561
|
+
}) : (d.value == null && s(i, V.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(d)), k.value = d.value || "", r(k, i.currentOffset(), i.currentPosition()), {
|
|
562
|
+
node: k
|
|
562
563
|
});
|
|
563
564
|
}
|
|
564
565
|
function E(i, d) {
|
|
565
566
|
const v = i.context(), p = l(7, v.offset, v.startLoc);
|
|
566
567
|
return p.value = d, r(p, i.currentOffset(), i.currentPosition()), p;
|
|
567
568
|
}
|
|
568
|
-
function
|
|
569
|
+
function h(i) {
|
|
569
570
|
const d = i.context(), v = l(6, d.offset, d.startLoc);
|
|
570
571
|
let p = i.nextToken();
|
|
571
572
|
if (p.type === 8) {
|
|
572
|
-
const
|
|
573
|
-
v.modifier =
|
|
573
|
+
const y = g(i);
|
|
574
|
+
v.modifier = y.node, p = y.nextConsumeToken || i.nextToken();
|
|
574
575
|
}
|
|
575
|
-
switch (p.type !== 9 && s(i,
|
|
576
|
+
switch (p.type !== 9 && s(i, V.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ue(p)), p = i.nextToken(), p.type === 2 && (p = i.nextToken()), p.type) {
|
|
576
577
|
case 10:
|
|
577
|
-
p.value == null && s(i,
|
|
578
|
+
p.value == null && s(i, V.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ue(p)), v.key = E(i, p.value || "");
|
|
578
579
|
break;
|
|
579
580
|
case 4:
|
|
580
|
-
p.value == null && s(i,
|
|
581
|
+
p.value == null && s(i, V.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ue(p)), v.key = u(i, p.value || "");
|
|
581
582
|
break;
|
|
582
583
|
case 5:
|
|
583
|
-
p.value == null && s(i,
|
|
584
|
+
p.value == null && s(i, V.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ue(p)), v.key = m(i, p.value || "");
|
|
584
585
|
break;
|
|
585
586
|
case 6:
|
|
586
|
-
p.value == null && s(i,
|
|
587
|
+
p.value == null && s(i, V.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ue(p)), v.key = _(i, p.value || "");
|
|
587
588
|
break;
|
|
588
589
|
default: {
|
|
589
|
-
s(i,
|
|
590
|
-
const
|
|
591
|
-
return
|
|
590
|
+
s(i, V.UNEXPECTED_EMPTY_LINKED_KEY, d.lastStartLoc, 0);
|
|
591
|
+
const y = i.context(), k = l(7, y.offset, y.startLoc);
|
|
592
|
+
return k.value = "", r(k, y.offset, y.startLoc), v.key = k, r(v, y.offset, y.startLoc), {
|
|
592
593
|
nextConsumeToken: p,
|
|
593
594
|
node: v
|
|
594
595
|
};
|
|
@@ -599,52 +600,52 @@ function Ls(e = {}) {
|
|
|
599
600
|
};
|
|
600
601
|
}
|
|
601
602
|
function C(i) {
|
|
602
|
-
const d = i.context(), v = d.currentType === 1 ? i.currentOffset() : d.offset, p = d.currentType === 1 ? d.endLoc : d.startLoc,
|
|
603
|
-
|
|
604
|
-
let
|
|
603
|
+
const d = i.context(), v = d.currentType === 1 ? i.currentOffset() : d.offset, p = d.currentType === 1 ? d.endLoc : d.startLoc, y = l(2, v, p);
|
|
604
|
+
y.items = [];
|
|
605
|
+
let k = null;
|
|
605
606
|
do {
|
|
606
|
-
const
|
|
607
|
-
switch (
|
|
607
|
+
const G = k || i.nextToken();
|
|
608
|
+
switch (k = null, G.type) {
|
|
608
609
|
case 0:
|
|
609
|
-
|
|
610
|
+
G.value == null && s(i, V.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ue(G)), y.items.push(c(i, G.value || ""));
|
|
610
611
|
break;
|
|
611
612
|
case 5:
|
|
612
|
-
|
|
613
|
+
G.value == null && s(i, V.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ue(G)), y.items.push(m(i, G.value || ""));
|
|
613
614
|
break;
|
|
614
615
|
case 4:
|
|
615
|
-
|
|
616
|
+
G.value == null && s(i, V.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ue(G)), y.items.push(u(i, G.value || ""));
|
|
616
617
|
break;
|
|
617
618
|
case 6:
|
|
618
|
-
|
|
619
|
+
G.value == null && s(i, V.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ue(G)), y.items.push(_(i, G.value || ""));
|
|
619
620
|
break;
|
|
620
621
|
case 7: {
|
|
621
|
-
const D =
|
|
622
|
-
|
|
622
|
+
const D = h(i);
|
|
623
|
+
y.items.push(D.node), k = D.nextConsumeToken || null;
|
|
623
624
|
break;
|
|
624
625
|
}
|
|
625
626
|
}
|
|
626
627
|
} while (d.currentType !== 13 && d.currentType !== 1);
|
|
627
628
|
const N = d.currentType === 1 ? d.lastOffset : i.currentOffset(), X = d.currentType === 1 ? d.lastEndLoc : i.currentPosition();
|
|
628
|
-
return r(
|
|
629
|
+
return r(y, N, X), y;
|
|
629
630
|
}
|
|
630
631
|
function M(i, d, v, p) {
|
|
631
|
-
const
|
|
632
|
-
let
|
|
632
|
+
const y = i.context();
|
|
633
|
+
let k = p.items.length === 0;
|
|
633
634
|
const N = l(1, d, v);
|
|
634
635
|
N.cases = [], N.cases.push(p);
|
|
635
636
|
do {
|
|
636
637
|
const X = C(i);
|
|
637
|
-
|
|
638
|
-
} while (
|
|
639
|
-
return
|
|
638
|
+
k || (k = X.items.length === 0), N.cases.push(X);
|
|
639
|
+
} while (y.currentType !== 13);
|
|
640
|
+
return k && s(i, V.MUST_HAVE_MESSAGES_IN_PLURAL, v, 0), r(N, i.currentOffset(), i.currentPosition()), N;
|
|
640
641
|
}
|
|
641
|
-
function
|
|
642
|
-
const d = i.context(), { offset: v, startLoc: p } = d,
|
|
643
|
-
return d.currentType === 13 ?
|
|
642
|
+
function T(i) {
|
|
643
|
+
const d = i.context(), { offset: v, startLoc: p } = d, y = C(i);
|
|
644
|
+
return d.currentType === 13 ? y : M(i, v, p, y);
|
|
644
645
|
}
|
|
645
646
|
function O(i) {
|
|
646
|
-
const d =
|
|
647
|
-
return t && p.loc && (p.loc.source = i), p.body =
|
|
647
|
+
const d = Ts(i, z({}, e)), v = d.context(), p = l(0, v.offset, v.startLoc);
|
|
648
|
+
return t && p.loc && (p.loc.source = i), p.body = T(d), e.onCacheKey && (p.cacheKey = e.onCacheKey(i)), v.currentType !== 13 && s(d, V.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, i[v.offset] || ""), r(p, d.currentOffset(), d.currentPosition()), p;
|
|
648
649
|
}
|
|
649
650
|
return { parse: O };
|
|
650
651
|
}
|
|
@@ -801,31 +802,31 @@ function As(e, t) {
|
|
|
801
802
|
};
|
|
802
803
|
r && e.loc && (c.source = e.loc.source);
|
|
803
804
|
const m = () => c;
|
|
804
|
-
function u(
|
|
805
|
-
c.code +=
|
|
805
|
+
function u(T, O) {
|
|
806
|
+
c.code += T;
|
|
806
807
|
}
|
|
807
|
-
function _(
|
|
808
|
+
function _(T, O = !0) {
|
|
808
809
|
const i = O ? s : "";
|
|
809
|
-
u(l ? i + " ".repeat(
|
|
810
|
+
u(l ? i + " ".repeat(T) : i);
|
|
810
811
|
}
|
|
811
|
-
function
|
|
812
|
+
function g(T = !0) {
|
|
812
813
|
const O = ++c.indentLevel;
|
|
813
|
-
|
|
814
|
+
T && _(O);
|
|
814
815
|
}
|
|
815
|
-
function E(
|
|
816
|
+
function E(T = !0) {
|
|
816
817
|
const O = --c.indentLevel;
|
|
817
|
-
|
|
818
|
+
T && _(O);
|
|
818
819
|
}
|
|
819
|
-
function
|
|
820
|
+
function h() {
|
|
820
821
|
_(c.indentLevel);
|
|
821
822
|
}
|
|
822
823
|
return {
|
|
823
824
|
context: m,
|
|
824
825
|
push: u,
|
|
825
|
-
indent:
|
|
826
|
+
indent: g,
|
|
826
827
|
deindent: E,
|
|
827
|
-
newline:
|
|
828
|
-
helper: (
|
|
828
|
+
newline: h,
|
|
829
|
+
helper: (T) => `_${T}`,
|
|
829
830
|
needIndent: () => c.needIndent
|
|
830
831
|
};
|
|
831
832
|
}
|
|
@@ -919,7 +920,7 @@ const Fs = (e, t = {}) => {
|
|
|
919
920
|
breakLineCode: l,
|
|
920
921
|
needIndent: r
|
|
921
922
|
});
|
|
922
|
-
m.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), m.indent(r), c.length > 0 && (m.push(`const { ${Xt(c.map((
|
|
923
|
+
m.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), m.indent(r), c.length > 0 && (m.push(`const { ${Xt(c.map((g) => `${g}: _${g}`), ", ")} } = ctx`), m.newline()), m.push("return "), De(m, e), m.deindent(r), m.push("}"), delete e.helpers;
|
|
923
924
|
const { code: u, map: _ } = m.context();
|
|
924
925
|
return {
|
|
925
926
|
ast: e,
|
|
@@ -928,18 +929,18 @@ const Fs = (e, t = {}) => {
|
|
|
928
929
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
929
930
|
};
|
|
930
931
|
};
|
|
931
|
-
function
|
|
932
|
+
function Vs(e, t = {}) {
|
|
932
933
|
const n = z({}, t), s = !!n.jit, l = !!n.minify, r = n.optimize == null ? !0 : n.optimize, m = Ls(n).parse(e);
|
|
933
934
|
return s ? (r && Ss(m), l && Ae(m), { ast: m, code: "" }) : (Cs(m, n), Fs(m, n));
|
|
934
935
|
}
|
|
935
|
-
var
|
|
936
|
+
var Us = { env: { NODE_ENV: "production" } };
|
|
936
937
|
function Ws() {
|
|
937
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
938
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Te().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Te().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
938
939
|
}
|
|
939
|
-
function
|
|
940
|
-
return (n) =>
|
|
940
|
+
function Tt(e) {
|
|
941
|
+
return (n) => js(n, e);
|
|
941
942
|
}
|
|
942
|
-
function
|
|
943
|
+
function js(e, t) {
|
|
943
944
|
const n = Xs(t);
|
|
944
945
|
if (n == null)
|
|
945
946
|
throw Xe(
|
|
@@ -955,16 +956,16 @@ function Gs(e, t) {
|
|
|
955
956
|
} else
|
|
956
957
|
return rn(e, n);
|
|
957
958
|
}
|
|
958
|
-
const
|
|
959
|
+
const Gs = ["b", "body"];
|
|
959
960
|
function Xs(e) {
|
|
960
|
-
return
|
|
961
|
+
return he(e, Gs);
|
|
961
962
|
}
|
|
962
963
|
const xs = ["c", "cases"];
|
|
963
964
|
function Zs(e) {
|
|
964
|
-
return
|
|
965
|
+
return he(e, xs, []);
|
|
965
966
|
}
|
|
966
967
|
function rn(e, t) {
|
|
967
|
-
const n =
|
|
968
|
+
const n = Hs(t);
|
|
968
969
|
if (n != null)
|
|
969
970
|
return e.type === "text" ? n : e.normalize([n]);
|
|
970
971
|
{
|
|
@@ -972,13 +973,13 @@ function rn(e, t) {
|
|
|
972
973
|
return e.normalize(s);
|
|
973
974
|
}
|
|
974
975
|
}
|
|
975
|
-
const
|
|
976
|
-
function
|
|
977
|
-
return
|
|
976
|
+
const Ys = ["s", "static"];
|
|
977
|
+
function Hs(e) {
|
|
978
|
+
return he(e, Ys);
|
|
978
979
|
}
|
|
979
980
|
const Bs = ["i", "items"];
|
|
980
981
|
function Js(e) {
|
|
981
|
-
return
|
|
982
|
+
return he(e, Bs, []);
|
|
982
983
|
}
|
|
983
984
|
function At(e, t) {
|
|
984
985
|
const n = Zt(t);
|
|
@@ -1017,22 +1018,22 @@ function At(e, t) {
|
|
|
1017
1018
|
}
|
|
1018
1019
|
const $s = ["t", "type"];
|
|
1019
1020
|
function Zt(e) {
|
|
1020
|
-
return
|
|
1021
|
+
return he(e, $s);
|
|
1021
1022
|
}
|
|
1022
1023
|
const Ks = ["v", "value"];
|
|
1023
1024
|
function Qe(e, t) {
|
|
1024
|
-
const n =
|
|
1025
|
+
const n = he(e, Ks);
|
|
1025
1026
|
if (n)
|
|
1026
1027
|
return n;
|
|
1027
1028
|
throw Xe(t);
|
|
1028
1029
|
}
|
|
1029
1030
|
const zs = ["m", "modifier"];
|
|
1030
1031
|
function Qs(e) {
|
|
1031
|
-
return
|
|
1032
|
+
return he(e, zs);
|
|
1032
1033
|
}
|
|
1033
1034
|
const qs = ["k", "key"];
|
|
1034
1035
|
function er(e) {
|
|
1035
|
-
const t =
|
|
1036
|
+
const t = he(e, qs);
|
|
1036
1037
|
if (t)
|
|
1037
1038
|
return t;
|
|
1038
1039
|
throw Xe(
|
|
@@ -1040,7 +1041,7 @@ function er(e) {
|
|
|
1040
1041
|
/* NodeTypes.Linked */
|
|
1041
1042
|
);
|
|
1042
1043
|
}
|
|
1043
|
-
function
|
|
1044
|
+
function he(e, t, n) {
|
|
1044
1045
|
for (let s = 0; s < t.length; s++) {
|
|
1045
1046
|
const l = t[s];
|
|
1046
1047
|
if (ie(e, l) && e[l] != null)
|
|
@@ -1052,16 +1053,16 @@ function Xe(e) {
|
|
|
1052
1053
|
return new Error(`unhandled node type: ${e}`);
|
|
1053
1054
|
}
|
|
1054
1055
|
const tr = (e) => e;
|
|
1055
|
-
let qe =
|
|
1056
|
+
let qe = U();
|
|
1056
1057
|
function Me(e) {
|
|
1057
1058
|
return F(e) && Zt(e) === 0 && (ie(e, "b") || ie(e, "body"));
|
|
1058
1059
|
}
|
|
1059
1060
|
function nr(e, t = {}) {
|
|
1060
1061
|
let n = !1;
|
|
1061
|
-
const s = t.onError ||
|
|
1062
|
+
const s = t.onError || bs;
|
|
1062
1063
|
return t.onError = (l) => {
|
|
1063
1064
|
n = !0, s(l);
|
|
1064
|
-
}, { ...
|
|
1065
|
+
}, { ...Vs(e, t), detectError: n };
|
|
1065
1066
|
}
|
|
1066
1067
|
// @__NO_SIDE_EFFECTS__
|
|
1067
1068
|
function sr(e, t) {
|
|
@@ -1072,17 +1073,17 @@ function sr(e, t) {
|
|
|
1072
1073
|
return l;
|
|
1073
1074
|
const { ast: r, detectError: c } = nr(e, {
|
|
1074
1075
|
...t,
|
|
1075
|
-
location:
|
|
1076
|
+
location: Us.env.NODE_ENV !== "production",
|
|
1076
1077
|
jit: !0
|
|
1077
|
-
}), m =
|
|
1078
|
+
}), m = Tt(r);
|
|
1078
1079
|
return c ? m : qe[s] = m;
|
|
1079
1080
|
} else {
|
|
1080
1081
|
const n = e.cacheKey;
|
|
1081
1082
|
if (n) {
|
|
1082
1083
|
const s = qe[n];
|
|
1083
|
-
return s || (qe[n] =
|
|
1084
|
+
return s || (qe[n] = Tt(e));
|
|
1084
1085
|
} else
|
|
1085
|
-
return
|
|
1086
|
+
return Tt(e);
|
|
1086
1087
|
}
|
|
1087
1088
|
}
|
|
1088
1089
|
let xe = null;
|
|
@@ -1113,21 +1114,21 @@ const fe = {
|
|
|
1113
1114
|
function pe(e) {
|
|
1114
1115
|
return ot(e, null, void 0);
|
|
1115
1116
|
}
|
|
1116
|
-
function
|
|
1117
|
+
function Yt(e, t) {
|
|
1117
1118
|
return t.locale != null ? an(t.locale) : an(e.locale);
|
|
1118
1119
|
}
|
|
1119
|
-
let
|
|
1120
|
+
let kt;
|
|
1120
1121
|
function an(e) {
|
|
1121
1122
|
if (R(e))
|
|
1122
1123
|
return e;
|
|
1123
1124
|
if (Z(e)) {
|
|
1124
|
-
if (e.resolvedOnce &&
|
|
1125
|
-
return
|
|
1125
|
+
if (e.resolvedOnce && kt != null)
|
|
1126
|
+
return kt;
|
|
1126
1127
|
if (e.constructor.name === "Function") {
|
|
1127
1128
|
const t = e();
|
|
1128
1129
|
if (ms(t))
|
|
1129
1130
|
throw pe(fe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1130
|
-
return
|
|
1131
|
+
return kt = t;
|
|
1131
1132
|
} else
|
|
1132
1133
|
throw pe(fe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1133
1134
|
} else
|
|
@@ -1373,45 +1374,45 @@ function pr(e) {
|
|
|
1373
1374
|
}
|
|
1374
1375
|
return "i";
|
|
1375
1376
|
}
|
|
1376
|
-
function
|
|
1377
|
+
function br(e) {
|
|
1377
1378
|
const t = e.trim();
|
|
1378
1379
|
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : _r(t) ? fr(t) : "*" + t;
|
|
1379
1380
|
}
|
|
1380
|
-
function
|
|
1381
|
+
function gr(e) {
|
|
1381
1382
|
const t = [];
|
|
1382
|
-
let n = -1, s = 0, l = 0, r, c, m, u, _,
|
|
1383
|
-
const
|
|
1384
|
-
|
|
1383
|
+
let n = -1, s = 0, l = 0, r, c, m, u, _, g, E;
|
|
1384
|
+
const h = [];
|
|
1385
|
+
h[
|
|
1385
1386
|
0
|
|
1386
1387
|
/* Actions.APPEND */
|
|
1387
1388
|
] = () => {
|
|
1388
1389
|
c === void 0 ? c = m : c += m;
|
|
1389
|
-
},
|
|
1390
|
+
}, h[
|
|
1390
1391
|
1
|
|
1391
1392
|
/* Actions.PUSH */
|
|
1392
1393
|
] = () => {
|
|
1393
1394
|
c !== void 0 && (t.push(c), c = void 0);
|
|
1394
|
-
},
|
|
1395
|
+
}, h[
|
|
1395
1396
|
2
|
|
1396
1397
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1397
1398
|
] = () => {
|
|
1398
|
-
|
|
1399
|
+
h[
|
|
1399
1400
|
0
|
|
1400
1401
|
/* Actions.APPEND */
|
|
1401
1402
|
](), l++;
|
|
1402
|
-
},
|
|
1403
|
+
}, h[
|
|
1403
1404
|
3
|
|
1404
1405
|
/* Actions.PUSH_SUB_PATH */
|
|
1405
1406
|
] = () => {
|
|
1406
1407
|
if (l > 0)
|
|
1407
|
-
l--, s = 4,
|
|
1408
|
+
l--, s = 4, h[
|
|
1408
1409
|
0
|
|
1409
1410
|
/* Actions.APPEND */
|
|
1410
1411
|
]();
|
|
1411
1412
|
else {
|
|
1412
|
-
if (l = 0, c === void 0 || (c =
|
|
1413
|
+
if (l = 0, c === void 0 || (c = br(c), c === !1))
|
|
1413
1414
|
return !1;
|
|
1414
|
-
|
|
1415
|
+
h[
|
|
1415
1416
|
1
|
|
1416
1417
|
/* Actions.PUSH */
|
|
1417
1418
|
]();
|
|
@@ -1420,28 +1421,28 @@ function br(e) {
|
|
|
1420
1421
|
function C() {
|
|
1421
1422
|
const M = e[n + 1];
|
|
1422
1423
|
if (s === 5 && M === "'" || s === 6 && M === '"')
|
|
1423
|
-
return n++, m = "\\" + M,
|
|
1424
|
+
return n++, m = "\\" + M, h[
|
|
1424
1425
|
0
|
|
1425
1426
|
/* Actions.APPEND */
|
|
1426
1427
|
](), !0;
|
|
1427
1428
|
}
|
|
1428
1429
|
for (; s !== null; )
|
|
1429
1430
|
if (n++, r = e[n], !(r === "\\" && C())) {
|
|
1430
|
-
if (u = pr(r), E = Ee[s], _ = E[u] || E.l || 8, _ === 8 || (s = _[0], _[1] !== void 0 && (
|
|
1431
|
+
if (u = pr(r), E = Ee[s], _ = E[u] || E.l || 8, _ === 8 || (s = _[0], _[1] !== void 0 && (g = h[_[1]], g && (m = r, g() === !1))))
|
|
1431
1432
|
return;
|
|
1432
1433
|
if (s === 7)
|
|
1433
1434
|
return t;
|
|
1434
1435
|
}
|
|
1435
1436
|
}
|
|
1436
1437
|
const on = /* @__PURE__ */ new Map();
|
|
1437
|
-
function
|
|
1438
|
+
function hr(e, t) {
|
|
1438
1439
|
return F(e) ? e[t] : null;
|
|
1439
1440
|
}
|
|
1440
1441
|
function Er(e, t) {
|
|
1441
1442
|
if (!F(e))
|
|
1442
1443
|
return null;
|
|
1443
1444
|
let n = on.get(t);
|
|
1444
|
-
if (n || (n =
|
|
1445
|
+
if (n || (n = gr(t), n && on.set(t, n)), !n)
|
|
1445
1446
|
return null;
|
|
1446
1447
|
const s = n.length;
|
|
1447
1448
|
let l = e, r = 0;
|
|
@@ -1466,24 +1467,24 @@ function vr(e) {
|
|
|
1466
1467
|
Sn = e;
|
|
1467
1468
|
}
|
|
1468
1469
|
let An;
|
|
1469
|
-
function
|
|
1470
|
+
function Tr(e) {
|
|
1470
1471
|
An = e;
|
|
1471
1472
|
}
|
|
1472
1473
|
let Dn;
|
|
1473
|
-
function
|
|
1474
|
+
function kr(e) {
|
|
1474
1475
|
Dn = e;
|
|
1475
1476
|
}
|
|
1476
1477
|
let Mn = null;
|
|
1477
1478
|
const Or = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1478
1479
|
Mn = e;
|
|
1479
|
-
},
|
|
1480
|
+
}, yr = /* @__NO_SIDE_EFFECTS__ */ () => Mn;
|
|
1480
1481
|
let Pn = null;
|
|
1481
1482
|
const mn = (e) => {
|
|
1482
1483
|
Pn = e;
|
|
1483
1484
|
}, Lr = () => Pn;
|
|
1484
1485
|
let dn = 0;
|
|
1485
1486
|
function Rr(e = {}) {
|
|
1486
|
-
const t = Z(e.onWarn) ? e.onWarn : _s, n = R(e.version) ? e.version : Ir, s = R(e.locale) || Z(e.locale) ? e.locale : rt, l = Z(s) ? rt : s, r = $(e.fallbackLocale) || w(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, c = w(e.messages) ? e.messages : Ot(l), m = w(e.datetimeFormats) ? e.datetimeFormats : Ot(l), u = w(e.numberFormats) ? e.numberFormats : Ot(l), _ = z(
|
|
1487
|
+
const t = Z(e.onWarn) ? e.onWarn : _s, n = R(e.version) ? e.version : Ir, s = R(e.locale) || Z(e.locale) ? e.locale : rt, l = Z(s) ? rt : s, r = $(e.fallbackLocale) || w(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, c = w(e.messages) ? e.messages : Ot(l), m = w(e.datetimeFormats) ? e.datetimeFormats : Ot(l), u = w(e.numberFormats) ? e.numberFormats : Ot(l), _ = z(U(), e.modifiers, Nr()), g = e.pluralRules || U(), E = Z(e.missing) ? e.missing : null, h = J(e.missingWarn) || st(e.missingWarn) ? e.missingWarn : !0, C = J(e.fallbackWarn) || st(e.fallbackWarn) ? e.fallbackWarn : !0, M = !!e.fallbackFormat, T = !!e.unresolving, O = Z(e.postTranslation) ? e.postTranslation : null, i = w(e.processor) ? e.processor : null, d = J(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, v = !!e.escapeParameter, p = Z(e.messageCompiler) ? e.messageCompiler : Sn, y = Z(e.messageResolver) ? e.messageResolver : An || hr, k = Z(e.localeFallbacker) ? e.localeFallbacker : Dn || cr, N = F(e.fallbackContext) ? e.fallbackContext : void 0, X = e, G = F(X.__datetimeFormatters) ? X.__datetimeFormatters : /* @__PURE__ */ new Map(), D = F(X.__numberFormatters) ? X.__numberFormatters : /* @__PURE__ */ new Map(), S = F(X.__meta) ? X.__meta : {};
|
|
1487
1488
|
dn++;
|
|
1488
1489
|
const L = {
|
|
1489
1490
|
version: n,
|
|
@@ -1492,27 +1493,27 @@ function Rr(e = {}) {
|
|
|
1492
1493
|
fallbackLocale: r,
|
|
1493
1494
|
messages: c,
|
|
1494
1495
|
modifiers: _,
|
|
1495
|
-
pluralRules:
|
|
1496
|
+
pluralRules: g,
|
|
1496
1497
|
missing: E,
|
|
1497
|
-
missingWarn:
|
|
1498
|
+
missingWarn: h,
|
|
1498
1499
|
fallbackWarn: C,
|
|
1499
1500
|
fallbackFormat: M,
|
|
1500
|
-
unresolving:
|
|
1501
|
+
unresolving: T,
|
|
1501
1502
|
postTranslation: O,
|
|
1502
1503
|
processor: i,
|
|
1503
1504
|
warnHtmlMessage: d,
|
|
1504
1505
|
escapeParameter: v,
|
|
1505
1506
|
messageCompiler: p,
|
|
1506
|
-
messageResolver:
|
|
1507
|
-
localeFallbacker:
|
|
1507
|
+
messageResolver: y,
|
|
1508
|
+
localeFallbacker: k,
|
|
1508
1509
|
fallbackContext: N,
|
|
1509
1510
|
onWarn: t,
|
|
1510
1511
|
__meta: S
|
|
1511
1512
|
};
|
|
1512
|
-
return L.datetimeFormats = m, L.numberFormats = u, L.__datetimeFormatters =
|
|
1513
|
+
return L.datetimeFormats = m, L.numberFormats = u, L.__datetimeFormatters = G, L.__numberFormatters = D, __INTLIFY_PROD_DEVTOOLS__ && ar(L, n, S), L;
|
|
1513
1514
|
}
|
|
1514
|
-
const Ot = (e) => ({ [e]:
|
|
1515
|
-
function
|
|
1515
|
+
const Ot = (e) => ({ [e]: U() });
|
|
1516
|
+
function Ht(e, t, n, s, l) {
|
|
1516
1517
|
const { missing: r, onWarn: c } = e;
|
|
1517
1518
|
if (r !== null) {
|
|
1518
1519
|
const m = r(e, n, t, l);
|
|
@@ -1520,7 +1521,7 @@ function Yt(e, t, n, s, l) {
|
|
|
1520
1521
|
} else
|
|
1521
1522
|
return t;
|
|
1522
1523
|
}
|
|
1523
|
-
function
|
|
1524
|
+
function Ue(e, t, n) {
|
|
1524
1525
|
const s = e;
|
|
1525
1526
|
s.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1526
1527
|
}
|
|
@@ -1537,9 +1538,9 @@ function Sr(e, t) {
|
|
|
1537
1538
|
return !1;
|
|
1538
1539
|
}
|
|
1539
1540
|
function _n(e, ...t) {
|
|
1540
|
-
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: r, localeFallbacker: c } = e, { __datetimeFormatters: m } = e, [u, _,
|
|
1541
|
-
J(
|
|
1542
|
-
const C = !!
|
|
1541
|
+
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: r, localeFallbacker: c } = e, { __datetimeFormatters: m } = e, [u, _, g, E] = Dt(...t), h = J(g.missingWarn) ? g.missingWarn : e.missingWarn;
|
|
1542
|
+
J(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn;
|
|
1543
|
+
const C = !!g.part, M = Yt(e, g), T = c(
|
|
1543
1544
|
e,
|
|
1544
1545
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1545
1546
|
l,
|
|
@@ -1549,14 +1550,14 @@ function _n(e, ...t) {
|
|
|
1549
1550
|
return new Intl.DateTimeFormat(M, E).format(_);
|
|
1550
1551
|
let O = {}, i, d = null;
|
|
1551
1552
|
const v = "datetime format";
|
|
1552
|
-
for (let
|
|
1553
|
-
|
|
1553
|
+
for (let k = 0; k < T.length && (i = T[k], O = n[i] || {}, d = O[u], !w(d)); k++)
|
|
1554
|
+
Ht(e, u, i, h, v);
|
|
1554
1555
|
if (!w(d) || !R(i))
|
|
1555
1556
|
return s ? it : u;
|
|
1556
1557
|
let p = `${i}__${u}`;
|
|
1557
1558
|
lt(E) || (p = `${p}__${JSON.stringify(E)}`);
|
|
1558
|
-
let
|
|
1559
|
-
return
|
|
1559
|
+
let y = m.get(p);
|
|
1560
|
+
return y || (y = new Intl.DateTimeFormat(i, z({}, d, E)), m.set(p, y)), C ? y.formatToParts(_) : y.format(_);
|
|
1560
1561
|
}
|
|
1561
1562
|
const wn = [
|
|
1562
1563
|
"localeMatcher",
|
|
@@ -1581,8 +1582,8 @@ const wn = [
|
|
|
1581
1582
|
"fractionalSecondDigits"
|
|
1582
1583
|
];
|
|
1583
1584
|
function Dt(...e) {
|
|
1584
|
-
const [t, n, s, l] = e, r =
|
|
1585
|
-
let c =
|
|
1585
|
+
const [t, n, s, l] = e, r = U();
|
|
1586
|
+
let c = U(), m;
|
|
1586
1587
|
if (R(t)) {
|
|
1587
1588
|
const u = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1588
1589
|
if (!u)
|
|
@@ -1614,9 +1615,9 @@ function fn(e, t, n) {
|
|
|
1614
1615
|
}
|
|
1615
1616
|
}
|
|
1616
1617
|
function pn(e, ...t) {
|
|
1617
|
-
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: r, localeFallbacker: c } = e, { __numberFormatters: m } = e, [u, _,
|
|
1618
|
-
J(
|
|
1619
|
-
const C = !!
|
|
1618
|
+
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: r, localeFallbacker: c } = e, { __numberFormatters: m } = e, [u, _, g, E] = Mt(...t), h = J(g.missingWarn) ? g.missingWarn : e.missingWarn;
|
|
1619
|
+
J(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn;
|
|
1620
|
+
const C = !!g.part, M = Yt(e, g), T = c(
|
|
1620
1621
|
e,
|
|
1621
1622
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1622
1623
|
l,
|
|
@@ -1626,14 +1627,14 @@ function pn(e, ...t) {
|
|
|
1626
1627
|
return new Intl.NumberFormat(M, E).format(_);
|
|
1627
1628
|
let O = {}, i, d = null;
|
|
1628
1629
|
const v = "number format";
|
|
1629
|
-
for (let
|
|
1630
|
-
|
|
1630
|
+
for (let k = 0; k < T.length && (i = T[k], O = n[i] || {}, d = O[u], !w(d)); k++)
|
|
1631
|
+
Ht(e, u, i, h, v);
|
|
1631
1632
|
if (!w(d) || !R(i))
|
|
1632
1633
|
return s ? it : u;
|
|
1633
1634
|
let p = `${i}__${u}`;
|
|
1634
1635
|
lt(E) || (p = `${p}__${JSON.stringify(E)}`);
|
|
1635
|
-
let
|
|
1636
|
-
return
|
|
1636
|
+
let y = m.get(p);
|
|
1637
|
+
return y || (y = new Intl.NumberFormat(i, z({}, d, E)), m.set(p, y)), C ? y.formatToParts(_) : y.format(_);
|
|
1637
1638
|
}
|
|
1638
1639
|
const Fn = [
|
|
1639
1640
|
"localeMatcher",
|
|
@@ -1658,8 +1659,8 @@ const Fn = [
|
|
|
1658
1659
|
"trailingZeroDisplay"
|
|
1659
1660
|
];
|
|
1660
1661
|
function Mt(...e) {
|
|
1661
|
-
const [t, n, s, l] = e, r =
|
|
1662
|
-
let c =
|
|
1662
|
+
const [t, n, s, l] = e, r = U();
|
|
1663
|
+
let c = U();
|
|
1663
1664
|
if (!K(t))
|
|
1664
1665
|
throw pe(fe.INVALID_ARGUMENT);
|
|
1665
1666
|
const m = t;
|
|
@@ -1667,7 +1668,7 @@ function Mt(...e) {
|
|
|
1667
1668
|
Fn.includes(u) ? c[u] = n[u] : r[u] = n[u];
|
|
1668
1669
|
}), R(s) ? r.locale = s : w(s) && (c = s), w(l) && (c = l), [r.key || "", m, r, c];
|
|
1669
1670
|
}
|
|
1670
|
-
function
|
|
1671
|
+
function bn(e, t, n) {
|
|
1671
1672
|
const s = e;
|
|
1672
1673
|
for (const l in n) {
|
|
1673
1674
|
const r = `${t}__${l}`;
|
|
@@ -1675,64 +1676,64 @@ function hn(e, t, n) {
|
|
|
1675
1676
|
}
|
|
1676
1677
|
}
|
|
1677
1678
|
const Ar = (e) => e, Dr = (e) => "", Mr = "text", Pr = (e) => e.length === 0 ? "" : Xt(e), wr = ds;
|
|
1678
|
-
function
|
|
1679
|
+
function gn(e, t) {
|
|
1679
1680
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1680
1681
|
}
|
|
1681
1682
|
function Fr(e) {
|
|
1682
1683
|
const t = K(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1683
1684
|
return e.named && (K(e.named.count) || K(e.named.n)) ? K(e.named.count) ? e.named.count : K(e.named.n) ? e.named.n : t : t;
|
|
1684
1685
|
}
|
|
1685
|
-
function
|
|
1686
|
+
function Vr(e, t) {
|
|
1686
1687
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1687
1688
|
}
|
|
1688
|
-
function
|
|
1689
|
-
const t = e.locale, n = Fr(e), s = F(e.pluralRules) && R(t) && Z(e.pluralRules[t]) ? e.pluralRules[t] :
|
|
1690
|
-
K(e.pluralIndex) &&
|
|
1689
|
+
function Ur(e = {}) {
|
|
1690
|
+
const t = e.locale, n = Fr(e), s = F(e.pluralRules) && R(t) && Z(e.pluralRules[t]) ? e.pluralRules[t] : gn, l = F(e.pluralRules) && R(t) && Z(e.pluralRules[t]) ? gn : void 0, r = (i) => i[s(n, i.length, l)], c = e.list || [], m = (i) => c[i], u = e.named || U();
|
|
1691
|
+
K(e.pluralIndex) && Vr(n, u);
|
|
1691
1692
|
const _ = (i) => u[i];
|
|
1692
|
-
function
|
|
1693
|
+
function g(i, d) {
|
|
1693
1694
|
const v = Z(e.messages) ? e.messages(i, !!d) : F(e.messages) ? e.messages[i] : !1;
|
|
1694
1695
|
return v || (e.parent ? e.parent.message(i) : Dr);
|
|
1695
1696
|
}
|
|
1696
|
-
const E = (i) => e.modifiers ? e.modifiers[i] : Ar,
|
|
1697
|
+
const E = (i) => e.modifiers ? e.modifiers[i] : Ar, h = w(e.processor) && Z(e.processor.normalize) ? e.processor.normalize : Pr, C = w(e.processor) && Z(e.processor.interpolate) ? e.processor.interpolate : wr, M = w(e.processor) && R(e.processor.type) ? e.processor.type : Mr, O = {
|
|
1697
1698
|
list: m,
|
|
1698
1699
|
named: _,
|
|
1699
1700
|
plural: r,
|
|
1700
1701
|
linked: (i, ...d) => {
|
|
1701
1702
|
const [v, p] = d;
|
|
1702
|
-
let
|
|
1703
|
-
d.length === 1 ? F(v) ? (
|
|
1704
|
-
const N =
|
|
1703
|
+
let y = "text", k = "";
|
|
1704
|
+
d.length === 1 ? F(v) ? (k = v.modifier || k, y = v.type || y) : R(v) && (k = v || k) : d.length === 2 && (R(v) && (k = v || k), R(p) && (y = p || y));
|
|
1705
|
+
const N = g(i, !0)(O), X = (
|
|
1705
1706
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1706
|
-
|
|
1707
|
+
y === "vnode" && $(N) && k ? N[0] : N
|
|
1707
1708
|
);
|
|
1708
|
-
return
|
|
1709
|
+
return k ? E(k)(X, y) : X;
|
|
1709
1710
|
},
|
|
1710
|
-
message:
|
|
1711
|
+
message: g,
|
|
1711
1712
|
type: M,
|
|
1712
1713
|
interpolate: C,
|
|
1713
|
-
normalize:
|
|
1714
|
-
values: z(
|
|
1714
|
+
normalize: h,
|
|
1715
|
+
values: z(U(), c, u)
|
|
1715
1716
|
};
|
|
1716
1717
|
return O;
|
|
1717
1718
|
}
|
|
1718
|
-
const
|
|
1719
|
+
const hn = () => "", ae = (e) => Z(e);
|
|
1719
1720
|
function En(e, ...t) {
|
|
1720
|
-
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: r, fallbackLocale: c, messages: m } = e, [u, _] = Pt(...t),
|
|
1721
|
-
|
|
1721
|
+
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: r, fallbackLocale: c, messages: m } = e, [u, _] = Pt(...t), g = J(_.missingWarn) ? _.missingWarn : e.missingWarn, E = J(_.fallbackWarn) ? _.fallbackWarn : e.fallbackWarn, h = J(_.escapeParameter) ? _.escapeParameter : e.escapeParameter, C = !!_.resolvedMessage, M = R(_.default) || J(_.default) ? J(_.default) ? r ? u : () => u : _.default : n ? r ? u : () => u : null, T = n || M != null && (R(M) || Z(M)), O = Yt(e, _);
|
|
1722
|
+
h && Wr(_);
|
|
1722
1723
|
let [i, d, v] = C ? [
|
|
1723
1724
|
u,
|
|
1724
1725
|
O,
|
|
1725
|
-
m[O] ||
|
|
1726
|
-
] :
|
|
1727
|
-
if (!C && !(R(p) || Me(p) || ae(p)) &&
|
|
1726
|
+
m[O] || U()
|
|
1727
|
+
] : Vn(e, u, O, c, E, g), p = i, y = u;
|
|
1728
|
+
if (!C && !(R(p) || Me(p) || ae(p)) && T && (p = M, y = p), !C && (!(R(p) || Me(p) || ae(p)) || !R(d)))
|
|
1728
1729
|
return l ? it : u;
|
|
1729
|
-
let
|
|
1730
|
+
let k = !1;
|
|
1730
1731
|
const N = () => {
|
|
1731
|
-
|
|
1732
|
-
}, X = ae(p) ? p :
|
|
1733
|
-
if (
|
|
1732
|
+
k = !0;
|
|
1733
|
+
}, X = ae(p) ? p : Un(e, u, d, p, y, N);
|
|
1734
|
+
if (k)
|
|
1734
1735
|
return p;
|
|
1735
|
-
const
|
|
1736
|
+
const G = Xr(e, d, v, _), D = Ur(G), S = jr(e, X, D), L = s ? s(S, u) : S;
|
|
1736
1737
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1737
1738
|
const x = {
|
|
1738
1739
|
timestamp: Date.now(),
|
|
@@ -1741,7 +1742,7 @@ function En(e, ...t) {
|
|
|
1741
1742
|
format: R(p) ? p : ae(p) ? p.source : "",
|
|
1742
1743
|
message: L
|
|
1743
1744
|
};
|
|
1744
|
-
x.meta = z({}, e.__meta, /* @__PURE__ */
|
|
1745
|
+
x.meta = z({}, e.__meta, /* @__PURE__ */ yr() || {}), lr(x);
|
|
1745
1746
|
}
|
|
1746
1747
|
return L;
|
|
1747
1748
|
}
|
|
@@ -1750,25 +1751,25 @@ function Wr(e) {
|
|
|
1750
1751
|
R(e.named[t]) && (e.named[t] = en(e.named[t]));
|
|
1751
1752
|
});
|
|
1752
1753
|
}
|
|
1753
|
-
function
|
|
1754
|
-
const { messages: c, onWarn: m, messageResolver: u, localeFallbacker: _ } = e,
|
|
1755
|
-
let E =
|
|
1754
|
+
function Vn(e, t, n, s, l, r) {
|
|
1755
|
+
const { messages: c, onWarn: m, messageResolver: u, localeFallbacker: _ } = e, g = _(e, s, n);
|
|
1756
|
+
let E = U(), h, C = null;
|
|
1756
1757
|
const M = "translate";
|
|
1757
|
-
for (let
|
|
1758
|
-
if (!Sr(
|
|
1759
|
-
const O =
|
|
1758
|
+
for (let T = 0; T < g.length && (h = g[T], E = c[h] || U(), (C = u(E, t)) === null && (C = E[t]), !(R(C) || Me(C) || ae(C))); T++)
|
|
1759
|
+
if (!Sr(h, g)) {
|
|
1760
|
+
const O = Ht(
|
|
1760
1761
|
e,
|
|
1761
1762
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1762
1763
|
t,
|
|
1763
|
-
|
|
1764
|
+
h,
|
|
1764
1765
|
r,
|
|
1765
1766
|
M
|
|
1766
1767
|
);
|
|
1767
1768
|
O !== t && (C = O);
|
|
1768
1769
|
}
|
|
1769
|
-
return [C,
|
|
1770
|
+
return [C, h, E];
|
|
1770
1771
|
}
|
|
1771
|
-
function
|
|
1772
|
+
function Un(e, t, n, s, l, r) {
|
|
1772
1773
|
const { messageCompiler: c, warnHtmlMessage: m } = e;
|
|
1773
1774
|
if (ae(s)) {
|
|
1774
1775
|
const _ = s;
|
|
@@ -1778,20 +1779,20 @@ function Vn(e, t, n, s, l, r) {
|
|
|
1778
1779
|
const _ = () => s;
|
|
1779
1780
|
return _.locale = n, _.key = t, _;
|
|
1780
1781
|
}
|
|
1781
|
-
const u = c(s,
|
|
1782
|
+
const u = c(s, Gr(e, n, l, s, m, r));
|
|
1782
1783
|
return u.locale = n, u.key = t, u.source = s, u;
|
|
1783
1784
|
}
|
|
1784
|
-
function
|
|
1785
|
+
function jr(e, t, n) {
|
|
1785
1786
|
return t(n);
|
|
1786
1787
|
}
|
|
1787
1788
|
function Pt(...e) {
|
|
1788
|
-
const [t, n, s] = e, l =
|
|
1789
|
+
const [t, n, s] = e, l = U();
|
|
1789
1790
|
if (!R(t) && !K(t) && !ae(t) && !Me(t))
|
|
1790
1791
|
throw pe(fe.INVALID_ARGUMENT);
|
|
1791
1792
|
const r = K(t) ? String(t) : (ae(t), t);
|
|
1792
1793
|
return K(n) ? l.plural = n : R(n) ? l.default = n : w(n) && !lt(n) ? l.named = n : $(n) && (l.list = n), K(s) ? l.plural = s : R(s) ? l.default = s : w(s) && z(l, s), [r, l];
|
|
1793
1794
|
}
|
|
1794
|
-
function
|
|
1795
|
+
function Gr(e, t, n, s, l, r) {
|
|
1795
1796
|
return {
|
|
1796
1797
|
locale: t,
|
|
1797
1798
|
key: n,
|
|
@@ -1803,15 +1804,15 @@ function jr(e, t, n, s, l, r) {
|
|
|
1803
1804
|
};
|
|
1804
1805
|
}
|
|
1805
1806
|
function Xr(e, t, n, s) {
|
|
1806
|
-
const { modifiers: l, pluralRules: r, messageResolver: c, fallbackLocale: m, fallbackWarn: u, missingWarn: _, fallbackContext:
|
|
1807
|
+
const { modifiers: l, pluralRules: r, messageResolver: c, fallbackLocale: m, fallbackWarn: u, missingWarn: _, fallbackContext: g } = e, h = {
|
|
1807
1808
|
locale: t,
|
|
1808
1809
|
modifiers: l,
|
|
1809
1810
|
pluralRules: r,
|
|
1810
1811
|
messages: (C, M) => {
|
|
1811
|
-
let
|
|
1812
|
-
if (
|
|
1813
|
-
const [, , O] =
|
|
1814
|
-
|
|
1812
|
+
let T = c(n, C);
|
|
1813
|
+
if (T == null && (g || M)) {
|
|
1814
|
+
const [, , O] = Vn(
|
|
1815
|
+
g || e,
|
|
1815
1816
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1816
1817
|
C,
|
|
1817
1818
|
t,
|
|
@@ -1819,24 +1820,24 @@ function Xr(e, t, n, s) {
|
|
|
1819
1820
|
u,
|
|
1820
1821
|
_
|
|
1821
1822
|
);
|
|
1822
|
-
|
|
1823
|
+
T = c(O, C);
|
|
1823
1824
|
}
|
|
1824
|
-
if (R(
|
|
1825
|
+
if (R(T) || Me(T)) {
|
|
1825
1826
|
let O = !1;
|
|
1826
|
-
const d =
|
|
1827
|
+
const d = Un(e, C, t, T, C, () => {
|
|
1827
1828
|
O = !0;
|
|
1828
1829
|
});
|
|
1829
|
-
return O ?
|
|
1830
|
-
} else return ae(
|
|
1830
|
+
return O ? hn : d;
|
|
1831
|
+
} else return ae(T) ? T : hn;
|
|
1831
1832
|
}
|
|
1832
1833
|
};
|
|
1833
|
-
return e.processor && (
|
|
1834
|
+
return e.processor && (h.processor = e.processor), s.list && (h.list = s.list), s.named && (h.named = s.named), K(s.plural) && (h.pluralIndex = s.plural), h;
|
|
1834
1835
|
}
|
|
1835
1836
|
Ws();
|
|
1836
|
-
var xr = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_4c58d9da-f957-44ba-9de3-45251e37b43e", 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_4c58d9da-f957-44ba-9de3-45251e37b43e", 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", 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.3.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-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1891", ACTIONS_ORCHESTRATION_ID: "ce3421ca-d030-4cc3-99ae-7754e2878763.publish.publish.__default", npm_package_dependencies__feedmepos_ui_library: "^1.7.0", 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_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", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260302.42.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:15636", 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.7/x64", GITHUB_RUN_ID: "22709872350", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "40ea264d1f353db5c5667f19e93b47fbd04b2641", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/KDI-3967-role-based-permission-set", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9LREktMzk2Ny1yb2xlLWJhc2VkLXBlcm1pc3Npb24tc2V0XCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsImF1ZCI6InZzbzo2Zjk2ZmE4OS1iN2JmLTQ4NzgtYmFkMy04OTgwMDY1NjZiNmUiLCJiaWxsaW5nX293bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwiZXhwIjoxNzcyNzIyODE3LCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3ByaW1hcnlzaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJpYXQiOjE3NzI3MDA2MTcsImlzcyI6Imh0dHBzOi8vdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJqb2JfaWQiOiI1MDA2MjMwMi00ODEyLTU1ZTYtYjc5OS0wNGZhMTQwOGM1YTEiLCJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJuYmYiOjE3NzI3MDAzMTcsIm9pZGNfZXh0cmEiOiJ7XCJhY3RvclwiOlwianVuLWxlZS1mZWVkbWVcIixcImFjdG9yX2lkXCI6XCIyMzkyODI4NjJcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiNjU4NDUwNzc0MDhcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcImYwOTg2ZThlOGRmZjQ1YmQ1N2M0NjYzNWJiZDYyMjc1ZmExOWU3MzFcIixcInJlZlwiOlwicmVmcy9oZWFkcy9LREktMzk2Ny1yb2xlLWJhc2VkLXBlcm1pc3Npb24tc2V0XCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjIyNzA5ODcyMzUwXCIsXCJydW5fbnVtYmVyXCI6XCI1XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiNDBlYTI2NGQxZjM1M2RiNWM1NjY3ZjE5ZTkzYjQ3ZmJkMDRiMjY0MVwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvS0RJLTM5Njctcm9sZS1iYXNlZC1wZXJtaXNzaW9uLXNldFwiLFwid29ya2Zsb3dfc2hhXCI6XCI0MGVhMjY0ZDFmMzUzZGI1YzU2NjdmMTllOTNiNDdmYmQwNGIyNjQxXCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9LREktMzk2Ny1yb2xlLWJhc2VkLXBlcm1pc3Npb24tc2V0Iiwib3JjaF9pZCI6ImNlMzQyMWNhLWQwMzAtNGNjMy05OWFlLTc3NTRlMjg3ODc2My5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiY2UzNDIxY2EtZDAzMC00Y2MzLTk5YWUtNzc1NGUyODc4NzYzIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJydW5faWQiOiIyMjcwOTg3MjM1MCIsInJ1bl9udW1iZXIiOiI1IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDA1MTEyNyIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOmNlMzQyMWNhLWQwMzAtNGNjMy05OWFlLTc3NTRlMjg3ODc2Mzo1MDA2MjMwMi00ODEyLTU1ZTYtYjc5OS0wNGZhMTQwOGM1YTEgQWN0aW9ucy5SdW5uZXI6Y2UzNDIxY2EtZDAzMC00Y2MzLTk5YWUtNzc1NGUyODc4NzYzOjUwMDYyMzAyLTQ4MTItNTVlNi1iNzk5LTA0ZmExNDA4YzVhMSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czpjZTM0MjFjYS1kMDMwLTRjYzMtOTlhZS03NzU0ZTI4Nzg3NjM6NTAwNjIzMDItNDgxMi01NWU2LWI3OTktMDRmYTE0MDhjNWExIGdlbmVyYXRlX2lkX3Rva2VuOmNlMzQyMWNhLWQwMzAtNGNjMy05OWFlLTc3NTRlMjg3ODc2Mzo1MDA2MjMwMi00ODEyLTU1ZTYtYjc5OS0wNGZhMTQwOGM1YTEgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiI0MGVhMjY0ZDFmMzUzZGI1YzU2NjdmMTllOTNiNDdmYmQwNGIyNjQxIiwidHJ1c3RfdGllciI6IjEifQ.aeU8No1x4itqUvyukUxDKB__eDZO6Ri7zpl6a_lGCIao4PL0lyi5QDfGxbCwYOz1FvlJtvo5o0hHPeJk7BfhksbhnBSbjhhRwO0eROAruO4Zce9eU-meXIE-SFaukAPChmY9tqjtCJmQWkvLy8ZW1v56X2lTaHn0Hy6dzsBwp13z18HKMFV4mLNv_miBdD1-8Y6x9XPtlUGzuX3tfCeJ5Z8PQVjJ6JssXw34oOvUfZ8m4c776JM-RA4La5Z9E-EjVV5lZ1v64O4RH7Sl1o5-MX5Hilq1FZUP9eCerxWsLgse7_c_l4gaGLL96rBOTAzhefB-umvb0-XKBOcLYkHZ3g", 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_d6a74254-687a-4b38-aa3c-9556069667b9", INVOCATION_ID: "f59ba116a8c2409abdd88ac0ee7656b5", 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_4", GITHUB_RUN_NUMBER: "5", 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 1000051127", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "KDI-3967-role-based-permission-set", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* 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: "1.1.3-dev", 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: "40ea264d1f353db5c5667f19e93b47fbd04b2641", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.2", GITHUB_REF: "refs/heads/KDI-3967-role-based-permission-set", 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_4c58d9da-f957-44ba-9de3-45251e37b43e", 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: "", 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/174//idtoken/ce3421ca-d030-4cc3-99ae-7754e2878763/50062302-4812-55e6-b799-04fa1408c5a1?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_4c58d9da-f957-44ba-9de3-45251e37b43e", npm_package_exports___types: "./dist/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", 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_4c58d9da-f957-44ba-9de3-45251e37b43e", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1837
|
+
var xr = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_602edbcf-85ff-4c1b-895d-5ad4221d4438", 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_602edbcf-85ff-4c1b-895d-5ad4221d4438", 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", 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.3.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-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1899", ACTIONS_ORCHESTRATION_ID: "4957ccfe-a7b0-4388-9788-5cc0785886e9.publish.publish.__default", npm_package_dependencies__feedmepos_ui_library: "^1.7.0", 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_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", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260302.42.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:15805", 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.7/x64", GITHUB_RUN_ID: "22894856714", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "7d4245b814343e6d73fab51d046f5b25c37d4f86", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/KDI-3967-role-based-permission-set", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9LREktMzk2Ny1yb2xlLWJhc2VkLXBlcm1pc3Npb24tc2V0XCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsImF1ZCI6InZzbzo2Zjk2ZmE4OS1iN2JmLTQ4NzgtYmFkMy04OTgwMDY1NjZiNmUiLCJiaWxsaW5nX293bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwiZXhwIjoxNzczMTU1NTQxLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3ByaW1hcnlzaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJpYXQiOjE3NzMxMzMzNDEsImlzcyI6Imh0dHBzOi8vdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJqb2JfaWQiOiJiNzJiMzU5Zi1mNmYyLTVkNWYtODRkMi01ZTRkNjNjN2IyOTEiLCJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJuYmYiOjE3NzMxMzMwNDEsIm9pZGNfZXh0cmEiOiJ7XCJhY3RvclwiOlwianVuLWxlZS1mZWVkbWVcIixcImFjdG9yX2lkXCI6XCIyMzkyODI4NjJcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiNjY0MjYyNjIwMDdcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcImYwOTg2ZThlOGRmZjQ1YmQ1N2M0NjYzNWJiZDYyMjc1ZmExOWU3MzFcIixcInJlZlwiOlwicmVmcy9oZWFkcy9LREktMzk2Ny1yb2xlLWJhc2VkLXBlcm1pc3Npb24tc2V0XCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjIyODk0ODU2NzE0XCIsXCJydW5fbnVtYmVyXCI6XCIxM1wiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcIjdkNDI0NWI4MTQzNDNlNmQ3M2ZhYjUxZDA0NmY1YjI1YzM3ZDRmODZcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIGhybS1wb3J0YWxcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtaHJtLXBvcnRhbC10cnVzdGVkLnltbEByZWZzL2hlYWRzL0tESS0zOTY3LXJvbGUtYmFzZWQtcGVybWlzc2lvbi1zZXRcIixcIndvcmtmbG93X3NoYVwiOlwiN2Q0MjQ1YjgxNDM0M2U2ZDczZmFiNTFkMDQ2ZjViMjVjMzdkNGY4NlwifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvaHJtLXNlcnZpY2U6cmVmOnJlZnMvaGVhZHMvS0RJLTM5Njctcm9sZS1iYXNlZC1wZXJtaXNzaW9uLXNldCIsIm9yY2hfaWQiOiI0OTU3Y2NmZS1hN2IwLTQzODgtOTc4OC01Y2MwNzg1ODg2ZTkucHVibGlzaC5wdWJsaXNoLl9fZGVmYXVsdCIsIm93bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwicGxhbl9pZCI6IjQ5NTdjY2ZlLWE3YjAtNDM4OC05Nzg4LTVjYzA3ODU4ODZlOSIsInJlcG9zaXRvcnlfaWQiOiIxMTI0NjcyMjM1IiwicnVuX2lkIjoiMjI4OTQ4NTY3MTQiLCJydW5fbnVtYmVyIjoiMTMiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMDUyMjkxIiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6NDk1N2NjZmUtYTdiMC00Mzg4LTk3ODgtNWNjMDc4NTg4NmU5OmI3MmIzNTlmLWY2ZjItNWQ1Zi04NGQyLTVlNGQ2M2M3YjI5MSBBY3Rpb25zLlJ1bm5lcjo0OTU3Y2NmZS1hN2IwLTQzODgtOTc4OC01Y2MwNzg1ODg2ZTk6YjcyYjM1OWYtZjZmMi01ZDVmLTg0ZDItNWU0ZDYzYzdiMjkxIEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOjQ5NTdjY2ZlLWE3YjAtNDM4OC05Nzg4LTVjYzA3ODU4ODZlOTpiNzJiMzU5Zi1mNmYyLTVkNWYtODRkMi01ZTRkNjNjN2IyOTEgZ2VuZXJhdGVfaWRfdG9rZW46NDk1N2NjZmUtYTdiMC00Mzg4LTk3ODgtNWNjMDc4NTg4NmU5OmI3MmIzNTlmLWY2ZjItNWQ1Zi04NGQyLTVlNGQ2M2M3YjI5MSBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6IjdkNDI0NWI4MTQzNDNlNmQ3M2ZhYjUxZDA0NmY1YjI1YzM3ZDRmODYiLCJ0cnVzdF90aWVyIjoiMSJ9.H510XUrqDh_mEewrgCGQUeWuTthFWdVzwG3zBwKe1YwxevTwWvsqJ1YRAgyhsNCtDzaFeo9MKy99Vcpz_Hs4QS1PXdKQfjuHW1g-U-2mrmDFsMC5df7_miQS6KKESsM7PRaEWDWTRLs_J2Nj1wFVpRGCDK_Qs-tem9VAcuH9J3xHe7v2TlJCIpNrxdfCykK3py3Np4PcdPe5CPPVu5HovFCiXWOpVP5cWYnPpd5frmhixRm85a80H4a46xsWWenV_gaZkI7_SQ7IanMFCoFc6oaXWZrfkzCWE0vWFUSpP1r-kt-66b6wu_6d69JpoCsBMigaUmxJ1NEU1FodKMjB6w", 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_908009de-0e6c-45e9-99eb-22a5a896de5e", INVOCATION_ID: "de872de677ec49db9f8e3f9603add98b", 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_4", GITHUB_RUN_NUMBER: "13", 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 1000052291", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "KDI-3967-role-based-permission-set", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* 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: "1.1.4-dev.3", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts", npm_package_dependencies__feedmepos_hrm_permission: "workspace:^", npm_package_devDependencies__rushstack_eslint_patch: "^1.3.3", npm_package_devDependencies_eslint_plugin_unused_imports: "^4.3.0", npm_package_devDependencies_jsdom: "^24.0.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_uuid: "^10.0.0", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "7d4245b814343e6d73fab51d046f5b25c37d4f86", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.2", GITHUB_REF: "refs/heads/KDI-3967-role-based-permission-set", 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_602edbcf-85ff-4c1b-895d-5ad4221d4438", 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: "", 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/112//idtoken/4957ccfe-a7b0-4388-9788-5cc0785886e9/b72b359f-f6f2-5d5f-84d2-5e4d63c7b291?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_602edbcf-85ff-4c1b-895d-5ad4221d4438", npm_package_exports___types: "./dist/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", 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_602edbcf-85ff-4c1b-895d-5ad4221d4438", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1837
1838
|
const Zr = "10.0.5";
|
|
1838
|
-
function
|
|
1839
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
1839
|
+
function Yr() {
|
|
1840
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Te().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Te().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Te().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Te().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1840
1841
|
}
|
|
1841
1842
|
const Pe = {
|
|
1842
1843
|
// composer module errors
|
|
@@ -1854,47 +1855,47 @@ const Pe = {
|
|
|
1854
1855
|
function Ze(e, ...t) {
|
|
1855
1856
|
return ot(e, null, void 0);
|
|
1856
1857
|
}
|
|
1857
|
-
const wt = /* @__PURE__ */
|
|
1858
|
-
function
|
|
1858
|
+
const wt = /* @__PURE__ */ ye("__translateVNode"), Ft = /* @__PURE__ */ ye("__datetimeParts"), Vt = /* @__PURE__ */ ye("__numberParts"), Hr = ye("__setPluralRules"), Wn = /* @__PURE__ */ ye("__injectWithOption"), Ut = /* @__PURE__ */ ye("__dispose");
|
|
1859
|
+
function Ye(e) {
|
|
1859
1860
|
if (!F(e))
|
|
1860
1861
|
return e;
|
|
1861
1862
|
for (const t in e)
|
|
1862
1863
|
if (ie(e, t))
|
|
1863
1864
|
if (!t.includes("."))
|
|
1864
|
-
F(e[t]) &&
|
|
1865
|
+
F(e[t]) && Ye(e[t]);
|
|
1865
1866
|
else {
|
|
1866
1867
|
const n = t.split("."), s = n.length - 1;
|
|
1867
1868
|
let l = e, r = !1;
|
|
1868
1869
|
for (let c = 0; c < s; c++) {
|
|
1869
|
-
if (n[c] in l || (l[n[c]] =
|
|
1870
|
+
if (n[c] in l || (l[n[c]] = U()), !F(l[n[c]])) {
|
|
1870
1871
|
r = !0;
|
|
1871
1872
|
break;
|
|
1872
1873
|
}
|
|
1873
1874
|
l = l[n[c]];
|
|
1874
1875
|
}
|
|
1875
|
-
r || (l[n[s]] = e[t], delete e[t]), F(l[n[s]]) &&
|
|
1876
|
+
r || (l[n[s]] = e[t], delete e[t]), F(l[n[s]]) && Ye(l[n[s]]);
|
|
1876
1877
|
}
|
|
1877
1878
|
return e;
|
|
1878
1879
|
}
|
|
1879
|
-
function
|
|
1880
|
-
const { messages: n, __i18n: s, messageResolver: l, flatJson: r } = t, c = w(n) ? n : $(s) ?
|
|
1880
|
+
function jn(e, t) {
|
|
1881
|
+
const { messages: n, __i18n: s, messageResolver: l, flatJson: r } = t, c = w(n) ? n : $(s) ? U() : { [e]: U() };
|
|
1881
1882
|
if ($(s) && s.forEach((m) => {
|
|
1882
1883
|
if ("locale" in m && "resource" in m) {
|
|
1883
1884
|
const { locale: u, resource: _ } = m;
|
|
1884
|
-
u ? (c[u] = c[u] ||
|
|
1885
|
+
u ? (c[u] = c[u] || U(), nt(_, c[u])) : nt(_, c);
|
|
1885
1886
|
} else
|
|
1886
1887
|
R(m) && nt(JSON.parse(m), c);
|
|
1887
1888
|
}), l == null && r)
|
|
1888
1889
|
for (const m in c)
|
|
1889
|
-
ie(c, m) &&
|
|
1890
|
+
ie(c, m) && Ye(c[m]);
|
|
1890
1891
|
return c;
|
|
1891
1892
|
}
|
|
1892
|
-
function
|
|
1893
|
+
function Gn(e) {
|
|
1893
1894
|
return e.type;
|
|
1894
1895
|
}
|
|
1895
1896
|
function Br(e, t, n) {
|
|
1896
|
-
let s = F(t.messages) ? t.messages :
|
|
1897
|
-
"__i18nGlobal" in n && (s =
|
|
1897
|
+
let s = F(t.messages) ? t.messages : U();
|
|
1898
|
+
"__i18nGlobal" in n && (s = jn(e.locale.value, {
|
|
1898
1899
|
messages: s,
|
|
1899
1900
|
__i18n: n.__i18nGlobal
|
|
1900
1901
|
}));
|
|
@@ -1921,17 +1922,17 @@ function In(e) {
|
|
|
1921
1922
|
return ne(Bn, null, e, 0);
|
|
1922
1923
|
}
|
|
1923
1924
|
const Nn = "__INTLIFY_META__", vn = () => [], Jr = () => !1;
|
|
1924
|
-
let
|
|
1925
|
-
function
|
|
1925
|
+
let Tn = 0;
|
|
1926
|
+
function kn(e) {
|
|
1926
1927
|
return (t, n, s, l) => e(n, s, Wt() || void 0, l);
|
|
1927
1928
|
}
|
|
1928
1929
|
const $r = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1929
1930
|
const e = Wt();
|
|
1930
1931
|
let t = null;
|
|
1931
|
-
return e && (t =
|
|
1932
|
+
return e && (t = Gn(e)[Nn]) ? { [Nn]: t } : null;
|
|
1932
1933
|
};
|
|
1933
1934
|
function Kr(e = {}) {
|
|
1934
|
-
const { __root: t, __injectWithOption: n } = e, s = t === void 0, l = e.flatJson, r = Qt ?
|
|
1935
|
+
const { __root: t, __injectWithOption: n } = e, s = t === void 0, l = e.flatJson, r = Qt ? ke : Hn;
|
|
1935
1936
|
let c = J(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1936
1937
|
const m = r(
|
|
1937
1938
|
// prettier-ignore
|
|
@@ -1939,10 +1940,10 @@ function Kr(e = {}) {
|
|
|
1939
1940
|
), u = r(
|
|
1940
1941
|
// prettier-ignore
|
|
1941
1942
|
t && c ? t.fallbackLocale.value : R(e.fallbackLocale) || $(e.fallbackLocale) || w(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : m.value
|
|
1942
|
-
), _ = r(
|
|
1943
|
-
let
|
|
1944
|
-
const
|
|
1945
|
-
let
|
|
1943
|
+
), _ = r(jn(m.value, e)), g = r(w(e.datetimeFormats) ? e.datetimeFormats : { [m.value]: {} }), E = r(w(e.numberFormats) ? e.numberFormats : { [m.value]: {} });
|
|
1944
|
+
let h = t ? t.missingWarn : J(e.missingWarn) || st(e.missingWarn) ? e.missingWarn : !0, C = t ? t.fallbackWarn : J(e.fallbackWarn) || st(e.fallbackWarn) ? e.fallbackWarn : !0, M = t ? t.fallbackRoot : J(e.fallbackRoot) ? e.fallbackRoot : !0, T = !!e.fallbackFormat, O = Z(e.missing) ? e.missing : null, i = Z(e.missing) ? kn(e.missing) : null, d = Z(e.postTranslation) ? e.postTranslation : null, v = t ? t.warnHtmlMessage : J(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, p = !!e.escapeParameter;
|
|
1945
|
+
const y = t ? t.modifiers : w(e.modifiers) ? e.modifiers : {};
|
|
1946
|
+
let k = e.pluralRules || t && t.pluralRules, N;
|
|
1946
1947
|
N = (() => {
|
|
1947
1948
|
s && mn(null);
|
|
1948
1949
|
const f = {
|
|
@@ -1950,12 +1951,12 @@ function Kr(e = {}) {
|
|
|
1950
1951
|
locale: m.value,
|
|
1951
1952
|
fallbackLocale: u.value,
|
|
1952
1953
|
messages: _.value,
|
|
1953
|
-
modifiers:
|
|
1954
|
-
pluralRules:
|
|
1954
|
+
modifiers: y,
|
|
1955
|
+
pluralRules: k,
|
|
1955
1956
|
missing: i === null ? void 0 : i,
|
|
1956
|
-
missingWarn:
|
|
1957
|
+
missingWarn: h,
|
|
1957
1958
|
fallbackWarn: C,
|
|
1958
|
-
fallbackFormat:
|
|
1959
|
+
fallbackFormat: T,
|
|
1959
1960
|
unresolving: !0,
|
|
1960
1961
|
postTranslation: d === null ? void 0 : d,
|
|
1961
1962
|
warnHtmlMessage: v,
|
|
@@ -1964,30 +1965,30 @@ function Kr(e = {}) {
|
|
|
1964
1965
|
messageCompiler: e.messageCompiler,
|
|
1965
1966
|
__meta: { framework: "vue" }
|
|
1966
1967
|
};
|
|
1967
|
-
f.datetimeFormats =
|
|
1968
|
+
f.datetimeFormats = g.value, f.numberFormats = E.value, f.__datetimeFormatters = w(N) ? N.__datetimeFormatters : void 0, f.__numberFormatters = w(N) ? N.__numberFormatters : void 0;
|
|
1968
1969
|
const I = Rr(f);
|
|
1969
1970
|
return s && mn(I), I;
|
|
1970
|
-
})(),
|
|
1971
|
-
function
|
|
1971
|
+
})(), Ue(N, m.value, u.value);
|
|
1972
|
+
function G() {
|
|
1972
1973
|
return [
|
|
1973
1974
|
m.value,
|
|
1974
1975
|
u.value,
|
|
1975
1976
|
_.value,
|
|
1976
|
-
|
|
1977
|
+
g.value,
|
|
1977
1978
|
E.value
|
|
1978
1979
|
];
|
|
1979
1980
|
}
|
|
1980
|
-
const D =
|
|
1981
|
+
const D = j({
|
|
1981
1982
|
get: () => m.value,
|
|
1982
1983
|
set: (f) => {
|
|
1983
1984
|
m.value = f, N.locale = m.value;
|
|
1984
1985
|
}
|
|
1985
|
-
}), S =
|
|
1986
|
+
}), S = j({
|
|
1986
1987
|
get: () => u.value,
|
|
1987
1988
|
set: (f) => {
|
|
1988
|
-
u.value = f, N.fallbackLocale = u.value,
|
|
1989
|
+
u.value = f, N.fallbackLocale = u.value, Ue(N, m.value, f);
|
|
1989
1990
|
}
|
|
1990
|
-
}), L =
|
|
1991
|
+
}), L = j(() => _.value), x = /* @__PURE__ */ j(() => g.value), re = /* @__PURE__ */ j(() => E.value);
|
|
1991
1992
|
function Le() {
|
|
1992
1993
|
return Z(d) ? d : null;
|
|
1993
1994
|
}
|
|
@@ -1998,10 +1999,10 @@ function Kr(e = {}) {
|
|
|
1998
1999
|
return O;
|
|
1999
2000
|
}
|
|
2000
2001
|
function mt(f) {
|
|
2001
|
-
f !== null && (i =
|
|
2002
|
+
f !== null && (i = kn(f)), O = f, N.missing = i;
|
|
2002
2003
|
}
|
|
2003
|
-
const de = (f, I, W,
|
|
2004
|
-
|
|
2004
|
+
const de = (f, I, W, H, Ie, $e) => {
|
|
2005
|
+
G();
|
|
2005
2006
|
let Se;
|
|
2006
2007
|
try {
|
|
2007
2008
|
xr.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (N.fallbackContext = t ? Lr() : void 0), Se = f(N);
|
|
@@ -2011,21 +2012,21 @@ function Kr(e = {}) {
|
|
|
2011
2012
|
if (W !== "translate exists" && // for not `te` (e.g `t`)
|
|
2012
2013
|
K(Se) && Se === it || W === "translate exists" && !Se) {
|
|
2013
2014
|
const [Zn, La] = I();
|
|
2014
|
-
return t && M ?
|
|
2015
|
+
return t && M ? H(t) : Ie(Zn);
|
|
2015
2016
|
} else {
|
|
2016
2017
|
if ($e(Se))
|
|
2017
2018
|
return Se;
|
|
2018
2019
|
throw Ze(Pe.UNEXPECTED_RETURN_TYPE);
|
|
2019
2020
|
}
|
|
2020
2021
|
};
|
|
2021
|
-
function
|
|
2022
|
+
function He(...f) {
|
|
2022
2023
|
return de((I) => Reflect.apply(En, null, [I, ...f]), () => Pt(...f), "translate", (I) => Reflect.apply(I.t, I, [...f]), (I) => I, (I) => R(I));
|
|
2023
2024
|
}
|
|
2024
2025
|
function Be(...f) {
|
|
2025
|
-
const [I, W,
|
|
2026
|
-
if (
|
|
2026
|
+
const [I, W, H] = f;
|
|
2027
|
+
if (H && !F(H))
|
|
2027
2028
|
throw Ze(Pe.INVALID_ARGUMENT);
|
|
2028
|
-
return
|
|
2029
|
+
return He(I, W, z({ resolvedMessage: !0 }, H || {}));
|
|
2029
2030
|
}
|
|
2030
2031
|
function dt(...f) {
|
|
2031
2032
|
return de((I) => Reflect.apply(_n, null, [I, ...f]), () => Dt(...f), "datetime format", (I) => Reflect.apply(I.d, I, [...f]), () => cn, (I) => R(I));
|
|
@@ -2041,40 +2042,40 @@ function Kr(e = {}) {
|
|
|
2041
2042
|
interpolate: (f) => f,
|
|
2042
2043
|
type: "vnode"
|
|
2043
2044
|
};
|
|
2044
|
-
function
|
|
2045
|
+
function bt(...f) {
|
|
2045
2046
|
return de((I) => {
|
|
2046
2047
|
let W;
|
|
2047
|
-
const
|
|
2048
|
+
const H = I;
|
|
2048
2049
|
try {
|
|
2049
|
-
|
|
2050
|
+
H.processor = pt, W = Reflect.apply(En, null, [H, ...f]);
|
|
2050
2051
|
} finally {
|
|
2051
|
-
|
|
2052
|
+
H.processor = null;
|
|
2052
2053
|
}
|
|
2053
2054
|
return W;
|
|
2054
2055
|
}, () => Pt(...f), "translate", (I) => I[wt](...f), (I) => [In(I)], (I) => $(I));
|
|
2055
2056
|
}
|
|
2056
2057
|
function Je(...f) {
|
|
2057
|
-
return de((I) => Reflect.apply(pn, null, [I, ...f]), () => Mt(...f), "number format", (I) => I[
|
|
2058
|
+
return de((I) => Reflect.apply(pn, null, [I, ...f]), () => Mt(...f), "number format", (I) => I[Vt](...f), vn, (I) => R(I) || $(I));
|
|
2058
2059
|
}
|
|
2059
|
-
function
|
|
2060
|
+
function gt(...f) {
|
|
2060
2061
|
return de((I) => Reflect.apply(_n, null, [I, ...f]), () => Dt(...f), "datetime format", (I) => I[Ft](...f), vn, (I) => R(I) || $(I));
|
|
2061
2062
|
}
|
|
2062
|
-
function
|
|
2063
|
-
|
|
2063
|
+
function ht(f) {
|
|
2064
|
+
k = f, N.pluralRules = k;
|
|
2064
2065
|
}
|
|
2065
2066
|
function Et(f, I) {
|
|
2066
2067
|
return de(() => {
|
|
2067
2068
|
if (!f)
|
|
2068
2069
|
return !1;
|
|
2069
|
-
const W = R(I) ? I : m.value,
|
|
2070
|
+
const W = R(I) ? I : m.value, H = Re(W), Ie = N.messageResolver(H, f);
|
|
2070
2071
|
return Me(Ie) || ae(Ie) || R(Ie);
|
|
2071
2072
|
}, () => [f], "translate exists", (W) => Reflect.apply(W.te, W, [f, I]), Jr, (W) => J(W));
|
|
2072
2073
|
}
|
|
2073
2074
|
function It(f) {
|
|
2074
2075
|
let I = null;
|
|
2075
2076
|
const W = Cn(N, u.value, m.value);
|
|
2076
|
-
for (let
|
|
2077
|
-
const Ie = _.value[W[
|
|
2077
|
+
for (let H = 0; H < W.length; H++) {
|
|
2078
|
+
const Ie = _.value[W[H]] || {}, $e = N.messageResolver(Ie, f);
|
|
2078
2079
|
if ($e != null) {
|
|
2079
2080
|
I = $e;
|
|
2080
2081
|
break;
|
|
@@ -2092,71 +2093,71 @@ function Kr(e = {}) {
|
|
|
2092
2093
|
function Ce(f, I) {
|
|
2093
2094
|
if (l) {
|
|
2094
2095
|
const W = { [f]: I };
|
|
2095
|
-
for (const
|
|
2096
|
-
ie(W,
|
|
2096
|
+
for (const H in W)
|
|
2097
|
+
ie(W, H) && Ye(W[H]);
|
|
2097
2098
|
I = W[f];
|
|
2098
2099
|
}
|
|
2099
2100
|
_.value[f] = I, N.messages = _.value;
|
|
2100
2101
|
}
|
|
2101
|
-
function
|
|
2102
|
+
function Ve(f, I) {
|
|
2102
2103
|
_.value[f] = _.value[f] || {};
|
|
2103
2104
|
const W = { [f]: I };
|
|
2104
2105
|
if (l)
|
|
2105
|
-
for (const
|
|
2106
|
-
ie(W,
|
|
2106
|
+
for (const H in W)
|
|
2107
|
+
ie(W, H) && Ye(W[H]);
|
|
2107
2108
|
I = W[f], nt(I, _.value[f]), N.messages = _.value;
|
|
2108
2109
|
}
|
|
2109
2110
|
function Nt(f) {
|
|
2110
|
-
return
|
|
2111
|
+
return g.value[f] || {};
|
|
2111
2112
|
}
|
|
2112
2113
|
function a(f, I) {
|
|
2113
|
-
|
|
2114
|
+
g.value[f] = I, N.datetimeFormats = g.value, fn(N, f, I);
|
|
2114
2115
|
}
|
|
2115
2116
|
function o(f, I) {
|
|
2116
|
-
|
|
2117
|
+
g.value[f] = z(g.value[f] || {}, I), N.datetimeFormats = g.value, fn(N, f, I);
|
|
2117
2118
|
}
|
|
2118
|
-
function
|
|
2119
|
+
function b(f) {
|
|
2119
2120
|
return E.value[f] || {};
|
|
2120
2121
|
}
|
|
2121
2122
|
function A(f, I) {
|
|
2122
|
-
E.value[f] = I, N.numberFormats = E.value,
|
|
2123
|
+
E.value[f] = I, N.numberFormats = E.value, bn(N, f, I);
|
|
2123
2124
|
}
|
|
2124
|
-
function
|
|
2125
|
-
E.value[f] = z(E.value[f] || {}, I), N.numberFormats = E.value,
|
|
2125
|
+
function Y(f, I) {
|
|
2126
|
+
E.value[f] = z(E.value[f] || {}, I), N.numberFormats = E.value, bn(N, f, I);
|
|
2126
2127
|
}
|
|
2127
|
-
|
|
2128
|
-
c && (m.value = f, N.locale = f,
|
|
2128
|
+
Tn++, t && Qt && (Rt(t.locale, (f) => {
|
|
2129
|
+
c && (m.value = f, N.locale = f, Ue(N, m.value, u.value));
|
|
2129
2130
|
}), Rt(t.fallbackLocale, (f) => {
|
|
2130
|
-
c && (u.value = f, N.fallbackLocale = f,
|
|
2131
|
+
c && (u.value = f, N.fallbackLocale = f, Ue(N, m.value, u.value));
|
|
2131
2132
|
}));
|
|
2132
2133
|
const P = {
|
|
2133
|
-
id:
|
|
2134
|
+
id: Tn,
|
|
2134
2135
|
locale: D,
|
|
2135
2136
|
fallbackLocale: S,
|
|
2136
2137
|
get inheritLocale() {
|
|
2137
2138
|
return c;
|
|
2138
2139
|
},
|
|
2139
2140
|
set inheritLocale(f) {
|
|
2140
|
-
c = f, f && t && (m.value = t.locale.value, u.value = t.fallbackLocale.value,
|
|
2141
|
+
c = f, f && t && (m.value = t.locale.value, u.value = t.fallbackLocale.value, Ue(N, m.value, u.value));
|
|
2141
2142
|
},
|
|
2142
2143
|
get availableLocales() {
|
|
2143
2144
|
return Object.keys(_.value).sort();
|
|
2144
2145
|
},
|
|
2145
2146
|
messages: L,
|
|
2146
2147
|
get modifiers() {
|
|
2147
|
-
return
|
|
2148
|
+
return y;
|
|
2148
2149
|
},
|
|
2149
2150
|
get pluralRules() {
|
|
2150
|
-
return
|
|
2151
|
+
return k || {};
|
|
2151
2152
|
},
|
|
2152
2153
|
get isGlobal() {
|
|
2153
2154
|
return s;
|
|
2154
2155
|
},
|
|
2155
2156
|
get missingWarn() {
|
|
2156
|
-
return
|
|
2157
|
+
return h;
|
|
2157
2158
|
},
|
|
2158
2159
|
set missingWarn(f) {
|
|
2159
|
-
|
|
2160
|
+
h = f, N.missingWarn = h;
|
|
2160
2161
|
},
|
|
2161
2162
|
get fallbackWarn() {
|
|
2162
2163
|
return C;
|
|
@@ -2171,10 +2172,10 @@ function Kr(e = {}) {
|
|
|
2171
2172
|
M = f;
|
|
2172
2173
|
},
|
|
2173
2174
|
get fallbackFormat() {
|
|
2174
|
-
return
|
|
2175
|
+
return T;
|
|
2175
2176
|
},
|
|
2176
2177
|
set fallbackFormat(f) {
|
|
2177
|
-
|
|
2178
|
+
T = f, N.fallbackFormat = T;
|
|
2178
2179
|
},
|
|
2179
2180
|
get warnHtmlMessage() {
|
|
2180
2181
|
return v;
|
|
@@ -2188,17 +2189,17 @@ function Kr(e = {}) {
|
|
|
2188
2189
|
set escapeParameter(f) {
|
|
2189
2190
|
p = f, N.escapeParameter = f;
|
|
2190
2191
|
},
|
|
2191
|
-
t:
|
|
2192
|
+
t: He,
|
|
2192
2193
|
getLocaleMessage: Re,
|
|
2193
2194
|
setLocaleMessage: Ce,
|
|
2194
|
-
mergeLocaleMessage:
|
|
2195
|
+
mergeLocaleMessage: Ve,
|
|
2195
2196
|
getPostTranslationHandler: Le,
|
|
2196
2197
|
setPostTranslationHandler: oe,
|
|
2197
2198
|
getMissingHandler: ut,
|
|
2198
2199
|
setMissingHandler: mt,
|
|
2199
|
-
[
|
|
2200
|
+
[Hr]: ht
|
|
2200
2201
|
};
|
|
2201
|
-
return P.datetimeFormats = x, P.numberFormats = re, P.rt = Be, P.te = Et, P.tm = Fe, P.d = dt, P.n = _t, P.getDateTimeFormat = Nt, P.setDateTimeFormat = a, P.mergeDateTimeFormat = o, P.getNumberFormat =
|
|
2202
|
+
return P.datetimeFormats = x, P.numberFormats = re, P.rt = Be, P.te = Et, P.tm = Fe, P.d = dt, P.n = _t, P.getDateTimeFormat = Nt, P.setDateTimeFormat = a, P.mergeDateTimeFormat = o, P.getNumberFormat = b, P.setNumberFormat = A, P.mergeNumberFormat = Y, P[Wn] = n, P[wt] = bt, P[Ft] = gt, P[Vt] = Je, P;
|
|
2202
2203
|
}
|
|
2203
2204
|
const Bt = {
|
|
2204
2205
|
tag: {
|
|
@@ -2226,7 +2227,7 @@ function zr({ slots: e }, t) {
|
|
|
2226
2227
|
], []) : t.reduce((n, s) => {
|
|
2227
2228
|
const l = e[s];
|
|
2228
2229
|
return l && (n[s] = l()), n;
|
|
2229
|
-
},
|
|
2230
|
+
}, U());
|
|
2230
2231
|
}
|
|
2231
2232
|
function Xn() {
|
|
2232
2233
|
return we;
|
|
@@ -2248,16 +2249,16 @@ function xn(e, t, n, s) {
|
|
|
2248
2249
|
const { slots: l, attrs: r } = t;
|
|
2249
2250
|
return () => {
|
|
2250
2251
|
const c = { part: !0 };
|
|
2251
|
-
let m =
|
|
2252
|
-
e.locale && (c.locale = e.locale), R(e.format) ? c.key = e.format : F(e.format) && (R(e.format.key) && (c.key = e.format.key), m = Object.keys(e.format).reduce((
|
|
2252
|
+
let m = U();
|
|
2253
|
+
e.locale && (c.locale = e.locale), R(e.format) ? c.key = e.format : F(e.format) && (R(e.format.key) && (c.key = e.format.key), m = Object.keys(e.format).reduce((h, C) => n.includes(C) ? z(U(), h, { [C]: e.format[C] }) : h, U()));
|
|
2253
2254
|
const u = s(e.value, c, m);
|
|
2254
2255
|
let _ = [c.key];
|
|
2255
|
-
$(u) ? _ = u.map((
|
|
2256
|
-
const M = l[
|
|
2257
|
-
return Qr(
|
|
2256
|
+
$(u) ? _ = u.map((h, C) => {
|
|
2257
|
+
const M = l[h.type], T = M ? M({ [h.type]: h.value, index: C, parts: u }) : [h.value];
|
|
2258
|
+
return Qr(T) && (T[0].key = `${h.type}-${C}`), T;
|
|
2258
2259
|
}) : R(u) && (_ = [u]);
|
|
2259
|
-
const
|
|
2260
|
-
return Ln(E,
|
|
2260
|
+
const g = z(U(), r), E = R(e.tag) || F(e.tag) ? e.tag : Xn();
|
|
2261
|
+
return Ln(E, g, _);
|
|
2261
2262
|
};
|
|
2262
2263
|
}
|
|
2263
2264
|
z({
|
|
@@ -2278,14 +2279,14 @@ z({
|
|
|
2278
2279
|
type: [String, Object]
|
|
2279
2280
|
}
|
|
2280
2281
|
}, Bt);
|
|
2281
|
-
const qr = /* @__PURE__ */
|
|
2282
|
+
const qr = /* @__PURE__ */ ye("global-vue-i18n");
|
|
2282
2283
|
function ct(e = {}) {
|
|
2283
2284
|
const t = Wt();
|
|
2284
2285
|
if (t == null)
|
|
2285
2286
|
throw Ze(Pe.MUST_BE_CALL_SETUP_TOP);
|
|
2286
2287
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2287
2288
|
throw Ze(Pe.NOT_INSTALLED);
|
|
2288
|
-
const n = ea(t), s = na(n), l =
|
|
2289
|
+
const n = ea(t), s = na(n), l = Gn(t), r = ta(e, l);
|
|
2289
2290
|
if (r === "global")
|
|
2290
2291
|
return Br(s, e, l), s;
|
|
2291
2292
|
if (r === "parent") {
|
|
@@ -2296,12 +2297,12 @@ function ct(e = {}) {
|
|
|
2296
2297
|
let m = c.__getInstance(t);
|
|
2297
2298
|
if (m == null) {
|
|
2298
2299
|
const u = z({}, e);
|
|
2299
|
-
"__i18n" in l && (u.__i18n = l.__i18n), s && (u.__root = s), m = Kr(u), c.__composerExtend && (m[
|
|
2300
|
+
"__i18n" in l && (u.__i18n = l.__i18n), s && (u.__root = s), m = Kr(u), c.__composerExtend && (m[Ut] = c.__composerExtend(m)), aa(c, t, m), c.__setInstance(t, m);
|
|
2300
2301
|
}
|
|
2301
2302
|
return m;
|
|
2302
2303
|
}
|
|
2303
2304
|
function ea(e) {
|
|
2304
|
-
const t =
|
|
2305
|
+
const t = Yn(e.isCE ? qr : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2305
2306
|
if (!t)
|
|
2306
2307
|
throw Ze(e.isCE ? Pe.NOT_INSTALLED_WITH_PROVIDE : Pe.UNEXPECTED_ERROR);
|
|
2307
2308
|
return t;
|
|
@@ -2334,20 +2335,20 @@ function ra(e, t = !1) {
|
|
|
2334
2335
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2335
2336
|
}
|
|
2336
2337
|
function aa(e, t, n) {
|
|
2337
|
-
|
|
2338
|
-
}, t),
|
|
2338
|
+
jt(() => {
|
|
2339
|
+
}, t), yn(() => {
|
|
2339
2340
|
const s = n;
|
|
2340
2341
|
e.__deleteInstance(t);
|
|
2341
|
-
const l = s[
|
|
2342
|
-
l && (l(), delete s[
|
|
2342
|
+
const l = s[Ut];
|
|
2343
|
+
l && (l(), delete s[Ut]);
|
|
2343
2344
|
}, t);
|
|
2344
2345
|
}
|
|
2345
|
-
|
|
2346
|
+
Yr();
|
|
2346
2347
|
vr(sr);
|
|
2347
|
-
|
|
2348
|
-
|
|
2348
|
+
Tr(Er);
|
|
2349
|
+
kr(Cn);
|
|
2349
2350
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2350
|
-
const e =
|
|
2351
|
+
const e = Te();
|
|
2351
2352
|
e.__INTLIFY__ = !0, rr(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2352
2353
|
}
|
|
2353
2354
|
const et = /* @__PURE__ */ ce({
|
|
@@ -2361,16 +2362,16 @@ const et = /* @__PURE__ */ ce({
|
|
|
2361
2362
|
setup(e) {
|
|
2362
2363
|
const { t } = ct();
|
|
2363
2364
|
return (n, s) => {
|
|
2364
|
-
const l =
|
|
2365
|
+
const l = je("FmIcon"), r = je("FmTooltip");
|
|
2365
2366
|
return B(), Oe(r, {
|
|
2366
2367
|
variant: "plain",
|
|
2367
2368
|
placement: "right",
|
|
2368
2369
|
"z-index": 50
|
|
2369
2370
|
}, {
|
|
2370
2371
|
content: se(() => [
|
|
2371
|
-
ee("div", null,
|
|
2372
|
+
ee("div", null, Ge(be(t)("team.memberForm.permissions.inherited")), 1),
|
|
2372
2373
|
(B(!0), te(we, null, me(e.item.setNames, (c) => (B(), te("div", { key: c }, [
|
|
2373
|
-
ee("div", null, "- " +
|
|
2374
|
+
ee("div", null, "- " + Ge(c), 1)
|
|
2374
2375
|
]))), 128))
|
|
2375
2376
|
]),
|
|
2376
2377
|
default: se(() => [
|
|
@@ -2413,7 +2414,7 @@ const et = /* @__PURE__ */ ce({
|
|
|
2413
2414
|
t.title ? (B(), te("div", oa, [
|
|
2414
2415
|
ee("div", null, [
|
|
2415
2416
|
t.required ? (B(), te("span", ia, "*")) : Ne("", !0),
|
|
2416
|
-
Jn(
|
|
2417
|
+
Jn(Ge(t.title), 1)
|
|
2417
2418
|
]),
|
|
2418
2419
|
le(n.$slots, "title-right")
|
|
2419
2420
|
])) : Ne("", !0)
|
|
@@ -2492,38 +2493,38 @@ const da = { class: "col flex items-center" }, _a = {
|
|
|
2492
2493
|
},
|
|
2493
2494
|
emits: ["update:model-value"],
|
|
2494
2495
|
setup(e, { emit: t }) {
|
|
2495
|
-
const n = e, s = t, { t: l } = at(), r =
|
|
2496
|
-
() => n.modelValue.filter((
|
|
2497
|
-
), E =
|
|
2496
|
+
const n = e, s = t, { t: l } = at(), r = ke(!1), c = $n(), m = j(() => 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-${ma(6)}`, _ = j(() => m.value !== !0), g = j(
|
|
2497
|
+
() => n.modelValue.filter((T) => n.options.some((O) => O.value === T))
|
|
2498
|
+
), E = j(
|
|
2498
2499
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2499
|
-
),
|
|
2500
|
+
), h = j(() => n.options.length > 0 && n.options.length === g.value.length);
|
|
2500
2501
|
function C() {
|
|
2501
|
-
const
|
|
2502
|
-
if (
|
|
2503
|
-
s("update:model-value",
|
|
2502
|
+
const T = n.modelValue.filter((O) => !g.value.includes(O));
|
|
2503
|
+
if (h.value === !0)
|
|
2504
|
+
s("update:model-value", T);
|
|
2504
2505
|
else {
|
|
2505
2506
|
const O = n.includeDisabledOptionsWhenSelectAll ? n.options.map((i) => i.value) : n.options.filter((i) => !i.disabled).map((i) => i.value);
|
|
2506
|
-
s("update:model-value", [...
|
|
2507
|
+
s("update:model-value", [...T, ...O]);
|
|
2507
2508
|
}
|
|
2508
2509
|
}
|
|
2509
|
-
function M(
|
|
2510
|
+
function M(T, O) {
|
|
2510
2511
|
let i = We(n.modelValue);
|
|
2511
|
-
O ? i.every((d) => d !==
|
|
2512
|
+
O ? i.every((d) => d !== T) && i.push(T) : i = i.filter((d) => d !== T), s("update:model-value", i);
|
|
2512
2513
|
}
|
|
2513
|
-
return (
|
|
2514
|
-
const i =
|
|
2514
|
+
return (T, O) => {
|
|
2515
|
+
const i = je("FmCheckbox");
|
|
2515
2516
|
return B(), Oe(ua, {
|
|
2516
2517
|
id: u,
|
|
2517
2518
|
title: e.title,
|
|
2518
2519
|
required: !1
|
|
2519
2520
|
}, {
|
|
2520
2521
|
top: se(() => [
|
|
2521
|
-
le(
|
|
2522
|
+
le(T.$slots, "top")
|
|
2522
2523
|
]),
|
|
2523
2524
|
default: se(() => [
|
|
2524
2525
|
n.showAllToggle ? (B(), Oe(i, {
|
|
2525
2526
|
key: 0,
|
|
2526
|
-
"model-value":
|
|
2527
|
+
"model-value": h.value,
|
|
2527
2528
|
disabled: e.disable,
|
|
2528
2529
|
label: E.value,
|
|
2529
2530
|
style: tt(`margin-bottom: ${n.gutter}px`),
|
|
@@ -2549,35 +2550,35 @@ const da = { class: "col flex items-center" }, _a = {
|
|
|
2549
2550
|
value: d.label,
|
|
2550
2551
|
"onUpdate:modelValue": (p) => M(d.value, p)
|
|
2551
2552
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
2552
|
-
le(
|
|
2553
|
+
le(T.$slots, `checkbox-${d.key || d.value}-append`, {
|
|
2553
2554
|
option: d,
|
|
2554
2555
|
selected: e.modelValue.includes(d.value)
|
|
2555
2556
|
})
|
|
2556
2557
|
]),
|
|
2557
|
-
|
|
2558
|
+
be(c)[`checkbox-${d.key || d.value}-end`] && (e.modelValue.includes(d.value) || e.falsyShowSlot) ? (B(), te("div", {
|
|
2558
2559
|
key: 0,
|
|
2559
2560
|
class: Ke([{ "q-checkbox disabled": e.disable || d.disabled }, "col"])
|
|
2560
2561
|
}, [
|
|
2561
|
-
le(
|
|
2562
|
+
le(T.$slots, `checkbox-${d.key || d.value}-end`, {
|
|
2562
2563
|
option: d,
|
|
2563
2564
|
value: e.modelValue.includes(d.value),
|
|
2564
2565
|
disable: e.disable || d.disabled
|
|
2565
2566
|
})
|
|
2566
2567
|
], 2)) : Ne("", !0)
|
|
2567
2568
|
], 2),
|
|
2568
|
-
|
|
2569
|
+
be(c)[`checkbox-${d.key || d.value}-bottom`] && (e.modelValue.includes(d.value) || e.falsyShowSlot) ? (B(), te("div", {
|
|
2569
2570
|
key: 0,
|
|
2570
2571
|
class: Ke(["q-mt-sm", { "q-checkbox disabled": e.disable || d.disabled }]),
|
|
2571
2572
|
style: tt(`margin-left: ${e.bottomSlotIndent}`)
|
|
2572
2573
|
}, [
|
|
2573
|
-
le(
|
|
2574
|
+
le(T.$slots, `checkbox-${d.key || d.value}-bottom`, {
|
|
2574
2575
|
option: d,
|
|
2575
2576
|
disable: e.disable || d.disabled,
|
|
2576
2577
|
value: e.modelValue.includes(d.value)
|
|
2577
2578
|
})
|
|
2578
2579
|
], 6)) : Ne("", !0)
|
|
2579
2580
|
], 6))), 128)),
|
|
2580
|
-
r.value && _.value ? (B(), te("div", _a,
|
|
2581
|
+
r.value && _.value ? (B(), te("div", _a, Ge(m.value), 1)) : Ne("", !0)
|
|
2581
2582
|
]),
|
|
2582
2583
|
_: 3
|
|
2583
2584
|
}, 8, ["title"]);
|
|
@@ -2601,28 +2602,28 @@ const da = { class: "col flex items-center" }, _a = {
|
|
|
2601
2602
|
},
|
|
2602
2603
|
emits: ["update:model-value"],
|
|
2603
2604
|
setup(e, { emit: t }) {
|
|
2604
|
-
const n = e, s = t, l = Object.values(
|
|
2605
|
+
const n = e, s = t, l = Object.values(ss), r = j(() => {
|
|
2605
2606
|
const m = /* @__PURE__ */ new Map();
|
|
2606
2607
|
for (const _ of Ct) {
|
|
2607
|
-
const
|
|
2608
|
-
|
|
2608
|
+
const g = _.category;
|
|
2609
|
+
g && (n.excludedSubjects.includes(_.subject) || (m.has(g) || m.set(g, []), m.get(g).push({ label: _.label, value: _.subject })));
|
|
2609
2610
|
}
|
|
2610
|
-
return [...m.keys()].sort((_,
|
|
2611
|
-
const E = l.indexOf(_),
|
|
2612
|
-
return E === -1 &&
|
|
2611
|
+
return [...m.keys()].sort((_, g) => {
|
|
2612
|
+
const E = l.indexOf(_), h = l.indexOf(g);
|
|
2613
|
+
return E === -1 && h === -1 ? _.localeCompare(g) : E === -1 ? 1 : h === -1 ? -1 : E - h;
|
|
2613
2614
|
}).map((_) => {
|
|
2614
|
-
const
|
|
2615
|
-
return { category: _, options:
|
|
2615
|
+
const g = m.get(_), E = n.modelValue.filter((h) => g.some((C) => C.value === h.subject)).map((h) => h.subject);
|
|
2616
|
+
return { category: _, options: g, selectedSubjects: E };
|
|
2616
2617
|
});
|
|
2617
2618
|
});
|
|
2618
2619
|
function c(m, u) {
|
|
2619
|
-
var
|
|
2620
|
-
const _ = ((
|
|
2620
|
+
var g;
|
|
2621
|
+
const _ = ((g = r.value.find((E) => E.category === m)) == null ? void 0 : g.options) ?? [];
|
|
2621
2622
|
s("update:model-value", [
|
|
2622
2623
|
// Keep permissions from all other categories unchanged
|
|
2623
|
-
...n.modelValue.filter((E) => !_.some((
|
|
2624
|
+
...n.modelValue.filter((E) => !_.some((h) => h.value === E.subject)),
|
|
2624
2625
|
// Replace with the newly selected permissions for this category (strip UI-only category field)
|
|
2625
|
-
...Ct.filter((E) => u.includes(E.subject)).map(({ category: E, ...
|
|
2626
|
+
...Ct.filter((E) => u.includes(E.subject)).map(({ category: E, ...h }) => h)
|
|
2626
2627
|
]);
|
|
2627
2628
|
}
|
|
2628
2629
|
return (m, u) => (B(), te("div", fa, [
|
|
@@ -2632,25 +2633,25 @@ const da = { class: "col flex items-center" }, _a = {
|
|
|
2632
2633
|
options: _.options,
|
|
2633
2634
|
disable: e.disable,
|
|
2634
2635
|
title: _.category,
|
|
2635
|
-
"onUpdate:modelValue": (
|
|
2636
|
+
"onUpdate:modelValue": (g) => c(_.category, g)
|
|
2636
2637
|
}, ve({ _: 2 }, [
|
|
2637
|
-
me(_.options, (
|
|
2638
|
-
name: `checkbox-${
|
|
2638
|
+
me(_.options, (g) => ({
|
|
2639
|
+
name: `checkbox-${g.value}-append`,
|
|
2639
2640
|
fn: se(({ option: E }) => [
|
|
2640
|
-
le(m.$slots, `checkbox-${
|
|
2641
|
+
le(m.$slots, `checkbox-${g.value}-append`, { option: E })
|
|
2641
2642
|
])
|
|
2642
2643
|
}))
|
|
2643
2644
|
]), 1032, ["model-value", "options", "disable", "title", "onUpdate:modelValue"]))), 128))
|
|
2644
2645
|
]));
|
|
2645
2646
|
}
|
|
2646
|
-
}),
|
|
2647
|
+
}), ba = { class: "flex items-center" }, ga = { class: "ml-auto" }, ha = /* @__PURE__ */ ce({
|
|
2647
2648
|
__name: "CollapsibleWrapper",
|
|
2648
2649
|
props: {
|
|
2649
2650
|
title: { default: "" },
|
|
2650
2651
|
initiallyCollapsed: { type: Boolean, default: !1 }
|
|
2651
2652
|
},
|
|
2652
2653
|
setup(e) {
|
|
2653
|
-
const n =
|
|
2654
|
+
const n = ke(e.initiallyCollapsed), s = ke(), l = ke(0);
|
|
2654
2655
|
let r;
|
|
2655
2656
|
function c() {
|
|
2656
2657
|
n.value = !n.value;
|
|
@@ -2658,20 +2659,20 @@ const da = { class: "col flex items-center" }, _a = {
|
|
|
2658
2659
|
function m() {
|
|
2659
2660
|
s.value && (l.value = s.value.scrollHeight);
|
|
2660
2661
|
}
|
|
2661
|
-
return
|
|
2662
|
+
return jt(async () => {
|
|
2662
2663
|
await Kn(), s.value && (r = new ResizeObserver(() => {
|
|
2663
2664
|
m();
|
|
2664
2665
|
}), r.observe(s.value));
|
|
2665
|
-
}),
|
|
2666
|
+
}), yn(() => {
|
|
2666
2667
|
r == null || r.disconnect();
|
|
2667
2668
|
}), (u, _) => {
|
|
2668
|
-
const
|
|
2669
|
+
const g = je("FmButton");
|
|
2669
2670
|
return B(), te(we, null, [
|
|
2670
2671
|
ee("div", { onClick: c }, [
|
|
2671
|
-
ee("div",
|
|
2672
|
+
ee("div", ba, [
|
|
2672
2673
|
le(u.$slots, "title"),
|
|
2673
|
-
ee("div",
|
|
2674
|
-
ne(
|
|
2674
|
+
ee("div", ga, [
|
|
2675
|
+
ne(g, {
|
|
2675
2676
|
icon: n.value ? "keyboard_arrow_down" : "keyboard_arrow_up",
|
|
2676
2677
|
"text-color": "neutral-gray-400",
|
|
2677
2678
|
variant: "tertiary",
|
|
@@ -2691,7 +2692,7 @@ const da = { class: "col flex items-center" }, _a = {
|
|
|
2691
2692
|
], 64);
|
|
2692
2693
|
};
|
|
2693
2694
|
}
|
|
2694
|
-
}), Ea = { class: "fm-typo-en-title-sm-600" },
|
|
2695
|
+
}), Ea = { class: "fm-typo-en-title-sm-600" }, yt = "includedFuture", On = /* @__PURE__ */ ce({
|
|
2695
2696
|
__name: "ConditionPermission",
|
|
2696
2697
|
props: {
|
|
2697
2698
|
modelValue: {
|
|
@@ -2713,35 +2714,35 @@ const da = { class: "col flex items-center" }, _a = {
|
|
|
2713
2714
|
},
|
|
2714
2715
|
emits: ["update:model-value"],
|
|
2715
2716
|
setup(e, { emit: t }) {
|
|
2716
|
-
const n = e, s = t, { t: l } = at(), r =
|
|
2717
|
+
const n = e, s = t, { t: l } = at(), r = j(() => [
|
|
2717
2718
|
{
|
|
2718
2719
|
label: l("team.memberForm.permissions.includedFuture", { context: n.context }),
|
|
2719
|
-
value:
|
|
2720
|
+
value: yt,
|
|
2720
2721
|
// Can only be selected if all other options are selected
|
|
2721
2722
|
disable: !!n.modelValue && n.options.length > n.modelValue.length
|
|
2722
2723
|
},
|
|
2723
2724
|
...n.options.filter(
|
|
2724
2725
|
(_) => _.label.toLocaleLowerCase().includes(u.value.toLocaleLowerCase())
|
|
2725
2726
|
)
|
|
2726
|
-
]), c =
|
|
2727
|
+
]), c = j(() => n.modelValue ? n.modelValue : [yt, ...n.options.map((_) => _.value)]);
|
|
2727
2728
|
function m(_) {
|
|
2728
|
-
const
|
|
2729
|
-
s("update:model-value",
|
|
2729
|
+
const g = _.length === r.value.length;
|
|
2730
|
+
s("update:model-value", g ? null : _.filter((E) => E !== yt));
|
|
2730
2731
|
}
|
|
2731
|
-
const u =
|
|
2732
|
-
return (_,
|
|
2733
|
-
const E =
|
|
2734
|
-
return B(), Oe(
|
|
2732
|
+
const u = ke("");
|
|
2733
|
+
return (_, g) => {
|
|
2734
|
+
const E = je("fm-search");
|
|
2735
|
+
return B(), Oe(ha, null, {
|
|
2735
2736
|
title: se(() => [
|
|
2736
|
-
ee("p", Ea,
|
|
2737
|
+
ee("p", Ea, Ge(be(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
2737
2738
|
]),
|
|
2738
2739
|
default: se(() => [
|
|
2739
2740
|
e.options.length > 1 ? (B(), Oe(E, {
|
|
2740
2741
|
key: 0,
|
|
2741
2742
|
modelValue: u.value,
|
|
2742
|
-
"onUpdate:modelValue":
|
|
2743
|
+
"onUpdate:modelValue": g[0] || (g[0] = (h) => u.value = h),
|
|
2743
2744
|
class: "mt-16",
|
|
2744
|
-
placeholder:
|
|
2745
|
+
placeholder: be(l)("team.memberForm.permissions.search", { context: e.context })
|
|
2745
2746
|
}, null, 8, ["modelValue", "placeholder"])) : Ne("", !0),
|
|
2746
2747
|
ne(Jt, {
|
|
2747
2748
|
"model-value": c.value,
|
|
@@ -2754,10 +2755,10 @@ const da = { class: "col flex items-center" }, _a = {
|
|
|
2754
2755
|
class: "mt-16",
|
|
2755
2756
|
"onUpdate:modelValue": m
|
|
2756
2757
|
}, ve({ _: 2 }, [
|
|
2757
|
-
me(r.value, (
|
|
2758
|
-
name: `checkbox-${
|
|
2758
|
+
me(r.value, (h) => ({
|
|
2759
|
+
name: `checkbox-${h.value}-append`,
|
|
2759
2760
|
fn: se(({ option: C }) => [
|
|
2760
|
-
le(_.$slots, `checkbox-${
|
|
2761
|
+
le(_.$slots, `checkbox-${h.value}-append`, { option: C })
|
|
2761
2762
|
])
|
|
2762
2763
|
}))
|
|
2763
2764
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -2788,7 +2789,7 @@ const da = { class: "col flex items-center" }, _a = {
|
|
|
2788
2789
|
},
|
|
2789
2790
|
emits: ["update:model-value"],
|
|
2790
2791
|
setup(e, { emit: t }) {
|
|
2791
|
-
const n = e, s = t, { t: l } = at(), r =
|
|
2792
|
+
const n = e, s = t, { t: l } = at(), r = j(() => {
|
|
2792
2793
|
const u = n.restaurantIds;
|
|
2793
2794
|
return [
|
|
2794
2795
|
{
|
|
@@ -2799,13 +2800,13 @@ const da = { class: "col flex items-center" }, _a = {
|
|
|
2799
2800
|
...n.roles.map((_) => ({
|
|
2800
2801
|
label: _.name,
|
|
2801
2802
|
value: _._id,
|
|
2802
|
-
disable: !!u && _.restaurants.every(({ id:
|
|
2803
|
+
disable: !!u && _.restaurants.every(({ id: g }) => !u.includes(g))
|
|
2803
2804
|
}))
|
|
2804
2805
|
];
|
|
2805
|
-
}), c =
|
|
2806
|
+
}), c = j(() => n.modelValue ? n.modelValue : [Lt, ...n.roles.map((u) => u._id)]);
|
|
2806
2807
|
function m(u) {
|
|
2807
2808
|
const _ = u.length === r.value.length;
|
|
2808
|
-
s("update:model-value", _ ? null : u.filter((
|
|
2809
|
+
s("update:model-value", _ ? null : u.filter((g) => g !== Lt));
|
|
2809
2810
|
}
|
|
2810
2811
|
return (u, _) => (B(), Oe(Jt, {
|
|
2811
2812
|
"model-value": c.value,
|
|
@@ -2813,13 +2814,13 @@ const da = { class: "col flex items-center" }, _a = {
|
|
|
2813
2814
|
"show-intermediate": !1,
|
|
2814
2815
|
"show-all-toggle": !1,
|
|
2815
2816
|
disable: e.disable,
|
|
2816
|
-
title:
|
|
2817
|
+
title: be(l)("team.memberForm.permissions.roles"),
|
|
2817
2818
|
"onUpdate:modelValue": m
|
|
2818
2819
|
}, ve({ _: 2 }, [
|
|
2819
|
-
me(r.value, (
|
|
2820
|
-
name: `checkbox-${
|
|
2820
|
+
me(r.value, (g) => ({
|
|
2821
|
+
name: `checkbox-${g.value}-append`,
|
|
2821
2822
|
fn: se(({ option: E }) => [
|
|
2822
|
-
le(u.$slots, `checkbox-${
|
|
2823
|
+
le(u.$slots, `checkbox-${g.value}-append`, { option: E })
|
|
2823
2824
|
])
|
|
2824
2825
|
}))
|
|
2825
2826
|
]), 1032, ["model-value", "options", "disable", "title"]));
|
|
@@ -2828,7 +2829,7 @@ const da = { class: "col flex items-center" }, _a = {
|
|
|
2828
2829
|
async readWarehouses() {
|
|
2829
2830
|
return qn(await es().get("/warehouses"));
|
|
2830
2831
|
}
|
|
2831
|
-
}, va = { class: "flex flex-col gap-32" },
|
|
2832
|
+
}, va = { class: "flex flex-col gap-32" }, Ta = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ka = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Oa = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ya = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, wa = /* @__PURE__ */ ce({
|
|
2832
2833
|
__name: "PortalPermissionEditor",
|
|
2833
2834
|
props: /* @__PURE__ */ Kt({
|
|
2834
2835
|
disable: {
|
|
@@ -2845,9 +2846,9 @@ const da = { class: "col flex items-center" }, _a = {
|
|
|
2845
2846
|
}),
|
|
2846
2847
|
emits: /* @__PURE__ */ Kt(["permissionChanged"], ["update:modelValue"]),
|
|
2847
2848
|
setup(e, { emit: t }) {
|
|
2848
|
-
const n = zn(e, "modelValue"), s = e, l = t, { t: r } = at(), c =
|
|
2849
|
-
const D = Ct.filter((L) => !
|
|
2850
|
-
return
|
|
2849
|
+
const n = zn(e, "modelValue"), s = e, l = t, { t: r } = at(), c = j(() => {
|
|
2850
|
+
const D = Ct.filter((L) => !g.includes(L.subject)).map((L) => L.subject);
|
|
2851
|
+
return rs(
|
|
2851
2852
|
s.inheritPermissions.map((L) => ({
|
|
2852
2853
|
...L,
|
|
2853
2854
|
permissions: L.permissions.filter((x) => D.includes(x.subject))
|
|
@@ -2856,7 +2857,7 @@ const da = { class: "col flex items-center" }, _a = {
|
|
|
2856
2857
|
id: L.subject,
|
|
2857
2858
|
setNames: L.setNames
|
|
2858
2859
|
}));
|
|
2859
|
-
}), m =
|
|
2860
|
+
}), m = j(() => {
|
|
2860
2861
|
const D = s.inheritPermissions.map((S) => ({
|
|
2861
2862
|
...S,
|
|
2862
2863
|
permissions: S.permissions.filter(
|
|
@@ -2866,9 +2867,9 @@ const da = { class: "col flex items-center" }, _a = {
|
|
|
2866
2867
|
return vt(
|
|
2867
2868
|
D,
|
|
2868
2869
|
"warehouseId",
|
|
2869
|
-
|
|
2870
|
+
h.value.map((S) => S._id)
|
|
2870
2871
|
);
|
|
2871
|
-
}), u =
|
|
2872
|
+
}), u = j(() => {
|
|
2872
2873
|
const D = s.inheritPermissions.map((S) => ({
|
|
2873
2874
|
...S,
|
|
2874
2875
|
permissions: S.permissions.filter(
|
|
@@ -2880,7 +2881,7 @@ const da = { class: "col flex items-center" }, _a = {
|
|
|
2880
2881
|
"restaurantId",
|
|
2881
2882
|
O.value.map((S) => S._id)
|
|
2882
2883
|
);
|
|
2883
|
-
}), _ =
|
|
2884
|
+
}), _ = j(() => {
|
|
2884
2885
|
const D = s.inheritPermissions.map((S) => ({
|
|
2885
2886
|
...S,
|
|
2886
2887
|
permissions: S.permissions.filter(
|
|
@@ -2892,26 +2893,26 @@ const da = { class: "col flex items-center" }, _a = {
|
|
|
2892
2893
|
"roleId",
|
|
2893
2894
|
i.value.map((S) => S._id)
|
|
2894
2895
|
);
|
|
2895
|
-
}),
|
|
2896
|
+
}), g = [
|
|
2896
2897
|
Q.Subject.Business.restaurant,
|
|
2897
2898
|
Q.Subject.Business.hrm_employee_role,
|
|
2898
2899
|
Q.Subject.Business.inventory_stock,
|
|
2899
2900
|
Q.Subject.Restaurant.restaurant
|
|
2900
|
-
], E =
|
|
2901
|
+
], E = j(() => {
|
|
2901
2902
|
var S;
|
|
2902
2903
|
const D = (S = n.value) == null ? void 0 : S.find(
|
|
2903
2904
|
(L) => L.subject === Q.Subject.Business.inventory_stock
|
|
2904
2905
|
);
|
|
2905
2906
|
return D ? D.conditions ? JSON.parse(D.conditions).warehouseId.$in : null : [];
|
|
2906
|
-
}),
|
|
2907
|
+
}), h = ke([]), C = j(() => h.value.map((D) => ({
|
|
2907
2908
|
label: D.profile.name,
|
|
2908
2909
|
value: D._id
|
|
2909
2910
|
})));
|
|
2910
2911
|
function M(D) {
|
|
2911
|
-
const S =
|
|
2912
|
+
const S = T(n.value, D);
|
|
2912
2913
|
n.value = S;
|
|
2913
2914
|
}
|
|
2914
|
-
function
|
|
2915
|
+
function T(D, S) {
|
|
2915
2916
|
let L = We(
|
|
2916
2917
|
D.filter((x) => x.subject !== Q.Subject.Business.inventory_stock)
|
|
2917
2918
|
);
|
|
@@ -2924,15 +2925,15 @@ const da = { class: "col flex items-center" }, _a = {
|
|
|
2924
2925
|
}
|
|
2925
2926
|
return L;
|
|
2926
2927
|
}
|
|
2927
|
-
const { restaurants: O } = Qn(), i = as().roles, d =
|
|
2928
|
+
const { restaurants: O } = Qn(), i = as().roles, d = j(() => O.value.map((D) => ({
|
|
2928
2929
|
label: `${D.profile.code ? D.profile.code + "-" : ""}${D.profile.name}`,
|
|
2929
2930
|
value: D._id
|
|
2930
|
-
}))), v =
|
|
2931
|
-
function
|
|
2931
|
+
}))), v = j(() => O.value.reduce((D, S) => (D[S._id] = i.value.filter((L) => L.restaurants.some((x) => x.id === S._id)).map((L) => L._id), D), {})), p = j(() => ts(n.value));
|
|
2932
|
+
function y(D) {
|
|
2932
2933
|
const S = N(n.value, D);
|
|
2933
2934
|
n.value = S;
|
|
2934
2935
|
}
|
|
2935
|
-
const
|
|
2936
|
+
const k = j(() => ns(n.value));
|
|
2936
2937
|
function N(D, S) {
|
|
2937
2938
|
var x;
|
|
2938
2939
|
let L = We(
|
|
@@ -2952,18 +2953,18 @@ const da = { class: "col flex items-center" }, _a = {
|
|
|
2952
2953
|
const re = [
|
|
2953
2954
|
...new Set(S.map((oe) => v.value[oe]).flatMap((oe) => oe))
|
|
2954
2955
|
], Le = i.value.map((oe) => oe._id);
|
|
2955
|
-
re.length !== Le.length && (L =
|
|
2956
|
+
re.length !== Le.length && (L = G(
|
|
2956
2957
|
L,
|
|
2957
|
-
(x =
|
|
2958
|
+
(x = k.value || Le) == null ? void 0 : x.filter((oe) => re.includes(oe))
|
|
2958
2959
|
));
|
|
2959
2960
|
}
|
|
2960
2961
|
return L;
|
|
2961
2962
|
}
|
|
2962
2963
|
function X(D) {
|
|
2963
|
-
const S =
|
|
2964
|
+
const S = G(n.value, D);
|
|
2964
2965
|
n.value = S;
|
|
2965
2966
|
}
|
|
2966
|
-
function
|
|
2967
|
+
function G(D, S) {
|
|
2967
2968
|
let L = We(
|
|
2968
2969
|
D.filter((x) => x.subject !== Q.Subject.Business.hrm_employee_role)
|
|
2969
2970
|
);
|
|
@@ -2973,8 +2974,8 @@ const da = { class: "col flex items-center" }, _a = {
|
|
|
2973
2974
|
}
|
|
2974
2975
|
return L;
|
|
2975
2976
|
}
|
|
2976
|
-
return
|
|
2977
|
-
|
|
2977
|
+
return jt(async () => {
|
|
2978
|
+
h.value = await Na.readWarehouses();
|
|
2978
2979
|
}), Rt(
|
|
2979
2980
|
n,
|
|
2980
2981
|
(D) => {
|
|
@@ -2982,11 +2983,11 @@ const da = { class: "col flex items-center" }, _a = {
|
|
|
2982
2983
|
},
|
|
2983
2984
|
{ deep: !0 }
|
|
2984
2985
|
), (D, S) => (B(), te("div", va, [
|
|
2985
|
-
ee("div",
|
|
2986
|
+
ee("div", Ta, [
|
|
2986
2987
|
ne(pa, {
|
|
2987
2988
|
modelValue: n.value,
|
|
2988
2989
|
"onUpdate:modelValue": S[0] || (S[0] = (L) => n.value = L),
|
|
2989
|
-
"excluded-subjects":
|
|
2990
|
+
"excluded-subjects": g
|
|
2990
2991
|
}, ve({ _: 2 }, [
|
|
2991
2992
|
me(c.value, (L) => ({
|
|
2992
2993
|
name: `checkbox-${L.id}-append`,
|
|
@@ -2996,11 +2997,11 @@ const da = { class: "col flex items-center" }, _a = {
|
|
|
2996
2997
|
}))
|
|
2997
2998
|
]), 1032, ["modelValue"])
|
|
2998
2999
|
]),
|
|
2999
|
-
ee("div",
|
|
3000
|
+
ee("div", ka, [
|
|
3000
3001
|
ne(On, {
|
|
3001
3002
|
"model-value": E.value,
|
|
3002
3003
|
options: C.value,
|
|
3003
|
-
context:
|
|
3004
|
+
context: be(r)("team.labels.warehouse"),
|
|
3004
3005
|
"onUpdate:modelValue": M
|
|
3005
3006
|
}, ve({ _: 2 }, [
|
|
3006
3007
|
me(m.value, (L) => ({
|
|
@@ -3015,8 +3016,8 @@ const da = { class: "col flex items-center" }, _a = {
|
|
|
3015
3016
|
ne(On, {
|
|
3016
3017
|
"model-value": p.value,
|
|
3017
3018
|
options: d.value,
|
|
3018
|
-
context:
|
|
3019
|
-
"onUpdate:modelValue":
|
|
3019
|
+
context: be(r)("team.labels.restaurant"),
|
|
3020
|
+
"onUpdate:modelValue": y
|
|
3020
3021
|
}, ve({ _: 2 }, [
|
|
3021
3022
|
me(u.value, (L) => ({
|
|
3022
3023
|
name: `checkbox-${L.id}-append`,
|
|
@@ -3026,10 +3027,10 @@ const da = { class: "col flex items-center" }, _a = {
|
|
|
3026
3027
|
}))
|
|
3027
3028
|
]), 1032, ["model-value", "options", "context"])
|
|
3028
3029
|
]),
|
|
3029
|
-
ee("div",
|
|
3030
|
+
ee("div", ya, [
|
|
3030
3031
|
ne(Ia, {
|
|
3031
|
-
roles:
|
|
3032
|
-
"model-value":
|
|
3032
|
+
roles: be(i),
|
|
3033
|
+
"model-value": k.value,
|
|
3033
3034
|
"restaurant-ids": p.value,
|
|
3034
3035
|
"onUpdate:modelValue": X
|
|
3035
3036
|
}, ve({ _: 2 }, [
|
|
@@ -3046,5 +3047,5 @@ const da = { class: "col flex items-center" }, _a = {
|
|
|
3046
3047
|
});
|
|
3047
3048
|
export {
|
|
3048
3049
|
Jt as _,
|
|
3049
|
-
|
|
3050
|
+
wa as a
|
|
3050
3051
|
};
|