@feedmepos/mf-hrm-portal 2.3.2-dev.18 → 2.3.2-dev.19
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-Cv4-P7fX.js → ApprovalCodeList-CiZcp75s.js} +7 -7
- package/dist/{AuditLogList-KH-H5uzM.js → AuditLogList-AVdhUk22.js} +5 -5
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BQq5xW8d.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CGsOJ4bA.js} +2 -2
- package/dist/{EmployeeList-BCjOwL1V.js → EmployeeList-DmB3wCwv.js} +8 -8
- package/dist/{FormSection.vue_vue_type_script_setup_true_lang-D4e5iSQq.js → FormSection.vue_vue_type_script_setup_true_lang-Qsc3hk6l.js} +1 -1
- package/dist/{GrantUserList-CfvdU440.js → GrantUserList-CUWnDKaH.js} +8 -8
- package/dist/{Main-CVF5eDBd.js → Main-CbJjQFFR.js} +10 -10
- package/dist/{Main-DKKGpzdb.js → Main-D7CAtkiV.js} +1328 -1339
- package/dist/{Main-YrCgPqZU.js → Main-DT4TJPRM.js} +5 -5
- package/dist/{MyPosProfile-z84_PtAn.js → MyPosProfile-EWK8IPlZ.js} +1 -1
- package/dist/{PermissionSetList-9xD_n1VF.js → PermissionSetList-D2HDsSFi.js} +6 -6
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-IX3av4mS.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BUSup81G.js} +551 -551
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-sPatt5hV.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-B1sb_3ow.js} +2 -2
- package/dist/{RoleForm.vue_vue_type_script_setup_true_lang-CSsgsqvl.js → RoleForm.vue_vue_type_script_setup_true_lang-D-Gve4l8.js} +9 -9
- package/dist/{RoleList-oSqkcGgN.js → RoleList-DRFTQcwP.js} +7 -7
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-qJhZA2DN.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-b96QQsiZ.js} +1 -1
- package/dist/{ScheduleGeneralPage-BxXDcGD4.js → ScheduleGeneralPage-DO6ZO_7t.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-Dcr2USSq.js → ScheduleModal.vue_vue_type_script_setup_true_lang-BG0-qg1-.js} +4 -4
- package/dist/{SchedulePage-C_M2ABMR.js → SchedulePage-m9fYfgEO.js} +9 -9
- package/dist/{SchedulePositionPage-XaIHUH4A.js → SchedulePositionPage-B9M8bgu1.js} +3 -3
- package/dist/{SelectFilter-BzqdpDfg.js → SelectFilter-qanI8DEh.js} +1 -1
- package/dist/{TeamMemberList--WEaatay.js → TeamMemberList-D7PIM3xv.js} +12 -12
- package/dist/TimesheetList-C_XQe3jl.js +408 -0
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-GIIAlhti.js → TimesheetList.vue_vue_type_style_index_0_scoped_ffd7f807_lang-D6qTouaS.js} +7 -7
- package/dist/{app-DSUfooPD.js → app-BuJGxfu4.js} +10 -10
- package/dist/app.js +1 -1
- package/dist/{approval-code-BZYlghBT.js → approval-code-HPeWQne5.js} +1 -1
- package/dist/{dayjs.min-5UvwoDGv.js → dayjs.min-CLUgksBW.js} +1 -1
- package/dist/employee-DrsTtOKq.js +237 -0
- package/dist/{grant-user-CgvKn27g.js → grant-user-J6TSUXHn.js} +1 -1
- package/dist/{iteration-BFI7vEBg.js → index-Dl7XhjSB.js} +573 -558
- package/dist/{lodash-DJ0F99PK.js → lodash-CMqarlaS.js} +1 -1
- package/dist/{member-grant-BmthjLCk.js → member-grant-BeNgG3hd.js} +2 -2
- package/dist/{restaurant-CeR-XM1L.js → restaurant-9Y8x8pCL.js} +1 -1
- package/dist/role-COuuwMES.js +91 -0
- package/dist/rule-50_hBJQJ.js +845 -0
- package/dist/src/helpers/employee-merge.d.ts +33 -0
- package/dist/src/helpers/iteration.d.ts +9 -2
- package/dist/src/helpers/restaurant-lookup.d.ts +19 -0
- package/dist/src/helpers/role-merge.d.ts +11 -0
- package/dist/src/views/hr/timesheet/timesheet-view.d.ts +29 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-KvMQH09O.js → useAppStore-BCvZUxKY.js} +1 -1
- package/dist/{useLoading-4s1zzjal.js → useLoading-BOt2Is3p.js} +1 -1
- package/dist/{useReportPermissions-BVxVU0SS.js → useReportPermissions-BVTpovDL.js} +3 -3
- package/dist/{useSsoProviders-CKRDQYcP.js → useSsoProviders-Bec-WHC7.js} +1 -1
- package/package.json +1 -1
- package/dist/TimesheetList-D6FG69-S.js +0 -402
- package/dist/employee-CT3TDtIM.js +0 -210
- package/dist/role-C2QeFrHr.js +0 -91
- package/dist/rule-CYsTf24V.js +0 -839
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
1
|
+
import { getCurrentInstance as Xt, inject as fr, ref as st, shallowRef as _r, computed as z, watch as Mt, onMounted as Wn, onUnmounted as pr, defineComponent as Re, h as Gn, createVNode as ce, Text as vr, Fragment as we, resolveComponent as Fe, createBlock as Oe, openBlock as K, withCtx as de, createElementVNode as ue, createElementBlock as re, toDisplayString as Le, unref as Y, renderList as Ne, toRef as qt, normalizeStyle as rt, renderSlot as ke, createCommentVNode as Te, normalizeClass as Ce, createTextVNode as hr, useSlots as br, createSlots as tt, mergeModels as en, useModel as gr } from "vue";
|
|
2
2
|
import { useI18n as ze, useCoreStore as yr } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialog as Ir, useBreakpoints as Er } from "@feedmepos/ui-library";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { p as Zn, N as
|
|
6
|
-
import { _ as Yt, a as
|
|
7
|
-
import { v as Mr, u as Yn, w as rn, x as sn, h as Dr, g as wr, b as Fr, C as
|
|
8
|
-
import { c as Hn } from "./
|
|
5
|
+
import { p as Zn, N as Xn, Y as tn, V as Cr, a as Nr, j as Tr, Q as Or, A as Sr, D as Lr, C as kr } from "./rule-50_hBJQJ.js";
|
|
6
|
+
import { _ as Yt, a as Ar, b as nn, u as Rr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CGsOJ4bA.js";
|
|
7
|
+
import { v as Mr, u as Yn, w as rn, x as sn, h as Dr, g as wr, b as Fr, C as Bn, S as Dt, A as nt, k as Ye, q as an } from "./app-BuJGxfu4.js";
|
|
8
|
+
import { c as Hn } from "./index-Dl7XhjSB.js";
|
|
9
9
|
import { r as Pr, s as Jn } from "./string-DZQ1uNjn.js";
|
|
10
|
-
import { W as jr } from "./member-grant-
|
|
11
|
-
import { u as
|
|
10
|
+
import { W as jr } from "./member-grant-BeNgG3hd.js";
|
|
11
|
+
import { u as Ur } from "./role-COuuwMES.js";
|
|
12
12
|
function St(e, t, n) {
|
|
13
13
|
const r = /* @__PURE__ */ new Map();
|
|
14
14
|
return e.forEach(
|
|
15
15
|
({ name: s, permissions: a }) => a.forEach(({ conditions: m, actions: d }) => {
|
|
16
|
-
var g,
|
|
16
|
+
var g, C;
|
|
17
17
|
const l = JSON.parse(m || "{}");
|
|
18
|
-
(g = l[t]) != null && g.$in ? (
|
|
19
|
-
(
|
|
20
|
-
) : d[0] === "manage" && n.forEach((
|
|
21
|
-
(r.get(
|
|
18
|
+
(g = l[t]) != null && g.$in ? (C = l[t]) == null || C.$in.forEach(
|
|
19
|
+
(N) => (r.get(N) ?? r.set(N, /* @__PURE__ */ new Set()).get(N)).add(s)
|
|
20
|
+
) : d[0] === "manage" && n.forEach((N) => {
|
|
21
|
+
(r.get(N) ?? r.set(N, /* @__PURE__ */ new Set()).get(N)).add(s);
|
|
22
22
|
});
|
|
23
23
|
})
|
|
24
24
|
), [...r].map(([s, a]) => ({
|
|
@@ -31,21 +31,21 @@ function St(e, t, n) {
|
|
|
31
31
|
* (c) 2024 kazuya kawaguchi
|
|
32
32
|
* Released under the MIT License.
|
|
33
33
|
*/
|
|
34
|
-
const on = typeof window < "u", Qe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
34
|
+
const on = typeof window < "u", Qe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), xr = (e, t, n) => Vr({ l: e, k: t, s: n }), Vr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ge = (e) => typeof e == "number" && isFinite(e), Wr = (e) => Bt(e) === "[object Date]", It = (e) => Bt(e) === "[object RegExp]", Ct = (e) => q(e) && Object.keys(e).length === 0, ye = Object.assign, Gr = Object.create, ae = (e = null) => Gr(e);
|
|
35
35
|
let ln;
|
|
36
36
|
const Ke = () => ln || (ln = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : ae());
|
|
37
37
|
function cn(e) {
|
|
38
38
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
39
39
|
}
|
|
40
40
|
const Zr = Object.prototype.hasOwnProperty;
|
|
41
|
-
function
|
|
41
|
+
function Ae(e, t) {
|
|
42
42
|
return Zr.call(e, t);
|
|
43
43
|
}
|
|
44
|
-
const be = Array.isArray, me = (e) => typeof e == "function", W = (e) => typeof e == "string", pe = (e) => typeof e == "boolean", ee = (e) => e !== null && typeof e == "object",
|
|
44
|
+
const be = Array.isArray, me = (e) => typeof e == "function", W = (e) => typeof e == "string", pe = (e) => typeof e == "boolean", ee = (e) => e !== null && typeof e == "object", Xr = (e) => ee(e) && me(e.then) && me(e.catch), $n = Object.prototype.toString, Bt = (e) => $n.call(e), q = (e) => Bt(e) === "[object Object]", Yr = (e) => e == null ? "" : be(e) || q(e) && e.toString === $n ? JSON.stringify(e, null, 2) : String(e);
|
|
45
45
|
function Ht(e, t = "") {
|
|
46
46
|
return e.reduce((n, r, s) => s === 0 ? n + r : n + t + r, "");
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Br(e, t) {
|
|
49
49
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
50
50
|
}
|
|
51
51
|
const ft = (e) => !ee(e) || be(e);
|
|
@@ -84,23 +84,23 @@ const ne = {
|
|
|
84
84
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
85
85
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
86
86
|
}, Jr = 17;
|
|
87
|
-
function
|
|
87
|
+
function Nt(e, t, n = {}) {
|
|
88
88
|
const { domain: r, messages: s, args: a } = n, m = e, d = new SyntaxError(String(m));
|
|
89
89
|
return d.code = e, t && (d.location = t), d.domain = r, d;
|
|
90
90
|
}
|
|
91
91
|
function $r(e) {
|
|
92
92
|
throw e;
|
|
93
93
|
}
|
|
94
|
-
const
|
|
94
|
+
const xe = " ", Kr = "\r", Ee = `
|
|
95
95
|
`, zr = "\u2028", Qr = "\u2029";
|
|
96
96
|
function qr(e) {
|
|
97
97
|
const t = e;
|
|
98
98
|
let n = 0, r = 1, s = 1, a = 0;
|
|
99
|
-
const m = (_) => t[_] === Kr && t[_ + 1] === Ee, d = (_) => t[_] === Ee, l = (_) => t[_] === Qr, g = (_) => t[_] === zr,
|
|
99
|
+
const m = (_) => t[_] === Kr && t[_ + 1] === Ee, d = (_) => t[_] === Ee, l = (_) => t[_] === Qr, g = (_) => t[_] === zr, C = (_) => m(_) || d(_) || l(_) || g(_), N = () => n, T = () => r, j = () => s, w = () => a, L = (_) => m(_) || l(_) || g(_) ? Ee : t[_], P = () => L(n), f = () => L(n + a);
|
|
100
100
|
function b() {
|
|
101
|
-
return a = 0,
|
|
101
|
+
return a = 0, C(n) && (r++, s = 0), m(n) && n++, n++, s++, t[n];
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function A() {
|
|
104
104
|
return m(n + a) && a++, a++, t[n + a];
|
|
105
105
|
}
|
|
106
106
|
function u() {
|
|
@@ -116,7 +116,7 @@ function qr(e) {
|
|
|
116
116
|
a = 0;
|
|
117
117
|
}
|
|
118
118
|
return {
|
|
119
|
-
index:
|
|
119
|
+
index: N,
|
|
120
120
|
line: T,
|
|
121
121
|
column: j,
|
|
122
122
|
peekOffset: w,
|
|
@@ -124,13 +124,13 @@ function qr(e) {
|
|
|
124
124
|
currentChar: P,
|
|
125
125
|
currentPeek: f,
|
|
126
126
|
next: b,
|
|
127
|
-
peek:
|
|
127
|
+
peek: A,
|
|
128
128
|
reset: u,
|
|
129
129
|
resetPeek: y,
|
|
130
130
|
skipToPeek: E
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
const
|
|
133
|
+
const Xe = void 0, es = ".", un = "'", ts = "tokenizer";
|
|
134
134
|
function ns(e, t = {}) {
|
|
135
135
|
const n = t.location !== !1, r = qr(e), s = () => r.index(), a = () => Hr(r.line(), r.column(), r.index()), m = a(), d = s(), l = {
|
|
136
136
|
currentType: 13,
|
|
@@ -144,15 +144,15 @@ function ns(e, t = {}) {
|
|
|
144
144
|
braceNest: 0,
|
|
145
145
|
inLinked: !1,
|
|
146
146
|
text: ""
|
|
147
|
-
}, g = () => l, { onError:
|
|
148
|
-
function
|
|
147
|
+
}, g = () => l, { onError: C } = t;
|
|
148
|
+
function N(o, i, c, ...h) {
|
|
149
149
|
const S = g();
|
|
150
|
-
if (i.column += c, i.offset += c,
|
|
151
|
-
const M = n ? wt(S.startLoc, i) : null, p =
|
|
150
|
+
if (i.column += c, i.offset += c, C) {
|
|
151
|
+
const M = n ? wt(S.startLoc, i) : null, p = Nt(o, M, {
|
|
152
152
|
domain: ts,
|
|
153
153
|
args: h
|
|
154
154
|
});
|
|
155
|
-
|
|
155
|
+
C(p);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
function T(o, i, c) {
|
|
@@ -166,11 +166,11 @@ function ns(e, t = {}) {
|
|
|
166
166
|
/* TokenTypes.EOF */
|
|
167
167
|
);
|
|
168
168
|
function w(o, i) {
|
|
169
|
-
return o.currentChar() === i ? (o.next(), i) : (
|
|
169
|
+
return o.currentChar() === i ? (o.next(), i) : (N(ne.EXPECTED_TOKEN, a(), 0, i), "");
|
|
170
170
|
}
|
|
171
171
|
function L(o) {
|
|
172
172
|
let i = "";
|
|
173
|
-
for (; o.currentPeek() ===
|
|
173
|
+
for (; o.currentPeek() === xe || o.currentPeek() === Ee; )
|
|
174
174
|
i += o.currentPeek(), o.peek();
|
|
175
175
|
return i;
|
|
176
176
|
}
|
|
@@ -179,7 +179,7 @@ function ns(e, t = {}) {
|
|
|
179
179
|
return o.skipToPeek(), i;
|
|
180
180
|
}
|
|
181
181
|
function f(o) {
|
|
182
|
-
if (o ===
|
|
182
|
+
if (o === Xe)
|
|
183
183
|
return !1;
|
|
184
184
|
const i = o.charCodeAt(0);
|
|
185
185
|
return i >= 97 && i <= 122 || // a-z
|
|
@@ -187,12 +187,12 @@ function ns(e, t = {}) {
|
|
|
187
187
|
i === 95;
|
|
188
188
|
}
|
|
189
189
|
function b(o) {
|
|
190
|
-
if (o ===
|
|
190
|
+
if (o === Xe)
|
|
191
191
|
return !1;
|
|
192
192
|
const i = o.charCodeAt(0);
|
|
193
193
|
return i >= 48 && i <= 57;
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function A(o, i) {
|
|
196
196
|
const { currentType: c } = i;
|
|
197
197
|
if (c !== 2)
|
|
198
198
|
return !1;
|
|
@@ -232,7 +232,7 @@ function ns(e, t = {}) {
|
|
|
232
232
|
const h = f(o.currentPeek());
|
|
233
233
|
return o.resetPeek(), h;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function R(o, i) {
|
|
236
236
|
const { currentType: c } = i;
|
|
237
237
|
if (!(c === 7 || c === 11))
|
|
238
238
|
return !1;
|
|
@@ -246,7 +246,7 @@ function ns(e, t = {}) {
|
|
|
246
246
|
return !1;
|
|
247
247
|
const h = () => {
|
|
248
248
|
const M = o.currentPeek();
|
|
249
|
-
return M === "{" ? f(o.peek()) : M === "@" || M === "|" || M === ":" || M === "." || M ===
|
|
249
|
+
return M === "{" ? f(o.peek()) : M === "@" || M === "|" || M === ":" || M === "." || M === xe || !M ? !1 : M === Ee ? (o.peek(), h()) : x(o, !1);
|
|
250
250
|
}, S = h();
|
|
251
251
|
return o.resetPeek(), S;
|
|
252
252
|
}
|
|
@@ -255,16 +255,16 @@ function ns(e, t = {}) {
|
|
|
255
255
|
const i = o.currentPeek() === "|";
|
|
256
256
|
return o.resetPeek(), i;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function x(o, i = !0) {
|
|
259
259
|
const c = (S = !1, M = "") => {
|
|
260
260
|
const p = o.currentPeek();
|
|
261
|
-
return p === "{" || p === "@" || !p ? S : p === "|" ? !(M ===
|
|
261
|
+
return p === "{" || p === "@" || !p ? S : p === "|" ? !(M === xe || M === Ee) : p === xe ? (o.peek(), c(!0, xe)) : p === Ee ? (o.peek(), c(!0, Ee)) : !0;
|
|
262
262
|
}, h = c();
|
|
263
263
|
return i && o.resetPeek(), h;
|
|
264
264
|
}
|
|
265
265
|
function F(o, i) {
|
|
266
266
|
const c = o.currentChar();
|
|
267
|
-
return c ===
|
|
267
|
+
return c === Xe ? Xe : i(c) ? (o.next(), c) : null;
|
|
268
268
|
}
|
|
269
269
|
function I(o) {
|
|
270
270
|
const i = o.charCodeAt(0);
|
|
@@ -296,16 +296,16 @@ function ns(e, t = {}) {
|
|
|
296
296
|
function H(o) {
|
|
297
297
|
return F(o, G);
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function U(o) {
|
|
300
300
|
const i = o.charCodeAt(0);
|
|
301
301
|
return i >= 48 && i <= 57 || // 0-9
|
|
302
302
|
i >= 65 && i <= 70 || // A-F
|
|
303
303
|
i >= 97 && i <= 102;
|
|
304
304
|
}
|
|
305
305
|
function J(o) {
|
|
306
|
-
return F(o,
|
|
306
|
+
return F(o, U);
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function B(o) {
|
|
309
309
|
let i = "", c = "";
|
|
310
310
|
for (; i = H(o); )
|
|
311
311
|
c += i;
|
|
@@ -317,8 +317,8 @@ function ns(e, t = {}) {
|
|
|
317
317
|
const c = o.currentChar();
|
|
318
318
|
if (c === "{" || c === "}" || c === "@" || c === "|" || !c)
|
|
319
319
|
break;
|
|
320
|
-
if (c ===
|
|
321
|
-
if (
|
|
320
|
+
if (c === xe || c === Ee)
|
|
321
|
+
if (x(o))
|
|
322
322
|
i += c, o.next();
|
|
323
323
|
else {
|
|
324
324
|
if ($(o))
|
|
@@ -335,12 +335,12 @@ function ns(e, t = {}) {
|
|
|
335
335
|
let i = "", c = "";
|
|
336
336
|
for (; i = O(o); )
|
|
337
337
|
c += i;
|
|
338
|
-
return o.currentChar() ===
|
|
338
|
+
return o.currentChar() === Xe && N(ne.UNTERMINATED_CLOSING_BRACE, a(), 0), c;
|
|
339
339
|
}
|
|
340
340
|
function fe(o) {
|
|
341
341
|
P(o);
|
|
342
342
|
let i = "";
|
|
343
|
-
return o.currentChar() === "-" ? (o.next(), i += `-${
|
|
343
|
+
return o.currentChar() === "-" ? (o.next(), i += `-${B(o)}`) : i += B(o), o.currentChar() === Xe && N(ne.UNTERMINATED_CLOSING_BRACE, a(), 0), i;
|
|
344
344
|
}
|
|
345
345
|
function Ie(o) {
|
|
346
346
|
return o !== un && o !== Ee;
|
|
@@ -351,7 +351,7 @@ function ns(e, t = {}) {
|
|
|
351
351
|
for (; i = F(o, Ie); )
|
|
352
352
|
i === "\\" ? c += oe(o) : c += i;
|
|
353
353
|
const h = o.currentChar();
|
|
354
|
-
return h === Ee || h ===
|
|
354
|
+
return h === Ee || h === Xe ? (N(ne.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), h === Ee && (o.next(), w(o, "'")), c) : (w(o, "'"), c);
|
|
355
355
|
}
|
|
356
356
|
function oe(o) {
|
|
357
357
|
const i = o.currentChar();
|
|
@@ -364,7 +364,7 @@ function ns(e, t = {}) {
|
|
|
364
364
|
case "U":
|
|
365
365
|
return ie(o, i, 6);
|
|
366
366
|
default:
|
|
367
|
-
return
|
|
367
|
+
return N(ne.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, i), "";
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
function ie(o, i, c) {
|
|
@@ -373,7 +373,7 @@ function ns(e, t = {}) {
|
|
|
373
373
|
for (let S = 0; S < c; S++) {
|
|
374
374
|
const M = J(o);
|
|
375
375
|
if (!M) {
|
|
376
|
-
|
|
376
|
+
N(ne.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${i}${h}${o.currentChar()}`);
|
|
377
377
|
break;
|
|
378
378
|
}
|
|
379
379
|
h += M;
|
|
@@ -381,9 +381,9 @@ function ns(e, t = {}) {
|
|
|
381
381
|
return `\\${i}${h}`;
|
|
382
382
|
}
|
|
383
383
|
function Pe(o) {
|
|
384
|
-
return o !== "{" && o !== "}" && o !==
|
|
384
|
+
return o !== "{" && o !== "}" && o !== xe && o !== Ee;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function X(o) {
|
|
387
387
|
P(o);
|
|
388
388
|
let i = "", c = "";
|
|
389
389
|
for (; i = F(o, Pe); )
|
|
@@ -399,7 +399,7 @@ function ns(e, t = {}) {
|
|
|
399
399
|
function $e(o) {
|
|
400
400
|
const i = (c) => {
|
|
401
401
|
const h = o.currentChar();
|
|
402
|
-
return h === "{" || h === "@" || h === "|" || h === "(" || h === ")" || !h || h ===
|
|
402
|
+
return h === "{" || h === "@" || h === "|" || h === "(" || h === ")" || !h || h === xe ? c : (c += h, o.next(), i(c));
|
|
403
403
|
};
|
|
404
404
|
return i("");
|
|
405
405
|
}
|
|
@@ -416,45 +416,45 @@ function ns(e, t = {}) {
|
|
|
416
416
|
let c = null;
|
|
417
417
|
switch (o.currentChar()) {
|
|
418
418
|
case "{":
|
|
419
|
-
return i.braceNest >= 1 &&
|
|
419
|
+
return i.braceNest >= 1 && N(ne.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), o.next(), c = T(
|
|
420
420
|
i,
|
|
421
421
|
2,
|
|
422
422
|
"{"
|
|
423
423
|
/* TokenChars.BraceLeft */
|
|
424
424
|
), P(o), i.braceNest++, c;
|
|
425
425
|
case "}":
|
|
426
|
-
return i.braceNest > 0 && i.currentType === 2 &&
|
|
426
|
+
return i.braceNest > 0 && i.currentType === 2 && N(ne.EMPTY_PLACEHOLDER, a(), 0), o.next(), c = T(
|
|
427
427
|
i,
|
|
428
428
|
3,
|
|
429
429
|
"}"
|
|
430
430
|
/* TokenChars.BraceRight */
|
|
431
431
|
), i.braceNest--, i.braceNest > 0 && P(o), i.inLinked && i.braceNest === 0 && (i.inLinked = !1), c;
|
|
432
432
|
case "@":
|
|
433
|
-
return i.braceNest > 0 &&
|
|
433
|
+
return i.braceNest > 0 && N(ne.UNTERMINATED_CLOSING_BRACE, a(), 0), c = Ue(o, i) || j(i), i.braceNest = 0, c;
|
|
434
434
|
default: {
|
|
435
435
|
let S = !0, M = !0, p = !0;
|
|
436
436
|
if ($(o))
|
|
437
|
-
return i.braceNest > 0 &&
|
|
437
|
+
return i.braceNest > 0 && N(ne.UNTERMINATED_CLOSING_BRACE, a(), 0), c = T(i, 1, Ge(o)), i.braceNest = 0, i.inLinked = !1, c;
|
|
438
438
|
if (i.braceNest > 0 && (i.currentType === 4 || i.currentType === 5 || i.currentType === 6))
|
|
439
|
-
return
|
|
440
|
-
if (S =
|
|
439
|
+
return N(ne.UNTERMINATED_CLOSING_BRACE, a(), 0), i.braceNest = 0, Ze(o, i);
|
|
440
|
+
if (S = A(o, i))
|
|
441
441
|
return c = T(i, 4, Q(o)), P(o), c;
|
|
442
442
|
if (M = u(o, i))
|
|
443
443
|
return c = T(i, 5, fe(o)), P(o), c;
|
|
444
444
|
if (p = y(o, i))
|
|
445
445
|
return c = T(i, 6, ve(o)), P(o), c;
|
|
446
446
|
if (!S && !M && !p)
|
|
447
|
-
return c = T(i, 12,
|
|
447
|
+
return c = T(i, 12, X(o)), N(ne.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, c.value), P(o), c;
|
|
448
448
|
break;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
return c;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Ue(o, i) {
|
|
454
454
|
const { currentType: c } = i;
|
|
455
455
|
let h = null;
|
|
456
456
|
const S = o.currentChar();
|
|
457
|
-
switch ((c === 7 || c === 8 || c === 11 || c === 9) && (S === Ee || S ===
|
|
457
|
+
switch ((c === 7 || c === 8 || c === 11 || c === 9) && (S === Ee || S === xe) && N(ne.INVALID_LINKED_FORMAT, a(), 0), S) {
|
|
458
458
|
case "@":
|
|
459
459
|
return o.next(), h = T(
|
|
460
460
|
i,
|
|
@@ -477,7 +477,7 @@ function ns(e, t = {}) {
|
|
|
477
477
|
/* TokenChars.LinkedDelimiter */
|
|
478
478
|
);
|
|
479
479
|
default:
|
|
480
|
-
return $(o) ? (h = T(i, 1, Ge(o)), i.braceNest = 0, i.inLinked = !1, h) : E(o, i) ||
|
|
480
|
+
return $(o) ? (h = T(i, 1, Ge(o)), i.braceNest = 0, i.inLinked = !1, h) : E(o, i) || R(o, i) ? (P(o), Ue(o, i)) : _(o, i) ? (P(o), T(i, 11, _e(o))) : k(o, i) ? (P(o), S === "{" ? je(o, i) || h : T(i, 10, $e(o))) : (c === 7 && N(ne.INVALID_LINKED_FORMAT, a(), 0), i.braceNest = 0, i.inLinked = !1, Ze(o, i));
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
483
|
function Ze(o, i) {
|
|
@@ -488,23 +488,23 @@ function ns(e, t = {}) {
|
|
|
488
488
|
if (i.braceNest > 0)
|
|
489
489
|
return je(o, i) || j(i);
|
|
490
490
|
if (i.inLinked)
|
|
491
|
-
return
|
|
491
|
+
return Ue(o, i) || j(i);
|
|
492
492
|
switch (o.currentChar()) {
|
|
493
493
|
case "{":
|
|
494
494
|
return je(o, i) || j(i);
|
|
495
495
|
case "}":
|
|
496
|
-
return
|
|
496
|
+
return N(ne.UNBALANCED_CLOSING_BRACE, a(), 0), o.next(), T(
|
|
497
497
|
i,
|
|
498
498
|
3,
|
|
499
499
|
"}"
|
|
500
500
|
/* TokenChars.BraceRight */
|
|
501
501
|
);
|
|
502
502
|
case "@":
|
|
503
|
-
return
|
|
503
|
+
return Ue(o, i) || j(i);
|
|
504
504
|
default: {
|
|
505
505
|
if ($(o))
|
|
506
506
|
return c = T(i, 1, Ge(o)), i.braceNest = 0, i.inLinked = !1, c;
|
|
507
|
-
if (
|
|
507
|
+
if (x(o))
|
|
508
508
|
return T(i, 0, se(o));
|
|
509
509
|
break;
|
|
510
510
|
}
|
|
@@ -513,7 +513,7 @@ function ns(e, t = {}) {
|
|
|
513
513
|
}
|
|
514
514
|
function qe() {
|
|
515
515
|
const { currentType: o, offset: i, startLoc: c, endLoc: h } = l;
|
|
516
|
-
return l.lastType = o, l.lastOffset = i, l.lastStartLoc = c, l.lastEndLoc = h, l.offset = s(), l.startLoc = a(), r.currentChar() ===
|
|
516
|
+
return l.lastType = o, l.lastOffset = i, l.lastStartLoc = c, l.lastEndLoc = h, l.offset = s(), l.startLoc = a(), r.currentChar() === Xe ? T(
|
|
517
517
|
l,
|
|
518
518
|
13
|
|
519
519
|
/* TokenTypes.EOF */
|
|
@@ -541,87 +541,87 @@ function as(e, t, n) {
|
|
|
541
541
|
}
|
|
542
542
|
function os(e = {}) {
|
|
543
543
|
const t = e.location !== !1, { onError: n } = e;
|
|
544
|
-
function r(f, b,
|
|
544
|
+
function r(f, b, A, u, ...y) {
|
|
545
545
|
const E = f.currentPosition();
|
|
546
546
|
if (E.offset += u, E.column += u, n) {
|
|
547
|
-
const _ = t ? wt(
|
|
547
|
+
const _ = t ? wt(A, E) : null, R = Nt(b, _, {
|
|
548
548
|
domain: rs,
|
|
549
549
|
args: y
|
|
550
550
|
});
|
|
551
|
-
n(
|
|
551
|
+
n(R);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
function s(f, b,
|
|
554
|
+
function s(f, b, A) {
|
|
555
555
|
const u = { type: f };
|
|
556
|
-
return t && (u.start = b, u.end = b, u.loc = { start:
|
|
556
|
+
return t && (u.start = b, u.end = b, u.loc = { start: A, end: A }), u;
|
|
557
557
|
}
|
|
558
|
-
function a(f, b,
|
|
559
|
-
t && (f.end = b, f.loc && (f.loc.end =
|
|
558
|
+
function a(f, b, A, u) {
|
|
559
|
+
t && (f.end = b, f.loc && (f.loc.end = A));
|
|
560
560
|
}
|
|
561
561
|
function m(f, b) {
|
|
562
|
-
const
|
|
562
|
+
const A = f.context(), u = s(3, A.offset, A.startLoc);
|
|
563
563
|
return u.value = b, a(u, f.currentOffset(), f.currentPosition()), u;
|
|
564
564
|
}
|
|
565
565
|
function d(f, b) {
|
|
566
|
-
const
|
|
566
|
+
const A = f.context(), { lastOffset: u, lastStartLoc: y } = A, E = s(5, u, y);
|
|
567
567
|
return E.index = parseInt(b, 10), f.nextToken(), a(E, f.currentOffset(), f.currentPosition()), E;
|
|
568
568
|
}
|
|
569
569
|
function l(f, b) {
|
|
570
|
-
const
|
|
570
|
+
const A = f.context(), { lastOffset: u, lastStartLoc: y } = A, E = s(4, u, y);
|
|
571
571
|
return E.key = b, f.nextToken(), a(E, f.currentOffset(), f.currentPosition()), E;
|
|
572
572
|
}
|
|
573
573
|
function g(f, b) {
|
|
574
|
-
const
|
|
574
|
+
const A = f.context(), { lastOffset: u, lastStartLoc: y } = A, E = s(9, u, y);
|
|
575
575
|
return E.value = b.replace(ss, as), f.nextToken(), a(E, f.currentOffset(), f.currentPosition()), E;
|
|
576
576
|
}
|
|
577
|
-
function
|
|
578
|
-
const b = f.nextToken(),
|
|
579
|
-
return b.type !== 11 ? (r(f, ne.UNEXPECTED_EMPTY_LINKED_MODIFIER,
|
|
577
|
+
function C(f) {
|
|
578
|
+
const b = f.nextToken(), A = f.context(), { lastOffset: u, lastStartLoc: y } = A, E = s(8, u, y);
|
|
579
|
+
return b.type !== 11 ? (r(f, ne.UNEXPECTED_EMPTY_LINKED_MODIFIER, A.lastStartLoc, 0), E.value = "", a(E, u, y), {
|
|
580
580
|
nextConsumeToken: b,
|
|
581
581
|
node: E
|
|
582
|
-
}) : (b.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
582
|
+
}) : (b.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, De(b)), E.value = b.value || "", a(E, f.currentOffset(), f.currentPosition()), {
|
|
583
583
|
node: E
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
|
-
function
|
|
587
|
-
const
|
|
586
|
+
function N(f, b) {
|
|
587
|
+
const A = f.context(), u = s(7, A.offset, A.startLoc);
|
|
588
588
|
return u.value = b, a(u, f.currentOffset(), f.currentPosition()), u;
|
|
589
589
|
}
|
|
590
590
|
function T(f) {
|
|
591
|
-
const b = f.context(),
|
|
591
|
+
const b = f.context(), A = s(6, b.offset, b.startLoc);
|
|
592
592
|
let u = f.nextToken();
|
|
593
593
|
if (u.type === 8) {
|
|
594
|
-
const y =
|
|
595
|
-
|
|
594
|
+
const y = C(f);
|
|
595
|
+
A.modifier = y.node, u = y.nextConsumeToken || f.nextToken();
|
|
596
596
|
}
|
|
597
597
|
switch (u.type !== 9 && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, De(u)), u = f.nextToken(), u.type === 2 && (u = f.nextToken()), u.type) {
|
|
598
598
|
case 10:
|
|
599
|
-
u.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, De(u)),
|
|
599
|
+
u.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, De(u)), A.key = N(f, u.value || "");
|
|
600
600
|
break;
|
|
601
601
|
case 4:
|
|
602
|
-
u.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, De(u)),
|
|
602
|
+
u.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, De(u)), A.key = l(f, u.value || "");
|
|
603
603
|
break;
|
|
604
604
|
case 5:
|
|
605
|
-
u.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, De(u)),
|
|
605
|
+
u.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, De(u)), A.key = d(f, u.value || "");
|
|
606
606
|
break;
|
|
607
607
|
case 6:
|
|
608
|
-
u.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, De(u)),
|
|
608
|
+
u.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, De(u)), A.key = g(f, u.value || "");
|
|
609
609
|
break;
|
|
610
610
|
default: {
|
|
611
611
|
r(f, ne.UNEXPECTED_EMPTY_LINKED_KEY, b.lastStartLoc, 0);
|
|
612
612
|
const y = f.context(), E = s(7, y.offset, y.startLoc);
|
|
613
|
-
return E.value = "", a(E, y.offset, y.startLoc),
|
|
613
|
+
return E.value = "", a(E, y.offset, y.startLoc), A.key = E, a(A, y.offset, y.startLoc), {
|
|
614
614
|
nextConsumeToken: u,
|
|
615
|
-
node:
|
|
615
|
+
node: A
|
|
616
616
|
};
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
return a(
|
|
620
|
-
node:
|
|
619
|
+
return a(A, f.currentOffset(), f.currentPosition()), {
|
|
620
|
+
node: A
|
|
621
621
|
};
|
|
622
622
|
}
|
|
623
623
|
function j(f) {
|
|
624
|
-
const b = f.context(),
|
|
624
|
+
const b = f.context(), A = b.currentType === 1 ? f.currentOffset() : b.offset, u = b.currentType === 1 ? b.endLoc : b.startLoc, y = s(2, A, u);
|
|
625
625
|
y.items = [];
|
|
626
626
|
let E = null;
|
|
627
627
|
do {
|
|
@@ -646,27 +646,27 @@ function os(e = {}) {
|
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
648
|
} while (b.currentType !== 13 && b.currentType !== 1);
|
|
649
|
-
const _ = b.currentType === 1 ? b.lastOffset : f.currentOffset(),
|
|
650
|
-
return a(y, _,
|
|
649
|
+
const _ = b.currentType === 1 ? b.lastOffset : f.currentOffset(), R = b.currentType === 1 ? b.lastEndLoc : f.currentPosition();
|
|
650
|
+
return a(y, _, R), y;
|
|
651
651
|
}
|
|
652
|
-
function w(f, b,
|
|
652
|
+
function w(f, b, A, u) {
|
|
653
653
|
const y = f.context();
|
|
654
654
|
let E = u.items.length === 0;
|
|
655
|
-
const _ = s(1, b,
|
|
655
|
+
const _ = s(1, b, A);
|
|
656
656
|
_.cases = [], _.cases.push(u);
|
|
657
657
|
do {
|
|
658
|
-
const
|
|
659
|
-
E || (E =
|
|
658
|
+
const R = j(f);
|
|
659
|
+
E || (E = R.items.length === 0), _.cases.push(R);
|
|
660
660
|
} while (y.currentType !== 13);
|
|
661
|
-
return E && r(f, ne.MUST_HAVE_MESSAGES_IN_PLURAL,
|
|
661
|
+
return E && r(f, ne.MUST_HAVE_MESSAGES_IN_PLURAL, A, 0), a(_, f.currentOffset(), f.currentPosition()), _;
|
|
662
662
|
}
|
|
663
663
|
function L(f) {
|
|
664
|
-
const b = f.context(), { offset:
|
|
665
|
-
return b.currentType === 13 ? y : w(f,
|
|
664
|
+
const b = f.context(), { offset: A, startLoc: u } = b, y = j(f);
|
|
665
|
+
return b.currentType === 13 ? y : w(f, A, u, y);
|
|
666
666
|
}
|
|
667
667
|
function P(f) {
|
|
668
|
-
const b = ns(f, ye({}, e)),
|
|
669
|
-
return t && u.loc && (u.loc.source = f), u.body = L(b), e.onCacheKey && (u.cacheKey = e.onCacheKey(f)),
|
|
668
|
+
const b = ns(f, ye({}, e)), A = b.context(), u = s(0, A.offset, A.startLoc);
|
|
669
|
+
return t && u.loc && (u.loc.source = f), u.body = L(b), e.onCacheKey && (u.cacheKey = e.onCacheKey(f)), A.currentType !== 13 && r(b, ne.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, f[A.offset] || ""), a(u, b.currentOffset(), b.currentPosition()), u;
|
|
670
670
|
}
|
|
671
671
|
return { parse: P };
|
|
672
672
|
}
|
|
@@ -830,11 +830,11 @@ function us(e, t) {
|
|
|
830
830
|
const f = P ? r : "";
|
|
831
831
|
l(s ? f + " ".repeat(L) : f);
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function C(L = !0) {
|
|
834
834
|
const P = ++m.indentLevel;
|
|
835
835
|
L && g(P);
|
|
836
836
|
}
|
|
837
|
-
function
|
|
837
|
+
function N(L = !0) {
|
|
838
838
|
const P = --m.indentLevel;
|
|
839
839
|
L && g(P);
|
|
840
840
|
}
|
|
@@ -844,8 +844,8 @@ function us(e, t) {
|
|
|
844
844
|
return {
|
|
845
845
|
context: d,
|
|
846
846
|
push: l,
|
|
847
|
-
indent:
|
|
848
|
-
deindent:
|
|
847
|
+
indent: C,
|
|
848
|
+
deindent: N,
|
|
849
849
|
newline: T,
|
|
850
850
|
helper: (L) => `_${L}`,
|
|
851
851
|
needIndent: () => m.needIndent
|
|
@@ -941,7 +941,7 @@ const ps = (e, t = {}) => {
|
|
|
941
941
|
breakLineCode: s,
|
|
942
942
|
needIndent: a
|
|
943
943
|
});
|
|
944
|
-
d.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), d.indent(a), m.length > 0 && (d.push(`const { ${Ht(m.map((
|
|
944
|
+
d.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), d.indent(a), m.length > 0 && (d.push(`const { ${Ht(m.map((C) => `${C}: _${C}`), ", ")} } = ctx`), d.newline()), d.push("return "), at(d, e), d.deindent(a), d.push("}"), delete e.helpers;
|
|
945
945
|
const { code: l, map: g } = d.context();
|
|
946
946
|
return {
|
|
947
947
|
ast: e,
|
|
@@ -969,7 +969,7 @@ function gs(e, t) {
|
|
|
969
969
|
/* NodeTypes.Resource */
|
|
970
970
|
);
|
|
971
971
|
if ($t(n) === 1) {
|
|
972
|
-
const a =
|
|
972
|
+
const a = Cs(n);
|
|
973
973
|
return e.plural(a.reduce((m, d) => [
|
|
974
974
|
...m,
|
|
975
975
|
fn(e, d)
|
|
@@ -982,7 +982,7 @@ function Is(e) {
|
|
|
982
982
|
return He(e, ys);
|
|
983
983
|
}
|
|
984
984
|
const Es = ["c", "cases"];
|
|
985
|
-
function
|
|
985
|
+
function Cs(e) {
|
|
986
986
|
return He(e, Es, []);
|
|
987
987
|
}
|
|
988
988
|
function fn(e, t) {
|
|
@@ -994,9 +994,9 @@ function fn(e, t) {
|
|
|
994
994
|
return e.normalize(r);
|
|
995
995
|
}
|
|
996
996
|
}
|
|
997
|
-
const
|
|
997
|
+
const Ns = ["s", "static"];
|
|
998
998
|
function Ts(e) {
|
|
999
|
-
return He(e,
|
|
999
|
+
return He(e, Ns);
|
|
1000
1000
|
}
|
|
1001
1001
|
const Os = ["i", "items"];
|
|
1002
1002
|
function Ss(e) {
|
|
@@ -1011,22 +1011,22 @@ function Ft(e, t) {
|
|
|
1011
1011
|
return _t(t, n);
|
|
1012
1012
|
case 4: {
|
|
1013
1013
|
const r = t;
|
|
1014
|
-
if (
|
|
1014
|
+
if (Ae(r, "k") && r.k)
|
|
1015
1015
|
return e.interpolate(e.named(r.k));
|
|
1016
|
-
if (
|
|
1016
|
+
if (Ae(r, "key") && r.key)
|
|
1017
1017
|
return e.interpolate(e.named(r.key));
|
|
1018
1018
|
throw ct(n);
|
|
1019
1019
|
}
|
|
1020
1020
|
case 5: {
|
|
1021
1021
|
const r = t;
|
|
1022
|
-
if (
|
|
1022
|
+
if (Ae(r, "i") && ge(r.i))
|
|
1023
1023
|
return e.interpolate(e.list(r.i));
|
|
1024
|
-
if (
|
|
1024
|
+
if (Ae(r, "index") && ge(r.index))
|
|
1025
1025
|
return e.interpolate(e.list(r.index));
|
|
1026
1026
|
throw ct(n);
|
|
1027
1027
|
}
|
|
1028
1028
|
case 6: {
|
|
1029
|
-
const r = t, s =
|
|
1029
|
+
const r = t, s = Rs(r), a = Ds(r);
|
|
1030
1030
|
return e.linked(Ft(e, a), s ? Ft(e, s) : void 0, e.type);
|
|
1031
1031
|
}
|
|
1032
1032
|
case 7:
|
|
@@ -1048,9 +1048,9 @@ function _t(e, t) {
|
|
|
1048
1048
|
return n;
|
|
1049
1049
|
throw ct(t);
|
|
1050
1050
|
}
|
|
1051
|
-
const
|
|
1052
|
-
function
|
|
1053
|
-
return He(e,
|
|
1051
|
+
const As = ["m", "modifier"];
|
|
1052
|
+
function Rs(e) {
|
|
1053
|
+
return He(e, As);
|
|
1054
1054
|
}
|
|
1055
1055
|
const Ms = ["k", "key"];
|
|
1056
1056
|
function Ds(e) {
|
|
@@ -1065,7 +1065,7 @@ function Ds(e) {
|
|
|
1065
1065
|
function He(e, t, n) {
|
|
1066
1066
|
for (let r = 0; r < t.length; r++) {
|
|
1067
1067
|
const s = t[r];
|
|
1068
|
-
if (
|
|
1068
|
+
if (Ae(e, s) && e[s] != null)
|
|
1069
1069
|
return e[s];
|
|
1070
1070
|
}
|
|
1071
1071
|
return n;
|
|
@@ -1076,7 +1076,7 @@ function ct(e) {
|
|
|
1076
1076
|
const ws = (e) => e;
|
|
1077
1077
|
let pt = ae();
|
|
1078
1078
|
function ot(e) {
|
|
1079
|
-
return ee(e) && $t(e) === 0 && (
|
|
1079
|
+
return ee(e) && $t(e) === 0 && (Ae(e, "b") || Ae(e, "body"));
|
|
1080
1080
|
}
|
|
1081
1081
|
function Fs(e, t = {}) {
|
|
1082
1082
|
let n = !1;
|
|
@@ -1111,7 +1111,7 @@ let ut = null;
|
|
|
1111
1111
|
function js(e) {
|
|
1112
1112
|
ut = e;
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1114
|
+
function Us(e, t, n) {
|
|
1115
1115
|
ut && ut.emit("i18n:init", {
|
|
1116
1116
|
timestamp: Date.now(),
|
|
1117
1117
|
i18n: e,
|
|
@@ -1119,7 +1119,7 @@ function xs(e, t, n) {
|
|
|
1119
1119
|
meta: n
|
|
1120
1120
|
});
|
|
1121
1121
|
}
|
|
1122
|
-
const
|
|
1122
|
+
const xs = /* @__PURE__ */ Vs("function:translate");
|
|
1123
1123
|
function Vs(e) {
|
|
1124
1124
|
return (t) => ut && ut.emit(e, t);
|
|
1125
1125
|
}
|
|
@@ -1133,7 +1133,7 @@ const Ve = {
|
|
|
1133
1133
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1134
1134
|
}, Ws = 24;
|
|
1135
1135
|
function We(e) {
|
|
1136
|
-
return
|
|
1136
|
+
return Nt(e, null, void 0);
|
|
1137
1137
|
}
|
|
1138
1138
|
function Kt(e, t) {
|
|
1139
1139
|
return t.locale != null ? _n(t.locale) : _n(e.locale);
|
|
@@ -1147,7 +1147,7 @@ function _n(e) {
|
|
|
1147
1147
|
return kt;
|
|
1148
1148
|
if (e.constructor.name === "Function") {
|
|
1149
1149
|
const t = e();
|
|
1150
|
-
if (
|
|
1150
|
+
if (Xr(t))
|
|
1151
1151
|
throw We(Ve.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1152
1152
|
return kt = t;
|
|
1153
1153
|
} else
|
|
@@ -1188,11 +1188,11 @@ function Zs(e, t, n) {
|
|
|
1188
1188
|
const s = t.split("-");
|
|
1189
1189
|
do {
|
|
1190
1190
|
const a = s.join("-");
|
|
1191
|
-
r =
|
|
1191
|
+
r = Xs(e, a, n), s.splice(-1, 1);
|
|
1192
1192
|
} while (s.length && r === !0);
|
|
1193
1193
|
return r;
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1195
|
+
function Xs(e, t, n) {
|
|
1196
1196
|
let r = !1;
|
|
1197
1197
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1198
1198
|
r = t[t.length - 1] !== "!";
|
|
@@ -1363,7 +1363,7 @@ Je[
|
|
|
1363
1363
|
]
|
|
1364
1364
|
};
|
|
1365
1365
|
const Ys = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1366
|
-
function
|
|
1366
|
+
function Bs(e) {
|
|
1367
1367
|
return Ys.test(e);
|
|
1368
1368
|
}
|
|
1369
1369
|
function Hs(e) {
|
|
@@ -1397,11 +1397,11 @@ function Js(e) {
|
|
|
1397
1397
|
}
|
|
1398
1398
|
function $s(e) {
|
|
1399
1399
|
const t = e.trim();
|
|
1400
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1400
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Bs(t) ? Hs(t) : "*" + t;
|
|
1401
1401
|
}
|
|
1402
1402
|
function Ks(e) {
|
|
1403
1403
|
const t = [];
|
|
1404
|
-
let n = -1, r = 0, s = 0, a, m, d, l, g,
|
|
1404
|
+
let n = -1, r = 0, s = 0, a, m, d, l, g, C, N;
|
|
1405
1405
|
const T = [];
|
|
1406
1406
|
T[
|
|
1407
1407
|
0
|
|
@@ -1449,7 +1449,7 @@ function Ks(e) {
|
|
|
1449
1449
|
}
|
|
1450
1450
|
for (; r !== null; )
|
|
1451
1451
|
if (n++, a = e[n], !(a === "\\" && j())) {
|
|
1452
|
-
if (l = Js(a),
|
|
1452
|
+
if (l = Js(a), N = Je[r], g = N[l] || N.l || 8, g === 8 || (r = g[0], g[1] !== void 0 && (C = T[g[1]], C && (d = a, C() === !1))))
|
|
1453
1453
|
return;
|
|
1454
1454
|
if (r === 7)
|
|
1455
1455
|
return t;
|
|
@@ -1505,7 +1505,7 @@ const gn = (e) => {
|
|
|
1505
1505
|
}, oa = () => tr;
|
|
1506
1506
|
let yn = 0;
|
|
1507
1507
|
function la(e = {}) {
|
|
1508
|
-
const t = me(e.onWarn) ? e.onWarn :
|
|
1508
|
+
const t = me(e.onWarn) ? e.onWarn : Br, n = W(e.version) ? e.version : qs, r = W(e.locale) || me(e.locale) ? e.locale : Et, s = me(r) ? Et : r, a = be(e.fallbackLocale) || q(e.fallbackLocale) || W(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, m = q(e.messages) ? e.messages : At(s), d = q(e.datetimeFormats) ? e.datetimeFormats : At(s), l = q(e.numberFormats) ? e.numberFormats : At(s), g = ye(ae(), e.modifiers, ea()), C = e.pluralRules || ae(), N = me(e.missing) ? e.missing : null, T = pe(e.missingWarn) || It(e.missingWarn) ? e.missingWarn : !0, j = pe(e.fallbackWarn) || It(e.fallbackWarn) ? e.fallbackWarn : !0, w = !!e.fallbackFormat, L = !!e.unresolving, P = me(e.postTranslation) ? e.postTranslation : null, f = q(e.processor) ? e.processor : null, b = pe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, A = !!e.escapeParameter, u = me(e.messageCompiler) ? e.messageCompiler : zn, y = me(e.messageResolver) ? e.messageResolver : Qn || zs, E = me(e.localeFallbacker) ? e.localeFallbacker : qn || Gs, _ = ee(e.fallbackContext) ? e.fallbackContext : void 0, R = e, k = ee(R.__datetimeFormatters) ? R.__datetimeFormatters : /* @__PURE__ */ new Map(), $ = ee(R.__numberFormatters) ? R.__numberFormatters : /* @__PURE__ */ new Map(), x = ee(R.__meta) ? R.__meta : {};
|
|
1509
1509
|
yn++;
|
|
1510
1510
|
const F = {
|
|
1511
1511
|
version: n,
|
|
@@ -1514,8 +1514,8 @@ function la(e = {}) {
|
|
|
1514
1514
|
fallbackLocale: a,
|
|
1515
1515
|
messages: m,
|
|
1516
1516
|
modifiers: g,
|
|
1517
|
-
pluralRules:
|
|
1518
|
-
missing:
|
|
1517
|
+
pluralRules: C,
|
|
1518
|
+
missing: N,
|
|
1519
1519
|
missingWarn: T,
|
|
1520
1520
|
fallbackWarn: j,
|
|
1521
1521
|
fallbackFormat: w,
|
|
@@ -1523,17 +1523,17 @@ function la(e = {}) {
|
|
|
1523
1523
|
postTranslation: P,
|
|
1524
1524
|
processor: f,
|
|
1525
1525
|
warnHtmlMessage: b,
|
|
1526
|
-
escapeParameter:
|
|
1526
|
+
escapeParameter: A,
|
|
1527
1527
|
messageCompiler: u,
|
|
1528
1528
|
messageResolver: y,
|
|
1529
1529
|
localeFallbacker: E,
|
|
1530
1530
|
fallbackContext: _,
|
|
1531
1531
|
onWarn: t,
|
|
1532
|
-
__meta:
|
|
1532
|
+
__meta: x
|
|
1533
1533
|
};
|
|
1534
|
-
return F.datetimeFormats = d, F.numberFormats = l, F.__datetimeFormatters = k, F.__numberFormatters = $, __INTLIFY_PROD_DEVTOOLS__ &&
|
|
1534
|
+
return F.datetimeFormats = d, F.numberFormats = l, F.__datetimeFormatters = k, F.__numberFormatters = $, __INTLIFY_PROD_DEVTOOLS__ && Us(F, n, x), F;
|
|
1535
1535
|
}
|
|
1536
|
-
const
|
|
1536
|
+
const At = (e) => ({ [e]: ae() });
|
|
1537
1537
|
function zt(e, t, n, r, s) {
|
|
1538
1538
|
const { missing: a, onWarn: m } = e;
|
|
1539
1539
|
if (a !== null) {
|
|
@@ -1559,26 +1559,26 @@ function ca(e, t) {
|
|
|
1559
1559
|
return !1;
|
|
1560
1560
|
}
|
|
1561
1561
|
function In(e, ...t) {
|
|
1562
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: s, onWarn: a, localeFallbacker: m } = e, { __datetimeFormatters: d } = e, [l, g,
|
|
1563
|
-
pe(
|
|
1564
|
-
const j = !!
|
|
1562
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: s, onWarn: a, localeFallbacker: m } = e, { __datetimeFormatters: d } = e, [l, g, C, N] = Pt(...t), T = pe(C.missingWarn) ? C.missingWarn : e.missingWarn;
|
|
1563
|
+
pe(C.fallbackWarn) ? C.fallbackWarn : e.fallbackWarn;
|
|
1564
|
+
const j = !!C.part, w = Kt(e, C), L = m(
|
|
1565
1565
|
e,
|
|
1566
1566
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1567
1567
|
s,
|
|
1568
1568
|
w
|
|
1569
1569
|
);
|
|
1570
1570
|
if (!W(l) || l === "")
|
|
1571
|
-
return new Intl.DateTimeFormat(w,
|
|
1571
|
+
return new Intl.DateTimeFormat(w, N).format(g);
|
|
1572
1572
|
let P = {}, f, b = null;
|
|
1573
|
-
const
|
|
1573
|
+
const A = "datetime format";
|
|
1574
1574
|
for (let E = 0; E < L.length && (f = L[E], P = n[f] || {}, b = P[l], !q(b)); E++)
|
|
1575
|
-
zt(e, l, f, T,
|
|
1575
|
+
zt(e, l, f, T, A);
|
|
1576
1576
|
if (!q(b) || !W(f))
|
|
1577
1577
|
return r ? Tt : l;
|
|
1578
1578
|
let u = `${f}__${l}`;
|
|
1579
|
-
|
|
1579
|
+
Ct(N) || (u = `${u}__${JSON.stringify(N)}`);
|
|
1580
1580
|
let y = d.get(u);
|
|
1581
|
-
return y || (y = new Intl.DateTimeFormat(f, ye({}, b,
|
|
1581
|
+
return y || (y = new Intl.DateTimeFormat(f, ye({}, b, N)), d.set(u, y)), j ? y.formatToParts(g) : y.format(g);
|
|
1582
1582
|
}
|
|
1583
1583
|
const nr = [
|
|
1584
1584
|
"localeMatcher",
|
|
@@ -1635,27 +1635,27 @@ function En(e, t, n) {
|
|
|
1635
1635
|
r.__datetimeFormatters.has(a) && r.__datetimeFormatters.delete(a);
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
1638
|
-
function
|
|
1639
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: s, onWarn: a, localeFallbacker: m } = e, { __numberFormatters: d } = e, [l, g,
|
|
1640
|
-
pe(
|
|
1641
|
-
const j = !!
|
|
1638
|
+
function Cn(e, ...t) {
|
|
1639
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: s, onWarn: a, localeFallbacker: m } = e, { __numberFormatters: d } = e, [l, g, C, N] = jt(...t), T = pe(C.missingWarn) ? C.missingWarn : e.missingWarn;
|
|
1640
|
+
pe(C.fallbackWarn) ? C.fallbackWarn : e.fallbackWarn;
|
|
1641
|
+
const j = !!C.part, w = Kt(e, C), L = m(
|
|
1642
1642
|
e,
|
|
1643
1643
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1644
1644
|
s,
|
|
1645
1645
|
w
|
|
1646
1646
|
);
|
|
1647
1647
|
if (!W(l) || l === "")
|
|
1648
|
-
return new Intl.NumberFormat(w,
|
|
1648
|
+
return new Intl.NumberFormat(w, N).format(g);
|
|
1649
1649
|
let P = {}, f, b = null;
|
|
1650
|
-
const
|
|
1650
|
+
const A = "number format";
|
|
1651
1651
|
for (let E = 0; E < L.length && (f = L[E], P = n[f] || {}, b = P[l], !q(b)); E++)
|
|
1652
|
-
zt(e, l, f, T,
|
|
1652
|
+
zt(e, l, f, T, A);
|
|
1653
1653
|
if (!q(b) || !W(f))
|
|
1654
1654
|
return r ? Tt : l;
|
|
1655
1655
|
let u = `${f}__${l}`;
|
|
1656
|
-
|
|
1656
|
+
Ct(N) || (u = `${u}__${JSON.stringify(N)}`);
|
|
1657
1657
|
let y = d.get(u);
|
|
1658
|
-
return y || (y = new Intl.NumberFormat(f, ye({}, b,
|
|
1658
|
+
return y || (y = new Intl.NumberFormat(f, ye({}, b, N)), d.set(u, y)), j ? y.formatToParts(g) : y.format(g);
|
|
1659
1659
|
}
|
|
1660
1660
|
const rr = [
|
|
1661
1661
|
"localeMatcher",
|
|
@@ -1689,7 +1689,7 @@ function jt(...e) {
|
|
|
1689
1689
|
rr.includes(l) ? m[l] = n[l] : a[l] = n[l];
|
|
1690
1690
|
}), W(r) ? a.locale = r : q(r) && (m = r), q(s) && (m = s), [a.key || "", d, a, m];
|
|
1691
1691
|
}
|
|
1692
|
-
function
|
|
1692
|
+
function Nn(e, t, n) {
|
|
1693
1693
|
const r = e;
|
|
1694
1694
|
for (const s in n) {
|
|
1695
1695
|
const a = `${t}__${s}`;
|
|
@@ -1711,25 +1711,25 @@ function ha(e = {}) {
|
|
|
1711
1711
|
const t = e.locale, n = pa(e), r = ee(e.pluralRules) && W(t) && me(e.pluralRules[t]) ? e.pluralRules[t] : Tn, s = ee(e.pluralRules) && W(t) && me(e.pluralRules[t]) ? Tn : void 0, a = (f) => f[r(n, f.length, s)], m = e.list || [], d = (f) => m[f], l = e.named || ae();
|
|
1712
1712
|
ge(e.pluralIndex) && va(n, l);
|
|
1713
1713
|
const g = (f) => l[f];
|
|
1714
|
-
function
|
|
1715
|
-
const
|
|
1716
|
-
return
|
|
1714
|
+
function C(f, b) {
|
|
1715
|
+
const A = me(e.messages) ? e.messages(f, !!b) : ee(e.messages) ? e.messages[f] : !1;
|
|
1716
|
+
return A || (e.parent ? e.parent.message(f) : da);
|
|
1717
1717
|
}
|
|
1718
|
-
const
|
|
1718
|
+
const N = (f) => e.modifiers ? e.modifiers[f] : ua, T = q(e.processor) && me(e.processor.normalize) ? e.processor.normalize : fa, j = q(e.processor) && me(e.processor.interpolate) ? e.processor.interpolate : _a, w = q(e.processor) && W(e.processor.type) ? e.processor.type : ma, P = {
|
|
1719
1719
|
list: d,
|
|
1720
1720
|
named: g,
|
|
1721
1721
|
plural: a,
|
|
1722
1722
|
linked: (f, ...b) => {
|
|
1723
|
-
const [
|
|
1723
|
+
const [A, u] = b;
|
|
1724
1724
|
let y = "text", E = "";
|
|
1725
|
-
b.length === 1 ? ee(
|
|
1726
|
-
const _ =
|
|
1725
|
+
b.length === 1 ? ee(A) ? (E = A.modifier || E, y = A.type || y) : W(A) && (E = A || E) : b.length === 2 && (W(A) && (E = A || E), W(u) && (y = u || y));
|
|
1726
|
+
const _ = C(f, !0)(P), R = (
|
|
1727
1727
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1728
1728
|
y === "vnode" && be(_) && E ? _[0] : _
|
|
1729
1729
|
);
|
|
1730
|
-
return E ?
|
|
1730
|
+
return E ? N(E)(R, y) : R;
|
|
1731
1731
|
},
|
|
1732
|
-
message:
|
|
1732
|
+
message: C,
|
|
1733
1733
|
type: w,
|
|
1734
1734
|
interpolate: j,
|
|
1735
1735
|
normalize: T,
|
|
@@ -1739,22 +1739,22 @@ function ha(e = {}) {
|
|
|
1739
1739
|
}
|
|
1740
1740
|
const On = () => "", Se = (e) => me(e);
|
|
1741
1741
|
function Sn(e, ...t) {
|
|
1742
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: a, fallbackLocale: m, messages: d } = e, [l, g] =
|
|
1742
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: a, fallbackLocale: m, messages: d } = e, [l, g] = Ut(...t), C = pe(g.missingWarn) ? g.missingWarn : e.missingWarn, N = pe(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, T = pe(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, j = !!g.resolvedMessage, w = W(g.default) || pe(g.default) ? pe(g.default) ? a ? l : () => l : g.default : n ? a ? l : () => l : null, L = n || w != null && (W(w) || me(w)), P = Kt(e, g);
|
|
1743
1743
|
T && ba(g);
|
|
1744
|
-
let [f, b,
|
|
1744
|
+
let [f, b, A] = j ? [
|
|
1745
1745
|
l,
|
|
1746
1746
|
P,
|
|
1747
1747
|
d[P] || ae()
|
|
1748
|
-
] : sr(e, l, P, m,
|
|
1748
|
+
] : sr(e, l, P, m, N, C), u = f, y = l;
|
|
1749
1749
|
if (!j && !(W(u) || ot(u) || Se(u)) && L && (u = w, y = u), !j && (!(W(u) || ot(u) || Se(u)) || !W(b)))
|
|
1750
1750
|
return s ? Tt : l;
|
|
1751
1751
|
let E = !1;
|
|
1752
1752
|
const _ = () => {
|
|
1753
1753
|
E = !0;
|
|
1754
|
-
},
|
|
1754
|
+
}, R = Se(u) ? u : ar(e, l, b, u, y, _);
|
|
1755
1755
|
if (E)
|
|
1756
1756
|
return u;
|
|
1757
|
-
const k = Ia(e, b,
|
|
1757
|
+
const k = Ia(e, b, A, g), $ = ha(k), x = ga(e, R, $), F = r ? r(x, l) : x;
|
|
1758
1758
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1759
1759
|
const I = {
|
|
1760
1760
|
timestamp: Date.now(),
|
|
@@ -1763,7 +1763,7 @@ function Sn(e, ...t) {
|
|
|
1763
1763
|
format: W(u) ? u : Se(u) ? u.source : "",
|
|
1764
1764
|
message: F
|
|
1765
1765
|
};
|
|
1766
|
-
I.meta = ye({}, e.__meta, /* @__PURE__ */ aa() || {}),
|
|
1766
|
+
I.meta = ye({}, e.__meta, /* @__PURE__ */ aa() || {}), xs(I);
|
|
1767
1767
|
}
|
|
1768
1768
|
return F;
|
|
1769
1769
|
}
|
|
@@ -1773,11 +1773,11 @@ function ba(e) {
|
|
|
1773
1773
|
});
|
|
1774
1774
|
}
|
|
1775
1775
|
function sr(e, t, n, r, s, a) {
|
|
1776
|
-
const { messages: m, onWarn: d, messageResolver: l, localeFallbacker: g } = e,
|
|
1777
|
-
let
|
|
1776
|
+
const { messages: m, onWarn: d, messageResolver: l, localeFallbacker: g } = e, C = g(e, r, n);
|
|
1777
|
+
let N = ae(), T, j = null;
|
|
1778
1778
|
const w = "translate";
|
|
1779
|
-
for (let L = 0; L <
|
|
1780
|
-
if (!ca(T,
|
|
1779
|
+
for (let L = 0; L < C.length && (T = C[L], N = m[T] || ae(), (j = l(N, t)) === null && (j = N[t]), !(W(j) || ot(j) || Se(j))); L++)
|
|
1780
|
+
if (!ca(T, C)) {
|
|
1781
1781
|
const P = zt(
|
|
1782
1782
|
e,
|
|
1783
1783
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -1788,7 +1788,7 @@ function sr(e, t, n, r, s, a) {
|
|
|
1788
1788
|
);
|
|
1789
1789
|
P !== t && (j = P);
|
|
1790
1790
|
}
|
|
1791
|
-
return [j, T,
|
|
1791
|
+
return [j, T, N];
|
|
1792
1792
|
}
|
|
1793
1793
|
function ar(e, t, n, r, s, a) {
|
|
1794
1794
|
const { messageCompiler: m, warnHtmlMessage: d } = e;
|
|
@@ -1806,12 +1806,12 @@ function ar(e, t, n, r, s, a) {
|
|
|
1806
1806
|
function ga(e, t, n) {
|
|
1807
1807
|
return t(n);
|
|
1808
1808
|
}
|
|
1809
|
-
function
|
|
1809
|
+
function Ut(...e) {
|
|
1810
1810
|
const [t, n, r] = e, s = ae();
|
|
1811
1811
|
if (!W(t) && !ge(t) && !Se(t) && !ot(t))
|
|
1812
1812
|
throw We(Ve.INVALID_ARGUMENT);
|
|
1813
1813
|
const a = ge(t) ? String(t) : (Se(t), t);
|
|
1814
|
-
return ge(n) ? s.plural = n : W(n) ? s.default = n : q(n) && !
|
|
1814
|
+
return ge(n) ? s.plural = n : W(n) ? s.default = n : q(n) && !Ct(n) ? s.named = n : be(n) && (s.list = n), ge(r) ? s.plural = r : W(r) ? s.default = r : q(r) && ye(s, r), [a, s];
|
|
1815
1815
|
}
|
|
1816
1816
|
function ya(e, t, n, r, s, a) {
|
|
1817
1817
|
return {
|
|
@@ -1821,19 +1821,19 @@ function ya(e, t, n, r, s, a) {
|
|
|
1821
1821
|
onError: (m) => {
|
|
1822
1822
|
throw a && a(m), m;
|
|
1823
1823
|
},
|
|
1824
|
-
onCacheKey: (m) =>
|
|
1824
|
+
onCacheKey: (m) => xr(t, n, m)
|
|
1825
1825
|
};
|
|
1826
1826
|
}
|
|
1827
1827
|
function Ia(e, t, n, r) {
|
|
1828
|
-
const { modifiers: s, pluralRules: a, messageResolver: m, fallbackLocale: d, fallbackWarn: l, missingWarn: g, fallbackContext:
|
|
1828
|
+
const { modifiers: s, pluralRules: a, messageResolver: m, fallbackLocale: d, fallbackWarn: l, missingWarn: g, fallbackContext: C } = e, T = {
|
|
1829
1829
|
locale: t,
|
|
1830
1830
|
modifiers: s,
|
|
1831
1831
|
pluralRules: a,
|
|
1832
1832
|
messages: (j, w) => {
|
|
1833
1833
|
let L = m(n, j);
|
|
1834
|
-
if (L == null && (
|
|
1834
|
+
if (L == null && (C || w)) {
|
|
1835
1835
|
const [, , P] = sr(
|
|
1836
|
-
|
|
1836
|
+
C || e,
|
|
1837
1837
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1838
1838
|
j,
|
|
1839
1839
|
t,
|
|
@@ -1855,9 +1855,9 @@ function Ia(e, t, n, r) {
|
|
|
1855
1855
|
return e.processor && (T.processor = e.processor), r.list && (T.list = r.list), r.named && (T.named = r.named), ge(r.plural) && (T.pluralIndex = r.plural), T;
|
|
1856
1856
|
}
|
|
1857
1857
|
bs();
|
|
1858
|
-
var Ea = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_9c626479-104f-4b3d-86c1-1f92178d017d", 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_9c626479-104f-4b3d-86c1-1f92178d017d", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", 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.8.2", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/30.0.16248370", 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: "1948", ACTIONS_ORCHESTRATION_ID: "222f17fa-7732-4517-9d2a-754d6af6f037.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: "20261101.186.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_9c626479-104f-4b3d-86c1-1f92178d017d", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "10:14125", 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.14/x64", GITHUB_RUN_ID: "42974444453", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "9e6f074a8053b68bb166cfdb329b8f7de2d6480d", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.10/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu26", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9kZXZcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTQ0MDE2MjUsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5NDM3OTQyNSwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImIxODUxMDYyLTk4N2MtNTdjMC05YThkLTJhYTYxOGM2ZGI2MSIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiYjhjZjk5ZDA2OTg0OTI1M2IxMjZkYzY2MzQxN2M2ZTI5NDRmNzY0MiIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5NDM3OTEyNSwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCIxMzAzNzAxNzc2MDhcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcImI4Y2Y5OWQwNjk4NDkyNTNiMTI2ZGM2NjM0MTdjNmUyOTQ0Zjc2NDJcIixcInJlZlwiOlwicmVmcy9oZWFkcy9kZXZcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJyZXBvc2l0b3J5XCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2VcIixcInJlcG9zaXRvcnlfaWRcIjpcIjExMjQ2NzIyMzVcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJ1bl9pZFwiOlwiNDI5NzQ0NDQ0NTNcIixcInJ1bl9udW1iZXJcIjpcIjI0NFwiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcIjllNmYwNzRhODA1M2I2OGJiMTY2Y2ZkYjMyOWI4ZjdkZTJkNjQ4MGRcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIGhybS1wb3J0YWxcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtaHJtLXBvcnRhbC10cnVzdGVkLnltbEByZWZzL2hlYWRzL2RldlwiLFwid29ya2Zsb3dfc2hhXCI6XCI5ZTZmMDc0YTgwNTNiNjhiYjE2NmNmZGIzMjliOGY3ZGUyZDY0ODBkXCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9kZXYiLCJvcmNoX2lkIjoiMjIyZjE3ZmEtNzczMi00NTE3LTlkMmEtNzU0ZDZhZjZmMDM3LnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiIyMjJmMTdmYS03NzMyLTQ1MTctOWQyYS03NTRkNmFmNmYwMzciLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiI0Mjk3NDQ0NDQ1MyIsInJ1bl9udW1iZXIiOiIyNDQiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMjczOTIxIiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6MjIyZjE3ZmEtNzczMi00NTE3LTlkMmEtNzU0ZDZhZjZmMDM3OmIxODUxMDYyLTk4N2MtNTdjMC05YThkLTJhYTYxOGM2ZGI2MSBBY3Rpb25zLlJ1bm5lcjoyMjJmMTdmYS03NzMyLTQ1MTctOWQyYS03NTRkNmFmNmYwMzc6YjE4NTEwNjItOTg3Yy01N2MwLTlhOGQtMmFhNjE4YzZkYjYxIEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOjIyMmYxN2ZhLTc3MzItNDUxNy05ZDJhLTc1NGQ2YWY2ZjAzNzpiMTg1MTA2Mi05ODdjLTU3YzAtOWE4ZC0yYWE2MThjNmRiNjEgZ2VuZXJhdGVfaWRfdG9rZW46MjIyZjE3ZmEtNzczMi00NTE3LTlkMmEtNzU0ZDZhZjZmMDM3OmIxODUxMDYyLTk4N2MtNTdjMC05YThkLTJhYTYxOGM2ZGI2MSBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6IjllNmYwNzRhODA1M2I2OGJiMTY2Y2ZkYjMyOWI4ZjdkZTJkNjQ4MGQiLCJ0cnVzdF90aWVyIjoiMSJ9.JMkfTXdNBgoSqIRN0xA4UuwKZmDjmHcmYz3MpsfOypYjt_rzts9C8Pi4Kec3mHuJkyw3XBvwDl5p3exyUDTQyZ-8uo4XzUg0wc86-Hf8YmJ4q2AKqns_DR4N-QG-wmT1NtuO3nyL6Mz1KURiVxGc4P_BQXJlkFFBiCXTL-tuLSR93QAa502puh9qUDd7oRfps-96XR_H76FPd5HKYcx5lCrr703LS1wP1YpknA7Rh3P3SSvwyvQkI6QE6pICVBg3R1ArK0qQNxqOqdqCL-TlT0RX1JdQVBHs_rorxlVIndhVQvMXVG_4Yhs4xw2o59Hdoduv-cyiGBG1VSIThTqDrg", 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_20a2582d-3c88-4e55-814c-358d163e09b6", INVOCATION_ID: "b21741a5b63443e99b80b0a19e14bbc8", 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: "244", 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", RUNNER_NAME: "GitHub Actions 1000273921", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.3.2-dev.18", 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", npm_config_overrides: '{"proxy-addr":">=2.0.8 <3","@fastify/busboy":">=3.2.1 <4","@grpc/grpc-js":">=1.14.5 <2","brace-expansion@^2":"^2.1.6","js-yaml@^4":"^4.3.2","source-map-js":"^1.2.2","dompurify":">=3.4.17 <4","undici@^6":">=6.29.1 <7","body-parser@^1":">=1.20.9 <2","multer":">=2.5.0 <3","node-forge":">=1.4.1 <2","follow-redirects@^1.16":">=1.16.2 <2"}', npm_config_package_extensions: '{"@feedmepos/entity":{"dependencies":{"@feedmepos/core":"2.14.52"}}}', GITHUB_SHA: "9e6f074a8053b68bb166cfdb329b8f7de2d6480d", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/dev", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_9c626479-104f-4b3d-86c1-1f92178d017d", JAVA_HOME: "/usr/lib/jvm/temurin-25-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/159//idtoken/222f17fa-7732-4517-9d2a-754d6af6f037/b1851062-987c-57c0-9a8d-2aa618c6db61?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_9c626479-104f-4b3d-86c1-1f92178d017d", 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_9c626479-104f-4b3d-86c1-1f92178d017d", 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_9c626479-104f-4b3d-86c1-1f92178d017d", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1859
|
-
const
|
|
1860
|
-
function
|
|
1858
|
+
var Ea = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_802b90da-c6be-4807-88e5-cc669bc3c8d0", DOTNET_NOLOGO: "1", USER: "runner", npm_config_always_auth: "", npm_config_user_agent: "pnpm/10.8.0 npm/? node/v24.22.2 linux x64", CI: "true", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_802b90da-c6be-4807-88e5-cc669bc3c8d0", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.22.2/x64/bin/node", 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.8.2", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/30.0.16248370", 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: "1940", ACTIONS_ORCHESTRATION_ID: "87cd26fb-414f-400e-b235-22059d4fea19.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: "20261101.186.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_802b90da-c6be-4807-88e5-cc669bc3c8d0", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "10:14439", 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.14/x64", GITHUB_RUN_ID: "43403575451", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "3390824c55a1a43cb3160ed68e57818691f984a2", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.10/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu26", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9kZXZcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTQ1ODUxNjUsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5NDU2Mjk2NSwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImFkNjAxYjIyLWYwZGEtNTc3YS04MGQ0LWEwODBhYmJjYTI0NyIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiYjRiYzI5YzgxNzIzYmViZjMzYWJmNDI5NzY5ZjlkOTA2MzhhNjJjZiIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5NDU2MjY2NSwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJDYXN0YS1tZXJlXCIsXCJhY3Rvcl9pZFwiOlwiODIyOTgwMTdcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiMTMxODEyMjY1NTE1XCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluXCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCJiNGJjMjljODE3MjNiZWJmMzNhYmY0Mjk3NjlmOWQ5MDYzOGE2MmNmXCIsXCJyZWZcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjQzNDAzNTc1NDUxXCIsXCJydW5fbnVtYmVyXCI6XCIyNDdcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCIzMzkwODI0YzU1YTFhNDNjYjMxNjBlZDY4ZTU3ODE4NjkxZjk4NGEyXCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy9kZXZcIixcIndvcmtmbG93X3NoYVwiOlwiMzM5MDgyNGM1NWExYTQzY2IzMTYwZWQ2OGU1NzgxODY5MWY5ODRhMlwifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvaHJtLXNlcnZpY2U6cmVmOnJlZnMvaGVhZHMvZGV2Iiwib3JjaF9pZCI6Ijg3Y2QyNmZiLTQxNGYtNDAwZS1iMjM1LTIyMDU5ZDRmZWExOS5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiODdjZDI2ZmItNDE0Zi00MDBlLWIyMzUtMjIwNTlkNGZlYTE5IiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiNDM0MDM1NzU0NTEiLCJydW5fbnVtYmVyIjoiMjQ3IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDI4MjQxNCIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjg3Y2QyNmZiLTQxNGYtNDAwZS1iMjM1LTIyMDU5ZDRmZWExOTphZDYwMWIyMi1mMGRhLTU3N2EtODBkNC1hMDgwYWJiY2EyNDcgQWN0aW9ucy5SdW5uZXI6ODdjZDI2ZmItNDE0Zi00MDBlLWIyMzUtMjIwNTlkNGZlYTE5OmFkNjAxYjIyLWYwZGEtNTc3YS04MGQ0LWEwODBhYmJjYTI0NyBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czo4N2NkMjZmYi00MTRmLTQwMGUtYjIzNS0yMjA1OWQ0ZmVhMTk6YWQ2MDFiMjItZjBkYS01NzdhLTgwZDQtYTA4MGFiYmNhMjQ3IGdlbmVyYXRlX2lkX3Rva2VuOjg3Y2QyNmZiLTQxNGYtNDAwZS1iMjM1LTIyMDU5ZDRmZWExOTphZDYwMWIyMi1mMGRhLTU3N2EtODBkNC1hMDgwYWJiY2EyNDcgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiIzMzkwODI0YzU1YTFhNDNjYjMxNjBlZDY4ZTU3ODE4NjkxZjk4NGEyIiwidHJ1c3RfdGllciI6IjEifQ.Of_EFeFkFGjqkVv0eLAPgUHaMMH8p6xDM2ZqBRH84VjrM7ZpYOaL01-eiW_u21YnVZgez-UpMN_Qm-QTMp374X-O17mB3ZeQezeEJyAilIlErHNYGRWfvAaZpwZeLQIcKlAxprobVyGfYftyAvq1zVPxRzmjc3YBW4HVt0HYcOVbBJqcmALZkOKOgF9-a_fcfB1rMTch_9NyJEPqYwdpyhv2ayU52xrUxUu8uSYL2z_ukEhxQUV3M_RXYggdrp9-WivrM7K8573ek5TWNDW7BeVUsiWWUZGQRZPouM56nsLwHQSDQSqBIipBLEdf2ZSabbPvNPASPnNdjwzMLgZpCQ", 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.22.2/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_32cd0e81-e449-4982-affc-f538c9530a75", INVOCATION_ID: "b1907e97f6a64dbf83b856946fb0a751", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/24.22.2/x64/bin/node", npm_package_name: "@feedmepos/mf-hrm-portal", GITHUB_ACTION: "__run_5", GITHUB_RUN_NUMBER: "247", GITHUB_TRIGGERING_ACTOR: "Casta-mere", 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", RUNNER_NAME: "GitHub Actions 1000282414", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.3.2-dev.19", 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", npm_config_overrides: '{"proxy-addr":">=2.0.8 <3","@fastify/busboy":">=3.2.1 <4","@grpc/grpc-js":">=1.14.5 <2","brace-expansion@^2":"^2.1.6","js-yaml@^4":"^4.3.2","source-map-js":"^1.2.2","dompurify":">=3.4.17 <4","undici@^6":">=6.29.1 <7","body-parser@^1":">=1.20.9 <2","multer":">=2.5.0 <3","node-forge":">=1.4.1 <2","follow-redirects@^1.16":">=1.16.2 <2"}', npm_config_package_extensions: '{"@feedmepos/entity":{"dependencies":{"@feedmepos/core":"2.14.52"}}}', GITHUB_SHA: "3390824c55a1a43cb3160ed68e57818691f984a2", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/dev", GITHUB_ACTOR: "Casta-mere", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_802b90da-c6be-4807-88e5-cc669bc3c8d0", JAVA_HOME: "/usr/lib/jvm/temurin-25-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "82298017", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_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/181//idtoken/87cd26fb-414f-400e-b235-22059d4fea19/ad601b22-f0da-577a-80d4-a080abbca247?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_802b90da-c6be-4807-88e5-cc669bc3c8d0", 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_802b90da-c6be-4807-88e5-cc669bc3c8d0", 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_802b90da-c6be-4807-88e5-cc669bc3c8d0", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1859
|
+
const Ca = "10.0.5";
|
|
1860
|
+
function Na() {
|
|
1861
1861
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Ke().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Ke().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ke().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ke().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1862
1862
|
}
|
|
1863
1863
|
const lt = {
|
|
@@ -1874,14 +1874,14 @@ const lt = {
|
|
|
1874
1874
|
UNEXPECTED_ERROR: 32
|
|
1875
1875
|
};
|
|
1876
1876
|
function dt(e, ...t) {
|
|
1877
|
-
return
|
|
1877
|
+
return Nt(e, null, void 0);
|
|
1878
1878
|
}
|
|
1879
|
-
const
|
|
1879
|
+
const xt = /* @__PURE__ */ Qe("__translateVNode"), Vt = /* @__PURE__ */ Qe("__datetimeParts"), Wt = /* @__PURE__ */ Qe("__numberParts"), Ta = Qe("__setPluralRules"), or = /* @__PURE__ */ Qe("__injectWithOption"), Gt = /* @__PURE__ */ Qe("__dispose");
|
|
1880
1880
|
function mt(e) {
|
|
1881
1881
|
if (!ee(e))
|
|
1882
1882
|
return e;
|
|
1883
1883
|
for (const t in e)
|
|
1884
|
-
if (
|
|
1884
|
+
if (Ae(e, t))
|
|
1885
1885
|
if (!t.includes("."))
|
|
1886
1886
|
ee(e[t]) && mt(e[t]);
|
|
1887
1887
|
else {
|
|
@@ -1908,7 +1908,7 @@ function lr(e, t) {
|
|
|
1908
1908
|
W(d) && yt(JSON.parse(d), m);
|
|
1909
1909
|
}), s == null && a)
|
|
1910
1910
|
for (const d in m)
|
|
1911
|
-
|
|
1911
|
+
Ae(m, d) && mt(m[d]);
|
|
1912
1912
|
return m;
|
|
1913
1913
|
}
|
|
1914
1914
|
function ir(e) {
|
|
@@ -1942,13 +1942,13 @@ function Oa(e, t, n) {
|
|
|
1942
1942
|
function Ln(e) {
|
|
1943
1943
|
return ce(vr, null, e, 0);
|
|
1944
1944
|
}
|
|
1945
|
-
const kn = "__INTLIFY_META__",
|
|
1946
|
-
let
|
|
1945
|
+
const kn = "__INTLIFY_META__", An = () => [], Sa = () => !1;
|
|
1946
|
+
let Rn = 0;
|
|
1947
1947
|
function Mn(e) {
|
|
1948
|
-
return (t, n, r, s) => e(n, r,
|
|
1948
|
+
return (t, n, r, s) => e(n, r, Xt() || void 0, s);
|
|
1949
1949
|
}
|
|
1950
1950
|
const La = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1951
|
-
const e =
|
|
1951
|
+
const e = Xt();
|
|
1952
1952
|
let t = null;
|
|
1953
1953
|
return e && (t = ir(e)[kn]) ? { [kn]: t } : null;
|
|
1954
1954
|
};
|
|
@@ -1961,14 +1961,14 @@ function ka(e = {}) {
|
|
|
1961
1961
|
), l = a(
|
|
1962
1962
|
// prettier-ignore
|
|
1963
1963
|
t && m ? t.fallbackLocale.value : W(e.fallbackLocale) || be(e.fallbackLocale) || q(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : d.value
|
|
1964
|
-
), g = a(lr(d.value, e)),
|
|
1965
|
-
let T = t ? t.missingWarn : pe(e.missingWarn) || It(e.missingWarn) ? e.missingWarn : !0, j = t ? t.fallbackWarn : pe(e.fallbackWarn) || It(e.fallbackWarn) ? e.fallbackWarn : !0, w = t ? t.fallbackRoot : pe(e.fallbackRoot) ? e.fallbackRoot : !0, L = !!e.fallbackFormat, P = me(e.missing) ? e.missing : null, f = me(e.missing) ? Mn(e.missing) : null, b = me(e.postTranslation) ? e.postTranslation : null,
|
|
1964
|
+
), g = a(lr(d.value, e)), C = a(q(e.datetimeFormats) ? e.datetimeFormats : { [d.value]: {} }), N = a(q(e.numberFormats) ? e.numberFormats : { [d.value]: {} });
|
|
1965
|
+
let T = t ? t.missingWarn : pe(e.missingWarn) || It(e.missingWarn) ? e.missingWarn : !0, j = t ? t.fallbackWarn : pe(e.fallbackWarn) || It(e.fallbackWarn) ? e.fallbackWarn : !0, w = t ? t.fallbackRoot : pe(e.fallbackRoot) ? e.fallbackRoot : !0, L = !!e.fallbackFormat, P = me(e.missing) ? e.missing : null, f = me(e.missing) ? Mn(e.missing) : null, b = me(e.postTranslation) ? e.postTranslation : null, A = t ? t.warnHtmlMessage : pe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, u = !!e.escapeParameter;
|
|
1966
1966
|
const y = t ? t.modifiers : q(e.modifiers) ? e.modifiers : {};
|
|
1967
1967
|
let E = e.pluralRules || t && t.pluralRules, _;
|
|
1968
1968
|
_ = (() => {
|
|
1969
1969
|
r && gn(null);
|
|
1970
1970
|
const p = {
|
|
1971
|
-
version:
|
|
1971
|
+
version: Ca,
|
|
1972
1972
|
locale: d.value,
|
|
1973
1973
|
fallbackLocale: l.value,
|
|
1974
1974
|
messages: g.value,
|
|
@@ -1980,13 +1980,13 @@ function ka(e = {}) {
|
|
|
1980
1980
|
fallbackFormat: L,
|
|
1981
1981
|
unresolving: !0,
|
|
1982
1982
|
postTranslation: b === null ? void 0 : b,
|
|
1983
|
-
warnHtmlMessage:
|
|
1983
|
+
warnHtmlMessage: A,
|
|
1984
1984
|
escapeParameter: u,
|
|
1985
1985
|
messageResolver: e.messageResolver,
|
|
1986
1986
|
messageCompiler: e.messageCompiler,
|
|
1987
1987
|
__meta: { framework: "vue" }
|
|
1988
1988
|
};
|
|
1989
|
-
p.datetimeFormats =
|
|
1989
|
+
p.datetimeFormats = C.value, p.numberFormats = N.value, p.__datetimeFormatters = q(_) ? _.__datetimeFormatters : void 0, p.__numberFormatters = q(_) ? _.__numberFormatters : void 0;
|
|
1990
1990
|
const v = la(p);
|
|
1991
1991
|
return r && gn(v), v;
|
|
1992
1992
|
})(), it(_, d.value, l.value);
|
|
@@ -1995,8 +1995,8 @@ function ka(e = {}) {
|
|
|
1995
1995
|
d.value,
|
|
1996
1996
|
l.value,
|
|
1997
1997
|
g.value,
|
|
1998
|
-
|
|
1999
|
-
|
|
1998
|
+
C.value,
|
|
1999
|
+
N.value
|
|
2000
2000
|
];
|
|
2001
2001
|
}
|
|
2002
2002
|
const $ = z({
|
|
@@ -2004,12 +2004,12 @@ function ka(e = {}) {
|
|
|
2004
2004
|
set: (p) => {
|
|
2005
2005
|
d.value = p, _.locale = d.value;
|
|
2006
2006
|
}
|
|
2007
|
-
}),
|
|
2007
|
+
}), x = z({
|
|
2008
2008
|
get: () => l.value,
|
|
2009
2009
|
set: (p) => {
|
|
2010
2010
|
l.value = p, _.fallbackLocale = l.value, it(_, d.value, p);
|
|
2011
2011
|
}
|
|
2012
|
-
}), F = z(() => g.value), I = /* @__PURE__ */ z(() =>
|
|
2012
|
+
}), F = z(() => g.value), I = /* @__PURE__ */ z(() => C.value), D = /* @__PURE__ */ z(() => N.value);
|
|
2013
2013
|
function V() {
|
|
2014
2014
|
return me(b) ? b : null;
|
|
2015
2015
|
}
|
|
@@ -2022,7 +2022,7 @@ function ka(e = {}) {
|
|
|
2022
2022
|
function H(p) {
|
|
2023
2023
|
p !== null && (f = Mn(p)), P = p, _.missing = f;
|
|
2024
2024
|
}
|
|
2025
|
-
const
|
|
2025
|
+
const U = (p, v, Z, te, le, he) => {
|
|
2026
2026
|
k();
|
|
2027
2027
|
let Me;
|
|
2028
2028
|
try {
|
|
@@ -2041,19 +2041,19 @@ function ka(e = {}) {
|
|
|
2041
2041
|
}
|
|
2042
2042
|
};
|
|
2043
2043
|
function J(...p) {
|
|
2044
|
-
return
|
|
2044
|
+
return U((v) => Reflect.apply(Sn, null, [v, ...p]), () => Ut(...p), "translate", (v) => Reflect.apply(v.t, v, [...p]), (v) => v, (v) => W(v));
|
|
2045
2045
|
}
|
|
2046
|
-
function
|
|
2046
|
+
function B(...p) {
|
|
2047
2047
|
const [v, Z, te] = p;
|
|
2048
2048
|
if (te && !ee(te))
|
|
2049
2049
|
throw dt(lt.INVALID_ARGUMENT);
|
|
2050
2050
|
return J(v, Z, ye({ resolvedMessage: !0 }, te || {}));
|
|
2051
2051
|
}
|
|
2052
2052
|
function se(...p) {
|
|
2053
|
-
return
|
|
2053
|
+
return U((v) => Reflect.apply(In, null, [v, ...p]), () => Pt(...p), "datetime format", (v) => Reflect.apply(v.d, v, [...p]), () => hn, (v) => W(v));
|
|
2054
2054
|
}
|
|
2055
2055
|
function Q(...p) {
|
|
2056
|
-
return
|
|
2056
|
+
return U((v) => Reflect.apply(Cn, null, [v, ...p]), () => jt(...p), "number format", (v) => Reflect.apply(v.n, v, [...p]), () => hn, (v) => W(v));
|
|
2057
2057
|
}
|
|
2058
2058
|
function fe(p) {
|
|
2059
2059
|
return p.map((v) => W(v) || ge(v) || pe(v) ? Ln(String(v)) : v);
|
|
@@ -2064,7 +2064,7 @@ function ka(e = {}) {
|
|
|
2064
2064
|
type: "vnode"
|
|
2065
2065
|
};
|
|
2066
2066
|
function oe(...p) {
|
|
2067
|
-
return
|
|
2067
|
+
return U((v) => {
|
|
2068
2068
|
let Z;
|
|
2069
2069
|
const te = v;
|
|
2070
2070
|
try {
|
|
@@ -2073,19 +2073,19 @@ function ka(e = {}) {
|
|
|
2073
2073
|
te.processor = null;
|
|
2074
2074
|
}
|
|
2075
2075
|
return Z;
|
|
2076
|
-
}, () =>
|
|
2076
|
+
}, () => Ut(...p), "translate", (v) => v[xt](...p), (v) => [Ln(v)], (v) => be(v));
|
|
2077
2077
|
}
|
|
2078
2078
|
function ie(...p) {
|
|
2079
|
-
return
|
|
2079
|
+
return U((v) => Reflect.apply(Cn, null, [v, ...p]), () => jt(...p), "number format", (v) => v[Wt](...p), An, (v) => W(v) || be(v));
|
|
2080
2080
|
}
|
|
2081
2081
|
function Pe(...p) {
|
|
2082
|
-
return
|
|
2082
|
+
return U((v) => Reflect.apply(In, null, [v, ...p]), () => Pt(...p), "datetime format", (v) => v[Vt](...p), An, (v) => W(v) || be(v));
|
|
2083
2083
|
}
|
|
2084
|
-
function
|
|
2084
|
+
function X(p) {
|
|
2085
2085
|
E = p, _.pluralRules = E;
|
|
2086
2086
|
}
|
|
2087
2087
|
function _e(p, v) {
|
|
2088
|
-
return
|
|
2088
|
+
return U(() => {
|
|
2089
2089
|
if (!p)
|
|
2090
2090
|
return !1;
|
|
2091
2091
|
const Z = W(v) ? v : d.value, te = je(Z), le = _.messageResolver(te, p);
|
|
@@ -2111,11 +2111,11 @@ function ka(e = {}) {
|
|
|
2111
2111
|
function je(p) {
|
|
2112
2112
|
return g.value[p] || {};
|
|
2113
2113
|
}
|
|
2114
|
-
function
|
|
2114
|
+
function Ue(p, v) {
|
|
2115
2115
|
if (s) {
|
|
2116
2116
|
const Z = { [p]: v };
|
|
2117
2117
|
for (const te in Z)
|
|
2118
|
-
|
|
2118
|
+
Ae(Z, te) && mt(Z[te]);
|
|
2119
2119
|
v = Z[p];
|
|
2120
2120
|
}
|
|
2121
2121
|
g.value[p] = v, _.messages = g.value;
|
|
@@ -2125,36 +2125,36 @@ function ka(e = {}) {
|
|
|
2125
2125
|
const Z = { [p]: v };
|
|
2126
2126
|
if (s)
|
|
2127
2127
|
for (const te in Z)
|
|
2128
|
-
|
|
2128
|
+
Ae(Z, te) && mt(Z[te]);
|
|
2129
2129
|
v = Z[p], yt(v, g.value[p]), _.messages = g.value;
|
|
2130
2130
|
}
|
|
2131
2131
|
function qe(p) {
|
|
2132
|
-
return
|
|
2132
|
+
return C.value[p] || {};
|
|
2133
2133
|
}
|
|
2134
2134
|
function o(p, v) {
|
|
2135
|
-
|
|
2135
|
+
C.value[p] = v, _.datetimeFormats = C.value, En(_, p, v);
|
|
2136
2136
|
}
|
|
2137
2137
|
function i(p, v) {
|
|
2138
|
-
|
|
2138
|
+
C.value[p] = ye(C.value[p] || {}, v), _.datetimeFormats = C.value, En(_, p, v);
|
|
2139
2139
|
}
|
|
2140
2140
|
function c(p) {
|
|
2141
|
-
return
|
|
2141
|
+
return N.value[p] || {};
|
|
2142
2142
|
}
|
|
2143
2143
|
function h(p, v) {
|
|
2144
|
-
|
|
2144
|
+
N.value[p] = v, _.numberFormats = N.value, Nn(_, p, v);
|
|
2145
2145
|
}
|
|
2146
2146
|
function S(p, v) {
|
|
2147
|
-
|
|
2147
|
+
N.value[p] = ye(N.value[p] || {}, v), _.numberFormats = N.value, Nn(_, p, v);
|
|
2148
2148
|
}
|
|
2149
|
-
|
|
2149
|
+
Rn++, t && on && (Mt(t.locale, (p) => {
|
|
2150
2150
|
m && (d.value = p, _.locale = p, it(_, d.value, l.value));
|
|
2151
2151
|
}), Mt(t.fallbackLocale, (p) => {
|
|
2152
2152
|
m && (l.value = p, _.fallbackLocale = p, it(_, d.value, l.value));
|
|
2153
2153
|
}));
|
|
2154
2154
|
const M = {
|
|
2155
|
-
id:
|
|
2155
|
+
id: Rn,
|
|
2156
2156
|
locale: $,
|
|
2157
|
-
fallbackLocale:
|
|
2157
|
+
fallbackLocale: x,
|
|
2158
2158
|
get inheritLocale() {
|
|
2159
2159
|
return m;
|
|
2160
2160
|
},
|
|
@@ -2199,10 +2199,10 @@ function ka(e = {}) {
|
|
|
2199
2199
|
L = p, _.fallbackFormat = L;
|
|
2200
2200
|
},
|
|
2201
2201
|
get warnHtmlMessage() {
|
|
2202
|
-
return
|
|
2202
|
+
return A;
|
|
2203
2203
|
},
|
|
2204
2204
|
set warnHtmlMessage(p) {
|
|
2205
|
-
|
|
2205
|
+
A = p, _.warnHtmlMessage = p;
|
|
2206
2206
|
},
|
|
2207
2207
|
get escapeParameter() {
|
|
2208
2208
|
return u;
|
|
@@ -2212,15 +2212,15 @@ function ka(e = {}) {
|
|
|
2212
2212
|
},
|
|
2213
2213
|
t: J,
|
|
2214
2214
|
getLocaleMessage: je,
|
|
2215
|
-
setLocaleMessage:
|
|
2215
|
+
setLocaleMessage: Ue,
|
|
2216
2216
|
mergeLocaleMessage: Ze,
|
|
2217
2217
|
getPostTranslationHandler: V,
|
|
2218
2218
|
setPostTranslationHandler: O,
|
|
2219
2219
|
getMissingHandler: G,
|
|
2220
2220
|
setMissingHandler: H,
|
|
2221
|
-
[Ta]:
|
|
2221
|
+
[Ta]: X
|
|
2222
2222
|
};
|
|
2223
|
-
return M.datetimeFormats = I, M.numberFormats = D, M.rt =
|
|
2223
|
+
return M.datetimeFormats = I, M.numberFormats = D, M.rt = B, M.te = _e, M.tm = Ge, M.d = se, M.n = Q, M.getDateTimeFormat = qe, M.setDateTimeFormat = o, M.mergeDateTimeFormat = i, M.getNumberFormat = c, M.setNumberFormat = h, M.mergeNumberFormat = S, M[or] = n, M[xt] = oe, M[Vt] = Pe, M[Wt] = ie, M;
|
|
2224
2224
|
}
|
|
2225
2225
|
const Qt = {
|
|
2226
2226
|
tag: {
|
|
@@ -2240,7 +2240,7 @@ const Qt = {
|
|
|
2240
2240
|
type: Object
|
|
2241
2241
|
}
|
|
2242
2242
|
};
|
|
2243
|
-
function
|
|
2243
|
+
function Aa({ slots: e }, t) {
|
|
2244
2244
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, s) => [
|
|
2245
2245
|
...r,
|
|
2246
2246
|
// prettier-ignore
|
|
@@ -2263,7 +2263,7 @@ ye({
|
|
|
2263
2263
|
validator: (e) => ge(e) || !isNaN(e)
|
|
2264
2264
|
}
|
|
2265
2265
|
}, Qt);
|
|
2266
|
-
function
|
|
2266
|
+
function Ra(e) {
|
|
2267
2267
|
return be(e) && !W(e[0]);
|
|
2268
2268
|
}
|
|
2269
2269
|
function ur(e, t, n, r) {
|
|
@@ -2276,10 +2276,10 @@ function ur(e, t, n, r) {
|
|
|
2276
2276
|
let g = [m.key];
|
|
2277
2277
|
be(l) ? g = l.map((T, j) => {
|
|
2278
2278
|
const w = s[T.type], L = w ? w({ [T.type]: T.value, index: j, parts: l }) : [T.value];
|
|
2279
|
-
return
|
|
2279
|
+
return Ra(L) && (L[0].key = `${T.type}-${j}`), L;
|
|
2280
2280
|
}) : W(l) && (g = [l]);
|
|
2281
|
-
const
|
|
2282
|
-
return Gn(
|
|
2281
|
+
const C = ye(ae(), a), N = W(e.tag) || ee(e.tag) ? e.tag : cr();
|
|
2282
|
+
return Gn(N, C, g);
|
|
2283
2283
|
};
|
|
2284
2284
|
}
|
|
2285
2285
|
ye({
|
|
@@ -2302,7 +2302,7 @@ ye({
|
|
|
2302
2302
|
}, Qt);
|
|
2303
2303
|
const Ma = /* @__PURE__ */ Qe("global-vue-i18n");
|
|
2304
2304
|
function Ot(e = {}) {
|
|
2305
|
-
const t =
|
|
2305
|
+
const t = Xt();
|
|
2306
2306
|
if (t == null)
|
|
2307
2307
|
throw dt(lt.MUST_BE_CALL_SETUP_TOP);
|
|
2308
2308
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
@@ -2318,7 +2318,7 @@ function Ot(e = {}) {
|
|
|
2318
2318
|
let d = m.__getInstance(t);
|
|
2319
2319
|
if (d == null) {
|
|
2320
2320
|
const l = ye({}, e);
|
|
2321
|
-
"__i18n" in s && (l.__i18n = s.__i18n), r && (l.__root = r), d = ka(l), m.__composerExtend && (d[Gt] = m.__composerExtend(d)),
|
|
2321
|
+
"__i18n" in s && (l.__i18n = s.__i18n), r && (l.__root = r), d = ka(l), m.__composerExtend && (d[Gt] = m.__composerExtend(d)), Ua(m, t, d), m.__setInstance(t, d);
|
|
2322
2322
|
}
|
|
2323
2323
|
return d;
|
|
2324
2324
|
}
|
|
@@ -2329,7 +2329,7 @@ function Da(e) {
|
|
|
2329
2329
|
return t;
|
|
2330
2330
|
}
|
|
2331
2331
|
function wa(e, t) {
|
|
2332
|
-
return
|
|
2332
|
+
return Ct(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2333
2333
|
}
|
|
2334
2334
|
function Fa(e) {
|
|
2335
2335
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
@@ -2355,7 +2355,7 @@ function Pa(e, t, n = !1) {
|
|
|
2355
2355
|
function ja(e, t = !1) {
|
|
2356
2356
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2357
2357
|
}
|
|
2358
|
-
function
|
|
2358
|
+
function Ua(e, t, n) {
|
|
2359
2359
|
Wn(() => {
|
|
2360
2360
|
}, t), pr(() => {
|
|
2361
2361
|
const r = n;
|
|
@@ -2364,7 +2364,7 @@ function xa(e, t, n) {
|
|
|
2364
2364
|
s && (s(), delete r[Gt]);
|
|
2365
2365
|
}, t);
|
|
2366
2366
|
}
|
|
2367
|
-
|
|
2367
|
+
Na();
|
|
2368
2368
|
ta(Ps);
|
|
2369
2369
|
na(Qs);
|
|
2370
2370
|
ra(Kn);
|
|
@@ -2372,7 +2372,7 @@ if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
|
2372
2372
|
const e = Ke();
|
|
2373
2373
|
e.__INTLIFY__ = !0, js(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2374
2374
|
}
|
|
2375
|
-
const vt = /* @__PURE__ */
|
|
2375
|
+
const vt = /* @__PURE__ */ Re({
|
|
2376
2376
|
__name: "InheritPermissionTooltip",
|
|
2377
2377
|
props: {
|
|
2378
2378
|
item: {
|
|
@@ -2391,7 +2391,7 @@ const vt = /* @__PURE__ */ Ae({
|
|
|
2391
2391
|
}, {
|
|
2392
2392
|
content: de(() => [
|
|
2393
2393
|
ue("div", null, Le(Y(t)("team.memberForm.permissions.inherited")), 1),
|
|
2394
|
-
(K(!0), re(we, null,
|
|
2394
|
+
(K(!0), re(we, null, Ne(e.item.setNames, (m) => (K(), re("div", { key: m }, [
|
|
2395
2395
|
ue("div", null, "- " + Le(m), 1)
|
|
2396
2396
|
]))), 128))
|
|
2397
2397
|
]),
|
|
@@ -2421,7 +2421,7 @@ function Dn(e, t, n) {
|
|
|
2421
2421
|
actions: Array.from(a)
|
|
2422
2422
|
});
|
|
2423
2423
|
}
|
|
2424
|
-
const wn = Object.values(Dr),
|
|
2424
|
+
const wn = Object.values(Dr), xa = {
|
|
2425
2425
|
read: "View",
|
|
2426
2426
|
create: "Duplicate",
|
|
2427
2427
|
update: "Edit"
|
|
@@ -2431,8 +2431,8 @@ function Va(e, t, n, r) {
|
|
|
2431
2431
|
var G;
|
|
2432
2432
|
const I = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map();
|
|
2433
2433
|
for (const H of t.value) {
|
|
2434
|
-
const
|
|
2435
|
-
if (!
|
|
2434
|
+
const U = H.category;
|
|
2435
|
+
if (!U) continue;
|
|
2436
2436
|
const J = H.subject;
|
|
2437
2437
|
if (d.value) {
|
|
2438
2438
|
if (rn.has(J) && !sn.has(J)) continue;
|
|
@@ -2440,47 +2440,47 @@ function Va(e, t, n, r) {
|
|
|
2440
2440
|
continue;
|
|
2441
2441
|
if (n.value.includes(H.subject) || H.showByFeatureFlag && ((G = m(H.showByFeatureFlag)) == null ? void 0 : G.enabled) === !1 && a(H.showByFeatureFlag) === "true")
|
|
2442
2442
|
continue;
|
|
2443
|
-
I.has(
|
|
2444
|
-
const
|
|
2445
|
-
V.set(J,
|
|
2443
|
+
I.has(U) || I.set(U, []);
|
|
2444
|
+
const B = V.get(J) ?? 0;
|
|
2445
|
+
V.set(J, B + 1), I.get(U).push({
|
|
2446
2446
|
label: s(`permissionSet.permissionLabels.${J}`, H.label),
|
|
2447
2447
|
value: J,
|
|
2448
|
-
optionKey: `${J}::${
|
|
2448
|
+
optionKey: `${J}::${B}`
|
|
2449
2449
|
}), D.has(J) || D.set(J, H);
|
|
2450
2450
|
}
|
|
2451
|
-
return [...I.keys()].sort((H,
|
|
2452
|
-
const J = wn.indexOf(H),
|
|
2453
|
-
return J === -1 &&
|
|
2451
|
+
return [...I.keys()].sort((H, U) => {
|
|
2452
|
+
const J = wn.indexOf(H), B = wn.indexOf(U);
|
|
2453
|
+
return J === -1 && B === -1 ? H.localeCompare(U) : J === -1 ? 1 : B === -1 ? -1 : J - B;
|
|
2454
2454
|
}).map((H) => {
|
|
2455
|
-
const
|
|
2456
|
-
for (const
|
|
2457
|
-
const _e = D.get(
|
|
2458
|
-
_e &&
|
|
2455
|
+
const U = I.get(H), J = s(`permissionSet.categoryLabels.${H}`, H), B = /* @__PURE__ */ new Map();
|
|
2456
|
+
for (const X of U) {
|
|
2457
|
+
const _e = D.get(X.value);
|
|
2458
|
+
_e && B.set(X.value, _e.actions);
|
|
2459
2459
|
}
|
|
2460
|
-
const se =
|
|
2461
|
-
const _e =
|
|
2460
|
+
const se = U.some((X) => {
|
|
2461
|
+
const _e = B.get(X.value);
|
|
2462
2462
|
return _e && _e.length > 1;
|
|
2463
2463
|
}), Q = se ? [
|
|
2464
2464
|
...new Set(
|
|
2465
|
-
|
|
2465
|
+
U.flatMap((X) => B.get(X.value) ?? []).filter((X) => X !== "manage")
|
|
2466
2466
|
)
|
|
2467
2467
|
] : [], fe = /* @__PURE__ */ new Map();
|
|
2468
|
-
for (const
|
|
2469
|
-
|
|
2468
|
+
for (const X of e.value)
|
|
2469
|
+
U.some((_e) => _e.value === X.subject) && !X.inverted && fe.set(X.subject, new Set(X.actions));
|
|
2470
2470
|
const Ie = se ? e.value.filter(
|
|
2471
|
-
(
|
|
2472
|
-
).map((
|
|
2471
|
+
(X) => U.some((_e) => _e.value === X.subject) && !X.inverted && X.actions.includes("manage")
|
|
2472
|
+
).map((X) => X.subject) : e.value.filter((X) => U.some((_e) => _e.value === X.subject) && !X.inverted).map((X) => X.subject), ve = U.find((X) => {
|
|
2473
2473
|
var _e;
|
|
2474
|
-
return (_e = D.get(
|
|
2474
|
+
return (_e = D.get(X.value)) == null ? void 0 : _e.isCategoryCover;
|
|
2475
2475
|
}), oe = (ve == null ? void 0 : ve.value) ?? null, ie = oe ? fe.get(oe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), Pe = ie.has("manage");
|
|
2476
2476
|
return {
|
|
2477
2477
|
category: H,
|
|
2478
2478
|
label: J,
|
|
2479
|
-
options:
|
|
2479
|
+
options: U,
|
|
2480
2480
|
selectedSubjects: Ie,
|
|
2481
2481
|
isMultiAction: se,
|
|
2482
2482
|
actionColumns: Q,
|
|
2483
|
-
permissionActionsMap:
|
|
2483
|
+
permissionActionsMap: B,
|
|
2484
2484
|
selectedActionsMap: fe,
|
|
2485
2485
|
coverSubject: oe,
|
|
2486
2486
|
coverSelectedActions: ie,
|
|
@@ -2489,16 +2489,16 @@ function Va(e, t, n, r) {
|
|
|
2489
2489
|
});
|
|
2490
2490
|
});
|
|
2491
2491
|
function g(I, D) {
|
|
2492
|
-
const V = l.value.find((Q) => Q.category === I), O = (V == null ? void 0 : V.options) ?? [], G = new Set(O.map((Q) => Q.value)), H = new Set(D),
|
|
2492
|
+
const V = l.value.find((Q) => Q.category === I), O = (V == null ? void 0 : V.options) ?? [], G = new Set(O.map((Q) => Q.value)), H = new Set(D), U = /* @__PURE__ */ new Map();
|
|
2493
2493
|
for (const Q of e.value)
|
|
2494
|
-
G.has(Q.subject) && !Q.inverted &&
|
|
2495
|
-
const J = V != null && V.coverSubject ?
|
|
2494
|
+
G.has(Q.subject) && !Q.inverted && U.set(Q.subject, Q.conditions);
|
|
2495
|
+
const J = V != null && V.coverSubject ? U.get(V.coverSubject) : void 0, B = /* @__PURE__ */ new Set(), se = t.value.flatMap(
|
|
2496
2496
|
({ category: Q, showByFeatureFlag: fe, isCategoryCover: Ie, ...ve }) => {
|
|
2497
2497
|
const oe = ve.subject;
|
|
2498
|
-
if (!H.has(oe) ||
|
|
2499
|
-
|
|
2498
|
+
if (!H.has(oe) || B.has(oe)) return [];
|
|
2499
|
+
B.add(oe);
|
|
2500
2500
|
let ie;
|
|
2501
|
-
return
|
|
2501
|
+
return U.has(oe) ? ie = U.get(oe) : V != null && V.coverSubject && oe !== V.coverSubject && (ie = J), [
|
|
2502
2502
|
{ ...ve, ...ie !== void 0 && { conditions: ie } }
|
|
2503
2503
|
];
|
|
2504
2504
|
}
|
|
@@ -2508,27 +2508,27 @@ function Va(e, t, n, r) {
|
|
|
2508
2508
|
...se
|
|
2509
2509
|
]);
|
|
2510
2510
|
}
|
|
2511
|
-
function
|
|
2511
|
+
function C(I, D) {
|
|
2512
2512
|
return w(I, D) || y(I, D);
|
|
2513
2513
|
}
|
|
2514
|
-
function
|
|
2515
|
-
return I.options.length > 0 && I.options.every((D) =>
|
|
2514
|
+
function N(I) {
|
|
2515
|
+
return I.options.length > 0 && I.options.every((D) => C(I, D.value));
|
|
2516
2516
|
}
|
|
2517
2517
|
function T(I) {
|
|
2518
|
-
return I.options.length === 0 ||
|
|
2519
|
-
(D) =>
|
|
2518
|
+
return I.options.length === 0 || N(I) ? !1 : I.options.some(
|
|
2519
|
+
(D) => C(I, D.value) || L(I, D.value).length > 0
|
|
2520
2520
|
);
|
|
2521
2521
|
}
|
|
2522
2522
|
function j(I) {
|
|
2523
2523
|
const D = new Set(I.options.map((O) => O.value)), V = e.value.filter((O) => !D.has(O.subject));
|
|
2524
|
-
if (
|
|
2524
|
+
if (N(I))
|
|
2525
2525
|
r("update:model-value", V);
|
|
2526
2526
|
else {
|
|
2527
2527
|
const O = /* @__PURE__ */ new Map();
|
|
2528
2528
|
for (const J of e.value)
|
|
2529
2529
|
D.has(J.subject) && !J.inverted && O.set(J.subject, J.conditions);
|
|
2530
|
-
const G = I.coverSubject ? O.get(I.coverSubject) : void 0, H = /* @__PURE__ */ new Set(),
|
|
2531
|
-
({ category: J, showByFeatureFlag:
|
|
2530
|
+
const G = I.coverSubject ? O.get(I.coverSubject) : void 0, H = /* @__PURE__ */ new Set(), U = t.value.flatMap(
|
|
2531
|
+
({ category: J, showByFeatureFlag: B, isCategoryCover: se, ...Q }) => {
|
|
2532
2532
|
const fe = Q.subject;
|
|
2533
2533
|
if (!D.has(fe) || H.has(fe)) return [];
|
|
2534
2534
|
H.add(fe);
|
|
@@ -2538,7 +2538,7 @@ function Va(e, t, n, r) {
|
|
|
2538
2538
|
];
|
|
2539
2539
|
}
|
|
2540
2540
|
);
|
|
2541
|
-
r("update:model-value", [...V, ...
|
|
2541
|
+
r("update:model-value", [...V, ...U]);
|
|
2542
2542
|
}
|
|
2543
2543
|
}
|
|
2544
2544
|
function w(I, D) {
|
|
@@ -2568,12 +2568,12 @@ function Va(e, t, n, r) {
|
|
|
2568
2568
|
const {
|
|
2569
2569
|
category: G,
|
|
2570
2570
|
showByFeatureFlag: H,
|
|
2571
|
-
isCategoryCover:
|
|
2571
|
+
isCategoryCover: U,
|
|
2572
2572
|
...J
|
|
2573
|
-
} = O,
|
|
2573
|
+
} = O, B = f(I, D), se = e.value.filter((Q) => Q.subject !== D);
|
|
2574
2574
|
se.push({
|
|
2575
2575
|
...J,
|
|
2576
|
-
...
|
|
2576
|
+
...B !== void 0 && { conditions: B }
|
|
2577
2577
|
}), r("update:model-value", se);
|
|
2578
2578
|
} else
|
|
2579
2579
|
r(
|
|
@@ -2581,7 +2581,7 @@ function Va(e, t, n, r) {
|
|
|
2581
2581
|
e.value.filter((O) => O.subject !== D)
|
|
2582
2582
|
);
|
|
2583
2583
|
}
|
|
2584
|
-
function
|
|
2584
|
+
function A(I, D) {
|
|
2585
2585
|
const V = I.permissionActionsMap.get(D);
|
|
2586
2586
|
return V ? V.some((O) => O !== "manage") : !1;
|
|
2587
2587
|
}
|
|
@@ -2599,21 +2599,21 @@ function Va(e, t, n, r) {
|
|
|
2599
2599
|
const O = I.permissionActionsMap.get(D);
|
|
2600
2600
|
return O ? O.includes(V) : !1;
|
|
2601
2601
|
}
|
|
2602
|
-
function
|
|
2603
|
-
const O = [...e.value], G = O.findIndex((
|
|
2602
|
+
function R(I, D, V) {
|
|
2603
|
+
const O = [...e.value], G = O.findIndex((U) => U.subject === I && !U.inverted);
|
|
2604
2604
|
if (V)
|
|
2605
2605
|
if (G >= 0) {
|
|
2606
|
-
const
|
|
2607
|
-
J.add(D),
|
|
2606
|
+
const U = { ...O[G] }, J = new Set(U.actions);
|
|
2607
|
+
J.add(D), U.actions = Array.from(J), O[G] = U;
|
|
2608
2608
|
} else {
|
|
2609
|
-
const
|
|
2610
|
-
if (!
|
|
2609
|
+
const U = t.value.find((ve) => ve.subject === I);
|
|
2610
|
+
if (!U) return;
|
|
2611
2611
|
const {
|
|
2612
2612
|
category: J,
|
|
2613
|
-
showByFeatureFlag:
|
|
2613
|
+
showByFeatureFlag: B,
|
|
2614
2614
|
isCategoryCover: se,
|
|
2615
2615
|
...Q
|
|
2616
|
-
} =
|
|
2616
|
+
} = U, fe = l.value.find(
|
|
2617
2617
|
(ve) => ve.options.some((oe) => oe.value === I)
|
|
2618
2618
|
), Ie = fe ? f(fe, I) : void 0;
|
|
2619
2619
|
O.push({
|
|
@@ -2623,10 +2623,10 @@ function Va(e, t, n, r) {
|
|
|
2623
2623
|
});
|
|
2624
2624
|
}
|
|
2625
2625
|
else if (G >= 0) {
|
|
2626
|
-
const
|
|
2627
|
-
J.length === 0 ? O.splice(G, 1) : (
|
|
2626
|
+
const U = { ...O[G] }, J = U.actions.filter((B) => B !== D);
|
|
2627
|
+
J.length === 0 ? O.splice(G, 1) : (U.actions = J, O[G] = U);
|
|
2628
2628
|
}
|
|
2629
|
-
const H = t.value.find((
|
|
2629
|
+
const H = t.value.find((U) => U.subject === I);
|
|
2630
2630
|
H && Dn(O, I, H.actions), r("update:model-value", O);
|
|
2631
2631
|
}
|
|
2632
2632
|
function k(I, D) {
|
|
@@ -2647,67 +2647,67 @@ function Va(e, t, n, r) {
|
|
|
2647
2647
|
).length;
|
|
2648
2648
|
return O > 0 && O < V.length;
|
|
2649
2649
|
}
|
|
2650
|
-
function
|
|
2650
|
+
function x(I, D, V) {
|
|
2651
2651
|
const O = [...e.value];
|
|
2652
2652
|
for (const G of I.options) {
|
|
2653
2653
|
if (!_(I, G.value, D)) continue;
|
|
2654
|
-
const H = G.value,
|
|
2655
|
-
(
|
|
2654
|
+
const H = G.value, U = O.findIndex(
|
|
2655
|
+
(B) => B.subject === H && !B.inverted
|
|
2656
2656
|
);
|
|
2657
2657
|
if (V)
|
|
2658
|
-
if (
|
|
2659
|
-
const
|
|
2660
|
-
se.add(D),
|
|
2658
|
+
if (U >= 0) {
|
|
2659
|
+
const B = { ...O[U] }, se = new Set(B.actions);
|
|
2660
|
+
se.add(D), B.actions = Array.from(se), O[U] = B;
|
|
2661
2661
|
} else {
|
|
2662
|
-
const
|
|
2663
|
-
if (!
|
|
2662
|
+
const B = t.value.find((oe) => oe.subject === H);
|
|
2663
|
+
if (!B) continue;
|
|
2664
2664
|
const {
|
|
2665
2665
|
category: se,
|
|
2666
2666
|
showByFeatureFlag: Q,
|
|
2667
2667
|
isCategoryCover: fe,
|
|
2668
2668
|
...Ie
|
|
2669
|
-
} =
|
|
2669
|
+
} = B, ve = f(I, H);
|
|
2670
2670
|
O.push({
|
|
2671
2671
|
...Ie,
|
|
2672
2672
|
actions: [D],
|
|
2673
2673
|
...ve !== void 0 && { conditions: ve }
|
|
2674
2674
|
});
|
|
2675
2675
|
}
|
|
2676
|
-
else if (
|
|
2677
|
-
const
|
|
2678
|
-
se.length === 0 ? O.splice(
|
|
2676
|
+
else if (U >= 0) {
|
|
2677
|
+
const B = { ...O[U] }, se = B.actions.filter((Q) => Q !== D);
|
|
2678
|
+
se.length === 0 ? O.splice(U, 1) : (B.actions = se, O[U] = B);
|
|
2679
2679
|
}
|
|
2680
|
-
const J = t.value.find((
|
|
2680
|
+
const J = t.value.find((B) => B.subject === H);
|
|
2681
2681
|
J && Dn(O, H, J.actions);
|
|
2682
2682
|
}
|
|
2683
2683
|
r("update:model-value", O);
|
|
2684
2684
|
}
|
|
2685
2685
|
function F(I) {
|
|
2686
|
-
const D = `permissionSet.actionLabels.${I}`, V =
|
|
2686
|
+
const D = `permissionSet.actionLabels.${I}`, V = xa[I] ?? I.charAt(0).toUpperCase() + I.slice(1);
|
|
2687
2687
|
return s(D, V);
|
|
2688
2688
|
}
|
|
2689
2689
|
return {
|
|
2690
2690
|
categoryGroups: l,
|
|
2691
2691
|
toggleCategory: g,
|
|
2692
|
-
isAllManageChecked:
|
|
2692
|
+
isAllManageChecked: N,
|
|
2693
2693
|
isAllManageIndeterminate: T,
|
|
2694
2694
|
toggleAllManage: j,
|
|
2695
2695
|
isManageChecked: w,
|
|
2696
2696
|
isManageIndeterminate: P,
|
|
2697
2697
|
toggleManage: b,
|
|
2698
|
-
hasNonManageActions:
|
|
2698
|
+
hasNonManageActions: A,
|
|
2699
2699
|
isActionChecked: u,
|
|
2700
2700
|
isRowFullyCoveredByCover: y,
|
|
2701
2701
|
isActionCoveredByCover: E,
|
|
2702
2702
|
permissionDefinesAction: _,
|
|
2703
|
-
toggleAction:
|
|
2703
|
+
toggleAction: R,
|
|
2704
2704
|
isAllActionChecked: k,
|
|
2705
2705
|
isAllActionIndeterminate: $,
|
|
2706
|
-
toggleAllAction:
|
|
2706
|
+
toggleAllAction: x,
|
|
2707
2707
|
actionLabel: F
|
|
2708
2708
|
};
|
|
2709
2709
|
}
|
|
2710
|
-
const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" },
|
|
2710
|
+
const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Xa = ["onClick"], Ya = { class: "flex justify-center" }, Ba = { class: "flex items-center min-w-0 gap-8" }, Ha = ["title", "onClick"], Ja = { class: "flex justify-center" }, $a = /* @__PURE__ */ Re({
|
|
2711
2711
|
__name: "BasePermission",
|
|
2712
2712
|
props: {
|
|
2713
2713
|
modelValue: {
|
|
@@ -2739,8 +2739,8 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
2739
2739
|
isAllManageChecked: d,
|
|
2740
2740
|
isAllManageIndeterminate: l,
|
|
2741
2741
|
toggleAllManage: g,
|
|
2742
|
-
isManageChecked:
|
|
2743
|
-
isManageIndeterminate:
|
|
2742
|
+
isManageChecked: C,
|
|
2743
|
+
isManageIndeterminate: N,
|
|
2744
2744
|
toggleManage: T,
|
|
2745
2745
|
isActionChecked: j,
|
|
2746
2746
|
isRowFullyCoveredByCover: w,
|
|
@@ -2748,49 +2748,49 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
2748
2748
|
permissionDefinesAction: P,
|
|
2749
2749
|
toggleAction: f,
|
|
2750
2750
|
isAllActionChecked: b,
|
|
2751
|
-
isAllActionIndeterminate:
|
|
2751
|
+
isAllActionIndeterminate: A,
|
|
2752
2752
|
toggleAllAction: u,
|
|
2753
2753
|
actionLabel: y
|
|
2754
2754
|
} = Va(
|
|
2755
2755
|
qt(n, "modelValue"),
|
|
2756
2756
|
a,
|
|
2757
2757
|
qt(n, "excludedSubjects"),
|
|
2758
|
-
(
|
|
2758
|
+
(R, k) => r("update:model-value", k)
|
|
2759
2759
|
);
|
|
2760
|
-
function E(
|
|
2761
|
-
const k =
|
|
2760
|
+
function E(R) {
|
|
2761
|
+
const k = R.selectedSubjects.length;
|
|
2762
2762
|
return k === 0 && n.layout !== "leading" ? "" : s("team.memberForm.permissions.allowedCount", { count: k });
|
|
2763
2763
|
}
|
|
2764
|
-
function _(
|
|
2765
|
-
return
|
|
2766
|
-
($) => P(
|
|
2764
|
+
function _(R, k) {
|
|
2765
|
+
return C(R, k) || w(R, k) ? !0 : R.actionColumns.some(
|
|
2766
|
+
($) => P(R, k, $) && (j(R, k, $) || L(R, k, $))
|
|
2767
2767
|
);
|
|
2768
2768
|
}
|
|
2769
|
-
return (
|
|
2769
|
+
return (R, k) => {
|
|
2770
2770
|
const $ = Fe("FmCheckbox");
|
|
2771
2771
|
return K(), re("div", Wa, [
|
|
2772
|
-
(K(!0), re(we, null,
|
|
2773
|
-
key:
|
|
2774
|
-
subtitle: E(
|
|
2772
|
+
(K(!0), re(we, null, Ne(Y(m), (x) => (K(), Oe(Yt, {
|
|
2773
|
+
key: x.category,
|
|
2774
|
+
subtitle: E(x),
|
|
2775
2775
|
layout: e.layout,
|
|
2776
2776
|
"initially-collapsed": e.layout === "leading"
|
|
2777
2777
|
}, {
|
|
2778
2778
|
title: de(() => [
|
|
2779
2779
|
ue("p", {
|
|
2780
|
-
class:
|
|
2781
|
-
}, Le(
|
|
2780
|
+
class: Ce(e.layout === "leading" ? "text-[18px] font-semibold leading-[24px] tracking-[-0.27px]" : "fm-typo-en-title-sm-600")
|
|
2781
|
+
}, Le(x.label), 3)
|
|
2782
2782
|
]),
|
|
2783
2783
|
default: de(() => [
|
|
2784
2784
|
ue("div", Ga, [
|
|
2785
2785
|
ue("div", {
|
|
2786
2786
|
class: "grid items-center px-12 py-8",
|
|
2787
2787
|
style: rt({
|
|
2788
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2788
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2789
2789
|
})
|
|
2790
2790
|
}, [
|
|
2791
2791
|
k[0] || (k[0] = ue("div", null, null, -1)),
|
|
2792
2792
|
ue("div", Za, Le(Y(s)("team.memberForm.permissions.columnManage")), 1),
|
|
2793
|
-
(K(!0), re(we, null,
|
|
2793
|
+
(K(!0), re(we, null, Ne(x.actionColumns, (F) => (K(), re("div", {
|
|
2794
2794
|
key: `header-${F}`,
|
|
2795
2795
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2796
2796
|
}, Le(Y(y)(F)), 1))), 128))
|
|
@@ -2798,83 +2798,83 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
2798
2798
|
ue("div", {
|
|
2799
2799
|
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
2800
2800
|
style: rt({
|
|
2801
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2801
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2802
2802
|
})
|
|
2803
2803
|
}, [
|
|
2804
2804
|
ue("div", {
|
|
2805
2805
|
class: "cursor-pointer font-semibold",
|
|
2806
|
-
onClick: (F) => !e.disable && Y(g)(
|
|
2807
|
-
}, Le(Y(s)("team.labels.all")), 9,
|
|
2806
|
+
onClick: (F) => !e.disable && Y(g)(x)
|
|
2807
|
+
}, Le(Y(s)("team.labels.all")), 9, Xa),
|
|
2808
2808
|
ue("div", Ya, [
|
|
2809
2809
|
ce($, {
|
|
2810
|
-
"model-value": Y(d)(
|
|
2811
|
-
indeterminate: Y(l)(
|
|
2810
|
+
"model-value": Y(d)(x),
|
|
2811
|
+
indeterminate: Y(l)(x),
|
|
2812
2812
|
value: !0,
|
|
2813
2813
|
disabled: e.disable,
|
|
2814
2814
|
size: "sm",
|
|
2815
2815
|
dense: "",
|
|
2816
|
-
"onUpdate:modelValue": (F) => Y(g)(
|
|
2816
|
+
"onUpdate:modelValue": (F) => Y(g)(x)
|
|
2817
2817
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2818
2818
|
]),
|
|
2819
|
-
(K(!0), re(we, null,
|
|
2819
|
+
(K(!0), re(we, null, Ne(x.actionColumns, (F) => (K(), re("div", {
|
|
2820
2820
|
key: `all-${F}`,
|
|
2821
2821
|
class: "flex justify-center"
|
|
2822
2822
|
}, [
|
|
2823
2823
|
ce($, {
|
|
2824
|
-
"model-value": Y(b)(
|
|
2825
|
-
indeterminate: Y(
|
|
2824
|
+
"model-value": Y(b)(x, F),
|
|
2825
|
+
indeterminate: Y(A)(x, F),
|
|
2826
2826
|
value: F,
|
|
2827
2827
|
disabled: e.disable,
|
|
2828
2828
|
size: "sm",
|
|
2829
2829
|
dense: "",
|
|
2830
|
-
"onUpdate:modelValue": (I) => Y(u)(
|
|
2830
|
+
"onUpdate:modelValue": (I) => Y(u)(x, F, I)
|
|
2831
2831
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2832
2832
|
]))), 128))
|
|
2833
2833
|
], 4),
|
|
2834
2834
|
k[1] || (k[1] = ue("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2835
|
-
(K(!0), re(we, null,
|
|
2835
|
+
(K(!0), re(we, null, Ne(x.options, (F) => (K(), re("div", {
|
|
2836
2836
|
key: F.optionKey,
|
|
2837
2837
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2838
2838
|
style: rt({
|
|
2839
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2839
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2840
2840
|
})
|
|
2841
2841
|
}, [
|
|
2842
|
-
ue("div",
|
|
2842
|
+
ue("div", Ba, [
|
|
2843
2843
|
ue("span", {
|
|
2844
2844
|
class: "block truncate cursor-pointer",
|
|
2845
2845
|
title: F.label,
|
|
2846
|
-
onClick: (I) => !e.disable && !Y(w)(
|
|
2846
|
+
onClick: (I) => !e.disable && !Y(w)(x, F.value) && Y(T)(x, F.value, !Y(C)(x, F.value))
|
|
2847
2847
|
}, Le(F.label), 9, Ha),
|
|
2848
|
-
ke(
|
|
2848
|
+
ke(R.$slots, `checkbox-${F.value}-append`, {
|
|
2849
2849
|
option: F,
|
|
2850
|
-
isEffectiveSelected: _(
|
|
2851
|
-
isCoveredByCover: Y(w)(
|
|
2850
|
+
isEffectiveSelected: _(x, F.value),
|
|
2851
|
+
isCoveredByCover: Y(w)(x, F.value) || x.actionColumns.some((I) => Y(L)(x, F.value, I))
|
|
2852
2852
|
}),
|
|
2853
|
-
ke(
|
|
2853
|
+
ke(R.$slots, `checkbox-${F.value}-icon`, {
|
|
2854
2854
|
option: F,
|
|
2855
|
-
isEffectiveSelected: _(
|
|
2856
|
-
isCoveredByCover: Y(w)(
|
|
2855
|
+
isEffectiveSelected: _(x, F.value),
|
|
2856
|
+
isCoveredByCover: Y(w)(x, F.value) || x.actionColumns.some((I) => Y(L)(x, F.value, I))
|
|
2857
2857
|
})
|
|
2858
2858
|
]),
|
|
2859
2859
|
ue("div", Ja, [
|
|
2860
2860
|
ce($, {
|
|
2861
|
-
"model-value": Y(
|
|
2861
|
+
"model-value": Y(C)(x, F.value) || Y(w)(x, F.value),
|
|
2862
2862
|
value: F.value,
|
|
2863
|
-
disabled: e.disable || Y(w)(
|
|
2864
|
-
indeterminate: Y(
|
|
2863
|
+
disabled: e.disable || Y(w)(x, F.value),
|
|
2864
|
+
indeterminate: Y(N)(x, F.value),
|
|
2865
2865
|
size: "sm",
|
|
2866
|
-
"onUpdate:modelValue": (I) => Y(T)(
|
|
2866
|
+
"onUpdate:modelValue": (I) => Y(T)(x, F.value, I)
|
|
2867
2867
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2868
2868
|
]),
|
|
2869
|
-
(K(!0), re(we, null,
|
|
2869
|
+
(K(!0), re(we, null, Ne(x.actionColumns, (I) => (K(), re("div", {
|
|
2870
2870
|
key: `${F.optionKey}-${I}`,
|
|
2871
2871
|
class: "flex justify-center"
|
|
2872
2872
|
}, [
|
|
2873
|
-
Y(P)(
|
|
2873
|
+
Y(P)(x, F.value, I) ? (K(), Oe($, {
|
|
2874
2874
|
key: 0,
|
|
2875
|
-
"model-value": Y(j)(
|
|
2875
|
+
"model-value": Y(j)(x, F.value, I) || Y(L)(x, F.value, I),
|
|
2876
2876
|
value: I,
|
|
2877
|
-
disabled: e.disable || Y(L)(
|
|
2877
|
+
disabled: e.disable || Y(L)(x, F.value, I),
|
|
2878
2878
|
size: "sm",
|
|
2879
2879
|
"onUpdate:modelValue": (D) => Y(f)(F.value, I, D)
|
|
2880
2880
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Te("", !0)
|
|
@@ -2893,7 +2893,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
2893
2893
|
}, Qa = {
|
|
2894
2894
|
key: 0,
|
|
2895
2895
|
class: "q-mr-xs text-red col"
|
|
2896
|
-
}, qa = { class: "form-input" }, eo = /* @__PURE__ */
|
|
2896
|
+
}, qa = { class: "form-input" }, eo = /* @__PURE__ */ Re({
|
|
2897
2897
|
__name: "AppForm",
|
|
2898
2898
|
props: {
|
|
2899
2899
|
title: {
|
|
@@ -2929,7 +2929,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
2929
2929
|
}), to = { class: "col flex items-center" }, no = {
|
|
2930
2930
|
key: 1,
|
|
2931
2931
|
class: "q-pa-sm form-error-message text-error"
|
|
2932
|
-
}, dr = /* @__PURE__ */
|
|
2932
|
+
}, dr = /* @__PURE__ */ Re({
|
|
2933
2933
|
__name: "CheckboxInput",
|
|
2934
2934
|
props: {
|
|
2935
2935
|
options: {
|
|
@@ -2987,13 +2987,13 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
2987
2987
|
},
|
|
2988
2988
|
emits: ["update:model-value"],
|
|
2989
2989
|
setup(e, { emit: t }) {
|
|
2990
|
-
const n = e, r = t, { t: s } = ze(), a = st(!1), m = br(), d = z(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), l = `checkbox-${Pr(6)}`, g = z(() => d.value !== !0),
|
|
2990
|
+
const n = e, r = t, { t: s } = ze(), a = st(!1), m = br(), d = z(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), l = `checkbox-${Pr(6)}`, g = z(() => d.value !== !0), C = z(
|
|
2991
2991
|
() => n.modelValue.filter((L) => n.options.some((P) => P.value === L))
|
|
2992
|
-
),
|
|
2992
|
+
), N = z(
|
|
2993
2993
|
() => typeof n.showAllToggle == "boolean" ? s("team.labels.all") : n.showAllToggle
|
|
2994
|
-
), T = z(() => n.options.length > 0 && n.options.length ===
|
|
2994
|
+
), T = z(() => n.options.length > 0 && n.options.length === C.value.length);
|
|
2995
2995
|
function j() {
|
|
2996
|
-
const L = n.modelValue.filter((P) => !
|
|
2996
|
+
const L = n.modelValue.filter((P) => !C.value.includes(P));
|
|
2997
2997
|
if (T.value === !0)
|
|
2998
2998
|
r("update:model-value", L);
|
|
2999
2999
|
else {
|
|
@@ -3020,20 +3020,20 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3020
3020
|
key: 0,
|
|
3021
3021
|
"model-value": T.value,
|
|
3022
3022
|
disabled: e.disable,
|
|
3023
|
-
label:
|
|
3023
|
+
label: N.value,
|
|
3024
3024
|
style: rt(`margin-bottom: ${n.gutter}px`),
|
|
3025
3025
|
size: "sm",
|
|
3026
3026
|
dense: "",
|
|
3027
|
-
value:
|
|
3027
|
+
value: N.value,
|
|
3028
3028
|
"onUpdate:modelValue": j
|
|
3029
3029
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Te("", !0),
|
|
3030
|
-
(K(!0), re(we, null,
|
|
3030
|
+
(K(!0), re(we, null, Ne(e.options, (b, A) => (K(), re("div", {
|
|
3031
3031
|
key: b.value,
|
|
3032
|
-
style: rt(`margin-bottom: ${
|
|
3033
|
-
class:
|
|
3032
|
+
style: rt(`margin-bottom: ${A < e.options.length - 1 ? n.gutter : 0}px`),
|
|
3033
|
+
class: Ce(A < e.options.length - 1 ? "q-mb-sm" : "")
|
|
3034
3034
|
}, [
|
|
3035
3035
|
ue("div", {
|
|
3036
|
-
class:
|
|
3036
|
+
class: Ce(["row justify-between", e.alignCenter ? "items-center" : "items-start"])
|
|
3037
3037
|
}, [
|
|
3038
3038
|
ue("div", to, [
|
|
3039
3039
|
ce(f, {
|
|
@@ -3051,7 +3051,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3051
3051
|
]),
|
|
3052
3052
|
Y(m)[`checkbox-${b.key || b.value}-end`] && (e.modelValue.includes(b.value) || e.falsyShowSlot) ? (K(), re("div", {
|
|
3053
3053
|
key: 0,
|
|
3054
|
-
class:
|
|
3054
|
+
class: Ce([{ "q-checkbox disabled": e.disable || b.disabled }, "col"])
|
|
3055
3055
|
}, [
|
|
3056
3056
|
ke(L.$slots, `checkbox-${b.key || b.value}-end`, {
|
|
3057
3057
|
option: b,
|
|
@@ -3062,7 +3062,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3062
3062
|
], 2),
|
|
3063
3063
|
Y(m)[`checkbox-${b.key || b.value}-bottom`] && (e.modelValue.includes(b.value) || e.falsyShowSlot) ? (K(), re("div", {
|
|
3064
3064
|
key: 0,
|
|
3065
|
-
class:
|
|
3065
|
+
class: Ce(["q-mt-sm", { "q-checkbox disabled": e.disable || b.disabled }]),
|
|
3066
3066
|
style: rt(`margin-left: ${e.bottomSlotIndent}`)
|
|
3067
3067
|
}, [
|
|
3068
3068
|
ke(L.$slots, `checkbox-${b.key || b.value}-bottom`, {
|
|
@@ -3078,7 +3078,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3078
3078
|
}, 8, ["title"]);
|
|
3079
3079
|
};
|
|
3080
3080
|
}
|
|
3081
|
-
}), ht = "includedFuture", Fn = /* @__PURE__ */
|
|
3081
|
+
}), ht = "includedFuture", Fn = /* @__PURE__ */ Re({
|
|
3082
3082
|
__name: "ConditionPermission",
|
|
3083
3083
|
props: {
|
|
3084
3084
|
modelValue: {
|
|
@@ -3113,26 +3113,26 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3113
3113
|
disabled: !!n.modelValue && n.options.length > n.modelValue.length
|
|
3114
3114
|
},
|
|
3115
3115
|
...n.options.filter(
|
|
3116
|
-
(
|
|
3116
|
+
(C) => C.label.toLocaleLowerCase().includes(g.value.toLocaleLowerCase())
|
|
3117
3117
|
)
|
|
3118
|
-
]), m = z(() => n.modelValue ? n.modelValue : [ht, ...n.options.map((
|
|
3118
|
+
]), m = z(() => n.modelValue ? n.modelValue : [ht, ...n.options.map((C) => C.value)]), d = z(() => {
|
|
3119
3119
|
if (n.layout === "leading") {
|
|
3120
|
-
const
|
|
3121
|
-
return Jn(
|
|
3120
|
+
const N = n.modelValue ? n.options.filter((T) => n.modelValue.includes(T.value)).map((T) => T.label) : null;
|
|
3121
|
+
return Jn(N, {
|
|
3122
3122
|
all: s("team.labels.all"),
|
|
3123
3123
|
none: s("team.labels.none"),
|
|
3124
3124
|
more: (T) => s("team.labels.more", { count: T })
|
|
3125
3125
|
});
|
|
3126
3126
|
}
|
|
3127
|
-
const
|
|
3128
|
-
return
|
|
3127
|
+
const C = m.value.filter((N) => N !== ht).length;
|
|
3128
|
+
return C === 0 ? "" : s("team.memberForm.permissions.allowedCount", { count: C });
|
|
3129
3129
|
});
|
|
3130
|
-
function l(
|
|
3131
|
-
const
|
|
3132
|
-
r("update:model-value",
|
|
3130
|
+
function l(C) {
|
|
3131
|
+
const N = C.length === a.value.length;
|
|
3132
|
+
r("update:model-value", N ? null : C.filter((T) => T !== ht));
|
|
3133
3133
|
}
|
|
3134
3134
|
const g = st("");
|
|
3135
|
-
return (
|
|
3135
|
+
return (C, N) => {
|
|
3136
3136
|
const T = Fe("fm-search");
|
|
3137
3137
|
return K(), Oe(Yt, {
|
|
3138
3138
|
subtitle: d.value,
|
|
@@ -3141,7 +3141,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3141
3141
|
}, {
|
|
3142
3142
|
title: de(() => [
|
|
3143
3143
|
ue("p", {
|
|
3144
|
-
class:
|
|
3144
|
+
class: Ce(
|
|
3145
3145
|
e.layout === "leading" ? "text-[18px] font-semibold leading-[24px] tracking-[-0.27px]" : "fm-typo-en-title-sm-600"
|
|
3146
3146
|
)
|
|
3147
3147
|
}, Le(Y(s)("team.memberForm.permissions.manageable", { context: e.context })), 3)
|
|
@@ -3150,7 +3150,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3150
3150
|
e.options.length > 1 ? (K(), Oe(T, {
|
|
3151
3151
|
key: 0,
|
|
3152
3152
|
modelValue: g.value,
|
|
3153
|
-
"onUpdate:modelValue":
|
|
3153
|
+
"onUpdate:modelValue": N[0] || (N[0] = (j) => g.value = j),
|
|
3154
3154
|
class: "mt-16",
|
|
3155
3155
|
placeholder: Y(s)("team.memberForm.permissions.search", { context: e.context })
|
|
3156
3156
|
}, null, 8, ["modelValue", "placeholder"])) : Te("", !0),
|
|
@@ -3165,10 +3165,10 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3165
3165
|
class: "mt-16",
|
|
3166
3166
|
"onUpdate:modelValue": l
|
|
3167
3167
|
}, tt({ _: 2 }, [
|
|
3168
|
-
|
|
3168
|
+
Ne(a.value, (j) => ({
|
|
3169
3169
|
name: `checkbox-${j.value}-append`,
|
|
3170
3170
|
fn: de(({ option: w }) => [
|
|
3171
|
-
ke(
|
|
3171
|
+
ke(C.$slots, `checkbox-${j.value}-append`, { option: w })
|
|
3172
3172
|
])
|
|
3173
3173
|
}))
|
|
3174
3174
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3177,7 +3177,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3177
3177
|
}, 8, ["subtitle", "layout", "initially-collapsed"]);
|
|
3178
3178
|
};
|
|
3179
3179
|
}
|
|
3180
|
-
}), bt = "includedNewRole", ro = /* @__PURE__ */
|
|
3180
|
+
}), bt = "includedNewRole", ro = /* @__PURE__ */ Re({
|
|
3181
3181
|
__name: "PosRolePermission",
|
|
3182
3182
|
props: {
|
|
3183
3183
|
modelValue: {
|
|
@@ -3212,36 +3212,36 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3212
3212
|
value: bt,
|
|
3213
3213
|
disabled: !!n.modelValue && n.roles.length > n.modelValue.length
|
|
3214
3214
|
},
|
|
3215
|
-
...n.roles.map((
|
|
3216
|
-
label:
|
|
3217
|
-
value:
|
|
3218
|
-
disabled: !!g &&
|
|
3215
|
+
...n.roles.map((C) => ({
|
|
3216
|
+
label: C.name,
|
|
3217
|
+
value: C._id,
|
|
3218
|
+
disabled: !!g && C.restaurants.every(({ id: N }) => !g.includes(N))
|
|
3219
3219
|
}))
|
|
3220
3220
|
];
|
|
3221
3221
|
}), m = z(() => n.modelValue ? n.modelValue : [bt, ...n.roles.map((g) => g._id)]), d = z(() => {
|
|
3222
3222
|
if (n.layout === "leading") {
|
|
3223
|
-
const
|
|
3224
|
-
return Jn(
|
|
3223
|
+
const C = n.modelValue ? n.roles.filter((N) => n.modelValue.includes(N._id)).map((N) => N.name) : null;
|
|
3224
|
+
return Jn(C, {
|
|
3225
3225
|
all: s("team.labels.all"),
|
|
3226
3226
|
none: s("team.labels.none"),
|
|
3227
|
-
more: (
|
|
3227
|
+
more: (N) => s("team.labels.more", { count: N })
|
|
3228
3228
|
});
|
|
3229
3229
|
}
|
|
3230
|
-
const g = m.value.filter((
|
|
3230
|
+
const g = m.value.filter((C) => C !== bt).length;
|
|
3231
3231
|
return g === 0 ? "" : s("team.memberForm.permissions.allowedCount", { count: g });
|
|
3232
3232
|
});
|
|
3233
3233
|
function l(g) {
|
|
3234
|
-
const
|
|
3235
|
-
r("update:model-value",
|
|
3234
|
+
const C = g.length === a.value.length;
|
|
3235
|
+
r("update:model-value", C ? null : g.filter((N) => N !== bt));
|
|
3236
3236
|
}
|
|
3237
|
-
return (g,
|
|
3237
|
+
return (g, C) => (K(), Oe(Yt, {
|
|
3238
3238
|
subtitle: d.value,
|
|
3239
3239
|
layout: e.layout,
|
|
3240
3240
|
"initially-collapsed": e.layout === "leading"
|
|
3241
3241
|
}, {
|
|
3242
3242
|
title: de(() => [
|
|
3243
3243
|
ue("p", {
|
|
3244
|
-
class:
|
|
3244
|
+
class: Ce(
|
|
3245
3245
|
e.layout === "leading" ? "text-[18px] font-semibold leading-[24px] tracking-[-0.27px]" : "fm-typo-en-title-sm-600"
|
|
3246
3246
|
)
|
|
3247
3247
|
}, Le(Y(s)("team.memberForm.permissions.roles")), 3)
|
|
@@ -3257,10 +3257,10 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3257
3257
|
class: "mt-16",
|
|
3258
3258
|
"onUpdate:modelValue": l
|
|
3259
3259
|
}, tt({ _: 2 }, [
|
|
3260
|
-
|
|
3261
|
-
name: `checkbox-${
|
|
3260
|
+
Ne(a.value, (N) => ({
|
|
3261
|
+
name: `checkbox-${N.value}-append`,
|
|
3262
3262
|
fn: de(({ option: T }) => [
|
|
3263
|
-
ke(g.$slots, `checkbox-${
|
|
3263
|
+
ke(g.$slots, `checkbox-${N.value}-append`, { option: T })
|
|
3264
3264
|
])
|
|
3265
3265
|
}))
|
|
3266
3266
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3278,7 +3278,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3278
3278
|
}, oo = {
|
|
3279
3279
|
key: 0,
|
|
3280
3280
|
class: "ml-32"
|
|
3281
|
-
}, Pn = /* @__PURE__ */
|
|
3281
|
+
}, Pn = /* @__PURE__ */ Re({
|
|
3282
3282
|
__name: "PortalConditionForm",
|
|
3283
3283
|
props: {
|
|
3284
3284
|
entry: {},
|
|
@@ -3298,7 +3298,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3298
3298
|
const n = t, { t: r } = ze();
|
|
3299
3299
|
return (s, a) => {
|
|
3300
3300
|
const m = Fe("FmRadio"), d = Fe("FmRadioGroup");
|
|
3301
|
-
return K(), Oe(
|
|
3301
|
+
return K(), Oe(Ar, {
|
|
3302
3302
|
title: e.title,
|
|
3303
3303
|
builders: e.builders,
|
|
3304
3304
|
"form-value-for": e.formValueFor,
|
|
@@ -3361,14 +3361,14 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3361
3361
|
}
|
|
3362
3362
|
};
|
|
3363
3363
|
function jn(e, t) {
|
|
3364
|
-
return
|
|
3364
|
+
return Xn(e, Bn).some(
|
|
3365
3365
|
(n) => n.subject === t && !n.inverted && n.actions.includes("manage")
|
|
3366
3366
|
);
|
|
3367
3367
|
}
|
|
3368
|
-
function
|
|
3368
|
+
function Un(e, t) {
|
|
3369
3369
|
return e.some((n) => n.subject === t && n.inverted) ? e : [...e, { subject: t, actions: ["manage"], inverted: !0 }];
|
|
3370
3370
|
}
|
|
3371
|
-
function
|
|
3371
|
+
function xn(e, t, n) {
|
|
3372
3372
|
const { category: r, showByFeatureFlag: s, isCategoryCover: a, ...m } = e;
|
|
3373
3373
|
return {
|
|
3374
3374
|
...m,
|
|
@@ -3386,23 +3386,23 @@ function io(e, t, n, r) {
|
|
|
3386
3386
|
);
|
|
3387
3387
|
let d = [...n];
|
|
3388
3388
|
for (const l of s)
|
|
3389
|
-
a.has(l) || (m.has(l) && (d = d.filter((
|
|
3389
|
+
a.has(l) || (m.has(l) && (d = d.filter((C) => C.subject !== l)), (!m.has(l) || jn(d, l)) && (d = Un(d, l)));
|
|
3390
3390
|
for (const l of a)
|
|
3391
3391
|
if (!s.has(l)) {
|
|
3392
|
-
const g = d.some((
|
|
3393
|
-
if (d = d.filter((
|
|
3394
|
-
const
|
|
3392
|
+
const g = d.some((C) => C.subject === l && C.inverted);
|
|
3393
|
+
if (d = d.filter((C) => !(C.subject === l && C.inverted)), !g && !m.has(l)) {
|
|
3394
|
+
const C = t.find(
|
|
3395
3395
|
(T) => T.subject === l && !T.inverted
|
|
3396
|
-
),
|
|
3397
|
-
|
|
3396
|
+
), N = r(l);
|
|
3397
|
+
N && C && d.push(xn(N, C.actions, C.conditions));
|
|
3398
3398
|
}
|
|
3399
3399
|
}
|
|
3400
3400
|
for (const l of a) {
|
|
3401
3401
|
if (!s.has(l)) continue;
|
|
3402
|
-
const g = e.find((w) => w.subject === l && !w.inverted),
|
|
3403
|
-
if (!g || !
|
|
3404
|
-
const
|
|
3405
|
-
if (
|
|
3402
|
+
const g = e.find((w) => w.subject === l && !w.inverted), C = t.find((w) => w.subject === l && !w.inverted);
|
|
3403
|
+
if (!g || !C) continue;
|
|
3404
|
+
const N = new Set(g.actions), T = new Set(C.actions);
|
|
3405
|
+
if (N.size === T.size && [...N].every((w) => T.has(w)))
|
|
3406
3406
|
continue;
|
|
3407
3407
|
const j = d.findIndex((w) => w.subject === l && !w.inverted);
|
|
3408
3408
|
if (j >= 0)
|
|
@@ -3412,9 +3412,9 @@ function io(e, t, n, r) {
|
|
|
3412
3412
|
};
|
|
3413
3413
|
else {
|
|
3414
3414
|
const w = r(l);
|
|
3415
|
-
w && d.push(
|
|
3415
|
+
w && d.push(xn(w, Array.from(T)));
|
|
3416
3416
|
}
|
|
3417
|
-
|
|
3417
|
+
N.has("manage") && !T.has("manage") && jn(d, l) && (d = Un(d, l)), !N.has("manage") && T.has("manage") && (d = d.filter((w) => !(w.subject === l && w.inverted)));
|
|
3418
3418
|
}
|
|
3419
3419
|
return d;
|
|
3420
3420
|
}
|
|
@@ -3443,7 +3443,7 @@ function mo(e, t) {
|
|
|
3443
3443
|
function gt(e, t) {
|
|
3444
3444
|
return `${e}::${t.builderKey}`;
|
|
3445
3445
|
}
|
|
3446
|
-
function
|
|
3446
|
+
function Be(e) {
|
|
3447
3447
|
try {
|
|
3448
3448
|
return e.conditions ? JSON.parse(e.conditions) : void 0;
|
|
3449
3449
|
} catch {
|
|
@@ -3453,24 +3453,24 @@ function Xe(e) {
|
|
|
3453
3453
|
function fo(e, t) {
|
|
3454
3454
|
return e.find((n) => !n.inverted && n.subject === t);
|
|
3455
3455
|
}
|
|
3456
|
-
function
|
|
3456
|
+
function Rt(e, t) {
|
|
3457
3457
|
const n = new Set(e.actions);
|
|
3458
3458
|
return n.has(Ye.Action.manage) ? !0 : t.actions.every((r) => n.has(r));
|
|
3459
3459
|
}
|
|
3460
3460
|
function Zt(e, t) {
|
|
3461
|
-
const n =
|
|
3461
|
+
const n = Be(e);
|
|
3462
3462
|
return Dt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3463
3463
|
}
|
|
3464
3464
|
function Vn(e, t, n) {
|
|
3465
3465
|
return {
|
|
3466
3466
|
...Zt(e, n),
|
|
3467
|
-
...nt(
|
|
3467
|
+
...nt(Be(t), n)
|
|
3468
3468
|
};
|
|
3469
3469
|
}
|
|
3470
3470
|
function _o(e, t, n) {
|
|
3471
3471
|
const r = st(/* @__PURE__ */ new Set());
|
|
3472
3472
|
function s(u) {
|
|
3473
|
-
return
|
|
3473
|
+
return Cr(u, t.value);
|
|
3474
3474
|
}
|
|
3475
3475
|
function a(u) {
|
|
3476
3476
|
return t.value.find((y) => y.subject === u);
|
|
@@ -3484,45 +3484,45 @@ function _o(e, t, n) {
|
|
|
3484
3484
|
return fo(e.value, u);
|
|
3485
3485
|
}
|
|
3486
3486
|
function l(u, y) {
|
|
3487
|
-
return nt(
|
|
3487
|
+
return nt(Be(u), y);
|
|
3488
3488
|
}
|
|
3489
3489
|
function g(u, y) {
|
|
3490
|
-
var
|
|
3491
|
-
if (!(((
|
|
3490
|
+
var R;
|
|
3491
|
+
if (!(((R = y.appliesToActions) == null ? void 0 : R.call(y, u.actions)) ?? !0)) return !1;
|
|
3492
3492
|
const E = s(u.subject);
|
|
3493
3493
|
if (!E) return !1;
|
|
3494
3494
|
const _ = d(E);
|
|
3495
3495
|
return _ ? Object.keys(l(_, y)).length > 0 : !1;
|
|
3496
3496
|
}
|
|
3497
|
-
function
|
|
3497
|
+
function C(u, y) {
|
|
3498
3498
|
if (!g(u, y) || r.value.has(gt(u.subject, y))) return "custom";
|
|
3499
3499
|
if (u.index === null) return "inherit";
|
|
3500
|
-
const E = e.value[u.index], _ = s(u.subject),
|
|
3501
|
-
if (E &&
|
|
3502
|
-
const k = nt(
|
|
3500
|
+
const E = e.value[u.index], _ = s(u.subject), R = _ ? d(_) : void 0;
|
|
3501
|
+
if (E && R) {
|
|
3502
|
+
const k = nt(Be(E), y), $ = l(R, y);
|
|
3503
3503
|
if (JSON.stringify(k) === JSON.stringify($)) return "inherit";
|
|
3504
3504
|
}
|
|
3505
3505
|
return "custom";
|
|
3506
3506
|
}
|
|
3507
|
-
function
|
|
3507
|
+
function N(u, y, E) {
|
|
3508
3508
|
if (!y.summarizeForm) return;
|
|
3509
3509
|
const _ = s(u.subject);
|
|
3510
3510
|
if (!_) return;
|
|
3511
|
-
const
|
|
3512
|
-
if (!
|
|
3513
|
-
const k = y.fromCondition(l(
|
|
3511
|
+
const R = d(_);
|
|
3512
|
+
if (!R) return;
|
|
3513
|
+
const k = y.fromCondition(l(R, y));
|
|
3514
3514
|
return y.summarizeForm(k, { timeZone: E });
|
|
3515
3515
|
}
|
|
3516
3516
|
function T(u, y) {
|
|
3517
3517
|
if (u.index === null) return;
|
|
3518
|
-
const E = [...e.value], _ = { ...E[u.index] },
|
|
3518
|
+
const E = [...e.value], _ = { ...E[u.index] }, R = Zt(_, y), k = Object.keys(R).length === 0, $ = s(u.subject), x = $ ? d($) : void 0, F = x ? Rt(x, _) : !1;
|
|
3519
3519
|
if (k && F)
|
|
3520
3520
|
E.splice(u.index, 1);
|
|
3521
|
-
else if (
|
|
3522
|
-
const I = Vn(_,
|
|
3521
|
+
else if (x) {
|
|
3522
|
+
const I = Vn(_, x, y);
|
|
3523
3523
|
Object.keys(I).length === 0 ? delete _.conditions : _.conditions = JSON.stringify(I), E[u.index] = _;
|
|
3524
3524
|
} else
|
|
3525
|
-
k ? delete _.conditions : _.conditions = JSON.stringify(
|
|
3525
|
+
k ? delete _.conditions : _.conditions = JSON.stringify(R), E[u.index] = _;
|
|
3526
3526
|
n(E);
|
|
3527
3527
|
}
|
|
3528
3528
|
function j(u, y, E) {
|
|
@@ -3532,8 +3532,8 @@ function _o(e, t, n) {
|
|
|
3532
3532
|
k.delete(_), r.value = k, T(u, y);
|
|
3533
3533
|
return;
|
|
3534
3534
|
}
|
|
3535
|
-
const
|
|
3536
|
-
|
|
3535
|
+
const R = new Set(r.value);
|
|
3536
|
+
R.add(_), r.value = R, u.index === null && b(u, y, y.fromCondition(void 0), {
|
|
3537
3537
|
forceCreateRule: !0
|
|
3538
3538
|
});
|
|
3539
3539
|
}
|
|
@@ -3547,45 +3547,45 @@ function _o(e, t, n) {
|
|
|
3547
3547
|
return e.value.filter((E) => {
|
|
3548
3548
|
if (E.inverted) return !1;
|
|
3549
3549
|
const _ = E.subject;
|
|
3550
|
-
return _ === u || s(_) !== u ? !1 : r.value.has(gt(_, y)) ? !0 : Object.keys(nt(
|
|
3550
|
+
return _ === u || s(_) !== u ? !1 : r.value.has(gt(_, y)) ? !0 : Object.keys(nt(Be(E), y)).length > 0;
|
|
3551
3551
|
});
|
|
3552
3552
|
}
|
|
3553
3553
|
function P(u, y) {
|
|
3554
3554
|
const E = `::${y.builderKey}`, _ = new Set(r.value);
|
|
3555
|
-
for (const
|
|
3556
|
-
if (!
|
|
3557
|
-
const k =
|
|
3558
|
-
s(k) === u && _.delete(
|
|
3555
|
+
for (const R of _) {
|
|
3556
|
+
if (!R.endsWith(E)) continue;
|
|
3557
|
+
const k = R.slice(0, -E.length);
|
|
3558
|
+
s(k) === u && _.delete(R);
|
|
3559
3559
|
}
|
|
3560
3560
|
r.value = _;
|
|
3561
3561
|
}
|
|
3562
3562
|
function f(u, y, E) {
|
|
3563
3563
|
const _ = y.subject;
|
|
3564
|
-
return u.reduce((
|
|
3564
|
+
return u.reduce((R, k) => {
|
|
3565
3565
|
if (k.inverted)
|
|
3566
|
-
return
|
|
3566
|
+
return R.push(k), R;
|
|
3567
3567
|
const $ = k.subject;
|
|
3568
3568
|
if ($ === _ || s($) !== _)
|
|
3569
|
-
return
|
|
3570
|
-
if (
|
|
3571
|
-
return
|
|
3569
|
+
return R.push(k), R;
|
|
3570
|
+
if (Rt(y, k) && Object.keys(Zt(k, E)).length === 0)
|
|
3571
|
+
return R;
|
|
3572
3572
|
const F = Vn(k, y, E);
|
|
3573
3573
|
if (Object.keys(F).length === 0) {
|
|
3574
3574
|
const { conditions: I, ...D } = k;
|
|
3575
|
-
|
|
3575
|
+
R.push(D);
|
|
3576
3576
|
} else
|
|
3577
|
-
|
|
3578
|
-
return
|
|
3577
|
+
R.push({ ...k, conditions: JSON.stringify(F) });
|
|
3578
|
+
return R;
|
|
3579
3579
|
}, []);
|
|
3580
3580
|
}
|
|
3581
3581
|
function b(u, y, E, _ = {}) {
|
|
3582
3582
|
var V;
|
|
3583
|
-
const
|
|
3583
|
+
const R = [...e.value];
|
|
3584
3584
|
let k = u.index;
|
|
3585
|
-
const $ = y.toCondition(E),
|
|
3586
|
-
if (k === null && !
|
|
3585
|
+
const $ = y.toCondition(E), x = Object.keys($).length > 0;
|
|
3586
|
+
if (k === null && !x && !_.forceCreateRule) return;
|
|
3587
3587
|
if (k === null) {
|
|
3588
|
-
const O =
|
|
3588
|
+
const O = R.findIndex((G) => !G.inverted && G.subject === u.subject);
|
|
3589
3589
|
if (O !== -1)
|
|
3590
3590
|
k = O;
|
|
3591
3591
|
else {
|
|
@@ -3593,28 +3593,28 @@ function _o(e, t, n) {
|
|
|
3593
3593
|
if (!G) return;
|
|
3594
3594
|
const {
|
|
3595
3595
|
category: H,
|
|
3596
|
-
showByFeatureFlag:
|
|
3596
|
+
showByFeatureFlag: U,
|
|
3597
3597
|
isCategoryCover: J,
|
|
3598
|
-
...
|
|
3598
|
+
...B
|
|
3599
3599
|
} = G;
|
|
3600
|
-
|
|
3601
|
-
...
|
|
3602
|
-
actions: u.actions.length > 0 ? u.actions :
|
|
3603
|
-
}), k =
|
|
3600
|
+
R.push({
|
|
3601
|
+
...B,
|
|
3602
|
+
actions: u.actions.length > 0 ? u.actions : B.actions
|
|
3603
|
+
}), k = R.length - 1;
|
|
3604
3604
|
}
|
|
3605
3605
|
}
|
|
3606
|
-
const F = { ...
|
|
3606
|
+
const F = { ...R[k] };
|
|
3607
3607
|
F.actions = [
|
|
3608
3608
|
.../* @__PURE__ */ new Set([...F.actions, ...u.actions])
|
|
3609
3609
|
];
|
|
3610
|
-
const I =
|
|
3611
|
-
if (Object.keys(D).length === 0 ? delete F.conditions : F.conditions = JSON.stringify(D),
|
|
3610
|
+
const I = Be(F), D = Dt(I, [{ builder: y, formValue: E }]);
|
|
3611
|
+
if (Object.keys(D).length === 0 ? delete F.conditions : F.conditions = JSON.stringify(D), R[k] = F, tn(u.subject, t.value)) {
|
|
3612
3612
|
const O = L(u.subject, y), G = () => {
|
|
3613
|
-
var
|
|
3614
|
-
P(u.subject, y), n(f(
|
|
3613
|
+
var U;
|
|
3614
|
+
P(u.subject, y), n(f(R, F, y)), (U = _.afterCommit) == null || U.call(_);
|
|
3615
3615
|
}, H = () => {
|
|
3616
|
-
var
|
|
3617
|
-
n(
|
|
3616
|
+
var U;
|
|
3617
|
+
n(R), (U = _.afterCommit) == null || U.call(_);
|
|
3618
3618
|
};
|
|
3619
3619
|
if (O.length === 0) {
|
|
3620
3620
|
G();
|
|
@@ -3623,45 +3623,45 @@ function _o(e, t, n) {
|
|
|
3623
3623
|
_.onOverridesConflict ? _.onOverridesConflict({ override: G, keep: H }) : H();
|
|
3624
3624
|
return;
|
|
3625
3625
|
}
|
|
3626
|
-
n(
|
|
3626
|
+
n(R), (V = _.afterCommit) == null || V.call(_);
|
|
3627
3627
|
}
|
|
3628
|
-
function
|
|
3628
|
+
function A(u, y, E = {}) {
|
|
3629
3629
|
if (y.length === 0) return;
|
|
3630
3630
|
const _ = [...e.value];
|
|
3631
|
-
let
|
|
3631
|
+
let R = _.findIndex((O) => !O.inverted && O.subject === u.subject), k = R === -1 ? void 0 : { ..._[R] }, $ = Be(k ?? {}) ?? {};
|
|
3632
3632
|
for (const O of y) {
|
|
3633
3633
|
const G = O.mode === "inherit" ? O.builder.fromCondition(void 0) : O.form;
|
|
3634
3634
|
$ = Dt($, [{ builder: O.builder, formValue: G }]);
|
|
3635
3635
|
}
|
|
3636
|
-
const
|
|
3637
|
-
if (!k && (Object.keys($).length > 0 ||
|
|
3638
|
-
const O = t.value.find((
|
|
3636
|
+
const x = y.some((O) => O.mode === "custom");
|
|
3637
|
+
if (!k && (Object.keys($).length > 0 || x)) {
|
|
3638
|
+
const O = t.value.find((B) => B.subject === u.subject);
|
|
3639
3639
|
if (!O) return;
|
|
3640
3640
|
const {
|
|
3641
3641
|
category: G,
|
|
3642
3642
|
showByFeatureFlag: H,
|
|
3643
|
-
isCategoryCover:
|
|
3643
|
+
isCategoryCover: U,
|
|
3644
3644
|
...J
|
|
3645
3645
|
} = O;
|
|
3646
3646
|
k = {
|
|
3647
3647
|
...J,
|
|
3648
3648
|
actions: u.actions.length > 0 ? u.actions : J.actions
|
|
3649
|
-
}, _.push(k),
|
|
3649
|
+
}, _.push(k), R = _.length - 1;
|
|
3650
3650
|
}
|
|
3651
3651
|
if (k) {
|
|
3652
3652
|
const O = s(u.subject), G = O ? d(O) : void 0;
|
|
3653
|
-
if (!
|
|
3654
|
-
_.splice(
|
|
3653
|
+
if (!x && Object.keys($).length === 0 && !!G && Rt(G, k))
|
|
3654
|
+
_.splice(R, 1), k = void 0;
|
|
3655
3655
|
else {
|
|
3656
3656
|
if (k.actions = [
|
|
3657
3657
|
.../* @__PURE__ */ new Set([...k.actions, ...u.actions])
|
|
3658
3658
|
], G)
|
|
3659
|
-
for (const
|
|
3660
|
-
|
|
3659
|
+
for (const U of y)
|
|
3660
|
+
U.mode === "inherit" && ($ = {
|
|
3661
3661
|
...$,
|
|
3662
|
-
...nt(
|
|
3662
|
+
...nt(Be(G), U.builder)
|
|
3663
3663
|
});
|
|
3664
|
-
Object.keys($).length === 0 ? delete k.conditions : k.conditions = JSON.stringify($), _[
|
|
3664
|
+
Object.keys($).length === 0 ? delete k.conditions : k.conditions = JSON.stringify($), _[R] = k;
|
|
3665
3665
|
}
|
|
3666
3666
|
}
|
|
3667
3667
|
const F = () => {
|
|
@@ -3695,15 +3695,15 @@ function _o(e, t, n) {
|
|
|
3695
3695
|
getCoverSubject: s,
|
|
3696
3696
|
coverLabel: m,
|
|
3697
3697
|
shouldShowInheritToggle: g,
|
|
3698
|
-
inheritMode:
|
|
3698
|
+
inheritMode: C,
|
|
3699
3699
|
setInheritMode: j,
|
|
3700
|
-
inheritedSummary:
|
|
3700
|
+
inheritedSummary: N,
|
|
3701
3701
|
getEffectiveActions: w,
|
|
3702
3702
|
updateBuilderCondition: b,
|
|
3703
|
-
applyConditionDrafts:
|
|
3703
|
+
applyConditionDrafts: A
|
|
3704
3704
|
};
|
|
3705
3705
|
}
|
|
3706
|
-
const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ho = "condition-form-select-menu",
|
|
3706
|
+
const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ho = "condition-form-select-menu", Ao = /* @__PURE__ */ Re({
|
|
3707
3707
|
__name: "PortalPermissionEditor",
|
|
3708
3708
|
props: /* @__PURE__ */ en({
|
|
3709
3709
|
disable: {
|
|
@@ -3732,10 +3732,10 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
3732
3732
|
setup(e, { emit: t }) {
|
|
3733
3733
|
const n = gr(e, "modelValue"), r = e, s = z(() => r.part === "all" ? "trailing" : "leading"), a = z(
|
|
3734
3734
|
() => r.part === "all" ? "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" : ""
|
|
3735
|
-
), m = t, { t: d } = ze(), l = yr(), g = Ir(), { breakpoints:
|
|
3735
|
+
), m = t, { t: d } = ze(), l = yr(), g = Ir(), { breakpoints: C } = Er(), N = z(() => C.value.xs || C.value.sm), {
|
|
3736
3736
|
fetchCustomReportPermissions: T,
|
|
3737
3737
|
customReportPermissions: j
|
|
3738
|
-
} =
|
|
3738
|
+
} = Nr(), w = z(() => [
|
|
3739
3739
|
...Zn,
|
|
3740
3740
|
...j.value
|
|
3741
3741
|
]), L = z(() => {
|
|
@@ -3764,7 +3764,7 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
3764
3764
|
id: S.subject,
|
|
3765
3765
|
setNames: S.setNames
|
|
3766
3766
|
}));
|
|
3767
|
-
}),
|
|
3767
|
+
}), A = z(() => {
|
|
3768
3768
|
const c = r.inheritPermissions.map((h) => ({
|
|
3769
3769
|
...h,
|
|
3770
3770
|
permissions: h.permissions.filter(
|
|
@@ -3774,7 +3774,7 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
3774
3774
|
return St(
|
|
3775
3775
|
c,
|
|
3776
3776
|
"warehouseId",
|
|
3777
|
-
|
|
3777
|
+
R.value.map((h) => h._id)
|
|
3778
3778
|
);
|
|
3779
3779
|
}), u = z(() => {
|
|
3780
3780
|
const c = r.inheritPermissions.map((h) => ({
|
|
@@ -3804,15 +3804,15 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
3804
3804
|
(S) => S.subject === Ye.Subject.Business.inventory_stock
|
|
3805
3805
|
);
|
|
3806
3806
|
return c ? c.conditions ? JSON.parse(c.conditions).warehouseId.$in : null : [];
|
|
3807
|
-
}),
|
|
3807
|
+
}), R = st([]), k = z(() => R.value.map((c) => ({
|
|
3808
3808
|
label: c.profile.name,
|
|
3809
3809
|
value: c._id
|
|
3810
3810
|
})));
|
|
3811
3811
|
function $(c) {
|
|
3812
|
-
const h =
|
|
3812
|
+
const h = x(n.value, c);
|
|
3813
3813
|
n.value = h;
|
|
3814
3814
|
}
|
|
3815
|
-
function
|
|
3815
|
+
function x(c, h) {
|
|
3816
3816
|
let S = Hn(
|
|
3817
3817
|
c.filter((M) => M.subject !== Ye.Subject.Business.inventory_stock)
|
|
3818
3818
|
);
|
|
@@ -3825,38 +3825,38 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
3825
3825
|
}
|
|
3826
3826
|
return S;
|
|
3827
3827
|
}
|
|
3828
|
-
const { restaurants: F } = l, I =
|
|
3828
|
+
const { restaurants: F } = l, I = Ur().roles, D = z(() => F.value.map((c) => ({
|
|
3829
3829
|
label: `${c.profile.code ? c.profile.code + "-" : ""}${c.profile.name}`,
|
|
3830
3830
|
value: c._id
|
|
3831
3831
|
}))), V = z(() => F.value.reduce((c, h) => (c[h._id] = I.value.filter((S) => S.restaurants.some((M) => M.id === h._id)).map((S) => S._id), c), {})), O = z(() => Or(n.value));
|
|
3832
3832
|
function G(c) {
|
|
3833
|
-
const h =
|
|
3833
|
+
const h = U(n.value, c);
|
|
3834
3834
|
n.value = h;
|
|
3835
3835
|
}
|
|
3836
3836
|
const H = z(() => Sr(n.value));
|
|
3837
|
-
function
|
|
3837
|
+
function U(c, h) {
|
|
3838
3838
|
return Lr(c, h, {
|
|
3839
3839
|
restaurantRoles: V.value,
|
|
3840
3840
|
allRoleIds: I.value.map((S) => S._id)
|
|
3841
3841
|
});
|
|
3842
3842
|
}
|
|
3843
3843
|
function J(c) {
|
|
3844
|
-
const h =
|
|
3844
|
+
const h = B(n.value, c);
|
|
3845
3845
|
n.value = h;
|
|
3846
3846
|
}
|
|
3847
|
-
function
|
|
3847
|
+
function B(c, h) {
|
|
3848
3848
|
return kr(c, h);
|
|
3849
3849
|
}
|
|
3850
3850
|
const { isFoodCourt: se } = Yn();
|
|
3851
3851
|
Wn(async () => {
|
|
3852
3852
|
await Promise.all([
|
|
3853
|
-
r.part !== "portal" && !se.value && lo.readWarehouses().then((c) =>
|
|
3853
|
+
r.part !== "portal" && !se.value && lo.readWarehouses().then((c) => R.value = c),
|
|
3854
3854
|
T()
|
|
3855
3855
|
]);
|
|
3856
3856
|
});
|
|
3857
|
-
const Q = z(() =>
|
|
3857
|
+
const Q = z(() => Xn(
|
|
3858
3858
|
n.value,
|
|
3859
|
-
|
|
3859
|
+
Bn
|
|
3860
3860
|
).filter((S) => {
|
|
3861
3861
|
const M = S.source;
|
|
3862
3862
|
return (M == null ? void 0 : M.type) !== "systemPermissionSet" ? !0 : S.actions.includes("manage");
|
|
@@ -3910,8 +3910,8 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
3910
3910
|
}), c;
|
|
3911
3911
|
}), oe = _o(n, w, (c) => {
|
|
3912
3912
|
n.value = c;
|
|
3913
|
-
}), ie =
|
|
3914
|
-
function
|
|
3913
|
+
}), ie = Rr(n), Pe = st(null);
|
|
3914
|
+
function X(c, h) {
|
|
3915
3915
|
const S = ve.value.get(c);
|
|
3916
3916
|
if (S) return S;
|
|
3917
3917
|
const M = oe.getEffectiveActions(c), p = f(c, M);
|
|
@@ -3963,7 +3963,7 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
3963
3963
|
}
|
|
3964
3964
|
);
|
|
3965
3965
|
}
|
|
3966
|
-
function
|
|
3966
|
+
function Ue(c) {
|
|
3967
3967
|
return ie.hasDraftsForSubject(c);
|
|
3968
3968
|
}
|
|
3969
3969
|
function Ze(c, h) {
|
|
@@ -3994,7 +3994,7 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
3994
3994
|
message: d("team.memberForm.permissions.conditionCover.confirmMessage", {
|
|
3995
3995
|
cover: c.label
|
|
3996
3996
|
}),
|
|
3997
|
-
minWidth:
|
|
3997
|
+
minWidth: C.value.lg ? 588 : 0,
|
|
3998
3998
|
zIndex: 200,
|
|
3999
3999
|
primaryActions: {
|
|
4000
4000
|
text: d("team.memberForm.permissions.conditionCover.override"),
|
|
@@ -4023,11 +4023,11 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
4023
4023
|
), (c, h) => {
|
|
4024
4024
|
const S = Fe("FmIcon"), M = Fe("FmBottomSheet"), p = Fe("FmPopover");
|
|
4025
4025
|
return K(), re("div", {
|
|
4026
|
-
class:
|
|
4026
|
+
class: Ce(["flex flex-col", e.part === "all" ? "gap-32" : "gap-16"])
|
|
4027
4027
|
}, [
|
|
4028
4028
|
e.part !== "workplace" ? (K(), re("div", {
|
|
4029
4029
|
key: 0,
|
|
4030
|
-
class:
|
|
4030
|
+
class: Ce(a.value)
|
|
4031
4031
|
}, [
|
|
4032
4032
|
ce($a, {
|
|
4033
4033
|
"model-value": Q.value,
|
|
@@ -4036,21 +4036,21 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
4036
4036
|
layout: s.value,
|
|
4037
4037
|
"onUpdate:modelValue": fe
|
|
4038
4038
|
}, tt({ _: 2 }, [
|
|
4039
|
-
|
|
4039
|
+
Ne(b.value, (v) => ({
|
|
4040
4040
|
name: `checkbox-${v.id}-append`,
|
|
4041
4041
|
fn: de(() => [
|
|
4042
4042
|
ce(vt, { item: v }, null, 8, ["item"])
|
|
4043
4043
|
])
|
|
4044
4044
|
})),
|
|
4045
|
-
|
|
4045
|
+
Ne(Ie.value, (v) => ({
|
|
4046
4046
|
name: `checkbox-${v}-icon`,
|
|
4047
4047
|
fn: de(({ option: Z, isEffectiveSelected: te }) => [
|
|
4048
|
-
te &&
|
|
4049
|
-
|
|
4048
|
+
te && X(v, Z.label) ? (K(), re(we, { key: 0 }, [
|
|
4049
|
+
N.value ? (K(), Oe(M, {
|
|
4050
4050
|
key: 0,
|
|
4051
4051
|
"model-value": Pe.value === v,
|
|
4052
4052
|
header: Y(d)("team.memberForm.permissions.conditionTitle", {
|
|
4053
|
-
context:
|
|
4053
|
+
context: X(v, Z.label).label
|
|
4054
4054
|
}),
|
|
4055
4055
|
"dismiss-away": "",
|
|
4056
4056
|
"z-index": 100,
|
|
@@ -4064,28 +4064,28 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
4064
4064
|
ce(S, {
|
|
4065
4065
|
name: "settings",
|
|
4066
4066
|
size: "sm",
|
|
4067
|
-
class:
|
|
4067
|
+
class: Ce([
|
|
4068
4068
|
"cursor-pointer transition-colors",
|
|
4069
|
-
qe(
|
|
4069
|
+
qe(X(v, Z.label)) ? "text-fm-color-primary-main" : "text-fm-color-neutral-gray-400 hover:text-fm-color-neutral-gray-600"
|
|
4070
4070
|
])
|
|
4071
4071
|
}, null, 8, ["class"])
|
|
4072
4072
|
])
|
|
4073
4073
|
]),
|
|
4074
4074
|
default: de(() => [
|
|
4075
4075
|
ce(Pn, {
|
|
4076
|
-
entry:
|
|
4077
|
-
builders:
|
|
4076
|
+
entry: X(v, Z.label),
|
|
4077
|
+
builders: X(v, Z.label).sections.map((le) => le.builder),
|
|
4078
4078
|
subject: v,
|
|
4079
4079
|
"time-zone": L.value,
|
|
4080
4080
|
"cover-override": Y(oe),
|
|
4081
|
-
"inherit-mode-for": (le) => $e(
|
|
4082
|
-
"form-value-for": (le) => _e(
|
|
4083
|
-
"has-changes":
|
|
4081
|
+
"inherit-mode-for": (le) => $e(X(v, Z.label), le),
|
|
4082
|
+
"form-value-for": (le) => _e(X(v, Z.label), le),
|
|
4083
|
+
"has-changes": Ue(v),
|
|
4084
4084
|
disable: e.disable,
|
|
4085
4085
|
"full-width": !0,
|
|
4086
|
-
onUpdateInheritMode: ({ builder: le, mode: he }) => je(
|
|
4087
|
-
onUpdateForm: ({ builder: le, form: he }) => Ge(
|
|
4088
|
-
onApply: (le) => Ze(
|
|
4086
|
+
onUpdateInheritMode: ({ builder: le, mode: he }) => je(X(v, Z.label), le, he),
|
|
4087
|
+
onUpdateForm: ({ builder: le, form: he }) => Ge(X(v, Z.label), le, he),
|
|
4088
|
+
onApply: (le) => Ze(X(v, Z.label), () => Pe.value = null)
|
|
4089
4089
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4090
4090
|
]),
|
|
4091
4091
|
_: 2
|
|
@@ -4104,34 +4104,34 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
4104
4104
|
ce(S, {
|
|
4105
4105
|
name: "settings",
|
|
4106
4106
|
size: "sm",
|
|
4107
|
-
class:
|
|
4107
|
+
class: Ce([
|
|
4108
4108
|
"cursor-pointer transition-colors",
|
|
4109
|
-
qe(
|
|
4109
|
+
qe(X(v, Z.label)) ? "text-fm-color-primary-main" : "text-fm-color-neutral-gray-400 hover:text-fm-color-neutral-gray-600"
|
|
4110
4110
|
])
|
|
4111
4111
|
}, null, 8, ["class"])
|
|
4112
4112
|
])
|
|
4113
4113
|
]),
|
|
4114
4114
|
default: de(({ hide: le }) => [
|
|
4115
4115
|
ce(Pn, {
|
|
4116
|
-
entry:
|
|
4117
|
-
builders:
|
|
4116
|
+
entry: X(v, Z.label),
|
|
4117
|
+
builders: X(v, Z.label).sections.map((he) => he.builder),
|
|
4118
4118
|
subject: v,
|
|
4119
4119
|
"time-zone": L.value,
|
|
4120
4120
|
"cover-override": Y(oe),
|
|
4121
4121
|
title: Y(d)("team.memberForm.permissions.conditionTitle", {
|
|
4122
|
-
context:
|
|
4122
|
+
context: X(v, Z.label).label
|
|
4123
4123
|
}),
|
|
4124
|
-
"inherit-mode-for": (he) => $e(
|
|
4125
|
-
"form-value-for": (he) => _e(
|
|
4126
|
-
"has-changes":
|
|
4124
|
+
"inherit-mode-for": (he) => $e(X(v, Z.label), he),
|
|
4125
|
+
"form-value-for": (he) => _e(X(v, Z.label), he),
|
|
4126
|
+
"has-changes": Ue(v),
|
|
4127
4127
|
disable: e.disable,
|
|
4128
4128
|
onUpdateInheritMode: ({ builder: he, mode: Me }) => je(
|
|
4129
|
-
|
|
4129
|
+
X(v, Z.label),
|
|
4130
4130
|
he,
|
|
4131
4131
|
Me
|
|
4132
4132
|
),
|
|
4133
|
-
onUpdateForm: ({ builder: he, form: Me }) => Ge(
|
|
4134
|
-
onApply: (he) => Ze(
|
|
4133
|
+
onUpdateForm: ({ builder: he, form: Me }) => Ge(X(v, Z.label), he, Me),
|
|
4134
|
+
onApply: (he) => Ze(X(v, Z.label), le)
|
|
4135
4135
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "title", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4136
4136
|
]),
|
|
4137
4137
|
_: 2
|
|
@@ -4148,7 +4148,7 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
4148
4148
|
], 2)) : Te("", !0),
|
|
4149
4149
|
e.part !== "portal" && !Y(se) ? (K(), re("div", {
|
|
4150
4150
|
key: 1,
|
|
4151
|
-
class:
|
|
4151
|
+
class: Ce(a.value)
|
|
4152
4152
|
}, [
|
|
4153
4153
|
ce(Fn, {
|
|
4154
4154
|
"model-value": _.value,
|
|
@@ -4157,7 +4157,7 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
4157
4157
|
layout: s.value,
|
|
4158
4158
|
"onUpdate:modelValue": $
|
|
4159
4159
|
}, tt({ _: 2 }, [
|
|
4160
|
-
|
|
4160
|
+
Ne(A.value, (v) => ({
|
|
4161
4161
|
name: `checkbox-${v.id}-append`,
|
|
4162
4162
|
fn: de(() => [
|
|
4163
4163
|
ce(vt, { item: v }, null, 8, ["item"])
|
|
@@ -4167,7 +4167,7 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
4167
4167
|
], 2)) : Te("", !0),
|
|
4168
4168
|
e.part !== "portal" && !Y(se) ? (K(), re("div", {
|
|
4169
4169
|
key: 2,
|
|
4170
|
-
class:
|
|
4170
|
+
class: Ce([a.value, { "order-first": e.part === "workplace" }])
|
|
4171
4171
|
}, [
|
|
4172
4172
|
ce(Fn, {
|
|
4173
4173
|
"model-value": O.value,
|
|
@@ -4176,7 +4176,7 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
4176
4176
|
layout: s.value,
|
|
4177
4177
|
"onUpdate:modelValue": G
|
|
4178
4178
|
}, tt({ _: 2 }, [
|
|
4179
|
-
|
|
4179
|
+
Ne(u.value, (v) => ({
|
|
4180
4180
|
name: `checkbox-${v.id}-append`,
|
|
4181
4181
|
fn: de(() => [
|
|
4182
4182
|
ce(vt, { item: v }, null, 8, ["item"])
|
|
@@ -4186,7 +4186,7 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
4186
4186
|
], 2)) : Te("", !0),
|
|
4187
4187
|
e.part !== "portal" && !Y(se) ? (K(), re("div", {
|
|
4188
4188
|
key: 3,
|
|
4189
|
-
class:
|
|
4189
|
+
class: Ce(a.value)
|
|
4190
4190
|
}, [
|
|
4191
4191
|
ce(ro, {
|
|
4192
4192
|
roles: Y(I),
|
|
@@ -4195,7 +4195,7 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
4195
4195
|
layout: s.value,
|
|
4196
4196
|
"onUpdate:modelValue": J
|
|
4197
4197
|
}, tt({ _: 2 }, [
|
|
4198
|
-
|
|
4198
|
+
Ne(y.value, (v) => ({
|
|
4199
4199
|
name: `checkbox-${v.id}-append`,
|
|
4200
4200
|
fn: de(() => [
|
|
4201
4201
|
ce(vt, { item: v }, null, 8, ["item"])
|
|
@@ -4208,5 +4208,5 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
4208
4208
|
}
|
|
4209
4209
|
});
|
|
4210
4210
|
export {
|
|
4211
|
-
|
|
4211
|
+
Ao as _
|
|
4212
4212
|
};
|