@feedmepos/mf-hrm-portal 2.2.1-dev.4 → 2.2.2-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ApprovalCodeList-CJpbX8H_.js → ApprovalCodeList-B9O8QzzI.js} +2 -2
- package/dist/{AuditLogList-A1217xlw.js → AuditLogList-CtFEXKWZ.js} +3 -3
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BWNAtv1G.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C9MYbxum.js} +2 -2
- package/dist/{EmployeeList-Gh8aU7BY.js → EmployeeList-BFxMwFJq.js} +4 -4
- package/dist/{GrantUserList-vpaCAv1u.js → GrantUserList-CZtmMRoS.js} +3 -3
- package/dist/{Main-38YNSkW6.js → Main-B622Z4q4.js} +9 -9
- package/dist/{Main-GwRBJ3al.js → Main-DD6IthCS.js} +2 -2
- package/dist/{Main-CXjbH7aE.js → Main-on0TXkQt.js} +5 -5
- package/dist/{PermissionSetList-CuzFQm7J.js → PermissionSetList-FCX3TBoi.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C9bkMb41.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Cl_YNh0k.js} +1239 -1239
- package/dist/{RoleList-C5VZbU3f.js → RoleList-p_9KHzqF.js} +7 -7
- package/dist/{TeamMemberList-ChrUNLsA.js → TeamMemberList-BAU7Y3jh.js} +6 -6
- package/dist/{TimesheetList-Dqx3RZ4c.js → TimesheetList-DtFBWhma.js} +5 -5
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-rtbLyLSE.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-Tatn3jUv.js} +2 -2
- package/dist/{app-CPByRtdD.js → app-Bbf6hEPt.js} +291 -282
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-DeAdykwc.js → dayjs.min-BAnGg8q2.js} +1 -1
- package/dist/{employee-dFHap_s3.js → employee-DVSD3L51.js} +3 -3
- package/dist/{iteration-B_EcCwqv.js → iteration-BTZViJtd.js} +1 -1
- package/dist/{lodash-C5UxxqU2.js → lodash-Cgdk4_YL.js} +1 -1
- package/dist/{role-8ZQb8Cap.js → role-CXVpO6fB.js} +1 -1
- package/dist/{rule-DJZO_Kev.js → rule-TR3MVo-b.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-Phq7vqLK.js → useReportPermissions-BpAFyO17.js} +3 -3
- package/package.json +1 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { getCurrentInstance as Bt, inject as
|
|
2
|
-
import { useI18n as He, useCoreStore as
|
|
3
|
-
import { useDialog as
|
|
1
|
+
import { getCurrentInstance as Bt, inject as ur, ref as rt, shallowRef as mr, computed as z, watch as wt, onMounted as xn, onUnmounted as dr, defineComponent as Le, h as Wn, createVNode as ue, Text as fr, Fragment as ke, resolveComponent as we, createBlock as Ne, openBlock as J, withCtx as me, createElementVNode as ae, createElementBlock as ie, toDisplayString as Oe, unref as H, renderList as Ee, toRef as en, normalizeStyle as nt, renderSlot as Se, createCommentVNode as Me, createTextVNode as _r, useSlots as pr, normalizeClass as qe, createSlots as et, mergeModels as tn, useModel as vr } from "vue";
|
|
2
|
+
import { useI18n as He, useCoreStore as hr } from "@feedmepos/mf-common";
|
|
3
|
+
import { useDialog as br, useBreakpoints as gr } from "@feedmepos/ui-library";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { p as Gn, N as Zn, i as
|
|
6
|
-
import { _ as Xt, a as
|
|
7
|
-
import { u as
|
|
8
|
-
import { c as It } from "./iteration-
|
|
9
|
-
import { g as
|
|
10
|
-
import { u as
|
|
5
|
+
import { p as Gn, N as Zn, i as Ir, P as yr, y as At, l as Er, k as Nr } from "./rule-TR3MVo-b.js";
|
|
6
|
+
import { _ as Xt, a as Cr, b as nn, u as Tr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C9MYbxum.js";
|
|
7
|
+
import { u as Or, b as Sr, P as Yn, S as Dt, A as tt, e as he, k as rn, d as Ar } from "./app-Bbf6hEPt.js";
|
|
8
|
+
import { c as It } from "./iteration-BTZViJtd.js";
|
|
9
|
+
import { g as Lr, b as Rr } from "./restaurant-BTpBmfBV.js";
|
|
10
|
+
import { u as kr } from "./role-CXVpO6fB.js";
|
|
11
11
|
function Bn(e, t) {
|
|
12
12
|
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function Mr(e) {
|
|
15
15
|
return Array.isArray(e) ? e[0] : e;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function wr(e, t) {
|
|
18
18
|
const n = t.find((l) => Bn(l.subject, e));
|
|
19
19
|
if (!(n != null && n.category) || n.isCategoryCover) return;
|
|
20
|
-
const
|
|
21
|
-
if (
|
|
22
|
-
return
|
|
20
|
+
const r = t.find((l) => l.category === n.category && l.isCategoryCover);
|
|
21
|
+
if (r)
|
|
22
|
+
return Mr(r.subject);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
const n = t.find((
|
|
24
|
+
function sn(e, t) {
|
|
25
|
+
const n = t.find((r) => Bn(r.subject, e));
|
|
26
26
|
return !!(n != null && n.isCategoryCover);
|
|
27
27
|
}
|
|
28
28
|
/*!
|
|
@@ -30,42 +30,42 @@ function rn(e, t) {
|
|
|
30
30
|
* (c) 2024 kazuya kawaguchi
|
|
31
31
|
* Released under the MIT License.
|
|
32
32
|
*/
|
|
33
|
-
const on = typeof window < "u", $e = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
33
|
+
const on = typeof window < "u", $e = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Dr = (e, t, n) => Fr({ l: e, k: t, s: n }), Fr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ge = (e) => typeof e == "number" && isFinite(e), Pr = (e) => Ht(e) === "[object Date]", Et = (e) => Ht(e) === "[object RegExp]", Ct = (e) => ee(e) && Object.keys(e).length === 0, Ie = Object.assign, jr = Object.create, se = (e = null) => jr(e);
|
|
34
34
|
let an;
|
|
35
|
-
const Xe = () => an || (an = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global :
|
|
35
|
+
const Xe = () => an || (an = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : se());
|
|
36
36
|
function ln(e) {
|
|
37
37
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
38
38
|
}
|
|
39
|
-
const
|
|
40
|
-
function
|
|
41
|
-
return
|
|
39
|
+
const Ur = Object.prototype.hasOwnProperty;
|
|
40
|
+
function Ae(e, t) {
|
|
41
|
+
return Ur.call(e, t);
|
|
42
42
|
}
|
|
43
|
-
const be = Array.isArray,
|
|
43
|
+
const be = Array.isArray, de = (e) => typeof e == "function", Z = (e) => typeof e == "string", ve = (e) => typeof e == "boolean", te = (e) => e !== null && typeof e == "object", Vr = (e) => te(e) && de(e.then) && de(e.catch), Xn = Object.prototype.toString, Ht = (e) => Xn.call(e), ee = (e) => Ht(e) === "[object Object]", xr = (e) => e == null ? "" : be(e) || ee(e) && e.toString === Xn ? JSON.stringify(e, null, 2) : String(e);
|
|
44
44
|
function $t(e, t = "") {
|
|
45
|
-
return e.reduce((n,
|
|
45
|
+
return e.reduce((n, r, l) => l === 0 ? n + r : n + t + r, "");
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Wr(e, t) {
|
|
48
48
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
49
49
|
}
|
|
50
50
|
const ft = (e) => !te(e) || be(e);
|
|
51
|
-
function
|
|
51
|
+
function yt(e, t) {
|
|
52
52
|
if (ft(e) || ft(t))
|
|
53
53
|
throw new Error("Invalid value");
|
|
54
54
|
const n = [{ src: e, des: t }];
|
|
55
55
|
for (; n.length; ) {
|
|
56
|
-
const { src:
|
|
57
|
-
Object.keys(
|
|
58
|
-
a !== "__proto__" && (te(
|
|
56
|
+
const { src: r, des: l } = n.pop();
|
|
57
|
+
Object.keys(r).forEach((a) => {
|
|
58
|
+
a !== "__proto__" && (te(r[a]) && !te(l[a]) && (l[a] = Array.isArray(r[a]) ? [] : se()), ft(l[a]) || ft(r[a]) ? l[a] = r[a] : n.push({ src: r[a], des: l[a] }));
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Gr(e, t, n) {
|
|
63
63
|
return { line: e, column: t, offset: n };
|
|
64
64
|
}
|
|
65
65
|
function Ft(e, t, n) {
|
|
66
66
|
return { start: e, end: t };
|
|
67
67
|
}
|
|
68
|
-
const
|
|
68
|
+
const re = {
|
|
69
69
|
// tokenizer error codes
|
|
70
70
|
EXPECTED_TOKEN: 1,
|
|
71
71
|
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
|
@@ -82,28 +82,28 @@ const se = {
|
|
|
82
82
|
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
83
83
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
84
84
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
85
|
-
},
|
|
85
|
+
}, Zr = 17;
|
|
86
86
|
function Tt(e, t, n = {}) {
|
|
87
|
-
const { domain:
|
|
88
|
-
return u.code = e, t && (u.location = t), u.domain =
|
|
87
|
+
const { domain: r, messages: l, args: a } = n, m = e, u = new SyntaxError(String(m));
|
|
88
|
+
return u.code = e, t && (u.location = t), u.domain = r, u;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function Yr(e) {
|
|
91
91
|
throw e;
|
|
92
92
|
}
|
|
93
|
-
const Pe = " ",
|
|
94
|
-
`,
|
|
95
|
-
function $
|
|
93
|
+
const Pe = " ", Br = "\r", ye = `
|
|
94
|
+
`, Xr = "\u2028", Hr = "\u2029";
|
|
95
|
+
function $r(e) {
|
|
96
96
|
const t = e;
|
|
97
|
-
let n = 0,
|
|
98
|
-
const
|
|
97
|
+
let n = 0, r = 1, l = 1, a = 0;
|
|
98
|
+
const m = (p) => t[p] === Br && t[p + 1] === ye, u = (p) => t[p] === ye, i = (p) => t[p] === Hr, g = (p) => t[p] === Xr, y = (p) => m(p) || u(p) || i(p) || g(p), T = () => n, N = () => r, F = () => l, w = () => a, L = (p) => m(p) || i(p) || g(p) ? ye : t[p], D = () => L(n), f = () => L(n + a);
|
|
99
99
|
function h() {
|
|
100
|
-
return a = 0,
|
|
100
|
+
return a = 0, y(n) && (r++, l = 0), m(n) && n++, n++, l++, t[n];
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
return
|
|
102
|
+
function S() {
|
|
103
|
+
return m(n + a) && a++, a++, t[n + a];
|
|
104
104
|
}
|
|
105
105
|
function c() {
|
|
106
|
-
n = 0,
|
|
106
|
+
n = 0, r = 1, l = 1, a = 0;
|
|
107
107
|
}
|
|
108
108
|
function b(p = 0) {
|
|
109
109
|
a = p;
|
|
@@ -118,166 +118,166 @@ function $s(e) {
|
|
|
118
118
|
index: T,
|
|
119
119
|
line: N,
|
|
120
120
|
column: F,
|
|
121
|
-
peekOffset:
|
|
121
|
+
peekOffset: w,
|
|
122
122
|
charAt: L,
|
|
123
|
-
currentChar:
|
|
123
|
+
currentChar: D,
|
|
124
124
|
currentPeek: f,
|
|
125
125
|
next: h,
|
|
126
|
-
peek:
|
|
126
|
+
peek: S,
|
|
127
127
|
reset: c,
|
|
128
128
|
resetPeek: b,
|
|
129
129
|
skipToPeek: I
|
|
130
130
|
};
|
|
131
131
|
}
|
|
132
|
-
const xe = void 0,
|
|
133
|
-
function
|
|
134
|
-
const n = t.location !== !1,
|
|
132
|
+
const xe = void 0, Jr = ".", cn = "'", Kr = "tokenizer";
|
|
133
|
+
function zr(e, t = {}) {
|
|
134
|
+
const n = t.location !== !1, r = $r(e), l = () => r.index(), a = () => Gr(r.line(), r.column(), r.index()), m = a(), u = l(), i = {
|
|
135
135
|
currentType: 13,
|
|
136
136
|
offset: u,
|
|
137
|
-
startLoc:
|
|
138
|
-
endLoc:
|
|
137
|
+
startLoc: m,
|
|
138
|
+
endLoc: m,
|
|
139
139
|
lastType: 13,
|
|
140
140
|
lastOffset: u,
|
|
141
|
-
lastStartLoc:
|
|
142
|
-
lastEndLoc:
|
|
141
|
+
lastStartLoc: m,
|
|
142
|
+
lastEndLoc: m,
|
|
143
143
|
braceNest: 0,
|
|
144
144
|
inLinked: !1,
|
|
145
145
|
text: ""
|
|
146
|
-
}, g = () => i, { onError:
|
|
147
|
-
function T(
|
|
146
|
+
}, g = () => i, { onError: y } = t;
|
|
147
|
+
function T(s, o, _, ...R) {
|
|
148
148
|
const M = g();
|
|
149
|
-
if (o.column += _, o.offset += _,
|
|
150
|
-
const P = n ? Ft(M.startLoc, o) : null, v = Tt(
|
|
151
|
-
domain:
|
|
152
|
-
args:
|
|
149
|
+
if (o.column += _, o.offset += _, y) {
|
|
150
|
+
const P = n ? Ft(M.startLoc, o) : null, v = Tt(s, P, {
|
|
151
|
+
domain: Kr,
|
|
152
|
+
args: R
|
|
153
153
|
});
|
|
154
|
-
|
|
154
|
+
y(v);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
function N(
|
|
158
|
-
|
|
159
|
-
const
|
|
160
|
-
return n && (
|
|
157
|
+
function N(s, o, _) {
|
|
158
|
+
s.endLoc = a(), s.currentType = o;
|
|
159
|
+
const R = { type: o };
|
|
160
|
+
return n && (R.loc = Ft(s.startLoc, s.endLoc)), _ != null && (R.value = _), R;
|
|
161
161
|
}
|
|
162
|
-
const F = (
|
|
163
|
-
|
|
162
|
+
const F = (s) => N(
|
|
163
|
+
s,
|
|
164
164
|
13
|
|
165
165
|
/* TokenTypes.EOF */
|
|
166
166
|
);
|
|
167
|
-
function
|
|
168
|
-
return
|
|
167
|
+
function w(s, o) {
|
|
168
|
+
return s.currentChar() === o ? (s.next(), o) : (T(re.EXPECTED_TOKEN, a(), 0, o), "");
|
|
169
169
|
}
|
|
170
|
-
function L(
|
|
170
|
+
function L(s) {
|
|
171
171
|
let o = "";
|
|
172
|
-
for (;
|
|
173
|
-
o +=
|
|
172
|
+
for (; s.currentPeek() === Pe || s.currentPeek() === ye; )
|
|
173
|
+
o += s.currentPeek(), s.peek();
|
|
174
174
|
return o;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
177
|
-
const o = L(
|
|
178
|
-
return
|
|
176
|
+
function D(s) {
|
|
177
|
+
const o = L(s);
|
|
178
|
+
return s.skipToPeek(), o;
|
|
179
179
|
}
|
|
180
|
-
function f(
|
|
181
|
-
if (
|
|
180
|
+
function f(s) {
|
|
181
|
+
if (s === xe)
|
|
182
182
|
return !1;
|
|
183
|
-
const o =
|
|
183
|
+
const o = s.charCodeAt(0);
|
|
184
184
|
return o >= 97 && o <= 122 || // a-z
|
|
185
185
|
o >= 65 && o <= 90 || // A-Z
|
|
186
186
|
o === 95;
|
|
187
187
|
}
|
|
188
|
-
function h(
|
|
189
|
-
if (
|
|
188
|
+
function h(s) {
|
|
189
|
+
if (s === xe)
|
|
190
190
|
return !1;
|
|
191
|
-
const o =
|
|
191
|
+
const o = s.charCodeAt(0);
|
|
192
192
|
return o >= 48 && o <= 57;
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function S(s, o) {
|
|
195
195
|
const { currentType: _ } = o;
|
|
196
196
|
if (_ !== 2)
|
|
197
197
|
return !1;
|
|
198
|
-
L(
|
|
199
|
-
const
|
|
200
|
-
return
|
|
198
|
+
L(s);
|
|
199
|
+
const R = f(s.currentPeek());
|
|
200
|
+
return s.resetPeek(), R;
|
|
201
201
|
}
|
|
202
|
-
function c(
|
|
202
|
+
function c(s, o) {
|
|
203
203
|
const { currentType: _ } = o;
|
|
204
204
|
if (_ !== 2)
|
|
205
205
|
return !1;
|
|
206
|
-
L(
|
|
207
|
-
const
|
|
208
|
-
return
|
|
206
|
+
L(s);
|
|
207
|
+
const R = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), M = h(R);
|
|
208
|
+
return s.resetPeek(), M;
|
|
209
209
|
}
|
|
210
|
-
function b(
|
|
210
|
+
function b(s, o) {
|
|
211
211
|
const { currentType: _ } = o;
|
|
212
212
|
if (_ !== 2)
|
|
213
213
|
return !1;
|
|
214
|
-
L(
|
|
215
|
-
const
|
|
216
|
-
return
|
|
214
|
+
L(s);
|
|
215
|
+
const R = s.currentPeek() === cn;
|
|
216
|
+
return s.resetPeek(), R;
|
|
217
217
|
}
|
|
218
|
-
function I(
|
|
218
|
+
function I(s, o) {
|
|
219
219
|
const { currentType: _ } = o;
|
|
220
220
|
if (_ !== 7)
|
|
221
221
|
return !1;
|
|
222
|
-
L(
|
|
223
|
-
const
|
|
224
|
-
return
|
|
222
|
+
L(s);
|
|
223
|
+
const R = s.currentPeek() === ".";
|
|
224
|
+
return s.resetPeek(), R;
|
|
225
225
|
}
|
|
226
|
-
function p(
|
|
226
|
+
function p(s, o) {
|
|
227
227
|
const { currentType: _ } = o;
|
|
228
228
|
if (_ !== 8)
|
|
229
229
|
return !1;
|
|
230
|
-
L(
|
|
231
|
-
const
|
|
232
|
-
return
|
|
230
|
+
L(s);
|
|
231
|
+
const R = f(s.currentPeek());
|
|
232
|
+
return s.resetPeek(), R;
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function k(s, o) {
|
|
235
235
|
const { currentType: _ } = o;
|
|
236
236
|
if (!(_ === 7 || _ === 11))
|
|
237
237
|
return !1;
|
|
238
|
-
L(
|
|
239
|
-
const
|
|
240
|
-
return
|
|
238
|
+
L(s);
|
|
239
|
+
const R = s.currentPeek() === ":";
|
|
240
|
+
return s.resetPeek(), R;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function A(s, o) {
|
|
243
243
|
const { currentType: _ } = o;
|
|
244
244
|
if (_ !== 9)
|
|
245
245
|
return !1;
|
|
246
|
-
const
|
|
247
|
-
const P =
|
|
248
|
-
return P === "{" ? f(
|
|
249
|
-
}, M =
|
|
250
|
-
return
|
|
251
|
-
}
|
|
252
|
-
function X(
|
|
253
|
-
L(
|
|
254
|
-
const o =
|
|
255
|
-
return
|
|
256
|
-
}
|
|
257
|
-
function x(
|
|
246
|
+
const R = () => {
|
|
247
|
+
const P = s.currentPeek();
|
|
248
|
+
return P === "{" ? f(s.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P === ye ? (s.peek(), R()) : x(s, !1);
|
|
249
|
+
}, M = R();
|
|
250
|
+
return s.resetPeek(), M;
|
|
251
|
+
}
|
|
252
|
+
function X(s) {
|
|
253
|
+
L(s);
|
|
254
|
+
const o = s.currentPeek() === "|";
|
|
255
|
+
return s.resetPeek(), o;
|
|
256
|
+
}
|
|
257
|
+
function x(s, o = !0) {
|
|
258
258
|
const _ = (M = !1, P = "") => {
|
|
259
|
-
const v =
|
|
260
|
-
return v === "{" || v === "@" || !v ? M : v === "|" ? !(P === Pe || P ===
|
|
261
|
-
},
|
|
262
|
-
return o &&
|
|
259
|
+
const v = s.currentPeek();
|
|
260
|
+
return v === "{" || v === "@" || !v ? M : v === "|" ? !(P === Pe || P === ye) : v === Pe ? (s.peek(), _(!0, Pe)) : v === ye ? (s.peek(), _(!0, ye)) : !0;
|
|
261
|
+
}, R = _();
|
|
262
|
+
return o && s.resetPeek(), R;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
const _ =
|
|
266
|
-
return _ === xe ? xe : o(_) ? (
|
|
264
|
+
function d(s, o) {
|
|
265
|
+
const _ = s.currentChar();
|
|
266
|
+
return _ === xe ? xe : o(_) ? (s.next(), _) : null;
|
|
267
267
|
}
|
|
268
|
-
function C(
|
|
269
|
-
const o =
|
|
268
|
+
function C(s) {
|
|
269
|
+
const o = s.charCodeAt(0);
|
|
270
270
|
return o >= 97 && o <= 122 || // a-z
|
|
271
271
|
o >= 65 && o <= 90 || // A-Z
|
|
272
272
|
o >= 48 && o <= 57 || // 0-9
|
|
273
273
|
o === 95 || // _
|
|
274
274
|
o === 36;
|
|
275
275
|
}
|
|
276
|
-
function U(
|
|
277
|
-
return
|
|
276
|
+
function U(s) {
|
|
277
|
+
return d(s, C);
|
|
278
278
|
}
|
|
279
|
-
function V(
|
|
280
|
-
const o =
|
|
279
|
+
function V(s) {
|
|
280
|
+
const o = s.charCodeAt(0);
|
|
281
281
|
return o >= 97 && o <= 122 || // a-z
|
|
282
282
|
o >= 65 && o <= 90 || // A-Z
|
|
283
283
|
o >= 48 && o <= 57 || // 0-9
|
|
@@ -285,238 +285,238 @@ function zs(e, t = {}) {
|
|
|
285
285
|
o === 36 || // $
|
|
286
286
|
o === 45;
|
|
287
287
|
}
|
|
288
|
-
function j(
|
|
289
|
-
return
|
|
288
|
+
function j(s) {
|
|
289
|
+
return d(s, V);
|
|
290
290
|
}
|
|
291
|
-
function G(
|
|
292
|
-
const o =
|
|
291
|
+
function G(s) {
|
|
292
|
+
const o = s.charCodeAt(0);
|
|
293
293
|
return o >= 48 && o <= 57;
|
|
294
294
|
}
|
|
295
|
-
function W(
|
|
296
|
-
return
|
|
295
|
+
function W(s) {
|
|
296
|
+
return d(s, G);
|
|
297
297
|
}
|
|
298
|
-
function Y(
|
|
299
|
-
const o =
|
|
298
|
+
function Y(s) {
|
|
299
|
+
const o = s.charCodeAt(0);
|
|
300
300
|
return o >= 48 && o <= 57 || // 0-9
|
|
301
301
|
o >= 65 && o <= 70 || // A-F
|
|
302
302
|
o >= 97 && o <= 102;
|
|
303
303
|
}
|
|
304
|
-
function B(
|
|
305
|
-
return
|
|
304
|
+
function B(s) {
|
|
305
|
+
return d(s, Y);
|
|
306
306
|
}
|
|
307
|
-
function ne(
|
|
307
|
+
function ne(s) {
|
|
308
308
|
let o = "", _ = "";
|
|
309
|
-
for (; o = W(
|
|
309
|
+
for (; o = W(s); )
|
|
310
310
|
_ += o;
|
|
311
311
|
return _;
|
|
312
312
|
}
|
|
313
|
-
function Q(
|
|
313
|
+
function Q(s) {
|
|
314
314
|
let o = "";
|
|
315
315
|
for (; ; ) {
|
|
316
|
-
const _ =
|
|
316
|
+
const _ = s.currentChar();
|
|
317
317
|
if (_ === "{" || _ === "}" || _ === "@" || _ === "|" || !_)
|
|
318
318
|
break;
|
|
319
|
-
if (_ === Pe || _ ===
|
|
320
|
-
if (x(
|
|
321
|
-
o += _,
|
|
319
|
+
if (_ === Pe || _ === ye)
|
|
320
|
+
if (x(s))
|
|
321
|
+
o += _, s.next();
|
|
322
322
|
else {
|
|
323
|
-
if (X(
|
|
323
|
+
if (X(s))
|
|
324
324
|
break;
|
|
325
|
-
o += _,
|
|
325
|
+
o += _, s.next();
|
|
326
326
|
}
|
|
327
327
|
else
|
|
328
|
-
o += _,
|
|
328
|
+
o += _, s.next();
|
|
329
329
|
}
|
|
330
330
|
return o;
|
|
331
331
|
}
|
|
332
|
-
function _e(
|
|
333
|
-
|
|
332
|
+
function _e(s) {
|
|
333
|
+
D(s);
|
|
334
334
|
let o = "", _ = "";
|
|
335
|
-
for (; o = j(
|
|
335
|
+
for (; o = j(s); )
|
|
336
336
|
_ += o;
|
|
337
|
-
return
|
|
337
|
+
return s.currentChar() === xe && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _;
|
|
338
338
|
}
|
|
339
|
-
function ce(
|
|
340
|
-
|
|
339
|
+
function ce(s) {
|
|
340
|
+
D(s);
|
|
341
341
|
let o = "";
|
|
342
|
-
return
|
|
342
|
+
return s.currentChar() === "-" ? (s.next(), o += `-${ne(s)}`) : o += ne(s), s.currentChar() === xe && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
343
343
|
}
|
|
344
|
-
function oe(
|
|
345
|
-
return
|
|
344
|
+
function oe(s) {
|
|
345
|
+
return s !== cn && s !== ye;
|
|
346
346
|
}
|
|
347
|
-
function fe(
|
|
348
|
-
|
|
347
|
+
function fe(s) {
|
|
348
|
+
D(s), w(s, "'");
|
|
349
349
|
let o = "", _ = "";
|
|
350
|
-
for (; o =
|
|
351
|
-
o === "\\" ? _ += q(
|
|
352
|
-
const
|
|
353
|
-
return
|
|
350
|
+
for (; o = d(s, oe); )
|
|
351
|
+
o === "\\" ? _ += q(s) : _ += o;
|
|
352
|
+
const R = s.currentChar();
|
|
353
|
+
return R === ye || R === xe ? (T(re.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), R === ye && (s.next(), w(s, "'")), _) : (w(s, "'"), _);
|
|
354
354
|
}
|
|
355
|
-
function q(
|
|
356
|
-
const o =
|
|
355
|
+
function q(s) {
|
|
356
|
+
const o = s.currentChar();
|
|
357
357
|
switch (o) {
|
|
358
358
|
case "\\":
|
|
359
359
|
case "'":
|
|
360
|
-
return
|
|
360
|
+
return s.next(), `\\${o}`;
|
|
361
361
|
case "u":
|
|
362
|
-
return
|
|
362
|
+
return De(s, o, 4);
|
|
363
363
|
case "U":
|
|
364
|
-
return
|
|
364
|
+
return De(s, o, 6);
|
|
365
365
|
default:
|
|
366
|
-
return T(
|
|
366
|
+
return T(re.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
|
|
371
|
-
let
|
|
369
|
+
function De(s, o, _) {
|
|
370
|
+
w(s, o);
|
|
371
|
+
let R = "";
|
|
372
372
|
for (let M = 0; M < _; M++) {
|
|
373
|
-
const P = B(
|
|
373
|
+
const P = B(s);
|
|
374
374
|
if (!P) {
|
|
375
|
-
T(
|
|
375
|
+
T(re.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${R}${s.currentChar()}`);
|
|
376
376
|
break;
|
|
377
377
|
}
|
|
378
|
-
|
|
378
|
+
R += P;
|
|
379
379
|
}
|
|
380
|
-
return `\\${o}${
|
|
380
|
+
return `\\${o}${R}`;
|
|
381
381
|
}
|
|
382
|
-
function K(
|
|
383
|
-
return
|
|
382
|
+
function K(s) {
|
|
383
|
+
return s !== "{" && s !== "}" && s !== Pe && s !== ye;
|
|
384
384
|
}
|
|
385
|
-
function pe(
|
|
386
|
-
|
|
385
|
+
function pe(s) {
|
|
386
|
+
D(s);
|
|
387
387
|
let o = "", _ = "";
|
|
388
|
-
for (; o =
|
|
388
|
+
for (; o = d(s, K); )
|
|
389
389
|
_ += o;
|
|
390
390
|
return _;
|
|
391
391
|
}
|
|
392
|
-
function Je(
|
|
392
|
+
function Je(s) {
|
|
393
393
|
let o = "", _ = "";
|
|
394
|
-
for (; o = U(
|
|
394
|
+
for (; o = U(s); )
|
|
395
395
|
_ += o;
|
|
396
396
|
return _;
|
|
397
397
|
}
|
|
398
|
-
function Ke(
|
|
398
|
+
function Ke(s) {
|
|
399
399
|
const o = (_) => {
|
|
400
|
-
const
|
|
401
|
-
return
|
|
400
|
+
const R = s.currentChar();
|
|
401
|
+
return R === "{" || R === "@" || R === "|" || R === "(" || R === ")" || !R || R === Pe ? _ : (_ += R, s.next(), o(_));
|
|
402
402
|
};
|
|
403
403
|
return o("");
|
|
404
404
|
}
|
|
405
|
-
function Ve(
|
|
406
|
-
|
|
407
|
-
const o =
|
|
408
|
-
|
|
405
|
+
function Ve(s) {
|
|
406
|
+
D(s);
|
|
407
|
+
const o = w(
|
|
408
|
+
s,
|
|
409
409
|
"|"
|
|
410
410
|
/* TokenChars.Pipe */
|
|
411
411
|
);
|
|
412
|
-
return
|
|
412
|
+
return D(s), o;
|
|
413
413
|
}
|
|
414
|
-
function Fe(
|
|
414
|
+
function Fe(s, o) {
|
|
415
415
|
let _ = null;
|
|
416
|
-
switch (
|
|
416
|
+
switch (s.currentChar()) {
|
|
417
417
|
case "{":
|
|
418
|
-
return o.braceNest >= 1 && T(
|
|
418
|
+
return o.braceNest >= 1 && T(re.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), s.next(), _ = N(
|
|
419
419
|
o,
|
|
420
420
|
2,
|
|
421
421
|
"{"
|
|
422
422
|
/* TokenChars.BraceLeft */
|
|
423
|
-
),
|
|
423
|
+
), D(s), o.braceNest++, _;
|
|
424
424
|
case "}":
|
|
425
|
-
return o.braceNest > 0 && o.currentType === 2 && T(
|
|
425
|
+
return o.braceNest > 0 && o.currentType === 2 && T(re.EMPTY_PLACEHOLDER, a(), 0), s.next(), _ = N(
|
|
426
426
|
o,
|
|
427
427
|
3,
|
|
428
428
|
"}"
|
|
429
429
|
/* TokenChars.BraceRight */
|
|
430
|
-
), o.braceNest--, o.braceNest > 0 &&
|
|
430
|
+
), o.braceNest--, o.braceNest > 0 && D(s), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), _;
|
|
431
431
|
case "@":
|
|
432
|
-
return o.braceNest > 0 && T(
|
|
432
|
+
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = Ce(s, o) || F(o), o.braceNest = 0, _;
|
|
433
433
|
default: {
|
|
434
434
|
let M = !0, P = !0, v = !0;
|
|
435
|
-
if (X(
|
|
436
|
-
return o.braceNest > 0 && T(
|
|
435
|
+
if (X(s))
|
|
436
|
+
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = N(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
437
437
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
438
|
-
return T(
|
|
439
|
-
if (M =
|
|
440
|
-
return _ = N(o, 4, _e(
|
|
441
|
-
if (P = c(
|
|
442
|
-
return _ = N(o, 5, ce(
|
|
443
|
-
if (v = b(
|
|
444
|
-
return _ = N(o, 6, fe(
|
|
438
|
+
return T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, Ye(s, o);
|
|
439
|
+
if (M = S(s, o))
|
|
440
|
+
return _ = N(o, 4, _e(s)), D(s), _;
|
|
441
|
+
if (P = c(s, o))
|
|
442
|
+
return _ = N(o, 5, ce(s)), D(s), _;
|
|
443
|
+
if (v = b(s, o))
|
|
444
|
+
return _ = N(o, 6, fe(s)), D(s), _;
|
|
445
445
|
if (!M && !P && !v)
|
|
446
|
-
return _ = N(o, 12, pe(
|
|
446
|
+
return _ = N(o, 12, pe(s)), T(re.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, _.value), D(s), _;
|
|
447
447
|
break;
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
return _;
|
|
451
451
|
}
|
|
452
|
-
function Ce(
|
|
452
|
+
function Ce(s, o) {
|
|
453
453
|
const { currentType: _ } = o;
|
|
454
|
-
let
|
|
455
|
-
const M =
|
|
456
|
-
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M ===
|
|
454
|
+
let R = null;
|
|
455
|
+
const M = s.currentChar();
|
|
456
|
+
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M === ye || M === Pe) && T(re.INVALID_LINKED_FORMAT, a(), 0), M) {
|
|
457
457
|
case "@":
|
|
458
|
-
return
|
|
458
|
+
return s.next(), R = N(
|
|
459
459
|
o,
|
|
460
460
|
7,
|
|
461
461
|
"@"
|
|
462
462
|
/* TokenChars.LinkedAlias */
|
|
463
|
-
), o.inLinked = !0,
|
|
463
|
+
), o.inLinked = !0, R;
|
|
464
464
|
case ".":
|
|
465
|
-
return
|
|
465
|
+
return D(s), s.next(), N(
|
|
466
466
|
o,
|
|
467
467
|
8,
|
|
468
468
|
"."
|
|
469
469
|
/* TokenChars.LinkedDot */
|
|
470
470
|
);
|
|
471
471
|
case ":":
|
|
472
|
-
return
|
|
472
|
+
return D(s), s.next(), N(
|
|
473
473
|
o,
|
|
474
474
|
9,
|
|
475
475
|
":"
|
|
476
476
|
/* TokenChars.LinkedDelimiter */
|
|
477
477
|
);
|
|
478
478
|
default:
|
|
479
|
-
return X(
|
|
479
|
+
return X(s) ? (R = N(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, R) : I(s, o) || k(s, o) ? (D(s), Ce(s, o)) : p(s, o) ? (D(s), N(o, 11, Je(s))) : A(s, o) ? (D(s), M === "{" ? Fe(s, o) || R : N(o, 10, Ke(s))) : (_ === 7 && T(re.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, Ye(s, o));
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
function Ye(
|
|
482
|
+
function Ye(s, o) {
|
|
483
483
|
let _ = {
|
|
484
484
|
type: 13
|
|
485
485
|
/* TokenTypes.EOF */
|
|
486
486
|
};
|
|
487
487
|
if (o.braceNest > 0)
|
|
488
|
-
return Fe(
|
|
488
|
+
return Fe(s, o) || F(o);
|
|
489
489
|
if (o.inLinked)
|
|
490
|
-
return Ce(
|
|
491
|
-
switch (
|
|
490
|
+
return Ce(s, o) || F(o);
|
|
491
|
+
switch (s.currentChar()) {
|
|
492
492
|
case "{":
|
|
493
|
-
return Fe(
|
|
493
|
+
return Fe(s, o) || F(o);
|
|
494
494
|
case "}":
|
|
495
|
-
return T(
|
|
495
|
+
return T(re.UNBALANCED_CLOSING_BRACE, a(), 0), s.next(), N(
|
|
496
496
|
o,
|
|
497
497
|
3,
|
|
498
498
|
"}"
|
|
499
499
|
/* TokenChars.BraceRight */
|
|
500
500
|
);
|
|
501
501
|
case "@":
|
|
502
|
-
return Ce(
|
|
502
|
+
return Ce(s, o) || F(o);
|
|
503
503
|
default: {
|
|
504
|
-
if (X(
|
|
505
|
-
return _ = N(o, 1, Ve(
|
|
506
|
-
if (x(
|
|
507
|
-
return N(o, 0, Q(
|
|
504
|
+
if (X(s))
|
|
505
|
+
return _ = N(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
506
|
+
if (x(s))
|
|
507
|
+
return N(o, 0, Q(s));
|
|
508
508
|
break;
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
511
|
return _;
|
|
512
512
|
}
|
|
513
513
|
function O() {
|
|
514
|
-
const { currentType:
|
|
515
|
-
return i.lastType =
|
|
514
|
+
const { currentType: s, offset: o, startLoc: _, endLoc: R } = i;
|
|
515
|
+
return i.lastType = s, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc = R, i.offset = l(), i.startLoc = a(), r.currentChar() === xe ? N(
|
|
516
516
|
i,
|
|
517
517
|
13
|
|
518
518
|
/* TokenTypes.EOF */
|
|
519
|
-
) : Ye(
|
|
519
|
+
) : Ye(r, i);
|
|
520
520
|
}
|
|
521
521
|
return {
|
|
522
522
|
nextToken: O,
|
|
@@ -525,118 +525,118 @@ function zs(e, t = {}) {
|
|
|
525
525
|
context: g
|
|
526
526
|
};
|
|
527
527
|
}
|
|
528
|
-
const
|
|
529
|
-
function
|
|
528
|
+
const Qr = "parser", qr = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
529
|
+
function es(e, t, n) {
|
|
530
530
|
switch (e) {
|
|
531
531
|
case "\\\\":
|
|
532
532
|
return "\\";
|
|
533
533
|
case "\\'":
|
|
534
534
|
return "'";
|
|
535
535
|
default: {
|
|
536
|
-
const
|
|
537
|
-
return
|
|
536
|
+
const r = parseInt(t || n, 16);
|
|
537
|
+
return r <= 55295 || r >= 57344 ? String.fromCodePoint(r) : "�";
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function ts(e = {}) {
|
|
542
542
|
const t = e.location !== !1, { onError: n } = e;
|
|
543
|
-
function
|
|
543
|
+
function r(f, h, S, c, ...b) {
|
|
544
544
|
const I = f.currentPosition();
|
|
545
545
|
if (I.offset += c, I.column += c, n) {
|
|
546
|
-
const p = t ? Ft(
|
|
547
|
-
domain:
|
|
546
|
+
const p = t ? Ft(S, I) : null, k = Tt(h, p, {
|
|
547
|
+
domain: Qr,
|
|
548
548
|
args: b
|
|
549
549
|
});
|
|
550
|
-
n(
|
|
550
|
+
n(k);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
function l(f, h,
|
|
553
|
+
function l(f, h, S) {
|
|
554
554
|
const c = { type: f };
|
|
555
|
-
return t && (c.start = h, c.end = h, c.loc = { start:
|
|
555
|
+
return t && (c.start = h, c.end = h, c.loc = { start: S, end: S }), c;
|
|
556
556
|
}
|
|
557
|
-
function a(f, h,
|
|
558
|
-
t && (f.end = h, f.loc && (f.loc.end =
|
|
557
|
+
function a(f, h, S, c) {
|
|
558
|
+
t && (f.end = h, f.loc && (f.loc.end = S));
|
|
559
559
|
}
|
|
560
|
-
function
|
|
561
|
-
const
|
|
560
|
+
function m(f, h) {
|
|
561
|
+
const S = f.context(), c = l(3, S.offset, S.startLoc);
|
|
562
562
|
return c.value = h, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
563
563
|
}
|
|
564
564
|
function u(f, h) {
|
|
565
|
-
const
|
|
565
|
+
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(5, c, b);
|
|
566
566
|
return I.index = parseInt(h, 10), f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
567
567
|
}
|
|
568
568
|
function i(f, h) {
|
|
569
|
-
const
|
|
569
|
+
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(4, c, b);
|
|
570
570
|
return I.key = h, f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
571
571
|
}
|
|
572
572
|
function g(f, h) {
|
|
573
|
-
const
|
|
574
|
-
return I.value = h.replace(
|
|
573
|
+
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(9, c, b);
|
|
574
|
+
return I.value = h.replace(qr, es), f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
575
575
|
}
|
|
576
|
-
function
|
|
577
|
-
const h = f.nextToken(),
|
|
578
|
-
return h.type !== 11 ? (
|
|
576
|
+
function y(f) {
|
|
577
|
+
const h = f.nextToken(), S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(8, c, b);
|
|
578
|
+
return h.type !== 11 ? (r(f, re.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), I.value = "", a(I, c, b), {
|
|
579
579
|
nextConsumeToken: h,
|
|
580
580
|
node: I
|
|
581
|
-
}) : (h.value == null &&
|
|
581
|
+
}) : (h.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, Re(h)), I.value = h.value || "", a(I, f.currentOffset(), f.currentPosition()), {
|
|
582
582
|
node: I
|
|
583
583
|
});
|
|
584
584
|
}
|
|
585
585
|
function T(f, h) {
|
|
586
|
-
const
|
|
586
|
+
const S = f.context(), c = l(7, S.offset, S.startLoc);
|
|
587
587
|
return c.value = h, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
588
588
|
}
|
|
589
589
|
function N(f) {
|
|
590
|
-
const h = f.context(),
|
|
590
|
+
const h = f.context(), S = l(6, h.offset, h.startLoc);
|
|
591
591
|
let c = f.nextToken();
|
|
592
592
|
if (c.type === 8) {
|
|
593
|
-
const b =
|
|
594
|
-
|
|
593
|
+
const b = y(f);
|
|
594
|
+
S.modifier = b.node, c = b.nextConsumeToken || f.nextToken();
|
|
595
595
|
}
|
|
596
|
-
switch (c.type !== 9 &&
|
|
596
|
+
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), c = f.nextToken(), c.type === 2 && (c = f.nextToken()), c.type) {
|
|
597
597
|
case 10:
|
|
598
|
-
c.value == null &&
|
|
598
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), S.key = T(f, c.value || "");
|
|
599
599
|
break;
|
|
600
600
|
case 4:
|
|
601
|
-
c.value == null &&
|
|
601
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), S.key = i(f, c.value || "");
|
|
602
602
|
break;
|
|
603
603
|
case 5:
|
|
604
|
-
c.value == null &&
|
|
604
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), S.key = u(f, c.value || "");
|
|
605
605
|
break;
|
|
606
606
|
case 6:
|
|
607
|
-
c.value == null &&
|
|
607
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), S.key = g(f, c.value || "");
|
|
608
608
|
break;
|
|
609
609
|
default: {
|
|
610
|
-
|
|
610
|
+
r(f, re.UNEXPECTED_EMPTY_LINKED_KEY, h.lastStartLoc, 0);
|
|
611
611
|
const b = f.context(), I = l(7, b.offset, b.startLoc);
|
|
612
|
-
return I.value = "", a(I, b.offset, b.startLoc),
|
|
612
|
+
return I.value = "", a(I, b.offset, b.startLoc), S.key = I, a(S, b.offset, b.startLoc), {
|
|
613
613
|
nextConsumeToken: c,
|
|
614
|
-
node:
|
|
614
|
+
node: S
|
|
615
615
|
};
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
return a(
|
|
619
|
-
node:
|
|
618
|
+
return a(S, f.currentOffset(), f.currentPosition()), {
|
|
619
|
+
node: S
|
|
620
620
|
};
|
|
621
621
|
}
|
|
622
622
|
function F(f) {
|
|
623
|
-
const h = f.context(),
|
|
623
|
+
const h = f.context(), S = h.currentType === 1 ? f.currentOffset() : h.offset, c = h.currentType === 1 ? h.endLoc : h.startLoc, b = l(2, S, c);
|
|
624
624
|
b.items = [];
|
|
625
625
|
let I = null;
|
|
626
626
|
do {
|
|
627
|
-
const
|
|
628
|
-
switch (I = null,
|
|
627
|
+
const A = I || f.nextToken();
|
|
628
|
+
switch (I = null, A.type) {
|
|
629
629
|
case 0:
|
|
630
|
-
|
|
630
|
+
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(A)), b.items.push(m(f, A.value || ""));
|
|
631
631
|
break;
|
|
632
632
|
case 5:
|
|
633
|
-
|
|
633
|
+
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(A)), b.items.push(u(f, A.value || ""));
|
|
634
634
|
break;
|
|
635
635
|
case 4:
|
|
636
|
-
|
|
636
|
+
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(A)), b.items.push(i(f, A.value || ""));
|
|
637
637
|
break;
|
|
638
638
|
case 6:
|
|
639
|
-
|
|
639
|
+
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(A)), b.items.push(g(f, A.value || ""));
|
|
640
640
|
break;
|
|
641
641
|
case 7: {
|
|
642
642
|
const X = N(f);
|
|
@@ -645,37 +645,37 @@ function tr(e = {}) {
|
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
} while (h.currentType !== 13 && h.currentType !== 1);
|
|
648
|
-
const p = h.currentType === 1 ? h.lastOffset : f.currentOffset(),
|
|
649
|
-
return a(b, p,
|
|
648
|
+
const p = h.currentType === 1 ? h.lastOffset : f.currentOffset(), k = h.currentType === 1 ? h.lastEndLoc : f.currentPosition();
|
|
649
|
+
return a(b, p, k), b;
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function w(f, h, S, c) {
|
|
652
652
|
const b = f.context();
|
|
653
653
|
let I = c.items.length === 0;
|
|
654
|
-
const p = l(1, h,
|
|
654
|
+
const p = l(1, h, S);
|
|
655
655
|
p.cases = [], p.cases.push(c);
|
|
656
656
|
do {
|
|
657
|
-
const
|
|
658
|
-
I || (I =
|
|
657
|
+
const k = F(f);
|
|
658
|
+
I || (I = k.items.length === 0), p.cases.push(k);
|
|
659
659
|
} while (b.currentType !== 13);
|
|
660
|
-
return I &&
|
|
660
|
+
return I && r(f, re.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), a(p, f.currentOffset(), f.currentPosition()), p;
|
|
661
661
|
}
|
|
662
662
|
function L(f) {
|
|
663
|
-
const h = f.context(), { offset:
|
|
664
|
-
return h.currentType === 13 ? b :
|
|
663
|
+
const h = f.context(), { offset: S, startLoc: c } = h, b = F(f);
|
|
664
|
+
return h.currentType === 13 ? b : w(f, S, c, b);
|
|
665
665
|
}
|
|
666
|
-
function
|
|
667
|
-
const h =
|
|
668
|
-
return t && c.loc && (c.loc.source = f), c.body = L(h), e.onCacheKey && (c.cacheKey = e.onCacheKey(f)),
|
|
666
|
+
function D(f) {
|
|
667
|
+
const h = zr(f, Ie({}, e)), S = h.context(), c = l(0, S.offset, S.startLoc);
|
|
668
|
+
return t && c.loc && (c.loc.source = f), c.body = L(h), e.onCacheKey && (c.cacheKey = e.onCacheKey(f)), S.currentType !== 13 && r(h, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, f[S.offset] || ""), a(c, h.currentOffset(), h.currentPosition()), c;
|
|
669
669
|
}
|
|
670
|
-
return { parse:
|
|
670
|
+
return { parse: D };
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function Re(e) {
|
|
673
673
|
if (e.type === 13)
|
|
674
674
|
return "EOF";
|
|
675
675
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
676
676
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function ns(e, t = {}) {
|
|
679
679
|
const n = {
|
|
680
680
|
ast: e,
|
|
681
681
|
helpers: /* @__PURE__ */ new Set()
|
|
@@ -727,36 +727,36 @@ function Jt(e, t) {
|
|
|
727
727
|
break;
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
|
-
function
|
|
731
|
-
const n =
|
|
730
|
+
function rs(e, t = {}) {
|
|
731
|
+
const n = ns(e);
|
|
732
732
|
n.helper(
|
|
733
733
|
"normalize"
|
|
734
734
|
/* HelperNameMap.NORMALIZE */
|
|
735
735
|
), e.body && Jt(e.body, n);
|
|
736
|
-
const
|
|
737
|
-
e.helpers = Array.from(
|
|
736
|
+
const r = n.context();
|
|
737
|
+
e.helpers = Array.from(r.helpers);
|
|
738
738
|
}
|
|
739
|
-
function
|
|
739
|
+
function ss(e) {
|
|
740
740
|
const t = e.body;
|
|
741
|
-
return t.type === 2 ?
|
|
741
|
+
return t.type === 2 ? mn(t) : t.cases.forEach((n) => mn(n)), e;
|
|
742
742
|
}
|
|
743
|
-
function
|
|
743
|
+
function mn(e) {
|
|
744
744
|
if (e.items.length === 1) {
|
|
745
745
|
const t = e.items[0];
|
|
746
746
|
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
747
747
|
} else {
|
|
748
748
|
const t = [];
|
|
749
749
|
for (let n = 0; n < e.items.length; n++) {
|
|
750
|
-
const
|
|
751
|
-
if (!(
|
|
750
|
+
const r = e.items[n];
|
|
751
|
+
if (!(r.type === 3 || r.type === 9) || r.value == null)
|
|
752
752
|
break;
|
|
753
|
-
t.push(
|
|
753
|
+
t.push(r.value);
|
|
754
754
|
}
|
|
755
755
|
if (t.length === e.items.length) {
|
|
756
756
|
e.static = $t(t);
|
|
757
757
|
for (let n = 0; n < e.items.length; n++) {
|
|
758
|
-
const
|
|
759
|
-
(
|
|
758
|
+
const r = e.items[n];
|
|
759
|
+
(r.type === 3 || r.type === 9) && delete r.value;
|
|
760
760
|
}
|
|
761
761
|
}
|
|
762
762
|
}
|
|
@@ -770,15 +770,15 @@ function Qe(e) {
|
|
|
770
770
|
}
|
|
771
771
|
case 1: {
|
|
772
772
|
const t = e, n = t.cases;
|
|
773
|
-
for (let
|
|
774
|
-
Qe(n[
|
|
773
|
+
for (let r = 0; r < n.length; r++)
|
|
774
|
+
Qe(n[r]);
|
|
775
775
|
t.c = n, delete t.cases;
|
|
776
776
|
break;
|
|
777
777
|
}
|
|
778
778
|
case 2: {
|
|
779
779
|
const t = e, n = t.items;
|
|
780
|
-
for (let
|
|
781
|
-
Qe(n[
|
|
780
|
+
for (let r = 0; r < n.length; r++)
|
|
781
|
+
Qe(n[r]);
|
|
782
782
|
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
783
783
|
break;
|
|
784
784
|
}
|
|
@@ -808,96 +808,96 @@ function Qe(e) {
|
|
|
808
808
|
}
|
|
809
809
|
delete e.type;
|
|
810
810
|
}
|
|
811
|
-
function
|
|
812
|
-
const { filename: n, breakLineCode:
|
|
811
|
+
function os(e, t) {
|
|
812
|
+
const { filename: n, breakLineCode: r, needIndent: l } = t, a = t.location !== !1, m = {
|
|
813
813
|
filename: n,
|
|
814
814
|
code: "",
|
|
815
815
|
column: 1,
|
|
816
816
|
line: 1,
|
|
817
817
|
offset: 0,
|
|
818
818
|
map: void 0,
|
|
819
|
-
breakLineCode:
|
|
819
|
+
breakLineCode: r,
|
|
820
820
|
needIndent: l,
|
|
821
821
|
indentLevel: 0
|
|
822
822
|
};
|
|
823
|
-
a && e.loc && (
|
|
824
|
-
const u = () =>
|
|
825
|
-
function i(L,
|
|
826
|
-
|
|
823
|
+
a && e.loc && (m.source = e.loc.source);
|
|
824
|
+
const u = () => m;
|
|
825
|
+
function i(L, D) {
|
|
826
|
+
m.code += L;
|
|
827
827
|
}
|
|
828
|
-
function g(L,
|
|
829
|
-
const f =
|
|
828
|
+
function g(L, D = !0) {
|
|
829
|
+
const f = D ? r : "";
|
|
830
830
|
i(l ? f + " ".repeat(L) : f);
|
|
831
831
|
}
|
|
832
|
-
function
|
|
833
|
-
const
|
|
834
|
-
L && g(
|
|
832
|
+
function y(L = !0) {
|
|
833
|
+
const D = ++m.indentLevel;
|
|
834
|
+
L && g(D);
|
|
835
835
|
}
|
|
836
836
|
function T(L = !0) {
|
|
837
|
-
const
|
|
838
|
-
L && g(
|
|
837
|
+
const D = --m.indentLevel;
|
|
838
|
+
L && g(D);
|
|
839
839
|
}
|
|
840
840
|
function N() {
|
|
841
|
-
g(
|
|
841
|
+
g(m.indentLevel);
|
|
842
842
|
}
|
|
843
843
|
return {
|
|
844
844
|
context: u,
|
|
845
845
|
push: i,
|
|
846
|
-
indent:
|
|
846
|
+
indent: y,
|
|
847
847
|
deindent: T,
|
|
848
848
|
newline: N,
|
|
849
849
|
helper: (L) => `_${L}`,
|
|
850
|
-
needIndent: () =>
|
|
850
|
+
needIndent: () => m.needIndent
|
|
851
851
|
};
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function as(e, t) {
|
|
854
854
|
const { helper: n } = e;
|
|
855
855
|
e.push(`${n(
|
|
856
856
|
"linked"
|
|
857
857
|
/* HelperNameMap.LINKED */
|
|
858
|
-
)}(`),
|
|
858
|
+
)}(`), st(e, t.key), t.modifier ? (e.push(", "), st(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
859
859
|
}
|
|
860
|
-
function
|
|
861
|
-
const { helper: n, needIndent:
|
|
860
|
+
function ls(e, t) {
|
|
861
|
+
const { helper: n, needIndent: r } = e;
|
|
862
862
|
e.push(`${n(
|
|
863
863
|
"normalize"
|
|
864
864
|
/* HelperNameMap.NORMALIZE */
|
|
865
|
-
)}([`), e.indent(
|
|
865
|
+
)}([`), e.indent(r());
|
|
866
866
|
const l = t.items.length;
|
|
867
|
-
for (let a = 0; a < l && (
|
|
867
|
+
for (let a = 0; a < l && (st(e, t.items[a]), a !== l - 1); a++)
|
|
868
868
|
e.push(", ");
|
|
869
|
-
e.deindent(
|
|
869
|
+
e.deindent(r()), e.push("])");
|
|
870
870
|
}
|
|
871
|
-
function
|
|
872
|
-
const { helper: n, needIndent:
|
|
871
|
+
function is(e, t) {
|
|
872
|
+
const { helper: n, needIndent: r } = e;
|
|
873
873
|
if (t.cases.length > 1) {
|
|
874
874
|
e.push(`${n(
|
|
875
875
|
"plural"
|
|
876
876
|
/* HelperNameMap.PLURAL */
|
|
877
|
-
)}([`), e.indent(
|
|
877
|
+
)}([`), e.indent(r());
|
|
878
878
|
const l = t.cases.length;
|
|
879
|
-
for (let a = 0; a < l && (
|
|
879
|
+
for (let a = 0; a < l && (st(e, t.cases[a]), a !== l - 1); a++)
|
|
880
880
|
e.push(", ");
|
|
881
|
-
e.deindent(
|
|
881
|
+
e.deindent(r()), e.push("])");
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
|
-
function
|
|
885
|
-
t.body ?
|
|
884
|
+
function cs(e, t) {
|
|
885
|
+
t.body ? st(e, t.body) : e.push("null");
|
|
886
886
|
}
|
|
887
|
-
function
|
|
887
|
+
function st(e, t) {
|
|
888
888
|
const { helper: n } = e;
|
|
889
889
|
switch (t.type) {
|
|
890
890
|
case 0:
|
|
891
|
-
|
|
891
|
+
cs(e, t);
|
|
892
892
|
break;
|
|
893
893
|
case 1:
|
|
894
|
-
|
|
894
|
+
is(e, t);
|
|
895
895
|
break;
|
|
896
896
|
case 2:
|
|
897
|
-
|
|
897
|
+
ls(e, t);
|
|
898
898
|
break;
|
|
899
899
|
case 6:
|
|
900
|
-
|
|
900
|
+
as(e, t);
|
|
901
901
|
break;
|
|
902
902
|
case 8:
|
|
903
903
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -931,16 +931,16 @@ function rt(e, t) {
|
|
|
931
931
|
break;
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
|
-
const
|
|
935
|
-
const n = Z(t.mode) ? t.mode : "normal",
|
|
934
|
+
const us = (e, t = {}) => {
|
|
935
|
+
const n = Z(t.mode) ? t.mode : "normal", r = Z(t.filename) ? t.filename : "message.intl";
|
|
936
936
|
t.sourceMap;
|
|
937
937
|
const l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
938
|
-
`, a = t.needIndent ? t.needIndent : n !== "arrow",
|
|
939
|
-
filename:
|
|
938
|
+
`, a = t.needIndent ? t.needIndent : n !== "arrow", m = e.helpers || [], u = os(e, {
|
|
939
|
+
filename: r,
|
|
940
940
|
breakLineCode: l,
|
|
941
941
|
needIndent: a
|
|
942
942
|
});
|
|
943
|
-
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a),
|
|
943
|
+
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), m.length > 0 && (u.push(`const { ${$t(m.map((y) => `${y}: _${y}`), ", ")} } = ctx`), u.newline()), u.push("return "), st(u, e), u.deindent(a), u.push("}"), delete e.helpers;
|
|
944
944
|
const { code: i, map: g } = u.context();
|
|
945
945
|
return {
|
|
946
946
|
ast: e,
|
|
@@ -949,57 +949,57 @@ const ur = (e, t = {}) => {
|
|
|
949
949
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
950
950
|
};
|
|
951
951
|
};
|
|
952
|
-
function
|
|
953
|
-
const n = Ie({}, t),
|
|
954
|
-
return
|
|
952
|
+
function ms(e, t = {}) {
|
|
953
|
+
const n = Ie({}, t), r = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize, u = ts(n).parse(e);
|
|
954
|
+
return r ? (a && ss(u), l && Qe(u), { ast: u, code: "" }) : (rs(u, n), us(u, n));
|
|
955
955
|
}
|
|
956
|
-
var
|
|
957
|
-
function
|
|
956
|
+
var ds = { env: { NODE_ENV: "production" } };
|
|
957
|
+
function fs() {
|
|
958
958
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Xe().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Xe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
959
959
|
}
|
|
960
960
|
function Lt(e) {
|
|
961
|
-
return (n) =>
|
|
961
|
+
return (n) => _s(n, e);
|
|
962
962
|
}
|
|
963
|
-
function
|
|
964
|
-
const n =
|
|
963
|
+
function _s(e, t) {
|
|
964
|
+
const n = vs(t);
|
|
965
965
|
if (n == null)
|
|
966
966
|
throw it(
|
|
967
967
|
0
|
|
968
968
|
/* NodeTypes.Resource */
|
|
969
969
|
);
|
|
970
970
|
if (Kt(n) === 1) {
|
|
971
|
-
const a =
|
|
972
|
-
return e.plural(a.reduce((
|
|
973
|
-
...
|
|
974
|
-
|
|
971
|
+
const a = bs(n);
|
|
972
|
+
return e.plural(a.reduce((m, u) => [
|
|
973
|
+
...m,
|
|
974
|
+
dn(e, u)
|
|
975
975
|
], []));
|
|
976
976
|
} else
|
|
977
|
-
return
|
|
977
|
+
return dn(e, n);
|
|
978
978
|
}
|
|
979
|
-
const
|
|
980
|
-
function
|
|
981
|
-
return Ge(e,
|
|
979
|
+
const ps = ["b", "body"];
|
|
980
|
+
function vs(e) {
|
|
981
|
+
return Ge(e, ps);
|
|
982
982
|
}
|
|
983
|
-
const
|
|
984
|
-
function
|
|
985
|
-
return Ge(e,
|
|
983
|
+
const hs = ["c", "cases"];
|
|
984
|
+
function bs(e) {
|
|
985
|
+
return Ge(e, hs, []);
|
|
986
986
|
}
|
|
987
|
-
function
|
|
988
|
-
const n =
|
|
987
|
+
function dn(e, t) {
|
|
988
|
+
const n = Is(t);
|
|
989
989
|
if (n != null)
|
|
990
990
|
return e.type === "text" ? n : e.normalize([n]);
|
|
991
991
|
{
|
|
992
|
-
const
|
|
993
|
-
return e.normalize(
|
|
992
|
+
const r = Es(t).reduce((l, a) => [...l, Pt(e, a)], []);
|
|
993
|
+
return e.normalize(r);
|
|
994
994
|
}
|
|
995
995
|
}
|
|
996
|
-
const
|
|
997
|
-
function
|
|
998
|
-
return Ge(e,
|
|
996
|
+
const gs = ["s", "static"];
|
|
997
|
+
function Is(e) {
|
|
998
|
+
return Ge(e, gs);
|
|
999
999
|
}
|
|
1000
|
-
const
|
|
1001
|
-
function
|
|
1002
|
-
return Ge(e,
|
|
1000
|
+
const ys = ["i", "items"];
|
|
1001
|
+
function Es(e) {
|
|
1002
|
+
return Ge(e, ys, []);
|
|
1003
1003
|
}
|
|
1004
1004
|
function Pt(e, t) {
|
|
1005
1005
|
const n = Kt(t);
|
|
@@ -1009,23 +1009,23 @@ function Pt(e, t) {
|
|
|
1009
1009
|
case 9:
|
|
1010
1010
|
return _t(t, n);
|
|
1011
1011
|
case 4: {
|
|
1012
|
-
const
|
|
1013
|
-
if (
|
|
1014
|
-
return e.interpolate(e.named(
|
|
1015
|
-
if (
|
|
1016
|
-
return e.interpolate(e.named(
|
|
1012
|
+
const r = t;
|
|
1013
|
+
if (Ae(r, "k") && r.k)
|
|
1014
|
+
return e.interpolate(e.named(r.k));
|
|
1015
|
+
if (Ae(r, "key") && r.key)
|
|
1016
|
+
return e.interpolate(e.named(r.key));
|
|
1017
1017
|
throw it(n);
|
|
1018
1018
|
}
|
|
1019
1019
|
case 5: {
|
|
1020
|
-
const
|
|
1021
|
-
if (
|
|
1022
|
-
return e.interpolate(e.list(
|
|
1023
|
-
if (
|
|
1024
|
-
return e.interpolate(e.list(
|
|
1020
|
+
const r = t;
|
|
1021
|
+
if (Ae(r, "i") && ge(r.i))
|
|
1022
|
+
return e.interpolate(e.list(r.i));
|
|
1023
|
+
if (Ae(r, "index") && ge(r.index))
|
|
1024
|
+
return e.interpolate(e.list(r.index));
|
|
1025
1025
|
throw it(n);
|
|
1026
1026
|
}
|
|
1027
1027
|
case 6: {
|
|
1028
|
-
const
|
|
1028
|
+
const r = t, l = Os(r), a = As(r);
|
|
1029
1029
|
return e.linked(Pt(e, a), l ? Pt(e, l) : void 0, e.type);
|
|
1030
1030
|
}
|
|
1031
1031
|
case 7:
|
|
@@ -1036,24 +1036,24 @@ function Pt(e, t) {
|
|
|
1036
1036
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
|
-
const
|
|
1039
|
+
const Ns = ["t", "type"];
|
|
1040
1040
|
function Kt(e) {
|
|
1041
|
-
return Ge(e,
|
|
1041
|
+
return Ge(e, Ns);
|
|
1042
1042
|
}
|
|
1043
|
-
const
|
|
1043
|
+
const Cs = ["v", "value"];
|
|
1044
1044
|
function _t(e, t) {
|
|
1045
|
-
const n = Ge(e,
|
|
1045
|
+
const n = Ge(e, Cs);
|
|
1046
1046
|
if (n)
|
|
1047
1047
|
return n;
|
|
1048
1048
|
throw it(t);
|
|
1049
1049
|
}
|
|
1050
|
-
const
|
|
1051
|
-
function
|
|
1052
|
-
return Ge(e,
|
|
1050
|
+
const Ts = ["m", "modifier"];
|
|
1051
|
+
function Os(e) {
|
|
1052
|
+
return Ge(e, Ts);
|
|
1053
1053
|
}
|
|
1054
|
-
const
|
|
1055
|
-
function
|
|
1056
|
-
const t = Ge(e,
|
|
1054
|
+
const Ss = ["k", "key"];
|
|
1055
|
+
function As(e) {
|
|
1056
|
+
const t = Ge(e, Ss);
|
|
1057
1057
|
if (t)
|
|
1058
1058
|
return t;
|
|
1059
1059
|
throw it(
|
|
@@ -1062,9 +1062,9 @@ function Sr(e) {
|
|
|
1062
1062
|
);
|
|
1063
1063
|
}
|
|
1064
1064
|
function Ge(e, t, n) {
|
|
1065
|
-
for (let
|
|
1066
|
-
const l = t[
|
|
1067
|
-
if (
|
|
1065
|
+
for (let r = 0; r < t.length; r++) {
|
|
1066
|
+
const l = t[r];
|
|
1067
|
+
if (Ae(e, l) && e[l] != null)
|
|
1068
1068
|
return e[l];
|
|
1069
1069
|
}
|
|
1070
1070
|
return n;
|
|
@@ -1072,45 +1072,45 @@ function Ge(e, t, n) {
|
|
|
1072
1072
|
function it(e) {
|
|
1073
1073
|
return new Error(`unhandled node type: ${e}`);
|
|
1074
1074
|
}
|
|
1075
|
-
const
|
|
1076
|
-
let pt =
|
|
1075
|
+
const Ls = (e) => e;
|
|
1076
|
+
let pt = se();
|
|
1077
1077
|
function ot(e) {
|
|
1078
|
-
return te(e) && Kt(e) === 0 && (
|
|
1078
|
+
return te(e) && Kt(e) === 0 && (Ae(e, "b") || Ae(e, "body"));
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1080
|
+
function Rs(e, t = {}) {
|
|
1081
1081
|
let n = !1;
|
|
1082
|
-
const
|
|
1082
|
+
const r = t.onError || Yr;
|
|
1083
1083
|
return t.onError = (l) => {
|
|
1084
|
-
n = !0,
|
|
1085
|
-
}, { ...
|
|
1084
|
+
n = !0, r(l);
|
|
1085
|
+
}, { ...ms(e, t), detectError: n };
|
|
1086
1086
|
}
|
|
1087
1087
|
// @__NO_SIDE_EFFECTS__
|
|
1088
|
-
function
|
|
1088
|
+
function ks(e, t) {
|
|
1089
1089
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && Z(e)) {
|
|
1090
1090
|
ve(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1091
|
-
const
|
|
1091
|
+
const r = (t.onCacheKey || Ls)(e), l = pt[r];
|
|
1092
1092
|
if (l)
|
|
1093
1093
|
return l;
|
|
1094
|
-
const { ast: a, detectError:
|
|
1094
|
+
const { ast: a, detectError: m } = Rs(e, {
|
|
1095
1095
|
...t,
|
|
1096
|
-
location:
|
|
1096
|
+
location: ds.env.NODE_ENV !== "production",
|
|
1097
1097
|
jit: !0
|
|
1098
1098
|
}), u = Lt(a);
|
|
1099
|
-
return
|
|
1099
|
+
return m ? u : pt[r] = u;
|
|
1100
1100
|
} else {
|
|
1101
1101
|
const n = e.cacheKey;
|
|
1102
1102
|
if (n) {
|
|
1103
|
-
const
|
|
1104
|
-
return
|
|
1103
|
+
const r = pt[n];
|
|
1104
|
+
return r || (pt[n] = Lt(e));
|
|
1105
1105
|
} else
|
|
1106
1106
|
return Lt(e);
|
|
1107
1107
|
}
|
|
1108
1108
|
}
|
|
1109
1109
|
let ct = null;
|
|
1110
|
-
function
|
|
1110
|
+
function Ms(e) {
|
|
1111
1111
|
ct = e;
|
|
1112
1112
|
}
|
|
1113
|
-
function
|
|
1113
|
+
function ws(e, t, n) {
|
|
1114
1114
|
ct && ct.emit("i18n:init", {
|
|
1115
1115
|
timestamp: Date.now(),
|
|
1116
1116
|
i18n: e,
|
|
@@ -1118,87 +1118,87 @@ function Dr(e, t, n) {
|
|
|
1118
1118
|
meta: n
|
|
1119
1119
|
});
|
|
1120
1120
|
}
|
|
1121
|
-
const
|
|
1122
|
-
function
|
|
1121
|
+
const Ds = /* @__PURE__ */ Fs("function:translate");
|
|
1122
|
+
function Fs(e) {
|
|
1123
1123
|
return (t) => ct && ct.emit(e, t);
|
|
1124
1124
|
}
|
|
1125
1125
|
const je = {
|
|
1126
|
-
INVALID_ARGUMENT:
|
|
1126
|
+
INVALID_ARGUMENT: Zr,
|
|
1127
1127
|
// 17
|
|
1128
1128
|
INVALID_DATE_ARGUMENT: 18,
|
|
1129
1129
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
1130
1130
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1131
1131
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1132
1132
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1133
|
-
},
|
|
1133
|
+
}, Ps = 24;
|
|
1134
1134
|
function Ue(e) {
|
|
1135
1135
|
return Tt(e, null, void 0);
|
|
1136
1136
|
}
|
|
1137
1137
|
function zt(e, t) {
|
|
1138
1138
|
return t.locale != null ? fn(t.locale) : fn(e.locale);
|
|
1139
1139
|
}
|
|
1140
|
-
let
|
|
1140
|
+
let Rt;
|
|
1141
1141
|
function fn(e) {
|
|
1142
1142
|
if (Z(e))
|
|
1143
1143
|
return e;
|
|
1144
|
-
if (
|
|
1145
|
-
if (e.resolvedOnce &&
|
|
1146
|
-
return
|
|
1144
|
+
if (de(e)) {
|
|
1145
|
+
if (e.resolvedOnce && Rt != null)
|
|
1146
|
+
return Rt;
|
|
1147
1147
|
if (e.constructor.name === "Function") {
|
|
1148
1148
|
const t = e();
|
|
1149
|
-
if (
|
|
1149
|
+
if (Vr(t))
|
|
1150
1150
|
throw Ue(je.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1151
|
-
return
|
|
1151
|
+
return Rt = t;
|
|
1152
1152
|
} else
|
|
1153
1153
|
throw Ue(je.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1154
1154
|
} else
|
|
1155
1155
|
throw Ue(je.NOT_SUPPORT_LOCALE_TYPE);
|
|
1156
1156
|
}
|
|
1157
|
-
function
|
|
1157
|
+
function js(e, t, n) {
|
|
1158
1158
|
return [.../* @__PURE__ */ new Set([
|
|
1159
1159
|
n,
|
|
1160
1160
|
...be(t) ? t : te(t) ? Object.keys(t) : Z(t) ? [t] : [n]
|
|
1161
1161
|
])];
|
|
1162
1162
|
}
|
|
1163
1163
|
function Hn(e, t, n) {
|
|
1164
|
-
const
|
|
1164
|
+
const r = Z(n) ? n : Nt, l = e;
|
|
1165
1165
|
l.__localeChainCache || (l.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1166
|
-
let a = l.__localeChainCache.get(
|
|
1166
|
+
let a = l.__localeChainCache.get(r);
|
|
1167
1167
|
if (!a) {
|
|
1168
1168
|
a = [];
|
|
1169
|
-
let
|
|
1170
|
-
for (; be(
|
|
1171
|
-
|
|
1169
|
+
let m = [n];
|
|
1170
|
+
for (; be(m); )
|
|
1171
|
+
m = _n(a, m, t);
|
|
1172
1172
|
const u = be(t) || !ee(t) ? t : t.default ? t.default : null;
|
|
1173
|
-
|
|
1173
|
+
m = Z(u) ? [u] : u, be(m) && _n(a, m, !1), l.__localeChainCache.set(r, a);
|
|
1174
1174
|
}
|
|
1175
1175
|
return a;
|
|
1176
1176
|
}
|
|
1177
1177
|
function _n(e, t, n) {
|
|
1178
|
-
let
|
|
1179
|
-
for (let l = 0; l < t.length && ve(
|
|
1178
|
+
let r = !0;
|
|
1179
|
+
for (let l = 0; l < t.length && ve(r); l++) {
|
|
1180
1180
|
const a = t[l];
|
|
1181
|
-
Z(a) && (
|
|
1181
|
+
Z(a) && (r = Us(e, t[l], n));
|
|
1182
1182
|
}
|
|
1183
|
-
return
|
|
1183
|
+
return r;
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1186
|
-
let
|
|
1185
|
+
function Us(e, t, n) {
|
|
1186
|
+
let r;
|
|
1187
1187
|
const l = t.split("-");
|
|
1188
1188
|
do {
|
|
1189
1189
|
const a = l.join("-");
|
|
1190
|
-
|
|
1191
|
-
} while (l.length &&
|
|
1192
|
-
return
|
|
1193
|
-
}
|
|
1194
|
-
function
|
|
1195
|
-
let
|
|
1196
|
-
if (!e.includes(t) && (
|
|
1197
|
-
|
|
1190
|
+
r = Vs(e, a, n), l.splice(-1, 1);
|
|
1191
|
+
} while (l.length && r === !0);
|
|
1192
|
+
return r;
|
|
1193
|
+
}
|
|
1194
|
+
function Vs(e, t, n) {
|
|
1195
|
+
let r = !1;
|
|
1196
|
+
if (!e.includes(t) && (r = !0, t)) {
|
|
1197
|
+
r = t[t.length - 1] !== "!";
|
|
1198
1198
|
const l = t.replace(/!/g, "");
|
|
1199
|
-
e.push(l), (be(n) || ee(n)) && n[l] && (
|
|
1199
|
+
e.push(l), (be(n) || ee(n)) && n[l] && (r = n[l]);
|
|
1200
1200
|
}
|
|
1201
|
-
return
|
|
1201
|
+
return r;
|
|
1202
1202
|
}
|
|
1203
1203
|
const Ze = [];
|
|
1204
1204
|
Ze[
|
|
@@ -1361,15 +1361,15 @@ Ze[
|
|
|
1361
1361
|
/* Actions.APPEND */
|
|
1362
1362
|
]
|
|
1363
1363
|
};
|
|
1364
|
-
const
|
|
1365
|
-
function
|
|
1366
|
-
return
|
|
1364
|
+
const xs = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1365
|
+
function Ws(e) {
|
|
1366
|
+
return xs.test(e);
|
|
1367
1367
|
}
|
|
1368
|
-
function
|
|
1368
|
+
function Gs(e) {
|
|
1369
1369
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1370
1370
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1371
1371
|
}
|
|
1372
|
-
function
|
|
1372
|
+
function Zs(e) {
|
|
1373
1373
|
if (e == null)
|
|
1374
1374
|
return "o";
|
|
1375
1375
|
switch (e.charCodeAt(0)) {
|
|
@@ -1394,24 +1394,24 @@ function Zr(e) {
|
|
|
1394
1394
|
}
|
|
1395
1395
|
return "i";
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1397
|
+
function Ys(e) {
|
|
1398
1398
|
const t = e.trim();
|
|
1399
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1399
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Ws(t) ? Gs(t) : "*" + t;
|
|
1400
1400
|
}
|
|
1401
|
-
function
|
|
1401
|
+
function Bs(e) {
|
|
1402
1402
|
const t = [];
|
|
1403
|
-
let n = -1,
|
|
1403
|
+
let n = -1, r = 0, l = 0, a, m, u, i, g, y, T;
|
|
1404
1404
|
const N = [];
|
|
1405
1405
|
N[
|
|
1406
1406
|
0
|
|
1407
1407
|
/* Actions.APPEND */
|
|
1408
1408
|
] = () => {
|
|
1409
|
-
|
|
1409
|
+
m === void 0 ? m = u : m += u;
|
|
1410
1410
|
}, N[
|
|
1411
1411
|
1
|
|
1412
1412
|
/* Actions.PUSH */
|
|
1413
1413
|
] = () => {
|
|
1414
|
-
|
|
1414
|
+
m !== void 0 && (t.push(m), m = void 0);
|
|
1415
1415
|
}, N[
|
|
1416
1416
|
2
|
|
1417
1417
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
@@ -1425,12 +1425,12 @@ function Br(e) {
|
|
|
1425
1425
|
/* Actions.PUSH_SUB_PATH */
|
|
1426
1426
|
] = () => {
|
|
1427
1427
|
if (l > 0)
|
|
1428
|
-
l--,
|
|
1428
|
+
l--, r = 4, N[
|
|
1429
1429
|
0
|
|
1430
1430
|
/* Actions.APPEND */
|
|
1431
1431
|
]();
|
|
1432
1432
|
else {
|
|
1433
|
-
if (l = 0,
|
|
1433
|
+
if (l = 0, m === void 0 || (m = Ys(m), m === !1))
|
|
1434
1434
|
return !1;
|
|
1435
1435
|
N[
|
|
1436
1436
|
1
|
|
@@ -1439,43 +1439,43 @@ function Br(e) {
|
|
|
1439
1439
|
}
|
|
1440
1440
|
};
|
|
1441
1441
|
function F() {
|
|
1442
|
-
const
|
|
1443
|
-
if (
|
|
1444
|
-
return n++, u = "\\" +
|
|
1442
|
+
const w = e[n + 1];
|
|
1443
|
+
if (r === 5 && w === "'" || r === 6 && w === '"')
|
|
1444
|
+
return n++, u = "\\" + w, N[
|
|
1445
1445
|
0
|
|
1446
1446
|
/* Actions.APPEND */
|
|
1447
1447
|
](), !0;
|
|
1448
1448
|
}
|
|
1449
|
-
for (;
|
|
1449
|
+
for (; r !== null; )
|
|
1450
1450
|
if (n++, a = e[n], !(a === "\\" && F())) {
|
|
1451
|
-
if (i =
|
|
1451
|
+
if (i = Zs(a), T = Ze[r], g = T[i] || T.l || 8, g === 8 || (r = g[0], g[1] !== void 0 && (y = N[g[1]], y && (u = a, y() === !1))))
|
|
1452
1452
|
return;
|
|
1453
|
-
if (
|
|
1453
|
+
if (r === 7)
|
|
1454
1454
|
return t;
|
|
1455
1455
|
}
|
|
1456
1456
|
}
|
|
1457
1457
|
const pn = /* @__PURE__ */ new Map();
|
|
1458
|
-
function
|
|
1458
|
+
function Xs(e, t) {
|
|
1459
1459
|
return te(e) ? e[t] : null;
|
|
1460
1460
|
}
|
|
1461
|
-
function
|
|
1461
|
+
function Hs(e, t) {
|
|
1462
1462
|
if (!te(e))
|
|
1463
1463
|
return null;
|
|
1464
1464
|
let n = pn.get(t);
|
|
1465
|
-
if (n || (n =
|
|
1465
|
+
if (n || (n = Bs(t), n && pn.set(t, n)), !n)
|
|
1466
1466
|
return null;
|
|
1467
|
-
const
|
|
1467
|
+
const r = n.length;
|
|
1468
1468
|
let l = e, a = 0;
|
|
1469
|
-
for (; a <
|
|
1470
|
-
const
|
|
1471
|
-
if (
|
|
1469
|
+
for (; a < r; ) {
|
|
1470
|
+
const m = l[n[a]];
|
|
1471
|
+
if (m === void 0 || de(l))
|
|
1472
1472
|
return null;
|
|
1473
|
-
l =
|
|
1473
|
+
l = m, a++;
|
|
1474
1474
|
}
|
|
1475
1475
|
return l;
|
|
1476
1476
|
}
|
|
1477
|
-
const $
|
|
1478
|
-
function
|
|
1477
|
+
const $s = "10.0.5", Ot = -1, Nt = "en-US", vn = "", hn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1478
|
+
function Js() {
|
|
1479
1479
|
return {
|
|
1480
1480
|
upper: (e, t) => t === "text" && Z(e) ? e.toUpperCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1481
1481
|
lower: (e, t) => t === "text" && Z(e) ? e.toLowerCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
@@ -1483,19 +1483,19 @@ function Jr() {
|
|
|
1483
1483
|
};
|
|
1484
1484
|
}
|
|
1485
1485
|
let $n;
|
|
1486
|
-
function
|
|
1486
|
+
function Ks(e) {
|
|
1487
1487
|
$n = e;
|
|
1488
1488
|
}
|
|
1489
1489
|
let Jn;
|
|
1490
|
-
function
|
|
1490
|
+
function zs(e) {
|
|
1491
1491
|
Jn = e;
|
|
1492
1492
|
}
|
|
1493
1493
|
let Kn;
|
|
1494
|
-
function
|
|
1494
|
+
function Qs(e) {
|
|
1495
1495
|
Kn = e;
|
|
1496
1496
|
}
|
|
1497
1497
|
let zn = null;
|
|
1498
|
-
const
|
|
1498
|
+
const qs = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1499
1499
|
zn = e;
|
|
1500
1500
|
}, eo = /* @__NO_SIDE_EFFECTS__ */ () => zn;
|
|
1501
1501
|
let Qn = null;
|
|
@@ -1504,25 +1504,25 @@ const bn = (e) => {
|
|
|
1504
1504
|
}, to = () => Qn;
|
|
1505
1505
|
let gn = 0;
|
|
1506
1506
|
function no(e = {}) {
|
|
1507
|
-
const t =
|
|
1507
|
+
const t = de(e.onWarn) ? e.onWarn : Wr, n = Z(e.version) ? e.version : $s, r = Z(e.locale) || de(e.locale) ? e.locale : Nt, l = de(r) ? Nt : r, a = be(e.fallbackLocale) || ee(e.fallbackLocale) || Z(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, m = ee(e.messages) ? e.messages : kt(l), u = ee(e.datetimeFormats) ? e.datetimeFormats : kt(l), i = ee(e.numberFormats) ? e.numberFormats : kt(l), g = Ie(se(), e.modifiers, Js()), y = e.pluralRules || se(), T = de(e.missing) ? e.missing : null, N = ve(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, F = ve(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, w = !!e.fallbackFormat, L = !!e.unresolving, D = de(e.postTranslation) ? e.postTranslation : null, f = ee(e.processor) ? e.processor : null, h = ve(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, c = de(e.messageCompiler) ? e.messageCompiler : $n, b = de(e.messageResolver) ? e.messageResolver : Jn || Xs, I = de(e.localeFallbacker) ? e.localeFallbacker : Kn || js, p = te(e.fallbackContext) ? e.fallbackContext : void 0, k = e, A = te(k.__datetimeFormatters) ? k.__datetimeFormatters : /* @__PURE__ */ new Map(), X = te(k.__numberFormatters) ? k.__numberFormatters : /* @__PURE__ */ new Map(), x = te(k.__meta) ? k.__meta : {};
|
|
1508
1508
|
gn++;
|
|
1509
|
-
const
|
|
1509
|
+
const d = {
|
|
1510
1510
|
version: n,
|
|
1511
1511
|
cid: gn,
|
|
1512
|
-
locale:
|
|
1512
|
+
locale: r,
|
|
1513
1513
|
fallbackLocale: a,
|
|
1514
|
-
messages:
|
|
1514
|
+
messages: m,
|
|
1515
1515
|
modifiers: g,
|
|
1516
|
-
pluralRules:
|
|
1516
|
+
pluralRules: y,
|
|
1517
1517
|
missing: T,
|
|
1518
1518
|
missingWarn: N,
|
|
1519
1519
|
fallbackWarn: F,
|
|
1520
|
-
fallbackFormat:
|
|
1520
|
+
fallbackFormat: w,
|
|
1521
1521
|
unresolving: L,
|
|
1522
|
-
postTranslation:
|
|
1522
|
+
postTranslation: D,
|
|
1523
1523
|
processor: f,
|
|
1524
1524
|
warnHtmlMessage: h,
|
|
1525
|
-
escapeParameter:
|
|
1525
|
+
escapeParameter: S,
|
|
1526
1526
|
messageCompiler: c,
|
|
1527
1527
|
messageResolver: b,
|
|
1528
1528
|
localeFallbacker: I,
|
|
@@ -1530,11 +1530,11 @@ function no(e = {}) {
|
|
|
1530
1530
|
onWarn: t,
|
|
1531
1531
|
__meta: x
|
|
1532
1532
|
};
|
|
1533
|
-
return
|
|
1533
|
+
return d.datetimeFormats = u, d.numberFormats = i, d.__datetimeFormatters = A, d.__numberFormatters = X, __INTLIFY_PROD_DEVTOOLS__ && ws(d, n, x), d;
|
|
1534
1534
|
}
|
|
1535
|
-
const
|
|
1536
|
-
function Qt(e, t, n,
|
|
1537
|
-
const { missing: a, onWarn:
|
|
1535
|
+
const kt = (e) => ({ [e]: se() });
|
|
1536
|
+
function Qt(e, t, n, r, l) {
|
|
1537
|
+
const { missing: a, onWarn: m } = e;
|
|
1538
1538
|
if (a !== null) {
|
|
1539
1539
|
const u = a(e, n, t, l);
|
|
1540
1540
|
return Z(u) ? u : t;
|
|
@@ -1542,38 +1542,38 @@ function Qt(e, t, n, s, l) {
|
|
|
1542
1542
|
return t;
|
|
1543
1543
|
}
|
|
1544
1544
|
function lt(e, t, n) {
|
|
1545
|
-
const
|
|
1546
|
-
|
|
1545
|
+
const r = e;
|
|
1546
|
+
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1547
1547
|
}
|
|
1548
|
-
function
|
|
1548
|
+
function ro(e, t) {
|
|
1549
1549
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1550
1550
|
}
|
|
1551
|
-
function
|
|
1551
|
+
function so(e, t) {
|
|
1552
1552
|
const n = t.indexOf(e);
|
|
1553
1553
|
if (n === -1)
|
|
1554
1554
|
return !1;
|
|
1555
|
-
for (let
|
|
1556
|
-
if (
|
|
1555
|
+
for (let r = n + 1; r < t.length; r++)
|
|
1556
|
+
if (ro(e, t[r]))
|
|
1557
1557
|
return !0;
|
|
1558
1558
|
return !1;
|
|
1559
1559
|
}
|
|
1560
1560
|
function In(e, ...t) {
|
|
1561
|
-
const { datetimeFormats: n, unresolving:
|
|
1562
|
-
ve(
|
|
1563
|
-
const F = !!
|
|
1561
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: m } = e, { __datetimeFormatters: u } = e, [i, g, y, T] = jt(...t), N = ve(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1562
|
+
ve(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1563
|
+
const F = !!y.part, w = zt(e, y), L = m(
|
|
1564
1564
|
e,
|
|
1565
1565
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1566
1566
|
l,
|
|
1567
|
-
|
|
1567
|
+
w
|
|
1568
1568
|
);
|
|
1569
1569
|
if (!Z(i) || i === "")
|
|
1570
|
-
return new Intl.DateTimeFormat(
|
|
1571
|
-
let
|
|
1572
|
-
const
|
|
1573
|
-
for (let I = 0; I < L.length && (f = L[I],
|
|
1574
|
-
Qt(e, i, f, N,
|
|
1570
|
+
return new Intl.DateTimeFormat(w, T).format(g);
|
|
1571
|
+
let D = {}, f, h = null;
|
|
1572
|
+
const S = "datetime format";
|
|
1573
|
+
for (let I = 0; I < L.length && (f = L[I], D = n[f] || {}, h = D[i], !ee(h)); I++)
|
|
1574
|
+
Qt(e, i, f, N, S);
|
|
1575
1575
|
if (!ee(h) || !Z(f))
|
|
1576
|
-
return
|
|
1576
|
+
return r ? Ot : i;
|
|
1577
1577
|
let c = `${f}__${i}`;
|
|
1578
1578
|
Ct(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
1579
1579
|
let b = u.get(c);
|
|
@@ -1602,8 +1602,8 @@ const qn = [
|
|
|
1602
1602
|
"fractionalSecondDigits"
|
|
1603
1603
|
];
|
|
1604
1604
|
function jt(...e) {
|
|
1605
|
-
const [t, n,
|
|
1606
|
-
let
|
|
1605
|
+
const [t, n, r, l] = e, a = se();
|
|
1606
|
+
let m = se(), u;
|
|
1607
1607
|
if (Z(t)) {
|
|
1608
1608
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1609
1609
|
if (!i)
|
|
@@ -1615,7 +1615,7 @@ function jt(...e) {
|
|
|
1615
1615
|
} catch {
|
|
1616
1616
|
throw Ue(je.INVALID_ISO_DATE_ARGUMENT);
|
|
1617
1617
|
}
|
|
1618
|
-
} else if (
|
|
1618
|
+
} else if (Pr(t)) {
|
|
1619
1619
|
if (isNaN(t.getTime()))
|
|
1620
1620
|
throw Ue(je.INVALID_DATE_ARGUMENT);
|
|
1621
1621
|
u = t;
|
|
@@ -1624,39 +1624,39 @@ function jt(...e) {
|
|
|
1624
1624
|
else
|
|
1625
1625
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1626
1626
|
return Z(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1627
|
-
qn.includes(i) ?
|
|
1628
|
-
}), Z(
|
|
1627
|
+
qn.includes(i) ? m[i] = n[i] : a[i] = n[i];
|
|
1628
|
+
}), Z(r) ? a.locale = r : ee(r) && (m = r), ee(l) && (m = l), [a.key || "", u, a, m];
|
|
1629
1629
|
}
|
|
1630
|
-
function
|
|
1631
|
-
const
|
|
1630
|
+
function yn(e, t, n) {
|
|
1631
|
+
const r = e;
|
|
1632
1632
|
for (const l in n) {
|
|
1633
1633
|
const a = `${t}__${l}`;
|
|
1634
|
-
|
|
1634
|
+
r.__datetimeFormatters.has(a) && r.__datetimeFormatters.delete(a);
|
|
1635
1635
|
}
|
|
1636
1636
|
}
|
|
1637
|
-
function
|
|
1638
|
-
const { numberFormats: n, unresolving:
|
|
1639
|
-
ve(
|
|
1640
|
-
const F = !!
|
|
1637
|
+
function En(e, ...t) {
|
|
1638
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: m } = e, { __numberFormatters: u } = e, [i, g, y, T] = Ut(...t), N = ve(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1639
|
+
ve(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1640
|
+
const F = !!y.part, w = zt(e, y), L = m(
|
|
1641
1641
|
e,
|
|
1642
1642
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1643
1643
|
l,
|
|
1644
|
-
|
|
1644
|
+
w
|
|
1645
1645
|
);
|
|
1646
1646
|
if (!Z(i) || i === "")
|
|
1647
|
-
return new Intl.NumberFormat(
|
|
1648
|
-
let
|
|
1649
|
-
const
|
|
1650
|
-
for (let I = 0; I < L.length && (f = L[I],
|
|
1651
|
-
Qt(e, i, f, N,
|
|
1647
|
+
return new Intl.NumberFormat(w, T).format(g);
|
|
1648
|
+
let D = {}, f, h = null;
|
|
1649
|
+
const S = "number format";
|
|
1650
|
+
for (let I = 0; I < L.length && (f = L[I], D = n[f] || {}, h = D[i], !ee(h)); I++)
|
|
1651
|
+
Qt(e, i, f, N, S);
|
|
1652
1652
|
if (!ee(h) || !Z(f))
|
|
1653
|
-
return
|
|
1653
|
+
return r ? Ot : i;
|
|
1654
1654
|
let c = `${f}__${i}`;
|
|
1655
1655
|
Ct(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
1656
1656
|
let b = u.get(c);
|
|
1657
1657
|
return b || (b = new Intl.NumberFormat(f, Ie({}, h, T)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1658
1658
|
}
|
|
1659
|
-
const
|
|
1659
|
+
const er = [
|
|
1660
1660
|
"localeMatcher",
|
|
1661
1661
|
"style",
|
|
1662
1662
|
"currency",
|
|
@@ -1679,23 +1679,23 @@ const es = [
|
|
|
1679
1679
|
"trailingZeroDisplay"
|
|
1680
1680
|
];
|
|
1681
1681
|
function Ut(...e) {
|
|
1682
|
-
const [t, n,
|
|
1683
|
-
let
|
|
1682
|
+
const [t, n, r, l] = e, a = se();
|
|
1683
|
+
let m = se();
|
|
1684
1684
|
if (!ge(t))
|
|
1685
1685
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1686
1686
|
const u = t;
|
|
1687
1687
|
return Z(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1688
|
-
|
|
1689
|
-
}), Z(
|
|
1688
|
+
er.includes(i) ? m[i] = n[i] : a[i] = n[i];
|
|
1689
|
+
}), Z(r) ? a.locale = r : ee(r) && (m = r), ee(l) && (m = l), [a.key || "", u, a, m];
|
|
1690
1690
|
}
|
|
1691
1691
|
function Nn(e, t, n) {
|
|
1692
|
-
const
|
|
1692
|
+
const r = e;
|
|
1693
1693
|
for (const l in n) {
|
|
1694
1694
|
const a = `${t}__${l}`;
|
|
1695
|
-
|
|
1695
|
+
r.__numberFormatters.has(a) && r.__numberFormatters.delete(a);
|
|
1696
1696
|
}
|
|
1697
1697
|
}
|
|
1698
|
-
const oo = (e) => e, ao = (e) => "", lo = "text", io = (e) => e.length === 0 ? "" : $t(e), co =
|
|
1698
|
+
const oo = (e) => e, ao = (e) => "", lo = "text", io = (e) => e.length === 0 ? "" : $t(e), co = xr;
|
|
1699
1699
|
function Cn(e, t) {
|
|
1700
1700
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1701
1701
|
}
|
|
@@ -1707,132 +1707,132 @@ function mo(e, t) {
|
|
|
1707
1707
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1708
1708
|
}
|
|
1709
1709
|
function fo(e = {}) {
|
|
1710
|
-
const t = e.locale, n = uo(e),
|
|
1710
|
+
const t = e.locale, n = uo(e), r = te(e.pluralRules) && Z(t) && de(e.pluralRules[t]) ? e.pluralRules[t] : Cn, l = te(e.pluralRules) && Z(t) && de(e.pluralRules[t]) ? Cn : void 0, a = (f) => f[r(n, f.length, l)], m = e.list || [], u = (f) => m[f], i = e.named || se();
|
|
1711
1711
|
ge(e.pluralIndex) && mo(n, i);
|
|
1712
1712
|
const g = (f) => i[f];
|
|
1713
|
-
function
|
|
1714
|
-
const
|
|
1715
|
-
return
|
|
1713
|
+
function y(f, h) {
|
|
1714
|
+
const S = de(e.messages) ? e.messages(f, !!h) : te(e.messages) ? e.messages[f] : !1;
|
|
1715
|
+
return S || (e.parent ? e.parent.message(f) : ao);
|
|
1716
1716
|
}
|
|
1717
|
-
const T = (f) => e.modifiers ? e.modifiers[f] : oo, N = ee(e.processor) &&
|
|
1717
|
+
const T = (f) => e.modifiers ? e.modifiers[f] : oo, N = ee(e.processor) && de(e.processor.normalize) ? e.processor.normalize : io, F = ee(e.processor) && de(e.processor.interpolate) ? e.processor.interpolate : co, w = ee(e.processor) && Z(e.processor.type) ? e.processor.type : lo, D = {
|
|
1718
1718
|
list: u,
|
|
1719
1719
|
named: g,
|
|
1720
1720
|
plural: a,
|
|
1721
1721
|
linked: (f, ...h) => {
|
|
1722
|
-
const [
|
|
1722
|
+
const [S, c] = h;
|
|
1723
1723
|
let b = "text", I = "";
|
|
1724
|
-
h.length === 1 ? te(
|
|
1725
|
-
const p =
|
|
1724
|
+
h.length === 1 ? te(S) ? (I = S.modifier || I, b = S.type || b) : Z(S) && (I = S || I) : h.length === 2 && (Z(S) && (I = S || I), Z(c) && (b = c || b));
|
|
1725
|
+
const p = y(f, !0)(D), k = (
|
|
1726
1726
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1727
1727
|
b === "vnode" && be(p) && I ? p[0] : p
|
|
1728
1728
|
);
|
|
1729
|
-
return I ? T(I)(
|
|
1729
|
+
return I ? T(I)(k, b) : k;
|
|
1730
1730
|
},
|
|
1731
|
-
message:
|
|
1732
|
-
type:
|
|
1731
|
+
message: y,
|
|
1732
|
+
type: w,
|
|
1733
1733
|
interpolate: F,
|
|
1734
1734
|
normalize: N,
|
|
1735
|
-
values: Ie(
|
|
1735
|
+
values: Ie(se(), m, i)
|
|
1736
1736
|
};
|
|
1737
|
-
return
|
|
1737
|
+
return D;
|
|
1738
1738
|
}
|
|
1739
|
-
const Tn = () => "", Te = (e) =>
|
|
1739
|
+
const Tn = () => "", Te = (e) => de(e);
|
|
1740
1740
|
function On(e, ...t) {
|
|
1741
|
-
const { fallbackFormat: n, postTranslation:
|
|
1741
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale: m, messages: u } = e, [i, g] = Vt(...t), y = ve(g.missingWarn) ? g.missingWarn : e.missingWarn, T = ve(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, N = ve(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, F = !!g.resolvedMessage, w = Z(g.default) || ve(g.default) ? ve(g.default) ? a ? i : () => i : g.default : n ? a ? i : () => i : null, L = n || w != null && (Z(w) || de(w)), D = zt(e, g);
|
|
1742
1742
|
N && _o(g);
|
|
1743
|
-
let [f, h,
|
|
1743
|
+
let [f, h, S] = F ? [
|
|
1744
1744
|
i,
|
|
1745
|
-
|
|
1746
|
-
u[
|
|
1747
|
-
] :
|
|
1748
|
-
if (!F && !(Z(c) || ot(c) || Te(c)) && L && (c =
|
|
1745
|
+
D,
|
|
1746
|
+
u[D] || se()
|
|
1747
|
+
] : tr(e, i, D, m, T, y), c = f, b = i;
|
|
1748
|
+
if (!F && !(Z(c) || ot(c) || Te(c)) && L && (c = w, b = c), !F && (!(Z(c) || ot(c) || Te(c)) || !Z(h)))
|
|
1749
1749
|
return l ? Ot : i;
|
|
1750
1750
|
let I = !1;
|
|
1751
1751
|
const p = () => {
|
|
1752
1752
|
I = !0;
|
|
1753
|
-
},
|
|
1753
|
+
}, k = Te(c) ? c : nr(e, i, h, c, b, p);
|
|
1754
1754
|
if (I)
|
|
1755
1755
|
return c;
|
|
1756
|
-
const
|
|
1756
|
+
const A = ho(e, h, S, g), X = fo(A), x = po(e, k, X), d = r ? r(x, i) : x;
|
|
1757
1757
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1758
1758
|
const C = {
|
|
1759
1759
|
timestamp: Date.now(),
|
|
1760
1760
|
key: Z(i) ? i : Te(c) ? c.key : "",
|
|
1761
1761
|
locale: h || (Te(c) ? c.locale : ""),
|
|
1762
1762
|
format: Z(c) ? c : Te(c) ? c.source : "",
|
|
1763
|
-
message:
|
|
1763
|
+
message: d
|
|
1764
1764
|
};
|
|
1765
|
-
C.meta = Ie({}, e.__meta, /* @__PURE__ */ eo() || {}),
|
|
1765
|
+
C.meta = Ie({}, e.__meta, /* @__PURE__ */ eo() || {}), Ds(C);
|
|
1766
1766
|
}
|
|
1767
|
-
return
|
|
1767
|
+
return d;
|
|
1768
1768
|
}
|
|
1769
1769
|
function _o(e) {
|
|
1770
1770
|
be(e.list) ? e.list = e.list.map((t) => Z(t) ? ln(t) : t) : te(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1771
1771
|
Z(e.named[t]) && (e.named[t] = ln(e.named[t]));
|
|
1772
1772
|
});
|
|
1773
1773
|
}
|
|
1774
|
-
function
|
|
1775
|
-
const { messages:
|
|
1776
|
-
let T =
|
|
1777
|
-
const
|
|
1778
|
-
for (let L = 0; L <
|
|
1779
|
-
if (!
|
|
1780
|
-
const
|
|
1774
|
+
function tr(e, t, n, r, l, a) {
|
|
1775
|
+
const { messages: m, onWarn: u, messageResolver: i, localeFallbacker: g } = e, y = g(e, r, n);
|
|
1776
|
+
let T = se(), N, F = null;
|
|
1777
|
+
const w = "translate";
|
|
1778
|
+
for (let L = 0; L < y.length && (N = y[L], T = m[N] || se(), (F = i(T, t)) === null && (F = T[t]), !(Z(F) || ot(F) || Te(F))); L++)
|
|
1779
|
+
if (!so(N, y)) {
|
|
1780
|
+
const D = Qt(
|
|
1781
1781
|
e,
|
|
1782
1782
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1783
1783
|
t,
|
|
1784
1784
|
N,
|
|
1785
1785
|
a,
|
|
1786
|
-
|
|
1786
|
+
w
|
|
1787
1787
|
);
|
|
1788
|
-
|
|
1788
|
+
D !== t && (F = D);
|
|
1789
1789
|
}
|
|
1790
1790
|
return [F, N, T];
|
|
1791
1791
|
}
|
|
1792
|
-
function
|
|
1793
|
-
const { messageCompiler:
|
|
1794
|
-
if (Te(
|
|
1795
|
-
const g =
|
|
1792
|
+
function nr(e, t, n, r, l, a) {
|
|
1793
|
+
const { messageCompiler: m, warnHtmlMessage: u } = e;
|
|
1794
|
+
if (Te(r)) {
|
|
1795
|
+
const g = r;
|
|
1796
1796
|
return g.locale = g.locale || n, g.key = g.key || t, g;
|
|
1797
1797
|
}
|
|
1798
|
-
if (
|
|
1799
|
-
const g = () =>
|
|
1798
|
+
if (m == null) {
|
|
1799
|
+
const g = () => r;
|
|
1800
1800
|
return g.locale = n, g.key = t, g;
|
|
1801
1801
|
}
|
|
1802
|
-
const i =
|
|
1803
|
-
return i.locale = n, i.key = t, i.source =
|
|
1802
|
+
const i = m(r, vo(e, n, l, r, u, a));
|
|
1803
|
+
return i.locale = n, i.key = t, i.source = r, i;
|
|
1804
1804
|
}
|
|
1805
1805
|
function po(e, t, n) {
|
|
1806
1806
|
return t(n);
|
|
1807
1807
|
}
|
|
1808
1808
|
function Vt(...e) {
|
|
1809
|
-
const [t, n,
|
|
1809
|
+
const [t, n, r] = e, l = se();
|
|
1810
1810
|
if (!Z(t) && !ge(t) && !Te(t) && !ot(t))
|
|
1811
1811
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1812
1812
|
const a = ge(t) ? String(t) : (Te(t), t);
|
|
1813
|
-
return ge(n) ? l.plural = n : Z(n) ? l.default = n : ee(n) && !Ct(n) ? l.named = n : be(n) && (l.list = n), ge(
|
|
1813
|
+
return ge(n) ? l.plural = n : Z(n) ? l.default = n : ee(n) && !Ct(n) ? l.named = n : be(n) && (l.list = n), ge(r) ? l.plural = r : Z(r) ? l.default = r : ee(r) && Ie(l, r), [a, l];
|
|
1814
1814
|
}
|
|
1815
|
-
function vo(e, t, n,
|
|
1815
|
+
function vo(e, t, n, r, l, a) {
|
|
1816
1816
|
return {
|
|
1817
1817
|
locale: t,
|
|
1818
1818
|
key: n,
|
|
1819
1819
|
warnHtmlMessage: l,
|
|
1820
|
-
onError: (
|
|
1821
|
-
throw a && a(
|
|
1820
|
+
onError: (m) => {
|
|
1821
|
+
throw a && a(m), m;
|
|
1822
1822
|
},
|
|
1823
|
-
onCacheKey: (
|
|
1823
|
+
onCacheKey: (m) => Dr(t, n, m)
|
|
1824
1824
|
};
|
|
1825
1825
|
}
|
|
1826
|
-
function ho(e, t, n,
|
|
1827
|
-
const { modifiers: l, pluralRules: a, messageResolver:
|
|
1826
|
+
function ho(e, t, n, r) {
|
|
1827
|
+
const { modifiers: l, pluralRules: a, messageResolver: m, fallbackLocale: u, fallbackWarn: i, missingWarn: g, fallbackContext: y } = e, N = {
|
|
1828
1828
|
locale: t,
|
|
1829
1829
|
modifiers: l,
|
|
1830
1830
|
pluralRules: a,
|
|
1831
|
-
messages: (F,
|
|
1832
|
-
let L =
|
|
1833
|
-
if (L == null && (
|
|
1834
|
-
const [, ,
|
|
1835
|
-
|
|
1831
|
+
messages: (F, w) => {
|
|
1832
|
+
let L = m(n, F);
|
|
1833
|
+
if (L == null && (y || w)) {
|
|
1834
|
+
const [, , D] = tr(
|
|
1835
|
+
y || e,
|
|
1836
1836
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1837
1837
|
F,
|
|
1838
1838
|
t,
|
|
@@ -1840,28 +1840,28 @@ function ho(e, t, n, s) {
|
|
|
1840
1840
|
i,
|
|
1841
1841
|
g
|
|
1842
1842
|
);
|
|
1843
|
-
L =
|
|
1843
|
+
L = m(D, F);
|
|
1844
1844
|
}
|
|
1845
1845
|
if (Z(L) || ot(L)) {
|
|
1846
|
-
let
|
|
1847
|
-
const h =
|
|
1848
|
-
|
|
1846
|
+
let D = !1;
|
|
1847
|
+
const h = nr(e, F, t, L, F, () => {
|
|
1848
|
+
D = !0;
|
|
1849
1849
|
});
|
|
1850
|
-
return
|
|
1850
|
+
return D ? Tn : h;
|
|
1851
1851
|
} else return Te(L) ? L : Tn;
|
|
1852
1852
|
}
|
|
1853
1853
|
};
|
|
1854
|
-
return e.processor && (N.processor = e.processor),
|
|
1854
|
+
return e.processor && (N.processor = e.processor), r.list && (N.list = r.list), r.named && (N.named = r.named), ge(r.plural) && (N.pluralIndex = r.plural), N;
|
|
1855
1855
|
}
|
|
1856
|
-
|
|
1857
|
-
var bo = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_3bc0070b-b30e-421d-9644-7c6ab8ad18ac", DOTNET_NOLOGO: "1", USER: "runner", npm_config_always_auth: "", npm_config_user_agent: "pnpm/10.8.0 npm/? node/v24.5.0 linux x64", CI: "true", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_3bc0070b-b30e-421d-9644-7c6ab8ad18ac", PIPX_HOME: "/opt/pipx", 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", HCA_CLOUD_PROVIDER: "azure", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", 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.7.0", 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", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1785", ACTIONS_ORCHESTRATION_ID: "d7a935df-df88-43b4-bb4e-14610cd84d06.publish.publish.__default", npm_config_engine_strict: "true", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260810.271.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_3bc0070b-b30e-421d-9644-7c6ab8ad18ac", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:12282", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", 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_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.12/x64", GITHUB_RUN_ID: "31793359438", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "9bcaecaa2642b4174acee1af08cdadd5edd8dfe0", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.5/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9kZXZcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3ODY3MjY0MTcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc4NjcwNDIxOCwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjhmNDI1YTQyLWNjZjYtNTkyMi1iOTgxLTFmNzQxZTFkOGY3MyIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiY2U4OTEyNmYxNGVkNDBkNDgwMDViMmI4MThiOTU2MWFhNDZiOTUzZCIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc4NjcwMzkxOCwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI5NDc0NDk2OTY2N1wiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiY2U4OTEyNmYxNGVkNDBkNDgwMDViMmI4MThiOTU2MWFhNDZiOTUzZFwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL2RldlwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIzMTc5MzM1OTQzOFwiLFwicnVuX251bWJlclwiOlwiMTU4XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiOWJjYWVjYWEyNjQyYjQxNzRhY2VlMWFmMDhjZGFkZDVlZGQ4ZGZlMFwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJ3b3JrZmxvd19zaGFcIjpcIjliY2FlY2FhMjY0MmI0MTc0YWNlZTFhZjA4Y2RhZGQ1ZWRkOGRmZTBcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL2hybS1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL2RldiIsIm9yY2hfaWQiOiJkN2E5MzVkZi1kZjg4LTQzYjQtYmI0ZS0xNDYxMGNkODRkMDYucHVibGlzaC5wdWJsaXNoLl9fZGVmYXVsdCIsIm93bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwicGxhbl9pZCI6ImQ3YTkzNWRmLWRmODgtNDNiNC1iYjRlLTE0NjEwY2Q4NGQwNiIsInJlcG9zaXRvcnlfaWQiOiIxMTI0NjcyMjM1IiwicmVwb3NpdG9yeV9vd25lcl9pZCI6IjU0ODMxNTE1IiwicmVwb3NpdG9yeV92aXNpYmlsaXR5IjoicHJpdmF0ZSIsInJ1bl9pZCI6IjMxNzkzMzU5NDM4IiwicnVuX251bWJlciI6IjE1OCIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDAxMTA5NjkiLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czpkN2E5MzVkZi1kZjg4LTQzYjQtYmI0ZS0xNDYxMGNkODRkMDY6OGY0MjVhNDItY2NmNi01OTIyLWI5ODEtMWY3NDFlMWQ4ZjczIEFjdGlvbnMuUnVubmVyOmQ3YTkzNWRmLWRmODgtNDNiNC1iYjRlLTE0NjEwY2Q4NGQwNjo4ZjQyNWE0Mi1jY2Y2LTU5MjItYjk4MS0xZjc0MWUxZDhmNzMgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6ZDdhOTM1ZGYtZGY4OC00M2I0LWJiNGUtMTQ2MTBjZDg0ZDA2OjhmNDI1YTQyLWNjZjYtNTkyMi1iOTgxLTFmNzQxZTFkOGY3MyBnZW5lcmF0ZV9pZF90b2tlbjpkN2E5MzVkZi1kZjg4LTQzYjQtYmI0ZS0xNDYxMGNkODRkMDY6OGY0MjVhNDItY2NmNi01OTIyLWI5ODEtMWY3NDFlMWQ4ZjczIEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiOWJjYWVjYWEyNjQyYjQxNzRhY2VlMWFmMDhjZGFkZDVlZGQ4ZGZlMCIsInRydXN0X3RpZXIiOiIxIn0.l_BZguDJGV0jNQbfukwnkGKpQUvb6AFsYTtKee0ZpaPx9yH1KLBpTYoy1HxHekNLztjtDBc1sLnmerlpiSrYqkrRW_4QJpWgQktiO76fehH_km36ugfZuVd8-6CJte48RC6vtDYsHLqz_qxAURM2aUaxc2lWbzE21yJRtF_oriQATW9IO3mzKqIAIh_H5RFFpKqATmI66S_pJZs2tjg01_sEVbBFsVDFMzU2TEgB8cG4NOxAQjD7GTKm4TbdT4mWIsMtk2ntuVTlgo8h1A8KB1Z13X7tqz26sVBmdWxekhE2u9IfAdx5ZTaHbSg6U8vlE1_mcI1Uq-sDXgNJk_wOiw", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/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@10.8.0/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@10.8.0/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_fbdbc6d3-4a52-4052-85b7-7b15488a19ba", INVOCATION_ID: "6ec1f11dec024195877fce64267dbdf8", 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_5", GITHUB_RUN_NUMBER: "158", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000110969", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/hrm-service", 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", 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@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.2.1-dev.4", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", GITHUB_SHA: "9bcaecaa2642b4174acee1af08cdadd5edd8dfe0", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/dev", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_3bc0070b-b30e-421d-9644-7c6ab8ad18ac", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-3-azure-eastus.actions.githubusercontent.com/168//idtoken/d7a935df-df88-43b4-bb4e-14610cd84d06/8f425a42-ccf6-5922-b981-1f741e1d8f73?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_3bc0070b-b30e-421d-9644-7c6ab8ad18ac", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_3bc0070b-b30e-421d-9644-7c6ab8ad18ac", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.1", 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_3bc0070b-b30e-421d-9644-7c6ab8ad18ac", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1856
|
+
fs();
|
|
1857
|
+
var bo = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_14e75b8d-0689-470e-81f6-e27c55319276", DOTNET_NOLOGO: "1", USER: "runner", npm_config_always_auth: "", npm_config_user_agent: "pnpm/10.8.0 npm/? node/v24.5.0 linux x64", CI: "true", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_14e75b8d-0689-470e-81f6-e27c55319276", PIPX_HOME: "/opt/pipx", 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", HCA_CLOUD_PROVIDER: "azure", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", 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.7.0", 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", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1735", ACTIONS_ORCHESTRATION_ID: "85045431-76e4-4a55-bb29-8fbd9ff88695.publish.publish.__default", npm_config_engine_strict: "true", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260810.271.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_14e75b8d-0689-470e-81f6-e27c55319276", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:9984", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", 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_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.12/x64", GITHUB_RUN_ID: "32097781694", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "806519740b0129da4303039d84762035f7856187", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.5/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9kZXZcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3ODcwNDgwNzMsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc4NzAyNTg3MywiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjNjOGQxZmVmLTc3MjQtNWY3Mi1iMTYzLWExOTJmNDg0NGYyMCIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiODkzYjFlOWU1YjA1NjE2Y2YwYjQ2MzZjMGU3YzM3ODc3YTAzYWZkMCIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc4NzAyNTU3Mywib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI5NTU5MjM2NDczNlwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiODkzYjFlOWU1YjA1NjE2Y2YwYjQ2MzZjMGU3YzM3ODc3YTAzYWZkMFwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL2RldlwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIzMjA5Nzc4MTY5NFwiLFwicnVuX251bWJlclwiOlwiMTYwXCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiODA2NTE5NzQwYjAxMjlkYTQzMDMwMzlkODQ3NjIwMzVmNzg1NjE4N1wiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJ3b3JrZmxvd19zaGFcIjpcIjgwNjUxOTc0MGIwMTI5ZGE0MzAzMDM5ZDg0NzYyMDM1Zjc4NTYxODdcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL2hybS1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL2RldiIsIm9yY2hfaWQiOiI4NTA0NTQzMS03NmU0LTRhNTUtYmIyOS04ZmJkOWZmODg2OTUucHVibGlzaC5wdWJsaXNoLl9fZGVmYXVsdCIsIm93bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwicGxhbl9pZCI6Ijg1MDQ1NDMxLTc2ZTQtNGE1NS1iYjI5LThmYmQ5ZmY4ODY5NSIsInJlcG9zaXRvcnlfaWQiOiIxMTI0NjcyMjM1IiwicmVwb3NpdG9yeV9vd25lcl9pZCI6IjU0ODMxNTE1IiwicmVwb3NpdG9yeV92aXNpYmlsaXR5IjoicHJpdmF0ZSIsInJ1bl9pZCI6IjMyMDk3NzgxNjk0IiwicnVuX251bWJlciI6IjE2MCIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDAxMTI5NTAiLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czo4NTA0NTQzMS03NmU0LTRhNTUtYmIyOS04ZmJkOWZmODg2OTU6M2M4ZDFmZWYtNzcyNC01ZjcyLWIxNjMtYTE5MmY0ODQ0ZjIwIEFjdGlvbnMuUnVubmVyOjg1MDQ1NDMxLTc2ZTQtNGE1NS1iYjI5LThmYmQ5ZmY4ODY5NTozYzhkMWZlZi03NzI0LTVmNzItYjE2My1hMTkyZjQ4NDRmMjAgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6ODUwNDU0MzEtNzZlNC00YTU1LWJiMjktOGZiZDlmZjg4Njk1OjNjOGQxZmVmLTc3MjQtNWY3Mi1iMTYzLWExOTJmNDg0NGYyMCBnZW5lcmF0ZV9pZF90b2tlbjo4NTA0NTQzMS03NmU0LTRhNTUtYmIyOS04ZmJkOWZmODg2OTU6M2M4ZDFmZWYtNzcyNC01ZjcyLWIxNjMtYTE5MmY0ODQ0ZjIwIEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiODA2NTE5NzQwYjAxMjlkYTQzMDMwMzlkODQ3NjIwMzVmNzg1NjE4NyIsInRydXN0X3RpZXIiOiIxIn0.NLQIj7me0RQft-GjUQQML7wg56K5KdOGGaVha6W27T0a2HQfttkCTQvImpKcnY7TOPzTwCfWCYbvqUH2yBpPXWTWfoPFOrw72APJjkl1EZXXZekSPMSMcxSrN08RqPndDf7mBFQZ4ydcqXLuH1pYXWOycwBosomb9drp2V2pdbMZGJAIAxAk9TKNLU2JroawhRCOvecOuKM50rww3WI5bDFITM2bcQU9jZ9DdAI_I_c_sEfkBo_ntsx4HtNqvHjEtIUuj2qeCoBfRF5Yu0IQ4v69iTeQlWmHRDtao31nXlTw8f4tnnvgUJKNtBxy2kPCo7Zeg4Cf60f4poXkqtic8w", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/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@10.8.0/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@10.8.0/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_e25636f0-c079-4abc-8ced-a98854a93932", INVOCATION_ID: "7115558e5cb241eb9d60d2ba3ca2f1f4", 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_5", GITHUB_RUN_NUMBER: "160", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000112950", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/hrm-service", 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", 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@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.2.2-dev", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", GITHUB_SHA: "806519740b0129da4303039d84762035f7856187", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/dev", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_14e75b8d-0689-470e-81f6-e27c55319276", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-3-azure-eastus.actions.githubusercontent.com/165//idtoken/85045431-76e4-4a55-bb29-8fbd9ff88695/3c8d1fef-7724-5f72-b163-a192f4844f20?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_14e75b8d-0689-470e-81f6-e27c55319276", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_14e75b8d-0689-470e-81f6-e27c55319276", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.1", 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_14e75b8d-0689-470e-81f6-e27c55319276", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1858
1858
|
const go = "10.0.5";
|
|
1859
1859
|
function Io() {
|
|
1860
1860
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Xe().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Xe().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Xe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Xe().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1861
1861
|
}
|
|
1862
1862
|
const at = {
|
|
1863
1863
|
// composer module errors
|
|
1864
|
-
UNEXPECTED_RETURN_TYPE:
|
|
1864
|
+
UNEXPECTED_RETURN_TYPE: Ps,
|
|
1865
1865
|
// 24
|
|
1866
1866
|
// legacy module errors
|
|
1867
1867
|
INVALID_ARGUMENT: 25,
|
|
@@ -1875,97 +1875,97 @@ const at = {
|
|
|
1875
1875
|
function ut(e, ...t) {
|
|
1876
1876
|
return Tt(e, null, void 0);
|
|
1877
1877
|
}
|
|
1878
|
-
const xt = /* @__PURE__ */ $e("__translateVNode"), Wt = /* @__PURE__ */ $e("__datetimeParts"), Gt = /* @__PURE__ */ $e("__numberParts"),
|
|
1879
|
-
function
|
|
1878
|
+
const xt = /* @__PURE__ */ $e("__translateVNode"), Wt = /* @__PURE__ */ $e("__datetimeParts"), Gt = /* @__PURE__ */ $e("__numberParts"), yo = $e("__setPluralRules"), rr = /* @__PURE__ */ $e("__injectWithOption"), Zt = /* @__PURE__ */ $e("__dispose");
|
|
1879
|
+
function mt(e) {
|
|
1880
1880
|
if (!te(e))
|
|
1881
1881
|
return e;
|
|
1882
1882
|
for (const t in e)
|
|
1883
|
-
if (
|
|
1883
|
+
if (Ae(e, t))
|
|
1884
1884
|
if (!t.includes("."))
|
|
1885
|
-
te(e[t]) &&
|
|
1885
|
+
te(e[t]) && mt(e[t]);
|
|
1886
1886
|
else {
|
|
1887
|
-
const n = t.split("."),
|
|
1887
|
+
const n = t.split("."), r = n.length - 1;
|
|
1888
1888
|
let l = e, a = !1;
|
|
1889
|
-
for (let
|
|
1890
|
-
if (n[
|
|
1889
|
+
for (let m = 0; m < r; m++) {
|
|
1890
|
+
if (n[m] in l || (l[n[m]] = se()), !te(l[n[m]])) {
|
|
1891
1891
|
a = !0;
|
|
1892
1892
|
break;
|
|
1893
1893
|
}
|
|
1894
|
-
l = l[n[
|
|
1894
|
+
l = l[n[m]];
|
|
1895
1895
|
}
|
|
1896
|
-
a || (l[n[
|
|
1896
|
+
a || (l[n[r]] = e[t], delete e[t]), te(l[n[r]]) && mt(l[n[r]]);
|
|
1897
1897
|
}
|
|
1898
1898
|
return e;
|
|
1899
1899
|
}
|
|
1900
|
-
function
|
|
1901
|
-
const { messages: n, __i18n:
|
|
1902
|
-
if (be(
|
|
1900
|
+
function sr(e, t) {
|
|
1901
|
+
const { messages: n, __i18n: r, messageResolver: l, flatJson: a } = t, m = ee(n) ? n : be(r) ? se() : { [e]: se() };
|
|
1902
|
+
if (be(r) && r.forEach((u) => {
|
|
1903
1903
|
if ("locale" in u && "resource" in u) {
|
|
1904
1904
|
const { locale: i, resource: g } = u;
|
|
1905
|
-
i ? (
|
|
1905
|
+
i ? (m[i] = m[i] || se(), yt(g, m[i])) : yt(g, m);
|
|
1906
1906
|
} else
|
|
1907
|
-
Z(u) &&
|
|
1907
|
+
Z(u) && yt(JSON.parse(u), m);
|
|
1908
1908
|
}), l == null && a)
|
|
1909
|
-
for (const u in
|
|
1910
|
-
|
|
1911
|
-
return
|
|
1909
|
+
for (const u in m)
|
|
1910
|
+
Ae(m, u) && mt(m[u]);
|
|
1911
|
+
return m;
|
|
1912
1912
|
}
|
|
1913
|
-
function
|
|
1913
|
+
function or(e) {
|
|
1914
1914
|
return e.type;
|
|
1915
1915
|
}
|
|
1916
|
-
function
|
|
1917
|
-
let
|
|
1918
|
-
"__i18nGlobal" in n && (
|
|
1919
|
-
messages:
|
|
1916
|
+
function Eo(e, t, n) {
|
|
1917
|
+
let r = te(t.messages) ? t.messages : se();
|
|
1918
|
+
"__i18nGlobal" in n && (r = sr(e.locale.value, {
|
|
1919
|
+
messages: r,
|
|
1920
1920
|
__i18n: n.__i18nGlobal
|
|
1921
1921
|
}));
|
|
1922
|
-
const l = Object.keys(
|
|
1922
|
+
const l = Object.keys(r);
|
|
1923
1923
|
l.length && l.forEach((a) => {
|
|
1924
|
-
e.mergeLocaleMessage(a,
|
|
1924
|
+
e.mergeLocaleMessage(a, r[a]);
|
|
1925
1925
|
});
|
|
1926
1926
|
{
|
|
1927
1927
|
if (te(t.datetimeFormats)) {
|
|
1928
1928
|
const a = Object.keys(t.datetimeFormats);
|
|
1929
|
-
a.length && a.forEach((
|
|
1930
|
-
e.mergeDateTimeFormat(
|
|
1929
|
+
a.length && a.forEach((m) => {
|
|
1930
|
+
e.mergeDateTimeFormat(m, t.datetimeFormats[m]);
|
|
1931
1931
|
});
|
|
1932
1932
|
}
|
|
1933
1933
|
if (te(t.numberFormats)) {
|
|
1934
1934
|
const a = Object.keys(t.numberFormats);
|
|
1935
|
-
a.length && a.forEach((
|
|
1936
|
-
e.mergeNumberFormat(
|
|
1935
|
+
a.length && a.forEach((m) => {
|
|
1936
|
+
e.mergeNumberFormat(m, t.numberFormats[m]);
|
|
1937
1937
|
});
|
|
1938
1938
|
}
|
|
1939
1939
|
}
|
|
1940
1940
|
}
|
|
1941
|
-
function
|
|
1942
|
-
return ue(
|
|
1941
|
+
function Sn(e) {
|
|
1942
|
+
return ue(fr, null, e, 0);
|
|
1943
1943
|
}
|
|
1944
|
-
const
|
|
1945
|
-
let
|
|
1946
|
-
function
|
|
1947
|
-
return (t, n,
|
|
1944
|
+
const An = "__INTLIFY_META__", Ln = () => [], No = () => !1;
|
|
1945
|
+
let Rn = 0;
|
|
1946
|
+
function kn(e) {
|
|
1947
|
+
return (t, n, r, l) => e(n, r, Bt() || void 0, l);
|
|
1948
1948
|
}
|
|
1949
1949
|
const Co = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1950
1950
|
const e = Bt();
|
|
1951
1951
|
let t = null;
|
|
1952
|
-
return e && (t =
|
|
1952
|
+
return e && (t = or(e)[An]) ? { [An]: t } : null;
|
|
1953
1953
|
};
|
|
1954
1954
|
function To(e = {}) {
|
|
1955
|
-
const { __root: t, __injectWithOption: n } = e,
|
|
1956
|
-
let
|
|
1955
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, l = e.flatJson, a = on ? rt : mr;
|
|
1956
|
+
let m = ve(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1957
1957
|
const u = a(
|
|
1958
1958
|
// prettier-ignore
|
|
1959
|
-
t &&
|
|
1959
|
+
t && m ? t.locale.value : Z(e.locale) ? e.locale : Nt
|
|
1960
1960
|
), i = a(
|
|
1961
1961
|
// prettier-ignore
|
|
1962
|
-
t &&
|
|
1963
|
-
), g = a(
|
|
1964
|
-
let N = t ? t.missingWarn : ve(e.missingWarn) ||
|
|
1962
|
+
t && m ? t.fallbackLocale.value : Z(e.fallbackLocale) || be(e.fallbackLocale) || ee(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
1963
|
+
), g = a(sr(u.value, e)), y = a(ee(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), T = a(ee(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
|
|
1964
|
+
let N = t ? t.missingWarn : ve(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, F = t ? t.fallbackWarn : ve(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, w = t ? t.fallbackRoot : ve(e.fallbackRoot) ? e.fallbackRoot : !0, L = !!e.fallbackFormat, D = de(e.missing) ? e.missing : null, f = de(e.missing) ? kn(e.missing) : null, h = de(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : ve(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, c = !!e.escapeParameter;
|
|
1965
1965
|
const b = t ? t.modifiers : ee(e.modifiers) ? e.modifiers : {};
|
|
1966
1966
|
let I = e.pluralRules || t && t.pluralRules, p;
|
|
1967
1967
|
p = (() => {
|
|
1968
|
-
|
|
1968
|
+
r && bn(null);
|
|
1969
1969
|
const v = {
|
|
1970
1970
|
version: go,
|
|
1971
1971
|
locale: u.value,
|
|
@@ -1979,22 +1979,22 @@ function To(e = {}) {
|
|
|
1979
1979
|
fallbackFormat: L,
|
|
1980
1980
|
unresolving: !0,
|
|
1981
1981
|
postTranslation: h === null ? void 0 : h,
|
|
1982
|
-
warnHtmlMessage:
|
|
1982
|
+
warnHtmlMessage: S,
|
|
1983
1983
|
escapeParameter: c,
|
|
1984
1984
|
messageResolver: e.messageResolver,
|
|
1985
1985
|
messageCompiler: e.messageCompiler,
|
|
1986
1986
|
__meta: { framework: "vue" }
|
|
1987
1987
|
};
|
|
1988
|
-
v.datetimeFormats =
|
|
1989
|
-
const
|
|
1990
|
-
return
|
|
1988
|
+
v.datetimeFormats = y.value, v.numberFormats = T.value, v.__datetimeFormatters = ee(p) ? p.__datetimeFormatters : void 0, v.__numberFormatters = ee(p) ? p.__numberFormatters : void 0;
|
|
1989
|
+
const E = no(v);
|
|
1990
|
+
return r && bn(E), E;
|
|
1991
1991
|
})(), lt(p, u.value, i.value);
|
|
1992
|
-
function
|
|
1992
|
+
function A() {
|
|
1993
1993
|
return [
|
|
1994
1994
|
u.value,
|
|
1995
1995
|
i.value,
|
|
1996
1996
|
g.value,
|
|
1997
|
-
|
|
1997
|
+
y.value,
|
|
1998
1998
|
T.value
|
|
1999
1999
|
];
|
|
2000
2000
|
}
|
|
@@ -2008,54 +2008,54 @@ function To(e = {}) {
|
|
|
2008
2008
|
set: (v) => {
|
|
2009
2009
|
i.value = v, p.fallbackLocale = i.value, lt(p, u.value, v);
|
|
2010
2010
|
}
|
|
2011
|
-
}),
|
|
2011
|
+
}), d = z(() => g.value), C = /* @__PURE__ */ z(() => y.value), U = /* @__PURE__ */ z(() => T.value);
|
|
2012
2012
|
function V() {
|
|
2013
|
-
return
|
|
2013
|
+
return de(h) ? h : null;
|
|
2014
2014
|
}
|
|
2015
2015
|
function j(v) {
|
|
2016
2016
|
h = v, p.postTranslation = v;
|
|
2017
2017
|
}
|
|
2018
2018
|
function G() {
|
|
2019
|
-
return
|
|
2019
|
+
return D;
|
|
2020
2020
|
}
|
|
2021
2021
|
function W(v) {
|
|
2022
|
-
v !== null && (f =
|
|
2022
|
+
v !== null && (f = kn(v)), D = v, p.missing = f;
|
|
2023
2023
|
}
|
|
2024
|
-
const Y = (v,
|
|
2025
|
-
|
|
2024
|
+
const Y = (v, E, $, le, Be, dt) => {
|
|
2025
|
+
A();
|
|
2026
2026
|
let ze;
|
|
2027
2027
|
try {
|
|
2028
|
-
bo.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__,
|
|
2028
|
+
bo.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = t ? to() : void 0), ze = v(p);
|
|
2029
2029
|
} finally {
|
|
2030
|
-
__INTLIFY_PROD_DEVTOOLS__,
|
|
2030
|
+
__INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = void 0);
|
|
2031
2031
|
}
|
|
2032
2032
|
if ($ !== "translate exists" && // for not `te` (e.g `t`)
|
|
2033
2033
|
ge(ze) && ze === Ot || $ === "translate exists" && !ze) {
|
|
2034
|
-
const [
|
|
2035
|
-
return t &&
|
|
2034
|
+
const [cr, Ea] = E();
|
|
2035
|
+
return t && w ? le(t) : Be(cr);
|
|
2036
2036
|
} else {
|
|
2037
|
-
if (
|
|
2037
|
+
if (dt(ze))
|
|
2038
2038
|
return ze;
|
|
2039
2039
|
throw ut(at.UNEXPECTED_RETURN_TYPE);
|
|
2040
2040
|
}
|
|
2041
2041
|
};
|
|
2042
2042
|
function B(...v) {
|
|
2043
|
-
return Y((
|
|
2043
|
+
return Y((E) => Reflect.apply(On, null, [E, ...v]), () => Vt(...v), "translate", (E) => Reflect.apply(E.t, E, [...v]), (E) => E, (E) => Z(E));
|
|
2044
2044
|
}
|
|
2045
2045
|
function ne(...v) {
|
|
2046
|
-
const [
|
|
2046
|
+
const [E, $, le] = v;
|
|
2047
2047
|
if (le && !te(le))
|
|
2048
2048
|
throw ut(at.INVALID_ARGUMENT);
|
|
2049
|
-
return B(
|
|
2049
|
+
return B(E, $, Ie({ resolvedMessage: !0 }, le || {}));
|
|
2050
2050
|
}
|
|
2051
2051
|
function Q(...v) {
|
|
2052
|
-
return Y((
|
|
2052
|
+
return Y((E) => Reflect.apply(In, null, [E, ...v]), () => jt(...v), "datetime format", (E) => Reflect.apply(E.d, E, [...v]), () => vn, (E) => Z(E));
|
|
2053
2053
|
}
|
|
2054
2054
|
function _e(...v) {
|
|
2055
|
-
return Y((
|
|
2055
|
+
return Y((E) => Reflect.apply(En, null, [E, ...v]), () => Ut(...v), "number format", (E) => Reflect.apply(E.n, E, [...v]), () => vn, (E) => Z(E));
|
|
2056
2056
|
}
|
|
2057
2057
|
function ce(v) {
|
|
2058
|
-
return v.map((
|
|
2058
|
+
return v.map((E) => Z(E) || ge(E) || ve(E) ? Sn(String(E)) : E);
|
|
2059
2059
|
}
|
|
2060
2060
|
const fe = {
|
|
2061
2061
|
normalize: ce,
|
|
@@ -2063,107 +2063,107 @@ function To(e = {}) {
|
|
|
2063
2063
|
type: "vnode"
|
|
2064
2064
|
};
|
|
2065
2065
|
function q(...v) {
|
|
2066
|
-
return Y((
|
|
2066
|
+
return Y((E) => {
|
|
2067
2067
|
let $;
|
|
2068
|
-
const le =
|
|
2068
|
+
const le = E;
|
|
2069
2069
|
try {
|
|
2070
2070
|
le.processor = fe, $ = Reflect.apply(On, null, [le, ...v]);
|
|
2071
2071
|
} finally {
|
|
2072
2072
|
le.processor = null;
|
|
2073
2073
|
}
|
|
2074
2074
|
return $;
|
|
2075
|
-
}, () => Vt(...v), "translate", (
|
|
2075
|
+
}, () => Vt(...v), "translate", (E) => E[xt](...v), (E) => [Sn(E)], (E) => be(E));
|
|
2076
2076
|
}
|
|
2077
|
-
function
|
|
2078
|
-
return Y((
|
|
2077
|
+
function De(...v) {
|
|
2078
|
+
return Y((E) => Reflect.apply(En, null, [E, ...v]), () => Ut(...v), "number format", (E) => E[Gt](...v), Ln, (E) => Z(E) || be(E));
|
|
2079
2079
|
}
|
|
2080
2080
|
function K(...v) {
|
|
2081
|
-
return Y((
|
|
2081
|
+
return Y((E) => Reflect.apply(In, null, [E, ...v]), () => jt(...v), "datetime format", (E) => E[Wt](...v), Ln, (E) => Z(E) || be(E));
|
|
2082
2082
|
}
|
|
2083
2083
|
function pe(v) {
|
|
2084
2084
|
I = v, p.pluralRules = I;
|
|
2085
2085
|
}
|
|
2086
|
-
function Je(v,
|
|
2086
|
+
function Je(v, E) {
|
|
2087
2087
|
return Y(() => {
|
|
2088
2088
|
if (!v)
|
|
2089
2089
|
return !1;
|
|
2090
|
-
const $ = Z(
|
|
2090
|
+
const $ = Z(E) ? E : u.value, le = Fe($), Be = p.messageResolver(le, v);
|
|
2091
2091
|
return ot(Be) || Te(Be) || Z(Be);
|
|
2092
|
-
}, () => [v], "translate exists", ($) => Reflect.apply($.te, $, [v,
|
|
2092
|
+
}, () => [v], "translate exists", ($) => Reflect.apply($.te, $, [v, E]), No, ($) => ve($));
|
|
2093
2093
|
}
|
|
2094
2094
|
function Ke(v) {
|
|
2095
|
-
let
|
|
2095
|
+
let E = null;
|
|
2096
2096
|
const $ = Hn(p, i.value, u.value);
|
|
2097
2097
|
for (let le = 0; le < $.length; le++) {
|
|
2098
|
-
const Be = g.value[$[le]] || {},
|
|
2099
|
-
if (
|
|
2100
|
-
|
|
2098
|
+
const Be = g.value[$[le]] || {}, dt = p.messageResolver(Be, v);
|
|
2099
|
+
if (dt != null) {
|
|
2100
|
+
E = dt;
|
|
2101
2101
|
break;
|
|
2102
2102
|
}
|
|
2103
2103
|
}
|
|
2104
|
-
return
|
|
2104
|
+
return E;
|
|
2105
2105
|
}
|
|
2106
2106
|
function Ve(v) {
|
|
2107
|
-
const
|
|
2108
|
-
return
|
|
2107
|
+
const E = Ke(v);
|
|
2108
|
+
return E ?? (t ? t.tm(v) || {} : {});
|
|
2109
2109
|
}
|
|
2110
2110
|
function Fe(v) {
|
|
2111
2111
|
return g.value[v] || {};
|
|
2112
2112
|
}
|
|
2113
|
-
function Ce(v,
|
|
2113
|
+
function Ce(v, E) {
|
|
2114
2114
|
if (l) {
|
|
2115
|
-
const $ = { [v]:
|
|
2115
|
+
const $ = { [v]: E };
|
|
2116
2116
|
for (const le in $)
|
|
2117
|
-
|
|
2118
|
-
|
|
2117
|
+
Ae($, le) && mt($[le]);
|
|
2118
|
+
E = $[v];
|
|
2119
2119
|
}
|
|
2120
|
-
g.value[v] =
|
|
2120
|
+
g.value[v] = E, p.messages = g.value;
|
|
2121
2121
|
}
|
|
2122
|
-
function Ye(v,
|
|
2122
|
+
function Ye(v, E) {
|
|
2123
2123
|
g.value[v] = g.value[v] || {};
|
|
2124
|
-
const $ = { [v]:
|
|
2124
|
+
const $ = { [v]: E };
|
|
2125
2125
|
if (l)
|
|
2126
2126
|
for (const le in $)
|
|
2127
|
-
|
|
2128
|
-
|
|
2127
|
+
Ae($, le) && mt($[le]);
|
|
2128
|
+
E = $[v], yt(E, g.value[v]), p.messages = g.value;
|
|
2129
2129
|
}
|
|
2130
2130
|
function O(v) {
|
|
2131
|
-
return
|
|
2131
|
+
return y.value[v] || {};
|
|
2132
2132
|
}
|
|
2133
|
-
function
|
|
2134
|
-
|
|
2133
|
+
function s(v, E) {
|
|
2134
|
+
y.value[v] = E, p.datetimeFormats = y.value, yn(p, v, E);
|
|
2135
2135
|
}
|
|
2136
|
-
function o(v,
|
|
2137
|
-
|
|
2136
|
+
function o(v, E) {
|
|
2137
|
+
y.value[v] = Ie(y.value[v] || {}, E), p.datetimeFormats = y.value, yn(p, v, E);
|
|
2138
2138
|
}
|
|
2139
2139
|
function _(v) {
|
|
2140
2140
|
return T.value[v] || {};
|
|
2141
2141
|
}
|
|
2142
|
-
function
|
|
2143
|
-
T.value[v] =
|
|
2142
|
+
function R(v, E) {
|
|
2143
|
+
T.value[v] = E, p.numberFormats = T.value, Nn(p, v, E);
|
|
2144
2144
|
}
|
|
2145
|
-
function M(v,
|
|
2146
|
-
T.value[v] = Ie(T.value[v] || {},
|
|
2145
|
+
function M(v, E) {
|
|
2146
|
+
T.value[v] = Ie(T.value[v] || {}, E), p.numberFormats = T.value, Nn(p, v, E);
|
|
2147
2147
|
}
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
}),
|
|
2151
|
-
|
|
2148
|
+
Rn++, t && on && (wt(t.locale, (v) => {
|
|
2149
|
+
m && (u.value = v, p.locale = v, lt(p, u.value, i.value));
|
|
2150
|
+
}), wt(t.fallbackLocale, (v) => {
|
|
2151
|
+
m && (i.value = v, p.fallbackLocale = v, lt(p, u.value, i.value));
|
|
2152
2152
|
}));
|
|
2153
2153
|
const P = {
|
|
2154
|
-
id:
|
|
2154
|
+
id: Rn,
|
|
2155
2155
|
locale: X,
|
|
2156
2156
|
fallbackLocale: x,
|
|
2157
2157
|
get inheritLocale() {
|
|
2158
|
-
return
|
|
2158
|
+
return m;
|
|
2159
2159
|
},
|
|
2160
2160
|
set inheritLocale(v) {
|
|
2161
|
-
|
|
2161
|
+
m = v, v && t && (u.value = t.locale.value, i.value = t.fallbackLocale.value, lt(p, u.value, i.value));
|
|
2162
2162
|
},
|
|
2163
2163
|
get availableLocales() {
|
|
2164
2164
|
return Object.keys(g.value).sort();
|
|
2165
2165
|
},
|
|
2166
|
-
messages:
|
|
2166
|
+
messages: d,
|
|
2167
2167
|
get modifiers() {
|
|
2168
2168
|
return b;
|
|
2169
2169
|
},
|
|
@@ -2171,7 +2171,7 @@ function To(e = {}) {
|
|
|
2171
2171
|
return I || {};
|
|
2172
2172
|
},
|
|
2173
2173
|
get isGlobal() {
|
|
2174
|
-
return
|
|
2174
|
+
return r;
|
|
2175
2175
|
},
|
|
2176
2176
|
get missingWarn() {
|
|
2177
2177
|
return N;
|
|
@@ -2186,10 +2186,10 @@ function To(e = {}) {
|
|
|
2186
2186
|
F = v, p.fallbackWarn = F;
|
|
2187
2187
|
},
|
|
2188
2188
|
get fallbackRoot() {
|
|
2189
|
-
return
|
|
2189
|
+
return w;
|
|
2190
2190
|
},
|
|
2191
2191
|
set fallbackRoot(v) {
|
|
2192
|
-
|
|
2192
|
+
w = v;
|
|
2193
2193
|
},
|
|
2194
2194
|
get fallbackFormat() {
|
|
2195
2195
|
return L;
|
|
@@ -2198,10 +2198,10 @@ function To(e = {}) {
|
|
|
2198
2198
|
L = v, p.fallbackFormat = L;
|
|
2199
2199
|
},
|
|
2200
2200
|
get warnHtmlMessage() {
|
|
2201
|
-
return
|
|
2201
|
+
return S;
|
|
2202
2202
|
},
|
|
2203
2203
|
set warnHtmlMessage(v) {
|
|
2204
|
-
|
|
2204
|
+
S = v, p.warnHtmlMessage = v;
|
|
2205
2205
|
},
|
|
2206
2206
|
get escapeParameter() {
|
|
2207
2207
|
return c;
|
|
@@ -2217,9 +2217,9 @@ function To(e = {}) {
|
|
|
2217
2217
|
setPostTranslationHandler: j,
|
|
2218
2218
|
getMissingHandler: G,
|
|
2219
2219
|
setMissingHandler: W,
|
|
2220
|
-
[
|
|
2220
|
+
[yo]: pe
|
|
2221
2221
|
};
|
|
2222
|
-
return P.datetimeFormats = C, P.numberFormats = U, P.rt = ne, P.te = Je, P.tm = Ve, P.d = Q, P.n = _e, P.getDateTimeFormat = O, P.setDateTimeFormat =
|
|
2222
|
+
return P.datetimeFormats = C, P.numberFormats = U, P.rt = ne, P.te = Je, P.tm = Ve, P.d = Q, P.n = _e, P.getDateTimeFormat = O, P.setDateTimeFormat = s, P.mergeDateTimeFormat = o, P.getNumberFormat = _, P.setNumberFormat = R, P.mergeNumberFormat = M, P[rr] = n, P[xt] = q, P[Wt] = K, P[Gt] = De, P;
|
|
2223
2223
|
}
|
|
2224
2224
|
const qt = {
|
|
2225
2225
|
tag: {
|
|
@@ -2240,17 +2240,17 @@ const qt = {
|
|
|
2240
2240
|
}
|
|
2241
2241
|
};
|
|
2242
2242
|
function Oo({ slots: e }, t) {
|
|
2243
|
-
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((
|
|
2244
|
-
...
|
|
2243
|
+
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, l) => [
|
|
2244
|
+
...r,
|
|
2245
2245
|
// prettier-ignore
|
|
2246
|
-
...l.type ===
|
|
2247
|
-
], []) : t.reduce((n,
|
|
2248
|
-
const l = e[
|
|
2249
|
-
return l && (n[
|
|
2250
|
-
},
|
|
2246
|
+
...l.type === ke ? l.children : [l]
|
|
2247
|
+
], []) : t.reduce((n, r) => {
|
|
2248
|
+
const l = e[r];
|
|
2249
|
+
return l && (n[r] = l()), n;
|
|
2250
|
+
}, se());
|
|
2251
2251
|
}
|
|
2252
|
-
function
|
|
2253
|
-
return
|
|
2252
|
+
function ar() {
|
|
2253
|
+
return ke;
|
|
2254
2254
|
}
|
|
2255
2255
|
Ie({
|
|
2256
2256
|
keypath: {
|
|
@@ -2262,23 +2262,23 @@ Ie({
|
|
|
2262
2262
|
validator: (e) => ge(e) || !isNaN(e)
|
|
2263
2263
|
}
|
|
2264
2264
|
}, qt);
|
|
2265
|
-
function
|
|
2265
|
+
function So(e) {
|
|
2266
2266
|
return be(e) && !Z(e[0]);
|
|
2267
2267
|
}
|
|
2268
|
-
function
|
|
2268
|
+
function lr(e, t, n, r) {
|
|
2269
2269
|
const { slots: l, attrs: a } = t;
|
|
2270
2270
|
return () => {
|
|
2271
|
-
const
|
|
2272
|
-
let u =
|
|
2273
|
-
e.locale && (
|
|
2274
|
-
const i =
|
|
2275
|
-
let g = [
|
|
2271
|
+
const m = { part: !0 };
|
|
2272
|
+
let u = se();
|
|
2273
|
+
e.locale && (m.locale = e.locale), Z(e.format) ? m.key = e.format : te(e.format) && (Z(e.format.key) && (m.key = e.format.key), u = Object.keys(e.format).reduce((N, F) => n.includes(F) ? Ie(se(), N, { [F]: e.format[F] }) : N, se()));
|
|
2274
|
+
const i = r(e.value, m, u);
|
|
2275
|
+
let g = [m.key];
|
|
2276
2276
|
be(i) ? g = i.map((N, F) => {
|
|
2277
|
-
const
|
|
2278
|
-
return
|
|
2277
|
+
const w = l[N.type], L = w ? w({ [N.type]: N.value, index: F, parts: i }) : [N.value];
|
|
2278
|
+
return So(L) && (L[0].key = `${N.type}-${F}`), L;
|
|
2279
2279
|
}) : Z(i) && (g = [i]);
|
|
2280
|
-
const
|
|
2281
|
-
return Wn(T,
|
|
2280
|
+
const y = Ie(se(), a), T = Z(e.tag) || te(e.tag) ? e.tag : ar();
|
|
2281
|
+
return Wn(T, y, g);
|
|
2282
2282
|
};
|
|
2283
2283
|
}
|
|
2284
2284
|
Ie({
|
|
@@ -2299,77 +2299,77 @@ Ie({
|
|
|
2299
2299
|
type: [String, Object]
|
|
2300
2300
|
}
|
|
2301
2301
|
}, qt);
|
|
2302
|
-
const
|
|
2303
|
-
function
|
|
2302
|
+
const Ao = /* @__PURE__ */ $e("global-vue-i18n");
|
|
2303
|
+
function St(e = {}) {
|
|
2304
2304
|
const t = Bt();
|
|
2305
2305
|
if (t == null)
|
|
2306
2306
|
throw ut(at.MUST_BE_CALL_SETUP_TOP);
|
|
2307
2307
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2308
2308
|
throw ut(at.NOT_INSTALLED);
|
|
2309
|
-
const n = Lo(t),
|
|
2309
|
+
const n = Lo(t), r = ko(n), l = or(t), a = Ro(e, l);
|
|
2310
2310
|
if (a === "global")
|
|
2311
|
-
return
|
|
2311
|
+
return Eo(r, e, l), r;
|
|
2312
2312
|
if (a === "parent") {
|
|
2313
2313
|
let i = Mo(n, t, e.__useComponent);
|
|
2314
|
-
return i == null && (i =
|
|
2314
|
+
return i == null && (i = r), i;
|
|
2315
2315
|
}
|
|
2316
|
-
const
|
|
2317
|
-
let u =
|
|
2316
|
+
const m = n;
|
|
2317
|
+
let u = m.__getInstance(t);
|
|
2318
2318
|
if (u == null) {
|
|
2319
2319
|
const i = Ie({}, e);
|
|
2320
|
-
"__i18n" in l && (i.__i18n = l.__i18n),
|
|
2320
|
+
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u = To(i), m.__composerExtend && (u[Zt] = m.__composerExtend(u)), Do(m, t, u), m.__setInstance(t, u);
|
|
2321
2321
|
}
|
|
2322
2322
|
return u;
|
|
2323
2323
|
}
|
|
2324
2324
|
function Lo(e) {
|
|
2325
|
-
const t =
|
|
2325
|
+
const t = ur(e.isCE ? Ao : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2326
2326
|
if (!t)
|
|
2327
2327
|
throw ut(e.isCE ? at.NOT_INSTALLED_WITH_PROVIDE : at.UNEXPECTED_ERROR);
|
|
2328
2328
|
return t;
|
|
2329
2329
|
}
|
|
2330
|
-
function
|
|
2330
|
+
function Ro(e, t) {
|
|
2331
2331
|
return Ct(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2332
2332
|
}
|
|
2333
|
-
function
|
|
2333
|
+
function ko(e) {
|
|
2334
2334
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2335
2335
|
}
|
|
2336
2336
|
function Mo(e, t, n = !1) {
|
|
2337
|
-
let
|
|
2337
|
+
let r = null;
|
|
2338
2338
|
const l = t.root;
|
|
2339
|
-
let a =
|
|
2339
|
+
let a = wo(t, n);
|
|
2340
2340
|
for (; a != null; ) {
|
|
2341
|
-
const
|
|
2341
|
+
const m = e;
|
|
2342
2342
|
if (e.mode === "composition")
|
|
2343
|
-
|
|
2343
|
+
r = m.__getInstance(a);
|
|
2344
2344
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
2345
|
-
const u =
|
|
2346
|
-
u != null && (
|
|
2345
|
+
const u = m.__getInstance(a);
|
|
2346
|
+
u != null && (r = u.__composer, n && r && !r[rr] && (r = null));
|
|
2347
2347
|
}
|
|
2348
|
-
if (
|
|
2348
|
+
if (r != null || l === a)
|
|
2349
2349
|
break;
|
|
2350
2350
|
a = a.parent;
|
|
2351
2351
|
}
|
|
2352
|
-
return
|
|
2352
|
+
return r;
|
|
2353
2353
|
}
|
|
2354
|
-
function
|
|
2354
|
+
function wo(e, t = !1) {
|
|
2355
2355
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2356
2356
|
}
|
|
2357
|
-
function
|
|
2357
|
+
function Do(e, t, n) {
|
|
2358
2358
|
xn(() => {
|
|
2359
|
-
}, t),
|
|
2360
|
-
const
|
|
2359
|
+
}, t), dr(() => {
|
|
2360
|
+
const r = n;
|
|
2361
2361
|
e.__deleteInstance(t);
|
|
2362
|
-
const l =
|
|
2363
|
-
l && (l(), delete
|
|
2362
|
+
const l = r[Zt];
|
|
2363
|
+
l && (l(), delete r[Zt]);
|
|
2364
2364
|
}, t);
|
|
2365
2365
|
}
|
|
2366
2366
|
Io();
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2367
|
+
Ks(ks);
|
|
2368
|
+
zs(Hs);
|
|
2369
|
+
Qs(Hn);
|
|
2370
2370
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2371
2371
|
const e = Xe();
|
|
2372
|
-
e.__INTLIFY__ = !0,
|
|
2372
|
+
e.__INTLIFY__ = !0, Ms(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2373
2373
|
}
|
|
2374
2374
|
const vt = /* @__PURE__ */ Le({
|
|
2375
2375
|
__name: "InheritPermissionTooltip",
|
|
@@ -2380,21 +2380,21 @@ const vt = /* @__PURE__ */ Le({
|
|
|
2380
2380
|
}
|
|
2381
2381
|
},
|
|
2382
2382
|
setup(e) {
|
|
2383
|
-
const { t } =
|
|
2384
|
-
return (n,
|
|
2385
|
-
const l =
|
|
2383
|
+
const { t } = St();
|
|
2384
|
+
return (n, r) => {
|
|
2385
|
+
const l = we("FmIcon"), a = we("FmTooltip");
|
|
2386
2386
|
return J(), Ne(a, {
|
|
2387
2387
|
variant: "plain",
|
|
2388
2388
|
placement: "right",
|
|
2389
2389
|
"z-index": 50
|
|
2390
2390
|
}, {
|
|
2391
|
-
content:
|
|
2391
|
+
content: me(() => [
|
|
2392
2392
|
ae("div", null, Oe(H(t)("team.memberForm.permissions.inherited")), 1),
|
|
2393
|
-
(J(!0), ie(
|
|
2394
|
-
ae("div", null, "- " + Oe(
|
|
2393
|
+
(J(!0), ie(ke, null, Ee(e.item.setNames, (m) => (J(), ie("div", { key: m }, [
|
|
2394
|
+
ae("div", null, "- " + Oe(m), 1)
|
|
2395
2395
|
]))), 128))
|
|
2396
2396
|
]),
|
|
2397
|
-
default:
|
|
2397
|
+
default: me(() => [
|
|
2398
2398
|
ue(l, {
|
|
2399
2399
|
name: "admin_panel_settings",
|
|
2400
2400
|
size: "sm",
|
|
@@ -2407,47 +2407,47 @@ const vt = /* @__PURE__ */ Le({
|
|
|
2407
2407
|
}
|
|
2408
2408
|
});
|
|
2409
2409
|
function Mn(e, t, n) {
|
|
2410
|
-
const
|
|
2411
|
-
if (
|
|
2410
|
+
const r = n.filter((u) => u !== "manage");
|
|
2411
|
+
if (r.length === 0) return;
|
|
2412
2412
|
const l = e.findIndex((u) => u.subject === t && !u.inverted);
|
|
2413
2413
|
if (l < 0) return;
|
|
2414
|
-
const a = new Set(e[l].actions),
|
|
2415
|
-
|
|
2414
|
+
const a = new Set(e[l].actions), m = r.every((u) => a.has(u));
|
|
2415
|
+
m && !a.has("manage") ? (a.add("manage"), e[l] = {
|
|
2416
2416
|
...e[l],
|
|
2417
2417
|
actions: Array.from(a)
|
|
2418
|
-
}) : !
|
|
2418
|
+
}) : !m && a.has("manage") && (a.delete("manage"), a.size === 0 ? e.splice(l, 1) : e[l] = {
|
|
2419
2419
|
...e[l],
|
|
2420
2420
|
actions: Array.from(a)
|
|
2421
2421
|
});
|
|
2422
2422
|
}
|
|
2423
|
-
const
|
|
2423
|
+
const wn = Object.values(Sr), Fo = {
|
|
2424
2424
|
read: "View",
|
|
2425
2425
|
create: "Duplicate",
|
|
2426
2426
|
update: "Edit"
|
|
2427
2427
|
};
|
|
2428
|
-
function Po(e, t, n,
|
|
2429
|
-
const { t: l } = He(), { getFlagValue: a, getFlag:
|
|
2428
|
+
function Po(e, t, n, r) {
|
|
2429
|
+
const { t: l } = He(), { getFlagValue: a, getFlag: m } = Or(), u = z(() => {
|
|
2430
2430
|
var j;
|
|
2431
|
-
const
|
|
2431
|
+
const d = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map();
|
|
2432
2432
|
for (const G of t.value) {
|
|
2433
2433
|
const W = G.category;
|
|
2434
2434
|
if (!W) continue;
|
|
2435
2435
|
const Y = G.subject;
|
|
2436
|
-
if (n.value.includes(G.subject) || G.showByFeatureFlag && ((j =
|
|
2436
|
+
if (n.value.includes(G.subject) || G.showByFeatureFlag && ((j = m(G.showByFeatureFlag)) == null ? void 0 : j.enabled) === !1 && a(G.showByFeatureFlag) === "true")
|
|
2437
2437
|
continue;
|
|
2438
|
-
|
|
2438
|
+
d.has(W) || d.set(W, []);
|
|
2439
2439
|
const B = U.get(Y) ?? 0;
|
|
2440
|
-
U.set(Y, B + 1),
|
|
2440
|
+
U.set(Y, B + 1), d.get(W).push({
|
|
2441
2441
|
label: l(`permissionSet.permissionLabels.${Y}`, G.label),
|
|
2442
2442
|
value: Y,
|
|
2443
2443
|
optionKey: `${Y}::${B}`
|
|
2444
2444
|
}), C.has(Y) || C.set(Y, G);
|
|
2445
2445
|
}
|
|
2446
|
-
return [...
|
|
2447
|
-
const Y =
|
|
2446
|
+
return [...d.keys()].sort((G, W) => {
|
|
2447
|
+
const Y = wn.indexOf(G), B = wn.indexOf(W);
|
|
2448
2448
|
return Y === -1 && B === -1 ? G.localeCompare(W) : Y === -1 ? 1 : B === -1 ? -1 : Y - B;
|
|
2449
2449
|
}).map((G) => {
|
|
2450
|
-
const W =
|
|
2450
|
+
const W = d.get(G), Y = l(`permissionSet.categoryLabels.${G}`, G), B = /* @__PURE__ */ new Map();
|
|
2451
2451
|
for (const K of W) {
|
|
2452
2452
|
const pe = C.get(K.value);
|
|
2453
2453
|
pe && B.set(K.value, pe.actions);
|
|
@@ -2467,7 +2467,7 @@ function Po(e, t, n, s) {
|
|
|
2467
2467
|
).map((K) => K.subject) : e.value.filter((K) => W.some((pe) => pe.value === K.subject) && !K.inverted).map((K) => K.subject), oe = W.find((K) => {
|
|
2468
2468
|
var pe;
|
|
2469
2469
|
return (pe = C.get(K.value)) == null ? void 0 : pe.isCategoryCover;
|
|
2470
|
-
}), fe = (oe == null ? void 0 : oe.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(),
|
|
2470
|
+
}), fe = (oe == null ? void 0 : oe.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), De = q.has("manage");
|
|
2471
2471
|
return {
|
|
2472
2472
|
category: G,
|
|
2473
2473
|
label: Y,
|
|
@@ -2479,12 +2479,12 @@ function Po(e, t, n, s) {
|
|
|
2479
2479
|
selectedActionsMap: _e,
|
|
2480
2480
|
coverSubject: fe,
|
|
2481
2481
|
coverSelectedActions: q,
|
|
2482
|
-
coverCoversAll:
|
|
2482
|
+
coverCoversAll: De
|
|
2483
2483
|
};
|
|
2484
2484
|
});
|
|
2485
2485
|
});
|
|
2486
|
-
function i(
|
|
2487
|
-
const U = u.value.find((Q) => Q.category ===
|
|
2486
|
+
function i(d, C) {
|
|
2487
|
+
const U = u.value.find((Q) => Q.category === d), V = (U == null ? void 0 : U.options) ?? [], j = new Set(V.map((Q) => Q.value)), G = new Set(C), W = /* @__PURE__ */ new Map();
|
|
2488
2488
|
for (const Q of e.value)
|
|
2489
2489
|
j.has(Q.subject) && !Q.inverted && W.set(Q.subject, Q.conditions);
|
|
2490
2490
|
const Y = U != null && U.coverSubject ? W.get(U.coverSubject) : void 0, B = /* @__PURE__ */ new Set(), ne = t.value.flatMap(
|
|
@@ -2498,65 +2498,65 @@ function Po(e, t, n, s) {
|
|
|
2498
2498
|
];
|
|
2499
2499
|
}
|
|
2500
2500
|
);
|
|
2501
|
-
|
|
2501
|
+
r("update:model-value", [
|
|
2502
2502
|
...e.value.filter((Q) => !j.has(Q.subject)),
|
|
2503
2503
|
...ne
|
|
2504
2504
|
]);
|
|
2505
2505
|
}
|
|
2506
|
-
function g(
|
|
2507
|
-
return F(
|
|
2506
|
+
function g(d, C) {
|
|
2507
|
+
return F(d, C) || c(d, C);
|
|
2508
2508
|
}
|
|
2509
|
-
function
|
|
2510
|
-
return
|
|
2509
|
+
function y(d) {
|
|
2510
|
+
return d.options.length > 0 && d.options.every((C) => g(d, C.value));
|
|
2511
2511
|
}
|
|
2512
|
-
function T(
|
|
2513
|
-
return
|
|
2514
|
-
(C) => g(
|
|
2512
|
+
function T(d) {
|
|
2513
|
+
return d.options.length === 0 || y(d) ? !1 : d.options.some(
|
|
2514
|
+
(C) => g(d, C.value) || w(d, C.value).length > 0
|
|
2515
2515
|
);
|
|
2516
2516
|
}
|
|
2517
|
-
function N(
|
|
2518
|
-
const C = new Set(
|
|
2519
|
-
if (
|
|
2520
|
-
|
|
2517
|
+
function N(d) {
|
|
2518
|
+
const C = new Set(d.options.map((V) => V.value)), U = e.value.filter((V) => !C.has(V.subject));
|
|
2519
|
+
if (y(d))
|
|
2520
|
+
r("update:model-value", U);
|
|
2521
2521
|
else {
|
|
2522
2522
|
const V = /* @__PURE__ */ new Map();
|
|
2523
2523
|
for (const Y of e.value)
|
|
2524
2524
|
C.has(Y.subject) && !Y.inverted && V.set(Y.subject, Y.conditions);
|
|
2525
|
-
const j =
|
|
2525
|
+
const j = d.coverSubject ? V.get(d.coverSubject) : void 0, G = /* @__PURE__ */ new Set(), W = t.value.flatMap(
|
|
2526
2526
|
({ category: Y, showByFeatureFlag: B, isCategoryCover: ne, ...Q }) => {
|
|
2527
2527
|
const _e = Q.subject;
|
|
2528
2528
|
if (!C.has(_e) || G.has(_e)) return [];
|
|
2529
2529
|
G.add(_e);
|
|
2530
2530
|
let ce;
|
|
2531
|
-
return V.has(_e) ? ce = V.get(_e) :
|
|
2531
|
+
return V.has(_e) ? ce = V.get(_e) : d.coverSubject && _e !== d.coverSubject && (ce = j), [
|
|
2532
2532
|
{ ...Q, ...ce !== void 0 && { conditions: ce } }
|
|
2533
2533
|
];
|
|
2534
2534
|
}
|
|
2535
2535
|
);
|
|
2536
|
-
|
|
2536
|
+
r("update:model-value", [...U, ...W]);
|
|
2537
2537
|
}
|
|
2538
2538
|
}
|
|
2539
|
-
function F(
|
|
2540
|
-
const U =
|
|
2539
|
+
function F(d, C) {
|
|
2540
|
+
const U = d.selectedActionsMap.get(C);
|
|
2541
2541
|
return U ? U.has("manage") : !1;
|
|
2542
2542
|
}
|
|
2543
|
-
function
|
|
2544
|
-
const U =
|
|
2543
|
+
function w(d, C) {
|
|
2544
|
+
const U = d.permissionActionsMap.get(C);
|
|
2545
2545
|
return U ? U.filter((j) => j !== "manage").filter(
|
|
2546
|
-
(j) =>
|
|
2546
|
+
(j) => S(d, C, j) || b(d, C, j)
|
|
2547
2547
|
) : [];
|
|
2548
2548
|
}
|
|
2549
|
-
function L(
|
|
2550
|
-
return c(
|
|
2549
|
+
function L(d, C) {
|
|
2550
|
+
return c(d, C) ? !1 : !F(d, C) && w(d, C).length > 0;
|
|
2551
2551
|
}
|
|
2552
|
-
function
|
|
2553
|
-
if (!
|
|
2552
|
+
function D(d, C) {
|
|
2553
|
+
if (!d.coverSubject || C === d.coverSubject) return;
|
|
2554
2554
|
const U = e.value.find(
|
|
2555
|
-
(V) => !V.inverted && V.subject ===
|
|
2555
|
+
(V) => !V.inverted && V.subject === d.coverSubject
|
|
2556
2556
|
);
|
|
2557
2557
|
return (U == null ? void 0 : U.conditions) || void 0;
|
|
2558
2558
|
}
|
|
2559
|
-
function f(
|
|
2559
|
+
function f(d, C, U) {
|
|
2560
2560
|
if (U) {
|
|
2561
2561
|
const V = t.value.find((Q) => Q.subject === C);
|
|
2562
2562
|
if (!V) return;
|
|
@@ -2565,43 +2565,43 @@ function Po(e, t, n, s) {
|
|
|
2565
2565
|
showByFeatureFlag: G,
|
|
2566
2566
|
isCategoryCover: W,
|
|
2567
2567
|
...Y
|
|
2568
|
-
} = V, B =
|
|
2568
|
+
} = V, B = D(d, C), ne = e.value.filter((Q) => Q.subject !== C);
|
|
2569
2569
|
ne.push({
|
|
2570
2570
|
...Y,
|
|
2571
2571
|
...B !== void 0 && { conditions: B }
|
|
2572
|
-
}),
|
|
2572
|
+
}), r("update:model-value", ne);
|
|
2573
2573
|
} else
|
|
2574
|
-
|
|
2574
|
+
r(
|
|
2575
2575
|
"update:model-value",
|
|
2576
2576
|
e.value.filter((V) => V.subject !== C)
|
|
2577
2577
|
);
|
|
2578
2578
|
}
|
|
2579
|
-
function h(
|
|
2580
|
-
const U =
|
|
2579
|
+
function h(d, C) {
|
|
2580
|
+
const U = d.permissionActionsMap.get(C);
|
|
2581
2581
|
return U ? U.some((V) => V !== "manage") : !1;
|
|
2582
2582
|
}
|
|
2583
|
-
function
|
|
2584
|
-
const V =
|
|
2583
|
+
function S(d, C, U) {
|
|
2584
|
+
const V = d.selectedActionsMap.get(C);
|
|
2585
2585
|
return V ? V.has(U) : !1;
|
|
2586
2586
|
}
|
|
2587
|
-
function c(
|
|
2588
|
-
return !
|
|
2587
|
+
function c(d, C) {
|
|
2588
|
+
return !d.coverSubject || C === d.coverSubject ? !1 : d.coverCoversAll;
|
|
2589
2589
|
}
|
|
2590
|
-
function b(
|
|
2591
|
-
return !
|
|
2590
|
+
function b(d, C, U) {
|
|
2591
|
+
return !d.coverSubject || C === d.coverSubject ? !1 : d.coverCoversAll ? !0 : d.coverSelectedActions.has(U);
|
|
2592
2592
|
}
|
|
2593
|
-
function I(
|
|
2594
|
-
const V =
|
|
2593
|
+
function I(d, C, U) {
|
|
2594
|
+
const V = d.permissionActionsMap.get(C);
|
|
2595
2595
|
return V ? V.includes(U) : !1;
|
|
2596
2596
|
}
|
|
2597
|
-
function p(
|
|
2598
|
-
const V = [...e.value], j = V.findIndex((W) => W.subject ===
|
|
2597
|
+
function p(d, C, U) {
|
|
2598
|
+
const V = [...e.value], j = V.findIndex((W) => W.subject === d && !W.inverted);
|
|
2599
2599
|
if (U)
|
|
2600
2600
|
if (j >= 0) {
|
|
2601
2601
|
const W = { ...V[j] }, Y = new Set(W.actions);
|
|
2602
2602
|
Y.add(C), W.actions = Array.from(Y), V[j] = W;
|
|
2603
2603
|
} else {
|
|
2604
|
-
const W = t.value.find((oe) => oe.subject ===
|
|
2604
|
+
const W = t.value.find((oe) => oe.subject === d);
|
|
2605
2605
|
if (!W) return;
|
|
2606
2606
|
const {
|
|
2607
2607
|
category: Y,
|
|
@@ -2609,8 +2609,8 @@ function Po(e, t, n, s) {
|
|
|
2609
2609
|
isCategoryCover: ne,
|
|
2610
2610
|
...Q
|
|
2611
2611
|
} = W, _e = u.value.find(
|
|
2612
|
-
(oe) => oe.options.some((fe) => fe.value ===
|
|
2613
|
-
), ce = _e ?
|
|
2612
|
+
(oe) => oe.options.some((fe) => fe.value === d)
|
|
2613
|
+
), ce = _e ? D(_e, d) : void 0;
|
|
2614
2614
|
V.push({
|
|
2615
2615
|
...Q,
|
|
2616
2616
|
actions: [C],
|
|
@@ -2621,31 +2621,31 @@ function Po(e, t, n, s) {
|
|
|
2621
2621
|
const W = { ...V[j] }, Y = W.actions.filter((B) => B !== C);
|
|
2622
2622
|
Y.length === 0 ? V.splice(j, 1) : (W.actions = Y, V[j] = W);
|
|
2623
2623
|
}
|
|
2624
|
-
const G = t.value.find((W) => W.subject ===
|
|
2625
|
-
G && Mn(V,
|
|
2624
|
+
const G = t.value.find((W) => W.subject === d);
|
|
2625
|
+
G && Mn(V, d, G.actions), r("update:model-value", V);
|
|
2626
2626
|
}
|
|
2627
|
-
function
|
|
2628
|
-
const U =
|
|
2629
|
-
(V) => I(
|
|
2627
|
+
function k(d, C) {
|
|
2628
|
+
const U = d.options.filter(
|
|
2629
|
+
(V) => I(d, V.value, C)
|
|
2630
2630
|
);
|
|
2631
2631
|
return U.length === 0 ? !1 : U.every(
|
|
2632
|
-
(V) =>
|
|
2632
|
+
(V) => S(d, V.value, C) || b(d, V.value, C)
|
|
2633
2633
|
);
|
|
2634
2634
|
}
|
|
2635
|
-
function
|
|
2636
|
-
const U =
|
|
2637
|
-
(j) => I(
|
|
2635
|
+
function A(d, C) {
|
|
2636
|
+
const U = d.options.filter(
|
|
2637
|
+
(j) => I(d, j.value, C)
|
|
2638
2638
|
);
|
|
2639
2639
|
if (U.length === 0) return !1;
|
|
2640
2640
|
const V = U.filter(
|
|
2641
|
-
(j) =>
|
|
2641
|
+
(j) => S(d, j.value, C) || b(d, j.value, C)
|
|
2642
2642
|
).length;
|
|
2643
2643
|
return V > 0 && V < U.length;
|
|
2644
2644
|
}
|
|
2645
|
-
function X(
|
|
2645
|
+
function X(d, C, U) {
|
|
2646
2646
|
const V = [...e.value];
|
|
2647
|
-
for (const j of
|
|
2648
|
-
if (!I(
|
|
2647
|
+
for (const j of d.options) {
|
|
2648
|
+
if (!I(d, j.value, C)) continue;
|
|
2649
2649
|
const G = j.value, W = V.findIndex(
|
|
2650
2650
|
(B) => B.subject === G && !B.inverted
|
|
2651
2651
|
);
|
|
@@ -2661,7 +2661,7 @@ function Po(e, t, n, s) {
|
|
|
2661
2661
|
showByFeatureFlag: Q,
|
|
2662
2662
|
isCategoryCover: _e,
|
|
2663
2663
|
...ce
|
|
2664
|
-
} = B, oe =
|
|
2664
|
+
} = B, oe = D(d, G);
|
|
2665
2665
|
V.push({
|
|
2666
2666
|
...ce,
|
|
2667
2667
|
actions: [C],
|
|
@@ -2675,29 +2675,29 @@ function Po(e, t, n, s) {
|
|
|
2675
2675
|
const Y = t.value.find((B) => B.subject === G);
|
|
2676
2676
|
Y && Mn(V, G, Y.actions);
|
|
2677
2677
|
}
|
|
2678
|
-
|
|
2678
|
+
r("update:model-value", V);
|
|
2679
2679
|
}
|
|
2680
|
-
function x(
|
|
2681
|
-
const C = `permissionSet.actionLabels.${
|
|
2680
|
+
function x(d) {
|
|
2681
|
+
const C = `permissionSet.actionLabels.${d}`, U = Fo[d] ?? d.charAt(0).toUpperCase() + d.slice(1);
|
|
2682
2682
|
return l(C, U);
|
|
2683
2683
|
}
|
|
2684
2684
|
return {
|
|
2685
2685
|
categoryGroups: u,
|
|
2686
2686
|
toggleCategory: i,
|
|
2687
|
-
isAllManageChecked:
|
|
2687
|
+
isAllManageChecked: y,
|
|
2688
2688
|
isAllManageIndeterminate: T,
|
|
2689
2689
|
toggleAllManage: N,
|
|
2690
2690
|
isManageChecked: F,
|
|
2691
2691
|
isManageIndeterminate: L,
|
|
2692
2692
|
toggleManage: f,
|
|
2693
2693
|
hasNonManageActions: h,
|
|
2694
|
-
isActionChecked:
|
|
2694
|
+
isActionChecked: S,
|
|
2695
2695
|
isRowFullyCoveredByCover: c,
|
|
2696
2696
|
isActionCoveredByCover: b,
|
|
2697
2697
|
permissionDefinesAction: I,
|
|
2698
2698
|
toggleAction: p,
|
|
2699
|
-
isAllActionChecked:
|
|
2700
|
-
isAllActionIndeterminate:
|
|
2699
|
+
isAllActionChecked: k,
|
|
2700
|
+
isAllActionIndeterminate: A,
|
|
2701
2701
|
toggleAllAction: X,
|
|
2702
2702
|
actionLabel: x
|
|
2703
2703
|
};
|
|
@@ -2724,49 +2724,49 @@ const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm
|
|
|
2724
2724
|
},
|
|
2725
2725
|
emits: ["update:model-value"],
|
|
2726
2726
|
setup(e, { emit: t }) {
|
|
2727
|
-
const n = e,
|
|
2728
|
-
categoryGroups:
|
|
2727
|
+
const n = e, r = t, { t: l } = He(), a = z(() => [...Gn, ...n.additionalPermissions]), {
|
|
2728
|
+
categoryGroups: m,
|
|
2729
2729
|
isAllManageChecked: u,
|
|
2730
2730
|
isAllManageIndeterminate: i,
|
|
2731
2731
|
toggleAllManage: g,
|
|
2732
|
-
isManageChecked:
|
|
2732
|
+
isManageChecked: y,
|
|
2733
2733
|
isManageIndeterminate: T,
|
|
2734
2734
|
toggleManage: N,
|
|
2735
2735
|
isActionChecked: F,
|
|
2736
|
-
isRowFullyCoveredByCover:
|
|
2736
|
+
isRowFullyCoveredByCover: w,
|
|
2737
2737
|
isActionCoveredByCover: L,
|
|
2738
|
-
permissionDefinesAction:
|
|
2738
|
+
permissionDefinesAction: D,
|
|
2739
2739
|
toggleAction: f,
|
|
2740
2740
|
isAllActionChecked: h,
|
|
2741
|
-
isAllActionIndeterminate:
|
|
2741
|
+
isAllActionIndeterminate: S,
|
|
2742
2742
|
toggleAllAction: c,
|
|
2743
2743
|
actionLabel: b
|
|
2744
2744
|
} = Po(
|
|
2745
2745
|
en(n, "modelValue"),
|
|
2746
2746
|
a,
|
|
2747
2747
|
en(n, "excludedSubjects"),
|
|
2748
|
-
(
|
|
2748
|
+
(k, A) => r("update:model-value", A)
|
|
2749
2749
|
);
|
|
2750
|
-
function I(
|
|
2751
|
-
const
|
|
2752
|
-
return
|
|
2750
|
+
function I(k) {
|
|
2751
|
+
const A = k.selectedSubjects.length;
|
|
2752
|
+
return A === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: A });
|
|
2753
2753
|
}
|
|
2754
|
-
function p(
|
|
2755
|
-
return
|
|
2756
|
-
(X) =>
|
|
2754
|
+
function p(k, A) {
|
|
2755
|
+
return y(k, A) || w(k, A) ? !0 : k.actionColumns.some(
|
|
2756
|
+
(X) => D(k, A, X) && (F(k, A, X) || L(k, A, X))
|
|
2757
2757
|
);
|
|
2758
2758
|
}
|
|
2759
|
-
return (
|
|
2760
|
-
const X =
|
|
2759
|
+
return (k, A) => {
|
|
2760
|
+
const X = we("FmCheckbox");
|
|
2761
2761
|
return J(), ie("div", jo, [
|
|
2762
|
-
(J(!0), ie(
|
|
2762
|
+
(J(!0), ie(ke, null, Ee(H(m), (x) => (J(), Ne(Xt, {
|
|
2763
2763
|
key: x.category,
|
|
2764
2764
|
subtitle: I(x)
|
|
2765
2765
|
}, {
|
|
2766
|
-
title:
|
|
2766
|
+
title: me(() => [
|
|
2767
2767
|
ae("p", Uo, Oe(x.label), 1)
|
|
2768
2768
|
]),
|
|
2769
|
-
default:
|
|
2769
|
+
default: me(() => [
|
|
2770
2770
|
ae("div", Vo, [
|
|
2771
2771
|
ae("div", {
|
|
2772
2772
|
class: "grid items-center px-12 py-8",
|
|
@@ -2774,12 +2774,12 @@ const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm
|
|
|
2774
2774
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2775
2775
|
})
|
|
2776
2776
|
}, [
|
|
2777
|
-
|
|
2777
|
+
A[0] || (A[0] = ae("div", null, null, -1)),
|
|
2778
2778
|
ae("div", xo, Oe(H(l)("team.memberForm.permissions.columnManage")), 1),
|
|
2779
|
-
(J(!0), ie(
|
|
2780
|
-
key: `header-${
|
|
2779
|
+
(J(!0), ie(ke, null, Ee(x.actionColumns, (d) => (J(), ie("div", {
|
|
2780
|
+
key: `header-${d}`,
|
|
2781
2781
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2782
|
-
}, Oe(H(b)(
|
|
2782
|
+
}, Oe(H(b)(d)), 1))), 128))
|
|
2783
2783
|
], 4),
|
|
2784
2784
|
ae("div", {
|
|
2785
2785
|
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
@@ -2789,7 +2789,7 @@ const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm
|
|
|
2789
2789
|
}, [
|
|
2790
2790
|
ae("div", {
|
|
2791
2791
|
class: "cursor-pointer font-semibold",
|
|
2792
|
-
onClick: (
|
|
2792
|
+
onClick: (d) => !e.disable && H(g)(x)
|
|
2793
2793
|
}, Oe(H(l)("team.labels.all")), 9, Wo),
|
|
2794
2794
|
ae("div", Go, [
|
|
2795
2795
|
ue(X, {
|
|
@@ -2799,27 +2799,27 @@ const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm
|
|
|
2799
2799
|
disabled: e.disable,
|
|
2800
2800
|
size: "sm",
|
|
2801
2801
|
dense: "",
|
|
2802
|
-
"onUpdate:modelValue": (
|
|
2802
|
+
"onUpdate:modelValue": (d) => H(g)(x)
|
|
2803
2803
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2804
2804
|
]),
|
|
2805
|
-
(J(!0), ie(
|
|
2806
|
-
key: `all-${
|
|
2805
|
+
(J(!0), ie(ke, null, Ee(x.actionColumns, (d) => (J(), ie("div", {
|
|
2806
|
+
key: `all-${d}`,
|
|
2807
2807
|
class: "flex justify-center"
|
|
2808
2808
|
}, [
|
|
2809
2809
|
ue(X, {
|
|
2810
|
-
"model-value": H(h)(x,
|
|
2811
|
-
indeterminate: H(
|
|
2812
|
-
value:
|
|
2810
|
+
"model-value": H(h)(x, d),
|
|
2811
|
+
indeterminate: H(S)(x, d),
|
|
2812
|
+
value: d,
|
|
2813
2813
|
disabled: e.disable,
|
|
2814
2814
|
size: "sm",
|
|
2815
2815
|
dense: "",
|
|
2816
|
-
"onUpdate:modelValue": (C) => H(c)(x,
|
|
2816
|
+
"onUpdate:modelValue": (C) => H(c)(x, d, C)
|
|
2817
2817
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2818
2818
|
]))), 128))
|
|
2819
2819
|
], 4),
|
|
2820
|
-
|
|
2821
|
-
(J(!0), ie(
|
|
2822
|
-
key:
|
|
2820
|
+
A[1] || (A[1] = ae("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2821
|
+
(J(!0), ie(ke, null, Ee(x.options, (d) => (J(), ie("div", {
|
|
2822
|
+
key: d.optionKey,
|
|
2823
2823
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2824
2824
|
style: nt({
|
|
2825
2825
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
@@ -2828,41 +2828,41 @@ const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm
|
|
|
2828
2828
|
ae("div", Zo, [
|
|
2829
2829
|
ae("span", {
|
|
2830
2830
|
class: "block truncate cursor-pointer",
|
|
2831
|
-
title:
|
|
2832
|
-
onClick: (C) => !e.disable && !H(
|
|
2833
|
-
}, Oe(
|
|
2834
|
-
|
|
2835
|
-
option:
|
|
2836
|
-
isEffectiveSelected: p(x,
|
|
2837
|
-
isCoveredByCover: H(
|
|
2831
|
+
title: d.label,
|
|
2832
|
+
onClick: (C) => !e.disable && !H(w)(x, d.value) && H(N)(x, d.value, !H(y)(x, d.value))
|
|
2833
|
+
}, Oe(d.label), 9, Yo),
|
|
2834
|
+
Se(k.$slots, `checkbox-${d.value}-append`, {
|
|
2835
|
+
option: d,
|
|
2836
|
+
isEffectiveSelected: p(x, d.value),
|
|
2837
|
+
isCoveredByCover: H(w)(x, d.value) || x.actionColumns.some((C) => H(L)(x, d.value, C))
|
|
2838
2838
|
}),
|
|
2839
|
-
|
|
2840
|
-
option:
|
|
2841
|
-
isEffectiveSelected: p(x,
|
|
2842
|
-
isCoveredByCover: H(
|
|
2839
|
+
Se(k.$slots, `checkbox-${d.value}-icon`, {
|
|
2840
|
+
option: d,
|
|
2841
|
+
isEffectiveSelected: p(x, d.value),
|
|
2842
|
+
isCoveredByCover: H(w)(x, d.value) || x.actionColumns.some((C) => H(L)(x, d.value, C))
|
|
2843
2843
|
})
|
|
2844
2844
|
]),
|
|
2845
2845
|
ae("div", Bo, [
|
|
2846
2846
|
ue(X, {
|
|
2847
|
-
"model-value": H(
|
|
2848
|
-
value:
|
|
2849
|
-
disabled: e.disable || H(
|
|
2850
|
-
indeterminate: H(T)(x,
|
|
2847
|
+
"model-value": H(y)(x, d.value) || H(w)(x, d.value),
|
|
2848
|
+
value: d.value,
|
|
2849
|
+
disabled: e.disable || H(w)(x, d.value),
|
|
2850
|
+
indeterminate: H(T)(x, d.value),
|
|
2851
2851
|
size: "sm",
|
|
2852
|
-
"onUpdate:modelValue": (C) => H(N)(x,
|
|
2852
|
+
"onUpdate:modelValue": (C) => H(N)(x, d.value, C)
|
|
2853
2853
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2854
2854
|
]),
|
|
2855
|
-
(J(!0), ie(
|
|
2856
|
-
key: `${
|
|
2855
|
+
(J(!0), ie(ke, null, Ee(x.actionColumns, (C) => (J(), ie("div", {
|
|
2856
|
+
key: `${d.optionKey}-${C}`,
|
|
2857
2857
|
class: "flex justify-center"
|
|
2858
2858
|
}, [
|
|
2859
|
-
H(
|
|
2859
|
+
H(D)(x, d.value, C) ? (J(), Ne(X, {
|
|
2860
2860
|
key: 0,
|
|
2861
|
-
"model-value": H(F)(x,
|
|
2861
|
+
"model-value": H(F)(x, d.value, C) || H(L)(x, d.value, C),
|
|
2862
2862
|
value: C,
|
|
2863
|
-
disabled: e.disable || H(L)(x,
|
|
2863
|
+
disabled: e.disable || H(L)(x, d.value, C),
|
|
2864
2864
|
size: "sm",
|
|
2865
|
-
"onUpdate:modelValue": (U) => H(f)(
|
|
2865
|
+
"onUpdate:modelValue": (U) => H(f)(d.value, C, U)
|
|
2866
2866
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Me("", !0)
|
|
2867
2867
|
]))), 128))
|
|
2868
2868
|
], 4))), 128))
|
|
@@ -2897,33 +2897,33 @@ const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm
|
|
|
2897
2897
|
},
|
|
2898
2898
|
setup(e) {
|
|
2899
2899
|
const t = e;
|
|
2900
|
-
return (n,
|
|
2901
|
-
|
|
2900
|
+
return (n, r) => (J(), ie("div", Ho, [
|
|
2901
|
+
Se(n.$slots, "top", {}, () => [
|
|
2902
2902
|
t.title ? (J(), ie("div", $o, [
|
|
2903
2903
|
ae("div", null, [
|
|
2904
2904
|
t.required ? (J(), ie("span", Jo, "*")) : Me("", !0),
|
|
2905
|
-
|
|
2905
|
+
_r(Oe(t.title), 1)
|
|
2906
2906
|
]),
|
|
2907
|
-
|
|
2907
|
+
Se(n.$slots, "title-right")
|
|
2908
2908
|
])) : Me("", !0)
|
|
2909
2909
|
]),
|
|
2910
2910
|
ae("div", Ko, [
|
|
2911
|
-
|
|
2911
|
+
Se(n.$slots, "default")
|
|
2912
2912
|
])
|
|
2913
2913
|
]));
|
|
2914
2914
|
}
|
|
2915
2915
|
});
|
|
2916
2916
|
function Qo(e, t) {
|
|
2917
|
-
let n = "",
|
|
2918
|
-
const l =
|
|
2917
|
+
let n = "", r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
2918
|
+
const l = r.length;
|
|
2919
2919
|
for (let a = 0; a < e; a++)
|
|
2920
|
-
n +=
|
|
2920
|
+
n += r.charAt(Math.floor(Math.random() * l));
|
|
2921
2921
|
return n;
|
|
2922
2922
|
}
|
|
2923
2923
|
const qo = { class: "col flex items-center" }, ea = {
|
|
2924
2924
|
key: 1,
|
|
2925
2925
|
class: "q-pa-sm form-error-message text-error"
|
|
2926
|
-
},
|
|
2926
|
+
}, ir = /* @__PURE__ */ Le({
|
|
2927
2927
|
__name: "CheckboxInput",
|
|
2928
2928
|
props: {
|
|
2929
2929
|
options: {
|
|
@@ -2981,35 +2981,35 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
2981
2981
|
},
|
|
2982
2982
|
emits: ["update:model-value"],
|
|
2983
2983
|
setup(e, { emit: t }) {
|
|
2984
|
-
const n = e,
|
|
2985
|
-
() => n.modelValue.filter((L) => n.options.some((
|
|
2984
|
+
const n = e, r = t, { t: l } = He(), a = rt(!1), m = pr(), u = z(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), i = `checkbox-${Qo(6)}`, g = z(() => u.value !== !0), y = z(
|
|
2985
|
+
() => n.modelValue.filter((L) => n.options.some((D) => D.value === L))
|
|
2986
2986
|
), T = z(
|
|
2987
2987
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2988
|
-
), N = z(() => n.options.length > 0 && n.options.length ===
|
|
2988
|
+
), N = z(() => n.options.length > 0 && n.options.length === y.value.length);
|
|
2989
2989
|
function F() {
|
|
2990
|
-
const L = n.modelValue.filter((
|
|
2990
|
+
const L = n.modelValue.filter((D) => !y.value.includes(D));
|
|
2991
2991
|
if (N.value === !0)
|
|
2992
|
-
|
|
2992
|
+
r("update:model-value", L);
|
|
2993
2993
|
else {
|
|
2994
|
-
const
|
|
2995
|
-
|
|
2994
|
+
const D = n.includeDisabledOptionsWhenSelectAll ? n.options.map((f) => f.value) : n.options.filter((f) => !f.disabled).map((f) => f.value);
|
|
2995
|
+
r("update:model-value", [...L, ...D]);
|
|
2996
2996
|
}
|
|
2997
2997
|
}
|
|
2998
|
-
function
|
|
2998
|
+
function w(L, D) {
|
|
2999
2999
|
let f = It(n.modelValue);
|
|
3000
|
-
|
|
3000
|
+
D ? f.every((h) => h !== L) && f.push(L) : f = f.filter((h) => h !== L), r("update:model-value", f);
|
|
3001
3001
|
}
|
|
3002
|
-
return (L,
|
|
3003
|
-
const f =
|
|
3002
|
+
return (L, D) => {
|
|
3003
|
+
const f = we("FmCheckbox");
|
|
3004
3004
|
return J(), Ne(zo, {
|
|
3005
3005
|
id: i,
|
|
3006
3006
|
title: e.title,
|
|
3007
3007
|
required: !1
|
|
3008
3008
|
}, {
|
|
3009
|
-
top:
|
|
3010
|
-
|
|
3009
|
+
top: me(() => [
|
|
3010
|
+
Se(L.$slots, "top")
|
|
3011
3011
|
]),
|
|
3012
|
-
default:
|
|
3012
|
+
default: me(() => [
|
|
3013
3013
|
n.showAllToggle ? (J(), Ne(f, {
|
|
3014
3014
|
key: 0,
|
|
3015
3015
|
"model-value": N.value,
|
|
@@ -3021,10 +3021,10 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3021
3021
|
value: T.value,
|
|
3022
3022
|
"onUpdate:modelValue": F
|
|
3023
3023
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Me("", !0),
|
|
3024
|
-
(J(!0), ie(
|
|
3024
|
+
(J(!0), ie(ke, null, Ee(e.options, (h, S) => (J(), ie("div", {
|
|
3025
3025
|
key: h.value,
|
|
3026
|
-
style: nt(`margin-bottom: ${
|
|
3027
|
-
class: qe(
|
|
3026
|
+
style: nt(`margin-bottom: ${S < e.options.length - 1 ? n.gutter : 0}px`),
|
|
3027
|
+
class: qe(S < e.options.length - 1 ? "q-mb-sm" : "")
|
|
3028
3028
|
}, [
|
|
3029
3029
|
ae("div", {
|
|
3030
3030
|
class: qe(["row justify-between", e.alignCenter ? "items-center" : "items-start"])
|
|
@@ -3036,30 +3036,30 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3036
3036
|
size: "sm",
|
|
3037
3037
|
label: h.label,
|
|
3038
3038
|
value: h.label,
|
|
3039
|
-
"onUpdate:modelValue": (c) =>
|
|
3039
|
+
"onUpdate:modelValue": (c) => w(h.value, c)
|
|
3040
3040
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
3041
|
-
|
|
3041
|
+
Se(L.$slots, `checkbox-${h.key || h.value}-append`, {
|
|
3042
3042
|
option: h,
|
|
3043
3043
|
selected: e.modelValue.includes(h.value)
|
|
3044
3044
|
})
|
|
3045
3045
|
]),
|
|
3046
|
-
H(
|
|
3046
|
+
H(m)[`checkbox-${h.key || h.value}-end`] && (e.modelValue.includes(h.value) || e.falsyShowSlot) ? (J(), ie("div", {
|
|
3047
3047
|
key: 0,
|
|
3048
3048
|
class: qe([{ "q-checkbox disabled": e.disable || h.disabled }, "col"])
|
|
3049
3049
|
}, [
|
|
3050
|
-
|
|
3050
|
+
Se(L.$slots, `checkbox-${h.key || h.value}-end`, {
|
|
3051
3051
|
option: h,
|
|
3052
3052
|
value: e.modelValue.includes(h.value),
|
|
3053
3053
|
disable: e.disable || h.disabled
|
|
3054
3054
|
})
|
|
3055
3055
|
], 2)) : Me("", !0)
|
|
3056
3056
|
], 2),
|
|
3057
|
-
H(
|
|
3057
|
+
H(m)[`checkbox-${h.key || h.value}-bottom`] && (e.modelValue.includes(h.value) || e.falsyShowSlot) ? (J(), ie("div", {
|
|
3058
3058
|
key: 0,
|
|
3059
3059
|
class: qe(["q-mt-sm", { "q-checkbox disabled": e.disable || h.disabled }]),
|
|
3060
3060
|
style: nt(`margin-left: ${e.bottomSlotIndent}`)
|
|
3061
3061
|
}, [
|
|
3062
|
-
|
|
3062
|
+
Se(L.$slots, `checkbox-${h.key || h.value}-bottom`, {
|
|
3063
3063
|
option: h,
|
|
3064
3064
|
disable: e.disable || h.disabled,
|
|
3065
3065
|
value: e.modelValue.includes(h.value)
|
|
@@ -3072,7 +3072,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3072
3072
|
}, 8, ["title"]);
|
|
3073
3073
|
};
|
|
3074
3074
|
}
|
|
3075
|
-
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture",
|
|
3075
|
+
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture", Dn = /* @__PURE__ */ Le({
|
|
3076
3076
|
__name: "ConditionPermission",
|
|
3077
3077
|
props: {
|
|
3078
3078
|
modelValue: {
|
|
@@ -3094,7 +3094,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3094
3094
|
},
|
|
3095
3095
|
emits: ["update:model-value"],
|
|
3096
3096
|
setup(e, { emit: t }) {
|
|
3097
|
-
const n = e,
|
|
3097
|
+
const n = e, r = t, { t: l } = He(), a = z(() => [
|
|
3098
3098
|
{
|
|
3099
3099
|
label: l("team.memberForm.permissions.includedFuture", { context: n.context }),
|
|
3100
3100
|
value: ht,
|
|
@@ -3102,24 +3102,24 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3102
3102
|
disabled: !!n.modelValue && n.options.length > n.modelValue.length
|
|
3103
3103
|
},
|
|
3104
3104
|
...n.options.filter(
|
|
3105
|
-
(
|
|
3105
|
+
(y) => y.label.toLocaleLowerCase().includes(g.value.toLocaleLowerCase())
|
|
3106
3106
|
)
|
|
3107
|
-
]),
|
|
3108
|
-
const
|
|
3109
|
-
return
|
|
3107
|
+
]), m = z(() => n.modelValue ? n.modelValue : [ht, ...n.options.map((y) => y.value)]), u = z(() => {
|
|
3108
|
+
const y = m.value.filter((T) => T !== ht).length;
|
|
3109
|
+
return y === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: y });
|
|
3110
3110
|
});
|
|
3111
|
-
function i(
|
|
3112
|
-
const T =
|
|
3113
|
-
|
|
3111
|
+
function i(y) {
|
|
3112
|
+
const T = y.length === a.value.length;
|
|
3113
|
+
r("update:model-value", T ? null : y.filter((N) => N !== ht));
|
|
3114
3114
|
}
|
|
3115
|
-
const g =
|
|
3116
|
-
return (
|
|
3117
|
-
const N =
|
|
3115
|
+
const g = rt("");
|
|
3116
|
+
return (y, T) => {
|
|
3117
|
+
const N = we("fm-search");
|
|
3118
3118
|
return J(), Ne(Xt, { subtitle: u.value }, {
|
|
3119
|
-
title:
|
|
3119
|
+
title: me(() => [
|
|
3120
3120
|
ae("p", ta, Oe(H(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3121
3121
|
]),
|
|
3122
|
-
default:
|
|
3122
|
+
default: me(() => [
|
|
3123
3123
|
e.options.length > 1 ? (J(), Ne(N, {
|
|
3124
3124
|
key: 0,
|
|
3125
3125
|
modelValue: g.value,
|
|
@@ -3127,8 +3127,8 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3127
3127
|
class: "mt-16",
|
|
3128
3128
|
placeholder: H(l)("team.memberForm.permissions.search", { context: e.context })
|
|
3129
3129
|
}, null, 8, ["modelValue", "placeholder"])) : Me("", !0),
|
|
3130
|
-
ue(
|
|
3131
|
-
"model-value":
|
|
3130
|
+
ue(ir, {
|
|
3131
|
+
"model-value": m.value,
|
|
3132
3132
|
options: a.value,
|
|
3133
3133
|
"show-intermediate": !1,
|
|
3134
3134
|
"show-all-toggle": !0,
|
|
@@ -3138,10 +3138,10 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3138
3138
|
class: "mt-16",
|
|
3139
3139
|
"onUpdate:modelValue": i
|
|
3140
3140
|
}, et({ _: 2 }, [
|
|
3141
|
-
|
|
3141
|
+
Ee(a.value, (F) => ({
|
|
3142
3142
|
name: `checkbox-${F.value}-append`,
|
|
3143
|
-
fn:
|
|
3144
|
-
|
|
3143
|
+
fn: me(({ option: w }) => [
|
|
3144
|
+
Se(y.$slots, `checkbox-${F.value}-append`, { option: w })
|
|
3145
3145
|
])
|
|
3146
3146
|
}))
|
|
3147
3147
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3150,7 +3150,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3150
3150
|
}, 8, ["subtitle"]);
|
|
3151
3151
|
};
|
|
3152
3152
|
}
|
|
3153
|
-
}), na = { class: "fm-typo-en-title-sm-600" }, bt = "includedNewRole",
|
|
3153
|
+
}), na = { class: "fm-typo-en-title-sm-600" }, bt = "includedNewRole", ra = /* @__PURE__ */ Le({
|
|
3154
3154
|
__name: "PosRolePermission",
|
|
3155
3155
|
props: {
|
|
3156
3156
|
modelValue: {
|
|
@@ -3172,7 +3172,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3172
3172
|
},
|
|
3173
3173
|
emits: ["update:model-value"],
|
|
3174
3174
|
setup(e, { emit: t }) {
|
|
3175
|
-
const n = e,
|
|
3175
|
+
const n = e, r = t, { t: l } = He(), a = z(() => {
|
|
3176
3176
|
const g = n.restaurantIds;
|
|
3177
3177
|
return [
|
|
3178
3178
|
{
|
|
@@ -3180,27 +3180,27 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3180
3180
|
value: bt,
|
|
3181
3181
|
disabled: !!n.modelValue && n.roles.length > n.modelValue.length
|
|
3182
3182
|
},
|
|
3183
|
-
...n.roles.map((
|
|
3184
|
-
label:
|
|
3185
|
-
value:
|
|
3186
|
-
disabled: !!g &&
|
|
3183
|
+
...n.roles.map((y) => ({
|
|
3184
|
+
label: y.name,
|
|
3185
|
+
value: y._id,
|
|
3186
|
+
disabled: !!g && y.restaurants.every(({ id: T }) => !g.includes(T))
|
|
3187
3187
|
}))
|
|
3188
3188
|
];
|
|
3189
|
-
}),
|
|
3190
|
-
const g =
|
|
3189
|
+
}), m = z(() => n.modelValue ? n.modelValue : [bt, ...n.roles.map((g) => g._id)]), u = z(() => {
|
|
3190
|
+
const g = m.value.filter((y) => y !== bt).length;
|
|
3191
3191
|
return g === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: g });
|
|
3192
3192
|
});
|
|
3193
3193
|
function i(g) {
|
|
3194
|
-
const
|
|
3195
|
-
|
|
3194
|
+
const y = g.length === a.value.length;
|
|
3195
|
+
r("update:model-value", y ? null : g.filter((T) => T !== bt));
|
|
3196
3196
|
}
|
|
3197
|
-
return (g,
|
|
3198
|
-
title:
|
|
3197
|
+
return (g, y) => (J(), Ne(Xt, { subtitle: u.value }, {
|
|
3198
|
+
title: me(() => [
|
|
3199
3199
|
ae("p", na, Oe(H(l)("team.memberForm.permissions.roles")), 1)
|
|
3200
3200
|
]),
|
|
3201
|
-
default:
|
|
3202
|
-
ue(
|
|
3203
|
-
"model-value":
|
|
3201
|
+
default: me(() => [
|
|
3202
|
+
ue(ir, {
|
|
3203
|
+
"model-value": m.value,
|
|
3204
3204
|
options: a.value,
|
|
3205
3205
|
"show-intermediate": !1,
|
|
3206
3206
|
"show-all-toggle": !1,
|
|
@@ -3209,10 +3209,10 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3209
3209
|
class: "mt-16",
|
|
3210
3210
|
"onUpdate:modelValue": i
|
|
3211
3211
|
}, et({ _: 2 }, [
|
|
3212
|
-
|
|
3212
|
+
Ee(a.value, (T) => ({
|
|
3213
3213
|
name: `checkbox-${T.value}-append`,
|
|
3214
|
-
fn:
|
|
3215
|
-
|
|
3214
|
+
fn: me(({ option: N }) => [
|
|
3215
|
+
Se(g.$slots, `checkbox-${T.value}-append`, { option: N })
|
|
3216
3216
|
])
|
|
3217
3217
|
}))
|
|
3218
3218
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3220,7 +3220,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3220
3220
|
_: 3
|
|
3221
3221
|
}, 8, ["subtitle"]));
|
|
3222
3222
|
}
|
|
3223
|
-
}),
|
|
3223
|
+
}), sa = {
|
|
3224
3224
|
key: 0,
|
|
3225
3225
|
class: "flex flex-col gap-8"
|
|
3226
3226
|
}, oa = {
|
|
@@ -3247,10 +3247,10 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3247
3247
|
},
|
|
3248
3248
|
emits: ["update-inherit-mode", "update-form", "apply"],
|
|
3249
3249
|
setup(e, { emit: t }) {
|
|
3250
|
-
const n = t, { t:
|
|
3250
|
+
const n = t, { t: r } = He();
|
|
3251
3251
|
return (l, a) => {
|
|
3252
|
-
const
|
|
3253
|
-
return J(), Ne(
|
|
3252
|
+
const m = we("FmRadio"), u = we("FmRadioGroup");
|
|
3253
|
+
return J(), Ne(Cr, {
|
|
3254
3254
|
title: e.title,
|
|
3255
3255
|
builders: e.builders,
|
|
3256
3256
|
"form-value-for": e.formValueFor,
|
|
@@ -3260,29 +3260,29 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3260
3260
|
onUpdateForm: a[0] || (a[0] = (i) => n("update-form", i)),
|
|
3261
3261
|
onApply: a[1] || (a[1] = (i) => n("apply"))
|
|
3262
3262
|
}, {
|
|
3263
|
-
section:
|
|
3264
|
-
e.coverOverride.shouldShowInheritToggle(e.entry, i) ? (J(), ie("div",
|
|
3263
|
+
section: me(({ builder: i }) => [
|
|
3264
|
+
e.coverOverride.shouldShowInheritToggle(e.entry, i) ? (J(), ie("div", sa, [
|
|
3265
3265
|
ue(u, {
|
|
3266
3266
|
"model-value": e.inheritModeFor(i),
|
|
3267
3267
|
disabled: e.disable,
|
|
3268
3268
|
"onUpdate:modelValue": (g) => n("update-inherit-mode", { builder: i, mode: g })
|
|
3269
3269
|
}, {
|
|
3270
|
-
default:
|
|
3270
|
+
default: me(() => [
|
|
3271
3271
|
ae("div", null, [
|
|
3272
|
-
ue(
|
|
3272
|
+
ue(m, {
|
|
3273
3273
|
value: "inherit",
|
|
3274
|
-
label: H(
|
|
3274
|
+
label: H(r)("team.memberForm.permissions.conditionCover.inherit", {
|
|
3275
3275
|
cover: e.coverOverride.coverLabel(e.subject)
|
|
3276
3276
|
})
|
|
3277
3277
|
}, null, 8, ["label"]),
|
|
3278
|
-
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? (J(), ie("p", oa, " (" + Oe(H(
|
|
3278
|
+
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? (J(), ie("p", oa, " (" + Oe(H(r)(
|
|
3279
3279
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).labelKey,
|
|
3280
3280
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).params ?? {}
|
|
3281
3281
|
)) + ") ", 1)) : Me("", !0)
|
|
3282
3282
|
]),
|
|
3283
|
-
ue(
|
|
3283
|
+
ue(m, {
|
|
3284
3284
|
value: "custom",
|
|
3285
|
-
label: H(
|
|
3285
|
+
label: H(r)("team.memberForm.permissions.conditionCover.custom")
|
|
3286
3286
|
}, null, 8, ["label"])
|
|
3287
3287
|
]),
|
|
3288
3288
|
_: 2
|
|
@@ -3309,7 +3309,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3309
3309
|
}
|
|
3310
3310
|
}), la = {
|
|
3311
3311
|
async readWarehouses() {
|
|
3312
|
-
return
|
|
3312
|
+
return Lr(await Rr().get("/warehouses"));
|
|
3313
3313
|
}
|
|
3314
3314
|
};
|
|
3315
3315
|
function Pn(e, t) {
|
|
@@ -3321,52 +3321,52 @@ function jn(e, t) {
|
|
|
3321
3321
|
return e.some((n) => n.subject === t && n.inverted) ? e : [...e, { subject: t, actions: ["manage"], inverted: !0 }];
|
|
3322
3322
|
}
|
|
3323
3323
|
function Un(e, t, n) {
|
|
3324
|
-
const { category:
|
|
3324
|
+
const { category: r, showByFeatureFlag: l, isCategoryCover: a, ...m } = e;
|
|
3325
3325
|
return {
|
|
3326
|
-
...
|
|
3326
|
+
...m,
|
|
3327
3327
|
actions: t,
|
|
3328
3328
|
...n !== void 0 && { conditions: n }
|
|
3329
3329
|
};
|
|
3330
3330
|
}
|
|
3331
|
-
function ia(e, t, n,
|
|
3331
|
+
function ia(e, t, n, r) {
|
|
3332
3332
|
const l = new Set(
|
|
3333
3333
|
e.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3334
3334
|
), a = new Set(
|
|
3335
3335
|
t.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3336
|
-
),
|
|
3336
|
+
), m = new Set(
|
|
3337
3337
|
n.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3338
3338
|
);
|
|
3339
3339
|
let u = [...n];
|
|
3340
3340
|
for (const i of l)
|
|
3341
|
-
a.has(i) || (
|
|
3341
|
+
a.has(i) || (m.has(i) && (u = u.filter((y) => y.subject !== i)), (!m.has(i) || Pn(u, i)) && (u = jn(u, i)));
|
|
3342
3342
|
for (const i of a)
|
|
3343
3343
|
if (!l.has(i)) {
|
|
3344
|
-
const g = u.some((
|
|
3345
|
-
if (u = u.filter((
|
|
3346
|
-
const
|
|
3344
|
+
const g = u.some((y) => y.subject === i && y.inverted);
|
|
3345
|
+
if (u = u.filter((y) => !(y.subject === i && y.inverted)), !g && !m.has(i)) {
|
|
3346
|
+
const y = t.find(
|
|
3347
3347
|
(N) => N.subject === i && !N.inverted
|
|
3348
|
-
), T =
|
|
3349
|
-
T &&
|
|
3348
|
+
), T = r(i);
|
|
3349
|
+
T && y && u.push(Un(T, y.actions, y.conditions));
|
|
3350
3350
|
}
|
|
3351
3351
|
}
|
|
3352
3352
|
for (const i of a) {
|
|
3353
3353
|
if (!l.has(i)) continue;
|
|
3354
|
-
const g = e.find((
|
|
3355
|
-
if (!g || !
|
|
3356
|
-
const T = new Set(g.actions), N = new Set(
|
|
3357
|
-
if (T.size === N.size && [...T].every((
|
|
3354
|
+
const g = e.find((w) => w.subject === i && !w.inverted), y = t.find((w) => w.subject === i && !w.inverted);
|
|
3355
|
+
if (!g || !y) continue;
|
|
3356
|
+
const T = new Set(g.actions), N = new Set(y.actions);
|
|
3357
|
+
if (T.size === N.size && [...T].every((w) => N.has(w)))
|
|
3358
3358
|
continue;
|
|
3359
|
-
const F = u.findIndex((
|
|
3359
|
+
const F = u.findIndex((w) => w.subject === i && !w.inverted);
|
|
3360
3360
|
if (F >= 0)
|
|
3361
3361
|
u[F] = {
|
|
3362
3362
|
...u[F],
|
|
3363
3363
|
actions: Array.from(N)
|
|
3364
3364
|
};
|
|
3365
3365
|
else {
|
|
3366
|
-
const
|
|
3367
|
-
|
|
3366
|
+
const w = r(i);
|
|
3367
|
+
w && u.push(Un(w, Array.from(N)));
|
|
3368
3368
|
}
|
|
3369
|
-
T.has("manage") && !N.has("manage") && Pn(u, i) && (u = jn(u, i)), !T.has("manage") && N.has("manage") && (u = u.filter((
|
|
3369
|
+
T.has("manage") && !N.has("manage") && Pn(u, i) && (u = jn(u, i)), !T.has("manage") && N.has("manage") && (u = u.filter((w) => !(w.subject === i && w.inverted)));
|
|
3370
3370
|
}
|
|
3371
3371
|
return u;
|
|
3372
3372
|
}
|
|
@@ -3389,7 +3389,7 @@ function ua(e) {
|
|
|
3389
3389
|
const t = (e || "").toUpperCase();
|
|
3390
3390
|
return ca[t] ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
3391
3391
|
}
|
|
3392
|
-
function
|
|
3392
|
+
function ma(e, t) {
|
|
3393
3393
|
return e != null && e.timezone ? e.timezone : e != null && e.timeZone ? e.timeZone : ua((e == null ? void 0 : e.country) ?? t);
|
|
3394
3394
|
}
|
|
3395
3395
|
function gt(e, t) {
|
|
@@ -3402,16 +3402,16 @@ function We(e) {
|
|
|
3402
3402
|
return;
|
|
3403
3403
|
}
|
|
3404
3404
|
}
|
|
3405
|
-
function
|
|
3405
|
+
function da(e, t) {
|
|
3406
3406
|
return e.find((n) => !n.inverted && n.subject === t);
|
|
3407
3407
|
}
|
|
3408
3408
|
function Mt(e, t) {
|
|
3409
3409
|
const n = new Set(e.actions);
|
|
3410
|
-
return n.has(he.Action.manage) ? !0 : t.actions.every((
|
|
3410
|
+
return n.has(he.Action.manage) ? !0 : t.actions.every((r) => n.has(r));
|
|
3411
3411
|
}
|
|
3412
3412
|
function Yt(e, t) {
|
|
3413
3413
|
const n = We(e);
|
|
3414
|
-
return
|
|
3414
|
+
return Dt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3415
3415
|
}
|
|
3416
3416
|
function Vn(e, t, n) {
|
|
3417
3417
|
return {
|
|
@@ -3420,39 +3420,39 @@ function Vn(e, t, n) {
|
|
|
3420
3420
|
};
|
|
3421
3421
|
}
|
|
3422
3422
|
function fa(e, t, n) {
|
|
3423
|
-
const
|
|
3423
|
+
const r = rt(/* @__PURE__ */ new Set());
|
|
3424
3424
|
function l(c) {
|
|
3425
|
-
return
|
|
3425
|
+
return wr(c, t.value);
|
|
3426
3426
|
}
|
|
3427
3427
|
function a(c) {
|
|
3428
3428
|
return t.value.find((b) => b.subject === c);
|
|
3429
3429
|
}
|
|
3430
|
-
function
|
|
3430
|
+
function m(c) {
|
|
3431
3431
|
var I;
|
|
3432
3432
|
const b = l(c);
|
|
3433
3433
|
return b ? (I = a(b)) == null ? void 0 : I.label : void 0;
|
|
3434
3434
|
}
|
|
3435
3435
|
function u(c) {
|
|
3436
|
-
return
|
|
3436
|
+
return da(e.value, c);
|
|
3437
3437
|
}
|
|
3438
3438
|
function i(c, b) {
|
|
3439
3439
|
return tt(We(c), b);
|
|
3440
3440
|
}
|
|
3441
3441
|
function g(c, b) {
|
|
3442
|
-
var
|
|
3443
|
-
if (!(((
|
|
3442
|
+
var k;
|
|
3443
|
+
if (!(((k = b.appliesToActions) == null ? void 0 : k.call(b, c.actions)) ?? !0)) return !1;
|
|
3444
3444
|
const I = l(c.subject);
|
|
3445
3445
|
if (!I) return !1;
|
|
3446
3446
|
const p = u(I);
|
|
3447
3447
|
return p ? Object.keys(i(p, b)).length > 0 : !1;
|
|
3448
3448
|
}
|
|
3449
|
-
function
|
|
3450
|
-
if (!g(c, b) ||
|
|
3449
|
+
function y(c, b) {
|
|
3450
|
+
if (!g(c, b) || r.value.has(gt(c.subject, b))) return "custom";
|
|
3451
3451
|
if (c.index === null) return "inherit";
|
|
3452
|
-
const I = e.value[c.index], p = l(c.subject),
|
|
3453
|
-
if (I &&
|
|
3454
|
-
const
|
|
3455
|
-
if (JSON.stringify(
|
|
3452
|
+
const I = e.value[c.index], p = l(c.subject), k = p ? u(p) : void 0;
|
|
3453
|
+
if (I && k) {
|
|
3454
|
+
const A = tt(We(I), b), X = i(k, b);
|
|
3455
|
+
if (JSON.stringify(A) === JSON.stringify(X)) return "inherit";
|
|
3456
3456
|
}
|
|
3457
3457
|
return "custom";
|
|
3458
3458
|
}
|
|
@@ -3460,36 +3460,36 @@ function fa(e, t, n) {
|
|
|
3460
3460
|
if (!b.summarizeForm) return;
|
|
3461
3461
|
const p = l(c.subject);
|
|
3462
3462
|
if (!p) return;
|
|
3463
|
-
const
|
|
3464
|
-
if (!
|
|
3465
|
-
const
|
|
3466
|
-
return b.summarizeForm(
|
|
3463
|
+
const k = u(p);
|
|
3464
|
+
if (!k) return;
|
|
3465
|
+
const A = b.fromCondition(i(k, b));
|
|
3466
|
+
return b.summarizeForm(A, { timeZone: I });
|
|
3467
3467
|
}
|
|
3468
3468
|
function N(c, b) {
|
|
3469
3469
|
if (c.index === null) return;
|
|
3470
|
-
const I = [...e.value], p = { ...I[c.index] },
|
|
3471
|
-
if (
|
|
3470
|
+
const I = [...e.value], p = { ...I[c.index] }, k = Yt(p, b), A = Object.keys(k).length === 0, X = l(c.subject), x = X ? u(X) : void 0, d = x ? Mt(x, p) : !1;
|
|
3471
|
+
if (A && d)
|
|
3472
3472
|
I.splice(c.index, 1);
|
|
3473
3473
|
else if (x) {
|
|
3474
3474
|
const C = Vn(p, x, b);
|
|
3475
3475
|
Object.keys(C).length === 0 ? delete p.conditions : p.conditions = JSON.stringify(C), I[c.index] = p;
|
|
3476
3476
|
} else
|
|
3477
|
-
|
|
3477
|
+
A ? delete p.conditions : p.conditions = JSON.stringify(k), I[c.index] = p;
|
|
3478
3478
|
n(I);
|
|
3479
3479
|
}
|
|
3480
3480
|
function F(c, b, I) {
|
|
3481
3481
|
const p = gt(c.subject, b);
|
|
3482
3482
|
if (I === "inherit") {
|
|
3483
|
-
const
|
|
3484
|
-
|
|
3483
|
+
const A = new Set(r.value);
|
|
3484
|
+
A.delete(p), r.value = A, N(c, b);
|
|
3485
3485
|
return;
|
|
3486
3486
|
}
|
|
3487
|
-
const
|
|
3488
|
-
|
|
3487
|
+
const k = new Set(r.value);
|
|
3488
|
+
k.add(p), r.value = k, c.index === null && h(c, b, b.fromCondition(void 0), {
|
|
3489
3489
|
forceCreateRule: !0
|
|
3490
3490
|
});
|
|
3491
3491
|
}
|
|
3492
|
-
function
|
|
3492
|
+
function w(c) {
|
|
3493
3493
|
const b = l(c);
|
|
3494
3494
|
if (!b) return [];
|
|
3495
3495
|
const I = u(b);
|
|
@@ -3499,47 +3499,47 @@ function fa(e, t, n) {
|
|
|
3499
3499
|
return e.value.filter((I) => {
|
|
3500
3500
|
if (I.inverted) return !1;
|
|
3501
3501
|
const p = I.subject;
|
|
3502
|
-
return p === c || l(p) !== c ? !1 :
|
|
3502
|
+
return p === c || l(p) !== c ? !1 : r.value.has(gt(p, b)) ? !0 : Object.keys(tt(We(I), b)).length > 0;
|
|
3503
3503
|
});
|
|
3504
3504
|
}
|
|
3505
|
-
function
|
|
3506
|
-
const I = `::${b.builderKey}`, p = new Set(
|
|
3507
|
-
for (const
|
|
3508
|
-
if (!
|
|
3509
|
-
const
|
|
3510
|
-
l(
|
|
3505
|
+
function D(c, b) {
|
|
3506
|
+
const I = `::${b.builderKey}`, p = new Set(r.value);
|
|
3507
|
+
for (const k of p) {
|
|
3508
|
+
if (!k.endsWith(I)) continue;
|
|
3509
|
+
const A = k.slice(0, -I.length);
|
|
3510
|
+
l(A) === c && p.delete(k);
|
|
3511
3511
|
}
|
|
3512
|
-
|
|
3512
|
+
r.value = p;
|
|
3513
3513
|
}
|
|
3514
3514
|
function f(c, b, I) {
|
|
3515
3515
|
const p = b.subject;
|
|
3516
|
-
return c.reduce((
|
|
3517
|
-
if (
|
|
3518
|
-
return
|
|
3519
|
-
const X =
|
|
3516
|
+
return c.reduce((k, A) => {
|
|
3517
|
+
if (A.inverted)
|
|
3518
|
+
return k.push(A), k;
|
|
3519
|
+
const X = A.subject;
|
|
3520
3520
|
if (X === p || l(X) !== p)
|
|
3521
|
-
return
|
|
3522
|
-
if (Mt(b,
|
|
3523
|
-
return
|
|
3524
|
-
const
|
|
3525
|
-
if (Object.keys(
|
|
3526
|
-
const { conditions: C, ...U } =
|
|
3527
|
-
|
|
3521
|
+
return k.push(A), k;
|
|
3522
|
+
if (Mt(b, A) && Object.keys(Yt(A, I)).length === 0)
|
|
3523
|
+
return k;
|
|
3524
|
+
const d = Vn(A, b, I);
|
|
3525
|
+
if (Object.keys(d).length === 0) {
|
|
3526
|
+
const { conditions: C, ...U } = A;
|
|
3527
|
+
k.push(U);
|
|
3528
3528
|
} else
|
|
3529
|
-
|
|
3530
|
-
return
|
|
3529
|
+
k.push({ ...A, conditions: JSON.stringify(d) });
|
|
3530
|
+
return k;
|
|
3531
3531
|
}, []);
|
|
3532
3532
|
}
|
|
3533
3533
|
function h(c, b, I, p = {}) {
|
|
3534
3534
|
var V;
|
|
3535
|
-
const
|
|
3536
|
-
let
|
|
3535
|
+
const k = [...e.value];
|
|
3536
|
+
let A = c.index;
|
|
3537
3537
|
const X = b.toCondition(I), x = Object.keys(X).length > 0;
|
|
3538
|
-
if (
|
|
3539
|
-
if (
|
|
3540
|
-
const j =
|
|
3538
|
+
if (A === null && !x && !p.forceCreateRule) return;
|
|
3539
|
+
if (A === null) {
|
|
3540
|
+
const j = k.findIndex((G) => !G.inverted && G.subject === c.subject);
|
|
3541
3541
|
if (j !== -1)
|
|
3542
|
-
|
|
3542
|
+
A = j;
|
|
3543
3543
|
else {
|
|
3544
3544
|
const G = t.value.find((Q) => Q.subject === c.subject);
|
|
3545
3545
|
if (!G) return;
|
|
@@ -3549,24 +3549,24 @@ function fa(e, t, n) {
|
|
|
3549
3549
|
isCategoryCover: B,
|
|
3550
3550
|
...ne
|
|
3551
3551
|
} = G;
|
|
3552
|
-
|
|
3552
|
+
k.push({
|
|
3553
3553
|
...ne,
|
|
3554
3554
|
actions: c.actions.length > 0 ? c.actions : ne.actions
|
|
3555
|
-
}),
|
|
3555
|
+
}), A = k.length - 1;
|
|
3556
3556
|
}
|
|
3557
3557
|
}
|
|
3558
|
-
const
|
|
3559
|
-
|
|
3560
|
-
.../* @__PURE__ */ new Set([...
|
|
3558
|
+
const d = { ...k[A] };
|
|
3559
|
+
d.actions = [
|
|
3560
|
+
.../* @__PURE__ */ new Set([...d.actions, ...c.actions])
|
|
3561
3561
|
];
|
|
3562
|
-
const C = We(
|
|
3563
|
-
if (Object.keys(U).length === 0 ? delete
|
|
3562
|
+
const C = We(d), U = Dt(C, [{ builder: b, formValue: I }]);
|
|
3563
|
+
if (Object.keys(U).length === 0 ? delete d.conditions : d.conditions = JSON.stringify(U), k[A] = d, sn(c.subject, t.value)) {
|
|
3564
3564
|
const j = L(c.subject, b), G = () => {
|
|
3565
3565
|
var Y;
|
|
3566
|
-
|
|
3566
|
+
D(c.subject, b), n(f(k, d, b)), (Y = p.afterCommit) == null || Y.call(p);
|
|
3567
3567
|
}, W = () => {
|
|
3568
3568
|
var Y;
|
|
3569
|
-
n(
|
|
3569
|
+
n(k), (Y = p.afterCommit) == null || Y.call(p);
|
|
3570
3570
|
};
|
|
3571
3571
|
if (j.length === 0) {
|
|
3572
3572
|
G();
|
|
@@ -3575,18 +3575,18 @@ function fa(e, t, n) {
|
|
|
3575
3575
|
p.onOverridesConflict ? p.onOverridesConflict({ override: G, keep: W }) : W();
|
|
3576
3576
|
return;
|
|
3577
3577
|
}
|
|
3578
|
-
n(
|
|
3578
|
+
n(k), (V = p.afterCommit) == null || V.call(p);
|
|
3579
3579
|
}
|
|
3580
|
-
function
|
|
3580
|
+
function S(c, b, I = {}) {
|
|
3581
3581
|
if (b.length === 0) return;
|
|
3582
3582
|
const p = [...e.value];
|
|
3583
|
-
let
|
|
3583
|
+
let k = p.findIndex((j) => !j.inverted && j.subject === c.subject), A = k === -1 ? void 0 : { ...p[k] }, X = We(A ?? {}) ?? {};
|
|
3584
3584
|
for (const j of b) {
|
|
3585
3585
|
const G = j.mode === "inherit" ? j.builder.fromCondition(void 0) : j.form;
|
|
3586
|
-
X =
|
|
3586
|
+
X = Dt(X, [{ builder: j.builder, formValue: G }]);
|
|
3587
3587
|
}
|
|
3588
3588
|
const x = b.some((j) => j.mode === "custom");
|
|
3589
|
-
if (!
|
|
3589
|
+
if (!A && (Object.keys(X).length > 0 || x)) {
|
|
3590
3590
|
const j = t.value.find((ne) => ne.subject === c.subject);
|
|
3591
3591
|
if (!j) return;
|
|
3592
3592
|
const {
|
|
@@ -3595,46 +3595,46 @@ function fa(e, t, n) {
|
|
|
3595
3595
|
isCategoryCover: Y,
|
|
3596
3596
|
...B
|
|
3597
3597
|
} = j;
|
|
3598
|
-
|
|
3598
|
+
A = {
|
|
3599
3599
|
...B,
|
|
3600
3600
|
actions: c.actions.length > 0 ? c.actions : B.actions
|
|
3601
|
-
}, p.push(
|
|
3601
|
+
}, p.push(A), k = p.length - 1;
|
|
3602
3602
|
}
|
|
3603
|
-
if (
|
|
3603
|
+
if (A) {
|
|
3604
3604
|
const j = l(c.subject), G = j ? u(j) : void 0;
|
|
3605
|
-
if (!x && Object.keys(X).length === 0 && !!G && Mt(G,
|
|
3606
|
-
p.splice(
|
|
3605
|
+
if (!x && Object.keys(X).length === 0 && !!G && Mt(G, A))
|
|
3606
|
+
p.splice(k, 1), A = void 0;
|
|
3607
3607
|
else {
|
|
3608
|
-
if (
|
|
3609
|
-
.../* @__PURE__ */ new Set([...
|
|
3608
|
+
if (A.actions = [
|
|
3609
|
+
.../* @__PURE__ */ new Set([...A.actions, ...c.actions])
|
|
3610
3610
|
], G)
|
|
3611
3611
|
for (const Y of b)
|
|
3612
3612
|
Y.mode === "inherit" && (X = {
|
|
3613
3613
|
...X,
|
|
3614
3614
|
...tt(We(G), Y.builder)
|
|
3615
3615
|
});
|
|
3616
|
-
Object.keys(X).length === 0 ? delete
|
|
3616
|
+
Object.keys(X).length === 0 ? delete A.conditions : A.conditions = JSON.stringify(X), p[k] = A;
|
|
3617
3617
|
}
|
|
3618
3618
|
}
|
|
3619
|
-
const
|
|
3620
|
-
const j = new Set(
|
|
3619
|
+
const d = () => {
|
|
3620
|
+
const j = new Set(r.value);
|
|
3621
3621
|
for (const G of b) {
|
|
3622
3622
|
const W = gt(c.subject, G.builder);
|
|
3623
3623
|
G.mode === "custom" ? j.add(W) : j.delete(W);
|
|
3624
3624
|
}
|
|
3625
|
-
|
|
3625
|
+
r.value = j;
|
|
3626
3626
|
}, C = (j) => {
|
|
3627
3627
|
var G;
|
|
3628
|
-
|
|
3628
|
+
d(), n(j), (G = I.afterCommit) == null || G.call(I);
|
|
3629
3629
|
};
|
|
3630
|
-
if (!
|
|
3630
|
+
if (!sn(c.subject, t.value) || !A) {
|
|
3631
3631
|
C(p);
|
|
3632
3632
|
return;
|
|
3633
3633
|
}
|
|
3634
3634
|
const U = b.map((j) => j.builder).filter((j) => L(c.subject, j).length > 0), V = () => {
|
|
3635
3635
|
let j = p;
|
|
3636
3636
|
for (const G of b.map((W) => W.builder))
|
|
3637
|
-
|
|
3637
|
+
D(c.subject, G), j = f(j, A, G);
|
|
3638
3638
|
C(j);
|
|
3639
3639
|
};
|
|
3640
3640
|
if (U.length > 0 && I.onOverridesConflict) {
|
|
@@ -3645,17 +3645,17 @@ function fa(e, t, n) {
|
|
|
3645
3645
|
}
|
|
3646
3646
|
return {
|
|
3647
3647
|
getCoverSubject: l,
|
|
3648
|
-
coverLabel:
|
|
3648
|
+
coverLabel: m,
|
|
3649
3649
|
shouldShowInheritToggle: g,
|
|
3650
|
-
inheritMode:
|
|
3650
|
+
inheritMode: y,
|
|
3651
3651
|
setInheritMode: F,
|
|
3652
3652
|
inheritedSummary: T,
|
|
3653
|
-
getEffectiveActions:
|
|
3653
|
+
getEffectiveActions: w,
|
|
3654
3654
|
updateBuilderCondition: h,
|
|
3655
|
-
applyConditionDrafts:
|
|
3655
|
+
applyConditionDrafts: S
|
|
3656
3656
|
};
|
|
3657
3657
|
}
|
|
3658
|
-
const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, va = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ha = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ba = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ga = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Ia = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" },
|
|
3658
|
+
const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, va = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ha = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ba = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ga = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Ia = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ya = "condition-form-select-menu", wa = /* @__PURE__ */ Le({
|
|
3659
3659
|
__name: "PortalPermissionEditor",
|
|
3660
3660
|
props: /* @__PURE__ */ tn({
|
|
3661
3661
|
disable: {
|
|
@@ -3672,31 +3672,31 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3672
3672
|
}),
|
|
3673
3673
|
emits: /* @__PURE__ */ tn(["permissionChanged"], ["update:modelValue"]),
|
|
3674
3674
|
setup(e, { emit: t }) {
|
|
3675
|
-
const n =
|
|
3676
|
-
fetchCustomReportPermissions:
|
|
3675
|
+
const n = vr(e, "modelValue"), r = e, l = t, { t: a } = He(), m = hr(), u = br(), { breakpoints: i } = gr(), g = z(() => i.value.xs || i.value.sm), {
|
|
3676
|
+
fetchCustomReportPermissions: y,
|
|
3677
3677
|
customReportPermissions: T
|
|
3678
|
-
} =
|
|
3678
|
+
} = Ir(), N = z(() => [
|
|
3679
3679
|
...Gn,
|
|
3680
3680
|
...T.value
|
|
3681
3681
|
]), F = z(() => {
|
|
3682
|
-
const O =
|
|
3683
|
-
return
|
|
3682
|
+
const O = m.currentBusiness.value, s = m.currentCountry.value, o = s instanceof Object ? s.code : s;
|
|
3683
|
+
return ma(O, o);
|
|
3684
3684
|
});
|
|
3685
|
-
function
|
|
3686
|
-
return N.value.find((
|
|
3685
|
+
function w(O) {
|
|
3686
|
+
return N.value.find((s) => s.subject === O);
|
|
3687
3687
|
}
|
|
3688
|
-
function L(O,
|
|
3689
|
-
return
|
|
3688
|
+
function L(O, s) {
|
|
3689
|
+
return rn(O).filter(
|
|
3690
3690
|
(o) => {
|
|
3691
3691
|
var _;
|
|
3692
|
-
return ((_ = o.appliesToActions) == null ? void 0 : _.call(o,
|
|
3692
|
+
return ((_ = o.appliesToActions) == null ? void 0 : _.call(o, s)) ?? !0;
|
|
3693
3693
|
}
|
|
3694
3694
|
);
|
|
3695
3695
|
}
|
|
3696
|
-
const
|
|
3696
|
+
const D = z(() => {
|
|
3697
3697
|
const O = N.value.filter((o) => !c.includes(o.subject)).map((o) => o.subject);
|
|
3698
|
-
return
|
|
3699
|
-
|
|
3698
|
+
return yr(
|
|
3699
|
+
r.inheritPermissions.map((o) => ({
|
|
3700
3700
|
...o,
|
|
3701
3701
|
permissions: o.permissions.filter((_) => O.includes(_.subject))
|
|
3702
3702
|
}))
|
|
@@ -3705,38 +3705,38 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3705
3705
|
setNames: o.setNames
|
|
3706
3706
|
}));
|
|
3707
3707
|
}), f = z(() => {
|
|
3708
|
-
const O =
|
|
3709
|
-
...
|
|
3710
|
-
permissions:
|
|
3708
|
+
const O = r.inheritPermissions.map((s) => ({
|
|
3709
|
+
...s,
|
|
3710
|
+
permissions: s.permissions.filter(
|
|
3711
3711
|
(o) => o.subject === he.Subject.Business.inventory_stock
|
|
3712
3712
|
)
|
|
3713
3713
|
}));
|
|
3714
|
-
return
|
|
3714
|
+
return At(
|
|
3715
3715
|
O,
|
|
3716
3716
|
"warehouseId",
|
|
3717
|
-
I.value.map((
|
|
3717
|
+
I.value.map((s) => s._id)
|
|
3718
3718
|
);
|
|
3719
3719
|
}), h = z(() => {
|
|
3720
|
-
const O =
|
|
3721
|
-
...
|
|
3722
|
-
permissions:
|
|
3720
|
+
const O = r.inheritPermissions.map((s) => ({
|
|
3721
|
+
...s,
|
|
3722
|
+
permissions: s.permissions.filter(
|
|
3723
3723
|
(o) => o.subject === he.Subject.Restaurant.restaurant
|
|
3724
3724
|
)
|
|
3725
3725
|
}));
|
|
3726
|
-
return
|
|
3726
|
+
return At(
|
|
3727
3727
|
O,
|
|
3728
3728
|
"restaurantId",
|
|
3729
|
-
X.value.map((
|
|
3729
|
+
X.value.map((s) => s._id)
|
|
3730
3730
|
);
|
|
3731
|
-
}),
|
|
3732
|
-
const O =
|
|
3733
|
-
...
|
|
3734
|
-
permissions:
|
|
3731
|
+
}), S = z(() => {
|
|
3732
|
+
const O = r.inheritPermissions.map((s) => ({
|
|
3733
|
+
...s,
|
|
3734
|
+
permissions: s.permissions.filter((o) => o.subject === he.Subject.Business.role)
|
|
3735
3735
|
}));
|
|
3736
|
-
return
|
|
3736
|
+
return At(
|
|
3737
3737
|
O,
|
|
3738
3738
|
"roleId",
|
|
3739
|
-
x.value.map((
|
|
3739
|
+
x.value.map((s) => s._id)
|
|
3740
3740
|
);
|
|
3741
3741
|
}), c = [
|
|
3742
3742
|
he.Subject.Business.restaurant,
|
|
@@ -3744,85 +3744,85 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3744
3744
|
he.Subject.Restaurant.restaurant,
|
|
3745
3745
|
he.Subject.Business.inventory_stock
|
|
3746
3746
|
], b = z(() => {
|
|
3747
|
-
var
|
|
3748
|
-
const O = (
|
|
3747
|
+
var s;
|
|
3748
|
+
const O = (s = n.value) == null ? void 0 : s.find(
|
|
3749
3749
|
(o) => o.subject === he.Subject.Business.inventory_stock
|
|
3750
3750
|
);
|
|
3751
3751
|
return O ? O.conditions ? JSON.parse(O.conditions).warehouseId.$in : null : [];
|
|
3752
|
-
}), I =
|
|
3752
|
+
}), I = rt([]), p = z(() => I.value.map((O) => ({
|
|
3753
3753
|
label: O.profile.name,
|
|
3754
3754
|
value: O._id
|
|
3755
3755
|
})));
|
|
3756
|
-
function
|
|
3757
|
-
const
|
|
3758
|
-
n.value =
|
|
3756
|
+
function k(O) {
|
|
3757
|
+
const s = A(n.value, O);
|
|
3758
|
+
n.value = s;
|
|
3759
3759
|
}
|
|
3760
|
-
function
|
|
3760
|
+
function A(O, s) {
|
|
3761
3761
|
let o = It(
|
|
3762
3762
|
O.filter((_) => _.subject !== he.Subject.Business.inventory_stock)
|
|
3763
3763
|
);
|
|
3764
|
-
if (!
|
|
3764
|
+
if (!s || s.length > 0) {
|
|
3765
3765
|
const _ = {
|
|
3766
3766
|
actions: [he.Action.manage],
|
|
3767
3767
|
subject: he.Subject.Business.inventory_stock
|
|
3768
3768
|
};
|
|
3769
|
-
|
|
3769
|
+
s && (_.conditions = JSON.stringify({ warehouseId: { $in: s } })), o.push(_);
|
|
3770
3770
|
}
|
|
3771
3771
|
return o;
|
|
3772
3772
|
}
|
|
3773
|
-
const { restaurants: X } =
|
|
3773
|
+
const { restaurants: X } = m, x = kr().roles, d = z(() => X.value.map((O) => ({
|
|
3774
3774
|
label: `${O.profile.code ? O.profile.code + "-" : ""}${O.profile.name}`,
|
|
3775
3775
|
value: O._id
|
|
3776
|
-
}))), C = z(() => X.value.reduce((O,
|
|
3776
|
+
}))), C = z(() => X.value.reduce((O, s) => (O[s._id] = x.value.filter((o) => o.restaurants.some((_) => _.id === s._id)).map((o) => o._id), O), {})), U = z(() => Er(n.value));
|
|
3777
3777
|
function V(O) {
|
|
3778
|
-
const
|
|
3779
|
-
n.value =
|
|
3778
|
+
const s = G(n.value, O);
|
|
3779
|
+
n.value = s;
|
|
3780
3780
|
}
|
|
3781
|
-
const j = z(() =>
|
|
3782
|
-
function G(O,
|
|
3781
|
+
const j = z(() => Nr(n.value));
|
|
3782
|
+
function G(O, s) {
|
|
3783
3783
|
var _;
|
|
3784
3784
|
let o = It(
|
|
3785
3785
|
O.filter(
|
|
3786
|
-
(
|
|
3786
|
+
(R) => R.subject !== he.Subject.Business.restaurant && R.subject !== he.Subject.Restaurant.restaurant
|
|
3787
3787
|
)
|
|
3788
3788
|
);
|
|
3789
|
-
if (!
|
|
3789
|
+
if (!s || s.length > 0) {
|
|
3790
3790
|
const {
|
|
3791
|
-
category:
|
|
3791
|
+
category: R,
|
|
3792
3792
|
showByFeatureFlag: M,
|
|
3793
3793
|
...P
|
|
3794
|
-
} =
|
|
3794
|
+
} = Ar.restaurant;
|
|
3795
3795
|
o.push(P);
|
|
3796
3796
|
const v = {
|
|
3797
3797
|
actions: [he.Action.manage],
|
|
3798
3798
|
subject: he.Subject.Restaurant.restaurant
|
|
3799
3799
|
};
|
|
3800
|
-
|
|
3800
|
+
s && (v.conditions = JSON.stringify({ restaurantId: { $in: s } })), o.push(v);
|
|
3801
3801
|
}
|
|
3802
|
-
if (
|
|
3803
|
-
const
|
|
3804
|
-
...new Set(
|
|
3802
|
+
if (s) {
|
|
3803
|
+
const R = [
|
|
3804
|
+
...new Set(s.map((P) => C.value[P]).flatMap((P) => P))
|
|
3805
3805
|
], M = x.value.map((P) => P._id);
|
|
3806
|
-
|
|
3806
|
+
R.length !== M.length && (o = Y(
|
|
3807
3807
|
o,
|
|
3808
|
-
(_ = j.value || M) == null ? void 0 : _.filter((P) =>
|
|
3808
|
+
(_ = j.value || M) == null ? void 0 : _.filter((P) => R.includes(P))
|
|
3809
3809
|
));
|
|
3810
3810
|
}
|
|
3811
3811
|
return o;
|
|
3812
3812
|
}
|
|
3813
3813
|
function W(O) {
|
|
3814
|
-
const
|
|
3815
|
-
n.value =
|
|
3814
|
+
const s = Y(n.value, O);
|
|
3815
|
+
n.value = s;
|
|
3816
3816
|
}
|
|
3817
|
-
function Y(O,
|
|
3817
|
+
function Y(O, s) {
|
|
3818
3818
|
let o = It(
|
|
3819
3819
|
O.filter((_) => _.subject !== he.Subject.Business.role)
|
|
3820
3820
|
);
|
|
3821
|
-
if (
|
|
3821
|
+
if (s && s.length > 0) {
|
|
3822
3822
|
const _ = {
|
|
3823
3823
|
actions: [he.Action.manage],
|
|
3824
3824
|
subject: he.Subject.Business.role,
|
|
3825
|
-
conditions: JSON.stringify({ roleId: { $in:
|
|
3825
|
+
conditions: JSON.stringify({ roleId: { $in: s } })
|
|
3826
3826
|
};
|
|
3827
3827
|
o.push(_);
|
|
3828
3828
|
}
|
|
@@ -3831,7 +3831,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3831
3831
|
xn(async () => {
|
|
3832
3832
|
await Promise.all([
|
|
3833
3833
|
la.readWarehouses().then((O) => I.value = O),
|
|
3834
|
-
|
|
3834
|
+
y()
|
|
3835
3835
|
]);
|
|
3836
3836
|
});
|
|
3837
3837
|
const B = z(() => Zn(
|
|
@@ -3844,9 +3844,9 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3844
3844
|
if (o.inverted) return o;
|
|
3845
3845
|
const _ = o.actions;
|
|
3846
3846
|
if (!_.includes("manage")) return o;
|
|
3847
|
-
const
|
|
3848
|
-
if (!
|
|
3849
|
-
const M =
|
|
3847
|
+
const R = w(o.subject);
|
|
3848
|
+
if (!R) return o;
|
|
3849
|
+
const M = R.actions;
|
|
3850
3850
|
return M.length <= 1 || M.filter((v) => !_.includes(v)).length === 0 ? o : { ...o, actions: [...M] };
|
|
3851
3851
|
}));
|
|
3852
3852
|
function ne(O) {
|
|
@@ -3854,35 +3854,35 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3854
3854
|
B.value,
|
|
3855
3855
|
O,
|
|
3856
3856
|
n.value,
|
|
3857
|
-
|
|
3857
|
+
w
|
|
3858
3858
|
);
|
|
3859
3859
|
}
|
|
3860
3860
|
const Q = z(() => new Set(
|
|
3861
|
-
N.value.filter((O) =>
|
|
3861
|
+
N.value.filter((O) => rn(O.subject).length > 0).map((O) => O.subject)
|
|
3862
3862
|
)), _e = z(() => {
|
|
3863
3863
|
const O = /* @__PURE__ */ new Map();
|
|
3864
|
-
return B.value.map((
|
|
3865
|
-
rule:
|
|
3864
|
+
return B.value.map((s) => ({
|
|
3865
|
+
rule: s,
|
|
3866
3866
|
index: n.value.findIndex(
|
|
3867
|
-
(o) => !o.inverted && o.subject ===
|
|
3867
|
+
(o) => !o.inverted && o.subject === s.subject
|
|
3868
3868
|
)
|
|
3869
|
-
})).filter(({ rule:
|
|
3869
|
+
})).filter(({ rule: s }) => !s.inverted).forEach(({ rule: s, index: o }) => {
|
|
3870
3870
|
var P;
|
|
3871
|
-
const _ =
|
|
3872
|
-
if (
|
|
3871
|
+
const _ = s.actions, R = L(s.subject, _);
|
|
3872
|
+
if (R.length === 0) return;
|
|
3873
3873
|
let M;
|
|
3874
3874
|
try {
|
|
3875
|
-
M =
|
|
3875
|
+
M = s.conditions ? JSON.parse(s.conditions) : void 0;
|
|
3876
3876
|
} catch {
|
|
3877
3877
|
M = void 0;
|
|
3878
3878
|
}
|
|
3879
|
-
O.set(
|
|
3879
|
+
O.set(s.subject, {
|
|
3880
3880
|
index: o >= 0 ? o : null,
|
|
3881
|
-
subject:
|
|
3882
|
-
label: ((P =
|
|
3881
|
+
subject: s.subject,
|
|
3882
|
+
label: ((P = w(s.subject)) == null ? void 0 : P.label) ?? s.subject,
|
|
3883
3883
|
actions: _,
|
|
3884
3884
|
// Each builder only ever sees its own slice of the stored condition.
|
|
3885
|
-
sections:
|
|
3885
|
+
sections: R.map((v) => ({
|
|
3886
3886
|
builder: v,
|
|
3887
3887
|
formValue: v.fromCondition(tt(M, v))
|
|
3888
3888
|
}))
|
|
@@ -3890,55 +3890,55 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3890
3890
|
}), O;
|
|
3891
3891
|
}), ce = fa(n, N, (O) => {
|
|
3892
3892
|
n.value = O;
|
|
3893
|
-
}), oe =
|
|
3894
|
-
function q(O,
|
|
3893
|
+
}), oe = Tr(n), fe = rt(null);
|
|
3894
|
+
function q(O, s) {
|
|
3895
3895
|
const o = _e.value.get(O);
|
|
3896
3896
|
if (o) return o;
|
|
3897
|
-
const _ = ce.getEffectiveActions(O),
|
|
3898
|
-
if (
|
|
3897
|
+
const _ = ce.getEffectiveActions(O), R = L(O, _);
|
|
3898
|
+
if (R.length !== 0)
|
|
3899
3899
|
return {
|
|
3900
3900
|
index: null,
|
|
3901
3901
|
subject: O,
|
|
3902
|
-
label:
|
|
3902
|
+
label: s,
|
|
3903
3903
|
actions: _,
|
|
3904
|
-
sections:
|
|
3904
|
+
sections: R.map((M) => ({
|
|
3905
3905
|
builder: M,
|
|
3906
3906
|
formValue: M.fromCondition(void 0)
|
|
3907
3907
|
}))
|
|
3908
3908
|
};
|
|
3909
3909
|
}
|
|
3910
|
-
function
|
|
3911
|
-
const o = oe.getDraft({ subject: O.subject, builderKey:
|
|
3910
|
+
function De(O, s) {
|
|
3911
|
+
const o = oe.getDraft({ subject: O.subject, builderKey: s.builderKey });
|
|
3912
3912
|
if (o) return o.formValue;
|
|
3913
|
-
const _ = O.sections.find((
|
|
3913
|
+
const _ = O.sections.find((R) => R.builder.builderKey === s.builderKey);
|
|
3914
3914
|
return _ == null ? void 0 : _.formValue;
|
|
3915
3915
|
}
|
|
3916
|
-
function K(O,
|
|
3917
|
-
const o = oe.getDraft({ subject: O.subject, builderKey:
|
|
3918
|
-
return o != null && o.inheritMode ? o.inheritMode : ce.inheritMode(O,
|
|
3916
|
+
function K(O, s) {
|
|
3917
|
+
const o = oe.getDraft({ subject: O.subject, builderKey: s.builderKey });
|
|
3918
|
+
return o != null && o.inheritMode ? o.inheritMode : ce.inheritMode(O, s);
|
|
3919
3919
|
}
|
|
3920
|
-
function pe(O,
|
|
3920
|
+
function pe(O, s, o) {
|
|
3921
3921
|
const _ = oe.getDraft({
|
|
3922
3922
|
subject: O.subject,
|
|
3923
|
-
builderKey:
|
|
3923
|
+
builderKey: s.builderKey
|
|
3924
3924
|
});
|
|
3925
3925
|
oe.setDraft(
|
|
3926
|
-
{ subject: O.subject, builderKey:
|
|
3926
|
+
{ subject: O.subject, builderKey: s.builderKey },
|
|
3927
3927
|
{
|
|
3928
3928
|
formValue: o,
|
|
3929
|
-
inheritMode: (_ == null ? void 0 : _.inheritMode) ?? K(O,
|
|
3929
|
+
inheritMode: (_ == null ? void 0 : _.inheritMode) ?? K(O, s)
|
|
3930
3930
|
}
|
|
3931
3931
|
);
|
|
3932
3932
|
}
|
|
3933
|
-
function Je(O,
|
|
3933
|
+
function Je(O, s, o) {
|
|
3934
3934
|
const _ = oe.getDraft({
|
|
3935
3935
|
subject: O.subject,
|
|
3936
|
-
builderKey:
|
|
3937
|
-
}),
|
|
3936
|
+
builderKey: s.builderKey
|
|
3937
|
+
}), R = O.sections.find((M) => M.builder.builderKey === s.builderKey);
|
|
3938
3938
|
oe.setDraft(
|
|
3939
|
-
{ subject: O.subject, builderKey:
|
|
3939
|
+
{ subject: O.subject, builderKey: s.builderKey },
|
|
3940
3940
|
{
|
|
3941
|
-
formValue: (_ == null ? void 0 : _.formValue) ?? (
|
|
3941
|
+
formValue: (_ == null ? void 0 : _.formValue) ?? (R == null ? void 0 : R.formValue),
|
|
3942
3942
|
inheritMode: o
|
|
3943
3943
|
}
|
|
3944
3944
|
);
|
|
@@ -3946,28 +3946,28 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3946
3946
|
function Ke(O) {
|
|
3947
3947
|
return oe.hasDraftsForSubject(O);
|
|
3948
3948
|
}
|
|
3949
|
-
function Ve(O,
|
|
3949
|
+
function Ve(O, s) {
|
|
3950
3950
|
const o = O.sections.flatMap((_) => {
|
|
3951
|
-
const
|
|
3951
|
+
const R = oe.getDraft({
|
|
3952
3952
|
subject: O.subject,
|
|
3953
3953
|
builderKey: _.builder.builderKey
|
|
3954
3954
|
});
|
|
3955
|
-
return
|
|
3955
|
+
return R ? [{ builder: _.builder, form: R.formValue, mode: R.inheritMode ?? "custom" }] : [];
|
|
3956
3956
|
});
|
|
3957
3957
|
ce.applyConditionDrafts(O, o, {
|
|
3958
3958
|
afterCommit: () => {
|
|
3959
|
-
oe.clearDraftsForSubject(O.subject),
|
|
3959
|
+
oe.clearDraftsForSubject(O.subject), s();
|
|
3960
3960
|
},
|
|
3961
3961
|
onOverridesConflict: Ye(O).onOverridesConflict
|
|
3962
3962
|
});
|
|
3963
3963
|
}
|
|
3964
3964
|
function Fe(O) {
|
|
3965
|
-
return O.sections.some((
|
|
3965
|
+
return O.sections.some((s) => ce.shouldShowInheritToggle(O, s.builder) ? ce.inheritMode(O, s.builder) === "custom" : Object.keys(s.builder.toCondition(s.formValue)).length > 0);
|
|
3966
3966
|
}
|
|
3967
3967
|
let Ce = !1;
|
|
3968
|
-
function Ye(O,
|
|
3968
|
+
function Ye(O, s = {}) {
|
|
3969
3969
|
return {
|
|
3970
|
-
...
|
|
3970
|
+
...s,
|
|
3971
3971
|
onOverridesConflict: ({ override: o, keep: _ }) => {
|
|
3972
3972
|
Ce || (Ce = !0, u.open({
|
|
3973
3973
|
title: a("team.memberForm.permissions.conditionCover.confirmTitle"),
|
|
@@ -3994,14 +3994,14 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3994
3994
|
}
|
|
3995
3995
|
};
|
|
3996
3996
|
}
|
|
3997
|
-
return
|
|
3997
|
+
return wt(
|
|
3998
3998
|
n,
|
|
3999
3999
|
(O) => {
|
|
4000
4000
|
l("permissionChanged", O);
|
|
4001
4001
|
},
|
|
4002
4002
|
{ deep: !0 }
|
|
4003
|
-
), (O,
|
|
4004
|
-
const o =
|
|
4003
|
+
), (O, s) => {
|
|
4004
|
+
const o = we("FmIcon"), _ = we("FmBottomSheet"), R = we("FmPopover");
|
|
4005
4005
|
return J(), ie("div", _a, [
|
|
4006
4006
|
ae("div", pa, [
|
|
4007
4007
|
ue(Xo, {
|
|
@@ -4010,16 +4010,16 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4010
4010
|
"additional-permissions": H(T),
|
|
4011
4011
|
"onUpdate:modelValue": ne
|
|
4012
4012
|
}, et({ _: 2 }, [
|
|
4013
|
-
|
|
4013
|
+
Ee(D.value, (M) => ({
|
|
4014
4014
|
name: `checkbox-${M.id}-append`,
|
|
4015
|
-
fn:
|
|
4015
|
+
fn: me(() => [
|
|
4016
4016
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
4017
4017
|
])
|
|
4018
4018
|
})),
|
|
4019
|
-
|
|
4019
|
+
Ee(Q.value, (M) => ({
|
|
4020
4020
|
name: `checkbox-${M}-icon`,
|
|
4021
|
-
fn:
|
|
4022
|
-
v && q(M, P.label) ? (J(), ie(
|
|
4021
|
+
fn: me(({ option: P, isEffectiveSelected: v }) => [
|
|
4022
|
+
v && q(M, P.label) ? (J(), ie(ke, { key: 0 }, [
|
|
4023
4023
|
g.value ? (J(), Ne(_, {
|
|
4024
4024
|
key: 0,
|
|
4025
4025
|
"model-value": fe.value === M,
|
|
@@ -4028,9 +4028,9 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4028
4028
|
}),
|
|
4029
4029
|
"z-index": 100,
|
|
4030
4030
|
class: "h-5 flex items-center",
|
|
4031
|
-
"onUpdate:modelValue": (
|
|
4031
|
+
"onUpdate:modelValue": (E) => fe.value = E ? M : null
|
|
4032
4032
|
}, {
|
|
4033
|
-
"bottom-sheet-button":
|
|
4033
|
+
"bottom-sheet-button": me(() => [
|
|
4034
4034
|
ae("div", va, [
|
|
4035
4035
|
ue(o, {
|
|
4036
4036
|
name: "settings",
|
|
@@ -4042,33 +4042,33 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4042
4042
|
}, null, 8, ["class"])
|
|
4043
4043
|
])
|
|
4044
4044
|
]),
|
|
4045
|
-
default:
|
|
4045
|
+
default: me(() => [
|
|
4046
4046
|
ue(Fn, {
|
|
4047
4047
|
entry: q(M, P.label),
|
|
4048
|
-
builders: q(M, P.label).sections.map((
|
|
4048
|
+
builders: q(M, P.label).sections.map((E) => E.builder),
|
|
4049
4049
|
subject: M,
|
|
4050
4050
|
"time-zone": F.value,
|
|
4051
4051
|
"cover-override": H(ce),
|
|
4052
|
-
"inherit-mode-for": (
|
|
4053
|
-
"form-value-for": (
|
|
4052
|
+
"inherit-mode-for": (E) => K(q(M, P.label), E),
|
|
4053
|
+
"form-value-for": (E) => De(q(M, P.label), E),
|
|
4054
4054
|
"has-changes": Ke(M),
|
|
4055
4055
|
disable: e.disable,
|
|
4056
4056
|
"full-width": !0,
|
|
4057
|
-
onUpdateInheritMode: ({ builder:
|
|
4058
|
-
onUpdateForm: ({ builder:
|
|
4059
|
-
onApply: (
|
|
4057
|
+
onUpdateInheritMode: ({ builder: E, mode: $ }) => Je(q(M, P.label), E, $),
|
|
4058
|
+
onUpdateForm: ({ builder: E, form: $ }) => pe(q(M, P.label), E, $),
|
|
4059
|
+
onApply: (E) => Ve(q(M, P.label), () => fe.value = null)
|
|
4060
4060
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4061
4061
|
]),
|
|
4062
4062
|
_: 2
|
|
4063
|
-
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (J(), Ne(
|
|
4063
|
+
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (J(), Ne(R, {
|
|
4064
4064
|
key: 1,
|
|
4065
4065
|
disabled: e.disable,
|
|
4066
4066
|
"z-index": 100,
|
|
4067
|
-
"exclude-el-from-click-outside": [
|
|
4067
|
+
"exclude-el-from-click-outside": [ya],
|
|
4068
4068
|
class: "h-5 flex items-center",
|
|
4069
4069
|
onClose: () => H(oe).clearDraftsForSubject(M)
|
|
4070
4070
|
}, {
|
|
4071
|
-
"popover-button":
|
|
4071
|
+
"popover-button": me(() => [
|
|
4072
4072
|
ae("div", ha, [
|
|
4073
4073
|
ue(o, {
|
|
4074
4074
|
name: "settings",
|
|
@@ -4080,7 +4080,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4080
4080
|
}, null, 8, ["class"])
|
|
4081
4081
|
])
|
|
4082
4082
|
]),
|
|
4083
|
-
default:
|
|
4083
|
+
default: me(({ hide: E }) => [
|
|
4084
4084
|
ue(Fn, {
|
|
4085
4085
|
entry: q(M, P.label),
|
|
4086
4086
|
builders: q(M, P.label).sections.map(($) => $.builder),
|
|
@@ -4091,7 +4091,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4091
4091
|
context: q(M, P.label).label
|
|
4092
4092
|
}),
|
|
4093
4093
|
"inherit-mode-for": ($) => K(q(M, P.label), $),
|
|
4094
|
-
"form-value-for": ($) =>
|
|
4094
|
+
"form-value-for": ($) => De(q(M, P.label), $),
|
|
4095
4095
|
"has-changes": Ke(M),
|
|
4096
4096
|
disable: e.disable,
|
|
4097
4097
|
onUpdateInheritMode: ({ builder: $, mode: le }) => Je(
|
|
@@ -4100,7 +4100,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4100
4100
|
le
|
|
4101
4101
|
),
|
|
4102
4102
|
onUpdateForm: ({ builder: $, form: le }) => pe(q(M, P.label), $, le),
|
|
4103
|
-
onApply: ($) => Ve(q(M, P.label),
|
|
4103
|
+
onApply: ($) => Ve(q(M, P.label), E)
|
|
4104
4104
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "title", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4105
4105
|
]),
|
|
4106
4106
|
_: 2
|
|
@@ -4116,45 +4116,45 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4116
4116
|
]), 1032, ["model-value", "additional-permissions"])
|
|
4117
4117
|
]),
|
|
4118
4118
|
ae("div", ba, [
|
|
4119
|
-
ue(
|
|
4119
|
+
ue(Dn, {
|
|
4120
4120
|
"model-value": b.value,
|
|
4121
4121
|
options: p.value,
|
|
4122
4122
|
context: H(a)("team.labels.warehouse"),
|
|
4123
|
-
"onUpdate:modelValue":
|
|
4123
|
+
"onUpdate:modelValue": k
|
|
4124
4124
|
}, et({ _: 2 }, [
|
|
4125
|
-
|
|
4125
|
+
Ee(f.value, (M) => ({
|
|
4126
4126
|
name: `checkbox-${M.id}-append`,
|
|
4127
|
-
fn:
|
|
4127
|
+
fn: me(() => [
|
|
4128
4128
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
4129
4129
|
])
|
|
4130
4130
|
}))
|
|
4131
4131
|
]), 1032, ["model-value", "options", "context"])
|
|
4132
4132
|
]),
|
|
4133
4133
|
ae("div", ga, [
|
|
4134
|
-
ue(
|
|
4134
|
+
ue(Dn, {
|
|
4135
4135
|
"model-value": U.value,
|
|
4136
|
-
options:
|
|
4136
|
+
options: d.value,
|
|
4137
4137
|
context: H(a)("team.labels.restaurant"),
|
|
4138
4138
|
"onUpdate:modelValue": V
|
|
4139
4139
|
}, et({ _: 2 }, [
|
|
4140
|
-
|
|
4140
|
+
Ee(h.value, (M) => ({
|
|
4141
4141
|
name: `checkbox-${M.id}-append`,
|
|
4142
|
-
fn:
|
|
4142
|
+
fn: me(() => [
|
|
4143
4143
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
4144
4144
|
])
|
|
4145
4145
|
}))
|
|
4146
4146
|
]), 1032, ["model-value", "options", "context"])
|
|
4147
4147
|
]),
|
|
4148
4148
|
ae("div", Ia, [
|
|
4149
|
-
ue(
|
|
4149
|
+
ue(ra, {
|
|
4150
4150
|
roles: H(x),
|
|
4151
4151
|
"model-value": j.value,
|
|
4152
4152
|
"restaurant-ids": U.value,
|
|
4153
4153
|
"onUpdate:modelValue": W
|
|
4154
4154
|
}, et({ _: 2 }, [
|
|
4155
|
-
|
|
4155
|
+
Ee(S.value, (M) => ({
|
|
4156
4156
|
name: `checkbox-${M.id}-append`,
|
|
4157
|
-
fn:
|
|
4157
|
+
fn: me(() => [
|
|
4158
4158
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
4159
4159
|
])
|
|
4160
4160
|
}))
|
|
@@ -4165,5 +4165,5 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4165
4165
|
}
|
|
4166
4166
|
});
|
|
4167
4167
|
export {
|
|
4168
|
-
|
|
4168
|
+
wa as _
|
|
4169
4169
|
};
|