@feedmepos/mf-hrm-portal 2.0.17-dev.3 → 2.0.17-dev.5
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-Dl3Nmf00.js +1011 -0
- package/dist/EmployeeList-DBd_rVW2.js +831 -0
- package/dist/{Main-Dkr5lzbv.js → Main-CQ3KwxDY.js} +1368 -1371
- package/dist/{Main--tejoyEP.js → Main-pTgqNncY.js} +125 -125
- package/dist/{Main-BNXKItvX.js → Main-w0XUUaBp.js} +6 -6
- package/dist/PermissionSetList-B8qNOWH6.js +347 -0
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BBsaxaXu.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C9VUjAu_.js} +1064 -1060
- package/dist/{RoleList-SZCgvYvC.js → RoleList-DMFJsUZv.js} +202 -200
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +16 -0
- package/dist/TeamMemberList-BLRTfKLz.js +1031 -0
- package/dist/{TimesheetList-D-3k0Uad.js → TimesheetList-Bwp9_xHe.js} +6 -6
- package/dist/{app-BjXuSCis.js → app-COJbSNM4.js} +1975 -1440
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-z-vrgFCL.js → dayjs.min-CcBi6N-K.js} +1 -1
- package/dist/{employee-DAqAMupR.js → employee-xiV0LfnL.js} +3 -3
- package/dist/{iteration-Cp1eSTJA.js → iteration-JOKbtlLf.js} +1 -1
- package/dist/{lodash-CXLZQQp8.js → lodash-D5xlVzib.js} +1 -1
- package/dist/rule-3sXHiW0y.js +994 -0
- package/dist/src/api/audit-log/index.d.ts +9 -0
- package/dist/src/api/report-query/index.d.ts +2 -2
- package/dist/src/components/Skeleton.vue.d.ts +7 -0
- package/dist/src/composables/useBasePermission.d.ts +1 -0
- package/dist/src/stores/team.d.ts +6 -6
- package/dist/src/types/team.d.ts +1 -1
- package/dist/src/views/hr/locales/index.d.ts +172 -0
- package/dist/src/views/team/components/BasePermission.vue.d.ts +1 -1
- package/dist/src/views/team/locales/index.d.ts +312 -0
- package/dist/style.css +1 -1
- package/dist/{team-CnQ_rIx2.js → team-CyNektSD.js} +1 -1
- package/dist/{timesheet-BlPhOifI.js → timesheet-DkD3AysG.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-BVnrWyPF.js → useAppStore-CvmsaYSG.js} +1 -1
- package/dist/{useLoading-7ia-Bps7.js → useLoading-4TNmhm5N.js} +1 -1
- package/dist/useReportPermissions-CWMFFb8E.js +70 -0
- package/package.json +2 -2
- package/dist/AuditLogList-C6qAeY5g.js +0 -954
- package/dist/EmployeeList-COtXtTqG.js +0 -827
- package/dist/PermissionSetList-B_Sdvbu7.js +0 -340
- package/dist/TeamMemberList-Dk5HeFfQ.js +0 -1008
- package/dist/rule-vBxopbM_.js +0 -990
- package/dist/useReportPermissions-C8HMek35.js +0 -60
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { getCurrentInstance as xt, inject as
|
|
2
|
-
import { useI18n as
|
|
1
|
+
import { getCurrentInstance as xt, inject as $n, ref as bt, shallowRef as zn, computed as q, watch as St, onMounted as Rn, onUnmounted as Kn, defineComponent as Le, h as An, createVNode as _e, Text as Qn, Fragment as Te, resolveComponent as Qe, createBlock as De, openBlock as Q, withCtx as pe, createElementVNode as oe, createElementBlock as le, toDisplayString as Ie, unref as H, renderList as ge, toRef as Kt, normalizeStyle as mt, renderSlot as ke, createCommentVNode as Se, createTextVNode as qn, useSlots as es, normalizeClass as at, createSlots as xe, mergeModels as Qt, useModel as ts } from "vue";
|
|
2
|
+
import { useI18n as Be, useCoreStore as ns } from "@feedmepos/mf-common";
|
|
3
3
|
import "@vue/devtools-api";
|
|
4
|
-
import { p as Dt, d as ss, v as as, w as kt, x as rs, j as ls, $ as
|
|
4
|
+
import { p as Dt, d as ss, v as as, w as kt, x as rs, j as ls, $ as Lt } from "./rule-3sXHiW0y.js";
|
|
5
5
|
import { _ as Zt } from "./CollapsibleWrapper.vue_vue_type_script_setup_true_lang-BLJlmPVa.js";
|
|
6
|
-
import { u as os,
|
|
7
|
-
import { d as dt, g as us, b as ms } from "./iteration-
|
|
8
|
-
import { u as ds } from "./useAppStore-
|
|
6
|
+
import { u as os, d as is, i as ue, C as cs, P as Ot } from "./app-COJbSNM4.js";
|
|
7
|
+
import { d as dt, g as us, b as ms } from "./iteration-JOKbtlLf.js";
|
|
8
|
+
import { u as ds } from "./useAppStore-CvmsaYSG.js";
|
|
9
9
|
/*!
|
|
10
10
|
* shared v10.0.5
|
|
11
11
|
* (c) 2024 kazuya kawaguchi
|
|
12
12
|
* Released under the MIT License.
|
|
13
13
|
*/
|
|
14
|
-
const qt = typeof window < "u", je = (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"),
|
|
14
|
+
const qt = typeof window < "u", je = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), fs = (e, t, n) => _s({ l: e, k: t, s: n }), _s = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), me = (e) => typeof e == "number" && isFinite(e), ps = (e) => Xt(e) === "[object Date]", _t = (e) => Xt(e) === "[object RegExp]", ht = (e) => $(e) && Object.keys(e).length === 0, de = Object.assign, bs = Object.create, ee = (e = null) => bs(e);
|
|
15
15
|
let en;
|
|
16
|
-
const Fe = () => en || (en = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global :
|
|
16
|
+
const Fe = () => en || (en = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : ee());
|
|
17
17
|
function tn(e) {
|
|
18
18
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
19
19
|
}
|
|
20
20
|
const hs = Object.prototype.hasOwnProperty;
|
|
21
|
-
function
|
|
21
|
+
function Ne(e, t) {
|
|
22
22
|
return hs.call(e, t);
|
|
23
23
|
}
|
|
24
|
-
const
|
|
25
|
-
function
|
|
24
|
+
const ce = Array.isArray, se = (e) => typeof e == "function", P = (e) => typeof e == "string", ie = (e) => typeof e == "boolean", z = (e) => e !== null && typeof e == "object", gs = (e) => z(e) && se(e.then) && se(e.catch), Sn = Object.prototype.toString, Xt = (e) => Sn.call(e), $ = (e) => Xt(e) === "[object Object]", vs = (e) => e == null ? "" : ce(e) || $(e) && e.toString === Sn ? JSON.stringify(e, null, 2) : String(e);
|
|
25
|
+
function Yt(e, t = "") {
|
|
26
26
|
return e.reduce((n, s, l) => l === 0 ? n + s : n + t + s, "");
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function Es(e, t) {
|
|
29
29
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
30
30
|
}
|
|
31
|
-
const rt = (e) => !
|
|
31
|
+
const rt = (e) => !z(e) || ce(e);
|
|
32
32
|
function ft(e, t) {
|
|
33
33
|
if (rt(e) || rt(t))
|
|
34
34
|
throw new Error("Invalid value");
|
|
@@ -36,11 +36,11 @@ function ft(e, t) {
|
|
|
36
36
|
for (; n.length; ) {
|
|
37
37
|
const { src: s, des: l } = n.pop();
|
|
38
38
|
Object.keys(s).forEach((a) => {
|
|
39
|
-
a !== "__proto__" && (
|
|
39
|
+
a !== "__proto__" && (z(s[a]) && !z(l[a]) && (l[a] = Array.isArray(s[a]) ? [] : ee()), rt(l[a]) || rt(s[a]) ? l[a] = s[a] : n.push({ src: s[a], des: l[a] }));
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Is(e, t, n) {
|
|
44
44
|
return { line: e, column: t, offset: n };
|
|
45
45
|
}
|
|
46
46
|
function Mt(e, t, n) {
|
|
@@ -71,48 +71,48 @@ function gt(e, t, n = {}) {
|
|
|
71
71
|
function ys(e) {
|
|
72
72
|
throw e;
|
|
73
73
|
}
|
|
74
|
-
const
|
|
75
|
-
`, ks = "\u2028",
|
|
76
|
-
function
|
|
74
|
+
const Oe = " ", Ts = "\r", be = `
|
|
75
|
+
`, ks = "\u2028", Ls = "\u2029";
|
|
76
|
+
function Os(e) {
|
|
77
77
|
const t = e;
|
|
78
78
|
let n = 0, s = 1, l = 1, a = 0;
|
|
79
|
-
const c = (
|
|
79
|
+
const c = (E) => t[E] === Ts && t[E + 1] === be, u = (E) => t[E] === be, m = (E) => t[E] === Ls, p = (E) => t[E] === ks, y = (E) => c(E) || u(E) || m(E) || p(E), O = () => n, L = () => s, w = () => l, V = () => a, A = (E) => c(E) || m(E) || p(E) ? be : t[E], D = () => A(n), i = () => A(n + a);
|
|
80
80
|
function d() {
|
|
81
81
|
return a = 0, y(n) && (s++, l = 0), c(n) && n++, n++, l++, t[n];
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function T() {
|
|
84
84
|
return c(n + a) && a++, a++, t[n + a];
|
|
85
85
|
}
|
|
86
86
|
function _() {
|
|
87
87
|
n = 0, s = 1, l = 1, a = 0;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
a =
|
|
89
|
+
function M(E = 0) {
|
|
90
|
+
a = E;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
const
|
|
94
|
-
for (;
|
|
92
|
+
function S() {
|
|
93
|
+
const E = n + a;
|
|
94
|
+
for (; E !== n; )
|
|
95
95
|
d();
|
|
96
96
|
a = 0;
|
|
97
97
|
}
|
|
98
98
|
return {
|
|
99
|
-
index:
|
|
100
|
-
line:
|
|
99
|
+
index: O,
|
|
100
|
+
line: L,
|
|
101
101
|
column: w,
|
|
102
102
|
peekOffset: V,
|
|
103
|
-
charAt:
|
|
104
|
-
currentChar:
|
|
103
|
+
charAt: A,
|
|
104
|
+
currentChar: D,
|
|
105
105
|
currentPeek: i,
|
|
106
106
|
next: d,
|
|
107
|
-
peek:
|
|
107
|
+
peek: T,
|
|
108
108
|
reset: _,
|
|
109
|
-
resetPeek:
|
|
110
|
-
skipToPeek:
|
|
109
|
+
resetPeek: M,
|
|
110
|
+
skipToPeek: S
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
113
|
const Ae = void 0, Cs = ".", nn = "'", Rs = "tokenizer";
|
|
114
114
|
function As(e, t = {}) {
|
|
115
|
-
const n = t.location !== !1, s =
|
|
115
|
+
const n = t.location !== !1, s = Os(e), l = () => s.index(), a = () => Is(s.line(), s.column(), s.index()), c = a(), u = l(), m = {
|
|
116
116
|
currentType: 13,
|
|
117
117
|
offset: u,
|
|
118
118
|
startLoc: c,
|
|
@@ -125,37 +125,37 @@ function As(e, t = {}) {
|
|
|
125
125
|
inLinked: !1,
|
|
126
126
|
text: ""
|
|
127
127
|
}, p = () => m, { onError: y } = t;
|
|
128
|
-
function
|
|
129
|
-
const
|
|
128
|
+
function O(r, o, b, ...U) {
|
|
129
|
+
const ae = p();
|
|
130
130
|
if (o.column += b, o.offset += b, y) {
|
|
131
|
-
const X = n ? Mt(
|
|
131
|
+
const X = n ? Mt(ae.startLoc, o) : null, f = gt(r, X, {
|
|
132
132
|
domain: Rs,
|
|
133
133
|
args: U
|
|
134
134
|
});
|
|
135
135
|
y(f);
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function L(r, o, b) {
|
|
139
139
|
r.endLoc = a(), r.currentType = o;
|
|
140
140
|
const U = { type: o };
|
|
141
141
|
return n && (U.loc = Mt(r.startLoc, r.endLoc)), b != null && (U.value = b), U;
|
|
142
142
|
}
|
|
143
|
-
const w = (r) =>
|
|
143
|
+
const w = (r) => L(
|
|
144
144
|
r,
|
|
145
145
|
13
|
|
146
146
|
/* TokenTypes.EOF */
|
|
147
147
|
);
|
|
148
148
|
function V(r, o) {
|
|
149
|
-
return r.currentChar() === o ? (r.next(), o) : (
|
|
149
|
+
return r.currentChar() === o ? (r.next(), o) : (O(K.EXPECTED_TOKEN, a(), 0, o), "");
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function A(r) {
|
|
152
152
|
let o = "";
|
|
153
|
-
for (; r.currentPeek() ===
|
|
153
|
+
for (; r.currentPeek() === Oe || r.currentPeek() === be; )
|
|
154
154
|
o += r.currentPeek(), r.peek();
|
|
155
155
|
return o;
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
const o =
|
|
157
|
+
function D(r) {
|
|
158
|
+
const o = A(r);
|
|
159
159
|
return r.skipToPeek(), o;
|
|
160
160
|
}
|
|
161
161
|
function i(r) {
|
|
@@ -172,11 +172,11 @@ function As(e, t = {}) {
|
|
|
172
172
|
const o = r.charCodeAt(0);
|
|
173
173
|
return o >= 48 && o <= 57;
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function T(r, o) {
|
|
176
176
|
const { currentType: b } = o;
|
|
177
177
|
if (b !== 2)
|
|
178
178
|
return !1;
|
|
179
|
-
|
|
179
|
+
A(r);
|
|
180
180
|
const U = i(r.currentPeek());
|
|
181
181
|
return r.resetPeek(), U;
|
|
182
182
|
}
|
|
@@ -184,65 +184,65 @@ function As(e, t = {}) {
|
|
|
184
184
|
const { currentType: b } = o;
|
|
185
185
|
if (b !== 2)
|
|
186
186
|
return !1;
|
|
187
|
-
|
|
188
|
-
const U = r.currentPeek() === "-" ? r.peek() : r.currentPeek(),
|
|
189
|
-
return r.resetPeek(),
|
|
187
|
+
A(r);
|
|
188
|
+
const U = r.currentPeek() === "-" ? r.peek() : r.currentPeek(), ae = d(U);
|
|
189
|
+
return r.resetPeek(), ae;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function M(r, o) {
|
|
192
192
|
const { currentType: b } = o;
|
|
193
193
|
if (b !== 2)
|
|
194
194
|
return !1;
|
|
195
|
-
|
|
195
|
+
A(r);
|
|
196
196
|
const U = r.currentPeek() === nn;
|
|
197
197
|
return r.resetPeek(), U;
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function S(r, o) {
|
|
200
200
|
const { currentType: b } = o;
|
|
201
201
|
if (b !== 7)
|
|
202
202
|
return !1;
|
|
203
|
-
|
|
203
|
+
A(r);
|
|
204
204
|
const U = r.currentPeek() === ".";
|
|
205
205
|
return r.resetPeek(), U;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function E(r, o) {
|
|
208
208
|
const { currentType: b } = o;
|
|
209
209
|
if (b !== 8)
|
|
210
210
|
return !1;
|
|
211
|
-
|
|
211
|
+
A(r);
|
|
212
212
|
const U = i(r.currentPeek());
|
|
213
213
|
return r.resetPeek(), U;
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function J(r, o) {
|
|
216
216
|
const { currentType: b } = o;
|
|
217
217
|
if (!(b === 7 || b === 11))
|
|
218
218
|
return !1;
|
|
219
|
-
|
|
219
|
+
A(r);
|
|
220
220
|
const U = r.currentPeek() === ":";
|
|
221
221
|
return r.resetPeek(), U;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function g(r, o) {
|
|
224
224
|
const { currentType: b } = o;
|
|
225
225
|
if (b !== 9)
|
|
226
226
|
return !1;
|
|
227
227
|
const U = () => {
|
|
228
228
|
const X = r.currentPeek();
|
|
229
|
-
return X === "{" ? i(r.peek()) : X === "@" || X === "|" || X === ":" || X === "." || X ===
|
|
230
|
-
},
|
|
231
|
-
return r.resetPeek(),
|
|
229
|
+
return X === "{" ? i(r.peek()) : X === "@" || X === "|" || X === ":" || X === "." || X === Oe || !X ? !1 : X === be ? (r.peek(), U()) : C(r, !1);
|
|
230
|
+
}, ae = U();
|
|
231
|
+
return r.resetPeek(), ae;
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
|
|
233
|
+
function h(r) {
|
|
234
|
+
A(r);
|
|
235
235
|
const o = r.currentPeek() === "|";
|
|
236
236
|
return r.resetPeek(), o;
|
|
237
237
|
}
|
|
238
238
|
function C(r, o = !0) {
|
|
239
|
-
const b = (
|
|
239
|
+
const b = (ae = !1, X = "") => {
|
|
240
240
|
const f = r.currentPeek();
|
|
241
|
-
return f === "{" || f === "@" || !f ?
|
|
241
|
+
return f === "{" || f === "@" || !f ? ae : f === "|" ? !(X === Oe || X === be) : f === Oe ? (r.peek(), b(!0, Oe)) : f === be ? (r.peek(), b(!0, be)) : !0;
|
|
242
242
|
}, U = b();
|
|
243
243
|
return o && r.resetPeek(), U;
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function I(r, o) {
|
|
246
246
|
const b = r.currentChar();
|
|
247
247
|
return b === Ae ? Ae : o(b) ? (r.next(), b) : null;
|
|
248
248
|
}
|
|
@@ -254,10 +254,10 @@ function As(e, t = {}) {
|
|
|
254
254
|
o === 95 || // _
|
|
255
255
|
o === 36;
|
|
256
256
|
}
|
|
257
|
-
function
|
|
258
|
-
return
|
|
257
|
+
function x(r) {
|
|
258
|
+
return I(r, F);
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function N(r) {
|
|
261
261
|
const o = r.charCodeAt(0);
|
|
262
262
|
return o >= 97 && o <= 122 || // a-z
|
|
263
263
|
o >= 65 && o <= 90 || // A-Z
|
|
@@ -266,42 +266,42 @@ function As(e, t = {}) {
|
|
|
266
266
|
o === 36 || // $
|
|
267
267
|
o === 45;
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
return
|
|
269
|
+
function R(r) {
|
|
270
|
+
return I(r, N);
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function v(r) {
|
|
273
273
|
const o = r.charCodeAt(0);
|
|
274
274
|
return o >= 48 && o <= 57;
|
|
275
275
|
}
|
|
276
|
-
function G(r) {
|
|
277
|
-
return E(r, N);
|
|
278
|
-
}
|
|
279
276
|
function W(r) {
|
|
277
|
+
return I(r, v);
|
|
278
|
+
}
|
|
279
|
+
function G(r) {
|
|
280
280
|
const o = r.charCodeAt(0);
|
|
281
281
|
return o >= 48 && o <= 57 || // 0-9
|
|
282
282
|
o >= 65 && o <= 70 || // A-F
|
|
283
283
|
o >= 97 && o <= 102;
|
|
284
284
|
}
|
|
285
285
|
function j(r) {
|
|
286
|
-
return
|
|
286
|
+
return I(r, G);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function te(r) {
|
|
289
289
|
let o = "", b = "";
|
|
290
|
-
for (; o =
|
|
290
|
+
for (; o = W(r); )
|
|
291
291
|
b += o;
|
|
292
292
|
return b;
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function Y(r) {
|
|
295
295
|
let o = "";
|
|
296
296
|
for (; ; ) {
|
|
297
297
|
const b = r.currentChar();
|
|
298
298
|
if (b === "{" || b === "}" || b === "@" || b === "|" || !b)
|
|
299
299
|
break;
|
|
300
|
-
if (b ===
|
|
300
|
+
if (b === Oe || b === be)
|
|
301
301
|
if (C(r))
|
|
302
302
|
o += b, r.next();
|
|
303
303
|
else {
|
|
304
|
-
if (
|
|
304
|
+
if (h(r))
|
|
305
305
|
break;
|
|
306
306
|
o += b, r.next();
|
|
307
307
|
}
|
|
@@ -311,29 +311,29 @@ function As(e, t = {}) {
|
|
|
311
311
|
return o;
|
|
312
312
|
}
|
|
313
313
|
function he(r) {
|
|
314
|
-
|
|
314
|
+
D(r);
|
|
315
315
|
let o = "", b = "";
|
|
316
|
-
for (; o =
|
|
316
|
+
for (; o = R(r); )
|
|
317
317
|
b += o;
|
|
318
|
-
return r.currentChar() === Ae &&
|
|
318
|
+
return r.currentChar() === Ae && O(K.UNTERMINATED_CLOSING_BRACE, a(), 0), b;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
321
|
-
|
|
320
|
+
function fe(r) {
|
|
321
|
+
D(r);
|
|
322
322
|
let o = "";
|
|
323
|
-
return r.currentChar() === "-" ? (r.next(), o += `-${
|
|
323
|
+
return r.currentChar() === "-" ? (r.next(), o += `-${te(r)}`) : o += te(r), r.currentChar() === Ae && O(K.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function B(r) {
|
|
326
326
|
return r !== nn && r !== be;
|
|
327
327
|
}
|
|
328
|
-
function
|
|
329
|
-
|
|
328
|
+
function Z(r) {
|
|
329
|
+
D(r), V(r, "'");
|
|
330
330
|
let o = "", b = "";
|
|
331
|
-
for (; o =
|
|
332
|
-
o === "\\" ? b +=
|
|
331
|
+
for (; o = I(r, B); )
|
|
332
|
+
o === "\\" ? b += Ee(r) : b += o;
|
|
333
333
|
const U = r.currentChar();
|
|
334
|
-
return U === be || U === Ae ? (
|
|
334
|
+
return U === be || U === Ae ? (O(K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), U === be && (r.next(), V(r, "'")), b) : (V(r, "'"), b);
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function Ee(r) {
|
|
337
337
|
const o = r.currentChar();
|
|
338
338
|
switch (o) {
|
|
339
339
|
case "\\":
|
|
@@ -344,87 +344,87 @@ function As(e, t = {}) {
|
|
|
344
344
|
case "U":
|
|
345
345
|
return He(r, o, 6);
|
|
346
346
|
default:
|
|
347
|
-
return
|
|
347
|
+
return O(K.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
function He(r, o, b) {
|
|
351
351
|
V(r, o);
|
|
352
352
|
let U = "";
|
|
353
|
-
for (let
|
|
353
|
+
for (let ae = 0; ae < b; ae++) {
|
|
354
354
|
const X = j(r);
|
|
355
355
|
if (!X) {
|
|
356
|
-
|
|
356
|
+
O(K.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${U}${r.currentChar()}`);
|
|
357
357
|
break;
|
|
358
358
|
}
|
|
359
359
|
U += X;
|
|
360
360
|
}
|
|
361
361
|
return `\\${o}${U}`;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
return r !== "{" && r !== "}" && r !==
|
|
363
|
+
function Je(r) {
|
|
364
|
+
return r !== "{" && r !== "}" && r !== Oe && r !== be;
|
|
365
365
|
}
|
|
366
|
-
function
|
|
367
|
-
|
|
366
|
+
function It(r) {
|
|
367
|
+
D(r);
|
|
368
368
|
let o = "", b = "";
|
|
369
|
-
for (; o =
|
|
369
|
+
for (; o = I(r, Je); )
|
|
370
370
|
b += o;
|
|
371
371
|
return b;
|
|
372
372
|
}
|
|
373
373
|
function Nt(r) {
|
|
374
374
|
let o = "", b = "";
|
|
375
|
-
for (; o =
|
|
375
|
+
for (; o = x(r); )
|
|
376
376
|
b += o;
|
|
377
377
|
return b;
|
|
378
378
|
}
|
|
379
379
|
function yt(r) {
|
|
380
380
|
const o = (b) => {
|
|
381
381
|
const U = r.currentChar();
|
|
382
|
-
return U === "{" || U === "@" || U === "|" || U === "(" || U === ")" || !U || U ===
|
|
382
|
+
return U === "{" || U === "@" || U === "|" || U === "(" || U === ")" || !U || U === Oe ? b : (b += U, r.next(), o(b));
|
|
383
383
|
};
|
|
384
384
|
return o("");
|
|
385
385
|
}
|
|
386
386
|
function $e(r) {
|
|
387
|
-
|
|
387
|
+
D(r);
|
|
388
388
|
const o = V(
|
|
389
389
|
r,
|
|
390
390
|
"|"
|
|
391
391
|
/* TokenChars.Pipe */
|
|
392
392
|
);
|
|
393
|
-
return
|
|
393
|
+
return D(r), o;
|
|
394
394
|
}
|
|
395
395
|
function Ue(r, o) {
|
|
396
396
|
let b = null;
|
|
397
397
|
switch (r.currentChar()) {
|
|
398
398
|
case "{":
|
|
399
|
-
return o.braceNest >= 1 &&
|
|
399
|
+
return o.braceNest >= 1 && O(K.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), r.next(), b = L(
|
|
400
400
|
o,
|
|
401
401
|
2,
|
|
402
402
|
"{"
|
|
403
403
|
/* TokenChars.BraceLeft */
|
|
404
|
-
),
|
|
404
|
+
), D(r), o.braceNest++, b;
|
|
405
405
|
case "}":
|
|
406
|
-
return o.braceNest > 0 && o.currentType === 2 &&
|
|
406
|
+
return o.braceNest > 0 && o.currentType === 2 && O(K.EMPTY_PLACEHOLDER, a(), 0), r.next(), b = L(
|
|
407
407
|
o,
|
|
408
408
|
3,
|
|
409
409
|
"}"
|
|
410
410
|
/* TokenChars.BraceRight */
|
|
411
|
-
), o.braceNest--, o.braceNest > 0 &&
|
|
411
|
+
), o.braceNest--, o.braceNest > 0 && D(r), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), b;
|
|
412
412
|
case "@":
|
|
413
|
-
return o.braceNest > 0 &&
|
|
413
|
+
return o.braceNest > 0 && O(K.UNTERMINATED_CLOSING_BRACE, a(), 0), b = Ve(r, o) || w(o), o.braceNest = 0, b;
|
|
414
414
|
default: {
|
|
415
|
-
let
|
|
416
|
-
if (
|
|
417
|
-
return o.braceNest > 0 &&
|
|
415
|
+
let ae = !0, X = !0, f = !0;
|
|
416
|
+
if (h(r))
|
|
417
|
+
return o.braceNest > 0 && O(K.UNTERMINATED_CLOSING_BRACE, a(), 0), b = L(o, 1, $e(r)), o.braceNest = 0, o.inLinked = !1, b;
|
|
418
418
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
419
|
-
return
|
|
420
|
-
if (
|
|
421
|
-
return b =
|
|
419
|
+
return O(K.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, ze(r, o);
|
|
420
|
+
if (ae = T(r, o))
|
|
421
|
+
return b = L(o, 4, he(r)), D(r), b;
|
|
422
422
|
if (X = _(r, o))
|
|
423
|
-
return b =
|
|
424
|
-
if (f =
|
|
425
|
-
return b =
|
|
426
|
-
if (!
|
|
427
|
-
return b =
|
|
423
|
+
return b = L(o, 5, fe(r)), D(r), b;
|
|
424
|
+
if (f = M(r, o))
|
|
425
|
+
return b = L(o, 6, Z(r)), D(r), b;
|
|
426
|
+
if (!ae && !X && !f)
|
|
427
|
+
return b = L(o, 12, It(r)), O(K.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, b.value), D(r), b;
|
|
428
428
|
break;
|
|
429
429
|
}
|
|
430
430
|
}
|
|
@@ -433,34 +433,34 @@ function As(e, t = {}) {
|
|
|
433
433
|
function Ve(r, o) {
|
|
434
434
|
const { currentType: b } = o;
|
|
435
435
|
let U = null;
|
|
436
|
-
const
|
|
437
|
-
switch ((b === 7 || b === 8 || b === 11 || b === 9) && (
|
|
436
|
+
const ae = r.currentChar();
|
|
437
|
+
switch ((b === 7 || b === 8 || b === 11 || b === 9) && (ae === be || ae === Oe) && O(K.INVALID_LINKED_FORMAT, a(), 0), ae) {
|
|
438
438
|
case "@":
|
|
439
|
-
return r.next(), U =
|
|
439
|
+
return r.next(), U = L(
|
|
440
440
|
o,
|
|
441
441
|
7,
|
|
442
442
|
"@"
|
|
443
443
|
/* TokenChars.LinkedAlias */
|
|
444
444
|
), o.inLinked = !0, U;
|
|
445
445
|
case ".":
|
|
446
|
-
return
|
|
446
|
+
return D(r), r.next(), L(
|
|
447
447
|
o,
|
|
448
448
|
8,
|
|
449
449
|
"."
|
|
450
450
|
/* TokenChars.LinkedDot */
|
|
451
451
|
);
|
|
452
452
|
case ":":
|
|
453
|
-
return
|
|
453
|
+
return D(r), r.next(), L(
|
|
454
454
|
o,
|
|
455
455
|
9,
|
|
456
456
|
":"
|
|
457
457
|
/* TokenChars.LinkedDelimiter */
|
|
458
458
|
);
|
|
459
459
|
default:
|
|
460
|
-
return
|
|
460
|
+
return h(r) ? (U = L(o, 1, $e(r)), o.braceNest = 0, o.inLinked = !1, U) : S(r, o) || J(r, o) ? (D(r), Ve(r, o)) : E(r, o) ? (D(r), L(o, 11, Nt(r))) : g(r, o) ? (D(r), ae === "{" ? Ue(r, o) || U : L(o, 10, yt(r))) : (b === 7 && O(K.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, ze(r, o));
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function ze(r, o) {
|
|
464
464
|
let b = {
|
|
465
465
|
type: 13
|
|
466
466
|
/* TokenTypes.EOF */
|
|
@@ -473,7 +473,7 @@ function As(e, t = {}) {
|
|
|
473
473
|
case "{":
|
|
474
474
|
return Ue(r, o) || w(o);
|
|
475
475
|
case "}":
|
|
476
|
-
return
|
|
476
|
+
return O(K.UNBALANCED_CLOSING_BRACE, a(), 0), r.next(), L(
|
|
477
477
|
o,
|
|
478
478
|
3,
|
|
479
479
|
"}"
|
|
@@ -482,10 +482,10 @@ function As(e, t = {}) {
|
|
|
482
482
|
case "@":
|
|
483
483
|
return Ve(r, o) || w(o);
|
|
484
484
|
default: {
|
|
485
|
-
if (
|
|
486
|
-
return b =
|
|
485
|
+
if (h(r))
|
|
486
|
+
return b = L(o, 1, $e(r)), o.braceNest = 0, o.inLinked = !1, b;
|
|
487
487
|
if (C(r))
|
|
488
|
-
return
|
|
488
|
+
return L(o, 0, Y(r));
|
|
489
489
|
break;
|
|
490
490
|
}
|
|
491
491
|
}
|
|
@@ -493,11 +493,11 @@ function As(e, t = {}) {
|
|
|
493
493
|
}
|
|
494
494
|
function Tt() {
|
|
495
495
|
const { currentType: r, offset: o, startLoc: b, endLoc: U } = m;
|
|
496
|
-
return m.lastType = r, m.lastOffset = o, m.lastStartLoc = b, m.lastEndLoc = U, m.offset = l(), m.startLoc = a(), s.currentChar() === Ae ?
|
|
496
|
+
return m.lastType = r, m.lastOffset = o, m.lastStartLoc = b, m.lastEndLoc = U, m.offset = l(), m.startLoc = a(), s.currentChar() === Ae ? L(
|
|
497
497
|
m,
|
|
498
498
|
13
|
|
499
499
|
/* TokenTypes.EOF */
|
|
500
|
-
) :
|
|
500
|
+
) : ze(s, m);
|
|
501
501
|
}
|
|
502
502
|
return {
|
|
503
503
|
nextToken: Tt,
|
|
@@ -521,136 +521,136 @@ function Ms(e, t, n) {
|
|
|
521
521
|
}
|
|
522
522
|
function ws(e = {}) {
|
|
523
523
|
const t = e.location !== !1, { onError: n } = e;
|
|
524
|
-
function s(i, d,
|
|
525
|
-
const
|
|
526
|
-
if (
|
|
527
|
-
const
|
|
524
|
+
function s(i, d, T, _, ...M) {
|
|
525
|
+
const S = i.currentPosition();
|
|
526
|
+
if (S.offset += _, S.column += _, n) {
|
|
527
|
+
const E = t ? Mt(T, S) : null, J = gt(d, E, {
|
|
528
528
|
domain: Ss,
|
|
529
|
-
args:
|
|
529
|
+
args: M
|
|
530
530
|
});
|
|
531
|
-
n(
|
|
531
|
+
n(J);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function l(i, d,
|
|
534
|
+
function l(i, d, T) {
|
|
535
535
|
const _ = { type: i };
|
|
536
|
-
return t && (_.start = d, _.end = d, _.loc = { start:
|
|
536
|
+
return t && (_.start = d, _.end = d, _.loc = { start: T, end: T }), _;
|
|
537
537
|
}
|
|
538
|
-
function a(i, d,
|
|
539
|
-
t && (i.end = d, i.loc && (i.loc.end =
|
|
538
|
+
function a(i, d, T, _) {
|
|
539
|
+
t && (i.end = d, i.loc && (i.loc.end = T));
|
|
540
540
|
}
|
|
541
541
|
function c(i, d) {
|
|
542
|
-
const
|
|
542
|
+
const T = i.context(), _ = l(3, T.offset, T.startLoc);
|
|
543
543
|
return _.value = d, a(_, i.currentOffset(), i.currentPosition()), _;
|
|
544
544
|
}
|
|
545
545
|
function u(i, d) {
|
|
546
|
-
const
|
|
547
|
-
return
|
|
546
|
+
const T = i.context(), { lastOffset: _, lastStartLoc: M } = T, S = l(5, _, M);
|
|
547
|
+
return S.index = parseInt(d, 10), i.nextToken(), a(S, i.currentOffset(), i.currentPosition()), S;
|
|
548
548
|
}
|
|
549
549
|
function m(i, d) {
|
|
550
|
-
const
|
|
551
|
-
return
|
|
550
|
+
const T = i.context(), { lastOffset: _, lastStartLoc: M } = T, S = l(4, _, M);
|
|
551
|
+
return S.key = d, i.nextToken(), a(S, i.currentOffset(), i.currentPosition()), S;
|
|
552
552
|
}
|
|
553
553
|
function p(i, d) {
|
|
554
|
-
const
|
|
555
|
-
return
|
|
554
|
+
const T = i.context(), { lastOffset: _, lastStartLoc: M } = T, S = l(9, _, M);
|
|
555
|
+
return S.value = d.replace(Ds, Ms), i.nextToken(), a(S, i.currentOffset(), i.currentPosition()), S;
|
|
556
556
|
}
|
|
557
557
|
function y(i) {
|
|
558
|
-
const d = i.nextToken(),
|
|
559
|
-
return d.type !== 11 ? (s(i, K.UNEXPECTED_EMPTY_LINKED_MODIFIER,
|
|
558
|
+
const d = i.nextToken(), T = i.context(), { lastOffset: _, lastStartLoc: M } = T, S = l(8, _, M);
|
|
559
|
+
return d.type !== 11 ? (s(i, K.UNEXPECTED_EMPTY_LINKED_MODIFIER, T.lastStartLoc, 0), S.value = "", a(S, _, M), {
|
|
560
560
|
nextConsumeToken: d,
|
|
561
|
-
node:
|
|
562
|
-
}) : (d.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
563
|
-
node:
|
|
561
|
+
node: S
|
|
562
|
+
}) : (d.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, ye(d)), S.value = d.value || "", a(S, i.currentOffset(), i.currentPosition()), {
|
|
563
|
+
node: S
|
|
564
564
|
});
|
|
565
565
|
}
|
|
566
|
-
function
|
|
567
|
-
const
|
|
566
|
+
function O(i, d) {
|
|
567
|
+
const T = i.context(), _ = l(7, T.offset, T.startLoc);
|
|
568
568
|
return _.value = d, a(_, i.currentOffset(), i.currentPosition()), _;
|
|
569
569
|
}
|
|
570
|
-
function
|
|
571
|
-
const d = i.context(),
|
|
570
|
+
function L(i) {
|
|
571
|
+
const d = i.context(), T = l(6, d.offset, d.startLoc);
|
|
572
572
|
let _ = i.nextToken();
|
|
573
573
|
if (_.type === 8) {
|
|
574
|
-
const
|
|
575
|
-
|
|
574
|
+
const M = y(i);
|
|
575
|
+
T.modifier = M.node, _ = M.nextConsumeToken || i.nextToken();
|
|
576
576
|
}
|
|
577
|
-
switch (_.type !== 9 && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0,
|
|
577
|
+
switch (_.type !== 9 && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ye(_)), _ = i.nextToken(), _.type === 2 && (_ = i.nextToken()), _.type) {
|
|
578
578
|
case 10:
|
|
579
|
-
_.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0,
|
|
579
|
+
_.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ye(_)), T.key = O(i, _.value || "");
|
|
580
580
|
break;
|
|
581
581
|
case 4:
|
|
582
|
-
_.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0,
|
|
582
|
+
_.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ye(_)), T.key = m(i, _.value || "");
|
|
583
583
|
break;
|
|
584
584
|
case 5:
|
|
585
|
-
_.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0,
|
|
585
|
+
_.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ye(_)), T.key = u(i, _.value || "");
|
|
586
586
|
break;
|
|
587
587
|
case 6:
|
|
588
|
-
_.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0,
|
|
588
|
+
_.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ye(_)), T.key = p(i, _.value || "");
|
|
589
589
|
break;
|
|
590
590
|
default: {
|
|
591
591
|
s(i, K.UNEXPECTED_EMPTY_LINKED_KEY, d.lastStartLoc, 0);
|
|
592
|
-
const
|
|
593
|
-
return
|
|
592
|
+
const M = i.context(), S = l(7, M.offset, M.startLoc);
|
|
593
|
+
return S.value = "", a(S, M.offset, M.startLoc), T.key = S, a(T, M.offset, M.startLoc), {
|
|
594
594
|
nextConsumeToken: _,
|
|
595
|
-
node:
|
|
595
|
+
node: T
|
|
596
596
|
};
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
return a(
|
|
600
|
-
node:
|
|
599
|
+
return a(T, i.currentOffset(), i.currentPosition()), {
|
|
600
|
+
node: T
|
|
601
601
|
};
|
|
602
602
|
}
|
|
603
603
|
function w(i) {
|
|
604
|
-
const d = i.context(),
|
|
605
|
-
|
|
606
|
-
let
|
|
604
|
+
const d = i.context(), T = d.currentType === 1 ? i.currentOffset() : d.offset, _ = d.currentType === 1 ? d.endLoc : d.startLoc, M = l(2, T, _);
|
|
605
|
+
M.items = [];
|
|
606
|
+
let S = null;
|
|
607
607
|
do {
|
|
608
|
-
const
|
|
609
|
-
switch (
|
|
608
|
+
const g = S || i.nextToken();
|
|
609
|
+
switch (S = null, g.type) {
|
|
610
610
|
case 0:
|
|
611
|
-
|
|
611
|
+
g.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ye(g)), M.items.push(c(i, g.value || ""));
|
|
612
612
|
break;
|
|
613
613
|
case 5:
|
|
614
|
-
|
|
614
|
+
g.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ye(g)), M.items.push(u(i, g.value || ""));
|
|
615
615
|
break;
|
|
616
616
|
case 4:
|
|
617
|
-
|
|
617
|
+
g.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ye(g)), M.items.push(m(i, g.value || ""));
|
|
618
618
|
break;
|
|
619
619
|
case 6:
|
|
620
|
-
|
|
620
|
+
g.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ye(g)), M.items.push(p(i, g.value || ""));
|
|
621
621
|
break;
|
|
622
622
|
case 7: {
|
|
623
|
-
const
|
|
624
|
-
|
|
623
|
+
const h = L(i);
|
|
624
|
+
M.items.push(h.node), S = h.nextConsumeToken || null;
|
|
625
625
|
break;
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
628
|
} while (d.currentType !== 13 && d.currentType !== 1);
|
|
629
|
-
const
|
|
630
|
-
return a(
|
|
631
|
-
}
|
|
632
|
-
function V(i, d,
|
|
633
|
-
const
|
|
634
|
-
let
|
|
635
|
-
const
|
|
636
|
-
|
|
629
|
+
const E = d.currentType === 1 ? d.lastOffset : i.currentOffset(), J = d.currentType === 1 ? d.lastEndLoc : i.currentPosition();
|
|
630
|
+
return a(M, E, J), M;
|
|
631
|
+
}
|
|
632
|
+
function V(i, d, T, _) {
|
|
633
|
+
const M = i.context();
|
|
634
|
+
let S = _.items.length === 0;
|
|
635
|
+
const E = l(1, d, T);
|
|
636
|
+
E.cases = [], E.cases.push(_);
|
|
637
637
|
do {
|
|
638
|
-
const
|
|
639
|
-
|
|
640
|
-
} while (
|
|
641
|
-
return
|
|
638
|
+
const J = w(i);
|
|
639
|
+
S || (S = J.items.length === 0), E.cases.push(J);
|
|
640
|
+
} while (M.currentType !== 13);
|
|
641
|
+
return S && s(i, K.MUST_HAVE_MESSAGES_IN_PLURAL, T, 0), a(E, i.currentOffset(), i.currentPosition()), E;
|
|
642
642
|
}
|
|
643
|
-
function
|
|
644
|
-
const d = i.context(), { offset:
|
|
645
|
-
return d.currentType === 13 ?
|
|
643
|
+
function A(i) {
|
|
644
|
+
const d = i.context(), { offset: T, startLoc: _ } = d, M = w(i);
|
|
645
|
+
return d.currentType === 13 ? M : V(i, T, _, M);
|
|
646
646
|
}
|
|
647
|
-
function
|
|
648
|
-
const d = As(i,
|
|
649
|
-
return t && _.loc && (_.loc.source = i), _.body =
|
|
647
|
+
function D(i) {
|
|
648
|
+
const d = As(i, de({}, e)), T = d.context(), _ = l(0, T.offset, T.startLoc);
|
|
649
|
+
return t && _.loc && (_.loc.source = i), _.body = A(d), e.onCacheKey && (_.cacheKey = e.onCacheKey(i)), T.currentType !== 13 && s(d, K.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, i[T.offset] || ""), a(_, d.currentOffset(), d.currentPosition()), _;
|
|
650
650
|
}
|
|
651
|
-
return { parse:
|
|
651
|
+
return { parse: D };
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function ye(e) {
|
|
654
654
|
if (e.type === 13)
|
|
655
655
|
return "EOF";
|
|
656
656
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
@@ -665,9 +665,9 @@ function Ps(e, t = {}) {
|
|
|
665
665
|
}
|
|
666
666
|
function sn(e, t) {
|
|
667
667
|
for (let n = 0; n < e.length; n++)
|
|
668
|
-
|
|
668
|
+
Bt(e[n], t);
|
|
669
669
|
}
|
|
670
|
-
function
|
|
670
|
+
function Bt(e, t) {
|
|
671
671
|
switch (e.type) {
|
|
672
672
|
case 1:
|
|
673
673
|
sn(e.cases, t), t.helper(
|
|
@@ -679,7 +679,7 @@ function Ht(e, t) {
|
|
|
679
679
|
sn(e.items, t);
|
|
680
680
|
break;
|
|
681
681
|
case 6: {
|
|
682
|
-
|
|
682
|
+
Bt(e.key, t), t.helper(
|
|
683
683
|
"linked"
|
|
684
684
|
/* HelperNameMap.LINKED */
|
|
685
685
|
), t.helper(
|
|
@@ -713,7 +713,7 @@ function Fs(e, t = {}) {
|
|
|
713
713
|
n.helper(
|
|
714
714
|
"normalize"
|
|
715
715
|
/* HelperNameMap.NORMALIZE */
|
|
716
|
-
), e.body &&
|
|
716
|
+
), e.body && Bt(e.body, n);
|
|
717
717
|
const s = n.context();
|
|
718
718
|
e.helpers = Array.from(s.helpers);
|
|
719
719
|
}
|
|
@@ -734,7 +734,7 @@ function an(e) {
|
|
|
734
734
|
t.push(s.value);
|
|
735
735
|
}
|
|
736
736
|
if (t.length === e.items.length) {
|
|
737
|
-
e.static =
|
|
737
|
+
e.static = Yt(t);
|
|
738
738
|
for (let n = 0; n < e.items.length; n++) {
|
|
739
739
|
const s = e.items[n];
|
|
740
740
|
(s.type === 3 || s.type === 9) && delete s.value;
|
|
@@ -803,31 +803,31 @@ function Us(e, t) {
|
|
|
803
803
|
};
|
|
804
804
|
a && e.loc && (c.source = e.loc.source);
|
|
805
805
|
const u = () => c;
|
|
806
|
-
function m(
|
|
807
|
-
c.code +=
|
|
806
|
+
function m(A, D) {
|
|
807
|
+
c.code += A;
|
|
808
808
|
}
|
|
809
|
-
function p(
|
|
810
|
-
const i =
|
|
811
|
-
m(l ? i + " ".repeat(
|
|
809
|
+
function p(A, D = !0) {
|
|
810
|
+
const i = D ? s : "";
|
|
811
|
+
m(l ? i + " ".repeat(A) : i);
|
|
812
812
|
}
|
|
813
|
-
function y(
|
|
814
|
-
const
|
|
815
|
-
|
|
813
|
+
function y(A = !0) {
|
|
814
|
+
const D = ++c.indentLevel;
|
|
815
|
+
A && p(D);
|
|
816
816
|
}
|
|
817
|
-
function
|
|
818
|
-
const
|
|
819
|
-
|
|
817
|
+
function O(A = !0) {
|
|
818
|
+
const D = --c.indentLevel;
|
|
819
|
+
A && p(D);
|
|
820
820
|
}
|
|
821
|
-
function
|
|
821
|
+
function L() {
|
|
822
822
|
p(c.indentLevel);
|
|
823
823
|
}
|
|
824
824
|
return {
|
|
825
825
|
context: u,
|
|
826
826
|
push: m,
|
|
827
827
|
indent: y,
|
|
828
|
-
deindent:
|
|
829
|
-
newline:
|
|
830
|
-
helper: (
|
|
828
|
+
deindent: O,
|
|
829
|
+
newline: L,
|
|
830
|
+
helper: (A) => `_${A}`,
|
|
831
831
|
needIndent: () => c.needIndent
|
|
832
832
|
};
|
|
833
833
|
}
|
|
@@ -921,7 +921,7 @@ const Zs = (e, t = {}) => {
|
|
|
921
921
|
breakLineCode: l,
|
|
922
922
|
needIndent: a
|
|
923
923
|
});
|
|
924
|
-
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), c.length > 0 && (u.push(`const { ${
|
|
924
|
+
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), c.length > 0 && (u.push(`const { ${Yt(c.map((y) => `${y}: _${y}`), ", ")} } = ctx`), u.newline()), u.push("return "), Ze(u, e), u.deindent(a), u.push("}"), delete e.helpers;
|
|
925
925
|
const { code: m, map: p } = u.context();
|
|
926
926
|
return {
|
|
927
927
|
ast: e,
|
|
@@ -931,25 +931,25 @@ const Zs = (e, t = {}) => {
|
|
|
931
931
|
};
|
|
932
932
|
};
|
|
933
933
|
function Xs(e, t = {}) {
|
|
934
|
-
const n =
|
|
934
|
+
const n = de({}, t), s = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize, u = ws(n).parse(e);
|
|
935
935
|
return s ? (a && js(u), l && We(u), { ast: u, code: "" }) : (Fs(u, n), Zs(u, n));
|
|
936
936
|
}
|
|
937
|
-
var
|
|
938
|
-
function
|
|
937
|
+
var Ys = { env: { NODE_ENV: "production" } };
|
|
938
|
+
function Bs() {
|
|
939
939
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Fe().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Fe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
940
940
|
}
|
|
941
941
|
function Ct(e) {
|
|
942
|
-
return (n) =>
|
|
942
|
+
return (n) => Hs(n, e);
|
|
943
943
|
}
|
|
944
|
-
function
|
|
945
|
-
const n =
|
|
944
|
+
function Hs(e, t) {
|
|
945
|
+
const n = $s(t);
|
|
946
946
|
if (n == null)
|
|
947
|
-
throw
|
|
947
|
+
throw qe(
|
|
948
948
|
0
|
|
949
949
|
/* NodeTypes.Resource */
|
|
950
950
|
);
|
|
951
|
-
if (
|
|
952
|
-
const a =
|
|
951
|
+
if (Ht(n) === 1) {
|
|
952
|
+
const a = Ks(n);
|
|
953
953
|
return e.plural(a.reduce((c, u) => [
|
|
954
954
|
...c,
|
|
955
955
|
rn(e, u)
|
|
@@ -957,13 +957,13 @@ function Ys(e, t) {
|
|
|
957
957
|
} else
|
|
958
958
|
return rn(e, n);
|
|
959
959
|
}
|
|
960
|
-
const
|
|
961
|
-
function
|
|
962
|
-
return Me(e,
|
|
960
|
+
const Js = ["b", "body"];
|
|
961
|
+
function $s(e) {
|
|
962
|
+
return Me(e, Js);
|
|
963
963
|
}
|
|
964
|
-
const
|
|
965
|
-
function
|
|
966
|
-
return Me(e,
|
|
964
|
+
const zs = ["c", "cases"];
|
|
965
|
+
function Ks(e) {
|
|
966
|
+
return Me(e, zs, []);
|
|
967
967
|
}
|
|
968
968
|
function rn(e, t) {
|
|
969
969
|
const n = qs(t);
|
|
@@ -974,16 +974,16 @@ function rn(e, t) {
|
|
|
974
974
|
return e.normalize(s);
|
|
975
975
|
}
|
|
976
976
|
}
|
|
977
|
-
const
|
|
977
|
+
const Qs = ["s", "static"];
|
|
978
978
|
function qs(e) {
|
|
979
|
-
return Me(e,
|
|
979
|
+
return Me(e, Qs);
|
|
980
980
|
}
|
|
981
981
|
const ea = ["i", "items"];
|
|
982
982
|
function ta(e) {
|
|
983
983
|
return Me(e, ea, []);
|
|
984
984
|
}
|
|
985
985
|
function wt(e, t) {
|
|
986
|
-
const n =
|
|
986
|
+
const n = Ht(t);
|
|
987
987
|
switch (n) {
|
|
988
988
|
case 3:
|
|
989
989
|
return lt(t, n);
|
|
@@ -991,19 +991,19 @@ function wt(e, t) {
|
|
|
991
991
|
return lt(t, n);
|
|
992
992
|
case 4: {
|
|
993
993
|
const s = t;
|
|
994
|
-
if (
|
|
994
|
+
if (Ne(s, "k") && s.k)
|
|
995
995
|
return e.interpolate(e.named(s.k));
|
|
996
|
-
if (
|
|
996
|
+
if (Ne(s, "key") && s.key)
|
|
997
997
|
return e.interpolate(e.named(s.key));
|
|
998
|
-
throw
|
|
998
|
+
throw qe(n);
|
|
999
999
|
}
|
|
1000
1000
|
case 5: {
|
|
1001
1001
|
const s = t;
|
|
1002
|
-
if (
|
|
1002
|
+
if (Ne(s, "i") && me(s.i))
|
|
1003
1003
|
return e.interpolate(e.list(s.i));
|
|
1004
|
-
if (
|
|
1004
|
+
if (Ne(s, "index") && me(s.index))
|
|
1005
1005
|
return e.interpolate(e.list(s.index));
|
|
1006
|
-
throw
|
|
1006
|
+
throw qe(n);
|
|
1007
1007
|
}
|
|
1008
1008
|
case 6: {
|
|
1009
1009
|
const s = t, l = ra(s), a = oa(s);
|
|
@@ -1018,7 +1018,7 @@ function wt(e, t) {
|
|
|
1018
1018
|
}
|
|
1019
1019
|
}
|
|
1020
1020
|
const na = ["t", "type"];
|
|
1021
|
-
function
|
|
1021
|
+
function Ht(e) {
|
|
1022
1022
|
return Me(e, na);
|
|
1023
1023
|
}
|
|
1024
1024
|
const sa = ["v", "value"];
|
|
@@ -1026,7 +1026,7 @@ function lt(e, t) {
|
|
|
1026
1026
|
const n = Me(e, sa);
|
|
1027
1027
|
if (n)
|
|
1028
1028
|
return n;
|
|
1029
|
-
throw
|
|
1029
|
+
throw qe(t);
|
|
1030
1030
|
}
|
|
1031
1031
|
const aa = ["m", "modifier"];
|
|
1032
1032
|
function ra(e) {
|
|
@@ -1037,7 +1037,7 @@ function oa(e) {
|
|
|
1037
1037
|
const t = Me(e, la);
|
|
1038
1038
|
if (t)
|
|
1039
1039
|
return t;
|
|
1040
|
-
throw
|
|
1040
|
+
throw qe(
|
|
1041
1041
|
6
|
|
1042
1042
|
/* NodeTypes.Linked */
|
|
1043
1043
|
);
|
|
@@ -1045,18 +1045,18 @@ function oa(e) {
|
|
|
1045
1045
|
function Me(e, t, n) {
|
|
1046
1046
|
for (let s = 0; s < t.length; s++) {
|
|
1047
1047
|
const l = t[s];
|
|
1048
|
-
if (
|
|
1048
|
+
if (Ne(e, l) && e[l] != null)
|
|
1049
1049
|
return e[l];
|
|
1050
1050
|
}
|
|
1051
1051
|
return n;
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1053
|
+
function qe(e) {
|
|
1054
1054
|
return new Error(`unhandled node type: ${e}`);
|
|
1055
1055
|
}
|
|
1056
1056
|
const ia = (e) => e;
|
|
1057
|
-
let ot =
|
|
1057
|
+
let ot = ee();
|
|
1058
1058
|
function Xe(e) {
|
|
1059
|
-
return
|
|
1059
|
+
return z(e) && Ht(e) === 0 && (Ne(e, "b") || Ne(e, "body"));
|
|
1060
1060
|
}
|
|
1061
1061
|
function ca(e, t = {}) {
|
|
1062
1062
|
let n = !1;
|
|
@@ -1068,13 +1068,13 @@ function ca(e, t = {}) {
|
|
|
1068
1068
|
// @__NO_SIDE_EFFECTS__
|
|
1069
1069
|
function ua(e, t) {
|
|
1070
1070
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && P(e)) {
|
|
1071
|
-
|
|
1071
|
+
ie(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1072
1072
|
const s = (t.onCacheKey || ia)(e), l = ot[s];
|
|
1073
1073
|
if (l)
|
|
1074
1074
|
return l;
|
|
1075
1075
|
const { ast: a, detectError: c } = ca(e, {
|
|
1076
1076
|
...t,
|
|
1077
|
-
location:
|
|
1077
|
+
location: Ys.env.NODE_ENV !== "production",
|
|
1078
1078
|
jit: !0
|
|
1079
1079
|
}), u = Ct(a);
|
|
1080
1080
|
return c ? u : ot[s] = u;
|
|
@@ -1087,12 +1087,12 @@ function ua(e, t) {
|
|
|
1087
1087
|
return Ct(e);
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
|
-
let
|
|
1090
|
+
let et = null;
|
|
1091
1091
|
function ma(e) {
|
|
1092
|
-
|
|
1092
|
+
et = e;
|
|
1093
1093
|
}
|
|
1094
1094
|
function da(e, t, n) {
|
|
1095
|
-
|
|
1095
|
+
et && et.emit("i18n:init", {
|
|
1096
1096
|
timestamp: Date.now(),
|
|
1097
1097
|
i18n: e,
|
|
1098
1098
|
version: t,
|
|
@@ -1101,7 +1101,7 @@ function da(e, t, n) {
|
|
|
1101
1101
|
}
|
|
1102
1102
|
const fa = /* @__PURE__ */ _a("function:translate");
|
|
1103
1103
|
function _a(e) {
|
|
1104
|
-
return (t) =>
|
|
1104
|
+
return (t) => et && et.emit(e, t);
|
|
1105
1105
|
}
|
|
1106
1106
|
const Ce = {
|
|
1107
1107
|
INVALID_ARGUMENT: Ns,
|
|
@@ -1115,7 +1115,7 @@ const Ce = {
|
|
|
1115
1115
|
function Re(e) {
|
|
1116
1116
|
return gt(e, null, void 0);
|
|
1117
1117
|
}
|
|
1118
|
-
function
|
|
1118
|
+
function Jt(e, t) {
|
|
1119
1119
|
return t.locale != null ? ln(t.locale) : ln(e.locale);
|
|
1120
1120
|
}
|
|
1121
1121
|
let Rt;
|
|
@@ -1138,7 +1138,7 @@ function ln(e) {
|
|
|
1138
1138
|
function ba(e, t, n) {
|
|
1139
1139
|
return [.../* @__PURE__ */ new Set([
|
|
1140
1140
|
n,
|
|
1141
|
-
...
|
|
1141
|
+
...ce(t) ? t : z(t) ? Object.keys(t) : P(t) ? [t] : [n]
|
|
1142
1142
|
])];
|
|
1143
1143
|
}
|
|
1144
1144
|
function Dn(e, t, n) {
|
|
@@ -1148,16 +1148,16 @@ function Dn(e, t, n) {
|
|
|
1148
1148
|
if (!a) {
|
|
1149
1149
|
a = [];
|
|
1150
1150
|
let c = [n];
|
|
1151
|
-
for (;
|
|
1151
|
+
for (; ce(c); )
|
|
1152
1152
|
c = on(a, c, t);
|
|
1153
|
-
const u =
|
|
1154
|
-
c = P(u) ? [u] : u,
|
|
1153
|
+
const u = ce(t) || !$(t) ? t : t.default ? t.default : null;
|
|
1154
|
+
c = P(u) ? [u] : u, ce(c) && on(a, c, !1), l.__localeChainCache.set(s, a);
|
|
1155
1155
|
}
|
|
1156
1156
|
return a;
|
|
1157
1157
|
}
|
|
1158
1158
|
function on(e, t, n) {
|
|
1159
1159
|
let s = !0;
|
|
1160
|
-
for (let l = 0; l < t.length &&
|
|
1160
|
+
for (let l = 0; l < t.length && ie(s); l++) {
|
|
1161
1161
|
const a = t[l];
|
|
1162
1162
|
P(a) && (s = ha(e, t[l], n));
|
|
1163
1163
|
}
|
|
@@ -1177,7 +1177,7 @@ function ga(e, t, n) {
|
|
|
1177
1177
|
if (!e.includes(t) && (s = !0, t)) {
|
|
1178
1178
|
s = t[t.length - 1] !== "!";
|
|
1179
1179
|
const l = t.replace(/!/g, "");
|
|
1180
|
-
e.push(l), (
|
|
1180
|
+
e.push(l), (ce(n) || $(n)) && n[l] && (s = n[l]);
|
|
1181
1181
|
}
|
|
1182
1182
|
return s;
|
|
1183
1183
|
}
|
|
@@ -1343,10 +1343,10 @@ we[
|
|
|
1343
1343
|
]
|
|
1344
1344
|
};
|
|
1345
1345
|
const va = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1346
|
-
function
|
|
1346
|
+
function Ea(e) {
|
|
1347
1347
|
return va.test(e);
|
|
1348
1348
|
}
|
|
1349
|
-
function
|
|
1349
|
+
function Ia(e) {
|
|
1350
1350
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1351
1351
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1352
1352
|
}
|
|
@@ -1377,43 +1377,43 @@ function Na(e) {
|
|
|
1377
1377
|
}
|
|
1378
1378
|
function ya(e) {
|
|
1379
1379
|
const t = e.trim();
|
|
1380
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1380
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Ea(t) ? Ia(t) : "*" + t;
|
|
1381
1381
|
}
|
|
1382
1382
|
function Ta(e) {
|
|
1383
1383
|
const t = [];
|
|
1384
|
-
let n = -1, s = 0, l = 0, a, c, u, m, p, y,
|
|
1385
|
-
const
|
|
1386
|
-
|
|
1384
|
+
let n = -1, s = 0, l = 0, a, c, u, m, p, y, O;
|
|
1385
|
+
const L = [];
|
|
1386
|
+
L[
|
|
1387
1387
|
0
|
|
1388
1388
|
/* Actions.APPEND */
|
|
1389
1389
|
] = () => {
|
|
1390
1390
|
c === void 0 ? c = u : c += u;
|
|
1391
|
-
},
|
|
1391
|
+
}, L[
|
|
1392
1392
|
1
|
|
1393
1393
|
/* Actions.PUSH */
|
|
1394
1394
|
] = () => {
|
|
1395
1395
|
c !== void 0 && (t.push(c), c = void 0);
|
|
1396
|
-
},
|
|
1396
|
+
}, L[
|
|
1397
1397
|
2
|
|
1398
1398
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1399
1399
|
] = () => {
|
|
1400
|
-
|
|
1400
|
+
L[
|
|
1401
1401
|
0
|
|
1402
1402
|
/* Actions.APPEND */
|
|
1403
1403
|
](), l++;
|
|
1404
|
-
},
|
|
1404
|
+
}, L[
|
|
1405
1405
|
3
|
|
1406
1406
|
/* Actions.PUSH_SUB_PATH */
|
|
1407
1407
|
] = () => {
|
|
1408
1408
|
if (l > 0)
|
|
1409
|
-
l--, s = 4,
|
|
1409
|
+
l--, s = 4, L[
|
|
1410
1410
|
0
|
|
1411
1411
|
/* Actions.APPEND */
|
|
1412
1412
|
]();
|
|
1413
1413
|
else {
|
|
1414
1414
|
if (l = 0, c === void 0 || (c = ya(c), c === !1))
|
|
1415
1415
|
return !1;
|
|
1416
|
-
|
|
1416
|
+
L[
|
|
1417
1417
|
1
|
|
1418
1418
|
/* Actions.PUSH */
|
|
1419
1419
|
]();
|
|
@@ -1422,14 +1422,14 @@ function Ta(e) {
|
|
|
1422
1422
|
function w() {
|
|
1423
1423
|
const V = e[n + 1];
|
|
1424
1424
|
if (s === 5 && V === "'" || s === 6 && V === '"')
|
|
1425
|
-
return n++, u = "\\" + V,
|
|
1425
|
+
return n++, u = "\\" + V, L[
|
|
1426
1426
|
0
|
|
1427
1427
|
/* Actions.APPEND */
|
|
1428
1428
|
](), !0;
|
|
1429
1429
|
}
|
|
1430
1430
|
for (; s !== null; )
|
|
1431
1431
|
if (n++, a = e[n], !(a === "\\" && w())) {
|
|
1432
|
-
if (m = Na(a),
|
|
1432
|
+
if (m = Na(a), O = we[s], p = O[m] || O.l || 8, p === 8 || (s = p[0], p[1] !== void 0 && (y = L[p[1]], y && (u = a, y() === !1))))
|
|
1433
1433
|
return;
|
|
1434
1434
|
if (s === 7)
|
|
1435
1435
|
return t;
|
|
@@ -1437,10 +1437,10 @@ function Ta(e) {
|
|
|
1437
1437
|
}
|
|
1438
1438
|
const cn = /* @__PURE__ */ new Map();
|
|
1439
1439
|
function ka(e, t) {
|
|
1440
|
-
return
|
|
1440
|
+
return z(e) ? e[t] : null;
|
|
1441
1441
|
}
|
|
1442
|
-
function
|
|
1443
|
-
if (!
|
|
1442
|
+
function La(e, t) {
|
|
1443
|
+
if (!z(e))
|
|
1444
1444
|
return null;
|
|
1445
1445
|
let n = cn.get(t);
|
|
1446
1446
|
if (n || (n = Ta(t), n && cn.set(t, n)), !n)
|
|
@@ -1455,12 +1455,12 @@ function Oa(e, t) {
|
|
|
1455
1455
|
}
|
|
1456
1456
|
return l;
|
|
1457
1457
|
}
|
|
1458
|
-
const
|
|
1458
|
+
const Oa = "10.0.5", vt = -1, pt = "en-US", un = "", mn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1459
1459
|
function Ca() {
|
|
1460
1460
|
return {
|
|
1461
|
-
upper: (e, t) => t === "text" && P(e) ? e.toUpperCase() : t === "vnode" &&
|
|
1462
|
-
lower: (e, t) => t === "text" && P(e) ? e.toLowerCase() : t === "vnode" &&
|
|
1463
|
-
capitalize: (e, t) => t === "text" && P(e) ? mn(e) : t === "vnode" &&
|
|
1461
|
+
upper: (e, t) => t === "text" && P(e) ? e.toUpperCase() : t === "vnode" && z(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1462
|
+
lower: (e, t) => t === "text" && P(e) ? e.toLowerCase() : t === "vnode" && z(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1463
|
+
capitalize: (e, t) => t === "text" && P(e) ? mn(e) : t === "vnode" && z(e) && "__v_isVNode" in e ? mn(e.children) : e
|
|
1464
1464
|
};
|
|
1465
1465
|
}
|
|
1466
1466
|
let Mn;
|
|
@@ -1485,9 +1485,9 @@ const dn = (e) => {
|
|
|
1485
1485
|
}, wa = () => jn;
|
|
1486
1486
|
let fn = 0;
|
|
1487
1487
|
function Pa(e = {}) {
|
|
1488
|
-
const t = se(e.onWarn) ? e.onWarn :
|
|
1488
|
+
const t = se(e.onWarn) ? e.onWarn : Es, n = P(e.version) ? e.version : Oa, s = P(e.locale) || se(e.locale) ? e.locale : pt, l = se(s) ? pt : s, a = ce(e.fallbackLocale) || $(e.fallbackLocale) || P(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, c = $(e.messages) ? e.messages : At(l), u = $(e.datetimeFormats) ? e.datetimeFormats : At(l), m = $(e.numberFormats) ? e.numberFormats : At(l), p = de(ee(), e.modifiers, Ca()), y = e.pluralRules || ee(), O = se(e.missing) ? e.missing : null, L = ie(e.missingWarn) || _t(e.missingWarn) ? e.missingWarn : !0, w = ie(e.fallbackWarn) || _t(e.fallbackWarn) ? e.fallbackWarn : !0, V = !!e.fallbackFormat, A = !!e.unresolving, D = se(e.postTranslation) ? e.postTranslation : null, i = $(e.processor) ? e.processor : null, d = ie(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, T = !!e.escapeParameter, _ = se(e.messageCompiler) ? e.messageCompiler : Mn, M = se(e.messageResolver) ? e.messageResolver : wn || ka, S = se(e.localeFallbacker) ? e.localeFallbacker : Pn || ba, E = z(e.fallbackContext) ? e.fallbackContext : void 0, J = e, g = z(J.__datetimeFormatters) ? J.__datetimeFormatters : /* @__PURE__ */ new Map(), h = z(J.__numberFormatters) ? J.__numberFormatters : /* @__PURE__ */ new Map(), C = z(J.__meta) ? J.__meta : {};
|
|
1489
1489
|
fn++;
|
|
1490
|
-
const
|
|
1490
|
+
const I = {
|
|
1491
1491
|
version: n,
|
|
1492
1492
|
cid: fn,
|
|
1493
1493
|
locale: s,
|
|
@@ -1495,26 +1495,26 @@ function Pa(e = {}) {
|
|
|
1495
1495
|
messages: c,
|
|
1496
1496
|
modifiers: p,
|
|
1497
1497
|
pluralRules: y,
|
|
1498
|
-
missing:
|
|
1499
|
-
missingWarn:
|
|
1498
|
+
missing: O,
|
|
1499
|
+
missingWarn: L,
|
|
1500
1500
|
fallbackWarn: w,
|
|
1501
1501
|
fallbackFormat: V,
|
|
1502
|
-
unresolving:
|
|
1503
|
-
postTranslation:
|
|
1502
|
+
unresolving: A,
|
|
1503
|
+
postTranslation: D,
|
|
1504
1504
|
processor: i,
|
|
1505
1505
|
warnHtmlMessage: d,
|
|
1506
|
-
escapeParameter:
|
|
1506
|
+
escapeParameter: T,
|
|
1507
1507
|
messageCompiler: _,
|
|
1508
|
-
messageResolver:
|
|
1509
|
-
localeFallbacker:
|
|
1510
|
-
fallbackContext:
|
|
1508
|
+
messageResolver: M,
|
|
1509
|
+
localeFallbacker: S,
|
|
1510
|
+
fallbackContext: E,
|
|
1511
1511
|
onWarn: t,
|
|
1512
1512
|
__meta: C
|
|
1513
1513
|
};
|
|
1514
|
-
return
|
|
1514
|
+
return I.datetimeFormats = u, I.numberFormats = m, I.__datetimeFormatters = g, I.__numberFormatters = h, __INTLIFY_PROD_DEVTOOLS__ && da(I, n, C), I;
|
|
1515
1515
|
}
|
|
1516
|
-
const At = (e) => ({ [e]:
|
|
1517
|
-
function
|
|
1516
|
+
const At = (e) => ({ [e]: ee() });
|
|
1517
|
+
function $t(e, t, n, s, l) {
|
|
1518
1518
|
const { missing: a, onWarn: c } = e;
|
|
1519
1519
|
if (a !== null) {
|
|
1520
1520
|
const u = a(e, n, t, l);
|
|
@@ -1539,26 +1539,26 @@ function ja(e, t) {
|
|
|
1539
1539
|
return !1;
|
|
1540
1540
|
}
|
|
1541
1541
|
function _n(e, ...t) {
|
|
1542
|
-
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __datetimeFormatters: u } = e, [m, p, y,
|
|
1543
|
-
|
|
1544
|
-
const w = !!y.part, V =
|
|
1542
|
+
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __datetimeFormatters: u } = e, [m, p, y, O] = Pt(...t), L = ie(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1543
|
+
ie(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1544
|
+
const w = !!y.part, V = Jt(e, y), A = c(
|
|
1545
1545
|
e,
|
|
1546
1546
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1547
1547
|
l,
|
|
1548
1548
|
V
|
|
1549
1549
|
);
|
|
1550
1550
|
if (!P(m) || m === "")
|
|
1551
|
-
return new Intl.DateTimeFormat(V,
|
|
1552
|
-
let
|
|
1553
|
-
const
|
|
1554
|
-
for (let
|
|
1555
|
-
|
|
1551
|
+
return new Intl.DateTimeFormat(V, O).format(p);
|
|
1552
|
+
let D = {}, i, d = null;
|
|
1553
|
+
const T = "datetime format";
|
|
1554
|
+
for (let S = 0; S < A.length && (i = A[S], D = n[i] || {}, d = D[m], !$(d)); S++)
|
|
1555
|
+
$t(e, m, i, L, T);
|
|
1556
1556
|
if (!$(d) || !P(i))
|
|
1557
1557
|
return s ? vt : m;
|
|
1558
1558
|
let _ = `${i}__${m}`;
|
|
1559
|
-
ht(
|
|
1560
|
-
let
|
|
1561
|
-
return
|
|
1559
|
+
ht(O) || (_ = `${_}__${JSON.stringify(O)}`);
|
|
1560
|
+
let M = u.get(_);
|
|
1561
|
+
return M || (M = new Intl.DateTimeFormat(i, de({}, d, O)), u.set(_, M)), w ? M.formatToParts(p) : M.format(p);
|
|
1562
1562
|
}
|
|
1563
1563
|
const Un = [
|
|
1564
1564
|
"localeMatcher",
|
|
@@ -1583,8 +1583,8 @@ const Un = [
|
|
|
1583
1583
|
"fractionalSecondDigits"
|
|
1584
1584
|
];
|
|
1585
1585
|
function Pt(...e) {
|
|
1586
|
-
const [t, n, s, l] = e, a =
|
|
1587
|
-
let c =
|
|
1586
|
+
const [t, n, s, l] = e, a = ee();
|
|
1587
|
+
let c = ee(), u;
|
|
1588
1588
|
if (P(t)) {
|
|
1589
1589
|
const m = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1590
1590
|
if (!m)
|
|
@@ -1600,7 +1600,7 @@ function Pt(...e) {
|
|
|
1600
1600
|
if (isNaN(t.getTime()))
|
|
1601
1601
|
throw Re(Ce.INVALID_DATE_ARGUMENT);
|
|
1602
1602
|
u = t;
|
|
1603
|
-
} else if (
|
|
1603
|
+
} else if (me(t))
|
|
1604
1604
|
u = t;
|
|
1605
1605
|
else
|
|
1606
1606
|
throw Re(Ce.INVALID_ARGUMENT);
|
|
@@ -1616,26 +1616,26 @@ function pn(e, t, n) {
|
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
1618
1618
|
function bn(e, ...t) {
|
|
1619
|
-
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __numberFormatters: u } = e, [m, p, y,
|
|
1620
|
-
|
|
1621
|
-
const w = !!y.part, V =
|
|
1619
|
+
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __numberFormatters: u } = e, [m, p, y, O] = Ft(...t), L = ie(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1620
|
+
ie(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1621
|
+
const w = !!y.part, V = Jt(e, y), A = c(
|
|
1622
1622
|
e,
|
|
1623
1623
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1624
1624
|
l,
|
|
1625
1625
|
V
|
|
1626
1626
|
);
|
|
1627
1627
|
if (!P(m) || m === "")
|
|
1628
|
-
return new Intl.NumberFormat(V,
|
|
1629
|
-
let
|
|
1630
|
-
const
|
|
1631
|
-
for (let
|
|
1632
|
-
|
|
1628
|
+
return new Intl.NumberFormat(V, O).format(p);
|
|
1629
|
+
let D = {}, i, d = null;
|
|
1630
|
+
const T = "number format";
|
|
1631
|
+
for (let S = 0; S < A.length && (i = A[S], D = n[i] || {}, d = D[m], !$(d)); S++)
|
|
1632
|
+
$t(e, m, i, L, T);
|
|
1633
1633
|
if (!$(d) || !P(i))
|
|
1634
1634
|
return s ? vt : m;
|
|
1635
1635
|
let _ = `${i}__${m}`;
|
|
1636
|
-
ht(
|
|
1637
|
-
let
|
|
1638
|
-
return
|
|
1636
|
+
ht(O) || (_ = `${_}__${JSON.stringify(O)}`);
|
|
1637
|
+
let M = u.get(_);
|
|
1638
|
+
return M || (M = new Intl.NumberFormat(i, de({}, d, O)), u.set(_, M)), w ? M.formatToParts(p) : M.format(p);
|
|
1639
1639
|
}
|
|
1640
1640
|
const Vn = [
|
|
1641
1641
|
"localeMatcher",
|
|
@@ -1660,9 +1660,9 @@ const Vn = [
|
|
|
1660
1660
|
"trailingZeroDisplay"
|
|
1661
1661
|
];
|
|
1662
1662
|
function Ft(...e) {
|
|
1663
|
-
const [t, n, s, l] = e, a =
|
|
1664
|
-
let c =
|
|
1665
|
-
if (!
|
|
1663
|
+
const [t, n, s, l] = e, a = ee();
|
|
1664
|
+
let c = ee();
|
|
1665
|
+
if (!me(t))
|
|
1666
1666
|
throw Re(Ce.INVALID_ARGUMENT);
|
|
1667
1667
|
const u = t;
|
|
1668
1668
|
return P(n) ? a.key = n : $(n) && Object.keys(n).forEach((m) => {
|
|
@@ -1676,99 +1676,99 @@ function hn(e, t, n) {
|
|
|
1676
1676
|
s.__numberFormatters.has(a) && s.__numberFormatters.delete(a);
|
|
1677
1677
|
}
|
|
1678
1678
|
}
|
|
1679
|
-
const Ua = (e) => e, Va = (e) => "", Ga = "text", Wa = (e) => e.length === 0 ? "" :
|
|
1679
|
+
const Ua = (e) => e, Va = (e) => "", Ga = "text", Wa = (e) => e.length === 0 ? "" : Yt(e), xa = vs;
|
|
1680
1680
|
function gn(e, t) {
|
|
1681
1681
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1682
1682
|
}
|
|
1683
1683
|
function Za(e) {
|
|
1684
|
-
const t =
|
|
1685
|
-
return e.named && (
|
|
1684
|
+
const t = me(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1685
|
+
return e.named && (me(e.named.count) || me(e.named.n)) ? me(e.named.count) ? e.named.count : me(e.named.n) ? e.named.n : t : t;
|
|
1686
1686
|
}
|
|
1687
1687
|
function Xa(e, t) {
|
|
1688
1688
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1689
1689
|
}
|
|
1690
|
-
function
|
|
1691
|
-
const t = e.locale, n = Za(e), s =
|
|
1692
|
-
|
|
1690
|
+
function Ya(e = {}) {
|
|
1691
|
+
const t = e.locale, n = Za(e), s = z(e.pluralRules) && P(t) && se(e.pluralRules[t]) ? e.pluralRules[t] : gn, l = z(e.pluralRules) && P(t) && se(e.pluralRules[t]) ? gn : void 0, a = (i) => i[s(n, i.length, l)], c = e.list || [], u = (i) => c[i], m = e.named || ee();
|
|
1692
|
+
me(e.pluralIndex) && Xa(n, m);
|
|
1693
1693
|
const p = (i) => m[i];
|
|
1694
1694
|
function y(i, d) {
|
|
1695
|
-
const
|
|
1696
|
-
return
|
|
1695
|
+
const T = se(e.messages) ? e.messages(i, !!d) : z(e.messages) ? e.messages[i] : !1;
|
|
1696
|
+
return T || (e.parent ? e.parent.message(i) : Va);
|
|
1697
1697
|
}
|
|
1698
|
-
const
|
|
1698
|
+
const O = (i) => e.modifiers ? e.modifiers[i] : Ua, L = $(e.processor) && se(e.processor.normalize) ? e.processor.normalize : Wa, w = $(e.processor) && se(e.processor.interpolate) ? e.processor.interpolate : xa, V = $(e.processor) && P(e.processor.type) ? e.processor.type : Ga, D = {
|
|
1699
1699
|
list: u,
|
|
1700
1700
|
named: p,
|
|
1701
1701
|
plural: a,
|
|
1702
1702
|
linked: (i, ...d) => {
|
|
1703
|
-
const [
|
|
1704
|
-
let
|
|
1705
|
-
d.length === 1 ?
|
|
1706
|
-
const
|
|
1703
|
+
const [T, _] = d;
|
|
1704
|
+
let M = "text", S = "";
|
|
1705
|
+
d.length === 1 ? z(T) ? (S = T.modifier || S, M = T.type || M) : P(T) && (S = T || S) : d.length === 2 && (P(T) && (S = T || S), P(_) && (M = _ || M));
|
|
1706
|
+
const E = y(i, !0)(D), J = (
|
|
1707
1707
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1708
|
-
|
|
1708
|
+
M === "vnode" && ce(E) && S ? E[0] : E
|
|
1709
1709
|
);
|
|
1710
|
-
return
|
|
1710
|
+
return S ? O(S)(J, M) : J;
|
|
1711
1711
|
},
|
|
1712
1712
|
message: y,
|
|
1713
1713
|
type: V,
|
|
1714
1714
|
interpolate: w,
|
|
1715
|
-
normalize:
|
|
1716
|
-
values:
|
|
1715
|
+
normalize: L,
|
|
1716
|
+
values: de(ee(), c, m)
|
|
1717
1717
|
};
|
|
1718
|
-
return
|
|
1718
|
+
return D;
|
|
1719
1719
|
}
|
|
1720
1720
|
const vn = () => "", ve = (e) => se(e);
|
|
1721
|
-
function
|
|
1722
|
-
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: c, messages: u } = e, [m, p] = jt(...t), y =
|
|
1723
|
-
|
|
1724
|
-
let [i, d,
|
|
1721
|
+
function En(e, ...t) {
|
|
1722
|
+
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: c, messages: u } = e, [m, p] = jt(...t), y = ie(p.missingWarn) ? p.missingWarn : e.missingWarn, O = ie(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, L = ie(p.escapeParameter) ? p.escapeParameter : e.escapeParameter, w = !!p.resolvedMessage, V = P(p.default) || ie(p.default) ? ie(p.default) ? a ? m : () => m : p.default : n ? a ? m : () => m : null, A = n || V != null && (P(V) || se(V)), D = Jt(e, p);
|
|
1723
|
+
L && Ba(p);
|
|
1724
|
+
let [i, d, T] = w ? [
|
|
1725
1725
|
m,
|
|
1726
|
-
|
|
1727
|
-
u[
|
|
1728
|
-
] : Gn(e, m,
|
|
1729
|
-
if (!w && !(P(_) || Xe(_) || ve(_)) &&
|
|
1726
|
+
D,
|
|
1727
|
+
u[D] || ee()
|
|
1728
|
+
] : Gn(e, m, D, c, O, y), _ = i, M = m;
|
|
1729
|
+
if (!w && !(P(_) || Xe(_) || ve(_)) && A && (_ = V, M = _), !w && (!(P(_) || Xe(_) || ve(_)) || !P(d)))
|
|
1730
1730
|
return l ? vt : m;
|
|
1731
|
-
let
|
|
1732
|
-
const
|
|
1733
|
-
|
|
1734
|
-
},
|
|
1735
|
-
if (
|
|
1731
|
+
let S = !1;
|
|
1732
|
+
const E = () => {
|
|
1733
|
+
S = !0;
|
|
1734
|
+
}, J = ve(_) ? _ : Wn(e, m, d, _, M, E);
|
|
1735
|
+
if (S)
|
|
1736
1736
|
return _;
|
|
1737
|
-
const
|
|
1737
|
+
const g = $a(e, d, T, p), h = Ya(g), C = Ha(e, J, h), I = s ? s(C, m) : C;
|
|
1738
1738
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1739
1739
|
const F = {
|
|
1740
1740
|
timestamp: Date.now(),
|
|
1741
1741
|
key: P(m) ? m : ve(_) ? _.key : "",
|
|
1742
1742
|
locale: d || (ve(_) ? _.locale : ""),
|
|
1743
1743
|
format: P(_) ? _ : ve(_) ? _.source : "",
|
|
1744
|
-
message:
|
|
1744
|
+
message: I
|
|
1745
1745
|
};
|
|
1746
|
-
F.meta =
|
|
1746
|
+
F.meta = de({}, e.__meta, /* @__PURE__ */ Ma() || {}), fa(F);
|
|
1747
1747
|
}
|
|
1748
|
-
return
|
|
1748
|
+
return I;
|
|
1749
1749
|
}
|
|
1750
|
-
function
|
|
1751
|
-
|
|
1750
|
+
function Ba(e) {
|
|
1751
|
+
ce(e.list) ? e.list = e.list.map((t) => P(t) ? tn(t) : t) : z(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1752
1752
|
P(e.named[t]) && (e.named[t] = tn(e.named[t]));
|
|
1753
1753
|
});
|
|
1754
1754
|
}
|
|
1755
1755
|
function Gn(e, t, n, s, l, a) {
|
|
1756
1756
|
const { messages: c, onWarn: u, messageResolver: m, localeFallbacker: p } = e, y = p(e, s, n);
|
|
1757
|
-
let
|
|
1757
|
+
let O = ee(), L, w = null;
|
|
1758
1758
|
const V = "translate";
|
|
1759
|
-
for (let
|
|
1760
|
-
if (!ja(
|
|
1761
|
-
const
|
|
1759
|
+
for (let A = 0; A < y.length && (L = y[A], O = c[L] || ee(), (w = m(O, t)) === null && (w = O[t]), !(P(w) || Xe(w) || ve(w))); A++)
|
|
1760
|
+
if (!ja(L, y)) {
|
|
1761
|
+
const D = $t(
|
|
1762
1762
|
e,
|
|
1763
1763
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1764
1764
|
t,
|
|
1765
|
-
|
|
1765
|
+
L,
|
|
1766
1766
|
a,
|
|
1767
1767
|
V
|
|
1768
1768
|
);
|
|
1769
|
-
|
|
1769
|
+
D !== t && (w = D);
|
|
1770
1770
|
}
|
|
1771
|
-
return [w,
|
|
1771
|
+
return [w, L, O];
|
|
1772
1772
|
}
|
|
1773
1773
|
function Wn(e, t, n, s, l, a) {
|
|
1774
1774
|
const { messageCompiler: c, warnHtmlMessage: u } = e;
|
|
@@ -1780,20 +1780,20 @@ function Wn(e, t, n, s, l, a) {
|
|
|
1780
1780
|
const p = () => s;
|
|
1781
1781
|
return p.locale = n, p.key = t, p;
|
|
1782
1782
|
}
|
|
1783
|
-
const m = c(s,
|
|
1783
|
+
const m = c(s, Ja(e, n, l, s, u, a));
|
|
1784
1784
|
return m.locale = n, m.key = t, m.source = s, m;
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1786
|
+
function Ha(e, t, n) {
|
|
1787
1787
|
return t(n);
|
|
1788
1788
|
}
|
|
1789
1789
|
function jt(...e) {
|
|
1790
|
-
const [t, n, s] = e, l =
|
|
1791
|
-
if (!P(t) && !
|
|
1790
|
+
const [t, n, s] = e, l = ee();
|
|
1791
|
+
if (!P(t) && !me(t) && !ve(t) && !Xe(t))
|
|
1792
1792
|
throw Re(Ce.INVALID_ARGUMENT);
|
|
1793
|
-
const a =
|
|
1794
|
-
return
|
|
1793
|
+
const a = me(t) ? String(t) : (ve(t), t);
|
|
1794
|
+
return me(n) ? l.plural = n : P(n) ? l.default = n : $(n) && !ht(n) ? l.named = n : ce(n) && (l.list = n), me(s) ? l.plural = s : P(s) ? l.default = s : $(s) && de(l, s), [a, l];
|
|
1795
1795
|
}
|
|
1796
|
-
function
|
|
1796
|
+
function Ja(e, t, n, s, l, a) {
|
|
1797
1797
|
return {
|
|
1798
1798
|
locale: t,
|
|
1799
1799
|
key: n,
|
|
@@ -1804,15 +1804,15 @@ function $a(e, t, n, s, l, a) {
|
|
|
1804
1804
|
onCacheKey: (c) => fs(t, n, c)
|
|
1805
1805
|
};
|
|
1806
1806
|
}
|
|
1807
|
-
function
|
|
1808
|
-
const { modifiers: l, pluralRules: a, messageResolver: c, fallbackLocale: u, fallbackWarn: m, missingWarn: p, fallbackContext: y } = e,
|
|
1807
|
+
function $a(e, t, n, s) {
|
|
1808
|
+
const { modifiers: l, pluralRules: a, messageResolver: c, fallbackLocale: u, fallbackWarn: m, missingWarn: p, fallbackContext: y } = e, L = {
|
|
1809
1809
|
locale: t,
|
|
1810
1810
|
modifiers: l,
|
|
1811
1811
|
pluralRules: a,
|
|
1812
1812
|
messages: (w, V) => {
|
|
1813
|
-
let
|
|
1814
|
-
if (
|
|
1815
|
-
const [, ,
|
|
1813
|
+
let A = c(n, w);
|
|
1814
|
+
if (A == null && (y || V)) {
|
|
1815
|
+
const [, , D] = Gn(
|
|
1816
1816
|
y || e,
|
|
1817
1817
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1818
1818
|
w,
|
|
@@ -1821,26 +1821,26 @@ function Ja(e, t, n, s) {
|
|
|
1821
1821
|
m,
|
|
1822
1822
|
p
|
|
1823
1823
|
);
|
|
1824
|
-
|
|
1824
|
+
A = c(D, w);
|
|
1825
1825
|
}
|
|
1826
|
-
if (P(
|
|
1827
|
-
let
|
|
1828
|
-
const d = Wn(e, w, t,
|
|
1829
|
-
|
|
1826
|
+
if (P(A) || Xe(A)) {
|
|
1827
|
+
let D = !1;
|
|
1828
|
+
const d = Wn(e, w, t, A, w, () => {
|
|
1829
|
+
D = !0;
|
|
1830
1830
|
});
|
|
1831
|
-
return
|
|
1832
|
-
} else return ve(
|
|
1831
|
+
return D ? vn : d;
|
|
1832
|
+
} else return ve(A) ? A : vn;
|
|
1833
1833
|
}
|
|
1834
1834
|
};
|
|
1835
|
-
return e.processor && (
|
|
1835
|
+
return e.processor && (L.processor = e.processor), s.list && (L.list = s.list), s.named && (L.named = s.named), me(s.plural) && (L.pluralIndex = s.plural), L;
|
|
1836
1836
|
}
|
|
1837
|
-
|
|
1838
|
-
var Ka = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_0a98789b-bda3-48bb-ba13-1f807a2683e0", 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_0a98789b-bda3-48bb-ba13-1f807a2683e0", 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: "1849", ACTIONS_ORCHESTRATION_ID: "17438128-6fd9-4cd6-850e-7f8cf64f4859.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:10904", 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: "26627495912", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "f0ba85fb30d1455771547913b8449b670f55158f", 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/feat/apply-figma-design-clean", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9mZWF0L2FwcGx5LWZpZ21hLWRlc2lnbi1jbGVhblwiLFwiUGVybWlzc2lvblwiOjN9LHtcIlNjb3BlXCI6XCJyZWZzL2hlYWRzL21haW5cIixcIlBlcm1pc3Npb25cIjoxfV0iLCJhY3NsIjoiMTAiLCJhdWQiOiJ2c286NmY5NmZhODktYjdiZi00ODc4LWJhZDMtODk4MDA2NTY2YjZlIiwiYmlsbGluZ19vd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsImV4cCI6MTc4MDA2NjQwNCwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiaWF0IjoxNzgwMDQ0MjA0LCJpc3MiOiJodHRwczovL3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tIiwiam9iX2lkIjoiMjBkOWJmZGItMDkxOS01ZTMwLWFlNWYtMTQ3YjgzYTllOTRkIiwibmFtZWlkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwibmJmIjoxNzgwMDQzOTA0LCJvaWRjX2V4dHJhIjoie1wiYWN0b3JcIjpcIkNhc3RhLW1lcmVcIixcImFjdG9yX2lkXCI6XCI4MjI5ODAxN1wiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI3ODQ2NzcxNTA4MlwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiMjIwZjdlNzZlMGRjYTA5M2M0NzUwMzdiOGU3YzBmNTUzYjYxNzIzOVwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL2ZlYXQvYXBwbHktZmlnbWEtZGVzaWduLWNsZWFuXCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjI2NjI3NDk1OTEyXCIsXCJydW5fbnVtYmVyXCI6XCIxMDFcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCJmMGJhODVmYjMwZDE0NTU3NzE1NDc5MTNiODQ0OWI2NzBmNTUxNThmXCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy9mZWF0L2FwcGx5LWZpZ21hLWRlc2lnbi1jbGVhblwiLFwid29ya2Zsb3dfc2hhXCI6XCJmMGJhODVmYjMwZDE0NTU3NzE1NDc5MTNiODQ0OWI2NzBmNTUxNThmXCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9mZWF0L2FwcGx5LWZpZ21hLWRlc2lnbi1jbGVhbiIsIm9yY2hfaWQiOiIxNzQzODEyOC02ZmQ5LTRjZDYtODUwZS03ZjhjZjY0ZjQ4NTkucHVibGlzaC5wdWJsaXNoLl9fZGVmYXVsdCIsIm93bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwicGxhbl9pZCI6IjE3NDM4MTI4LTZmZDktNGNkNi04NTBlLTdmOGNmNjRmNDg1OSIsInJlcG9zaXRvcnlfaWQiOiIxMTI0NjcyMjM1IiwicmVwb3NpdG9yeV9vd25lcl9pZCI6IjU0ODMxNTE1IiwicmVwb3NpdG9yeV92aXNpYmlsaXR5IjoicHJpdmF0ZSIsInJ1bl9pZCI6IjI2NjI3NDk1OTEyIiwicnVuX251bWJlciI6IjEwMSIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDAwNzM0MjAiLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czoxNzQzODEyOC02ZmQ5LTRjZDYtODUwZS03ZjhjZjY0ZjQ4NTk6MjBkOWJmZGItMDkxOS01ZTMwLWFlNWYtMTQ3YjgzYTllOTRkIEFjdGlvbnMuUnVubmVyOjE3NDM4MTI4LTZmZDktNGNkNi04NTBlLTdmOGNmNjRmNDg1OToyMGQ5YmZkYi0wOTE5LTVlMzAtYWU1Zi0xNDdiODNhOWU5NGQgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6MTc0MzgxMjgtNmZkOS00Y2Q2LTg1MGUtN2Y4Y2Y2NGY0ODU5OjIwZDliZmRiLTA5MTktNWUzMC1hZTVmLTE0N2I4M2E5ZTk0ZCBnZW5lcmF0ZV9pZF90b2tlbjoxNzQzODEyOC02ZmQ5LTRjZDYtODUwZS03ZjhjZjY0ZjQ4NTk6MjBkOWJmZGItMDkxOS01ZTMwLWFlNWYtMTQ3YjgzYTllOTRkIEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiZjBiYTg1ZmIzMGQxNDU1NzcxNTQ3OTEzYjg0NDliNjcwZjU1MTU4ZiIsInRydXN0X3RpZXIiOiIxIn0.aeS4xo_WI64A0OPHk-__e-ZFLj7-euh2gd2Hv9y90_ZngV0i5AAjg5zWMgBuCbDMraMsgot-pV7-fP-rxbf84QuilfkvGmsLchGNKg2KLGKTA6hQpJIpQ4sH44n2GP8lfmIab720KqcCc38wASM6qU0O75WOK-COU5Uukld1OBsJal69R2-UP0VoVcZK8MX8SCe5iIb7I1XMwyn4G7vmGBz70s0fZNn6o92eqhEGuDe9d77iPYCsWDLJfyd2iBMoGHRy__tTtgubc66dc6ujPQHr0UeENxUSmiXafBRMOALaCWER3QhJBLEqKylsH1zKTIYyFDGHuyYPOkIAx5wJww", 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_66c20d25-8c22-4fdb-a2b9-d9cdcf346a78", INVOCATION_ID: "ac78e26f0bba4d7ab68b7053e455cdd2", 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: "101", 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 1000073420", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "feat/apply-figma-design-clean", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "^2.14.36", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__casl_ability: "^3.4.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^4.0.0", npm_package_devDependencies__vue_eslint_config_prettier: "^8.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.0.17-dev.3", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts", npm_package_dependencies__feedmepos_hrm_permission: "workspace:*", npm_package_devDependencies__rushstack_eslint_patch: "^1.3.3", npm_package_devDependencies_eslint_plugin_unused_imports: "^4.3.0", npm_package_devDependencies_jsdom: "^24.0.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_uuid: "^10.0.0", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "f0ba85fb30d1455771547913b8449b670f55158f", 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/feat/apply-figma-design-clean", GITHUB_ACTOR: "Casta-mere", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", npm_package_devDependencies_globals: "^16.5.0", npm_package_scripts_format: "prettier --write src/", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_0a98789b-bda3-48bb-ba13-1f807a2683e0", 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/179//idtoken/17438128-6fd9-4cd6-850e-7f8cf64f4859/20d9bfdb-0919-5e30-ae5f-147b83a9e94d?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_0a98789b-bda3-48bb-ba13-1f807a2683e0", 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_0a98789b-bda3-48bb-ba13-1f807a2683e0", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1839
|
-
const
|
|
1840
|
-
function
|
|
1837
|
+
Bs();
|
|
1838
|
+
var za = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_4c393f0a-b767-4272-8ea0-aebc6bfcb4a6", 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_4c393f0a-b767-4272-8ea0-aebc6bfcb4a6", 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: "d7391573-22d0-452c-ba1b-7ed7be789afa.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:14837", 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: "26871872500", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "57bb28d799cd9300741d34e5ba0d63ac0c72fa5b", 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/feat/apply-figma-design-clean", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9mZWF0L2FwcGx5LWZpZ21hLWRlc2lnbi1jbGVhblwiLFwiUGVybWlzc2lvblwiOjN9LHtcIlNjb3BlXCI6XCJyZWZzL2hlYWRzL21haW5cIixcIlBlcm1pc3Npb25cIjoxfV0iLCJhY3NsIjoiMTAiLCJhdWQiOiJ2c286NmY5NmZhODktYjdiZi00ODc4LWJhZDMtODk4MDA2NTY2YjZlIiwiYmlsbGluZ19vd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsImV4cCI6MTc4MDQ5NjAzOSwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiaWF0IjoxNzgwNDczODM5LCJpc3MiOiJodHRwczovL3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tIiwiam9iX2lkIjoiYmZjZmY3NjgtOTZjYi01Y2E0LTlhZjctNzM1Mjc1YWE1MzhlIiwibmFtZWlkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwibmJmIjoxNzgwNDczNTM5LCJvaWRjX2V4dHJhIjoie1wiYWN0b3JcIjpcImp1bi1sZWUtZmVlZG1lXCIsXCJhY3Rvcl9pZFwiOlwiMjM5MjgyODYyXCIsXCJiYXNlX3JlZlwiOlwiXCIsXCJjaGVja19ydW5faWRcIjpcIjc5MjQ4OTU1MjI1XCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluXCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCJlMGRhYzNlOTI2ODcyNzBmYmQyYmM1ZWJiZWZjNWViOWU1YjA1Yjk4XCIsXCJyZWZcIjpcInJlZnMvaGVhZHMvZmVhdC9hcHBseS1maWdtYS1kZXNpZ24tY2xlYW5cIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJyZXBvc2l0b3J5XCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2VcIixcInJlcG9zaXRvcnlfaWRcIjpcIjExMjQ2NzIyMzVcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJ1bl9pZFwiOlwiMjY4NzE4NzI1MDBcIixcInJ1bl9udW1iZXJcIjpcIjEwNFwiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcIjU3YmIyOGQ3OTljZDkzMDA3NDFkMzRlNWJhMGQ2M2FjMGM3MmZhNWJcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIGhybS1wb3J0YWxcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtaHJtLXBvcnRhbC10cnVzdGVkLnltbEByZWZzL2hlYWRzL2ZlYXQvYXBwbHktZmlnbWEtZGVzaWduLWNsZWFuXCIsXCJ3b3JrZmxvd19zaGFcIjpcIjU3YmIyOGQ3OTljZDkzMDA3NDFkMzRlNWJhMGQ2M2FjMGM3MmZhNWJcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL2hybS1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL2ZlYXQvYXBwbHktZmlnbWEtZGVzaWduLWNsZWFuIiwib3JjaF9pZCI6ImQ3MzkxNTczLTIyZDAtNDUyYy1iYTFiLTdlZDdiZTc4OWFmYS5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiZDczOTE1NzMtMjJkMC00NTJjLWJhMWItN2VkN2JlNzg5YWZhIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMjY4NzE4NzI1MDAiLCJydW5fbnVtYmVyIjoiMTA0IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDA3NDE2NiIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOmQ3MzkxNTczLTIyZDAtNDUyYy1iYTFiLTdlZDdiZTc4OWFmYTpiZmNmZjc2OC05NmNiLTVjYTQtOWFmNy03MzUyNzVhYTUzOGUgQWN0aW9ucy5SdW5uZXI6ZDczOTE1NzMtMjJkMC00NTJjLWJhMWItN2VkN2JlNzg5YWZhOmJmY2ZmNzY4LTk2Y2ItNWNhNC05YWY3LTczNTI3NWFhNTM4ZSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czpkNzM5MTU3My0yMmQwLTQ1MmMtYmExYi03ZWQ3YmU3ODlhZmE6YmZjZmY3NjgtOTZjYi01Y2E0LTlhZjctNzM1Mjc1YWE1MzhlIGdlbmVyYXRlX2lkX3Rva2VuOmQ3MzkxNTczLTIyZDAtNDUyYy1iYTFiLTdlZDdiZTc4OWFmYTpiZmNmZjc2OC05NmNiLTVjYTQtOWFmNy03MzUyNzVhYTUzOGUgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiI1N2JiMjhkNzk5Y2Q5MzAwNzQxZDM0ZTViYTBkNjNhYzBjNzJmYTViIiwidHJ1c3RfdGllciI6IjEifQ.QSLL4qx2mLTSICFGDFRejON_L7WJxFKmXsxLNcKRFmKG6pDoxcu8-QjGMfZbA0OkcyabkGVjRzPP1ZnYlPgpDs1N5EB_BtVCjKnflL1hRBezTCCE7dQh1qongtMLsYtqMHHB9u6_emyiHl05IPaeBKVWM0YEQ1VYtmYCUxVVTLXkl17OeOEwrcBi7Efh2JMxqP7tQBJyp37NqiHoWZzh8rITii5kyqv8-XWLeUkjmOGPVCsrGK-uE_WsVuj5jzIPTFUpCuc07clMrcxuBSBBjGMyyie-9Q0bBEWsU-Fu1Fy0O7FDICCYoNwt01gxpaVOzBruI55ePpfE7Pt8bZwPhg", 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_c5631c61-acdb-4b9d-9e0f-5338f5987c31", INVOCATION_ID: "0ec3dcff7bfc469f8be878649dbc5447", 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: "104", 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 1000074166", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "feat/apply-figma-design-clean", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "^2.14.36", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__casl_ability: "^3.4.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^4.0.0", npm_package_devDependencies__vue_eslint_config_prettier: "^8.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.0.17-dev.5", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts", npm_package_dependencies__feedmepos_hrm_permission: "workspace:*", npm_package_devDependencies__rushstack_eslint_patch: "^1.3.3", npm_package_devDependencies_eslint_plugin_unused_imports: "^4.3.0", npm_package_devDependencies_jsdom: "^24.0.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_uuid: "^10.0.0", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "57bb28d799cd9300741d34e5ba0d63ac0c72fa5b", 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/feat/apply-figma-design-clean", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", npm_package_devDependencies_globals: "^16.5.0", npm_package_scripts_format: "prettier --write src/", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_4c393f0a-b767-4272-8ea0-aebc6bfcb4a6", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_package_devDependencies_vue_eslint_parser: "^10.2.0", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/206//idtoken/d7391573-22d0-452c-ba1b-7ed7be789afa/bfcff768-96cb-5ca4-9af7-735275aa538e?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_4c393f0a-b767-4272-8ea0-aebc6bfcb4a6", 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_4c393f0a-b767-4272-8ea0-aebc6bfcb4a6", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1839
|
+
const Ka = "10.0.5";
|
|
1840
|
+
function Qa() {
|
|
1841
1841
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Fe().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Fe().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Fe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Fe().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1842
1842
|
}
|
|
1843
|
-
const
|
|
1843
|
+
const Ye = {
|
|
1844
1844
|
// composer module errors
|
|
1845
1845
|
UNEXPECTED_RETURN_TYPE: pa,
|
|
1846
1846
|
// 24
|
|
@@ -1853,49 +1853,49 @@ const Be = {
|
|
|
1853
1853
|
// unexpected error
|
|
1854
1854
|
UNEXPECTED_ERROR: 32
|
|
1855
1855
|
};
|
|
1856
|
-
function
|
|
1856
|
+
function tt(e, ...t) {
|
|
1857
1857
|
return gt(e, null, void 0);
|
|
1858
1858
|
}
|
|
1859
1859
|
const Ut = /* @__PURE__ */ je("__translateVNode"), Vt = /* @__PURE__ */ je("__datetimeParts"), Gt = /* @__PURE__ */ je("__numberParts"), qa = je("__setPluralRules"), xn = /* @__PURE__ */ je("__injectWithOption"), Wt = /* @__PURE__ */ je("__dispose");
|
|
1860
|
-
function
|
|
1861
|
-
if (!
|
|
1860
|
+
function nt(e) {
|
|
1861
|
+
if (!z(e))
|
|
1862
1862
|
return e;
|
|
1863
1863
|
for (const t in e)
|
|
1864
|
-
if (
|
|
1864
|
+
if (Ne(e, t))
|
|
1865
1865
|
if (!t.includes("."))
|
|
1866
|
-
|
|
1866
|
+
z(e[t]) && nt(e[t]);
|
|
1867
1867
|
else {
|
|
1868
1868
|
const n = t.split("."), s = n.length - 1;
|
|
1869
1869
|
let l = e, a = !1;
|
|
1870
1870
|
for (let c = 0; c < s; c++) {
|
|
1871
|
-
if (n[c] in l || (l[n[c]] =
|
|
1871
|
+
if (n[c] in l || (l[n[c]] = ee()), !z(l[n[c]])) {
|
|
1872
1872
|
a = !0;
|
|
1873
1873
|
break;
|
|
1874
1874
|
}
|
|
1875
1875
|
l = l[n[c]];
|
|
1876
1876
|
}
|
|
1877
|
-
a || (l[n[s]] = e[t], delete e[t]),
|
|
1877
|
+
a || (l[n[s]] = e[t], delete e[t]), z(l[n[s]]) && nt(l[n[s]]);
|
|
1878
1878
|
}
|
|
1879
1879
|
return e;
|
|
1880
1880
|
}
|
|
1881
1881
|
function Zn(e, t) {
|
|
1882
|
-
const { messages: n, __i18n: s, messageResolver: l, flatJson: a } = t, c = $(n) ? n :
|
|
1883
|
-
if (
|
|
1882
|
+
const { messages: n, __i18n: s, messageResolver: l, flatJson: a } = t, c = $(n) ? n : ce(s) ? ee() : { [e]: ee() };
|
|
1883
|
+
if (ce(s) && s.forEach((u) => {
|
|
1884
1884
|
if ("locale" in u && "resource" in u) {
|
|
1885
1885
|
const { locale: m, resource: p } = u;
|
|
1886
|
-
m ? (c[m] = c[m] ||
|
|
1886
|
+
m ? (c[m] = c[m] || ee(), ft(p, c[m])) : ft(p, c);
|
|
1887
1887
|
} else
|
|
1888
1888
|
P(u) && ft(JSON.parse(u), c);
|
|
1889
1889
|
}), l == null && a)
|
|
1890
1890
|
for (const u in c)
|
|
1891
|
-
|
|
1891
|
+
Ne(c, u) && nt(c[u]);
|
|
1892
1892
|
return c;
|
|
1893
1893
|
}
|
|
1894
1894
|
function Xn(e) {
|
|
1895
1895
|
return e.type;
|
|
1896
1896
|
}
|
|
1897
1897
|
function er(e, t, n) {
|
|
1898
|
-
let s =
|
|
1898
|
+
let s = z(t.messages) ? t.messages : ee();
|
|
1899
1899
|
"__i18nGlobal" in n && (s = Zn(e.locale.value, {
|
|
1900
1900
|
messages: s,
|
|
1901
1901
|
__i18n: n.__i18nGlobal
|
|
@@ -1905,13 +1905,13 @@ function er(e, t, n) {
|
|
|
1905
1905
|
e.mergeLocaleMessage(a, s[a]);
|
|
1906
1906
|
});
|
|
1907
1907
|
{
|
|
1908
|
-
if (
|
|
1908
|
+
if (z(t.datetimeFormats)) {
|
|
1909
1909
|
const a = Object.keys(t.datetimeFormats);
|
|
1910
1910
|
a.length && a.forEach((c) => {
|
|
1911
1911
|
e.mergeDateTimeFormat(c, t.datetimeFormats[c]);
|
|
1912
1912
|
});
|
|
1913
1913
|
}
|
|
1914
|
-
if (
|
|
1914
|
+
if (z(t.numberFormats)) {
|
|
1915
1915
|
const a = Object.keys(t.numberFormats);
|
|
1916
1916
|
a.length && a.forEach((c) => {
|
|
1917
1917
|
e.mergeNumberFormat(c, t.numberFormats[c]);
|
|
@@ -1919,8 +1919,8 @@ function er(e, t, n) {
|
|
|
1919
1919
|
}
|
|
1920
1920
|
}
|
|
1921
1921
|
}
|
|
1922
|
-
function
|
|
1923
|
-
return _e(
|
|
1922
|
+
function In(e) {
|
|
1923
|
+
return _e(Qn, null, e, 0);
|
|
1924
1924
|
}
|
|
1925
1925
|
const Nn = "__INTLIFY_META__", yn = () => [], tr = () => !1;
|
|
1926
1926
|
let Tn = 0;
|
|
@@ -1933,238 +1933,238 @@ const nr = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
|
1933
1933
|
return e && (t = Xn(e)[Nn]) ? { [Nn]: t } : null;
|
|
1934
1934
|
};
|
|
1935
1935
|
function sr(e = {}) {
|
|
1936
|
-
const { __root: t, __injectWithOption: n } = e, s = t === void 0, l = e.flatJson, a = qt ? bt :
|
|
1937
|
-
let c =
|
|
1936
|
+
const { __root: t, __injectWithOption: n } = e, s = t === void 0, l = e.flatJson, a = qt ? bt : zn;
|
|
1937
|
+
let c = ie(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1938
1938
|
const u = a(
|
|
1939
1939
|
// prettier-ignore
|
|
1940
1940
|
t && c ? t.locale.value : P(e.locale) ? e.locale : pt
|
|
1941
1941
|
), m = a(
|
|
1942
1942
|
// prettier-ignore
|
|
1943
|
-
t && c ? t.fallbackLocale.value : P(e.fallbackLocale) ||
|
|
1944
|
-
), p = a(Zn(u.value, e)), y = a($(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }),
|
|
1945
|
-
let
|
|
1946
|
-
const
|
|
1947
|
-
let
|
|
1948
|
-
|
|
1943
|
+
t && c ? t.fallbackLocale.value : P(e.fallbackLocale) || ce(e.fallbackLocale) || $(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
1944
|
+
), p = a(Zn(u.value, e)), y = a($(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), O = a($(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
|
|
1945
|
+
let L = t ? t.missingWarn : ie(e.missingWarn) || _t(e.missingWarn) ? e.missingWarn : !0, w = t ? t.fallbackWarn : ie(e.fallbackWarn) || _t(e.fallbackWarn) ? e.fallbackWarn : !0, V = t ? t.fallbackRoot : ie(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.fallbackFormat, D = se(e.missing) ? e.missing : null, i = se(e.missing) ? kn(e.missing) : null, d = se(e.postTranslation) ? e.postTranslation : null, T = t ? t.warnHtmlMessage : ie(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, _ = !!e.escapeParameter;
|
|
1946
|
+
const M = t ? t.modifiers : $(e.modifiers) ? e.modifiers : {};
|
|
1947
|
+
let S = e.pluralRules || t && t.pluralRules, E;
|
|
1948
|
+
E = (() => {
|
|
1949
1949
|
s && dn(null);
|
|
1950
1950
|
const f = {
|
|
1951
|
-
version:
|
|
1951
|
+
version: Ka,
|
|
1952
1952
|
locale: u.value,
|
|
1953
1953
|
fallbackLocale: m.value,
|
|
1954
1954
|
messages: p.value,
|
|
1955
|
-
modifiers:
|
|
1956
|
-
pluralRules:
|
|
1955
|
+
modifiers: M,
|
|
1956
|
+
pluralRules: S,
|
|
1957
1957
|
missing: i === null ? void 0 : i,
|
|
1958
|
-
missingWarn:
|
|
1958
|
+
missingWarn: L,
|
|
1959
1959
|
fallbackWarn: w,
|
|
1960
|
-
fallbackFormat:
|
|
1960
|
+
fallbackFormat: A,
|
|
1961
1961
|
unresolving: !0,
|
|
1962
1962
|
postTranslation: d === null ? void 0 : d,
|
|
1963
|
-
warnHtmlMessage:
|
|
1963
|
+
warnHtmlMessage: T,
|
|
1964
1964
|
escapeParameter: _,
|
|
1965
1965
|
messageResolver: e.messageResolver,
|
|
1966
1966
|
messageCompiler: e.messageCompiler,
|
|
1967
1967
|
__meta: { framework: "vue" }
|
|
1968
1968
|
};
|
|
1969
|
-
f.datetimeFormats = y.value, f.numberFormats =
|
|
1970
|
-
const
|
|
1971
|
-
return s && dn(
|
|
1972
|
-
})(), Ke(
|
|
1973
|
-
function
|
|
1969
|
+
f.datetimeFormats = y.value, f.numberFormats = O.value, f.__datetimeFormatters = $(E) ? E.__datetimeFormatters : void 0, f.__numberFormatters = $(E) ? E.__numberFormatters : void 0;
|
|
1970
|
+
const k = Pa(f);
|
|
1971
|
+
return s && dn(k), k;
|
|
1972
|
+
})(), Ke(E, u.value, m.value);
|
|
1973
|
+
function g() {
|
|
1974
1974
|
return [
|
|
1975
1975
|
u.value,
|
|
1976
1976
|
m.value,
|
|
1977
1977
|
p.value,
|
|
1978
1978
|
y.value,
|
|
1979
|
-
|
|
1979
|
+
O.value
|
|
1980
1980
|
];
|
|
1981
1981
|
}
|
|
1982
|
-
const
|
|
1982
|
+
const h = q({
|
|
1983
1983
|
get: () => u.value,
|
|
1984
1984
|
set: (f) => {
|
|
1985
|
-
u.value = f,
|
|
1985
|
+
u.value = f, E.locale = u.value;
|
|
1986
1986
|
}
|
|
1987
|
-
}), C =
|
|
1987
|
+
}), C = q({
|
|
1988
1988
|
get: () => m.value,
|
|
1989
1989
|
set: (f) => {
|
|
1990
|
-
m.value = f,
|
|
1990
|
+
m.value = f, E.fallbackLocale = m.value, Ke(E, u.value, f);
|
|
1991
1991
|
}
|
|
1992
|
-
}),
|
|
1993
|
-
function
|
|
1992
|
+
}), I = q(() => p.value), F = /* @__PURE__ */ q(() => y.value), x = /* @__PURE__ */ q(() => O.value);
|
|
1993
|
+
function N() {
|
|
1994
1994
|
return se(d) ? d : null;
|
|
1995
1995
|
}
|
|
1996
|
-
function
|
|
1997
|
-
d = f,
|
|
1996
|
+
function R(f) {
|
|
1997
|
+
d = f, E.postTranslation = f;
|
|
1998
1998
|
}
|
|
1999
|
-
function
|
|
2000
|
-
return
|
|
1999
|
+
function v() {
|
|
2000
|
+
return D;
|
|
2001
2001
|
}
|
|
2002
|
-
function
|
|
2003
|
-
f !== null && (i = kn(f)),
|
|
2002
|
+
function W(f) {
|
|
2003
|
+
f !== null && (i = kn(f)), D = f, E.missing = i;
|
|
2004
2004
|
}
|
|
2005
|
-
const
|
|
2006
|
-
|
|
2005
|
+
const G = (f, k, ne, re, Pe, st) => {
|
|
2006
|
+
g();
|
|
2007
2007
|
let Ge;
|
|
2008
2008
|
try {
|
|
2009
|
-
|
|
2009
|
+
za.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (E.fallbackContext = t ? wa() : void 0), Ge = f(E);
|
|
2010
2010
|
} finally {
|
|
2011
|
-
__INTLIFY_PROD_DEVTOOLS__, s || (
|
|
2011
|
+
__INTLIFY_PROD_DEVTOOLS__, s || (E.fallbackContext = void 0);
|
|
2012
2012
|
}
|
|
2013
|
-
if (
|
|
2014
|
-
|
|
2015
|
-
const [
|
|
2016
|
-
return t && V ?
|
|
2013
|
+
if (ne !== "translate exists" && // for not `te` (e.g `t`)
|
|
2014
|
+
me(Ge) && Ge === vt || ne === "translate exists" && !Ge) {
|
|
2015
|
+
const [Jn, Wr] = k();
|
|
2016
|
+
return t && V ? re(t) : Pe(Jn);
|
|
2017
2017
|
} else {
|
|
2018
2018
|
if (st(Ge))
|
|
2019
2019
|
return Ge;
|
|
2020
|
-
throw
|
|
2020
|
+
throw tt(Ye.UNEXPECTED_RETURN_TYPE);
|
|
2021
2021
|
}
|
|
2022
2022
|
};
|
|
2023
2023
|
function j(...f) {
|
|
2024
|
-
return
|
|
2024
|
+
return G((k) => Reflect.apply(En, null, [k, ...f]), () => jt(...f), "translate", (k) => Reflect.apply(k.t, k, [...f]), (k) => k, (k) => P(k));
|
|
2025
2025
|
}
|
|
2026
|
-
function
|
|
2027
|
-
const [
|
|
2028
|
-
if (
|
|
2029
|
-
throw
|
|
2030
|
-
return j(
|
|
2026
|
+
function te(...f) {
|
|
2027
|
+
const [k, ne, re] = f;
|
|
2028
|
+
if (re && !z(re))
|
|
2029
|
+
throw tt(Ye.INVALID_ARGUMENT);
|
|
2030
|
+
return j(k, ne, de({ resolvedMessage: !0 }, re || {}));
|
|
2031
2031
|
}
|
|
2032
|
-
function
|
|
2033
|
-
return
|
|
2032
|
+
function Y(...f) {
|
|
2033
|
+
return G((k) => Reflect.apply(_n, null, [k, ...f]), () => Pt(...f), "datetime format", (k) => Reflect.apply(k.d, k, [...f]), () => un, (k) => P(k));
|
|
2034
2034
|
}
|
|
2035
2035
|
function he(...f) {
|
|
2036
|
-
return
|
|
2036
|
+
return G((k) => Reflect.apply(bn, null, [k, ...f]), () => Ft(...f), "number format", (k) => Reflect.apply(k.n, k, [...f]), () => un, (k) => P(k));
|
|
2037
2037
|
}
|
|
2038
|
-
function
|
|
2039
|
-
return f.map((
|
|
2038
|
+
function fe(f) {
|
|
2039
|
+
return f.map((k) => P(k) || me(k) || ie(k) ? In(String(k)) : k);
|
|
2040
2040
|
}
|
|
2041
|
-
const
|
|
2042
|
-
normalize:
|
|
2041
|
+
const Z = {
|
|
2042
|
+
normalize: fe,
|
|
2043
2043
|
interpolate: (f) => f,
|
|
2044
2044
|
type: "vnode"
|
|
2045
2045
|
};
|
|
2046
|
-
function
|
|
2047
|
-
return
|
|
2048
|
-
let
|
|
2049
|
-
const
|
|
2046
|
+
function Ee(...f) {
|
|
2047
|
+
return G((k) => {
|
|
2048
|
+
let ne;
|
|
2049
|
+
const re = k;
|
|
2050
2050
|
try {
|
|
2051
|
-
|
|
2051
|
+
re.processor = Z, ne = Reflect.apply(En, null, [re, ...f]);
|
|
2052
2052
|
} finally {
|
|
2053
|
-
|
|
2053
|
+
re.processor = null;
|
|
2054
2054
|
}
|
|
2055
|
-
return
|
|
2056
|
-
}, () => jt(...f), "translate", (
|
|
2055
|
+
return ne;
|
|
2056
|
+
}, () => jt(...f), "translate", (k) => k[Ut](...f), (k) => [In(k)], (k) => ce(k));
|
|
2057
2057
|
}
|
|
2058
2058
|
function He(...f) {
|
|
2059
|
-
return
|
|
2059
|
+
return G((k) => Reflect.apply(bn, null, [k, ...f]), () => Ft(...f), "number format", (k) => k[Gt](...f), yn, (k) => P(k) || ce(k));
|
|
2060
2060
|
}
|
|
2061
|
-
function
|
|
2062
|
-
return
|
|
2061
|
+
function Je(...f) {
|
|
2062
|
+
return G((k) => Reflect.apply(_n, null, [k, ...f]), () => Pt(...f), "datetime format", (k) => k[Vt](...f), yn, (k) => P(k) || ce(k));
|
|
2063
2063
|
}
|
|
2064
|
-
function
|
|
2065
|
-
|
|
2064
|
+
function It(f) {
|
|
2065
|
+
S = f, E.pluralRules = S;
|
|
2066
2066
|
}
|
|
2067
|
-
function Nt(f,
|
|
2068
|
-
return
|
|
2067
|
+
function Nt(f, k) {
|
|
2068
|
+
return G(() => {
|
|
2069
2069
|
if (!f)
|
|
2070
2070
|
return !1;
|
|
2071
|
-
const
|
|
2071
|
+
const ne = P(k) ? k : u.value, re = Ue(ne), Pe = E.messageResolver(re, f);
|
|
2072
2072
|
return Xe(Pe) || ve(Pe) || P(Pe);
|
|
2073
|
-
}, () => [f], "translate exists", (
|
|
2073
|
+
}, () => [f], "translate exists", (ne) => Reflect.apply(ne.te, ne, [f, k]), tr, (ne) => ie(ne));
|
|
2074
2074
|
}
|
|
2075
2075
|
function yt(f) {
|
|
2076
|
-
let
|
|
2077
|
-
const
|
|
2078
|
-
for (let
|
|
2079
|
-
const Pe = p.value[
|
|
2076
|
+
let k = null;
|
|
2077
|
+
const ne = Dn(E, m.value, u.value);
|
|
2078
|
+
for (let re = 0; re < ne.length; re++) {
|
|
2079
|
+
const Pe = p.value[ne[re]] || {}, st = E.messageResolver(Pe, f);
|
|
2080
2080
|
if (st != null) {
|
|
2081
|
-
|
|
2081
|
+
k = st;
|
|
2082
2082
|
break;
|
|
2083
2083
|
}
|
|
2084
2084
|
}
|
|
2085
|
-
return
|
|
2085
|
+
return k;
|
|
2086
2086
|
}
|
|
2087
2087
|
function $e(f) {
|
|
2088
|
-
const
|
|
2089
|
-
return
|
|
2088
|
+
const k = yt(f);
|
|
2089
|
+
return k ?? (t ? t.tm(f) || {} : {});
|
|
2090
2090
|
}
|
|
2091
2091
|
function Ue(f) {
|
|
2092
2092
|
return p.value[f] || {};
|
|
2093
2093
|
}
|
|
2094
|
-
function Ve(f,
|
|
2094
|
+
function Ve(f, k) {
|
|
2095
2095
|
if (l) {
|
|
2096
|
-
const
|
|
2097
|
-
for (const
|
|
2098
|
-
|
|
2099
|
-
|
|
2096
|
+
const ne = { [f]: k };
|
|
2097
|
+
for (const re in ne)
|
|
2098
|
+
Ne(ne, re) && nt(ne[re]);
|
|
2099
|
+
k = ne[f];
|
|
2100
2100
|
}
|
|
2101
|
-
p.value[f] =
|
|
2101
|
+
p.value[f] = k, E.messages = p.value;
|
|
2102
2102
|
}
|
|
2103
|
-
function
|
|
2103
|
+
function ze(f, k) {
|
|
2104
2104
|
p.value[f] = p.value[f] || {};
|
|
2105
|
-
const
|
|
2105
|
+
const ne = { [f]: k };
|
|
2106
2106
|
if (l)
|
|
2107
|
-
for (const
|
|
2108
|
-
|
|
2109
|
-
|
|
2107
|
+
for (const re in ne)
|
|
2108
|
+
Ne(ne, re) && nt(ne[re]);
|
|
2109
|
+
k = ne[f], ft(k, p.value[f]), E.messages = p.value;
|
|
2110
2110
|
}
|
|
2111
2111
|
function Tt(f) {
|
|
2112
2112
|
return y.value[f] || {};
|
|
2113
2113
|
}
|
|
2114
|
-
function r(f,
|
|
2115
|
-
y.value[f] =
|
|
2114
|
+
function r(f, k) {
|
|
2115
|
+
y.value[f] = k, E.datetimeFormats = y.value, pn(E, f, k);
|
|
2116
2116
|
}
|
|
2117
|
-
function o(f,
|
|
2118
|
-
y.value[f] =
|
|
2117
|
+
function o(f, k) {
|
|
2118
|
+
y.value[f] = de(y.value[f] || {}, k), E.datetimeFormats = y.value, pn(E, f, k);
|
|
2119
2119
|
}
|
|
2120
2120
|
function b(f) {
|
|
2121
|
-
return
|
|
2121
|
+
return O.value[f] || {};
|
|
2122
2122
|
}
|
|
2123
|
-
function U(f,
|
|
2124
|
-
|
|
2123
|
+
function U(f, k) {
|
|
2124
|
+
O.value[f] = k, E.numberFormats = O.value, hn(E, f, k);
|
|
2125
2125
|
}
|
|
2126
|
-
function
|
|
2127
|
-
|
|
2126
|
+
function ae(f, k) {
|
|
2127
|
+
O.value[f] = de(O.value[f] || {}, k), E.numberFormats = O.value, hn(E, f, k);
|
|
2128
2128
|
}
|
|
2129
2129
|
Tn++, t && qt && (St(t.locale, (f) => {
|
|
2130
|
-
c && (u.value = f,
|
|
2130
|
+
c && (u.value = f, E.locale = f, Ke(E, u.value, m.value));
|
|
2131
2131
|
}), St(t.fallbackLocale, (f) => {
|
|
2132
|
-
c && (m.value = f,
|
|
2132
|
+
c && (m.value = f, E.fallbackLocale = f, Ke(E, u.value, m.value));
|
|
2133
2133
|
}));
|
|
2134
2134
|
const X = {
|
|
2135
2135
|
id: Tn,
|
|
2136
|
-
locale:
|
|
2136
|
+
locale: h,
|
|
2137
2137
|
fallbackLocale: C,
|
|
2138
2138
|
get inheritLocale() {
|
|
2139
2139
|
return c;
|
|
2140
2140
|
},
|
|
2141
2141
|
set inheritLocale(f) {
|
|
2142
|
-
c = f, f && t && (u.value = t.locale.value, m.value = t.fallbackLocale.value, Ke(
|
|
2142
|
+
c = f, f && t && (u.value = t.locale.value, m.value = t.fallbackLocale.value, Ke(E, u.value, m.value));
|
|
2143
2143
|
},
|
|
2144
2144
|
get availableLocales() {
|
|
2145
2145
|
return Object.keys(p.value).sort();
|
|
2146
2146
|
},
|
|
2147
|
-
messages:
|
|
2147
|
+
messages: I,
|
|
2148
2148
|
get modifiers() {
|
|
2149
|
-
return
|
|
2149
|
+
return M;
|
|
2150
2150
|
},
|
|
2151
2151
|
get pluralRules() {
|
|
2152
|
-
return
|
|
2152
|
+
return S || {};
|
|
2153
2153
|
},
|
|
2154
2154
|
get isGlobal() {
|
|
2155
2155
|
return s;
|
|
2156
2156
|
},
|
|
2157
2157
|
get missingWarn() {
|
|
2158
|
-
return
|
|
2158
|
+
return L;
|
|
2159
2159
|
},
|
|
2160
2160
|
set missingWarn(f) {
|
|
2161
|
-
|
|
2161
|
+
L = f, E.missingWarn = L;
|
|
2162
2162
|
},
|
|
2163
2163
|
get fallbackWarn() {
|
|
2164
2164
|
return w;
|
|
2165
2165
|
},
|
|
2166
2166
|
set fallbackWarn(f) {
|
|
2167
|
-
w = f,
|
|
2167
|
+
w = f, E.fallbackWarn = w;
|
|
2168
2168
|
},
|
|
2169
2169
|
get fallbackRoot() {
|
|
2170
2170
|
return V;
|
|
@@ -2173,36 +2173,36 @@ function sr(e = {}) {
|
|
|
2173
2173
|
V = f;
|
|
2174
2174
|
},
|
|
2175
2175
|
get fallbackFormat() {
|
|
2176
|
-
return
|
|
2176
|
+
return A;
|
|
2177
2177
|
},
|
|
2178
2178
|
set fallbackFormat(f) {
|
|
2179
|
-
|
|
2179
|
+
A = f, E.fallbackFormat = A;
|
|
2180
2180
|
},
|
|
2181
2181
|
get warnHtmlMessage() {
|
|
2182
|
-
return
|
|
2182
|
+
return T;
|
|
2183
2183
|
},
|
|
2184
2184
|
set warnHtmlMessage(f) {
|
|
2185
|
-
|
|
2185
|
+
T = f, E.warnHtmlMessage = f;
|
|
2186
2186
|
},
|
|
2187
2187
|
get escapeParameter() {
|
|
2188
2188
|
return _;
|
|
2189
2189
|
},
|
|
2190
2190
|
set escapeParameter(f) {
|
|
2191
|
-
_ = f,
|
|
2191
|
+
_ = f, E.escapeParameter = f;
|
|
2192
2192
|
},
|
|
2193
2193
|
t: j,
|
|
2194
2194
|
getLocaleMessage: Ue,
|
|
2195
2195
|
setLocaleMessage: Ve,
|
|
2196
|
-
mergeLocaleMessage:
|
|
2197
|
-
getPostTranslationHandler:
|
|
2198
|
-
setPostTranslationHandler:
|
|
2199
|
-
getMissingHandler:
|
|
2200
|
-
setMissingHandler:
|
|
2201
|
-
[qa]:
|
|
2196
|
+
mergeLocaleMessage: ze,
|
|
2197
|
+
getPostTranslationHandler: N,
|
|
2198
|
+
setPostTranslationHandler: R,
|
|
2199
|
+
getMissingHandler: v,
|
|
2200
|
+
setMissingHandler: W,
|
|
2201
|
+
[qa]: It
|
|
2202
2202
|
};
|
|
2203
|
-
return X.datetimeFormats = F, X.numberFormats =
|
|
2203
|
+
return X.datetimeFormats = F, X.numberFormats = x, X.rt = te, X.te = Nt, X.tm = $e, X.d = Y, X.n = he, X.getDateTimeFormat = Tt, X.setDateTimeFormat = r, X.mergeDateTimeFormat = o, X.getNumberFormat = b, X.setNumberFormat = U, X.mergeNumberFormat = ae, X[xn] = n, X[Ut] = Ee, X[Vt] = Je, X[Gt] = He, X;
|
|
2204
2204
|
}
|
|
2205
|
-
const
|
|
2205
|
+
const zt = {
|
|
2206
2206
|
tag: {
|
|
2207
2207
|
type: [String, Object]
|
|
2208
2208
|
},
|
|
@@ -2224,45 +2224,45 @@ function ar({ slots: e }, t) {
|
|
|
2224
2224
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((s, l) => [
|
|
2225
2225
|
...s,
|
|
2226
2226
|
// prettier-ignore
|
|
2227
|
-
...l.type ===
|
|
2227
|
+
...l.type === Te ? l.children : [l]
|
|
2228
2228
|
], []) : t.reduce((n, s) => {
|
|
2229
2229
|
const l = e[s];
|
|
2230
2230
|
return l && (n[s] = l()), n;
|
|
2231
|
-
},
|
|
2231
|
+
}, ee());
|
|
2232
2232
|
}
|
|
2233
|
-
function
|
|
2234
|
-
return
|
|
2233
|
+
function Yn() {
|
|
2234
|
+
return Te;
|
|
2235
2235
|
}
|
|
2236
|
-
|
|
2236
|
+
de({
|
|
2237
2237
|
keypath: {
|
|
2238
2238
|
type: String,
|
|
2239
2239
|
required: !0
|
|
2240
2240
|
},
|
|
2241
2241
|
plural: {
|
|
2242
2242
|
type: [Number, String],
|
|
2243
|
-
validator: (e) =>
|
|
2243
|
+
validator: (e) => me(e) || !isNaN(e)
|
|
2244
2244
|
}
|
|
2245
|
-
},
|
|
2245
|
+
}, zt);
|
|
2246
2246
|
function rr(e) {
|
|
2247
|
-
return
|
|
2247
|
+
return ce(e) && !P(e[0]);
|
|
2248
2248
|
}
|
|
2249
|
-
function
|
|
2249
|
+
function Bn(e, t, n, s) {
|
|
2250
2250
|
const { slots: l, attrs: a } = t;
|
|
2251
2251
|
return () => {
|
|
2252
2252
|
const c = { part: !0 };
|
|
2253
|
-
let u =
|
|
2254
|
-
e.locale && (c.locale = e.locale), P(e.format) ? c.key = e.format :
|
|
2253
|
+
let u = ee();
|
|
2254
|
+
e.locale && (c.locale = e.locale), P(e.format) ? c.key = e.format : z(e.format) && (P(e.format.key) && (c.key = e.format.key), u = Object.keys(e.format).reduce((L, w) => n.includes(w) ? de(ee(), L, { [w]: e.format[w] }) : L, ee()));
|
|
2255
2255
|
const m = s(e.value, c, u);
|
|
2256
2256
|
let p = [c.key];
|
|
2257
|
-
|
|
2258
|
-
const V = l[
|
|
2259
|
-
return rr(
|
|
2257
|
+
ce(m) ? p = m.map((L, w) => {
|
|
2258
|
+
const V = l[L.type], A = V ? V({ [L.type]: L.value, index: w, parts: m }) : [L.value];
|
|
2259
|
+
return rr(A) && (A[0].key = `${L.type}-${w}`), A;
|
|
2260
2260
|
}) : P(m) && (p = [m]);
|
|
2261
|
-
const y =
|
|
2262
|
-
return An(
|
|
2261
|
+
const y = de(ee(), a), O = P(e.tag) || z(e.tag) ? e.tag : Yn();
|
|
2262
|
+
return An(O, y, p);
|
|
2263
2263
|
};
|
|
2264
2264
|
}
|
|
2265
|
-
|
|
2265
|
+
de({
|
|
2266
2266
|
value: {
|
|
2267
2267
|
type: Number,
|
|
2268
2268
|
required: !0
|
|
@@ -2270,8 +2270,8 @@ fe({
|
|
|
2270
2270
|
format: {
|
|
2271
2271
|
type: [String, Object]
|
|
2272
2272
|
}
|
|
2273
|
-
},
|
|
2274
|
-
|
|
2273
|
+
}, zt);
|
|
2274
|
+
de({
|
|
2275
2275
|
value: {
|
|
2276
2276
|
type: [Number, Date],
|
|
2277
2277
|
required: !0
|
|
@@ -2279,14 +2279,14 @@ fe({
|
|
|
2279
2279
|
format: {
|
|
2280
2280
|
type: [String, Object]
|
|
2281
2281
|
}
|
|
2282
|
-
},
|
|
2282
|
+
}, zt);
|
|
2283
2283
|
const lr = /* @__PURE__ */ je("global-vue-i18n");
|
|
2284
|
-
function
|
|
2284
|
+
function Et(e = {}) {
|
|
2285
2285
|
const t = xt();
|
|
2286
2286
|
if (t == null)
|
|
2287
|
-
throw
|
|
2287
|
+
throw tt(Ye.MUST_BE_CALL_SETUP_TOP);
|
|
2288
2288
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2289
|
-
throw
|
|
2289
|
+
throw tt(Ye.NOT_INSTALLED);
|
|
2290
2290
|
const n = or(t), s = cr(n), l = Xn(t), a = ir(e, l);
|
|
2291
2291
|
if (a === "global")
|
|
2292
2292
|
return er(s, e, l), s;
|
|
@@ -2297,15 +2297,15 @@ function It(e = {}) {
|
|
|
2297
2297
|
const c = n;
|
|
2298
2298
|
let u = c.__getInstance(t);
|
|
2299
2299
|
if (u == null) {
|
|
2300
|
-
const m =
|
|
2300
|
+
const m = de({}, e);
|
|
2301
2301
|
"__i18n" in l && (m.__i18n = l.__i18n), s && (m.__root = s), u = sr(m), c.__composerExtend && (u[Wt] = c.__composerExtend(u)), dr(c, t, u), c.__setInstance(t, u);
|
|
2302
2302
|
}
|
|
2303
2303
|
return u;
|
|
2304
2304
|
}
|
|
2305
2305
|
function or(e) {
|
|
2306
|
-
const t =
|
|
2306
|
+
const t = $n(e.isCE ? lr : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2307
2307
|
if (!t)
|
|
2308
|
-
throw
|
|
2308
|
+
throw tt(e.isCE ? Ye.NOT_INSTALLED_WITH_PROVIDE : Ye.UNEXPECTED_ERROR);
|
|
2309
2309
|
return t;
|
|
2310
2310
|
}
|
|
2311
2311
|
function ir(e, t) {
|
|
@@ -2337,22 +2337,22 @@ function mr(e, t = !1) {
|
|
|
2337
2337
|
}
|
|
2338
2338
|
function dr(e, t, n) {
|
|
2339
2339
|
Rn(() => {
|
|
2340
|
-
}, t),
|
|
2340
|
+
}, t), Kn(() => {
|
|
2341
2341
|
const s = n;
|
|
2342
2342
|
e.__deleteInstance(t);
|
|
2343
2343
|
const l = s[Wt];
|
|
2344
2344
|
l && (l(), delete s[Wt]);
|
|
2345
2345
|
}, t);
|
|
2346
2346
|
}
|
|
2347
|
-
|
|
2347
|
+
Qa();
|
|
2348
2348
|
Ra(ua);
|
|
2349
|
-
Aa(
|
|
2349
|
+
Aa(La);
|
|
2350
2350
|
Sa(Dn);
|
|
2351
2351
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2352
2352
|
const e = Fe();
|
|
2353
2353
|
e.__INTLIFY__ = !0, ma(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2354
2354
|
}
|
|
2355
|
-
const it = /* @__PURE__ */
|
|
2355
|
+
const it = /* @__PURE__ */ Le({
|
|
2356
2356
|
__name: "InheritPermissionTooltip",
|
|
2357
2357
|
props: {
|
|
2358
2358
|
item: {
|
|
@@ -2361,7 +2361,7 @@ const it = /* @__PURE__ */ Oe({
|
|
|
2361
2361
|
}
|
|
2362
2362
|
},
|
|
2363
2363
|
setup(e) {
|
|
2364
|
-
const { t } =
|
|
2364
|
+
const { t } = Et();
|
|
2365
2365
|
return (n, s) => {
|
|
2366
2366
|
const l = Qe("FmIcon"), a = Qe("FmTooltip");
|
|
2367
2367
|
return Q(), De(a, {
|
|
@@ -2370,9 +2370,9 @@ const it = /* @__PURE__ */ Oe({
|
|
|
2370
2370
|
"z-index": 50
|
|
2371
2371
|
}, {
|
|
2372
2372
|
content: pe(() => [
|
|
2373
|
-
|
|
2374
|
-
(Q(!0),
|
|
2375
|
-
|
|
2373
|
+
oe("div", null, Ie(H(t)("team.memberForm.permissions.inherited")), 1),
|
|
2374
|
+
(Q(!0), le(Te, null, ge(e.item.setNames, (c) => (Q(), le("div", { key: c }, [
|
|
2375
|
+
oe("div", null, "- " + Ie(c), 1)
|
|
2376
2376
|
]))), 128))
|
|
2377
2377
|
]),
|
|
2378
2378
|
default: pe(() => [
|
|
@@ -2387,7 +2387,7 @@ const it = /* @__PURE__ */ Oe({
|
|
|
2387
2387
|
};
|
|
2388
2388
|
}
|
|
2389
2389
|
});
|
|
2390
|
-
function
|
|
2390
|
+
function Ln(e, t, n) {
|
|
2391
2391
|
const s = n.filter((u) => u !== "manage");
|
|
2392
2392
|
if (s.length === 0) return;
|
|
2393
2393
|
const l = e.findIndex((u) => u.subject === t && !u.inverted);
|
|
@@ -2401,239 +2401,243 @@ function On(e, t, n) {
|
|
|
2401
2401
|
actions: Array.from(a)
|
|
2402
2402
|
});
|
|
2403
2403
|
}
|
|
2404
|
-
const
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2404
|
+
const On = Object.values(is), fr = {
|
|
2405
|
+
read: "View",
|
|
2406
|
+
create: "Duplicate",
|
|
2407
|
+
update: "Edit"
|
|
2408
|
+
};
|
|
2409
|
+
function _r(e, t, n, s) {
|
|
2410
|
+
const { t: l } = Be(), { getFlagValue: a, getFlag: c } = os(), u = q(() => {
|
|
2411
|
+
var I;
|
|
2412
|
+
const g = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map();
|
|
2409
2413
|
for (const F of t.value) {
|
|
2410
|
-
const
|
|
2411
|
-
|
|
2414
|
+
const x = F.category;
|
|
2415
|
+
x && (n.value.includes(F.subject) || F.showByFeatureFlag && ((I = c(F.showByFeatureFlag)) == null ? void 0 : I.enabled) === !1 && a(F.showByFeatureFlag) === "true" || (g.has(x) || g.set(x, []), g.get(x).push({
|
|
2416
|
+
label: l(`permissionSet.permissionLabels.${F.subject}`, F.label),
|
|
2417
|
+
value: F.subject
|
|
2418
|
+
}), h.set(F.subject, F)));
|
|
2412
2419
|
}
|
|
2413
|
-
return [...
|
|
2414
|
-
const
|
|
2415
|
-
return
|
|
2420
|
+
return [...g.keys()].sort((F, x) => {
|
|
2421
|
+
const N = On.indexOf(F), R = On.indexOf(x);
|
|
2422
|
+
return N === -1 && R === -1 ? F.localeCompare(x) : N === -1 ? 1 : R === -1 ? -1 : N - R;
|
|
2416
2423
|
}).map((F) => {
|
|
2417
|
-
const
|
|
2418
|
-
for (const
|
|
2419
|
-
const
|
|
2420
|
-
|
|
2424
|
+
const x = g.get(F), N = l(`permissionSet.categoryLabels.${F}`, F), R = /* @__PURE__ */ new Map();
|
|
2425
|
+
for (const B of x) {
|
|
2426
|
+
const Z = h.get(B.value);
|
|
2427
|
+
Z && R.set(B.value, Z.actions);
|
|
2421
2428
|
}
|
|
2422
|
-
const
|
|
2423
|
-
const
|
|
2424
|
-
return
|
|
2425
|
-
}),
|
|
2429
|
+
const v = x.some((B) => {
|
|
2430
|
+
const Z = R.get(B.value);
|
|
2431
|
+
return Z && Z.length > 1;
|
|
2432
|
+
}), W = v ? [
|
|
2426
2433
|
...new Set(
|
|
2427
|
-
|
|
2434
|
+
x.flatMap((B) => R.get(B.value) ?? []).filter((B) => B !== "manage")
|
|
2428
2435
|
)
|
|
2429
2436
|
] : [], G = /* @__PURE__ */ new Map();
|
|
2430
|
-
for (const
|
|
2431
|
-
|
|
2432
|
-
const
|
|
2433
|
-
(
|
|
2434
|
-
).map((
|
|
2435
|
-
var
|
|
2436
|
-
return (
|
|
2437
|
-
}),
|
|
2437
|
+
for (const B of e.value)
|
|
2438
|
+
x.some((Z) => Z.value === B.subject) && !B.inverted && G.set(B.subject, new Set(B.actions));
|
|
2439
|
+
const j = v ? e.value.filter(
|
|
2440
|
+
(B) => x.some((Z) => Z.value === B.subject) && !B.inverted && B.actions.includes("manage")
|
|
2441
|
+
).map((B) => B.subject) : e.value.filter((B) => x.some((Z) => Z.value === B.subject) && !B.inverted).map((B) => B.subject), te = x.find((B) => {
|
|
2442
|
+
var Z;
|
|
2443
|
+
return (Z = h.get(B.value)) == null ? void 0 : Z.isCategoryCover;
|
|
2444
|
+
}), Y = (te == null ? void 0 : te.value) ?? null, he = Y ? G.get(Y) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), fe = he.has("manage");
|
|
2438
2445
|
return {
|
|
2439
2446
|
category: F,
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2447
|
+
label: N,
|
|
2448
|
+
options: x,
|
|
2449
|
+
selectedSubjects: j,
|
|
2450
|
+
isMultiAction: v,
|
|
2451
|
+
actionColumns: W,
|
|
2452
|
+
permissionActionsMap: R,
|
|
2445
2453
|
selectedActionsMap: G,
|
|
2446
|
-
coverSubject:
|
|
2447
|
-
coverSelectedActions:
|
|
2448
|
-
coverCoversAll:
|
|
2454
|
+
coverSubject: Y,
|
|
2455
|
+
coverSelectedActions: he,
|
|
2456
|
+
coverCoversAll: fe
|
|
2449
2457
|
};
|
|
2450
2458
|
});
|
|
2451
2459
|
});
|
|
2452
|
-
function
|
|
2453
|
-
var
|
|
2454
|
-
const C = ((
|
|
2460
|
+
function m(g, h) {
|
|
2461
|
+
var I;
|
|
2462
|
+
const C = ((I = u.value.find((F) => F.category === g)) == null ? void 0 : I.options) ?? [];
|
|
2455
2463
|
s("update:model-value", [
|
|
2456
|
-
...e.value.filter((F) => !C.some((
|
|
2457
|
-
...t.value.filter((F) =>
|
|
2458
|
-
({ category: F, showByFeatureFlag:
|
|
2464
|
+
...e.value.filter((F) => !C.some((x) => x.value === F.subject)),
|
|
2465
|
+
...t.value.filter((F) => h.includes(F.subject)).map(
|
|
2466
|
+
({ category: F, showByFeatureFlag: x, isCategoryCover: N, ...R }) => R
|
|
2459
2467
|
)
|
|
2460
2468
|
]);
|
|
2461
2469
|
}
|
|
2462
|
-
function
|
|
2463
|
-
return
|
|
2470
|
+
function p(g) {
|
|
2471
|
+
return g.options.length > 0 && g.options.every((h) => g.selectedSubjects.includes(h.value));
|
|
2464
2472
|
}
|
|
2465
|
-
function
|
|
2466
|
-
if (
|
|
2467
|
-
const
|
|
2468
|
-
(C) =>
|
|
2473
|
+
function y(g) {
|
|
2474
|
+
if (g.options.length === 0) return !1;
|
|
2475
|
+
const h = g.options.filter(
|
|
2476
|
+
(C) => g.selectedSubjects.includes(C.value)
|
|
2469
2477
|
).length;
|
|
2470
|
-
return
|
|
2478
|
+
return h > 0 && h < g.options.length;
|
|
2471
2479
|
}
|
|
2472
|
-
function
|
|
2473
|
-
const
|
|
2474
|
-
(C) => !
|
|
2480
|
+
function O(g) {
|
|
2481
|
+
const h = e.value.filter(
|
|
2482
|
+
(C) => !g.options.some((I) => I.value === C.subject)
|
|
2475
2483
|
);
|
|
2476
|
-
if (
|
|
2477
|
-
s("update:model-value",
|
|
2484
|
+
if (p(g))
|
|
2485
|
+
s("update:model-value", h);
|
|
2478
2486
|
else {
|
|
2479
|
-
const C = t.value.filter((
|
|
2480
|
-
({ category:
|
|
2487
|
+
const C = t.value.filter((I) => g.options.some((F) => F.value === I.subject)).map(
|
|
2488
|
+
({ category: I, showByFeatureFlag: F, isCategoryCover: x, ...N }) => N
|
|
2481
2489
|
);
|
|
2482
|
-
s("update:model-value", [...
|
|
2490
|
+
s("update:model-value", [...h, ...C]);
|
|
2483
2491
|
}
|
|
2484
2492
|
}
|
|
2485
|
-
function
|
|
2486
|
-
const C =
|
|
2493
|
+
function L(g, h) {
|
|
2494
|
+
const C = g.selectedActionsMap.get(h);
|
|
2487
2495
|
return C ? C.has("manage") : !1;
|
|
2488
2496
|
}
|
|
2489
|
-
function
|
|
2490
|
-
const C =
|
|
2497
|
+
function w(g, h) {
|
|
2498
|
+
const C = g.permissionActionsMap.get(h);
|
|
2491
2499
|
if (!C) return !1;
|
|
2492
|
-
const
|
|
2493
|
-
if (
|
|
2494
|
-
const F =
|
|
2500
|
+
const I = C.filter((N) => N !== "manage");
|
|
2501
|
+
if (I.length === 0) return !1;
|
|
2502
|
+
const F = g.selectedActionsMap.get(h);
|
|
2495
2503
|
if (!F) return !1;
|
|
2496
|
-
const
|
|
2497
|
-
return
|
|
2504
|
+
const x = I.filter((N) => F.has(N));
|
|
2505
|
+
return x.length > 0 && x.length < I.length;
|
|
2498
2506
|
}
|
|
2499
|
-
function
|
|
2507
|
+
function V(g, h, C) {
|
|
2500
2508
|
if (C) {
|
|
2501
|
-
const
|
|
2502
|
-
if (!
|
|
2509
|
+
const I = t.value.find((W) => W.subject === h);
|
|
2510
|
+
if (!I) return;
|
|
2503
2511
|
const {
|
|
2504
2512
|
category: F,
|
|
2505
|
-
showByFeatureFlag:
|
|
2506
|
-
isCategoryCover:
|
|
2507
|
-
...
|
|
2508
|
-
} =
|
|
2509
|
-
|
|
2513
|
+
showByFeatureFlag: x,
|
|
2514
|
+
isCategoryCover: N,
|
|
2515
|
+
...R
|
|
2516
|
+
} = I, v = e.value.filter((W) => W.subject !== h);
|
|
2517
|
+
v.push(R), s("update:model-value", v);
|
|
2510
2518
|
} else
|
|
2511
2519
|
s(
|
|
2512
2520
|
"update:model-value",
|
|
2513
|
-
e.value.filter((
|
|
2521
|
+
e.value.filter((I) => I.subject !== h)
|
|
2514
2522
|
);
|
|
2515
2523
|
}
|
|
2516
|
-
function
|
|
2517
|
-
const C =
|
|
2518
|
-
return C ? C.some((
|
|
2524
|
+
function A(g, h) {
|
|
2525
|
+
const C = g.permissionActionsMap.get(h);
|
|
2526
|
+
return C ? C.some((I) => I !== "manage") : !1;
|
|
2519
2527
|
}
|
|
2520
|
-
function
|
|
2521
|
-
const
|
|
2522
|
-
return
|
|
2528
|
+
function D(g, h, C) {
|
|
2529
|
+
const I = g.selectedActionsMap.get(h);
|
|
2530
|
+
return I ? I.has(C) : !1;
|
|
2523
2531
|
}
|
|
2524
|
-
function
|
|
2525
|
-
return !
|
|
2532
|
+
function i(g, h) {
|
|
2533
|
+
return !g.coverSubject || h === g.coverSubject ? !1 : g.coverCoversAll;
|
|
2526
2534
|
}
|
|
2527
|
-
function
|
|
2528
|
-
return !
|
|
2535
|
+
function d(g, h, C) {
|
|
2536
|
+
return !g.coverSubject || h === g.coverSubject ? !1 : g.coverCoversAll ? !0 : g.coverSelectedActions.has(C);
|
|
2529
2537
|
}
|
|
2530
|
-
function
|
|
2531
|
-
const
|
|
2532
|
-
return
|
|
2538
|
+
function T(g, h, C) {
|
|
2539
|
+
const I = g.permissionActionsMap.get(h);
|
|
2540
|
+
return I ? I.includes(C) : !1;
|
|
2533
2541
|
}
|
|
2534
|
-
function
|
|
2535
|
-
const
|
|
2542
|
+
function _(g, h, C) {
|
|
2543
|
+
const I = [...e.value], F = I.findIndex((N) => N.subject === g && !N.inverted);
|
|
2536
2544
|
if (C)
|
|
2537
2545
|
if (F >= 0) {
|
|
2538
|
-
const
|
|
2539
|
-
|
|
2546
|
+
const N = { ...I[F] }, R = new Set(N.actions);
|
|
2547
|
+
R.add(h), N.actions = Array.from(R), I[F] = N;
|
|
2540
2548
|
} else {
|
|
2541
|
-
const
|
|
2542
|
-
if (!
|
|
2549
|
+
const N = t.value.find((j) => j.subject === g);
|
|
2550
|
+
if (!N) return;
|
|
2543
2551
|
const {
|
|
2544
|
-
category:
|
|
2545
|
-
showByFeatureFlag:
|
|
2546
|
-
isCategoryCover:
|
|
2547
|
-
...
|
|
2548
|
-
} =
|
|
2549
|
-
|
|
2552
|
+
category: R,
|
|
2553
|
+
showByFeatureFlag: v,
|
|
2554
|
+
isCategoryCover: W,
|
|
2555
|
+
...G
|
|
2556
|
+
} = N;
|
|
2557
|
+
I.push({ ...G, actions: [h] });
|
|
2550
2558
|
}
|
|
2551
2559
|
else if (F >= 0) {
|
|
2552
|
-
const
|
|
2553
|
-
|
|
2560
|
+
const N = { ...I[F] }, R = N.actions.filter((v) => v !== h);
|
|
2561
|
+
R.length === 0 ? I.splice(F, 1) : (N.actions = R, I[F] = N);
|
|
2554
2562
|
}
|
|
2555
|
-
const
|
|
2556
|
-
|
|
2563
|
+
const x = t.value.find((N) => N.subject === g);
|
|
2564
|
+
x && Ln(I, g, x.actions), s("update:model-value", I);
|
|
2557
2565
|
}
|
|
2558
|
-
function
|
|
2559
|
-
const C =
|
|
2560
|
-
(
|
|
2566
|
+
function M(g, h) {
|
|
2567
|
+
const C = g.options.filter(
|
|
2568
|
+
(I) => T(g, I.value, h)
|
|
2561
2569
|
);
|
|
2562
2570
|
return C.length === 0 ? !1 : C.every(
|
|
2563
|
-
(
|
|
2571
|
+
(I) => D(g, I.value, h) || d(g, I.value, h)
|
|
2564
2572
|
);
|
|
2565
2573
|
}
|
|
2566
|
-
function S(
|
|
2567
|
-
const C =
|
|
2568
|
-
(F) =>
|
|
2574
|
+
function S(g, h) {
|
|
2575
|
+
const C = g.options.filter(
|
|
2576
|
+
(F) => T(g, F.value, h)
|
|
2569
2577
|
);
|
|
2570
2578
|
if (C.length === 0) return !1;
|
|
2571
|
-
const
|
|
2572
|
-
(F) =>
|
|
2579
|
+
const I = C.filter(
|
|
2580
|
+
(F) => D(g, F.value, h) || d(g, F.value, h)
|
|
2573
2581
|
).length;
|
|
2574
|
-
return
|
|
2575
|
-
}
|
|
2576
|
-
function
|
|
2577
|
-
const
|
|
2578
|
-
for (const F of
|
|
2579
|
-
if (!
|
|
2580
|
-
const
|
|
2581
|
-
(
|
|
2582
|
+
return I > 0 && I < C.length;
|
|
2583
|
+
}
|
|
2584
|
+
function E(g, h, C) {
|
|
2585
|
+
const I = [...e.value];
|
|
2586
|
+
for (const F of g.options) {
|
|
2587
|
+
if (!T(g, F.value, h)) continue;
|
|
2588
|
+
const x = F.value, N = I.findIndex(
|
|
2589
|
+
(v) => v.subject === x && !v.inverted
|
|
2582
2590
|
);
|
|
2583
2591
|
if (C)
|
|
2584
|
-
if (
|
|
2585
|
-
const
|
|
2586
|
-
|
|
2592
|
+
if (N >= 0) {
|
|
2593
|
+
const v = { ...I[N] }, W = new Set(v.actions);
|
|
2594
|
+
W.add(h), v.actions = Array.from(W), I[N] = v;
|
|
2587
2595
|
} else {
|
|
2588
|
-
const
|
|
2589
|
-
if (!
|
|
2596
|
+
const v = t.value.find((Y) => Y.subject === x);
|
|
2597
|
+
if (!v) continue;
|
|
2590
2598
|
const {
|
|
2591
|
-
category:
|
|
2592
|
-
showByFeatureFlag:
|
|
2599
|
+
category: W,
|
|
2600
|
+
showByFeatureFlag: G,
|
|
2593
2601
|
isCategoryCover: j,
|
|
2594
|
-
...
|
|
2595
|
-
} =
|
|
2596
|
-
|
|
2602
|
+
...te
|
|
2603
|
+
} = v;
|
|
2604
|
+
I.push({ ...te, actions: [h] });
|
|
2597
2605
|
}
|
|
2598
|
-
else if (
|
|
2599
|
-
const
|
|
2600
|
-
|
|
2606
|
+
else if (N >= 0) {
|
|
2607
|
+
const v = { ...I[N] }, W = v.actions.filter((G) => G !== h);
|
|
2608
|
+
W.length === 0 ? I.splice(N, 1) : (v.actions = W, I[N] = v);
|
|
2601
2609
|
}
|
|
2602
|
-
const
|
|
2603
|
-
|
|
2610
|
+
const R = t.value.find((v) => v.subject === x);
|
|
2611
|
+
R && Ln(I, x, R.actions);
|
|
2604
2612
|
}
|
|
2605
|
-
s("update:model-value",
|
|
2613
|
+
s("update:model-value", I);
|
|
2606
2614
|
}
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
update: "Edit"
|
|
2611
|
-
};
|
|
2612
|
-
function H(h) {
|
|
2613
|
-
return I[h] ?? h.charAt(0).toUpperCase() + h.slice(1);
|
|
2615
|
+
function J(g) {
|
|
2616
|
+
const h = `permissionSet.actionLabels.${g}`, C = fr[g] ?? g.charAt(0).toUpperCase() + g.slice(1);
|
|
2617
|
+
return l(h, C);
|
|
2614
2618
|
}
|
|
2615
2619
|
return {
|
|
2616
|
-
categoryGroups:
|
|
2617
|
-
toggleCategory:
|
|
2618
|
-
isAllManageChecked:
|
|
2619
|
-
isAllManageIndeterminate:
|
|
2620
|
-
toggleAllManage:
|
|
2621
|
-
isManageChecked:
|
|
2622
|
-
isManageIndeterminate:
|
|
2623
|
-
toggleManage:
|
|
2624
|
-
hasNonManageActions:
|
|
2625
|
-
isActionChecked:
|
|
2626
|
-
isRowFullyCoveredByCover:
|
|
2627
|
-
isActionCoveredByCover:
|
|
2628
|
-
permissionDefinesAction:
|
|
2629
|
-
toggleAction:
|
|
2630
|
-
isAllActionChecked:
|
|
2620
|
+
categoryGroups: u,
|
|
2621
|
+
toggleCategory: m,
|
|
2622
|
+
isAllManageChecked: p,
|
|
2623
|
+
isAllManageIndeterminate: y,
|
|
2624
|
+
toggleAllManage: O,
|
|
2625
|
+
isManageChecked: L,
|
|
2626
|
+
isManageIndeterminate: w,
|
|
2627
|
+
toggleManage: V,
|
|
2628
|
+
hasNonManageActions: A,
|
|
2629
|
+
isActionChecked: D,
|
|
2630
|
+
isRowFullyCoveredByCover: i,
|
|
2631
|
+
isActionCoveredByCover: d,
|
|
2632
|
+
permissionDefinesAction: T,
|
|
2633
|
+
toggleAction: _,
|
|
2634
|
+
isAllActionChecked: M,
|
|
2631
2635
|
isAllActionIndeterminate: S,
|
|
2632
|
-
toggleAllAction:
|
|
2633
|
-
actionLabel:
|
|
2636
|
+
toggleAllAction: E,
|
|
2637
|
+
actionLabel: J
|
|
2634
2638
|
};
|
|
2635
2639
|
}
|
|
2636
|
-
const
|
|
2640
|
+
const pr = { class: "flex flex-col gap-16" }, br = { class: "fm-typo-en-title-sm-600" }, hr = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, gr = ["onClick"], vr = { class: "flex justify-center" }, Er = { class: "flex items-center min-w-0 gap-8" }, Ir = ["title", "onClick"], Nr = { class: "flex justify-center" }, yr = /* @__PURE__ */ Le({
|
|
2637
2641
|
__name: "BasePermission",
|
|
2638
2642
|
props: {
|
|
2639
2643
|
modelValue: {
|
|
@@ -2655,117 +2659,117 @@ const _r = { class: "flex flex-col gap-16" }, pr = { class: "fm-typo-en-title-sm
|
|
|
2655
2659
|
},
|
|
2656
2660
|
emits: ["update:model-value"],
|
|
2657
2661
|
setup(e, { emit: t }) {
|
|
2658
|
-
const n = e, s = t, l =
|
|
2659
|
-
categoryGroups:
|
|
2660
|
-
isAllManageChecked:
|
|
2661
|
-
isAllManageIndeterminate:
|
|
2662
|
-
toggleAllManage:
|
|
2663
|
-
isManageChecked:
|
|
2664
|
-
isManageIndeterminate:
|
|
2665
|
-
toggleManage:
|
|
2666
|
-
isActionChecked:
|
|
2667
|
-
isRowFullyCoveredByCover:
|
|
2668
|
-
isActionCoveredByCover:
|
|
2669
|
-
permissionDefinesAction:
|
|
2670
|
-
toggleAction:
|
|
2671
|
-
isAllActionChecked:
|
|
2672
|
-
isAllActionIndeterminate:
|
|
2673
|
-
toggleAllAction:
|
|
2674
|
-
actionLabel:
|
|
2675
|
-
} =
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
(
|
|
2680
|
-
)
|
|
2681
|
-
function
|
|
2682
|
-
const
|
|
2683
|
-
return
|
|
2662
|
+
const n = e, s = t, { t: l } = Be(), a = q(() => [...Dt, ...n.additionalPermissions]), {
|
|
2663
|
+
categoryGroups: c,
|
|
2664
|
+
isAllManageChecked: u,
|
|
2665
|
+
isAllManageIndeterminate: m,
|
|
2666
|
+
toggleAllManage: p,
|
|
2667
|
+
isManageChecked: y,
|
|
2668
|
+
isManageIndeterminate: O,
|
|
2669
|
+
toggleManage: L,
|
|
2670
|
+
isActionChecked: w,
|
|
2671
|
+
isRowFullyCoveredByCover: V,
|
|
2672
|
+
isActionCoveredByCover: A,
|
|
2673
|
+
permissionDefinesAction: D,
|
|
2674
|
+
toggleAction: i,
|
|
2675
|
+
isAllActionChecked: d,
|
|
2676
|
+
isAllActionIndeterminate: T,
|
|
2677
|
+
toggleAllAction: _,
|
|
2678
|
+
actionLabel: M
|
|
2679
|
+
} = _r(
|
|
2680
|
+
Kt(n, "modelValue"),
|
|
2681
|
+
a,
|
|
2682
|
+
Kt(n, "excludedSubjects"),
|
|
2683
|
+
(E, J) => s("update:model-value", J)
|
|
2684
|
+
);
|
|
2685
|
+
function S(E) {
|
|
2686
|
+
const J = E.selectedSubjects.length;
|
|
2687
|
+
return J === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: J });
|
|
2684
2688
|
}
|
|
2685
|
-
return (
|
|
2686
|
-
const
|
|
2687
|
-
return Q(),
|
|
2688
|
-
(Q(!0),
|
|
2689
|
-
key:
|
|
2690
|
-
subtitle:
|
|
2689
|
+
return (E, J) => {
|
|
2690
|
+
const g = Qe("FmCheckbox");
|
|
2691
|
+
return Q(), le("div", pr, [
|
|
2692
|
+
(Q(!0), le(Te, null, ge(H(c), (h) => (Q(), De(Zt, {
|
|
2693
|
+
key: h.category,
|
|
2694
|
+
subtitle: S(h)
|
|
2691
2695
|
}, {
|
|
2692
2696
|
title: pe(() => [
|
|
2693
|
-
|
|
2697
|
+
oe("p", br, Ie(h.label), 1)
|
|
2694
2698
|
]),
|
|
2695
2699
|
default: pe(() => [
|
|
2696
|
-
|
|
2700
|
+
oe("div", {
|
|
2697
2701
|
class: "mt-16 grid items-center gap-y-8",
|
|
2698
2702
|
style: mt({
|
|
2699
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2703
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${h.actionColumns.length + 1}, 80px)`
|
|
2700
2704
|
})
|
|
2701
2705
|
}, [
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
(Q(!0),
|
|
2706
|
+
J[0] || (J[0] = oe("div", null, null, -1)),
|
|
2707
|
+
oe("div", hr, Ie(H(l)("team.memberForm.permissions.columnManage")), 1),
|
|
2708
|
+
(Q(!0), le(Te, null, ge(h.actionColumns, (C) => (Q(), le("div", {
|
|
2705
2709
|
key: `header-${C}`,
|
|
2706
2710
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2707
|
-
},
|
|
2708
|
-
|
|
2711
|
+
}, Ie(H(M)(C)), 1))), 128)),
|
|
2712
|
+
oe("div", {
|
|
2709
2713
|
class: "cursor-pointer",
|
|
2710
|
-
onClick: (C) => !e.disable &&
|
|
2711
|
-
}, "
|
|
2712
|
-
|
|
2713
|
-
_e(
|
|
2714
|
-
"model-value":
|
|
2715
|
-
indeterminate:
|
|
2714
|
+
onClick: (C) => !e.disable && H(p)(h)
|
|
2715
|
+
}, Ie(H(l)("team.labels.all")), 9, gr),
|
|
2716
|
+
oe("div", vr, [
|
|
2717
|
+
_e(g, {
|
|
2718
|
+
"model-value": H(u)(h),
|
|
2719
|
+
indeterminate: H(m)(h),
|
|
2716
2720
|
value: !0,
|
|
2717
2721
|
disabled: e.disable,
|
|
2718
2722
|
size: "sm",
|
|
2719
2723
|
dense: "",
|
|
2720
|
-
"onUpdate:modelValue": (C) =>
|
|
2724
|
+
"onUpdate:modelValue": (C) => H(p)(h)
|
|
2721
2725
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2722
2726
|
]),
|
|
2723
|
-
(Q(!0),
|
|
2727
|
+
(Q(!0), le(Te, null, ge(h.actionColumns, (C) => (Q(), le("div", {
|
|
2724
2728
|
key: `all-${C}`,
|
|
2725
2729
|
class: "flex justify-center"
|
|
2726
2730
|
}, [
|
|
2727
|
-
_e(
|
|
2728
|
-
"model-value":
|
|
2729
|
-
indeterminate:
|
|
2731
|
+
_e(g, {
|
|
2732
|
+
"model-value": H(d)(h, C),
|
|
2733
|
+
indeterminate: H(T)(h, C),
|
|
2730
2734
|
value: C,
|
|
2731
2735
|
disabled: e.disable,
|
|
2732
2736
|
size: "sm",
|
|
2733
2737
|
dense: "",
|
|
2734
|
-
"onUpdate:modelValue": (
|
|
2738
|
+
"onUpdate:modelValue": (I) => H(_)(h, C, I)
|
|
2735
2739
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2736
2740
|
]))), 128)),
|
|
2737
|
-
(Q(!0),
|
|
2741
|
+
(Q(!0), le(Te, null, ge(h.options, (C) => (Q(), le(Te, {
|
|
2738
2742
|
key: C.value
|
|
2739
2743
|
}, [
|
|
2740
|
-
|
|
2741
|
-
|
|
2744
|
+
oe("div", Er, [
|
|
2745
|
+
oe("span", {
|
|
2742
2746
|
class: "block truncate cursor-pointer",
|
|
2743
2747
|
title: C.label,
|
|
2744
|
-
onClick: (
|
|
2745
|
-
},
|
|
2746
|
-
ke(
|
|
2748
|
+
onClick: (I) => !e.disable && !H(V)(h, C.value) && H(L)(h, C.value, !H(y)(h, C.value))
|
|
2749
|
+
}, Ie(C.label), 9, Ir),
|
|
2750
|
+
ke(E.$slots, `checkbox-${C.value}-append`, { option: C })
|
|
2747
2751
|
]),
|
|
2748
|
-
|
|
2749
|
-
_e(
|
|
2750
|
-
"model-value":
|
|
2752
|
+
oe("div", Nr, [
|
|
2753
|
+
_e(g, {
|
|
2754
|
+
"model-value": H(y)(h, C.value) || H(V)(h, C.value),
|
|
2751
2755
|
value: C.value,
|
|
2752
|
-
disabled: e.disable ||
|
|
2753
|
-
indeterminate:
|
|
2756
|
+
disabled: e.disable || H(V)(h, C.value),
|
|
2757
|
+
indeterminate: H(O)(h, C.value),
|
|
2754
2758
|
size: "sm",
|
|
2755
|
-
"onUpdate:modelValue": (
|
|
2759
|
+
"onUpdate:modelValue": (I) => H(L)(h, C.value, I)
|
|
2756
2760
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2757
2761
|
]),
|
|
2758
|
-
(Q(!0),
|
|
2759
|
-
key: `${C.value}-${
|
|
2762
|
+
(Q(!0), le(Te, null, ge(h.actionColumns, (I) => (Q(), le("div", {
|
|
2763
|
+
key: `${C.value}-${I}`,
|
|
2760
2764
|
class: "flex justify-center"
|
|
2761
2765
|
}, [
|
|
2762
|
-
|
|
2766
|
+
H(D)(h, C.value, I) ? (Q(), De(g, {
|
|
2763
2767
|
key: 0,
|
|
2764
|
-
"model-value":
|
|
2765
|
-
value:
|
|
2766
|
-
disabled: e.disable ||
|
|
2768
|
+
"model-value": H(w)(h, C.value, I) || H(A)(h, C.value, I),
|
|
2769
|
+
value: I,
|
|
2770
|
+
disabled: e.disable || H(A)(h, C.value, I),
|
|
2767
2771
|
size: "sm",
|
|
2768
|
-
"onUpdate:modelValue": (F) =>
|
|
2772
|
+
"onUpdate:modelValue": (F) => H(i)(C.value, I, F)
|
|
2769
2773
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Se("", !0)
|
|
2770
2774
|
]))), 128))
|
|
2771
2775
|
], 64))), 128))
|
|
@@ -2776,13 +2780,13 @@ const _r = { class: "flex flex-col gap-16" }, pr = { class: "fm-typo-en-title-sm
|
|
|
2776
2780
|
]);
|
|
2777
2781
|
};
|
|
2778
2782
|
}
|
|
2779
|
-
}),
|
|
2783
|
+
}), Tr = { class: "space-y-16" }, kr = {
|
|
2780
2784
|
key: 0,
|
|
2781
2785
|
class: "flex fm-typo-en-title-sm-600"
|
|
2782
|
-
},
|
|
2786
|
+
}, Lr = {
|
|
2783
2787
|
key: 0,
|
|
2784
2788
|
class: "q-mr-xs text-red col"
|
|
2785
|
-
}, Or = { class: "form-input" },
|
|
2789
|
+
}, Or = { class: "form-input" }, Cr = /* @__PURE__ */ Le({
|
|
2786
2790
|
__name: "AppForm",
|
|
2787
2791
|
props: {
|
|
2788
2792
|
title: {
|
|
@@ -2800,33 +2804,33 @@ const _r = { class: "flex flex-col gap-16" }, pr = { class: "fm-typo-en-title-sm
|
|
|
2800
2804
|
},
|
|
2801
2805
|
setup(e) {
|
|
2802
2806
|
const t = e;
|
|
2803
|
-
return (n, s) => (Q(),
|
|
2807
|
+
return (n, s) => (Q(), le("div", Tr, [
|
|
2804
2808
|
ke(n.$slots, "top", {}, () => [
|
|
2805
|
-
t.title ? (Q(),
|
|
2806
|
-
|
|
2807
|
-
t.required ? (Q(),
|
|
2808
|
-
qn(
|
|
2809
|
+
t.title ? (Q(), le("div", kr, [
|
|
2810
|
+
oe("div", null, [
|
|
2811
|
+
t.required ? (Q(), le("span", Lr, "*")) : Se("", !0),
|
|
2812
|
+
qn(Ie(t.title), 1)
|
|
2809
2813
|
]),
|
|
2810
2814
|
ke(n.$slots, "title-right")
|
|
2811
2815
|
])) : Se("", !0)
|
|
2812
2816
|
]),
|
|
2813
|
-
|
|
2817
|
+
oe("div", Or, [
|
|
2814
2818
|
ke(n.$slots, "default")
|
|
2815
2819
|
])
|
|
2816
2820
|
]));
|
|
2817
2821
|
}
|
|
2818
2822
|
});
|
|
2819
|
-
function
|
|
2823
|
+
function Rr(e, t) {
|
|
2820
2824
|
let n = "", s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
2821
2825
|
const l = s.length;
|
|
2822
2826
|
for (let a = 0; a < e; a++)
|
|
2823
2827
|
n += s.charAt(Math.floor(Math.random() * l));
|
|
2824
2828
|
return n;
|
|
2825
2829
|
}
|
|
2826
|
-
const
|
|
2830
|
+
const Ar = { class: "col flex items-center" }, Sr = {
|
|
2827
2831
|
key: 1,
|
|
2828
2832
|
class: "q-pa-sm form-error-message text-error"
|
|
2829
|
-
},
|
|
2833
|
+
}, Hn = /* @__PURE__ */ Le({
|
|
2830
2834
|
__name: "CheckboxInput",
|
|
2831
2835
|
props: {
|
|
2832
2836
|
options: {
|
|
@@ -2884,55 +2888,55 @@ const Rr = { class: "col flex items-center" }, Ar = {
|
|
|
2884
2888
|
},
|
|
2885
2889
|
emits: ["update:model-value"],
|
|
2886
2890
|
setup(e, { emit: t }) {
|
|
2887
|
-
const n = e, s = t, { t: l } =
|
|
2888
|
-
() => n.modelValue.filter((
|
|
2889
|
-
),
|
|
2891
|
+
const n = e, s = t, { t: l } = Be(), a = bt(!1), c = es(), u = q(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), m = `checkbox-${Rr(6)}`, p = q(() => u.value !== !0), y = q(
|
|
2892
|
+
() => n.modelValue.filter((A) => n.options.some((D) => D.value === A))
|
|
2893
|
+
), O = q(
|
|
2890
2894
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2891
|
-
),
|
|
2895
|
+
), L = q(() => n.options.length > 0 && n.options.length === y.value.length);
|
|
2892
2896
|
function w() {
|
|
2893
|
-
const
|
|
2894
|
-
if (
|
|
2895
|
-
s("update:model-value",
|
|
2897
|
+
const A = n.modelValue.filter((D) => !y.value.includes(D));
|
|
2898
|
+
if (L.value === !0)
|
|
2899
|
+
s("update:model-value", A);
|
|
2896
2900
|
else {
|
|
2897
|
-
const
|
|
2898
|
-
s("update:model-value", [...
|
|
2901
|
+
const D = n.includeDisabledOptionsWhenSelectAll ? n.options.map((i) => i.value) : n.options.filter((i) => !i.disabled).map((i) => i.value);
|
|
2902
|
+
s("update:model-value", [...A, ...D]);
|
|
2899
2903
|
}
|
|
2900
2904
|
}
|
|
2901
|
-
function V(
|
|
2905
|
+
function V(A, D) {
|
|
2902
2906
|
let i = dt(n.modelValue);
|
|
2903
|
-
|
|
2907
|
+
D ? i.every((d) => d !== A) && i.push(A) : i = i.filter((d) => d !== A), s("update:model-value", i);
|
|
2904
2908
|
}
|
|
2905
|
-
return (
|
|
2909
|
+
return (A, D) => {
|
|
2906
2910
|
const i = Qe("FmCheckbox");
|
|
2907
|
-
return Q(), De(
|
|
2911
|
+
return Q(), De(Cr, {
|
|
2908
2912
|
id: m,
|
|
2909
2913
|
title: e.title,
|
|
2910
2914
|
required: !1
|
|
2911
2915
|
}, {
|
|
2912
2916
|
top: pe(() => [
|
|
2913
|
-
ke(
|
|
2917
|
+
ke(A.$slots, "top")
|
|
2914
2918
|
]),
|
|
2915
2919
|
default: pe(() => [
|
|
2916
2920
|
n.showAllToggle ? (Q(), De(i, {
|
|
2917
2921
|
key: 0,
|
|
2918
|
-
"model-value":
|
|
2922
|
+
"model-value": L.value,
|
|
2919
2923
|
disabled: e.disable,
|
|
2920
|
-
label:
|
|
2924
|
+
label: O.value,
|
|
2921
2925
|
style: mt(`margin-bottom: ${n.gutter}px`),
|
|
2922
2926
|
size: "sm",
|
|
2923
2927
|
dense: "",
|
|
2924
|
-
value:
|
|
2928
|
+
value: O.value,
|
|
2925
2929
|
"onUpdate:modelValue": w
|
|
2926
2930
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Se("", !0),
|
|
2927
|
-
(Q(!0),
|
|
2931
|
+
(Q(!0), le(Te, null, ge(e.options, (d, T) => (Q(), le("div", {
|
|
2928
2932
|
key: d.value,
|
|
2929
|
-
style: mt(`margin-bottom: ${
|
|
2930
|
-
class: at(
|
|
2933
|
+
style: mt(`margin-bottom: ${T < e.options.length - 1 ? n.gutter : 0}px`),
|
|
2934
|
+
class: at(T < e.options.length - 1 ? "q-mb-sm" : "")
|
|
2931
2935
|
}, [
|
|
2932
|
-
|
|
2936
|
+
oe("div", {
|
|
2933
2937
|
class: at(["row justify-between", e.alignCenter ? "items-center" : "items-start"])
|
|
2934
2938
|
}, [
|
|
2935
|
-
|
|
2939
|
+
oe("div", Ar, [
|
|
2936
2940
|
_e(i, {
|
|
2937
2941
|
"model-value": e.modelValue.includes(d.value),
|
|
2938
2942
|
disabled: e.disable || d.disabled,
|
|
@@ -2941,41 +2945,41 @@ const Rr = { class: "col flex items-center" }, Ar = {
|
|
|
2941
2945
|
value: d.label,
|
|
2942
2946
|
"onUpdate:modelValue": (_) => V(d.value, _)
|
|
2943
2947
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
2944
|
-
ke(
|
|
2948
|
+
ke(A.$slots, `checkbox-${d.key || d.value}-append`, {
|
|
2945
2949
|
option: d,
|
|
2946
2950
|
selected: e.modelValue.includes(d.value)
|
|
2947
2951
|
})
|
|
2948
2952
|
]),
|
|
2949
|
-
|
|
2953
|
+
H(c)[`checkbox-${d.key || d.value}-end`] && (e.modelValue.includes(d.value) || e.falsyShowSlot) ? (Q(), le("div", {
|
|
2950
2954
|
key: 0,
|
|
2951
2955
|
class: at([{ "q-checkbox disabled": e.disable || d.disabled }, "col"])
|
|
2952
2956
|
}, [
|
|
2953
|
-
ke(
|
|
2957
|
+
ke(A.$slots, `checkbox-${d.key || d.value}-end`, {
|
|
2954
2958
|
option: d,
|
|
2955
2959
|
value: e.modelValue.includes(d.value),
|
|
2956
2960
|
disable: e.disable || d.disabled
|
|
2957
2961
|
})
|
|
2958
2962
|
], 2)) : Se("", !0)
|
|
2959
2963
|
], 2),
|
|
2960
|
-
|
|
2964
|
+
H(c)[`checkbox-${d.key || d.value}-bottom`] && (e.modelValue.includes(d.value) || e.falsyShowSlot) ? (Q(), le("div", {
|
|
2961
2965
|
key: 0,
|
|
2962
2966
|
class: at(["q-mt-sm", { "q-checkbox disabled": e.disable || d.disabled }]),
|
|
2963
2967
|
style: mt(`margin-left: ${e.bottomSlotIndent}`)
|
|
2964
2968
|
}, [
|
|
2965
|
-
ke(
|
|
2969
|
+
ke(A.$slots, `checkbox-${d.key || d.value}-bottom`, {
|
|
2966
2970
|
option: d,
|
|
2967
2971
|
disable: e.disable || d.disabled,
|
|
2968
2972
|
value: e.modelValue.includes(d.value)
|
|
2969
2973
|
})
|
|
2970
2974
|
], 6)) : Se("", !0)
|
|
2971
2975
|
], 6))), 128)),
|
|
2972
|
-
a.value && p.value ? (Q(),
|
|
2976
|
+
a.value && p.value ? (Q(), le("div", Sr, Ie(u.value), 1)) : Se("", !0)
|
|
2973
2977
|
]),
|
|
2974
2978
|
_: 3
|
|
2975
2979
|
}, 8, ["title"]);
|
|
2976
2980
|
};
|
|
2977
2981
|
}
|
|
2978
|
-
}),
|
|
2982
|
+
}), Dr = { class: "fm-typo-en-title-sm-600" }, ct = "includedFuture", Cn = /* @__PURE__ */ Le({
|
|
2979
2983
|
__name: "ConditionPermission",
|
|
2980
2984
|
props: {
|
|
2981
2985
|
modelValue: {
|
|
@@ -2997,7 +3001,7 @@ const Rr = { class: "col flex items-center" }, Ar = {
|
|
|
2997
3001
|
},
|
|
2998
3002
|
emits: ["update:model-value"],
|
|
2999
3003
|
setup(e, { emit: t }) {
|
|
3000
|
-
const n = e, s = t, { t: l } =
|
|
3004
|
+
const n = e, s = t, { t: l } = Be(), a = q(() => [
|
|
3001
3005
|
{
|
|
3002
3006
|
label: l("team.memberForm.permissions.includedFuture", { context: n.context }),
|
|
3003
3007
|
value: ct,
|
|
@@ -3007,30 +3011,30 @@ const Rr = { class: "col flex items-center" }, Ar = {
|
|
|
3007
3011
|
...n.options.filter(
|
|
3008
3012
|
(y) => y.label.toLocaleLowerCase().includes(p.value.toLocaleLowerCase())
|
|
3009
3013
|
)
|
|
3010
|
-
]), c =
|
|
3011
|
-
const y = c.value.filter((
|
|
3014
|
+
]), c = q(() => n.modelValue ? n.modelValue : [ct, ...n.options.map((y) => y.value)]), u = q(() => {
|
|
3015
|
+
const y = c.value.filter((O) => O !== ct).length;
|
|
3012
3016
|
return y === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: y });
|
|
3013
3017
|
});
|
|
3014
3018
|
function m(y) {
|
|
3015
|
-
const
|
|
3016
|
-
s("update:model-value",
|
|
3019
|
+
const O = y.length === a.value.length;
|
|
3020
|
+
s("update:model-value", O ? null : y.filter((L) => L !== ct));
|
|
3017
3021
|
}
|
|
3018
3022
|
const p = bt("");
|
|
3019
|
-
return (y,
|
|
3020
|
-
const
|
|
3023
|
+
return (y, O) => {
|
|
3024
|
+
const L = Qe("fm-search");
|
|
3021
3025
|
return Q(), De(Zt, { subtitle: u.value }, {
|
|
3022
3026
|
title: pe(() => [
|
|
3023
|
-
|
|
3027
|
+
oe("p", Dr, Ie(H(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3024
3028
|
]),
|
|
3025
3029
|
default: pe(() => [
|
|
3026
|
-
e.options.length > 1 ? (Q(), De(
|
|
3030
|
+
e.options.length > 1 ? (Q(), De(L, {
|
|
3027
3031
|
key: 0,
|
|
3028
3032
|
modelValue: p.value,
|
|
3029
|
-
"onUpdate:modelValue":
|
|
3033
|
+
"onUpdate:modelValue": O[0] || (O[0] = (w) => p.value = w),
|
|
3030
3034
|
class: "mt-16",
|
|
3031
|
-
placeholder:
|
|
3035
|
+
placeholder: H(l)("team.memberForm.permissions.search", { context: e.context })
|
|
3032
3036
|
}, null, 8, ["modelValue", "placeholder"])) : Se("", !0),
|
|
3033
|
-
_e(
|
|
3037
|
+
_e(Hn, {
|
|
3034
3038
|
"model-value": c.value,
|
|
3035
3039
|
options: a.value,
|
|
3036
3040
|
"show-intermediate": !1,
|
|
@@ -3053,7 +3057,7 @@ const Rr = { class: "col flex items-center" }, Ar = {
|
|
|
3053
3057
|
}, 8, ["subtitle"]);
|
|
3054
3058
|
};
|
|
3055
3059
|
}
|
|
3056
|
-
}),
|
|
3060
|
+
}), Mr = { class: "fm-typo-en-title-sm-600" }, ut = "includedNewRole", wr = /* @__PURE__ */ Le({
|
|
3057
3061
|
__name: "PosRolePermission",
|
|
3058
3062
|
props: {
|
|
3059
3063
|
modelValue: {
|
|
@@ -3075,7 +3079,7 @@ const Rr = { class: "col flex items-center" }, Ar = {
|
|
|
3075
3079
|
},
|
|
3076
3080
|
emits: ["update:model-value"],
|
|
3077
3081
|
setup(e, { emit: t }) {
|
|
3078
|
-
const n = e, s = t, { t: l } =
|
|
3082
|
+
const n = e, s = t, { t: l } = Be(), a = q(() => {
|
|
3079
3083
|
const p = n.restaurantIds;
|
|
3080
3084
|
return [
|
|
3081
3085
|
{
|
|
@@ -3086,23 +3090,23 @@ const Rr = { class: "col flex items-center" }, Ar = {
|
|
|
3086
3090
|
...n.roles.map((y) => ({
|
|
3087
3091
|
label: y.name,
|
|
3088
3092
|
value: y._id,
|
|
3089
|
-
disabled: !!p && y.restaurants.every(({ id:
|
|
3093
|
+
disabled: !!p && y.restaurants.every(({ id: O }) => !p.includes(O))
|
|
3090
3094
|
}))
|
|
3091
3095
|
];
|
|
3092
|
-
}), c =
|
|
3096
|
+
}), c = q(() => n.modelValue ? n.modelValue : [ut, ...n.roles.map((p) => p._id)]), u = q(() => {
|
|
3093
3097
|
const p = c.value.filter((y) => y !== ut).length;
|
|
3094
3098
|
return p === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: p });
|
|
3095
3099
|
});
|
|
3096
3100
|
function m(p) {
|
|
3097
3101
|
const y = p.length === a.value.length;
|
|
3098
|
-
s("update:model-value", y ? null : p.filter((
|
|
3102
|
+
s("update:model-value", y ? null : p.filter((O) => O !== ut));
|
|
3099
3103
|
}
|
|
3100
3104
|
return (p, y) => (Q(), De(Zt, { subtitle: u.value }, {
|
|
3101
3105
|
title: pe(() => [
|
|
3102
|
-
|
|
3106
|
+
oe("p", Mr, Ie(H(l)("team.memberForm.permissions.roles")), 1)
|
|
3103
3107
|
]),
|
|
3104
3108
|
default: pe(() => [
|
|
3105
|
-
_e(
|
|
3109
|
+
_e(Hn, {
|
|
3106
3110
|
"model-value": c.value,
|
|
3107
3111
|
options: a.value,
|
|
3108
3112
|
"show-intermediate": !1,
|
|
@@ -3112,10 +3116,10 @@ const Rr = { class: "col flex items-center" }, Ar = {
|
|
|
3112
3116
|
class: "mt-16",
|
|
3113
3117
|
"onUpdate:modelValue": m
|
|
3114
3118
|
}, xe({ _: 2 }, [
|
|
3115
|
-
ge(a.value, (
|
|
3116
|
-
name: `checkbox-${
|
|
3117
|
-
fn: pe(({ option:
|
|
3118
|
-
ke(p.$slots, `checkbox-${
|
|
3119
|
+
ge(a.value, (O) => ({
|
|
3120
|
+
name: `checkbox-${O.value}-append`,
|
|
3121
|
+
fn: pe(({ option: L }) => [
|
|
3122
|
+
ke(p.$slots, `checkbox-${O.value}-append`, { option: L })
|
|
3119
3123
|
])
|
|
3120
3124
|
}))
|
|
3121
3125
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3123,13 +3127,13 @@ const Rr = { class: "col flex items-center" }, Ar = {
|
|
|
3123
3127
|
_: 3
|
|
3124
3128
|
}, 8, ["subtitle"]));
|
|
3125
3129
|
}
|
|
3126
|
-
}),
|
|
3130
|
+
}), Pr = {
|
|
3127
3131
|
async readWarehouses() {
|
|
3128
3132
|
return us(await ms().get("/warehouses"));
|
|
3129
3133
|
}
|
|
3130
|
-
},
|
|
3134
|
+
}, Fr = { class: "flex flex-col gap-32" }, jr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Ur = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Vr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Gr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, zr = /* @__PURE__ */ Le({
|
|
3131
3135
|
__name: "PortalPermissionEditor",
|
|
3132
|
-
props: /* @__PURE__ */
|
|
3136
|
+
props: /* @__PURE__ */ Qt({
|
|
3133
3137
|
disable: {
|
|
3134
3138
|
type: Boolean,
|
|
3135
3139
|
default: !1
|
|
@@ -3142,291 +3146,291 @@ const Rr = { class: "col flex items-center" }, Ar = {
|
|
|
3142
3146
|
modelValue: { default: () => [] },
|
|
3143
3147
|
modelModifiers: {}
|
|
3144
3148
|
}),
|
|
3145
|
-
emits: /* @__PURE__ */
|
|
3149
|
+
emits: /* @__PURE__ */ Qt(["permissionChanged"], ["update:modelValue"]),
|
|
3146
3150
|
setup(e, { emit: t }) {
|
|
3147
|
-
const n = ts(e, "modelValue"), s = e, l = t, { t: a } =
|
|
3148
|
-
function m(
|
|
3149
|
-
return Dt.find((
|
|
3151
|
+
const n = ts(e, "modelValue"), s = e, l = t, { t: a } = Be(), { fetchCustomReportPermissions: c, customReportPermissions: u } = ss();
|
|
3152
|
+
function m(N) {
|
|
3153
|
+
return Dt.find((R) => R.subject === N) ?? u.value.find((R) => R.subject === N);
|
|
3150
3154
|
}
|
|
3151
|
-
const p =
|
|
3152
|
-
const
|
|
3155
|
+
const p = q(() => {
|
|
3156
|
+
const N = [...Dt, ...u.value].filter((v) => !w.includes(v.subject)).map((v) => v.subject);
|
|
3153
3157
|
return as(
|
|
3154
|
-
s.inheritPermissions.map((
|
|
3155
|
-
...
|
|
3156
|
-
permissions:
|
|
3158
|
+
s.inheritPermissions.map((v) => ({
|
|
3159
|
+
...v,
|
|
3160
|
+
permissions: v.permissions.filter((W) => N.includes(W.subject))
|
|
3157
3161
|
}))
|
|
3158
|
-
).map((
|
|
3159
|
-
id:
|
|
3160
|
-
setNames:
|
|
3162
|
+
).map((v) => ({
|
|
3163
|
+
id: v.subject,
|
|
3164
|
+
setNames: v.setNames
|
|
3161
3165
|
}));
|
|
3162
|
-
}), y =
|
|
3163
|
-
const
|
|
3164
|
-
...
|
|
3165
|
-
permissions:
|
|
3166
|
-
(
|
|
3166
|
+
}), y = q(() => {
|
|
3167
|
+
const N = s.inheritPermissions.map((R) => ({
|
|
3168
|
+
...R,
|
|
3169
|
+
permissions: R.permissions.filter(
|
|
3170
|
+
(v) => v.subject === ue.Subject.Business.inventory_stock
|
|
3167
3171
|
)
|
|
3168
3172
|
}));
|
|
3169
3173
|
return kt(
|
|
3170
|
-
|
|
3174
|
+
N,
|
|
3171
3175
|
"warehouseId",
|
|
3172
|
-
|
|
3176
|
+
A.value.map((R) => R._id)
|
|
3173
3177
|
);
|
|
3174
|
-
}),
|
|
3175
|
-
const
|
|
3176
|
-
...
|
|
3177
|
-
permissions:
|
|
3178
|
-
(
|
|
3178
|
+
}), O = q(() => {
|
|
3179
|
+
const N = s.inheritPermissions.map((R) => ({
|
|
3180
|
+
...R,
|
|
3181
|
+
permissions: R.permissions.filter(
|
|
3182
|
+
(v) => v.subject === ue.Subject.Restaurant.restaurant
|
|
3179
3183
|
)
|
|
3180
3184
|
}));
|
|
3181
3185
|
return kt(
|
|
3182
|
-
|
|
3186
|
+
N,
|
|
3183
3187
|
"restaurantId",
|
|
3184
|
-
|
|
3188
|
+
T.value.map((R) => R._id)
|
|
3185
3189
|
);
|
|
3186
|
-
}),
|
|
3187
|
-
const
|
|
3188
|
-
...
|
|
3189
|
-
permissions:
|
|
3190
|
+
}), L = q(() => {
|
|
3191
|
+
const N = s.inheritPermissions.map((R) => ({
|
|
3192
|
+
...R,
|
|
3193
|
+
permissions: R.permissions.filter((v) => v.subject === ue.Subject.Business.role)
|
|
3190
3194
|
}));
|
|
3191
3195
|
return kt(
|
|
3192
|
-
|
|
3196
|
+
N,
|
|
3193
3197
|
"roleId",
|
|
3194
|
-
_.value.map((
|
|
3198
|
+
_.value.map((R) => R._id)
|
|
3195
3199
|
);
|
|
3196
3200
|
}), w = [
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
], V =
|
|
3202
|
-
var
|
|
3203
|
-
const
|
|
3204
|
-
(
|
|
3201
|
+
ue.Subject.Business.restaurant,
|
|
3202
|
+
ue.Subject.Business.role,
|
|
3203
|
+
ue.Subject.Restaurant.restaurant,
|
|
3204
|
+
ue.Subject.Business.inventory_stock
|
|
3205
|
+
], V = q(() => {
|
|
3206
|
+
var R;
|
|
3207
|
+
const N = (R = n.value) == null ? void 0 : R.find(
|
|
3208
|
+
(v) => v.subject === ue.Subject.Business.inventory_stock
|
|
3205
3209
|
);
|
|
3206
|
-
return
|
|
3207
|
-
}),
|
|
3208
|
-
label:
|
|
3209
|
-
value:
|
|
3210
|
+
return N ? N.conditions ? JSON.parse(N.conditions).warehouseId.$in : null : [];
|
|
3211
|
+
}), A = bt([]), D = q(() => A.value.map((N) => ({
|
|
3212
|
+
label: N.profile.name,
|
|
3213
|
+
value: N._id
|
|
3210
3214
|
})));
|
|
3211
|
-
function i(
|
|
3212
|
-
const
|
|
3213
|
-
n.value =
|
|
3215
|
+
function i(N) {
|
|
3216
|
+
const R = d(n.value, N);
|
|
3217
|
+
n.value = R;
|
|
3214
3218
|
}
|
|
3215
|
-
function d(
|
|
3216
|
-
let
|
|
3217
|
-
|
|
3219
|
+
function d(N, R) {
|
|
3220
|
+
let v = dt(
|
|
3221
|
+
N.filter((W) => W.subject !== ue.Subject.Business.inventory_stock)
|
|
3218
3222
|
);
|
|
3219
|
-
if (!
|
|
3220
|
-
const
|
|
3221
|
-
actions: [
|
|
3222
|
-
subject:
|
|
3223
|
+
if (!R || R.length > 0) {
|
|
3224
|
+
const W = {
|
|
3225
|
+
actions: [ue.Action.manage],
|
|
3226
|
+
subject: ue.Subject.Business.inventory_stock
|
|
3223
3227
|
};
|
|
3224
|
-
|
|
3228
|
+
R && (W.conditions = JSON.stringify({ warehouseId: { $in: R } })), v.push(W);
|
|
3225
3229
|
}
|
|
3226
|
-
return
|
|
3230
|
+
return v;
|
|
3227
3231
|
}
|
|
3228
|
-
const { restaurants:
|
|
3229
|
-
label: `${
|
|
3230
|
-
value:
|
|
3231
|
-
}))),
|
|
3232
|
-
function
|
|
3233
|
-
const
|
|
3234
|
-
n.value =
|
|
3232
|
+
const { restaurants: T } = ns(), _ = ds().roles, M = q(() => T.value.map((N) => ({
|
|
3233
|
+
label: `${N.profile.code ? N.profile.code + "-" : ""}${N.profile.name}`,
|
|
3234
|
+
value: N._id
|
|
3235
|
+
}))), S = q(() => T.value.reduce((N, R) => (N[R._id] = _.value.filter((v) => v.restaurants.some((W) => W.id === R._id)).map((v) => v._id), N), {})), E = q(() => rs(n.value));
|
|
3236
|
+
function J(N) {
|
|
3237
|
+
const R = h(n.value, N);
|
|
3238
|
+
n.value = R;
|
|
3235
3239
|
}
|
|
3236
|
-
const
|
|
3237
|
-
function
|
|
3238
|
-
var
|
|
3239
|
-
let
|
|
3240
|
-
|
|
3241
|
-
(
|
|
3240
|
+
const g = q(() => ls(n.value));
|
|
3241
|
+
function h(N, R) {
|
|
3242
|
+
var W;
|
|
3243
|
+
let v = dt(
|
|
3244
|
+
N.filter(
|
|
3245
|
+
(G) => G.subject !== ue.Subject.Business.restaurant && G.subject !== ue.Subject.Restaurant.restaurant
|
|
3242
3246
|
)
|
|
3243
3247
|
);
|
|
3244
|
-
if (!
|
|
3248
|
+
if (!R || R.length > 0) {
|
|
3245
3249
|
const {
|
|
3246
|
-
category:
|
|
3250
|
+
category: G,
|
|
3247
3251
|
showByFeatureFlag: j,
|
|
3248
|
-
...
|
|
3252
|
+
...te
|
|
3249
3253
|
} = cs.restaurant;
|
|
3250
|
-
|
|
3251
|
-
const
|
|
3252
|
-
actions: [
|
|
3253
|
-
subject:
|
|
3254
|
+
v.push(te);
|
|
3255
|
+
const Y = {
|
|
3256
|
+
actions: [ue.Action.manage],
|
|
3257
|
+
subject: ue.Subject.Restaurant.restaurant
|
|
3254
3258
|
};
|
|
3255
|
-
|
|
3259
|
+
R && (Y.conditions = JSON.stringify({ restaurantId: { $in: R } })), v.push(Y);
|
|
3256
3260
|
}
|
|
3257
|
-
if (
|
|
3258
|
-
const
|
|
3259
|
-
...new Set(
|
|
3260
|
-
], j = _.value.map((
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
(
|
|
3261
|
+
if (R) {
|
|
3262
|
+
const G = [
|
|
3263
|
+
...new Set(R.map((te) => S.value[te]).flatMap((te) => te))
|
|
3264
|
+
], j = _.value.map((te) => te._id);
|
|
3265
|
+
G.length !== j.length && (v = I(
|
|
3266
|
+
v,
|
|
3267
|
+
(W = g.value || j) == null ? void 0 : W.filter((te) => G.includes(te))
|
|
3264
3268
|
));
|
|
3265
3269
|
}
|
|
3266
|
-
return
|
|
3270
|
+
return v;
|
|
3267
3271
|
}
|
|
3268
|
-
function C(
|
|
3269
|
-
const
|
|
3270
|
-
n.value =
|
|
3272
|
+
function C(N) {
|
|
3273
|
+
const R = I(n.value, N);
|
|
3274
|
+
n.value = R;
|
|
3271
3275
|
}
|
|
3272
|
-
function
|
|
3273
|
-
let
|
|
3274
|
-
|
|
3276
|
+
function I(N, R) {
|
|
3277
|
+
let v = dt(
|
|
3278
|
+
N.filter((W) => W.subject !== ue.Subject.Business.role)
|
|
3275
3279
|
);
|
|
3276
|
-
if (
|
|
3277
|
-
const
|
|
3278
|
-
actions: [
|
|
3279
|
-
subject:
|
|
3280
|
-
conditions: JSON.stringify({ roleId: { $in:
|
|
3280
|
+
if (R && R.length > 0) {
|
|
3281
|
+
const W = {
|
|
3282
|
+
actions: [ue.Action.manage],
|
|
3283
|
+
subject: ue.Subject.Business.role,
|
|
3284
|
+
conditions: JSON.stringify({ roleId: { $in: R } })
|
|
3281
3285
|
};
|
|
3282
|
-
|
|
3286
|
+
v.push(W);
|
|
3283
3287
|
}
|
|
3284
|
-
return
|
|
3288
|
+
return v;
|
|
3285
3289
|
}
|
|
3286
3290
|
Rn(async () => {
|
|
3287
3291
|
await Promise.all([
|
|
3288
|
-
|
|
3292
|
+
Pr.readWarehouses().then((N) => A.value = N),
|
|
3289
3293
|
c()
|
|
3290
3294
|
]);
|
|
3291
3295
|
});
|
|
3292
|
-
const F =
|
|
3296
|
+
const F = q(() => Lt(
|
|
3293
3297
|
n.value,
|
|
3294
|
-
|
|
3295
|
-
).filter((
|
|
3296
|
-
const
|
|
3297
|
-
return (
|
|
3298
|
-
}).map((
|
|
3299
|
-
if (
|
|
3300
|
-
const
|
|
3301
|
-
if (!
|
|
3302
|
-
const
|
|
3303
|
-
if (!
|
|
3304
|
-
const j =
|
|
3305
|
-
return j.length <= 1 || j.filter((
|
|
3298
|
+
Ot
|
|
3299
|
+
).filter((v) => {
|
|
3300
|
+
const W = v.source;
|
|
3301
|
+
return (W == null ? void 0 : W.type) !== "systemPermissionSet" ? !0 : v.actions.includes("manage");
|
|
3302
|
+
}).map((v) => {
|
|
3303
|
+
if (v.inverted) return v;
|
|
3304
|
+
const W = v.actions;
|
|
3305
|
+
if (!W.includes("manage")) return v;
|
|
3306
|
+
const G = m(v.subject);
|
|
3307
|
+
if (!G) return v;
|
|
3308
|
+
const j = G.actions;
|
|
3309
|
+
return j.length <= 1 || j.filter((Y) => !W.includes(Y)).length === 0 ? v : { ...v, actions: [...j] };
|
|
3306
3310
|
}));
|
|
3307
|
-
function
|
|
3308
|
-
const
|
|
3311
|
+
function x(N) {
|
|
3312
|
+
const R = new Set(
|
|
3309
3313
|
F.value.filter((j) => !j.inverted).map((j) => j.subject)
|
|
3310
|
-
),
|
|
3311
|
-
|
|
3312
|
-
),
|
|
3314
|
+
), v = new Set(
|
|
3315
|
+
N.filter((j) => !j.inverted).map((j) => j.subject)
|
|
3316
|
+
), W = new Set(
|
|
3313
3317
|
n.value.filter((j) => !j.inverted).map((j) => j.subject)
|
|
3314
3318
|
);
|
|
3315
|
-
let
|
|
3316
|
-
for (const j of
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3319
|
+
let G = [...n.value];
|
|
3320
|
+
for (const j of R)
|
|
3321
|
+
v.has(j) || (W.has(j) && (G = G.filter((Y) => Y.subject !== j)), (!W.has(j) || Lt(
|
|
3322
|
+
G,
|
|
3323
|
+
Ot
|
|
3320
3324
|
).some(
|
|
3321
|
-
(
|
|
3322
|
-
)) && !
|
|
3323
|
-
for (const j of
|
|
3324
|
-
if (!
|
|
3325
|
-
const
|
|
3326
|
-
if (
|
|
3327
|
-
const
|
|
3328
|
-
(
|
|
3325
|
+
(Y) => Y.subject === j && !Y.inverted && Y.actions.includes("manage")
|
|
3326
|
+
)) && !G.some((Y) => Y.subject === j && Y.inverted) && G.push({ subject: j, actions: ["manage"], inverted: !0 }));
|
|
3327
|
+
for (const j of v)
|
|
3328
|
+
if (!R.has(j)) {
|
|
3329
|
+
const te = G.some((Y) => Y.subject === j && Y.inverted);
|
|
3330
|
+
if (G = G.filter((Y) => !(Y.subject === j && Y.inverted)), !te && !W.has(j)) {
|
|
3331
|
+
const Y = N.find(
|
|
3332
|
+
(fe) => fe.subject === j && !fe.inverted
|
|
3329
3333
|
), he = m(j);
|
|
3330
|
-
if (he &&
|
|
3331
|
-
const { category:
|
|
3332
|
-
|
|
3334
|
+
if (he && Y) {
|
|
3335
|
+
const { category: fe, showByFeatureFlag: B, ...Z } = he;
|
|
3336
|
+
G.push({ ...Z, actions: Y.actions });
|
|
3333
3337
|
}
|
|
3334
3338
|
}
|
|
3335
3339
|
}
|
|
3336
|
-
for (const j of
|
|
3337
|
-
if (!
|
|
3338
|
-
const
|
|
3339
|
-
(
|
|
3340
|
-
),
|
|
3341
|
-
if (!
|
|
3342
|
-
const he = new Set(
|
|
3343
|
-
if (he.size ===
|
|
3340
|
+
for (const j of v) {
|
|
3341
|
+
if (!R.has(j)) continue;
|
|
3342
|
+
const te = F.value.find(
|
|
3343
|
+
(Z) => Z.subject === j && !Z.inverted
|
|
3344
|
+
), Y = N.find((Z) => Z.subject === j && !Z.inverted);
|
|
3345
|
+
if (!te || !Y) continue;
|
|
3346
|
+
const he = new Set(te.actions), fe = new Set(Y.actions);
|
|
3347
|
+
if (he.size === fe.size && [...he].every((Z) => fe.has(Z)))
|
|
3344
3348
|
continue;
|
|
3345
|
-
const
|
|
3346
|
-
if (
|
|
3347
|
-
|
|
3348
|
-
...
|
|
3349
|
-
actions: Array.from(
|
|
3349
|
+
const B = G.findIndex((Z) => Z.subject === j && !Z.inverted);
|
|
3350
|
+
if (B >= 0)
|
|
3351
|
+
G[B] = {
|
|
3352
|
+
...G[B],
|
|
3353
|
+
actions: Array.from(fe)
|
|
3350
3354
|
};
|
|
3351
3355
|
else {
|
|
3352
|
-
const
|
|
3353
|
-
if (
|
|
3354
|
-
const { category:
|
|
3355
|
-
|
|
3356
|
+
const Z = m(j);
|
|
3357
|
+
if (Z) {
|
|
3358
|
+
const { category: Ee, showByFeatureFlag: He, ...Je } = Z;
|
|
3359
|
+
G.push({ ...Je, actions: Array.from(fe) });
|
|
3356
3360
|
}
|
|
3357
3361
|
}
|
|
3358
|
-
he.has("manage") && !
|
|
3359
|
-
|
|
3360
|
-
|
|
3362
|
+
he.has("manage") && !fe.has("manage") && Lt(
|
|
3363
|
+
G,
|
|
3364
|
+
Ot
|
|
3361
3365
|
).some(
|
|
3362
|
-
(
|
|
3363
|
-
) && !
|
|
3366
|
+
(Ee) => Ee.subject === j && !Ee.inverted && Ee.actions.includes("manage")
|
|
3367
|
+
) && !G.some((Ee) => Ee.subject === j && Ee.inverted) && G.push({ subject: j, actions: ["manage"], inverted: !0 }), !he.has("manage") && fe.has("manage") && (G = G.filter((Z) => !(Z.subject === j && Z.inverted)));
|
|
3364
3368
|
}
|
|
3365
|
-
n.value =
|
|
3369
|
+
n.value = G;
|
|
3366
3370
|
}
|
|
3367
3371
|
return St(
|
|
3368
3372
|
n,
|
|
3369
|
-
(
|
|
3370
|
-
l("permissionChanged",
|
|
3373
|
+
(N) => {
|
|
3374
|
+
l("permissionChanged", N);
|
|
3371
3375
|
},
|
|
3372
3376
|
{ deep: !0 }
|
|
3373
|
-
), (
|
|
3374
|
-
|
|
3375
|
-
_e(
|
|
3377
|
+
), (N, R) => (Q(), le("div", Fr, [
|
|
3378
|
+
oe("div", jr, [
|
|
3379
|
+
_e(yr, {
|
|
3376
3380
|
"model-value": F.value,
|
|
3377
3381
|
"excluded-subjects": w,
|
|
3378
|
-
"additional-permissions":
|
|
3379
|
-
"onUpdate:modelValue":
|
|
3382
|
+
"additional-permissions": H(u),
|
|
3383
|
+
"onUpdate:modelValue": x
|
|
3380
3384
|
}, xe({ _: 2 }, [
|
|
3381
|
-
ge(p.value, (
|
|
3382
|
-
name: `checkbox-${
|
|
3385
|
+
ge(p.value, (v) => ({
|
|
3386
|
+
name: `checkbox-${v.id}-append`,
|
|
3383
3387
|
fn: pe(() => [
|
|
3384
|
-
_e(it, { item:
|
|
3388
|
+
_e(it, { item: v }, null, 8, ["item"])
|
|
3385
3389
|
])
|
|
3386
3390
|
}))
|
|
3387
3391
|
]), 1032, ["model-value", "additional-permissions"])
|
|
3388
3392
|
]),
|
|
3389
|
-
|
|
3393
|
+
oe("div", Ur, [
|
|
3390
3394
|
_e(Cn, {
|
|
3391
3395
|
"model-value": V.value,
|
|
3392
|
-
options:
|
|
3393
|
-
context:
|
|
3396
|
+
options: D.value,
|
|
3397
|
+
context: H(a)("team.labels.warehouse"),
|
|
3394
3398
|
"onUpdate:modelValue": i
|
|
3395
3399
|
}, xe({ _: 2 }, [
|
|
3396
|
-
ge(y.value, (
|
|
3397
|
-
name: `checkbox-${
|
|
3400
|
+
ge(y.value, (v) => ({
|
|
3401
|
+
name: `checkbox-${v.id}-append`,
|
|
3398
3402
|
fn: pe(() => [
|
|
3399
|
-
_e(it, { item:
|
|
3403
|
+
_e(it, { item: v }, null, 8, ["item"])
|
|
3400
3404
|
])
|
|
3401
3405
|
}))
|
|
3402
3406
|
]), 1032, ["model-value", "options", "context"])
|
|
3403
3407
|
]),
|
|
3404
|
-
|
|
3408
|
+
oe("div", Vr, [
|
|
3405
3409
|
_e(Cn, {
|
|
3406
|
-
"model-value":
|
|
3407
|
-
options:
|
|
3408
|
-
context:
|
|
3409
|
-
"onUpdate:modelValue":
|
|
3410
|
+
"model-value": E.value,
|
|
3411
|
+
options: M.value,
|
|
3412
|
+
context: H(a)("team.labels.restaurant"),
|
|
3413
|
+
"onUpdate:modelValue": J
|
|
3410
3414
|
}, xe({ _: 2 }, [
|
|
3411
|
-
ge(
|
|
3412
|
-
name: `checkbox-${
|
|
3415
|
+
ge(O.value, (v) => ({
|
|
3416
|
+
name: `checkbox-${v.id}-append`,
|
|
3413
3417
|
fn: pe(() => [
|
|
3414
|
-
_e(it, { item:
|
|
3418
|
+
_e(it, { item: v }, null, 8, ["item"])
|
|
3415
3419
|
])
|
|
3416
3420
|
}))
|
|
3417
3421
|
]), 1032, ["model-value", "options", "context"])
|
|
3418
3422
|
]),
|
|
3419
|
-
|
|
3420
|
-
_e(
|
|
3421
|
-
roles:
|
|
3422
|
-
"model-value":
|
|
3423
|
-
"restaurant-ids":
|
|
3423
|
+
oe("div", Gr, [
|
|
3424
|
+
_e(wr, {
|
|
3425
|
+
roles: H(_),
|
|
3426
|
+
"model-value": g.value,
|
|
3427
|
+
"restaurant-ids": E.value,
|
|
3424
3428
|
"onUpdate:modelValue": C
|
|
3425
3429
|
}, xe({ _: 2 }, [
|
|
3426
|
-
ge(
|
|
3427
|
-
name: `checkbox-${
|
|
3430
|
+
ge(L.value, (v) => ({
|
|
3431
|
+
name: `checkbox-${v.id}-append`,
|
|
3428
3432
|
fn: pe(() => [
|
|
3429
|
-
_e(it, { item:
|
|
3433
|
+
_e(it, { item: v }, null, 8, ["item"])
|
|
3430
3434
|
])
|
|
3431
3435
|
}))
|
|
3432
3436
|
]), 1032, ["roles", "model-value", "restaurant-ids"])
|
|
@@ -3435,5 +3439,5 @@ const Rr = { class: "col flex items-center" }, Ar = {
|
|
|
3435
3439
|
}
|
|
3436
3440
|
});
|
|
3437
3441
|
export {
|
|
3438
|
-
|
|
3442
|
+
zr as _
|
|
3439
3443
|
};
|