@feedmepos/mf-hrm-portal 2.0.17-dev.4 → 2.0.17
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-CV82_8fj.js → AuditLogList-DwCmJovS.js} +4 -4
- package/dist/{EmployeeList-dE0So94R.js → EmployeeList-8166DlII.js} +5 -5
- package/dist/{Main-CfAQYaaW.js → Main-C4LaqZaa.js} +4 -4
- package/dist/{Main-CyReTP3K.js → Main-C7Q3OELU.js} +4 -4
- package/dist/{Main-BAx-c_oZ.js → Main-CCTDT_TG.js} +9 -9
- package/dist/{PermissionSetList-DmsJnW2i.js → PermissionSetList-trnHwNFR.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BbcY9q1x.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bc5nE9NF.js} +622 -622
- package/dist/{RoleList-CKB8L-BW.js → RoleList-DJtbEUSC.js} +7 -7
- package/dist/{TeamMemberList-CszlbmAX.js → TeamMemberList-C6qx-yJi.js} +6 -6
- package/dist/{TimesheetList-NRUfSiYL.js → TimesheetList-DhKfguOb.js} +6 -6
- package/dist/{app-B0bANDrM.js → app--3WguZOC.js} +4 -4
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-DdUO0d-2.js → dayjs.min-RrLy0N6G.js} +1 -1
- package/dist/{employee-DJDUT0Wj.js → employee-DSAStcBv.js} +3 -3
- package/dist/{iteration-DqYIXL4P.js → iteration-BQA73VxD.js} +2 -2
- package/dist/{lodash-BBQT31li.js → lodash-B1ouSWpG.js} +1 -1
- package/dist/{rule-T7VKkRdN.js → rule-BL-miuus.js} +2 -2
- package/dist/{timesheet-DjtuB4we.js → timesheet-BbtAYZ1B.js} +2 -2
- package/dist/{useAppStore-CBb-dugK.js → useAppStore-BHWapSDk.js} +1 -1
- package/dist/{useLoading-BCOj8y-t.js → useLoading-D7PklYeR.js} +1 -1
- package/dist/{useReportPermissions-DyzhBpi8.js → useReportPermissions-CNcISy8f.js} +3 -3
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { getCurrentInstance as xt, inject as Jn, ref as
|
|
1
|
+
import { getCurrentInstance as xt, inject as Jn, ref as Ue, shallowRef as Kn, computed as te, watch as St, onMounted as Yt, onUnmounted as Cn, defineComponent as ke, h as Sn, createVNode as _e, Text as zn, Fragment as ye, resolveComponent as Ze, createBlock as we, openBlock as H, withCtx as ge, createElementVNode as se, createElementBlock as ne, toDisplayString as Se, unref as B, renderList as be, renderSlot as ve, createCommentVNode as Le, createTextVNode as Qn, useSlots as qn, normalizeStyle as ut, normalizeClass as et, toRef as Qt, createSlots as Fe, nextTick as es, mergeModels as qt, useModel as ts } from "vue";
|
|
2
2
|
import { useI18n as $e, useCoreStore as ns } from "@feedmepos/mf-common";
|
|
3
3
|
import "@vue/devtools-api";
|
|
4
|
-
import { p as
|
|
5
|
-
import { d as
|
|
6
|
-
import { u as cs, d as us, i as
|
|
7
|
-
import { u as
|
|
4
|
+
import { p as wt, d as ss, v as as, w as Nt, x as rs, j as ls, $ as kt } from "./rule-BL-miuus.js";
|
|
5
|
+
import { d as mt, g as os, b as is } from "./iteration-BQA73VxD.js";
|
|
6
|
+
import { u as cs, d as us, i as me, C as ms, P as Tt } from "./app--3WguZOC.js";
|
|
7
|
+
import { u as ds } from "./useAppStore-BHWapSDk.js";
|
|
8
8
|
/*!
|
|
9
9
|
* shared v10.0.5
|
|
10
10
|
* (c) 2024 kazuya kawaguchi
|
|
11
11
|
* Released under the MIT License.
|
|
12
12
|
*/
|
|
13
|
-
const en = typeof window < "u", Ve = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), fs = (e, t, n) => _s({ l: e, k: t, s: n }), _s = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"),
|
|
13
|
+
const en = typeof window < "u", Ve = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), fs = (e, t, n) => _s({ l: e, k: t, s: n }), _s = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), de = (e) => typeof e == "number" && isFinite(e), ps = (e) => Zt(e) === "[object Date]", ft = (e) => Zt(e) === "[object RegExp]", pt = (e) => J(e) && Object.keys(e).length === 0, fe = Object.assign, bs = Object.create, Q = (e = null) => bs(e);
|
|
14
14
|
let tn;
|
|
15
|
-
const
|
|
15
|
+
const je = () => tn || (tn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : Q());
|
|
16
16
|
function nn(e) {
|
|
17
17
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
18
18
|
}
|
|
@@ -20,15 +20,15 @@ const hs = Object.prototype.hasOwnProperty;
|
|
|
20
20
|
function Ne(e, t) {
|
|
21
21
|
return hs.call(e, t);
|
|
22
22
|
}
|
|
23
|
-
const ue = Array.isArray, re = (e) => typeof e == "function", F = (e) => typeof e == "string", ce = (e) => typeof e == "boolean", K = (e) => e !== null && typeof e == "object", gs = (e) => K(e) && re(e.then) && re(e.catch),
|
|
24
|
-
function
|
|
23
|
+
const ue = Array.isArray, re = (e) => typeof e == "function", F = (e) => typeof e == "string", ce = (e) => typeof e == "boolean", K = (e) => e !== null && typeof e == "object", gs = (e) => K(e) && re(e.then) && re(e.catch), wn = Object.prototype.toString, Zt = (e) => wn.call(e), J = (e) => Zt(e) === "[object Object]", vs = (e) => e == null ? "" : ue(e) || J(e) && e.toString === wn ? JSON.stringify(e, null, 2) : String(e);
|
|
24
|
+
function Xt(e, t = "") {
|
|
25
25
|
return e.reduce((n, s, l) => l === 0 ? n + s : n + t + s, "");
|
|
26
26
|
}
|
|
27
27
|
function Es(e, t) {
|
|
28
28
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
29
29
|
}
|
|
30
30
|
const lt = (e) => !K(e) || ue(e);
|
|
31
|
-
function
|
|
31
|
+
function dt(e, t) {
|
|
32
32
|
if (lt(e) || lt(t))
|
|
33
33
|
throw new Error("Invalid value");
|
|
34
34
|
const n = [{ src: e, des: t }];
|
|
@@ -42,7 +42,7 @@ function mt(e, t) {
|
|
|
42
42
|
function Is(e, t, n) {
|
|
43
43
|
return { line: e, column: t, offset: n };
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Dt(e, t, n) {
|
|
46
46
|
return { start: e, end: t };
|
|
47
47
|
}
|
|
48
48
|
const z = {
|
|
@@ -64,19 +64,19 @@ const z = {
|
|
|
64
64
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
65
65
|
}, ys = 17;
|
|
66
66
|
function bt(e, t, n = {}) {
|
|
67
|
-
const { domain: s, messages: l, args: a } = n, c = e,
|
|
68
|
-
return
|
|
67
|
+
const { domain: s, messages: l, args: a } = n, c = e, m = new SyntaxError(String(c));
|
|
68
|
+
return m.code = e, t && (m.location = t), m.domain = s, m;
|
|
69
69
|
}
|
|
70
70
|
function Ns(e) {
|
|
71
71
|
throw e;
|
|
72
72
|
}
|
|
73
|
-
const Oe = " ",
|
|
74
|
-
`,
|
|
73
|
+
const Oe = " ", ks = "\r", pe = `
|
|
74
|
+
`, Ts = "\u2028", Os = "\u2029";
|
|
75
75
|
function Ls(e) {
|
|
76
76
|
const t = e;
|
|
77
77
|
let n = 0, s = 1, l = 1, a = 0;
|
|
78
|
-
const c = (g) => t[g] ===
|
|
79
|
-
function
|
|
78
|
+
const c = (g) => t[g] === ks && t[g + 1] === pe, m = (g) => t[g] === pe, u = (g) => t[g] === Os, p = (g) => t[g] === Ts, O = (g) => c(g) || m(g) || u(g) || p(g), A = () => n, I = () => s, P = () => l, W = () => a, T = (g) => c(g) || u(g) || p(g) ? pe : t[g], M = () => T(n), i = () => T(n + a);
|
|
79
|
+
function d() {
|
|
80
80
|
return a = 0, O(n) && (s++, l = 0), c(n) && n++, n++, l++, t[n];
|
|
81
81
|
}
|
|
82
82
|
function y() {
|
|
@@ -85,13 +85,13 @@ function Ls(e) {
|
|
|
85
85
|
function _() {
|
|
86
86
|
n = 0, s = 1, l = 1, a = 0;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function D(g = 0) {
|
|
89
89
|
a = g;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function w() {
|
|
92
92
|
const g = n + a;
|
|
93
93
|
for (; g !== n; )
|
|
94
|
-
|
|
94
|
+
d();
|
|
95
95
|
a = 0;
|
|
96
96
|
}
|
|
97
97
|
return {
|
|
@@ -99,25 +99,25 @@ function Ls(e) {
|
|
|
99
99
|
line: I,
|
|
100
100
|
column: P,
|
|
101
101
|
peekOffset: W,
|
|
102
|
-
charAt:
|
|
102
|
+
charAt: T,
|
|
103
103
|
currentChar: M,
|
|
104
104
|
currentPeek: i,
|
|
105
|
-
next:
|
|
105
|
+
next: d,
|
|
106
106
|
peek: y,
|
|
107
107
|
reset: _,
|
|
108
|
-
resetPeek:
|
|
109
|
-
skipToPeek:
|
|
108
|
+
resetPeek: D,
|
|
109
|
+
skipToPeek: w
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
const Ce = void 0, Rs = ".", sn = "'", As = "tokenizer";
|
|
113
113
|
function Cs(e, t = {}) {
|
|
114
|
-
const n = t.location !== !1, s = Ls(e), l = () => s.index(), a = () => Is(s.line(), s.column(), s.index()), c = a(),
|
|
114
|
+
const n = t.location !== !1, s = Ls(e), l = () => s.index(), a = () => Is(s.line(), s.column(), s.index()), c = a(), m = l(), u = {
|
|
115
115
|
currentType: 13,
|
|
116
|
-
offset:
|
|
116
|
+
offset: m,
|
|
117
117
|
startLoc: c,
|
|
118
118
|
endLoc: c,
|
|
119
119
|
lastType: 13,
|
|
120
|
-
lastOffset:
|
|
120
|
+
lastOffset: m,
|
|
121
121
|
lastStartLoc: c,
|
|
122
122
|
lastEndLoc: c,
|
|
123
123
|
braceNest: 0,
|
|
@@ -127,7 +127,7 @@ function Cs(e, t = {}) {
|
|
|
127
127
|
function A(r, o, h, ...V) {
|
|
128
128
|
const oe = p();
|
|
129
129
|
if (o.column += h, o.offset += h, O) {
|
|
130
|
-
const
|
|
130
|
+
const X = n ? Dt(oe.startLoc, o) : null, f = bt(r, X, {
|
|
131
131
|
domain: As,
|
|
132
132
|
args: V
|
|
133
133
|
});
|
|
@@ -137,7 +137,7 @@ function Cs(e, t = {}) {
|
|
|
137
137
|
function I(r, o, h) {
|
|
138
138
|
r.endLoc = a(), r.currentType = o;
|
|
139
139
|
const V = { type: o };
|
|
140
|
-
return n && (V.loc =
|
|
140
|
+
return n && (V.loc = Dt(r.startLoc, r.endLoc)), h != null && (V.value = h), V;
|
|
141
141
|
}
|
|
142
142
|
const P = (r) => I(
|
|
143
143
|
r,
|
|
@@ -147,14 +147,14 @@ function Cs(e, t = {}) {
|
|
|
147
147
|
function W(r, o) {
|
|
148
148
|
return r.currentChar() === o ? (r.next(), o) : (A(z.EXPECTED_TOKEN, a(), 0, o), "");
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function T(r) {
|
|
151
151
|
let o = "";
|
|
152
152
|
for (; r.currentPeek() === Oe || r.currentPeek() === pe; )
|
|
153
153
|
o += r.currentPeek(), r.peek();
|
|
154
154
|
return o;
|
|
155
155
|
}
|
|
156
156
|
function M(r) {
|
|
157
|
-
const o =
|
|
157
|
+
const o = T(r);
|
|
158
158
|
return r.skipToPeek(), o;
|
|
159
159
|
}
|
|
160
160
|
function i(r) {
|
|
@@ -165,7 +165,7 @@ function Cs(e, t = {}) {
|
|
|
165
165
|
o >= 65 && o <= 90 || // A-Z
|
|
166
166
|
o === 95;
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function d(r) {
|
|
169
169
|
if (r === Ce)
|
|
170
170
|
return !1;
|
|
171
171
|
const o = r.charCodeAt(0);
|
|
@@ -175,7 +175,7 @@ function Cs(e, t = {}) {
|
|
|
175
175
|
const { currentType: h } = o;
|
|
176
176
|
if (h !== 2)
|
|
177
177
|
return !1;
|
|
178
|
-
|
|
178
|
+
T(r);
|
|
179
179
|
const V = i(r.currentPeek());
|
|
180
180
|
return r.resetPeek(), V;
|
|
181
181
|
}
|
|
@@ -183,23 +183,23 @@ function Cs(e, t = {}) {
|
|
|
183
183
|
const { currentType: h } = o;
|
|
184
184
|
if (h !== 2)
|
|
185
185
|
return !1;
|
|
186
|
-
|
|
187
|
-
const V = r.currentPeek() === "-" ? r.peek() : r.currentPeek(), oe =
|
|
186
|
+
T(r);
|
|
187
|
+
const V = r.currentPeek() === "-" ? r.peek() : r.currentPeek(), oe = d(V);
|
|
188
188
|
return r.resetPeek(), oe;
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function D(r, o) {
|
|
191
191
|
const { currentType: h } = o;
|
|
192
192
|
if (h !== 2)
|
|
193
193
|
return !1;
|
|
194
|
-
|
|
194
|
+
T(r);
|
|
195
195
|
const V = r.currentPeek() === sn;
|
|
196
196
|
return r.resetPeek(), V;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function w(r, o) {
|
|
199
199
|
const { currentType: h } = o;
|
|
200
200
|
if (h !== 7)
|
|
201
201
|
return !1;
|
|
202
|
-
|
|
202
|
+
T(r);
|
|
203
203
|
const V = r.currentPeek() === ".";
|
|
204
204
|
return r.resetPeek(), V;
|
|
205
205
|
}
|
|
@@ -207,7 +207,7 @@ function Cs(e, t = {}) {
|
|
|
207
207
|
const { currentType: h } = o;
|
|
208
208
|
if (h !== 8)
|
|
209
209
|
return !1;
|
|
210
|
-
|
|
210
|
+
T(r);
|
|
211
211
|
const V = i(r.currentPeek());
|
|
212
212
|
return r.resetPeek(), V;
|
|
213
213
|
}
|
|
@@ -215,7 +215,7 @@ function Cs(e, t = {}) {
|
|
|
215
215
|
const { currentType: h } = o;
|
|
216
216
|
if (!(h === 7 || h === 11))
|
|
217
217
|
return !1;
|
|
218
|
-
|
|
218
|
+
T(r);
|
|
219
219
|
const V = r.currentPeek() === ":";
|
|
220
220
|
return r.resetPeek(), V;
|
|
221
221
|
}
|
|
@@ -224,20 +224,20 @@ function Cs(e, t = {}) {
|
|
|
224
224
|
if (h !== 9)
|
|
225
225
|
return !1;
|
|
226
226
|
const V = () => {
|
|
227
|
-
const
|
|
228
|
-
return
|
|
227
|
+
const X = r.currentPeek();
|
|
228
|
+
return X === "{" ? i(r.peek()) : X === "@" || X === "|" || X === ":" || X === "." || X === Oe || !X ? !1 : X === pe ? (r.peek(), V()) : b(r, !1);
|
|
229
229
|
}, oe = V();
|
|
230
230
|
return r.resetPeek(), oe;
|
|
231
231
|
}
|
|
232
232
|
function N(r) {
|
|
233
|
-
|
|
233
|
+
T(r);
|
|
234
234
|
const o = r.currentPeek() === "|";
|
|
235
235
|
return r.resetPeek(), o;
|
|
236
236
|
}
|
|
237
237
|
function b(r, o = !0) {
|
|
238
|
-
const h = (oe = !1,
|
|
238
|
+
const h = (oe = !1, X = "") => {
|
|
239
239
|
const f = r.currentPeek();
|
|
240
|
-
return f === "{" || f === "@" || !f ? oe : f === "|" ? !(
|
|
240
|
+
return f === "{" || f === "@" || !f ? oe : f === "|" ? !(X === Oe || X === pe) : f === Oe ? (r.peek(), h(!0, Oe)) : f === pe ? (r.peek(), h(!0, pe)) : !0;
|
|
241
241
|
}, V = h();
|
|
242
242
|
return o && r.resetPeek(), V;
|
|
243
243
|
}
|
|
@@ -245,7 +245,7 @@ function Cs(e, t = {}) {
|
|
|
245
245
|
const h = r.currentChar();
|
|
246
246
|
return h === Ce ? Ce : o(h) ? (r.next(), h) : null;
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function U(r) {
|
|
249
249
|
const o = r.charCodeAt(0);
|
|
250
250
|
return o >= 97 && o <= 122 || // a-z
|
|
251
251
|
o >= 65 && o <= 90 || // A-Z
|
|
@@ -254,7 +254,7 @@ function Cs(e, t = {}) {
|
|
|
254
254
|
o === 36;
|
|
255
255
|
}
|
|
256
256
|
function G(r) {
|
|
257
|
-
return C(r,
|
|
257
|
+
return C(r, U);
|
|
258
258
|
}
|
|
259
259
|
function S(r) {
|
|
260
260
|
const o = r.charCodeAt(0);
|
|
@@ -265,14 +265,14 @@ function Cs(e, t = {}) {
|
|
|
265
265
|
o === 36 || // $
|
|
266
266
|
o === 45;
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function k(r) {
|
|
269
269
|
return C(r, S);
|
|
270
270
|
}
|
|
271
271
|
function L(r) {
|
|
272
272
|
const o = r.charCodeAt(0);
|
|
273
273
|
return o >= 48 && o <= 57;
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function Z(r) {
|
|
276
276
|
return C(r, L);
|
|
277
277
|
}
|
|
278
278
|
function x(r) {
|
|
@@ -281,12 +281,12 @@ function Cs(e, t = {}) {
|
|
|
281
281
|
o >= 65 && o <= 70 || // A-F
|
|
282
282
|
o >= 97 && o <= 102;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function j(r) {
|
|
285
285
|
return C(r, x);
|
|
286
286
|
}
|
|
287
287
|
function q(r) {
|
|
288
288
|
let o = "", h = "";
|
|
289
|
-
for (; o =
|
|
289
|
+
for (; o = Z(r); )
|
|
290
290
|
h += o;
|
|
291
291
|
return h;
|
|
292
292
|
}
|
|
@@ -312,7 +312,7 @@ function Cs(e, t = {}) {
|
|
|
312
312
|
function he(r) {
|
|
313
313
|
M(r);
|
|
314
314
|
let o = "", h = "";
|
|
315
|
-
for (; o =
|
|
315
|
+
for (; o = k(r); )
|
|
316
316
|
h += o;
|
|
317
317
|
return r.currentChar() === Ce && A(z.UNTERMINATED_CLOSING_BRACE, a(), 0), h;
|
|
318
318
|
}
|
|
@@ -350,12 +350,12 @@ function Cs(e, t = {}) {
|
|
|
350
350
|
W(r, o);
|
|
351
351
|
let V = "";
|
|
352
352
|
for (let oe = 0; oe < h; oe++) {
|
|
353
|
-
const
|
|
354
|
-
if (!
|
|
353
|
+
const X = j(r);
|
|
354
|
+
if (!X) {
|
|
355
355
|
A(z.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${V}${r.currentChar()}`);
|
|
356
356
|
break;
|
|
357
357
|
}
|
|
358
|
-
V +=
|
|
358
|
+
V += X;
|
|
359
359
|
}
|
|
360
360
|
return `\\${o}${V}`;
|
|
361
361
|
}
|
|
@@ -411,18 +411,18 @@ function Cs(e, t = {}) {
|
|
|
411
411
|
case "@":
|
|
412
412
|
return o.braceNest > 0 && A(z.UNTERMINATED_CLOSING_BRACE, a(), 0), h = Ge(r, o) || P(o), o.braceNest = 0, h;
|
|
413
413
|
default: {
|
|
414
|
-
let oe = !0,
|
|
414
|
+
let oe = !0, X = !0, f = !0;
|
|
415
415
|
if (N(r))
|
|
416
416
|
return o.braceNest > 0 && A(z.UNTERMINATED_CLOSING_BRACE, a(), 0), h = I(o, 1, ze(r)), o.braceNest = 0, o.inLinked = !1, h;
|
|
417
417
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
418
418
|
return A(z.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, Qe(r, o);
|
|
419
419
|
if (oe = y(r, o))
|
|
420
420
|
return h = I(o, 4, he(r)), M(r), h;
|
|
421
|
-
if (
|
|
421
|
+
if (X = _(r, o))
|
|
422
422
|
return h = I(o, 5, Y(r)), M(r), h;
|
|
423
|
-
if (f =
|
|
423
|
+
if (f = D(r, o))
|
|
424
424
|
return h = I(o, 6, ae(r)), M(r), h;
|
|
425
|
-
if (!oe && !
|
|
425
|
+
if (!oe && !X && !f)
|
|
426
426
|
return h = I(o, 12, vt(r)), A(z.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, h.value), M(r), h;
|
|
427
427
|
break;
|
|
428
428
|
}
|
|
@@ -456,7 +456,7 @@ function Cs(e, t = {}) {
|
|
|
456
456
|
/* TokenChars.LinkedDelimiter */
|
|
457
457
|
);
|
|
458
458
|
default:
|
|
459
|
-
return N(r) ? (V = I(o, 1, ze(r)), o.braceNest = 0, o.inLinked = !1, V) :
|
|
459
|
+
return N(r) ? (V = I(o, 1, ze(r)), o.braceNest = 0, o.inLinked = !1, V) : w(r, o) || E(r, o) ? (M(r), Ge(r, o)) : g(r, o) ? (M(r), I(o, 11, Et(r))) : R(r, o) ? (M(r), oe === "{" ? We(r, o) || V : I(o, 10, It(r))) : (h === 7 && A(z.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, Qe(r, o));
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
462
|
function Qe(r, o) {
|
|
@@ -505,8 +505,8 @@ function Cs(e, t = {}) {
|
|
|
505
505
|
context: p
|
|
506
506
|
};
|
|
507
507
|
}
|
|
508
|
-
const Ss = "parser",
|
|
509
|
-
function
|
|
508
|
+
const Ss = "parser", ws = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
509
|
+
function Ds(e, t, n) {
|
|
510
510
|
switch (e) {
|
|
511
511
|
case "\\\\":
|
|
512
512
|
return "\\";
|
|
@@ -520,76 +520,76 @@ function ws(e, t, n) {
|
|
|
520
520
|
}
|
|
521
521
|
function Ms(e = {}) {
|
|
522
522
|
const t = e.location !== !1, { onError: n } = e;
|
|
523
|
-
function s(i,
|
|
524
|
-
const
|
|
525
|
-
if (
|
|
526
|
-
const g = t ?
|
|
523
|
+
function s(i, d, y, _, ...D) {
|
|
524
|
+
const w = i.currentPosition();
|
|
525
|
+
if (w.offset += _, w.column += _, n) {
|
|
526
|
+
const g = t ? Dt(y, w) : null, E = bt(d, g, {
|
|
527
527
|
domain: Ss,
|
|
528
|
-
args:
|
|
528
|
+
args: D
|
|
529
529
|
});
|
|
530
530
|
n(E);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
|
-
function l(i,
|
|
533
|
+
function l(i, d, y) {
|
|
534
534
|
const _ = { type: i };
|
|
535
|
-
return t && (_.start =
|
|
535
|
+
return t && (_.start = d, _.end = d, _.loc = { start: y, end: y }), _;
|
|
536
536
|
}
|
|
537
|
-
function a(i,
|
|
538
|
-
t && (i.end =
|
|
537
|
+
function a(i, d, y, _) {
|
|
538
|
+
t && (i.end = d, i.loc && (i.loc.end = y));
|
|
539
539
|
}
|
|
540
|
-
function c(i,
|
|
540
|
+
function c(i, d) {
|
|
541
541
|
const y = i.context(), _ = l(3, y.offset, y.startLoc);
|
|
542
|
-
return _.value =
|
|
542
|
+
return _.value = d, a(_, i.currentOffset(), i.currentPosition()), _;
|
|
543
543
|
}
|
|
544
|
-
function
|
|
545
|
-
const y = i.context(), { lastOffset: _, lastStartLoc:
|
|
546
|
-
return
|
|
544
|
+
function m(i, d) {
|
|
545
|
+
const y = i.context(), { lastOffset: _, lastStartLoc: D } = y, w = l(5, _, D);
|
|
546
|
+
return w.index = parseInt(d, 10), i.nextToken(), a(w, i.currentOffset(), i.currentPosition()), w;
|
|
547
547
|
}
|
|
548
|
-
function u(i,
|
|
549
|
-
const y = i.context(), { lastOffset: _, lastStartLoc:
|
|
550
|
-
return
|
|
548
|
+
function u(i, d) {
|
|
549
|
+
const y = i.context(), { lastOffset: _, lastStartLoc: D } = y, w = l(4, _, D);
|
|
550
|
+
return w.key = d, i.nextToken(), a(w, i.currentOffset(), i.currentPosition()), w;
|
|
551
551
|
}
|
|
552
|
-
function p(i,
|
|
553
|
-
const y = i.context(), { lastOffset: _, lastStartLoc:
|
|
554
|
-
return
|
|
552
|
+
function p(i, d) {
|
|
553
|
+
const y = i.context(), { lastOffset: _, lastStartLoc: D } = y, w = l(9, _, D);
|
|
554
|
+
return w.value = d.replace(ws, Ds), i.nextToken(), a(w, i.currentOffset(), i.currentPosition()), w;
|
|
555
555
|
}
|
|
556
556
|
function O(i) {
|
|
557
|
-
const
|
|
558
|
-
return
|
|
559
|
-
nextConsumeToken:
|
|
560
|
-
node:
|
|
561
|
-
}) : (
|
|
562
|
-
node:
|
|
557
|
+
const d = i.nextToken(), y = i.context(), { lastOffset: _, lastStartLoc: D } = y, w = l(8, _, D);
|
|
558
|
+
return d.type !== 11 ? (s(i, z.UNEXPECTED_EMPTY_LINKED_MODIFIER, y.lastStartLoc, 0), w.value = "", a(w, _, D), {
|
|
559
|
+
nextConsumeToken: d,
|
|
560
|
+
node: w
|
|
561
|
+
}) : (d.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, Te(d)), w.value = d.value || "", a(w, i.currentOffset(), i.currentPosition()), {
|
|
562
|
+
node: w
|
|
563
563
|
});
|
|
564
564
|
}
|
|
565
|
-
function A(i,
|
|
565
|
+
function A(i, d) {
|
|
566
566
|
const y = i.context(), _ = l(7, y.offset, y.startLoc);
|
|
567
|
-
return _.value =
|
|
567
|
+
return _.value = d, a(_, i.currentOffset(), i.currentPosition()), _;
|
|
568
568
|
}
|
|
569
569
|
function I(i) {
|
|
570
|
-
const
|
|
570
|
+
const d = i.context(), y = l(6, d.offset, d.startLoc);
|
|
571
571
|
let _ = i.nextToken();
|
|
572
572
|
if (_.type === 8) {
|
|
573
|
-
const
|
|
574
|
-
y.modifier =
|
|
573
|
+
const D = O(i);
|
|
574
|
+
y.modifier = D.node, _ = D.nextConsumeToken || i.nextToken();
|
|
575
575
|
}
|
|
576
|
-
switch (_.type !== 9 && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
576
|
+
switch (_.type !== 9 && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Te(_)), _ = i.nextToken(), _.type === 2 && (_ = i.nextToken()), _.type) {
|
|
577
577
|
case 10:
|
|
578
|
-
_.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
578
|
+
_.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Te(_)), y.key = A(i, _.value || "");
|
|
579
579
|
break;
|
|
580
580
|
case 4:
|
|
581
|
-
_.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
581
|
+
_.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Te(_)), y.key = u(i, _.value || "");
|
|
582
582
|
break;
|
|
583
583
|
case 5:
|
|
584
|
-
_.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
584
|
+
_.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Te(_)), y.key = m(i, _.value || "");
|
|
585
585
|
break;
|
|
586
586
|
case 6:
|
|
587
|
-
_.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
587
|
+
_.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Te(_)), y.key = p(i, _.value || "");
|
|
588
588
|
break;
|
|
589
589
|
default: {
|
|
590
|
-
s(i, z.UNEXPECTED_EMPTY_LINKED_KEY,
|
|
591
|
-
const
|
|
592
|
-
return
|
|
590
|
+
s(i, z.UNEXPECTED_EMPTY_LINKED_KEY, d.lastStartLoc, 0);
|
|
591
|
+
const D = i.context(), w = l(7, D.offset, D.startLoc);
|
|
592
|
+
return w.value = "", a(w, D.offset, D.startLoc), y.key = w, a(y, D.offset, D.startLoc), {
|
|
593
593
|
nextConsumeToken: _,
|
|
594
594
|
node: y
|
|
595
595
|
};
|
|
@@ -600,56 +600,56 @@ function Ms(e = {}) {
|
|
|
600
600
|
};
|
|
601
601
|
}
|
|
602
602
|
function P(i) {
|
|
603
|
-
const
|
|
604
|
-
|
|
605
|
-
let
|
|
603
|
+
const d = i.context(), y = d.currentType === 1 ? i.currentOffset() : d.offset, _ = d.currentType === 1 ? d.endLoc : d.startLoc, D = l(2, y, _);
|
|
604
|
+
D.items = [];
|
|
605
|
+
let w = null;
|
|
606
606
|
do {
|
|
607
|
-
const R =
|
|
608
|
-
switch (
|
|
607
|
+
const R = w || i.nextToken();
|
|
608
|
+
switch (w = null, R.type) {
|
|
609
609
|
case 0:
|
|
610
|
-
R.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
610
|
+
R.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Te(R)), D.items.push(c(i, R.value || ""));
|
|
611
611
|
break;
|
|
612
612
|
case 5:
|
|
613
|
-
R.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
613
|
+
R.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Te(R)), D.items.push(m(i, R.value || ""));
|
|
614
614
|
break;
|
|
615
615
|
case 4:
|
|
616
|
-
R.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
616
|
+
R.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Te(R)), D.items.push(u(i, R.value || ""));
|
|
617
617
|
break;
|
|
618
618
|
case 6:
|
|
619
|
-
R.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
619
|
+
R.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Te(R)), D.items.push(p(i, R.value || ""));
|
|
620
620
|
break;
|
|
621
621
|
case 7: {
|
|
622
622
|
const N = I(i);
|
|
623
|
-
|
|
623
|
+
D.items.push(N.node), w = N.nextConsumeToken || null;
|
|
624
624
|
break;
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
|
-
} while (
|
|
628
|
-
const g =
|
|
629
|
-
return a(
|
|
630
|
-
}
|
|
631
|
-
function W(i,
|
|
632
|
-
const
|
|
633
|
-
let
|
|
634
|
-
const g = l(1,
|
|
627
|
+
} while (d.currentType !== 13 && d.currentType !== 1);
|
|
628
|
+
const g = d.currentType === 1 ? d.lastOffset : i.currentOffset(), E = d.currentType === 1 ? d.lastEndLoc : i.currentPosition();
|
|
629
|
+
return a(D, g, E), D;
|
|
630
|
+
}
|
|
631
|
+
function W(i, d, y, _) {
|
|
632
|
+
const D = i.context();
|
|
633
|
+
let w = _.items.length === 0;
|
|
634
|
+
const g = l(1, d, y);
|
|
635
635
|
g.cases = [], g.cases.push(_);
|
|
636
636
|
do {
|
|
637
637
|
const E = P(i);
|
|
638
|
-
|
|
639
|
-
} while (
|
|
640
|
-
return
|
|
638
|
+
w || (w = E.items.length === 0), g.cases.push(E);
|
|
639
|
+
} while (D.currentType !== 13);
|
|
640
|
+
return w && s(i, z.MUST_HAVE_MESSAGES_IN_PLURAL, y, 0), a(g, i.currentOffset(), i.currentPosition()), g;
|
|
641
641
|
}
|
|
642
|
-
function
|
|
643
|
-
const
|
|
644
|
-
return
|
|
642
|
+
function T(i) {
|
|
643
|
+
const d = i.context(), { offset: y, startLoc: _ } = d, D = P(i);
|
|
644
|
+
return d.currentType === 13 ? D : W(i, y, _, D);
|
|
645
645
|
}
|
|
646
646
|
function M(i) {
|
|
647
|
-
const
|
|
648
|
-
return t && _.loc && (_.loc.source = i), _.body =
|
|
647
|
+
const d = Cs(i, fe({}, e)), y = d.context(), _ = l(0, y.offset, y.startLoc);
|
|
648
|
+
return t && _.loc && (_.loc.source = i), _.body = T(d), e.onCacheKey && (_.cacheKey = e.onCacheKey(i)), y.currentType !== 13 && s(d, z.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, i[y.offset] || ""), a(_, d.currentOffset(), d.currentPosition()), _;
|
|
649
649
|
}
|
|
650
650
|
return { parse: M };
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function Te(e) {
|
|
653
653
|
if (e.type === 13)
|
|
654
654
|
return "EOF";
|
|
655
655
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
@@ -716,7 +716,7 @@ function Fs(e, t = {}) {
|
|
|
716
716
|
const s = n.context();
|
|
717
717
|
e.helpers = Array.from(s.helpers);
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function js(e) {
|
|
720
720
|
const t = e.body;
|
|
721
721
|
return t.type === 2 ? rn(t) : t.cases.forEach((n) => rn(n)), e;
|
|
722
722
|
}
|
|
@@ -733,7 +733,7 @@ function rn(e) {
|
|
|
733
733
|
t.push(s.value);
|
|
734
734
|
}
|
|
735
735
|
if (t.length === e.items.length) {
|
|
736
|
-
e.static =
|
|
736
|
+
e.static = Xt(t);
|
|
737
737
|
for (let n = 0; n < e.items.length; n++) {
|
|
738
738
|
const s = e.items[n];
|
|
739
739
|
(s.type === 3 || s.type === 9) && delete s.value;
|
|
@@ -788,7 +788,7 @@ function Ye(e) {
|
|
|
788
788
|
}
|
|
789
789
|
delete e.type;
|
|
790
790
|
}
|
|
791
|
-
function
|
|
791
|
+
function Us(e, t) {
|
|
792
792
|
const { filename: n, breakLineCode: s, needIndent: l } = t, a = t.location !== !1, c = {
|
|
793
793
|
filename: n,
|
|
794
794
|
code: "",
|
|
@@ -801,32 +801,32 @@ function js(e, t) {
|
|
|
801
801
|
indentLevel: 0
|
|
802
802
|
};
|
|
803
803
|
a && e.loc && (c.source = e.loc.source);
|
|
804
|
-
const
|
|
805
|
-
function u(
|
|
806
|
-
c.code +=
|
|
804
|
+
const m = () => c;
|
|
805
|
+
function u(T, M) {
|
|
806
|
+
c.code += T;
|
|
807
807
|
}
|
|
808
|
-
function p(
|
|
808
|
+
function p(T, M = !0) {
|
|
809
809
|
const i = M ? s : "";
|
|
810
|
-
u(l ? i + " ".repeat(
|
|
810
|
+
u(l ? i + " ".repeat(T) : i);
|
|
811
811
|
}
|
|
812
|
-
function O(
|
|
812
|
+
function O(T = !0) {
|
|
813
813
|
const M = ++c.indentLevel;
|
|
814
|
-
|
|
814
|
+
T && p(M);
|
|
815
815
|
}
|
|
816
|
-
function A(
|
|
816
|
+
function A(T = !0) {
|
|
817
817
|
const M = --c.indentLevel;
|
|
818
|
-
|
|
818
|
+
T && p(M);
|
|
819
819
|
}
|
|
820
820
|
function I() {
|
|
821
821
|
p(c.indentLevel);
|
|
822
822
|
}
|
|
823
823
|
return {
|
|
824
|
-
context:
|
|
824
|
+
context: m,
|
|
825
825
|
push: u,
|
|
826
826
|
indent: O,
|
|
827
827
|
deindent: A,
|
|
828
828
|
newline: I,
|
|
829
|
-
helper: (
|
|
829
|
+
helper: (T) => `_${T}`,
|
|
830
830
|
needIndent: () => c.needIndent
|
|
831
831
|
};
|
|
832
832
|
}
|
|
@@ -835,7 +835,7 @@ function Vs(e, t) {
|
|
|
835
835
|
e.push(`${n(
|
|
836
836
|
"linked"
|
|
837
837
|
/* HelperNameMap.LINKED */
|
|
838
|
-
)}(`),
|
|
838
|
+
)}(`), Xe(e, t.key), t.modifier ? (e.push(", "), Xe(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
839
839
|
}
|
|
840
840
|
function Ws(e, t) {
|
|
841
841
|
const { helper: n, needIndent: s } = e;
|
|
@@ -844,7 +844,7 @@ function Ws(e, t) {
|
|
|
844
844
|
/* HelperNameMap.NORMALIZE */
|
|
845
845
|
)}([`), e.indent(s());
|
|
846
846
|
const l = t.items.length;
|
|
847
|
-
for (let a = 0; a < l && (
|
|
847
|
+
for (let a = 0; a < l && (Xe(e, t.items[a]), a !== l - 1); a++)
|
|
848
848
|
e.push(", ");
|
|
849
849
|
e.deindent(s()), e.push("])");
|
|
850
850
|
}
|
|
@@ -856,15 +856,15 @@ function Gs(e, t) {
|
|
|
856
856
|
/* HelperNameMap.PLURAL */
|
|
857
857
|
)}([`), e.indent(s());
|
|
858
858
|
const l = t.cases.length;
|
|
859
|
-
for (let a = 0; a < l && (
|
|
859
|
+
for (let a = 0; a < l && (Xe(e, t.cases[a]), a !== l - 1); a++)
|
|
860
860
|
e.push(", ");
|
|
861
861
|
e.deindent(s()), e.push("])");
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
864
|
function xs(e, t) {
|
|
865
|
-
t.body ?
|
|
865
|
+
t.body ? Xe(e, t.body) : e.push("null");
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function Xe(e, t) {
|
|
868
868
|
const { helper: n } = e;
|
|
869
869
|
switch (t.type) {
|
|
870
870
|
case 0:
|
|
@@ -915,13 +915,13 @@ const Ys = (e, t = {}) => {
|
|
|
915
915
|
const n = F(t.mode) ? t.mode : "normal", s = F(t.filename) ? t.filename : "message.intl";
|
|
916
916
|
t.sourceMap;
|
|
917
917
|
const l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
918
|
-
`, a = t.needIndent ? t.needIndent : n !== "arrow", c = e.helpers || [],
|
|
918
|
+
`, a = t.needIndent ? t.needIndent : n !== "arrow", c = e.helpers || [], m = Us(e, {
|
|
919
919
|
filename: s,
|
|
920
920
|
breakLineCode: l,
|
|
921
921
|
needIndent: a
|
|
922
922
|
});
|
|
923
|
-
|
|
924
|
-
const { code: u, map: p } =
|
|
923
|
+
m.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), m.indent(a), c.length > 0 && (m.push(`const { ${Xt(c.map((O) => `${O}: _${O}`), ", ")} } = ctx`), m.newline()), m.push("return "), Xe(m, e), m.deindent(a), m.push("}"), delete e.helpers;
|
|
924
|
+
const { code: u, map: p } = m.context();
|
|
925
925
|
return {
|
|
926
926
|
ast: e,
|
|
927
927
|
code: u,
|
|
@@ -929,13 +929,13 @@ const Ys = (e, t = {}) => {
|
|
|
929
929
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
930
930
|
};
|
|
931
931
|
};
|
|
932
|
-
function
|
|
933
|
-
const n = fe({}, t), s = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize,
|
|
934
|
-
return s ? (a &&
|
|
932
|
+
function Zs(e, t = {}) {
|
|
933
|
+
const n = fe({}, t), s = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize, m = Ms(n).parse(e);
|
|
934
|
+
return s ? (a && js(m), l && Ye(m), { ast: m, code: "" }) : (Fs(m, n), Ys(m, n));
|
|
935
935
|
}
|
|
936
|
-
var
|
|
936
|
+
var Xs = { env: { NODE_ENV: "production" } };
|
|
937
937
|
function Bs() {
|
|
938
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
938
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (je().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (je().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
939
939
|
}
|
|
940
940
|
function Ot(e) {
|
|
941
941
|
return (n) => Hs(n, e);
|
|
@@ -949,20 +949,20 @@ function Hs(e, t) {
|
|
|
949
949
|
);
|
|
950
950
|
if (Ht(n) === 1) {
|
|
951
951
|
const a = zs(n);
|
|
952
|
-
return e.plural(a.reduce((c,
|
|
952
|
+
return e.plural(a.reduce((c, m) => [
|
|
953
953
|
...c,
|
|
954
|
-
ln(e,
|
|
954
|
+
ln(e, m)
|
|
955
955
|
], []));
|
|
956
956
|
} else
|
|
957
957
|
return ln(e, n);
|
|
958
958
|
}
|
|
959
959
|
const $s = ["b", "body"];
|
|
960
960
|
function Js(e) {
|
|
961
|
-
return
|
|
961
|
+
return De(e, $s);
|
|
962
962
|
}
|
|
963
963
|
const Ks = ["c", "cases"];
|
|
964
964
|
function zs(e) {
|
|
965
|
-
return
|
|
965
|
+
return De(e, Ks, []);
|
|
966
966
|
}
|
|
967
967
|
function ln(e, t) {
|
|
968
968
|
const n = qs(t);
|
|
@@ -975,11 +975,11 @@ function ln(e, t) {
|
|
|
975
975
|
}
|
|
976
976
|
const Qs = ["s", "static"];
|
|
977
977
|
function qs(e) {
|
|
978
|
-
return
|
|
978
|
+
return De(e, Qs);
|
|
979
979
|
}
|
|
980
980
|
const ea = ["i", "items"];
|
|
981
981
|
function ta(e) {
|
|
982
|
-
return
|
|
982
|
+
return De(e, ea, []);
|
|
983
983
|
}
|
|
984
984
|
function Mt(e, t) {
|
|
985
985
|
const n = Ht(t);
|
|
@@ -998,9 +998,9 @@ function Mt(e, t) {
|
|
|
998
998
|
}
|
|
999
999
|
case 5: {
|
|
1000
1000
|
const s = t;
|
|
1001
|
-
if (Ne(s, "i") &&
|
|
1001
|
+
if (Ne(s, "i") && de(s.i))
|
|
1002
1002
|
return e.interpolate(e.list(s.i));
|
|
1003
|
-
if (Ne(s, "index") &&
|
|
1003
|
+
if (Ne(s, "index") && de(s.index))
|
|
1004
1004
|
return e.interpolate(e.list(s.index));
|
|
1005
1005
|
throw tt(n);
|
|
1006
1006
|
}
|
|
@@ -1018,22 +1018,22 @@ function Mt(e, t) {
|
|
|
1018
1018
|
}
|
|
1019
1019
|
const na = ["t", "type"];
|
|
1020
1020
|
function Ht(e) {
|
|
1021
|
-
return
|
|
1021
|
+
return De(e, na);
|
|
1022
1022
|
}
|
|
1023
1023
|
const sa = ["v", "value"];
|
|
1024
1024
|
function ot(e, t) {
|
|
1025
|
-
const n =
|
|
1025
|
+
const n = De(e, sa);
|
|
1026
1026
|
if (n)
|
|
1027
1027
|
return n;
|
|
1028
1028
|
throw tt(t);
|
|
1029
1029
|
}
|
|
1030
1030
|
const aa = ["m", "modifier"];
|
|
1031
1031
|
function ra(e) {
|
|
1032
|
-
return
|
|
1032
|
+
return De(e, aa);
|
|
1033
1033
|
}
|
|
1034
1034
|
const la = ["k", "key"];
|
|
1035
1035
|
function oa(e) {
|
|
1036
|
-
const t =
|
|
1036
|
+
const t = De(e, la);
|
|
1037
1037
|
if (t)
|
|
1038
1038
|
return t;
|
|
1039
1039
|
throw tt(
|
|
@@ -1041,7 +1041,7 @@ function oa(e) {
|
|
|
1041
1041
|
/* NodeTypes.Linked */
|
|
1042
1042
|
);
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1044
|
+
function De(e, t, n) {
|
|
1045
1045
|
for (let s = 0; s < t.length; s++) {
|
|
1046
1046
|
const l = t[s];
|
|
1047
1047
|
if (Ne(e, l) && e[l] != null)
|
|
@@ -1062,7 +1062,7 @@ function ca(e, t = {}) {
|
|
|
1062
1062
|
const s = t.onError || Ns;
|
|
1063
1063
|
return t.onError = (l) => {
|
|
1064
1064
|
n = !0, s(l);
|
|
1065
|
-
}, { ...
|
|
1065
|
+
}, { ...Zs(e, t), detectError: n };
|
|
1066
1066
|
}
|
|
1067
1067
|
// @__NO_SIDE_EFFECTS__
|
|
1068
1068
|
function ua(e, t) {
|
|
@@ -1073,10 +1073,10 @@ function ua(e, t) {
|
|
|
1073
1073
|
return l;
|
|
1074
1074
|
const { ast: a, detectError: c } = ca(e, {
|
|
1075
1075
|
...t,
|
|
1076
|
-
location:
|
|
1076
|
+
location: Xs.env.NODE_ENV !== "production",
|
|
1077
1077
|
jit: !0
|
|
1078
|
-
}),
|
|
1079
|
-
return c ?
|
|
1078
|
+
}), m = Ot(a);
|
|
1079
|
+
return c ? m : it[s] = m;
|
|
1080
1080
|
} else {
|
|
1081
1081
|
const n = e.cacheKey;
|
|
1082
1082
|
if (n) {
|
|
@@ -1087,10 +1087,10 @@ function ua(e, t) {
|
|
|
1087
1087
|
}
|
|
1088
1088
|
}
|
|
1089
1089
|
let nt = null;
|
|
1090
|
-
function
|
|
1090
|
+
function ma(e) {
|
|
1091
1091
|
nt = e;
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1093
|
+
function da(e, t, n) {
|
|
1094
1094
|
nt && nt.emit("i18n:init", {
|
|
1095
1095
|
timestamp: Date.now(),
|
|
1096
1096
|
i18n: e,
|
|
@@ -1140,7 +1140,7 @@ function ba(e, t, n) {
|
|
|
1140
1140
|
...ue(t) ? t : K(t) ? Object.keys(t) : F(t) ? [t] : [n]
|
|
1141
1141
|
])];
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function Dn(e, t, n) {
|
|
1144
1144
|
const s = F(n) ? n : _t, l = e;
|
|
1145
1145
|
l.__localeChainCache || (l.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1146
1146
|
let a = l.__localeChainCache.get(s);
|
|
@@ -1149,8 +1149,8 @@ function wn(e, t, n) {
|
|
|
1149
1149
|
let c = [n];
|
|
1150
1150
|
for (; ue(c); )
|
|
1151
1151
|
c = cn(a, c, t);
|
|
1152
|
-
const
|
|
1153
|
-
c = F(
|
|
1152
|
+
const m = ue(t) || !J(t) ? t : t.default ? t.default : null;
|
|
1153
|
+
c = F(m) ? [m] : m, ue(c) && cn(a, c, !1), l.__localeChainCache.set(s, a);
|
|
1154
1154
|
}
|
|
1155
1155
|
return a;
|
|
1156
1156
|
}
|
|
@@ -1378,15 +1378,15 @@ function Na(e) {
|
|
|
1378
1378
|
const t = e.trim();
|
|
1379
1379
|
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Ea(t) ? Ia(t) : "*" + t;
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1381
|
+
function ka(e) {
|
|
1382
1382
|
const t = [];
|
|
1383
|
-
let n = -1, s = 0, l = 0, a, c,
|
|
1383
|
+
let n = -1, s = 0, l = 0, a, c, m, u, p, O, A;
|
|
1384
1384
|
const I = [];
|
|
1385
1385
|
I[
|
|
1386
1386
|
0
|
|
1387
1387
|
/* Actions.APPEND */
|
|
1388
1388
|
] = () => {
|
|
1389
|
-
c === void 0 ? c =
|
|
1389
|
+
c === void 0 ? c = m : c += m;
|
|
1390
1390
|
}, I[
|
|
1391
1391
|
1
|
|
1392
1392
|
/* Actions.PUSH */
|
|
@@ -1421,28 +1421,28 @@ function Ta(e) {
|
|
|
1421
1421
|
function P() {
|
|
1422
1422
|
const W = e[n + 1];
|
|
1423
1423
|
if (s === 5 && W === "'" || s === 6 && W === '"')
|
|
1424
|
-
return n++,
|
|
1424
|
+
return n++, m = "\\" + W, I[
|
|
1425
1425
|
0
|
|
1426
1426
|
/* Actions.APPEND */
|
|
1427
1427
|
](), !0;
|
|
1428
1428
|
}
|
|
1429
1429
|
for (; s !== null; )
|
|
1430
1430
|
if (n++, a = e[n], !(a === "\\" && P())) {
|
|
1431
|
-
if (u = ya(a), A = Me[s], p = A[u] || A.l || 8, p === 8 || (s = p[0], p[1] !== void 0 && (O = I[p[1]], O && (
|
|
1431
|
+
if (u = ya(a), A = Me[s], p = A[u] || A.l || 8, p === 8 || (s = p[0], p[1] !== void 0 && (O = I[p[1]], O && (m = a, O() === !1))))
|
|
1432
1432
|
return;
|
|
1433
1433
|
if (s === 7)
|
|
1434
1434
|
return t;
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
1437
|
const un = /* @__PURE__ */ new Map();
|
|
1438
|
-
function
|
|
1438
|
+
function Ta(e, t) {
|
|
1439
1439
|
return K(e) ? e[t] : null;
|
|
1440
1440
|
}
|
|
1441
1441
|
function Oa(e, t) {
|
|
1442
1442
|
if (!K(e))
|
|
1443
1443
|
return null;
|
|
1444
1444
|
let n = un.get(t);
|
|
1445
|
-
if (n || (n =
|
|
1445
|
+
if (n || (n = ka(t), n && un.set(t, n)), !n)
|
|
1446
1446
|
return null;
|
|
1447
1447
|
const s = n.length;
|
|
1448
1448
|
let l = e, a = 0;
|
|
@@ -1454,12 +1454,12 @@ function Oa(e, t) {
|
|
|
1454
1454
|
}
|
|
1455
1455
|
return l;
|
|
1456
1456
|
}
|
|
1457
|
-
const La = "10.0.5", ht = -1, _t = "en-US",
|
|
1457
|
+
const La = "10.0.5", ht = -1, _t = "en-US", mn = "", dn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1458
1458
|
function Ra() {
|
|
1459
1459
|
return {
|
|
1460
1460
|
upper: (e, t) => t === "text" && F(e) ? e.toUpperCase() : t === "vnode" && K(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1461
1461
|
lower: (e, t) => t === "text" && F(e) ? e.toLowerCase() : t === "vnode" && K(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1462
|
-
capitalize: (e, t) => t === "text" && F(e) ?
|
|
1462
|
+
capitalize: (e, t) => t === "text" && F(e) ? dn(e) : t === "vnode" && K(e) && "__v_isVNode" in e ? dn(e.children) : e
|
|
1463
1463
|
};
|
|
1464
1464
|
}
|
|
1465
1465
|
let Mn;
|
|
@@ -1474,17 +1474,17 @@ let Fn;
|
|
|
1474
1474
|
function Sa(e) {
|
|
1475
1475
|
Fn = e;
|
|
1476
1476
|
}
|
|
1477
|
-
let Un = null;
|
|
1478
|
-
const Da = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1479
|
-
Un = e;
|
|
1480
|
-
}, wa = /* @__NO_SIDE_EFFECTS__ */ () => Un;
|
|
1481
1477
|
let jn = null;
|
|
1482
|
-
const
|
|
1478
|
+
const wa = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1483
1479
|
jn = e;
|
|
1484
|
-
},
|
|
1480
|
+
}, Da = /* @__NO_SIDE_EFFECTS__ */ () => jn;
|
|
1481
|
+
let Un = null;
|
|
1482
|
+
const fn = (e) => {
|
|
1483
|
+
Un = e;
|
|
1484
|
+
}, Ma = () => Un;
|
|
1485
1485
|
let _n = 0;
|
|
1486
1486
|
function Pa(e = {}) {
|
|
1487
|
-
const t = re(e.onWarn) ? e.onWarn : Es, n = F(e.version) ? e.version : La, s = F(e.locale) || re(e.locale) ? e.locale : _t, l = re(s) ? _t : s, a = ue(e.fallbackLocale) || J(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, c = J(e.messages) ? e.messages : Rt(l),
|
|
1487
|
+
const t = re(e.onWarn) ? e.onWarn : Es, n = F(e.version) ? e.version : La, s = F(e.locale) || re(e.locale) ? e.locale : _t, l = re(s) ? _t : s, a = ue(e.fallbackLocale) || J(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, c = J(e.messages) ? e.messages : Rt(l), m = J(e.datetimeFormats) ? e.datetimeFormats : Rt(l), u = J(e.numberFormats) ? e.numberFormats : Rt(l), p = fe(Q(), e.modifiers, Ra()), O = e.pluralRules || Q(), A = re(e.missing) ? e.missing : null, I = ce(e.missingWarn) || ft(e.missingWarn) ? e.missingWarn : !0, P = ce(e.fallbackWarn) || ft(e.fallbackWarn) ? e.fallbackWarn : !0, W = !!e.fallbackFormat, T = !!e.unresolving, M = re(e.postTranslation) ? e.postTranslation : null, i = J(e.processor) ? e.processor : null, d = ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter, _ = re(e.messageCompiler) ? e.messageCompiler : Mn, D = re(e.messageResolver) ? e.messageResolver : Pn || Ta, w = re(e.localeFallbacker) ? e.localeFallbacker : Fn || ba, g = K(e.fallbackContext) ? e.fallbackContext : void 0, E = e, R = K(E.__datetimeFormatters) ? E.__datetimeFormatters : /* @__PURE__ */ new Map(), N = K(E.__numberFormatters) ? E.__numberFormatters : /* @__PURE__ */ new Map(), b = K(E.__meta) ? E.__meta : {};
|
|
1488
1488
|
_n++;
|
|
1489
1489
|
const C = {
|
|
1490
1490
|
version: n,
|
|
@@ -1498,26 +1498,26 @@ function Pa(e = {}) {
|
|
|
1498
1498
|
missingWarn: I,
|
|
1499
1499
|
fallbackWarn: P,
|
|
1500
1500
|
fallbackFormat: W,
|
|
1501
|
-
unresolving:
|
|
1501
|
+
unresolving: T,
|
|
1502
1502
|
postTranslation: M,
|
|
1503
1503
|
processor: i,
|
|
1504
|
-
warnHtmlMessage:
|
|
1504
|
+
warnHtmlMessage: d,
|
|
1505
1505
|
escapeParameter: y,
|
|
1506
1506
|
messageCompiler: _,
|
|
1507
|
-
messageResolver:
|
|
1508
|
-
localeFallbacker:
|
|
1507
|
+
messageResolver: D,
|
|
1508
|
+
localeFallbacker: w,
|
|
1509
1509
|
fallbackContext: g,
|
|
1510
1510
|
onWarn: t,
|
|
1511
1511
|
__meta: b
|
|
1512
1512
|
};
|
|
1513
|
-
return C.datetimeFormats =
|
|
1513
|
+
return C.datetimeFormats = m, C.numberFormats = u, C.__datetimeFormatters = R, C.__numberFormatters = N, __INTLIFY_PROD_DEVTOOLS__ && da(C, n, b), C;
|
|
1514
1514
|
}
|
|
1515
1515
|
const Rt = (e) => ({ [e]: Q() });
|
|
1516
1516
|
function Jt(e, t, n, s, l) {
|
|
1517
1517
|
const { missing: a, onWarn: c } = e;
|
|
1518
1518
|
if (a !== null) {
|
|
1519
|
-
const
|
|
1520
|
-
return F(
|
|
1519
|
+
const m = a(e, n, t, l);
|
|
1520
|
+
return F(m) ? m : t;
|
|
1521
1521
|
} else
|
|
1522
1522
|
return t;
|
|
1523
1523
|
}
|
|
@@ -1528,7 +1528,7 @@ function qe(e, t, n) {
|
|
|
1528
1528
|
function Fa(e, t) {
|
|
1529
1529
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1531
|
+
function ja(e, t) {
|
|
1532
1532
|
const n = t.indexOf(e);
|
|
1533
1533
|
if (n === -1)
|
|
1534
1534
|
return !1;
|
|
@@ -1538,9 +1538,9 @@ function Ua(e, t) {
|
|
|
1538
1538
|
return !1;
|
|
1539
1539
|
}
|
|
1540
1540
|
function pn(e, ...t) {
|
|
1541
|
-
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __datetimeFormatters:
|
|
1541
|
+
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __datetimeFormatters: m } = e, [u, p, O, A] = Pt(...t), I = ce(O.missingWarn) ? O.missingWarn : e.missingWarn;
|
|
1542
1542
|
ce(O.fallbackWarn) ? O.fallbackWarn : e.fallbackWarn;
|
|
1543
|
-
const P = !!O.part, W = $t(e, O),
|
|
1543
|
+
const P = !!O.part, W = $t(e, O), T = c(
|
|
1544
1544
|
e,
|
|
1545
1545
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1546
1546
|
l,
|
|
@@ -1548,16 +1548,16 @@ function pn(e, ...t) {
|
|
|
1548
1548
|
);
|
|
1549
1549
|
if (!F(u) || u === "")
|
|
1550
1550
|
return new Intl.DateTimeFormat(W, A).format(p);
|
|
1551
|
-
let M = {}, i,
|
|
1551
|
+
let M = {}, i, d = null;
|
|
1552
1552
|
const y = "datetime format";
|
|
1553
|
-
for (let
|
|
1553
|
+
for (let w = 0; w < T.length && (i = T[w], M = n[i] || {}, d = M[u], !J(d)); w++)
|
|
1554
1554
|
Jt(e, u, i, I, y);
|
|
1555
|
-
if (!J(
|
|
1555
|
+
if (!J(d) || !F(i))
|
|
1556
1556
|
return s ? ht : u;
|
|
1557
1557
|
let _ = `${i}__${u}`;
|
|
1558
1558
|
pt(A) || (_ = `${_}__${JSON.stringify(A)}`);
|
|
1559
|
-
let
|
|
1560
|
-
return
|
|
1559
|
+
let D = m.get(_);
|
|
1560
|
+
return D || (D = new Intl.DateTimeFormat(i, fe({}, d, A)), m.set(_, D)), P ? D.formatToParts(p) : D.format(p);
|
|
1561
1561
|
}
|
|
1562
1562
|
const Vn = [
|
|
1563
1563
|
"localeMatcher",
|
|
@@ -1583,29 +1583,29 @@ const Vn = [
|
|
|
1583
1583
|
];
|
|
1584
1584
|
function Pt(...e) {
|
|
1585
1585
|
const [t, n, s, l] = e, a = Q();
|
|
1586
|
-
let c = Q(),
|
|
1586
|
+
let c = Q(), m;
|
|
1587
1587
|
if (F(t)) {
|
|
1588
1588
|
const u = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1589
1589
|
if (!u)
|
|
1590
1590
|
throw Ae(Re.INVALID_ISO_DATE_ARGUMENT);
|
|
1591
1591
|
const p = u[3] ? u[3].trim().startsWith("T") ? `${u[1].trim()}${u[3].trim()}` : `${u[1].trim()}T${u[3].trim()}` : u[1].trim();
|
|
1592
|
-
|
|
1592
|
+
m = new Date(p);
|
|
1593
1593
|
try {
|
|
1594
|
-
|
|
1594
|
+
m.toISOString();
|
|
1595
1595
|
} catch {
|
|
1596
1596
|
throw Ae(Re.INVALID_ISO_DATE_ARGUMENT);
|
|
1597
1597
|
}
|
|
1598
1598
|
} else if (ps(t)) {
|
|
1599
1599
|
if (isNaN(t.getTime()))
|
|
1600
1600
|
throw Ae(Re.INVALID_DATE_ARGUMENT);
|
|
1601
|
-
|
|
1602
|
-
} else if (
|
|
1603
|
-
|
|
1601
|
+
m = t;
|
|
1602
|
+
} else if (de(t))
|
|
1603
|
+
m = t;
|
|
1604
1604
|
else
|
|
1605
1605
|
throw Ae(Re.INVALID_ARGUMENT);
|
|
1606
1606
|
return F(n) ? a.key = n : J(n) && Object.keys(n).forEach((u) => {
|
|
1607
1607
|
Vn.includes(u) ? c[u] = n[u] : a[u] = n[u];
|
|
1608
|
-
}), F(s) ? a.locale = s : J(s) && (c = s), J(l) && (c = l), [a.key || "",
|
|
1608
|
+
}), F(s) ? a.locale = s : J(s) && (c = s), J(l) && (c = l), [a.key || "", m, a, c];
|
|
1609
1609
|
}
|
|
1610
1610
|
function bn(e, t, n) {
|
|
1611
1611
|
const s = e;
|
|
@@ -1615,9 +1615,9 @@ function bn(e, t, n) {
|
|
|
1615
1615
|
}
|
|
1616
1616
|
}
|
|
1617
1617
|
function hn(e, ...t) {
|
|
1618
|
-
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __numberFormatters:
|
|
1618
|
+
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __numberFormatters: m } = e, [u, p, O, A] = Ft(...t), I = ce(O.missingWarn) ? O.missingWarn : e.missingWarn;
|
|
1619
1619
|
ce(O.fallbackWarn) ? O.fallbackWarn : e.fallbackWarn;
|
|
1620
|
-
const P = !!O.part, W = $t(e, O),
|
|
1620
|
+
const P = !!O.part, W = $t(e, O), T = c(
|
|
1621
1621
|
e,
|
|
1622
1622
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1623
1623
|
l,
|
|
@@ -1625,16 +1625,16 @@ function hn(e, ...t) {
|
|
|
1625
1625
|
);
|
|
1626
1626
|
if (!F(u) || u === "")
|
|
1627
1627
|
return new Intl.NumberFormat(W, A).format(p);
|
|
1628
|
-
let M = {}, i,
|
|
1628
|
+
let M = {}, i, d = null;
|
|
1629
1629
|
const y = "number format";
|
|
1630
|
-
for (let
|
|
1630
|
+
for (let w = 0; w < T.length && (i = T[w], M = n[i] || {}, d = M[u], !J(d)); w++)
|
|
1631
1631
|
Jt(e, u, i, I, y);
|
|
1632
|
-
if (!J(
|
|
1632
|
+
if (!J(d) || !F(i))
|
|
1633
1633
|
return s ? ht : u;
|
|
1634
1634
|
let _ = `${i}__${u}`;
|
|
1635
1635
|
pt(A) || (_ = `${_}__${JSON.stringify(A)}`);
|
|
1636
|
-
let
|
|
1637
|
-
return
|
|
1636
|
+
let D = m.get(_);
|
|
1637
|
+
return D || (D = new Intl.NumberFormat(i, fe({}, d, A)), m.set(_, D)), P ? D.formatToParts(p) : D.format(p);
|
|
1638
1638
|
}
|
|
1639
1639
|
const Wn = [
|
|
1640
1640
|
"localeMatcher",
|
|
@@ -1661,12 +1661,12 @@ const Wn = [
|
|
|
1661
1661
|
function Ft(...e) {
|
|
1662
1662
|
const [t, n, s, l] = e, a = Q();
|
|
1663
1663
|
let c = Q();
|
|
1664
|
-
if (!
|
|
1664
|
+
if (!de(t))
|
|
1665
1665
|
throw Ae(Re.INVALID_ARGUMENT);
|
|
1666
|
-
const
|
|
1666
|
+
const m = t;
|
|
1667
1667
|
return F(n) ? a.key = n : J(n) && Object.keys(n).forEach((u) => {
|
|
1668
1668
|
Wn.includes(u) ? c[u] = n[u] : a[u] = n[u];
|
|
1669
|
-
}), F(s) ? a.locale = s : J(s) && (c = s), J(l) && (c = l), [a.key || "",
|
|
1669
|
+
}), F(s) ? a.locale = s : J(s) && (c = s), J(l) && (c = l), [a.key || "", m, a, c];
|
|
1670
1670
|
}
|
|
1671
1671
|
function gn(e, t, n) {
|
|
1672
1672
|
const s = e;
|
|
@@ -1675,38 +1675,38 @@ function gn(e, t, n) {
|
|
|
1675
1675
|
s.__numberFormatters.has(a) && s.__numberFormatters.delete(a);
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
|
-
const
|
|
1678
|
+
const Ua = (e) => e, Va = (e) => "", Wa = "text", Ga = (e) => e.length === 0 ? "" : Xt(e), xa = vs;
|
|
1679
1679
|
function vn(e, t) {
|
|
1680
1680
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1681
1681
|
}
|
|
1682
1682
|
function Ya(e) {
|
|
1683
|
-
const t =
|
|
1684
|
-
return e.named && (
|
|
1683
|
+
const t = de(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1684
|
+
return e.named && (de(e.named.count) || de(e.named.n)) ? de(e.named.count) ? e.named.count : de(e.named.n) ? e.named.n : t : t;
|
|
1685
1685
|
}
|
|
1686
|
-
function
|
|
1686
|
+
function Za(e, t) {
|
|
1687
1687
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1688
1688
|
}
|
|
1689
|
-
function
|
|
1690
|
-
const t = e.locale, n = Ya(e), s = K(e.pluralRules) && F(t) && re(e.pluralRules[t]) ? e.pluralRules[t] : vn, l = K(e.pluralRules) && F(t) && re(e.pluralRules[t]) ? vn : void 0, a = (i) => i[s(n, i.length, l)], c = e.list || [],
|
|
1691
|
-
|
|
1689
|
+
function Xa(e = {}) {
|
|
1690
|
+
const t = e.locale, n = Ya(e), s = K(e.pluralRules) && F(t) && re(e.pluralRules[t]) ? e.pluralRules[t] : vn, l = K(e.pluralRules) && F(t) && re(e.pluralRules[t]) ? vn : void 0, a = (i) => i[s(n, i.length, l)], c = e.list || [], m = (i) => c[i], u = e.named || Q();
|
|
1691
|
+
de(e.pluralIndex) && Za(n, u);
|
|
1692
1692
|
const p = (i) => u[i];
|
|
1693
|
-
function O(i,
|
|
1694
|
-
const y = re(e.messages) ? e.messages(i, !!
|
|
1693
|
+
function O(i, d) {
|
|
1694
|
+
const y = re(e.messages) ? e.messages(i, !!d) : K(e.messages) ? e.messages[i] : !1;
|
|
1695
1695
|
return y || (e.parent ? e.parent.message(i) : Va);
|
|
1696
1696
|
}
|
|
1697
|
-
const A = (i) => e.modifiers ? e.modifiers[i] :
|
|
1698
|
-
list:
|
|
1697
|
+
const A = (i) => e.modifiers ? e.modifiers[i] : Ua, I = J(e.processor) && re(e.processor.normalize) ? e.processor.normalize : Ga, P = J(e.processor) && re(e.processor.interpolate) ? e.processor.interpolate : xa, W = J(e.processor) && F(e.processor.type) ? e.processor.type : Wa, M = {
|
|
1698
|
+
list: m,
|
|
1699
1699
|
named: p,
|
|
1700
1700
|
plural: a,
|
|
1701
|
-
linked: (i, ...
|
|
1702
|
-
const [y, _] =
|
|
1703
|
-
let
|
|
1704
|
-
|
|
1701
|
+
linked: (i, ...d) => {
|
|
1702
|
+
const [y, _] = d;
|
|
1703
|
+
let D = "text", w = "";
|
|
1704
|
+
d.length === 1 ? K(y) ? (w = y.modifier || w, D = y.type || D) : F(y) && (w = y || w) : d.length === 2 && (F(y) && (w = y || w), F(_) && (D = _ || D));
|
|
1705
1705
|
const g = O(i, !0)(M), E = (
|
|
1706
1706
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1707
|
-
|
|
1707
|
+
D === "vnode" && ue(g) && w ? g[0] : g
|
|
1708
1708
|
);
|
|
1709
|
-
return
|
|
1709
|
+
return w ? A(w)(E, D) : E;
|
|
1710
1710
|
},
|
|
1711
1711
|
message: O,
|
|
1712
1712
|
type: W,
|
|
@@ -1718,31 +1718,31 @@ function Za(e = {}) {
|
|
|
1718
1718
|
}
|
|
1719
1719
|
const En = () => "", Ee = (e) => re(e);
|
|
1720
1720
|
function In(e, ...t) {
|
|
1721
|
-
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: c, messages:
|
|
1721
|
+
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: c, messages: m } = e, [u, p] = jt(...t), O = ce(p.missingWarn) ? p.missingWarn : e.missingWarn, A = ce(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, I = ce(p.escapeParameter) ? p.escapeParameter : e.escapeParameter, P = !!p.resolvedMessage, W = F(p.default) || ce(p.default) ? ce(p.default) ? a ? u : () => u : p.default : n ? a ? u : () => u : null, T = n || W != null && (F(W) || re(W)), M = $t(e, p);
|
|
1722
1722
|
I && Ba(p);
|
|
1723
|
-
let [i,
|
|
1723
|
+
let [i, d, y] = P ? [
|
|
1724
1724
|
u,
|
|
1725
1725
|
M,
|
|
1726
|
-
|
|
1727
|
-
] : Gn(e, u, M, c, A, O), _ = i,
|
|
1728
|
-
if (!P && !(F(_) || Be(_) || Ee(_)) &&
|
|
1726
|
+
m[M] || Q()
|
|
1727
|
+
] : Gn(e, u, M, c, A, O), _ = i, D = u;
|
|
1728
|
+
if (!P && !(F(_) || Be(_) || Ee(_)) && T && (_ = W, D = _), !P && (!(F(_) || Be(_) || Ee(_)) || !F(d)))
|
|
1729
1729
|
return l ? ht : u;
|
|
1730
|
-
let
|
|
1730
|
+
let w = !1;
|
|
1731
1731
|
const g = () => {
|
|
1732
|
-
|
|
1733
|
-
}, E = Ee(_) ? _ : xn(e, u,
|
|
1734
|
-
if (
|
|
1732
|
+
w = !0;
|
|
1733
|
+
}, E = Ee(_) ? _ : xn(e, u, d, _, D, g);
|
|
1734
|
+
if (w)
|
|
1735
1735
|
return _;
|
|
1736
|
-
const R = Ja(e,
|
|
1736
|
+
const R = Ja(e, d, y, p), N = Xa(R), b = Ha(e, E, N), C = s ? s(b, u) : b;
|
|
1737
1737
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1738
|
-
const
|
|
1738
|
+
const U = {
|
|
1739
1739
|
timestamp: Date.now(),
|
|
1740
1740
|
key: F(u) ? u : Ee(_) ? _.key : "",
|
|
1741
|
-
locale:
|
|
1741
|
+
locale: d || (Ee(_) ? _.locale : ""),
|
|
1742
1742
|
format: F(_) ? _ : Ee(_) ? _.source : "",
|
|
1743
1743
|
message: C
|
|
1744
1744
|
};
|
|
1745
|
-
|
|
1745
|
+
U.meta = fe({}, e.__meta, /* @__PURE__ */ Da() || {}), fa(U);
|
|
1746
1746
|
}
|
|
1747
1747
|
return C;
|
|
1748
1748
|
}
|
|
@@ -1752,11 +1752,11 @@ function Ba(e) {
|
|
|
1752
1752
|
});
|
|
1753
1753
|
}
|
|
1754
1754
|
function Gn(e, t, n, s, l, a) {
|
|
1755
|
-
const { messages: c, onWarn:
|
|
1755
|
+
const { messages: c, onWarn: m, messageResolver: u, localeFallbacker: p } = e, O = p(e, s, n);
|
|
1756
1756
|
let A = Q(), I, P = null;
|
|
1757
1757
|
const W = "translate";
|
|
1758
|
-
for (let
|
|
1759
|
-
if (!
|
|
1758
|
+
for (let T = 0; T < O.length && (I = O[T], A = c[I] || Q(), (P = u(A, t)) === null && (P = A[t]), !(F(P) || Be(P) || Ee(P))); T++)
|
|
1759
|
+
if (!ja(I, O)) {
|
|
1760
1760
|
const M = Jt(
|
|
1761
1761
|
e,
|
|
1762
1762
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -1770,7 +1770,7 @@ function Gn(e, t, n, s, l, a) {
|
|
|
1770
1770
|
return [P, I, A];
|
|
1771
1771
|
}
|
|
1772
1772
|
function xn(e, t, n, s, l, a) {
|
|
1773
|
-
const { messageCompiler: c, warnHtmlMessage:
|
|
1773
|
+
const { messageCompiler: c, warnHtmlMessage: m } = e;
|
|
1774
1774
|
if (Ee(s)) {
|
|
1775
1775
|
const p = s;
|
|
1776
1776
|
return p.locale = p.locale || n, p.key = p.key || t, p;
|
|
@@ -1779,18 +1779,18 @@ function xn(e, t, n, s, l, a) {
|
|
|
1779
1779
|
const p = () => s;
|
|
1780
1780
|
return p.locale = n, p.key = t, p;
|
|
1781
1781
|
}
|
|
1782
|
-
const u = c(s, $a(e, n, l, s,
|
|
1782
|
+
const u = c(s, $a(e, n, l, s, m, a));
|
|
1783
1783
|
return u.locale = n, u.key = t, u.source = s, u;
|
|
1784
1784
|
}
|
|
1785
1785
|
function Ha(e, t, n) {
|
|
1786
1786
|
return t(n);
|
|
1787
1787
|
}
|
|
1788
|
-
function
|
|
1788
|
+
function jt(...e) {
|
|
1789
1789
|
const [t, n, s] = e, l = Q();
|
|
1790
|
-
if (!F(t) && !
|
|
1790
|
+
if (!F(t) && !de(t) && !Ee(t) && !Be(t))
|
|
1791
1791
|
throw Ae(Re.INVALID_ARGUMENT);
|
|
1792
|
-
const a =
|
|
1793
|
-
return
|
|
1792
|
+
const a = de(t) ? String(t) : (Ee(t), t);
|
|
1793
|
+
return de(n) ? l.plural = n : F(n) ? l.default = n : J(n) && !pt(n) ? l.named = n : ue(n) && (l.list = n), de(s) ? l.plural = s : F(s) ? l.default = s : J(s) && fe(l, s), [a, l];
|
|
1794
1794
|
}
|
|
1795
1795
|
function $a(e, t, n, s, l, a) {
|
|
1796
1796
|
return {
|
|
@@ -1804,40 +1804,40 @@ function $a(e, t, n, s, l, a) {
|
|
|
1804
1804
|
};
|
|
1805
1805
|
}
|
|
1806
1806
|
function Ja(e, t, n, s) {
|
|
1807
|
-
const { modifiers: l, pluralRules: a, messageResolver: c, fallbackLocale:
|
|
1807
|
+
const { modifiers: l, pluralRules: a, messageResolver: c, fallbackLocale: m, fallbackWarn: u, missingWarn: p, fallbackContext: O } = e, I = {
|
|
1808
1808
|
locale: t,
|
|
1809
1809
|
modifiers: l,
|
|
1810
1810
|
pluralRules: a,
|
|
1811
1811
|
messages: (P, W) => {
|
|
1812
|
-
let
|
|
1813
|
-
if (
|
|
1812
|
+
let T = c(n, P);
|
|
1813
|
+
if (T == null && (O || W)) {
|
|
1814
1814
|
const [, , M] = Gn(
|
|
1815
1815
|
O || e,
|
|
1816
1816
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1817
1817
|
P,
|
|
1818
1818
|
t,
|
|
1819
|
-
|
|
1819
|
+
m,
|
|
1820
1820
|
u,
|
|
1821
1821
|
p
|
|
1822
1822
|
);
|
|
1823
|
-
|
|
1823
|
+
T = c(M, P);
|
|
1824
1824
|
}
|
|
1825
|
-
if (F(
|
|
1825
|
+
if (F(T) || Be(T)) {
|
|
1826
1826
|
let M = !1;
|
|
1827
|
-
const
|
|
1827
|
+
const d = xn(e, P, t, T, P, () => {
|
|
1828
1828
|
M = !0;
|
|
1829
1829
|
});
|
|
1830
|
-
return M ? En :
|
|
1831
|
-
} else return Ee(
|
|
1830
|
+
return M ? En : d;
|
|
1831
|
+
} else return Ee(T) ? T : En;
|
|
1832
1832
|
}
|
|
1833
1833
|
};
|
|
1834
|
-
return e.processor && (I.processor = e.processor), s.list && (I.list = s.list), s.named && (I.named = s.named),
|
|
1834
|
+
return e.processor && (I.processor = e.processor), s.list && (I.list = s.list), s.named && (I.named = s.named), de(s.plural) && (I.pluralIndex = s.plural), I;
|
|
1835
1835
|
}
|
|
1836
1836
|
Bs();
|
|
1837
|
-
var Ka = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_194ed302-99f6-415b-be37-4083c87f7ddb", 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_194ed302-99f6-415b-be37-4083c87f7ddb", 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: "1842", ACTIONS_ORCHESTRATION_ID: "e6deac9b-873d-4517-a8de-124ef55a261c.publish.publish.__default", npm_package_dependencies__feedmepos_ui_library: "^1.10.6", npm_package_dependencies_dayjs: "^1.11.10", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "VITE_TARGET_ENV=dev pnpm build:mf && pnpm build:dts", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.9.3", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^2.0.6", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260525.161.1", npm_package_scripts_dev: "vite", npm_package_devDependencies_prettier: "^3.7.4", npm_package_devDependencies_sass_embedded: "^1.93.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_devDependencies__vue_tsconfig: "^0.4.0", npm_package_devDependencies_eslint_plugin_import: "^2.32.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:15209", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.16", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^8.52.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.10/x64", GITHUB_RUN_ID: "26871227579", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "cc827de9581e97677b819e68758ab0abd741def4", 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.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6M31dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3ODA0OTUyMzMsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc4MDQ3MzAzMywiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjFkMTgxMmVmLThhZjctNTYzOS1iODI3LTA5Y2JjYjU0YzIwZSIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc4MDQ3MjczMywib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI3OTI0NjgwMTI1OVwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiZTBkYWMzZTkyNjg3MjcwZmJkMmJjNWViYmVmYzVlYjllNWIwNWI5OFwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL21haW5cIixcInJlZl9wcm90ZWN0ZWRcIjpcInRydWVcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIyNjg3MTIyNzU3OVwiLFwicnVuX251bWJlclwiOlwiMTAzXCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiY2M4MjdkZTk1ODFlOTc2NzdiODE5ZTY4NzU4YWIwYWJkNzQxZGVmNFwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvbWFpblwiLFwid29ya2Zsb3dfc2hhXCI6XCJjYzgyN2RlOTU4MWU5NzY3N2I4MTllNjg3NThhYjBhYmQ3NDFkZWY0XCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9tYWluIiwib3JjaF9pZCI6ImU2ZGVhYzliLTg3M2QtNDUxNy1hOGRlLTEyNGVmNTVhMjYxYy5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiZTZkZWFjOWItODczZC00NTE3LWE4ZGUtMTI0ZWY1NWEyNjFjIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMjY4NzEyMjc1NzkiLCJydW5fbnVtYmVyIjoiMTAzIiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDA3NDE1NiIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOmU2ZGVhYzliLTg3M2QtNDUxNy1hOGRlLTEyNGVmNTVhMjYxYzoxZDE4MTJlZi04YWY3LTU2MzktYjgyNy0wOWNiY2I1NGMyMGUgQWN0aW9ucy5SdW5uZXI6ZTZkZWFjOWItODczZC00NTE3LWE4ZGUtMTI0ZWY1NWEyNjFjOjFkMTgxMmVmLThhZjctNTYzOS1iODI3LTA5Y2JjYjU0YzIwZSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czplNmRlYWM5Yi04NzNkLTQ1MTctYThkZS0xMjRlZjU1YTI2MWM6MWQxODEyZWYtOGFmNy01NjM5LWI4MjctMDljYmNiNTRjMjBlIGdlbmVyYXRlX2lkX3Rva2VuOmU2ZGVhYzliLTg3M2QtNDUxNy1hOGRlLTEyNGVmNTVhMjYxYzoxZDE4MTJlZi04YWY3LTU2MzktYjgyNy0wOWNiY2I1NGMyMGUgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiJjYzgyN2RlOTU4MWU5NzY3N2I4MTllNjg3NThhYjBhYmQ3NDFkZWY0IiwidHJ1c3RfdGllciI6IjEifQ.uV4cvL1X1wt8060_gHAZVvKxD7M_SJ2JhvHcTdIb-gvVwveN2VvRPY5eS_93o4udUz82DN2lq2Jxd3FJoztWpWZsUyJm4cfwZX45xR7foc9jBnkHmrDOI6oyDRwRIoGekKbyYS3fEU8OysfYie49yquX-KEOTMAs0PRlOPLtWemidPfq4j5J4lUtBC9_QpXXzAJJv9nYdR17O3Qja_tBV83rXhE3lkfQ6R0O6AGhxz-IKiAVOjE1w2DHj7opxmnGlDM1jB2z-5wVqaQ-eVRoluk_W-Jj-7xolRUSIdRdtKDQaTPls1cWuBJiUFbj7wsnED7MUY6A8Ut1YtPZ0TE3Fw", 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_824de102-3096-45cd-ae01-3618f15611fc", INVOCATION_ID: "d409d7bbb6764ab7bba8d77b0dcb43e8", 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: "103", 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 1000074156", 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.17-dev.4", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts", npm_package_dependencies__feedmepos_hrm_permission: "workspace:*", npm_package_devDependencies__rushstack_eslint_patch: "^1.3.3", npm_package_devDependencies_eslint_plugin_unused_imports: "^4.3.0", npm_package_devDependencies_jsdom: "^24.0.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "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: "cc827de9581e97677b819e68758ab0abd741def4", 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", VITE_TARGET_ENV: "dev", npm_package_devDependencies_globals: "^16.5.0", npm_package_scripts_format: "prettier --write src/", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_194ed302-99f6-415b-be37-4083c87f7ddb", 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/206//idtoken/e6deac9b-873d-4517-a8de-124ef55a261c/1d1812ef-8af7-5639-b827-09cbcb54c20e?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_194ed302-99f6-415b-be37-4083c87f7ddb", npm_package_exports___types: "./dist/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_feature_flag: "^0.0.15", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_devDependencies_eslint_plugin_vue: "^9.33.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_14.6.0", CHROME_BIN: "/usr/bin/google-chrome", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_194ed302-99f6-415b-be37-4083c87f7ddb", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1837
|
+
var Ka = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_e003e0d4-8b96-4aeb-8615-aba1fdd222fc", 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_e003e0d4-8b96-4aeb-8615-aba1fdd222fc", 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: "1866", ACTIONS_ORCHESTRATION_ID: "8f2456f8-0684-4f09-b86a-cecbc822262f.publish.publish.__default", npm_package_dependencies__feedmepos_ui_library: "^1.10.6", npm_package_dependencies_dayjs: "^1.11.10", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "VITE_TARGET_ENV=dev pnpm build:mf && pnpm build:dts", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.9.3", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^2.0.6", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260525.161.1", npm_package_scripts_dev: "vite", npm_package_devDependencies_prettier: "^3.7.4", npm_package_devDependencies_sass_embedded: "^1.93.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_devDependencies__vue_tsconfig: "^0.4.0", npm_package_devDependencies_eslint_plugin_import: "^2.32.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:15190", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.16", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^8.52.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.10/x64", GITHUB_RUN_ID: "26873139102", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "e7979cce6669f450b7dc52e190fe7737fcb25db5", 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.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6M31dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3ODA0OTc2NTIsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc4MDQ3NTQ1MiwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjFhNmFlMmQ2LWU1MDAtNTEwMi05ZGI5LTc3NDJmMTA5M2QyNiIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc4MDQ3NTE1Miwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI3OTI1MzMzNDgzOFwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiZTBkYWMzZTkyNjg3MjcwZmJkMmJjNWViYmVmYzVlYjllNWIwNWI5OFwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL21haW5cIixcInJlZl9wcm90ZWN0ZWRcIjpcInRydWVcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIyNjg3MzEzOTEwMlwiLFwicnVuX251bWJlclwiOlwiMTA1XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiZTc5NzljY2U2NjY5ZjQ1MGI3ZGM1MmUxOTBmZTc3MzdmY2IyNWRiNVwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvbWFpblwiLFwid29ya2Zsb3dfc2hhXCI6XCJlNzk3OWNjZTY2NjlmNDUwYjdkYzUyZTE5MGZlNzczN2ZjYjI1ZGI1XCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9tYWluIiwib3JjaF9pZCI6IjhmMjQ1NmY4LTA2ODQtNGYwOS1iODZhLWNlY2JjODIyMjYyZi5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiOGYyNDU2ZjgtMDY4NC00ZjA5LWI4NmEtY2VjYmM4MjIyNjJmIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMjY4NzMxMzkxMDIiLCJydW5fbnVtYmVyIjoiMTA1IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDA3NDE4NSIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjhmMjQ1NmY4LTA2ODQtNGYwOS1iODZhLWNlY2JjODIyMjYyZjoxYTZhZTJkNi1lNTAwLTUxMDItOWRiOS03NzQyZjEwOTNkMjYgQWN0aW9ucy5SdW5uZXI6OGYyNDU2ZjgtMDY4NC00ZjA5LWI4NmEtY2VjYmM4MjIyNjJmOjFhNmFlMmQ2LWU1MDAtNTEwMi05ZGI5LTc3NDJmMTA5M2QyNiBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czo4ZjI0NTZmOC0wNjg0LTRmMDktYjg2YS1jZWNiYzgyMjI2MmY6MWE2YWUyZDYtZTUwMC01MTAyLTlkYjktNzc0MmYxMDkzZDI2IGdlbmVyYXRlX2lkX3Rva2VuOjhmMjQ1NmY4LTA2ODQtNGYwOS1iODZhLWNlY2JjODIyMjYyZjoxYTZhZTJkNi1lNTAwLTUxMDItOWRiOS03NzQyZjEwOTNkMjYgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiJlNzk3OWNjZTY2NjlmNDUwYjdkYzUyZTE5MGZlNzczN2ZjYjI1ZGI1IiwidHJ1c3RfdGllciI6IjEifQ.Fq63rdgnPw29OvkKqw5--QgeTB9a8rsTTV43wHliWJAq6gvIh5k2lri7VK0zvK4A9ONqIxVrlAxEmZAjER9ca2xDeMOFRE9e1TOxF2VLwgdW-2L4mb1z7TRsFmyDI__JQxmlRIM3tgtijihKZlUgTqAI3Pa35IvfQj0pixigz0zJ-URIzF55a-clzwPPQX8qQB5ujp_Z31zWkPcaHkHnnG4-c8FXyEXYGx6JjJQmb6wcElq5UDO4anBvA3qdcLlBJnnsZy_chwweAmwIEbozMsUk5WXm5RwW2qVNwXG7g-QoqDMUIoyojedFLaUi0bRQBzB_zyhTuKDklyng4eiN-Q", 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_ac751670-23fc-49cb-9a8e-65d53a232962", INVOCATION_ID: "0eb2774468fc4d3cb47304746e466fbb", 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: "105", 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 1000074185", 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.17", 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: "e7979cce6669f450b7dc52e190fe7737fcb25db5", 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_e003e0d4-8b96-4aeb-8615-aba1fdd222fc", 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/126//idtoken/8f2456f8-0684-4f09-b86a-cecbc822262f/1a6ae2d6-e500-5102-9db9-7742f1093d26?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_e003e0d4-8b96-4aeb-8615-aba1fdd222fc", npm_package_exports___types: "./dist/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_feature_flag: "^0.0.15", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_devDependencies_eslint_plugin_vue: "^9.33.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_14.6.0", CHROME_BIN: "/usr/bin/google-chrome", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_e003e0d4-8b96-4aeb-8615-aba1fdd222fc", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1838
1838
|
const za = "10.0.5";
|
|
1839
1839
|
function Qa() {
|
|
1840
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
1840
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (je().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (je().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (je().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (je().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1841
1841
|
}
|
|
1842
1842
|
const He = {
|
|
1843
1843
|
// composer module errors
|
|
@@ -1855,7 +1855,7 @@ const He = {
|
|
|
1855
1855
|
function st(e, ...t) {
|
|
1856
1856
|
return bt(e, null, void 0);
|
|
1857
1857
|
}
|
|
1858
|
-
const
|
|
1858
|
+
const Ut = /* @__PURE__ */ Ve("__translateVNode"), Vt = /* @__PURE__ */ Ve("__datetimeParts"), Wt = /* @__PURE__ */ Ve("__numberParts"), qa = Ve("__setPluralRules"), Yn = /* @__PURE__ */ Ve("__injectWithOption"), Gt = /* @__PURE__ */ Ve("__dispose");
|
|
1859
1859
|
function at(e) {
|
|
1860
1860
|
if (!K(e))
|
|
1861
1861
|
return e;
|
|
@@ -1877,25 +1877,25 @@ function at(e) {
|
|
|
1877
1877
|
}
|
|
1878
1878
|
return e;
|
|
1879
1879
|
}
|
|
1880
|
-
function
|
|
1880
|
+
function Zn(e, t) {
|
|
1881
1881
|
const { messages: n, __i18n: s, messageResolver: l, flatJson: a } = t, c = J(n) ? n : ue(s) ? Q() : { [e]: Q() };
|
|
1882
|
-
if (ue(s) && s.forEach((
|
|
1883
|
-
if ("locale" in
|
|
1884
|
-
const { locale: u, resource: p } =
|
|
1885
|
-
u ? (c[u] = c[u] || Q(),
|
|
1882
|
+
if (ue(s) && s.forEach((m) => {
|
|
1883
|
+
if ("locale" in m && "resource" in m) {
|
|
1884
|
+
const { locale: u, resource: p } = m;
|
|
1885
|
+
u ? (c[u] = c[u] || Q(), dt(p, c[u])) : dt(p, c);
|
|
1886
1886
|
} else
|
|
1887
|
-
F(
|
|
1887
|
+
F(m) && dt(JSON.parse(m), c);
|
|
1888
1888
|
}), l == null && a)
|
|
1889
|
-
for (const
|
|
1890
|
-
Ne(c,
|
|
1889
|
+
for (const m in c)
|
|
1890
|
+
Ne(c, m) && at(c[m]);
|
|
1891
1891
|
return c;
|
|
1892
1892
|
}
|
|
1893
|
-
function
|
|
1893
|
+
function Xn(e) {
|
|
1894
1894
|
return e.type;
|
|
1895
1895
|
}
|
|
1896
1896
|
function er(e, t, n) {
|
|
1897
1897
|
let s = K(t.messages) ? t.messages : Q();
|
|
1898
|
-
"__i18nGlobal" in n && (s =
|
|
1898
|
+
"__i18nGlobal" in n && (s = Zn(e.locale.value, {
|
|
1899
1899
|
messages: s,
|
|
1900
1900
|
__i18n: n.__i18nGlobal
|
|
1901
1901
|
}));
|
|
@@ -1921,44 +1921,44 @@ function er(e, t, n) {
|
|
|
1921
1921
|
function yn(e) {
|
|
1922
1922
|
return _e(zn, null, e, 0);
|
|
1923
1923
|
}
|
|
1924
|
-
const Nn = "__INTLIFY_META__",
|
|
1925
|
-
let
|
|
1924
|
+
const Nn = "__INTLIFY_META__", kn = () => [], tr = () => !1;
|
|
1925
|
+
let Tn = 0;
|
|
1926
1926
|
function On(e) {
|
|
1927
1927
|
return (t, n, s, l) => e(n, s, xt() || void 0, l);
|
|
1928
1928
|
}
|
|
1929
1929
|
const nr = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1930
1930
|
const e = xt();
|
|
1931
1931
|
let t = null;
|
|
1932
|
-
return e && (t =
|
|
1932
|
+
return e && (t = Xn(e)[Nn]) ? { [Nn]: t } : null;
|
|
1933
1933
|
};
|
|
1934
1934
|
function sr(e = {}) {
|
|
1935
|
-
const { __root: t, __injectWithOption: n } = e, s = t === void 0, l = e.flatJson, a = en ?
|
|
1935
|
+
const { __root: t, __injectWithOption: n } = e, s = t === void 0, l = e.flatJson, a = en ? Ue : Kn;
|
|
1936
1936
|
let c = ce(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1937
|
-
const
|
|
1937
|
+
const m = a(
|
|
1938
1938
|
// prettier-ignore
|
|
1939
1939
|
t && c ? t.locale.value : F(e.locale) ? e.locale : _t
|
|
1940
1940
|
), u = a(
|
|
1941
1941
|
// prettier-ignore
|
|
1942
|
-
t && c ? t.fallbackLocale.value : F(e.fallbackLocale) || ue(e.fallbackLocale) || J(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale :
|
|
1943
|
-
), p = a(
|
|
1944
|
-
let I = t ? t.missingWarn : ce(e.missingWarn) || ft(e.missingWarn) ? e.missingWarn : !0, P = t ? t.fallbackWarn : ce(e.fallbackWarn) || ft(e.fallbackWarn) ? e.fallbackWarn : !0, W = t ? t.fallbackRoot : ce(e.fallbackRoot) ? e.fallbackRoot : !0,
|
|
1945
|
-
const
|
|
1946
|
-
let
|
|
1942
|
+
t && c ? t.fallbackLocale.value : F(e.fallbackLocale) || ue(e.fallbackLocale) || J(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : m.value
|
|
1943
|
+
), p = a(Zn(m.value, e)), O = a(J(e.datetimeFormats) ? e.datetimeFormats : { [m.value]: {} }), A = a(J(e.numberFormats) ? e.numberFormats : { [m.value]: {} });
|
|
1944
|
+
let I = t ? t.missingWarn : ce(e.missingWarn) || ft(e.missingWarn) ? e.missingWarn : !0, P = t ? t.fallbackWarn : ce(e.fallbackWarn) || ft(e.fallbackWarn) ? e.fallbackWarn : !0, W = t ? t.fallbackRoot : ce(e.fallbackRoot) ? e.fallbackRoot : !0, T = !!e.fallbackFormat, M = re(e.missing) ? e.missing : null, i = re(e.missing) ? On(e.missing) : null, d = re(e.postTranslation) ? e.postTranslation : null, y = t ? t.warnHtmlMessage : ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, _ = !!e.escapeParameter;
|
|
1945
|
+
const D = t ? t.modifiers : J(e.modifiers) ? e.modifiers : {};
|
|
1946
|
+
let w = e.pluralRules || t && t.pluralRules, g;
|
|
1947
1947
|
g = (() => {
|
|
1948
1948
|
s && fn(null);
|
|
1949
1949
|
const f = {
|
|
1950
1950
|
version: za,
|
|
1951
|
-
locale:
|
|
1951
|
+
locale: m.value,
|
|
1952
1952
|
fallbackLocale: u.value,
|
|
1953
1953
|
messages: p.value,
|
|
1954
|
-
modifiers:
|
|
1955
|
-
pluralRules:
|
|
1954
|
+
modifiers: D,
|
|
1955
|
+
pluralRules: w,
|
|
1956
1956
|
missing: i === null ? void 0 : i,
|
|
1957
1957
|
missingWarn: I,
|
|
1958
1958
|
fallbackWarn: P,
|
|
1959
|
-
fallbackFormat:
|
|
1959
|
+
fallbackFormat: T,
|
|
1960
1960
|
unresolving: !0,
|
|
1961
|
-
postTranslation:
|
|
1961
|
+
postTranslation: d === null ? void 0 : d,
|
|
1962
1962
|
warnHtmlMessage: y,
|
|
1963
1963
|
escapeParameter: _,
|
|
1964
1964
|
messageResolver: e.messageResolver,
|
|
@@ -1968,10 +1968,10 @@ function sr(e = {}) {
|
|
|
1968
1968
|
f.datetimeFormats = O.value, f.numberFormats = A.value, f.__datetimeFormatters = J(g) ? g.__datetimeFormatters : void 0, f.__numberFormatters = J(g) ? g.__numberFormatters : void 0;
|
|
1969
1969
|
const v = Pa(f);
|
|
1970
1970
|
return s && fn(v), v;
|
|
1971
|
-
})(), qe(g,
|
|
1971
|
+
})(), qe(g, m.value, u.value);
|
|
1972
1972
|
function R() {
|
|
1973
1973
|
return [
|
|
1974
|
-
|
|
1974
|
+
m.value,
|
|
1975
1975
|
u.value,
|
|
1976
1976
|
p.value,
|
|
1977
1977
|
O.value,
|
|
@@ -1979,26 +1979,26 @@ function sr(e = {}) {
|
|
|
1979
1979
|
];
|
|
1980
1980
|
}
|
|
1981
1981
|
const N = te({
|
|
1982
|
-
get: () =>
|
|
1982
|
+
get: () => m.value,
|
|
1983
1983
|
set: (f) => {
|
|
1984
|
-
|
|
1984
|
+
m.value = f, g.locale = m.value;
|
|
1985
1985
|
}
|
|
1986
1986
|
}), b = te({
|
|
1987
1987
|
get: () => u.value,
|
|
1988
1988
|
set: (f) => {
|
|
1989
|
-
u.value = f, g.fallbackLocale = u.value, qe(g,
|
|
1989
|
+
u.value = f, g.fallbackLocale = u.value, qe(g, m.value, f);
|
|
1990
1990
|
}
|
|
1991
|
-
}), C = te(() => p.value),
|
|
1991
|
+
}), C = te(() => p.value), U = /* @__PURE__ */ te(() => O.value), G = /* @__PURE__ */ te(() => A.value);
|
|
1992
1992
|
function S() {
|
|
1993
|
-
return re(
|
|
1993
|
+
return re(d) ? d : null;
|
|
1994
1994
|
}
|
|
1995
|
-
function
|
|
1996
|
-
|
|
1995
|
+
function k(f) {
|
|
1996
|
+
d = f, g.postTranslation = f;
|
|
1997
1997
|
}
|
|
1998
1998
|
function L() {
|
|
1999
1999
|
return M;
|
|
2000
2000
|
}
|
|
2001
|
-
function
|
|
2001
|
+
function Z(f) {
|
|
2002
2002
|
f !== null && (i = On(f)), M = f, g.missing = i;
|
|
2003
2003
|
}
|
|
2004
2004
|
const x = (f, v, ee, ie, Pe, rt) => {
|
|
@@ -2010,7 +2010,7 @@ function sr(e = {}) {
|
|
|
2010
2010
|
__INTLIFY_PROD_DEVTOOLS__, s || (g.fallbackContext = void 0);
|
|
2011
2011
|
}
|
|
2012
2012
|
if (ee !== "translate exists" && // for not `te` (e.g `t`)
|
|
2013
|
-
|
|
2013
|
+
de(xe) && xe === ht || ee === "translate exists" && !xe) {
|
|
2014
2014
|
const [$n, Hr] = v();
|
|
2015
2015
|
return t && W ? ie(t) : Pe($n);
|
|
2016
2016
|
} else {
|
|
@@ -2019,23 +2019,23 @@ function sr(e = {}) {
|
|
|
2019
2019
|
throw st(He.UNEXPECTED_RETURN_TYPE);
|
|
2020
2020
|
}
|
|
2021
2021
|
};
|
|
2022
|
-
function
|
|
2023
|
-
return x((v) => Reflect.apply(In, null, [v, ...f]), () =>
|
|
2022
|
+
function j(...f) {
|
|
2023
|
+
return x((v) => Reflect.apply(In, null, [v, ...f]), () => jt(...f), "translate", (v) => Reflect.apply(v.t, v, [...f]), (v) => v, (v) => F(v));
|
|
2024
2024
|
}
|
|
2025
2025
|
function q(...f) {
|
|
2026
2026
|
const [v, ee, ie] = f;
|
|
2027
2027
|
if (ie && !K(ie))
|
|
2028
2028
|
throw st(He.INVALID_ARGUMENT);
|
|
2029
|
-
return
|
|
2029
|
+
return j(v, ee, fe({ resolvedMessage: !0 }, ie || {}));
|
|
2030
2030
|
}
|
|
2031
2031
|
function $(...f) {
|
|
2032
|
-
return x((v) => Reflect.apply(pn, null, [v, ...f]), () => Pt(...f), "datetime format", (v) => Reflect.apply(v.d, v, [...f]), () =>
|
|
2032
|
+
return x((v) => Reflect.apply(pn, null, [v, ...f]), () => Pt(...f), "datetime format", (v) => Reflect.apply(v.d, v, [...f]), () => mn, (v) => F(v));
|
|
2033
2033
|
}
|
|
2034
2034
|
function he(...f) {
|
|
2035
|
-
return x((v) => Reflect.apply(hn, null, [v, ...f]), () => Ft(...f), "number format", (v) => Reflect.apply(v.n, v, [...f]), () =>
|
|
2035
|
+
return x((v) => Reflect.apply(hn, null, [v, ...f]), () => Ft(...f), "number format", (v) => Reflect.apply(v.n, v, [...f]), () => mn, (v) => F(v));
|
|
2036
2036
|
}
|
|
2037
2037
|
function Y(f) {
|
|
2038
|
-
return f.map((v) => F(v) ||
|
|
2038
|
+
return f.map((v) => F(v) || de(v) || ce(v) ? yn(String(v)) : v);
|
|
2039
2039
|
}
|
|
2040
2040
|
const ae = {
|
|
2041
2041
|
normalize: Y,
|
|
@@ -2052,28 +2052,28 @@ function sr(e = {}) {
|
|
|
2052
2052
|
ie.processor = null;
|
|
2053
2053
|
}
|
|
2054
2054
|
return ee;
|
|
2055
|
-
}, () =>
|
|
2055
|
+
}, () => jt(...f), "translate", (v) => v[Ut](...f), (v) => [yn(v)], (v) => ue(v));
|
|
2056
2056
|
}
|
|
2057
2057
|
function Je(...f) {
|
|
2058
|
-
return x((v) => Reflect.apply(hn, null, [v, ...f]), () => Ft(...f), "number format", (v) => v[Wt](...f),
|
|
2058
|
+
return x((v) => Reflect.apply(hn, null, [v, ...f]), () => Ft(...f), "number format", (v) => v[Wt](...f), kn, (v) => F(v) || ue(v));
|
|
2059
2059
|
}
|
|
2060
2060
|
function Ke(...f) {
|
|
2061
|
-
return x((v) => Reflect.apply(pn, null, [v, ...f]), () => Pt(...f), "datetime format", (v) => v[Vt](...f),
|
|
2061
|
+
return x((v) => Reflect.apply(pn, null, [v, ...f]), () => Pt(...f), "datetime format", (v) => v[Vt](...f), kn, (v) => F(v) || ue(v));
|
|
2062
2062
|
}
|
|
2063
2063
|
function vt(f) {
|
|
2064
|
-
|
|
2064
|
+
w = f, g.pluralRules = w;
|
|
2065
2065
|
}
|
|
2066
2066
|
function Et(f, v) {
|
|
2067
2067
|
return x(() => {
|
|
2068
2068
|
if (!f)
|
|
2069
2069
|
return !1;
|
|
2070
|
-
const ee = F(v) ? v :
|
|
2070
|
+
const ee = F(v) ? v : m.value, ie = We(ee), Pe = g.messageResolver(ie, f);
|
|
2071
2071
|
return Be(Pe) || Ee(Pe) || F(Pe);
|
|
2072
2072
|
}, () => [f], "translate exists", (ee) => Reflect.apply(ee.te, ee, [f, v]), tr, (ee) => ce(ee));
|
|
2073
2073
|
}
|
|
2074
2074
|
function It(f) {
|
|
2075
2075
|
let v = null;
|
|
2076
|
-
const ee =
|
|
2076
|
+
const ee = Dn(g, u.value, m.value);
|
|
2077
2077
|
for (let ie = 0; ie < ee.length; ie++) {
|
|
2078
2078
|
const Pe = p.value[ee[ie]] || {}, rt = g.messageResolver(Pe, f);
|
|
2079
2079
|
if (rt != null) {
|
|
@@ -2105,7 +2105,7 @@ function sr(e = {}) {
|
|
|
2105
2105
|
if (l)
|
|
2106
2106
|
for (const ie in ee)
|
|
2107
2107
|
Ne(ee, ie) && at(ee[ie]);
|
|
2108
|
-
v = ee[f],
|
|
2108
|
+
v = ee[f], dt(v, p.value[f]), g.messages = p.value;
|
|
2109
2109
|
}
|
|
2110
2110
|
function yt(f) {
|
|
2111
2111
|
return O.value[f] || {};
|
|
@@ -2125,30 +2125,30 @@ function sr(e = {}) {
|
|
|
2125
2125
|
function oe(f, v) {
|
|
2126
2126
|
A.value[f] = fe(A.value[f] || {}, v), g.numberFormats = A.value, gn(g, f, v);
|
|
2127
2127
|
}
|
|
2128
|
-
|
|
2129
|
-
c && (
|
|
2128
|
+
Tn++, t && en && (St(t.locale, (f) => {
|
|
2129
|
+
c && (m.value = f, g.locale = f, qe(g, m.value, u.value));
|
|
2130
2130
|
}), St(t.fallbackLocale, (f) => {
|
|
2131
|
-
c && (u.value = f, g.fallbackLocale = f, qe(g,
|
|
2131
|
+
c && (u.value = f, g.fallbackLocale = f, qe(g, m.value, u.value));
|
|
2132
2132
|
}));
|
|
2133
|
-
const
|
|
2134
|
-
id:
|
|
2133
|
+
const X = {
|
|
2134
|
+
id: Tn,
|
|
2135
2135
|
locale: N,
|
|
2136
2136
|
fallbackLocale: b,
|
|
2137
2137
|
get inheritLocale() {
|
|
2138
2138
|
return c;
|
|
2139
2139
|
},
|
|
2140
2140
|
set inheritLocale(f) {
|
|
2141
|
-
c = f, f && t && (
|
|
2141
|
+
c = f, f && t && (m.value = t.locale.value, u.value = t.fallbackLocale.value, qe(g, m.value, u.value));
|
|
2142
2142
|
},
|
|
2143
2143
|
get availableLocales() {
|
|
2144
2144
|
return Object.keys(p.value).sort();
|
|
2145
2145
|
},
|
|
2146
2146
|
messages: C,
|
|
2147
2147
|
get modifiers() {
|
|
2148
|
-
return
|
|
2148
|
+
return D;
|
|
2149
2149
|
},
|
|
2150
2150
|
get pluralRules() {
|
|
2151
|
-
return
|
|
2151
|
+
return w || {};
|
|
2152
2152
|
},
|
|
2153
2153
|
get isGlobal() {
|
|
2154
2154
|
return s;
|
|
@@ -2172,10 +2172,10 @@ function sr(e = {}) {
|
|
|
2172
2172
|
W = f;
|
|
2173
2173
|
},
|
|
2174
2174
|
get fallbackFormat() {
|
|
2175
|
-
return
|
|
2175
|
+
return T;
|
|
2176
2176
|
},
|
|
2177
2177
|
set fallbackFormat(f) {
|
|
2178
|
-
|
|
2178
|
+
T = f, g.fallbackFormat = T;
|
|
2179
2179
|
},
|
|
2180
2180
|
get warnHtmlMessage() {
|
|
2181
2181
|
return y;
|
|
@@ -2189,17 +2189,17 @@ function sr(e = {}) {
|
|
|
2189
2189
|
set escapeParameter(f) {
|
|
2190
2190
|
_ = f, g.escapeParameter = f;
|
|
2191
2191
|
},
|
|
2192
|
-
t:
|
|
2192
|
+
t: j,
|
|
2193
2193
|
getLocaleMessage: We,
|
|
2194
2194
|
setLocaleMessage: Ge,
|
|
2195
2195
|
mergeLocaleMessage: Qe,
|
|
2196
2196
|
getPostTranslationHandler: S,
|
|
2197
|
-
setPostTranslationHandler:
|
|
2197
|
+
setPostTranslationHandler: k,
|
|
2198
2198
|
getMissingHandler: L,
|
|
2199
|
-
setMissingHandler:
|
|
2199
|
+
setMissingHandler: Z,
|
|
2200
2200
|
[qa]: vt
|
|
2201
2201
|
};
|
|
2202
|
-
return
|
|
2202
|
+
return X.datetimeFormats = U, X.numberFormats = G, X.rt = q, X.te = Et, X.tm = ze, X.d = $, X.n = he, X.getDateTimeFormat = yt, X.setDateTimeFormat = r, X.mergeDateTimeFormat = o, X.getNumberFormat = h, X.setNumberFormat = V, X.mergeNumberFormat = oe, X[Yn] = n, X[Ut] = Ie, X[Vt] = Ke, X[Wt] = Je, X;
|
|
2203
2203
|
}
|
|
2204
2204
|
const Kt = {
|
|
2205
2205
|
tag: {
|
|
@@ -2239,7 +2239,7 @@ fe({
|
|
|
2239
2239
|
},
|
|
2240
2240
|
plural: {
|
|
2241
2241
|
type: [Number, String],
|
|
2242
|
-
validator: (e) =>
|
|
2242
|
+
validator: (e) => de(e) || !isNaN(e)
|
|
2243
2243
|
}
|
|
2244
2244
|
}, Kt);
|
|
2245
2245
|
function rr(e) {
|
|
@@ -2249,13 +2249,13 @@ function Hn(e, t, n, s) {
|
|
|
2249
2249
|
const { slots: l, attrs: a } = t;
|
|
2250
2250
|
return () => {
|
|
2251
2251
|
const c = { part: !0 };
|
|
2252
|
-
let
|
|
2253
|
-
e.locale && (c.locale = e.locale), F(e.format) ? c.key = e.format : K(e.format) && (F(e.format.key) && (c.key = e.format.key),
|
|
2254
|
-
const u = s(e.value, c,
|
|
2252
|
+
let m = Q();
|
|
2253
|
+
e.locale && (c.locale = e.locale), F(e.format) ? c.key = e.format : K(e.format) && (F(e.format.key) && (c.key = e.format.key), m = Object.keys(e.format).reduce((I, P) => n.includes(P) ? fe(Q(), I, { [P]: e.format[P] }) : I, Q()));
|
|
2254
|
+
const u = s(e.value, c, m);
|
|
2255
2255
|
let p = [c.key];
|
|
2256
2256
|
ue(u) ? p = u.map((I, P) => {
|
|
2257
|
-
const W = l[I.type],
|
|
2258
|
-
return rr(
|
|
2257
|
+
const W = l[I.type], T = W ? W({ [I.type]: I.value, index: P, parts: u }) : [I.value];
|
|
2258
|
+
return rr(T) && (T[0].key = `${I.type}-${P}`), T;
|
|
2259
2259
|
}) : F(u) && (p = [u]);
|
|
2260
2260
|
const O = fe(Q(), a), A = F(e.tag) || K(e.tag) ? e.tag : Bn();
|
|
2261
2261
|
return Sn(A, O, p);
|
|
@@ -2286,7 +2286,7 @@ function gt(e = {}) {
|
|
|
2286
2286
|
throw st(He.MUST_BE_CALL_SETUP_TOP);
|
|
2287
2287
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2288
2288
|
throw st(He.NOT_INSTALLED);
|
|
2289
|
-
const n = or(t), s = cr(n), l =
|
|
2289
|
+
const n = or(t), s = cr(n), l = Xn(t), a = ir(e, l);
|
|
2290
2290
|
if (a === "global")
|
|
2291
2291
|
return er(s, e, l), s;
|
|
2292
2292
|
if (a === "parent") {
|
|
@@ -2294,12 +2294,12 @@ function gt(e = {}) {
|
|
|
2294
2294
|
return u == null && (u = s), u;
|
|
2295
2295
|
}
|
|
2296
2296
|
const c = n;
|
|
2297
|
-
let
|
|
2298
|
-
if (
|
|
2297
|
+
let m = c.__getInstance(t);
|
|
2298
|
+
if (m == null) {
|
|
2299
2299
|
const u = fe({}, e);
|
|
2300
|
-
"__i18n" in l && (u.__i18n = l.__i18n), s && (u.__root = s),
|
|
2300
|
+
"__i18n" in l && (u.__i18n = l.__i18n), s && (u.__root = s), m = sr(u), c.__composerExtend && (m[Gt] = c.__composerExtend(m)), dr(c, t, m), c.__setInstance(t, m);
|
|
2301
2301
|
}
|
|
2302
|
-
return
|
|
2302
|
+
return m;
|
|
2303
2303
|
}
|
|
2304
2304
|
function or(e) {
|
|
2305
2305
|
const t = Jn(e.isCE ? lr : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
@@ -2316,14 +2316,14 @@ function cr(e) {
|
|
|
2316
2316
|
function ur(e, t, n = !1) {
|
|
2317
2317
|
let s = null;
|
|
2318
2318
|
const l = t.root;
|
|
2319
|
-
let a =
|
|
2319
|
+
let a = mr(t, n);
|
|
2320
2320
|
for (; a != null; ) {
|
|
2321
2321
|
const c = e;
|
|
2322
2322
|
if (e.mode === "composition")
|
|
2323
2323
|
s = c.__getInstance(a);
|
|
2324
2324
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
2325
|
-
const
|
|
2326
|
-
|
|
2325
|
+
const m = c.__getInstance(a);
|
|
2326
|
+
m != null && (s = m.__composer, n && s && !s[Yn] && (s = null));
|
|
2327
2327
|
}
|
|
2328
2328
|
if (s != null || l === a)
|
|
2329
2329
|
break;
|
|
@@ -2331,10 +2331,10 @@ function ur(e, t, n = !1) {
|
|
|
2331
2331
|
}
|
|
2332
2332
|
return s;
|
|
2333
2333
|
}
|
|
2334
|
-
function
|
|
2334
|
+
function mr(e, t = !1) {
|
|
2335
2335
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2336
2336
|
}
|
|
2337
|
-
function
|
|
2337
|
+
function dr(e, t, n) {
|
|
2338
2338
|
Yt(() => {
|
|
2339
2339
|
}, t), Cn(() => {
|
|
2340
2340
|
const s = n;
|
|
@@ -2346,12 +2346,12 @@ function mr(e, t, n) {
|
|
|
2346
2346
|
Qa();
|
|
2347
2347
|
Aa(ua);
|
|
2348
2348
|
Ca(Oa);
|
|
2349
|
-
Sa(
|
|
2349
|
+
Sa(Dn);
|
|
2350
2350
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2351
|
-
const e =
|
|
2352
|
-
e.__INTLIFY__ = !0,
|
|
2351
|
+
const e = je();
|
|
2352
|
+
e.__INTLIFY__ = !0, ma(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2353
2353
|
}
|
|
2354
|
-
const ct = /* @__PURE__ */
|
|
2354
|
+
const ct = /* @__PURE__ */ ke({
|
|
2355
2355
|
__name: "InheritPermissionTooltip",
|
|
2356
2356
|
props: {
|
|
2357
2357
|
item: {
|
|
@@ -2362,8 +2362,8 @@ const ct = /* @__PURE__ */ Te({
|
|
|
2362
2362
|
setup(e) {
|
|
2363
2363
|
const { t } = gt();
|
|
2364
2364
|
return (n, s) => {
|
|
2365
|
-
const l =
|
|
2366
|
-
return H(),
|
|
2365
|
+
const l = Ze("FmIcon"), a = Ze("FmTooltip");
|
|
2366
|
+
return H(), we(a, {
|
|
2367
2367
|
variant: "plain",
|
|
2368
2368
|
placement: "right",
|
|
2369
2369
|
"z-index": 50
|
|
@@ -2391,7 +2391,7 @@ const ct = /* @__PURE__ */ Te({
|
|
|
2391
2391
|
}, pr = {
|
|
2392
2392
|
key: 0,
|
|
2393
2393
|
class: "q-mr-xs text-red col"
|
|
2394
|
-
}, br = { class: "form-input" }, hr = /* @__PURE__ */
|
|
2394
|
+
}, br = { class: "form-input" }, hr = /* @__PURE__ */ ke({
|
|
2395
2395
|
__name: "AppForm",
|
|
2396
2396
|
props: {
|
|
2397
2397
|
title: {
|
|
@@ -2435,7 +2435,7 @@ function gr(e, t) {
|
|
|
2435
2435
|
const vr = { class: "col flex items-center" }, Er = {
|
|
2436
2436
|
key: 1,
|
|
2437
2437
|
class: "q-pa-sm form-error-message text-error"
|
|
2438
|
-
}, zt = /* @__PURE__ */
|
|
2438
|
+
}, zt = /* @__PURE__ */ ke({
|
|
2439
2439
|
__name: "CheckboxInput",
|
|
2440
2440
|
props: {
|
|
2441
2441
|
options: {
|
|
@@ -2493,36 +2493,36 @@ const vr = { class: "col flex items-center" }, Er = {
|
|
|
2493
2493
|
},
|
|
2494
2494
|
emits: ["update:model-value"],
|
|
2495
2495
|
setup(e, { emit: t }) {
|
|
2496
|
-
const n = e, s = t, { t: l } = $e(), a =
|
|
2497
|
-
() => n.modelValue.filter((
|
|
2496
|
+
const n = e, s = t, { t: l } = $e(), a = Ue(!1), c = qn(), m = te(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), u = `checkbox-${gr(6)}`, p = te(() => m.value !== !0), O = te(
|
|
2497
|
+
() => n.modelValue.filter((T) => n.options.some((M) => M.value === T))
|
|
2498
2498
|
), A = te(
|
|
2499
2499
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2500
2500
|
), I = te(() => n.options.length > 0 && n.options.length === O.value.length);
|
|
2501
2501
|
function P() {
|
|
2502
|
-
const
|
|
2502
|
+
const T = n.modelValue.filter((M) => !O.value.includes(M));
|
|
2503
2503
|
if (I.value === !0)
|
|
2504
|
-
s("update:model-value",
|
|
2504
|
+
s("update:model-value", T);
|
|
2505
2505
|
else {
|
|
2506
2506
|
const M = n.includeDisabledOptionsWhenSelectAll ? n.options.map((i) => i.value) : n.options.filter((i) => !i.disabled).map((i) => i.value);
|
|
2507
|
-
s("update:model-value", [...
|
|
2507
|
+
s("update:model-value", [...T, ...M]);
|
|
2508
2508
|
}
|
|
2509
2509
|
}
|
|
2510
|
-
function W(
|
|
2511
|
-
let i =
|
|
2512
|
-
M ? i.every((
|
|
2510
|
+
function W(T, M) {
|
|
2511
|
+
let i = mt(n.modelValue);
|
|
2512
|
+
M ? i.every((d) => d !== T) && i.push(T) : i = i.filter((d) => d !== T), s("update:model-value", i);
|
|
2513
2513
|
}
|
|
2514
|
-
return (
|
|
2515
|
-
const i =
|
|
2516
|
-
return H(),
|
|
2514
|
+
return (T, M) => {
|
|
2515
|
+
const i = Ze("FmCheckbox");
|
|
2516
|
+
return H(), we(hr, {
|
|
2517
2517
|
id: u,
|
|
2518
2518
|
title: e.title,
|
|
2519
2519
|
required: !1
|
|
2520
2520
|
}, {
|
|
2521
2521
|
top: ge(() => [
|
|
2522
|
-
ve(
|
|
2522
|
+
ve(T.$slots, "top")
|
|
2523
2523
|
]),
|
|
2524
2524
|
default: ge(() => [
|
|
2525
|
-
n.showAllToggle ? (H(),
|
|
2525
|
+
n.showAllToggle ? (H(), we(i, {
|
|
2526
2526
|
key: 0,
|
|
2527
2527
|
"model-value": I.value,
|
|
2528
2528
|
disabled: e.disable,
|
|
@@ -2533,8 +2533,8 @@ const vr = { class: "col flex items-center" }, Er = {
|
|
|
2533
2533
|
value: A.value,
|
|
2534
2534
|
"onUpdate:modelValue": P
|
|
2535
2535
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Le("", !0),
|
|
2536
|
-
(H(!0), ne(ye, null, be(e.options, (
|
|
2537
|
-
key:
|
|
2536
|
+
(H(!0), ne(ye, null, be(e.options, (d, y) => (H(), ne("div", {
|
|
2537
|
+
key: d.value,
|
|
2538
2538
|
style: ut(`margin-bottom: ${y < e.options.length - 1 ? n.gutter : 0}px`),
|
|
2539
2539
|
class: et(y < e.options.length - 1 ? "q-mb-sm" : "")
|
|
2540
2540
|
}, [
|
|
@@ -2543,42 +2543,42 @@ const vr = { class: "col flex items-center" }, Er = {
|
|
|
2543
2543
|
}, [
|
|
2544
2544
|
se("div", vr, [
|
|
2545
2545
|
_e(i, {
|
|
2546
|
-
"model-value": e.modelValue.includes(
|
|
2547
|
-
disabled: e.disable ||
|
|
2546
|
+
"model-value": e.modelValue.includes(d.value),
|
|
2547
|
+
disabled: e.disable || d.disabled,
|
|
2548
2548
|
size: "sm",
|
|
2549
|
-
label:
|
|
2550
|
-
value:
|
|
2551
|
-
"onUpdate:modelValue": (_) => W(
|
|
2549
|
+
label: d.label,
|
|
2550
|
+
value: d.label,
|
|
2551
|
+
"onUpdate:modelValue": (_) => W(d.value, _)
|
|
2552
2552
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
2553
|
-
ve(
|
|
2554
|
-
option:
|
|
2555
|
-
selected: e.modelValue.includes(
|
|
2553
|
+
ve(T.$slots, `checkbox-${d.key || d.value}-append`, {
|
|
2554
|
+
option: d,
|
|
2555
|
+
selected: e.modelValue.includes(d.value)
|
|
2556
2556
|
})
|
|
2557
2557
|
]),
|
|
2558
|
-
B(c)[`checkbox-${
|
|
2558
|
+
B(c)[`checkbox-${d.key || d.value}-end`] && (e.modelValue.includes(d.value) || e.falsyShowSlot) ? (H(), ne("div", {
|
|
2559
2559
|
key: 0,
|
|
2560
|
-
class: et([{ "q-checkbox disabled": e.disable ||
|
|
2560
|
+
class: et([{ "q-checkbox disabled": e.disable || d.disabled }, "col"])
|
|
2561
2561
|
}, [
|
|
2562
|
-
ve(
|
|
2563
|
-
option:
|
|
2564
|
-
value: e.modelValue.includes(
|
|
2565
|
-
disable: e.disable ||
|
|
2562
|
+
ve(T.$slots, `checkbox-${d.key || d.value}-end`, {
|
|
2563
|
+
option: d,
|
|
2564
|
+
value: e.modelValue.includes(d.value),
|
|
2565
|
+
disable: e.disable || d.disabled
|
|
2566
2566
|
})
|
|
2567
2567
|
], 2)) : Le("", !0)
|
|
2568
2568
|
], 2),
|
|
2569
|
-
B(c)[`checkbox-${
|
|
2569
|
+
B(c)[`checkbox-${d.key || d.value}-bottom`] && (e.modelValue.includes(d.value) || e.falsyShowSlot) ? (H(), ne("div", {
|
|
2570
2570
|
key: 0,
|
|
2571
|
-
class: et(["q-mt-sm", { "q-checkbox disabled": e.disable ||
|
|
2571
|
+
class: et(["q-mt-sm", { "q-checkbox disabled": e.disable || d.disabled }]),
|
|
2572
2572
|
style: ut(`margin-left: ${e.bottomSlotIndent}`)
|
|
2573
2573
|
}, [
|
|
2574
|
-
ve(
|
|
2575
|
-
option:
|
|
2576
|
-
disable: e.disable ||
|
|
2577
|
-
value: e.modelValue.includes(
|
|
2574
|
+
ve(T.$slots, `checkbox-${d.key || d.value}-bottom`, {
|
|
2575
|
+
option: d,
|
|
2576
|
+
disable: e.disable || d.disabled,
|
|
2577
|
+
value: e.modelValue.includes(d.value)
|
|
2578
2578
|
})
|
|
2579
2579
|
], 6)) : Le("", !0)
|
|
2580
2580
|
], 6))), 128)),
|
|
2581
|
-
a.value && p.value ? (H(), ne("div", Er, Se(
|
|
2581
|
+
a.value && p.value ? (H(), ne("div", Er, Se(m.value), 1)) : Le("", !0)
|
|
2582
2582
|
]),
|
|
2583
2583
|
_: 3
|
|
2584
2584
|
}, 8, ["title"]);
|
|
@@ -2586,11 +2586,11 @@ const vr = { class: "col flex items-center" }, Er = {
|
|
|
2586
2586
|
}
|
|
2587
2587
|
});
|
|
2588
2588
|
function Ln(e, t, n) {
|
|
2589
|
-
const s = n.filter((
|
|
2589
|
+
const s = n.filter((m) => m !== "manage");
|
|
2590
2590
|
if (s.length === 0) return;
|
|
2591
|
-
const l = e.findIndex((
|
|
2591
|
+
const l = e.findIndex((m) => m.subject === t && !m.inverted);
|
|
2592
2592
|
if (l < 0) return;
|
|
2593
|
-
const a = new Set(e[l].actions), c = s.every((
|
|
2593
|
+
const a = new Set(e[l].actions), c = s.every((m) => a.has(m));
|
|
2594
2594
|
c && !a.has("manage") ? (a.add("manage"), e[l] = {
|
|
2595
2595
|
...e[l],
|
|
2596
2596
|
actions: Array.from(a)
|
|
@@ -2605,50 +2605,50 @@ const Rn = Object.values(us), Ir = {
|
|
|
2605
2605
|
update: "Edit"
|
|
2606
2606
|
};
|
|
2607
2607
|
function yr(e, t, n, s) {
|
|
2608
|
-
const { t: l } = $e(), { getFlagValue: a, getFlag: c } = cs(),
|
|
2608
|
+
const { t: l } = $e(), { getFlagValue: a, getFlag: c } = cs(), m = te(() => {
|
|
2609
2609
|
var b;
|
|
2610
2610
|
const E = /* @__PURE__ */ new Map(), R = /* @__PURE__ */ new Map();
|
|
2611
2611
|
for (const C of t.value) {
|
|
2612
|
-
const
|
|
2613
|
-
|
|
2612
|
+
const U = C.category;
|
|
2613
|
+
U && (n.value.includes(C.subject) || C.showByFeatureFlag && ((b = c(C.showByFeatureFlag)) == null ? void 0 : b.enabled) === !1 && a(C.showByFeatureFlag) === "true" || (E.has(U) || E.set(U, []), E.get(U).push({
|
|
2614
2614
|
label: l(`permissionSet.permissionLabels.${C.subject}`, C.label),
|
|
2615
2615
|
value: C.subject
|
|
2616
2616
|
}), R.set(C.subject, C)));
|
|
2617
2617
|
}
|
|
2618
|
-
return [...E.keys()].sort((C,
|
|
2619
|
-
const G = Rn.indexOf(C), S = Rn.indexOf(
|
|
2620
|
-
return G === -1 && S === -1 ? C.localeCompare(
|
|
2618
|
+
return [...E.keys()].sort((C, U) => {
|
|
2619
|
+
const G = Rn.indexOf(C), S = Rn.indexOf(U);
|
|
2620
|
+
return G === -1 && S === -1 ? C.localeCompare(U) : G === -1 ? 1 : S === -1 ? -1 : G - S;
|
|
2621
2621
|
}).map((C) => {
|
|
2622
|
-
const
|
|
2623
|
-
for (const Y of
|
|
2622
|
+
const U = E.get(C), G = l(`permissionSet.categoryLabels.${C}`, C), S = /* @__PURE__ */ new Map();
|
|
2623
|
+
for (const Y of U) {
|
|
2624
2624
|
const le = R.get(Y.value);
|
|
2625
2625
|
le && S.set(Y.value, le.actions);
|
|
2626
2626
|
}
|
|
2627
|
-
const
|
|
2627
|
+
const k = U.some((Y) => {
|
|
2628
2628
|
const le = S.get(Y.value);
|
|
2629
2629
|
return le && le.length > 1;
|
|
2630
|
-
}), L =
|
|
2630
|
+
}), L = k ? [
|
|
2631
2631
|
...new Set(
|
|
2632
|
-
|
|
2632
|
+
U.flatMap((Y) => S.get(Y.value) ?? []).filter((Y) => Y !== "manage")
|
|
2633
2633
|
)
|
|
2634
|
-
] : [],
|
|
2634
|
+
] : [], Z = /* @__PURE__ */ new Map();
|
|
2635
2635
|
for (const Y of e.value)
|
|
2636
|
-
|
|
2637
|
-
const x =
|
|
2638
|
-
(Y) =>
|
|
2639
|
-
).map((Y) => Y.subject) : e.value.filter((Y) =>
|
|
2636
|
+
U.some((le) => le.value === Y.subject) && !Y.inverted && Z.set(Y.subject, new Set(Y.actions));
|
|
2637
|
+
const x = k ? e.value.filter(
|
|
2638
|
+
(Y) => U.some((le) => le.value === Y.subject) && !Y.inverted && Y.actions.includes("manage")
|
|
2639
|
+
).map((Y) => Y.subject) : e.value.filter((Y) => U.some((le) => le.value === Y.subject) && !Y.inverted).map((Y) => Y.subject), j = U.find((Y) => {
|
|
2640
2640
|
var le;
|
|
2641
2641
|
return (le = R.get(Y.value)) == null ? void 0 : le.isCategoryCover;
|
|
2642
|
-
}), q = (
|
|
2642
|
+
}), q = (j == null ? void 0 : j.value) ?? null, $ = q ? Z.get(q) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), he = $.has("manage");
|
|
2643
2643
|
return {
|
|
2644
2644
|
category: C,
|
|
2645
2645
|
label: G,
|
|
2646
|
-
options:
|
|
2646
|
+
options: U,
|
|
2647
2647
|
selectedSubjects: x,
|
|
2648
|
-
isMultiAction:
|
|
2648
|
+
isMultiAction: k,
|
|
2649
2649
|
actionColumns: L,
|
|
2650
2650
|
permissionActionsMap: S,
|
|
2651
|
-
selectedActionsMap:
|
|
2651
|
+
selectedActionsMap: Z,
|
|
2652
2652
|
coverSubject: q,
|
|
2653
2653
|
coverSelectedActions: $,
|
|
2654
2654
|
coverCoversAll: he
|
|
@@ -2657,11 +2657,11 @@ function yr(e, t, n, s) {
|
|
|
2657
2657
|
});
|
|
2658
2658
|
function u(E, R) {
|
|
2659
2659
|
var b;
|
|
2660
|
-
const N = ((b =
|
|
2660
|
+
const N = ((b = m.value.find((C) => C.category === E)) == null ? void 0 : b.options) ?? [];
|
|
2661
2661
|
s("update:model-value", [
|
|
2662
|
-
...e.value.filter((C) => !N.some((
|
|
2662
|
+
...e.value.filter((C) => !N.some((U) => U.value === C.subject)),
|
|
2663
2663
|
...t.value.filter((C) => R.includes(C.subject)).map(
|
|
2664
|
-
({ category: C, showByFeatureFlag:
|
|
2664
|
+
({ category: C, showByFeatureFlag: U, isCategoryCover: G, ...S }) => S
|
|
2665
2665
|
)
|
|
2666
2666
|
]);
|
|
2667
2667
|
}
|
|
@@ -2676,7 +2676,7 @@ function yr(e, t, n, s) {
|
|
|
2676
2676
|
s("update:model-value", R);
|
|
2677
2677
|
else {
|
|
2678
2678
|
const N = t.value.filter((b) => E.options.some((C) => C.value === b.subject)).map(
|
|
2679
|
-
({ category: b, showByFeatureFlag: C, isCategoryCover:
|
|
2679
|
+
({ category: b, showByFeatureFlag: C, isCategoryCover: U, ...G }) => G
|
|
2680
2680
|
);
|
|
2681
2681
|
s("update:model-value", [...R, ...N]);
|
|
2682
2682
|
}
|
|
@@ -2692,8 +2692,8 @@ function yr(e, t, n, s) {
|
|
|
2692
2692
|
if (b.length === 0) return !1;
|
|
2693
2693
|
const C = E.selectedActionsMap.get(R);
|
|
2694
2694
|
if (!C) return !1;
|
|
2695
|
-
const
|
|
2696
|
-
return
|
|
2695
|
+
const U = b.filter((G) => C.has(G));
|
|
2696
|
+
return U.length > 0 && U.length < b.length;
|
|
2697
2697
|
}
|
|
2698
2698
|
function P(E, R, N) {
|
|
2699
2699
|
if (N) {
|
|
@@ -2701,11 +2701,11 @@ function yr(e, t, n, s) {
|
|
|
2701
2701
|
if (!b) return;
|
|
2702
2702
|
const {
|
|
2703
2703
|
category: C,
|
|
2704
|
-
showByFeatureFlag:
|
|
2704
|
+
showByFeatureFlag: U,
|
|
2705
2705
|
isCategoryCover: G,
|
|
2706
2706
|
...S
|
|
2707
|
-
} = b,
|
|
2708
|
-
|
|
2707
|
+
} = b, k = e.value.filter((L) => L.subject !== R);
|
|
2708
|
+
k.push(S), s("update:model-value", k);
|
|
2709
2709
|
} else
|
|
2710
2710
|
s(
|
|
2711
2711
|
"update:model-value",
|
|
@@ -2716,7 +2716,7 @@ function yr(e, t, n, s) {
|
|
|
2716
2716
|
const N = E.permissionActionsMap.get(R);
|
|
2717
2717
|
return N ? N.some((b) => b !== "manage") : !1;
|
|
2718
2718
|
}
|
|
2719
|
-
function
|
|
2719
|
+
function T(E, R, N) {
|
|
2720
2720
|
const b = E.selectedActionsMap.get(R);
|
|
2721
2721
|
return b ? b.has(N) : !1;
|
|
2722
2722
|
}
|
|
@@ -2726,7 +2726,7 @@ function yr(e, t, n, s) {
|
|
|
2726
2726
|
function i(E, R, N) {
|
|
2727
2727
|
return !E.coverSubject || R === E.coverSubject ? !1 : E.coverCoversAll ? !0 : E.coverSelectedActions.has(N);
|
|
2728
2728
|
}
|
|
2729
|
-
function
|
|
2729
|
+
function d(E, R, N) {
|
|
2730
2730
|
const b = E.permissionActionsMap.get(R);
|
|
2731
2731
|
return b ? b.includes(N) : !1;
|
|
2732
2732
|
}
|
|
@@ -2741,65 +2741,65 @@ function yr(e, t, n, s) {
|
|
|
2741
2741
|
if (!G) return;
|
|
2742
2742
|
const {
|
|
2743
2743
|
category: S,
|
|
2744
|
-
showByFeatureFlag:
|
|
2744
|
+
showByFeatureFlag: k,
|
|
2745
2745
|
isCategoryCover: L,
|
|
2746
|
-
...
|
|
2746
|
+
...Z
|
|
2747
2747
|
} = G;
|
|
2748
|
-
b.push({ ...
|
|
2748
|
+
b.push({ ...Z, actions: [R] });
|
|
2749
2749
|
}
|
|
2750
2750
|
else if (C >= 0) {
|
|
2751
|
-
const G = { ...b[C] }, S = G.actions.filter((
|
|
2751
|
+
const G = { ...b[C] }, S = G.actions.filter((k) => k !== R);
|
|
2752
2752
|
S.length === 0 ? b.splice(C, 1) : (G.actions = S, b[C] = G);
|
|
2753
2753
|
}
|
|
2754
|
-
const
|
|
2755
|
-
|
|
2754
|
+
const U = t.value.find((G) => G.subject === E);
|
|
2755
|
+
U && Ln(b, E, U.actions), s("update:model-value", b);
|
|
2756
2756
|
}
|
|
2757
2757
|
function _(E, R) {
|
|
2758
2758
|
const N = E.options.filter(
|
|
2759
|
-
(b) =>
|
|
2759
|
+
(b) => d(E, b.value, R)
|
|
2760
2760
|
);
|
|
2761
2761
|
return N.length === 0 ? !1 : N.every(
|
|
2762
|
-
(b) =>
|
|
2762
|
+
(b) => T(E, b.value, R) || i(E, b.value, R)
|
|
2763
2763
|
);
|
|
2764
2764
|
}
|
|
2765
|
-
function
|
|
2765
|
+
function D(E, R) {
|
|
2766
2766
|
const N = E.options.filter(
|
|
2767
|
-
(C) =>
|
|
2767
|
+
(C) => d(E, C.value, R)
|
|
2768
2768
|
);
|
|
2769
2769
|
if (N.length === 0) return !1;
|
|
2770
2770
|
const b = N.filter(
|
|
2771
|
-
(C) =>
|
|
2771
|
+
(C) => T(E, C.value, R) || i(E, C.value, R)
|
|
2772
2772
|
).length;
|
|
2773
2773
|
return b > 0 && b < N.length;
|
|
2774
2774
|
}
|
|
2775
|
-
function
|
|
2775
|
+
function w(E, R, N) {
|
|
2776
2776
|
const b = [...e.value];
|
|
2777
2777
|
for (const C of E.options) {
|
|
2778
|
-
if (!
|
|
2779
|
-
const
|
|
2780
|
-
(
|
|
2778
|
+
if (!d(E, C.value, R)) continue;
|
|
2779
|
+
const U = C.value, G = b.findIndex(
|
|
2780
|
+
(k) => k.subject === U && !k.inverted
|
|
2781
2781
|
);
|
|
2782
2782
|
if (N)
|
|
2783
2783
|
if (G >= 0) {
|
|
2784
|
-
const
|
|
2785
|
-
L.add(R),
|
|
2784
|
+
const k = { ...b[G] }, L = new Set(k.actions);
|
|
2785
|
+
L.add(R), k.actions = Array.from(L), b[G] = k;
|
|
2786
2786
|
} else {
|
|
2787
|
-
const
|
|
2788
|
-
if (!
|
|
2787
|
+
const k = t.value.find((q) => q.subject === U);
|
|
2788
|
+
if (!k) continue;
|
|
2789
2789
|
const {
|
|
2790
2790
|
category: L,
|
|
2791
|
-
showByFeatureFlag:
|
|
2791
|
+
showByFeatureFlag: Z,
|
|
2792
2792
|
isCategoryCover: x,
|
|
2793
|
-
...
|
|
2794
|
-
} =
|
|
2795
|
-
b.push({ ...
|
|
2793
|
+
...j
|
|
2794
|
+
} = k;
|
|
2795
|
+
b.push({ ...j, actions: [R] });
|
|
2796
2796
|
}
|
|
2797
2797
|
else if (G >= 0) {
|
|
2798
|
-
const
|
|
2799
|
-
L.length === 0 ? b.splice(G, 1) : (
|
|
2798
|
+
const k = { ...b[G] }, L = k.actions.filter((Z) => Z !== R);
|
|
2799
|
+
L.length === 0 ? b.splice(G, 1) : (k.actions = L, b[G] = k);
|
|
2800
2800
|
}
|
|
2801
|
-
const S = t.value.find((
|
|
2802
|
-
S && Ln(b,
|
|
2801
|
+
const S = t.value.find((k) => k.subject === U);
|
|
2802
|
+
S && Ln(b, U, S.actions);
|
|
2803
2803
|
}
|
|
2804
2804
|
s("update:model-value", b);
|
|
2805
2805
|
}
|
|
@@ -2808,7 +2808,7 @@ function yr(e, t, n, s) {
|
|
|
2808
2808
|
return l(R, N);
|
|
2809
2809
|
}
|
|
2810
2810
|
return {
|
|
2811
|
-
categoryGroups:
|
|
2811
|
+
categoryGroups: m,
|
|
2812
2812
|
toggleCategory: u,
|
|
2813
2813
|
isAllManageChecked: p,
|
|
2814
2814
|
toggleAllManage: O,
|
|
@@ -2816,24 +2816,24 @@ function yr(e, t, n, s) {
|
|
|
2816
2816
|
isManageIndeterminate: I,
|
|
2817
2817
|
toggleManage: P,
|
|
2818
2818
|
hasNonManageActions: W,
|
|
2819
|
-
isActionChecked:
|
|
2819
|
+
isActionChecked: T,
|
|
2820
2820
|
isRowFullyCoveredByCover: M,
|
|
2821
2821
|
isActionCoveredByCover: i,
|
|
2822
|
-
permissionDefinesAction:
|
|
2822
|
+
permissionDefinesAction: d,
|
|
2823
2823
|
toggleAction: y,
|
|
2824
2824
|
isAllActionChecked: _,
|
|
2825
|
-
isAllActionIndeterminate:
|
|
2826
|
-
toggleAllAction:
|
|
2825
|
+
isAllActionIndeterminate: D,
|
|
2826
|
+
toggleAllAction: w,
|
|
2827
2827
|
actionLabel: g
|
|
2828
2828
|
};
|
|
2829
2829
|
}
|
|
2830
|
-
const Nr = { class: "flex flex-col gap-16" },
|
|
2830
|
+
const Nr = { class: "flex flex-col gap-16" }, kr = {
|
|
2831
2831
|
key: 1,
|
|
2832
2832
|
class: "space-y-16"
|
|
2833
|
-
},
|
|
2833
|
+
}, Tr = { class: "flex items-end justify-between" }, Or = { class: "fm-typo-en-title-sm-600" }, Lr = { class: "flex" }, Rr = { class: "form-input" }, Ar = { class: "flex items-center justify-between q-mb-xs" }, Cr = { class: "flex shrink-0" }, Sr = { class: "flex items-center justify-between gap-4" }, wr = { class: "flex items-center min-w-0 flex-1 gap-8" }, Dr = ["title", "onClick"], Mr = {
|
|
2834
2834
|
key: 0,
|
|
2835
2835
|
class: "flex shrink-0"
|
|
2836
|
-
}, Pr = /* @__PURE__ */
|
|
2836
|
+
}, Pr = /* @__PURE__ */ ke({
|
|
2837
2837
|
__name: "BasePermission",
|
|
2838
2838
|
props: {
|
|
2839
2839
|
modelValue: {
|
|
@@ -2855,9 +2855,9 @@ const Nr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
2855
2855
|
},
|
|
2856
2856
|
emits: ["update:model-value"],
|
|
2857
2857
|
setup(e, { emit: t }) {
|
|
2858
|
-
const n = e, s = t, { t: l } = $e(), a = te(() => [...
|
|
2858
|
+
const n = e, s = t, { t: l } = $e(), a = te(() => [...wt, ...n.additionalPermissions]), {
|
|
2859
2859
|
categoryGroups: c,
|
|
2860
|
-
toggleCategory:
|
|
2860
|
+
toggleCategory: m,
|
|
2861
2861
|
isAllManageChecked: u,
|
|
2862
2862
|
toggleAllManage: p,
|
|
2863
2863
|
isManageChecked: O,
|
|
@@ -2865,14 +2865,14 @@ const Nr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
2865
2865
|
toggleManage: I,
|
|
2866
2866
|
hasNonManageActions: P,
|
|
2867
2867
|
isActionChecked: W,
|
|
2868
|
-
isRowFullyCoveredByCover:
|
|
2868
|
+
isRowFullyCoveredByCover: T,
|
|
2869
2869
|
isActionCoveredByCover: M,
|
|
2870
2870
|
permissionDefinesAction: i,
|
|
2871
|
-
toggleAction:
|
|
2871
|
+
toggleAction: d,
|
|
2872
2872
|
isAllActionChecked: y,
|
|
2873
2873
|
isAllActionIndeterminate: _,
|
|
2874
|
-
toggleAllAction:
|
|
2875
|
-
actionLabel:
|
|
2874
|
+
toggleAllAction: D,
|
|
2875
|
+
actionLabel: w
|
|
2876
2876
|
} = yr(
|
|
2877
2877
|
Qt(n, "modelValue"),
|
|
2878
2878
|
a,
|
|
@@ -2880,19 +2880,19 @@ const Nr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
2880
2880
|
(g, E) => s("update:model-value", E)
|
|
2881
2881
|
);
|
|
2882
2882
|
return (g, E) => {
|
|
2883
|
-
const R =
|
|
2883
|
+
const R = Ze("FmCheckbox");
|
|
2884
2884
|
return H(), ne("div", Nr, [
|
|
2885
2885
|
(H(!0), ne(ye, null, be(B(c), (N) => (H(), ne(ye, {
|
|
2886
2886
|
key: N.category
|
|
2887
2887
|
}, [
|
|
2888
|
-
N.isMultiAction ? (H(), ne("div",
|
|
2889
|
-
se("div",
|
|
2888
|
+
N.isMultiAction ? (H(), ne("div", kr, [
|
|
2889
|
+
se("div", Tr, [
|
|
2890
2890
|
se("div", Or, Se(N.label), 1),
|
|
2891
2891
|
se("div", Lr, [
|
|
2892
2892
|
(H(!0), ne(ye, null, be(N.actionColumns, (b) => (H(), ne("span", {
|
|
2893
2893
|
key: b,
|
|
2894
2894
|
class: "w-[56px] text-center fm-typo-en-body-sm-400 text-fm-color-neutral-gray-600"
|
|
2895
|
-
}, Se(B(
|
|
2895
|
+
}, Se(B(w)(b)), 1))), 128))
|
|
2896
2896
|
])
|
|
2897
2897
|
]),
|
|
2898
2898
|
se("div", Rr, [
|
|
@@ -2918,7 +2918,7 @@ const Nr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
2918
2918
|
disabled: e.disable,
|
|
2919
2919
|
size: "sm",
|
|
2920
2920
|
dense: "",
|
|
2921
|
-
"onUpdate:modelValue": (C) => B(
|
|
2921
|
+
"onUpdate:modelValue": (C) => B(D)(N, b, C)
|
|
2922
2922
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2923
2923
|
]))), 128))
|
|
2924
2924
|
])
|
|
@@ -2928,48 +2928,48 @@ const Nr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
2928
2928
|
class: et(C < N.options.length - 1 ? "q-mb-xs" : "")
|
|
2929
2929
|
}, [
|
|
2930
2930
|
se("div", Sr, [
|
|
2931
|
-
se("div",
|
|
2931
|
+
se("div", wr, [
|
|
2932
2932
|
_e(R, {
|
|
2933
|
-
"model-value": B(O)(N, b.value) || B(
|
|
2933
|
+
"model-value": B(O)(N, b.value) || B(T)(N, b.value),
|
|
2934
2934
|
value: b.value,
|
|
2935
|
-
disabled: e.disable || B(
|
|
2935
|
+
disabled: e.disable || B(T)(N, b.value),
|
|
2936
2936
|
indeterminate: B(A)(N, b.value),
|
|
2937
2937
|
size: "sm",
|
|
2938
2938
|
class: "shrink-0",
|
|
2939
|
-
"onUpdate:modelValue": (
|
|
2939
|
+
"onUpdate:modelValue": (U) => B(I)(N, b.value, U)
|
|
2940
2940
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"]),
|
|
2941
2941
|
se("span", {
|
|
2942
2942
|
class: "block truncate cursor-pointer",
|
|
2943
2943
|
title: b.label,
|
|
2944
|
-
onClick: (
|
|
2945
|
-
}, Se(b.label), 9,
|
|
2944
|
+
onClick: (U) => !e.disable && !B(T)(N, b.value) && B(I)(N, b.value, !B(O)(N, b.value))
|
|
2945
|
+
}, Se(b.label), 9, Dr),
|
|
2946
2946
|
ve(g.$slots, `checkbox-${b.value}-append`, { option: b })
|
|
2947
2947
|
]),
|
|
2948
2948
|
B(P)(N, b.value) ? (H(), ne("div", Mr, [
|
|
2949
|
-
(H(!0), ne(ye, null, be(N.actionColumns, (
|
|
2950
|
-
key:
|
|
2949
|
+
(H(!0), ne(ye, null, be(N.actionColumns, (U) => (H(), ne("div", {
|
|
2950
|
+
key: U,
|
|
2951
2951
|
class: "w-[56px] flex justify-center"
|
|
2952
2952
|
}, [
|
|
2953
|
-
B(i)(N, b.value,
|
|
2953
|
+
B(i)(N, b.value, U) ? (H(), we(R, {
|
|
2954
2954
|
key: 0,
|
|
2955
|
-
"model-value": B(W)(N, b.value,
|
|
2956
|
-
value:
|
|
2957
|
-
disabled: e.disable || B(M)(N, b.value,
|
|
2955
|
+
"model-value": B(W)(N, b.value, U) || B(M)(N, b.value, U),
|
|
2956
|
+
value: U,
|
|
2957
|
+
disabled: e.disable || B(M)(N, b.value, U),
|
|
2958
2958
|
size: "sm",
|
|
2959
|
-
"onUpdate:modelValue": (G) => B(
|
|
2959
|
+
"onUpdate:modelValue": (G) => B(d)(b.value, U, G)
|
|
2960
2960
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Le("", !0)
|
|
2961
2961
|
]))), 128))
|
|
2962
2962
|
])) : Le("", !0)
|
|
2963
2963
|
])
|
|
2964
2964
|
], 2))), 128))
|
|
2965
2965
|
])
|
|
2966
|
-
])) : (H(),
|
|
2966
|
+
])) : (H(), we(zt, {
|
|
2967
2967
|
key: 0,
|
|
2968
2968
|
"model-value": N.selectedSubjects,
|
|
2969
2969
|
options: N.options,
|
|
2970
2970
|
disable: e.disable,
|
|
2971
2971
|
title: N.label,
|
|
2972
|
-
"onUpdate:modelValue": (b) => B(
|
|
2972
|
+
"onUpdate:modelValue": (b) => B(m)(N.category, b)
|
|
2973
2973
|
}, Fe({ _: 2 }, [
|
|
2974
2974
|
be(N.options, (b) => ({
|
|
2975
2975
|
name: `checkbox-${b.value}-append`,
|
|
@@ -2982,34 +2982,34 @@ const Nr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
2982
2982
|
]);
|
|
2983
2983
|
};
|
|
2984
2984
|
}
|
|
2985
|
-
}), Fr = { class: "flex items-center" },
|
|
2985
|
+
}), Fr = { class: "flex items-center" }, jr = { class: "ml-auto" }, Ur = /* @__PURE__ */ ke({
|
|
2986
2986
|
__name: "CollapsibleWrapper",
|
|
2987
2987
|
props: {
|
|
2988
2988
|
title: { default: "" },
|
|
2989
2989
|
initiallyCollapsed: { type: Boolean, default: !1 }
|
|
2990
2990
|
},
|
|
2991
2991
|
setup(e) {
|
|
2992
|
-
const n =
|
|
2992
|
+
const n = Ue(e.initiallyCollapsed), s = Ue(), l = Ue(0);
|
|
2993
2993
|
let a;
|
|
2994
2994
|
function c() {
|
|
2995
2995
|
n.value = !n.value;
|
|
2996
2996
|
}
|
|
2997
|
-
function
|
|
2997
|
+
function m() {
|
|
2998
2998
|
s.value && (l.value = s.value.scrollHeight);
|
|
2999
2999
|
}
|
|
3000
3000
|
return Yt(async () => {
|
|
3001
3001
|
await es(), s.value && (a = new ResizeObserver(() => {
|
|
3002
|
-
|
|
3002
|
+
m();
|
|
3003
3003
|
}), a.observe(s.value));
|
|
3004
3004
|
}), Cn(() => {
|
|
3005
3005
|
a == null || a.disconnect();
|
|
3006
3006
|
}), (u, p) => {
|
|
3007
|
-
const O =
|
|
3007
|
+
const O = Ze("FmButton");
|
|
3008
3008
|
return H(), ne(ye, null, [
|
|
3009
3009
|
se("div", { onClick: c }, [
|
|
3010
3010
|
se("div", Fr, [
|
|
3011
3011
|
ve(u.$slots, "title"),
|
|
3012
|
-
se("div",
|
|
3012
|
+
se("div", jr, [
|
|
3013
3013
|
_e(O, {
|
|
3014
3014
|
icon: n.value ? "keyboard_arrow_down" : "keyboard_arrow_up",
|
|
3015
3015
|
"text-color": "neutral-gray-400",
|
|
@@ -3030,7 +3030,7 @@ const Nr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
3030
3030
|
], 64);
|
|
3031
3031
|
};
|
|
3032
3032
|
}
|
|
3033
|
-
}), Vr = { class: "fm-typo-en-title-sm-600" }, At = "includedFuture", An = /* @__PURE__ */
|
|
3033
|
+
}), Vr = { class: "fm-typo-en-title-sm-600" }, At = "includedFuture", An = /* @__PURE__ */ ke({
|
|
3034
3034
|
__name: "ConditionPermission",
|
|
3035
3035
|
props: {
|
|
3036
3036
|
modelValue: {
|
|
@@ -3063,19 +3063,19 @@ const Nr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
3063
3063
|
(p) => p.label.toLocaleLowerCase().includes(u.value.toLocaleLowerCase())
|
|
3064
3064
|
)
|
|
3065
3065
|
]), c = te(() => n.modelValue ? n.modelValue : [At, ...n.options.map((p) => p.value)]);
|
|
3066
|
-
function
|
|
3066
|
+
function m(p) {
|
|
3067
3067
|
const O = p.length === a.value.length;
|
|
3068
3068
|
s("update:model-value", O ? null : p.filter((A) => A !== At));
|
|
3069
3069
|
}
|
|
3070
|
-
const u =
|
|
3070
|
+
const u = Ue("");
|
|
3071
3071
|
return (p, O) => {
|
|
3072
|
-
const A =
|
|
3073
|
-
return H(),
|
|
3072
|
+
const A = Ze("fm-search");
|
|
3073
|
+
return H(), we(Ur, null, {
|
|
3074
3074
|
title: ge(() => [
|
|
3075
3075
|
se("p", Vr, Se(B(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3076
3076
|
]),
|
|
3077
3077
|
default: ge(() => [
|
|
3078
|
-
e.options.length > 1 ? (H(),
|
|
3078
|
+
e.options.length > 1 ? (H(), we(A, {
|
|
3079
3079
|
key: 0,
|
|
3080
3080
|
modelValue: u.value,
|
|
3081
3081
|
"onUpdate:modelValue": O[0] || (O[0] = (I) => u.value = I),
|
|
@@ -3091,7 +3091,7 @@ const Nr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
3091
3091
|
"include-disabled-options-when-select-all": !0,
|
|
3092
3092
|
title: "",
|
|
3093
3093
|
class: "mt-16",
|
|
3094
|
-
"onUpdate:modelValue":
|
|
3094
|
+
"onUpdate:modelValue": m
|
|
3095
3095
|
}, Fe({ _: 2 }, [
|
|
3096
3096
|
be(a.value, (I) => ({
|
|
3097
3097
|
name: `checkbox-${I.value}-append`,
|
|
@@ -3105,7 +3105,7 @@ const Nr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
3105
3105
|
});
|
|
3106
3106
|
};
|
|
3107
3107
|
}
|
|
3108
|
-
}), Ct = "includedNewRole", Wr = /* @__PURE__ */
|
|
3108
|
+
}), Ct = "includedNewRole", Wr = /* @__PURE__ */ ke({
|
|
3109
3109
|
__name: "PosRolePermission",
|
|
3110
3110
|
props: {
|
|
3111
3111
|
modelValue: {
|
|
@@ -3142,18 +3142,18 @@ const Nr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
3142
3142
|
}))
|
|
3143
3143
|
];
|
|
3144
3144
|
}), c = te(() => n.modelValue ? n.modelValue : [Ct, ...n.roles.map((u) => u._id)]);
|
|
3145
|
-
function
|
|
3145
|
+
function m(u) {
|
|
3146
3146
|
const p = u.length === a.value.length;
|
|
3147
3147
|
s("update:model-value", p ? null : u.filter((O) => O !== Ct));
|
|
3148
3148
|
}
|
|
3149
|
-
return (u, p) => (H(),
|
|
3149
|
+
return (u, p) => (H(), we(zt, {
|
|
3150
3150
|
"model-value": c.value,
|
|
3151
3151
|
options: a.value,
|
|
3152
3152
|
"show-intermediate": !1,
|
|
3153
3153
|
"show-all-toggle": !1,
|
|
3154
3154
|
disable: e.disable,
|
|
3155
3155
|
title: B(l)("team.memberForm.permissions.roles"),
|
|
3156
|
-
"onUpdate:modelValue":
|
|
3156
|
+
"onUpdate:modelValue": m
|
|
3157
3157
|
}, Fe({ _: 2 }, [
|
|
3158
3158
|
be(a.value, (O) => ({
|
|
3159
3159
|
name: `checkbox-${O.value}-append`,
|
|
@@ -3167,7 +3167,7 @@ const Nr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
3167
3167
|
async readWarehouses() {
|
|
3168
3168
|
return os(await is().get("/warehouses"));
|
|
3169
3169
|
}
|
|
3170
|
-
}, xr = { class: "flex flex-col gap-32" }, Yr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" },
|
|
3170
|
+
}, xr = { class: "flex flex-col gap-32" }, Yr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Zr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Xr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Br = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, tl = /* @__PURE__ */ ke({
|
|
3171
3171
|
__name: "PortalPermissionEditor",
|
|
3172
3172
|
props: /* @__PURE__ */ qt({
|
|
3173
3173
|
disable: {
|
|
@@ -3184,223 +3184,223 @@ const Nr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
3184
3184
|
}),
|
|
3185
3185
|
emits: /* @__PURE__ */ qt(["permissionChanged"], ["update:modelValue"]),
|
|
3186
3186
|
setup(e, { emit: t }) {
|
|
3187
|
-
const n = ts(e, "modelValue"), s = e, l = t, { t: a } = $e(), { fetchCustomReportPermissions: c, customReportPermissions:
|
|
3187
|
+
const n = ts(e, "modelValue"), s = e, l = t, { t: a } = $e(), { fetchCustomReportPermissions: c, customReportPermissions: m } = ss();
|
|
3188
3188
|
function u(S) {
|
|
3189
|
-
return
|
|
3189
|
+
return wt.find((k) => k.subject === S) ?? m.value.find((k) => k.subject === S);
|
|
3190
3190
|
}
|
|
3191
3191
|
const p = te(() => {
|
|
3192
|
-
const S = [...
|
|
3192
|
+
const S = [...wt, ...m.value].filter((L) => !P.includes(L.subject)).map((L) => L.subject);
|
|
3193
3193
|
return as(
|
|
3194
3194
|
s.inheritPermissions.map((L) => ({
|
|
3195
3195
|
...L,
|
|
3196
|
-
permissions: L.permissions.filter((
|
|
3196
|
+
permissions: L.permissions.filter((Z) => S.includes(Z.subject))
|
|
3197
3197
|
}))
|
|
3198
3198
|
).map((L) => ({
|
|
3199
3199
|
id: L.subject,
|
|
3200
3200
|
setNames: L.setNames
|
|
3201
3201
|
}));
|
|
3202
3202
|
}), O = te(() => {
|
|
3203
|
-
const S = s.inheritPermissions.map((
|
|
3204
|
-
...
|
|
3205
|
-
permissions:
|
|
3206
|
-
(L) => L.subject ===
|
|
3203
|
+
const S = s.inheritPermissions.map((k) => ({
|
|
3204
|
+
...k,
|
|
3205
|
+
permissions: k.permissions.filter(
|
|
3206
|
+
(L) => L.subject === me.Subject.Business.inventory_stock
|
|
3207
3207
|
)
|
|
3208
3208
|
}));
|
|
3209
3209
|
return Nt(
|
|
3210
3210
|
S,
|
|
3211
3211
|
"warehouseId",
|
|
3212
|
-
|
|
3212
|
+
T.value.map((k) => k._id)
|
|
3213
3213
|
);
|
|
3214
3214
|
}), A = te(() => {
|
|
3215
|
-
const S = s.inheritPermissions.map((
|
|
3216
|
-
...
|
|
3217
|
-
permissions:
|
|
3218
|
-
(L) => L.subject ===
|
|
3215
|
+
const S = s.inheritPermissions.map((k) => ({
|
|
3216
|
+
...k,
|
|
3217
|
+
permissions: k.permissions.filter(
|
|
3218
|
+
(L) => L.subject === me.Subject.Restaurant.restaurant
|
|
3219
3219
|
)
|
|
3220
3220
|
}));
|
|
3221
3221
|
return Nt(
|
|
3222
3222
|
S,
|
|
3223
3223
|
"restaurantId",
|
|
3224
|
-
y.value.map((
|
|
3224
|
+
y.value.map((k) => k._id)
|
|
3225
3225
|
);
|
|
3226
3226
|
}), I = te(() => {
|
|
3227
|
-
const S = s.inheritPermissions.map((
|
|
3228
|
-
...
|
|
3229
|
-
permissions:
|
|
3227
|
+
const S = s.inheritPermissions.map((k) => ({
|
|
3228
|
+
...k,
|
|
3229
|
+
permissions: k.permissions.filter((L) => L.subject === me.Subject.Business.role)
|
|
3230
3230
|
}));
|
|
3231
3231
|
return Nt(
|
|
3232
3232
|
S,
|
|
3233
3233
|
"roleId",
|
|
3234
|
-
_.value.map((
|
|
3234
|
+
_.value.map((k) => k._id)
|
|
3235
3235
|
);
|
|
3236
3236
|
}), P = [
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3237
|
+
me.Subject.Business.restaurant,
|
|
3238
|
+
me.Subject.Business.role,
|
|
3239
|
+
me.Subject.Restaurant.restaurant,
|
|
3240
|
+
me.Subject.Business.inventory_stock
|
|
3241
3241
|
], W = te(() => {
|
|
3242
|
-
var
|
|
3243
|
-
const S = (
|
|
3244
|
-
(L) => L.subject ===
|
|
3242
|
+
var k;
|
|
3243
|
+
const S = (k = n.value) == null ? void 0 : k.find(
|
|
3244
|
+
(L) => L.subject === me.Subject.Business.inventory_stock
|
|
3245
3245
|
);
|
|
3246
3246
|
return S ? S.conditions ? JSON.parse(S.conditions).warehouseId.$in : null : [];
|
|
3247
|
-
}),
|
|
3247
|
+
}), T = Ue([]), M = te(() => T.value.map((S) => ({
|
|
3248
3248
|
label: S.profile.name,
|
|
3249
3249
|
value: S._id
|
|
3250
3250
|
})));
|
|
3251
3251
|
function i(S) {
|
|
3252
|
-
const
|
|
3253
|
-
n.value =
|
|
3252
|
+
const k = d(n.value, S);
|
|
3253
|
+
n.value = k;
|
|
3254
3254
|
}
|
|
3255
|
-
function
|
|
3256
|
-
let L =
|
|
3257
|
-
S.filter((
|
|
3255
|
+
function d(S, k) {
|
|
3256
|
+
let L = mt(
|
|
3257
|
+
S.filter((Z) => Z.subject !== me.Subject.Business.inventory_stock)
|
|
3258
3258
|
);
|
|
3259
|
-
if (!
|
|
3260
|
-
const
|
|
3261
|
-
actions: [
|
|
3262
|
-
subject:
|
|
3259
|
+
if (!k || k.length > 0) {
|
|
3260
|
+
const Z = {
|
|
3261
|
+
actions: [me.Action.manage],
|
|
3262
|
+
subject: me.Subject.Business.inventory_stock
|
|
3263
3263
|
};
|
|
3264
|
-
|
|
3264
|
+
k && (Z.conditions = JSON.stringify({ warehouseId: { $in: k } })), L.push(Z);
|
|
3265
3265
|
}
|
|
3266
3266
|
return L;
|
|
3267
3267
|
}
|
|
3268
|
-
const { restaurants: y } = ns(), _ =
|
|
3268
|
+
const { restaurants: y } = ns(), _ = ds().roles, D = te(() => y.value.map((S) => ({
|
|
3269
3269
|
label: `${S.profile.code ? S.profile.code + "-" : ""}${S.profile.name}`,
|
|
3270
3270
|
value: S._id
|
|
3271
|
-
}))),
|
|
3271
|
+
}))), w = te(() => y.value.reduce((S, k) => (S[k._id] = _.value.filter((L) => L.restaurants.some((Z) => Z.id === k._id)).map((L) => L._id), S), {})), g = te(() => rs(n.value));
|
|
3272
3272
|
function E(S) {
|
|
3273
|
-
const
|
|
3274
|
-
n.value =
|
|
3273
|
+
const k = N(n.value, S);
|
|
3274
|
+
n.value = k;
|
|
3275
3275
|
}
|
|
3276
3276
|
const R = te(() => ls(n.value));
|
|
3277
|
-
function N(S,
|
|
3278
|
-
var
|
|
3279
|
-
let L =
|
|
3277
|
+
function N(S, k) {
|
|
3278
|
+
var Z;
|
|
3279
|
+
let L = mt(
|
|
3280
3280
|
S.filter(
|
|
3281
|
-
(x) => x.subject !==
|
|
3281
|
+
(x) => x.subject !== me.Subject.Business.restaurant && x.subject !== me.Subject.Restaurant.restaurant
|
|
3282
3282
|
)
|
|
3283
3283
|
);
|
|
3284
|
-
if (!
|
|
3284
|
+
if (!k || k.length > 0) {
|
|
3285
3285
|
const {
|
|
3286
3286
|
category: x,
|
|
3287
|
-
showByFeatureFlag:
|
|
3287
|
+
showByFeatureFlag: j,
|
|
3288
3288
|
...q
|
|
3289
|
-
} =
|
|
3289
|
+
} = ms.restaurant;
|
|
3290
3290
|
L.push(q);
|
|
3291
3291
|
const $ = {
|
|
3292
|
-
actions: [
|
|
3293
|
-
subject:
|
|
3292
|
+
actions: [me.Action.manage],
|
|
3293
|
+
subject: me.Subject.Restaurant.restaurant
|
|
3294
3294
|
};
|
|
3295
|
-
|
|
3295
|
+
k && ($.conditions = JSON.stringify({ restaurantId: { $in: k } })), L.push($);
|
|
3296
3296
|
}
|
|
3297
|
-
if (
|
|
3297
|
+
if (k) {
|
|
3298
3298
|
const x = [
|
|
3299
|
-
...new Set(
|
|
3300
|
-
],
|
|
3301
|
-
x.length !==
|
|
3299
|
+
...new Set(k.map((q) => w.value[q]).flatMap((q) => q))
|
|
3300
|
+
], j = _.value.map((q) => q._id);
|
|
3301
|
+
x.length !== j.length && (L = C(
|
|
3302
3302
|
L,
|
|
3303
|
-
(
|
|
3303
|
+
(Z = R.value || j) == null ? void 0 : Z.filter((q) => x.includes(q))
|
|
3304
3304
|
));
|
|
3305
3305
|
}
|
|
3306
3306
|
return L;
|
|
3307
3307
|
}
|
|
3308
3308
|
function b(S) {
|
|
3309
|
-
const
|
|
3310
|
-
n.value =
|
|
3309
|
+
const k = C(n.value, S);
|
|
3310
|
+
n.value = k;
|
|
3311
3311
|
}
|
|
3312
|
-
function C(S,
|
|
3313
|
-
let L =
|
|
3314
|
-
S.filter((
|
|
3312
|
+
function C(S, k) {
|
|
3313
|
+
let L = mt(
|
|
3314
|
+
S.filter((Z) => Z.subject !== me.Subject.Business.role)
|
|
3315
3315
|
);
|
|
3316
|
-
if (
|
|
3317
|
-
const
|
|
3318
|
-
actions: [
|
|
3319
|
-
subject:
|
|
3320
|
-
conditions: JSON.stringify({ roleId: { $in:
|
|
3316
|
+
if (k && k.length > 0) {
|
|
3317
|
+
const Z = {
|
|
3318
|
+
actions: [me.Action.manage],
|
|
3319
|
+
subject: me.Subject.Business.role,
|
|
3320
|
+
conditions: JSON.stringify({ roleId: { $in: k } })
|
|
3321
3321
|
};
|
|
3322
|
-
L.push(
|
|
3322
|
+
L.push(Z);
|
|
3323
3323
|
}
|
|
3324
3324
|
return L;
|
|
3325
3325
|
}
|
|
3326
3326
|
Yt(async () => {
|
|
3327
3327
|
await Promise.all([
|
|
3328
|
-
Gr.readWarehouses().then((S) =>
|
|
3328
|
+
Gr.readWarehouses().then((S) => T.value = S),
|
|
3329
3329
|
c()
|
|
3330
3330
|
]);
|
|
3331
3331
|
});
|
|
3332
|
-
const
|
|
3332
|
+
const U = te(() => kt(
|
|
3333
3333
|
n.value,
|
|
3334
|
-
|
|
3334
|
+
Tt
|
|
3335
3335
|
).filter((L) => {
|
|
3336
|
-
const
|
|
3337
|
-
return (
|
|
3336
|
+
const Z = L.source;
|
|
3337
|
+
return (Z == null ? void 0 : Z.type) !== "systemPermissionSet" ? !0 : L.actions.includes("manage");
|
|
3338
3338
|
}).map((L) => {
|
|
3339
3339
|
if (L.inverted) return L;
|
|
3340
|
-
const
|
|
3341
|
-
if (!
|
|
3340
|
+
const Z = L.actions;
|
|
3341
|
+
if (!Z.includes("manage")) return L;
|
|
3342
3342
|
const x = u(L.subject);
|
|
3343
3343
|
if (!x) return L;
|
|
3344
|
-
const
|
|
3345
|
-
return
|
|
3344
|
+
const j = x.actions;
|
|
3345
|
+
return j.length <= 1 || j.filter(($) => !Z.includes($)).length === 0 ? L : { ...L, actions: [...j] };
|
|
3346
3346
|
}));
|
|
3347
3347
|
function G(S) {
|
|
3348
|
-
const
|
|
3349
|
-
|
|
3348
|
+
const k = new Set(
|
|
3349
|
+
U.value.filter((j) => !j.inverted).map((j) => j.subject)
|
|
3350
3350
|
), L = new Set(
|
|
3351
|
-
S.filter((
|
|
3352
|
-
),
|
|
3353
|
-
n.value.filter((
|
|
3351
|
+
S.filter((j) => !j.inverted).map((j) => j.subject)
|
|
3352
|
+
), Z = new Set(
|
|
3353
|
+
n.value.filter((j) => !j.inverted).map((j) => j.subject)
|
|
3354
3354
|
);
|
|
3355
3355
|
let x = [...n.value];
|
|
3356
|
-
for (const
|
|
3357
|
-
L.has(
|
|
3356
|
+
for (const j of k)
|
|
3357
|
+
L.has(j) || (Z.has(j) && (x = x.filter(($) => $.subject !== j)), (!Z.has(j) || kt(
|
|
3358
3358
|
x,
|
|
3359
|
-
|
|
3359
|
+
Tt
|
|
3360
3360
|
).some(
|
|
3361
|
-
($) => $.subject ===
|
|
3362
|
-
)) && !x.some(($) => $.subject ===
|
|
3363
|
-
for (const
|
|
3364
|
-
if (!
|
|
3365
|
-
const q = x.some(($) => $.subject ===
|
|
3366
|
-
if (x = x.filter(($) => !($.subject ===
|
|
3361
|
+
($) => $.subject === j && !$.inverted && $.actions.includes("manage")
|
|
3362
|
+
)) && !x.some(($) => $.subject === j && $.inverted) && x.push({ subject: j, actions: ["manage"], inverted: !0 }));
|
|
3363
|
+
for (const j of L)
|
|
3364
|
+
if (!k.has(j)) {
|
|
3365
|
+
const q = x.some(($) => $.subject === j && $.inverted);
|
|
3366
|
+
if (x = x.filter(($) => !($.subject === j && $.inverted)), !q && !Z.has(j)) {
|
|
3367
3367
|
const $ = S.find(
|
|
3368
|
-
(Y) => Y.subject ===
|
|
3369
|
-
), he = u(
|
|
3368
|
+
(Y) => Y.subject === j && !Y.inverted
|
|
3369
|
+
), he = u(j);
|
|
3370
3370
|
if (he && $) {
|
|
3371
3371
|
const { category: Y, showByFeatureFlag: le, ...ae } = he;
|
|
3372
3372
|
x.push({ ...ae, actions: $.actions });
|
|
3373
3373
|
}
|
|
3374
3374
|
}
|
|
3375
3375
|
}
|
|
3376
|
-
for (const
|
|
3377
|
-
if (!
|
|
3378
|
-
const q =
|
|
3379
|
-
(ae) => ae.subject ===
|
|
3380
|
-
), $ = S.find((ae) => ae.subject ===
|
|
3376
|
+
for (const j of L) {
|
|
3377
|
+
if (!k.has(j)) continue;
|
|
3378
|
+
const q = U.value.find(
|
|
3379
|
+
(ae) => ae.subject === j && !ae.inverted
|
|
3380
|
+
), $ = S.find((ae) => ae.subject === j && !ae.inverted);
|
|
3381
3381
|
if (!q || !$) continue;
|
|
3382
3382
|
const he = new Set(q.actions), Y = new Set($.actions);
|
|
3383
3383
|
if (he.size === Y.size && [...he].every((ae) => Y.has(ae)))
|
|
3384
3384
|
continue;
|
|
3385
|
-
const le = x.findIndex((ae) => ae.subject ===
|
|
3385
|
+
const le = x.findIndex((ae) => ae.subject === j && !ae.inverted);
|
|
3386
3386
|
if (le >= 0)
|
|
3387
3387
|
x[le] = {
|
|
3388
3388
|
...x[le],
|
|
3389
3389
|
actions: Array.from(Y)
|
|
3390
3390
|
};
|
|
3391
3391
|
else {
|
|
3392
|
-
const ae = u(
|
|
3392
|
+
const ae = u(j);
|
|
3393
3393
|
if (ae) {
|
|
3394
3394
|
const { category: Ie, showByFeatureFlag: Je, ...Ke } = ae;
|
|
3395
3395
|
x.push({ ...Ke, actions: Array.from(Y) });
|
|
3396
3396
|
}
|
|
3397
3397
|
}
|
|
3398
|
-
he.has("manage") && !Y.has("manage") &&
|
|
3398
|
+
he.has("manage") && !Y.has("manage") && kt(
|
|
3399
3399
|
x,
|
|
3400
|
-
|
|
3400
|
+
Tt
|
|
3401
3401
|
).some(
|
|
3402
|
-
(Ie) => Ie.subject ===
|
|
3403
|
-
) && !x.some((Ie) => Ie.subject ===
|
|
3402
|
+
(Ie) => Ie.subject === j && !Ie.inverted && Ie.actions.includes("manage")
|
|
3403
|
+
) && !x.some((Ie) => Ie.subject === j && Ie.inverted) && x.push({ subject: j, actions: ["manage"], inverted: !0 }), !he.has("manage") && Y.has("manage") && (x = x.filter((ae) => !(ae.subject === j && ae.inverted)));
|
|
3404
3404
|
}
|
|
3405
3405
|
n.value = x;
|
|
3406
3406
|
}
|
|
@@ -3410,12 +3410,12 @@ const Nr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
3410
3410
|
l("permissionChanged", S);
|
|
3411
3411
|
},
|
|
3412
3412
|
{ deep: !0 }
|
|
3413
|
-
), (S,
|
|
3413
|
+
), (S, k) => (H(), ne("div", xr, [
|
|
3414
3414
|
se("div", Yr, [
|
|
3415
3415
|
_e(Pr, {
|
|
3416
|
-
"model-value":
|
|
3416
|
+
"model-value": U.value,
|
|
3417
3417
|
"excluded-subjects": P,
|
|
3418
|
-
"additional-permissions": B(
|
|
3418
|
+
"additional-permissions": B(m),
|
|
3419
3419
|
"onUpdate:modelValue": G
|
|
3420
3420
|
}, Fe({ _: 2 }, [
|
|
3421
3421
|
be(p.value, (L) => ({
|
|
@@ -3426,7 +3426,7 @@ const Nr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
3426
3426
|
}))
|
|
3427
3427
|
]), 1032, ["model-value", "additional-permissions"])
|
|
3428
3428
|
]),
|
|
3429
|
-
se("div",
|
|
3429
|
+
se("div", Zr, [
|
|
3430
3430
|
_e(An, {
|
|
3431
3431
|
"model-value": W.value,
|
|
3432
3432
|
options: M.value,
|
|
@@ -3441,10 +3441,10 @@ const Nr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
3441
3441
|
}))
|
|
3442
3442
|
]), 1032, ["model-value", "options", "context"])
|
|
3443
3443
|
]),
|
|
3444
|
-
se("div",
|
|
3444
|
+
se("div", Xr, [
|
|
3445
3445
|
_e(An, {
|
|
3446
3446
|
"model-value": g.value,
|
|
3447
|
-
options:
|
|
3447
|
+
options: D.value,
|
|
3448
3448
|
context: B(a)("team.labels.restaurant"),
|
|
3449
3449
|
"onUpdate:modelValue": E
|
|
3450
3450
|
}, Fe({ _: 2 }, [
|