@feedmepos/mf-hrm-portal 2.0.17-dev.3 → 2.0.17-dev.4

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