@feedmepos/mf-hrm-portal 2.0.3-dev → 2.0.3-dev.4

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