@feedmepos/mf-hrm-portal 2.0.16 → 2.0.17-dev.2

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 (47) hide show
  1. package/dist/{AuditLogList-iyCwZoot.js → AuditLogList-DQOiwup5.js} +324 -350
  2. package/dist/CollapsibleWrapper.vue_vue_type_script_setup_true_lang-BLJlmPVa.js +58 -0
  3. package/dist/EmployeeList-oERrzrAd.js +828 -0
  4. package/dist/FormItem.vue_vue_type_script_setup_true_lang-CoorkndT.js +34 -0
  5. package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +49 -0
  6. package/dist/{Main-C-_jj0hE.js → Main-2uJvk5L7.js} +15 -14
  7. package/dist/{Main-Br1NK5Nk.js → Main-5nIpv-Sp.js} +9 -9
  8. package/dist/{Main-CVLdj0vm.js → Main-C8ja5xs6.js} +8 -8
  9. package/dist/PermissionSetList-CtpaWlVM.js +323 -0
  10. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-B-hvBqE0.js +3439 -0
  11. package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +132 -0
  12. package/dist/RoleList-CDBP2W5v.js +544 -0
  13. package/dist/TeamMemberList-DSzNjP4y.js +996 -0
  14. package/dist/{TimesheetList-Cvco7hQ7.js → TimesheetList-D1ByiuwP.js} +6 -6
  15. package/dist/{app-Deq-BbQg.js → app-hS6MBhCw.js} +211 -163
  16. package/dist/app.js +1 -1
  17. package/dist/{dayjs.min-BC7eDcw3.js → dayjs.min-DFcH-XYr.js} +1 -1
  18. package/dist/{employee-CSb8K1_S.js → employee-fBtBUEwZ.js} +3 -3
  19. package/dist/{iteration-CzlBzD5p.js → iteration-D23fqAQH.js} +2 -2
  20. package/dist/{lodash-BxgA1s7j.js → lodash-Cqc7y4P5.js} +1 -1
  21. package/dist/{rule-BYb8TfeP.js → rule-BBJzenE1.js} +2 -2
  22. package/dist/src/components/CheckboxInput.vue.d.ts +1 -1
  23. package/dist/src/components/CollapsibleWrapper.vue.d.ts +2 -0
  24. package/dist/src/composables/useBasePermission.d.ts +1 -0
  25. package/dist/src/views/hr/locales/index.d.ts +16 -0
  26. package/dist/src/views/team/components/BasePermission.vue.d.ts +2 -6
  27. package/dist/src/views/team/components/PosRolePermission.vue.d.ts +2 -2
  28. package/dist/src/views/team/locales/index.d.ts +32 -0
  29. package/dist/src/views/team/member/AddMemberForm.vue.d.ts +3 -3
  30. package/dist/style.css +1 -1
  31. package/dist/team-Dq3VcGNH.js +33 -0
  32. package/dist/{timesheet-BlHG7Fw5.js → timesheet-OfLQjuvO.js} +2 -2
  33. package/dist/tsconfig.app.tsbuildinfo +1 -1
  34. package/dist/{useAppStore-tV67t5M2.js → useAppStore-Du6PRBq0.js} +1 -1
  35. package/dist/{useLoading-DWaMwG8t.js → useLoading-DkTCR5A7.js} +1 -1
  36. package/dist/{useReportPermissions-DJvfurhn.js → useReportPermissions-DhhjBwPs.js} +3 -3
  37. package/dist/useSearch-BAPEUu1R.js +15 -0
  38. package/package.json +1 -1
  39. package/dist/EmployeeList-CJvHFQnQ.js +0 -736
  40. package/dist/FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js +0 -71
  41. package/dist/HorizontalSplitter-o860F4xM.js +0 -12
  42. package/dist/PermissionSetList-4lJbnJsE.js +0 -334
  43. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DJniPhu1.js +0 -3476
  44. package/dist/RoleList-C0NI4ooY.js +0 -528
  45. package/dist/TeamMemberList-CGjxliOv.js +0 -1108
  46. package/dist/useDebounce-B8ZPVS5C.js +0 -15
  47. package/dist/useSearch-B6WK1LBB.js +0 -15
@@ -0,0 +1,3439 @@
1
+ import { getCurrentInstance as Zt, inject as Jn, ref as bt, shallowRef as Kn, computed as Q, watch as St, onMounted as Cn, onUnmounted as zn, defineComponent as Oe, h as An, createVNode as _e, Text as Qn, Fragment as ye, resolveComponent as ze, createBlock as De, openBlock as z, withCtx as pe, createElementVNode as ie, createElementBlock as oe, toDisplayString as ke, unref as B, renderList as he, toRef as zt, normalizeStyle as mt, renderSlot as Te, createCommentVNode as Se, createTextVNode as qn, useSlots as es, normalizeClass as at, createSlots as Ze, mergeModels as Qt, useModel as ts } from "vue";
2
+ import { useI18n as nt, useCoreStore as ns } from "@feedmepos/mf-common";
3
+ import "@vue/devtools-api";
4
+ import { p as Dt, d as ss, v as as, w as Tt, x as rs, j as ls, $ as Ot } from "./rule-BBJzenE1.js";
5
+ import { _ as xt } from "./CollapsibleWrapper.vue_vue_type_script_setup_true_lang-BLJlmPVa.js";
6
+ import { u as os, p as is, d as me, C as cs, A as Lt } from "./app-hS6MBhCw.js";
7
+ import { d as dt, g as us, b as ms } from "./iteration-D23fqAQH.js";
8
+ import { u as ds } from "./useAppStore-Du6PRBq0.js";
9
+ /*!
10
+ * shared v10.0.5
11
+ * (c) 2024 kazuya kawaguchi
12
+ * Released under the MIT License.
13
+ */
14
+ const qt = typeof window < "u", je = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), fs = (e, t, n) => _s({ l: e, k: t, s: n }), _s = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), de = (e) => typeof e == "number" && isFinite(e), ps = (e) => Xt(e) === "[object Date]", _t = (e) => Xt(e) === "[object RegExp]", gt = (e) => $(e) && Object.keys(e).length === 0, fe = Object.assign, bs = Object.create, q = (e = null) => bs(e);
15
+ let en;
16
+ const Fe = () => en || (en = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : q());
17
+ function tn(e) {
18
+ return e.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;");
19
+ }
20
+ const gs = Object.prototype.hasOwnProperty;
21
+ function Ee(e, t) {
22
+ return gs.call(e, t);
23
+ }
24
+ const ue = Array.isArray, se = (e) => typeof e == "function", P = (e) => typeof e == "string", ce = (e) => typeof e == "boolean", J = (e) => e !== null && typeof e == "object", hs = (e) => J(e) && se(e.then) && se(e.catch), Sn = Object.prototype.toString, Xt = (e) => Sn.call(e), $ = (e) => Xt(e) === "[object Object]", vs = (e) => e == null ? "" : ue(e) || $(e) && e.toString === Sn ? JSON.stringify(e, null, 2) : String(e);
25
+ function Yt(e, t = "") {
26
+ return e.reduce((n, s, l) => l === 0 ? n + s : n + t + s, "");
27
+ }
28
+ function Is(e, t) {
29
+ typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
30
+ }
31
+ const rt = (e) => !J(e) || ue(e);
32
+ function ft(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__" && (J(s[a]) && !J(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 Es(e, t, n) {
44
+ return { line: e, column: t, offset: n };
45
+ }
46
+ function Mt(e, t, n) {
47
+ return { start: e, end: t };
48
+ }
49
+ const K = {
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 ht(e, t, n = {}) {
68
+ const { domain: s, messages: l, args: a } = n, c = e, u = new SyntaxError(String(c));
69
+ return u.code = e, t && (u.location = t), u.domain = s, u;
70
+ }
71
+ function ys(e) {
72
+ throw e;
73
+ }
74
+ const Le = " ", ks = "\r", be = `
75
+ `, Ts = "\u2028", Os = "\u2029";
76
+ function Ls(e) {
77
+ const t = e;
78
+ let n = 0, s = 1, l = 1, a = 0;
79
+ const c = (I) => t[I] === ks && t[I + 1] === be, u = (I) => t[I] === be, m = (I) => t[I] === Os, p = (I) => t[I] === Ts, y = (I) => c(I) || u(I) || m(I) || p(I), T = () => n, O = () => s, w = () => l, V = () => a, C = (I) => c(I) || m(I) || p(I) ? be : t[I], M = () => C(n), i = () => C(n + a);
80
+ function d() {
81
+ return a = 0, y(n) && (s++, l = 0), c(n) && n++, n++, l++, t[n];
82
+ }
83
+ function L() {
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 S(I = 0) {
90
+ a = I;
91
+ }
92
+ function D() {
93
+ const I = n + a;
94
+ for (; I !== n; )
95
+ d();
96
+ a = 0;
97
+ }
98
+ return {
99
+ index: T,
100
+ line: O,
101
+ column: w,
102
+ peekOffset: V,
103
+ charAt: C,
104
+ currentChar: M,
105
+ currentPeek: i,
106
+ next: d,
107
+ peek: L,
108
+ reset: _,
109
+ resetPeek: S,
110
+ skipToPeek: D
111
+ };
112
+ }
113
+ const Ae = void 0, Rs = ".", nn = "'", Cs = "tokenizer";
114
+ function As(e, t = {}) {
115
+ const n = t.location !== !1, s = Ls(e), l = () => s.index(), a = () => Es(s.line(), s.column(), s.index()), c = a(), u = l(), m = {
116
+ currentType: 13,
117
+ offset: u,
118
+ startLoc: c,
119
+ endLoc: c,
120
+ lastType: 13,
121
+ lastOffset: u,
122
+ lastStartLoc: c,
123
+ lastEndLoc: c,
124
+ braceNest: 0,
125
+ inLinked: !1,
126
+ text: ""
127
+ }, p = () => m, { onError: y } = t;
128
+ function T(r, o, b, ...U) {
129
+ const re = p();
130
+ if (o.column += b, o.offset += b, y) {
131
+ const X = n ? Mt(re.startLoc, o) : null, f = ht(r, X, {
132
+ domain: Cs,
133
+ args: U
134
+ });
135
+ y(f);
136
+ }
137
+ }
138
+ function O(r, o, b) {
139
+ r.endLoc = a(), r.currentType = o;
140
+ const U = { type: o };
141
+ return n && (U.loc = Mt(r.startLoc, r.endLoc)), b != null && (U.value = b), U;
142
+ }
143
+ const w = (r) => O(
144
+ r,
145
+ 13
146
+ /* TokenTypes.EOF */
147
+ );
148
+ function V(r, o) {
149
+ return r.currentChar() === o ? (r.next(), o) : (T(K.EXPECTED_TOKEN, a(), 0, o), "");
150
+ }
151
+ function C(r) {
152
+ let o = "";
153
+ for (; r.currentPeek() === Le || r.currentPeek() === be; )
154
+ o += r.currentPeek(), r.peek();
155
+ return o;
156
+ }
157
+ function M(r) {
158
+ const o = C(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 d(r) {
170
+ if (r === Ae)
171
+ return !1;
172
+ const o = r.charCodeAt(0);
173
+ return o >= 48 && o <= 57;
174
+ }
175
+ function L(r, o) {
176
+ const { currentType: b } = o;
177
+ if (b !== 2)
178
+ return !1;
179
+ C(r);
180
+ const U = i(r.currentPeek());
181
+ return r.resetPeek(), U;
182
+ }
183
+ function _(r, o) {
184
+ const { currentType: b } = o;
185
+ if (b !== 2)
186
+ return !1;
187
+ C(r);
188
+ const U = r.currentPeek() === "-" ? r.peek() : r.currentPeek(), re = d(U);
189
+ return r.resetPeek(), re;
190
+ }
191
+ function S(r, o) {
192
+ const { currentType: b } = o;
193
+ if (b !== 2)
194
+ return !1;
195
+ C(r);
196
+ const U = r.currentPeek() === nn;
197
+ return r.resetPeek(), U;
198
+ }
199
+ function D(r, o) {
200
+ const { currentType: b } = o;
201
+ if (b !== 7)
202
+ return !1;
203
+ C(r);
204
+ const U = r.currentPeek() === ".";
205
+ return r.resetPeek(), U;
206
+ }
207
+ function I(r, o) {
208
+ const { currentType: b } = o;
209
+ if (b !== 8)
210
+ return !1;
211
+ C(r);
212
+ const U = i(r.currentPeek());
213
+ return r.resetPeek(), U;
214
+ }
215
+ function H(r, o) {
216
+ const { currentType: b } = o;
217
+ if (!(b === 7 || b === 11))
218
+ return !1;
219
+ C(r);
220
+ const U = r.currentPeek() === ":";
221
+ return r.resetPeek(), U;
222
+ }
223
+ function g(r, o) {
224
+ const { currentType: b } = o;
225
+ if (b !== 9)
226
+ return !1;
227
+ const U = () => {
228
+ const X = r.currentPeek();
229
+ return X === "{" ? i(r.peek()) : X === "@" || X === "|" || X === ":" || X === "." || X === Le || !X ? !1 : X === be ? (r.peek(), U()) : R(r, !1);
230
+ }, re = U();
231
+ return r.resetPeek(), re;
232
+ }
233
+ function h(r) {
234
+ C(r);
235
+ const o = r.currentPeek() === "|";
236
+ return r.resetPeek(), o;
237
+ }
238
+ function R(r, o = !0) {
239
+ const b = (re = !1, X = "") => {
240
+ const f = r.currentPeek();
241
+ return f === "{" || f === "@" || !f ? re : f === "|" ? !(X === Le || X === be) : f === Le ? (r.peek(), b(!0, Le)) : f === be ? (r.peek(), b(!0, be)) : !0;
242
+ }, U = b();
243
+ return o && r.resetPeek(), U;
244
+ }
245
+ function E(r, o) {
246
+ const b = r.currentChar();
247
+ return b === Ae ? Ae : o(b) ? (r.next(), b) : null;
248
+ }
249
+ function F(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 x(r) {
258
+ return E(r, F);
259
+ }
260
+ function v(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 A(r) {
270
+ return E(r, v);
271
+ }
272
+ function N(r) {
273
+ const o = r.charCodeAt(0);
274
+ return o >= 48 && o <= 57;
275
+ }
276
+ function G(r) {
277
+ return E(r, N);
278
+ }
279
+ function W(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 E(r, W);
287
+ }
288
+ function ee(r) {
289
+ let o = "", b = "";
290
+ for (; o = G(r); )
291
+ b += o;
292
+ return b;
293
+ }
294
+ function Y(r) {
295
+ let o = "";
296
+ for (; ; ) {
297
+ const b = r.currentChar();
298
+ if (b === "{" || b === "}" || b === "@" || b === "|" || !b)
299
+ break;
300
+ if (b === Le || b === be)
301
+ if (R(r))
302
+ o += b, r.next();
303
+ else {
304
+ if (h(r))
305
+ break;
306
+ o += b, r.next();
307
+ }
308
+ else
309
+ o += b, r.next();
310
+ }
311
+ return o;
312
+ }
313
+ function ge(r) {
314
+ M(r);
315
+ let o = "", b = "";
316
+ for (; o = A(r); )
317
+ b += o;
318
+ return r.currentChar() === Ae && T(K.UNTERMINATED_CLOSING_BRACE, a(), 0), b;
319
+ }
320
+ function Z(r) {
321
+ M(r);
322
+ let o = "";
323
+ return r.currentChar() === "-" ? (r.next(), o += `-${ee(r)}`) : o += ee(r), r.currentChar() === Ae && T(K.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
324
+ }
325
+ function ae(r) {
326
+ return r !== nn && r !== be;
327
+ }
328
+ function ne(r) {
329
+ M(r), V(r, "'");
330
+ let o = "", b = "";
331
+ for (; o = E(r, ae); )
332
+ o === "\\" ? b += Ie(r) : b += o;
333
+ const U = r.currentChar();
334
+ return U === be || U === Ae ? (T(K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), U === be && (r.next(), V(r, "'")), b) : (V(r, "'"), b);
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 He(r, o, 4);
344
+ case "U":
345
+ return He(r, o, 6);
346
+ default:
347
+ return T(K.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
348
+ }
349
+ }
350
+ function He(r, o, b) {
351
+ V(r, o);
352
+ let U = "";
353
+ for (let re = 0; re < b; re++) {
354
+ const X = j(r);
355
+ if (!X) {
356
+ T(K.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${U}${r.currentChar()}`);
357
+ break;
358
+ }
359
+ U += X;
360
+ }
361
+ return `\\${o}${U}`;
362
+ }
363
+ function Be(r) {
364
+ return r !== "{" && r !== "}" && r !== Le && r !== be;
365
+ }
366
+ function Et(r) {
367
+ M(r);
368
+ let o = "", b = "";
369
+ for (; o = E(r, Be); )
370
+ b += o;
371
+ return b;
372
+ }
373
+ function Nt(r) {
374
+ let o = "", b = "";
375
+ for (; o = x(r); )
376
+ b += o;
377
+ return b;
378
+ }
379
+ function yt(r) {
380
+ const o = (b) => {
381
+ const U = r.currentChar();
382
+ return U === "{" || U === "@" || U === "|" || U === "(" || U === ")" || !U || U === Le ? b : (b += U, r.next(), o(b));
383
+ };
384
+ return o("");
385
+ }
386
+ function $e(r) {
387
+ M(r);
388
+ const o = V(
389
+ r,
390
+ "|"
391
+ /* TokenChars.Pipe */
392
+ );
393
+ return M(r), o;
394
+ }
395
+ function Ue(r, o) {
396
+ let b = null;
397
+ switch (r.currentChar()) {
398
+ case "{":
399
+ return o.braceNest >= 1 && T(K.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), r.next(), b = O(
400
+ o,
401
+ 2,
402
+ "{"
403
+ /* TokenChars.BraceLeft */
404
+ ), M(r), o.braceNest++, b;
405
+ case "}":
406
+ return o.braceNest > 0 && o.currentType === 2 && T(K.EMPTY_PLACEHOLDER, a(), 0), r.next(), b = O(
407
+ o,
408
+ 3,
409
+ "}"
410
+ /* TokenChars.BraceRight */
411
+ ), o.braceNest--, o.braceNest > 0 && M(r), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), b;
412
+ case "@":
413
+ return o.braceNest > 0 && T(K.UNTERMINATED_CLOSING_BRACE, a(), 0), b = Ve(r, o) || w(o), o.braceNest = 0, b;
414
+ default: {
415
+ let re = !0, X = !0, f = !0;
416
+ if (h(r))
417
+ return o.braceNest > 0 && T(K.UNTERMINATED_CLOSING_BRACE, a(), 0), b = O(o, 1, $e(r)), o.braceNest = 0, o.inLinked = !1, b;
418
+ if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
419
+ return T(K.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, Je(r, o);
420
+ if (re = L(r, o))
421
+ return b = O(o, 4, ge(r)), M(r), b;
422
+ if (X = _(r, o))
423
+ return b = O(o, 5, Z(r)), M(r), b;
424
+ if (f = S(r, o))
425
+ return b = O(o, 6, ne(r)), M(r), b;
426
+ if (!re && !X && !f)
427
+ return b = O(o, 12, Et(r)), T(K.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, b.value), M(r), b;
428
+ break;
429
+ }
430
+ }
431
+ return b;
432
+ }
433
+ function Ve(r, o) {
434
+ const { currentType: b } = o;
435
+ let U = null;
436
+ const re = r.currentChar();
437
+ switch ((b === 7 || b === 8 || b === 11 || b === 9) && (re === be || re === Le) && T(K.INVALID_LINKED_FORMAT, a(), 0), re) {
438
+ case "@":
439
+ return r.next(), U = O(
440
+ o,
441
+ 7,
442
+ "@"
443
+ /* TokenChars.LinkedAlias */
444
+ ), o.inLinked = !0, U;
445
+ case ".":
446
+ return M(r), r.next(), O(
447
+ o,
448
+ 8,
449
+ "."
450
+ /* TokenChars.LinkedDot */
451
+ );
452
+ case ":":
453
+ return M(r), r.next(), O(
454
+ o,
455
+ 9,
456
+ ":"
457
+ /* TokenChars.LinkedDelimiter */
458
+ );
459
+ default:
460
+ return h(r) ? (U = O(o, 1, $e(r)), o.braceNest = 0, o.inLinked = !1, U) : D(r, o) || H(r, o) ? (M(r), Ve(r, o)) : I(r, o) ? (M(r), O(o, 11, Nt(r))) : g(r, o) ? (M(r), re === "{" ? Ue(r, o) || U : O(o, 10, yt(r))) : (b === 7 && T(K.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, Je(r, o));
461
+ }
462
+ }
463
+ function Je(r, o) {
464
+ let b = {
465
+ type: 13
466
+ /* TokenTypes.EOF */
467
+ };
468
+ if (o.braceNest > 0)
469
+ return Ue(r, o) || w(o);
470
+ if (o.inLinked)
471
+ return Ve(r, o) || w(o);
472
+ switch (r.currentChar()) {
473
+ case "{":
474
+ return Ue(r, o) || w(o);
475
+ case "}":
476
+ return T(K.UNBALANCED_CLOSING_BRACE, a(), 0), r.next(), O(
477
+ o,
478
+ 3,
479
+ "}"
480
+ /* TokenChars.BraceRight */
481
+ );
482
+ case "@":
483
+ return Ve(r, o) || w(o);
484
+ default: {
485
+ if (h(r))
486
+ return b = O(o, 1, $e(r)), o.braceNest = 0, o.inLinked = !1, b;
487
+ if (R(r))
488
+ return O(o, 0, Y(r));
489
+ break;
490
+ }
491
+ }
492
+ return b;
493
+ }
494
+ function kt() {
495
+ const { currentType: r, offset: o, startLoc: b, endLoc: U } = m;
496
+ return m.lastType = r, m.lastOffset = o, m.lastStartLoc = b, m.lastEndLoc = U, m.offset = l(), m.startLoc = a(), s.currentChar() === Ae ? O(
497
+ m,
498
+ 13
499
+ /* TokenTypes.EOF */
500
+ ) : Je(s, m);
501
+ }
502
+ return {
503
+ nextToken: kt,
504
+ currentOffset: l,
505
+ currentPosition: a,
506
+ context: p
507
+ };
508
+ }
509
+ const Ss = "parser", Ds = /(?:\\\\|\\'|\\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 ws(e = {}) {
523
+ const t = e.location !== !1, { onError: n } = e;
524
+ function s(i, d, L, _, ...S) {
525
+ const D = i.currentPosition();
526
+ if (D.offset += _, D.column += _, n) {
527
+ const I = t ? Mt(L, D) : null, H = ht(d, I, {
528
+ domain: Ss,
529
+ args: S
530
+ });
531
+ n(H);
532
+ }
533
+ }
534
+ function l(i, d, L) {
535
+ const _ = { type: i };
536
+ return t && (_.start = d, _.end = d, _.loc = { start: L, end: L }), _;
537
+ }
538
+ function a(i, d, L, _) {
539
+ t && (i.end = d, i.loc && (i.loc.end = L));
540
+ }
541
+ function c(i, d) {
542
+ const L = i.context(), _ = l(3, L.offset, L.startLoc);
543
+ return _.value = d, a(_, i.currentOffset(), i.currentPosition()), _;
544
+ }
545
+ function u(i, d) {
546
+ const L = i.context(), { lastOffset: _, lastStartLoc: S } = L, D = l(5, _, S);
547
+ return D.index = parseInt(d, 10), i.nextToken(), a(D, i.currentOffset(), i.currentPosition()), D;
548
+ }
549
+ function m(i, d) {
550
+ const L = i.context(), { lastOffset: _, lastStartLoc: S } = L, D = l(4, _, S);
551
+ return D.key = d, i.nextToken(), a(D, i.currentOffset(), i.currentPosition()), D;
552
+ }
553
+ function p(i, d) {
554
+ const L = i.context(), { lastOffset: _, lastStartLoc: S } = L, D = l(9, _, S);
555
+ return D.value = d.replace(Ds, Ms), i.nextToken(), a(D, i.currentOffset(), i.currentPosition()), D;
556
+ }
557
+ function y(i) {
558
+ const d = i.nextToken(), L = i.context(), { lastOffset: _, lastStartLoc: S } = L, D = l(8, _, S);
559
+ return d.type !== 11 ? (s(i, K.UNEXPECTED_EMPTY_LINKED_MODIFIER, L.lastStartLoc, 0), D.value = "", a(D, _, S), {
560
+ nextConsumeToken: d,
561
+ node: D
562
+ }) : (d.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, Ne(d)), D.value = d.value || "", a(D, i.currentOffset(), i.currentPosition()), {
563
+ node: D
564
+ });
565
+ }
566
+ function T(i, d) {
567
+ const L = i.context(), _ = l(7, L.offset, L.startLoc);
568
+ return _.value = d, a(_, i.currentOffset(), i.currentPosition()), _;
569
+ }
570
+ function O(i) {
571
+ const d = i.context(), L = l(6, d.offset, d.startLoc);
572
+ let _ = i.nextToken();
573
+ if (_.type === 8) {
574
+ const S = y(i);
575
+ L.modifier = S.node, _ = S.nextConsumeToken || i.nextToken();
576
+ }
577
+ switch (_.type !== 9 && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(_)), _ = i.nextToken(), _.type === 2 && (_ = i.nextToken()), _.type) {
578
+ case 10:
579
+ _.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(_)), L.key = T(i, _.value || "");
580
+ break;
581
+ case 4:
582
+ _.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(_)), L.key = m(i, _.value || "");
583
+ break;
584
+ case 5:
585
+ _.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(_)), L.key = u(i, _.value || "");
586
+ break;
587
+ case 6:
588
+ _.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(_)), L.key = p(i, _.value || "");
589
+ break;
590
+ default: {
591
+ s(i, K.UNEXPECTED_EMPTY_LINKED_KEY, d.lastStartLoc, 0);
592
+ const S = i.context(), D = l(7, S.offset, S.startLoc);
593
+ return D.value = "", a(D, S.offset, S.startLoc), L.key = D, a(L, S.offset, S.startLoc), {
594
+ nextConsumeToken: _,
595
+ node: L
596
+ };
597
+ }
598
+ }
599
+ return a(L, i.currentOffset(), i.currentPosition()), {
600
+ node: L
601
+ };
602
+ }
603
+ function w(i) {
604
+ const d = i.context(), L = d.currentType === 1 ? i.currentOffset() : d.offset, _ = d.currentType === 1 ? d.endLoc : d.startLoc, S = l(2, L, _);
605
+ S.items = [];
606
+ let D = null;
607
+ do {
608
+ const g = D || i.nextToken();
609
+ switch (D = null, g.type) {
610
+ case 0:
611
+ g.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(g)), S.items.push(c(i, g.value || ""));
612
+ break;
613
+ case 5:
614
+ g.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(g)), S.items.push(u(i, g.value || ""));
615
+ break;
616
+ case 4:
617
+ g.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(g)), S.items.push(m(i, g.value || ""));
618
+ break;
619
+ case 6:
620
+ g.value == null && s(i, K.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(g)), S.items.push(p(i, g.value || ""));
621
+ break;
622
+ case 7: {
623
+ const h = O(i);
624
+ S.items.push(h.node), D = h.nextConsumeToken || null;
625
+ break;
626
+ }
627
+ }
628
+ } while (d.currentType !== 13 && d.currentType !== 1);
629
+ const I = d.currentType === 1 ? d.lastOffset : i.currentOffset(), H = d.currentType === 1 ? d.lastEndLoc : i.currentPosition();
630
+ return a(S, I, H), S;
631
+ }
632
+ function V(i, d, L, _) {
633
+ const S = i.context();
634
+ let D = _.items.length === 0;
635
+ const I = l(1, d, L);
636
+ I.cases = [], I.cases.push(_);
637
+ do {
638
+ const H = w(i);
639
+ D || (D = H.items.length === 0), I.cases.push(H);
640
+ } while (S.currentType !== 13);
641
+ return D && s(i, K.MUST_HAVE_MESSAGES_IN_PLURAL, L, 0), a(I, i.currentOffset(), i.currentPosition()), I;
642
+ }
643
+ function C(i) {
644
+ const d = i.context(), { offset: L, startLoc: _ } = d, S = w(i);
645
+ return d.currentType === 13 ? S : V(i, L, _, S);
646
+ }
647
+ function M(i) {
648
+ const d = As(i, fe({}, e)), L = d.context(), _ = l(0, L.offset, L.startLoc);
649
+ return t && _.loc && (_.loc.source = i), _.body = C(d), e.onCacheKey && (_.cacheKey = e.onCacheKey(i)), L.currentType !== 13 && s(d, K.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, i[L.offset] || ""), a(_, d.currentOffset(), d.currentPosition()), _;
650
+ }
651
+ return { parse: M };
652
+ }
653
+ function Ne(e) {
654
+ if (e.type === 13)
655
+ return "EOF";
656
+ const t = (e.value || "").replace(/\r?\n/gu, "\\n");
657
+ return t.length > 10 ? t.slice(0, 9) + "…" : t;
658
+ }
659
+ function Ps(e, t = {}) {
660
+ const n = {
661
+ ast: e,
662
+ helpers: /* @__PURE__ */ new Set()
663
+ };
664
+ return { context: () => n, helper: (a) => (n.helpers.add(a), a) };
665
+ }
666
+ function sn(e, t) {
667
+ for (let n = 0; n < e.length; n++)
668
+ Ht(e[n], t);
669
+ }
670
+ function Ht(e, t) {
671
+ switch (e.type) {
672
+ case 1:
673
+ sn(e.cases, t), t.helper(
674
+ "plural"
675
+ /* HelperNameMap.PLURAL */
676
+ );
677
+ break;
678
+ case 2:
679
+ sn(e.items, t);
680
+ break;
681
+ case 6: {
682
+ 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 Fs(e, t = {}) {
712
+ const n = Ps(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 js(e) {
721
+ const t = e.body;
722
+ return t.type === 2 ? an(t) : t.cases.forEach((n) => an(n)), e;
723
+ }
724
+ function an(e) {
725
+ if (e.items.length === 1) {
726
+ const t = e.items[0];
727
+ (t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
728
+ } else {
729
+ const t = [];
730
+ for (let n = 0; n < e.items.length; n++) {
731
+ const s = e.items[n];
732
+ if (!(s.type === 3 || s.type === 9) || s.value == null)
733
+ break;
734
+ t.push(s.value);
735
+ }
736
+ if (t.length === e.items.length) {
737
+ e.static = Yt(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 We(e) {
746
+ switch (e.t = e.type, e.type) {
747
+ case 0: {
748
+ const t = e;
749
+ We(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
+ We(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
+ We(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
+ We(t.key), t.k = t.key, delete t.key, t.modifier && (We(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 Us(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 u = () => c;
806
+ function m(C, M) {
807
+ c.code += C;
808
+ }
809
+ function p(C, M = !0) {
810
+ const i = M ? s : "";
811
+ m(l ? i + " ".repeat(C) : i);
812
+ }
813
+ function y(C = !0) {
814
+ const M = ++c.indentLevel;
815
+ C && p(M);
816
+ }
817
+ function T(C = !0) {
818
+ const M = --c.indentLevel;
819
+ C && p(M);
820
+ }
821
+ function O() {
822
+ p(c.indentLevel);
823
+ }
824
+ return {
825
+ context: u,
826
+ push: m,
827
+ indent: y,
828
+ deindent: T,
829
+ newline: O,
830
+ helper: (C) => `_${C}`,
831
+ needIndent: () => c.needIndent
832
+ };
833
+ }
834
+ function Vs(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 Ws(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
+ Ws(e, t);
876
+ break;
877
+ case 2:
878
+ Gs(e, t);
879
+ break;
880
+ case 6:
881
+ Vs(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 xs = (e, t = {}) => {
916
+ const n = P(t.mode) ? t.mode : "normal", s = P(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 || [], u = Us(e, {
920
+ filename: s,
921
+ breakLineCode: l,
922
+ needIndent: a
923
+ });
924
+ u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), c.length > 0 && (u.push(`const { ${Yt(c.map((y) => `${y}: _${y}`), ", ")} } = ctx`), u.newline()), u.push("return "), xe(u, e), u.deindent(a), u.push("}"), delete e.helpers;
925
+ const { code: m, map: p } = u.context();
926
+ return {
927
+ ast: e,
928
+ code: m,
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, u = ws(n).parse(e);
935
+ return s ? (a && js(u), l && We(u), { ast: u, code: "" }) : (Fs(u, n), xs(u, n));
936
+ }
937
+ var Ys = { env: { NODE_ENV: "production" } };
938
+ function Hs() {
939
+ typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Fe().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Fe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
940
+ }
941
+ function Rt(e) {
942
+ return (n) => Bs(n, e);
943
+ }
944
+ function Bs(e, t) {
945
+ const n = Js(t);
946
+ if (n == null)
947
+ throw Qe(
948
+ 0
949
+ /* NodeTypes.Resource */
950
+ );
951
+ if (Bt(n) === 1) {
952
+ const a = zs(n);
953
+ return e.plural(a.reduce((c, u) => [
954
+ ...c,
955
+ rn(e, u)
956
+ ], []));
957
+ } else
958
+ return rn(e, n);
959
+ }
960
+ const $s = ["b", "body"];
961
+ function Js(e) {
962
+ return Me(e, $s);
963
+ }
964
+ const Ks = ["c", "cases"];
965
+ function zs(e) {
966
+ return Me(e, Ks, []);
967
+ }
968
+ function rn(e, t) {
969
+ const n = qs(t);
970
+ if (n != null)
971
+ return e.type === "text" ? n : e.normalize([n]);
972
+ {
973
+ const s = ta(t).reduce((l, a) => [...l, wt(e, a)], []);
974
+ return e.normalize(s);
975
+ }
976
+ }
977
+ const Qs = ["s", "static"];
978
+ function qs(e) {
979
+ return Me(e, Qs);
980
+ }
981
+ const ea = ["i", "items"];
982
+ function ta(e) {
983
+ return Me(e, ea, []);
984
+ }
985
+ function wt(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 (Ee(s, "k") && s.k)
995
+ return e.interpolate(e.named(s.k));
996
+ if (Ee(s, "key") && s.key)
997
+ return e.interpolate(e.named(s.key));
998
+ throw Qe(n);
999
+ }
1000
+ case 5: {
1001
+ const s = t;
1002
+ if (Ee(s, "i") && de(s.i))
1003
+ return e.interpolate(e.list(s.i));
1004
+ if (Ee(s, "index") && de(s.index))
1005
+ return e.interpolate(e.list(s.index));
1006
+ throw Qe(n);
1007
+ }
1008
+ case 6: {
1009
+ const s = t, l = ra(s), a = oa(s);
1010
+ return e.linked(wt(e, a), l ? wt(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 na = ["t", "type"];
1021
+ function Bt(e) {
1022
+ return Me(e, na);
1023
+ }
1024
+ const sa = ["v", "value"];
1025
+ function lt(e, t) {
1026
+ const n = Me(e, sa);
1027
+ if (n)
1028
+ return n;
1029
+ throw Qe(t);
1030
+ }
1031
+ const aa = ["m", "modifier"];
1032
+ function ra(e) {
1033
+ return Me(e, aa);
1034
+ }
1035
+ const la = ["k", "key"];
1036
+ function oa(e) {
1037
+ const t = Me(e, la);
1038
+ if (t)
1039
+ return t;
1040
+ throw Qe(
1041
+ 6
1042
+ /* NodeTypes.Linked */
1043
+ );
1044
+ }
1045
+ function Me(e, t, n) {
1046
+ for (let s = 0; s < t.length; s++) {
1047
+ const l = t[s];
1048
+ if (Ee(e, l) && e[l] != null)
1049
+ return e[l];
1050
+ }
1051
+ return n;
1052
+ }
1053
+ function Qe(e) {
1054
+ return new Error(`unhandled node type: ${e}`);
1055
+ }
1056
+ const ia = (e) => e;
1057
+ let ot = q();
1058
+ function Xe(e) {
1059
+ return J(e) && Bt(e) === 0 && (Ee(e, "b") || Ee(e, "body"));
1060
+ }
1061
+ function ca(e, t = {}) {
1062
+ let n = !1;
1063
+ const s = t.onError || ys;
1064
+ return t.onError = (l) => {
1065
+ n = !0, s(l);
1066
+ }, { ...Xs(e, t), detectError: n };
1067
+ }
1068
+ // @__NO_SIDE_EFFECTS__
1069
+ function ua(e, t) {
1070
+ if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && P(e)) {
1071
+ ce(t.warnHtmlMessage) && t.warnHtmlMessage;
1072
+ const s = (t.onCacheKey || ia)(e), l = ot[s];
1073
+ if (l)
1074
+ return l;
1075
+ const { ast: a, detectError: c } = ca(e, {
1076
+ ...t,
1077
+ location: Ys.env.NODE_ENV !== "production",
1078
+ jit: !0
1079
+ }), u = Rt(a);
1080
+ return c ? u : ot[s] = u;
1081
+ } else {
1082
+ const n = e.cacheKey;
1083
+ if (n) {
1084
+ const s = ot[n];
1085
+ return s || (ot[n] = Rt(e));
1086
+ } else
1087
+ return Rt(e);
1088
+ }
1089
+ }
1090
+ let qe = null;
1091
+ function ma(e) {
1092
+ qe = e;
1093
+ }
1094
+ function da(e, t, n) {
1095
+ qe && qe.emit("i18n:init", {
1096
+ timestamp: Date.now(),
1097
+ i18n: e,
1098
+ version: t,
1099
+ meta: n
1100
+ });
1101
+ }
1102
+ const fa = /* @__PURE__ */ _a("function:translate");
1103
+ function _a(e) {
1104
+ return (t) => qe && qe.emit(e, t);
1105
+ }
1106
+ const Re = {
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
+ }, pa = 24;
1115
+ function Ce(e) {
1116
+ return ht(e, null, void 0);
1117
+ }
1118
+ function $t(e, t) {
1119
+ return t.locale != null ? ln(t.locale) : ln(e.locale);
1120
+ }
1121
+ let Ct;
1122
+ function ln(e) {
1123
+ if (P(e))
1124
+ return e;
1125
+ if (se(e)) {
1126
+ if (e.resolvedOnce && Ct != null)
1127
+ return Ct;
1128
+ if (e.constructor.name === "Function") {
1129
+ const t = e();
1130
+ if (hs(t))
1131
+ throw Ce(Re.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
1132
+ return Ct = t;
1133
+ } else
1134
+ throw Ce(Re.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
1135
+ } else
1136
+ throw Ce(Re.NOT_SUPPORT_LOCALE_TYPE);
1137
+ }
1138
+ function ba(e, t, n) {
1139
+ return [.../* @__PURE__ */ new Set([
1140
+ n,
1141
+ ...ue(t) ? t : J(t) ? Object.keys(t) : P(t) ? [t] : [n]
1142
+ ])];
1143
+ }
1144
+ function Dn(e, t, n) {
1145
+ const s = P(n) ? n : pt, 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 = on(a, c, t);
1153
+ const u = ue(t) || !$(t) ? t : t.default ? t.default : null;
1154
+ c = P(u) ? [u] : u, ue(c) && on(a, c, !1), l.__localeChainCache.set(s, a);
1155
+ }
1156
+ return a;
1157
+ }
1158
+ function on(e, t, n) {
1159
+ let s = !0;
1160
+ for (let l = 0; l < t.length && ce(s); l++) {
1161
+ const a = t[l];
1162
+ P(a) && (s = ga(e, t[l], n));
1163
+ }
1164
+ return s;
1165
+ }
1166
+ function ga(e, t, n) {
1167
+ let s;
1168
+ const l = t.split("-");
1169
+ do {
1170
+ const a = l.join("-");
1171
+ s = ha(e, a, n), l.splice(-1, 1);
1172
+ } while (l.length && s === !0);
1173
+ return s;
1174
+ }
1175
+ function ha(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) || $(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 va = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
1346
+ function Ia(e) {
1347
+ return va.test(e);
1348
+ }
1349
+ function Ea(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 ya(e) {
1379
+ const t = e.trim();
1380
+ return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Ia(t) ? Ea(t) : "*" + t;
1381
+ }
1382
+ function ka(e) {
1383
+ const t = [];
1384
+ let n = -1, s = 0, l = 0, a, c, u, m, p, y, T;
1385
+ const O = [];
1386
+ O[
1387
+ 0
1388
+ /* Actions.APPEND */
1389
+ ] = () => {
1390
+ c === void 0 ? c = u : c += u;
1391
+ }, O[
1392
+ 1
1393
+ /* Actions.PUSH */
1394
+ ] = () => {
1395
+ c !== void 0 && (t.push(c), c = void 0);
1396
+ }, O[
1397
+ 2
1398
+ /* Actions.INC_SUB_PATH_DEPTH */
1399
+ ] = () => {
1400
+ O[
1401
+ 0
1402
+ /* Actions.APPEND */
1403
+ ](), l++;
1404
+ }, O[
1405
+ 3
1406
+ /* Actions.PUSH_SUB_PATH */
1407
+ ] = () => {
1408
+ if (l > 0)
1409
+ l--, s = 4, O[
1410
+ 0
1411
+ /* Actions.APPEND */
1412
+ ]();
1413
+ else {
1414
+ if (l = 0, c === void 0 || (c = ya(c), c === !1))
1415
+ return !1;
1416
+ O[
1417
+ 1
1418
+ /* Actions.PUSH */
1419
+ ]();
1420
+ }
1421
+ };
1422
+ function w() {
1423
+ const V = e[n + 1];
1424
+ if (s === 5 && V === "'" || s === 6 && V === '"')
1425
+ return n++, u = "\\" + V, O[
1426
+ 0
1427
+ /* Actions.APPEND */
1428
+ ](), !0;
1429
+ }
1430
+ for (; s !== null; )
1431
+ if (n++, a = e[n], !(a === "\\" && w())) {
1432
+ if (m = Na(a), T = we[s], p = T[m] || T.l || 8, p === 8 || (s = p[0], p[1] !== void 0 && (y = O[p[1]], y && (u = a, y() === !1))))
1433
+ return;
1434
+ if (s === 7)
1435
+ return t;
1436
+ }
1437
+ }
1438
+ const cn = /* @__PURE__ */ new Map();
1439
+ function Ta(e, t) {
1440
+ return J(e) ? e[t] : null;
1441
+ }
1442
+ function Oa(e, t) {
1443
+ if (!J(e))
1444
+ return null;
1445
+ let n = cn.get(t);
1446
+ if (n || (n = ka(t), n && cn.set(t, n)), !n)
1447
+ return null;
1448
+ const s = n.length;
1449
+ let l = e, a = 0;
1450
+ for (; a < s; ) {
1451
+ const c = l[n[a]];
1452
+ if (c === void 0 || se(l))
1453
+ return null;
1454
+ l = c, a++;
1455
+ }
1456
+ return l;
1457
+ }
1458
+ const La = "10.0.5", vt = -1, pt = "en-US", un = "", mn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
1459
+ function Ra() {
1460
+ return {
1461
+ upper: (e, t) => t === "text" && P(e) ? e.toUpperCase() : t === "vnode" && J(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
1462
+ lower: (e, t) => t === "text" && P(e) ? e.toLowerCase() : t === "vnode" && J(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
1463
+ capitalize: (e, t) => t === "text" && P(e) ? mn(e) : t === "vnode" && J(e) && "__v_isVNode" in e ? mn(e.children) : e
1464
+ };
1465
+ }
1466
+ let Mn;
1467
+ function Ca(e) {
1468
+ Mn = e;
1469
+ }
1470
+ let wn;
1471
+ function Aa(e) {
1472
+ wn = e;
1473
+ }
1474
+ let Pn;
1475
+ function Sa(e) {
1476
+ Pn = e;
1477
+ }
1478
+ let Fn = null;
1479
+ const Da = /* @__NO_SIDE_EFFECTS__ */ (e) => {
1480
+ Fn = e;
1481
+ }, Ma = /* @__NO_SIDE_EFFECTS__ */ () => Fn;
1482
+ let jn = null;
1483
+ const dn = (e) => {
1484
+ jn = e;
1485
+ }, wa = () => jn;
1486
+ let fn = 0;
1487
+ function Pa(e = {}) {
1488
+ const t = se(e.onWarn) ? e.onWarn : Is, n = P(e.version) ? e.version : La, s = P(e.locale) || se(e.locale) ? e.locale : pt, l = se(s) ? pt : s, a = ue(e.fallbackLocale) || $(e.fallbackLocale) || P(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, c = $(e.messages) ? e.messages : At(l), u = $(e.datetimeFormats) ? e.datetimeFormats : At(l), m = $(e.numberFormats) ? e.numberFormats : At(l), p = fe(q(), e.modifiers, Ra()), y = e.pluralRules || q(), T = se(e.missing) ? e.missing : null, O = ce(e.missingWarn) || _t(e.missingWarn) ? e.missingWarn : !0, w = ce(e.fallbackWarn) || _t(e.fallbackWarn) ? e.fallbackWarn : !0, V = !!e.fallbackFormat, C = !!e.unresolving, M = se(e.postTranslation) ? e.postTranslation : null, i = $(e.processor) ? e.processor : null, d = ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, L = !!e.escapeParameter, _ = se(e.messageCompiler) ? e.messageCompiler : Mn, S = se(e.messageResolver) ? e.messageResolver : wn || Ta, D = se(e.localeFallbacker) ? e.localeFallbacker : Pn || ba, I = J(e.fallbackContext) ? e.fallbackContext : void 0, H = e, g = J(H.__datetimeFormatters) ? H.__datetimeFormatters : /* @__PURE__ */ new Map(), h = J(H.__numberFormatters) ? H.__numberFormatters : /* @__PURE__ */ new Map(), R = J(H.__meta) ? H.__meta : {};
1489
+ fn++;
1490
+ const E = {
1491
+ version: n,
1492
+ cid: fn,
1493
+ locale: s,
1494
+ fallbackLocale: a,
1495
+ messages: c,
1496
+ modifiers: p,
1497
+ pluralRules: y,
1498
+ missing: T,
1499
+ missingWarn: O,
1500
+ fallbackWarn: w,
1501
+ fallbackFormat: V,
1502
+ unresolving: C,
1503
+ postTranslation: M,
1504
+ processor: i,
1505
+ warnHtmlMessage: d,
1506
+ escapeParameter: L,
1507
+ messageCompiler: _,
1508
+ messageResolver: S,
1509
+ localeFallbacker: D,
1510
+ fallbackContext: I,
1511
+ onWarn: t,
1512
+ __meta: R
1513
+ };
1514
+ return E.datetimeFormats = u, E.numberFormats = m, E.__datetimeFormatters = g, E.__numberFormatters = h, __INTLIFY_PROD_DEVTOOLS__ && da(E, n, R), E;
1515
+ }
1516
+ const At = (e) => ({ [e]: q() });
1517
+ function Jt(e, t, n, s, l) {
1518
+ const { missing: a, onWarn: c } = e;
1519
+ if (a !== null) {
1520
+ const u = a(e, n, t, l);
1521
+ return P(u) ? u : t;
1522
+ } else
1523
+ return t;
1524
+ }
1525
+ function Ke(e, t, n) {
1526
+ const s = e;
1527
+ s.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
1528
+ }
1529
+ function Fa(e, t) {
1530
+ return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
1531
+ }
1532
+ function ja(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 (Fa(e, t[s]))
1538
+ return !0;
1539
+ return !1;
1540
+ }
1541
+ function _n(e, ...t) {
1542
+ const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __datetimeFormatters: u } = e, [m, p, y, T] = Pt(...t), O = ce(y.missingWarn) ? y.missingWarn : e.missingWarn;
1543
+ ce(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
1544
+ const w = !!y.part, V = $t(e, y), C = c(
1545
+ e,
1546
+ // eslint-disable-line @typescript-eslint/no-explicit-any
1547
+ l,
1548
+ V
1549
+ );
1550
+ if (!P(m) || m === "")
1551
+ return new Intl.DateTimeFormat(V, T).format(p);
1552
+ let M = {}, i, d = null;
1553
+ const L = "datetime format";
1554
+ for (let D = 0; D < C.length && (i = C[D], M = n[i] || {}, d = M[m], !$(d)); D++)
1555
+ Jt(e, m, i, O, L);
1556
+ if (!$(d) || !P(i))
1557
+ return s ? vt : m;
1558
+ let _ = `${i}__${m}`;
1559
+ gt(T) || (_ = `${_}__${JSON.stringify(T)}`);
1560
+ let S = u.get(_);
1561
+ return S || (S = new Intl.DateTimeFormat(i, fe({}, d, T)), u.set(_, S)), w ? S.formatToParts(p) : S.format(p);
1562
+ }
1563
+ const Un = [
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(), u;
1588
+ if (P(t)) {
1589
+ const m = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
1590
+ if (!m)
1591
+ throw Ce(Re.INVALID_ISO_DATE_ARGUMENT);
1592
+ const p = m[3] ? m[3].trim().startsWith("T") ? `${m[1].trim()}${m[3].trim()}` : `${m[1].trim()}T${m[3].trim()}` : m[1].trim();
1593
+ u = new Date(p);
1594
+ try {
1595
+ u.toISOString();
1596
+ } catch {
1597
+ throw Ce(Re.INVALID_ISO_DATE_ARGUMENT);
1598
+ }
1599
+ } else if (ps(t)) {
1600
+ if (isNaN(t.getTime()))
1601
+ throw Ce(Re.INVALID_DATE_ARGUMENT);
1602
+ u = t;
1603
+ } else if (de(t))
1604
+ u = t;
1605
+ else
1606
+ throw Ce(Re.INVALID_ARGUMENT);
1607
+ return P(n) ? a.key = n : $(n) && Object.keys(n).forEach((m) => {
1608
+ Un.includes(m) ? c[m] = n[m] : a[m] = n[m];
1609
+ }), P(s) ? a.locale = s : $(s) && (c = s), $(l) && (c = l), [a.key || "", u, a, c];
1610
+ }
1611
+ function pn(e, t, n) {
1612
+ const s = e;
1613
+ for (const l in n) {
1614
+ const a = `${t}__${l}`;
1615
+ s.__datetimeFormatters.has(a) && s.__datetimeFormatters.delete(a);
1616
+ }
1617
+ }
1618
+ function bn(e, ...t) {
1619
+ const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __numberFormatters: u } = e, [m, p, y, T] = Ft(...t), O = ce(y.missingWarn) ? y.missingWarn : e.missingWarn;
1620
+ ce(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
1621
+ const w = !!y.part, V = $t(e, y), C = c(
1622
+ e,
1623
+ // eslint-disable-line @typescript-eslint/no-explicit-any
1624
+ l,
1625
+ V
1626
+ );
1627
+ if (!P(m) || m === "")
1628
+ return new Intl.NumberFormat(V, T).format(p);
1629
+ let M = {}, i, d = null;
1630
+ const L = "number format";
1631
+ for (let D = 0; D < C.length && (i = C[D], M = n[i] || {}, d = M[m], !$(d)); D++)
1632
+ Jt(e, m, i, O, L);
1633
+ if (!$(d) || !P(i))
1634
+ return s ? vt : m;
1635
+ let _ = `${i}__${m}`;
1636
+ gt(T) || (_ = `${_}__${JSON.stringify(T)}`);
1637
+ let S = u.get(_);
1638
+ return S || (S = new Intl.NumberFormat(i, fe({}, d, T)), u.set(_, S)), w ? S.formatToParts(p) : S.format(p);
1639
+ }
1640
+ const Vn = [
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 (!de(t))
1666
+ throw Ce(Re.INVALID_ARGUMENT);
1667
+ const u = t;
1668
+ return P(n) ? a.key = n : $(n) && Object.keys(n).forEach((m) => {
1669
+ Vn.includes(m) ? c[m] = n[m] : a[m] = n[m];
1670
+ }), P(s) ? a.locale = s : $(s) && (c = s), $(l) && (c = l), [a.key || "", u, a, c];
1671
+ }
1672
+ function gn(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 Ua = (e) => e, Va = (e) => "", Ga = "text", Wa = (e) => e.length === 0 ? "" : Yt(e), Za = vs;
1680
+ function hn(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 xa(e) {
1684
+ const t = de(e.pluralIndex) ? e.pluralIndex : -1;
1685
+ return e.named && (de(e.named.count) || de(e.named.n)) ? de(e.named.count) ? e.named.count : de(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 Ya(e = {}) {
1691
+ const t = e.locale, n = xa(e), s = J(e.pluralRules) && P(t) && se(e.pluralRules[t]) ? e.pluralRules[t] : hn, l = J(e.pluralRules) && P(t) && se(e.pluralRules[t]) ? hn : void 0, a = (i) => i[s(n, i.length, l)], c = e.list || [], u = (i) => c[i], m = e.named || q();
1692
+ de(e.pluralIndex) && Xa(n, m);
1693
+ const p = (i) => m[i];
1694
+ function y(i, d) {
1695
+ const L = se(e.messages) ? e.messages(i, !!d) : J(e.messages) ? e.messages[i] : !1;
1696
+ return L || (e.parent ? e.parent.message(i) : Va);
1697
+ }
1698
+ const T = (i) => e.modifiers ? e.modifiers[i] : Ua, O = $(e.processor) && se(e.processor.normalize) ? e.processor.normalize : Wa, w = $(e.processor) && se(e.processor.interpolate) ? e.processor.interpolate : Za, V = $(e.processor) && P(e.processor.type) ? e.processor.type : Ga, M = {
1699
+ list: u,
1700
+ named: p,
1701
+ plural: a,
1702
+ linked: (i, ...d) => {
1703
+ const [L, _] = d;
1704
+ let S = "text", D = "";
1705
+ d.length === 1 ? J(L) ? (D = L.modifier || D, S = L.type || S) : P(L) && (D = L || D) : d.length === 2 && (P(L) && (D = L || D), P(_) && (S = _ || S));
1706
+ const I = y(i, !0)(M), H = (
1707
+ // The message in vnode resolved with linked are returned as an array by processor.nomalize
1708
+ S === "vnode" && ue(I) && D ? I[0] : I
1709
+ );
1710
+ return D ? T(D)(H, S) : H;
1711
+ },
1712
+ message: y,
1713
+ type: V,
1714
+ interpolate: w,
1715
+ normalize: O,
1716
+ values: fe(q(), c, m)
1717
+ };
1718
+ return M;
1719
+ }
1720
+ const vn = () => "", ve = (e) => se(e);
1721
+ function In(e, ...t) {
1722
+ const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: c, messages: u } = e, [m, p] = jt(...t), y = ce(p.missingWarn) ? p.missingWarn : e.missingWarn, T = ce(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, O = ce(p.escapeParameter) ? p.escapeParameter : e.escapeParameter, w = !!p.resolvedMessage, V = P(p.default) || ce(p.default) ? ce(p.default) ? a ? m : () => m : p.default : n ? a ? m : () => m : null, C = n || V != null && (P(V) || se(V)), M = $t(e, p);
1723
+ O && Ha(p);
1724
+ let [i, d, L] = w ? [
1725
+ m,
1726
+ M,
1727
+ u[M] || q()
1728
+ ] : Gn(e, m, M, c, T, y), _ = i, S = m;
1729
+ if (!w && !(P(_) || Xe(_) || ve(_)) && C && (_ = V, S = _), !w && (!(P(_) || Xe(_) || ve(_)) || !P(d)))
1730
+ return l ? vt : m;
1731
+ let D = !1;
1732
+ const I = () => {
1733
+ D = !0;
1734
+ }, H = ve(_) ? _ : Wn(e, m, d, _, S, I);
1735
+ if (D)
1736
+ return _;
1737
+ const g = Ja(e, d, L, p), h = Ya(g), R = Ba(e, H, h), E = s ? s(R, m) : R;
1738
+ if (__INTLIFY_PROD_DEVTOOLS__) {
1739
+ const F = {
1740
+ timestamp: Date.now(),
1741
+ key: P(m) ? m : ve(_) ? _.key : "",
1742
+ locale: d || (ve(_) ? _.locale : ""),
1743
+ format: P(_) ? _ : ve(_) ? _.source : "",
1744
+ message: E
1745
+ };
1746
+ F.meta = fe({}, e.__meta, /* @__PURE__ */ Ma() || {}), fa(F);
1747
+ }
1748
+ return E;
1749
+ }
1750
+ function Ha(e) {
1751
+ ue(e.list) ? e.list = e.list.map((t) => P(t) ? tn(t) : t) : J(e.named) && Object.keys(e.named).forEach((t) => {
1752
+ P(e.named[t]) && (e.named[t] = tn(e.named[t]));
1753
+ });
1754
+ }
1755
+ function Gn(e, t, n, s, l, a) {
1756
+ const { messages: c, onWarn: u, messageResolver: m, localeFallbacker: p } = e, y = p(e, s, n);
1757
+ let T = q(), O, w = null;
1758
+ const V = "translate";
1759
+ for (let C = 0; C < y.length && (O = y[C], T = c[O] || q(), (w = m(T, t)) === null && (w = T[t]), !(P(w) || Xe(w) || ve(w))); C++)
1760
+ if (!ja(O, y)) {
1761
+ const M = Jt(
1762
+ e,
1763
+ // eslint-disable-line @typescript-eslint/no-explicit-any
1764
+ t,
1765
+ O,
1766
+ a,
1767
+ V
1768
+ );
1769
+ M !== t && (w = M);
1770
+ }
1771
+ return [w, O, T];
1772
+ }
1773
+ function Wn(e, t, n, s, l, a) {
1774
+ const { messageCompiler: c, warnHtmlMessage: u } = 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 m = c(s, $a(e, n, l, s, u, a));
1784
+ return m.locale = n, m.key = t, m.source = s, m;
1785
+ }
1786
+ function Ba(e, t, n) {
1787
+ return t(n);
1788
+ }
1789
+ function jt(...e) {
1790
+ const [t, n, s] = e, l = q();
1791
+ if (!P(t) && !de(t) && !ve(t) && !Xe(t))
1792
+ throw Ce(Re.INVALID_ARGUMENT);
1793
+ const a = de(t) ? String(t) : (ve(t), t);
1794
+ return de(n) ? l.plural = n : P(n) ? l.default = n : $(n) && !gt(n) ? l.named = n : ue(n) && (l.list = n), de(s) ? l.plural = s : P(s) ? l.default = s : $(s) && fe(l, s), [a, l];
1795
+ }
1796
+ function $a(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) => fs(t, n, c)
1805
+ };
1806
+ }
1807
+ function Ja(e, t, n, s) {
1808
+ const { modifiers: l, pluralRules: a, messageResolver: c, fallbackLocale: u, fallbackWarn: m, missingWarn: p, fallbackContext: y } = e, O = {
1809
+ locale: t,
1810
+ modifiers: l,
1811
+ pluralRules: a,
1812
+ messages: (w, V) => {
1813
+ let C = c(n, w);
1814
+ if (C == null && (y || V)) {
1815
+ const [, , M] = Gn(
1816
+ y || e,
1817
+ // NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
1818
+ w,
1819
+ t,
1820
+ u,
1821
+ m,
1822
+ p
1823
+ );
1824
+ C = c(M, w);
1825
+ }
1826
+ if (P(C) || Xe(C)) {
1827
+ let M = !1;
1828
+ const d = Wn(e, w, t, C, w, () => {
1829
+ M = !0;
1830
+ });
1831
+ return M ? vn : d;
1832
+ } else return ve(C) ? C : vn;
1833
+ }
1834
+ };
1835
+ return e.processor && (O.processor = e.processor), s.list && (O.list = s.list), s.named && (O.named = s.named), de(s.plural) && (O.pluralIndex = s.plural), O;
1836
+ }
1837
+ Hs();
1838
+ var Ka = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_a045c1ac-d974-4bf0-a07d-66d69817a156", 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_a045c1ac-d974-4bf0-a07d-66d69817a156", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.2.0", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_files_0: "dist", npm_package_devDependencies_eslint_import_resolver_typescript: "^4.4.4", HOME: "/home/runner", npm_package_devDependencies__eslint_js: "^9.39.2", npm_package_devDependencies__typescript_eslint_parser: "^8.52.0", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_devDependencies_eslint_config_prettier: "^10.1.8", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.5.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "^1.29.10", npm_package_devDependencies_code_inspector_plugin: "^0.20.16", npm_package_devDependencies_npm_run_all2: "^6.0.6", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1868", ACTIONS_ORCHESTRATION_ID: "7849f5ab-9314-4645-8834-3ff37c4b8ddc.publish.publish.__default", npm_package_dependencies__feedmepos_ui_library: "^1.10.6", npm_package_dependencies_dayjs: "^1.11.10", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "VITE_TARGET_ENV=dev pnpm build:mf && pnpm build:dts", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.9.3", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^2.0.6", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260525.161.1", npm_package_scripts_dev: "vite", npm_package_devDependencies_prettier: "^3.7.4", npm_package_devDependencies_sass_embedded: "^1.93.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_devDependencies__vue_tsconfig: "^0.4.0", npm_package_devDependencies_eslint_plugin_import: "^2.32.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:15397", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.16", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^8.52.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.10/x64", GITHUB_RUN_ID: "26625915690", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "63a9df783c1b7d83be0869208fc1fb496b26dc79", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/feat/apply-figma-design-clean", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9mZWF0L2FwcGx5LWZpZ21hLWRlc2lnbi1jbGVhblwiLFwiUGVybWlzc2lvblwiOjN9LHtcIlNjb3BlXCI6XCJyZWZzL2hlYWRzL21haW5cIixcIlBlcm1pc3Npb25cIjoxfV0iLCJhY3NsIjoiMTAiLCJhdWQiOiJ2c286NmY5NmZhODktYjdiZi00ODc4LWJhZDMtODk4MDA2NTY2YjZlIiwiYmlsbGluZ19vd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsImV4cCI6MTc4MDA2NDIyMCwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiaWF0IjoxNzgwMDQyMDIwLCJpc3MiOiJodHRwczovL3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tIiwiam9iX2lkIjoiN2QwZTI5ZWUtMmQ3Ny01Yzg1LWI4ODEtNGI4N2JlY2VjOGUyIiwibmFtZWlkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwibmJmIjoxNzgwMDQxNzIwLCJvaWRjX2V4dHJhIjoie1wiYWN0b3JcIjpcIkNhc3RhLW1lcmVcIixcImFjdG9yX2lkXCI6XCI4MjI5ODAxN1wiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI3ODQ2MjQ5OTI4OVwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiMjIwZjdlNzZlMGRjYTA5M2M0NzUwMzdiOGU3YzBmNTUzYjYxNzIzOVwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL2ZlYXQvYXBwbHktZmlnbWEtZGVzaWduLWNsZWFuXCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjI2NjI1OTE1NjkwXCIsXCJydW5fbnVtYmVyXCI6XCIxMDBcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCI2M2E5ZGY3ODNjMWI3ZDgzYmUwODY5MjA4ZmMxZmI0OTZiMjZkYzc5XCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy9mZWF0L2FwcGx5LWZpZ21hLWRlc2lnbi1jbGVhblwiLFwid29ya2Zsb3dfc2hhXCI6XCI2M2E5ZGY3ODNjMWI3ZDgzYmUwODY5MjA4ZmMxZmI0OTZiMjZkYzc5XCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9mZWF0L2FwcGx5LWZpZ21hLWRlc2lnbi1jbGVhbiIsIm9yY2hfaWQiOiI3ODQ5ZjVhYi05MzE0LTQ2NDUtODgzNC0zZmYzN2M0YjhkZGMucHVibGlzaC5wdWJsaXNoLl9fZGVmYXVsdCIsIm93bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwicGxhbl9pZCI6Ijc4NDlmNWFiLTkzMTQtNDY0NS04ODM0LTNmZjM3YzRiOGRkYyIsInJlcG9zaXRvcnlfaWQiOiIxMTI0NjcyMjM1IiwicmVwb3NpdG9yeV9vd25lcl9pZCI6IjU0ODMxNTE1IiwicmVwb3NpdG9yeV92aXNpYmlsaXR5IjoicHJpdmF0ZSIsInJ1bl9pZCI6IjI2NjI1OTE1NjkwIiwicnVuX251bWJlciI6IjEwMCIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDAwNzMzODYiLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czo3ODQ5ZjVhYi05MzE0LTQ2NDUtODgzNC0zZmYzN2M0YjhkZGM6N2QwZTI5ZWUtMmQ3Ny01Yzg1LWI4ODEtNGI4N2JlY2VjOGUyIEFjdGlvbnMuUnVubmVyOjc4NDlmNWFiLTkzMTQtNDY0NS04ODM0LTNmZjM3YzRiOGRkYzo3ZDBlMjllZS0yZDc3LTVjODUtYjg4MS00Yjg3YmVjZWM4ZTIgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6Nzg0OWY1YWItOTMxNC00NjQ1LTg4MzQtM2ZmMzdjNGI4ZGRjOjdkMGUyOWVlLTJkNzctNWM4NS1iODgxLTRiODdiZWNlYzhlMiBnZW5lcmF0ZV9pZF90b2tlbjo3ODQ5ZjVhYi05MzE0LTQ2NDUtODgzNC0zZmYzN2M0YjhkZGM6N2QwZTI5ZWUtMmQ3Ny01Yzg1LWI4ODEtNGI4N2JlY2VjOGUyIEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiNjNhOWRmNzgzYzFiN2Q4M2JlMDg2OTIwOGZjMWZiNDk2YjI2ZGM3OSIsInRydXN0X3RpZXIiOiIxIn0.ygVmYD1dbUN3h8WckO7HH4P56-XDWresTReo45RthWWYN6ANX57WC9DU6WKOBLZGAeObZxzNi6_hmk3rpNjg-pshSjgJ1NuJEe2U7t_QIMHJZVyc7deJB3FQIqFApjncVlRvWbdtwuWy9iBogm7yYOfIEaWX9Hjua0HNsZiE9FgUyQox-onp2wJHVNXfsmOlLLbQWMbEkZvEohcRJs2qGlFmKq8EltkecaLbwziTOnjr9zAPEJhki7f_m79buBgAEj6504JZGM3M24DHa6Lgw11NSmSvUMc9iU-3wDG0rbRu8cKGt0xbvpOY2ptpYXTMNWsxUffQdP_EVKs9Zns0og", 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_212dee19-c4df-4068-a171-13c34d3fbefb", INVOCATION_ID: "ea1511994a0846939d8d50c1ac1e7d8e", 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: "100", GITHUB_TRIGGERING_ACTOR: "Casta-mere", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --access public --tag latest --no-git-checks", npm_package_scripts_publish_npm_beta: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --access public --tag beta --no-git-checks", npm_package_scripts_publish_github: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --tag latest --no-git-checks", npm_package_scripts_publish_github_beta: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --tag beta --no-git-checks", npm_config_frozen_lockfile: "", npm_package_devDependencies__vitest_ui: "^1.2.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies__vue_eslint_config_typescript: "^12.0.0", npm_package_devDependencies_eslint: "^9.39.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000073386", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "feat/apply-figma-design-clean", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "^2.14.36", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__casl_ability: "^3.4.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^4.0.0", npm_package_devDependencies__vue_eslint_config_prettier: "^8.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.0.17-dev.2", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts", npm_package_dependencies__feedmepos_hrm_permission: "workspace:*", npm_package_devDependencies__rushstack_eslint_patch: "^1.3.3", npm_package_devDependencies_eslint_plugin_unused_imports: "^4.3.0", npm_package_devDependencies_jsdom: "^24.0.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_uuid: "^10.0.0", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "63a9df783c1b7d83be0869208fc1fb496b26dc79", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.2", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/feat/apply-figma-design-clean", GITHUB_ACTOR: "Casta-mere", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", npm_package_devDependencies_globals: "^16.5.0", npm_package_scripts_format: "prettier --write src/", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_a045c1ac-d974-4bf0-a07d-66d69817a156", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "82298017", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_package_devDependencies_vue_eslint_parser: "^10.2.0", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/173//idtoken/7849f5ab-9314-4645-8834-3ff37c4b8ddc/7d0e29ee-2d77-5c85-b881-4b87becec8e2?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_a045c1ac-d974-4bf0-a07d-66d69817a156", 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_a045c1ac-d974-4bf0-a07d-66d69817a156", 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 za = "10.0.5";
1840
+ function Qa() {
1841
+ typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Fe().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Fe().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Fe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Fe().__INTLIFY_PROD_DEVTOOLS__ = !1);
1842
+ }
1843
+ const Ye = {
1844
+ // composer module errors
1845
+ UNEXPECTED_RETURN_TYPE: pa,
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 et(e, ...t) {
1857
+ return ht(e, null, void 0);
1858
+ }
1859
+ const Ut = /* @__PURE__ */ je("__translateVNode"), Vt = /* @__PURE__ */ je("__datetimeParts"), Gt = /* @__PURE__ */ je("__numberParts"), qa = je("__setPluralRules"), Zn = /* @__PURE__ */ je("__injectWithOption"), Wt = /* @__PURE__ */ je("__dispose");
1860
+ function tt(e) {
1861
+ if (!J(e))
1862
+ return e;
1863
+ for (const t in e)
1864
+ if (Ee(e, t))
1865
+ if (!t.includes("."))
1866
+ J(e[t]) && tt(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()), !J(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]), J(l[n[s]]) && tt(l[n[s]]);
1878
+ }
1879
+ return e;
1880
+ }
1881
+ function xn(e, t) {
1882
+ const { messages: n, __i18n: s, messageResolver: l, flatJson: a } = t, c = $(n) ? n : ue(s) ? q() : { [e]: q() };
1883
+ if (ue(s) && s.forEach((u) => {
1884
+ if ("locale" in u && "resource" in u) {
1885
+ const { locale: m, resource: p } = u;
1886
+ m ? (c[m] = c[m] || q(), ft(p, c[m])) : ft(p, c);
1887
+ } else
1888
+ P(u) && ft(JSON.parse(u), c);
1889
+ }), l == null && a)
1890
+ for (const u in c)
1891
+ Ee(c, u) && tt(c[u]);
1892
+ return c;
1893
+ }
1894
+ function Xn(e) {
1895
+ return e.type;
1896
+ }
1897
+ function er(e, t, n) {
1898
+ let s = J(t.messages) ? t.messages : q();
1899
+ "__i18nGlobal" in n && (s = xn(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 (J(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 (J(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 En(e) {
1923
+ return _e(Qn, null, e, 0);
1924
+ }
1925
+ const Nn = "__INTLIFY_META__", yn = () => [], tr = () => !1;
1926
+ let kn = 0;
1927
+ function Tn(e) {
1928
+ return (t, n, s, l) => e(n, s, Zt() || void 0, l);
1929
+ }
1930
+ const nr = /* @__NO_SIDE_EFFECTS__ */ () => {
1931
+ const e = Zt();
1932
+ let t = null;
1933
+ return e && (t = Xn(e)[Nn]) ? { [Nn]: t } : null;
1934
+ };
1935
+ function sr(e = {}) {
1936
+ const { __root: t, __injectWithOption: n } = e, s = t === void 0, l = e.flatJson, a = qt ? bt : Kn;
1937
+ let c = ce(e.inheritLocale) ? e.inheritLocale : !0;
1938
+ const u = a(
1939
+ // prettier-ignore
1940
+ t && c ? t.locale.value : P(e.locale) ? e.locale : pt
1941
+ ), m = a(
1942
+ // prettier-ignore
1943
+ t && c ? t.fallbackLocale.value : P(e.fallbackLocale) || ue(e.fallbackLocale) || $(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
1944
+ ), p = a(xn(u.value, e)), y = a($(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), T = a($(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
1945
+ let O = t ? t.missingWarn : ce(e.missingWarn) || _t(e.missingWarn) ? e.missingWarn : !0, w = t ? t.fallbackWarn : ce(e.fallbackWarn) || _t(e.fallbackWarn) ? e.fallbackWarn : !0, V = t ? t.fallbackRoot : ce(e.fallbackRoot) ? e.fallbackRoot : !0, C = !!e.fallbackFormat, M = se(e.missing) ? e.missing : null, i = se(e.missing) ? Tn(e.missing) : null, d = se(e.postTranslation) ? e.postTranslation : null, L = t ? t.warnHtmlMessage : ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, _ = !!e.escapeParameter;
1946
+ const S = t ? t.modifiers : $(e.modifiers) ? e.modifiers : {};
1947
+ let D = e.pluralRules || t && t.pluralRules, I;
1948
+ I = (() => {
1949
+ s && dn(null);
1950
+ const f = {
1951
+ version: za,
1952
+ locale: u.value,
1953
+ fallbackLocale: m.value,
1954
+ messages: p.value,
1955
+ modifiers: S,
1956
+ pluralRules: D,
1957
+ missing: i === null ? void 0 : i,
1958
+ missingWarn: O,
1959
+ fallbackWarn: w,
1960
+ fallbackFormat: C,
1961
+ unresolving: !0,
1962
+ postTranslation: d === null ? void 0 : d,
1963
+ warnHtmlMessage: L,
1964
+ escapeParameter: _,
1965
+ messageResolver: e.messageResolver,
1966
+ messageCompiler: e.messageCompiler,
1967
+ __meta: { framework: "vue" }
1968
+ };
1969
+ f.datetimeFormats = y.value, f.numberFormats = T.value, f.__datetimeFormatters = $(I) ? I.__datetimeFormatters : void 0, f.__numberFormatters = $(I) ? I.__numberFormatters : void 0;
1970
+ const k = Pa(f);
1971
+ return s && dn(k), k;
1972
+ })(), Ke(I, u.value, m.value);
1973
+ function g() {
1974
+ return [
1975
+ u.value,
1976
+ m.value,
1977
+ p.value,
1978
+ y.value,
1979
+ T.value
1980
+ ];
1981
+ }
1982
+ const h = Q({
1983
+ get: () => u.value,
1984
+ set: (f) => {
1985
+ u.value = f, I.locale = u.value;
1986
+ }
1987
+ }), R = Q({
1988
+ get: () => m.value,
1989
+ set: (f) => {
1990
+ m.value = f, I.fallbackLocale = m.value, Ke(I, u.value, f);
1991
+ }
1992
+ }), E = Q(() => p.value), F = /* @__PURE__ */ Q(() => y.value), x = /* @__PURE__ */ Q(() => T.value);
1993
+ function v() {
1994
+ return se(d) ? d : null;
1995
+ }
1996
+ function A(f) {
1997
+ d = f, I.postTranslation = f;
1998
+ }
1999
+ function N() {
2000
+ return M;
2001
+ }
2002
+ function G(f) {
2003
+ f !== null && (i = Tn(f)), M = f, I.missing = i;
2004
+ }
2005
+ const W = (f, k, te, le, Pe, st) => {
2006
+ g();
2007
+ let Ge;
2008
+ try {
2009
+ Ka.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (I.fallbackContext = t ? wa() : void 0), Ge = f(I);
2010
+ } finally {
2011
+ __INTLIFY_PROD_DEVTOOLS__, s || (I.fallbackContext = void 0);
2012
+ }
2013
+ if (te !== "translate exists" && // for not `te` (e.g `t`)
2014
+ de(Ge) && Ge === vt || te === "translate exists" && !Ge) {
2015
+ const [$n, Gr] = k();
2016
+ return t && V ? le(t) : Pe($n);
2017
+ } else {
2018
+ if (st(Ge))
2019
+ return Ge;
2020
+ throw et(Ye.UNEXPECTED_RETURN_TYPE);
2021
+ }
2022
+ };
2023
+ function j(...f) {
2024
+ return W((k) => Reflect.apply(In, null, [k, ...f]), () => jt(...f), "translate", (k) => Reflect.apply(k.t, k, [...f]), (k) => k, (k) => P(k));
2025
+ }
2026
+ function ee(...f) {
2027
+ const [k, te, le] = f;
2028
+ if (le && !J(le))
2029
+ throw et(Ye.INVALID_ARGUMENT);
2030
+ return j(k, te, fe({ resolvedMessage: !0 }, le || {}));
2031
+ }
2032
+ function Y(...f) {
2033
+ return W((k) => Reflect.apply(_n, null, [k, ...f]), () => Pt(...f), "datetime format", (k) => Reflect.apply(k.d, k, [...f]), () => un, (k) => P(k));
2034
+ }
2035
+ function ge(...f) {
2036
+ return W((k) => Reflect.apply(bn, null, [k, ...f]), () => Ft(...f), "number format", (k) => Reflect.apply(k.n, k, [...f]), () => un, (k) => P(k));
2037
+ }
2038
+ function Z(f) {
2039
+ return f.map((k) => P(k) || de(k) || ce(k) ? En(String(k)) : k);
2040
+ }
2041
+ const ne = {
2042
+ normalize: Z,
2043
+ interpolate: (f) => f,
2044
+ type: "vnode"
2045
+ };
2046
+ function Ie(...f) {
2047
+ return W((k) => {
2048
+ let te;
2049
+ const le = k;
2050
+ try {
2051
+ le.processor = ne, te = Reflect.apply(In, null, [le, ...f]);
2052
+ } finally {
2053
+ le.processor = null;
2054
+ }
2055
+ return te;
2056
+ }, () => jt(...f), "translate", (k) => k[Ut](...f), (k) => [En(k)], (k) => ue(k));
2057
+ }
2058
+ function He(...f) {
2059
+ return W((k) => Reflect.apply(bn, null, [k, ...f]), () => Ft(...f), "number format", (k) => k[Gt](...f), yn, (k) => P(k) || ue(k));
2060
+ }
2061
+ function Be(...f) {
2062
+ return W((k) => Reflect.apply(_n, null, [k, ...f]), () => Pt(...f), "datetime format", (k) => k[Vt](...f), yn, (k) => P(k) || ue(k));
2063
+ }
2064
+ function Et(f) {
2065
+ D = f, I.pluralRules = D;
2066
+ }
2067
+ function Nt(f, k) {
2068
+ return W(() => {
2069
+ if (!f)
2070
+ return !1;
2071
+ const te = P(k) ? k : u.value, le = Ue(te), Pe = I.messageResolver(le, f);
2072
+ return Xe(Pe) || ve(Pe) || P(Pe);
2073
+ }, () => [f], "translate exists", (te) => Reflect.apply(te.te, te, [f, k]), tr, (te) => ce(te));
2074
+ }
2075
+ function yt(f) {
2076
+ let k = null;
2077
+ const te = Dn(I, m.value, u.value);
2078
+ for (let le = 0; le < te.length; le++) {
2079
+ const Pe = p.value[te[le]] || {}, st = I.messageResolver(Pe, f);
2080
+ if (st != null) {
2081
+ k = st;
2082
+ break;
2083
+ }
2084
+ }
2085
+ return k;
2086
+ }
2087
+ function $e(f) {
2088
+ const k = yt(f);
2089
+ return k ?? (t ? t.tm(f) || {} : {});
2090
+ }
2091
+ function Ue(f) {
2092
+ return p.value[f] || {};
2093
+ }
2094
+ function Ve(f, k) {
2095
+ if (l) {
2096
+ const te = { [f]: k };
2097
+ for (const le in te)
2098
+ Ee(te, le) && tt(te[le]);
2099
+ k = te[f];
2100
+ }
2101
+ p.value[f] = k, I.messages = p.value;
2102
+ }
2103
+ function Je(f, k) {
2104
+ p.value[f] = p.value[f] || {};
2105
+ const te = { [f]: k };
2106
+ if (l)
2107
+ for (const le in te)
2108
+ Ee(te, le) && tt(te[le]);
2109
+ k = te[f], ft(k, p.value[f]), I.messages = p.value;
2110
+ }
2111
+ function kt(f) {
2112
+ return y.value[f] || {};
2113
+ }
2114
+ function r(f, k) {
2115
+ y.value[f] = k, I.datetimeFormats = y.value, pn(I, f, k);
2116
+ }
2117
+ function o(f, k) {
2118
+ y.value[f] = fe(y.value[f] || {}, k), I.datetimeFormats = y.value, pn(I, f, k);
2119
+ }
2120
+ function b(f) {
2121
+ return T.value[f] || {};
2122
+ }
2123
+ function U(f, k) {
2124
+ T.value[f] = k, I.numberFormats = T.value, gn(I, f, k);
2125
+ }
2126
+ function re(f, k) {
2127
+ T.value[f] = fe(T.value[f] || {}, k), I.numberFormats = T.value, gn(I, f, k);
2128
+ }
2129
+ kn++, t && qt && (St(t.locale, (f) => {
2130
+ c && (u.value = f, I.locale = f, Ke(I, u.value, m.value));
2131
+ }), St(t.fallbackLocale, (f) => {
2132
+ c && (m.value = f, I.fallbackLocale = f, Ke(I, u.value, m.value));
2133
+ }));
2134
+ const X = {
2135
+ id: kn,
2136
+ locale: h,
2137
+ fallbackLocale: R,
2138
+ get inheritLocale() {
2139
+ return c;
2140
+ },
2141
+ set inheritLocale(f) {
2142
+ c = f, f && t && (u.value = t.locale.value, m.value = t.fallbackLocale.value, Ke(I, u.value, m.value));
2143
+ },
2144
+ get availableLocales() {
2145
+ return Object.keys(p.value).sort();
2146
+ },
2147
+ messages: E,
2148
+ get modifiers() {
2149
+ return S;
2150
+ },
2151
+ get pluralRules() {
2152
+ return D || {};
2153
+ },
2154
+ get isGlobal() {
2155
+ return s;
2156
+ },
2157
+ get missingWarn() {
2158
+ return O;
2159
+ },
2160
+ set missingWarn(f) {
2161
+ O = f, I.missingWarn = O;
2162
+ },
2163
+ get fallbackWarn() {
2164
+ return w;
2165
+ },
2166
+ set fallbackWarn(f) {
2167
+ w = f, I.fallbackWarn = w;
2168
+ },
2169
+ get fallbackRoot() {
2170
+ return V;
2171
+ },
2172
+ set fallbackRoot(f) {
2173
+ V = f;
2174
+ },
2175
+ get fallbackFormat() {
2176
+ return C;
2177
+ },
2178
+ set fallbackFormat(f) {
2179
+ C = f, I.fallbackFormat = C;
2180
+ },
2181
+ get warnHtmlMessage() {
2182
+ return L;
2183
+ },
2184
+ set warnHtmlMessage(f) {
2185
+ L = f, I.warnHtmlMessage = f;
2186
+ },
2187
+ get escapeParameter() {
2188
+ return _;
2189
+ },
2190
+ set escapeParameter(f) {
2191
+ _ = f, I.escapeParameter = f;
2192
+ },
2193
+ t: j,
2194
+ getLocaleMessage: Ue,
2195
+ setLocaleMessage: Ve,
2196
+ mergeLocaleMessage: Je,
2197
+ getPostTranslationHandler: v,
2198
+ setPostTranslationHandler: A,
2199
+ getMissingHandler: N,
2200
+ setMissingHandler: G,
2201
+ [qa]: Et
2202
+ };
2203
+ return X.datetimeFormats = F, X.numberFormats = x, X.rt = ee, X.te = Nt, X.tm = $e, X.d = Y, X.n = ge, X.getDateTimeFormat = kt, X.setDateTimeFormat = r, X.mergeDateTimeFormat = o, X.getNumberFormat = b, X.setNumberFormat = U, X.mergeNumberFormat = re, X[Zn] = n, X[Ut] = Ie, X[Vt] = Be, X[Gt] = He, X;
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 ar({ slots: e }, t) {
2224
+ return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((s, l) => [
2225
+ ...s,
2226
+ // prettier-ignore
2227
+ ...l.type === ye ? l.children : [l]
2228
+ ], []) : t.reduce((n, s) => {
2229
+ const l = e[s];
2230
+ return l && (n[s] = l()), n;
2231
+ }, q());
2232
+ }
2233
+ function Yn() {
2234
+ return ye;
2235
+ }
2236
+ fe({
2237
+ keypath: {
2238
+ type: String,
2239
+ required: !0
2240
+ },
2241
+ plural: {
2242
+ type: [Number, String],
2243
+ validator: (e) => de(e) || !isNaN(e)
2244
+ }
2245
+ }, Kt);
2246
+ function rr(e) {
2247
+ return ue(e) && !P(e[0]);
2248
+ }
2249
+ function Hn(e, t, n, s) {
2250
+ const { slots: l, attrs: a } = t;
2251
+ return () => {
2252
+ const c = { part: !0 };
2253
+ let u = q();
2254
+ e.locale && (c.locale = e.locale), P(e.format) ? c.key = e.format : J(e.format) && (P(e.format.key) && (c.key = e.format.key), u = Object.keys(e.format).reduce((O, w) => n.includes(w) ? fe(q(), O, { [w]: e.format[w] }) : O, q()));
2255
+ const m = s(e.value, c, u);
2256
+ let p = [c.key];
2257
+ ue(m) ? p = m.map((O, w) => {
2258
+ const V = l[O.type], C = V ? V({ [O.type]: O.value, index: w, parts: m }) : [O.value];
2259
+ return rr(C) && (C[0].key = `${O.type}-${w}`), C;
2260
+ }) : P(m) && (p = [m]);
2261
+ const y = fe(q(), a), T = P(e.tag) || J(e.tag) ? e.tag : Yn();
2262
+ return An(T, y, 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 lr = /* @__PURE__ */ je("global-vue-i18n");
2284
+ function It(e = {}) {
2285
+ const t = Zt();
2286
+ if (t == null)
2287
+ throw et(Ye.MUST_BE_CALL_SETUP_TOP);
2288
+ if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
2289
+ throw et(Ye.NOT_INSTALLED);
2290
+ const n = or(t), s = cr(n), l = Xn(t), a = ir(e, l);
2291
+ if (a === "global")
2292
+ return er(s, e, l), s;
2293
+ if (a === "parent") {
2294
+ let m = ur(n, t, e.__useComponent);
2295
+ return m == null && (m = s), m;
2296
+ }
2297
+ const c = n;
2298
+ let u = c.__getInstance(t);
2299
+ if (u == null) {
2300
+ const m = fe({}, e);
2301
+ "__i18n" in l && (m.__i18n = l.__i18n), s && (m.__root = s), u = sr(m), c.__composerExtend && (u[Wt] = c.__composerExtend(u)), dr(c, t, u), c.__setInstance(t, u);
2302
+ }
2303
+ return u;
2304
+ }
2305
+ function or(e) {
2306
+ const t = Jn(e.isCE ? lr : e.appContext.app.__VUE_I18N_SYMBOL__);
2307
+ if (!t)
2308
+ throw et(e.isCE ? Ye.NOT_INSTALLED_WITH_PROVIDE : Ye.UNEXPECTED_ERROR);
2309
+ return t;
2310
+ }
2311
+ function ir(e, t) {
2312
+ return gt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
2313
+ }
2314
+ function cr(e) {
2315
+ return e.mode === "composition" ? e.global : e.global.__composer;
2316
+ }
2317
+ function ur(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 u = c.__getInstance(a);
2327
+ u != null && (s = u.__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 dr(e, t, n) {
2339
+ Cn(() => {
2340
+ }, t), zn(() => {
2341
+ const s = n;
2342
+ e.__deleteInstance(t);
2343
+ const l = s[Wt];
2344
+ l && (l(), delete s[Wt]);
2345
+ }, t);
2346
+ }
2347
+ Qa();
2348
+ Ca(ua);
2349
+ Aa(Oa);
2350
+ Sa(Dn);
2351
+ if (__INTLIFY_PROD_DEVTOOLS__) {
2352
+ const e = Fe();
2353
+ e.__INTLIFY__ = !0, ma(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
2354
+ }
2355
+ const it = /* @__PURE__ */ Oe({
2356
+ __name: "InheritPermissionTooltip",
2357
+ props: {
2358
+ item: {
2359
+ type: Object,
2360
+ required: !0
2361
+ }
2362
+ },
2363
+ setup(e) {
2364
+ const { t } = It();
2365
+ return (n, s) => {
2366
+ const l = ze("FmIcon"), a = ze("FmTooltip");
2367
+ return z(), De(a, {
2368
+ variant: "plain",
2369
+ placement: "right",
2370
+ "z-index": 50
2371
+ }, {
2372
+ content: pe(() => [
2373
+ ie("div", null, ke(B(t)("team.memberForm.permissions.inherited")), 1),
2374
+ (z(!0), oe(ye, null, he(e.item.setNames, (c) => (z(), oe("div", { key: c }, [
2375
+ ie("div", null, "- " + ke(c), 1)
2376
+ ]))), 128))
2377
+ ]),
2378
+ default: pe(() => [
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
+ });
2390
+ function On(e, t, n) {
2391
+ const s = n.filter((u) => u !== "manage");
2392
+ if (s.length === 0) return;
2393
+ const l = e.findIndex((u) => u.subject === t && !u.inverted);
2394
+ if (l < 0) return;
2395
+ const a = new Set(e[l].actions), c = s.every((u) => a.has(u));
2396
+ c && !a.has("manage") ? (a.add("manage"), e[l] = {
2397
+ ...e[l],
2398
+ actions: Array.from(a)
2399
+ }) : !c && a.has("manage") && (a.delete("manage"), a.size === 0 ? e.splice(l, 1) : e[l] = {
2400
+ ...e[l],
2401
+ actions: Array.from(a)
2402
+ });
2403
+ }
2404
+ const Ln = Object.values(is);
2405
+ function fr(e, t, n, s) {
2406
+ const { getFlagValue: l, getFlag: a } = os(), c = Q(() => {
2407
+ var E;
2408
+ const g = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map();
2409
+ for (const F of t.value) {
2410
+ const x = F.category;
2411
+ x && (n.value.includes(F.subject) || F.showByFeatureFlag && ((E = a(F.showByFeatureFlag)) == null ? void 0 : E.enabled) === !1 && l(F.showByFeatureFlag) === "true" || (g.has(x) || g.set(x, []), g.get(x).push({ label: F.label, value: F.subject }), h.set(F.subject, F)));
2412
+ }
2413
+ return [...g.keys()].sort((F, x) => {
2414
+ const v = Ln.indexOf(F), A = Ln.indexOf(x);
2415
+ return v === -1 && A === -1 ? F.localeCompare(x) : v === -1 ? 1 : A === -1 ? -1 : v - A;
2416
+ }).map((F) => {
2417
+ const x = g.get(F), v = /* @__PURE__ */ new Map();
2418
+ for (const Z of x) {
2419
+ const ae = h.get(Z.value);
2420
+ ae && v.set(Z.value, ae.actions);
2421
+ }
2422
+ const A = x.some((Z) => {
2423
+ const ae = v.get(Z.value);
2424
+ return ae && ae.length > 1;
2425
+ }), N = A ? [
2426
+ ...new Set(
2427
+ x.flatMap((Z) => v.get(Z.value) ?? []).filter((Z) => Z !== "manage")
2428
+ )
2429
+ ] : [], G = /* @__PURE__ */ new Map();
2430
+ for (const Z of e.value)
2431
+ x.some((ae) => ae.value === Z.subject) && !Z.inverted && G.set(Z.subject, new Set(Z.actions));
2432
+ const W = A ? e.value.filter(
2433
+ (Z) => x.some((ae) => ae.value === Z.subject) && !Z.inverted && Z.actions.includes("manage")
2434
+ ).map((Z) => Z.subject) : e.value.filter((Z) => x.some((ae) => ae.value === Z.subject) && !Z.inverted).map((Z) => Z.subject), j = x.find((Z) => {
2435
+ var ae;
2436
+ return (ae = h.get(Z.value)) == null ? void 0 : ae.isCategoryCover;
2437
+ }), ee = (j == null ? void 0 : j.value) ?? null, Y = ee ? G.get(ee) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), ge = Y.has("manage");
2438
+ return {
2439
+ category: F,
2440
+ options: x,
2441
+ selectedSubjects: W,
2442
+ isMultiAction: A,
2443
+ actionColumns: N,
2444
+ permissionActionsMap: v,
2445
+ selectedActionsMap: G,
2446
+ coverSubject: ee,
2447
+ coverSelectedActions: Y,
2448
+ coverCoversAll: ge
2449
+ };
2450
+ });
2451
+ });
2452
+ function u(g, h) {
2453
+ var E;
2454
+ const R = ((E = c.value.find((F) => F.category === g)) == null ? void 0 : E.options) ?? [];
2455
+ s("update:model-value", [
2456
+ ...e.value.filter((F) => !R.some((x) => x.value === F.subject)),
2457
+ ...t.value.filter((F) => h.includes(F.subject)).map(
2458
+ ({ category: F, showByFeatureFlag: x, isCategoryCover: v, ...A }) => A
2459
+ )
2460
+ ]);
2461
+ }
2462
+ function m(g) {
2463
+ return g.options.length > 0 && g.options.every((h) => g.selectedSubjects.includes(h.value));
2464
+ }
2465
+ function p(g) {
2466
+ if (g.options.length === 0) return !1;
2467
+ const h = g.options.filter(
2468
+ (R) => g.selectedSubjects.includes(R.value)
2469
+ ).length;
2470
+ return h > 0 && h < g.options.length;
2471
+ }
2472
+ function y(g) {
2473
+ const h = e.value.filter(
2474
+ (R) => !g.options.some((E) => E.value === R.subject)
2475
+ );
2476
+ if (m(g))
2477
+ s("update:model-value", h);
2478
+ else {
2479
+ const R = t.value.filter((E) => g.options.some((F) => F.value === E.subject)).map(
2480
+ ({ category: E, showByFeatureFlag: F, isCategoryCover: x, ...v }) => v
2481
+ );
2482
+ s("update:model-value", [...h, ...R]);
2483
+ }
2484
+ }
2485
+ function T(g, h) {
2486
+ const R = g.selectedActionsMap.get(h);
2487
+ return R ? R.has("manage") : !1;
2488
+ }
2489
+ function O(g, h) {
2490
+ const R = g.permissionActionsMap.get(h);
2491
+ if (!R) return !1;
2492
+ const E = R.filter((v) => v !== "manage");
2493
+ if (E.length === 0) return !1;
2494
+ const F = g.selectedActionsMap.get(h);
2495
+ if (!F) return !1;
2496
+ const x = E.filter((v) => F.has(v));
2497
+ return x.length > 0 && x.length < E.length;
2498
+ }
2499
+ function w(g, h, R) {
2500
+ if (R) {
2501
+ const E = t.value.find((G) => G.subject === h);
2502
+ if (!E) return;
2503
+ const {
2504
+ category: F,
2505
+ showByFeatureFlag: x,
2506
+ isCategoryCover: v,
2507
+ ...A
2508
+ } = E, N = e.value.filter((G) => G.subject !== h);
2509
+ N.push(A), s("update:model-value", N);
2510
+ } else
2511
+ s(
2512
+ "update:model-value",
2513
+ e.value.filter((E) => E.subject !== h)
2514
+ );
2515
+ }
2516
+ function V(g, h) {
2517
+ const R = g.permissionActionsMap.get(h);
2518
+ return R ? R.some((E) => E !== "manage") : !1;
2519
+ }
2520
+ function C(g, h, R) {
2521
+ const E = g.selectedActionsMap.get(h);
2522
+ return E ? E.has(R) : !1;
2523
+ }
2524
+ function M(g, h) {
2525
+ return !g.coverSubject || h === g.coverSubject ? !1 : g.coverCoversAll;
2526
+ }
2527
+ function i(g, h, R) {
2528
+ return !g.coverSubject || h === g.coverSubject ? !1 : g.coverCoversAll ? !0 : g.coverSelectedActions.has(R);
2529
+ }
2530
+ function d(g, h, R) {
2531
+ const E = g.permissionActionsMap.get(h);
2532
+ return E ? E.includes(R) : !1;
2533
+ }
2534
+ function L(g, h, R) {
2535
+ const E = [...e.value], F = E.findIndex((v) => v.subject === g && !v.inverted);
2536
+ if (R)
2537
+ if (F >= 0) {
2538
+ const v = { ...E[F] }, A = new Set(v.actions);
2539
+ A.add(h), v.actions = Array.from(A), E[F] = v;
2540
+ } else {
2541
+ const v = t.value.find((j) => j.subject === g);
2542
+ if (!v) return;
2543
+ const {
2544
+ category: A,
2545
+ showByFeatureFlag: N,
2546
+ isCategoryCover: G,
2547
+ ...W
2548
+ } = v;
2549
+ E.push({ ...W, actions: [h] });
2550
+ }
2551
+ else if (F >= 0) {
2552
+ const v = { ...E[F] }, A = v.actions.filter((N) => N !== h);
2553
+ A.length === 0 ? E.splice(F, 1) : (v.actions = A, E[F] = v);
2554
+ }
2555
+ const x = t.value.find((v) => v.subject === g);
2556
+ x && On(E, g, x.actions), s("update:model-value", E);
2557
+ }
2558
+ function _(g, h) {
2559
+ const R = g.options.filter(
2560
+ (E) => d(g, E.value, h)
2561
+ );
2562
+ return R.length === 0 ? !1 : R.every(
2563
+ (E) => C(g, E.value, h) || i(g, E.value, h)
2564
+ );
2565
+ }
2566
+ function S(g, h) {
2567
+ const R = g.options.filter(
2568
+ (F) => d(g, F.value, h)
2569
+ );
2570
+ if (R.length === 0) return !1;
2571
+ const E = R.filter(
2572
+ (F) => C(g, F.value, h) || i(g, F.value, h)
2573
+ ).length;
2574
+ return E > 0 && E < R.length;
2575
+ }
2576
+ function D(g, h, R) {
2577
+ const E = [...e.value];
2578
+ for (const F of g.options) {
2579
+ if (!d(g, F.value, h)) continue;
2580
+ const x = F.value, v = E.findIndex(
2581
+ (N) => N.subject === x && !N.inverted
2582
+ );
2583
+ if (R)
2584
+ if (v >= 0) {
2585
+ const N = { ...E[v] }, G = new Set(N.actions);
2586
+ G.add(h), N.actions = Array.from(G), E[v] = N;
2587
+ } else {
2588
+ const N = t.value.find((Y) => Y.subject === x);
2589
+ if (!N) continue;
2590
+ const {
2591
+ category: G,
2592
+ showByFeatureFlag: W,
2593
+ isCategoryCover: j,
2594
+ ...ee
2595
+ } = N;
2596
+ E.push({ ...ee, actions: [h] });
2597
+ }
2598
+ else if (v >= 0) {
2599
+ const N = { ...E[v] }, G = N.actions.filter((W) => W !== h);
2600
+ G.length === 0 ? E.splice(v, 1) : (N.actions = G, E[v] = N);
2601
+ }
2602
+ const A = t.value.find((N) => N.subject === x);
2603
+ A && On(E, x, A.actions);
2604
+ }
2605
+ s("update:model-value", E);
2606
+ }
2607
+ const I = {
2608
+ read: "View",
2609
+ create: "Duplicate",
2610
+ update: "Edit"
2611
+ };
2612
+ function H(g) {
2613
+ return I[g] ?? g.charAt(0).toUpperCase() + g.slice(1);
2614
+ }
2615
+ return {
2616
+ categoryGroups: c,
2617
+ toggleCategory: u,
2618
+ isAllManageChecked: m,
2619
+ isAllManageIndeterminate: p,
2620
+ toggleAllManage: y,
2621
+ isManageChecked: T,
2622
+ isManageIndeterminate: O,
2623
+ toggleManage: w,
2624
+ hasNonManageActions: V,
2625
+ isActionChecked: C,
2626
+ isRowFullyCoveredByCover: M,
2627
+ isActionCoveredByCover: i,
2628
+ permissionDefinesAction: d,
2629
+ toggleAction: L,
2630
+ isAllActionChecked: _,
2631
+ isAllActionIndeterminate: S,
2632
+ toggleAllAction: D,
2633
+ actionLabel: H
2634
+ };
2635
+ }
2636
+ const _r = { class: "flex flex-col gap-16" }, pr = { class: "fm-typo-en-title-sm-600" }, br = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, gr = ["onClick"], hr = { class: "flex justify-center" }, vr = { class: "flex items-center min-w-0 gap-8" }, Ir = ["title", "onClick"], Er = { class: "flex justify-center" }, Nr = /* @__PURE__ */ Oe({
2637
+ __name: "BasePermission",
2638
+ props: {
2639
+ modelValue: {
2640
+ type: Array,
2641
+ required: !0
2642
+ },
2643
+ disable: {
2644
+ type: Boolean,
2645
+ default: !1
2646
+ },
2647
+ excludedSubjects: {
2648
+ type: Array,
2649
+ required: !0
2650
+ },
2651
+ additionalPermissions: {
2652
+ type: Array,
2653
+ default: () => []
2654
+ }
2655
+ },
2656
+ emits: ["update:model-value"],
2657
+ setup(e, { emit: t }) {
2658
+ const n = e, s = t, l = Q(() => [...Dt, ...n.additionalPermissions]), {
2659
+ categoryGroups: a,
2660
+ isAllManageChecked: c,
2661
+ isAllManageIndeterminate: u,
2662
+ toggleAllManage: m,
2663
+ isManageChecked: p,
2664
+ isManageIndeterminate: y,
2665
+ toggleManage: T,
2666
+ isActionChecked: O,
2667
+ isRowFullyCoveredByCover: w,
2668
+ isActionCoveredByCover: V,
2669
+ permissionDefinesAction: C,
2670
+ toggleAction: M,
2671
+ isAllActionChecked: i,
2672
+ isAllActionIndeterminate: d,
2673
+ toggleAllAction: L,
2674
+ actionLabel: _
2675
+ } = fr(
2676
+ zt(n, "modelValue"),
2677
+ l,
2678
+ zt(n, "excludedSubjects"),
2679
+ (I, H) => s("update:model-value", H)
2680
+ ), { t: S } = nt();
2681
+ function D(I) {
2682
+ const H = I.selectedSubjects.length;
2683
+ return H === 0 ? "" : S("team.memberForm.permissions.allowedCount", { count: H });
2684
+ }
2685
+ return (I, H) => {
2686
+ const g = ze("FmCheckbox");
2687
+ return z(), oe("div", _r, [
2688
+ (z(!0), oe(ye, null, he(B(a), (h) => (z(), De(xt, {
2689
+ key: h.category,
2690
+ subtitle: D(h)
2691
+ }, {
2692
+ title: pe(() => [
2693
+ ie("p", pr, ke(h.category), 1)
2694
+ ]),
2695
+ default: pe(() => [
2696
+ ie("div", {
2697
+ class: "mt-16 grid items-center gap-y-8",
2698
+ style: mt({
2699
+ gridTemplateColumns: `minmax(0, 1fr) repeat(${h.actionColumns.length + 1}, 80px)`
2700
+ })
2701
+ }, [
2702
+ H[0] || (H[0] = ie("div", null, null, -1)),
2703
+ ie("div", br, ke(B(S)("team.memberForm.permissions.columnManage")), 1),
2704
+ (z(!0), oe(ye, null, he(h.actionColumns, (R) => (z(), oe("div", {
2705
+ key: `header-${R}`,
2706
+ class: "text-center text-sm font-semibold text-fm-color-typo-primary"
2707
+ }, ke(B(_)(R)), 1))), 128)),
2708
+ ie("div", {
2709
+ class: "cursor-pointer",
2710
+ onClick: (R) => !e.disable && B(m)(h)
2711
+ }, " All ", 8, gr),
2712
+ ie("div", hr, [
2713
+ _e(g, {
2714
+ "model-value": B(c)(h),
2715
+ indeterminate: B(u)(h),
2716
+ value: !0,
2717
+ disabled: e.disable,
2718
+ size: "sm",
2719
+ dense: "",
2720
+ "onUpdate:modelValue": (R) => B(m)(h)
2721
+ }, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
2722
+ ]),
2723
+ (z(!0), oe(ye, null, he(h.actionColumns, (R) => (z(), oe("div", {
2724
+ key: `all-${R}`,
2725
+ class: "flex justify-center"
2726
+ }, [
2727
+ _e(g, {
2728
+ "model-value": B(i)(h, R),
2729
+ indeterminate: B(d)(h, R),
2730
+ value: R,
2731
+ disabled: e.disable,
2732
+ size: "sm",
2733
+ dense: "",
2734
+ "onUpdate:modelValue": (E) => B(L)(h, R, E)
2735
+ }, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
2736
+ ]))), 128)),
2737
+ (z(!0), oe(ye, null, he(h.options, (R) => (z(), oe(ye, {
2738
+ key: R.value
2739
+ }, [
2740
+ ie("div", vr, [
2741
+ ie("span", {
2742
+ class: "block truncate cursor-pointer",
2743
+ title: R.label,
2744
+ onClick: (E) => !e.disable && !B(w)(h, R.value) && B(T)(h, R.value, !B(p)(h, R.value))
2745
+ }, ke(R.label), 9, Ir),
2746
+ Te(I.$slots, `checkbox-${R.value}-append`, { option: R })
2747
+ ]),
2748
+ ie("div", Er, [
2749
+ _e(g, {
2750
+ "model-value": B(p)(h, R.value) || B(w)(h, R.value),
2751
+ value: R.value,
2752
+ disabled: e.disable || B(w)(h, R.value),
2753
+ indeterminate: B(y)(h, R.value),
2754
+ size: "sm",
2755
+ "onUpdate:modelValue": (E) => B(T)(h, R.value, E)
2756
+ }, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
2757
+ ]),
2758
+ (z(!0), oe(ye, null, he(h.actionColumns, (E) => (z(), oe("div", {
2759
+ key: `${R.value}-${E}`,
2760
+ class: "flex justify-center"
2761
+ }, [
2762
+ B(C)(h, R.value, E) ? (z(), De(g, {
2763
+ key: 0,
2764
+ "model-value": B(O)(h, R.value, E) || B(V)(h, R.value, E),
2765
+ value: E,
2766
+ disabled: e.disable || B(V)(h, R.value, E),
2767
+ size: "sm",
2768
+ "onUpdate:modelValue": (F) => B(M)(R.value, E, F)
2769
+ }, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Se("", !0)
2770
+ ]))), 128))
2771
+ ], 64))), 128))
2772
+ ], 4)
2773
+ ]),
2774
+ _: 2
2775
+ }, 1032, ["subtitle"]))), 128))
2776
+ ]);
2777
+ };
2778
+ }
2779
+ }), yr = { class: "space-y-16" }, kr = {
2780
+ key: 0,
2781
+ class: "flex fm-typo-en-title-sm-600"
2782
+ }, Tr = {
2783
+ key: 0,
2784
+ class: "q-mr-xs text-red col"
2785
+ }, Or = { class: "form-input" }, Lr = /* @__PURE__ */ Oe({
2786
+ __name: "AppForm",
2787
+ props: {
2788
+ title: {
2789
+ type: String,
2790
+ default: void 0
2791
+ },
2792
+ required: {
2793
+ type: [Boolean, String],
2794
+ default: !1
2795
+ },
2796
+ inline: {
2797
+ type: Boolean,
2798
+ default: !1
2799
+ }
2800
+ },
2801
+ setup(e) {
2802
+ const t = e;
2803
+ return (n, s) => (z(), oe("div", yr, [
2804
+ Te(n.$slots, "top", {}, () => [
2805
+ t.title ? (z(), oe("div", kr, [
2806
+ ie("div", null, [
2807
+ t.required ? (z(), oe("span", Tr, "*")) : Se("", !0),
2808
+ qn(ke(t.title), 1)
2809
+ ]),
2810
+ Te(n.$slots, "title-right")
2811
+ ])) : Se("", !0)
2812
+ ]),
2813
+ ie("div", Or, [
2814
+ Te(n.$slots, "default")
2815
+ ])
2816
+ ]));
2817
+ }
2818
+ });
2819
+ function Rr(e, t) {
2820
+ let n = "", s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
2821
+ const l = s.length;
2822
+ for (let a = 0; a < e; a++)
2823
+ n += s.charAt(Math.floor(Math.random() * l));
2824
+ return n;
2825
+ }
2826
+ const Cr = { class: "col flex items-center" }, Ar = {
2827
+ key: 1,
2828
+ class: "q-pa-sm form-error-message text-error"
2829
+ }, Bn = /* @__PURE__ */ Oe({
2830
+ __name: "CheckboxInput",
2831
+ props: {
2832
+ options: {
2833
+ type: Array,
2834
+ required: !0
2835
+ },
2836
+ title: {
2837
+ type: String,
2838
+ required: !0
2839
+ },
2840
+ modelValue: {
2841
+ type: Array,
2842
+ required: !0
2843
+ },
2844
+ showAllToggle: {
2845
+ type: [Boolean, String],
2846
+ default: !0
2847
+ },
2848
+ includeDisabledOptionsWhenSelectAll: {
2849
+ type: Boolean,
2850
+ default: !1
2851
+ },
2852
+ disable: {
2853
+ type: Boolean,
2854
+ default: !1
2855
+ },
2856
+ min: {
2857
+ type: Number,
2858
+ default: 0
2859
+ },
2860
+ max: {
2861
+ type: Number,
2862
+ default: void 0
2863
+ },
2864
+ showIntermediate: {
2865
+ type: Boolean,
2866
+ default: !0
2867
+ },
2868
+ gutter: {
2869
+ type: Number,
2870
+ default: void 0
2871
+ },
2872
+ falsyShowSlot: {
2873
+ type: Boolean,
2874
+ default: !1
2875
+ },
2876
+ bottomSlotIndent: {
2877
+ type: String,
2878
+ default: "36px"
2879
+ },
2880
+ alignCenter: {
2881
+ type: Boolean,
2882
+ default: !0
2883
+ }
2884
+ },
2885
+ emits: ["update:model-value"],
2886
+ setup(e, { emit: t }) {
2887
+ const n = e, s = t, { t: l } = nt(), a = bt(!1), c = es(), u = Q(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), m = `checkbox-${Rr(6)}`, p = Q(() => u.value !== !0), y = Q(
2888
+ () => n.modelValue.filter((C) => n.options.some((M) => M.value === C))
2889
+ ), T = Q(
2890
+ () => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
2891
+ ), O = Q(() => n.options.length > 0 && n.options.length === y.value.length);
2892
+ function w() {
2893
+ const C = n.modelValue.filter((M) => !y.value.includes(M));
2894
+ if (O.value === !0)
2895
+ s("update:model-value", C);
2896
+ else {
2897
+ const M = n.includeDisabledOptionsWhenSelectAll ? n.options.map((i) => i.value) : n.options.filter((i) => !i.disabled).map((i) => i.value);
2898
+ s("update:model-value", [...C, ...M]);
2899
+ }
2900
+ }
2901
+ function V(C, M) {
2902
+ let i = dt(n.modelValue);
2903
+ M ? i.every((d) => d !== C) && i.push(C) : i = i.filter((d) => d !== C), s("update:model-value", i);
2904
+ }
2905
+ return (C, M) => {
2906
+ const i = ze("FmCheckbox");
2907
+ return z(), De(Lr, {
2908
+ id: m,
2909
+ title: e.title,
2910
+ required: !1
2911
+ }, {
2912
+ top: pe(() => [
2913
+ Te(C.$slots, "top")
2914
+ ]),
2915
+ default: pe(() => [
2916
+ n.showAllToggle ? (z(), De(i, {
2917
+ key: 0,
2918
+ "model-value": O.value,
2919
+ disabled: e.disable,
2920
+ label: T.value,
2921
+ style: mt(`margin-bottom: ${n.gutter}px`),
2922
+ size: "sm",
2923
+ dense: "",
2924
+ value: T.value,
2925
+ "onUpdate:modelValue": w
2926
+ }, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Se("", !0),
2927
+ (z(!0), oe(ye, null, he(e.options, (d, L) => (z(), oe("div", {
2928
+ key: d.value,
2929
+ style: mt(`margin-bottom: ${L < e.options.length - 1 ? n.gutter : 0}px`),
2930
+ class: at(L < e.options.length - 1 ? "q-mb-sm" : "")
2931
+ }, [
2932
+ ie("div", {
2933
+ class: at(["row justify-between", e.alignCenter ? "items-center" : "items-start"])
2934
+ }, [
2935
+ ie("div", Cr, [
2936
+ _e(i, {
2937
+ "model-value": e.modelValue.includes(d.value),
2938
+ disabled: e.disable || d.disabled,
2939
+ size: "sm",
2940
+ label: d.label,
2941
+ value: d.label,
2942
+ "onUpdate:modelValue": (_) => V(d.value, _)
2943
+ }, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
2944
+ Te(C.$slots, `checkbox-${d.key || d.value}-append`, {
2945
+ option: d,
2946
+ selected: e.modelValue.includes(d.value)
2947
+ })
2948
+ ]),
2949
+ B(c)[`checkbox-${d.key || d.value}-end`] && (e.modelValue.includes(d.value) || e.falsyShowSlot) ? (z(), oe("div", {
2950
+ key: 0,
2951
+ class: at([{ "q-checkbox disabled": e.disable || d.disabled }, "col"])
2952
+ }, [
2953
+ Te(C.$slots, `checkbox-${d.key || d.value}-end`, {
2954
+ option: d,
2955
+ value: e.modelValue.includes(d.value),
2956
+ disable: e.disable || d.disabled
2957
+ })
2958
+ ], 2)) : Se("", !0)
2959
+ ], 2),
2960
+ B(c)[`checkbox-${d.key || d.value}-bottom`] && (e.modelValue.includes(d.value) || e.falsyShowSlot) ? (z(), oe("div", {
2961
+ key: 0,
2962
+ class: at(["q-mt-sm", { "q-checkbox disabled": e.disable || d.disabled }]),
2963
+ style: mt(`margin-left: ${e.bottomSlotIndent}`)
2964
+ }, [
2965
+ Te(C.$slots, `checkbox-${d.key || d.value}-bottom`, {
2966
+ option: d,
2967
+ disable: e.disable || d.disabled,
2968
+ value: e.modelValue.includes(d.value)
2969
+ })
2970
+ ], 6)) : Se("", !0)
2971
+ ], 6))), 128)),
2972
+ a.value && p.value ? (z(), oe("div", Ar, ke(u.value), 1)) : Se("", !0)
2973
+ ]),
2974
+ _: 3
2975
+ }, 8, ["title"]);
2976
+ };
2977
+ }
2978
+ }), Sr = { class: "fm-typo-en-title-sm-600" }, ct = "includedFuture", Rn = /* @__PURE__ */ Oe({
2979
+ __name: "ConditionPermission",
2980
+ props: {
2981
+ modelValue: {
2982
+ type: Array,
2983
+ default: null
2984
+ },
2985
+ options: {
2986
+ type: Array,
2987
+ required: !0
2988
+ },
2989
+ disable: {
2990
+ type: Boolean,
2991
+ default: !1
2992
+ },
2993
+ context: {
2994
+ type: String,
2995
+ required: !0
2996
+ }
2997
+ },
2998
+ emits: ["update:model-value"],
2999
+ setup(e, { emit: t }) {
3000
+ const n = e, s = t, { t: l } = nt(), a = Q(() => [
3001
+ {
3002
+ label: l("team.memberForm.permissions.includedFuture", { context: n.context }),
3003
+ value: ct,
3004
+ // Can only be selected if all other options are selected
3005
+ disabled: !!n.modelValue && n.options.length > n.modelValue.length
3006
+ },
3007
+ ...n.options.filter(
3008
+ (y) => y.label.toLocaleLowerCase().includes(p.value.toLocaleLowerCase())
3009
+ )
3010
+ ]), c = Q(() => n.modelValue ? n.modelValue : [ct, ...n.options.map((y) => y.value)]), u = Q(() => {
3011
+ const y = c.value.filter((T) => T !== ct).length;
3012
+ return y === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: y });
3013
+ });
3014
+ function m(y) {
3015
+ const T = y.length === a.value.length;
3016
+ s("update:model-value", T ? null : y.filter((O) => O !== ct));
3017
+ }
3018
+ const p = bt("");
3019
+ return (y, T) => {
3020
+ const O = ze("fm-search");
3021
+ return z(), De(xt, { subtitle: u.value }, {
3022
+ title: pe(() => [
3023
+ ie("p", Sr, ke(B(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
3024
+ ]),
3025
+ default: pe(() => [
3026
+ e.options.length > 1 ? (z(), De(O, {
3027
+ key: 0,
3028
+ modelValue: p.value,
3029
+ "onUpdate:modelValue": T[0] || (T[0] = (w) => p.value = w),
3030
+ class: "mt-16",
3031
+ placeholder: B(l)("team.memberForm.permissions.search", { context: e.context })
3032
+ }, null, 8, ["modelValue", "placeholder"])) : Se("", !0),
3033
+ _e(Bn, {
3034
+ "model-value": c.value,
3035
+ options: a.value,
3036
+ "show-intermediate": !1,
3037
+ "show-all-toggle": !0,
3038
+ disable: e.disable,
3039
+ "include-disabled-options-when-select-all": !0,
3040
+ title: "",
3041
+ class: "mt-16",
3042
+ "onUpdate:modelValue": m
3043
+ }, Ze({ _: 2 }, [
3044
+ he(a.value, (w) => ({
3045
+ name: `checkbox-${w.value}-append`,
3046
+ fn: pe(({ option: V }) => [
3047
+ Te(y.$slots, `checkbox-${w.value}-append`, { option: V })
3048
+ ])
3049
+ }))
3050
+ ]), 1032, ["model-value", "options", "disable"])
3051
+ ]),
3052
+ _: 3
3053
+ }, 8, ["subtitle"]);
3054
+ };
3055
+ }
3056
+ }), Dr = { class: "fm-typo-en-title-sm-600" }, ut = "includedNewRole", Mr = /* @__PURE__ */ Oe({
3057
+ __name: "PosRolePermission",
3058
+ props: {
3059
+ modelValue: {
3060
+ type: Array,
3061
+ default: null
3062
+ },
3063
+ roles: {
3064
+ type: Array,
3065
+ required: !0
3066
+ },
3067
+ restaurantIds: {
3068
+ type: Array,
3069
+ default: null
3070
+ },
3071
+ disable: {
3072
+ type: Boolean,
3073
+ default: !1
3074
+ }
3075
+ },
3076
+ emits: ["update:model-value"],
3077
+ setup(e, { emit: t }) {
3078
+ const n = e, s = t, { t: l } = nt(), a = Q(() => {
3079
+ const p = n.restaurantIds;
3080
+ return [
3081
+ {
3082
+ label: l("team.memberForm.permissions.includedNewRole"),
3083
+ value: ut,
3084
+ disabled: !!n.modelValue && n.roles.length > n.modelValue.length
3085
+ },
3086
+ ...n.roles.map((y) => ({
3087
+ label: y.name,
3088
+ value: y._id,
3089
+ disabled: !!p && y.restaurants.every(({ id: T }) => !p.includes(T))
3090
+ }))
3091
+ ];
3092
+ }), c = Q(() => n.modelValue ? n.modelValue : [ut, ...n.roles.map((p) => p._id)]), u = Q(() => {
3093
+ const p = c.value.filter((y) => y !== ut).length;
3094
+ return p === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: p });
3095
+ });
3096
+ function m(p) {
3097
+ const y = p.length === a.value.length;
3098
+ s("update:model-value", y ? null : p.filter((T) => T !== ut));
3099
+ }
3100
+ return (p, y) => (z(), De(xt, { subtitle: u.value }, {
3101
+ title: pe(() => [
3102
+ ie("p", Dr, ke(B(l)("team.memberForm.permissions.roles")), 1)
3103
+ ]),
3104
+ default: pe(() => [
3105
+ _e(Bn, {
3106
+ "model-value": c.value,
3107
+ options: a.value,
3108
+ "show-intermediate": !1,
3109
+ "show-all-toggle": !1,
3110
+ disable: e.disable,
3111
+ title: "",
3112
+ class: "mt-16",
3113
+ "onUpdate:modelValue": m
3114
+ }, Ze({ _: 2 }, [
3115
+ he(a.value, (T) => ({
3116
+ name: `checkbox-${T.value}-append`,
3117
+ fn: pe(({ option: O }) => [
3118
+ Te(p.$slots, `checkbox-${T.value}-append`, { option: O })
3119
+ ])
3120
+ }))
3121
+ ]), 1032, ["model-value", "options", "disable"])
3122
+ ]),
3123
+ _: 3
3124
+ }, 8, ["subtitle"]));
3125
+ }
3126
+ }), wr = {
3127
+ async readWarehouses() {
3128
+ return us(await ms().get("/warehouses"));
3129
+ }
3130
+ }, Pr = { class: "flex flex-col gap-32" }, Fr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, jr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Ur = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Vr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Jr = /* @__PURE__ */ Oe({
3131
+ __name: "PortalPermissionEditor",
3132
+ props: /* @__PURE__ */ Qt({
3133
+ disable: {
3134
+ type: Boolean,
3135
+ default: !1
3136
+ },
3137
+ inheritPermissions: {
3138
+ type: Array,
3139
+ default: () => []
3140
+ }
3141
+ }, {
3142
+ modelValue: { default: () => [] },
3143
+ modelModifiers: {}
3144
+ }),
3145
+ emits: /* @__PURE__ */ Qt(["permissionChanged"], ["update:modelValue"]),
3146
+ setup(e, { emit: t }) {
3147
+ const n = ts(e, "modelValue"), s = e, l = t, { t: a } = nt(), { fetchCustomReportPermissions: c, customReportPermissions: u } = ss();
3148
+ function m(v) {
3149
+ return Dt.find((A) => A.subject === v) ?? u.value.find((A) => A.subject === v);
3150
+ }
3151
+ const p = Q(() => {
3152
+ const v = [...Dt, ...u.value].filter((N) => !w.includes(N.subject)).map((N) => N.subject);
3153
+ return as(
3154
+ s.inheritPermissions.map((N) => ({
3155
+ ...N,
3156
+ permissions: N.permissions.filter((G) => v.includes(G.subject))
3157
+ }))
3158
+ ).map((N) => ({
3159
+ id: N.subject,
3160
+ setNames: N.setNames
3161
+ }));
3162
+ }), y = Q(() => {
3163
+ const v = s.inheritPermissions.map((A) => ({
3164
+ ...A,
3165
+ permissions: A.permissions.filter(
3166
+ (N) => N.subject === me.Subject.Business.inventory_stock
3167
+ )
3168
+ }));
3169
+ return Tt(
3170
+ v,
3171
+ "warehouseId",
3172
+ C.value.map((A) => A._id)
3173
+ );
3174
+ }), T = Q(() => {
3175
+ const v = s.inheritPermissions.map((A) => ({
3176
+ ...A,
3177
+ permissions: A.permissions.filter(
3178
+ (N) => N.subject === me.Subject.Restaurant.restaurant
3179
+ )
3180
+ }));
3181
+ return Tt(
3182
+ v,
3183
+ "restaurantId",
3184
+ L.value.map((A) => A._id)
3185
+ );
3186
+ }), O = Q(() => {
3187
+ const v = s.inheritPermissions.map((A) => ({
3188
+ ...A,
3189
+ permissions: A.permissions.filter((N) => N.subject === me.Subject.Business.role)
3190
+ }));
3191
+ return Tt(
3192
+ v,
3193
+ "roleId",
3194
+ _.value.map((A) => A._id)
3195
+ );
3196
+ }), w = [
3197
+ me.Subject.Business.restaurant,
3198
+ me.Subject.Business.role,
3199
+ me.Subject.Restaurant.restaurant,
3200
+ me.Subject.Business.inventory_stock
3201
+ ], V = Q(() => {
3202
+ var A;
3203
+ const v = (A = n.value) == null ? void 0 : A.find(
3204
+ (N) => N.subject === me.Subject.Business.inventory_stock
3205
+ );
3206
+ return v ? v.conditions ? JSON.parse(v.conditions).warehouseId.$in : null : [];
3207
+ }), C = bt([]), M = Q(() => C.value.map((v) => ({
3208
+ label: v.profile.name,
3209
+ value: v._id
3210
+ })));
3211
+ function i(v) {
3212
+ const A = d(n.value, v);
3213
+ n.value = A;
3214
+ }
3215
+ function d(v, A) {
3216
+ let N = dt(
3217
+ v.filter((G) => G.subject !== me.Subject.Business.inventory_stock)
3218
+ );
3219
+ if (!A || A.length > 0) {
3220
+ const G = {
3221
+ actions: [me.Action.manage],
3222
+ subject: me.Subject.Business.inventory_stock
3223
+ };
3224
+ A && (G.conditions = JSON.stringify({ warehouseId: { $in: A } })), N.push(G);
3225
+ }
3226
+ return N;
3227
+ }
3228
+ const { restaurants: L } = ns(), _ = ds().roles, S = Q(() => L.value.map((v) => ({
3229
+ label: `${v.profile.code ? v.profile.code + "-" : ""}${v.profile.name}`,
3230
+ value: v._id
3231
+ }))), D = Q(() => L.value.reduce((v, A) => (v[A._id] = _.value.filter((N) => N.restaurants.some((G) => G.id === A._id)).map((N) => N._id), v), {})), I = Q(() => rs(n.value));
3232
+ function H(v) {
3233
+ const A = h(n.value, v);
3234
+ n.value = A;
3235
+ }
3236
+ const g = Q(() => ls(n.value));
3237
+ function h(v, A) {
3238
+ var G;
3239
+ let N = dt(
3240
+ v.filter(
3241
+ (W) => W.subject !== me.Subject.Business.restaurant && W.subject !== me.Subject.Restaurant.restaurant
3242
+ )
3243
+ );
3244
+ if (!A || A.length > 0) {
3245
+ const {
3246
+ category: W,
3247
+ showByFeatureFlag: j,
3248
+ ...ee
3249
+ } = cs.restaurant;
3250
+ N.push(ee);
3251
+ const Y = {
3252
+ actions: [me.Action.manage],
3253
+ subject: me.Subject.Restaurant.restaurant
3254
+ };
3255
+ A && (Y.conditions = JSON.stringify({ restaurantId: { $in: A } })), N.push(Y);
3256
+ }
3257
+ if (A) {
3258
+ const W = [
3259
+ ...new Set(A.map((ee) => D.value[ee]).flatMap((ee) => ee))
3260
+ ], j = _.value.map((ee) => ee._id);
3261
+ W.length !== j.length && (N = E(
3262
+ N,
3263
+ (G = g.value || j) == null ? void 0 : G.filter((ee) => W.includes(ee))
3264
+ ));
3265
+ }
3266
+ return N;
3267
+ }
3268
+ function R(v) {
3269
+ const A = E(n.value, v);
3270
+ n.value = A;
3271
+ }
3272
+ function E(v, A) {
3273
+ let N = dt(
3274
+ v.filter((G) => G.subject !== me.Subject.Business.role)
3275
+ );
3276
+ if (A && A.length > 0) {
3277
+ const G = {
3278
+ actions: [me.Action.manage],
3279
+ subject: me.Subject.Business.role,
3280
+ conditions: JSON.stringify({ roleId: { $in: A } })
3281
+ };
3282
+ N.push(G);
3283
+ }
3284
+ return N;
3285
+ }
3286
+ Cn(async () => {
3287
+ await Promise.all([
3288
+ wr.readWarehouses().then((v) => C.value = v),
3289
+ c()
3290
+ ]);
3291
+ });
3292
+ const F = Q(() => Ot(
3293
+ n.value,
3294
+ Lt
3295
+ ).filter((N) => {
3296
+ const G = N.source;
3297
+ return (G == null ? void 0 : G.type) !== "systemPermissionSet" ? !0 : N.actions.includes("manage");
3298
+ }).map((N) => {
3299
+ if (N.inverted) return N;
3300
+ const G = N.actions;
3301
+ if (!G.includes("manage")) return N;
3302
+ const W = m(N.subject);
3303
+ if (!W) return N;
3304
+ const j = W.actions;
3305
+ return j.length <= 1 || j.filter((Y) => !G.includes(Y)).length === 0 ? N : { ...N, actions: [...j] };
3306
+ }));
3307
+ function x(v) {
3308
+ const A = new Set(
3309
+ F.value.filter((j) => !j.inverted).map((j) => j.subject)
3310
+ ), N = new Set(
3311
+ v.filter((j) => !j.inverted).map((j) => j.subject)
3312
+ ), G = new Set(
3313
+ n.value.filter((j) => !j.inverted).map((j) => j.subject)
3314
+ );
3315
+ let W = [...n.value];
3316
+ for (const j of A)
3317
+ N.has(j) || (G.has(j) && (W = W.filter((Y) => Y.subject !== j)), (!G.has(j) || Ot(
3318
+ W,
3319
+ Lt
3320
+ ).some(
3321
+ (Y) => Y.subject === j && !Y.inverted && Y.actions.includes("manage")
3322
+ )) && !W.some((Y) => Y.subject === j && Y.inverted) && W.push({ subject: j, actions: ["manage"], inverted: !0 }));
3323
+ for (const j of N)
3324
+ if (!A.has(j)) {
3325
+ const ee = W.some((Y) => Y.subject === j && Y.inverted);
3326
+ if (W = W.filter((Y) => !(Y.subject === j && Y.inverted)), !ee && !G.has(j)) {
3327
+ const Y = v.find(
3328
+ (Z) => Z.subject === j && !Z.inverted
3329
+ ), ge = m(j);
3330
+ if (ge && Y) {
3331
+ const { category: Z, showByFeatureFlag: ae, ...ne } = ge;
3332
+ W.push({ ...ne, actions: Y.actions });
3333
+ }
3334
+ }
3335
+ }
3336
+ for (const j of N) {
3337
+ if (!A.has(j)) continue;
3338
+ const ee = F.value.find(
3339
+ (ne) => ne.subject === j && !ne.inverted
3340
+ ), Y = v.find((ne) => ne.subject === j && !ne.inverted);
3341
+ if (!ee || !Y) continue;
3342
+ const ge = new Set(ee.actions), Z = new Set(Y.actions);
3343
+ if (ge.size === Z.size && [...ge].every((ne) => Z.has(ne)))
3344
+ continue;
3345
+ const ae = W.findIndex((ne) => ne.subject === j && !ne.inverted);
3346
+ if (ae >= 0)
3347
+ W[ae] = {
3348
+ ...W[ae],
3349
+ actions: Array.from(Z)
3350
+ };
3351
+ else {
3352
+ const ne = m(j);
3353
+ if (ne) {
3354
+ const { category: Ie, showByFeatureFlag: He, ...Be } = ne;
3355
+ W.push({ ...Be, actions: Array.from(Z) });
3356
+ }
3357
+ }
3358
+ ge.has("manage") && !Z.has("manage") && Ot(
3359
+ W,
3360
+ Lt
3361
+ ).some(
3362
+ (Ie) => Ie.subject === j && !Ie.inverted && Ie.actions.includes("manage")
3363
+ ) && !W.some((Ie) => Ie.subject === j && Ie.inverted) && W.push({ subject: j, actions: ["manage"], inverted: !0 }), !ge.has("manage") && Z.has("manage") && (W = W.filter((ne) => !(ne.subject === j && ne.inverted)));
3364
+ }
3365
+ n.value = W;
3366
+ }
3367
+ return St(
3368
+ n,
3369
+ (v) => {
3370
+ l("permissionChanged", v);
3371
+ },
3372
+ { deep: !0 }
3373
+ ), (v, A) => (z(), oe("div", Pr, [
3374
+ ie("div", Fr, [
3375
+ _e(Nr, {
3376
+ "model-value": F.value,
3377
+ "excluded-subjects": w,
3378
+ "additional-permissions": B(u),
3379
+ "onUpdate:modelValue": x
3380
+ }, Ze({ _: 2 }, [
3381
+ he(p.value, (N) => ({
3382
+ name: `checkbox-${N.id}-append`,
3383
+ fn: pe(() => [
3384
+ _e(it, { item: N }, null, 8, ["item"])
3385
+ ])
3386
+ }))
3387
+ ]), 1032, ["model-value", "additional-permissions"])
3388
+ ]),
3389
+ ie("div", jr, [
3390
+ _e(Rn, {
3391
+ "model-value": V.value,
3392
+ options: M.value,
3393
+ context: B(a)("team.labels.warehouse"),
3394
+ "onUpdate:modelValue": i
3395
+ }, Ze({ _: 2 }, [
3396
+ he(y.value, (N) => ({
3397
+ name: `checkbox-${N.id}-append`,
3398
+ fn: pe(() => [
3399
+ _e(it, { item: N }, null, 8, ["item"])
3400
+ ])
3401
+ }))
3402
+ ]), 1032, ["model-value", "options", "context"])
3403
+ ]),
3404
+ ie("div", Ur, [
3405
+ _e(Rn, {
3406
+ "model-value": I.value,
3407
+ options: S.value,
3408
+ context: B(a)("team.labels.restaurant"),
3409
+ "onUpdate:modelValue": H
3410
+ }, Ze({ _: 2 }, [
3411
+ he(T.value, (N) => ({
3412
+ name: `checkbox-${N.id}-append`,
3413
+ fn: pe(() => [
3414
+ _e(it, { item: N }, null, 8, ["item"])
3415
+ ])
3416
+ }))
3417
+ ]), 1032, ["model-value", "options", "context"])
3418
+ ]),
3419
+ ie("div", Vr, [
3420
+ _e(Mr, {
3421
+ roles: B(_),
3422
+ "model-value": g.value,
3423
+ "restaurant-ids": I.value,
3424
+ "onUpdate:modelValue": R
3425
+ }, Ze({ _: 2 }, [
3426
+ he(O.value, (N) => ({
3427
+ name: `checkbox-${N.id}-append`,
3428
+ fn: pe(() => [
3429
+ _e(it, { item: N }, null, 8, ["item"])
3430
+ ])
3431
+ }))
3432
+ ]), 1032, ["roles", "model-value", "restaurant-ids"])
3433
+ ])
3434
+ ]));
3435
+ }
3436
+ });
3437
+ export {
3438
+ Jr as _
3439
+ };