@feedmepos/mf-hrm-portal 2.2.0 → 2.2.1-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ApprovalCodeList-S4hLycQ7.js → ApprovalCodeList-BgPrC2H1.js} +5 -5
- package/dist/AuditLogList-B9k56ux1.js +1611 -0
- package/dist/{ConditionFormHost.vue_vue_type_script_setup_true_lang-Db5yMCst.js → ConditionFormHost.vue_vue_type_script_setup_true_lang-BKxQPhjZ.js} +2 -2
- package/dist/{EmployeeList-DVK6TFh7.js → EmployeeList-f05XEwMS.js} +10 -9
- package/dist/{GrantUserList-gcgVZRFe.js → GrantUserList-Db4_e87R.js} +6 -6
- package/dist/{Main-Dtw5H3tG.js → Main-C83-6ZYQ.js} +11 -11
- package/dist/{Main-Bjo-Zb4r.js → Main-CZoUt9IM.js} +5 -5
- package/dist/{Main-CCIwJYOT.js → Main-DPmBwatV.js} +8 -8
- package/dist/{PermissionSetList-BfCrgZQi.js → PermissionSetList-CqcbzdXp.js} +7 -7
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DH_L0NJq.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DMS04nsd.js} +828 -828
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-pRHy5bGs.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DVVSBIx2.js} +1 -1
- package/dist/{RoleList-Du18kaOT.js → RoleList-DsINcxpz.js} +9 -9
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +16 -0
- package/dist/{TeamMemberList-2vosaS6u.js → TeamMemberList-DuP1QWAS.js} +25 -24
- package/dist/{TimesheetList-CbVxR3Nh.js → TimesheetList-D_Xq4ESR.js} +7 -7
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-Gu52_TaA.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-O2_M0Ktw.js} +3 -3
- package/dist/{app-JkrwYC8k.js → app-3bHRu-TD.js} +780 -484
- package/dist/app.js +1 -1
- package/dist/{approval-code-C-7Qjk5q.js → approval-code-Q4666xp5.js} +1 -1
- package/dist/{dayjs.min-Ds1lSsW9.js → dayjs.min-BjrK6J3b.js} +1 -1
- package/dist/{employee-NVbuYwqa.js → employee-Ck_DJyl9.js} +4 -4
- package/dist/{grant-user-B09JP3Fr.js → grant-user-CQZaTzVt.js} +1 -1
- package/dist/{iteration-BAS0Wr1D.js → iteration-Bl07BT2c.js} +1 -1
- package/dist/{lodash-CSqbTmkq.js → lodash-CwAowwGK.js} +1 -1
- package/dist/{restaurant-DSckEY5G.js → restaurant-YOVMuuFY.js} +2 -2
- package/dist/{role-B-btt9cX.js → role-Z1BT4HFT.js} +2 -2
- package/dist/{rule-CW-i9AQB.js → rule-DYmHm3nE.js} +3 -3
- package/dist/src/api/audit-log/index.d.ts +6 -0
- package/dist/src/types/audit-log.d.ts +1 -1
- package/dist/src/views/audit-log/event-line.d.ts +13 -0
- package/dist/src/views/audit-log/locales/index.d.ts +296 -0
- package/dist/src/views/audit-log/snapshot-diff.d.ts +11 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-0rmhkdGc.js → useAppStore-DNTlIeMv.js} +1 -1
- package/dist/useDebounce-B8ZPVS5C.js +15 -0
- package/dist/{useLoading-kc23X-H9.js → useLoading-BH02lYns.js} +1 -1
- package/dist/{useReportPermissions-Bar0VbuP.js → useReportPermissions-DCF1U1Us.js} +3 -3
- package/package.json +1 -1
- package/dist/AuditLogList-B0qIy_XA.js +0 -1149
- package/dist/useDebounce-CWb5QR9G.js +0 -28
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
1
|
+
import { getCurrentInstance as Bt, inject as cs, ref as dt, shallowRef as us, computed as ee, watch as wt, onMounted as xn, onUnmounted as ds, defineComponent as Pe, h as Vn, createVNode as fe, Text as ms, Fragment as Le, resolveComponent as Fe, createBlock as we, openBlock as z, withCtx as ve, createElementVNode as ae, createElementBlock as ue, toDisplayString as Oe, unref as H, renderList as Ce, toRef as en, normalizeStyle as Qe, renderSlot as Ae, createCommentVNode as ke, createTextVNode as fs, useSlots as _s, normalizeClass as lt, createSlots as Ke, mergeModels as tn, useModel as ps } from "vue";
|
|
2
2
|
import { useI18n as nt, useCoreStore as bs } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialog as vs, useBreakpoints as hs } from "@feedmepos/ui-library";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { p as
|
|
6
|
-
import { _ as Xt, u as Ns, a as nn } from "./ConditionFormHost.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { u as Cs, v as Ts, P as
|
|
8
|
-
import { c as It } from "./iteration-
|
|
9
|
-
import { g as
|
|
10
|
-
import { u as
|
|
11
|
-
function
|
|
5
|
+
import { p as Gn, N as Wn, i as gs, P as Is, x as Rt, l as Es, k as ys } from "./rule-DYmHm3nE.js";
|
|
6
|
+
import { _ as Xt, u as Ns, a as nn } from "./ConditionFormHost.vue_vue_type_script_setup_true_lang-BKxQPhjZ.js";
|
|
7
|
+
import { u as Cs, v as Ts, P as Zn, S as Dt, A as ze, d as he, k as sn, b as Os } from "./app-3bHRu-TD.js";
|
|
8
|
+
import { c as It } from "./iteration-Bl07BT2c.js";
|
|
9
|
+
import { g as Ss, b as Rs } from "./restaurant-YOVMuuFY.js";
|
|
10
|
+
import { u as Ls } from "./role-Z1BT4HFT.js";
|
|
11
|
+
function Yn(e, t) {
|
|
12
12
|
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
13
13
|
}
|
|
14
14
|
function As(e) {
|
|
15
15
|
return Array.isArray(e) ? e[0] : e;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
const n = t.find((l) =>
|
|
17
|
+
function ks(e, t) {
|
|
18
|
+
const n = t.find((l) => Yn(l.subject, e));
|
|
19
19
|
if (!(n != null && n.category) || n.isCategoryCover) return;
|
|
20
20
|
const s = t.find((l) => l.category === n.category && l.isCategoryCover);
|
|
21
21
|
if (s)
|
|
22
22
|
return As(s.subject);
|
|
23
23
|
}
|
|
24
24
|
function rn(e, t) {
|
|
25
|
-
const n = t.find((s) =>
|
|
25
|
+
const n = t.find((s) => Yn(s.subject, e));
|
|
26
26
|
return !!(n != null && n.isCategoryCover);
|
|
27
27
|
}
|
|
28
28
|
/*!
|
|
@@ -40,26 +40,26 @@ const Ps = Object.prototype.hasOwnProperty;
|
|
|
40
40
|
function Me(e, t) {
|
|
41
41
|
return Ps.call(e, t);
|
|
42
42
|
}
|
|
43
|
-
const ge = Array.isArray,
|
|
43
|
+
const ge = Array.isArray, me = (e) => typeof e == "function", Y = (e) => typeof e == "string", pe = (e) => typeof e == "boolean", se = (e) => e !== null && typeof e == "object", js = (e) => se(e) && me(e.then) && me(e.catch), Bn = Object.prototype.toString, Ht = (e) => Bn.call(e), ne = (e) => Ht(e) === "[object Object]", Us = (e) => e == null ? "" : ge(e) || ne(e) && e.toString === Bn ? JSON.stringify(e, null, 2) : String(e);
|
|
44
44
|
function $t(e, t = "") {
|
|
45
45
|
return e.reduce((n, s, l) => l === 0 ? n + s : n + t + s, "");
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function xs(e, t) {
|
|
48
48
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
49
49
|
}
|
|
50
|
-
const
|
|
50
|
+
const ft = (e) => !se(e) || ge(e);
|
|
51
51
|
function Et(e, t) {
|
|
52
|
-
if (
|
|
52
|
+
if (ft(e) || ft(t))
|
|
53
53
|
throw new Error("Invalid value");
|
|
54
54
|
const n = [{ src: e, des: t }];
|
|
55
55
|
for (; n.length; ) {
|
|
56
56
|
const { src: s, des: l } = n.pop();
|
|
57
57
|
Object.keys(s).forEach((o) => {
|
|
58
|
-
o !== "__proto__" && (se(s[o]) && !se(l[o]) && (l[o] = Array.isArray(s[o]) ? [] : ie()),
|
|
58
|
+
o !== "__proto__" && (se(s[o]) && !se(l[o]) && (l[o] = Array.isArray(s[o]) ? [] : ie()), ft(l[o]) || ft(s[o]) ? l[o] = s[o] : n.push({ src: s[o], des: l[o] }));
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Vs(e, t, n) {
|
|
63
63
|
return { line: e, column: t, offset: n };
|
|
64
64
|
}
|
|
65
65
|
function Ft(e, t, n) {
|
|
@@ -82,24 +82,24 @@ const le = {
|
|
|
82
82
|
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
83
83
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
84
84
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
85
|
-
},
|
|
85
|
+
}, Gs = 17;
|
|
86
86
|
function Tt(e, t, n = {}) {
|
|
87
87
|
const { domain: s, messages: l, args: o } = n, d = e, u = new SyntaxError(String(d));
|
|
88
88
|
return u.code = e, t && (u.location = t), u.domain = s, u;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function Ws(e) {
|
|
91
91
|
throw e;
|
|
92
92
|
}
|
|
93
|
-
const Ue = " ",
|
|
94
|
-
`,
|
|
93
|
+
const Ue = " ", Zs = "\r", Ne = `
|
|
94
|
+
`, Ys = "\u2028", Bs = "\u2029";
|
|
95
95
|
function Xs(e) {
|
|
96
96
|
const t = e;
|
|
97
97
|
let n = 0, s = 1, l = 1, o = 0;
|
|
98
|
-
const d = (_) => t[_] ===
|
|
98
|
+
const d = (_) => t[_] === Zs && t[_ + 1] === Ne, u = (_) => t[_] === Ne, c = (_) => t[_] === Bs, h = (_) => t[_] === Ys, E = (_) => d(_) || u(_) || c(_) || h(_), T = () => n, N = () => s, D = () => l, w = () => o, k = (_) => d(_) || c(_) || h(_) ? Ne : t[_], F = () => k(n), f = () => k(n + o);
|
|
99
99
|
function p() {
|
|
100
100
|
return o = 0, E(n) && (s++, l = 0), d(n) && n++, n++, l++, t[n];
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function R() {
|
|
103
103
|
return d(n + o) && o++, o++, t[n + o];
|
|
104
104
|
}
|
|
105
105
|
function i() {
|
|
@@ -119,19 +119,19 @@ function Xs(e) {
|
|
|
119
119
|
line: N,
|
|
120
120
|
column: D,
|
|
121
121
|
peekOffset: w,
|
|
122
|
-
charAt:
|
|
122
|
+
charAt: k,
|
|
123
123
|
currentChar: F,
|
|
124
|
-
currentPeek:
|
|
124
|
+
currentPeek: f,
|
|
125
125
|
next: p,
|
|
126
|
-
peek:
|
|
126
|
+
peek: R,
|
|
127
127
|
reset: i,
|
|
128
128
|
resetPeek: b,
|
|
129
129
|
skipToPeek: g
|
|
130
130
|
};
|
|
131
131
|
}
|
|
132
|
-
const
|
|
132
|
+
const We = void 0, Hs = ".", cn = "'", $s = "tokenizer";
|
|
133
133
|
function Js(e, t = {}) {
|
|
134
|
-
const n = t.location !== !1, s = Xs(e), l = () => s.index(), o = () =>
|
|
134
|
+
const n = t.location !== !1, s = Xs(e), l = () => s.index(), o = () => Vs(s.line(), s.column(), s.index()), d = o(), u = l(), c = {
|
|
135
135
|
currentType: 13,
|
|
136
136
|
offset: u,
|
|
137
137
|
startLoc: d,
|
|
@@ -145,9 +145,9 @@ function Js(e, t = {}) {
|
|
|
145
145
|
text: ""
|
|
146
146
|
}, h = () => c, { onError: E } = t;
|
|
147
147
|
function T(r, a, I, ...j) {
|
|
148
|
-
const
|
|
148
|
+
const Z = h();
|
|
149
149
|
if (a.column += I, a.offset += I, E) {
|
|
150
|
-
const X = n ? Ft(
|
|
150
|
+
const X = n ? Ft(Z.startLoc, a) : null, v = Tt(r, X, {
|
|
151
151
|
domain: $s,
|
|
152
152
|
args: j
|
|
153
153
|
});
|
|
@@ -167,18 +167,18 @@ function Js(e, t = {}) {
|
|
|
167
167
|
function w(r, a) {
|
|
168
168
|
return r.currentChar() === a ? (r.next(), a) : (T(le.EXPECTED_TOKEN, o(), 0, a), "");
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function k(r) {
|
|
171
171
|
let a = "";
|
|
172
172
|
for (; r.currentPeek() === Ue || r.currentPeek() === Ne; )
|
|
173
173
|
a += r.currentPeek(), r.peek();
|
|
174
174
|
return a;
|
|
175
175
|
}
|
|
176
176
|
function F(r) {
|
|
177
|
-
const a =
|
|
177
|
+
const a = k(r);
|
|
178
178
|
return r.skipToPeek(), a;
|
|
179
179
|
}
|
|
180
|
-
function
|
|
181
|
-
if (r ===
|
|
180
|
+
function f(r) {
|
|
181
|
+
if (r === We)
|
|
182
182
|
return !1;
|
|
183
183
|
const a = r.charCodeAt(0);
|
|
184
184
|
return a >= 97 && a <= 122 || // a-z
|
|
@@ -186,32 +186,32 @@ function Js(e, t = {}) {
|
|
|
186
186
|
a === 95;
|
|
187
187
|
}
|
|
188
188
|
function p(r) {
|
|
189
|
-
if (r ===
|
|
189
|
+
if (r === We)
|
|
190
190
|
return !1;
|
|
191
191
|
const a = r.charCodeAt(0);
|
|
192
192
|
return a >= 48 && a <= 57;
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function R(r, a) {
|
|
195
195
|
const { currentType: I } = a;
|
|
196
196
|
if (I !== 2)
|
|
197
197
|
return !1;
|
|
198
|
-
|
|
199
|
-
const j =
|
|
198
|
+
k(r);
|
|
199
|
+
const j = f(r.currentPeek());
|
|
200
200
|
return r.resetPeek(), j;
|
|
201
201
|
}
|
|
202
202
|
function i(r, a) {
|
|
203
203
|
const { currentType: I } = a;
|
|
204
204
|
if (I !== 2)
|
|
205
205
|
return !1;
|
|
206
|
-
|
|
207
|
-
const j = r.currentPeek() === "-" ? r.peek() : r.currentPeek(),
|
|
208
|
-
return r.resetPeek(),
|
|
206
|
+
k(r);
|
|
207
|
+
const j = r.currentPeek() === "-" ? r.peek() : r.currentPeek(), Z = p(j);
|
|
208
|
+
return r.resetPeek(), Z;
|
|
209
209
|
}
|
|
210
210
|
function b(r, a) {
|
|
211
211
|
const { currentType: I } = a;
|
|
212
212
|
if (I !== 2)
|
|
213
213
|
return !1;
|
|
214
|
-
|
|
214
|
+
k(r);
|
|
215
215
|
const j = r.currentPeek() === cn;
|
|
216
216
|
return r.resetPeek(), j;
|
|
217
217
|
}
|
|
@@ -219,7 +219,7 @@ function Js(e, t = {}) {
|
|
|
219
219
|
const { currentType: I } = a;
|
|
220
220
|
if (I !== 7)
|
|
221
221
|
return !1;
|
|
222
|
-
|
|
222
|
+
k(r);
|
|
223
223
|
const j = r.currentPeek() === ".";
|
|
224
224
|
return r.resetPeek(), j;
|
|
225
225
|
}
|
|
@@ -227,43 +227,43 @@ function Js(e, t = {}) {
|
|
|
227
227
|
const { currentType: I } = a;
|
|
228
228
|
if (I !== 8)
|
|
229
229
|
return !1;
|
|
230
|
-
|
|
231
|
-
const j =
|
|
230
|
+
k(r);
|
|
231
|
+
const j = f(r.currentPeek());
|
|
232
232
|
return r.resetPeek(), j;
|
|
233
233
|
}
|
|
234
234
|
function M(r, a) {
|
|
235
235
|
const { currentType: I } = a;
|
|
236
236
|
if (!(I === 7 || I === 11))
|
|
237
237
|
return !1;
|
|
238
|
-
|
|
238
|
+
k(r);
|
|
239
239
|
const j = r.currentPeek() === ":";
|
|
240
240
|
return r.resetPeek(), j;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function L(r, a) {
|
|
243
243
|
const { currentType: I } = a;
|
|
244
244
|
if (I !== 9)
|
|
245
245
|
return !1;
|
|
246
246
|
const j = () => {
|
|
247
247
|
const X = r.currentPeek();
|
|
248
|
-
return X === "{" ?
|
|
249
|
-
},
|
|
250
|
-
return r.resetPeek(),
|
|
248
|
+
return X === "{" ? f(r.peek()) : X === "@" || X === "|" || X === ":" || X === "." || X === Ue || !X ? !1 : X === Ne ? (r.peek(), j()) : G(r, !1);
|
|
249
|
+
}, Z = j();
|
|
250
|
+
return r.resetPeek(), Z;
|
|
251
251
|
}
|
|
252
252
|
function $(r) {
|
|
253
|
-
|
|
253
|
+
k(r);
|
|
254
254
|
const a = r.currentPeek() === "|";
|
|
255
255
|
return r.resetPeek(), a;
|
|
256
256
|
}
|
|
257
|
-
function
|
|
258
|
-
const I = (
|
|
257
|
+
function G(r, a = !0) {
|
|
258
|
+
const I = (Z = !1, X = "") => {
|
|
259
259
|
const v = r.currentPeek();
|
|
260
|
-
return v === "{" || v === "@" || !v ?
|
|
260
|
+
return v === "{" || v === "@" || !v ? Z : v === "|" ? !(X === Ue || X === Ne) : v === Ue ? (r.peek(), I(!0, Ue)) : v === Ne ? (r.peek(), I(!0, Ne)) : !0;
|
|
261
261
|
}, j = I();
|
|
262
262
|
return a && r.resetPeek(), j;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function m(r, a) {
|
|
265
265
|
const I = r.currentChar();
|
|
266
|
-
return I ===
|
|
266
|
+
return I === We ? We : a(I) ? (r.next(), I) : null;
|
|
267
267
|
}
|
|
268
268
|
function y(r) {
|
|
269
269
|
const a = r.charCodeAt(0);
|
|
@@ -273,8 +273,8 @@ function Js(e, t = {}) {
|
|
|
273
273
|
a === 95 || // _
|
|
274
274
|
a === 36;
|
|
275
275
|
}
|
|
276
|
-
function
|
|
277
|
-
return
|
|
276
|
+
function x(r) {
|
|
277
|
+
return m(r, y);
|
|
278
278
|
}
|
|
279
279
|
function U(r) {
|
|
280
280
|
const a = r.charCodeAt(0);
|
|
@@ -286,27 +286,27 @@ function Js(e, t = {}) {
|
|
|
286
286
|
a === 45;
|
|
287
287
|
}
|
|
288
288
|
function P(r) {
|
|
289
|
-
return
|
|
289
|
+
return m(r, U);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function W(r) {
|
|
292
292
|
const a = r.charCodeAt(0);
|
|
293
293
|
return a >= 48 && a <= 57;
|
|
294
294
|
}
|
|
295
|
-
function
|
|
296
|
-
return
|
|
295
|
+
function V(r) {
|
|
296
|
+
return m(r, W);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function B(r) {
|
|
299
299
|
const a = r.charCodeAt(0);
|
|
300
300
|
return a >= 48 && a <= 57 || // 0-9
|
|
301
301
|
a >= 65 && a <= 70 || // A-F
|
|
302
302
|
a >= 97 && a <= 102;
|
|
303
303
|
}
|
|
304
304
|
function J(r) {
|
|
305
|
-
return
|
|
305
|
+
return m(r, B);
|
|
306
306
|
}
|
|
307
307
|
function oe(r) {
|
|
308
308
|
let a = "", I = "";
|
|
309
|
-
for (; a =
|
|
309
|
+
for (; a = V(r); )
|
|
310
310
|
I += a;
|
|
311
311
|
return I;
|
|
312
312
|
}
|
|
@@ -317,7 +317,7 @@ function Js(e, t = {}) {
|
|
|
317
317
|
if (I === "{" || I === "}" || I === "@" || I === "|" || !I)
|
|
318
318
|
break;
|
|
319
319
|
if (I === Ue || I === Ne)
|
|
320
|
-
if (
|
|
320
|
+
if (G(r))
|
|
321
321
|
a += I, r.next();
|
|
322
322
|
else {
|
|
323
323
|
if ($(r))
|
|
@@ -334,12 +334,12 @@ function Js(e, t = {}) {
|
|
|
334
334
|
let a = "", I = "";
|
|
335
335
|
for (; a = P(r); )
|
|
336
336
|
I += a;
|
|
337
|
-
return r.currentChar() ===
|
|
337
|
+
return r.currentChar() === We && T(le.UNTERMINATED_CLOSING_BRACE, o(), 0), I;
|
|
338
338
|
}
|
|
339
339
|
function ce(r) {
|
|
340
340
|
F(r);
|
|
341
341
|
let a = "";
|
|
342
|
-
return r.currentChar() === "-" ? (r.next(), a += `-${oe(r)}`) : a += oe(r), r.currentChar() ===
|
|
342
|
+
return r.currentChar() === "-" ? (r.next(), a += `-${oe(r)}`) : a += oe(r), r.currentChar() === We && T(le.UNTERMINATED_CLOSING_BRACE, o(), 0), a;
|
|
343
343
|
}
|
|
344
344
|
function q(r) {
|
|
345
345
|
return r !== cn && r !== Ne;
|
|
@@ -347,10 +347,10 @@ function Js(e, t = {}) {
|
|
|
347
347
|
function _e(r) {
|
|
348
348
|
F(r), w(r, "'");
|
|
349
349
|
let a = "", I = "";
|
|
350
|
-
for (; a =
|
|
350
|
+
for (; a = m(r, q); )
|
|
351
351
|
a === "\\" ? I += ye(r) : I += a;
|
|
352
352
|
const j = r.currentChar();
|
|
353
|
-
return j === Ne || j ===
|
|
353
|
+
return j === Ne || j === We ? (T(le.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), j === Ne && (r.next(), w(r, "'")), I) : (w(r, "'"), I);
|
|
354
354
|
}
|
|
355
355
|
function ye(r) {
|
|
356
356
|
const a = r.currentChar();
|
|
@@ -369,7 +369,7 @@ function Js(e, t = {}) {
|
|
|
369
369
|
function je(r, a, I) {
|
|
370
370
|
w(r, a);
|
|
371
371
|
let j = "";
|
|
372
|
-
for (let
|
|
372
|
+
for (let Z = 0; Z < I; Z++) {
|
|
373
373
|
const X = J(r);
|
|
374
374
|
if (!X) {
|
|
375
375
|
T(le.INVALID_UNICODE_ESCAPE_SEQUENCE, o(), 0, `\\${a}${j}${r.currentChar()}`);
|
|
@@ -385,13 +385,13 @@ function Js(e, t = {}) {
|
|
|
385
385
|
function be(r) {
|
|
386
386
|
F(r);
|
|
387
387
|
let a = "", I = "";
|
|
388
|
-
for (; a =
|
|
388
|
+
for (; a = m(r, te); )
|
|
389
389
|
I += a;
|
|
390
390
|
return I;
|
|
391
391
|
}
|
|
392
392
|
function st(r) {
|
|
393
393
|
let a = "", I = "";
|
|
394
|
-
for (; a =
|
|
394
|
+
for (; a = x(r); )
|
|
395
395
|
I += a;
|
|
396
396
|
return I;
|
|
397
397
|
}
|
|
@@ -402,7 +402,7 @@ function Js(e, t = {}) {
|
|
|
402
402
|
};
|
|
403
403
|
return a("");
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function Re(r) {
|
|
406
406
|
F(r);
|
|
407
407
|
const a = w(
|
|
408
408
|
r,
|
|
@@ -411,7 +411,7 @@ function Js(e, t = {}) {
|
|
|
411
411
|
);
|
|
412
412
|
return F(r), a;
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Ge(r, a) {
|
|
415
415
|
let I = null;
|
|
416
416
|
switch (r.currentChar()) {
|
|
417
417
|
case "{":
|
|
@@ -431,18 +431,18 @@ function Js(e, t = {}) {
|
|
|
431
431
|
case "@":
|
|
432
432
|
return a.braceNest > 0 && T(le.UNTERMINATED_CLOSING_BRACE, o(), 0), I = O(r, a) || D(a), a.braceNest = 0, I;
|
|
433
433
|
default: {
|
|
434
|
-
let
|
|
434
|
+
let Z = !0, X = !0, v = !0;
|
|
435
435
|
if ($(r))
|
|
436
|
-
return a.braceNest > 0 && T(le.UNTERMINATED_CLOSING_BRACE, o(), 0), I = N(a, 1,
|
|
436
|
+
return a.braceNest > 0 && T(le.UNTERMINATED_CLOSING_BRACE, o(), 0), I = N(a, 1, Re(r)), a.braceNest = 0, a.inLinked = !1, I;
|
|
437
437
|
if (a.braceNest > 0 && (a.currentType === 4 || a.currentType === 5 || a.currentType === 6))
|
|
438
438
|
return T(le.UNTERMINATED_CLOSING_BRACE, o(), 0), a.braceNest = 0, C(r, a);
|
|
439
|
-
if (
|
|
439
|
+
if (Z = R(r, a))
|
|
440
440
|
return I = N(a, 4, re(r)), F(r), I;
|
|
441
441
|
if (X = i(r, a))
|
|
442
442
|
return I = N(a, 5, ce(r)), F(r), I;
|
|
443
443
|
if (v = b(r, a))
|
|
444
444
|
return I = N(a, 6, _e(r)), F(r), I;
|
|
445
|
-
if (!
|
|
445
|
+
if (!Z && !X && !v)
|
|
446
446
|
return I = N(a, 12, be(r)), T(le.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, I.value), F(r), I;
|
|
447
447
|
break;
|
|
448
448
|
}
|
|
@@ -452,8 +452,8 @@ function Js(e, t = {}) {
|
|
|
452
452
|
function O(r, a) {
|
|
453
453
|
const { currentType: I } = a;
|
|
454
454
|
let j = null;
|
|
455
|
-
const
|
|
456
|
-
switch ((I === 7 || I === 8 || I === 11 || I === 9) && (
|
|
455
|
+
const Z = r.currentChar();
|
|
456
|
+
switch ((I === 7 || I === 8 || I === 11 || I === 9) && (Z === Ne || Z === Ue) && T(le.INVALID_LINKED_FORMAT, o(), 0), Z) {
|
|
457
457
|
case "@":
|
|
458
458
|
return r.next(), j = N(
|
|
459
459
|
a,
|
|
@@ -476,7 +476,7 @@ function Js(e, t = {}) {
|
|
|
476
476
|
/* TokenChars.LinkedDelimiter */
|
|
477
477
|
);
|
|
478
478
|
default:
|
|
479
|
-
return $(r) ? (j = N(a, 1,
|
|
479
|
+
return $(r) ? (j = N(a, 1, Re(r)), a.braceNest = 0, a.inLinked = !1, j) : g(r, a) || M(r, a) ? (F(r), O(r, a)) : _(r, a) ? (F(r), N(a, 11, st(r))) : L(r, a) ? (F(r), Z === "{" ? Ge(r, a) || j : N(a, 10, rt(r))) : (I === 7 && T(le.INVALID_LINKED_FORMAT, o(), 0), a.braceNest = 0, a.inLinked = !1, C(r, a));
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
function C(r, a) {
|
|
@@ -485,12 +485,12 @@ function Js(e, t = {}) {
|
|
|
485
485
|
/* TokenTypes.EOF */
|
|
486
486
|
};
|
|
487
487
|
if (a.braceNest > 0)
|
|
488
|
-
return
|
|
488
|
+
return Ge(r, a) || D(a);
|
|
489
489
|
if (a.inLinked)
|
|
490
490
|
return O(r, a) || D(a);
|
|
491
491
|
switch (r.currentChar()) {
|
|
492
492
|
case "{":
|
|
493
|
-
return
|
|
493
|
+
return Ge(r, a) || D(a);
|
|
494
494
|
case "}":
|
|
495
495
|
return T(le.UNBALANCED_CLOSING_BRACE, o(), 0), r.next(), N(
|
|
496
496
|
a,
|
|
@@ -502,8 +502,8 @@ function Js(e, t = {}) {
|
|
|
502
502
|
return O(r, a) || D(a);
|
|
503
503
|
default: {
|
|
504
504
|
if ($(r))
|
|
505
|
-
return I = N(a, 1,
|
|
506
|
-
if (
|
|
505
|
+
return I = N(a, 1, Re(r)), a.braceNest = 0, a.inLinked = !1, I;
|
|
506
|
+
if (G(r))
|
|
507
507
|
return N(a, 0, Q(r));
|
|
508
508
|
break;
|
|
509
509
|
}
|
|
@@ -512,7 +512,7 @@ function Js(e, t = {}) {
|
|
|
512
512
|
}
|
|
513
513
|
function A() {
|
|
514
514
|
const { currentType: r, offset: a, startLoc: I, endLoc: j } = c;
|
|
515
|
-
return c.lastType = r, c.lastOffset = a, c.lastStartLoc = I, c.lastEndLoc = j, c.offset = l(), c.startLoc = o(), s.currentChar() ===
|
|
515
|
+
return c.lastType = r, c.lastOffset = a, c.lastStartLoc = I, c.lastEndLoc = j, c.offset = l(), c.startLoc = o(), s.currentChar() === We ? N(
|
|
516
516
|
c,
|
|
517
517
|
13
|
|
518
518
|
/* TokenTypes.EOF */
|
|
@@ -540,132 +540,132 @@ function Qs(e, t, n) {
|
|
|
540
540
|
}
|
|
541
541
|
function qs(e = {}) {
|
|
542
542
|
const t = e.location !== !1, { onError: n } = e;
|
|
543
|
-
function s(
|
|
544
|
-
const g =
|
|
543
|
+
function s(f, p, R, i, ...b) {
|
|
544
|
+
const g = f.currentPosition();
|
|
545
545
|
if (g.offset += i, g.column += i, n) {
|
|
546
|
-
const _ = t ? Ft(
|
|
546
|
+
const _ = t ? Ft(R, g) : null, M = Tt(p, _, {
|
|
547
547
|
domain: Ks,
|
|
548
548
|
args: b
|
|
549
549
|
});
|
|
550
550
|
n(M);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
function l(
|
|
554
|
-
const i = { type:
|
|
555
|
-
return t && (i.start = p, i.end = p, i.loc = { start:
|
|
553
|
+
function l(f, p, R) {
|
|
554
|
+
const i = { type: f };
|
|
555
|
+
return t && (i.start = p, i.end = p, i.loc = { start: R, end: R }), i;
|
|
556
556
|
}
|
|
557
|
-
function o(
|
|
558
|
-
t && (
|
|
557
|
+
function o(f, p, R, i) {
|
|
558
|
+
t && (f.end = p, f.loc && (f.loc.end = R));
|
|
559
559
|
}
|
|
560
|
-
function d(
|
|
561
|
-
const
|
|
562
|
-
return i.value = p, o(i,
|
|
560
|
+
function d(f, p) {
|
|
561
|
+
const R = f.context(), i = l(3, R.offset, R.startLoc);
|
|
562
|
+
return i.value = p, o(i, f.currentOffset(), f.currentPosition()), i;
|
|
563
563
|
}
|
|
564
|
-
function u(
|
|
565
|
-
const
|
|
566
|
-
return g.index = parseInt(p, 10),
|
|
564
|
+
function u(f, p) {
|
|
565
|
+
const R = f.context(), { lastOffset: i, lastStartLoc: b } = R, g = l(5, i, b);
|
|
566
|
+
return g.index = parseInt(p, 10), f.nextToken(), o(g, f.currentOffset(), f.currentPosition()), g;
|
|
567
567
|
}
|
|
568
|
-
function c(
|
|
569
|
-
const
|
|
570
|
-
return g.key = p,
|
|
568
|
+
function c(f, p) {
|
|
569
|
+
const R = f.context(), { lastOffset: i, lastStartLoc: b } = R, g = l(4, i, b);
|
|
570
|
+
return g.key = p, f.nextToken(), o(g, f.currentOffset(), f.currentPosition()), g;
|
|
571
571
|
}
|
|
572
|
-
function h(
|
|
573
|
-
const
|
|
574
|
-
return g.value = p.replace(zs, Qs),
|
|
572
|
+
function h(f, p) {
|
|
573
|
+
const R = f.context(), { lastOffset: i, lastStartLoc: b } = R, g = l(9, i, b);
|
|
574
|
+
return g.value = p.replace(zs, Qs), f.nextToken(), o(g, f.currentOffset(), f.currentPosition()), g;
|
|
575
575
|
}
|
|
576
|
-
function E(
|
|
577
|
-
const p =
|
|
578
|
-
return p.type !== 11 ? (s(
|
|
576
|
+
function E(f) {
|
|
577
|
+
const p = f.nextToken(), R = f.context(), { lastOffset: i, lastStartLoc: b } = R, g = l(8, i, b);
|
|
578
|
+
return p.type !== 11 ? (s(f, le.UNEXPECTED_EMPTY_LINKED_MODIFIER, R.lastStartLoc, 0), g.value = "", o(g, i, b), {
|
|
579
579
|
nextConsumeToken: p,
|
|
580
580
|
node: g
|
|
581
|
-
}) : (p.value == null && s(
|
|
581
|
+
}) : (p.value == null && s(f, le.UNEXPECTED_LEXICAL_ANALYSIS, R.lastStartLoc, 0, De(p)), g.value = p.value || "", o(g, f.currentOffset(), f.currentPosition()), {
|
|
582
582
|
node: g
|
|
583
583
|
});
|
|
584
584
|
}
|
|
585
|
-
function T(
|
|
586
|
-
const
|
|
587
|
-
return i.value = p, o(i,
|
|
585
|
+
function T(f, p) {
|
|
586
|
+
const R = f.context(), i = l(7, R.offset, R.startLoc);
|
|
587
|
+
return i.value = p, o(i, f.currentOffset(), f.currentPosition()), i;
|
|
588
588
|
}
|
|
589
|
-
function N(
|
|
590
|
-
const p =
|
|
591
|
-
let i =
|
|
589
|
+
function N(f) {
|
|
590
|
+
const p = f.context(), R = l(6, p.offset, p.startLoc);
|
|
591
|
+
let i = f.nextToken();
|
|
592
592
|
if (i.type === 8) {
|
|
593
|
-
const b = E(
|
|
594
|
-
|
|
593
|
+
const b = E(f);
|
|
594
|
+
R.modifier = b.node, i = b.nextConsumeToken || f.nextToken();
|
|
595
595
|
}
|
|
596
|
-
switch (i.type !== 9 && s(
|
|
596
|
+
switch (i.type !== 9 && s(f, le.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, De(i)), i = f.nextToken(), i.type === 2 && (i = f.nextToken()), i.type) {
|
|
597
597
|
case 10:
|
|
598
|
-
i.value == null && s(
|
|
598
|
+
i.value == null && s(f, le.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, De(i)), R.key = T(f, i.value || "");
|
|
599
599
|
break;
|
|
600
600
|
case 4:
|
|
601
|
-
i.value == null && s(
|
|
601
|
+
i.value == null && s(f, le.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, De(i)), R.key = c(f, i.value || "");
|
|
602
602
|
break;
|
|
603
603
|
case 5:
|
|
604
|
-
i.value == null && s(
|
|
604
|
+
i.value == null && s(f, le.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, De(i)), R.key = u(f, i.value || "");
|
|
605
605
|
break;
|
|
606
606
|
case 6:
|
|
607
|
-
i.value == null && s(
|
|
607
|
+
i.value == null && s(f, le.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, De(i)), R.key = h(f, i.value || "");
|
|
608
608
|
break;
|
|
609
609
|
default: {
|
|
610
|
-
s(
|
|
611
|
-
const b =
|
|
612
|
-
return g.value = "", o(g, b.offset, b.startLoc),
|
|
610
|
+
s(f, le.UNEXPECTED_EMPTY_LINKED_KEY, p.lastStartLoc, 0);
|
|
611
|
+
const b = f.context(), g = l(7, b.offset, b.startLoc);
|
|
612
|
+
return g.value = "", o(g, b.offset, b.startLoc), R.key = g, o(R, b.offset, b.startLoc), {
|
|
613
613
|
nextConsumeToken: i,
|
|
614
|
-
node:
|
|
614
|
+
node: R
|
|
615
615
|
};
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
return o(
|
|
619
|
-
node:
|
|
618
|
+
return o(R, f.currentOffset(), f.currentPosition()), {
|
|
619
|
+
node: R
|
|
620
620
|
};
|
|
621
621
|
}
|
|
622
|
-
function D(
|
|
623
|
-
const p =
|
|
622
|
+
function D(f) {
|
|
623
|
+
const p = f.context(), R = p.currentType === 1 ? f.currentOffset() : p.offset, i = p.currentType === 1 ? p.endLoc : p.startLoc, b = l(2, R, i);
|
|
624
624
|
b.items = [];
|
|
625
625
|
let g = null;
|
|
626
626
|
do {
|
|
627
|
-
const
|
|
628
|
-
switch (g = null,
|
|
627
|
+
const L = g || f.nextToken();
|
|
628
|
+
switch (g = null, L.type) {
|
|
629
629
|
case 0:
|
|
630
|
-
|
|
630
|
+
L.value == null && s(f, le.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, De(L)), b.items.push(d(f, L.value || ""));
|
|
631
631
|
break;
|
|
632
632
|
case 5:
|
|
633
|
-
|
|
633
|
+
L.value == null && s(f, le.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, De(L)), b.items.push(u(f, L.value || ""));
|
|
634
634
|
break;
|
|
635
635
|
case 4:
|
|
636
|
-
|
|
636
|
+
L.value == null && s(f, le.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, De(L)), b.items.push(c(f, L.value || ""));
|
|
637
637
|
break;
|
|
638
638
|
case 6:
|
|
639
|
-
|
|
639
|
+
L.value == null && s(f, le.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, De(L)), b.items.push(h(f, L.value || ""));
|
|
640
640
|
break;
|
|
641
641
|
case 7: {
|
|
642
|
-
const $ = N(
|
|
642
|
+
const $ = N(f);
|
|
643
643
|
b.items.push($.node), g = $.nextConsumeToken || null;
|
|
644
644
|
break;
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
} while (p.currentType !== 13 && p.currentType !== 1);
|
|
648
|
-
const _ = p.currentType === 1 ? p.lastOffset :
|
|
648
|
+
const _ = p.currentType === 1 ? p.lastOffset : f.currentOffset(), M = p.currentType === 1 ? p.lastEndLoc : f.currentPosition();
|
|
649
649
|
return o(b, _, M), b;
|
|
650
650
|
}
|
|
651
|
-
function w(
|
|
652
|
-
const b =
|
|
651
|
+
function w(f, p, R, i) {
|
|
652
|
+
const b = f.context();
|
|
653
653
|
let g = i.items.length === 0;
|
|
654
|
-
const _ = l(1, p,
|
|
654
|
+
const _ = l(1, p, R);
|
|
655
655
|
_.cases = [], _.cases.push(i);
|
|
656
656
|
do {
|
|
657
|
-
const M = D(
|
|
657
|
+
const M = D(f);
|
|
658
658
|
g || (g = M.items.length === 0), _.cases.push(M);
|
|
659
659
|
} while (b.currentType !== 13);
|
|
660
|
-
return g && s(
|
|
660
|
+
return g && s(f, le.MUST_HAVE_MESSAGES_IN_PLURAL, R, 0), o(_, f.currentOffset(), f.currentPosition()), _;
|
|
661
661
|
}
|
|
662
|
-
function
|
|
663
|
-
const p =
|
|
664
|
-
return p.currentType === 13 ? b : w(
|
|
662
|
+
function k(f) {
|
|
663
|
+
const p = f.context(), { offset: R, startLoc: i } = p, b = D(f);
|
|
664
|
+
return p.currentType === 13 ? b : w(f, R, i, b);
|
|
665
665
|
}
|
|
666
|
-
function F(
|
|
667
|
-
const p = Js(
|
|
668
|
-
return t && i.loc && (i.loc.source =
|
|
666
|
+
function F(f) {
|
|
667
|
+
const p = Js(f, Ee({}, e)), R = p.context(), i = l(0, R.offset, R.startLoc);
|
|
668
|
+
return t && i.loc && (i.loc.source = f), i.body = k(p), e.onCacheKey && (i.cacheKey = e.onCacheKey(f)), R.currentType !== 13 && s(p, le.UNEXPECTED_LEXICAL_ANALYSIS, R.lastStartLoc, 0, f[R.offset] || ""), o(i, p.currentOffset(), p.currentPosition()), i;
|
|
669
669
|
}
|
|
670
670
|
return { parse: F };
|
|
671
671
|
}
|
|
@@ -822,20 +822,20 @@ function sr(e, t) {
|
|
|
822
822
|
};
|
|
823
823
|
o && e.loc && (d.source = e.loc.source);
|
|
824
824
|
const u = () => d;
|
|
825
|
-
function c(
|
|
826
|
-
d.code +=
|
|
825
|
+
function c(k, F) {
|
|
826
|
+
d.code += k;
|
|
827
827
|
}
|
|
828
|
-
function h(
|
|
829
|
-
const
|
|
830
|
-
c(l ?
|
|
828
|
+
function h(k, F = !0) {
|
|
829
|
+
const f = F ? s : "";
|
|
830
|
+
c(l ? f + " ".repeat(k) : f);
|
|
831
831
|
}
|
|
832
|
-
function E(
|
|
832
|
+
function E(k = !0) {
|
|
833
833
|
const F = ++d.indentLevel;
|
|
834
|
-
|
|
834
|
+
k && h(F);
|
|
835
835
|
}
|
|
836
|
-
function T(
|
|
836
|
+
function T(k = !0) {
|
|
837
837
|
const F = --d.indentLevel;
|
|
838
|
-
|
|
838
|
+
k && h(F);
|
|
839
839
|
}
|
|
840
840
|
function N() {
|
|
841
841
|
h(d.indentLevel);
|
|
@@ -846,7 +846,7 @@ function sr(e, t) {
|
|
|
846
846
|
indent: E,
|
|
847
847
|
deindent: T,
|
|
848
848
|
newline: N,
|
|
849
|
-
helper: (
|
|
849
|
+
helper: (k) => `_${k}`,
|
|
850
850
|
needIndent: () => d.needIndent
|
|
851
851
|
};
|
|
852
852
|
}
|
|
@@ -932,7 +932,7 @@ function qe(e, t) {
|
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
934
|
const ir = (e, t = {}) => {
|
|
935
|
-
const n =
|
|
935
|
+
const n = Y(t.mode) ? t.mode : "normal", s = Y(t.filename) ? t.filename : "message.intl";
|
|
936
936
|
t.sourceMap;
|
|
937
937
|
const l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
938
938
|
`, o = t.needIndent ? t.needIndent : n !== "arrow", d = e.helpers || [], u = sr(e, {
|
|
@@ -957,10 +957,10 @@ var ur = { env: { NODE_ENV: "production" } };
|
|
|
957
957
|
function dr() {
|
|
958
958
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Xe().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Xe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
959
959
|
}
|
|
960
|
-
function
|
|
961
|
-
return (n) =>
|
|
960
|
+
function Lt(e) {
|
|
961
|
+
return (n) => mr(n, e);
|
|
962
962
|
}
|
|
963
|
-
function
|
|
963
|
+
function mr(e, t) {
|
|
964
964
|
const n = _r(t);
|
|
965
965
|
if (n == null)
|
|
966
966
|
throw at(
|
|
@@ -971,20 +971,20 @@ function fr(e, t) {
|
|
|
971
971
|
const o = br(n);
|
|
972
972
|
return e.plural(o.reduce((d, u) => [
|
|
973
973
|
...d,
|
|
974
|
-
|
|
974
|
+
mn(e, u)
|
|
975
975
|
], []));
|
|
976
976
|
} else
|
|
977
|
-
return
|
|
977
|
+
return mn(e, n);
|
|
978
978
|
}
|
|
979
|
-
const
|
|
979
|
+
const fr = ["b", "body"];
|
|
980
980
|
function _r(e) {
|
|
981
|
-
return
|
|
981
|
+
return Ye(e, fr);
|
|
982
982
|
}
|
|
983
983
|
const pr = ["c", "cases"];
|
|
984
984
|
function br(e) {
|
|
985
|
-
return
|
|
985
|
+
return Ye(e, pr, []);
|
|
986
986
|
}
|
|
987
|
-
function
|
|
987
|
+
function mn(e, t) {
|
|
988
988
|
const n = hr(t);
|
|
989
989
|
if (n != null)
|
|
990
990
|
return e.type === "text" ? n : e.normalize([n]);
|
|
@@ -995,11 +995,11 @@ function fn(e, t) {
|
|
|
995
995
|
}
|
|
996
996
|
const vr = ["s", "static"];
|
|
997
997
|
function hr(e) {
|
|
998
|
-
return
|
|
998
|
+
return Ye(e, vr);
|
|
999
999
|
}
|
|
1000
1000
|
const gr = ["i", "items"];
|
|
1001
1001
|
function Ir(e) {
|
|
1002
|
-
return
|
|
1002
|
+
return Ye(e, gr, []);
|
|
1003
1003
|
}
|
|
1004
1004
|
function Pt(e, t) {
|
|
1005
1005
|
const n = Kt(t);
|
|
@@ -1038,22 +1038,22 @@ function Pt(e, t) {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
const Er = ["t", "type"];
|
|
1040
1040
|
function Kt(e) {
|
|
1041
|
-
return
|
|
1041
|
+
return Ye(e, Er);
|
|
1042
1042
|
}
|
|
1043
1043
|
const yr = ["v", "value"];
|
|
1044
1044
|
function _t(e, t) {
|
|
1045
|
-
const n =
|
|
1045
|
+
const n = Ye(e, yr);
|
|
1046
1046
|
if (n)
|
|
1047
1047
|
return n;
|
|
1048
1048
|
throw at(t);
|
|
1049
1049
|
}
|
|
1050
1050
|
const Nr = ["m", "modifier"];
|
|
1051
1051
|
function Cr(e) {
|
|
1052
|
-
return
|
|
1052
|
+
return Ye(e, Nr);
|
|
1053
1053
|
}
|
|
1054
1054
|
const Tr = ["k", "key"];
|
|
1055
1055
|
function Or(e) {
|
|
1056
|
-
const t =
|
|
1056
|
+
const t = Ye(e, Tr);
|
|
1057
1057
|
if (t)
|
|
1058
1058
|
return t;
|
|
1059
1059
|
throw at(
|
|
@@ -1061,7 +1061,7 @@ function Or(e) {
|
|
|
1061
1061
|
/* NodeTypes.Linked */
|
|
1062
1062
|
);
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
1064
|
+
function Ye(e, t, n) {
|
|
1065
1065
|
for (let s = 0; s < t.length; s++) {
|
|
1066
1066
|
const l = t[s];
|
|
1067
1067
|
if (Me(e, l) && e[l] != null)
|
|
@@ -1072,45 +1072,45 @@ function Ze(e, t, n) {
|
|
|
1072
1072
|
function at(e) {
|
|
1073
1073
|
return new Error(`unhandled node type: ${e}`);
|
|
1074
1074
|
}
|
|
1075
|
-
const
|
|
1075
|
+
const Sr = (e) => e;
|
|
1076
1076
|
let pt = ie();
|
|
1077
1077
|
function et(e) {
|
|
1078
1078
|
return se(e) && Kt(e) === 0 && (Me(e, "b") || Me(e, "body"));
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1080
|
+
function Rr(e, t = {}) {
|
|
1081
1081
|
let n = !1;
|
|
1082
|
-
const s = t.onError ||
|
|
1082
|
+
const s = t.onError || Ws;
|
|
1083
1083
|
return t.onError = (l) => {
|
|
1084
1084
|
n = !0, s(l);
|
|
1085
1085
|
}, { ...cr(e, t), detectError: n };
|
|
1086
1086
|
}
|
|
1087
1087
|
// @__NO_SIDE_EFFECTS__
|
|
1088
|
-
function
|
|
1089
|
-
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ &&
|
|
1088
|
+
function Lr(e, t) {
|
|
1089
|
+
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && Y(e)) {
|
|
1090
1090
|
pe(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1091
|
-
const s = (t.onCacheKey ||
|
|
1091
|
+
const s = (t.onCacheKey || Sr)(e), l = pt[s];
|
|
1092
1092
|
if (l)
|
|
1093
1093
|
return l;
|
|
1094
|
-
const { ast: o, detectError: d } =
|
|
1094
|
+
const { ast: o, detectError: d } = Rr(e, {
|
|
1095
1095
|
...t,
|
|
1096
1096
|
location: ur.env.NODE_ENV !== "production",
|
|
1097
1097
|
jit: !0
|
|
1098
|
-
}), u =
|
|
1098
|
+
}), u = Lt(o);
|
|
1099
1099
|
return d ? u : pt[s] = u;
|
|
1100
1100
|
} else {
|
|
1101
1101
|
const n = e.cacheKey;
|
|
1102
1102
|
if (n) {
|
|
1103
1103
|
const s = pt[n];
|
|
1104
|
-
return s || (pt[n] =
|
|
1104
|
+
return s || (pt[n] = Lt(e));
|
|
1105
1105
|
} else
|
|
1106
|
-
return
|
|
1106
|
+
return Lt(e);
|
|
1107
1107
|
}
|
|
1108
1108
|
}
|
|
1109
1109
|
let it = null;
|
|
1110
1110
|
function Ar(e) {
|
|
1111
1111
|
it = e;
|
|
1112
1112
|
}
|
|
1113
|
-
function
|
|
1113
|
+
function kr(e, t, n) {
|
|
1114
1114
|
it && it.emit("i18n:init", {
|
|
1115
1115
|
timestamp: Date.now(),
|
|
1116
1116
|
i18n: e,
|
|
@@ -1122,8 +1122,8 @@ const Mr = /* @__PURE__ */ wr("function:translate");
|
|
|
1122
1122
|
function wr(e) {
|
|
1123
1123
|
return (t) => it && it.emit(e, t);
|
|
1124
1124
|
}
|
|
1125
|
-
const
|
|
1126
|
-
INVALID_ARGUMENT:
|
|
1125
|
+
const xe = {
|
|
1126
|
+
INVALID_ARGUMENT: Gs,
|
|
1127
1127
|
// 17
|
|
1128
1128
|
INVALID_DATE_ARGUMENT: 18,
|
|
1129
1129
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1131,37 +1131,37 @@ const Ve = {
|
|
|
1131
1131
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1132
1132
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1133
1133
|
}, Dr = 24;
|
|
1134
|
-
function
|
|
1134
|
+
function Ve(e) {
|
|
1135
1135
|
return Tt(e, null, void 0);
|
|
1136
1136
|
}
|
|
1137
1137
|
function zt(e, t) {
|
|
1138
|
-
return t.locale != null ?
|
|
1138
|
+
return t.locale != null ? fn(t.locale) : fn(e.locale);
|
|
1139
1139
|
}
|
|
1140
1140
|
let At;
|
|
1141
|
-
function
|
|
1142
|
-
if (
|
|
1141
|
+
function fn(e) {
|
|
1142
|
+
if (Y(e))
|
|
1143
1143
|
return e;
|
|
1144
|
-
if (
|
|
1144
|
+
if (me(e)) {
|
|
1145
1145
|
if (e.resolvedOnce && At != null)
|
|
1146
1146
|
return At;
|
|
1147
1147
|
if (e.constructor.name === "Function") {
|
|
1148
1148
|
const t = e();
|
|
1149
1149
|
if (js(t))
|
|
1150
|
-
throw xe
|
|
1150
|
+
throw Ve(xe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1151
1151
|
return At = t;
|
|
1152
1152
|
} else
|
|
1153
|
-
throw xe
|
|
1153
|
+
throw Ve(xe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1154
1154
|
} else
|
|
1155
|
-
throw xe
|
|
1155
|
+
throw Ve(xe.NOT_SUPPORT_LOCALE_TYPE);
|
|
1156
1156
|
}
|
|
1157
1157
|
function Fr(e, t, n) {
|
|
1158
1158
|
return [.../* @__PURE__ */ new Set([
|
|
1159
1159
|
n,
|
|
1160
|
-
...ge(t) ? t : se(t) ? Object.keys(t) :
|
|
1160
|
+
...ge(t) ? t : se(t) ? Object.keys(t) : Y(t) ? [t] : [n]
|
|
1161
1161
|
])];
|
|
1162
1162
|
}
|
|
1163
1163
|
function Xn(e, t, n) {
|
|
1164
|
-
const s =
|
|
1164
|
+
const s = Y(n) ? n : Nt, l = e;
|
|
1165
1165
|
l.__localeChainCache || (l.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1166
1166
|
let o = l.__localeChainCache.get(s);
|
|
1167
1167
|
if (!o) {
|
|
@@ -1170,7 +1170,7 @@ function Xn(e, t, n) {
|
|
|
1170
1170
|
for (; ge(d); )
|
|
1171
1171
|
d = _n(o, d, t);
|
|
1172
1172
|
const u = ge(t) || !ne(t) ? t : t.default ? t.default : null;
|
|
1173
|
-
d =
|
|
1173
|
+
d = Y(u) ? [u] : u, ge(d) && _n(o, d, !1), l.__localeChainCache.set(s, o);
|
|
1174
1174
|
}
|
|
1175
1175
|
return o;
|
|
1176
1176
|
}
|
|
@@ -1178,7 +1178,7 @@ function _n(e, t, n) {
|
|
|
1178
1178
|
let s = !0;
|
|
1179
1179
|
for (let l = 0; l < t.length && pe(s); l++) {
|
|
1180
1180
|
const o = t[l];
|
|
1181
|
-
|
|
1181
|
+
Y(o) && (s = Pr(e, t[l], n));
|
|
1182
1182
|
}
|
|
1183
1183
|
return s;
|
|
1184
1184
|
}
|
|
@@ -1200,8 +1200,8 @@ function jr(e, t, n) {
|
|
|
1200
1200
|
}
|
|
1201
1201
|
return s;
|
|
1202
1202
|
}
|
|
1203
|
-
const
|
|
1204
|
-
|
|
1203
|
+
const Be = [];
|
|
1204
|
+
Be[
|
|
1205
1205
|
0
|
|
1206
1206
|
/* States.BEFORE_PATH */
|
|
1207
1207
|
] = {
|
|
@@ -1223,7 +1223,7 @@ Ye[
|
|
|
1223
1223
|
/* States.AFTER_PATH */
|
|
1224
1224
|
]
|
|
1225
1225
|
};
|
|
1226
|
-
|
|
1226
|
+
Be[
|
|
1227
1227
|
1
|
|
1228
1228
|
/* States.IN_PATH */
|
|
1229
1229
|
] = {
|
|
@@ -1244,7 +1244,7 @@ Ye[
|
|
|
1244
1244
|
/* States.AFTER_PATH */
|
|
1245
1245
|
]
|
|
1246
1246
|
};
|
|
1247
|
-
|
|
1247
|
+
Be[
|
|
1248
1248
|
2
|
|
1249
1249
|
/* States.BEFORE_IDENT */
|
|
1250
1250
|
] = {
|
|
@@ -1263,7 +1263,7 @@ Ye[
|
|
|
1263
1263
|
/* Actions.APPEND */
|
|
1264
1264
|
]
|
|
1265
1265
|
};
|
|
1266
|
-
|
|
1266
|
+
Be[
|
|
1267
1267
|
3
|
|
1268
1268
|
/* States.IN_IDENT */
|
|
1269
1269
|
] = {
|
|
@@ -1298,7 +1298,7 @@ Ye[
|
|
|
1298
1298
|
/* Actions.PUSH */
|
|
1299
1299
|
]
|
|
1300
1300
|
};
|
|
1301
|
-
|
|
1301
|
+
Be[
|
|
1302
1302
|
4
|
|
1303
1303
|
/* States.IN_SUB_PATH */
|
|
1304
1304
|
] = {
|
|
@@ -1329,7 +1329,7 @@ Ye[
|
|
|
1329
1329
|
/* Actions.APPEND */
|
|
1330
1330
|
]
|
|
1331
1331
|
};
|
|
1332
|
-
|
|
1332
|
+
Be[
|
|
1333
1333
|
5
|
|
1334
1334
|
/* States.IN_SINGLE_QUOTE */
|
|
1335
1335
|
] = {
|
|
@@ -1345,7 +1345,7 @@ Ye[
|
|
|
1345
1345
|
/* Actions.APPEND */
|
|
1346
1346
|
]
|
|
1347
1347
|
};
|
|
1348
|
-
|
|
1348
|
+
Be[
|
|
1349
1349
|
6
|
|
1350
1350
|
/* States.IN_DOUBLE_QUOTE */
|
|
1351
1351
|
] = {
|
|
@@ -1362,14 +1362,14 @@ Ye[
|
|
|
1362
1362
|
]
|
|
1363
1363
|
};
|
|
1364
1364
|
const Ur = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1365
|
-
function
|
|
1365
|
+
function xr(e) {
|
|
1366
1366
|
return Ur.test(e);
|
|
1367
1367
|
}
|
|
1368
|
-
function
|
|
1368
|
+
function Vr(e) {
|
|
1369
1369
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1370
1370
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1371
1371
|
}
|
|
1372
|
-
function
|
|
1372
|
+
function Gr(e) {
|
|
1373
1373
|
if (e == null)
|
|
1374
1374
|
return "o";
|
|
1375
1375
|
switch (e.charCodeAt(0)) {
|
|
@@ -1394,11 +1394,11 @@ function Wr(e) {
|
|
|
1394
1394
|
}
|
|
1395
1395
|
return "i";
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1397
|
+
function Wr(e) {
|
|
1398
1398
|
const t = e.trim();
|
|
1399
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1399
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : xr(t) ? Vr(t) : "*" + t;
|
|
1400
1400
|
}
|
|
1401
|
-
function
|
|
1401
|
+
function Zr(e) {
|
|
1402
1402
|
const t = [];
|
|
1403
1403
|
let n = -1, s = 0, l = 0, o, d, u, c, h, E, T;
|
|
1404
1404
|
const N = [];
|
|
@@ -1430,7 +1430,7 @@ function Br(e) {
|
|
|
1430
1430
|
/* Actions.APPEND */
|
|
1431
1431
|
]();
|
|
1432
1432
|
else {
|
|
1433
|
-
if (l = 0, d === void 0 || (d =
|
|
1433
|
+
if (l = 0, d === void 0 || (d = Wr(d), d === !1))
|
|
1434
1434
|
return !1;
|
|
1435
1435
|
N[
|
|
1436
1436
|
1
|
|
@@ -1448,27 +1448,27 @@ function Br(e) {
|
|
|
1448
1448
|
}
|
|
1449
1449
|
for (; s !== null; )
|
|
1450
1450
|
if (n++, o = e[n], !(o === "\\" && D())) {
|
|
1451
|
-
if (c =
|
|
1451
|
+
if (c = Gr(o), T = Be[s], h = T[c] || T.l || 8, h === 8 || (s = h[0], h[1] !== void 0 && (E = N[h[1]], E && (u = o, E() === !1))))
|
|
1452
1452
|
return;
|
|
1453
1453
|
if (s === 7)
|
|
1454
1454
|
return t;
|
|
1455
1455
|
}
|
|
1456
1456
|
}
|
|
1457
1457
|
const pn = /* @__PURE__ */ new Map();
|
|
1458
|
-
function
|
|
1458
|
+
function Yr(e, t) {
|
|
1459
1459
|
return se(e) ? e[t] : null;
|
|
1460
1460
|
}
|
|
1461
|
-
function
|
|
1461
|
+
function Br(e, t) {
|
|
1462
1462
|
if (!se(e))
|
|
1463
1463
|
return null;
|
|
1464
1464
|
let n = pn.get(t);
|
|
1465
|
-
if (n || (n =
|
|
1465
|
+
if (n || (n = Zr(t), n && pn.set(t, n)), !n)
|
|
1466
1466
|
return null;
|
|
1467
1467
|
const s = n.length;
|
|
1468
1468
|
let l = e, o = 0;
|
|
1469
1469
|
for (; o < s; ) {
|
|
1470
1470
|
const d = l[n[o]];
|
|
1471
|
-
if (d === void 0 ||
|
|
1471
|
+
if (d === void 0 || me(l))
|
|
1472
1472
|
return null;
|
|
1473
1473
|
l = d, o++;
|
|
1474
1474
|
}
|
|
@@ -1477,9 +1477,9 @@ function Yr(e, t) {
|
|
|
1477
1477
|
const Xr = "10.0.5", Ot = -1, Nt = "en-US", bn = "", vn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1478
1478
|
function Hr() {
|
|
1479
1479
|
return {
|
|
1480
|
-
upper: (e, t) => t === "text" &&
|
|
1481
|
-
lower: (e, t) => t === "text" &&
|
|
1482
|
-
capitalize: (e, t) => t === "text" &&
|
|
1480
|
+
upper: (e, t) => t === "text" && Y(e) ? e.toUpperCase() : t === "vnode" && se(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1481
|
+
lower: (e, t) => t === "text" && Y(e) ? e.toLowerCase() : t === "vnode" && se(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1482
|
+
capitalize: (e, t) => t === "text" && Y(e) ? vn(e) : t === "vnode" && se(e) && "__v_isVNode" in e ? vn(e.children) : e
|
|
1483
1483
|
};
|
|
1484
1484
|
}
|
|
1485
1485
|
let Hn;
|
|
@@ -1504,9 +1504,9 @@ const hn = (e) => {
|
|
|
1504
1504
|
}, qr = () => zn;
|
|
1505
1505
|
let gn = 0;
|
|
1506
1506
|
function eo(e = {}) {
|
|
1507
|
-
const t =
|
|
1507
|
+
const t = me(e.onWarn) ? e.onWarn : xs, n = Y(e.version) ? e.version : Xr, s = Y(e.locale) || me(e.locale) ? e.locale : Nt, l = me(s) ? Nt : s, o = ge(e.fallbackLocale) || ne(e.fallbackLocale) || Y(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, d = ne(e.messages) ? e.messages : kt(l), u = ne(e.datetimeFormats) ? e.datetimeFormats : kt(l), c = ne(e.numberFormats) ? e.numberFormats : kt(l), h = Ee(ie(), e.modifiers, Hr()), E = e.pluralRules || ie(), T = me(e.missing) ? e.missing : null, N = pe(e.missingWarn) || yt(e.missingWarn) ? e.missingWarn : !0, D = pe(e.fallbackWarn) || yt(e.fallbackWarn) ? e.fallbackWarn : !0, w = !!e.fallbackFormat, k = !!e.unresolving, F = me(e.postTranslation) ? e.postTranslation : null, f = ne(e.processor) ? e.processor : null, p = pe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, R = !!e.escapeParameter, i = me(e.messageCompiler) ? e.messageCompiler : Hn, b = me(e.messageResolver) ? e.messageResolver : $n || Yr, g = me(e.localeFallbacker) ? e.localeFallbacker : Jn || Fr, _ = se(e.fallbackContext) ? e.fallbackContext : void 0, M = e, L = se(M.__datetimeFormatters) ? M.__datetimeFormatters : /* @__PURE__ */ new Map(), $ = se(M.__numberFormatters) ? M.__numberFormatters : /* @__PURE__ */ new Map(), G = se(M.__meta) ? M.__meta : {};
|
|
1508
1508
|
gn++;
|
|
1509
|
-
const
|
|
1509
|
+
const m = {
|
|
1510
1510
|
version: n,
|
|
1511
1511
|
cid: gn,
|
|
1512
1512
|
locale: s,
|
|
@@ -1518,26 +1518,26 @@ function eo(e = {}) {
|
|
|
1518
1518
|
missingWarn: N,
|
|
1519
1519
|
fallbackWarn: D,
|
|
1520
1520
|
fallbackFormat: w,
|
|
1521
|
-
unresolving:
|
|
1521
|
+
unresolving: k,
|
|
1522
1522
|
postTranslation: F,
|
|
1523
|
-
processor:
|
|
1523
|
+
processor: f,
|
|
1524
1524
|
warnHtmlMessage: p,
|
|
1525
|
-
escapeParameter:
|
|
1525
|
+
escapeParameter: R,
|
|
1526
1526
|
messageCompiler: i,
|
|
1527
1527
|
messageResolver: b,
|
|
1528
1528
|
localeFallbacker: g,
|
|
1529
1529
|
fallbackContext: _,
|
|
1530
1530
|
onWarn: t,
|
|
1531
|
-
__meta:
|
|
1531
|
+
__meta: G
|
|
1532
1532
|
};
|
|
1533
|
-
return
|
|
1533
|
+
return m.datetimeFormats = u, m.numberFormats = c, m.__datetimeFormatters = L, m.__numberFormatters = $, __INTLIFY_PROD_DEVTOOLS__ && kr(m, n, G), m;
|
|
1534
1534
|
}
|
|
1535
|
-
const
|
|
1535
|
+
const kt = (e) => ({ [e]: ie() });
|
|
1536
1536
|
function Qt(e, t, n, s, l) {
|
|
1537
1537
|
const { missing: o, onWarn: d } = e;
|
|
1538
1538
|
if (o !== null) {
|
|
1539
1539
|
const u = o(e, n, t, l);
|
|
1540
|
-
return
|
|
1540
|
+
return Y(u) ? u : t;
|
|
1541
1541
|
} else
|
|
1542
1542
|
return t;
|
|
1543
1543
|
}
|
|
@@ -1560,24 +1560,24 @@ function no(e, t) {
|
|
|
1560
1560
|
function In(e, ...t) {
|
|
1561
1561
|
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: o, localeFallbacker: d } = e, { __datetimeFormatters: u } = e, [c, h, E, T] = jt(...t), N = pe(E.missingWarn) ? E.missingWarn : e.missingWarn;
|
|
1562
1562
|
pe(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn;
|
|
1563
|
-
const D = !!E.part, w = zt(e, E),
|
|
1563
|
+
const D = !!E.part, w = zt(e, E), k = d(
|
|
1564
1564
|
e,
|
|
1565
1565
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1566
1566
|
l,
|
|
1567
1567
|
w
|
|
1568
1568
|
);
|
|
1569
|
-
if (!
|
|
1569
|
+
if (!Y(c) || c === "")
|
|
1570
1570
|
return new Intl.DateTimeFormat(w, T).format(h);
|
|
1571
|
-
let F = {},
|
|
1572
|
-
const
|
|
1573
|
-
for (let g = 0; g <
|
|
1574
|
-
Qt(e, c,
|
|
1575
|
-
if (!ne(p) || !
|
|
1571
|
+
let F = {}, f, p = null;
|
|
1572
|
+
const R = "datetime format";
|
|
1573
|
+
for (let g = 0; g < k.length && (f = k[g], F = n[f] || {}, p = F[c], !ne(p)); g++)
|
|
1574
|
+
Qt(e, c, f, N, R);
|
|
1575
|
+
if (!ne(p) || !Y(f))
|
|
1576
1576
|
return s ? Ot : c;
|
|
1577
|
-
let i = `${
|
|
1577
|
+
let i = `${f}__${c}`;
|
|
1578
1578
|
Ct(T) || (i = `${i}__${JSON.stringify(T)}`);
|
|
1579
1579
|
let b = u.get(i);
|
|
1580
|
-
return b || (b = new Intl.DateTimeFormat(
|
|
1580
|
+
return b || (b = new Intl.DateTimeFormat(f, Ee({}, p, T)), u.set(i, b)), D ? b.formatToParts(h) : b.format(h);
|
|
1581
1581
|
}
|
|
1582
1582
|
const Qn = [
|
|
1583
1583
|
"localeMatcher",
|
|
@@ -1604,28 +1604,28 @@ const Qn = [
|
|
|
1604
1604
|
function jt(...e) {
|
|
1605
1605
|
const [t, n, s, l] = e, o = ie();
|
|
1606
1606
|
let d = ie(), u;
|
|
1607
|
-
if (
|
|
1607
|
+
if (Y(t)) {
|
|
1608
1608
|
const c = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1609
1609
|
if (!c)
|
|
1610
|
-
throw xe
|
|
1610
|
+
throw Ve(xe.INVALID_ISO_DATE_ARGUMENT);
|
|
1611
1611
|
const h = c[3] ? c[3].trim().startsWith("T") ? `${c[1].trim()}${c[3].trim()}` : `${c[1].trim()}T${c[3].trim()}` : c[1].trim();
|
|
1612
1612
|
u = new Date(h);
|
|
1613
1613
|
try {
|
|
1614
1614
|
u.toISOString();
|
|
1615
1615
|
} catch {
|
|
1616
|
-
throw xe
|
|
1616
|
+
throw Ve(xe.INVALID_ISO_DATE_ARGUMENT);
|
|
1617
1617
|
}
|
|
1618
1618
|
} else if (Ds(t)) {
|
|
1619
1619
|
if (isNaN(t.getTime()))
|
|
1620
|
-
throw xe
|
|
1620
|
+
throw Ve(xe.INVALID_DATE_ARGUMENT);
|
|
1621
1621
|
u = t;
|
|
1622
1622
|
} else if (Ie(t))
|
|
1623
1623
|
u = t;
|
|
1624
1624
|
else
|
|
1625
|
-
throw xe
|
|
1626
|
-
return
|
|
1625
|
+
throw Ve(xe.INVALID_ARGUMENT);
|
|
1626
|
+
return Y(n) ? o.key = n : ne(n) && Object.keys(n).forEach((c) => {
|
|
1627
1627
|
Qn.includes(c) ? d[c] = n[c] : o[c] = n[c];
|
|
1628
|
-
}),
|
|
1628
|
+
}), Y(s) ? o.locale = s : ne(s) && (d = s), ne(l) && (d = l), [o.key || "", u, o, d];
|
|
1629
1629
|
}
|
|
1630
1630
|
function En(e, t, n) {
|
|
1631
1631
|
const s = e;
|
|
@@ -1637,24 +1637,24 @@ function En(e, t, n) {
|
|
|
1637
1637
|
function yn(e, ...t) {
|
|
1638
1638
|
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: o, localeFallbacker: d } = e, { __numberFormatters: u } = e, [c, h, E, T] = Ut(...t), N = pe(E.missingWarn) ? E.missingWarn : e.missingWarn;
|
|
1639
1639
|
pe(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn;
|
|
1640
|
-
const D = !!E.part, w = zt(e, E),
|
|
1640
|
+
const D = !!E.part, w = zt(e, E), k = d(
|
|
1641
1641
|
e,
|
|
1642
1642
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1643
1643
|
l,
|
|
1644
1644
|
w
|
|
1645
1645
|
);
|
|
1646
|
-
if (!
|
|
1646
|
+
if (!Y(c) || c === "")
|
|
1647
1647
|
return new Intl.NumberFormat(w, T).format(h);
|
|
1648
|
-
let F = {},
|
|
1649
|
-
const
|
|
1650
|
-
for (let g = 0; g <
|
|
1651
|
-
Qt(e, c,
|
|
1652
|
-
if (!ne(p) || !
|
|
1648
|
+
let F = {}, f, p = null;
|
|
1649
|
+
const R = "number format";
|
|
1650
|
+
for (let g = 0; g < k.length && (f = k[g], F = n[f] || {}, p = F[c], !ne(p)); g++)
|
|
1651
|
+
Qt(e, c, f, N, R);
|
|
1652
|
+
if (!ne(p) || !Y(f))
|
|
1653
1653
|
return s ? Ot : c;
|
|
1654
|
-
let i = `${
|
|
1654
|
+
let i = `${f}__${c}`;
|
|
1655
1655
|
Ct(T) || (i = `${i}__${JSON.stringify(T)}`);
|
|
1656
1656
|
let b = u.get(i);
|
|
1657
|
-
return b || (b = new Intl.NumberFormat(
|
|
1657
|
+
return b || (b = new Intl.NumberFormat(f, Ee({}, p, T)), u.set(i, b)), D ? b.formatToParts(h) : b.format(h);
|
|
1658
1658
|
}
|
|
1659
1659
|
const qn = [
|
|
1660
1660
|
"localeMatcher",
|
|
@@ -1682,11 +1682,11 @@ function Ut(...e) {
|
|
|
1682
1682
|
const [t, n, s, l] = e, o = ie();
|
|
1683
1683
|
let d = ie();
|
|
1684
1684
|
if (!Ie(t))
|
|
1685
|
-
throw xe
|
|
1685
|
+
throw Ve(xe.INVALID_ARGUMENT);
|
|
1686
1686
|
const u = t;
|
|
1687
|
-
return
|
|
1687
|
+
return Y(n) ? o.key = n : ne(n) && Object.keys(n).forEach((c) => {
|
|
1688
1688
|
qn.includes(c) ? d[c] = n[c] : o[c] = n[c];
|
|
1689
|
-
}),
|
|
1689
|
+
}), Y(s) ? o.locale = s : ne(s) && (d = s), ne(l) && (d = l), [o.key || "", u, o, d];
|
|
1690
1690
|
}
|
|
1691
1691
|
function Nn(e, t, n) {
|
|
1692
1692
|
const s = e;
|
|
@@ -1707,22 +1707,22 @@ function co(e, t) {
|
|
|
1707
1707
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1708
1708
|
}
|
|
1709
1709
|
function uo(e = {}) {
|
|
1710
|
-
const t = e.locale, n = io(e), s = se(e.pluralRules) &&
|
|
1710
|
+
const t = e.locale, n = io(e), s = se(e.pluralRules) && Y(t) && me(e.pluralRules[t]) ? e.pluralRules[t] : Cn, l = se(e.pluralRules) && Y(t) && me(e.pluralRules[t]) ? Cn : void 0, o = (f) => f[s(n, f.length, l)], d = e.list || [], u = (f) => d[f], c = e.named || ie();
|
|
1711
1711
|
Ie(e.pluralIndex) && co(n, c);
|
|
1712
|
-
const h = (
|
|
1713
|
-
function E(
|
|
1714
|
-
const
|
|
1715
|
-
return
|
|
1712
|
+
const h = (f) => c[f];
|
|
1713
|
+
function E(f, p) {
|
|
1714
|
+
const R = me(e.messages) ? e.messages(f, !!p) : se(e.messages) ? e.messages[f] : !1;
|
|
1715
|
+
return R || (e.parent ? e.parent.message(f) : ro);
|
|
1716
1716
|
}
|
|
1717
|
-
const T = (
|
|
1717
|
+
const T = (f) => e.modifiers ? e.modifiers[f] : so, N = ne(e.processor) && me(e.processor.normalize) ? e.processor.normalize : lo, D = ne(e.processor) && me(e.processor.interpolate) ? e.processor.interpolate : ao, w = ne(e.processor) && Y(e.processor.type) ? e.processor.type : oo, F = {
|
|
1718
1718
|
list: u,
|
|
1719
1719
|
named: h,
|
|
1720
1720
|
plural: o,
|
|
1721
|
-
linked: (
|
|
1722
|
-
const [
|
|
1721
|
+
linked: (f, ...p) => {
|
|
1722
|
+
const [R, i] = p;
|
|
1723
1723
|
let b = "text", g = "";
|
|
1724
|
-
p.length === 1 ? se(
|
|
1725
|
-
const _ = E(
|
|
1724
|
+
p.length === 1 ? se(R) ? (g = R.modifier || g, b = R.type || b) : Y(R) && (g = R || g) : p.length === 2 && (Y(R) && (g = R || g), Y(i) && (b = i || b));
|
|
1725
|
+
const _ = E(f, !0)(F), M = (
|
|
1726
1726
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1727
1727
|
b === "vnode" && ge(_) && g ? _[0] : _
|
|
1728
1728
|
);
|
|
@@ -1736,46 +1736,46 @@ function uo(e = {}) {
|
|
|
1736
1736
|
};
|
|
1737
1737
|
return F;
|
|
1738
1738
|
}
|
|
1739
|
-
const Tn = () => "",
|
|
1739
|
+
const Tn = () => "", Se = (e) => me(e);
|
|
1740
1740
|
function On(e, ...t) {
|
|
1741
|
-
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: o, fallbackLocale: d, messages: u } = e, [c, h] =
|
|
1742
|
-
N &&
|
|
1743
|
-
let [
|
|
1741
|
+
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: o, fallbackLocale: d, messages: u } = e, [c, h] = xt(...t), E = pe(h.missingWarn) ? h.missingWarn : e.missingWarn, T = pe(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn, N = pe(h.escapeParameter) ? h.escapeParameter : e.escapeParameter, D = !!h.resolvedMessage, w = Y(h.default) || pe(h.default) ? pe(h.default) ? o ? c : () => c : h.default : n ? o ? c : () => c : null, k = n || w != null && (Y(w) || me(w)), F = zt(e, h);
|
|
1742
|
+
N && mo(h);
|
|
1743
|
+
let [f, p, R] = D ? [
|
|
1744
1744
|
c,
|
|
1745
1745
|
F,
|
|
1746
1746
|
u[F] || ie()
|
|
1747
|
-
] : es(e, c, F, d, T, E), i =
|
|
1748
|
-
if (!D && !(
|
|
1747
|
+
] : es(e, c, F, d, T, E), i = f, b = c;
|
|
1748
|
+
if (!D && !(Y(i) || et(i) || Se(i)) && k && (i = w, b = i), !D && (!(Y(i) || et(i) || Se(i)) || !Y(p)))
|
|
1749
1749
|
return l ? Ot : c;
|
|
1750
1750
|
let g = !1;
|
|
1751
1751
|
const _ = () => {
|
|
1752
1752
|
g = !0;
|
|
1753
|
-
}, M =
|
|
1753
|
+
}, M = Se(i) ? i : ts(e, c, p, i, b, _);
|
|
1754
1754
|
if (g)
|
|
1755
1755
|
return i;
|
|
1756
|
-
const
|
|
1756
|
+
const L = po(e, p, R, h), $ = uo(L), G = fo(e, M, $), m = s ? s(G, c) : G;
|
|
1757
1757
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1758
1758
|
const y = {
|
|
1759
1759
|
timestamp: Date.now(),
|
|
1760
|
-
key:
|
|
1761
|
-
locale: p || (
|
|
1762
|
-
format:
|
|
1763
|
-
message:
|
|
1760
|
+
key: Y(c) ? c : Se(i) ? i.key : "",
|
|
1761
|
+
locale: p || (Se(i) ? i.locale : ""),
|
|
1762
|
+
format: Y(i) ? i : Se(i) ? i.source : "",
|
|
1763
|
+
message: m
|
|
1764
1764
|
};
|
|
1765
1765
|
y.meta = Ee({}, e.__meta, /* @__PURE__ */ Qr() || {}), Mr(y);
|
|
1766
1766
|
}
|
|
1767
|
-
return
|
|
1767
|
+
return m;
|
|
1768
1768
|
}
|
|
1769
|
-
function
|
|
1770
|
-
ge(e.list) ? e.list = e.list.map((t) =>
|
|
1771
|
-
|
|
1769
|
+
function mo(e) {
|
|
1770
|
+
ge(e.list) ? e.list = e.list.map((t) => Y(t) ? an(t) : t) : se(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1771
|
+
Y(e.named[t]) && (e.named[t] = an(e.named[t]));
|
|
1772
1772
|
});
|
|
1773
1773
|
}
|
|
1774
1774
|
function es(e, t, n, s, l, o) {
|
|
1775
1775
|
const { messages: d, onWarn: u, messageResolver: c, localeFallbacker: h } = e, E = h(e, s, n);
|
|
1776
1776
|
let T = ie(), N, D = null;
|
|
1777
1777
|
const w = "translate";
|
|
1778
|
-
for (let
|
|
1778
|
+
for (let k = 0; k < E.length && (N = E[k], T = d[N] || ie(), (D = c(T, t)) === null && (D = T[t]), !(Y(D) || et(D) || Se(D))); k++)
|
|
1779
1779
|
if (!no(N, E)) {
|
|
1780
1780
|
const F = Qt(
|
|
1781
1781
|
e,
|
|
@@ -1791,7 +1791,7 @@ function es(e, t, n, s, l, o) {
|
|
|
1791
1791
|
}
|
|
1792
1792
|
function ts(e, t, n, s, l, o) {
|
|
1793
1793
|
const { messageCompiler: d, warnHtmlMessage: u } = e;
|
|
1794
|
-
if (
|
|
1794
|
+
if (Se(s)) {
|
|
1795
1795
|
const h = s;
|
|
1796
1796
|
return h.locale = h.locale || n, h.key = h.key || t, h;
|
|
1797
1797
|
}
|
|
@@ -1802,15 +1802,15 @@ function ts(e, t, n, s, l, o) {
|
|
|
1802
1802
|
const c = d(s, _o(e, n, l, s, u, o));
|
|
1803
1803
|
return c.locale = n, c.key = t, c.source = s, c;
|
|
1804
1804
|
}
|
|
1805
|
-
function
|
|
1805
|
+
function fo(e, t, n) {
|
|
1806
1806
|
return t(n);
|
|
1807
1807
|
}
|
|
1808
|
-
function
|
|
1808
|
+
function xt(...e) {
|
|
1809
1809
|
const [t, n, s] = e, l = ie();
|
|
1810
|
-
if (!
|
|
1811
|
-
throw xe
|
|
1812
|
-
const o = Ie(t) ? String(t) : (
|
|
1813
|
-
return Ie(n) ? l.plural = n :
|
|
1810
|
+
if (!Y(t) && !Ie(t) && !Se(t) && !et(t))
|
|
1811
|
+
throw Ve(xe.INVALID_ARGUMENT);
|
|
1812
|
+
const o = Ie(t) ? String(t) : (Se(t), t);
|
|
1813
|
+
return Ie(n) ? l.plural = n : Y(n) ? l.default = n : ne(n) && !Ct(n) ? l.named = n : ge(n) && (l.list = n), Ie(s) ? l.plural = s : Y(s) ? l.default = s : ne(s) && Ee(l, s), [o, l];
|
|
1814
1814
|
}
|
|
1815
1815
|
function _o(e, t, n, s, l, o) {
|
|
1816
1816
|
return {
|
|
@@ -1829,8 +1829,8 @@ function po(e, t, n, s) {
|
|
|
1829
1829
|
modifiers: l,
|
|
1830
1830
|
pluralRules: o,
|
|
1831
1831
|
messages: (D, w) => {
|
|
1832
|
-
let
|
|
1833
|
-
if (
|
|
1832
|
+
let k = d(n, D);
|
|
1833
|
+
if (k == null && (E || w)) {
|
|
1834
1834
|
const [, , F] = es(
|
|
1835
1835
|
E || e,
|
|
1836
1836
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
@@ -1840,21 +1840,21 @@ function po(e, t, n, s) {
|
|
|
1840
1840
|
c,
|
|
1841
1841
|
h
|
|
1842
1842
|
);
|
|
1843
|
-
|
|
1843
|
+
k = d(F, D);
|
|
1844
1844
|
}
|
|
1845
|
-
if (
|
|
1845
|
+
if (Y(k) || et(k)) {
|
|
1846
1846
|
let F = !1;
|
|
1847
|
-
const p = ts(e, D, t,
|
|
1847
|
+
const p = ts(e, D, t, k, D, () => {
|
|
1848
1848
|
F = !0;
|
|
1849
1849
|
});
|
|
1850
1850
|
return F ? Tn : p;
|
|
1851
|
-
} else return
|
|
1851
|
+
} else return Se(k) ? k : Tn;
|
|
1852
1852
|
}
|
|
1853
1853
|
};
|
|
1854
1854
|
return e.processor && (N.processor = e.processor), s.list && (N.list = s.list), s.named && (N.named = s.named), Ie(s.plural) && (N.pluralIndex = s.plural), N;
|
|
1855
1855
|
}
|
|
1856
1856
|
dr();
|
|
1857
|
-
var bo = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_c25f8b56-b0d8-4cb5-8f0f-86eb310fca6b", DOTNET_NOLOGO: "1", USER: "runner", npm_config_always_auth: "", npm_config_user_agent: "pnpm/10.8.0 npm/? node/v24.5.0 linux x64", CI: "true", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_c25f8b56-b0d8-4cb5-8f0f-86eb310fca6b", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.6.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", 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: "1813", ACTIONS_ORCHESTRATION_ID: "9d4ee51c-706e-4152-a80d-0e708c1e4013.publish.publish.__default", npm_config_engine_strict: "true", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260720.247.2", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_c25f8b56-b0d8-4cb5-8f0f-86eb310fca6b", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:13045", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.12/x64", GITHUB_RUN_ID: "31373612536", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "f345aad230518befdd63ab015c8404486b57b9af", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.5/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/main", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6M31dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3ODYzNzU0MzMsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc4NjM1MzIzMywiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjQ0MmRkMjY2LTIxZGQtNTQ1NS1hOWE1LTYwZjc0M2Q5MWFmOSIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiODBlYjQwZjcxZWJjZjBhNGMzZmM5YzllMDI4YTVjNmQ3ZDNlY2YzNiIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc4NjM1MjkzMywib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI5MzQwNzg1NjI4NFwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiODBlYjQwZjcxZWJjZjBhNGMzZmM5YzllMDI4YTVjNmQ3ZDNlY2YzNlwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL21haW5cIixcInJlZl9wcm90ZWN0ZWRcIjpcInRydWVcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIzMTM3MzYxMjUzNlwiLFwicnVuX251bWJlclwiOlwiMTU0XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiZjM0NWFhZDIzMDUxOGJlZmRkNjNhYjAxNWM4NDA0NDg2YjU3YjlhZlwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvbWFpblwiLFwid29ya2Zsb3dfc2hhXCI6XCJmMzQ1YWFkMjMwNTE4YmVmZGQ2M2FiMDE1Yzg0MDQ0ODZiNTdiOWFmXCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9tYWluIiwib3JjaF9pZCI6IjlkNGVlNTFjLTcwNmUtNDE1Mi1hODBkLTBlNzA4YzFlNDAxMy5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiOWQ0ZWU1MWMtNzA2ZS00MTUyLWE4MGQtMGU3MDhjMWU0MDEzIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMzEzNzM2MTI1MzYiLCJydW5fbnVtYmVyIjoiMTU0IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDEwNzIwNiIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjlkNGVlNTFjLTcwNmUtNDE1Mi1hODBkLTBlNzA4YzFlNDAxMzo0NDJkZDI2Ni0yMWRkLTU0NTUtYTlhNS02MGY3NDNkOTFhZjkgQWN0aW9ucy5SdW5uZXI6OWQ0ZWU1MWMtNzA2ZS00MTUyLWE4MGQtMGU3MDhjMWU0MDEzOjQ0MmRkMjY2LTIxZGQtNTQ1NS1hOWE1LTYwZjc0M2Q5MWFmOSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czo5ZDRlZTUxYy03MDZlLTQxNTItYTgwZC0wZTcwOGMxZTQwMTM6NDQyZGQyNjYtMjFkZC01NDU1LWE5YTUtNjBmNzQzZDkxYWY5IGdlbmVyYXRlX2lkX3Rva2VuOjlkNGVlNTFjLTcwNmUtNDE1Mi1hODBkLTBlNzA4YzFlNDAxMzo0NDJkZDI2Ni0yMWRkLTU0NTUtYTlhNS02MGY3NDNkOTFhZjkgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiJmMzQ1YWFkMjMwNTE4YmVmZGQ2M2FiMDE1Yzg0MDQ0ODZiNTdiOWFmIiwidHJ1c3RfdGllciI6IjEifQ.kSuHfi7XwAVTj1bB6OzMnbWHr9fqgv_YkaIRl1wSYGwZOVjn1UoW_rZqxOuHMLr5vra2Gatd37eEvRQdQWYzQ_-Tb6qAnuUvCCbq-eLkw6_okG06XjgTamrijcezlZnKoh4FJNT79bm341-wk-pfrbBjjVkqN9Lo2HHszHIr3h3zK5IsukAyEKJ1p262nDh7UbMPbT-INyvyDgsY2xuKbfgaTQLIgYjiLDSKMZQ_mpo4xMdRk8Jc6Gd4GMbLYvuwKUAdJNx5KlLVKIcb0O1Pn5zpNv913Sg2kSrhRP95ES_75Oe__KtvI0Bruy6LBn3C2jBXU7aEWLa-y38gASmc-A", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/24.5.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_1a4d51f8-c70d-4382-9d0d-74486feadf47", INVOCATION_ID: "df9520912bf744b5a6e63313e08b5262", 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: "154", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000107206", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.2.0", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "true", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", GITHUB_SHA: "f345aad230518befdd63ab015c8404486b57b9af", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_c25f8b56-b0d8-4cb5-8f0f-86eb310fca6b", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-3-azure-eastus.actions.githubusercontent.com/217//idtoken/9d4ee51c-706e-4152-a80d-0e708c1e4013/442dd266-21dd-5455-a9a5-60f743d91af9?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_c25f8b56-b0d8-4cb5-8f0f-86eb310fca6b", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_c25f8b56-b0d8-4cb5-8f0f-86eb310fca6b", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.1", CHROME_BIN: "/usr/bin/google-chrome", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_c25f8b56-b0d8-4cb5-8f0f-86eb310fca6b", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1857
|
+
var bo = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_b490eea7-a25a-4cbd-a700-05c34882295b", DOTNET_NOLOGO: "1", USER: "runner", npm_config_always_auth: "", npm_config_user_agent: "pnpm/10.8.0 npm/? node/v24.5.0 linux x64", CI: "true", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_b490eea7-a25a-4cbd-a700-05c34882295b", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.6.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", 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: "1784", ACTIONS_ORCHESTRATION_ID: "13bebc7e-eedf-4d92-bde0-4e874882123f.publish.publish.__default", npm_config_engine_strict: "true", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260720.247.2", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_b490eea7-a25a-4cbd-a700-05c34882295b", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:11386", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.12/x64", GITHUB_RUN_ID: "31559891173", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "c9b009a0f827b7c23d1784c3d8e0029117ca83ce", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.5/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/KDI-4965-audit-log-trace", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9LREktNDk2NS1hdWRpdC1sb2ctdHJhY2VcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3ODY1MjcxNzgsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc4NjUwNDk3OCwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImZlMjBhNzU5LTQ3MTktNTcwMC05YThmLTk4YWIzNjYwYWNlNCIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiNDdlYTMxODk5N2MxZGQwMjhjZTRmNGRiMzcyMmIxOWIxZTJlM2M4MyIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc4NjUwNDY3OCwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI5Mzk5OTg4ODUzNVwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiNDdlYTMxODk5N2MxZGQwMjhjZTRmNGRiMzcyMmIxOWIxZTJlM2M4M1wiLFwicmVmXCI6XCJyZWZzL2hlYWRzL0tESS00OTY1LWF1ZGl0LWxvZy10cmFjZVwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIzMTU1OTg5MTE3M1wiLFwicnVuX251bWJlclwiOlwiMTU1XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiYzliMDA5YTBmODI3YjdjMjNkMTc4NGMzZDhlMDAyOTExN2NhODNjZVwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvS0RJLTQ5NjUtYXVkaXQtbG9nLXRyYWNlXCIsXCJ3b3JrZmxvd19zaGFcIjpcImM5YjAwOWEwZjgyN2I3YzIzZDE3ODRjM2Q4ZTAwMjkxMTdjYTgzY2VcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL2hybS1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL0tESS00OTY1LWF1ZGl0LWxvZy10cmFjZSIsIm9yY2hfaWQiOiIxM2JlYmM3ZS1lZWRmLTRkOTItYmRlMC00ZTg3NDg4MjEyM2YucHVibGlzaC5wdWJsaXNoLl9fZGVmYXVsdCIsIm93bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwicGxhbl9pZCI6IjEzYmViYzdlLWVlZGYtNGQ5Mi1iZGUwLTRlODc0ODgyMTIzZiIsInJlcG9zaXRvcnlfaWQiOiIxMTI0NjcyMjM1IiwicmVwb3NpdG9yeV9vd25lcl9pZCI6IjU0ODMxNTE1IiwicmVwb3NpdG9yeV92aXNpYmlsaXR5IjoicHJpdmF0ZSIsInJ1bl9pZCI6IjMxNTU5ODkxMTczIiwicnVuX251bWJlciI6IjE1NSIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDAxMDgzNTkiLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czoxM2JlYmM3ZS1lZWRmLTRkOTItYmRlMC00ZTg3NDg4MjEyM2Y6ZmUyMGE3NTktNDcxOS01NzAwLTlhOGYtOThhYjM2NjBhY2U0IEFjdGlvbnMuUnVubmVyOjEzYmViYzdlLWVlZGYtNGQ5Mi1iZGUwLTRlODc0ODgyMTIzZjpmZTIwYTc1OS00NzE5LTU3MDAtOWE4Zi05OGFiMzY2MGFjZTQgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6MTNiZWJjN2UtZWVkZi00ZDkyLWJkZTAtNGU4NzQ4ODIxMjNmOmZlMjBhNzU5LTQ3MTktNTcwMC05YThmLTk4YWIzNjYwYWNlNCBnZW5lcmF0ZV9pZF90b2tlbjoxM2JlYmM3ZS1lZWRmLTRkOTItYmRlMC00ZTg3NDg4MjEyM2Y6ZmUyMGE3NTktNDcxOS01NzAwLTlhOGYtOThhYjM2NjBhY2U0IEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiYzliMDA5YTBmODI3YjdjMjNkMTc4NGMzZDhlMDAyOTExN2NhODNjZSIsInRydXN0X3RpZXIiOiIxIn0.F94Sx2n_5bFGxjDiZB1q-BzYFj41brG0K6PZgrPLIIkUeedklZGT9zD-_CaSprQi8FN-RzvF5DrPpLi4kff_A-cqn6JjRjCypHGh_JRiqYhA4qgzxyNjvDHrPt-_PMnm2vxTyl_lLfcMByU6bA6vw6byB7jb98ZxMUDwmcJQmTSGc-Xc02N-uFEsB11rty_RlgcrXYVe-EcTv4T_2gFdActd72fXKcU8Te0eAeH4HfyeNb90zsDrCvp6M8df23WGOdmrjqgZoKrGZ7cOui93mGFSBCloJfx86LJRrpYxe-1l57oehQfietQqg4A4BCqoEVlkIfZjpKGGX_jcM8NJxw", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/24.5.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_fecd2537-ba41-4823-af97-5e3549b104cf", INVOCATION_ID: "65ac2ed390ce4d82ab4aa2262f7a0343", 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: "155", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000108359", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "KDI-4965-audit-log-trace", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.2.1-dev", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", GITHUB_SHA: "c9b009a0f827b7c23d1784c3d8e0029117ca83ce", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/KDI-4965-audit-log-trace", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_b490eea7-a25a-4cbd-a700-05c34882295b", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-2-azure-eastus.actions.githubusercontent.com/216//idtoken/13bebc7e-eedf-4d92-bde0-4e874882123f/fe20a759-4719-5700-9a8f-98ab3660ace4?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_b490eea7-a25a-4cbd-a700-05c34882295b", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_b490eea7-a25a-4cbd-a700-05c34882295b", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.1", CHROME_BIN: "/usr/bin/google-chrome", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_b490eea7-a25a-4cbd-a700-05c34882295b", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1858
1858
|
const vo = "10.0.5";
|
|
1859
1859
|
function ho() {
|
|
1860
1860
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Xe().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Xe().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Xe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Xe().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
@@ -1875,7 +1875,7 @@ const tt = {
|
|
|
1875
1875
|
function ct(e, ...t) {
|
|
1876
1876
|
return Tt(e, null, void 0);
|
|
1877
1877
|
}
|
|
1878
|
-
const
|
|
1878
|
+
const Vt = /* @__PURE__ */ He("__translateVNode"), Gt = /* @__PURE__ */ He("__datetimeParts"), Wt = /* @__PURE__ */ He("__numberParts"), go = He("__setPluralRules"), ns = /* @__PURE__ */ He("__injectWithOption"), Zt = /* @__PURE__ */ He("__dispose");
|
|
1879
1879
|
function ut(e) {
|
|
1880
1880
|
if (!se(e))
|
|
1881
1881
|
return e;
|
|
@@ -1904,7 +1904,7 @@ function ss(e, t) {
|
|
|
1904
1904
|
const { locale: c, resource: h } = u;
|
|
1905
1905
|
c ? (d[c] = d[c] || ie(), Et(h, d[c])) : Et(h, d);
|
|
1906
1906
|
} else
|
|
1907
|
-
|
|
1907
|
+
Y(u) && Et(JSON.parse(u), d);
|
|
1908
1908
|
}), l == null && o)
|
|
1909
1909
|
for (const u in d)
|
|
1910
1910
|
Me(d, u) && ut(d[u]);
|
|
@@ -1938,30 +1938,30 @@ function Io(e, t, n) {
|
|
|
1938
1938
|
}
|
|
1939
1939
|
}
|
|
1940
1940
|
}
|
|
1941
|
-
function
|
|
1942
|
-
return
|
|
1941
|
+
function Sn(e) {
|
|
1942
|
+
return fe(ms, null, e, 0);
|
|
1943
1943
|
}
|
|
1944
|
-
const
|
|
1944
|
+
const Rn = "__INTLIFY_META__", Ln = () => [], Eo = () => !1;
|
|
1945
1945
|
let An = 0;
|
|
1946
|
-
function
|
|
1947
|
-
return (t, n, s, l) => e(n, s,
|
|
1946
|
+
function kn(e) {
|
|
1947
|
+
return (t, n, s, l) => e(n, s, Bt() || void 0, l);
|
|
1948
1948
|
}
|
|
1949
1949
|
const yo = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1950
|
-
const e =
|
|
1950
|
+
const e = Bt();
|
|
1951
1951
|
let t = null;
|
|
1952
|
-
return e && (t = rs(e)[
|
|
1952
|
+
return e && (t = rs(e)[Rn]) ? { [Rn]: t } : null;
|
|
1953
1953
|
};
|
|
1954
1954
|
function No(e = {}) {
|
|
1955
1955
|
const { __root: t, __injectWithOption: n } = e, s = t === void 0, l = e.flatJson, o = on ? dt : us;
|
|
1956
1956
|
let d = pe(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1957
1957
|
const u = o(
|
|
1958
1958
|
// prettier-ignore
|
|
1959
|
-
t && d ? t.locale.value :
|
|
1959
|
+
t && d ? t.locale.value : Y(e.locale) ? e.locale : Nt
|
|
1960
1960
|
), c = o(
|
|
1961
1961
|
// prettier-ignore
|
|
1962
|
-
t && d ? t.fallbackLocale.value :
|
|
1962
|
+
t && d ? t.fallbackLocale.value : Y(e.fallbackLocale) || ge(e.fallbackLocale) || ne(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
1963
1963
|
), h = o(ss(u.value, e)), E = o(ne(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), T = o(ne(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
|
|
1964
|
-
let N = t ? t.missingWarn : pe(e.missingWarn) || yt(e.missingWarn) ? e.missingWarn : !0, D = t ? t.fallbackWarn : pe(e.fallbackWarn) || yt(e.fallbackWarn) ? e.fallbackWarn : !0, w = t ? t.fallbackRoot : pe(e.fallbackRoot) ? e.fallbackRoot : !0,
|
|
1964
|
+
let N = t ? t.missingWarn : pe(e.missingWarn) || yt(e.missingWarn) ? e.missingWarn : !0, D = t ? t.fallbackWarn : pe(e.fallbackWarn) || yt(e.fallbackWarn) ? e.fallbackWarn : !0, w = t ? t.fallbackRoot : pe(e.fallbackRoot) ? e.fallbackRoot : !0, k = !!e.fallbackFormat, F = me(e.missing) ? e.missing : null, f = me(e.missing) ? kn(e.missing) : null, p = me(e.postTranslation) ? e.postTranslation : null, R = t ? t.warnHtmlMessage : pe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, i = !!e.escapeParameter;
|
|
1965
1965
|
const b = t ? t.modifiers : ne(e.modifiers) ? e.modifiers : {};
|
|
1966
1966
|
let g = e.pluralRules || t && t.pluralRules, _;
|
|
1967
1967
|
_ = (() => {
|
|
@@ -1973,23 +1973,23 @@ function No(e = {}) {
|
|
|
1973
1973
|
messages: h.value,
|
|
1974
1974
|
modifiers: b,
|
|
1975
1975
|
pluralRules: g,
|
|
1976
|
-
missing:
|
|
1976
|
+
missing: f === null ? void 0 : f,
|
|
1977
1977
|
missingWarn: N,
|
|
1978
1978
|
fallbackWarn: D,
|
|
1979
|
-
fallbackFormat:
|
|
1979
|
+
fallbackFormat: k,
|
|
1980
1980
|
unresolving: !0,
|
|
1981
1981
|
postTranslation: p === null ? void 0 : p,
|
|
1982
|
-
warnHtmlMessage:
|
|
1982
|
+
warnHtmlMessage: R,
|
|
1983
1983
|
escapeParameter: i,
|
|
1984
1984
|
messageResolver: e.messageResolver,
|
|
1985
1985
|
messageCompiler: e.messageCompiler,
|
|
1986
1986
|
__meta: { framework: "vue" }
|
|
1987
1987
|
};
|
|
1988
1988
|
v.datetimeFormats = E.value, v.numberFormats = T.value, v.__datetimeFormatters = ne(_) ? _.__datetimeFormatters : void 0, v.__numberFormatters = ne(_) ? _.__numberFormatters : void 0;
|
|
1989
|
-
const
|
|
1990
|
-
return s && hn(
|
|
1989
|
+
const S = eo(v);
|
|
1990
|
+
return s && hn(S), S;
|
|
1991
1991
|
})(), ot(_, u.value, c.value);
|
|
1992
|
-
function
|
|
1992
|
+
function L() {
|
|
1993
1993
|
return [
|
|
1994
1994
|
u.value,
|
|
1995
1995
|
c.value,
|
|
@@ -2003,26 +2003,26 @@ function No(e = {}) {
|
|
|
2003
2003
|
set: (v) => {
|
|
2004
2004
|
u.value = v, _.locale = u.value;
|
|
2005
2005
|
}
|
|
2006
|
-
}),
|
|
2006
|
+
}), G = ee({
|
|
2007
2007
|
get: () => c.value,
|
|
2008
2008
|
set: (v) => {
|
|
2009
2009
|
c.value = v, _.fallbackLocale = c.value, ot(_, u.value, v);
|
|
2010
2010
|
}
|
|
2011
|
-
}),
|
|
2011
|
+
}), m = ee(() => h.value), y = /* @__PURE__ */ ee(() => E.value), x = /* @__PURE__ */ ee(() => T.value);
|
|
2012
2012
|
function U() {
|
|
2013
|
-
return
|
|
2013
|
+
return me(p) ? p : null;
|
|
2014
2014
|
}
|
|
2015
2015
|
function P(v) {
|
|
2016
2016
|
p = v, _.postTranslation = v;
|
|
2017
2017
|
}
|
|
2018
|
-
function
|
|
2018
|
+
function W() {
|
|
2019
2019
|
return F;
|
|
2020
2020
|
}
|
|
2021
|
-
function
|
|
2022
|
-
v !== null && (
|
|
2021
|
+
function V(v) {
|
|
2022
|
+
v !== null && (f = kn(v)), F = v, _.missing = f;
|
|
2023
2023
|
}
|
|
2024
|
-
const
|
|
2025
|
-
|
|
2024
|
+
const B = (v, S, K, de, Te, mt) => {
|
|
2025
|
+
L();
|
|
2026
2026
|
let $e;
|
|
2027
2027
|
try {
|
|
2028
2028
|
bo.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (_.fallbackContext = t ? qr() : void 0), $e = v(_);
|
|
@@ -2031,31 +2031,31 @@ function No(e = {}) {
|
|
|
2031
2031
|
}
|
|
2032
2032
|
if (K !== "translate exists" && // for not `te` (e.g `t`)
|
|
2033
2033
|
Ie($e) && $e === Ot || K === "translate exists" && !$e) {
|
|
2034
|
-
const [is, Nl] =
|
|
2034
|
+
const [is, Nl] = S();
|
|
2035
2035
|
return t && w ? de(t) : Te(is);
|
|
2036
2036
|
} else {
|
|
2037
|
-
if (
|
|
2037
|
+
if (mt($e))
|
|
2038
2038
|
return $e;
|
|
2039
2039
|
throw ct(tt.UNEXPECTED_RETURN_TYPE);
|
|
2040
2040
|
}
|
|
2041
2041
|
};
|
|
2042
2042
|
function J(...v) {
|
|
2043
|
-
return
|
|
2043
|
+
return B((S) => Reflect.apply(On, null, [S, ...v]), () => xt(...v), "translate", (S) => Reflect.apply(S.t, S, [...v]), (S) => S, (S) => Y(S));
|
|
2044
2044
|
}
|
|
2045
2045
|
function oe(...v) {
|
|
2046
|
-
const [
|
|
2046
|
+
const [S, K, de] = v;
|
|
2047
2047
|
if (de && !se(de))
|
|
2048
2048
|
throw ct(tt.INVALID_ARGUMENT);
|
|
2049
|
-
return J(
|
|
2049
|
+
return J(S, K, Ee({ resolvedMessage: !0 }, de || {}));
|
|
2050
2050
|
}
|
|
2051
2051
|
function Q(...v) {
|
|
2052
|
-
return
|
|
2052
|
+
return B((S) => Reflect.apply(In, null, [S, ...v]), () => jt(...v), "datetime format", (S) => Reflect.apply(S.d, S, [...v]), () => bn, (S) => Y(S));
|
|
2053
2053
|
}
|
|
2054
2054
|
function re(...v) {
|
|
2055
|
-
return
|
|
2055
|
+
return B((S) => Reflect.apply(yn, null, [S, ...v]), () => Ut(...v), "number format", (S) => Reflect.apply(S.n, S, [...v]), () => bn, (S) => Y(S));
|
|
2056
2056
|
}
|
|
2057
2057
|
function ce(v) {
|
|
2058
|
-
return v.map((
|
|
2058
|
+
return v.map((S) => Y(S) || Ie(S) || pe(S) ? Sn(String(S)) : S);
|
|
2059
2059
|
}
|
|
2060
2060
|
const _e = {
|
|
2061
2061
|
normalize: ce,
|
|
@@ -2063,87 +2063,87 @@ function No(e = {}) {
|
|
|
2063
2063
|
type: "vnode"
|
|
2064
2064
|
};
|
|
2065
2065
|
function ye(...v) {
|
|
2066
|
-
return
|
|
2066
|
+
return B((S) => {
|
|
2067
2067
|
let K;
|
|
2068
|
-
const de =
|
|
2068
|
+
const de = S;
|
|
2069
2069
|
try {
|
|
2070
2070
|
de.processor = _e, K = Reflect.apply(On, null, [de, ...v]);
|
|
2071
2071
|
} finally {
|
|
2072
2072
|
de.processor = null;
|
|
2073
2073
|
}
|
|
2074
2074
|
return K;
|
|
2075
|
-
}, () =>
|
|
2075
|
+
}, () => xt(...v), "translate", (S) => S[Vt](...v), (S) => [Sn(S)], (S) => ge(S));
|
|
2076
2076
|
}
|
|
2077
2077
|
function je(...v) {
|
|
2078
|
-
return
|
|
2078
|
+
return B((S) => Reflect.apply(yn, null, [S, ...v]), () => Ut(...v), "number format", (S) => S[Wt](...v), Ln, (S) => Y(S) || ge(S));
|
|
2079
2079
|
}
|
|
2080
2080
|
function te(...v) {
|
|
2081
|
-
return
|
|
2081
|
+
return B((S) => Reflect.apply(In, null, [S, ...v]), () => jt(...v), "datetime format", (S) => S[Gt](...v), Ln, (S) => Y(S) || ge(S));
|
|
2082
2082
|
}
|
|
2083
2083
|
function be(v) {
|
|
2084
2084
|
g = v, _.pluralRules = g;
|
|
2085
2085
|
}
|
|
2086
|
-
function st(v,
|
|
2087
|
-
return
|
|
2086
|
+
function st(v, S) {
|
|
2087
|
+
return B(() => {
|
|
2088
2088
|
if (!v)
|
|
2089
2089
|
return !1;
|
|
2090
|
-
const K =
|
|
2091
|
-
return et(Te) ||
|
|
2092
|
-
}, () => [v], "translate exists", (K) => Reflect.apply(K.te, K, [v,
|
|
2090
|
+
const K = Y(S) ? S : u.value, de = Ge(K), Te = _.messageResolver(de, v);
|
|
2091
|
+
return et(Te) || Se(Te) || Y(Te);
|
|
2092
|
+
}, () => [v], "translate exists", (K) => Reflect.apply(K.te, K, [v, S]), Eo, (K) => pe(K));
|
|
2093
2093
|
}
|
|
2094
2094
|
function rt(v) {
|
|
2095
|
-
let
|
|
2095
|
+
let S = null;
|
|
2096
2096
|
const K = Xn(_, c.value, u.value);
|
|
2097
2097
|
for (let de = 0; de < K.length; de++) {
|
|
2098
|
-
const Te = h.value[K[de]] || {},
|
|
2099
|
-
if (
|
|
2100
|
-
|
|
2098
|
+
const Te = h.value[K[de]] || {}, mt = _.messageResolver(Te, v);
|
|
2099
|
+
if (mt != null) {
|
|
2100
|
+
S = mt;
|
|
2101
2101
|
break;
|
|
2102
2102
|
}
|
|
2103
2103
|
}
|
|
2104
|
-
return
|
|
2104
|
+
return S;
|
|
2105
2105
|
}
|
|
2106
|
-
function
|
|
2107
|
-
const
|
|
2108
|
-
return
|
|
2106
|
+
function Re(v) {
|
|
2107
|
+
const S = rt(v);
|
|
2108
|
+
return S ?? (t ? t.tm(v) || {} : {});
|
|
2109
2109
|
}
|
|
2110
|
-
function
|
|
2110
|
+
function Ge(v) {
|
|
2111
2111
|
return h.value[v] || {};
|
|
2112
2112
|
}
|
|
2113
|
-
function O(v,
|
|
2113
|
+
function O(v, S) {
|
|
2114
2114
|
if (l) {
|
|
2115
|
-
const K = { [v]:
|
|
2115
|
+
const K = { [v]: S };
|
|
2116
2116
|
for (const de in K)
|
|
2117
2117
|
Me(K, de) && ut(K[de]);
|
|
2118
|
-
|
|
2118
|
+
S = K[v];
|
|
2119
2119
|
}
|
|
2120
|
-
h.value[v] =
|
|
2120
|
+
h.value[v] = S, _.messages = h.value;
|
|
2121
2121
|
}
|
|
2122
|
-
function C(v,
|
|
2122
|
+
function C(v, S) {
|
|
2123
2123
|
h.value[v] = h.value[v] || {};
|
|
2124
|
-
const K = { [v]:
|
|
2124
|
+
const K = { [v]: S };
|
|
2125
2125
|
if (l)
|
|
2126
2126
|
for (const de in K)
|
|
2127
2127
|
Me(K, de) && ut(K[de]);
|
|
2128
|
-
|
|
2128
|
+
S = K[v], Et(S, h.value[v]), _.messages = h.value;
|
|
2129
2129
|
}
|
|
2130
2130
|
function A(v) {
|
|
2131
2131
|
return E.value[v] || {};
|
|
2132
2132
|
}
|
|
2133
|
-
function r(v,
|
|
2134
|
-
E.value[v] =
|
|
2133
|
+
function r(v, S) {
|
|
2134
|
+
E.value[v] = S, _.datetimeFormats = E.value, En(_, v, S);
|
|
2135
2135
|
}
|
|
2136
|
-
function a(v,
|
|
2137
|
-
E.value[v] = Ee(E.value[v] || {},
|
|
2136
|
+
function a(v, S) {
|
|
2137
|
+
E.value[v] = Ee(E.value[v] || {}, S), _.datetimeFormats = E.value, En(_, v, S);
|
|
2138
2138
|
}
|
|
2139
2139
|
function I(v) {
|
|
2140
2140
|
return T.value[v] || {};
|
|
2141
2141
|
}
|
|
2142
|
-
function j(v,
|
|
2143
|
-
T.value[v] =
|
|
2142
|
+
function j(v, S) {
|
|
2143
|
+
T.value[v] = S, _.numberFormats = T.value, Nn(_, v, S);
|
|
2144
2144
|
}
|
|
2145
|
-
function
|
|
2146
|
-
T.value[v] = Ee(T.value[v] || {},
|
|
2145
|
+
function Z(v, S) {
|
|
2146
|
+
T.value[v] = Ee(T.value[v] || {}, S), _.numberFormats = T.value, Nn(_, v, S);
|
|
2147
2147
|
}
|
|
2148
2148
|
An++, t && on && (wt(t.locale, (v) => {
|
|
2149
2149
|
d && (u.value = v, _.locale = v, ot(_, u.value, c.value));
|
|
@@ -2153,7 +2153,7 @@ function No(e = {}) {
|
|
|
2153
2153
|
const X = {
|
|
2154
2154
|
id: An,
|
|
2155
2155
|
locale: $,
|
|
2156
|
-
fallbackLocale:
|
|
2156
|
+
fallbackLocale: G,
|
|
2157
2157
|
get inheritLocale() {
|
|
2158
2158
|
return d;
|
|
2159
2159
|
},
|
|
@@ -2163,7 +2163,7 @@ function No(e = {}) {
|
|
|
2163
2163
|
get availableLocales() {
|
|
2164
2164
|
return Object.keys(h.value).sort();
|
|
2165
2165
|
},
|
|
2166
|
-
messages:
|
|
2166
|
+
messages: m,
|
|
2167
2167
|
get modifiers() {
|
|
2168
2168
|
return b;
|
|
2169
2169
|
},
|
|
@@ -2192,16 +2192,16 @@ function No(e = {}) {
|
|
|
2192
2192
|
w = v;
|
|
2193
2193
|
},
|
|
2194
2194
|
get fallbackFormat() {
|
|
2195
|
-
return
|
|
2195
|
+
return k;
|
|
2196
2196
|
},
|
|
2197
2197
|
set fallbackFormat(v) {
|
|
2198
|
-
|
|
2198
|
+
k = v, _.fallbackFormat = k;
|
|
2199
2199
|
},
|
|
2200
2200
|
get warnHtmlMessage() {
|
|
2201
|
-
return
|
|
2201
|
+
return R;
|
|
2202
2202
|
},
|
|
2203
2203
|
set warnHtmlMessage(v) {
|
|
2204
|
-
|
|
2204
|
+
R = v, _.warnHtmlMessage = v;
|
|
2205
2205
|
},
|
|
2206
2206
|
get escapeParameter() {
|
|
2207
2207
|
return i;
|
|
@@ -2210,16 +2210,16 @@ function No(e = {}) {
|
|
|
2210
2210
|
i = v, _.escapeParameter = v;
|
|
2211
2211
|
},
|
|
2212
2212
|
t: J,
|
|
2213
|
-
getLocaleMessage:
|
|
2213
|
+
getLocaleMessage: Ge,
|
|
2214
2214
|
setLocaleMessage: O,
|
|
2215
2215
|
mergeLocaleMessage: C,
|
|
2216
2216
|
getPostTranslationHandler: U,
|
|
2217
2217
|
setPostTranslationHandler: P,
|
|
2218
|
-
getMissingHandler:
|
|
2219
|
-
setMissingHandler:
|
|
2218
|
+
getMissingHandler: W,
|
|
2219
|
+
setMissingHandler: V,
|
|
2220
2220
|
[go]: be
|
|
2221
2221
|
};
|
|
2222
|
-
return X.datetimeFormats = y, X.numberFormats =
|
|
2222
|
+
return X.datetimeFormats = y, X.numberFormats = x, X.rt = oe, X.te = st, X.tm = Re, X.d = Q, X.n = re, X.getDateTimeFormat = A, X.setDateTimeFormat = r, X.mergeDateTimeFormat = a, X.getNumberFormat = I, X.setNumberFormat = j, X.mergeNumberFormat = Z, X[ns] = n, X[Vt] = ye, X[Gt] = te, X[Wt] = je, X;
|
|
2223
2223
|
}
|
|
2224
2224
|
const qt = {
|
|
2225
2225
|
tag: {
|
|
@@ -2243,14 +2243,14 @@ function Co({ slots: e }, t) {
|
|
|
2243
2243
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((s, l) => [
|
|
2244
2244
|
...s,
|
|
2245
2245
|
// prettier-ignore
|
|
2246
|
-
...l.type ===
|
|
2246
|
+
...l.type === Le ? l.children : [l]
|
|
2247
2247
|
], []) : t.reduce((n, s) => {
|
|
2248
2248
|
const l = e[s];
|
|
2249
2249
|
return l && (n[s] = l()), n;
|
|
2250
2250
|
}, ie());
|
|
2251
2251
|
}
|
|
2252
2252
|
function os() {
|
|
2253
|
-
return
|
|
2253
|
+
return Le;
|
|
2254
2254
|
}
|
|
2255
2255
|
Ee({
|
|
2256
2256
|
keypath: {
|
|
@@ -2263,22 +2263,22 @@ Ee({
|
|
|
2263
2263
|
}
|
|
2264
2264
|
}, qt);
|
|
2265
2265
|
function To(e) {
|
|
2266
|
-
return ge(e) && !
|
|
2266
|
+
return ge(e) && !Y(e[0]);
|
|
2267
2267
|
}
|
|
2268
2268
|
function ls(e, t, n, s) {
|
|
2269
2269
|
const { slots: l, attrs: o } = t;
|
|
2270
2270
|
return () => {
|
|
2271
2271
|
const d = { part: !0 };
|
|
2272
2272
|
let u = ie();
|
|
2273
|
-
e.locale && (d.locale = e.locale),
|
|
2273
|
+
e.locale && (d.locale = e.locale), Y(e.format) ? d.key = e.format : se(e.format) && (Y(e.format.key) && (d.key = e.format.key), u = Object.keys(e.format).reduce((N, D) => n.includes(D) ? Ee(ie(), N, { [D]: e.format[D] }) : N, ie()));
|
|
2274
2274
|
const c = s(e.value, d, u);
|
|
2275
2275
|
let h = [d.key];
|
|
2276
2276
|
ge(c) ? h = c.map((N, D) => {
|
|
2277
|
-
const w = l[N.type],
|
|
2278
|
-
return To(
|
|
2279
|
-
}) :
|
|
2280
|
-
const E = Ee(ie(), o), T =
|
|
2281
|
-
return
|
|
2277
|
+
const w = l[N.type], k = w ? w({ [N.type]: N.value, index: D, parts: c }) : [N.value];
|
|
2278
|
+
return To(k) && (k[0].key = `${N.type}-${D}`), k;
|
|
2279
|
+
}) : Y(c) && (h = [c]);
|
|
2280
|
+
const E = Ee(ie(), o), T = Y(e.tag) || se(e.tag) ? e.tag : os();
|
|
2281
|
+
return Vn(T, E, h);
|
|
2282
2282
|
};
|
|
2283
2283
|
}
|
|
2284
2284
|
Ee({
|
|
@@ -2300,13 +2300,13 @@ Ee({
|
|
|
2300
2300
|
}
|
|
2301
2301
|
}, qt);
|
|
2302
2302
|
const Oo = /* @__PURE__ */ He("global-vue-i18n");
|
|
2303
|
-
function
|
|
2304
|
-
const t =
|
|
2303
|
+
function St(e = {}) {
|
|
2304
|
+
const t = Bt();
|
|
2305
2305
|
if (t == null)
|
|
2306
2306
|
throw ct(tt.MUST_BE_CALL_SETUP_TOP);
|
|
2307
2307
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2308
2308
|
throw ct(tt.NOT_INSTALLED);
|
|
2309
|
-
const n =
|
|
2309
|
+
const n = So(t), s = Lo(n), l = rs(t), o = Ro(e, l);
|
|
2310
2310
|
if (o === "global")
|
|
2311
2311
|
return Io(s, e, l), s;
|
|
2312
2312
|
if (o === "parent") {
|
|
@@ -2317,26 +2317,26 @@ function Lt(e = {}) {
|
|
|
2317
2317
|
let u = d.__getInstance(t);
|
|
2318
2318
|
if (u == null) {
|
|
2319
2319
|
const c = Ee({}, e);
|
|
2320
|
-
"__i18n" in l && (c.__i18n = l.__i18n), s && (c.__root = s), u = No(c), d.__composerExtend && (u[
|
|
2320
|
+
"__i18n" in l && (c.__i18n = l.__i18n), s && (c.__root = s), u = No(c), d.__composerExtend && (u[Zt] = d.__composerExtend(u)), Mo(d, t, u), d.__setInstance(t, u);
|
|
2321
2321
|
}
|
|
2322
2322
|
return u;
|
|
2323
2323
|
}
|
|
2324
|
-
function
|
|
2324
|
+
function So(e) {
|
|
2325
2325
|
const t = cs(e.isCE ? Oo : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2326
2326
|
if (!t)
|
|
2327
2327
|
throw ct(e.isCE ? tt.NOT_INSTALLED_WITH_PROVIDE : tt.UNEXPECTED_ERROR);
|
|
2328
2328
|
return t;
|
|
2329
2329
|
}
|
|
2330
|
-
function
|
|
2330
|
+
function Ro(e, t) {
|
|
2331
2331
|
return Ct(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2332
2332
|
}
|
|
2333
|
-
function
|
|
2333
|
+
function Lo(e) {
|
|
2334
2334
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2335
2335
|
}
|
|
2336
2336
|
function Ao(e, t, n = !1) {
|
|
2337
2337
|
let s = null;
|
|
2338
2338
|
const l = t.root;
|
|
2339
|
-
let o =
|
|
2339
|
+
let o = ko(t, n);
|
|
2340
2340
|
for (; o != null; ) {
|
|
2341
2341
|
const d = e;
|
|
2342
2342
|
if (e.mode === "composition")
|
|
@@ -2351,21 +2351,21 @@ function Ao(e, t, n = !1) {
|
|
|
2351
2351
|
}
|
|
2352
2352
|
return s;
|
|
2353
2353
|
}
|
|
2354
|
-
function
|
|
2354
|
+
function ko(e, t = !1) {
|
|
2355
2355
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2356
2356
|
}
|
|
2357
2357
|
function Mo(e, t, n) {
|
|
2358
|
-
|
|
2358
|
+
xn(() => {
|
|
2359
2359
|
}, t), ds(() => {
|
|
2360
2360
|
const s = n;
|
|
2361
2361
|
e.__deleteInstance(t);
|
|
2362
|
-
const l = s[
|
|
2363
|
-
l && (l(), delete s[
|
|
2362
|
+
const l = s[Zt];
|
|
2363
|
+
l && (l(), delete s[Zt]);
|
|
2364
2364
|
}, t);
|
|
2365
2365
|
}
|
|
2366
2366
|
ho();
|
|
2367
|
-
$r(
|
|
2368
|
-
Jr(
|
|
2367
|
+
$r(Lr);
|
|
2368
|
+
Jr(Br);
|
|
2369
2369
|
Kr(Xn);
|
|
2370
2370
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2371
2371
|
const e = Xe();
|
|
@@ -2380,7 +2380,7 @@ const bt = /* @__PURE__ */ Pe({
|
|
|
2380
2380
|
}
|
|
2381
2381
|
},
|
|
2382
2382
|
setup(e) {
|
|
2383
|
-
const { t } =
|
|
2383
|
+
const { t } = St();
|
|
2384
2384
|
return (n, s) => {
|
|
2385
2385
|
const l = Fe("FmIcon"), o = Fe("FmTooltip");
|
|
2386
2386
|
return z(), we(o, {
|
|
@@ -2390,12 +2390,12 @@ const bt = /* @__PURE__ */ Pe({
|
|
|
2390
2390
|
}, {
|
|
2391
2391
|
content: ve(() => [
|
|
2392
2392
|
ae("div", null, Oe(H(t)("team.memberForm.permissions.inherited")), 1),
|
|
2393
|
-
(z(!0), ue(
|
|
2393
|
+
(z(!0), ue(Le, null, Ce(e.item.setNames, (d) => (z(), ue("div", { key: d }, [
|
|
2394
2394
|
ae("div", null, "- " + Oe(d), 1)
|
|
2395
2395
|
]))), 128))
|
|
2396
2396
|
]),
|
|
2397
2397
|
default: ve(() => [
|
|
2398
|
-
|
|
2398
|
+
fe(l, {
|
|
2399
2399
|
name: "admin_panel_settings",
|
|
2400
2400
|
size: "sm",
|
|
2401
2401
|
class: "ml-1 text-fm-color-typo-info"
|
|
@@ -2428,50 +2428,50 @@ const wn = Object.values(Ts), wo = {
|
|
|
2428
2428
|
function Do(e, t, n, s) {
|
|
2429
2429
|
const { t: l } = nt(), { getFlagValue: o, getFlag: d } = Cs(), u = ee(() => {
|
|
2430
2430
|
var P;
|
|
2431
|
-
const
|
|
2432
|
-
for (const
|
|
2433
|
-
const
|
|
2434
|
-
if (!
|
|
2435
|
-
const
|
|
2436
|
-
if (n.value.includes(
|
|
2431
|
+
const m = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map();
|
|
2432
|
+
for (const W of t.value) {
|
|
2433
|
+
const V = W.category;
|
|
2434
|
+
if (!V) continue;
|
|
2435
|
+
const B = W.subject;
|
|
2436
|
+
if (n.value.includes(W.subject) || W.showByFeatureFlag && ((P = d(W.showByFeatureFlag)) == null ? void 0 : P.enabled) === !1 && o(W.showByFeatureFlag) === "true")
|
|
2437
2437
|
continue;
|
|
2438
|
-
|
|
2439
|
-
const J =
|
|
2440
|
-
|
|
2441
|
-
label: l(`permissionSet.permissionLabels.${
|
|
2442
|
-
value:
|
|
2443
|
-
optionKey: `${
|
|
2444
|
-
}), y.has(
|
|
2438
|
+
m.has(V) || m.set(V, []);
|
|
2439
|
+
const J = x.get(B) ?? 0;
|
|
2440
|
+
x.set(B, J + 1), m.get(V).push({
|
|
2441
|
+
label: l(`permissionSet.permissionLabels.${B}`, W.label),
|
|
2442
|
+
value: B,
|
|
2443
|
+
optionKey: `${B}::${J}`
|
|
2444
|
+
}), y.has(B) || y.set(B, W);
|
|
2445
2445
|
}
|
|
2446
|
-
return [...
|
|
2447
|
-
const
|
|
2448
|
-
return
|
|
2449
|
-
}).map((
|
|
2450
|
-
const
|
|
2451
|
-
for (const te of
|
|
2446
|
+
return [...m.keys()].sort((W, V) => {
|
|
2447
|
+
const B = wn.indexOf(W), J = wn.indexOf(V);
|
|
2448
|
+
return B === -1 && J === -1 ? W.localeCompare(V) : B === -1 ? 1 : J === -1 ? -1 : B - J;
|
|
2449
|
+
}).map((W) => {
|
|
2450
|
+
const V = m.get(W), B = l(`permissionSet.categoryLabels.${W}`, W), J = /* @__PURE__ */ new Map();
|
|
2451
|
+
for (const te of V) {
|
|
2452
2452
|
const be = y.get(te.value);
|
|
2453
2453
|
be && J.set(te.value, be.actions);
|
|
2454
2454
|
}
|
|
2455
|
-
const oe =
|
|
2455
|
+
const oe = V.some((te) => {
|
|
2456
2456
|
const be = J.get(te.value);
|
|
2457
2457
|
return be && be.length > 1;
|
|
2458
2458
|
}), Q = oe ? [
|
|
2459
2459
|
...new Set(
|
|
2460
|
-
|
|
2460
|
+
V.flatMap((te) => J.get(te.value) ?? []).filter((te) => te !== "manage")
|
|
2461
2461
|
)
|
|
2462
2462
|
] : [], re = /* @__PURE__ */ new Map();
|
|
2463
2463
|
for (const te of e.value)
|
|
2464
|
-
|
|
2464
|
+
V.some((be) => be.value === te.subject) && !te.inverted && re.set(te.subject, new Set(te.actions));
|
|
2465
2465
|
const ce = oe ? e.value.filter(
|
|
2466
|
-
(te) =>
|
|
2467
|
-
).map((te) => te.subject) : e.value.filter((te) =>
|
|
2466
|
+
(te) => V.some((be) => be.value === te.subject) && !te.inverted && te.actions.includes("manage")
|
|
2467
|
+
).map((te) => te.subject) : e.value.filter((te) => V.some((be) => be.value === te.subject) && !te.inverted).map((te) => te.subject), q = V.find((te) => {
|
|
2468
2468
|
var be;
|
|
2469
2469
|
return (be = y.get(te.value)) == null ? void 0 : be.isCategoryCover;
|
|
2470
2470
|
}), _e = (q == null ? void 0 : q.value) ?? null, ye = _e ? re.get(_e) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), je = ye.has("manage");
|
|
2471
2471
|
return {
|
|
2472
|
-
category:
|
|
2473
|
-
label:
|
|
2474
|
-
options:
|
|
2472
|
+
category: W,
|
|
2473
|
+
label: B,
|
|
2474
|
+
options: V,
|
|
2475
2475
|
selectedSubjects: ce,
|
|
2476
2476
|
isMultiAction: oe,
|
|
2477
2477
|
actionColumns: Q,
|
|
@@ -2483,17 +2483,17 @@ function Do(e, t, n, s) {
|
|
|
2483
2483
|
};
|
|
2484
2484
|
});
|
|
2485
2485
|
});
|
|
2486
|
-
function c(
|
|
2487
|
-
const
|
|
2486
|
+
function c(m, y) {
|
|
2487
|
+
const x = u.value.find((Q) => Q.category === m), U = (x == null ? void 0 : x.options) ?? [], P = new Set(U.map((Q) => Q.value)), W = new Set(y), V = /* @__PURE__ */ new Map();
|
|
2488
2488
|
for (const Q of e.value)
|
|
2489
|
-
P.has(Q.subject) && !Q.inverted &&
|
|
2490
|
-
const
|
|
2489
|
+
P.has(Q.subject) && !Q.inverted && V.set(Q.subject, Q.conditions);
|
|
2490
|
+
const B = x != null && x.coverSubject ? V.get(x.coverSubject) : void 0, J = /* @__PURE__ */ new Set(), oe = t.value.flatMap(
|
|
2491
2491
|
({ category: Q, showByFeatureFlag: re, isCategoryCover: ce, ...q }) => {
|
|
2492
2492
|
const _e = q.subject;
|
|
2493
|
-
if (!
|
|
2493
|
+
if (!W.has(_e) || J.has(_e)) return [];
|
|
2494
2494
|
J.add(_e);
|
|
2495
2495
|
let ye;
|
|
2496
|
-
return
|
|
2496
|
+
return V.has(_e) ? ye = V.get(_e) : x != null && x.coverSubject && _e !== x.coverSubject && (ye = B), [
|
|
2497
2497
|
{ ...q, ...ye !== void 0 && { conditions: ye } }
|
|
2498
2498
|
];
|
|
2499
2499
|
}
|
|
@@ -2503,71 +2503,71 @@ function Do(e, t, n, s) {
|
|
|
2503
2503
|
...oe
|
|
2504
2504
|
]);
|
|
2505
2505
|
}
|
|
2506
|
-
function h(
|
|
2507
|
-
return D(
|
|
2506
|
+
function h(m, y) {
|
|
2507
|
+
return D(m, y) || i(m, y);
|
|
2508
2508
|
}
|
|
2509
|
-
function E(
|
|
2510
|
-
return
|
|
2509
|
+
function E(m) {
|
|
2510
|
+
return m.options.length > 0 && m.options.every((y) => h(m, y.value));
|
|
2511
2511
|
}
|
|
2512
|
-
function T(
|
|
2513
|
-
return
|
|
2514
|
-
(y) => h(
|
|
2512
|
+
function T(m) {
|
|
2513
|
+
return m.options.length === 0 || E(m) ? !1 : m.options.some(
|
|
2514
|
+
(y) => h(m, y.value) || w(m, y.value).length > 0
|
|
2515
2515
|
);
|
|
2516
2516
|
}
|
|
2517
|
-
function N(
|
|
2518
|
-
const y = new Set(
|
|
2519
|
-
if (E(
|
|
2520
|
-
s("update:model-value",
|
|
2517
|
+
function N(m) {
|
|
2518
|
+
const y = new Set(m.options.map((U) => U.value)), x = e.value.filter((U) => !y.has(U.subject));
|
|
2519
|
+
if (E(m))
|
|
2520
|
+
s("update:model-value", x);
|
|
2521
2521
|
else {
|
|
2522
2522
|
const U = /* @__PURE__ */ new Map();
|
|
2523
|
-
for (const
|
|
2524
|
-
y.has(
|
|
2525
|
-
const P =
|
|
2526
|
-
({ category:
|
|
2523
|
+
for (const B of e.value)
|
|
2524
|
+
y.has(B.subject) && !B.inverted && U.set(B.subject, B.conditions);
|
|
2525
|
+
const P = m.coverSubject ? U.get(m.coverSubject) : void 0, W = /* @__PURE__ */ new Set(), V = t.value.flatMap(
|
|
2526
|
+
({ category: B, showByFeatureFlag: J, isCategoryCover: oe, ...Q }) => {
|
|
2527
2527
|
const re = Q.subject;
|
|
2528
|
-
if (!y.has(re) ||
|
|
2529
|
-
|
|
2528
|
+
if (!y.has(re) || W.has(re)) return [];
|
|
2529
|
+
W.add(re);
|
|
2530
2530
|
let ce;
|
|
2531
|
-
return U.has(re) ? ce = U.get(re) :
|
|
2531
|
+
return U.has(re) ? ce = U.get(re) : m.coverSubject && re !== m.coverSubject && (ce = P), [
|
|
2532
2532
|
{ ...Q, ...ce !== void 0 && { conditions: ce } }
|
|
2533
2533
|
];
|
|
2534
2534
|
}
|
|
2535
2535
|
);
|
|
2536
|
-
s("update:model-value", [...
|
|
2536
|
+
s("update:model-value", [...x, ...V]);
|
|
2537
2537
|
}
|
|
2538
2538
|
}
|
|
2539
|
-
function D(
|
|
2540
|
-
const
|
|
2541
|
-
return
|
|
2539
|
+
function D(m, y) {
|
|
2540
|
+
const x = m.selectedActionsMap.get(y);
|
|
2541
|
+
return x ? x.has("manage") : !1;
|
|
2542
2542
|
}
|
|
2543
|
-
function w(
|
|
2544
|
-
const
|
|
2545
|
-
return
|
|
2546
|
-
(P) =>
|
|
2543
|
+
function w(m, y) {
|
|
2544
|
+
const x = m.permissionActionsMap.get(y);
|
|
2545
|
+
return x ? x.filter((P) => P !== "manage").filter(
|
|
2546
|
+
(P) => R(m, y, P) || b(m, y, P)
|
|
2547
2547
|
) : [];
|
|
2548
2548
|
}
|
|
2549
|
-
function
|
|
2550
|
-
return i(
|
|
2549
|
+
function k(m, y) {
|
|
2550
|
+
return i(m, y) ? !1 : !D(m, y) && w(m, y).length > 0;
|
|
2551
2551
|
}
|
|
2552
|
-
function F(
|
|
2553
|
-
if (!
|
|
2554
|
-
const
|
|
2555
|
-
(U) => !U.inverted && U.subject ===
|
|
2552
|
+
function F(m, y) {
|
|
2553
|
+
if (!m.coverSubject || y === m.coverSubject) return;
|
|
2554
|
+
const x = e.value.find(
|
|
2555
|
+
(U) => !U.inverted && U.subject === m.coverSubject
|
|
2556
2556
|
);
|
|
2557
|
-
return (
|
|
2557
|
+
return (x == null ? void 0 : x.conditions) || void 0;
|
|
2558
2558
|
}
|
|
2559
|
-
function m
|
|
2560
|
-
if (
|
|
2559
|
+
function f(m, y, x) {
|
|
2560
|
+
if (x) {
|
|
2561
2561
|
const U = t.value.find((Q) => Q.subject === y);
|
|
2562
2562
|
if (!U) return;
|
|
2563
2563
|
const {
|
|
2564
2564
|
category: P,
|
|
2565
|
-
showByFeatureFlag:
|
|
2566
|
-
isCategoryCover:
|
|
2567
|
-
...
|
|
2568
|
-
} = U, J = F(
|
|
2565
|
+
showByFeatureFlag: W,
|
|
2566
|
+
isCategoryCover: V,
|
|
2567
|
+
...B
|
|
2568
|
+
} = U, J = F(m, y), oe = e.value.filter((Q) => Q.subject !== y);
|
|
2569
2569
|
oe.push({
|
|
2570
|
-
...
|
|
2570
|
+
...B,
|
|
2571
2571
|
...J !== void 0 && { conditions: J }
|
|
2572
2572
|
}), s("update:model-value", oe);
|
|
2573
2573
|
} else
|
|
@@ -2576,41 +2576,41 @@ function Do(e, t, n, s) {
|
|
|
2576
2576
|
e.value.filter((U) => U.subject !== y)
|
|
2577
2577
|
);
|
|
2578
2578
|
}
|
|
2579
|
-
function p(
|
|
2580
|
-
const
|
|
2581
|
-
return
|
|
2579
|
+
function p(m, y) {
|
|
2580
|
+
const x = m.permissionActionsMap.get(y);
|
|
2581
|
+
return x ? x.some((U) => U !== "manage") : !1;
|
|
2582
2582
|
}
|
|
2583
|
-
function
|
|
2584
|
-
const U =
|
|
2585
|
-
return U ? U.has(
|
|
2583
|
+
function R(m, y, x) {
|
|
2584
|
+
const U = m.selectedActionsMap.get(y);
|
|
2585
|
+
return U ? U.has(x) : !1;
|
|
2586
2586
|
}
|
|
2587
|
-
function i(
|
|
2588
|
-
return !
|
|
2587
|
+
function i(m, y) {
|
|
2588
|
+
return !m.coverSubject || y === m.coverSubject ? !1 : m.coverCoversAll;
|
|
2589
2589
|
}
|
|
2590
|
-
function b(
|
|
2591
|
-
return !
|
|
2590
|
+
function b(m, y, x) {
|
|
2591
|
+
return !m.coverSubject || y === m.coverSubject ? !1 : m.coverCoversAll ? !0 : m.coverSelectedActions.has(x);
|
|
2592
2592
|
}
|
|
2593
|
-
function g(
|
|
2594
|
-
const U =
|
|
2595
|
-
return U ? U.includes(
|
|
2593
|
+
function g(m, y, x) {
|
|
2594
|
+
const U = m.permissionActionsMap.get(y);
|
|
2595
|
+
return U ? U.includes(x) : !1;
|
|
2596
2596
|
}
|
|
2597
|
-
function _(
|
|
2598
|
-
const U = [...e.value], P = U.findIndex((
|
|
2599
|
-
if (
|
|
2597
|
+
function _(m, y, x) {
|
|
2598
|
+
const U = [...e.value], P = U.findIndex((V) => V.subject === m && !V.inverted);
|
|
2599
|
+
if (x)
|
|
2600
2600
|
if (P >= 0) {
|
|
2601
|
-
const
|
|
2602
|
-
|
|
2601
|
+
const V = { ...U[P] }, B = new Set(V.actions);
|
|
2602
|
+
B.add(y), V.actions = Array.from(B), U[P] = V;
|
|
2603
2603
|
} else {
|
|
2604
|
-
const
|
|
2605
|
-
if (!
|
|
2604
|
+
const V = t.value.find((q) => q.subject === m);
|
|
2605
|
+
if (!V) return;
|
|
2606
2606
|
const {
|
|
2607
|
-
category:
|
|
2607
|
+
category: B,
|
|
2608
2608
|
showByFeatureFlag: J,
|
|
2609
2609
|
isCategoryCover: oe,
|
|
2610
2610
|
...Q
|
|
2611
|
-
} =
|
|
2612
|
-
(q) => q.options.some((_e) => _e.value ===
|
|
2613
|
-
), ce = re ? F(re,
|
|
2611
|
+
} = V, re = u.value.find(
|
|
2612
|
+
(q) => q.options.some((_e) => _e.value === m)
|
|
2613
|
+
), ce = re ? F(re, m) : void 0;
|
|
2614
2614
|
U.push({
|
|
2615
2615
|
...Q,
|
|
2616
2616
|
actions: [y],
|
|
@@ -2618,68 +2618,68 @@ function Do(e, t, n, s) {
|
|
|
2618
2618
|
});
|
|
2619
2619
|
}
|
|
2620
2620
|
else if (P >= 0) {
|
|
2621
|
-
const
|
|
2622
|
-
|
|
2621
|
+
const V = { ...U[P] }, B = V.actions.filter((J) => J !== y);
|
|
2622
|
+
B.length === 0 ? U.splice(P, 1) : (V.actions = B, U[P] = V);
|
|
2623
2623
|
}
|
|
2624
|
-
const
|
|
2625
|
-
|
|
2624
|
+
const W = t.value.find((V) => V.subject === m);
|
|
2625
|
+
W && Mn(U, m, W.actions), s("update:model-value", U);
|
|
2626
2626
|
}
|
|
2627
|
-
function M(
|
|
2628
|
-
const
|
|
2629
|
-
(U) => g(
|
|
2627
|
+
function M(m, y) {
|
|
2628
|
+
const x = m.options.filter(
|
|
2629
|
+
(U) => g(m, U.value, y)
|
|
2630
2630
|
);
|
|
2631
|
-
return
|
|
2632
|
-
(U) =>
|
|
2631
|
+
return x.length === 0 ? !1 : x.every(
|
|
2632
|
+
(U) => R(m, U.value, y) || b(m, U.value, y)
|
|
2633
2633
|
);
|
|
2634
2634
|
}
|
|
2635
|
-
function
|
|
2636
|
-
const
|
|
2637
|
-
(P) => g(
|
|
2635
|
+
function L(m, y) {
|
|
2636
|
+
const x = m.options.filter(
|
|
2637
|
+
(P) => g(m, P.value, y)
|
|
2638
2638
|
);
|
|
2639
|
-
if (
|
|
2640
|
-
const U =
|
|
2641
|
-
(P) =>
|
|
2639
|
+
if (x.length === 0) return !1;
|
|
2640
|
+
const U = x.filter(
|
|
2641
|
+
(P) => R(m, P.value, y) || b(m, P.value, y)
|
|
2642
2642
|
).length;
|
|
2643
|
-
return U > 0 && U <
|
|
2643
|
+
return U > 0 && U < x.length;
|
|
2644
2644
|
}
|
|
2645
|
-
function $(
|
|
2645
|
+
function $(m, y, x) {
|
|
2646
2646
|
const U = [...e.value];
|
|
2647
|
-
for (const P of
|
|
2648
|
-
if (!g(
|
|
2649
|
-
const
|
|
2650
|
-
(J) => J.subject ===
|
|
2647
|
+
for (const P of m.options) {
|
|
2648
|
+
if (!g(m, P.value, y)) continue;
|
|
2649
|
+
const W = P.value, V = U.findIndex(
|
|
2650
|
+
(J) => J.subject === W && !J.inverted
|
|
2651
2651
|
);
|
|
2652
|
-
if (
|
|
2653
|
-
if (
|
|
2654
|
-
const J = { ...U[
|
|
2655
|
-
oe.add(y), J.actions = Array.from(oe), U[
|
|
2652
|
+
if (x)
|
|
2653
|
+
if (V >= 0) {
|
|
2654
|
+
const J = { ...U[V] }, oe = new Set(J.actions);
|
|
2655
|
+
oe.add(y), J.actions = Array.from(oe), U[V] = J;
|
|
2656
2656
|
} else {
|
|
2657
|
-
const J = t.value.find((_e) => _e.subject ===
|
|
2657
|
+
const J = t.value.find((_e) => _e.subject === W);
|
|
2658
2658
|
if (!J) continue;
|
|
2659
2659
|
const {
|
|
2660
2660
|
category: oe,
|
|
2661
2661
|
showByFeatureFlag: Q,
|
|
2662
2662
|
isCategoryCover: re,
|
|
2663
2663
|
...ce
|
|
2664
|
-
} = J, q = F(
|
|
2664
|
+
} = J, q = F(m, W);
|
|
2665
2665
|
U.push({
|
|
2666
2666
|
...ce,
|
|
2667
2667
|
actions: [y],
|
|
2668
2668
|
...q !== void 0 && { conditions: q }
|
|
2669
2669
|
});
|
|
2670
2670
|
}
|
|
2671
|
-
else if (
|
|
2672
|
-
const J = { ...U[
|
|
2673
|
-
oe.length === 0 ? U.splice(
|
|
2671
|
+
else if (V >= 0) {
|
|
2672
|
+
const J = { ...U[V] }, oe = J.actions.filter((Q) => Q !== y);
|
|
2673
|
+
oe.length === 0 ? U.splice(V, 1) : (J.actions = oe, U[V] = J);
|
|
2674
2674
|
}
|
|
2675
|
-
const
|
|
2676
|
-
|
|
2675
|
+
const B = t.value.find((J) => J.subject === W);
|
|
2676
|
+
B && Mn(U, W, B.actions);
|
|
2677
2677
|
}
|
|
2678
2678
|
s("update:model-value", U);
|
|
2679
2679
|
}
|
|
2680
|
-
function
|
|
2681
|
-
const y = `permissionSet.actionLabels.${
|
|
2682
|
-
return l(y,
|
|
2680
|
+
function G(m) {
|
|
2681
|
+
const y = `permissionSet.actionLabels.${m}`, x = wo[m] ?? m.charAt(0).toUpperCase() + m.slice(1);
|
|
2682
|
+
return l(y, x);
|
|
2683
2683
|
}
|
|
2684
2684
|
return {
|
|
2685
2685
|
categoryGroups: u,
|
|
@@ -2688,21 +2688,21 @@ function Do(e, t, n, s) {
|
|
|
2688
2688
|
isAllManageIndeterminate: T,
|
|
2689
2689
|
toggleAllManage: N,
|
|
2690
2690
|
isManageChecked: D,
|
|
2691
|
-
isManageIndeterminate:
|
|
2692
|
-
toggleManage:
|
|
2691
|
+
isManageIndeterminate: k,
|
|
2692
|
+
toggleManage: f,
|
|
2693
2693
|
hasNonManageActions: p,
|
|
2694
|
-
isActionChecked:
|
|
2694
|
+
isActionChecked: R,
|
|
2695
2695
|
isRowFullyCoveredByCover: i,
|
|
2696
2696
|
isActionCoveredByCover: b,
|
|
2697
2697
|
permissionDefinesAction: g,
|
|
2698
2698
|
toggleAction: _,
|
|
2699
2699
|
isAllActionChecked: M,
|
|
2700
|
-
isAllActionIndeterminate:
|
|
2700
|
+
isAllActionIndeterminate: L,
|
|
2701
2701
|
toggleAllAction: $,
|
|
2702
|
-
actionLabel:
|
|
2702
|
+
actionLabel: G
|
|
2703
2703
|
};
|
|
2704
2704
|
}
|
|
2705
|
-
const Fo = { class: "flex flex-col gap-16" }, Po = { class: "fm-typo-en-title-sm-600" }, jo = { class: "mt-16" }, Uo = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" },
|
|
2705
|
+
const Fo = { class: "flex flex-col gap-16" }, Po = { class: "fm-typo-en-title-sm-600" }, jo = { class: "mt-16" }, Uo = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, xo = ["onClick"], Vo = { class: "flex justify-center" }, Go = { class: "flex items-center min-w-0 gap-8" }, Wo = ["title", "onClick"], Zo = { class: "flex justify-center" }, Yo = /* @__PURE__ */ Pe({
|
|
2706
2706
|
__name: "BasePermission",
|
|
2707
2707
|
props: {
|
|
2708
2708
|
modelValue: {
|
|
@@ -2724,7 +2724,7 @@ const Fo = { class: "flex flex-col gap-16" }, Po = { class: "fm-typo-en-title-sm
|
|
|
2724
2724
|
},
|
|
2725
2725
|
emits: ["update:model-value"],
|
|
2726
2726
|
setup(e, { emit: t }) {
|
|
2727
|
-
const n = e, s = t, { t: l } = nt(), o = ee(() => [...
|
|
2727
|
+
const n = e, s = t, { t: l } = nt(), o = ee(() => [...Gn, ...n.additionalPermissions]), {
|
|
2728
2728
|
categoryGroups: d,
|
|
2729
2729
|
isAllManageChecked: u,
|
|
2730
2730
|
isAllManageIndeterminate: c,
|
|
@@ -2734,136 +2734,136 @@ const Fo = { class: "flex flex-col gap-16" }, Po = { class: "fm-typo-en-title-sm
|
|
|
2734
2734
|
toggleManage: N,
|
|
2735
2735
|
isActionChecked: D,
|
|
2736
2736
|
isRowFullyCoveredByCover: w,
|
|
2737
|
-
isActionCoveredByCover:
|
|
2737
|
+
isActionCoveredByCover: k,
|
|
2738
2738
|
permissionDefinesAction: F,
|
|
2739
|
-
toggleAction:
|
|
2739
|
+
toggleAction: f,
|
|
2740
2740
|
isAllActionChecked: p,
|
|
2741
|
-
isAllActionIndeterminate:
|
|
2741
|
+
isAllActionIndeterminate: R,
|
|
2742
2742
|
toggleAllAction: i,
|
|
2743
2743
|
actionLabel: b
|
|
2744
2744
|
} = Do(
|
|
2745
2745
|
en(n, "modelValue"),
|
|
2746
2746
|
o,
|
|
2747
2747
|
en(n, "excludedSubjects"),
|
|
2748
|
-
(M,
|
|
2748
|
+
(M, L) => s("update:model-value", L)
|
|
2749
2749
|
);
|
|
2750
2750
|
function g(M) {
|
|
2751
|
-
const
|
|
2752
|
-
return
|
|
2751
|
+
const L = M.selectedSubjects.length;
|
|
2752
|
+
return L === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: L });
|
|
2753
2753
|
}
|
|
2754
|
-
function _(M,
|
|
2755
|
-
return E(M,
|
|
2756
|
-
($) => F(M,
|
|
2754
|
+
function _(M, L) {
|
|
2755
|
+
return E(M, L) || w(M, L) ? !0 : M.actionColumns.some(
|
|
2756
|
+
($) => F(M, L, $) && (D(M, L, $) || k(M, L, $))
|
|
2757
2757
|
);
|
|
2758
2758
|
}
|
|
2759
|
-
return (M,
|
|
2759
|
+
return (M, L) => {
|
|
2760
2760
|
const $ = Fe("FmCheckbox");
|
|
2761
2761
|
return z(), ue("div", Fo, [
|
|
2762
|
-
(z(!0), ue(
|
|
2763
|
-
key:
|
|
2764
|
-
subtitle: g(
|
|
2762
|
+
(z(!0), ue(Le, null, Ce(H(d), (G) => (z(), we(Xt, {
|
|
2763
|
+
key: G.category,
|
|
2764
|
+
subtitle: g(G)
|
|
2765
2765
|
}, {
|
|
2766
2766
|
title: ve(() => [
|
|
2767
|
-
ae("p", Po, Oe(
|
|
2767
|
+
ae("p", Po, Oe(G.label), 1)
|
|
2768
2768
|
]),
|
|
2769
2769
|
default: ve(() => [
|
|
2770
2770
|
ae("div", jo, [
|
|
2771
2771
|
ae("div", {
|
|
2772
2772
|
class: "grid items-center px-12 py-8",
|
|
2773
2773
|
style: Qe({
|
|
2774
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2774
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${G.actionColumns.length + 1}, 80px)`
|
|
2775
2775
|
})
|
|
2776
2776
|
}, [
|
|
2777
|
-
|
|
2777
|
+
L[0] || (L[0] = ae("div", null, null, -1)),
|
|
2778
2778
|
ae("div", Uo, Oe(H(l)("team.memberForm.permissions.columnManage")), 1),
|
|
2779
|
-
(z(!0), ue(
|
|
2780
|
-
key: `header-${
|
|
2779
|
+
(z(!0), ue(Le, null, Ce(G.actionColumns, (m) => (z(), ue("div", {
|
|
2780
|
+
key: `header-${m}`,
|
|
2781
2781
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2782
|
-
}, Oe(H(b)(
|
|
2782
|
+
}, Oe(H(b)(m)), 1))), 128))
|
|
2783
2783
|
], 4),
|
|
2784
2784
|
ae("div", {
|
|
2785
2785
|
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
2786
2786
|
style: Qe({
|
|
2787
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2787
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${G.actionColumns.length + 1}, 80px)`
|
|
2788
2788
|
})
|
|
2789
2789
|
}, [
|
|
2790
2790
|
ae("div", {
|
|
2791
2791
|
class: "cursor-pointer font-semibold",
|
|
2792
|
-
onClick: (
|
|
2793
|
-
}, Oe(H(l)("team.labels.all")), 9,
|
|
2794
|
-
ae("div",
|
|
2795
|
-
|
|
2796
|
-
"model-value": H(u)(
|
|
2797
|
-
indeterminate: H(c)(
|
|
2792
|
+
onClick: (m) => !e.disable && H(h)(G)
|
|
2793
|
+
}, Oe(H(l)("team.labels.all")), 9, xo),
|
|
2794
|
+
ae("div", Vo, [
|
|
2795
|
+
fe($, {
|
|
2796
|
+
"model-value": H(u)(G),
|
|
2797
|
+
indeterminate: H(c)(G),
|
|
2798
2798
|
value: !0,
|
|
2799
2799
|
disabled: e.disable,
|
|
2800
2800
|
size: "sm",
|
|
2801
2801
|
dense: "",
|
|
2802
|
-
"onUpdate:modelValue": (
|
|
2802
|
+
"onUpdate:modelValue": (m) => H(h)(G)
|
|
2803
2803
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2804
2804
|
]),
|
|
2805
|
-
(z(!0), ue(
|
|
2806
|
-
key: `all-${
|
|
2805
|
+
(z(!0), ue(Le, null, Ce(G.actionColumns, (m) => (z(), ue("div", {
|
|
2806
|
+
key: `all-${m}`,
|
|
2807
2807
|
class: "flex justify-center"
|
|
2808
2808
|
}, [
|
|
2809
|
-
|
|
2810
|
-
"model-value": H(p)(
|
|
2811
|
-
indeterminate: H(
|
|
2812
|
-
value:
|
|
2809
|
+
fe($, {
|
|
2810
|
+
"model-value": H(p)(G, m),
|
|
2811
|
+
indeterminate: H(R)(G, m),
|
|
2812
|
+
value: m,
|
|
2813
2813
|
disabled: e.disable,
|
|
2814
2814
|
size: "sm",
|
|
2815
2815
|
dense: "",
|
|
2816
|
-
"onUpdate:modelValue": (y) => H(i)(
|
|
2816
|
+
"onUpdate:modelValue": (y) => H(i)(G, m, y)
|
|
2817
2817
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2818
2818
|
]))), 128))
|
|
2819
2819
|
], 4),
|
|
2820
|
-
|
|
2821
|
-
(z(!0), ue(
|
|
2822
|
-
key:
|
|
2820
|
+
L[1] || (L[1] = ae("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2821
|
+
(z(!0), ue(Le, null, Ce(G.options, (m) => (z(), ue("div", {
|
|
2822
|
+
key: m.optionKey,
|
|
2823
2823
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2824
2824
|
style: Qe({
|
|
2825
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2825
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${G.actionColumns.length + 1}, 80px)`
|
|
2826
2826
|
})
|
|
2827
2827
|
}, [
|
|
2828
|
-
ae("div",
|
|
2828
|
+
ae("div", Go, [
|
|
2829
2829
|
ae("span", {
|
|
2830
2830
|
class: "block truncate cursor-pointer",
|
|
2831
|
-
title:
|
|
2832
|
-
onClick: (y) => !e.disable && !H(w)(
|
|
2833
|
-
}, Oe(
|
|
2834
|
-
Ae(M.$slots, `checkbox-${
|
|
2835
|
-
option:
|
|
2836
|
-
isEffectiveSelected: _(
|
|
2837
|
-
isCoveredByCover: H(w)(
|
|
2831
|
+
title: m.label,
|
|
2832
|
+
onClick: (y) => !e.disable && !H(w)(G, m.value) && H(N)(G, m.value, !H(E)(G, m.value))
|
|
2833
|
+
}, Oe(m.label), 9, Wo),
|
|
2834
|
+
Ae(M.$slots, `checkbox-${m.value}-append`, {
|
|
2835
|
+
option: m,
|
|
2836
|
+
isEffectiveSelected: _(G, m.value),
|
|
2837
|
+
isCoveredByCover: H(w)(G, m.value) || G.actionColumns.some((y) => H(k)(G, m.value, y))
|
|
2838
2838
|
}),
|
|
2839
|
-
Ae(M.$slots, `checkbox-${
|
|
2840
|
-
option:
|
|
2841
|
-
isEffectiveSelected: _(
|
|
2842
|
-
isCoveredByCover: H(w)(
|
|
2839
|
+
Ae(M.$slots, `checkbox-${m.value}-icon`, {
|
|
2840
|
+
option: m,
|
|
2841
|
+
isEffectiveSelected: _(G, m.value),
|
|
2842
|
+
isCoveredByCover: H(w)(G, m.value) || G.actionColumns.some((y) => H(k)(G, m.value, y))
|
|
2843
2843
|
})
|
|
2844
2844
|
]),
|
|
2845
|
-
ae("div",
|
|
2846
|
-
|
|
2847
|
-
"model-value": H(E)(
|
|
2848
|
-
value:
|
|
2849
|
-
disabled: e.disable || H(w)(
|
|
2850
|
-
indeterminate: H(T)(
|
|
2845
|
+
ae("div", Zo, [
|
|
2846
|
+
fe($, {
|
|
2847
|
+
"model-value": H(E)(G, m.value) || H(w)(G, m.value),
|
|
2848
|
+
value: m.value,
|
|
2849
|
+
disabled: e.disable || H(w)(G, m.value),
|
|
2850
|
+
indeterminate: H(T)(G, m.value),
|
|
2851
2851
|
size: "sm",
|
|
2852
|
-
"onUpdate:modelValue": (y) => H(N)(
|
|
2852
|
+
"onUpdate:modelValue": (y) => H(N)(G, m.value, y)
|
|
2853
2853
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2854
2854
|
]),
|
|
2855
|
-
(z(!0), ue(
|
|
2856
|
-
key: `${
|
|
2855
|
+
(z(!0), ue(Le, null, Ce(G.actionColumns, (y) => (z(), ue("div", {
|
|
2856
|
+
key: `${m.optionKey}-${y}`,
|
|
2857
2857
|
class: "flex justify-center"
|
|
2858
2858
|
}, [
|
|
2859
|
-
H(F)(
|
|
2859
|
+
H(F)(G, m.value, y) ? (z(), we($, {
|
|
2860
2860
|
key: 0,
|
|
2861
|
-
"model-value": H(D)(
|
|
2861
|
+
"model-value": H(D)(G, m.value, y) || H(k)(G, m.value, y),
|
|
2862
2862
|
value: y,
|
|
2863
|
-
disabled: e.disable || H(
|
|
2863
|
+
disabled: e.disable || H(k)(G, m.value, y),
|
|
2864
2864
|
size: "sm",
|
|
2865
|
-
"onUpdate:modelValue": (
|
|
2866
|
-
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) :
|
|
2865
|
+
"onUpdate:modelValue": (x) => H(f)(m.value, y, x)
|
|
2866
|
+
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : ke("", !0)
|
|
2867
2867
|
]))), 128))
|
|
2868
2868
|
], 4))), 128))
|
|
2869
2869
|
])
|
|
@@ -2873,7 +2873,7 @@ const Fo = { class: "flex flex-col gap-16" }, Po = { class: "fm-typo-en-title-sm
|
|
|
2873
2873
|
]);
|
|
2874
2874
|
};
|
|
2875
2875
|
}
|
|
2876
|
-
}),
|
|
2876
|
+
}), Bo = { class: "space-y-16" }, Xo = {
|
|
2877
2877
|
key: 0,
|
|
2878
2878
|
class: "flex fm-typo-en-title-sm-600"
|
|
2879
2879
|
}, Ho = {
|
|
@@ -2897,15 +2897,15 @@ const Fo = { class: "flex flex-col gap-16" }, Po = { class: "fm-typo-en-title-sm
|
|
|
2897
2897
|
},
|
|
2898
2898
|
setup(e) {
|
|
2899
2899
|
const t = e;
|
|
2900
|
-
return (n, s) => (z(), ue("div",
|
|
2900
|
+
return (n, s) => (z(), ue("div", Bo, [
|
|
2901
2901
|
Ae(n.$slots, "top", {}, () => [
|
|
2902
2902
|
t.title ? (z(), ue("div", Xo, [
|
|
2903
2903
|
ae("div", null, [
|
|
2904
|
-
t.required ? (z(), ue("span", Ho, "*")) :
|
|
2905
|
-
|
|
2904
|
+
t.required ? (z(), ue("span", Ho, "*")) : ke("", !0),
|
|
2905
|
+
fs(Oe(t.title), 1)
|
|
2906
2906
|
]),
|
|
2907
2907
|
Ae(n.$slots, "title-right")
|
|
2908
|
-
])) :
|
|
2908
|
+
])) : ke("", !0)
|
|
2909
2909
|
]),
|
|
2910
2910
|
ae("div", $o, [
|
|
2911
2911
|
Ae(n.$slots, "default")
|
|
@@ -2982,35 +2982,35 @@ const zo = { class: "col flex items-center" }, Qo = {
|
|
|
2982
2982
|
emits: ["update:model-value"],
|
|
2983
2983
|
setup(e, { emit: t }) {
|
|
2984
2984
|
const n = e, s = t, { t: l } = nt(), o = dt(!1), d = _s(), u = ee(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), c = `checkbox-${Ko(6)}`, h = ee(() => u.value !== !0), E = ee(
|
|
2985
|
-
() => n.modelValue.filter((
|
|
2985
|
+
() => n.modelValue.filter((k) => n.options.some((F) => F.value === k))
|
|
2986
2986
|
), T = ee(
|
|
2987
2987
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2988
2988
|
), N = ee(() => n.options.length > 0 && n.options.length === E.value.length);
|
|
2989
2989
|
function D() {
|
|
2990
|
-
const
|
|
2990
|
+
const k = n.modelValue.filter((F) => !E.value.includes(F));
|
|
2991
2991
|
if (N.value === !0)
|
|
2992
|
-
s("update:model-value",
|
|
2992
|
+
s("update:model-value", k);
|
|
2993
2993
|
else {
|
|
2994
|
-
const F = n.includeDisabledOptionsWhenSelectAll ? n.options.map((
|
|
2995
|
-
s("update:model-value", [...
|
|
2994
|
+
const F = n.includeDisabledOptionsWhenSelectAll ? n.options.map((f) => f.value) : n.options.filter((f) => !f.disabled).map((f) => f.value);
|
|
2995
|
+
s("update:model-value", [...k, ...F]);
|
|
2996
2996
|
}
|
|
2997
2997
|
}
|
|
2998
|
-
function w(
|
|
2999
|
-
let
|
|
3000
|
-
F ?
|
|
2998
|
+
function w(k, F) {
|
|
2999
|
+
let f = It(n.modelValue);
|
|
3000
|
+
F ? f.every((p) => p !== k) && f.push(k) : f = f.filter((p) => p !== k), s("update:model-value", f);
|
|
3001
3001
|
}
|
|
3002
|
-
return (
|
|
3003
|
-
const
|
|
3002
|
+
return (k, F) => {
|
|
3003
|
+
const f = Fe("FmCheckbox");
|
|
3004
3004
|
return z(), we(Jo, {
|
|
3005
3005
|
id: c,
|
|
3006
3006
|
title: e.title,
|
|
3007
3007
|
required: !1
|
|
3008
3008
|
}, {
|
|
3009
3009
|
top: ve(() => [
|
|
3010
|
-
Ae(
|
|
3010
|
+
Ae(k.$slots, "top")
|
|
3011
3011
|
]),
|
|
3012
3012
|
default: ve(() => [
|
|
3013
|
-
n.showAllToggle ? (z(), we(
|
|
3013
|
+
n.showAllToggle ? (z(), we(f, {
|
|
3014
3014
|
key: 0,
|
|
3015
3015
|
"model-value": N.value,
|
|
3016
3016
|
disabled: e.disable,
|
|
@@ -3020,17 +3020,17 @@ const zo = { class: "col flex items-center" }, Qo = {
|
|
|
3020
3020
|
dense: "",
|
|
3021
3021
|
value: T.value,
|
|
3022
3022
|
"onUpdate:modelValue": D
|
|
3023
|
-
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) :
|
|
3024
|
-
(z(!0), ue(
|
|
3023
|
+
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : ke("", !0),
|
|
3024
|
+
(z(!0), ue(Le, null, Ce(e.options, (p, R) => (z(), ue("div", {
|
|
3025
3025
|
key: p.value,
|
|
3026
|
-
style: Qe(`margin-bottom: ${
|
|
3027
|
-
class: lt(
|
|
3026
|
+
style: Qe(`margin-bottom: ${R < e.options.length - 1 ? n.gutter : 0}px`),
|
|
3027
|
+
class: lt(R < e.options.length - 1 ? "q-mb-sm" : "")
|
|
3028
3028
|
}, [
|
|
3029
3029
|
ae("div", {
|
|
3030
3030
|
class: lt(["row justify-between", e.alignCenter ? "items-center" : "items-start"])
|
|
3031
3031
|
}, [
|
|
3032
3032
|
ae("div", zo, [
|
|
3033
|
-
|
|
3033
|
+
fe(f, {
|
|
3034
3034
|
"model-value": e.modelValue.includes(p.value),
|
|
3035
3035
|
disabled: e.disable || p.disabled,
|
|
3036
3036
|
size: "sm",
|
|
@@ -3038,7 +3038,7 @@ const zo = { class: "col flex items-center" }, Qo = {
|
|
|
3038
3038
|
value: p.label,
|
|
3039
3039
|
"onUpdate:modelValue": (i) => w(p.value, i)
|
|
3040
3040
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
3041
|
-
Ae(
|
|
3041
|
+
Ae(k.$slots, `checkbox-${p.key || p.value}-append`, {
|
|
3042
3042
|
option: p,
|
|
3043
3043
|
selected: e.modelValue.includes(p.value)
|
|
3044
3044
|
})
|
|
@@ -3047,26 +3047,26 @@ const zo = { class: "col flex items-center" }, Qo = {
|
|
|
3047
3047
|
key: 0,
|
|
3048
3048
|
class: lt([{ "q-checkbox disabled": e.disable || p.disabled }, "col"])
|
|
3049
3049
|
}, [
|
|
3050
|
-
Ae(
|
|
3050
|
+
Ae(k.$slots, `checkbox-${p.key || p.value}-end`, {
|
|
3051
3051
|
option: p,
|
|
3052
3052
|
value: e.modelValue.includes(p.value),
|
|
3053
3053
|
disable: e.disable || p.disabled
|
|
3054
3054
|
})
|
|
3055
|
-
], 2)) :
|
|
3055
|
+
], 2)) : ke("", !0)
|
|
3056
3056
|
], 2),
|
|
3057
3057
|
H(d)[`checkbox-${p.key || p.value}-bottom`] && (e.modelValue.includes(p.value) || e.falsyShowSlot) ? (z(), ue("div", {
|
|
3058
3058
|
key: 0,
|
|
3059
3059
|
class: lt(["q-mt-sm", { "q-checkbox disabled": e.disable || p.disabled }]),
|
|
3060
3060
|
style: Qe(`margin-left: ${e.bottomSlotIndent}`)
|
|
3061
3061
|
}, [
|
|
3062
|
-
Ae(
|
|
3062
|
+
Ae(k.$slots, `checkbox-${p.key || p.value}-bottom`, {
|
|
3063
3063
|
option: p,
|
|
3064
3064
|
disable: e.disable || p.disabled,
|
|
3065
3065
|
value: e.modelValue.includes(p.value)
|
|
3066
3066
|
})
|
|
3067
|
-
], 6)) :
|
|
3067
|
+
], 6)) : ke("", !0)
|
|
3068
3068
|
], 6))), 128)),
|
|
3069
|
-
o.value && h.value ? (z(), ue("div", Qo, Oe(u.value), 1)) :
|
|
3069
|
+
o.value && h.value ? (z(), ue("div", Qo, Oe(u.value), 1)) : ke("", !0)
|
|
3070
3070
|
]),
|
|
3071
3071
|
_: 3
|
|
3072
3072
|
}, 8, ["title"]);
|
|
@@ -3126,8 +3126,8 @@ const zo = { class: "col flex items-center" }, Qo = {
|
|
|
3126
3126
|
"onUpdate:modelValue": T[0] || (T[0] = (D) => h.value = D),
|
|
3127
3127
|
class: "mt-16",
|
|
3128
3128
|
placeholder: H(l)("team.memberForm.permissions.search", { context: e.context })
|
|
3129
|
-
}, null, 8, ["modelValue", "placeholder"])) :
|
|
3130
|
-
|
|
3129
|
+
}, null, 8, ["modelValue", "placeholder"])) : ke("", !0),
|
|
3130
|
+
fe(as, {
|
|
3131
3131
|
"model-value": d.value,
|
|
3132
3132
|
options: o.value,
|
|
3133
3133
|
"show-intermediate": !1,
|
|
@@ -3199,7 +3199,7 @@ const zo = { class: "col flex items-center" }, Qo = {
|
|
|
3199
3199
|
ae("p", el, Oe(H(l)("team.memberForm.permissions.roles")), 1)
|
|
3200
3200
|
]),
|
|
3201
3201
|
default: ve(() => [
|
|
3202
|
-
|
|
3202
|
+
fe(as, {
|
|
3203
3203
|
"model-value": d.value,
|
|
3204
3204
|
options: o.value,
|
|
3205
3205
|
"show-intermediate": !1,
|
|
@@ -3222,11 +3222,11 @@ const zo = { class: "col flex items-center" }, Qo = {
|
|
|
3222
3222
|
}
|
|
3223
3223
|
}), nl = {
|
|
3224
3224
|
async readWarehouses() {
|
|
3225
|
-
return
|
|
3225
|
+
return Ss(await Rs().get("/warehouses"));
|
|
3226
3226
|
}
|
|
3227
3227
|
};
|
|
3228
3228
|
function Fn(e, t) {
|
|
3229
|
-
return
|
|
3229
|
+
return Wn(e, Zn).some(
|
|
3230
3230
|
(n) => n.subject === t && !n.inverted && n.actions.includes("manage")
|
|
3231
3231
|
);
|
|
3232
3232
|
}
|
|
@@ -3308,7 +3308,7 @@ function ll(e, t) {
|
|
|
3308
3308
|
function gt(e, t) {
|
|
3309
3309
|
return `${e}::${t.builderKey}`;
|
|
3310
3310
|
}
|
|
3311
|
-
function
|
|
3311
|
+
function Ze(e) {
|
|
3312
3312
|
try {
|
|
3313
3313
|
return e.conditions ? JSON.parse(e.conditions) : void 0;
|
|
3314
3314
|
} catch {
|
|
@@ -3322,20 +3322,20 @@ function Mt(e, t) {
|
|
|
3322
3322
|
const n = new Set(e.actions);
|
|
3323
3323
|
return n.has(he.Action.manage) ? !0 : t.actions.every((s) => n.has(s));
|
|
3324
3324
|
}
|
|
3325
|
-
function
|
|
3326
|
-
const n =
|
|
3325
|
+
function Yt(e, t) {
|
|
3326
|
+
const n = Ze(e);
|
|
3327
3327
|
return Dt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3328
3328
|
}
|
|
3329
3329
|
function Un(e, t, n) {
|
|
3330
3330
|
return {
|
|
3331
|
-
...
|
|
3332
|
-
...ze(
|
|
3331
|
+
...Yt(e, n),
|
|
3332
|
+
...ze(Ze(t), n)
|
|
3333
3333
|
};
|
|
3334
3334
|
}
|
|
3335
3335
|
function il(e, t, n) {
|
|
3336
3336
|
const s = dt(/* @__PURE__ */ new Set());
|
|
3337
3337
|
function l(i) {
|
|
3338
|
-
return
|
|
3338
|
+
return ks(i, t.value);
|
|
3339
3339
|
}
|
|
3340
3340
|
function o(i) {
|
|
3341
3341
|
return t.value.find((b) => b.subject === i);
|
|
@@ -3349,7 +3349,7 @@ function il(e, t, n) {
|
|
|
3349
3349
|
return al(e.value, i);
|
|
3350
3350
|
}
|
|
3351
3351
|
function c(i, b) {
|
|
3352
|
-
return ze(
|
|
3352
|
+
return ze(Ze(i), b);
|
|
3353
3353
|
}
|
|
3354
3354
|
function h(i, b) {
|
|
3355
3355
|
var M;
|
|
@@ -3364,8 +3364,8 @@ function il(e, t, n) {
|
|
|
3364
3364
|
if (i.index === null) return "inherit";
|
|
3365
3365
|
const g = e.value[i.index], _ = l(i.subject), M = _ ? u(_) : void 0;
|
|
3366
3366
|
if (g && M) {
|
|
3367
|
-
const
|
|
3368
|
-
if (JSON.stringify(
|
|
3367
|
+
const L = ze(Ze(g), b), $ = c(M, b);
|
|
3368
|
+
if (JSON.stringify(L) === JSON.stringify($)) return "inherit";
|
|
3369
3369
|
}
|
|
3370
3370
|
return "custom";
|
|
3371
3371
|
}
|
|
@@ -3375,26 +3375,26 @@ function il(e, t, n) {
|
|
|
3375
3375
|
if (!_) return;
|
|
3376
3376
|
const M = u(_);
|
|
3377
3377
|
if (!M) return;
|
|
3378
|
-
const
|
|
3379
|
-
return b.summarizeForm(
|
|
3378
|
+
const L = b.fromCondition(c(M, b));
|
|
3379
|
+
return b.summarizeForm(L, { timeZone: g });
|
|
3380
3380
|
}
|
|
3381
3381
|
function N(i, b) {
|
|
3382
3382
|
if (i.index === null) return;
|
|
3383
|
-
const g = [...e.value], _ = { ...g[i.index] }, M =
|
|
3384
|
-
if (
|
|
3383
|
+
const g = [...e.value], _ = { ...g[i.index] }, M = Yt(_, b), L = Object.keys(M).length === 0, $ = l(i.subject), G = $ ? u($) : void 0, m = G ? Mt(G, _) : !1;
|
|
3384
|
+
if (L && m)
|
|
3385
3385
|
g.splice(i.index, 1);
|
|
3386
|
-
else if (
|
|
3387
|
-
const y = Un(_,
|
|
3386
|
+
else if (G) {
|
|
3387
|
+
const y = Un(_, G, b);
|
|
3388
3388
|
Object.keys(y).length === 0 ? delete _.conditions : _.conditions = JSON.stringify(y), g[i.index] = _;
|
|
3389
3389
|
} else
|
|
3390
|
-
|
|
3390
|
+
L ? delete _.conditions : _.conditions = JSON.stringify(M), g[i.index] = _;
|
|
3391
3391
|
n(g);
|
|
3392
3392
|
}
|
|
3393
3393
|
function D(i, b, g) {
|
|
3394
3394
|
const _ = gt(i.subject, b);
|
|
3395
3395
|
if (g === "inherit") {
|
|
3396
|
-
const
|
|
3397
|
-
|
|
3396
|
+
const L = new Set(s.value);
|
|
3397
|
+
L.delete(_), s.value = L, N(i, b);
|
|
3398
3398
|
return;
|
|
3399
3399
|
}
|
|
3400
3400
|
const M = new Set(s.value);
|
|
@@ -3408,153 +3408,153 @@ function il(e, t, n) {
|
|
|
3408
3408
|
const g = u(b);
|
|
3409
3409
|
return (g == null ? void 0 : g.actions) ?? [];
|
|
3410
3410
|
}
|
|
3411
|
-
function
|
|
3411
|
+
function k(i, b) {
|
|
3412
3412
|
return e.value.filter((g) => {
|
|
3413
3413
|
if (g.inverted) return !1;
|
|
3414
3414
|
const _ = g.subject;
|
|
3415
|
-
return _ === i || l(_) !== i ? !1 : s.value.has(gt(_, b)) ? !0 : Object.keys(ze(
|
|
3415
|
+
return _ === i || l(_) !== i ? !1 : s.value.has(gt(_, b)) ? !0 : Object.keys(ze(Ze(g), b)).length > 0;
|
|
3416
3416
|
});
|
|
3417
3417
|
}
|
|
3418
3418
|
function F(i, b) {
|
|
3419
3419
|
const g = `::${b.builderKey}`, _ = new Set(s.value);
|
|
3420
3420
|
for (const M of _) {
|
|
3421
3421
|
if (!M.endsWith(g)) continue;
|
|
3422
|
-
const
|
|
3423
|
-
l(
|
|
3422
|
+
const L = M.slice(0, -g.length);
|
|
3423
|
+
l(L) === i && _.delete(M);
|
|
3424
3424
|
}
|
|
3425
3425
|
s.value = _;
|
|
3426
3426
|
}
|
|
3427
|
-
function
|
|
3427
|
+
function f(i, b, g) {
|
|
3428
3428
|
const _ = b.subject;
|
|
3429
|
-
return i.reduce((M,
|
|
3430
|
-
if (
|
|
3431
|
-
return M.push(
|
|
3432
|
-
const $ =
|
|
3429
|
+
return i.reduce((M, L) => {
|
|
3430
|
+
if (L.inverted)
|
|
3431
|
+
return M.push(L), M;
|
|
3432
|
+
const $ = L.subject;
|
|
3433
3433
|
if ($ === _ || l($) !== _)
|
|
3434
|
-
return M.push(
|
|
3435
|
-
if (Mt(b,
|
|
3434
|
+
return M.push(L), M;
|
|
3435
|
+
if (Mt(b, L) && Object.keys(Yt(L, g)).length === 0)
|
|
3436
3436
|
return M;
|
|
3437
|
-
const
|
|
3438
|
-
if (Object.keys(
|
|
3439
|
-
const { conditions: y, ...
|
|
3440
|
-
M.push(
|
|
3437
|
+
const m = Un(L, b, g);
|
|
3438
|
+
if (Object.keys(m).length === 0) {
|
|
3439
|
+
const { conditions: y, ...x } = L;
|
|
3440
|
+
M.push(x);
|
|
3441
3441
|
} else
|
|
3442
|
-
M.push({ ...
|
|
3442
|
+
M.push({ ...L, conditions: JSON.stringify(m) });
|
|
3443
3443
|
return M;
|
|
3444
3444
|
}, []);
|
|
3445
3445
|
}
|
|
3446
3446
|
function p(i, b, g, _ = {}) {
|
|
3447
3447
|
var U;
|
|
3448
3448
|
const M = [...e.value];
|
|
3449
|
-
let
|
|
3450
|
-
const $ = b.toCondition(g),
|
|
3451
|
-
if (
|
|
3452
|
-
if (
|
|
3453
|
-
const P = M.findIndex((
|
|
3449
|
+
let L = i.index;
|
|
3450
|
+
const $ = b.toCondition(g), G = Object.keys($).length > 0;
|
|
3451
|
+
if (L === null && !G && !_.forceCreateRule) return;
|
|
3452
|
+
if (L === null) {
|
|
3453
|
+
const P = M.findIndex((W) => !W.inverted && W.subject === i.subject);
|
|
3454
3454
|
if (P !== -1)
|
|
3455
|
-
|
|
3455
|
+
L = P;
|
|
3456
3456
|
else {
|
|
3457
|
-
const
|
|
3458
|
-
if (!
|
|
3457
|
+
const W = t.value.find((Q) => Q.subject === i.subject);
|
|
3458
|
+
if (!W) return;
|
|
3459
3459
|
const {
|
|
3460
|
-
category:
|
|
3461
|
-
showByFeatureFlag:
|
|
3460
|
+
category: V,
|
|
3461
|
+
showByFeatureFlag: B,
|
|
3462
3462
|
isCategoryCover: J,
|
|
3463
3463
|
...oe
|
|
3464
|
-
} =
|
|
3464
|
+
} = W;
|
|
3465
3465
|
M.push({
|
|
3466
3466
|
...oe,
|
|
3467
3467
|
actions: i.actions.length > 0 ? i.actions : oe.actions
|
|
3468
|
-
}),
|
|
3468
|
+
}), L = M.length - 1;
|
|
3469
3469
|
}
|
|
3470
3470
|
}
|
|
3471
|
-
const
|
|
3472
|
-
|
|
3473
|
-
.../* @__PURE__ */ new Set([...
|
|
3471
|
+
const m = { ...M[L] };
|
|
3472
|
+
m.actions = [
|
|
3473
|
+
.../* @__PURE__ */ new Set([...m.actions, ...i.actions])
|
|
3474
3474
|
];
|
|
3475
|
-
const y =
|
|
3476
|
-
if (Object.keys(
|
|
3477
|
-
const P =
|
|
3478
|
-
var
|
|
3479
|
-
F(i.subject, b), n(
|
|
3480
|
-
},
|
|
3481
|
-
var
|
|
3482
|
-
n(M), (
|
|
3475
|
+
const y = Ze(m), x = Dt(y, [{ builder: b, formValue: g }]);
|
|
3476
|
+
if (Object.keys(x).length === 0 ? delete m.conditions : m.conditions = JSON.stringify(x), M[L] = m, rn(i.subject, t.value)) {
|
|
3477
|
+
const P = k(i.subject, b), W = () => {
|
|
3478
|
+
var B;
|
|
3479
|
+
F(i.subject, b), n(f(M, m, b)), (B = _.afterCommit) == null || B.call(_);
|
|
3480
|
+
}, V = () => {
|
|
3481
|
+
var B;
|
|
3482
|
+
n(M), (B = _.afterCommit) == null || B.call(_);
|
|
3483
3483
|
};
|
|
3484
3484
|
if (P.length === 0) {
|
|
3485
|
-
|
|
3485
|
+
W();
|
|
3486
3486
|
return;
|
|
3487
3487
|
}
|
|
3488
|
-
_.onOverridesConflict ? _.onOverridesConflict({ override:
|
|
3488
|
+
_.onOverridesConflict ? _.onOverridesConflict({ override: W, keep: V }) : V();
|
|
3489
3489
|
return;
|
|
3490
3490
|
}
|
|
3491
3491
|
n(M), (U = _.afterCommit) == null || U.call(_);
|
|
3492
3492
|
}
|
|
3493
|
-
function
|
|
3493
|
+
function R(i, b, g = {}) {
|
|
3494
3494
|
if (b.length === 0) return;
|
|
3495
3495
|
const _ = [...e.value];
|
|
3496
|
-
let M = _.findIndex((P) => !P.inverted && P.subject === i.subject),
|
|
3496
|
+
let M = _.findIndex((P) => !P.inverted && P.subject === i.subject), L = M === -1 ? void 0 : { ..._[M] }, $ = Ze(L ?? {}) ?? {};
|
|
3497
3497
|
for (const P of b) {
|
|
3498
|
-
const
|
|
3499
|
-
$ = Dt($, [{ builder: P.builder, formValue:
|
|
3498
|
+
const W = P.mode === "inherit" ? P.builder.fromCondition(void 0) : P.form;
|
|
3499
|
+
$ = Dt($, [{ builder: P.builder, formValue: W }]);
|
|
3500
3500
|
}
|
|
3501
|
-
const
|
|
3502
|
-
if (!
|
|
3501
|
+
const G = b.some((P) => P.mode === "custom");
|
|
3502
|
+
if (!L && (Object.keys($).length > 0 || G)) {
|
|
3503
3503
|
const P = t.value.find((oe) => oe.subject === i.subject);
|
|
3504
3504
|
if (!P) return;
|
|
3505
3505
|
const {
|
|
3506
|
-
category:
|
|
3507
|
-
showByFeatureFlag:
|
|
3508
|
-
isCategoryCover:
|
|
3506
|
+
category: W,
|
|
3507
|
+
showByFeatureFlag: V,
|
|
3508
|
+
isCategoryCover: B,
|
|
3509
3509
|
...J
|
|
3510
3510
|
} = P;
|
|
3511
|
-
|
|
3511
|
+
L = {
|
|
3512
3512
|
...J,
|
|
3513
3513
|
actions: i.actions.length > 0 ? i.actions : J.actions
|
|
3514
|
-
}, _.push(
|
|
3514
|
+
}, _.push(L), M = _.length - 1;
|
|
3515
3515
|
}
|
|
3516
|
-
if (
|
|
3517
|
-
const P = l(i.subject),
|
|
3518
|
-
if (!
|
|
3519
|
-
_.splice(M, 1),
|
|
3516
|
+
if (L) {
|
|
3517
|
+
const P = l(i.subject), W = P ? u(P) : void 0;
|
|
3518
|
+
if (!G && Object.keys($).length === 0 && !!W && Mt(W, L))
|
|
3519
|
+
_.splice(M, 1), L = void 0;
|
|
3520
3520
|
else {
|
|
3521
|
-
if (
|
|
3522
|
-
.../* @__PURE__ */ new Set([...
|
|
3523
|
-
],
|
|
3524
|
-
for (const
|
|
3525
|
-
|
|
3521
|
+
if (L.actions = [
|
|
3522
|
+
.../* @__PURE__ */ new Set([...L.actions, ...i.actions])
|
|
3523
|
+
], W)
|
|
3524
|
+
for (const B of b)
|
|
3525
|
+
B.mode === "inherit" && ($ = {
|
|
3526
3526
|
...$,
|
|
3527
|
-
...ze(
|
|
3527
|
+
...ze(Ze(W), B.builder)
|
|
3528
3528
|
});
|
|
3529
|
-
Object.keys($).length === 0 ? delete
|
|
3529
|
+
Object.keys($).length === 0 ? delete L.conditions : L.conditions = JSON.stringify($), _[M] = L;
|
|
3530
3530
|
}
|
|
3531
3531
|
}
|
|
3532
|
-
const
|
|
3532
|
+
const m = () => {
|
|
3533
3533
|
const P = new Set(s.value);
|
|
3534
|
-
for (const
|
|
3535
|
-
const
|
|
3536
|
-
|
|
3534
|
+
for (const W of b) {
|
|
3535
|
+
const V = gt(i.subject, W.builder);
|
|
3536
|
+
W.mode === "custom" ? P.add(V) : P.delete(V);
|
|
3537
3537
|
}
|
|
3538
3538
|
s.value = P;
|
|
3539
3539
|
}, y = (P) => {
|
|
3540
|
-
var
|
|
3541
|
-
|
|
3540
|
+
var W;
|
|
3541
|
+
m(), n(P), (W = g.afterCommit) == null || W.call(g);
|
|
3542
3542
|
};
|
|
3543
|
-
if (!rn(i.subject, t.value) || !
|
|
3543
|
+
if (!rn(i.subject, t.value) || !L) {
|
|
3544
3544
|
y(_);
|
|
3545
3545
|
return;
|
|
3546
3546
|
}
|
|
3547
|
-
const
|
|
3547
|
+
const x = b.map((P) => P.builder).filter((P) => k(i.subject, P).length > 0), U = () => {
|
|
3548
3548
|
let P = _;
|
|
3549
|
-
for (const
|
|
3550
|
-
F(i.subject,
|
|
3549
|
+
for (const W of b.map((V) => V.builder))
|
|
3550
|
+
F(i.subject, W), P = f(P, L, W);
|
|
3551
3551
|
y(P);
|
|
3552
3552
|
};
|
|
3553
|
-
if (
|
|
3553
|
+
if (x.length > 0 && g.onOverridesConflict) {
|
|
3554
3554
|
g.onOverridesConflict({ override: U, keep: () => y(_) });
|
|
3555
3555
|
return;
|
|
3556
3556
|
}
|
|
3557
|
-
|
|
3557
|
+
x.length > 0 ? y(_) : U();
|
|
3558
3558
|
}
|
|
3559
3559
|
return {
|
|
3560
3560
|
getCoverSubject: l,
|
|
@@ -3565,10 +3565,10 @@ function il(e, t, n) {
|
|
|
3565
3565
|
inheritedSummary: T,
|
|
3566
3566
|
getEffectiveActions: w,
|
|
3567
3567
|
updateBuilderCondition: p,
|
|
3568
|
-
applyConditionDrafts:
|
|
3568
|
+
applyConditionDrafts: R
|
|
3569
3569
|
};
|
|
3570
3570
|
}
|
|
3571
|
-
const cl = { class: "flex flex-col gap-32" }, ul = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, dl = { class: "h-[24px] w-[24px] flex items-center justify-center" },
|
|
3571
|
+
const cl = { class: "flex flex-col gap-32" }, ul = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, dl = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ml = { class: "flex flex-col gap-12 p-16 w-[320px]" }, fl = { class: "fm-typo-en-title-sm-600" }, _l = {
|
|
3572
3572
|
key: 0,
|
|
3573
3573
|
class: "h-px w-full bg-fm-color-neutral-gray-200"
|
|
3574
3574
|
}, pl = {
|
|
@@ -3602,7 +3602,7 @@ const cl = { class: "flex flex-col gap-32" }, ul = { class: "p-16 fm-corner-radi
|
|
|
3602
3602
|
fetchCustomReportPermissions: h,
|
|
3603
3603
|
customReportPermissions: E
|
|
3604
3604
|
} = gs(), T = ee(() => [
|
|
3605
|
-
...
|
|
3605
|
+
...Gn,
|
|
3606
3606
|
...E.value
|
|
3607
3607
|
]), N = ee(() => {
|
|
3608
3608
|
const O = d.currentBusiness.value, C = d.currentCountry.value, A = C instanceof Object ? C.code : C;
|
|
@@ -3619,8 +3619,8 @@ const cl = { class: "flex flex-col gap-32" }, ul = { class: "p-16 fm-corner-radi
|
|
|
3619
3619
|
}
|
|
3620
3620
|
);
|
|
3621
3621
|
}
|
|
3622
|
-
const
|
|
3623
|
-
const O = T.value.filter((A) => !
|
|
3622
|
+
const k = ee(() => {
|
|
3623
|
+
const O = T.value.filter((A) => !R.includes(A.subject)).map((A) => A.subject);
|
|
3624
3624
|
return Is(
|
|
3625
3625
|
s.inheritPermissions.map((A) => ({
|
|
3626
3626
|
...A,
|
|
@@ -3637,34 +3637,34 @@ const cl = { class: "flex flex-col gap-32" }, ul = { class: "p-16 fm-corner-radi
|
|
|
3637
3637
|
(A) => A.subject === he.Subject.Business.inventory_stock
|
|
3638
3638
|
)
|
|
3639
3639
|
}));
|
|
3640
|
-
return
|
|
3640
|
+
return Rt(
|
|
3641
3641
|
O,
|
|
3642
3642
|
"warehouseId",
|
|
3643
3643
|
b.value.map((C) => C._id)
|
|
3644
3644
|
);
|
|
3645
|
-
}),
|
|
3645
|
+
}), f = ee(() => {
|
|
3646
3646
|
const O = s.inheritPermissions.map((C) => ({
|
|
3647
3647
|
...C,
|
|
3648
3648
|
permissions: C.permissions.filter(
|
|
3649
3649
|
(A) => A.subject === he.Subject.Restaurant.restaurant
|
|
3650
3650
|
)
|
|
3651
3651
|
}));
|
|
3652
|
-
return
|
|
3652
|
+
return Rt(
|
|
3653
3653
|
O,
|
|
3654
3654
|
"restaurantId",
|
|
3655
|
-
|
|
3655
|
+
L.value.map((C) => C._id)
|
|
3656
3656
|
);
|
|
3657
3657
|
}), p = ee(() => {
|
|
3658
3658
|
const O = s.inheritPermissions.map((C) => ({
|
|
3659
3659
|
...C,
|
|
3660
3660
|
permissions: C.permissions.filter((A) => A.subject === he.Subject.Business.role)
|
|
3661
3661
|
}));
|
|
3662
|
-
return
|
|
3662
|
+
return Rt(
|
|
3663
3663
|
O,
|
|
3664
3664
|
"roleId",
|
|
3665
3665
|
$.value.map((C) => C._id)
|
|
3666
3666
|
);
|
|
3667
|
-
}),
|
|
3667
|
+
}), R = [
|
|
3668
3668
|
he.Subject.Business.restaurant,
|
|
3669
3669
|
he.Subject.Business.role,
|
|
3670
3670
|
he.Subject.Restaurant.restaurant,
|
|
@@ -3696,11 +3696,11 @@ const cl = { class: "flex flex-col gap-32" }, ul = { class: "p-16 fm-corner-radi
|
|
|
3696
3696
|
}
|
|
3697
3697
|
return A;
|
|
3698
3698
|
}
|
|
3699
|
-
const { restaurants:
|
|
3699
|
+
const { restaurants: L } = d, $ = Ls().roles, G = ee(() => L.value.map((O) => ({
|
|
3700
3700
|
label: `${O.profile.code ? O.profile.code + "-" : ""}${O.profile.name}`,
|
|
3701
3701
|
value: O._id
|
|
3702
|
-
}))),
|
|
3703
|
-
function
|
|
3702
|
+
}))), m = ee(() => L.value.reduce((O, C) => (O[C._id] = $.value.filter((A) => A.restaurants.some((r) => r.id === C._id)).map((A) => A._id), O), {})), y = ee(() => Es(n.value));
|
|
3703
|
+
function x(O) {
|
|
3704
3704
|
const C = P(n.value, O);
|
|
3705
3705
|
n.value = C;
|
|
3706
3706
|
}
|
|
@@ -3719,28 +3719,28 @@ const cl = { class: "flex flex-col gap-32" }, ul = { class: "p-16 fm-corner-radi
|
|
|
3719
3719
|
...j
|
|
3720
3720
|
} = Os.restaurant;
|
|
3721
3721
|
A.push(j);
|
|
3722
|
-
const
|
|
3722
|
+
const Z = {
|
|
3723
3723
|
actions: [he.Action.manage],
|
|
3724
3724
|
subject: he.Subject.Restaurant.restaurant
|
|
3725
3725
|
};
|
|
3726
|
-
C && (
|
|
3726
|
+
C && (Z.conditions = JSON.stringify({ restaurantId: { $in: C } })), A.push(Z);
|
|
3727
3727
|
}
|
|
3728
3728
|
if (C) {
|
|
3729
3729
|
const a = [
|
|
3730
|
-
...new Set(C.map((j) =>
|
|
3730
|
+
...new Set(C.map((j) => m.value[j]).flatMap((j) => j))
|
|
3731
3731
|
], I = $.value.map((j) => j._id);
|
|
3732
|
-
a.length !== I.length && (A =
|
|
3732
|
+
a.length !== I.length && (A = V(
|
|
3733
3733
|
A,
|
|
3734
3734
|
(r = U.value || I) == null ? void 0 : r.filter((j) => a.includes(j))
|
|
3735
3735
|
));
|
|
3736
3736
|
}
|
|
3737
3737
|
return A;
|
|
3738
3738
|
}
|
|
3739
|
-
function
|
|
3740
|
-
const C =
|
|
3739
|
+
function W(O) {
|
|
3740
|
+
const C = V(n.value, O);
|
|
3741
3741
|
n.value = C;
|
|
3742
3742
|
}
|
|
3743
|
-
function
|
|
3743
|
+
function V(O, C) {
|
|
3744
3744
|
let A = It(
|
|
3745
3745
|
O.filter((r) => r.subject !== he.Subject.Business.role)
|
|
3746
3746
|
);
|
|
@@ -3754,15 +3754,15 @@ const cl = { class: "flex flex-col gap-32" }, ul = { class: "p-16 fm-corner-radi
|
|
|
3754
3754
|
}
|
|
3755
3755
|
return A;
|
|
3756
3756
|
}
|
|
3757
|
-
|
|
3757
|
+
xn(async () => {
|
|
3758
3758
|
await Promise.all([
|
|
3759
3759
|
nl.readWarehouses().then((O) => b.value = O),
|
|
3760
3760
|
h()
|
|
3761
3761
|
]);
|
|
3762
3762
|
});
|
|
3763
|
-
const
|
|
3763
|
+
const B = ee(() => Wn(
|
|
3764
3764
|
n.value,
|
|
3765
|
-
|
|
3765
|
+
Zn
|
|
3766
3766
|
).filter((A) => {
|
|
3767
3767
|
const r = A.source;
|
|
3768
3768
|
return (r == null ? void 0 : r.type) !== "systemPermissionSet" ? !0 : A.actions.includes("manage");
|
|
@@ -3773,11 +3773,11 @@ const cl = { class: "flex flex-col gap-32" }, ul = { class: "p-16 fm-corner-radi
|
|
|
3773
3773
|
const a = D(A.subject);
|
|
3774
3774
|
if (!a) return A;
|
|
3775
3775
|
const I = a.actions;
|
|
3776
|
-
return I.length <= 1 || I.filter((
|
|
3776
|
+
return I.length <= 1 || I.filter((Z) => !r.includes(Z)).length === 0 ? A : { ...A, actions: [...I] };
|
|
3777
3777
|
}));
|
|
3778
3778
|
function J(O) {
|
|
3779
3779
|
n.value = sl(
|
|
3780
|
-
|
|
3780
|
+
B.value,
|
|
3781
3781
|
O,
|
|
3782
3782
|
n.value,
|
|
3783
3783
|
D
|
|
@@ -3787,7 +3787,7 @@ const cl = { class: "flex flex-col gap-32" }, ul = { class: "p-16 fm-corner-radi
|
|
|
3787
3787
|
T.value.filter((O) => sn(O.subject).length > 0).map((O) => O.subject)
|
|
3788
3788
|
)), Q = ee(() => {
|
|
3789
3789
|
const O = /* @__PURE__ */ new Map();
|
|
3790
|
-
return
|
|
3790
|
+
return B.value.map((C) => ({
|
|
3791
3791
|
rule: C,
|
|
3792
3792
|
index: n.value.findIndex(
|
|
3793
3793
|
(A) => !A.inverted && A.subject === C.subject
|
|
@@ -3808,9 +3808,9 @@ const cl = { class: "flex flex-col gap-32" }, ul = { class: "p-16 fm-corner-radi
|
|
|
3808
3808
|
label: ((j = D(C.subject)) == null ? void 0 : j.label) ?? C.subject,
|
|
3809
3809
|
actions: r,
|
|
3810
3810
|
// Each builder only ever sees its own slice of the stored condition.
|
|
3811
|
-
sections: a.map((
|
|
3812
|
-
builder:
|
|
3813
|
-
formValue:
|
|
3811
|
+
sections: a.map((Z) => ({
|
|
3812
|
+
builder: Z,
|
|
3813
|
+
formValue: Z.fromCondition(ze(I, Z))
|
|
3814
3814
|
}))
|
|
3815
3815
|
});
|
|
3816
3816
|
}), O;
|
|
@@ -3884,18 +3884,18 @@ const cl = { class: "flex flex-col gap-32" }, ul = { class: "p-16 fm-corner-radi
|
|
|
3884
3884
|
afterCommit: () => {
|
|
3885
3885
|
ce.clearDraftsForSubject(O.subject), C();
|
|
3886
3886
|
},
|
|
3887
|
-
onOverridesConflict:
|
|
3887
|
+
onOverridesConflict: Ge(O).onOverridesConflict
|
|
3888
3888
|
});
|
|
3889
3889
|
}
|
|
3890
3890
|
function rt(O) {
|
|
3891
3891
|
return O.sections.some((C) => re.shouldShowInheritToggle(O, C.builder) ? re.inheritMode(O, C.builder) === "custom" : Object.keys(C.builder.toCondition(C.formValue)).length > 0);
|
|
3892
3892
|
}
|
|
3893
|
-
let
|
|
3894
|
-
function
|
|
3893
|
+
let Re = !1;
|
|
3894
|
+
function Ge(O, C = {}) {
|
|
3895
3895
|
return {
|
|
3896
3896
|
...C,
|
|
3897
3897
|
onOverridesConflict: ({ override: A, keep: r }) => {
|
|
3898
|
-
|
|
3898
|
+
Re || (Re = !0, u.open({
|
|
3899
3899
|
title: o("team.memberForm.permissions.conditionCover.confirmTitle"),
|
|
3900
3900
|
message: o("team.memberForm.permissions.conditionCover.confirmMessage", {
|
|
3901
3901
|
cover: O.label
|
|
@@ -3911,11 +3911,11 @@ const cl = { class: "flex flex-col gap-32" }, ul = { class: "p-16 fm-corner-radi
|
|
|
3911
3911
|
close: !1
|
|
3912
3912
|
}
|
|
3913
3913
|
}).onPrimary(() => {
|
|
3914
|
-
A(),
|
|
3914
|
+
A(), Re = !1, u.close();
|
|
3915
3915
|
}).onSecondary(() => {
|
|
3916
|
-
r(),
|
|
3916
|
+
r(), Re = !1, u.close();
|
|
3917
3917
|
}).onClose(() => {
|
|
3918
|
-
|
|
3918
|
+
Re = !1;
|
|
3919
3919
|
}));
|
|
3920
3920
|
}
|
|
3921
3921
|
};
|
|
@@ -3930,89 +3930,89 @@ const cl = { class: "flex flex-col gap-32" }, ul = { class: "p-16 fm-corner-radi
|
|
|
3930
3930
|
const A = Fe("FmIcon"), r = Fe("FmRadio"), a = Fe("FmRadioGroup"), I = Fe("FmButton"), j = Fe("FmPopover");
|
|
3931
3931
|
return z(), ue("div", cl, [
|
|
3932
3932
|
ae("div", ul, [
|
|
3933
|
-
|
|
3934
|
-
"model-value":
|
|
3935
|
-
"excluded-subjects":
|
|
3933
|
+
fe(Yo, {
|
|
3934
|
+
"model-value": B.value,
|
|
3935
|
+
"excluded-subjects": R,
|
|
3936
3936
|
"additional-permissions": H(E),
|
|
3937
3937
|
"onUpdate:modelValue": J
|
|
3938
3938
|
}, Ke({ _: 2 }, [
|
|
3939
|
-
Ce(
|
|
3940
|
-
name: `checkbox-${
|
|
3939
|
+
Ce(k.value, (Z) => ({
|
|
3940
|
+
name: `checkbox-${Z.id}-append`,
|
|
3941
3941
|
fn: ve(() => [
|
|
3942
|
-
|
|
3942
|
+
fe(bt, { item: Z }, null, 8, ["item"])
|
|
3943
3943
|
])
|
|
3944
3944
|
})),
|
|
3945
|
-
Ce(oe.value, (
|
|
3946
|
-
name: `checkbox-${
|
|
3945
|
+
Ce(oe.value, (Z) => ({
|
|
3946
|
+
name: `checkbox-${Z}-icon`,
|
|
3947
3947
|
fn: ve(({ option: X, isEffectiveSelected: v }) => [
|
|
3948
|
-
v && q(
|
|
3948
|
+
v && q(Z, X.label) ? (z(), we(j, {
|
|
3949
3949
|
key: 0,
|
|
3950
3950
|
disabled: e.disable,
|
|
3951
3951
|
"z-index": 100,
|
|
3952
3952
|
"exclude-el-from-click-outside": [yl],
|
|
3953
3953
|
class: "h-5 flex items-center",
|
|
3954
|
-
onClose: () => H(ce).clearDraftsForSubject(
|
|
3954
|
+
onClose: () => H(ce).clearDraftsForSubject(Z)
|
|
3955
3955
|
}, {
|
|
3956
3956
|
"popover-button": ve(() => [
|
|
3957
3957
|
ae("div", dl, [
|
|
3958
|
-
|
|
3958
|
+
fe(A, {
|
|
3959
3959
|
name: "settings",
|
|
3960
3960
|
size: "sm",
|
|
3961
3961
|
class: lt([
|
|
3962
3962
|
"cursor-pointer transition-colors",
|
|
3963
|
-
rt(q(
|
|
3963
|
+
rt(q(Z, X.label)) ? "text-fm-color-primary-main" : "text-fm-color-neutral-gray-400 hover:text-fm-color-neutral-gray-600"
|
|
3964
3964
|
])
|
|
3965
3965
|
}, null, 8, ["class"])
|
|
3966
3966
|
])
|
|
3967
3967
|
]),
|
|
3968
|
-
default: ve(({ hide:
|
|
3969
|
-
ae("div",
|
|
3970
|
-
ae("p",
|
|
3971
|
-
context: q(
|
|
3968
|
+
default: ve(({ hide: S }) => [
|
|
3969
|
+
ae("div", ml, [
|
|
3970
|
+
ae("p", fl, Oe(H(o)("team.memberForm.permissions.conditionTitle", {
|
|
3971
|
+
context: q(Z, X.label).label
|
|
3972
3972
|
})), 1),
|
|
3973
|
-
(z(!0), ue(
|
|
3973
|
+
(z(!0), ue(Le, null, Ce(q(Z, X.label).sections, (K, de) => (z(), ue(Le, {
|
|
3974
3974
|
key: K.builder.builderKey
|
|
3975
3975
|
}, [
|
|
3976
|
-
de > 0 ? (z(), ue("div", _l)) :
|
|
3976
|
+
de > 0 ? (z(), ue("div", _l)) : ke("", !0),
|
|
3977
3977
|
H(re).shouldShowInheritToggle(
|
|
3978
|
-
q(
|
|
3978
|
+
q(Z, X.label),
|
|
3979
3979
|
K.builder
|
|
3980
3980
|
) ? (z(), ue("div", pl, [
|
|
3981
|
-
|
|
3982
|
-
"model-value": ye(q(
|
|
3981
|
+
fe(a, {
|
|
3982
|
+
"model-value": ye(q(Z, X.label), K.builder),
|
|
3983
3983
|
disabled: e.disable,
|
|
3984
3984
|
"onUpdate:modelValue": (Te) => te(
|
|
3985
|
-
q(
|
|
3985
|
+
q(Z, X.label),
|
|
3986
3986
|
K.builder,
|
|
3987
3987
|
Te
|
|
3988
3988
|
)
|
|
3989
3989
|
}, {
|
|
3990
3990
|
default: ve(() => [
|
|
3991
3991
|
ae("div", null, [
|
|
3992
|
-
|
|
3992
|
+
fe(r, {
|
|
3993
3993
|
value: "inherit",
|
|
3994
3994
|
label: H(o)("team.memberForm.permissions.conditionCover.inherit", {
|
|
3995
|
-
cover: H(re).coverLabel(
|
|
3995
|
+
cover: H(re).coverLabel(Z)
|
|
3996
3996
|
})
|
|
3997
3997
|
}, null, 8, ["label"]),
|
|
3998
3998
|
H(re).inheritedSummary(
|
|
3999
|
-
q(
|
|
3999
|
+
q(Z, X.label),
|
|
4000
4000
|
K.builder,
|
|
4001
4001
|
N.value
|
|
4002
4002
|
) ? (z(), ue("p", bl, " (" + Oe(H(o)(
|
|
4003
4003
|
H(re).inheritedSummary(
|
|
4004
|
-
q(
|
|
4004
|
+
q(Z, X.label),
|
|
4005
4005
|
K.builder,
|
|
4006
4006
|
N.value
|
|
4007
4007
|
).labelKey,
|
|
4008
4008
|
H(re).inheritedSummary(
|
|
4009
|
-
q(
|
|
4009
|
+
q(Z, X.label),
|
|
4010
4010
|
K.builder,
|
|
4011
4011
|
N.value
|
|
4012
4012
|
).params ?? {}
|
|
4013
|
-
)) + ") ", 1)) :
|
|
4013
|
+
)) + ") ", 1)) : ke("", !0)
|
|
4014
4014
|
]),
|
|
4015
|
-
|
|
4015
|
+
fe(r, {
|
|
4016
4016
|
value: "custom",
|
|
4017
4017
|
label: H(o)("team.memberForm.permissions.conditionCover.custom")
|
|
4018
4018
|
}, null, 8, ["label"])
|
|
@@ -4020,39 +4020,39 @@ const cl = { class: "flex flex-col gap-32" }, ul = { class: "p-16 fm-corner-radi
|
|
|
4020
4020
|
_: 2
|
|
4021
4021
|
}, 1032, ["model-value", "disabled", "onUpdate:modelValue"]),
|
|
4022
4022
|
ye(
|
|
4023
|
-
q(
|
|
4023
|
+
q(Z, X.label),
|
|
4024
4024
|
K.builder
|
|
4025
4025
|
) === "custom" ? (z(), ue("div", vl, [
|
|
4026
|
-
|
|
4026
|
+
fe(nn, {
|
|
4027
4027
|
builder: K.builder,
|
|
4028
|
-
"model-value": _e(q(
|
|
4028
|
+
"model-value": _e(q(Z, X.label), K.builder),
|
|
4029
4029
|
disable: e.disable,
|
|
4030
4030
|
"onUpdate:modelValue": (Te) => je(
|
|
4031
|
-
q(
|
|
4031
|
+
q(Z, X.label),
|
|
4032
4032
|
K.builder,
|
|
4033
4033
|
Te
|
|
4034
4034
|
)
|
|
4035
4035
|
}, null, 8, ["builder", "model-value", "disable", "onUpdate:modelValue"])
|
|
4036
|
-
])) :
|
|
4036
|
+
])) : ke("", !0)
|
|
4037
4037
|
])) : (z(), we(nn, {
|
|
4038
4038
|
key: 2,
|
|
4039
4039
|
builder: K.builder,
|
|
4040
|
-
"model-value": _e(q(
|
|
4040
|
+
"model-value": _e(q(Z, X.label), K.builder),
|
|
4041
4041
|
disable: e.disable,
|
|
4042
4042
|
"onUpdate:modelValue": (Te) => je(
|
|
4043
|
-
q(
|
|
4043
|
+
q(Z, X.label),
|
|
4044
4044
|
K.builder,
|
|
4045
4045
|
Te
|
|
4046
4046
|
)
|
|
4047
4047
|
}, null, 8, ["builder", "model-value", "disable", "onUpdate:modelValue"]))
|
|
4048
4048
|
], 64))), 128)),
|
|
4049
4049
|
ae("div", hl, [
|
|
4050
|
-
|
|
4050
|
+
fe(I, {
|
|
4051
4051
|
label: H(o)("team.memberForm.permissions.conditionApply"),
|
|
4052
4052
|
size: "md",
|
|
4053
4053
|
variant: "primary",
|
|
4054
|
-
disabled: e.disable || !be(
|
|
4055
|
-
onClick: (K) => st(q(
|
|
4054
|
+
disabled: e.disable || !be(Z),
|
|
4055
|
+
onClick: (K) => st(q(Z, X.label), S)
|
|
4056
4056
|
}, null, 8, ["label", "disabled", "onClick"])
|
|
4057
4057
|
])
|
|
4058
4058
|
])
|
|
@@ -4069,46 +4069,46 @@ const cl = { class: "flex flex-col gap-32" }, ul = { class: "p-16 fm-corner-radi
|
|
|
4069
4069
|
]), 1032, ["model-value", "additional-permissions"])
|
|
4070
4070
|
]),
|
|
4071
4071
|
ae("div", gl, [
|
|
4072
|
-
|
|
4072
|
+
fe(Dn, {
|
|
4073
4073
|
"model-value": i.value,
|
|
4074
4074
|
options: g.value,
|
|
4075
4075
|
context: H(o)("team.labels.warehouse"),
|
|
4076
4076
|
"onUpdate:modelValue": _
|
|
4077
4077
|
}, Ke({ _: 2 }, [
|
|
4078
|
-
Ce(F.value, (
|
|
4079
|
-
name: `checkbox-${
|
|
4078
|
+
Ce(F.value, (Z) => ({
|
|
4079
|
+
name: `checkbox-${Z.id}-append`,
|
|
4080
4080
|
fn: ve(() => [
|
|
4081
|
-
|
|
4081
|
+
fe(bt, { item: Z }, null, 8, ["item"])
|
|
4082
4082
|
])
|
|
4083
4083
|
}))
|
|
4084
4084
|
]), 1032, ["model-value", "options", "context"])
|
|
4085
4085
|
]),
|
|
4086
4086
|
ae("div", Il, [
|
|
4087
|
-
|
|
4087
|
+
fe(Dn, {
|
|
4088
4088
|
"model-value": y.value,
|
|
4089
|
-
options:
|
|
4089
|
+
options: G.value,
|
|
4090
4090
|
context: H(o)("team.labels.restaurant"),
|
|
4091
|
-
"onUpdate:modelValue":
|
|
4091
|
+
"onUpdate:modelValue": x
|
|
4092
4092
|
}, Ke({ _: 2 }, [
|
|
4093
|
-
Ce(
|
|
4094
|
-
name: `checkbox-${
|
|
4093
|
+
Ce(f.value, (Z) => ({
|
|
4094
|
+
name: `checkbox-${Z.id}-append`,
|
|
4095
4095
|
fn: ve(() => [
|
|
4096
|
-
|
|
4096
|
+
fe(bt, { item: Z }, null, 8, ["item"])
|
|
4097
4097
|
])
|
|
4098
4098
|
}))
|
|
4099
4099
|
]), 1032, ["model-value", "options", "context"])
|
|
4100
4100
|
]),
|
|
4101
4101
|
ae("div", El, [
|
|
4102
|
-
|
|
4102
|
+
fe(tl, {
|
|
4103
4103
|
roles: H($),
|
|
4104
4104
|
"model-value": U.value,
|
|
4105
4105
|
"restaurant-ids": y.value,
|
|
4106
|
-
"onUpdate:modelValue":
|
|
4106
|
+
"onUpdate:modelValue": W
|
|
4107
4107
|
}, Ke({ _: 2 }, [
|
|
4108
|
-
Ce(p.value, (
|
|
4109
|
-
name: `checkbox-${
|
|
4108
|
+
Ce(p.value, (Z) => ({
|
|
4109
|
+
name: `checkbox-${Z.id}-append`,
|
|
4110
4110
|
fn: ve(() => [
|
|
4111
|
-
|
|
4111
|
+
fe(bt, { item: Z }, null, 8, ["item"])
|
|
4112
4112
|
])
|
|
4113
4113
|
}))
|
|
4114
4114
|
]), 1032, ["roles", "model-value", "restaurant-ids"])
|