@feedmepos/mf-hrm-portal 2.0.12-dev → 2.0.12
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-Am6PW6qN.js → AuditLogList-Bd00VQx_.js} +4 -4
- package/dist/EmployeeList-CK7KmG5w.js +697 -0
- package/dist/{Main-BC_y5Gzg.js → Main-B_8kCVUX.js} +4 -4
- package/dist/{Main-BY_V1guq.js → Main-BlREdQ9j.js} +9 -9
- package/dist/{Main-Chau30wK.js → Main-DkBOgy7G.js} +5 -5
- package/dist/{PermissionSetList-CDUFrGRE.js → PermissionSetList-DfDMzjya.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CGIontQw.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Akov0s-D.js} +683 -683
- package/dist/{RoleList-BVQ4zkA8.js → RoleList-BxXhMLc4.js} +7 -7
- package/dist/{TeamMemberList-D65MpqIr.js → TeamMemberList--YzyKgRn.js} +209 -208
- package/dist/{TimesheetList-Dc295zCI.js → TimesheetList-K8CKfOu5.js} +7 -7
- package/dist/{app-Iv5hLrRX.js → app-CDx8kP2V.js} +43 -43
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-CJGjjQIJ.js → dayjs.min-SNComb-n.js} +1 -1
- package/dist/{employee-C2Qhr8xO.js → employee-CGtCzQdZ.js} +4 -4
- package/dist/{index-DzRWjF3a.js → index-Ctx7lXyr.js} +1 -1
- package/dist/{index-5ziPpN4I.js → index-qJ7dWPV1.js} +17 -17
- package/dist/{iteration-L8TLGaCI.js → iteration-Df2doI7u.js} +2 -2
- package/dist/{lodash-Bbes-RWy.js → lodash--VoFIg3j.js} +1 -1
- package/dist/src/composables/useDebounce.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/{timesheet-Dbp6blBA.js → timesheet-C8L7eQVO.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-e7cSGuDZ.js → useAppStore-FR1TO4HT.js} +1 -1
- package/dist/useDebounce-B8ZPVS5C.js +15 -0
- package/dist/{useLoading-C8ko-jia.js → useLoading-CKrnW2DY.js} +1 -1
- package/dist/{useReportPermissions-B0EDgKey.js → useReportPermissions-BeiN0ZNJ.js} +3 -3
- package/package.json +1 -1
- package/dist/EmployeeList-00LF0l6U.js +0 -696
- package/dist/useDebounce-BngBuKwH.js +0 -12
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
1
|
+
import { getCurrentInstance as Wt, inject as Jn, ref as Ue, shallowRef as Kn, computed as te, watch as St, onMounted as Yt, onUnmounted as An, defineComponent as Ne, h as Sn, createVNode as _e, Text as zn, Fragment as Ee, resolveComponent as Xe, createBlock as Se, openBlock as B, withCtx as be, createElementVNode as ae, createElementBlock as se, toDisplayString as Ae, unref as H, renderList as he, renderSlot as ge, createCommentVNode as Oe, createTextVNode as Qn, useSlots as qn, normalizeStyle as ct, normalizeClass as qe, toRef as Qt, createSlots as Fe, nextTick as es, mergeModels as qt, useModel as ts } from "vue";
|
|
2
2
|
import { useI18n as _t, useCoreStore as ns } from "@feedmepos/mf-common";
|
|
3
3
|
import "@vue/devtools-api";
|
|
4
|
-
import { p as Mt, j as ss, x as as, y as Nt, z as rs, l as ls, $ as
|
|
5
|
-
import { d as ut, g as os, b as is } from "./iteration-
|
|
6
|
-
import {
|
|
7
|
-
import { u as ds } from "./index-
|
|
8
|
-
import { u as fs } from "./useAppStore-
|
|
4
|
+
import { p as Mt, j as ss, x as as, y as Nt, z as rs, l as ls, $ as Tt } from "./index-qJ7dWPV1.js";
|
|
5
|
+
import { d as ut, g as os, b as is } from "./iteration-Df2doI7u.js";
|
|
6
|
+
import { C as cs, p as us, u as me, k as ms, A as kt } from "./app-CDx8kP2V.js";
|
|
7
|
+
import { u as ds } from "./index-Ctx7lXyr.js";
|
|
8
|
+
import { u as fs } from "./useAppStore-FR1TO4HT.js";
|
|
9
9
|
/*!
|
|
10
10
|
* shared v10.0.5
|
|
11
11
|
* (c) 2024 kazuya kawaguchi
|
|
12
12
|
* Released under the MIT License.
|
|
13
13
|
*/
|
|
14
|
-
const en = typeof window < "u",
|
|
14
|
+
const en = typeof window < "u", Ve = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), _s = (e, t, n) => ps({ l: e, k: t, s: n }), ps = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), de = (e) => typeof e == "number" && isFinite(e), hs = (e) => Xt(e) === "[object Date]", dt = (e) => Xt(e) === "[object RegExp]", pt = (e) => J(e) && Object.keys(e).length === 0, fe = Object.assign, bs = Object.create, q = (e = null) => bs(e);
|
|
15
15
|
let tn;
|
|
16
16
|
const je = () => tn || (tn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : q());
|
|
17
17
|
function nn(e) {
|
|
@@ -21,14 +21,14 @@ const gs = Object.prototype.hasOwnProperty;
|
|
|
21
21
|
function ye(e, t) {
|
|
22
22
|
return gs.call(e, t);
|
|
23
23
|
}
|
|
24
|
-
const ue = Array.isArray, le = (e) => typeof e == "function", F = (e) => typeof e == "string", ce = (e) => typeof e == "boolean",
|
|
24
|
+
const ue = Array.isArray, le = (e) => typeof e == "function", F = (e) => typeof e == "string", ce = (e) => typeof e == "boolean", K = (e) => e !== null && typeof e == "object", vs = (e) => K(e) && le(e.then) && le(e.catch), Mn = Object.prototype.toString, Xt = (e) => Mn.call(e), J = (e) => Xt(e) === "[object Object]", Is = (e) => e == null ? "" : ue(e) || J(e) && e.toString === Mn ? JSON.stringify(e, null, 2) : String(e);
|
|
25
25
|
function Zt(e, t = "") {
|
|
26
26
|
return e.reduce((n, s, l) => l === 0 ? n + s : n + t + s, "");
|
|
27
27
|
}
|
|
28
28
|
function Es(e, t) {
|
|
29
29
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
30
30
|
}
|
|
31
|
-
const rt = (e) => !
|
|
31
|
+
const rt = (e) => !K(e) || ue(e);
|
|
32
32
|
function mt(e, t) {
|
|
33
33
|
if (rt(e) || rt(t))
|
|
34
34
|
throw new Error("Invalid value");
|
|
@@ -36,7 +36,7 @@ function mt(e, t) {
|
|
|
36
36
|
for (; n.length; ) {
|
|
37
37
|
const { src: s, des: l } = n.pop();
|
|
38
38
|
Object.keys(s).forEach((a) => {
|
|
39
|
-
a !== "__proto__" && (
|
|
39
|
+
a !== "__proto__" && (K(s[a]) && !K(l[a]) && (l[a] = Array.isArray(s[a]) ? [] : q()), rt(l[a]) || rt(s[a]) ? l[a] = s[a] : n.push({ src: s[a], des: l[a] }));
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -64,19 +64,19 @@ const Q = {
|
|
|
64
64
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
65
65
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
66
66
|
}, Ns = 17;
|
|
67
|
-
function
|
|
67
|
+
function ht(e, t, n = {}) {
|
|
68
68
|
const { domain: s, messages: l, args: a } = n, c = e, m = new SyntaxError(String(c));
|
|
69
69
|
return m.code = e, t && (m.location = t), m.domain = s, m;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Ts(e) {
|
|
72
72
|
throw e;
|
|
73
73
|
}
|
|
74
|
-
const
|
|
74
|
+
const ke = " ", ks = "\r", pe = `
|
|
75
75
|
`, Os = "\u2028", Ls = "\u2029";
|
|
76
76
|
function Rs(e) {
|
|
77
77
|
const t = e;
|
|
78
78
|
let n = 0, s = 1, l = 1, a = 0;
|
|
79
|
-
const c = (g) => t[g] ===
|
|
79
|
+
const c = (g) => t[g] === ks && t[g + 1] === pe, m = (g) => t[g] === pe, u = (g) => t[g] === Ls, p = (g) => t[g] === Os, O = (g) => c(g) || m(g) || u(g) || p(g), R = () => n, y = () => s, P = () => l, V = () => a, L = (g) => c(g) || u(g) || p(g) ? pe : t[g], D = () => L(n), i = () => L(n + a);
|
|
80
80
|
function d() {
|
|
81
81
|
return a = 0, O(n) && (s++, l = 0), c(n) && n++, n++, l++, t[n];
|
|
82
82
|
}
|
|
@@ -99,7 +99,7 @@ function Rs(e) {
|
|
|
99
99
|
index: R,
|
|
100
100
|
line: y,
|
|
101
101
|
column: P,
|
|
102
|
-
peekOffset:
|
|
102
|
+
peekOffset: V,
|
|
103
103
|
charAt: L,
|
|
104
104
|
currentChar: D,
|
|
105
105
|
currentPeek: i,
|
|
@@ -125,32 +125,32 @@ function Ss(e, t = {}) {
|
|
|
125
125
|
inLinked: !1,
|
|
126
126
|
text: ""
|
|
127
127
|
}, p = () => u, { onError: O } = t;
|
|
128
|
-
function R(r, o,
|
|
128
|
+
function R(r, o, b, ...U) {
|
|
129
129
|
const oe = p();
|
|
130
|
-
if (o.column +=
|
|
131
|
-
const
|
|
130
|
+
if (o.column += b, o.offset += b, O) {
|
|
131
|
+
const X = n ? Dt(oe.startLoc, o) : null, f = ht(r, X, {
|
|
132
132
|
domain: As,
|
|
133
|
-
args:
|
|
133
|
+
args: U
|
|
134
134
|
});
|
|
135
135
|
O(f);
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
function y(r, o,
|
|
138
|
+
function y(r, o, b) {
|
|
139
139
|
r.endLoc = a(), r.currentType = o;
|
|
140
|
-
const
|
|
141
|
-
return n && (
|
|
140
|
+
const U = { type: o };
|
|
141
|
+
return n && (U.loc = Dt(r.startLoc, r.endLoc)), b != null && (U.value = b), U;
|
|
142
142
|
}
|
|
143
143
|
const P = (r) => y(
|
|
144
144
|
r,
|
|
145
145
|
13
|
|
146
146
|
/* TokenTypes.EOF */
|
|
147
147
|
);
|
|
148
|
-
function
|
|
148
|
+
function V(r, o) {
|
|
149
149
|
return r.currentChar() === o ? (r.next(), o) : (R(Q.EXPECTED_TOKEN, a(), 0, o), "");
|
|
150
150
|
}
|
|
151
151
|
function L(r) {
|
|
152
152
|
let o = "";
|
|
153
|
-
for (; r.currentPeek() ===
|
|
153
|
+
for (; r.currentPeek() === ke || r.currentPeek() === pe; )
|
|
154
154
|
o += r.currentPeek(), r.peek();
|
|
155
155
|
return o;
|
|
156
156
|
}
|
|
@@ -173,61 +173,61 @@ function Ss(e, t = {}) {
|
|
|
173
173
|
return o >= 48 && o <= 57;
|
|
174
174
|
}
|
|
175
175
|
function N(r, o) {
|
|
176
|
-
const { currentType:
|
|
177
|
-
if (
|
|
176
|
+
const { currentType: b } = o;
|
|
177
|
+
if (b !== 2)
|
|
178
178
|
return !1;
|
|
179
179
|
L(r);
|
|
180
|
-
const
|
|
181
|
-
return r.resetPeek(),
|
|
180
|
+
const U = i(r.currentPeek());
|
|
181
|
+
return r.resetPeek(), U;
|
|
182
182
|
}
|
|
183
183
|
function _(r, o) {
|
|
184
|
-
const { currentType:
|
|
185
|
-
if (
|
|
184
|
+
const { currentType: b } = o;
|
|
185
|
+
if (b !== 2)
|
|
186
186
|
return !1;
|
|
187
187
|
L(r);
|
|
188
|
-
const
|
|
188
|
+
const U = r.currentPeek() === "-" ? r.peek() : r.currentPeek(), oe = d(U);
|
|
189
189
|
return r.resetPeek(), oe;
|
|
190
190
|
}
|
|
191
191
|
function w(r, o) {
|
|
192
|
-
const { currentType:
|
|
193
|
-
if (
|
|
192
|
+
const { currentType: b } = o;
|
|
193
|
+
if (b !== 2)
|
|
194
194
|
return !1;
|
|
195
195
|
L(r);
|
|
196
|
-
const
|
|
197
|
-
return r.resetPeek(),
|
|
196
|
+
const U = r.currentPeek() === sn;
|
|
197
|
+
return r.resetPeek(), U;
|
|
198
198
|
}
|
|
199
199
|
function S(r, o) {
|
|
200
|
-
const { currentType:
|
|
201
|
-
if (
|
|
200
|
+
const { currentType: b } = o;
|
|
201
|
+
if (b !== 7)
|
|
202
202
|
return !1;
|
|
203
203
|
L(r);
|
|
204
|
-
const
|
|
205
|
-
return r.resetPeek(),
|
|
204
|
+
const U = r.currentPeek() === ".";
|
|
205
|
+
return r.resetPeek(), U;
|
|
206
206
|
}
|
|
207
207
|
function g(r, o) {
|
|
208
|
-
const { currentType:
|
|
209
|
-
if (
|
|
208
|
+
const { currentType: b } = o;
|
|
209
|
+
if (b !== 8)
|
|
210
210
|
return !1;
|
|
211
211
|
L(r);
|
|
212
|
-
const
|
|
213
|
-
return r.resetPeek(),
|
|
212
|
+
const U = i(r.currentPeek());
|
|
213
|
+
return r.resetPeek(), U;
|
|
214
214
|
}
|
|
215
215
|
function v(r, o) {
|
|
216
|
-
const { currentType:
|
|
217
|
-
if (!(
|
|
216
|
+
const { currentType: b } = o;
|
|
217
|
+
if (!(b === 7 || b === 11))
|
|
218
218
|
return !1;
|
|
219
219
|
L(r);
|
|
220
|
-
const
|
|
221
|
-
return r.resetPeek(),
|
|
220
|
+
const U = r.currentPeek() === ":";
|
|
221
|
+
return r.resetPeek(), U;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
const { currentType:
|
|
225
|
-
if (
|
|
223
|
+
function h(r, o) {
|
|
224
|
+
const { currentType: b } = o;
|
|
225
|
+
if (b !== 9)
|
|
226
226
|
return !1;
|
|
227
|
-
const
|
|
228
|
-
const
|
|
229
|
-
return
|
|
230
|
-
}, oe =
|
|
227
|
+
const U = () => {
|
|
228
|
+
const X = r.currentPeek();
|
|
229
|
+
return X === "{" ? i(r.peek()) : X === "@" || X === "|" || X === ":" || X === "." || X === ke || !X ? !1 : X === pe ? (r.peek(), U()) : A(r, !1);
|
|
230
|
+
}, oe = U();
|
|
231
231
|
return r.resetPeek(), oe;
|
|
232
232
|
}
|
|
233
233
|
function E(r) {
|
|
@@ -236,17 +236,17 @@ function Ss(e, t = {}) {
|
|
|
236
236
|
return r.resetPeek(), o;
|
|
237
237
|
}
|
|
238
238
|
function A(r, o = !0) {
|
|
239
|
-
const
|
|
239
|
+
const b = (oe = !1, X = "") => {
|
|
240
240
|
const f = r.currentPeek();
|
|
241
|
-
return f === "{" || f === "@" || !f ? oe : f === "|" ? !(
|
|
242
|
-
},
|
|
243
|
-
return o && r.resetPeek(),
|
|
241
|
+
return f === "{" || f === "@" || !f ? oe : f === "|" ? !(X === ke || X === pe) : f === ke ? (r.peek(), b(!0, ke)) : f === pe ? (r.peek(), b(!0, pe)) : !0;
|
|
242
|
+
}, U = b();
|
|
243
|
+
return o && r.resetPeek(), U;
|
|
244
244
|
}
|
|
245
245
|
function C(r, o) {
|
|
246
|
-
const
|
|
247
|
-
return
|
|
246
|
+
const b = r.currentChar();
|
|
247
|
+
return b === Ce ? Ce : o(b) ? (r.next(), b) : null;
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function G(r) {
|
|
250
250
|
const o = r.charCodeAt(0);
|
|
251
251
|
return o >= 97 && o <= 122 || // a-z
|
|
252
252
|
o >= 65 && o <= 90 || // A-Z
|
|
@@ -254,8 +254,8 @@ function Ss(e, t = {}) {
|
|
|
254
254
|
o === 95 || // _
|
|
255
255
|
o === 36;
|
|
256
256
|
}
|
|
257
|
-
function
|
|
258
|
-
return C(r,
|
|
257
|
+
function x(r) {
|
|
258
|
+
return C(r, G);
|
|
259
259
|
}
|
|
260
260
|
function M(r) {
|
|
261
261
|
const o = r.charCodeAt(0);
|
|
@@ -266,58 +266,58 @@ function Ss(e, t = {}) {
|
|
|
266
266
|
o === 36 || // $
|
|
267
267
|
o === 45;
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function k(r) {
|
|
270
270
|
return C(r, M);
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function T(r) {
|
|
273
273
|
const o = r.charCodeAt(0);
|
|
274
274
|
return o >= 48 && o <= 57;
|
|
275
275
|
}
|
|
276
276
|
function Z(r) {
|
|
277
|
-
return C(r,
|
|
277
|
+
return C(r, T);
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function W(r) {
|
|
280
280
|
const o = r.charCodeAt(0);
|
|
281
281
|
return o >= 48 && o <= 57 || // 0-9
|
|
282
282
|
o >= 65 && o <= 70 || // A-F
|
|
283
283
|
o >= 97 && o <= 102;
|
|
284
284
|
}
|
|
285
285
|
function j(r) {
|
|
286
|
-
return C(r,
|
|
286
|
+
return C(r, W);
|
|
287
287
|
}
|
|
288
288
|
function ne(r) {
|
|
289
|
-
let o = "",
|
|
289
|
+
let o = "", b = "";
|
|
290
290
|
for (; o = Z(r); )
|
|
291
|
-
|
|
292
|
-
return
|
|
291
|
+
b += o;
|
|
292
|
+
return b;
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function $(r) {
|
|
295
295
|
let o = "";
|
|
296
296
|
for (; ; ) {
|
|
297
|
-
const
|
|
298
|
-
if (
|
|
297
|
+
const b = r.currentChar();
|
|
298
|
+
if (b === "{" || b === "}" || b === "@" || b === "|" || !b)
|
|
299
299
|
break;
|
|
300
|
-
if (
|
|
300
|
+
if (b === ke || b === pe)
|
|
301
301
|
if (A(r))
|
|
302
|
-
o +=
|
|
302
|
+
o += b, r.next();
|
|
303
303
|
else {
|
|
304
304
|
if (E(r))
|
|
305
305
|
break;
|
|
306
|
-
o +=
|
|
306
|
+
o += b, r.next();
|
|
307
307
|
}
|
|
308
308
|
else
|
|
309
|
-
o +=
|
|
309
|
+
o += b, r.next();
|
|
310
310
|
}
|
|
311
311
|
return o;
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function Y(r) {
|
|
314
314
|
D(r);
|
|
315
|
-
let o = "",
|
|
316
|
-
for (; o =
|
|
317
|
-
|
|
318
|
-
return r.currentChar() === Ce && R(Q.UNTERMINATED_CLOSING_BRACE, a(), 0),
|
|
315
|
+
let o = "", b = "";
|
|
316
|
+
for (; o = k(r); )
|
|
317
|
+
b += o;
|
|
318
|
+
return r.currentChar() === Ce && R(Q.UNTERMINATED_CLOSING_BRACE, a(), 0), b;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function z(r) {
|
|
321
321
|
D(r);
|
|
322
322
|
let o = "";
|
|
323
323
|
return r.currentChar() === "-" ? (r.next(), o += `-${ne(r)}`) : o += ne(r), r.currentChar() === Ce && R(Q.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
@@ -326,12 +326,12 @@ function Ss(e, t = {}) {
|
|
|
326
326
|
return r !== sn && r !== pe;
|
|
327
327
|
}
|
|
328
328
|
function re(r) {
|
|
329
|
-
D(r),
|
|
330
|
-
let o = "",
|
|
329
|
+
D(r), V(r, "'");
|
|
330
|
+
let o = "", b = "";
|
|
331
331
|
for (; o = C(r, we); )
|
|
332
|
-
o === "\\" ?
|
|
333
|
-
const
|
|
334
|
-
return
|
|
332
|
+
o === "\\" ? b += Ie(r) : b += o;
|
|
333
|
+
const U = r.currentChar();
|
|
334
|
+
return U === pe || U === Ce ? (R(Q.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), U === pe && (r.next(), V(r, "'")), b) : (V(r, "'"), b);
|
|
335
335
|
}
|
|
336
336
|
function Ie(r) {
|
|
337
337
|
const o = r.currentChar();
|
|
@@ -340,108 +340,108 @@ function Ss(e, t = {}) {
|
|
|
340
340
|
case "'":
|
|
341
341
|
return r.next(), `\\${o}`;
|
|
342
342
|
case "u":
|
|
343
|
-
return
|
|
343
|
+
return $e(r, o, 4);
|
|
344
344
|
case "U":
|
|
345
|
-
return
|
|
345
|
+
return $e(r, o, 6);
|
|
346
346
|
default:
|
|
347
347
|
return R(Q.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
function
|
|
351
|
-
|
|
352
|
-
let
|
|
353
|
-
for (let oe = 0; oe <
|
|
354
|
-
const
|
|
355
|
-
if (!
|
|
356
|
-
R(Q.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${
|
|
350
|
+
function $e(r, o, b) {
|
|
351
|
+
V(r, o);
|
|
352
|
+
let U = "";
|
|
353
|
+
for (let oe = 0; oe < b; oe++) {
|
|
354
|
+
const X = j(r);
|
|
355
|
+
if (!X) {
|
|
356
|
+
R(Q.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${U}${r.currentChar()}`);
|
|
357
357
|
break;
|
|
358
358
|
}
|
|
359
|
-
|
|
359
|
+
U += X;
|
|
360
360
|
}
|
|
361
|
-
return `\\${o}${
|
|
361
|
+
return `\\${o}${U}`;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
return r !== "{" && r !== "}" && r !==
|
|
363
|
+
function Je(r) {
|
|
364
|
+
return r !== "{" && r !== "}" && r !== ke && r !== pe;
|
|
365
365
|
}
|
|
366
366
|
function vt(r) {
|
|
367
367
|
D(r);
|
|
368
|
-
let o = "",
|
|
369
|
-
for (; o = C(r,
|
|
370
|
-
|
|
371
|
-
return
|
|
368
|
+
let o = "", b = "";
|
|
369
|
+
for (; o = C(r, Je); )
|
|
370
|
+
b += o;
|
|
371
|
+
return b;
|
|
372
372
|
}
|
|
373
373
|
function It(r) {
|
|
374
|
-
let o = "",
|
|
375
|
-
for (; o =
|
|
376
|
-
|
|
377
|
-
return
|
|
374
|
+
let o = "", b = "";
|
|
375
|
+
for (; o = x(r); )
|
|
376
|
+
b += o;
|
|
377
|
+
return b;
|
|
378
378
|
}
|
|
379
379
|
function Et(r) {
|
|
380
|
-
const o = (
|
|
381
|
-
const
|
|
382
|
-
return
|
|
380
|
+
const o = (b) => {
|
|
381
|
+
const U = r.currentChar();
|
|
382
|
+
return U === "{" || U === "@" || U === "|" || U === "(" || U === ")" || !U || U === ke ? b : (b += U, r.next(), o(b));
|
|
383
383
|
};
|
|
384
384
|
return o("");
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function Ke(r) {
|
|
387
387
|
D(r);
|
|
388
|
-
const o =
|
|
388
|
+
const o = V(
|
|
389
389
|
r,
|
|
390
390
|
"|"
|
|
391
391
|
/* TokenChars.Pipe */
|
|
392
392
|
);
|
|
393
393
|
return D(r), o;
|
|
394
394
|
}
|
|
395
|
-
function
|
|
396
|
-
let
|
|
395
|
+
function xe(r, o) {
|
|
396
|
+
let b = null;
|
|
397
397
|
switch (r.currentChar()) {
|
|
398
398
|
case "{":
|
|
399
|
-
return o.braceNest >= 1 && R(Q.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), r.next(),
|
|
399
|
+
return o.braceNest >= 1 && R(Q.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), r.next(), b = y(
|
|
400
400
|
o,
|
|
401
401
|
2,
|
|
402
402
|
"{"
|
|
403
403
|
/* TokenChars.BraceLeft */
|
|
404
|
-
), D(r), o.braceNest++,
|
|
404
|
+
), D(r), o.braceNest++, b;
|
|
405
405
|
case "}":
|
|
406
|
-
return o.braceNest > 0 && o.currentType === 2 && R(Q.EMPTY_PLACEHOLDER, a(), 0), r.next(),
|
|
406
|
+
return o.braceNest > 0 && o.currentType === 2 && R(Q.EMPTY_PLACEHOLDER, a(), 0), r.next(), b = y(
|
|
407
407
|
o,
|
|
408
408
|
3,
|
|
409
409
|
"}"
|
|
410
410
|
/* TokenChars.BraceRight */
|
|
411
|
-
), o.braceNest--, o.braceNest > 0 && D(r), o.inLinked && o.braceNest === 0 && (o.inLinked = !1),
|
|
411
|
+
), o.braceNest--, o.braceNest > 0 && D(r), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), b;
|
|
412
412
|
case "@":
|
|
413
|
-
return o.braceNest > 0 && R(Q.UNTERMINATED_CLOSING_BRACE, a(), 0),
|
|
413
|
+
return o.braceNest > 0 && R(Q.UNTERMINATED_CLOSING_BRACE, a(), 0), b = Ge(r, o) || P(o), o.braceNest = 0, b;
|
|
414
414
|
default: {
|
|
415
|
-
let oe = !0,
|
|
415
|
+
let oe = !0, X = !0, f = !0;
|
|
416
416
|
if (E(r))
|
|
417
|
-
return o.braceNest > 0 && R(Q.UNTERMINATED_CLOSING_BRACE, a(), 0),
|
|
417
|
+
return o.braceNest > 0 && R(Q.UNTERMINATED_CLOSING_BRACE, a(), 0), b = y(o, 1, Ke(r)), o.braceNest = 0, o.inLinked = !1, b;
|
|
418
418
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
419
|
-
return R(Q.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0,
|
|
419
|
+
return R(Q.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, ze(r, o);
|
|
420
420
|
if (oe = N(r, o))
|
|
421
|
-
return
|
|
422
|
-
if (
|
|
423
|
-
return
|
|
421
|
+
return b = y(o, 4, Y(r)), D(r), b;
|
|
422
|
+
if (X = _(r, o))
|
|
423
|
+
return b = y(o, 5, z(r)), D(r), b;
|
|
424
424
|
if (f = w(r, o))
|
|
425
|
-
return
|
|
426
|
-
if (!oe && !
|
|
427
|
-
return
|
|
425
|
+
return b = y(o, 6, re(r)), D(r), b;
|
|
426
|
+
if (!oe && !X && !f)
|
|
427
|
+
return b = y(o, 12, vt(r)), R(Q.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, b.value), D(r), b;
|
|
428
428
|
break;
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
return
|
|
431
|
+
return b;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
const { currentType:
|
|
435
|
-
let
|
|
433
|
+
function Ge(r, o) {
|
|
434
|
+
const { currentType: b } = o;
|
|
435
|
+
let U = null;
|
|
436
436
|
const oe = r.currentChar();
|
|
437
|
-
switch ((
|
|
437
|
+
switch ((b === 7 || b === 8 || b === 11 || b === 9) && (oe === pe || oe === ke) && R(Q.INVALID_LINKED_FORMAT, a(), 0), oe) {
|
|
438
438
|
case "@":
|
|
439
|
-
return r.next(),
|
|
439
|
+
return r.next(), U = y(
|
|
440
440
|
o,
|
|
441
441
|
7,
|
|
442
442
|
"@"
|
|
443
443
|
/* TokenChars.LinkedAlias */
|
|
444
|
-
), o.inLinked = !0,
|
|
444
|
+
), o.inLinked = !0, U;
|
|
445
445
|
case ".":
|
|
446
446
|
return D(r), r.next(), y(
|
|
447
447
|
o,
|
|
@@ -457,21 +457,21 @@ function Ss(e, t = {}) {
|
|
|
457
457
|
/* TokenChars.LinkedDelimiter */
|
|
458
458
|
);
|
|
459
459
|
default:
|
|
460
|
-
return E(r) ? (
|
|
460
|
+
return E(r) ? (U = y(o, 1, Ke(r)), o.braceNest = 0, o.inLinked = !1, U) : S(r, o) || v(r, o) ? (D(r), Ge(r, o)) : g(r, o) ? (D(r), y(o, 11, It(r))) : h(r, o) ? (D(r), oe === "{" ? xe(r, o) || U : y(o, 10, Et(r))) : (b === 7 && R(Q.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, ze(r, o));
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
function
|
|
464
|
-
let
|
|
463
|
+
function ze(r, o) {
|
|
464
|
+
let b = {
|
|
465
465
|
type: 13
|
|
466
466
|
/* TokenTypes.EOF */
|
|
467
467
|
};
|
|
468
468
|
if (o.braceNest > 0)
|
|
469
|
-
return
|
|
469
|
+
return xe(r, o) || P(o);
|
|
470
470
|
if (o.inLinked)
|
|
471
|
-
return
|
|
471
|
+
return Ge(r, o) || P(o);
|
|
472
472
|
switch (r.currentChar()) {
|
|
473
473
|
case "{":
|
|
474
|
-
return
|
|
474
|
+
return xe(r, o) || P(o);
|
|
475
475
|
case "}":
|
|
476
476
|
return R(Q.UNBALANCED_CLOSING_BRACE, a(), 0), r.next(), y(
|
|
477
477
|
o,
|
|
@@ -480,24 +480,24 @@ function Ss(e, t = {}) {
|
|
|
480
480
|
/* TokenChars.BraceRight */
|
|
481
481
|
);
|
|
482
482
|
case "@":
|
|
483
|
-
return
|
|
483
|
+
return Ge(r, o) || P(o);
|
|
484
484
|
default: {
|
|
485
485
|
if (E(r))
|
|
486
|
-
return
|
|
486
|
+
return b = y(o, 1, Ke(r)), o.braceNest = 0, o.inLinked = !1, b;
|
|
487
487
|
if (A(r))
|
|
488
|
-
return y(o, 0,
|
|
488
|
+
return y(o, 0, $(r));
|
|
489
489
|
break;
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
return
|
|
492
|
+
return b;
|
|
493
493
|
}
|
|
494
494
|
function yt() {
|
|
495
|
-
const { currentType: r, offset: o, startLoc:
|
|
496
|
-
return u.lastType = r, u.lastOffset = o, u.lastStartLoc =
|
|
495
|
+
const { currentType: r, offset: o, startLoc: b, endLoc: U } = u;
|
|
496
|
+
return u.lastType = r, u.lastOffset = o, u.lastStartLoc = b, u.lastEndLoc = U, u.offset = l(), u.startLoc = a(), s.currentChar() === Ce ? y(
|
|
497
497
|
u,
|
|
498
498
|
13
|
|
499
499
|
/* TokenTypes.EOF */
|
|
500
|
-
) :
|
|
500
|
+
) : ze(s, u);
|
|
501
501
|
}
|
|
502
502
|
return {
|
|
503
503
|
nextToken: yt,
|
|
@@ -524,7 +524,7 @@ function Ps(e = {}) {
|
|
|
524
524
|
function s(i, d, N, _, ...w) {
|
|
525
525
|
const S = i.currentPosition();
|
|
526
526
|
if (S.offset += _, S.column += _, n) {
|
|
527
|
-
const g = t ? Dt(N, S) : null, v =
|
|
527
|
+
const g = t ? Dt(N, S) : null, v = ht(d, g, {
|
|
528
528
|
domain: Ms,
|
|
529
529
|
args: w
|
|
530
530
|
});
|
|
@@ -559,7 +559,7 @@ function Ps(e = {}) {
|
|
|
559
559
|
return d.type !== 11 ? (s(i, Q.UNEXPECTED_EMPTY_LINKED_MODIFIER, N.lastStartLoc, 0), S.value = "", a(S, _, w), {
|
|
560
560
|
nextConsumeToken: d,
|
|
561
561
|
node: S
|
|
562
|
-
}) : (d.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0,
|
|
562
|
+
}) : (d.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, Te(d)), S.value = d.value || "", a(S, i.currentOffset(), i.currentPosition()), {
|
|
563
563
|
node: S
|
|
564
564
|
});
|
|
565
565
|
}
|
|
@@ -574,18 +574,18 @@ function Ps(e = {}) {
|
|
|
574
574
|
const w = O(i);
|
|
575
575
|
N.modifier = w.node, _ = w.nextConsumeToken || i.nextToken();
|
|
576
576
|
}
|
|
577
|
-
switch (_.type !== 9 && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0,
|
|
577
|
+
switch (_.type !== 9 && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Te(_)), _ = i.nextToken(), _.type === 2 && (_ = i.nextToken()), _.type) {
|
|
578
578
|
case 10:
|
|
579
|
-
_.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0,
|
|
579
|
+
_.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Te(_)), N.key = R(i, _.value || "");
|
|
580
580
|
break;
|
|
581
581
|
case 4:
|
|
582
|
-
_.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0,
|
|
582
|
+
_.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Te(_)), N.key = u(i, _.value || "");
|
|
583
583
|
break;
|
|
584
584
|
case 5:
|
|
585
|
-
_.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0,
|
|
585
|
+
_.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Te(_)), N.key = m(i, _.value || "");
|
|
586
586
|
break;
|
|
587
587
|
case 6:
|
|
588
|
-
_.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0,
|
|
588
|
+
_.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Te(_)), N.key = p(i, _.value || "");
|
|
589
589
|
break;
|
|
590
590
|
default: {
|
|
591
591
|
s(i, Q.UNEXPECTED_EMPTY_LINKED_KEY, d.lastStartLoc, 0);
|
|
@@ -605,19 +605,19 @@ function Ps(e = {}) {
|
|
|
605
605
|
w.items = [];
|
|
606
606
|
let S = null;
|
|
607
607
|
do {
|
|
608
|
-
const
|
|
609
|
-
switch (S = null,
|
|
608
|
+
const h = S || i.nextToken();
|
|
609
|
+
switch (S = null, h.type) {
|
|
610
610
|
case 0:
|
|
611
|
-
|
|
611
|
+
h.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Te(h)), w.items.push(c(i, h.value || ""));
|
|
612
612
|
break;
|
|
613
613
|
case 5:
|
|
614
|
-
|
|
614
|
+
h.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Te(h)), w.items.push(m(i, h.value || ""));
|
|
615
615
|
break;
|
|
616
616
|
case 4:
|
|
617
|
-
|
|
617
|
+
h.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Te(h)), w.items.push(u(i, h.value || ""));
|
|
618
618
|
break;
|
|
619
619
|
case 6:
|
|
620
|
-
|
|
620
|
+
h.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Te(h)), w.items.push(p(i, h.value || ""));
|
|
621
621
|
break;
|
|
622
622
|
case 7: {
|
|
623
623
|
const E = y(i);
|
|
@@ -629,7 +629,7 @@ function Ps(e = {}) {
|
|
|
629
629
|
const g = d.currentType === 1 ? d.lastOffset : i.currentOffset(), v = d.currentType === 1 ? d.lastEndLoc : i.currentPosition();
|
|
630
630
|
return a(w, g, v), w;
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function V(i, d, N, _) {
|
|
633
633
|
const w = i.context();
|
|
634
634
|
let S = _.items.length === 0;
|
|
635
635
|
const g = l(1, d, N);
|
|
@@ -642,7 +642,7 @@ function Ps(e = {}) {
|
|
|
642
642
|
}
|
|
643
643
|
function L(i) {
|
|
644
644
|
const d = i.context(), { offset: N, startLoc: _ } = d, w = P(i);
|
|
645
|
-
return d.currentType === 13 ? w :
|
|
645
|
+
return d.currentType === 13 ? w : V(i, N, _, w);
|
|
646
646
|
}
|
|
647
647
|
function D(i) {
|
|
648
648
|
const d = Ss(i, fe({}, e)), N = d.context(), _ = l(0, N.offset, N.startLoc);
|
|
@@ -650,7 +650,7 @@ function Ps(e = {}) {
|
|
|
650
650
|
}
|
|
651
651
|
return { parse: D };
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function Te(e) {
|
|
654
654
|
if (e.type === 13)
|
|
655
655
|
return "EOF";
|
|
656
656
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
@@ -717,7 +717,7 @@ function js(e, t = {}) {
|
|
|
717
717
|
const s = n.context();
|
|
718
718
|
e.helpers = Array.from(s.helpers);
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function Us(e) {
|
|
721
721
|
const t = e.body;
|
|
722
722
|
return t.type === 2 ? rn(t) : t.cases.forEach((n) => rn(n)), e;
|
|
723
723
|
}
|
|
@@ -742,24 +742,24 @@ function rn(e) {
|
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
|
-
function
|
|
745
|
+
function Ye(e) {
|
|
746
746
|
switch (e.t = e.type, e.type) {
|
|
747
747
|
case 0: {
|
|
748
748
|
const t = e;
|
|
749
|
-
|
|
749
|
+
Ye(t.body), t.b = t.body, delete t.body;
|
|
750
750
|
break;
|
|
751
751
|
}
|
|
752
752
|
case 1: {
|
|
753
753
|
const t = e, n = t.cases;
|
|
754
754
|
for (let s = 0; s < n.length; s++)
|
|
755
|
-
|
|
755
|
+
Ye(n[s]);
|
|
756
756
|
t.c = n, delete t.cases;
|
|
757
757
|
break;
|
|
758
758
|
}
|
|
759
759
|
case 2: {
|
|
760
760
|
const t = e, n = t.items;
|
|
761
761
|
for (let s = 0; s < n.length; s++)
|
|
762
|
-
|
|
762
|
+
Ye(n[s]);
|
|
763
763
|
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
764
764
|
break;
|
|
765
765
|
}
|
|
@@ -773,7 +773,7 @@ function Xe(e) {
|
|
|
773
773
|
}
|
|
774
774
|
case 6: {
|
|
775
775
|
const t = e;
|
|
776
|
-
|
|
776
|
+
Ye(t.key), t.k = t.key, delete t.key, t.modifier && (Ye(t.modifier), t.m = t.modifier, delete t.modifier);
|
|
777
777
|
break;
|
|
778
778
|
}
|
|
779
779
|
case 5: {
|
|
@@ -789,7 +789,7 @@ function Xe(e) {
|
|
|
789
789
|
}
|
|
790
790
|
delete e.type;
|
|
791
791
|
}
|
|
792
|
-
function
|
|
792
|
+
function Vs(e, t) {
|
|
793
793
|
const { filename: n, breakLineCode: s, needIndent: l } = t, a = t.location !== !1, c = {
|
|
794
794
|
filename: n,
|
|
795
795
|
code: "",
|
|
@@ -831,14 +831,14 @@ function Us(e, t) {
|
|
|
831
831
|
needIndent: () => c.needIndent
|
|
832
832
|
};
|
|
833
833
|
}
|
|
834
|
-
function
|
|
834
|
+
function xs(e, t) {
|
|
835
835
|
const { helper: n } = e;
|
|
836
836
|
e.push(`${n(
|
|
837
837
|
"linked"
|
|
838
838
|
/* HelperNameMap.LINKED */
|
|
839
839
|
)}(`), Ze(e, t.key), t.modifier ? (e.push(", "), Ze(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
840
840
|
}
|
|
841
|
-
function
|
|
841
|
+
function Gs(e, t) {
|
|
842
842
|
const { helper: n, needIndent: s } = e;
|
|
843
843
|
e.push(`${n(
|
|
844
844
|
"normalize"
|
|
@@ -849,7 +849,7 @@ function Ws(e, t) {
|
|
|
849
849
|
e.push(", ");
|
|
850
850
|
e.deindent(s()), e.push("])");
|
|
851
851
|
}
|
|
852
|
-
function
|
|
852
|
+
function Ws(e, t) {
|
|
853
853
|
const { helper: n, needIndent: s } = e;
|
|
854
854
|
if (t.cases.length > 1) {
|
|
855
855
|
e.push(`${n(
|
|
@@ -862,23 +862,23 @@ function xs(e, t) {
|
|
|
862
862
|
e.deindent(s()), e.push("])");
|
|
863
863
|
}
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function Ys(e, t) {
|
|
866
866
|
t.body ? Ze(e, t.body) : e.push("null");
|
|
867
867
|
}
|
|
868
868
|
function Ze(e, t) {
|
|
869
869
|
const { helper: n } = e;
|
|
870
870
|
switch (t.type) {
|
|
871
871
|
case 0:
|
|
872
|
-
|
|
872
|
+
Ys(e, t);
|
|
873
873
|
break;
|
|
874
874
|
case 1:
|
|
875
|
-
|
|
875
|
+
Ws(e, t);
|
|
876
876
|
break;
|
|
877
877
|
case 2:
|
|
878
|
-
|
|
878
|
+
Gs(e, t);
|
|
879
879
|
break;
|
|
880
880
|
case 6:
|
|
881
|
-
|
|
881
|
+
xs(e, t);
|
|
882
882
|
break;
|
|
883
883
|
case 8:
|
|
884
884
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -912,11 +912,11 @@ function Ze(e, t) {
|
|
|
912
912
|
break;
|
|
913
913
|
}
|
|
914
914
|
}
|
|
915
|
-
const
|
|
915
|
+
const Xs = (e, t = {}) => {
|
|
916
916
|
const n = F(t.mode) ? t.mode : "normal", s = F(t.filename) ? t.filename : "message.intl";
|
|
917
917
|
t.sourceMap;
|
|
918
918
|
const l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
919
|
-
`, a = t.needIndent ? t.needIndent : n !== "arrow", c = e.helpers || [], m =
|
|
919
|
+
`, a = t.needIndent ? t.needIndent : n !== "arrow", c = e.helpers || [], m = Vs(e, {
|
|
920
920
|
filename: s,
|
|
921
921
|
breakLineCode: l,
|
|
922
922
|
needIndent: a
|
|
@@ -932,17 +932,17 @@ const Ys = (e, t = {}) => {
|
|
|
932
932
|
};
|
|
933
933
|
function Zs(e, t = {}) {
|
|
934
934
|
const n = fe({}, t), s = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize, m = Ps(n).parse(e);
|
|
935
|
-
return s ? (a &&
|
|
935
|
+
return s ? (a && Us(m), l && Ye(m), { ast: m, code: "" }) : (js(m, n), Xs(m, n));
|
|
936
936
|
}
|
|
937
937
|
var Bs = { env: { NODE_ENV: "production" } };
|
|
938
938
|
function Hs() {
|
|
939
939
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (je().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (je().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
940
940
|
}
|
|
941
941
|
function Ot(e) {
|
|
942
|
-
return (n) =>
|
|
942
|
+
return (n) => $s(n, e);
|
|
943
943
|
}
|
|
944
|
-
function
|
|
945
|
-
const n =
|
|
944
|
+
function $s(e, t) {
|
|
945
|
+
const n = Ks(t);
|
|
946
946
|
if (n == null)
|
|
947
947
|
throw et(
|
|
948
948
|
0
|
|
@@ -957,13 +957,13 @@ function Js(e, t) {
|
|
|
957
957
|
} else
|
|
958
958
|
return ln(e, n);
|
|
959
959
|
}
|
|
960
|
-
const
|
|
961
|
-
function
|
|
962
|
-
return Me(e,
|
|
960
|
+
const Js = ["b", "body"];
|
|
961
|
+
function Ks(e) {
|
|
962
|
+
return Me(e, Js);
|
|
963
963
|
}
|
|
964
|
-
const
|
|
964
|
+
const zs = ["c", "cases"];
|
|
965
965
|
function Qs(e) {
|
|
966
|
-
return Me(e,
|
|
966
|
+
return Me(e, zs, []);
|
|
967
967
|
}
|
|
968
968
|
function ln(e, t) {
|
|
969
969
|
const n = ea(t);
|
|
@@ -1056,11 +1056,11 @@ function et(e) {
|
|
|
1056
1056
|
const ca = (e) => e;
|
|
1057
1057
|
let ot = q();
|
|
1058
1058
|
function Be(e) {
|
|
1059
|
-
return
|
|
1059
|
+
return K(e) && Ht(e) === 0 && (ye(e, "b") || ye(e, "body"));
|
|
1060
1060
|
}
|
|
1061
1061
|
function ua(e, t = {}) {
|
|
1062
1062
|
let n = !1;
|
|
1063
|
-
const s = t.onError ||
|
|
1063
|
+
const s = t.onError || Ts;
|
|
1064
1064
|
return t.onError = (l) => {
|
|
1065
1065
|
n = !0, s(l);
|
|
1066
1066
|
}, { ...Zs(e, t), detectError: n };
|
|
@@ -1111,11 +1111,11 @@ const Le = {
|
|
|
1111
1111
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1112
1112
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1113
1113
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1114
|
-
},
|
|
1114
|
+
}, ha = 24;
|
|
1115
1115
|
function Re(e) {
|
|
1116
|
-
return
|
|
1116
|
+
return ht(e, null, void 0);
|
|
1117
1117
|
}
|
|
1118
|
-
function
|
|
1118
|
+
function $t(e, t) {
|
|
1119
1119
|
return t.locale != null ? on(t.locale) : on(e.locale);
|
|
1120
1120
|
}
|
|
1121
1121
|
let Lt;
|
|
@@ -1135,10 +1135,10 @@ function on(e) {
|
|
|
1135
1135
|
} else
|
|
1136
1136
|
throw Re(Le.NOT_SUPPORT_LOCALE_TYPE);
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1138
|
+
function ba(e, t, n) {
|
|
1139
1139
|
return [.../* @__PURE__ */ new Set([
|
|
1140
1140
|
n,
|
|
1141
|
-
...ue(t) ? t :
|
|
1141
|
+
...ue(t) ? t : K(t) ? Object.keys(t) : F(t) ? [t] : [n]
|
|
1142
1142
|
])];
|
|
1143
1143
|
}
|
|
1144
1144
|
function Dn(e, t, n) {
|
|
@@ -1150,7 +1150,7 @@ function Dn(e, t, n) {
|
|
|
1150
1150
|
let c = [n];
|
|
1151
1151
|
for (; ue(c); )
|
|
1152
1152
|
c = cn(a, c, t);
|
|
1153
|
-
const m = ue(t) ||
|
|
1153
|
+
const m = ue(t) || !J(t) ? t : t.default ? t.default : null;
|
|
1154
1154
|
c = F(m) ? [m] : m, ue(c) && cn(a, c, !1), l.__localeChainCache.set(s, a);
|
|
1155
1155
|
}
|
|
1156
1156
|
return a;
|
|
@@ -1177,7 +1177,7 @@ function va(e, t, n) {
|
|
|
1177
1177
|
if (!e.includes(t) && (s = !0, t)) {
|
|
1178
1178
|
s = t[t.length - 1] !== "!";
|
|
1179
1179
|
const l = t.replace(/!/g, "");
|
|
1180
|
-
e.push(l), (ue(n) ||
|
|
1180
|
+
e.push(l), (ue(n) || J(n)) && n[l] && (s = n[l]);
|
|
1181
1181
|
}
|
|
1182
1182
|
return s;
|
|
1183
1183
|
}
|
|
@@ -1375,11 +1375,11 @@ function Na(e) {
|
|
|
1375
1375
|
}
|
|
1376
1376
|
return "i";
|
|
1377
1377
|
}
|
|
1378
|
-
function
|
|
1378
|
+
function Ta(e) {
|
|
1379
1379
|
const t = e.trim();
|
|
1380
1380
|
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Ea(t) ? ya(t) : "*" + t;
|
|
1381
1381
|
}
|
|
1382
|
-
function
|
|
1382
|
+
function ka(e) {
|
|
1383
1383
|
const t = [];
|
|
1384
1384
|
let n = -1, s = 0, l = 0, a, c, m, u, p, O, R;
|
|
1385
1385
|
const y = [];
|
|
@@ -1411,7 +1411,7 @@ function Ta(e) {
|
|
|
1411
1411
|
/* Actions.APPEND */
|
|
1412
1412
|
]();
|
|
1413
1413
|
else {
|
|
1414
|
-
if (l = 0, c === void 0 || (c =
|
|
1414
|
+
if (l = 0, c === void 0 || (c = Ta(c), c === !1))
|
|
1415
1415
|
return !1;
|
|
1416
1416
|
y[
|
|
1417
1417
|
1
|
|
@@ -1420,9 +1420,9 @@ function Ta(e) {
|
|
|
1420
1420
|
}
|
|
1421
1421
|
};
|
|
1422
1422
|
function P() {
|
|
1423
|
-
const
|
|
1424
|
-
if (s === 5 &&
|
|
1425
|
-
return n++, m = "\\" +
|
|
1423
|
+
const V = e[n + 1];
|
|
1424
|
+
if (s === 5 && V === "'" || s === 6 && V === '"')
|
|
1425
|
+
return n++, m = "\\" + V, y[
|
|
1426
1426
|
0
|
|
1427
1427
|
/* Actions.APPEND */
|
|
1428
1428
|
](), !0;
|
|
@@ -1437,13 +1437,13 @@ function Ta(e) {
|
|
|
1437
1437
|
}
|
|
1438
1438
|
const un = /* @__PURE__ */ new Map();
|
|
1439
1439
|
function Oa(e, t) {
|
|
1440
|
-
return
|
|
1440
|
+
return K(e) ? e[t] : null;
|
|
1441
1441
|
}
|
|
1442
1442
|
function La(e, t) {
|
|
1443
|
-
if (!
|
|
1443
|
+
if (!K(e))
|
|
1444
1444
|
return null;
|
|
1445
1445
|
let n = un.get(t);
|
|
1446
|
-
if (n || (n =
|
|
1446
|
+
if (n || (n = ka(t), n && un.set(t, n)), !n)
|
|
1447
1447
|
return null;
|
|
1448
1448
|
const s = n.length;
|
|
1449
1449
|
let l = e, a = 0;
|
|
@@ -1455,12 +1455,12 @@ function La(e, t) {
|
|
|
1455
1455
|
}
|
|
1456
1456
|
return l;
|
|
1457
1457
|
}
|
|
1458
|
-
const Ra = "10.0.5",
|
|
1458
|
+
const Ra = "10.0.5", bt = -1, ft = "en-US", mn = "", dn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1459
1459
|
function Ca() {
|
|
1460
1460
|
return {
|
|
1461
|
-
upper: (e, t) => t === "text" && F(e) ? e.toUpperCase() : t === "vnode" &&
|
|
1462
|
-
lower: (e, t) => t === "text" && F(e) ? e.toLowerCase() : t === "vnode" &&
|
|
1463
|
-
capitalize: (e, t) => t === "text" && F(e) ? dn(e) : t === "vnode" &&
|
|
1461
|
+
upper: (e, t) => t === "text" && F(e) ? e.toUpperCase() : t === "vnode" && K(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1462
|
+
lower: (e, t) => t === "text" && F(e) ? e.toLowerCase() : t === "vnode" && K(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1463
|
+
capitalize: (e, t) => t === "text" && F(e) ? dn(e) : t === "vnode" && K(e) && "__v_isVNode" in e ? dn(e.children) : e
|
|
1464
1464
|
};
|
|
1465
1465
|
}
|
|
1466
1466
|
let wn;
|
|
@@ -1479,13 +1479,13 @@ let jn = null;
|
|
|
1479
1479
|
const Da = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1480
1480
|
jn = e;
|
|
1481
1481
|
}, wa = /* @__NO_SIDE_EFFECTS__ */ () => jn;
|
|
1482
|
-
let
|
|
1482
|
+
let Un = null;
|
|
1483
1483
|
const fn = (e) => {
|
|
1484
|
-
|
|
1485
|
-
}, Pa = () =>
|
|
1484
|
+
Un = e;
|
|
1485
|
+
}, Pa = () => Un;
|
|
1486
1486
|
let _n = 0;
|
|
1487
1487
|
function Fa(e = {}) {
|
|
1488
|
-
const t = le(e.onWarn) ? e.onWarn : Es, n = F(e.version) ? e.version : Ra, s = F(e.locale) || le(e.locale) ? e.locale : ft, l = le(s) ? ft : s, a = ue(e.fallbackLocale) ||
|
|
1488
|
+
const t = le(e.onWarn) ? e.onWarn : Es, n = F(e.version) ? e.version : Ra, s = F(e.locale) || le(e.locale) ? e.locale : ft, l = le(s) ? ft : s, a = ue(e.fallbackLocale) || J(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, c = J(e.messages) ? e.messages : Rt(l), m = J(e.datetimeFormats) ? e.datetimeFormats : Rt(l), u = J(e.numberFormats) ? e.numberFormats : Rt(l), p = fe(q(), e.modifiers, Ca()), O = e.pluralRules || q(), R = le(e.missing) ? e.missing : null, y = ce(e.missingWarn) || dt(e.missingWarn) ? e.missingWarn : !0, P = ce(e.fallbackWarn) || dt(e.fallbackWarn) ? e.fallbackWarn : !0, V = !!e.fallbackFormat, L = !!e.unresolving, D = le(e.postTranslation) ? e.postTranslation : null, i = J(e.processor) ? e.processor : null, d = ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, N = !!e.escapeParameter, _ = le(e.messageCompiler) ? e.messageCompiler : wn, w = le(e.messageResolver) ? e.messageResolver : Pn || Oa, S = le(e.localeFallbacker) ? e.localeFallbacker : Fn || ba, g = K(e.fallbackContext) ? e.fallbackContext : void 0, v = e, h = K(v.__datetimeFormatters) ? v.__datetimeFormatters : /* @__PURE__ */ new Map(), E = K(v.__numberFormatters) ? v.__numberFormatters : /* @__PURE__ */ new Map(), A = K(v.__meta) ? v.__meta : {};
|
|
1489
1489
|
_n++;
|
|
1490
1490
|
const C = {
|
|
1491
1491
|
version: n,
|
|
@@ -1498,7 +1498,7 @@ function Fa(e = {}) {
|
|
|
1498
1498
|
missing: R,
|
|
1499
1499
|
missingWarn: y,
|
|
1500
1500
|
fallbackWarn: P,
|
|
1501
|
-
fallbackFormat:
|
|
1501
|
+
fallbackFormat: V,
|
|
1502
1502
|
unresolving: L,
|
|
1503
1503
|
postTranslation: D,
|
|
1504
1504
|
processor: i,
|
|
@@ -1511,10 +1511,10 @@ function Fa(e = {}) {
|
|
|
1511
1511
|
onWarn: t,
|
|
1512
1512
|
__meta: A
|
|
1513
1513
|
};
|
|
1514
|
-
return C.datetimeFormats = m, C.numberFormats = u, C.__datetimeFormatters =
|
|
1514
|
+
return C.datetimeFormats = m, C.numberFormats = u, C.__datetimeFormatters = h, C.__numberFormatters = E, __INTLIFY_PROD_DEVTOOLS__ && fa(C, n, A), C;
|
|
1515
1515
|
}
|
|
1516
1516
|
const Rt = (e) => ({ [e]: q() });
|
|
1517
|
-
function
|
|
1517
|
+
function Jt(e, t, n, s, l) {
|
|
1518
1518
|
const { missing: a, onWarn: c } = e;
|
|
1519
1519
|
if (a !== null) {
|
|
1520
1520
|
const m = a(e, n, t, l);
|
|
@@ -1529,7 +1529,7 @@ function Qe(e, t, n) {
|
|
|
1529
1529
|
function ja(e, t) {
|
|
1530
1530
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1532
|
+
function Ua(e, t) {
|
|
1533
1533
|
const n = t.indexOf(e);
|
|
1534
1534
|
if (n === -1)
|
|
1535
1535
|
return !1;
|
|
@@ -1541,26 +1541,26 @@ function Va(e, t) {
|
|
|
1541
1541
|
function pn(e, ...t) {
|
|
1542
1542
|
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __datetimeFormatters: m } = e, [u, p, O, R] = Pt(...t), y = ce(O.missingWarn) ? O.missingWarn : e.missingWarn;
|
|
1543
1543
|
ce(O.fallbackWarn) ? O.fallbackWarn : e.fallbackWarn;
|
|
1544
|
-
const P = !!O.part,
|
|
1544
|
+
const P = !!O.part, V = $t(e, O), L = c(
|
|
1545
1545
|
e,
|
|
1546
1546
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1547
1547
|
l,
|
|
1548
|
-
|
|
1548
|
+
V
|
|
1549
1549
|
);
|
|
1550
1550
|
if (!F(u) || u === "")
|
|
1551
|
-
return new Intl.DateTimeFormat(
|
|
1551
|
+
return new Intl.DateTimeFormat(V, R).format(p);
|
|
1552
1552
|
let D = {}, i, d = null;
|
|
1553
1553
|
const N = "datetime format";
|
|
1554
|
-
for (let S = 0; S < L.length && (i = L[S], D = n[i] || {}, d = D[u],
|
|
1555
|
-
|
|
1556
|
-
if (
|
|
1557
|
-
return s ?
|
|
1554
|
+
for (let S = 0; S < L.length && (i = L[S], D = n[i] || {}, d = D[u], !J(d)); S++)
|
|
1555
|
+
Jt(e, u, i, y, N);
|
|
1556
|
+
if (!J(d) || !F(i))
|
|
1557
|
+
return s ? bt : u;
|
|
1558
1558
|
let _ = `${i}__${u}`;
|
|
1559
1559
|
pt(R) || (_ = `${_}__${JSON.stringify(R)}`);
|
|
1560
1560
|
let w = m.get(_);
|
|
1561
1561
|
return w || (w = new Intl.DateTimeFormat(i, fe({}, d, R)), m.set(_, w)), P ? w.formatToParts(p) : w.format(p);
|
|
1562
1562
|
}
|
|
1563
|
-
const
|
|
1563
|
+
const Vn = [
|
|
1564
1564
|
"localeMatcher",
|
|
1565
1565
|
"weekday",
|
|
1566
1566
|
"era",
|
|
@@ -1596,7 +1596,7 @@ function Pt(...e) {
|
|
|
1596
1596
|
} catch {
|
|
1597
1597
|
throw Re(Le.INVALID_ISO_DATE_ARGUMENT);
|
|
1598
1598
|
}
|
|
1599
|
-
} else if (
|
|
1599
|
+
} else if (hs(t)) {
|
|
1600
1600
|
if (isNaN(t.getTime()))
|
|
1601
1601
|
throw Re(Le.INVALID_DATE_ARGUMENT);
|
|
1602
1602
|
m = t;
|
|
@@ -1604,40 +1604,40 @@ function Pt(...e) {
|
|
|
1604
1604
|
m = t;
|
|
1605
1605
|
else
|
|
1606
1606
|
throw Re(Le.INVALID_ARGUMENT);
|
|
1607
|
-
return F(n) ? a.key = n :
|
|
1608
|
-
|
|
1609
|
-
}), F(s) ? a.locale = s :
|
|
1607
|
+
return F(n) ? a.key = n : J(n) && Object.keys(n).forEach((u) => {
|
|
1608
|
+
Vn.includes(u) ? c[u] = n[u] : a[u] = n[u];
|
|
1609
|
+
}), F(s) ? a.locale = s : J(s) && (c = s), J(l) && (c = l), [a.key || "", m, a, c];
|
|
1610
1610
|
}
|
|
1611
|
-
function
|
|
1611
|
+
function hn(e, t, n) {
|
|
1612
1612
|
const s = e;
|
|
1613
1613
|
for (const l in n) {
|
|
1614
1614
|
const a = `${t}__${l}`;
|
|
1615
1615
|
s.__datetimeFormatters.has(a) && s.__datetimeFormatters.delete(a);
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
1618
|
-
function
|
|
1618
|
+
function bn(e, ...t) {
|
|
1619
1619
|
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __numberFormatters: m } = e, [u, p, O, R] = Ft(...t), y = ce(O.missingWarn) ? O.missingWarn : e.missingWarn;
|
|
1620
1620
|
ce(O.fallbackWarn) ? O.fallbackWarn : e.fallbackWarn;
|
|
1621
|
-
const P = !!O.part,
|
|
1621
|
+
const P = !!O.part, V = $t(e, O), L = c(
|
|
1622
1622
|
e,
|
|
1623
1623
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1624
1624
|
l,
|
|
1625
|
-
|
|
1625
|
+
V
|
|
1626
1626
|
);
|
|
1627
1627
|
if (!F(u) || u === "")
|
|
1628
|
-
return new Intl.NumberFormat(
|
|
1628
|
+
return new Intl.NumberFormat(V, R).format(p);
|
|
1629
1629
|
let D = {}, i, d = null;
|
|
1630
1630
|
const N = "number format";
|
|
1631
|
-
for (let S = 0; S < L.length && (i = L[S], D = n[i] || {}, d = D[u],
|
|
1632
|
-
|
|
1633
|
-
if (
|
|
1634
|
-
return s ?
|
|
1631
|
+
for (let S = 0; S < L.length && (i = L[S], D = n[i] || {}, d = D[u], !J(d)); S++)
|
|
1632
|
+
Jt(e, u, i, y, N);
|
|
1633
|
+
if (!J(d) || !F(i))
|
|
1634
|
+
return s ? bt : u;
|
|
1635
1635
|
let _ = `${i}__${u}`;
|
|
1636
1636
|
pt(R) || (_ = `${_}__${JSON.stringify(R)}`);
|
|
1637
1637
|
let w = m.get(_);
|
|
1638
1638
|
return w || (w = new Intl.NumberFormat(i, fe({}, d, R)), m.set(_, w)), P ? w.formatToParts(p) : w.format(p);
|
|
1639
1639
|
}
|
|
1640
|
-
const
|
|
1640
|
+
const xn = [
|
|
1641
1641
|
"localeMatcher",
|
|
1642
1642
|
"style",
|
|
1643
1643
|
"currency",
|
|
@@ -1665,9 +1665,9 @@ function Ft(...e) {
|
|
|
1665
1665
|
if (!de(t))
|
|
1666
1666
|
throw Re(Le.INVALID_ARGUMENT);
|
|
1667
1667
|
const m = t;
|
|
1668
|
-
return F(n) ? a.key = n :
|
|
1669
|
-
|
|
1670
|
-
}), F(s) ? a.locale = s :
|
|
1668
|
+
return F(n) ? a.key = n : J(n) && Object.keys(n).forEach((u) => {
|
|
1669
|
+
xn.includes(u) ? c[u] = n[u] : a[u] = n[u];
|
|
1670
|
+
}), F(s) ? a.locale = s : J(s) && (c = s), J(l) && (c = l), [a.key || "", m, a, c];
|
|
1671
1671
|
}
|
|
1672
1672
|
function gn(e, t, n) {
|
|
1673
1673
|
const s = e;
|
|
@@ -1676,11 +1676,11 @@ function gn(e, t, n) {
|
|
|
1676
1676
|
s.__numberFormatters.has(a) && s.__numberFormatters.delete(a);
|
|
1677
1677
|
}
|
|
1678
1678
|
}
|
|
1679
|
-
const
|
|
1679
|
+
const Va = (e) => e, xa = (e) => "", Ga = "text", Wa = (e) => e.length === 0 ? "" : Zt(e), Ya = Is;
|
|
1680
1680
|
function vn(e, t) {
|
|
1681
1681
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1682
1682
|
}
|
|
1683
|
-
function
|
|
1683
|
+
function Xa(e) {
|
|
1684
1684
|
const t = de(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1685
1685
|
return e.named && (de(e.named.count) || de(e.named.n)) ? de(e.named.count) ? e.named.count : de(e.named.n) ? e.named.n : t : t;
|
|
1686
1686
|
}
|
|
@@ -1688,21 +1688,21 @@ function Za(e, t) {
|
|
|
1688
1688
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1689
1689
|
}
|
|
1690
1690
|
function Ba(e = {}) {
|
|
1691
|
-
const t = e.locale, n =
|
|
1691
|
+
const t = e.locale, n = Xa(e), s = K(e.pluralRules) && F(t) && le(e.pluralRules[t]) ? e.pluralRules[t] : vn, l = K(e.pluralRules) && F(t) && le(e.pluralRules[t]) ? vn : void 0, a = (i) => i[s(n, i.length, l)], c = e.list || [], m = (i) => c[i], u = e.named || q();
|
|
1692
1692
|
de(e.pluralIndex) && Za(n, u);
|
|
1693
1693
|
const p = (i) => u[i];
|
|
1694
1694
|
function O(i, d) {
|
|
1695
|
-
const N = le(e.messages) ? e.messages(i, !!d) :
|
|
1696
|
-
return N || (e.parent ? e.parent.message(i) :
|
|
1695
|
+
const N = le(e.messages) ? e.messages(i, !!d) : K(e.messages) ? e.messages[i] : !1;
|
|
1696
|
+
return N || (e.parent ? e.parent.message(i) : xa);
|
|
1697
1697
|
}
|
|
1698
|
-
const R = (i) => e.modifiers ? e.modifiers[i] :
|
|
1698
|
+
const R = (i) => e.modifiers ? e.modifiers[i] : Va, y = J(e.processor) && le(e.processor.normalize) ? e.processor.normalize : Wa, P = J(e.processor) && le(e.processor.interpolate) ? e.processor.interpolate : Ya, V = J(e.processor) && F(e.processor.type) ? e.processor.type : Ga, D = {
|
|
1699
1699
|
list: m,
|
|
1700
1700
|
named: p,
|
|
1701
1701
|
plural: a,
|
|
1702
1702
|
linked: (i, ...d) => {
|
|
1703
1703
|
const [N, _] = d;
|
|
1704
1704
|
let w = "text", S = "";
|
|
1705
|
-
d.length === 1 ?
|
|
1705
|
+
d.length === 1 ? K(N) ? (S = N.modifier || S, w = N.type || w) : F(N) && (S = N || S) : d.length === 2 && (F(N) && (S = N || S), F(_) && (w = _ || w));
|
|
1706
1706
|
const g = O(i, !0)(D), v = (
|
|
1707
1707
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1708
1708
|
w === "vnode" && ue(g) && S ? g[0] : g
|
|
@@ -1710,7 +1710,7 @@ function Ba(e = {}) {
|
|
|
1710
1710
|
return S ? R(S)(v, w) : v;
|
|
1711
1711
|
},
|
|
1712
1712
|
message: O,
|
|
1713
|
-
type:
|
|
1713
|
+
type: V,
|
|
1714
1714
|
interpolate: P,
|
|
1715
1715
|
normalize: y,
|
|
1716
1716
|
values: fe(q(), c, u)
|
|
@@ -1719,58 +1719,58 @@ function Ba(e = {}) {
|
|
|
1719
1719
|
}
|
|
1720
1720
|
const In = () => "", ve = (e) => le(e);
|
|
1721
1721
|
function En(e, ...t) {
|
|
1722
|
-
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: c, messages: m } = e, [u, p] = jt(...t), O = ce(p.missingWarn) ? p.missingWarn : e.missingWarn, R = ce(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, y = ce(p.escapeParameter) ? p.escapeParameter : e.escapeParameter, P = !!p.resolvedMessage,
|
|
1722
|
+
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: c, messages: m } = e, [u, p] = jt(...t), O = ce(p.missingWarn) ? p.missingWarn : e.missingWarn, R = ce(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, y = ce(p.escapeParameter) ? p.escapeParameter : e.escapeParameter, P = !!p.resolvedMessage, V = F(p.default) || ce(p.default) ? ce(p.default) ? a ? u : () => u : p.default : n ? a ? u : () => u : null, L = n || V != null && (F(V) || le(V)), D = $t(e, p);
|
|
1723
1723
|
y && Ha(p);
|
|
1724
1724
|
let [i, d, N] = P ? [
|
|
1725
1725
|
u,
|
|
1726
1726
|
D,
|
|
1727
1727
|
m[D] || q()
|
|
1728
|
-
] :
|
|
1729
|
-
if (!P && !(F(_) || Be(_) || ve(_)) && L && (_ =
|
|
1730
|
-
return l ?
|
|
1728
|
+
] : Gn(e, u, D, c, R, O), _ = i, w = u;
|
|
1729
|
+
if (!P && !(F(_) || Be(_) || ve(_)) && L && (_ = V, w = _), !P && (!(F(_) || Be(_) || ve(_)) || !F(d)))
|
|
1730
|
+
return l ? bt : u;
|
|
1731
1731
|
let S = !1;
|
|
1732
1732
|
const g = () => {
|
|
1733
1733
|
S = !0;
|
|
1734
|
-
}, v = ve(_) ? _ :
|
|
1734
|
+
}, v = ve(_) ? _ : Wn(e, u, d, _, w, g);
|
|
1735
1735
|
if (S)
|
|
1736
1736
|
return _;
|
|
1737
|
-
const
|
|
1737
|
+
const h = Ka(e, d, N, p), E = Ba(h), A = $a(e, v, E), C = s ? s(A, u) : A;
|
|
1738
1738
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1739
|
-
const
|
|
1739
|
+
const G = {
|
|
1740
1740
|
timestamp: Date.now(),
|
|
1741
1741
|
key: F(u) ? u : ve(_) ? _.key : "",
|
|
1742
1742
|
locale: d || (ve(_) ? _.locale : ""),
|
|
1743
1743
|
format: F(_) ? _ : ve(_) ? _.source : "",
|
|
1744
1744
|
message: C
|
|
1745
1745
|
};
|
|
1746
|
-
|
|
1746
|
+
G.meta = fe({}, e.__meta, /* @__PURE__ */ wa() || {}), _a(G);
|
|
1747
1747
|
}
|
|
1748
1748
|
return C;
|
|
1749
1749
|
}
|
|
1750
1750
|
function Ha(e) {
|
|
1751
|
-
ue(e.list) ? e.list = e.list.map((t) => F(t) ? nn(t) : t) :
|
|
1751
|
+
ue(e.list) ? e.list = e.list.map((t) => F(t) ? nn(t) : t) : K(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1752
1752
|
F(e.named[t]) && (e.named[t] = nn(e.named[t]));
|
|
1753
1753
|
});
|
|
1754
1754
|
}
|
|
1755
|
-
function
|
|
1755
|
+
function Gn(e, t, n, s, l, a) {
|
|
1756
1756
|
const { messages: c, onWarn: m, messageResolver: u, localeFallbacker: p } = e, O = p(e, s, n);
|
|
1757
1757
|
let R = q(), y, P = null;
|
|
1758
|
-
const
|
|
1758
|
+
const V = "translate";
|
|
1759
1759
|
for (let L = 0; L < O.length && (y = O[L], R = c[y] || q(), (P = u(R, t)) === null && (P = R[t]), !(F(P) || Be(P) || ve(P))); L++)
|
|
1760
|
-
if (!
|
|
1761
|
-
const D =
|
|
1760
|
+
if (!Ua(y, O)) {
|
|
1761
|
+
const D = Jt(
|
|
1762
1762
|
e,
|
|
1763
1763
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1764
1764
|
t,
|
|
1765
1765
|
y,
|
|
1766
1766
|
a,
|
|
1767
|
-
|
|
1767
|
+
V
|
|
1768
1768
|
);
|
|
1769
1769
|
D !== t && (P = D);
|
|
1770
1770
|
}
|
|
1771
1771
|
return [P, y, R];
|
|
1772
1772
|
}
|
|
1773
|
-
function
|
|
1773
|
+
function Wn(e, t, n, s, l, a) {
|
|
1774
1774
|
const { messageCompiler: c, warnHtmlMessage: m } = e;
|
|
1775
1775
|
if (ve(s)) {
|
|
1776
1776
|
const p = s;
|
|
@@ -1780,10 +1780,10 @@ function xn(e, t, n, s, l, a) {
|
|
|
1780
1780
|
const p = () => s;
|
|
1781
1781
|
return p.locale = n, p.key = t, p;
|
|
1782
1782
|
}
|
|
1783
|
-
const u = c(s,
|
|
1783
|
+
const u = c(s, Ja(e, n, l, s, m, a));
|
|
1784
1784
|
return u.locale = n, u.key = t, u.source = s, u;
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1786
|
+
function $a(e, t, n) {
|
|
1787
1787
|
return t(n);
|
|
1788
1788
|
}
|
|
1789
1789
|
function jt(...e) {
|
|
@@ -1791,9 +1791,9 @@ function jt(...e) {
|
|
|
1791
1791
|
if (!F(t) && !de(t) && !ve(t) && !Be(t))
|
|
1792
1792
|
throw Re(Le.INVALID_ARGUMENT);
|
|
1793
1793
|
const a = de(t) ? String(t) : (ve(t), t);
|
|
1794
|
-
return de(n) ? l.plural = n : F(n) ? l.default = n :
|
|
1794
|
+
return de(n) ? l.plural = n : F(n) ? l.default = n : J(n) && !pt(n) ? l.named = n : ue(n) && (l.list = n), de(s) ? l.plural = s : F(s) ? l.default = s : J(s) && fe(l, s), [a, l];
|
|
1795
1795
|
}
|
|
1796
|
-
function
|
|
1796
|
+
function Ja(e, t, n, s, l, a) {
|
|
1797
1797
|
return {
|
|
1798
1798
|
locale: t,
|
|
1799
1799
|
key: n,
|
|
@@ -1804,15 +1804,15 @@ function $a(e, t, n, s, l, a) {
|
|
|
1804
1804
|
onCacheKey: (c) => _s(t, n, c)
|
|
1805
1805
|
};
|
|
1806
1806
|
}
|
|
1807
|
-
function
|
|
1807
|
+
function Ka(e, t, n, s) {
|
|
1808
1808
|
const { modifiers: l, pluralRules: a, messageResolver: c, fallbackLocale: m, fallbackWarn: u, missingWarn: p, fallbackContext: O } = e, y = {
|
|
1809
1809
|
locale: t,
|
|
1810
1810
|
modifiers: l,
|
|
1811
1811
|
pluralRules: a,
|
|
1812
|
-
messages: (P,
|
|
1812
|
+
messages: (P, V) => {
|
|
1813
1813
|
let L = c(n, P);
|
|
1814
|
-
if (L == null && (O ||
|
|
1815
|
-
const [, , D] =
|
|
1814
|
+
if (L == null && (O || V)) {
|
|
1815
|
+
const [, , D] = Gn(
|
|
1816
1816
|
O || e,
|
|
1817
1817
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1818
1818
|
P,
|
|
@@ -1825,7 +1825,7 @@ function za(e, t, n, s) {
|
|
|
1825
1825
|
}
|
|
1826
1826
|
if (F(L) || Be(L)) {
|
|
1827
1827
|
let D = !1;
|
|
1828
|
-
const d =
|
|
1828
|
+
const d = Wn(e, P, t, L, P, () => {
|
|
1829
1829
|
D = !0;
|
|
1830
1830
|
});
|
|
1831
1831
|
return D ? In : d;
|
|
@@ -1835,14 +1835,14 @@ function za(e, t, n, s) {
|
|
|
1835
1835
|
return e.processor && (y.processor = e.processor), s.list && (y.list = s.list), s.named && (y.named = s.named), de(s.plural) && (y.pluralIndex = s.plural), y;
|
|
1836
1836
|
}
|
|
1837
1837
|
Hs();
|
|
1838
|
-
var Ka = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_f2c2a25a-0ec5-4d85-b59b-939776c65bf4", 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_f2c2a25a-0ec5-4d85-b59b-939776c65bf4", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.2.0", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_files_0: "dist", npm_package_devDependencies_eslint_import_resolver_typescript: "^4.4.4", HOME: "/home/runner", npm_package_devDependencies__eslint_js: "^9.39.2", npm_package_devDependencies__typescript_eslint_parser: "^8.52.0", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_devDependencies_eslint_config_prettier: "^10.1.8", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.5.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "^1.29.10", npm_package_devDependencies_code_inspector_plugin: "^0.20.16", npm_package_devDependencies_npm_run_all2: "^6.0.6", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1790", ACTIONS_ORCHESTRATION_ID: "3a8b3324-2ef4-417b-8e68-624db83a7bb3.publish.publish.__default", npm_package_dependencies__feedmepos_ui_library: "^1.10.6", npm_package_dependencies_dayjs: "^1.11.10", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "VITE_TARGET_ENV=dev pnpm build:mf && pnpm build:dts", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.9.3", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^2.0.6", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260513.135.3", 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:14496", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.16", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^8.52.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.10/x64", GITHUB_RUN_ID: "26220484235", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "5bc8ac7952adb6b96755c60ebc1c16fdf173662e", 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/hrm-0016-optimize-employee-create-update", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9ocm0tMDAxNi1vcHRpbWl6ZS1lbXBsb3llZS1jcmVhdGUtdXBkYXRlXCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsImF1ZCI6InZzbzo2Zjk2ZmE4OS1iN2JmLTQ4NzgtYmFkMy04OTgwMDY1NjZiNmUiLCJiaWxsaW5nX293bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwiZXhwIjoxNzc5MzgxNTYzLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3ByaW1hcnlzaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJpYXQiOjE3NzkzNTkzNjMsImlzcyI6Imh0dHBzOi8vdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJqb2JfaWQiOiJjMTI3NWYxYS03ZDA1LTVlYTUtOGJkYy00ZjY2ZDY1MjEwNzEiLCJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJuYmYiOjE3NzkzNTkwNjMsIm9pZGNfZXh0cmEiOiJ7XCJhY3RvclwiOlwianVuLWxlZS1mZWVkbWVcIixcImFjdG9yX2lkXCI6XCIyMzkyODI4NjJcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiNzcxNTM4OTkzMzRcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjIyMGY3ZTc2ZTBkY2EwOTNjNDc1MDM3YjhlN2MwZjU1M2I2MTcyMzlcIixcInJlZlwiOlwicmVmcy9oZWFkcy9ocm0tMDAxNi1vcHRpbWl6ZS1lbXBsb3llZS1jcmVhdGUtdXBkYXRlXCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjI2MjIwNDg0MjM1XCIsXCJydW5fbnVtYmVyXCI6XCI4N1wiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcIjViYzhhYzc5NTJhZGI2Yjk2NzU1YzYwZWJjMWMxNmZkZjE3MzY2MmVcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIGhybS1wb3J0YWxcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtaHJtLXBvcnRhbC10cnVzdGVkLnltbEByZWZzL2hlYWRzL2hybS0wMDE2LW9wdGltaXplLWVtcGxveWVlLWNyZWF0ZS11cGRhdGVcIixcIndvcmtmbG93X3NoYVwiOlwiNWJjOGFjNzk1MmFkYjZiOTY3NTVjNjBlYmMxYzE2ZmRmMTczNjYyZVwifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvaHJtLXNlcnZpY2U6cmVmOnJlZnMvaGVhZHMvaHJtLTAwMTYtb3B0aW1pemUtZW1wbG95ZWUtY3JlYXRlLXVwZGF0ZSIsIm9yY2hfaWQiOiIzYThiMzMyNC0yZWY0LTQxN2ItOGU2OC02MjRkYjgzYTdiYjMucHVibGlzaC5wdWJsaXNoLl9fZGVmYXVsdCIsIm93bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwicGxhbl9pZCI6IjNhOGIzMzI0LTJlZjQtNDE3Yi04ZTY4LTYyNGRiODNhN2JiMyIsInJlcG9zaXRvcnlfaWQiOiIxMTI0NjcyMjM1IiwicmVwb3NpdG9yeV9vd25lcl9pZCI6IjU0ODMxNTE1IiwicmVwb3NpdG9yeV92aXNpYmlsaXR5IjoicHJpdmF0ZSIsInJ1bl9pZCI6IjI2MjIwNDg0MjM1IiwicnVuX251bWJlciI6Ijg3IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDA3MTAyNiIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjNhOGIzMzI0LTJlZjQtNDE3Yi04ZTY4LTYyNGRiODNhN2JiMzpjMTI3NWYxYS03ZDA1LTVlYTUtOGJkYy00ZjY2ZDY1MjEwNzEgQWN0aW9ucy5SdW5uZXI6M2E4YjMzMjQtMmVmNC00MTdiLThlNjgtNjI0ZGI4M2E3YmIzOmMxMjc1ZjFhLTdkMDUtNWVhNS04YmRjLTRmNjZkNjUyMTA3MSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czozYThiMzMyNC0yZWY0LTQxN2ItOGU2OC02MjRkYjgzYTdiYjM6YzEyNzVmMWEtN2QwNS01ZWE1LThiZGMtNGY2NmQ2NTIxMDcxIGdlbmVyYXRlX2lkX3Rva2VuOjNhOGIzMzI0LTJlZjQtNDE3Yi04ZTY4LTYyNGRiODNhN2JiMzpjMTI3NWYxYS03ZDA1LTVlYTUtOGJkYy00ZjY2ZDY1MjEwNzEgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiI1YmM4YWM3OTUyYWRiNmI5Njc1NWM2MGViYzFjMTZmZGYxNzM2NjJlIiwidHJ1c3RfdGllciI6IjEifQ.2e4YihUh-y-Sx7njX9OjJiI46SsZFR3WwXmiEBhxwrSIccwfF1-XyAnDApPB1aUm2bAthOIap9t9R86X4hIolHziB_uzQVb-fd4g24vCGmMXkN-UFFLtG6ibLq5Tbz-qXbc9af7z7MzYCKVH9oB6AQ4GHCbZuchtLdmlJTbwNK3qB5UoKxBggMFkoErIsxm9iw57vbnSJ2YrmFMuPGfBviA4ZGeN6N7pDQz8YKQ8WlYJEox1xkpOyAr-cHWyA6XLVBdunxIfoqTLqZ9kkhx-l9i47OeAE_yP3UPr9NIaoG64sqkiK2npK-g-bEdQx61Vtqc9phIImca5FN3-rw0c-A", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_package_dependencies_axios: "^1.7.7", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/24.5.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_ba697217-adf3-4c2f-abdd-84053fbae673", INVOCATION_ID: "49d67f737c354b5aaadf5c6177d3c2ee", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", npm_package_name: "@feedmepos/mf-hrm-portal", GITHUB_ACTION: "__run_5", GITHUB_RUN_NUMBER: "87", 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 1000071026", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "hrm-0016-optimize-employee-create-update", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "^2.14.36", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__casl_ability: "^3.4.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^4.0.0", npm_package_devDependencies__vue_eslint_config_prettier: "^8.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.0.12-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: "5bc8ac7952adb6b96755c60ebc1c16fdf173662e", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.2", GITHUB_REF: "refs/heads/hrm-0016-optimize-employee-create-update", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", npm_package_devDependencies_globals: "^16.5.0", npm_package_scripts_format: "prettier --write src/", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_f2c2a25a-0ec5-4d85-b59b-939776c65bf4", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_package_devDependencies_vue_eslint_parser: "^10.2.0", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/211//idtoken/3a8b3324-2ef4-417b-8e68-624db83a7bb3/c1275f1a-7d05-5ea5-8bdc-4f66d6521071?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_f2c2a25a-0ec5-4d85-b59b-939776c65bf4", npm_package_exports___types: "./dist/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_feature_flag: "^0.0.15", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_devDependencies_eslint_plugin_vue: "^9.33.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_14.6.0", CHROME_BIN: "/usr/bin/google-chrome", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_f2c2a25a-0ec5-4d85-b59b-939776c65bf4", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1838
|
+
var za = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_8e6e2027-abd0-4530-b150-592e9b876cc4", 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_8e6e2027-abd0-4530-b150-592e9b876cc4", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.2.0", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_files_0: "dist", npm_package_devDependencies_eslint_import_resolver_typescript: "^4.4.4", HOME: "/home/runner", npm_package_devDependencies__eslint_js: "^9.39.2", npm_package_devDependencies__typescript_eslint_parser: "^8.52.0", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_devDependencies_eslint_config_prettier: "^10.1.8", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.5.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "^1.29.10", npm_package_devDependencies_code_inspector_plugin: "^0.20.16", npm_package_devDependencies_npm_run_all2: "^6.0.6", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1865", ACTIONS_ORCHESTRATION_ID: "f7f5021f-ba2b-4c44-8c2b-135928c02a11.publish.publish.__default", npm_package_dependencies__feedmepos_ui_library: "^1.10.6", npm_package_dependencies_dayjs: "^1.11.10", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "VITE_TARGET_ENV=dev pnpm build:mf && pnpm build:dts", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.9.3", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^2.0.6", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260513.135.3", 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:15368", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.16", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^8.52.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.10/x64", GITHUB_RUN_ID: "26237838661", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "68bb3255db0b681bff3212fe83e0f9b9a169a316", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/main", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6M31dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3Nzk0MDE3NTUsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc3OTM3OTU1NSwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImFhODBjMTYyLWNlNDEtNTY1Mi04NmQ1LTA1YjdlOTJmNzgwZCIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc3OTM3OTI1NSwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI3NzIxNTg2NTk3OFwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiMjIwZjdlNzZlMGRjYTA5M2M0NzUwMzdiOGU3YzBmNTUzYjYxNzIzOVwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL21haW5cIixcInJlZl9wcm90ZWN0ZWRcIjpcInRydWVcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIyNjIzNzgzODY2MVwiLFwicnVuX251bWJlclwiOlwiODhcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCI2OGJiMzI1NWRiMGI2ODFiZmYzMjEyZmU4M2UwZjliOWExNjlhMzE2XCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy9tYWluXCIsXCJ3b3JrZmxvd19zaGFcIjpcIjY4YmIzMjU1ZGIwYjY4MWJmZjMyMTJmZTgzZTBmOWI5YTE2OWEzMTZcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL2hybS1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL21haW4iLCJvcmNoX2lkIjoiZjdmNTAyMWYtYmEyYi00YzQ0LThjMmItMTM1OTI4YzAyYTExLnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiJmN2Y1MDIxZi1iYTJiLTRjNDQtOGMyYi0xMzU5MjhjMDJhMTEiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiIyNjIzNzgzODY2MSIsInJ1bl9udW1iZXIiOiI4OCIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDAwNzExNjkiLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czpmN2Y1MDIxZi1iYTJiLTRjNDQtOGMyYi0xMzU5MjhjMDJhMTE6YWE4MGMxNjItY2U0MS01NjUyLTg2ZDUtMDViN2U5MmY3ODBkIEFjdGlvbnMuUnVubmVyOmY3ZjUwMjFmLWJhMmItNGM0NC04YzJiLTEzNTkyOGMwMmExMTphYTgwYzE2Mi1jZTQxLTU2NTItODZkNS0wNWI3ZTkyZjc4MGQgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6ZjdmNTAyMWYtYmEyYi00YzQ0LThjMmItMTM1OTI4YzAyYTExOmFhODBjMTYyLWNlNDEtNTY1Mi04NmQ1LTA1YjdlOTJmNzgwZCBnZW5lcmF0ZV9pZF90b2tlbjpmN2Y1MDIxZi1iYTJiLTRjNDQtOGMyYi0xMzU5MjhjMDJhMTE6YWE4MGMxNjItY2U0MS01NjUyLTg2ZDUtMDViN2U5MmY3ODBkIEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiNjhiYjMyNTVkYjBiNjgxYmZmMzIxMmZlODNlMGY5YjlhMTY5YTMxNiIsInRydXN0X3RpZXIiOiIxIn0.5CX1Gfh8NNMdN0eYPaoDxNV2kewG48UFSyVKp5ljxlBnDXcOCkEedFahQ1ImCVWP2VU8T3TIlS--x3E_F268_idBJ84GH_7ueABa_MUx4FSK6S5SCIDHl1bwjfgO9JT1wi7_3rY5rQvrUcxuxN39q0wHOc0kL7XBCutCsnjHd2RrQkjPoiKukWaz-yOKxBYiBlXRQpKfX1rN_G7_y2_Rbh02ujicKNu6GsvCFhUo59ShbL0UhyfLZkoxndH6jHB-l8IoRK3ozvep2QcNslY5LO-u8GhTDE2g3flIx8WY2JKV3-T4EFvRD44OoM1oqp4PONhxiDe1aT_NdLzWC0pXHQ", 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_0f1df503-93c4-4ccf-830a-c8ad33bc6460", INVOCATION_ID: "261614dd1ddb4494906c8c84e018a7e0", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", npm_package_name: "@feedmepos/mf-hrm-portal", GITHUB_ACTION: "__run_5", GITHUB_RUN_NUMBER: "88", 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 1000071169", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "^2.14.36", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__casl_ability: "^3.4.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^4.0.0", npm_package_devDependencies__vue_eslint_config_prettier: "^8.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.0.12", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts", npm_package_dependencies__feedmepos_hrm_permission: "workspace:*", npm_package_devDependencies__rushstack_eslint_patch: "^1.3.3", npm_package_devDependencies_eslint_plugin_unused_imports: "^4.3.0", npm_package_devDependencies_jsdom: "^24.0.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "true", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_uuid: "^10.0.0", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "68bb3255db0b681bff3212fe83e0f9b9a169a316", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.2", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_devDependencies_globals: "^16.5.0", npm_package_scripts_format: "prettier --write src/", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_8e6e2027-abd0-4530-b150-592e9b876cc4", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_package_devDependencies_vue_eslint_parser: "^10.2.0", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/106//idtoken/f7f5021f-ba2b-4c44-8c2b-135928c02a11/aa80c162-ce41-5652-86d5-05b7e92f780d?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_8e6e2027-abd0-4530-b150-592e9b876cc4", npm_package_exports___types: "./dist/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_feature_flag: "^0.0.15", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_devDependencies_eslint_plugin_vue: "^9.33.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_14.6.0", CHROME_BIN: "/usr/bin/google-chrome", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_8e6e2027-abd0-4530-b150-592e9b876cc4", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1839
1839
|
const Qa = "10.0.5";
|
|
1840
1840
|
function qa() {
|
|
1841
1841
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (je().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (je().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (je().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (je().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1842
1842
|
}
|
|
1843
1843
|
const He = {
|
|
1844
1844
|
// composer module errors
|
|
1845
|
-
UNEXPECTED_RETURN_TYPE:
|
|
1845
|
+
UNEXPECTED_RETURN_TYPE: ha,
|
|
1846
1846
|
// 24
|
|
1847
1847
|
// legacy module errors
|
|
1848
1848
|
INVALID_ARGUMENT: 25,
|
|
@@ -1854,32 +1854,32 @@ const He = {
|
|
|
1854
1854
|
UNEXPECTED_ERROR: 32
|
|
1855
1855
|
};
|
|
1856
1856
|
function nt(e, ...t) {
|
|
1857
|
-
return
|
|
1857
|
+
return ht(e, null, void 0);
|
|
1858
1858
|
}
|
|
1859
|
-
const
|
|
1859
|
+
const Ut = /* @__PURE__ */ Ve("__translateVNode"), Vt = /* @__PURE__ */ Ve("__datetimeParts"), xt = /* @__PURE__ */ Ve("__numberParts"), er = Ve("__setPluralRules"), Yn = /* @__PURE__ */ Ve("__injectWithOption"), Gt = /* @__PURE__ */ Ve("__dispose");
|
|
1860
1860
|
function st(e) {
|
|
1861
|
-
if (!
|
|
1861
|
+
if (!K(e))
|
|
1862
1862
|
return e;
|
|
1863
1863
|
for (const t in e)
|
|
1864
1864
|
if (ye(e, t))
|
|
1865
1865
|
if (!t.includes("."))
|
|
1866
|
-
|
|
1866
|
+
K(e[t]) && st(e[t]);
|
|
1867
1867
|
else {
|
|
1868
1868
|
const n = t.split("."), s = n.length - 1;
|
|
1869
1869
|
let l = e, a = !1;
|
|
1870
1870
|
for (let c = 0; c < s; c++) {
|
|
1871
|
-
if (n[c] in l || (l[n[c]] = q()), !
|
|
1871
|
+
if (n[c] in l || (l[n[c]] = q()), !K(l[n[c]])) {
|
|
1872
1872
|
a = !0;
|
|
1873
1873
|
break;
|
|
1874
1874
|
}
|
|
1875
1875
|
l = l[n[c]];
|
|
1876
1876
|
}
|
|
1877
|
-
a || (l[n[s]] = e[t], delete e[t]),
|
|
1877
|
+
a || (l[n[s]] = e[t], delete e[t]), K(l[n[s]]) && st(l[n[s]]);
|
|
1878
1878
|
}
|
|
1879
1879
|
return e;
|
|
1880
1880
|
}
|
|
1881
|
-
function
|
|
1882
|
-
const { messages: n, __i18n: s, messageResolver: l, flatJson: a } = t, c =
|
|
1881
|
+
function Xn(e, t) {
|
|
1882
|
+
const { messages: n, __i18n: s, messageResolver: l, flatJson: a } = t, c = J(n) ? n : ue(s) ? q() : { [e]: q() };
|
|
1883
1883
|
if (ue(s) && s.forEach((m) => {
|
|
1884
1884
|
if ("locale" in m && "resource" in m) {
|
|
1885
1885
|
const { locale: u, resource: p } = m;
|
|
@@ -1895,8 +1895,8 @@ function Zn(e) {
|
|
|
1895
1895
|
return e.type;
|
|
1896
1896
|
}
|
|
1897
1897
|
function tr(e, t, n) {
|
|
1898
|
-
let s =
|
|
1899
|
-
"__i18nGlobal" in n && (s =
|
|
1898
|
+
let s = K(t.messages) ? t.messages : q();
|
|
1899
|
+
"__i18nGlobal" in n && (s = Xn(e.locale.value, {
|
|
1900
1900
|
messages: s,
|
|
1901
1901
|
__i18n: n.__i18nGlobal
|
|
1902
1902
|
}));
|
|
@@ -1905,13 +1905,13 @@ function tr(e, t, n) {
|
|
|
1905
1905
|
e.mergeLocaleMessage(a, s[a]);
|
|
1906
1906
|
});
|
|
1907
1907
|
{
|
|
1908
|
-
if (
|
|
1908
|
+
if (K(t.datetimeFormats)) {
|
|
1909
1909
|
const a = Object.keys(t.datetimeFormats);
|
|
1910
1910
|
a.length && a.forEach((c) => {
|
|
1911
1911
|
e.mergeDateTimeFormat(c, t.datetimeFormats[c]);
|
|
1912
1912
|
});
|
|
1913
1913
|
}
|
|
1914
|
-
if (
|
|
1914
|
+
if (K(t.numberFormats)) {
|
|
1915
1915
|
const a = Object.keys(t.numberFormats);
|
|
1916
1916
|
a.length && a.forEach((c) => {
|
|
1917
1917
|
e.mergeNumberFormat(c, t.numberFormats[c]);
|
|
@@ -1920,30 +1920,30 @@ function tr(e, t, n) {
|
|
|
1920
1920
|
}
|
|
1921
1921
|
}
|
|
1922
1922
|
function yn(e) {
|
|
1923
|
-
return _e(
|
|
1923
|
+
return _e(zn, null, e, 0);
|
|
1924
1924
|
}
|
|
1925
|
-
const Nn = "__INTLIFY_META__",
|
|
1926
|
-
let
|
|
1925
|
+
const Nn = "__INTLIFY_META__", Tn = () => [], nr = () => !1;
|
|
1926
|
+
let kn = 0;
|
|
1927
1927
|
function On(e) {
|
|
1928
|
-
return (t, n, s, l) => e(n, s,
|
|
1928
|
+
return (t, n, s, l) => e(n, s, Wt() || void 0, l);
|
|
1929
1929
|
}
|
|
1930
1930
|
const sr = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1931
|
-
const e =
|
|
1931
|
+
const e = Wt();
|
|
1932
1932
|
let t = null;
|
|
1933
1933
|
return e && (t = Zn(e)[Nn]) ? { [Nn]: t } : null;
|
|
1934
1934
|
};
|
|
1935
1935
|
function ar(e = {}) {
|
|
1936
|
-
const { __root: t, __injectWithOption: n } = e, s = t === void 0, l = e.flatJson, a = en ?
|
|
1936
|
+
const { __root: t, __injectWithOption: n } = e, s = t === void 0, l = e.flatJson, a = en ? Ue : Kn;
|
|
1937
1937
|
let c = ce(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1938
1938
|
const m = a(
|
|
1939
1939
|
// prettier-ignore
|
|
1940
1940
|
t && c ? t.locale.value : F(e.locale) ? e.locale : ft
|
|
1941
1941
|
), u = a(
|
|
1942
1942
|
// prettier-ignore
|
|
1943
|
-
t && c ? t.fallbackLocale.value : F(e.fallbackLocale) || ue(e.fallbackLocale) ||
|
|
1944
|
-
), p = a(
|
|
1945
|
-
let y = t ? t.missingWarn : ce(e.missingWarn) || dt(e.missingWarn) ? e.missingWarn : !0, P = t ? t.fallbackWarn : ce(e.fallbackWarn) || dt(e.fallbackWarn) ? e.fallbackWarn : !0,
|
|
1946
|
-
const w = t ? t.modifiers :
|
|
1943
|
+
t && c ? t.fallbackLocale.value : F(e.fallbackLocale) || ue(e.fallbackLocale) || J(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : m.value
|
|
1944
|
+
), p = a(Xn(m.value, e)), O = a(J(e.datetimeFormats) ? e.datetimeFormats : { [m.value]: {} }), R = a(J(e.numberFormats) ? e.numberFormats : { [m.value]: {} });
|
|
1945
|
+
let y = t ? t.missingWarn : ce(e.missingWarn) || dt(e.missingWarn) ? e.missingWarn : !0, P = t ? t.fallbackWarn : ce(e.fallbackWarn) || dt(e.fallbackWarn) ? e.fallbackWarn : !0, V = t ? t.fallbackRoot : ce(e.fallbackRoot) ? e.fallbackRoot : !0, L = !!e.fallbackFormat, D = le(e.missing) ? e.missing : null, i = le(e.missing) ? On(e.missing) : null, d = le(e.postTranslation) ? e.postTranslation : null, N = t ? t.warnHtmlMessage : ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, _ = !!e.escapeParameter;
|
|
1946
|
+
const w = t ? t.modifiers : J(e.modifiers) ? e.modifiers : {};
|
|
1947
1947
|
let S = e.pluralRules || t && t.pluralRules, g;
|
|
1948
1948
|
g = (() => {
|
|
1949
1949
|
s && fn(null);
|
|
@@ -1966,11 +1966,11 @@ function ar(e = {}) {
|
|
|
1966
1966
|
messageCompiler: e.messageCompiler,
|
|
1967
1967
|
__meta: { framework: "vue" }
|
|
1968
1968
|
};
|
|
1969
|
-
f.datetimeFormats = O.value, f.numberFormats = R.value, f.__datetimeFormatters =
|
|
1969
|
+
f.datetimeFormats = O.value, f.numberFormats = R.value, f.__datetimeFormatters = J(g) ? g.__datetimeFormatters : void 0, f.__numberFormatters = J(g) ? g.__numberFormatters : void 0;
|
|
1970
1970
|
const I = Fa(f);
|
|
1971
1971
|
return s && fn(I), I;
|
|
1972
1972
|
})(), Qe(g, m.value, u.value);
|
|
1973
|
-
function
|
|
1973
|
+
function h() {
|
|
1974
1974
|
return [
|
|
1975
1975
|
m.value,
|
|
1976
1976
|
u.value,
|
|
@@ -1989,62 +1989,62 @@ function ar(e = {}) {
|
|
|
1989
1989
|
set: (f) => {
|
|
1990
1990
|
u.value = f, g.fallbackLocale = u.value, Qe(g, m.value, f);
|
|
1991
1991
|
}
|
|
1992
|
-
}), C = te(() => p.value),
|
|
1992
|
+
}), C = te(() => p.value), G = /* @__PURE__ */ te(() => O.value), x = /* @__PURE__ */ te(() => R.value);
|
|
1993
1993
|
function M() {
|
|
1994
1994
|
return le(d) ? d : null;
|
|
1995
1995
|
}
|
|
1996
|
-
function
|
|
1996
|
+
function k(f) {
|
|
1997
1997
|
d = f, g.postTranslation = f;
|
|
1998
1998
|
}
|
|
1999
|
-
function
|
|
1999
|
+
function T() {
|
|
2000
2000
|
return D;
|
|
2001
2001
|
}
|
|
2002
2002
|
function Z(f) {
|
|
2003
2003
|
f !== null && (i = On(f)), D = f, g.missing = i;
|
|
2004
2004
|
}
|
|
2005
|
-
const
|
|
2006
|
-
|
|
2007
|
-
let
|
|
2005
|
+
const W = (f, I, ee, ie, Pe, at) => {
|
|
2006
|
+
h();
|
|
2007
|
+
let We;
|
|
2008
2008
|
try {
|
|
2009
|
-
|
|
2009
|
+
za.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (g.fallbackContext = t ? Pa() : void 0), We = f(g);
|
|
2010
2010
|
} finally {
|
|
2011
2011
|
__INTLIFY_PROD_DEVTOOLS__, s || (g.fallbackContext = void 0);
|
|
2012
2012
|
}
|
|
2013
2013
|
if (ee !== "translate exists" && // for not `te` (e.g `t`)
|
|
2014
|
-
de(
|
|
2015
|
-
const [
|
|
2016
|
-
return t &&
|
|
2014
|
+
de(We) && We === bt || ee === "translate exists" && !We) {
|
|
2015
|
+
const [$n, Hr] = I();
|
|
2016
|
+
return t && V ? ie(t) : Pe($n);
|
|
2017
2017
|
} else {
|
|
2018
|
-
if (at(
|
|
2019
|
-
return
|
|
2018
|
+
if (at(We))
|
|
2019
|
+
return We;
|
|
2020
2020
|
throw nt(He.UNEXPECTED_RETURN_TYPE);
|
|
2021
2021
|
}
|
|
2022
2022
|
};
|
|
2023
2023
|
function j(...f) {
|
|
2024
|
-
return
|
|
2024
|
+
return W((I) => Reflect.apply(En, null, [I, ...f]), () => jt(...f), "translate", (I) => Reflect.apply(I.t, I, [...f]), (I) => I, (I) => F(I));
|
|
2025
2025
|
}
|
|
2026
2026
|
function ne(...f) {
|
|
2027
2027
|
const [I, ee, ie] = f;
|
|
2028
|
-
if (ie && !
|
|
2028
|
+
if (ie && !K(ie))
|
|
2029
2029
|
throw nt(He.INVALID_ARGUMENT);
|
|
2030
2030
|
return j(I, ee, fe({ resolvedMessage: !0 }, ie || {}));
|
|
2031
2031
|
}
|
|
2032
|
-
function
|
|
2033
|
-
return
|
|
2032
|
+
function $(...f) {
|
|
2033
|
+
return W((I) => Reflect.apply(pn, null, [I, ...f]), () => Pt(...f), "datetime format", (I) => Reflect.apply(I.d, I, [...f]), () => mn, (I) => F(I));
|
|
2034
2034
|
}
|
|
2035
|
-
function
|
|
2036
|
-
return
|
|
2035
|
+
function Y(...f) {
|
|
2036
|
+
return W((I) => Reflect.apply(bn, null, [I, ...f]), () => Ft(...f), "number format", (I) => Reflect.apply(I.n, I, [...f]), () => mn, (I) => F(I));
|
|
2037
2037
|
}
|
|
2038
|
-
function
|
|
2038
|
+
function z(f) {
|
|
2039
2039
|
return f.map((I) => F(I) || de(I) || ce(I) ? yn(String(I)) : I);
|
|
2040
2040
|
}
|
|
2041
2041
|
const re = {
|
|
2042
|
-
normalize:
|
|
2042
|
+
normalize: z,
|
|
2043
2043
|
interpolate: (f) => f,
|
|
2044
2044
|
type: "vnode"
|
|
2045
2045
|
};
|
|
2046
2046
|
function Ie(...f) {
|
|
2047
|
-
return
|
|
2047
|
+
return W((I) => {
|
|
2048
2048
|
let ee;
|
|
2049
2049
|
const ie = I;
|
|
2050
2050
|
try {
|
|
@@ -2053,22 +2053,22 @@ function ar(e = {}) {
|
|
|
2053
2053
|
ie.processor = null;
|
|
2054
2054
|
}
|
|
2055
2055
|
return ee;
|
|
2056
|
-
}, () => jt(...f), "translate", (I) => I[
|
|
2057
|
-
}
|
|
2058
|
-
function Je(...f) {
|
|
2059
|
-
return x((I) => Reflect.apply(hn, null, [I, ...f]), () => Ft(...f), "number format", (I) => I[Gt](...f), kn, (I) => F(I) || ue(I));
|
|
2056
|
+
}, () => jt(...f), "translate", (I) => I[Ut](...f), (I) => [yn(I)], (I) => ue(I));
|
|
2060
2057
|
}
|
|
2061
2058
|
function $e(...f) {
|
|
2062
|
-
return
|
|
2059
|
+
return W((I) => Reflect.apply(bn, null, [I, ...f]), () => Ft(...f), "number format", (I) => I[xt](...f), Tn, (I) => F(I) || ue(I));
|
|
2060
|
+
}
|
|
2061
|
+
function Je(...f) {
|
|
2062
|
+
return W((I) => Reflect.apply(pn, null, [I, ...f]), () => Pt(...f), "datetime format", (I) => I[Vt](...f), Tn, (I) => F(I) || ue(I));
|
|
2063
2063
|
}
|
|
2064
2064
|
function vt(f) {
|
|
2065
2065
|
S = f, g.pluralRules = S;
|
|
2066
2066
|
}
|
|
2067
2067
|
function It(f, I) {
|
|
2068
|
-
return
|
|
2068
|
+
return W(() => {
|
|
2069
2069
|
if (!f)
|
|
2070
2070
|
return !1;
|
|
2071
|
-
const ee = F(I) ? I : m.value, ie =
|
|
2071
|
+
const ee = F(I) ? I : m.value, ie = xe(ee), Pe = g.messageResolver(ie, f);
|
|
2072
2072
|
return Be(Pe) || ve(Pe) || F(Pe);
|
|
2073
2073
|
}, () => [f], "translate exists", (ee) => Reflect.apply(ee.te, ee, [f, I]), nr, (ee) => ce(ee));
|
|
2074
2074
|
}
|
|
@@ -2084,14 +2084,14 @@ function ar(e = {}) {
|
|
|
2084
2084
|
}
|
|
2085
2085
|
return I;
|
|
2086
2086
|
}
|
|
2087
|
-
function
|
|
2087
|
+
function Ke(f) {
|
|
2088
2088
|
const I = Et(f);
|
|
2089
2089
|
return I ?? (t ? t.tm(f) || {} : {});
|
|
2090
2090
|
}
|
|
2091
|
-
function
|
|
2091
|
+
function xe(f) {
|
|
2092
2092
|
return p.value[f] || {};
|
|
2093
2093
|
}
|
|
2094
|
-
function
|
|
2094
|
+
function Ge(f, I) {
|
|
2095
2095
|
if (l) {
|
|
2096
2096
|
const ee = { [f]: I };
|
|
2097
2097
|
for (const ie in ee)
|
|
@@ -2100,7 +2100,7 @@ function ar(e = {}) {
|
|
|
2100
2100
|
}
|
|
2101
2101
|
p.value[f] = I, g.messages = p.value;
|
|
2102
2102
|
}
|
|
2103
|
-
function
|
|
2103
|
+
function ze(f, I) {
|
|
2104
2104
|
p.value[f] = p.value[f] || {};
|
|
2105
2105
|
const ee = { [f]: I };
|
|
2106
2106
|
if (l)
|
|
@@ -2112,27 +2112,27 @@ function ar(e = {}) {
|
|
|
2112
2112
|
return O.value[f] || {};
|
|
2113
2113
|
}
|
|
2114
2114
|
function r(f, I) {
|
|
2115
|
-
O.value[f] = I, g.datetimeFormats = O.value,
|
|
2115
|
+
O.value[f] = I, g.datetimeFormats = O.value, hn(g, f, I);
|
|
2116
2116
|
}
|
|
2117
2117
|
function o(f, I) {
|
|
2118
|
-
O.value[f] = fe(O.value[f] || {}, I), g.datetimeFormats = O.value,
|
|
2118
|
+
O.value[f] = fe(O.value[f] || {}, I), g.datetimeFormats = O.value, hn(g, f, I);
|
|
2119
2119
|
}
|
|
2120
|
-
function
|
|
2120
|
+
function b(f) {
|
|
2121
2121
|
return R.value[f] || {};
|
|
2122
2122
|
}
|
|
2123
|
-
function
|
|
2123
|
+
function U(f, I) {
|
|
2124
2124
|
R.value[f] = I, g.numberFormats = R.value, gn(g, f, I);
|
|
2125
2125
|
}
|
|
2126
2126
|
function oe(f, I) {
|
|
2127
2127
|
R.value[f] = fe(R.value[f] || {}, I), g.numberFormats = R.value, gn(g, f, I);
|
|
2128
2128
|
}
|
|
2129
|
-
|
|
2129
|
+
kn++, t && en && (St(t.locale, (f) => {
|
|
2130
2130
|
c && (m.value = f, g.locale = f, Qe(g, m.value, u.value));
|
|
2131
2131
|
}), St(t.fallbackLocale, (f) => {
|
|
2132
2132
|
c && (u.value = f, g.fallbackLocale = f, Qe(g, m.value, u.value));
|
|
2133
2133
|
}));
|
|
2134
|
-
const
|
|
2135
|
-
id:
|
|
2134
|
+
const X = {
|
|
2135
|
+
id: kn,
|
|
2136
2136
|
locale: E,
|
|
2137
2137
|
fallbackLocale: A,
|
|
2138
2138
|
get inheritLocale() {
|
|
@@ -2167,10 +2167,10 @@ function ar(e = {}) {
|
|
|
2167
2167
|
P = f, g.fallbackWarn = P;
|
|
2168
2168
|
},
|
|
2169
2169
|
get fallbackRoot() {
|
|
2170
|
-
return
|
|
2170
|
+
return V;
|
|
2171
2171
|
},
|
|
2172
2172
|
set fallbackRoot(f) {
|
|
2173
|
-
|
|
2173
|
+
V = f;
|
|
2174
2174
|
},
|
|
2175
2175
|
get fallbackFormat() {
|
|
2176
2176
|
return L;
|
|
@@ -2191,18 +2191,18 @@ function ar(e = {}) {
|
|
|
2191
2191
|
_ = f, g.escapeParameter = f;
|
|
2192
2192
|
},
|
|
2193
2193
|
t: j,
|
|
2194
|
-
getLocaleMessage:
|
|
2195
|
-
setLocaleMessage:
|
|
2196
|
-
mergeLocaleMessage:
|
|
2194
|
+
getLocaleMessage: xe,
|
|
2195
|
+
setLocaleMessage: Ge,
|
|
2196
|
+
mergeLocaleMessage: ze,
|
|
2197
2197
|
getPostTranslationHandler: M,
|
|
2198
|
-
setPostTranslationHandler:
|
|
2199
|
-
getMissingHandler:
|
|
2198
|
+
setPostTranslationHandler: k,
|
|
2199
|
+
getMissingHandler: T,
|
|
2200
2200
|
setMissingHandler: Z,
|
|
2201
2201
|
[er]: vt
|
|
2202
2202
|
};
|
|
2203
|
-
return
|
|
2203
|
+
return X.datetimeFormats = G, X.numberFormats = x, X.rt = ne, X.te = It, X.tm = Ke, X.d = $, X.n = Y, X.getDateTimeFormat = yt, X.setDateTimeFormat = r, X.mergeDateTimeFormat = o, X.getNumberFormat = b, X.setNumberFormat = U, X.mergeNumberFormat = oe, X[Yn] = n, X[Ut] = Ie, X[Vt] = Je, X[xt] = $e, X;
|
|
2204
2204
|
}
|
|
2205
|
-
const
|
|
2205
|
+
const Kt = {
|
|
2206
2206
|
tag: {
|
|
2207
2207
|
type: [String, Object]
|
|
2208
2208
|
},
|
|
@@ -2242,7 +2242,7 @@ fe({
|
|
|
2242
2242
|
type: [Number, String],
|
|
2243
2243
|
validator: (e) => de(e) || !isNaN(e)
|
|
2244
2244
|
}
|
|
2245
|
-
},
|
|
2245
|
+
}, Kt);
|
|
2246
2246
|
function lr(e) {
|
|
2247
2247
|
return ue(e) && !F(e[0]);
|
|
2248
2248
|
}
|
|
@@ -2251,14 +2251,14 @@ function Hn(e, t, n, s) {
|
|
|
2251
2251
|
return () => {
|
|
2252
2252
|
const c = { part: !0 };
|
|
2253
2253
|
let m = q();
|
|
2254
|
-
e.locale && (c.locale = e.locale), F(e.format) ? c.key = e.format :
|
|
2254
|
+
e.locale && (c.locale = e.locale), F(e.format) ? c.key = e.format : K(e.format) && (F(e.format.key) && (c.key = e.format.key), m = Object.keys(e.format).reduce((y, P) => n.includes(P) ? fe(q(), y, { [P]: e.format[P] }) : y, q()));
|
|
2255
2255
|
const u = s(e.value, c, m);
|
|
2256
2256
|
let p = [c.key];
|
|
2257
2257
|
ue(u) ? p = u.map((y, P) => {
|
|
2258
|
-
const
|
|
2258
|
+
const V = l[y.type], L = V ? V({ [y.type]: y.value, index: P, parts: u }) : [y.value];
|
|
2259
2259
|
return lr(L) && (L[0].key = `${y.type}-${P}`), L;
|
|
2260
2260
|
}) : F(u) && (p = [u]);
|
|
2261
|
-
const O = fe(q(), a), R = F(e.tag) ||
|
|
2261
|
+
const O = fe(q(), a), R = F(e.tag) || K(e.tag) ? e.tag : Bn();
|
|
2262
2262
|
return Sn(R, O, p);
|
|
2263
2263
|
};
|
|
2264
2264
|
}
|
|
@@ -2270,7 +2270,7 @@ fe({
|
|
|
2270
2270
|
format: {
|
|
2271
2271
|
type: [String, Object]
|
|
2272
2272
|
}
|
|
2273
|
-
},
|
|
2273
|
+
}, Kt);
|
|
2274
2274
|
fe({
|
|
2275
2275
|
value: {
|
|
2276
2276
|
type: [Number, Date],
|
|
@@ -2279,10 +2279,10 @@ fe({
|
|
|
2279
2279
|
format: {
|
|
2280
2280
|
type: [String, Object]
|
|
2281
2281
|
}
|
|
2282
|
-
},
|
|
2283
|
-
const or = /* @__PURE__ */
|
|
2282
|
+
}, Kt);
|
|
2283
|
+
const or = /* @__PURE__ */ Ve("global-vue-i18n");
|
|
2284
2284
|
function gt(e = {}) {
|
|
2285
|
-
const t =
|
|
2285
|
+
const t = Wt();
|
|
2286
2286
|
if (t == null)
|
|
2287
2287
|
throw nt(He.MUST_BE_CALL_SETUP_TOP);
|
|
2288
2288
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
@@ -2298,12 +2298,12 @@ function gt(e = {}) {
|
|
|
2298
2298
|
let m = c.__getInstance(t);
|
|
2299
2299
|
if (m == null) {
|
|
2300
2300
|
const u = fe({}, e);
|
|
2301
|
-
"__i18n" in l && (u.__i18n = l.__i18n), s && (u.__root = s), m = ar(u), c.__composerExtend && (m[
|
|
2301
|
+
"__i18n" in l && (u.__i18n = l.__i18n), s && (u.__root = s), m = ar(u), c.__composerExtend && (m[Gt] = c.__composerExtend(m)), fr(c, t, m), c.__setInstance(t, m);
|
|
2302
2302
|
}
|
|
2303
2303
|
return m;
|
|
2304
2304
|
}
|
|
2305
2305
|
function ir(e) {
|
|
2306
|
-
const t =
|
|
2306
|
+
const t = Jn(e.isCE ? or : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2307
2307
|
if (!t)
|
|
2308
2308
|
throw nt(e.isCE ? He.NOT_INSTALLED_WITH_PROVIDE : He.UNEXPECTED_ERROR);
|
|
2309
2309
|
return t;
|
|
@@ -2324,7 +2324,7 @@ function mr(e, t, n = !1) {
|
|
|
2324
2324
|
s = c.__getInstance(a);
|
|
2325
2325
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
2326
2326
|
const m = c.__getInstance(a);
|
|
2327
|
-
m != null && (s = m.__composer, n && s && !s[
|
|
2327
|
+
m != null && (s = m.__composer, n && s && !s[Yn] && (s = null));
|
|
2328
2328
|
}
|
|
2329
2329
|
if (s != null || l === a)
|
|
2330
2330
|
break;
|
|
@@ -2336,12 +2336,12 @@ function dr(e, t = !1) {
|
|
|
2336
2336
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2337
2337
|
}
|
|
2338
2338
|
function fr(e, t, n) {
|
|
2339
|
-
|
|
2339
|
+
Yt(() => {
|
|
2340
2340
|
}, t), An(() => {
|
|
2341
2341
|
const s = n;
|
|
2342
2342
|
e.__deleteInstance(t);
|
|
2343
|
-
const l = s[
|
|
2344
|
-
l && (l(), delete s[
|
|
2343
|
+
const l = s[Gt];
|
|
2344
|
+
l && (l(), delete s[Gt]);
|
|
2345
2345
|
}, t);
|
|
2346
2346
|
}
|
|
2347
2347
|
qa();
|
|
@@ -2363,19 +2363,19 @@ const it = /* @__PURE__ */ Ne({
|
|
|
2363
2363
|
setup(e) {
|
|
2364
2364
|
const { t } = gt();
|
|
2365
2365
|
return (n, s) => {
|
|
2366
|
-
const l =
|
|
2366
|
+
const l = Xe("FmIcon"), a = Xe("FmTooltip");
|
|
2367
2367
|
return B(), Se(a, {
|
|
2368
2368
|
variant: "plain",
|
|
2369
2369
|
placement: "right",
|
|
2370
2370
|
"z-index": 50
|
|
2371
2371
|
}, {
|
|
2372
|
-
content:
|
|
2372
|
+
content: be(() => [
|
|
2373
2373
|
ae("div", null, Ae(H(t)("team.memberForm.permissions.inherited")), 1),
|
|
2374
|
-
(B(!0), se(Ee, null,
|
|
2374
|
+
(B(!0), se(Ee, null, he(e.item.setNames, (c) => (B(), se("div", { key: c }, [
|
|
2375
2375
|
ae("div", null, "- " + Ae(c), 1)
|
|
2376
2376
|
]))), 128))
|
|
2377
2377
|
]),
|
|
2378
|
-
default:
|
|
2378
|
+
default: be(() => [
|
|
2379
2379
|
_e(l, {
|
|
2380
2380
|
name: "admin_panel_settings",
|
|
2381
2381
|
size: "sm",
|
|
@@ -2389,10 +2389,10 @@ const it = /* @__PURE__ */ Ne({
|
|
|
2389
2389
|
}), _r = { class: "space-y-16" }, pr = {
|
|
2390
2390
|
key: 0,
|
|
2391
2391
|
class: "flex fm-typo-en-title-sm-600"
|
|
2392
|
-
},
|
|
2392
|
+
}, hr = {
|
|
2393
2393
|
key: 0,
|
|
2394
2394
|
class: "q-mr-xs text-red col"
|
|
2395
|
-
},
|
|
2395
|
+
}, br = { class: "form-input" }, gr = /* @__PURE__ */ Ne({
|
|
2396
2396
|
__name: "AppForm",
|
|
2397
2397
|
props: {
|
|
2398
2398
|
title: {
|
|
@@ -2414,13 +2414,13 @@ const it = /* @__PURE__ */ Ne({
|
|
|
2414
2414
|
ge(n.$slots, "top", {}, () => [
|
|
2415
2415
|
t.title ? (B(), se("div", pr, [
|
|
2416
2416
|
ae("div", null, [
|
|
2417
|
-
t.required ? (B(), se("span",
|
|
2417
|
+
t.required ? (B(), se("span", hr, "*")) : Oe("", !0),
|
|
2418
2418
|
Qn(Ae(t.title), 1)
|
|
2419
2419
|
]),
|
|
2420
2420
|
ge(n.$slots, "title-right")
|
|
2421
2421
|
])) : Oe("", !0)
|
|
2422
2422
|
]),
|
|
2423
|
-
ae("div",
|
|
2423
|
+
ae("div", br, [
|
|
2424
2424
|
ge(n.$slots, "default")
|
|
2425
2425
|
])
|
|
2426
2426
|
]));
|
|
@@ -2436,7 +2436,7 @@ function vr(e, t) {
|
|
|
2436
2436
|
const Ir = { class: "col flex items-center" }, Er = {
|
|
2437
2437
|
key: 1,
|
|
2438
2438
|
class: "q-pa-sm form-error-message text-error"
|
|
2439
|
-
},
|
|
2439
|
+
}, zt = /* @__PURE__ */ Ne({
|
|
2440
2440
|
__name: "CheckboxInput",
|
|
2441
2441
|
props: {
|
|
2442
2442
|
options: {
|
|
@@ -2494,7 +2494,7 @@ const Ir = { class: "col flex items-center" }, Er = {
|
|
|
2494
2494
|
},
|
|
2495
2495
|
emits: ["update:model-value"],
|
|
2496
2496
|
setup(e, { emit: t }) {
|
|
2497
|
-
const n = e, s = t, { t: l } = _t(), a =
|
|
2497
|
+
const n = e, s = t, { t: l } = _t(), a = Ue(!1), c = qn(), m = te(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), u = `checkbox-${vr(6)}`, p = te(() => m.value !== !0), O = te(
|
|
2498
2498
|
() => n.modelValue.filter((L) => n.options.some((D) => D.value === L))
|
|
2499
2499
|
), R = te(
|
|
2500
2500
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
@@ -2508,21 +2508,21 @@ const Ir = { class: "col flex items-center" }, Er = {
|
|
|
2508
2508
|
s("update:model-value", [...L, ...D]);
|
|
2509
2509
|
}
|
|
2510
2510
|
}
|
|
2511
|
-
function
|
|
2511
|
+
function V(L, D) {
|
|
2512
2512
|
let i = ut(n.modelValue);
|
|
2513
2513
|
D ? i.every((d) => d !== L) && i.push(L) : i = i.filter((d) => d !== L), s("update:model-value", i);
|
|
2514
2514
|
}
|
|
2515
2515
|
return (L, D) => {
|
|
2516
|
-
const i =
|
|
2516
|
+
const i = Xe("FmCheckbox");
|
|
2517
2517
|
return B(), Se(gr, {
|
|
2518
2518
|
id: u,
|
|
2519
2519
|
title: e.title,
|
|
2520
2520
|
required: !1
|
|
2521
2521
|
}, {
|
|
2522
|
-
top:
|
|
2522
|
+
top: be(() => [
|
|
2523
2523
|
ge(L.$slots, "top")
|
|
2524
2524
|
]),
|
|
2525
|
-
default:
|
|
2525
|
+
default: be(() => [
|
|
2526
2526
|
n.showAllToggle ? (B(), Se(i, {
|
|
2527
2527
|
key: 0,
|
|
2528
2528
|
"model-value": y.value,
|
|
@@ -2534,7 +2534,7 @@ const Ir = { class: "col flex items-center" }, Er = {
|
|
|
2534
2534
|
value: R.value,
|
|
2535
2535
|
"onUpdate:modelValue": P
|
|
2536
2536
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Oe("", !0),
|
|
2537
|
-
(B(!0), se(Ee, null,
|
|
2537
|
+
(B(!0), se(Ee, null, he(e.options, (d, N) => (B(), se("div", {
|
|
2538
2538
|
key: d.value,
|
|
2539
2539
|
style: ct(`margin-bottom: ${N < e.options.length - 1 ? n.gutter : 0}px`),
|
|
2540
2540
|
class: qe(N < e.options.length - 1 ? "q-mb-sm" : "")
|
|
@@ -2549,7 +2549,7 @@ const Ir = { class: "col flex items-center" }, Er = {
|
|
|
2549
2549
|
size: "sm",
|
|
2550
2550
|
label: d.label,
|
|
2551
2551
|
value: d.label,
|
|
2552
|
-
"onUpdate:modelValue": (_) =>
|
|
2552
|
+
"onUpdate:modelValue": (_) => V(d.value, _)
|
|
2553
2553
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
2554
2554
|
ge(L.$slots, `checkbox-${d.key || d.value}-append`, {
|
|
2555
2555
|
option: d,
|
|
@@ -2604,197 +2604,197 @@ const Rn = Object.values(us);
|
|
|
2604
2604
|
function yr(e, t, n, s) {
|
|
2605
2605
|
const { getFlagValue: l, getFlag: a } = ds(), c = te(() => {
|
|
2606
2606
|
var A;
|
|
2607
|
-
const v = /* @__PURE__ */ new Map(),
|
|
2607
|
+
const v = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map();
|
|
2608
2608
|
for (const C of t.value) {
|
|
2609
|
-
const
|
|
2610
|
-
if (!
|
|
2611
|
-
const
|
|
2612
|
-
|
|
2609
|
+
const G = C.category;
|
|
2610
|
+
if (!G || n.value.includes(C.subject) || C.showByFeatureFlag && l(C.showByFeatureFlag) === "false") continue;
|
|
2611
|
+
const x = cs[G];
|
|
2612
|
+
x && ((A = a(x)) == null ? void 0 : A.enabled) === !1 || (v.has(G) || v.set(G, []), v.get(G).push({ label: C.label, value: C.subject }), h.set(C.subject, C));
|
|
2613
2613
|
}
|
|
2614
|
-
return [...v.keys()].sort((C,
|
|
2615
|
-
const
|
|
2616
|
-
return
|
|
2614
|
+
return [...v.keys()].sort((C, G) => {
|
|
2615
|
+
const x = Rn.indexOf(C), M = Rn.indexOf(G);
|
|
2616
|
+
return x === -1 && M === -1 ? C.localeCompare(G) : x === -1 ? 1 : M === -1 ? -1 : x - M;
|
|
2617
2617
|
}).map((C) => {
|
|
2618
|
-
const
|
|
2619
|
-
for (const
|
|
2620
|
-
const
|
|
2621
|
-
|
|
2618
|
+
const G = v.get(C), x = /* @__PURE__ */ new Map();
|
|
2619
|
+
for (const Y of G) {
|
|
2620
|
+
const z = h.get(Y.value);
|
|
2621
|
+
z && x.set(Y.value, z.actions);
|
|
2622
2622
|
}
|
|
2623
|
-
const M =
|
|
2624
|
-
const
|
|
2625
|
-
return
|
|
2626
|
-
}),
|
|
2623
|
+
const M = G.some((Y) => {
|
|
2624
|
+
const z = x.get(Y.value);
|
|
2625
|
+
return z && z.length > 1;
|
|
2626
|
+
}), k = M ? [
|
|
2627
2627
|
...new Set(
|
|
2628
|
-
|
|
2628
|
+
G.flatMap((Y) => x.get(Y.value) ?? []).filter((Y) => Y !== "manage")
|
|
2629
2629
|
)
|
|
2630
|
-
] : [],
|
|
2631
|
-
for (const
|
|
2632
|
-
|
|
2630
|
+
] : [], T = /* @__PURE__ */ new Map();
|
|
2631
|
+
for (const Y of e.value)
|
|
2632
|
+
G.some((z) => z.value === Y.subject) && !Y.inverted && T.set(Y.subject, new Set(Y.actions));
|
|
2633
2633
|
const Z = M ? e.value.filter(
|
|
2634
|
-
(
|
|
2635
|
-
).map((
|
|
2636
|
-
var
|
|
2637
|
-
return (
|
|
2638
|
-
}), j = (
|
|
2634
|
+
(Y) => G.some((z) => z.value === Y.subject) && !Y.inverted && Y.actions.includes("manage")
|
|
2635
|
+
).map((Y) => Y.subject) : e.value.filter((Y) => G.some((z) => z.value === Y.subject) && !Y.inverted).map((Y) => Y.subject), W = G.find((Y) => {
|
|
2636
|
+
var z;
|
|
2637
|
+
return (z = h.get(Y.value)) == null ? void 0 : z.isCategoryCover;
|
|
2638
|
+
}), j = (W == null ? void 0 : W.value) ?? null, ne = j ? T.get(j) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), $ = ne.has("manage");
|
|
2639
2639
|
return {
|
|
2640
2640
|
category: C,
|
|
2641
|
-
options:
|
|
2641
|
+
options: G,
|
|
2642
2642
|
selectedSubjects: Z,
|
|
2643
2643
|
isMultiAction: M,
|
|
2644
|
-
actionColumns:
|
|
2645
|
-
permissionActionsMap:
|
|
2646
|
-
selectedActionsMap:
|
|
2644
|
+
actionColumns: k,
|
|
2645
|
+
permissionActionsMap: x,
|
|
2646
|
+
selectedActionsMap: T,
|
|
2647
2647
|
coverSubject: j,
|
|
2648
2648
|
coverSelectedActions: ne,
|
|
2649
|
-
coverCoversAll:
|
|
2649
|
+
coverCoversAll: $
|
|
2650
2650
|
};
|
|
2651
2651
|
});
|
|
2652
2652
|
});
|
|
2653
|
-
function m(v,
|
|
2653
|
+
function m(v, h) {
|
|
2654
2654
|
var A;
|
|
2655
2655
|
const E = ((A = c.value.find((C) => C.category === v)) == null ? void 0 : A.options) ?? [];
|
|
2656
2656
|
s("update:model-value", [
|
|
2657
|
-
...e.value.filter((C) => !E.some((
|
|
2658
|
-
...t.value.filter((C) =>
|
|
2659
|
-
({ category: C, showByFeatureFlag:
|
|
2657
|
+
...e.value.filter((C) => !E.some((G) => G.value === C.subject)),
|
|
2658
|
+
...t.value.filter((C) => h.includes(C.subject)).map(
|
|
2659
|
+
({ category: C, showByFeatureFlag: G, isCategoryCover: x, ...M }) => M
|
|
2660
2660
|
)
|
|
2661
2661
|
]);
|
|
2662
2662
|
}
|
|
2663
2663
|
function u(v) {
|
|
2664
|
-
return v.options.length > 0 && v.options.every((
|
|
2664
|
+
return v.options.length > 0 && v.options.every((h) => v.selectedSubjects.includes(h.value));
|
|
2665
2665
|
}
|
|
2666
2666
|
function p(v) {
|
|
2667
|
-
const
|
|
2667
|
+
const h = e.value.filter(
|
|
2668
2668
|
(E) => !v.options.some((A) => A.value === E.subject)
|
|
2669
2669
|
);
|
|
2670
2670
|
if (u(v))
|
|
2671
|
-
s("update:model-value",
|
|
2671
|
+
s("update:model-value", h);
|
|
2672
2672
|
else {
|
|
2673
2673
|
const E = t.value.filter((A) => v.options.some((C) => C.value === A.subject)).map(
|
|
2674
|
-
({ category: A, showByFeatureFlag: C, isCategoryCover:
|
|
2674
|
+
({ category: A, showByFeatureFlag: C, isCategoryCover: G, ...x }) => x
|
|
2675
2675
|
);
|
|
2676
|
-
s("update:model-value", [...
|
|
2676
|
+
s("update:model-value", [...h, ...E]);
|
|
2677
2677
|
}
|
|
2678
2678
|
}
|
|
2679
|
-
function O(v,
|
|
2680
|
-
const E = v.selectedActionsMap.get(
|
|
2679
|
+
function O(v, h) {
|
|
2680
|
+
const E = v.selectedActionsMap.get(h);
|
|
2681
2681
|
return E ? E.has("manage") : !1;
|
|
2682
2682
|
}
|
|
2683
|
-
function R(v,
|
|
2684
|
-
const E = v.permissionActionsMap.get(
|
|
2683
|
+
function R(v, h) {
|
|
2684
|
+
const E = v.permissionActionsMap.get(h);
|
|
2685
2685
|
if (!E) return !1;
|
|
2686
|
-
const A = E.filter((
|
|
2686
|
+
const A = E.filter((x) => x !== "manage");
|
|
2687
2687
|
if (A.length === 0) return !1;
|
|
2688
|
-
const C = v.selectedActionsMap.get(
|
|
2688
|
+
const C = v.selectedActionsMap.get(h);
|
|
2689
2689
|
if (!C) return !1;
|
|
2690
|
-
const
|
|
2691
|
-
return
|
|
2690
|
+
const G = A.filter((x) => C.has(x));
|
|
2691
|
+
return G.length > 0 && G.length < A.length;
|
|
2692
2692
|
}
|
|
2693
|
-
function y(v,
|
|
2693
|
+
function y(v, h, E) {
|
|
2694
2694
|
if (E) {
|
|
2695
|
-
const A = t.value.find((
|
|
2695
|
+
const A = t.value.find((T) => T.subject === h);
|
|
2696
2696
|
if (!A) return;
|
|
2697
2697
|
const {
|
|
2698
2698
|
category: C,
|
|
2699
|
-
showByFeatureFlag:
|
|
2700
|
-
isCategoryCover:
|
|
2699
|
+
showByFeatureFlag: G,
|
|
2700
|
+
isCategoryCover: x,
|
|
2701
2701
|
...M
|
|
2702
|
-
} = A,
|
|
2703
|
-
|
|
2702
|
+
} = A, k = e.value.filter((T) => T.subject !== h);
|
|
2703
|
+
k.push(M), s("update:model-value", k);
|
|
2704
2704
|
} else
|
|
2705
2705
|
s(
|
|
2706
2706
|
"update:model-value",
|
|
2707
|
-
e.value.filter((A) => A.subject !==
|
|
2707
|
+
e.value.filter((A) => A.subject !== h)
|
|
2708
2708
|
);
|
|
2709
2709
|
}
|
|
2710
|
-
function P(v,
|
|
2711
|
-
const E = v.permissionActionsMap.get(
|
|
2710
|
+
function P(v, h) {
|
|
2711
|
+
const E = v.permissionActionsMap.get(h);
|
|
2712
2712
|
return E ? E.some((A) => A !== "manage") : !1;
|
|
2713
2713
|
}
|
|
2714
|
-
function
|
|
2715
|
-
const A = v.selectedActionsMap.get(
|
|
2714
|
+
function V(v, h, E) {
|
|
2715
|
+
const A = v.selectedActionsMap.get(h);
|
|
2716
2716
|
return A ? A.has(E) : !1;
|
|
2717
2717
|
}
|
|
2718
|
-
function L(v,
|
|
2719
|
-
return !v.coverSubject ||
|
|
2718
|
+
function L(v, h) {
|
|
2719
|
+
return !v.coverSubject || h === v.coverSubject ? !1 : v.coverCoversAll;
|
|
2720
2720
|
}
|
|
2721
|
-
function D(v,
|
|
2722
|
-
return !v.coverSubject ||
|
|
2721
|
+
function D(v, h, E) {
|
|
2722
|
+
return !v.coverSubject || h === v.coverSubject ? !1 : v.coverCoversAll ? !0 : v.coverSelectedActions.has(E);
|
|
2723
2723
|
}
|
|
2724
|
-
function i(v,
|
|
2725
|
-
const A = v.permissionActionsMap.get(
|
|
2724
|
+
function i(v, h, E) {
|
|
2725
|
+
const A = v.permissionActionsMap.get(h);
|
|
2726
2726
|
return A ? A.includes(E) : !1;
|
|
2727
2727
|
}
|
|
2728
|
-
function d(v,
|
|
2729
|
-
const A = [...e.value], C = A.findIndex((
|
|
2728
|
+
function d(v, h, E) {
|
|
2729
|
+
const A = [...e.value], C = A.findIndex((x) => x.subject === v && !x.inverted);
|
|
2730
2730
|
if (E)
|
|
2731
2731
|
if (C >= 0) {
|
|
2732
|
-
const
|
|
2733
|
-
M.add(
|
|
2732
|
+
const x = { ...A[C] }, M = new Set(x.actions);
|
|
2733
|
+
M.add(h), x.actions = Array.from(M), A[C] = x;
|
|
2734
2734
|
} else {
|
|
2735
|
-
const
|
|
2736
|
-
if (!
|
|
2735
|
+
const x = t.value.find((W) => W.subject === v);
|
|
2736
|
+
if (!x) return;
|
|
2737
2737
|
const {
|
|
2738
2738
|
category: M,
|
|
2739
|
-
showByFeatureFlag:
|
|
2740
|
-
isCategoryCover:
|
|
2739
|
+
showByFeatureFlag: k,
|
|
2740
|
+
isCategoryCover: T,
|
|
2741
2741
|
...Z
|
|
2742
|
-
} =
|
|
2743
|
-
A.push({ ...Z, actions: [
|
|
2742
|
+
} = x;
|
|
2743
|
+
A.push({ ...Z, actions: [h] });
|
|
2744
2744
|
}
|
|
2745
2745
|
else if (C >= 0) {
|
|
2746
|
-
const
|
|
2747
|
-
M.length === 0 ? A.splice(C, 1) : (
|
|
2746
|
+
const x = { ...A[C] }, M = x.actions.filter((k) => k !== h);
|
|
2747
|
+
M.length === 0 ? A.splice(C, 1) : (x.actions = M, A[C] = x);
|
|
2748
2748
|
}
|
|
2749
|
-
const
|
|
2750
|
-
|
|
2749
|
+
const G = t.value.find((x) => x.subject === v);
|
|
2750
|
+
G && Ln(A, v, G.actions), s("update:model-value", A);
|
|
2751
2751
|
}
|
|
2752
|
-
function N(v,
|
|
2752
|
+
function N(v, h) {
|
|
2753
2753
|
const E = v.options.filter(
|
|
2754
|
-
(A) => i(v, A.value,
|
|
2754
|
+
(A) => i(v, A.value, h)
|
|
2755
2755
|
);
|
|
2756
2756
|
return E.length === 0 ? !1 : E.every(
|
|
2757
|
-
(A) =>
|
|
2757
|
+
(A) => V(v, A.value, h) || D(v, A.value, h)
|
|
2758
2758
|
);
|
|
2759
2759
|
}
|
|
2760
|
-
function _(v,
|
|
2760
|
+
function _(v, h) {
|
|
2761
2761
|
const E = v.options.filter(
|
|
2762
|
-
(C) => i(v, C.value,
|
|
2762
|
+
(C) => i(v, C.value, h)
|
|
2763
2763
|
);
|
|
2764
2764
|
if (E.length === 0) return !1;
|
|
2765
2765
|
const A = E.filter(
|
|
2766
|
-
(C) =>
|
|
2766
|
+
(C) => V(v, C.value, h) || D(v, C.value, h)
|
|
2767
2767
|
).length;
|
|
2768
2768
|
return A > 0 && A < E.length;
|
|
2769
2769
|
}
|
|
2770
|
-
function w(v,
|
|
2770
|
+
function w(v, h, E) {
|
|
2771
2771
|
const A = [...e.value];
|
|
2772
2772
|
for (const C of v.options) {
|
|
2773
|
-
if (!i(v, C.value,
|
|
2774
|
-
const
|
|
2775
|
-
(
|
|
2773
|
+
if (!i(v, C.value, h)) continue;
|
|
2774
|
+
const G = C.value, x = A.findIndex(
|
|
2775
|
+
(k) => k.subject === G && !k.inverted
|
|
2776
2776
|
);
|
|
2777
2777
|
if (E)
|
|
2778
|
-
if (
|
|
2779
|
-
const
|
|
2780
|
-
|
|
2778
|
+
if (x >= 0) {
|
|
2779
|
+
const k = { ...A[x] }, T = new Set(k.actions);
|
|
2780
|
+
T.add(h), k.actions = Array.from(T), A[x] = k;
|
|
2781
2781
|
} else {
|
|
2782
|
-
const
|
|
2783
|
-
if (!
|
|
2782
|
+
const k = t.value.find((ne) => ne.subject === G);
|
|
2783
|
+
if (!k) continue;
|
|
2784
2784
|
const {
|
|
2785
|
-
category:
|
|
2785
|
+
category: T,
|
|
2786
2786
|
showByFeatureFlag: Z,
|
|
2787
|
-
isCategoryCover:
|
|
2787
|
+
isCategoryCover: W,
|
|
2788
2788
|
...j
|
|
2789
|
-
} =
|
|
2790
|
-
A.push({ ...j, actions: [
|
|
2789
|
+
} = k;
|
|
2790
|
+
A.push({ ...j, actions: [h] });
|
|
2791
2791
|
}
|
|
2792
|
-
else if (
|
|
2793
|
-
const
|
|
2794
|
-
|
|
2792
|
+
else if (x >= 0) {
|
|
2793
|
+
const k = { ...A[x] }, T = k.actions.filter((Z) => Z !== h);
|
|
2794
|
+
T.length === 0 ? A.splice(x, 1) : (k.actions = T, A[x] = k);
|
|
2795
2795
|
}
|
|
2796
|
-
const M = t.value.find((
|
|
2797
|
-
M && Ln(A,
|
|
2796
|
+
const M = t.value.find((k) => k.subject === G);
|
|
2797
|
+
M && Ln(A, G, M.actions);
|
|
2798
2798
|
}
|
|
2799
2799
|
s("update:model-value", A);
|
|
2800
2800
|
}
|
|
@@ -2815,7 +2815,7 @@ function yr(e, t, n, s) {
|
|
|
2815
2815
|
isManageIndeterminate: R,
|
|
2816
2816
|
toggleManage: y,
|
|
2817
2817
|
hasNonManageActions: P,
|
|
2818
|
-
isActionChecked:
|
|
2818
|
+
isActionChecked: V,
|
|
2819
2819
|
isRowFullyCoveredByCover: L,
|
|
2820
2820
|
isActionCoveredByCover: D,
|
|
2821
2821
|
permissionDefinesAction: i,
|
|
@@ -2826,10 +2826,10 @@ function yr(e, t, n, s) {
|
|
|
2826
2826
|
actionLabel: g
|
|
2827
2827
|
};
|
|
2828
2828
|
}
|
|
2829
|
-
const Nr = { class: "flex flex-col gap-16" },
|
|
2829
|
+
const Nr = { class: "flex flex-col gap-16" }, Tr = {
|
|
2830
2830
|
key: 1,
|
|
2831
2831
|
class: "space-y-16"
|
|
2832
|
-
},
|
|
2832
|
+
}, kr = { class: "flex items-end justify-between" }, Or = { class: "fm-typo-en-title-sm-600" }, Lr = { class: "flex" }, Rr = { class: "form-input" }, Cr = { class: "flex items-center justify-between q-mb-xs" }, Ar = { class: "flex shrink-0" }, Sr = { class: "flex items-center justify-between gap-4" }, Mr = { class: "flex items-center min-w-0 flex-1 gap-8" }, Dr = ["title", "onClick"], wr = {
|
|
2833
2833
|
key: 0,
|
|
2834
2834
|
class: "flex shrink-0"
|
|
2835
2835
|
}, Pr = /* @__PURE__ */ Ne({
|
|
@@ -2864,7 +2864,7 @@ const Nr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
2864
2864
|
toggleManage: R,
|
|
2865
2865
|
hasNonManageActions: y,
|
|
2866
2866
|
isActionChecked: P,
|
|
2867
|
-
isRowFullyCoveredByCover:
|
|
2867
|
+
isRowFullyCoveredByCover: V,
|
|
2868
2868
|
isActionCoveredByCover: L,
|
|
2869
2869
|
permissionDefinesAction: D,
|
|
2870
2870
|
toggleAction: i,
|
|
@@ -2879,16 +2879,16 @@ const Nr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
2879
2879
|
(S, g) => s("update:model-value", g)
|
|
2880
2880
|
);
|
|
2881
2881
|
return (S, g) => {
|
|
2882
|
-
const v =
|
|
2882
|
+
const v = Xe("FmCheckbox");
|
|
2883
2883
|
return B(), se("div", Nr, [
|
|
2884
|
-
(B(!0), se(Ee, null,
|
|
2885
|
-
key:
|
|
2884
|
+
(B(!0), se(Ee, null, he(H(a), (h) => (B(), se(Ee, {
|
|
2885
|
+
key: h.category
|
|
2886
2886
|
}, [
|
|
2887
|
-
|
|
2888
|
-
ae("div",
|
|
2889
|
-
ae("div", Or, Ae(
|
|
2887
|
+
h.isMultiAction ? (B(), se("div", Tr, [
|
|
2888
|
+
ae("div", kr, [
|
|
2889
|
+
ae("div", Or, Ae(h.category), 1),
|
|
2890
2890
|
ae("div", Lr, [
|
|
2891
|
-
(B(!0), se(Ee, null,
|
|
2891
|
+
(B(!0), se(Ee, null, he(h.actionColumns, (E) => (B(), se("span", {
|
|
2892
2892
|
key: E,
|
|
2893
2893
|
class: "w-[56px] text-center fm-typo-en-body-sm-400 text-fm-color-neutral-gray-600"
|
|
2894
2894
|
}, Ae(H(w)(E)), 1))), 128))
|
|
@@ -2897,82 +2897,82 @@ const Nr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
2897
2897
|
ae("div", Rr, [
|
|
2898
2898
|
ae("div", Cr, [
|
|
2899
2899
|
_e(v, {
|
|
2900
|
-
"model-value": H(m)(
|
|
2900
|
+
"model-value": H(m)(h),
|
|
2901
2901
|
value: !0,
|
|
2902
2902
|
disabled: e.disable,
|
|
2903
2903
|
label: "All",
|
|
2904
2904
|
size: "sm",
|
|
2905
2905
|
dense: "",
|
|
2906
|
-
"onUpdate:modelValue": (E) => H(u)(
|
|
2906
|
+
"onUpdate:modelValue": (E) => H(u)(h)
|
|
2907
2907
|
}, null, 8, ["model-value", "disabled", "onUpdate:modelValue"]),
|
|
2908
2908
|
ae("div", Ar, [
|
|
2909
|
-
(B(!0), se(Ee, null,
|
|
2909
|
+
(B(!0), se(Ee, null, he(h.actionColumns, (E) => (B(), se("div", {
|
|
2910
2910
|
key: E,
|
|
2911
2911
|
class: "w-[56px] flex justify-center"
|
|
2912
2912
|
}, [
|
|
2913
2913
|
_e(v, {
|
|
2914
|
-
"model-value": H(d)(
|
|
2915
|
-
indeterminate: H(N)(
|
|
2914
|
+
"model-value": H(d)(h, E),
|
|
2915
|
+
indeterminate: H(N)(h, E),
|
|
2916
2916
|
value: E,
|
|
2917
2917
|
disabled: e.disable,
|
|
2918
2918
|
size: "sm",
|
|
2919
2919
|
dense: "",
|
|
2920
|
-
"onUpdate:modelValue": (A) => H(_)(
|
|
2920
|
+
"onUpdate:modelValue": (A) => H(_)(h, E, A)
|
|
2921
2921
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2922
2922
|
]))), 128))
|
|
2923
2923
|
])
|
|
2924
2924
|
]),
|
|
2925
|
-
(B(!0), se(Ee, null,
|
|
2925
|
+
(B(!0), se(Ee, null, he(h.options, (E, A) => (B(), se("div", {
|
|
2926
2926
|
key: E.value,
|
|
2927
|
-
class: qe(A <
|
|
2927
|
+
class: qe(A < h.options.length - 1 ? "q-mb-xs" : "")
|
|
2928
2928
|
}, [
|
|
2929
2929
|
ae("div", Sr, [
|
|
2930
2930
|
ae("div", Mr, [
|
|
2931
2931
|
_e(v, {
|
|
2932
|
-
"model-value": H(p)(
|
|
2932
|
+
"model-value": H(p)(h, E.value) || H(V)(h, E.value),
|
|
2933
2933
|
value: E.value,
|
|
2934
|
-
disabled: e.disable || H(
|
|
2935
|
-
indeterminate: H(O)(
|
|
2934
|
+
disabled: e.disable || H(V)(h, E.value),
|
|
2935
|
+
indeterminate: H(O)(h, E.value),
|
|
2936
2936
|
size: "sm",
|
|
2937
2937
|
class: "shrink-0",
|
|
2938
|
-
"onUpdate:modelValue": (C) => H(R)(
|
|
2938
|
+
"onUpdate:modelValue": (C) => H(R)(h, E.value, C)
|
|
2939
2939
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"]),
|
|
2940
2940
|
ae("span", {
|
|
2941
2941
|
class: "block truncate cursor-pointer",
|
|
2942
2942
|
title: E.label,
|
|
2943
|
-
onClick: (C) => !e.disable && !H(
|
|
2943
|
+
onClick: (C) => !e.disable && !H(V)(h, E.value) && H(R)(h, E.value, !H(p)(h, E.value))
|
|
2944
2944
|
}, Ae(E.label), 9, Dr),
|
|
2945
2945
|
ge(S.$slots, `checkbox-${E.value}-append`, { option: E })
|
|
2946
2946
|
]),
|
|
2947
|
-
H(y)(
|
|
2948
|
-
(B(!0), se(Ee, null,
|
|
2947
|
+
H(y)(h, E.value) ? (B(), se("div", wr, [
|
|
2948
|
+
(B(!0), se(Ee, null, he(h.actionColumns, (C) => (B(), se("div", {
|
|
2949
2949
|
key: C,
|
|
2950
2950
|
class: "w-[56px] flex justify-center"
|
|
2951
2951
|
}, [
|
|
2952
|
-
H(D)(
|
|
2952
|
+
H(D)(h, E.value, C) ? (B(), Se(v, {
|
|
2953
2953
|
key: 0,
|
|
2954
|
-
"model-value": H(P)(
|
|
2954
|
+
"model-value": H(P)(h, E.value, C) || H(L)(h, E.value, C),
|
|
2955
2955
|
value: C,
|
|
2956
|
-
disabled: e.disable || H(L)(
|
|
2956
|
+
disabled: e.disable || H(L)(h, E.value, C),
|
|
2957
2957
|
size: "sm",
|
|
2958
|
-
"onUpdate:modelValue": (
|
|
2958
|
+
"onUpdate:modelValue": (G) => H(i)(E.value, C, G)
|
|
2959
2959
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Oe("", !0)
|
|
2960
2960
|
]))), 128))
|
|
2961
2961
|
])) : Oe("", !0)
|
|
2962
2962
|
])
|
|
2963
2963
|
], 2))), 128))
|
|
2964
2964
|
])
|
|
2965
|
-
])) : (B(), Se(
|
|
2965
|
+
])) : (B(), Se(zt, {
|
|
2966
2966
|
key: 0,
|
|
2967
|
-
"model-value":
|
|
2968
|
-
options:
|
|
2967
|
+
"model-value": h.selectedSubjects,
|
|
2968
|
+
options: h.options,
|
|
2969
2969
|
disable: e.disable,
|
|
2970
|
-
title:
|
|
2971
|
-
"onUpdate:modelValue": (E) => H(c)(
|
|
2970
|
+
title: h.category,
|
|
2971
|
+
"onUpdate:modelValue": (E) => H(c)(h.category, E)
|
|
2972
2972
|
}, Fe({ _: 2 }, [
|
|
2973
|
-
|
|
2973
|
+
he(h.options, (E) => ({
|
|
2974
2974
|
name: `checkbox-${E.value}-append`,
|
|
2975
|
-
fn:
|
|
2975
|
+
fn: be(({ option: A }) => [
|
|
2976
2976
|
ge(S.$slots, `checkbox-${E.value}-append`, { option: A })
|
|
2977
2977
|
])
|
|
2978
2978
|
}))
|
|
@@ -2981,14 +2981,14 @@ const Nr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
2981
2981
|
]);
|
|
2982
2982
|
};
|
|
2983
2983
|
}
|
|
2984
|
-
}), Fr = { class: "flex items-center" }, jr = { class: "ml-auto" },
|
|
2984
|
+
}), Fr = { class: "flex items-center" }, jr = { class: "ml-auto" }, Ur = /* @__PURE__ */ Ne({
|
|
2985
2985
|
__name: "CollapsibleWrapper",
|
|
2986
2986
|
props: {
|
|
2987
2987
|
title: { default: "" },
|
|
2988
2988
|
initiallyCollapsed: { type: Boolean, default: !1 }
|
|
2989
2989
|
},
|
|
2990
2990
|
setup(e) {
|
|
2991
|
-
const n =
|
|
2991
|
+
const n = Ue(e.initiallyCollapsed), s = Ue(), l = Ue(0);
|
|
2992
2992
|
let a;
|
|
2993
2993
|
function c() {
|
|
2994
2994
|
n.value = !n.value;
|
|
@@ -2996,14 +2996,14 @@ const Nr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
2996
2996
|
function m() {
|
|
2997
2997
|
s.value && (l.value = s.value.scrollHeight);
|
|
2998
2998
|
}
|
|
2999
|
-
return
|
|
2999
|
+
return Yt(async () => {
|
|
3000
3000
|
await es(), s.value && (a = new ResizeObserver(() => {
|
|
3001
3001
|
m();
|
|
3002
3002
|
}), a.observe(s.value));
|
|
3003
3003
|
}), An(() => {
|
|
3004
3004
|
a == null || a.disconnect();
|
|
3005
3005
|
}), (u, p) => {
|
|
3006
|
-
const O =
|
|
3006
|
+
const O = Xe("FmButton");
|
|
3007
3007
|
return B(), se(Ee, null, [
|
|
3008
3008
|
ae("div", { onClick: c }, [
|
|
3009
3009
|
ae("div", Fr, [
|
|
@@ -3029,7 +3029,7 @@ const Nr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
3029
3029
|
], 64);
|
|
3030
3030
|
};
|
|
3031
3031
|
}
|
|
3032
|
-
}),
|
|
3032
|
+
}), Vr = { class: "fm-typo-en-title-sm-600" }, Ct = "includedFuture", Cn = /* @__PURE__ */ Ne({
|
|
3033
3033
|
__name: "ConditionPermission",
|
|
3034
3034
|
props: {
|
|
3035
3035
|
modelValue: {
|
|
@@ -3066,14 +3066,14 @@ const Nr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
3066
3066
|
const O = p.length === a.value.length;
|
|
3067
3067
|
s("update:model-value", O ? null : p.filter((R) => R !== Ct));
|
|
3068
3068
|
}
|
|
3069
|
-
const u =
|
|
3069
|
+
const u = Ue("");
|
|
3070
3070
|
return (p, O) => {
|
|
3071
|
-
const R =
|
|
3072
|
-
return B(), Se(
|
|
3073
|
-
title:
|
|
3074
|
-
ae("p",
|
|
3071
|
+
const R = Xe("fm-search");
|
|
3072
|
+
return B(), Se(Ur, null, {
|
|
3073
|
+
title: be(() => [
|
|
3074
|
+
ae("p", Vr, Ae(H(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3075
3075
|
]),
|
|
3076
|
-
default:
|
|
3076
|
+
default: be(() => [
|
|
3077
3077
|
e.options.length > 1 ? (B(), Se(R, {
|
|
3078
3078
|
key: 0,
|
|
3079
3079
|
modelValue: u.value,
|
|
@@ -3081,7 +3081,7 @@ const Nr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
3081
3081
|
class: "mt-16",
|
|
3082
3082
|
placeholder: H(l)("team.memberForm.permissions.search", { context: e.context })
|
|
3083
3083
|
}, null, 8, ["modelValue", "placeholder"])) : Oe("", !0),
|
|
3084
|
-
_e(
|
|
3084
|
+
_e(zt, {
|
|
3085
3085
|
"model-value": c.value,
|
|
3086
3086
|
options: a.value,
|
|
3087
3087
|
"show-intermediate": !1,
|
|
@@ -3092,9 +3092,9 @@ const Nr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
3092
3092
|
class: "mt-16",
|
|
3093
3093
|
"onUpdate:modelValue": m
|
|
3094
3094
|
}, Fe({ _: 2 }, [
|
|
3095
|
-
|
|
3095
|
+
he(a.value, (y) => ({
|
|
3096
3096
|
name: `checkbox-${y.value}-append`,
|
|
3097
|
-
fn:
|
|
3097
|
+
fn: be(({ option: P }) => [
|
|
3098
3098
|
ge(p.$slots, `checkbox-${y.value}-append`, { option: P })
|
|
3099
3099
|
])
|
|
3100
3100
|
}))
|
|
@@ -3104,7 +3104,7 @@ const Nr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
3104
3104
|
});
|
|
3105
3105
|
};
|
|
3106
3106
|
}
|
|
3107
|
-
}), At = "includedNewRole",
|
|
3107
|
+
}), At = "includedNewRole", xr = /* @__PURE__ */ Ne({
|
|
3108
3108
|
__name: "PosRolePermission",
|
|
3109
3109
|
props: {
|
|
3110
3110
|
modelValue: {
|
|
@@ -3145,7 +3145,7 @@ const Nr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
3145
3145
|
const p = u.length === a.value.length;
|
|
3146
3146
|
s("update:model-value", p ? null : u.filter((O) => O !== At));
|
|
3147
3147
|
}
|
|
3148
|
-
return (u, p) => (B(), Se(
|
|
3148
|
+
return (u, p) => (B(), Se(zt, {
|
|
3149
3149
|
"model-value": c.value,
|
|
3150
3150
|
options: a.value,
|
|
3151
3151
|
"show-intermediate": !1,
|
|
@@ -3154,19 +3154,19 @@ const Nr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
3154
3154
|
title: H(l)("team.memberForm.permissions.roles"),
|
|
3155
3155
|
"onUpdate:modelValue": m
|
|
3156
3156
|
}, Fe({ _: 2 }, [
|
|
3157
|
-
|
|
3157
|
+
he(a.value, (O) => ({
|
|
3158
3158
|
name: `checkbox-${O.value}-append`,
|
|
3159
|
-
fn:
|
|
3159
|
+
fn: be(({ option: R }) => [
|
|
3160
3160
|
ge(u.$slots, `checkbox-${O.value}-append`, { option: R })
|
|
3161
3161
|
])
|
|
3162
3162
|
}))
|
|
3163
3163
|
]), 1032, ["model-value", "options", "disable", "title"]));
|
|
3164
3164
|
}
|
|
3165
|
-
}),
|
|
3165
|
+
}), Gr = {
|
|
3166
3166
|
async readWarehouses() {
|
|
3167
3167
|
return os(await is().get("/warehouses"));
|
|
3168
3168
|
}
|
|
3169
|
-
},
|
|
3169
|
+
}, Wr = { class: "flex flex-col gap-32" }, Yr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Xr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Zr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Br = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, nl = /* @__PURE__ */ Ne({
|
|
3170
3170
|
__name: "PortalPermissionEditor",
|
|
3171
3171
|
props: /* @__PURE__ */ qt({
|
|
3172
3172
|
disable: {
|
|
@@ -3185,223 +3185,223 @@ const Nr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
3185
3185
|
setup(e, { emit: t }) {
|
|
3186
3186
|
const n = ts(e, "modelValue"), s = e, l = t, { t: a } = _t(), { fetchCustomReportPermissions: c, customReportPermissions: m } = ss();
|
|
3187
3187
|
function u(M) {
|
|
3188
|
-
return Mt.find((
|
|
3188
|
+
return Mt.find((k) => k.subject === M) ?? m.value.find((k) => k.subject === M);
|
|
3189
3189
|
}
|
|
3190
3190
|
const p = te(() => {
|
|
3191
|
-
const M = [...Mt, ...m.value].filter((
|
|
3191
|
+
const M = [...Mt, ...m.value].filter((T) => !P.includes(T.subject)).map((T) => T.subject);
|
|
3192
3192
|
return as(
|
|
3193
|
-
s.inheritPermissions.map((
|
|
3194
|
-
...
|
|
3195
|
-
permissions:
|
|
3193
|
+
s.inheritPermissions.map((T) => ({
|
|
3194
|
+
...T,
|
|
3195
|
+
permissions: T.permissions.filter((Z) => M.includes(Z.subject))
|
|
3196
3196
|
}))
|
|
3197
|
-
).map((
|
|
3198
|
-
id:
|
|
3199
|
-
setNames:
|
|
3197
|
+
).map((T) => ({
|
|
3198
|
+
id: T.subject,
|
|
3199
|
+
setNames: T.setNames
|
|
3200
3200
|
}));
|
|
3201
3201
|
}), O = te(() => {
|
|
3202
|
-
const M = s.inheritPermissions.map((
|
|
3203
|
-
...
|
|
3204
|
-
permissions:
|
|
3205
|
-
(
|
|
3202
|
+
const M = s.inheritPermissions.map((k) => ({
|
|
3203
|
+
...k,
|
|
3204
|
+
permissions: k.permissions.filter(
|
|
3205
|
+
(T) => T.subject === me.Subject.Business.inventory_stock
|
|
3206
3206
|
)
|
|
3207
3207
|
}));
|
|
3208
3208
|
return Nt(
|
|
3209
3209
|
M,
|
|
3210
3210
|
"warehouseId",
|
|
3211
|
-
L.value.map((
|
|
3211
|
+
L.value.map((k) => k._id)
|
|
3212
3212
|
);
|
|
3213
3213
|
}), R = te(() => {
|
|
3214
|
-
const M = s.inheritPermissions.map((
|
|
3215
|
-
...
|
|
3216
|
-
permissions:
|
|
3217
|
-
(
|
|
3214
|
+
const M = s.inheritPermissions.map((k) => ({
|
|
3215
|
+
...k,
|
|
3216
|
+
permissions: k.permissions.filter(
|
|
3217
|
+
(T) => T.subject === me.Subject.Restaurant.restaurant
|
|
3218
3218
|
)
|
|
3219
3219
|
}));
|
|
3220
3220
|
return Nt(
|
|
3221
3221
|
M,
|
|
3222
3222
|
"restaurantId",
|
|
3223
|
-
N.value.map((
|
|
3223
|
+
N.value.map((k) => k._id)
|
|
3224
3224
|
);
|
|
3225
3225
|
}), y = te(() => {
|
|
3226
|
-
const M = s.inheritPermissions.map((
|
|
3227
|
-
...
|
|
3228
|
-
permissions:
|
|
3226
|
+
const M = s.inheritPermissions.map((k) => ({
|
|
3227
|
+
...k,
|
|
3228
|
+
permissions: k.permissions.filter((T) => T.subject === me.Subject.Business.role)
|
|
3229
3229
|
}));
|
|
3230
3230
|
return Nt(
|
|
3231
3231
|
M,
|
|
3232
3232
|
"roleId",
|
|
3233
|
-
_.value.map((
|
|
3233
|
+
_.value.map((k) => k._id)
|
|
3234
3234
|
);
|
|
3235
3235
|
}), P = [
|
|
3236
3236
|
me.Subject.Business.restaurant,
|
|
3237
3237
|
me.Subject.Business.role,
|
|
3238
3238
|
me.Subject.Restaurant.restaurant,
|
|
3239
3239
|
me.Subject.Business.inventory_stock
|
|
3240
|
-
],
|
|
3241
|
-
var
|
|
3242
|
-
const M = (
|
|
3243
|
-
(
|
|
3240
|
+
], V = te(() => {
|
|
3241
|
+
var k;
|
|
3242
|
+
const M = (k = n.value) == null ? void 0 : k.find(
|
|
3243
|
+
(T) => T.subject === me.Subject.Business.inventory_stock
|
|
3244
3244
|
);
|
|
3245
3245
|
return M ? M.conditions ? JSON.parse(M.conditions).warehouseId.$in : null : [];
|
|
3246
|
-
}), L =
|
|
3246
|
+
}), L = Ue([]), D = te(() => L.value.map((M) => ({
|
|
3247
3247
|
label: M.profile.name,
|
|
3248
3248
|
value: M._id
|
|
3249
3249
|
})));
|
|
3250
3250
|
function i(M) {
|
|
3251
|
-
const
|
|
3252
|
-
n.value =
|
|
3251
|
+
const k = d(n.value, M);
|
|
3252
|
+
n.value = k;
|
|
3253
3253
|
}
|
|
3254
|
-
function d(M,
|
|
3255
|
-
let
|
|
3254
|
+
function d(M, k) {
|
|
3255
|
+
let T = ut(
|
|
3256
3256
|
M.filter((Z) => Z.subject !== me.Subject.Business.inventory_stock)
|
|
3257
3257
|
);
|
|
3258
|
-
if (!
|
|
3258
|
+
if (!k || k.length > 0) {
|
|
3259
3259
|
const Z = {
|
|
3260
3260
|
actions: [me.Action.manage],
|
|
3261
3261
|
subject: me.Subject.Business.inventory_stock
|
|
3262
3262
|
};
|
|
3263
|
-
|
|
3263
|
+
k && (Z.conditions = JSON.stringify({ warehouseId: { $in: k } })), T.push(Z);
|
|
3264
3264
|
}
|
|
3265
|
-
return
|
|
3265
|
+
return T;
|
|
3266
3266
|
}
|
|
3267
3267
|
const { restaurants: N } = ns(), _ = fs().roles, w = te(() => N.value.map((M) => ({
|
|
3268
3268
|
label: `${M.profile.code ? M.profile.code + "-" : ""}${M.profile.name}`,
|
|
3269
3269
|
value: M._id
|
|
3270
|
-
}))), S = te(() => N.value.reduce((M,
|
|
3270
|
+
}))), S = te(() => N.value.reduce((M, k) => (M[k._id] = _.value.filter((T) => T.restaurants.some((Z) => Z.id === k._id)).map((T) => T._id), M), {})), g = te(() => rs(n.value));
|
|
3271
3271
|
function v(M) {
|
|
3272
|
-
const
|
|
3273
|
-
n.value =
|
|
3272
|
+
const k = E(n.value, M);
|
|
3273
|
+
n.value = k;
|
|
3274
3274
|
}
|
|
3275
|
-
const
|
|
3276
|
-
function E(M,
|
|
3275
|
+
const h = te(() => ls(n.value));
|
|
3276
|
+
function E(M, k) {
|
|
3277
3277
|
var Z;
|
|
3278
|
-
let
|
|
3278
|
+
let T = ut(
|
|
3279
3279
|
M.filter(
|
|
3280
|
-
(
|
|
3280
|
+
(W) => W.subject !== me.Subject.Business.restaurant && W.subject !== me.Subject.Restaurant.restaurant
|
|
3281
3281
|
)
|
|
3282
3282
|
);
|
|
3283
|
-
if (!
|
|
3283
|
+
if (!k || k.length > 0) {
|
|
3284
3284
|
const {
|
|
3285
|
-
category:
|
|
3285
|
+
category: W,
|
|
3286
3286
|
showByFeatureFlag: j,
|
|
3287
3287
|
...ne
|
|
3288
3288
|
} = ms.restaurant;
|
|
3289
|
-
|
|
3290
|
-
const
|
|
3289
|
+
T.push(ne);
|
|
3290
|
+
const $ = {
|
|
3291
3291
|
actions: [me.Action.manage],
|
|
3292
3292
|
subject: me.Subject.Restaurant.restaurant
|
|
3293
3293
|
};
|
|
3294
|
-
|
|
3294
|
+
k && ($.conditions = JSON.stringify({ restaurantId: { $in: k } })), T.push($);
|
|
3295
3295
|
}
|
|
3296
|
-
if (
|
|
3297
|
-
const
|
|
3298
|
-
...new Set(
|
|
3296
|
+
if (k) {
|
|
3297
|
+
const W = [
|
|
3298
|
+
...new Set(k.map((ne) => S.value[ne]).flatMap((ne) => ne))
|
|
3299
3299
|
], j = _.value.map((ne) => ne._id);
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
(Z =
|
|
3300
|
+
W.length !== j.length && (T = C(
|
|
3301
|
+
T,
|
|
3302
|
+
(Z = h.value || j) == null ? void 0 : Z.filter((ne) => W.includes(ne))
|
|
3303
3303
|
));
|
|
3304
3304
|
}
|
|
3305
|
-
return
|
|
3305
|
+
return T;
|
|
3306
3306
|
}
|
|
3307
3307
|
function A(M) {
|
|
3308
|
-
const
|
|
3309
|
-
n.value =
|
|
3308
|
+
const k = C(n.value, M);
|
|
3309
|
+
n.value = k;
|
|
3310
3310
|
}
|
|
3311
|
-
function C(M,
|
|
3312
|
-
let
|
|
3311
|
+
function C(M, k) {
|
|
3312
|
+
let T = ut(
|
|
3313
3313
|
M.filter((Z) => Z.subject !== me.Subject.Business.role)
|
|
3314
3314
|
);
|
|
3315
|
-
if (
|
|
3315
|
+
if (k && k.length > 0) {
|
|
3316
3316
|
const Z = {
|
|
3317
3317
|
actions: [me.Action.manage],
|
|
3318
3318
|
subject: me.Subject.Business.role,
|
|
3319
|
-
conditions: JSON.stringify({ roleId: { $in:
|
|
3319
|
+
conditions: JSON.stringify({ roleId: { $in: k } })
|
|
3320
3320
|
};
|
|
3321
|
-
|
|
3321
|
+
T.push(Z);
|
|
3322
3322
|
}
|
|
3323
|
-
return
|
|
3323
|
+
return T;
|
|
3324
3324
|
}
|
|
3325
|
-
|
|
3325
|
+
Yt(async () => {
|
|
3326
3326
|
await Promise.all([
|
|
3327
|
-
|
|
3327
|
+
Gr.readWarehouses().then((M) => L.value = M),
|
|
3328
3328
|
c()
|
|
3329
3329
|
]);
|
|
3330
3330
|
});
|
|
3331
|
-
const
|
|
3331
|
+
const G = te(() => Tt(
|
|
3332
3332
|
n.value,
|
|
3333
|
-
|
|
3334
|
-
).filter((
|
|
3335
|
-
const Z =
|
|
3336
|
-
return (Z == null ? void 0 : Z.type) !== "systemPermissionSet" ? !0 :
|
|
3337
|
-
}).map((
|
|
3338
|
-
if (
|
|
3339
|
-
const Z =
|
|
3340
|
-
if (!Z.includes("manage")) return
|
|
3341
|
-
const
|
|
3342
|
-
if (!
|
|
3343
|
-
const j =
|
|
3344
|
-
return j.length <= 1 || j.filter((
|
|
3333
|
+
kt
|
|
3334
|
+
).filter((T) => {
|
|
3335
|
+
const Z = T.source;
|
|
3336
|
+
return (Z == null ? void 0 : Z.type) !== "systemPermissionSet" ? !0 : T.actions.includes("manage");
|
|
3337
|
+
}).map((T) => {
|
|
3338
|
+
if (T.inverted) return T;
|
|
3339
|
+
const Z = T.actions;
|
|
3340
|
+
if (!Z.includes("manage")) return T;
|
|
3341
|
+
const W = u(T.subject);
|
|
3342
|
+
if (!W) return T;
|
|
3343
|
+
const j = W.actions;
|
|
3344
|
+
return j.length <= 1 || j.filter(($) => !Z.includes($)).length === 0 ? T : { ...T, actions: [...j] };
|
|
3345
3345
|
}));
|
|
3346
|
-
function
|
|
3347
|
-
const
|
|
3348
|
-
|
|
3349
|
-
),
|
|
3346
|
+
function x(M) {
|
|
3347
|
+
const k = new Set(
|
|
3348
|
+
G.value.filter((j) => !j.inverted).map((j) => j.subject)
|
|
3349
|
+
), T = new Set(
|
|
3350
3350
|
M.filter((j) => !j.inverted).map((j) => j.subject)
|
|
3351
3351
|
), Z = new Set(
|
|
3352
3352
|
n.value.filter((j) => !j.inverted).map((j) => j.subject)
|
|
3353
3353
|
);
|
|
3354
|
-
let
|
|
3355
|
-
for (const j of T)
|
|
3356
|
-
k.has(j) || (Z.has(j) && (x = x.filter((J) => J.subject !== j)), (!Z.has(j) || kt(
|
|
3357
|
-
x,
|
|
3358
|
-
Tt
|
|
3359
|
-
).some(
|
|
3360
|
-
(J) => J.subject === j && !J.inverted && J.actions.includes("manage")
|
|
3361
|
-
)) && !x.some((J) => J.subject === j && J.inverted) && x.push({ subject: j, actions: ["manage"], inverted: !0 }));
|
|
3354
|
+
let W = [...n.value];
|
|
3362
3355
|
for (const j of k)
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3356
|
+
T.has(j) || (Z.has(j) && (W = W.filter(($) => $.subject !== j)), (!Z.has(j) || Tt(
|
|
3357
|
+
W,
|
|
3358
|
+
kt
|
|
3359
|
+
).some(
|
|
3360
|
+
($) => $.subject === j && !$.inverted && $.actions.includes("manage")
|
|
3361
|
+
)) && !W.some(($) => $.subject === j && $.inverted) && W.push({ subject: j, actions: ["manage"], inverted: !0 }));
|
|
3362
|
+
for (const j of T)
|
|
3363
|
+
if (!k.has(j)) {
|
|
3364
|
+
const ne = W.some(($) => $.subject === j && $.inverted);
|
|
3365
|
+
if (W = W.filter(($) => !($.subject === j && $.inverted)), !ne && !Z.has(j)) {
|
|
3366
|
+
const $ = M.find(
|
|
3367
|
+
(z) => z.subject === j && !z.inverted
|
|
3368
|
+
), Y = u(j);
|
|
3369
|
+
if (Y && $) {
|
|
3370
|
+
const { category: z, showByFeatureFlag: we, ...re } = Y;
|
|
3371
|
+
W.push({ ...re, actions: $.actions });
|
|
3372
3372
|
}
|
|
3373
3373
|
}
|
|
3374
3374
|
}
|
|
3375
|
-
for (const j of
|
|
3376
|
-
if (!
|
|
3377
|
-
const ne =
|
|
3375
|
+
for (const j of T) {
|
|
3376
|
+
if (!k.has(j)) continue;
|
|
3377
|
+
const ne = G.value.find(
|
|
3378
3378
|
(re) => re.subject === j && !re.inverted
|
|
3379
|
-
),
|
|
3380
|
-
if (!ne ||
|
|
3381
|
-
const
|
|
3382
|
-
if (
|
|
3379
|
+
), $ = M.find((re) => re.subject === j && !re.inverted);
|
|
3380
|
+
if (!ne || !$) continue;
|
|
3381
|
+
const Y = new Set(ne.actions), z = new Set($.actions);
|
|
3382
|
+
if (Y.size === z.size && [...Y].every((re) => z.has(re)))
|
|
3383
3383
|
continue;
|
|
3384
|
-
const we =
|
|
3384
|
+
const we = W.findIndex((re) => re.subject === j && !re.inverted);
|
|
3385
3385
|
if (we >= 0)
|
|
3386
|
-
|
|
3387
|
-
...
|
|
3388
|
-
actions: Array.from(
|
|
3386
|
+
W[we] = {
|
|
3387
|
+
...W[we],
|
|
3388
|
+
actions: Array.from(z)
|
|
3389
3389
|
};
|
|
3390
3390
|
else {
|
|
3391
3391
|
const re = u(j);
|
|
3392
3392
|
if (re) {
|
|
3393
|
-
const { category: Ie, showByFeatureFlag:
|
|
3394
|
-
|
|
3393
|
+
const { category: Ie, showByFeatureFlag: $e, ...Je } = re;
|
|
3394
|
+
W.push({ ...Je, actions: Array.from(z) });
|
|
3395
3395
|
}
|
|
3396
3396
|
}
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3397
|
+
Y.has("manage") && !z.has("manage") && Tt(
|
|
3398
|
+
W,
|
|
3399
|
+
kt
|
|
3400
3400
|
).some(
|
|
3401
3401
|
(Ie) => Ie.subject === j && !Ie.inverted && Ie.actions.includes("manage")
|
|
3402
|
-
) && !
|
|
3402
|
+
) && !W.some((Ie) => Ie.subject === j && Ie.inverted) && W.push({ subject: j, actions: ["manage"], inverted: !0 }), !Y.has("manage") && z.has("manage") && (W = W.filter((re) => !(re.subject === j && re.inverted)));
|
|
3403
3403
|
}
|
|
3404
|
-
n.value =
|
|
3404
|
+
n.value = W;
|
|
3405
3405
|
}
|
|
3406
3406
|
return St(
|
|
3407
3407
|
n,
|
|
@@ -3409,33 +3409,33 @@ const Nr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
3409
3409
|
l("permissionChanged", M);
|
|
3410
3410
|
},
|
|
3411
3411
|
{ deep: !0 }
|
|
3412
|
-
), (M,
|
|
3413
|
-
ae("div",
|
|
3412
|
+
), (M, k) => (B(), se("div", Wr, [
|
|
3413
|
+
ae("div", Yr, [
|
|
3414
3414
|
_e(Pr, {
|
|
3415
|
-
"model-value":
|
|
3415
|
+
"model-value": G.value,
|
|
3416
3416
|
"excluded-subjects": P,
|
|
3417
3417
|
"additional-permissions": H(m),
|
|
3418
|
-
"onUpdate:modelValue":
|
|
3418
|
+
"onUpdate:modelValue": x
|
|
3419
3419
|
}, Fe({ _: 2 }, [
|
|
3420
|
-
|
|
3421
|
-
name: `checkbox-${
|
|
3422
|
-
fn:
|
|
3423
|
-
_e(it, { item:
|
|
3420
|
+
he(p.value, (T) => ({
|
|
3421
|
+
name: `checkbox-${T.id}-append`,
|
|
3422
|
+
fn: be(() => [
|
|
3423
|
+
_e(it, { item: T }, null, 8, ["item"])
|
|
3424
3424
|
])
|
|
3425
3425
|
}))
|
|
3426
3426
|
]), 1032, ["model-value", "additional-permissions"])
|
|
3427
3427
|
]),
|
|
3428
|
-
ae("div",
|
|
3428
|
+
ae("div", Xr, [
|
|
3429
3429
|
_e(Cn, {
|
|
3430
|
-
"model-value":
|
|
3430
|
+
"model-value": V.value,
|
|
3431
3431
|
options: D.value,
|
|
3432
3432
|
context: H(a)("team.labels.warehouse"),
|
|
3433
3433
|
"onUpdate:modelValue": i
|
|
3434
3434
|
}, Fe({ _: 2 }, [
|
|
3435
|
-
|
|
3436
|
-
name: `checkbox-${
|
|
3437
|
-
fn:
|
|
3438
|
-
_e(it, { item:
|
|
3435
|
+
he(O.value, (T) => ({
|
|
3436
|
+
name: `checkbox-${T.id}-append`,
|
|
3437
|
+
fn: be(() => [
|
|
3438
|
+
_e(it, { item: T }, null, 8, ["item"])
|
|
3439
3439
|
])
|
|
3440
3440
|
}))
|
|
3441
3441
|
]), 1032, ["model-value", "options", "context"])
|
|
@@ -3447,25 +3447,25 @@ const Nr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
3447
3447
|
context: H(a)("team.labels.restaurant"),
|
|
3448
3448
|
"onUpdate:modelValue": v
|
|
3449
3449
|
}, Fe({ _: 2 }, [
|
|
3450
|
-
|
|
3451
|
-
name: `checkbox-${
|
|
3452
|
-
fn:
|
|
3453
|
-
_e(it, { item:
|
|
3450
|
+
he(R.value, (T) => ({
|
|
3451
|
+
name: `checkbox-${T.id}-append`,
|
|
3452
|
+
fn: be(() => [
|
|
3453
|
+
_e(it, { item: T }, null, 8, ["item"])
|
|
3454
3454
|
])
|
|
3455
3455
|
}))
|
|
3456
3456
|
]), 1032, ["model-value", "options", "context"])
|
|
3457
3457
|
]),
|
|
3458
3458
|
ae("div", Br, [
|
|
3459
|
-
_e(
|
|
3459
|
+
_e(xr, {
|
|
3460
3460
|
roles: H(_),
|
|
3461
|
-
"model-value":
|
|
3461
|
+
"model-value": h.value,
|
|
3462
3462
|
"restaurant-ids": g.value,
|
|
3463
3463
|
"onUpdate:modelValue": A
|
|
3464
3464
|
}, Fe({ _: 2 }, [
|
|
3465
|
-
|
|
3466
|
-
name: `checkbox-${
|
|
3467
|
-
fn:
|
|
3468
|
-
_e(it, { item:
|
|
3465
|
+
he(y.value, (T) => ({
|
|
3466
|
+
name: `checkbox-${T.id}-append`,
|
|
3467
|
+
fn: be(() => [
|
|
3468
|
+
_e(it, { item: T }, null, 8, ["item"])
|
|
3469
3469
|
])
|
|
3470
3470
|
}))
|
|
3471
3471
|
]), 1032, ["roles", "model-value", "restaurant-ids"])
|
|
@@ -3474,6 +3474,6 @@ const Nr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
3474
3474
|
}
|
|
3475
3475
|
});
|
|
3476
3476
|
export {
|
|
3477
|
-
|
|
3477
|
+
zt as _,
|
|
3478
3478
|
nl as a
|
|
3479
3479
|
};
|