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