@feedmepos/mf-hrm-portal 2.0.21 → 2.0.22
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-COhT1PFG.js → AuditLogList-DE6rCmIF.js} +4 -4
- package/dist/{EmployeeList-CBfr6g9t.js → EmployeeList-Bo2kxYfU.js} +6 -6
- package/dist/{Main-D1dN1FTE.js → Main--J60Ewhg.js} +9 -9
- package/dist/{Main-BEfbP-bs.js → Main-Jr4wJkSF.js} +6 -6
- package/dist/{Main-gByKBqZC.js → Main-o7e2diY4.js} +4 -4
- package/dist/{PermissionSetList-CHLm6ueB.js → PermissionSetList-Dqgg3uI_.js} +6 -6
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BRb3aRsV.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C-r6P1cf.js} +477 -477
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-BW8o67ka.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-Dw51spR4.js} +1 -1
- package/dist/{RoleList-mgMUDQa_.js → RoleList-CEAYXKJn.js} +7 -7
- package/dist/{TeamMemberList-Bdtm1lLi.js → TeamMemberList-CkT3zwyz.js} +8 -8
- package/dist/{TimesheetList-BdO8bRzv.js → TimesheetList-D-cVL3h4.js} +79 -80
- package/dist/{timesheet-q4UbovJv.js → TimesheetList.vue_vue_type_style_index_0_scoped_d7ed31d7_lang-CwxHuU0g.js} +2 -2
- package/dist/{app-DdGJIhvX.js → app-DLNoD3Bw.js} +4 -4
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-Dn0iKqwG.js → dayjs.min-CjAlDyAV.js} +1 -1
- package/dist/{employee-rjbsWBRt.js → employee-BVrl60M4.js} +3 -3
- package/dist/{iteration-iN8h5bwW.js → iteration-CMArgFW3.js} +1 -1
- package/dist/{lodash-BX4i2dq_.js → lodash-vv7bFEHI.js} +1 -1
- package/dist/{rule-CBauoBQ2.js → rule-B9c3wxZ3.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DPDMpfh5.js → useAppStore-BfCbhoXq.js} +1 -1
- package/dist/{useLoading-DLMKZcST.js → useLoading-CwApBgYk.js} +1 -1
- package/dist/{useReportPermissions-DjUtbNV6.js → useReportPermissions-DfQTDuU2.js} +3 -3
- package/package.json +1 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
2
|
-
import { useI18n as
|
|
1
|
+
import { getCurrentInstance as xt, inject as Jn, ref as ht, shallowRef as Kn, computed as q, watch as St, onMounted as Cn, onUnmounted as zn, defineComponent as ke, h as An, createVNode as _e, Text as Qn, Fragment as Le, resolveComponent as qe, createBlock as Me, openBlock as Q, withCtx as pe, createElementVNode as se, createElementBlock as oe, toDisplayString as Ie, unref as $, renderList as ge, toRef as zt, normalizeStyle as Ze, renderSlot as Te, createCommentVNode as Se, createTextVNode as qn, useSlots as es, normalizeClass as rt, createSlots as xe, mergeModels as Qt, useModel as ts } from "vue";
|
|
2
|
+
import { useI18n as He, useCoreStore as ns } from "@feedmepos/mf-common";
|
|
3
3
|
import "@vue/devtools-api";
|
|
4
|
-
import { p as Mt, d as ss, w as as, x as kt, k as rs, j as ls, $ as Ot } from "./rule-
|
|
5
|
-
import { _ as
|
|
6
|
-
import { u as os, b as is, d as ue, C as cs, h as Lt } from "./app-
|
|
7
|
-
import { d as dt, g as us, b as ms } from "./iteration-
|
|
8
|
-
import { u as ds } from "./useAppStore-
|
|
4
|
+
import { p as Mt, d as ss, w as as, x as kt, k as rs, j as ls, $ as Ot } from "./rule-B9c3wxZ3.js";
|
|
5
|
+
import { _ as Zt } from "./CollapsibleWrapper.vue_vue_type_script_setup_true_lang-BLJlmPVa.js";
|
|
6
|
+
import { u as os, b as is, d as ue, C as cs, h as Lt } from "./app-DLNoD3Bw.js";
|
|
7
|
+
import { d as dt, g as us, b as ms } from "./iteration-CMArgFW3.js";
|
|
8
|
+
import { u as ds } from "./useAppStore-BfCbhoXq.js";
|
|
9
9
|
/*!
|
|
10
10
|
* shared v10.0.5
|
|
11
11
|
* (c) 2024 kazuya kawaguchi
|
|
12
12
|
* Released under the MIT License.
|
|
13
13
|
*/
|
|
14
|
-
const qt = typeof window < "u",
|
|
14
|
+
const qt = typeof window < "u", Ue = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), fs = (e, t, n) => _s({ l: e, k: t, s: n }), _s = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), me = (e) => typeof e == "number" && isFinite(e), ps = (e) => Xt(e) === "[object Date]", _t = (e) => Xt(e) === "[object RegExp]", bt = (e) => J(e) && Object.keys(e).length === 0, de = Object.assign, hs = Object.create, ee = (e = null) => hs(e);
|
|
15
15
|
let en;
|
|
16
16
|
const Fe = () => en || (en = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : ee());
|
|
17
17
|
function tn(e) {
|
|
18
18
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
19
19
|
}
|
|
20
20
|
const bs = Object.prototype.hasOwnProperty;
|
|
21
|
-
function
|
|
21
|
+
function Ne(e, t) {
|
|
22
22
|
return bs.call(e, t);
|
|
23
23
|
}
|
|
24
|
-
const ce = Array.isArray, ae = (e) => typeof e == "function", P = (e) => typeof e == "string", ie = (e) => typeof e == "boolean",
|
|
25
|
-
function
|
|
24
|
+
const ce = Array.isArray, ae = (e) => typeof e == "function", P = (e) => typeof e == "string", ie = (e) => typeof e == "boolean", K = (e) => e !== null && typeof e == "object", gs = (e) => K(e) && ae(e.then) && ae(e.catch), Sn = Object.prototype.toString, Xt = (e) => Sn.call(e), J = (e) => Xt(e) === "[object Object]", vs = (e) => e == null ? "" : ce(e) || J(e) && e.toString === Sn ? JSON.stringify(e, null, 2) : String(e);
|
|
25
|
+
function Yt(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 lt = (e) => !
|
|
31
|
+
const lt = (e) => !K(e) || ce(e);
|
|
32
32
|
function ft(e, t) {
|
|
33
33
|
if (lt(e) || lt(t))
|
|
34
34
|
throw new Error("Invalid value");
|
|
@@ -36,7 +36,7 @@ function ft(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]) ? [] : ee()), lt(l[a]) || lt(s[a]) ? l[a] = s[a] : n.push({ src: s[a], des: l[a] }));
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -46,7 +46,7 @@ function Is(e, t, n) {
|
|
|
46
46
|
function Dt(e, t, n) {
|
|
47
47
|
return { start: e, end: t };
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const z = {
|
|
50
50
|
// tokenizer error codes
|
|
51
51
|
EXPECTED_TOKEN: 1,
|
|
52
52
|
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
|
@@ -63,12 +63,12 @@ const K = {
|
|
|
63
63
|
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
64
64
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
65
65
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
66
|
-
},
|
|
66
|
+
}, Ns = 17;
|
|
67
67
|
function gt(e, t, n = {}) {
|
|
68
68
|
const { domain: s, messages: l, args: a } = n, c = e, u = new SyntaxError(String(c));
|
|
69
69
|
return u.code = e, t && (u.location = t), u.domain = s, u;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function ys(e) {
|
|
72
72
|
throw e;
|
|
73
73
|
}
|
|
74
74
|
const Oe = " ", Ts = "\r", he = `
|
|
@@ -76,9 +76,9 @@ const Oe = " ", Ts = "\r", he = `
|
|
|
76
76
|
function Ls(e) {
|
|
77
77
|
const t = e;
|
|
78
78
|
let n = 0, s = 1, l = 1, a = 0;
|
|
79
|
-
const c = (E) => t[E] === Ts && t[E + 1] === he, u = (E) => t[E] === he, m = (E) => t[E] === Os, p = (E) => t[E] === ks,
|
|
79
|
+
const c = (E) => t[E] === Ts && t[E + 1] === he, u = (E) => t[E] === he, m = (E) => t[E] === Os, p = (E) => t[E] === ks, y = (E) => c(E) || u(E) || m(E) || p(E), L = () => n, O = () => s, w = () => l, V = () => a, A = (E) => c(E) || m(E) || p(E) ? he : t[E], M = () => A(n), i = () => A(n + a);
|
|
80
80
|
function d() {
|
|
81
|
-
return a = 0,
|
|
81
|
+
return a = 0, y(n) && (s++, l = 0), c(n) && n++, n++, l++, t[n];
|
|
82
82
|
}
|
|
83
83
|
function T() {
|
|
84
84
|
return c(n + a) && a++, a++, t[n + a];
|
|
@@ -124,21 +124,21 @@ function As(e, t = {}) {
|
|
|
124
124
|
braceNest: 0,
|
|
125
125
|
inLinked: !1,
|
|
126
126
|
text: ""
|
|
127
|
-
}, p = () => m, { onError:
|
|
128
|
-
function L(r, o, h, ...
|
|
127
|
+
}, p = () => m, { onError: y } = t;
|
|
128
|
+
function L(r, o, h, ...j) {
|
|
129
129
|
const re = p();
|
|
130
|
-
if (o.column += h, o.offset += h,
|
|
130
|
+
if (o.column += h, o.offset += h, y) {
|
|
131
131
|
const X = n ? Dt(re.startLoc, o) : null, f = gt(r, X, {
|
|
132
132
|
domain: Cs,
|
|
133
|
-
args:
|
|
133
|
+
args: j
|
|
134
134
|
});
|
|
135
|
-
|
|
135
|
+
y(f);
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
function O(r, o, h) {
|
|
139
139
|
r.endLoc = a(), r.currentType = o;
|
|
140
|
-
const
|
|
141
|
-
return n && (
|
|
140
|
+
const j = { type: o };
|
|
141
|
+
return n && (j.loc = Dt(r.startLoc, r.endLoc)), h != null && (j.value = h), j;
|
|
142
142
|
}
|
|
143
143
|
const w = (r) => O(
|
|
144
144
|
r,
|
|
@@ -146,7 +146,7 @@ function As(e, t = {}) {
|
|
|
146
146
|
/* TokenTypes.EOF */
|
|
147
147
|
);
|
|
148
148
|
function V(r, o) {
|
|
149
|
-
return r.currentChar() === o ? (r.next(), o) : (L(
|
|
149
|
+
return r.currentChar() === o ? (r.next(), o) : (L(z.EXPECTED_TOKEN, a(), 0, o), "");
|
|
150
150
|
}
|
|
151
151
|
function A(r) {
|
|
152
152
|
let o = "";
|
|
@@ -177,15 +177,15 @@ function As(e, t = {}) {
|
|
|
177
177
|
if (h !== 2)
|
|
178
178
|
return !1;
|
|
179
179
|
A(r);
|
|
180
|
-
const
|
|
181
|
-
return r.resetPeek(),
|
|
180
|
+
const j = i(r.currentPeek());
|
|
181
|
+
return r.resetPeek(), j;
|
|
182
182
|
}
|
|
183
183
|
function _(r, o) {
|
|
184
184
|
const { currentType: h } = o;
|
|
185
185
|
if (h !== 2)
|
|
186
186
|
return !1;
|
|
187
187
|
A(r);
|
|
188
|
-
const
|
|
188
|
+
const j = r.currentPeek() === "-" ? r.peek() : r.currentPeek(), re = d(j);
|
|
189
189
|
return r.resetPeek(), re;
|
|
190
190
|
}
|
|
191
191
|
function D(r, o) {
|
|
@@ -193,41 +193,41 @@ function As(e, t = {}) {
|
|
|
193
193
|
if (h !== 2)
|
|
194
194
|
return !1;
|
|
195
195
|
A(r);
|
|
196
|
-
const
|
|
197
|
-
return r.resetPeek(),
|
|
196
|
+
const j = r.currentPeek() === nn;
|
|
197
|
+
return r.resetPeek(), j;
|
|
198
198
|
}
|
|
199
199
|
function S(r, o) {
|
|
200
200
|
const { currentType: h } = o;
|
|
201
201
|
if (h !== 7)
|
|
202
202
|
return !1;
|
|
203
203
|
A(r);
|
|
204
|
-
const
|
|
205
|
-
return r.resetPeek(),
|
|
204
|
+
const j = r.currentPeek() === ".";
|
|
205
|
+
return r.resetPeek(), j;
|
|
206
206
|
}
|
|
207
207
|
function E(r, o) {
|
|
208
208
|
const { currentType: h } = o;
|
|
209
209
|
if (h !== 8)
|
|
210
210
|
return !1;
|
|
211
211
|
A(r);
|
|
212
|
-
const
|
|
213
|
-
return r.resetPeek(),
|
|
212
|
+
const j = i(r.currentPeek());
|
|
213
|
+
return r.resetPeek(), j;
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function Y(r, o) {
|
|
216
216
|
const { currentType: h } = o;
|
|
217
217
|
if (!(h === 7 || h === 11))
|
|
218
218
|
return !1;
|
|
219
219
|
A(r);
|
|
220
|
-
const
|
|
221
|
-
return r.resetPeek(),
|
|
220
|
+
const j = r.currentPeek() === ":";
|
|
221
|
+
return r.resetPeek(), j;
|
|
222
222
|
}
|
|
223
223
|
function g(r, o) {
|
|
224
224
|
const { currentType: h } = o;
|
|
225
225
|
if (h !== 9)
|
|
226
226
|
return !1;
|
|
227
|
-
const
|
|
227
|
+
const j = () => {
|
|
228
228
|
const X = r.currentPeek();
|
|
229
|
-
return X === "{" ? i(r.peek()) : X === "@" || X === "|" || X === ":" || X === "." || X === Oe || !X ? !1 : X === he ? (r.peek(),
|
|
230
|
-
}, re =
|
|
229
|
+
return X === "{" ? i(r.peek()) : X === "@" || X === "|" || X === ":" || X === "." || X === Oe || !X ? !1 : X === he ? (r.peek(), j()) : R(r, !1);
|
|
230
|
+
}, re = j();
|
|
231
231
|
return r.resetPeek(), re;
|
|
232
232
|
}
|
|
233
233
|
function b(r) {
|
|
@@ -239,8 +239,8 @@ function As(e, t = {}) {
|
|
|
239
239
|
const h = (re = !1, X = "") => {
|
|
240
240
|
const f = r.currentPeek();
|
|
241
241
|
return f === "{" || f === "@" || !f ? re : f === "|" ? !(X === Oe || X === he) : f === Oe ? (r.peek(), h(!0, Oe)) : f === he ? (r.peek(), h(!0, he)) : !0;
|
|
242
|
-
},
|
|
243
|
-
return o && r.resetPeek(),
|
|
242
|
+
}, j = h();
|
|
243
|
+
return o && r.resetPeek(), j;
|
|
244
244
|
}
|
|
245
245
|
function I(r, o) {
|
|
246
246
|
const h = r.currentChar();
|
|
@@ -254,10 +254,10 @@ function As(e, t = {}) {
|
|
|
254
254
|
o === 95 || // _
|
|
255
255
|
o === 36;
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function x(r) {
|
|
258
258
|
return I(r, F);
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function N(r) {
|
|
261
261
|
const o = r.charCodeAt(0);
|
|
262
262
|
return o >= 97 && o <= 122 || // a-z
|
|
263
263
|
o >= 65 && o <= 90 || // A-Z
|
|
@@ -267,7 +267,7 @@ function As(e, t = {}) {
|
|
|
267
267
|
o === 45;
|
|
268
268
|
}
|
|
269
269
|
function C(r) {
|
|
270
|
-
return I(r,
|
|
270
|
+
return I(r, N);
|
|
271
271
|
}
|
|
272
272
|
function v(r) {
|
|
273
273
|
const o = r.charCodeAt(0);
|
|
@@ -282,7 +282,7 @@ function As(e, t = {}) {
|
|
|
282
282
|
o >= 65 && o <= 70 || // A-F
|
|
283
283
|
o >= 97 && o <= 102;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function U(r) {
|
|
286
286
|
return I(r, W);
|
|
287
287
|
}
|
|
288
288
|
function te(r) {
|
|
@@ -291,7 +291,7 @@ function As(e, t = {}) {
|
|
|
291
291
|
h += o;
|
|
292
292
|
return h;
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function B(r) {
|
|
295
295
|
let o = "";
|
|
296
296
|
for (; ; ) {
|
|
297
297
|
const h = r.currentChar();
|
|
@@ -315,23 +315,23 @@ function As(e, t = {}) {
|
|
|
315
315
|
let o = "", h = "";
|
|
316
316
|
for (; o = C(r); )
|
|
317
317
|
h += o;
|
|
318
|
-
return r.currentChar() === Ae && L(
|
|
318
|
+
return r.currentChar() === Ae && L(z.UNTERMINATED_CLOSING_BRACE, a(), 0), h;
|
|
319
319
|
}
|
|
320
320
|
function fe(r) {
|
|
321
321
|
M(r);
|
|
322
322
|
let o = "";
|
|
323
|
-
return r.currentChar() === "-" ? (r.next(), o += `-${te(r)}`) : o += te(r), r.currentChar() === Ae && L(
|
|
323
|
+
return r.currentChar() === "-" ? (r.next(), o += `-${te(r)}`) : o += te(r), r.currentChar() === Ae && L(z.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function H(r) {
|
|
326
326
|
return r !== nn && r !== he;
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function Z(r) {
|
|
329
329
|
M(r), V(r, "'");
|
|
330
330
|
let o = "", h = "";
|
|
331
|
-
for (; o = I(r,
|
|
331
|
+
for (; o = I(r, H); )
|
|
332
332
|
o === "\\" ? h += Ee(r) : h += o;
|
|
333
|
-
const
|
|
334
|
-
return
|
|
333
|
+
const j = r.currentChar();
|
|
334
|
+
return j === he || j === Ae ? (L(z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), j === he && (r.next(), V(r, "'")), h) : (V(r, "'"), h);
|
|
335
335
|
}
|
|
336
336
|
function Ee(r) {
|
|
337
337
|
const o = r.currentChar();
|
|
@@ -344,21 +344,21 @@ function As(e, t = {}) {
|
|
|
344
344
|
case "U":
|
|
345
345
|
return $e(r, o, 6);
|
|
346
346
|
default:
|
|
347
|
-
return L(
|
|
347
|
+
return L(z.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
function $e(r, o, h) {
|
|
351
351
|
V(r, o);
|
|
352
|
-
let
|
|
352
|
+
let j = "";
|
|
353
353
|
for (let re = 0; re < h; re++) {
|
|
354
|
-
const X =
|
|
354
|
+
const X = U(r);
|
|
355
355
|
if (!X) {
|
|
356
|
-
L(
|
|
356
|
+
L(z.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${j}${r.currentChar()}`);
|
|
357
357
|
break;
|
|
358
358
|
}
|
|
359
|
-
|
|
359
|
+
j += X;
|
|
360
360
|
}
|
|
361
|
-
return `\\${o}${
|
|
361
|
+
return `\\${o}${j}`;
|
|
362
362
|
}
|
|
363
363
|
function Je(r) {
|
|
364
364
|
return r !== "{" && r !== "}" && r !== Oe && r !== he;
|
|
@@ -370,20 +370,20 @@ function As(e, t = {}) {
|
|
|
370
370
|
h += o;
|
|
371
371
|
return h;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function Nt(r) {
|
|
374
374
|
let o = "", h = "";
|
|
375
|
-
for (; o =
|
|
375
|
+
for (; o = x(r); )
|
|
376
376
|
h += o;
|
|
377
377
|
return h;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function yt(r) {
|
|
380
380
|
const o = (h) => {
|
|
381
|
-
const
|
|
382
|
-
return
|
|
381
|
+
const j = r.currentChar();
|
|
382
|
+
return j === "{" || j === "@" || j === "|" || j === "(" || j === ")" || !j || j === Oe ? h : (h += j, r.next(), o(h));
|
|
383
383
|
};
|
|
384
384
|
return o("");
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function Ke(r) {
|
|
387
387
|
M(r);
|
|
388
388
|
const o = V(
|
|
389
389
|
r,
|
|
@@ -392,39 +392,39 @@ function As(e, t = {}) {
|
|
|
392
392
|
);
|
|
393
393
|
return M(r), o;
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function je(r, o) {
|
|
396
396
|
let h = null;
|
|
397
397
|
switch (r.currentChar()) {
|
|
398
398
|
case "{":
|
|
399
|
-
return o.braceNest >= 1 && L(
|
|
399
|
+
return o.braceNest >= 1 && L(z.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), r.next(), h = O(
|
|
400
400
|
o,
|
|
401
401
|
2,
|
|
402
402
|
"{"
|
|
403
403
|
/* TokenChars.BraceLeft */
|
|
404
404
|
), M(r), o.braceNest++, h;
|
|
405
405
|
case "}":
|
|
406
|
-
return o.braceNest > 0 && o.currentType === 2 && L(
|
|
406
|
+
return o.braceNest > 0 && o.currentType === 2 && L(z.EMPTY_PLACEHOLDER, a(), 0), r.next(), h = O(
|
|
407
407
|
o,
|
|
408
408
|
3,
|
|
409
409
|
"}"
|
|
410
410
|
/* TokenChars.BraceRight */
|
|
411
411
|
), o.braceNest--, o.braceNest > 0 && M(r), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), h;
|
|
412
412
|
case "@":
|
|
413
|
-
return o.braceNest > 0 && L(
|
|
413
|
+
return o.braceNest > 0 && L(z.UNTERMINATED_CLOSING_BRACE, a(), 0), h = Ve(r, o) || w(o), o.braceNest = 0, h;
|
|
414
414
|
default: {
|
|
415
415
|
let re = !0, X = !0, f = !0;
|
|
416
416
|
if (b(r))
|
|
417
|
-
return o.braceNest > 0 && L(
|
|
417
|
+
return o.braceNest > 0 && L(z.UNTERMINATED_CLOSING_BRACE, a(), 0), h = O(o, 1, Ke(r)), o.braceNest = 0, o.inLinked = !1, h;
|
|
418
418
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
419
|
-
return L(
|
|
419
|
+
return L(z.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, ze(r, o);
|
|
420
420
|
if (re = T(r, o))
|
|
421
421
|
return h = O(o, 4, be(r)), M(r), h;
|
|
422
422
|
if (X = _(r, o))
|
|
423
423
|
return h = O(o, 5, fe(r)), M(r), h;
|
|
424
424
|
if (f = D(r, o))
|
|
425
|
-
return h = O(o, 6,
|
|
425
|
+
return h = O(o, 6, Z(r)), M(r), h;
|
|
426
426
|
if (!re && !X && !f)
|
|
427
|
-
return h = O(o, 12, It(r)), L(
|
|
427
|
+
return h = O(o, 12, It(r)), L(z.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, h.value), M(r), h;
|
|
428
428
|
break;
|
|
429
429
|
}
|
|
430
430
|
}
|
|
@@ -432,16 +432,16 @@ function As(e, t = {}) {
|
|
|
432
432
|
}
|
|
433
433
|
function Ve(r, o) {
|
|
434
434
|
const { currentType: h } = o;
|
|
435
|
-
let
|
|
435
|
+
let j = null;
|
|
436
436
|
const re = r.currentChar();
|
|
437
|
-
switch ((h === 7 || h === 8 || h === 11 || h === 9) && (re === he || re === Oe) && L(
|
|
437
|
+
switch ((h === 7 || h === 8 || h === 11 || h === 9) && (re === he || re === Oe) && L(z.INVALID_LINKED_FORMAT, a(), 0), re) {
|
|
438
438
|
case "@":
|
|
439
|
-
return r.next(),
|
|
439
|
+
return r.next(), j = O(
|
|
440
440
|
o,
|
|
441
441
|
7,
|
|
442
442
|
"@"
|
|
443
443
|
/* TokenChars.LinkedAlias */
|
|
444
|
-
), o.inLinked = !0,
|
|
444
|
+
), o.inLinked = !0, j;
|
|
445
445
|
case ".":
|
|
446
446
|
return M(r), r.next(), O(
|
|
447
447
|
o,
|
|
@@ -457,23 +457,23 @@ function As(e, t = {}) {
|
|
|
457
457
|
/* TokenChars.LinkedDelimiter */
|
|
458
458
|
);
|
|
459
459
|
default:
|
|
460
|
-
return b(r) ? (
|
|
460
|
+
return b(r) ? (j = O(o, 1, Ke(r)), o.braceNest = 0, o.inLinked = !1, j) : S(r, o) || Y(r, o) ? (M(r), Ve(r, o)) : E(r, o) ? (M(r), O(o, 11, Nt(r))) : g(r, o) ? (M(r), re === "{" ? je(r, o) || j : O(o, 10, yt(r))) : (h === 7 && L(z.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, ze(r, o));
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function ze(r, o) {
|
|
464
464
|
let h = {
|
|
465
465
|
type: 13
|
|
466
466
|
/* TokenTypes.EOF */
|
|
467
467
|
};
|
|
468
468
|
if (o.braceNest > 0)
|
|
469
|
-
return
|
|
469
|
+
return je(r, o) || w(o);
|
|
470
470
|
if (o.inLinked)
|
|
471
471
|
return Ve(r, o) || w(o);
|
|
472
472
|
switch (r.currentChar()) {
|
|
473
473
|
case "{":
|
|
474
|
-
return
|
|
474
|
+
return je(r, o) || w(o);
|
|
475
475
|
case "}":
|
|
476
|
-
return L(
|
|
476
|
+
return L(z.UNBALANCED_CLOSING_BRACE, a(), 0), r.next(), O(
|
|
477
477
|
o,
|
|
478
478
|
3,
|
|
479
479
|
"}"
|
|
@@ -483,21 +483,21 @@ function As(e, t = {}) {
|
|
|
483
483
|
return Ve(r, o) || w(o);
|
|
484
484
|
default: {
|
|
485
485
|
if (b(r))
|
|
486
|
-
return h = O(o, 1,
|
|
486
|
+
return h = O(o, 1, Ke(r)), o.braceNest = 0, o.inLinked = !1, h;
|
|
487
487
|
if (R(r))
|
|
488
|
-
return O(o, 0,
|
|
488
|
+
return O(o, 0, B(r));
|
|
489
489
|
break;
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
492
|
return h;
|
|
493
493
|
}
|
|
494
494
|
function Tt() {
|
|
495
|
-
const { currentType: r, offset: o, startLoc: h, endLoc:
|
|
496
|
-
return m.lastType = r, m.lastOffset = o, m.lastStartLoc = h, m.lastEndLoc =
|
|
495
|
+
const { currentType: r, offset: o, startLoc: h, endLoc: j } = m;
|
|
496
|
+
return m.lastType = r, m.lastOffset = o, m.lastStartLoc = h, m.lastEndLoc = j, m.offset = l(), m.startLoc = a(), s.currentChar() === Ae ? O(
|
|
497
497
|
m,
|
|
498
498
|
13
|
|
499
499
|
/* TokenTypes.EOF */
|
|
500
|
-
) :
|
|
500
|
+
) : ze(s, m);
|
|
501
501
|
}
|
|
502
502
|
return {
|
|
503
503
|
nextToken: Tt,
|
|
@@ -524,11 +524,11 @@ function ws(e = {}) {
|
|
|
524
524
|
function s(i, d, T, _, ...D) {
|
|
525
525
|
const S = i.currentPosition();
|
|
526
526
|
if (S.offset += _, S.column += _, n) {
|
|
527
|
-
const E = t ? Dt(T, S) : null,
|
|
527
|
+
const E = t ? Dt(T, S) : null, Y = gt(d, E, {
|
|
528
528
|
domain: Ss,
|
|
529
529
|
args: D
|
|
530
530
|
});
|
|
531
|
-
n(
|
|
531
|
+
n(Y);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
function l(i, d, T) {
|
|
@@ -554,12 +554,12 @@ function ws(e = {}) {
|
|
|
554
554
|
const T = i.context(), { lastOffset: _, lastStartLoc: D } = T, S = l(9, _, D);
|
|
555
555
|
return S.value = d.replace(Ms, Ds), i.nextToken(), a(S, i.currentOffset(), i.currentPosition()), S;
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function y(i) {
|
|
558
558
|
const d = i.nextToken(), T = i.context(), { lastOffset: _, lastStartLoc: D } = T, S = l(8, _, D);
|
|
559
|
-
return d.type !== 11 ? (s(i,
|
|
559
|
+
return d.type !== 11 ? (s(i, z.UNEXPECTED_EMPTY_LINKED_MODIFIER, T.lastStartLoc, 0), S.value = "", a(S, _, D), {
|
|
560
560
|
nextConsumeToken: d,
|
|
561
561
|
node: S
|
|
562
|
-
}) : (d.value == null && s(i,
|
|
562
|
+
}) : (d.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, ye(d)), S.value = d.value || "", a(S, i.currentOffset(), i.currentPosition()), {
|
|
563
563
|
node: S
|
|
564
564
|
});
|
|
565
565
|
}
|
|
@@ -571,24 +571,24 @@ function ws(e = {}) {
|
|
|
571
571
|
const d = i.context(), T = l(6, d.offset, d.startLoc);
|
|
572
572
|
let _ = i.nextToken();
|
|
573
573
|
if (_.type === 8) {
|
|
574
|
-
const D =
|
|
574
|
+
const D = y(i);
|
|
575
575
|
T.modifier = D.node, _ = D.nextConsumeToken || i.nextToken();
|
|
576
576
|
}
|
|
577
|
-
switch (_.type !== 9 && s(i,
|
|
577
|
+
switch (_.type !== 9 && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ye(_)), _ = i.nextToken(), _.type === 2 && (_ = i.nextToken()), _.type) {
|
|
578
578
|
case 10:
|
|
579
|
-
_.value == null && s(i,
|
|
579
|
+
_.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ye(_)), T.key = L(i, _.value || "");
|
|
580
580
|
break;
|
|
581
581
|
case 4:
|
|
582
|
-
_.value == null && s(i,
|
|
582
|
+
_.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ye(_)), T.key = m(i, _.value || "");
|
|
583
583
|
break;
|
|
584
584
|
case 5:
|
|
585
|
-
_.value == null && s(i,
|
|
585
|
+
_.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ye(_)), T.key = u(i, _.value || "");
|
|
586
586
|
break;
|
|
587
587
|
case 6:
|
|
588
|
-
_.value == null && s(i,
|
|
588
|
+
_.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ye(_)), T.key = p(i, _.value || "");
|
|
589
589
|
break;
|
|
590
590
|
default: {
|
|
591
|
-
s(i,
|
|
591
|
+
s(i, z.UNEXPECTED_EMPTY_LINKED_KEY, d.lastStartLoc, 0);
|
|
592
592
|
const D = i.context(), S = l(7, D.offset, D.startLoc);
|
|
593
593
|
return S.value = "", a(S, D.offset, D.startLoc), T.key = S, a(T, D.offset, D.startLoc), {
|
|
594
594
|
nextConsumeToken: _,
|
|
@@ -608,16 +608,16 @@ function ws(e = {}) {
|
|
|
608
608
|
const g = S || i.nextToken();
|
|
609
609
|
switch (S = null, g.type) {
|
|
610
610
|
case 0:
|
|
611
|
-
g.value == null && s(i,
|
|
611
|
+
g.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ye(g)), D.items.push(c(i, g.value || ""));
|
|
612
612
|
break;
|
|
613
613
|
case 5:
|
|
614
|
-
g.value == null && s(i,
|
|
614
|
+
g.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ye(g)), D.items.push(u(i, g.value || ""));
|
|
615
615
|
break;
|
|
616
616
|
case 4:
|
|
617
|
-
g.value == null && s(i,
|
|
617
|
+
g.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ye(g)), D.items.push(m(i, g.value || ""));
|
|
618
618
|
break;
|
|
619
619
|
case 6:
|
|
620
|
-
g.value == null && s(i,
|
|
620
|
+
g.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ye(g)), D.items.push(p(i, g.value || ""));
|
|
621
621
|
break;
|
|
622
622
|
case 7: {
|
|
623
623
|
const b = O(i);
|
|
@@ -626,8 +626,8 @@ function ws(e = {}) {
|
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
628
|
} while (d.currentType !== 13 && d.currentType !== 1);
|
|
629
|
-
const E = d.currentType === 1 ? d.lastOffset : i.currentOffset(),
|
|
630
|
-
return a(D, E,
|
|
629
|
+
const E = d.currentType === 1 ? d.lastOffset : i.currentOffset(), Y = d.currentType === 1 ? d.lastEndLoc : i.currentPosition();
|
|
630
|
+
return a(D, E, Y), D;
|
|
631
631
|
}
|
|
632
632
|
function V(i, d, T, _) {
|
|
633
633
|
const D = i.context();
|
|
@@ -635,10 +635,10 @@ function ws(e = {}) {
|
|
|
635
635
|
const E = l(1, d, T);
|
|
636
636
|
E.cases = [], E.cases.push(_);
|
|
637
637
|
do {
|
|
638
|
-
const
|
|
639
|
-
S || (S =
|
|
638
|
+
const Y = w(i);
|
|
639
|
+
S || (S = Y.items.length === 0), E.cases.push(Y);
|
|
640
640
|
} while (D.currentType !== 13);
|
|
641
|
-
return S && s(i,
|
|
641
|
+
return S && s(i, z.MUST_HAVE_MESSAGES_IN_PLURAL, T, 0), a(E, i.currentOffset(), i.currentPosition()), E;
|
|
642
642
|
}
|
|
643
643
|
function A(i) {
|
|
644
644
|
const d = i.context(), { offset: T, startLoc: _ } = d, D = w(i);
|
|
@@ -646,11 +646,11 @@ function ws(e = {}) {
|
|
|
646
646
|
}
|
|
647
647
|
function M(i) {
|
|
648
648
|
const d = As(i, de({}, e)), T = d.context(), _ = l(0, T.offset, T.startLoc);
|
|
649
|
-
return t && _.loc && (_.loc.source = i), _.body = A(d), e.onCacheKey && (_.cacheKey = e.onCacheKey(i)), T.currentType !== 13 && s(d,
|
|
649
|
+
return t && _.loc && (_.loc.source = i), _.body = A(d), e.onCacheKey && (_.cacheKey = e.onCacheKey(i)), T.currentType !== 13 && s(d, z.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, i[T.offset] || ""), a(_, d.currentOffset(), d.currentPosition()), _;
|
|
650
650
|
}
|
|
651
651
|
return { parse: M };
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function ye(e) {
|
|
654
654
|
if (e.type === 13)
|
|
655
655
|
return "EOF";
|
|
656
656
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
@@ -665,9 +665,9 @@ function Ps(e, t = {}) {
|
|
|
665
665
|
}
|
|
666
666
|
function sn(e, t) {
|
|
667
667
|
for (let n = 0; n < e.length; n++)
|
|
668
|
-
|
|
668
|
+
Bt(e[n], t);
|
|
669
669
|
}
|
|
670
|
-
function
|
|
670
|
+
function Bt(e, t) {
|
|
671
671
|
switch (e.type) {
|
|
672
672
|
case 1:
|
|
673
673
|
sn(e.cases, t), t.helper(
|
|
@@ -679,7 +679,7 @@ function Ht(e, t) {
|
|
|
679
679
|
sn(e.items, t);
|
|
680
680
|
break;
|
|
681
681
|
case 6: {
|
|
682
|
-
|
|
682
|
+
Bt(e.key, t), t.helper(
|
|
683
683
|
"linked"
|
|
684
684
|
/* HelperNameMap.LINKED */
|
|
685
685
|
), t.helper(
|
|
@@ -713,11 +713,11 @@ function Fs(e, t = {}) {
|
|
|
713
713
|
n.helper(
|
|
714
714
|
"normalize"
|
|
715
715
|
/* HelperNameMap.NORMALIZE */
|
|
716
|
-
), e.body &&
|
|
716
|
+
), e.body && Bt(e.body, n);
|
|
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 ? an(t) : t.cases.forEach((n) => an(n)), e;
|
|
723
723
|
}
|
|
@@ -734,7 +734,7 @@ function an(e) {
|
|
|
734
734
|
t.push(s.value);
|
|
735
735
|
}
|
|
736
736
|
if (t.length === e.items.length) {
|
|
737
|
-
e.static =
|
|
737
|
+
e.static = Yt(t);
|
|
738
738
|
for (let n = 0; n < e.items.length; n++) {
|
|
739
739
|
const s = e.items[n];
|
|
740
740
|
(s.type === 3 || s.type === 9) && delete s.value;
|
|
@@ -789,7 +789,7 @@ function Ge(e) {
|
|
|
789
789
|
}
|
|
790
790
|
delete e.type;
|
|
791
791
|
}
|
|
792
|
-
function
|
|
792
|
+
function js(e, t) {
|
|
793
793
|
const { filename: n, breakLineCode: s, needIndent: l } = t, a = t.location !== !1, c = {
|
|
794
794
|
filename: n,
|
|
795
795
|
code: "",
|
|
@@ -810,7 +810,7 @@ function Us(e, t) {
|
|
|
810
810
|
const i = M ? s : "";
|
|
811
811
|
m(l ? i + " ".repeat(A) : i);
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function y(A = !0) {
|
|
814
814
|
const M = ++c.indentLevel;
|
|
815
815
|
A && p(M);
|
|
816
816
|
}
|
|
@@ -824,7 +824,7 @@ function Us(e, t) {
|
|
|
824
824
|
return {
|
|
825
825
|
context: u,
|
|
826
826
|
push: m,
|
|
827
|
-
indent:
|
|
827
|
+
indent: y,
|
|
828
828
|
deindent: L,
|
|
829
829
|
newline: O,
|
|
830
830
|
helper: (A) => `_${A}`,
|
|
@@ -862,14 +862,14 @@ function Gs(e, t) {
|
|
|
862
862
|
e.deindent(s()), e.push("])");
|
|
863
863
|
}
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function xs(e, t) {
|
|
866
866
|
t.body ? Xe(e, t.body) : e.push("null");
|
|
867
867
|
}
|
|
868
868
|
function Xe(e, t) {
|
|
869
869
|
const { helper: n } = e;
|
|
870
870
|
switch (t.type) {
|
|
871
871
|
case 0:
|
|
872
|
-
|
|
872
|
+
xs(e, t);
|
|
873
873
|
break;
|
|
874
874
|
case 1:
|
|
875
875
|
Gs(e, t);
|
|
@@ -912,16 +912,16 @@ function Xe(e, t) {
|
|
|
912
912
|
break;
|
|
913
913
|
}
|
|
914
914
|
}
|
|
915
|
-
const
|
|
915
|
+
const Zs = (e, t = {}) => {
|
|
916
916
|
const n = P(t.mode) ? t.mode : "normal", s = P(t.filename) ? t.filename : "message.intl";
|
|
917
917
|
t.sourceMap;
|
|
918
918
|
const l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
919
|
-
`, a = t.needIndent ? t.needIndent : n !== "arrow", c = e.helpers || [], u =
|
|
919
|
+
`, a = t.needIndent ? t.needIndent : n !== "arrow", c = e.helpers || [], u = js(e, {
|
|
920
920
|
filename: s,
|
|
921
921
|
breakLineCode: l,
|
|
922
922
|
needIndent: a
|
|
923
923
|
});
|
|
924
|
-
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), c.length > 0 && (u.push(`const { ${
|
|
924
|
+
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), c.length > 0 && (u.push(`const { ${Yt(c.map((y) => `${y}: _${y}`), ", ")} } = ctx`), u.newline()), u.push("return "), Xe(u, e), u.deindent(a), u.push("}"), delete e.helpers;
|
|
925
925
|
const { code: m, map: p } = u.context();
|
|
926
926
|
return {
|
|
927
927
|
ast: e,
|
|
@@ -932,24 +932,24 @@ const xs = (e, t = {}) => {
|
|
|
932
932
|
};
|
|
933
933
|
function Xs(e, t = {}) {
|
|
934
934
|
const n = de({}, t), s = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize, u = ws(n).parse(e);
|
|
935
|
-
return s ? (a &&
|
|
935
|
+
return s ? (a && Us(u), l && Ge(u), { ast: u, code: "" }) : (Fs(u, n), Zs(u, n));
|
|
936
936
|
}
|
|
937
|
-
var
|
|
938
|
-
function
|
|
937
|
+
var Ys = { env: { NODE_ENV: "production" } };
|
|
938
|
+
function Bs() {
|
|
939
939
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Fe().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Fe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
940
940
|
}
|
|
941
941
|
function Rt(e) {
|
|
942
|
-
return (n) =>
|
|
942
|
+
return (n) => Hs(n, e);
|
|
943
943
|
}
|
|
944
|
-
function
|
|
944
|
+
function Hs(e, t) {
|
|
945
945
|
const n = Js(t);
|
|
946
946
|
if (n == null)
|
|
947
947
|
throw et(
|
|
948
948
|
0
|
|
949
949
|
/* NodeTypes.Resource */
|
|
950
950
|
);
|
|
951
|
-
if (
|
|
952
|
-
const a =
|
|
951
|
+
if (Ht(n) === 1) {
|
|
952
|
+
const a = zs(n);
|
|
953
953
|
return e.plural(a.reduce((c, u) => [
|
|
954
954
|
...c,
|
|
955
955
|
rn(e, u)
|
|
@@ -961,9 +961,9 @@ const $s = ["b", "body"];
|
|
|
961
961
|
function Js(e) {
|
|
962
962
|
return De(e, $s);
|
|
963
963
|
}
|
|
964
|
-
const
|
|
965
|
-
function
|
|
966
|
-
return De(e,
|
|
964
|
+
const Ks = ["c", "cases"];
|
|
965
|
+
function zs(e) {
|
|
966
|
+
return De(e, Ks, []);
|
|
967
967
|
}
|
|
968
968
|
function rn(e, t) {
|
|
969
969
|
const n = qs(t);
|
|
@@ -983,7 +983,7 @@ function ta(e) {
|
|
|
983
983
|
return De(e, ea, []);
|
|
984
984
|
}
|
|
985
985
|
function wt(e, t) {
|
|
986
|
-
const n =
|
|
986
|
+
const n = Ht(t);
|
|
987
987
|
switch (n) {
|
|
988
988
|
case 3:
|
|
989
989
|
return ot(t, n);
|
|
@@ -991,17 +991,17 @@ function wt(e, t) {
|
|
|
991
991
|
return ot(t, n);
|
|
992
992
|
case 4: {
|
|
993
993
|
const s = t;
|
|
994
|
-
if (
|
|
994
|
+
if (Ne(s, "k") && s.k)
|
|
995
995
|
return e.interpolate(e.named(s.k));
|
|
996
|
-
if (
|
|
996
|
+
if (Ne(s, "key") && s.key)
|
|
997
997
|
return e.interpolate(e.named(s.key));
|
|
998
998
|
throw et(n);
|
|
999
999
|
}
|
|
1000
1000
|
case 5: {
|
|
1001
1001
|
const s = t;
|
|
1002
|
-
if (
|
|
1002
|
+
if (Ne(s, "i") && me(s.i))
|
|
1003
1003
|
return e.interpolate(e.list(s.i));
|
|
1004
|
-
if (
|
|
1004
|
+
if (Ne(s, "index") && me(s.index))
|
|
1005
1005
|
return e.interpolate(e.list(s.index));
|
|
1006
1006
|
throw et(n);
|
|
1007
1007
|
}
|
|
@@ -1018,7 +1018,7 @@ function wt(e, t) {
|
|
|
1018
1018
|
}
|
|
1019
1019
|
}
|
|
1020
1020
|
const na = ["t", "type"];
|
|
1021
|
-
function
|
|
1021
|
+
function Ht(e) {
|
|
1022
1022
|
return De(e, na);
|
|
1023
1023
|
}
|
|
1024
1024
|
const sa = ["v", "value"];
|
|
@@ -1045,7 +1045,7 @@ function oa(e) {
|
|
|
1045
1045
|
function De(e, t, n) {
|
|
1046
1046
|
for (let s = 0; s < t.length; s++) {
|
|
1047
1047
|
const l = t[s];
|
|
1048
|
-
if (
|
|
1048
|
+
if (Ne(e, l) && e[l] != null)
|
|
1049
1049
|
return e[l];
|
|
1050
1050
|
}
|
|
1051
1051
|
return n;
|
|
@@ -1055,12 +1055,12 @@ function et(e) {
|
|
|
1055
1055
|
}
|
|
1056
1056
|
const ia = (e) => e;
|
|
1057
1057
|
let it = ee();
|
|
1058
|
-
function
|
|
1059
|
-
return
|
|
1058
|
+
function Ye(e) {
|
|
1059
|
+
return K(e) && Ht(e) === 0 && (Ne(e, "b") || Ne(e, "body"));
|
|
1060
1060
|
}
|
|
1061
1061
|
function ca(e, t = {}) {
|
|
1062
1062
|
let n = !1;
|
|
1063
|
-
const s = t.onError ||
|
|
1063
|
+
const s = t.onError || ys;
|
|
1064
1064
|
return t.onError = (l) => {
|
|
1065
1065
|
n = !0, s(l);
|
|
1066
1066
|
}, { ...Xs(e, t), detectError: n };
|
|
@@ -1074,7 +1074,7 @@ function ua(e, t) {
|
|
|
1074
1074
|
return l;
|
|
1075
1075
|
const { ast: a, detectError: c } = ca(e, {
|
|
1076
1076
|
...t,
|
|
1077
|
-
location:
|
|
1077
|
+
location: Ys.env.NODE_ENV !== "production",
|
|
1078
1078
|
jit: !0
|
|
1079
1079
|
}), u = Rt(a);
|
|
1080
1080
|
return c ? u : it[s] = u;
|
|
@@ -1104,7 +1104,7 @@ function _a(e) {
|
|
|
1104
1104
|
return (t) => tt && tt.emit(e, t);
|
|
1105
1105
|
}
|
|
1106
1106
|
const Re = {
|
|
1107
|
-
INVALID_ARGUMENT:
|
|
1107
|
+
INVALID_ARGUMENT: Ns,
|
|
1108
1108
|
// 17
|
|
1109
1109
|
INVALID_DATE_ARGUMENT: 18,
|
|
1110
1110
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1138,7 +1138,7 @@ function ln(e) {
|
|
|
1138
1138
|
function ha(e, t, n) {
|
|
1139
1139
|
return [.../* @__PURE__ */ new Set([
|
|
1140
1140
|
n,
|
|
1141
|
-
...ce(t) ? t :
|
|
1141
|
+
...ce(t) ? t : K(t) ? Object.keys(t) : P(t) ? [t] : [n]
|
|
1142
1142
|
])];
|
|
1143
1143
|
}
|
|
1144
1144
|
function Mn(e, t, n) {
|
|
@@ -1350,7 +1350,7 @@ function Ia(e) {
|
|
|
1350
1350
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1351
1351
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function Na(e) {
|
|
1354
1354
|
if (e == null)
|
|
1355
1355
|
return "o";
|
|
1356
1356
|
switch (e.charCodeAt(0)) {
|
|
@@ -1375,13 +1375,13 @@ function ya(e) {
|
|
|
1375
1375
|
}
|
|
1376
1376
|
return "i";
|
|
1377
1377
|
}
|
|
1378
|
-
function
|
|
1378
|
+
function ya(e) {
|
|
1379
1379
|
const t = e.trim();
|
|
1380
1380
|
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Ea(t) ? Ia(t) : "*" + t;
|
|
1381
1381
|
}
|
|
1382
1382
|
function Ta(e) {
|
|
1383
1383
|
const t = [];
|
|
1384
|
-
let n = -1, s = 0, l = 0, a, c, u, m, p,
|
|
1384
|
+
let n = -1, s = 0, l = 0, a, c, u, m, p, y, L;
|
|
1385
1385
|
const O = [];
|
|
1386
1386
|
O[
|
|
1387
1387
|
0
|
|
@@ -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 = ya(c), c === !1))
|
|
1415
1415
|
return !1;
|
|
1416
1416
|
O[
|
|
1417
1417
|
1
|
|
@@ -1429,7 +1429,7 @@ function Ta(e) {
|
|
|
1429
1429
|
}
|
|
1430
1430
|
for (; s !== null; )
|
|
1431
1431
|
if (n++, a = e[n], !(a === "\\" && w())) {
|
|
1432
|
-
if (m =
|
|
1432
|
+
if (m = Na(a), L = we[s], p = L[m] || L.l || 8, p === 8 || (s = p[0], p[1] !== void 0 && (y = O[p[1]], y && (u = a, y() === !1))))
|
|
1433
1433
|
return;
|
|
1434
1434
|
if (s === 7)
|
|
1435
1435
|
return t;
|
|
@@ -1437,10 +1437,10 @@ function Ta(e) {
|
|
|
1437
1437
|
}
|
|
1438
1438
|
const cn = /* @__PURE__ */ new Map();
|
|
1439
1439
|
function ka(e, t) {
|
|
1440
|
-
return
|
|
1440
|
+
return K(e) ? e[t] : null;
|
|
1441
1441
|
}
|
|
1442
1442
|
function Oa(e, t) {
|
|
1443
|
-
if (!
|
|
1443
|
+
if (!K(e))
|
|
1444
1444
|
return null;
|
|
1445
1445
|
let n = cn.get(t);
|
|
1446
1446
|
if (n || (n = Ta(t), n && cn.set(t, n)), !n)
|
|
@@ -1458,9 +1458,9 @@ function Oa(e, t) {
|
|
|
1458
1458
|
const La = "10.0.5", vt = -1, pt = "en-US", un = "", mn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1459
1459
|
function Ra() {
|
|
1460
1460
|
return {
|
|
1461
|
-
upper: (e, t) => t === "text" && P(e) ? e.toUpperCase() : t === "vnode" &&
|
|
1462
|
-
lower: (e, t) => t === "text" && P(e) ? e.toLowerCase() : t === "vnode" &&
|
|
1463
|
-
capitalize: (e, t) => t === "text" && P(e) ? mn(e) : t === "vnode" &&
|
|
1461
|
+
upper: (e, t) => t === "text" && P(e) ? e.toUpperCase() : t === "vnode" && K(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1462
|
+
lower: (e, t) => t === "text" && P(e) ? e.toLowerCase() : t === "vnode" && K(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1463
|
+
capitalize: (e, t) => t === "text" && P(e) ? mn(e) : t === "vnode" && K(e) && "__v_isVNode" in e ? mn(e.children) : e
|
|
1464
1464
|
};
|
|
1465
1465
|
}
|
|
1466
1466
|
let Dn;
|
|
@@ -1479,13 +1479,13 @@ let Fn = null;
|
|
|
1479
1479
|
const Ma = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1480
1480
|
Fn = e;
|
|
1481
1481
|
}, Da = /* @__NO_SIDE_EFFECTS__ */ () => Fn;
|
|
1482
|
-
let
|
|
1482
|
+
let Un = null;
|
|
1483
1483
|
const dn = (e) => {
|
|
1484
|
-
|
|
1485
|
-
}, wa = () =>
|
|
1484
|
+
Un = e;
|
|
1485
|
+
}, wa = () => Un;
|
|
1486
1486
|
let fn = 0;
|
|
1487
1487
|
function Pa(e = {}) {
|
|
1488
|
-
const t = ae(e.onWarn) ? e.onWarn : Es, n = P(e.version) ? e.version : La, s = P(e.locale) || ae(e.locale) ? e.locale : pt, l = ae(s) ? pt : s, a = ce(e.fallbackLocale) || J(e.fallbackLocale) || P(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, c = J(e.messages) ? e.messages : At(l), u = J(e.datetimeFormats) ? e.datetimeFormats : At(l), m = J(e.numberFormats) ? e.numberFormats : At(l), p = de(ee(), e.modifiers, Ra()),
|
|
1488
|
+
const t = ae(e.onWarn) ? e.onWarn : Es, n = P(e.version) ? e.version : La, s = P(e.locale) || ae(e.locale) ? e.locale : pt, l = ae(s) ? pt : s, a = ce(e.fallbackLocale) || J(e.fallbackLocale) || P(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, c = J(e.messages) ? e.messages : At(l), u = J(e.datetimeFormats) ? e.datetimeFormats : At(l), m = J(e.numberFormats) ? e.numberFormats : At(l), p = de(ee(), e.modifiers, Ra()), y = e.pluralRules || ee(), L = ae(e.missing) ? e.missing : null, O = ie(e.missingWarn) || _t(e.missingWarn) ? e.missingWarn : !0, w = ie(e.fallbackWarn) || _t(e.fallbackWarn) ? e.fallbackWarn : !0, V = !!e.fallbackFormat, A = !!e.unresolving, M = ae(e.postTranslation) ? e.postTranslation : null, i = J(e.processor) ? e.processor : null, d = ie(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, T = !!e.escapeParameter, _ = ae(e.messageCompiler) ? e.messageCompiler : Dn, D = ae(e.messageResolver) ? e.messageResolver : wn || ka, S = ae(e.localeFallbacker) ? e.localeFallbacker : Pn || ha, E = K(e.fallbackContext) ? e.fallbackContext : void 0, Y = e, g = K(Y.__datetimeFormatters) ? Y.__datetimeFormatters : /* @__PURE__ */ new Map(), b = K(Y.__numberFormatters) ? Y.__numberFormatters : /* @__PURE__ */ new Map(), R = K(Y.__meta) ? Y.__meta : {};
|
|
1489
1489
|
fn++;
|
|
1490
1490
|
const I = {
|
|
1491
1491
|
version: n,
|
|
@@ -1494,7 +1494,7 @@ function Pa(e = {}) {
|
|
|
1494
1494
|
fallbackLocale: a,
|
|
1495
1495
|
messages: c,
|
|
1496
1496
|
modifiers: p,
|
|
1497
|
-
pluralRules:
|
|
1497
|
+
pluralRules: y,
|
|
1498
1498
|
missing: L,
|
|
1499
1499
|
missingWarn: O,
|
|
1500
1500
|
fallbackWarn: w,
|
|
@@ -1529,7 +1529,7 @@ function Qe(e, t, n) {
|
|
|
1529
1529
|
function Fa(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;
|
|
@@ -1539,9 +1539,9 @@ function ja(e, t) {
|
|
|
1539
1539
|
return !1;
|
|
1540
1540
|
}
|
|
1541
1541
|
function _n(e, ...t) {
|
|
1542
|
-
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __datetimeFormatters: u } = e, [m, p,
|
|
1543
|
-
ie(
|
|
1544
|
-
const w = !!
|
|
1542
|
+
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __datetimeFormatters: u } = e, [m, p, y, L] = Pt(...t), O = ie(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1543
|
+
ie(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1544
|
+
const w = !!y.part, V = $t(e, y), A = c(
|
|
1545
1545
|
e,
|
|
1546
1546
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1547
1547
|
l,
|
|
@@ -1560,7 +1560,7 @@ function _n(e, ...t) {
|
|
|
1560
1560
|
let D = u.get(_);
|
|
1561
1561
|
return D || (D = new Intl.DateTimeFormat(i, de({}, d, L)), u.set(_, D)), w ? D.formatToParts(p) : D.format(p);
|
|
1562
1562
|
}
|
|
1563
|
-
const
|
|
1563
|
+
const jn = [
|
|
1564
1564
|
"localeMatcher",
|
|
1565
1565
|
"weekday",
|
|
1566
1566
|
"era",
|
|
@@ -1605,7 +1605,7 @@ function Pt(...e) {
|
|
|
1605
1605
|
else
|
|
1606
1606
|
throw Ce(Re.INVALID_ARGUMENT);
|
|
1607
1607
|
return P(n) ? a.key = n : J(n) && Object.keys(n).forEach((m) => {
|
|
1608
|
-
|
|
1608
|
+
jn.includes(m) ? c[m] = n[m] : a[m] = n[m];
|
|
1609
1609
|
}), P(s) ? a.locale = s : J(s) && (c = s), J(l) && (c = l), [a.key || "", u, a, c];
|
|
1610
1610
|
}
|
|
1611
1611
|
function pn(e, t, n) {
|
|
@@ -1616,9 +1616,9 @@ function pn(e, t, n) {
|
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
1618
1618
|
function hn(e, ...t) {
|
|
1619
|
-
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __numberFormatters: u } = e, [m, p,
|
|
1620
|
-
ie(
|
|
1621
|
-
const w = !!
|
|
1619
|
+
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __numberFormatters: u } = e, [m, p, y, L] = Ft(...t), O = ie(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1620
|
+
ie(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1621
|
+
const w = !!y.part, V = $t(e, y), A = c(
|
|
1622
1622
|
e,
|
|
1623
1623
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1624
1624
|
l,
|
|
@@ -1676,40 +1676,40 @@ function bn(e, t, n) {
|
|
|
1676
1676
|
s.__numberFormatters.has(a) && s.__numberFormatters.delete(a);
|
|
1677
1677
|
}
|
|
1678
1678
|
}
|
|
1679
|
-
const
|
|
1679
|
+
const ja = (e) => e, Va = (e) => "", Wa = "text", Ga = (e) => e.length === 0 ? "" : Yt(e), xa = vs;
|
|
1680
1680
|
function gn(e, t) {
|
|
1681
1681
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1682
1682
|
}
|
|
1683
|
-
function
|
|
1683
|
+
function Za(e) {
|
|
1684
1684
|
const t = me(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1685
1685
|
return e.named && (me(e.named.count) || me(e.named.n)) ? me(e.named.count) ? e.named.count : me(e.named.n) ? e.named.n : t : t;
|
|
1686
1686
|
}
|
|
1687
1687
|
function Xa(e, t) {
|
|
1688
1688
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1689
1689
|
}
|
|
1690
|
-
function
|
|
1691
|
-
const t = e.locale, n =
|
|
1690
|
+
function Ya(e = {}) {
|
|
1691
|
+
const t = e.locale, n = Za(e), s = K(e.pluralRules) && P(t) && ae(e.pluralRules[t]) ? e.pluralRules[t] : gn, l = K(e.pluralRules) && P(t) && ae(e.pluralRules[t]) ? gn : void 0, a = (i) => i[s(n, i.length, l)], c = e.list || [], u = (i) => c[i], m = e.named || ee();
|
|
1692
1692
|
me(e.pluralIndex) && Xa(n, m);
|
|
1693
1693
|
const p = (i) => m[i];
|
|
1694
|
-
function
|
|
1695
|
-
const T = ae(e.messages) ? e.messages(i, !!d) :
|
|
1694
|
+
function y(i, d) {
|
|
1695
|
+
const T = ae(e.messages) ? e.messages(i, !!d) : K(e.messages) ? e.messages[i] : !1;
|
|
1696
1696
|
return T || (e.parent ? e.parent.message(i) : Va);
|
|
1697
1697
|
}
|
|
1698
|
-
const L = (i) => e.modifiers ? e.modifiers[i] :
|
|
1698
|
+
const L = (i) => e.modifiers ? e.modifiers[i] : ja, O = J(e.processor) && ae(e.processor.normalize) ? e.processor.normalize : Ga, w = J(e.processor) && ae(e.processor.interpolate) ? e.processor.interpolate : xa, V = J(e.processor) && P(e.processor.type) ? e.processor.type : Wa, M = {
|
|
1699
1699
|
list: u,
|
|
1700
1700
|
named: p,
|
|
1701
1701
|
plural: a,
|
|
1702
1702
|
linked: (i, ...d) => {
|
|
1703
1703
|
const [T, _] = d;
|
|
1704
1704
|
let D = "text", S = "";
|
|
1705
|
-
d.length === 1 ?
|
|
1706
|
-
const E =
|
|
1705
|
+
d.length === 1 ? K(T) ? (S = T.modifier || S, D = T.type || D) : P(T) && (S = T || S) : d.length === 2 && (P(T) && (S = T || S), P(_) && (D = _ || D));
|
|
1706
|
+
const E = y(i, !0)(M), Y = (
|
|
1707
1707
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1708
1708
|
D === "vnode" && ce(E) && S ? E[0] : E
|
|
1709
1709
|
);
|
|
1710
|
-
return S ? L(S)(
|
|
1710
|
+
return S ? L(S)(Y, D) : Y;
|
|
1711
1711
|
},
|
|
1712
|
-
message:
|
|
1712
|
+
message: y,
|
|
1713
1713
|
type: V,
|
|
1714
1714
|
interpolate: w,
|
|
1715
1715
|
normalize: O,
|
|
@@ -1719,22 +1719,22 @@ function Za(e = {}) {
|
|
|
1719
1719
|
}
|
|
1720
1720
|
const vn = () => "", ve = (e) => ae(e);
|
|
1721
1721
|
function En(e, ...t) {
|
|
1722
|
-
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: c, messages: u } = e, [m, p] =
|
|
1723
|
-
O &&
|
|
1722
|
+
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: c, messages: u } = e, [m, p] = Ut(...t), y = ie(p.missingWarn) ? p.missingWarn : e.missingWarn, L = ie(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, O = ie(p.escapeParameter) ? p.escapeParameter : e.escapeParameter, w = !!p.resolvedMessage, V = P(p.default) || ie(p.default) ? ie(p.default) ? a ? m : () => m : p.default : n ? a ? m : () => m : null, A = n || V != null && (P(V) || ae(V)), M = $t(e, p);
|
|
1723
|
+
O && Ba(p);
|
|
1724
1724
|
let [i, d, T] = w ? [
|
|
1725
1725
|
m,
|
|
1726
1726
|
M,
|
|
1727
1727
|
u[M] || ee()
|
|
1728
|
-
] : Wn(e, m, M, c, L,
|
|
1729
|
-
if (!w && !(P(_) ||
|
|
1728
|
+
] : Wn(e, m, M, c, L, y), _ = i, D = m;
|
|
1729
|
+
if (!w && !(P(_) || Ye(_) || ve(_)) && A && (_ = V, D = _), !w && (!(P(_) || Ye(_) || ve(_)) || !P(d)))
|
|
1730
1730
|
return l ? vt : m;
|
|
1731
1731
|
let S = !1;
|
|
1732
1732
|
const E = () => {
|
|
1733
1733
|
S = !0;
|
|
1734
|
-
},
|
|
1734
|
+
}, Y = ve(_) ? _ : Gn(e, m, d, _, D, E);
|
|
1735
1735
|
if (S)
|
|
1736
1736
|
return _;
|
|
1737
|
-
const g = Ja(e, d, T, p), b =
|
|
1737
|
+
const g = Ja(e, d, T, p), b = Ya(g), R = Ha(e, Y, b), I = s ? s(R, m) : R;
|
|
1738
1738
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1739
1739
|
const F = {
|
|
1740
1740
|
timestamp: Date.now(),
|
|
@@ -1747,17 +1747,17 @@ function En(e, ...t) {
|
|
|
1747
1747
|
}
|
|
1748
1748
|
return I;
|
|
1749
1749
|
}
|
|
1750
|
-
function
|
|
1751
|
-
ce(e.list) ? e.list = e.list.map((t) => P(t) ? tn(t) : t) :
|
|
1750
|
+
function Ba(e) {
|
|
1751
|
+
ce(e.list) ? e.list = e.list.map((t) => P(t) ? tn(t) : t) : K(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1752
1752
|
P(e.named[t]) && (e.named[t] = tn(e.named[t]));
|
|
1753
1753
|
});
|
|
1754
1754
|
}
|
|
1755
1755
|
function Wn(e, t, n, s, l, a) {
|
|
1756
|
-
const { messages: c, onWarn: u, messageResolver: m, localeFallbacker: p } = e,
|
|
1756
|
+
const { messages: c, onWarn: u, messageResolver: m, localeFallbacker: p } = e, y = p(e, s, n);
|
|
1757
1757
|
let L = ee(), O, w = null;
|
|
1758
1758
|
const V = "translate";
|
|
1759
|
-
for (let A = 0; A <
|
|
1760
|
-
if (!
|
|
1759
|
+
for (let A = 0; A < y.length && (O = y[A], L = c[O] || ee(), (w = m(L, t)) === null && (w = L[t]), !(P(w) || Ye(w) || ve(w))); A++)
|
|
1760
|
+
if (!Ua(O, y)) {
|
|
1761
1761
|
const M = Jt(
|
|
1762
1762
|
e,
|
|
1763
1763
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -1783,12 +1783,12 @@ function Gn(e, t, n, s, l, a) {
|
|
|
1783
1783
|
const m = c(s, $a(e, n, l, s, u, a));
|
|
1784
1784
|
return m.locale = n, m.key = t, m.source = s, m;
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1786
|
+
function Ha(e, t, n) {
|
|
1787
1787
|
return t(n);
|
|
1788
1788
|
}
|
|
1789
|
-
function
|
|
1789
|
+
function Ut(...e) {
|
|
1790
1790
|
const [t, n, s] = e, l = ee();
|
|
1791
|
-
if (!P(t) && !me(t) && !ve(t) && !
|
|
1791
|
+
if (!P(t) && !me(t) && !ve(t) && !Ye(t))
|
|
1792
1792
|
throw Ce(Re.INVALID_ARGUMENT);
|
|
1793
1793
|
const a = me(t) ? String(t) : (ve(t), t);
|
|
1794
1794
|
return me(n) ? l.plural = n : P(n) ? l.default = n : J(n) && !bt(n) ? l.named = n : ce(n) && (l.list = n), me(s) ? l.plural = s : P(s) ? l.default = s : J(s) && de(l, s), [a, l];
|
|
@@ -1805,15 +1805,15 @@ function $a(e, t, n, s, l, a) {
|
|
|
1805
1805
|
};
|
|
1806
1806
|
}
|
|
1807
1807
|
function Ja(e, t, n, s) {
|
|
1808
|
-
const { modifiers: l, pluralRules: a, messageResolver: c, fallbackLocale: u, fallbackWarn: m, missingWarn: p, fallbackContext:
|
|
1808
|
+
const { modifiers: l, pluralRules: a, messageResolver: c, fallbackLocale: u, fallbackWarn: m, missingWarn: p, fallbackContext: y } = e, O = {
|
|
1809
1809
|
locale: t,
|
|
1810
1810
|
modifiers: l,
|
|
1811
1811
|
pluralRules: a,
|
|
1812
1812
|
messages: (w, V) => {
|
|
1813
1813
|
let A = c(n, w);
|
|
1814
|
-
if (A == null && (
|
|
1814
|
+
if (A == null && (y || V)) {
|
|
1815
1815
|
const [, , M] = Wn(
|
|
1816
|
-
|
|
1816
|
+
y || e,
|
|
1817
1817
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1818
1818
|
w,
|
|
1819
1819
|
t,
|
|
@@ -1823,7 +1823,7 @@ function Ja(e, t, n, s) {
|
|
|
1823
1823
|
);
|
|
1824
1824
|
A = c(M, w);
|
|
1825
1825
|
}
|
|
1826
|
-
if (P(A) ||
|
|
1826
|
+
if (P(A) || Ye(A)) {
|
|
1827
1827
|
let M = !1;
|
|
1828
1828
|
const d = Gn(e, w, t, A, w, () => {
|
|
1829
1829
|
M = !0;
|
|
@@ -1834,13 +1834,13 @@ function Ja(e, t, n, s) {
|
|
|
1834
1834
|
};
|
|
1835
1835
|
return e.processor && (O.processor = e.processor), s.list && (O.list = s.list), s.named && (O.named = s.named), me(s.plural) && (O.pluralIndex = s.plural), O;
|
|
1836
1836
|
}
|
|
1837
|
-
|
|
1838
|
-
var za = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_5ff3531e-a11c-4bff-9bc2-baec05455390", 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_5ff3531e-a11c-4bff-9bc2-baec05455390", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.2.0", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_files_0: "dist", npm_package_devDependencies_eslint_import_resolver_typescript: "^4.4.4", HOME: "/home/runner", npm_package_devDependencies__eslint_js: "^9.39.2", npm_package_devDependencies__typescript_eslint_parser: "^8.52.0", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_devDependencies_eslint_config_prettier: "^10.1.8", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.5.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "^1.29.10", npm_package_devDependencies_code_inspector_plugin: "^0.20.16", npm_package_devDependencies_npm_run_all2: "^6.0.6", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1867", ACTIONS_ORCHESTRATION_ID: "40785e69-6003-48d8-af78-8d42c8c97343.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: "20260607.184.1", npm_package_scripts_dev: "vite", npm_package_devDependencies_prettier: "^3.7.4", npm_package_devDependencies_sass_embedded: "^1.93.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_devDependencies__vue_tsconfig: "^0.4.0", npm_package_devDependencies_eslint_plugin_import: "^2.32.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:15551", 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.11/x64", GITHUB_RUN_ID: "27624720475", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "8aceaa529e8f472c1e110db5e8fd1c5fa7e64962", 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.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6M31dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3ODE2NDIyMDAsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc4MTYyMDAwMCwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjMxMTA3YTRiLTJmYTEtNWE2Zi1iZjBjLTMwYjk5MzRjOGRkMiIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc4MTYxOTcwMCwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI4MTY4MzA4MjgxNFwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiNTg1MGMwNzlhYmVhY2JmZmFiNDU5NGJhMWE3Y2YzMTM0NjZkNzQzM1wiLFwicmVmXCI6XCJyZWZzL2hlYWRzL21haW5cIixcInJlZl9wcm90ZWN0ZWRcIjpcInRydWVcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIyNzYyNDcyMDQ3NVwiLFwicnVuX251bWJlclwiOlwiMTE3XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiOGFjZWFhNTI5ZThmNDcyYzFlMTEwZGI1ZThmZDFjNWZhN2U2NDk2MlwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvbWFpblwiLFwid29ya2Zsb3dfc2hhXCI6XCI4YWNlYWE1MjllOGY0NzJjMWUxMTBkYjVlOGZkMWM1ZmE3ZTY0OTYyXCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9tYWluIiwib3JjaF9pZCI6IjQwNzg1ZTY5LTYwMDMtNDhkOC1hZjc4LThkNDJjOGM5NzM0My5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiNDA3ODVlNjktNjAwMy00OGQ4LWFmNzgtOGQ0MmM4Yzk3MzQzIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMjc2MjQ3MjA0NzUiLCJydW5fbnVtYmVyIjoiMTE3IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDA3ODA1MiIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjQwNzg1ZTY5LTYwMDMtNDhkOC1hZjc4LThkNDJjOGM5NzM0MzozMTEwN2E0Yi0yZmExLTVhNmYtYmYwYy0zMGI5OTM0YzhkZDIgQWN0aW9ucy5SdW5uZXI6NDA3ODVlNjktNjAwMy00OGQ4LWFmNzgtOGQ0MmM4Yzk3MzQzOjMxMTA3YTRiLTJmYTEtNWE2Zi1iZjBjLTMwYjk5MzRjOGRkMiBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czo0MDc4NWU2OS02MDAzLTQ4ZDgtYWY3OC04ZDQyYzhjOTczNDM6MzExMDdhNGItMmZhMS01YTZmLWJmMGMtMzBiOTkzNGM4ZGQyIGdlbmVyYXRlX2lkX3Rva2VuOjQwNzg1ZTY5LTYwMDMtNDhkOC1hZjc4LThkNDJjOGM5NzM0MzozMTEwN2E0Yi0yZmExLTVhNmYtYmYwYy0zMGI5OTM0YzhkZDIgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiI4YWNlYWE1MjllOGY0NzJjMWUxMTBkYjVlOGZkMWM1ZmE3ZTY0OTYyIiwidHJ1c3RfdGllciI6IjEifQ.huQqHS6UHA7uANzC4GzogochpKiqCGkCQxehxWHSi2oO2oQU6588bVfUu4HZNRZr5mYuc815X7NyvQN4W6HnI1OkDrD4iC1EZ4gyT4Ok9ta3WAQD4LXRSQjq0KnTwTwYZzyyCsMR3Fuqd8viq7pzLoP30ZOW3q2cHcSLuwNg7QXuhU_nU2_SZJtLmZW3J1RwLHqnHOzO0JdsWufG_oYR7Y7QQXY4J8ezu433jItBWh-AZI74iEnGQxabYhYGeFS_VLeDw_YXFdVqvYpJXm06ftORNx6pueXdlN-Ja_PYLaTCUevpZ3ajXIf0c9sZmPz7YYlsV-6m7MModl-FSQA_rw", 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_2fdba5f8-228a-433f-8292-3375ab72f8bc", INVOCATION_ID: "f535e5a3638b40c1adcf7bf05e62ad2a", 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: "117", 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 1000078052", 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.21", 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: "8aceaa529e8f472c1e110db5e8fd1c5fa7e64962", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.2", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/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_5ff3531e-a11c-4bff-9bc2-baec05455390", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_package_devDependencies_vue_eslint_parser: "^10.2.0", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-2-azure-eastus.actions.githubusercontent.com/3//idtoken/40785e69-6003-48d8-af78-8d42c8c97343/31107a4b-2fa1-5a6f-bf0c-30b9934c8dd2?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_5ff3531e-a11c-4bff-9bc2-baec05455390", 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_15.6.1", CHROME_BIN: "/usr/bin/google-chrome", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_5ff3531e-a11c-4bff-9bc2-baec05455390", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1839
|
-
const
|
|
1837
|
+
Bs();
|
|
1838
|
+
var Ka = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_e3fe999d-e842-4a5e-ab94-8d7d6d41373e", 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_e3fe999d-e842-4a5e-ab94-8d7d6d41373e", 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: "1898", ACTIONS_ORCHESTRATION_ID: "ddd239b0-0d1f-45b1-8e93-c4ff99b267d3.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: "20260607.184.1", npm_package_scripts_dev: "vite", npm_package_devDependencies_prettier: "^3.7.4", npm_package_devDependencies_sass_embedded: "^1.93.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_devDependencies__vue_tsconfig: "^0.4.0", npm_package_devDependencies_eslint_plugin_import: "^2.32.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:14681", 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.11/x64", GITHUB_RUN_ID: "27671307619", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "a12b5ca9af1725526a21980d86e7944daf103395", 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.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6M31dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3ODE3MDE0MDAsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc4MTY3OTIwMCwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjkwM2QzNThlLWUxOWQtNWE3My04NGExLTRjYzBlMzE0NGQ2NiIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc4MTY3ODkwMCwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI4MTgzNjA2MTI4NFwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiNTg1MGMwNzlhYmVhY2JmZmFiNDU5NGJhMWE3Y2YzMTM0NjZkNzQzM1wiLFwicmVmXCI6XCJyZWZzL2hlYWRzL21haW5cIixcInJlZl9wcm90ZWN0ZWRcIjpcInRydWVcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIyNzY3MTMwNzYxOVwiLFwicnVuX251bWJlclwiOlwiMTE4XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiYTEyYjVjYTlhZjE3MjU1MjZhMjE5ODBkODZlNzk0NGRhZjEwMzM5NVwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvbWFpblwiLFwid29ya2Zsb3dfc2hhXCI6XCJhMTJiNWNhOWFmMTcyNTUyNmEyMTk4MGQ4NmU3OTQ0ZGFmMTAzMzk1XCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9tYWluIiwib3JjaF9pZCI6ImRkZDIzOWIwLTBkMWYtNDViMS04ZTkzLWM0ZmY5OWIyNjdkMy5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiZGRkMjM5YjAtMGQxZi00NWIxLThlOTMtYzRmZjk5YjI2N2QzIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMjc2NzEzMDc2MTkiLCJydW5fbnVtYmVyIjoiMTE4IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDA3ODIyNiIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOmRkZDIzOWIwLTBkMWYtNDViMS04ZTkzLWM0ZmY5OWIyNjdkMzo5MDNkMzU4ZS1lMTlkLTVhNzMtODRhMS00Y2MwZTMxNDRkNjYgQWN0aW9ucy5SdW5uZXI6ZGRkMjM5YjAtMGQxZi00NWIxLThlOTMtYzRmZjk5YjI2N2QzOjkwM2QzNThlLWUxOWQtNWE3My04NGExLTRjYzBlMzE0NGQ2NiBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czpkZGQyMzliMC0wZDFmLTQ1YjEtOGU5My1jNGZmOTliMjY3ZDM6OTAzZDM1OGUtZTE5ZC01YTczLTg0YTEtNGNjMGUzMTQ0ZDY2IGdlbmVyYXRlX2lkX3Rva2VuOmRkZDIzOWIwLTBkMWYtNDViMS04ZTkzLWM0ZmY5OWIyNjdkMzo5MDNkMzU4ZS1lMTlkLTVhNzMtODRhMS00Y2MwZTMxNDRkNjYgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiJhMTJiNWNhOWFmMTcyNTUyNmEyMTk4MGQ4NmU3OTQ0ZGFmMTAzMzk1IiwidHJ1c3RfdGllciI6IjEifQ.eTZ7XxFH-uZK6dxilfdcbWIZxvS89nyamYOpFN6ZkLcYzsGD_EuUQStL7WjKXCK6fWOKQG_GGQy0FUo18JmV0Wq8wCB6OB4qZSxfQewxB-wehqyaaWAJr1vDF2mJUTNf-G579tjl69coPnmVuERKbGi-EqCsX3ZAEgpH4C_VyyZs3O7nMRoY0tiIAlbDIxvNFFXtHBD4-pn2vrcNWGENmwJQS1QE2u1rJmeM1lTPiUTPq7_xFEZqXQQoV-kZGE3jUfVaGMhakA7hQF_k5bSMVb2zB3RMauwtsgMa3uewPMsUd6okZLv0mSr9fvJZBtrj9A3JDTd2Hfo3UF13i83rVg", 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_c069ff48-5cfd-44ba-86de-c82c7390cbf9", INVOCATION_ID: "ce9036c4c77a41f3bc5d2b283720d50a", 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: "118", 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 1000078226", 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.22", 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: "a12b5ca9af1725526a21980d86e7944daf103395", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.2", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/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_e3fe999d-e842-4a5e-ab94-8d7d6d41373e", 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-3-azure-eastus.actions.githubusercontent.com/66//idtoken/ddd239b0-0d1f-45b1-8e93-c4ff99b267d3/903d358e-e19d-5a73-84a1-4cc0e3144d66?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_e3fe999d-e842-4a5e-ab94-8d7d6d41373e", 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_15.6.1", CHROME_BIN: "/usr/bin/google-chrome", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_e3fe999d-e842-4a5e-ab94-8d7d6d41373e", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1839
|
+
const za = "10.0.5";
|
|
1840
1840
|
function Qa() {
|
|
1841
1841
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Fe().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Fe().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Fe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Fe().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1842
1842
|
}
|
|
1843
|
-
const
|
|
1843
|
+
const Be = {
|
|
1844
1844
|
// composer module errors
|
|
1845
1845
|
UNEXPECTED_RETURN_TYPE: pa,
|
|
1846
1846
|
// 24
|
|
@@ -1856,29 +1856,29 @@ const He = {
|
|
|
1856
1856
|
function nt(e, ...t) {
|
|
1857
1857
|
return gt(e, null, void 0);
|
|
1858
1858
|
}
|
|
1859
|
-
const
|
|
1859
|
+
const jt = /* @__PURE__ */ Ue("__translateVNode"), Vt = /* @__PURE__ */ Ue("__datetimeParts"), Wt = /* @__PURE__ */ Ue("__numberParts"), qa = Ue("__setPluralRules"), xn = /* @__PURE__ */ Ue("__injectWithOption"), Gt = /* @__PURE__ */ Ue("__dispose");
|
|
1860
1860
|
function st(e) {
|
|
1861
|
-
if (!
|
|
1861
|
+
if (!K(e))
|
|
1862
1862
|
return e;
|
|
1863
1863
|
for (const t in e)
|
|
1864
|
-
if (
|
|
1864
|
+
if (Ne(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]] = ee()), !
|
|
1871
|
+
if (n[c] in l || (l[n[c]] = ee()), !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
|
|
1881
|
+
function Zn(e, t) {
|
|
1882
1882
|
const { messages: n, __i18n: s, messageResolver: l, flatJson: a } = t, c = J(n) ? n : ce(s) ? ee() : { [e]: ee() };
|
|
1883
1883
|
if (ce(s) && s.forEach((u) => {
|
|
1884
1884
|
if ("locale" in u && "resource" in u) {
|
|
@@ -1888,15 +1888,15 @@ function xn(e, t) {
|
|
|
1888
1888
|
P(u) && ft(JSON.parse(u), c);
|
|
1889
1889
|
}), l == null && a)
|
|
1890
1890
|
for (const u in c)
|
|
1891
|
-
|
|
1891
|
+
Ne(c, u) && st(c[u]);
|
|
1892
1892
|
return c;
|
|
1893
1893
|
}
|
|
1894
1894
|
function Xn(e) {
|
|
1895
1895
|
return e.type;
|
|
1896
1896
|
}
|
|
1897
1897
|
function er(e, t, n) {
|
|
1898
|
-
let s =
|
|
1899
|
-
"__i18nGlobal" in n && (s =
|
|
1898
|
+
let s = K(t.messages) ? t.messages : ee();
|
|
1899
|
+
"__i18nGlobal" in n && (s = Zn(e.locale.value, {
|
|
1900
1900
|
messages: s,
|
|
1901
1901
|
__i18n: n.__i18nGlobal
|
|
1902
1902
|
}));
|
|
@@ -1905,13 +1905,13 @@ function er(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]);
|
|
@@ -1922,18 +1922,18 @@ function er(e, t, n) {
|
|
|
1922
1922
|
function In(e) {
|
|
1923
1923
|
return _e(Qn, null, e, 0);
|
|
1924
1924
|
}
|
|
1925
|
-
const
|
|
1925
|
+
const Nn = "__INTLIFY_META__", yn = () => [], tr = () => !1;
|
|
1926
1926
|
let Tn = 0;
|
|
1927
1927
|
function kn(e) {
|
|
1928
|
-
return (t, n, s, l) => e(n, s,
|
|
1928
|
+
return (t, n, s, l) => e(n, s, xt() || void 0, l);
|
|
1929
1929
|
}
|
|
1930
1930
|
const nr = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1931
|
-
const e =
|
|
1931
|
+
const e = xt();
|
|
1932
1932
|
let t = null;
|
|
1933
|
-
return e && (t = Xn(e)[
|
|
1933
|
+
return e && (t = Xn(e)[Nn]) ? { [Nn]: t } : null;
|
|
1934
1934
|
};
|
|
1935
1935
|
function sr(e = {}) {
|
|
1936
|
-
const { __root: t, __injectWithOption: n } = e, s = t === void 0, l = e.flatJson, a = qt ? ht :
|
|
1936
|
+
const { __root: t, __injectWithOption: n } = e, s = t === void 0, l = e.flatJson, a = qt ? ht : Kn;
|
|
1937
1937
|
let c = ie(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1938
1938
|
const u = a(
|
|
1939
1939
|
// prettier-ignore
|
|
@@ -1941,14 +1941,14 @@ function sr(e = {}) {
|
|
|
1941
1941
|
), m = a(
|
|
1942
1942
|
// prettier-ignore
|
|
1943
1943
|
t && c ? t.fallbackLocale.value : P(e.fallbackLocale) || ce(e.fallbackLocale) || J(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
1944
|
-
), p = a(
|
|
1944
|
+
), p = a(Zn(u.value, e)), y = a(J(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), L = a(J(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
|
|
1945
1945
|
let O = t ? t.missingWarn : ie(e.missingWarn) || _t(e.missingWarn) ? e.missingWarn : !0, w = t ? t.fallbackWarn : ie(e.fallbackWarn) || _t(e.fallbackWarn) ? e.fallbackWarn : !0, V = t ? t.fallbackRoot : ie(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.fallbackFormat, M = ae(e.missing) ? e.missing : null, i = ae(e.missing) ? kn(e.missing) : null, d = ae(e.postTranslation) ? e.postTranslation : null, T = t ? t.warnHtmlMessage : ie(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, _ = !!e.escapeParameter;
|
|
1946
1946
|
const D = t ? t.modifiers : J(e.modifiers) ? e.modifiers : {};
|
|
1947
1947
|
let S = e.pluralRules || t && t.pluralRules, E;
|
|
1948
1948
|
E = (() => {
|
|
1949
1949
|
s && dn(null);
|
|
1950
1950
|
const f = {
|
|
1951
|
-
version:
|
|
1951
|
+
version: za,
|
|
1952
1952
|
locale: u.value,
|
|
1953
1953
|
fallbackLocale: m.value,
|
|
1954
1954
|
messages: p.value,
|
|
@@ -1966,7 +1966,7 @@ function sr(e = {}) {
|
|
|
1966
1966
|
messageCompiler: e.messageCompiler,
|
|
1967
1967
|
__meta: { framework: "vue" }
|
|
1968
1968
|
};
|
|
1969
|
-
f.datetimeFormats =
|
|
1969
|
+
f.datetimeFormats = y.value, f.numberFormats = L.value, f.__datetimeFormatters = J(E) ? E.__datetimeFormatters : void 0, f.__numberFormatters = J(E) ? E.__numberFormatters : void 0;
|
|
1970
1970
|
const k = Pa(f);
|
|
1971
1971
|
return s && dn(k), k;
|
|
1972
1972
|
})(), Qe(E, u.value, m.value);
|
|
@@ -1975,7 +1975,7 @@ function sr(e = {}) {
|
|
|
1975
1975
|
u.value,
|
|
1976
1976
|
m.value,
|
|
1977
1977
|
p.value,
|
|
1978
|
-
|
|
1978
|
+
y.value,
|
|
1979
1979
|
L.value
|
|
1980
1980
|
];
|
|
1981
1981
|
}
|
|
@@ -1989,8 +1989,8 @@ function sr(e = {}) {
|
|
|
1989
1989
|
set: (f) => {
|
|
1990
1990
|
m.value = f, E.fallbackLocale = m.value, Qe(E, u.value, f);
|
|
1991
1991
|
}
|
|
1992
|
-
}), I = q(() => p.value), F = /* @__PURE__ */ q(() =>
|
|
1993
|
-
function
|
|
1992
|
+
}), I = q(() => p.value), F = /* @__PURE__ */ q(() => y.value), x = /* @__PURE__ */ q(() => L.value);
|
|
1993
|
+
function N() {
|
|
1994
1994
|
return ae(d) ? d : null;
|
|
1995
1995
|
}
|
|
1996
1996
|
function C(f) {
|
|
@@ -2006,30 +2006,30 @@ function sr(e = {}) {
|
|
|
2006
2006
|
g();
|
|
2007
2007
|
let We;
|
|
2008
2008
|
try {
|
|
2009
|
-
|
|
2009
|
+
Ka.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (E.fallbackContext = t ? wa() : void 0), We = f(E);
|
|
2010
2010
|
} finally {
|
|
2011
2011
|
__INTLIFY_PROD_DEVTOOLS__, s || (E.fallbackContext = void 0);
|
|
2012
2012
|
}
|
|
2013
2013
|
if (ne !== "translate exists" && // for not `te` (e.g `t`)
|
|
2014
2014
|
me(We) && We === vt || ne === "translate exists" && !We) {
|
|
2015
|
-
const [$n,
|
|
2015
|
+
const [$n, xr] = k();
|
|
2016
2016
|
return t && V ? le(t) : Pe($n);
|
|
2017
2017
|
} else {
|
|
2018
2018
|
if (at(We))
|
|
2019
2019
|
return We;
|
|
2020
|
-
throw nt(
|
|
2020
|
+
throw nt(Be.UNEXPECTED_RETURN_TYPE);
|
|
2021
2021
|
}
|
|
2022
2022
|
};
|
|
2023
|
-
function
|
|
2024
|
-
return W((k) => Reflect.apply(En, null, [k, ...f]), () =>
|
|
2023
|
+
function U(...f) {
|
|
2024
|
+
return W((k) => Reflect.apply(En, null, [k, ...f]), () => Ut(...f), "translate", (k) => Reflect.apply(k.t, k, [...f]), (k) => k, (k) => P(k));
|
|
2025
2025
|
}
|
|
2026
2026
|
function te(...f) {
|
|
2027
2027
|
const [k, ne, le] = f;
|
|
2028
|
-
if (le && !
|
|
2029
|
-
throw nt(
|
|
2030
|
-
return
|
|
2028
|
+
if (le && !K(le))
|
|
2029
|
+
throw nt(Be.INVALID_ARGUMENT);
|
|
2030
|
+
return U(k, ne, de({ resolvedMessage: !0 }, le || {}));
|
|
2031
2031
|
}
|
|
2032
|
-
function
|
|
2032
|
+
function B(...f) {
|
|
2033
2033
|
return W((k) => Reflect.apply(_n, null, [k, ...f]), () => Pt(...f), "datetime format", (k) => Reflect.apply(k.d, k, [...f]), () => un, (k) => P(k));
|
|
2034
2034
|
}
|
|
2035
2035
|
function be(...f) {
|
|
@@ -2038,7 +2038,7 @@ function sr(e = {}) {
|
|
|
2038
2038
|
function fe(f) {
|
|
2039
2039
|
return f.map((k) => P(k) || me(k) || ie(k) ? In(String(k)) : k);
|
|
2040
2040
|
}
|
|
2041
|
-
const
|
|
2041
|
+
const Z = {
|
|
2042
2042
|
normalize: fe,
|
|
2043
2043
|
interpolate: (f) => f,
|
|
2044
2044
|
type: "vnode"
|
|
@@ -2048,31 +2048,31 @@ function sr(e = {}) {
|
|
|
2048
2048
|
let ne;
|
|
2049
2049
|
const le = k;
|
|
2050
2050
|
try {
|
|
2051
|
-
le.processor =
|
|
2051
|
+
le.processor = Z, ne = Reflect.apply(En, null, [le, ...f]);
|
|
2052
2052
|
} finally {
|
|
2053
2053
|
le.processor = null;
|
|
2054
2054
|
}
|
|
2055
2055
|
return ne;
|
|
2056
|
-
}, () =>
|
|
2056
|
+
}, () => Ut(...f), "translate", (k) => k[jt](...f), (k) => [In(k)], (k) => ce(k));
|
|
2057
2057
|
}
|
|
2058
2058
|
function $e(...f) {
|
|
2059
|
-
return W((k) => Reflect.apply(hn, null, [k, ...f]), () => Ft(...f), "number format", (k) => k[Wt](...f),
|
|
2059
|
+
return W((k) => Reflect.apply(hn, null, [k, ...f]), () => Ft(...f), "number format", (k) => k[Wt](...f), yn, (k) => P(k) || ce(k));
|
|
2060
2060
|
}
|
|
2061
2061
|
function Je(...f) {
|
|
2062
|
-
return W((k) => Reflect.apply(_n, null, [k, ...f]), () => Pt(...f), "datetime format", (k) => k[Vt](...f),
|
|
2062
|
+
return W((k) => Reflect.apply(_n, null, [k, ...f]), () => Pt(...f), "datetime format", (k) => k[Vt](...f), yn, (k) => P(k) || ce(k));
|
|
2063
2063
|
}
|
|
2064
2064
|
function It(f) {
|
|
2065
2065
|
S = f, E.pluralRules = S;
|
|
2066
2066
|
}
|
|
2067
|
-
function
|
|
2067
|
+
function Nt(f, k) {
|
|
2068
2068
|
return W(() => {
|
|
2069
2069
|
if (!f)
|
|
2070
2070
|
return !1;
|
|
2071
|
-
const ne = P(k) ? k : u.value, le =
|
|
2072
|
-
return
|
|
2071
|
+
const ne = P(k) ? k : u.value, le = je(ne), Pe = E.messageResolver(le, f);
|
|
2072
|
+
return Ye(Pe) || ve(Pe) || P(Pe);
|
|
2073
2073
|
}, () => [f], "translate exists", (ne) => Reflect.apply(ne.te, ne, [f, k]), tr, (ne) => ie(ne));
|
|
2074
2074
|
}
|
|
2075
|
-
function
|
|
2075
|
+
function yt(f) {
|
|
2076
2076
|
let k = null;
|
|
2077
2077
|
const ne = Mn(E, m.value, u.value);
|
|
2078
2078
|
for (let le = 0; le < ne.length; le++) {
|
|
@@ -2084,43 +2084,43 @@ function sr(e = {}) {
|
|
|
2084
2084
|
}
|
|
2085
2085
|
return k;
|
|
2086
2086
|
}
|
|
2087
|
-
function
|
|
2088
|
-
const k =
|
|
2087
|
+
function Ke(f) {
|
|
2088
|
+
const k = yt(f);
|
|
2089
2089
|
return k ?? (t ? t.tm(f) || {} : {});
|
|
2090
2090
|
}
|
|
2091
|
-
function
|
|
2091
|
+
function je(f) {
|
|
2092
2092
|
return p.value[f] || {};
|
|
2093
2093
|
}
|
|
2094
2094
|
function Ve(f, k) {
|
|
2095
2095
|
if (l) {
|
|
2096
2096
|
const ne = { [f]: k };
|
|
2097
2097
|
for (const le in ne)
|
|
2098
|
-
|
|
2098
|
+
Ne(ne, le) && st(ne[le]);
|
|
2099
2099
|
k = ne[f];
|
|
2100
2100
|
}
|
|
2101
2101
|
p.value[f] = k, E.messages = p.value;
|
|
2102
2102
|
}
|
|
2103
|
-
function
|
|
2103
|
+
function ze(f, k) {
|
|
2104
2104
|
p.value[f] = p.value[f] || {};
|
|
2105
2105
|
const ne = { [f]: k };
|
|
2106
2106
|
if (l)
|
|
2107
2107
|
for (const le in ne)
|
|
2108
|
-
|
|
2108
|
+
Ne(ne, le) && st(ne[le]);
|
|
2109
2109
|
k = ne[f], ft(k, p.value[f]), E.messages = p.value;
|
|
2110
2110
|
}
|
|
2111
2111
|
function Tt(f) {
|
|
2112
|
-
return
|
|
2112
|
+
return y.value[f] || {};
|
|
2113
2113
|
}
|
|
2114
2114
|
function r(f, k) {
|
|
2115
|
-
|
|
2115
|
+
y.value[f] = k, E.datetimeFormats = y.value, pn(E, f, k);
|
|
2116
2116
|
}
|
|
2117
2117
|
function o(f, k) {
|
|
2118
|
-
|
|
2118
|
+
y.value[f] = de(y.value[f] || {}, k), E.datetimeFormats = y.value, pn(E, f, k);
|
|
2119
2119
|
}
|
|
2120
2120
|
function h(f) {
|
|
2121
2121
|
return L.value[f] || {};
|
|
2122
2122
|
}
|
|
2123
|
-
function
|
|
2123
|
+
function j(f, k) {
|
|
2124
2124
|
L.value[f] = k, E.numberFormats = L.value, bn(E, f, k);
|
|
2125
2125
|
}
|
|
2126
2126
|
function re(f, k) {
|
|
@@ -2190,19 +2190,19 @@ function sr(e = {}) {
|
|
|
2190
2190
|
set escapeParameter(f) {
|
|
2191
2191
|
_ = f, E.escapeParameter = f;
|
|
2192
2192
|
},
|
|
2193
|
-
t:
|
|
2194
|
-
getLocaleMessage:
|
|
2193
|
+
t: U,
|
|
2194
|
+
getLocaleMessage: je,
|
|
2195
2195
|
setLocaleMessage: Ve,
|
|
2196
|
-
mergeLocaleMessage:
|
|
2197
|
-
getPostTranslationHandler:
|
|
2196
|
+
mergeLocaleMessage: ze,
|
|
2197
|
+
getPostTranslationHandler: N,
|
|
2198
2198
|
setPostTranslationHandler: C,
|
|
2199
2199
|
getMissingHandler: v,
|
|
2200
2200
|
setMissingHandler: G,
|
|
2201
2201
|
[qa]: It
|
|
2202
2202
|
};
|
|
2203
|
-
return X.datetimeFormats = F, X.numberFormats =
|
|
2203
|
+
return X.datetimeFormats = F, X.numberFormats = x, X.rt = te, X.te = Nt, X.tm = Ke, X.d = B, X.n = be, X.getDateTimeFormat = Tt, X.setDateTimeFormat = r, X.mergeDateTimeFormat = o, X.getNumberFormat = h, X.setNumberFormat = j, X.mergeNumberFormat = re, X[xn] = n, X[jt] = Ee, X[Vt] = Je, X[Wt] = $e, X;
|
|
2204
2204
|
}
|
|
2205
|
-
const
|
|
2205
|
+
const Kt = {
|
|
2206
2206
|
tag: {
|
|
2207
2207
|
type: [String, Object]
|
|
2208
2208
|
},
|
|
@@ -2230,7 +2230,7 @@ function ar({ slots: e }, t) {
|
|
|
2230
2230
|
return l && (n[s] = l()), n;
|
|
2231
2231
|
}, ee());
|
|
2232
2232
|
}
|
|
2233
|
-
function
|
|
2233
|
+
function Yn() {
|
|
2234
2234
|
return Le;
|
|
2235
2235
|
}
|
|
2236
2236
|
de({
|
|
@@ -2242,24 +2242,24 @@ de({
|
|
|
2242
2242
|
type: [Number, String],
|
|
2243
2243
|
validator: (e) => me(e) || !isNaN(e)
|
|
2244
2244
|
}
|
|
2245
|
-
},
|
|
2245
|
+
}, Kt);
|
|
2246
2246
|
function rr(e) {
|
|
2247
2247
|
return ce(e) && !P(e[0]);
|
|
2248
2248
|
}
|
|
2249
|
-
function
|
|
2249
|
+
function Bn(e, t, n, s) {
|
|
2250
2250
|
const { slots: l, attrs: a } = t;
|
|
2251
2251
|
return () => {
|
|
2252
2252
|
const c = { part: !0 };
|
|
2253
2253
|
let u = ee();
|
|
2254
|
-
e.locale && (c.locale = e.locale), P(e.format) ? c.key = e.format :
|
|
2254
|
+
e.locale && (c.locale = e.locale), P(e.format) ? c.key = e.format : K(e.format) && (P(e.format.key) && (c.key = e.format.key), u = Object.keys(e.format).reduce((O, w) => n.includes(w) ? de(ee(), O, { [w]: e.format[w] }) : O, ee()));
|
|
2255
2255
|
const m = s(e.value, c, u);
|
|
2256
2256
|
let p = [c.key];
|
|
2257
2257
|
ce(m) ? p = m.map((O, w) => {
|
|
2258
2258
|
const V = l[O.type], A = V ? V({ [O.type]: O.value, index: w, parts: m }) : [O.value];
|
|
2259
2259
|
return rr(A) && (A[0].key = `${O.type}-${w}`), A;
|
|
2260
2260
|
}) : P(m) && (p = [m]);
|
|
2261
|
-
const
|
|
2262
|
-
return An(L,
|
|
2261
|
+
const y = de(ee(), a), L = P(e.tag) || K(e.tag) ? e.tag : Yn();
|
|
2262
|
+
return An(L, y, p);
|
|
2263
2263
|
};
|
|
2264
2264
|
}
|
|
2265
2265
|
de({
|
|
@@ -2270,7 +2270,7 @@ de({
|
|
|
2270
2270
|
format: {
|
|
2271
2271
|
type: [String, Object]
|
|
2272
2272
|
}
|
|
2273
|
-
},
|
|
2273
|
+
}, Kt);
|
|
2274
2274
|
de({
|
|
2275
2275
|
value: {
|
|
2276
2276
|
type: [Number, Date],
|
|
@@ -2279,14 +2279,14 @@ de({
|
|
|
2279
2279
|
format: {
|
|
2280
2280
|
type: [String, Object]
|
|
2281
2281
|
}
|
|
2282
|
-
},
|
|
2283
|
-
const lr = /* @__PURE__ */
|
|
2282
|
+
}, Kt);
|
|
2283
|
+
const lr = /* @__PURE__ */ Ue("global-vue-i18n");
|
|
2284
2284
|
function Et(e = {}) {
|
|
2285
|
-
const t =
|
|
2285
|
+
const t = xt();
|
|
2286
2286
|
if (t == null)
|
|
2287
|
-
throw nt(
|
|
2287
|
+
throw nt(Be.MUST_BE_CALL_SETUP_TOP);
|
|
2288
2288
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2289
|
-
throw nt(
|
|
2289
|
+
throw nt(Be.NOT_INSTALLED);
|
|
2290
2290
|
const n = or(t), s = cr(n), l = Xn(t), a = ir(e, l);
|
|
2291
2291
|
if (a === "global")
|
|
2292
2292
|
return er(s, e, l), s;
|
|
@@ -2305,7 +2305,7 @@ function Et(e = {}) {
|
|
|
2305
2305
|
function or(e) {
|
|
2306
2306
|
const t = Jn(e.isCE ? lr : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2307
2307
|
if (!t)
|
|
2308
|
-
throw nt(e.isCE ?
|
|
2308
|
+
throw nt(e.isCE ? Be.NOT_INSTALLED_WITH_PROVIDE : Be.UNEXPECTED_ERROR);
|
|
2309
2309
|
return t;
|
|
2310
2310
|
}
|
|
2311
2311
|
function ir(e, t) {
|
|
@@ -2324,7 +2324,7 @@ function ur(e, t, n = !1) {
|
|
|
2324
2324
|
s = c.__getInstance(a);
|
|
2325
2325
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
2326
2326
|
const u = c.__getInstance(a);
|
|
2327
|
-
u != null && (s = u.__composer, n && s && !s[
|
|
2327
|
+
u != null && (s = u.__composer, n && s && !s[xn] && (s = null));
|
|
2328
2328
|
}
|
|
2329
2329
|
if (s != null || l === a)
|
|
2330
2330
|
break;
|
|
@@ -2337,7 +2337,7 @@ function mr(e, t = !1) {
|
|
|
2337
2337
|
}
|
|
2338
2338
|
function dr(e, t, n) {
|
|
2339
2339
|
Cn(() => {
|
|
2340
|
-
}, t),
|
|
2340
|
+
}, t), zn(() => {
|
|
2341
2341
|
const s = n;
|
|
2342
2342
|
e.__deleteInstance(t);
|
|
2343
2343
|
const l = s[Gt];
|
|
@@ -2407,51 +2407,51 @@ const Ln = Object.values(is), fr = {
|
|
|
2407
2407
|
update: "Edit"
|
|
2408
2408
|
};
|
|
2409
2409
|
function _r(e, t, n, s) {
|
|
2410
|
-
const { t: l } =
|
|
2410
|
+
const { t: l } = He(), { getFlagValue: a, getFlag: c } = os(), u = q(() => {
|
|
2411
2411
|
var I;
|
|
2412
2412
|
const g = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map();
|
|
2413
2413
|
for (const F of t.value) {
|
|
2414
|
-
const
|
|
2415
|
-
|
|
2414
|
+
const x = F.category;
|
|
2415
|
+
x && (n.value.includes(F.subject) || F.showByFeatureFlag && ((I = c(F.showByFeatureFlag)) == null ? void 0 : I.enabled) === !1 && a(F.showByFeatureFlag) === "true" || (g.has(x) || g.set(x, []), g.get(x).push({
|
|
2416
2416
|
label: l(`permissionSet.permissionLabels.${F.subject}`, F.label),
|
|
2417
2417
|
value: F.subject
|
|
2418
2418
|
}), b.set(F.subject, F)));
|
|
2419
2419
|
}
|
|
2420
|
-
return [...g.keys()].sort((F,
|
|
2421
|
-
const
|
|
2422
|
-
return
|
|
2420
|
+
return [...g.keys()].sort((F, x) => {
|
|
2421
|
+
const N = Ln.indexOf(F), C = Ln.indexOf(x);
|
|
2422
|
+
return N === -1 && C === -1 ? F.localeCompare(x) : N === -1 ? 1 : C === -1 ? -1 : N - C;
|
|
2423
2423
|
}).map((F) => {
|
|
2424
|
-
const
|
|
2425
|
-
for (const
|
|
2426
|
-
const
|
|
2427
|
-
|
|
2424
|
+
const x = g.get(F), N = l(`permissionSet.categoryLabels.${F}`, F), C = /* @__PURE__ */ new Map();
|
|
2425
|
+
for (const H of x) {
|
|
2426
|
+
const Z = b.get(H.value);
|
|
2427
|
+
Z && C.set(H.value, Z.actions);
|
|
2428
2428
|
}
|
|
2429
|
-
const v =
|
|
2430
|
-
const
|
|
2431
|
-
return
|
|
2429
|
+
const v = x.some((H) => {
|
|
2430
|
+
const Z = C.get(H.value);
|
|
2431
|
+
return Z && Z.length > 1;
|
|
2432
2432
|
}), G = v ? [
|
|
2433
2433
|
...new Set(
|
|
2434
|
-
|
|
2434
|
+
x.flatMap((H) => C.get(H.value) ?? []).filter((H) => H !== "manage")
|
|
2435
2435
|
)
|
|
2436
2436
|
] : [], W = /* @__PURE__ */ new Map();
|
|
2437
|
-
for (const
|
|
2438
|
-
|
|
2439
|
-
const
|
|
2440
|
-
(
|
|
2441
|
-
).map((
|
|
2442
|
-
var
|
|
2443
|
-
return (
|
|
2444
|
-
}),
|
|
2437
|
+
for (const H of e.value)
|
|
2438
|
+
x.some((Z) => Z.value === H.subject) && !H.inverted && W.set(H.subject, new Set(H.actions));
|
|
2439
|
+
const U = v ? e.value.filter(
|
|
2440
|
+
(H) => x.some((Z) => Z.value === H.subject) && !H.inverted && H.actions.includes("manage")
|
|
2441
|
+
).map((H) => H.subject) : e.value.filter((H) => x.some((Z) => Z.value === H.subject) && !H.inverted).map((H) => H.subject), te = x.find((H) => {
|
|
2442
|
+
var Z;
|
|
2443
|
+
return (Z = b.get(H.value)) == null ? void 0 : Z.isCategoryCover;
|
|
2444
|
+
}), B = (te == null ? void 0 : te.value) ?? null, be = B ? W.get(B) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), fe = be.has("manage");
|
|
2445
2445
|
return {
|
|
2446
2446
|
category: F,
|
|
2447
|
-
label:
|
|
2448
|
-
options:
|
|
2449
|
-
selectedSubjects:
|
|
2447
|
+
label: N,
|
|
2448
|
+
options: x,
|
|
2449
|
+
selectedSubjects: U,
|
|
2450
2450
|
isMultiAction: v,
|
|
2451
2451
|
actionColumns: G,
|
|
2452
2452
|
permissionActionsMap: C,
|
|
2453
2453
|
selectedActionsMap: W,
|
|
2454
|
-
coverSubject:
|
|
2454
|
+
coverSubject: B,
|
|
2455
2455
|
coverSelectedActions: be,
|
|
2456
2456
|
coverCoversAll: fe
|
|
2457
2457
|
};
|
|
@@ -2461,16 +2461,16 @@ function _r(e, t, n, s) {
|
|
|
2461
2461
|
var I;
|
|
2462
2462
|
const R = ((I = u.value.find((F) => F.category === g)) == null ? void 0 : I.options) ?? [];
|
|
2463
2463
|
s("update:model-value", [
|
|
2464
|
-
...e.value.filter((F) => !R.some((
|
|
2464
|
+
...e.value.filter((F) => !R.some((x) => x.value === F.subject)),
|
|
2465
2465
|
...t.value.filter((F) => b.includes(F.subject)).map(
|
|
2466
|
-
({ category: F, showByFeatureFlag:
|
|
2466
|
+
({ category: F, showByFeatureFlag: x, isCategoryCover: N, ...C }) => C
|
|
2467
2467
|
)
|
|
2468
2468
|
]);
|
|
2469
2469
|
}
|
|
2470
2470
|
function p(g) {
|
|
2471
2471
|
return g.options.length > 0 && g.options.every((b) => g.selectedSubjects.includes(b.value));
|
|
2472
2472
|
}
|
|
2473
|
-
function
|
|
2473
|
+
function y(g) {
|
|
2474
2474
|
if (g.options.length === 0) return !1;
|
|
2475
2475
|
const b = g.options.filter(
|
|
2476
2476
|
(R) => g.selectedSubjects.includes(R.value)
|
|
@@ -2485,7 +2485,7 @@ function _r(e, t, n, s) {
|
|
|
2485
2485
|
s("update:model-value", b);
|
|
2486
2486
|
else {
|
|
2487
2487
|
const R = t.value.filter((I) => g.options.some((F) => F.value === I.subject)).map(
|
|
2488
|
-
({ category: I, showByFeatureFlag: F, isCategoryCover:
|
|
2488
|
+
({ category: I, showByFeatureFlag: F, isCategoryCover: x, ...N }) => N
|
|
2489
2489
|
);
|
|
2490
2490
|
s("update:model-value", [...b, ...R]);
|
|
2491
2491
|
}
|
|
@@ -2497,12 +2497,12 @@ function _r(e, t, n, s) {
|
|
|
2497
2497
|
function w(g, b) {
|
|
2498
2498
|
const R = g.permissionActionsMap.get(b);
|
|
2499
2499
|
if (!R) return !1;
|
|
2500
|
-
const I = R.filter((
|
|
2500
|
+
const I = R.filter((N) => N !== "manage");
|
|
2501
2501
|
if (I.length === 0) return !1;
|
|
2502
2502
|
const F = g.selectedActionsMap.get(b);
|
|
2503
2503
|
if (!F) return !1;
|
|
2504
|
-
const
|
|
2505
|
-
return
|
|
2504
|
+
const x = I.filter((N) => F.has(N));
|
|
2505
|
+
return x.length > 0 && x.length < I.length;
|
|
2506
2506
|
}
|
|
2507
2507
|
function V(g, b, R) {
|
|
2508
2508
|
if (R) {
|
|
@@ -2510,8 +2510,8 @@ function _r(e, t, n, s) {
|
|
|
2510
2510
|
if (!I) return;
|
|
2511
2511
|
const {
|
|
2512
2512
|
category: F,
|
|
2513
|
-
showByFeatureFlag:
|
|
2514
|
-
isCategoryCover:
|
|
2513
|
+
showByFeatureFlag: x,
|
|
2514
|
+
isCategoryCover: N,
|
|
2515
2515
|
...C
|
|
2516
2516
|
} = I, v = e.value.filter((G) => G.subject !== b);
|
|
2517
2517
|
v.push(C), s("update:model-value", v);
|
|
@@ -2540,28 +2540,28 @@ function _r(e, t, n, s) {
|
|
|
2540
2540
|
return I ? I.includes(R) : !1;
|
|
2541
2541
|
}
|
|
2542
2542
|
function _(g, b, R) {
|
|
2543
|
-
const I = [...e.value], F = I.findIndex((
|
|
2543
|
+
const I = [...e.value], F = I.findIndex((N) => N.subject === g && !N.inverted);
|
|
2544
2544
|
if (R)
|
|
2545
2545
|
if (F >= 0) {
|
|
2546
|
-
const
|
|
2547
|
-
C.add(b),
|
|
2546
|
+
const N = { ...I[F] }, C = new Set(N.actions);
|
|
2547
|
+
C.add(b), N.actions = Array.from(C), I[F] = N;
|
|
2548
2548
|
} else {
|
|
2549
|
-
const
|
|
2550
|
-
if (!
|
|
2549
|
+
const N = t.value.find((U) => U.subject === g);
|
|
2550
|
+
if (!N) return;
|
|
2551
2551
|
const {
|
|
2552
2552
|
category: C,
|
|
2553
2553
|
showByFeatureFlag: v,
|
|
2554
2554
|
isCategoryCover: G,
|
|
2555
2555
|
...W
|
|
2556
|
-
} =
|
|
2556
|
+
} = N;
|
|
2557
2557
|
I.push({ ...W, actions: [b] });
|
|
2558
2558
|
}
|
|
2559
2559
|
else if (F >= 0) {
|
|
2560
|
-
const
|
|
2561
|
-
C.length === 0 ? I.splice(F, 1) : (
|
|
2560
|
+
const N = { ...I[F] }, C = N.actions.filter((v) => v !== b);
|
|
2561
|
+
C.length === 0 ? I.splice(F, 1) : (N.actions = C, I[F] = N);
|
|
2562
2562
|
}
|
|
2563
|
-
const
|
|
2564
|
-
|
|
2563
|
+
const x = t.value.find((N) => N.subject === g);
|
|
2564
|
+
x && On(I, g, x.actions), s("update:model-value", I);
|
|
2565
2565
|
}
|
|
2566
2566
|
function D(g, b) {
|
|
2567
2567
|
const R = g.options.filter(
|
|
@@ -2585,34 +2585,34 @@ function _r(e, t, n, s) {
|
|
|
2585
2585
|
const I = [...e.value];
|
|
2586
2586
|
for (const F of g.options) {
|
|
2587
2587
|
if (!T(g, F.value, b)) continue;
|
|
2588
|
-
const
|
|
2589
|
-
(v) => v.subject ===
|
|
2588
|
+
const x = F.value, N = I.findIndex(
|
|
2589
|
+
(v) => v.subject === x && !v.inverted
|
|
2590
2590
|
);
|
|
2591
2591
|
if (R)
|
|
2592
|
-
if (
|
|
2593
|
-
const v = { ...I[
|
|
2594
|
-
G.add(b), v.actions = Array.from(G), I[
|
|
2592
|
+
if (N >= 0) {
|
|
2593
|
+
const v = { ...I[N] }, G = new Set(v.actions);
|
|
2594
|
+
G.add(b), v.actions = Array.from(G), I[N] = v;
|
|
2595
2595
|
} else {
|
|
2596
|
-
const v = t.value.find((
|
|
2596
|
+
const v = t.value.find((B) => B.subject === x);
|
|
2597
2597
|
if (!v) continue;
|
|
2598
2598
|
const {
|
|
2599
2599
|
category: G,
|
|
2600
2600
|
showByFeatureFlag: W,
|
|
2601
|
-
isCategoryCover:
|
|
2601
|
+
isCategoryCover: U,
|
|
2602
2602
|
...te
|
|
2603
2603
|
} = v;
|
|
2604
2604
|
I.push({ ...te, actions: [b] });
|
|
2605
2605
|
}
|
|
2606
|
-
else if (
|
|
2607
|
-
const v = { ...I[
|
|
2608
|
-
G.length === 0 ? I.splice(
|
|
2606
|
+
else if (N >= 0) {
|
|
2607
|
+
const v = { ...I[N] }, G = v.actions.filter((W) => W !== b);
|
|
2608
|
+
G.length === 0 ? I.splice(N, 1) : (v.actions = G, I[N] = v);
|
|
2609
2609
|
}
|
|
2610
|
-
const C = t.value.find((v) => v.subject ===
|
|
2611
|
-
C && On(I,
|
|
2610
|
+
const C = t.value.find((v) => v.subject === x);
|
|
2611
|
+
C && On(I, x, C.actions);
|
|
2612
2612
|
}
|
|
2613
2613
|
s("update:model-value", I);
|
|
2614
2614
|
}
|
|
2615
|
-
function
|
|
2615
|
+
function Y(g) {
|
|
2616
2616
|
const b = `permissionSet.actionLabels.${g}`, R = fr[g] ?? g.charAt(0).toUpperCase() + g.slice(1);
|
|
2617
2617
|
return l(b, R);
|
|
2618
2618
|
}
|
|
@@ -2620,7 +2620,7 @@ function _r(e, t, n, s) {
|
|
|
2620
2620
|
categoryGroups: u,
|
|
2621
2621
|
toggleCategory: m,
|
|
2622
2622
|
isAllManageChecked: p,
|
|
2623
|
-
isAllManageIndeterminate:
|
|
2623
|
+
isAllManageIndeterminate: y,
|
|
2624
2624
|
toggleAllManage: L,
|
|
2625
2625
|
isManageChecked: O,
|
|
2626
2626
|
isManageIndeterminate: w,
|
|
@@ -2634,10 +2634,10 @@ function _r(e, t, n, s) {
|
|
|
2634
2634
|
isAllActionChecked: D,
|
|
2635
2635
|
isAllActionIndeterminate: S,
|
|
2636
2636
|
toggleAllAction: E,
|
|
2637
|
-
actionLabel:
|
|
2637
|
+
actionLabel: Y
|
|
2638
2638
|
};
|
|
2639
2639
|
}
|
|
2640
|
-
const pr = { class: "flex flex-col gap-16" }, hr = { class: "fm-typo-en-title-sm-600" }, br = { class: "mt-16" }, gr = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, vr = ["onClick"], Er = { class: "flex justify-center" }, Ir = { class: "flex items-center min-w-0 gap-8" },
|
|
2640
|
+
const pr = { class: "flex flex-col gap-16" }, hr = { class: "fm-typo-en-title-sm-600" }, br = { class: "mt-16" }, gr = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, vr = ["onClick"], Er = { class: "flex justify-center" }, Ir = { class: "flex items-center min-w-0 gap-8" }, Nr = ["title", "onClick"], yr = { class: "flex justify-center" }, Tr = /* @__PURE__ */ ke({
|
|
2641
2641
|
__name: "BasePermission",
|
|
2642
2642
|
props: {
|
|
2643
2643
|
modelValue: {
|
|
@@ -2659,12 +2659,12 @@ const pr = { class: "flex flex-col gap-16" }, hr = { class: "fm-typo-en-title-sm
|
|
|
2659
2659
|
},
|
|
2660
2660
|
emits: ["update:model-value"],
|
|
2661
2661
|
setup(e, { emit: t }) {
|
|
2662
|
-
const n = e, s = t, { t: l } =
|
|
2662
|
+
const n = e, s = t, { t: l } = He(), a = q(() => [...Mt, ...n.additionalPermissions]), {
|
|
2663
2663
|
categoryGroups: c,
|
|
2664
2664
|
isAllManageChecked: u,
|
|
2665
2665
|
isAllManageIndeterminate: m,
|
|
2666
2666
|
toggleAllManage: p,
|
|
2667
|
-
isManageChecked:
|
|
2667
|
+
isManageChecked: y,
|
|
2668
2668
|
isManageIndeterminate: L,
|
|
2669
2669
|
toggleManage: O,
|
|
2670
2670
|
isActionChecked: w,
|
|
@@ -2677,19 +2677,19 @@ const pr = { class: "flex flex-col gap-16" }, hr = { class: "fm-typo-en-title-sm
|
|
|
2677
2677
|
toggleAllAction: _,
|
|
2678
2678
|
actionLabel: D
|
|
2679
2679
|
} = _r(
|
|
2680
|
-
|
|
2680
|
+
zt(n, "modelValue"),
|
|
2681
2681
|
a,
|
|
2682
|
-
|
|
2683
|
-
(E,
|
|
2682
|
+
zt(n, "excludedSubjects"),
|
|
2683
|
+
(E, Y) => s("update:model-value", Y)
|
|
2684
2684
|
);
|
|
2685
2685
|
function S(E) {
|
|
2686
|
-
const
|
|
2687
|
-
return
|
|
2686
|
+
const Y = E.selectedSubjects.length;
|
|
2687
|
+
return Y === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: Y });
|
|
2688
2688
|
}
|
|
2689
|
-
return (E,
|
|
2689
|
+
return (E, Y) => {
|
|
2690
2690
|
const g = qe("FmCheckbox");
|
|
2691
2691
|
return Q(), oe("div", pr, [
|
|
2692
|
-
(Q(!0), oe(Le, null, ge($(c), (b) => (Q(), Me(
|
|
2692
|
+
(Q(!0), oe(Le, null, ge($(c), (b) => (Q(), Me(Zt, {
|
|
2693
2693
|
key: b.category,
|
|
2694
2694
|
subtitle: S(b)
|
|
2695
2695
|
}, {
|
|
@@ -2700,11 +2700,11 @@ const pr = { class: "flex flex-col gap-16" }, hr = { class: "fm-typo-en-title-sm
|
|
|
2700
2700
|
se("div", br, [
|
|
2701
2701
|
se("div", {
|
|
2702
2702
|
class: "grid items-center px-12 py-8",
|
|
2703
|
-
style:
|
|
2703
|
+
style: Ze({
|
|
2704
2704
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${b.actionColumns.length + 1}, 80px)`
|
|
2705
2705
|
})
|
|
2706
2706
|
}, [
|
|
2707
|
-
|
|
2707
|
+
Y[0] || (Y[0] = se("div", null, null, -1)),
|
|
2708
2708
|
se("div", gr, Ie($(l)("team.memberForm.permissions.columnManage")), 1),
|
|
2709
2709
|
(Q(!0), oe(Le, null, ge(b.actionColumns, (R) => (Q(), oe("div", {
|
|
2710
2710
|
key: `header-${R}`,
|
|
@@ -2713,7 +2713,7 @@ const pr = { class: "flex flex-col gap-16" }, hr = { class: "fm-typo-en-title-sm
|
|
|
2713
2713
|
], 4),
|
|
2714
2714
|
se("div", {
|
|
2715
2715
|
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
2716
|
-
style:
|
|
2716
|
+
style: Ze({
|
|
2717
2717
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${b.actionColumns.length + 1}, 80px)`
|
|
2718
2718
|
})
|
|
2719
2719
|
}, [
|
|
@@ -2747,11 +2747,11 @@ const pr = { class: "flex flex-col gap-16" }, hr = { class: "fm-typo-en-title-sm
|
|
|
2747
2747
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2748
2748
|
]))), 128))
|
|
2749
2749
|
], 4),
|
|
2750
|
-
|
|
2750
|
+
Y[1] || (Y[1] = se("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2751
2751
|
(Q(!0), oe(Le, null, ge(b.options, (R) => (Q(), oe("div", {
|
|
2752
2752
|
key: R.value,
|
|
2753
2753
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2754
|
-
style:
|
|
2754
|
+
style: Ze({
|
|
2755
2755
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${b.actionColumns.length + 1}, 80px)`
|
|
2756
2756
|
})
|
|
2757
2757
|
}, [
|
|
@@ -2759,13 +2759,13 @@ const pr = { class: "flex flex-col gap-16" }, hr = { class: "fm-typo-en-title-sm
|
|
|
2759
2759
|
se("span", {
|
|
2760
2760
|
class: "block truncate cursor-pointer",
|
|
2761
2761
|
title: R.label,
|
|
2762
|
-
onClick: (I) => !e.disable && !$(V)(b, R.value) && $(O)(b, R.value, !$(
|
|
2763
|
-
}, Ie(R.label), 9,
|
|
2762
|
+
onClick: (I) => !e.disable && !$(V)(b, R.value) && $(O)(b, R.value, !$(y)(b, R.value))
|
|
2763
|
+
}, Ie(R.label), 9, Nr),
|
|
2764
2764
|
Te(E.$slots, `checkbox-${R.value}-append`, { option: R })
|
|
2765
2765
|
]),
|
|
2766
|
-
se("div",
|
|
2766
|
+
se("div", yr, [
|
|
2767
2767
|
_e(g, {
|
|
2768
|
-
"model-value": $(
|
|
2768
|
+
"model-value": $(y)(b, R.value) || $(V)(b, R.value),
|
|
2769
2769
|
value: R.value,
|
|
2770
2770
|
disabled: e.disable || $(V)(b, R.value),
|
|
2771
2771
|
indeterminate: $(L)(b, R.value),
|
|
@@ -2844,7 +2844,7 @@ function Ar(e, t) {
|
|
|
2844
2844
|
const Sr = { class: "col flex items-center" }, Mr = {
|
|
2845
2845
|
key: 1,
|
|
2846
2846
|
class: "q-pa-sm form-error-message text-error"
|
|
2847
|
-
},
|
|
2847
|
+
}, Hn = /* @__PURE__ */ ke({
|
|
2848
2848
|
__name: "CheckboxInput",
|
|
2849
2849
|
props: {
|
|
2850
2850
|
options: {
|
|
@@ -2902,13 +2902,13 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
2902
2902
|
},
|
|
2903
2903
|
emits: ["update:model-value"],
|
|
2904
2904
|
setup(e, { emit: t }) {
|
|
2905
|
-
const n = e, s = t, { t: l } =
|
|
2905
|
+
const n = e, s = t, { t: l } = He(), a = ht(!1), c = es(), u = q(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), m = `checkbox-${Ar(6)}`, p = q(() => u.value !== !0), y = q(
|
|
2906
2906
|
() => n.modelValue.filter((A) => n.options.some((M) => M.value === A))
|
|
2907
2907
|
), L = q(
|
|
2908
2908
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2909
|
-
), O = q(() => n.options.length > 0 && n.options.length ===
|
|
2909
|
+
), O = q(() => n.options.length > 0 && n.options.length === y.value.length);
|
|
2910
2910
|
function w() {
|
|
2911
|
-
const A = n.modelValue.filter((M) => !
|
|
2911
|
+
const A = n.modelValue.filter((M) => !y.value.includes(M));
|
|
2912
2912
|
if (O.value === !0)
|
|
2913
2913
|
s("update:model-value", A);
|
|
2914
2914
|
else {
|
|
@@ -2936,7 +2936,7 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
2936
2936
|
"model-value": O.value,
|
|
2937
2937
|
disabled: e.disable,
|
|
2938
2938
|
label: L.value,
|
|
2939
|
-
style:
|
|
2939
|
+
style: Ze(`margin-bottom: ${n.gutter}px`),
|
|
2940
2940
|
size: "sm",
|
|
2941
2941
|
dense: "",
|
|
2942
2942
|
value: L.value,
|
|
@@ -2944,7 +2944,7 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
2944
2944
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Se("", !0),
|
|
2945
2945
|
(Q(!0), oe(Le, null, ge(e.options, (d, T) => (Q(), oe("div", {
|
|
2946
2946
|
key: d.value,
|
|
2947
|
-
style:
|
|
2947
|
+
style: Ze(`margin-bottom: ${T < e.options.length - 1 ? n.gutter : 0}px`),
|
|
2948
2948
|
class: rt(T < e.options.length - 1 ? "q-mb-sm" : "")
|
|
2949
2949
|
}, [
|
|
2950
2950
|
se("div", {
|
|
@@ -2978,7 +2978,7 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
2978
2978
|
$(c)[`checkbox-${d.key || d.value}-bottom`] && (e.modelValue.includes(d.value) || e.falsyShowSlot) ? (Q(), oe("div", {
|
|
2979
2979
|
key: 0,
|
|
2980
2980
|
class: rt(["q-mt-sm", { "q-checkbox disabled": e.disable || d.disabled }]),
|
|
2981
|
-
style:
|
|
2981
|
+
style: Ze(`margin-left: ${e.bottomSlotIndent}`)
|
|
2982
2982
|
}, [
|
|
2983
2983
|
Te(A.$slots, `checkbox-${d.key || d.value}-bottom`, {
|
|
2984
2984
|
option: d,
|
|
@@ -3015,7 +3015,7 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3015
3015
|
},
|
|
3016
3016
|
emits: ["update:model-value"],
|
|
3017
3017
|
setup(e, { emit: t }) {
|
|
3018
|
-
const n = e, s = t, { t: l } =
|
|
3018
|
+
const n = e, s = t, { t: l } = He(), a = q(() => [
|
|
3019
3019
|
{
|
|
3020
3020
|
label: l("team.memberForm.permissions.includedFuture", { context: n.context }),
|
|
3021
3021
|
value: ut,
|
|
@@ -3023,20 +3023,20 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3023
3023
|
disabled: !!n.modelValue && n.options.length > n.modelValue.length
|
|
3024
3024
|
},
|
|
3025
3025
|
...n.options.filter(
|
|
3026
|
-
(
|
|
3026
|
+
(y) => y.label.toLocaleLowerCase().includes(p.value.toLocaleLowerCase())
|
|
3027
3027
|
)
|
|
3028
|
-
]), c = q(() => n.modelValue ? n.modelValue : [ut, ...n.options.map((
|
|
3029
|
-
const
|
|
3030
|
-
return
|
|
3028
|
+
]), c = q(() => n.modelValue ? n.modelValue : [ut, ...n.options.map((y) => y.value)]), u = q(() => {
|
|
3029
|
+
const y = c.value.filter((L) => L !== ut).length;
|
|
3030
|
+
return y === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: y });
|
|
3031
3031
|
});
|
|
3032
|
-
function m(
|
|
3033
|
-
const L =
|
|
3034
|
-
s("update:model-value", L ? null :
|
|
3032
|
+
function m(y) {
|
|
3033
|
+
const L = y.length === a.value.length;
|
|
3034
|
+
s("update:model-value", L ? null : y.filter((O) => O !== ut));
|
|
3035
3035
|
}
|
|
3036
3036
|
const p = ht("");
|
|
3037
|
-
return (
|
|
3037
|
+
return (y, L) => {
|
|
3038
3038
|
const O = qe("fm-search");
|
|
3039
|
-
return Q(), Me(
|
|
3039
|
+
return Q(), Me(Zt, { subtitle: u.value }, {
|
|
3040
3040
|
title: pe(() => [
|
|
3041
3041
|
se("p", Dr, Ie($(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3042
3042
|
]),
|
|
@@ -3048,7 +3048,7 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3048
3048
|
class: "mt-16",
|
|
3049
3049
|
placeholder: $(l)("team.memberForm.permissions.search", { context: e.context })
|
|
3050
3050
|
}, null, 8, ["modelValue", "placeholder"])) : Se("", !0),
|
|
3051
|
-
_e(
|
|
3051
|
+
_e(Hn, {
|
|
3052
3052
|
"model-value": c.value,
|
|
3053
3053
|
options: a.value,
|
|
3054
3054
|
"show-intermediate": !1,
|
|
@@ -3058,11 +3058,11 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3058
3058
|
title: "",
|
|
3059
3059
|
class: "mt-16",
|
|
3060
3060
|
"onUpdate:modelValue": m
|
|
3061
|
-
},
|
|
3061
|
+
}, xe({ _: 2 }, [
|
|
3062
3062
|
ge(a.value, (w) => ({
|
|
3063
3063
|
name: `checkbox-${w.value}-append`,
|
|
3064
3064
|
fn: pe(({ option: V }) => [
|
|
3065
|
-
Te(
|
|
3065
|
+
Te(y.$slots, `checkbox-${w.value}-append`, { option: V })
|
|
3066
3066
|
])
|
|
3067
3067
|
}))
|
|
3068
3068
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3093,7 +3093,7 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3093
3093
|
},
|
|
3094
3094
|
emits: ["update:model-value"],
|
|
3095
3095
|
setup(e, { emit: t }) {
|
|
3096
|
-
const n = e, s = t, { t: l } =
|
|
3096
|
+
const n = e, s = t, { t: l } = He(), a = q(() => {
|
|
3097
3097
|
const p = n.restaurantIds;
|
|
3098
3098
|
return [
|
|
3099
3099
|
{
|
|
@@ -3101,26 +3101,26 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3101
3101
|
value: mt,
|
|
3102
3102
|
disabled: !!n.modelValue && n.roles.length > n.modelValue.length
|
|
3103
3103
|
},
|
|
3104
|
-
...n.roles.map((
|
|
3105
|
-
label:
|
|
3106
|
-
value:
|
|
3107
|
-
disabled: !!p &&
|
|
3104
|
+
...n.roles.map((y) => ({
|
|
3105
|
+
label: y.name,
|
|
3106
|
+
value: y._id,
|
|
3107
|
+
disabled: !!p && y.restaurants.every(({ id: L }) => !p.includes(L))
|
|
3108
3108
|
}))
|
|
3109
3109
|
];
|
|
3110
3110
|
}), c = q(() => n.modelValue ? n.modelValue : [mt, ...n.roles.map((p) => p._id)]), u = q(() => {
|
|
3111
|
-
const p = c.value.filter((
|
|
3111
|
+
const p = c.value.filter((y) => y !== mt).length;
|
|
3112
3112
|
return p === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: p });
|
|
3113
3113
|
});
|
|
3114
3114
|
function m(p) {
|
|
3115
|
-
const
|
|
3116
|
-
s("update:model-value",
|
|
3115
|
+
const y = p.length === a.value.length;
|
|
3116
|
+
s("update:model-value", y ? null : p.filter((L) => L !== mt));
|
|
3117
3117
|
}
|
|
3118
|
-
return (p,
|
|
3118
|
+
return (p, y) => (Q(), Me(Zt, { subtitle: u.value }, {
|
|
3119
3119
|
title: pe(() => [
|
|
3120
3120
|
se("p", wr, Ie($(l)("team.memberForm.permissions.roles")), 1)
|
|
3121
3121
|
]),
|
|
3122
3122
|
default: pe(() => [
|
|
3123
|
-
_e(
|
|
3123
|
+
_e(Hn, {
|
|
3124
3124
|
"model-value": c.value,
|
|
3125
3125
|
options: a.value,
|
|
3126
3126
|
"show-intermediate": !1,
|
|
@@ -3129,7 +3129,7 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3129
3129
|
title: "",
|
|
3130
3130
|
class: "mt-16",
|
|
3131
3131
|
"onUpdate:modelValue": m
|
|
3132
|
-
},
|
|
3132
|
+
}, xe({ _: 2 }, [
|
|
3133
3133
|
ge(a.value, (L) => ({
|
|
3134
3134
|
name: `checkbox-${L.value}-append`,
|
|
3135
3135
|
fn: pe(({ option: O }) => [
|
|
@@ -3145,7 +3145,7 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3145
3145
|
async readWarehouses() {
|
|
3146
3146
|
return us(await ms().get("/warehouses"));
|
|
3147
3147
|
}
|
|
3148
|
-
},
|
|
3148
|
+
}, Ur = { class: "flex flex-col gap-32" }, jr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Vr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Wr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Gr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, zr = /* @__PURE__ */ ke({
|
|
3149
3149
|
__name: "PortalPermissionEditor",
|
|
3150
3150
|
props: /* @__PURE__ */ Qt({
|
|
3151
3151
|
disable: {
|
|
@@ -3162,52 +3162,52 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3162
3162
|
}),
|
|
3163
3163
|
emits: /* @__PURE__ */ Qt(["permissionChanged"], ["update:modelValue"]),
|
|
3164
3164
|
setup(e, { emit: t }) {
|
|
3165
|
-
const n = ts(e, "modelValue"), s = e, l = t, { t: a } =
|
|
3166
|
-
function m(
|
|
3167
|
-
return Mt.find((C) => C.subject ===
|
|
3165
|
+
const n = ts(e, "modelValue"), s = e, l = t, { t: a } = He(), { fetchCustomReportPermissions: c, customReportPermissions: u } = ss();
|
|
3166
|
+
function m(N) {
|
|
3167
|
+
return Mt.find((C) => C.subject === N) ?? u.value.find((C) => C.subject === N);
|
|
3168
3168
|
}
|
|
3169
3169
|
const p = q(() => {
|
|
3170
|
-
const
|
|
3170
|
+
const N = [...Mt, ...u.value].filter((v) => !w.includes(v.subject)).map((v) => v.subject);
|
|
3171
3171
|
return as(
|
|
3172
3172
|
s.inheritPermissions.map((v) => ({
|
|
3173
3173
|
...v,
|
|
3174
|
-
permissions: v.permissions.filter((G) =>
|
|
3174
|
+
permissions: v.permissions.filter((G) => N.includes(G.subject))
|
|
3175
3175
|
}))
|
|
3176
3176
|
).map((v) => ({
|
|
3177
3177
|
id: v.subject,
|
|
3178
3178
|
setNames: v.setNames
|
|
3179
3179
|
}));
|
|
3180
|
-
}),
|
|
3181
|
-
const
|
|
3180
|
+
}), y = q(() => {
|
|
3181
|
+
const N = s.inheritPermissions.map((C) => ({
|
|
3182
3182
|
...C,
|
|
3183
3183
|
permissions: C.permissions.filter(
|
|
3184
3184
|
(v) => v.subject === ue.Subject.Business.inventory_stock
|
|
3185
3185
|
)
|
|
3186
3186
|
}));
|
|
3187
3187
|
return kt(
|
|
3188
|
-
|
|
3188
|
+
N,
|
|
3189
3189
|
"warehouseId",
|
|
3190
3190
|
A.value.map((C) => C._id)
|
|
3191
3191
|
);
|
|
3192
3192
|
}), L = q(() => {
|
|
3193
|
-
const
|
|
3193
|
+
const N = s.inheritPermissions.map((C) => ({
|
|
3194
3194
|
...C,
|
|
3195
3195
|
permissions: C.permissions.filter(
|
|
3196
3196
|
(v) => v.subject === ue.Subject.Restaurant.restaurant
|
|
3197
3197
|
)
|
|
3198
3198
|
}));
|
|
3199
3199
|
return kt(
|
|
3200
|
-
|
|
3200
|
+
N,
|
|
3201
3201
|
"restaurantId",
|
|
3202
3202
|
T.value.map((C) => C._id)
|
|
3203
3203
|
);
|
|
3204
3204
|
}), O = q(() => {
|
|
3205
|
-
const
|
|
3205
|
+
const N = s.inheritPermissions.map((C) => ({
|
|
3206
3206
|
...C,
|
|
3207
3207
|
permissions: C.permissions.filter((v) => v.subject === ue.Subject.Business.role)
|
|
3208
3208
|
}));
|
|
3209
3209
|
return kt(
|
|
3210
|
-
|
|
3210
|
+
N,
|
|
3211
3211
|
"roleId",
|
|
3212
3212
|
_.value.map((C) => C._id)
|
|
3213
3213
|
);
|
|
@@ -3218,21 +3218,21 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3218
3218
|
ue.Subject.Business.inventory_stock
|
|
3219
3219
|
], V = q(() => {
|
|
3220
3220
|
var C;
|
|
3221
|
-
const
|
|
3221
|
+
const N = (C = n.value) == null ? void 0 : C.find(
|
|
3222
3222
|
(v) => v.subject === ue.Subject.Business.inventory_stock
|
|
3223
3223
|
);
|
|
3224
|
-
return
|
|
3225
|
-
}), A = ht([]), M = q(() => A.value.map((
|
|
3226
|
-
label:
|
|
3227
|
-
value:
|
|
3224
|
+
return N ? N.conditions ? JSON.parse(N.conditions).warehouseId.$in : null : [];
|
|
3225
|
+
}), A = ht([]), M = q(() => A.value.map((N) => ({
|
|
3226
|
+
label: N.profile.name,
|
|
3227
|
+
value: N._id
|
|
3228
3228
|
})));
|
|
3229
|
-
function i(
|
|
3230
|
-
const C = d(n.value,
|
|
3229
|
+
function i(N) {
|
|
3230
|
+
const C = d(n.value, N);
|
|
3231
3231
|
n.value = C;
|
|
3232
3232
|
}
|
|
3233
|
-
function d(
|
|
3233
|
+
function d(N, C) {
|
|
3234
3234
|
let v = dt(
|
|
3235
|
-
|
|
3235
|
+
N.filter((G) => G.subject !== ue.Subject.Business.inventory_stock)
|
|
3236
3236
|
);
|
|
3237
3237
|
if (!C || C.length > 0) {
|
|
3238
3238
|
const G = {
|
|
@@ -3243,53 +3243,53 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3243
3243
|
}
|
|
3244
3244
|
return v;
|
|
3245
3245
|
}
|
|
3246
|
-
const { restaurants: T } = ns(), _ = ds().roles, D = q(() => T.value.map((
|
|
3247
|
-
label: `${
|
|
3248
|
-
value:
|
|
3249
|
-
}))), S = q(() => T.value.reduce((
|
|
3250
|
-
function
|
|
3251
|
-
const C = b(n.value,
|
|
3246
|
+
const { restaurants: T } = ns(), _ = ds().roles, D = q(() => T.value.map((N) => ({
|
|
3247
|
+
label: `${N.profile.code ? N.profile.code + "-" : ""}${N.profile.name}`,
|
|
3248
|
+
value: N._id
|
|
3249
|
+
}))), S = q(() => T.value.reduce((N, C) => (N[C._id] = _.value.filter((v) => v.restaurants.some((G) => G.id === C._id)).map((v) => v._id), N), {})), E = q(() => rs(n.value));
|
|
3250
|
+
function Y(N) {
|
|
3251
|
+
const C = b(n.value, N);
|
|
3252
3252
|
n.value = C;
|
|
3253
3253
|
}
|
|
3254
3254
|
const g = q(() => ls(n.value));
|
|
3255
|
-
function b(
|
|
3255
|
+
function b(N, C) {
|
|
3256
3256
|
var G;
|
|
3257
3257
|
let v = dt(
|
|
3258
|
-
|
|
3258
|
+
N.filter(
|
|
3259
3259
|
(W) => W.subject !== ue.Subject.Business.restaurant && W.subject !== ue.Subject.Restaurant.restaurant
|
|
3260
3260
|
)
|
|
3261
3261
|
);
|
|
3262
3262
|
if (!C || C.length > 0) {
|
|
3263
3263
|
const {
|
|
3264
3264
|
category: W,
|
|
3265
|
-
showByFeatureFlag:
|
|
3265
|
+
showByFeatureFlag: U,
|
|
3266
3266
|
...te
|
|
3267
3267
|
} = cs.restaurant;
|
|
3268
3268
|
v.push(te);
|
|
3269
|
-
const
|
|
3269
|
+
const B = {
|
|
3270
3270
|
actions: [ue.Action.manage],
|
|
3271
3271
|
subject: ue.Subject.Restaurant.restaurant
|
|
3272
3272
|
};
|
|
3273
|
-
C && (
|
|
3273
|
+
C && (B.conditions = JSON.stringify({ restaurantId: { $in: C } })), v.push(B);
|
|
3274
3274
|
}
|
|
3275
3275
|
if (C) {
|
|
3276
3276
|
const W = [
|
|
3277
3277
|
...new Set(C.map((te) => S.value[te]).flatMap((te) => te))
|
|
3278
|
-
],
|
|
3279
|
-
W.length !==
|
|
3278
|
+
], U = _.value.map((te) => te._id);
|
|
3279
|
+
W.length !== U.length && (v = I(
|
|
3280
3280
|
v,
|
|
3281
|
-
(G = g.value ||
|
|
3281
|
+
(G = g.value || U) == null ? void 0 : G.filter((te) => W.includes(te))
|
|
3282
3282
|
));
|
|
3283
3283
|
}
|
|
3284
3284
|
return v;
|
|
3285
3285
|
}
|
|
3286
|
-
function R(
|
|
3287
|
-
const C = I(n.value,
|
|
3286
|
+
function R(N) {
|
|
3287
|
+
const C = I(n.value, N);
|
|
3288
3288
|
n.value = C;
|
|
3289
3289
|
}
|
|
3290
|
-
function I(
|
|
3290
|
+
function I(N, C) {
|
|
3291
3291
|
let v = dt(
|
|
3292
|
-
|
|
3292
|
+
N.filter((G) => G.subject !== ue.Subject.Business.role)
|
|
3293
3293
|
);
|
|
3294
3294
|
if (C && C.length > 0) {
|
|
3295
3295
|
const G = {
|
|
@@ -3303,7 +3303,7 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3303
3303
|
}
|
|
3304
3304
|
Cn(async () => {
|
|
3305
3305
|
await Promise.all([
|
|
3306
|
-
Fr.readWarehouses().then((
|
|
3306
|
+
Fr.readWarehouses().then((N) => A.value = N),
|
|
3307
3307
|
c()
|
|
3308
3308
|
]);
|
|
3309
3309
|
});
|
|
@@ -3319,57 +3319,57 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3319
3319
|
if (!G.includes("manage")) return v;
|
|
3320
3320
|
const W = m(v.subject);
|
|
3321
3321
|
if (!W) return v;
|
|
3322
|
-
const
|
|
3323
|
-
return
|
|
3322
|
+
const U = W.actions;
|
|
3323
|
+
return U.length <= 1 || U.filter((B) => !G.includes(B)).length === 0 ? v : { ...v, actions: [...U] };
|
|
3324
3324
|
}));
|
|
3325
|
-
function
|
|
3325
|
+
function x(N) {
|
|
3326
3326
|
const C = new Set(
|
|
3327
|
-
F.value.filter((
|
|
3327
|
+
F.value.filter((U) => !U.inverted).map((U) => U.subject)
|
|
3328
3328
|
), v = new Set(
|
|
3329
|
-
|
|
3329
|
+
N.filter((U) => !U.inverted).map((U) => U.subject)
|
|
3330
3330
|
), G = new Set(
|
|
3331
|
-
n.value.filter((
|
|
3331
|
+
n.value.filter((U) => !U.inverted).map((U) => U.subject)
|
|
3332
3332
|
);
|
|
3333
3333
|
let W = [...n.value];
|
|
3334
|
-
for (const
|
|
3335
|
-
v.has(
|
|
3334
|
+
for (const U of C)
|
|
3335
|
+
v.has(U) || (G.has(U) && (W = W.filter((B) => B.subject !== U)), (!G.has(U) || Ot(
|
|
3336
3336
|
W,
|
|
3337
3337
|
Lt
|
|
3338
3338
|
).some(
|
|
3339
|
-
(
|
|
3340
|
-
)) && !W.some((
|
|
3341
|
-
for (const
|
|
3342
|
-
if (!C.has(
|
|
3343
|
-
const te = W.some((
|
|
3344
|
-
if (W = W.filter((
|
|
3345
|
-
const
|
|
3346
|
-
(fe) => fe.subject ===
|
|
3347
|
-
), be = m(
|
|
3348
|
-
if (be &&
|
|
3349
|
-
const { category: fe, showByFeatureFlag:
|
|
3350
|
-
W.push({ ...
|
|
3339
|
+
(B) => B.subject === U && !B.inverted && B.actions.includes("manage")
|
|
3340
|
+
)) && !W.some((B) => B.subject === U && B.inverted) && W.push({ subject: U, actions: ["manage"], inverted: !0 }));
|
|
3341
|
+
for (const U of v)
|
|
3342
|
+
if (!C.has(U)) {
|
|
3343
|
+
const te = W.some((B) => B.subject === U && B.inverted);
|
|
3344
|
+
if (W = W.filter((B) => !(B.subject === U && B.inverted)), !te && !G.has(U)) {
|
|
3345
|
+
const B = N.find(
|
|
3346
|
+
(fe) => fe.subject === U && !fe.inverted
|
|
3347
|
+
), be = m(U);
|
|
3348
|
+
if (be && B) {
|
|
3349
|
+
const { category: fe, showByFeatureFlag: H, ...Z } = be;
|
|
3350
|
+
W.push({ ...Z, actions: B.actions });
|
|
3351
3351
|
}
|
|
3352
3352
|
}
|
|
3353
3353
|
}
|
|
3354
|
-
for (const
|
|
3355
|
-
if (!C.has(
|
|
3354
|
+
for (const U of v) {
|
|
3355
|
+
if (!C.has(U)) continue;
|
|
3356
3356
|
const te = F.value.find(
|
|
3357
|
-
(
|
|
3358
|
-
),
|
|
3359
|
-
if (!te || !
|
|
3360
|
-
const be = new Set(te.actions), fe = new Set(
|
|
3361
|
-
if (be.size === fe.size && [...be].every((
|
|
3357
|
+
(Z) => Z.subject === U && !Z.inverted
|
|
3358
|
+
), B = N.find((Z) => Z.subject === U && !Z.inverted);
|
|
3359
|
+
if (!te || !B) continue;
|
|
3360
|
+
const be = new Set(te.actions), fe = new Set(B.actions);
|
|
3361
|
+
if (be.size === fe.size && [...be].every((Z) => fe.has(Z)))
|
|
3362
3362
|
continue;
|
|
3363
|
-
const
|
|
3364
|
-
if (
|
|
3365
|
-
W[
|
|
3366
|
-
...W[
|
|
3363
|
+
const H = W.findIndex((Z) => Z.subject === U && !Z.inverted);
|
|
3364
|
+
if (H >= 0)
|
|
3365
|
+
W[H] = {
|
|
3366
|
+
...W[H],
|
|
3367
3367
|
actions: Array.from(fe)
|
|
3368
3368
|
};
|
|
3369
3369
|
else {
|
|
3370
|
-
const
|
|
3371
|
-
if (
|
|
3372
|
-
const { category: Ee, showByFeatureFlag: $e, ...Je } =
|
|
3370
|
+
const Z = m(U);
|
|
3371
|
+
if (Z) {
|
|
3372
|
+
const { category: Ee, showByFeatureFlag: $e, ...Je } = Z;
|
|
3373
3373
|
W.push({ ...Je, actions: Array.from(fe) });
|
|
3374
3374
|
}
|
|
3375
3375
|
}
|
|
@@ -3377,25 +3377,25 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3377
3377
|
W,
|
|
3378
3378
|
Lt
|
|
3379
3379
|
).some(
|
|
3380
|
-
(Ee) => Ee.subject ===
|
|
3381
|
-
) && !W.some((Ee) => Ee.subject ===
|
|
3380
|
+
(Ee) => Ee.subject === U && !Ee.inverted && Ee.actions.includes("manage")
|
|
3381
|
+
) && !W.some((Ee) => Ee.subject === U && Ee.inverted) && W.push({ subject: U, actions: ["manage"], inverted: !0 }), !be.has("manage") && fe.has("manage") && (W = W.filter((Z) => !(Z.subject === U && Z.inverted)));
|
|
3382
3382
|
}
|
|
3383
3383
|
n.value = W;
|
|
3384
3384
|
}
|
|
3385
3385
|
return St(
|
|
3386
3386
|
n,
|
|
3387
|
-
(
|
|
3388
|
-
l("permissionChanged",
|
|
3387
|
+
(N) => {
|
|
3388
|
+
l("permissionChanged", N);
|
|
3389
3389
|
},
|
|
3390
3390
|
{ deep: !0 }
|
|
3391
|
-
), (
|
|
3392
|
-
se("div",
|
|
3391
|
+
), (N, C) => (Q(), oe("div", Ur, [
|
|
3392
|
+
se("div", jr, [
|
|
3393
3393
|
_e(Tr, {
|
|
3394
3394
|
"model-value": F.value,
|
|
3395
3395
|
"excluded-subjects": w,
|
|
3396
3396
|
"additional-permissions": $(u),
|
|
3397
|
-
"onUpdate:modelValue":
|
|
3398
|
-
},
|
|
3397
|
+
"onUpdate:modelValue": x
|
|
3398
|
+
}, xe({ _: 2 }, [
|
|
3399
3399
|
ge(p.value, (v) => ({
|
|
3400
3400
|
name: `checkbox-${v.id}-append`,
|
|
3401
3401
|
fn: pe(() => [
|
|
@@ -3410,8 +3410,8 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3410
3410
|
options: M.value,
|
|
3411
3411
|
context: $(a)("team.labels.warehouse"),
|
|
3412
3412
|
"onUpdate:modelValue": i
|
|
3413
|
-
},
|
|
3414
|
-
ge(
|
|
3413
|
+
}, xe({ _: 2 }, [
|
|
3414
|
+
ge(y.value, (v) => ({
|
|
3415
3415
|
name: `checkbox-${v.id}-append`,
|
|
3416
3416
|
fn: pe(() => [
|
|
3417
3417
|
_e(ct, { item: v }, null, 8, ["item"])
|
|
@@ -3424,8 +3424,8 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3424
3424
|
"model-value": E.value,
|
|
3425
3425
|
options: D.value,
|
|
3426
3426
|
context: $(a)("team.labels.restaurant"),
|
|
3427
|
-
"onUpdate:modelValue":
|
|
3428
|
-
},
|
|
3427
|
+
"onUpdate:modelValue": Y
|
|
3428
|
+
}, xe({ _: 2 }, [
|
|
3429
3429
|
ge(L.value, (v) => ({
|
|
3430
3430
|
name: `checkbox-${v.id}-append`,
|
|
3431
3431
|
fn: pe(() => [
|
|
@@ -3440,7 +3440,7 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3440
3440
|
"model-value": g.value,
|
|
3441
3441
|
"restaurant-ids": E.value,
|
|
3442
3442
|
"onUpdate:modelValue": R
|
|
3443
|
-
},
|
|
3443
|
+
}, xe({ _: 2 }, [
|
|
3444
3444
|
ge(O.value, (v) => ({
|
|
3445
3445
|
name: `checkbox-${v.id}-append`,
|
|
3446
3446
|
fn: pe(() => [
|
|
@@ -3453,5 +3453,5 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3453
3453
|
}
|
|
3454
3454
|
});
|
|
3455
3455
|
export {
|
|
3456
|
-
|
|
3456
|
+
zr as _
|
|
3457
3457
|
};
|