@feedmepos/mf-hrm-portal 2.0.18 → 2.0.19
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-CfvB_c7-.js → AuditLogList-Bw3sRBhW.js} +4 -4
- package/dist/{EmployeeList-Whx8sBTA.js → EmployeeList-C4tVWPJE.js} +5 -5
- package/dist/{Main-CoGNATjU.js → Main-BC20s7cs.js} +4 -4
- package/dist/{Main-D2LWkcaI.js → Main-BPM7QyFL.js} +9 -9
- package/dist/{Main-C_Tm3462.js → Main-eN8MDWpv.js} +5 -5
- package/dist/{PermissionSetList-RYl82f1k.js → PermissionSetList-CPSRrCsu.js} +48 -48
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BiImcVpI.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CXt721Zo.js} +860 -860
- package/dist/{RoleList-D0KdTM9G.js → RoleList-tRu19xyl.js} +7 -7
- package/dist/TeamMemberList-CvitYIKw.js +1114 -0
- package/dist/TeamMemberList.vue_vue_type_style_index_0_scoped_473cbd86_lang-BDjrD45a.js +34 -0
- package/dist/{TimesheetList-BzYGHK7n.js → TimesheetList-CdWXksIf.js} +6 -6
- package/dist/{app-BMnTcaqa.js → app-D6OxaCEx.js} +850 -850
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-CTzjqhN9.js → dayjs.min-C0I-OiL6.js} +1 -1
- package/dist/{employee-DeAtPDRi.js → employee-yT17VCCS.js} +3 -3
- package/dist/{iteration-L53uoXdY.js → iteration-CcZFMm5X.js} +388 -387
- package/dist/{lodash-t9DlqugD.js → lodash-CW7MBjcM.js} +1 -1
- package/dist/{rule-BCN5fKAA.js → rule-6Lg9M_3I.js} +2 -2
- package/dist/src/api/account/index.d.ts +4 -0
- package/dist/src/api/index.d.ts +1 -0
- package/dist/src/composables/useSupportedCountries.d.ts +5 -0
- package/dist/style.css +1 -1
- package/dist/{timesheet-D41pctAm.js → timesheet-CaSIm-Rv.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-fl7zMdUR.js → useAppStore-CONZvtGc.js} +1 -1
- package/dist/{useLoading-BbpH9pow.js → useLoading-cnpr1-pP.js} +1 -1
- package/dist/{useReportPermissions-qEea7Dnt.js → useReportPermissions-CNr0AdOf.js} +3 -3
- package/package.json +2 -2
- package/dist/TeamMemberList-DDBFCFlj.js +0 -1108
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { getCurrentInstance as xt, inject as
|
|
2
|
-
import { useI18n as
|
|
1
|
+
import { getCurrentInstance as xt, inject as $n, ref as Ue, shallowRef as Kn, computed as te, watch as St, onMounted as Yt, onUnmounted as An, defineComponent as Te, h as Sn, createVNode as _e, Text as zn, Fragment as Ne, resolveComponent as Ze, createBlock as De, openBlock as B, withCtx as ge, createElementVNode as se, createElementBlock as ne, toDisplayString as Se, unref as H, 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
|
+
import { useI18n as Je, useCoreStore as ns } from "@feedmepos/mf-common";
|
|
3
3
|
import "@vue/devtools-api";
|
|
4
|
-
import { p as
|
|
5
|
-
import { d as dt, g as os, b as is } from "./iteration-
|
|
6
|
-
import { u as cs,
|
|
7
|
-
import { u as ms } from "./useAppStore-
|
|
4
|
+
import { p as Dt, d as ss, v as as, w as yt, x as rs, j as ls, $ as Tt } from "./rule-6Lg9M_3I.js";
|
|
5
|
+
import { d as dt, g as os, b as is } from "./iteration-CcZFMm5X.js";
|
|
6
|
+
import { u as cs, b as us, d as de, C as ds, h as kt } from "./app-D6OxaCEx.js";
|
|
7
|
+
import { u as ms } from "./useAppStore-CONZvtGc.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"), me = (e) => typeof e == "number" && isFinite(e), ps = (e) =>
|
|
13
|
+
const en = typeof window < "u", Ve = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), fs = (e, t, n) => _s({ l: e, k: t, s: n }), _s = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), me = (e) => typeof e == "number" && isFinite(e), ps = (e) => Zt(e) === "[object Date]", ft = (e) => Zt(e) === "[object RegExp]", pt = (e) => $(e) && Object.keys(e).length === 0, fe = Object.assign, bs = Object.create, Q = (e = null) => bs(e);
|
|
14
14
|
let tn;
|
|
15
15
|
const je = () => tn || (tn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : Q());
|
|
16
16
|
function nn(e) {
|
|
17
17
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
18
18
|
}
|
|
19
|
-
const
|
|
19
|
+
const hs = Object.prototype.hasOwnProperty;
|
|
20
20
|
function ye(e, t) {
|
|
21
|
-
return
|
|
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),
|
|
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), Dn = Object.prototype.toString, Zt = (e) => Dn.call(e), $ = (e) => Zt(e) === "[object Object]", vs = (e) => e == null ? "" : ue(e) || $(e) && e.toString === Dn ? JSON.stringify(e, null, 2) : String(e);
|
|
24
24
|
function Xt(e, t = "") {
|
|
25
25
|
return e.reduce((n, s, l) => l === 0 ? n + s : n + t + s, "");
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function Is(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);
|
|
@@ -39,10 +39,10 @@ function mt(e, t) {
|
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Es(e, t, n) {
|
|
43
43
|
return { line: e, column: t, offset: n };
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Mt(e, t, n) {
|
|
46
46
|
return { start: e, end: t };
|
|
47
47
|
}
|
|
48
48
|
const z = {
|
|
@@ -63,21 +63,21 @@ const z = {
|
|
|
63
63
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
64
64
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
65
65
|
}, Ns = 17;
|
|
66
|
-
function
|
|
66
|
+
function bt(e, t, n = {}) {
|
|
67
67
|
const { domain: s, messages: l, args: a } = n, c = e, d = new SyntaxError(String(c));
|
|
68
68
|
return d.code = e, t && (d.location = t), d.domain = s, d;
|
|
69
69
|
}
|
|
70
70
|
function ys(e) {
|
|
71
71
|
throw e;
|
|
72
72
|
}
|
|
73
|
-
const
|
|
74
|
-
`,
|
|
75
|
-
function
|
|
73
|
+
const Oe = " ", Ts = "\r", pe = `
|
|
74
|
+
`, ks = "\u2028", Os = "\u2029";
|
|
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] ===
|
|
78
|
+
const c = (g) => t[g] === Ts && t[g + 1] === pe, d = (g) => t[g] === pe, u = (g) => t[g] === Os, p = (g) => t[g] === ks, O = (g) => c(g) || d(g) || u(g) || p(g), C = () => n, E = () => s, P = () => l, W = () => a, k = (g) => c(g) || u(g) || p(g) ? pe : t[g], w = () => k(n), i = () => k(n + a);
|
|
79
79
|
function m() {
|
|
80
|
-
return a = 0,
|
|
80
|
+
return a = 0, O(n) && (s++, l = 0), c(n) && n++, n++, l++, t[n];
|
|
81
81
|
}
|
|
82
82
|
function N() {
|
|
83
83
|
return c(n + a) && a++, a++, t[n + a];
|
|
@@ -85,33 +85,33 @@ function Os(e) {
|
|
|
85
85
|
function _() {
|
|
86
86
|
n = 0, s = 1, l = 1, a = 0;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function M(g = 0) {
|
|
89
89
|
a = g;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function D() {
|
|
92
92
|
const g = n + a;
|
|
93
93
|
for (; g !== n; )
|
|
94
94
|
m();
|
|
95
95
|
a = 0;
|
|
96
96
|
}
|
|
97
97
|
return {
|
|
98
|
-
index:
|
|
99
|
-
line:
|
|
98
|
+
index: C,
|
|
99
|
+
line: E,
|
|
100
100
|
column: P,
|
|
101
101
|
peekOffset: W,
|
|
102
|
-
charAt:
|
|
102
|
+
charAt: k,
|
|
103
103
|
currentChar: w,
|
|
104
104
|
currentPeek: i,
|
|
105
105
|
next: m,
|
|
106
106
|
peek: N,
|
|
107
107
|
reset: _,
|
|
108
|
-
resetPeek:
|
|
109
|
-
skipToPeek:
|
|
108
|
+
resetPeek: M,
|
|
109
|
+
skipToPeek: D
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
|
-
const
|
|
113
|
-
function
|
|
114
|
-
const n = t.location !== !1, s =
|
|
112
|
+
const Ae = void 0, Rs = ".", sn = "'", Cs = "tokenizer";
|
|
113
|
+
function As(e, t = {}) {
|
|
114
|
+
const n = t.location !== !1, s = Ls(e), l = () => s.index(), a = () => Es(s.line(), s.column(), s.index()), c = a(), d = l(), u = {
|
|
115
115
|
currentType: 13,
|
|
116
116
|
offset: d,
|
|
117
117
|
startLoc: c,
|
|
@@ -123,42 +123,42 @@ function Cs(e, t = {}) {
|
|
|
123
123
|
braceNest: 0,
|
|
124
124
|
inLinked: !1,
|
|
125
125
|
text: ""
|
|
126
|
-
}, p = () => u, { onError:
|
|
127
|
-
function
|
|
126
|
+
}, p = () => u, { onError: O } = t;
|
|
127
|
+
function C(r, o, h, ...V) {
|
|
128
128
|
const oe = p();
|
|
129
|
-
if (o.column +=
|
|
130
|
-
const X = n ?
|
|
131
|
-
domain:
|
|
129
|
+
if (o.column += h, o.offset += h, O) {
|
|
130
|
+
const X = n ? Mt(oe.startLoc, o) : null, f = bt(r, X, {
|
|
131
|
+
domain: Cs,
|
|
132
132
|
args: V
|
|
133
133
|
});
|
|
134
|
-
|
|
134
|
+
O(f);
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function E(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 = Mt(r.startLoc, r.endLoc)), h != null && (V.value = h), V;
|
|
141
141
|
}
|
|
142
|
-
const P = (r) =>
|
|
142
|
+
const P = (r) => E(
|
|
143
143
|
r,
|
|
144
144
|
13
|
|
145
145
|
/* TokenTypes.EOF */
|
|
146
146
|
);
|
|
147
147
|
function W(r, o) {
|
|
148
|
-
return r.currentChar() === o ? (r.next(), o) : (
|
|
148
|
+
return r.currentChar() === o ? (r.next(), o) : (C(z.EXPECTED_TOKEN, a(), 0, o), "");
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function k(r) {
|
|
151
151
|
let o = "";
|
|
152
|
-
for (; r.currentPeek() ===
|
|
152
|
+
for (; r.currentPeek() === Oe || r.currentPeek() === pe; )
|
|
153
153
|
o += r.currentPeek(), r.peek();
|
|
154
154
|
return o;
|
|
155
155
|
}
|
|
156
156
|
function w(r) {
|
|
157
|
-
const o =
|
|
157
|
+
const o = k(r);
|
|
158
158
|
return r.skipToPeek(), o;
|
|
159
159
|
}
|
|
160
160
|
function i(r) {
|
|
161
|
-
if (r ===
|
|
161
|
+
if (r === Ae)
|
|
162
162
|
return !1;
|
|
163
163
|
const o = r.charCodeAt(0);
|
|
164
164
|
return o >= 97 && o <= 122 || // a-z
|
|
@@ -166,84 +166,84 @@ function Cs(e, t = {}) {
|
|
|
166
166
|
o === 95;
|
|
167
167
|
}
|
|
168
168
|
function m(r) {
|
|
169
|
-
if (r ===
|
|
169
|
+
if (r === Ae)
|
|
170
170
|
return !1;
|
|
171
171
|
const o = r.charCodeAt(0);
|
|
172
172
|
return o >= 48 && o <= 57;
|
|
173
173
|
}
|
|
174
174
|
function N(r, o) {
|
|
175
|
-
const { currentType:
|
|
176
|
-
if (
|
|
175
|
+
const { currentType: h } = o;
|
|
176
|
+
if (h !== 2)
|
|
177
177
|
return !1;
|
|
178
|
-
|
|
178
|
+
k(r);
|
|
179
179
|
const V = i(r.currentPeek());
|
|
180
180
|
return r.resetPeek(), V;
|
|
181
181
|
}
|
|
182
182
|
function _(r, o) {
|
|
183
|
-
const { currentType:
|
|
184
|
-
if (
|
|
183
|
+
const { currentType: h } = o;
|
|
184
|
+
if (h !== 2)
|
|
185
185
|
return !1;
|
|
186
|
-
|
|
186
|
+
k(r);
|
|
187
187
|
const V = r.currentPeek() === "-" ? r.peek() : r.currentPeek(), oe = m(V);
|
|
188
188
|
return r.resetPeek(), oe;
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
const { currentType:
|
|
192
|
-
if (
|
|
190
|
+
function M(r, o) {
|
|
191
|
+
const { currentType: h } = o;
|
|
192
|
+
if (h !== 2)
|
|
193
193
|
return !1;
|
|
194
|
-
|
|
194
|
+
k(r);
|
|
195
195
|
const V = r.currentPeek() === sn;
|
|
196
196
|
return r.resetPeek(), V;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
const { currentType:
|
|
200
|
-
if (
|
|
198
|
+
function D(r, o) {
|
|
199
|
+
const { currentType: h } = o;
|
|
200
|
+
if (h !== 7)
|
|
201
201
|
return !1;
|
|
202
|
-
|
|
202
|
+
k(r);
|
|
203
203
|
const V = r.currentPeek() === ".";
|
|
204
204
|
return r.resetPeek(), V;
|
|
205
205
|
}
|
|
206
206
|
function g(r, o) {
|
|
207
|
-
const { currentType:
|
|
208
|
-
if (
|
|
207
|
+
const { currentType: h } = o;
|
|
208
|
+
if (h !== 8)
|
|
209
209
|
return !1;
|
|
210
|
-
|
|
210
|
+
k(r);
|
|
211
211
|
const V = i(r.currentPeek());
|
|
212
212
|
return r.resetPeek(), V;
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
const { currentType:
|
|
216
|
-
if (!(
|
|
214
|
+
function I(r, o) {
|
|
215
|
+
const { currentType: h } = o;
|
|
216
|
+
if (!(h === 7 || h === 11))
|
|
217
217
|
return !1;
|
|
218
|
-
|
|
218
|
+
k(r);
|
|
219
219
|
const V = r.currentPeek() === ":";
|
|
220
220
|
return r.resetPeek(), V;
|
|
221
221
|
}
|
|
222
222
|
function R(r, o) {
|
|
223
|
-
const { currentType:
|
|
224
|
-
if (
|
|
223
|
+
const { currentType: h } = o;
|
|
224
|
+
if (h !== 9)
|
|
225
225
|
return !1;
|
|
226
226
|
const V = () => {
|
|
227
227
|
const X = r.currentPeek();
|
|
228
|
-
return X === "{" ? i(r.peek()) : X === "@" || X === "|" || X === ":" || X === "." || X ===
|
|
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 y(r) {
|
|
233
|
-
|
|
233
|
+
k(r);
|
|
234
234
|
const o = r.currentPeek() === "|";
|
|
235
235
|
return r.resetPeek(), o;
|
|
236
236
|
}
|
|
237
|
-
function
|
|
238
|
-
const
|
|
237
|
+
function b(r, o = !0) {
|
|
238
|
+
const h = (oe = !1, X = "") => {
|
|
239
239
|
const f = r.currentPeek();
|
|
240
|
-
return f === "{" || f === "@" || !f ? oe : f === "|" ? !(X ===
|
|
241
|
-
}, V =
|
|
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
|
+
}, V = h();
|
|
242
242
|
return o && r.resetPeek(), V;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
245
|
-
const
|
|
246
|
-
return
|
|
244
|
+
function A(r, o) {
|
|
245
|
+
const h = r.currentChar();
|
|
246
|
+
return h === Ae ? Ae : o(h) ? (r.next(), h) : null;
|
|
247
247
|
}
|
|
248
248
|
function U(r) {
|
|
249
249
|
const o = r.charCodeAt(0);
|
|
@@ -254,7 +254,7 @@ function Cs(e, t = {}) {
|
|
|
254
254
|
o === 36;
|
|
255
255
|
}
|
|
256
256
|
function G(r) {
|
|
257
|
-
return
|
|
257
|
+
return A(r, U);
|
|
258
258
|
}
|
|
259
259
|
function S(r) {
|
|
260
260
|
const o = r.charCodeAt(0);
|
|
@@ -265,15 +265,15 @@ function Cs(e, t = {}) {
|
|
|
265
265
|
o === 36 || // $
|
|
266
266
|
o === 45;
|
|
267
267
|
}
|
|
268
|
-
function
|
|
269
|
-
return
|
|
268
|
+
function T(r) {
|
|
269
|
+
return A(r, S);
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function L(r) {
|
|
272
272
|
const o = r.charCodeAt(0);
|
|
273
273
|
return o >= 48 && o <= 57;
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
return
|
|
275
|
+
function Z(r) {
|
|
276
|
+
return A(r, L);
|
|
277
277
|
}
|
|
278
278
|
function x(r) {
|
|
279
279
|
const o = r.charCodeAt(0);
|
|
@@ -282,77 +282,77 @@ function Cs(e, t = {}) {
|
|
|
282
282
|
o >= 97 && o <= 102;
|
|
283
283
|
}
|
|
284
284
|
function j(r) {
|
|
285
|
-
return
|
|
285
|
+
return A(r, x);
|
|
286
286
|
}
|
|
287
287
|
function q(r) {
|
|
288
|
-
let o = "",
|
|
289
|
-
for (; o =
|
|
290
|
-
|
|
291
|
-
return
|
|
288
|
+
let o = "", h = "";
|
|
289
|
+
for (; o = Z(r); )
|
|
290
|
+
h += o;
|
|
291
|
+
return h;
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function J(r) {
|
|
294
294
|
let o = "";
|
|
295
295
|
for (; ; ) {
|
|
296
|
-
const
|
|
297
|
-
if (
|
|
296
|
+
const h = r.currentChar();
|
|
297
|
+
if (h === "{" || h === "}" || h === "@" || h === "|" || !h)
|
|
298
298
|
break;
|
|
299
|
-
if (
|
|
300
|
-
if (
|
|
301
|
-
o +=
|
|
299
|
+
if (h === Oe || h === pe)
|
|
300
|
+
if (b(r))
|
|
301
|
+
o += h, r.next();
|
|
302
302
|
else {
|
|
303
303
|
if (y(r))
|
|
304
304
|
break;
|
|
305
|
-
o +=
|
|
305
|
+
o += h, r.next();
|
|
306
306
|
}
|
|
307
307
|
else
|
|
308
|
-
o +=
|
|
308
|
+
o += h, r.next();
|
|
309
309
|
}
|
|
310
310
|
return o;
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function he(r) {
|
|
313
313
|
w(r);
|
|
314
|
-
let o = "",
|
|
315
|
-
for (; o =
|
|
316
|
-
|
|
317
|
-
return r.currentChar() ===
|
|
314
|
+
let o = "", h = "";
|
|
315
|
+
for (; o = T(r); )
|
|
316
|
+
h += o;
|
|
317
|
+
return r.currentChar() === Ae && C(z.UNTERMINATED_CLOSING_BRACE, a(), 0), h;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function Y(r) {
|
|
320
320
|
w(r);
|
|
321
321
|
let o = "";
|
|
322
|
-
return r.currentChar() === "-" ? (r.next(), o += `-${q(r)}`) : o += q(r), r.currentChar() ===
|
|
322
|
+
return r.currentChar() === "-" ? (r.next(), o += `-${q(r)}`) : o += q(r), r.currentChar() === Ae && C(z.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
323
323
|
}
|
|
324
324
|
function le(r) {
|
|
325
325
|
return r !== sn && r !== pe;
|
|
326
326
|
}
|
|
327
327
|
function ae(r) {
|
|
328
328
|
w(r), W(r, "'");
|
|
329
|
-
let o = "",
|
|
330
|
-
for (; o =
|
|
331
|
-
o === "\\" ?
|
|
329
|
+
let o = "", h = "";
|
|
330
|
+
for (; o = A(r, le); )
|
|
331
|
+
o === "\\" ? h += Ee(r) : h += o;
|
|
332
332
|
const V = r.currentChar();
|
|
333
|
-
return V === pe || V ===
|
|
333
|
+
return V === pe || V === Ae ? (C(z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), V === pe && (r.next(), W(r, "'")), h) : (W(r, "'"), h);
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function Ee(r) {
|
|
336
336
|
const o = r.currentChar();
|
|
337
337
|
switch (o) {
|
|
338
338
|
case "\\":
|
|
339
339
|
case "'":
|
|
340
340
|
return r.next(), `\\${o}`;
|
|
341
341
|
case "u":
|
|
342
|
-
return
|
|
342
|
+
return $e(r, o, 4);
|
|
343
343
|
case "U":
|
|
344
|
-
return
|
|
344
|
+
return $e(r, o, 6);
|
|
345
345
|
default:
|
|
346
|
-
return
|
|
346
|
+
return C(z.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function $e(r, o, h) {
|
|
350
350
|
W(r, o);
|
|
351
351
|
let V = "";
|
|
352
|
-
for (let oe = 0; oe <
|
|
352
|
+
for (let oe = 0; oe < h; oe++) {
|
|
353
353
|
const X = j(r);
|
|
354
354
|
if (!X) {
|
|
355
|
-
|
|
355
|
+
C(z.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${V}${r.currentChar()}`);
|
|
356
356
|
break;
|
|
357
357
|
}
|
|
358
358
|
V += X;
|
|
@@ -360,25 +360,25 @@ function Cs(e, t = {}) {
|
|
|
360
360
|
return `\\${o}${V}`;
|
|
361
361
|
}
|
|
362
362
|
function Ke(r) {
|
|
363
|
-
return r !== "{" && r !== "}" && r !==
|
|
363
|
+
return r !== "{" && r !== "}" && r !== Oe && r !== pe;
|
|
364
364
|
}
|
|
365
365
|
function vt(r) {
|
|
366
366
|
w(r);
|
|
367
|
-
let o = "",
|
|
368
|
-
for (; o =
|
|
369
|
-
|
|
370
|
-
return
|
|
367
|
+
let o = "", h = "";
|
|
368
|
+
for (; o = A(r, Ke); )
|
|
369
|
+
h += o;
|
|
370
|
+
return h;
|
|
371
371
|
}
|
|
372
|
-
function
|
|
373
|
-
let o = "",
|
|
372
|
+
function It(r) {
|
|
373
|
+
let o = "", h = "";
|
|
374
374
|
for (; o = G(r); )
|
|
375
|
-
|
|
376
|
-
return
|
|
375
|
+
h += o;
|
|
376
|
+
return h;
|
|
377
377
|
}
|
|
378
|
-
function
|
|
379
|
-
const o = (
|
|
378
|
+
function Et(r) {
|
|
379
|
+
const o = (h) => {
|
|
380
380
|
const V = r.currentChar();
|
|
381
|
-
return V === "{" || V === "@" || V === "|" || V === "(" || V === ")" || !V || V ===
|
|
381
|
+
return V === "{" || V === "@" || V === "|" || V === "(" || V === ")" || !V || V === Oe ? h : (h += V, r.next(), o(h));
|
|
382
382
|
};
|
|
383
383
|
return o("");
|
|
384
384
|
}
|
|
@@ -392,75 +392,75 @@ function Cs(e, t = {}) {
|
|
|
392
392
|
return w(r), o;
|
|
393
393
|
}
|
|
394
394
|
function We(r, o) {
|
|
395
|
-
let
|
|
395
|
+
let h = null;
|
|
396
396
|
switch (r.currentChar()) {
|
|
397
397
|
case "{":
|
|
398
|
-
return o.braceNest >= 1 &&
|
|
398
|
+
return o.braceNest >= 1 && C(z.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), r.next(), h = E(
|
|
399
399
|
o,
|
|
400
400
|
2,
|
|
401
401
|
"{"
|
|
402
402
|
/* TokenChars.BraceLeft */
|
|
403
|
-
), w(r), o.braceNest++,
|
|
403
|
+
), w(r), o.braceNest++, h;
|
|
404
404
|
case "}":
|
|
405
|
-
return o.braceNest > 0 && o.currentType === 2 &&
|
|
405
|
+
return o.braceNest > 0 && o.currentType === 2 && C(z.EMPTY_PLACEHOLDER, a(), 0), r.next(), h = E(
|
|
406
406
|
o,
|
|
407
407
|
3,
|
|
408
408
|
"}"
|
|
409
409
|
/* TokenChars.BraceRight */
|
|
410
|
-
), o.braceNest--, o.braceNest > 0 && w(r), o.inLinked && o.braceNest === 0 && (o.inLinked = !1),
|
|
410
|
+
), o.braceNest--, o.braceNest > 0 && w(r), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), h;
|
|
411
411
|
case "@":
|
|
412
|
-
return o.braceNest > 0 &&
|
|
412
|
+
return o.braceNest > 0 && C(z.UNTERMINATED_CLOSING_BRACE, a(), 0), h = Ge(r, o) || P(o), o.braceNest = 0, h;
|
|
413
413
|
default: {
|
|
414
414
|
let oe = !0, X = !0, f = !0;
|
|
415
415
|
if (y(r))
|
|
416
|
-
return o.braceNest > 0 &&
|
|
416
|
+
return o.braceNest > 0 && C(z.UNTERMINATED_CLOSING_BRACE, a(), 0), h = E(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
|
-
return
|
|
418
|
+
return C(z.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, Qe(r, o);
|
|
419
419
|
if (oe = N(r, o))
|
|
420
|
-
return
|
|
420
|
+
return h = E(o, 4, he(r)), w(r), h;
|
|
421
421
|
if (X = _(r, o))
|
|
422
|
-
return
|
|
423
|
-
if (f =
|
|
424
|
-
return
|
|
422
|
+
return h = E(o, 5, Y(r)), w(r), h;
|
|
423
|
+
if (f = M(r, o))
|
|
424
|
+
return h = E(o, 6, ae(r)), w(r), h;
|
|
425
425
|
if (!oe && !X && !f)
|
|
426
|
-
return
|
|
426
|
+
return h = E(o, 12, vt(r)), C(z.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, h.value), w(r), h;
|
|
427
427
|
break;
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
|
-
return
|
|
430
|
+
return h;
|
|
431
431
|
}
|
|
432
432
|
function Ge(r, o) {
|
|
433
|
-
const { currentType:
|
|
433
|
+
const { currentType: h } = o;
|
|
434
434
|
let V = null;
|
|
435
435
|
const oe = r.currentChar();
|
|
436
|
-
switch ((
|
|
436
|
+
switch ((h === 7 || h === 8 || h === 11 || h === 9) && (oe === pe || oe === Oe) && C(z.INVALID_LINKED_FORMAT, a(), 0), oe) {
|
|
437
437
|
case "@":
|
|
438
|
-
return r.next(), V =
|
|
438
|
+
return r.next(), V = E(
|
|
439
439
|
o,
|
|
440
440
|
7,
|
|
441
441
|
"@"
|
|
442
442
|
/* TokenChars.LinkedAlias */
|
|
443
443
|
), o.inLinked = !0, V;
|
|
444
444
|
case ".":
|
|
445
|
-
return w(r), r.next(),
|
|
445
|
+
return w(r), r.next(), E(
|
|
446
446
|
o,
|
|
447
447
|
8,
|
|
448
448
|
"."
|
|
449
449
|
/* TokenChars.LinkedDot */
|
|
450
450
|
);
|
|
451
451
|
case ":":
|
|
452
|
-
return w(r), r.next(),
|
|
452
|
+
return w(r), r.next(), E(
|
|
453
453
|
o,
|
|
454
454
|
9,
|
|
455
455
|
":"
|
|
456
456
|
/* TokenChars.LinkedDelimiter */
|
|
457
457
|
);
|
|
458
458
|
default:
|
|
459
|
-
return y(r) ? (V =
|
|
459
|
+
return y(r) ? (V = E(o, 1, ze(r)), o.braceNest = 0, o.inLinked = !1, V) : D(r, o) || I(r, o) ? (w(r), Ge(r, o)) : g(r, o) ? (w(r), E(o, 11, It(r))) : R(r, o) ? (w(r), oe === "{" ? We(r, o) || V : E(o, 10, Et(r))) : (h === 7 && C(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) {
|
|
463
|
-
let
|
|
463
|
+
let h = {
|
|
464
464
|
type: 13
|
|
465
465
|
/* TokenTypes.EOF */
|
|
466
466
|
};
|
|
@@ -472,7 +472,7 @@ function Cs(e, t = {}) {
|
|
|
472
472
|
case "{":
|
|
473
473
|
return We(r, o) || P(o);
|
|
474
474
|
case "}":
|
|
475
|
-
return
|
|
475
|
+
return C(z.UNBALANCED_CLOSING_BRACE, a(), 0), r.next(), E(
|
|
476
476
|
o,
|
|
477
477
|
3,
|
|
478
478
|
"}"
|
|
@@ -482,17 +482,17 @@ function Cs(e, t = {}) {
|
|
|
482
482
|
return Ge(r, o) || P(o);
|
|
483
483
|
default: {
|
|
484
484
|
if (y(r))
|
|
485
|
-
return
|
|
486
|
-
if (
|
|
487
|
-
return
|
|
485
|
+
return h = E(o, 1, ze(r)), o.braceNest = 0, o.inLinked = !1, h;
|
|
486
|
+
if (b(r))
|
|
487
|
+
return E(o, 0, J(r));
|
|
488
488
|
break;
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
return
|
|
491
|
+
return h;
|
|
492
492
|
}
|
|
493
493
|
function Nt() {
|
|
494
|
-
const { currentType: r, offset: o, startLoc:
|
|
495
|
-
return u.lastType = r, u.lastOffset = o, u.lastStartLoc =
|
|
494
|
+
const { currentType: r, offset: o, startLoc: h, endLoc: V } = u;
|
|
495
|
+
return u.lastType = r, u.lastOffset = o, u.lastStartLoc = h, u.lastEndLoc = V, u.offset = l(), u.startLoc = a(), s.currentChar() === Ae ? E(
|
|
496
496
|
u,
|
|
497
497
|
13
|
|
498
498
|
/* TokenTypes.EOF */
|
|
@@ -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", Ds = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
509
|
+
function Ms(e, t, n) {
|
|
510
510
|
switch (e) {
|
|
511
511
|
case "\\\\":
|
|
512
512
|
return "\\";
|
|
@@ -520,14 +520,14 @@ function Ds(e, t, n) {
|
|
|
520
520
|
}
|
|
521
521
|
function ws(e = {}) {
|
|
522
522
|
const t = e.location !== !1, { onError: n } = e;
|
|
523
|
-
function s(i, m, N, _, ...
|
|
524
|
-
const
|
|
525
|
-
if (
|
|
526
|
-
const g = t ?
|
|
523
|
+
function s(i, m, N, _, ...M) {
|
|
524
|
+
const D = i.currentPosition();
|
|
525
|
+
if (D.offset += _, D.column += _, n) {
|
|
526
|
+
const g = t ? Mt(N, D) : null, I = bt(m, g, {
|
|
527
527
|
domain: Ss,
|
|
528
|
-
args:
|
|
528
|
+
args: M
|
|
529
529
|
});
|
|
530
|
-
n(
|
|
530
|
+
n(I);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
function l(i, m, N) {
|
|
@@ -542,54 +542,54 @@ function ws(e = {}) {
|
|
|
542
542
|
return _.value = m, a(_, i.currentOffset(), i.currentPosition()), _;
|
|
543
543
|
}
|
|
544
544
|
function d(i, m) {
|
|
545
|
-
const N = i.context(), { lastOffset: _, lastStartLoc:
|
|
546
|
-
return
|
|
545
|
+
const N = i.context(), { lastOffset: _, lastStartLoc: M } = N, D = l(5, _, M);
|
|
546
|
+
return D.index = parseInt(m, 10), i.nextToken(), a(D, i.currentOffset(), i.currentPosition()), D;
|
|
547
547
|
}
|
|
548
548
|
function u(i, m) {
|
|
549
|
-
const N = i.context(), { lastOffset: _, lastStartLoc:
|
|
550
|
-
return
|
|
549
|
+
const N = i.context(), { lastOffset: _, lastStartLoc: M } = N, D = l(4, _, M);
|
|
550
|
+
return D.key = m, i.nextToken(), a(D, i.currentOffset(), i.currentPosition()), D;
|
|
551
551
|
}
|
|
552
552
|
function p(i, m) {
|
|
553
|
-
const N = i.context(), { lastOffset: _, lastStartLoc:
|
|
554
|
-
return
|
|
553
|
+
const N = i.context(), { lastOffset: _, lastStartLoc: M } = N, D = l(9, _, M);
|
|
554
|
+
return D.value = m.replace(Ds, Ms), i.nextToken(), a(D, i.currentOffset(), i.currentPosition()), D;
|
|
555
555
|
}
|
|
556
|
-
function
|
|
557
|
-
const m = i.nextToken(), N = i.context(), { lastOffset: _, lastStartLoc:
|
|
558
|
-
return m.type !== 11 ? (s(i, z.UNEXPECTED_EMPTY_LINKED_MODIFIER, N.lastStartLoc, 0),
|
|
556
|
+
function O(i) {
|
|
557
|
+
const m = i.nextToken(), N = i.context(), { lastOffset: _, lastStartLoc: M } = N, D = l(8, _, M);
|
|
558
|
+
return m.type !== 11 ? (s(i, z.UNEXPECTED_EMPTY_LINKED_MODIFIER, N.lastStartLoc, 0), D.value = "", a(D, _, M), {
|
|
559
559
|
nextConsumeToken: m,
|
|
560
|
-
node:
|
|
561
|
-
}) : (m.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0,
|
|
562
|
-
node:
|
|
560
|
+
node: D
|
|
561
|
+
}) : (m.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, ke(m)), D.value = m.value || "", a(D, i.currentOffset(), i.currentPosition()), {
|
|
562
|
+
node: D
|
|
563
563
|
});
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function C(i, m) {
|
|
566
566
|
const N = i.context(), _ = l(7, N.offset, N.startLoc);
|
|
567
567
|
return _.value = m, a(_, i.currentOffset(), i.currentPosition()), _;
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function E(i) {
|
|
570
570
|
const m = i.context(), N = l(6, m.offset, m.startLoc);
|
|
571
571
|
let _ = i.nextToken();
|
|
572
572
|
if (_.type === 8) {
|
|
573
|
-
const
|
|
574
|
-
N.modifier =
|
|
573
|
+
const M = O(i);
|
|
574
|
+
N.modifier = M.node, _ = M.nextConsumeToken || i.nextToken();
|
|
575
575
|
}
|
|
576
|
-
switch (_.type !== 9 && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0,
|
|
576
|
+
switch (_.type !== 9 && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ke(_)), _ = i.nextToken(), _.type === 2 && (_ = i.nextToken()), _.type) {
|
|
577
577
|
case 10:
|
|
578
|
-
_.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0,
|
|
578
|
+
_.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ke(_)), N.key = C(i, _.value || "");
|
|
579
579
|
break;
|
|
580
580
|
case 4:
|
|
581
|
-
_.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0,
|
|
581
|
+
_.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ke(_)), N.key = u(i, _.value || "");
|
|
582
582
|
break;
|
|
583
583
|
case 5:
|
|
584
|
-
_.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0,
|
|
584
|
+
_.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ke(_)), N.key = d(i, _.value || "");
|
|
585
585
|
break;
|
|
586
586
|
case 6:
|
|
587
|
-
_.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0,
|
|
587
|
+
_.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ke(_)), N.key = p(i, _.value || "");
|
|
588
588
|
break;
|
|
589
589
|
default: {
|
|
590
590
|
s(i, z.UNEXPECTED_EMPTY_LINKED_KEY, m.lastStartLoc, 0);
|
|
591
|
-
const
|
|
592
|
-
return
|
|
591
|
+
const M = i.context(), D = l(7, M.offset, M.startLoc);
|
|
592
|
+
return D.value = "", a(D, M.offset, M.startLoc), N.key = D, a(N, M.offset, M.startLoc), {
|
|
593
593
|
nextConsumeToken: _,
|
|
594
594
|
node: N
|
|
595
595
|
};
|
|
@@ -600,56 +600,56 @@ function ws(e = {}) {
|
|
|
600
600
|
};
|
|
601
601
|
}
|
|
602
602
|
function P(i) {
|
|
603
|
-
const m = i.context(), N = m.currentType === 1 ? i.currentOffset() : m.offset, _ = m.currentType === 1 ? m.endLoc : m.startLoc,
|
|
604
|
-
|
|
605
|
-
let
|
|
603
|
+
const m = i.context(), N = m.currentType === 1 ? i.currentOffset() : m.offset, _ = m.currentType === 1 ? m.endLoc : m.startLoc, M = l(2, N, _);
|
|
604
|
+
M.items = [];
|
|
605
|
+
let D = null;
|
|
606
606
|
do {
|
|
607
|
-
const R =
|
|
608
|
-
switch (
|
|
607
|
+
const R = D || i.nextToken();
|
|
608
|
+
switch (D = null, R.type) {
|
|
609
609
|
case 0:
|
|
610
|
-
R.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0,
|
|
610
|
+
R.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ke(R)), M.items.push(c(i, R.value || ""));
|
|
611
611
|
break;
|
|
612
612
|
case 5:
|
|
613
|
-
R.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0,
|
|
613
|
+
R.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ke(R)), M.items.push(d(i, R.value || ""));
|
|
614
614
|
break;
|
|
615
615
|
case 4:
|
|
616
|
-
R.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0,
|
|
616
|
+
R.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ke(R)), M.items.push(u(i, R.value || ""));
|
|
617
617
|
break;
|
|
618
618
|
case 6:
|
|
619
|
-
R.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0,
|
|
619
|
+
R.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ke(R)), M.items.push(p(i, R.value || ""));
|
|
620
620
|
break;
|
|
621
621
|
case 7: {
|
|
622
|
-
const y =
|
|
623
|
-
|
|
622
|
+
const y = E(i);
|
|
623
|
+
M.items.push(y.node), D = y.nextConsumeToken || null;
|
|
624
624
|
break;
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
627
|
} while (m.currentType !== 13 && m.currentType !== 1);
|
|
628
|
-
const g = m.currentType === 1 ? m.lastOffset : i.currentOffset(),
|
|
629
|
-
return a(
|
|
628
|
+
const g = m.currentType === 1 ? m.lastOffset : i.currentOffset(), I = m.currentType === 1 ? m.lastEndLoc : i.currentPosition();
|
|
629
|
+
return a(M, g, I), M;
|
|
630
630
|
}
|
|
631
631
|
function W(i, m, N, _) {
|
|
632
|
-
const
|
|
633
|
-
let
|
|
632
|
+
const M = i.context();
|
|
633
|
+
let D = _.items.length === 0;
|
|
634
634
|
const g = l(1, m, N);
|
|
635
635
|
g.cases = [], g.cases.push(_);
|
|
636
636
|
do {
|
|
637
|
-
const
|
|
638
|
-
|
|
639
|
-
} while (
|
|
640
|
-
return
|
|
637
|
+
const I = P(i);
|
|
638
|
+
D || (D = I.items.length === 0), g.cases.push(I);
|
|
639
|
+
} while (M.currentType !== 13);
|
|
640
|
+
return D && s(i, z.MUST_HAVE_MESSAGES_IN_PLURAL, N, 0), a(g, i.currentOffset(), i.currentPosition()), g;
|
|
641
641
|
}
|
|
642
|
-
function
|
|
643
|
-
const m = i.context(), { offset: N, startLoc: _ } = m,
|
|
644
|
-
return m.currentType === 13 ?
|
|
642
|
+
function k(i) {
|
|
643
|
+
const m = i.context(), { offset: N, startLoc: _ } = m, M = P(i);
|
|
644
|
+
return m.currentType === 13 ? M : W(i, N, _, M);
|
|
645
645
|
}
|
|
646
646
|
function w(i) {
|
|
647
|
-
const m =
|
|
648
|
-
return t && _.loc && (_.loc.source = i), _.body =
|
|
647
|
+
const m = As(i, fe({}, e)), N = m.context(), _ = l(0, N.offset, N.startLoc);
|
|
648
|
+
return t && _.loc && (_.loc.source = i), _.body = k(m), e.onCacheKey && (_.cacheKey = e.onCacheKey(i)), N.currentType !== 13 && s(m, z.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, i[N.offset] || ""), a(_, m.currentOffset(), m.currentPosition()), _;
|
|
649
649
|
}
|
|
650
650
|
return { parse: w };
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function ke(e) {
|
|
653
653
|
if (e.type === 13)
|
|
654
654
|
return "EOF";
|
|
655
655
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
@@ -741,24 +741,24 @@ function rn(e) {
|
|
|
741
741
|
}
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function Ye(e) {
|
|
745
745
|
switch (e.t = e.type, e.type) {
|
|
746
746
|
case 0: {
|
|
747
747
|
const t = e;
|
|
748
|
-
|
|
748
|
+
Ye(t.body), t.b = t.body, delete t.body;
|
|
749
749
|
break;
|
|
750
750
|
}
|
|
751
751
|
case 1: {
|
|
752
752
|
const t = e, n = t.cases;
|
|
753
753
|
for (let s = 0; s < n.length; s++)
|
|
754
|
-
|
|
754
|
+
Ye(n[s]);
|
|
755
755
|
t.c = n, delete t.cases;
|
|
756
756
|
break;
|
|
757
757
|
}
|
|
758
758
|
case 2: {
|
|
759
759
|
const t = e, n = t.items;
|
|
760
760
|
for (let s = 0; s < n.length; s++)
|
|
761
|
-
|
|
761
|
+
Ye(n[s]);
|
|
762
762
|
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
763
763
|
break;
|
|
764
764
|
}
|
|
@@ -772,7 +772,7 @@ function Ze(e) {
|
|
|
772
772
|
}
|
|
773
773
|
case 6: {
|
|
774
774
|
const t = e;
|
|
775
|
-
|
|
775
|
+
Ye(t.key), t.k = t.key, delete t.key, t.modifier && (Ye(t.modifier), t.m = t.modifier, delete t.modifier);
|
|
776
776
|
break;
|
|
777
777
|
}
|
|
778
778
|
case 5: {
|
|
@@ -802,31 +802,31 @@ function Us(e, t) {
|
|
|
802
802
|
};
|
|
803
803
|
a && e.loc && (c.source = e.loc.source);
|
|
804
804
|
const d = () => c;
|
|
805
|
-
function u(
|
|
806
|
-
c.code +=
|
|
805
|
+
function u(k, w) {
|
|
806
|
+
c.code += k;
|
|
807
807
|
}
|
|
808
|
-
function p(
|
|
808
|
+
function p(k, w = !0) {
|
|
809
809
|
const i = w ? s : "";
|
|
810
|
-
u(l ? i + " ".repeat(
|
|
810
|
+
u(l ? i + " ".repeat(k) : i);
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function O(k = !0) {
|
|
813
813
|
const w = ++c.indentLevel;
|
|
814
|
-
|
|
814
|
+
k && p(w);
|
|
815
815
|
}
|
|
816
|
-
function
|
|
816
|
+
function C(k = !0) {
|
|
817
817
|
const w = --c.indentLevel;
|
|
818
|
-
|
|
818
|
+
k && p(w);
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function E() {
|
|
821
821
|
p(c.indentLevel);
|
|
822
822
|
}
|
|
823
823
|
return {
|
|
824
824
|
context: d,
|
|
825
825
|
push: u,
|
|
826
|
-
indent:
|
|
827
|
-
deindent:
|
|
828
|
-
newline:
|
|
829
|
-
helper: (
|
|
826
|
+
indent: O,
|
|
827
|
+
deindent: C,
|
|
828
|
+
newline: E,
|
|
829
|
+
helper: (k) => `_${k}`,
|
|
830
830
|
needIndent: () => c.needIndent
|
|
831
831
|
};
|
|
832
832
|
}
|
|
@@ -911,7 +911,7 @@ function Xe(e, t) {
|
|
|
911
911
|
break;
|
|
912
912
|
}
|
|
913
913
|
}
|
|
914
|
-
const
|
|
914
|
+
const Ys = (e, t = {}) => {
|
|
915
915
|
const n = F(t.mode) ? t.mode : "normal", s = F(t.filename) ? t.filename : "message.intl";
|
|
916
916
|
t.sourceMap;
|
|
917
917
|
const l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
@@ -920,7 +920,7 @@ const Zs = (e, t = {}) => {
|
|
|
920
920
|
breakLineCode: l,
|
|
921
921
|
needIndent: a
|
|
922
922
|
});
|
|
923
|
-
d.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), d.indent(a), c.length > 0 && (d.push(`const { ${Xt(c.map((
|
|
923
|
+
d.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), d.indent(a), c.length > 0 && (d.push(`const { ${Xt(c.map((O) => `${O}: _${O}`), ", ")} } = ctx`), d.newline()), d.push("return "), Xe(d, e), d.deindent(a), d.push("}"), delete e.helpers;
|
|
924
924
|
const { code: u, map: p } = d.context();
|
|
925
925
|
return {
|
|
926
926
|
ast: e,
|
|
@@ -929,19 +929,19 @@ const Zs = (e, t = {}) => {
|
|
|
929
929
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
930
930
|
};
|
|
931
931
|
};
|
|
932
|
-
function
|
|
932
|
+
function Zs(e, t = {}) {
|
|
933
933
|
const n = fe({}, t), s = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize, d = ws(n).parse(e);
|
|
934
|
-
return s ? (a && js(d), l &&
|
|
934
|
+
return s ? (a && js(d), l && Ye(d), { ast: d, code: "" }) : (Fs(d, n), Ys(d, n));
|
|
935
935
|
}
|
|
936
936
|
var Xs = { env: { NODE_ENV: "production" } };
|
|
937
937
|
function Hs() {
|
|
938
938
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (je().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (je().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
939
939
|
}
|
|
940
|
-
function
|
|
940
|
+
function Ot(e) {
|
|
941
941
|
return (n) => Bs(n, e);
|
|
942
942
|
}
|
|
943
943
|
function Bs(e, t) {
|
|
944
|
-
const n =
|
|
944
|
+
const n = $s(t);
|
|
945
945
|
if (n == null)
|
|
946
946
|
throw tt(
|
|
947
947
|
0
|
|
@@ -956,13 +956,13 @@ function Bs(e, t) {
|
|
|
956
956
|
} else
|
|
957
957
|
return ln(e, n);
|
|
958
958
|
}
|
|
959
|
-
const
|
|
960
|
-
function
|
|
961
|
-
return
|
|
959
|
+
const Js = ["b", "body"];
|
|
960
|
+
function $s(e) {
|
|
961
|
+
return Me(e, Js);
|
|
962
962
|
}
|
|
963
963
|
const Ks = ["c", "cases"];
|
|
964
964
|
function zs(e) {
|
|
965
|
-
return
|
|
965
|
+
return Me(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 Me(e, Qs);
|
|
979
979
|
}
|
|
980
980
|
const ea = ["i", "items"];
|
|
981
981
|
function ta(e) {
|
|
982
|
-
return
|
|
982
|
+
return Me(e, ea, []);
|
|
983
983
|
}
|
|
984
984
|
function wt(e, t) {
|
|
985
985
|
const n = Bt(t);
|
|
@@ -1018,22 +1018,22 @@ function wt(e, t) {
|
|
|
1018
1018
|
}
|
|
1019
1019
|
const na = ["t", "type"];
|
|
1020
1020
|
function Bt(e) {
|
|
1021
|
-
return
|
|
1021
|
+
return Me(e, na);
|
|
1022
1022
|
}
|
|
1023
1023
|
const sa = ["v", "value"];
|
|
1024
1024
|
function ot(e, t) {
|
|
1025
|
-
const n =
|
|
1025
|
+
const n = Me(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 Me(e, aa);
|
|
1033
1033
|
}
|
|
1034
1034
|
const la = ["k", "key"];
|
|
1035
1035
|
function oa(e) {
|
|
1036
|
-
const t =
|
|
1036
|
+
const t = Me(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 Me(e, t, n) {
|
|
1045
1045
|
for (let s = 0; s < t.length; s++) {
|
|
1046
1046
|
const l = t[s];
|
|
1047
1047
|
if (ye(e, l) && e[l] != null)
|
|
@@ -1062,7 +1062,7 @@ function ca(e, t = {}) {
|
|
|
1062
1062
|
const s = t.onError || ys;
|
|
1063
1063
|
return t.onError = (l) => {
|
|
1064
1064
|
n = !0, s(l);
|
|
1065
|
-
}, { ...
|
|
1065
|
+
}, { ...Zs(e, t), detectError: n };
|
|
1066
1066
|
}
|
|
1067
1067
|
// @__NO_SIDE_EFFECTS__
|
|
1068
1068
|
function ua(e, t) {
|
|
@@ -1075,15 +1075,15 @@ function ua(e, t) {
|
|
|
1075
1075
|
...t,
|
|
1076
1076
|
location: Xs.env.NODE_ENV !== "production",
|
|
1077
1077
|
jit: !0
|
|
1078
|
-
}), d =
|
|
1078
|
+
}), d = Ot(a);
|
|
1079
1079
|
return c ? d : it[s] = d;
|
|
1080
1080
|
} else {
|
|
1081
1081
|
const n = e.cacheKey;
|
|
1082
1082
|
if (n) {
|
|
1083
1083
|
const s = it[n];
|
|
1084
|
-
return s || (it[n] =
|
|
1084
|
+
return s || (it[n] = Ot(e));
|
|
1085
1085
|
} else
|
|
1086
|
-
return
|
|
1086
|
+
return Ot(e);
|
|
1087
1087
|
}
|
|
1088
1088
|
}
|
|
1089
1089
|
let nt = null;
|
|
@@ -1111,36 +1111,36 @@ const Re = {
|
|
|
1111
1111
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1112
1112
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1113
1113
|
}, pa = 24;
|
|
1114
|
-
function
|
|
1115
|
-
return
|
|
1114
|
+
function Ce(e) {
|
|
1115
|
+
return bt(e, null, void 0);
|
|
1116
1116
|
}
|
|
1117
|
-
function
|
|
1117
|
+
function Jt(e, t) {
|
|
1118
1118
|
return t.locale != null ? on(t.locale) : on(e.locale);
|
|
1119
1119
|
}
|
|
1120
|
-
let
|
|
1120
|
+
let Lt;
|
|
1121
1121
|
function on(e) {
|
|
1122
1122
|
if (F(e))
|
|
1123
1123
|
return e;
|
|
1124
1124
|
if (re(e)) {
|
|
1125
|
-
if (e.resolvedOnce &&
|
|
1126
|
-
return
|
|
1125
|
+
if (e.resolvedOnce && Lt != null)
|
|
1126
|
+
return Lt;
|
|
1127
1127
|
if (e.constructor.name === "Function") {
|
|
1128
1128
|
const t = e();
|
|
1129
1129
|
if (gs(t))
|
|
1130
|
-
throw
|
|
1131
|
-
return
|
|
1130
|
+
throw Ce(Re.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1131
|
+
return Lt = t;
|
|
1132
1132
|
} else
|
|
1133
|
-
throw
|
|
1133
|
+
throw Ce(Re.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1134
1134
|
} else
|
|
1135
|
-
throw
|
|
1135
|
+
throw Ce(Re.NOT_SUPPORT_LOCALE_TYPE);
|
|
1136
1136
|
}
|
|
1137
|
-
function
|
|
1137
|
+
function ba(e, t, n) {
|
|
1138
1138
|
return [.../* @__PURE__ */ new Set([
|
|
1139
1139
|
n,
|
|
1140
1140
|
...ue(t) ? t : K(t) ? Object.keys(t) : F(t) ? [t] : [n]
|
|
1141
1141
|
])];
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function Mn(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,7 +1149,7 @@ function Dn(e, t, n) {
|
|
|
1149
1149
|
let c = [n];
|
|
1150
1150
|
for (; ue(c); )
|
|
1151
1151
|
c = cn(a, c, t);
|
|
1152
|
-
const d = ue(t) ||
|
|
1152
|
+
const d = ue(t) || !$(t) ? t : t.default ? t.default : null;
|
|
1153
1153
|
c = F(d) ? [d] : d, ue(c) && cn(a, c, !1), l.__localeChainCache.set(s, a);
|
|
1154
1154
|
}
|
|
1155
1155
|
return a;
|
|
@@ -1158,11 +1158,11 @@ function cn(e, t, n) {
|
|
|
1158
1158
|
let s = !0;
|
|
1159
1159
|
for (let l = 0; l < t.length && ce(s); l++) {
|
|
1160
1160
|
const a = t[l];
|
|
1161
|
-
F(a) && (s =
|
|
1161
|
+
F(a) && (s = ha(e, t[l], n));
|
|
1162
1162
|
}
|
|
1163
1163
|
return s;
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1165
|
+
function ha(e, t, n) {
|
|
1166
1166
|
let s;
|
|
1167
1167
|
const l = t.split("-");
|
|
1168
1168
|
do {
|
|
@@ -1176,7 +1176,7 @@ function ga(e, t, n) {
|
|
|
1176
1176
|
if (!e.includes(t) && (s = !0, t)) {
|
|
1177
1177
|
s = t[t.length - 1] !== "!";
|
|
1178
1178
|
const l = t.replace(/!/g, "");
|
|
1179
|
-
e.push(l), (ue(n) ||
|
|
1179
|
+
e.push(l), (ue(n) || $(n)) && n[l] && (s = n[l]);
|
|
1180
1180
|
}
|
|
1181
1181
|
return s;
|
|
1182
1182
|
}
|
|
@@ -1342,10 +1342,10 @@ we[
|
|
|
1342
1342
|
]
|
|
1343
1343
|
};
|
|
1344
1344
|
const va = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1345
|
-
function
|
|
1345
|
+
function Ia(e) {
|
|
1346
1346
|
return va.test(e);
|
|
1347
1347
|
}
|
|
1348
|
-
function
|
|
1348
|
+
function Ea(e) {
|
|
1349
1349
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1350
1350
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1351
1351
|
}
|
|
@@ -1376,43 +1376,43 @@ function Na(e) {
|
|
|
1376
1376
|
}
|
|
1377
1377
|
function ya(e) {
|
|
1378
1378
|
const t = e.trim();
|
|
1379
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1379
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Ia(t) ? Ea(t) : "*" + t;
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1381
|
+
function Ta(e) {
|
|
1382
1382
|
const t = [];
|
|
1383
|
-
let n = -1, s = 0, l = 0, a, c, d, u, p,
|
|
1384
|
-
const
|
|
1385
|
-
|
|
1383
|
+
let n = -1, s = 0, l = 0, a, c, d, u, p, O, C;
|
|
1384
|
+
const E = [];
|
|
1385
|
+
E[
|
|
1386
1386
|
0
|
|
1387
1387
|
/* Actions.APPEND */
|
|
1388
1388
|
] = () => {
|
|
1389
1389
|
c === void 0 ? c = d : c += d;
|
|
1390
|
-
},
|
|
1390
|
+
}, E[
|
|
1391
1391
|
1
|
|
1392
1392
|
/* Actions.PUSH */
|
|
1393
1393
|
] = () => {
|
|
1394
1394
|
c !== void 0 && (t.push(c), c = void 0);
|
|
1395
|
-
},
|
|
1395
|
+
}, E[
|
|
1396
1396
|
2
|
|
1397
1397
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1398
1398
|
] = () => {
|
|
1399
|
-
|
|
1399
|
+
E[
|
|
1400
1400
|
0
|
|
1401
1401
|
/* Actions.APPEND */
|
|
1402
1402
|
](), l++;
|
|
1403
|
-
},
|
|
1403
|
+
}, E[
|
|
1404
1404
|
3
|
|
1405
1405
|
/* Actions.PUSH_SUB_PATH */
|
|
1406
1406
|
] = () => {
|
|
1407
1407
|
if (l > 0)
|
|
1408
|
-
l--, s = 4,
|
|
1408
|
+
l--, s = 4, E[
|
|
1409
1409
|
0
|
|
1410
1410
|
/* Actions.APPEND */
|
|
1411
1411
|
]();
|
|
1412
1412
|
else {
|
|
1413
1413
|
if (l = 0, c === void 0 || (c = ya(c), c === !1))
|
|
1414
1414
|
return !1;
|
|
1415
|
-
|
|
1415
|
+
E[
|
|
1416
1416
|
1
|
|
1417
1417
|
/* Actions.PUSH */
|
|
1418
1418
|
]();
|
|
@@ -1421,28 +1421,28 @@ function ka(e) {
|
|
|
1421
1421
|
function P() {
|
|
1422
1422
|
const W = e[n + 1];
|
|
1423
1423
|
if (s === 5 && W === "'" || s === 6 && W === '"')
|
|
1424
|
-
return n++, d = "\\" + W,
|
|
1424
|
+
return n++, d = "\\" + W, E[
|
|
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 = Na(a),
|
|
1431
|
+
if (u = Na(a), C = we[s], p = C[u] || C.l || 8, p === 8 || (s = p[0], p[1] !== void 0 && (O = E[p[1]], O && (d = a, O() === !1))))
|
|
1432
1432
|
return;
|
|
1433
1433
|
if (s === 7)
|
|
1434
1434
|
return t;
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
1437
|
const un = /* @__PURE__ */ new Map();
|
|
1438
|
-
function
|
|
1438
|
+
function ka(e, t) {
|
|
1439
1439
|
return K(e) ? e[t] : null;
|
|
1440
1440
|
}
|
|
1441
|
-
function
|
|
1441
|
+
function Oa(e, t) {
|
|
1442
1442
|
if (!K(e))
|
|
1443
1443
|
return null;
|
|
1444
1444
|
let n = un.get(t);
|
|
1445
|
-
if (n || (n =
|
|
1445
|
+
if (n || (n = Ta(t), n && un.set(t, n)), !n)
|
|
1446
1446
|
return null;
|
|
1447
1447
|
const s = n.length;
|
|
1448
1448
|
let l = e, a = 0;
|
|
@@ -1454,7 +1454,7 @@ function La(e, t) {
|
|
|
1454
1454
|
}
|
|
1455
1455
|
return l;
|
|
1456
1456
|
}
|
|
1457
|
-
const
|
|
1457
|
+
const La = "10.0.5", ht = -1, _t = "en-US", dn = "", mn = (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,
|
|
@@ -1463,11 +1463,11 @@ function Ra() {
|
|
|
1463
1463
|
};
|
|
1464
1464
|
}
|
|
1465
1465
|
let wn;
|
|
1466
|
-
function
|
|
1466
|
+
function Ca(e) {
|
|
1467
1467
|
wn = e;
|
|
1468
1468
|
}
|
|
1469
1469
|
let Pn;
|
|
1470
|
-
function
|
|
1470
|
+
function Aa(e) {
|
|
1471
1471
|
Pn = e;
|
|
1472
1472
|
}
|
|
1473
1473
|
let Fn;
|
|
@@ -1475,45 +1475,45 @@ function Sa(e) {
|
|
|
1475
1475
|
Fn = e;
|
|
1476
1476
|
}
|
|
1477
1477
|
let jn = null;
|
|
1478
|
-
const
|
|
1478
|
+
const Da = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1479
1479
|
jn = e;
|
|
1480
|
-
},
|
|
1480
|
+
}, Ma = /* @__NO_SIDE_EFFECTS__ */ () => jn;
|
|
1481
1481
|
let Un = null;
|
|
1482
1482
|
const fn = (e) => {
|
|
1483
1483
|
Un = e;
|
|
1484
1484
|
}, wa = () => Un;
|
|
1485
1485
|
let _n = 0;
|
|
1486
1486
|
function Pa(e = {}) {
|
|
1487
|
-
const t = re(e.onWarn) ? e.onWarn :
|
|
1487
|
+
const t = re(e.onWarn) ? e.onWarn : Is, 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) || $(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, c = $(e.messages) ? e.messages : Rt(l), d = $(e.datetimeFormats) ? e.datetimeFormats : Rt(l), u = $(e.numberFormats) ? e.numberFormats : Rt(l), p = fe(Q(), e.modifiers, Ra()), O = e.pluralRules || Q(), C = re(e.missing) ? e.missing : null, E = ce(e.missingWarn) || ft(e.missingWarn) ? e.missingWarn : !0, P = ce(e.fallbackWarn) || ft(e.fallbackWarn) ? e.fallbackWarn : !0, W = !!e.fallbackFormat, k = !!e.unresolving, w = re(e.postTranslation) ? e.postTranslation : null, i = $(e.processor) ? e.processor : null, m = ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, N = !!e.escapeParameter, _ = re(e.messageCompiler) ? e.messageCompiler : wn, M = re(e.messageResolver) ? e.messageResolver : Pn || ka, D = re(e.localeFallbacker) ? e.localeFallbacker : Fn || ba, g = K(e.fallbackContext) ? e.fallbackContext : void 0, I = e, R = K(I.__datetimeFormatters) ? I.__datetimeFormatters : /* @__PURE__ */ new Map(), y = K(I.__numberFormatters) ? I.__numberFormatters : /* @__PURE__ */ new Map(), b = K(I.__meta) ? I.__meta : {};
|
|
1488
1488
|
_n++;
|
|
1489
|
-
const
|
|
1489
|
+
const A = {
|
|
1490
1490
|
version: n,
|
|
1491
1491
|
cid: _n,
|
|
1492
1492
|
locale: s,
|
|
1493
1493
|
fallbackLocale: a,
|
|
1494
1494
|
messages: c,
|
|
1495
1495
|
modifiers: p,
|
|
1496
|
-
pluralRules:
|
|
1497
|
-
missing:
|
|
1498
|
-
missingWarn:
|
|
1496
|
+
pluralRules: O,
|
|
1497
|
+
missing: C,
|
|
1498
|
+
missingWarn: E,
|
|
1499
1499
|
fallbackWarn: P,
|
|
1500
1500
|
fallbackFormat: W,
|
|
1501
|
-
unresolving:
|
|
1501
|
+
unresolving: k,
|
|
1502
1502
|
postTranslation: w,
|
|
1503
1503
|
processor: i,
|
|
1504
1504
|
warnHtmlMessage: m,
|
|
1505
1505
|
escapeParameter: N,
|
|
1506
1506
|
messageCompiler: _,
|
|
1507
|
-
messageResolver:
|
|
1508
|
-
localeFallbacker:
|
|
1507
|
+
messageResolver: M,
|
|
1508
|
+
localeFallbacker: D,
|
|
1509
1509
|
fallbackContext: g,
|
|
1510
1510
|
onWarn: t,
|
|
1511
|
-
__meta:
|
|
1511
|
+
__meta: b
|
|
1512
1512
|
};
|
|
1513
|
-
return
|
|
1513
|
+
return A.datetimeFormats = d, A.numberFormats = u, A.__datetimeFormatters = R, A.__numberFormatters = y, __INTLIFY_PROD_DEVTOOLS__ && ma(A, n, b), A;
|
|
1514
1514
|
}
|
|
1515
1515
|
const Rt = (e) => ({ [e]: Q() });
|
|
1516
|
-
function
|
|
1516
|
+
function $t(e, t, n, s, l) {
|
|
1517
1517
|
const { missing: a, onWarn: c } = e;
|
|
1518
1518
|
if (a !== null) {
|
|
1519
1519
|
const d = a(e, n, t, l);
|
|
@@ -1538,26 +1538,26 @@ function ja(e, t) {
|
|
|
1538
1538
|
return !1;
|
|
1539
1539
|
}
|
|
1540
1540
|
function pn(e, ...t) {
|
|
1541
|
-
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __datetimeFormatters: d } = e, [u, p,
|
|
1542
|
-
ce(
|
|
1543
|
-
const P = !!
|
|
1541
|
+
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __datetimeFormatters: d } = e, [u, p, O, C] = Pt(...t), E = ce(O.missingWarn) ? O.missingWarn : e.missingWarn;
|
|
1542
|
+
ce(O.fallbackWarn) ? O.fallbackWarn : e.fallbackWarn;
|
|
1543
|
+
const P = !!O.part, W = Jt(e, O), k = c(
|
|
1544
1544
|
e,
|
|
1545
1545
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1546
1546
|
l,
|
|
1547
1547
|
W
|
|
1548
1548
|
);
|
|
1549
1549
|
if (!F(u) || u === "")
|
|
1550
|
-
return new Intl.DateTimeFormat(W,
|
|
1550
|
+
return new Intl.DateTimeFormat(W, C).format(p);
|
|
1551
1551
|
let w = {}, i, m = null;
|
|
1552
1552
|
const N = "datetime format";
|
|
1553
|
-
for (let
|
|
1554
|
-
|
|
1555
|
-
if (
|
|
1556
|
-
return s ?
|
|
1553
|
+
for (let D = 0; D < k.length && (i = k[D], w = n[i] || {}, m = w[u], !$(m)); D++)
|
|
1554
|
+
$t(e, u, i, E, N);
|
|
1555
|
+
if (!$(m) || !F(i))
|
|
1556
|
+
return s ? ht : u;
|
|
1557
1557
|
let _ = `${i}__${u}`;
|
|
1558
|
-
pt(
|
|
1559
|
-
let
|
|
1560
|
-
return
|
|
1558
|
+
pt(C) || (_ = `${_}__${JSON.stringify(C)}`);
|
|
1559
|
+
let M = d.get(_);
|
|
1560
|
+
return M || (M = new Intl.DateTimeFormat(i, fe({}, m, C)), d.set(_, M)), P ? M.formatToParts(p) : M.format(p);
|
|
1561
1561
|
}
|
|
1562
1562
|
const Vn = [
|
|
1563
1563
|
"localeMatcher",
|
|
@@ -1587,54 +1587,54 @@ function Pt(...e) {
|
|
|
1587
1587
|
if (F(t)) {
|
|
1588
1588
|
const u = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1589
1589
|
if (!u)
|
|
1590
|
-
throw
|
|
1590
|
+
throw Ce(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
|
d = new Date(p);
|
|
1593
1593
|
try {
|
|
1594
1594
|
d.toISOString();
|
|
1595
1595
|
} catch {
|
|
1596
|
-
throw
|
|
1596
|
+
throw Ce(Re.INVALID_ISO_DATE_ARGUMENT);
|
|
1597
1597
|
}
|
|
1598
1598
|
} else if (ps(t)) {
|
|
1599
1599
|
if (isNaN(t.getTime()))
|
|
1600
|
-
throw
|
|
1600
|
+
throw Ce(Re.INVALID_DATE_ARGUMENT);
|
|
1601
1601
|
d = t;
|
|
1602
1602
|
} else if (me(t))
|
|
1603
1603
|
d = t;
|
|
1604
1604
|
else
|
|
1605
|
-
throw
|
|
1606
|
-
return F(n) ? a.key = n :
|
|
1605
|
+
throw Ce(Re.INVALID_ARGUMENT);
|
|
1606
|
+
return F(n) ? a.key = n : $(n) && Object.keys(n).forEach((u) => {
|
|
1607
1607
|
Vn.includes(u) ? c[u] = n[u] : a[u] = n[u];
|
|
1608
|
-
}), F(s) ? a.locale = s :
|
|
1608
|
+
}), F(s) ? a.locale = s : $(s) && (c = s), $(l) && (c = l), [a.key || "", d, a, c];
|
|
1609
1609
|
}
|
|
1610
|
-
function
|
|
1610
|
+
function bn(e, t, n) {
|
|
1611
1611
|
const s = e;
|
|
1612
1612
|
for (const l in n) {
|
|
1613
1613
|
const a = `${t}__${l}`;
|
|
1614
1614
|
s.__datetimeFormatters.has(a) && s.__datetimeFormatters.delete(a);
|
|
1615
1615
|
}
|
|
1616
1616
|
}
|
|
1617
|
-
function
|
|
1618
|
-
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __numberFormatters: d } = e, [u, p,
|
|
1619
|
-
ce(
|
|
1620
|
-
const P = !!
|
|
1617
|
+
function hn(e, ...t) {
|
|
1618
|
+
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __numberFormatters: d } = e, [u, p, O, C] = Ft(...t), E = ce(O.missingWarn) ? O.missingWarn : e.missingWarn;
|
|
1619
|
+
ce(O.fallbackWarn) ? O.fallbackWarn : e.fallbackWarn;
|
|
1620
|
+
const P = !!O.part, W = Jt(e, O), k = c(
|
|
1621
1621
|
e,
|
|
1622
1622
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1623
1623
|
l,
|
|
1624
1624
|
W
|
|
1625
1625
|
);
|
|
1626
1626
|
if (!F(u) || u === "")
|
|
1627
|
-
return new Intl.NumberFormat(W,
|
|
1627
|
+
return new Intl.NumberFormat(W, C).format(p);
|
|
1628
1628
|
let w = {}, i, m = null;
|
|
1629
1629
|
const N = "number format";
|
|
1630
|
-
for (let
|
|
1631
|
-
|
|
1632
|
-
if (
|
|
1633
|
-
return s ?
|
|
1630
|
+
for (let D = 0; D < k.length && (i = k[D], w = n[i] || {}, m = w[u], !$(m)); D++)
|
|
1631
|
+
$t(e, u, i, E, N);
|
|
1632
|
+
if (!$(m) || !F(i))
|
|
1633
|
+
return s ? ht : u;
|
|
1634
1634
|
let _ = `${i}__${u}`;
|
|
1635
|
-
pt(
|
|
1636
|
-
let
|
|
1637
|
-
return
|
|
1635
|
+
pt(C) || (_ = `${_}__${JSON.stringify(C)}`);
|
|
1636
|
+
let M = d.get(_);
|
|
1637
|
+
return M || (M = new Intl.NumberFormat(i, fe({}, m, C)), d.set(_, M)), P ? M.formatToParts(p) : M.format(p);
|
|
1638
1638
|
}
|
|
1639
1639
|
const Wn = [
|
|
1640
1640
|
"localeMatcher",
|
|
@@ -1662,11 +1662,11 @@ function Ft(...e) {
|
|
|
1662
1662
|
const [t, n, s, l] = e, a = Q();
|
|
1663
1663
|
let c = Q();
|
|
1664
1664
|
if (!me(t))
|
|
1665
|
-
throw
|
|
1665
|
+
throw Ce(Re.INVALID_ARGUMENT);
|
|
1666
1666
|
const d = t;
|
|
1667
|
-
return F(n) ? a.key = n :
|
|
1667
|
+
return F(n) ? a.key = n : $(n) && Object.keys(n).forEach((u) => {
|
|
1668
1668
|
Wn.includes(u) ? c[u] = n[u] : a[u] = n[u];
|
|
1669
|
-
}), F(s) ? a.locale = s :
|
|
1669
|
+
}), F(s) ? a.locale = s : $(s) && (c = s), $(l) && (c = l), [a.key || "", d, a, c];
|
|
1670
1670
|
}
|
|
1671
1671
|
function gn(e, t, n) {
|
|
1672
1672
|
const s = e;
|
|
@@ -1679,72 +1679,72 @@ const Ua = (e) => e, Va = (e) => "", Wa = "text", Ga = (e) => e.length === 0 ? "
|
|
|
1679
1679
|
function vn(e, t) {
|
|
1680
1680
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1681
1681
|
}
|
|
1682
|
-
function
|
|
1682
|
+
function Ya(e) {
|
|
1683
1683
|
const t = me(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1684
1684
|
return e.named && (me(e.named.count) || me(e.named.n)) ? me(e.named.count) ? e.named.count : me(e.named.n) ? e.named.n : t : t;
|
|
1685
1685
|
}
|
|
1686
|
-
function
|
|
1686
|
+
function Za(e, t) {
|
|
1687
1687
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1688
1688
|
}
|
|
1689
1689
|
function Xa(e = {}) {
|
|
1690
|
-
const t = e.locale, n =
|
|
1691
|
-
me(e.pluralIndex) &&
|
|
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 || [], d = (i) => c[i], u = e.named || Q();
|
|
1691
|
+
me(e.pluralIndex) && Za(n, u);
|
|
1692
1692
|
const p = (i) => u[i];
|
|
1693
|
-
function
|
|
1693
|
+
function O(i, m) {
|
|
1694
1694
|
const N = re(e.messages) ? e.messages(i, !!m) : K(e.messages) ? e.messages[i] : !1;
|
|
1695
1695
|
return N || (e.parent ? e.parent.message(i) : Va);
|
|
1696
1696
|
}
|
|
1697
|
-
const
|
|
1697
|
+
const C = (i) => e.modifiers ? e.modifiers[i] : Ua, E = $(e.processor) && re(e.processor.normalize) ? e.processor.normalize : Ga, P = $(e.processor) && re(e.processor.interpolate) ? e.processor.interpolate : xa, W = $(e.processor) && F(e.processor.type) ? e.processor.type : Wa, w = {
|
|
1698
1698
|
list: d,
|
|
1699
1699
|
named: p,
|
|
1700
1700
|
plural: a,
|
|
1701
1701
|
linked: (i, ...m) => {
|
|
1702
1702
|
const [N, _] = m;
|
|
1703
|
-
let
|
|
1704
|
-
m.length === 1 ? K(N) ? (
|
|
1705
|
-
const g =
|
|
1703
|
+
let M = "text", D = "";
|
|
1704
|
+
m.length === 1 ? K(N) ? (D = N.modifier || D, M = N.type || M) : F(N) && (D = N || D) : m.length === 2 && (F(N) && (D = N || D), F(_) && (M = _ || M));
|
|
1705
|
+
const g = O(i, !0)(w), I = (
|
|
1706
1706
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1707
|
-
|
|
1707
|
+
M === "vnode" && ue(g) && D ? g[0] : g
|
|
1708
1708
|
);
|
|
1709
|
-
return
|
|
1709
|
+
return D ? C(D)(I, M) : I;
|
|
1710
1710
|
},
|
|
1711
|
-
message:
|
|
1711
|
+
message: O,
|
|
1712
1712
|
type: W,
|
|
1713
1713
|
interpolate: P,
|
|
1714
|
-
normalize:
|
|
1714
|
+
normalize: E,
|
|
1715
1715
|
values: fe(Q(), c, u)
|
|
1716
1716
|
};
|
|
1717
1717
|
return w;
|
|
1718
1718
|
}
|
|
1719
|
-
const
|
|
1720
|
-
function
|
|
1721
|
-
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: c, messages: d } = e, [u, p] = jt(...t),
|
|
1722
|
-
|
|
1719
|
+
const In = () => "", Ie = (e) => re(e);
|
|
1720
|
+
function En(e, ...t) {
|
|
1721
|
+
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: c, messages: d } = e, [u, p] = jt(...t), O = ce(p.missingWarn) ? p.missingWarn : e.missingWarn, C = ce(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, E = 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, k = n || W != null && (F(W) || re(W)), w = Jt(e, p);
|
|
1722
|
+
E && Ha(p);
|
|
1723
1723
|
let [i, m, N] = P ? [
|
|
1724
1724
|
u,
|
|
1725
1725
|
w,
|
|
1726
1726
|
d[w] || Q()
|
|
1727
|
-
] : Gn(e, u, w, c,
|
|
1728
|
-
if (!P && !(F(_) || He(_) ||
|
|
1729
|
-
return l ?
|
|
1730
|
-
let
|
|
1727
|
+
] : Gn(e, u, w, c, C, O), _ = i, M = u;
|
|
1728
|
+
if (!P && !(F(_) || He(_) || Ie(_)) && k && (_ = W, M = _), !P && (!(F(_) || He(_) || Ie(_)) || !F(m)))
|
|
1729
|
+
return l ? ht : u;
|
|
1730
|
+
let D = !1;
|
|
1731
1731
|
const g = () => {
|
|
1732
|
-
|
|
1733
|
-
},
|
|
1734
|
-
if (
|
|
1732
|
+
D = !0;
|
|
1733
|
+
}, I = Ie(_) ? _ : xn(e, u, m, _, M, g);
|
|
1734
|
+
if (D)
|
|
1735
1735
|
return _;
|
|
1736
|
-
const R =
|
|
1736
|
+
const R = $a(e, m, N, p), y = Xa(R), b = Ba(e, I, y), A = s ? s(b, u) : b;
|
|
1737
1737
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1738
1738
|
const U = {
|
|
1739
1739
|
timestamp: Date.now(),
|
|
1740
|
-
key: F(u) ? u :
|
|
1741
|
-
locale: m || (
|
|
1742
|
-
format: F(_) ? _ :
|
|
1743
|
-
message:
|
|
1740
|
+
key: F(u) ? u : Ie(_) ? _.key : "",
|
|
1741
|
+
locale: m || (Ie(_) ? _.locale : ""),
|
|
1742
|
+
format: F(_) ? _ : Ie(_) ? _.source : "",
|
|
1743
|
+
message: A
|
|
1744
1744
|
};
|
|
1745
|
-
U.meta = fe({}, e.__meta, /* @__PURE__ */
|
|
1745
|
+
U.meta = fe({}, e.__meta, /* @__PURE__ */ Ma() || {}), fa(U);
|
|
1746
1746
|
}
|
|
1747
|
-
return
|
|
1747
|
+
return A;
|
|
1748
1748
|
}
|
|
1749
1749
|
function Ha(e) {
|
|
1750
1750
|
ue(e.list) ? e.list = e.list.map((t) => F(t) ? nn(t) : t) : K(e.named) && Object.keys(e.named).forEach((t) => {
|
|
@@ -1752,26 +1752,26 @@ function Ha(e) {
|
|
|
1752
1752
|
});
|
|
1753
1753
|
}
|
|
1754
1754
|
function Gn(e, t, n, s, l, a) {
|
|
1755
|
-
const { messages: c, onWarn: d, messageResolver: u, localeFallbacker: p } = e,
|
|
1756
|
-
let
|
|
1755
|
+
const { messages: c, onWarn: d, messageResolver: u, localeFallbacker: p } = e, O = p(e, s, n);
|
|
1756
|
+
let C = Q(), E, P = null;
|
|
1757
1757
|
const W = "translate";
|
|
1758
|
-
for (let
|
|
1759
|
-
if (!ja(
|
|
1760
|
-
const w =
|
|
1758
|
+
for (let k = 0; k < O.length && (E = O[k], C = c[E] || Q(), (P = u(C, t)) === null && (P = C[t]), !(F(P) || He(P) || Ie(P))); k++)
|
|
1759
|
+
if (!ja(E, O)) {
|
|
1760
|
+
const w = $t(
|
|
1761
1761
|
e,
|
|
1762
1762
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1763
1763
|
t,
|
|
1764
|
-
|
|
1764
|
+
E,
|
|
1765
1765
|
a,
|
|
1766
1766
|
W
|
|
1767
1767
|
);
|
|
1768
1768
|
w !== t && (P = w);
|
|
1769
1769
|
}
|
|
1770
|
-
return [P,
|
|
1770
|
+
return [P, E, C];
|
|
1771
1771
|
}
|
|
1772
1772
|
function xn(e, t, n, s, l, a) {
|
|
1773
1773
|
const { messageCompiler: c, warnHtmlMessage: d } = e;
|
|
1774
|
-
if (
|
|
1774
|
+
if (Ie(s)) {
|
|
1775
1775
|
const p = s;
|
|
1776
1776
|
return p.locale = p.locale || n, p.key = p.key || t, p;
|
|
1777
1777
|
}
|
|
@@ -1779,7 +1779,7 @@ function xn(e, t, n, s, l, a) {
|
|
|
1779
1779
|
const p = () => s;
|
|
1780
1780
|
return p.locale = n, p.key = t, p;
|
|
1781
1781
|
}
|
|
1782
|
-
const u = c(s,
|
|
1782
|
+
const u = c(s, Ja(e, n, l, s, d, a));
|
|
1783
1783
|
return u.locale = n, u.key = t, u.source = s, u;
|
|
1784
1784
|
}
|
|
1785
1785
|
function Ba(e, t, n) {
|
|
@@ -1787,12 +1787,12 @@ function Ba(e, t, n) {
|
|
|
1787
1787
|
}
|
|
1788
1788
|
function jt(...e) {
|
|
1789
1789
|
const [t, n, s] = e, l = Q();
|
|
1790
|
-
if (!F(t) && !me(t) && !
|
|
1791
|
-
throw
|
|
1792
|
-
const a = me(t) ? String(t) : (
|
|
1793
|
-
return me(n) ? l.plural = n : F(n) ? l.default = n :
|
|
1790
|
+
if (!F(t) && !me(t) && !Ie(t) && !He(t))
|
|
1791
|
+
throw Ce(Re.INVALID_ARGUMENT);
|
|
1792
|
+
const a = me(t) ? String(t) : (Ie(t), t);
|
|
1793
|
+
return me(n) ? l.plural = n : F(n) ? l.default = n : $(n) && !pt(n) ? l.named = n : ue(n) && (l.list = n), me(s) ? l.plural = s : F(s) ? l.default = s : $(s) && fe(l, s), [a, l];
|
|
1794
1794
|
}
|
|
1795
|
-
function
|
|
1795
|
+
function Ja(e, t, n, s, l, a) {
|
|
1796
1796
|
return {
|
|
1797
1797
|
locale: t,
|
|
1798
1798
|
key: n,
|
|
@@ -1803,16 +1803,16 @@ function $a(e, t, n, s, l, a) {
|
|
|
1803
1803
|
onCacheKey: (c) => fs(t, n, c)
|
|
1804
1804
|
};
|
|
1805
1805
|
}
|
|
1806
|
-
function
|
|
1807
|
-
const { modifiers: l, pluralRules: a, messageResolver: c, fallbackLocale: d, fallbackWarn: u, missingWarn: p, fallbackContext:
|
|
1806
|
+
function $a(e, t, n, s) {
|
|
1807
|
+
const { modifiers: l, pluralRules: a, messageResolver: c, fallbackLocale: d, fallbackWarn: u, missingWarn: p, fallbackContext: O } = e, E = {
|
|
1808
1808
|
locale: t,
|
|
1809
1809
|
modifiers: l,
|
|
1810
1810
|
pluralRules: a,
|
|
1811
1811
|
messages: (P, W) => {
|
|
1812
|
-
let
|
|
1813
|
-
if (
|
|
1812
|
+
let k = c(n, P);
|
|
1813
|
+
if (k == null && (O || W)) {
|
|
1814
1814
|
const [, , w] = 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,
|
|
@@ -1820,21 +1820,21 @@ function Ja(e, t, n, s) {
|
|
|
1820
1820
|
u,
|
|
1821
1821
|
p
|
|
1822
1822
|
);
|
|
1823
|
-
|
|
1823
|
+
k = c(w, P);
|
|
1824
1824
|
}
|
|
1825
|
-
if (F(
|
|
1825
|
+
if (F(k) || He(k)) {
|
|
1826
1826
|
let w = !1;
|
|
1827
|
-
const m = xn(e, P, t,
|
|
1827
|
+
const m = xn(e, P, t, k, P, () => {
|
|
1828
1828
|
w = !0;
|
|
1829
1829
|
});
|
|
1830
|
-
return w ?
|
|
1831
|
-
} else return
|
|
1830
|
+
return w ? In : m;
|
|
1831
|
+
} else return Ie(k) ? k : In;
|
|
1832
1832
|
}
|
|
1833
1833
|
};
|
|
1834
|
-
return e.processor && (
|
|
1834
|
+
return e.processor && (E.processor = e.processor), s.list && (E.list = s.list), s.named && (E.named = s.named), me(s.plural) && (E.pluralIndex = s.plural), E;
|
|
1835
1835
|
}
|
|
1836
1836
|
Hs();
|
|
1837
|
-
var Ka = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_d43261e6-a735-47a1-954f-166e063ab534", 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_d43261e6-a735-47a1-954f-166e063ab534", 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: "1876", ACTIONS_ORCHESTRATION_ID: "8a4a2187-6d5c-4ad5-924f-7814eed8d076.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:15208", 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: "27253596311", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "03bdf66b53ef497dd7c7b71a8dcb041331930375", 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.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6M31dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3ODEwODg1NzUsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc4MTA2NjM3NSwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImNjNmQzY2YwLWNkOWYtNWMwZS05ZmEwLWVlYmM5MzQ4ZTJmYSIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc4MTA2NjA3NSwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI4MDQ4MzA5MjY1MlwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiNTg1MGMwNzlhYmVhY2JmZmFiNDU5NGJhMWE3Y2YzMTM0NjZkNzQzM1wiLFwicmVmXCI6XCJyZWZzL2hlYWRzL21haW5cIixcInJlZl9wcm90ZWN0ZWRcIjpcInRydWVcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIyNzI1MzU5NjMxMVwiLFwicnVuX251bWJlclwiOlwiMTA5XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiMDNiZGY2NmI1M2VmNDk3ZGQ3YzdiNzFhOGRjYjA0MTMzMTkzMDM3NVwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvbWFpblwiLFwid29ya2Zsb3dfc2hhXCI6XCIwM2JkZjY2YjUzZWY0OTdkZDdjN2I3MWE4ZGNiMDQxMzMxOTMwMzc1XCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9tYWluIiwib3JjaF9pZCI6IjhhNGEyMTg3LTZkNWMtNGFkNS05MjRmLTc4MTRlZWQ4ZDA3Ni5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiOGE0YTIxODctNmQ1Yy00YWQ1LTkyNGYtNzgxNGVlZDhkMDc2IiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMjcyNTM1OTYzMTEiLCJydW5fbnVtYmVyIjoiMTA5IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDA3NTkzNSIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjhhNGEyMTg3LTZkNWMtNGFkNS05MjRmLTc4MTRlZWQ4ZDA3NjpjYzZkM2NmMC1jZDlmLTVjMGUtOWZhMC1lZWJjOTM0OGUyZmEgQWN0aW9ucy5SdW5uZXI6OGE0YTIxODctNmQ1Yy00YWQ1LTkyNGYtNzgxNGVlZDhkMDc2OmNjNmQzY2YwLWNkOWYtNWMwZS05ZmEwLWVlYmM5MzQ4ZTJmYSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czo4YTRhMjE4Ny02ZDVjLTRhZDUtOTI0Zi03ODE0ZWVkOGQwNzY6Y2M2ZDNjZjAtY2Q5Zi01YzBlLTlmYTAtZWViYzkzNDhlMmZhIGdlbmVyYXRlX2lkX3Rva2VuOjhhNGEyMTg3LTZkNWMtNGFkNS05MjRmLTc4MTRlZWQ4ZDA3NjpjYzZkM2NmMC1jZDlmLTVjMGUtOWZhMC1lZWJjOTM0OGUyZmEgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiIwM2JkZjY2YjUzZWY0OTdkZDdjN2I3MWE4ZGNiMDQxMzMxOTMwMzc1IiwidHJ1c3RfdGllciI6IjEifQ.SiXe9AA3zskZJQx2Pr50epn4fOLuvRF9piUtXRXo4DO8dY-8mAPA8QrV7o2gHkf7LMqME_HIquksS2ZtDUmVw3lABSmbi5batr36qZt_zWB_KHrSviqoRYJjIQWAzx3n0HU_v_X1Fp84R4nR1Ru3aot8QUvVdfRTGS38xAZZcJo29lXysayu83Z41lJCmlrDbndBbcD5l0u-ioJIzPaIFld3ANIH8EBe7XLPxCfUG9yz-98pgfVEFqmwdwJ-4zKMwrq7gdwyYt2dfW3vvOstoZJC3CU37vgSgWvP4eYw2ojD35d7InBeNSJLLVroS0nVQWbjPK5KVqKlbNlfjqBrug", 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_fc70e6d3-a4da-4386-a850-96df3167021a", INVOCATION_ID: "93ac86b96fa4445abc66d74aa8136e2b", 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: "109", 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 1000075935", 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.18", 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: "03bdf66b53ef497dd7c7b71a8dcb041331930375", 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_d43261e6-a735-47a1-954f-166e063ab534", 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/91//idtoken/8a4a2187-6d5c-4ad5-924f-7814eed8d076/cc6d3cf0-cd9f-5c0e-9fa0-eebc9348e2fa?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_d43261e6-a735-47a1-954f-166e063ab534", 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_d43261e6-a735-47a1-954f-166e063ab534", 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_6388f891-5d51-4e19-a6df-feb654284d14", 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_6388f891-5d51-4e19-a6df-feb654284d14", 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: "1870", ACTIONS_ORCHESTRATION_ID: "0dbccfa5-1bd8-479d-aec3-8007a65e399d.publish.publish.__default", npm_package_dependencies__feedmepos_ui_library: "^1.10.6", npm_package_dependencies_dayjs: "^1.11.10", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "VITE_TARGET_ENV=dev pnpm build:mf && pnpm build:dts", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.9.3", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^2.0.6", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260607.184.1", npm_package_scripts_dev: "vite", npm_package_devDependencies_prettier: "^3.7.4", npm_package_devDependencies_sass_embedded: "^1.93.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_devDependencies__vue_tsconfig: "^0.4.0", npm_package_devDependencies_eslint_plugin_import: "^2.32.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:14871", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.16", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^8.52.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.11/x64", GITHUB_RUN_ID: "27332184549", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "78e4713bb8f097d2a58c385b47959abd957ed9fb", 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.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6M31dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3ODExODY0NzAsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc4MTE2NDI3MCwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjJiNmI2ZDc5LWE4YzAtNWUzNy1hM2M5LWQ1Yjg0OTU2OGFmMyIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc4MTE2Mzk3MCwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJDYXN0YS1tZXJlXCIsXCJhY3Rvcl9pZFwiOlwiODIyOTgwMTdcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiODA3NDcxMTMyNTBcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjU4NTBjMDc5YWJlYWNiZmZhYjQ1OTRiYTFhN2NmMzEzNDY2ZDc0MzNcIixcInJlZlwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJ0cnVlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJyZXBvc2l0b3J5XCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2VcIixcInJlcG9zaXRvcnlfaWRcIjpcIjExMjQ2NzIyMzVcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJ1bl9pZFwiOlwiMjczMzIxODQ1NDlcIixcInJ1bl9udW1iZXJcIjpcIjExMVwiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcIjc4ZTQ3MTNiYjhmMDk3ZDJhNThjMzg1YjQ3OTU5YWJkOTU3ZWQ5ZmJcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIGhybS1wb3J0YWxcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtaHJtLXBvcnRhbC10cnVzdGVkLnltbEByZWZzL2hlYWRzL21haW5cIixcIndvcmtmbG93X3NoYVwiOlwiNzhlNDcxM2JiOGYwOTdkMmE1OGMzODViNDc5NTlhYmQ5NTdlZDlmYlwifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvaHJtLXNlcnZpY2U6cmVmOnJlZnMvaGVhZHMvbWFpbiIsIm9yY2hfaWQiOiIwZGJjY2ZhNS0xYmQ4LTQ3OWQtYWVjMy04MDA3YTY1ZTM5OWQucHVibGlzaC5wdWJsaXNoLl9fZGVmYXVsdCIsIm93bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwicGxhbl9pZCI6IjBkYmNjZmE1LTFiZDgtNDc5ZC1hZWMzLTgwMDdhNjVlMzk5ZCIsInJlcG9zaXRvcnlfaWQiOiIxMTI0NjcyMjM1IiwicmVwb3NpdG9yeV9vd25lcl9pZCI6IjU0ODMxNTE1IiwicmVwb3NpdG9yeV92aXNpYmlsaXR5IjoicHJpdmF0ZSIsInJ1bl9pZCI6IjI3MzMyMTg0NTQ5IiwicnVuX251bWJlciI6IjExMSIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDAwNzYzNDQiLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czowZGJjY2ZhNS0xYmQ4LTQ3OWQtYWVjMy04MDA3YTY1ZTM5OWQ6MmI2YjZkNzktYThjMC01ZTM3LWEzYzktZDViODQ5NTY4YWYzIEFjdGlvbnMuUnVubmVyOjBkYmNjZmE1LTFiZDgtNDc5ZC1hZWMzLTgwMDdhNjVlMzk5ZDoyYjZiNmQ3OS1hOGMwLTVlMzctYTNjOS1kNWI4NDk1NjhhZjMgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6MGRiY2NmYTUtMWJkOC00NzlkLWFlYzMtODAwN2E2NWUzOTlkOjJiNmI2ZDc5LWE4YzAtNWUzNy1hM2M5LWQ1Yjg0OTU2OGFmMyBnZW5lcmF0ZV9pZF90b2tlbjowZGJjY2ZhNS0xYmQ4LTQ3OWQtYWVjMy04MDA3YTY1ZTM5OWQ6MmI2YjZkNzktYThjMC01ZTM3LWEzYzktZDViODQ5NTY4YWYzIEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiNzhlNDcxM2JiOGYwOTdkMmE1OGMzODViNDc5NTlhYmQ5NTdlZDlmYiIsInRydXN0X3RpZXIiOiIxIn0.jp3ApgMHZ-CzgebBfbr8V8Jzs_uOSg-YlJQgyyGjGRZRaACEYSr38ZUpGuqaG8U4pLlA05cks18bspMfmnuIufmcb7KUVEzTmI52TCJPwMy6m5nsF5uf1A9aHql7bTAE34DNPH-LFXGyRJ0eVcPHe529gujKnvMpopvn_zBPArvpiBsMH5QFdhuLgUjXNDh3dfA2oOALZifpBVvQuesBlfqAEPQY1QILoPJ9HBT_u0gffzgblFWP56hObO2RzRk0QtW7QZf9SjPwpox24Ov4zP-Locse0NPV_Hbggt8G4zdp5m7EIcIsarllijb2aGAPRMCD1OKKj-pEAjBoiJ7qTw", 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_917d9cf0-ad43-4fdf-aad1-b95f701f1baf", INVOCATION_ID: "5513ccea94524765b81151e020648ab3", 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: "111", GITHUB_TRIGGERING_ACTOR: "Casta-mere", 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 1000076344", 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.19", 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: "78e4713bb8f097d2a58c385b47959abd957ed9fb", 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: "Casta-mere", 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_6388f891-5d51-4e19-a6df-feb654284d14", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "82298017", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_package_devDependencies_vue_eslint_parser: "^10.2.0", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/113//idtoken/0dbccfa5-1bd8-479d-aec3-8007a65e399d/2b6b6d79-a8c0-5e37-a3c9-d5b849568af3?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_6388f891-5d51-4e19-a6df-feb654284d14", npm_package_exports___types: "./dist/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_feature_flag: "^0.0.15", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_devDependencies_eslint_plugin_vue: "^9.33.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.1", CHROME_BIN: "/usr/bin/google-chrome", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_6388f891-5d51-4e19-a6df-feb654284d14", 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
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);
|
|
@@ -1853,9 +1853,9 @@ const Be = {
|
|
|
1853
1853
|
UNEXPECTED_ERROR: 32
|
|
1854
1854
|
};
|
|
1855
1855
|
function st(e, ...t) {
|
|
1856
|
-
return
|
|
1856
|
+
return bt(e, null, void 0);
|
|
1857
1857
|
}
|
|
1858
|
-
const Ut = /* @__PURE__ */ Ve("__translateVNode"), Vt = /* @__PURE__ */ Ve("__datetimeParts"), Wt = /* @__PURE__ */ Ve("__numberParts"), qa = Ve("__setPluralRules"),
|
|
1858
|
+
const Ut = /* @__PURE__ */ Ve("__translateVNode"), Vt = /* @__PURE__ */ Ve("__datetimeParts"), Wt = /* @__PURE__ */ Ve("__numberParts"), qa = Ve("__setPluralRules"), Yn = /* @__PURE__ */ Ve("__injectWithOption"), Gt = /* @__PURE__ */ Ve("__dispose");
|
|
1859
1859
|
function at(e) {
|
|
1860
1860
|
if (!K(e))
|
|
1861
1861
|
return e;
|
|
@@ -1877,8 +1877,8 @@ function at(e) {
|
|
|
1877
1877
|
}
|
|
1878
1878
|
return e;
|
|
1879
1879
|
}
|
|
1880
|
-
function
|
|
1881
|
-
const { messages: n, __i18n: s, messageResolver: l, flatJson: a } = t, c =
|
|
1880
|
+
function Zn(e, t) {
|
|
1881
|
+
const { messages: n, __i18n: s, messageResolver: l, flatJson: a } = t, c = $(n) ? n : ue(s) ? Q() : { [e]: Q() };
|
|
1882
1882
|
if (ue(s) && s.forEach((d) => {
|
|
1883
1883
|
if ("locale" in d && "resource" in d) {
|
|
1884
1884
|
const { locale: u, resource: p } = d;
|
|
@@ -1895,7 +1895,7 @@ function Xn(e) {
|
|
|
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,9 +1921,9 @@ function er(e, t, n) {
|
|
|
1921
1921
|
function Nn(e) {
|
|
1922
1922
|
return _e(zn, null, e, 0);
|
|
1923
1923
|
}
|
|
1924
|
-
const yn = "__INTLIFY_META__",
|
|
1925
|
-
let
|
|
1926
|
-
function
|
|
1924
|
+
const yn = "__INTLIFY_META__", Tn = () => [], tr = () => !1;
|
|
1925
|
+
let kn = 0;
|
|
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__ */ () => {
|
|
@@ -1939,11 +1939,11 @@ function sr(e = {}) {
|
|
|
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) ||
|
|
1943
|
-
), p = a(
|
|
1944
|
-
let
|
|
1945
|
-
const
|
|
1946
|
-
let
|
|
1942
|
+
t && c ? t.fallbackLocale.value : F(e.fallbackLocale) || ue(e.fallbackLocale) || $(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : d.value
|
|
1943
|
+
), p = a(Zn(d.value, e)), O = a($(e.datetimeFormats) ? e.datetimeFormats : { [d.value]: {} }), C = a($(e.numberFormats) ? e.numberFormats : { [d.value]: {} });
|
|
1944
|
+
let E = 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, k = !!e.fallbackFormat, w = re(e.missing) ? e.missing : null, i = re(e.missing) ? On(e.missing) : null, m = re(e.postTranslation) ? e.postTranslation : null, N = t ? t.warnHtmlMessage : ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, _ = !!e.escapeParameter;
|
|
1945
|
+
const M = t ? t.modifiers : $(e.modifiers) ? e.modifiers : {};
|
|
1946
|
+
let D = e.pluralRules || t && t.pluralRules, g;
|
|
1947
1947
|
g = (() => {
|
|
1948
1948
|
s && fn(null);
|
|
1949
1949
|
const f = {
|
|
@@ -1951,12 +1951,12 @@ function sr(e = {}) {
|
|
|
1951
1951
|
locale: d.value,
|
|
1952
1952
|
fallbackLocale: u.value,
|
|
1953
1953
|
messages: p.value,
|
|
1954
|
-
modifiers:
|
|
1955
|
-
pluralRules:
|
|
1954
|
+
modifiers: M,
|
|
1955
|
+
pluralRules: D,
|
|
1956
1956
|
missing: i === null ? void 0 : i,
|
|
1957
|
-
missingWarn:
|
|
1957
|
+
missingWarn: E,
|
|
1958
1958
|
fallbackWarn: P,
|
|
1959
|
-
fallbackFormat:
|
|
1959
|
+
fallbackFormat: k,
|
|
1960
1960
|
unresolving: !0,
|
|
1961
1961
|
postTranslation: m === null ? void 0 : m,
|
|
1962
1962
|
warnHtmlMessage: N,
|
|
@@ -1965,7 +1965,7 @@ function sr(e = {}) {
|
|
|
1965
1965
|
messageCompiler: e.messageCompiler,
|
|
1966
1966
|
__meta: { framework: "vue" }
|
|
1967
1967
|
};
|
|
1968
|
-
f.datetimeFormats =
|
|
1968
|
+
f.datetimeFormats = O.value, f.numberFormats = C.value, f.__datetimeFormatters = $(g) ? g.__datetimeFormatters : void 0, f.__numberFormatters = $(g) ? g.__numberFormatters : void 0;
|
|
1969
1969
|
const v = Pa(f);
|
|
1970
1970
|
return s && fn(v), v;
|
|
1971
1971
|
})(), qe(g, d.value, u.value);
|
|
@@ -1974,8 +1974,8 @@ function sr(e = {}) {
|
|
|
1974
1974
|
d.value,
|
|
1975
1975
|
u.value,
|
|
1976
1976
|
p.value,
|
|
1977
|
-
|
|
1978
|
-
|
|
1977
|
+
O.value,
|
|
1978
|
+
C.value
|
|
1979
1979
|
];
|
|
1980
1980
|
}
|
|
1981
1981
|
const y = te({
|
|
@@ -1983,23 +1983,23 @@ function sr(e = {}) {
|
|
|
1983
1983
|
set: (f) => {
|
|
1984
1984
|
d.value = f, g.locale = d.value;
|
|
1985
1985
|
}
|
|
1986
|
-
}),
|
|
1986
|
+
}), b = te({
|
|
1987
1987
|
get: () => u.value,
|
|
1988
1988
|
set: (f) => {
|
|
1989
1989
|
u.value = f, g.fallbackLocale = u.value, qe(g, d.value, f);
|
|
1990
1990
|
}
|
|
1991
|
-
}),
|
|
1991
|
+
}), A = te(() => p.value), U = /* @__PURE__ */ te(() => O.value), G = /* @__PURE__ */ te(() => C.value);
|
|
1992
1992
|
function S() {
|
|
1993
1993
|
return re(m) ? m : null;
|
|
1994
1994
|
}
|
|
1995
|
-
function
|
|
1995
|
+
function T(f) {
|
|
1996
1996
|
m = f, g.postTranslation = f;
|
|
1997
1997
|
}
|
|
1998
|
-
function
|
|
1998
|
+
function L() {
|
|
1999
1999
|
return w;
|
|
2000
2000
|
}
|
|
2001
|
-
function
|
|
2002
|
-
f !== null && (i =
|
|
2001
|
+
function Z(f) {
|
|
2002
|
+
f !== null && (i = On(f)), w = f, g.missing = i;
|
|
2003
2003
|
}
|
|
2004
2004
|
const x = (f, v, ee, ie, Pe, rt) => {
|
|
2005
2005
|
R();
|
|
@@ -2010,9 +2010,9 @@ 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
|
-
me(xe) && xe ===
|
|
2014
|
-
const [
|
|
2015
|
-
return t && W ? ie(t) : Pe(
|
|
2013
|
+
me(xe) && xe === ht || ee === "translate exists" && !xe) {
|
|
2014
|
+
const [Jn, Br] = v();
|
|
2015
|
+
return t && W ? ie(t) : Pe(Jn);
|
|
2016
2016
|
} else {
|
|
2017
2017
|
if (rt(xe))
|
|
2018
2018
|
return xe;
|
|
@@ -2020,7 +2020,7 @@ function sr(e = {}) {
|
|
|
2020
2020
|
}
|
|
2021
2021
|
};
|
|
2022
2022
|
function j(...f) {
|
|
2023
|
-
return x((v) => Reflect.apply(
|
|
2023
|
+
return x((v) => Reflect.apply(En, 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;
|
|
@@ -2028,52 +2028,52 @@ function sr(e = {}) {
|
|
|
2028
2028
|
throw st(Be.INVALID_ARGUMENT);
|
|
2029
2029
|
return j(v, ee, fe({ resolvedMessage: !0 }, ie || {}));
|
|
2030
2030
|
}
|
|
2031
|
-
function
|
|
2031
|
+
function J(...f) {
|
|
2032
2032
|
return x((v) => Reflect.apply(pn, null, [v, ...f]), () => Pt(...f), "datetime format", (v) => Reflect.apply(v.d, v, [...f]), () => dn, (v) => F(v));
|
|
2033
2033
|
}
|
|
2034
|
-
function
|
|
2035
|
-
return x((v) => Reflect.apply(
|
|
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]), () => dn, (v) => F(v));
|
|
2036
2036
|
}
|
|
2037
|
-
function
|
|
2037
|
+
function Y(f) {
|
|
2038
2038
|
return f.map((v) => F(v) || me(v) || ce(v) ? Nn(String(v)) : v);
|
|
2039
2039
|
}
|
|
2040
2040
|
const ae = {
|
|
2041
|
-
normalize:
|
|
2041
|
+
normalize: Y,
|
|
2042
2042
|
interpolate: (f) => f,
|
|
2043
2043
|
type: "vnode"
|
|
2044
2044
|
};
|
|
2045
|
-
function
|
|
2045
|
+
function Ee(...f) {
|
|
2046
2046
|
return x((v) => {
|
|
2047
2047
|
let ee;
|
|
2048
2048
|
const ie = v;
|
|
2049
2049
|
try {
|
|
2050
|
-
ie.processor = ae, ee = Reflect.apply(
|
|
2050
|
+
ie.processor = ae, ee = Reflect.apply(En, null, [ie, ...f]);
|
|
2051
2051
|
} finally {
|
|
2052
2052
|
ie.processor = null;
|
|
2053
2053
|
}
|
|
2054
2054
|
return ee;
|
|
2055
2055
|
}, () => jt(...f), "translate", (v) => v[Ut](...f), (v) => [Nn(v)], (v) => ue(v));
|
|
2056
2056
|
}
|
|
2057
|
-
function
|
|
2058
|
-
return x((v) => Reflect.apply(
|
|
2057
|
+
function $e(...f) {
|
|
2058
|
+
return x((v) => Reflect.apply(hn, null, [v, ...f]), () => Ft(...f), "number format", (v) => v[Wt](...f), Tn, (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), Tn, (v) => F(v) || ue(v));
|
|
2062
2062
|
}
|
|
2063
2063
|
function vt(f) {
|
|
2064
|
-
|
|
2064
|
+
D = f, g.pluralRules = D;
|
|
2065
2065
|
}
|
|
2066
|
-
function
|
|
2066
|
+
function It(f, v) {
|
|
2067
2067
|
return x(() => {
|
|
2068
2068
|
if (!f)
|
|
2069
2069
|
return !1;
|
|
2070
2070
|
const ee = F(v) ? v : d.value, ie = We(ee), Pe = g.messageResolver(ie, f);
|
|
2071
|
-
return He(Pe) ||
|
|
2071
|
+
return He(Pe) || Ie(Pe) || F(Pe);
|
|
2072
2072
|
}, () => [f], "translate exists", (ee) => Reflect.apply(ee.te, ee, [f, v]), tr, (ee) => ce(ee));
|
|
2073
2073
|
}
|
|
2074
|
-
function
|
|
2074
|
+
function Et(f) {
|
|
2075
2075
|
let v = null;
|
|
2076
|
-
const ee =
|
|
2076
|
+
const ee = Mn(g, u.value, d.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) {
|
|
@@ -2084,7 +2084,7 @@ function sr(e = {}) {
|
|
|
2084
2084
|
return v;
|
|
2085
2085
|
}
|
|
2086
2086
|
function ze(f) {
|
|
2087
|
-
const v =
|
|
2087
|
+
const v = Et(f);
|
|
2088
2088
|
return v ?? (t ? t.tm(f) || {} : {});
|
|
2089
2089
|
}
|
|
2090
2090
|
function We(f) {
|
|
@@ -2108,32 +2108,32 @@ function sr(e = {}) {
|
|
|
2108
2108
|
v = ee[f], mt(v, p.value[f]), g.messages = p.value;
|
|
2109
2109
|
}
|
|
2110
2110
|
function Nt(f) {
|
|
2111
|
-
return
|
|
2111
|
+
return O.value[f] || {};
|
|
2112
2112
|
}
|
|
2113
2113
|
function r(f, v) {
|
|
2114
|
-
|
|
2114
|
+
O.value[f] = v, g.datetimeFormats = O.value, bn(g, f, v);
|
|
2115
2115
|
}
|
|
2116
2116
|
function o(f, v) {
|
|
2117
|
-
|
|
2117
|
+
O.value[f] = fe(O.value[f] || {}, v), g.datetimeFormats = O.value, bn(g, f, v);
|
|
2118
2118
|
}
|
|
2119
|
-
function
|
|
2120
|
-
return
|
|
2119
|
+
function h(f) {
|
|
2120
|
+
return C.value[f] || {};
|
|
2121
2121
|
}
|
|
2122
2122
|
function V(f, v) {
|
|
2123
|
-
|
|
2123
|
+
C.value[f] = v, g.numberFormats = C.value, gn(g, f, v);
|
|
2124
2124
|
}
|
|
2125
2125
|
function oe(f, v) {
|
|
2126
|
-
|
|
2126
|
+
C.value[f] = fe(C.value[f] || {}, v), g.numberFormats = C.value, gn(g, f, v);
|
|
2127
2127
|
}
|
|
2128
|
-
|
|
2128
|
+
kn++, t && en && (St(t.locale, (f) => {
|
|
2129
2129
|
c && (d.value = f, g.locale = f, qe(g, d.value, u.value));
|
|
2130
2130
|
}), St(t.fallbackLocale, (f) => {
|
|
2131
2131
|
c && (u.value = f, g.fallbackLocale = f, qe(g, d.value, u.value));
|
|
2132
2132
|
}));
|
|
2133
2133
|
const X = {
|
|
2134
|
-
id:
|
|
2134
|
+
id: kn,
|
|
2135
2135
|
locale: y,
|
|
2136
|
-
fallbackLocale:
|
|
2136
|
+
fallbackLocale: b,
|
|
2137
2137
|
get inheritLocale() {
|
|
2138
2138
|
return c;
|
|
2139
2139
|
},
|
|
@@ -2143,21 +2143,21 @@ function sr(e = {}) {
|
|
|
2143
2143
|
get availableLocales() {
|
|
2144
2144
|
return Object.keys(p.value).sort();
|
|
2145
2145
|
},
|
|
2146
|
-
messages:
|
|
2146
|
+
messages: A,
|
|
2147
2147
|
get modifiers() {
|
|
2148
|
-
return
|
|
2148
|
+
return M;
|
|
2149
2149
|
},
|
|
2150
2150
|
get pluralRules() {
|
|
2151
|
-
return
|
|
2151
|
+
return D || {};
|
|
2152
2152
|
},
|
|
2153
2153
|
get isGlobal() {
|
|
2154
2154
|
return s;
|
|
2155
2155
|
},
|
|
2156
2156
|
get missingWarn() {
|
|
2157
|
-
return
|
|
2157
|
+
return E;
|
|
2158
2158
|
},
|
|
2159
2159
|
set missingWarn(f) {
|
|
2160
|
-
|
|
2160
|
+
E = f, g.missingWarn = E;
|
|
2161
2161
|
},
|
|
2162
2162
|
get fallbackWarn() {
|
|
2163
2163
|
return P;
|
|
@@ -2172,10 +2172,10 @@ function sr(e = {}) {
|
|
|
2172
2172
|
W = f;
|
|
2173
2173
|
},
|
|
2174
2174
|
get fallbackFormat() {
|
|
2175
|
-
return
|
|
2175
|
+
return k;
|
|
2176
2176
|
},
|
|
2177
2177
|
set fallbackFormat(f) {
|
|
2178
|
-
|
|
2178
|
+
k = f, g.fallbackFormat = k;
|
|
2179
2179
|
},
|
|
2180
2180
|
get warnHtmlMessage() {
|
|
2181
2181
|
return N;
|
|
@@ -2194,12 +2194,12 @@ function sr(e = {}) {
|
|
|
2194
2194
|
setLocaleMessage: Ge,
|
|
2195
2195
|
mergeLocaleMessage: Qe,
|
|
2196
2196
|
getPostTranslationHandler: S,
|
|
2197
|
-
setPostTranslationHandler:
|
|
2198
|
-
getMissingHandler:
|
|
2199
|
-
setMissingHandler:
|
|
2197
|
+
setPostTranslationHandler: T,
|
|
2198
|
+
getMissingHandler: L,
|
|
2199
|
+
setMissingHandler: Z,
|
|
2200
2200
|
[qa]: vt
|
|
2201
2201
|
};
|
|
2202
|
-
return X.datetimeFormats = U, X.numberFormats = G, X.rt = q, X.te =
|
|
2202
|
+
return X.datetimeFormats = U, X.numberFormats = G, X.rt = q, X.te = It, X.tm = ze, X.d = J, X.n = he, X.getDateTimeFormat = Nt, X.setDateTimeFormat = r, X.mergeDateTimeFormat = o, X.getNumberFormat = h, X.setNumberFormat = V, X.mergeNumberFormat = oe, X[Yn] = n, X[Ut] = Ee, X[Vt] = Ke, X[Wt] = $e, X;
|
|
2203
2203
|
}
|
|
2204
2204
|
const Kt = {
|
|
2205
2205
|
tag: {
|
|
@@ -2250,15 +2250,15 @@ function Bn(e, t, n, s) {
|
|
|
2250
2250
|
return () => {
|
|
2251
2251
|
const c = { part: !0 };
|
|
2252
2252
|
let d = Q();
|
|
2253
|
-
e.locale && (c.locale = e.locale), F(e.format) ? c.key = e.format : K(e.format) && (F(e.format.key) && (c.key = e.format.key), d = Object.keys(e.format).reduce((
|
|
2253
|
+
e.locale && (c.locale = e.locale), F(e.format) ? c.key = e.format : K(e.format) && (F(e.format.key) && (c.key = e.format.key), d = Object.keys(e.format).reduce((E, P) => n.includes(P) ? fe(Q(), E, { [P]: e.format[P] }) : E, Q()));
|
|
2254
2254
|
const u = s(e.value, c, d);
|
|
2255
2255
|
let p = [c.key];
|
|
2256
|
-
ue(u) ? p = u.map((
|
|
2257
|
-
const W = l[
|
|
2258
|
-
return rr(
|
|
2256
|
+
ue(u) ? p = u.map((E, P) => {
|
|
2257
|
+
const W = l[E.type], k = W ? W({ [E.type]: E.value, index: P, parts: u }) : [E.value];
|
|
2258
|
+
return rr(k) && (k[0].key = `${E.type}-${P}`), k;
|
|
2259
2259
|
}) : F(u) && (p = [u]);
|
|
2260
|
-
const
|
|
2261
|
-
return Sn(
|
|
2260
|
+
const O = fe(Q(), a), C = F(e.tag) || K(e.tag) ? e.tag : Hn();
|
|
2261
|
+
return Sn(C, O, p);
|
|
2262
2262
|
};
|
|
2263
2263
|
}
|
|
2264
2264
|
fe({
|
|
@@ -2302,7 +2302,7 @@ function gt(e = {}) {
|
|
|
2302
2302
|
return d;
|
|
2303
2303
|
}
|
|
2304
2304
|
function or(e) {
|
|
2305
|
-
const t =
|
|
2305
|
+
const t = $n(e.isCE ? lr : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2306
2306
|
if (!t)
|
|
2307
2307
|
throw st(e.isCE ? Be.NOT_INSTALLED_WITH_PROVIDE : Be.UNEXPECTED_ERROR);
|
|
2308
2308
|
return t;
|
|
@@ -2323,7 +2323,7 @@ function ur(e, t, n = !1) {
|
|
|
2323
2323
|
s = c.__getInstance(a);
|
|
2324
2324
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
2325
2325
|
const d = c.__getInstance(a);
|
|
2326
|
-
d != null && (s = d.__composer, n && s && !s[
|
|
2326
|
+
d != null && (s = d.__composer, n && s && !s[Yn] && (s = null));
|
|
2327
2327
|
}
|
|
2328
2328
|
if (s != null || l === a)
|
|
2329
2329
|
break;
|
|
@@ -2335,8 +2335,8 @@ function dr(e, t = !1) {
|
|
|
2335
2335
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2336
2336
|
}
|
|
2337
2337
|
function mr(e, t, n) {
|
|
2338
|
-
|
|
2339
|
-
}, t),
|
|
2338
|
+
Yt(() => {
|
|
2339
|
+
}, t), An(() => {
|
|
2340
2340
|
const s = n;
|
|
2341
2341
|
e.__deleteInstance(t);
|
|
2342
2342
|
const l = s[Gt];
|
|
@@ -2344,14 +2344,14 @@ function mr(e, t, n) {
|
|
|
2344
2344
|
}, t);
|
|
2345
2345
|
}
|
|
2346
2346
|
Qa();
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
Sa(
|
|
2347
|
+
Ca(ua);
|
|
2348
|
+
Aa(Oa);
|
|
2349
|
+
Sa(Mn);
|
|
2350
2350
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2351
2351
|
const e = je();
|
|
2352
2352
|
e.__INTLIFY__ = !0, da(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2353
2353
|
}
|
|
2354
|
-
const ct = /* @__PURE__ */
|
|
2354
|
+
const ct = /* @__PURE__ */ Te({
|
|
2355
2355
|
__name: "InheritPermissionTooltip",
|
|
2356
2356
|
props: {
|
|
2357
2357
|
item: {
|
|
@@ -2362,15 +2362,15 @@ const ct = /* @__PURE__ */ ke({
|
|
|
2362
2362
|
setup(e) {
|
|
2363
2363
|
const { t } = gt();
|
|
2364
2364
|
return (n, s) => {
|
|
2365
|
-
const l =
|
|
2366
|
-
return B(),
|
|
2365
|
+
const l = Ze("FmIcon"), a = Ze("FmTooltip");
|
|
2366
|
+
return B(), De(a, {
|
|
2367
2367
|
variant: "plain",
|
|
2368
2368
|
placement: "right",
|
|
2369
2369
|
"z-index": 50
|
|
2370
2370
|
}, {
|
|
2371
2371
|
content: ge(() => [
|
|
2372
2372
|
se("div", null, Se(H(t)("team.memberForm.permissions.inherited")), 1),
|
|
2373
|
-
(B(!0), ne(Ne, null,
|
|
2373
|
+
(B(!0), ne(Ne, null, be(e.item.setNames, (c) => (B(), ne("div", { key: c }, [
|
|
2374
2374
|
se("div", null, "- " + Se(c), 1)
|
|
2375
2375
|
]))), 128))
|
|
2376
2376
|
]),
|
|
@@ -2391,7 +2391,7 @@ const ct = /* @__PURE__ */ ke({
|
|
|
2391
2391
|
}, pr = {
|
|
2392
2392
|
key: 0,
|
|
2393
2393
|
class: "q-mr-xs text-red col"
|
|
2394
|
-
},
|
|
2394
|
+
}, br = { class: "form-input" }, hr = /* @__PURE__ */ Te({
|
|
2395
2395
|
__name: "AppForm",
|
|
2396
2396
|
props: {
|
|
2397
2397
|
title: {
|
|
@@ -2413,13 +2413,13 @@ const ct = /* @__PURE__ */ ke({
|
|
|
2413
2413
|
ve(n.$slots, "top", {}, () => [
|
|
2414
2414
|
t.title ? (B(), ne("div", _r, [
|
|
2415
2415
|
se("div", null, [
|
|
2416
|
-
t.required ? (B(), ne("span", pr, "*")) :
|
|
2416
|
+
t.required ? (B(), ne("span", pr, "*")) : Le("", !0),
|
|
2417
2417
|
Qn(Se(t.title), 1)
|
|
2418
2418
|
]),
|
|
2419
2419
|
ve(n.$slots, "title-right")
|
|
2420
|
-
])) :
|
|
2420
|
+
])) : Le("", !0)
|
|
2421
2421
|
]),
|
|
2422
|
-
se("div",
|
|
2422
|
+
se("div", br, [
|
|
2423
2423
|
ve(n.$slots, "default")
|
|
2424
2424
|
])
|
|
2425
2425
|
]));
|
|
@@ -2432,10 +2432,10 @@ function gr(e, t) {
|
|
|
2432
2432
|
n += s.charAt(Math.floor(Math.random() * l));
|
|
2433
2433
|
return n;
|
|
2434
2434
|
}
|
|
2435
|
-
const vr = { class: "col flex items-center" },
|
|
2435
|
+
const vr = { class: "col flex items-center" }, Ir = {
|
|
2436
2436
|
key: 1,
|
|
2437
2437
|
class: "q-pa-sm form-error-message text-error"
|
|
2438
|
-
}, zt = /* @__PURE__ */
|
|
2438
|
+
}, zt = /* @__PURE__ */ Te({
|
|
2439
2439
|
__name: "CheckboxInput",
|
|
2440
2440
|
props: {
|
|
2441
2441
|
options: {
|
|
@@ -2493,47 +2493,47 @@ 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 } =
|
|
2497
|
-
() => n.modelValue.filter((
|
|
2498
|
-
),
|
|
2496
|
+
const n = e, s = t, { t: l } = Je(), a = Ue(!1), c = qn(), d = te(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), u = `checkbox-${gr(6)}`, p = te(() => d.value !== !0), O = te(
|
|
2497
|
+
() => n.modelValue.filter((k) => n.options.some((w) => w.value === k))
|
|
2498
|
+
), C = te(
|
|
2499
2499
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2500
|
-
),
|
|
2500
|
+
), E = te(() => n.options.length > 0 && n.options.length === O.value.length);
|
|
2501
2501
|
function P() {
|
|
2502
|
-
const
|
|
2503
|
-
if (
|
|
2504
|
-
s("update:model-value",
|
|
2502
|
+
const k = n.modelValue.filter((w) => !O.value.includes(w));
|
|
2503
|
+
if (E.value === !0)
|
|
2504
|
+
s("update:model-value", k);
|
|
2505
2505
|
else {
|
|
2506
2506
|
const w = 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", [...k, ...w]);
|
|
2508
2508
|
}
|
|
2509
2509
|
}
|
|
2510
|
-
function W(
|
|
2510
|
+
function W(k, w) {
|
|
2511
2511
|
let i = dt(n.modelValue);
|
|
2512
|
-
w ? i.every((m) => m !==
|
|
2512
|
+
w ? i.every((m) => m !== k) && i.push(k) : i = i.filter((m) => m !== k), s("update:model-value", i);
|
|
2513
2513
|
}
|
|
2514
|
-
return (
|
|
2515
|
-
const i =
|
|
2516
|
-
return B(),
|
|
2514
|
+
return (k, w) => {
|
|
2515
|
+
const i = Ze("FmCheckbox");
|
|
2516
|
+
return B(), De(hr, {
|
|
2517
2517
|
id: u,
|
|
2518
2518
|
title: e.title,
|
|
2519
2519
|
required: !1
|
|
2520
2520
|
}, {
|
|
2521
2521
|
top: ge(() => [
|
|
2522
|
-
ve(
|
|
2522
|
+
ve(k.$slots, "top")
|
|
2523
2523
|
]),
|
|
2524
2524
|
default: ge(() => [
|
|
2525
|
-
n.showAllToggle ? (B(),
|
|
2525
|
+
n.showAllToggle ? (B(), De(i, {
|
|
2526
2526
|
key: 0,
|
|
2527
|
-
"model-value":
|
|
2527
|
+
"model-value": E.value,
|
|
2528
2528
|
disabled: e.disable,
|
|
2529
|
-
label:
|
|
2529
|
+
label: C.value,
|
|
2530
2530
|
style: ut(`margin-bottom: ${n.gutter}px`),
|
|
2531
2531
|
size: "sm",
|
|
2532
2532
|
dense: "",
|
|
2533
|
-
value:
|
|
2533
|
+
value: C.value,
|
|
2534
2534
|
"onUpdate:modelValue": P
|
|
2535
|
-
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) :
|
|
2536
|
-
(B(!0), ne(Ne, null,
|
|
2535
|
+
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Le("", !0),
|
|
2536
|
+
(B(!0), ne(Ne, null, be(e.options, (m, N) => (B(), ne("div", {
|
|
2537
2537
|
key: m.value,
|
|
2538
2538
|
style: ut(`margin-bottom: ${N < e.options.length - 1 ? n.gutter : 0}px`),
|
|
2539
2539
|
class: et(N < e.options.length - 1 ? "q-mb-sm" : "")
|
|
@@ -2550,7 +2550,7 @@ const vr = { class: "col flex items-center" }, Er = {
|
|
|
2550
2550
|
value: m.label,
|
|
2551
2551
|
"onUpdate:modelValue": (_) => W(m.value, _)
|
|
2552
2552
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
2553
|
-
ve(
|
|
2553
|
+
ve(k.$slots, `checkbox-${m.key || m.value}-append`, {
|
|
2554
2554
|
option: m,
|
|
2555
2555
|
selected: e.modelValue.includes(m.value)
|
|
2556
2556
|
})
|
|
@@ -2559,33 +2559,33 @@ const vr = { class: "col flex items-center" }, Er = {
|
|
|
2559
2559
|
key: 0,
|
|
2560
2560
|
class: et([{ "q-checkbox disabled": e.disable || m.disabled }, "col"])
|
|
2561
2561
|
}, [
|
|
2562
|
-
ve(
|
|
2562
|
+
ve(k.$slots, `checkbox-${m.key || m.value}-end`, {
|
|
2563
2563
|
option: m,
|
|
2564
2564
|
value: e.modelValue.includes(m.value),
|
|
2565
2565
|
disable: e.disable || m.disabled
|
|
2566
2566
|
})
|
|
2567
|
-
], 2)) :
|
|
2567
|
+
], 2)) : Le("", !0)
|
|
2568
2568
|
], 2),
|
|
2569
2569
|
H(c)[`checkbox-${m.key || m.value}-bottom`] && (e.modelValue.includes(m.value) || e.falsyShowSlot) ? (B(), ne("div", {
|
|
2570
2570
|
key: 0,
|
|
2571
2571
|
class: et(["q-mt-sm", { "q-checkbox disabled": e.disable || m.disabled }]),
|
|
2572
2572
|
style: ut(`margin-left: ${e.bottomSlotIndent}`)
|
|
2573
2573
|
}, [
|
|
2574
|
-
ve(
|
|
2574
|
+
ve(k.$slots, `checkbox-${m.key || m.value}-bottom`, {
|
|
2575
2575
|
option: m,
|
|
2576
2576
|
disable: e.disable || m.disabled,
|
|
2577
2577
|
value: e.modelValue.includes(m.value)
|
|
2578
2578
|
})
|
|
2579
|
-
], 6)) :
|
|
2579
|
+
], 6)) : Le("", !0)
|
|
2580
2580
|
], 6))), 128)),
|
|
2581
|
-
a.value && p.value ? (B(), ne("div",
|
|
2581
|
+
a.value && p.value ? (B(), ne("div", Ir, Se(d.value), 1)) : Le("", !0)
|
|
2582
2582
|
]),
|
|
2583
2583
|
_: 3
|
|
2584
2584
|
}, 8, ["title"]);
|
|
2585
2585
|
};
|
|
2586
2586
|
}
|
|
2587
2587
|
});
|
|
2588
|
-
function
|
|
2588
|
+
function Ln(e, t, n) {
|
|
2589
2589
|
const s = n.filter((d) => d !== "manage");
|
|
2590
2590
|
if (s.length === 0) return;
|
|
2591
2591
|
const l = e.findIndex((d) => d.subject === t && !d.inverted);
|
|
@@ -2599,241 +2599,241 @@ function On(e, t, n) {
|
|
|
2599
2599
|
actions: Array.from(a)
|
|
2600
2600
|
});
|
|
2601
2601
|
}
|
|
2602
|
-
const Rn = Object.values(us),
|
|
2602
|
+
const Rn = Object.values(us), Er = {
|
|
2603
2603
|
read: "View",
|
|
2604
2604
|
create: "Duplicate",
|
|
2605
2605
|
update: "Edit"
|
|
2606
2606
|
};
|
|
2607
2607
|
function Nr(e, t, n, s) {
|
|
2608
|
-
const { t: l } =
|
|
2609
|
-
var
|
|
2610
|
-
const
|
|
2611
|
-
for (const
|
|
2612
|
-
const U =
|
|
2613
|
-
U && (n.value.includes(
|
|
2614
|
-
label: l(`permissionSet.permissionLabels.${
|
|
2615
|
-
value:
|
|
2616
|
-
}), R.set(
|
|
2608
|
+
const { t: l } = Je(), { getFlagValue: a, getFlag: c } = cs(), d = te(() => {
|
|
2609
|
+
var b;
|
|
2610
|
+
const I = /* @__PURE__ */ new Map(), R = /* @__PURE__ */ new Map();
|
|
2611
|
+
for (const A of t.value) {
|
|
2612
|
+
const U = A.category;
|
|
2613
|
+
U && (n.value.includes(A.subject) || A.showByFeatureFlag && ((b = c(A.showByFeatureFlag)) == null ? void 0 : b.enabled) === !1 && a(A.showByFeatureFlag) === "true" || (I.has(U) || I.set(U, []), I.get(U).push({
|
|
2614
|
+
label: l(`permissionSet.permissionLabels.${A.subject}`, A.label),
|
|
2615
|
+
value: A.subject
|
|
2616
|
+
}), R.set(A.subject, A)));
|
|
2617
2617
|
}
|
|
2618
|
-
return [...
|
|
2619
|
-
const G = Rn.indexOf(
|
|
2620
|
-
return G === -1 && S === -1 ?
|
|
2621
|
-
}).map((
|
|
2622
|
-
const U =
|
|
2623
|
-
for (const
|
|
2624
|
-
const le = R.get(
|
|
2625
|
-
le && S.set(
|
|
2618
|
+
return [...I.keys()].sort((A, U) => {
|
|
2619
|
+
const G = Rn.indexOf(A), S = Rn.indexOf(U);
|
|
2620
|
+
return G === -1 && S === -1 ? A.localeCompare(U) : G === -1 ? 1 : S === -1 ? -1 : G - S;
|
|
2621
|
+
}).map((A) => {
|
|
2622
|
+
const U = I.get(A), G = l(`permissionSet.categoryLabels.${A}`, A), S = /* @__PURE__ */ new Map();
|
|
2623
|
+
for (const Y of U) {
|
|
2624
|
+
const le = R.get(Y.value);
|
|
2625
|
+
le && S.set(Y.value, le.actions);
|
|
2626
2626
|
}
|
|
2627
|
-
const
|
|
2628
|
-
const le = S.get(
|
|
2627
|
+
const T = U.some((Y) => {
|
|
2628
|
+
const le = S.get(Y.value);
|
|
2629
2629
|
return le && le.length > 1;
|
|
2630
|
-
}),
|
|
2630
|
+
}), L = T ? [
|
|
2631
2631
|
...new Set(
|
|
2632
|
-
U.flatMap((
|
|
2632
|
+
U.flatMap((Y) => S.get(Y.value) ?? []).filter((Y) => Y !== "manage")
|
|
2633
2633
|
)
|
|
2634
|
-
] : [],
|
|
2635
|
-
for (const
|
|
2636
|
-
U.some((le) => le.value ===
|
|
2637
|
-
const x =
|
|
2638
|
-
(
|
|
2639
|
-
).map((
|
|
2634
|
+
] : [], Z = /* @__PURE__ */ new Map();
|
|
2635
|
+
for (const Y of e.value)
|
|
2636
|
+
U.some((le) => le.value === Y.subject) && !Y.inverted && Z.set(Y.subject, new Set(Y.actions));
|
|
2637
|
+
const x = T ? 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
|
-
return (le = R.get(
|
|
2642
|
-
}), q = (j == null ? void 0 : j.value) ?? null,
|
|
2641
|
+
return (le = R.get(Y.value)) == null ? void 0 : le.isCategoryCover;
|
|
2642
|
+
}), q = (j == null ? void 0 : j.value) ?? null, J = q ? Z.get(q) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), he = J.has("manage");
|
|
2643
2643
|
return {
|
|
2644
|
-
category:
|
|
2644
|
+
category: A,
|
|
2645
2645
|
label: G,
|
|
2646
2646
|
options: U,
|
|
2647
2647
|
selectedSubjects: x,
|
|
2648
|
-
isMultiAction:
|
|
2649
|
-
actionColumns:
|
|
2648
|
+
isMultiAction: T,
|
|
2649
|
+
actionColumns: L,
|
|
2650
2650
|
permissionActionsMap: S,
|
|
2651
|
-
selectedActionsMap:
|
|
2651
|
+
selectedActionsMap: Z,
|
|
2652
2652
|
coverSubject: q,
|
|
2653
|
-
coverSelectedActions:
|
|
2654
|
-
coverCoversAll:
|
|
2653
|
+
coverSelectedActions: J,
|
|
2654
|
+
coverCoversAll: he
|
|
2655
2655
|
};
|
|
2656
2656
|
});
|
|
2657
2657
|
});
|
|
2658
|
-
function u(
|
|
2659
|
-
var
|
|
2660
|
-
const y = ((
|
|
2658
|
+
function u(I, R) {
|
|
2659
|
+
var b;
|
|
2660
|
+
const y = ((b = d.value.find((A) => A.category === I)) == null ? void 0 : b.options) ?? [];
|
|
2661
2661
|
s("update:model-value", [
|
|
2662
|
-
...e.value.filter((
|
|
2663
|
-
...t.value.filter((
|
|
2664
|
-
({ category:
|
|
2662
|
+
...e.value.filter((A) => !y.some((U) => U.value === A.subject)),
|
|
2663
|
+
...t.value.filter((A) => R.includes(A.subject)).map(
|
|
2664
|
+
({ category: A, showByFeatureFlag: U, isCategoryCover: G, ...S }) => S
|
|
2665
2665
|
)
|
|
2666
2666
|
]);
|
|
2667
2667
|
}
|
|
2668
|
-
function p(
|
|
2669
|
-
return
|
|
2668
|
+
function p(I) {
|
|
2669
|
+
return I.options.length > 0 && I.options.every((R) => I.selectedSubjects.includes(R.value));
|
|
2670
2670
|
}
|
|
2671
|
-
function
|
|
2671
|
+
function O(I) {
|
|
2672
2672
|
const R = e.value.filter(
|
|
2673
|
-
(y) => !
|
|
2673
|
+
(y) => !I.options.some((b) => b.value === y.subject)
|
|
2674
2674
|
);
|
|
2675
|
-
if (p(
|
|
2675
|
+
if (p(I))
|
|
2676
2676
|
s("update:model-value", R);
|
|
2677
2677
|
else {
|
|
2678
|
-
const y = t.value.filter((
|
|
2679
|
-
({ category:
|
|
2678
|
+
const y = t.value.filter((b) => I.options.some((A) => A.value === b.subject)).map(
|
|
2679
|
+
({ category: b, showByFeatureFlag: A, isCategoryCover: U, ...G }) => G
|
|
2680
2680
|
);
|
|
2681
2681
|
s("update:model-value", [...R, ...y]);
|
|
2682
2682
|
}
|
|
2683
2683
|
}
|
|
2684
|
-
function
|
|
2685
|
-
const y =
|
|
2684
|
+
function C(I, R) {
|
|
2685
|
+
const y = I.selectedActionsMap.get(R);
|
|
2686
2686
|
return y ? y.has("manage") : !1;
|
|
2687
2687
|
}
|
|
2688
|
-
function I
|
|
2689
|
-
const y =
|
|
2688
|
+
function E(I, R) {
|
|
2689
|
+
const y = I.permissionActionsMap.get(R);
|
|
2690
2690
|
if (!y) return !1;
|
|
2691
|
-
const
|
|
2692
|
-
if (
|
|
2693
|
-
const
|
|
2694
|
-
if (!
|
|
2695
|
-
const U =
|
|
2696
|
-
return U.length > 0 && U.length <
|
|
2697
|
-
}
|
|
2698
|
-
function P(
|
|
2691
|
+
const b = y.filter((G) => G !== "manage");
|
|
2692
|
+
if (b.length === 0) return !1;
|
|
2693
|
+
const A = I.selectedActionsMap.get(R);
|
|
2694
|
+
if (!A) return !1;
|
|
2695
|
+
const U = b.filter((G) => A.has(G));
|
|
2696
|
+
return U.length > 0 && U.length < b.length;
|
|
2697
|
+
}
|
|
2698
|
+
function P(I, R, y) {
|
|
2699
2699
|
if (y) {
|
|
2700
|
-
const
|
|
2701
|
-
if (!
|
|
2700
|
+
const b = t.value.find((L) => L.subject === R);
|
|
2701
|
+
if (!b) return;
|
|
2702
2702
|
const {
|
|
2703
|
-
category:
|
|
2703
|
+
category: A,
|
|
2704
2704
|
showByFeatureFlag: U,
|
|
2705
2705
|
isCategoryCover: G,
|
|
2706
2706
|
...S
|
|
2707
|
-
} =
|
|
2708
|
-
|
|
2707
|
+
} = b, T = e.value.filter((L) => L.subject !== R);
|
|
2708
|
+
T.push(S), s("update:model-value", T);
|
|
2709
2709
|
} else
|
|
2710
2710
|
s(
|
|
2711
2711
|
"update:model-value",
|
|
2712
|
-
e.value.filter((
|
|
2712
|
+
e.value.filter((b) => b.subject !== R)
|
|
2713
2713
|
);
|
|
2714
2714
|
}
|
|
2715
|
-
function W(
|
|
2716
|
-
const y =
|
|
2717
|
-
return y ? y.some((
|
|
2715
|
+
function W(I, R) {
|
|
2716
|
+
const y = I.permissionActionsMap.get(R);
|
|
2717
|
+
return y ? y.some((b) => b !== "manage") : !1;
|
|
2718
2718
|
}
|
|
2719
|
-
function
|
|
2720
|
-
const
|
|
2721
|
-
return
|
|
2719
|
+
function k(I, R, y) {
|
|
2720
|
+
const b = I.selectedActionsMap.get(R);
|
|
2721
|
+
return b ? b.has(y) : !1;
|
|
2722
2722
|
}
|
|
2723
|
-
function w(
|
|
2724
|
-
return !
|
|
2723
|
+
function w(I, R) {
|
|
2724
|
+
return !I.coverSubject || R === I.coverSubject ? !1 : I.coverCoversAll;
|
|
2725
2725
|
}
|
|
2726
|
-
function i(
|
|
2727
|
-
return !
|
|
2726
|
+
function i(I, R, y) {
|
|
2727
|
+
return !I.coverSubject || R === I.coverSubject ? !1 : I.coverCoversAll ? !0 : I.coverSelectedActions.has(y);
|
|
2728
2728
|
}
|
|
2729
|
-
function m(
|
|
2730
|
-
const
|
|
2731
|
-
return
|
|
2729
|
+
function m(I, R, y) {
|
|
2730
|
+
const b = I.permissionActionsMap.get(R);
|
|
2731
|
+
return b ? b.includes(y) : !1;
|
|
2732
2732
|
}
|
|
2733
|
-
function N(
|
|
2734
|
-
const
|
|
2733
|
+
function N(I, R, y) {
|
|
2734
|
+
const b = [...e.value], A = b.findIndex((G) => G.subject === I && !G.inverted);
|
|
2735
2735
|
if (y)
|
|
2736
|
-
if (
|
|
2737
|
-
const G = { ...
|
|
2738
|
-
S.add(R), G.actions = Array.from(S),
|
|
2736
|
+
if (A >= 0) {
|
|
2737
|
+
const G = { ...b[A] }, S = new Set(G.actions);
|
|
2738
|
+
S.add(R), G.actions = Array.from(S), b[A] = G;
|
|
2739
2739
|
} else {
|
|
2740
|
-
const G = t.value.find((x) => x.subject ===
|
|
2740
|
+
const G = t.value.find((x) => x.subject === I);
|
|
2741
2741
|
if (!G) return;
|
|
2742
2742
|
const {
|
|
2743
2743
|
category: S,
|
|
2744
|
-
showByFeatureFlag:
|
|
2745
|
-
isCategoryCover:
|
|
2746
|
-
...
|
|
2744
|
+
showByFeatureFlag: T,
|
|
2745
|
+
isCategoryCover: L,
|
|
2746
|
+
...Z
|
|
2747
2747
|
} = G;
|
|
2748
|
-
|
|
2748
|
+
b.push({ ...Z, actions: [R] });
|
|
2749
2749
|
}
|
|
2750
|
-
else if (
|
|
2751
|
-
const G = { ...
|
|
2752
|
-
S.length === 0 ?
|
|
2750
|
+
else if (A >= 0) {
|
|
2751
|
+
const G = { ...b[A] }, S = G.actions.filter((T) => T !== R);
|
|
2752
|
+
S.length === 0 ? b.splice(A, 1) : (G.actions = S, b[A] = G);
|
|
2753
2753
|
}
|
|
2754
|
-
const U = t.value.find((G) => G.subject ===
|
|
2755
|
-
U &&
|
|
2754
|
+
const U = t.value.find((G) => G.subject === I);
|
|
2755
|
+
U && Ln(b, I, U.actions), s("update:model-value", b);
|
|
2756
2756
|
}
|
|
2757
|
-
function _(
|
|
2758
|
-
const y =
|
|
2759
|
-
(
|
|
2757
|
+
function _(I, R) {
|
|
2758
|
+
const y = I.options.filter(
|
|
2759
|
+
(b) => m(I, b.value, R)
|
|
2760
2760
|
);
|
|
2761
2761
|
return y.length === 0 ? !1 : y.every(
|
|
2762
|
-
(
|
|
2762
|
+
(b) => k(I, b.value, R) || i(I, b.value, R)
|
|
2763
2763
|
);
|
|
2764
2764
|
}
|
|
2765
|
-
function
|
|
2766
|
-
const y =
|
|
2767
|
-
(
|
|
2765
|
+
function M(I, R) {
|
|
2766
|
+
const y = I.options.filter(
|
|
2767
|
+
(A) => m(I, A.value, R)
|
|
2768
2768
|
);
|
|
2769
2769
|
if (y.length === 0) return !1;
|
|
2770
|
-
const
|
|
2771
|
-
(
|
|
2770
|
+
const b = y.filter(
|
|
2771
|
+
(A) => k(I, A.value, R) || i(I, A.value, R)
|
|
2772
2772
|
).length;
|
|
2773
|
-
return
|
|
2774
|
-
}
|
|
2775
|
-
function
|
|
2776
|
-
const
|
|
2777
|
-
for (const
|
|
2778
|
-
if (!m(
|
|
2779
|
-
const U =
|
|
2780
|
-
(
|
|
2773
|
+
return b > 0 && b < y.length;
|
|
2774
|
+
}
|
|
2775
|
+
function D(I, R, y) {
|
|
2776
|
+
const b = [...e.value];
|
|
2777
|
+
for (const A of I.options) {
|
|
2778
|
+
if (!m(I, A.value, R)) continue;
|
|
2779
|
+
const U = A.value, G = b.findIndex(
|
|
2780
|
+
(T) => T.subject === U && !T.inverted
|
|
2781
2781
|
);
|
|
2782
2782
|
if (y)
|
|
2783
2783
|
if (G >= 0) {
|
|
2784
|
-
const
|
|
2785
|
-
|
|
2784
|
+
const T = { ...b[G] }, L = new Set(T.actions);
|
|
2785
|
+
L.add(R), T.actions = Array.from(L), b[G] = T;
|
|
2786
2786
|
} else {
|
|
2787
|
-
const
|
|
2788
|
-
if (!
|
|
2787
|
+
const T = t.value.find((q) => q.subject === U);
|
|
2788
|
+
if (!T) continue;
|
|
2789
2789
|
const {
|
|
2790
|
-
category:
|
|
2791
|
-
showByFeatureFlag:
|
|
2790
|
+
category: L,
|
|
2791
|
+
showByFeatureFlag: Z,
|
|
2792
2792
|
isCategoryCover: x,
|
|
2793
2793
|
...j
|
|
2794
|
-
} =
|
|
2795
|
-
|
|
2794
|
+
} = T;
|
|
2795
|
+
b.push({ ...j, actions: [R] });
|
|
2796
2796
|
}
|
|
2797
2797
|
else if (G >= 0) {
|
|
2798
|
-
const
|
|
2799
|
-
|
|
2798
|
+
const T = { ...b[G] }, L = T.actions.filter((Z) => Z !== R);
|
|
2799
|
+
L.length === 0 ? b.splice(G, 1) : (T.actions = L, b[G] = T);
|
|
2800
2800
|
}
|
|
2801
|
-
const S = t.value.find((
|
|
2802
|
-
S &&
|
|
2801
|
+
const S = t.value.find((T) => T.subject === U);
|
|
2802
|
+
S && Ln(b, U, S.actions);
|
|
2803
2803
|
}
|
|
2804
|
-
s("update:model-value",
|
|
2804
|
+
s("update:model-value", b);
|
|
2805
2805
|
}
|
|
2806
|
-
function g(
|
|
2807
|
-
const R = `permissionSet.actionLabels.${
|
|
2806
|
+
function g(I) {
|
|
2807
|
+
const R = `permissionSet.actionLabels.${I}`, y = Er[I] ?? I.charAt(0).toUpperCase() + I.slice(1);
|
|
2808
2808
|
return l(R, y);
|
|
2809
2809
|
}
|
|
2810
2810
|
return {
|
|
2811
2811
|
categoryGroups: d,
|
|
2812
2812
|
toggleCategory: u,
|
|
2813
2813
|
isAllManageChecked: p,
|
|
2814
|
-
toggleAllManage:
|
|
2815
|
-
isManageChecked:
|
|
2816
|
-
isManageIndeterminate:
|
|
2814
|
+
toggleAllManage: O,
|
|
2815
|
+
isManageChecked: C,
|
|
2816
|
+
isManageIndeterminate: E,
|
|
2817
2817
|
toggleManage: P,
|
|
2818
2818
|
hasNonManageActions: W,
|
|
2819
|
-
isActionChecked:
|
|
2819
|
+
isActionChecked: k,
|
|
2820
2820
|
isRowFullyCoveredByCover: w,
|
|
2821
2821
|
isActionCoveredByCover: i,
|
|
2822
2822
|
permissionDefinesAction: m,
|
|
2823
2823
|
toggleAction: N,
|
|
2824
2824
|
isAllActionChecked: _,
|
|
2825
|
-
isAllActionIndeterminate:
|
|
2826
|
-
toggleAllAction:
|
|
2825
|
+
isAllActionIndeterminate: M,
|
|
2826
|
+
toggleAllAction: D,
|
|
2827
2827
|
actionLabel: g
|
|
2828
2828
|
};
|
|
2829
2829
|
}
|
|
2830
|
-
const yr = { class: "flex flex-col gap-16" },
|
|
2830
|
+
const yr = { class: "flex flex-col gap-16" }, Tr = {
|
|
2831
2831
|
key: 1,
|
|
2832
2832
|
class: "space-y-16"
|
|
2833
|
-
},
|
|
2833
|
+
}, kr = { class: "flex items-end justify-between" }, Or = { class: "fm-typo-en-title-sm-600" }, Lr = { class: "flex" }, Rr = { class: "form-input" }, Cr = { class: "flex items-center justify-between q-mb-xs" }, Ar = { class: "flex shrink-0" }, Sr = { class: "flex items-center justify-between gap-4" }, Dr = { class: "flex items-center min-w-0 flex-1 gap-8" }, Mr = ["title", "onClick"], wr = {
|
|
2834
2834
|
key: 0,
|
|
2835
2835
|
class: "flex shrink-0"
|
|
2836
|
-
}, Pr = /* @__PURE__ */
|
|
2836
|
+
}, Pr = /* @__PURE__ */ Te({
|
|
2837
2837
|
__name: "BasePermission",
|
|
2838
2838
|
props: {
|
|
2839
2839
|
modelValue: {
|
|
@@ -2855,48 +2855,48 @@ const yr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
2855
2855
|
},
|
|
2856
2856
|
emits: ["update:model-value"],
|
|
2857
2857
|
setup(e, { emit: t }) {
|
|
2858
|
-
const n = e, s = t, { t: l } =
|
|
2858
|
+
const n = e, s = t, { t: l } = Je(), a = te(() => [...Dt, ...n.additionalPermissions]), {
|
|
2859
2859
|
categoryGroups: c,
|
|
2860
2860
|
toggleCategory: d,
|
|
2861
2861
|
isAllManageChecked: u,
|
|
2862
2862
|
toggleAllManage: p,
|
|
2863
|
-
isManageChecked:
|
|
2864
|
-
isManageIndeterminate:
|
|
2865
|
-
toggleManage:
|
|
2863
|
+
isManageChecked: O,
|
|
2864
|
+
isManageIndeterminate: C,
|
|
2865
|
+
toggleManage: E,
|
|
2866
2866
|
hasNonManageActions: P,
|
|
2867
2867
|
isActionChecked: W,
|
|
2868
|
-
isRowFullyCoveredByCover:
|
|
2868
|
+
isRowFullyCoveredByCover: k,
|
|
2869
2869
|
isActionCoveredByCover: w,
|
|
2870
2870
|
permissionDefinesAction: i,
|
|
2871
2871
|
toggleAction: m,
|
|
2872
2872
|
isAllActionChecked: N,
|
|
2873
2873
|
isAllActionIndeterminate: _,
|
|
2874
|
-
toggleAllAction:
|
|
2875
|
-
actionLabel:
|
|
2874
|
+
toggleAllAction: M,
|
|
2875
|
+
actionLabel: D
|
|
2876
2876
|
} = Nr(
|
|
2877
2877
|
Qt(n, "modelValue"),
|
|
2878
2878
|
a,
|
|
2879
2879
|
Qt(n, "excludedSubjects"),
|
|
2880
|
-
(g,
|
|
2880
|
+
(g, I) => s("update:model-value", I)
|
|
2881
2881
|
);
|
|
2882
|
-
return (g,
|
|
2883
|
-
const R =
|
|
2882
|
+
return (g, I) => {
|
|
2883
|
+
const R = Ze("FmCheckbox");
|
|
2884
2884
|
return B(), ne("div", yr, [
|
|
2885
|
-
(B(!0), ne(Ne, null,
|
|
2885
|
+
(B(!0), ne(Ne, null, be(H(c), (y) => (B(), ne(Ne, {
|
|
2886
2886
|
key: y.category
|
|
2887
2887
|
}, [
|
|
2888
|
-
y.isMultiAction ? (B(), ne("div",
|
|
2889
|
-
se("div",
|
|
2890
|
-
se("div",
|
|
2891
|
-
se("div",
|
|
2892
|
-
(B(!0), ne(Ne, null,
|
|
2893
|
-
key:
|
|
2888
|
+
y.isMultiAction ? (B(), ne("div", Tr, [
|
|
2889
|
+
se("div", kr, [
|
|
2890
|
+
se("div", Or, Se(y.label), 1),
|
|
2891
|
+
se("div", Lr, [
|
|
2892
|
+
(B(!0), ne(Ne, null, be(y.actionColumns, (b) => (B(), ne("span", {
|
|
2893
|
+
key: b,
|
|
2894
2894
|
class: "w-[56px] text-center fm-typo-en-body-sm-400 text-fm-color-neutral-gray-600"
|
|
2895
|
-
}, Se(H(
|
|
2895
|
+
}, Se(H(D)(b)), 1))), 128))
|
|
2896
2896
|
])
|
|
2897
2897
|
]),
|
|
2898
2898
|
se("div", Rr, [
|
|
2899
|
-
se("div",
|
|
2899
|
+
se("div", Cr, [
|
|
2900
2900
|
_e(R, {
|
|
2901
2901
|
"model-value": H(u)(y),
|
|
2902
2902
|
value: !0,
|
|
@@ -2904,77 +2904,77 @@ const yr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
2904
2904
|
label: H(l)("team.labels.all"),
|
|
2905
2905
|
size: "sm",
|
|
2906
2906
|
dense: "",
|
|
2907
|
-
"onUpdate:modelValue": (
|
|
2907
|
+
"onUpdate:modelValue": (b) => H(p)(y)
|
|
2908
2908
|
}, null, 8, ["model-value", "disabled", "label", "onUpdate:modelValue"]),
|
|
2909
|
-
se("div",
|
|
2910
|
-
(B(!0), ne(Ne, null,
|
|
2911
|
-
key:
|
|
2909
|
+
se("div", Ar, [
|
|
2910
|
+
(B(!0), ne(Ne, null, be(y.actionColumns, (b) => (B(), ne("div", {
|
|
2911
|
+
key: b,
|
|
2912
2912
|
class: "w-[56px] flex justify-center"
|
|
2913
2913
|
}, [
|
|
2914
2914
|
_e(R, {
|
|
2915
|
-
"model-value": H(N)(y,
|
|
2916
|
-
indeterminate: H(_)(y,
|
|
2917
|
-
value:
|
|
2915
|
+
"model-value": H(N)(y, b),
|
|
2916
|
+
indeterminate: H(_)(y, b),
|
|
2917
|
+
value: b,
|
|
2918
2918
|
disabled: e.disable,
|
|
2919
2919
|
size: "sm",
|
|
2920
2920
|
dense: "",
|
|
2921
|
-
"onUpdate:modelValue": (
|
|
2921
|
+
"onUpdate:modelValue": (A) => H(M)(y, b, A)
|
|
2922
2922
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2923
2923
|
]))), 128))
|
|
2924
2924
|
])
|
|
2925
2925
|
]),
|
|
2926
|
-
(B(!0), ne(Ne, null,
|
|
2927
|
-
key:
|
|
2928
|
-
class: et(
|
|
2926
|
+
(B(!0), ne(Ne, null, be(y.options, (b, A) => (B(), ne("div", {
|
|
2927
|
+
key: b.value,
|
|
2928
|
+
class: et(A < y.options.length - 1 ? "q-mb-xs" : "")
|
|
2929
2929
|
}, [
|
|
2930
2930
|
se("div", Sr, [
|
|
2931
|
-
se("div",
|
|
2931
|
+
se("div", Dr, [
|
|
2932
2932
|
_e(R, {
|
|
2933
|
-
"model-value": H(
|
|
2934
|
-
value:
|
|
2935
|
-
disabled: e.disable || H(
|
|
2936
|
-
indeterminate: H(
|
|
2933
|
+
"model-value": H(O)(y, b.value) || H(k)(y, b.value),
|
|
2934
|
+
value: b.value,
|
|
2935
|
+
disabled: e.disable || H(k)(y, b.value),
|
|
2936
|
+
indeterminate: H(C)(y, b.value),
|
|
2937
2937
|
size: "sm",
|
|
2938
2938
|
class: "shrink-0",
|
|
2939
|
-
"onUpdate:modelValue": (U) => H(
|
|
2939
|
+
"onUpdate:modelValue": (U) => H(E)(y, 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
|
-
title:
|
|
2944
|
-
onClick: (U) => !e.disable && !H(
|
|
2945
|
-
}, Se(
|
|
2946
|
-
ve(g.$slots, `checkbox-${
|
|
2943
|
+
title: b.label,
|
|
2944
|
+
onClick: (U) => !e.disable && !H(k)(y, b.value) && H(E)(y, b.value, !H(O)(y, b.value))
|
|
2945
|
+
}, Se(b.label), 9, Mr),
|
|
2946
|
+
ve(g.$slots, `checkbox-${b.value}-append`, { option: b })
|
|
2947
2947
|
]),
|
|
2948
|
-
H(P)(y,
|
|
2949
|
-
(B(!0), ne(Ne, null,
|
|
2948
|
+
H(P)(y, b.value) ? (B(), ne("div", wr, [
|
|
2949
|
+
(B(!0), ne(Ne, null, be(y.actionColumns, (U) => (B(), ne("div", {
|
|
2950
2950
|
key: U,
|
|
2951
2951
|
class: "w-[56px] flex justify-center"
|
|
2952
2952
|
}, [
|
|
2953
|
-
H(i)(y,
|
|
2953
|
+
H(i)(y, b.value, U) ? (B(), De(R, {
|
|
2954
2954
|
key: 0,
|
|
2955
|
-
"model-value": H(W)(y,
|
|
2955
|
+
"model-value": H(W)(y, b.value, U) || H(w)(y, b.value, U),
|
|
2956
2956
|
value: U,
|
|
2957
|
-
disabled: e.disable || H(w)(y,
|
|
2957
|
+
disabled: e.disable || H(w)(y, b.value, U),
|
|
2958
2958
|
size: "sm",
|
|
2959
|
-
"onUpdate:modelValue": (G) => H(m)(
|
|
2960
|
-
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) :
|
|
2959
|
+
"onUpdate:modelValue": (G) => H(m)(b.value, U, G)
|
|
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
|
-
])) : (B(),
|
|
2966
|
+
])) : (B(), De(zt, {
|
|
2967
2967
|
key: 0,
|
|
2968
2968
|
"model-value": y.selectedSubjects,
|
|
2969
2969
|
options: y.options,
|
|
2970
2970
|
disable: e.disable,
|
|
2971
2971
|
title: y.label,
|
|
2972
|
-
"onUpdate:modelValue": (
|
|
2972
|
+
"onUpdate:modelValue": (b) => H(d)(y.category, b)
|
|
2973
2973
|
}, Fe({ _: 2 }, [
|
|
2974
|
-
|
|
2975
|
-
name: `checkbox-${
|
|
2976
|
-
fn: ge(({ option:
|
|
2977
|
-
ve(g.$slots, `checkbox-${
|
|
2974
|
+
be(y.options, (b) => ({
|
|
2975
|
+
name: `checkbox-${b.value}-append`,
|
|
2976
|
+
fn: ge(({ option: A }) => [
|
|
2977
|
+
ve(g.$slots, `checkbox-${b.value}-append`, { option: A })
|
|
2978
2978
|
])
|
|
2979
2979
|
}))
|
|
2980
2980
|
]), 1032, ["model-value", "options", "disable", "title", "onUpdate:modelValue"]))
|
|
@@ -2982,7 +2982,7 @@ const yr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
2982
2982
|
]);
|
|
2983
2983
|
};
|
|
2984
2984
|
}
|
|
2985
|
-
}), Fr = { class: "flex items-center" }, jr = { class: "ml-auto" }, Ur = /* @__PURE__ */
|
|
2985
|
+
}), Fr = { class: "flex items-center" }, jr = { class: "ml-auto" }, Ur = /* @__PURE__ */ Te({
|
|
2986
2986
|
__name: "CollapsibleWrapper",
|
|
2987
2987
|
props: {
|
|
2988
2988
|
title: { default: "" },
|
|
@@ -2997,20 +2997,20 @@ const yr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
2997
2997
|
function d() {
|
|
2998
2998
|
s.value && (l.value = s.value.scrollHeight);
|
|
2999
2999
|
}
|
|
3000
|
-
return
|
|
3000
|
+
return Yt(async () => {
|
|
3001
3001
|
await es(), s.value && (a = new ResizeObserver(() => {
|
|
3002
3002
|
d();
|
|
3003
3003
|
}), a.observe(s.value));
|
|
3004
|
-
}),
|
|
3004
|
+
}), An(() => {
|
|
3005
3005
|
a == null || a.disconnect();
|
|
3006
3006
|
}), (u, p) => {
|
|
3007
|
-
const
|
|
3007
|
+
const O = Ze("FmButton");
|
|
3008
3008
|
return B(), ne(Ne, null, [
|
|
3009
3009
|
se("div", { onClick: c }, [
|
|
3010
3010
|
se("div", Fr, [
|
|
3011
3011
|
ve(u.$slots, "title"),
|
|
3012
3012
|
se("div", jr, [
|
|
3013
|
-
_e(
|
|
3013
|
+
_e(O, {
|
|
3014
3014
|
icon: n.value ? "keyboard_arrow_down" : "keyboard_arrow_up",
|
|
3015
3015
|
"text-color": "neutral-gray-400",
|
|
3016
3016
|
variant: "tertiary",
|
|
@@ -3030,7 +3030,7 @@ const yr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
3030
3030
|
], 64);
|
|
3031
3031
|
};
|
|
3032
3032
|
}
|
|
3033
|
-
}), Vr = { class: "fm-typo-en-title-sm-600" },
|
|
3033
|
+
}), Vr = { class: "fm-typo-en-title-sm-600" }, Ct = "includedFuture", Cn = /* @__PURE__ */ Te({
|
|
3034
3034
|
__name: "ConditionPermission",
|
|
3035
3035
|
props: {
|
|
3036
3036
|
modelValue: {
|
|
@@ -3052,36 +3052,36 @@ const yr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
3052
3052
|
},
|
|
3053
3053
|
emits: ["update:model-value"],
|
|
3054
3054
|
setup(e, { emit: t }) {
|
|
3055
|
-
const n = e, s = t, { t: l } =
|
|
3055
|
+
const n = e, s = t, { t: l } = Je(), a = te(() => [
|
|
3056
3056
|
{
|
|
3057
3057
|
label: l("team.memberForm.permissions.includedFuture", { context: n.context }),
|
|
3058
|
-
value:
|
|
3058
|
+
value: Ct,
|
|
3059
3059
|
// Can only be selected if all other options are selected
|
|
3060
3060
|
disable: !!n.modelValue && n.options.length > n.modelValue.length
|
|
3061
3061
|
},
|
|
3062
3062
|
...n.options.filter(
|
|
3063
3063
|
(p) => p.label.toLocaleLowerCase().includes(u.value.toLocaleLowerCase())
|
|
3064
3064
|
)
|
|
3065
|
-
]), c = te(() => n.modelValue ? n.modelValue : [
|
|
3065
|
+
]), c = te(() => n.modelValue ? n.modelValue : [Ct, ...n.options.map((p) => p.value)]);
|
|
3066
3066
|
function d(p) {
|
|
3067
|
-
const
|
|
3068
|
-
s("update:model-value",
|
|
3067
|
+
const O = p.length === a.value.length;
|
|
3068
|
+
s("update:model-value", O ? null : p.filter((C) => C !== Ct));
|
|
3069
3069
|
}
|
|
3070
3070
|
const u = Ue("");
|
|
3071
|
-
return (p,
|
|
3072
|
-
const
|
|
3073
|
-
return B(),
|
|
3071
|
+
return (p, O) => {
|
|
3072
|
+
const C = Ze("fm-search");
|
|
3073
|
+
return B(), De(Ur, null, {
|
|
3074
3074
|
title: ge(() => [
|
|
3075
3075
|
se("p", Vr, Se(H(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3076
3076
|
]),
|
|
3077
3077
|
default: ge(() => [
|
|
3078
|
-
e.options.length > 1 ? (B(),
|
|
3078
|
+
e.options.length > 1 ? (B(), De(C, {
|
|
3079
3079
|
key: 0,
|
|
3080
3080
|
modelValue: u.value,
|
|
3081
|
-
"onUpdate:modelValue":
|
|
3081
|
+
"onUpdate:modelValue": O[0] || (O[0] = (E) => u.value = E),
|
|
3082
3082
|
class: "mt-16",
|
|
3083
3083
|
placeholder: H(l)("team.memberForm.permissions.search", { context: e.context })
|
|
3084
|
-
}, null, 8, ["modelValue", "placeholder"])) :
|
|
3084
|
+
}, null, 8, ["modelValue", "placeholder"])) : Le("", !0),
|
|
3085
3085
|
_e(zt, {
|
|
3086
3086
|
"model-value": c.value,
|
|
3087
3087
|
options: a.value,
|
|
@@ -3093,10 +3093,10 @@ const yr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
3093
3093
|
class: "mt-16",
|
|
3094
3094
|
"onUpdate:modelValue": d
|
|
3095
3095
|
}, Fe({ _: 2 }, [
|
|
3096
|
-
|
|
3097
|
-
name: `checkbox-${
|
|
3096
|
+
be(a.value, (E) => ({
|
|
3097
|
+
name: `checkbox-${E.value}-append`,
|
|
3098
3098
|
fn: ge(({ option: P }) => [
|
|
3099
|
-
ve(p.$slots, `checkbox-${
|
|
3099
|
+
ve(p.$slots, `checkbox-${E.value}-append`, { option: P })
|
|
3100
3100
|
])
|
|
3101
3101
|
}))
|
|
3102
3102
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3105,7 +3105,7 @@ const yr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
3105
3105
|
});
|
|
3106
3106
|
};
|
|
3107
3107
|
}
|
|
3108
|
-
}),
|
|
3108
|
+
}), At = "includedNewRole", Wr = /* @__PURE__ */ Te({
|
|
3109
3109
|
__name: "PosRolePermission",
|
|
3110
3110
|
props: {
|
|
3111
3111
|
modelValue: {
|
|
@@ -3127,26 +3127,26 @@ const yr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
3127
3127
|
},
|
|
3128
3128
|
emits: ["update:model-value"],
|
|
3129
3129
|
setup(e, { emit: t }) {
|
|
3130
|
-
const n = e, s = t, { t: l } =
|
|
3130
|
+
const n = e, s = t, { t: l } = Je(), a = te(() => {
|
|
3131
3131
|
const u = n.restaurantIds;
|
|
3132
3132
|
return [
|
|
3133
3133
|
{
|
|
3134
3134
|
label: l("team.memberForm.permissions.includedNewRole"),
|
|
3135
|
-
value:
|
|
3135
|
+
value: At,
|
|
3136
3136
|
disable: !!n.modelValue && n.roles.length > n.modelValue.length
|
|
3137
3137
|
},
|
|
3138
3138
|
...n.roles.map((p) => ({
|
|
3139
3139
|
label: p.name,
|
|
3140
3140
|
value: p._id,
|
|
3141
|
-
disable: !!u && p.restaurants.every(({ id:
|
|
3141
|
+
disable: !!u && p.restaurants.every(({ id: O }) => !u.includes(O))
|
|
3142
3142
|
}))
|
|
3143
3143
|
];
|
|
3144
|
-
}), c = te(() => n.modelValue ? n.modelValue : [
|
|
3144
|
+
}), c = te(() => n.modelValue ? n.modelValue : [At, ...n.roles.map((u) => u._id)]);
|
|
3145
3145
|
function d(u) {
|
|
3146
3146
|
const p = u.length === a.value.length;
|
|
3147
|
-
s("update:model-value", p ? null : u.filter((
|
|
3147
|
+
s("update:model-value", p ? null : u.filter((O) => O !== At));
|
|
3148
3148
|
}
|
|
3149
|
-
return (u, p) => (B(),
|
|
3149
|
+
return (u, p) => (B(), De(zt, {
|
|
3150
3150
|
"model-value": c.value,
|
|
3151
3151
|
options: a.value,
|
|
3152
3152
|
"show-intermediate": !1,
|
|
@@ -3155,10 +3155,10 @@ const yr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
3155
3155
|
title: H(l)("team.memberForm.permissions.roles"),
|
|
3156
3156
|
"onUpdate:modelValue": d
|
|
3157
3157
|
}, Fe({ _: 2 }, [
|
|
3158
|
-
|
|
3159
|
-
name: `checkbox-${
|
|
3160
|
-
fn: ge(({ option:
|
|
3161
|
-
ve(u.$slots, `checkbox-${
|
|
3158
|
+
be(a.value, (O) => ({
|
|
3159
|
+
name: `checkbox-${O.value}-append`,
|
|
3160
|
+
fn: ge(({ option: C }) => [
|
|
3161
|
+
ve(u.$slots, `checkbox-${O.value}-append`, { option: C })
|
|
3162
3162
|
])
|
|
3163
3163
|
}))
|
|
3164
3164
|
]), 1032, ["model-value", "options", "disable", "title"]));
|
|
@@ -3167,7 +3167,7 @@ const yr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
3167
3167
|
async readWarehouses() {
|
|
3168
3168
|
return os(await is().get("/warehouses"));
|
|
3169
3169
|
}
|
|
3170
|
-
}, xr = { class: "flex flex-col gap-32" },
|
|
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" }, Hr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, tl = /* @__PURE__ */ Te({
|
|
3171
3171
|
__name: "PortalPermissionEditor",
|
|
3172
3172
|
props: /* @__PURE__ */ qt({
|
|
3173
3173
|
disable: {
|
|
@@ -3184,54 +3184,54 @@ const yr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
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 } =
|
|
3187
|
+
const n = ts(e, "modelValue"), s = e, l = t, { t: a } = Je(), { fetchCustomReportPermissions: c, customReportPermissions: d } = ss();
|
|
3188
3188
|
function u(S) {
|
|
3189
|
-
return
|
|
3189
|
+
return Dt.find((T) => T.subject === S) ?? d.value.find((T) => T.subject === S);
|
|
3190
3190
|
}
|
|
3191
3191
|
const p = te(() => {
|
|
3192
|
-
const S = [...
|
|
3192
|
+
const S = [...Dt, ...d.value].filter((L) => !P.includes(L.subject)).map((L) => L.subject);
|
|
3193
3193
|
return as(
|
|
3194
|
-
s.inheritPermissions.map((
|
|
3195
|
-
...
|
|
3196
|
-
permissions:
|
|
3194
|
+
s.inheritPermissions.map((L) => ({
|
|
3195
|
+
...L,
|
|
3196
|
+
permissions: L.permissions.filter((Z) => S.includes(Z.subject))
|
|
3197
3197
|
}))
|
|
3198
|
-
).map((
|
|
3199
|
-
id:
|
|
3200
|
-
setNames:
|
|
3198
|
+
).map((L) => ({
|
|
3199
|
+
id: L.subject,
|
|
3200
|
+
setNames: L.setNames
|
|
3201
3201
|
}));
|
|
3202
|
-
}),
|
|
3203
|
-
const S = s.inheritPermissions.map((
|
|
3204
|
-
...
|
|
3205
|
-
permissions:
|
|
3206
|
-
(
|
|
3202
|
+
}), O = te(() => {
|
|
3203
|
+
const S = s.inheritPermissions.map((T) => ({
|
|
3204
|
+
...T,
|
|
3205
|
+
permissions: T.permissions.filter(
|
|
3206
|
+
(L) => L.subject === de.Subject.Business.inventory_stock
|
|
3207
3207
|
)
|
|
3208
3208
|
}));
|
|
3209
3209
|
return yt(
|
|
3210
3210
|
S,
|
|
3211
3211
|
"warehouseId",
|
|
3212
|
-
|
|
3212
|
+
k.value.map((T) => T._id)
|
|
3213
3213
|
);
|
|
3214
|
-
}),
|
|
3215
|
-
const S = s.inheritPermissions.map((
|
|
3216
|
-
...
|
|
3217
|
-
permissions:
|
|
3218
|
-
(
|
|
3214
|
+
}), C = te(() => {
|
|
3215
|
+
const S = s.inheritPermissions.map((T) => ({
|
|
3216
|
+
...T,
|
|
3217
|
+
permissions: T.permissions.filter(
|
|
3218
|
+
(L) => L.subject === de.Subject.Restaurant.restaurant
|
|
3219
3219
|
)
|
|
3220
3220
|
}));
|
|
3221
3221
|
return yt(
|
|
3222
3222
|
S,
|
|
3223
3223
|
"restaurantId",
|
|
3224
|
-
N.value.map((
|
|
3224
|
+
N.value.map((T) => T._id)
|
|
3225
3225
|
);
|
|
3226
|
-
}),
|
|
3227
|
-
const S = s.inheritPermissions.map((
|
|
3228
|
-
...
|
|
3229
|
-
permissions:
|
|
3226
|
+
}), E = te(() => {
|
|
3227
|
+
const S = s.inheritPermissions.map((T) => ({
|
|
3228
|
+
...T,
|
|
3229
|
+
permissions: T.permissions.filter((L) => L.subject === de.Subject.Business.role)
|
|
3230
3230
|
}));
|
|
3231
3231
|
return yt(
|
|
3232
3232
|
S,
|
|
3233
3233
|
"roleId",
|
|
3234
|
-
_.value.map((
|
|
3234
|
+
_.value.map((T) => T._id)
|
|
3235
3235
|
);
|
|
3236
3236
|
}), P = [
|
|
3237
3237
|
de.Subject.Business.restaurant,
|
|
@@ -3239,168 +3239,168 @@ const yr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
3239
3239
|
de.Subject.Restaurant.restaurant,
|
|
3240
3240
|
de.Subject.Business.inventory_stock
|
|
3241
3241
|
], W = te(() => {
|
|
3242
|
-
var
|
|
3243
|
-
const S = (
|
|
3244
|
-
(
|
|
3242
|
+
var T;
|
|
3243
|
+
const S = (T = n.value) == null ? void 0 : T.find(
|
|
3244
|
+
(L) => L.subject === de.Subject.Business.inventory_stock
|
|
3245
3245
|
);
|
|
3246
3246
|
return S ? S.conditions ? JSON.parse(S.conditions).warehouseId.$in : null : [];
|
|
3247
|
-
}),
|
|
3247
|
+
}), k = Ue([]), w = te(() => k.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 T = m(n.value, S);
|
|
3253
|
+
n.value = T;
|
|
3254
3254
|
}
|
|
3255
|
-
function m(S,
|
|
3256
|
-
let
|
|
3257
|
-
S.filter((
|
|
3255
|
+
function m(S, T) {
|
|
3256
|
+
let L = dt(
|
|
3257
|
+
S.filter((Z) => Z.subject !== de.Subject.Business.inventory_stock)
|
|
3258
3258
|
);
|
|
3259
|
-
if (!
|
|
3260
|
-
const
|
|
3259
|
+
if (!T || T.length > 0) {
|
|
3260
|
+
const Z = {
|
|
3261
3261
|
actions: [de.Action.manage],
|
|
3262
3262
|
subject: de.Subject.Business.inventory_stock
|
|
3263
3263
|
};
|
|
3264
|
-
|
|
3264
|
+
T && (Z.conditions = JSON.stringify({ warehouseId: { $in: T } })), L.push(Z);
|
|
3265
3265
|
}
|
|
3266
|
-
return
|
|
3266
|
+
return L;
|
|
3267
3267
|
}
|
|
3268
|
-
const { restaurants: N } = ns(), _ = ms().roles,
|
|
3268
|
+
const { restaurants: N } = ns(), _ = ms().roles, M = te(() => N.value.map((S) => ({
|
|
3269
3269
|
label: `${S.profile.code ? S.profile.code + "-" : ""}${S.profile.name}`,
|
|
3270
3270
|
value: S._id
|
|
3271
|
-
}))),
|
|
3272
|
-
function
|
|
3273
|
-
const
|
|
3274
|
-
n.value =
|
|
3271
|
+
}))), D = te(() => N.value.reduce((S, T) => (S[T._id] = _.value.filter((L) => L.restaurants.some((Z) => Z.id === T._id)).map((L) => L._id), S), {})), g = te(() => rs(n.value));
|
|
3272
|
+
function I(S) {
|
|
3273
|
+
const T = y(n.value, S);
|
|
3274
|
+
n.value = T;
|
|
3275
3275
|
}
|
|
3276
3276
|
const R = te(() => ls(n.value));
|
|
3277
|
-
function y(S,
|
|
3278
|
-
var
|
|
3279
|
-
let
|
|
3277
|
+
function y(S, T) {
|
|
3278
|
+
var Z;
|
|
3279
|
+
let L = dt(
|
|
3280
3280
|
S.filter(
|
|
3281
3281
|
(x) => x.subject !== de.Subject.Business.restaurant && x.subject !== de.Subject.Restaurant.restaurant
|
|
3282
3282
|
)
|
|
3283
3283
|
);
|
|
3284
|
-
if (!
|
|
3284
|
+
if (!T || T.length > 0) {
|
|
3285
3285
|
const {
|
|
3286
3286
|
category: x,
|
|
3287
3287
|
showByFeatureFlag: j,
|
|
3288
3288
|
...q
|
|
3289
3289
|
} = ds.restaurant;
|
|
3290
|
-
|
|
3291
|
-
const
|
|
3290
|
+
L.push(q);
|
|
3291
|
+
const J = {
|
|
3292
3292
|
actions: [de.Action.manage],
|
|
3293
3293
|
subject: de.Subject.Restaurant.restaurant
|
|
3294
3294
|
};
|
|
3295
|
-
|
|
3295
|
+
T && (J.conditions = JSON.stringify({ restaurantId: { $in: T } })), L.push(J);
|
|
3296
3296
|
}
|
|
3297
|
-
if (
|
|
3297
|
+
if (T) {
|
|
3298
3298
|
const x = [
|
|
3299
|
-
...new Set(
|
|
3299
|
+
...new Set(T.map((q) => D.value[q]).flatMap((q) => q))
|
|
3300
3300
|
], j = _.value.map((q) => q._id);
|
|
3301
|
-
x.length !== j.length && (
|
|
3302
|
-
|
|
3303
|
-
(
|
|
3301
|
+
x.length !== j.length && (L = A(
|
|
3302
|
+
L,
|
|
3303
|
+
(Z = R.value || j) == null ? void 0 : Z.filter((q) => x.includes(q))
|
|
3304
3304
|
));
|
|
3305
3305
|
}
|
|
3306
|
-
return
|
|
3306
|
+
return L;
|
|
3307
3307
|
}
|
|
3308
|
-
function
|
|
3309
|
-
const
|
|
3310
|
-
n.value =
|
|
3308
|
+
function b(S) {
|
|
3309
|
+
const T = A(n.value, S);
|
|
3310
|
+
n.value = T;
|
|
3311
3311
|
}
|
|
3312
|
-
function
|
|
3313
|
-
let
|
|
3314
|
-
S.filter((
|
|
3312
|
+
function A(S, T) {
|
|
3313
|
+
let L = dt(
|
|
3314
|
+
S.filter((Z) => Z.subject !== de.Subject.Business.role)
|
|
3315
3315
|
);
|
|
3316
|
-
if (
|
|
3317
|
-
const
|
|
3316
|
+
if (T && T.length > 0) {
|
|
3317
|
+
const Z = {
|
|
3318
3318
|
actions: [de.Action.manage],
|
|
3319
3319
|
subject: de.Subject.Business.role,
|
|
3320
|
-
conditions: JSON.stringify({ roleId: { $in:
|
|
3320
|
+
conditions: JSON.stringify({ roleId: { $in: T } })
|
|
3321
3321
|
};
|
|
3322
|
-
|
|
3322
|
+
L.push(Z);
|
|
3323
3323
|
}
|
|
3324
|
-
return
|
|
3324
|
+
return L;
|
|
3325
3325
|
}
|
|
3326
|
-
|
|
3326
|
+
Yt(async () => {
|
|
3327
3327
|
await Promise.all([
|
|
3328
|
-
Gr.readWarehouses().then((S) =>
|
|
3328
|
+
Gr.readWarehouses().then((S) => k.value = S),
|
|
3329
3329
|
c()
|
|
3330
3330
|
]);
|
|
3331
3331
|
});
|
|
3332
|
-
const U = te(() =>
|
|
3332
|
+
const U = te(() => Tt(
|
|
3333
3333
|
n.value,
|
|
3334
|
-
|
|
3335
|
-
).filter((
|
|
3336
|
-
const
|
|
3337
|
-
return (
|
|
3338
|
-
}).map((
|
|
3339
|
-
if (
|
|
3340
|
-
const
|
|
3341
|
-
if (!
|
|
3342
|
-
const x = u(
|
|
3343
|
-
if (!x) return
|
|
3334
|
+
kt
|
|
3335
|
+
).filter((L) => {
|
|
3336
|
+
const Z = L.source;
|
|
3337
|
+
return (Z == null ? void 0 : Z.type) !== "systemPermissionSet" ? !0 : L.actions.includes("manage");
|
|
3338
|
+
}).map((L) => {
|
|
3339
|
+
if (L.inverted) return L;
|
|
3340
|
+
const Z = L.actions;
|
|
3341
|
+
if (!Z.includes("manage")) return L;
|
|
3342
|
+
const x = u(L.subject);
|
|
3343
|
+
if (!x) return L;
|
|
3344
3344
|
const j = x.actions;
|
|
3345
|
-
return j.length <= 1 || j.filter((
|
|
3345
|
+
return j.length <= 1 || j.filter((J) => !Z.includes(J)).length === 0 ? L : { ...L, actions: [...j] };
|
|
3346
3346
|
}));
|
|
3347
3347
|
function G(S) {
|
|
3348
|
-
const
|
|
3348
|
+
const T = new Set(
|
|
3349
3349
|
U.value.filter((j) => !j.inverted).map((j) => j.subject)
|
|
3350
|
-
),
|
|
3350
|
+
), L = new Set(
|
|
3351
3351
|
S.filter((j) => !j.inverted).map((j) => j.subject)
|
|
3352
|
-
),
|
|
3352
|
+
), Z = new Set(
|
|
3353
3353
|
n.value.filter((j) => !j.inverted).map((j) => j.subject)
|
|
3354
3354
|
);
|
|
3355
3355
|
let x = [...n.value];
|
|
3356
|
-
for (const j of
|
|
3357
|
-
|
|
3356
|
+
for (const j of T)
|
|
3357
|
+
L.has(j) || (Z.has(j) && (x = x.filter((J) => J.subject !== j)), (!Z.has(j) || Tt(
|
|
3358
3358
|
x,
|
|
3359
|
-
|
|
3359
|
+
kt
|
|
3360
3360
|
).some(
|
|
3361
|
-
(
|
|
3362
|
-
)) && !x.some((
|
|
3363
|
-
for (const j of
|
|
3364
|
-
if (!
|
|
3365
|
-
const q = x.some((
|
|
3366
|
-
if (x = x.filter((
|
|
3367
|
-
const
|
|
3368
|
-
(
|
|
3369
|
-
),
|
|
3370
|
-
if (
|
|
3371
|
-
const { category:
|
|
3372
|
-
x.push({ ...ae, actions:
|
|
3361
|
+
(J) => J.subject === j && !J.inverted && J.actions.includes("manage")
|
|
3362
|
+
)) && !x.some((J) => J.subject === j && J.inverted) && x.push({ subject: j, actions: ["manage"], inverted: !0 }));
|
|
3363
|
+
for (const j of L)
|
|
3364
|
+
if (!T.has(j)) {
|
|
3365
|
+
const q = x.some((J) => J.subject === j && J.inverted);
|
|
3366
|
+
if (x = x.filter((J) => !(J.subject === j && J.inverted)), !q && !Z.has(j)) {
|
|
3367
|
+
const J = S.find(
|
|
3368
|
+
(Y) => Y.subject === j && !Y.inverted
|
|
3369
|
+
), he = u(j);
|
|
3370
|
+
if (he && J) {
|
|
3371
|
+
const { category: Y, showByFeatureFlag: le, ...ae } = he;
|
|
3372
|
+
x.push({ ...ae, actions: J.actions });
|
|
3373
3373
|
}
|
|
3374
3374
|
}
|
|
3375
3375
|
}
|
|
3376
|
-
for (const j of
|
|
3377
|
-
if (!
|
|
3376
|
+
for (const j of L) {
|
|
3377
|
+
if (!T.has(j)) continue;
|
|
3378
3378
|
const q = U.value.find(
|
|
3379
3379
|
(ae) => ae.subject === j && !ae.inverted
|
|
3380
|
-
),
|
|
3381
|
-
if (!q ||
|
|
3382
|
-
const
|
|
3383
|
-
if (
|
|
3380
|
+
), J = S.find((ae) => ae.subject === j && !ae.inverted);
|
|
3381
|
+
if (!q || !J) continue;
|
|
3382
|
+
const he = new Set(q.actions), Y = new Set(J.actions);
|
|
3383
|
+
if (he.size === Y.size && [...he].every((ae) => Y.has(ae)))
|
|
3384
3384
|
continue;
|
|
3385
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
|
-
actions: Array.from(
|
|
3389
|
+
actions: Array.from(Y)
|
|
3390
3390
|
};
|
|
3391
3391
|
else {
|
|
3392
3392
|
const ae = u(j);
|
|
3393
3393
|
if (ae) {
|
|
3394
|
-
const { category:
|
|
3395
|
-
x.push({ ...Ke, actions: Array.from(
|
|
3394
|
+
const { category: Ee, showByFeatureFlag: $e, ...Ke } = ae;
|
|
3395
|
+
x.push({ ...Ke, actions: Array.from(Y) });
|
|
3396
3396
|
}
|
|
3397
3397
|
}
|
|
3398
|
-
|
|
3398
|
+
he.has("manage") && !Y.has("manage") && Tt(
|
|
3399
3399
|
x,
|
|
3400
|
-
|
|
3400
|
+
kt
|
|
3401
3401
|
).some(
|
|
3402
|
-
(
|
|
3403
|
-
) && !x.some((
|
|
3402
|
+
(Ee) => Ee.subject === j && !Ee.inverted && Ee.actions.includes("manage")
|
|
3403
|
+
) && !x.some((Ee) => Ee.subject === j && Ee.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,48 +3410,48 @@ const yr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
3410
3410
|
l("permissionChanged", S);
|
|
3411
3411
|
},
|
|
3412
3412
|
{ deep: !0 }
|
|
3413
|
-
), (S,
|
|
3414
|
-
se("div",
|
|
3413
|
+
), (S, T) => (B(), ne("div", xr, [
|
|
3414
|
+
se("div", Yr, [
|
|
3415
3415
|
_e(Pr, {
|
|
3416
3416
|
"model-value": U.value,
|
|
3417
3417
|
"excluded-subjects": P,
|
|
3418
3418
|
"additional-permissions": H(d),
|
|
3419
3419
|
"onUpdate:modelValue": G
|
|
3420
3420
|
}, Fe({ _: 2 }, [
|
|
3421
|
-
|
|
3422
|
-
name: `checkbox-${
|
|
3421
|
+
be(p.value, (L) => ({
|
|
3422
|
+
name: `checkbox-${L.id}-append`,
|
|
3423
3423
|
fn: ge(() => [
|
|
3424
|
-
_e(ct, { item:
|
|
3424
|
+
_e(ct, { item: L }, null, 8, ["item"])
|
|
3425
3425
|
])
|
|
3426
3426
|
}))
|
|
3427
3427
|
]), 1032, ["model-value", "additional-permissions"])
|
|
3428
3428
|
]),
|
|
3429
|
-
se("div",
|
|
3430
|
-
_e(
|
|
3429
|
+
se("div", Zr, [
|
|
3430
|
+
_e(Cn, {
|
|
3431
3431
|
"model-value": W.value,
|
|
3432
3432
|
options: w.value,
|
|
3433
3433
|
context: H(a)("team.labels.warehouse"),
|
|
3434
3434
|
"onUpdate:modelValue": i
|
|
3435
3435
|
}, Fe({ _: 2 }, [
|
|
3436
|
-
|
|
3437
|
-
name: `checkbox-${
|
|
3436
|
+
be(O.value, (L) => ({
|
|
3437
|
+
name: `checkbox-${L.id}-append`,
|
|
3438
3438
|
fn: ge(() => [
|
|
3439
|
-
_e(ct, { item:
|
|
3439
|
+
_e(ct, { item: L }, null, 8, ["item"])
|
|
3440
3440
|
])
|
|
3441
3441
|
}))
|
|
3442
3442
|
]), 1032, ["model-value", "options", "context"])
|
|
3443
3443
|
]),
|
|
3444
3444
|
se("div", Xr, [
|
|
3445
|
-
_e(
|
|
3445
|
+
_e(Cn, {
|
|
3446
3446
|
"model-value": g.value,
|
|
3447
|
-
options:
|
|
3447
|
+
options: M.value,
|
|
3448
3448
|
context: H(a)("team.labels.restaurant"),
|
|
3449
|
-
"onUpdate:modelValue":
|
|
3449
|
+
"onUpdate:modelValue": I
|
|
3450
3450
|
}, Fe({ _: 2 }, [
|
|
3451
|
-
|
|
3452
|
-
name: `checkbox-${
|
|
3451
|
+
be(C.value, (L) => ({
|
|
3452
|
+
name: `checkbox-${L.id}-append`,
|
|
3453
3453
|
fn: ge(() => [
|
|
3454
|
-
_e(ct, { item:
|
|
3454
|
+
_e(ct, { item: L }, null, 8, ["item"])
|
|
3455
3455
|
])
|
|
3456
3456
|
}))
|
|
3457
3457
|
]), 1032, ["model-value", "options", "context"])
|
|
@@ -3461,12 +3461,12 @@ const yr = { class: "flex flex-col gap-16" }, kr = {
|
|
|
3461
3461
|
roles: H(_),
|
|
3462
3462
|
"model-value": R.value,
|
|
3463
3463
|
"restaurant-ids": g.value,
|
|
3464
|
-
"onUpdate:modelValue":
|
|
3464
|
+
"onUpdate:modelValue": b
|
|
3465
3465
|
}, Fe({ _: 2 }, [
|
|
3466
|
-
|
|
3467
|
-
name: `checkbox-${
|
|
3466
|
+
be(E.value, (L) => ({
|
|
3467
|
+
name: `checkbox-${L.id}-append`,
|
|
3468
3468
|
fn: ge(() => [
|
|
3469
|
-
_e(ct, { item:
|
|
3469
|
+
_e(ct, { item: L }, null, 8, ["item"])
|
|
3470
3470
|
])
|
|
3471
3471
|
}))
|
|
3472
3472
|
]), 1032, ["roles", "model-value", "restaurant-ids"])
|