@feedmepos/mf-hrm-portal 2.0.9-dev → 2.0.10-dev
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-cTdvCUg5.js → AuditLogList-BqKDq3NZ.js} +4 -4
- package/dist/{EmployeeList-B3fnrpGh.js → EmployeeList-B3qXFaOz.js} +5 -5
- package/dist/{Main-BBnrg7Uj.js → Main-JUX88mXA.js} +8 -8
- package/dist/{Main-BdqhjHAf.js → Main-urBwZXUq.js} +5 -5
- package/dist/{PermissionSetList-CbTD1cQS.js → PermissionSetList-BfCuoHa3.js} +3 -3
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-kNwUa8pu.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BYZbAUtK.js} +591 -590
- package/dist/{RoleList-DX5diS1S.js → RoleList-Dl7042_3.js} +6 -6
- package/dist/{TeamMemberList-BYV9RGP6.js → TeamMemberList-BrZDh51J.js} +7 -7
- package/dist/{TimesheetList-BIow_Ws_.js → TimesheetList-B3cmnZN5.js} +6 -6
- package/dist/{app-CvrjCzWF.js → app-DHFWqcG2.js} +4 -4
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-BLu272lb.js → dayjs.min-faWeeWGk.js} +1 -1
- package/dist/{employee-DJHxqq_Y.js → employee-sOy9OKvU.js} +3 -3
- package/dist/{index-C2SJ78vp.js → index-DNsMh7eu.js} +1 -1
- package/dist/{index-BR30VIHJ.js → index-EeD0w_Es.js} +1 -1
- package/dist/{lodash-17Fzq9hS.js → lodash-CfsS7nDC.js} +1 -1
- package/dist/{team-DPCgqGHp.js → team-CTYZ-AfE.js} +1 -1
- package/dist/{timesheet-B3sXm2-b.js → timesheet-CP-usx78.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-B87muKBs.js → useAppStore-DpKptyzk.js} +1 -1
- package/dist/{useLoading-Bsbv3Rtr.js → useLoading-D0NWMSr4.js} +1 -1
- package/dist/{useReportPermissions-BpqdhZrp.js → useReportPermissions-CtnMIyaq.js} +2 -2
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { getCurrentInstance as xt, inject as Hn, ref as Ve, shallowRef as Bn, computed as J, watch as St, onMounted as
|
|
1
|
+
import { getCurrentInstance as xt, inject as Hn, ref as Ve, shallowRef as Bn, computed as J, watch as St, onMounted as Xt, onUnmounted as On, defineComponent as Ie, h as Rn, createVNode as de, Text as $n, Fragment as ye, resolveComponent as Ye, createBlock as Se, openBlock as x, withCtx as pe, createElementVNode as te, createElementBlock as ee, toDisplayString as Ce, unref as Te, renderList as _e, renderSlot as he, createCommentVNode as Le, createTextVNode as Jn, useSlots as zn, normalizeStyle as ct, normalizeClass as qe, createSlots as Fe, nextTick as Kn, mergeModels as Qt, useModel as Qn } from "vue";
|
|
2
2
|
import { useI18n as _t, useCoreStore as qn } from "@feedmepos/mf-common";
|
|
3
3
|
import "@vue/devtools-api";
|
|
4
|
-
import { l as ut, p as Dt, g as es, b as ts, q as ns, C as ss, D as yt, E as as, v as rs, $ as
|
|
5
|
-
import { a as ls, i as ie, U as os, b as
|
|
6
|
-
import { u as is } from "./index-
|
|
7
|
-
import { u as cs } from "./useAppStore-
|
|
4
|
+
import { l as ut, p as Dt, g as es, b as ts, q as ns, C as ss, D as yt, E as as, v as rs, $ as Tt } from "./index-EeD0w_Es.js";
|
|
5
|
+
import { a as ls, i as ie, U as os, b as kt } from "./app-DHFWqcG2.js";
|
|
6
|
+
import { u as is } from "./index-DNsMh7eu.js";
|
|
7
|
+
import { u as cs } from "./useAppStore-DpKptyzk.js";
|
|
8
8
|
/*!
|
|
9
9
|
* shared v10.0.5
|
|
10
10
|
* (c) 2024 kazuya kawaguchi
|
|
11
11
|
* Released under the MIT License.
|
|
12
12
|
*/
|
|
13
|
-
const qt = typeof window < "u",
|
|
13
|
+
const qt = typeof window < "u", Ue = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), us = (e, t, n) => ms({ l: e, k: t, s: n }), ms = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ce = (e) => typeof e == "number" && isFinite(e), ds = (e) => Yt(e) === "[object Date]", dt = (e) => Yt(e) === "[object RegExp]", pt = (e) => X(e) && Object.keys(e).length === 0, ue = Object.assign, fs = Object.create, B = (e = null) => fs(e);
|
|
14
14
|
let en;
|
|
15
15
|
const je = () => en || (en = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : B());
|
|
16
16
|
function tn(e) {
|
|
@@ -20,14 +20,14 @@ const _s = Object.prototype.hasOwnProperty;
|
|
|
20
20
|
function Ee(e, t) {
|
|
21
21
|
return _s.call(e, t);
|
|
22
22
|
}
|
|
23
|
-
const oe = Array.isArray, ne = (e) => typeof e == "function",
|
|
24
|
-
function
|
|
23
|
+
const oe = Array.isArray, ne = (e) => typeof e == "function", C = (e) => typeof e == "string", le = (e) => typeof e == "boolean", Y = (e) => e !== null && typeof e == "object", ps = (e) => Y(e) && ne(e.then) && ne(e.catch), An = Object.prototype.toString, Yt = (e) => An.call(e), X = (e) => Yt(e) === "[object Object]", hs = (e) => e == null ? "" : oe(e) || X(e) && e.toString === An ? JSON.stringify(e, null, 2) : String(e);
|
|
24
|
+
function Zt(e, t = "") {
|
|
25
25
|
return e.reduce((n, s, l) => l === 0 ? n + s : n + t + s, "");
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function bs(e, t) {
|
|
28
28
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
29
29
|
}
|
|
30
|
-
const rt = (e) => !
|
|
30
|
+
const rt = (e) => !Y(e) || oe(e);
|
|
31
31
|
function mt(e, t) {
|
|
32
32
|
if (rt(e) || rt(t))
|
|
33
33
|
throw new Error("Invalid value");
|
|
@@ -35,7 +35,7 @@ function mt(e, t) {
|
|
|
35
35
|
for (; n.length; ) {
|
|
36
36
|
const { src: s, des: l } = n.pop();
|
|
37
37
|
Object.keys(s).forEach((a) => {
|
|
38
|
-
a !== "__proto__" && (
|
|
38
|
+
a !== "__proto__" && (Y(s[a]) && !Y(l[a]) && (l[a] = Array.isArray(s[a]) ? [] : B()), rt(l[a]) || rt(s[a]) ? l[a] = s[a] : n.push({ src: s[a], des: l[a] }));
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -63,21 +63,21 @@ const H = {
|
|
|
63
63
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
64
64
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
65
65
|
}, vs = 17;
|
|
66
|
-
function
|
|
66
|
+
function ht(e, t, n = {}) {
|
|
67
67
|
const { domain: s, messages: l, args: a } = n, m = e, f = new SyntaxError(String(m));
|
|
68
68
|
return f.code = e, t && (f.location = t), f.domain = s, f;
|
|
69
69
|
}
|
|
70
70
|
function Es(e) {
|
|
71
71
|
throw e;
|
|
72
72
|
}
|
|
73
|
-
const
|
|
73
|
+
const ke = " ", Is = "\r", me = `
|
|
74
74
|
`, Ns = "\u2028", ys = "\u2029";
|
|
75
|
-
function
|
|
75
|
+
function Ts(e) {
|
|
76
76
|
const t = e;
|
|
77
77
|
let n = 0, s = 1, l = 1, a = 0;
|
|
78
|
-
const m = (i) => t[i] === Is && t[i + 1] === me, f = (i) => t[i] === me, d = (i) => t[i] === ys,
|
|
78
|
+
const m = (i) => t[i] === Is && t[i + 1] === me, f = (i) => t[i] === me, d = (i) => t[i] === ys, h = (i) => t[i] === Ns, T = (i) => m(i) || f(i) || d(i) || h(i), L = () => n, N = () => s, S = () => l, F = () => a, k = (i) => m(i) || d(i) || h(i) ? me : t[i], O = () => k(n), c = () => k(n + a);
|
|
79
79
|
function _() {
|
|
80
|
-
return a = 0,
|
|
80
|
+
return a = 0, T(n) && (s++, l = 0), m(n) && n++, n++, l++, t[n];
|
|
81
81
|
}
|
|
82
82
|
function y() {
|
|
83
83
|
return m(n + a) && a++, a++, t[n + a];
|
|
@@ -99,7 +99,7 @@ function ks(e) {
|
|
|
99
99
|
line: N,
|
|
100
100
|
column: S,
|
|
101
101
|
peekOffset: F,
|
|
102
|
-
charAt:
|
|
102
|
+
charAt: k,
|
|
103
103
|
currentChar: O,
|
|
104
104
|
currentPeek: c,
|
|
105
105
|
next: _,
|
|
@@ -109,9 +109,9 @@ function ks(e) {
|
|
|
109
109
|
skipToPeek: v
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
|
-
const
|
|
112
|
+
const Ae = void 0, ks = ".", nn = "'", Ls = "tokenizer";
|
|
113
113
|
function Os(e, t = {}) {
|
|
114
|
-
const n = t.location !== !1, s =
|
|
114
|
+
const n = t.location !== !1, s = Ts(e), l = () => s.index(), a = () => gs(s.line(), s.column(), s.index()), m = a(), f = l(), d = {
|
|
115
115
|
currentType: 13,
|
|
116
116
|
offset: f,
|
|
117
117
|
startLoc: m,
|
|
@@ -123,21 +123,21 @@ function Os(e, t = {}) {
|
|
|
123
123
|
braceNest: 0,
|
|
124
124
|
inLinked: !1,
|
|
125
125
|
text: ""
|
|
126
|
-
},
|
|
127
|
-
function L(r, o,
|
|
128
|
-
const ae =
|
|
129
|
-
if (o.column +=
|
|
130
|
-
const
|
|
126
|
+
}, h = () => d, { onError: T } = t;
|
|
127
|
+
function L(r, o, b, ...w) {
|
|
128
|
+
const ae = h();
|
|
129
|
+
if (o.column += b, o.offset += b, T) {
|
|
130
|
+
const G = n ? Mt(ae.startLoc, o) : null, p = ht(r, G, {
|
|
131
131
|
domain: Ls,
|
|
132
132
|
args: w
|
|
133
133
|
});
|
|
134
|
-
|
|
134
|
+
T(p);
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
function N(r, o,
|
|
137
|
+
function N(r, o, b) {
|
|
138
138
|
r.endLoc = a(), r.currentType = o;
|
|
139
139
|
const w = { type: o };
|
|
140
|
-
return n && (w.loc = Mt(r.startLoc, r.endLoc)),
|
|
140
|
+
return n && (w.loc = Mt(r.startLoc, r.endLoc)), b != null && (w.value = b), w;
|
|
141
141
|
}
|
|
142
142
|
const S = (r) => N(
|
|
143
143
|
r,
|
|
@@ -147,18 +147,18 @@ function Os(e, t = {}) {
|
|
|
147
147
|
function F(r, o) {
|
|
148
148
|
return r.currentChar() === o ? (r.next(), o) : (L(H.EXPECTED_TOKEN, a(), 0, o), "");
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function k(r) {
|
|
151
151
|
let o = "";
|
|
152
|
-
for (; r.currentPeek() ===
|
|
152
|
+
for (; r.currentPeek() === ke || r.currentPeek() === me; )
|
|
153
153
|
o += r.currentPeek(), r.peek();
|
|
154
154
|
return o;
|
|
155
155
|
}
|
|
156
156
|
function O(r) {
|
|
157
|
-
const o =
|
|
157
|
+
const o = k(r);
|
|
158
158
|
return r.skipToPeek(), o;
|
|
159
159
|
}
|
|
160
160
|
function c(r) {
|
|
161
|
-
if (r ===
|
|
161
|
+
if (r === Ae)
|
|
162
162
|
return !1;
|
|
163
163
|
const o = r.charCodeAt(0);
|
|
164
164
|
return o >= 97 && o <= 122 || // a-z
|
|
@@ -166,84 +166,84 @@ function Os(e, t = {}) {
|
|
|
166
166
|
o === 95;
|
|
167
167
|
}
|
|
168
168
|
function _(r) {
|
|
169
|
-
if (r ===
|
|
169
|
+
if (r === Ae)
|
|
170
170
|
return !1;
|
|
171
171
|
const o = r.charCodeAt(0);
|
|
172
172
|
return o >= 48 && o <= 57;
|
|
173
173
|
}
|
|
174
174
|
function y(r, o) {
|
|
175
|
-
const { currentType:
|
|
176
|
-
if (
|
|
175
|
+
const { currentType: b } = o;
|
|
176
|
+
if (b !== 2)
|
|
177
177
|
return !1;
|
|
178
|
-
|
|
178
|
+
k(r);
|
|
179
179
|
const w = c(r.currentPeek());
|
|
180
180
|
return r.resetPeek(), w;
|
|
181
181
|
}
|
|
182
182
|
function u(r, o) {
|
|
183
|
-
const { currentType:
|
|
184
|
-
if (
|
|
183
|
+
const { currentType: b } = o;
|
|
184
|
+
if (b !== 2)
|
|
185
185
|
return !1;
|
|
186
|
-
|
|
186
|
+
k(r);
|
|
187
187
|
const w = r.currentPeek() === "-" ? r.peek() : r.currentPeek(), ae = _(w);
|
|
188
188
|
return r.resetPeek(), ae;
|
|
189
189
|
}
|
|
190
190
|
function g(r, o) {
|
|
191
|
-
const { currentType:
|
|
192
|
-
if (
|
|
191
|
+
const { currentType: b } = o;
|
|
192
|
+
if (b !== 2)
|
|
193
193
|
return !1;
|
|
194
|
-
|
|
194
|
+
k(r);
|
|
195
195
|
const w = r.currentPeek() === nn;
|
|
196
196
|
return r.resetPeek(), w;
|
|
197
197
|
}
|
|
198
198
|
function v(r, o) {
|
|
199
|
-
const { currentType:
|
|
200
|
-
if (
|
|
199
|
+
const { currentType: b } = o;
|
|
200
|
+
if (b !== 7)
|
|
201
201
|
return !1;
|
|
202
|
-
|
|
202
|
+
k(r);
|
|
203
203
|
const w = r.currentPeek() === ".";
|
|
204
204
|
return r.resetPeek(), w;
|
|
205
205
|
}
|
|
206
206
|
function i(r, o) {
|
|
207
|
-
const { currentType:
|
|
208
|
-
if (
|
|
207
|
+
const { currentType: b } = o;
|
|
208
|
+
if (b !== 8)
|
|
209
209
|
return !1;
|
|
210
|
-
|
|
210
|
+
k(r);
|
|
211
211
|
const w = c(r.currentPeek());
|
|
212
212
|
return r.resetPeek(), w;
|
|
213
213
|
}
|
|
214
214
|
function I(r, o) {
|
|
215
|
-
const { currentType:
|
|
216
|
-
if (!(
|
|
215
|
+
const { currentType: b } = o;
|
|
216
|
+
if (!(b === 7 || b === 11))
|
|
217
217
|
return !1;
|
|
218
|
-
|
|
218
|
+
k(r);
|
|
219
219
|
const w = r.currentPeek() === ":";
|
|
220
220
|
return r.resetPeek(), w;
|
|
221
221
|
}
|
|
222
222
|
function P(r, o) {
|
|
223
|
-
const { currentType:
|
|
224
|
-
if (
|
|
223
|
+
const { currentType: b } = o;
|
|
224
|
+
if (b !== 9)
|
|
225
225
|
return !1;
|
|
226
226
|
const w = () => {
|
|
227
|
-
const
|
|
228
|
-
return
|
|
227
|
+
const G = r.currentPeek();
|
|
228
|
+
return G === "{" ? c(r.peek()) : G === "@" || G === "|" || G === ":" || G === "." || G === ke || !G ? !1 : G === me ? (r.peek(), w()) : Z(r, !1);
|
|
229
229
|
}, ae = w();
|
|
230
230
|
return r.resetPeek(), ae;
|
|
231
231
|
}
|
|
232
232
|
function D(r) {
|
|
233
|
-
|
|
233
|
+
k(r);
|
|
234
234
|
const o = r.currentPeek() === "|";
|
|
235
235
|
return r.resetPeek(), o;
|
|
236
236
|
}
|
|
237
|
-
function
|
|
238
|
-
const
|
|
237
|
+
function Z(r, o = !0) {
|
|
238
|
+
const b = (ae = !1, G = "") => {
|
|
239
239
|
const p = r.currentPeek();
|
|
240
|
-
return p === "{" || p === "@" || !p ? ae : p === "|" ? !(
|
|
241
|
-
}, w =
|
|
240
|
+
return p === "{" || p === "@" || !p ? ae : p === "|" ? !(G === ke || G === me) : p === ke ? (r.peek(), b(!0, ke)) : p === me ? (r.peek(), b(!0, me)) : !0;
|
|
241
|
+
}, w = b();
|
|
242
242
|
return o && r.resetPeek(), w;
|
|
243
243
|
}
|
|
244
244
|
function V(r, o) {
|
|
245
|
-
const
|
|
246
|
-
return
|
|
245
|
+
const b = r.currentChar();
|
|
246
|
+
return b === Ae ? Ae : o(b) ? (r.next(), b) : null;
|
|
247
247
|
}
|
|
248
248
|
function z(r) {
|
|
249
249
|
const o = r.charCodeAt(0);
|
|
@@ -256,7 +256,7 @@ function Os(e, t = {}) {
|
|
|
256
256
|
function W(r) {
|
|
257
257
|
return V(r, z);
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function A(r) {
|
|
260
260
|
const o = r.charCodeAt(0);
|
|
261
261
|
return o >= 97 && o <= 122 || // a-z
|
|
262
262
|
o >= 65 && o <= 90 || // A-Z
|
|
@@ -266,71 +266,71 @@ function Os(e, t = {}) {
|
|
|
266
266
|
o === 45;
|
|
267
267
|
}
|
|
268
268
|
function R(r) {
|
|
269
|
-
return V(r,
|
|
269
|
+
return V(r, A);
|
|
270
270
|
}
|
|
271
271
|
function M(r) {
|
|
272
272
|
const o = r.charCodeAt(0);
|
|
273
273
|
return o >= 48 && o <= 57;
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function K(r) {
|
|
276
276
|
return V(r, M);
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function U(r) {
|
|
279
279
|
const o = r.charCodeAt(0);
|
|
280
280
|
return o >= 48 && o <= 57 || // 0-9
|
|
281
281
|
o >= 65 && o <= 70 || // A-F
|
|
282
282
|
o >= 97 && o <= 102;
|
|
283
283
|
}
|
|
284
284
|
function j(r) {
|
|
285
|
-
return V(r,
|
|
285
|
+
return V(r, U);
|
|
286
286
|
}
|
|
287
287
|
function se(r) {
|
|
288
|
-
let o = "",
|
|
289
|
-
for (; o =
|
|
290
|
-
|
|
291
|
-
return
|
|
288
|
+
let o = "", b = "";
|
|
289
|
+
for (; o = K(r); )
|
|
290
|
+
b += o;
|
|
291
|
+
return b;
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function Q(r) {
|
|
294
294
|
let o = "";
|
|
295
295
|
for (; ; ) {
|
|
296
|
-
const
|
|
297
|
-
if (
|
|
296
|
+
const b = r.currentChar();
|
|
297
|
+
if (b === "{" || b === "}" || b === "@" || b === "|" || !b)
|
|
298
298
|
break;
|
|
299
|
-
if (
|
|
300
|
-
if (
|
|
301
|
-
o +=
|
|
299
|
+
if (b === ke || b === me)
|
|
300
|
+
if (Z(r))
|
|
301
|
+
o += b, r.next();
|
|
302
302
|
else {
|
|
303
303
|
if (D(r))
|
|
304
304
|
break;
|
|
305
|
-
o +=
|
|
305
|
+
o += b, r.next();
|
|
306
306
|
}
|
|
307
307
|
else
|
|
308
|
-
o +=
|
|
308
|
+
o += b, r.next();
|
|
309
309
|
}
|
|
310
310
|
return o;
|
|
311
311
|
}
|
|
312
312
|
function ge(r) {
|
|
313
313
|
O(r);
|
|
314
|
-
let o = "",
|
|
314
|
+
let o = "", b = "";
|
|
315
315
|
for (; o = R(r); )
|
|
316
|
-
|
|
317
|
-
return r.currentChar() ===
|
|
316
|
+
b += o;
|
|
317
|
+
return r.currentChar() === Ae && L(H.UNTERMINATED_CLOSING_BRACE, a(), 0), b;
|
|
318
318
|
}
|
|
319
319
|
function fe(r) {
|
|
320
320
|
O(r);
|
|
321
321
|
let o = "";
|
|
322
|
-
return r.currentChar() === "-" ? (r.next(), o += `-${se(r)}`) : o += se(r), r.currentChar() ===
|
|
322
|
+
return r.currentChar() === "-" ? (r.next(), o += `-${se(r)}`) : o += se(r), r.currentChar() === Ae && L(H.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
323
323
|
}
|
|
324
324
|
function we(r) {
|
|
325
325
|
return r !== nn && r !== me;
|
|
326
326
|
}
|
|
327
327
|
function q(r) {
|
|
328
328
|
O(r), F(r, "'");
|
|
329
|
-
let o = "",
|
|
329
|
+
let o = "", b = "";
|
|
330
330
|
for (; o = V(r, we); )
|
|
331
|
-
o === "\\" ?
|
|
331
|
+
o === "\\" ? b += ve(r) : b += o;
|
|
332
332
|
const w = r.currentChar();
|
|
333
|
-
return w === me || w ===
|
|
333
|
+
return w === me || w === Ae ? (L(H.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), w === me && (r.next(), F(r, "'")), b) : (F(r, "'"), b);
|
|
334
334
|
}
|
|
335
335
|
function ve(r) {
|
|
336
336
|
const o = r.currentChar();
|
|
@@ -346,39 +346,39 @@ function Os(e, t = {}) {
|
|
|
346
346
|
return L(H.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
function $e(r, o,
|
|
349
|
+
function $e(r, o, b) {
|
|
350
350
|
F(r, o);
|
|
351
351
|
let w = "";
|
|
352
|
-
for (let ae = 0; ae <
|
|
353
|
-
const
|
|
354
|
-
if (!
|
|
352
|
+
for (let ae = 0; ae < b; ae++) {
|
|
353
|
+
const G = j(r);
|
|
354
|
+
if (!G) {
|
|
355
355
|
L(H.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${w}${r.currentChar()}`);
|
|
356
356
|
break;
|
|
357
357
|
}
|
|
358
|
-
w +=
|
|
358
|
+
w += G;
|
|
359
359
|
}
|
|
360
360
|
return `\\${o}${w}`;
|
|
361
361
|
}
|
|
362
362
|
function Je(r) {
|
|
363
|
-
return r !== "{" && r !== "}" && r !==
|
|
363
|
+
return r !== "{" && r !== "}" && r !== ke && r !== me;
|
|
364
364
|
}
|
|
365
365
|
function vt(r) {
|
|
366
366
|
O(r);
|
|
367
|
-
let o = "",
|
|
367
|
+
let o = "", b = "";
|
|
368
368
|
for (; o = V(r, Je); )
|
|
369
|
-
|
|
370
|
-
return
|
|
369
|
+
b += o;
|
|
370
|
+
return b;
|
|
371
371
|
}
|
|
372
372
|
function Et(r) {
|
|
373
|
-
let o = "",
|
|
373
|
+
let o = "", b = "";
|
|
374
374
|
for (; o = W(r); )
|
|
375
|
-
|
|
376
|
-
return
|
|
375
|
+
b += o;
|
|
376
|
+
return b;
|
|
377
377
|
}
|
|
378
378
|
function It(r) {
|
|
379
|
-
const o = (
|
|
379
|
+
const o = (b) => {
|
|
380
380
|
const w = r.currentChar();
|
|
381
|
-
return w === "{" || w === "@" || w === "|" || w === "(" || w === ")" || !w || w ===
|
|
381
|
+
return w === "{" || w === "@" || w === "|" || w === "(" || w === ")" || !w || w === ke ? b : (b += w, r.next(), o(b));
|
|
382
382
|
};
|
|
383
383
|
return o("");
|
|
384
384
|
}
|
|
@@ -391,49 +391,49 @@ function Os(e, t = {}) {
|
|
|
391
391
|
);
|
|
392
392
|
return O(r), o;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
let
|
|
394
|
+
function Ge(r, o) {
|
|
395
|
+
let b = null;
|
|
396
396
|
switch (r.currentChar()) {
|
|
397
397
|
case "{":
|
|
398
|
-
return o.braceNest >= 1 && L(H.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), r.next(),
|
|
398
|
+
return o.braceNest >= 1 && L(H.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), r.next(), b = N(
|
|
399
399
|
o,
|
|
400
400
|
2,
|
|
401
401
|
"{"
|
|
402
402
|
/* TokenChars.BraceLeft */
|
|
403
|
-
), O(r), o.braceNest++,
|
|
403
|
+
), O(r), o.braceNest++, b;
|
|
404
404
|
case "}":
|
|
405
|
-
return o.braceNest > 0 && o.currentType === 2 && L(H.EMPTY_PLACEHOLDER, a(), 0), r.next(),
|
|
405
|
+
return o.braceNest > 0 && o.currentType === 2 && L(H.EMPTY_PLACEHOLDER, a(), 0), r.next(), b = N(
|
|
406
406
|
o,
|
|
407
407
|
3,
|
|
408
408
|
"}"
|
|
409
409
|
/* TokenChars.BraceRight */
|
|
410
|
-
), o.braceNest--, o.braceNest > 0 && O(r), o.inLinked && o.braceNest === 0 && (o.inLinked = !1),
|
|
410
|
+
), o.braceNest--, o.braceNest > 0 && O(r), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), b;
|
|
411
411
|
case "@":
|
|
412
|
-
return o.braceNest > 0 && L(H.UNTERMINATED_CLOSING_BRACE, a(), 0),
|
|
412
|
+
return o.braceNest > 0 && L(H.UNTERMINATED_CLOSING_BRACE, a(), 0), b = We(r, o) || S(o), o.braceNest = 0, b;
|
|
413
413
|
default: {
|
|
414
|
-
let ae = !0,
|
|
414
|
+
let ae = !0, G = !0, p = !0;
|
|
415
415
|
if (D(r))
|
|
416
|
-
return o.braceNest > 0 && L(H.UNTERMINATED_CLOSING_BRACE, a(), 0),
|
|
416
|
+
return o.braceNest > 0 && L(H.UNTERMINATED_CLOSING_BRACE, a(), 0), b = N(o, 1, ze(r)), o.braceNest = 0, o.inLinked = !1, b;
|
|
417
417
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
418
|
-
return L(H.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0,
|
|
418
|
+
return L(H.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, Ke(r, o);
|
|
419
419
|
if (ae = y(r, o))
|
|
420
|
-
return
|
|
421
|
-
if (
|
|
422
|
-
return
|
|
420
|
+
return b = N(o, 4, ge(r)), O(r), b;
|
|
421
|
+
if (G = u(r, o))
|
|
422
|
+
return b = N(o, 5, fe(r)), O(r), b;
|
|
423
423
|
if (p = g(r, o))
|
|
424
|
-
return
|
|
425
|
-
if (!ae && !
|
|
426
|
-
return
|
|
424
|
+
return b = N(o, 6, q(r)), O(r), b;
|
|
425
|
+
if (!ae && !G && !p)
|
|
426
|
+
return b = N(o, 12, vt(r)), L(H.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, b.value), O(r), b;
|
|
427
427
|
break;
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
|
-
return
|
|
430
|
+
return b;
|
|
431
431
|
}
|
|
432
432
|
function We(r, o) {
|
|
433
|
-
const { currentType:
|
|
433
|
+
const { currentType: b } = o;
|
|
434
434
|
let w = null;
|
|
435
435
|
const ae = r.currentChar();
|
|
436
|
-
switch ((
|
|
436
|
+
switch ((b === 7 || b === 8 || b === 11 || b === 9) && (ae === me || ae === ke) && L(H.INVALID_LINKED_FORMAT, a(), 0), ae) {
|
|
437
437
|
case "@":
|
|
438
438
|
return r.next(), w = N(
|
|
439
439
|
o,
|
|
@@ -456,21 +456,21 @@ function Os(e, t = {}) {
|
|
|
456
456
|
/* TokenChars.LinkedDelimiter */
|
|
457
457
|
);
|
|
458
458
|
default:
|
|
459
|
-
return D(r) ? (w = N(o, 1, ze(r)), o.braceNest = 0, o.inLinked = !1, w) : v(r, o) || I(r, o) ? (O(r), We(r, o)) : i(r, o) ? (O(r), N(o, 11, Et(r))) : P(r, o) ? (O(r), ae === "{" ?
|
|
459
|
+
return D(r) ? (w = N(o, 1, ze(r)), o.braceNest = 0, o.inLinked = !1, w) : v(r, o) || I(r, o) ? (O(r), We(r, o)) : i(r, o) ? (O(r), N(o, 11, Et(r))) : P(r, o) ? (O(r), ae === "{" ? Ge(r, o) || w : N(o, 10, It(r))) : (b === 7 && L(H.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, Ke(r, o));
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
function
|
|
463
|
-
let
|
|
462
|
+
function Ke(r, o) {
|
|
463
|
+
let b = {
|
|
464
464
|
type: 13
|
|
465
465
|
/* TokenTypes.EOF */
|
|
466
466
|
};
|
|
467
467
|
if (o.braceNest > 0)
|
|
468
|
-
return
|
|
468
|
+
return Ge(r, o) || S(o);
|
|
469
469
|
if (o.inLinked)
|
|
470
470
|
return We(r, o) || S(o);
|
|
471
471
|
switch (r.currentChar()) {
|
|
472
472
|
case "{":
|
|
473
|
-
return
|
|
473
|
+
return Ge(r, o) || S(o);
|
|
474
474
|
case "}":
|
|
475
475
|
return L(H.UNBALANCED_CLOSING_BRACE, a(), 0), r.next(), N(
|
|
476
476
|
o,
|
|
@@ -482,31 +482,31 @@ function Os(e, t = {}) {
|
|
|
482
482
|
return We(r, o) || S(o);
|
|
483
483
|
default: {
|
|
484
484
|
if (D(r))
|
|
485
|
-
return
|
|
486
|
-
if (
|
|
487
|
-
return N(o, 0,
|
|
485
|
+
return b = N(o, 1, ze(r)), o.braceNest = 0, o.inLinked = !1, b;
|
|
486
|
+
if (Z(r))
|
|
487
|
+
return N(o, 0, Q(r));
|
|
488
488
|
break;
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
return
|
|
491
|
+
return b;
|
|
492
492
|
}
|
|
493
493
|
function Nt() {
|
|
494
|
-
const { currentType: r, offset: o, startLoc:
|
|
495
|
-
return d.lastType = r, d.lastOffset = o, d.lastStartLoc =
|
|
494
|
+
const { currentType: r, offset: o, startLoc: b, endLoc: w } = d;
|
|
495
|
+
return d.lastType = r, d.lastOffset = o, d.lastStartLoc = b, d.lastEndLoc = w, d.offset = l(), d.startLoc = a(), s.currentChar() === Ae ? N(
|
|
496
496
|
d,
|
|
497
497
|
13
|
|
498
498
|
/* TokenTypes.EOF */
|
|
499
|
-
) :
|
|
499
|
+
) : Ke(s, d);
|
|
500
500
|
}
|
|
501
501
|
return {
|
|
502
502
|
nextToken: Nt,
|
|
503
503
|
currentOffset: l,
|
|
504
504
|
currentPosition: a,
|
|
505
|
-
context:
|
|
505
|
+
context: h
|
|
506
506
|
};
|
|
507
507
|
}
|
|
508
|
-
const Rs = "parser",
|
|
509
|
-
function
|
|
508
|
+
const Rs = "parser", As = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
509
|
+
function Cs(e, t, n) {
|
|
510
510
|
switch (e) {
|
|
511
511
|
case "\\\\":
|
|
512
512
|
return "\\";
|
|
@@ -523,7 +523,7 @@ function Ss(e = {}) {
|
|
|
523
523
|
function s(c, _, y, u, ...g) {
|
|
524
524
|
const v = c.currentPosition();
|
|
525
525
|
if (v.offset += u, v.column += u, n) {
|
|
526
|
-
const i = t ? Mt(y, v) : null, I =
|
|
526
|
+
const i = t ? Mt(y, v) : null, I = ht(_, i, {
|
|
527
527
|
domain: Rs,
|
|
528
528
|
args: g
|
|
529
529
|
});
|
|
@@ -549,11 +549,11 @@ function Ss(e = {}) {
|
|
|
549
549
|
const y = c.context(), { lastOffset: u, lastStartLoc: g } = y, v = l(4, u, g);
|
|
550
550
|
return v.key = _, c.nextToken(), a(v, c.currentOffset(), c.currentPosition()), v;
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function h(c, _) {
|
|
553
553
|
const y = c.context(), { lastOffset: u, lastStartLoc: g } = y, v = l(9, u, g);
|
|
554
|
-
return v.value = _.replace(
|
|
554
|
+
return v.value = _.replace(As, Cs), c.nextToken(), a(v, c.currentOffset(), c.currentPosition()), v;
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function T(c) {
|
|
557
557
|
const _ = c.nextToken(), y = c.context(), { lastOffset: u, lastStartLoc: g } = y, v = l(8, u, g);
|
|
558
558
|
return _.type !== 11 ? (s(c, H.UNEXPECTED_EMPTY_LINKED_MODIFIER, y.lastStartLoc, 0), v.value = "", a(v, u, g), {
|
|
559
559
|
nextConsumeToken: _,
|
|
@@ -570,7 +570,7 @@ function Ss(e = {}) {
|
|
|
570
570
|
const _ = c.context(), y = l(6, _.offset, _.startLoc);
|
|
571
571
|
let u = c.nextToken();
|
|
572
572
|
if (u.type === 8) {
|
|
573
|
-
const g =
|
|
573
|
+
const g = T(c);
|
|
574
574
|
y.modifier = g.node, u = g.nextConsumeToken || c.nextToken();
|
|
575
575
|
}
|
|
576
576
|
switch (u.type !== 9 && s(c, H.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Ne(u)), u = c.nextToken(), u.type === 2 && (u = c.nextToken()), u.type) {
|
|
@@ -584,7 +584,7 @@ function Ss(e = {}) {
|
|
|
584
584
|
u.value == null && s(c, H.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Ne(u)), y.key = f(c, u.value || "");
|
|
585
585
|
break;
|
|
586
586
|
case 6:
|
|
587
|
-
u.value == null && s(c, H.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Ne(u)), y.key =
|
|
587
|
+
u.value == null && s(c, H.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Ne(u)), y.key = h(c, u.value || "");
|
|
588
588
|
break;
|
|
589
589
|
default: {
|
|
590
590
|
s(c, H.UNEXPECTED_EMPTY_LINKED_KEY, _.lastStartLoc, 0);
|
|
@@ -616,7 +616,7 @@ function Ss(e = {}) {
|
|
|
616
616
|
P.value == null && s(c, H.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Ne(P)), g.items.push(d(c, P.value || ""));
|
|
617
617
|
break;
|
|
618
618
|
case 6:
|
|
619
|
-
P.value == null && s(c, H.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Ne(P)), g.items.push(
|
|
619
|
+
P.value == null && s(c, H.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Ne(P)), g.items.push(h(c, P.value || ""));
|
|
620
620
|
break;
|
|
621
621
|
case 7: {
|
|
622
622
|
const D = N(c);
|
|
@@ -639,13 +639,13 @@ function Ss(e = {}) {
|
|
|
639
639
|
} while (g.currentType !== 13);
|
|
640
640
|
return v && s(c, H.MUST_HAVE_MESSAGES_IN_PLURAL, y, 0), a(i, c.currentOffset(), c.currentPosition()), i;
|
|
641
641
|
}
|
|
642
|
-
function
|
|
642
|
+
function k(c) {
|
|
643
643
|
const _ = c.context(), { offset: y, startLoc: u } = _, g = S(c);
|
|
644
644
|
return _.currentType === 13 ? g : F(c, y, u, g);
|
|
645
645
|
}
|
|
646
646
|
function O(c) {
|
|
647
647
|
const _ = Os(c, ue({}, e)), y = _.context(), u = l(0, y.offset, y.startLoc);
|
|
648
|
-
return t && u.loc && (u.loc.source = c), u.body =
|
|
648
|
+
return t && u.loc && (u.loc.source = c), u.body = k(_), e.onCacheKey && (u.cacheKey = e.onCacheKey(c)), y.currentType !== 13 && s(_, H.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, c[y.offset] || ""), a(u, _.currentOffset(), _.currentPosition()), u;
|
|
649
649
|
}
|
|
650
650
|
return { parse: O };
|
|
651
651
|
}
|
|
@@ -733,7 +733,7 @@ function an(e) {
|
|
|
733
733
|
t.push(s.value);
|
|
734
734
|
}
|
|
735
735
|
if (t.length === e.items.length) {
|
|
736
|
-
e.static =
|
|
736
|
+
e.static = Zt(t);
|
|
737
737
|
for (let n = 0; n < e.items.length; n++) {
|
|
738
738
|
const s = e.items[n];
|
|
739
739
|
(s.type === 3 || s.type === 9) && delete s.value;
|
|
@@ -741,24 +741,24 @@ function an(e) {
|
|
|
741
741
|
}
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function Xe(e) {
|
|
745
745
|
switch (e.t = e.type, e.type) {
|
|
746
746
|
case 0: {
|
|
747
747
|
const t = e;
|
|
748
|
-
|
|
748
|
+
Xe(t.body), t.b = t.body, delete t.body;
|
|
749
749
|
break;
|
|
750
750
|
}
|
|
751
751
|
case 1: {
|
|
752
752
|
const t = e, n = t.cases;
|
|
753
753
|
for (let s = 0; s < n.length; s++)
|
|
754
|
-
|
|
754
|
+
Xe(n[s]);
|
|
755
755
|
t.c = n, delete t.cases;
|
|
756
756
|
break;
|
|
757
757
|
}
|
|
758
758
|
case 2: {
|
|
759
759
|
const t = e, n = t.items;
|
|
760
760
|
for (let s = 0; s < n.length; s++)
|
|
761
|
-
|
|
761
|
+
Xe(n[s]);
|
|
762
762
|
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
763
763
|
break;
|
|
764
764
|
}
|
|
@@ -772,7 +772,7 @@ function Ze(e) {
|
|
|
772
772
|
}
|
|
773
773
|
case 6: {
|
|
774
774
|
const t = e;
|
|
775
|
-
|
|
775
|
+
Xe(t.key), t.k = t.key, delete t.key, t.modifier && (Xe(t.modifier), t.m = t.modifier, delete t.modifier);
|
|
776
776
|
break;
|
|
777
777
|
}
|
|
778
778
|
case 5: {
|
|
@@ -802,31 +802,31 @@ function Ps(e, t) {
|
|
|
802
802
|
};
|
|
803
803
|
a && e.loc && (m.source = e.loc.source);
|
|
804
804
|
const f = () => m;
|
|
805
|
-
function d(
|
|
806
|
-
m.code +=
|
|
805
|
+
function d(k, O) {
|
|
806
|
+
m.code += k;
|
|
807
807
|
}
|
|
808
|
-
function
|
|
808
|
+
function h(k, O = !0) {
|
|
809
809
|
const c = O ? s : "";
|
|
810
|
-
d(l ? c + " ".repeat(
|
|
810
|
+
d(l ? c + " ".repeat(k) : c);
|
|
811
811
|
}
|
|
812
|
-
function k
|
|
812
|
+
function T(k = !0) {
|
|
813
813
|
const O = ++m.indentLevel;
|
|
814
|
-
|
|
814
|
+
k && h(O);
|
|
815
815
|
}
|
|
816
|
-
function L(
|
|
816
|
+
function L(k = !0) {
|
|
817
817
|
const O = --m.indentLevel;
|
|
818
|
-
|
|
818
|
+
k && h(O);
|
|
819
819
|
}
|
|
820
820
|
function N() {
|
|
821
|
-
|
|
821
|
+
h(m.indentLevel);
|
|
822
822
|
}
|
|
823
823
|
return {
|
|
824
824
|
context: f,
|
|
825
825
|
push: d,
|
|
826
|
-
indent:
|
|
826
|
+
indent: T,
|
|
827
827
|
deindent: L,
|
|
828
828
|
newline: N,
|
|
829
|
-
helper: (
|
|
829
|
+
helper: (k) => `_${k}`,
|
|
830
830
|
needIndent: () => m.needIndent
|
|
831
831
|
};
|
|
832
832
|
}
|
|
@@ -835,7 +835,7 @@ function Fs(e, t) {
|
|
|
835
835
|
e.push(`${n(
|
|
836
836
|
"linked"
|
|
837
837
|
/* HelperNameMap.LINKED */
|
|
838
|
-
)}(`),
|
|
838
|
+
)}(`), Ze(e, t.key), t.modifier ? (e.push(", "), Ze(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
839
839
|
}
|
|
840
840
|
function js(e, t) {
|
|
841
841
|
const { helper: n, needIndent: s } = e;
|
|
@@ -844,7 +844,7 @@ function js(e, t) {
|
|
|
844
844
|
/* HelperNameMap.NORMALIZE */
|
|
845
845
|
)}([`), e.indent(s());
|
|
846
846
|
const l = t.items.length;
|
|
847
|
-
for (let a = 0; a < l && (
|
|
847
|
+
for (let a = 0; a < l && (Ze(e, t.items[a]), a !== l - 1); a++)
|
|
848
848
|
e.push(", ");
|
|
849
849
|
e.deindent(s()), e.push("])");
|
|
850
850
|
}
|
|
@@ -856,19 +856,19 @@ function Vs(e, t) {
|
|
|
856
856
|
/* HelperNameMap.PLURAL */
|
|
857
857
|
)}([`), e.indent(s());
|
|
858
858
|
const l = t.cases.length;
|
|
859
|
-
for (let a = 0; a < l && (
|
|
859
|
+
for (let a = 0; a < l && (Ze(e, t.cases[a]), a !== l - 1); a++)
|
|
860
860
|
e.push(", ");
|
|
861
861
|
e.deindent(s()), e.push("])");
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
|
-
function
|
|
865
|
-
t.body ?
|
|
864
|
+
function Us(e, t) {
|
|
865
|
+
t.body ? Ze(e, t.body) : e.push("null");
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function Ze(e, t) {
|
|
868
868
|
const { helper: n } = e;
|
|
869
869
|
switch (t.type) {
|
|
870
870
|
case 0:
|
|
871
|
-
|
|
871
|
+
Us(e, t);
|
|
872
872
|
break;
|
|
873
873
|
case 1:
|
|
874
874
|
Vs(e, t);
|
|
@@ -911,8 +911,8 @@ function Ye(e, t) {
|
|
|
911
911
|
break;
|
|
912
912
|
}
|
|
913
913
|
}
|
|
914
|
-
const
|
|
915
|
-
const n =
|
|
914
|
+
const Gs = (e, t = {}) => {
|
|
915
|
+
const n = C(t.mode) ? t.mode : "normal", s = C(t.filename) ? t.filename : "message.intl";
|
|
916
916
|
t.sourceMap;
|
|
917
917
|
const l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
918
918
|
`, a = t.needIndent ? t.needIndent : n !== "arrow", m = e.helpers || [], f = Ps(e, {
|
|
@@ -920,27 +920,27 @@ const Us = (e, t = {}) => {
|
|
|
920
920
|
breakLineCode: l,
|
|
921
921
|
needIndent: a
|
|
922
922
|
});
|
|
923
|
-
f.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), f.indent(a), m.length > 0 && (f.push(`const { ${
|
|
924
|
-
const { code: d, map:
|
|
923
|
+
f.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), f.indent(a), m.length > 0 && (f.push(`const { ${Zt(m.map((T) => `${T}: _${T}`), ", ")} } = ctx`), f.newline()), f.push("return "), Ze(f, e), f.deindent(a), f.push("}"), delete e.helpers;
|
|
924
|
+
const { code: d, map: h } = f.context();
|
|
925
925
|
return {
|
|
926
926
|
ast: e,
|
|
927
927
|
code: d,
|
|
928
|
-
map:
|
|
928
|
+
map: h ? h.toJSON() : void 0
|
|
929
929
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
930
930
|
};
|
|
931
931
|
};
|
|
932
932
|
function Ws(e, t = {}) {
|
|
933
933
|
const n = ue({}, t), s = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize, f = Ss(n).parse(e);
|
|
934
|
-
return s ? (a && ws(f), l &&
|
|
934
|
+
return s ? (a && ws(f), l && Xe(f), { ast: f, code: "" }) : (Ms(f, n), Gs(f, n));
|
|
935
935
|
}
|
|
936
936
|
var xs = { env: { NODE_ENV: "production" } };
|
|
937
|
-
function
|
|
937
|
+
function Xs() {
|
|
938
938
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (je().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (je().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
939
939
|
}
|
|
940
940
|
function Lt(e) {
|
|
941
|
-
return (n) =>
|
|
941
|
+
return (n) => Ys(n, e);
|
|
942
942
|
}
|
|
943
|
-
function
|
|
943
|
+
function Ys(e, t) {
|
|
944
944
|
const n = Hs(t);
|
|
945
945
|
if (n == null)
|
|
946
946
|
throw et(
|
|
@@ -956,9 +956,9 @@ function Xs(e, t) {
|
|
|
956
956
|
} else
|
|
957
957
|
return rn(e, n);
|
|
958
958
|
}
|
|
959
|
-
const
|
|
959
|
+
const Zs = ["b", "body"];
|
|
960
960
|
function Hs(e) {
|
|
961
|
-
return De(e,
|
|
961
|
+
return De(e, Zs);
|
|
962
962
|
}
|
|
963
963
|
const Bs = ["c", "cases"];
|
|
964
964
|
function $s(e) {
|
|
@@ -969,7 +969,7 @@ function rn(e, t) {
|
|
|
969
969
|
if (n != null)
|
|
970
970
|
return e.type === "text" ? n : e.normalize([n]);
|
|
971
971
|
{
|
|
972
|
-
const s =
|
|
972
|
+
const s = Qs(t).reduce((l, a) => [...l, wt(e, a)], []);
|
|
973
973
|
return e.normalize(s);
|
|
974
974
|
}
|
|
975
975
|
}
|
|
@@ -977,9 +977,9 @@ const Js = ["s", "static"];
|
|
|
977
977
|
function zs(e) {
|
|
978
978
|
return De(e, Js);
|
|
979
979
|
}
|
|
980
|
-
const
|
|
981
|
-
function
|
|
982
|
-
return De(e,
|
|
980
|
+
const Ks = ["i", "items"];
|
|
981
|
+
function Qs(e) {
|
|
982
|
+
return De(e, Ks, []);
|
|
983
983
|
}
|
|
984
984
|
function wt(e, t) {
|
|
985
985
|
const n = Bt(t);
|
|
@@ -1055,7 +1055,7 @@ function et(e) {
|
|
|
1055
1055
|
const ra = (e) => e;
|
|
1056
1056
|
let ot = B();
|
|
1057
1057
|
function He(e) {
|
|
1058
|
-
return
|
|
1058
|
+
return Y(e) && Bt(e) === 0 && (Ee(e, "b") || Ee(e, "body"));
|
|
1059
1059
|
}
|
|
1060
1060
|
function la(e, t = {}) {
|
|
1061
1061
|
let n = !1;
|
|
@@ -1066,7 +1066,7 @@ function la(e, t = {}) {
|
|
|
1066
1066
|
}
|
|
1067
1067
|
// @__NO_SIDE_EFFECTS__
|
|
1068
1068
|
function oa(e, t) {
|
|
1069
|
-
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ &&
|
|
1069
|
+
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && C(e)) {
|
|
1070
1070
|
le(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1071
1071
|
const s = (t.onCacheKey || ra)(e), l = ot[s];
|
|
1072
1072
|
if (l)
|
|
@@ -1112,14 +1112,14 @@ const Oe = {
|
|
|
1112
1112
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1113
1113
|
}, da = 24;
|
|
1114
1114
|
function Re(e) {
|
|
1115
|
-
return
|
|
1115
|
+
return ht(e, null, void 0);
|
|
1116
1116
|
}
|
|
1117
1117
|
function $t(e, t) {
|
|
1118
1118
|
return t.locale != null ? ln(t.locale) : ln(e.locale);
|
|
1119
1119
|
}
|
|
1120
1120
|
let Ot;
|
|
1121
1121
|
function ln(e) {
|
|
1122
|
-
if (
|
|
1122
|
+
if (C(e))
|
|
1123
1123
|
return e;
|
|
1124
1124
|
if (ne(e)) {
|
|
1125
1125
|
if (e.resolvedOnce && Ot != null)
|
|
@@ -1137,11 +1137,11 @@ function ln(e) {
|
|
|
1137
1137
|
function fa(e, t, n) {
|
|
1138
1138
|
return [.../* @__PURE__ */ new Set([
|
|
1139
1139
|
n,
|
|
1140
|
-
...oe(t) ? t :
|
|
1140
|
+
...oe(t) ? t : Y(t) ? Object.keys(t) : C(t) ? [t] : [n]
|
|
1141
1141
|
])];
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1144
|
-
const s =
|
|
1143
|
+
function Cn(e, t, n) {
|
|
1144
|
+
const s = C(n) ? n : ft, l = e;
|
|
1145
1145
|
l.__localeChainCache || (l.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1146
1146
|
let a = l.__localeChainCache.get(s);
|
|
1147
1147
|
if (!a) {
|
|
@@ -1149,8 +1149,8 @@ function An(e, t, n) {
|
|
|
1149
1149
|
let m = [n];
|
|
1150
1150
|
for (; oe(m); )
|
|
1151
1151
|
m = on(a, m, t);
|
|
1152
|
-
const f = oe(t) || !
|
|
1153
|
-
m =
|
|
1152
|
+
const f = oe(t) || !X(t) ? t : t.default ? t.default : null;
|
|
1153
|
+
m = C(f) ? [f] : f, oe(m) && on(a, m, !1), l.__localeChainCache.set(s, a);
|
|
1154
1154
|
}
|
|
1155
1155
|
return a;
|
|
1156
1156
|
}
|
|
@@ -1158,7 +1158,7 @@ function on(e, t, n) {
|
|
|
1158
1158
|
let s = !0;
|
|
1159
1159
|
for (let l = 0; l < t.length && le(s); l++) {
|
|
1160
1160
|
const a = t[l];
|
|
1161
|
-
|
|
1161
|
+
C(a) && (s = _a(e, t[l], n));
|
|
1162
1162
|
}
|
|
1163
1163
|
return s;
|
|
1164
1164
|
}
|
|
@@ -1176,7 +1176,7 @@ function pa(e, t, n) {
|
|
|
1176
1176
|
if (!e.includes(t) && (s = !0, t)) {
|
|
1177
1177
|
s = t[t.length - 1] !== "!";
|
|
1178
1178
|
const l = t.replace(/!/g, "");
|
|
1179
|
-
e.push(l), (oe(n) ||
|
|
1179
|
+
e.push(l), (oe(n) || X(n)) && n[l] && (s = n[l]);
|
|
1180
1180
|
}
|
|
1181
1181
|
return s;
|
|
1182
1182
|
}
|
|
@@ -1341,9 +1341,9 @@ Me[
|
|
|
1341
1341
|
/* Actions.APPEND */
|
|
1342
1342
|
]
|
|
1343
1343
|
};
|
|
1344
|
-
const
|
|
1345
|
-
function
|
|
1346
|
-
return
|
|
1344
|
+
const ha = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1345
|
+
function ba(e) {
|
|
1346
|
+
return ha.test(e);
|
|
1347
1347
|
}
|
|
1348
1348
|
function ga(e) {
|
|
1349
1349
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
@@ -1376,11 +1376,11 @@ function va(e) {
|
|
|
1376
1376
|
}
|
|
1377
1377
|
function Ea(e) {
|
|
1378
1378
|
const t = e.trim();
|
|
1379
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1379
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : ba(t) ? ga(t) : "*" + t;
|
|
1380
1380
|
}
|
|
1381
1381
|
function Ia(e) {
|
|
1382
1382
|
const t = [];
|
|
1383
|
-
let n = -1, s = 0, l = 0, a, m, f, d,
|
|
1383
|
+
let n = -1, s = 0, l = 0, a, m, f, d, h, T, L;
|
|
1384
1384
|
const N = [];
|
|
1385
1385
|
N[
|
|
1386
1386
|
0
|
|
@@ -1428,7 +1428,7 @@ function Ia(e) {
|
|
|
1428
1428
|
}
|
|
1429
1429
|
for (; s !== null; )
|
|
1430
1430
|
if (n++, a = e[n], !(a === "\\" && S())) {
|
|
1431
|
-
if (d = va(a), L = Me[s],
|
|
1431
|
+
if (d = va(a), L = Me[s], h = L[d] || L.l || 8, h === 8 || (s = h[0], h[1] !== void 0 && (T = N[h[1]], T && (f = a, T() === !1))))
|
|
1432
1432
|
return;
|
|
1433
1433
|
if (s === 7)
|
|
1434
1434
|
return t;
|
|
@@ -1436,10 +1436,10 @@ function Ia(e) {
|
|
|
1436
1436
|
}
|
|
1437
1437
|
const cn = /* @__PURE__ */ new Map();
|
|
1438
1438
|
function Na(e, t) {
|
|
1439
|
-
return
|
|
1439
|
+
return Y(e) ? e[t] : null;
|
|
1440
1440
|
}
|
|
1441
1441
|
function ya(e, t) {
|
|
1442
|
-
if (!
|
|
1442
|
+
if (!Y(e))
|
|
1443
1443
|
return null;
|
|
1444
1444
|
let n = cn.get(t);
|
|
1445
1445
|
if (n || (n = Ia(t), n && cn.set(t, n)), !n)
|
|
@@ -1454,12 +1454,12 @@ function ya(e, t) {
|
|
|
1454
1454
|
}
|
|
1455
1455
|
return l;
|
|
1456
1456
|
}
|
|
1457
|
-
const
|
|
1458
|
-
function
|
|
1457
|
+
const Ta = "10.0.5", bt = -1, ft = "en-US", un = "", mn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1458
|
+
function ka() {
|
|
1459
1459
|
return {
|
|
1460
|
-
upper: (e, t) => t === "text" &&
|
|
1461
|
-
lower: (e, t) => t === "text" &&
|
|
1462
|
-
capitalize: (e, t) => t === "text" &&
|
|
1460
|
+
upper: (e, t) => t === "text" && C(e) ? e.toUpperCase() : t === "vnode" && Y(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1461
|
+
lower: (e, t) => t === "text" && C(e) ? e.toLowerCase() : t === "vnode" && Y(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1462
|
+
capitalize: (e, t) => t === "text" && C(e) ? mn(e) : t === "vnode" && Y(e) && "__v_isVNode" in e ? mn(e.children) : e
|
|
1463
1463
|
};
|
|
1464
1464
|
}
|
|
1465
1465
|
let Sn;
|
|
@@ -1475,16 +1475,16 @@ function Ra(e) {
|
|
|
1475
1475
|
Mn = e;
|
|
1476
1476
|
}
|
|
1477
1477
|
let wn = null;
|
|
1478
|
-
const
|
|
1478
|
+
const Aa = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1479
1479
|
wn = e;
|
|
1480
|
-
},
|
|
1480
|
+
}, Ca = /* @__NO_SIDE_EFFECTS__ */ () => wn;
|
|
1481
1481
|
let Pn = null;
|
|
1482
1482
|
const dn = (e) => {
|
|
1483
1483
|
Pn = e;
|
|
1484
1484
|
}, Sa = () => Pn;
|
|
1485
1485
|
let fn = 0;
|
|
1486
1486
|
function Da(e = {}) {
|
|
1487
|
-
const t = ne(e.onWarn) ? e.onWarn :
|
|
1487
|
+
const t = ne(e.onWarn) ? e.onWarn : bs, n = C(e.version) ? e.version : Ta, s = C(e.locale) || ne(e.locale) ? e.locale : ft, l = ne(s) ? ft : s, a = oe(e.fallbackLocale) || X(e.fallbackLocale) || C(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, m = X(e.messages) ? e.messages : Rt(l), f = X(e.datetimeFormats) ? e.datetimeFormats : Rt(l), d = X(e.numberFormats) ? e.numberFormats : Rt(l), h = ue(B(), e.modifiers, ka()), T = e.pluralRules || B(), L = ne(e.missing) ? e.missing : null, N = le(e.missingWarn) || dt(e.missingWarn) ? e.missingWarn : !0, S = le(e.fallbackWarn) || dt(e.fallbackWarn) ? e.fallbackWarn : !0, F = !!e.fallbackFormat, k = !!e.unresolving, O = ne(e.postTranslation) ? e.postTranslation : null, c = X(e.processor) ? e.processor : null, _ = le(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter, u = ne(e.messageCompiler) ? e.messageCompiler : Sn, g = ne(e.messageResolver) ? e.messageResolver : Dn || Na, v = ne(e.localeFallbacker) ? e.localeFallbacker : Mn || fa, i = Y(e.fallbackContext) ? e.fallbackContext : void 0, I = e, P = Y(I.__datetimeFormatters) ? I.__datetimeFormatters : /* @__PURE__ */ new Map(), D = Y(I.__numberFormatters) ? I.__numberFormatters : /* @__PURE__ */ new Map(), Z = Y(I.__meta) ? I.__meta : {};
|
|
1488
1488
|
fn++;
|
|
1489
1489
|
const V = {
|
|
1490
1490
|
version: n,
|
|
@@ -1492,13 +1492,13 @@ function Da(e = {}) {
|
|
|
1492
1492
|
locale: s,
|
|
1493
1493
|
fallbackLocale: a,
|
|
1494
1494
|
messages: m,
|
|
1495
|
-
modifiers:
|
|
1496
|
-
pluralRules:
|
|
1495
|
+
modifiers: h,
|
|
1496
|
+
pluralRules: T,
|
|
1497
1497
|
missing: L,
|
|
1498
1498
|
missingWarn: N,
|
|
1499
1499
|
fallbackWarn: S,
|
|
1500
1500
|
fallbackFormat: F,
|
|
1501
|
-
unresolving:
|
|
1501
|
+
unresolving: k,
|
|
1502
1502
|
postTranslation: O,
|
|
1503
1503
|
processor: c,
|
|
1504
1504
|
warnHtmlMessage: _,
|
|
@@ -1508,20 +1508,20 @@ function Da(e = {}) {
|
|
|
1508
1508
|
localeFallbacker: v,
|
|
1509
1509
|
fallbackContext: i,
|
|
1510
1510
|
onWarn: t,
|
|
1511
|
-
__meta:
|
|
1511
|
+
__meta: Z
|
|
1512
1512
|
};
|
|
1513
|
-
return V.datetimeFormats = f, V.numberFormats = d, V.__datetimeFormatters = P, V.__numberFormatters = D, __INTLIFY_PROD_DEVTOOLS__ && ca(V, n,
|
|
1513
|
+
return V.datetimeFormats = f, V.numberFormats = d, V.__datetimeFormatters = P, V.__numberFormatters = D, __INTLIFY_PROD_DEVTOOLS__ && ca(V, n, Z), V;
|
|
1514
1514
|
}
|
|
1515
1515
|
const Rt = (e) => ({ [e]: B() });
|
|
1516
1516
|
function Jt(e, t, n, s, l) {
|
|
1517
1517
|
const { missing: a, onWarn: m } = e;
|
|
1518
1518
|
if (a !== null) {
|
|
1519
1519
|
const f = a(e, n, t, l);
|
|
1520
|
-
return
|
|
1520
|
+
return C(f) ? f : t;
|
|
1521
1521
|
} else
|
|
1522
1522
|
return t;
|
|
1523
1523
|
}
|
|
1524
|
-
function
|
|
1524
|
+
function Qe(e, t, n) {
|
|
1525
1525
|
const s = e;
|
|
1526
1526
|
s.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1527
1527
|
}
|
|
@@ -1538,26 +1538,26 @@ function wa(e, t) {
|
|
|
1538
1538
|
return !1;
|
|
1539
1539
|
}
|
|
1540
1540
|
function _n(e, ...t) {
|
|
1541
|
-
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: m } = e, { __datetimeFormatters: f } = e, [d,
|
|
1542
|
-
le(
|
|
1543
|
-
const S = !!
|
|
1541
|
+
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: m } = e, { __datetimeFormatters: f } = e, [d, h, T, L] = Pt(...t), N = le(T.missingWarn) ? T.missingWarn : e.missingWarn;
|
|
1542
|
+
le(T.fallbackWarn) ? T.fallbackWarn : e.fallbackWarn;
|
|
1543
|
+
const S = !!T.part, F = $t(e, T), k = m(
|
|
1544
1544
|
e,
|
|
1545
1545
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1546
1546
|
l,
|
|
1547
1547
|
F
|
|
1548
1548
|
);
|
|
1549
|
-
if (!
|
|
1550
|
-
return new Intl.DateTimeFormat(F, L).format(
|
|
1549
|
+
if (!C(d) || d === "")
|
|
1550
|
+
return new Intl.DateTimeFormat(F, L).format(h);
|
|
1551
1551
|
let O = {}, c, _ = null;
|
|
1552
1552
|
const y = "datetime format";
|
|
1553
|
-
for (let v = 0; v <
|
|
1553
|
+
for (let v = 0; v < k.length && (c = k[v], O = n[c] || {}, _ = O[d], !X(_)); v++)
|
|
1554
1554
|
Jt(e, d, c, N, y);
|
|
1555
|
-
if (!
|
|
1556
|
-
return s ?
|
|
1555
|
+
if (!X(_) || !C(c))
|
|
1556
|
+
return s ? bt : d;
|
|
1557
1557
|
let u = `${c}__${d}`;
|
|
1558
1558
|
pt(L) || (u = `${u}__${JSON.stringify(L)}`);
|
|
1559
1559
|
let g = f.get(u);
|
|
1560
|
-
return g || (g = new Intl.DateTimeFormat(c, ue({}, _, L)), f.set(u, g)), S ? g.formatToParts(
|
|
1560
|
+
return g || (g = new Intl.DateTimeFormat(c, ue({}, _, L)), f.set(u, g)), S ? g.formatToParts(h) : g.format(h);
|
|
1561
1561
|
}
|
|
1562
1562
|
const Fn = [
|
|
1563
1563
|
"localeMatcher",
|
|
@@ -1584,12 +1584,12 @@ const Fn = [
|
|
|
1584
1584
|
function Pt(...e) {
|
|
1585
1585
|
const [t, n, s, l] = e, a = B();
|
|
1586
1586
|
let m = B(), f;
|
|
1587
|
-
if (
|
|
1587
|
+
if (C(t)) {
|
|
1588
1588
|
const d = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1589
1589
|
if (!d)
|
|
1590
1590
|
throw Re(Oe.INVALID_ISO_DATE_ARGUMENT);
|
|
1591
|
-
const
|
|
1592
|
-
f = new Date(
|
|
1591
|
+
const h = d[3] ? d[3].trim().startsWith("T") ? `${d[1].trim()}${d[3].trim()}` : `${d[1].trim()}T${d[3].trim()}` : d[1].trim();
|
|
1592
|
+
f = new Date(h);
|
|
1593
1593
|
try {
|
|
1594
1594
|
f.toISOString();
|
|
1595
1595
|
} catch {
|
|
@@ -1603,9 +1603,9 @@ function Pt(...e) {
|
|
|
1603
1603
|
f = t;
|
|
1604
1604
|
else
|
|
1605
1605
|
throw Re(Oe.INVALID_ARGUMENT);
|
|
1606
|
-
return
|
|
1606
|
+
return C(n) ? a.key = n : X(n) && Object.keys(n).forEach((d) => {
|
|
1607
1607
|
Fn.includes(d) ? m[d] = n[d] : a[d] = n[d];
|
|
1608
|
-
}),
|
|
1608
|
+
}), C(s) ? a.locale = s : X(s) && (m = s), X(l) && (m = l), [a.key || "", f, a, m];
|
|
1609
1609
|
}
|
|
1610
1610
|
function pn(e, t, n) {
|
|
1611
1611
|
const s = e;
|
|
@@ -1614,27 +1614,27 @@ function pn(e, t, n) {
|
|
|
1614
1614
|
s.__datetimeFormatters.has(a) && s.__datetimeFormatters.delete(a);
|
|
1615
1615
|
}
|
|
1616
1616
|
}
|
|
1617
|
-
function
|
|
1618
|
-
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: m } = e, { __numberFormatters: f } = e, [d,
|
|
1619
|
-
le(
|
|
1620
|
-
const S = !!
|
|
1617
|
+
function hn(e, ...t) {
|
|
1618
|
+
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: m } = e, { __numberFormatters: f } = e, [d, h, T, L] = Ft(...t), N = le(T.missingWarn) ? T.missingWarn : e.missingWarn;
|
|
1619
|
+
le(T.fallbackWarn) ? T.fallbackWarn : e.fallbackWarn;
|
|
1620
|
+
const S = !!T.part, F = $t(e, T), k = m(
|
|
1621
1621
|
e,
|
|
1622
1622
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1623
1623
|
l,
|
|
1624
1624
|
F
|
|
1625
1625
|
);
|
|
1626
|
-
if (!
|
|
1627
|
-
return new Intl.NumberFormat(F, L).format(
|
|
1626
|
+
if (!C(d) || d === "")
|
|
1627
|
+
return new Intl.NumberFormat(F, L).format(h);
|
|
1628
1628
|
let O = {}, c, _ = null;
|
|
1629
1629
|
const y = "number format";
|
|
1630
|
-
for (let v = 0; v <
|
|
1630
|
+
for (let v = 0; v < k.length && (c = k[v], O = n[c] || {}, _ = O[d], !X(_)); v++)
|
|
1631
1631
|
Jt(e, d, c, N, y);
|
|
1632
|
-
if (!
|
|
1633
|
-
return s ?
|
|
1632
|
+
if (!X(_) || !C(c))
|
|
1633
|
+
return s ? bt : d;
|
|
1634
1634
|
let u = `${c}__${d}`;
|
|
1635
1635
|
pt(L) || (u = `${u}__${JSON.stringify(L)}`);
|
|
1636
1636
|
let g = f.get(u);
|
|
1637
|
-
return g || (g = new Intl.NumberFormat(c, ue({}, _, L)), f.set(u, g)), S ? g.formatToParts(
|
|
1637
|
+
return g || (g = new Intl.NumberFormat(c, ue({}, _, L)), f.set(u, g)), S ? g.formatToParts(h) : g.format(h);
|
|
1638
1638
|
}
|
|
1639
1639
|
const jn = [
|
|
1640
1640
|
"localeMatcher",
|
|
@@ -1664,22 +1664,22 @@ function Ft(...e) {
|
|
|
1664
1664
|
if (!ce(t))
|
|
1665
1665
|
throw Re(Oe.INVALID_ARGUMENT);
|
|
1666
1666
|
const f = t;
|
|
1667
|
-
return
|
|
1667
|
+
return C(n) ? a.key = n : X(n) && Object.keys(n).forEach((d) => {
|
|
1668
1668
|
jn.includes(d) ? m[d] = n[d] : a[d] = n[d];
|
|
1669
|
-
}),
|
|
1669
|
+
}), C(s) ? a.locale = s : X(s) && (m = s), X(l) && (m = l), [a.key || "", f, a, m];
|
|
1670
1670
|
}
|
|
1671
|
-
function
|
|
1671
|
+
function bn(e, t, n) {
|
|
1672
1672
|
const s = e;
|
|
1673
1673
|
for (const l in n) {
|
|
1674
1674
|
const a = `${t}__${l}`;
|
|
1675
1675
|
s.__numberFormatters.has(a) && s.__numberFormatters.delete(a);
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
|
-
const Pa = (e) => e, Fa = (e) => "", ja = "text", Va = (e) => e.length === 0 ? "" :
|
|
1678
|
+
const Pa = (e) => e, Fa = (e) => "", ja = "text", Va = (e) => e.length === 0 ? "" : Zt(e), Ua = hs;
|
|
1679
1679
|
function gn(e, t) {
|
|
1680
1680
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1681
1681
|
}
|
|
1682
|
-
function
|
|
1682
|
+
function Ga(e) {
|
|
1683
1683
|
const t = ce(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1684
1684
|
return e.named && (ce(e.named.count) || ce(e.named.n)) ? ce(e.named.count) ? e.named.count : ce(e.named.n) ? e.named.n : t : t;
|
|
1685
1685
|
}
|
|
@@ -1687,28 +1687,28 @@ function Wa(e, t) {
|
|
|
1687
1687
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1688
1688
|
}
|
|
1689
1689
|
function xa(e = {}) {
|
|
1690
|
-
const t = e.locale, n =
|
|
1690
|
+
const t = e.locale, n = Ga(e), s = Y(e.pluralRules) && C(t) && ne(e.pluralRules[t]) ? e.pluralRules[t] : gn, l = Y(e.pluralRules) && C(t) && ne(e.pluralRules[t]) ? gn : void 0, a = (c) => c[s(n, c.length, l)], m = e.list || [], f = (c) => m[c], d = e.named || B();
|
|
1691
1691
|
ce(e.pluralIndex) && Wa(n, d);
|
|
1692
|
-
const
|
|
1693
|
-
function
|
|
1694
|
-
const y = ne(e.messages) ? e.messages(c, !!_) :
|
|
1692
|
+
const h = (c) => d[c];
|
|
1693
|
+
function T(c, _) {
|
|
1694
|
+
const y = ne(e.messages) ? e.messages(c, !!_) : Y(e.messages) ? e.messages[c] : !1;
|
|
1695
1695
|
return y || (e.parent ? e.parent.message(c) : Fa);
|
|
1696
1696
|
}
|
|
1697
|
-
const L = (c) => e.modifiers ? e.modifiers[c] : Pa, N =
|
|
1697
|
+
const L = (c) => e.modifiers ? e.modifiers[c] : Pa, N = X(e.processor) && ne(e.processor.normalize) ? e.processor.normalize : Va, S = X(e.processor) && ne(e.processor.interpolate) ? e.processor.interpolate : Ua, F = X(e.processor) && C(e.processor.type) ? e.processor.type : ja, O = {
|
|
1698
1698
|
list: f,
|
|
1699
|
-
named:
|
|
1699
|
+
named: h,
|
|
1700
1700
|
plural: a,
|
|
1701
1701
|
linked: (c, ..._) => {
|
|
1702
1702
|
const [y, u] = _;
|
|
1703
1703
|
let g = "text", v = "";
|
|
1704
|
-
_.length === 1 ?
|
|
1705
|
-
const i =
|
|
1704
|
+
_.length === 1 ? Y(y) ? (v = y.modifier || v, g = y.type || g) : C(y) && (v = y || v) : _.length === 2 && (C(y) && (v = y || v), C(u) && (g = u || g));
|
|
1705
|
+
const i = T(c, !0)(O), I = (
|
|
1706
1706
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1707
1707
|
g === "vnode" && oe(i) && v ? i[0] : i
|
|
1708
1708
|
);
|
|
1709
1709
|
return v ? L(v)(I, g) : I;
|
|
1710
1710
|
},
|
|
1711
|
-
message:
|
|
1711
|
+
message: T,
|
|
1712
1712
|
type: F,
|
|
1713
1713
|
interpolate: S,
|
|
1714
1714
|
normalize: N,
|
|
@@ -1716,47 +1716,47 @@ function xa(e = {}) {
|
|
|
1716
1716
|
};
|
|
1717
1717
|
return O;
|
|
1718
1718
|
}
|
|
1719
|
-
const vn = () => "",
|
|
1719
|
+
const vn = () => "", be = (e) => ne(e);
|
|
1720
1720
|
function En(e, ...t) {
|
|
1721
|
-
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: m, messages: f } = e, [d,
|
|
1722
|
-
N &&
|
|
1721
|
+
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: m, messages: f } = e, [d, h] = jt(...t), T = le(h.missingWarn) ? h.missingWarn : e.missingWarn, L = le(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn, N = le(h.escapeParameter) ? h.escapeParameter : e.escapeParameter, S = !!h.resolvedMessage, F = C(h.default) || le(h.default) ? le(h.default) ? a ? d : () => d : h.default : n ? a ? d : () => d : null, k = n || F != null && (C(F) || ne(F)), O = $t(e, h);
|
|
1722
|
+
N && Xa(h);
|
|
1723
1723
|
let [c, _, y] = S ? [
|
|
1724
1724
|
d,
|
|
1725
1725
|
O,
|
|
1726
1726
|
f[O] || B()
|
|
1727
|
-
] : Vn(e, d, O, m, L,
|
|
1728
|
-
if (!S && !(
|
|
1729
|
-
return l ?
|
|
1727
|
+
] : Vn(e, d, O, m, L, T), u = c, g = d;
|
|
1728
|
+
if (!S && !(C(u) || He(u) || be(u)) && k && (u = F, g = u), !S && (!(C(u) || He(u) || be(u)) || !C(_)))
|
|
1729
|
+
return l ? bt : d;
|
|
1730
1730
|
let v = !1;
|
|
1731
1731
|
const i = () => {
|
|
1732
1732
|
v = !0;
|
|
1733
|
-
}, I =
|
|
1733
|
+
}, I = be(u) ? u : Un(e, d, _, u, g, i);
|
|
1734
1734
|
if (v)
|
|
1735
1735
|
return u;
|
|
1736
|
-
const P = Ha(e, _, y,
|
|
1736
|
+
const P = Ha(e, _, y, h), D = xa(P), Z = Ya(e, I, D), V = s ? s(Z, d) : Z;
|
|
1737
1737
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1738
1738
|
const z = {
|
|
1739
1739
|
timestamp: Date.now(),
|
|
1740
|
-
key:
|
|
1741
|
-
locale: _ || (
|
|
1742
|
-
format:
|
|
1740
|
+
key: C(d) ? d : be(u) ? u.key : "",
|
|
1741
|
+
locale: _ || (be(u) ? u.locale : ""),
|
|
1742
|
+
format: C(u) ? u : be(u) ? u.source : "",
|
|
1743
1743
|
message: V
|
|
1744
1744
|
};
|
|
1745
|
-
z.meta = ue({}, e.__meta, /* @__PURE__ */
|
|
1745
|
+
z.meta = ue({}, e.__meta, /* @__PURE__ */ Ca() || {}), ua(z);
|
|
1746
1746
|
}
|
|
1747
1747
|
return V;
|
|
1748
1748
|
}
|
|
1749
|
-
function
|
|
1750
|
-
oe(e.list) ? e.list = e.list.map((t) =>
|
|
1751
|
-
|
|
1749
|
+
function Xa(e) {
|
|
1750
|
+
oe(e.list) ? e.list = e.list.map((t) => C(t) ? tn(t) : t) : Y(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1751
|
+
C(e.named[t]) && (e.named[t] = tn(e.named[t]));
|
|
1752
1752
|
});
|
|
1753
1753
|
}
|
|
1754
1754
|
function Vn(e, t, n, s, l, a) {
|
|
1755
|
-
const { messages: m, onWarn: f, messageResolver: d, localeFallbacker:
|
|
1755
|
+
const { messages: m, onWarn: f, messageResolver: d, localeFallbacker: h } = e, T = h(e, s, n);
|
|
1756
1756
|
let L = B(), N, S = null;
|
|
1757
1757
|
const F = "translate";
|
|
1758
|
-
for (let
|
|
1759
|
-
if (!wa(N,
|
|
1758
|
+
for (let k = 0; k < T.length && (N = T[k], L = m[N] || B(), (S = d(L, t)) === null && (S = L[t]), !(C(S) || He(S) || be(S))); k++)
|
|
1759
|
+
if (!wa(N, T)) {
|
|
1760
1760
|
const O = Jt(
|
|
1761
1761
|
e,
|
|
1762
1762
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -1769,30 +1769,30 @@ function Vn(e, t, n, s, l, a) {
|
|
|
1769
1769
|
}
|
|
1770
1770
|
return [S, N, L];
|
|
1771
1771
|
}
|
|
1772
|
-
function
|
|
1772
|
+
function Un(e, t, n, s, l, a) {
|
|
1773
1773
|
const { messageCompiler: m, warnHtmlMessage: f } = e;
|
|
1774
|
-
if (
|
|
1775
|
-
const
|
|
1776
|
-
return
|
|
1774
|
+
if (be(s)) {
|
|
1775
|
+
const h = s;
|
|
1776
|
+
return h.locale = h.locale || n, h.key = h.key || t, h;
|
|
1777
1777
|
}
|
|
1778
1778
|
if (m == null) {
|
|
1779
|
-
const
|
|
1780
|
-
return
|
|
1779
|
+
const h = () => s;
|
|
1780
|
+
return h.locale = n, h.key = t, h;
|
|
1781
1781
|
}
|
|
1782
|
-
const d = m(s,
|
|
1782
|
+
const d = m(s, Za(e, n, l, s, f, a));
|
|
1783
1783
|
return d.locale = n, d.key = t, d.source = s, d;
|
|
1784
1784
|
}
|
|
1785
|
-
function
|
|
1785
|
+
function Ya(e, t, n) {
|
|
1786
1786
|
return t(n);
|
|
1787
1787
|
}
|
|
1788
1788
|
function jt(...e) {
|
|
1789
1789
|
const [t, n, s] = e, l = B();
|
|
1790
|
-
if (!
|
|
1790
|
+
if (!C(t) && !ce(t) && !be(t) && !He(t))
|
|
1791
1791
|
throw Re(Oe.INVALID_ARGUMENT);
|
|
1792
|
-
const a = ce(t) ? String(t) : (
|
|
1793
|
-
return ce(n) ? l.plural = n :
|
|
1792
|
+
const a = ce(t) ? String(t) : (be(t), t);
|
|
1793
|
+
return ce(n) ? l.plural = n : C(n) ? l.default = n : X(n) && !pt(n) ? l.named = n : oe(n) && (l.list = n), ce(s) ? l.plural = s : C(s) ? l.default = s : X(s) && ue(l, s), [a, l];
|
|
1794
1794
|
}
|
|
1795
|
-
function
|
|
1795
|
+
function Za(e, t, n, s, l, a) {
|
|
1796
1796
|
return {
|
|
1797
1797
|
locale: t,
|
|
1798
1798
|
key: n,
|
|
@@ -1804,37 +1804,37 @@ function Ya(e, t, n, s, l, a) {
|
|
|
1804
1804
|
};
|
|
1805
1805
|
}
|
|
1806
1806
|
function Ha(e, t, n, s) {
|
|
1807
|
-
const { modifiers: l, pluralRules: a, messageResolver: m, fallbackLocale: f, fallbackWarn: d, missingWarn:
|
|
1807
|
+
const { modifiers: l, pluralRules: a, messageResolver: m, fallbackLocale: f, fallbackWarn: d, missingWarn: h, fallbackContext: T } = e, N = {
|
|
1808
1808
|
locale: t,
|
|
1809
1809
|
modifiers: l,
|
|
1810
1810
|
pluralRules: a,
|
|
1811
1811
|
messages: (S, F) => {
|
|
1812
|
-
let
|
|
1813
|
-
if (
|
|
1812
|
+
let k = m(n, S);
|
|
1813
|
+
if (k == null && (T || F)) {
|
|
1814
1814
|
const [, , O] = Vn(
|
|
1815
|
-
|
|
1815
|
+
T || e,
|
|
1816
1816
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1817
1817
|
S,
|
|
1818
1818
|
t,
|
|
1819
1819
|
f,
|
|
1820
1820
|
d,
|
|
1821
|
-
|
|
1821
|
+
h
|
|
1822
1822
|
);
|
|
1823
|
-
|
|
1823
|
+
k = m(O, S);
|
|
1824
1824
|
}
|
|
1825
|
-
if (
|
|
1825
|
+
if (C(k) || He(k)) {
|
|
1826
1826
|
let O = !1;
|
|
1827
|
-
const _ =
|
|
1827
|
+
const _ = Un(e, S, t, k, S, () => {
|
|
1828
1828
|
O = !0;
|
|
1829
1829
|
});
|
|
1830
1830
|
return O ? vn : _;
|
|
1831
|
-
} else return
|
|
1831
|
+
} else return be(k) ? k : vn;
|
|
1832
1832
|
}
|
|
1833
1833
|
};
|
|
1834
1834
|
return e.processor && (N.processor = e.processor), s.list && (N.list = s.list), s.named && (N.named = s.named), ce(s.plural) && (N.pluralIndex = s.plural), N;
|
|
1835
1835
|
}
|
|
1836
|
-
|
|
1837
|
-
var Ba = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_b03e78e0-6fac-4462-9ba1-a0e5cda75f6a", 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_b03e78e0-6fac-4462-9ba1-a0e5cda75f6a", 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.4.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-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1877", ACTIONS_ORCHESTRATION_ID: "feccc3f3-1f40-4131-886e-c3445b4f1d01.publish.publish.__default", npm_package_dependencies__feedmepos_ui_library: "^1.7.0", 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: "20260329.72.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:12940", 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.8/x64", GITHUB_RUN_ID: "24139270055", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "fb449946643d8a67a74f9388bca33648c5fef473", 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/portal-reports-permissions-new", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9mZWF0L3BvcnRhbC1yZXBvcnRzLXBlcm1pc3Npb25zLW5ld1wiLFwiUGVybWlzc2lvblwiOjN9LHtcIlNjb3BlXCI6XCJyZWZzL2hlYWRzL21haW5cIixcIlBlcm1pc3Npb25cIjoxfV0iLCJhY3NsIjoiMTAiLCJhdWQiOiJ2c286NmY5NmZhODktYjdiZi00ODc4LWJhZDMtODk4MDA2NTY2YjZlIiwiYmlsbGluZ19vd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsImV4cCI6MTc3NTY3ODgxMCwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiaWF0IjoxNzc1NjU2NjEwLCJpc3MiOiJodHRwczovL3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tIiwiam9iX2lkIjoiYzY1Y2NkNjEtZGMwNi01ZDJiLTk4NDItMTc0NGQ0ZGY3NDA3IiwibmFtZWlkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwibmJmIjoxNzc1NjU2MzEwLCJvaWRjX2V4dHJhIjoie1wiYWN0b3JcIjpcIkNhc3RhLW1lcmVcIixcImFjdG9yX2lkXCI6XCI4MjI5ODAxN1wiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI3MDQzNTc5OTY4NVwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiM2YzNTQ0ODAwYmFhM2I4YmM0YWFhZTk0ZWU4NGMwMTJiZDY0OGZmZVwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL2ZlYXQvcG9ydGFsLXJlcG9ydHMtcGVybWlzc2lvbnMtbmV3XCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjI0MTM5MjcwMDU1XCIsXCJydW5fbnVtYmVyXCI6XCIzOVwiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcImZiNDQ5OTQ2NjQzZDhhNjdhNzRmOTM4OGJjYTMzNjQ4YzVmZWY0NzNcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIGhybS1wb3J0YWxcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtaHJtLXBvcnRhbC10cnVzdGVkLnltbEByZWZzL2hlYWRzL2ZlYXQvcG9ydGFsLXJlcG9ydHMtcGVybWlzc2lvbnMtbmV3XCIsXCJ3b3JrZmxvd19zaGFcIjpcImZiNDQ5OTQ2NjQzZDhhNjdhNzRmOTM4OGJjYTMzNjQ4YzVmZWY0NzNcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL2hybS1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL2ZlYXQvcG9ydGFsLXJlcG9ydHMtcGVybWlzc2lvbnMtbmV3Iiwib3JjaF9pZCI6ImZlY2NjM2YzLTFmNDAtNDEzMS04ODZlLWMzNDQ1YjRmMWQwMS5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiZmVjY2MzZjMtMWY0MC00MTMxLTg4NmUtYzM0NDViNGYxZDAxIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJydW5faWQiOiIyNDEzOTI3MDA1NSIsInJ1bl9udW1iZXIiOiIzOSIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDAwNTg3MzQiLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czpmZWNjYzNmMy0xZjQwLTQxMzEtODg2ZS1jMzQ0NWI0ZjFkMDE6YzY1Y2NkNjEtZGMwNi01ZDJiLTk4NDItMTc0NGQ0ZGY3NDA3IEFjdGlvbnMuUnVubmVyOmZlY2NjM2YzLTFmNDAtNDEzMS04ODZlLWMzNDQ1YjRmMWQwMTpjNjVjY2Q2MS1kYzA2LTVkMmItOTg0Mi0xNzQ0ZDRkZjc0MDcgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6ZmVjY2MzZjMtMWY0MC00MTMxLTg4NmUtYzM0NDViNGYxZDAxOmM2NWNjZDYxLWRjMDYtNWQyYi05ODQyLTE3NDRkNGRmNzQwNyBnZW5lcmF0ZV9pZF90b2tlbjpmZWNjYzNmMy0xZjQwLTQxMzEtODg2ZS1jMzQ0NWI0ZjFkMDE6YzY1Y2NkNjEtZGMwNi01ZDJiLTk4NDItMTc0NGQ0ZGY3NDA3IEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiZmI0NDk5NDY2NDNkOGE2N2E3NGY5Mzg4YmNhMzM2NDhjNWZlZjQ3MyIsInRydXN0X3RpZXIiOiIxIn0.0nt5Wdtc_KLSfvxhqL1kMl1_c6RcZP5VAQg0KlwoFomEOV06l8Q_nWpal_u7L53le8gbPUEf4RrDEof1YzG7T7aQ2HziCT1N-t0RAZRiMxPQZ3sBDFEr86pSbuNNCsJFluZjl1eqyyQBRGzWuxRCUJgxRTKfPOn3GrEn-zB5Kd2ngTg3ShuQ-c876n55QipWv-Fts0fuNK6PQnWwQYs-DDswGmXRZULzDz49HZY37Ck7vcV01Ej5eO_PPTYYv2ZCmiVsfhWX-N-1obnHEhbH4tgXtZ8lx_FLdtH4h-UdHu8sz_N8HCO-GwQKMBsu2H8vJbQNkvcfPG6mhtJXNMqT-A", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_package_dependencies_axios: "^1.7.7", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/24.5.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_e35cabe6-332c-4c6d-8bc6-387d2de4cdb6", INVOCATION_ID: "f242cc9c60964bd58a4c51a31241afea", 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_4", GITHUB_RUN_NUMBER: "39", 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 1000058734", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "feat/portal-reports-permissions-new", 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.9-dev", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts", npm_package_dependencies__feedmepos_hrm_permission: "workspace:*", npm_package_devDependencies__rushstack_eslint_patch: "^1.3.3", npm_package_devDependencies_eslint_plugin_unused_imports: "^4.3.0", npm_package_devDependencies_jsdom: "^24.0.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_uuid: "^10.0.0", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "fb449946643d8a67a74f9388bca33648c5fef473", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.2", GITHUB_REF: "refs/heads/feat/portal-reports-permissions-new", 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_b03e78e0-6fac-4462-9ba1-a0e5cda75f6a", 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-2-azure-eastus.actions.githubusercontent.com/57//idtoken/feccc3f3-1f40-4131-886e-c3445b4f1d01/c65ccd61-dc06-5d2b-9842-1744d4df7407?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_b03e78e0-6fac-4462-9ba1-a0e5cda75f6a", 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_b03e78e0-6fac-4462-9ba1-a0e5cda75f6a", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1836
|
+
Xs();
|
|
1837
|
+
var Ba = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_7fc4dc45-cdc2-4577-82b9-a66bd9d6b5a4", 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_7fc4dc45-cdc2-4577-82b9-a66bd9d6b5a4", 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.4.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-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1862", ACTIONS_ORCHESTRATION_ID: "13c9a172-71e7-4324-9a82-05c7f4342286.publish.publish.__default", npm_package_dependencies__feedmepos_ui_library: "^1.7.0", 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: "20260329.72.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:13547", 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.8/x64", GITHUB_RUN_ID: "24181346847", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "4f902ec2f62a760c3a55b340045a652250aff5c7", 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/portal-reports-permissions-new", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9mZWF0L3BvcnRhbC1yZXBvcnRzLXBlcm1pc3Npb25zLW5ld1wiLFwiUGVybWlzc2lvblwiOjN9LHtcIlNjb3BlXCI6XCJyZWZzL2hlYWRzL21haW5cIixcIlBlcm1pc3Npb25cIjoxfV0iLCJhY3NsIjoiMTAiLCJhdWQiOiJ2c286NmY5NmZhODktYjdiZi00ODc4LWJhZDMtODk4MDA2NTY2YjZlIiwiYmlsbGluZ19vd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsImV4cCI6MTc3NTc0NjgwOSwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiaWF0IjoxNzc1NzI0NjA5LCJpc3MiOiJodHRwczovL3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tIiwiam9iX2lkIjoiNTZlN2VhNWYtOTFkNS01ZWQ1LTk2MmUtNzZjYzAwZDFhNjZlIiwibmFtZWlkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwibmJmIjoxNzc1NzI0MzA5LCJvaWRjX2V4dHJhIjoie1wiYWN0b3JcIjpcIkNhc3RhLW1lcmVcIixcImFjdG9yX2lkXCI6XCI4MjI5ODAxN1wiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI3MDU3NDgzNDAwNlwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiM2YzNTQ0ODAwYmFhM2I4YmM0YWFhZTk0ZWU4NGMwMTJiZDY0OGZmZVwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL2ZlYXQvcG9ydGFsLXJlcG9ydHMtcGVybWlzc2lvbnMtbmV3XCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjI0MTgxMzQ2ODQ3XCIsXCJydW5fbnVtYmVyXCI6XCI0MFwiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcIjRmOTAyZWMyZjYyYTc2MGMzYTU1YjM0MDA0NWE2NTIyNTBhZmY1YzdcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIGhybS1wb3J0YWxcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtaHJtLXBvcnRhbC10cnVzdGVkLnltbEByZWZzL2hlYWRzL2ZlYXQvcG9ydGFsLXJlcG9ydHMtcGVybWlzc2lvbnMtbmV3XCIsXCJ3b3JrZmxvd19zaGFcIjpcIjRmOTAyZWMyZjYyYTc2MGMzYTU1YjM0MDA0NWE2NTIyNTBhZmY1YzdcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL2hybS1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL2ZlYXQvcG9ydGFsLXJlcG9ydHMtcGVybWlzc2lvbnMtbmV3Iiwib3JjaF9pZCI6IjEzYzlhMTcyLTcxZTctNDMyNC05YTgyLTA1YzdmNDM0MjI4Ni5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiMTNjOWExNzItNzFlNy00MzI0LTlhODItMDVjN2Y0MzQyMjg2IiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJydW5faWQiOiIyNDE4MTM0Njg0NyIsInJ1bl9udW1iZXIiOiI0MCIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDAwNTkwNzUiLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czoxM2M5YTE3Mi03MWU3LTQzMjQtOWE4Mi0wNWM3ZjQzNDIyODY6NTZlN2VhNWYtOTFkNS01ZWQ1LTk2MmUtNzZjYzAwZDFhNjZlIEFjdGlvbnMuUnVubmVyOjEzYzlhMTcyLTcxZTctNDMyNC05YTgyLTA1YzdmNDM0MjI4Njo1NmU3ZWE1Zi05MWQ1LTVlZDUtOTYyZS03NmNjMDBkMWE2NmUgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6MTNjOWExNzItNzFlNy00MzI0LTlhODItMDVjN2Y0MzQyMjg2OjU2ZTdlYTVmLTkxZDUtNWVkNS05NjJlLTc2Y2MwMGQxYTY2ZSBnZW5lcmF0ZV9pZF90b2tlbjoxM2M5YTE3Mi03MWU3LTQzMjQtOWE4Mi0wNWM3ZjQzNDIyODY6NTZlN2VhNWYtOTFkNS01ZWQ1LTk2MmUtNzZjYzAwZDFhNjZlIEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiNGY5MDJlYzJmNjJhNzYwYzNhNTViMzQwMDQ1YTY1MjI1MGFmZjVjNyIsInRydXN0X3RpZXIiOiIxIn0.V89W60yvkC30tDtEnOm5hvtIAWXuwOik8CVAmV9Qf7SEbngycd7xix0L5KmApRuFJ3T0SAOrs8g9FAhtHhy7oQ5Nyx9gJaL3MTGJCEwkyH58HSl-0GYP6qSvfoj6cEOsBwuxofrpQdSxHhUb9mCCG5cA61t5sberwPqXjnITURbWuThzpnHg-TIoegGYApMWNYYUe_etVZPB1SYEaDbfhsIVSe8AYD4a4WDcSgsvnDrEA-EFPtlc9lYtX8Icw8ozL28_skdo0R0QELCiUSKF_NtqzyVxwA4Al_VYJlSbqTqARD_oEMhsuyOuaT4JEqkt8dA443WjacM5PcVjXsEm0A", 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_56ee9724-8ac6-47c5-8a45-51e460b17826", INVOCATION_ID: "6223d790a0bd4e59b5eae127ed1b5971", 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_4", GITHUB_RUN_NUMBER: "40", 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 1000059075", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "feat/portal-reports-permissions-new", 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.10-dev", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts", npm_package_dependencies__feedmepos_hrm_permission: "workspace:*", npm_package_devDependencies__rushstack_eslint_patch: "^1.3.3", npm_package_devDependencies_eslint_plugin_unused_imports: "^4.3.0", npm_package_devDependencies_jsdom: "^24.0.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_uuid: "^10.0.0", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "4f902ec2f62a760c3a55b340045a652250aff5c7", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.2", GITHUB_REF: "refs/heads/feat/portal-reports-permissions-new", 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_7fc4dc45-cdc2-4577-82b9-a66bd9d6b5a4", 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-3-azure-eastus.actions.githubusercontent.com/38//idtoken/13c9a172-71e7-4324-9a82-05c7f4342286/56e7ea5f-91d5-5ed5-962e-76cc00d1a66e?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_7fc4dc45-cdc2-4577-82b9-a66bd9d6b5a4", 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_7fc4dc45-cdc2-4577-82b9-a66bd9d6b5a4", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1838
1838
|
const $a = "10.0.5";
|
|
1839
1839
|
function Ja() {
|
|
1840
1840
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (je().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (je().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (je().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (je().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
@@ -1853,38 +1853,38 @@ const Be = {
|
|
|
1853
1853
|
UNEXPECTED_ERROR: 32
|
|
1854
1854
|
};
|
|
1855
1855
|
function nt(e, ...t) {
|
|
1856
|
-
return
|
|
1856
|
+
return ht(e, null, void 0);
|
|
1857
1857
|
}
|
|
1858
|
-
const Vt = /* @__PURE__ */
|
|
1858
|
+
const Vt = /* @__PURE__ */ Ue("__translateVNode"), Ut = /* @__PURE__ */ Ue("__datetimeParts"), Gt = /* @__PURE__ */ Ue("__numberParts"), za = Ue("__setPluralRules"), Gn = /* @__PURE__ */ Ue("__injectWithOption"), Wt = /* @__PURE__ */ Ue("__dispose");
|
|
1859
1859
|
function st(e) {
|
|
1860
|
-
if (!
|
|
1860
|
+
if (!Y(e))
|
|
1861
1861
|
return e;
|
|
1862
1862
|
for (const t in e)
|
|
1863
1863
|
if (Ee(e, t))
|
|
1864
1864
|
if (!t.includes("."))
|
|
1865
|
-
|
|
1865
|
+
Y(e[t]) && st(e[t]);
|
|
1866
1866
|
else {
|
|
1867
1867
|
const n = t.split("."), s = n.length - 1;
|
|
1868
1868
|
let l = e, a = !1;
|
|
1869
1869
|
for (let m = 0; m < s; m++) {
|
|
1870
|
-
if (n[m] in l || (l[n[m]] = B()), !
|
|
1870
|
+
if (n[m] in l || (l[n[m]] = B()), !Y(l[n[m]])) {
|
|
1871
1871
|
a = !0;
|
|
1872
1872
|
break;
|
|
1873
1873
|
}
|
|
1874
1874
|
l = l[n[m]];
|
|
1875
1875
|
}
|
|
1876
|
-
a || (l[n[s]] = e[t], delete e[t]),
|
|
1876
|
+
a || (l[n[s]] = e[t], delete e[t]), Y(l[n[s]]) && st(l[n[s]]);
|
|
1877
1877
|
}
|
|
1878
1878
|
return e;
|
|
1879
1879
|
}
|
|
1880
1880
|
function Wn(e, t) {
|
|
1881
|
-
const { messages: n, __i18n: s, messageResolver: l, flatJson: a } = t, m =
|
|
1881
|
+
const { messages: n, __i18n: s, messageResolver: l, flatJson: a } = t, m = X(n) ? n : oe(s) ? B() : { [e]: B() };
|
|
1882
1882
|
if (oe(s) && s.forEach((f) => {
|
|
1883
1883
|
if ("locale" in f && "resource" in f) {
|
|
1884
|
-
const { locale: d, resource:
|
|
1885
|
-
d ? (m[d] = m[d] || B(), mt(
|
|
1884
|
+
const { locale: d, resource: h } = f;
|
|
1885
|
+
d ? (m[d] = m[d] || B(), mt(h, m[d])) : mt(h, m);
|
|
1886
1886
|
} else
|
|
1887
|
-
|
|
1887
|
+
C(f) && mt(JSON.parse(f), m);
|
|
1888
1888
|
}), l == null && a)
|
|
1889
1889
|
for (const f in m)
|
|
1890
1890
|
Ee(m, f) && st(m[f]);
|
|
@@ -1893,8 +1893,8 @@ function Wn(e, t) {
|
|
|
1893
1893
|
function xn(e) {
|
|
1894
1894
|
return e.type;
|
|
1895
1895
|
}
|
|
1896
|
-
function
|
|
1897
|
-
let s =
|
|
1896
|
+
function Ka(e, t, n) {
|
|
1897
|
+
let s = Y(t.messages) ? t.messages : B();
|
|
1898
1898
|
"__i18nGlobal" in n && (s = Wn(e.locale.value, {
|
|
1899
1899
|
messages: s,
|
|
1900
1900
|
__i18n: n.__i18nGlobal
|
|
@@ -1904,13 +1904,13 @@ function Qa(e, t, n) {
|
|
|
1904
1904
|
e.mergeLocaleMessage(a, s[a]);
|
|
1905
1905
|
});
|
|
1906
1906
|
{
|
|
1907
|
-
if (
|
|
1907
|
+
if (Y(t.datetimeFormats)) {
|
|
1908
1908
|
const a = Object.keys(t.datetimeFormats);
|
|
1909
1909
|
a.length && a.forEach((m) => {
|
|
1910
1910
|
e.mergeDateTimeFormat(m, t.datetimeFormats[m]);
|
|
1911
1911
|
});
|
|
1912
1912
|
}
|
|
1913
|
-
if (
|
|
1913
|
+
if (Y(t.numberFormats)) {
|
|
1914
1914
|
const a = Object.keys(t.numberFormats);
|
|
1915
1915
|
a.length && a.forEach((m) => {
|
|
1916
1916
|
e.mergeNumberFormat(m, t.numberFormats[m]);
|
|
@@ -1921,9 +1921,9 @@ function Qa(e, t, n) {
|
|
|
1921
1921
|
function In(e) {
|
|
1922
1922
|
return de($n, null, e, 0);
|
|
1923
1923
|
}
|
|
1924
|
-
const Nn = "__INTLIFY_META__", yn = () => [],
|
|
1925
|
-
let
|
|
1926
|
-
function
|
|
1924
|
+
const Nn = "__INTLIFY_META__", yn = () => [], Qa = () => !1;
|
|
1925
|
+
let Tn = 0;
|
|
1926
|
+
function kn(e) {
|
|
1927
1927
|
return (t, n, s, l) => e(n, s, xt() || void 0, l);
|
|
1928
1928
|
}
|
|
1929
1929
|
const qa = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
@@ -1936,13 +1936,13 @@ function er(e = {}) {
|
|
|
1936
1936
|
let m = le(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1937
1937
|
const f = a(
|
|
1938
1938
|
// prettier-ignore
|
|
1939
|
-
t && m ? t.locale.value :
|
|
1939
|
+
t && m ? t.locale.value : C(e.locale) ? e.locale : ft
|
|
1940
1940
|
), d = a(
|
|
1941
1941
|
// prettier-ignore
|
|
1942
|
-
t && m ? t.fallbackLocale.value :
|
|
1943
|
-
),
|
|
1944
|
-
let N = t ? t.missingWarn : le(e.missingWarn) || dt(e.missingWarn) ? e.missingWarn : !0, S = t ? t.fallbackWarn : le(e.fallbackWarn) || dt(e.fallbackWarn) ? e.fallbackWarn : !0, F = t ? t.fallbackRoot : le(e.fallbackRoot) ? e.fallbackRoot : !0,
|
|
1945
|
-
const g = t ? t.modifiers :
|
|
1942
|
+
t && m ? t.fallbackLocale.value : C(e.fallbackLocale) || oe(e.fallbackLocale) || X(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : f.value
|
|
1943
|
+
), h = a(Wn(f.value, e)), T = a(X(e.datetimeFormats) ? e.datetimeFormats : { [f.value]: {} }), L = a(X(e.numberFormats) ? e.numberFormats : { [f.value]: {} });
|
|
1944
|
+
let N = t ? t.missingWarn : le(e.missingWarn) || dt(e.missingWarn) ? e.missingWarn : !0, S = t ? t.fallbackWarn : le(e.fallbackWarn) || dt(e.fallbackWarn) ? e.fallbackWarn : !0, F = t ? t.fallbackRoot : le(e.fallbackRoot) ? e.fallbackRoot : !0, k = !!e.fallbackFormat, O = ne(e.missing) ? e.missing : null, c = ne(e.missing) ? kn(e.missing) : null, _ = ne(e.postTranslation) ? e.postTranslation : null, y = t ? t.warnHtmlMessage : le(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, u = !!e.escapeParameter;
|
|
1945
|
+
const g = t ? t.modifiers : X(e.modifiers) ? e.modifiers : {};
|
|
1946
1946
|
let v = e.pluralRules || t && t.pluralRules, i;
|
|
1947
1947
|
i = (() => {
|
|
1948
1948
|
s && dn(null);
|
|
@@ -1950,13 +1950,13 @@ function er(e = {}) {
|
|
|
1950
1950
|
version: $a,
|
|
1951
1951
|
locale: f.value,
|
|
1952
1952
|
fallbackLocale: d.value,
|
|
1953
|
-
messages:
|
|
1953
|
+
messages: h.value,
|
|
1954
1954
|
modifiers: g,
|
|
1955
1955
|
pluralRules: v,
|
|
1956
1956
|
missing: c === null ? void 0 : c,
|
|
1957
1957
|
missingWarn: N,
|
|
1958
1958
|
fallbackWarn: S,
|
|
1959
|
-
fallbackFormat:
|
|
1959
|
+
fallbackFormat: k,
|
|
1960
1960
|
unresolving: !0,
|
|
1961
1961
|
postTranslation: _ === null ? void 0 : _,
|
|
1962
1962
|
warnHtmlMessage: y,
|
|
@@ -1965,16 +1965,16 @@ function er(e = {}) {
|
|
|
1965
1965
|
messageCompiler: e.messageCompiler,
|
|
1966
1966
|
__meta: { framework: "vue" }
|
|
1967
1967
|
};
|
|
1968
|
-
p.datetimeFormats =
|
|
1968
|
+
p.datetimeFormats = T.value, p.numberFormats = L.value, p.__datetimeFormatters = X(i) ? i.__datetimeFormatters : void 0, p.__numberFormatters = X(i) ? i.__numberFormatters : void 0;
|
|
1969
1969
|
const E = Da(p);
|
|
1970
1970
|
return s && dn(E), E;
|
|
1971
|
-
})(),
|
|
1971
|
+
})(), Qe(i, f.value, d.value);
|
|
1972
1972
|
function P() {
|
|
1973
1973
|
return [
|
|
1974
1974
|
f.value,
|
|
1975
1975
|
d.value,
|
|
1976
|
-
|
|
1977
|
-
|
|
1976
|
+
h.value,
|
|
1977
|
+
T.value,
|
|
1978
1978
|
L.value
|
|
1979
1979
|
];
|
|
1980
1980
|
}
|
|
@@ -1983,13 +1983,13 @@ function er(e = {}) {
|
|
|
1983
1983
|
set: (p) => {
|
|
1984
1984
|
f.value = p, i.locale = f.value;
|
|
1985
1985
|
}
|
|
1986
|
-
}),
|
|
1986
|
+
}), Z = J({
|
|
1987
1987
|
get: () => d.value,
|
|
1988
1988
|
set: (p) => {
|
|
1989
|
-
d.value = p, i.fallbackLocale = d.value,
|
|
1989
|
+
d.value = p, i.fallbackLocale = d.value, Qe(i, f.value, p);
|
|
1990
1990
|
}
|
|
1991
|
-
}), V = J(() =>
|
|
1992
|
-
function
|
|
1991
|
+
}), V = J(() => h.value), z = /* @__PURE__ */ J(() => T.value), W = /* @__PURE__ */ J(() => L.value);
|
|
1992
|
+
function A() {
|
|
1993
1993
|
return ne(_) ? _ : null;
|
|
1994
1994
|
}
|
|
1995
1995
|
function R(p) {
|
|
@@ -1998,10 +1998,10 @@ function er(e = {}) {
|
|
|
1998
1998
|
function M() {
|
|
1999
1999
|
return O;
|
|
2000
2000
|
}
|
|
2001
|
-
function
|
|
2002
|
-
p !== null && (c =
|
|
2001
|
+
function K(p) {
|
|
2002
|
+
p !== null && (c = kn(p)), O = p, i.missing = c;
|
|
2003
2003
|
}
|
|
2004
|
-
const
|
|
2004
|
+
const U = (p, E, $, re, Pe, at) => {
|
|
2005
2005
|
P();
|
|
2006
2006
|
let xe;
|
|
2007
2007
|
try {
|
|
@@ -2010,9 +2010,9 @@ function er(e = {}) {
|
|
|
2010
2010
|
__INTLIFY_PROD_DEVTOOLS__, s || (i.fallbackContext = void 0);
|
|
2011
2011
|
}
|
|
2012
2012
|
if ($ !== "translate exists" && // for not `te` (e.g `t`)
|
|
2013
|
-
ce(xe) && xe ===
|
|
2014
|
-
const [
|
|
2015
|
-
return t && F ? re(t) : Pe(
|
|
2013
|
+
ce(xe) && xe === bt || $ === "translate exists" && !xe) {
|
|
2014
|
+
const [Zn, Wr] = E();
|
|
2015
|
+
return t && F ? re(t) : Pe(Zn);
|
|
2016
2016
|
} else {
|
|
2017
2017
|
if (at(xe))
|
|
2018
2018
|
return xe;
|
|
@@ -2020,22 +2020,22 @@ function er(e = {}) {
|
|
|
2020
2020
|
}
|
|
2021
2021
|
};
|
|
2022
2022
|
function j(...p) {
|
|
2023
|
-
return
|
|
2023
|
+
return U((E) => Reflect.apply(En, null, [E, ...p]), () => jt(...p), "translate", (E) => Reflect.apply(E.t, E, [...p]), (E) => E, (E) => C(E));
|
|
2024
2024
|
}
|
|
2025
2025
|
function se(...p) {
|
|
2026
2026
|
const [E, $, re] = p;
|
|
2027
|
-
if (re && !
|
|
2027
|
+
if (re && !Y(re))
|
|
2028
2028
|
throw nt(Be.INVALID_ARGUMENT);
|
|
2029
2029
|
return j(E, $, ue({ resolvedMessage: !0 }, re || {}));
|
|
2030
2030
|
}
|
|
2031
|
-
function
|
|
2032
|
-
return
|
|
2031
|
+
function Q(...p) {
|
|
2032
|
+
return U((E) => Reflect.apply(_n, null, [E, ...p]), () => Pt(...p), "datetime format", (E) => Reflect.apply(E.d, E, [...p]), () => un, (E) => C(E));
|
|
2033
2033
|
}
|
|
2034
2034
|
function ge(...p) {
|
|
2035
|
-
return
|
|
2035
|
+
return U((E) => Reflect.apply(hn, null, [E, ...p]), () => Ft(...p), "number format", (E) => Reflect.apply(E.n, E, [...p]), () => un, (E) => C(E));
|
|
2036
2036
|
}
|
|
2037
2037
|
function fe(p) {
|
|
2038
|
-
return p.map((E) =>
|
|
2038
|
+
return p.map((E) => C(E) || ce(E) || le(E) ? In(String(E)) : E);
|
|
2039
2039
|
}
|
|
2040
2040
|
const q = {
|
|
2041
2041
|
normalize: fe,
|
|
@@ -2043,7 +2043,7 @@ function er(e = {}) {
|
|
|
2043
2043
|
type: "vnode"
|
|
2044
2044
|
};
|
|
2045
2045
|
function ve(...p) {
|
|
2046
|
-
return
|
|
2046
|
+
return U((E) => {
|
|
2047
2047
|
let $;
|
|
2048
2048
|
const re = E;
|
|
2049
2049
|
try {
|
|
@@ -2055,27 +2055,27 @@ function er(e = {}) {
|
|
|
2055
2055
|
}, () => jt(...p), "translate", (E) => E[Vt](...p), (E) => [In(E)], (E) => oe(E));
|
|
2056
2056
|
}
|
|
2057
2057
|
function $e(...p) {
|
|
2058
|
-
return
|
|
2058
|
+
return U((E) => Reflect.apply(hn, null, [E, ...p]), () => Ft(...p), "number format", (E) => E[Gt](...p), yn, (E) => C(E) || oe(E));
|
|
2059
2059
|
}
|
|
2060
2060
|
function Je(...p) {
|
|
2061
|
-
return
|
|
2061
|
+
return U((E) => Reflect.apply(_n, null, [E, ...p]), () => Pt(...p), "datetime format", (E) => E[Ut](...p), yn, (E) => C(E) || oe(E));
|
|
2062
2062
|
}
|
|
2063
2063
|
function vt(p) {
|
|
2064
2064
|
v = p, i.pluralRules = v;
|
|
2065
2065
|
}
|
|
2066
2066
|
function Et(p, E) {
|
|
2067
|
-
return
|
|
2067
|
+
return U(() => {
|
|
2068
2068
|
if (!p)
|
|
2069
2069
|
return !1;
|
|
2070
|
-
const $ =
|
|
2071
|
-
return He(Pe) ||
|
|
2072
|
-
}, () => [p], "translate exists", ($) => Reflect.apply($.te, $, [p, E]),
|
|
2070
|
+
const $ = C(E) ? E : f.value, re = Ge($), Pe = i.messageResolver(re, p);
|
|
2071
|
+
return He(Pe) || be(Pe) || C(Pe);
|
|
2072
|
+
}, () => [p], "translate exists", ($) => Reflect.apply($.te, $, [p, E]), Qa, ($) => le($));
|
|
2073
2073
|
}
|
|
2074
2074
|
function It(p) {
|
|
2075
2075
|
let E = null;
|
|
2076
|
-
const $ =
|
|
2076
|
+
const $ = Cn(i, d.value, f.value);
|
|
2077
2077
|
for (let re = 0; re < $.length; re++) {
|
|
2078
|
-
const Pe =
|
|
2078
|
+
const Pe = h.value[$[re]] || {}, at = i.messageResolver(Pe, p);
|
|
2079
2079
|
if (at != null) {
|
|
2080
2080
|
E = at;
|
|
2081
2081
|
break;
|
|
@@ -2087,8 +2087,8 @@ function er(e = {}) {
|
|
|
2087
2087
|
const E = It(p);
|
|
2088
2088
|
return E ?? (t ? t.tm(p) || {} : {});
|
|
2089
2089
|
}
|
|
2090
|
-
function
|
|
2091
|
-
return
|
|
2090
|
+
function Ge(p) {
|
|
2091
|
+
return h.value[p] || {};
|
|
2092
2092
|
}
|
|
2093
2093
|
function We(p, E) {
|
|
2094
2094
|
if (l) {
|
|
@@ -2097,51 +2097,51 @@ function er(e = {}) {
|
|
|
2097
2097
|
Ee($, re) && st($[re]);
|
|
2098
2098
|
E = $[p];
|
|
2099
2099
|
}
|
|
2100
|
-
|
|
2100
|
+
h.value[p] = E, i.messages = h.value;
|
|
2101
2101
|
}
|
|
2102
|
-
function
|
|
2103
|
-
|
|
2102
|
+
function Ke(p, E) {
|
|
2103
|
+
h.value[p] = h.value[p] || {};
|
|
2104
2104
|
const $ = { [p]: E };
|
|
2105
2105
|
if (l)
|
|
2106
2106
|
for (const re in $)
|
|
2107
2107
|
Ee($, re) && st($[re]);
|
|
2108
|
-
E = $[p], mt(E,
|
|
2108
|
+
E = $[p], mt(E, h.value[p]), i.messages = h.value;
|
|
2109
2109
|
}
|
|
2110
2110
|
function Nt(p) {
|
|
2111
|
-
return
|
|
2111
|
+
return T.value[p] || {};
|
|
2112
2112
|
}
|
|
2113
2113
|
function r(p, E) {
|
|
2114
|
-
|
|
2114
|
+
T.value[p] = E, i.datetimeFormats = T.value, pn(i, p, E);
|
|
2115
2115
|
}
|
|
2116
2116
|
function o(p, E) {
|
|
2117
|
-
|
|
2117
|
+
T.value[p] = ue(T.value[p] || {}, E), i.datetimeFormats = T.value, pn(i, p, E);
|
|
2118
2118
|
}
|
|
2119
|
-
function
|
|
2119
|
+
function b(p) {
|
|
2120
2120
|
return L.value[p] || {};
|
|
2121
2121
|
}
|
|
2122
2122
|
function w(p, E) {
|
|
2123
|
-
L.value[p] = E, i.numberFormats = L.value,
|
|
2123
|
+
L.value[p] = E, i.numberFormats = L.value, bn(i, p, E);
|
|
2124
2124
|
}
|
|
2125
2125
|
function ae(p, E) {
|
|
2126
|
-
L.value[p] = ue(L.value[p] || {}, E), i.numberFormats = L.value,
|
|
2126
|
+
L.value[p] = ue(L.value[p] || {}, E), i.numberFormats = L.value, bn(i, p, E);
|
|
2127
2127
|
}
|
|
2128
|
-
|
|
2129
|
-
m && (f.value = p, i.locale = p,
|
|
2128
|
+
Tn++, t && qt && (St(t.locale, (p) => {
|
|
2129
|
+
m && (f.value = p, i.locale = p, Qe(i, f.value, d.value));
|
|
2130
2130
|
}), St(t.fallbackLocale, (p) => {
|
|
2131
|
-
m && (d.value = p, i.fallbackLocale = p,
|
|
2131
|
+
m && (d.value = p, i.fallbackLocale = p, Qe(i, f.value, d.value));
|
|
2132
2132
|
}));
|
|
2133
|
-
const
|
|
2134
|
-
id:
|
|
2133
|
+
const G = {
|
|
2134
|
+
id: Tn,
|
|
2135
2135
|
locale: D,
|
|
2136
|
-
fallbackLocale:
|
|
2136
|
+
fallbackLocale: Z,
|
|
2137
2137
|
get inheritLocale() {
|
|
2138
2138
|
return m;
|
|
2139
2139
|
},
|
|
2140
2140
|
set inheritLocale(p) {
|
|
2141
|
-
m = p, p && t && (f.value = t.locale.value, d.value = t.fallbackLocale.value,
|
|
2141
|
+
m = p, p && t && (f.value = t.locale.value, d.value = t.fallbackLocale.value, Qe(i, f.value, d.value));
|
|
2142
2142
|
},
|
|
2143
2143
|
get availableLocales() {
|
|
2144
|
-
return Object.keys(
|
|
2144
|
+
return Object.keys(h.value).sort();
|
|
2145
2145
|
},
|
|
2146
2146
|
messages: V,
|
|
2147
2147
|
get modifiers() {
|
|
@@ -2172,10 +2172,10 @@ function er(e = {}) {
|
|
|
2172
2172
|
F = p;
|
|
2173
2173
|
},
|
|
2174
2174
|
get fallbackFormat() {
|
|
2175
|
-
return
|
|
2175
|
+
return k;
|
|
2176
2176
|
},
|
|
2177
2177
|
set fallbackFormat(p) {
|
|
2178
|
-
|
|
2178
|
+
k = p, i.fallbackFormat = k;
|
|
2179
2179
|
},
|
|
2180
2180
|
get warnHtmlMessage() {
|
|
2181
2181
|
return y;
|
|
@@ -2190,16 +2190,16 @@ function er(e = {}) {
|
|
|
2190
2190
|
u = p, i.escapeParameter = p;
|
|
2191
2191
|
},
|
|
2192
2192
|
t: j,
|
|
2193
|
-
getLocaleMessage:
|
|
2193
|
+
getLocaleMessage: Ge,
|
|
2194
2194
|
setLocaleMessage: We,
|
|
2195
|
-
mergeLocaleMessage:
|
|
2196
|
-
getPostTranslationHandler:
|
|
2195
|
+
mergeLocaleMessage: Ke,
|
|
2196
|
+
getPostTranslationHandler: A,
|
|
2197
2197
|
setPostTranslationHandler: R,
|
|
2198
2198
|
getMissingHandler: M,
|
|
2199
|
-
setMissingHandler:
|
|
2199
|
+
setMissingHandler: K,
|
|
2200
2200
|
[za]: vt
|
|
2201
2201
|
};
|
|
2202
|
-
return
|
|
2202
|
+
return G.datetimeFormats = z, G.numberFormats = W, G.rt = se, G.te = Et, G.tm = ze, G.d = Q, G.n = ge, G.getDateTimeFormat = Nt, G.setDateTimeFormat = r, G.mergeDateTimeFormat = o, G.getNumberFormat = b, G.setNumberFormat = w, G.mergeNumberFormat = ae, G[Gn] = n, G[Vt] = ve, G[Ut] = Je, G[Gt] = $e, G;
|
|
2203
2203
|
}
|
|
2204
2204
|
const zt = {
|
|
2205
2205
|
tag: {
|
|
@@ -2229,7 +2229,7 @@ function tr({ slots: e }, t) {
|
|
|
2229
2229
|
return l && (n[s] = l()), n;
|
|
2230
2230
|
}, B());
|
|
2231
2231
|
}
|
|
2232
|
-
function
|
|
2232
|
+
function Xn() {
|
|
2233
2233
|
return ye;
|
|
2234
2234
|
}
|
|
2235
2235
|
ue({
|
|
@@ -2243,22 +2243,22 @@ ue({
|
|
|
2243
2243
|
}
|
|
2244
2244
|
}, zt);
|
|
2245
2245
|
function nr(e) {
|
|
2246
|
-
return oe(e) && !
|
|
2246
|
+
return oe(e) && !C(e[0]);
|
|
2247
2247
|
}
|
|
2248
|
-
function
|
|
2248
|
+
function Yn(e, t, n, s) {
|
|
2249
2249
|
const { slots: l, attrs: a } = t;
|
|
2250
2250
|
return () => {
|
|
2251
2251
|
const m = { part: !0 };
|
|
2252
2252
|
let f = B();
|
|
2253
|
-
e.locale && (m.locale = e.locale),
|
|
2253
|
+
e.locale && (m.locale = e.locale), C(e.format) ? m.key = e.format : Y(e.format) && (C(e.format.key) && (m.key = e.format.key), f = Object.keys(e.format).reduce((N, S) => n.includes(S) ? ue(B(), N, { [S]: e.format[S] }) : N, B()));
|
|
2254
2254
|
const d = s(e.value, m, f);
|
|
2255
|
-
let
|
|
2256
|
-
oe(d) ?
|
|
2257
|
-
const F = l[N.type],
|
|
2258
|
-
return nr(
|
|
2259
|
-
}) :
|
|
2260
|
-
const
|
|
2261
|
-
return Rn(L,
|
|
2255
|
+
let h = [m.key];
|
|
2256
|
+
oe(d) ? h = d.map((N, S) => {
|
|
2257
|
+
const F = l[N.type], k = F ? F({ [N.type]: N.value, index: S, parts: d }) : [N.value];
|
|
2258
|
+
return nr(k) && (k[0].key = `${N.type}-${S}`), k;
|
|
2259
|
+
}) : C(d) && (h = [d]);
|
|
2260
|
+
const T = ue(B(), a), L = C(e.tag) || Y(e.tag) ? e.tag : Xn();
|
|
2261
|
+
return Rn(L, T, h);
|
|
2262
2262
|
};
|
|
2263
2263
|
}
|
|
2264
2264
|
ue({
|
|
@@ -2279,7 +2279,7 @@ ue({
|
|
|
2279
2279
|
type: [String, Object]
|
|
2280
2280
|
}
|
|
2281
2281
|
}, zt);
|
|
2282
|
-
const sr = /* @__PURE__ */
|
|
2282
|
+
const sr = /* @__PURE__ */ Ue("global-vue-i18n");
|
|
2283
2283
|
function gt(e = {}) {
|
|
2284
2284
|
const t = xt();
|
|
2285
2285
|
if (t == null)
|
|
@@ -2288,7 +2288,7 @@ function gt(e = {}) {
|
|
|
2288
2288
|
throw nt(Be.NOT_INSTALLED);
|
|
2289
2289
|
const n = ar(t), s = lr(n), l = xn(t), a = rr(e, l);
|
|
2290
2290
|
if (a === "global")
|
|
2291
|
-
return
|
|
2291
|
+
return Ka(s, e, l), s;
|
|
2292
2292
|
if (a === "parent") {
|
|
2293
2293
|
let d = or(n, t, e.__useComponent);
|
|
2294
2294
|
return d == null && (d = s), d;
|
|
@@ -2323,7 +2323,7 @@ function or(e, t, n = !1) {
|
|
|
2323
2323
|
s = m.__getInstance(a);
|
|
2324
2324
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
2325
2325
|
const f = m.__getInstance(a);
|
|
2326
|
-
f != null && (s = f.__composer, n && s && !s[
|
|
2326
|
+
f != null && (s = f.__composer, n && s && !s[Gn] && (s = null));
|
|
2327
2327
|
}
|
|
2328
2328
|
if (s != null || l === a)
|
|
2329
2329
|
break;
|
|
@@ -2335,7 +2335,7 @@ function ir(e, t = !1) {
|
|
|
2335
2335
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2336
2336
|
}
|
|
2337
2337
|
function cr(e, t, n) {
|
|
2338
|
-
|
|
2338
|
+
Xt(() => {
|
|
2339
2339
|
}, t), On(() => {
|
|
2340
2340
|
const s = n;
|
|
2341
2341
|
e.__deleteInstance(t);
|
|
@@ -2346,7 +2346,7 @@ function cr(e, t, n) {
|
|
|
2346
2346
|
Ja();
|
|
2347
2347
|
La(oa);
|
|
2348
2348
|
Oa(ya);
|
|
2349
|
-
Ra(
|
|
2349
|
+
Ra(Cn);
|
|
2350
2350
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2351
2351
|
const e = je();
|
|
2352
2352
|
e.__INTLIFY__ = !0, ia(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
@@ -2362,16 +2362,16 @@ const it = /* @__PURE__ */ Ie({
|
|
|
2362
2362
|
setup(e) {
|
|
2363
2363
|
const { t } = gt();
|
|
2364
2364
|
return (n, s) => {
|
|
2365
|
-
const l =
|
|
2365
|
+
const l = Ye("FmIcon"), a = Ye("FmTooltip");
|
|
2366
2366
|
return x(), Se(a, {
|
|
2367
2367
|
variant: "plain",
|
|
2368
2368
|
placement: "right",
|
|
2369
2369
|
"z-index": 50
|
|
2370
2370
|
}, {
|
|
2371
2371
|
content: pe(() => [
|
|
2372
|
-
te("div", null,
|
|
2372
|
+
te("div", null, Ce(Te(t)("team.memberForm.permissions.inherited")), 1),
|
|
2373
2373
|
(x(!0), ee(ye, null, _e(e.item.setNames, (m) => (x(), ee("div", { key: m }, [
|
|
2374
|
-
te("div", null, "- " +
|
|
2374
|
+
te("div", null, "- " + Ce(m), 1)
|
|
2375
2375
|
]))), 128))
|
|
2376
2376
|
]),
|
|
2377
2377
|
default: pe(() => [
|
|
@@ -2410,17 +2410,17 @@ const it = /* @__PURE__ */ Ie({
|
|
|
2410
2410
|
setup(e) {
|
|
2411
2411
|
const t = e;
|
|
2412
2412
|
return (n, s) => (x(), ee("div", ur, [
|
|
2413
|
-
|
|
2413
|
+
he(n.$slots, "top", {}, () => [
|
|
2414
2414
|
t.title ? (x(), ee("div", mr, [
|
|
2415
2415
|
te("div", null, [
|
|
2416
2416
|
t.required ? (x(), ee("span", dr, "*")) : Le("", !0),
|
|
2417
|
-
Jn(
|
|
2417
|
+
Jn(Ce(t.title), 1)
|
|
2418
2418
|
]),
|
|
2419
|
-
|
|
2419
|
+
he(n.$slots, "title-right")
|
|
2420
2420
|
])) : Le("", !0)
|
|
2421
2421
|
]),
|
|
2422
2422
|
te("div", fr, [
|
|
2423
|
-
|
|
2423
|
+
he(n.$slots, "default")
|
|
2424
2424
|
])
|
|
2425
2425
|
]));
|
|
2426
2426
|
}
|
|
@@ -2432,10 +2432,10 @@ function pr(e, t) {
|
|
|
2432
2432
|
n += s.charAt(Math.floor(Math.random() * l));
|
|
2433
2433
|
return n;
|
|
2434
2434
|
}
|
|
2435
|
-
const
|
|
2435
|
+
const hr = { class: "col flex items-center" }, br = {
|
|
2436
2436
|
key: 1,
|
|
2437
2437
|
class: "q-pa-sm form-error-message text-error"
|
|
2438
|
-
},
|
|
2438
|
+
}, Kt = /* @__PURE__ */ Ie({
|
|
2439
2439
|
__name: "CheckboxInput",
|
|
2440
2440
|
props: {
|
|
2441
2441
|
options: {
|
|
@@ -2493,33 +2493,33 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
2493
2493
|
},
|
|
2494
2494
|
emits: ["update:model-value"],
|
|
2495
2495
|
setup(e, { emit: t }) {
|
|
2496
|
-
const n = e, s = t, { t: l } = _t(), a = Ve(!1), m = zn(), f = J(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), d = `checkbox-${pr(6)}`,
|
|
2497
|
-
() => n.modelValue.filter((
|
|
2496
|
+
const n = e, s = t, { t: l } = _t(), a = Ve(!1), m = zn(), f = J(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), d = `checkbox-${pr(6)}`, h = J(() => f.value !== !0), T = J(
|
|
2497
|
+
() => n.modelValue.filter((k) => n.options.some((O) => O.value === k))
|
|
2498
2498
|
), L = J(
|
|
2499
2499
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2500
|
-
), N = J(() => n.options.length > 0 && n.options.length ===
|
|
2500
|
+
), N = J(() => n.options.length > 0 && n.options.length === T.value.length);
|
|
2501
2501
|
function S() {
|
|
2502
|
-
const
|
|
2502
|
+
const k = n.modelValue.filter((O) => !T.value.includes(O));
|
|
2503
2503
|
if (N.value === !0)
|
|
2504
|
-
s("update:model-value",
|
|
2504
|
+
s("update:model-value", k);
|
|
2505
2505
|
else {
|
|
2506
2506
|
const O = n.includeDisabledOptionsWhenSelectAll ? n.options.map((c) => c.value) : n.options.filter((c) => !c.disabled).map((c) => c.value);
|
|
2507
|
-
s("update:model-value", [...
|
|
2507
|
+
s("update:model-value", [...k, ...O]);
|
|
2508
2508
|
}
|
|
2509
2509
|
}
|
|
2510
|
-
function F(
|
|
2510
|
+
function F(k, O) {
|
|
2511
2511
|
let c = ut(n.modelValue);
|
|
2512
|
-
O ? c.every((_) => _ !==
|
|
2512
|
+
O ? c.every((_) => _ !== k) && c.push(k) : c = c.filter((_) => _ !== k), s("update:model-value", c);
|
|
2513
2513
|
}
|
|
2514
|
-
return (
|
|
2515
|
-
const c =
|
|
2514
|
+
return (k, O) => {
|
|
2515
|
+
const c = Ye("FmCheckbox");
|
|
2516
2516
|
return x(), Se(_r, {
|
|
2517
2517
|
id: d,
|
|
2518
2518
|
title: e.title,
|
|
2519
2519
|
required: !1
|
|
2520
2520
|
}, {
|
|
2521
2521
|
top: pe(() => [
|
|
2522
|
-
|
|
2522
|
+
he(k.$slots, "top")
|
|
2523
2523
|
]),
|
|
2524
2524
|
default: pe(() => [
|
|
2525
2525
|
n.showAllToggle ? (x(), Se(c, {
|
|
@@ -2541,7 +2541,7 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
2541
2541
|
te("div", {
|
|
2542
2542
|
class: qe(["row justify-between", e.alignCenter ? "items-center" : "items-start"])
|
|
2543
2543
|
}, [
|
|
2544
|
-
te("div",
|
|
2544
|
+
te("div", hr, [
|
|
2545
2545
|
de(c, {
|
|
2546
2546
|
"model-value": e.modelValue.includes(_.value),
|
|
2547
2547
|
disabled: e.disable || _.disabled,
|
|
@@ -2550,35 +2550,35 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
2550
2550
|
value: _.label,
|
|
2551
2551
|
"onUpdate:modelValue": (u) => F(_.value, u)
|
|
2552
2552
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
2553
|
-
|
|
2553
|
+
he(k.$slots, `checkbox-${_.key || _.value}-append`, {
|
|
2554
2554
|
option: _,
|
|
2555
2555
|
selected: e.modelValue.includes(_.value)
|
|
2556
2556
|
})
|
|
2557
2557
|
]),
|
|
2558
|
-
|
|
2558
|
+
Te(m)[`checkbox-${_.key || _.value}-end`] && (e.modelValue.includes(_.value) || e.falsyShowSlot) ? (x(), ee("div", {
|
|
2559
2559
|
key: 0,
|
|
2560
2560
|
class: qe([{ "q-checkbox disabled": e.disable || _.disabled }, "col"])
|
|
2561
2561
|
}, [
|
|
2562
|
-
|
|
2562
|
+
he(k.$slots, `checkbox-${_.key || _.value}-end`, {
|
|
2563
2563
|
option: _,
|
|
2564
2564
|
value: e.modelValue.includes(_.value),
|
|
2565
2565
|
disable: e.disable || _.disabled
|
|
2566
2566
|
})
|
|
2567
2567
|
], 2)) : Le("", !0)
|
|
2568
2568
|
], 2),
|
|
2569
|
-
|
|
2569
|
+
Te(m)[`checkbox-${_.key || _.value}-bottom`] && (e.modelValue.includes(_.value) || e.falsyShowSlot) ? (x(), ee("div", {
|
|
2570
2570
|
key: 0,
|
|
2571
2571
|
class: qe(["q-mt-sm", { "q-checkbox disabled": e.disable || _.disabled }]),
|
|
2572
2572
|
style: ct(`margin-left: ${e.bottomSlotIndent}`)
|
|
2573
2573
|
}, [
|
|
2574
|
-
|
|
2574
|
+
he(k.$slots, `checkbox-${_.key || _.value}-bottom`, {
|
|
2575
2575
|
option: _,
|
|
2576
2576
|
disable: e.disable || _.disabled,
|
|
2577
2577
|
value: e.modelValue.includes(_.value)
|
|
2578
2578
|
})
|
|
2579
2579
|
], 6)) : Le("", !0)
|
|
2580
2580
|
], 6))), 128)),
|
|
2581
|
-
a.value &&
|
|
2581
|
+
a.value && h.value ? (x(), ee("div", br, Ce(f.value), 1)) : Le("", !0)
|
|
2582
2582
|
]),
|
|
2583
2583
|
_: 3
|
|
2584
2584
|
}, 8, ["title"]);
|
|
@@ -2587,10 +2587,10 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
2587
2587
|
}), gr = { class: "flex flex-col gap-16" }, vr = {
|
|
2588
2588
|
key: 1,
|
|
2589
2589
|
class: "space-y-16"
|
|
2590
|
-
}, Er = { class: "flex items-end justify-between" }, Ir = { class: "fm-typo-en-title-sm-600" }, Nr = { class: "flex" }, yr = { class: "form-input" },
|
|
2590
|
+
}, Er = { class: "flex items-end justify-between" }, Ir = { class: "fm-typo-en-title-sm-600" }, Nr = { class: "flex" }, yr = { class: "form-input" }, Tr = { class: "flex items-center justify-between q-mb-xs" }, kr = { class: "flex items-center justify-between gap-4" }, Lr = { class: "flex items-center min-w-0 flex-1 gap-8" }, Or = ["title", "onClick"], Rr = {
|
|
2591
2591
|
key: 0,
|
|
2592
2592
|
class: "flex shrink-0"
|
|
2593
|
-
},
|
|
2593
|
+
}, Ar = /* @__PURE__ */ Ie({
|
|
2594
2594
|
__name: "BasePermission",
|
|
2595
2595
|
props: {
|
|
2596
2596
|
modelValue: {
|
|
@@ -2624,28 +2624,28 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
2624
2624
|
}).map((i) => {
|
|
2625
2625
|
const I = u.get(i), P = /* @__PURE__ */ new Map();
|
|
2626
2626
|
for (const W of I) {
|
|
2627
|
-
const
|
|
2628
|
-
|
|
2627
|
+
const A = g.get(W.value);
|
|
2628
|
+
A && P.set(W.value, A.actions);
|
|
2629
2629
|
}
|
|
2630
2630
|
const D = I.some((W) => {
|
|
2631
|
-
const
|
|
2632
|
-
return
|
|
2633
|
-
}),
|
|
2631
|
+
const A = P.get(W.value);
|
|
2632
|
+
return A && A.length > 1;
|
|
2633
|
+
}), Z = D ? [
|
|
2634
2634
|
...new Set(
|
|
2635
2635
|
I.flatMap((W) => P.get(W.value) ?? []).filter((W) => W !== "manage")
|
|
2636
2636
|
)
|
|
2637
2637
|
] : [], V = /* @__PURE__ */ new Map();
|
|
2638
2638
|
for (const W of s.modelValue)
|
|
2639
|
-
I.some((
|
|
2639
|
+
I.some((A) => A.value === W.subject) && !W.inverted && V.set(W.subject, new Set(W.actions));
|
|
2640
2640
|
const z = D ? s.modelValue.filter(
|
|
2641
|
-
(W) => I.some((
|
|
2642
|
-
).map((W) => W.subject) : s.modelValue.filter((W) => I.some((
|
|
2641
|
+
(W) => I.some((A) => A.value === W.subject) && !W.inverted && W.actions.includes("manage")
|
|
2642
|
+
).map((W) => W.subject) : s.modelValue.filter((W) => I.some((A) => A.value === W.subject) && !W.inverted).map((W) => W.subject);
|
|
2643
2643
|
return {
|
|
2644
2644
|
category: i,
|
|
2645
2645
|
options: I,
|
|
2646
2646
|
selectedSubjects: z,
|
|
2647
2647
|
isMultiAction: D,
|
|
2648
|
-
actionColumns:
|
|
2648
|
+
actionColumns: Z,
|
|
2649
2649
|
permissionActionsMap: P,
|
|
2650
2650
|
selectedActionsMap: V
|
|
2651
2651
|
};
|
|
@@ -2659,14 +2659,14 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
2659
2659
|
...l.value.filter((I) => g.includes(I.subject)).map(({ category: I, showByFeatureFlag: P, ...D }) => D)
|
|
2660
2660
|
]);
|
|
2661
2661
|
}
|
|
2662
|
-
function
|
|
2662
|
+
function h(u) {
|
|
2663
2663
|
return u.options.length > 0 && u.options.every((g) => u.selectedSubjects.includes(g.value));
|
|
2664
2664
|
}
|
|
2665
|
-
function
|
|
2665
|
+
function T(u) {
|
|
2666
2666
|
const g = s.modelValue.filter(
|
|
2667
2667
|
(v) => !u.options.some((i) => i.value === v.subject)
|
|
2668
2668
|
);
|
|
2669
|
-
if (
|
|
2669
|
+
if (h(u))
|
|
2670
2670
|
a("update:model-value", g);
|
|
2671
2671
|
else {
|
|
2672
2672
|
const v = l.value.filter((i) => u.options.some((I) => I.value === i.subject)).map(({ category: i, showByFeatureFlag: I, ...P }) => P);
|
|
@@ -2691,8 +2691,8 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
2691
2691
|
if (v) {
|
|
2692
2692
|
const i = l.value.find((V) => V.subject === g);
|
|
2693
2693
|
if (!i) return;
|
|
2694
|
-
const { category: I, showByFeatureFlag: P, ...D } = i,
|
|
2695
|
-
|
|
2694
|
+
const { category: I, showByFeatureFlag: P, ...D } = i, Z = s.modelValue.filter((V) => V.subject !== g);
|
|
2695
|
+
Z.push(D), a("update:model-value", Z);
|
|
2696
2696
|
} else
|
|
2697
2697
|
a(
|
|
2698
2698
|
"update:model-value",
|
|
@@ -2703,7 +2703,7 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
2703
2703
|
const v = u.permissionActionsMap.get(g);
|
|
2704
2704
|
return v ? v.some((i) => i !== "manage") : !1;
|
|
2705
2705
|
}
|
|
2706
|
-
function
|
|
2706
|
+
function k(u, g, v) {
|
|
2707
2707
|
const i = u.selectedActionsMap.get(g);
|
|
2708
2708
|
return i ? i.has(v) : !1;
|
|
2709
2709
|
}
|
|
@@ -2715,25 +2715,25 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
2715
2715
|
const i = [...s.modelValue], I = i.findIndex((D) => D.subject === u && !D.inverted);
|
|
2716
2716
|
if (v)
|
|
2717
2717
|
if (I >= 0) {
|
|
2718
|
-
const D = { ...i[I] },
|
|
2719
|
-
|
|
2718
|
+
const D = { ...i[I] }, Z = new Set(D.actions);
|
|
2719
|
+
Z.add(g), D.actions = Array.from(Z), i[I] = D;
|
|
2720
2720
|
} else {
|
|
2721
2721
|
const D = l.value.find((W) => W.subject === u);
|
|
2722
2722
|
if (!D) return;
|
|
2723
|
-
const { category:
|
|
2723
|
+
const { category: Z, showByFeatureFlag: V, ...z } = D;
|
|
2724
2724
|
i.push({ ...z, actions: [g] });
|
|
2725
2725
|
}
|
|
2726
2726
|
else if (I >= 0) {
|
|
2727
|
-
const D = { ...i[I] },
|
|
2728
|
-
|
|
2727
|
+
const D = { ...i[I] }, Z = D.actions.filter((V) => V !== g);
|
|
2728
|
+
Z.length === 0 ? i.splice(I, 1) : (D.actions = Z, i[I] = D);
|
|
2729
2729
|
}
|
|
2730
2730
|
const P = l.value.find((D) => D.subject === u);
|
|
2731
2731
|
if (P) {
|
|
2732
|
-
const
|
|
2733
|
-
if (
|
|
2732
|
+
const Z = P.actions.filter((V) => V !== "manage");
|
|
2733
|
+
if (Z.length > 0) {
|
|
2734
2734
|
const V = i.findIndex((z) => z.subject === u && !z.inverted);
|
|
2735
2735
|
if (V >= 0) {
|
|
2736
|
-
const z = new Set(i[V].actions), W =
|
|
2736
|
+
const z = new Set(i[V].actions), W = Z.every((A) => z.has(A));
|
|
2737
2737
|
W && !z.has("manage") ? (z.add("manage"), i[V] = {
|
|
2738
2738
|
...i[V],
|
|
2739
2739
|
actions: Array.from(z)
|
|
@@ -2748,44 +2748,45 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
2748
2748
|
}
|
|
2749
2749
|
const _ = {
|
|
2750
2750
|
read: "View",
|
|
2751
|
-
create: "Duplicate"
|
|
2751
|
+
create: "Duplicate",
|
|
2752
|
+
update: "Edit"
|
|
2752
2753
|
};
|
|
2753
2754
|
function y(u) {
|
|
2754
2755
|
return _[u] ?? u.charAt(0).toUpperCase() + u.slice(1);
|
|
2755
2756
|
}
|
|
2756
2757
|
return (u, g) => {
|
|
2757
|
-
const v =
|
|
2758
|
+
const v = Ye("FmCheckbox");
|
|
2758
2759
|
return x(), ee("div", gr, [
|
|
2759
2760
|
(x(!0), ee(ye, null, _e(f.value, (i) => (x(), ee(ye, {
|
|
2760
2761
|
key: i.category
|
|
2761
2762
|
}, [
|
|
2762
2763
|
i.isMultiAction ? (x(), ee("div", vr, [
|
|
2763
2764
|
te("div", Er, [
|
|
2764
|
-
te("div", Ir,
|
|
2765
|
+
te("div", Ir, Ce(i.category), 1),
|
|
2765
2766
|
te("div", Nr, [
|
|
2766
2767
|
(x(!0), ee(ye, null, _e(i.actionColumns, (I) => (x(), ee("span", {
|
|
2767
2768
|
key: I,
|
|
2768
2769
|
class: "w-[56px] text-center fm-typo-en-body-sm-400 text-fm-color-neutral-gray-600"
|
|
2769
|
-
},
|
|
2770
|
+
}, Ce(y(I)), 1))), 128))
|
|
2770
2771
|
])
|
|
2771
2772
|
]),
|
|
2772
2773
|
te("div", yr, [
|
|
2773
|
-
te("div",
|
|
2774
|
+
te("div", Tr, [
|
|
2774
2775
|
de(v, {
|
|
2775
|
-
"model-value":
|
|
2776
|
+
"model-value": h(i),
|
|
2776
2777
|
value: !0,
|
|
2777
2778
|
disabled: e.disable,
|
|
2778
2779
|
label: "All",
|
|
2779
2780
|
size: "sm",
|
|
2780
2781
|
dense: "",
|
|
2781
|
-
"onUpdate:modelValue": (I) =>
|
|
2782
|
+
"onUpdate:modelValue": (I) => T(i)
|
|
2782
2783
|
}, null, 8, ["model-value", "disabled", "onUpdate:modelValue"])
|
|
2783
2784
|
]),
|
|
2784
2785
|
(x(!0), ee(ye, null, _e(i.options, (I, P) => (x(), ee("div", {
|
|
2785
2786
|
key: I.value,
|
|
2786
2787
|
class: qe(P < i.options.length - 1 ? "q-mb-xs" : "")
|
|
2787
2788
|
}, [
|
|
2788
|
-
te("div",
|
|
2789
|
+
te("div", kr, [
|
|
2789
2790
|
te("div", Lr, [
|
|
2790
2791
|
de(v, {
|
|
2791
2792
|
"model-value": L(i, I.value),
|
|
@@ -2800,8 +2801,8 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
2800
2801
|
class: "block truncate cursor-pointer",
|
|
2801
2802
|
title: I.label,
|
|
2802
2803
|
onClick: (D) => !e.disable && S(i, I.value, !L(i, I.value))
|
|
2803
|
-
},
|
|
2804
|
-
|
|
2804
|
+
}, Ce(I.label), 9, Or),
|
|
2805
|
+
he(u.$slots, `checkbox-${I.value}-append`, { option: I })
|
|
2805
2806
|
]),
|
|
2806
2807
|
F(i, I.value) ? (x(), ee("div", Rr, [
|
|
2807
2808
|
(x(!0), ee(ye, null, _e(i.actionColumns, (D) => (x(), ee("div", {
|
|
@@ -2810,18 +2811,18 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
2810
2811
|
}, [
|
|
2811
2812
|
O(i, I.value, D) ? (x(), Se(v, {
|
|
2812
2813
|
key: 0,
|
|
2813
|
-
"model-value":
|
|
2814
|
+
"model-value": k(i, I.value, D),
|
|
2814
2815
|
value: D,
|
|
2815
2816
|
disabled: e.disable,
|
|
2816
2817
|
size: "sm",
|
|
2817
|
-
"onUpdate:modelValue": (
|
|
2818
|
+
"onUpdate:modelValue": (Z) => c(I.value, D, Z)
|
|
2818
2819
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Le("", !0)
|
|
2819
2820
|
]))), 128))
|
|
2820
2821
|
])) : Le("", !0)
|
|
2821
2822
|
])
|
|
2822
2823
|
], 2))), 128))
|
|
2823
2824
|
])
|
|
2824
|
-
])) : (x(), Se(
|
|
2825
|
+
])) : (x(), Se(Kt, {
|
|
2825
2826
|
key: 0,
|
|
2826
2827
|
"model-value": i.selectedSubjects,
|
|
2827
2828
|
options: i.options,
|
|
@@ -2832,7 +2833,7 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
2832
2833
|
_e(i.options, (I) => ({
|
|
2833
2834
|
name: `checkbox-${I.value}-append`,
|
|
2834
2835
|
fn: pe(({ option: P }) => [
|
|
2835
|
-
|
|
2836
|
+
he(u.$slots, `checkbox-${I.value}-append`, { option: P })
|
|
2836
2837
|
])
|
|
2837
2838
|
}))
|
|
2838
2839
|
]), 1032, ["model-value", "options", "disable", "title", "onUpdate:modelValue"]))
|
|
@@ -2840,7 +2841,7 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
2840
2841
|
]);
|
|
2841
2842
|
};
|
|
2842
2843
|
}
|
|
2843
|
-
}),
|
|
2844
|
+
}), Cr = { class: "flex items-center" }, Sr = { class: "ml-auto" }, Dr = /* @__PURE__ */ Ie({
|
|
2844
2845
|
__name: "CollapsibleWrapper",
|
|
2845
2846
|
props: {
|
|
2846
2847
|
title: { default: "" },
|
|
@@ -2855,20 +2856,20 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
2855
2856
|
function f() {
|
|
2856
2857
|
s.value && (l.value = s.value.scrollHeight);
|
|
2857
2858
|
}
|
|
2858
|
-
return
|
|
2859
|
-
await
|
|
2859
|
+
return Xt(async () => {
|
|
2860
|
+
await Kn(), s.value && (a = new ResizeObserver(() => {
|
|
2860
2861
|
f();
|
|
2861
2862
|
}), a.observe(s.value));
|
|
2862
2863
|
}), On(() => {
|
|
2863
2864
|
a == null || a.disconnect();
|
|
2864
|
-
}), (d,
|
|
2865
|
-
const
|
|
2865
|
+
}), (d, h) => {
|
|
2866
|
+
const T = Ye("FmButton");
|
|
2866
2867
|
return x(), ee(ye, null, [
|
|
2867
2868
|
te("div", { onClick: m }, [
|
|
2868
|
-
te("div",
|
|
2869
|
-
|
|
2869
|
+
te("div", Cr, [
|
|
2870
|
+
he(d.$slots, "title"),
|
|
2870
2871
|
te("div", Sr, [
|
|
2871
|
-
de(
|
|
2872
|
+
de(T, {
|
|
2872
2873
|
icon: n.value ? "keyboard_arrow_down" : "keyboard_arrow_up",
|
|
2873
2874
|
"text-color": "neutral-gray-400",
|
|
2874
2875
|
variant: "tertiary",
|
|
@@ -2883,12 +2884,12 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
2883
2884
|
class: "transition-all duration-300 ease-in-out overflow-hidden",
|
|
2884
2885
|
style: ct({ maxHeight: n.value ? "0" : l.value + "px" })
|
|
2885
2886
|
}, [
|
|
2886
|
-
|
|
2887
|
+
he(d.$slots, "default")
|
|
2887
2888
|
], 4)
|
|
2888
2889
|
], 64);
|
|
2889
2890
|
};
|
|
2890
2891
|
}
|
|
2891
|
-
}), Mr = { class: "fm-typo-en-title-sm-600" },
|
|
2892
|
+
}), Mr = { class: "fm-typo-en-title-sm-600" }, At = "includedFuture", Ln = /* @__PURE__ */ Ie({
|
|
2892
2893
|
__name: "ConditionPermission",
|
|
2893
2894
|
props: {
|
|
2894
2895
|
modelValue: {
|
|
@@ -2913,34 +2914,34 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
2913
2914
|
const n = e, s = t, { t: l } = _t(), a = J(() => [
|
|
2914
2915
|
{
|
|
2915
2916
|
label: l("team.memberForm.permissions.includedFuture", { context: n.context }),
|
|
2916
|
-
value:
|
|
2917
|
+
value: At,
|
|
2917
2918
|
// Can only be selected if all other options are selected
|
|
2918
2919
|
disable: !!n.modelValue && n.options.length > n.modelValue.length
|
|
2919
2920
|
},
|
|
2920
2921
|
...n.options.filter(
|
|
2921
|
-
(
|
|
2922
|
+
(h) => h.label.toLocaleLowerCase().includes(d.value.toLocaleLowerCase())
|
|
2922
2923
|
)
|
|
2923
|
-
]), m = J(() => n.modelValue ? n.modelValue : [
|
|
2924
|
-
function f(
|
|
2925
|
-
const
|
|
2926
|
-
s("update:model-value",
|
|
2924
|
+
]), m = J(() => n.modelValue ? n.modelValue : [At, ...n.options.map((h) => h.value)]);
|
|
2925
|
+
function f(h) {
|
|
2926
|
+
const T = h.length === a.value.length;
|
|
2927
|
+
s("update:model-value", T ? null : h.filter((L) => L !== At));
|
|
2927
2928
|
}
|
|
2928
2929
|
const d = Ve("");
|
|
2929
|
-
return (
|
|
2930
|
-
const L =
|
|
2930
|
+
return (h, T) => {
|
|
2931
|
+
const L = Ye("fm-search");
|
|
2931
2932
|
return x(), Se(Dr, null, {
|
|
2932
2933
|
title: pe(() => [
|
|
2933
|
-
te("p", Mr,
|
|
2934
|
+
te("p", Mr, Ce(Te(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
2934
2935
|
]),
|
|
2935
2936
|
default: pe(() => [
|
|
2936
2937
|
e.options.length > 1 ? (x(), Se(L, {
|
|
2937
2938
|
key: 0,
|
|
2938
2939
|
modelValue: d.value,
|
|
2939
|
-
"onUpdate:modelValue":
|
|
2940
|
+
"onUpdate:modelValue": T[0] || (T[0] = (N) => d.value = N),
|
|
2940
2941
|
class: "mt-16",
|
|
2941
|
-
placeholder:
|
|
2942
|
+
placeholder: Te(l)("team.memberForm.permissions.search", { context: e.context })
|
|
2942
2943
|
}, null, 8, ["modelValue", "placeholder"])) : Le("", !0),
|
|
2943
|
-
de(
|
|
2944
|
+
de(Kt, {
|
|
2944
2945
|
"model-value": m.value,
|
|
2945
2946
|
options: a.value,
|
|
2946
2947
|
"show-intermediate": !1,
|
|
@@ -2954,7 +2955,7 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
2954
2955
|
_e(a.value, (N) => ({
|
|
2955
2956
|
name: `checkbox-${N.value}-append`,
|
|
2956
2957
|
fn: pe(({ option: S }) => [
|
|
2957
|
-
|
|
2958
|
+
he(h.$slots, `checkbox-${N.value}-append`, { option: S })
|
|
2958
2959
|
])
|
|
2959
2960
|
}))
|
|
2960
2961
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -2963,7 +2964,7 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
2963
2964
|
});
|
|
2964
2965
|
};
|
|
2965
2966
|
}
|
|
2966
|
-
}),
|
|
2967
|
+
}), Ct = "includedNewRole", wr = /* @__PURE__ */ Ie({
|
|
2967
2968
|
__name: "PosRolePermission",
|
|
2968
2969
|
props: {
|
|
2969
2970
|
modelValue: {
|
|
@@ -2990,33 +2991,33 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
2990
2991
|
return [
|
|
2991
2992
|
{
|
|
2992
2993
|
label: l("team.memberForm.permissions.includedNewRole"),
|
|
2993
|
-
value:
|
|
2994
|
+
value: Ct,
|
|
2994
2995
|
disable: !!n.modelValue && n.roles.length > n.modelValue.length
|
|
2995
2996
|
},
|
|
2996
|
-
...n.roles.map((
|
|
2997
|
-
label:
|
|
2998
|
-
value:
|
|
2999
|
-
disable: !!d &&
|
|
2997
|
+
...n.roles.map((h) => ({
|
|
2998
|
+
label: h.name,
|
|
2999
|
+
value: h._id,
|
|
3000
|
+
disable: !!d && h.restaurants.every(({ id: T }) => !d.includes(T))
|
|
3000
3001
|
}))
|
|
3001
3002
|
];
|
|
3002
|
-
}), m = J(() => n.modelValue ? n.modelValue : [
|
|
3003
|
+
}), m = J(() => n.modelValue ? n.modelValue : [Ct, ...n.roles.map((d) => d._id)]);
|
|
3003
3004
|
function f(d) {
|
|
3004
|
-
const
|
|
3005
|
-
s("update:model-value",
|
|
3005
|
+
const h = d.length === a.value.length;
|
|
3006
|
+
s("update:model-value", h ? null : d.filter((T) => T !== Ct));
|
|
3006
3007
|
}
|
|
3007
|
-
return (d,
|
|
3008
|
+
return (d, h) => (x(), Se(Kt, {
|
|
3008
3009
|
"model-value": m.value,
|
|
3009
3010
|
options: a.value,
|
|
3010
3011
|
"show-intermediate": !1,
|
|
3011
3012
|
"show-all-toggle": !1,
|
|
3012
3013
|
disable: e.disable,
|
|
3013
|
-
title:
|
|
3014
|
+
title: Te(l)("team.memberForm.permissions.roles"),
|
|
3014
3015
|
"onUpdate:modelValue": f
|
|
3015
3016
|
}, Fe({ _: 2 }, [
|
|
3016
|
-
_e(a.value, (
|
|
3017
|
-
name: `checkbox-${
|
|
3017
|
+
_e(a.value, (T) => ({
|
|
3018
|
+
name: `checkbox-${T.value}-append`,
|
|
3018
3019
|
fn: pe(({ option: L }) => [
|
|
3019
|
-
|
|
3020
|
+
he(d.$slots, `checkbox-${T.value}-append`, { option: L })
|
|
3020
3021
|
])
|
|
3021
3022
|
}))
|
|
3022
3023
|
]), 1032, ["model-value", "options", "disable", "title"]));
|
|
@@ -3025,9 +3026,9 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
3025
3026
|
async readWarehouses() {
|
|
3026
3027
|
return es(await ts().get("/warehouses"));
|
|
3027
3028
|
}
|
|
3028
|
-
}, Fr = { class: "flex flex-col gap-32" }, jr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Vr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" },
|
|
3029
|
+
}, Fr = { class: "flex flex-col gap-32" }, jr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Vr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Ur = { 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" }, Jr = /* @__PURE__ */ Ie({
|
|
3029
3030
|
__name: "PortalPermissionEditor",
|
|
3030
|
-
props: /* @__PURE__ */
|
|
3031
|
+
props: /* @__PURE__ */ Qt({
|
|
3031
3032
|
disable: {
|
|
3032
3033
|
type: Boolean,
|
|
3033
3034
|
default: !1
|
|
@@ -3040,54 +3041,54 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
3040
3041
|
modelValue: { default: () => [] },
|
|
3041
3042
|
modelModifiers: {}
|
|
3042
3043
|
}),
|
|
3043
|
-
emits: /* @__PURE__ */
|
|
3044
|
+
emits: /* @__PURE__ */ Qt(["permissionChanged"], ["update:modelValue"]),
|
|
3044
3045
|
setup(e, { emit: t }) {
|
|
3045
|
-
const n =
|
|
3046
|
-
function d(
|
|
3047
|
-
return Dt.find((R) => R.subject ===
|
|
3046
|
+
const n = Qn(e, "modelValue"), s = e, l = t, { t: a } = _t(), { fetchCustomReportPermissions: m, customReportPermissions: f } = ns();
|
|
3047
|
+
function d(A) {
|
|
3048
|
+
return Dt.find((R) => R.subject === A) ?? f.value.find((R) => R.subject === A);
|
|
3048
3049
|
}
|
|
3049
|
-
const
|
|
3050
|
-
const
|
|
3050
|
+
const h = J(() => {
|
|
3051
|
+
const A = Dt.filter((M) => !S.includes(M.subject)).map((M) => M.subject);
|
|
3051
3052
|
return ss(
|
|
3052
3053
|
s.inheritPermissions.map((M) => ({
|
|
3053
3054
|
...M,
|
|
3054
|
-
permissions: M.permissions.filter((
|
|
3055
|
+
permissions: M.permissions.filter((K) => A.includes(K.subject))
|
|
3055
3056
|
}))
|
|
3056
3057
|
).map((M) => ({
|
|
3057
3058
|
id: M.subject,
|
|
3058
3059
|
setNames: M.setNames
|
|
3059
3060
|
}));
|
|
3060
|
-
}),
|
|
3061
|
-
const
|
|
3061
|
+
}), T = J(() => {
|
|
3062
|
+
const A = s.inheritPermissions.map((R) => ({
|
|
3062
3063
|
...R,
|
|
3063
3064
|
permissions: R.permissions.filter(
|
|
3064
3065
|
(M) => M.subject === ie.Subject.Business.inventory_stock
|
|
3065
3066
|
)
|
|
3066
3067
|
}));
|
|
3067
3068
|
return yt(
|
|
3068
|
-
|
|
3069
|
+
A,
|
|
3069
3070
|
"warehouseId",
|
|
3070
|
-
|
|
3071
|
+
k.value.map((R) => R._id)
|
|
3071
3072
|
);
|
|
3072
3073
|
}), L = J(() => {
|
|
3073
|
-
const
|
|
3074
|
+
const A = s.inheritPermissions.map((R) => ({
|
|
3074
3075
|
...R,
|
|
3075
3076
|
permissions: R.permissions.filter(
|
|
3076
3077
|
(M) => M.subject === ie.Subject.Restaurant.restaurant
|
|
3077
3078
|
)
|
|
3078
3079
|
}));
|
|
3079
3080
|
return yt(
|
|
3080
|
-
|
|
3081
|
+
A,
|
|
3081
3082
|
"restaurantId",
|
|
3082
3083
|
y.value.map((R) => R._id)
|
|
3083
3084
|
);
|
|
3084
3085
|
}), N = J(() => {
|
|
3085
|
-
const
|
|
3086
|
+
const A = s.inheritPermissions.map((R) => ({
|
|
3086
3087
|
...R,
|
|
3087
3088
|
permissions: R.permissions.filter((M) => M.subject === ie.Subject.Business.role)
|
|
3088
3089
|
}));
|
|
3089
3090
|
return yt(
|
|
3090
|
-
|
|
3091
|
+
A,
|
|
3091
3092
|
"roleId",
|
|
3092
3093
|
u.value.map((R) => R._id)
|
|
3093
3094
|
);
|
|
@@ -3098,131 +3099,131 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
3098
3099
|
ie.Subject.Business.inventory_stock
|
|
3099
3100
|
], F = J(() => {
|
|
3100
3101
|
var R;
|
|
3101
|
-
const
|
|
3102
|
+
const A = (R = n.value) == null ? void 0 : R.find(
|
|
3102
3103
|
(M) => M.subject === ie.Subject.Business.inventory_stock
|
|
3103
3104
|
);
|
|
3104
|
-
return
|
|
3105
|
-
}),
|
|
3106
|
-
label:
|
|
3107
|
-
value:
|
|
3105
|
+
return A ? A.conditions ? JSON.parse(A.conditions).warehouseId.$in : null : [];
|
|
3106
|
+
}), k = Ve([]), O = J(() => k.value.map((A) => ({
|
|
3107
|
+
label: A.profile.name,
|
|
3108
|
+
value: A._id
|
|
3108
3109
|
})));
|
|
3109
|
-
function c(
|
|
3110
|
-
const R = _(n.value,
|
|
3110
|
+
function c(A) {
|
|
3111
|
+
const R = _(n.value, A);
|
|
3111
3112
|
n.value = R;
|
|
3112
3113
|
}
|
|
3113
|
-
function _(
|
|
3114
|
+
function _(A, R) {
|
|
3114
3115
|
let M = ut(
|
|
3115
|
-
|
|
3116
|
+
A.filter((K) => K.subject !== ie.Subject.Business.inventory_stock)
|
|
3116
3117
|
);
|
|
3117
3118
|
if (!R || R.length > 0) {
|
|
3118
|
-
const
|
|
3119
|
+
const K = {
|
|
3119
3120
|
actions: [ie.Action.manage],
|
|
3120
3121
|
subject: ie.Subject.Business.inventory_stock
|
|
3121
3122
|
};
|
|
3122
|
-
R && (
|
|
3123
|
+
R && (K.conditions = JSON.stringify({ warehouseId: { $in: R } })), M.push(K);
|
|
3123
3124
|
}
|
|
3124
3125
|
return M;
|
|
3125
3126
|
}
|
|
3126
|
-
const { restaurants: y } = qn(), u = cs().roles, g = J(() => y.value.map((
|
|
3127
|
-
label: `${
|
|
3128
|
-
value:
|
|
3129
|
-
}))), v = J(() => y.value.reduce((
|
|
3130
|
-
function I(
|
|
3131
|
-
const R = D(n.value,
|
|
3127
|
+
const { restaurants: y } = qn(), u = cs().roles, g = J(() => y.value.map((A) => ({
|
|
3128
|
+
label: `${A.profile.code ? A.profile.code + "-" : ""}${A.profile.name}`,
|
|
3129
|
+
value: A._id
|
|
3130
|
+
}))), v = J(() => y.value.reduce((A, R) => (A[R._id] = u.value.filter((M) => M.restaurants.some((K) => K.id === R._id)).map((M) => M._id), A), {})), i = J(() => as(n.value));
|
|
3131
|
+
function I(A) {
|
|
3132
|
+
const R = D(n.value, A);
|
|
3132
3133
|
n.value = R;
|
|
3133
3134
|
}
|
|
3134
3135
|
const P = J(() => rs(n.value));
|
|
3135
|
-
function D(
|
|
3136
|
-
var
|
|
3136
|
+
function D(A, R) {
|
|
3137
|
+
var K;
|
|
3137
3138
|
let M = ut(
|
|
3138
|
-
|
|
3139
|
-
(
|
|
3139
|
+
A.filter(
|
|
3140
|
+
(U) => U.subject !== ie.Subject.Business.restaurant && U.subject !== ie.Subject.Restaurant.restaurant
|
|
3140
3141
|
)
|
|
3141
3142
|
);
|
|
3142
3143
|
if (!R || R.length > 0) {
|
|
3143
3144
|
const {
|
|
3144
|
-
category:
|
|
3145
|
+
category: U,
|
|
3145
3146
|
showByFeatureFlag: j,
|
|
3146
3147
|
...se
|
|
3147
3148
|
} = os.restaurant;
|
|
3148
3149
|
M.push(se);
|
|
3149
|
-
const
|
|
3150
|
+
const Q = {
|
|
3150
3151
|
actions: [ie.Action.manage],
|
|
3151
3152
|
subject: ie.Subject.Restaurant.restaurant
|
|
3152
3153
|
};
|
|
3153
|
-
R && (
|
|
3154
|
+
R && (Q.conditions = JSON.stringify({ restaurantId: { $in: R } })), M.push(Q);
|
|
3154
3155
|
}
|
|
3155
3156
|
if (R) {
|
|
3156
|
-
const
|
|
3157
|
+
const U = [
|
|
3157
3158
|
...new Set(R.map((se) => v.value[se]).flatMap((se) => se))
|
|
3158
3159
|
], j = u.value.map((se) => se._id);
|
|
3159
|
-
|
|
3160
|
+
U.length !== j.length && (M = V(
|
|
3160
3161
|
M,
|
|
3161
|
-
(
|
|
3162
|
+
(K = P.value || j) == null ? void 0 : K.filter((se) => U.includes(se))
|
|
3162
3163
|
));
|
|
3163
3164
|
}
|
|
3164
3165
|
return M;
|
|
3165
3166
|
}
|
|
3166
|
-
function
|
|
3167
|
-
const R = V(n.value,
|
|
3167
|
+
function Z(A) {
|
|
3168
|
+
const R = V(n.value, A);
|
|
3168
3169
|
n.value = R;
|
|
3169
3170
|
}
|
|
3170
|
-
function V(
|
|
3171
|
+
function V(A, R) {
|
|
3171
3172
|
let M = ut(
|
|
3172
|
-
|
|
3173
|
+
A.filter((K) => K.subject !== ie.Subject.Business.role)
|
|
3173
3174
|
);
|
|
3174
3175
|
if (R && R.length > 0) {
|
|
3175
|
-
const
|
|
3176
|
+
const K = {
|
|
3176
3177
|
actions: [ie.Action.manage],
|
|
3177
3178
|
subject: ie.Subject.Business.role,
|
|
3178
3179
|
conditions: JSON.stringify({ roleId: { $in: R } })
|
|
3179
3180
|
};
|
|
3180
|
-
M.push(
|
|
3181
|
+
M.push(K);
|
|
3181
3182
|
}
|
|
3182
3183
|
return M;
|
|
3183
3184
|
}
|
|
3184
|
-
|
|
3185
|
+
Xt(async () => {
|
|
3185
3186
|
await Promise.all([
|
|
3186
|
-
Pr.readWarehouses().then((
|
|
3187
|
+
Pr.readWarehouses().then((A) => k.value = A),
|
|
3187
3188
|
m()
|
|
3188
3189
|
]);
|
|
3189
3190
|
});
|
|
3190
|
-
const z = J(() =>
|
|
3191
|
+
const z = J(() => Tt(
|
|
3191
3192
|
n.value,
|
|
3192
|
-
|
|
3193
|
+
kt
|
|
3193
3194
|
).map((R) => {
|
|
3194
3195
|
if (R.inverted) return R;
|
|
3195
3196
|
const M = R.actions;
|
|
3196
3197
|
if (!M.includes("manage")) return R;
|
|
3197
|
-
const
|
|
3198
|
-
if (!
|
|
3199
|
-
const
|
|
3200
|
-
return
|
|
3198
|
+
const K = d(R.subject);
|
|
3199
|
+
if (!K) return R;
|
|
3200
|
+
const U = K.actions;
|
|
3201
|
+
return U.length <= 1 || U.filter((se) => !M.includes(se)).length === 0 ? R : { ...R, actions: [...U] };
|
|
3201
3202
|
}));
|
|
3202
|
-
function W(
|
|
3203
|
+
function W(A) {
|
|
3203
3204
|
const R = new Set(
|
|
3204
3205
|
z.value.filter((j) => !j.inverted).map((j) => j.subject)
|
|
3205
3206
|
), M = new Set(
|
|
3206
|
-
|
|
3207
|
-
),
|
|
3207
|
+
A.filter((j) => !j.inverted).map((j) => j.subject)
|
|
3208
|
+
), K = new Set(
|
|
3208
3209
|
n.value.filter((j) => !j.inverted).map((j) => j.subject)
|
|
3209
3210
|
);
|
|
3210
|
-
let
|
|
3211
|
+
let U = [...n.value];
|
|
3211
3212
|
for (const j of R)
|
|
3212
|
-
M.has(j) || (
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
).some((
|
|
3213
|
+
M.has(j) || (K.has(j) && (U = U.filter((Q) => Q.subject !== j)), (!K.has(j) || Tt(
|
|
3214
|
+
U,
|
|
3215
|
+
kt
|
|
3216
|
+
).some((Q) => Q.subject === j && !Q.inverted)) && !U.some((Q) => Q.subject === j && Q.inverted) && U.push({ subject: j, actions: ["manage"], inverted: !0 }));
|
|
3216
3217
|
for (const j of M)
|
|
3217
3218
|
if (!R.has(j)) {
|
|
3218
|
-
const se =
|
|
3219
|
-
if (
|
|
3220
|
-
const
|
|
3219
|
+
const se = U.some((Q) => Q.subject === j && Q.inverted);
|
|
3220
|
+
if (U = U.filter((Q) => !(Q.subject === j && Q.inverted)), !se && !K.has(j)) {
|
|
3221
|
+
const Q = A.find(
|
|
3221
3222
|
(fe) => fe.subject === j && !fe.inverted
|
|
3222
3223
|
), ge = d(j);
|
|
3223
|
-
if (ge &&
|
|
3224
|
+
if (ge && Q) {
|
|
3224
3225
|
const { category: fe, showByFeatureFlag: we, ...q } = ge;
|
|
3225
|
-
|
|
3226
|
+
U.push({ ...q, actions: Q.actions });
|
|
3226
3227
|
}
|
|
3227
3228
|
}
|
|
3228
3229
|
}
|
|
@@ -3230,48 +3231,48 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
3230
3231
|
if (!R.has(j)) continue;
|
|
3231
3232
|
const se = z.value.find(
|
|
3232
3233
|
(q) => q.subject === j && !q.inverted
|
|
3233
|
-
),
|
|
3234
|
-
if (!se || !
|
|
3235
|
-
const ge = new Set(se.actions), fe = new Set(
|
|
3234
|
+
), Q = A.find((q) => q.subject === j && !q.inverted);
|
|
3235
|
+
if (!se || !Q) continue;
|
|
3236
|
+
const ge = new Set(se.actions), fe = new Set(Q.actions);
|
|
3236
3237
|
if (ge.size === fe.size && [...ge].every((q) => fe.has(q)))
|
|
3237
3238
|
continue;
|
|
3238
|
-
const we =
|
|
3239
|
+
const we = U.findIndex((q) => q.subject === j && !q.inverted);
|
|
3239
3240
|
if (we >= 0)
|
|
3240
|
-
|
|
3241
|
-
...
|
|
3241
|
+
U[we] = {
|
|
3242
|
+
...U[we],
|
|
3242
3243
|
actions: Array.from(fe)
|
|
3243
3244
|
};
|
|
3244
3245
|
else {
|
|
3245
3246
|
const q = d(j);
|
|
3246
3247
|
if (q) {
|
|
3247
3248
|
const { category: ve, showByFeatureFlag: $e, ...Je } = q;
|
|
3248
|
-
|
|
3249
|
+
U.push({ ...Je, actions: Array.from(fe) });
|
|
3249
3250
|
}
|
|
3250
3251
|
}
|
|
3251
|
-
ge.has("manage") && !fe.has("manage") &&
|
|
3252
|
-
|
|
3253
|
-
|
|
3252
|
+
ge.has("manage") && !fe.has("manage") && Tt(
|
|
3253
|
+
U,
|
|
3254
|
+
kt
|
|
3254
3255
|
).some(
|
|
3255
3256
|
(ve) => ve.subject === j && !ve.inverted && ve.actions.includes("manage")
|
|
3256
|
-
) && !
|
|
3257
|
+
) && !U.some((ve) => ve.subject === j && ve.inverted) && U.push({ subject: j, actions: ["manage"], inverted: !0 }), !ge.has("manage") && fe.has("manage") && (U = U.filter((q) => !(q.subject === j && q.inverted)));
|
|
3257
3258
|
}
|
|
3258
|
-
n.value =
|
|
3259
|
+
n.value = U;
|
|
3259
3260
|
}
|
|
3260
3261
|
return St(
|
|
3261
3262
|
n,
|
|
3262
|
-
(
|
|
3263
|
-
l("permissionChanged",
|
|
3263
|
+
(A) => {
|
|
3264
|
+
l("permissionChanged", A);
|
|
3264
3265
|
},
|
|
3265
3266
|
{ deep: !0 }
|
|
3266
|
-
), (
|
|
3267
|
+
), (A, R) => (x(), ee("div", Fr, [
|
|
3267
3268
|
te("div", jr, [
|
|
3268
|
-
de(
|
|
3269
|
+
de(Ar, {
|
|
3269
3270
|
"model-value": z.value,
|
|
3270
3271
|
"excluded-subjects": S,
|
|
3271
|
-
"additional-permissions":
|
|
3272
|
+
"additional-permissions": Te(f),
|
|
3272
3273
|
"onUpdate:modelValue": W
|
|
3273
3274
|
}, Fe({ _: 2 }, [
|
|
3274
|
-
_e(
|
|
3275
|
+
_e(h.value, (M) => ({
|
|
3275
3276
|
name: `checkbox-${M.id}-append`,
|
|
3276
3277
|
fn: pe(() => [
|
|
3277
3278
|
de(it, { item: M }, null, 8, ["item"])
|
|
@@ -3283,10 +3284,10 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
3283
3284
|
de(Ln, {
|
|
3284
3285
|
"model-value": F.value,
|
|
3285
3286
|
options: O.value,
|
|
3286
|
-
context:
|
|
3287
|
+
context: Te(a)("team.labels.warehouse"),
|
|
3287
3288
|
"onUpdate:modelValue": c
|
|
3288
3289
|
}, Fe({ _: 2 }, [
|
|
3289
|
-
_e(
|
|
3290
|
+
_e(T.value, (M) => ({
|
|
3290
3291
|
name: `checkbox-${M.id}-append`,
|
|
3291
3292
|
fn: pe(() => [
|
|
3292
3293
|
de(it, { item: M }, null, 8, ["item"])
|
|
@@ -3294,11 +3295,11 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
3294
3295
|
}))
|
|
3295
3296
|
]), 1032, ["model-value", "options", "context"])
|
|
3296
3297
|
]),
|
|
3297
|
-
te("div",
|
|
3298
|
+
te("div", Ur, [
|
|
3298
3299
|
de(Ln, {
|
|
3299
3300
|
"model-value": i.value,
|
|
3300
3301
|
options: g.value,
|
|
3301
|
-
context:
|
|
3302
|
+
context: Te(a)("team.labels.restaurant"),
|
|
3302
3303
|
"onUpdate:modelValue": I
|
|
3303
3304
|
}, Fe({ _: 2 }, [
|
|
3304
3305
|
_e(L.value, (M) => ({
|
|
@@ -3309,12 +3310,12 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
3309
3310
|
}))
|
|
3310
3311
|
]), 1032, ["model-value", "options", "context"])
|
|
3311
3312
|
]),
|
|
3312
|
-
te("div",
|
|
3313
|
+
te("div", Gr, [
|
|
3313
3314
|
de(wr, {
|
|
3314
|
-
roles:
|
|
3315
|
+
roles: Te(u),
|
|
3315
3316
|
"model-value": P.value,
|
|
3316
3317
|
"restaurant-ids": i.value,
|
|
3317
|
-
"onUpdate:modelValue":
|
|
3318
|
+
"onUpdate:modelValue": Z
|
|
3318
3319
|
}, Fe({ _: 2 }, [
|
|
3319
3320
|
_e(N.value, (M) => ({
|
|
3320
3321
|
name: `checkbox-${M.id}-append`,
|
|
@@ -3328,6 +3329,6 @@ const br = { class: "col flex items-center" }, hr = {
|
|
|
3328
3329
|
}
|
|
3329
3330
|
});
|
|
3330
3331
|
export {
|
|
3331
|
-
|
|
3332
|
+
Kt as _,
|
|
3332
3333
|
Jr as a
|
|
3333
3334
|
};
|