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