@feedmepos/mf-hrm-portal 1.1.0-dev → 1.1.2-dev

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