@feedmepos/mf-hrm-portal 2.0.21 → 2.0.23-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AuditLogList-COhT1PFG.js → AuditLogList-DZNv14Ii.js} +4 -4
- package/dist/{EmployeeList-CBfr6g9t.js → EmployeeList-CLyzXVHu.js} +6 -6
- package/dist/{Main-gByKBqZC.js → Main-B2a73bxV.js} +4 -4
- package/dist/{Main-BEfbP-bs.js → Main-DECstpL4.js} +6 -6
- package/dist/{Main-D1dN1FTE.js → Main-miavlomK.js} +9 -9
- package/dist/{PermissionSetList-CHLm6ueB.js → PermissionSetList-Bwm1kvTZ.js} +6 -6
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BRb3aRsV.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CXlFv5XV.js} +804 -804
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-BW8o67ka.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-AvJQ8FF0.js} +1 -1
- package/dist/{RoleList-mgMUDQa_.js → RoleList-DKSkfV3M.js} +7 -7
- package/dist/{TeamMemberList-Bdtm1lLi.js → TeamMemberList-BwGAzb5q.js} +56 -56
- package/dist/{TimesheetList-BdO8bRzv.js → TimesheetList-DWgsblFA.js} +79 -80
- package/dist/{timesheet-q4UbovJv.js → TimesheetList.vue_vue_type_style_index_0_scoped_d7ed31d7_lang-DIlDcQ8K.js} +2 -2
- package/dist/{app-DdGJIhvX.js → app-BjVOqAt4.js} +22 -7
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-Dn0iKqwG.js → dayjs.min-Cs7Dz0qO.js} +1 -1
- package/dist/{employee-rjbsWBRt.js → employee-BZNHhwz-.js} +3 -3
- package/dist/{iteration-iN8h5bwW.js → iteration-dOodV1U7.js} +3 -3
- package/dist/{lodash-BX4i2dq_.js → lodash-DcnVzoh_.js} +1 -1
- package/dist/{rule-CBauoBQ2.js → rule-CUTGoTLu.js} +25 -25
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DPDMpfh5.js → useAppStore-CGruFhcg.js} +1 -1
- package/dist/{useLoading-DLMKZcST.js → useLoading-BJ29K6RW.js} +1 -1
- package/dist/{useReportPermissions-DjUtbNV6.js → useReportPermissions-CDme7_5P.js} +3 -3
- package/package.json +2 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
2
|
-
import { useI18n as
|
|
1
|
+
import { getCurrentInstance as Gt, inject as Jn, ref as gt, shallowRef as Kn, computed as q, watch as St, onMounted as Cn, onUnmounted as zn, defineComponent as ke, h as An, createVNode as _e, Text as Qn, Fragment as Le, resolveComponent as qe, createBlock as Me, openBlock as Q, withCtx as pe, createElementVNode as se, createElementBlock as oe, toDisplayString as Ie, unref as $, renderList as he, toRef as zt, normalizeStyle as Xe, renderSlot as Te, createCommentVNode as Se, createTextVNode as qn, useSlots as es, normalizeClass as at, createSlots as Ge, mergeModels as Qt, useModel as ts } from "vue";
|
|
2
|
+
import { useI18n as He, useCoreStore as ns } from "@feedmepos/mf-common";
|
|
3
3
|
import "@vue/devtools-api";
|
|
4
|
-
import { p as Mt, d as ss, w as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { u as os, b as is, d as ue,
|
|
7
|
-
import { d as dt, g as us, b as ms } from "./iteration-
|
|
8
|
-
import { u as ds } from "./useAppStore-
|
|
4
|
+
import { p as Mt, d as ss, w as rs, x as kt, k as as, j as ls, $ as Ot } from "./rule-CUTGoTLu.js";
|
|
5
|
+
import { _ as Xt } from "./CollapsibleWrapper.vue_vue_type_script_setup_true_lang-BLJlmPVa.js";
|
|
6
|
+
import { u as os, b as is, d as ue, k as cs, P as Lt } from "./app-BjVOqAt4.js";
|
|
7
|
+
import { d as dt, g as us, b as ms } from "./iteration-dOodV1U7.js";
|
|
8
|
+
import { u as ds } from "./useAppStore-CGruFhcg.js";
|
|
9
9
|
/*!
|
|
10
10
|
* shared v10.0.5
|
|
11
11
|
* (c) 2024 kazuya kawaguchi
|
|
12
12
|
* Released under the MIT License.
|
|
13
13
|
*/
|
|
14
|
-
const qt = typeof window < "u", je = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), fs = (e, t, n) => _s({ l: e, k: t, s: n }), _s = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), me = (e) => typeof e == "number" && isFinite(e), ps = (e) =>
|
|
14
|
+
const qt = typeof window < "u", je = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), fs = (e, t, n) => _s({ l: e, k: t, s: n }), _s = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), me = (e) => typeof e == "number" && isFinite(e), ps = (e) => Yt(e) === "[object Date]", _t = (e) => Yt(e) === "[object RegExp]", bt = (e) => J(e) && Object.keys(e).length === 0, de = Object.assign, gs = Object.create, ee = (e = null) => gs(e);
|
|
15
15
|
let en;
|
|
16
16
|
const Fe = () => en || (en = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : ee());
|
|
17
17
|
function tn(e) {
|
|
@@ -21,22 +21,22 @@ const bs = Object.prototype.hasOwnProperty;
|
|
|
21
21
|
function ye(e, t) {
|
|
22
22
|
return bs.call(e, t);
|
|
23
23
|
}
|
|
24
|
-
const ce = Array.isArray,
|
|
24
|
+
const ce = Array.isArray, re = (e) => typeof e == "function", P = (e) => typeof e == "string", ie = (e) => typeof e == "boolean", K = (e) => e !== null && typeof e == "object", hs = (e) => K(e) && re(e.then) && re(e.catch), Sn = Object.prototype.toString, Yt = (e) => Sn.call(e), J = (e) => Yt(e) === "[object Object]", vs = (e) => e == null ? "" : ce(e) || J(e) && e.toString === Sn ? JSON.stringify(e, null, 2) : String(e);
|
|
25
25
|
function Zt(e, t = "") {
|
|
26
26
|
return e.reduce((n, s, l) => l === 0 ? n + s : n + t + s, "");
|
|
27
27
|
}
|
|
28
28
|
function Es(e, t) {
|
|
29
29
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
30
30
|
}
|
|
31
|
-
const lt = (e) => !
|
|
31
|
+
const lt = (e) => !K(e) || ce(e);
|
|
32
32
|
function ft(e, t) {
|
|
33
33
|
if (lt(e) || lt(t))
|
|
34
34
|
throw new Error("Invalid value");
|
|
35
35
|
const n = [{ src: e, des: t }];
|
|
36
36
|
for (; n.length; ) {
|
|
37
37
|
const { src: s, des: l } = n.pop();
|
|
38
|
-
Object.keys(s).forEach((
|
|
39
|
-
|
|
38
|
+
Object.keys(s).forEach((r) => {
|
|
39
|
+
r !== "__proto__" && (K(s[r]) && !K(l[r]) && (l[r] = Array.isArray(s[r]) ? [] : ee()), lt(l[r]) || lt(s[r]) ? l[r] = s[r] : n.push({ src: s[r], des: l[r] }));
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -46,7 +46,7 @@ function Is(e, t, n) {
|
|
|
46
46
|
function Dt(e, t, n) {
|
|
47
47
|
return { start: e, end: t };
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const z = {
|
|
50
50
|
// tokenizer error codes
|
|
51
51
|
EXPECTED_TOKEN: 1,
|
|
52
52
|
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
|
@@ -64,36 +64,36 @@ const K = {
|
|
|
64
64
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
65
65
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
66
66
|
}, ys = 17;
|
|
67
|
-
function
|
|
68
|
-
const { domain: s, messages: l, args:
|
|
67
|
+
function ht(e, t, n = {}) {
|
|
68
|
+
const { domain: s, messages: l, args: r } = n, c = e, u = new SyntaxError(String(c));
|
|
69
69
|
return u.code = e, t && (u.location = t), u.domain = s, u;
|
|
70
70
|
}
|
|
71
71
|
function Ns(e) {
|
|
72
72
|
throw e;
|
|
73
73
|
}
|
|
74
|
-
const Oe = " ", Ts = "\r",
|
|
74
|
+
const Oe = " ", Ts = "\r", ge = `
|
|
75
75
|
`, ks = "\u2028", Os = "\u2029";
|
|
76
76
|
function Ls(e) {
|
|
77
77
|
const t = e;
|
|
78
|
-
let n = 0, s = 1, l = 1,
|
|
79
|
-
const c = (E) => t[E] === Ts && t[E + 1] ===
|
|
78
|
+
let n = 0, s = 1, l = 1, r = 0;
|
|
79
|
+
const c = (E) => t[E] === Ts && t[E + 1] === ge, u = (E) => t[E] === ge, m = (E) => t[E] === Os, p = (E) => t[E] === ks, N = (E) => c(E) || u(E) || m(E) || p(E), L = () => n, O = () => s, w = () => l, V = () => r, A = (E) => c(E) || m(E) || p(E) ? ge : t[E], M = () => A(n), i = () => A(n + r);
|
|
80
80
|
function d() {
|
|
81
|
-
return
|
|
81
|
+
return r = 0, N(n) && (s++, l = 0), c(n) && n++, n++, l++, t[n];
|
|
82
82
|
}
|
|
83
83
|
function T() {
|
|
84
|
-
return c(n +
|
|
84
|
+
return c(n + r) && r++, r++, t[n + r];
|
|
85
85
|
}
|
|
86
86
|
function _() {
|
|
87
|
-
n = 0, s = 1, l = 1,
|
|
87
|
+
n = 0, s = 1, l = 1, r = 0;
|
|
88
88
|
}
|
|
89
89
|
function D(E = 0) {
|
|
90
|
-
|
|
90
|
+
r = E;
|
|
91
91
|
}
|
|
92
92
|
function S() {
|
|
93
|
-
const E = n +
|
|
93
|
+
const E = n + r;
|
|
94
94
|
for (; E !== n; )
|
|
95
95
|
d();
|
|
96
|
-
|
|
96
|
+
r = 0;
|
|
97
97
|
}
|
|
98
98
|
return {
|
|
99
99
|
index: L,
|
|
@@ -112,7 +112,7 @@ function Ls(e) {
|
|
|
112
112
|
}
|
|
113
113
|
const Ae = void 0, Rs = ".", nn = "'", Cs = "tokenizer";
|
|
114
114
|
function As(e, t = {}) {
|
|
115
|
-
const n = t.location !== !1, s = Ls(e), l = () => s.index(),
|
|
115
|
+
const n = t.location !== !1, s = Ls(e), l = () => s.index(), r = () => Is(s.line(), s.column(), s.index()), c = r(), u = l(), m = {
|
|
116
116
|
currentType: 13,
|
|
117
117
|
offset: u,
|
|
118
118
|
startLoc: c,
|
|
@@ -125,140 +125,140 @@ function As(e, t = {}) {
|
|
|
125
125
|
inLinked: !1,
|
|
126
126
|
text: ""
|
|
127
127
|
}, p = () => m, { onError: N } = t;
|
|
128
|
-
function L(
|
|
129
|
-
const
|
|
130
|
-
if (o.column +=
|
|
131
|
-
const
|
|
128
|
+
function L(a, o, g, ...U) {
|
|
129
|
+
const ae = p();
|
|
130
|
+
if (o.column += g, o.offset += g, N) {
|
|
131
|
+
const Y = n ? Dt(ae.startLoc, o) : null, f = ht(a, Y, {
|
|
132
132
|
domain: Cs,
|
|
133
133
|
args: U
|
|
134
134
|
});
|
|
135
135
|
N(f);
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
function O(
|
|
139
|
-
|
|
138
|
+
function O(a, o, g) {
|
|
139
|
+
a.endLoc = r(), a.currentType = o;
|
|
140
140
|
const U = { type: o };
|
|
141
|
-
return n && (U.loc = Dt(
|
|
141
|
+
return n && (U.loc = Dt(a.startLoc, a.endLoc)), g != null && (U.value = g), U;
|
|
142
142
|
}
|
|
143
|
-
const w = (
|
|
144
|
-
|
|
143
|
+
const w = (a) => O(
|
|
144
|
+
a,
|
|
145
145
|
13
|
|
146
146
|
/* TokenTypes.EOF */
|
|
147
147
|
);
|
|
148
|
-
function V(
|
|
149
|
-
return
|
|
148
|
+
function V(a, o) {
|
|
149
|
+
return a.currentChar() === o ? (a.next(), o) : (L(z.EXPECTED_TOKEN, r(), 0, o), "");
|
|
150
150
|
}
|
|
151
|
-
function A(
|
|
151
|
+
function A(a) {
|
|
152
152
|
let o = "";
|
|
153
|
-
for (;
|
|
154
|
-
o +=
|
|
153
|
+
for (; a.currentPeek() === Oe || a.currentPeek() === ge; )
|
|
154
|
+
o += a.currentPeek(), a.peek();
|
|
155
155
|
return o;
|
|
156
156
|
}
|
|
157
|
-
function M(
|
|
158
|
-
const o = A(
|
|
159
|
-
return
|
|
157
|
+
function M(a) {
|
|
158
|
+
const o = A(a);
|
|
159
|
+
return a.skipToPeek(), o;
|
|
160
160
|
}
|
|
161
|
-
function i(
|
|
162
|
-
if (
|
|
161
|
+
function i(a) {
|
|
162
|
+
if (a === Ae)
|
|
163
163
|
return !1;
|
|
164
|
-
const o =
|
|
164
|
+
const o = a.charCodeAt(0);
|
|
165
165
|
return o >= 97 && o <= 122 || // a-z
|
|
166
166
|
o >= 65 && o <= 90 || // A-Z
|
|
167
167
|
o === 95;
|
|
168
168
|
}
|
|
169
|
-
function d(
|
|
170
|
-
if (
|
|
169
|
+
function d(a) {
|
|
170
|
+
if (a === Ae)
|
|
171
171
|
return !1;
|
|
172
|
-
const o =
|
|
172
|
+
const o = a.charCodeAt(0);
|
|
173
173
|
return o >= 48 && o <= 57;
|
|
174
174
|
}
|
|
175
|
-
function T(
|
|
176
|
-
const { currentType:
|
|
177
|
-
if (
|
|
175
|
+
function T(a, o) {
|
|
176
|
+
const { currentType: g } = o;
|
|
177
|
+
if (g !== 2)
|
|
178
178
|
return !1;
|
|
179
|
-
A(
|
|
180
|
-
const U = i(
|
|
181
|
-
return
|
|
179
|
+
A(a);
|
|
180
|
+
const U = i(a.currentPeek());
|
|
181
|
+
return a.resetPeek(), U;
|
|
182
182
|
}
|
|
183
|
-
function _(
|
|
184
|
-
const { currentType:
|
|
185
|
-
if (
|
|
183
|
+
function _(a, o) {
|
|
184
|
+
const { currentType: g } = o;
|
|
185
|
+
if (g !== 2)
|
|
186
186
|
return !1;
|
|
187
|
-
A(
|
|
188
|
-
const U =
|
|
189
|
-
return
|
|
187
|
+
A(a);
|
|
188
|
+
const U = a.currentPeek() === "-" ? a.peek() : a.currentPeek(), ae = d(U);
|
|
189
|
+
return a.resetPeek(), ae;
|
|
190
190
|
}
|
|
191
|
-
function D(
|
|
192
|
-
const { currentType:
|
|
193
|
-
if (
|
|
191
|
+
function D(a, o) {
|
|
192
|
+
const { currentType: g } = o;
|
|
193
|
+
if (g !== 2)
|
|
194
194
|
return !1;
|
|
195
|
-
A(
|
|
196
|
-
const U =
|
|
197
|
-
return
|
|
195
|
+
A(a);
|
|
196
|
+
const U = a.currentPeek() === nn;
|
|
197
|
+
return a.resetPeek(), U;
|
|
198
198
|
}
|
|
199
|
-
function S(
|
|
200
|
-
const { currentType:
|
|
201
|
-
if (
|
|
199
|
+
function S(a, o) {
|
|
200
|
+
const { currentType: g } = o;
|
|
201
|
+
if (g !== 7)
|
|
202
202
|
return !1;
|
|
203
|
-
A(
|
|
204
|
-
const U =
|
|
205
|
-
return
|
|
203
|
+
A(a);
|
|
204
|
+
const U = a.currentPeek() === ".";
|
|
205
|
+
return a.resetPeek(), U;
|
|
206
206
|
}
|
|
207
|
-
function E(
|
|
208
|
-
const { currentType:
|
|
209
|
-
if (
|
|
207
|
+
function E(a, o) {
|
|
208
|
+
const { currentType: g } = o;
|
|
209
|
+
if (g !== 8)
|
|
210
210
|
return !1;
|
|
211
|
-
A(
|
|
212
|
-
const U = i(
|
|
213
|
-
return
|
|
211
|
+
A(a);
|
|
212
|
+
const U = i(a.currentPeek());
|
|
213
|
+
return a.resetPeek(), U;
|
|
214
214
|
}
|
|
215
|
-
function Z(
|
|
216
|
-
const { currentType:
|
|
217
|
-
if (!(
|
|
215
|
+
function Z(a, o) {
|
|
216
|
+
const { currentType: g } = o;
|
|
217
|
+
if (!(g === 7 || g === 11))
|
|
218
218
|
return !1;
|
|
219
|
-
A(
|
|
220
|
-
const U =
|
|
221
|
-
return
|
|
219
|
+
A(a);
|
|
220
|
+
const U = a.currentPeek() === ":";
|
|
221
|
+
return a.resetPeek(), U;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
const { currentType:
|
|
225
|
-
if (
|
|
223
|
+
function h(a, o) {
|
|
224
|
+
const { currentType: g } = o;
|
|
225
|
+
if (g !== 9)
|
|
226
226
|
return !1;
|
|
227
227
|
const U = () => {
|
|
228
|
-
const
|
|
229
|
-
return
|
|
230
|
-
},
|
|
231
|
-
return
|
|
232
|
-
}
|
|
233
|
-
function b(
|
|
234
|
-
A(
|
|
235
|
-
const o =
|
|
236
|
-
return
|
|
237
|
-
}
|
|
238
|
-
function R(
|
|
239
|
-
const
|
|
240
|
-
const f =
|
|
241
|
-
return f === "{" || f === "@" || !f ?
|
|
242
|
-
}, U =
|
|
243
|
-
return o &&
|
|
244
|
-
}
|
|
245
|
-
function I(
|
|
246
|
-
const
|
|
247
|
-
return
|
|
248
|
-
}
|
|
249
|
-
function F(
|
|
250
|
-
const o =
|
|
228
|
+
const Y = a.currentPeek();
|
|
229
|
+
return Y === "{" ? i(a.peek()) : Y === "@" || Y === "|" || Y === ":" || Y === "." || Y === Oe || !Y ? !1 : Y === ge ? (a.peek(), U()) : R(a, !1);
|
|
230
|
+
}, ae = U();
|
|
231
|
+
return a.resetPeek(), ae;
|
|
232
|
+
}
|
|
233
|
+
function b(a) {
|
|
234
|
+
A(a);
|
|
235
|
+
const o = a.currentPeek() === "|";
|
|
236
|
+
return a.resetPeek(), o;
|
|
237
|
+
}
|
|
238
|
+
function R(a, o = !0) {
|
|
239
|
+
const g = (ae = !1, Y = "") => {
|
|
240
|
+
const f = a.currentPeek();
|
|
241
|
+
return f === "{" || f === "@" || !f ? ae : f === "|" ? !(Y === Oe || Y === ge) : f === Oe ? (a.peek(), g(!0, Oe)) : f === ge ? (a.peek(), g(!0, ge)) : !0;
|
|
242
|
+
}, U = g();
|
|
243
|
+
return o && a.resetPeek(), U;
|
|
244
|
+
}
|
|
245
|
+
function I(a, o) {
|
|
246
|
+
const g = a.currentChar();
|
|
247
|
+
return g === Ae ? Ae : o(g) ? (a.next(), g) : null;
|
|
248
|
+
}
|
|
249
|
+
function F(a) {
|
|
250
|
+
const o = a.charCodeAt(0);
|
|
251
251
|
return o >= 97 && o <= 122 || // a-z
|
|
252
252
|
o >= 65 && o <= 90 || // A-Z
|
|
253
253
|
o >= 48 && o <= 57 || // 0-9
|
|
254
254
|
o === 95 || // _
|
|
255
255
|
o === 36;
|
|
256
256
|
}
|
|
257
|
-
function
|
|
258
|
-
return I(
|
|
257
|
+
function G(a) {
|
|
258
|
+
return I(a, F);
|
|
259
259
|
}
|
|
260
|
-
function y(
|
|
261
|
-
const o =
|
|
260
|
+
function y(a) {
|
|
261
|
+
const o = a.charCodeAt(0);
|
|
262
262
|
return o >= 97 && o <= 122 || // a-z
|
|
263
263
|
o >= 65 && o <= 90 || // A-Z
|
|
264
264
|
o >= 48 && o <= 57 || // 0-9
|
|
@@ -266,243 +266,243 @@ function As(e, t = {}) {
|
|
|
266
266
|
o === 36 || // $
|
|
267
267
|
o === 45;
|
|
268
268
|
}
|
|
269
|
-
function C(
|
|
270
|
-
return I(
|
|
269
|
+
function C(a) {
|
|
270
|
+
return I(a, y);
|
|
271
271
|
}
|
|
272
|
-
function v(
|
|
273
|
-
const o =
|
|
272
|
+
function v(a) {
|
|
273
|
+
const o = a.charCodeAt(0);
|
|
274
274
|
return o >= 48 && o <= 57;
|
|
275
275
|
}
|
|
276
|
-
function
|
|
277
|
-
return I(
|
|
276
|
+
function x(a) {
|
|
277
|
+
return I(a, v);
|
|
278
278
|
}
|
|
279
|
-
function W(
|
|
280
|
-
const o =
|
|
279
|
+
function W(a) {
|
|
280
|
+
const o = a.charCodeAt(0);
|
|
281
281
|
return o >= 48 && o <= 57 || // 0-9
|
|
282
282
|
o >= 65 && o <= 70 || // A-F
|
|
283
283
|
o >= 97 && o <= 102;
|
|
284
284
|
}
|
|
285
|
-
function j(
|
|
286
|
-
return I(
|
|
285
|
+
function j(a) {
|
|
286
|
+
return I(a, W);
|
|
287
287
|
}
|
|
288
|
-
function te(
|
|
289
|
-
let o = "",
|
|
290
|
-
for (; o =
|
|
291
|
-
|
|
292
|
-
return
|
|
288
|
+
function te(a) {
|
|
289
|
+
let o = "", g = "";
|
|
290
|
+
for (; o = x(a); )
|
|
291
|
+
g += o;
|
|
292
|
+
return g;
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function B(a) {
|
|
295
295
|
let o = "";
|
|
296
296
|
for (; ; ) {
|
|
297
|
-
const
|
|
298
|
-
if (
|
|
297
|
+
const g = a.currentChar();
|
|
298
|
+
if (g === "{" || g === "}" || g === "@" || g === "|" || !g)
|
|
299
299
|
break;
|
|
300
|
-
if (
|
|
301
|
-
if (R(
|
|
302
|
-
o +=
|
|
300
|
+
if (g === Oe || g === ge)
|
|
301
|
+
if (R(a))
|
|
302
|
+
o += g, a.next();
|
|
303
303
|
else {
|
|
304
|
-
if (b(
|
|
304
|
+
if (b(a))
|
|
305
305
|
break;
|
|
306
|
-
o +=
|
|
306
|
+
o += g, a.next();
|
|
307
307
|
}
|
|
308
308
|
else
|
|
309
|
-
o +=
|
|
309
|
+
o += g, a.next();
|
|
310
310
|
}
|
|
311
311
|
return o;
|
|
312
312
|
}
|
|
313
|
-
function be(
|
|
314
|
-
M(
|
|
315
|
-
let o = "",
|
|
316
|
-
for (; o = C(
|
|
317
|
-
|
|
318
|
-
return
|
|
313
|
+
function be(a) {
|
|
314
|
+
M(a);
|
|
315
|
+
let o = "", g = "";
|
|
316
|
+
for (; o = C(a); )
|
|
317
|
+
g += o;
|
|
318
|
+
return a.currentChar() === Ae && L(z.UNTERMINATED_CLOSING_BRACE, r(), 0), g;
|
|
319
319
|
}
|
|
320
|
-
function fe(
|
|
321
|
-
M(
|
|
320
|
+
function fe(a) {
|
|
321
|
+
M(a);
|
|
322
322
|
let o = "";
|
|
323
|
-
return
|
|
323
|
+
return a.currentChar() === "-" ? (a.next(), o += `-${te(a)}`) : o += te(a), a.currentChar() === Ae && L(z.UNTERMINATED_CLOSING_BRACE, r(), 0), o;
|
|
324
324
|
}
|
|
325
|
-
function
|
|
326
|
-
return
|
|
325
|
+
function H(a) {
|
|
326
|
+
return a !== nn && a !== ge;
|
|
327
327
|
}
|
|
328
|
-
function
|
|
329
|
-
M(
|
|
330
|
-
let o = "",
|
|
331
|
-
for (; o = I(
|
|
332
|
-
o === "\\" ?
|
|
333
|
-
const U =
|
|
334
|
-
return U ===
|
|
328
|
+
function X(a) {
|
|
329
|
+
M(a), V(a, "'");
|
|
330
|
+
let o = "", g = "";
|
|
331
|
+
for (; o = I(a, H); )
|
|
332
|
+
o === "\\" ? g += Ee(a) : g += o;
|
|
333
|
+
const U = a.currentChar();
|
|
334
|
+
return U === ge || U === Ae ? (L(z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, r(), 0), U === ge && (a.next(), V(a, "'")), g) : (V(a, "'"), g);
|
|
335
335
|
}
|
|
336
|
-
function Ee(
|
|
337
|
-
const o =
|
|
336
|
+
function Ee(a) {
|
|
337
|
+
const o = a.currentChar();
|
|
338
338
|
switch (o) {
|
|
339
339
|
case "\\":
|
|
340
340
|
case "'":
|
|
341
|
-
return
|
|
341
|
+
return a.next(), `\\${o}`;
|
|
342
342
|
case "u":
|
|
343
|
-
return $e(
|
|
343
|
+
return $e(a, o, 4);
|
|
344
344
|
case "U":
|
|
345
|
-
return $e(
|
|
345
|
+
return $e(a, o, 6);
|
|
346
346
|
default:
|
|
347
|
-
return L(
|
|
347
|
+
return L(z.UNKNOWN_ESCAPE_SEQUENCE, r(), 0, o), "";
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
function $e(
|
|
351
|
-
V(
|
|
350
|
+
function $e(a, o, g) {
|
|
351
|
+
V(a, o);
|
|
352
352
|
let U = "";
|
|
353
|
-
for (let
|
|
354
|
-
const
|
|
355
|
-
if (!
|
|
356
|
-
L(
|
|
353
|
+
for (let ae = 0; ae < g; ae++) {
|
|
354
|
+
const Y = j(a);
|
|
355
|
+
if (!Y) {
|
|
356
|
+
L(z.INVALID_UNICODE_ESCAPE_SEQUENCE, r(), 0, `\\${o}${U}${a.currentChar()}`);
|
|
357
357
|
break;
|
|
358
358
|
}
|
|
359
|
-
U +=
|
|
359
|
+
U += Y;
|
|
360
360
|
}
|
|
361
361
|
return `\\${o}${U}`;
|
|
362
362
|
}
|
|
363
|
-
function Je(
|
|
364
|
-
return
|
|
365
|
-
}
|
|
366
|
-
function It(
|
|
367
|
-
M(
|
|
368
|
-
let o = "",
|
|
369
|
-
for (; o = I(
|
|
370
|
-
|
|
371
|
-
return
|
|
372
|
-
}
|
|
373
|
-
function yt(
|
|
374
|
-
let o = "",
|
|
375
|
-
for (; o =
|
|
376
|
-
|
|
377
|
-
return
|
|
378
|
-
}
|
|
379
|
-
function Nt(
|
|
380
|
-
const o = (
|
|
381
|
-
const U =
|
|
382
|
-
return U === "{" || U === "@" || U === "|" || U === "(" || U === ")" || !U || U === Oe ?
|
|
363
|
+
function Je(a) {
|
|
364
|
+
return a !== "{" && a !== "}" && a !== Oe && a !== ge;
|
|
365
|
+
}
|
|
366
|
+
function It(a) {
|
|
367
|
+
M(a);
|
|
368
|
+
let o = "", g = "";
|
|
369
|
+
for (; o = I(a, Je); )
|
|
370
|
+
g += o;
|
|
371
|
+
return g;
|
|
372
|
+
}
|
|
373
|
+
function yt(a) {
|
|
374
|
+
let o = "", g = "";
|
|
375
|
+
for (; o = G(a); )
|
|
376
|
+
g += o;
|
|
377
|
+
return g;
|
|
378
|
+
}
|
|
379
|
+
function Nt(a) {
|
|
380
|
+
const o = (g) => {
|
|
381
|
+
const U = a.currentChar();
|
|
382
|
+
return U === "{" || U === "@" || U === "|" || U === "(" || U === ")" || !U || U === Oe ? g : (g += U, a.next(), o(g));
|
|
383
383
|
};
|
|
384
384
|
return o("");
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
M(
|
|
386
|
+
function Ke(a) {
|
|
387
|
+
M(a);
|
|
388
388
|
const o = V(
|
|
389
|
-
|
|
389
|
+
a,
|
|
390
390
|
"|"
|
|
391
391
|
/* TokenChars.Pipe */
|
|
392
392
|
);
|
|
393
|
-
return M(
|
|
393
|
+
return M(a), o;
|
|
394
394
|
}
|
|
395
|
-
function Ue(
|
|
396
|
-
let
|
|
397
|
-
switch (
|
|
395
|
+
function Ue(a, o) {
|
|
396
|
+
let g = null;
|
|
397
|
+
switch (a.currentChar()) {
|
|
398
398
|
case "{":
|
|
399
|
-
return o.braceNest >= 1 && L(
|
|
399
|
+
return o.braceNest >= 1 && L(z.NOT_ALLOW_NEST_PLACEHOLDER, r(), 0), a.next(), g = O(
|
|
400
400
|
o,
|
|
401
401
|
2,
|
|
402
402
|
"{"
|
|
403
403
|
/* TokenChars.BraceLeft */
|
|
404
|
-
), M(
|
|
404
|
+
), M(a), o.braceNest++, g;
|
|
405
405
|
case "}":
|
|
406
|
-
return o.braceNest > 0 && o.currentType === 2 && L(
|
|
406
|
+
return o.braceNest > 0 && o.currentType === 2 && L(z.EMPTY_PLACEHOLDER, r(), 0), a.next(), g = O(
|
|
407
407
|
o,
|
|
408
408
|
3,
|
|
409
409
|
"}"
|
|
410
410
|
/* TokenChars.BraceRight */
|
|
411
|
-
), o.braceNest--, o.braceNest > 0 && M(
|
|
411
|
+
), o.braceNest--, o.braceNest > 0 && M(a), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), g;
|
|
412
412
|
case "@":
|
|
413
|
-
return o.braceNest > 0 && L(
|
|
413
|
+
return o.braceNest > 0 && L(z.UNTERMINATED_CLOSING_BRACE, r(), 0), g = Ve(a, o) || w(o), o.braceNest = 0, g;
|
|
414
414
|
default: {
|
|
415
|
-
let
|
|
416
|
-
if (b(
|
|
417
|
-
return o.braceNest > 0 && L(
|
|
415
|
+
let ae = !0, Y = !0, f = !0;
|
|
416
|
+
if (b(a))
|
|
417
|
+
return o.braceNest > 0 && L(z.UNTERMINATED_CLOSING_BRACE, r(), 0), g = O(o, 1, Ke(a)), o.braceNest = 0, o.inLinked = !1, g;
|
|
418
418
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
419
|
-
return L(
|
|
420
|
-
if (
|
|
421
|
-
return
|
|
422
|
-
if (
|
|
423
|
-
return
|
|
424
|
-
if (f = D(
|
|
425
|
-
return
|
|
426
|
-
if (!
|
|
427
|
-
return
|
|
419
|
+
return L(z.UNTERMINATED_CLOSING_BRACE, r(), 0), o.braceNest = 0, ze(a, o);
|
|
420
|
+
if (ae = T(a, o))
|
|
421
|
+
return g = O(o, 4, be(a)), M(a), g;
|
|
422
|
+
if (Y = _(a, o))
|
|
423
|
+
return g = O(o, 5, fe(a)), M(a), g;
|
|
424
|
+
if (f = D(a, o))
|
|
425
|
+
return g = O(o, 6, X(a)), M(a), g;
|
|
426
|
+
if (!ae && !Y && !f)
|
|
427
|
+
return g = O(o, 12, It(a)), L(z.INVALID_TOKEN_IN_PLACEHOLDER, r(), 0, g.value), M(a), g;
|
|
428
428
|
break;
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
return
|
|
431
|
+
return g;
|
|
432
432
|
}
|
|
433
|
-
function Ve(
|
|
434
|
-
const { currentType:
|
|
433
|
+
function Ve(a, o) {
|
|
434
|
+
const { currentType: g } = o;
|
|
435
435
|
let U = null;
|
|
436
|
-
const
|
|
437
|
-
switch ((
|
|
436
|
+
const ae = a.currentChar();
|
|
437
|
+
switch ((g === 7 || g === 8 || g === 11 || g === 9) && (ae === ge || ae === Oe) && L(z.INVALID_LINKED_FORMAT, r(), 0), ae) {
|
|
438
438
|
case "@":
|
|
439
|
-
return
|
|
439
|
+
return a.next(), U = O(
|
|
440
440
|
o,
|
|
441
441
|
7,
|
|
442
442
|
"@"
|
|
443
443
|
/* TokenChars.LinkedAlias */
|
|
444
444
|
), o.inLinked = !0, U;
|
|
445
445
|
case ".":
|
|
446
|
-
return M(
|
|
446
|
+
return M(a), a.next(), O(
|
|
447
447
|
o,
|
|
448
448
|
8,
|
|
449
449
|
"."
|
|
450
450
|
/* TokenChars.LinkedDot */
|
|
451
451
|
);
|
|
452
452
|
case ":":
|
|
453
|
-
return M(
|
|
453
|
+
return M(a), a.next(), O(
|
|
454
454
|
o,
|
|
455
455
|
9,
|
|
456
456
|
":"
|
|
457
457
|
/* TokenChars.LinkedDelimiter */
|
|
458
458
|
);
|
|
459
459
|
default:
|
|
460
|
-
return b(
|
|
460
|
+
return b(a) ? (U = O(o, 1, Ke(a)), o.braceNest = 0, o.inLinked = !1, U) : S(a, o) || Z(a, o) ? (M(a), Ve(a, o)) : E(a, o) ? (M(a), O(o, 11, yt(a))) : h(a, o) ? (M(a), ae === "{" ? Ue(a, o) || U : O(o, 10, Nt(a))) : (g === 7 && L(z.INVALID_LINKED_FORMAT, r(), 0), o.braceNest = 0, o.inLinked = !1, ze(a, o));
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
function
|
|
464
|
-
let
|
|
463
|
+
function ze(a, o) {
|
|
464
|
+
let g = {
|
|
465
465
|
type: 13
|
|
466
466
|
/* TokenTypes.EOF */
|
|
467
467
|
};
|
|
468
468
|
if (o.braceNest > 0)
|
|
469
|
-
return Ue(
|
|
469
|
+
return Ue(a, o) || w(o);
|
|
470
470
|
if (o.inLinked)
|
|
471
|
-
return Ve(
|
|
472
|
-
switch (
|
|
471
|
+
return Ve(a, o) || w(o);
|
|
472
|
+
switch (a.currentChar()) {
|
|
473
473
|
case "{":
|
|
474
|
-
return Ue(
|
|
474
|
+
return Ue(a, o) || w(o);
|
|
475
475
|
case "}":
|
|
476
|
-
return L(
|
|
476
|
+
return L(z.UNBALANCED_CLOSING_BRACE, r(), 0), a.next(), O(
|
|
477
477
|
o,
|
|
478
478
|
3,
|
|
479
479
|
"}"
|
|
480
480
|
/* TokenChars.BraceRight */
|
|
481
481
|
);
|
|
482
482
|
case "@":
|
|
483
|
-
return Ve(
|
|
483
|
+
return Ve(a, o) || w(o);
|
|
484
484
|
default: {
|
|
485
|
-
if (b(
|
|
486
|
-
return
|
|
487
|
-
if (R(
|
|
488
|
-
return O(o, 0,
|
|
485
|
+
if (b(a))
|
|
486
|
+
return g = O(o, 1, Ke(a)), o.braceNest = 0, o.inLinked = !1, g;
|
|
487
|
+
if (R(a))
|
|
488
|
+
return O(o, 0, B(a));
|
|
489
489
|
break;
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
return
|
|
492
|
+
return g;
|
|
493
493
|
}
|
|
494
494
|
function Tt() {
|
|
495
|
-
const { currentType:
|
|
496
|
-
return m.lastType =
|
|
495
|
+
const { currentType: a, offset: o, startLoc: g, endLoc: U } = m;
|
|
496
|
+
return m.lastType = a, m.lastOffset = o, m.lastStartLoc = g, m.lastEndLoc = U, m.offset = l(), m.startLoc = r(), s.currentChar() === Ae ? O(
|
|
497
497
|
m,
|
|
498
498
|
13
|
|
499
499
|
/* TokenTypes.EOF */
|
|
500
|
-
) :
|
|
500
|
+
) : ze(s, m);
|
|
501
501
|
}
|
|
502
502
|
return {
|
|
503
503
|
nextToken: Tt,
|
|
504
504
|
currentOffset: l,
|
|
505
|
-
currentPosition:
|
|
505
|
+
currentPosition: r,
|
|
506
506
|
context: p
|
|
507
507
|
};
|
|
508
508
|
}
|
|
@@ -524,7 +524,7 @@ function ws(e = {}) {
|
|
|
524
524
|
function s(i, d, T, _, ...D) {
|
|
525
525
|
const S = i.currentPosition();
|
|
526
526
|
if (S.offset += _, S.column += _, n) {
|
|
527
|
-
const E = t ? Dt(T, S) : null, Z =
|
|
527
|
+
const E = t ? Dt(T, S) : null, Z = ht(d, E, {
|
|
528
528
|
domain: Ss,
|
|
529
529
|
args: D
|
|
530
530
|
});
|
|
@@ -535,37 +535,37 @@ function ws(e = {}) {
|
|
|
535
535
|
const _ = { type: i };
|
|
536
536
|
return t && (_.start = d, _.end = d, _.loc = { start: T, end: T }), _;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function r(i, d, T, _) {
|
|
539
539
|
t && (i.end = d, i.loc && (i.loc.end = T));
|
|
540
540
|
}
|
|
541
541
|
function c(i, d) {
|
|
542
542
|
const T = i.context(), _ = l(3, T.offset, T.startLoc);
|
|
543
|
-
return _.value = d,
|
|
543
|
+
return _.value = d, r(_, i.currentOffset(), i.currentPosition()), _;
|
|
544
544
|
}
|
|
545
545
|
function u(i, d) {
|
|
546
546
|
const T = i.context(), { lastOffset: _, lastStartLoc: D } = T, S = l(5, _, D);
|
|
547
|
-
return S.index = parseInt(d, 10), i.nextToken(),
|
|
547
|
+
return S.index = parseInt(d, 10), i.nextToken(), r(S, i.currentOffset(), i.currentPosition()), S;
|
|
548
548
|
}
|
|
549
549
|
function m(i, d) {
|
|
550
550
|
const T = i.context(), { lastOffset: _, lastStartLoc: D } = T, S = l(4, _, D);
|
|
551
|
-
return S.key = d, i.nextToken(),
|
|
551
|
+
return S.key = d, i.nextToken(), r(S, i.currentOffset(), i.currentPosition()), S;
|
|
552
552
|
}
|
|
553
553
|
function p(i, d) {
|
|
554
554
|
const T = i.context(), { lastOffset: _, lastStartLoc: D } = T, S = l(9, _, D);
|
|
555
|
-
return S.value = d.replace(Ms, Ds), i.nextToken(),
|
|
555
|
+
return S.value = d.replace(Ms, Ds), i.nextToken(), r(S, i.currentOffset(), i.currentPosition()), S;
|
|
556
556
|
}
|
|
557
557
|
function N(i) {
|
|
558
558
|
const d = i.nextToken(), T = i.context(), { lastOffset: _, lastStartLoc: D } = T, S = l(8, _, D);
|
|
559
|
-
return d.type !== 11 ? (s(i,
|
|
559
|
+
return d.type !== 11 ? (s(i, z.UNEXPECTED_EMPTY_LINKED_MODIFIER, T.lastStartLoc, 0), S.value = "", r(S, _, D), {
|
|
560
560
|
nextConsumeToken: d,
|
|
561
561
|
node: S
|
|
562
|
-
}) : (d.value == null && s(i,
|
|
562
|
+
}) : (d.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, Ne(d)), S.value = d.value || "", r(S, i.currentOffset(), i.currentPosition()), {
|
|
563
563
|
node: S
|
|
564
564
|
});
|
|
565
565
|
}
|
|
566
566
|
function L(i, d) {
|
|
567
567
|
const T = i.context(), _ = l(7, T.offset, T.startLoc);
|
|
568
|
-
return _.value = d,
|
|
568
|
+
return _.value = d, r(_, i.currentOffset(), i.currentPosition()), _;
|
|
569
569
|
}
|
|
570
570
|
function O(i) {
|
|
571
571
|
const d = i.context(), T = l(6, d.offset, d.startLoc);
|
|
@@ -574,29 +574,29 @@ function ws(e = {}) {
|
|
|
574
574
|
const D = N(i);
|
|
575
575
|
T.modifier = D.node, _ = D.nextConsumeToken || i.nextToken();
|
|
576
576
|
}
|
|
577
|
-
switch (_.type !== 9 && s(i,
|
|
577
|
+
switch (_.type !== 9 && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(_)), _ = i.nextToken(), _.type === 2 && (_ = i.nextToken()), _.type) {
|
|
578
578
|
case 10:
|
|
579
|
-
_.value == null && s(i,
|
|
579
|
+
_.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(_)), T.key = L(i, _.value || "");
|
|
580
580
|
break;
|
|
581
581
|
case 4:
|
|
582
|
-
_.value == null && s(i,
|
|
582
|
+
_.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(_)), T.key = m(i, _.value || "");
|
|
583
583
|
break;
|
|
584
584
|
case 5:
|
|
585
|
-
_.value == null && s(i,
|
|
585
|
+
_.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(_)), T.key = u(i, _.value || "");
|
|
586
586
|
break;
|
|
587
587
|
case 6:
|
|
588
|
-
_.value == null && s(i,
|
|
588
|
+
_.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(_)), T.key = p(i, _.value || "");
|
|
589
589
|
break;
|
|
590
590
|
default: {
|
|
591
|
-
s(i,
|
|
591
|
+
s(i, z.UNEXPECTED_EMPTY_LINKED_KEY, d.lastStartLoc, 0);
|
|
592
592
|
const D = i.context(), S = l(7, D.offset, D.startLoc);
|
|
593
|
-
return S.value = "",
|
|
593
|
+
return S.value = "", r(S, D.offset, D.startLoc), T.key = S, r(T, D.offset, D.startLoc), {
|
|
594
594
|
nextConsumeToken: _,
|
|
595
595
|
node: T
|
|
596
596
|
};
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
return
|
|
599
|
+
return r(T, i.currentOffset(), i.currentPosition()), {
|
|
600
600
|
node: T
|
|
601
601
|
};
|
|
602
602
|
}
|
|
@@ -605,19 +605,19 @@ function ws(e = {}) {
|
|
|
605
605
|
D.items = [];
|
|
606
606
|
let S = null;
|
|
607
607
|
do {
|
|
608
|
-
const
|
|
609
|
-
switch (S = null,
|
|
608
|
+
const h = S || i.nextToken();
|
|
609
|
+
switch (S = null, h.type) {
|
|
610
610
|
case 0:
|
|
611
|
-
|
|
611
|
+
h.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(h)), D.items.push(c(i, h.value || ""));
|
|
612
612
|
break;
|
|
613
613
|
case 5:
|
|
614
|
-
|
|
614
|
+
h.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(h)), D.items.push(u(i, h.value || ""));
|
|
615
615
|
break;
|
|
616
616
|
case 4:
|
|
617
|
-
|
|
617
|
+
h.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(h)), D.items.push(m(i, h.value || ""));
|
|
618
618
|
break;
|
|
619
619
|
case 6:
|
|
620
|
-
|
|
620
|
+
h.value == null && s(i, z.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, Ne(h)), D.items.push(p(i, h.value || ""));
|
|
621
621
|
break;
|
|
622
622
|
case 7: {
|
|
623
623
|
const b = O(i);
|
|
@@ -627,7 +627,7 @@ function ws(e = {}) {
|
|
|
627
627
|
}
|
|
628
628
|
} while (d.currentType !== 13 && d.currentType !== 1);
|
|
629
629
|
const E = d.currentType === 1 ? d.lastOffset : i.currentOffset(), Z = d.currentType === 1 ? d.lastEndLoc : i.currentPosition();
|
|
630
|
-
return
|
|
630
|
+
return r(D, E, Z), D;
|
|
631
631
|
}
|
|
632
632
|
function V(i, d, T, _) {
|
|
633
633
|
const D = i.context();
|
|
@@ -638,7 +638,7 @@ function ws(e = {}) {
|
|
|
638
638
|
const Z = w(i);
|
|
639
639
|
S || (S = Z.items.length === 0), E.cases.push(Z);
|
|
640
640
|
} while (D.currentType !== 13);
|
|
641
|
-
return S && s(i,
|
|
641
|
+
return S && s(i, z.MUST_HAVE_MESSAGES_IN_PLURAL, T, 0), r(E, i.currentOffset(), i.currentPosition()), E;
|
|
642
642
|
}
|
|
643
643
|
function A(i) {
|
|
644
644
|
const d = i.context(), { offset: T, startLoc: _ } = d, D = w(i);
|
|
@@ -646,7 +646,7 @@ function ws(e = {}) {
|
|
|
646
646
|
}
|
|
647
647
|
function M(i) {
|
|
648
648
|
const d = As(i, de({}, e)), T = d.context(), _ = l(0, T.offset, T.startLoc);
|
|
649
|
-
return t && _.loc && (_.loc.source = i), _.body = A(d), e.onCacheKey && (_.cacheKey = e.onCacheKey(i)), T.currentType !== 13 && s(d,
|
|
649
|
+
return t && _.loc && (_.loc.source = i), _.body = A(d), e.onCacheKey && (_.cacheKey = e.onCacheKey(i)), T.currentType !== 13 && s(d, z.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, i[T.offset] || ""), r(_, d.currentOffset(), d.currentPosition()), _;
|
|
650
650
|
}
|
|
651
651
|
return { parse: M };
|
|
652
652
|
}
|
|
@@ -661,13 +661,13 @@ function Ps(e, t = {}) {
|
|
|
661
661
|
ast: e,
|
|
662
662
|
helpers: /* @__PURE__ */ new Set()
|
|
663
663
|
};
|
|
664
|
-
return { context: () => n, helper: (
|
|
664
|
+
return { context: () => n, helper: (r) => (n.helpers.add(r), r) };
|
|
665
665
|
}
|
|
666
666
|
function sn(e, t) {
|
|
667
667
|
for (let n = 0; n < e.length; n++)
|
|
668
|
-
|
|
668
|
+
Bt(e[n], t);
|
|
669
669
|
}
|
|
670
|
-
function
|
|
670
|
+
function Bt(e, t) {
|
|
671
671
|
switch (e.type) {
|
|
672
672
|
case 1:
|
|
673
673
|
sn(e.cases, t), t.helper(
|
|
@@ -679,7 +679,7 @@ function Ht(e, t) {
|
|
|
679
679
|
sn(e.items, t);
|
|
680
680
|
break;
|
|
681
681
|
case 6: {
|
|
682
|
-
|
|
682
|
+
Bt(e.key, t), t.helper(
|
|
683
683
|
"linked"
|
|
684
684
|
/* HelperNameMap.LINKED */
|
|
685
685
|
), t.helper(
|
|
@@ -713,15 +713,15 @@ function Fs(e, t = {}) {
|
|
|
713
713
|
n.helper(
|
|
714
714
|
"normalize"
|
|
715
715
|
/* HelperNameMap.NORMALIZE */
|
|
716
|
-
), e.body &&
|
|
716
|
+
), e.body && Bt(e.body, n);
|
|
717
717
|
const s = n.context();
|
|
718
718
|
e.helpers = Array.from(s.helpers);
|
|
719
719
|
}
|
|
720
720
|
function js(e) {
|
|
721
721
|
const t = e.body;
|
|
722
|
-
return t.type === 2 ?
|
|
722
|
+
return t.type === 2 ? rn(t) : t.cases.forEach((n) => rn(n)), e;
|
|
723
723
|
}
|
|
724
|
-
function
|
|
724
|
+
function rn(e) {
|
|
725
725
|
if (e.items.length === 1) {
|
|
726
726
|
const t = e.items[0];
|
|
727
727
|
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
@@ -742,24 +742,24 @@ function an(e) {
|
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
|
-
function
|
|
745
|
+
function xe(e) {
|
|
746
746
|
switch (e.t = e.type, e.type) {
|
|
747
747
|
case 0: {
|
|
748
748
|
const t = e;
|
|
749
|
-
|
|
749
|
+
xe(t.body), t.b = t.body, delete t.body;
|
|
750
750
|
break;
|
|
751
751
|
}
|
|
752
752
|
case 1: {
|
|
753
753
|
const t = e, n = t.cases;
|
|
754
754
|
for (let s = 0; s < n.length; s++)
|
|
755
|
-
|
|
755
|
+
xe(n[s]);
|
|
756
756
|
t.c = n, delete t.cases;
|
|
757
757
|
break;
|
|
758
758
|
}
|
|
759
759
|
case 2: {
|
|
760
760
|
const t = e, n = t.items;
|
|
761
761
|
for (let s = 0; s < n.length; s++)
|
|
762
|
-
|
|
762
|
+
xe(n[s]);
|
|
763
763
|
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
764
764
|
break;
|
|
765
765
|
}
|
|
@@ -773,7 +773,7 @@ function Ge(e) {
|
|
|
773
773
|
}
|
|
774
774
|
case 6: {
|
|
775
775
|
const t = e;
|
|
776
|
-
|
|
776
|
+
xe(t.key), t.k = t.key, delete t.key, t.modifier && (xe(t.modifier), t.m = t.modifier, delete t.modifier);
|
|
777
777
|
break;
|
|
778
778
|
}
|
|
779
779
|
case 5: {
|
|
@@ -790,7 +790,7 @@ function Ge(e) {
|
|
|
790
790
|
delete e.type;
|
|
791
791
|
}
|
|
792
792
|
function Us(e, t) {
|
|
793
|
-
const { filename: n, breakLineCode: s, needIndent: l } = t,
|
|
793
|
+
const { filename: n, breakLineCode: s, needIndent: l } = t, r = t.location !== !1, c = {
|
|
794
794
|
filename: n,
|
|
795
795
|
code: "",
|
|
796
796
|
column: 1,
|
|
@@ -801,7 +801,7 @@ function Us(e, t) {
|
|
|
801
801
|
needIndent: l,
|
|
802
802
|
indentLevel: 0
|
|
803
803
|
};
|
|
804
|
-
|
|
804
|
+
r && e.loc && (c.source = e.loc.source);
|
|
805
805
|
const u = () => c;
|
|
806
806
|
function m(A, M) {
|
|
807
807
|
c.code += A;
|
|
@@ -836,7 +836,7 @@ function Vs(e, t) {
|
|
|
836
836
|
e.push(`${n(
|
|
837
837
|
"linked"
|
|
838
838
|
/* HelperNameMap.LINKED */
|
|
839
|
-
)}(`),
|
|
839
|
+
)}(`), Ye(e, t.key), t.modifier ? (e.push(", "), Ye(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
840
840
|
}
|
|
841
841
|
function Ws(e, t) {
|
|
842
842
|
const { helper: n, needIndent: s } = e;
|
|
@@ -845,11 +845,11 @@ function Ws(e, t) {
|
|
|
845
845
|
/* HelperNameMap.NORMALIZE */
|
|
846
846
|
)}([`), e.indent(s());
|
|
847
847
|
const l = t.items.length;
|
|
848
|
-
for (let
|
|
848
|
+
for (let r = 0; r < l && (Ye(e, t.items[r]), r !== l - 1); r++)
|
|
849
849
|
e.push(", ");
|
|
850
850
|
e.deindent(s()), e.push("])");
|
|
851
851
|
}
|
|
852
|
-
function
|
|
852
|
+
function xs(e, t) {
|
|
853
853
|
const { helper: n, needIndent: s } = e;
|
|
854
854
|
if (t.cases.length > 1) {
|
|
855
855
|
e.push(`${n(
|
|
@@ -857,22 +857,22 @@ function Gs(e, t) {
|
|
|
857
857
|
/* HelperNameMap.PLURAL */
|
|
858
858
|
)}([`), e.indent(s());
|
|
859
859
|
const l = t.cases.length;
|
|
860
|
-
for (let
|
|
860
|
+
for (let r = 0; r < l && (Ye(e, t.cases[r]), r !== l - 1); r++)
|
|
861
861
|
e.push(", ");
|
|
862
862
|
e.deindent(s()), e.push("])");
|
|
863
863
|
}
|
|
864
864
|
}
|
|
865
|
-
function
|
|
866
|
-
t.body ?
|
|
865
|
+
function Gs(e, t) {
|
|
866
|
+
t.body ? Ye(e, t.body) : e.push("null");
|
|
867
867
|
}
|
|
868
|
-
function
|
|
868
|
+
function Ye(e, t) {
|
|
869
869
|
const { helper: n } = e;
|
|
870
870
|
switch (t.type) {
|
|
871
871
|
case 0:
|
|
872
|
-
|
|
872
|
+
Gs(e, t);
|
|
873
873
|
break;
|
|
874
874
|
case 1:
|
|
875
|
-
|
|
875
|
+
xs(e, t);
|
|
876
876
|
break;
|
|
877
877
|
case 2:
|
|
878
878
|
Ws(e, t);
|
|
@@ -912,16 +912,16 @@ function Xe(e, t) {
|
|
|
912
912
|
break;
|
|
913
913
|
}
|
|
914
914
|
}
|
|
915
|
-
const
|
|
915
|
+
const Xs = (e, t = {}) => {
|
|
916
916
|
const n = P(t.mode) ? t.mode : "normal", s = P(t.filename) ? t.filename : "message.intl";
|
|
917
917
|
t.sourceMap;
|
|
918
918
|
const l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
919
|
-
`,
|
|
919
|
+
`, r = t.needIndent ? t.needIndent : n !== "arrow", c = e.helpers || [], u = Us(e, {
|
|
920
920
|
filename: s,
|
|
921
921
|
breakLineCode: l,
|
|
922
|
-
needIndent:
|
|
922
|
+
needIndent: r
|
|
923
923
|
});
|
|
924
|
-
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(
|
|
924
|
+
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(r), c.length > 0 && (u.push(`const { ${Zt(c.map((N) => `${N}: _${N}`), ", ")} } = ctx`), u.newline()), u.push("return "), Ye(u, e), u.deindent(r), u.push("}"), delete e.helpers;
|
|
925
925
|
const { code: m, map: p } = u.context();
|
|
926
926
|
return {
|
|
927
927
|
ast: e,
|
|
@@ -930,47 +930,47 @@ const xs = (e, t = {}) => {
|
|
|
930
930
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
931
931
|
};
|
|
932
932
|
};
|
|
933
|
-
function
|
|
934
|
-
const n = de({}, t), s = !!n.jit, l = !!n.minify,
|
|
935
|
-
return s ? (
|
|
933
|
+
function Ys(e, t = {}) {
|
|
934
|
+
const n = de({}, t), s = !!n.jit, l = !!n.minify, r = n.optimize == null ? !0 : n.optimize, u = ws(n).parse(e);
|
|
935
|
+
return s ? (r && js(u), l && xe(u), { ast: u, code: "" }) : (Fs(u, n), Xs(u, n));
|
|
936
936
|
}
|
|
937
937
|
var Zs = { env: { NODE_ENV: "production" } };
|
|
938
|
-
function
|
|
938
|
+
function Bs() {
|
|
939
939
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Fe().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Fe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
940
940
|
}
|
|
941
941
|
function Rt(e) {
|
|
942
|
-
return (n) =>
|
|
942
|
+
return (n) => Hs(n, e);
|
|
943
943
|
}
|
|
944
|
-
function
|
|
944
|
+
function Hs(e, t) {
|
|
945
945
|
const n = Js(t);
|
|
946
946
|
if (n == null)
|
|
947
947
|
throw et(
|
|
948
948
|
0
|
|
949
949
|
/* NodeTypes.Resource */
|
|
950
950
|
);
|
|
951
|
-
if (
|
|
952
|
-
const
|
|
953
|
-
return e.plural(
|
|
951
|
+
if (Ht(n) === 1) {
|
|
952
|
+
const r = zs(n);
|
|
953
|
+
return e.plural(r.reduce((c, u) => [
|
|
954
954
|
...c,
|
|
955
|
-
|
|
955
|
+
an(e, u)
|
|
956
956
|
], []));
|
|
957
957
|
} else
|
|
958
|
-
return
|
|
958
|
+
return an(e, n);
|
|
959
959
|
}
|
|
960
960
|
const $s = ["b", "body"];
|
|
961
961
|
function Js(e) {
|
|
962
962
|
return De(e, $s);
|
|
963
963
|
}
|
|
964
|
-
const
|
|
965
|
-
function
|
|
966
|
-
return De(e,
|
|
964
|
+
const Ks = ["c", "cases"];
|
|
965
|
+
function zs(e) {
|
|
966
|
+
return De(e, Ks, []);
|
|
967
967
|
}
|
|
968
|
-
function
|
|
968
|
+
function an(e, t) {
|
|
969
969
|
const n = qs(t);
|
|
970
970
|
if (n != null)
|
|
971
971
|
return e.type === "text" ? n : e.normalize([n]);
|
|
972
972
|
{
|
|
973
|
-
const s =
|
|
973
|
+
const s = tr(t).reduce((l, r) => [...l, wt(e, r)], []);
|
|
974
974
|
return e.normalize(s);
|
|
975
975
|
}
|
|
976
976
|
}
|
|
@@ -978,12 +978,12 @@ const Qs = ["s", "static"];
|
|
|
978
978
|
function qs(e) {
|
|
979
979
|
return De(e, Qs);
|
|
980
980
|
}
|
|
981
|
-
const
|
|
982
|
-
function
|
|
983
|
-
return De(e,
|
|
981
|
+
const er = ["i", "items"];
|
|
982
|
+
function tr(e) {
|
|
983
|
+
return De(e, er, []);
|
|
984
984
|
}
|
|
985
985
|
function wt(e, t) {
|
|
986
|
-
const n =
|
|
986
|
+
const n = Ht(t);
|
|
987
987
|
switch (n) {
|
|
988
988
|
case 3:
|
|
989
989
|
return ot(t, n);
|
|
@@ -1006,8 +1006,8 @@ function wt(e, t) {
|
|
|
1006
1006
|
throw et(n);
|
|
1007
1007
|
}
|
|
1008
1008
|
case 6: {
|
|
1009
|
-
const s = t, l =
|
|
1010
|
-
return e.linked(wt(e,
|
|
1009
|
+
const s = t, l = ar(s), r = or(s);
|
|
1010
|
+
return e.linked(wt(e, r), l ? wt(e, l) : void 0, e.type);
|
|
1011
1011
|
}
|
|
1012
1012
|
case 7:
|
|
1013
1013
|
return ot(t, n);
|
|
@@ -1017,24 +1017,24 @@ function wt(e, t) {
|
|
|
1017
1017
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1018
1018
|
}
|
|
1019
1019
|
}
|
|
1020
|
-
const
|
|
1021
|
-
function
|
|
1022
|
-
return De(e,
|
|
1020
|
+
const nr = ["t", "type"];
|
|
1021
|
+
function Ht(e) {
|
|
1022
|
+
return De(e, nr);
|
|
1023
1023
|
}
|
|
1024
|
-
const
|
|
1024
|
+
const sr = ["v", "value"];
|
|
1025
1025
|
function ot(e, t) {
|
|
1026
|
-
const n = De(e,
|
|
1026
|
+
const n = De(e, sr);
|
|
1027
1027
|
if (n)
|
|
1028
1028
|
return n;
|
|
1029
1029
|
throw et(t);
|
|
1030
1030
|
}
|
|
1031
|
-
const
|
|
1032
|
-
function
|
|
1033
|
-
return De(e,
|
|
1031
|
+
const rr = ["m", "modifier"];
|
|
1032
|
+
function ar(e) {
|
|
1033
|
+
return De(e, rr);
|
|
1034
1034
|
}
|
|
1035
|
-
const
|
|
1036
|
-
function
|
|
1037
|
-
const t = De(e,
|
|
1035
|
+
const lr = ["k", "key"];
|
|
1036
|
+
function or(e) {
|
|
1037
|
+
const t = De(e, lr);
|
|
1038
1038
|
if (t)
|
|
1039
1039
|
return t;
|
|
1040
1040
|
throw et(
|
|
@@ -1053,30 +1053,30 @@ function De(e, t, n) {
|
|
|
1053
1053
|
function et(e) {
|
|
1054
1054
|
return new Error(`unhandled node type: ${e}`);
|
|
1055
1055
|
}
|
|
1056
|
-
const
|
|
1056
|
+
const ir = (e) => e;
|
|
1057
1057
|
let it = ee();
|
|
1058
1058
|
function Ze(e) {
|
|
1059
|
-
return
|
|
1059
|
+
return K(e) && Ht(e) === 0 && (ye(e, "b") || ye(e, "body"));
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1061
|
+
function cr(e, t = {}) {
|
|
1062
1062
|
let n = !1;
|
|
1063
1063
|
const s = t.onError || Ns;
|
|
1064
1064
|
return t.onError = (l) => {
|
|
1065
1065
|
n = !0, s(l);
|
|
1066
|
-
}, { ...
|
|
1066
|
+
}, { ...Ys(e, t), detectError: n };
|
|
1067
1067
|
}
|
|
1068
1068
|
// @__NO_SIDE_EFFECTS__
|
|
1069
|
-
function
|
|
1069
|
+
function ur(e, t) {
|
|
1070
1070
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && P(e)) {
|
|
1071
1071
|
ie(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1072
|
-
const s = (t.onCacheKey ||
|
|
1072
|
+
const s = (t.onCacheKey || ir)(e), l = it[s];
|
|
1073
1073
|
if (l)
|
|
1074
1074
|
return l;
|
|
1075
|
-
const { ast:
|
|
1075
|
+
const { ast: r, detectError: c } = cr(e, {
|
|
1076
1076
|
...t,
|
|
1077
1077
|
location: Zs.env.NODE_ENV !== "production",
|
|
1078
1078
|
jit: !0
|
|
1079
|
-
}), u = Rt(
|
|
1079
|
+
}), u = Rt(r);
|
|
1080
1080
|
return c ? u : it[s] = u;
|
|
1081
1081
|
} else {
|
|
1082
1082
|
const n = e.cacheKey;
|
|
@@ -1088,10 +1088,10 @@ function ua(e, t) {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
1090
|
let tt = null;
|
|
1091
|
-
function
|
|
1091
|
+
function mr(e) {
|
|
1092
1092
|
tt = e;
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function dr(e, t, n) {
|
|
1095
1095
|
tt && tt.emit("i18n:init", {
|
|
1096
1096
|
timestamp: Date.now(),
|
|
1097
1097
|
i18n: e,
|
|
@@ -1099,8 +1099,8 @@ function da(e, t, n) {
|
|
|
1099
1099
|
meta: n
|
|
1100
1100
|
});
|
|
1101
1101
|
}
|
|
1102
|
-
const
|
|
1103
|
-
function
|
|
1102
|
+
const fr = /* @__PURE__ */ _r("function:translate");
|
|
1103
|
+
function _r(e) {
|
|
1104
1104
|
return (t) => tt && tt.emit(e, t);
|
|
1105
1105
|
}
|
|
1106
1106
|
const Re = {
|
|
@@ -1111,9 +1111,9 @@ const Re = {
|
|
|
1111
1111
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1112
1112
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1113
1113
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1114
|
-
},
|
|
1114
|
+
}, pr = 24;
|
|
1115
1115
|
function Ce(e) {
|
|
1116
|
-
return
|
|
1116
|
+
return ht(e, null, void 0);
|
|
1117
1117
|
}
|
|
1118
1118
|
function $t(e, t) {
|
|
1119
1119
|
return t.locale != null ? ln(t.locale) : ln(e.locale);
|
|
@@ -1122,12 +1122,12 @@ let Ct;
|
|
|
1122
1122
|
function ln(e) {
|
|
1123
1123
|
if (P(e))
|
|
1124
1124
|
return e;
|
|
1125
|
-
if (
|
|
1125
|
+
if (re(e)) {
|
|
1126
1126
|
if (e.resolvedOnce && Ct != null)
|
|
1127
1127
|
return Ct;
|
|
1128
1128
|
if (e.constructor.name === "Function") {
|
|
1129
1129
|
const t = e();
|
|
1130
|
-
if (
|
|
1130
|
+
if (hs(t))
|
|
1131
1131
|
throw Ce(Re.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1132
1132
|
return Ct = t;
|
|
1133
1133
|
} else
|
|
@@ -1135,44 +1135,44 @@ function ln(e) {
|
|
|
1135
1135
|
} else
|
|
1136
1136
|
throw Ce(Re.NOT_SUPPORT_LOCALE_TYPE);
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1138
|
+
function gr(e, t, n) {
|
|
1139
1139
|
return [.../* @__PURE__ */ new Set([
|
|
1140
1140
|
n,
|
|
1141
|
-
...ce(t) ? t :
|
|
1141
|
+
...ce(t) ? t : K(t) ? Object.keys(t) : P(t) ? [t] : [n]
|
|
1142
1142
|
])];
|
|
1143
1143
|
}
|
|
1144
1144
|
function Mn(e, t, n) {
|
|
1145
1145
|
const s = P(n) ? n : pt, l = e;
|
|
1146
1146
|
l.__localeChainCache || (l.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1147
|
-
let
|
|
1148
|
-
if (!
|
|
1149
|
-
|
|
1147
|
+
let r = l.__localeChainCache.get(s);
|
|
1148
|
+
if (!r) {
|
|
1149
|
+
r = [];
|
|
1150
1150
|
let c = [n];
|
|
1151
1151
|
for (; ce(c); )
|
|
1152
|
-
c = on(
|
|
1152
|
+
c = on(r, c, t);
|
|
1153
1153
|
const u = ce(t) || !J(t) ? t : t.default ? t.default : null;
|
|
1154
|
-
c = P(u) ? [u] : u, ce(c) && on(
|
|
1154
|
+
c = P(u) ? [u] : u, ce(c) && on(r, c, !1), l.__localeChainCache.set(s, r);
|
|
1155
1155
|
}
|
|
1156
|
-
return
|
|
1156
|
+
return r;
|
|
1157
1157
|
}
|
|
1158
1158
|
function on(e, t, n) {
|
|
1159
1159
|
let s = !0;
|
|
1160
1160
|
for (let l = 0; l < t.length && ie(s); l++) {
|
|
1161
|
-
const
|
|
1162
|
-
P(
|
|
1161
|
+
const r = t[l];
|
|
1162
|
+
P(r) && (s = br(e, t[l], n));
|
|
1163
1163
|
}
|
|
1164
1164
|
return s;
|
|
1165
1165
|
}
|
|
1166
|
-
function
|
|
1166
|
+
function br(e, t, n) {
|
|
1167
1167
|
let s;
|
|
1168
1168
|
const l = t.split("-");
|
|
1169
1169
|
do {
|
|
1170
|
-
const
|
|
1171
|
-
s =
|
|
1170
|
+
const r = l.join("-");
|
|
1171
|
+
s = hr(e, r, n), l.splice(-1, 1);
|
|
1172
1172
|
} while (l.length && s === !0);
|
|
1173
1173
|
return s;
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function hr(e, t, n) {
|
|
1176
1176
|
let s = !1;
|
|
1177
1177
|
if (!e.includes(t) && (s = !0, t)) {
|
|
1178
1178
|
s = t[t.length - 1] !== "!";
|
|
@@ -1342,15 +1342,15 @@ we[
|
|
|
1342
1342
|
/* Actions.APPEND */
|
|
1343
1343
|
]
|
|
1344
1344
|
};
|
|
1345
|
-
const
|
|
1346
|
-
function
|
|
1347
|
-
return
|
|
1345
|
+
const vr = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1346
|
+
function Er(e) {
|
|
1347
|
+
return vr.test(e);
|
|
1348
1348
|
}
|
|
1349
|
-
function
|
|
1349
|
+
function Ir(e) {
|
|
1350
1350
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1351
1351
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function yr(e) {
|
|
1354
1354
|
if (e == null)
|
|
1355
1355
|
return "o";
|
|
1356
1356
|
switch (e.charCodeAt(0)) {
|
|
@@ -1375,13 +1375,13 @@ function ya(e) {
|
|
|
1375
1375
|
}
|
|
1376
1376
|
return "i";
|
|
1377
1377
|
}
|
|
1378
|
-
function
|
|
1378
|
+
function Nr(e) {
|
|
1379
1379
|
const t = e.trim();
|
|
1380
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1380
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Er(t) ? Ir(t) : "*" + t;
|
|
1381
1381
|
}
|
|
1382
|
-
function
|
|
1382
|
+
function Tr(e) {
|
|
1383
1383
|
const t = [];
|
|
1384
|
-
let n = -1, s = 0, l = 0,
|
|
1384
|
+
let n = -1, s = 0, l = 0, r, c, u, m, p, N, L;
|
|
1385
1385
|
const O = [];
|
|
1386
1386
|
O[
|
|
1387
1387
|
0
|
|
@@ -1411,7 +1411,7 @@ function Ta(e) {
|
|
|
1411
1411
|
/* Actions.APPEND */
|
|
1412
1412
|
]();
|
|
1413
1413
|
else {
|
|
1414
|
-
if (l = 0, c === void 0 || (c =
|
|
1414
|
+
if (l = 0, c === void 0 || (c = Nr(c), c === !1))
|
|
1415
1415
|
return !1;
|
|
1416
1416
|
O[
|
|
1417
1417
|
1
|
|
@@ -1428,70 +1428,70 @@ function Ta(e) {
|
|
|
1428
1428
|
](), !0;
|
|
1429
1429
|
}
|
|
1430
1430
|
for (; s !== null; )
|
|
1431
|
-
if (n++,
|
|
1432
|
-
if (m =
|
|
1431
|
+
if (n++, r = e[n], !(r === "\\" && w())) {
|
|
1432
|
+
if (m = yr(r), L = we[s], p = L[m] || L.l || 8, p === 8 || (s = p[0], p[1] !== void 0 && (N = O[p[1]], N && (u = r, N() === !1))))
|
|
1433
1433
|
return;
|
|
1434
1434
|
if (s === 7)
|
|
1435
1435
|
return t;
|
|
1436
1436
|
}
|
|
1437
1437
|
}
|
|
1438
1438
|
const cn = /* @__PURE__ */ new Map();
|
|
1439
|
-
function
|
|
1440
|
-
return
|
|
1439
|
+
function kr(e, t) {
|
|
1440
|
+
return K(e) ? e[t] : null;
|
|
1441
1441
|
}
|
|
1442
|
-
function
|
|
1443
|
-
if (!
|
|
1442
|
+
function Or(e, t) {
|
|
1443
|
+
if (!K(e))
|
|
1444
1444
|
return null;
|
|
1445
1445
|
let n = cn.get(t);
|
|
1446
|
-
if (n || (n =
|
|
1446
|
+
if (n || (n = Tr(t), n && cn.set(t, n)), !n)
|
|
1447
1447
|
return null;
|
|
1448
1448
|
const s = n.length;
|
|
1449
|
-
let l = e,
|
|
1450
|
-
for (;
|
|
1451
|
-
const c = l[n[
|
|
1452
|
-
if (c === void 0 ||
|
|
1449
|
+
let l = e, r = 0;
|
|
1450
|
+
for (; r < s; ) {
|
|
1451
|
+
const c = l[n[r]];
|
|
1452
|
+
if (c === void 0 || re(l))
|
|
1453
1453
|
return null;
|
|
1454
|
-
l = c,
|
|
1454
|
+
l = c, r++;
|
|
1455
1455
|
}
|
|
1456
1456
|
return l;
|
|
1457
1457
|
}
|
|
1458
|
-
const
|
|
1459
|
-
function
|
|
1458
|
+
const Lr = "10.0.5", vt = -1, pt = "en-US", un = "", mn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1459
|
+
function Rr() {
|
|
1460
1460
|
return {
|
|
1461
|
-
upper: (e, t) => t === "text" && P(e) ? e.toUpperCase() : t === "vnode" &&
|
|
1462
|
-
lower: (e, t) => t === "text" && P(e) ? e.toLowerCase() : t === "vnode" &&
|
|
1463
|
-
capitalize: (e, t) => t === "text" && P(e) ? mn(e) : t === "vnode" &&
|
|
1461
|
+
upper: (e, t) => t === "text" && P(e) ? e.toUpperCase() : t === "vnode" && K(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1462
|
+
lower: (e, t) => t === "text" && P(e) ? e.toLowerCase() : t === "vnode" && K(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1463
|
+
capitalize: (e, t) => t === "text" && P(e) ? mn(e) : t === "vnode" && K(e) && "__v_isVNode" in e ? mn(e.children) : e
|
|
1464
1464
|
};
|
|
1465
1465
|
}
|
|
1466
1466
|
let Dn;
|
|
1467
|
-
function
|
|
1467
|
+
function Cr(e) {
|
|
1468
1468
|
Dn = e;
|
|
1469
1469
|
}
|
|
1470
1470
|
let wn;
|
|
1471
|
-
function
|
|
1471
|
+
function Ar(e) {
|
|
1472
1472
|
wn = e;
|
|
1473
1473
|
}
|
|
1474
1474
|
let Pn;
|
|
1475
|
-
function
|
|
1475
|
+
function Sr(e) {
|
|
1476
1476
|
Pn = e;
|
|
1477
1477
|
}
|
|
1478
1478
|
let Fn = null;
|
|
1479
|
-
const
|
|
1479
|
+
const Mr = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1480
1480
|
Fn = e;
|
|
1481
|
-
},
|
|
1481
|
+
}, Dr = /* @__NO_SIDE_EFFECTS__ */ () => Fn;
|
|
1482
1482
|
let jn = null;
|
|
1483
1483
|
const dn = (e) => {
|
|
1484
1484
|
jn = e;
|
|
1485
|
-
},
|
|
1485
|
+
}, wr = () => jn;
|
|
1486
1486
|
let fn = 0;
|
|
1487
|
-
function
|
|
1488
|
-
const t =
|
|
1487
|
+
function Pr(e = {}) {
|
|
1488
|
+
const t = re(e.onWarn) ? e.onWarn : Es, n = P(e.version) ? e.version : Lr, s = P(e.locale) || re(e.locale) ? e.locale : pt, l = re(s) ? pt : s, r = ce(e.fallbackLocale) || J(e.fallbackLocale) || P(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, c = J(e.messages) ? e.messages : At(l), u = J(e.datetimeFormats) ? e.datetimeFormats : At(l), m = J(e.numberFormats) ? e.numberFormats : At(l), p = de(ee(), e.modifiers, Rr()), N = e.pluralRules || ee(), L = re(e.missing) ? e.missing : null, O = ie(e.missingWarn) || _t(e.missingWarn) ? e.missingWarn : !0, w = ie(e.fallbackWarn) || _t(e.fallbackWarn) ? e.fallbackWarn : !0, V = !!e.fallbackFormat, A = !!e.unresolving, M = re(e.postTranslation) ? e.postTranslation : null, i = J(e.processor) ? e.processor : null, d = ie(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, T = !!e.escapeParameter, _ = re(e.messageCompiler) ? e.messageCompiler : Dn, D = re(e.messageResolver) ? e.messageResolver : wn || kr, S = re(e.localeFallbacker) ? e.localeFallbacker : Pn || gr, E = K(e.fallbackContext) ? e.fallbackContext : void 0, Z = e, h = K(Z.__datetimeFormatters) ? Z.__datetimeFormatters : /* @__PURE__ */ new Map(), b = K(Z.__numberFormatters) ? Z.__numberFormatters : /* @__PURE__ */ new Map(), R = K(Z.__meta) ? Z.__meta : {};
|
|
1489
1489
|
fn++;
|
|
1490
1490
|
const I = {
|
|
1491
1491
|
version: n,
|
|
1492
1492
|
cid: fn,
|
|
1493
1493
|
locale: s,
|
|
1494
|
-
fallbackLocale:
|
|
1494
|
+
fallbackLocale: r,
|
|
1495
1495
|
messages: c,
|
|
1496
1496
|
modifiers: p,
|
|
1497
1497
|
pluralRules: N,
|
|
@@ -1511,13 +1511,13 @@ function Pa(e = {}) {
|
|
|
1511
1511
|
onWarn: t,
|
|
1512
1512
|
__meta: R
|
|
1513
1513
|
};
|
|
1514
|
-
return I.datetimeFormats = u, I.numberFormats = m, I.__datetimeFormatters =
|
|
1514
|
+
return I.datetimeFormats = u, I.numberFormats = m, I.__datetimeFormatters = h, I.__numberFormatters = b, __INTLIFY_PROD_DEVTOOLS__ && dr(I, n, R), I;
|
|
1515
1515
|
}
|
|
1516
1516
|
const At = (e) => ({ [e]: ee() });
|
|
1517
1517
|
function Jt(e, t, n, s, l) {
|
|
1518
|
-
const { missing:
|
|
1519
|
-
if (
|
|
1520
|
-
const u =
|
|
1518
|
+
const { missing: r, onWarn: c } = e;
|
|
1519
|
+
if (r !== null) {
|
|
1520
|
+
const u = r(e, n, t, l);
|
|
1521
1521
|
return P(u) ? u : t;
|
|
1522
1522
|
} else
|
|
1523
1523
|
return t;
|
|
@@ -1526,20 +1526,20 @@ function Qe(e, t, n) {
|
|
|
1526
1526
|
const s = e;
|
|
1527
1527
|
s.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1528
1528
|
}
|
|
1529
|
-
function
|
|
1529
|
+
function Fr(e, t) {
|
|
1530
1530
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1532
|
+
function jr(e, t) {
|
|
1533
1533
|
const n = t.indexOf(e);
|
|
1534
1534
|
if (n === -1)
|
|
1535
1535
|
return !1;
|
|
1536
1536
|
for (let s = n + 1; s < t.length; s++)
|
|
1537
|
-
if (
|
|
1537
|
+
if (Fr(e, t[s]))
|
|
1538
1538
|
return !0;
|
|
1539
1539
|
return !1;
|
|
1540
1540
|
}
|
|
1541
1541
|
function _n(e, ...t) {
|
|
1542
|
-
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn:
|
|
1542
|
+
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: r, localeFallbacker: c } = e, { __datetimeFormatters: u } = e, [m, p, N, L] = Pt(...t), O = ie(N.missingWarn) ? N.missingWarn : e.missingWarn;
|
|
1543
1543
|
ie(N.fallbackWarn) ? N.fallbackWarn : e.fallbackWarn;
|
|
1544
1544
|
const w = !!N.part, V = $t(e, N), A = c(
|
|
1545
1545
|
e,
|
|
@@ -1583,7 +1583,7 @@ const Un = [
|
|
|
1583
1583
|
"fractionalSecondDigits"
|
|
1584
1584
|
];
|
|
1585
1585
|
function Pt(...e) {
|
|
1586
|
-
const [t, n, s, l] = e,
|
|
1586
|
+
const [t, n, s, l] = e, r = ee();
|
|
1587
1587
|
let c = ee(), u;
|
|
1588
1588
|
if (P(t)) {
|
|
1589
1589
|
const m = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
@@ -1604,19 +1604,19 @@ function Pt(...e) {
|
|
|
1604
1604
|
u = t;
|
|
1605
1605
|
else
|
|
1606
1606
|
throw Ce(Re.INVALID_ARGUMENT);
|
|
1607
|
-
return P(n) ?
|
|
1608
|
-
Un.includes(m) ? c[m] = n[m] :
|
|
1609
|
-
}), P(s) ?
|
|
1607
|
+
return P(n) ? r.key = n : J(n) && Object.keys(n).forEach((m) => {
|
|
1608
|
+
Un.includes(m) ? c[m] = n[m] : r[m] = n[m];
|
|
1609
|
+
}), P(s) ? r.locale = s : J(s) && (c = s), J(l) && (c = l), [r.key || "", u, r, c];
|
|
1610
1610
|
}
|
|
1611
1611
|
function pn(e, t, n) {
|
|
1612
1612
|
const s = e;
|
|
1613
1613
|
for (const l in n) {
|
|
1614
|
-
const
|
|
1615
|
-
s.__datetimeFormatters.has(
|
|
1614
|
+
const r = `${t}__${l}`;
|
|
1615
|
+
s.__datetimeFormatters.has(r) && s.__datetimeFormatters.delete(r);
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
1618
|
-
function
|
|
1619
|
-
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn:
|
|
1618
|
+
function gn(e, ...t) {
|
|
1619
|
+
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: r, localeFallbacker: c } = e, { __numberFormatters: u } = e, [m, p, N, L] = Ft(...t), O = ie(N.missingWarn) ? N.missingWarn : e.missingWarn;
|
|
1620
1620
|
ie(N.fallbackWarn) ? N.fallbackWarn : e.fallbackWarn;
|
|
1621
1621
|
const w = !!N.part, V = $t(e, N), A = c(
|
|
1622
1622
|
e,
|
|
@@ -1660,49 +1660,49 @@ const Vn = [
|
|
|
1660
1660
|
"trailingZeroDisplay"
|
|
1661
1661
|
];
|
|
1662
1662
|
function Ft(...e) {
|
|
1663
|
-
const [t, n, s, l] = e,
|
|
1663
|
+
const [t, n, s, l] = e, r = ee();
|
|
1664
1664
|
let c = ee();
|
|
1665
1665
|
if (!me(t))
|
|
1666
1666
|
throw Ce(Re.INVALID_ARGUMENT);
|
|
1667
1667
|
const u = t;
|
|
1668
|
-
return P(n) ?
|
|
1669
|
-
Vn.includes(m) ? c[m] = n[m] :
|
|
1670
|
-
}), P(s) ?
|
|
1668
|
+
return P(n) ? r.key = n : J(n) && Object.keys(n).forEach((m) => {
|
|
1669
|
+
Vn.includes(m) ? c[m] = n[m] : r[m] = n[m];
|
|
1670
|
+
}), P(s) ? r.locale = s : J(s) && (c = s), J(l) && (c = l), [r.key || "", u, r, c];
|
|
1671
1671
|
}
|
|
1672
1672
|
function bn(e, t, n) {
|
|
1673
1673
|
const s = e;
|
|
1674
1674
|
for (const l in n) {
|
|
1675
|
-
const
|
|
1676
|
-
s.__numberFormatters.has(
|
|
1675
|
+
const r = `${t}__${l}`;
|
|
1676
|
+
s.__numberFormatters.has(r) && s.__numberFormatters.delete(r);
|
|
1677
1677
|
}
|
|
1678
1678
|
}
|
|
1679
|
-
const
|
|
1680
|
-
function
|
|
1679
|
+
const Ur = (e) => e, Vr = (e) => "", Wr = "text", xr = (e) => e.length === 0 ? "" : Zt(e), Gr = vs;
|
|
1680
|
+
function hn(e, t) {
|
|
1681
1681
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1682
1682
|
}
|
|
1683
|
-
function
|
|
1683
|
+
function Xr(e) {
|
|
1684
1684
|
const t = me(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1685
1685
|
return e.named && (me(e.named.count) || me(e.named.n)) ? me(e.named.count) ? e.named.count : me(e.named.n) ? e.named.n : t : t;
|
|
1686
1686
|
}
|
|
1687
|
-
function
|
|
1687
|
+
function Yr(e, t) {
|
|
1688
1688
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1689
1689
|
}
|
|
1690
|
-
function
|
|
1691
|
-
const t = e.locale, n =
|
|
1692
|
-
me(e.pluralIndex) &&
|
|
1690
|
+
function Zr(e = {}) {
|
|
1691
|
+
const t = e.locale, n = Xr(e), s = K(e.pluralRules) && P(t) && re(e.pluralRules[t]) ? e.pluralRules[t] : hn, l = K(e.pluralRules) && P(t) && re(e.pluralRules[t]) ? hn : void 0, r = (i) => i[s(n, i.length, l)], c = e.list || [], u = (i) => c[i], m = e.named || ee();
|
|
1692
|
+
me(e.pluralIndex) && Yr(n, m);
|
|
1693
1693
|
const p = (i) => m[i];
|
|
1694
1694
|
function N(i, d) {
|
|
1695
|
-
const T =
|
|
1696
|
-
return T || (e.parent ? e.parent.message(i) :
|
|
1695
|
+
const T = re(e.messages) ? e.messages(i, !!d) : K(e.messages) ? e.messages[i] : !1;
|
|
1696
|
+
return T || (e.parent ? e.parent.message(i) : Vr);
|
|
1697
1697
|
}
|
|
1698
|
-
const L = (i) => e.modifiers ? e.modifiers[i] :
|
|
1698
|
+
const L = (i) => e.modifiers ? e.modifiers[i] : Ur, O = J(e.processor) && re(e.processor.normalize) ? e.processor.normalize : xr, w = J(e.processor) && re(e.processor.interpolate) ? e.processor.interpolate : Gr, V = J(e.processor) && P(e.processor.type) ? e.processor.type : Wr, M = {
|
|
1699
1699
|
list: u,
|
|
1700
1700
|
named: p,
|
|
1701
|
-
plural:
|
|
1701
|
+
plural: r,
|
|
1702
1702
|
linked: (i, ...d) => {
|
|
1703
1703
|
const [T, _] = d;
|
|
1704
1704
|
let D = "text", S = "";
|
|
1705
|
-
d.length === 1 ?
|
|
1705
|
+
d.length === 1 ? K(T) ? (S = T.modifier || S, D = T.type || D) : P(T) && (S = T || S) : d.length === 2 && (P(T) && (S = T || S), P(_) && (D = _ || D));
|
|
1706
1706
|
const E = N(i, !0)(M), Z = (
|
|
1707
1707
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1708
1708
|
D === "vnode" && ce(E) && S ? E[0] : E
|
|
@@ -1717,10 +1717,10 @@ function Za(e = {}) {
|
|
|
1717
1717
|
};
|
|
1718
1718
|
return M;
|
|
1719
1719
|
}
|
|
1720
|
-
const vn = () => "", ve = (e) =>
|
|
1720
|
+
const vn = () => "", ve = (e) => re(e);
|
|
1721
1721
|
function En(e, ...t) {
|
|
1722
|
-
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler:
|
|
1723
|
-
O &&
|
|
1722
|
+
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: r, fallbackLocale: c, messages: u } = e, [m, p] = jt(...t), N = ie(p.missingWarn) ? p.missingWarn : e.missingWarn, L = ie(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, O = ie(p.escapeParameter) ? p.escapeParameter : e.escapeParameter, w = !!p.resolvedMessage, V = P(p.default) || ie(p.default) ? ie(p.default) ? r ? m : () => m : p.default : n ? r ? m : () => m : null, A = n || V != null && (P(V) || re(V)), M = $t(e, p);
|
|
1723
|
+
O && Br(p);
|
|
1724
1724
|
let [i, d, T] = w ? [
|
|
1725
1725
|
m,
|
|
1726
1726
|
M,
|
|
@@ -1731,10 +1731,10 @@ function En(e, ...t) {
|
|
|
1731
1731
|
let S = !1;
|
|
1732
1732
|
const E = () => {
|
|
1733
1733
|
S = !0;
|
|
1734
|
-
}, Z = ve(_) ? _ :
|
|
1734
|
+
}, Z = ve(_) ? _ : xn(e, m, d, _, D, E);
|
|
1735
1735
|
if (S)
|
|
1736
1736
|
return _;
|
|
1737
|
-
const
|
|
1737
|
+
const h = Jr(e, d, T, p), b = Zr(h), R = Hr(e, Z, b), I = s ? s(R, m) : R;
|
|
1738
1738
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1739
1739
|
const F = {
|
|
1740
1740
|
timestamp: Date.now(),
|
|
@@ -1743,34 +1743,34 @@ function En(e, ...t) {
|
|
|
1743
1743
|
format: P(_) ? _ : ve(_) ? _.source : "",
|
|
1744
1744
|
message: I
|
|
1745
1745
|
};
|
|
1746
|
-
F.meta = de({}, e.__meta, /* @__PURE__ */
|
|
1746
|
+
F.meta = de({}, e.__meta, /* @__PURE__ */ Dr() || {}), fr(F);
|
|
1747
1747
|
}
|
|
1748
1748
|
return I;
|
|
1749
1749
|
}
|
|
1750
|
-
function
|
|
1751
|
-
ce(e.list) ? e.list = e.list.map((t) => P(t) ? tn(t) : t) :
|
|
1750
|
+
function Br(e) {
|
|
1751
|
+
ce(e.list) ? e.list = e.list.map((t) => P(t) ? tn(t) : t) : K(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1752
1752
|
P(e.named[t]) && (e.named[t] = tn(e.named[t]));
|
|
1753
1753
|
});
|
|
1754
1754
|
}
|
|
1755
|
-
function Wn(e, t, n, s, l,
|
|
1755
|
+
function Wn(e, t, n, s, l, r) {
|
|
1756
1756
|
const { messages: c, onWarn: u, messageResolver: m, localeFallbacker: p } = e, N = p(e, s, n);
|
|
1757
1757
|
let L = ee(), O, w = null;
|
|
1758
1758
|
const V = "translate";
|
|
1759
1759
|
for (let A = 0; A < N.length && (O = N[A], L = c[O] || ee(), (w = m(L, t)) === null && (w = L[t]), !(P(w) || Ze(w) || ve(w))); A++)
|
|
1760
|
-
if (!
|
|
1760
|
+
if (!jr(O, N)) {
|
|
1761
1761
|
const M = Jt(
|
|
1762
1762
|
e,
|
|
1763
1763
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1764
1764
|
t,
|
|
1765
1765
|
O,
|
|
1766
|
-
|
|
1766
|
+
r,
|
|
1767
1767
|
V
|
|
1768
1768
|
);
|
|
1769
1769
|
M !== t && (w = M);
|
|
1770
1770
|
}
|
|
1771
1771
|
return [w, O, L];
|
|
1772
1772
|
}
|
|
1773
|
-
function
|
|
1773
|
+
function xn(e, t, n, s, l, r) {
|
|
1774
1774
|
const { messageCompiler: c, warnHtmlMessage: u } = e;
|
|
1775
1775
|
if (ve(s)) {
|
|
1776
1776
|
const p = s;
|
|
@@ -1780,35 +1780,35 @@ function Gn(e, t, n, s, l, a) {
|
|
|
1780
1780
|
const p = () => s;
|
|
1781
1781
|
return p.locale = n, p.key = t, p;
|
|
1782
1782
|
}
|
|
1783
|
-
const m = c(s, $
|
|
1783
|
+
const m = c(s, $r(e, n, l, s, u, r));
|
|
1784
1784
|
return m.locale = n, m.key = t, m.source = s, m;
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1786
|
+
function Hr(e, t, n) {
|
|
1787
1787
|
return t(n);
|
|
1788
1788
|
}
|
|
1789
1789
|
function jt(...e) {
|
|
1790
1790
|
const [t, n, s] = e, l = ee();
|
|
1791
1791
|
if (!P(t) && !me(t) && !ve(t) && !Ze(t))
|
|
1792
1792
|
throw Ce(Re.INVALID_ARGUMENT);
|
|
1793
|
-
const
|
|
1794
|
-
return me(n) ? l.plural = n : P(n) ? l.default = n : J(n) && !bt(n) ? l.named = n : ce(n) && (l.list = n), me(s) ? l.plural = s : P(s) ? l.default = s : J(s) && de(l, s), [
|
|
1793
|
+
const r = me(t) ? String(t) : (ve(t), t);
|
|
1794
|
+
return me(n) ? l.plural = n : P(n) ? l.default = n : J(n) && !bt(n) ? l.named = n : ce(n) && (l.list = n), me(s) ? l.plural = s : P(s) ? l.default = s : J(s) && de(l, s), [r, l];
|
|
1795
1795
|
}
|
|
1796
|
-
function $
|
|
1796
|
+
function $r(e, t, n, s, l, r) {
|
|
1797
1797
|
return {
|
|
1798
1798
|
locale: t,
|
|
1799
1799
|
key: n,
|
|
1800
1800
|
warnHtmlMessage: l,
|
|
1801
1801
|
onError: (c) => {
|
|
1802
|
-
throw
|
|
1802
|
+
throw r && r(c), c;
|
|
1803
1803
|
},
|
|
1804
1804
|
onCacheKey: (c) => fs(t, n, c)
|
|
1805
1805
|
};
|
|
1806
1806
|
}
|
|
1807
|
-
function
|
|
1808
|
-
const { modifiers: l, pluralRules:
|
|
1807
|
+
function Jr(e, t, n, s) {
|
|
1808
|
+
const { modifiers: l, pluralRules: r, messageResolver: c, fallbackLocale: u, fallbackWarn: m, missingWarn: p, fallbackContext: N } = e, O = {
|
|
1809
1809
|
locale: t,
|
|
1810
1810
|
modifiers: l,
|
|
1811
|
-
pluralRules:
|
|
1811
|
+
pluralRules: r,
|
|
1812
1812
|
messages: (w, V) => {
|
|
1813
1813
|
let A = c(n, w);
|
|
1814
1814
|
if (A == null && (N || V)) {
|
|
@@ -1825,7 +1825,7 @@ function Ja(e, t, n, s) {
|
|
|
1825
1825
|
}
|
|
1826
1826
|
if (P(A) || Ze(A)) {
|
|
1827
1827
|
let M = !1;
|
|
1828
|
-
const d =
|
|
1828
|
+
const d = xn(e, w, t, A, w, () => {
|
|
1829
1829
|
M = !0;
|
|
1830
1830
|
});
|
|
1831
1831
|
return M ? vn : d;
|
|
@@ -1834,15 +1834,15 @@ function Ja(e, t, n, s) {
|
|
|
1834
1834
|
};
|
|
1835
1835
|
return e.processor && (O.processor = e.processor), s.list && (O.list = s.list), s.named && (O.named = s.named), me(s.plural) && (O.pluralIndex = s.plural), O;
|
|
1836
1836
|
}
|
|
1837
|
-
|
|
1838
|
-
var za = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_5ff3531e-a11c-4bff-9bc2-baec05455390", npm_package_devDependencies__types_node: "^18.17.17", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", npm_package_devDependencies_vitest: "^1.2.0", USER: "runner", npm_config_always_auth: "", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v24.5.0 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.16", npm_package_devDependencies_vue_i18n: "10.0.5", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_5ff3531e-a11c-4bff-9bc2-baec05455390", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.2.0", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_files_0: "dist", npm_package_devDependencies_eslint_import_resolver_typescript: "^4.4.4", HOME: "/home/runner", npm_package_devDependencies__eslint_js: "^9.39.2", npm_package_devDependencies__typescript_eslint_parser: "^8.52.0", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_devDependencies_eslint_config_prettier: "^10.1.8", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.5.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "^1.29.10", npm_package_devDependencies_code_inspector_plugin: "^0.20.16", npm_package_devDependencies_npm_run_all2: "^6.0.6", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1867", ACTIONS_ORCHESTRATION_ID: "40785e69-6003-48d8-af78-8d42c8c97343.publish.publish.__default", npm_package_dependencies__feedmepos_ui_library: "^1.10.6", npm_package_dependencies_dayjs: "^1.11.10", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "VITE_TARGET_ENV=dev pnpm build:mf && pnpm build:dts", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.9.3", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^2.0.6", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260607.184.1", npm_package_scripts_dev: "vite", npm_package_devDependencies_prettier: "^3.7.4", npm_package_devDependencies_sass_embedded: "^1.93.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_devDependencies__vue_tsconfig: "^0.4.0", npm_package_devDependencies_eslint_plugin_import: "^2.32.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:15551", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.16", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^8.52.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.11/x64", GITHUB_RUN_ID: "27624720475", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "8aceaa529e8f472c1e110db5e8fd1c5fa7e64962", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/main", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6M31dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3ODE2NDIyMDAsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc4MTYyMDAwMCwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjMxMTA3YTRiLTJmYTEtNWE2Zi1iZjBjLTMwYjk5MzRjOGRkMiIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc4MTYxOTcwMCwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI4MTY4MzA4MjgxNFwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiNTg1MGMwNzlhYmVhY2JmZmFiNDU5NGJhMWE3Y2YzMTM0NjZkNzQzM1wiLFwicmVmXCI6XCJyZWZzL2hlYWRzL21haW5cIixcInJlZl9wcm90ZWN0ZWRcIjpcInRydWVcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIyNzYyNDcyMDQ3NVwiLFwicnVuX251bWJlclwiOlwiMTE3XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiOGFjZWFhNTI5ZThmNDcyYzFlMTEwZGI1ZThmZDFjNWZhN2U2NDk2MlwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvbWFpblwiLFwid29ya2Zsb3dfc2hhXCI6XCI4YWNlYWE1MjllOGY0NzJjMWUxMTBkYjVlOGZkMWM1ZmE3ZTY0OTYyXCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9tYWluIiwib3JjaF9pZCI6IjQwNzg1ZTY5LTYwMDMtNDhkOC1hZjc4LThkNDJjOGM5NzM0My5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiNDA3ODVlNjktNjAwMy00OGQ4LWFmNzgtOGQ0MmM4Yzk3MzQzIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMjc2MjQ3MjA0NzUiLCJydW5fbnVtYmVyIjoiMTE3IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDA3ODA1MiIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjQwNzg1ZTY5LTYwMDMtNDhkOC1hZjc4LThkNDJjOGM5NzM0MzozMTEwN2E0Yi0yZmExLTVhNmYtYmYwYy0zMGI5OTM0YzhkZDIgQWN0aW9ucy5SdW5uZXI6NDA3ODVlNjktNjAwMy00OGQ4LWFmNzgtOGQ0MmM4Yzk3MzQzOjMxMTA3YTRiLTJmYTEtNWE2Zi1iZjBjLTMwYjk5MzRjOGRkMiBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czo0MDc4NWU2OS02MDAzLTQ4ZDgtYWY3OC04ZDQyYzhjOTczNDM6MzExMDdhNGItMmZhMS01YTZmLWJmMGMtMzBiOTkzNGM4ZGQyIGdlbmVyYXRlX2lkX3Rva2VuOjQwNzg1ZTY5LTYwMDMtNDhkOC1hZjc4LThkNDJjOGM5NzM0MzozMTEwN2E0Yi0yZmExLTVhNmYtYmYwYy0zMGI5OTM0YzhkZDIgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiI4YWNlYWE1MjllOGY0NzJjMWUxMTBkYjVlOGZkMWM1ZmE3ZTY0OTYyIiwidHJ1c3RfdGllciI6IjEifQ.huQqHS6UHA7uANzC4GzogochpKiqCGkCQxehxWHSi2oO2oQU6588bVfUu4HZNRZr5mYuc815X7NyvQN4W6HnI1OkDrD4iC1EZ4gyT4Ok9ta3WAQD4LXRSQjq0KnTwTwYZzyyCsMR3Fuqd8viq7pzLoP30ZOW3q2cHcSLuwNg7QXuhU_nU2_SZJtLmZW3J1RwLHqnHOzO0JdsWufG_oYR7Y7QQXY4J8ezu433jItBWh-AZI74iEnGQxabYhYGeFS_VLeDw_YXFdVqvYpJXm06ftORNx6pueXdlN-Ja_PYLaTCUevpZ3ajXIf0c9sZmPz7YYlsV-6m7MModl-FSQA_rw", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_package_dependencies_axios: "^1.7.7", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/24.5.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_2fdba5f8-228a-433f-8292-3375ab72f8bc", INVOCATION_ID: "f535e5a3638b40c1adcf7bf05e62ad2a", 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: "117", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --access public --tag latest --no-git-checks", npm_package_scripts_publish_npm_beta: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --access public --tag beta --no-git-checks", npm_package_scripts_publish_github: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --tag latest --no-git-checks", npm_package_scripts_publish_github_beta: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --tag beta --no-git-checks", npm_config_frozen_lockfile: "", npm_package_devDependencies__vitest_ui: "^1.2.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies__vue_eslint_config_typescript: "^12.0.0", npm_package_devDependencies_eslint: "^9.39.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000078052", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "^2.14.36", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__casl_ability: "^3.4.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^4.0.0", npm_package_devDependencies__vue_eslint_config_prettier: "^8.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.0.21", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts", npm_package_dependencies__feedmepos_hrm_permission: "workspace:*", npm_package_devDependencies__rushstack_eslint_patch: "^1.3.3", npm_package_devDependencies_eslint_plugin_unused_imports: "^4.3.0", npm_package_devDependencies_jsdom: "^24.0.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "true", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_uuid: "^10.0.0", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "8aceaa529e8f472c1e110db5e8fd1c5fa7e64962", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.2", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_devDependencies_globals: "^16.5.0", npm_package_scripts_format: "prettier --write src/", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_5ff3531e-a11c-4bff-9bc2-baec05455390", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_package_devDependencies_vue_eslint_parser: "^10.2.0", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-2-azure-eastus.actions.githubusercontent.com/3//idtoken/40785e69-6003-48d8-af78-8d42c8c97343/31107a4b-2fa1-5a6f-bf0c-30b9934c8dd2?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_5ff3531e-a11c-4bff-9bc2-baec05455390", npm_package_exports___types: "./dist/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_feature_flag: "^0.0.15", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_devDependencies_eslint_plugin_vue: "^9.33.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_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_5ff3531e-a11c-4bff-9bc2-baec05455390", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1839
|
-
const
|
|
1840
|
-
function
|
|
1837
|
+
Bs();
|
|
1838
|
+
var Kr = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_26ac44d2-73a1-4bf3-a428-23b9d7541802", npm_package_devDependencies__types_node: "^18.17.17", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", npm_package_devDependencies_vitest: "^1.2.0", USER: "runner", npm_config_always_auth: "", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v24.5.0 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.16", npm_package_devDependencies_vue_i18n: "10.0.5", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_26ac44d2-73a1-4bf3-a428-23b9d7541802", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.2.0", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_files_0: "dist", npm_package_devDependencies_eslint_import_resolver_typescript: "^4.4.4", HOME: "/home/runner", npm_package_devDependencies__eslint_js: "^9.39.2", npm_package_devDependencies__typescript_eslint_parser: "^8.52.0", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_devDependencies_eslint_config_prettier: "^10.1.8", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.5.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "^1.29.10", npm_package_devDependencies_code_inspector_plugin: "^0.20.16", npm_package_devDependencies_npm_run_all2: "^6.0.6", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1883", ACTIONS_ORCHESTRATION_ID: "0d9d02b8-3f15-4fa9-b9f3-de1b719e9732.publish.publish.__default", npm_package_dependencies__feedmepos_ui_library: "^1.10.6", npm_package_dependencies_dayjs: "^1.11.10", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "VITE_TARGET_ENV=dev pnpm build:mf && pnpm build:dts", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.9.3", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^2.0.6", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260615.205.1", npm_package_scripts_dev: "vite", npm_package_devDependencies_prettier: "^3.7.4", npm_package_devDependencies_sass_embedded: "^1.93.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_devDependencies__vue_tsconfig: "^0.4.0", npm_package_devDependencies_eslint_plugin_import: "^2.32.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:15604", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.16", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^8.52.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.11/x64", GITHUB_RUN_ID: "27939375675", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "bcf803e775981f71e66da812ee84f5f2f05d70b3", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/main", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6M31dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3ODIxMzg3NjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc4MjExNjU2NywiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjQxMmUyNTI0LTc5MDMtNWE4Ny1hNWI5LTI3Y2M5NTA0ZjIxMCIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc4MjExNjI2Nywib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI4MjY2ODc2NDg0M1wiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiNzBiZjQxYTgyZjRmNmRkM2JiZDE4NjJiMjY4YjFlMDkxZTM5NjA5Y1wiLFwicmVmXCI6XCJyZWZzL2hlYWRzL21haW5cIixcInJlZl9wcm90ZWN0ZWRcIjpcInRydWVcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIyNzkzOTM3NTY3NVwiLFwicnVuX251bWJlclwiOlwiMTIwXCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiYmNmODAzZTc3NTk4MWY3MWU2NmRhODEyZWU4NGY1ZjJmMDVkNzBiM1wiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvbWFpblwiLFwid29ya2Zsb3dfc2hhXCI6XCJiY2Y4MDNlNzc1OTgxZjcxZTY2ZGE4MTJlZTg0ZjVmMmYwNWQ3MGIzXCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9tYWluIiwib3JjaF9pZCI6IjBkOWQwMmI4LTNmMTUtNGZhOS1iOWYzLWRlMWI3MTllOTczMi5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiMGQ5ZDAyYjgtM2YxNS00ZmE5LWI5ZjMtZGUxYjcxOWU5NzMyIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMjc5MzkzNzU2NzUiLCJydW5fbnVtYmVyIjoiMTIwIiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDA3OTQ1NSIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjBkOWQwMmI4LTNmMTUtNGZhOS1iOWYzLWRlMWI3MTllOTczMjo0MTJlMjUyNC03OTAzLTVhODctYTViOS0yN2NjOTUwNGYyMTAgQWN0aW9ucy5SdW5uZXI6MGQ5ZDAyYjgtM2YxNS00ZmE5LWI5ZjMtZGUxYjcxOWU5NzMyOjQxMmUyNTI0LTc5MDMtNWE4Ny1hNWI5LTI3Y2M5NTA0ZjIxMCBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowZDlkMDJiOC0zZjE1LTRmYTktYjlmMy1kZTFiNzE5ZTk3MzI6NDEyZTI1MjQtNzkwMy01YTg3LWE1YjktMjdjYzk1MDRmMjEwIGdlbmVyYXRlX2lkX3Rva2VuOjBkOWQwMmI4LTNmMTUtNGZhOS1iOWYzLWRlMWI3MTllOTczMjo0MTJlMjUyNC03OTAzLTVhODctYTViOS0yN2NjOTUwNGYyMTAgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiJiY2Y4MDNlNzc1OTgxZjcxZTY2ZGE4MTJlZTg0ZjVmMmYwNWQ3MGIzIiwidHJ1c3RfdGllciI6IjEifQ.xYXxKxYrRnGVHFWL7UVo7Xi_8cAZg6hOfOJpcFn0_gIl6BhU1q2t9lGXAHAUR6-OOxMCnybLWV_344x4qtm7rjgDpWr-Fq5wysd2ASWIcASDeNzmDWPYUdrABPx9oOyZFxuCaNGwLbcBVwQCWujQB3xDz2gVPS-7pbAkXaj0YVIec1TG4g1Oliuv6gGtvwSZIWCqq1yCzrlZQJZ_TTybIHMxPntKY9iWpKQzJoY0HieV_z7k5BVlQOybSuHMBzycsn_WwIC2ZB1X825xeITQpGgsR4rdTK2XxmfJMTM9KJHv39MHR4yYV8R6GBPou14teEH8RW0GC_TgZfROFTnbhA", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_package_dependencies_axios: "^1.7.7", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/24.5.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_5d0d7148-9f2c-4984-a6fb-d3ef36de67a4", INVOCATION_ID: "7c8ffdbf2c824be3807b3e08040c18a7", 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: "120", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --access public --tag latest --no-git-checks", npm_package_scripts_publish_npm_beta: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --access public --tag beta --no-git-checks", npm_package_scripts_publish_github: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --tag latest --no-git-checks", npm_package_scripts_publish_github_beta: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --tag beta --no-git-checks", npm_config_frozen_lockfile: "", npm_package_devDependencies__vitest_ui: "^1.2.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies__vue_eslint_config_typescript: "^12.0.0", npm_package_devDependencies_eslint: "^9.39.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000079455", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "^2.14.36", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__casl_ability: "^3.4.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^4.0.0", npm_package_devDependencies__vue_eslint_config_prettier: "^8.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.0.23-dev", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts", npm_package_dependencies__feedmepos_hrm_permission: "workspace:*", npm_package_devDependencies__rushstack_eslint_patch: "^1.3.3", npm_package_devDependencies_eslint_plugin_unused_imports: "^4.3.0", npm_package_devDependencies_jsdom: "^24.0.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "true", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_uuid: "^10.0.0", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "bcf803e775981f71e66da812ee84f5f2f05d70b3", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.2", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", npm_package_devDependencies_globals: "^16.5.0", npm_package_scripts_format: "prettier --write src/", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_26ac44d2-73a1-4bf3-a428-23b9d7541802", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_package_devDependencies_vue_eslint_parser: "^10.2.0", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-3-azure-eastus.actions.githubusercontent.com/102//idtoken/0d9d02b8-3f15-4fa9-b9f3-de1b719e9732/412e2524-7903-5a87-a5b9-27cc9504f210?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_26ac44d2-73a1-4bf3-a428-23b9d7541802", npm_package_exports___types: "./dist/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_feature_flag: "^0.0.15", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_devDependencies_eslint_plugin_vue: "^9.33.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_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_26ac44d2-73a1-4bf3-a428-23b9d7541802", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1839
|
+
const zr = "10.0.5";
|
|
1840
|
+
function Qr() {
|
|
1841
1841
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Fe().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Fe().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Fe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Fe().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1842
1842
|
}
|
|
1843
|
-
const
|
|
1843
|
+
const Be = {
|
|
1844
1844
|
// composer module errors
|
|
1845
|
-
UNEXPECTED_RETURN_TYPE:
|
|
1845
|
+
UNEXPECTED_RETURN_TYPE: pr,
|
|
1846
1846
|
// 24
|
|
1847
1847
|
// legacy module errors
|
|
1848
1848
|
INVALID_ARGUMENT: 25,
|
|
@@ -1854,66 +1854,66 @@ const He = {
|
|
|
1854
1854
|
UNEXPECTED_ERROR: 32
|
|
1855
1855
|
};
|
|
1856
1856
|
function nt(e, ...t) {
|
|
1857
|
-
return
|
|
1857
|
+
return ht(e, null, void 0);
|
|
1858
1858
|
}
|
|
1859
|
-
const Ut = /* @__PURE__ */ je("__translateVNode"), Vt = /* @__PURE__ */ je("__datetimeParts"), Wt = /* @__PURE__ */ je("__numberParts"),
|
|
1859
|
+
const Ut = /* @__PURE__ */ je("__translateVNode"), Vt = /* @__PURE__ */ je("__datetimeParts"), Wt = /* @__PURE__ */ je("__numberParts"), qr = je("__setPluralRules"), Gn = /* @__PURE__ */ je("__injectWithOption"), xt = /* @__PURE__ */ je("__dispose");
|
|
1860
1860
|
function st(e) {
|
|
1861
|
-
if (!
|
|
1861
|
+
if (!K(e))
|
|
1862
1862
|
return e;
|
|
1863
1863
|
for (const t in e)
|
|
1864
1864
|
if (ye(e, t))
|
|
1865
1865
|
if (!t.includes("."))
|
|
1866
|
-
|
|
1866
|
+
K(e[t]) && st(e[t]);
|
|
1867
1867
|
else {
|
|
1868
1868
|
const n = t.split("."), s = n.length - 1;
|
|
1869
|
-
let l = e,
|
|
1869
|
+
let l = e, r = !1;
|
|
1870
1870
|
for (let c = 0; c < s; c++) {
|
|
1871
|
-
if (n[c] in l || (l[n[c]] = ee()), !
|
|
1872
|
-
|
|
1871
|
+
if (n[c] in l || (l[n[c]] = ee()), !K(l[n[c]])) {
|
|
1872
|
+
r = !0;
|
|
1873
1873
|
break;
|
|
1874
1874
|
}
|
|
1875
1875
|
l = l[n[c]];
|
|
1876
1876
|
}
|
|
1877
|
-
|
|
1877
|
+
r || (l[n[s]] = e[t], delete e[t]), K(l[n[s]]) && st(l[n[s]]);
|
|
1878
1878
|
}
|
|
1879
1879
|
return e;
|
|
1880
1880
|
}
|
|
1881
|
-
function
|
|
1882
|
-
const { messages: n, __i18n: s, messageResolver: l, flatJson:
|
|
1881
|
+
function Xn(e, t) {
|
|
1882
|
+
const { messages: n, __i18n: s, messageResolver: l, flatJson: r } = t, c = J(n) ? n : ce(s) ? ee() : { [e]: ee() };
|
|
1883
1883
|
if (ce(s) && s.forEach((u) => {
|
|
1884
1884
|
if ("locale" in u && "resource" in u) {
|
|
1885
1885
|
const { locale: m, resource: p } = u;
|
|
1886
1886
|
m ? (c[m] = c[m] || ee(), ft(p, c[m])) : ft(p, c);
|
|
1887
1887
|
} else
|
|
1888
1888
|
P(u) && ft(JSON.parse(u), c);
|
|
1889
|
-
}), l == null &&
|
|
1889
|
+
}), l == null && r)
|
|
1890
1890
|
for (const u in c)
|
|
1891
1891
|
ye(c, u) && st(c[u]);
|
|
1892
1892
|
return c;
|
|
1893
1893
|
}
|
|
1894
|
-
function
|
|
1894
|
+
function Yn(e) {
|
|
1895
1895
|
return e.type;
|
|
1896
1896
|
}
|
|
1897
|
-
function
|
|
1898
|
-
let s =
|
|
1899
|
-
"__i18nGlobal" in n && (s =
|
|
1897
|
+
function ea(e, t, n) {
|
|
1898
|
+
let s = K(t.messages) ? t.messages : ee();
|
|
1899
|
+
"__i18nGlobal" in n && (s = Xn(e.locale.value, {
|
|
1900
1900
|
messages: s,
|
|
1901
1901
|
__i18n: n.__i18nGlobal
|
|
1902
1902
|
}));
|
|
1903
1903
|
const l = Object.keys(s);
|
|
1904
|
-
l.length && l.forEach((
|
|
1905
|
-
e.mergeLocaleMessage(
|
|
1904
|
+
l.length && l.forEach((r) => {
|
|
1905
|
+
e.mergeLocaleMessage(r, s[r]);
|
|
1906
1906
|
});
|
|
1907
1907
|
{
|
|
1908
|
-
if (
|
|
1909
|
-
const
|
|
1910
|
-
|
|
1908
|
+
if (K(t.datetimeFormats)) {
|
|
1909
|
+
const r = Object.keys(t.datetimeFormats);
|
|
1910
|
+
r.length && r.forEach((c) => {
|
|
1911
1911
|
e.mergeDateTimeFormat(c, t.datetimeFormats[c]);
|
|
1912
1912
|
});
|
|
1913
1913
|
}
|
|
1914
|
-
if (
|
|
1915
|
-
const
|
|
1916
|
-
|
|
1914
|
+
if (K(t.numberFormats)) {
|
|
1915
|
+
const r = Object.keys(t.numberFormats);
|
|
1916
|
+
r.length && r.forEach((c) => {
|
|
1917
1917
|
e.mergeNumberFormat(c, t.numberFormats[c]);
|
|
1918
1918
|
});
|
|
1919
1919
|
}
|
|
@@ -1922,33 +1922,33 @@ function er(e, t, n) {
|
|
|
1922
1922
|
function In(e) {
|
|
1923
1923
|
return _e(Qn, null, e, 0);
|
|
1924
1924
|
}
|
|
1925
|
-
const yn = "__INTLIFY_META__", Nn = () => [],
|
|
1925
|
+
const yn = "__INTLIFY_META__", Nn = () => [], ta = () => !1;
|
|
1926
1926
|
let Tn = 0;
|
|
1927
1927
|
function kn(e) {
|
|
1928
|
-
return (t, n, s, l) => e(n, s,
|
|
1928
|
+
return (t, n, s, l) => e(n, s, Gt() || void 0, l);
|
|
1929
1929
|
}
|
|
1930
|
-
const
|
|
1931
|
-
const e =
|
|
1930
|
+
const na = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1931
|
+
const e = Gt();
|
|
1932
1932
|
let t = null;
|
|
1933
|
-
return e && (t =
|
|
1933
|
+
return e && (t = Yn(e)[yn]) ? { [yn]: t } : null;
|
|
1934
1934
|
};
|
|
1935
|
-
function
|
|
1936
|
-
const { __root: t, __injectWithOption: n } = e, s = t === void 0, l = e.flatJson,
|
|
1935
|
+
function sa(e = {}) {
|
|
1936
|
+
const { __root: t, __injectWithOption: n } = e, s = t === void 0, l = e.flatJson, r = qt ? gt : Kn;
|
|
1937
1937
|
let c = ie(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1938
|
-
const u =
|
|
1938
|
+
const u = r(
|
|
1939
1939
|
// prettier-ignore
|
|
1940
1940
|
t && c ? t.locale.value : P(e.locale) ? e.locale : pt
|
|
1941
|
-
), m =
|
|
1941
|
+
), m = r(
|
|
1942
1942
|
// prettier-ignore
|
|
1943
1943
|
t && c ? t.fallbackLocale.value : P(e.fallbackLocale) || ce(e.fallbackLocale) || J(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
1944
|
-
), p =
|
|
1945
|
-
let O = t ? t.missingWarn : ie(e.missingWarn) || _t(e.missingWarn) ? e.missingWarn : !0, w = t ? t.fallbackWarn : ie(e.fallbackWarn) || _t(e.fallbackWarn) ? e.fallbackWarn : !0, V = t ? t.fallbackRoot : ie(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.fallbackFormat, M =
|
|
1944
|
+
), p = r(Xn(u.value, e)), N = r(J(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), L = r(J(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
|
|
1945
|
+
let O = t ? t.missingWarn : ie(e.missingWarn) || _t(e.missingWarn) ? e.missingWarn : !0, w = t ? t.fallbackWarn : ie(e.fallbackWarn) || _t(e.fallbackWarn) ? e.fallbackWarn : !0, V = t ? t.fallbackRoot : ie(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.fallbackFormat, M = re(e.missing) ? e.missing : null, i = re(e.missing) ? kn(e.missing) : null, d = re(e.postTranslation) ? e.postTranslation : null, T = t ? t.warnHtmlMessage : ie(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, _ = !!e.escapeParameter;
|
|
1946
1946
|
const D = t ? t.modifiers : J(e.modifiers) ? e.modifiers : {};
|
|
1947
1947
|
let S = e.pluralRules || t && t.pluralRules, E;
|
|
1948
1948
|
E = (() => {
|
|
1949
1949
|
s && dn(null);
|
|
1950
1950
|
const f = {
|
|
1951
|
-
version:
|
|
1951
|
+
version: zr,
|
|
1952
1952
|
locale: u.value,
|
|
1953
1953
|
fallbackLocale: m.value,
|
|
1954
1954
|
messages: p.value,
|
|
@@ -1967,10 +1967,10 @@ function sr(e = {}) {
|
|
|
1967
1967
|
__meta: { framework: "vue" }
|
|
1968
1968
|
};
|
|
1969
1969
|
f.datetimeFormats = N.value, f.numberFormats = L.value, f.__datetimeFormatters = J(E) ? E.__datetimeFormatters : void 0, f.__numberFormatters = J(E) ? E.__numberFormatters : void 0;
|
|
1970
|
-
const k =
|
|
1970
|
+
const k = Pr(f);
|
|
1971
1971
|
return s && dn(k), k;
|
|
1972
1972
|
})(), Qe(E, u.value, m.value);
|
|
1973
|
-
function
|
|
1973
|
+
function h() {
|
|
1974
1974
|
return [
|
|
1975
1975
|
u.value,
|
|
1976
1976
|
m.value,
|
|
@@ -1989,9 +1989,9 @@ function sr(e = {}) {
|
|
|
1989
1989
|
set: (f) => {
|
|
1990
1990
|
m.value = f, E.fallbackLocale = m.value, Qe(E, u.value, f);
|
|
1991
1991
|
}
|
|
1992
|
-
}), I = q(() => p.value), F = /* @__PURE__ */ q(() => N.value),
|
|
1992
|
+
}), I = q(() => p.value), F = /* @__PURE__ */ q(() => N.value), G = /* @__PURE__ */ q(() => L.value);
|
|
1993
1993
|
function y() {
|
|
1994
|
-
return
|
|
1994
|
+
return re(d) ? d : null;
|
|
1995
1995
|
}
|
|
1996
1996
|
function C(f) {
|
|
1997
1997
|
d = f, E.postTranslation = f;
|
|
@@ -1999,25 +1999,25 @@ function sr(e = {}) {
|
|
|
1999
1999
|
function v() {
|
|
2000
2000
|
return M;
|
|
2001
2001
|
}
|
|
2002
|
-
function
|
|
2002
|
+
function x(f) {
|
|
2003
2003
|
f !== null && (i = kn(f)), M = f, E.missing = i;
|
|
2004
2004
|
}
|
|
2005
|
-
const W = (f, k, ne, le, Pe,
|
|
2006
|
-
|
|
2005
|
+
const W = (f, k, ne, le, Pe, rt) => {
|
|
2006
|
+
h();
|
|
2007
2007
|
let We;
|
|
2008
2008
|
try {
|
|
2009
|
-
|
|
2009
|
+
Kr.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (E.fallbackContext = t ? wr() : void 0), We = f(E);
|
|
2010
2010
|
} finally {
|
|
2011
2011
|
__INTLIFY_PROD_DEVTOOLS__, s || (E.fallbackContext = void 0);
|
|
2012
2012
|
}
|
|
2013
2013
|
if (ne !== "translate exists" && // for not `te` (e.g `t`)
|
|
2014
2014
|
me(We) && We === vt || ne === "translate exists" && !We) {
|
|
2015
|
-
const [$n,
|
|
2015
|
+
const [$n, Ga] = k();
|
|
2016
2016
|
return t && V ? le(t) : Pe($n);
|
|
2017
2017
|
} else {
|
|
2018
|
-
if (
|
|
2018
|
+
if (rt(We))
|
|
2019
2019
|
return We;
|
|
2020
|
-
throw nt(
|
|
2020
|
+
throw nt(Be.UNEXPECTED_RETURN_TYPE);
|
|
2021
2021
|
}
|
|
2022
2022
|
};
|
|
2023
2023
|
function j(...f) {
|
|
@@ -2025,20 +2025,20 @@ function sr(e = {}) {
|
|
|
2025
2025
|
}
|
|
2026
2026
|
function te(...f) {
|
|
2027
2027
|
const [k, ne, le] = f;
|
|
2028
|
-
if (le && !
|
|
2029
|
-
throw nt(
|
|
2028
|
+
if (le && !K(le))
|
|
2029
|
+
throw nt(Be.INVALID_ARGUMENT);
|
|
2030
2030
|
return j(k, ne, de({ resolvedMessage: !0 }, le || {}));
|
|
2031
2031
|
}
|
|
2032
|
-
function
|
|
2032
|
+
function B(...f) {
|
|
2033
2033
|
return W((k) => Reflect.apply(_n, null, [k, ...f]), () => Pt(...f), "datetime format", (k) => Reflect.apply(k.d, k, [...f]), () => un, (k) => P(k));
|
|
2034
2034
|
}
|
|
2035
2035
|
function be(...f) {
|
|
2036
|
-
return W((k) => Reflect.apply(
|
|
2036
|
+
return W((k) => Reflect.apply(gn, null, [k, ...f]), () => Ft(...f), "number format", (k) => Reflect.apply(k.n, k, [...f]), () => un, (k) => P(k));
|
|
2037
2037
|
}
|
|
2038
2038
|
function fe(f) {
|
|
2039
2039
|
return f.map((k) => P(k) || me(k) || ie(k) ? In(String(k)) : k);
|
|
2040
2040
|
}
|
|
2041
|
-
const
|
|
2041
|
+
const X = {
|
|
2042
2042
|
normalize: fe,
|
|
2043
2043
|
interpolate: (f) => f,
|
|
2044
2044
|
type: "vnode"
|
|
@@ -2048,7 +2048,7 @@ function sr(e = {}) {
|
|
|
2048
2048
|
let ne;
|
|
2049
2049
|
const le = k;
|
|
2050
2050
|
try {
|
|
2051
|
-
le.processor =
|
|
2051
|
+
le.processor = X, ne = Reflect.apply(En, null, [le, ...f]);
|
|
2052
2052
|
} finally {
|
|
2053
2053
|
le.processor = null;
|
|
2054
2054
|
}
|
|
@@ -2056,7 +2056,7 @@ function sr(e = {}) {
|
|
|
2056
2056
|
}, () => jt(...f), "translate", (k) => k[Ut](...f), (k) => [In(k)], (k) => ce(k));
|
|
2057
2057
|
}
|
|
2058
2058
|
function $e(...f) {
|
|
2059
|
-
return W((k) => Reflect.apply(
|
|
2059
|
+
return W((k) => Reflect.apply(gn, null, [k, ...f]), () => Ft(...f), "number format", (k) => k[Wt](...f), Nn, (k) => P(k) || ce(k));
|
|
2060
2060
|
}
|
|
2061
2061
|
function Je(...f) {
|
|
2062
2062
|
return W((k) => Reflect.apply(_n, null, [k, ...f]), () => Pt(...f), "datetime format", (k) => k[Vt](...f), Nn, (k) => P(k) || ce(k));
|
|
@@ -2070,21 +2070,21 @@ function sr(e = {}) {
|
|
|
2070
2070
|
return !1;
|
|
2071
2071
|
const ne = P(k) ? k : u.value, le = Ue(ne), Pe = E.messageResolver(le, f);
|
|
2072
2072
|
return Ze(Pe) || ve(Pe) || P(Pe);
|
|
2073
|
-
}, () => [f], "translate exists", (ne) => Reflect.apply(ne.te, ne, [f, k]),
|
|
2073
|
+
}, () => [f], "translate exists", (ne) => Reflect.apply(ne.te, ne, [f, k]), ta, (ne) => ie(ne));
|
|
2074
2074
|
}
|
|
2075
2075
|
function Nt(f) {
|
|
2076
2076
|
let k = null;
|
|
2077
2077
|
const ne = Mn(E, m.value, u.value);
|
|
2078
2078
|
for (let le = 0; le < ne.length; le++) {
|
|
2079
|
-
const Pe = p.value[ne[le]] || {},
|
|
2080
|
-
if (
|
|
2081
|
-
k =
|
|
2079
|
+
const Pe = p.value[ne[le]] || {}, rt = E.messageResolver(Pe, f);
|
|
2080
|
+
if (rt != null) {
|
|
2081
|
+
k = rt;
|
|
2082
2082
|
break;
|
|
2083
2083
|
}
|
|
2084
2084
|
}
|
|
2085
2085
|
return k;
|
|
2086
2086
|
}
|
|
2087
|
-
function
|
|
2087
|
+
function Ke(f) {
|
|
2088
2088
|
const k = Nt(f);
|
|
2089
2089
|
return k ?? (t ? t.tm(f) || {} : {});
|
|
2090
2090
|
}
|
|
@@ -2100,7 +2100,7 @@ function sr(e = {}) {
|
|
|
2100
2100
|
}
|
|
2101
2101
|
p.value[f] = k, E.messages = p.value;
|
|
2102
2102
|
}
|
|
2103
|
-
function
|
|
2103
|
+
function ze(f, k) {
|
|
2104
2104
|
p.value[f] = p.value[f] || {};
|
|
2105
2105
|
const ne = { [f]: k };
|
|
2106
2106
|
if (l)
|
|
@@ -2111,19 +2111,19 @@ function sr(e = {}) {
|
|
|
2111
2111
|
function Tt(f) {
|
|
2112
2112
|
return N.value[f] || {};
|
|
2113
2113
|
}
|
|
2114
|
-
function
|
|
2114
|
+
function a(f, k) {
|
|
2115
2115
|
N.value[f] = k, E.datetimeFormats = N.value, pn(E, f, k);
|
|
2116
2116
|
}
|
|
2117
2117
|
function o(f, k) {
|
|
2118
2118
|
N.value[f] = de(N.value[f] || {}, k), E.datetimeFormats = N.value, pn(E, f, k);
|
|
2119
2119
|
}
|
|
2120
|
-
function
|
|
2120
|
+
function g(f) {
|
|
2121
2121
|
return L.value[f] || {};
|
|
2122
2122
|
}
|
|
2123
2123
|
function U(f, k) {
|
|
2124
2124
|
L.value[f] = k, E.numberFormats = L.value, bn(E, f, k);
|
|
2125
2125
|
}
|
|
2126
|
-
function
|
|
2126
|
+
function ae(f, k) {
|
|
2127
2127
|
L.value[f] = de(L.value[f] || {}, k), E.numberFormats = L.value, bn(E, f, k);
|
|
2128
2128
|
}
|
|
2129
2129
|
Tn++, t && qt && (St(t.locale, (f) => {
|
|
@@ -2131,7 +2131,7 @@ function sr(e = {}) {
|
|
|
2131
2131
|
}), St(t.fallbackLocale, (f) => {
|
|
2132
2132
|
c && (m.value = f, E.fallbackLocale = f, Qe(E, u.value, m.value));
|
|
2133
2133
|
}));
|
|
2134
|
-
const
|
|
2134
|
+
const Y = {
|
|
2135
2135
|
id: Tn,
|
|
2136
2136
|
locale: b,
|
|
2137
2137
|
fallbackLocale: R,
|
|
@@ -2193,16 +2193,16 @@ function sr(e = {}) {
|
|
|
2193
2193
|
t: j,
|
|
2194
2194
|
getLocaleMessage: Ue,
|
|
2195
2195
|
setLocaleMessage: Ve,
|
|
2196
|
-
mergeLocaleMessage:
|
|
2196
|
+
mergeLocaleMessage: ze,
|
|
2197
2197
|
getPostTranslationHandler: y,
|
|
2198
2198
|
setPostTranslationHandler: C,
|
|
2199
2199
|
getMissingHandler: v,
|
|
2200
|
-
setMissingHandler:
|
|
2201
|
-
[
|
|
2200
|
+
setMissingHandler: x,
|
|
2201
|
+
[qr]: It
|
|
2202
2202
|
};
|
|
2203
|
-
return
|
|
2203
|
+
return Y.datetimeFormats = F, Y.numberFormats = G, Y.rt = te, Y.te = yt, Y.tm = Ke, Y.d = B, Y.n = be, Y.getDateTimeFormat = Tt, Y.setDateTimeFormat = a, Y.mergeDateTimeFormat = o, Y.getNumberFormat = g, Y.setNumberFormat = U, Y.mergeNumberFormat = ae, Y[Gn] = n, Y[Ut] = Ee, Y[Vt] = Je, Y[Wt] = $e, Y;
|
|
2204
2204
|
}
|
|
2205
|
-
const
|
|
2205
|
+
const Kt = {
|
|
2206
2206
|
tag: {
|
|
2207
2207
|
type: [String, Object]
|
|
2208
2208
|
},
|
|
@@ -2220,7 +2220,7 @@ const zt = {
|
|
|
2220
2220
|
type: Object
|
|
2221
2221
|
}
|
|
2222
2222
|
};
|
|
2223
|
-
function
|
|
2223
|
+
function ra({ slots: e }, t) {
|
|
2224
2224
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((s, l) => [
|
|
2225
2225
|
...s,
|
|
2226
2226
|
// prettier-ignore
|
|
@@ -2242,23 +2242,23 @@ de({
|
|
|
2242
2242
|
type: [Number, String],
|
|
2243
2243
|
validator: (e) => me(e) || !isNaN(e)
|
|
2244
2244
|
}
|
|
2245
|
-
},
|
|
2246
|
-
function
|
|
2245
|
+
}, Kt);
|
|
2246
|
+
function aa(e) {
|
|
2247
2247
|
return ce(e) && !P(e[0]);
|
|
2248
2248
|
}
|
|
2249
|
-
function
|
|
2250
|
-
const { slots: l, attrs:
|
|
2249
|
+
function Bn(e, t, n, s) {
|
|
2250
|
+
const { slots: l, attrs: r } = t;
|
|
2251
2251
|
return () => {
|
|
2252
2252
|
const c = { part: !0 };
|
|
2253
2253
|
let u = ee();
|
|
2254
|
-
e.locale && (c.locale = e.locale), P(e.format) ? c.key = e.format :
|
|
2254
|
+
e.locale && (c.locale = e.locale), P(e.format) ? c.key = e.format : K(e.format) && (P(e.format.key) && (c.key = e.format.key), u = Object.keys(e.format).reduce((O, w) => n.includes(w) ? de(ee(), O, { [w]: e.format[w] }) : O, ee()));
|
|
2255
2255
|
const m = s(e.value, c, u);
|
|
2256
2256
|
let p = [c.key];
|
|
2257
2257
|
ce(m) ? p = m.map((O, w) => {
|
|
2258
2258
|
const V = l[O.type], A = V ? V({ [O.type]: O.value, index: w, parts: m }) : [O.value];
|
|
2259
|
-
return
|
|
2259
|
+
return aa(A) && (A[0].key = `${O.type}-${w}`), A;
|
|
2260
2260
|
}) : P(m) && (p = [m]);
|
|
2261
|
-
const N = de(ee(),
|
|
2261
|
+
const N = de(ee(), r), L = P(e.tag) || K(e.tag) ? e.tag : Zn();
|
|
2262
2262
|
return An(L, N, p);
|
|
2263
2263
|
};
|
|
2264
2264
|
}
|
|
@@ -2270,7 +2270,7 @@ de({
|
|
|
2270
2270
|
format: {
|
|
2271
2271
|
type: [String, Object]
|
|
2272
2272
|
}
|
|
2273
|
-
},
|
|
2273
|
+
}, Kt);
|
|
2274
2274
|
de({
|
|
2275
2275
|
value: {
|
|
2276
2276
|
type: [Number, Date],
|
|
@@ -2279,78 +2279,78 @@ de({
|
|
|
2279
2279
|
format: {
|
|
2280
2280
|
type: [String, Object]
|
|
2281
2281
|
}
|
|
2282
|
-
},
|
|
2283
|
-
const
|
|
2282
|
+
}, Kt);
|
|
2283
|
+
const la = /* @__PURE__ */ je("global-vue-i18n");
|
|
2284
2284
|
function Et(e = {}) {
|
|
2285
|
-
const t =
|
|
2285
|
+
const t = Gt();
|
|
2286
2286
|
if (t == null)
|
|
2287
|
-
throw nt(
|
|
2287
|
+
throw nt(Be.MUST_BE_CALL_SETUP_TOP);
|
|
2288
2288
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2289
|
-
throw nt(
|
|
2290
|
-
const n =
|
|
2291
|
-
if (
|
|
2292
|
-
return
|
|
2293
|
-
if (
|
|
2294
|
-
let m =
|
|
2289
|
+
throw nt(Be.NOT_INSTALLED);
|
|
2290
|
+
const n = oa(t), s = ca(n), l = Yn(t), r = ia(e, l);
|
|
2291
|
+
if (r === "global")
|
|
2292
|
+
return ea(s, e, l), s;
|
|
2293
|
+
if (r === "parent") {
|
|
2294
|
+
let m = ua(n, t, e.__useComponent);
|
|
2295
2295
|
return m == null && (m = s), m;
|
|
2296
2296
|
}
|
|
2297
2297
|
const c = n;
|
|
2298
2298
|
let u = c.__getInstance(t);
|
|
2299
2299
|
if (u == null) {
|
|
2300
2300
|
const m = de({}, e);
|
|
2301
|
-
"__i18n" in l && (m.__i18n = l.__i18n), s && (m.__root = s), u =
|
|
2301
|
+
"__i18n" in l && (m.__i18n = l.__i18n), s && (m.__root = s), u = sa(m), c.__composerExtend && (u[xt] = c.__composerExtend(u)), da(c, t, u), c.__setInstance(t, u);
|
|
2302
2302
|
}
|
|
2303
2303
|
return u;
|
|
2304
2304
|
}
|
|
2305
|
-
function
|
|
2306
|
-
const t = Jn(e.isCE ?
|
|
2305
|
+
function oa(e) {
|
|
2306
|
+
const t = Jn(e.isCE ? la : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2307
2307
|
if (!t)
|
|
2308
|
-
throw nt(e.isCE ?
|
|
2308
|
+
throw nt(e.isCE ? Be.NOT_INSTALLED_WITH_PROVIDE : Be.UNEXPECTED_ERROR);
|
|
2309
2309
|
return t;
|
|
2310
2310
|
}
|
|
2311
|
-
function
|
|
2311
|
+
function ia(e, t) {
|
|
2312
2312
|
return bt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2313
2313
|
}
|
|
2314
|
-
function
|
|
2314
|
+
function ca(e) {
|
|
2315
2315
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2316
2316
|
}
|
|
2317
|
-
function
|
|
2317
|
+
function ua(e, t, n = !1) {
|
|
2318
2318
|
let s = null;
|
|
2319
2319
|
const l = t.root;
|
|
2320
|
-
let
|
|
2321
|
-
for (;
|
|
2320
|
+
let r = ma(t, n);
|
|
2321
|
+
for (; r != null; ) {
|
|
2322
2322
|
const c = e;
|
|
2323
2323
|
if (e.mode === "composition")
|
|
2324
|
-
s = c.__getInstance(
|
|
2324
|
+
s = c.__getInstance(r);
|
|
2325
2325
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
2326
|
-
const u = c.__getInstance(
|
|
2327
|
-
u != null && (s = u.__composer, n && s && !s[
|
|
2326
|
+
const u = c.__getInstance(r);
|
|
2327
|
+
u != null && (s = u.__composer, n && s && !s[Gn] && (s = null));
|
|
2328
2328
|
}
|
|
2329
|
-
if (s != null || l ===
|
|
2329
|
+
if (s != null || l === r)
|
|
2330
2330
|
break;
|
|
2331
|
-
|
|
2331
|
+
r = r.parent;
|
|
2332
2332
|
}
|
|
2333
2333
|
return s;
|
|
2334
2334
|
}
|
|
2335
|
-
function
|
|
2335
|
+
function ma(e, t = !1) {
|
|
2336
2336
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2337
2337
|
}
|
|
2338
|
-
function
|
|
2338
|
+
function da(e, t, n) {
|
|
2339
2339
|
Cn(() => {
|
|
2340
|
-
}, t),
|
|
2340
|
+
}, t), zn(() => {
|
|
2341
2341
|
const s = n;
|
|
2342
2342
|
e.__deleteInstance(t);
|
|
2343
|
-
const l = s[
|
|
2344
|
-
l && (l(), delete s[
|
|
2343
|
+
const l = s[xt];
|
|
2344
|
+
l && (l(), delete s[xt]);
|
|
2345
2345
|
}, t);
|
|
2346
2346
|
}
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2347
|
+
Qr();
|
|
2348
|
+
Cr(ur);
|
|
2349
|
+
Ar(Or);
|
|
2350
|
+
Sr(Mn);
|
|
2351
2351
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2352
2352
|
const e = Fe();
|
|
2353
|
-
e.__INTLIFY__ = !0,
|
|
2353
|
+
e.__INTLIFY__ = !0, mr(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2354
2354
|
}
|
|
2355
2355
|
const ct = /* @__PURE__ */ ke({
|
|
2356
2356
|
__name: "InheritPermissionTooltip",
|
|
@@ -2363,15 +2363,15 @@ const ct = /* @__PURE__ */ ke({
|
|
|
2363
2363
|
setup(e) {
|
|
2364
2364
|
const { t } = Et();
|
|
2365
2365
|
return (n, s) => {
|
|
2366
|
-
const l = qe("FmIcon"),
|
|
2367
|
-
return Q(), Me(
|
|
2366
|
+
const l = qe("FmIcon"), r = qe("FmTooltip");
|
|
2367
|
+
return Q(), Me(r, {
|
|
2368
2368
|
variant: "plain",
|
|
2369
2369
|
placement: "right",
|
|
2370
2370
|
"z-index": 50
|
|
2371
2371
|
}, {
|
|
2372
2372
|
content: pe(() => [
|
|
2373
2373
|
se("div", null, Ie($(t)("team.memberForm.permissions.inherited")), 1),
|
|
2374
|
-
(Q(!0), oe(Le, null,
|
|
2374
|
+
(Q(!0), oe(Le, null, he(e.item.setNames, (c) => (Q(), oe("div", { key: c }, [
|
|
2375
2375
|
se("div", null, "- " + Ie(c), 1)
|
|
2376
2376
|
]))), 128))
|
|
2377
2377
|
]),
|
|
@@ -2392,128 +2392,128 @@ function On(e, t, n) {
|
|
|
2392
2392
|
if (s.length === 0) return;
|
|
2393
2393
|
const l = e.findIndex((u) => u.subject === t && !u.inverted);
|
|
2394
2394
|
if (l < 0) return;
|
|
2395
|
-
const
|
|
2396
|
-
c && !
|
|
2395
|
+
const r = new Set(e[l].actions), c = s.every((u) => r.has(u));
|
|
2396
|
+
c && !r.has("manage") ? (r.add("manage"), e[l] = {
|
|
2397
2397
|
...e[l],
|
|
2398
|
-
actions: Array.from(
|
|
2399
|
-
}) : !c &&
|
|
2398
|
+
actions: Array.from(r)
|
|
2399
|
+
}) : !c && r.has("manage") && (r.delete("manage"), r.size === 0 ? e.splice(l, 1) : e[l] = {
|
|
2400
2400
|
...e[l],
|
|
2401
|
-
actions: Array.from(
|
|
2401
|
+
actions: Array.from(r)
|
|
2402
2402
|
});
|
|
2403
2403
|
}
|
|
2404
|
-
const Ln = Object.values(is),
|
|
2404
|
+
const Ln = Object.values(is), fa = {
|
|
2405
2405
|
read: "View",
|
|
2406
2406
|
create: "Duplicate",
|
|
2407
2407
|
update: "Edit"
|
|
2408
2408
|
};
|
|
2409
|
-
function
|
|
2410
|
-
const { t: l } =
|
|
2409
|
+
function _a(e, t, n, s) {
|
|
2410
|
+
const { t: l } = He(), { getFlagValue: r, getFlag: c } = os(), u = q(() => {
|
|
2411
2411
|
var I;
|
|
2412
|
-
const
|
|
2412
|
+
const h = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map();
|
|
2413
2413
|
for (const F of t.value) {
|
|
2414
|
-
const
|
|
2415
|
-
|
|
2414
|
+
const G = F.category;
|
|
2415
|
+
G && (n.value.includes(F.subject) || F.showByFeatureFlag && ((I = c(F.showByFeatureFlag)) == null ? void 0 : I.enabled) === !1 && r(F.showByFeatureFlag) === "true" || (h.has(G) || h.set(G, []), h.get(G).push({
|
|
2416
2416
|
label: l(`permissionSet.permissionLabels.${F.subject}`, F.label),
|
|
2417
2417
|
value: F.subject
|
|
2418
2418
|
}), b.set(F.subject, F)));
|
|
2419
2419
|
}
|
|
2420
|
-
return [...
|
|
2421
|
-
const y = Ln.indexOf(F), C = Ln.indexOf(
|
|
2422
|
-
return y === -1 && C === -1 ? F.localeCompare(
|
|
2420
|
+
return [...h.keys()].sort((F, G) => {
|
|
2421
|
+
const y = Ln.indexOf(F), C = Ln.indexOf(G);
|
|
2422
|
+
return y === -1 && C === -1 ? F.localeCompare(G) : y === -1 ? 1 : C === -1 ? -1 : y - C;
|
|
2423
2423
|
}).map((F) => {
|
|
2424
|
-
const
|
|
2425
|
-
for (const
|
|
2426
|
-
const
|
|
2427
|
-
|
|
2424
|
+
const G = h.get(F), y = l(`permissionSet.categoryLabels.${F}`, F), C = /* @__PURE__ */ new Map();
|
|
2425
|
+
for (const H of G) {
|
|
2426
|
+
const X = b.get(H.value);
|
|
2427
|
+
X && C.set(H.value, X.actions);
|
|
2428
2428
|
}
|
|
2429
|
-
const v =
|
|
2430
|
-
const
|
|
2431
|
-
return
|
|
2432
|
-
}),
|
|
2429
|
+
const v = G.some((H) => {
|
|
2430
|
+
const X = C.get(H.value);
|
|
2431
|
+
return X && X.length > 1;
|
|
2432
|
+
}), x = v ? [
|
|
2433
2433
|
...new Set(
|
|
2434
|
-
|
|
2434
|
+
G.flatMap((H) => C.get(H.value) ?? []).filter((H) => H !== "manage")
|
|
2435
2435
|
)
|
|
2436
2436
|
] : [], W = /* @__PURE__ */ new Map();
|
|
2437
|
-
for (const
|
|
2438
|
-
|
|
2437
|
+
for (const H of e.value)
|
|
2438
|
+
G.some((X) => X.value === H.subject) && !H.inverted && W.set(H.subject, new Set(H.actions));
|
|
2439
2439
|
const j = v ? e.value.filter(
|
|
2440
|
-
(
|
|
2441
|
-
).map((
|
|
2442
|
-
var
|
|
2443
|
-
return (
|
|
2444
|
-
}),
|
|
2440
|
+
(H) => G.some((X) => X.value === H.subject) && !H.inverted && H.actions.includes("manage")
|
|
2441
|
+
).map((H) => H.subject) : e.value.filter((H) => G.some((X) => X.value === H.subject) && !H.inverted).map((H) => H.subject), te = G.find((H) => {
|
|
2442
|
+
var X;
|
|
2443
|
+
return (X = b.get(H.value)) == null ? void 0 : X.isCategoryCover;
|
|
2444
|
+
}), B = (te == null ? void 0 : te.value) ?? null, be = B ? W.get(B) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), fe = be.has("manage");
|
|
2445
2445
|
return {
|
|
2446
2446
|
category: F,
|
|
2447
2447
|
label: y,
|
|
2448
|
-
options:
|
|
2448
|
+
options: G,
|
|
2449
2449
|
selectedSubjects: j,
|
|
2450
2450
|
isMultiAction: v,
|
|
2451
|
-
actionColumns:
|
|
2451
|
+
actionColumns: x,
|
|
2452
2452
|
permissionActionsMap: C,
|
|
2453
2453
|
selectedActionsMap: W,
|
|
2454
|
-
coverSubject:
|
|
2454
|
+
coverSubject: B,
|
|
2455
2455
|
coverSelectedActions: be,
|
|
2456
2456
|
coverCoversAll: fe
|
|
2457
2457
|
};
|
|
2458
2458
|
});
|
|
2459
2459
|
});
|
|
2460
|
-
function m(
|
|
2460
|
+
function m(h, b) {
|
|
2461
2461
|
var I;
|
|
2462
|
-
const R = ((I = u.value.find((F) => F.category ===
|
|
2462
|
+
const R = ((I = u.value.find((F) => F.category === h)) == null ? void 0 : I.options) ?? [];
|
|
2463
2463
|
s("update:model-value", [
|
|
2464
|
-
...e.value.filter((F) => !R.some((
|
|
2464
|
+
...e.value.filter((F) => !R.some((G) => G.value === F.subject)),
|
|
2465
2465
|
...t.value.filter((F) => b.includes(F.subject)).map(
|
|
2466
|
-
({ category: F, showByFeatureFlag:
|
|
2466
|
+
({ category: F, showByFeatureFlag: G, isCategoryCover: y, ...C }) => C
|
|
2467
2467
|
)
|
|
2468
2468
|
]);
|
|
2469
2469
|
}
|
|
2470
|
-
function p(
|
|
2471
|
-
return
|
|
2470
|
+
function p(h) {
|
|
2471
|
+
return h.options.length > 0 && h.options.every((b) => h.selectedSubjects.includes(b.value));
|
|
2472
2472
|
}
|
|
2473
|
-
function N(
|
|
2474
|
-
if (
|
|
2475
|
-
const b =
|
|
2476
|
-
(R) =>
|
|
2473
|
+
function N(h) {
|
|
2474
|
+
if (h.options.length === 0) return !1;
|
|
2475
|
+
const b = h.options.filter(
|
|
2476
|
+
(R) => h.selectedSubjects.includes(R.value)
|
|
2477
2477
|
).length;
|
|
2478
|
-
return b > 0 && b <
|
|
2478
|
+
return b > 0 && b < h.options.length;
|
|
2479
2479
|
}
|
|
2480
|
-
function L(
|
|
2480
|
+
function L(h) {
|
|
2481
2481
|
const b = e.value.filter(
|
|
2482
|
-
(R) => !
|
|
2482
|
+
(R) => !h.options.some((I) => I.value === R.subject)
|
|
2483
2483
|
);
|
|
2484
|
-
if (p(
|
|
2484
|
+
if (p(h))
|
|
2485
2485
|
s("update:model-value", b);
|
|
2486
2486
|
else {
|
|
2487
|
-
const R = t.value.filter((I) =>
|
|
2488
|
-
({ category: I, showByFeatureFlag: F, isCategoryCover:
|
|
2487
|
+
const R = t.value.filter((I) => h.options.some((F) => F.value === I.subject)).map(
|
|
2488
|
+
({ category: I, showByFeatureFlag: F, isCategoryCover: G, ...y }) => y
|
|
2489
2489
|
);
|
|
2490
2490
|
s("update:model-value", [...b, ...R]);
|
|
2491
2491
|
}
|
|
2492
2492
|
}
|
|
2493
|
-
function O(
|
|
2494
|
-
const R =
|
|
2493
|
+
function O(h, b) {
|
|
2494
|
+
const R = h.selectedActionsMap.get(b);
|
|
2495
2495
|
return R ? R.has("manage") : !1;
|
|
2496
2496
|
}
|
|
2497
|
-
function w(
|
|
2498
|
-
const R =
|
|
2497
|
+
function w(h, b) {
|
|
2498
|
+
const R = h.permissionActionsMap.get(b);
|
|
2499
2499
|
if (!R) return !1;
|
|
2500
2500
|
const I = R.filter((y) => y !== "manage");
|
|
2501
2501
|
if (I.length === 0) return !1;
|
|
2502
|
-
const F =
|
|
2502
|
+
const F = h.selectedActionsMap.get(b);
|
|
2503
2503
|
if (!F) return !1;
|
|
2504
|
-
const
|
|
2505
|
-
return
|
|
2504
|
+
const G = I.filter((y) => F.has(y));
|
|
2505
|
+
return G.length > 0 && G.length < I.length;
|
|
2506
2506
|
}
|
|
2507
|
-
function V(
|
|
2507
|
+
function V(h, b, R) {
|
|
2508
2508
|
if (R) {
|
|
2509
|
-
const I = t.value.find((
|
|
2509
|
+
const I = t.value.find((x) => x.subject === b);
|
|
2510
2510
|
if (!I) return;
|
|
2511
2511
|
const {
|
|
2512
2512
|
category: F,
|
|
2513
|
-
showByFeatureFlag:
|
|
2513
|
+
showByFeatureFlag: G,
|
|
2514
2514
|
isCategoryCover: y,
|
|
2515
2515
|
...C
|
|
2516
|
-
} = I, v = e.value.filter((
|
|
2516
|
+
} = I, v = e.value.filter((x) => x.subject !== b);
|
|
2517
2517
|
v.push(C), s("update:model-value", v);
|
|
2518
2518
|
} else
|
|
2519
2519
|
s(
|
|
@@ -2521,37 +2521,37 @@ function _r(e, t, n, s) {
|
|
|
2521
2521
|
e.value.filter((I) => I.subject !== b)
|
|
2522
2522
|
);
|
|
2523
2523
|
}
|
|
2524
|
-
function A(
|
|
2525
|
-
const R =
|
|
2524
|
+
function A(h, b) {
|
|
2525
|
+
const R = h.permissionActionsMap.get(b);
|
|
2526
2526
|
return R ? R.some((I) => I !== "manage") : !1;
|
|
2527
2527
|
}
|
|
2528
|
-
function M(
|
|
2529
|
-
const I =
|
|
2528
|
+
function M(h, b, R) {
|
|
2529
|
+
const I = h.selectedActionsMap.get(b);
|
|
2530
2530
|
return I ? I.has(R) : !1;
|
|
2531
2531
|
}
|
|
2532
|
-
function i(
|
|
2533
|
-
return !
|
|
2532
|
+
function i(h, b) {
|
|
2533
|
+
return !h.coverSubject || b === h.coverSubject ? !1 : h.coverCoversAll;
|
|
2534
2534
|
}
|
|
2535
|
-
function d(
|
|
2536
|
-
return !
|
|
2535
|
+
function d(h, b, R) {
|
|
2536
|
+
return !h.coverSubject || b === h.coverSubject ? !1 : h.coverCoversAll ? !0 : h.coverSelectedActions.has(R);
|
|
2537
2537
|
}
|
|
2538
|
-
function T(
|
|
2539
|
-
const I =
|
|
2538
|
+
function T(h, b, R) {
|
|
2539
|
+
const I = h.permissionActionsMap.get(b);
|
|
2540
2540
|
return I ? I.includes(R) : !1;
|
|
2541
2541
|
}
|
|
2542
|
-
function _(
|
|
2543
|
-
const I = [...e.value], F = I.findIndex((y) => y.subject ===
|
|
2542
|
+
function _(h, b, R) {
|
|
2543
|
+
const I = [...e.value], F = I.findIndex((y) => y.subject === h && !y.inverted);
|
|
2544
2544
|
if (R)
|
|
2545
2545
|
if (F >= 0) {
|
|
2546
2546
|
const y = { ...I[F] }, C = new Set(y.actions);
|
|
2547
2547
|
C.add(b), y.actions = Array.from(C), I[F] = y;
|
|
2548
2548
|
} else {
|
|
2549
|
-
const y = t.value.find((j) => j.subject ===
|
|
2549
|
+
const y = t.value.find((j) => j.subject === h);
|
|
2550
2550
|
if (!y) return;
|
|
2551
2551
|
const {
|
|
2552
2552
|
category: C,
|
|
2553
2553
|
showByFeatureFlag: v,
|
|
2554
|
-
isCategoryCover:
|
|
2554
|
+
isCategoryCover: x,
|
|
2555
2555
|
...W
|
|
2556
2556
|
} = y;
|
|
2557
2557
|
I.push({ ...W, actions: [b] });
|
|
@@ -2560,43 +2560,43 @@ function _r(e, t, n, s) {
|
|
|
2560
2560
|
const y = { ...I[F] }, C = y.actions.filter((v) => v !== b);
|
|
2561
2561
|
C.length === 0 ? I.splice(F, 1) : (y.actions = C, I[F] = y);
|
|
2562
2562
|
}
|
|
2563
|
-
const
|
|
2564
|
-
|
|
2563
|
+
const G = t.value.find((y) => y.subject === h);
|
|
2564
|
+
G && On(I, h, G.actions), s("update:model-value", I);
|
|
2565
2565
|
}
|
|
2566
|
-
function D(
|
|
2567
|
-
const R =
|
|
2568
|
-
(I) => T(
|
|
2566
|
+
function D(h, b) {
|
|
2567
|
+
const R = h.options.filter(
|
|
2568
|
+
(I) => T(h, I.value, b)
|
|
2569
2569
|
);
|
|
2570
2570
|
return R.length === 0 ? !1 : R.every(
|
|
2571
|
-
(I) => M(
|
|
2571
|
+
(I) => M(h, I.value, b) || d(h, I.value, b)
|
|
2572
2572
|
);
|
|
2573
2573
|
}
|
|
2574
|
-
function S(
|
|
2575
|
-
const R =
|
|
2576
|
-
(F) => T(
|
|
2574
|
+
function S(h, b) {
|
|
2575
|
+
const R = h.options.filter(
|
|
2576
|
+
(F) => T(h, F.value, b)
|
|
2577
2577
|
);
|
|
2578
2578
|
if (R.length === 0) return !1;
|
|
2579
2579
|
const I = R.filter(
|
|
2580
|
-
(F) => M(
|
|
2580
|
+
(F) => M(h, F.value, b) || d(h, F.value, b)
|
|
2581
2581
|
).length;
|
|
2582
2582
|
return I > 0 && I < R.length;
|
|
2583
2583
|
}
|
|
2584
|
-
function E(
|
|
2584
|
+
function E(h, b, R) {
|
|
2585
2585
|
const I = [...e.value];
|
|
2586
|
-
for (const F of
|
|
2587
|
-
if (!T(
|
|
2588
|
-
const
|
|
2589
|
-
(v) => v.subject ===
|
|
2586
|
+
for (const F of h.options) {
|
|
2587
|
+
if (!T(h, F.value, b)) continue;
|
|
2588
|
+
const G = F.value, y = I.findIndex(
|
|
2589
|
+
(v) => v.subject === G && !v.inverted
|
|
2590
2590
|
);
|
|
2591
2591
|
if (R)
|
|
2592
2592
|
if (y >= 0) {
|
|
2593
|
-
const v = { ...I[y] },
|
|
2594
|
-
|
|
2593
|
+
const v = { ...I[y] }, x = new Set(v.actions);
|
|
2594
|
+
x.add(b), v.actions = Array.from(x), I[y] = v;
|
|
2595
2595
|
} else {
|
|
2596
|
-
const v = t.value.find((
|
|
2596
|
+
const v = t.value.find((B) => B.subject === G);
|
|
2597
2597
|
if (!v) continue;
|
|
2598
2598
|
const {
|
|
2599
|
-
category:
|
|
2599
|
+
category: x,
|
|
2600
2600
|
showByFeatureFlag: W,
|
|
2601
2601
|
isCategoryCover: j,
|
|
2602
2602
|
...te
|
|
@@ -2604,16 +2604,16 @@ function _r(e, t, n, s) {
|
|
|
2604
2604
|
I.push({ ...te, actions: [b] });
|
|
2605
2605
|
}
|
|
2606
2606
|
else if (y >= 0) {
|
|
2607
|
-
const v = { ...I[y] },
|
|
2608
|
-
|
|
2607
|
+
const v = { ...I[y] }, x = v.actions.filter((W) => W !== b);
|
|
2608
|
+
x.length === 0 ? I.splice(y, 1) : (v.actions = x, I[y] = v);
|
|
2609
2609
|
}
|
|
2610
|
-
const C = t.value.find((v) => v.subject ===
|
|
2611
|
-
C && On(I,
|
|
2610
|
+
const C = t.value.find((v) => v.subject === G);
|
|
2611
|
+
C && On(I, G, C.actions);
|
|
2612
2612
|
}
|
|
2613
2613
|
s("update:model-value", I);
|
|
2614
2614
|
}
|
|
2615
|
-
function Z(
|
|
2616
|
-
const b = `permissionSet.actionLabels.${
|
|
2615
|
+
function Z(h) {
|
|
2616
|
+
const b = `permissionSet.actionLabels.${h}`, R = fa[h] ?? h.charAt(0).toUpperCase() + h.slice(1);
|
|
2617
2617
|
return l(b, R);
|
|
2618
2618
|
}
|
|
2619
2619
|
return {
|
|
@@ -2637,7 +2637,7 @@ function _r(e, t, n, s) {
|
|
|
2637
2637
|
actionLabel: Z
|
|
2638
2638
|
};
|
|
2639
2639
|
}
|
|
2640
|
-
const
|
|
2640
|
+
const pa = { class: "flex flex-col gap-16" }, ga = { class: "fm-typo-en-title-sm-600" }, ba = { class: "mt-16" }, ha = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, va = ["onClick"], Ea = { class: "flex justify-center" }, Ia = { class: "flex items-center min-w-0 gap-8" }, ya = ["title", "onClick"], Na = { class: "flex justify-center" }, Ta = /* @__PURE__ */ ke({
|
|
2641
2641
|
__name: "BasePermission",
|
|
2642
2642
|
props: {
|
|
2643
2643
|
modelValue: {
|
|
@@ -2659,7 +2659,7 @@ const pr = { class: "flex flex-col gap-16" }, hr = { class: "fm-typo-en-title-sm
|
|
|
2659
2659
|
},
|
|
2660
2660
|
emits: ["update:model-value"],
|
|
2661
2661
|
setup(e, { emit: t }) {
|
|
2662
|
-
const n = e, s = t, { t: l } =
|
|
2662
|
+
const n = e, s = t, { t: l } = He(), r = q(() => [...Mt, ...n.additionalPermissions]), {
|
|
2663
2663
|
categoryGroups: c,
|
|
2664
2664
|
isAllManageChecked: u,
|
|
2665
2665
|
isAllManageIndeterminate: m,
|
|
@@ -2676,10 +2676,10 @@ const pr = { class: "flex flex-col gap-16" }, hr = { class: "fm-typo-en-title-sm
|
|
|
2676
2676
|
isAllActionIndeterminate: T,
|
|
2677
2677
|
toggleAllAction: _,
|
|
2678
2678
|
actionLabel: D
|
|
2679
|
-
} =
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2679
|
+
} = _a(
|
|
2680
|
+
zt(n, "modelValue"),
|
|
2681
|
+
r,
|
|
2682
|
+
zt(n, "excludedSubjects"),
|
|
2683
2683
|
(E, Z) => s("update:model-value", Z)
|
|
2684
2684
|
);
|
|
2685
2685
|
function S(E) {
|
|
@@ -2687,42 +2687,42 @@ const pr = { class: "flex flex-col gap-16" }, hr = { class: "fm-typo-en-title-sm
|
|
|
2687
2687
|
return Z === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: Z });
|
|
2688
2688
|
}
|
|
2689
2689
|
return (E, Z) => {
|
|
2690
|
-
const
|
|
2691
|
-
return Q(), oe("div",
|
|
2692
|
-
(Q(!0), oe(Le, null,
|
|
2690
|
+
const h = qe("FmCheckbox");
|
|
2691
|
+
return Q(), oe("div", pa, [
|
|
2692
|
+
(Q(!0), oe(Le, null, he($(c), (b) => (Q(), Me(Xt, {
|
|
2693
2693
|
key: b.category,
|
|
2694
2694
|
subtitle: S(b)
|
|
2695
2695
|
}, {
|
|
2696
2696
|
title: pe(() => [
|
|
2697
|
-
se("p",
|
|
2697
|
+
se("p", ga, Ie(b.label), 1)
|
|
2698
2698
|
]),
|
|
2699
2699
|
default: pe(() => [
|
|
2700
|
-
se("div",
|
|
2700
|
+
se("div", ba, [
|
|
2701
2701
|
se("div", {
|
|
2702
2702
|
class: "grid items-center px-12 py-8",
|
|
2703
|
-
style:
|
|
2703
|
+
style: Xe({
|
|
2704
2704
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${b.actionColumns.length + 1}, 80px)`
|
|
2705
2705
|
})
|
|
2706
2706
|
}, [
|
|
2707
2707
|
Z[0] || (Z[0] = se("div", null, null, -1)),
|
|
2708
|
-
se("div",
|
|
2709
|
-
(Q(!0), oe(Le, null,
|
|
2708
|
+
se("div", ha, Ie($(l)("team.memberForm.permissions.columnManage")), 1),
|
|
2709
|
+
(Q(!0), oe(Le, null, he(b.actionColumns, (R) => (Q(), oe("div", {
|
|
2710
2710
|
key: `header-${R}`,
|
|
2711
2711
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2712
2712
|
}, Ie($(D)(R)), 1))), 128))
|
|
2713
2713
|
], 4),
|
|
2714
2714
|
se("div", {
|
|
2715
2715
|
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
2716
|
-
style:
|
|
2716
|
+
style: Xe({
|
|
2717
2717
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${b.actionColumns.length + 1}, 80px)`
|
|
2718
2718
|
})
|
|
2719
2719
|
}, [
|
|
2720
2720
|
se("div", {
|
|
2721
2721
|
class: "cursor-pointer font-semibold",
|
|
2722
2722
|
onClick: (R) => !e.disable && $(p)(b)
|
|
2723
|
-
}, Ie($(l)("team.labels.all")), 9,
|
|
2724
|
-
se("div",
|
|
2725
|
-
_e(
|
|
2723
|
+
}, Ie($(l)("team.labels.all")), 9, va),
|
|
2724
|
+
se("div", Ea, [
|
|
2725
|
+
_e(h, {
|
|
2726
2726
|
"model-value": $(u)(b),
|
|
2727
2727
|
indeterminate: $(m)(b),
|
|
2728
2728
|
value: !0,
|
|
@@ -2732,11 +2732,11 @@ const pr = { class: "flex flex-col gap-16" }, hr = { class: "fm-typo-en-title-sm
|
|
|
2732
2732
|
"onUpdate:modelValue": (R) => $(p)(b)
|
|
2733
2733
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2734
2734
|
]),
|
|
2735
|
-
(Q(!0), oe(Le, null,
|
|
2735
|
+
(Q(!0), oe(Le, null, he(b.actionColumns, (R) => (Q(), oe("div", {
|
|
2736
2736
|
key: `all-${R}`,
|
|
2737
2737
|
class: "flex justify-center"
|
|
2738
2738
|
}, [
|
|
2739
|
-
_e(
|
|
2739
|
+
_e(h, {
|
|
2740
2740
|
"model-value": $(d)(b, R),
|
|
2741
2741
|
indeterminate: $(T)(b, R),
|
|
2742
2742
|
value: R,
|
|
@@ -2748,23 +2748,23 @@ const pr = { class: "flex flex-col gap-16" }, hr = { class: "fm-typo-en-title-sm
|
|
|
2748
2748
|
]))), 128))
|
|
2749
2749
|
], 4),
|
|
2750
2750
|
Z[1] || (Z[1] = se("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2751
|
-
(Q(!0), oe(Le, null,
|
|
2751
|
+
(Q(!0), oe(Le, null, he(b.options, (R) => (Q(), oe("div", {
|
|
2752
2752
|
key: R.value,
|
|
2753
2753
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2754
|
-
style:
|
|
2754
|
+
style: Xe({
|
|
2755
2755
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${b.actionColumns.length + 1}, 80px)`
|
|
2756
2756
|
})
|
|
2757
2757
|
}, [
|
|
2758
|
-
se("div",
|
|
2758
|
+
se("div", Ia, [
|
|
2759
2759
|
se("span", {
|
|
2760
2760
|
class: "block truncate cursor-pointer",
|
|
2761
2761
|
title: R.label,
|
|
2762
2762
|
onClick: (I) => !e.disable && !$(V)(b, R.value) && $(O)(b, R.value, !$(N)(b, R.value))
|
|
2763
|
-
}, Ie(R.label), 9,
|
|
2763
|
+
}, Ie(R.label), 9, ya),
|
|
2764
2764
|
Te(E.$slots, `checkbox-${R.value}-append`, { option: R })
|
|
2765
2765
|
]),
|
|
2766
|
-
se("div",
|
|
2767
|
-
_e(
|
|
2766
|
+
se("div", Na, [
|
|
2767
|
+
_e(h, {
|
|
2768
2768
|
"model-value": $(N)(b, R.value) || $(V)(b, R.value),
|
|
2769
2769
|
value: R.value,
|
|
2770
2770
|
disabled: e.disable || $(V)(b, R.value),
|
|
@@ -2773,11 +2773,11 @@ const pr = { class: "flex flex-col gap-16" }, hr = { class: "fm-typo-en-title-sm
|
|
|
2773
2773
|
"onUpdate:modelValue": (I) => $(O)(b, R.value, I)
|
|
2774
2774
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2775
2775
|
]),
|
|
2776
|
-
(Q(!0), oe(Le, null,
|
|
2776
|
+
(Q(!0), oe(Le, null, he(b.actionColumns, (I) => (Q(), oe("div", {
|
|
2777
2777
|
key: `${R.value}-${I}`,
|
|
2778
2778
|
class: "flex justify-center"
|
|
2779
2779
|
}, [
|
|
2780
|
-
$(M)(b, R.value, I) ? (Q(), Me(
|
|
2780
|
+
$(M)(b, R.value, I) ? (Q(), Me(h, {
|
|
2781
2781
|
key: 0,
|
|
2782
2782
|
"model-value": $(w)(b, R.value, I) || $(A)(b, R.value, I),
|
|
2783
2783
|
value: I,
|
|
@@ -2794,13 +2794,13 @@ const pr = { class: "flex flex-col gap-16" }, hr = { class: "fm-typo-en-title-sm
|
|
|
2794
2794
|
]);
|
|
2795
2795
|
};
|
|
2796
2796
|
}
|
|
2797
|
-
}),
|
|
2797
|
+
}), ka = { class: "space-y-16" }, Oa = {
|
|
2798
2798
|
key: 0,
|
|
2799
2799
|
class: "flex fm-typo-en-title-sm-600"
|
|
2800
|
-
},
|
|
2800
|
+
}, La = {
|
|
2801
2801
|
key: 0,
|
|
2802
2802
|
class: "q-mr-xs text-red col"
|
|
2803
|
-
},
|
|
2803
|
+
}, Ra = { class: "form-input" }, Ca = /* @__PURE__ */ ke({
|
|
2804
2804
|
__name: "AppForm",
|
|
2805
2805
|
props: {
|
|
2806
2806
|
title: {
|
|
@@ -2818,33 +2818,33 @@ const pr = { class: "flex flex-col gap-16" }, hr = { class: "fm-typo-en-title-sm
|
|
|
2818
2818
|
},
|
|
2819
2819
|
setup(e) {
|
|
2820
2820
|
const t = e;
|
|
2821
|
-
return (n, s) => (Q(), oe("div",
|
|
2821
|
+
return (n, s) => (Q(), oe("div", ka, [
|
|
2822
2822
|
Te(n.$slots, "top", {}, () => [
|
|
2823
|
-
t.title ? (Q(), oe("div",
|
|
2823
|
+
t.title ? (Q(), oe("div", Oa, [
|
|
2824
2824
|
se("div", null, [
|
|
2825
|
-
t.required ? (Q(), oe("span",
|
|
2825
|
+
t.required ? (Q(), oe("span", La, "*")) : Se("", !0),
|
|
2826
2826
|
qn(Ie(t.title), 1)
|
|
2827
2827
|
]),
|
|
2828
2828
|
Te(n.$slots, "title-right")
|
|
2829
2829
|
])) : Se("", !0)
|
|
2830
2830
|
]),
|
|
2831
|
-
se("div",
|
|
2831
|
+
se("div", Ra, [
|
|
2832
2832
|
Te(n.$slots, "default")
|
|
2833
2833
|
])
|
|
2834
2834
|
]));
|
|
2835
2835
|
}
|
|
2836
2836
|
});
|
|
2837
|
-
function
|
|
2837
|
+
function Aa(e, t) {
|
|
2838
2838
|
let n = "", s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
2839
2839
|
const l = s.length;
|
|
2840
|
-
for (let
|
|
2840
|
+
for (let r = 0; r < e; r++)
|
|
2841
2841
|
n += s.charAt(Math.floor(Math.random() * l));
|
|
2842
2842
|
return n;
|
|
2843
2843
|
}
|
|
2844
|
-
const
|
|
2844
|
+
const Sa = { class: "col flex items-center" }, Ma = {
|
|
2845
2845
|
key: 1,
|
|
2846
2846
|
class: "q-pa-sm form-error-message text-error"
|
|
2847
|
-
},
|
|
2847
|
+
}, Hn = /* @__PURE__ */ ke({
|
|
2848
2848
|
__name: "CheckboxInput",
|
|
2849
2849
|
props: {
|
|
2850
2850
|
options: {
|
|
@@ -2902,7 +2902,7 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
2902
2902
|
},
|
|
2903
2903
|
emits: ["update:model-value"],
|
|
2904
2904
|
setup(e, { emit: t }) {
|
|
2905
|
-
const n = e, s = t, { t: l } =
|
|
2905
|
+
const n = e, s = t, { t: l } = He(), r = gt(!1), c = es(), u = q(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), m = `checkbox-${Aa(6)}`, p = q(() => u.value !== !0), N = q(
|
|
2906
2906
|
() => n.modelValue.filter((A) => n.options.some((M) => M.value === A))
|
|
2907
2907
|
), L = q(
|
|
2908
2908
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
@@ -2922,7 +2922,7 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
2922
2922
|
}
|
|
2923
2923
|
return (A, M) => {
|
|
2924
2924
|
const i = qe("FmCheckbox");
|
|
2925
|
-
return Q(), Me(
|
|
2925
|
+
return Q(), Me(Ca, {
|
|
2926
2926
|
id: m,
|
|
2927
2927
|
title: e.title,
|
|
2928
2928
|
required: !1
|
|
@@ -2936,21 +2936,21 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
2936
2936
|
"model-value": O.value,
|
|
2937
2937
|
disabled: e.disable,
|
|
2938
2938
|
label: L.value,
|
|
2939
|
-
style:
|
|
2939
|
+
style: Xe(`margin-bottom: ${n.gutter}px`),
|
|
2940
2940
|
size: "sm",
|
|
2941
2941
|
dense: "",
|
|
2942
2942
|
value: L.value,
|
|
2943
2943
|
"onUpdate:modelValue": w
|
|
2944
2944
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Se("", !0),
|
|
2945
|
-
(Q(!0), oe(Le, null,
|
|
2945
|
+
(Q(!0), oe(Le, null, he(e.options, (d, T) => (Q(), oe("div", {
|
|
2946
2946
|
key: d.value,
|
|
2947
|
-
style:
|
|
2948
|
-
class:
|
|
2947
|
+
style: Xe(`margin-bottom: ${T < e.options.length - 1 ? n.gutter : 0}px`),
|
|
2948
|
+
class: at(T < e.options.length - 1 ? "q-mb-sm" : "")
|
|
2949
2949
|
}, [
|
|
2950
2950
|
se("div", {
|
|
2951
|
-
class:
|
|
2951
|
+
class: at(["row justify-between", e.alignCenter ? "items-center" : "items-start"])
|
|
2952
2952
|
}, [
|
|
2953
|
-
se("div",
|
|
2953
|
+
se("div", Sa, [
|
|
2954
2954
|
_e(i, {
|
|
2955
2955
|
"model-value": e.modelValue.includes(d.value),
|
|
2956
2956
|
disabled: e.disable || d.disabled,
|
|
@@ -2966,7 +2966,7 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
2966
2966
|
]),
|
|
2967
2967
|
$(c)[`checkbox-${d.key || d.value}-end`] && (e.modelValue.includes(d.value) || e.falsyShowSlot) ? (Q(), oe("div", {
|
|
2968
2968
|
key: 0,
|
|
2969
|
-
class:
|
|
2969
|
+
class: at([{ "q-checkbox disabled": e.disable || d.disabled }, "col"])
|
|
2970
2970
|
}, [
|
|
2971
2971
|
Te(A.$slots, `checkbox-${d.key || d.value}-end`, {
|
|
2972
2972
|
option: d,
|
|
@@ -2977,8 +2977,8 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
2977
2977
|
], 2),
|
|
2978
2978
|
$(c)[`checkbox-${d.key || d.value}-bottom`] && (e.modelValue.includes(d.value) || e.falsyShowSlot) ? (Q(), oe("div", {
|
|
2979
2979
|
key: 0,
|
|
2980
|
-
class:
|
|
2981
|
-
style:
|
|
2980
|
+
class: at(["q-mt-sm", { "q-checkbox disabled": e.disable || d.disabled }]),
|
|
2981
|
+
style: Xe(`margin-left: ${e.bottomSlotIndent}`)
|
|
2982
2982
|
}, [
|
|
2983
2983
|
Te(A.$slots, `checkbox-${d.key || d.value}-bottom`, {
|
|
2984
2984
|
option: d,
|
|
@@ -2987,13 +2987,13 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
2987
2987
|
})
|
|
2988
2988
|
], 6)) : Se("", !0)
|
|
2989
2989
|
], 6))), 128)),
|
|
2990
|
-
|
|
2990
|
+
r.value && p.value ? (Q(), oe("div", Ma, Ie(u.value), 1)) : Se("", !0)
|
|
2991
2991
|
]),
|
|
2992
2992
|
_: 3
|
|
2993
2993
|
}, 8, ["title"]);
|
|
2994
2994
|
};
|
|
2995
2995
|
}
|
|
2996
|
-
}),
|
|
2996
|
+
}), Da = { class: "fm-typo-en-title-sm-600" }, ut = "includedFuture", Rn = /* @__PURE__ */ ke({
|
|
2997
2997
|
__name: "ConditionPermission",
|
|
2998
2998
|
props: {
|
|
2999
2999
|
modelValue: {
|
|
@@ -3015,7 +3015,7 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3015
3015
|
},
|
|
3016
3016
|
emits: ["update:model-value"],
|
|
3017
3017
|
setup(e, { emit: t }) {
|
|
3018
|
-
const n = e, s = t, { t: l } =
|
|
3018
|
+
const n = e, s = t, { t: l } = He(), r = q(() => [
|
|
3019
3019
|
{
|
|
3020
3020
|
label: l("team.memberForm.permissions.includedFuture", { context: n.context }),
|
|
3021
3021
|
value: ut,
|
|
@@ -3030,15 +3030,15 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3030
3030
|
return N === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: N });
|
|
3031
3031
|
});
|
|
3032
3032
|
function m(N) {
|
|
3033
|
-
const L = N.length ===
|
|
3033
|
+
const L = N.length === r.value.length;
|
|
3034
3034
|
s("update:model-value", L ? null : N.filter((O) => O !== ut));
|
|
3035
3035
|
}
|
|
3036
|
-
const p =
|
|
3036
|
+
const p = gt("");
|
|
3037
3037
|
return (N, L) => {
|
|
3038
3038
|
const O = qe("fm-search");
|
|
3039
|
-
return Q(), Me(
|
|
3039
|
+
return Q(), Me(Xt, { subtitle: u.value }, {
|
|
3040
3040
|
title: pe(() => [
|
|
3041
|
-
se("p",
|
|
3041
|
+
se("p", Da, Ie($(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3042
3042
|
]),
|
|
3043
3043
|
default: pe(() => [
|
|
3044
3044
|
e.options.length > 1 ? (Q(), Me(O, {
|
|
@@ -3048,9 +3048,9 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3048
3048
|
class: "mt-16",
|
|
3049
3049
|
placeholder: $(l)("team.memberForm.permissions.search", { context: e.context })
|
|
3050
3050
|
}, null, 8, ["modelValue", "placeholder"])) : Se("", !0),
|
|
3051
|
-
_e(
|
|
3051
|
+
_e(Hn, {
|
|
3052
3052
|
"model-value": c.value,
|
|
3053
|
-
options:
|
|
3053
|
+
options: r.value,
|
|
3054
3054
|
"show-intermediate": !1,
|
|
3055
3055
|
"show-all-toggle": !0,
|
|
3056
3056
|
disable: e.disable,
|
|
@@ -3058,8 +3058,8 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3058
3058
|
title: "",
|
|
3059
3059
|
class: "mt-16",
|
|
3060
3060
|
"onUpdate:modelValue": m
|
|
3061
|
-
},
|
|
3062
|
-
|
|
3061
|
+
}, Ge({ _: 2 }, [
|
|
3062
|
+
he(r.value, (w) => ({
|
|
3063
3063
|
name: `checkbox-${w.value}-append`,
|
|
3064
3064
|
fn: pe(({ option: V }) => [
|
|
3065
3065
|
Te(N.$slots, `checkbox-${w.value}-append`, { option: V })
|
|
@@ -3071,7 +3071,7 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3071
3071
|
}, 8, ["subtitle"]);
|
|
3072
3072
|
};
|
|
3073
3073
|
}
|
|
3074
|
-
}),
|
|
3074
|
+
}), wa = { class: "fm-typo-en-title-sm-600" }, mt = "includedNewRole", Pa = /* @__PURE__ */ ke({
|
|
3075
3075
|
__name: "PosRolePermission",
|
|
3076
3076
|
props: {
|
|
3077
3077
|
modelValue: {
|
|
@@ -3093,7 +3093,7 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3093
3093
|
},
|
|
3094
3094
|
emits: ["update:model-value"],
|
|
3095
3095
|
setup(e, { emit: t }) {
|
|
3096
|
-
const n = e, s = t, { t: l } =
|
|
3096
|
+
const n = e, s = t, { t: l } = He(), r = q(() => {
|
|
3097
3097
|
const p = n.restaurantIds;
|
|
3098
3098
|
return [
|
|
3099
3099
|
{
|
|
@@ -3112,25 +3112,25 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3112
3112
|
return p === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: p });
|
|
3113
3113
|
});
|
|
3114
3114
|
function m(p) {
|
|
3115
|
-
const N = p.length ===
|
|
3115
|
+
const N = p.length === r.value.length;
|
|
3116
3116
|
s("update:model-value", N ? null : p.filter((L) => L !== mt));
|
|
3117
3117
|
}
|
|
3118
|
-
return (p, N) => (Q(), Me(
|
|
3118
|
+
return (p, N) => (Q(), Me(Xt, { subtitle: u.value }, {
|
|
3119
3119
|
title: pe(() => [
|
|
3120
|
-
se("p",
|
|
3120
|
+
se("p", wa, Ie($(l)("team.memberForm.permissions.roles")), 1)
|
|
3121
3121
|
]),
|
|
3122
3122
|
default: pe(() => [
|
|
3123
|
-
_e(
|
|
3123
|
+
_e(Hn, {
|
|
3124
3124
|
"model-value": c.value,
|
|
3125
|
-
options:
|
|
3125
|
+
options: r.value,
|
|
3126
3126
|
"show-intermediate": !1,
|
|
3127
3127
|
"show-all-toggle": !1,
|
|
3128
3128
|
disable: e.disable,
|
|
3129
3129
|
title: "",
|
|
3130
3130
|
class: "mt-16",
|
|
3131
3131
|
"onUpdate:modelValue": m
|
|
3132
|
-
},
|
|
3133
|
-
|
|
3132
|
+
}, Ge({ _: 2 }, [
|
|
3133
|
+
he(r.value, (L) => ({
|
|
3134
3134
|
name: `checkbox-${L.value}-append`,
|
|
3135
3135
|
fn: pe(({ option: O }) => [
|
|
3136
3136
|
Te(p.$slots, `checkbox-${L.value}-append`, { option: O })
|
|
@@ -3141,11 +3141,11 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3141
3141
|
_: 3
|
|
3142
3142
|
}, 8, ["subtitle"]));
|
|
3143
3143
|
}
|
|
3144
|
-
}),
|
|
3144
|
+
}), Fa = {
|
|
3145
3145
|
async readWarehouses() {
|
|
3146
3146
|
return us(await ms().get("/warehouses"));
|
|
3147
3147
|
}
|
|
3148
|
-
},
|
|
3148
|
+
}, ja = { class: "flex flex-col gap-32" }, Ua = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Va = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Wa = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, xa = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, za = /* @__PURE__ */ ke({
|
|
3149
3149
|
__name: "PortalPermissionEditor",
|
|
3150
3150
|
props: /* @__PURE__ */ Qt({
|
|
3151
3151
|
disable: {
|
|
@@ -3162,16 +3162,16 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3162
3162
|
}),
|
|
3163
3163
|
emits: /* @__PURE__ */ Qt(["permissionChanged"], ["update:modelValue"]),
|
|
3164
3164
|
setup(e, { emit: t }) {
|
|
3165
|
-
const n = ts(e, "modelValue"), s = e, l = t, { t:
|
|
3165
|
+
const n = ts(e, "modelValue"), s = e, l = t, { t: r } = He(), { fetchCustomReportPermissions: c, customReportPermissions: u } = ss();
|
|
3166
3166
|
function m(y) {
|
|
3167
3167
|
return Mt.find((C) => C.subject === y) ?? u.value.find((C) => C.subject === y);
|
|
3168
3168
|
}
|
|
3169
3169
|
const p = q(() => {
|
|
3170
3170
|
const y = [...Mt, ...u.value].filter((v) => !w.includes(v.subject)).map((v) => v.subject);
|
|
3171
|
-
return
|
|
3171
|
+
return rs(
|
|
3172
3172
|
s.inheritPermissions.map((v) => ({
|
|
3173
3173
|
...v,
|
|
3174
|
-
permissions: v.permissions.filter((
|
|
3174
|
+
permissions: v.permissions.filter((x) => y.includes(x.subject))
|
|
3175
3175
|
}))
|
|
3176
3176
|
).map((v) => ({
|
|
3177
3177
|
id: v.subject,
|
|
@@ -3222,7 +3222,7 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3222
3222
|
(v) => v.subject === ue.Subject.Business.inventory_stock
|
|
3223
3223
|
);
|
|
3224
3224
|
return y ? y.conditions ? JSON.parse(y.conditions).warehouseId.$in : null : [];
|
|
3225
|
-
}), A =
|
|
3225
|
+
}), A = gt([]), M = q(() => A.value.map((y) => ({
|
|
3226
3226
|
label: y.profile.name,
|
|
3227
3227
|
value: y._id
|
|
3228
3228
|
})));
|
|
@@ -3232,28 +3232,28 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3232
3232
|
}
|
|
3233
3233
|
function d(y, C) {
|
|
3234
3234
|
let v = dt(
|
|
3235
|
-
y.filter((
|
|
3235
|
+
y.filter((x) => x.subject !== ue.Subject.Business.inventory_stock)
|
|
3236
3236
|
);
|
|
3237
3237
|
if (!C || C.length > 0) {
|
|
3238
|
-
const
|
|
3238
|
+
const x = {
|
|
3239
3239
|
actions: [ue.Action.manage],
|
|
3240
3240
|
subject: ue.Subject.Business.inventory_stock
|
|
3241
3241
|
};
|
|
3242
|
-
C && (
|
|
3242
|
+
C && (x.conditions = JSON.stringify({ warehouseId: { $in: C } })), v.push(x);
|
|
3243
3243
|
}
|
|
3244
3244
|
return v;
|
|
3245
3245
|
}
|
|
3246
3246
|
const { restaurants: T } = ns(), _ = ds().roles, D = q(() => T.value.map((y) => ({
|
|
3247
3247
|
label: `${y.profile.code ? y.profile.code + "-" : ""}${y.profile.name}`,
|
|
3248
3248
|
value: y._id
|
|
3249
|
-
}))), S = q(() => T.value.reduce((y, C) => (y[C._id] = _.value.filter((v) => v.restaurants.some((
|
|
3249
|
+
}))), S = q(() => T.value.reduce((y, C) => (y[C._id] = _.value.filter((v) => v.restaurants.some((x) => x.id === C._id)).map((v) => v._id), y), {})), E = q(() => as(n.value));
|
|
3250
3250
|
function Z(y) {
|
|
3251
3251
|
const C = b(n.value, y);
|
|
3252
3252
|
n.value = C;
|
|
3253
3253
|
}
|
|
3254
|
-
const
|
|
3254
|
+
const h = q(() => ls(n.value));
|
|
3255
3255
|
function b(y, C) {
|
|
3256
|
-
var
|
|
3256
|
+
var x;
|
|
3257
3257
|
let v = dt(
|
|
3258
3258
|
y.filter(
|
|
3259
3259
|
(W) => W.subject !== ue.Subject.Business.restaurant && W.subject !== ue.Subject.Restaurant.restaurant
|
|
@@ -3266,11 +3266,11 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3266
3266
|
...te
|
|
3267
3267
|
} = cs.restaurant;
|
|
3268
3268
|
v.push(te);
|
|
3269
|
-
const
|
|
3269
|
+
const B = {
|
|
3270
3270
|
actions: [ue.Action.manage],
|
|
3271
3271
|
subject: ue.Subject.Restaurant.restaurant
|
|
3272
3272
|
};
|
|
3273
|
-
C && (
|
|
3273
|
+
C && (B.conditions = JSON.stringify({ restaurantId: { $in: C } })), v.push(B);
|
|
3274
3274
|
}
|
|
3275
3275
|
if (C) {
|
|
3276
3276
|
const W = [
|
|
@@ -3278,7 +3278,7 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3278
3278
|
], j = _.value.map((te) => te._id);
|
|
3279
3279
|
W.length !== j.length && (v = I(
|
|
3280
3280
|
v,
|
|
3281
|
-
(
|
|
3281
|
+
(x = h.value || j) == null ? void 0 : x.filter((te) => W.includes(te))
|
|
3282
3282
|
));
|
|
3283
3283
|
}
|
|
3284
3284
|
return v;
|
|
@@ -3289,21 +3289,21 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3289
3289
|
}
|
|
3290
3290
|
function I(y, C) {
|
|
3291
3291
|
let v = dt(
|
|
3292
|
-
y.filter((
|
|
3292
|
+
y.filter((x) => x.subject !== ue.Subject.Business.role)
|
|
3293
3293
|
);
|
|
3294
3294
|
if (C && C.length > 0) {
|
|
3295
|
-
const
|
|
3295
|
+
const x = {
|
|
3296
3296
|
actions: [ue.Action.manage],
|
|
3297
3297
|
subject: ue.Subject.Business.role,
|
|
3298
3298
|
conditions: JSON.stringify({ roleId: { $in: C } })
|
|
3299
3299
|
};
|
|
3300
|
-
v.push(
|
|
3300
|
+
v.push(x);
|
|
3301
3301
|
}
|
|
3302
3302
|
return v;
|
|
3303
3303
|
}
|
|
3304
3304
|
Cn(async () => {
|
|
3305
3305
|
await Promise.all([
|
|
3306
|
-
|
|
3306
|
+
Fa.readWarehouses().then((y) => A.value = y),
|
|
3307
3307
|
c()
|
|
3308
3308
|
]);
|
|
3309
3309
|
});
|
|
@@ -3311,65 +3311,65 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3311
3311
|
n.value,
|
|
3312
3312
|
Lt
|
|
3313
3313
|
).filter((v) => {
|
|
3314
|
-
const
|
|
3315
|
-
return (
|
|
3314
|
+
const x = v.source;
|
|
3315
|
+
return (x == null ? void 0 : x.type) !== "systemPermissionSet" ? !0 : v.actions.includes("manage");
|
|
3316
3316
|
}).map((v) => {
|
|
3317
3317
|
if (v.inverted) return v;
|
|
3318
|
-
const
|
|
3319
|
-
if (!
|
|
3318
|
+
const x = v.actions;
|
|
3319
|
+
if (!x.includes("manage")) return v;
|
|
3320
3320
|
const W = m(v.subject);
|
|
3321
3321
|
if (!W) return v;
|
|
3322
3322
|
const j = W.actions;
|
|
3323
|
-
return j.length <= 1 || j.filter((
|
|
3323
|
+
return j.length <= 1 || j.filter((B) => !x.includes(B)).length === 0 ? v : { ...v, actions: [...j] };
|
|
3324
3324
|
}));
|
|
3325
|
-
function
|
|
3325
|
+
function G(y) {
|
|
3326
3326
|
const C = new Set(
|
|
3327
3327
|
F.value.filter((j) => !j.inverted).map((j) => j.subject)
|
|
3328
3328
|
), v = new Set(
|
|
3329
3329
|
y.filter((j) => !j.inverted).map((j) => j.subject)
|
|
3330
|
-
),
|
|
3330
|
+
), x = new Set(
|
|
3331
3331
|
n.value.filter((j) => !j.inverted).map((j) => j.subject)
|
|
3332
3332
|
);
|
|
3333
3333
|
let W = [...n.value];
|
|
3334
3334
|
for (const j of C)
|
|
3335
|
-
v.has(j) || (
|
|
3335
|
+
v.has(j) || (x.has(j) && (W = W.filter((B) => B.subject !== j)), (!x.has(j) || Ot(
|
|
3336
3336
|
W,
|
|
3337
3337
|
Lt
|
|
3338
3338
|
).some(
|
|
3339
|
-
(
|
|
3340
|
-
)) && !W.some((
|
|
3339
|
+
(B) => B.subject === j && !B.inverted && B.actions.includes("manage")
|
|
3340
|
+
)) && !W.some((B) => B.subject === j && B.inverted) && W.push({ subject: j, actions: ["manage"], inverted: !0 }));
|
|
3341
3341
|
for (const j of v)
|
|
3342
3342
|
if (!C.has(j)) {
|
|
3343
|
-
const te = W.some((
|
|
3344
|
-
if (W = W.filter((
|
|
3345
|
-
const
|
|
3343
|
+
const te = W.some((B) => B.subject === j && B.inverted);
|
|
3344
|
+
if (W = W.filter((B) => !(B.subject === j && B.inverted)), !te && !x.has(j)) {
|
|
3345
|
+
const B = y.find(
|
|
3346
3346
|
(fe) => fe.subject === j && !fe.inverted
|
|
3347
3347
|
), be = m(j);
|
|
3348
|
-
if (be &&
|
|
3349
|
-
const { category: fe, showByFeatureFlag:
|
|
3350
|
-
W.push({ ...
|
|
3348
|
+
if (be && B) {
|
|
3349
|
+
const { category: fe, showByFeatureFlag: H, ...X } = be;
|
|
3350
|
+
W.push({ ...X, actions: B.actions });
|
|
3351
3351
|
}
|
|
3352
3352
|
}
|
|
3353
3353
|
}
|
|
3354
3354
|
for (const j of v) {
|
|
3355
3355
|
if (!C.has(j)) continue;
|
|
3356
3356
|
const te = F.value.find(
|
|
3357
|
-
(
|
|
3358
|
-
),
|
|
3359
|
-
if (!te || !
|
|
3360
|
-
const be = new Set(te.actions), fe = new Set(
|
|
3361
|
-
if (be.size === fe.size && [...be].every((
|
|
3357
|
+
(X) => X.subject === j && !X.inverted
|
|
3358
|
+
), B = y.find((X) => X.subject === j && !X.inverted);
|
|
3359
|
+
if (!te || !B) continue;
|
|
3360
|
+
const be = new Set(te.actions), fe = new Set(B.actions);
|
|
3361
|
+
if (be.size === fe.size && [...be].every((X) => fe.has(X)))
|
|
3362
3362
|
continue;
|
|
3363
|
-
const
|
|
3364
|
-
if (
|
|
3365
|
-
W[
|
|
3366
|
-
...W[
|
|
3363
|
+
const H = W.findIndex((X) => X.subject === j && !X.inverted);
|
|
3364
|
+
if (H >= 0)
|
|
3365
|
+
W[H] = {
|
|
3366
|
+
...W[H],
|
|
3367
3367
|
actions: Array.from(fe)
|
|
3368
3368
|
};
|
|
3369
3369
|
else {
|
|
3370
|
-
const
|
|
3371
|
-
if (
|
|
3372
|
-
const { category: Ee, showByFeatureFlag: $e, ...Je } =
|
|
3370
|
+
const X = m(j);
|
|
3371
|
+
if (X) {
|
|
3372
|
+
const { category: Ee, showByFeatureFlag: $e, ...Je } = X;
|
|
3373
3373
|
W.push({ ...Je, actions: Array.from(fe) });
|
|
3374
3374
|
}
|
|
3375
3375
|
}
|
|
@@ -3378,7 +3378,7 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3378
3378
|
Lt
|
|
3379
3379
|
).some(
|
|
3380
3380
|
(Ee) => Ee.subject === j && !Ee.inverted && Ee.actions.includes("manage")
|
|
3381
|
-
) && !W.some((Ee) => Ee.subject === j && Ee.inverted) && W.push({ subject: j, actions: ["manage"], inverted: !0 }), !be.has("manage") && fe.has("manage") && (W = W.filter((
|
|
3381
|
+
) && !W.some((Ee) => Ee.subject === j && Ee.inverted) && W.push({ subject: j, actions: ["manage"], inverted: !0 }), !be.has("manage") && fe.has("manage") && (W = W.filter((X) => !(X.subject === j && X.inverted)));
|
|
3382
3382
|
}
|
|
3383
3383
|
n.value = W;
|
|
3384
3384
|
}
|
|
@@ -3388,15 +3388,15 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3388
3388
|
l("permissionChanged", y);
|
|
3389
3389
|
},
|
|
3390
3390
|
{ deep: !0 }
|
|
3391
|
-
), (y, C) => (Q(), oe("div",
|
|
3392
|
-
se("div",
|
|
3393
|
-
_e(
|
|
3391
|
+
), (y, C) => (Q(), oe("div", ja, [
|
|
3392
|
+
se("div", Ua, [
|
|
3393
|
+
_e(Ta, {
|
|
3394
3394
|
"model-value": F.value,
|
|
3395
3395
|
"excluded-subjects": w,
|
|
3396
3396
|
"additional-permissions": $(u),
|
|
3397
|
-
"onUpdate:modelValue":
|
|
3398
|
-
},
|
|
3399
|
-
|
|
3397
|
+
"onUpdate:modelValue": G
|
|
3398
|
+
}, Ge({ _: 2 }, [
|
|
3399
|
+
he(p.value, (v) => ({
|
|
3400
3400
|
name: `checkbox-${v.id}-append`,
|
|
3401
3401
|
fn: pe(() => [
|
|
3402
3402
|
_e(ct, { item: v }, null, 8, ["item"])
|
|
@@ -3404,14 +3404,14 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3404
3404
|
}))
|
|
3405
3405
|
]), 1032, ["model-value", "additional-permissions"])
|
|
3406
3406
|
]),
|
|
3407
|
-
se("div",
|
|
3407
|
+
se("div", Va, [
|
|
3408
3408
|
_e(Rn, {
|
|
3409
3409
|
"model-value": V.value,
|
|
3410
3410
|
options: M.value,
|
|
3411
|
-
context: $(
|
|
3411
|
+
context: $(r)("team.labels.warehouse"),
|
|
3412
3412
|
"onUpdate:modelValue": i
|
|
3413
|
-
},
|
|
3414
|
-
|
|
3413
|
+
}, Ge({ _: 2 }, [
|
|
3414
|
+
he(N.value, (v) => ({
|
|
3415
3415
|
name: `checkbox-${v.id}-append`,
|
|
3416
3416
|
fn: pe(() => [
|
|
3417
3417
|
_e(ct, { item: v }, null, 8, ["item"])
|
|
@@ -3419,14 +3419,14 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3419
3419
|
}))
|
|
3420
3420
|
]), 1032, ["model-value", "options", "context"])
|
|
3421
3421
|
]),
|
|
3422
|
-
se("div",
|
|
3422
|
+
se("div", Wa, [
|
|
3423
3423
|
_e(Rn, {
|
|
3424
3424
|
"model-value": E.value,
|
|
3425
3425
|
options: D.value,
|
|
3426
|
-
context: $(
|
|
3426
|
+
context: $(r)("team.labels.restaurant"),
|
|
3427
3427
|
"onUpdate:modelValue": Z
|
|
3428
|
-
},
|
|
3429
|
-
|
|
3428
|
+
}, Ge({ _: 2 }, [
|
|
3429
|
+
he(L.value, (v) => ({
|
|
3430
3430
|
name: `checkbox-${v.id}-append`,
|
|
3431
3431
|
fn: pe(() => [
|
|
3432
3432
|
_e(ct, { item: v }, null, 8, ["item"])
|
|
@@ -3434,14 +3434,14 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3434
3434
|
}))
|
|
3435
3435
|
]), 1032, ["model-value", "options", "context"])
|
|
3436
3436
|
]),
|
|
3437
|
-
se("div",
|
|
3438
|
-
_e(
|
|
3437
|
+
se("div", xa, [
|
|
3438
|
+
_e(Pa, {
|
|
3439
3439
|
roles: $(_),
|
|
3440
|
-
"model-value":
|
|
3440
|
+
"model-value": h.value,
|
|
3441
3441
|
"restaurant-ids": E.value,
|
|
3442
3442
|
"onUpdate:modelValue": R
|
|
3443
|
-
},
|
|
3444
|
-
|
|
3443
|
+
}, Ge({ _: 2 }, [
|
|
3444
|
+
he(O.value, (v) => ({
|
|
3445
3445
|
name: `checkbox-${v.id}-append`,
|
|
3446
3446
|
fn: pe(() => [
|
|
3447
3447
|
_e(ct, { item: v }, null, 8, ["item"])
|
|
@@ -3453,5 +3453,5 @@ const Sr = { class: "col flex items-center" }, Mr = {
|
|
|
3453
3453
|
}
|
|
3454
3454
|
});
|
|
3455
3455
|
export {
|
|
3456
|
-
|
|
3456
|
+
za as _
|
|
3457
3457
|
};
|