@feedmepos/mf-hrm-portal 2.0.6-dev → 2.0.7-dev

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