@feedmepos/mf-hrm-portal 2.0.13 → 2.0.15-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-BRLWRnMw.js → AuditLogList-DBIsI4YF.js} +4 -4
- package/dist/EmployeeList-BOSxLZbY.js +702 -0
- package/dist/{Main-CFRwFhOp.js → Main-B3YiMuFq.js} +9 -9
- package/dist/{Main-DDJqYruE.js → Main-BAZAQTWi.js} +4 -4
- package/dist/{Main-DX6DtLSq.js → Main-D7yzD5SW.js} +5 -5
- package/dist/{PermissionSetList-CfKgOGUa.js → PermissionSetList-DBT9LtfT.js} +15 -15
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CANjzJpE.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BfqnjeTK.js} +921 -921
- package/dist/{RoleList-DVW9rJKE.js → RoleList-DeE5tN-5.js} +7 -7
- package/dist/TeamMemberList-BCv5Vixx.js +1104 -0
- package/dist/{TimesheetList-DMuID6CQ.js → TimesheetList-DpMBgVtY.js} +7 -7
- package/dist/{app-jGOQVOD0.js → app-pvHHFjbx.js} +284 -242
- package/dist/app.js +2 -2
- package/dist/{dayjs.min-D2KkLYBN.js → dayjs.min-BK_bM9xY.js} +1 -1
- package/dist/{employee-Bh77woAn.js → employee-DhkixwiI.js} +4 -4
- package/dist/{index-BpdsYZQZ.js → index-Bckj5jnu.js} +17 -17
- package/dist/{index-DNRSCsVp.js → index-DK4fVbTF.js} +1 -1
- package/dist/{iteration-iewRosUH.js → iteration-Bk3cnP07.js} +2 -2
- package/dist/{lodash-BuzCumRN.js → lodash-TrOlqj07.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{timesheet-D-fS5DjW.js → timesheet-DSQeCVfL.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-RlI38pvN.js → useAppStore-DwfwjZpc.js} +1 -1
- package/dist/{useLoading-CJnGoe22.js → useLoading-fEAOlgoV.js} +1 -1
- package/dist/{useReportPermissions-CwzEzTF1.js → useReportPermissions-CkOk_2tl.js} +3 -3
- package/package.json +1 -1
- package/dist/EmployeeList-CaZN66DH.js +0 -700
- package/dist/TeamMemberList-CZDwbZVL.js +0 -1102
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { getCurrentInstance as xt, inject as
|
|
1
|
+
import { getCurrentInstance as xt, inject as $n, ref as Ue, shallowRef as zn, computed as te, watch as St, onMounted as Xt, onUnmounted as An, defineComponent as ye, h as Sn, createVNode as _e, Text as Kn, Fragment as Ee, resolveComponent as Ye, createBlock as Se, openBlock as H, withCtx as he, createElementVNode as ae, createElementBlock as se, toDisplayString as Ae, unref as B, renderList as be, renderSlot as ge, createCommentVNode as Oe, createTextVNode as Qn, useSlots as qn, normalizeStyle as ct, normalizeClass as qe, toRef as Qt, createSlots as Fe, nextTick as es, mergeModels as qt, useModel as ts } from "vue";
|
|
2
2
|
import { useI18n as _t, useCoreStore as ns } from "@feedmepos/mf-common";
|
|
3
3
|
import "@vue/devtools-api";
|
|
4
|
-
import { p as Dt, j as ss, x as as, y as yt, z as rs, l as ls, $ as
|
|
5
|
-
import { d as ut, g as os, b as is } from "./iteration-
|
|
6
|
-
import {
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as fs } from "./useAppStore-
|
|
4
|
+
import { p as Dt, j as ss, x as as, y as yt, z as rs, l as ls, $ as kt } from "./index-Bckj5jnu.js";
|
|
5
|
+
import { d as ut, g as os, b as is } from "./iteration-Bk3cnP07.js";
|
|
6
|
+
import { k as cs, d as us, i as me, C as ms, A as Tt } from "./app-pvHHFjbx.js";
|
|
7
|
+
import { u as ds } from "./index-DK4fVbTF.js";
|
|
8
|
+
import { u as fs } from "./useAppStore-DwfwjZpc.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 en = typeof window < "u", Ve = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), _s = (e, t, n) => ps({ l: e, k: t, s: n }), ps = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"),
|
|
14
|
+
const en = typeof window < "u", Ve = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), _s = (e, t, n) => ps({ l: e, k: t, s: n }), ps = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), de = (e) => typeof e == "number" && isFinite(e), bs = (e) => Yt(e) === "[object Date]", dt = (e) => Yt(e) === "[object RegExp]", pt = (e) => $(e) && Object.keys(e).length === 0, fe = Object.assign, hs = Object.create, q = (e = null) => hs(e);
|
|
15
15
|
let tn;
|
|
16
|
-
const
|
|
16
|
+
const je = () => tn || (tn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : q());
|
|
17
17
|
function nn(e) {
|
|
18
18
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
19
19
|
}
|
|
@@ -21,15 +21,15 @@ const gs = Object.prototype.hasOwnProperty;
|
|
|
21
21
|
function Ne(e, t) {
|
|
22
22
|
return gs.call(e, t);
|
|
23
23
|
}
|
|
24
|
-
const ue = Array.isArray, le = (e) => typeof e == "function", F = (e) => typeof e == "string", ce = (e) => typeof e == "boolean", z = (e) => e !== null && typeof e == "object", vs = (e) => z(e) && le(e.then) && le(e.catch), Dn = Object.prototype.toString,
|
|
25
|
-
function
|
|
24
|
+
const ue = Array.isArray, le = (e) => typeof e == "function", F = (e) => typeof e == "string", ce = (e) => typeof e == "boolean", z = (e) => e !== null && typeof e == "object", vs = (e) => z(e) && le(e.then) && le(e.catch), Dn = Object.prototype.toString, Yt = (e) => Dn.call(e), $ = (e) => Yt(e) === "[object Object]", Is = (e) => e == null ? "" : ue(e) || $(e) && e.toString === Dn ? JSON.stringify(e, null, 2) : String(e);
|
|
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
31
|
const rt = (e) => !z(e) || ue(e);
|
|
32
|
-
function
|
|
32
|
+
function mt(e, t) {
|
|
33
33
|
if (rt(e) || rt(t))
|
|
34
34
|
throw new Error("Invalid value");
|
|
35
35
|
const n = [{ src: e, des: t }];
|
|
@@ -64,20 +64,20 @@ const Q = {
|
|
|
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: a } = n, c = e,
|
|
69
|
-
return
|
|
67
|
+
function bt(e, t, n = {}) {
|
|
68
|
+
const { domain: s, messages: l, args: a } = n, c = e, m = new SyntaxError(String(c));
|
|
69
|
+
return m.code = e, t && (m.location = t), m.domain = s, m;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function ks(e) {
|
|
72
72
|
throw e;
|
|
73
73
|
}
|
|
74
|
-
const
|
|
74
|
+
const Te = " ", Ts = "\r", pe = `
|
|
75
75
|
`, Os = "\u2028", Ls = "\u2029";
|
|
76
|
-
function
|
|
76
|
+
function Cs(e) {
|
|
77
77
|
const t = e;
|
|
78
78
|
let n = 0, s = 1, l = 1, a = 0;
|
|
79
|
-
const c = (g) => t[g] ===
|
|
80
|
-
function
|
|
79
|
+
const c = (g) => t[g] === Ts && t[g + 1] === pe, m = (g) => t[g] === pe, u = (g) => t[g] === Ls, p = (g) => t[g] === Os, O = (g) => c(g) || m(g) || u(g) || p(g), C = () => n, N = () => s, P = () => l, V = () => a, L = (g) => c(g) || u(g) || p(g) ? pe : t[g], M = () => L(n), i = () => L(n + a);
|
|
80
|
+
function d() {
|
|
81
81
|
return a = 0, O(n) && (s++, l = 0), c(n) && n++, n++, l++, t[n];
|
|
82
82
|
}
|
|
83
83
|
function y() {
|
|
@@ -92,53 +92,53 @@ function Rs(e) {
|
|
|
92
92
|
function S() {
|
|
93
93
|
const g = n + a;
|
|
94
94
|
for (; g !== n; )
|
|
95
|
-
|
|
95
|
+
d();
|
|
96
96
|
a = 0;
|
|
97
97
|
}
|
|
98
98
|
return {
|
|
99
|
-
index:
|
|
99
|
+
index: C,
|
|
100
100
|
line: N,
|
|
101
101
|
column: P,
|
|
102
102
|
peekOffset: V,
|
|
103
103
|
charAt: L,
|
|
104
104
|
currentChar: M,
|
|
105
105
|
currentPeek: i,
|
|
106
|
-
next:
|
|
106
|
+
next: d,
|
|
107
107
|
peek: y,
|
|
108
108
|
reset: _,
|
|
109
109
|
resetPeek: w,
|
|
110
110
|
skipToPeek: S
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
|
-
const
|
|
113
|
+
const Re = void 0, Rs = ".", sn = "'", As = "tokenizer";
|
|
114
114
|
function Ss(e, t = {}) {
|
|
115
|
-
const n = t.location !== !1, s =
|
|
115
|
+
const n = t.location !== !1, s = Cs(e), l = () => s.index(), a = () => Ns(s.line(), s.column(), s.index()), c = a(), m = l(), u = {
|
|
116
116
|
currentType: 13,
|
|
117
|
-
offset:
|
|
117
|
+
offset: m,
|
|
118
118
|
startLoc: c,
|
|
119
119
|
endLoc: c,
|
|
120
120
|
lastType: 13,
|
|
121
|
-
lastOffset:
|
|
121
|
+
lastOffset: m,
|
|
122
122
|
lastStartLoc: c,
|
|
123
123
|
lastEndLoc: c,
|
|
124
124
|
braceNest: 0,
|
|
125
125
|
inLinked: !1,
|
|
126
126
|
text: ""
|
|
127
127
|
}, p = () => u, { onError: O } = t;
|
|
128
|
-
function
|
|
128
|
+
function C(r, o, h, ...U) {
|
|
129
129
|
const oe = p();
|
|
130
|
-
if (o.column +=
|
|
131
|
-
const
|
|
132
|
-
domain:
|
|
133
|
-
args:
|
|
130
|
+
if (o.column += h, o.offset += h, O) {
|
|
131
|
+
const Y = n ? Mt(oe.startLoc, o) : null, f = bt(r, Y, {
|
|
132
|
+
domain: As,
|
|
133
|
+
args: U
|
|
134
134
|
});
|
|
135
135
|
O(f);
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
function N(r, o,
|
|
138
|
+
function N(r, o, h) {
|
|
139
139
|
r.endLoc = a(), r.currentType = o;
|
|
140
|
-
const
|
|
141
|
-
return n && (
|
|
140
|
+
const U = { type: o };
|
|
141
|
+
return n && (U.loc = Mt(r.startLoc, r.endLoc)), h != null && (U.value = h), U;
|
|
142
142
|
}
|
|
143
143
|
const P = (r) => N(
|
|
144
144
|
r,
|
|
@@ -146,11 +146,11 @@ function Ss(e, t = {}) {
|
|
|
146
146
|
/* TokenTypes.EOF */
|
|
147
147
|
);
|
|
148
148
|
function V(r, o) {
|
|
149
|
-
return r.currentChar() === o ? (r.next(), o) : (
|
|
149
|
+
return r.currentChar() === o ? (r.next(), o) : (C(Q.EXPECTED_TOKEN, a(), 0, o), "");
|
|
150
150
|
}
|
|
151
151
|
function L(r) {
|
|
152
152
|
let o = "";
|
|
153
|
-
for (; r.currentPeek() ===
|
|
153
|
+
for (; r.currentPeek() === Te || r.currentPeek() === pe; )
|
|
154
154
|
o += r.currentPeek(), r.peek();
|
|
155
155
|
return o;
|
|
156
156
|
}
|
|
@@ -159,75 +159,75 @@ function Ss(e, t = {}) {
|
|
|
159
159
|
return r.skipToPeek(), o;
|
|
160
160
|
}
|
|
161
161
|
function i(r) {
|
|
162
|
-
if (r ===
|
|
162
|
+
if (r === Re)
|
|
163
163
|
return !1;
|
|
164
164
|
const o = r.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
|
|
170
|
-
if (r ===
|
|
169
|
+
function d(r) {
|
|
170
|
+
if (r === Re)
|
|
171
171
|
return !1;
|
|
172
172
|
const o = r.charCodeAt(0);
|
|
173
173
|
return o >= 48 && o <= 57;
|
|
174
174
|
}
|
|
175
175
|
function y(r, o) {
|
|
176
|
-
const { currentType:
|
|
177
|
-
if (
|
|
176
|
+
const { currentType: h } = o;
|
|
177
|
+
if (h !== 2)
|
|
178
178
|
return !1;
|
|
179
179
|
L(r);
|
|
180
|
-
const
|
|
181
|
-
return r.resetPeek(),
|
|
180
|
+
const U = i(r.currentPeek());
|
|
181
|
+
return r.resetPeek(), U;
|
|
182
182
|
}
|
|
183
183
|
function _(r, o) {
|
|
184
|
-
const { currentType:
|
|
185
|
-
if (
|
|
184
|
+
const { currentType: h } = o;
|
|
185
|
+
if (h !== 2)
|
|
186
186
|
return !1;
|
|
187
187
|
L(r);
|
|
188
|
-
const
|
|
188
|
+
const U = r.currentPeek() === "-" ? r.peek() : r.currentPeek(), oe = d(U);
|
|
189
189
|
return r.resetPeek(), oe;
|
|
190
190
|
}
|
|
191
191
|
function w(r, o) {
|
|
192
|
-
const { currentType:
|
|
193
|
-
if (
|
|
192
|
+
const { currentType: h } = o;
|
|
193
|
+
if (h !== 2)
|
|
194
194
|
return !1;
|
|
195
195
|
L(r);
|
|
196
|
-
const
|
|
197
|
-
return r.resetPeek(),
|
|
196
|
+
const U = r.currentPeek() === sn;
|
|
197
|
+
return r.resetPeek(), U;
|
|
198
198
|
}
|
|
199
199
|
function S(r, o) {
|
|
200
|
-
const { currentType:
|
|
201
|
-
if (
|
|
200
|
+
const { currentType: h } = o;
|
|
201
|
+
if (h !== 7)
|
|
202
202
|
return !1;
|
|
203
203
|
L(r);
|
|
204
|
-
const
|
|
205
|
-
return r.resetPeek(),
|
|
204
|
+
const U = r.currentPeek() === ".";
|
|
205
|
+
return r.resetPeek(), U;
|
|
206
206
|
}
|
|
207
207
|
function g(r, o) {
|
|
208
|
-
const { currentType:
|
|
209
|
-
if (
|
|
208
|
+
const { currentType: h } = o;
|
|
209
|
+
if (h !== 8)
|
|
210
210
|
return !1;
|
|
211
211
|
L(r);
|
|
212
|
-
const
|
|
213
|
-
return r.resetPeek(),
|
|
212
|
+
const U = i(r.currentPeek());
|
|
213
|
+
return r.resetPeek(), U;
|
|
214
214
|
}
|
|
215
215
|
function v(r, o) {
|
|
216
|
-
const { currentType:
|
|
217
|
-
if (!(
|
|
216
|
+
const { currentType: h } = o;
|
|
217
|
+
if (!(h === 7 || h === 11))
|
|
218
218
|
return !1;
|
|
219
219
|
L(r);
|
|
220
|
-
const
|
|
221
|
-
return r.resetPeek(),
|
|
220
|
+
const U = r.currentPeek() === ":";
|
|
221
|
+
return r.resetPeek(), U;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
const { currentType:
|
|
225
|
-
if (
|
|
223
|
+
function b(r, o) {
|
|
224
|
+
const { currentType: h } = o;
|
|
225
|
+
if (h !== 9)
|
|
226
226
|
return !1;
|
|
227
|
-
const
|
|
228
|
-
const
|
|
229
|
-
return
|
|
230
|
-
}, oe =
|
|
227
|
+
const U = () => {
|
|
228
|
+
const Y = r.currentPeek();
|
|
229
|
+
return Y === "{" ? i(r.peek()) : Y === "@" || Y === "|" || Y === ":" || Y === "." || Y === Te || !Y ? !1 : Y === pe ? (r.peek(), U()) : A(r, !1);
|
|
230
|
+
}, oe = U();
|
|
231
231
|
return r.resetPeek(), oe;
|
|
232
232
|
}
|
|
233
233
|
function E(r) {
|
|
@@ -235,16 +235,16 @@ function Ss(e, t = {}) {
|
|
|
235
235
|
const o = r.currentPeek() === "|";
|
|
236
236
|
return r.resetPeek(), o;
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
const
|
|
238
|
+
function A(r, o = !0) {
|
|
239
|
+
const h = (oe = !1, Y = "") => {
|
|
240
240
|
const f = r.currentPeek();
|
|
241
|
-
return f === "{" || f === "@" || !f ? oe : f === "|" ? !(
|
|
242
|
-
},
|
|
243
|
-
return o && r.resetPeek(),
|
|
241
|
+
return f === "{" || f === "@" || !f ? oe : f === "|" ? !(Y === Te || Y === pe) : f === Te ? (r.peek(), h(!0, Te)) : f === pe ? (r.peek(), h(!0, pe)) : !0;
|
|
242
|
+
}, U = h();
|
|
243
|
+
return o && r.resetPeek(), U;
|
|
244
244
|
}
|
|
245
|
-
function
|
|
246
|
-
const
|
|
247
|
-
return
|
|
245
|
+
function R(r, o) {
|
|
246
|
+
const h = r.currentChar();
|
|
247
|
+
return h === Re ? Re : o(h) ? (r.next(), h) : null;
|
|
248
248
|
}
|
|
249
249
|
function G(r) {
|
|
250
250
|
const o = r.charCodeAt(0);
|
|
@@ -255,7 +255,7 @@ function Ss(e, t = {}) {
|
|
|
255
255
|
o === 36;
|
|
256
256
|
}
|
|
257
257
|
function W(r) {
|
|
258
|
-
return
|
|
258
|
+
return R(r, G);
|
|
259
259
|
}
|
|
260
260
|
function D(r) {
|
|
261
261
|
const o = r.charCodeAt(0);
|
|
@@ -266,15 +266,15 @@ function Ss(e, t = {}) {
|
|
|
266
266
|
o === 36 || // $
|
|
267
267
|
o === 45;
|
|
268
268
|
}
|
|
269
|
-
function k(r) {
|
|
270
|
-
return A(r, D);
|
|
271
|
-
}
|
|
272
269
|
function T(r) {
|
|
270
|
+
return R(r, D);
|
|
271
|
+
}
|
|
272
|
+
function k(r) {
|
|
273
273
|
const o = r.charCodeAt(0);
|
|
274
274
|
return o >= 48 && o <= 57;
|
|
275
275
|
}
|
|
276
|
-
function
|
|
277
|
-
return
|
|
276
|
+
function Z(r) {
|
|
277
|
+
return R(r, k);
|
|
278
278
|
}
|
|
279
279
|
function x(r) {
|
|
280
280
|
const o = r.charCodeAt(0);
|
|
@@ -282,56 +282,56 @@ function Ss(e, t = {}) {
|
|
|
282
282
|
o >= 65 && o <= 70 || // A-F
|
|
283
283
|
o >= 97 && o <= 102;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
return
|
|
285
|
+
function j(r) {
|
|
286
|
+
return R(r, x);
|
|
287
287
|
}
|
|
288
288
|
function ne(r) {
|
|
289
|
-
let o = "",
|
|
290
|
-
for (; o =
|
|
291
|
-
|
|
292
|
-
return
|
|
289
|
+
let o = "", h = "";
|
|
290
|
+
for (; o = Z(r); )
|
|
291
|
+
h += o;
|
|
292
|
+
return h;
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function J(r) {
|
|
295
295
|
let o = "";
|
|
296
296
|
for (; ; ) {
|
|
297
|
-
const
|
|
298
|
-
if (
|
|
297
|
+
const h = r.currentChar();
|
|
298
|
+
if (h === "{" || h === "}" || h === "@" || h === "|" || !h)
|
|
299
299
|
break;
|
|
300
|
-
if (
|
|
301
|
-
if (
|
|
302
|
-
o +=
|
|
300
|
+
if (h === Te || h === pe)
|
|
301
|
+
if (A(r))
|
|
302
|
+
o += h, r.next();
|
|
303
303
|
else {
|
|
304
304
|
if (E(r))
|
|
305
305
|
break;
|
|
306
|
-
o +=
|
|
306
|
+
o += h, r.next();
|
|
307
307
|
}
|
|
308
308
|
else
|
|
309
|
-
o +=
|
|
309
|
+
o += h, r.next();
|
|
310
310
|
}
|
|
311
311
|
return o;
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function X(r) {
|
|
314
314
|
M(r);
|
|
315
|
-
let o = "",
|
|
316
|
-
for (; o =
|
|
317
|
-
|
|
318
|
-
return r.currentChar() ===
|
|
315
|
+
let o = "", h = "";
|
|
316
|
+
for (; o = T(r); )
|
|
317
|
+
h += o;
|
|
318
|
+
return r.currentChar() === Re && C(Q.UNTERMINATED_CLOSING_BRACE, a(), 0), h;
|
|
319
319
|
}
|
|
320
320
|
function K(r) {
|
|
321
321
|
M(r);
|
|
322
322
|
let o = "";
|
|
323
|
-
return r.currentChar() === "-" ? (r.next(), o += `-${ne(r)}`) : o += ne(r), r.currentChar() ===
|
|
323
|
+
return r.currentChar() === "-" ? (r.next(), o += `-${ne(r)}`) : o += ne(r), r.currentChar() === Re && C(Q.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
324
324
|
}
|
|
325
325
|
function we(r) {
|
|
326
326
|
return r !== sn && r !== pe;
|
|
327
327
|
}
|
|
328
328
|
function re(r) {
|
|
329
329
|
M(r), V(r, "'");
|
|
330
|
-
let o = "",
|
|
331
|
-
for (; o =
|
|
332
|
-
o === "\\" ?
|
|
333
|
-
const
|
|
334
|
-
return
|
|
330
|
+
let o = "", h = "";
|
|
331
|
+
for (; o = R(r, we); )
|
|
332
|
+
o === "\\" ? h += Ie(r) : h += o;
|
|
333
|
+
const U = r.currentChar();
|
|
334
|
+
return U === pe || U === Re ? (C(Q.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), U === pe && (r.next(), V(r, "'")), h) : (V(r, "'"), h);
|
|
335
335
|
}
|
|
336
336
|
function Ie(r) {
|
|
337
337
|
const o = r.currentChar();
|
|
@@ -340,46 +340,46 @@ function Ss(e, t = {}) {
|
|
|
340
340
|
case "'":
|
|
341
341
|
return r.next(), `\\${o}`;
|
|
342
342
|
case "u":
|
|
343
|
-
return
|
|
343
|
+
return Je(r, o, 4);
|
|
344
344
|
case "U":
|
|
345
|
-
return
|
|
345
|
+
return Je(r, o, 6);
|
|
346
346
|
default:
|
|
347
|
-
return
|
|
347
|
+
return C(Q.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function Je(r, o, h) {
|
|
351
351
|
V(r, o);
|
|
352
|
-
let
|
|
353
|
-
for (let oe = 0; oe <
|
|
354
|
-
const
|
|
355
|
-
if (!
|
|
356
|
-
|
|
352
|
+
let U = "";
|
|
353
|
+
for (let oe = 0; oe < h; oe++) {
|
|
354
|
+
const Y = j(r);
|
|
355
|
+
if (!Y) {
|
|
356
|
+
C(Q.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${U}${r.currentChar()}`);
|
|
357
357
|
break;
|
|
358
358
|
}
|
|
359
|
-
|
|
359
|
+
U += Y;
|
|
360
360
|
}
|
|
361
|
-
return `\\${o}${
|
|
361
|
+
return `\\${o}${U}`;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
return r !== "{" && r !== "}" && r !==
|
|
363
|
+
function $e(r) {
|
|
364
|
+
return r !== "{" && r !== "}" && r !== Te && r !== pe;
|
|
365
365
|
}
|
|
366
366
|
function vt(r) {
|
|
367
367
|
M(r);
|
|
368
|
-
let o = "",
|
|
369
|
-
for (; o =
|
|
370
|
-
|
|
371
|
-
return
|
|
368
|
+
let o = "", h = "";
|
|
369
|
+
for (; o = R(r, $e); )
|
|
370
|
+
h += o;
|
|
371
|
+
return h;
|
|
372
372
|
}
|
|
373
373
|
function It(r) {
|
|
374
|
-
let o = "",
|
|
374
|
+
let o = "", h = "";
|
|
375
375
|
for (; o = W(r); )
|
|
376
|
-
|
|
377
|
-
return
|
|
376
|
+
h += o;
|
|
377
|
+
return h;
|
|
378
378
|
}
|
|
379
379
|
function Et(r) {
|
|
380
|
-
const o = (
|
|
381
|
-
const
|
|
382
|
-
return
|
|
380
|
+
const o = (h) => {
|
|
381
|
+
const U = r.currentChar();
|
|
382
|
+
return U === "{" || U === "@" || U === "|" || U === "(" || U === ")" || !U || U === Te ? h : (h += U, r.next(), o(h));
|
|
383
383
|
};
|
|
384
384
|
return o("");
|
|
385
385
|
}
|
|
@@ -393,55 +393,55 @@ function Ss(e, t = {}) {
|
|
|
393
393
|
return M(r), o;
|
|
394
394
|
}
|
|
395
395
|
function We(r, o) {
|
|
396
|
-
let
|
|
396
|
+
let h = null;
|
|
397
397
|
switch (r.currentChar()) {
|
|
398
398
|
case "{":
|
|
399
|
-
return o.braceNest >= 1 &&
|
|
399
|
+
return o.braceNest >= 1 && C(Q.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), r.next(), h = N(
|
|
400
400
|
o,
|
|
401
401
|
2,
|
|
402
402
|
"{"
|
|
403
403
|
/* TokenChars.BraceLeft */
|
|
404
|
-
), M(r), o.braceNest++,
|
|
404
|
+
), M(r), o.braceNest++, h;
|
|
405
405
|
case "}":
|
|
406
|
-
return o.braceNest > 0 && o.currentType === 2 &&
|
|
406
|
+
return o.braceNest > 0 && o.currentType === 2 && C(Q.EMPTY_PLACEHOLDER, a(), 0), r.next(), h = N(
|
|
407
407
|
o,
|
|
408
408
|
3,
|
|
409
409
|
"}"
|
|
410
410
|
/* TokenChars.BraceRight */
|
|
411
|
-
), o.braceNest--, o.braceNest > 0 && M(r), o.inLinked && o.braceNest === 0 && (o.inLinked = !1),
|
|
411
|
+
), o.braceNest--, o.braceNest > 0 && M(r), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), h;
|
|
412
412
|
case "@":
|
|
413
|
-
return o.braceNest > 0 &&
|
|
413
|
+
return o.braceNest > 0 && C(Q.UNTERMINATED_CLOSING_BRACE, a(), 0), h = Ge(r, o) || P(o), o.braceNest = 0, h;
|
|
414
414
|
default: {
|
|
415
|
-
let oe = !0,
|
|
415
|
+
let oe = !0, Y = !0, f = !0;
|
|
416
416
|
if (E(r))
|
|
417
|
-
return o.braceNest > 0 &&
|
|
417
|
+
return o.braceNest > 0 && C(Q.UNTERMINATED_CLOSING_BRACE, a(), 0), h = N(o, 1, ze(r)), o.braceNest = 0, o.inLinked = !1, h;
|
|
418
418
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
419
|
-
return
|
|
419
|
+
return C(Q.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, Ke(r, o);
|
|
420
420
|
if (oe = y(r, o))
|
|
421
|
-
return
|
|
422
|
-
if (
|
|
423
|
-
return
|
|
421
|
+
return h = N(o, 4, X(r)), M(r), h;
|
|
422
|
+
if (Y = _(r, o))
|
|
423
|
+
return h = N(o, 5, K(r)), M(r), h;
|
|
424
424
|
if (f = w(r, o))
|
|
425
|
-
return
|
|
426
|
-
if (!oe && !
|
|
427
|
-
return
|
|
425
|
+
return h = N(o, 6, re(r)), M(r), h;
|
|
426
|
+
if (!oe && !Y && !f)
|
|
427
|
+
return h = N(o, 12, vt(r)), C(Q.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, h.value), M(r), h;
|
|
428
428
|
break;
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
return
|
|
431
|
+
return h;
|
|
432
432
|
}
|
|
433
433
|
function Ge(r, o) {
|
|
434
|
-
const { currentType:
|
|
435
|
-
let
|
|
434
|
+
const { currentType: h } = o;
|
|
435
|
+
let U = null;
|
|
436
436
|
const oe = r.currentChar();
|
|
437
|
-
switch ((
|
|
437
|
+
switch ((h === 7 || h === 8 || h === 11 || h === 9) && (oe === pe || oe === Te) && C(Q.INVALID_LINKED_FORMAT, a(), 0), oe) {
|
|
438
438
|
case "@":
|
|
439
|
-
return r.next(),
|
|
439
|
+
return r.next(), U = N(
|
|
440
440
|
o,
|
|
441
441
|
7,
|
|
442
442
|
"@"
|
|
443
443
|
/* TokenChars.LinkedAlias */
|
|
444
|
-
), o.inLinked = !0,
|
|
444
|
+
), o.inLinked = !0, U;
|
|
445
445
|
case ".":
|
|
446
446
|
return M(r), r.next(), N(
|
|
447
447
|
o,
|
|
@@ -457,11 +457,11 @@ function Ss(e, t = {}) {
|
|
|
457
457
|
/* TokenChars.LinkedDelimiter */
|
|
458
458
|
);
|
|
459
459
|
default:
|
|
460
|
-
return E(r) ? (
|
|
460
|
+
return E(r) ? (U = N(o, 1, ze(r)), o.braceNest = 0, o.inLinked = !1, U) : S(r, o) || v(r, o) ? (M(r), Ge(r, o)) : g(r, o) ? (M(r), N(o, 11, It(r))) : b(r, o) ? (M(r), oe === "{" ? We(r, o) || U : N(o, 10, Et(r))) : (h === 7 && C(Q.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, Ke(r, o));
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
function Ke(r, o) {
|
|
464
|
-
let
|
|
464
|
+
let h = {
|
|
465
465
|
type: 13
|
|
466
466
|
/* TokenTypes.EOF */
|
|
467
467
|
};
|
|
@@ -473,7 +473,7 @@ function Ss(e, t = {}) {
|
|
|
473
473
|
case "{":
|
|
474
474
|
return We(r, o) || P(o);
|
|
475
475
|
case "}":
|
|
476
|
-
return
|
|
476
|
+
return C(Q.UNBALANCED_CLOSING_BRACE, a(), 0), r.next(), N(
|
|
477
477
|
o,
|
|
478
478
|
3,
|
|
479
479
|
"}"
|
|
@@ -483,17 +483,17 @@ function Ss(e, t = {}) {
|
|
|
483
483
|
return Ge(r, o) || P(o);
|
|
484
484
|
default: {
|
|
485
485
|
if (E(r))
|
|
486
|
-
return
|
|
487
|
-
if (
|
|
488
|
-
return N(o, 0,
|
|
486
|
+
return h = N(o, 1, ze(r)), o.braceNest = 0, o.inLinked = !1, h;
|
|
487
|
+
if (A(r))
|
|
488
|
+
return N(o, 0, J(r));
|
|
489
489
|
break;
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
return
|
|
492
|
+
return h;
|
|
493
493
|
}
|
|
494
494
|
function Nt() {
|
|
495
|
-
const { currentType: r, offset: o, startLoc:
|
|
496
|
-
return u.lastType = r, u.lastOffset = o, u.lastStartLoc =
|
|
495
|
+
const { currentType: r, offset: o, startLoc: h, endLoc: U } = u;
|
|
496
|
+
return u.lastType = r, u.lastOffset = o, u.lastStartLoc = h, u.lastEndLoc = U, u.offset = l(), u.startLoc = a(), s.currentChar() === Re ? N(
|
|
497
497
|
u,
|
|
498
498
|
13
|
|
499
499
|
/* TokenTypes.EOF */
|
|
@@ -521,74 +521,74 @@ function ws(e, t, n) {
|
|
|
521
521
|
}
|
|
522
522
|
function Ps(e = {}) {
|
|
523
523
|
const t = e.location !== !1, { onError: n } = e;
|
|
524
|
-
function s(i,
|
|
524
|
+
function s(i, d, y, _, ...w) {
|
|
525
525
|
const S = i.currentPosition();
|
|
526
526
|
if (S.offset += _, S.column += _, n) {
|
|
527
|
-
const g = t ? Mt(y, S) : null, v =
|
|
527
|
+
const g = t ? Mt(y, S) : null, v = bt(d, g, {
|
|
528
528
|
domain: Ds,
|
|
529
529
|
args: w
|
|
530
530
|
});
|
|
531
531
|
n(v);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function l(i,
|
|
534
|
+
function l(i, d, y) {
|
|
535
535
|
const _ = { type: i };
|
|
536
|
-
return t && (_.start =
|
|
536
|
+
return t && (_.start = d, _.end = d, _.loc = { start: y, end: y }), _;
|
|
537
537
|
}
|
|
538
|
-
function a(i,
|
|
539
|
-
t && (i.end =
|
|
538
|
+
function a(i, d, y, _) {
|
|
539
|
+
t && (i.end = d, i.loc && (i.loc.end = y));
|
|
540
540
|
}
|
|
541
|
-
function c(i,
|
|
541
|
+
function c(i, d) {
|
|
542
542
|
const y = i.context(), _ = l(3, y.offset, y.startLoc);
|
|
543
|
-
return _.value =
|
|
543
|
+
return _.value = d, a(_, i.currentOffset(), i.currentPosition()), _;
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function m(i, d) {
|
|
546
546
|
const y = i.context(), { lastOffset: _, lastStartLoc: w } = y, S = l(5, _, w);
|
|
547
|
-
return S.index = parseInt(
|
|
547
|
+
return S.index = parseInt(d, 10), i.nextToken(), a(S, i.currentOffset(), i.currentPosition()), S;
|
|
548
548
|
}
|
|
549
|
-
function u(i,
|
|
549
|
+
function u(i, d) {
|
|
550
550
|
const y = i.context(), { lastOffset: _, lastStartLoc: w } = y, S = l(4, _, w);
|
|
551
|
-
return S.key =
|
|
551
|
+
return S.key = d, i.nextToken(), a(S, i.currentOffset(), i.currentPosition()), S;
|
|
552
552
|
}
|
|
553
|
-
function p(i,
|
|
553
|
+
function p(i, d) {
|
|
554
554
|
const y = i.context(), { lastOffset: _, lastStartLoc: w } = y, S = l(9, _, w);
|
|
555
|
-
return S.value =
|
|
555
|
+
return S.value = d.replace(Ms, ws), i.nextToken(), a(S, i.currentOffset(), i.currentPosition()), S;
|
|
556
556
|
}
|
|
557
557
|
function O(i) {
|
|
558
|
-
const
|
|
559
|
-
return
|
|
560
|
-
nextConsumeToken:
|
|
558
|
+
const d = i.nextToken(), y = i.context(), { lastOffset: _, lastStartLoc: w } = y, S = l(8, _, w);
|
|
559
|
+
return d.type !== 11 ? (s(i, Q.UNEXPECTED_EMPTY_LINKED_MODIFIER, y.lastStartLoc, 0), S.value = "", a(S, _, w), {
|
|
560
|
+
nextConsumeToken: d,
|
|
561
561
|
node: S
|
|
562
|
-
}) : (
|
|
562
|
+
}) : (d.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, ke(d)), S.value = d.value || "", a(S, i.currentOffset(), i.currentPosition()), {
|
|
563
563
|
node: S
|
|
564
564
|
});
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function C(i, d) {
|
|
567
567
|
const y = i.context(), _ = l(7, y.offset, y.startLoc);
|
|
568
|
-
return _.value =
|
|
568
|
+
return _.value = d, a(_, i.currentOffset(), i.currentPosition()), _;
|
|
569
569
|
}
|
|
570
570
|
function N(i) {
|
|
571
|
-
const
|
|
571
|
+
const d = i.context(), y = l(6, d.offset, d.startLoc);
|
|
572
572
|
let _ = i.nextToken();
|
|
573
573
|
if (_.type === 8) {
|
|
574
574
|
const w = O(i);
|
|
575
575
|
y.modifier = w.node, _ = w.nextConsumeToken || i.nextToken();
|
|
576
576
|
}
|
|
577
|
-
switch (_.type !== 9 && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
577
|
+
switch (_.type !== 9 && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ke(_)), _ = i.nextToken(), _.type === 2 && (_ = i.nextToken()), _.type) {
|
|
578
578
|
case 10:
|
|
579
|
-
_.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
579
|
+
_.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ke(_)), y.key = C(i, _.value || "");
|
|
580
580
|
break;
|
|
581
581
|
case 4:
|
|
582
|
-
_.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
582
|
+
_.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ke(_)), y.key = u(i, _.value || "");
|
|
583
583
|
break;
|
|
584
584
|
case 5:
|
|
585
|
-
_.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
585
|
+
_.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ke(_)), y.key = m(i, _.value || "");
|
|
586
586
|
break;
|
|
587
587
|
case 6:
|
|
588
|
-
_.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
588
|
+
_.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ke(_)), y.key = p(i, _.value || "");
|
|
589
589
|
break;
|
|
590
590
|
default: {
|
|
591
|
-
s(i, Q.UNEXPECTED_EMPTY_LINKED_KEY,
|
|
591
|
+
s(i, Q.UNEXPECTED_EMPTY_LINKED_KEY, d.lastStartLoc, 0);
|
|
592
592
|
const w = i.context(), S = l(7, w.offset, w.startLoc);
|
|
593
593
|
return S.value = "", a(S, w.offset, w.startLoc), y.key = S, a(y, w.offset, w.startLoc), {
|
|
594
594
|
nextConsumeToken: _,
|
|
@@ -601,23 +601,23 @@ function Ps(e = {}) {
|
|
|
601
601
|
};
|
|
602
602
|
}
|
|
603
603
|
function P(i) {
|
|
604
|
-
const
|
|
604
|
+
const d = i.context(), y = d.currentType === 1 ? i.currentOffset() : d.offset, _ = d.currentType === 1 ? d.endLoc : d.startLoc, w = l(2, y, _);
|
|
605
605
|
w.items = [];
|
|
606
606
|
let S = null;
|
|
607
607
|
do {
|
|
608
|
-
const
|
|
609
|
-
switch (S = null,
|
|
608
|
+
const b = S || i.nextToken();
|
|
609
|
+
switch (S = null, b.type) {
|
|
610
610
|
case 0:
|
|
611
|
-
|
|
611
|
+
b.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ke(b)), w.items.push(c(i, b.value || ""));
|
|
612
612
|
break;
|
|
613
613
|
case 5:
|
|
614
|
-
|
|
614
|
+
b.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ke(b)), w.items.push(m(i, b.value || ""));
|
|
615
615
|
break;
|
|
616
616
|
case 4:
|
|
617
|
-
|
|
617
|
+
b.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ke(b)), w.items.push(u(i, b.value || ""));
|
|
618
618
|
break;
|
|
619
619
|
case 6:
|
|
620
|
-
|
|
620
|
+
b.value == null && s(i, Q.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ke(b)), w.items.push(p(i, b.value || ""));
|
|
621
621
|
break;
|
|
622
622
|
case 7: {
|
|
623
623
|
const E = N(i);
|
|
@@ -625,14 +625,14 @@ function Ps(e = {}) {
|
|
|
625
625
|
break;
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
|
-
} while (
|
|
629
|
-
const g =
|
|
628
|
+
} while (d.currentType !== 13 && d.currentType !== 1);
|
|
629
|
+
const g = d.currentType === 1 ? d.lastOffset : i.currentOffset(), v = d.currentType === 1 ? d.lastEndLoc : i.currentPosition();
|
|
630
630
|
return a(w, g, v), w;
|
|
631
631
|
}
|
|
632
|
-
function V(i,
|
|
632
|
+
function V(i, d, y, _) {
|
|
633
633
|
const w = i.context();
|
|
634
634
|
let S = _.items.length === 0;
|
|
635
|
-
const g = l(1,
|
|
635
|
+
const g = l(1, d, y);
|
|
636
636
|
g.cases = [], g.cases.push(_);
|
|
637
637
|
do {
|
|
638
638
|
const v = P(i);
|
|
@@ -641,16 +641,16 @@ function Ps(e = {}) {
|
|
|
641
641
|
return S && s(i, Q.MUST_HAVE_MESSAGES_IN_PLURAL, y, 0), a(g, i.currentOffset(), i.currentPosition()), g;
|
|
642
642
|
}
|
|
643
643
|
function L(i) {
|
|
644
|
-
const
|
|
645
|
-
return
|
|
644
|
+
const d = i.context(), { offset: y, startLoc: _ } = d, w = P(i);
|
|
645
|
+
return d.currentType === 13 ? w : V(i, y, _, w);
|
|
646
646
|
}
|
|
647
647
|
function M(i) {
|
|
648
|
-
const
|
|
649
|
-
return t && _.loc && (_.loc.source = i), _.body = L(
|
|
648
|
+
const d = Ss(i, fe({}, e)), y = d.context(), _ = l(0, y.offset, y.startLoc);
|
|
649
|
+
return t && _.loc && (_.loc.source = i), _.body = L(d), e.onCacheKey && (_.cacheKey = e.onCacheKey(i)), y.currentType !== 13 && s(d, Q.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, i[y.offset] || ""), a(_, d.currentOffset(), d.currentPosition()), _;
|
|
650
650
|
}
|
|
651
651
|
return { parse: M };
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function ke(e) {
|
|
654
654
|
if (e.type === 13)
|
|
655
655
|
return "EOF";
|
|
656
656
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
@@ -665,9 +665,9 @@ function Fs(e, t = {}) {
|
|
|
665
665
|
}
|
|
666
666
|
function an(e, t) {
|
|
667
667
|
for (let n = 0; n < e.length; n++)
|
|
668
|
-
|
|
668
|
+
Ht(e[n], t);
|
|
669
669
|
}
|
|
670
|
-
function
|
|
670
|
+
function Ht(e, t) {
|
|
671
671
|
switch (e.type) {
|
|
672
672
|
case 1:
|
|
673
673
|
an(e.cases, t), t.helper(
|
|
@@ -679,7 +679,7 @@ function Bt(e, t) {
|
|
|
679
679
|
an(e.items, t);
|
|
680
680
|
break;
|
|
681
681
|
case 6: {
|
|
682
|
-
|
|
682
|
+
Ht(e.key, t), t.helper(
|
|
683
683
|
"linked"
|
|
684
684
|
/* HelperNameMap.LINKED */
|
|
685
685
|
), t.helper(
|
|
@@ -708,16 +708,16 @@ function Bt(e, t) {
|
|
|
708
708
|
break;
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function js(e, t = {}) {
|
|
712
712
|
const n = Fs(e);
|
|
713
713
|
n.helper(
|
|
714
714
|
"normalize"
|
|
715
715
|
/* HelperNameMap.NORMALIZE */
|
|
716
|
-
), e.body &&
|
|
716
|
+
), e.body && Ht(e.body, n);
|
|
717
717
|
const s = n.context();
|
|
718
718
|
e.helpers = Array.from(s.helpers);
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function Us(e) {
|
|
721
721
|
const t = e.body;
|
|
722
722
|
return t.type === 2 ? rn(t) : t.cases.forEach((n) => rn(n)), e;
|
|
723
723
|
}
|
|
@@ -734,7 +734,7 @@ function rn(e) {
|
|
|
734
734
|
t.push(s.value);
|
|
735
735
|
}
|
|
736
736
|
if (t.length === e.items.length) {
|
|
737
|
-
e.static =
|
|
737
|
+
e.static = Zt(t);
|
|
738
738
|
for (let n = 0; n < e.items.length; n++) {
|
|
739
739
|
const s = e.items[n];
|
|
740
740
|
(s.type === 3 || s.type === 9) && delete s.value;
|
|
@@ -742,24 +742,24 @@ function rn(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 Ye(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: {
|
|
@@ -802,7 +802,7 @@ function Vs(e, t) {
|
|
|
802
802
|
indentLevel: 0
|
|
803
803
|
};
|
|
804
804
|
a && e.loc && (c.source = e.loc.source);
|
|
805
|
-
const
|
|
805
|
+
const m = () => c;
|
|
806
806
|
function u(L, M) {
|
|
807
807
|
c.code += L;
|
|
808
808
|
}
|
|
@@ -814,7 +814,7 @@ function Vs(e, t) {
|
|
|
814
814
|
const M = ++c.indentLevel;
|
|
815
815
|
L && p(M);
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function C(L = !0) {
|
|
818
818
|
const M = --c.indentLevel;
|
|
819
819
|
L && p(M);
|
|
820
820
|
}
|
|
@@ -822,10 +822,10 @@ function Vs(e, t) {
|
|
|
822
822
|
p(c.indentLevel);
|
|
823
823
|
}
|
|
824
824
|
return {
|
|
825
|
-
context:
|
|
825
|
+
context: m,
|
|
826
826
|
push: u,
|
|
827
827
|
indent: O,
|
|
828
|
-
deindent:
|
|
828
|
+
deindent: C,
|
|
829
829
|
newline: N,
|
|
830
830
|
helper: (L) => `_${L}`,
|
|
831
831
|
needIndent: () => c.needIndent
|
|
@@ -836,7 +836,7 @@ function Ws(e, t) {
|
|
|
836
836
|
e.push(`${n(
|
|
837
837
|
"linked"
|
|
838
838
|
/* HelperNameMap.LINKED */
|
|
839
|
-
)}(`),
|
|
839
|
+
)}(`), Ze(e, t.key), t.modifier ? (e.push(", "), Ze(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
840
840
|
}
|
|
841
841
|
function Gs(e, t) {
|
|
842
842
|
const { helper: n, needIndent: s } = e;
|
|
@@ -845,7 +845,7 @@ function Gs(e, t) {
|
|
|
845
845
|
/* HelperNameMap.NORMALIZE */
|
|
846
846
|
)}([`), e.indent(s());
|
|
847
847
|
const l = t.items.length;
|
|
848
|
-
for (let a = 0; a < l && (
|
|
848
|
+
for (let a = 0; a < l && (Ze(e, t.items[a]), a !== l - 1); a++)
|
|
849
849
|
e.push(", ");
|
|
850
850
|
e.deindent(s()), e.push("])");
|
|
851
851
|
}
|
|
@@ -857,19 +857,19 @@ function xs(e, t) {
|
|
|
857
857
|
/* HelperNameMap.PLURAL */
|
|
858
858
|
)}([`), e.indent(s());
|
|
859
859
|
const l = t.cases.length;
|
|
860
|
-
for (let a = 0; a < l && (
|
|
860
|
+
for (let a = 0; a < l && (Ze(e, t.cases[a]), a !== l - 1); a++)
|
|
861
861
|
e.push(", ");
|
|
862
862
|
e.deindent(s()), e.push("])");
|
|
863
863
|
}
|
|
864
864
|
}
|
|
865
|
-
function
|
|
866
|
-
t.body ?
|
|
865
|
+
function Xs(e, t) {
|
|
866
|
+
t.body ? Ze(e, t.body) : e.push("null");
|
|
867
867
|
}
|
|
868
|
-
function
|
|
868
|
+
function Ze(e, t) {
|
|
869
869
|
const { helper: n } = e;
|
|
870
870
|
switch (t.type) {
|
|
871
871
|
case 0:
|
|
872
|
-
|
|
872
|
+
Xs(e, t);
|
|
873
873
|
break;
|
|
874
874
|
case 1:
|
|
875
875
|
xs(e, t);
|
|
@@ -912,17 +912,17 @@ function Xe(e, t) {
|
|
|
912
912
|
break;
|
|
913
913
|
}
|
|
914
914
|
}
|
|
915
|
-
const
|
|
915
|
+
const Ys = (e, t = {}) => {
|
|
916
916
|
const n = F(t.mode) ? t.mode : "normal", s = F(t.filename) ? t.filename : "message.intl";
|
|
917
917
|
t.sourceMap;
|
|
918
918
|
const l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
919
|
-
`, a = t.needIndent ? t.needIndent : n !== "arrow", c = e.helpers || [],
|
|
919
|
+
`, a = t.needIndent ? t.needIndent : n !== "arrow", c = e.helpers || [], m = Vs(e, {
|
|
920
920
|
filename: s,
|
|
921
921
|
breakLineCode: l,
|
|
922
922
|
needIndent: a
|
|
923
923
|
});
|
|
924
|
-
|
|
925
|
-
const { code: u, map: p } =
|
|
924
|
+
m.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), m.indent(a), c.length > 0 && (m.push(`const { ${Zt(c.map((O) => `${O}: _${O}`), ", ")} } = ctx`), m.newline()), m.push("return "), Ze(m, e), m.deindent(a), m.push("}"), delete e.helpers;
|
|
925
|
+
const { code: u, map: p } = m.context();
|
|
926
926
|
return {
|
|
927
927
|
ast: e,
|
|
928
928
|
code: u,
|
|
@@ -930,36 +930,36 @@ const Zs = (e, t = {}) => {
|
|
|
930
930
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
931
931
|
};
|
|
932
932
|
};
|
|
933
|
-
function
|
|
934
|
-
const n = fe({}, t), s = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize,
|
|
935
|
-
return s ? (a &&
|
|
933
|
+
function Zs(e, t = {}) {
|
|
934
|
+
const n = fe({}, t), s = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize, m = Ps(n).parse(e);
|
|
935
|
+
return s ? (a && Us(m), l && Xe(m), { ast: m, code: "" }) : (js(m, n), Ys(m, n));
|
|
936
936
|
}
|
|
937
|
-
var
|
|
938
|
-
function
|
|
939
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
937
|
+
var Hs = { env: { NODE_ENV: "production" } };
|
|
938
|
+
function Bs() {
|
|
939
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (je().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (je().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
940
940
|
}
|
|
941
941
|
function Ot(e) {
|
|
942
|
-
return (n) =>
|
|
942
|
+
return (n) => Js(n, e);
|
|
943
943
|
}
|
|
944
|
-
function
|
|
944
|
+
function Js(e, t) {
|
|
945
945
|
const n = zs(t);
|
|
946
946
|
if (n == null)
|
|
947
947
|
throw et(
|
|
948
948
|
0
|
|
949
949
|
/* NodeTypes.Resource */
|
|
950
950
|
);
|
|
951
|
-
if (
|
|
951
|
+
if (Bt(n) === 1) {
|
|
952
952
|
const a = Qs(n);
|
|
953
|
-
return e.plural(a.reduce((c,
|
|
953
|
+
return e.plural(a.reduce((c, m) => [
|
|
954
954
|
...c,
|
|
955
|
-
ln(e,
|
|
955
|
+
ln(e, m)
|
|
956
956
|
], []));
|
|
957
957
|
} else
|
|
958
958
|
return ln(e, n);
|
|
959
959
|
}
|
|
960
|
-
const
|
|
960
|
+
const $s = ["b", "body"];
|
|
961
961
|
function zs(e) {
|
|
962
|
-
return De(e,
|
|
962
|
+
return De(e, $s);
|
|
963
963
|
}
|
|
964
964
|
const Ks = ["c", "cases"];
|
|
965
965
|
function Qs(e) {
|
|
@@ -983,7 +983,7 @@ function na(e) {
|
|
|
983
983
|
return De(e, ta, []);
|
|
984
984
|
}
|
|
985
985
|
function wt(e, t) {
|
|
986
|
-
const n =
|
|
986
|
+
const n = Bt(t);
|
|
987
987
|
switch (n) {
|
|
988
988
|
case 3:
|
|
989
989
|
return lt(t, n);
|
|
@@ -999,9 +999,9 @@ function wt(e, t) {
|
|
|
999
999
|
}
|
|
1000
1000
|
case 5: {
|
|
1001
1001
|
const s = t;
|
|
1002
|
-
if (Ne(s, "i") &&
|
|
1002
|
+
if (Ne(s, "i") && de(s.i))
|
|
1003
1003
|
return e.interpolate(e.list(s.i));
|
|
1004
|
-
if (Ne(s, "index") &&
|
|
1004
|
+
if (Ne(s, "index") && de(s.index))
|
|
1005
1005
|
return e.interpolate(e.list(s.index));
|
|
1006
1006
|
throw et(n);
|
|
1007
1007
|
}
|
|
@@ -1018,7 +1018,7 @@ function wt(e, t) {
|
|
|
1018
1018
|
}
|
|
1019
1019
|
}
|
|
1020
1020
|
const sa = ["t", "type"];
|
|
1021
|
-
function
|
|
1021
|
+
function Bt(e) {
|
|
1022
1022
|
return De(e, sa);
|
|
1023
1023
|
}
|
|
1024
1024
|
const aa = ["v", "value"];
|
|
@@ -1055,18 +1055,18 @@ function et(e) {
|
|
|
1055
1055
|
}
|
|
1056
1056
|
const ca = (e) => e;
|
|
1057
1057
|
let ot = q();
|
|
1058
|
-
function
|
|
1059
|
-
return z(e) &&
|
|
1058
|
+
function He(e) {
|
|
1059
|
+
return z(e) && Bt(e) === 0 && (Ne(e, "b") || Ne(e, "body"));
|
|
1060
1060
|
}
|
|
1061
1061
|
function ua(e, t = {}) {
|
|
1062
1062
|
let n = !1;
|
|
1063
|
-
const s = t.onError ||
|
|
1063
|
+
const s = t.onError || ks;
|
|
1064
1064
|
return t.onError = (l) => {
|
|
1065
1065
|
n = !0, s(l);
|
|
1066
|
-
}, { ...
|
|
1066
|
+
}, { ...Zs(e, t), detectError: n };
|
|
1067
1067
|
}
|
|
1068
1068
|
// @__NO_SIDE_EFFECTS__
|
|
1069
|
-
function
|
|
1069
|
+
function ma(e, t) {
|
|
1070
1070
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && F(e)) {
|
|
1071
1071
|
ce(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1072
1072
|
const s = (t.onCacheKey || ca)(e), l = ot[s];
|
|
@@ -1074,10 +1074,10 @@ function da(e, t) {
|
|
|
1074
1074
|
return l;
|
|
1075
1075
|
const { ast: a, detectError: c } = ua(e, {
|
|
1076
1076
|
...t,
|
|
1077
|
-
location:
|
|
1077
|
+
location: Hs.env.NODE_ENV !== "production",
|
|
1078
1078
|
jit: !0
|
|
1079
|
-
}),
|
|
1080
|
-
return c ?
|
|
1079
|
+
}), m = Ot(a);
|
|
1080
|
+
return c ? m : ot[s] = m;
|
|
1081
1081
|
} else {
|
|
1082
1082
|
const n = e.cacheKey;
|
|
1083
1083
|
if (n) {
|
|
@@ -1088,7 +1088,7 @@ function da(e, t) {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
1090
|
let tt = null;
|
|
1091
|
-
function
|
|
1091
|
+
function da(e) {
|
|
1092
1092
|
tt = e;
|
|
1093
1093
|
}
|
|
1094
1094
|
function fa(e, t, n) {
|
|
@@ -1111,11 +1111,11 @@ const Le = {
|
|
|
1111
1111
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1112
1112
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1113
1113
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1114
|
-
},
|
|
1115
|
-
function
|
|
1116
|
-
return
|
|
1114
|
+
}, ba = 24;
|
|
1115
|
+
function Ce(e) {
|
|
1116
|
+
return bt(e, null, void 0);
|
|
1117
1117
|
}
|
|
1118
|
-
function
|
|
1118
|
+
function Jt(e, t) {
|
|
1119
1119
|
return t.locale != null ? on(t.locale) : on(e.locale);
|
|
1120
1120
|
}
|
|
1121
1121
|
let Lt;
|
|
@@ -1128,14 +1128,14 @@ function on(e) {
|
|
|
1128
1128
|
if (e.constructor.name === "Function") {
|
|
1129
1129
|
const t = e();
|
|
1130
1130
|
if (vs(t))
|
|
1131
|
-
throw
|
|
1131
|
+
throw Ce(Le.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1132
1132
|
return Lt = t;
|
|
1133
1133
|
} else
|
|
1134
|
-
throw
|
|
1134
|
+
throw Ce(Le.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1135
1135
|
} else
|
|
1136
|
-
throw
|
|
1136
|
+
throw Ce(Le.NOT_SUPPORT_LOCALE_TYPE);
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1138
|
+
function ha(e, t, n) {
|
|
1139
1139
|
return [.../* @__PURE__ */ new Set([
|
|
1140
1140
|
n,
|
|
1141
1141
|
...ue(t) ? t : z(t) ? Object.keys(t) : F(t) ? [t] : [n]
|
|
@@ -1150,8 +1150,8 @@ function Mn(e, t, n) {
|
|
|
1150
1150
|
let c = [n];
|
|
1151
1151
|
for (; ue(c); )
|
|
1152
1152
|
c = cn(a, c, t);
|
|
1153
|
-
const
|
|
1154
|
-
c = F(
|
|
1153
|
+
const m = ue(t) || !$(t) ? t : t.default ? t.default : null;
|
|
1154
|
+
c = F(m) ? [m] : m, ue(c) && cn(a, c, !1), l.__localeChainCache.set(s, a);
|
|
1155
1155
|
}
|
|
1156
1156
|
return a;
|
|
1157
1157
|
}
|
|
@@ -1177,7 +1177,7 @@ function va(e, t, n) {
|
|
|
1177
1177
|
if (!e.includes(t) && (s = !0, t)) {
|
|
1178
1178
|
s = t[t.length - 1] !== "!";
|
|
1179
1179
|
const l = t.replace(/!/g, "");
|
|
1180
|
-
e.push(l), (ue(n) ||
|
|
1180
|
+
e.push(l), (ue(n) || $(n)) && n[l] && (s = n[l]);
|
|
1181
1181
|
}
|
|
1182
1182
|
return s;
|
|
1183
1183
|
}
|
|
@@ -1375,19 +1375,19 @@ function ya(e) {
|
|
|
1375
1375
|
}
|
|
1376
1376
|
return "i";
|
|
1377
1377
|
}
|
|
1378
|
-
function
|
|
1378
|
+
function ka(e) {
|
|
1379
1379
|
const t = e.trim();
|
|
1380
1380
|
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Ea(t) ? Na(t) : "*" + t;
|
|
1381
1381
|
}
|
|
1382
|
-
function
|
|
1382
|
+
function Ta(e) {
|
|
1383
1383
|
const t = [];
|
|
1384
|
-
let n = -1, s = 0, l = 0, a, c,
|
|
1384
|
+
let n = -1, s = 0, l = 0, a, c, m, u, p, O, C;
|
|
1385
1385
|
const N = [];
|
|
1386
1386
|
N[
|
|
1387
1387
|
0
|
|
1388
1388
|
/* Actions.APPEND */
|
|
1389
1389
|
] = () => {
|
|
1390
|
-
c === void 0 ? c =
|
|
1390
|
+
c === void 0 ? c = m : c += m;
|
|
1391
1391
|
}, N[
|
|
1392
1392
|
1
|
|
1393
1393
|
/* Actions.PUSH */
|
|
@@ -1411,7 +1411,7 @@ function ka(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 = ka(c), c === !1))
|
|
1415
1415
|
return !1;
|
|
1416
1416
|
N[
|
|
1417
1417
|
1
|
|
@@ -1422,14 +1422,14 @@ function ka(e) {
|
|
|
1422
1422
|
function P() {
|
|
1423
1423
|
const V = e[n + 1];
|
|
1424
1424
|
if (s === 5 && V === "'" || s === 6 && V === '"')
|
|
1425
|
-
return n++,
|
|
1425
|
+
return n++, m = "\\" + V, N[
|
|
1426
1426
|
0
|
|
1427
1427
|
/* Actions.APPEND */
|
|
1428
1428
|
](), !0;
|
|
1429
1429
|
}
|
|
1430
1430
|
for (; s !== null; )
|
|
1431
1431
|
if (n++, a = e[n], !(a === "\\" && P())) {
|
|
1432
|
-
if (u = ya(a),
|
|
1432
|
+
if (u = ya(a), C = Me[s], p = C[u] || C.l || 8, p === 8 || (s = p[0], p[1] !== void 0 && (O = N[p[1]], O && (m = a, O() === !1))))
|
|
1433
1433
|
return;
|
|
1434
1434
|
if (s === 7)
|
|
1435
1435
|
return t;
|
|
@@ -1443,7 +1443,7 @@ function La(e, t) {
|
|
|
1443
1443
|
if (!z(e))
|
|
1444
1444
|
return null;
|
|
1445
1445
|
let n = un.get(t);
|
|
1446
|
-
if (n || (n =
|
|
1446
|
+
if (n || (n = Ta(t), n && un.set(t, n)), !n)
|
|
1447
1447
|
return null;
|
|
1448
1448
|
const s = n.length;
|
|
1449
1449
|
let l = e, a = 0;
|
|
@@ -1455,16 +1455,16 @@ function La(e, t) {
|
|
|
1455
1455
|
}
|
|
1456
1456
|
return l;
|
|
1457
1457
|
}
|
|
1458
|
-
const
|
|
1459
|
-
function
|
|
1458
|
+
const Ca = "10.0.5", ht = -1, ft = "en-US", mn = "", dn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1459
|
+
function Ra() {
|
|
1460
1460
|
return {
|
|
1461
1461
|
upper: (e, t) => t === "text" && F(e) ? e.toUpperCase() : t === "vnode" && z(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1462
1462
|
lower: (e, t) => t === "text" && F(e) ? e.toLowerCase() : t === "vnode" && z(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1463
|
-
capitalize: (e, t) => t === "text" && F(e) ?
|
|
1463
|
+
capitalize: (e, t) => t === "text" && F(e) ? dn(e) : t === "vnode" && z(e) && "__v_isVNode" in e ? dn(e.children) : e
|
|
1464
1464
|
};
|
|
1465
1465
|
}
|
|
1466
1466
|
let wn;
|
|
1467
|
-
function
|
|
1467
|
+
function Aa(e) {
|
|
1468
1468
|
wn = e;
|
|
1469
1469
|
}
|
|
1470
1470
|
let Pn;
|
|
@@ -1475,19 +1475,19 @@ let Fn;
|
|
|
1475
1475
|
function Da(e) {
|
|
1476
1476
|
Fn = e;
|
|
1477
1477
|
}
|
|
1478
|
-
let Un = null;
|
|
1479
|
-
const Ma = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1480
|
-
Un = e;
|
|
1481
|
-
}, wa = /* @__NO_SIDE_EFFECTS__ */ () => Un;
|
|
1482
1478
|
let jn = null;
|
|
1483
|
-
const
|
|
1479
|
+
const Ma = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1484
1480
|
jn = e;
|
|
1485
|
-
},
|
|
1481
|
+
}, wa = /* @__NO_SIDE_EFFECTS__ */ () => jn;
|
|
1482
|
+
let Un = null;
|
|
1483
|
+
const fn = (e) => {
|
|
1484
|
+
Un = e;
|
|
1485
|
+
}, Pa = () => Un;
|
|
1486
1486
|
let _n = 0;
|
|
1487
1487
|
function Fa(e = {}) {
|
|
1488
|
-
const t = le(e.onWarn) ? e.onWarn : Es, n = F(e.version) ? e.version :
|
|
1488
|
+
const t = le(e.onWarn) ? e.onWarn : Es, n = F(e.version) ? e.version : Ca, s = F(e.locale) || le(e.locale) ? e.locale : ft, l = le(s) ? ft : s, a = ue(e.fallbackLocale) || $(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, c = $(e.messages) ? e.messages : Ct(l), m = $(e.datetimeFormats) ? e.datetimeFormats : Ct(l), u = $(e.numberFormats) ? e.numberFormats : Ct(l), p = fe(q(), e.modifiers, Ra()), O = e.pluralRules || q(), C = le(e.missing) ? e.missing : null, N = ce(e.missingWarn) || dt(e.missingWarn) ? e.missingWarn : !0, P = ce(e.fallbackWarn) || dt(e.fallbackWarn) ? e.fallbackWarn : !0, V = !!e.fallbackFormat, L = !!e.unresolving, M = le(e.postTranslation) ? e.postTranslation : null, i = $(e.processor) ? e.processor : null, d = ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter, _ = le(e.messageCompiler) ? e.messageCompiler : wn, w = le(e.messageResolver) ? e.messageResolver : Pn || Oa, S = le(e.localeFallbacker) ? e.localeFallbacker : Fn || ha, g = z(e.fallbackContext) ? e.fallbackContext : void 0, v = e, b = z(v.__datetimeFormatters) ? v.__datetimeFormatters : /* @__PURE__ */ new Map(), E = z(v.__numberFormatters) ? v.__numberFormatters : /* @__PURE__ */ new Map(), A = z(v.__meta) ? v.__meta : {};
|
|
1489
1489
|
_n++;
|
|
1490
|
-
const
|
|
1490
|
+
const R = {
|
|
1491
1491
|
version: n,
|
|
1492
1492
|
cid: _n,
|
|
1493
1493
|
locale: s,
|
|
@@ -1495,30 +1495,30 @@ function Fa(e = {}) {
|
|
|
1495
1495
|
messages: c,
|
|
1496
1496
|
modifiers: p,
|
|
1497
1497
|
pluralRules: O,
|
|
1498
|
-
missing:
|
|
1498
|
+
missing: C,
|
|
1499
1499
|
missingWarn: N,
|
|
1500
1500
|
fallbackWarn: P,
|
|
1501
1501
|
fallbackFormat: V,
|
|
1502
1502
|
unresolving: L,
|
|
1503
1503
|
postTranslation: M,
|
|
1504
1504
|
processor: i,
|
|
1505
|
-
warnHtmlMessage:
|
|
1505
|
+
warnHtmlMessage: d,
|
|
1506
1506
|
escapeParameter: y,
|
|
1507
1507
|
messageCompiler: _,
|
|
1508
1508
|
messageResolver: w,
|
|
1509
1509
|
localeFallbacker: S,
|
|
1510
1510
|
fallbackContext: g,
|
|
1511
1511
|
onWarn: t,
|
|
1512
|
-
__meta:
|
|
1512
|
+
__meta: A
|
|
1513
1513
|
};
|
|
1514
|
-
return
|
|
1514
|
+
return R.datetimeFormats = m, R.numberFormats = u, R.__datetimeFormatters = b, R.__numberFormatters = E, __INTLIFY_PROD_DEVTOOLS__ && fa(R, n, A), R;
|
|
1515
1515
|
}
|
|
1516
|
-
const
|
|
1517
|
-
function
|
|
1516
|
+
const Ct = (e) => ({ [e]: q() });
|
|
1517
|
+
function $t(e, t, n, s, l) {
|
|
1518
1518
|
const { missing: a, onWarn: c } = e;
|
|
1519
1519
|
if (a !== null) {
|
|
1520
|
-
const
|
|
1521
|
-
return F(
|
|
1520
|
+
const m = a(e, n, t, l);
|
|
1521
|
+
return F(m) ? m : t;
|
|
1522
1522
|
} else
|
|
1523
1523
|
return t;
|
|
1524
1524
|
}
|
|
@@ -1526,39 +1526,39 @@ 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 ja(e, t) {
|
|
1530
1530
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1532
|
+
function Ua(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 (ja(e, t[s]))
|
|
1538
1538
|
return !0;
|
|
1539
1539
|
return !1;
|
|
1540
1540
|
}
|
|
1541
1541
|
function pn(e, ...t) {
|
|
1542
|
-
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __datetimeFormatters:
|
|
1542
|
+
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __datetimeFormatters: m } = e, [u, p, O, C] = Pt(...t), N = ce(O.missingWarn) ? O.missingWarn : e.missingWarn;
|
|
1543
1543
|
ce(O.fallbackWarn) ? O.fallbackWarn : e.fallbackWarn;
|
|
1544
|
-
const P = !!O.part, V =
|
|
1544
|
+
const P = !!O.part, V = Jt(e, O), L = c(
|
|
1545
1545
|
e,
|
|
1546
1546
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1547
1547
|
l,
|
|
1548
1548
|
V
|
|
1549
1549
|
);
|
|
1550
1550
|
if (!F(u) || u === "")
|
|
1551
|
-
return new Intl.DateTimeFormat(V,
|
|
1552
|
-
let M = {}, i,
|
|
1551
|
+
return new Intl.DateTimeFormat(V, C).format(p);
|
|
1552
|
+
let M = {}, i, d = null;
|
|
1553
1553
|
const y = "datetime format";
|
|
1554
|
-
for (let S = 0; S < L.length && (i = L[S], M = n[i] || {},
|
|
1555
|
-
|
|
1556
|
-
if (
|
|
1557
|
-
return s ?
|
|
1554
|
+
for (let S = 0; S < L.length && (i = L[S], M = n[i] || {}, d = M[u], !$(d)); S++)
|
|
1555
|
+
$t(e, u, i, N, y);
|
|
1556
|
+
if (!$(d) || !F(i))
|
|
1557
|
+
return s ? ht : u;
|
|
1558
1558
|
let _ = `${i}__${u}`;
|
|
1559
|
-
pt(
|
|
1560
|
-
let w =
|
|
1561
|
-
return w || (w = new Intl.DateTimeFormat(i, fe({},
|
|
1559
|
+
pt(C) || (_ = `${_}__${JSON.stringify(C)}`);
|
|
1560
|
+
let w = m.get(_);
|
|
1561
|
+
return w || (w = new Intl.DateTimeFormat(i, fe({}, d, C)), m.set(_, w)), P ? w.formatToParts(p) : w.format(p);
|
|
1562
1562
|
}
|
|
1563
1563
|
const Vn = [
|
|
1564
1564
|
"localeMatcher",
|
|
@@ -1584,58 +1584,58 @@ const Vn = [
|
|
|
1584
1584
|
];
|
|
1585
1585
|
function Pt(...e) {
|
|
1586
1586
|
const [t, n, s, l] = e, a = q();
|
|
1587
|
-
let c = q(),
|
|
1587
|
+
let c = q(), m;
|
|
1588
1588
|
if (F(t)) {
|
|
1589
1589
|
const u = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1590
1590
|
if (!u)
|
|
1591
|
-
throw
|
|
1591
|
+
throw Ce(Le.INVALID_ISO_DATE_ARGUMENT);
|
|
1592
1592
|
const p = u[3] ? u[3].trim().startsWith("T") ? `${u[1].trim()}${u[3].trim()}` : `${u[1].trim()}T${u[3].trim()}` : u[1].trim();
|
|
1593
|
-
|
|
1593
|
+
m = new Date(p);
|
|
1594
1594
|
try {
|
|
1595
|
-
|
|
1595
|
+
m.toISOString();
|
|
1596
1596
|
} catch {
|
|
1597
|
-
throw
|
|
1597
|
+
throw Ce(Le.INVALID_ISO_DATE_ARGUMENT);
|
|
1598
1598
|
}
|
|
1599
|
-
} else if (
|
|
1599
|
+
} else if (bs(t)) {
|
|
1600
1600
|
if (isNaN(t.getTime()))
|
|
1601
|
-
throw
|
|
1602
|
-
|
|
1603
|
-
} else if (
|
|
1604
|
-
|
|
1601
|
+
throw Ce(Le.INVALID_DATE_ARGUMENT);
|
|
1602
|
+
m = t;
|
|
1603
|
+
} else if (de(t))
|
|
1604
|
+
m = t;
|
|
1605
1605
|
else
|
|
1606
|
-
throw
|
|
1607
|
-
return F(n) ? a.key = n :
|
|
1606
|
+
throw Ce(Le.INVALID_ARGUMENT);
|
|
1607
|
+
return F(n) ? a.key = n : $(n) && Object.keys(n).forEach((u) => {
|
|
1608
1608
|
Vn.includes(u) ? c[u] = n[u] : a[u] = n[u];
|
|
1609
|
-
}), F(s) ? a.locale = s :
|
|
1609
|
+
}), F(s) ? a.locale = s : $(s) && (c = s), $(l) && (c = l), [a.key || "", m, a, c];
|
|
1610
1610
|
}
|
|
1611
|
-
function
|
|
1611
|
+
function bn(e, t, n) {
|
|
1612
1612
|
const s = e;
|
|
1613
1613
|
for (const l in n) {
|
|
1614
1614
|
const a = `${t}__${l}`;
|
|
1615
1615
|
s.__datetimeFormatters.has(a) && s.__datetimeFormatters.delete(a);
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
1618
|
-
function
|
|
1619
|
-
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __numberFormatters:
|
|
1618
|
+
function hn(e, ...t) {
|
|
1619
|
+
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: c } = e, { __numberFormatters: m } = e, [u, p, O, C] = Ft(...t), N = ce(O.missingWarn) ? O.missingWarn : e.missingWarn;
|
|
1620
1620
|
ce(O.fallbackWarn) ? O.fallbackWarn : e.fallbackWarn;
|
|
1621
|
-
const P = !!O.part, V =
|
|
1621
|
+
const P = !!O.part, V = Jt(e, O), L = c(
|
|
1622
1622
|
e,
|
|
1623
1623
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1624
1624
|
l,
|
|
1625
1625
|
V
|
|
1626
1626
|
);
|
|
1627
1627
|
if (!F(u) || u === "")
|
|
1628
|
-
return new Intl.NumberFormat(V,
|
|
1629
|
-
let M = {}, i,
|
|
1628
|
+
return new Intl.NumberFormat(V, C).format(p);
|
|
1629
|
+
let M = {}, i, d = null;
|
|
1630
1630
|
const y = "number format";
|
|
1631
|
-
for (let S = 0; S < L.length && (i = L[S], M = n[i] || {},
|
|
1632
|
-
|
|
1633
|
-
if (
|
|
1634
|
-
return s ?
|
|
1631
|
+
for (let S = 0; S < L.length && (i = L[S], M = n[i] || {}, d = M[u], !$(d)); S++)
|
|
1632
|
+
$t(e, u, i, N, y);
|
|
1633
|
+
if (!$(d) || !F(i))
|
|
1634
|
+
return s ? ht : u;
|
|
1635
1635
|
let _ = `${i}__${u}`;
|
|
1636
|
-
pt(
|
|
1637
|
-
let w =
|
|
1638
|
-
return w || (w = new Intl.NumberFormat(i, fe({},
|
|
1636
|
+
pt(C) || (_ = `${_}__${JSON.stringify(C)}`);
|
|
1637
|
+
let w = m.get(_);
|
|
1638
|
+
return w || (w = new Intl.NumberFormat(i, fe({}, d, C)), m.set(_, w)), P ? w.formatToParts(p) : w.format(p);
|
|
1639
1639
|
}
|
|
1640
1640
|
const Wn = [
|
|
1641
1641
|
"localeMatcher",
|
|
@@ -1662,12 +1662,12 @@ const Wn = [
|
|
|
1662
1662
|
function Ft(...e) {
|
|
1663
1663
|
const [t, n, s, l] = e, a = q();
|
|
1664
1664
|
let c = q();
|
|
1665
|
-
if (!
|
|
1666
|
-
throw
|
|
1667
|
-
const
|
|
1668
|
-
return F(n) ? a.key = n :
|
|
1665
|
+
if (!de(t))
|
|
1666
|
+
throw Ce(Le.INVALID_ARGUMENT);
|
|
1667
|
+
const m = t;
|
|
1668
|
+
return F(n) ? a.key = n : $(n) && Object.keys(n).forEach((u) => {
|
|
1669
1669
|
Wn.includes(u) ? c[u] = n[u] : a[u] = n[u];
|
|
1670
|
-
}), F(s) ? a.locale = s :
|
|
1670
|
+
}), F(s) ? a.locale = s : $(s) && (c = s), $(l) && (c = l), [a.key || "", m, a, c];
|
|
1671
1671
|
}
|
|
1672
1672
|
function gn(e, t, n) {
|
|
1673
1673
|
const s = e;
|
|
@@ -1676,38 +1676,38 @@ function gn(e, t, n) {
|
|
|
1676
1676
|
s.__numberFormatters.has(a) && s.__numberFormatters.delete(a);
|
|
1677
1677
|
}
|
|
1678
1678
|
}
|
|
1679
|
-
const Va = (e) => e, Wa = (e) => "", Ga = "text", xa = (e) => e.length === 0 ? "" :
|
|
1679
|
+
const Va = (e) => e, Wa = (e) => "", Ga = "text", xa = (e) => e.length === 0 ? "" : Zt(e), Xa = Is;
|
|
1680
1680
|
function vn(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
|
|
1684
|
-
const t =
|
|
1685
|
-
return e.named && (
|
|
1683
|
+
function Ya(e) {
|
|
1684
|
+
const t = de(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1685
|
+
return e.named && (de(e.named.count) || de(e.named.n)) ? de(e.named.count) ? e.named.count : de(e.named.n) ? e.named.n : t : t;
|
|
1686
1686
|
}
|
|
1687
|
-
function
|
|
1687
|
+
function Za(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
|
-
|
|
1690
|
+
function Ha(e = {}) {
|
|
1691
|
+
const t = e.locale, n = Ya(e), s = z(e.pluralRules) && F(t) && le(e.pluralRules[t]) ? e.pluralRules[t] : vn, l = z(e.pluralRules) && F(t) && le(e.pluralRules[t]) ? vn : void 0, a = (i) => i[s(n, i.length, l)], c = e.list || [], m = (i) => c[i], u = e.named || q();
|
|
1692
|
+
de(e.pluralIndex) && Za(n, u);
|
|
1693
1693
|
const p = (i) => u[i];
|
|
1694
|
-
function O(i,
|
|
1695
|
-
const y = le(e.messages) ? e.messages(i, !!
|
|
1694
|
+
function O(i, d) {
|
|
1695
|
+
const y = le(e.messages) ? e.messages(i, !!d) : z(e.messages) ? e.messages[i] : !1;
|
|
1696
1696
|
return y || (e.parent ? e.parent.message(i) : Wa);
|
|
1697
1697
|
}
|
|
1698
|
-
const
|
|
1699
|
-
list:
|
|
1698
|
+
const C = (i) => e.modifiers ? e.modifiers[i] : Va, N = $(e.processor) && le(e.processor.normalize) ? e.processor.normalize : xa, P = $(e.processor) && le(e.processor.interpolate) ? e.processor.interpolate : Xa, V = $(e.processor) && F(e.processor.type) ? e.processor.type : Ga, M = {
|
|
1699
|
+
list: m,
|
|
1700
1700
|
named: p,
|
|
1701
1701
|
plural: a,
|
|
1702
|
-
linked: (i, ...
|
|
1703
|
-
const [y, _] =
|
|
1702
|
+
linked: (i, ...d) => {
|
|
1703
|
+
const [y, _] = d;
|
|
1704
1704
|
let w = "text", S = "";
|
|
1705
|
-
|
|
1705
|
+
d.length === 1 ? z(y) ? (S = y.modifier || S, w = y.type || w) : F(y) && (S = y || S) : d.length === 2 && (F(y) && (S = y || S), F(_) && (w = _ || w));
|
|
1706
1706
|
const g = O(i, !0)(M), v = (
|
|
1707
1707
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1708
1708
|
w === "vnode" && ue(g) && S ? g[0] : g
|
|
1709
1709
|
);
|
|
1710
|
-
return S ?
|
|
1710
|
+
return S ? C(S)(v, w) : v;
|
|
1711
1711
|
},
|
|
1712
1712
|
message: O,
|
|
1713
1713
|
type: V,
|
|
@@ -1719,46 +1719,46 @@ function Ba(e = {}) {
|
|
|
1719
1719
|
}
|
|
1720
1720
|
const In = () => "", ve = (e) => le(e);
|
|
1721
1721
|
function En(e, ...t) {
|
|
1722
|
-
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: c, messages:
|
|
1723
|
-
N &&
|
|
1724
|
-
let [i,
|
|
1722
|
+
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: c, messages: m } = e, [u, p] = jt(...t), O = ce(p.missingWarn) ? p.missingWarn : e.missingWarn, C = ce(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, N = ce(p.escapeParameter) ? p.escapeParameter : e.escapeParameter, P = !!p.resolvedMessage, V = F(p.default) || ce(p.default) ? ce(p.default) ? a ? u : () => u : p.default : n ? a ? u : () => u : null, L = n || V != null && (F(V) || le(V)), M = Jt(e, p);
|
|
1723
|
+
N && Ba(p);
|
|
1724
|
+
let [i, d, y] = P ? [
|
|
1725
1725
|
u,
|
|
1726
1726
|
M,
|
|
1727
|
-
|
|
1728
|
-
] : Gn(e, u, M, c,
|
|
1729
|
-
if (!P && !(F(_) ||
|
|
1730
|
-
return l ?
|
|
1727
|
+
m[M] || q()
|
|
1728
|
+
] : Gn(e, u, M, c, C, O), _ = i, w = u;
|
|
1729
|
+
if (!P && !(F(_) || He(_) || ve(_)) && L && (_ = V, w = _), !P && (!(F(_) || He(_) || ve(_)) || !F(d)))
|
|
1730
|
+
return l ? ht : u;
|
|
1731
1731
|
let S = !1;
|
|
1732
1732
|
const g = () => {
|
|
1733
1733
|
S = !0;
|
|
1734
|
-
}, v = ve(_) ? _ : xn(e, u,
|
|
1734
|
+
}, v = ve(_) ? _ : xn(e, u, d, _, w, g);
|
|
1735
1735
|
if (S)
|
|
1736
1736
|
return _;
|
|
1737
|
-
const
|
|
1737
|
+
const b = za(e, d, y, p), E = Ha(b), A = Ja(e, v, E), R = s ? s(A, u) : A;
|
|
1738
1738
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1739
1739
|
const G = {
|
|
1740
1740
|
timestamp: Date.now(),
|
|
1741
1741
|
key: F(u) ? u : ve(_) ? _.key : "",
|
|
1742
|
-
locale:
|
|
1742
|
+
locale: d || (ve(_) ? _.locale : ""),
|
|
1743
1743
|
format: F(_) ? _ : ve(_) ? _.source : "",
|
|
1744
|
-
message:
|
|
1744
|
+
message: R
|
|
1745
1745
|
};
|
|
1746
1746
|
G.meta = fe({}, e.__meta, /* @__PURE__ */ wa() || {}), _a(G);
|
|
1747
1747
|
}
|
|
1748
|
-
return
|
|
1748
|
+
return R;
|
|
1749
1749
|
}
|
|
1750
|
-
function
|
|
1750
|
+
function Ba(e) {
|
|
1751
1751
|
ue(e.list) ? e.list = e.list.map((t) => F(t) ? nn(t) : t) : z(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1752
1752
|
F(e.named[t]) && (e.named[t] = nn(e.named[t]));
|
|
1753
1753
|
});
|
|
1754
1754
|
}
|
|
1755
1755
|
function Gn(e, t, n, s, l, a) {
|
|
1756
|
-
const { messages: c, onWarn:
|
|
1757
|
-
let
|
|
1756
|
+
const { messages: c, onWarn: m, messageResolver: u, localeFallbacker: p } = e, O = p(e, s, n);
|
|
1757
|
+
let C = q(), N, P = null;
|
|
1758
1758
|
const V = "translate";
|
|
1759
|
-
for (let L = 0; L < O.length && (N = O[L],
|
|
1760
|
-
if (!
|
|
1761
|
-
const M =
|
|
1759
|
+
for (let L = 0; L < O.length && (N = O[L], C = c[N] || q(), (P = u(C, t)) === null && (P = C[t]), !(F(P) || He(P) || ve(P))); L++)
|
|
1760
|
+
if (!Ua(N, O)) {
|
|
1761
|
+
const M = $t(
|
|
1762
1762
|
e,
|
|
1763
1763
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1764
1764
|
t,
|
|
@@ -1768,10 +1768,10 @@ function Gn(e, t, n, s, l, a) {
|
|
|
1768
1768
|
);
|
|
1769
1769
|
M !== t && (P = M);
|
|
1770
1770
|
}
|
|
1771
|
-
return [P, N,
|
|
1771
|
+
return [P, N, C];
|
|
1772
1772
|
}
|
|
1773
1773
|
function xn(e, t, n, s, l, a) {
|
|
1774
|
-
const { messageCompiler: c, warnHtmlMessage:
|
|
1774
|
+
const { messageCompiler: c, warnHtmlMessage: m } = e;
|
|
1775
1775
|
if (ve(s)) {
|
|
1776
1776
|
const p = s;
|
|
1777
1777
|
return p.locale = p.locale || n, p.key = p.key || t, p;
|
|
@@ -1780,20 +1780,20 @@ function xn(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 u = c(s,
|
|
1783
|
+
const u = c(s, $a(e, n, l, s, m, a));
|
|
1784
1784
|
return u.locale = n, u.key = t, u.source = s, u;
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1786
|
+
function Ja(e, t, n) {
|
|
1787
1787
|
return t(n);
|
|
1788
1788
|
}
|
|
1789
|
-
function
|
|
1789
|
+
function jt(...e) {
|
|
1790
1790
|
const [t, n, s] = e, l = q();
|
|
1791
|
-
if (!F(t) && !
|
|
1792
|
-
throw
|
|
1793
|
-
const a =
|
|
1794
|
-
return
|
|
1791
|
+
if (!F(t) && !de(t) && !ve(t) && !He(t))
|
|
1792
|
+
throw Ce(Le.INVALID_ARGUMENT);
|
|
1793
|
+
const a = de(t) ? String(t) : (ve(t), t);
|
|
1794
|
+
return de(n) ? l.plural = n : F(n) ? l.default = n : $(n) && !pt(n) ? l.named = n : ue(n) && (l.list = n), de(s) ? l.plural = s : F(s) ? l.default = s : $(s) && fe(l, s), [a, l];
|
|
1795
1795
|
}
|
|
1796
|
-
function
|
|
1796
|
+
function $a(e, t, n, s, l, a) {
|
|
1797
1797
|
return {
|
|
1798
1798
|
locale: t,
|
|
1799
1799
|
key: n,
|
|
@@ -1805,7 +1805,7 @@ function Ja(e, t, n, s, l, a) {
|
|
|
1805
1805
|
};
|
|
1806
1806
|
}
|
|
1807
1807
|
function za(e, t, n, s) {
|
|
1808
|
-
const { modifiers: l, pluralRules: a, messageResolver: c, fallbackLocale:
|
|
1808
|
+
const { modifiers: l, pluralRules: a, messageResolver: c, fallbackLocale: m, fallbackWarn: u, missingWarn: p, fallbackContext: O } = e, N = {
|
|
1809
1809
|
locale: t,
|
|
1810
1810
|
modifiers: l,
|
|
1811
1811
|
pluralRules: a,
|
|
@@ -1817,32 +1817,32 @@ function za(e, t, n, s) {
|
|
|
1817
1817
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1818
1818
|
P,
|
|
1819
1819
|
t,
|
|
1820
|
-
|
|
1820
|
+
m,
|
|
1821
1821
|
u,
|
|
1822
1822
|
p
|
|
1823
1823
|
);
|
|
1824
1824
|
L = c(M, P);
|
|
1825
1825
|
}
|
|
1826
|
-
if (F(L) ||
|
|
1826
|
+
if (F(L) || He(L)) {
|
|
1827
1827
|
let M = !1;
|
|
1828
|
-
const
|
|
1828
|
+
const d = xn(e, P, t, L, P, () => {
|
|
1829
1829
|
M = !0;
|
|
1830
1830
|
});
|
|
1831
|
-
return M ? In :
|
|
1831
|
+
return M ? In : d;
|
|
1832
1832
|
} else return ve(L) ? L : In;
|
|
1833
1833
|
}
|
|
1834
1834
|
};
|
|
1835
|
-
return e.processor && (N.processor = e.processor), s.list && (N.list = s.list), s.named && (N.named = s.named),
|
|
1835
|
+
return e.processor && (N.processor = e.processor), s.list && (N.list = s.list), s.named && (N.named = s.named), de(s.plural) && (N.pluralIndex = s.plural), N;
|
|
1836
1836
|
}
|
|
1837
|
-
|
|
1838
|
-
var Ka = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_b8d48ecc-c0f9-4d42-a59e-cb4aa4bf300d", 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_b8d48ecc-c0f9-4d42-a59e-cb4aa4bf300d", 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: "1864", ACTIONS_ORCHESTRATION_ID: "894df571-566b-40ca-a579-d6d71f8b1418.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: "20260518.149.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:13961", 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.10/x64", GITHUB_RUN_ID: "26241471385", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "bc8b55a22a843005c2b487a5079bbbaa637adb5e", 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.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6M31dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3Nzk0MDU4ODMsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc3OTM4MzY4MywiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjkyYTUwMzNjLTNjNmItNTRhZC1iOTA2LWM3OTMxZGU4ZTA5NSIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc3OTM4MzM4Mywib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI3NzIyODY3ODA5M1wiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiMjIwZjdlNzZlMGRjYTA5M2M0NzUwMzdiOGU3YzBmNTUzYjYxNzIzOVwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL21haW5cIixcInJlZl9wcm90ZWN0ZWRcIjpcInRydWVcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIyNjI0MTQ3MTM4NVwiLFwicnVuX251bWJlclwiOlwiODlcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCJiYzhiNTVhMjJhODQzMDA1YzJiNDg3YTUwNzliYmJhYTYzN2FkYjVlXCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy9tYWluXCIsXCJ3b3JrZmxvd19zaGFcIjpcImJjOGI1NWEyMmE4NDMwMDVjMmI0ODdhNTA3OWJiYmFhNjM3YWRiNWVcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL2hybS1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL21haW4iLCJvcmNoX2lkIjoiODk0ZGY1NzEtNTY2Yi00MGNhLWE1NzktZDZkNzFmOGIxNDE4LnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiI4OTRkZjU3MS01NjZiLTQwY2EtYTU3OS1kNmQ3MWY4YjE0MTgiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiIyNjI0MTQ3MTM4NSIsInJ1bl9udW1iZXIiOiI4OSIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDAwNzExNzgiLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czo4OTRkZjU3MS01NjZiLTQwY2EtYTU3OS1kNmQ3MWY4YjE0MTg6OTJhNTAzM2MtM2M2Yi01NGFkLWI5MDYtYzc5MzFkZThlMDk1IEFjdGlvbnMuUnVubmVyOjg5NGRmNTcxLTU2NmItNDBjYS1hNTc5LWQ2ZDcxZjhiMTQxODo5MmE1MDMzYy0zYzZiLTU0YWQtYjkwNi1jNzkzMWRlOGUwOTUgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6ODk0ZGY1NzEtNTY2Yi00MGNhLWE1NzktZDZkNzFmOGIxNDE4OjkyYTUwMzNjLTNjNmItNTRhZC1iOTA2LWM3OTMxZGU4ZTA5NSBnZW5lcmF0ZV9pZF90b2tlbjo4OTRkZjU3MS01NjZiLTQwY2EtYTU3OS1kNmQ3MWY4YjE0MTg6OTJhNTAzM2MtM2M2Yi01NGFkLWI5MDYtYzc5MzFkZThlMDk1IEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiYmM4YjU1YTIyYTg0MzAwNWMyYjQ4N2E1MDc5YmJiYWE2MzdhZGI1ZSIsInRydXN0X3RpZXIiOiIxIn0.Eng0DVJT6eoHMOwIKDbsmLq123jXuO8lDUBwFAat1V8HITFtiycjXj86SOrDi69dKO2ZEEODKNeq4-76EVu4BUhco8ZN2WvBLU8QAOVredLPTr8grYjUXzLps_hBv9dzxDJrfNeC0aPrPjw3IoFIpqjyuOivrIYClwPlxzxmoe6LvOAx2Eb1hyusu7r5c4d68PqirUjHpTBDP2hpomvoOqDvlfVPI-lklICke-YFIGmJrsKd1we8-LXxBmIokmAluFRPnmr0_FA4sLI1PEUK8A2KNactIk3YSqBGAniY6Im4yjY-RIuFJOUrDhZWaqazAG9jfowEDXljzLbWPh_xSQ", 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_48500f05-6db1-4ab3-96fa-84549ad42b96", INVOCATION_ID: "0d1d84406c704a98bfc3c92ee2212487", 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: "89", 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 1000071178", 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.13", 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: "bc8b55a22a843005c2b487a5079bbbaa637adb5e", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.2", 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_b8d48ecc-c0f9-4d42-a59e-cb4aa4bf300d", 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-1-azure-eastus.actions.githubusercontent.com/179//idtoken/894df571-566b-40ca-a579-d6d71f8b1418/92a5033c-3c6b-54ad-b906-c7931de8e095?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_b8d48ecc-c0f9-4d42-a59e-cb4aa4bf300d", npm_package_exports___types: "./dist/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_feature_flag: "^0.0.15", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_devDependencies_eslint_plugin_vue: "^9.33.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_14.6.0", CHROME_BIN: "/usr/bin/google-chrome", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_b8d48ecc-c0f9-4d42-a59e-cb4aa4bf300d", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1837
|
+
Bs();
|
|
1838
|
+
var Ka = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_b08bca7f-3a85-4232-8217-247b6416dd83", 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_b08bca7f-3a85-4232-8217-247b6416dd83", 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: "1874", ACTIONS_ORCHESTRATION_ID: "7ab5ad78-9f73-4fb1-bff3-41b7e9847080.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: "20260518.149.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:10688", 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.10/x64", GITHUB_RUN_ID: "26269134356", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "6075548c8c66641e79cc7f0e5db1b6c58b773858", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/feat/permission-integrations", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9mZWF0L3Blcm1pc3Npb24taW50ZWdyYXRpb25zXCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsImF1ZCI6InZzbzo2Zjk2ZmE4OS1iN2JmLTQ4NzgtYmFkMy04OTgwMDY1NjZiNmUiLCJiaWxsaW5nX293bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwiZXhwIjoxNzc5NDQ3NzYwLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3ByaW1hcnlzaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJpYXQiOjE3Nzk0MjU1NjAsImlzcyI6Imh0dHBzOi8vdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJqb2JfaWQiOiJkNWU4ZjUwOC02YzUwLTViY2ItYTAxYi1iMTQ1NjI2OTU4YjgiLCJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJuYmYiOjE3Nzk0MjUyNjAsIm9pZGNfZXh0cmEiOiJ7XCJhY3RvclwiOlwianVuLWxlZS1mZWVkbWVcIixcImFjdG9yX2lkXCI6XCIyMzkyODI4NjJcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiNzczMTg2NzYyNTZcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjIyMGY3ZTc2ZTBkY2EwOTNjNDc1MDM3YjhlN2MwZjU1M2I2MTcyMzlcIixcInJlZlwiOlwicmVmcy9oZWFkcy9mZWF0L3Blcm1pc3Npb24taW50ZWdyYXRpb25zXCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjI2MjY5MTM0MzU2XCIsXCJydW5fbnVtYmVyXCI6XCI5MVwiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcIjYwNzU1NDhjOGM2NjY0MWU3OWNjN2YwZTVkYjFiNmM1OGI3NzM4NThcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIGhybS1wb3J0YWxcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtaHJtLXBvcnRhbC10cnVzdGVkLnltbEByZWZzL2hlYWRzL2ZlYXQvcGVybWlzc2lvbi1pbnRlZ3JhdGlvbnNcIixcIndvcmtmbG93X3NoYVwiOlwiNjA3NTU0OGM4YzY2NjQxZTc5Y2M3ZjBlNWRiMWI2YzU4Yjc3Mzg1OFwifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvaHJtLXNlcnZpY2U6cmVmOnJlZnMvaGVhZHMvZmVhdC9wZXJtaXNzaW9uLWludGVncmF0aW9ucyIsIm9yY2hfaWQiOiI3YWI1YWQ3OC05ZjczLTRmYjEtYmZmMy00MWI3ZTk4NDcwODAucHVibGlzaC5wdWJsaXNoLl9fZGVmYXVsdCIsIm93bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwicGxhbl9pZCI6IjdhYjVhZDc4LTlmNzMtNGZiMS1iZmYzLTQxYjdlOTg0NzA4MCIsInJlcG9zaXRvcnlfaWQiOiIxMTI0NjcyMjM1IiwicmVwb3NpdG9yeV9vd25lcl9pZCI6IjU0ODMxNTE1IiwicmVwb3NpdG9yeV92aXNpYmlsaXR5IjoicHJpdmF0ZSIsInJ1bl9pZCI6IjI2MjY5MTM0MzU2IiwicnVuX251bWJlciI6IjkxIiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDA3MTI0MyIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjdhYjVhZDc4LTlmNzMtNGZiMS1iZmYzLTQxYjdlOTg0NzA4MDpkNWU4ZjUwOC02YzUwLTViY2ItYTAxYi1iMTQ1NjI2OTU4YjggQWN0aW9ucy5SdW5uZXI6N2FiNWFkNzgtOWY3My00ZmIxLWJmZjMtNDFiN2U5ODQ3MDgwOmQ1ZThmNTA4LTZjNTAtNWJjYi1hMDFiLWIxNDU2MjY5NThiOCBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czo3YWI1YWQ3OC05ZjczLTRmYjEtYmZmMy00MWI3ZTk4NDcwODA6ZDVlOGY1MDgtNmM1MC01YmNiLWEwMWItYjE0NTYyNjk1OGI4IGdlbmVyYXRlX2lkX3Rva2VuOjdhYjVhZDc4LTlmNzMtNGZiMS1iZmYzLTQxYjdlOTg0NzA4MDpkNWU4ZjUwOC02YzUwLTViY2ItYTAxYi1iMTQ1NjI2OTU4YjggQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiI2MDc1NTQ4YzhjNjY2NDFlNzljYzdmMGU1ZGIxYjZjNThiNzczODU4IiwidHJ1c3RfdGllciI6IjEifQ.yMQ1pIVjjn0RCHC3Ll5Xd30sQPY56hpLUhg1aSHsfSwnKAPr9za2tKRLJ-H7CPl7I5UarX23Dvzr-_q7B7-_NGrJ00nQHp2UOvEdvjkvlRiNaUl-tFpn9eTW2I7kxze0I1L8LCzMxVRvWnIMTVBzwSnkiw4gr3mtJNPcsJgYWDXTYZLWnA0E6kbKRB7KkxGxpad0IcVwqu2sdPWF3XUXkAy2rTiQ-05qGc2cdV79qs1LK6asOIJ_9zHboHj3PB4mE1LVu0P4TuS0VMyiJJhMsTMgqwjT7muHh9olgJu3XPZAihO0N8HxquLBJNdgXtA2i7SO4N5vpd6SPTIZ2vPgww", 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_10b48031-af29-4b6c-bd8b-50c80a0eff14", INVOCATION_ID: "e6ca7e3ac0b546e8af8ceee15a87ee20", 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: "91", 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 1000071243", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "feat/permission-integrations", 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.15-dev", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts", npm_package_dependencies__feedmepos_hrm_permission: "workspace:*", npm_package_devDependencies__rushstack_eslint_patch: "^1.3.3", npm_package_devDependencies_eslint_plugin_unused_imports: "^4.3.0", npm_package_devDependencies_jsdom: "^24.0.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_uuid: "^10.0.0", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "6075548c8c66641e79cc7f0e5db1b6c58b773858", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.2", GITHUB_REF: "refs/heads/feat/permission-integrations", 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_b08bca7f-3a85-4232-8217-247b6416dd83", 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/160//idtoken/7ab5ad78-9f73-4fb1-bff3-41b7e9847080/d5e8f508-6c50-5bcb-a01b-b145626958b8?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_b08bca7f-3a85-4232-8217-247b6416dd83", npm_package_exports___types: "./dist/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_feature_flag: "^0.0.15", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_devDependencies_eslint_plugin_vue: "^9.33.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_14.6.0", CHROME_BIN: "/usr/bin/google-chrome", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_b08bca7f-3a85-4232-8217-247b6416dd83", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1839
1839
|
const Qa = "10.0.5";
|
|
1840
1840
|
function qa() {
|
|
1841
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
1841
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (je().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (je().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (je().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (je().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1842
1842
|
}
|
|
1843
|
-
const
|
|
1843
|
+
const Be = {
|
|
1844
1844
|
// composer module errors
|
|
1845
|
-
UNEXPECTED_RETURN_TYPE:
|
|
1845
|
+
UNEXPECTED_RETURN_TYPE: ba,
|
|
1846
1846
|
// 24
|
|
1847
1847
|
// legacy module errors
|
|
1848
1848
|
INVALID_ARGUMENT: 25,
|
|
@@ -1854,9 +1854,9 @@ const He = {
|
|
|
1854
1854
|
UNEXPECTED_ERROR: 32
|
|
1855
1855
|
};
|
|
1856
1856
|
function nt(e, ...t) {
|
|
1857
|
-
return
|
|
1857
|
+
return bt(e, null, void 0);
|
|
1858
1858
|
}
|
|
1859
|
-
const
|
|
1859
|
+
const Ut = /* @__PURE__ */ Ve("__translateVNode"), Vt = /* @__PURE__ */ Ve("__datetimeParts"), Wt = /* @__PURE__ */ Ve("__numberParts"), er = Ve("__setPluralRules"), Xn = /* @__PURE__ */ Ve("__injectWithOption"), Gt = /* @__PURE__ */ Ve("__dispose");
|
|
1860
1860
|
function st(e) {
|
|
1861
1861
|
if (!z(e))
|
|
1862
1862
|
return e;
|
|
@@ -1878,25 +1878,25 @@ function st(e) {
|
|
|
1878
1878
|
}
|
|
1879
1879
|
return e;
|
|
1880
1880
|
}
|
|
1881
|
-
function
|
|
1882
|
-
const { messages: n, __i18n: s, messageResolver: l, flatJson: a } = t, c =
|
|
1883
|
-
if (ue(s) && s.forEach((
|
|
1884
|
-
if ("locale" in
|
|
1885
|
-
const { locale: u, resource: p } =
|
|
1886
|
-
u ? (c[u] = c[u] || q(),
|
|
1881
|
+
function Yn(e, t) {
|
|
1882
|
+
const { messages: n, __i18n: s, messageResolver: l, flatJson: a } = t, c = $(n) ? n : ue(s) ? q() : { [e]: q() };
|
|
1883
|
+
if (ue(s) && s.forEach((m) => {
|
|
1884
|
+
if ("locale" in m && "resource" in m) {
|
|
1885
|
+
const { locale: u, resource: p } = m;
|
|
1886
|
+
u ? (c[u] = c[u] || q(), mt(p, c[u])) : mt(p, c);
|
|
1887
1887
|
} else
|
|
1888
|
-
F(
|
|
1888
|
+
F(m) && mt(JSON.parse(m), c);
|
|
1889
1889
|
}), l == null && a)
|
|
1890
|
-
for (const
|
|
1891
|
-
Ne(c,
|
|
1890
|
+
for (const m in c)
|
|
1891
|
+
Ne(c, m) && st(c[m]);
|
|
1892
1892
|
return c;
|
|
1893
1893
|
}
|
|
1894
|
-
function
|
|
1894
|
+
function Zn(e) {
|
|
1895
1895
|
return e.type;
|
|
1896
1896
|
}
|
|
1897
1897
|
function tr(e, t, n) {
|
|
1898
1898
|
let s = z(t.messages) ? t.messages : q();
|
|
1899
|
-
"__i18nGlobal" in n && (s =
|
|
1899
|
+
"__i18nGlobal" in n && (s = Yn(e.locale.value, {
|
|
1900
1900
|
messages: s,
|
|
1901
1901
|
__i18n: n.__i18nGlobal
|
|
1902
1902
|
}));
|
|
@@ -1922,34 +1922,34 @@ function tr(e, t, n) {
|
|
|
1922
1922
|
function Nn(e) {
|
|
1923
1923
|
return _e(Kn, null, e, 0);
|
|
1924
1924
|
}
|
|
1925
|
-
const yn = "__INTLIFY_META__",
|
|
1926
|
-
let
|
|
1925
|
+
const yn = "__INTLIFY_META__", kn = () => [], nr = () => !1;
|
|
1926
|
+
let Tn = 0;
|
|
1927
1927
|
function On(e) {
|
|
1928
1928
|
return (t, n, s, l) => e(n, s, xt() || void 0, l);
|
|
1929
1929
|
}
|
|
1930
1930
|
const sr = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1931
1931
|
const e = xt();
|
|
1932
1932
|
let t = null;
|
|
1933
|
-
return e && (t =
|
|
1933
|
+
return e && (t = Zn(e)[yn]) ? { [yn]: t } : null;
|
|
1934
1934
|
};
|
|
1935
1935
|
function ar(e = {}) {
|
|
1936
|
-
const { __root: t, __injectWithOption: n } = e, s = t === void 0, l = e.flatJson, a = en ?
|
|
1936
|
+
const { __root: t, __injectWithOption: n } = e, s = t === void 0, l = e.flatJson, a = en ? Ue : zn;
|
|
1937
1937
|
let c = ce(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1938
|
-
const
|
|
1938
|
+
const m = a(
|
|
1939
1939
|
// prettier-ignore
|
|
1940
1940
|
t && c ? t.locale.value : F(e.locale) ? e.locale : ft
|
|
1941
1941
|
), u = a(
|
|
1942
1942
|
// prettier-ignore
|
|
1943
|
-
t && c ? t.fallbackLocale.value : F(e.fallbackLocale) || ue(e.fallbackLocale) ||
|
|
1944
|
-
), p = a(
|
|
1945
|
-
let N = t ? t.missingWarn : ce(e.missingWarn) ||
|
|
1946
|
-
const w = t ? t.modifiers :
|
|
1943
|
+
t && c ? t.fallbackLocale.value : F(e.fallbackLocale) || ue(e.fallbackLocale) || $(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : m.value
|
|
1944
|
+
), p = a(Yn(m.value, e)), O = a($(e.datetimeFormats) ? e.datetimeFormats : { [m.value]: {} }), C = a($(e.numberFormats) ? e.numberFormats : { [m.value]: {} });
|
|
1945
|
+
let N = t ? t.missingWarn : ce(e.missingWarn) || dt(e.missingWarn) ? e.missingWarn : !0, P = t ? t.fallbackWarn : ce(e.fallbackWarn) || dt(e.fallbackWarn) ? e.fallbackWarn : !0, V = t ? t.fallbackRoot : ce(e.fallbackRoot) ? e.fallbackRoot : !0, L = !!e.fallbackFormat, M = le(e.missing) ? e.missing : null, i = le(e.missing) ? On(e.missing) : null, d = le(e.postTranslation) ? e.postTranslation : null, y = t ? t.warnHtmlMessage : ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, _ = !!e.escapeParameter;
|
|
1946
|
+
const w = t ? t.modifiers : $(e.modifiers) ? e.modifiers : {};
|
|
1947
1947
|
let S = e.pluralRules || t && t.pluralRules, g;
|
|
1948
1948
|
g = (() => {
|
|
1949
1949
|
s && fn(null);
|
|
1950
1950
|
const f = {
|
|
1951
1951
|
version: Qa,
|
|
1952
|
-
locale:
|
|
1952
|
+
locale: m.value,
|
|
1953
1953
|
fallbackLocale: u.value,
|
|
1954
1954
|
messages: p.value,
|
|
1955
1955
|
modifiers: w,
|
|
@@ -1959,51 +1959,51 @@ function ar(e = {}) {
|
|
|
1959
1959
|
fallbackWarn: P,
|
|
1960
1960
|
fallbackFormat: L,
|
|
1961
1961
|
unresolving: !0,
|
|
1962
|
-
postTranslation:
|
|
1962
|
+
postTranslation: d === null ? void 0 : d,
|
|
1963
1963
|
warnHtmlMessage: y,
|
|
1964
1964
|
escapeParameter: _,
|
|
1965
1965
|
messageResolver: e.messageResolver,
|
|
1966
1966
|
messageCompiler: e.messageCompiler,
|
|
1967
1967
|
__meta: { framework: "vue" }
|
|
1968
1968
|
};
|
|
1969
|
-
f.datetimeFormats = O.value, f.numberFormats =
|
|
1969
|
+
f.datetimeFormats = O.value, f.numberFormats = C.value, f.__datetimeFormatters = $(g) ? g.__datetimeFormatters : void 0, f.__numberFormatters = $(g) ? g.__numberFormatters : void 0;
|
|
1970
1970
|
const I = Fa(f);
|
|
1971
1971
|
return s && fn(I), I;
|
|
1972
|
-
})(), Qe(g,
|
|
1973
|
-
function
|
|
1972
|
+
})(), Qe(g, m.value, u.value);
|
|
1973
|
+
function b() {
|
|
1974
1974
|
return [
|
|
1975
|
-
|
|
1975
|
+
m.value,
|
|
1976
1976
|
u.value,
|
|
1977
1977
|
p.value,
|
|
1978
1978
|
O.value,
|
|
1979
|
-
|
|
1979
|
+
C.value
|
|
1980
1980
|
];
|
|
1981
1981
|
}
|
|
1982
1982
|
const E = te({
|
|
1983
|
-
get: () =>
|
|
1983
|
+
get: () => m.value,
|
|
1984
1984
|
set: (f) => {
|
|
1985
|
-
|
|
1985
|
+
m.value = f, g.locale = m.value;
|
|
1986
1986
|
}
|
|
1987
|
-
}),
|
|
1987
|
+
}), A = te({
|
|
1988
1988
|
get: () => u.value,
|
|
1989
1989
|
set: (f) => {
|
|
1990
|
-
u.value = f, g.fallbackLocale = u.value, Qe(g,
|
|
1990
|
+
u.value = f, g.fallbackLocale = u.value, Qe(g, m.value, f);
|
|
1991
1991
|
}
|
|
1992
|
-
}),
|
|
1992
|
+
}), R = te(() => p.value), G = /* @__PURE__ */ te(() => O.value), W = /* @__PURE__ */ te(() => C.value);
|
|
1993
1993
|
function D() {
|
|
1994
|
-
return le(
|
|
1994
|
+
return le(d) ? d : null;
|
|
1995
1995
|
}
|
|
1996
|
-
function
|
|
1997
|
-
|
|
1996
|
+
function T(f) {
|
|
1997
|
+
d = f, g.postTranslation = f;
|
|
1998
1998
|
}
|
|
1999
|
-
function
|
|
1999
|
+
function k() {
|
|
2000
2000
|
return M;
|
|
2001
2001
|
}
|
|
2002
|
-
function
|
|
2002
|
+
function Z(f) {
|
|
2003
2003
|
f !== null && (i = On(f)), M = f, g.missing = i;
|
|
2004
2004
|
}
|
|
2005
2005
|
const x = (f, I, ee, ie, Pe, at) => {
|
|
2006
|
-
|
|
2006
|
+
b();
|
|
2007
2007
|
let xe;
|
|
2008
2008
|
try {
|
|
2009
2009
|
Ka.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (g.fallbackContext = t ? Pa() : void 0), xe = f(g);
|
|
@@ -2011,32 +2011,32 @@ function ar(e = {}) {
|
|
|
2011
2011
|
__INTLIFY_PROD_DEVTOOLS__, s || (g.fallbackContext = void 0);
|
|
2012
2012
|
}
|
|
2013
2013
|
if (ee !== "translate exists" && // for not `te` (e.g `t`)
|
|
2014
|
-
|
|
2015
|
-
const [
|
|
2016
|
-
return t && V ? ie(t) : Pe(
|
|
2014
|
+
de(xe) && xe === ht || ee === "translate exists" && !xe) {
|
|
2015
|
+
const [Jn, Br] = I();
|
|
2016
|
+
return t && V ? ie(t) : Pe(Jn);
|
|
2017
2017
|
} else {
|
|
2018
2018
|
if (at(xe))
|
|
2019
2019
|
return xe;
|
|
2020
|
-
throw nt(
|
|
2020
|
+
throw nt(Be.UNEXPECTED_RETURN_TYPE);
|
|
2021
2021
|
}
|
|
2022
2022
|
};
|
|
2023
|
-
function
|
|
2024
|
-
return x((I) => Reflect.apply(En, null, [I, ...f]), () =>
|
|
2023
|
+
function j(...f) {
|
|
2024
|
+
return x((I) => Reflect.apply(En, null, [I, ...f]), () => jt(...f), "translate", (I) => Reflect.apply(I.t, I, [...f]), (I) => I, (I) => F(I));
|
|
2025
2025
|
}
|
|
2026
2026
|
function ne(...f) {
|
|
2027
2027
|
const [I, ee, ie] = f;
|
|
2028
2028
|
if (ie && !z(ie))
|
|
2029
|
-
throw nt(
|
|
2030
|
-
return
|
|
2029
|
+
throw nt(Be.INVALID_ARGUMENT);
|
|
2030
|
+
return j(I, ee, fe({ resolvedMessage: !0 }, ie || {}));
|
|
2031
2031
|
}
|
|
2032
|
-
function
|
|
2033
|
-
return x((I) => Reflect.apply(pn, null, [I, ...f]), () => Pt(...f), "datetime format", (I) => Reflect.apply(I.d, I, [...f]), () =>
|
|
2032
|
+
function J(...f) {
|
|
2033
|
+
return x((I) => Reflect.apply(pn, null, [I, ...f]), () => Pt(...f), "datetime format", (I) => Reflect.apply(I.d, I, [...f]), () => mn, (I) => F(I));
|
|
2034
2034
|
}
|
|
2035
|
-
function
|
|
2036
|
-
return x((I) => Reflect.apply(
|
|
2035
|
+
function X(...f) {
|
|
2036
|
+
return x((I) => Reflect.apply(hn, null, [I, ...f]), () => Ft(...f), "number format", (I) => Reflect.apply(I.n, I, [...f]), () => mn, (I) => F(I));
|
|
2037
2037
|
}
|
|
2038
2038
|
function K(f) {
|
|
2039
|
-
return f.map((I) => F(I) ||
|
|
2039
|
+
return f.map((I) => F(I) || de(I) || ce(I) ? Nn(String(I)) : I);
|
|
2040
2040
|
}
|
|
2041
2041
|
const re = {
|
|
2042
2042
|
normalize: K,
|
|
@@ -2053,13 +2053,13 @@ function ar(e = {}) {
|
|
|
2053
2053
|
ie.processor = null;
|
|
2054
2054
|
}
|
|
2055
2055
|
return ee;
|
|
2056
|
-
}, () =>
|
|
2057
|
-
}
|
|
2058
|
-
function $e(...f) {
|
|
2059
|
-
return x((I) => Reflect.apply(bn, null, [I, ...f]), () => Ft(...f), "number format", (I) => I[Wt](...f), Tn, (I) => F(I) || ue(I));
|
|
2056
|
+
}, () => jt(...f), "translate", (I) => I[Ut](...f), (I) => [Nn(I)], (I) => ue(I));
|
|
2060
2057
|
}
|
|
2061
2058
|
function Je(...f) {
|
|
2062
|
-
return x((I) => Reflect.apply(
|
|
2059
|
+
return x((I) => Reflect.apply(hn, null, [I, ...f]), () => Ft(...f), "number format", (I) => I[Wt](...f), kn, (I) => F(I) || ue(I));
|
|
2060
|
+
}
|
|
2061
|
+
function $e(...f) {
|
|
2062
|
+
return x((I) => Reflect.apply(pn, null, [I, ...f]), () => Pt(...f), "datetime format", (I) => I[Vt](...f), kn, (I) => F(I) || ue(I));
|
|
2063
2063
|
}
|
|
2064
2064
|
function vt(f) {
|
|
2065
2065
|
S = f, g.pluralRules = S;
|
|
@@ -2068,13 +2068,13 @@ function ar(e = {}) {
|
|
|
2068
2068
|
return x(() => {
|
|
2069
2069
|
if (!f)
|
|
2070
2070
|
return !1;
|
|
2071
|
-
const ee = F(I) ? I :
|
|
2072
|
-
return
|
|
2071
|
+
const ee = F(I) ? I : m.value, ie = We(ee), Pe = g.messageResolver(ie, f);
|
|
2072
|
+
return He(Pe) || ve(Pe) || F(Pe);
|
|
2073
2073
|
}, () => [f], "translate exists", (ee) => Reflect.apply(ee.te, ee, [f, I]), nr, (ee) => ce(ee));
|
|
2074
2074
|
}
|
|
2075
2075
|
function Et(f) {
|
|
2076
2076
|
let I = null;
|
|
2077
|
-
const ee = Mn(g, u.value,
|
|
2077
|
+
const ee = Mn(g, u.value, m.value);
|
|
2078
2078
|
for (let ie = 0; ie < ee.length; ie++) {
|
|
2079
2079
|
const Pe = p.value[ee[ie]] || {}, at = g.messageResolver(Pe, f);
|
|
2080
2080
|
if (at != null) {
|
|
@@ -2106,45 +2106,45 @@ function ar(e = {}) {
|
|
|
2106
2106
|
if (l)
|
|
2107
2107
|
for (const ie in ee)
|
|
2108
2108
|
Ne(ee, ie) && st(ee[ie]);
|
|
2109
|
-
I = ee[f],
|
|
2109
|
+
I = ee[f], mt(I, p.value[f]), g.messages = p.value;
|
|
2110
2110
|
}
|
|
2111
2111
|
function Nt(f) {
|
|
2112
2112
|
return O.value[f] || {};
|
|
2113
2113
|
}
|
|
2114
2114
|
function r(f, I) {
|
|
2115
|
-
O.value[f] = I, g.datetimeFormats = O.value,
|
|
2115
|
+
O.value[f] = I, g.datetimeFormats = O.value, bn(g, f, I);
|
|
2116
2116
|
}
|
|
2117
2117
|
function o(f, I) {
|
|
2118
|
-
O.value[f] = fe(O.value[f] || {}, I), g.datetimeFormats = O.value,
|
|
2118
|
+
O.value[f] = fe(O.value[f] || {}, I), g.datetimeFormats = O.value, bn(g, f, I);
|
|
2119
2119
|
}
|
|
2120
|
-
function
|
|
2121
|
-
return
|
|
2120
|
+
function h(f) {
|
|
2121
|
+
return C.value[f] || {};
|
|
2122
2122
|
}
|
|
2123
|
-
function
|
|
2124
|
-
|
|
2123
|
+
function U(f, I) {
|
|
2124
|
+
C.value[f] = I, g.numberFormats = C.value, gn(g, f, I);
|
|
2125
2125
|
}
|
|
2126
2126
|
function oe(f, I) {
|
|
2127
|
-
|
|
2127
|
+
C.value[f] = fe(C.value[f] || {}, I), g.numberFormats = C.value, gn(g, f, I);
|
|
2128
2128
|
}
|
|
2129
|
-
|
|
2130
|
-
c && (
|
|
2129
|
+
Tn++, t && en && (St(t.locale, (f) => {
|
|
2130
|
+
c && (m.value = f, g.locale = f, Qe(g, m.value, u.value));
|
|
2131
2131
|
}), St(t.fallbackLocale, (f) => {
|
|
2132
|
-
c && (u.value = f, g.fallbackLocale = f, Qe(g,
|
|
2132
|
+
c && (u.value = f, g.fallbackLocale = f, Qe(g, m.value, u.value));
|
|
2133
2133
|
}));
|
|
2134
|
-
const
|
|
2135
|
-
id:
|
|
2134
|
+
const Y = {
|
|
2135
|
+
id: Tn,
|
|
2136
2136
|
locale: E,
|
|
2137
|
-
fallbackLocale:
|
|
2137
|
+
fallbackLocale: A,
|
|
2138
2138
|
get inheritLocale() {
|
|
2139
2139
|
return c;
|
|
2140
2140
|
},
|
|
2141
2141
|
set inheritLocale(f) {
|
|
2142
|
-
c = f, f && t && (
|
|
2142
|
+
c = f, f && t && (m.value = t.locale.value, u.value = t.fallbackLocale.value, Qe(g, m.value, u.value));
|
|
2143
2143
|
},
|
|
2144
2144
|
get availableLocales() {
|
|
2145
2145
|
return Object.keys(p.value).sort();
|
|
2146
2146
|
},
|
|
2147
|
-
messages:
|
|
2147
|
+
messages: R,
|
|
2148
2148
|
get modifiers() {
|
|
2149
2149
|
return w;
|
|
2150
2150
|
},
|
|
@@ -2190,17 +2190,17 @@ function ar(e = {}) {
|
|
|
2190
2190
|
set escapeParameter(f) {
|
|
2191
2191
|
_ = f, g.escapeParameter = f;
|
|
2192
2192
|
},
|
|
2193
|
-
t:
|
|
2193
|
+
t: j,
|
|
2194
2194
|
getLocaleMessage: We,
|
|
2195
2195
|
setLocaleMessage: Ge,
|
|
2196
2196
|
mergeLocaleMessage: Ke,
|
|
2197
2197
|
getPostTranslationHandler: D,
|
|
2198
|
-
setPostTranslationHandler:
|
|
2199
|
-
getMissingHandler:
|
|
2200
|
-
setMissingHandler:
|
|
2198
|
+
setPostTranslationHandler: T,
|
|
2199
|
+
getMissingHandler: k,
|
|
2200
|
+
setMissingHandler: Z,
|
|
2201
2201
|
[er]: vt
|
|
2202
2202
|
};
|
|
2203
|
-
return
|
|
2203
|
+
return Y.datetimeFormats = G, Y.numberFormats = W, Y.rt = ne, Y.te = It, Y.tm = ze, Y.d = J, Y.n = X, Y.getDateTimeFormat = Nt, Y.setDateTimeFormat = r, Y.mergeDateTimeFormat = o, Y.getNumberFormat = h, Y.setNumberFormat = U, Y.mergeNumberFormat = oe, Y[Xn] = n, Y[Ut] = Ie, Y[Vt] = $e, Y[Wt] = Je, Y;
|
|
2204
2204
|
}
|
|
2205
2205
|
const zt = {
|
|
2206
2206
|
tag: {
|
|
@@ -2230,7 +2230,7 @@ function rr({ slots: e }, t) {
|
|
|
2230
2230
|
return l && (n[s] = l()), n;
|
|
2231
2231
|
}, q());
|
|
2232
2232
|
}
|
|
2233
|
-
function
|
|
2233
|
+
function Hn() {
|
|
2234
2234
|
return Ee;
|
|
2235
2235
|
}
|
|
2236
2236
|
fe({
|
|
@@ -2240,26 +2240,26 @@ fe({
|
|
|
2240
2240
|
},
|
|
2241
2241
|
plural: {
|
|
2242
2242
|
type: [Number, String],
|
|
2243
|
-
validator: (e) =>
|
|
2243
|
+
validator: (e) => de(e) || !isNaN(e)
|
|
2244
2244
|
}
|
|
2245
2245
|
}, zt);
|
|
2246
2246
|
function lr(e) {
|
|
2247
2247
|
return ue(e) && !F(e[0]);
|
|
2248
2248
|
}
|
|
2249
|
-
function
|
|
2249
|
+
function Bn(e, t, n, s) {
|
|
2250
2250
|
const { slots: l, attrs: a } = t;
|
|
2251
2251
|
return () => {
|
|
2252
2252
|
const c = { part: !0 };
|
|
2253
|
-
let
|
|
2254
|
-
e.locale && (c.locale = e.locale), F(e.format) ? c.key = e.format : z(e.format) && (F(e.format.key) && (c.key = e.format.key),
|
|
2255
|
-
const u = s(e.value, c,
|
|
2253
|
+
let m = q();
|
|
2254
|
+
e.locale && (c.locale = e.locale), F(e.format) ? c.key = e.format : z(e.format) && (F(e.format.key) && (c.key = e.format.key), m = Object.keys(e.format).reduce((N, P) => n.includes(P) ? fe(q(), N, { [P]: e.format[P] }) : N, q()));
|
|
2255
|
+
const u = s(e.value, c, m);
|
|
2256
2256
|
let p = [c.key];
|
|
2257
2257
|
ue(u) ? p = u.map((N, P) => {
|
|
2258
2258
|
const V = l[N.type], L = V ? V({ [N.type]: N.value, index: P, parts: u }) : [N.value];
|
|
2259
2259
|
return lr(L) && (L[0].key = `${N.type}-${P}`), L;
|
|
2260
2260
|
}) : F(u) && (p = [u]);
|
|
2261
|
-
const O = fe(q(), a),
|
|
2262
|
-
return Sn(
|
|
2261
|
+
const O = fe(q(), a), C = F(e.tag) || z(e.tag) ? e.tag : Hn();
|
|
2262
|
+
return Sn(C, O, p);
|
|
2263
2263
|
};
|
|
2264
2264
|
}
|
|
2265
2265
|
fe({
|
|
@@ -2284,28 +2284,28 @@ const or = /* @__PURE__ */ Ve("global-vue-i18n");
|
|
|
2284
2284
|
function gt(e = {}) {
|
|
2285
2285
|
const t = xt();
|
|
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 = ir(t), s = ur(n), l =
|
|
2289
|
+
throw nt(Be.NOT_INSTALLED);
|
|
2290
|
+
const n = ir(t), s = ur(n), l = Zn(t), a = cr(e, l);
|
|
2291
2291
|
if (a === "global")
|
|
2292
2292
|
return tr(s, e, l), s;
|
|
2293
2293
|
if (a === "parent") {
|
|
2294
|
-
let u =
|
|
2294
|
+
let u = mr(n, t, e.__useComponent);
|
|
2295
2295
|
return u == null && (u = s), u;
|
|
2296
2296
|
}
|
|
2297
2297
|
const c = n;
|
|
2298
|
-
let
|
|
2299
|
-
if (
|
|
2298
|
+
let m = c.__getInstance(t);
|
|
2299
|
+
if (m == null) {
|
|
2300
2300
|
const u = fe({}, e);
|
|
2301
|
-
"__i18n" in l && (u.__i18n = l.__i18n), s && (u.__root = s),
|
|
2301
|
+
"__i18n" in l && (u.__i18n = l.__i18n), s && (u.__root = s), m = ar(u), c.__composerExtend && (m[Gt] = c.__composerExtend(m)), fr(c, t, m), c.__setInstance(t, m);
|
|
2302
2302
|
}
|
|
2303
|
-
return
|
|
2303
|
+
return m;
|
|
2304
2304
|
}
|
|
2305
2305
|
function ir(e) {
|
|
2306
|
-
const t =
|
|
2306
|
+
const t = $n(e.isCE ? or : 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
2311
|
function cr(e, t) {
|
|
@@ -2314,17 +2314,17 @@ function cr(e, t) {
|
|
|
2314
2314
|
function ur(e) {
|
|
2315
2315
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2316
2316
|
}
|
|
2317
|
-
function
|
|
2317
|
+
function mr(e, t, n = !1) {
|
|
2318
2318
|
let s = null;
|
|
2319
2319
|
const l = t.root;
|
|
2320
|
-
let a =
|
|
2320
|
+
let a = dr(t, n);
|
|
2321
2321
|
for (; a != null; ) {
|
|
2322
2322
|
const c = e;
|
|
2323
2323
|
if (e.mode === "composition")
|
|
2324
2324
|
s = c.__getInstance(a);
|
|
2325
2325
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
2326
|
-
const
|
|
2327
|
-
|
|
2326
|
+
const m = c.__getInstance(a);
|
|
2327
|
+
m != null && (s = m.__composer, n && s && !s[Xn] && (s = null));
|
|
2328
2328
|
}
|
|
2329
2329
|
if (s != null || l === a)
|
|
2330
2330
|
break;
|
|
@@ -2332,12 +2332,12 @@ function dr(e, t, n = !1) {
|
|
|
2332
2332
|
}
|
|
2333
2333
|
return s;
|
|
2334
2334
|
}
|
|
2335
|
-
function
|
|
2335
|
+
function dr(e, t = !1) {
|
|
2336
2336
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2337
2337
|
}
|
|
2338
2338
|
function fr(e, t, n) {
|
|
2339
|
-
|
|
2340
|
-
}, t),
|
|
2339
|
+
Xt(() => {
|
|
2340
|
+
}, t), An(() => {
|
|
2341
2341
|
const s = n;
|
|
2342
2342
|
e.__deleteInstance(t);
|
|
2343
2343
|
const l = s[Gt];
|
|
@@ -2345,12 +2345,12 @@ function fr(e, t, n) {
|
|
|
2345
2345
|
}, t);
|
|
2346
2346
|
}
|
|
2347
2347
|
qa();
|
|
2348
|
-
|
|
2348
|
+
Aa(ma);
|
|
2349
2349
|
Sa(La);
|
|
2350
2350
|
Da(Mn);
|
|
2351
2351
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2352
|
-
const e =
|
|
2353
|
-
e.__INTLIFY__ = !0,
|
|
2352
|
+
const e = je();
|
|
2353
|
+
e.__INTLIFY__ = !0, da(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2354
2354
|
}
|
|
2355
2355
|
const it = /* @__PURE__ */ ye({
|
|
2356
2356
|
__name: "InheritPermissionTooltip",
|
|
@@ -2363,19 +2363,19 @@ const it = /* @__PURE__ */ ye({
|
|
|
2363
2363
|
setup(e) {
|
|
2364
2364
|
const { t } = gt();
|
|
2365
2365
|
return (n, s) => {
|
|
2366
|
-
const l =
|
|
2367
|
-
return
|
|
2366
|
+
const l = Ye("FmIcon"), a = Ye("FmTooltip");
|
|
2367
|
+
return H(), Se(a, {
|
|
2368
2368
|
variant: "plain",
|
|
2369
2369
|
placement: "right",
|
|
2370
2370
|
"z-index": 50
|
|
2371
2371
|
}, {
|
|
2372
|
-
content:
|
|
2373
|
-
ae("div", null,
|
|
2374
|
-
(
|
|
2375
|
-
ae("div", null, "- " +
|
|
2372
|
+
content: he(() => [
|
|
2373
|
+
ae("div", null, Ae(B(t)("team.memberForm.permissions.inherited")), 1),
|
|
2374
|
+
(H(!0), se(Ee, null, be(e.item.setNames, (c) => (H(), se("div", { key: c }, [
|
|
2375
|
+
ae("div", null, "- " + Ae(c), 1)
|
|
2376
2376
|
]))), 128))
|
|
2377
2377
|
]),
|
|
2378
|
-
default:
|
|
2378
|
+
default: he(() => [
|
|
2379
2379
|
_e(l, {
|
|
2380
2380
|
name: "admin_panel_settings",
|
|
2381
2381
|
size: "sm",
|
|
@@ -2389,10 +2389,10 @@ const it = /* @__PURE__ */ ye({
|
|
|
2389
2389
|
}), _r = { class: "space-y-16" }, pr = {
|
|
2390
2390
|
key: 0,
|
|
2391
2391
|
class: "flex fm-typo-en-title-sm-600"
|
|
2392
|
-
},
|
|
2392
|
+
}, br = {
|
|
2393
2393
|
key: 0,
|
|
2394
2394
|
class: "q-mr-xs text-red col"
|
|
2395
|
-
},
|
|
2395
|
+
}, hr = { class: "form-input" }, gr = /* @__PURE__ */ ye({
|
|
2396
2396
|
__name: "AppForm",
|
|
2397
2397
|
props: {
|
|
2398
2398
|
title: {
|
|
@@ -2410,17 +2410,17 @@ const it = /* @__PURE__ */ ye({
|
|
|
2410
2410
|
},
|
|
2411
2411
|
setup(e) {
|
|
2412
2412
|
const t = e;
|
|
2413
|
-
return (n, s) => (
|
|
2413
|
+
return (n, s) => (H(), se("div", _r, [
|
|
2414
2414
|
ge(n.$slots, "top", {}, () => [
|
|
2415
|
-
t.title ? (
|
|
2415
|
+
t.title ? (H(), se("div", pr, [
|
|
2416
2416
|
ae("div", null, [
|
|
2417
|
-
t.required ? (
|
|
2418
|
-
Qn(
|
|
2417
|
+
t.required ? (H(), se("span", br, "*")) : Oe("", !0),
|
|
2418
|
+
Qn(Ae(t.title), 1)
|
|
2419
2419
|
]),
|
|
2420
2420
|
ge(n.$slots, "title-right")
|
|
2421
2421
|
])) : Oe("", !0)
|
|
2422
2422
|
]),
|
|
2423
|
-
ae("div",
|
|
2423
|
+
ae("div", hr, [
|
|
2424
2424
|
ge(n.$slots, "default")
|
|
2425
2425
|
])
|
|
2426
2426
|
]));
|
|
@@ -2494,9 +2494,9 @@ const Ir = { class: "col flex items-center" }, Er = {
|
|
|
2494
2494
|
},
|
|
2495
2495
|
emits: ["update:model-value"],
|
|
2496
2496
|
setup(e, { emit: t }) {
|
|
2497
|
-
const n = e, s = t, { t: l } = _t(), a =
|
|
2497
|
+
const n = e, s = t, { t: l } = _t(), a = Ue(!1), c = qn(), m = te(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), u = `checkbox-${vr(6)}`, p = te(() => m.value !== !0), O = te(
|
|
2498
2498
|
() => n.modelValue.filter((L) => n.options.some((M) => M.value === L))
|
|
2499
|
-
),
|
|
2499
|
+
), C = te(
|
|
2500
2500
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2501
2501
|
), N = te(() => n.options.length > 0 && n.options.length === O.value.length);
|
|
2502
2502
|
function P() {
|
|
@@ -2510,32 +2510,32 @@ const Ir = { class: "col flex items-center" }, Er = {
|
|
|
2510
2510
|
}
|
|
2511
2511
|
function V(L, M) {
|
|
2512
2512
|
let i = ut(n.modelValue);
|
|
2513
|
-
M ? i.every((
|
|
2513
|
+
M ? i.every((d) => d !== L) && i.push(L) : i = i.filter((d) => d !== L), s("update:model-value", i);
|
|
2514
2514
|
}
|
|
2515
2515
|
return (L, M) => {
|
|
2516
|
-
const i =
|
|
2517
|
-
return
|
|
2516
|
+
const i = Ye("FmCheckbox");
|
|
2517
|
+
return H(), Se(gr, {
|
|
2518
2518
|
id: u,
|
|
2519
2519
|
title: e.title,
|
|
2520
2520
|
required: !1
|
|
2521
2521
|
}, {
|
|
2522
|
-
top:
|
|
2522
|
+
top: he(() => [
|
|
2523
2523
|
ge(L.$slots, "top")
|
|
2524
2524
|
]),
|
|
2525
|
-
default:
|
|
2526
|
-
n.showAllToggle ? (
|
|
2525
|
+
default: he(() => [
|
|
2526
|
+
n.showAllToggle ? (H(), Se(i, {
|
|
2527
2527
|
key: 0,
|
|
2528
2528
|
"model-value": N.value,
|
|
2529
2529
|
disabled: e.disable,
|
|
2530
|
-
label:
|
|
2530
|
+
label: C.value,
|
|
2531
2531
|
style: ct(`margin-bottom: ${n.gutter}px`),
|
|
2532
2532
|
size: "sm",
|
|
2533
2533
|
dense: "",
|
|
2534
|
-
value:
|
|
2534
|
+
value: C.value,
|
|
2535
2535
|
"onUpdate:modelValue": P
|
|
2536
2536
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Oe("", !0),
|
|
2537
|
-
(
|
|
2538
|
-
key:
|
|
2537
|
+
(H(!0), se(Ee, null, be(e.options, (d, y) => (H(), se("div", {
|
|
2538
|
+
key: d.value,
|
|
2539
2539
|
style: ct(`margin-bottom: ${y < e.options.length - 1 ? n.gutter : 0}px`),
|
|
2540
2540
|
class: qe(y < e.options.length - 1 ? "q-mb-sm" : "")
|
|
2541
2541
|
}, [
|
|
@@ -2544,42 +2544,42 @@ const Ir = { class: "col flex items-center" }, Er = {
|
|
|
2544
2544
|
}, [
|
|
2545
2545
|
ae("div", Ir, [
|
|
2546
2546
|
_e(i, {
|
|
2547
|
-
"model-value": e.modelValue.includes(
|
|
2548
|
-
disabled: e.disable ||
|
|
2547
|
+
"model-value": e.modelValue.includes(d.value),
|
|
2548
|
+
disabled: e.disable || d.disabled,
|
|
2549
2549
|
size: "sm",
|
|
2550
|
-
label:
|
|
2551
|
-
value:
|
|
2552
|
-
"onUpdate:modelValue": (_) => V(
|
|
2550
|
+
label: d.label,
|
|
2551
|
+
value: d.label,
|
|
2552
|
+
"onUpdate:modelValue": (_) => V(d.value, _)
|
|
2553
2553
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
2554
|
-
ge(L.$slots, `checkbox-${
|
|
2555
|
-
option:
|
|
2556
|
-
selected: e.modelValue.includes(
|
|
2554
|
+
ge(L.$slots, `checkbox-${d.key || d.value}-append`, {
|
|
2555
|
+
option: d,
|
|
2556
|
+
selected: e.modelValue.includes(d.value)
|
|
2557
2557
|
})
|
|
2558
2558
|
]),
|
|
2559
|
-
|
|
2559
|
+
B(c)[`checkbox-${d.key || d.value}-end`] && (e.modelValue.includes(d.value) || e.falsyShowSlot) ? (H(), se("div", {
|
|
2560
2560
|
key: 0,
|
|
2561
|
-
class: qe([{ "q-checkbox disabled": e.disable ||
|
|
2561
|
+
class: qe([{ "q-checkbox disabled": e.disable || d.disabled }, "col"])
|
|
2562
2562
|
}, [
|
|
2563
|
-
ge(L.$slots, `checkbox-${
|
|
2564
|
-
option:
|
|
2565
|
-
value: e.modelValue.includes(
|
|
2566
|
-
disable: e.disable ||
|
|
2563
|
+
ge(L.$slots, `checkbox-${d.key || d.value}-end`, {
|
|
2564
|
+
option: d,
|
|
2565
|
+
value: e.modelValue.includes(d.value),
|
|
2566
|
+
disable: e.disable || d.disabled
|
|
2567
2567
|
})
|
|
2568
2568
|
], 2)) : Oe("", !0)
|
|
2569
2569
|
], 2),
|
|
2570
|
-
|
|
2570
|
+
B(c)[`checkbox-${d.key || d.value}-bottom`] && (e.modelValue.includes(d.value) || e.falsyShowSlot) ? (H(), se("div", {
|
|
2571
2571
|
key: 0,
|
|
2572
|
-
class: qe(["q-mt-sm", { "q-checkbox disabled": e.disable ||
|
|
2572
|
+
class: qe(["q-mt-sm", { "q-checkbox disabled": e.disable || d.disabled }]),
|
|
2573
2573
|
style: ct(`margin-left: ${e.bottomSlotIndent}`)
|
|
2574
2574
|
}, [
|
|
2575
|
-
ge(L.$slots, `checkbox-${
|
|
2576
|
-
option:
|
|
2577
|
-
disable: e.disable ||
|
|
2578
|
-
value: e.modelValue.includes(
|
|
2575
|
+
ge(L.$slots, `checkbox-${d.key || d.value}-bottom`, {
|
|
2576
|
+
option: d,
|
|
2577
|
+
disable: e.disable || d.disabled,
|
|
2578
|
+
value: e.modelValue.includes(d.value)
|
|
2579
2579
|
})
|
|
2580
2580
|
], 6)) : Oe("", !0)
|
|
2581
2581
|
], 6))), 128)),
|
|
2582
|
-
a.value && p.value ? (
|
|
2582
|
+
a.value && p.value ? (H(), se("div", Er, Ae(m.value), 1)) : Oe("", !0)
|
|
2583
2583
|
]),
|
|
2584
2584
|
_: 3
|
|
2585
2585
|
}, 8, ["title"]);
|
|
@@ -2587,11 +2587,11 @@ const Ir = { class: "col flex items-center" }, Er = {
|
|
|
2587
2587
|
}
|
|
2588
2588
|
});
|
|
2589
2589
|
function Ln(e, t, n) {
|
|
2590
|
-
const s = n.filter((
|
|
2590
|
+
const s = n.filter((m) => m !== "manage");
|
|
2591
2591
|
if (s.length === 0) return;
|
|
2592
|
-
const l = e.findIndex((
|
|
2592
|
+
const l = e.findIndex((m) => m.subject === t && !m.inverted);
|
|
2593
2593
|
if (l < 0) return;
|
|
2594
|
-
const a = new Set(e[l].actions), c = s.every((
|
|
2594
|
+
const a = new Set(e[l].actions), c = s.every((m) => a.has(m));
|
|
2595
2595
|
c && !a.has("manage") ? (a.add("manage"), e[l] = {
|
|
2596
2596
|
...e[l],
|
|
2597
2597
|
actions: Array.from(a)
|
|
@@ -2600,203 +2600,203 @@ function Ln(e, t, n) {
|
|
|
2600
2600
|
actions: Array.from(a)
|
|
2601
2601
|
});
|
|
2602
2602
|
}
|
|
2603
|
-
const
|
|
2603
|
+
const Cn = Object.values(us);
|
|
2604
2604
|
function Nr(e, t, n, s) {
|
|
2605
|
-
const { getFlagValue: l, getFlag: a } =
|
|
2606
|
-
var
|
|
2607
|
-
const v = /* @__PURE__ */ new Map(),
|
|
2608
|
-
for (const
|
|
2609
|
-
const G =
|
|
2610
|
-
if (!G || n.value.includes(
|
|
2605
|
+
const { getFlagValue: l, getFlag: a } = ds(), c = te(() => {
|
|
2606
|
+
var A;
|
|
2607
|
+
const v = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map();
|
|
2608
|
+
for (const R of t.value) {
|
|
2609
|
+
const G = R.category;
|
|
2610
|
+
if (!G || n.value.includes(R.subject) || R.showByFeatureFlag && l(R.showByFeatureFlag) === "false") continue;
|
|
2611
2611
|
const W = cs[G];
|
|
2612
|
-
W && ((
|
|
2612
|
+
W && ((A = a(W)) == null ? void 0 : A.enabled) === !1 || (v.has(G) || v.set(G, []), v.get(G).push({ label: R.label, value: R.subject }), b.set(R.subject, R));
|
|
2613
2613
|
}
|
|
2614
|
-
return [...v.keys()].sort((
|
|
2615
|
-
const W =
|
|
2616
|
-
return W === -1 && D === -1 ?
|
|
2617
|
-
}).map((
|
|
2618
|
-
const G = v.get(
|
|
2619
|
-
for (const
|
|
2620
|
-
const K =
|
|
2621
|
-
K && W.set(
|
|
2614
|
+
return [...v.keys()].sort((R, G) => {
|
|
2615
|
+
const W = Cn.indexOf(R), D = Cn.indexOf(G);
|
|
2616
|
+
return W === -1 && D === -1 ? R.localeCompare(G) : W === -1 ? 1 : D === -1 ? -1 : W - D;
|
|
2617
|
+
}).map((R) => {
|
|
2618
|
+
const G = v.get(R), W = /* @__PURE__ */ new Map();
|
|
2619
|
+
for (const X of G) {
|
|
2620
|
+
const K = b.get(X.value);
|
|
2621
|
+
K && W.set(X.value, K.actions);
|
|
2622
2622
|
}
|
|
2623
|
-
const D = G.some((
|
|
2624
|
-
const K = W.get(
|
|
2623
|
+
const D = G.some((X) => {
|
|
2624
|
+
const K = W.get(X.value);
|
|
2625
2625
|
return K && K.length > 1;
|
|
2626
|
-
}),
|
|
2626
|
+
}), T = D ? [
|
|
2627
2627
|
...new Set(
|
|
2628
|
-
G.flatMap((
|
|
2628
|
+
G.flatMap((X) => W.get(X.value) ?? []).filter((X) => X !== "manage")
|
|
2629
2629
|
)
|
|
2630
|
-
] : [],
|
|
2631
|
-
for (const
|
|
2632
|
-
G.some((K) => K.value ===
|
|
2633
|
-
const
|
|
2634
|
-
(
|
|
2635
|
-
).map((
|
|
2630
|
+
] : [], k = /* @__PURE__ */ new Map();
|
|
2631
|
+
for (const X of e.value)
|
|
2632
|
+
G.some((K) => K.value === X.subject) && !X.inverted && k.set(X.subject, new Set(X.actions));
|
|
2633
|
+
const Z = D ? e.value.filter(
|
|
2634
|
+
(X) => G.some((K) => K.value === X.subject) && !X.inverted && X.actions.includes("manage")
|
|
2635
|
+
).map((X) => X.subject) : e.value.filter((X) => G.some((K) => K.value === X.subject) && !X.inverted).map((X) => X.subject), x = G.find((X) => {
|
|
2636
2636
|
var K;
|
|
2637
|
-
return (K =
|
|
2638
|
-
}),
|
|
2637
|
+
return (K = b.get(X.value)) == null ? void 0 : K.isCategoryCover;
|
|
2638
|
+
}), j = (x == null ? void 0 : x.value) ?? null, ne = j ? k.get(j) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), J = ne.has("manage");
|
|
2639
2639
|
return {
|
|
2640
|
-
category:
|
|
2640
|
+
category: R,
|
|
2641
2641
|
options: G,
|
|
2642
|
-
selectedSubjects:
|
|
2642
|
+
selectedSubjects: Z,
|
|
2643
2643
|
isMultiAction: D,
|
|
2644
|
-
actionColumns:
|
|
2644
|
+
actionColumns: T,
|
|
2645
2645
|
permissionActionsMap: W,
|
|
2646
|
-
selectedActionsMap:
|
|
2647
|
-
coverSubject:
|
|
2646
|
+
selectedActionsMap: k,
|
|
2647
|
+
coverSubject: j,
|
|
2648
2648
|
coverSelectedActions: ne,
|
|
2649
|
-
coverCoversAll:
|
|
2649
|
+
coverCoversAll: J
|
|
2650
2650
|
};
|
|
2651
2651
|
});
|
|
2652
2652
|
});
|
|
2653
|
-
function
|
|
2654
|
-
var
|
|
2655
|
-
const E = ((
|
|
2653
|
+
function m(v, b) {
|
|
2654
|
+
var A;
|
|
2655
|
+
const E = ((A = c.value.find((R) => R.category === v)) == null ? void 0 : A.options) ?? [];
|
|
2656
2656
|
s("update:model-value", [
|
|
2657
|
-
...e.value.filter((
|
|
2658
|
-
...t.value.filter((
|
|
2659
|
-
({ category:
|
|
2657
|
+
...e.value.filter((R) => !E.some((G) => G.value === R.subject)),
|
|
2658
|
+
...t.value.filter((R) => b.includes(R.subject)).map(
|
|
2659
|
+
({ category: R, showByFeatureFlag: G, isCategoryCover: W, ...D }) => D
|
|
2660
2660
|
)
|
|
2661
2661
|
]);
|
|
2662
2662
|
}
|
|
2663
2663
|
function u(v) {
|
|
2664
|
-
return v.options.length > 0 && v.options.every((
|
|
2664
|
+
return v.options.length > 0 && v.options.every((b) => v.selectedSubjects.includes(b.value));
|
|
2665
2665
|
}
|
|
2666
2666
|
function p(v) {
|
|
2667
|
-
const
|
|
2668
|
-
(E) => !v.options.some((
|
|
2667
|
+
const b = e.value.filter(
|
|
2668
|
+
(E) => !v.options.some((A) => A.value === E.subject)
|
|
2669
2669
|
);
|
|
2670
2670
|
if (u(v))
|
|
2671
|
-
s("update:model-value",
|
|
2671
|
+
s("update:model-value", b);
|
|
2672
2672
|
else {
|
|
2673
|
-
const E = t.value.filter((
|
|
2674
|
-
({ category:
|
|
2673
|
+
const E = t.value.filter((A) => v.options.some((R) => R.value === A.subject)).map(
|
|
2674
|
+
({ category: A, showByFeatureFlag: R, isCategoryCover: G, ...W }) => W
|
|
2675
2675
|
);
|
|
2676
|
-
s("update:model-value", [...
|
|
2676
|
+
s("update:model-value", [...b, ...E]);
|
|
2677
2677
|
}
|
|
2678
2678
|
}
|
|
2679
|
-
function O(v,
|
|
2680
|
-
const E = v.selectedActionsMap.get(
|
|
2679
|
+
function O(v, b) {
|
|
2680
|
+
const E = v.selectedActionsMap.get(b);
|
|
2681
2681
|
return E ? E.has("manage") : !1;
|
|
2682
2682
|
}
|
|
2683
|
-
function
|
|
2684
|
-
const E = v.permissionActionsMap.get(
|
|
2683
|
+
function C(v, b) {
|
|
2684
|
+
const E = v.permissionActionsMap.get(b);
|
|
2685
2685
|
if (!E) return !1;
|
|
2686
|
-
const
|
|
2687
|
-
if (
|
|
2688
|
-
const
|
|
2689
|
-
if (!
|
|
2690
|
-
const G =
|
|
2691
|
-
return G.length > 0 && G.length <
|
|
2692
|
-
}
|
|
2693
|
-
function N(v,
|
|
2686
|
+
const A = E.filter((W) => W !== "manage");
|
|
2687
|
+
if (A.length === 0) return !1;
|
|
2688
|
+
const R = v.selectedActionsMap.get(b);
|
|
2689
|
+
if (!R) return !1;
|
|
2690
|
+
const G = A.filter((W) => R.has(W));
|
|
2691
|
+
return G.length > 0 && G.length < A.length;
|
|
2692
|
+
}
|
|
2693
|
+
function N(v, b, E) {
|
|
2694
2694
|
if (E) {
|
|
2695
|
-
const
|
|
2696
|
-
if (!
|
|
2695
|
+
const A = t.value.find((k) => k.subject === b);
|
|
2696
|
+
if (!A) return;
|
|
2697
2697
|
const {
|
|
2698
|
-
category:
|
|
2698
|
+
category: R,
|
|
2699
2699
|
showByFeatureFlag: G,
|
|
2700
2700
|
isCategoryCover: W,
|
|
2701
2701
|
...D
|
|
2702
|
-
} =
|
|
2703
|
-
|
|
2702
|
+
} = A, T = e.value.filter((k) => k.subject !== b);
|
|
2703
|
+
T.push(D), s("update:model-value", T);
|
|
2704
2704
|
} else
|
|
2705
2705
|
s(
|
|
2706
2706
|
"update:model-value",
|
|
2707
|
-
e.value.filter((
|
|
2707
|
+
e.value.filter((A) => A.subject !== b)
|
|
2708
2708
|
);
|
|
2709
2709
|
}
|
|
2710
|
-
function P(v,
|
|
2711
|
-
const E = v.permissionActionsMap.get(
|
|
2712
|
-
return E ? E.some((
|
|
2710
|
+
function P(v, b) {
|
|
2711
|
+
const E = v.permissionActionsMap.get(b);
|
|
2712
|
+
return E ? E.some((A) => A !== "manage") : !1;
|
|
2713
2713
|
}
|
|
2714
|
-
function V(v,
|
|
2715
|
-
const
|
|
2716
|
-
return
|
|
2714
|
+
function V(v, b, E) {
|
|
2715
|
+
const A = v.selectedActionsMap.get(b);
|
|
2716
|
+
return A ? A.has(E) : !1;
|
|
2717
2717
|
}
|
|
2718
|
-
function L(v,
|
|
2719
|
-
return !v.coverSubject ||
|
|
2718
|
+
function L(v, b) {
|
|
2719
|
+
return !v.coverSubject || b === v.coverSubject ? !1 : v.coverCoversAll;
|
|
2720
2720
|
}
|
|
2721
|
-
function M(v,
|
|
2722
|
-
return !v.coverSubject ||
|
|
2721
|
+
function M(v, b, E) {
|
|
2722
|
+
return !v.coverSubject || b === v.coverSubject ? !1 : v.coverCoversAll ? !0 : v.coverSelectedActions.has(E);
|
|
2723
2723
|
}
|
|
2724
|
-
function i(v,
|
|
2725
|
-
const
|
|
2726
|
-
return
|
|
2724
|
+
function i(v, b, E) {
|
|
2725
|
+
const A = v.permissionActionsMap.get(b);
|
|
2726
|
+
return A ? A.includes(E) : !1;
|
|
2727
2727
|
}
|
|
2728
|
-
function
|
|
2729
|
-
const
|
|
2728
|
+
function d(v, b, E) {
|
|
2729
|
+
const A = [...e.value], R = A.findIndex((W) => W.subject === v && !W.inverted);
|
|
2730
2730
|
if (E)
|
|
2731
|
-
if (
|
|
2732
|
-
const W = { ...
|
|
2733
|
-
D.add(
|
|
2731
|
+
if (R >= 0) {
|
|
2732
|
+
const W = { ...A[R] }, D = new Set(W.actions);
|
|
2733
|
+
D.add(b), W.actions = Array.from(D), A[R] = W;
|
|
2734
2734
|
} else {
|
|
2735
2735
|
const W = t.value.find((x) => x.subject === v);
|
|
2736
2736
|
if (!W) return;
|
|
2737
2737
|
const {
|
|
2738
2738
|
category: D,
|
|
2739
|
-
showByFeatureFlag:
|
|
2740
|
-
isCategoryCover:
|
|
2741
|
-
...
|
|
2739
|
+
showByFeatureFlag: T,
|
|
2740
|
+
isCategoryCover: k,
|
|
2741
|
+
...Z
|
|
2742
2742
|
} = W;
|
|
2743
|
-
|
|
2743
|
+
A.push({ ...Z, actions: [b] });
|
|
2744
2744
|
}
|
|
2745
|
-
else if (
|
|
2746
|
-
const W = { ...
|
|
2747
|
-
D.length === 0 ?
|
|
2745
|
+
else if (R >= 0) {
|
|
2746
|
+
const W = { ...A[R] }, D = W.actions.filter((T) => T !== b);
|
|
2747
|
+
D.length === 0 ? A.splice(R, 1) : (W.actions = D, A[R] = W);
|
|
2748
2748
|
}
|
|
2749
2749
|
const G = t.value.find((W) => W.subject === v);
|
|
2750
|
-
G && Ln(
|
|
2750
|
+
G && Ln(A, v, G.actions), s("update:model-value", A);
|
|
2751
2751
|
}
|
|
2752
|
-
function y(v,
|
|
2752
|
+
function y(v, b) {
|
|
2753
2753
|
const E = v.options.filter(
|
|
2754
|
-
(
|
|
2754
|
+
(A) => i(v, A.value, b)
|
|
2755
2755
|
);
|
|
2756
2756
|
return E.length === 0 ? !1 : E.every(
|
|
2757
|
-
(
|
|
2757
|
+
(A) => V(v, A.value, b) || M(v, A.value, b)
|
|
2758
2758
|
);
|
|
2759
2759
|
}
|
|
2760
|
-
function _(v,
|
|
2760
|
+
function _(v, b) {
|
|
2761
2761
|
const E = v.options.filter(
|
|
2762
|
-
(
|
|
2762
|
+
(R) => i(v, R.value, b)
|
|
2763
2763
|
);
|
|
2764
2764
|
if (E.length === 0) return !1;
|
|
2765
|
-
const
|
|
2766
|
-
(
|
|
2765
|
+
const A = E.filter(
|
|
2766
|
+
(R) => V(v, R.value, b) || M(v, R.value, b)
|
|
2767
2767
|
).length;
|
|
2768
|
-
return
|
|
2769
|
-
}
|
|
2770
|
-
function w(v,
|
|
2771
|
-
const
|
|
2772
|
-
for (const
|
|
2773
|
-
if (!i(v,
|
|
2774
|
-
const G =
|
|
2775
|
-
(
|
|
2768
|
+
return A > 0 && A < E.length;
|
|
2769
|
+
}
|
|
2770
|
+
function w(v, b, E) {
|
|
2771
|
+
const A = [...e.value];
|
|
2772
|
+
for (const R of v.options) {
|
|
2773
|
+
if (!i(v, R.value, b)) continue;
|
|
2774
|
+
const G = R.value, W = A.findIndex(
|
|
2775
|
+
(T) => T.subject === G && !T.inverted
|
|
2776
2776
|
);
|
|
2777
2777
|
if (E)
|
|
2778
2778
|
if (W >= 0) {
|
|
2779
|
-
const
|
|
2780
|
-
|
|
2779
|
+
const T = { ...A[W] }, k = new Set(T.actions);
|
|
2780
|
+
k.add(b), T.actions = Array.from(k), A[W] = T;
|
|
2781
2781
|
} else {
|
|
2782
|
-
const
|
|
2783
|
-
if (!
|
|
2782
|
+
const T = t.value.find((ne) => ne.subject === G);
|
|
2783
|
+
if (!T) continue;
|
|
2784
2784
|
const {
|
|
2785
|
-
category:
|
|
2786
|
-
showByFeatureFlag:
|
|
2785
|
+
category: k,
|
|
2786
|
+
showByFeatureFlag: Z,
|
|
2787
2787
|
isCategoryCover: x,
|
|
2788
|
-
...
|
|
2789
|
-
} =
|
|
2790
|
-
|
|
2788
|
+
...j
|
|
2789
|
+
} = T;
|
|
2790
|
+
A.push({ ...j, actions: [b] });
|
|
2791
2791
|
}
|
|
2792
2792
|
else if (W >= 0) {
|
|
2793
|
-
const
|
|
2794
|
-
|
|
2793
|
+
const T = { ...A[W] }, k = T.actions.filter((Z) => Z !== b);
|
|
2794
|
+
k.length === 0 ? A.splice(W, 1) : (T.actions = k, A[W] = T);
|
|
2795
2795
|
}
|
|
2796
|
-
const D = t.value.find((
|
|
2797
|
-
D && Ln(
|
|
2796
|
+
const D = t.value.find((T) => T.subject === G);
|
|
2797
|
+
D && Ln(A, G, D.actions);
|
|
2798
2798
|
}
|
|
2799
|
-
s("update:model-value",
|
|
2799
|
+
s("update:model-value", A);
|
|
2800
2800
|
}
|
|
2801
2801
|
const S = {
|
|
2802
2802
|
read: "View",
|
|
@@ -2808,28 +2808,28 @@ function Nr(e, t, n, s) {
|
|
|
2808
2808
|
}
|
|
2809
2809
|
return {
|
|
2810
2810
|
categoryGroups: c,
|
|
2811
|
-
toggleCategory:
|
|
2811
|
+
toggleCategory: m,
|
|
2812
2812
|
isAllManageChecked: u,
|
|
2813
2813
|
toggleAllManage: p,
|
|
2814
2814
|
isManageChecked: O,
|
|
2815
|
-
isManageIndeterminate:
|
|
2815
|
+
isManageIndeterminate: C,
|
|
2816
2816
|
toggleManage: N,
|
|
2817
2817
|
hasNonManageActions: P,
|
|
2818
2818
|
isActionChecked: V,
|
|
2819
2819
|
isRowFullyCoveredByCover: L,
|
|
2820
2820
|
isActionCoveredByCover: M,
|
|
2821
2821
|
permissionDefinesAction: i,
|
|
2822
|
-
toggleAction:
|
|
2822
|
+
toggleAction: d,
|
|
2823
2823
|
isAllActionChecked: y,
|
|
2824
2824
|
isAllActionIndeterminate: _,
|
|
2825
2825
|
toggleAllAction: w,
|
|
2826
2826
|
actionLabel: g
|
|
2827
2827
|
};
|
|
2828
2828
|
}
|
|
2829
|
-
const yr = { class: "flex flex-col gap-16" },
|
|
2829
|
+
const yr = { class: "flex flex-col gap-16" }, kr = {
|
|
2830
2830
|
key: 1,
|
|
2831
2831
|
class: "space-y-16"
|
|
2832
|
-
},
|
|
2832
|
+
}, Tr = { class: "flex items-end justify-between" }, Or = { class: "fm-typo-en-title-sm-600" }, Lr = { class: "flex" }, Cr = { class: "form-input" }, Rr = { class: "flex items-center justify-between q-mb-xs" }, Ar = { class: "flex shrink-0" }, Sr = { class: "flex items-center justify-between gap-4" }, Dr = { class: "flex items-center min-w-0 flex-1 gap-8" }, Mr = ["title", "onClick"], wr = {
|
|
2833
2833
|
key: 0,
|
|
2834
2834
|
class: "flex shrink-0"
|
|
2835
2835
|
}, Pr = /* @__PURE__ */ ye({
|
|
@@ -2857,18 +2857,18 @@ const yr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
2857
2857
|
const n = e, s = t, l = te(() => [...Dt, ...n.additionalPermissions]), {
|
|
2858
2858
|
categoryGroups: a,
|
|
2859
2859
|
toggleCategory: c,
|
|
2860
|
-
isAllManageChecked:
|
|
2860
|
+
isAllManageChecked: m,
|
|
2861
2861
|
toggleAllManage: u,
|
|
2862
2862
|
isManageChecked: p,
|
|
2863
2863
|
isManageIndeterminate: O,
|
|
2864
|
-
toggleManage:
|
|
2864
|
+
toggleManage: C,
|
|
2865
2865
|
hasNonManageActions: N,
|
|
2866
2866
|
isActionChecked: P,
|
|
2867
2867
|
isRowFullyCoveredByCover: V,
|
|
2868
2868
|
isActionCoveredByCover: L,
|
|
2869
2869
|
permissionDefinesAction: M,
|
|
2870
2870
|
toggleAction: i,
|
|
2871
|
-
isAllActionChecked:
|
|
2871
|
+
isAllActionChecked: d,
|
|
2872
2872
|
isAllActionIndeterminate: y,
|
|
2873
2873
|
toggleAllAction: _,
|
|
2874
2874
|
actionLabel: w
|
|
@@ -2879,101 +2879,101 @@ const yr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
2879
2879
|
(S, g) => s("update:model-value", g)
|
|
2880
2880
|
);
|
|
2881
2881
|
return (S, g) => {
|
|
2882
|
-
const v =
|
|
2883
|
-
return
|
|
2884
|
-
(
|
|
2885
|
-
key:
|
|
2882
|
+
const v = Ye("FmCheckbox");
|
|
2883
|
+
return H(), se("div", yr, [
|
|
2884
|
+
(H(!0), se(Ee, null, be(B(a), (b) => (H(), se(Ee, {
|
|
2885
|
+
key: b.category
|
|
2886
2886
|
}, [
|
|
2887
|
-
|
|
2888
|
-
ae("div",
|
|
2889
|
-
ae("div", Or,
|
|
2887
|
+
b.isMultiAction ? (H(), se("div", kr, [
|
|
2888
|
+
ae("div", Tr, [
|
|
2889
|
+
ae("div", Or, Ae(b.category), 1),
|
|
2890
2890
|
ae("div", Lr, [
|
|
2891
|
-
(
|
|
2891
|
+
(H(!0), se(Ee, null, be(b.actionColumns, (E) => (H(), se("span", {
|
|
2892
2892
|
key: E,
|
|
2893
2893
|
class: "w-[56px] text-center fm-typo-en-body-sm-400 text-fm-color-neutral-gray-600"
|
|
2894
|
-
},
|
|
2894
|
+
}, Ae(B(w)(E)), 1))), 128))
|
|
2895
2895
|
])
|
|
2896
2896
|
]),
|
|
2897
|
-
ae("div",
|
|
2898
|
-
ae("div",
|
|
2897
|
+
ae("div", Cr, [
|
|
2898
|
+
ae("div", Rr, [
|
|
2899
2899
|
_e(v, {
|
|
2900
|
-
"model-value":
|
|
2900
|
+
"model-value": B(m)(b),
|
|
2901
2901
|
value: !0,
|
|
2902
2902
|
disabled: e.disable,
|
|
2903
2903
|
label: "All",
|
|
2904
2904
|
size: "sm",
|
|
2905
2905
|
dense: "",
|
|
2906
|
-
"onUpdate:modelValue": (E) =>
|
|
2906
|
+
"onUpdate:modelValue": (E) => B(u)(b)
|
|
2907
2907
|
}, null, 8, ["model-value", "disabled", "onUpdate:modelValue"]),
|
|
2908
|
-
ae("div",
|
|
2909
|
-
(
|
|
2908
|
+
ae("div", Ar, [
|
|
2909
|
+
(H(!0), se(Ee, null, be(b.actionColumns, (E) => (H(), se("div", {
|
|
2910
2910
|
key: E,
|
|
2911
2911
|
class: "w-[56px] flex justify-center"
|
|
2912
2912
|
}, [
|
|
2913
2913
|
_e(v, {
|
|
2914
|
-
"model-value":
|
|
2915
|
-
indeterminate:
|
|
2914
|
+
"model-value": B(d)(b, E),
|
|
2915
|
+
indeterminate: B(y)(b, E),
|
|
2916
2916
|
value: E,
|
|
2917
2917
|
disabled: e.disable,
|
|
2918
2918
|
size: "sm",
|
|
2919
2919
|
dense: "",
|
|
2920
|
-
"onUpdate:modelValue": (
|
|
2920
|
+
"onUpdate:modelValue": (A) => B(_)(b, E, A)
|
|
2921
2921
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2922
2922
|
]))), 128))
|
|
2923
2923
|
])
|
|
2924
2924
|
]),
|
|
2925
|
-
(
|
|
2925
|
+
(H(!0), se(Ee, null, be(b.options, (E, A) => (H(), se("div", {
|
|
2926
2926
|
key: E.value,
|
|
2927
|
-
class: qe(
|
|
2927
|
+
class: qe(A < b.options.length - 1 ? "q-mb-xs" : "")
|
|
2928
2928
|
}, [
|
|
2929
2929
|
ae("div", Sr, [
|
|
2930
2930
|
ae("div", Dr, [
|
|
2931
2931
|
_e(v, {
|
|
2932
|
-
"model-value":
|
|
2932
|
+
"model-value": B(p)(b, E.value) || B(V)(b, E.value),
|
|
2933
2933
|
value: E.value,
|
|
2934
|
-
disabled: e.disable ||
|
|
2935
|
-
indeterminate:
|
|
2934
|
+
disabled: e.disable || B(V)(b, E.value),
|
|
2935
|
+
indeterminate: B(O)(b, E.value),
|
|
2936
2936
|
size: "sm",
|
|
2937
2937
|
class: "shrink-0",
|
|
2938
|
-
"onUpdate:modelValue": (
|
|
2938
|
+
"onUpdate:modelValue": (R) => B(C)(b, E.value, R)
|
|
2939
2939
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"]),
|
|
2940
2940
|
ae("span", {
|
|
2941
2941
|
class: "block truncate cursor-pointer",
|
|
2942
2942
|
title: E.label,
|
|
2943
|
-
onClick: (
|
|
2944
|
-
},
|
|
2943
|
+
onClick: (R) => !e.disable && !B(V)(b, E.value) && B(C)(b, E.value, !B(p)(b, E.value))
|
|
2944
|
+
}, Ae(E.label), 9, Mr),
|
|
2945
2945
|
ge(S.$slots, `checkbox-${E.value}-append`, { option: E })
|
|
2946
2946
|
]),
|
|
2947
|
-
|
|
2948
|
-
(
|
|
2949
|
-
key:
|
|
2947
|
+
B(N)(b, E.value) ? (H(), se("div", wr, [
|
|
2948
|
+
(H(!0), se(Ee, null, be(b.actionColumns, (R) => (H(), se("div", {
|
|
2949
|
+
key: R,
|
|
2950
2950
|
class: "w-[56px] flex justify-center"
|
|
2951
2951
|
}, [
|
|
2952
|
-
|
|
2952
|
+
B(M)(b, E.value, R) ? (H(), Se(v, {
|
|
2953
2953
|
key: 0,
|
|
2954
|
-
"model-value":
|
|
2955
|
-
value:
|
|
2956
|
-
disabled: e.disable ||
|
|
2954
|
+
"model-value": B(P)(b, E.value, R) || B(L)(b, E.value, R),
|
|
2955
|
+
value: R,
|
|
2956
|
+
disabled: e.disable || B(L)(b, E.value, R),
|
|
2957
2957
|
size: "sm",
|
|
2958
|
-
"onUpdate:modelValue": (G) =>
|
|
2958
|
+
"onUpdate:modelValue": (G) => B(i)(E.value, R, G)
|
|
2959
2959
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Oe("", !0)
|
|
2960
2960
|
]))), 128))
|
|
2961
2961
|
])) : Oe("", !0)
|
|
2962
2962
|
])
|
|
2963
2963
|
], 2))), 128))
|
|
2964
2964
|
])
|
|
2965
|
-
])) : (
|
|
2965
|
+
])) : (H(), Se(Kt, {
|
|
2966
2966
|
key: 0,
|
|
2967
|
-
"model-value":
|
|
2968
|
-
options:
|
|
2967
|
+
"model-value": b.selectedSubjects,
|
|
2968
|
+
options: b.options,
|
|
2969
2969
|
disable: e.disable,
|
|
2970
|
-
title:
|
|
2971
|
-
"onUpdate:modelValue": (E) =>
|
|
2970
|
+
title: b.category,
|
|
2971
|
+
"onUpdate:modelValue": (E) => B(c)(b.category, E)
|
|
2972
2972
|
}, Fe({ _: 2 }, [
|
|
2973
|
-
|
|
2973
|
+
be(b.options, (E) => ({
|
|
2974
2974
|
name: `checkbox-${E.value}-append`,
|
|
2975
|
-
fn:
|
|
2976
|
-
ge(S.$slots, `checkbox-${E.value}-append`, { option:
|
|
2975
|
+
fn: he(({ option: A }) => [
|
|
2976
|
+
ge(S.$slots, `checkbox-${E.value}-append`, { option: A })
|
|
2977
2977
|
])
|
|
2978
2978
|
}))
|
|
2979
2979
|
]), 1032, ["model-value", "options", "disable", "title", "onUpdate:modelValue"]))
|
|
@@ -2981,34 +2981,34 @@ const yr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
2981
2981
|
]);
|
|
2982
2982
|
};
|
|
2983
2983
|
}
|
|
2984
|
-
}), Fr = { class: "flex items-center" },
|
|
2984
|
+
}), Fr = { class: "flex items-center" }, jr = { class: "ml-auto" }, Ur = /* @__PURE__ */ ye({
|
|
2985
2985
|
__name: "CollapsibleWrapper",
|
|
2986
2986
|
props: {
|
|
2987
2987
|
title: { default: "" },
|
|
2988
2988
|
initiallyCollapsed: { type: Boolean, default: !1 }
|
|
2989
2989
|
},
|
|
2990
2990
|
setup(e) {
|
|
2991
|
-
const n =
|
|
2991
|
+
const n = Ue(e.initiallyCollapsed), s = Ue(), l = Ue(0);
|
|
2992
2992
|
let a;
|
|
2993
2993
|
function c() {
|
|
2994
2994
|
n.value = !n.value;
|
|
2995
2995
|
}
|
|
2996
|
-
function
|
|
2996
|
+
function m() {
|
|
2997
2997
|
s.value && (l.value = s.value.scrollHeight);
|
|
2998
2998
|
}
|
|
2999
|
-
return
|
|
2999
|
+
return Xt(async () => {
|
|
3000
3000
|
await es(), s.value && (a = new ResizeObserver(() => {
|
|
3001
|
-
|
|
3001
|
+
m();
|
|
3002
3002
|
}), a.observe(s.value));
|
|
3003
|
-
}),
|
|
3003
|
+
}), An(() => {
|
|
3004
3004
|
a == null || a.disconnect();
|
|
3005
3005
|
}), (u, p) => {
|
|
3006
|
-
const O =
|
|
3007
|
-
return
|
|
3006
|
+
const O = Ye("FmButton");
|
|
3007
|
+
return H(), se(Ee, null, [
|
|
3008
3008
|
ae("div", { onClick: c }, [
|
|
3009
3009
|
ae("div", Fr, [
|
|
3010
3010
|
ge(u.$slots, "title"),
|
|
3011
|
-
ae("div",
|
|
3011
|
+
ae("div", jr, [
|
|
3012
3012
|
_e(O, {
|
|
3013
3013
|
icon: n.value ? "keyboard_arrow_down" : "keyboard_arrow_up",
|
|
3014
3014
|
"text-color": "neutral-gray-400",
|
|
@@ -3029,7 +3029,7 @@ const yr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
3029
3029
|
], 64);
|
|
3030
3030
|
};
|
|
3031
3031
|
}
|
|
3032
|
-
}), Vr = { class: "fm-typo-en-title-sm-600" },
|
|
3032
|
+
}), Vr = { class: "fm-typo-en-title-sm-600" }, Rt = "includedFuture", Rn = /* @__PURE__ */ ye({
|
|
3033
3033
|
__name: "ConditionPermission",
|
|
3034
3034
|
props: {
|
|
3035
3035
|
modelValue: {
|
|
@@ -3054,32 +3054,32 @@ const yr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
3054
3054
|
const n = e, s = t, { t: l } = _t(), a = te(() => [
|
|
3055
3055
|
{
|
|
3056
3056
|
label: l("team.memberForm.permissions.includedFuture", { context: n.context }),
|
|
3057
|
-
value:
|
|
3057
|
+
value: Rt,
|
|
3058
3058
|
// Can only be selected if all other options are selected
|
|
3059
3059
|
disable: !!n.modelValue && n.options.length > n.modelValue.length
|
|
3060
3060
|
},
|
|
3061
3061
|
...n.options.filter(
|
|
3062
3062
|
(p) => p.label.toLocaleLowerCase().includes(u.value.toLocaleLowerCase())
|
|
3063
3063
|
)
|
|
3064
|
-
]), c = te(() => n.modelValue ? n.modelValue : [
|
|
3065
|
-
function
|
|
3064
|
+
]), c = te(() => n.modelValue ? n.modelValue : [Rt, ...n.options.map((p) => p.value)]);
|
|
3065
|
+
function m(p) {
|
|
3066
3066
|
const O = p.length === a.value.length;
|
|
3067
|
-
s("update:model-value", O ? null : p.filter((
|
|
3067
|
+
s("update:model-value", O ? null : p.filter((C) => C !== Rt));
|
|
3068
3068
|
}
|
|
3069
|
-
const u =
|
|
3069
|
+
const u = Ue("");
|
|
3070
3070
|
return (p, O) => {
|
|
3071
|
-
const
|
|
3072
|
-
return
|
|
3073
|
-
title:
|
|
3074
|
-
ae("p", Vr,
|
|
3071
|
+
const C = Ye("fm-search");
|
|
3072
|
+
return H(), Se(Ur, null, {
|
|
3073
|
+
title: he(() => [
|
|
3074
|
+
ae("p", Vr, Ae(B(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3075
3075
|
]),
|
|
3076
|
-
default:
|
|
3077
|
-
e.options.length > 1 ? (
|
|
3076
|
+
default: he(() => [
|
|
3077
|
+
e.options.length > 1 ? (H(), Se(C, {
|
|
3078
3078
|
key: 0,
|
|
3079
3079
|
modelValue: u.value,
|
|
3080
3080
|
"onUpdate:modelValue": O[0] || (O[0] = (N) => u.value = N),
|
|
3081
3081
|
class: "mt-16",
|
|
3082
|
-
placeholder:
|
|
3082
|
+
placeholder: B(l)("team.memberForm.permissions.search", { context: e.context })
|
|
3083
3083
|
}, null, 8, ["modelValue", "placeholder"])) : Oe("", !0),
|
|
3084
3084
|
_e(Kt, {
|
|
3085
3085
|
"model-value": c.value,
|
|
@@ -3090,11 +3090,11 @@ const yr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
3090
3090
|
"include-disabled-options-when-select-all": !0,
|
|
3091
3091
|
title: "",
|
|
3092
3092
|
class: "mt-16",
|
|
3093
|
-
"onUpdate:modelValue":
|
|
3093
|
+
"onUpdate:modelValue": m
|
|
3094
3094
|
}, Fe({ _: 2 }, [
|
|
3095
|
-
|
|
3095
|
+
be(a.value, (N) => ({
|
|
3096
3096
|
name: `checkbox-${N.value}-append`,
|
|
3097
|
-
fn:
|
|
3097
|
+
fn: he(({ option: P }) => [
|
|
3098
3098
|
ge(p.$slots, `checkbox-${N.value}-append`, { option: P })
|
|
3099
3099
|
])
|
|
3100
3100
|
}))
|
|
@@ -3104,7 +3104,7 @@ const yr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
3104
3104
|
});
|
|
3105
3105
|
};
|
|
3106
3106
|
}
|
|
3107
|
-
}),
|
|
3107
|
+
}), At = "includedNewRole", Wr = /* @__PURE__ */ ye({
|
|
3108
3108
|
__name: "PosRolePermission",
|
|
3109
3109
|
props: {
|
|
3110
3110
|
modelValue: {
|
|
@@ -3131,7 +3131,7 @@ const yr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
3131
3131
|
return [
|
|
3132
3132
|
{
|
|
3133
3133
|
label: l("team.memberForm.permissions.includedNewRole"),
|
|
3134
|
-
value:
|
|
3134
|
+
value: At,
|
|
3135
3135
|
disable: !!n.modelValue && n.roles.length > n.modelValue.length
|
|
3136
3136
|
},
|
|
3137
3137
|
...n.roles.map((p) => ({
|
|
@@ -3140,24 +3140,24 @@ const yr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
3140
3140
|
disable: !!u && p.restaurants.every(({ id: O }) => !u.includes(O))
|
|
3141
3141
|
}))
|
|
3142
3142
|
];
|
|
3143
|
-
}), c = te(() => n.modelValue ? n.modelValue : [
|
|
3144
|
-
function
|
|
3143
|
+
}), c = te(() => n.modelValue ? n.modelValue : [At, ...n.roles.map((u) => u._id)]);
|
|
3144
|
+
function m(u) {
|
|
3145
3145
|
const p = u.length === a.value.length;
|
|
3146
|
-
s("update:model-value", p ? null : u.filter((O) => O !==
|
|
3146
|
+
s("update:model-value", p ? null : u.filter((O) => O !== At));
|
|
3147
3147
|
}
|
|
3148
|
-
return (u, p) => (
|
|
3148
|
+
return (u, p) => (H(), Se(Kt, {
|
|
3149
3149
|
"model-value": c.value,
|
|
3150
3150
|
options: a.value,
|
|
3151
3151
|
"show-intermediate": !1,
|
|
3152
3152
|
"show-all-toggle": !1,
|
|
3153
3153
|
disable: e.disable,
|
|
3154
|
-
title:
|
|
3155
|
-
"onUpdate:modelValue":
|
|
3154
|
+
title: B(l)("team.memberForm.permissions.roles"),
|
|
3155
|
+
"onUpdate:modelValue": m
|
|
3156
3156
|
}, Fe({ _: 2 }, [
|
|
3157
|
-
|
|
3157
|
+
be(a.value, (O) => ({
|
|
3158
3158
|
name: `checkbox-${O.value}-append`,
|
|
3159
|
-
fn:
|
|
3160
|
-
ge(u.$slots, `checkbox-${O.value}-append`, { option:
|
|
3159
|
+
fn: he(({ option: C }) => [
|
|
3160
|
+
ge(u.$slots, `checkbox-${O.value}-append`, { option: C })
|
|
3161
3161
|
])
|
|
3162
3162
|
}))
|
|
3163
3163
|
]), 1032, ["model-value", "options", "disable", "title"]));
|
|
@@ -3166,7 +3166,7 @@ const yr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
3166
3166
|
async readWarehouses() {
|
|
3167
3167
|
return os(await is().get("/warehouses"));
|
|
3168
3168
|
}
|
|
3169
|
-
}, xr = { class: "flex flex-col gap-32" },
|
|
3169
|
+
}, xr = { class: "flex flex-col gap-32" }, Xr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Yr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Zr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Hr = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, nl = /* @__PURE__ */ ye({
|
|
3170
3170
|
__name: "PortalPermissionEditor",
|
|
3171
3171
|
props: /* @__PURE__ */ qt({
|
|
3172
3172
|
disable: {
|
|
@@ -3183,223 +3183,223 @@ const yr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
3183
3183
|
}),
|
|
3184
3184
|
emits: /* @__PURE__ */ qt(["permissionChanged"], ["update:modelValue"]),
|
|
3185
3185
|
setup(e, { emit: t }) {
|
|
3186
|
-
const n = ts(e, "modelValue"), s = e, l = t, { t: a } = _t(), { fetchCustomReportPermissions: c, customReportPermissions:
|
|
3186
|
+
const n = ts(e, "modelValue"), s = e, l = t, { t: a } = _t(), { fetchCustomReportPermissions: c, customReportPermissions: m } = ss();
|
|
3187
3187
|
function u(D) {
|
|
3188
|
-
return Dt.find((
|
|
3188
|
+
return Dt.find((T) => T.subject === D) ?? m.value.find((T) => T.subject === D);
|
|
3189
3189
|
}
|
|
3190
3190
|
const p = te(() => {
|
|
3191
|
-
const D = [...Dt, ...
|
|
3191
|
+
const D = [...Dt, ...m.value].filter((k) => !P.includes(k.subject)).map((k) => k.subject);
|
|
3192
3192
|
return as(
|
|
3193
|
-
s.inheritPermissions.map((
|
|
3194
|
-
...
|
|
3195
|
-
permissions:
|
|
3193
|
+
s.inheritPermissions.map((k) => ({
|
|
3194
|
+
...k,
|
|
3195
|
+
permissions: k.permissions.filter((Z) => D.includes(Z.subject))
|
|
3196
3196
|
}))
|
|
3197
|
-
).map((
|
|
3198
|
-
id:
|
|
3199
|
-
setNames:
|
|
3197
|
+
).map((k) => ({
|
|
3198
|
+
id: k.subject,
|
|
3199
|
+
setNames: k.setNames
|
|
3200
3200
|
}));
|
|
3201
3201
|
}), O = te(() => {
|
|
3202
|
-
const D = s.inheritPermissions.map((
|
|
3203
|
-
...
|
|
3204
|
-
permissions:
|
|
3205
|
-
(
|
|
3202
|
+
const D = s.inheritPermissions.map((T) => ({
|
|
3203
|
+
...T,
|
|
3204
|
+
permissions: T.permissions.filter(
|
|
3205
|
+
(k) => k.subject === me.Subject.Business.inventory_stock
|
|
3206
3206
|
)
|
|
3207
3207
|
}));
|
|
3208
3208
|
return yt(
|
|
3209
3209
|
D,
|
|
3210
3210
|
"warehouseId",
|
|
3211
|
-
L.value.map((
|
|
3211
|
+
L.value.map((T) => T._id)
|
|
3212
3212
|
);
|
|
3213
|
-
}),
|
|
3214
|
-
const D = s.inheritPermissions.map((
|
|
3215
|
-
...
|
|
3216
|
-
permissions:
|
|
3217
|
-
(
|
|
3213
|
+
}), C = te(() => {
|
|
3214
|
+
const D = s.inheritPermissions.map((T) => ({
|
|
3215
|
+
...T,
|
|
3216
|
+
permissions: T.permissions.filter(
|
|
3217
|
+
(k) => k.subject === me.Subject.Restaurant.restaurant
|
|
3218
3218
|
)
|
|
3219
3219
|
}));
|
|
3220
3220
|
return yt(
|
|
3221
3221
|
D,
|
|
3222
3222
|
"restaurantId",
|
|
3223
|
-
y.value.map((
|
|
3223
|
+
y.value.map((T) => T._id)
|
|
3224
3224
|
);
|
|
3225
3225
|
}), N = te(() => {
|
|
3226
|
-
const D = s.inheritPermissions.map((
|
|
3227
|
-
...
|
|
3228
|
-
permissions:
|
|
3226
|
+
const D = s.inheritPermissions.map((T) => ({
|
|
3227
|
+
...T,
|
|
3228
|
+
permissions: T.permissions.filter((k) => k.subject === me.Subject.Business.role)
|
|
3229
3229
|
}));
|
|
3230
3230
|
return yt(
|
|
3231
3231
|
D,
|
|
3232
3232
|
"roleId",
|
|
3233
|
-
_.value.map((
|
|
3233
|
+
_.value.map((T) => T._id)
|
|
3234
3234
|
);
|
|
3235
3235
|
}), P = [
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3236
|
+
me.Subject.Business.restaurant,
|
|
3237
|
+
me.Subject.Business.role,
|
|
3238
|
+
me.Subject.Restaurant.restaurant,
|
|
3239
|
+
me.Subject.Business.inventory_stock
|
|
3240
3240
|
], V = te(() => {
|
|
3241
|
-
var
|
|
3242
|
-
const D = (
|
|
3243
|
-
(
|
|
3241
|
+
var T;
|
|
3242
|
+
const D = (T = n.value) == null ? void 0 : T.find(
|
|
3243
|
+
(k) => k.subject === me.Subject.Business.inventory_stock
|
|
3244
3244
|
);
|
|
3245
3245
|
return D ? D.conditions ? JSON.parse(D.conditions).warehouseId.$in : null : [];
|
|
3246
|
-
}), L =
|
|
3246
|
+
}), L = Ue([]), M = te(() => L.value.map((D) => ({
|
|
3247
3247
|
label: D.profile.name,
|
|
3248
3248
|
value: D._id
|
|
3249
3249
|
})));
|
|
3250
3250
|
function i(D) {
|
|
3251
|
-
const
|
|
3252
|
-
n.value =
|
|
3251
|
+
const T = d(n.value, D);
|
|
3252
|
+
n.value = T;
|
|
3253
3253
|
}
|
|
3254
|
-
function
|
|
3255
|
-
let
|
|
3256
|
-
D.filter((
|
|
3254
|
+
function d(D, T) {
|
|
3255
|
+
let k = ut(
|
|
3256
|
+
D.filter((Z) => Z.subject !== me.Subject.Business.inventory_stock)
|
|
3257
3257
|
);
|
|
3258
|
-
if (!
|
|
3259
|
-
const
|
|
3260
|
-
actions: [
|
|
3261
|
-
subject:
|
|
3258
|
+
if (!T || T.length > 0) {
|
|
3259
|
+
const Z = {
|
|
3260
|
+
actions: [me.Action.manage],
|
|
3261
|
+
subject: me.Subject.Business.inventory_stock
|
|
3262
3262
|
};
|
|
3263
|
-
|
|
3263
|
+
T && (Z.conditions = JSON.stringify({ warehouseId: { $in: T } })), k.push(Z);
|
|
3264
3264
|
}
|
|
3265
|
-
return
|
|
3265
|
+
return k;
|
|
3266
3266
|
}
|
|
3267
3267
|
const { restaurants: y } = ns(), _ = fs().roles, w = te(() => y.value.map((D) => ({
|
|
3268
3268
|
label: `${D.profile.code ? D.profile.code + "-" : ""}${D.profile.name}`,
|
|
3269
3269
|
value: D._id
|
|
3270
|
-
}))), S = te(() => y.value.reduce((D,
|
|
3270
|
+
}))), S = te(() => y.value.reduce((D, T) => (D[T._id] = _.value.filter((k) => k.restaurants.some((Z) => Z.id === T._id)).map((k) => k._id), D), {})), g = te(() => rs(n.value));
|
|
3271
3271
|
function v(D) {
|
|
3272
|
-
const
|
|
3273
|
-
n.value =
|
|
3272
|
+
const T = E(n.value, D);
|
|
3273
|
+
n.value = T;
|
|
3274
3274
|
}
|
|
3275
|
-
const
|
|
3276
|
-
function E(D,
|
|
3277
|
-
var
|
|
3278
|
-
let
|
|
3275
|
+
const b = te(() => ls(n.value));
|
|
3276
|
+
function E(D, T) {
|
|
3277
|
+
var Z;
|
|
3278
|
+
let k = ut(
|
|
3279
3279
|
D.filter(
|
|
3280
|
-
(x) => x.subject !==
|
|
3280
|
+
(x) => x.subject !== me.Subject.Business.restaurant && x.subject !== me.Subject.Restaurant.restaurant
|
|
3281
3281
|
)
|
|
3282
3282
|
);
|
|
3283
|
-
if (!
|
|
3283
|
+
if (!T || T.length > 0) {
|
|
3284
3284
|
const {
|
|
3285
3285
|
category: x,
|
|
3286
|
-
showByFeatureFlag:
|
|
3286
|
+
showByFeatureFlag: j,
|
|
3287
3287
|
...ne
|
|
3288
|
-
} =
|
|
3289
|
-
|
|
3290
|
-
const
|
|
3291
|
-
actions: [
|
|
3292
|
-
subject:
|
|
3288
|
+
} = ms.restaurant;
|
|
3289
|
+
k.push(ne);
|
|
3290
|
+
const J = {
|
|
3291
|
+
actions: [me.Action.manage],
|
|
3292
|
+
subject: me.Subject.Restaurant.restaurant
|
|
3293
3293
|
};
|
|
3294
|
-
|
|
3294
|
+
T && (J.conditions = JSON.stringify({ restaurantId: { $in: T } })), k.push(J);
|
|
3295
3295
|
}
|
|
3296
|
-
if (
|
|
3296
|
+
if (T) {
|
|
3297
3297
|
const x = [
|
|
3298
|
-
...new Set(
|
|
3299
|
-
],
|
|
3300
|
-
x.length !==
|
|
3301
|
-
|
|
3302
|
-
(
|
|
3298
|
+
...new Set(T.map((ne) => S.value[ne]).flatMap((ne) => ne))
|
|
3299
|
+
], j = _.value.map((ne) => ne._id);
|
|
3300
|
+
x.length !== j.length && (k = R(
|
|
3301
|
+
k,
|
|
3302
|
+
(Z = b.value || j) == null ? void 0 : Z.filter((ne) => x.includes(ne))
|
|
3303
3303
|
));
|
|
3304
3304
|
}
|
|
3305
|
-
return
|
|
3305
|
+
return k;
|
|
3306
3306
|
}
|
|
3307
|
-
function
|
|
3308
|
-
const
|
|
3309
|
-
n.value =
|
|
3307
|
+
function A(D) {
|
|
3308
|
+
const T = R(n.value, D);
|
|
3309
|
+
n.value = T;
|
|
3310
3310
|
}
|
|
3311
|
-
function
|
|
3312
|
-
let
|
|
3313
|
-
D.filter((
|
|
3311
|
+
function R(D, T) {
|
|
3312
|
+
let k = ut(
|
|
3313
|
+
D.filter((Z) => Z.subject !== me.Subject.Business.role)
|
|
3314
3314
|
);
|
|
3315
|
-
if (
|
|
3316
|
-
const
|
|
3317
|
-
actions: [
|
|
3318
|
-
subject:
|
|
3319
|
-
conditions: JSON.stringify({ roleId: { $in:
|
|
3315
|
+
if (T && T.length > 0) {
|
|
3316
|
+
const Z = {
|
|
3317
|
+
actions: [me.Action.manage],
|
|
3318
|
+
subject: me.Subject.Business.role,
|
|
3319
|
+
conditions: JSON.stringify({ roleId: { $in: T } })
|
|
3320
3320
|
};
|
|
3321
|
-
|
|
3321
|
+
k.push(Z);
|
|
3322
3322
|
}
|
|
3323
|
-
return
|
|
3323
|
+
return k;
|
|
3324
3324
|
}
|
|
3325
|
-
|
|
3325
|
+
Xt(async () => {
|
|
3326
3326
|
await Promise.all([
|
|
3327
3327
|
Gr.readWarehouses().then((D) => L.value = D),
|
|
3328
3328
|
c()
|
|
3329
3329
|
]);
|
|
3330
3330
|
});
|
|
3331
|
-
const G = te(() =>
|
|
3331
|
+
const G = te(() => kt(
|
|
3332
3332
|
n.value,
|
|
3333
|
-
|
|
3334
|
-
).filter((
|
|
3335
|
-
const
|
|
3336
|
-
return (
|
|
3337
|
-
}).map((
|
|
3338
|
-
if (
|
|
3339
|
-
const
|
|
3340
|
-
if (!
|
|
3341
|
-
const x = u(
|
|
3342
|
-
if (!x) return
|
|
3343
|
-
const
|
|
3344
|
-
return
|
|
3333
|
+
Tt
|
|
3334
|
+
).filter((k) => {
|
|
3335
|
+
const Z = k.source;
|
|
3336
|
+
return (Z == null ? void 0 : Z.type) !== "systemPermissionSet" ? !0 : k.actions.includes("manage");
|
|
3337
|
+
}).map((k) => {
|
|
3338
|
+
if (k.inverted) return k;
|
|
3339
|
+
const Z = k.actions;
|
|
3340
|
+
if (!Z.includes("manage")) return k;
|
|
3341
|
+
const x = u(k.subject);
|
|
3342
|
+
if (!x) return k;
|
|
3343
|
+
const j = x.actions;
|
|
3344
|
+
return j.length <= 1 || j.filter((J) => !Z.includes(J)).length === 0 ? k : { ...k, actions: [...j] };
|
|
3345
3345
|
}));
|
|
3346
3346
|
function W(D) {
|
|
3347
|
-
const
|
|
3348
|
-
G.value.filter((
|
|
3349
|
-
),
|
|
3350
|
-
D.filter((
|
|
3351
|
-
),
|
|
3352
|
-
n.value.filter((
|
|
3347
|
+
const T = new Set(
|
|
3348
|
+
G.value.filter((j) => !j.inverted).map((j) => j.subject)
|
|
3349
|
+
), k = new Set(
|
|
3350
|
+
D.filter((j) => !j.inverted).map((j) => j.subject)
|
|
3351
|
+
), Z = new Set(
|
|
3352
|
+
n.value.filter((j) => !j.inverted).map((j) => j.subject)
|
|
3353
3353
|
);
|
|
3354
3354
|
let x = [...n.value];
|
|
3355
|
-
for (const
|
|
3356
|
-
|
|
3355
|
+
for (const j of T)
|
|
3356
|
+
k.has(j) || (Z.has(j) && (x = x.filter((J) => J.subject !== j)), (!Z.has(j) || kt(
|
|
3357
3357
|
x,
|
|
3358
|
-
|
|
3358
|
+
Tt
|
|
3359
3359
|
).some(
|
|
3360
|
-
(
|
|
3361
|
-
)) && !x.some((
|
|
3362
|
-
for (const
|
|
3363
|
-
if (!
|
|
3364
|
-
const ne = x.some((
|
|
3365
|
-
if (x = x.filter((
|
|
3366
|
-
const
|
|
3367
|
-
(K) => K.subject ===
|
|
3368
|
-
),
|
|
3369
|
-
if (
|
|
3370
|
-
const { category: K, showByFeatureFlag: we, ...re } =
|
|
3371
|
-
x.push({ ...re, actions:
|
|
3360
|
+
(J) => J.subject === j && !J.inverted && J.actions.includes("manage")
|
|
3361
|
+
)) && !x.some((J) => J.subject === j && J.inverted) && x.push({ subject: j, actions: ["manage"], inverted: !0 }));
|
|
3362
|
+
for (const j of k)
|
|
3363
|
+
if (!T.has(j)) {
|
|
3364
|
+
const ne = x.some((J) => J.subject === j && J.inverted);
|
|
3365
|
+
if (x = x.filter((J) => !(J.subject === j && J.inverted)), !ne && !Z.has(j)) {
|
|
3366
|
+
const J = D.find(
|
|
3367
|
+
(K) => K.subject === j && !K.inverted
|
|
3368
|
+
), X = u(j);
|
|
3369
|
+
if (X && J) {
|
|
3370
|
+
const { category: K, showByFeatureFlag: we, ...re } = X;
|
|
3371
|
+
x.push({ ...re, actions: J.actions });
|
|
3372
3372
|
}
|
|
3373
3373
|
}
|
|
3374
3374
|
}
|
|
3375
|
-
for (const
|
|
3376
|
-
if (!
|
|
3375
|
+
for (const j of k) {
|
|
3376
|
+
if (!T.has(j)) continue;
|
|
3377
3377
|
const ne = G.value.find(
|
|
3378
|
-
(re) => re.subject ===
|
|
3379
|
-
),
|
|
3380
|
-
if (!ne ||
|
|
3381
|
-
const
|
|
3382
|
-
if (
|
|
3378
|
+
(re) => re.subject === j && !re.inverted
|
|
3379
|
+
), J = D.find((re) => re.subject === j && !re.inverted);
|
|
3380
|
+
if (!ne || !J) continue;
|
|
3381
|
+
const X = new Set(ne.actions), K = new Set(J.actions);
|
|
3382
|
+
if (X.size === K.size && [...X].every((re) => K.has(re)))
|
|
3383
3383
|
continue;
|
|
3384
|
-
const we = x.findIndex((re) => re.subject ===
|
|
3384
|
+
const we = x.findIndex((re) => re.subject === j && !re.inverted);
|
|
3385
3385
|
if (we >= 0)
|
|
3386
3386
|
x[we] = {
|
|
3387
3387
|
...x[we],
|
|
3388
3388
|
actions: Array.from(K)
|
|
3389
3389
|
};
|
|
3390
3390
|
else {
|
|
3391
|
-
const re = u(
|
|
3391
|
+
const re = u(j);
|
|
3392
3392
|
if (re) {
|
|
3393
|
-
const { category: Ie, showByFeatureFlag:
|
|
3394
|
-
x.push({
|
|
3393
|
+
const { category: Ie, showByFeatureFlag: Je, ...$e } = re;
|
|
3394
|
+
x.push({ ...$e, actions: Array.from(K) });
|
|
3395
3395
|
}
|
|
3396
3396
|
}
|
|
3397
|
-
|
|
3397
|
+
X.has("manage") && !K.has("manage") && kt(
|
|
3398
3398
|
x,
|
|
3399
|
-
|
|
3399
|
+
Tt
|
|
3400
3400
|
).some(
|
|
3401
|
-
(Ie) => Ie.subject ===
|
|
3402
|
-
) && !x.some((Ie) => Ie.subject ===
|
|
3401
|
+
(Ie) => Ie.subject === j && !Ie.inverted && Ie.actions.includes("manage")
|
|
3402
|
+
) && !x.some((Ie) => Ie.subject === j && Ie.inverted) && x.push({ subject: j, actions: ["manage"], inverted: !0 }), !X.has("manage") && K.has("manage") && (x = x.filter((re) => !(re.subject === j && re.inverted)));
|
|
3403
3403
|
}
|
|
3404
3404
|
n.value = x;
|
|
3405
3405
|
}
|
|
@@ -3409,63 +3409,63 @@ const yr = { class: "flex flex-col gap-16" }, Tr = {
|
|
|
3409
3409
|
l("permissionChanged", D);
|
|
3410
3410
|
},
|
|
3411
3411
|
{ deep: !0 }
|
|
3412
|
-
), (D,
|
|
3413
|
-
ae("div",
|
|
3412
|
+
), (D, T) => (H(), se("div", xr, [
|
|
3413
|
+
ae("div", Xr, [
|
|
3414
3414
|
_e(Pr, {
|
|
3415
3415
|
"model-value": G.value,
|
|
3416
3416
|
"excluded-subjects": P,
|
|
3417
|
-
"additional-permissions":
|
|
3417
|
+
"additional-permissions": B(m),
|
|
3418
3418
|
"onUpdate:modelValue": W
|
|
3419
3419
|
}, Fe({ _: 2 }, [
|
|
3420
|
-
|
|
3421
|
-
name: `checkbox-${
|
|
3422
|
-
fn:
|
|
3423
|
-
_e(it, { item:
|
|
3420
|
+
be(p.value, (k) => ({
|
|
3421
|
+
name: `checkbox-${k.id}-append`,
|
|
3422
|
+
fn: he(() => [
|
|
3423
|
+
_e(it, { item: k }, null, 8, ["item"])
|
|
3424
3424
|
])
|
|
3425
3425
|
}))
|
|
3426
3426
|
]), 1032, ["model-value", "additional-permissions"])
|
|
3427
3427
|
]),
|
|
3428
|
-
ae("div",
|
|
3429
|
-
_e(
|
|
3428
|
+
ae("div", Yr, [
|
|
3429
|
+
_e(Rn, {
|
|
3430
3430
|
"model-value": V.value,
|
|
3431
3431
|
options: M.value,
|
|
3432
|
-
context:
|
|
3432
|
+
context: B(a)("team.labels.warehouse"),
|
|
3433
3433
|
"onUpdate:modelValue": i
|
|
3434
3434
|
}, Fe({ _: 2 }, [
|
|
3435
|
-
|
|
3436
|
-
name: `checkbox-${
|
|
3437
|
-
fn:
|
|
3438
|
-
_e(it, { item:
|
|
3435
|
+
be(O.value, (k) => ({
|
|
3436
|
+
name: `checkbox-${k.id}-append`,
|
|
3437
|
+
fn: he(() => [
|
|
3438
|
+
_e(it, { item: k }, null, 8, ["item"])
|
|
3439
3439
|
])
|
|
3440
3440
|
}))
|
|
3441
3441
|
]), 1032, ["model-value", "options", "context"])
|
|
3442
3442
|
]),
|
|
3443
|
-
ae("div",
|
|
3444
|
-
_e(
|
|
3443
|
+
ae("div", Zr, [
|
|
3444
|
+
_e(Rn, {
|
|
3445
3445
|
"model-value": g.value,
|
|
3446
3446
|
options: w.value,
|
|
3447
|
-
context:
|
|
3447
|
+
context: B(a)("team.labels.restaurant"),
|
|
3448
3448
|
"onUpdate:modelValue": v
|
|
3449
3449
|
}, Fe({ _: 2 }, [
|
|
3450
|
-
|
|
3451
|
-
name: `checkbox-${
|
|
3452
|
-
fn:
|
|
3453
|
-
_e(it, { item:
|
|
3450
|
+
be(C.value, (k) => ({
|
|
3451
|
+
name: `checkbox-${k.id}-append`,
|
|
3452
|
+
fn: he(() => [
|
|
3453
|
+
_e(it, { item: k }, null, 8, ["item"])
|
|
3454
3454
|
])
|
|
3455
3455
|
}))
|
|
3456
3456
|
]), 1032, ["model-value", "options", "context"])
|
|
3457
3457
|
]),
|
|
3458
|
-
ae("div",
|
|
3458
|
+
ae("div", Hr, [
|
|
3459
3459
|
_e(Wr, {
|
|
3460
|
-
roles:
|
|
3461
|
-
"model-value":
|
|
3460
|
+
roles: B(_),
|
|
3461
|
+
"model-value": b.value,
|
|
3462
3462
|
"restaurant-ids": g.value,
|
|
3463
|
-
"onUpdate:modelValue":
|
|
3463
|
+
"onUpdate:modelValue": A
|
|
3464
3464
|
}, Fe({ _: 2 }, [
|
|
3465
|
-
|
|
3466
|
-
name: `checkbox-${
|
|
3467
|
-
fn:
|
|
3468
|
-
_e(it, { item:
|
|
3465
|
+
be(N.value, (k) => ({
|
|
3466
|
+
name: `checkbox-${k.id}-append`,
|
|
3467
|
+
fn: he(() => [
|
|
3468
|
+
_e(it, { item: k }, null, 8, ["item"])
|
|
3469
3469
|
])
|
|
3470
3470
|
}))
|
|
3471
3471
|
]), 1032, ["roles", "model-value", "restaurant-ids"])
|