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