@feedmepos/mf-hrm-portal 2.0.9-dev → 2.0.9

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