@feedmepos/mf-hrm-portal 2.0.6-dev → 2.0.6-dev.1

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