@feedmepos/mf-hrm-portal 1.1.3-dev → 1.1.3-dev.10
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-BghaBoJj.js +436 -0
- package/dist/EmployeeList-C4knb1ZM.js +626 -0
- package/dist/{Main-DGymQNz9.js → Main-BGcdVWrj.js} +10 -9
- package/dist/{Main-BqhrqOzx.js → Main-DYuuBLTj.js} +28 -27
- package/dist/PermissionSetList-DPKmbnO4.js +323 -0
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-nbk54pp5.js +3092 -0
- package/dist/RoleList-CWUkSfcS.js +494 -0
- package/dist/TeamMemberList-BDB9zWwa.js +965 -0
- package/dist/{TimesheetList-hgT9DrHd.js → TimesheetList-CqVVoydR.js} +25 -24
- package/dist/api/index.d.ts +5 -0
- package/dist/api/report-query/index.d.ts +5 -0
- package/dist/api/team/index.d.ts +2 -5
- package/dist/{app-CcbYGJ22.js → app-C04LPGZa.js} +1606 -918
- package/dist/app.js +4 -4
- package/dist/composables/useReportPermissions.d.ts +14 -0
- package/dist/{dayjs.min-CgN1oBQf.js → dayjs.min-CKv07Hiu.js} +1 -1
- package/dist/employee-DyW4lRCb.js +144 -0
- package/dist/helpers/permission-set.d.ts +37 -0
- package/dist/helpers/rule.d.ts +1 -1
- package/dist/index-CIz_Nsy5.js +10340 -0
- package/dist/index-DGq_eY85.js +827 -0
- package/dist/{lodash-7Am6_Zd3.js → lodash-r0Tf8VGX.js} +1 -1
- package/dist/stores/permission-set.d.ts +15 -0
- package/dist/stores/team.d.ts +4 -1
- package/dist/style.css +1 -1
- package/dist/team-CSB4_BXX.js +29 -0
- package/dist/{timesheet-DKhEeLe7.js → timesheet-CTS0MzUs.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/types/audit-log.d.ts +1 -19
- package/dist/types/permission-set.d.ts +4 -0
- package/dist/types/report-query.d.ts +6 -0
- package/dist/{useAppStore-DOSLuH24.js → useAppStore-CWtHdJdl.js} +34 -46
- package/dist/{useLoading-BA-GSZ3R.js → useLoading-gYEFsA3E.js} +1 -1
- package/dist/useReportPermissions--n283f22.js +65 -0
- package/dist/views/audit-log/locales/index.d.ts +84 -0
- package/dist/views/team/locales/index.d.ts +32 -8
- package/package.json +4 -2
- package/dist/AuditLogList-DNQh1rE9.js +0 -316
- package/dist/EmployeeList-zU7fmC4c.js +0 -607
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BvjXcknf.js +0 -3050
- package/dist/RoleList-jbZqer7A.js +0 -496
- package/dist/RolePermissionList-Dd8ks5i7.js +0 -285
- package/dist/TeamMemberList-uamoOFIV.js +0 -949
- package/dist/employee-khk560IC.js +0 -172
- package/dist/index-D5sdamN5.js +0 -8411
- package/dist/team-CFyc6tnm.js +0 -26
- package/dist/types/permission.d.ts +0 -1
- /package/dist/views/team/{role/RolePermissionForm.vue.d.ts → permission-set/PermissionSetForm.vue.d.ts} +0 -0
- /package/dist/views/team/{role/RolePermissionList.vue.d.ts → permission-set/PermissionSetList.vue.d.ts} +0 -0
|
@@ -1,3050 +0,0 @@
|
|
|
1
|
-
import { getCurrentInstance as Wt, inject as Hn, ref as Te, shallowRef as Yn, computed as G, watch as Rt, onMounted as Gt, onUnmounted as kn, defineComponent as ce, h as Ln, createVNode as ne, Text as Bn, Fragment as we, resolveComponent as Ge, createBlock as Oe, openBlock as B, withCtx as se, createElementVNode as ee, createElementBlock as te, toDisplayString as je, unref as he, renderList as me, renderSlot as le, createCommentVNode as Ne, createTextVNode as Jn, useSlots as $n, normalizeStyle as tt, normalizeClass as Ke, createSlots as ve, nextTick as Kn, mergeModels as Kt, useModel as zn } from "vue";
|
|
2
|
-
import { useI18n as at, useCoreStore as Qn } from "@feedmepos/mf-common";
|
|
3
|
-
import "@vue/devtools-api";
|
|
4
|
-
import { l as We, w as Ct, g as qn, b as es, n as ts, x as vt, y as ns, m as ss } from "./index-D5sdamN5.js";
|
|
5
|
-
import { a as rs, h as Q, o as zt } from "./app-CcbYGJ22.js";
|
|
6
|
-
import { u as as } from "./useAppStore-DOSLuH24.js";
|
|
7
|
-
/*!
|
|
8
|
-
* shared v10.0.5
|
|
9
|
-
* (c) 2024 kazuya kawaguchi
|
|
10
|
-
* Released under the MIT License.
|
|
11
|
-
*/
|
|
12
|
-
const Qt = typeof window < "u", ke = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), ls = (e, t, n) => os({ l: e, k: t, s: n }), os = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), K = (e) => typeof e == "number" && isFinite(e), is = (e) => jt(e) === "[object Date]", st = (e) => jt(e) === "[object RegExp]", lt = (e) => w(e) && Object.keys(e).length === 0, z = Object.assign, cs = Object.create, V = (e = null) => cs(e);
|
|
13
|
-
let qt;
|
|
14
|
-
const ye = () => qt || (qt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : V());
|
|
15
|
-
function en(e) {
|
|
16
|
-
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
17
|
-
}
|
|
18
|
-
const us = Object.prototype.hasOwnProperty;
|
|
19
|
-
function ie(e, t) {
|
|
20
|
-
return us.call(e, t);
|
|
21
|
-
}
|
|
22
|
-
const $ = Array.isArray, Z = (e) => typeof e == "function", R = (e) => typeof e == "string", J = (e) => typeof e == "boolean", F = (e) => e !== null && typeof e == "object", ms = (e) => F(e) && Z(e.then) && Z(e.catch), Rn = Object.prototype.toString, jt = (e) => Rn.call(e), w = (e) => jt(e) === "[object Object]", ds = (e) => e == null ? "" : $(e) || w(e) && e.toString === Rn ? JSON.stringify(e, null, 2) : String(e);
|
|
23
|
-
function Xt(e, t = "") {
|
|
24
|
-
return e.reduce((n, s, l) => l === 0 ? n + s : n + t + s, "");
|
|
25
|
-
}
|
|
26
|
-
function _s(e, t) {
|
|
27
|
-
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
28
|
-
}
|
|
29
|
-
const ze = (e) => !F(e) || $(e);
|
|
30
|
-
function nt(e, t) {
|
|
31
|
-
if (ze(e) || ze(t))
|
|
32
|
-
throw new Error("Invalid value");
|
|
33
|
-
const n = [{ src: e, des: t }];
|
|
34
|
-
for (; n.length; ) {
|
|
35
|
-
const { src: s, des: l } = n.pop();
|
|
36
|
-
Object.keys(s).forEach((r) => {
|
|
37
|
-
r !== "__proto__" && (F(s[r]) && !F(l[r]) && (l[r] = Array.isArray(s[r]) ? [] : V()), ze(l[r]) || ze(s[r]) ? l[r] = s[r] : n.push({ src: s[r], des: l[r] }));
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
function fs(e, t, n) {
|
|
42
|
-
return { line: e, column: t, offset: n };
|
|
43
|
-
}
|
|
44
|
-
function St(e, t, n) {
|
|
45
|
-
return { start: e, end: t };
|
|
46
|
-
}
|
|
47
|
-
const U = {
|
|
48
|
-
// tokenizer error codes
|
|
49
|
-
EXPECTED_TOKEN: 1,
|
|
50
|
-
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
|
51
|
-
UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
|
|
52
|
-
UNKNOWN_ESCAPE_SEQUENCE: 4,
|
|
53
|
-
INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
|
|
54
|
-
UNBALANCED_CLOSING_BRACE: 6,
|
|
55
|
-
UNTERMINATED_CLOSING_BRACE: 7,
|
|
56
|
-
EMPTY_PLACEHOLDER: 8,
|
|
57
|
-
NOT_ALLOW_NEST_PLACEHOLDER: 9,
|
|
58
|
-
INVALID_LINKED_FORMAT: 10,
|
|
59
|
-
// parser error codes
|
|
60
|
-
MUST_HAVE_MESSAGES_IN_PLURAL: 11,
|
|
61
|
-
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
62
|
-
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
63
|
-
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
64
|
-
}, ps = 17;
|
|
65
|
-
function ot(e, t, n = {}) {
|
|
66
|
-
const { domain: s, messages: l, args: r } = n, c = e, m = new SyntaxError(String(c));
|
|
67
|
-
return m.code = e, t && (m.location = t), m.domain = s, m;
|
|
68
|
-
}
|
|
69
|
-
function hs(e) {
|
|
70
|
-
throw e;
|
|
71
|
-
}
|
|
72
|
-
const _e = " ", bs = "\r", q = `
|
|
73
|
-
`, gs = "\u2028", Es = "\u2029";
|
|
74
|
-
function Is(e) {
|
|
75
|
-
const t = e;
|
|
76
|
-
let n = 0, s = 1, l = 1, r = 0;
|
|
77
|
-
const c = (N) => t[N] === bs && t[N + 1] === q, m = (N) => t[N] === q, u = (N) => t[N] === Es, _ = (N) => t[N] === gs, b = (N) => c(N) || m(N) || u(N) || _(N), E = () => n, g = () => s, C = () => l, M = () => r, y = (N) => c(N) || u(N) || _(N) ? q : t[N], O = () => y(n), i = () => y(n + r);
|
|
78
|
-
function d() {
|
|
79
|
-
return r = 0, b(n) && (s++, l = 0), c(n) && n++, n++, l++, t[n];
|
|
80
|
-
}
|
|
81
|
-
function v() {
|
|
82
|
-
return c(n + r) && r++, r++, t[n + r];
|
|
83
|
-
}
|
|
84
|
-
function p() {
|
|
85
|
-
n = 0, s = 1, l = 1, r = 0;
|
|
86
|
-
}
|
|
87
|
-
function k(N = 0) {
|
|
88
|
-
r = N;
|
|
89
|
-
}
|
|
90
|
-
function T() {
|
|
91
|
-
const N = n + r;
|
|
92
|
-
for (; N !== n; )
|
|
93
|
-
d();
|
|
94
|
-
r = 0;
|
|
95
|
-
}
|
|
96
|
-
return {
|
|
97
|
-
index: E,
|
|
98
|
-
line: g,
|
|
99
|
-
column: C,
|
|
100
|
-
peekOffset: M,
|
|
101
|
-
charAt: y,
|
|
102
|
-
currentChar: O,
|
|
103
|
-
currentPeek: i,
|
|
104
|
-
next: d,
|
|
105
|
-
peek: v,
|
|
106
|
-
reset: p,
|
|
107
|
-
resetPeek: k,
|
|
108
|
-
skipToPeek: T
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
const be = void 0, Ns = ".", tn = "'", vs = "tokenizer";
|
|
112
|
-
function ys(e, t = {}) {
|
|
113
|
-
const n = t.location !== !1, s = Is(e), l = () => s.index(), r = () => fs(s.line(), s.column(), s.index()), c = r(), m = l(), u = {
|
|
114
|
-
currentType: 13,
|
|
115
|
-
offset: m,
|
|
116
|
-
startLoc: c,
|
|
117
|
-
endLoc: c,
|
|
118
|
-
lastType: 13,
|
|
119
|
-
lastOffset: m,
|
|
120
|
-
lastStartLoc: c,
|
|
121
|
-
lastEndLoc: c,
|
|
122
|
-
braceNest: 0,
|
|
123
|
-
inLinked: !1,
|
|
124
|
-
text: ""
|
|
125
|
-
}, _ = () => u, { onError: b } = t;
|
|
126
|
-
function E(a, o, h, ...A) {
|
|
127
|
-
const H = _();
|
|
128
|
-
if (o.column += h, o.offset += h, b) {
|
|
129
|
-
const P = n ? St(H.startLoc, o) : null, f = ot(a, P, {
|
|
130
|
-
domain: vs,
|
|
131
|
-
args: A
|
|
132
|
-
});
|
|
133
|
-
b(f);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
function g(a, o, h) {
|
|
137
|
-
a.endLoc = r(), a.currentType = o;
|
|
138
|
-
const A = { type: o };
|
|
139
|
-
return n && (A.loc = St(a.startLoc, a.endLoc)), h != null && (A.value = h), A;
|
|
140
|
-
}
|
|
141
|
-
const C = (a) => g(
|
|
142
|
-
a,
|
|
143
|
-
13
|
|
144
|
-
/* TokenTypes.EOF */
|
|
145
|
-
);
|
|
146
|
-
function M(a, o) {
|
|
147
|
-
return a.currentChar() === o ? (a.next(), o) : (E(U.EXPECTED_TOKEN, r(), 0, o), "");
|
|
148
|
-
}
|
|
149
|
-
function y(a) {
|
|
150
|
-
let o = "";
|
|
151
|
-
for (; a.currentPeek() === _e || a.currentPeek() === q; )
|
|
152
|
-
o += a.currentPeek(), a.peek();
|
|
153
|
-
return o;
|
|
154
|
-
}
|
|
155
|
-
function O(a) {
|
|
156
|
-
const o = y(a);
|
|
157
|
-
return a.skipToPeek(), o;
|
|
158
|
-
}
|
|
159
|
-
function i(a) {
|
|
160
|
-
if (a === be)
|
|
161
|
-
return !1;
|
|
162
|
-
const o = a.charCodeAt(0);
|
|
163
|
-
return o >= 97 && o <= 122 || // a-z
|
|
164
|
-
o >= 65 && o <= 90 || // A-Z
|
|
165
|
-
o === 95;
|
|
166
|
-
}
|
|
167
|
-
function d(a) {
|
|
168
|
-
if (a === be)
|
|
169
|
-
return !1;
|
|
170
|
-
const o = a.charCodeAt(0);
|
|
171
|
-
return o >= 48 && o <= 57;
|
|
172
|
-
}
|
|
173
|
-
function v(a, o) {
|
|
174
|
-
const { currentType: h } = o;
|
|
175
|
-
if (h !== 2)
|
|
176
|
-
return !1;
|
|
177
|
-
y(a);
|
|
178
|
-
const A = i(a.currentPeek());
|
|
179
|
-
return a.resetPeek(), A;
|
|
180
|
-
}
|
|
181
|
-
function p(a, o) {
|
|
182
|
-
const { currentType: h } = o;
|
|
183
|
-
if (h !== 2)
|
|
184
|
-
return !1;
|
|
185
|
-
y(a);
|
|
186
|
-
const A = a.currentPeek() === "-" ? a.peek() : a.currentPeek(), H = d(A);
|
|
187
|
-
return a.resetPeek(), H;
|
|
188
|
-
}
|
|
189
|
-
function k(a, o) {
|
|
190
|
-
const { currentType: h } = o;
|
|
191
|
-
if (h !== 2)
|
|
192
|
-
return !1;
|
|
193
|
-
y(a);
|
|
194
|
-
const A = a.currentPeek() === tn;
|
|
195
|
-
return a.resetPeek(), A;
|
|
196
|
-
}
|
|
197
|
-
function T(a, o) {
|
|
198
|
-
const { currentType: h } = o;
|
|
199
|
-
if (h !== 7)
|
|
200
|
-
return !1;
|
|
201
|
-
y(a);
|
|
202
|
-
const A = a.currentPeek() === ".";
|
|
203
|
-
return a.resetPeek(), A;
|
|
204
|
-
}
|
|
205
|
-
function N(a, o) {
|
|
206
|
-
const { currentType: h } = o;
|
|
207
|
-
if (h !== 8)
|
|
208
|
-
return !1;
|
|
209
|
-
y(a);
|
|
210
|
-
const A = i(a.currentPeek());
|
|
211
|
-
return a.resetPeek(), A;
|
|
212
|
-
}
|
|
213
|
-
function X(a, o) {
|
|
214
|
-
const { currentType: h } = o;
|
|
215
|
-
if (!(h === 7 || h === 11))
|
|
216
|
-
return !1;
|
|
217
|
-
y(a);
|
|
218
|
-
const A = a.currentPeek() === ":";
|
|
219
|
-
return a.resetPeek(), A;
|
|
220
|
-
}
|
|
221
|
-
function j(a, o) {
|
|
222
|
-
const { currentType: h } = o;
|
|
223
|
-
if (h !== 9)
|
|
224
|
-
return !1;
|
|
225
|
-
const A = () => {
|
|
226
|
-
const P = a.currentPeek();
|
|
227
|
-
return P === "{" ? i(a.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === _e || !P ? !1 : P === q ? (a.peek(), A()) : S(a, !1);
|
|
228
|
-
}, H = A();
|
|
229
|
-
return a.resetPeek(), H;
|
|
230
|
-
}
|
|
231
|
-
function D(a) {
|
|
232
|
-
y(a);
|
|
233
|
-
const o = a.currentPeek() === "|";
|
|
234
|
-
return a.resetPeek(), o;
|
|
235
|
-
}
|
|
236
|
-
function S(a, o = !0) {
|
|
237
|
-
const h = (H = !1, P = "") => {
|
|
238
|
-
const f = a.currentPeek();
|
|
239
|
-
return f === "{" || f === "@" || !f ? H : f === "|" ? !(P === _e || P === q) : f === _e ? (a.peek(), h(!0, _e)) : f === q ? (a.peek(), h(!0, q)) : !0;
|
|
240
|
-
}, A = h();
|
|
241
|
-
return o && a.resetPeek(), A;
|
|
242
|
-
}
|
|
243
|
-
function L(a, o) {
|
|
244
|
-
const h = a.currentChar();
|
|
245
|
-
return h === be ? be : o(h) ? (a.next(), h) : null;
|
|
246
|
-
}
|
|
247
|
-
function x(a) {
|
|
248
|
-
const o = a.charCodeAt(0);
|
|
249
|
-
return o >= 97 && o <= 122 || // a-z
|
|
250
|
-
o >= 65 && o <= 90 || // A-Z
|
|
251
|
-
o >= 48 && o <= 57 || // 0-9
|
|
252
|
-
o === 95 || // _
|
|
253
|
-
o === 36;
|
|
254
|
-
}
|
|
255
|
-
function re(a) {
|
|
256
|
-
return L(a, x);
|
|
257
|
-
}
|
|
258
|
-
function Le(a) {
|
|
259
|
-
const o = a.charCodeAt(0);
|
|
260
|
-
return o >= 97 && o <= 122 || // a-z
|
|
261
|
-
o >= 65 && o <= 90 || // A-Z
|
|
262
|
-
o >= 48 && o <= 57 || // 0-9
|
|
263
|
-
o === 95 || // _
|
|
264
|
-
o === 36 || // $
|
|
265
|
-
o === 45;
|
|
266
|
-
}
|
|
267
|
-
function oe(a) {
|
|
268
|
-
return L(a, Le);
|
|
269
|
-
}
|
|
270
|
-
function ut(a) {
|
|
271
|
-
const o = a.charCodeAt(0);
|
|
272
|
-
return o >= 48 && o <= 57;
|
|
273
|
-
}
|
|
274
|
-
function mt(a) {
|
|
275
|
-
return L(a, ut);
|
|
276
|
-
}
|
|
277
|
-
function de(a) {
|
|
278
|
-
const o = a.charCodeAt(0);
|
|
279
|
-
return o >= 48 && o <= 57 || // 0-9
|
|
280
|
-
o >= 65 && o <= 70 || // A-F
|
|
281
|
-
o >= 97 && o <= 102;
|
|
282
|
-
}
|
|
283
|
-
function Ye(a) {
|
|
284
|
-
return L(a, de);
|
|
285
|
-
}
|
|
286
|
-
function Be(a) {
|
|
287
|
-
let o = "", h = "";
|
|
288
|
-
for (; o = mt(a); )
|
|
289
|
-
h += o;
|
|
290
|
-
return h;
|
|
291
|
-
}
|
|
292
|
-
function dt(a) {
|
|
293
|
-
let o = "";
|
|
294
|
-
for (; ; ) {
|
|
295
|
-
const h = a.currentChar();
|
|
296
|
-
if (h === "{" || h === "}" || h === "@" || h === "|" || !h)
|
|
297
|
-
break;
|
|
298
|
-
if (h === _e || h === q)
|
|
299
|
-
if (S(a))
|
|
300
|
-
o += h, a.next();
|
|
301
|
-
else {
|
|
302
|
-
if (D(a))
|
|
303
|
-
break;
|
|
304
|
-
o += h, a.next();
|
|
305
|
-
}
|
|
306
|
-
else
|
|
307
|
-
o += h, a.next();
|
|
308
|
-
}
|
|
309
|
-
return o;
|
|
310
|
-
}
|
|
311
|
-
function _t(a) {
|
|
312
|
-
O(a);
|
|
313
|
-
let o = "", h = "";
|
|
314
|
-
for (; o = oe(a); )
|
|
315
|
-
h += o;
|
|
316
|
-
return a.currentChar() === be && E(U.UNTERMINATED_CLOSING_BRACE, r(), 0), h;
|
|
317
|
-
}
|
|
318
|
-
function ft(a) {
|
|
319
|
-
O(a);
|
|
320
|
-
let o = "";
|
|
321
|
-
return a.currentChar() === "-" ? (a.next(), o += `-${Be(a)}`) : o += Be(a), a.currentChar() === be && E(U.UNTERMINATED_CLOSING_BRACE, r(), 0), o;
|
|
322
|
-
}
|
|
323
|
-
function $t(a) {
|
|
324
|
-
return a !== tn && a !== q;
|
|
325
|
-
}
|
|
326
|
-
function pt(a) {
|
|
327
|
-
O(a), M(a, "'");
|
|
328
|
-
let o = "", h = "";
|
|
329
|
-
for (; o = L(a, $t); )
|
|
330
|
-
o === "\\" ? h += ht(a) : h += o;
|
|
331
|
-
const A = a.currentChar();
|
|
332
|
-
return A === q || A === be ? (E(U.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, r(), 0), A === q && (a.next(), M(a, "'")), h) : (M(a, "'"), h);
|
|
333
|
-
}
|
|
334
|
-
function ht(a) {
|
|
335
|
-
const o = a.currentChar();
|
|
336
|
-
switch (o) {
|
|
337
|
-
case "\\":
|
|
338
|
-
case "'":
|
|
339
|
-
return a.next(), `\\${o}`;
|
|
340
|
-
case "u":
|
|
341
|
-
return Je(a, o, 4);
|
|
342
|
-
case "U":
|
|
343
|
-
return Je(a, o, 6);
|
|
344
|
-
default:
|
|
345
|
-
return E(U.UNKNOWN_ESCAPE_SEQUENCE, r(), 0, o), "";
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
function Je(a, o, h) {
|
|
349
|
-
M(a, o);
|
|
350
|
-
let A = "";
|
|
351
|
-
for (let H = 0; H < h; H++) {
|
|
352
|
-
const P = Ye(a);
|
|
353
|
-
if (!P) {
|
|
354
|
-
E(U.INVALID_UNICODE_ESCAPE_SEQUENCE, r(), 0, `\\${o}${A}${a.currentChar()}`);
|
|
355
|
-
break;
|
|
356
|
-
}
|
|
357
|
-
A += P;
|
|
358
|
-
}
|
|
359
|
-
return `\\${o}${A}`;
|
|
360
|
-
}
|
|
361
|
-
function bt(a) {
|
|
362
|
-
return a !== "{" && a !== "}" && a !== _e && a !== q;
|
|
363
|
-
}
|
|
364
|
-
function gt(a) {
|
|
365
|
-
O(a);
|
|
366
|
-
let o = "", h = "";
|
|
367
|
-
for (; o = L(a, bt); )
|
|
368
|
-
h += o;
|
|
369
|
-
return h;
|
|
370
|
-
}
|
|
371
|
-
function Et(a) {
|
|
372
|
-
let o = "", h = "";
|
|
373
|
-
for (; o = re(a); )
|
|
374
|
-
h += o;
|
|
375
|
-
return h;
|
|
376
|
-
}
|
|
377
|
-
function It(a) {
|
|
378
|
-
const o = (h) => {
|
|
379
|
-
const A = a.currentChar();
|
|
380
|
-
return A === "{" || A === "@" || A === "|" || A === "(" || A === ")" || !A || A === _e ? h : (h += A, a.next(), o(h));
|
|
381
|
-
};
|
|
382
|
-
return o("");
|
|
383
|
-
}
|
|
384
|
-
function Fe(a) {
|
|
385
|
-
O(a);
|
|
386
|
-
const o = M(
|
|
387
|
-
a,
|
|
388
|
-
"|"
|
|
389
|
-
/* TokenChars.Pipe */
|
|
390
|
-
);
|
|
391
|
-
return O(a), o;
|
|
392
|
-
}
|
|
393
|
-
function Re(a, o) {
|
|
394
|
-
let h = null;
|
|
395
|
-
switch (a.currentChar()) {
|
|
396
|
-
case "{":
|
|
397
|
-
return o.braceNest >= 1 && E(U.NOT_ALLOW_NEST_PLACEHOLDER, r(), 0), a.next(), h = g(
|
|
398
|
-
o,
|
|
399
|
-
2,
|
|
400
|
-
"{"
|
|
401
|
-
/* TokenChars.BraceLeft */
|
|
402
|
-
), O(a), o.braceNest++, h;
|
|
403
|
-
case "}":
|
|
404
|
-
return o.braceNest > 0 && o.currentType === 2 && E(U.EMPTY_PLACEHOLDER, r(), 0), a.next(), h = g(
|
|
405
|
-
o,
|
|
406
|
-
3,
|
|
407
|
-
"}"
|
|
408
|
-
/* TokenChars.BraceRight */
|
|
409
|
-
), o.braceNest--, o.braceNest > 0 && O(a), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), h;
|
|
410
|
-
case "@":
|
|
411
|
-
return o.braceNest > 0 && E(U.UNTERMINATED_CLOSING_BRACE, r(), 0), h = Ce(a, o) || C(o), o.braceNest = 0, h;
|
|
412
|
-
default: {
|
|
413
|
-
let H = !0, P = !0, f = !0;
|
|
414
|
-
if (D(a))
|
|
415
|
-
return o.braceNest > 0 && E(U.UNTERMINATED_CLOSING_BRACE, r(), 0), h = g(o, 1, Fe(a)), o.braceNest = 0, o.inLinked = !1, h;
|
|
416
|
-
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
417
|
-
return E(U.UNTERMINATED_CLOSING_BRACE, r(), 0), o.braceNest = 0, Ue(a, o);
|
|
418
|
-
if (H = v(a, o))
|
|
419
|
-
return h = g(o, 4, _t(a)), O(a), h;
|
|
420
|
-
if (P = p(a, o))
|
|
421
|
-
return h = g(o, 5, ft(a)), O(a), h;
|
|
422
|
-
if (f = k(a, o))
|
|
423
|
-
return h = g(o, 6, pt(a)), O(a), h;
|
|
424
|
-
if (!H && !P && !f)
|
|
425
|
-
return h = g(o, 12, gt(a)), E(U.INVALID_TOKEN_IN_PLACEHOLDER, r(), 0, h.value), O(a), h;
|
|
426
|
-
break;
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
return h;
|
|
430
|
-
}
|
|
431
|
-
function Ce(a, o) {
|
|
432
|
-
const { currentType: h } = o;
|
|
433
|
-
let A = null;
|
|
434
|
-
const H = a.currentChar();
|
|
435
|
-
switch ((h === 7 || h === 8 || h === 11 || h === 9) && (H === q || H === _e) && E(U.INVALID_LINKED_FORMAT, r(), 0), H) {
|
|
436
|
-
case "@":
|
|
437
|
-
return a.next(), A = g(
|
|
438
|
-
o,
|
|
439
|
-
7,
|
|
440
|
-
"@"
|
|
441
|
-
/* TokenChars.LinkedAlias */
|
|
442
|
-
), o.inLinked = !0, A;
|
|
443
|
-
case ".":
|
|
444
|
-
return O(a), a.next(), g(
|
|
445
|
-
o,
|
|
446
|
-
8,
|
|
447
|
-
"."
|
|
448
|
-
/* TokenChars.LinkedDot */
|
|
449
|
-
);
|
|
450
|
-
case ":":
|
|
451
|
-
return O(a), a.next(), g(
|
|
452
|
-
o,
|
|
453
|
-
9,
|
|
454
|
-
":"
|
|
455
|
-
/* TokenChars.LinkedDelimiter */
|
|
456
|
-
);
|
|
457
|
-
default:
|
|
458
|
-
return D(a) ? (A = g(o, 1, Fe(a)), o.braceNest = 0, o.inLinked = !1, A) : T(a, o) || X(a, o) ? (O(a), Ce(a, o)) : N(a, o) ? (O(a), g(o, 11, Et(a))) : j(a, o) ? (O(a), H === "{" ? Re(a, o) || A : g(o, 10, It(a))) : (h === 7 && E(U.INVALID_LINKED_FORMAT, r(), 0), o.braceNest = 0, o.inLinked = !1, Ue(a, o));
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
function Ue(a, o) {
|
|
462
|
-
let h = {
|
|
463
|
-
type: 13
|
|
464
|
-
/* TokenTypes.EOF */
|
|
465
|
-
};
|
|
466
|
-
if (o.braceNest > 0)
|
|
467
|
-
return Re(a, o) || C(o);
|
|
468
|
-
if (o.inLinked)
|
|
469
|
-
return Ce(a, o) || C(o);
|
|
470
|
-
switch (a.currentChar()) {
|
|
471
|
-
case "{":
|
|
472
|
-
return Re(a, o) || C(o);
|
|
473
|
-
case "}":
|
|
474
|
-
return E(U.UNBALANCED_CLOSING_BRACE, r(), 0), a.next(), g(
|
|
475
|
-
o,
|
|
476
|
-
3,
|
|
477
|
-
"}"
|
|
478
|
-
/* TokenChars.BraceRight */
|
|
479
|
-
);
|
|
480
|
-
case "@":
|
|
481
|
-
return Ce(a, o) || C(o);
|
|
482
|
-
default: {
|
|
483
|
-
if (D(a))
|
|
484
|
-
return h = g(o, 1, Fe(a)), o.braceNest = 0, o.inLinked = !1, h;
|
|
485
|
-
if (S(a))
|
|
486
|
-
return g(o, 0, dt(a));
|
|
487
|
-
break;
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
return h;
|
|
491
|
-
}
|
|
492
|
-
function Nt() {
|
|
493
|
-
const { currentType: a, offset: o, startLoc: h, endLoc: A } = u;
|
|
494
|
-
return u.lastType = a, u.lastOffset = o, u.lastStartLoc = h, u.lastEndLoc = A, u.offset = l(), u.startLoc = r(), s.currentChar() === be ? g(
|
|
495
|
-
u,
|
|
496
|
-
13
|
|
497
|
-
/* TokenTypes.EOF */
|
|
498
|
-
) : Ue(s, u);
|
|
499
|
-
}
|
|
500
|
-
return {
|
|
501
|
-
nextToken: Nt,
|
|
502
|
-
currentOffset: l,
|
|
503
|
-
currentPosition: r,
|
|
504
|
-
context: _
|
|
505
|
-
};
|
|
506
|
-
}
|
|
507
|
-
const Ts = "parser", Os = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
508
|
-
function ks(e, t, n) {
|
|
509
|
-
switch (e) {
|
|
510
|
-
case "\\\\":
|
|
511
|
-
return "\\";
|
|
512
|
-
case "\\'":
|
|
513
|
-
return "'";
|
|
514
|
-
default: {
|
|
515
|
-
const s = parseInt(t || n, 16);
|
|
516
|
-
return s <= 55295 || s >= 57344 ? String.fromCodePoint(s) : "�";
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
function Ls(e = {}) {
|
|
521
|
-
const t = e.location !== !1, { onError: n } = e;
|
|
522
|
-
function s(i, d, v, p, ...k) {
|
|
523
|
-
const T = i.currentPosition();
|
|
524
|
-
if (T.offset += p, T.column += p, n) {
|
|
525
|
-
const N = t ? St(v, T) : null, X = ot(d, N, {
|
|
526
|
-
domain: Ts,
|
|
527
|
-
args: k
|
|
528
|
-
});
|
|
529
|
-
n(X);
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
function l(i, d, v) {
|
|
533
|
-
const p = { type: i };
|
|
534
|
-
return t && (p.start = d, p.end = d, p.loc = { start: v, end: v }), p;
|
|
535
|
-
}
|
|
536
|
-
function r(i, d, v, p) {
|
|
537
|
-
t && (i.end = d, i.loc && (i.loc.end = v));
|
|
538
|
-
}
|
|
539
|
-
function c(i, d) {
|
|
540
|
-
const v = i.context(), p = l(3, v.offset, v.startLoc);
|
|
541
|
-
return p.value = d, r(p, i.currentOffset(), i.currentPosition()), p;
|
|
542
|
-
}
|
|
543
|
-
function m(i, d) {
|
|
544
|
-
const v = i.context(), { lastOffset: p, lastStartLoc: k } = v, T = l(5, p, k);
|
|
545
|
-
return T.index = parseInt(d, 10), i.nextToken(), r(T, i.currentOffset(), i.currentPosition()), T;
|
|
546
|
-
}
|
|
547
|
-
function u(i, d) {
|
|
548
|
-
const v = i.context(), { lastOffset: p, lastStartLoc: k } = v, T = l(4, p, k);
|
|
549
|
-
return T.key = d, i.nextToken(), r(T, i.currentOffset(), i.currentPosition()), T;
|
|
550
|
-
}
|
|
551
|
-
function _(i, d) {
|
|
552
|
-
const v = i.context(), { lastOffset: p, lastStartLoc: k } = v, T = l(9, p, k);
|
|
553
|
-
return T.value = d.replace(Os, ks), i.nextToken(), r(T, i.currentOffset(), i.currentPosition()), T;
|
|
554
|
-
}
|
|
555
|
-
function b(i) {
|
|
556
|
-
const d = i.nextToken(), v = i.context(), { lastOffset: p, lastStartLoc: k } = v, T = l(8, p, k);
|
|
557
|
-
return d.type !== 11 ? (s(i, U.UNEXPECTED_EMPTY_LINKED_MODIFIER, v.lastStartLoc, 0), T.value = "", r(T, p, k), {
|
|
558
|
-
nextConsumeToken: d,
|
|
559
|
-
node: T
|
|
560
|
-
}) : (d.value == null && s(i, U.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(d)), T.value = d.value || "", r(T, i.currentOffset(), i.currentPosition()), {
|
|
561
|
-
node: T
|
|
562
|
-
});
|
|
563
|
-
}
|
|
564
|
-
function E(i, d) {
|
|
565
|
-
const v = i.context(), p = l(7, v.offset, v.startLoc);
|
|
566
|
-
return p.value = d, r(p, i.currentOffset(), i.currentPosition()), p;
|
|
567
|
-
}
|
|
568
|
-
function g(i) {
|
|
569
|
-
const d = i.context(), v = l(6, d.offset, d.startLoc);
|
|
570
|
-
let p = i.nextToken();
|
|
571
|
-
if (p.type === 8) {
|
|
572
|
-
const k = b(i);
|
|
573
|
-
v.modifier = k.node, p = k.nextConsumeToken || i.nextToken();
|
|
574
|
-
}
|
|
575
|
-
switch (p.type !== 9 && s(i, U.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ue(p)), p = i.nextToken(), p.type === 2 && (p = i.nextToken()), p.type) {
|
|
576
|
-
case 10:
|
|
577
|
-
p.value == null && s(i, U.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ue(p)), v.key = E(i, p.value || "");
|
|
578
|
-
break;
|
|
579
|
-
case 4:
|
|
580
|
-
p.value == null && s(i, U.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ue(p)), v.key = u(i, p.value || "");
|
|
581
|
-
break;
|
|
582
|
-
case 5:
|
|
583
|
-
p.value == null && s(i, U.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ue(p)), v.key = m(i, p.value || "");
|
|
584
|
-
break;
|
|
585
|
-
case 6:
|
|
586
|
-
p.value == null && s(i, U.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ue(p)), v.key = _(i, p.value || "");
|
|
587
|
-
break;
|
|
588
|
-
default: {
|
|
589
|
-
s(i, U.UNEXPECTED_EMPTY_LINKED_KEY, d.lastStartLoc, 0);
|
|
590
|
-
const k = i.context(), T = l(7, k.offset, k.startLoc);
|
|
591
|
-
return T.value = "", r(T, k.offset, k.startLoc), v.key = T, r(v, k.offset, k.startLoc), {
|
|
592
|
-
nextConsumeToken: p,
|
|
593
|
-
node: v
|
|
594
|
-
};
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
return r(v, i.currentOffset(), i.currentPosition()), {
|
|
598
|
-
node: v
|
|
599
|
-
};
|
|
600
|
-
}
|
|
601
|
-
function C(i) {
|
|
602
|
-
const d = i.context(), v = d.currentType === 1 ? i.currentOffset() : d.offset, p = d.currentType === 1 ? d.endLoc : d.startLoc, k = l(2, v, p);
|
|
603
|
-
k.items = [];
|
|
604
|
-
let T = null;
|
|
605
|
-
do {
|
|
606
|
-
const j = T || i.nextToken();
|
|
607
|
-
switch (T = null, j.type) {
|
|
608
|
-
case 0:
|
|
609
|
-
j.value == null && s(i, U.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ue(j)), k.items.push(c(i, j.value || ""));
|
|
610
|
-
break;
|
|
611
|
-
case 5:
|
|
612
|
-
j.value == null && s(i, U.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ue(j)), k.items.push(m(i, j.value || ""));
|
|
613
|
-
break;
|
|
614
|
-
case 4:
|
|
615
|
-
j.value == null && s(i, U.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ue(j)), k.items.push(u(i, j.value || ""));
|
|
616
|
-
break;
|
|
617
|
-
case 6:
|
|
618
|
-
j.value == null && s(i, U.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ue(j)), k.items.push(_(i, j.value || ""));
|
|
619
|
-
break;
|
|
620
|
-
case 7: {
|
|
621
|
-
const D = g(i);
|
|
622
|
-
k.items.push(D.node), T = D.nextConsumeToken || null;
|
|
623
|
-
break;
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
} while (d.currentType !== 13 && d.currentType !== 1);
|
|
627
|
-
const N = d.currentType === 1 ? d.lastOffset : i.currentOffset(), X = d.currentType === 1 ? d.lastEndLoc : i.currentPosition();
|
|
628
|
-
return r(k, N, X), k;
|
|
629
|
-
}
|
|
630
|
-
function M(i, d, v, p) {
|
|
631
|
-
const k = i.context();
|
|
632
|
-
let T = p.items.length === 0;
|
|
633
|
-
const N = l(1, d, v);
|
|
634
|
-
N.cases = [], N.cases.push(p);
|
|
635
|
-
do {
|
|
636
|
-
const X = C(i);
|
|
637
|
-
T || (T = X.items.length === 0), N.cases.push(X);
|
|
638
|
-
} while (k.currentType !== 13);
|
|
639
|
-
return T && s(i, U.MUST_HAVE_MESSAGES_IN_PLURAL, v, 0), r(N, i.currentOffset(), i.currentPosition()), N;
|
|
640
|
-
}
|
|
641
|
-
function y(i) {
|
|
642
|
-
const d = i.context(), { offset: v, startLoc: p } = d, k = C(i);
|
|
643
|
-
return d.currentType === 13 ? k : M(i, v, p, k);
|
|
644
|
-
}
|
|
645
|
-
function O(i) {
|
|
646
|
-
const d = ys(i, z({}, e)), v = d.context(), p = l(0, v.offset, v.startLoc);
|
|
647
|
-
return t && p.loc && (p.loc.source = i), p.body = y(d), e.onCacheKey && (p.cacheKey = e.onCacheKey(i)), v.currentType !== 13 && s(d, U.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, i[v.offset] || ""), r(p, d.currentOffset(), d.currentPosition()), p;
|
|
648
|
-
}
|
|
649
|
-
return { parse: O };
|
|
650
|
-
}
|
|
651
|
-
function ue(e) {
|
|
652
|
-
if (e.type === 13)
|
|
653
|
-
return "EOF";
|
|
654
|
-
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
655
|
-
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
656
|
-
}
|
|
657
|
-
function Rs(e, t = {}) {
|
|
658
|
-
const n = {
|
|
659
|
-
ast: e,
|
|
660
|
-
helpers: /* @__PURE__ */ new Set()
|
|
661
|
-
};
|
|
662
|
-
return { context: () => n, helper: (r) => (n.helpers.add(r), r) };
|
|
663
|
-
}
|
|
664
|
-
function nn(e, t) {
|
|
665
|
-
for (let n = 0; n < e.length; n++)
|
|
666
|
-
xt(e[n], t);
|
|
667
|
-
}
|
|
668
|
-
function xt(e, t) {
|
|
669
|
-
switch (e.type) {
|
|
670
|
-
case 1:
|
|
671
|
-
nn(e.cases, t), t.helper(
|
|
672
|
-
"plural"
|
|
673
|
-
/* HelperNameMap.PLURAL */
|
|
674
|
-
);
|
|
675
|
-
break;
|
|
676
|
-
case 2:
|
|
677
|
-
nn(e.items, t);
|
|
678
|
-
break;
|
|
679
|
-
case 6: {
|
|
680
|
-
xt(e.key, t), t.helper(
|
|
681
|
-
"linked"
|
|
682
|
-
/* HelperNameMap.LINKED */
|
|
683
|
-
), t.helper(
|
|
684
|
-
"type"
|
|
685
|
-
/* HelperNameMap.TYPE */
|
|
686
|
-
);
|
|
687
|
-
break;
|
|
688
|
-
}
|
|
689
|
-
case 5:
|
|
690
|
-
t.helper(
|
|
691
|
-
"interpolate"
|
|
692
|
-
/* HelperNameMap.INTERPOLATE */
|
|
693
|
-
), t.helper(
|
|
694
|
-
"list"
|
|
695
|
-
/* HelperNameMap.LIST */
|
|
696
|
-
);
|
|
697
|
-
break;
|
|
698
|
-
case 4:
|
|
699
|
-
t.helper(
|
|
700
|
-
"interpolate"
|
|
701
|
-
/* HelperNameMap.INTERPOLATE */
|
|
702
|
-
), t.helper(
|
|
703
|
-
"named"
|
|
704
|
-
/* HelperNameMap.NAMED */
|
|
705
|
-
);
|
|
706
|
-
break;
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
function Cs(e, t = {}) {
|
|
710
|
-
const n = Rs(e);
|
|
711
|
-
n.helper(
|
|
712
|
-
"normalize"
|
|
713
|
-
/* HelperNameMap.NORMALIZE */
|
|
714
|
-
), e.body && xt(e.body, n);
|
|
715
|
-
const s = n.context();
|
|
716
|
-
e.helpers = Array.from(s.helpers);
|
|
717
|
-
}
|
|
718
|
-
function Ss(e) {
|
|
719
|
-
const t = e.body;
|
|
720
|
-
return t.type === 2 ? sn(t) : t.cases.forEach((n) => sn(n)), e;
|
|
721
|
-
}
|
|
722
|
-
function sn(e) {
|
|
723
|
-
if (e.items.length === 1) {
|
|
724
|
-
const t = e.items[0];
|
|
725
|
-
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
726
|
-
} else {
|
|
727
|
-
const t = [];
|
|
728
|
-
for (let n = 0; n < e.items.length; n++) {
|
|
729
|
-
const s = e.items[n];
|
|
730
|
-
if (!(s.type === 3 || s.type === 9) || s.value == null)
|
|
731
|
-
break;
|
|
732
|
-
t.push(s.value);
|
|
733
|
-
}
|
|
734
|
-
if (t.length === e.items.length) {
|
|
735
|
-
e.static = Xt(t);
|
|
736
|
-
for (let n = 0; n < e.items.length; n++) {
|
|
737
|
-
const s = e.items[n];
|
|
738
|
-
(s.type === 3 || s.type === 9) && delete s.value;
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
function Ae(e) {
|
|
744
|
-
switch (e.t = e.type, e.type) {
|
|
745
|
-
case 0: {
|
|
746
|
-
const t = e;
|
|
747
|
-
Ae(t.body), t.b = t.body, delete t.body;
|
|
748
|
-
break;
|
|
749
|
-
}
|
|
750
|
-
case 1: {
|
|
751
|
-
const t = e, n = t.cases;
|
|
752
|
-
for (let s = 0; s < n.length; s++)
|
|
753
|
-
Ae(n[s]);
|
|
754
|
-
t.c = n, delete t.cases;
|
|
755
|
-
break;
|
|
756
|
-
}
|
|
757
|
-
case 2: {
|
|
758
|
-
const t = e, n = t.items;
|
|
759
|
-
for (let s = 0; s < n.length; s++)
|
|
760
|
-
Ae(n[s]);
|
|
761
|
-
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
762
|
-
break;
|
|
763
|
-
}
|
|
764
|
-
case 3:
|
|
765
|
-
case 9:
|
|
766
|
-
case 8:
|
|
767
|
-
case 7: {
|
|
768
|
-
const t = e;
|
|
769
|
-
t.value && (t.v = t.value, delete t.value);
|
|
770
|
-
break;
|
|
771
|
-
}
|
|
772
|
-
case 6: {
|
|
773
|
-
const t = e;
|
|
774
|
-
Ae(t.key), t.k = t.key, delete t.key, t.modifier && (Ae(t.modifier), t.m = t.modifier, delete t.modifier);
|
|
775
|
-
break;
|
|
776
|
-
}
|
|
777
|
-
case 5: {
|
|
778
|
-
const t = e;
|
|
779
|
-
t.i = t.index, delete t.index;
|
|
780
|
-
break;
|
|
781
|
-
}
|
|
782
|
-
case 4: {
|
|
783
|
-
const t = e;
|
|
784
|
-
t.k = t.key, delete t.key;
|
|
785
|
-
break;
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
delete e.type;
|
|
789
|
-
}
|
|
790
|
-
function As(e, t) {
|
|
791
|
-
const { filename: n, breakLineCode: s, needIndent: l } = t, r = t.location !== !1, c = {
|
|
792
|
-
filename: n,
|
|
793
|
-
code: "",
|
|
794
|
-
column: 1,
|
|
795
|
-
line: 1,
|
|
796
|
-
offset: 0,
|
|
797
|
-
map: void 0,
|
|
798
|
-
breakLineCode: s,
|
|
799
|
-
needIndent: l,
|
|
800
|
-
indentLevel: 0
|
|
801
|
-
};
|
|
802
|
-
r && e.loc && (c.source = e.loc.source);
|
|
803
|
-
const m = () => c;
|
|
804
|
-
function u(y, O) {
|
|
805
|
-
c.code += y;
|
|
806
|
-
}
|
|
807
|
-
function _(y, O = !0) {
|
|
808
|
-
const i = O ? s : "";
|
|
809
|
-
u(l ? i + " ".repeat(y) : i);
|
|
810
|
-
}
|
|
811
|
-
function b(y = !0) {
|
|
812
|
-
const O = ++c.indentLevel;
|
|
813
|
-
y && _(O);
|
|
814
|
-
}
|
|
815
|
-
function E(y = !0) {
|
|
816
|
-
const O = --c.indentLevel;
|
|
817
|
-
y && _(O);
|
|
818
|
-
}
|
|
819
|
-
function g() {
|
|
820
|
-
_(c.indentLevel);
|
|
821
|
-
}
|
|
822
|
-
return {
|
|
823
|
-
context: m,
|
|
824
|
-
push: u,
|
|
825
|
-
indent: b,
|
|
826
|
-
deindent: E,
|
|
827
|
-
newline: g,
|
|
828
|
-
helper: (y) => `_${y}`,
|
|
829
|
-
needIndent: () => c.needIndent
|
|
830
|
-
};
|
|
831
|
-
}
|
|
832
|
-
function Ds(e, t) {
|
|
833
|
-
const { helper: n } = e;
|
|
834
|
-
e.push(`${n(
|
|
835
|
-
"linked"
|
|
836
|
-
/* HelperNameMap.LINKED */
|
|
837
|
-
)}(`), De(e, t.key), t.modifier ? (e.push(", "), De(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
838
|
-
}
|
|
839
|
-
function Ms(e, t) {
|
|
840
|
-
const { helper: n, needIndent: s } = e;
|
|
841
|
-
e.push(`${n(
|
|
842
|
-
"normalize"
|
|
843
|
-
/* HelperNameMap.NORMALIZE */
|
|
844
|
-
)}([`), e.indent(s());
|
|
845
|
-
const l = t.items.length;
|
|
846
|
-
for (let r = 0; r < l && (De(e, t.items[r]), r !== l - 1); r++)
|
|
847
|
-
e.push(", ");
|
|
848
|
-
e.deindent(s()), e.push("])");
|
|
849
|
-
}
|
|
850
|
-
function Ps(e, t) {
|
|
851
|
-
const { helper: n, needIndent: s } = e;
|
|
852
|
-
if (t.cases.length > 1) {
|
|
853
|
-
e.push(`${n(
|
|
854
|
-
"plural"
|
|
855
|
-
/* HelperNameMap.PLURAL */
|
|
856
|
-
)}([`), e.indent(s());
|
|
857
|
-
const l = t.cases.length;
|
|
858
|
-
for (let r = 0; r < l && (De(e, t.cases[r]), r !== l - 1); r++)
|
|
859
|
-
e.push(", ");
|
|
860
|
-
e.deindent(s()), e.push("])");
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
function ws(e, t) {
|
|
864
|
-
t.body ? De(e, t.body) : e.push("null");
|
|
865
|
-
}
|
|
866
|
-
function De(e, t) {
|
|
867
|
-
const { helper: n } = e;
|
|
868
|
-
switch (t.type) {
|
|
869
|
-
case 0:
|
|
870
|
-
ws(e, t);
|
|
871
|
-
break;
|
|
872
|
-
case 1:
|
|
873
|
-
Ps(e, t);
|
|
874
|
-
break;
|
|
875
|
-
case 2:
|
|
876
|
-
Ms(e, t);
|
|
877
|
-
break;
|
|
878
|
-
case 6:
|
|
879
|
-
Ds(e, t);
|
|
880
|
-
break;
|
|
881
|
-
case 8:
|
|
882
|
-
e.push(JSON.stringify(t.value), t);
|
|
883
|
-
break;
|
|
884
|
-
case 7:
|
|
885
|
-
e.push(JSON.stringify(t.value), t);
|
|
886
|
-
break;
|
|
887
|
-
case 5:
|
|
888
|
-
e.push(`${n(
|
|
889
|
-
"interpolate"
|
|
890
|
-
/* HelperNameMap.INTERPOLATE */
|
|
891
|
-
)}(${n(
|
|
892
|
-
"list"
|
|
893
|
-
/* HelperNameMap.LIST */
|
|
894
|
-
)}(${t.index}))`, t);
|
|
895
|
-
break;
|
|
896
|
-
case 4:
|
|
897
|
-
e.push(`${n(
|
|
898
|
-
"interpolate"
|
|
899
|
-
/* HelperNameMap.INTERPOLATE */
|
|
900
|
-
)}(${n(
|
|
901
|
-
"named"
|
|
902
|
-
/* HelperNameMap.NAMED */
|
|
903
|
-
)}(${JSON.stringify(t.key)}))`, t);
|
|
904
|
-
break;
|
|
905
|
-
case 9:
|
|
906
|
-
e.push(JSON.stringify(t.value), t);
|
|
907
|
-
break;
|
|
908
|
-
case 3:
|
|
909
|
-
e.push(JSON.stringify(t.value), t);
|
|
910
|
-
break;
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
const Fs = (e, t = {}) => {
|
|
914
|
-
const n = R(t.mode) ? t.mode : "normal", s = R(t.filename) ? t.filename : "message.intl";
|
|
915
|
-
t.sourceMap;
|
|
916
|
-
const l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
917
|
-
`, r = t.needIndent ? t.needIndent : n !== "arrow", c = e.helpers || [], m = As(e, {
|
|
918
|
-
filename: s,
|
|
919
|
-
breakLineCode: l,
|
|
920
|
-
needIndent: r
|
|
921
|
-
});
|
|
922
|
-
m.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), m.indent(r), c.length > 0 && (m.push(`const { ${Xt(c.map((b) => `${b}: _${b}`), ", ")} } = ctx`), m.newline()), m.push("return "), De(m, e), m.deindent(r), m.push("}"), delete e.helpers;
|
|
923
|
-
const { code: u, map: _ } = m.context();
|
|
924
|
-
return {
|
|
925
|
-
ast: e,
|
|
926
|
-
code: u,
|
|
927
|
-
map: _ ? _.toJSON() : void 0
|
|
928
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
929
|
-
};
|
|
930
|
-
};
|
|
931
|
-
function Us(e, t = {}) {
|
|
932
|
-
const n = z({}, t), s = !!n.jit, l = !!n.minify, r = n.optimize == null ? !0 : n.optimize, m = Ls(n).parse(e);
|
|
933
|
-
return s ? (r && Ss(m), l && Ae(m), { ast: m, code: "" }) : (Cs(m, n), Fs(m, n));
|
|
934
|
-
}
|
|
935
|
-
var Vs = { env: { NODE_ENV: "production" } };
|
|
936
|
-
function Ws() {
|
|
937
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ye().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (ye().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
938
|
-
}
|
|
939
|
-
function yt(e) {
|
|
940
|
-
return (n) => Gs(n, e);
|
|
941
|
-
}
|
|
942
|
-
function Gs(e, t) {
|
|
943
|
-
const n = Xs(t);
|
|
944
|
-
if (n == null)
|
|
945
|
-
throw Xe(
|
|
946
|
-
0
|
|
947
|
-
/* NodeTypes.Resource */
|
|
948
|
-
);
|
|
949
|
-
if (Zt(n) === 1) {
|
|
950
|
-
const r = Zs(n);
|
|
951
|
-
return e.plural(r.reduce((c, m) => [
|
|
952
|
-
...c,
|
|
953
|
-
rn(e, m)
|
|
954
|
-
], []));
|
|
955
|
-
} else
|
|
956
|
-
return rn(e, n);
|
|
957
|
-
}
|
|
958
|
-
const js = ["b", "body"];
|
|
959
|
-
function Xs(e) {
|
|
960
|
-
return ge(e, js);
|
|
961
|
-
}
|
|
962
|
-
const xs = ["c", "cases"];
|
|
963
|
-
function Zs(e) {
|
|
964
|
-
return ge(e, xs, []);
|
|
965
|
-
}
|
|
966
|
-
function rn(e, t) {
|
|
967
|
-
const n = Ys(t);
|
|
968
|
-
if (n != null)
|
|
969
|
-
return e.type === "text" ? n : e.normalize([n]);
|
|
970
|
-
{
|
|
971
|
-
const s = Js(t).reduce((l, r) => [...l, At(e, r)], []);
|
|
972
|
-
return e.normalize(s);
|
|
973
|
-
}
|
|
974
|
-
}
|
|
975
|
-
const Hs = ["s", "static"];
|
|
976
|
-
function Ys(e) {
|
|
977
|
-
return ge(e, Hs);
|
|
978
|
-
}
|
|
979
|
-
const Bs = ["i", "items"];
|
|
980
|
-
function Js(e) {
|
|
981
|
-
return ge(e, Bs, []);
|
|
982
|
-
}
|
|
983
|
-
function At(e, t) {
|
|
984
|
-
const n = Zt(t);
|
|
985
|
-
switch (n) {
|
|
986
|
-
case 3:
|
|
987
|
-
return Qe(t, n);
|
|
988
|
-
case 9:
|
|
989
|
-
return Qe(t, n);
|
|
990
|
-
case 4: {
|
|
991
|
-
const s = t;
|
|
992
|
-
if (ie(s, "k") && s.k)
|
|
993
|
-
return e.interpolate(e.named(s.k));
|
|
994
|
-
if (ie(s, "key") && s.key)
|
|
995
|
-
return e.interpolate(e.named(s.key));
|
|
996
|
-
throw Xe(n);
|
|
997
|
-
}
|
|
998
|
-
case 5: {
|
|
999
|
-
const s = t;
|
|
1000
|
-
if (ie(s, "i") && K(s.i))
|
|
1001
|
-
return e.interpolate(e.list(s.i));
|
|
1002
|
-
if (ie(s, "index") && K(s.index))
|
|
1003
|
-
return e.interpolate(e.list(s.index));
|
|
1004
|
-
throw Xe(n);
|
|
1005
|
-
}
|
|
1006
|
-
case 6: {
|
|
1007
|
-
const s = t, l = Qs(s), r = er(s);
|
|
1008
|
-
return e.linked(At(e, r), l ? At(e, l) : void 0, e.type);
|
|
1009
|
-
}
|
|
1010
|
-
case 7:
|
|
1011
|
-
return Qe(t, n);
|
|
1012
|
-
case 8:
|
|
1013
|
-
return Qe(t, n);
|
|
1014
|
-
default:
|
|
1015
|
-
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1016
|
-
}
|
|
1017
|
-
}
|
|
1018
|
-
const $s = ["t", "type"];
|
|
1019
|
-
function Zt(e) {
|
|
1020
|
-
return ge(e, $s);
|
|
1021
|
-
}
|
|
1022
|
-
const Ks = ["v", "value"];
|
|
1023
|
-
function Qe(e, t) {
|
|
1024
|
-
const n = ge(e, Ks);
|
|
1025
|
-
if (n)
|
|
1026
|
-
return n;
|
|
1027
|
-
throw Xe(t);
|
|
1028
|
-
}
|
|
1029
|
-
const zs = ["m", "modifier"];
|
|
1030
|
-
function Qs(e) {
|
|
1031
|
-
return ge(e, zs);
|
|
1032
|
-
}
|
|
1033
|
-
const qs = ["k", "key"];
|
|
1034
|
-
function er(e) {
|
|
1035
|
-
const t = ge(e, qs);
|
|
1036
|
-
if (t)
|
|
1037
|
-
return t;
|
|
1038
|
-
throw Xe(
|
|
1039
|
-
6
|
|
1040
|
-
/* NodeTypes.Linked */
|
|
1041
|
-
);
|
|
1042
|
-
}
|
|
1043
|
-
function ge(e, t, n) {
|
|
1044
|
-
for (let s = 0; s < t.length; s++) {
|
|
1045
|
-
const l = t[s];
|
|
1046
|
-
if (ie(e, l) && e[l] != null)
|
|
1047
|
-
return e[l];
|
|
1048
|
-
}
|
|
1049
|
-
return n;
|
|
1050
|
-
}
|
|
1051
|
-
function Xe(e) {
|
|
1052
|
-
return new Error(`unhandled node type: ${e}`);
|
|
1053
|
-
}
|
|
1054
|
-
const tr = (e) => e;
|
|
1055
|
-
let qe = V();
|
|
1056
|
-
function Me(e) {
|
|
1057
|
-
return F(e) && Zt(e) === 0 && (ie(e, "b") || ie(e, "body"));
|
|
1058
|
-
}
|
|
1059
|
-
function nr(e, t = {}) {
|
|
1060
|
-
let n = !1;
|
|
1061
|
-
const s = t.onError || hs;
|
|
1062
|
-
return t.onError = (l) => {
|
|
1063
|
-
n = !0, s(l);
|
|
1064
|
-
}, { ...Us(e, t), detectError: n };
|
|
1065
|
-
}
|
|
1066
|
-
// @__NO_SIDE_EFFECTS__
|
|
1067
|
-
function sr(e, t) {
|
|
1068
|
-
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && R(e)) {
|
|
1069
|
-
J(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1070
|
-
const s = (t.onCacheKey || tr)(e), l = qe[s];
|
|
1071
|
-
if (l)
|
|
1072
|
-
return l;
|
|
1073
|
-
const { ast: r, detectError: c } = nr(e, {
|
|
1074
|
-
...t,
|
|
1075
|
-
location: Vs.env.NODE_ENV !== "production",
|
|
1076
|
-
jit: !0
|
|
1077
|
-
}), m = yt(r);
|
|
1078
|
-
return c ? m : qe[s] = m;
|
|
1079
|
-
} else {
|
|
1080
|
-
const n = e.cacheKey;
|
|
1081
|
-
if (n) {
|
|
1082
|
-
const s = qe[n];
|
|
1083
|
-
return s || (qe[n] = yt(e));
|
|
1084
|
-
} else
|
|
1085
|
-
return yt(e);
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
let xe = null;
|
|
1089
|
-
function rr(e) {
|
|
1090
|
-
xe = e;
|
|
1091
|
-
}
|
|
1092
|
-
function ar(e, t, n) {
|
|
1093
|
-
xe && xe.emit("i18n:init", {
|
|
1094
|
-
timestamp: Date.now(),
|
|
1095
|
-
i18n: e,
|
|
1096
|
-
version: t,
|
|
1097
|
-
meta: n
|
|
1098
|
-
});
|
|
1099
|
-
}
|
|
1100
|
-
const lr = /* @__PURE__ */ or("function:translate");
|
|
1101
|
-
function or(e) {
|
|
1102
|
-
return (t) => xe && xe.emit(e, t);
|
|
1103
|
-
}
|
|
1104
|
-
const fe = {
|
|
1105
|
-
INVALID_ARGUMENT: ps,
|
|
1106
|
-
// 17
|
|
1107
|
-
INVALID_DATE_ARGUMENT: 18,
|
|
1108
|
-
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
1109
|
-
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1110
|
-
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1111
|
-
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1112
|
-
}, ir = 24;
|
|
1113
|
-
function pe(e) {
|
|
1114
|
-
return ot(e, null, void 0);
|
|
1115
|
-
}
|
|
1116
|
-
function Ht(e, t) {
|
|
1117
|
-
return t.locale != null ? an(t.locale) : an(e.locale);
|
|
1118
|
-
}
|
|
1119
|
-
let Tt;
|
|
1120
|
-
function an(e) {
|
|
1121
|
-
if (R(e))
|
|
1122
|
-
return e;
|
|
1123
|
-
if (Z(e)) {
|
|
1124
|
-
if (e.resolvedOnce && Tt != null)
|
|
1125
|
-
return Tt;
|
|
1126
|
-
if (e.constructor.name === "Function") {
|
|
1127
|
-
const t = e();
|
|
1128
|
-
if (ms(t))
|
|
1129
|
-
throw pe(fe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1130
|
-
return Tt = t;
|
|
1131
|
-
} else
|
|
1132
|
-
throw pe(fe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1133
|
-
} else
|
|
1134
|
-
throw pe(fe.NOT_SUPPORT_LOCALE_TYPE);
|
|
1135
|
-
}
|
|
1136
|
-
function cr(e, t, n) {
|
|
1137
|
-
return [.../* @__PURE__ */ new Set([
|
|
1138
|
-
n,
|
|
1139
|
-
...$(t) ? t : F(t) ? Object.keys(t) : R(t) ? [t] : [n]
|
|
1140
|
-
])];
|
|
1141
|
-
}
|
|
1142
|
-
function Cn(e, t, n) {
|
|
1143
|
-
const s = R(n) ? n : rt, l = e;
|
|
1144
|
-
l.__localeChainCache || (l.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1145
|
-
let r = l.__localeChainCache.get(s);
|
|
1146
|
-
if (!r) {
|
|
1147
|
-
r = [];
|
|
1148
|
-
let c = [n];
|
|
1149
|
-
for (; $(c); )
|
|
1150
|
-
c = ln(r, c, t);
|
|
1151
|
-
const m = $(t) || !w(t) ? t : t.default ? t.default : null;
|
|
1152
|
-
c = R(m) ? [m] : m, $(c) && ln(r, c, !1), l.__localeChainCache.set(s, r);
|
|
1153
|
-
}
|
|
1154
|
-
return r;
|
|
1155
|
-
}
|
|
1156
|
-
function ln(e, t, n) {
|
|
1157
|
-
let s = !0;
|
|
1158
|
-
for (let l = 0; l < t.length && J(s); l++) {
|
|
1159
|
-
const r = t[l];
|
|
1160
|
-
R(r) && (s = ur(e, t[l], n));
|
|
1161
|
-
}
|
|
1162
|
-
return s;
|
|
1163
|
-
}
|
|
1164
|
-
function ur(e, t, n) {
|
|
1165
|
-
let s;
|
|
1166
|
-
const l = t.split("-");
|
|
1167
|
-
do {
|
|
1168
|
-
const r = l.join("-");
|
|
1169
|
-
s = mr(e, r, n), l.splice(-1, 1);
|
|
1170
|
-
} while (l.length && s === !0);
|
|
1171
|
-
return s;
|
|
1172
|
-
}
|
|
1173
|
-
function mr(e, t, n) {
|
|
1174
|
-
let s = !1;
|
|
1175
|
-
if (!e.includes(t) && (s = !0, t)) {
|
|
1176
|
-
s = t[t.length - 1] !== "!";
|
|
1177
|
-
const l = t.replace(/!/g, "");
|
|
1178
|
-
e.push(l), ($(n) || w(n)) && n[l] && (s = n[l]);
|
|
1179
|
-
}
|
|
1180
|
-
return s;
|
|
1181
|
-
}
|
|
1182
|
-
const Ee = [];
|
|
1183
|
-
Ee[
|
|
1184
|
-
0
|
|
1185
|
-
/* States.BEFORE_PATH */
|
|
1186
|
-
] = {
|
|
1187
|
-
w: [
|
|
1188
|
-
0
|
|
1189
|
-
/* States.BEFORE_PATH */
|
|
1190
|
-
],
|
|
1191
|
-
i: [
|
|
1192
|
-
3,
|
|
1193
|
-
0
|
|
1194
|
-
/* Actions.APPEND */
|
|
1195
|
-
],
|
|
1196
|
-
"[": [
|
|
1197
|
-
4
|
|
1198
|
-
/* States.IN_SUB_PATH */
|
|
1199
|
-
],
|
|
1200
|
-
o: [
|
|
1201
|
-
7
|
|
1202
|
-
/* States.AFTER_PATH */
|
|
1203
|
-
]
|
|
1204
|
-
};
|
|
1205
|
-
Ee[
|
|
1206
|
-
1
|
|
1207
|
-
/* States.IN_PATH */
|
|
1208
|
-
] = {
|
|
1209
|
-
w: [
|
|
1210
|
-
1
|
|
1211
|
-
/* States.IN_PATH */
|
|
1212
|
-
],
|
|
1213
|
-
".": [
|
|
1214
|
-
2
|
|
1215
|
-
/* States.BEFORE_IDENT */
|
|
1216
|
-
],
|
|
1217
|
-
"[": [
|
|
1218
|
-
4
|
|
1219
|
-
/* States.IN_SUB_PATH */
|
|
1220
|
-
],
|
|
1221
|
-
o: [
|
|
1222
|
-
7
|
|
1223
|
-
/* States.AFTER_PATH */
|
|
1224
|
-
]
|
|
1225
|
-
};
|
|
1226
|
-
Ee[
|
|
1227
|
-
2
|
|
1228
|
-
/* States.BEFORE_IDENT */
|
|
1229
|
-
] = {
|
|
1230
|
-
w: [
|
|
1231
|
-
2
|
|
1232
|
-
/* States.BEFORE_IDENT */
|
|
1233
|
-
],
|
|
1234
|
-
i: [
|
|
1235
|
-
3,
|
|
1236
|
-
0
|
|
1237
|
-
/* Actions.APPEND */
|
|
1238
|
-
],
|
|
1239
|
-
0: [
|
|
1240
|
-
3,
|
|
1241
|
-
0
|
|
1242
|
-
/* Actions.APPEND */
|
|
1243
|
-
]
|
|
1244
|
-
};
|
|
1245
|
-
Ee[
|
|
1246
|
-
3
|
|
1247
|
-
/* States.IN_IDENT */
|
|
1248
|
-
] = {
|
|
1249
|
-
i: [
|
|
1250
|
-
3,
|
|
1251
|
-
0
|
|
1252
|
-
/* Actions.APPEND */
|
|
1253
|
-
],
|
|
1254
|
-
0: [
|
|
1255
|
-
3,
|
|
1256
|
-
0
|
|
1257
|
-
/* Actions.APPEND */
|
|
1258
|
-
],
|
|
1259
|
-
w: [
|
|
1260
|
-
1,
|
|
1261
|
-
1
|
|
1262
|
-
/* Actions.PUSH */
|
|
1263
|
-
],
|
|
1264
|
-
".": [
|
|
1265
|
-
2,
|
|
1266
|
-
1
|
|
1267
|
-
/* Actions.PUSH */
|
|
1268
|
-
],
|
|
1269
|
-
"[": [
|
|
1270
|
-
4,
|
|
1271
|
-
1
|
|
1272
|
-
/* Actions.PUSH */
|
|
1273
|
-
],
|
|
1274
|
-
o: [
|
|
1275
|
-
7,
|
|
1276
|
-
1
|
|
1277
|
-
/* Actions.PUSH */
|
|
1278
|
-
]
|
|
1279
|
-
};
|
|
1280
|
-
Ee[
|
|
1281
|
-
4
|
|
1282
|
-
/* States.IN_SUB_PATH */
|
|
1283
|
-
] = {
|
|
1284
|
-
"'": [
|
|
1285
|
-
5,
|
|
1286
|
-
0
|
|
1287
|
-
/* Actions.APPEND */
|
|
1288
|
-
],
|
|
1289
|
-
'"': [
|
|
1290
|
-
6,
|
|
1291
|
-
0
|
|
1292
|
-
/* Actions.APPEND */
|
|
1293
|
-
],
|
|
1294
|
-
"[": [
|
|
1295
|
-
4,
|
|
1296
|
-
2
|
|
1297
|
-
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1298
|
-
],
|
|
1299
|
-
"]": [
|
|
1300
|
-
1,
|
|
1301
|
-
3
|
|
1302
|
-
/* Actions.PUSH_SUB_PATH */
|
|
1303
|
-
],
|
|
1304
|
-
o: 8,
|
|
1305
|
-
l: [
|
|
1306
|
-
4,
|
|
1307
|
-
0
|
|
1308
|
-
/* Actions.APPEND */
|
|
1309
|
-
]
|
|
1310
|
-
};
|
|
1311
|
-
Ee[
|
|
1312
|
-
5
|
|
1313
|
-
/* States.IN_SINGLE_QUOTE */
|
|
1314
|
-
] = {
|
|
1315
|
-
"'": [
|
|
1316
|
-
4,
|
|
1317
|
-
0
|
|
1318
|
-
/* Actions.APPEND */
|
|
1319
|
-
],
|
|
1320
|
-
o: 8,
|
|
1321
|
-
l: [
|
|
1322
|
-
5,
|
|
1323
|
-
0
|
|
1324
|
-
/* Actions.APPEND */
|
|
1325
|
-
]
|
|
1326
|
-
};
|
|
1327
|
-
Ee[
|
|
1328
|
-
6
|
|
1329
|
-
/* States.IN_DOUBLE_QUOTE */
|
|
1330
|
-
] = {
|
|
1331
|
-
'"': [
|
|
1332
|
-
4,
|
|
1333
|
-
0
|
|
1334
|
-
/* Actions.APPEND */
|
|
1335
|
-
],
|
|
1336
|
-
o: 8,
|
|
1337
|
-
l: [
|
|
1338
|
-
6,
|
|
1339
|
-
0
|
|
1340
|
-
/* Actions.APPEND */
|
|
1341
|
-
]
|
|
1342
|
-
};
|
|
1343
|
-
const dr = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1344
|
-
function _r(e) {
|
|
1345
|
-
return dr.test(e);
|
|
1346
|
-
}
|
|
1347
|
-
function fr(e) {
|
|
1348
|
-
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1349
|
-
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1350
|
-
}
|
|
1351
|
-
function pr(e) {
|
|
1352
|
-
if (e == null)
|
|
1353
|
-
return "o";
|
|
1354
|
-
switch (e.charCodeAt(0)) {
|
|
1355
|
-
case 91:
|
|
1356
|
-
case 93:
|
|
1357
|
-
case 46:
|
|
1358
|
-
case 34:
|
|
1359
|
-
case 39:
|
|
1360
|
-
return e;
|
|
1361
|
-
case 95:
|
|
1362
|
-
case 36:
|
|
1363
|
-
case 45:
|
|
1364
|
-
return "i";
|
|
1365
|
-
case 9:
|
|
1366
|
-
case 10:
|
|
1367
|
-
case 13:
|
|
1368
|
-
case 160:
|
|
1369
|
-
case 65279:
|
|
1370
|
-
case 8232:
|
|
1371
|
-
case 8233:
|
|
1372
|
-
return "w";
|
|
1373
|
-
}
|
|
1374
|
-
return "i";
|
|
1375
|
-
}
|
|
1376
|
-
function hr(e) {
|
|
1377
|
-
const t = e.trim();
|
|
1378
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : _r(t) ? fr(t) : "*" + t;
|
|
1379
|
-
}
|
|
1380
|
-
function br(e) {
|
|
1381
|
-
const t = [];
|
|
1382
|
-
let n = -1, s = 0, l = 0, r, c, m, u, _, b, E;
|
|
1383
|
-
const g = [];
|
|
1384
|
-
g[
|
|
1385
|
-
0
|
|
1386
|
-
/* Actions.APPEND */
|
|
1387
|
-
] = () => {
|
|
1388
|
-
c === void 0 ? c = m : c += m;
|
|
1389
|
-
}, g[
|
|
1390
|
-
1
|
|
1391
|
-
/* Actions.PUSH */
|
|
1392
|
-
] = () => {
|
|
1393
|
-
c !== void 0 && (t.push(c), c = void 0);
|
|
1394
|
-
}, g[
|
|
1395
|
-
2
|
|
1396
|
-
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1397
|
-
] = () => {
|
|
1398
|
-
g[
|
|
1399
|
-
0
|
|
1400
|
-
/* Actions.APPEND */
|
|
1401
|
-
](), l++;
|
|
1402
|
-
}, g[
|
|
1403
|
-
3
|
|
1404
|
-
/* Actions.PUSH_SUB_PATH */
|
|
1405
|
-
] = () => {
|
|
1406
|
-
if (l > 0)
|
|
1407
|
-
l--, s = 4, g[
|
|
1408
|
-
0
|
|
1409
|
-
/* Actions.APPEND */
|
|
1410
|
-
]();
|
|
1411
|
-
else {
|
|
1412
|
-
if (l = 0, c === void 0 || (c = hr(c), c === !1))
|
|
1413
|
-
return !1;
|
|
1414
|
-
g[
|
|
1415
|
-
1
|
|
1416
|
-
/* Actions.PUSH */
|
|
1417
|
-
]();
|
|
1418
|
-
}
|
|
1419
|
-
};
|
|
1420
|
-
function C() {
|
|
1421
|
-
const M = e[n + 1];
|
|
1422
|
-
if (s === 5 && M === "'" || s === 6 && M === '"')
|
|
1423
|
-
return n++, m = "\\" + M, g[
|
|
1424
|
-
0
|
|
1425
|
-
/* Actions.APPEND */
|
|
1426
|
-
](), !0;
|
|
1427
|
-
}
|
|
1428
|
-
for (; s !== null; )
|
|
1429
|
-
if (n++, r = e[n], !(r === "\\" && C())) {
|
|
1430
|
-
if (u = pr(r), E = Ee[s], _ = E[u] || E.l || 8, _ === 8 || (s = _[0], _[1] !== void 0 && (b = g[_[1]], b && (m = r, b() === !1))))
|
|
1431
|
-
return;
|
|
1432
|
-
if (s === 7)
|
|
1433
|
-
return t;
|
|
1434
|
-
}
|
|
1435
|
-
}
|
|
1436
|
-
const on = /* @__PURE__ */ new Map();
|
|
1437
|
-
function gr(e, t) {
|
|
1438
|
-
return F(e) ? e[t] : null;
|
|
1439
|
-
}
|
|
1440
|
-
function Er(e, t) {
|
|
1441
|
-
if (!F(e))
|
|
1442
|
-
return null;
|
|
1443
|
-
let n = on.get(t);
|
|
1444
|
-
if (n || (n = br(t), n && on.set(t, n)), !n)
|
|
1445
|
-
return null;
|
|
1446
|
-
const s = n.length;
|
|
1447
|
-
let l = e, r = 0;
|
|
1448
|
-
for (; r < s; ) {
|
|
1449
|
-
const c = l[n[r]];
|
|
1450
|
-
if (c === void 0 || Z(l))
|
|
1451
|
-
return null;
|
|
1452
|
-
l = c, r++;
|
|
1453
|
-
}
|
|
1454
|
-
return l;
|
|
1455
|
-
}
|
|
1456
|
-
const Ir = "10.0.5", it = -1, rt = "en-US", cn = "", un = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1457
|
-
function Nr() {
|
|
1458
|
-
return {
|
|
1459
|
-
upper: (e, t) => t === "text" && R(e) ? e.toUpperCase() : t === "vnode" && F(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1460
|
-
lower: (e, t) => t === "text" && R(e) ? e.toLowerCase() : t === "vnode" && F(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1461
|
-
capitalize: (e, t) => t === "text" && R(e) ? un(e) : t === "vnode" && F(e) && "__v_isVNode" in e ? un(e.children) : e
|
|
1462
|
-
};
|
|
1463
|
-
}
|
|
1464
|
-
let Sn;
|
|
1465
|
-
function vr(e) {
|
|
1466
|
-
Sn = e;
|
|
1467
|
-
}
|
|
1468
|
-
let An;
|
|
1469
|
-
function yr(e) {
|
|
1470
|
-
An = e;
|
|
1471
|
-
}
|
|
1472
|
-
let Dn;
|
|
1473
|
-
function Tr(e) {
|
|
1474
|
-
Dn = e;
|
|
1475
|
-
}
|
|
1476
|
-
let Mn = null;
|
|
1477
|
-
const Or = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1478
|
-
Mn = e;
|
|
1479
|
-
}, kr = /* @__NO_SIDE_EFFECTS__ */ () => Mn;
|
|
1480
|
-
let Pn = null;
|
|
1481
|
-
const mn = (e) => {
|
|
1482
|
-
Pn = e;
|
|
1483
|
-
}, Lr = () => Pn;
|
|
1484
|
-
let dn = 0;
|
|
1485
|
-
function Rr(e = {}) {
|
|
1486
|
-
const t = Z(e.onWarn) ? e.onWarn : _s, n = R(e.version) ? e.version : Ir, s = R(e.locale) || Z(e.locale) ? e.locale : rt, l = Z(s) ? rt : s, r = $(e.fallbackLocale) || w(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, c = w(e.messages) ? e.messages : Ot(l), m = w(e.datetimeFormats) ? e.datetimeFormats : Ot(l), u = w(e.numberFormats) ? e.numberFormats : Ot(l), _ = z(V(), e.modifiers, Nr()), b = e.pluralRules || V(), E = Z(e.missing) ? e.missing : null, g = J(e.missingWarn) || st(e.missingWarn) ? e.missingWarn : !0, C = J(e.fallbackWarn) || st(e.fallbackWarn) ? e.fallbackWarn : !0, M = !!e.fallbackFormat, y = !!e.unresolving, O = Z(e.postTranslation) ? e.postTranslation : null, i = w(e.processor) ? e.processor : null, d = J(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, v = !!e.escapeParameter, p = Z(e.messageCompiler) ? e.messageCompiler : Sn, k = Z(e.messageResolver) ? e.messageResolver : An || gr, T = Z(e.localeFallbacker) ? e.localeFallbacker : Dn || cr, N = F(e.fallbackContext) ? e.fallbackContext : void 0, X = e, j = F(X.__datetimeFormatters) ? X.__datetimeFormatters : /* @__PURE__ */ new Map(), D = F(X.__numberFormatters) ? X.__numberFormatters : /* @__PURE__ */ new Map(), S = F(X.__meta) ? X.__meta : {};
|
|
1487
|
-
dn++;
|
|
1488
|
-
const L = {
|
|
1489
|
-
version: n,
|
|
1490
|
-
cid: dn,
|
|
1491
|
-
locale: s,
|
|
1492
|
-
fallbackLocale: r,
|
|
1493
|
-
messages: c,
|
|
1494
|
-
modifiers: _,
|
|
1495
|
-
pluralRules: b,
|
|
1496
|
-
missing: E,
|
|
1497
|
-
missingWarn: g,
|
|
1498
|
-
fallbackWarn: C,
|
|
1499
|
-
fallbackFormat: M,
|
|
1500
|
-
unresolving: y,
|
|
1501
|
-
postTranslation: O,
|
|
1502
|
-
processor: i,
|
|
1503
|
-
warnHtmlMessage: d,
|
|
1504
|
-
escapeParameter: v,
|
|
1505
|
-
messageCompiler: p,
|
|
1506
|
-
messageResolver: k,
|
|
1507
|
-
localeFallbacker: T,
|
|
1508
|
-
fallbackContext: N,
|
|
1509
|
-
onWarn: t,
|
|
1510
|
-
__meta: S
|
|
1511
|
-
};
|
|
1512
|
-
return L.datetimeFormats = m, L.numberFormats = u, L.__datetimeFormatters = j, L.__numberFormatters = D, __INTLIFY_PROD_DEVTOOLS__ && ar(L, n, S), L;
|
|
1513
|
-
}
|
|
1514
|
-
const Ot = (e) => ({ [e]: V() });
|
|
1515
|
-
function Yt(e, t, n, s, l) {
|
|
1516
|
-
const { missing: r, onWarn: c } = e;
|
|
1517
|
-
if (r !== null) {
|
|
1518
|
-
const m = r(e, n, t, l);
|
|
1519
|
-
return R(m) ? m : t;
|
|
1520
|
-
} else
|
|
1521
|
-
return t;
|
|
1522
|
-
}
|
|
1523
|
-
function Ve(e, t, n) {
|
|
1524
|
-
const s = e;
|
|
1525
|
-
s.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1526
|
-
}
|
|
1527
|
-
function Cr(e, t) {
|
|
1528
|
-
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1529
|
-
}
|
|
1530
|
-
function Sr(e, t) {
|
|
1531
|
-
const n = t.indexOf(e);
|
|
1532
|
-
if (n === -1)
|
|
1533
|
-
return !1;
|
|
1534
|
-
for (let s = n + 1; s < t.length; s++)
|
|
1535
|
-
if (Cr(e, t[s]))
|
|
1536
|
-
return !0;
|
|
1537
|
-
return !1;
|
|
1538
|
-
}
|
|
1539
|
-
function _n(e, ...t) {
|
|
1540
|
-
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: r, localeFallbacker: c } = e, { __datetimeFormatters: m } = e, [u, _, b, E] = Dt(...t), g = J(b.missingWarn) ? b.missingWarn : e.missingWarn;
|
|
1541
|
-
J(b.fallbackWarn) ? b.fallbackWarn : e.fallbackWarn;
|
|
1542
|
-
const C = !!b.part, M = Ht(e, b), y = c(
|
|
1543
|
-
e,
|
|
1544
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1545
|
-
l,
|
|
1546
|
-
M
|
|
1547
|
-
);
|
|
1548
|
-
if (!R(u) || u === "")
|
|
1549
|
-
return new Intl.DateTimeFormat(M, E).format(_);
|
|
1550
|
-
let O = {}, i, d = null;
|
|
1551
|
-
const v = "datetime format";
|
|
1552
|
-
for (let T = 0; T < y.length && (i = y[T], O = n[i] || {}, d = O[u], !w(d)); T++)
|
|
1553
|
-
Yt(e, u, i, g, v);
|
|
1554
|
-
if (!w(d) || !R(i))
|
|
1555
|
-
return s ? it : u;
|
|
1556
|
-
let p = `${i}__${u}`;
|
|
1557
|
-
lt(E) || (p = `${p}__${JSON.stringify(E)}`);
|
|
1558
|
-
let k = m.get(p);
|
|
1559
|
-
return k || (k = new Intl.DateTimeFormat(i, z({}, d, E)), m.set(p, k)), C ? k.formatToParts(_) : k.format(_);
|
|
1560
|
-
}
|
|
1561
|
-
const wn = [
|
|
1562
|
-
"localeMatcher",
|
|
1563
|
-
"weekday",
|
|
1564
|
-
"era",
|
|
1565
|
-
"year",
|
|
1566
|
-
"month",
|
|
1567
|
-
"day",
|
|
1568
|
-
"hour",
|
|
1569
|
-
"minute",
|
|
1570
|
-
"second",
|
|
1571
|
-
"timeZoneName",
|
|
1572
|
-
"formatMatcher",
|
|
1573
|
-
"hour12",
|
|
1574
|
-
"timeZone",
|
|
1575
|
-
"dateStyle",
|
|
1576
|
-
"timeStyle",
|
|
1577
|
-
"calendar",
|
|
1578
|
-
"dayPeriod",
|
|
1579
|
-
"numberingSystem",
|
|
1580
|
-
"hourCycle",
|
|
1581
|
-
"fractionalSecondDigits"
|
|
1582
|
-
];
|
|
1583
|
-
function Dt(...e) {
|
|
1584
|
-
const [t, n, s, l] = e, r = V();
|
|
1585
|
-
let c = V(), m;
|
|
1586
|
-
if (R(t)) {
|
|
1587
|
-
const u = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1588
|
-
if (!u)
|
|
1589
|
-
throw pe(fe.INVALID_ISO_DATE_ARGUMENT);
|
|
1590
|
-
const _ = u[3] ? u[3].trim().startsWith("T") ? `${u[1].trim()}${u[3].trim()}` : `${u[1].trim()}T${u[3].trim()}` : u[1].trim();
|
|
1591
|
-
m = new Date(_);
|
|
1592
|
-
try {
|
|
1593
|
-
m.toISOString();
|
|
1594
|
-
} catch {
|
|
1595
|
-
throw pe(fe.INVALID_ISO_DATE_ARGUMENT);
|
|
1596
|
-
}
|
|
1597
|
-
} else if (is(t)) {
|
|
1598
|
-
if (isNaN(t.getTime()))
|
|
1599
|
-
throw pe(fe.INVALID_DATE_ARGUMENT);
|
|
1600
|
-
m = t;
|
|
1601
|
-
} else if (K(t))
|
|
1602
|
-
m = t;
|
|
1603
|
-
else
|
|
1604
|
-
throw pe(fe.INVALID_ARGUMENT);
|
|
1605
|
-
return R(n) ? r.key = n : w(n) && Object.keys(n).forEach((u) => {
|
|
1606
|
-
wn.includes(u) ? c[u] = n[u] : r[u] = n[u];
|
|
1607
|
-
}), R(s) ? r.locale = s : w(s) && (c = s), w(l) && (c = l), [r.key || "", m, r, c];
|
|
1608
|
-
}
|
|
1609
|
-
function fn(e, t, n) {
|
|
1610
|
-
const s = e;
|
|
1611
|
-
for (const l in n) {
|
|
1612
|
-
const r = `${t}__${l}`;
|
|
1613
|
-
s.__datetimeFormatters.has(r) && s.__datetimeFormatters.delete(r);
|
|
1614
|
-
}
|
|
1615
|
-
}
|
|
1616
|
-
function pn(e, ...t) {
|
|
1617
|
-
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: r, localeFallbacker: c } = e, { __numberFormatters: m } = e, [u, _, b, E] = Mt(...t), g = J(b.missingWarn) ? b.missingWarn : e.missingWarn;
|
|
1618
|
-
J(b.fallbackWarn) ? b.fallbackWarn : e.fallbackWarn;
|
|
1619
|
-
const C = !!b.part, M = Ht(e, b), y = c(
|
|
1620
|
-
e,
|
|
1621
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1622
|
-
l,
|
|
1623
|
-
M
|
|
1624
|
-
);
|
|
1625
|
-
if (!R(u) || u === "")
|
|
1626
|
-
return new Intl.NumberFormat(M, E).format(_);
|
|
1627
|
-
let O = {}, i, d = null;
|
|
1628
|
-
const v = "number format";
|
|
1629
|
-
for (let T = 0; T < y.length && (i = y[T], O = n[i] || {}, d = O[u], !w(d)); T++)
|
|
1630
|
-
Yt(e, u, i, g, v);
|
|
1631
|
-
if (!w(d) || !R(i))
|
|
1632
|
-
return s ? it : u;
|
|
1633
|
-
let p = `${i}__${u}`;
|
|
1634
|
-
lt(E) || (p = `${p}__${JSON.stringify(E)}`);
|
|
1635
|
-
let k = m.get(p);
|
|
1636
|
-
return k || (k = new Intl.NumberFormat(i, z({}, d, E)), m.set(p, k)), C ? k.formatToParts(_) : k.format(_);
|
|
1637
|
-
}
|
|
1638
|
-
const Fn = [
|
|
1639
|
-
"localeMatcher",
|
|
1640
|
-
"style",
|
|
1641
|
-
"currency",
|
|
1642
|
-
"currencyDisplay",
|
|
1643
|
-
"currencySign",
|
|
1644
|
-
"useGrouping",
|
|
1645
|
-
"minimumIntegerDigits",
|
|
1646
|
-
"minimumFractionDigits",
|
|
1647
|
-
"maximumFractionDigits",
|
|
1648
|
-
"minimumSignificantDigits",
|
|
1649
|
-
"maximumSignificantDigits",
|
|
1650
|
-
"compactDisplay",
|
|
1651
|
-
"notation",
|
|
1652
|
-
"signDisplay",
|
|
1653
|
-
"unit",
|
|
1654
|
-
"unitDisplay",
|
|
1655
|
-
"roundingMode",
|
|
1656
|
-
"roundingPriority",
|
|
1657
|
-
"roundingIncrement",
|
|
1658
|
-
"trailingZeroDisplay"
|
|
1659
|
-
];
|
|
1660
|
-
function Mt(...e) {
|
|
1661
|
-
const [t, n, s, l] = e, r = V();
|
|
1662
|
-
let c = V();
|
|
1663
|
-
if (!K(t))
|
|
1664
|
-
throw pe(fe.INVALID_ARGUMENT);
|
|
1665
|
-
const m = t;
|
|
1666
|
-
return R(n) ? r.key = n : w(n) && Object.keys(n).forEach((u) => {
|
|
1667
|
-
Fn.includes(u) ? c[u] = n[u] : r[u] = n[u];
|
|
1668
|
-
}), R(s) ? r.locale = s : w(s) && (c = s), w(l) && (c = l), [r.key || "", m, r, c];
|
|
1669
|
-
}
|
|
1670
|
-
function hn(e, t, n) {
|
|
1671
|
-
const s = e;
|
|
1672
|
-
for (const l in n) {
|
|
1673
|
-
const r = `${t}__${l}`;
|
|
1674
|
-
s.__numberFormatters.has(r) && s.__numberFormatters.delete(r);
|
|
1675
|
-
}
|
|
1676
|
-
}
|
|
1677
|
-
const Ar = (e) => e, Dr = (e) => "", Mr = "text", Pr = (e) => e.length === 0 ? "" : Xt(e), wr = ds;
|
|
1678
|
-
function bn(e, t) {
|
|
1679
|
-
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1680
|
-
}
|
|
1681
|
-
function Fr(e) {
|
|
1682
|
-
const t = K(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1683
|
-
return e.named && (K(e.named.count) || K(e.named.n)) ? K(e.named.count) ? e.named.count : K(e.named.n) ? e.named.n : t : t;
|
|
1684
|
-
}
|
|
1685
|
-
function Ur(e, t) {
|
|
1686
|
-
t.count || (t.count = e), t.n || (t.n = e);
|
|
1687
|
-
}
|
|
1688
|
-
function Vr(e = {}) {
|
|
1689
|
-
const t = e.locale, n = Fr(e), s = F(e.pluralRules) && R(t) && Z(e.pluralRules[t]) ? e.pluralRules[t] : bn, l = F(e.pluralRules) && R(t) && Z(e.pluralRules[t]) ? bn : void 0, r = (i) => i[s(n, i.length, l)], c = e.list || [], m = (i) => c[i], u = e.named || V();
|
|
1690
|
-
K(e.pluralIndex) && Ur(n, u);
|
|
1691
|
-
const _ = (i) => u[i];
|
|
1692
|
-
function b(i, d) {
|
|
1693
|
-
const v = Z(e.messages) ? e.messages(i, !!d) : F(e.messages) ? e.messages[i] : !1;
|
|
1694
|
-
return v || (e.parent ? e.parent.message(i) : Dr);
|
|
1695
|
-
}
|
|
1696
|
-
const E = (i) => e.modifiers ? e.modifiers[i] : Ar, g = w(e.processor) && Z(e.processor.normalize) ? e.processor.normalize : Pr, C = w(e.processor) && Z(e.processor.interpolate) ? e.processor.interpolate : wr, M = w(e.processor) && R(e.processor.type) ? e.processor.type : Mr, O = {
|
|
1697
|
-
list: m,
|
|
1698
|
-
named: _,
|
|
1699
|
-
plural: r,
|
|
1700
|
-
linked: (i, ...d) => {
|
|
1701
|
-
const [v, p] = d;
|
|
1702
|
-
let k = "text", T = "";
|
|
1703
|
-
d.length === 1 ? F(v) ? (T = v.modifier || T, k = v.type || k) : R(v) && (T = v || T) : d.length === 2 && (R(v) && (T = v || T), R(p) && (k = p || k));
|
|
1704
|
-
const N = b(i, !0)(O), X = (
|
|
1705
|
-
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1706
|
-
k === "vnode" && $(N) && T ? N[0] : N
|
|
1707
|
-
);
|
|
1708
|
-
return T ? E(T)(X, k) : X;
|
|
1709
|
-
},
|
|
1710
|
-
message: b,
|
|
1711
|
-
type: M,
|
|
1712
|
-
interpolate: C,
|
|
1713
|
-
normalize: g,
|
|
1714
|
-
values: z(V(), c, u)
|
|
1715
|
-
};
|
|
1716
|
-
return O;
|
|
1717
|
-
}
|
|
1718
|
-
const gn = () => "", ae = (e) => Z(e);
|
|
1719
|
-
function En(e, ...t) {
|
|
1720
|
-
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: r, fallbackLocale: c, messages: m } = e, [u, _] = Pt(...t), b = J(_.missingWarn) ? _.missingWarn : e.missingWarn, E = J(_.fallbackWarn) ? _.fallbackWarn : e.fallbackWarn, g = J(_.escapeParameter) ? _.escapeParameter : e.escapeParameter, C = !!_.resolvedMessage, M = R(_.default) || J(_.default) ? J(_.default) ? r ? u : () => u : _.default : n ? r ? u : () => u : null, y = n || M != null && (R(M) || Z(M)), O = Ht(e, _);
|
|
1721
|
-
g && Wr(_);
|
|
1722
|
-
let [i, d, v] = C ? [
|
|
1723
|
-
u,
|
|
1724
|
-
O,
|
|
1725
|
-
m[O] || V()
|
|
1726
|
-
] : Un(e, u, O, c, E, b), p = i, k = u;
|
|
1727
|
-
if (!C && !(R(p) || Me(p) || ae(p)) && y && (p = M, k = p), !C && (!(R(p) || Me(p) || ae(p)) || !R(d)))
|
|
1728
|
-
return l ? it : u;
|
|
1729
|
-
let T = !1;
|
|
1730
|
-
const N = () => {
|
|
1731
|
-
T = !0;
|
|
1732
|
-
}, X = ae(p) ? p : Vn(e, u, d, p, k, N);
|
|
1733
|
-
if (T)
|
|
1734
|
-
return p;
|
|
1735
|
-
const j = Xr(e, d, v, _), D = Vr(j), S = Gr(e, X, D), L = s ? s(S, u) : S;
|
|
1736
|
-
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1737
|
-
const x = {
|
|
1738
|
-
timestamp: Date.now(),
|
|
1739
|
-
key: R(u) ? u : ae(p) ? p.key : "",
|
|
1740
|
-
locale: d || (ae(p) ? p.locale : ""),
|
|
1741
|
-
format: R(p) ? p : ae(p) ? p.source : "",
|
|
1742
|
-
message: L
|
|
1743
|
-
};
|
|
1744
|
-
x.meta = z({}, e.__meta, /* @__PURE__ */ kr() || {}), lr(x);
|
|
1745
|
-
}
|
|
1746
|
-
return L;
|
|
1747
|
-
}
|
|
1748
|
-
function Wr(e) {
|
|
1749
|
-
$(e.list) ? e.list = e.list.map((t) => R(t) ? en(t) : t) : F(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1750
|
-
R(e.named[t]) && (e.named[t] = en(e.named[t]));
|
|
1751
|
-
});
|
|
1752
|
-
}
|
|
1753
|
-
function Un(e, t, n, s, l, r) {
|
|
1754
|
-
const { messages: c, onWarn: m, messageResolver: u, localeFallbacker: _ } = e, b = _(e, s, n);
|
|
1755
|
-
let E = V(), g, C = null;
|
|
1756
|
-
const M = "translate";
|
|
1757
|
-
for (let y = 0; y < b.length && (g = b[y], E = c[g] || V(), (C = u(E, t)) === null && (C = E[t]), !(R(C) || Me(C) || ae(C))); y++)
|
|
1758
|
-
if (!Sr(g, b)) {
|
|
1759
|
-
const O = Yt(
|
|
1760
|
-
e,
|
|
1761
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1762
|
-
t,
|
|
1763
|
-
g,
|
|
1764
|
-
r,
|
|
1765
|
-
M
|
|
1766
|
-
);
|
|
1767
|
-
O !== t && (C = O);
|
|
1768
|
-
}
|
|
1769
|
-
return [C, g, E];
|
|
1770
|
-
}
|
|
1771
|
-
function Vn(e, t, n, s, l, r) {
|
|
1772
|
-
const { messageCompiler: c, warnHtmlMessage: m } = e;
|
|
1773
|
-
if (ae(s)) {
|
|
1774
|
-
const _ = s;
|
|
1775
|
-
return _.locale = _.locale || n, _.key = _.key || t, _;
|
|
1776
|
-
}
|
|
1777
|
-
if (c == null) {
|
|
1778
|
-
const _ = () => s;
|
|
1779
|
-
return _.locale = n, _.key = t, _;
|
|
1780
|
-
}
|
|
1781
|
-
const u = c(s, jr(e, n, l, s, m, r));
|
|
1782
|
-
return u.locale = n, u.key = t, u.source = s, u;
|
|
1783
|
-
}
|
|
1784
|
-
function Gr(e, t, n) {
|
|
1785
|
-
return t(n);
|
|
1786
|
-
}
|
|
1787
|
-
function Pt(...e) {
|
|
1788
|
-
const [t, n, s] = e, l = V();
|
|
1789
|
-
if (!R(t) && !K(t) && !ae(t) && !Me(t))
|
|
1790
|
-
throw pe(fe.INVALID_ARGUMENT);
|
|
1791
|
-
const r = K(t) ? String(t) : (ae(t), t);
|
|
1792
|
-
return K(n) ? l.plural = n : R(n) ? l.default = n : w(n) && !lt(n) ? l.named = n : $(n) && (l.list = n), K(s) ? l.plural = s : R(s) ? l.default = s : w(s) && z(l, s), [r, l];
|
|
1793
|
-
}
|
|
1794
|
-
function jr(e, t, n, s, l, r) {
|
|
1795
|
-
return {
|
|
1796
|
-
locale: t,
|
|
1797
|
-
key: n,
|
|
1798
|
-
warnHtmlMessage: l,
|
|
1799
|
-
onError: (c) => {
|
|
1800
|
-
throw r && r(c), c;
|
|
1801
|
-
},
|
|
1802
|
-
onCacheKey: (c) => ls(t, n, c)
|
|
1803
|
-
};
|
|
1804
|
-
}
|
|
1805
|
-
function Xr(e, t, n, s) {
|
|
1806
|
-
const { modifiers: l, pluralRules: r, messageResolver: c, fallbackLocale: m, fallbackWarn: u, missingWarn: _, fallbackContext: b } = e, g = {
|
|
1807
|
-
locale: t,
|
|
1808
|
-
modifiers: l,
|
|
1809
|
-
pluralRules: r,
|
|
1810
|
-
messages: (C, M) => {
|
|
1811
|
-
let y = c(n, C);
|
|
1812
|
-
if (y == null && (b || M)) {
|
|
1813
|
-
const [, , O] = Un(
|
|
1814
|
-
b || e,
|
|
1815
|
-
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1816
|
-
C,
|
|
1817
|
-
t,
|
|
1818
|
-
m,
|
|
1819
|
-
u,
|
|
1820
|
-
_
|
|
1821
|
-
);
|
|
1822
|
-
y = c(O, C);
|
|
1823
|
-
}
|
|
1824
|
-
if (R(y) || Me(y)) {
|
|
1825
|
-
let O = !1;
|
|
1826
|
-
const d = Vn(e, C, t, y, C, () => {
|
|
1827
|
-
O = !0;
|
|
1828
|
-
});
|
|
1829
|
-
return O ? gn : d;
|
|
1830
|
-
} else return ae(y) ? y : gn;
|
|
1831
|
-
}
|
|
1832
|
-
};
|
|
1833
|
-
return e.processor && (g.processor = e.processor), s.list && (g.list = s.list), s.named && (g.named = s.named), K(s.plural) && (g.pluralIndex = s.plural), g;
|
|
1834
|
-
}
|
|
1835
|
-
Ws();
|
|
1836
|
-
var xr = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_4c58d9da-f957-44ba-9de3-45251e37b43e", 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_4c58d9da-f957-44ba-9de3-45251e37b43e", 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", 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.3.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: "1891", ACTIONS_ORCHESTRATION_ID: "ce3421ca-d030-4cc3-99ae-7754e2878763.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_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", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260302.42.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:15636", 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.7/x64", GITHUB_RUN_ID: "22709872350", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "40ea264d1f353db5c5667f19e93b47fbd04b2641", 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/KDI-3967-role-based-permission-set", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9LREktMzk2Ny1yb2xlLWJhc2VkLXBlcm1pc3Npb24tc2V0XCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsImF1ZCI6InZzbzo2Zjk2ZmE4OS1iN2JmLTQ4NzgtYmFkMy04OTgwMDY1NjZiNmUiLCJiaWxsaW5nX293bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwiZXhwIjoxNzcyNzIyODE3LCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3ByaW1hcnlzaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJpYXQiOjE3NzI3MDA2MTcsImlzcyI6Imh0dHBzOi8vdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJqb2JfaWQiOiI1MDA2MjMwMi00ODEyLTU1ZTYtYjc5OS0wNGZhMTQwOGM1YTEiLCJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJuYmYiOjE3NzI3MDAzMTcsIm9pZGNfZXh0cmEiOiJ7XCJhY3RvclwiOlwianVuLWxlZS1mZWVkbWVcIixcImFjdG9yX2lkXCI6XCIyMzkyODI4NjJcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiNjU4NDUwNzc0MDhcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcImYwOTg2ZThlOGRmZjQ1YmQ1N2M0NjYzNWJiZDYyMjc1ZmExOWU3MzFcIixcInJlZlwiOlwicmVmcy9oZWFkcy9LREktMzk2Ny1yb2xlLWJhc2VkLXBlcm1pc3Npb24tc2V0XCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjIyNzA5ODcyMzUwXCIsXCJydW5fbnVtYmVyXCI6XCI1XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiNDBlYTI2NGQxZjM1M2RiNWM1NjY3ZjE5ZTkzYjQ3ZmJkMDRiMjY0MVwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvS0RJLTM5Njctcm9sZS1iYXNlZC1wZXJtaXNzaW9uLXNldFwiLFwid29ya2Zsb3dfc2hhXCI6XCI0MGVhMjY0ZDFmMzUzZGI1YzU2NjdmMTllOTNiNDdmYmQwNGIyNjQxXCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9LREktMzk2Ny1yb2xlLWJhc2VkLXBlcm1pc3Npb24tc2V0Iiwib3JjaF9pZCI6ImNlMzQyMWNhLWQwMzAtNGNjMy05OWFlLTc3NTRlMjg3ODc2My5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiY2UzNDIxY2EtZDAzMC00Y2MzLTk5YWUtNzc1NGUyODc4NzYzIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJydW5faWQiOiIyMjcwOTg3MjM1MCIsInJ1bl9udW1iZXIiOiI1IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDA1MTEyNyIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOmNlMzQyMWNhLWQwMzAtNGNjMy05OWFlLTc3NTRlMjg3ODc2Mzo1MDA2MjMwMi00ODEyLTU1ZTYtYjc5OS0wNGZhMTQwOGM1YTEgQWN0aW9ucy5SdW5uZXI6Y2UzNDIxY2EtZDAzMC00Y2MzLTk5YWUtNzc1NGUyODc4NzYzOjUwMDYyMzAyLTQ4MTItNTVlNi1iNzk5LTA0ZmExNDA4YzVhMSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czpjZTM0MjFjYS1kMDMwLTRjYzMtOTlhZS03NzU0ZTI4Nzg3NjM6NTAwNjIzMDItNDgxMi01NWU2LWI3OTktMDRmYTE0MDhjNWExIGdlbmVyYXRlX2lkX3Rva2VuOmNlMzQyMWNhLWQwMzAtNGNjMy05OWFlLTc3NTRlMjg3ODc2Mzo1MDA2MjMwMi00ODEyLTU1ZTYtYjc5OS0wNGZhMTQwOGM1YTEgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiI0MGVhMjY0ZDFmMzUzZGI1YzU2NjdmMTllOTNiNDdmYmQwNGIyNjQxIiwidHJ1c3RfdGllciI6IjEifQ.aeU8No1x4itqUvyukUxDKB__eDZO6Ri7zpl6a_lGCIao4PL0lyi5QDfGxbCwYOz1FvlJtvo5o0hHPeJk7BfhksbhnBSbjhhRwO0eROAruO4Zce9eU-meXIE-SFaukAPChmY9tqjtCJmQWkvLy8ZW1v56X2lTaHn0Hy6dzsBwp13z18HKMFV4mLNv_miBdD1-8Y6x9XPtlUGzuX3tfCeJ5Z8PQVjJ6JssXw34oOvUfZ8m4c776JM-RA4La5Z9E-EjVV5lZ1v64O4RH7Sl1o5-MX5Hilq1FZUP9eCerxWsLgse7_c_l4gaGLL96rBOTAzhefB-umvb0-XKBOcLYkHZ3g", 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_d6a74254-687a-4b38-aa3c-9556069667b9", INVOCATION_ID: "f59ba116a8c2409abdd88ac0ee7656b5", 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: "5", 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 1000051127", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "KDI-3967-role-based-permission-set", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* 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: "1.1.3-dev", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts", npm_package_dependencies__feedmepos_hrm_permission: "workspace:^", npm_package_devDependencies__rushstack_eslint_patch: "^1.3.3", npm_package_devDependencies_eslint_plugin_unused_imports: "^4.3.0", npm_package_devDependencies_jsdom: "^24.0.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_uuid: "^10.0.0", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "40ea264d1f353db5c5667f19e93b47fbd04b2641", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.2", GITHUB_REF: "refs/heads/KDI-3967-role-based-permission-set", 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_4c58d9da-f957-44ba-9de3-45251e37b43e", 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: "", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-2-azure-eastus.actions.githubusercontent.com/174//idtoken/ce3421ca-d030-4cc3-99ae-7754e2878763/50062302-4812-55e6-b799-04fa1408c5a1?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_4c58d9da-f957-44ba-9de3-45251e37b43e", npm_package_exports___types: "./dist/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", 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_4c58d9da-f957-44ba-9de3-45251e37b43e", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1837
|
-
const Zr = "10.0.5";
|
|
1838
|
-
function Hr() {
|
|
1839
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (ye().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (ye().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (ye().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ye().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1840
|
-
}
|
|
1841
|
-
const Pe = {
|
|
1842
|
-
// composer module errors
|
|
1843
|
-
UNEXPECTED_RETURN_TYPE: ir,
|
|
1844
|
-
// 24
|
|
1845
|
-
// legacy module errors
|
|
1846
|
-
INVALID_ARGUMENT: 25,
|
|
1847
|
-
// i18n module errors
|
|
1848
|
-
MUST_BE_CALL_SETUP_TOP: 26,
|
|
1849
|
-
NOT_INSTALLED: 27,
|
|
1850
|
-
NOT_INSTALLED_WITH_PROVIDE: 31,
|
|
1851
|
-
// unexpected error
|
|
1852
|
-
UNEXPECTED_ERROR: 32
|
|
1853
|
-
};
|
|
1854
|
-
function Ze(e, ...t) {
|
|
1855
|
-
return ot(e, null, void 0);
|
|
1856
|
-
}
|
|
1857
|
-
const wt = /* @__PURE__ */ ke("__translateVNode"), Ft = /* @__PURE__ */ ke("__datetimeParts"), Ut = /* @__PURE__ */ ke("__numberParts"), Yr = ke("__setPluralRules"), Wn = /* @__PURE__ */ ke("__injectWithOption"), Vt = /* @__PURE__ */ ke("__dispose");
|
|
1858
|
-
function He(e) {
|
|
1859
|
-
if (!F(e))
|
|
1860
|
-
return e;
|
|
1861
|
-
for (const t in e)
|
|
1862
|
-
if (ie(e, t))
|
|
1863
|
-
if (!t.includes("."))
|
|
1864
|
-
F(e[t]) && He(e[t]);
|
|
1865
|
-
else {
|
|
1866
|
-
const n = t.split("."), s = n.length - 1;
|
|
1867
|
-
let l = e, r = !1;
|
|
1868
|
-
for (let c = 0; c < s; c++) {
|
|
1869
|
-
if (n[c] in l || (l[n[c]] = V()), !F(l[n[c]])) {
|
|
1870
|
-
r = !0;
|
|
1871
|
-
break;
|
|
1872
|
-
}
|
|
1873
|
-
l = l[n[c]];
|
|
1874
|
-
}
|
|
1875
|
-
r || (l[n[s]] = e[t], delete e[t]), F(l[n[s]]) && He(l[n[s]]);
|
|
1876
|
-
}
|
|
1877
|
-
return e;
|
|
1878
|
-
}
|
|
1879
|
-
function Gn(e, t) {
|
|
1880
|
-
const { messages: n, __i18n: s, messageResolver: l, flatJson: r } = t, c = w(n) ? n : $(s) ? V() : { [e]: V() };
|
|
1881
|
-
if ($(s) && s.forEach((m) => {
|
|
1882
|
-
if ("locale" in m && "resource" in m) {
|
|
1883
|
-
const { locale: u, resource: _ } = m;
|
|
1884
|
-
u ? (c[u] = c[u] || V(), nt(_, c[u])) : nt(_, c);
|
|
1885
|
-
} else
|
|
1886
|
-
R(m) && nt(JSON.parse(m), c);
|
|
1887
|
-
}), l == null && r)
|
|
1888
|
-
for (const m in c)
|
|
1889
|
-
ie(c, m) && He(c[m]);
|
|
1890
|
-
return c;
|
|
1891
|
-
}
|
|
1892
|
-
function jn(e) {
|
|
1893
|
-
return e.type;
|
|
1894
|
-
}
|
|
1895
|
-
function Br(e, t, n) {
|
|
1896
|
-
let s = F(t.messages) ? t.messages : V();
|
|
1897
|
-
"__i18nGlobal" in n && (s = Gn(e.locale.value, {
|
|
1898
|
-
messages: s,
|
|
1899
|
-
__i18n: n.__i18nGlobal
|
|
1900
|
-
}));
|
|
1901
|
-
const l = Object.keys(s);
|
|
1902
|
-
l.length && l.forEach((r) => {
|
|
1903
|
-
e.mergeLocaleMessage(r, s[r]);
|
|
1904
|
-
});
|
|
1905
|
-
{
|
|
1906
|
-
if (F(t.datetimeFormats)) {
|
|
1907
|
-
const r = Object.keys(t.datetimeFormats);
|
|
1908
|
-
r.length && r.forEach((c) => {
|
|
1909
|
-
e.mergeDateTimeFormat(c, t.datetimeFormats[c]);
|
|
1910
|
-
});
|
|
1911
|
-
}
|
|
1912
|
-
if (F(t.numberFormats)) {
|
|
1913
|
-
const r = Object.keys(t.numberFormats);
|
|
1914
|
-
r.length && r.forEach((c) => {
|
|
1915
|
-
e.mergeNumberFormat(c, t.numberFormats[c]);
|
|
1916
|
-
});
|
|
1917
|
-
}
|
|
1918
|
-
}
|
|
1919
|
-
}
|
|
1920
|
-
function In(e) {
|
|
1921
|
-
return ne(Bn, null, e, 0);
|
|
1922
|
-
}
|
|
1923
|
-
const Nn = "__INTLIFY_META__", vn = () => [], Jr = () => !1;
|
|
1924
|
-
let yn = 0;
|
|
1925
|
-
function Tn(e) {
|
|
1926
|
-
return (t, n, s, l) => e(n, s, Wt() || void 0, l);
|
|
1927
|
-
}
|
|
1928
|
-
const $r = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1929
|
-
const e = Wt();
|
|
1930
|
-
let t = null;
|
|
1931
|
-
return e && (t = jn(e)[Nn]) ? { [Nn]: t } : null;
|
|
1932
|
-
};
|
|
1933
|
-
function Kr(e = {}) {
|
|
1934
|
-
const { __root: t, __injectWithOption: n } = e, s = t === void 0, l = e.flatJson, r = Qt ? Te : Yn;
|
|
1935
|
-
let c = J(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1936
|
-
const m = r(
|
|
1937
|
-
// prettier-ignore
|
|
1938
|
-
t && c ? t.locale.value : R(e.locale) ? e.locale : rt
|
|
1939
|
-
), u = r(
|
|
1940
|
-
// prettier-ignore
|
|
1941
|
-
t && c ? t.fallbackLocale.value : R(e.fallbackLocale) || $(e.fallbackLocale) || w(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : m.value
|
|
1942
|
-
), _ = r(Gn(m.value, e)), b = r(w(e.datetimeFormats) ? e.datetimeFormats : { [m.value]: {} }), E = r(w(e.numberFormats) ? e.numberFormats : { [m.value]: {} });
|
|
1943
|
-
let g = t ? t.missingWarn : J(e.missingWarn) || st(e.missingWarn) ? e.missingWarn : !0, C = t ? t.fallbackWarn : J(e.fallbackWarn) || st(e.fallbackWarn) ? e.fallbackWarn : !0, M = t ? t.fallbackRoot : J(e.fallbackRoot) ? e.fallbackRoot : !0, y = !!e.fallbackFormat, O = Z(e.missing) ? e.missing : null, i = Z(e.missing) ? Tn(e.missing) : null, d = Z(e.postTranslation) ? e.postTranslation : null, v = t ? t.warnHtmlMessage : J(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, p = !!e.escapeParameter;
|
|
1944
|
-
const k = t ? t.modifiers : w(e.modifiers) ? e.modifiers : {};
|
|
1945
|
-
let T = e.pluralRules || t && t.pluralRules, N;
|
|
1946
|
-
N = (() => {
|
|
1947
|
-
s && mn(null);
|
|
1948
|
-
const f = {
|
|
1949
|
-
version: Zr,
|
|
1950
|
-
locale: m.value,
|
|
1951
|
-
fallbackLocale: u.value,
|
|
1952
|
-
messages: _.value,
|
|
1953
|
-
modifiers: k,
|
|
1954
|
-
pluralRules: T,
|
|
1955
|
-
missing: i === null ? void 0 : i,
|
|
1956
|
-
missingWarn: g,
|
|
1957
|
-
fallbackWarn: C,
|
|
1958
|
-
fallbackFormat: y,
|
|
1959
|
-
unresolving: !0,
|
|
1960
|
-
postTranslation: d === null ? void 0 : d,
|
|
1961
|
-
warnHtmlMessage: v,
|
|
1962
|
-
escapeParameter: p,
|
|
1963
|
-
messageResolver: e.messageResolver,
|
|
1964
|
-
messageCompiler: e.messageCompiler,
|
|
1965
|
-
__meta: { framework: "vue" }
|
|
1966
|
-
};
|
|
1967
|
-
f.datetimeFormats = b.value, f.numberFormats = E.value, f.__datetimeFormatters = w(N) ? N.__datetimeFormatters : void 0, f.__numberFormatters = w(N) ? N.__numberFormatters : void 0;
|
|
1968
|
-
const I = Rr(f);
|
|
1969
|
-
return s && mn(I), I;
|
|
1970
|
-
})(), Ve(N, m.value, u.value);
|
|
1971
|
-
function j() {
|
|
1972
|
-
return [
|
|
1973
|
-
m.value,
|
|
1974
|
-
u.value,
|
|
1975
|
-
_.value,
|
|
1976
|
-
b.value,
|
|
1977
|
-
E.value
|
|
1978
|
-
];
|
|
1979
|
-
}
|
|
1980
|
-
const D = G({
|
|
1981
|
-
get: () => m.value,
|
|
1982
|
-
set: (f) => {
|
|
1983
|
-
m.value = f, N.locale = m.value;
|
|
1984
|
-
}
|
|
1985
|
-
}), S = G({
|
|
1986
|
-
get: () => u.value,
|
|
1987
|
-
set: (f) => {
|
|
1988
|
-
u.value = f, N.fallbackLocale = u.value, Ve(N, m.value, f);
|
|
1989
|
-
}
|
|
1990
|
-
}), L = G(() => _.value), x = /* @__PURE__ */ G(() => b.value), re = /* @__PURE__ */ G(() => E.value);
|
|
1991
|
-
function Le() {
|
|
1992
|
-
return Z(d) ? d : null;
|
|
1993
|
-
}
|
|
1994
|
-
function oe(f) {
|
|
1995
|
-
d = f, N.postTranslation = f;
|
|
1996
|
-
}
|
|
1997
|
-
function ut() {
|
|
1998
|
-
return O;
|
|
1999
|
-
}
|
|
2000
|
-
function mt(f) {
|
|
2001
|
-
f !== null && (i = Tn(f)), O = f, N.missing = i;
|
|
2002
|
-
}
|
|
2003
|
-
const de = (f, I, W, Y, Ie, $e) => {
|
|
2004
|
-
j();
|
|
2005
|
-
let Se;
|
|
2006
|
-
try {
|
|
2007
|
-
xr.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (N.fallbackContext = t ? Lr() : void 0), Se = f(N);
|
|
2008
|
-
} finally {
|
|
2009
|
-
__INTLIFY_PROD_DEVTOOLS__, s || (N.fallbackContext = void 0);
|
|
2010
|
-
}
|
|
2011
|
-
if (W !== "translate exists" && // for not `te` (e.g `t`)
|
|
2012
|
-
K(Se) && Se === it || W === "translate exists" && !Se) {
|
|
2013
|
-
const [Zn, La] = I();
|
|
2014
|
-
return t && M ? Y(t) : Ie(Zn);
|
|
2015
|
-
} else {
|
|
2016
|
-
if ($e(Se))
|
|
2017
|
-
return Se;
|
|
2018
|
-
throw Ze(Pe.UNEXPECTED_RETURN_TYPE);
|
|
2019
|
-
}
|
|
2020
|
-
};
|
|
2021
|
-
function Ye(...f) {
|
|
2022
|
-
return de((I) => Reflect.apply(En, null, [I, ...f]), () => Pt(...f), "translate", (I) => Reflect.apply(I.t, I, [...f]), (I) => I, (I) => R(I));
|
|
2023
|
-
}
|
|
2024
|
-
function Be(...f) {
|
|
2025
|
-
const [I, W, Y] = f;
|
|
2026
|
-
if (Y && !F(Y))
|
|
2027
|
-
throw Ze(Pe.INVALID_ARGUMENT);
|
|
2028
|
-
return Ye(I, W, z({ resolvedMessage: !0 }, Y || {}));
|
|
2029
|
-
}
|
|
2030
|
-
function dt(...f) {
|
|
2031
|
-
return de((I) => Reflect.apply(_n, null, [I, ...f]), () => Dt(...f), "datetime format", (I) => Reflect.apply(I.d, I, [...f]), () => cn, (I) => R(I));
|
|
2032
|
-
}
|
|
2033
|
-
function _t(...f) {
|
|
2034
|
-
return de((I) => Reflect.apply(pn, null, [I, ...f]), () => Mt(...f), "number format", (I) => Reflect.apply(I.n, I, [...f]), () => cn, (I) => R(I));
|
|
2035
|
-
}
|
|
2036
|
-
function ft(f) {
|
|
2037
|
-
return f.map((I) => R(I) || K(I) || J(I) ? In(String(I)) : I);
|
|
2038
|
-
}
|
|
2039
|
-
const pt = {
|
|
2040
|
-
normalize: ft,
|
|
2041
|
-
interpolate: (f) => f,
|
|
2042
|
-
type: "vnode"
|
|
2043
|
-
};
|
|
2044
|
-
function ht(...f) {
|
|
2045
|
-
return de((I) => {
|
|
2046
|
-
let W;
|
|
2047
|
-
const Y = I;
|
|
2048
|
-
try {
|
|
2049
|
-
Y.processor = pt, W = Reflect.apply(En, null, [Y, ...f]);
|
|
2050
|
-
} finally {
|
|
2051
|
-
Y.processor = null;
|
|
2052
|
-
}
|
|
2053
|
-
return W;
|
|
2054
|
-
}, () => Pt(...f), "translate", (I) => I[wt](...f), (I) => [In(I)], (I) => $(I));
|
|
2055
|
-
}
|
|
2056
|
-
function Je(...f) {
|
|
2057
|
-
return de((I) => Reflect.apply(pn, null, [I, ...f]), () => Mt(...f), "number format", (I) => I[Ut](...f), vn, (I) => R(I) || $(I));
|
|
2058
|
-
}
|
|
2059
|
-
function bt(...f) {
|
|
2060
|
-
return de((I) => Reflect.apply(_n, null, [I, ...f]), () => Dt(...f), "datetime format", (I) => I[Ft](...f), vn, (I) => R(I) || $(I));
|
|
2061
|
-
}
|
|
2062
|
-
function gt(f) {
|
|
2063
|
-
T = f, N.pluralRules = T;
|
|
2064
|
-
}
|
|
2065
|
-
function Et(f, I) {
|
|
2066
|
-
return de(() => {
|
|
2067
|
-
if (!f)
|
|
2068
|
-
return !1;
|
|
2069
|
-
const W = R(I) ? I : m.value, Y = Re(W), Ie = N.messageResolver(Y, f);
|
|
2070
|
-
return Me(Ie) || ae(Ie) || R(Ie);
|
|
2071
|
-
}, () => [f], "translate exists", (W) => Reflect.apply(W.te, W, [f, I]), Jr, (W) => J(W));
|
|
2072
|
-
}
|
|
2073
|
-
function It(f) {
|
|
2074
|
-
let I = null;
|
|
2075
|
-
const W = Cn(N, u.value, m.value);
|
|
2076
|
-
for (let Y = 0; Y < W.length; Y++) {
|
|
2077
|
-
const Ie = _.value[W[Y]] || {}, $e = N.messageResolver(Ie, f);
|
|
2078
|
-
if ($e != null) {
|
|
2079
|
-
I = $e;
|
|
2080
|
-
break;
|
|
2081
|
-
}
|
|
2082
|
-
}
|
|
2083
|
-
return I;
|
|
2084
|
-
}
|
|
2085
|
-
function Fe(f) {
|
|
2086
|
-
const I = It(f);
|
|
2087
|
-
return I ?? (t ? t.tm(f) || {} : {});
|
|
2088
|
-
}
|
|
2089
|
-
function Re(f) {
|
|
2090
|
-
return _.value[f] || {};
|
|
2091
|
-
}
|
|
2092
|
-
function Ce(f, I) {
|
|
2093
|
-
if (l) {
|
|
2094
|
-
const W = { [f]: I };
|
|
2095
|
-
for (const Y in W)
|
|
2096
|
-
ie(W, Y) && He(W[Y]);
|
|
2097
|
-
I = W[f];
|
|
2098
|
-
}
|
|
2099
|
-
_.value[f] = I, N.messages = _.value;
|
|
2100
|
-
}
|
|
2101
|
-
function Ue(f, I) {
|
|
2102
|
-
_.value[f] = _.value[f] || {};
|
|
2103
|
-
const W = { [f]: I };
|
|
2104
|
-
if (l)
|
|
2105
|
-
for (const Y in W)
|
|
2106
|
-
ie(W, Y) && He(W[Y]);
|
|
2107
|
-
I = W[f], nt(I, _.value[f]), N.messages = _.value;
|
|
2108
|
-
}
|
|
2109
|
-
function Nt(f) {
|
|
2110
|
-
return b.value[f] || {};
|
|
2111
|
-
}
|
|
2112
|
-
function a(f, I) {
|
|
2113
|
-
b.value[f] = I, N.datetimeFormats = b.value, fn(N, f, I);
|
|
2114
|
-
}
|
|
2115
|
-
function o(f, I) {
|
|
2116
|
-
b.value[f] = z(b.value[f] || {}, I), N.datetimeFormats = b.value, fn(N, f, I);
|
|
2117
|
-
}
|
|
2118
|
-
function h(f) {
|
|
2119
|
-
return E.value[f] || {};
|
|
2120
|
-
}
|
|
2121
|
-
function A(f, I) {
|
|
2122
|
-
E.value[f] = I, N.numberFormats = E.value, hn(N, f, I);
|
|
2123
|
-
}
|
|
2124
|
-
function H(f, I) {
|
|
2125
|
-
E.value[f] = z(E.value[f] || {}, I), N.numberFormats = E.value, hn(N, f, I);
|
|
2126
|
-
}
|
|
2127
|
-
yn++, t && Qt && (Rt(t.locale, (f) => {
|
|
2128
|
-
c && (m.value = f, N.locale = f, Ve(N, m.value, u.value));
|
|
2129
|
-
}), Rt(t.fallbackLocale, (f) => {
|
|
2130
|
-
c && (u.value = f, N.fallbackLocale = f, Ve(N, m.value, u.value));
|
|
2131
|
-
}));
|
|
2132
|
-
const P = {
|
|
2133
|
-
id: yn,
|
|
2134
|
-
locale: D,
|
|
2135
|
-
fallbackLocale: S,
|
|
2136
|
-
get inheritLocale() {
|
|
2137
|
-
return c;
|
|
2138
|
-
},
|
|
2139
|
-
set inheritLocale(f) {
|
|
2140
|
-
c = f, f && t && (m.value = t.locale.value, u.value = t.fallbackLocale.value, Ve(N, m.value, u.value));
|
|
2141
|
-
},
|
|
2142
|
-
get availableLocales() {
|
|
2143
|
-
return Object.keys(_.value).sort();
|
|
2144
|
-
},
|
|
2145
|
-
messages: L,
|
|
2146
|
-
get modifiers() {
|
|
2147
|
-
return k;
|
|
2148
|
-
},
|
|
2149
|
-
get pluralRules() {
|
|
2150
|
-
return T || {};
|
|
2151
|
-
},
|
|
2152
|
-
get isGlobal() {
|
|
2153
|
-
return s;
|
|
2154
|
-
},
|
|
2155
|
-
get missingWarn() {
|
|
2156
|
-
return g;
|
|
2157
|
-
},
|
|
2158
|
-
set missingWarn(f) {
|
|
2159
|
-
g = f, N.missingWarn = g;
|
|
2160
|
-
},
|
|
2161
|
-
get fallbackWarn() {
|
|
2162
|
-
return C;
|
|
2163
|
-
},
|
|
2164
|
-
set fallbackWarn(f) {
|
|
2165
|
-
C = f, N.fallbackWarn = C;
|
|
2166
|
-
},
|
|
2167
|
-
get fallbackRoot() {
|
|
2168
|
-
return M;
|
|
2169
|
-
},
|
|
2170
|
-
set fallbackRoot(f) {
|
|
2171
|
-
M = f;
|
|
2172
|
-
},
|
|
2173
|
-
get fallbackFormat() {
|
|
2174
|
-
return y;
|
|
2175
|
-
},
|
|
2176
|
-
set fallbackFormat(f) {
|
|
2177
|
-
y = f, N.fallbackFormat = y;
|
|
2178
|
-
},
|
|
2179
|
-
get warnHtmlMessage() {
|
|
2180
|
-
return v;
|
|
2181
|
-
},
|
|
2182
|
-
set warnHtmlMessage(f) {
|
|
2183
|
-
v = f, N.warnHtmlMessage = f;
|
|
2184
|
-
},
|
|
2185
|
-
get escapeParameter() {
|
|
2186
|
-
return p;
|
|
2187
|
-
},
|
|
2188
|
-
set escapeParameter(f) {
|
|
2189
|
-
p = f, N.escapeParameter = f;
|
|
2190
|
-
},
|
|
2191
|
-
t: Ye,
|
|
2192
|
-
getLocaleMessage: Re,
|
|
2193
|
-
setLocaleMessage: Ce,
|
|
2194
|
-
mergeLocaleMessage: Ue,
|
|
2195
|
-
getPostTranslationHandler: Le,
|
|
2196
|
-
setPostTranslationHandler: oe,
|
|
2197
|
-
getMissingHandler: ut,
|
|
2198
|
-
setMissingHandler: mt,
|
|
2199
|
-
[Yr]: gt
|
|
2200
|
-
};
|
|
2201
|
-
return P.datetimeFormats = x, P.numberFormats = re, P.rt = Be, P.te = Et, P.tm = Fe, P.d = dt, P.n = _t, P.getDateTimeFormat = Nt, P.setDateTimeFormat = a, P.mergeDateTimeFormat = o, P.getNumberFormat = h, P.setNumberFormat = A, P.mergeNumberFormat = H, P[Wn] = n, P[wt] = ht, P[Ft] = bt, P[Ut] = Je, P;
|
|
2202
|
-
}
|
|
2203
|
-
const Bt = {
|
|
2204
|
-
tag: {
|
|
2205
|
-
type: [String, Object]
|
|
2206
|
-
},
|
|
2207
|
-
locale: {
|
|
2208
|
-
type: String
|
|
2209
|
-
},
|
|
2210
|
-
scope: {
|
|
2211
|
-
type: String,
|
|
2212
|
-
// NOTE: avoid https://github.com/microsoft/rushstack/issues/1050
|
|
2213
|
-
validator: (e) => e === "parent" || e === "global",
|
|
2214
|
-
default: "parent"
|
|
2215
|
-
/* ComponentI18nScope */
|
|
2216
|
-
},
|
|
2217
|
-
i18n: {
|
|
2218
|
-
type: Object
|
|
2219
|
-
}
|
|
2220
|
-
};
|
|
2221
|
-
function zr({ slots: e }, t) {
|
|
2222
|
-
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((s, l) => [
|
|
2223
|
-
...s,
|
|
2224
|
-
// prettier-ignore
|
|
2225
|
-
...l.type === we ? l.children : [l]
|
|
2226
|
-
], []) : t.reduce((n, s) => {
|
|
2227
|
-
const l = e[s];
|
|
2228
|
-
return l && (n[s] = l()), n;
|
|
2229
|
-
}, V());
|
|
2230
|
-
}
|
|
2231
|
-
function Xn() {
|
|
2232
|
-
return we;
|
|
2233
|
-
}
|
|
2234
|
-
z({
|
|
2235
|
-
keypath: {
|
|
2236
|
-
type: String,
|
|
2237
|
-
required: !0
|
|
2238
|
-
},
|
|
2239
|
-
plural: {
|
|
2240
|
-
type: [Number, String],
|
|
2241
|
-
validator: (e) => K(e) || !isNaN(e)
|
|
2242
|
-
}
|
|
2243
|
-
}, Bt);
|
|
2244
|
-
function Qr(e) {
|
|
2245
|
-
return $(e) && !R(e[0]);
|
|
2246
|
-
}
|
|
2247
|
-
function xn(e, t, n, s) {
|
|
2248
|
-
const { slots: l, attrs: r } = t;
|
|
2249
|
-
return () => {
|
|
2250
|
-
const c = { part: !0 };
|
|
2251
|
-
let m = V();
|
|
2252
|
-
e.locale && (c.locale = e.locale), R(e.format) ? c.key = e.format : F(e.format) && (R(e.format.key) && (c.key = e.format.key), m = Object.keys(e.format).reduce((g, C) => n.includes(C) ? z(V(), g, { [C]: e.format[C] }) : g, V()));
|
|
2253
|
-
const u = s(e.value, c, m);
|
|
2254
|
-
let _ = [c.key];
|
|
2255
|
-
$(u) ? _ = u.map((g, C) => {
|
|
2256
|
-
const M = l[g.type], y = M ? M({ [g.type]: g.value, index: C, parts: u }) : [g.value];
|
|
2257
|
-
return Qr(y) && (y[0].key = `${g.type}-${C}`), y;
|
|
2258
|
-
}) : R(u) && (_ = [u]);
|
|
2259
|
-
const b = z(V(), r), E = R(e.tag) || F(e.tag) ? e.tag : Xn();
|
|
2260
|
-
return Ln(E, b, _);
|
|
2261
|
-
};
|
|
2262
|
-
}
|
|
2263
|
-
z({
|
|
2264
|
-
value: {
|
|
2265
|
-
type: Number,
|
|
2266
|
-
required: !0
|
|
2267
|
-
},
|
|
2268
|
-
format: {
|
|
2269
|
-
type: [String, Object]
|
|
2270
|
-
}
|
|
2271
|
-
}, Bt);
|
|
2272
|
-
z({
|
|
2273
|
-
value: {
|
|
2274
|
-
type: [Number, Date],
|
|
2275
|
-
required: !0
|
|
2276
|
-
},
|
|
2277
|
-
format: {
|
|
2278
|
-
type: [String, Object]
|
|
2279
|
-
}
|
|
2280
|
-
}, Bt);
|
|
2281
|
-
const qr = /* @__PURE__ */ ke("global-vue-i18n");
|
|
2282
|
-
function ct(e = {}) {
|
|
2283
|
-
const t = Wt();
|
|
2284
|
-
if (t == null)
|
|
2285
|
-
throw Ze(Pe.MUST_BE_CALL_SETUP_TOP);
|
|
2286
|
-
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2287
|
-
throw Ze(Pe.NOT_INSTALLED);
|
|
2288
|
-
const n = ea(t), s = na(n), l = jn(t), r = ta(e, l);
|
|
2289
|
-
if (r === "global")
|
|
2290
|
-
return Br(s, e, l), s;
|
|
2291
|
-
if (r === "parent") {
|
|
2292
|
-
let u = sa(n, t, e.__useComponent);
|
|
2293
|
-
return u == null && (u = s), u;
|
|
2294
|
-
}
|
|
2295
|
-
const c = n;
|
|
2296
|
-
let m = c.__getInstance(t);
|
|
2297
|
-
if (m == null) {
|
|
2298
|
-
const u = z({}, e);
|
|
2299
|
-
"__i18n" in l && (u.__i18n = l.__i18n), s && (u.__root = s), m = Kr(u), c.__composerExtend && (m[Vt] = c.__composerExtend(m)), aa(c, t, m), c.__setInstance(t, m);
|
|
2300
|
-
}
|
|
2301
|
-
return m;
|
|
2302
|
-
}
|
|
2303
|
-
function ea(e) {
|
|
2304
|
-
const t = Hn(e.isCE ? qr : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2305
|
-
if (!t)
|
|
2306
|
-
throw Ze(e.isCE ? Pe.NOT_INSTALLED_WITH_PROVIDE : Pe.UNEXPECTED_ERROR);
|
|
2307
|
-
return t;
|
|
2308
|
-
}
|
|
2309
|
-
function ta(e, t) {
|
|
2310
|
-
return lt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2311
|
-
}
|
|
2312
|
-
function na(e) {
|
|
2313
|
-
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2314
|
-
}
|
|
2315
|
-
function sa(e, t, n = !1) {
|
|
2316
|
-
let s = null;
|
|
2317
|
-
const l = t.root;
|
|
2318
|
-
let r = ra(t, n);
|
|
2319
|
-
for (; r != null; ) {
|
|
2320
|
-
const c = e;
|
|
2321
|
-
if (e.mode === "composition")
|
|
2322
|
-
s = c.__getInstance(r);
|
|
2323
|
-
else if (__VUE_I18N_LEGACY_API__) {
|
|
2324
|
-
const m = c.__getInstance(r);
|
|
2325
|
-
m != null && (s = m.__composer, n && s && !s[Wn] && (s = null));
|
|
2326
|
-
}
|
|
2327
|
-
if (s != null || l === r)
|
|
2328
|
-
break;
|
|
2329
|
-
r = r.parent;
|
|
2330
|
-
}
|
|
2331
|
-
return s;
|
|
2332
|
-
}
|
|
2333
|
-
function ra(e, t = !1) {
|
|
2334
|
-
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2335
|
-
}
|
|
2336
|
-
function aa(e, t, n) {
|
|
2337
|
-
Gt(() => {
|
|
2338
|
-
}, t), kn(() => {
|
|
2339
|
-
const s = n;
|
|
2340
|
-
e.__deleteInstance(t);
|
|
2341
|
-
const l = s[Vt];
|
|
2342
|
-
l && (l(), delete s[Vt]);
|
|
2343
|
-
}, t);
|
|
2344
|
-
}
|
|
2345
|
-
Hr();
|
|
2346
|
-
vr(sr);
|
|
2347
|
-
yr(Er);
|
|
2348
|
-
Tr(Cn);
|
|
2349
|
-
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2350
|
-
const e = ye();
|
|
2351
|
-
e.__INTLIFY__ = !0, rr(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2352
|
-
}
|
|
2353
|
-
const et = /* @__PURE__ */ ce({
|
|
2354
|
-
__name: "InheritPermissionTooltip",
|
|
2355
|
-
props: {
|
|
2356
|
-
item: {
|
|
2357
|
-
type: Object,
|
|
2358
|
-
required: !0
|
|
2359
|
-
}
|
|
2360
|
-
},
|
|
2361
|
-
setup(e) {
|
|
2362
|
-
const { t } = ct();
|
|
2363
|
-
return (n, s) => {
|
|
2364
|
-
const l = Ge("FmIcon"), r = Ge("FmTooltip");
|
|
2365
|
-
return B(), Oe(r, {
|
|
2366
|
-
variant: "plain",
|
|
2367
|
-
placement: "right",
|
|
2368
|
-
"z-index": 50
|
|
2369
|
-
}, {
|
|
2370
|
-
content: se(() => [
|
|
2371
|
-
ee("div", null, je(he(t)("team.memberForm.permissions.inherited")), 1),
|
|
2372
|
-
(B(!0), te(we, null, me(e.item.setNames, (c) => (B(), te("div", { key: c }, [
|
|
2373
|
-
ee("div", null, "- " + je(c), 1)
|
|
2374
|
-
]))), 128))
|
|
2375
|
-
]),
|
|
2376
|
-
default: se(() => [
|
|
2377
|
-
ne(l, {
|
|
2378
|
-
name: "admin_panel_settings",
|
|
2379
|
-
size: "sm",
|
|
2380
|
-
class: "ml-1 text-fm-color-typo-info"
|
|
2381
|
-
})
|
|
2382
|
-
]),
|
|
2383
|
-
_: 1
|
|
2384
|
-
});
|
|
2385
|
-
};
|
|
2386
|
-
}
|
|
2387
|
-
}), la = { class: "space-y-16" }, oa = {
|
|
2388
|
-
key: 0,
|
|
2389
|
-
class: "flex fm-typo-en-title-sm-600"
|
|
2390
|
-
}, ia = {
|
|
2391
|
-
key: 0,
|
|
2392
|
-
class: "q-mr-xs text-red col"
|
|
2393
|
-
}, ca = { class: "form-input" }, ua = /* @__PURE__ */ ce({
|
|
2394
|
-
__name: "AppForm",
|
|
2395
|
-
props: {
|
|
2396
|
-
title: {
|
|
2397
|
-
type: String,
|
|
2398
|
-
default: void 0
|
|
2399
|
-
},
|
|
2400
|
-
required: {
|
|
2401
|
-
type: [Boolean, String],
|
|
2402
|
-
default: !1
|
|
2403
|
-
},
|
|
2404
|
-
inline: {
|
|
2405
|
-
type: Boolean,
|
|
2406
|
-
default: !1
|
|
2407
|
-
}
|
|
2408
|
-
},
|
|
2409
|
-
setup(e) {
|
|
2410
|
-
const t = e;
|
|
2411
|
-
return (n, s) => (B(), te("div", la, [
|
|
2412
|
-
le(n.$slots, "top", {}, () => [
|
|
2413
|
-
t.title ? (B(), te("div", oa, [
|
|
2414
|
-
ee("div", null, [
|
|
2415
|
-
t.required ? (B(), te("span", ia, "*")) : Ne("", !0),
|
|
2416
|
-
Jn(je(t.title), 1)
|
|
2417
|
-
]),
|
|
2418
|
-
le(n.$slots, "title-right")
|
|
2419
|
-
])) : Ne("", !0)
|
|
2420
|
-
]),
|
|
2421
|
-
ee("div", ca, [
|
|
2422
|
-
le(n.$slots, "default")
|
|
2423
|
-
])
|
|
2424
|
-
]));
|
|
2425
|
-
}
|
|
2426
|
-
});
|
|
2427
|
-
function ma(e, t) {
|
|
2428
|
-
let n = "", s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
2429
|
-
const l = s.length;
|
|
2430
|
-
for (let r = 0; r < e; r++)
|
|
2431
|
-
n += s.charAt(Math.floor(Math.random() * l));
|
|
2432
|
-
return n;
|
|
2433
|
-
}
|
|
2434
|
-
const da = { class: "col flex items-center" }, _a = {
|
|
2435
|
-
key: 1,
|
|
2436
|
-
class: "q-pa-sm form-error-message text-error"
|
|
2437
|
-
}, Jt = /* @__PURE__ */ ce({
|
|
2438
|
-
__name: "CheckboxInput",
|
|
2439
|
-
props: {
|
|
2440
|
-
options: {
|
|
2441
|
-
type: Array,
|
|
2442
|
-
required: !0
|
|
2443
|
-
},
|
|
2444
|
-
title: {
|
|
2445
|
-
type: String,
|
|
2446
|
-
required: !0
|
|
2447
|
-
},
|
|
2448
|
-
modelValue: {
|
|
2449
|
-
type: Array,
|
|
2450
|
-
required: !0
|
|
2451
|
-
},
|
|
2452
|
-
showAllToggle: {
|
|
2453
|
-
type: [Boolean, String],
|
|
2454
|
-
default: !0
|
|
2455
|
-
},
|
|
2456
|
-
includeDisabledOptionsWhenSelectAll: {
|
|
2457
|
-
type: Boolean,
|
|
2458
|
-
default: !1
|
|
2459
|
-
},
|
|
2460
|
-
disable: {
|
|
2461
|
-
type: Boolean,
|
|
2462
|
-
default: !1
|
|
2463
|
-
},
|
|
2464
|
-
min: {
|
|
2465
|
-
type: Number,
|
|
2466
|
-
default: 0
|
|
2467
|
-
},
|
|
2468
|
-
max: {
|
|
2469
|
-
type: Number,
|
|
2470
|
-
default: void 0
|
|
2471
|
-
},
|
|
2472
|
-
showIntermediate: {
|
|
2473
|
-
type: Boolean,
|
|
2474
|
-
default: !0
|
|
2475
|
-
},
|
|
2476
|
-
gutter: {
|
|
2477
|
-
type: Number,
|
|
2478
|
-
default: void 0
|
|
2479
|
-
},
|
|
2480
|
-
falsyShowSlot: {
|
|
2481
|
-
type: Boolean,
|
|
2482
|
-
default: !1
|
|
2483
|
-
},
|
|
2484
|
-
bottomSlotIndent: {
|
|
2485
|
-
type: String,
|
|
2486
|
-
default: "36px"
|
|
2487
|
-
},
|
|
2488
|
-
alignCenter: {
|
|
2489
|
-
type: Boolean,
|
|
2490
|
-
default: !0
|
|
2491
|
-
}
|
|
2492
|
-
},
|
|
2493
|
-
emits: ["update:model-value"],
|
|
2494
|
-
setup(e, { emit: t }) {
|
|
2495
|
-
const n = e, s = t, { t: l } = at(), r = Te(!1), c = $n(), m = G(() => 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-${ma(6)}`, _ = G(() => m.value !== !0), b = G(
|
|
2496
|
-
() => n.modelValue.filter((y) => n.options.some((O) => O.value === y))
|
|
2497
|
-
), E = G(
|
|
2498
|
-
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2499
|
-
), g = G(() => n.options.length > 0 && n.options.length === b.value.length);
|
|
2500
|
-
function C() {
|
|
2501
|
-
const y = n.modelValue.filter((O) => !b.value.includes(O));
|
|
2502
|
-
if (g.value === !0)
|
|
2503
|
-
s("update:model-value", y);
|
|
2504
|
-
else {
|
|
2505
|
-
const O = n.includeDisabledOptionsWhenSelectAll ? n.options.map((i) => i.value) : n.options.filter((i) => !i.disabled).map((i) => i.value);
|
|
2506
|
-
s("update:model-value", [...y, ...O]);
|
|
2507
|
-
}
|
|
2508
|
-
}
|
|
2509
|
-
function M(y, O) {
|
|
2510
|
-
let i = We(n.modelValue);
|
|
2511
|
-
O ? i.every((d) => d !== y) && i.push(y) : i = i.filter((d) => d !== y), s("update:model-value", i);
|
|
2512
|
-
}
|
|
2513
|
-
return (y, O) => {
|
|
2514
|
-
const i = Ge("FmCheckbox");
|
|
2515
|
-
return B(), Oe(ua, {
|
|
2516
|
-
id: u,
|
|
2517
|
-
title: e.title,
|
|
2518
|
-
required: !1
|
|
2519
|
-
}, {
|
|
2520
|
-
top: se(() => [
|
|
2521
|
-
le(y.$slots, "top")
|
|
2522
|
-
]),
|
|
2523
|
-
default: se(() => [
|
|
2524
|
-
n.showAllToggle ? (B(), Oe(i, {
|
|
2525
|
-
key: 0,
|
|
2526
|
-
"model-value": g.value,
|
|
2527
|
-
disabled: e.disable,
|
|
2528
|
-
label: E.value,
|
|
2529
|
-
style: tt(`margin-bottom: ${n.gutter}px`),
|
|
2530
|
-
size: "sm",
|
|
2531
|
-
dense: "",
|
|
2532
|
-
value: E.value,
|
|
2533
|
-
"onUpdate:modelValue": C
|
|
2534
|
-
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Ne("", !0),
|
|
2535
|
-
(B(!0), te(we, null, me(e.options, (d, v) => (B(), te("div", {
|
|
2536
|
-
key: d.value,
|
|
2537
|
-
style: tt(`margin-bottom: ${v < e.options.length - 1 ? n.gutter : 0}px`),
|
|
2538
|
-
class: Ke(v < e.options.length - 1 ? "q-mb-sm" : "")
|
|
2539
|
-
}, [
|
|
2540
|
-
ee("div", {
|
|
2541
|
-
class: Ke(["row justify-between", e.alignCenter ? "items-center" : "items-start"])
|
|
2542
|
-
}, [
|
|
2543
|
-
ee("div", da, [
|
|
2544
|
-
ne(i, {
|
|
2545
|
-
"model-value": e.modelValue.includes(d.value),
|
|
2546
|
-
disabled: e.disable || d.disabled,
|
|
2547
|
-
size: "sm",
|
|
2548
|
-
label: d.label,
|
|
2549
|
-
value: d.label,
|
|
2550
|
-
"onUpdate:modelValue": (p) => M(d.value, p)
|
|
2551
|
-
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
2552
|
-
le(y.$slots, `checkbox-${d.key || d.value}-append`, {
|
|
2553
|
-
option: d,
|
|
2554
|
-
selected: e.modelValue.includes(d.value)
|
|
2555
|
-
})
|
|
2556
|
-
]),
|
|
2557
|
-
he(c)[`checkbox-${d.key || d.value}-end`] && (e.modelValue.includes(d.value) || e.falsyShowSlot) ? (B(), te("div", {
|
|
2558
|
-
key: 0,
|
|
2559
|
-
class: Ke([{ "q-checkbox disabled": e.disable || d.disabled }, "col"])
|
|
2560
|
-
}, [
|
|
2561
|
-
le(y.$slots, `checkbox-${d.key || d.value}-end`, {
|
|
2562
|
-
option: d,
|
|
2563
|
-
value: e.modelValue.includes(d.value),
|
|
2564
|
-
disable: e.disable || d.disabled
|
|
2565
|
-
})
|
|
2566
|
-
], 2)) : Ne("", !0)
|
|
2567
|
-
], 2),
|
|
2568
|
-
he(c)[`checkbox-${d.key || d.value}-bottom`] && (e.modelValue.includes(d.value) || e.falsyShowSlot) ? (B(), te("div", {
|
|
2569
|
-
key: 0,
|
|
2570
|
-
class: Ke(["q-mt-sm", { "q-checkbox disabled": e.disable || d.disabled }]),
|
|
2571
|
-
style: tt(`margin-left: ${e.bottomSlotIndent}`)
|
|
2572
|
-
}, [
|
|
2573
|
-
le(y.$slots, `checkbox-${d.key || d.value}-bottom`, {
|
|
2574
|
-
option: d,
|
|
2575
|
-
disable: e.disable || d.disabled,
|
|
2576
|
-
value: e.modelValue.includes(d.value)
|
|
2577
|
-
})
|
|
2578
|
-
], 6)) : Ne("", !0)
|
|
2579
|
-
], 6))), 128)),
|
|
2580
|
-
r.value && _.value ? (B(), te("div", _a, je(m.value), 1)) : Ne("", !0)
|
|
2581
|
-
]),
|
|
2582
|
-
_: 3
|
|
2583
|
-
}, 8, ["title"]);
|
|
2584
|
-
};
|
|
2585
|
-
}
|
|
2586
|
-
}), fa = { class: "flex flex-col gap-16" }, pa = /* @__PURE__ */ ce({
|
|
2587
|
-
__name: "BasePermission",
|
|
2588
|
-
props: {
|
|
2589
|
-
modelValue: {
|
|
2590
|
-
type: Array,
|
|
2591
|
-
required: !0
|
|
2592
|
-
},
|
|
2593
|
-
disable: {
|
|
2594
|
-
type: Boolean,
|
|
2595
|
-
default: !1
|
|
2596
|
-
},
|
|
2597
|
-
excludedSubjects: {
|
|
2598
|
-
type: Array,
|
|
2599
|
-
required: !0
|
|
2600
|
-
}
|
|
2601
|
-
},
|
|
2602
|
-
emits: ["update:model-value"],
|
|
2603
|
-
setup(e, { emit: t }) {
|
|
2604
|
-
const n = e, s = t, l = Object.values(rs), r = G(() => {
|
|
2605
|
-
const m = /* @__PURE__ */ new Map();
|
|
2606
|
-
for (const _ of Ct) {
|
|
2607
|
-
const b = _.category;
|
|
2608
|
-
b && (n.excludedSubjects.includes(_.subject) || (m.has(b) || m.set(b, []), m.get(b).push({ label: _.label, value: _.subject })));
|
|
2609
|
-
}
|
|
2610
|
-
return [...m.keys()].sort((_, b) => {
|
|
2611
|
-
const E = l.indexOf(_), g = l.indexOf(b);
|
|
2612
|
-
return E === -1 && g === -1 ? _.localeCompare(b) : E === -1 ? 1 : g === -1 ? -1 : E - g;
|
|
2613
|
-
}).map((_) => {
|
|
2614
|
-
const b = m.get(_), E = n.modelValue.filter((g) => b.some((C) => C.value === g.subject)).map((g) => g.subject);
|
|
2615
|
-
return { category: _, options: b, selectedSubjects: E };
|
|
2616
|
-
});
|
|
2617
|
-
});
|
|
2618
|
-
function c(m, u) {
|
|
2619
|
-
var b;
|
|
2620
|
-
const _ = ((b = r.value.find((E) => E.category === m)) == null ? void 0 : b.options) ?? [];
|
|
2621
|
-
s("update:model-value", [
|
|
2622
|
-
// Keep permissions from all other categories unchanged
|
|
2623
|
-
...n.modelValue.filter((E) => !_.some((g) => g.value === E.subject)),
|
|
2624
|
-
// Replace with the newly selected permissions for this category (strip UI-only category field)
|
|
2625
|
-
...Ct.filter((E) => u.includes(E.subject)).map(({ category: E, ...g }) => g)
|
|
2626
|
-
]);
|
|
2627
|
-
}
|
|
2628
|
-
return (m, u) => (B(), te("div", fa, [
|
|
2629
|
-
(B(!0), te(we, null, me(r.value, (_) => (B(), Oe(Jt, {
|
|
2630
|
-
key: _.category,
|
|
2631
|
-
"model-value": _.selectedSubjects,
|
|
2632
|
-
options: _.options,
|
|
2633
|
-
disable: e.disable,
|
|
2634
|
-
title: _.category,
|
|
2635
|
-
"onUpdate:modelValue": (b) => c(_.category, b)
|
|
2636
|
-
}, ve({ _: 2 }, [
|
|
2637
|
-
me(_.options, (b) => ({
|
|
2638
|
-
name: `checkbox-${b.value}-append`,
|
|
2639
|
-
fn: se(({ option: E }) => [
|
|
2640
|
-
le(m.$slots, `checkbox-${b.value}-append`, { option: E })
|
|
2641
|
-
])
|
|
2642
|
-
}))
|
|
2643
|
-
]), 1032, ["model-value", "options", "disable", "title", "onUpdate:modelValue"]))), 128))
|
|
2644
|
-
]));
|
|
2645
|
-
}
|
|
2646
|
-
}), ha = { class: "flex items-center" }, ba = { class: "ml-auto" }, ga = /* @__PURE__ */ ce({
|
|
2647
|
-
__name: "CollapsibleWrapper",
|
|
2648
|
-
props: {
|
|
2649
|
-
title: { default: "" },
|
|
2650
|
-
initiallyCollapsed: { type: Boolean, default: !1 }
|
|
2651
|
-
},
|
|
2652
|
-
setup(e) {
|
|
2653
|
-
const n = Te(e.initiallyCollapsed), s = Te(), l = Te(0);
|
|
2654
|
-
let r;
|
|
2655
|
-
function c() {
|
|
2656
|
-
n.value = !n.value;
|
|
2657
|
-
}
|
|
2658
|
-
function m() {
|
|
2659
|
-
s.value && (l.value = s.value.scrollHeight);
|
|
2660
|
-
}
|
|
2661
|
-
return Gt(async () => {
|
|
2662
|
-
await Kn(), s.value && (r = new ResizeObserver(() => {
|
|
2663
|
-
m();
|
|
2664
|
-
}), r.observe(s.value));
|
|
2665
|
-
}), kn(() => {
|
|
2666
|
-
r == null || r.disconnect();
|
|
2667
|
-
}), (u, _) => {
|
|
2668
|
-
const b = Ge("FmButton");
|
|
2669
|
-
return B(), te(we, null, [
|
|
2670
|
-
ee("div", { onClick: c }, [
|
|
2671
|
-
ee("div", ha, [
|
|
2672
|
-
le(u.$slots, "title"),
|
|
2673
|
-
ee("div", ba, [
|
|
2674
|
-
ne(b, {
|
|
2675
|
-
icon: n.value ? "keyboard_arrow_down" : "keyboard_arrow_up",
|
|
2676
|
-
"text-color": "neutral-gray-400",
|
|
2677
|
-
variant: "tertiary",
|
|
2678
|
-
size: "md"
|
|
2679
|
-
}, null, 8, ["icon"])
|
|
2680
|
-
])
|
|
2681
|
-
])
|
|
2682
|
-
]),
|
|
2683
|
-
ee("div", {
|
|
2684
|
-
ref_key: "contentRef",
|
|
2685
|
-
ref: s,
|
|
2686
|
-
class: "transition-all duration-300 ease-in-out overflow-hidden",
|
|
2687
|
-
style: tt({ maxHeight: n.value ? "0" : l.value + "px" })
|
|
2688
|
-
}, [
|
|
2689
|
-
le(u.$slots, "default")
|
|
2690
|
-
], 4)
|
|
2691
|
-
], 64);
|
|
2692
|
-
};
|
|
2693
|
-
}
|
|
2694
|
-
}), Ea = { class: "fm-typo-en-title-sm-600" }, kt = "includedFuture", On = /* @__PURE__ */ ce({
|
|
2695
|
-
__name: "ConditionPermission",
|
|
2696
|
-
props: {
|
|
2697
|
-
modelValue: {
|
|
2698
|
-
type: Array,
|
|
2699
|
-
default: null
|
|
2700
|
-
},
|
|
2701
|
-
options: {
|
|
2702
|
-
type: Array,
|
|
2703
|
-
required: !0
|
|
2704
|
-
},
|
|
2705
|
-
disable: {
|
|
2706
|
-
type: Boolean,
|
|
2707
|
-
default: !1
|
|
2708
|
-
},
|
|
2709
|
-
context: {
|
|
2710
|
-
type: String,
|
|
2711
|
-
required: !0
|
|
2712
|
-
}
|
|
2713
|
-
},
|
|
2714
|
-
emits: ["update:model-value"],
|
|
2715
|
-
setup(e, { emit: t }) {
|
|
2716
|
-
const n = e, s = t, { t: l } = at(), r = G(() => [
|
|
2717
|
-
{
|
|
2718
|
-
label: l("team.memberForm.permissions.includedFuture", { context: n.context }),
|
|
2719
|
-
value: kt,
|
|
2720
|
-
// Can only be selected if all other options are selected
|
|
2721
|
-
disable: !!n.modelValue && n.options.length > n.modelValue.length
|
|
2722
|
-
},
|
|
2723
|
-
...n.options.filter(
|
|
2724
|
-
(_) => _.label.toLocaleLowerCase().includes(u.value.toLocaleLowerCase())
|
|
2725
|
-
)
|
|
2726
|
-
]), c = G(() => n.modelValue ? n.modelValue : [kt, ...n.options.map((_) => _.value)]);
|
|
2727
|
-
function m(_) {
|
|
2728
|
-
const b = _.length === r.value.length;
|
|
2729
|
-
s("update:model-value", b ? null : _.filter((E) => E !== kt));
|
|
2730
|
-
}
|
|
2731
|
-
const u = Te("");
|
|
2732
|
-
return (_, b) => {
|
|
2733
|
-
const E = Ge("fm-search");
|
|
2734
|
-
return B(), Oe(ga, null, {
|
|
2735
|
-
title: se(() => [
|
|
2736
|
-
ee("p", Ea, je(he(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
2737
|
-
]),
|
|
2738
|
-
default: se(() => [
|
|
2739
|
-
e.options.length > 1 ? (B(), Oe(E, {
|
|
2740
|
-
key: 0,
|
|
2741
|
-
modelValue: u.value,
|
|
2742
|
-
"onUpdate:modelValue": b[0] || (b[0] = (g) => u.value = g),
|
|
2743
|
-
class: "mt-16",
|
|
2744
|
-
placeholder: he(l)("team.memberForm.permissions.search", { context: e.context })
|
|
2745
|
-
}, null, 8, ["modelValue", "placeholder"])) : Ne("", !0),
|
|
2746
|
-
ne(Jt, {
|
|
2747
|
-
"model-value": c.value,
|
|
2748
|
-
options: r.value,
|
|
2749
|
-
"show-intermediate": !1,
|
|
2750
|
-
"show-all-toggle": !0,
|
|
2751
|
-
disable: e.disable,
|
|
2752
|
-
"include-disabled-options-when-select-all": !0,
|
|
2753
|
-
title: "",
|
|
2754
|
-
class: "mt-16",
|
|
2755
|
-
"onUpdate:modelValue": m
|
|
2756
|
-
}, ve({ _: 2 }, [
|
|
2757
|
-
me(r.value, (g) => ({
|
|
2758
|
-
name: `checkbox-${g.value}-append`,
|
|
2759
|
-
fn: se(({ option: C }) => [
|
|
2760
|
-
le(_.$slots, `checkbox-${g.value}-append`, { option: C })
|
|
2761
|
-
])
|
|
2762
|
-
}))
|
|
2763
|
-
]), 1032, ["model-value", "options", "disable"])
|
|
2764
|
-
]),
|
|
2765
|
-
_: 3
|
|
2766
|
-
});
|
|
2767
|
-
};
|
|
2768
|
-
}
|
|
2769
|
-
}), Lt = "includedNewRole", Ia = /* @__PURE__ */ ce({
|
|
2770
|
-
__name: "PosRolePermission",
|
|
2771
|
-
props: {
|
|
2772
|
-
modelValue: {
|
|
2773
|
-
type: Array,
|
|
2774
|
-
default: null
|
|
2775
|
-
},
|
|
2776
|
-
roles: {
|
|
2777
|
-
type: Array,
|
|
2778
|
-
required: !0
|
|
2779
|
-
},
|
|
2780
|
-
restaurantIds: {
|
|
2781
|
-
type: Array,
|
|
2782
|
-
default: null
|
|
2783
|
-
},
|
|
2784
|
-
disable: {
|
|
2785
|
-
type: Boolean,
|
|
2786
|
-
default: !1
|
|
2787
|
-
}
|
|
2788
|
-
},
|
|
2789
|
-
emits: ["update:model-value"],
|
|
2790
|
-
setup(e, { emit: t }) {
|
|
2791
|
-
const n = e, s = t, { t: l } = at(), r = G(() => {
|
|
2792
|
-
const u = n.restaurantIds;
|
|
2793
|
-
return [
|
|
2794
|
-
{
|
|
2795
|
-
label: l("team.memberForm.permissions.includedNewRole"),
|
|
2796
|
-
value: Lt,
|
|
2797
|
-
disable: !!n.modelValue && n.roles.length > n.modelValue.length
|
|
2798
|
-
},
|
|
2799
|
-
...n.roles.map((_) => ({
|
|
2800
|
-
label: _.name,
|
|
2801
|
-
value: _._id,
|
|
2802
|
-
disable: !!u && _.restaurants.every(({ id: b }) => !u.includes(b))
|
|
2803
|
-
}))
|
|
2804
|
-
];
|
|
2805
|
-
}), c = G(() => n.modelValue ? n.modelValue : [Lt, ...n.roles.map((u) => u._id)]);
|
|
2806
|
-
function m(u) {
|
|
2807
|
-
const _ = u.length === r.value.length;
|
|
2808
|
-
s("update:model-value", _ ? null : u.filter((b) => b !== Lt));
|
|
2809
|
-
}
|
|
2810
|
-
return (u, _) => (B(), Oe(Jt, {
|
|
2811
|
-
"model-value": c.value,
|
|
2812
|
-
options: r.value,
|
|
2813
|
-
"show-intermediate": !1,
|
|
2814
|
-
"show-all-toggle": !1,
|
|
2815
|
-
disable: e.disable,
|
|
2816
|
-
title: he(l)("team.memberForm.permissions.roles"),
|
|
2817
|
-
"onUpdate:modelValue": m
|
|
2818
|
-
}, ve({ _: 2 }, [
|
|
2819
|
-
me(r.value, (b) => ({
|
|
2820
|
-
name: `checkbox-${b.value}-append`,
|
|
2821
|
-
fn: se(({ option: E }) => [
|
|
2822
|
-
le(u.$slots, `checkbox-${b.value}-append`, { option: E })
|
|
2823
|
-
])
|
|
2824
|
-
}))
|
|
2825
|
-
]), 1032, ["model-value", "options", "disable", "title"]));
|
|
2826
|
-
}
|
|
2827
|
-
}), Na = {
|
|
2828
|
-
async readWarehouses() {
|
|
2829
|
-
return qn(await es().get("/warehouses"));
|
|
2830
|
-
}
|
|
2831
|
-
}, va = { class: "flex flex-col gap-32" }, ya = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Ta = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Oa = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ka = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Pa = /* @__PURE__ */ ce({
|
|
2832
|
-
__name: "PortalPermissionEditor",
|
|
2833
|
-
props: /* @__PURE__ */ Kt({
|
|
2834
|
-
disable: {
|
|
2835
|
-
type: Boolean,
|
|
2836
|
-
default: !1
|
|
2837
|
-
},
|
|
2838
|
-
inheritPermissions: {
|
|
2839
|
-
type: Array,
|
|
2840
|
-
default: () => []
|
|
2841
|
-
}
|
|
2842
|
-
}, {
|
|
2843
|
-
modelValue: { default: () => [] },
|
|
2844
|
-
modelModifiers: {}
|
|
2845
|
-
}),
|
|
2846
|
-
emits: /* @__PURE__ */ Kt(["permissionChanged"], ["update:modelValue"]),
|
|
2847
|
-
setup(e, { emit: t }) {
|
|
2848
|
-
const n = zn(e, "modelValue"), s = e, l = t, { t: r } = at(), c = G(() => {
|
|
2849
|
-
const D = Ct.filter((L) => !b.includes(L.subject)).map((L) => L.subject);
|
|
2850
|
-
return ts(
|
|
2851
|
-
s.inheritPermissions.map((L) => ({
|
|
2852
|
-
...L,
|
|
2853
|
-
permissions: L.permissions.filter((x) => D.includes(x.subject))
|
|
2854
|
-
}))
|
|
2855
|
-
).map((L) => ({
|
|
2856
|
-
id: L.subject,
|
|
2857
|
-
setNames: L.setNames
|
|
2858
|
-
}));
|
|
2859
|
-
}), m = G(() => {
|
|
2860
|
-
const D = s.inheritPermissions.map((S) => ({
|
|
2861
|
-
...S,
|
|
2862
|
-
permissions: S.permissions.filter(
|
|
2863
|
-
(L) => L.subject === Q.Subject.Business.inventory_stock
|
|
2864
|
-
)
|
|
2865
|
-
}));
|
|
2866
|
-
return vt(
|
|
2867
|
-
D,
|
|
2868
|
-
"warehouseId",
|
|
2869
|
-
g.value.map((S) => S._id)
|
|
2870
|
-
);
|
|
2871
|
-
}), u = G(() => {
|
|
2872
|
-
const D = s.inheritPermissions.map((S) => ({
|
|
2873
|
-
...S,
|
|
2874
|
-
permissions: S.permissions.filter(
|
|
2875
|
-
(L) => L.subject === Q.Subject.Restaurant.restaurant
|
|
2876
|
-
)
|
|
2877
|
-
}));
|
|
2878
|
-
return vt(
|
|
2879
|
-
D,
|
|
2880
|
-
"restaurantId",
|
|
2881
|
-
O.value.map((S) => S._id)
|
|
2882
|
-
);
|
|
2883
|
-
}), _ = G(() => {
|
|
2884
|
-
const D = s.inheritPermissions.map((S) => ({
|
|
2885
|
-
...S,
|
|
2886
|
-
permissions: S.permissions.filter(
|
|
2887
|
-
(L) => L.subject === Q.Subject.Business.hrm_employee_role
|
|
2888
|
-
)
|
|
2889
|
-
}));
|
|
2890
|
-
return vt(
|
|
2891
|
-
D,
|
|
2892
|
-
"roleId",
|
|
2893
|
-
i.value.map((S) => S._id)
|
|
2894
|
-
);
|
|
2895
|
-
}), b = [
|
|
2896
|
-
Q.Subject.Business.restaurant,
|
|
2897
|
-
Q.Subject.Business.hrm_employee_role,
|
|
2898
|
-
Q.Subject.Business.inventory_stock,
|
|
2899
|
-
Q.Subject.Restaurant.restaurant
|
|
2900
|
-
], E = G(() => {
|
|
2901
|
-
var S;
|
|
2902
|
-
const D = (S = n.value) == null ? void 0 : S.find(
|
|
2903
|
-
(L) => L.subject === Q.Subject.Business.inventory_stock
|
|
2904
|
-
);
|
|
2905
|
-
return D ? D.conditions ? JSON.parse(D.conditions).warehouseId.$in : null : [];
|
|
2906
|
-
}), g = Te([]), C = G(() => g.value.map((D) => ({
|
|
2907
|
-
label: D.profile.name,
|
|
2908
|
-
value: D._id
|
|
2909
|
-
})));
|
|
2910
|
-
function M(D) {
|
|
2911
|
-
const S = y(n.value, D);
|
|
2912
|
-
n.value = S;
|
|
2913
|
-
}
|
|
2914
|
-
function y(D, S) {
|
|
2915
|
-
let L = We(
|
|
2916
|
-
D.filter((x) => x.subject !== Q.Subject.Business.inventory_stock)
|
|
2917
|
-
);
|
|
2918
|
-
if (!S || S.length > 0) {
|
|
2919
|
-
const x = {
|
|
2920
|
-
actions: [Q.Action.manage],
|
|
2921
|
-
subject: Q.Subject.Business.inventory_stock
|
|
2922
|
-
};
|
|
2923
|
-
S && (x.conditions = JSON.stringify({ warehouseId: { $in: S } })), L.push(x);
|
|
2924
|
-
}
|
|
2925
|
-
return L;
|
|
2926
|
-
}
|
|
2927
|
-
const { restaurants: O } = Qn(), i = as().roles, d = G(() => O.value.map((D) => ({
|
|
2928
|
-
label: `${D.profile.code ? D.profile.code + "-" : ""}${D.profile.name}`,
|
|
2929
|
-
value: D._id
|
|
2930
|
-
}))), v = G(() => O.value.reduce((D, S) => (D[S._id] = i.value.filter((L) => L.restaurants.some((x) => x.id === S._id)).map((L) => L._id), D), {})), p = G(() => ns(n.value));
|
|
2931
|
-
function k(D) {
|
|
2932
|
-
const S = N(n.value, D);
|
|
2933
|
-
n.value = S;
|
|
2934
|
-
}
|
|
2935
|
-
const T = G(() => ss(n.value));
|
|
2936
|
-
function N(D, S) {
|
|
2937
|
-
var x;
|
|
2938
|
-
let L = We(
|
|
2939
|
-
D.filter(
|
|
2940
|
-
(re) => re.subject !== Q.Subject.Business.restaurant && re.subject !== Q.Subject.Restaurant.restaurant
|
|
2941
|
-
)
|
|
2942
|
-
);
|
|
2943
|
-
if (!S || S.length > 0) {
|
|
2944
|
-
L.push(zt.restaurant);
|
|
2945
|
-
const re = {
|
|
2946
|
-
actions: [Q.Action.manage],
|
|
2947
|
-
subject: Q.Subject.Restaurant.restaurant
|
|
2948
|
-
};
|
|
2949
|
-
S && (re.conditions = JSON.stringify({ restaurantId: { $in: S } })), L.push(re);
|
|
2950
|
-
}
|
|
2951
|
-
if (S) {
|
|
2952
|
-
const re = [
|
|
2953
|
-
...new Set(S.map((oe) => v.value[oe]).flatMap((oe) => oe))
|
|
2954
|
-
], Le = i.value.map((oe) => oe._id);
|
|
2955
|
-
re.length !== Le.length && (L = j(
|
|
2956
|
-
L,
|
|
2957
|
-
(x = T.value || Le) == null ? void 0 : x.filter((oe) => re.includes(oe))
|
|
2958
|
-
));
|
|
2959
|
-
}
|
|
2960
|
-
return L;
|
|
2961
|
-
}
|
|
2962
|
-
function X(D) {
|
|
2963
|
-
const S = j(n.value, D);
|
|
2964
|
-
n.value = S;
|
|
2965
|
-
}
|
|
2966
|
-
function j(D, S) {
|
|
2967
|
-
let L = We(
|
|
2968
|
-
D.filter((x) => x.subject !== Q.Subject.Business.hrm_employee_role)
|
|
2969
|
-
);
|
|
2970
|
-
if (S && S.length > 0) {
|
|
2971
|
-
const x = We(zt.role);
|
|
2972
|
-
x.conditions = JSON.stringify({ roleId: { $in: S } }), L.push(x);
|
|
2973
|
-
}
|
|
2974
|
-
return L;
|
|
2975
|
-
}
|
|
2976
|
-
return Gt(async () => {
|
|
2977
|
-
g.value = await Na.readWarehouses();
|
|
2978
|
-
}), Rt(
|
|
2979
|
-
n,
|
|
2980
|
-
(D) => {
|
|
2981
|
-
l("permissionChanged", D);
|
|
2982
|
-
},
|
|
2983
|
-
{ deep: !0 }
|
|
2984
|
-
), (D, S) => (B(), te("div", va, [
|
|
2985
|
-
ee("div", ya, [
|
|
2986
|
-
ne(pa, {
|
|
2987
|
-
modelValue: n.value,
|
|
2988
|
-
"onUpdate:modelValue": S[0] || (S[0] = (L) => n.value = L),
|
|
2989
|
-
"excluded-subjects": b
|
|
2990
|
-
}, ve({ _: 2 }, [
|
|
2991
|
-
me(c.value, (L) => ({
|
|
2992
|
-
name: `checkbox-${L.id}-append`,
|
|
2993
|
-
fn: se(() => [
|
|
2994
|
-
ne(et, { item: L }, null, 8, ["item"])
|
|
2995
|
-
])
|
|
2996
|
-
}))
|
|
2997
|
-
]), 1032, ["modelValue"])
|
|
2998
|
-
]),
|
|
2999
|
-
ee("div", Ta, [
|
|
3000
|
-
ne(On, {
|
|
3001
|
-
"model-value": E.value,
|
|
3002
|
-
options: C.value,
|
|
3003
|
-
context: he(r)("team.labels.warehouse"),
|
|
3004
|
-
"onUpdate:modelValue": M
|
|
3005
|
-
}, ve({ _: 2 }, [
|
|
3006
|
-
me(m.value, (L) => ({
|
|
3007
|
-
name: `checkbox-${L.id}-append`,
|
|
3008
|
-
fn: se(() => [
|
|
3009
|
-
ne(et, { item: L }, null, 8, ["item"])
|
|
3010
|
-
])
|
|
3011
|
-
}))
|
|
3012
|
-
]), 1032, ["model-value", "options", "context"])
|
|
3013
|
-
]),
|
|
3014
|
-
ee("div", Oa, [
|
|
3015
|
-
ne(On, {
|
|
3016
|
-
"model-value": p.value,
|
|
3017
|
-
options: d.value,
|
|
3018
|
-
context: he(r)("team.labels.restaurant"),
|
|
3019
|
-
"onUpdate:modelValue": k
|
|
3020
|
-
}, ve({ _: 2 }, [
|
|
3021
|
-
me(u.value, (L) => ({
|
|
3022
|
-
name: `checkbox-${L.id}-append`,
|
|
3023
|
-
fn: se(() => [
|
|
3024
|
-
ne(et, { item: L }, null, 8, ["item"])
|
|
3025
|
-
])
|
|
3026
|
-
}))
|
|
3027
|
-
]), 1032, ["model-value", "options", "context"])
|
|
3028
|
-
]),
|
|
3029
|
-
ee("div", ka, [
|
|
3030
|
-
ne(Ia, {
|
|
3031
|
-
roles: he(i),
|
|
3032
|
-
"model-value": T.value,
|
|
3033
|
-
"restaurant-ids": p.value,
|
|
3034
|
-
"onUpdate:modelValue": X
|
|
3035
|
-
}, ve({ _: 2 }, [
|
|
3036
|
-
me(_.value, (L) => ({
|
|
3037
|
-
name: `checkbox-${L.id}-append`,
|
|
3038
|
-
fn: se(() => [
|
|
3039
|
-
ne(et, { item: L }, null, 8, ["item"])
|
|
3040
|
-
])
|
|
3041
|
-
}))
|
|
3042
|
-
]), 1032, ["roles", "model-value", "restaurant-ids"])
|
|
3043
|
-
])
|
|
3044
|
-
]));
|
|
3045
|
-
}
|
|
3046
|
-
});
|
|
3047
|
-
export {
|
|
3048
|
-
Jt as _,
|
|
3049
|
-
Pa as a
|
|
3050
|
-
};
|