@feedmepos/mf-hrm-portal 2.0.5 → 2.0.6-dev.1
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-Bkl9koQT.js → AuditLogList-C23_MiyK.js} +7 -6
- package/dist/{EmployeeList-BnbjfqyP.js → EmployeeList-vXPEVqoh.js} +164 -169
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js +71 -0
- package/dist/HorizontalSplitter-o860F4xM.js +12 -0
- package/dist/Main-CQWe1-SW.js +599 -0
- package/dist/{Main-CoVghvwW.js → Main-DC9H9bAs.js} +11 -10
- package/dist/{Main-8ZaM5D9M.js → Main-k56Iy_zg.js} +8 -7
- package/dist/{PermissionSetList-B0yqDASK.js → PermissionSetList-B8tJCNpR.js} +53 -52
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CXirNGg0.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BPJpVG8_.js} +588 -587
- package/dist/{RoleList-CiNle1dZ.js → RoleList-C5WA3Kxu.js} +26 -24
- package/dist/{TeamMemberList-5DyItOsQ.js → TeamMemberList-Ic-iWBHd.js} +10 -9
- package/dist/{TimesheetList-DxQ-vb_m.js → TimesheetList-DlGpcOUp.js} +11 -10
- package/dist/{app-CVfFuJ_U.js → app-D0xH_99A.js} +984 -713
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-CeMMJfCO.js → dayjs.min-C1rTVn8X.js} +1 -1
- package/dist/{employee-BsYVIIOi.js → employee-BK4sYiRy.js} +21 -20
- package/dist/index-C2ubYSVV.js +968 -0
- package/dist/{index-DIVnaoZ6.js → index-DSAB4vz3.js} +1 -1
- package/dist/{index-DwcKO5a4.js → iteration-BSGKcAZm.js} +3468 -4430
- package/dist/{lodash-DazWE7Hy.js → lodash-CeTePH4O.js} +1 -1
- package/dist/src/api/grant-user/index.d.ts +8 -0
- package/dist/src/api/index.d.ts +3 -1
- package/dist/src/router/shared.d.ts +2 -1
- package/dist/src/stores/grant-user.d.ts +86 -0
- package/dist/src/types/grant-user.d.ts +27 -0
- package/dist/src/views/grant/GrantUserList.vue.d.ts +17 -0
- package/dist/src/views/grant/Main.vue.d.ts +2 -0
- package/dist/src/views/grant/components/GrantUserForm.vue.d.ts +17 -0
- package/dist/src/views/grant/locales/index.d.ts +232 -0
- package/dist/{team-C9sSArLP.js → team-B25hRkju.js} +1 -1
- package/dist/{timesheet-C0-tKt4w.js → timesheet-C8oy-bxz.js} +10 -9
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-4NX8u34B.js → useAppStore-WGnUS7Wm.js} +1 -1
- package/dist/{useLoading-BDG-so15.js → useLoading-BCi2g_rf.js} +1 -1
- package/dist/{useReportPermissions-1NZr3RRg.js → useReportPermissions--LOfl1e-.js} +12 -11
- package/dist/useRestaurantMap-e9fQJiLC.js +39 -0
- package/package.json +1 -1
- package/dist/useRestaurantMap-D5BNPLKh.js +0 -107
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
1
|
+
import { getCurrentInstance as Gt, inject as Bn, ref as Ve, shallowRef as Hn, computed as z, watch as St, onMounted as xt, onUnmounted as Ln, defineComponent as Ie, h as Rn, createVNode as de, Text as $n, Fragment as ye, resolveComponent as Ze, createBlock as Se, openBlock as x, withCtx as pe, createElementVNode as ne, createElementBlock as te, toDisplayString as Ae, unref as Te, renderList as _e, renderSlot as be, createCommentVNode as Oe, createTextVNode as Jn, useSlots as Kn, normalizeStyle as ct, normalizeClass as qe, createSlots as Fe, nextTick as zn, 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 {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { u as
|
|
4
|
+
import { p as wt, j as es, x as ts, y as yt, z as ns, l as ss, $ as Tt } from "./index-C2ubYSVV.js";
|
|
5
|
+
import { d as ut, g as as, b as rs } from "./iteration-BSGKcAZm.js";
|
|
6
|
+
import { i as ls, d as ie, U as os, a as kt } from "./app-D0xH_99A.js";
|
|
7
|
+
import { u as is } from "./index-DSAB4vz3.js";
|
|
8
|
+
import { u as cs } from "./useAppStore-WGnUS7Wm.js";
|
|
8
9
|
/*!
|
|
9
10
|
* shared v10.0.5
|
|
10
11
|
* (c) 2024 kazuya kawaguchi
|
|
11
12
|
* Released under the MIT License.
|
|
12
13
|
*/
|
|
13
|
-
const qt = typeof window < "u",
|
|
14
|
+
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) => Zt(e) === "[object Date]", dt = (e) => Zt(e) === "[object RegExp]", pt = (e) => Z(e) && Object.keys(e).length === 0, ue = Object.assign, fs = Object.create, J = (e = null) => fs(e);
|
|
14
15
|
let en;
|
|
15
|
-
const
|
|
16
|
+
const je = () => en || (en = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : J());
|
|
16
17
|
function tn(e) {
|
|
17
18
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
18
19
|
}
|
|
@@ -20,11 +21,11 @@ const _s = Object.prototype.hasOwnProperty;
|
|
|
20
21
|
function Ee(e, t) {
|
|
21
22
|
return _s.call(e, t);
|
|
22
23
|
}
|
|
23
|
-
const oe = Array.isArray, se = (e) => typeof e == "function", M = (e) => typeof e == "string", le = (e) => typeof e == "boolean", X = (e) => e !== null && typeof e == "object", ps = (e) => X(e) && se(e.then) && se(e.catch), Cn = Object.prototype.toString, Zt = (e) => Cn.call(e), Z = (e) => Zt(e) === "[object Object]",
|
|
24
|
+
const oe = Array.isArray, se = (e) => typeof e == "function", M = (e) => typeof e == "string", le = (e) => typeof e == "boolean", X = (e) => e !== null && typeof e == "object", ps = (e) => X(e) && se(e.then) && se(e.catch), Cn = Object.prototype.toString, Zt = (e) => Cn.call(e), Z = (e) => Zt(e) === "[object Object]", bs = (e) => e == null ? "" : oe(e) || Z(e) && e.toString === Cn ? JSON.stringify(e, null, 2) : String(e);
|
|
24
25
|
function Xt(e, t = "") {
|
|
25
26
|
return e.reduce((n, s, l) => l === 0 ? n + s : n + t + s, "");
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
+
function hs(e, t) {
|
|
28
29
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
29
30
|
}
|
|
30
31
|
const rt = (e) => !X(e) || oe(e);
|
|
@@ -42,10 +43,10 @@ function mt(e, t) {
|
|
|
42
43
|
function gs(e, t, n) {
|
|
43
44
|
return { line: e, column: t, offset: n };
|
|
44
45
|
}
|
|
45
|
-
function
|
|
46
|
+
function Dt(e, t, n) {
|
|
46
47
|
return { start: e, end: t };
|
|
47
48
|
}
|
|
48
|
-
const
|
|
49
|
+
const H = {
|
|
49
50
|
// tokenizer error codes
|
|
50
51
|
EXPECTED_TOKEN: 1,
|
|
51
52
|
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
|
@@ -63,7 +64,7 @@ const B = {
|
|
|
63
64
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
64
65
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
65
66
|
}, vs = 17;
|
|
66
|
-
function
|
|
67
|
+
function bt(e, t, n = {}) {
|
|
67
68
|
const { domain: s, messages: l, args: a } = n, c = e, m = new SyntaxError(String(c));
|
|
68
69
|
return m.code = e, t && (m.location = t), m.domain = s, m;
|
|
69
70
|
}
|
|
@@ -75,14 +76,14 @@ const ke = " ", Is = "\r", me = `
|
|
|
75
76
|
function Ts(e) {
|
|
76
77
|
const t = e;
|
|
77
78
|
let n = 0, s = 1, l = 1, a = 0;
|
|
78
|
-
const c = (_) => t[_] === Is && t[_ + 1] === me, m = (_) => t[_] === me, u = (_) => t[_] === ys,
|
|
79
|
+
const c = (_) => t[_] === Is && t[_ + 1] === me, m = (_) => t[_] === me, u = (_) => t[_] === ys, h = (_) => t[_] === Ns, T = (_) => c(_) || m(_) || u(_) || h(_), O = () => n, N = () => s, P = () => l, V = () => a, k = (_) => c(_) || u(_) || h(_) ? me : t[_], A = () => k(n), i = () => k(n + a);
|
|
79
80
|
function d() {
|
|
80
81
|
return a = 0, T(n) && (s++, l = 0), c(n) && n++, n++, l++, t[n];
|
|
81
82
|
}
|
|
82
83
|
function y() {
|
|
83
84
|
return c(n + a) && a++, a++, t[n + a];
|
|
84
85
|
}
|
|
85
|
-
function
|
|
86
|
+
function b() {
|
|
86
87
|
n = 0, s = 1, l = 1, a = 0;
|
|
87
88
|
}
|
|
88
89
|
function S(_ = 0) {
|
|
@@ -98,13 +99,13 @@ function Ts(e) {
|
|
|
98
99
|
index: O,
|
|
99
100
|
line: N,
|
|
100
101
|
column: P,
|
|
101
|
-
peekOffset:
|
|
102
|
+
peekOffset: V,
|
|
102
103
|
charAt: k,
|
|
103
104
|
currentChar: A,
|
|
104
105
|
currentPeek: i,
|
|
105
106
|
next: d,
|
|
106
107
|
peek: y,
|
|
107
|
-
reset:
|
|
108
|
+
reset: b,
|
|
108
109
|
resetPeek: S,
|
|
109
110
|
skipToPeek: p
|
|
110
111
|
};
|
|
@@ -123,11 +124,11 @@ function Ls(e, t = {}) {
|
|
|
123
124
|
braceNest: 0,
|
|
124
125
|
inLinked: !1,
|
|
125
126
|
text: ""
|
|
126
|
-
},
|
|
127
|
+
}, h = () => u, { onError: T } = t;
|
|
127
128
|
function O(r, o, v, ...F) {
|
|
128
|
-
const ae =
|
|
129
|
+
const ae = h();
|
|
129
130
|
if (o.column += v, o.offset += v, T) {
|
|
130
|
-
const W = n ?
|
|
131
|
+
const W = n ? Dt(ae.startLoc, o) : null, f = bt(r, W, {
|
|
131
132
|
domain: Os,
|
|
132
133
|
args: F
|
|
133
134
|
});
|
|
@@ -137,15 +138,15 @@ function Ls(e, t = {}) {
|
|
|
137
138
|
function N(r, o, v) {
|
|
138
139
|
r.endLoc = a(), r.currentType = o;
|
|
139
140
|
const F = { type: o };
|
|
140
|
-
return n && (F.loc =
|
|
141
|
+
return n && (F.loc = Dt(r.startLoc, r.endLoc)), v != null && (F.value = v), F;
|
|
141
142
|
}
|
|
142
143
|
const P = (r) => N(
|
|
143
144
|
r,
|
|
144
145
|
13
|
|
145
146
|
/* TokenTypes.EOF */
|
|
146
147
|
);
|
|
147
|
-
function
|
|
148
|
-
return r.currentChar() === o ? (r.next(), o) : (O(
|
|
148
|
+
function V(r, o) {
|
|
149
|
+
return r.currentChar() === o ? (r.next(), o) : (O(H.EXPECTED_TOKEN, a(), 0, o), "");
|
|
149
150
|
}
|
|
150
151
|
function k(r) {
|
|
151
152
|
let o = "";
|
|
@@ -179,7 +180,7 @@ function Ls(e, t = {}) {
|
|
|
179
180
|
const F = i(r.currentPeek());
|
|
180
181
|
return r.resetPeek(), F;
|
|
181
182
|
}
|
|
182
|
-
function
|
|
183
|
+
function b(r, o) {
|
|
183
184
|
const { currentType: v } = o;
|
|
184
185
|
if (v !== 2)
|
|
185
186
|
return !1;
|
|
@@ -211,7 +212,7 @@ function Ls(e, t = {}) {
|
|
|
211
212
|
const F = i(r.currentPeek());
|
|
212
213
|
return r.resetPeek(), F;
|
|
213
214
|
}
|
|
214
|
-
function
|
|
215
|
+
function j(r, o) {
|
|
215
216
|
const { currentType: v } = o;
|
|
216
217
|
if (!(v === 7 || v === 11))
|
|
217
218
|
return !1;
|
|
@@ -225,7 +226,7 @@ function Ls(e, t = {}) {
|
|
|
225
226
|
return !1;
|
|
226
227
|
const F = () => {
|
|
227
228
|
const W = r.currentPeek();
|
|
228
|
-
return W === "{" ? i(r.peek()) : W === "@" || W === "|" || W === ":" || W === "." || W === ke || !W ? !1 : W === me ? (r.peek(), F()) :
|
|
229
|
+
return W === "{" ? i(r.peek()) : W === "@" || W === "|" || W === ":" || W === "." || W === ke || !W ? !1 : W === me ? (r.peek(), F()) : Y(r, !1);
|
|
229
230
|
}, ae = F();
|
|
230
231
|
return r.resetPeek(), ae;
|
|
231
232
|
}
|
|
@@ -234,14 +235,14 @@ function Ls(e, t = {}) {
|
|
|
234
235
|
const o = r.currentPeek() === "|";
|
|
235
236
|
return r.resetPeek(), o;
|
|
236
237
|
}
|
|
237
|
-
function
|
|
238
|
+
function Y(r, o = !0) {
|
|
238
239
|
const v = (ae = !1, W = "") => {
|
|
239
240
|
const f = r.currentPeek();
|
|
240
241
|
return f === "{" || f === "@" || !f ? ae : f === "|" ? !(W === ke || W === me) : f === ke ? (r.peek(), v(!0, ke)) : f === me ? (r.peek(), v(!0, me)) : !0;
|
|
241
242
|
}, F = v();
|
|
242
243
|
return o && r.resetPeek(), F;
|
|
243
244
|
}
|
|
244
|
-
function
|
|
245
|
+
function w(r, o) {
|
|
245
246
|
const v = r.currentChar();
|
|
246
247
|
return v === Ce ? Ce : o(v) ? (r.next(), v) : null;
|
|
247
248
|
}
|
|
@@ -254,7 +255,7 @@ function Ls(e, t = {}) {
|
|
|
254
255
|
o === 36;
|
|
255
256
|
}
|
|
256
257
|
function q(r) {
|
|
257
|
-
return
|
|
258
|
+
return w(r, $);
|
|
258
259
|
}
|
|
259
260
|
function C(r) {
|
|
260
261
|
const o = r.charCodeAt(0);
|
|
@@ -266,27 +267,27 @@ function Ls(e, t = {}) {
|
|
|
266
267
|
o === 45;
|
|
267
268
|
}
|
|
268
269
|
function L(r) {
|
|
269
|
-
return
|
|
270
|
+
return w(r, C);
|
|
270
271
|
}
|
|
271
|
-
function
|
|
272
|
+
function D(r) {
|
|
272
273
|
const o = r.charCodeAt(0);
|
|
273
274
|
return o >= 48 && o <= 57;
|
|
274
275
|
}
|
|
275
|
-
function
|
|
276
|
-
return
|
|
276
|
+
function B(r) {
|
|
277
|
+
return w(r, D);
|
|
277
278
|
}
|
|
278
|
-
function
|
|
279
|
+
function U(r) {
|
|
279
280
|
const o = r.charCodeAt(0);
|
|
280
281
|
return o >= 48 && o <= 57 || // 0-9
|
|
281
282
|
o >= 65 && o <= 70 || // A-F
|
|
282
283
|
o >= 97 && o <= 102;
|
|
283
284
|
}
|
|
284
285
|
function R(r) {
|
|
285
|
-
return
|
|
286
|
+
return w(r, U);
|
|
286
287
|
}
|
|
287
|
-
function
|
|
288
|
+
function G(r) {
|
|
288
289
|
let o = "", v = "";
|
|
289
|
-
for (; o =
|
|
290
|
+
for (; o = B(r); )
|
|
290
291
|
v += o;
|
|
291
292
|
return v;
|
|
292
293
|
}
|
|
@@ -297,7 +298,7 @@ function Ls(e, t = {}) {
|
|
|
297
298
|
if (v === "{" || v === "}" || v === "@" || v === "|" || !v)
|
|
298
299
|
break;
|
|
299
300
|
if (v === ke || v === me)
|
|
300
|
-
if (
|
|
301
|
+
if (Y(r))
|
|
301
302
|
o += v, r.next();
|
|
302
303
|
else {
|
|
303
304
|
if (I(r))
|
|
@@ -314,23 +315,23 @@ function Ls(e, t = {}) {
|
|
|
314
315
|
let o = "", v = "";
|
|
315
316
|
for (; o = L(r); )
|
|
316
317
|
v += o;
|
|
317
|
-
return r.currentChar() === Ce && O(
|
|
318
|
+
return r.currentChar() === Ce && O(H.UNTERMINATED_CLOSING_BRACE, a(), 0), v;
|
|
318
319
|
}
|
|
319
320
|
function fe(r) {
|
|
320
321
|
A(r);
|
|
321
322
|
let o = "";
|
|
322
|
-
return r.currentChar() === "-" ? (r.next(), o += `-${
|
|
323
|
+
return r.currentChar() === "-" ? (r.next(), o += `-${G(r)}`) : o += G(r), r.currentChar() === Ce && O(H.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
323
324
|
}
|
|
324
325
|
function Me(r) {
|
|
325
326
|
return r !== nn && r !== me;
|
|
326
327
|
}
|
|
327
328
|
function ee(r) {
|
|
328
|
-
A(r),
|
|
329
|
+
A(r), V(r, "'");
|
|
329
330
|
let o = "", v = "";
|
|
330
|
-
for (; o =
|
|
331
|
+
for (; o = w(r, Me); )
|
|
331
332
|
o === "\\" ? v += ve(r) : v += o;
|
|
332
333
|
const F = r.currentChar();
|
|
333
|
-
return F === me || F === Ce ? (O(
|
|
334
|
+
return F === me || F === Ce ? (O(H.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), F === me && (r.next(), V(r, "'")), v) : (V(r, "'"), v);
|
|
334
335
|
}
|
|
335
336
|
function ve(r) {
|
|
336
337
|
const o = r.currentChar();
|
|
@@ -343,16 +344,16 @@ function Ls(e, t = {}) {
|
|
|
343
344
|
case "U":
|
|
344
345
|
return $e(r, o, 6);
|
|
345
346
|
default:
|
|
346
|
-
return O(
|
|
347
|
+
return O(H.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
|
|
347
348
|
}
|
|
348
349
|
}
|
|
349
350
|
function $e(r, o, v) {
|
|
350
|
-
|
|
351
|
+
V(r, o);
|
|
351
352
|
let F = "";
|
|
352
353
|
for (let ae = 0; ae < v; ae++) {
|
|
353
354
|
const W = R(r);
|
|
354
355
|
if (!W) {
|
|
355
|
-
O(
|
|
356
|
+
O(H.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${F}${r.currentChar()}`);
|
|
356
357
|
break;
|
|
357
358
|
}
|
|
358
359
|
F += W;
|
|
@@ -365,7 +366,7 @@ function Ls(e, t = {}) {
|
|
|
365
366
|
function vt(r) {
|
|
366
367
|
A(r);
|
|
367
368
|
let o = "", v = "";
|
|
368
|
-
for (; o =
|
|
369
|
+
for (; o = w(r, Je); )
|
|
369
370
|
v += o;
|
|
370
371
|
return v;
|
|
371
372
|
}
|
|
@@ -384,7 +385,7 @@ function Ls(e, t = {}) {
|
|
|
384
385
|
}
|
|
385
386
|
function Ke(r) {
|
|
386
387
|
A(r);
|
|
387
|
-
const o =
|
|
388
|
+
const o = V(
|
|
388
389
|
r,
|
|
389
390
|
"|"
|
|
390
391
|
/* TokenChars.Pipe */
|
|
@@ -395,45 +396,45 @@ function Ls(e, t = {}) {
|
|
|
395
396
|
let v = null;
|
|
396
397
|
switch (r.currentChar()) {
|
|
397
398
|
case "{":
|
|
398
|
-
return o.braceNest >= 1 && O(
|
|
399
|
+
return o.braceNest >= 1 && O(H.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), r.next(), v = N(
|
|
399
400
|
o,
|
|
400
401
|
2,
|
|
401
402
|
"{"
|
|
402
403
|
/* TokenChars.BraceLeft */
|
|
403
404
|
), A(r), o.braceNest++, v;
|
|
404
405
|
case "}":
|
|
405
|
-
return o.braceNest > 0 && o.currentType === 2 && O(
|
|
406
|
+
return o.braceNest > 0 && o.currentType === 2 && O(H.EMPTY_PLACEHOLDER, a(), 0), r.next(), v = N(
|
|
406
407
|
o,
|
|
407
408
|
3,
|
|
408
409
|
"}"
|
|
409
410
|
/* TokenChars.BraceRight */
|
|
410
411
|
), o.braceNest--, o.braceNest > 0 && A(r), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), v;
|
|
411
412
|
case "@":
|
|
412
|
-
return o.braceNest > 0 && O(
|
|
413
|
+
return o.braceNest > 0 && O(H.UNTERMINATED_CLOSING_BRACE, a(), 0), v = Ye(r, o) || P(o), o.braceNest = 0, v;
|
|
413
414
|
default: {
|
|
414
415
|
let ae = !0, W = !0, f = !0;
|
|
415
416
|
if (I(r))
|
|
416
|
-
return o.braceNest > 0 && O(
|
|
417
|
+
return o.braceNest > 0 && O(H.UNTERMINATED_CLOSING_BRACE, a(), 0), v = N(o, 1, Ke(r)), o.braceNest = 0, o.inLinked = !1, v;
|
|
417
418
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
418
|
-
return O(
|
|
419
|
+
return O(H.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, ze(r, o);
|
|
419
420
|
if (ae = y(r, o))
|
|
420
421
|
return v = N(o, 4, ge(r)), A(r), v;
|
|
421
|
-
if (W =
|
|
422
|
+
if (W = b(r, o))
|
|
422
423
|
return v = N(o, 5, fe(r)), A(r), v;
|
|
423
424
|
if (f = S(r, o))
|
|
424
425
|
return v = N(o, 6, ee(r)), A(r), v;
|
|
425
426
|
if (!ae && !W && !f)
|
|
426
|
-
return v = N(o, 12, vt(r)), O(
|
|
427
|
+
return v = N(o, 12, vt(r)), O(H.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, v.value), A(r), v;
|
|
427
428
|
break;
|
|
428
429
|
}
|
|
429
430
|
}
|
|
430
431
|
return v;
|
|
431
432
|
}
|
|
432
|
-
function
|
|
433
|
+
function Ye(r, o) {
|
|
433
434
|
const { currentType: v } = o;
|
|
434
435
|
let F = null;
|
|
435
436
|
const ae = r.currentChar();
|
|
436
|
-
switch ((v === 7 || v === 8 || v === 11 || v === 9) && (ae === me || ae === ke) && O(
|
|
437
|
+
switch ((v === 7 || v === 8 || v === 11 || v === 9) && (ae === me || ae === ke) && O(H.INVALID_LINKED_FORMAT, a(), 0), ae) {
|
|
437
438
|
case "@":
|
|
438
439
|
return r.next(), F = N(
|
|
439
440
|
o,
|
|
@@ -456,7 +457,7 @@ function Ls(e, t = {}) {
|
|
|
456
457
|
/* TokenChars.LinkedDelimiter */
|
|
457
458
|
);
|
|
458
459
|
default:
|
|
459
|
-
return I(r) ? (F = N(o, 1, Ke(r)), o.braceNest = 0, o.inLinked = !1, F) : p(r, o) ||
|
|
460
|
+
return I(r) ? (F = N(o, 1, Ke(r)), o.braceNest = 0, o.inLinked = !1, F) : p(r, o) || j(r, o) ? (A(r), Ye(r, o)) : _(r, o) ? (A(r), N(o, 11, Et(r))) : g(r, o) ? (A(r), ae === "{" ? We(r, o) || F : N(o, 10, It(r))) : (v === 7 && O(H.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, ze(r, o));
|
|
460
461
|
}
|
|
461
462
|
}
|
|
462
463
|
function ze(r, o) {
|
|
@@ -467,23 +468,23 @@ function Ls(e, t = {}) {
|
|
|
467
468
|
if (o.braceNest > 0)
|
|
468
469
|
return We(r, o) || P(o);
|
|
469
470
|
if (o.inLinked)
|
|
470
|
-
return
|
|
471
|
+
return Ye(r, o) || P(o);
|
|
471
472
|
switch (r.currentChar()) {
|
|
472
473
|
case "{":
|
|
473
474
|
return We(r, o) || P(o);
|
|
474
475
|
case "}":
|
|
475
|
-
return O(
|
|
476
|
+
return O(H.UNBALANCED_CLOSING_BRACE, a(), 0), r.next(), N(
|
|
476
477
|
o,
|
|
477
478
|
3,
|
|
478
479
|
"}"
|
|
479
480
|
/* TokenChars.BraceRight */
|
|
480
481
|
);
|
|
481
482
|
case "@":
|
|
482
|
-
return
|
|
483
|
+
return Ye(r, o) || P(o);
|
|
483
484
|
default: {
|
|
484
485
|
if (I(r))
|
|
485
486
|
return v = N(o, 1, Ke(r)), o.braceNest = 0, o.inLinked = !1, v;
|
|
486
|
-
if (
|
|
487
|
+
if (Y(r))
|
|
487
488
|
return N(o, 0, Q(r));
|
|
488
489
|
break;
|
|
489
490
|
}
|
|
@@ -502,7 +503,7 @@ function Ls(e, t = {}) {
|
|
|
502
503
|
nextToken: Nt,
|
|
503
504
|
currentOffset: l,
|
|
504
505
|
currentPosition: a,
|
|
505
|
-
context:
|
|
506
|
+
context: h
|
|
506
507
|
};
|
|
507
508
|
}
|
|
508
509
|
const Rs = "parser", Cs = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
@@ -520,77 +521,77 @@ function As(e, t, n) {
|
|
|
520
521
|
}
|
|
521
522
|
function Ss(e = {}) {
|
|
522
523
|
const t = e.location !== !1, { onError: n } = e;
|
|
523
|
-
function s(i, d, y,
|
|
524
|
+
function s(i, d, y, b, ...S) {
|
|
524
525
|
const p = i.currentPosition();
|
|
525
|
-
if (p.offset +=
|
|
526
|
-
const _ = t ?
|
|
526
|
+
if (p.offset += b, p.column += b, n) {
|
|
527
|
+
const _ = t ? Dt(y, p) : null, j = bt(d, _, {
|
|
527
528
|
domain: Rs,
|
|
528
529
|
args: S
|
|
529
530
|
});
|
|
530
|
-
n(
|
|
531
|
+
n(j);
|
|
531
532
|
}
|
|
532
533
|
}
|
|
533
534
|
function l(i, d, y) {
|
|
534
|
-
const
|
|
535
|
-
return t && (
|
|
535
|
+
const b = { type: i };
|
|
536
|
+
return t && (b.start = d, b.end = d, b.loc = { start: y, end: y }), b;
|
|
536
537
|
}
|
|
537
|
-
function a(i, d, y,
|
|
538
|
+
function a(i, d, y, b) {
|
|
538
539
|
t && (i.end = d, i.loc && (i.loc.end = y));
|
|
539
540
|
}
|
|
540
541
|
function c(i, d) {
|
|
541
|
-
const y = i.context(),
|
|
542
|
-
return
|
|
542
|
+
const y = i.context(), b = l(3, y.offset, y.startLoc);
|
|
543
|
+
return b.value = d, a(b, i.currentOffset(), i.currentPosition()), b;
|
|
543
544
|
}
|
|
544
545
|
function m(i, d) {
|
|
545
|
-
const y = i.context(), { lastOffset:
|
|
546
|
+
const y = i.context(), { lastOffset: b, lastStartLoc: S } = y, p = l(5, b, S);
|
|
546
547
|
return p.index = parseInt(d, 10), i.nextToken(), a(p, i.currentOffset(), i.currentPosition()), p;
|
|
547
548
|
}
|
|
548
549
|
function u(i, d) {
|
|
549
|
-
const y = i.context(), { lastOffset:
|
|
550
|
+
const y = i.context(), { lastOffset: b, lastStartLoc: S } = y, p = l(4, b, S);
|
|
550
551
|
return p.key = d, i.nextToken(), a(p, i.currentOffset(), i.currentPosition()), p;
|
|
551
552
|
}
|
|
552
|
-
function
|
|
553
|
-
const y = i.context(), { lastOffset:
|
|
553
|
+
function h(i, d) {
|
|
554
|
+
const y = i.context(), { lastOffset: b, lastStartLoc: S } = y, p = l(9, b, S);
|
|
554
555
|
return p.value = d.replace(Cs, As), i.nextToken(), a(p, i.currentOffset(), i.currentPosition()), p;
|
|
555
556
|
}
|
|
556
557
|
function T(i) {
|
|
557
|
-
const d = i.nextToken(), y = i.context(), { lastOffset:
|
|
558
|
-
return d.type !== 11 ? (s(i,
|
|
558
|
+
const d = i.nextToken(), y = i.context(), { lastOffset: b, lastStartLoc: S } = y, p = l(8, b, S);
|
|
559
|
+
return d.type !== 11 ? (s(i, H.UNEXPECTED_EMPTY_LINKED_MODIFIER, y.lastStartLoc, 0), p.value = "", a(p, b, S), {
|
|
559
560
|
nextConsumeToken: d,
|
|
560
561
|
node: p
|
|
561
|
-
}) : (d.value == null && s(i,
|
|
562
|
+
}) : (d.value == null && s(i, H.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, Ne(d)), p.value = d.value || "", a(p, i.currentOffset(), i.currentPosition()), {
|
|
562
563
|
node: p
|
|
563
564
|
});
|
|
564
565
|
}
|
|
565
566
|
function O(i, d) {
|
|
566
|
-
const y = i.context(),
|
|
567
|
-
return
|
|
567
|
+
const y = i.context(), b = l(7, y.offset, y.startLoc);
|
|
568
|
+
return b.value = d, a(b, i.currentOffset(), i.currentPosition()), b;
|
|
568
569
|
}
|
|
569
570
|
function N(i) {
|
|
570
571
|
const d = i.context(), y = l(6, d.offset, d.startLoc);
|
|
571
|
-
let
|
|
572
|
-
if (
|
|
572
|
+
let b = i.nextToken();
|
|
573
|
+
if (b.type === 8) {
|
|
573
574
|
const S = T(i);
|
|
574
|
-
y.modifier = S.node,
|
|
575
|
+
y.modifier = S.node, b = S.nextConsumeToken || i.nextToken();
|
|
575
576
|
}
|
|
576
|
-
switch (
|
|
577
|
+
switch (b.type !== 9 && s(i, H.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(b)), b = i.nextToken(), b.type === 2 && (b = i.nextToken()), b.type) {
|
|
577
578
|
case 10:
|
|
578
|
-
|
|
579
|
+
b.value == null && s(i, H.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(b)), y.key = O(i, b.value || "");
|
|
579
580
|
break;
|
|
580
581
|
case 4:
|
|
581
|
-
|
|
582
|
+
b.value == null && s(i, H.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(b)), y.key = u(i, b.value || "");
|
|
582
583
|
break;
|
|
583
584
|
case 5:
|
|
584
|
-
|
|
585
|
+
b.value == null && s(i, H.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(b)), y.key = m(i, b.value || "");
|
|
585
586
|
break;
|
|
586
587
|
case 6:
|
|
587
|
-
|
|
588
|
+
b.value == null && s(i, H.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(b)), y.key = h(i, b.value || "");
|
|
588
589
|
break;
|
|
589
590
|
default: {
|
|
590
|
-
s(i,
|
|
591
|
+
s(i, H.UNEXPECTED_EMPTY_LINKED_KEY, d.lastStartLoc, 0);
|
|
591
592
|
const S = i.context(), p = l(7, S.offset, S.startLoc);
|
|
592
593
|
return p.value = "", a(p, S.offset, S.startLoc), y.key = p, a(y, S.offset, S.startLoc), {
|
|
593
|
-
nextConsumeToken:
|
|
594
|
+
nextConsumeToken: b,
|
|
594
595
|
node: y
|
|
595
596
|
};
|
|
596
597
|
}
|
|
@@ -600,23 +601,23 @@ function Ss(e = {}) {
|
|
|
600
601
|
};
|
|
601
602
|
}
|
|
602
603
|
function P(i) {
|
|
603
|
-
const d = i.context(), y = d.currentType === 1 ? i.currentOffset() : d.offset,
|
|
604
|
+
const d = i.context(), y = d.currentType === 1 ? i.currentOffset() : d.offset, b = d.currentType === 1 ? d.endLoc : d.startLoc, S = l(2, y, b);
|
|
604
605
|
S.items = [];
|
|
605
606
|
let p = null;
|
|
606
607
|
do {
|
|
607
608
|
const g = p || i.nextToken();
|
|
608
609
|
switch (p = null, g.type) {
|
|
609
610
|
case 0:
|
|
610
|
-
g.value == null && s(i,
|
|
611
|
+
g.value == null && s(i, H.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(g)), S.items.push(c(i, g.value || ""));
|
|
611
612
|
break;
|
|
612
613
|
case 5:
|
|
613
|
-
g.value == null && s(i,
|
|
614
|
+
g.value == null && s(i, H.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(g)), S.items.push(m(i, g.value || ""));
|
|
614
615
|
break;
|
|
615
616
|
case 4:
|
|
616
|
-
g.value == null && s(i,
|
|
617
|
+
g.value == null && s(i, H.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(g)), S.items.push(u(i, g.value || ""));
|
|
617
618
|
break;
|
|
618
619
|
case 6:
|
|
619
|
-
g.value == null && s(i,
|
|
620
|
+
g.value == null && s(i, H.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(g)), S.items.push(h(i, g.value || ""));
|
|
620
621
|
break;
|
|
621
622
|
case 7: {
|
|
622
623
|
const I = N(i);
|
|
@@ -625,27 +626,27 @@ function Ss(e = {}) {
|
|
|
625
626
|
}
|
|
626
627
|
}
|
|
627
628
|
} while (d.currentType !== 13 && d.currentType !== 1);
|
|
628
|
-
const _ = d.currentType === 1 ? d.lastOffset : i.currentOffset(),
|
|
629
|
-
return a(S, _,
|
|
629
|
+
const _ = d.currentType === 1 ? d.lastOffset : i.currentOffset(), j = d.currentType === 1 ? d.lastEndLoc : i.currentPosition();
|
|
630
|
+
return a(S, _, j), S;
|
|
630
631
|
}
|
|
631
|
-
function
|
|
632
|
+
function V(i, d, y, b) {
|
|
632
633
|
const S = i.context();
|
|
633
|
-
let p =
|
|
634
|
+
let p = b.items.length === 0;
|
|
634
635
|
const _ = l(1, d, y);
|
|
635
|
-
_.cases = [], _.cases.push(
|
|
636
|
+
_.cases = [], _.cases.push(b);
|
|
636
637
|
do {
|
|
637
|
-
const
|
|
638
|
-
p || (p =
|
|
638
|
+
const j = P(i);
|
|
639
|
+
p || (p = j.items.length === 0), _.cases.push(j);
|
|
639
640
|
} while (S.currentType !== 13);
|
|
640
|
-
return p && s(i,
|
|
641
|
+
return p && s(i, H.MUST_HAVE_MESSAGES_IN_PLURAL, y, 0), a(_, i.currentOffset(), i.currentPosition()), _;
|
|
641
642
|
}
|
|
642
643
|
function k(i) {
|
|
643
|
-
const d = i.context(), { offset: y, startLoc:
|
|
644
|
-
return d.currentType === 13 ? S :
|
|
644
|
+
const d = i.context(), { offset: y, startLoc: b } = d, S = P(i);
|
|
645
|
+
return d.currentType === 13 ? S : V(i, y, b, S);
|
|
645
646
|
}
|
|
646
647
|
function A(i) {
|
|
647
|
-
const d = Ls(i, ue({}, e)), y = d.context(),
|
|
648
|
-
return t &&
|
|
648
|
+
const d = Ls(i, ue({}, e)), y = d.context(), b = l(0, y.offset, y.startLoc);
|
|
649
|
+
return t && b.loc && (b.loc.source = i), b.body = k(d), e.onCacheKey && (b.cacheKey = e.onCacheKey(i)), y.currentType !== 13 && s(d, H.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, i[y.offset] || ""), a(b, d.currentOffset(), d.currentPosition()), b;
|
|
649
650
|
}
|
|
650
651
|
return { parse: A };
|
|
651
652
|
}
|
|
@@ -655,7 +656,7 @@ function Ne(e) {
|
|
|
655
656
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
656
657
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
657
658
|
}
|
|
658
|
-
function
|
|
659
|
+
function ws(e, t = {}) {
|
|
659
660
|
const n = {
|
|
660
661
|
ast: e,
|
|
661
662
|
helpers: /* @__PURE__ */ new Set()
|
|
@@ -664,9 +665,9 @@ function Ds(e, t = {}) {
|
|
|
664
665
|
}
|
|
665
666
|
function sn(e, t) {
|
|
666
667
|
for (let n = 0; n < e.length; n++)
|
|
667
|
-
|
|
668
|
+
Bt(e[n], t);
|
|
668
669
|
}
|
|
669
|
-
function
|
|
670
|
+
function Bt(e, t) {
|
|
670
671
|
switch (e.type) {
|
|
671
672
|
case 1:
|
|
672
673
|
sn(e.cases, t), t.helper(
|
|
@@ -678,7 +679,7 @@ function Ht(e, t) {
|
|
|
678
679
|
sn(e.items, t);
|
|
679
680
|
break;
|
|
680
681
|
case 6: {
|
|
681
|
-
|
|
682
|
+
Bt(e.key, t), t.helper(
|
|
682
683
|
"linked"
|
|
683
684
|
/* HelperNameMap.LINKED */
|
|
684
685
|
), t.helper(
|
|
@@ -707,12 +708,12 @@ function Ht(e, t) {
|
|
|
707
708
|
break;
|
|
708
709
|
}
|
|
709
710
|
}
|
|
710
|
-
function
|
|
711
|
-
const n =
|
|
711
|
+
function Ds(e, t = {}) {
|
|
712
|
+
const n = ws(e);
|
|
712
713
|
n.helper(
|
|
713
714
|
"normalize"
|
|
714
715
|
/* HelperNameMap.NORMALIZE */
|
|
715
|
-
), e.body &&
|
|
716
|
+
), e.body && Bt(e.body, n);
|
|
716
717
|
const s = n.context();
|
|
717
718
|
e.helpers = Array.from(s.helpers);
|
|
718
719
|
}
|
|
@@ -741,24 +742,24 @@ function an(e) {
|
|
|
741
742
|
}
|
|
742
743
|
}
|
|
743
744
|
}
|
|
744
|
-
function
|
|
745
|
+
function xe(e) {
|
|
745
746
|
switch (e.t = e.type, e.type) {
|
|
746
747
|
case 0: {
|
|
747
748
|
const t = e;
|
|
748
|
-
|
|
749
|
+
xe(t.body), t.b = t.body, delete t.body;
|
|
749
750
|
break;
|
|
750
751
|
}
|
|
751
752
|
case 1: {
|
|
752
753
|
const t = e, n = t.cases;
|
|
753
754
|
for (let s = 0; s < n.length; s++)
|
|
754
|
-
|
|
755
|
+
xe(n[s]);
|
|
755
756
|
t.c = n, delete t.cases;
|
|
756
757
|
break;
|
|
757
758
|
}
|
|
758
759
|
case 2: {
|
|
759
760
|
const t = e, n = t.items;
|
|
760
761
|
for (let s = 0; s < n.length; s++)
|
|
761
|
-
|
|
762
|
+
xe(n[s]);
|
|
762
763
|
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
763
764
|
break;
|
|
764
765
|
}
|
|
@@ -772,7 +773,7 @@ function Ye(e) {
|
|
|
772
773
|
}
|
|
773
774
|
case 6: {
|
|
774
775
|
const t = e;
|
|
775
|
-
|
|
776
|
+
xe(t.key), t.k = t.key, delete t.key, t.modifier && (xe(t.modifier), t.m = t.modifier, delete t.modifier);
|
|
776
777
|
break;
|
|
777
778
|
}
|
|
778
779
|
case 5: {
|
|
@@ -805,20 +806,20 @@ function Ps(e, t) {
|
|
|
805
806
|
function u(k, A) {
|
|
806
807
|
c.code += k;
|
|
807
808
|
}
|
|
808
|
-
function
|
|
809
|
+
function h(k, A = !0) {
|
|
809
810
|
const i = A ? s : "";
|
|
810
811
|
u(l ? i + " ".repeat(k) : i);
|
|
811
812
|
}
|
|
812
813
|
function T(k = !0) {
|
|
813
814
|
const A = ++c.indentLevel;
|
|
814
|
-
k &&
|
|
815
|
+
k && h(A);
|
|
815
816
|
}
|
|
816
817
|
function O(k = !0) {
|
|
817
818
|
const A = --c.indentLevel;
|
|
818
|
-
k &&
|
|
819
|
+
k && h(A);
|
|
819
820
|
}
|
|
820
821
|
function N() {
|
|
821
|
-
|
|
822
|
+
h(c.indentLevel);
|
|
822
823
|
}
|
|
823
824
|
return {
|
|
824
825
|
context: m,
|
|
@@ -837,7 +838,7 @@ function Fs(e, t) {
|
|
|
837
838
|
/* HelperNameMap.LINKED */
|
|
838
839
|
)}(`), Xe(e, t.key), t.modifier ? (e.push(", "), Xe(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
839
840
|
}
|
|
840
|
-
function
|
|
841
|
+
function js(e, t) {
|
|
841
842
|
const { helper: n, needIndent: s } = e;
|
|
842
843
|
e.push(`${n(
|
|
843
844
|
"normalize"
|
|
@@ -848,7 +849,7 @@ function Us(e, t) {
|
|
|
848
849
|
e.push(", ");
|
|
849
850
|
e.deindent(s()), e.push("])");
|
|
850
851
|
}
|
|
851
|
-
function
|
|
852
|
+
function Vs(e, t) {
|
|
852
853
|
const { helper: n, needIndent: s } = e;
|
|
853
854
|
if (t.cases.length > 1) {
|
|
854
855
|
e.push(`${n(
|
|
@@ -861,20 +862,20 @@ function js(e, t) {
|
|
|
861
862
|
e.deindent(s()), e.push("])");
|
|
862
863
|
}
|
|
863
864
|
}
|
|
864
|
-
function
|
|
865
|
+
function Us(e, t) {
|
|
865
866
|
t.body ? Xe(e, t.body) : e.push("null");
|
|
866
867
|
}
|
|
867
868
|
function Xe(e, t) {
|
|
868
869
|
const { helper: n } = e;
|
|
869
870
|
switch (t.type) {
|
|
870
871
|
case 0:
|
|
871
|
-
|
|
872
|
+
Us(e, t);
|
|
872
873
|
break;
|
|
873
874
|
case 1:
|
|
874
|
-
|
|
875
|
+
Vs(e, t);
|
|
875
876
|
break;
|
|
876
877
|
case 2:
|
|
877
|
-
|
|
878
|
+
js(e, t);
|
|
878
879
|
break;
|
|
879
880
|
case 6:
|
|
880
881
|
Fs(e, t);
|
|
@@ -921,33 +922,33 @@ const Ws = (e, t = {}) => {
|
|
|
921
922
|
needIndent: a
|
|
922
923
|
});
|
|
923
924
|
m.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), m.indent(a), c.length > 0 && (m.push(`const { ${Xt(c.map((T) => `${T}: _${T}`), ", ")} } = ctx`), m.newline()), m.push("return "), Xe(m, e), m.deindent(a), m.push("}"), delete e.helpers;
|
|
924
|
-
const { code: u, map:
|
|
925
|
+
const { code: u, map: h } = m.context();
|
|
925
926
|
return {
|
|
926
927
|
ast: e,
|
|
927
928
|
code: u,
|
|
928
|
-
map:
|
|
929
|
+
map: h ? h.toJSON() : void 0
|
|
929
930
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
930
931
|
};
|
|
931
932
|
};
|
|
932
|
-
function
|
|
933
|
+
function Ys(e, t = {}) {
|
|
933
934
|
const n = ue({}, t), s = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize, m = Ss(n).parse(e);
|
|
934
|
-
return s ? (a && Ms(m), l &&
|
|
935
|
+
return s ? (a && Ms(m), l && xe(m), { ast: m, code: "" }) : (Ds(m, n), Ws(m, n));
|
|
935
936
|
}
|
|
936
|
-
var
|
|
937
|
-
function
|
|
938
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
937
|
+
var Gs = { env: { NODE_ENV: "production" } };
|
|
938
|
+
function xs() {
|
|
939
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (je().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (je().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
939
940
|
}
|
|
940
941
|
function Ot(e) {
|
|
941
942
|
return (n) => Zs(n, e);
|
|
942
943
|
}
|
|
943
944
|
function Zs(e, t) {
|
|
944
|
-
const n =
|
|
945
|
+
const n = Bs(t);
|
|
945
946
|
if (n == null)
|
|
946
947
|
throw et(
|
|
947
948
|
0
|
|
948
949
|
/* NodeTypes.Resource */
|
|
949
950
|
);
|
|
950
|
-
if (
|
|
951
|
+
if (Ht(n) === 1) {
|
|
951
952
|
const a = $s(n);
|
|
952
953
|
return e.plural(a.reduce((c, m) => [
|
|
953
954
|
...c,
|
|
@@ -957,12 +958,12 @@ function Zs(e, t) {
|
|
|
957
958
|
return rn(e, n);
|
|
958
959
|
}
|
|
959
960
|
const Xs = ["b", "body"];
|
|
960
|
-
function
|
|
961
|
-
return
|
|
961
|
+
function Bs(e) {
|
|
962
|
+
return we(e, Xs);
|
|
962
963
|
}
|
|
963
|
-
const
|
|
964
|
+
const Hs = ["c", "cases"];
|
|
964
965
|
function $s(e) {
|
|
965
|
-
return
|
|
966
|
+
return we(e, Hs, []);
|
|
966
967
|
}
|
|
967
968
|
function rn(e, t) {
|
|
968
969
|
const n = Ks(t);
|
|
@@ -975,14 +976,14 @@ function rn(e, t) {
|
|
|
975
976
|
}
|
|
976
977
|
const Js = ["s", "static"];
|
|
977
978
|
function Ks(e) {
|
|
978
|
-
return
|
|
979
|
+
return we(e, Js);
|
|
979
980
|
}
|
|
980
981
|
const zs = ["i", "items"];
|
|
981
982
|
function Qs(e) {
|
|
982
|
-
return
|
|
983
|
+
return we(e, zs, []);
|
|
983
984
|
}
|
|
984
985
|
function Mt(e, t) {
|
|
985
|
-
const n =
|
|
986
|
+
const n = Ht(t);
|
|
986
987
|
switch (n) {
|
|
987
988
|
case 3:
|
|
988
989
|
return lt(t, n);
|
|
@@ -1017,23 +1018,23 @@ function Mt(e, t) {
|
|
|
1017
1018
|
}
|
|
1018
1019
|
}
|
|
1019
1020
|
const qs = ["t", "type"];
|
|
1020
|
-
function
|
|
1021
|
-
return
|
|
1021
|
+
function Ht(e) {
|
|
1022
|
+
return we(e, qs);
|
|
1022
1023
|
}
|
|
1023
1024
|
const ea = ["v", "value"];
|
|
1024
1025
|
function lt(e, t) {
|
|
1025
|
-
const n =
|
|
1026
|
+
const n = we(e, ea);
|
|
1026
1027
|
if (n)
|
|
1027
1028
|
return n;
|
|
1028
1029
|
throw et(t);
|
|
1029
1030
|
}
|
|
1030
1031
|
const ta = ["m", "modifier"];
|
|
1031
1032
|
function na(e) {
|
|
1032
|
-
return
|
|
1033
|
+
return we(e, ta);
|
|
1033
1034
|
}
|
|
1034
1035
|
const sa = ["k", "key"];
|
|
1035
1036
|
function aa(e) {
|
|
1036
|
-
const t =
|
|
1037
|
+
const t = we(e, sa);
|
|
1037
1038
|
if (t)
|
|
1038
1039
|
return t;
|
|
1039
1040
|
throw et(
|
|
@@ -1041,7 +1042,7 @@ function aa(e) {
|
|
|
1041
1042
|
/* NodeTypes.Linked */
|
|
1042
1043
|
);
|
|
1043
1044
|
}
|
|
1044
|
-
function
|
|
1045
|
+
function we(e, t, n) {
|
|
1045
1046
|
for (let s = 0; s < t.length; s++) {
|
|
1046
1047
|
const l = t[s];
|
|
1047
1048
|
if (Ee(e, l) && e[l] != null)
|
|
@@ -1054,15 +1055,15 @@ function et(e) {
|
|
|
1054
1055
|
}
|
|
1055
1056
|
const ra = (e) => e;
|
|
1056
1057
|
let ot = J();
|
|
1057
|
-
function
|
|
1058
|
-
return X(e) &&
|
|
1058
|
+
function Be(e) {
|
|
1059
|
+
return X(e) && Ht(e) === 0 && (Ee(e, "b") || Ee(e, "body"));
|
|
1059
1060
|
}
|
|
1060
1061
|
function la(e, t = {}) {
|
|
1061
1062
|
let n = !1;
|
|
1062
1063
|
const s = t.onError || Es;
|
|
1063
1064
|
return t.onError = (l) => {
|
|
1064
1065
|
n = !0, s(l);
|
|
1065
|
-
}, { ...
|
|
1066
|
+
}, { ...Ys(e, t), detectError: n };
|
|
1066
1067
|
}
|
|
1067
1068
|
// @__NO_SIDE_EFFECTS__
|
|
1068
1069
|
function oa(e, t) {
|
|
@@ -1073,7 +1074,7 @@ function oa(e, t) {
|
|
|
1073
1074
|
return l;
|
|
1074
1075
|
const { ast: a, detectError: c } = la(e, {
|
|
1075
1076
|
...t,
|
|
1076
|
-
location:
|
|
1077
|
+
location: Gs.env.NODE_ENV !== "production",
|
|
1077
1078
|
jit: !0
|
|
1078
1079
|
}), m = Ot(a);
|
|
1079
1080
|
return c ? m : ot[s] = m;
|
|
@@ -1112,7 +1113,7 @@ const Le = {
|
|
|
1112
1113
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1113
1114
|
}, da = 24;
|
|
1114
1115
|
function Re(e) {
|
|
1115
|
-
return
|
|
1116
|
+
return bt(e, null, void 0);
|
|
1116
1117
|
}
|
|
1117
1118
|
function $t(e, t) {
|
|
1118
1119
|
return t.locale != null ? ln(t.locale) : ln(e.locale);
|
|
@@ -1180,8 +1181,8 @@ function pa(e, t, n) {
|
|
|
1180
1181
|
}
|
|
1181
1182
|
return s;
|
|
1182
1183
|
}
|
|
1183
|
-
const
|
|
1184
|
-
|
|
1184
|
+
const De = [];
|
|
1185
|
+
De[
|
|
1185
1186
|
0
|
|
1186
1187
|
/* States.BEFORE_PATH */
|
|
1187
1188
|
] = {
|
|
@@ -1203,7 +1204,7 @@ we[
|
|
|
1203
1204
|
/* States.AFTER_PATH */
|
|
1204
1205
|
]
|
|
1205
1206
|
};
|
|
1206
|
-
|
|
1207
|
+
De[
|
|
1207
1208
|
1
|
|
1208
1209
|
/* States.IN_PATH */
|
|
1209
1210
|
] = {
|
|
@@ -1224,7 +1225,7 @@ we[
|
|
|
1224
1225
|
/* States.AFTER_PATH */
|
|
1225
1226
|
]
|
|
1226
1227
|
};
|
|
1227
|
-
|
|
1228
|
+
De[
|
|
1228
1229
|
2
|
|
1229
1230
|
/* States.BEFORE_IDENT */
|
|
1230
1231
|
] = {
|
|
@@ -1243,7 +1244,7 @@ we[
|
|
|
1243
1244
|
/* Actions.APPEND */
|
|
1244
1245
|
]
|
|
1245
1246
|
};
|
|
1246
|
-
|
|
1247
|
+
De[
|
|
1247
1248
|
3
|
|
1248
1249
|
/* States.IN_IDENT */
|
|
1249
1250
|
] = {
|
|
@@ -1278,7 +1279,7 @@ we[
|
|
|
1278
1279
|
/* Actions.PUSH */
|
|
1279
1280
|
]
|
|
1280
1281
|
};
|
|
1281
|
-
|
|
1282
|
+
De[
|
|
1282
1283
|
4
|
|
1283
1284
|
/* States.IN_SUB_PATH */
|
|
1284
1285
|
] = {
|
|
@@ -1309,7 +1310,7 @@ we[
|
|
|
1309
1310
|
/* Actions.APPEND */
|
|
1310
1311
|
]
|
|
1311
1312
|
};
|
|
1312
|
-
|
|
1313
|
+
De[
|
|
1313
1314
|
5
|
|
1314
1315
|
/* States.IN_SINGLE_QUOTE */
|
|
1315
1316
|
] = {
|
|
@@ -1325,7 +1326,7 @@ we[
|
|
|
1325
1326
|
/* Actions.APPEND */
|
|
1326
1327
|
]
|
|
1327
1328
|
};
|
|
1328
|
-
|
|
1329
|
+
De[
|
|
1329
1330
|
6
|
|
1330
1331
|
/* States.IN_DOUBLE_QUOTE */
|
|
1331
1332
|
] = {
|
|
@@ -1341,9 +1342,9 @@ we[
|
|
|
1341
1342
|
/* Actions.APPEND */
|
|
1342
1343
|
]
|
|
1343
1344
|
};
|
|
1344
|
-
const
|
|
1345
|
-
function
|
|
1346
|
-
return
|
|
1345
|
+
const ba = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1346
|
+
function ha(e) {
|
|
1347
|
+
return ba.test(e);
|
|
1347
1348
|
}
|
|
1348
1349
|
function ga(e) {
|
|
1349
1350
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
@@ -1376,11 +1377,11 @@ function va(e) {
|
|
|
1376
1377
|
}
|
|
1377
1378
|
function Ea(e) {
|
|
1378
1379
|
const t = e.trim();
|
|
1379
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1380
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : ha(t) ? ga(t) : "*" + t;
|
|
1380
1381
|
}
|
|
1381
1382
|
function Ia(e) {
|
|
1382
1383
|
const t = [];
|
|
1383
|
-
let n = -1, s = 0, l = 0, a, c, m, u,
|
|
1384
|
+
let n = -1, s = 0, l = 0, a, c, m, u, h, T, O;
|
|
1384
1385
|
const N = [];
|
|
1385
1386
|
N[
|
|
1386
1387
|
0
|
|
@@ -1419,16 +1420,16 @@ function Ia(e) {
|
|
|
1419
1420
|
}
|
|
1420
1421
|
};
|
|
1421
1422
|
function P() {
|
|
1422
|
-
const
|
|
1423
|
-
if (s === 5 &&
|
|
1424
|
-
return n++, m = "\\" +
|
|
1423
|
+
const V = e[n + 1];
|
|
1424
|
+
if (s === 5 && V === "'" || s === 6 && V === '"')
|
|
1425
|
+
return n++, m = "\\" + V, N[
|
|
1425
1426
|
0
|
|
1426
1427
|
/* Actions.APPEND */
|
|
1427
1428
|
](), !0;
|
|
1428
1429
|
}
|
|
1429
1430
|
for (; s !== null; )
|
|
1430
1431
|
if (n++, a = e[n], !(a === "\\" && P())) {
|
|
1431
|
-
if (u = va(a), O =
|
|
1432
|
+
if (u = va(a), O = De[s], h = O[u] || O.l || 8, h === 8 || (s = h[0], h[1] !== void 0 && (T = N[h[1]], T && (m = a, T() === !1))))
|
|
1432
1433
|
return;
|
|
1433
1434
|
if (s === 7)
|
|
1434
1435
|
return t;
|
|
@@ -1454,7 +1455,7 @@ function ya(e, t) {
|
|
|
1454
1455
|
}
|
|
1455
1456
|
return l;
|
|
1456
1457
|
}
|
|
1457
|
-
const Ta = "10.0.5",
|
|
1458
|
+
const Ta = "10.0.5", ht = -1, ft = "en-US", un = "", mn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1458
1459
|
function ka() {
|
|
1459
1460
|
return {
|
|
1460
1461
|
upper: (e, t) => t === "text" && M(e) ? e.toUpperCase() : t === "vnode" && X(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
@@ -1466,13 +1467,13 @@ let Sn;
|
|
|
1466
1467
|
function Oa(e) {
|
|
1467
1468
|
Sn = e;
|
|
1468
1469
|
}
|
|
1469
|
-
let
|
|
1470
|
+
let wn;
|
|
1470
1471
|
function La(e) {
|
|
1471
|
-
|
|
1472
|
+
wn = e;
|
|
1472
1473
|
}
|
|
1473
|
-
let
|
|
1474
|
+
let Dn;
|
|
1474
1475
|
function Ra(e) {
|
|
1475
|
-
|
|
1476
|
+
Dn = e;
|
|
1476
1477
|
}
|
|
1477
1478
|
let Mn = null;
|
|
1478
1479
|
const Ca = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
@@ -1483,34 +1484,34 @@ const dn = (e) => {
|
|
|
1483
1484
|
Pn = e;
|
|
1484
1485
|
}, Sa = () => Pn;
|
|
1485
1486
|
let fn = 0;
|
|
1486
|
-
function
|
|
1487
|
-
const t = se(e.onWarn) ? e.onWarn :
|
|
1487
|
+
function wa(e = {}) {
|
|
1488
|
+
const t = se(e.onWarn) ? e.onWarn : hs, n = M(e.version) ? e.version : Ta, s = M(e.locale) || se(e.locale) ? e.locale : ft, l = se(s) ? ft : s, a = oe(e.fallbackLocale) || Z(e.fallbackLocale) || M(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, c = Z(e.messages) ? e.messages : Rt(l), m = Z(e.datetimeFormats) ? e.datetimeFormats : Rt(l), u = Z(e.numberFormats) ? e.numberFormats : Rt(l), h = ue(J(), e.modifiers, ka()), T = e.pluralRules || J(), O = se(e.missing) ? e.missing : null, N = le(e.missingWarn) || dt(e.missingWarn) ? e.missingWarn : !0, P = le(e.fallbackWarn) || dt(e.fallbackWarn) ? e.fallbackWarn : !0, V = !!e.fallbackFormat, k = !!e.unresolving, A = se(e.postTranslation) ? e.postTranslation : null, i = Z(e.processor) ? e.processor : null, d = le(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter, b = se(e.messageCompiler) ? e.messageCompiler : Sn, S = se(e.messageResolver) ? e.messageResolver : wn || Na, p = se(e.localeFallbacker) ? e.localeFallbacker : Dn || fa, _ = X(e.fallbackContext) ? e.fallbackContext : void 0, j = e, g = X(j.__datetimeFormatters) ? j.__datetimeFormatters : /* @__PURE__ */ new Map(), I = X(j.__numberFormatters) ? j.__numberFormatters : /* @__PURE__ */ new Map(), Y = X(j.__meta) ? j.__meta : {};
|
|
1488
1489
|
fn++;
|
|
1489
|
-
const
|
|
1490
|
+
const w = {
|
|
1490
1491
|
version: n,
|
|
1491
1492
|
cid: fn,
|
|
1492
1493
|
locale: s,
|
|
1493
1494
|
fallbackLocale: a,
|
|
1494
1495
|
messages: c,
|
|
1495
|
-
modifiers:
|
|
1496
|
+
modifiers: h,
|
|
1496
1497
|
pluralRules: T,
|
|
1497
1498
|
missing: O,
|
|
1498
1499
|
missingWarn: N,
|
|
1499
1500
|
fallbackWarn: P,
|
|
1500
|
-
fallbackFormat:
|
|
1501
|
+
fallbackFormat: V,
|
|
1501
1502
|
unresolving: k,
|
|
1502
1503
|
postTranslation: A,
|
|
1503
1504
|
processor: i,
|
|
1504
1505
|
warnHtmlMessage: d,
|
|
1505
1506
|
escapeParameter: y,
|
|
1506
|
-
messageCompiler:
|
|
1507
|
+
messageCompiler: b,
|
|
1507
1508
|
messageResolver: S,
|
|
1508
1509
|
localeFallbacker: p,
|
|
1509
1510
|
fallbackContext: _,
|
|
1510
1511
|
onWarn: t,
|
|
1511
|
-
__meta:
|
|
1512
|
+
__meta: Y
|
|
1512
1513
|
};
|
|
1513
|
-
return
|
|
1514
|
+
return w.datetimeFormats = m, w.numberFormats = u, w.__datetimeFormatters = g, w.__numberFormatters = I, __INTLIFY_PROD_DEVTOOLS__ && ca(w, n, Y), w;
|
|
1514
1515
|
}
|
|
1515
1516
|
const Rt = (e) => ({ [e]: J() });
|
|
1516
1517
|
function Jt(e, t, n, s, l) {
|
|
@@ -1525,7 +1526,7 @@ function Qe(e, t, n) {
|
|
|
1525
1526
|
const s = e;
|
|
1526
1527
|
s.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1527
1528
|
}
|
|
1528
|
-
function
|
|
1529
|
+
function Da(e, t) {
|
|
1529
1530
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1530
1531
|
}
|
|
1531
1532
|
function Ma(e, t) {
|
|
@@ -1533,31 +1534,31 @@ function Ma(e, t) {
|
|
|
1533
1534
|
if (n === -1)
|
|
1534
1535
|
return !1;
|
|
1535
1536
|
for (let s = n + 1; s < t.length; s++)
|
|
1536
|
-
if (
|
|
1537
|
+
if (Da(e, t[s]))
|
|
1537
1538
|
return !0;
|
|
1538
1539
|
return !1;
|
|
1539
1540
|
}
|
|
1540
1541
|
function _n(e, ...t) {
|
|
1541
|
-
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __datetimeFormatters: m } = e, [u,
|
|
1542
|
+
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __datetimeFormatters: m } = e, [u, h, T, O] = Pt(...t), N = le(T.missingWarn) ? T.missingWarn : e.missingWarn;
|
|
1542
1543
|
le(T.fallbackWarn) ? T.fallbackWarn : e.fallbackWarn;
|
|
1543
|
-
const P = !!T.part,
|
|
1544
|
+
const P = !!T.part, V = $t(e, T), k = c(
|
|
1544
1545
|
e,
|
|
1545
1546
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1546
1547
|
l,
|
|
1547
|
-
|
|
1548
|
+
V
|
|
1548
1549
|
);
|
|
1549
1550
|
if (!M(u) || u === "")
|
|
1550
|
-
return new Intl.DateTimeFormat(
|
|
1551
|
+
return new Intl.DateTimeFormat(V, O).format(h);
|
|
1551
1552
|
let A = {}, i, d = null;
|
|
1552
1553
|
const y = "datetime format";
|
|
1553
1554
|
for (let p = 0; p < k.length && (i = k[p], A = n[i] || {}, d = A[u], !Z(d)); p++)
|
|
1554
1555
|
Jt(e, u, i, N, y);
|
|
1555
1556
|
if (!Z(d) || !M(i))
|
|
1556
|
-
return s ?
|
|
1557
|
-
let
|
|
1558
|
-
pt(O) || (
|
|
1559
|
-
let S = m.get(
|
|
1560
|
-
return S || (S = new Intl.DateTimeFormat(i, ue({}, d, O)), m.set(
|
|
1557
|
+
return s ? ht : u;
|
|
1558
|
+
let b = `${i}__${u}`;
|
|
1559
|
+
pt(O) || (b = `${b}__${JSON.stringify(O)}`);
|
|
1560
|
+
let S = m.get(b);
|
|
1561
|
+
return S || (S = new Intl.DateTimeFormat(i, ue({}, d, O)), m.set(b, S)), P ? S.formatToParts(h) : S.format(h);
|
|
1561
1562
|
}
|
|
1562
1563
|
const Fn = [
|
|
1563
1564
|
"localeMatcher",
|
|
@@ -1588,8 +1589,8 @@ function Pt(...e) {
|
|
|
1588
1589
|
const u = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1589
1590
|
if (!u)
|
|
1590
1591
|
throw Re(Le.INVALID_ISO_DATE_ARGUMENT);
|
|
1591
|
-
const
|
|
1592
|
-
m = new Date(
|
|
1592
|
+
const h = u[3] ? u[3].trim().startsWith("T") ? `${u[1].trim()}${u[3].trim()}` : `${u[1].trim()}T${u[3].trim()}` : u[1].trim();
|
|
1593
|
+
m = new Date(h);
|
|
1593
1594
|
try {
|
|
1594
1595
|
m.toISOString();
|
|
1595
1596
|
} catch {
|
|
@@ -1614,29 +1615,29 @@ function pn(e, t, n) {
|
|
|
1614
1615
|
s.__datetimeFormatters.has(a) && s.__datetimeFormatters.delete(a);
|
|
1615
1616
|
}
|
|
1616
1617
|
}
|
|
1617
|
-
function
|
|
1618
|
-
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __numberFormatters: m } = e, [u,
|
|
1618
|
+
function bn(e, ...t) {
|
|
1619
|
+
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __numberFormatters: m } = e, [u, h, T, O] = Ft(...t), N = le(T.missingWarn) ? T.missingWarn : e.missingWarn;
|
|
1619
1620
|
le(T.fallbackWarn) ? T.fallbackWarn : e.fallbackWarn;
|
|
1620
|
-
const P = !!T.part,
|
|
1621
|
+
const P = !!T.part, V = $t(e, T), k = c(
|
|
1621
1622
|
e,
|
|
1622
1623
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1623
1624
|
l,
|
|
1624
|
-
|
|
1625
|
+
V
|
|
1625
1626
|
);
|
|
1626
1627
|
if (!M(u) || u === "")
|
|
1627
|
-
return new Intl.NumberFormat(
|
|
1628
|
+
return new Intl.NumberFormat(V, O).format(h);
|
|
1628
1629
|
let A = {}, i, d = null;
|
|
1629
1630
|
const y = "number format";
|
|
1630
1631
|
for (let p = 0; p < k.length && (i = k[p], A = n[i] || {}, d = A[u], !Z(d)); p++)
|
|
1631
1632
|
Jt(e, u, i, N, y);
|
|
1632
1633
|
if (!Z(d) || !M(i))
|
|
1633
|
-
return s ?
|
|
1634
|
-
let
|
|
1635
|
-
pt(O) || (
|
|
1636
|
-
let S = m.get(
|
|
1637
|
-
return S || (S = new Intl.NumberFormat(i, ue({}, d, O)), m.set(
|
|
1634
|
+
return s ? ht : u;
|
|
1635
|
+
let b = `${i}__${u}`;
|
|
1636
|
+
pt(O) || (b = `${b}__${JSON.stringify(O)}`);
|
|
1637
|
+
let S = m.get(b);
|
|
1638
|
+
return S || (S = new Intl.NumberFormat(i, ue({}, d, O)), m.set(b, S)), P ? S.formatToParts(h) : S.format(h);
|
|
1638
1639
|
}
|
|
1639
|
-
const
|
|
1640
|
+
const jn = [
|
|
1640
1641
|
"localeMatcher",
|
|
1641
1642
|
"style",
|
|
1642
1643
|
"currency",
|
|
@@ -1665,17 +1666,17 @@ function Ft(...e) {
|
|
|
1665
1666
|
throw Re(Le.INVALID_ARGUMENT);
|
|
1666
1667
|
const m = t;
|
|
1667
1668
|
return M(n) ? a.key = n : Z(n) && Object.keys(n).forEach((u) => {
|
|
1668
|
-
|
|
1669
|
+
jn.includes(u) ? c[u] = n[u] : a[u] = n[u];
|
|
1669
1670
|
}), M(s) ? a.locale = s : Z(s) && (c = s), Z(l) && (c = l), [a.key || "", m, a, c];
|
|
1670
1671
|
}
|
|
1671
|
-
function
|
|
1672
|
+
function hn(e, t, n) {
|
|
1672
1673
|
const s = e;
|
|
1673
1674
|
for (const l in n) {
|
|
1674
1675
|
const a = `${t}__${l}`;
|
|
1675
1676
|
s.__numberFormatters.has(a) && s.__numberFormatters.delete(a);
|
|
1676
1677
|
}
|
|
1677
1678
|
}
|
|
1678
|
-
const Pa = (e) => e, Fa = (e) => "",
|
|
1679
|
+
const Pa = (e) => e, Fa = (e) => "", ja = "text", Va = (e) => e.length === 0 ? "" : Xt(e), Ua = bs;
|
|
1679
1680
|
function gn(e, t) {
|
|
1680
1681
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1681
1682
|
}
|
|
@@ -1683,79 +1684,79 @@ function Wa(e) {
|
|
|
1683
1684
|
const t = ce(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1684
1685
|
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
1686
|
}
|
|
1686
|
-
function
|
|
1687
|
+
function Ya(e, t) {
|
|
1687
1688
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1688
1689
|
}
|
|
1689
|
-
function
|
|
1690
|
+
function Ga(e = {}) {
|
|
1690
1691
|
const t = e.locale, n = Wa(e), s = X(e.pluralRules) && M(t) && se(e.pluralRules[t]) ? e.pluralRules[t] : gn, l = X(e.pluralRules) && M(t) && se(e.pluralRules[t]) ? gn : void 0, a = (i) => i[s(n, i.length, l)], c = e.list || [], m = (i) => c[i], u = e.named || J();
|
|
1691
|
-
ce(e.pluralIndex) &&
|
|
1692
|
-
const
|
|
1692
|
+
ce(e.pluralIndex) && Ya(n, u);
|
|
1693
|
+
const h = (i) => u[i];
|
|
1693
1694
|
function T(i, d) {
|
|
1694
1695
|
const y = se(e.messages) ? e.messages(i, !!d) : X(e.messages) ? e.messages[i] : !1;
|
|
1695
1696
|
return y || (e.parent ? e.parent.message(i) : Fa);
|
|
1696
1697
|
}
|
|
1697
|
-
const O = (i) => e.modifiers ? e.modifiers[i] : Pa, N = Z(e.processor) && se(e.processor.normalize) ? e.processor.normalize :
|
|
1698
|
+
const O = (i) => e.modifiers ? e.modifiers[i] : Pa, N = Z(e.processor) && se(e.processor.normalize) ? e.processor.normalize : Va, P = Z(e.processor) && se(e.processor.interpolate) ? e.processor.interpolate : Ua, V = Z(e.processor) && M(e.processor.type) ? e.processor.type : ja, A = {
|
|
1698
1699
|
list: m,
|
|
1699
|
-
named:
|
|
1700
|
+
named: h,
|
|
1700
1701
|
plural: a,
|
|
1701
1702
|
linked: (i, ...d) => {
|
|
1702
|
-
const [y,
|
|
1703
|
+
const [y, b] = d;
|
|
1703
1704
|
let S = "text", p = "";
|
|
1704
|
-
d.length === 1 ? X(y) ? (p = y.modifier || p, S = y.type || S) : M(y) && (p = y || p) : d.length === 2 && (M(y) && (p = y || p), M(
|
|
1705
|
-
const _ = T(i, !0)(A),
|
|
1705
|
+
d.length === 1 ? X(y) ? (p = y.modifier || p, S = y.type || S) : M(y) && (p = y || p) : d.length === 2 && (M(y) && (p = y || p), M(b) && (S = b || S));
|
|
1706
|
+
const _ = T(i, !0)(A), j = (
|
|
1706
1707
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1707
1708
|
S === "vnode" && oe(_) && p ? _[0] : _
|
|
1708
1709
|
);
|
|
1709
|
-
return p ? O(p)(
|
|
1710
|
+
return p ? O(p)(j, S) : j;
|
|
1710
1711
|
},
|
|
1711
1712
|
message: T,
|
|
1712
|
-
type:
|
|
1713
|
+
type: V,
|
|
1713
1714
|
interpolate: P,
|
|
1714
1715
|
normalize: N,
|
|
1715
1716
|
values: ue(J(), c, u)
|
|
1716
1717
|
};
|
|
1717
1718
|
return A;
|
|
1718
1719
|
}
|
|
1719
|
-
const vn = () => "",
|
|
1720
|
+
const vn = () => "", he = (e) => se(e);
|
|
1720
1721
|
function En(e, ...t) {
|
|
1721
|
-
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: c, messages: m } = e, [u,
|
|
1722
|
-
N &&
|
|
1722
|
+
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: c, messages: m } = e, [u, h] = jt(...t), T = le(h.missingWarn) ? h.missingWarn : e.missingWarn, O = le(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn, N = le(h.escapeParameter) ? h.escapeParameter : e.escapeParameter, P = !!h.resolvedMessage, V = M(h.default) || le(h.default) ? le(h.default) ? a ? u : () => u : h.default : n ? a ? u : () => u : null, k = n || V != null && (M(V) || se(V)), A = $t(e, h);
|
|
1723
|
+
N && xa(h);
|
|
1723
1724
|
let [i, d, y] = P ? [
|
|
1724
1725
|
u,
|
|
1725
1726
|
A,
|
|
1726
1727
|
m[A] || J()
|
|
1727
|
-
] :
|
|
1728
|
-
if (!P && !(M(
|
|
1729
|
-
return l ?
|
|
1728
|
+
] : Vn(e, u, A, c, O, T), b = i, S = u;
|
|
1729
|
+
if (!P && !(M(b) || Be(b) || he(b)) && k && (b = V, S = b), !P && (!(M(b) || Be(b) || he(b)) || !M(d)))
|
|
1730
|
+
return l ? ht : u;
|
|
1730
1731
|
let p = !1;
|
|
1731
1732
|
const _ = () => {
|
|
1732
1733
|
p = !0;
|
|
1733
|
-
},
|
|
1734
|
+
}, j = he(b) ? b : Un(e, u, d, b, S, _);
|
|
1734
1735
|
if (p)
|
|
1735
|
-
return
|
|
1736
|
-
const g =
|
|
1736
|
+
return b;
|
|
1737
|
+
const g = Ba(e, d, y, h), I = Ga(g), Y = Za(e, j, I), w = s ? s(Y, u) : Y;
|
|
1737
1738
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1738
1739
|
const $ = {
|
|
1739
1740
|
timestamp: Date.now(),
|
|
1740
|
-
key: M(u) ? u :
|
|
1741
|
-
locale: d || (
|
|
1742
|
-
format: M(
|
|
1743
|
-
message:
|
|
1741
|
+
key: M(u) ? u : he(b) ? b.key : "",
|
|
1742
|
+
locale: d || (he(b) ? b.locale : ""),
|
|
1743
|
+
format: M(b) ? b : he(b) ? b.source : "",
|
|
1744
|
+
message: w
|
|
1744
1745
|
};
|
|
1745
1746
|
$.meta = ue({}, e.__meta, /* @__PURE__ */ Aa() || {}), ua($);
|
|
1746
1747
|
}
|
|
1747
|
-
return
|
|
1748
|
+
return w;
|
|
1748
1749
|
}
|
|
1749
|
-
function
|
|
1750
|
+
function xa(e) {
|
|
1750
1751
|
oe(e.list) ? e.list = e.list.map((t) => M(t) ? tn(t) : t) : X(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1751
1752
|
M(e.named[t]) && (e.named[t] = tn(e.named[t]));
|
|
1752
1753
|
});
|
|
1753
1754
|
}
|
|
1754
|
-
function
|
|
1755
|
-
const { messages: c, onWarn: m, messageResolver: u, localeFallbacker:
|
|
1755
|
+
function Vn(e, t, n, s, l, a) {
|
|
1756
|
+
const { messages: c, onWarn: m, messageResolver: u, localeFallbacker: h } = e, T = h(e, s, n);
|
|
1756
1757
|
let O = J(), N, P = null;
|
|
1757
|
-
const
|
|
1758
|
-
for (let k = 0; k < T.length && (N = T[k], O = c[N] || J(), (P = u(O, t)) === null && (P = O[t]), !(M(P) ||
|
|
1758
|
+
const V = "translate";
|
|
1759
|
+
for (let k = 0; k < T.length && (N = T[k], O = c[N] || J(), (P = u(O, t)) === null && (P = O[t]), !(M(P) || Be(P) || he(P))); k++)
|
|
1759
1760
|
if (!Ma(N, T)) {
|
|
1760
1761
|
const A = Jt(
|
|
1761
1762
|
e,
|
|
@@ -1763,21 +1764,21 @@ function jn(e, t, n, s, l, a) {
|
|
|
1763
1764
|
t,
|
|
1764
1765
|
N,
|
|
1765
1766
|
a,
|
|
1766
|
-
|
|
1767
|
+
V
|
|
1767
1768
|
);
|
|
1768
1769
|
A !== t && (P = A);
|
|
1769
1770
|
}
|
|
1770
1771
|
return [P, N, O];
|
|
1771
1772
|
}
|
|
1772
|
-
function
|
|
1773
|
+
function Un(e, t, n, s, l, a) {
|
|
1773
1774
|
const { messageCompiler: c, warnHtmlMessage: m } = e;
|
|
1774
|
-
if (
|
|
1775
|
-
const
|
|
1776
|
-
return
|
|
1775
|
+
if (he(s)) {
|
|
1776
|
+
const h = s;
|
|
1777
|
+
return h.locale = h.locale || n, h.key = h.key || t, h;
|
|
1777
1778
|
}
|
|
1778
1779
|
if (c == null) {
|
|
1779
|
-
const
|
|
1780
|
-
return
|
|
1780
|
+
const h = () => s;
|
|
1781
|
+
return h.locale = n, h.key = t, h;
|
|
1781
1782
|
}
|
|
1782
1783
|
const u = c(s, Xa(e, n, l, s, m, a));
|
|
1783
1784
|
return u.locale = n, u.key = t, u.source = s, u;
|
|
@@ -1785,11 +1786,11 @@ function Vn(e, t, n, s, l, a) {
|
|
|
1785
1786
|
function Za(e, t, n) {
|
|
1786
1787
|
return t(n);
|
|
1787
1788
|
}
|
|
1788
|
-
function
|
|
1789
|
+
function jt(...e) {
|
|
1789
1790
|
const [t, n, s] = e, l = J();
|
|
1790
|
-
if (!M(t) && !ce(t) && !
|
|
1791
|
+
if (!M(t) && !ce(t) && !he(t) && !Be(t))
|
|
1791
1792
|
throw Re(Le.INVALID_ARGUMENT);
|
|
1792
|
-
const a = ce(t) ? String(t) : (
|
|
1793
|
+
const a = ce(t) ? String(t) : (he(t), t);
|
|
1793
1794
|
return ce(n) ? l.plural = n : M(n) ? l.default = n : Z(n) && !pt(n) ? l.named = n : oe(n) && (l.list = n), ce(s) ? l.plural = s : M(s) ? l.default = s : Z(s) && ue(l, s), [a, l];
|
|
1794
1795
|
}
|
|
1795
1796
|
function Xa(e, t, n, s, l, a) {
|
|
@@ -1803,43 +1804,43 @@ function Xa(e, t, n, s, l, a) {
|
|
|
1803
1804
|
onCacheKey: (c) => us(t, n, c)
|
|
1804
1805
|
};
|
|
1805
1806
|
}
|
|
1806
|
-
function
|
|
1807
|
-
const { modifiers: l, pluralRules: a, messageResolver: c, fallbackLocale: m, fallbackWarn: u, missingWarn:
|
|
1807
|
+
function Ba(e, t, n, s) {
|
|
1808
|
+
const { modifiers: l, pluralRules: a, messageResolver: c, fallbackLocale: m, fallbackWarn: u, missingWarn: h, fallbackContext: T } = e, N = {
|
|
1808
1809
|
locale: t,
|
|
1809
1810
|
modifiers: l,
|
|
1810
1811
|
pluralRules: a,
|
|
1811
|
-
messages: (P,
|
|
1812
|
+
messages: (P, V) => {
|
|
1812
1813
|
let k = c(n, P);
|
|
1813
|
-
if (k == null && (T ||
|
|
1814
|
-
const [, , A] =
|
|
1814
|
+
if (k == null && (T || V)) {
|
|
1815
|
+
const [, , A] = Vn(
|
|
1815
1816
|
T || e,
|
|
1816
1817
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1817
1818
|
P,
|
|
1818
1819
|
t,
|
|
1819
1820
|
m,
|
|
1820
1821
|
u,
|
|
1821
|
-
|
|
1822
|
+
h
|
|
1822
1823
|
);
|
|
1823
1824
|
k = c(A, P);
|
|
1824
1825
|
}
|
|
1825
|
-
if (M(k) ||
|
|
1826
|
+
if (M(k) || Be(k)) {
|
|
1826
1827
|
let A = !1;
|
|
1827
|
-
const d =
|
|
1828
|
+
const d = Un(e, P, t, k, P, () => {
|
|
1828
1829
|
A = !0;
|
|
1829
1830
|
});
|
|
1830
1831
|
return A ? vn : d;
|
|
1831
|
-
} else return
|
|
1832
|
+
} else return he(k) ? k : vn;
|
|
1832
1833
|
}
|
|
1833
1834
|
};
|
|
1834
1835
|
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
1836
|
}
|
|
1836
|
-
|
|
1837
|
-
var Ba = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_60777d62-d94a-4f7f-a837-ab9fb701cf89", 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_60777d62-d94a-4f7f-a837-ab9fb701cf89", 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: "1872", ACTIONS_ORCHESTRATION_ID: "a3e54cea-5ae2-4280-95f2-d09e847b8c12.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: "20260406.80.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:14954", 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: "24552148856", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "e8f6d583aa39556c6e5fda802b539fdd064bfcbe", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/main", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6M31dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3NzY0MzEwODUsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc3NjQwODg4NSwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjU0OGYzMjA0LWFhMjktNTBhZC04OGRiLTk3MGFkYWMxYmMxZCIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc3NjQwODU4NSwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI3MTc4MDEyMjA5M1wiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiM2YzNTQ0ODAwYmFhM2I4YmM0YWFhZTk0ZWU4NGMwMTJiZDY0OGZmZVwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL21haW5cIixcInJlZl9wcm90ZWN0ZWRcIjpcInRydWVcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIyNDU1MjE0ODg1NlwiLFwicnVuX251bWJlclwiOlwiNDdcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCJlOGY2ZDU4M2FhMzk1NTZjNmU1ZmRhODAyYjUzOWZkZDA2NGJmY2JlXCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy9tYWluXCIsXCJ3b3JrZmxvd19zaGFcIjpcImU4ZjZkNTgzYWEzOTU1NmM2ZTVmZGE4MDJiNTM5ZmRkMDY0YmZjYmVcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL2hybS1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL21haW4iLCJvcmNoX2lkIjoiYTNlNTRjZWEtNWFlMi00MjgwLTk1ZjItZDA5ZTg0N2I4YzEyLnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiJhM2U1NGNlYS01YWUyLTQyODAtOTVmMi1kMDllODQ3YjhjMTIiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJ1bl9pZCI6IjI0NTUyMTQ4ODU2IiwicnVuX251bWJlciI6IjQ3IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDA2MDkzNSIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOmEzZTU0Y2VhLTVhZTItNDI4MC05NWYyLWQwOWU4NDdiOGMxMjo1NDhmMzIwNC1hYTI5LTUwYWQtODhkYi05NzBhZGFjMWJjMWQgQWN0aW9ucy5SdW5uZXI6YTNlNTRjZWEtNWFlMi00MjgwLTk1ZjItZDA5ZTg0N2I4YzEyOjU0OGYzMjA0LWFhMjktNTBhZC04OGRiLTk3MGFkYWMxYmMxZCBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czphM2U1NGNlYS01YWUyLTQyODAtOTVmMi1kMDllODQ3YjhjMTI6NTQ4ZjMyMDQtYWEyOS01MGFkLTg4ZGItOTcwYWRhYzFiYzFkIGdlbmVyYXRlX2lkX3Rva2VuOmEzZTU0Y2VhLTVhZTItNDI4MC05NWYyLWQwOWU4NDdiOGMxMjo1NDhmMzIwNC1hYTI5LTUwYWQtODhkYi05NzBhZGFjMWJjMWQgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiJlOGY2ZDU4M2FhMzk1NTZjNmU1ZmRhODAyYjUzOWZkZDA2NGJmY2JlIiwidHJ1c3RfdGllciI6IjEifQ.aIRLbXAsOy46ozj1s4uq3ECf-LN5p30SLIv-SZbDNEs39Qe36LcqWZY0gjtbfKUv3rtZif3S6ZDg5_54b1G3qriKdk9r1lpqgrMWiBWiGEqM8k_aAjxJsbX8_tW5is9ngpDJuYZ-m0Rkr-berQQ8uny-AsqBNG1zcBWBxxn0-17Dl56-bAT3eCFOQFna3hDCzDcU-yennU2kAX7ZSLqPyadYJYRVE0O1Y8kfwGF7jVCJwxIlsb4A01zsXz2UqsLEpsGEHPnMzO_B6TVUjTTyKOyVYbctEEUjgvJgW2wR-CcpZZyZo95aKTdsLcIuoa82tKMI78THaNqnOs5EOw6KAw", 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_bb4b2508-12d9-408f-8f81-ebea604d43d8", INVOCATION_ID: "e1bc3fdd7c1c42a88d06aa6d39e74276", 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: "47", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --access public --tag latest --no-git-checks", npm_package_scripts_publish_npm_beta: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --access public --tag beta --no-git-checks", npm_package_scripts_publish_github: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --tag latest --no-git-checks", npm_package_scripts_publish_github_beta: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --tag beta --no-git-checks", npm_config_frozen_lockfile: "", npm_package_devDependencies__vitest_ui: "^1.2.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies__vue_eslint_config_typescript: "^12.0.0", npm_package_devDependencies_eslint: "^9.39.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000060935", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "^2.14.36", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__casl_ability: "^3.4.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^4.0.0", npm_package_devDependencies__vue_eslint_config_prettier: "^8.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.0.5", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts", npm_package_dependencies__feedmepos_hrm_permission: "workspace:*", npm_package_devDependencies__rushstack_eslint_patch: "^1.3.3", npm_package_devDependencies_eslint_plugin_unused_imports: "^4.3.0", npm_package_devDependencies_jsdom: "^24.0.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "true", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_uuid: "^10.0.0", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "e8f6d583aa39556c6e5fda802b539fdd064bfcbe", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.2", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_devDependencies_globals: "^16.5.0", npm_package_scripts_format: "prettier --write src/", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_60777d62-d94a-4f7f-a837-ab9fb701cf89", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_package_devDependencies_vue_eslint_parser: "^10.2.0", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/123//idtoken/a3e54cea-5ae2-4280-95f2-d09e847b8c12/548f3204-aa29-50ad-88db-970adac1bc1d?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_60777d62-d94a-4f7f-a837-ab9fb701cf89", 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_60777d62-d94a-4f7f-a837-ab9fb701cf89", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1837
|
+
xs();
|
|
1838
|
+
var Ha = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_4cb0362f-c014-49ad-8f38-21b76b0b6646", 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_4cb0362f-c014-49ad-8f38-21b76b0b6646", 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: "1868", ACTIONS_ORCHESTRATION_ID: "edf849f2-5b3b-4d9b-8688-83ff764cc31a.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: "20260406.80.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:15318", 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: "24559208508", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "ae1b0a011c3ee9c6409f4b3aa0f261bc1544055c", 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/pos-bypass-validation", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9wb3MtYnlwYXNzLXZhbGlkYXRpb25cIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3NzY0NDE5NjgsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc3NjQxOTc2OCwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjA2OWFjNTQzLWU1YTItNWZkMC05MzNkLThhMjc5Y2MzYzBhNCIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc3NjQxOTQ2OCwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI3MTgwMzMyODUxNVwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiM2YzNTQ0ODAwYmFhM2I4YmM0YWFhZTk0ZWU4NGMwMTJiZDY0OGZmZVwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL3Bvcy1ieXBhc3MtdmFsaWRhdGlvblwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIyNDU1OTIwODUwOFwiLFwicnVuX251bWJlclwiOlwiNTBcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCJhZTFiMGEwMTFjM2VlOWM2NDA5ZjRiM2FhMGYyNjFiYzE1NDQwNTVjXCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy9wb3MtYnlwYXNzLXZhbGlkYXRpb25cIixcIndvcmtmbG93X3NoYVwiOlwiYWUxYjBhMDExYzNlZTljNjQwOWY0YjNhYTBmMjYxYmMxNTQ0MDU1Y1wifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvaHJtLXNlcnZpY2U6cmVmOnJlZnMvaGVhZHMvcG9zLWJ5cGFzcy12YWxpZGF0aW9uIiwib3JjaF9pZCI6ImVkZjg0OWYyLTViM2ItNGQ5Yi04Njg4LTgzZmY3NjRjYzMxYS5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiZWRmODQ5ZjItNWIzYi00ZDliLTg2ODgtODNmZjc2NGNjMzFhIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJydW5faWQiOiIyNDU1OTIwODUwOCIsInJ1bl9udW1iZXIiOiI1MCIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDAwNjEwNDYiLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czplZGY4NDlmMi01YjNiLTRkOWItODY4OC04M2ZmNzY0Y2MzMWE6MDY5YWM1NDMtZTVhMi01ZmQwLTkzM2QtOGEyNzljYzNjMGE0IEFjdGlvbnMuUnVubmVyOmVkZjg0OWYyLTViM2ItNGQ5Yi04Njg4LTgzZmY3NjRjYzMxYTowNjlhYzU0My1lNWEyLTVmZDAtOTMzZC04YTI3OWNjM2MwYTQgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6ZWRmODQ5ZjItNWIzYi00ZDliLTg2ODgtODNmZjc2NGNjMzFhOjA2OWFjNTQzLWU1YTItNWZkMC05MzNkLThhMjc5Y2MzYzBhNCBnZW5lcmF0ZV9pZF90b2tlbjplZGY4NDlmMi01YjNiLTRkOWItODY4OC04M2ZmNzY0Y2MzMWE6MDY5YWM1NDMtZTVhMi01ZmQwLTkzM2QtOGEyNzljYzNjMGE0IEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiYWUxYjBhMDExYzNlZTljNjQwOWY0YjNhYTBmMjYxYmMxNTQ0MDU1YyIsInRydXN0X3RpZXIiOiIxIn0.faaVklD-J74gmm8S9NLsIYOSsPRq793M4ZaqilzRduhN0PMpm9eW0woGIT8_Aqfe1qqE99r37AhvyQDzxTXgCatbWc6-WgiPddd3UTbf34qzVvzJq3-CvffXfWFMxzPfJzguBbjARg6OlyYJBDZNREJ1I5F9hZq5pqEPOd5Tc5tP9pu06BYRCKu7Xqs0Jwv76uEqll7-shSoTk-J1qhKjSTv_9cl9JvTGFDyT9S2inZxxYo73gz7jaZvbg3hP0H_yNfYdw7qEZ5iK7gv-umpxxq69LCYTC-sTLUJst7VdLIchoYsut99lDcdpK0yWNQWOdDRGDtU0DxGqvP8qCPuZA", 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_c58df1f6-057f-424d-8d69-f4fbcb1dc639", INVOCATION_ID: "c2f514bd6a2d4d9da19eb9bdb8b073dc", 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: "50", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --access public --tag latest --no-git-checks", npm_package_scripts_publish_npm_beta: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --access public --tag beta --no-git-checks", npm_package_scripts_publish_github: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --tag latest --no-git-checks", npm_package_scripts_publish_github_beta: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --tag beta --no-git-checks", npm_config_frozen_lockfile: "", npm_package_devDependencies__vitest_ui: "^1.2.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies__vue_eslint_config_typescript: "^12.0.0", npm_package_devDependencies_eslint: "^9.39.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000061046", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "pos-bypass-validation", 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.6-dev.1", 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: "ae1b0a011c3ee9c6409f4b3aa0f261bc1544055c", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.2", GITHUB_REF: "refs/heads/pos-bypass-validation", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", npm_package_devDependencies_globals: "^16.5.0", npm_package_scripts_format: "prettier --write src/", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_4cb0362f-c014-49ad-8f38-21b76b0b6646", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_package_devDependencies_vue_eslint_parser: "^10.2.0", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/210//idtoken/edf849f2-5b3b-4d9b-8688-83ff764cc31a/069ac543-e5a2-5fd0-933d-8a279cc3c0a4?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_4cb0362f-c014-49ad-8f38-21b76b0b6646", 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_4cb0362f-c014-49ad-8f38-21b76b0b6646", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1838
1839
|
const $a = "10.0.5";
|
|
1839
1840
|
function Ja() {
|
|
1840
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
1841
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (je().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (je().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (je().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (je().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1841
1842
|
}
|
|
1842
|
-
const
|
|
1843
|
+
const He = {
|
|
1843
1844
|
// composer module errors
|
|
1844
1845
|
UNEXPECTED_RETURN_TYPE: da,
|
|
1845
1846
|
// 24
|
|
@@ -1853,9 +1854,9 @@ const Be = {
|
|
|
1853
1854
|
UNEXPECTED_ERROR: 32
|
|
1854
1855
|
};
|
|
1855
1856
|
function nt(e, ...t) {
|
|
1856
|
-
return
|
|
1857
|
+
return bt(e, null, void 0);
|
|
1857
1858
|
}
|
|
1858
|
-
const
|
|
1859
|
+
const Vt = /* @__PURE__ */ Ue("__translateVNode"), Ut = /* @__PURE__ */ Ue("__datetimeParts"), Wt = /* @__PURE__ */ Ue("__numberParts"), Ka = Ue("__setPluralRules"), Wn = /* @__PURE__ */ Ue("__injectWithOption"), Yt = /* @__PURE__ */ Ue("__dispose");
|
|
1859
1860
|
function st(e) {
|
|
1860
1861
|
if (!X(e))
|
|
1861
1862
|
return e;
|
|
@@ -1877,12 +1878,12 @@ function st(e) {
|
|
|
1877
1878
|
}
|
|
1878
1879
|
return e;
|
|
1879
1880
|
}
|
|
1880
|
-
function
|
|
1881
|
+
function Yn(e, t) {
|
|
1881
1882
|
const { messages: n, __i18n: s, messageResolver: l, flatJson: a } = t, c = Z(n) ? n : oe(s) ? J() : { [e]: J() };
|
|
1882
1883
|
if (oe(s) && s.forEach((m) => {
|
|
1883
1884
|
if ("locale" in m && "resource" in m) {
|
|
1884
|
-
const { locale: u, resource:
|
|
1885
|
-
u ? (c[u] = c[u] || J(), mt(
|
|
1885
|
+
const { locale: u, resource: h } = m;
|
|
1886
|
+
u ? (c[u] = c[u] || J(), mt(h, c[u])) : mt(h, c);
|
|
1886
1887
|
} else
|
|
1887
1888
|
M(m) && mt(JSON.parse(m), c);
|
|
1888
1889
|
}), l == null && a)
|
|
@@ -1890,12 +1891,12 @@ function Gn(e, t) {
|
|
|
1890
1891
|
Ee(c, m) && st(c[m]);
|
|
1891
1892
|
return c;
|
|
1892
1893
|
}
|
|
1893
|
-
function
|
|
1894
|
+
function Gn(e) {
|
|
1894
1895
|
return e.type;
|
|
1895
1896
|
}
|
|
1896
1897
|
function za(e, t, n) {
|
|
1897
1898
|
let s = X(t.messages) ? t.messages : J();
|
|
1898
|
-
"__i18nGlobal" in n && (s =
|
|
1899
|
+
"__i18nGlobal" in n && (s = Yn(e.locale.value, {
|
|
1899
1900
|
messages: s,
|
|
1900
1901
|
__i18n: n.__i18nGlobal
|
|
1901
1902
|
}));
|
|
@@ -1924,15 +1925,15 @@ function In(e) {
|
|
|
1924
1925
|
const Nn = "__INTLIFY_META__", yn = () => [], Qa = () => !1;
|
|
1925
1926
|
let Tn = 0;
|
|
1926
1927
|
function kn(e) {
|
|
1927
|
-
return (t, n, s, l) => e(n, s,
|
|
1928
|
+
return (t, n, s, l) => e(n, s, Gt() || void 0, l);
|
|
1928
1929
|
}
|
|
1929
1930
|
const qa = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1930
|
-
const e =
|
|
1931
|
+
const e = Gt();
|
|
1931
1932
|
let t = null;
|
|
1932
|
-
return e && (t =
|
|
1933
|
+
return e && (t = Gn(e)[Nn]) ? { [Nn]: t } : null;
|
|
1933
1934
|
};
|
|
1934
1935
|
function er(e = {}) {
|
|
1935
|
-
const { __root: t, __injectWithOption: n } = e, s = t === void 0, l = e.flatJson, a = qt ?
|
|
1936
|
+
const { __root: t, __injectWithOption: n } = e, s = t === void 0, l = e.flatJson, a = qt ? Ve : Hn;
|
|
1936
1937
|
let c = le(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1937
1938
|
const m = a(
|
|
1938
1939
|
// prettier-ignore
|
|
@@ -1940,8 +1941,8 @@ function er(e = {}) {
|
|
|
1940
1941
|
), u = a(
|
|
1941
1942
|
// prettier-ignore
|
|
1942
1943
|
t && c ? t.fallbackLocale.value : M(e.fallbackLocale) || oe(e.fallbackLocale) || Z(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : m.value
|
|
1943
|
-
),
|
|
1944
|
-
let N = t ? t.missingWarn : le(e.missingWarn) || dt(e.missingWarn) ? e.missingWarn : !0, P = t ? t.fallbackWarn : le(e.fallbackWarn) || dt(e.fallbackWarn) ? e.fallbackWarn : !0,
|
|
1944
|
+
), h = a(Yn(m.value, e)), T = a(Z(e.datetimeFormats) ? e.datetimeFormats : { [m.value]: {} }), O = a(Z(e.numberFormats) ? e.numberFormats : { [m.value]: {} });
|
|
1945
|
+
let N = t ? t.missingWarn : le(e.missingWarn) || dt(e.missingWarn) ? e.missingWarn : !0, P = t ? t.fallbackWarn : le(e.fallbackWarn) || dt(e.fallbackWarn) ? e.fallbackWarn : !0, V = t ? t.fallbackRoot : le(e.fallbackRoot) ? e.fallbackRoot : !0, k = !!e.fallbackFormat, A = se(e.missing) ? e.missing : null, i = se(e.missing) ? kn(e.missing) : null, d = se(e.postTranslation) ? e.postTranslation : null, y = t ? t.warnHtmlMessage : le(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, b = !!e.escapeParameter;
|
|
1945
1946
|
const S = t ? t.modifiers : Z(e.modifiers) ? e.modifiers : {};
|
|
1946
1947
|
let p = e.pluralRules || t && t.pluralRules, _;
|
|
1947
1948
|
_ = (() => {
|
|
@@ -1950,7 +1951,7 @@ function er(e = {}) {
|
|
|
1950
1951
|
version: $a,
|
|
1951
1952
|
locale: m.value,
|
|
1952
1953
|
fallbackLocale: u.value,
|
|
1953
|
-
messages:
|
|
1954
|
+
messages: h.value,
|
|
1954
1955
|
modifiers: S,
|
|
1955
1956
|
pluralRules: p,
|
|
1956
1957
|
missing: i === null ? void 0 : i,
|
|
@@ -1960,20 +1961,20 @@ function er(e = {}) {
|
|
|
1960
1961
|
unresolving: !0,
|
|
1961
1962
|
postTranslation: d === null ? void 0 : d,
|
|
1962
1963
|
warnHtmlMessage: y,
|
|
1963
|
-
escapeParameter:
|
|
1964
|
+
escapeParameter: b,
|
|
1964
1965
|
messageResolver: e.messageResolver,
|
|
1965
1966
|
messageCompiler: e.messageCompiler,
|
|
1966
1967
|
__meta: { framework: "vue" }
|
|
1967
1968
|
};
|
|
1968
1969
|
f.datetimeFormats = T.value, f.numberFormats = O.value, f.__datetimeFormatters = Z(_) ? _.__datetimeFormatters : void 0, f.__numberFormatters = Z(_) ? _.__numberFormatters : void 0;
|
|
1969
|
-
const E =
|
|
1970
|
+
const E = wa(f);
|
|
1970
1971
|
return s && dn(E), E;
|
|
1971
1972
|
})(), Qe(_, m.value, u.value);
|
|
1972
1973
|
function g() {
|
|
1973
1974
|
return [
|
|
1974
1975
|
m.value,
|
|
1975
1976
|
u.value,
|
|
1976
|
-
|
|
1977
|
+
h.value,
|
|
1977
1978
|
T.value,
|
|
1978
1979
|
O.value
|
|
1979
1980
|
];
|
|
@@ -1983,56 +1984,56 @@ function er(e = {}) {
|
|
|
1983
1984
|
set: (f) => {
|
|
1984
1985
|
m.value = f, _.locale = m.value;
|
|
1985
1986
|
}
|
|
1986
|
-
}),
|
|
1987
|
+
}), Y = z({
|
|
1987
1988
|
get: () => u.value,
|
|
1988
1989
|
set: (f) => {
|
|
1989
1990
|
u.value = f, _.fallbackLocale = u.value, Qe(_, m.value, f);
|
|
1990
1991
|
}
|
|
1991
|
-
}),
|
|
1992
|
+
}), w = z(() => h.value), $ = /* @__PURE__ */ z(() => T.value), q = /* @__PURE__ */ z(() => O.value);
|
|
1992
1993
|
function C() {
|
|
1993
1994
|
return se(d) ? d : null;
|
|
1994
1995
|
}
|
|
1995
1996
|
function L(f) {
|
|
1996
1997
|
d = f, _.postTranslation = f;
|
|
1997
1998
|
}
|
|
1998
|
-
function
|
|
1999
|
+
function D() {
|
|
1999
2000
|
return A;
|
|
2000
2001
|
}
|
|
2001
|
-
function
|
|
2002
|
+
function B(f) {
|
|
2002
2003
|
f !== null && (i = kn(f)), A = f, _.missing = i;
|
|
2003
2004
|
}
|
|
2004
|
-
const
|
|
2005
|
+
const U = (f, E, K, re, Pe, at) => {
|
|
2005
2006
|
g();
|
|
2006
|
-
let
|
|
2007
|
+
let Ge;
|
|
2007
2008
|
try {
|
|
2008
|
-
|
|
2009
|
+
Ha.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (_.fallbackContext = t ? Sa() : void 0), Ge = f(_);
|
|
2009
2010
|
} finally {
|
|
2010
2011
|
__INTLIFY_PROD_DEVTOOLS__, s || (_.fallbackContext = void 0);
|
|
2011
2012
|
}
|
|
2012
2013
|
if (K !== "translate exists" && // for not `te` (e.g `t`)
|
|
2013
|
-
ce(
|
|
2014
|
-
const [Xn,
|
|
2015
|
-
return t &&
|
|
2014
|
+
ce(Ge) && Ge === ht || K === "translate exists" && !Ge) {
|
|
2015
|
+
const [Xn, Yr] = E();
|
|
2016
|
+
return t && V ? re(t) : Pe(Xn);
|
|
2016
2017
|
} else {
|
|
2017
|
-
if (at(
|
|
2018
|
-
return
|
|
2019
|
-
throw nt(
|
|
2018
|
+
if (at(Ge))
|
|
2019
|
+
return Ge;
|
|
2020
|
+
throw nt(He.UNEXPECTED_RETURN_TYPE);
|
|
2020
2021
|
}
|
|
2021
2022
|
};
|
|
2022
2023
|
function R(...f) {
|
|
2023
|
-
return
|
|
2024
|
+
return U((E) => Reflect.apply(En, null, [E, ...f]), () => jt(...f), "translate", (E) => Reflect.apply(E.t, E, [...f]), (E) => E, (E) => M(E));
|
|
2024
2025
|
}
|
|
2025
|
-
function
|
|
2026
|
+
function G(...f) {
|
|
2026
2027
|
const [E, K, re] = f;
|
|
2027
2028
|
if (re && !X(re))
|
|
2028
|
-
throw nt(
|
|
2029
|
+
throw nt(He.INVALID_ARGUMENT);
|
|
2029
2030
|
return R(E, K, ue({ resolvedMessage: !0 }, re || {}));
|
|
2030
2031
|
}
|
|
2031
2032
|
function Q(...f) {
|
|
2032
|
-
return
|
|
2033
|
+
return U((E) => Reflect.apply(_n, null, [E, ...f]), () => Pt(...f), "datetime format", (E) => Reflect.apply(E.d, E, [...f]), () => un, (E) => M(E));
|
|
2033
2034
|
}
|
|
2034
2035
|
function ge(...f) {
|
|
2035
|
-
return
|
|
2036
|
+
return U((E) => Reflect.apply(bn, null, [E, ...f]), () => Ft(...f), "number format", (E) => Reflect.apply(E.n, E, [...f]), () => un, (E) => M(E));
|
|
2036
2037
|
}
|
|
2037
2038
|
function fe(f) {
|
|
2038
2039
|
return f.map((E) => M(E) || ce(E) || le(E) ? In(String(E)) : E);
|
|
@@ -2043,7 +2044,7 @@ function er(e = {}) {
|
|
|
2043
2044
|
type: "vnode"
|
|
2044
2045
|
};
|
|
2045
2046
|
function ve(...f) {
|
|
2046
|
-
return
|
|
2047
|
+
return U((E) => {
|
|
2047
2048
|
let K;
|
|
2048
2049
|
const re = E;
|
|
2049
2050
|
try {
|
|
@@ -2052,30 +2053,30 @@ function er(e = {}) {
|
|
|
2052
2053
|
re.processor = null;
|
|
2053
2054
|
}
|
|
2054
2055
|
return K;
|
|
2055
|
-
}, () =>
|
|
2056
|
+
}, () => jt(...f), "translate", (E) => E[Vt](...f), (E) => [In(E)], (E) => oe(E));
|
|
2056
2057
|
}
|
|
2057
2058
|
function $e(...f) {
|
|
2058
|
-
return
|
|
2059
|
+
return U((E) => Reflect.apply(bn, null, [E, ...f]), () => Ft(...f), "number format", (E) => E[Wt](...f), yn, (E) => M(E) || oe(E));
|
|
2059
2060
|
}
|
|
2060
2061
|
function Je(...f) {
|
|
2061
|
-
return
|
|
2062
|
+
return U((E) => Reflect.apply(_n, null, [E, ...f]), () => Pt(...f), "datetime format", (E) => E[Ut](...f), yn, (E) => M(E) || oe(E));
|
|
2062
2063
|
}
|
|
2063
2064
|
function vt(f) {
|
|
2064
2065
|
p = f, _.pluralRules = p;
|
|
2065
2066
|
}
|
|
2066
2067
|
function Et(f, E) {
|
|
2067
|
-
return
|
|
2068
|
+
return U(() => {
|
|
2068
2069
|
if (!f)
|
|
2069
2070
|
return !1;
|
|
2070
2071
|
const K = M(E) ? E : m.value, re = We(K), Pe = _.messageResolver(re, f);
|
|
2071
|
-
return
|
|
2072
|
+
return Be(Pe) || he(Pe) || M(Pe);
|
|
2072
2073
|
}, () => [f], "translate exists", (K) => Reflect.apply(K.te, K, [f, E]), Qa, (K) => le(K));
|
|
2073
2074
|
}
|
|
2074
2075
|
function It(f) {
|
|
2075
2076
|
let E = null;
|
|
2076
2077
|
const K = An(_, u.value, m.value);
|
|
2077
2078
|
for (let re = 0; re < K.length; re++) {
|
|
2078
|
-
const Pe =
|
|
2079
|
+
const Pe = h.value[K[re]] || {}, at = _.messageResolver(Pe, f);
|
|
2079
2080
|
if (at != null) {
|
|
2080
2081
|
E = at;
|
|
2081
2082
|
break;
|
|
@@ -2088,24 +2089,24 @@ function er(e = {}) {
|
|
|
2088
2089
|
return E ?? (t ? t.tm(f) || {} : {});
|
|
2089
2090
|
}
|
|
2090
2091
|
function We(f) {
|
|
2091
|
-
return
|
|
2092
|
+
return h.value[f] || {};
|
|
2092
2093
|
}
|
|
2093
|
-
function
|
|
2094
|
+
function Ye(f, E) {
|
|
2094
2095
|
if (l) {
|
|
2095
2096
|
const K = { [f]: E };
|
|
2096
2097
|
for (const re in K)
|
|
2097
2098
|
Ee(K, re) && st(K[re]);
|
|
2098
2099
|
E = K[f];
|
|
2099
2100
|
}
|
|
2100
|
-
|
|
2101
|
+
h.value[f] = E, _.messages = h.value;
|
|
2101
2102
|
}
|
|
2102
2103
|
function ze(f, E) {
|
|
2103
|
-
|
|
2104
|
+
h.value[f] = h.value[f] || {};
|
|
2104
2105
|
const K = { [f]: E };
|
|
2105
2106
|
if (l)
|
|
2106
2107
|
for (const re in K)
|
|
2107
2108
|
Ee(K, re) && st(K[re]);
|
|
2108
|
-
E = K[f], mt(E,
|
|
2109
|
+
E = K[f], mt(E, h.value[f]), _.messages = h.value;
|
|
2109
2110
|
}
|
|
2110
2111
|
function Nt(f) {
|
|
2111
2112
|
return T.value[f] || {};
|
|
@@ -2120,10 +2121,10 @@ function er(e = {}) {
|
|
|
2120
2121
|
return O.value[f] || {};
|
|
2121
2122
|
}
|
|
2122
2123
|
function F(f, E) {
|
|
2123
|
-
O.value[f] = E, _.numberFormats = O.value,
|
|
2124
|
+
O.value[f] = E, _.numberFormats = O.value, hn(_, f, E);
|
|
2124
2125
|
}
|
|
2125
2126
|
function ae(f, E) {
|
|
2126
|
-
O.value[f] = ue(O.value[f] || {}, E), _.numberFormats = O.value,
|
|
2127
|
+
O.value[f] = ue(O.value[f] || {}, E), _.numberFormats = O.value, hn(_, f, E);
|
|
2127
2128
|
}
|
|
2128
2129
|
Tn++, t && qt && (St(t.locale, (f) => {
|
|
2129
2130
|
c && (m.value = f, _.locale = f, Qe(_, m.value, u.value));
|
|
@@ -2133,7 +2134,7 @@ function er(e = {}) {
|
|
|
2133
2134
|
const W = {
|
|
2134
2135
|
id: Tn,
|
|
2135
2136
|
locale: I,
|
|
2136
|
-
fallbackLocale:
|
|
2137
|
+
fallbackLocale: Y,
|
|
2137
2138
|
get inheritLocale() {
|
|
2138
2139
|
return c;
|
|
2139
2140
|
},
|
|
@@ -2141,9 +2142,9 @@ function er(e = {}) {
|
|
|
2141
2142
|
c = f, f && t && (m.value = t.locale.value, u.value = t.fallbackLocale.value, Qe(_, m.value, u.value));
|
|
2142
2143
|
},
|
|
2143
2144
|
get availableLocales() {
|
|
2144
|
-
return Object.keys(
|
|
2145
|
+
return Object.keys(h.value).sort();
|
|
2145
2146
|
},
|
|
2146
|
-
messages:
|
|
2147
|
+
messages: w,
|
|
2147
2148
|
get modifiers() {
|
|
2148
2149
|
return S;
|
|
2149
2150
|
},
|
|
@@ -2166,10 +2167,10 @@ function er(e = {}) {
|
|
|
2166
2167
|
P = f, _.fallbackWarn = P;
|
|
2167
2168
|
},
|
|
2168
2169
|
get fallbackRoot() {
|
|
2169
|
-
return
|
|
2170
|
+
return V;
|
|
2170
2171
|
},
|
|
2171
2172
|
set fallbackRoot(f) {
|
|
2172
|
-
|
|
2173
|
+
V = f;
|
|
2173
2174
|
},
|
|
2174
2175
|
get fallbackFormat() {
|
|
2175
2176
|
return k;
|
|
@@ -2184,22 +2185,22 @@ function er(e = {}) {
|
|
|
2184
2185
|
y = f, _.warnHtmlMessage = f;
|
|
2185
2186
|
},
|
|
2186
2187
|
get escapeParameter() {
|
|
2187
|
-
return
|
|
2188
|
+
return b;
|
|
2188
2189
|
},
|
|
2189
2190
|
set escapeParameter(f) {
|
|
2190
|
-
|
|
2191
|
+
b = f, _.escapeParameter = f;
|
|
2191
2192
|
},
|
|
2192
2193
|
t: R,
|
|
2193
2194
|
getLocaleMessage: We,
|
|
2194
|
-
setLocaleMessage:
|
|
2195
|
+
setLocaleMessage: Ye,
|
|
2195
2196
|
mergeLocaleMessage: ze,
|
|
2196
2197
|
getPostTranslationHandler: C,
|
|
2197
2198
|
setPostTranslationHandler: L,
|
|
2198
|
-
getMissingHandler:
|
|
2199
|
-
setMissingHandler:
|
|
2199
|
+
getMissingHandler: D,
|
|
2200
|
+
setMissingHandler: B,
|
|
2200
2201
|
[Ka]: vt
|
|
2201
2202
|
};
|
|
2202
|
-
return W.datetimeFormats = $, W.numberFormats = q, W.rt =
|
|
2203
|
+
return W.datetimeFormats = $, W.numberFormats = q, W.rt = G, W.te = Et, W.tm = Ke, W.d = Q, W.n = ge, W.getDateTimeFormat = Nt, W.setDateTimeFormat = r, W.mergeDateTimeFormat = o, W.getNumberFormat = v, W.setNumberFormat = F, W.mergeNumberFormat = ae, W[Wn] = n, W[Vt] = ve, W[Ut] = Je, W[Wt] = $e, W;
|
|
2203
2204
|
}
|
|
2204
2205
|
const Kt = {
|
|
2205
2206
|
tag: {
|
|
@@ -2229,7 +2230,7 @@ function tr({ slots: e }, t) {
|
|
|
2229
2230
|
return l && (n[s] = l()), n;
|
|
2230
2231
|
}, J());
|
|
2231
2232
|
}
|
|
2232
|
-
function
|
|
2233
|
+
function xn() {
|
|
2233
2234
|
return ye;
|
|
2234
2235
|
}
|
|
2235
2236
|
ue({
|
|
@@ -2252,13 +2253,13 @@ function Zn(e, t, n, s) {
|
|
|
2252
2253
|
let m = J();
|
|
2253
2254
|
e.locale && (c.locale = e.locale), M(e.format) ? c.key = e.format : X(e.format) && (M(e.format.key) && (c.key = e.format.key), m = Object.keys(e.format).reduce((N, P) => n.includes(P) ? ue(J(), N, { [P]: e.format[P] }) : N, J()));
|
|
2254
2255
|
const u = s(e.value, c, m);
|
|
2255
|
-
let
|
|
2256
|
-
oe(u) ?
|
|
2257
|
-
const
|
|
2256
|
+
let h = [c.key];
|
|
2257
|
+
oe(u) ? h = u.map((N, P) => {
|
|
2258
|
+
const V = l[N.type], k = V ? V({ [N.type]: N.value, index: P, parts: u }) : [N.value];
|
|
2258
2259
|
return nr(k) && (k[0].key = `${N.type}-${P}`), k;
|
|
2259
|
-
}) : M(u) && (
|
|
2260
|
-
const T = ue(J(), a), O = M(e.tag) || X(e.tag) ? e.tag :
|
|
2261
|
-
return Rn(O, T,
|
|
2260
|
+
}) : M(u) && (h = [u]);
|
|
2261
|
+
const T = ue(J(), a), O = M(e.tag) || X(e.tag) ? e.tag : xn();
|
|
2262
|
+
return Rn(O, T, h);
|
|
2262
2263
|
};
|
|
2263
2264
|
}
|
|
2264
2265
|
ue({
|
|
@@ -2279,14 +2280,14 @@ ue({
|
|
|
2279
2280
|
type: [String, Object]
|
|
2280
2281
|
}
|
|
2281
2282
|
}, Kt);
|
|
2282
|
-
const sr = /* @__PURE__ */
|
|
2283
|
+
const sr = /* @__PURE__ */ Ue("global-vue-i18n");
|
|
2283
2284
|
function gt(e = {}) {
|
|
2284
|
-
const t =
|
|
2285
|
+
const t = Gt();
|
|
2285
2286
|
if (t == null)
|
|
2286
|
-
throw nt(
|
|
2287
|
+
throw nt(He.MUST_BE_CALL_SETUP_TOP);
|
|
2287
2288
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2288
|
-
throw nt(
|
|
2289
|
-
const n = ar(t), s = lr(n), l =
|
|
2289
|
+
throw nt(He.NOT_INSTALLED);
|
|
2290
|
+
const n = ar(t), s = lr(n), l = Gn(t), a = rr(e, l);
|
|
2290
2291
|
if (a === "global")
|
|
2291
2292
|
return za(s, e, l), s;
|
|
2292
2293
|
if (a === "parent") {
|
|
@@ -2297,14 +2298,14 @@ function gt(e = {}) {
|
|
|
2297
2298
|
let m = c.__getInstance(t);
|
|
2298
2299
|
if (m == null) {
|
|
2299
2300
|
const u = ue({}, e);
|
|
2300
|
-
"__i18n" in l && (u.__i18n = l.__i18n), s && (u.__root = s), m = er(u), c.__composerExtend && (m[
|
|
2301
|
+
"__i18n" in l && (u.__i18n = l.__i18n), s && (u.__root = s), m = er(u), c.__composerExtend && (m[Yt] = c.__composerExtend(m)), cr(c, t, m), c.__setInstance(t, m);
|
|
2301
2302
|
}
|
|
2302
2303
|
return m;
|
|
2303
2304
|
}
|
|
2304
2305
|
function ar(e) {
|
|
2305
|
-
const t =
|
|
2306
|
+
const t = Bn(e.isCE ? sr : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2306
2307
|
if (!t)
|
|
2307
|
-
throw nt(e.isCE ?
|
|
2308
|
+
throw nt(e.isCE ? He.NOT_INSTALLED_WITH_PROVIDE : He.UNEXPECTED_ERROR);
|
|
2308
2309
|
return t;
|
|
2309
2310
|
}
|
|
2310
2311
|
function rr(e, t) {
|
|
@@ -2335,12 +2336,12 @@ function ir(e, t = !1) {
|
|
|
2335
2336
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2336
2337
|
}
|
|
2337
2338
|
function cr(e, t, n) {
|
|
2338
|
-
|
|
2339
|
+
xt(() => {
|
|
2339
2340
|
}, t), Ln(() => {
|
|
2340
2341
|
const s = n;
|
|
2341
2342
|
e.__deleteInstance(t);
|
|
2342
|
-
const l = s[
|
|
2343
|
-
l && (l(), delete s[
|
|
2343
|
+
const l = s[Yt];
|
|
2344
|
+
l && (l(), delete s[Yt]);
|
|
2344
2345
|
}, t);
|
|
2345
2346
|
}
|
|
2346
2347
|
Ja();
|
|
@@ -2348,7 +2349,7 @@ Oa(oa);
|
|
|
2348
2349
|
La(ya);
|
|
2349
2350
|
Ra(An);
|
|
2350
2351
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2351
|
-
const e =
|
|
2352
|
+
const e = je();
|
|
2352
2353
|
e.__INTLIFY__ = !0, ia(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2353
2354
|
}
|
|
2354
2355
|
const it = /* @__PURE__ */ Ie({
|
|
@@ -2363,14 +2364,14 @@ const it = /* @__PURE__ */ Ie({
|
|
|
2363
2364
|
const { t } = gt();
|
|
2364
2365
|
return (n, s) => {
|
|
2365
2366
|
const l = Ze("FmIcon"), a = Ze("FmTooltip");
|
|
2366
|
-
return
|
|
2367
|
+
return x(), Se(a, {
|
|
2367
2368
|
variant: "plain",
|
|
2368
2369
|
placement: "right",
|
|
2369
2370
|
"z-index": 50
|
|
2370
2371
|
}, {
|
|
2371
2372
|
content: pe(() => [
|
|
2372
2373
|
ne("div", null, Ae(Te(t)("team.memberForm.permissions.inherited")), 1),
|
|
2373
|
-
(
|
|
2374
|
+
(x(!0), te(ye, null, _e(e.item.setNames, (c) => (x(), te("div", { key: c }, [
|
|
2374
2375
|
ne("div", null, "- " + Ae(c), 1)
|
|
2375
2376
|
]))), 128))
|
|
2376
2377
|
]),
|
|
@@ -2409,18 +2410,18 @@ const it = /* @__PURE__ */ Ie({
|
|
|
2409
2410
|
},
|
|
2410
2411
|
setup(e) {
|
|
2411
2412
|
const t = e;
|
|
2412
|
-
return (n, s) => (
|
|
2413
|
-
|
|
2414
|
-
t.title ? (
|
|
2413
|
+
return (n, s) => (x(), te("div", ur, [
|
|
2414
|
+
be(n.$slots, "top", {}, () => [
|
|
2415
|
+
t.title ? (x(), te("div", mr, [
|
|
2415
2416
|
ne("div", null, [
|
|
2416
|
-
t.required ? (
|
|
2417
|
+
t.required ? (x(), te("span", dr, "*")) : Oe("", !0),
|
|
2417
2418
|
Jn(Ae(t.title), 1)
|
|
2418
2419
|
]),
|
|
2419
|
-
|
|
2420
|
+
be(n.$slots, "title-right")
|
|
2420
2421
|
])) : Oe("", !0)
|
|
2421
2422
|
]),
|
|
2422
2423
|
ne("div", fr, [
|
|
2423
|
-
|
|
2424
|
+
be(n.$slots, "default")
|
|
2424
2425
|
])
|
|
2425
2426
|
]));
|
|
2426
2427
|
}
|
|
@@ -2432,7 +2433,7 @@ function pr(e, t) {
|
|
|
2432
2433
|
n += s.charAt(Math.floor(Math.random() * l));
|
|
2433
2434
|
return n;
|
|
2434
2435
|
}
|
|
2435
|
-
const
|
|
2436
|
+
const br = { class: "col flex items-center" }, hr = {
|
|
2436
2437
|
key: 1,
|
|
2437
2438
|
class: "q-pa-sm form-error-message text-error"
|
|
2438
2439
|
}, zt = /* @__PURE__ */ Ie({
|
|
@@ -2493,7 +2494,7 @@ const hr = { class: "col flex items-center" }, br = {
|
|
|
2493
2494
|
},
|
|
2494
2495
|
emits: ["update:model-value"],
|
|
2495
2496
|
setup(e, { emit: t }) {
|
|
2496
|
-
const n = e, s = t, { t: l } = _t(), a =
|
|
2497
|
+
const n = e, s = t, { t: l } = _t(), a = Ve(!1), c = Kn(), m = z(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), u = `checkbox-${pr(6)}`, h = z(() => m.value !== !0), T = z(
|
|
2497
2498
|
() => n.modelValue.filter((k) => n.options.some((A) => A.value === k))
|
|
2498
2499
|
), O = z(
|
|
2499
2500
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
@@ -2507,22 +2508,22 @@ const hr = { class: "col flex items-center" }, br = {
|
|
|
2507
2508
|
s("update:model-value", [...k, ...A]);
|
|
2508
2509
|
}
|
|
2509
2510
|
}
|
|
2510
|
-
function
|
|
2511
|
+
function V(k, A) {
|
|
2511
2512
|
let i = ut(n.modelValue);
|
|
2512
2513
|
A ? i.every((d) => d !== k) && i.push(k) : i = i.filter((d) => d !== k), s("update:model-value", i);
|
|
2513
2514
|
}
|
|
2514
2515
|
return (k, A) => {
|
|
2515
2516
|
const i = Ze("FmCheckbox");
|
|
2516
|
-
return
|
|
2517
|
+
return x(), Se(_r, {
|
|
2517
2518
|
id: u,
|
|
2518
2519
|
title: e.title,
|
|
2519
2520
|
required: !1
|
|
2520
2521
|
}, {
|
|
2521
2522
|
top: pe(() => [
|
|
2522
|
-
|
|
2523
|
+
be(k.$slots, "top")
|
|
2523
2524
|
]),
|
|
2524
2525
|
default: pe(() => [
|
|
2525
|
-
n.showAllToggle ? (
|
|
2526
|
+
n.showAllToggle ? (x(), Se(i, {
|
|
2526
2527
|
key: 0,
|
|
2527
2528
|
"model-value": N.value,
|
|
2528
2529
|
disabled: e.disable,
|
|
@@ -2533,7 +2534,7 @@ const hr = { class: "col flex items-center" }, br = {
|
|
|
2533
2534
|
value: O.value,
|
|
2534
2535
|
"onUpdate:modelValue": P
|
|
2535
2536
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Oe("", !0),
|
|
2536
|
-
(
|
|
2537
|
+
(x(!0), te(ye, null, _e(e.options, (d, y) => (x(), te("div", {
|
|
2537
2538
|
key: d.value,
|
|
2538
2539
|
style: ct(`margin-bottom: ${y < e.options.length - 1 ? n.gutter : 0}px`),
|
|
2539
2540
|
class: qe(y < e.options.length - 1 ? "q-mb-sm" : "")
|
|
@@ -2541,44 +2542,44 @@ const hr = { class: "col flex items-center" }, br = {
|
|
|
2541
2542
|
ne("div", {
|
|
2542
2543
|
class: qe(["row justify-between", e.alignCenter ? "items-center" : "items-start"])
|
|
2543
2544
|
}, [
|
|
2544
|
-
ne("div",
|
|
2545
|
+
ne("div", br, [
|
|
2545
2546
|
de(i, {
|
|
2546
2547
|
"model-value": e.modelValue.includes(d.value),
|
|
2547
2548
|
disabled: e.disable || d.disabled,
|
|
2548
2549
|
size: "sm",
|
|
2549
2550
|
label: d.label,
|
|
2550
2551
|
value: d.label,
|
|
2551
|
-
"onUpdate:modelValue": (
|
|
2552
|
+
"onUpdate:modelValue": (b) => V(d.value, b)
|
|
2552
2553
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
2553
|
-
|
|
2554
|
+
be(k.$slots, `checkbox-${d.key || d.value}-append`, {
|
|
2554
2555
|
option: d,
|
|
2555
2556
|
selected: e.modelValue.includes(d.value)
|
|
2556
2557
|
})
|
|
2557
2558
|
]),
|
|
2558
|
-
Te(c)[`checkbox-${d.key || d.value}-end`] && (e.modelValue.includes(d.value) || e.falsyShowSlot) ? (
|
|
2559
|
+
Te(c)[`checkbox-${d.key || d.value}-end`] && (e.modelValue.includes(d.value) || e.falsyShowSlot) ? (x(), te("div", {
|
|
2559
2560
|
key: 0,
|
|
2560
2561
|
class: qe([{ "q-checkbox disabled": e.disable || d.disabled }, "col"])
|
|
2561
2562
|
}, [
|
|
2562
|
-
|
|
2563
|
+
be(k.$slots, `checkbox-${d.key || d.value}-end`, {
|
|
2563
2564
|
option: d,
|
|
2564
2565
|
value: e.modelValue.includes(d.value),
|
|
2565
2566
|
disable: e.disable || d.disabled
|
|
2566
2567
|
})
|
|
2567
2568
|
], 2)) : Oe("", !0)
|
|
2568
2569
|
], 2),
|
|
2569
|
-
Te(c)[`checkbox-${d.key || d.value}-bottom`] && (e.modelValue.includes(d.value) || e.falsyShowSlot) ? (
|
|
2570
|
+
Te(c)[`checkbox-${d.key || d.value}-bottom`] && (e.modelValue.includes(d.value) || e.falsyShowSlot) ? (x(), te("div", {
|
|
2570
2571
|
key: 0,
|
|
2571
2572
|
class: qe(["q-mt-sm", { "q-checkbox disabled": e.disable || d.disabled }]),
|
|
2572
2573
|
style: ct(`margin-left: ${e.bottomSlotIndent}`)
|
|
2573
2574
|
}, [
|
|
2574
|
-
|
|
2575
|
+
be(k.$slots, `checkbox-${d.key || d.value}-bottom`, {
|
|
2575
2576
|
option: d,
|
|
2576
2577
|
disable: e.disable || d.disabled,
|
|
2577
2578
|
value: e.modelValue.includes(d.value)
|
|
2578
2579
|
})
|
|
2579
2580
|
], 6)) : Oe("", !0)
|
|
2580
2581
|
], 6))), 128)),
|
|
2581
|
-
a.value &&
|
|
2582
|
+
a.value && h.value ? (x(), te("div", hr, Ae(m.value), 1)) : Oe("", !0)
|
|
2582
2583
|
]),
|
|
2583
2584
|
_: 3
|
|
2584
2585
|
}, 8, ["title"]);
|
|
@@ -2612,96 +2613,96 @@ const hr = { class: "col flex items-center" }, br = {
|
|
|
2612
2613
|
},
|
|
2613
2614
|
emits: ["update:model-value"],
|
|
2614
2615
|
setup(e, { emit: t }) {
|
|
2615
|
-
const { getFlagValue: n } = is(), s = e, l = z(() => [...
|
|
2616
|
+
const { getFlagValue: n } = is(), s = e, l = z(() => [...wt, ...s.additionalPermissions]), a = t, c = Object.values(ls), m = z(() => {
|
|
2616
2617
|
const p = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map();
|
|
2617
2618
|
for (const g of l.value) {
|
|
2618
2619
|
const I = g.category;
|
|
2619
2620
|
I && (s.excludedSubjects.includes(g.subject) || g.showByFeatureFlag && n(g.showByFeatureFlag) === "false" || (p.has(I) || p.set(I, []), p.get(I).push({ label: g.label, value: g.subject }), _.set(g.subject, g)));
|
|
2620
2621
|
}
|
|
2621
2622
|
return [...p.keys()].sort((g, I) => {
|
|
2622
|
-
const
|
|
2623
|
-
return
|
|
2623
|
+
const Y = c.indexOf(g), w = c.indexOf(I);
|
|
2624
|
+
return Y === -1 && w === -1 ? g.localeCompare(I) : Y === -1 ? 1 : w === -1 ? -1 : Y - w;
|
|
2624
2625
|
}).map((g) => {
|
|
2625
|
-
const I = p.get(g),
|
|
2626
|
+
const I = p.get(g), Y = /* @__PURE__ */ new Map();
|
|
2626
2627
|
for (const R of I) {
|
|
2627
|
-
const
|
|
2628
|
-
|
|
2628
|
+
const G = _.get(R.value);
|
|
2629
|
+
G && Y.set(R.value, G.actions);
|
|
2629
2630
|
}
|
|
2630
|
-
const
|
|
2631
|
-
const
|
|
2632
|
-
return
|
|
2633
|
-
}), $ =
|
|
2631
|
+
const w = I.some((R) => {
|
|
2632
|
+
const G = Y.get(R.value);
|
|
2633
|
+
return G && G.length > 1;
|
|
2634
|
+
}), $ = w ? [
|
|
2634
2635
|
...new Set(
|
|
2635
|
-
I.flatMap((R) =>
|
|
2636
|
+
I.flatMap((R) => Y.get(R.value) ?? []).filter((R) => R !== "manage")
|
|
2636
2637
|
)
|
|
2637
2638
|
] : [], q = /* @__PURE__ */ new Map();
|
|
2638
2639
|
for (const R of s.modelValue)
|
|
2639
|
-
I.some((
|
|
2640
|
-
const C =
|
|
2641
|
-
(R) => I.some((
|
|
2642
|
-
).map((R) => R.subject) : s.modelValue.filter((R) => I.some((
|
|
2643
|
-
var
|
|
2644
|
-
return (
|
|
2645
|
-
}),
|
|
2640
|
+
I.some((G) => G.value === R.subject) && !R.inverted && q.set(R.subject, new Set(R.actions));
|
|
2641
|
+
const C = w ? s.modelValue.filter(
|
|
2642
|
+
(R) => I.some((G) => G.value === R.subject) && !R.inverted && R.actions.includes("manage")
|
|
2643
|
+
).map((R) => R.subject) : s.modelValue.filter((R) => I.some((G) => G.value === R.subject) && !R.inverted).map((R) => R.subject), L = I.find((R) => {
|
|
2644
|
+
var G;
|
|
2645
|
+
return (G = _.get(R.value)) == null ? void 0 : G.isCategoryCover;
|
|
2646
|
+
}), D = (L == null ? void 0 : L.value) ?? null, B = D ? q.get(D) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), U = B.has("manage");
|
|
2646
2647
|
return {
|
|
2647
2648
|
category: g,
|
|
2648
2649
|
options: I,
|
|
2649
2650
|
selectedSubjects: C,
|
|
2650
|
-
isMultiAction:
|
|
2651
|
+
isMultiAction: w,
|
|
2651
2652
|
actionColumns: $,
|
|
2652
|
-
permissionActionsMap:
|
|
2653
|
+
permissionActionsMap: Y,
|
|
2653
2654
|
selectedActionsMap: q,
|
|
2654
|
-
coverSubject:
|
|
2655
|
-
coverSelectedActions:
|
|
2656
|
-
coverCoversAll:
|
|
2655
|
+
coverSubject: D,
|
|
2656
|
+
coverSelectedActions: B,
|
|
2657
|
+
coverCoversAll: U
|
|
2657
2658
|
};
|
|
2658
2659
|
});
|
|
2659
2660
|
});
|
|
2660
2661
|
function u(p, _) {
|
|
2661
2662
|
var g;
|
|
2662
|
-
const
|
|
2663
|
+
const j = ((g = m.value.find((I) => I.category === p)) == null ? void 0 : g.options) ?? [];
|
|
2663
2664
|
a("update:model-value", [
|
|
2664
|
-
...s.modelValue.filter((I) => !
|
|
2665
|
+
...s.modelValue.filter((I) => !j.some((Y) => Y.value === I.subject)),
|
|
2665
2666
|
...l.value.filter((I) => _.includes(I.subject)).map(
|
|
2666
|
-
({ category: I, showByFeatureFlag:
|
|
2667
|
+
({ category: I, showByFeatureFlag: Y, isCategoryCover: w, ...$ }) => $
|
|
2667
2668
|
)
|
|
2668
2669
|
]);
|
|
2669
2670
|
}
|
|
2670
|
-
function
|
|
2671
|
+
function h(p) {
|
|
2671
2672
|
return p.options.length > 0 && p.options.every((_) => p.selectedSubjects.includes(_.value));
|
|
2672
2673
|
}
|
|
2673
2674
|
function T(p) {
|
|
2674
2675
|
const _ = s.modelValue.filter(
|
|
2675
|
-
(
|
|
2676
|
+
(j) => !p.options.some((g) => g.value === j.subject)
|
|
2676
2677
|
);
|
|
2677
|
-
if (
|
|
2678
|
+
if (h(p))
|
|
2678
2679
|
a("update:model-value", _);
|
|
2679
2680
|
else {
|
|
2680
|
-
const
|
|
2681
|
-
({ category: g, showByFeatureFlag: I, isCategoryCover:
|
|
2681
|
+
const j = l.value.filter((g) => p.options.some((I) => I.value === g.subject)).map(
|
|
2682
|
+
({ category: g, showByFeatureFlag: I, isCategoryCover: Y, ...w }) => w
|
|
2682
2683
|
);
|
|
2683
|
-
a("update:model-value", [..._, ...
|
|
2684
|
+
a("update:model-value", [..._, ...j]);
|
|
2684
2685
|
}
|
|
2685
2686
|
}
|
|
2686
2687
|
function O(p, _) {
|
|
2687
|
-
const
|
|
2688
|
-
return
|
|
2688
|
+
const j = p.selectedActionsMap.get(_);
|
|
2689
|
+
return j ? j.has("manage") : !1;
|
|
2689
2690
|
}
|
|
2690
2691
|
function N(p, _) {
|
|
2691
|
-
const
|
|
2692
|
-
if (!
|
|
2693
|
-
const g =
|
|
2692
|
+
const j = p.permissionActionsMap.get(_);
|
|
2693
|
+
if (!j) return !1;
|
|
2694
|
+
const g = j.filter((w) => w !== "manage");
|
|
2694
2695
|
if (g.length === 0) return !1;
|
|
2695
2696
|
const I = p.selectedActionsMap.get(_);
|
|
2696
2697
|
if (!I) return !1;
|
|
2697
|
-
const
|
|
2698
|
-
return
|
|
2698
|
+
const Y = g.filter((w) => I.has(w));
|
|
2699
|
+
return Y.length > 0 && Y.length < g.length;
|
|
2699
2700
|
}
|
|
2700
|
-
function P(p, _,
|
|
2701
|
-
if (
|
|
2701
|
+
function P(p, _, j) {
|
|
2702
|
+
if (j) {
|
|
2702
2703
|
const g = l.value.find((C) => C.subject === _);
|
|
2703
2704
|
if (!g) return;
|
|
2704
|
-
const { category: I, showByFeatureFlag:
|
|
2705
|
+
const { category: I, showByFeatureFlag: Y, isCategoryCover: w, ...$ } = g, q = s.modelValue.filter((C) => C.subject !== _);
|
|
2705
2706
|
q.push($), a("update:model-value", q);
|
|
2706
2707
|
} else
|
|
2707
2708
|
a(
|
|
@@ -2709,52 +2710,52 @@ const hr = { class: "col flex items-center" }, br = {
|
|
|
2709
2710
|
s.modelValue.filter((g) => g.subject !== _)
|
|
2710
2711
|
);
|
|
2711
2712
|
}
|
|
2712
|
-
function
|
|
2713
|
-
const
|
|
2714
|
-
return
|
|
2713
|
+
function V(p, _) {
|
|
2714
|
+
const j = p.permissionActionsMap.get(_);
|
|
2715
|
+
return j ? j.some((g) => g !== "manage") : !1;
|
|
2715
2716
|
}
|
|
2716
|
-
function k(p, _,
|
|
2717
|
+
function k(p, _, j) {
|
|
2717
2718
|
const g = p.selectedActionsMap.get(_);
|
|
2718
|
-
return g ? g.has(
|
|
2719
|
+
return g ? g.has(j) : !1;
|
|
2719
2720
|
}
|
|
2720
2721
|
function A(p, _) {
|
|
2721
2722
|
return !p.coverSubject || _ === p.coverSubject ? !1 : p.coverCoversAll;
|
|
2722
2723
|
}
|
|
2723
|
-
function i(p, _,
|
|
2724
|
-
return !p.coverSubject || _ === p.coverSubject ? !1 : p.coverCoversAll ? !0 : p.coverSelectedActions.has(
|
|
2724
|
+
function i(p, _, j) {
|
|
2725
|
+
return !p.coverSubject || _ === p.coverSubject ? !1 : p.coverCoversAll ? !0 : p.coverSelectedActions.has(j);
|
|
2725
2726
|
}
|
|
2726
|
-
function d(p, _,
|
|
2727
|
+
function d(p, _, j) {
|
|
2727
2728
|
const g = p.permissionActionsMap.get(_);
|
|
2728
|
-
return g ? g.includes(
|
|
2729
|
+
return g ? g.includes(j) : !1;
|
|
2729
2730
|
}
|
|
2730
|
-
function y(p, _,
|
|
2731
|
-
const g = [...s.modelValue], I = g.findIndex((
|
|
2732
|
-
if (
|
|
2731
|
+
function y(p, _, j) {
|
|
2732
|
+
const g = [...s.modelValue], I = g.findIndex((w) => w.subject === p && !w.inverted);
|
|
2733
|
+
if (j)
|
|
2733
2734
|
if (I >= 0) {
|
|
2734
|
-
const
|
|
2735
|
-
$.add(_),
|
|
2735
|
+
const w = { ...g[I] }, $ = new Set(w.actions);
|
|
2736
|
+
$.add(_), w.actions = Array.from($), g[I] = w;
|
|
2736
2737
|
} else {
|
|
2737
|
-
const
|
|
2738
|
-
if (!
|
|
2738
|
+
const w = l.value.find((D) => D.subject === p);
|
|
2739
|
+
if (!w) return;
|
|
2739
2740
|
const {
|
|
2740
2741
|
category: $,
|
|
2741
2742
|
showByFeatureFlag: q,
|
|
2742
2743
|
isCategoryCover: C,
|
|
2743
2744
|
...L
|
|
2744
|
-
} =
|
|
2745
|
+
} = w;
|
|
2745
2746
|
g.push({ ...L, actions: [_] });
|
|
2746
2747
|
}
|
|
2747
2748
|
else if (I >= 0) {
|
|
2748
|
-
const
|
|
2749
|
-
$.length === 0 ? g.splice(I, 1) : (
|
|
2749
|
+
const w = { ...g[I] }, $ = w.actions.filter((q) => q !== _);
|
|
2750
|
+
$.length === 0 ? g.splice(I, 1) : (w.actions = $, g[I] = w);
|
|
2750
2751
|
}
|
|
2751
|
-
const
|
|
2752
|
-
if (
|
|
2753
|
-
const $ =
|
|
2752
|
+
const Y = l.value.find((w) => w.subject === p);
|
|
2753
|
+
if (Y) {
|
|
2754
|
+
const $ = Y.actions.filter((q) => q !== "manage");
|
|
2754
2755
|
if ($.length > 0) {
|
|
2755
2756
|
const q = g.findIndex((C) => C.subject === p && !C.inverted);
|
|
2756
2757
|
if (q >= 0) {
|
|
2757
|
-
const C = new Set(g[q].actions), L = $.every((
|
|
2758
|
+
const C = new Set(g[q].actions), L = $.every((D) => C.has(D));
|
|
2758
2759
|
L && !C.has("manage") ? (C.add("manage"), g[q] = {
|
|
2759
2760
|
...g[q],
|
|
2760
2761
|
actions: Array.from(C)
|
|
@@ -2767,25 +2768,25 @@ const hr = { class: "col flex items-center" }, br = {
|
|
|
2767
2768
|
}
|
|
2768
2769
|
a("update:model-value", g);
|
|
2769
2770
|
}
|
|
2770
|
-
const
|
|
2771
|
+
const b = {
|
|
2771
2772
|
read: "View",
|
|
2772
2773
|
create: "Duplicate",
|
|
2773
2774
|
update: "Edit"
|
|
2774
2775
|
};
|
|
2775
2776
|
function S(p) {
|
|
2776
|
-
return
|
|
2777
|
+
return b[p] ?? p.charAt(0).toUpperCase() + p.slice(1);
|
|
2777
2778
|
}
|
|
2778
2779
|
return (p, _) => {
|
|
2779
|
-
const
|
|
2780
|
-
return
|
|
2781
|
-
(
|
|
2780
|
+
const j = Ze("FmCheckbox");
|
|
2781
|
+
return x(), te("div", gr, [
|
|
2782
|
+
(x(!0), te(ye, null, _e(m.value, (g) => (x(), te(ye, {
|
|
2782
2783
|
key: g.category
|
|
2783
2784
|
}, [
|
|
2784
|
-
g.isMultiAction ? (
|
|
2785
|
+
g.isMultiAction ? (x(), te("div", vr, [
|
|
2785
2786
|
ne("div", Er, [
|
|
2786
2787
|
ne("div", Ir, Ae(g.category), 1),
|
|
2787
2788
|
ne("div", Nr, [
|
|
2788
|
-
(
|
|
2789
|
+
(x(!0), te(ye, null, _e(g.actionColumns, (I) => (x(), te("span", {
|
|
2789
2790
|
key: I,
|
|
2790
2791
|
class: "w-[56px] text-center fm-typo-en-body-sm-400 text-fm-color-neutral-gray-600"
|
|
2791
2792
|
}, Ae(S(I)), 1))), 128))
|
|
@@ -2793,8 +2794,8 @@ const hr = { class: "col flex items-center" }, br = {
|
|
|
2793
2794
|
]),
|
|
2794
2795
|
ne("div", yr, [
|
|
2795
2796
|
ne("div", Tr, [
|
|
2796
|
-
de(
|
|
2797
|
-
"model-value":
|
|
2797
|
+
de(j, {
|
|
2798
|
+
"model-value": h(g),
|
|
2798
2799
|
value: !0,
|
|
2799
2800
|
disabled: e.disable,
|
|
2800
2801
|
label: "All",
|
|
@@ -2803,47 +2804,47 @@ const hr = { class: "col flex items-center" }, br = {
|
|
|
2803
2804
|
"onUpdate:modelValue": (I) => T(g)
|
|
2804
2805
|
}, null, 8, ["model-value", "disabled", "onUpdate:modelValue"])
|
|
2805
2806
|
]),
|
|
2806
|
-
(
|
|
2807
|
+
(x(!0), te(ye, null, _e(g.options, (I, Y) => (x(), te("div", {
|
|
2807
2808
|
key: I.value,
|
|
2808
|
-
class: qe(
|
|
2809
|
+
class: qe(Y < g.options.length - 1 ? "q-mb-xs" : "")
|
|
2809
2810
|
}, [
|
|
2810
2811
|
ne("div", kr, [
|
|
2811
2812
|
ne("div", Or, [
|
|
2812
|
-
de(
|
|
2813
|
+
de(j, {
|
|
2813
2814
|
"model-value": O(g, I.value) || A(g, I.value),
|
|
2814
2815
|
value: I.value,
|
|
2815
2816
|
disabled: e.disable || A(g, I.value),
|
|
2816
2817
|
indeterminate: N(g, I.value),
|
|
2817
2818
|
size: "sm",
|
|
2818
2819
|
class: "shrink-0",
|
|
2819
|
-
"onUpdate:modelValue": (
|
|
2820
|
+
"onUpdate:modelValue": (w) => P(g, I.value, w)
|
|
2820
2821
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"]),
|
|
2821
2822
|
ne("span", {
|
|
2822
2823
|
class: "block truncate cursor-pointer",
|
|
2823
2824
|
title: I.label,
|
|
2824
|
-
onClick: (
|
|
2825
|
+
onClick: (w) => !e.disable && !A(g, I.value) && P(g, I.value, !O(g, I.value))
|
|
2825
2826
|
}, Ae(I.label), 9, Lr),
|
|
2826
|
-
|
|
2827
|
+
be(p.$slots, `checkbox-${I.value}-append`, { option: I })
|
|
2827
2828
|
]),
|
|
2828
|
-
|
|
2829
|
-
(
|
|
2830
|
-
key:
|
|
2829
|
+
V(g, I.value) ? (x(), te("div", Rr, [
|
|
2830
|
+
(x(!0), te(ye, null, _e(g.actionColumns, (w) => (x(), te("div", {
|
|
2831
|
+
key: w,
|
|
2831
2832
|
class: "w-[56px] flex justify-center"
|
|
2832
2833
|
}, [
|
|
2833
|
-
d(g, I.value,
|
|
2834
|
+
d(g, I.value, w) ? (x(), Se(j, {
|
|
2834
2835
|
key: 0,
|
|
2835
|
-
"model-value": k(g, I.value,
|
|
2836
|
-
value:
|
|
2837
|
-
disabled: e.disable || i(g, I.value,
|
|
2836
|
+
"model-value": k(g, I.value, w) || i(g, I.value, w),
|
|
2837
|
+
value: w,
|
|
2838
|
+
disabled: e.disable || i(g, I.value, w),
|
|
2838
2839
|
size: "sm",
|
|
2839
|
-
"onUpdate:modelValue": ($) => y(I.value,
|
|
2840
|
+
"onUpdate:modelValue": ($) => y(I.value, w, $)
|
|
2840
2841
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Oe("", !0)
|
|
2841
2842
|
]))), 128))
|
|
2842
2843
|
])) : Oe("", !0)
|
|
2843
2844
|
])
|
|
2844
2845
|
], 2))), 128))
|
|
2845
2846
|
])
|
|
2846
|
-
])) : (
|
|
2847
|
+
])) : (x(), Se(zt, {
|
|
2847
2848
|
key: 0,
|
|
2848
2849
|
"model-value": g.selectedSubjects,
|
|
2849
2850
|
options: g.options,
|
|
@@ -2853,8 +2854,8 @@ const hr = { class: "col flex items-center" }, br = {
|
|
|
2853
2854
|
}, Fe({ _: 2 }, [
|
|
2854
2855
|
_e(g.options, (I) => ({
|
|
2855
2856
|
name: `checkbox-${I.value}-append`,
|
|
2856
|
-
fn: pe(({ option:
|
|
2857
|
-
|
|
2857
|
+
fn: pe(({ option: Y }) => [
|
|
2858
|
+
be(p.$slots, `checkbox-${I.value}-append`, { option: Y })
|
|
2858
2859
|
])
|
|
2859
2860
|
}))
|
|
2860
2861
|
]), 1032, ["model-value", "options", "disable", "title", "onUpdate:modelValue"]))
|
|
@@ -2862,14 +2863,14 @@ const hr = { class: "col flex items-center" }, br = {
|
|
|
2862
2863
|
]);
|
|
2863
2864
|
};
|
|
2864
2865
|
}
|
|
2865
|
-
}), Ar = { class: "flex items-center" }, Sr = { class: "ml-auto" },
|
|
2866
|
+
}), Ar = { class: "flex items-center" }, Sr = { class: "ml-auto" }, wr = /* @__PURE__ */ Ie({
|
|
2866
2867
|
__name: "CollapsibleWrapper",
|
|
2867
2868
|
props: {
|
|
2868
2869
|
title: { default: "" },
|
|
2869
2870
|
initiallyCollapsed: { type: Boolean, default: !1 }
|
|
2870
2871
|
},
|
|
2871
2872
|
setup(e) {
|
|
2872
|
-
const n =
|
|
2873
|
+
const n = Ve(e.initiallyCollapsed), s = Ve(), l = Ve(0);
|
|
2873
2874
|
let a;
|
|
2874
2875
|
function c() {
|
|
2875
2876
|
n.value = !n.value;
|
|
@@ -2877,18 +2878,18 @@ const hr = { class: "col flex items-center" }, br = {
|
|
|
2877
2878
|
function m() {
|
|
2878
2879
|
s.value && (l.value = s.value.scrollHeight);
|
|
2879
2880
|
}
|
|
2880
|
-
return
|
|
2881
|
+
return xt(async () => {
|
|
2881
2882
|
await zn(), s.value && (a = new ResizeObserver(() => {
|
|
2882
2883
|
m();
|
|
2883
2884
|
}), a.observe(s.value));
|
|
2884
2885
|
}), Ln(() => {
|
|
2885
2886
|
a == null || a.disconnect();
|
|
2886
|
-
}), (u,
|
|
2887
|
+
}), (u, h) => {
|
|
2887
2888
|
const T = Ze("FmButton");
|
|
2888
|
-
return
|
|
2889
|
+
return x(), te(ye, null, [
|
|
2889
2890
|
ne("div", { onClick: c }, [
|
|
2890
2891
|
ne("div", Ar, [
|
|
2891
|
-
|
|
2892
|
+
be(u.$slots, "title"),
|
|
2892
2893
|
ne("div", Sr, [
|
|
2893
2894
|
de(T, {
|
|
2894
2895
|
icon: n.value ? "keyboard_arrow_down" : "keyboard_arrow_up",
|
|
@@ -2905,12 +2906,12 @@ const hr = { class: "col flex items-center" }, br = {
|
|
|
2905
2906
|
class: "transition-all duration-300 ease-in-out overflow-hidden",
|
|
2906
2907
|
style: ct({ maxHeight: n.value ? "0" : l.value + "px" })
|
|
2907
2908
|
}, [
|
|
2908
|
-
|
|
2909
|
+
be(u.$slots, "default")
|
|
2909
2910
|
], 4)
|
|
2910
2911
|
], 64);
|
|
2911
2912
|
};
|
|
2912
2913
|
}
|
|
2913
|
-
}),
|
|
2914
|
+
}), Dr = { class: "fm-typo-en-title-sm-600" }, Ct = "includedFuture", On = /* @__PURE__ */ Ie({
|
|
2914
2915
|
__name: "ConditionPermission",
|
|
2915
2916
|
props: {
|
|
2916
2917
|
modelValue: {
|
|
@@ -2940,22 +2941,22 @@ const hr = { class: "col flex items-center" }, br = {
|
|
|
2940
2941
|
disable: !!n.modelValue && n.options.length > n.modelValue.length
|
|
2941
2942
|
},
|
|
2942
2943
|
...n.options.filter(
|
|
2943
|
-
(
|
|
2944
|
+
(h) => h.label.toLocaleLowerCase().includes(u.value.toLocaleLowerCase())
|
|
2944
2945
|
)
|
|
2945
|
-
]), c = z(() => n.modelValue ? n.modelValue : [Ct, ...n.options.map((
|
|
2946
|
-
function m(
|
|
2947
|
-
const T =
|
|
2948
|
-
s("update:model-value", T ? null :
|
|
2946
|
+
]), c = z(() => n.modelValue ? n.modelValue : [Ct, ...n.options.map((h) => h.value)]);
|
|
2947
|
+
function m(h) {
|
|
2948
|
+
const T = h.length === a.value.length;
|
|
2949
|
+
s("update:model-value", T ? null : h.filter((O) => O !== Ct));
|
|
2949
2950
|
}
|
|
2950
|
-
const u =
|
|
2951
|
-
return (
|
|
2951
|
+
const u = Ve("");
|
|
2952
|
+
return (h, T) => {
|
|
2952
2953
|
const O = Ze("fm-search");
|
|
2953
|
-
return
|
|
2954
|
+
return x(), Se(wr, null, {
|
|
2954
2955
|
title: pe(() => [
|
|
2955
|
-
ne("p",
|
|
2956
|
+
ne("p", Dr, Ae(Te(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
2956
2957
|
]),
|
|
2957
2958
|
default: pe(() => [
|
|
2958
|
-
e.options.length > 1 ? (
|
|
2959
|
+
e.options.length > 1 ? (x(), Se(O, {
|
|
2959
2960
|
key: 0,
|
|
2960
2961
|
modelValue: u.value,
|
|
2961
2962
|
"onUpdate:modelValue": T[0] || (T[0] = (N) => u.value = N),
|
|
@@ -2976,7 +2977,7 @@ const hr = { class: "col flex items-center" }, br = {
|
|
|
2976
2977
|
_e(a.value, (N) => ({
|
|
2977
2978
|
name: `checkbox-${N.value}-append`,
|
|
2978
2979
|
fn: pe(({ option: P }) => [
|
|
2979
|
-
|
|
2980
|
+
be(h.$slots, `checkbox-${N.value}-append`, { option: P })
|
|
2980
2981
|
])
|
|
2981
2982
|
}))
|
|
2982
2983
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3015,18 +3016,18 @@ const hr = { class: "col flex items-center" }, br = {
|
|
|
3015
3016
|
value: At,
|
|
3016
3017
|
disable: !!n.modelValue && n.roles.length > n.modelValue.length
|
|
3017
3018
|
},
|
|
3018
|
-
...n.roles.map((
|
|
3019
|
-
label:
|
|
3020
|
-
value:
|
|
3021
|
-
disable: !!u &&
|
|
3019
|
+
...n.roles.map((h) => ({
|
|
3020
|
+
label: h.name,
|
|
3021
|
+
value: h._id,
|
|
3022
|
+
disable: !!u && h.restaurants.every(({ id: T }) => !u.includes(T))
|
|
3022
3023
|
}))
|
|
3023
3024
|
];
|
|
3024
3025
|
}), c = z(() => n.modelValue ? n.modelValue : [At, ...n.roles.map((u) => u._id)]);
|
|
3025
3026
|
function m(u) {
|
|
3026
|
-
const
|
|
3027
|
-
s("update:model-value",
|
|
3027
|
+
const h = u.length === a.value.length;
|
|
3028
|
+
s("update:model-value", h ? null : u.filter((T) => T !== At));
|
|
3028
3029
|
}
|
|
3029
|
-
return (u,
|
|
3030
|
+
return (u, h) => (x(), Se(zt, {
|
|
3030
3031
|
"model-value": c.value,
|
|
3031
3032
|
options: a.value,
|
|
3032
3033
|
"show-intermediate": !1,
|
|
@@ -3038,16 +3039,16 @@ const hr = { class: "col flex items-center" }, br = {
|
|
|
3038
3039
|
_e(a.value, (T) => ({
|
|
3039
3040
|
name: `checkbox-${T.value}-append`,
|
|
3040
3041
|
fn: pe(({ option: O }) => [
|
|
3041
|
-
|
|
3042
|
+
be(u.$slots, `checkbox-${T.value}-append`, { option: O })
|
|
3042
3043
|
])
|
|
3043
3044
|
}))
|
|
3044
3045
|
]), 1032, ["model-value", "options", "disable", "title"]));
|
|
3045
3046
|
}
|
|
3046
3047
|
}), Pr = {
|
|
3047
3048
|
async readWarehouses() {
|
|
3048
|
-
return
|
|
3049
|
+
return as(await rs().get("/warehouses"));
|
|
3049
3050
|
}
|
|
3050
|
-
}, Fr = { class: "flex flex-col gap-32" },
|
|
3051
|
+
}, 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" }, Wr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Kr = /* @__PURE__ */ Ie({
|
|
3051
3052
|
__name: "PortalPermissionEditor",
|
|
3052
3053
|
props: /* @__PURE__ */ Qt({
|
|
3053
3054
|
disable: {
|
|
@@ -3064,26 +3065,26 @@ const hr = { class: "col flex items-center" }, br = {
|
|
|
3064
3065
|
}),
|
|
3065
3066
|
emits: /* @__PURE__ */ Qt(["permissionChanged"], ["update:modelValue"]),
|
|
3066
3067
|
setup(e, { emit: t }) {
|
|
3067
|
-
const n = Qn(e, "modelValue"), s = e, l = t, { t: a } = _t(), { fetchCustomReportPermissions: c, customReportPermissions: m } =
|
|
3068
|
+
const n = Qn(e, "modelValue"), s = e, l = t, { t: a } = _t(), { fetchCustomReportPermissions: c, customReportPermissions: m } = es();
|
|
3068
3069
|
function u(C) {
|
|
3069
|
-
return
|
|
3070
|
-
}
|
|
3071
|
-
const
|
|
3072
|
-
const C = [...
|
|
3073
|
-
return
|
|
3074
|
-
s.inheritPermissions.map((
|
|
3075
|
-
...
|
|
3076
|
-
permissions:
|
|
3070
|
+
return wt.find((L) => L.subject === C) ?? m.value.find((L) => L.subject === C);
|
|
3071
|
+
}
|
|
3072
|
+
const h = z(() => {
|
|
3073
|
+
const C = [...wt, ...m.value].filter((D) => !P.includes(D.subject)).map((D) => D.subject);
|
|
3074
|
+
return ts(
|
|
3075
|
+
s.inheritPermissions.map((D) => ({
|
|
3076
|
+
...D,
|
|
3077
|
+
permissions: D.permissions.filter((B) => C.includes(B.subject))
|
|
3077
3078
|
}))
|
|
3078
|
-
).map((
|
|
3079
|
-
id:
|
|
3080
|
-
setNames:
|
|
3079
|
+
).map((D) => ({
|
|
3080
|
+
id: D.subject,
|
|
3081
|
+
setNames: D.setNames
|
|
3081
3082
|
}));
|
|
3082
3083
|
}), T = z(() => {
|
|
3083
3084
|
const C = s.inheritPermissions.map((L) => ({
|
|
3084
3085
|
...L,
|
|
3085
3086
|
permissions: L.permissions.filter(
|
|
3086
|
-
(
|
|
3087
|
+
(D) => D.subject === ie.Subject.Business.inventory_stock
|
|
3087
3088
|
)
|
|
3088
3089
|
}));
|
|
3089
3090
|
return yt(
|
|
@@ -3095,7 +3096,7 @@ const hr = { class: "col flex items-center" }, br = {
|
|
|
3095
3096
|
const C = s.inheritPermissions.map((L) => ({
|
|
3096
3097
|
...L,
|
|
3097
3098
|
permissions: L.permissions.filter(
|
|
3098
|
-
(
|
|
3099
|
+
(D) => D.subject === ie.Subject.Restaurant.restaurant
|
|
3099
3100
|
)
|
|
3100
3101
|
}));
|
|
3101
3102
|
return yt(
|
|
@@ -3106,25 +3107,25 @@ const hr = { class: "col flex items-center" }, br = {
|
|
|
3106
3107
|
}), N = z(() => {
|
|
3107
3108
|
const C = s.inheritPermissions.map((L) => ({
|
|
3108
3109
|
...L,
|
|
3109
|
-
permissions: L.permissions.filter((
|
|
3110
|
+
permissions: L.permissions.filter((D) => D.subject === ie.Subject.Business.role)
|
|
3110
3111
|
}));
|
|
3111
3112
|
return yt(
|
|
3112
3113
|
C,
|
|
3113
3114
|
"roleId",
|
|
3114
|
-
|
|
3115
|
+
b.value.map((L) => L._id)
|
|
3115
3116
|
);
|
|
3116
3117
|
}), P = [
|
|
3117
3118
|
ie.Subject.Business.restaurant,
|
|
3118
3119
|
ie.Subject.Business.role,
|
|
3119
3120
|
ie.Subject.Restaurant.restaurant,
|
|
3120
3121
|
ie.Subject.Business.inventory_stock
|
|
3121
|
-
],
|
|
3122
|
+
], V = z(() => {
|
|
3122
3123
|
var L;
|
|
3123
3124
|
const C = (L = n.value) == null ? void 0 : L.find(
|
|
3124
|
-
(
|
|
3125
|
+
(D) => D.subject === ie.Subject.Business.inventory_stock
|
|
3125
3126
|
);
|
|
3126
3127
|
return C ? C.conditions ? JSON.parse(C.conditions).warehouseId.$in : null : [];
|
|
3127
|
-
}), k =
|
|
3128
|
+
}), k = Ve([]), A = z(() => k.value.map((C) => ({
|
|
3128
3129
|
label: C.profile.name,
|
|
3129
3130
|
value: C._id
|
|
3130
3131
|
})));
|
|
@@ -3133,77 +3134,77 @@ const hr = { class: "col flex items-center" }, br = {
|
|
|
3133
3134
|
n.value = L;
|
|
3134
3135
|
}
|
|
3135
3136
|
function d(C, L) {
|
|
3136
|
-
let
|
|
3137
|
-
C.filter((
|
|
3137
|
+
let D = ut(
|
|
3138
|
+
C.filter((B) => B.subject !== ie.Subject.Business.inventory_stock)
|
|
3138
3139
|
);
|
|
3139
3140
|
if (!L || L.length > 0) {
|
|
3140
|
-
const
|
|
3141
|
+
const B = {
|
|
3141
3142
|
actions: [ie.Action.manage],
|
|
3142
3143
|
subject: ie.Subject.Business.inventory_stock
|
|
3143
3144
|
};
|
|
3144
|
-
L && (
|
|
3145
|
+
L && (B.conditions = JSON.stringify({ warehouseId: { $in: L } })), D.push(B);
|
|
3145
3146
|
}
|
|
3146
|
-
return
|
|
3147
|
+
return D;
|
|
3147
3148
|
}
|
|
3148
|
-
const { restaurants: y } = qn(),
|
|
3149
|
+
const { restaurants: y } = qn(), b = cs().roles, S = z(() => y.value.map((C) => ({
|
|
3149
3150
|
label: `${C.profile.code ? C.profile.code + "-" : ""}${C.profile.name}`,
|
|
3150
3151
|
value: C._id
|
|
3151
|
-
}))), p = z(() => y.value.reduce((C, L) => (C[L._id] =
|
|
3152
|
-
function
|
|
3152
|
+
}))), p = z(() => y.value.reduce((C, L) => (C[L._id] = b.value.filter((D) => D.restaurants.some((B) => B.id === L._id)).map((D) => D._id), C), {})), _ = z(() => ns(n.value));
|
|
3153
|
+
function j(C) {
|
|
3153
3154
|
const L = I(n.value, C);
|
|
3154
3155
|
n.value = L;
|
|
3155
3156
|
}
|
|
3156
|
-
const g = z(() =>
|
|
3157
|
+
const g = z(() => ss(n.value));
|
|
3157
3158
|
function I(C, L) {
|
|
3158
|
-
var
|
|
3159
|
-
let
|
|
3159
|
+
var B;
|
|
3160
|
+
let D = ut(
|
|
3160
3161
|
C.filter(
|
|
3161
|
-
(
|
|
3162
|
+
(U) => U.subject !== ie.Subject.Business.restaurant && U.subject !== ie.Subject.Restaurant.restaurant
|
|
3162
3163
|
)
|
|
3163
3164
|
);
|
|
3164
3165
|
if (!L || L.length > 0) {
|
|
3165
3166
|
const {
|
|
3166
|
-
category:
|
|
3167
|
+
category: U,
|
|
3167
3168
|
showByFeatureFlag: R,
|
|
3168
|
-
...
|
|
3169
|
+
...G
|
|
3169
3170
|
} = os.restaurant;
|
|
3170
|
-
|
|
3171
|
+
D.push(G);
|
|
3171
3172
|
const Q = {
|
|
3172
3173
|
actions: [ie.Action.manage],
|
|
3173
3174
|
subject: ie.Subject.Restaurant.restaurant
|
|
3174
3175
|
};
|
|
3175
|
-
L && (Q.conditions = JSON.stringify({ restaurantId: { $in: L } })),
|
|
3176
|
+
L && (Q.conditions = JSON.stringify({ restaurantId: { $in: L } })), D.push(Q);
|
|
3176
3177
|
}
|
|
3177
3178
|
if (L) {
|
|
3178
|
-
const
|
|
3179
|
-
...new Set(L.map((
|
|
3180
|
-
], R =
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
(
|
|
3179
|
+
const U = [
|
|
3180
|
+
...new Set(L.map((G) => p.value[G]).flatMap((G) => G))
|
|
3181
|
+
], R = b.value.map((G) => G._id);
|
|
3182
|
+
U.length !== R.length && (D = w(
|
|
3183
|
+
D,
|
|
3184
|
+
(B = g.value || R) == null ? void 0 : B.filter((G) => U.includes(G))
|
|
3184
3185
|
));
|
|
3185
3186
|
}
|
|
3186
|
-
return
|
|
3187
|
+
return D;
|
|
3187
3188
|
}
|
|
3188
|
-
function
|
|
3189
|
-
const L =
|
|
3189
|
+
function Y(C) {
|
|
3190
|
+
const L = w(n.value, C);
|
|
3190
3191
|
n.value = L;
|
|
3191
3192
|
}
|
|
3192
|
-
function
|
|
3193
|
-
let
|
|
3194
|
-
C.filter((
|
|
3193
|
+
function w(C, L) {
|
|
3194
|
+
let D = ut(
|
|
3195
|
+
C.filter((B) => B.subject !== ie.Subject.Business.role)
|
|
3195
3196
|
);
|
|
3196
3197
|
if (L && L.length > 0) {
|
|
3197
|
-
const
|
|
3198
|
+
const B = {
|
|
3198
3199
|
actions: [ie.Action.manage],
|
|
3199
3200
|
subject: ie.Subject.Business.role,
|
|
3200
3201
|
conditions: JSON.stringify({ roleId: { $in: L } })
|
|
3201
3202
|
};
|
|
3202
|
-
|
|
3203
|
+
D.push(B);
|
|
3203
3204
|
}
|
|
3204
|
-
return
|
|
3205
|
+
return D;
|
|
3205
3206
|
}
|
|
3206
|
-
|
|
3207
|
+
xt(async () => {
|
|
3207
3208
|
await Promise.all([
|
|
3208
3209
|
Pr.readWarehouses().then((C) => k.value = C),
|
|
3209
3210
|
c()
|
|
@@ -3214,70 +3215,70 @@ const hr = { class: "col flex items-center" }, br = {
|
|
|
3214
3215
|
kt
|
|
3215
3216
|
).map((L) => {
|
|
3216
3217
|
if (L.inverted) return L;
|
|
3217
|
-
const
|
|
3218
|
-
if (!
|
|
3219
|
-
const
|
|
3220
|
-
if (!
|
|
3221
|
-
const
|
|
3222
|
-
return
|
|
3218
|
+
const D = L.actions;
|
|
3219
|
+
if (!D.includes("manage")) return L;
|
|
3220
|
+
const B = u(L.subject);
|
|
3221
|
+
if (!B) return L;
|
|
3222
|
+
const U = B.actions;
|
|
3223
|
+
return U.length <= 1 || U.filter((G) => !D.includes(G)).length === 0 ? L : { ...L, actions: [...U] };
|
|
3223
3224
|
}));
|
|
3224
3225
|
function q(C) {
|
|
3225
3226
|
const L = new Set(
|
|
3226
3227
|
$.value.filter((R) => !R.inverted).map((R) => R.subject)
|
|
3227
|
-
),
|
|
3228
|
+
), D = new Set(
|
|
3228
3229
|
C.filter((R) => !R.inverted).map((R) => R.subject)
|
|
3229
|
-
),
|
|
3230
|
+
), B = new Set(
|
|
3230
3231
|
n.value.filter((R) => !R.inverted).map((R) => R.subject)
|
|
3231
3232
|
);
|
|
3232
|
-
let
|
|
3233
|
+
let U = [...n.value];
|
|
3233
3234
|
for (const R of L)
|
|
3234
|
-
|
|
3235
|
-
|
|
3235
|
+
D.has(R) || (B.has(R) && (U = U.filter((Q) => Q.subject !== R)), (!B.has(R) || Tt(
|
|
3236
|
+
U,
|
|
3236
3237
|
kt
|
|
3237
|
-
).some((Q) => Q.subject === R && !Q.inverted)) && !
|
|
3238
|
-
for (const R of
|
|
3238
|
+
).some((Q) => Q.subject === R && !Q.inverted)) && !U.some((Q) => Q.subject === R && Q.inverted) && U.push({ subject: R, actions: ["manage"], inverted: !0 }));
|
|
3239
|
+
for (const R of D)
|
|
3239
3240
|
if (!L.has(R)) {
|
|
3240
|
-
const
|
|
3241
|
-
if (
|
|
3241
|
+
const G = U.some((Q) => Q.subject === R && Q.inverted);
|
|
3242
|
+
if (U = U.filter((Q) => !(Q.subject === R && Q.inverted)), !G && !B.has(R)) {
|
|
3242
3243
|
const Q = C.find(
|
|
3243
3244
|
(fe) => fe.subject === R && !fe.inverted
|
|
3244
3245
|
), ge = u(R);
|
|
3245
3246
|
if (ge && Q) {
|
|
3246
3247
|
const { category: fe, showByFeatureFlag: Me, ...ee } = ge;
|
|
3247
|
-
|
|
3248
|
+
U.push({ ...ee, actions: Q.actions });
|
|
3248
3249
|
}
|
|
3249
3250
|
}
|
|
3250
3251
|
}
|
|
3251
|
-
for (const R of
|
|
3252
|
+
for (const R of D) {
|
|
3252
3253
|
if (!L.has(R)) continue;
|
|
3253
|
-
const
|
|
3254
|
+
const G = $.value.find(
|
|
3254
3255
|
(ee) => ee.subject === R && !ee.inverted
|
|
3255
3256
|
), Q = C.find((ee) => ee.subject === R && !ee.inverted);
|
|
3256
|
-
if (!
|
|
3257
|
-
const ge = new Set(
|
|
3257
|
+
if (!G || !Q) continue;
|
|
3258
|
+
const ge = new Set(G.actions), fe = new Set(Q.actions);
|
|
3258
3259
|
if (ge.size === fe.size && [...ge].every((ee) => fe.has(ee)))
|
|
3259
3260
|
continue;
|
|
3260
|
-
const Me =
|
|
3261
|
+
const Me = U.findIndex((ee) => ee.subject === R && !ee.inverted);
|
|
3261
3262
|
if (Me >= 0)
|
|
3262
|
-
|
|
3263
|
-
...
|
|
3263
|
+
U[Me] = {
|
|
3264
|
+
...U[Me],
|
|
3264
3265
|
actions: Array.from(fe)
|
|
3265
3266
|
};
|
|
3266
3267
|
else {
|
|
3267
3268
|
const ee = u(R);
|
|
3268
3269
|
if (ee) {
|
|
3269
3270
|
const { category: ve, showByFeatureFlag: $e, ...Je } = ee;
|
|
3270
|
-
|
|
3271
|
+
U.push({ ...Je, actions: Array.from(fe) });
|
|
3271
3272
|
}
|
|
3272
3273
|
}
|
|
3273
3274
|
ge.has("manage") && !fe.has("manage") && Tt(
|
|
3274
|
-
|
|
3275
|
+
U,
|
|
3275
3276
|
kt
|
|
3276
3277
|
).some(
|
|
3277
3278
|
(ve) => ve.subject === R && !ve.inverted && ve.actions.includes("manage")
|
|
3278
|
-
) && !
|
|
3279
|
+
) && !U.some((ve) => ve.subject === R && ve.inverted) && U.push({ subject: R, actions: ["manage"], inverted: !0 }), !ge.has("manage") && fe.has("manage") && (U = U.filter((ee) => !(ee.subject === R && ee.inverted)));
|
|
3279
3280
|
}
|
|
3280
|
-
n.value =
|
|
3281
|
+
n.value = U;
|
|
3281
3282
|
}
|
|
3282
3283
|
return St(
|
|
3283
3284
|
n,
|
|
@@ -3285,63 +3286,63 @@ const hr = { class: "col flex items-center" }, br = {
|
|
|
3285
3286
|
l("permissionChanged", C);
|
|
3286
3287
|
},
|
|
3287
3288
|
{ deep: !0 }
|
|
3288
|
-
), (C, L) => (
|
|
3289
|
-
ne("div",
|
|
3289
|
+
), (C, L) => (x(), te("div", Fr, [
|
|
3290
|
+
ne("div", jr, [
|
|
3290
3291
|
de(Cr, {
|
|
3291
3292
|
"model-value": $.value,
|
|
3292
3293
|
"excluded-subjects": P,
|
|
3293
3294
|
"additional-permissions": Te(m),
|
|
3294
3295
|
"onUpdate:modelValue": q
|
|
3295
3296
|
}, Fe({ _: 2 }, [
|
|
3296
|
-
_e(
|
|
3297
|
-
name: `checkbox-${
|
|
3297
|
+
_e(h.value, (D) => ({
|
|
3298
|
+
name: `checkbox-${D.id}-append`,
|
|
3298
3299
|
fn: pe(() => [
|
|
3299
|
-
de(it, { item:
|
|
3300
|
+
de(it, { item: D }, null, 8, ["item"])
|
|
3300
3301
|
])
|
|
3301
3302
|
}))
|
|
3302
3303
|
]), 1032, ["model-value", "additional-permissions"])
|
|
3303
3304
|
]),
|
|
3304
|
-
ne("div",
|
|
3305
|
+
ne("div", Vr, [
|
|
3305
3306
|
de(On, {
|
|
3306
|
-
"model-value":
|
|
3307
|
+
"model-value": V.value,
|
|
3307
3308
|
options: A.value,
|
|
3308
3309
|
context: Te(a)("team.labels.warehouse"),
|
|
3309
3310
|
"onUpdate:modelValue": i
|
|
3310
3311
|
}, Fe({ _: 2 }, [
|
|
3311
|
-
_e(T.value, (
|
|
3312
|
-
name: `checkbox-${
|
|
3312
|
+
_e(T.value, (D) => ({
|
|
3313
|
+
name: `checkbox-${D.id}-append`,
|
|
3313
3314
|
fn: pe(() => [
|
|
3314
|
-
de(it, { item:
|
|
3315
|
+
de(it, { item: D }, null, 8, ["item"])
|
|
3315
3316
|
])
|
|
3316
3317
|
}))
|
|
3317
3318
|
]), 1032, ["model-value", "options", "context"])
|
|
3318
3319
|
]),
|
|
3319
|
-
ne("div",
|
|
3320
|
+
ne("div", Ur, [
|
|
3320
3321
|
de(On, {
|
|
3321
3322
|
"model-value": _.value,
|
|
3322
3323
|
options: S.value,
|
|
3323
3324
|
context: Te(a)("team.labels.restaurant"),
|
|
3324
|
-
"onUpdate:modelValue":
|
|
3325
|
+
"onUpdate:modelValue": j
|
|
3325
3326
|
}, Fe({ _: 2 }, [
|
|
3326
|
-
_e(O.value, (
|
|
3327
|
-
name: `checkbox-${
|
|
3327
|
+
_e(O.value, (D) => ({
|
|
3328
|
+
name: `checkbox-${D.id}-append`,
|
|
3328
3329
|
fn: pe(() => [
|
|
3329
|
-
de(it, { item:
|
|
3330
|
+
de(it, { item: D }, null, 8, ["item"])
|
|
3330
3331
|
])
|
|
3331
3332
|
}))
|
|
3332
3333
|
]), 1032, ["model-value", "options", "context"])
|
|
3333
3334
|
]),
|
|
3334
3335
|
ne("div", Wr, [
|
|
3335
3336
|
de(Mr, {
|
|
3336
|
-
roles: Te(
|
|
3337
|
+
roles: Te(b),
|
|
3337
3338
|
"model-value": g.value,
|
|
3338
3339
|
"restaurant-ids": _.value,
|
|
3339
|
-
"onUpdate:modelValue":
|
|
3340
|
+
"onUpdate:modelValue": Y
|
|
3340
3341
|
}, Fe({ _: 2 }, [
|
|
3341
|
-
_e(N.value, (
|
|
3342
|
-
name: `checkbox-${
|
|
3342
|
+
_e(N.value, (D) => ({
|
|
3343
|
+
name: `checkbox-${D.id}-append`,
|
|
3343
3344
|
fn: pe(() => [
|
|
3344
|
-
de(it, { item:
|
|
3345
|
+
de(it, { item: D }, null, 8, ["item"])
|
|
3345
3346
|
])
|
|
3346
3347
|
}))
|
|
3347
3348
|
]), 1032, ["roles", "model-value", "restaurant-ids"])
|
|
@@ -3351,5 +3352,5 @@ const hr = { class: "col flex items-center" }, br = {
|
|
|
3351
3352
|
});
|
|
3352
3353
|
export {
|
|
3353
3354
|
zt as _,
|
|
3354
|
-
|
|
3355
|
+
Kr as a
|
|
3355
3356
|
};
|