@feedmepos/mf-hrm-portal 2.3.2-dev.10 → 2.3.2-dev.11
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-RKU5B8SO.js → ApprovalCodeList-DoNoFW6w.js} +7 -7
- package/dist/{AuditLogList-DuDCMjGR.js → AuditLogList-D5M0cl8g.js} +5 -5
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-pL2zRc67.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C1dLOPFb.js} +2 -2
- package/dist/{EmployeeList-nrYsS5uz.js → EmployeeList-BX9gy9WG.js} +8 -8
- package/dist/{FormSection.vue_vue_type_script_setup_true_lang-7S2w36aY.js → FormSection.vue_vue_type_script_setup_true_lang-iCgTyICI.js} +1 -1
- package/dist/{GrantUserList-BSjeC4MC.js → GrantUserList-DNvmmlDI.js} +8 -8
- package/dist/{Main-CpuHaXU6.js → Main-2NivoQNg.js} +5 -5
- package/dist/{Main-DbdoVLCE.js → Main-BHmY7VHC.js} +10 -10
- package/dist/{Main-DtmCBbTR.js → Main-SzU5H5uC.js} +2449 -2444
- package/dist/{MyPosProfile-CsTCfGNT.js → MyPosProfile-2W5mT5d5.js} +1 -1
- package/dist/{PermissionSetList-B1c-uGZO.js → PermissionSetList-BCAm8rHm.js} +6 -6
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Toq6qrLx.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-e2vu_Mcn.js} +678 -678
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-D6Z9z_Yt.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DYbfmF2P.js} +414 -448
- package/dist/{RoleForm.vue_vue_type_script_setup_true_lang-TWTVo_9Y.js → RoleForm.vue_vue_type_script_setup_true_lang-o4mXv2hT.js} +9 -9
- package/dist/{RoleList-CwaGNsFy.js → RoleList-BXkyCeH0.js} +7 -7
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-C2ekVXdR.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DOxRdHY1.js} +1 -1
- package/dist/{ScheduleGeneralPage-BVtXmxtp.js → ScheduleGeneralPage-4hV53-q6.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-DdsQ8v-5.js → ScheduleModal.vue_vue_type_script_setup_true_lang-D5jOHLA1.js} +4 -4
- package/dist/{SchedulePage-3qksmT2I.js → SchedulePage-CqNa_p32.js} +9 -9
- package/dist/{SchedulePositionPage-DAU20KPZ.js → SchedulePositionPage-7xYBe1xd.js} +3 -3
- package/dist/{SelectFilter-BpzBwBmQ.js → SelectFilter-Dy2Nv1_D.js} +1 -1
- package/dist/{TeamMemberList-Bdpm40i3.js → TeamMemberList-okhiXdLg.js} +12 -12
- package/dist/{TimesheetList-CL_eJp2h.js → TimesheetList-BKj9OnJW.js} +6 -6
- package/dist/{app-DEZT4wdV.js → app-C37qvNnc.js} +10 -10
- package/dist/app.js +1 -1
- package/dist/{approval-code-BZTz5OXK.js → approval-code-B7rpc4Oe.js} +1 -1
- package/dist/{dayjs.min-B55I-uhI.js → dayjs.min-D35yhU4A.js} +1 -1
- package/dist/{employee-C6z5i6O4.js → employee-Bn6HTMxg.js} +5 -5
- package/dist/{grant-user-B2rYztyf.js → grant-user-CostZ0Md.js} +1 -1
- package/dist/{index-Bfdseotz.js → index-DPiNc7mn.js} +1 -1
- package/dist/{lodash-B8bqa6a9.js → lodash-C8MGI_QW.js} +1 -1
- package/dist/{member-grant-BIpKkuu8.js → member-grant-CktOoicv.js} +2 -2
- package/dist/{restaurant-ejyX2jEG.js → restaurant-BgvuJL8G.js} +1 -1
- package/dist/{role-C_t3DDlG.js → role-D8G5QOG1.js} +3 -3
- package/dist/{rule-Ccopk8R_.js → rule-EYBPBkv_.js} +3 -3
- package/dist/{timesheet-CZHcebqS.js → timesheet-D6jBeR-V.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DfqsbhT2.js → useAppStore-BmBJPo1_.js} +1 -1
- package/dist/{useLoading-CQnX5WjI.js → useLoading-BtyGXkm_.js} +1 -1
- package/dist/{useReportPermissions-kTjftFk7.js → useReportPermissions-C8z7EA7v.js} +3 -3
- package/dist/useSsoProviders-CZrTNgfp.js +41 -0
- package/package.json +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { getCurrentInstance as Yt, inject as ur, ref as st, shallowRef as mr, computed as K, watch as Mt, onMounted as xn, onUnmounted as dr, defineComponent as
|
|
1
|
+
import { getCurrentInstance as Yt, inject as ur, ref as st, shallowRef as mr, computed as K, watch as Mt, onMounted as xn, onUnmounted as dr, defineComponent as Re, h as Vn, createVNode as oe, Text as fr, Fragment as Me, resolveComponent as De, createBlock as Ne, openBlock as $, withCtx as ce, createElementVNode as ie, createElementBlock as re, toDisplayString as Oe, unref as B, renderList as Ee, toRef as qt, normalizeStyle as rt, renderSlot as Le, createCommentVNode as Ce, normalizeClass as Ie, createTextVNode as _r, useSlots as pr, createSlots as tt, mergeModels as en, useModel as vr } from "vue";
|
|
2
2
|
import { useI18n as Ke, useCoreStore as hr } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialog as br, useBreakpoints as gr } from "@feedmepos/ui-library";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { p as Gn, N as Wn, Y as tn, V as yr, a as Ir, j as Er, Q as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { u as
|
|
5
|
+
import { p as Gn, N as Wn, Y as tn, V as yr, a as Ir, j as Er, Q as Cr, A as Nr, D as Tr, C as Or } from "./rule-EYBPBkv_.js";
|
|
6
|
+
import { _ as Xt, a as Lr, b as nn, u as Sr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C1dLOPFb.js";
|
|
7
|
+
import { u as Rr, v as Ar, g as kr, b as Mr, P as Zn, S as Dt, A as nt, m as Ye, j as rn } from "./app-C37qvNnc.js";
|
|
8
8
|
import { c as Yn } from "./iteration-CcXrOMQe.js";
|
|
9
|
-
import { r as
|
|
10
|
-
import "./index-
|
|
11
|
-
import { W as
|
|
12
|
-
import { u as Fr } from "./role-
|
|
13
|
-
function
|
|
9
|
+
import { r as Dr, s as Xn } from "./string-DZQ1uNjn.js";
|
|
10
|
+
import "./index-DPiNc7mn.js";
|
|
11
|
+
import { W as wr } from "./member-grant-CktOoicv.js";
|
|
12
|
+
import { u as Fr } from "./role-D8G5QOG1.js";
|
|
13
|
+
function Lt(e, t, n) {
|
|
14
14
|
const r = /* @__PURE__ */ new Map();
|
|
15
15
|
return e.forEach(
|
|
16
16
|
({ name: a, permissions: o }) => o.forEach(({ conditions: f, actions: d }) => {
|
|
17
17
|
var b, E;
|
|
18
18
|
const i = JSON.parse(f || "{}");
|
|
19
19
|
(b = i[t]) != null && b.$in ? (E = i[t]) == null || E.$in.forEach(
|
|
20
|
-
(
|
|
21
|
-
) : d[0] === "manage" && n.forEach((
|
|
22
|
-
(r.get(
|
|
20
|
+
(N) => (r.get(N) ?? r.set(N, /* @__PURE__ */ new Set()).get(N)).add(a)
|
|
21
|
+
) : d[0] === "manage" && n.forEach((N) => {
|
|
22
|
+
(r.get(N) ?? r.set(N, /* @__PURE__ */ new Set()).get(N)).add(a);
|
|
23
23
|
});
|
|
24
24
|
})
|
|
25
25
|
), [...r].map(([a, o]) => ({
|
|
@@ -32,7 +32,7 @@ function Rt(e, t, n) {
|
|
|
32
32
|
* (c) 2024 kazuya kawaguchi
|
|
33
33
|
* Released under the MIT License.
|
|
34
34
|
*/
|
|
35
|
-
const sn = typeof window < "u", ze = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Pr = (e, t, n) => jr({ l: e, k: t, s: n }), jr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), be = (e) => typeof e == "number" && isFinite(e), Ur = (e) =>
|
|
35
|
+
const sn = typeof window < "u", ze = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Pr = (e, t, n) => jr({ l: e, k: t, s: n }), jr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), be = (e) => typeof e == "number" && isFinite(e), Ur = (e) => Bt(e) === "[object Date]", It = (e) => Bt(e) === "[object RegExp]", Ct = (e) => q(e) && Object.keys(e).length === 0, ge = Object.assign, xr = Object.create, se = (e = null) => xr(e);
|
|
36
36
|
let an;
|
|
37
37
|
const Je = () => an || (an = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : se());
|
|
38
38
|
function on(e) {
|
|
@@ -42,7 +42,7 @@ const Vr = Object.prototype.hasOwnProperty;
|
|
|
42
42
|
function Se(e, t) {
|
|
43
43
|
return Vr.call(e, t);
|
|
44
44
|
}
|
|
45
|
-
const pe = Array.isArray, ue = (e) => typeof e == "function", G = (e) => typeof e == "string", _e = (e) => typeof e == "boolean", ee = (e) => e !== null && typeof e == "object", Gr = (e) => ee(e) && ue(e.then) && ue(e.catch),
|
|
45
|
+
const pe = Array.isArray, ue = (e) => typeof e == "function", G = (e) => typeof e == "string", _e = (e) => typeof e == "boolean", ee = (e) => e !== null && typeof e == "object", Gr = (e) => ee(e) && ue(e.then) && ue(e.catch), Bn = Object.prototype.toString, Bt = (e) => Bn.call(e), q = (e) => Bt(e) === "[object Object]", Wr = (e) => e == null ? "" : pe(e) || q(e) && e.toString === Bn ? JSON.stringify(e, null, 2) : String(e);
|
|
46
46
|
function Ht(e, t = "") {
|
|
47
47
|
return e.reduce((n, r, a) => a === 0 ? n + r : n + t + r, "");
|
|
48
48
|
}
|
|
@@ -64,7 +64,7 @@ function yt(e, t) {
|
|
|
64
64
|
function Yr(e, t, n) {
|
|
65
65
|
return { line: e, column: t, offset: n };
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function wt(e, t, n) {
|
|
68
68
|
return { start: e, end: t };
|
|
69
69
|
}
|
|
70
70
|
const ne = {
|
|
@@ -84,12 +84,12 @@ const ne = {
|
|
|
84
84
|
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
85
85
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
86
86
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
87
|
-
},
|
|
88
|
-
function
|
|
87
|
+
}, Xr = 17;
|
|
88
|
+
function Nt(e, t, n = {}) {
|
|
89
89
|
const { domain: r, messages: a, args: o } = n, f = e, d = new SyntaxError(String(f));
|
|
90
90
|
return d.code = e, t && (d.location = t), d.domain = r, d;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Br(e) {
|
|
93
93
|
throw e;
|
|
94
94
|
}
|
|
95
95
|
const je = " ", Hr = "\r", ye = `
|
|
@@ -97,11 +97,11 @@ const je = " ", Hr = "\r", ye = `
|
|
|
97
97
|
function Kr(e) {
|
|
98
98
|
const t = e;
|
|
99
99
|
let n = 0, r = 1, a = 1, o = 0;
|
|
100
|
-
const f = (v) => t[v] === Hr && t[v + 1] === ye, d = (v) => t[v] === ye, i = (v) => t[v] === Jr, b = (v) => t[v] === $r, E = (v) => f(v) || d(v) || i(v) || b(v),
|
|
100
|
+
const f = (v) => t[v] === Hr && t[v + 1] === ye, d = (v) => t[v] === ye, i = (v) => t[v] === Jr, b = (v) => t[v] === $r, E = (v) => f(v) || d(v) || i(v) || b(v), N = () => n, T = () => r, D = () => a, k = () => o, R = (v) => f(v) || i(v) || b(v) ? ye : t[v], M = () => R(n), p = () => R(n + o);
|
|
101
101
|
function h() {
|
|
102
102
|
return o = 0, E(n) && (r++, a = 0), f(n) && n++, n++, a++, t[n];
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function L() {
|
|
105
105
|
return f(n + o) && o++, o++, t[n + o];
|
|
106
106
|
}
|
|
107
107
|
function m() {
|
|
@@ -117,15 +117,15 @@ function Kr(e) {
|
|
|
117
117
|
o = 0;
|
|
118
118
|
}
|
|
119
119
|
return {
|
|
120
|
-
index:
|
|
120
|
+
index: N,
|
|
121
121
|
line: T,
|
|
122
|
-
column:
|
|
123
|
-
peekOffset:
|
|
124
|
-
charAt:
|
|
122
|
+
column: D,
|
|
123
|
+
peekOffset: k,
|
|
124
|
+
charAt: R,
|
|
125
125
|
currentChar: M,
|
|
126
126
|
currentPeek: p,
|
|
127
127
|
next: h,
|
|
128
|
-
peek:
|
|
128
|
+
peek: L,
|
|
129
129
|
reset: m,
|
|
130
130
|
resetPeek: g,
|
|
131
131
|
skipToPeek: I
|
|
@@ -146,10 +146,10 @@ function qr(e, t = {}) {
|
|
|
146
146
|
inLinked: !1,
|
|
147
147
|
text: ""
|
|
148
148
|
}, b = () => i, { onError: E } = t;
|
|
149
|
-
function
|
|
149
|
+
function N(l, s, c, ...y) {
|
|
150
150
|
const U = b();
|
|
151
151
|
if (s.column += c, s.offset += c, E) {
|
|
152
|
-
const W = n ?
|
|
152
|
+
const W = n ? wt(U.startLoc, s) : null, u = Nt(l, W, {
|
|
153
153
|
domain: Qr,
|
|
154
154
|
args: y
|
|
155
155
|
});
|
|
@@ -159,24 +159,24 @@ function qr(e, t = {}) {
|
|
|
159
159
|
function T(l, s, c) {
|
|
160
160
|
l.endLoc = o(), l.currentType = s;
|
|
161
161
|
const y = { type: s };
|
|
162
|
-
return n && (y.loc =
|
|
162
|
+
return n && (y.loc = wt(l.startLoc, l.endLoc)), c != null && (y.value = c), y;
|
|
163
163
|
}
|
|
164
|
-
const
|
|
164
|
+
const D = (l) => T(
|
|
165
165
|
l,
|
|
166
166
|
13
|
|
167
167
|
/* TokenTypes.EOF */
|
|
168
168
|
);
|
|
169
|
-
function
|
|
170
|
-
return l.currentChar() === s ? (l.next(), s) : (
|
|
169
|
+
function k(l, s) {
|
|
170
|
+
return l.currentChar() === s ? (l.next(), s) : (N(ne.EXPECTED_TOKEN, o(), 0, s), "");
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function R(l) {
|
|
173
173
|
let s = "";
|
|
174
174
|
for (; l.currentPeek() === je || l.currentPeek() === ye; )
|
|
175
175
|
s += l.currentPeek(), l.peek();
|
|
176
176
|
return s;
|
|
177
177
|
}
|
|
178
178
|
function M(l) {
|
|
179
|
-
const s =
|
|
179
|
+
const s = R(l);
|
|
180
180
|
return l.skipToPeek(), s;
|
|
181
181
|
}
|
|
182
182
|
function p(l) {
|
|
@@ -193,11 +193,11 @@ function qr(e, t = {}) {
|
|
|
193
193
|
const s = l.charCodeAt(0);
|
|
194
194
|
return s >= 48 && s <= 57;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function L(l, s) {
|
|
197
197
|
const { currentType: c } = s;
|
|
198
198
|
if (c !== 2)
|
|
199
199
|
return !1;
|
|
200
|
-
|
|
200
|
+
R(l);
|
|
201
201
|
const y = p(l.currentPeek());
|
|
202
202
|
return l.resetPeek(), y;
|
|
203
203
|
}
|
|
@@ -205,7 +205,7 @@ function qr(e, t = {}) {
|
|
|
205
205
|
const { currentType: c } = s;
|
|
206
206
|
if (c !== 2)
|
|
207
207
|
return !1;
|
|
208
|
-
|
|
208
|
+
R(l);
|
|
209
209
|
const y = l.currentPeek() === "-" ? l.peek() : l.currentPeek(), U = h(y);
|
|
210
210
|
return l.resetPeek(), U;
|
|
211
211
|
}
|
|
@@ -213,7 +213,7 @@ function qr(e, t = {}) {
|
|
|
213
213
|
const { currentType: c } = s;
|
|
214
214
|
if (c !== 2)
|
|
215
215
|
return !1;
|
|
216
|
-
|
|
216
|
+
R(l);
|
|
217
217
|
const y = l.currentPeek() === ln;
|
|
218
218
|
return l.resetPeek(), y;
|
|
219
219
|
}
|
|
@@ -221,7 +221,7 @@ function qr(e, t = {}) {
|
|
|
221
221
|
const { currentType: c } = s;
|
|
222
222
|
if (c !== 7)
|
|
223
223
|
return !1;
|
|
224
|
-
|
|
224
|
+
R(l);
|
|
225
225
|
const y = l.currentPeek() === ".";
|
|
226
226
|
return l.resetPeek(), y;
|
|
227
227
|
}
|
|
@@ -229,15 +229,15 @@ function qr(e, t = {}) {
|
|
|
229
229
|
const { currentType: c } = s;
|
|
230
230
|
if (c !== 8)
|
|
231
231
|
return !1;
|
|
232
|
-
|
|
232
|
+
R(l);
|
|
233
233
|
const y = p(l.currentPeek());
|
|
234
234
|
return l.resetPeek(), y;
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function A(l, s) {
|
|
237
237
|
const { currentType: c } = s;
|
|
238
238
|
if (!(c === 7 || c === 11))
|
|
239
239
|
return !1;
|
|
240
|
-
|
|
240
|
+
R(l);
|
|
241
241
|
const y = l.currentPeek() === ":";
|
|
242
242
|
return l.resetPeek(), y;
|
|
243
243
|
}
|
|
@@ -252,7 +252,7 @@ function qr(e, t = {}) {
|
|
|
252
252
|
return l.resetPeek(), U;
|
|
253
253
|
}
|
|
254
254
|
function H(l) {
|
|
255
|
-
|
|
255
|
+
R(l);
|
|
256
256
|
const s = l.currentPeek() === "|";
|
|
257
257
|
return l.resetPeek(), s;
|
|
258
258
|
}
|
|
@@ -287,7 +287,7 @@ function qr(e, t = {}) {
|
|
|
287
287
|
s === 36 || // $
|
|
288
288
|
s === 45;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function w(l) {
|
|
291
291
|
return _(l, F);
|
|
292
292
|
}
|
|
293
293
|
function V(l) {
|
|
@@ -303,7 +303,7 @@ function qr(e, t = {}) {
|
|
|
303
303
|
s >= 65 && s <= 70 || // A-F
|
|
304
304
|
s >= 97 && s <= 102;
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function X(l) {
|
|
307
307
|
return _(l, Z);
|
|
308
308
|
}
|
|
309
309
|
function te(l) {
|
|
@@ -334,25 +334,25 @@ function qr(e, t = {}) {
|
|
|
334
334
|
function de(l) {
|
|
335
335
|
M(l);
|
|
336
336
|
let s = "", c = "";
|
|
337
|
-
for (; s =
|
|
337
|
+
for (; s = w(l); )
|
|
338
338
|
c += s;
|
|
339
|
-
return l.currentChar() === Ze &&
|
|
339
|
+
return l.currentChar() === Ze && N(ne.UNTERMINATED_CLOSING_BRACE, o(), 0), c;
|
|
340
340
|
}
|
|
341
341
|
function ve(l) {
|
|
342
342
|
M(l);
|
|
343
343
|
let s = "";
|
|
344
|
-
return l.currentChar() === "-" ? (l.next(), s += `-${te(l)}`) : s += te(l), l.currentChar() === Ze &&
|
|
344
|
+
return l.currentChar() === "-" ? (l.next(), s += `-${te(l)}`) : s += te(l), l.currentChar() === Ze && N(ne.UNTERMINATED_CLOSING_BRACE, o(), 0), s;
|
|
345
345
|
}
|
|
346
346
|
function he(l) {
|
|
347
347
|
return l !== ln && l !== ye;
|
|
348
348
|
}
|
|
349
349
|
function ae(l) {
|
|
350
|
-
M(l),
|
|
350
|
+
M(l), k(l, "'");
|
|
351
351
|
let s = "", c = "";
|
|
352
352
|
for (; s = _(l, he); )
|
|
353
353
|
s === "\\" ? c += le(l) : c += s;
|
|
354
354
|
const y = l.currentChar();
|
|
355
|
-
return y === ye || y === Ze ? (
|
|
355
|
+
return y === ye || y === Ze ? (N(ne.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), y === ye && (l.next(), k(l, "'")), c) : (k(l, "'"), c);
|
|
356
356
|
}
|
|
357
357
|
function le(l) {
|
|
358
358
|
const s = l.currentChar();
|
|
@@ -361,20 +361,20 @@ function qr(e, t = {}) {
|
|
|
361
361
|
case "'":
|
|
362
362
|
return l.next(), `\\${s}`;
|
|
363
363
|
case "u":
|
|
364
|
-
return
|
|
364
|
+
return Ae(l, s, 4);
|
|
365
365
|
case "U":
|
|
366
|
-
return
|
|
366
|
+
return Ae(l, s, 6);
|
|
367
367
|
default:
|
|
368
|
-
return
|
|
368
|
+
return N(ne.UNKNOWN_ESCAPE_SEQUENCE, o(), 0, s), "";
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
|
|
371
|
+
function Ae(l, s, c) {
|
|
372
|
+
k(l, s);
|
|
373
373
|
let y = "";
|
|
374
374
|
for (let U = 0; U < c; U++) {
|
|
375
|
-
const W =
|
|
375
|
+
const W = X(l);
|
|
376
376
|
if (!W) {
|
|
377
|
-
|
|
377
|
+
N(ne.INVALID_UNICODE_ESCAPE_SEQUENCE, o(), 0, `\\${s}${y}${l.currentChar()}`);
|
|
378
378
|
break;
|
|
379
379
|
}
|
|
380
380
|
y += W;
|
|
@@ -406,46 +406,46 @@ function qr(e, t = {}) {
|
|
|
406
406
|
}
|
|
407
407
|
function Ve(l) {
|
|
408
408
|
M(l);
|
|
409
|
-
const s =
|
|
409
|
+
const s = k(
|
|
410
410
|
l,
|
|
411
411
|
"|"
|
|
412
412
|
/* TokenChars.Pipe */
|
|
413
413
|
);
|
|
414
414
|
return M(l), s;
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function we(l, s) {
|
|
417
417
|
let c = null;
|
|
418
418
|
switch (l.currentChar()) {
|
|
419
419
|
case "{":
|
|
420
|
-
return s.braceNest >= 1 &&
|
|
420
|
+
return s.braceNest >= 1 && N(ne.NOT_ALLOW_NEST_PLACEHOLDER, o(), 0), l.next(), c = T(
|
|
421
421
|
s,
|
|
422
422
|
2,
|
|
423
423
|
"{"
|
|
424
424
|
/* TokenChars.BraceLeft */
|
|
425
425
|
), M(l), s.braceNest++, c;
|
|
426
426
|
case "}":
|
|
427
|
-
return s.braceNest > 0 && s.currentType === 2 &&
|
|
427
|
+
return s.braceNest > 0 && s.currentType === 2 && N(ne.EMPTY_PLACEHOLDER, o(), 0), l.next(), c = T(
|
|
428
428
|
s,
|
|
429
429
|
3,
|
|
430
430
|
"}"
|
|
431
431
|
/* TokenChars.BraceRight */
|
|
432
432
|
), s.braceNest--, s.braceNest > 0 && M(l), s.inLinked && s.braceNest === 0 && (s.inLinked = !1), c;
|
|
433
433
|
case "@":
|
|
434
|
-
return s.braceNest > 0 &&
|
|
434
|
+
return s.braceNest > 0 && N(ne.UNTERMINATED_CLOSING_BRACE, o(), 0), c = Fe(l, s) || D(s), s.braceNest = 0, c;
|
|
435
435
|
default: {
|
|
436
436
|
let U = !0, W = !0, u = !0;
|
|
437
437
|
if (H(l))
|
|
438
|
-
return s.braceNest > 0 &&
|
|
438
|
+
return s.braceNest > 0 && N(ne.UNTERMINATED_CLOSING_BRACE, o(), 0), c = T(s, 1, Ve(l)), s.braceNest = 0, s.inLinked = !1, c;
|
|
439
439
|
if (s.braceNest > 0 && (s.currentType === 4 || s.currentType === 5 || s.currentType === 6))
|
|
440
|
-
return
|
|
441
|
-
if (U =
|
|
440
|
+
return N(ne.UNTERMINATED_CLOSING_BRACE, o(), 0), s.braceNest = 0, Ge(l, s);
|
|
441
|
+
if (U = L(l, s))
|
|
442
442
|
return c = T(s, 4, de(l)), M(l), c;
|
|
443
443
|
if (W = m(l, s))
|
|
444
444
|
return c = T(s, 5, ve(l)), M(l), c;
|
|
445
445
|
if (u = g(l, s))
|
|
446
446
|
return c = T(s, 6, ae(l)), M(l), c;
|
|
447
447
|
if (!U && !W && !u)
|
|
448
|
-
return c = T(s, 12, fe(l)),
|
|
448
|
+
return c = T(s, 12, fe(l)), N(ne.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, c.value), M(l), c;
|
|
449
449
|
break;
|
|
450
450
|
}
|
|
451
451
|
}
|
|
@@ -455,7 +455,7 @@ function qr(e, t = {}) {
|
|
|
455
455
|
const { currentType: c } = s;
|
|
456
456
|
let y = null;
|
|
457
457
|
const U = l.currentChar();
|
|
458
|
-
switch ((c === 7 || c === 8 || c === 11 || c === 9) && (U === ye || U === je) &&
|
|
458
|
+
switch ((c === 7 || c === 8 || c === 11 || c === 9) && (U === ye || U === je) && N(ne.INVALID_LINKED_FORMAT, o(), 0), U) {
|
|
459
459
|
case "@":
|
|
460
460
|
return l.next(), y = T(
|
|
461
461
|
s,
|
|
@@ -478,7 +478,7 @@ function qr(e, t = {}) {
|
|
|
478
478
|
/* TokenChars.LinkedDelimiter */
|
|
479
479
|
);
|
|
480
480
|
default:
|
|
481
|
-
return H(l) ? (y = T(s, 1, Ve(l)), s.braceNest = 0, s.inLinked = !1, y) : I(l, s) ||
|
|
481
|
+
return H(l) ? (y = T(s, 1, Ve(l)), s.braceNest = 0, s.inLinked = !1, y) : I(l, s) || A(l, s) ? (M(l), Fe(l, s)) : v(l, s) ? (M(l), T(s, 11, $e(l))) : S(l, s) ? (M(l), U === "{" ? we(l, s) || y : T(s, 10, Qe(l))) : (c === 7 && N(ne.INVALID_LINKED_FORMAT, o(), 0), s.braceNest = 0, s.inLinked = !1, Ge(l, s));
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
function Ge(l, s) {
|
|
@@ -487,21 +487,21 @@ function qr(e, t = {}) {
|
|
|
487
487
|
/* TokenTypes.EOF */
|
|
488
488
|
};
|
|
489
489
|
if (s.braceNest > 0)
|
|
490
|
-
return
|
|
490
|
+
return we(l, s) || D(s);
|
|
491
491
|
if (s.inLinked)
|
|
492
|
-
return Fe(l, s) ||
|
|
492
|
+
return Fe(l, s) || D(s);
|
|
493
493
|
switch (l.currentChar()) {
|
|
494
494
|
case "{":
|
|
495
|
-
return
|
|
495
|
+
return we(l, s) || D(s);
|
|
496
496
|
case "}":
|
|
497
|
-
return
|
|
497
|
+
return N(ne.UNBALANCED_CLOSING_BRACE, o(), 0), l.next(), T(
|
|
498
498
|
s,
|
|
499
499
|
3,
|
|
500
500
|
"}"
|
|
501
501
|
/* TokenChars.BraceRight */
|
|
502
502
|
);
|
|
503
503
|
case "@":
|
|
504
|
-
return Fe(l, s) ||
|
|
504
|
+
return Fe(l, s) || D(s);
|
|
505
505
|
default: {
|
|
506
506
|
if (H(l))
|
|
507
507
|
return c = T(s, 1, Ve(l)), s.braceNest = 0, s.inLinked = !1, c;
|
|
@@ -542,103 +542,103 @@ function ns(e, t, n) {
|
|
|
542
542
|
}
|
|
543
543
|
function rs(e = {}) {
|
|
544
544
|
const t = e.location !== !1, { onError: n } = e;
|
|
545
|
-
function r(p, h,
|
|
545
|
+
function r(p, h, L, m, ...g) {
|
|
546
546
|
const I = p.currentPosition();
|
|
547
547
|
if (I.offset += m, I.column += m, n) {
|
|
548
|
-
const v = t ?
|
|
548
|
+
const v = t ? wt(L, I) : null, A = Nt(h, v, {
|
|
549
549
|
domain: es,
|
|
550
550
|
args: g
|
|
551
551
|
});
|
|
552
|
-
n(
|
|
552
|
+
n(A);
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
-
function a(p, h,
|
|
555
|
+
function a(p, h, L) {
|
|
556
556
|
const m = { type: p };
|
|
557
|
-
return t && (m.start = h, m.end = h, m.loc = { start:
|
|
557
|
+
return t && (m.start = h, m.end = h, m.loc = { start: L, end: L }), m;
|
|
558
558
|
}
|
|
559
|
-
function o(p, h,
|
|
560
|
-
t && (p.end = h, p.loc && (p.loc.end =
|
|
559
|
+
function o(p, h, L, m) {
|
|
560
|
+
t && (p.end = h, p.loc && (p.loc.end = L));
|
|
561
561
|
}
|
|
562
562
|
function f(p, h) {
|
|
563
|
-
const
|
|
563
|
+
const L = p.context(), m = a(3, L.offset, L.startLoc);
|
|
564
564
|
return m.value = h, o(m, p.currentOffset(), p.currentPosition()), m;
|
|
565
565
|
}
|
|
566
566
|
function d(p, h) {
|
|
567
|
-
const
|
|
567
|
+
const L = p.context(), { lastOffset: m, lastStartLoc: g } = L, I = a(5, m, g);
|
|
568
568
|
return I.index = parseInt(h, 10), p.nextToken(), o(I, p.currentOffset(), p.currentPosition()), I;
|
|
569
569
|
}
|
|
570
570
|
function i(p, h) {
|
|
571
|
-
const
|
|
571
|
+
const L = p.context(), { lastOffset: m, lastStartLoc: g } = L, I = a(4, m, g);
|
|
572
572
|
return I.key = h, p.nextToken(), o(I, p.currentOffset(), p.currentPosition()), I;
|
|
573
573
|
}
|
|
574
574
|
function b(p, h) {
|
|
575
|
-
const
|
|
575
|
+
const L = p.context(), { lastOffset: m, lastStartLoc: g } = L, I = a(9, m, g);
|
|
576
576
|
return I.value = h.replace(ts, ns), p.nextToken(), o(I, p.currentOffset(), p.currentPosition()), I;
|
|
577
577
|
}
|
|
578
578
|
function E(p) {
|
|
579
|
-
const h = p.nextToken(),
|
|
580
|
-
return h.type !== 11 ? (r(p, ne.UNEXPECTED_EMPTY_LINKED_MODIFIER,
|
|
579
|
+
const h = p.nextToken(), L = p.context(), { lastOffset: m, lastStartLoc: g } = L, I = a(8, m, g);
|
|
580
|
+
return h.type !== 11 ? (r(p, ne.UNEXPECTED_EMPTY_LINKED_MODIFIER, L.lastStartLoc, 0), I.value = "", o(I, m, g), {
|
|
581
581
|
nextConsumeToken: h,
|
|
582
582
|
node: I
|
|
583
|
-
}) : (h.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
583
|
+
}) : (h.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, ke(h)), I.value = h.value || "", o(I, p.currentOffset(), p.currentPosition()), {
|
|
584
584
|
node: I
|
|
585
585
|
});
|
|
586
586
|
}
|
|
587
|
-
function
|
|
588
|
-
const
|
|
587
|
+
function N(p, h) {
|
|
588
|
+
const L = p.context(), m = a(7, L.offset, L.startLoc);
|
|
589
589
|
return m.value = h, o(m, p.currentOffset(), p.currentPosition()), m;
|
|
590
590
|
}
|
|
591
591
|
function T(p) {
|
|
592
|
-
const h = p.context(),
|
|
592
|
+
const h = p.context(), L = a(6, h.offset, h.startLoc);
|
|
593
593
|
let m = p.nextToken();
|
|
594
594
|
if (m.type === 8) {
|
|
595
595
|
const g = E(p);
|
|
596
|
-
|
|
596
|
+
L.modifier = g.node, m = g.nextConsumeToken || p.nextToken();
|
|
597
597
|
}
|
|
598
|
-
switch (m.type !== 9 && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
598
|
+
switch (m.type !== 9 && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(m)), m = p.nextToken(), m.type === 2 && (m = p.nextToken()), m.type) {
|
|
599
599
|
case 10:
|
|
600
|
-
m.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
600
|
+
m.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(m)), L.key = N(p, m.value || "");
|
|
601
601
|
break;
|
|
602
602
|
case 4:
|
|
603
|
-
m.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
603
|
+
m.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(m)), L.key = i(p, m.value || "");
|
|
604
604
|
break;
|
|
605
605
|
case 5:
|
|
606
|
-
m.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
606
|
+
m.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(m)), L.key = d(p, m.value || "");
|
|
607
607
|
break;
|
|
608
608
|
case 6:
|
|
609
|
-
m.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
609
|
+
m.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(m)), L.key = b(p, m.value || "");
|
|
610
610
|
break;
|
|
611
611
|
default: {
|
|
612
612
|
r(p, ne.UNEXPECTED_EMPTY_LINKED_KEY, h.lastStartLoc, 0);
|
|
613
613
|
const g = p.context(), I = a(7, g.offset, g.startLoc);
|
|
614
|
-
return I.value = "", o(I, g.offset, g.startLoc),
|
|
614
|
+
return I.value = "", o(I, g.offset, g.startLoc), L.key = I, o(L, g.offset, g.startLoc), {
|
|
615
615
|
nextConsumeToken: m,
|
|
616
|
-
node:
|
|
616
|
+
node: L
|
|
617
617
|
};
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
return o(
|
|
621
|
-
node:
|
|
620
|
+
return o(L, p.currentOffset(), p.currentPosition()), {
|
|
621
|
+
node: L
|
|
622
622
|
};
|
|
623
623
|
}
|
|
624
|
-
function
|
|
625
|
-
const h = p.context(),
|
|
624
|
+
function D(p) {
|
|
625
|
+
const h = p.context(), L = h.currentType === 1 ? p.currentOffset() : h.offset, m = h.currentType === 1 ? h.endLoc : h.startLoc, g = a(2, L, m);
|
|
626
626
|
g.items = [];
|
|
627
627
|
let I = null;
|
|
628
628
|
do {
|
|
629
629
|
const S = I || p.nextToken();
|
|
630
630
|
switch (I = null, S.type) {
|
|
631
631
|
case 0:
|
|
632
|
-
S.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
632
|
+
S.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(S)), g.items.push(f(p, S.value || ""));
|
|
633
633
|
break;
|
|
634
634
|
case 5:
|
|
635
|
-
S.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
635
|
+
S.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(S)), g.items.push(d(p, S.value || ""));
|
|
636
636
|
break;
|
|
637
637
|
case 4:
|
|
638
|
-
S.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
638
|
+
S.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(S)), g.items.push(i(p, S.value || ""));
|
|
639
639
|
break;
|
|
640
640
|
case 6:
|
|
641
|
-
S.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
641
|
+
S.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(S)), g.items.push(b(p, S.value || ""));
|
|
642
642
|
break;
|
|
643
643
|
case 7: {
|
|
644
644
|
const H = T(p);
|
|
@@ -647,31 +647,31 @@ function rs(e = {}) {
|
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
} while (h.currentType !== 13 && h.currentType !== 1);
|
|
650
|
-
const v = h.currentType === 1 ? h.lastOffset : p.currentOffset(),
|
|
651
|
-
return o(g, v,
|
|
650
|
+
const v = h.currentType === 1 ? h.lastOffset : p.currentOffset(), A = h.currentType === 1 ? h.lastEndLoc : p.currentPosition();
|
|
651
|
+
return o(g, v, A), g;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function k(p, h, L, m) {
|
|
654
654
|
const g = p.context();
|
|
655
655
|
let I = m.items.length === 0;
|
|
656
|
-
const v = a(1, h,
|
|
656
|
+
const v = a(1, h, L);
|
|
657
657
|
v.cases = [], v.cases.push(m);
|
|
658
658
|
do {
|
|
659
|
-
const
|
|
660
|
-
I || (I =
|
|
659
|
+
const A = D(p);
|
|
660
|
+
I || (I = A.items.length === 0), v.cases.push(A);
|
|
661
661
|
} while (g.currentType !== 13);
|
|
662
|
-
return I && r(p, ne.MUST_HAVE_MESSAGES_IN_PLURAL,
|
|
662
|
+
return I && r(p, ne.MUST_HAVE_MESSAGES_IN_PLURAL, L, 0), o(v, p.currentOffset(), p.currentPosition()), v;
|
|
663
663
|
}
|
|
664
|
-
function
|
|
665
|
-
const h = p.context(), { offset:
|
|
666
|
-
return h.currentType === 13 ? g :
|
|
664
|
+
function R(p) {
|
|
665
|
+
const h = p.context(), { offset: L, startLoc: m } = h, g = D(p);
|
|
666
|
+
return h.currentType === 13 ? g : k(p, L, m, g);
|
|
667
667
|
}
|
|
668
668
|
function M(p) {
|
|
669
|
-
const h = qr(p, ge({}, e)),
|
|
670
|
-
return t && m.loc && (m.loc.source = p), m.body =
|
|
669
|
+
const h = qr(p, ge({}, e)), L = h.context(), m = a(0, L.offset, L.startLoc);
|
|
670
|
+
return t && m.loc && (m.loc.source = p), m.body = R(h), e.onCacheKey && (m.cacheKey = e.onCacheKey(p)), L.currentType !== 13 && r(h, ne.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, p[L.offset] || ""), o(m, h.currentOffset(), h.currentPosition()), m;
|
|
671
671
|
}
|
|
672
672
|
return { parse: M };
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function ke(e) {
|
|
675
675
|
if (e.type === 13)
|
|
676
676
|
return "EOF";
|
|
677
677
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
@@ -824,20 +824,20 @@ function ls(e, t) {
|
|
|
824
824
|
};
|
|
825
825
|
o && e.loc && (f.source = e.loc.source);
|
|
826
826
|
const d = () => f;
|
|
827
|
-
function i(
|
|
828
|
-
f.code +=
|
|
827
|
+
function i(R, M) {
|
|
828
|
+
f.code += R;
|
|
829
829
|
}
|
|
830
|
-
function b(
|
|
830
|
+
function b(R, M = !0) {
|
|
831
831
|
const p = M ? r : "";
|
|
832
|
-
i(a ? p + " ".repeat(
|
|
832
|
+
i(a ? p + " ".repeat(R) : p);
|
|
833
833
|
}
|
|
834
|
-
function E(
|
|
834
|
+
function E(R = !0) {
|
|
835
835
|
const M = ++f.indentLevel;
|
|
836
|
-
|
|
836
|
+
R && b(M);
|
|
837
837
|
}
|
|
838
|
-
function
|
|
838
|
+
function N(R = !0) {
|
|
839
839
|
const M = --f.indentLevel;
|
|
840
|
-
|
|
840
|
+
R && b(M);
|
|
841
841
|
}
|
|
842
842
|
function T() {
|
|
843
843
|
b(f.indentLevel);
|
|
@@ -846,9 +846,9 @@ function ls(e, t) {
|
|
|
846
846
|
context: d,
|
|
847
847
|
push: i,
|
|
848
848
|
indent: E,
|
|
849
|
-
deindent:
|
|
849
|
+
deindent: N,
|
|
850
850
|
newline: T,
|
|
851
|
-
helper: (
|
|
851
|
+
helper: (R) => `_${R}`,
|
|
852
852
|
needIndent: () => f.needIndent
|
|
853
853
|
};
|
|
854
854
|
}
|
|
@@ -980,28 +980,28 @@ function vs(e, t) {
|
|
|
980
980
|
}
|
|
981
981
|
const hs = ["b", "body"];
|
|
982
982
|
function bs(e) {
|
|
983
|
-
return
|
|
983
|
+
return Be(e, hs);
|
|
984
984
|
}
|
|
985
985
|
const gs = ["c", "cases"];
|
|
986
986
|
function ys(e) {
|
|
987
|
-
return
|
|
987
|
+
return Be(e, gs, []);
|
|
988
988
|
}
|
|
989
989
|
function mn(e, t) {
|
|
990
990
|
const n = Es(t);
|
|
991
991
|
if (n != null)
|
|
992
992
|
return e.type === "text" ? n : e.normalize([n]);
|
|
993
993
|
{
|
|
994
|
-
const r =
|
|
994
|
+
const r = Ns(t).reduce((a, o) => [...a, Ft(e, o)], []);
|
|
995
995
|
return e.normalize(r);
|
|
996
996
|
}
|
|
997
997
|
}
|
|
998
998
|
const Is = ["s", "static"];
|
|
999
999
|
function Es(e) {
|
|
1000
|
-
return
|
|
1000
|
+
return Be(e, Is);
|
|
1001
1001
|
}
|
|
1002
|
-
const
|
|
1003
|
-
function
|
|
1004
|
-
return
|
|
1002
|
+
const Cs = ["i", "items"];
|
|
1003
|
+
function Ns(e) {
|
|
1004
|
+
return Be(e, Cs, []);
|
|
1005
1005
|
}
|
|
1006
1006
|
function Ft(e, t) {
|
|
1007
1007
|
const n = Jt(t);
|
|
@@ -1027,7 +1027,7 @@ function Ft(e, t) {
|
|
|
1027
1027
|
throw ct(n);
|
|
1028
1028
|
}
|
|
1029
1029
|
case 6: {
|
|
1030
|
-
const r = t, a = Ss(r), o =
|
|
1030
|
+
const r = t, a = Ss(r), o = As(r);
|
|
1031
1031
|
return e.linked(Ft(e, o), a ? Ft(e, a) : void 0, e.type);
|
|
1032
1032
|
}
|
|
1033
1033
|
case 7:
|
|
@@ -1040,22 +1040,22 @@ function Ft(e, t) {
|
|
|
1040
1040
|
}
|
|
1041
1041
|
const Ts = ["t", "type"];
|
|
1042
1042
|
function Jt(e) {
|
|
1043
|
-
return
|
|
1043
|
+
return Be(e, Ts);
|
|
1044
1044
|
}
|
|
1045
1045
|
const Os = ["v", "value"];
|
|
1046
1046
|
function _t(e, t) {
|
|
1047
|
-
const n =
|
|
1047
|
+
const n = Be(e, Os);
|
|
1048
1048
|
if (n)
|
|
1049
1049
|
return n;
|
|
1050
1050
|
throw ct(t);
|
|
1051
1051
|
}
|
|
1052
|
-
const
|
|
1052
|
+
const Ls = ["m", "modifier"];
|
|
1053
1053
|
function Ss(e) {
|
|
1054
|
-
return
|
|
1054
|
+
return Be(e, Ls);
|
|
1055
1055
|
}
|
|
1056
|
-
const
|
|
1057
|
-
function
|
|
1058
|
-
const t =
|
|
1056
|
+
const Rs = ["k", "key"];
|
|
1057
|
+
function As(e) {
|
|
1058
|
+
const t = Be(e, Rs);
|
|
1059
1059
|
if (t)
|
|
1060
1060
|
return t;
|
|
1061
1061
|
throw ct(
|
|
@@ -1063,7 +1063,7 @@ function ks(e) {
|
|
|
1063
1063
|
/* NodeTypes.Linked */
|
|
1064
1064
|
);
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1066
|
+
function Be(e, t, n) {
|
|
1067
1067
|
for (let r = 0; r < t.length; r++) {
|
|
1068
1068
|
const a = t[r];
|
|
1069
1069
|
if (Se(e, a) && e[a] != null)
|
|
@@ -1074,23 +1074,23 @@ function Xe(e, t, n) {
|
|
|
1074
1074
|
function ct(e) {
|
|
1075
1075
|
return new Error(`unhandled node type: ${e}`);
|
|
1076
1076
|
}
|
|
1077
|
-
const
|
|
1077
|
+
const ks = (e) => e;
|
|
1078
1078
|
let pt = se();
|
|
1079
1079
|
function ot(e) {
|
|
1080
1080
|
return ee(e) && Jt(e) === 0 && (Se(e, "b") || Se(e, "body"));
|
|
1081
1081
|
}
|
|
1082
1082
|
function Ms(e, t = {}) {
|
|
1083
1083
|
let n = !1;
|
|
1084
|
-
const r = t.onError ||
|
|
1084
|
+
const r = t.onError || Br;
|
|
1085
1085
|
return t.onError = (a) => {
|
|
1086
1086
|
n = !0, r(a);
|
|
1087
1087
|
}, { ...fs(e, t), detectError: n };
|
|
1088
1088
|
}
|
|
1089
1089
|
// @__NO_SIDE_EFFECTS__
|
|
1090
|
-
function
|
|
1090
|
+
function Ds(e, t) {
|
|
1091
1091
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && G(e)) {
|
|
1092
1092
|
_e(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1093
|
-
const r = (t.onCacheKey ||
|
|
1093
|
+
const r = (t.onCacheKey || ks)(e), a = pt[r];
|
|
1094
1094
|
if (a)
|
|
1095
1095
|
return a;
|
|
1096
1096
|
const { ast: o, detectError: f } = Ms(e, {
|
|
@@ -1109,7 +1109,7 @@ function ws(e, t) {
|
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
1111
|
let ut = null;
|
|
1112
|
-
function
|
|
1112
|
+
function ws(e) {
|
|
1113
1113
|
ut = e;
|
|
1114
1114
|
}
|
|
1115
1115
|
function Fs(e, t, n) {
|
|
@@ -1125,7 +1125,7 @@ function js(e) {
|
|
|
1125
1125
|
return (t) => ut && ut.emit(e, t);
|
|
1126
1126
|
}
|
|
1127
1127
|
const Ue = {
|
|
1128
|
-
INVALID_ARGUMENT:
|
|
1128
|
+
INVALID_ARGUMENT: Xr,
|
|
1129
1129
|
// 17
|
|
1130
1130
|
INVALID_DATE_ARGUMENT: 18,
|
|
1131
1131
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1134,23 +1134,23 @@ const Ue = {
|
|
|
1134
1134
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1135
1135
|
}, Us = 24;
|
|
1136
1136
|
function xe(e) {
|
|
1137
|
-
return
|
|
1137
|
+
return Nt(e, null, void 0);
|
|
1138
1138
|
}
|
|
1139
1139
|
function Kt(e, t) {
|
|
1140
1140
|
return t.locale != null ? dn(t.locale) : dn(e.locale);
|
|
1141
1141
|
}
|
|
1142
|
-
let
|
|
1142
|
+
let Rt;
|
|
1143
1143
|
function dn(e) {
|
|
1144
1144
|
if (G(e))
|
|
1145
1145
|
return e;
|
|
1146
1146
|
if (ue(e)) {
|
|
1147
|
-
if (e.resolvedOnce &&
|
|
1148
|
-
return
|
|
1147
|
+
if (e.resolvedOnce && Rt != null)
|
|
1148
|
+
return Rt;
|
|
1149
1149
|
if (e.constructor.name === "Function") {
|
|
1150
1150
|
const t = e();
|
|
1151
1151
|
if (Gr(t))
|
|
1152
1152
|
throw xe(Ue.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1153
|
-
return
|
|
1153
|
+
return Rt = t;
|
|
1154
1154
|
} else
|
|
1155
1155
|
throw xe(Ue.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1156
1156
|
} else
|
|
@@ -1371,7 +1371,7 @@ function Ys(e) {
|
|
|
1371
1371
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1372
1372
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1373
1373
|
}
|
|
1374
|
-
function
|
|
1374
|
+
function Xs(e) {
|
|
1375
1375
|
if (e == null)
|
|
1376
1376
|
return "o";
|
|
1377
1377
|
switch (e.charCodeAt(0)) {
|
|
@@ -1396,13 +1396,13 @@ function Bs(e) {
|
|
|
1396
1396
|
}
|
|
1397
1397
|
return "i";
|
|
1398
1398
|
}
|
|
1399
|
-
function
|
|
1399
|
+
function Bs(e) {
|
|
1400
1400
|
const t = e.trim();
|
|
1401
1401
|
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Zs(t) ? Ys(t) : "*" + t;
|
|
1402
1402
|
}
|
|
1403
1403
|
function Hs(e) {
|
|
1404
1404
|
const t = [];
|
|
1405
|
-
let n = -1, r = 0, a = 0, o, f, d, i, b, E,
|
|
1405
|
+
let n = -1, r = 0, a = 0, o, f, d, i, b, E, N;
|
|
1406
1406
|
const T = [];
|
|
1407
1407
|
T[
|
|
1408
1408
|
0
|
|
@@ -1432,7 +1432,7 @@ function Hs(e) {
|
|
|
1432
1432
|
/* Actions.APPEND */
|
|
1433
1433
|
]();
|
|
1434
1434
|
else {
|
|
1435
|
-
if (a = 0, f === void 0 || (f =
|
|
1435
|
+
if (a = 0, f === void 0 || (f = Bs(f), f === !1))
|
|
1436
1436
|
return !1;
|
|
1437
1437
|
T[
|
|
1438
1438
|
1
|
|
@@ -1440,17 +1440,17 @@ function Hs(e) {
|
|
|
1440
1440
|
]();
|
|
1441
1441
|
}
|
|
1442
1442
|
};
|
|
1443
|
-
function
|
|
1444
|
-
const
|
|
1445
|
-
if (r === 5 &&
|
|
1446
|
-
return n++, d = "\\" +
|
|
1443
|
+
function D() {
|
|
1444
|
+
const k = e[n + 1];
|
|
1445
|
+
if (r === 5 && k === "'" || r === 6 && k === '"')
|
|
1446
|
+
return n++, d = "\\" + k, T[
|
|
1447
1447
|
0
|
|
1448
1448
|
/* Actions.APPEND */
|
|
1449
1449
|
](), !0;
|
|
1450
1450
|
}
|
|
1451
1451
|
for (; r !== null; )
|
|
1452
|
-
if (n++, o = e[n], !(o === "\\" &&
|
|
1453
|
-
if (i =
|
|
1452
|
+
if (n++, o = e[n], !(o === "\\" && D())) {
|
|
1453
|
+
if (i = Xs(o), N = He[r], b = N[i] || N.l || 8, b === 8 || (r = b[0], b[1] !== void 0 && (E = T[b[1]], E && (d = o, E() === !1))))
|
|
1454
1454
|
return;
|
|
1455
1455
|
if (r === 7)
|
|
1456
1456
|
return t;
|
|
@@ -1506,7 +1506,7 @@ const hn = (e) => {
|
|
|
1506
1506
|
}, ra = () => Qn;
|
|
1507
1507
|
let bn = 0;
|
|
1508
1508
|
function sa(e = {}) {
|
|
1509
|
-
const t = ue(e.onWarn) ? e.onWarn : Zr, n = G(e.version) ? e.version : Ks, r = G(e.locale) || ue(e.locale) ? e.locale : Et, a = ue(r) ? Et : r, o = pe(e.fallbackLocale) || q(e.fallbackLocale) || G(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, f = q(e.messages) ? e.messages :
|
|
1509
|
+
const t = ue(e.onWarn) ? e.onWarn : Zr, n = G(e.version) ? e.version : Ks, r = G(e.locale) || ue(e.locale) ? e.locale : Et, a = ue(r) ? Et : r, o = pe(e.fallbackLocale) || q(e.fallbackLocale) || G(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, f = q(e.messages) ? e.messages : At(a), d = q(e.datetimeFormats) ? e.datetimeFormats : At(a), i = q(e.numberFormats) ? e.numberFormats : At(a), b = ge(se(), e.modifiers, zs()), E = e.pluralRules || se(), N = ue(e.missing) ? e.missing : null, T = _e(e.missingWarn) || It(e.missingWarn) ? e.missingWarn : !0, D = _e(e.fallbackWarn) || It(e.fallbackWarn) ? e.fallbackWarn : !0, k = !!e.fallbackFormat, R = !!e.unresolving, M = ue(e.postTranslation) ? e.postTranslation : null, p = q(e.processor) ? e.processor : null, h = _e(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, L = !!e.escapeParameter, m = ue(e.messageCompiler) ? e.messageCompiler : $n, g = ue(e.messageResolver) ? e.messageResolver : Jn || $s, I = ue(e.localeFallbacker) ? e.localeFallbacker : Kn || xs, v = ee(e.fallbackContext) ? e.fallbackContext : void 0, A = e, S = ee(A.__datetimeFormatters) ? A.__datetimeFormatters : /* @__PURE__ */ new Map(), H = ee(A.__numberFormatters) ? A.__numberFormatters : /* @__PURE__ */ new Map(), x = ee(A.__meta) ? A.__meta : {};
|
|
1510
1510
|
bn++;
|
|
1511
1511
|
const _ = {
|
|
1512
1512
|
version: n,
|
|
@@ -1516,15 +1516,15 @@ function sa(e = {}) {
|
|
|
1516
1516
|
messages: f,
|
|
1517
1517
|
modifiers: b,
|
|
1518
1518
|
pluralRules: E,
|
|
1519
|
-
missing:
|
|
1519
|
+
missing: N,
|
|
1520
1520
|
missingWarn: T,
|
|
1521
|
-
fallbackWarn:
|
|
1522
|
-
fallbackFormat:
|
|
1523
|
-
unresolving:
|
|
1521
|
+
fallbackWarn: D,
|
|
1522
|
+
fallbackFormat: k,
|
|
1523
|
+
unresolving: R,
|
|
1524
1524
|
postTranslation: M,
|
|
1525
1525
|
processor: p,
|
|
1526
1526
|
warnHtmlMessage: h,
|
|
1527
|
-
escapeParameter:
|
|
1527
|
+
escapeParameter: L,
|
|
1528
1528
|
messageCompiler: m,
|
|
1529
1529
|
messageResolver: g,
|
|
1530
1530
|
localeFallbacker: I,
|
|
@@ -1534,7 +1534,7 @@ function sa(e = {}) {
|
|
|
1534
1534
|
};
|
|
1535
1535
|
return _.datetimeFormats = d, _.numberFormats = i, _.__datetimeFormatters = S, _.__numberFormatters = H, __INTLIFY_PROD_DEVTOOLS__ && Fs(_, n, x), _;
|
|
1536
1536
|
}
|
|
1537
|
-
const
|
|
1537
|
+
const At = (e) => ({ [e]: se() });
|
|
1538
1538
|
function zt(e, t, n, r, a) {
|
|
1539
1539
|
const { missing: o, onWarn: f } = e;
|
|
1540
1540
|
if (o !== null) {
|
|
@@ -1560,26 +1560,26 @@ function oa(e, t) {
|
|
|
1560
1560
|
return !1;
|
|
1561
1561
|
}
|
|
1562
1562
|
function gn(e, ...t) {
|
|
1563
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: o, localeFallbacker: f } = e, { __datetimeFormatters: d } = e, [i, b, E,
|
|
1563
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: o, localeFallbacker: f } = e, { __datetimeFormatters: d } = e, [i, b, E, N] = Pt(...t), T = _e(E.missingWarn) ? E.missingWarn : e.missingWarn;
|
|
1564
1564
|
_e(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn;
|
|
1565
|
-
const
|
|
1565
|
+
const D = !!E.part, k = Kt(e, E), R = f(
|
|
1566
1566
|
e,
|
|
1567
1567
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1568
1568
|
a,
|
|
1569
|
-
|
|
1569
|
+
k
|
|
1570
1570
|
);
|
|
1571
1571
|
if (!G(i) || i === "")
|
|
1572
|
-
return new Intl.DateTimeFormat(
|
|
1572
|
+
return new Intl.DateTimeFormat(k, N).format(b);
|
|
1573
1573
|
let M = {}, p, h = null;
|
|
1574
|
-
const
|
|
1575
|
-
for (let I = 0; I <
|
|
1576
|
-
zt(e, i, p, T,
|
|
1574
|
+
const L = "datetime format";
|
|
1575
|
+
for (let I = 0; I < R.length && (p = R[I], M = n[p] || {}, h = M[i], !q(h)); I++)
|
|
1576
|
+
zt(e, i, p, T, L);
|
|
1577
1577
|
if (!q(h) || !G(p))
|
|
1578
1578
|
return r ? Tt : i;
|
|
1579
1579
|
let m = `${p}__${i}`;
|
|
1580
|
-
|
|
1580
|
+
Ct(N) || (m = `${m}__${JSON.stringify(N)}`);
|
|
1581
1581
|
let g = d.get(m);
|
|
1582
|
-
return g || (g = new Intl.DateTimeFormat(p, ge({}, h,
|
|
1582
|
+
return g || (g = new Intl.DateTimeFormat(p, ge({}, h, N)), d.set(m, g)), D ? g.formatToParts(b) : g.format(b);
|
|
1583
1583
|
}
|
|
1584
1584
|
const qn = [
|
|
1585
1585
|
"localeMatcher",
|
|
@@ -1637,26 +1637,26 @@ function yn(e, t, n) {
|
|
|
1637
1637
|
}
|
|
1638
1638
|
}
|
|
1639
1639
|
function In(e, ...t) {
|
|
1640
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: o, localeFallbacker: f } = e, { __numberFormatters: d } = e, [i, b, E,
|
|
1640
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: o, localeFallbacker: f } = e, { __numberFormatters: d } = e, [i, b, E, N] = jt(...t), T = _e(E.missingWarn) ? E.missingWarn : e.missingWarn;
|
|
1641
1641
|
_e(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn;
|
|
1642
|
-
const
|
|
1642
|
+
const D = !!E.part, k = Kt(e, E), R = f(
|
|
1643
1643
|
e,
|
|
1644
1644
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1645
1645
|
a,
|
|
1646
|
-
|
|
1646
|
+
k
|
|
1647
1647
|
);
|
|
1648
1648
|
if (!G(i) || i === "")
|
|
1649
|
-
return new Intl.NumberFormat(
|
|
1649
|
+
return new Intl.NumberFormat(k, N).format(b);
|
|
1650
1650
|
let M = {}, p, h = null;
|
|
1651
|
-
const
|
|
1652
|
-
for (let I = 0; I <
|
|
1653
|
-
zt(e, i, p, T,
|
|
1651
|
+
const L = "number format";
|
|
1652
|
+
for (let I = 0; I < R.length && (p = R[I], M = n[p] || {}, h = M[i], !q(h)); I++)
|
|
1653
|
+
zt(e, i, p, T, L);
|
|
1654
1654
|
if (!q(h) || !G(p))
|
|
1655
1655
|
return r ? Tt : i;
|
|
1656
1656
|
let m = `${p}__${i}`;
|
|
1657
|
-
|
|
1657
|
+
Ct(N) || (m = `${m}__${JSON.stringify(N)}`);
|
|
1658
1658
|
let g = d.get(m);
|
|
1659
|
-
return g || (g = new Intl.NumberFormat(p, ge({}, h,
|
|
1659
|
+
return g || (g = new Intl.NumberFormat(p, ge({}, h, N)), d.set(m, g)), D ? g.formatToParts(b) : g.format(b);
|
|
1660
1660
|
}
|
|
1661
1661
|
const er = [
|
|
1662
1662
|
"localeMatcher",
|
|
@@ -1698,7 +1698,7 @@ function En(e, t, n) {
|
|
|
1698
1698
|
}
|
|
1699
1699
|
}
|
|
1700
1700
|
const la = (e) => e, ia = (e) => "", ca = "text", ua = (e) => e.length === 0 ? "" : Ht(e), ma = Wr;
|
|
1701
|
-
function
|
|
1701
|
+
function Cn(e, t) {
|
|
1702
1702
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1703
1703
|
}
|
|
1704
1704
|
function da(e) {
|
|
@@ -1709,53 +1709,53 @@ function fa(e, t) {
|
|
|
1709
1709
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1710
1710
|
}
|
|
1711
1711
|
function _a(e = {}) {
|
|
1712
|
-
const t = e.locale, n = da(e), r = ee(e.pluralRules) && G(t) && ue(e.pluralRules[t]) ? e.pluralRules[t] :
|
|
1712
|
+
const t = e.locale, n = da(e), r = ee(e.pluralRules) && G(t) && ue(e.pluralRules[t]) ? e.pluralRules[t] : Cn, a = ee(e.pluralRules) && G(t) && ue(e.pluralRules[t]) ? Cn : void 0, o = (p) => p[r(n, p.length, a)], f = e.list || [], d = (p) => f[p], i = e.named || se();
|
|
1713
1713
|
be(e.pluralIndex) && fa(n, i);
|
|
1714
1714
|
const b = (p) => i[p];
|
|
1715
1715
|
function E(p, h) {
|
|
1716
|
-
const
|
|
1717
|
-
return
|
|
1716
|
+
const L = ue(e.messages) ? e.messages(p, !!h) : ee(e.messages) ? e.messages[p] : !1;
|
|
1717
|
+
return L || (e.parent ? e.parent.message(p) : ia);
|
|
1718
1718
|
}
|
|
1719
|
-
const
|
|
1719
|
+
const N = (p) => e.modifiers ? e.modifiers[p] : la, T = q(e.processor) && ue(e.processor.normalize) ? e.processor.normalize : ua, D = q(e.processor) && ue(e.processor.interpolate) ? e.processor.interpolate : ma, k = q(e.processor) && G(e.processor.type) ? e.processor.type : ca, M = {
|
|
1720
1720
|
list: d,
|
|
1721
1721
|
named: b,
|
|
1722
1722
|
plural: o,
|
|
1723
1723
|
linked: (p, ...h) => {
|
|
1724
|
-
const [
|
|
1724
|
+
const [L, m] = h;
|
|
1725
1725
|
let g = "text", I = "";
|
|
1726
|
-
h.length === 1 ? ee(
|
|
1727
|
-
const v = E(p, !0)(M),
|
|
1726
|
+
h.length === 1 ? ee(L) ? (I = L.modifier || I, g = L.type || g) : G(L) && (I = L || I) : h.length === 2 && (G(L) && (I = L || I), G(m) && (g = m || g));
|
|
1727
|
+
const v = E(p, !0)(M), A = (
|
|
1728
1728
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1729
1729
|
g === "vnode" && pe(v) && I ? v[0] : v
|
|
1730
1730
|
);
|
|
1731
|
-
return I ?
|
|
1731
|
+
return I ? N(I)(A, g) : A;
|
|
1732
1732
|
},
|
|
1733
1733
|
message: E,
|
|
1734
|
-
type:
|
|
1735
|
-
interpolate:
|
|
1734
|
+
type: k,
|
|
1735
|
+
interpolate: D,
|
|
1736
1736
|
normalize: T,
|
|
1737
1737
|
values: ge(se(), f, i)
|
|
1738
1738
|
};
|
|
1739
1739
|
return M;
|
|
1740
1740
|
}
|
|
1741
|
-
const
|
|
1741
|
+
const Nn = () => "", Te = (e) => ue(e);
|
|
1742
1742
|
function Tn(e, ...t) {
|
|
1743
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: o, fallbackLocale: f, messages: d } = e, [i, b] = Ut(...t), E = _e(b.missingWarn) ? b.missingWarn : e.missingWarn,
|
|
1743
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: o, fallbackLocale: f, messages: d } = e, [i, b] = Ut(...t), E = _e(b.missingWarn) ? b.missingWarn : e.missingWarn, N = _e(b.fallbackWarn) ? b.fallbackWarn : e.fallbackWarn, T = _e(b.escapeParameter) ? b.escapeParameter : e.escapeParameter, D = !!b.resolvedMessage, k = G(b.default) || _e(b.default) ? _e(b.default) ? o ? i : () => i : b.default : n ? o ? i : () => i : null, R = n || k != null && (G(k) || ue(k)), M = Kt(e, b);
|
|
1744
1744
|
T && pa(b);
|
|
1745
|
-
let [p, h,
|
|
1745
|
+
let [p, h, L] = D ? [
|
|
1746
1746
|
i,
|
|
1747
1747
|
M,
|
|
1748
1748
|
d[M] || se()
|
|
1749
|
-
] : tr(e, i, M, f,
|
|
1750
|
-
if (!
|
|
1749
|
+
] : tr(e, i, M, f, N, E), m = p, g = i;
|
|
1750
|
+
if (!D && !(G(m) || ot(m) || Te(m)) && R && (m = k, g = m), !D && (!(G(m) || ot(m) || Te(m)) || !G(h)))
|
|
1751
1751
|
return a ? Tt : i;
|
|
1752
1752
|
let I = !1;
|
|
1753
1753
|
const v = () => {
|
|
1754
1754
|
I = !0;
|
|
1755
|
-
},
|
|
1755
|
+
}, A = Te(m) ? m : nr(e, i, h, m, g, v);
|
|
1756
1756
|
if (I)
|
|
1757
1757
|
return m;
|
|
1758
|
-
const S = ba(e, h,
|
|
1758
|
+
const S = ba(e, h, L, b), H = _a(S), x = va(e, A, H), _ = r ? r(x, i) : x;
|
|
1759
1759
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1760
1760
|
const O = {
|
|
1761
1761
|
timestamp: Date.now(),
|
|
@@ -1775,9 +1775,9 @@ function pa(e) {
|
|
|
1775
1775
|
}
|
|
1776
1776
|
function tr(e, t, n, r, a, o) {
|
|
1777
1777
|
const { messages: f, onWarn: d, messageResolver: i, localeFallbacker: b } = e, E = b(e, r, n);
|
|
1778
|
-
let
|
|
1779
|
-
const
|
|
1780
|
-
for (let
|
|
1778
|
+
let N = se(), T, D = null;
|
|
1779
|
+
const k = "translate";
|
|
1780
|
+
for (let R = 0; R < E.length && (T = E[R], N = f[T] || se(), (D = i(N, t)) === null && (D = N[t]), !(G(D) || ot(D) || Te(D))); R++)
|
|
1781
1781
|
if (!oa(T, E)) {
|
|
1782
1782
|
const M = zt(
|
|
1783
1783
|
e,
|
|
@@ -1785,11 +1785,11 @@ function tr(e, t, n, r, a, o) {
|
|
|
1785
1785
|
t,
|
|
1786
1786
|
T,
|
|
1787
1787
|
o,
|
|
1788
|
-
|
|
1788
|
+
k
|
|
1789
1789
|
);
|
|
1790
|
-
M !== t && (
|
|
1790
|
+
M !== t && (D = M);
|
|
1791
1791
|
}
|
|
1792
|
-
return [
|
|
1792
|
+
return [D, T, N];
|
|
1793
1793
|
}
|
|
1794
1794
|
function nr(e, t, n, r, a, o) {
|
|
1795
1795
|
const { messageCompiler: f, warnHtmlMessage: d } = e;
|
|
@@ -1812,7 +1812,7 @@ function Ut(...e) {
|
|
|
1812
1812
|
if (!G(t) && !be(t) && !Te(t) && !ot(t))
|
|
1813
1813
|
throw xe(Ue.INVALID_ARGUMENT);
|
|
1814
1814
|
const o = be(t) ? String(t) : (Te(t), t);
|
|
1815
|
-
return be(n) ? a.plural = n : G(n) ? a.default = n : q(n) && !
|
|
1815
|
+
return be(n) ? a.plural = n : G(n) ? a.default = n : q(n) && !Ct(n) ? a.named = n : pe(n) && (a.list = n), be(r) ? a.plural = r : G(r) ? a.default = r : q(r) && ge(a, r), [o, a];
|
|
1816
1816
|
}
|
|
1817
1817
|
function ha(e, t, n, r, a, o) {
|
|
1818
1818
|
return {
|
|
@@ -1830,33 +1830,33 @@ function ba(e, t, n, r) {
|
|
|
1830
1830
|
locale: t,
|
|
1831
1831
|
modifiers: a,
|
|
1832
1832
|
pluralRules: o,
|
|
1833
|
-
messages: (
|
|
1834
|
-
let
|
|
1835
|
-
if (
|
|
1833
|
+
messages: (D, k) => {
|
|
1834
|
+
let R = f(n, D);
|
|
1835
|
+
if (R == null && (E || k)) {
|
|
1836
1836
|
const [, , M] = tr(
|
|
1837
1837
|
E || e,
|
|
1838
1838
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1839
|
-
|
|
1839
|
+
D,
|
|
1840
1840
|
t,
|
|
1841
1841
|
d,
|
|
1842
1842
|
i,
|
|
1843
1843
|
b
|
|
1844
1844
|
);
|
|
1845
|
-
|
|
1845
|
+
R = f(M, D);
|
|
1846
1846
|
}
|
|
1847
|
-
if (G(
|
|
1847
|
+
if (G(R) || ot(R)) {
|
|
1848
1848
|
let M = !1;
|
|
1849
|
-
const h = nr(e,
|
|
1849
|
+
const h = nr(e, D, t, R, D, () => {
|
|
1850
1850
|
M = !0;
|
|
1851
1851
|
});
|
|
1852
|
-
return M ?
|
|
1853
|
-
} else return Te(
|
|
1852
|
+
return M ? Nn : h;
|
|
1853
|
+
} else return Te(R) ? R : Nn;
|
|
1854
1854
|
}
|
|
1855
1855
|
};
|
|
1856
1856
|
return e.processor && (T.processor = e.processor), r.list && (T.list = r.list), r.named && (T.named = r.named), be(r.plural) && (T.pluralIndex = r.plural), T;
|
|
1857
1857
|
}
|
|
1858
1858
|
ps();
|
|
1859
|
-
var ga = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_3ab4eec8-2e90-4ef0-a961-d2af4b347b02", 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_3ab4eec8-2e90-4ef0-a961-d2af4b347b02", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.8.1", 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: "1845", ACTIONS_ORCHESTRATION_ID: "a341921c-9dd7-4f87-a747-fedc05720d6d.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: "20261023.334.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_3ab4eec8-2e90-4ef0-a961-d2af4b347b02", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:12093", 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: "40631620754", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "e395368a5c7d968f5c3e5d83c414dfd9fd0efe01", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.9/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9kZXZcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTMxODMzNDIsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MzE2MTE0MiwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjM0NzQ5NGRiLWIxZDAtNTU0ZC04ODIzLTJmZjI4MGZjNWJmNiIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiNTBmOTYzNDk4MWZjYjJjYTcwZjRlMTFkODNhMzM2Y2VhYmZjOGI3YSIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MzE2MDg0Miwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJNaXJvb245OVwiLFwiYWN0b3JfaWRcIjpcIjY1NjM3NDIxXCIsXCJiYXNlX3JlZlwiOlwiXCIsXCJjaGVja19ydW5faWRcIjpcIjEyMjYyOTEwMTUxMVwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiNTBmOTYzNDk4MWZjYjJjYTcwZjRlMTFkODNhMzM2Y2VhYmZjOGI3YVwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL2RldlwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCI0MDYzMTYyMDc1NFwiLFwicnVuX251bWJlclwiOlwiMjM1XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiZTM5NTM2OGE1YzdkOTY4ZjVjM2U1ZDgzYzQxNGRmZDlmZDBlZmUwMVwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJ3b3JrZmxvd19zaGFcIjpcImUzOTUzNjhhNWM3ZDk2OGY1YzNlNWQ4M2M0MTRkZmQ5ZmQwZWZlMDFcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL2hybS1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL2RldiIsIm9yY2hfaWQiOiJhMzQxOTIxYy05ZGQ3LTRmODctYTc0Ny1mZWRjMDU3MjBkNmQucHVibGlzaC5wdWJsaXNoLl9fZGVmYXVsdCIsIm93bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwicGxhbl9pZCI6ImEzNDE5MjFjLTlkZDctNGY4Ny1hNzQ3LWZlZGMwNTcyMGQ2ZCIsInJlcG9zaXRvcnlfaWQiOiIxMTI0NjcyMjM1IiwicmVwb3NpdG9yeV9vd25lcl9pZCI6IjU0ODMxNTE1IiwicmVwb3NpdG9yeV92aXNpYmlsaXR5IjoicHJpdmF0ZSIsInJ1bl9pZCI6IjQwNjMxNjIwNzU0IiwicnVuX251bWJlciI6IjIzNSIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDAyMzI5ODEiLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czphMzQxOTIxYy05ZGQ3LTRmODctYTc0Ny1mZWRjMDU3MjBkNmQ6MzQ3NDk0ZGItYjFkMC01NTRkLTg4MjMtMmZmMjgwZmM1YmY2IEFjdGlvbnMuUnVubmVyOmEzNDE5MjFjLTlkZDctNGY4Ny1hNzQ3LWZlZGMwNTcyMGQ2ZDozNDc0OTRkYi1iMWQwLTU1NGQtODgyMy0yZmYyODBmYzViZjYgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6YTM0MTkyMWMtOWRkNy00Zjg3LWE3NDctZmVkYzA1NzIwZDZkOjM0NzQ5NGRiLWIxZDAtNTU0ZC04ODIzLTJmZjI4MGZjNWJmNiBnZW5lcmF0ZV9pZF90b2tlbjphMzQxOTIxYy05ZGQ3LTRmODctYTc0Ny1mZWRjMDU3MjBkNmQ6MzQ3NDk0ZGItYjFkMC01NTRkLTg4MjMtMmZmMjgwZmM1YmY2IEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiZTM5NTM2OGE1YzdkOTY4ZjVjM2U1ZDgzYzQxNGRmZDlmZDBlZmUwMSIsInRydXN0X3RpZXIiOiIxIn0.JPUOyyNDqSqHYUeXoXEVkND0iLITpdgp6mjVT75a5U1kTMBNBgRf2oTJa265UvTG_iszpvu8h6GqARaGbPZZI7_NaIxjfpJDrMrnl_NiC2X-gIcie4rv_YHuBHP3ywmeJ3UpTil7iNiMSzpwkofK7VPZasRKpoX8SU0VvKmB--rcyEesDGXRNPnbMBS3T4XqFLBexyEw2hcCUDxBGdGYMpZZCxa4ziFdk2VnlX2d0RvLyEtSQIOXrn8EuYWkJbrXuZW0woDK_vL9cCmNtCKkojjTwKBKTT7HIxqOQ38Gbldwv1dMa760KwNolMhnhFRjku0SuD6aw1IvubQzCchiUw", 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_5570f3e0-19f5-4419-8685-a96ac3efa60e", INVOCATION_ID: "b8c1012cf4824ff9a24175925c2ec4bd", 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: "235", GITHUB_TRIGGERING_ACTOR: "Miroon99", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000232981", 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.10", 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"}', npm_config_package_extensions: '{"@feedmepos/entity":{"dependencies":{"@feedmepos/core":"2.14.52"}}}', GITHUB_SHA: "e395368a5c7d968f5c3e5d83c414dfd9fd0efe01", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/dev", GITHUB_ACTOR: "Miroon99", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_3ab4eec8-2e90-4ef0-a961-d2af4b347b02", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "65637421", 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-1-azure-eastus.actions.githubusercontent.com/201//idtoken/a341921c-9dd7-4f87-a747-fedc05720d6d/347494db-b1d0-554d-8823-2ff280fc5bf6?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_3ab4eec8-2e90-4ef0-a961-d2af4b347b02", 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_3ab4eec8-2e90-4ef0-a961-d2af4b347b02", 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_3ab4eec8-2e90-4ef0-a961-d2af4b347b02", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1859
|
+
var ga = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_c8e66e05-10fa-45eb-aebb-34c3296d2aa4", 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_c8e66e05-10fa-45eb-aebb-34c3296d2aa4", 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: "1817", ACTIONS_ORCHESTRATION_ID: "008c9e70-0497-4918-88ac-b177402c16ff.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: "20261026.180.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_c8e66e05-10fa-45eb-aebb-34c3296d2aa4", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "10:14635", 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: "40666208353", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "fe7f1b05b99e6288650adf5329b6e18972d5411d", 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.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9kZXZcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTMyMDI2OTUsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MzE4MDQ5NSwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImFkMjdjNDE4LWRjMzMtNTZlNy1hNDg2LWM5MGRhZTBlODkyMiIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiNTBmOTYzNDk4MWZjYjJjYTcwZjRlMTFkODNhMzM2Y2VhYmZjOGI3YSIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MzE4MDE5NSwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJNaXJvb245OVwiLFwiYWN0b3JfaWRcIjpcIjY1NjM3NDIxXCIsXCJiYXNlX3JlZlwiOlwiXCIsXCJjaGVja19ydW5faWRcIjpcIjEyMjc0MTI2NjUwNlwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiNTBmOTYzNDk4MWZjYjJjYTcwZjRlMTFkODNhMzM2Y2VhYmZjOGI3YVwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL2RldlwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCI0MDY2NjIwODM1M1wiLFwicnVuX251bWJlclwiOlwiMjM2XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiZmU3ZjFiMDViOTllNjI4ODY1MGFkZjUzMjliNmUxODk3MmQ1NDExZFwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJ3b3JrZmxvd19zaGFcIjpcImZlN2YxYjA1Yjk5ZTYyODg2NTBhZGY1MzI5YjZlMTg5NzJkNTQxMWRcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL2hybS1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL2RldiIsIm9yY2hfaWQiOiIwMDhjOWU3MC0wNDk3LTQ5MTgtODhhYy1iMTc3NDAyYzE2ZmYucHVibGlzaC5wdWJsaXNoLl9fZGVmYXVsdCIsIm93bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwicGxhbl9pZCI6IjAwOGM5ZTcwLTA0OTctNDkxOC04OGFjLWIxNzc0MDJjMTZmZiIsInJlcG9zaXRvcnlfaWQiOiIxMTI0NjcyMjM1IiwicmVwb3NpdG9yeV9vd25lcl9pZCI6IjU0ODMxNTE1IiwicmVwb3NpdG9yeV92aXNpYmlsaXR5IjoicHJpdmF0ZSIsInJ1bl9pZCI6IjQwNjY2MjA4MzUzIiwicnVuX251bWJlciI6IjIzNiIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDAyMzQ2MDciLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czowMDhjOWU3MC0wNDk3LTQ5MTgtODhhYy1iMTc3NDAyYzE2ZmY6YWQyN2M0MTgtZGMzMy01NmU3LWE0ODYtYzkwZGFlMGU4OTIyIEFjdGlvbnMuUnVubmVyOjAwOGM5ZTcwLTA0OTctNDkxOC04OGFjLWIxNzc0MDJjMTZmZjphZDI3YzQxOC1kYzMzLTU2ZTctYTQ4Ni1jOTBkYWUwZTg5MjIgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6MDA4YzllNzAtMDQ5Ny00OTE4LTg4YWMtYjE3NzQwMmMxNmZmOmFkMjdjNDE4LWRjMzMtNTZlNy1hNDg2LWM5MGRhZTBlODkyMiBnZW5lcmF0ZV9pZF90b2tlbjowMDhjOWU3MC0wNDk3LTQ5MTgtODhhYy1iMTc3NDAyYzE2ZmY6YWQyN2M0MTgtZGMzMy01NmU3LWE0ODYtYzkwZGFlMGU4OTIyIEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiZmU3ZjFiMDViOTllNjI4ODY1MGFkZjUzMjliNmUxODk3MmQ1NDExZCIsInRydXN0X3RpZXIiOiIxIn0.5GHRUFwdHzlrDkVlygGO1rJ2W_040QI5oeenowLHxHL1oFYyZziKozLXZack5mOrJhL5C90SrCQueOaEmmN90gYuvYcQxLzixk3PCHLCGHNjZMvr3AFjWPKDhg_vNrh4HXoI4exhHzUwQ9BJtxXaAgGr5IfQIxvXl2CxyXZHR4Z2AhE3CgzDwjpb5xb_5g5lfIO40x48CTXD3qA20OLClWwFQBTtlqemeg80iFuPZO2Eu9DLa6WG2uDVLHCl8QHtFaXgUq9pU7z4g2RNLyTt4h9_DKSjEa19uQV8XIj3unuh7i-jccvZXOJiGScP4uvdSh7Zz1aCrPHyxG8b3zILXA", 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_eb2c035e-f1e5-4f16-bf7e-6e8987cec911", INVOCATION_ID: "c8922d94fe3947c082d6dad12899af82", 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: "236", GITHUB_TRIGGERING_ACTOR: "Miroon99", 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 1000234607", 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.11", 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"}', npm_config_package_extensions: '{"@feedmepos/entity":{"dependencies":{"@feedmepos/core":"2.14.52"}}}', GITHUB_SHA: "fe7f1b05b99e6288650adf5329b6e18972d5411d", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/dev", GITHUB_ACTOR: "Miroon99", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_c8e66e05-10fa-45eb-aebb-34c3296d2aa4", JAVA_HOME: "/usr/lib/jvm/temurin-25-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "65637421", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-2-azure-eastus.actions.githubusercontent.com/39//idtoken/008c9e70-0497-4918-88ac-b177402c16ff/ad27c418-dc33-56e7-a486-c90dae0e8922?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_c8e66e05-10fa-45eb-aebb-34c3296d2aa4", 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_c8e66e05-10fa-45eb-aebb-34c3296d2aa4", 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_c8e66e05-10fa-45eb-aebb-34c3296d2aa4", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1860
1860
|
const ya = "10.0.5";
|
|
1861
1861
|
function Ia() {
|
|
1862
1862
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Je().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Je().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Je().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Je().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
@@ -1875,7 +1875,7 @@ const lt = {
|
|
|
1875
1875
|
UNEXPECTED_ERROR: 32
|
|
1876
1876
|
};
|
|
1877
1877
|
function mt(e, ...t) {
|
|
1878
|
-
return
|
|
1878
|
+
return Nt(e, null, void 0);
|
|
1879
1879
|
}
|
|
1880
1880
|
const xt = /* @__PURE__ */ ze("__translateVNode"), Vt = /* @__PURE__ */ ze("__datetimeParts"), Gt = /* @__PURE__ */ ze("__numberParts"), Ea = ze("__setPluralRules"), rr = /* @__PURE__ */ ze("__injectWithOption"), Wt = /* @__PURE__ */ ze("__dispose");
|
|
1881
1881
|
function dt(e) {
|
|
@@ -1915,7 +1915,7 @@ function sr(e, t) {
|
|
|
1915
1915
|
function ar(e) {
|
|
1916
1916
|
return e.type;
|
|
1917
1917
|
}
|
|
1918
|
-
function
|
|
1918
|
+
function Ca(e, t, n) {
|
|
1919
1919
|
let r = ee(t.messages) ? t.messages : se();
|
|
1920
1920
|
"__i18nGlobal" in n && (r = sr(e.locale.value, {
|
|
1921
1921
|
messages: r,
|
|
@@ -1943,15 +1943,15 @@ function Na(e, t, n) {
|
|
|
1943
1943
|
function On(e) {
|
|
1944
1944
|
return oe(fr, null, e, 0);
|
|
1945
1945
|
}
|
|
1946
|
-
const
|
|
1947
|
-
let
|
|
1948
|
-
function
|
|
1946
|
+
const Ln = "__INTLIFY_META__", Sn = () => [], Na = () => !1;
|
|
1947
|
+
let Rn = 0;
|
|
1948
|
+
function An(e) {
|
|
1949
1949
|
return (t, n, r, a) => e(n, r, Yt() || void 0, a);
|
|
1950
1950
|
}
|
|
1951
1951
|
const Ta = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1952
1952
|
const e = Yt();
|
|
1953
1953
|
let t = null;
|
|
1954
|
-
return e && (t = ar(e)[
|
|
1954
|
+
return e && (t = ar(e)[Ln]) ? { [Ln]: t } : null;
|
|
1955
1955
|
};
|
|
1956
1956
|
function Oa(e = {}) {
|
|
1957
1957
|
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, o = sn ? st : mr;
|
|
@@ -1962,8 +1962,8 @@ function Oa(e = {}) {
|
|
|
1962
1962
|
), i = o(
|
|
1963
1963
|
// prettier-ignore
|
|
1964
1964
|
t && f ? t.fallbackLocale.value : G(e.fallbackLocale) || pe(e.fallbackLocale) || q(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : d.value
|
|
1965
|
-
), b = o(sr(d.value, e)), E = o(q(e.datetimeFormats) ? e.datetimeFormats : { [d.value]: {} }),
|
|
1966
|
-
let T = t ? t.missingWarn : _e(e.missingWarn) || It(e.missingWarn) ? e.missingWarn : !0,
|
|
1965
|
+
), b = o(sr(d.value, e)), E = o(q(e.datetimeFormats) ? e.datetimeFormats : { [d.value]: {} }), N = o(q(e.numberFormats) ? e.numberFormats : { [d.value]: {} });
|
|
1966
|
+
let T = t ? t.missingWarn : _e(e.missingWarn) || It(e.missingWarn) ? e.missingWarn : !0, D = t ? t.fallbackWarn : _e(e.fallbackWarn) || It(e.fallbackWarn) ? e.fallbackWarn : !0, k = t ? t.fallbackRoot : _e(e.fallbackRoot) ? e.fallbackRoot : !0, R = !!e.fallbackFormat, M = ue(e.missing) ? e.missing : null, p = ue(e.missing) ? An(e.missing) : null, h = ue(e.postTranslation) ? e.postTranslation : null, L = t ? t.warnHtmlMessage : _e(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, m = !!e.escapeParameter;
|
|
1967
1967
|
const g = t ? t.modifiers : q(e.modifiers) ? e.modifiers : {};
|
|
1968
1968
|
let I = e.pluralRules || t && t.pluralRules, v;
|
|
1969
1969
|
v = (() => {
|
|
@@ -1977,19 +1977,19 @@ function Oa(e = {}) {
|
|
|
1977
1977
|
pluralRules: I,
|
|
1978
1978
|
missing: p === null ? void 0 : p,
|
|
1979
1979
|
missingWarn: T,
|
|
1980
|
-
fallbackWarn:
|
|
1981
|
-
fallbackFormat:
|
|
1980
|
+
fallbackWarn: D,
|
|
1981
|
+
fallbackFormat: R,
|
|
1982
1982
|
unresolving: !0,
|
|
1983
1983
|
postTranslation: h === null ? void 0 : h,
|
|
1984
|
-
warnHtmlMessage:
|
|
1984
|
+
warnHtmlMessage: L,
|
|
1985
1985
|
escapeParameter: m,
|
|
1986
1986
|
messageResolver: e.messageResolver,
|
|
1987
1987
|
messageCompiler: e.messageCompiler,
|
|
1988
1988
|
__meta: { framework: "vue" }
|
|
1989
1989
|
};
|
|
1990
|
-
u.datetimeFormats = E.value, u.numberFormats =
|
|
1991
|
-
const
|
|
1992
|
-
return r && hn(
|
|
1990
|
+
u.datetimeFormats = E.value, u.numberFormats = N.value, u.__datetimeFormatters = q(v) ? v.__datetimeFormatters : void 0, u.__numberFormatters = q(v) ? v.__numberFormatters : void 0;
|
|
1991
|
+
const C = sa(u);
|
|
1992
|
+
return r && hn(C), C;
|
|
1993
1993
|
})(), it(v, d.value, i.value);
|
|
1994
1994
|
function S() {
|
|
1995
1995
|
return [
|
|
@@ -1997,7 +1997,7 @@ function Oa(e = {}) {
|
|
|
1997
1997
|
i.value,
|
|
1998
1998
|
b.value,
|
|
1999
1999
|
E.value,
|
|
2000
|
-
|
|
2000
|
+
N.value
|
|
2001
2001
|
];
|
|
2002
2002
|
}
|
|
2003
2003
|
const H = K({
|
|
@@ -2010,20 +2010,20 @@ function Oa(e = {}) {
|
|
|
2010
2010
|
set: (u) => {
|
|
2011
2011
|
i.value = u, v.fallbackLocale = i.value, it(v, d.value, u);
|
|
2012
2012
|
}
|
|
2013
|
-
}), _ = K(() => b.value), O = /* @__PURE__ */ K(() => E.value), P = /* @__PURE__ */ K(() =>
|
|
2013
|
+
}), _ = K(() => b.value), O = /* @__PURE__ */ K(() => E.value), P = /* @__PURE__ */ K(() => N.value);
|
|
2014
2014
|
function F() {
|
|
2015
2015
|
return ue(h) ? h : null;
|
|
2016
2016
|
}
|
|
2017
|
-
function
|
|
2017
|
+
function w(u) {
|
|
2018
2018
|
h = u, v.postTranslation = u;
|
|
2019
2019
|
}
|
|
2020
2020
|
function V() {
|
|
2021
2021
|
return M;
|
|
2022
2022
|
}
|
|
2023
2023
|
function j(u) {
|
|
2024
|
-
u !== null && (p =
|
|
2024
|
+
u !== null && (p = An(u)), M = u, v.missing = p;
|
|
2025
2025
|
}
|
|
2026
|
-
const Z = (u,
|
|
2026
|
+
const Z = (u, C, Q, J, me, We) => {
|
|
2027
2027
|
S();
|
|
2028
2028
|
let qe;
|
|
2029
2029
|
try {
|
|
@@ -2033,31 +2033,31 @@ function Oa(e = {}) {
|
|
|
2033
2033
|
}
|
|
2034
2034
|
if (Q !== "translate exists" && // for not `te` (e.g `t`)
|
|
2035
2035
|
be(qe) && qe === Tt || Q === "translate exists" && !qe) {
|
|
2036
|
-
const [cr, po] =
|
|
2037
|
-
return t &&
|
|
2036
|
+
const [cr, po] = C();
|
|
2037
|
+
return t && k ? J(t) : me(cr);
|
|
2038
2038
|
} else {
|
|
2039
2039
|
if (We(qe))
|
|
2040
2040
|
return qe;
|
|
2041
2041
|
throw mt(lt.UNEXPECTED_RETURN_TYPE);
|
|
2042
2042
|
}
|
|
2043
2043
|
};
|
|
2044
|
-
function
|
|
2045
|
-
return Z((
|
|
2044
|
+
function X(...u) {
|
|
2045
|
+
return Z((C) => Reflect.apply(Tn, null, [C, ...u]), () => Ut(...u), "translate", (C) => Reflect.apply(C.t, C, [...u]), (C) => C, (C) => G(C));
|
|
2046
2046
|
}
|
|
2047
2047
|
function te(...u) {
|
|
2048
|
-
const [
|
|
2048
|
+
const [C, Q, J] = u;
|
|
2049
2049
|
if (J && !ee(J))
|
|
2050
2050
|
throw mt(lt.INVALID_ARGUMENT);
|
|
2051
|
-
return
|
|
2051
|
+
return X(C, Q, ge({ resolvedMessage: !0 }, J || {}));
|
|
2052
2052
|
}
|
|
2053
2053
|
function z(...u) {
|
|
2054
|
-
return Z((
|
|
2054
|
+
return Z((C) => Reflect.apply(gn, null, [C, ...u]), () => Pt(...u), "datetime format", (C) => Reflect.apply(C.d, C, [...u]), () => pn, (C) => G(C));
|
|
2055
2055
|
}
|
|
2056
2056
|
function de(...u) {
|
|
2057
|
-
return Z((
|
|
2057
|
+
return Z((C) => Reflect.apply(In, null, [C, ...u]), () => jt(...u), "number format", (C) => Reflect.apply(C.n, C, [...u]), () => pn, (C) => G(C));
|
|
2058
2058
|
}
|
|
2059
2059
|
function ve(u) {
|
|
2060
|
-
return u.map((
|
|
2060
|
+
return u.map((C) => G(C) || be(C) || _e(C) ? On(String(C)) : C);
|
|
2061
2061
|
}
|
|
2062
2062
|
const ae = {
|
|
2063
2063
|
normalize: ve,
|
|
@@ -2065,95 +2065,95 @@ function Oa(e = {}) {
|
|
|
2065
2065
|
type: "vnode"
|
|
2066
2066
|
};
|
|
2067
2067
|
function le(...u) {
|
|
2068
|
-
return Z((
|
|
2068
|
+
return Z((C) => {
|
|
2069
2069
|
let Q;
|
|
2070
|
-
const J =
|
|
2070
|
+
const J = C;
|
|
2071
2071
|
try {
|
|
2072
2072
|
J.processor = ae, Q = Reflect.apply(Tn, null, [J, ...u]);
|
|
2073
2073
|
} finally {
|
|
2074
2074
|
J.processor = null;
|
|
2075
2075
|
}
|
|
2076
2076
|
return Q;
|
|
2077
|
-
}, () => Ut(...u), "translate", (
|
|
2077
|
+
}, () => Ut(...u), "translate", (C) => C[xt](...u), (C) => [On(C)], (C) => pe(C));
|
|
2078
2078
|
}
|
|
2079
|
-
function
|
|
2080
|
-
return Z((
|
|
2079
|
+
function Ae(...u) {
|
|
2080
|
+
return Z((C) => Reflect.apply(In, null, [C, ...u]), () => jt(...u), "number format", (C) => C[Gt](...u), Sn, (C) => G(C) || pe(C));
|
|
2081
2081
|
}
|
|
2082
2082
|
function Y(...u) {
|
|
2083
|
-
return Z((
|
|
2083
|
+
return Z((C) => Reflect.apply(gn, null, [C, ...u]), () => Pt(...u), "datetime format", (C) => C[Vt](...u), Sn, (C) => G(C) || pe(C));
|
|
2084
2084
|
}
|
|
2085
2085
|
function fe(u) {
|
|
2086
2086
|
I = u, v.pluralRules = I;
|
|
2087
2087
|
}
|
|
2088
|
-
function $e(u,
|
|
2088
|
+
function $e(u, C) {
|
|
2089
2089
|
return Z(() => {
|
|
2090
2090
|
if (!u)
|
|
2091
2091
|
return !1;
|
|
2092
|
-
const Q = G(
|
|
2092
|
+
const Q = G(C) ? C : d.value, J = we(Q), me = v.messageResolver(J, u);
|
|
2093
2093
|
return ot(me) || Te(me) || G(me);
|
|
2094
|
-
}, () => [u], "translate exists", (Q) => Reflect.apply(Q.te, Q, [u,
|
|
2094
|
+
}, () => [u], "translate exists", (Q) => Reflect.apply(Q.te, Q, [u, C]), Na, (Q) => _e(Q));
|
|
2095
2095
|
}
|
|
2096
2096
|
function Qe(u) {
|
|
2097
|
-
let
|
|
2097
|
+
let C = null;
|
|
2098
2098
|
const Q = Hn(v, i.value, d.value);
|
|
2099
2099
|
for (let J = 0; J < Q.length; J++) {
|
|
2100
2100
|
const me = b.value[Q[J]] || {}, We = v.messageResolver(me, u);
|
|
2101
2101
|
if (We != null) {
|
|
2102
|
-
|
|
2102
|
+
C = We;
|
|
2103
2103
|
break;
|
|
2104
2104
|
}
|
|
2105
2105
|
}
|
|
2106
|
-
return
|
|
2106
|
+
return C;
|
|
2107
2107
|
}
|
|
2108
2108
|
function Ve(u) {
|
|
2109
|
-
const
|
|
2110
|
-
return
|
|
2109
|
+
const C = Qe(u);
|
|
2110
|
+
return C ?? (t ? t.tm(u) || {} : {});
|
|
2111
2111
|
}
|
|
2112
|
-
function
|
|
2112
|
+
function we(u) {
|
|
2113
2113
|
return b.value[u] || {};
|
|
2114
2114
|
}
|
|
2115
|
-
function Fe(u,
|
|
2115
|
+
function Fe(u, C) {
|
|
2116
2116
|
if (a) {
|
|
2117
|
-
const Q = { [u]:
|
|
2117
|
+
const Q = { [u]: C };
|
|
2118
2118
|
for (const J in Q)
|
|
2119
2119
|
Se(Q, J) && dt(Q[J]);
|
|
2120
|
-
|
|
2120
|
+
C = Q[u];
|
|
2121
2121
|
}
|
|
2122
|
-
b.value[u] =
|
|
2122
|
+
b.value[u] = C, v.messages = b.value;
|
|
2123
2123
|
}
|
|
2124
|
-
function Ge(u,
|
|
2124
|
+
function Ge(u, C) {
|
|
2125
2125
|
b.value[u] = b.value[u] || {};
|
|
2126
|
-
const Q = { [u]:
|
|
2126
|
+
const Q = { [u]: C };
|
|
2127
2127
|
if (a)
|
|
2128
2128
|
for (const J in Q)
|
|
2129
2129
|
Se(Q, J) && dt(Q[J]);
|
|
2130
|
-
|
|
2130
|
+
C = Q[u], yt(C, b.value[u]), v.messages = b.value;
|
|
2131
2131
|
}
|
|
2132
2132
|
function Pe(u) {
|
|
2133
2133
|
return E.value[u] || {};
|
|
2134
2134
|
}
|
|
2135
|
-
function l(u,
|
|
2136
|
-
E.value[u] =
|
|
2135
|
+
function l(u, C) {
|
|
2136
|
+
E.value[u] = C, v.datetimeFormats = E.value, yn(v, u, C);
|
|
2137
2137
|
}
|
|
2138
|
-
function s(u,
|
|
2139
|
-
E.value[u] = ge(E.value[u] || {},
|
|
2138
|
+
function s(u, C) {
|
|
2139
|
+
E.value[u] = ge(E.value[u] || {}, C), v.datetimeFormats = E.value, yn(v, u, C);
|
|
2140
2140
|
}
|
|
2141
2141
|
function c(u) {
|
|
2142
|
-
return
|
|
2142
|
+
return N.value[u] || {};
|
|
2143
2143
|
}
|
|
2144
|
-
function y(u,
|
|
2145
|
-
|
|
2144
|
+
function y(u, C) {
|
|
2145
|
+
N.value[u] = C, v.numberFormats = N.value, En(v, u, C);
|
|
2146
2146
|
}
|
|
2147
|
-
function U(u,
|
|
2148
|
-
|
|
2147
|
+
function U(u, C) {
|
|
2148
|
+
N.value[u] = ge(N.value[u] || {}, C), v.numberFormats = N.value, En(v, u, C);
|
|
2149
2149
|
}
|
|
2150
|
-
|
|
2150
|
+
Rn++, t && sn && (Mt(t.locale, (u) => {
|
|
2151
2151
|
f && (d.value = u, v.locale = u, it(v, d.value, i.value));
|
|
2152
2152
|
}), Mt(t.fallbackLocale, (u) => {
|
|
2153
2153
|
f && (i.value = u, v.fallbackLocale = u, it(v, d.value, i.value));
|
|
2154
2154
|
}));
|
|
2155
2155
|
const W = {
|
|
2156
|
-
id:
|
|
2156
|
+
id: Rn,
|
|
2157
2157
|
locale: H,
|
|
2158
2158
|
fallbackLocale: x,
|
|
2159
2159
|
get inheritLocale() {
|
|
@@ -2182,28 +2182,28 @@ function Oa(e = {}) {
|
|
|
2182
2182
|
T = u, v.missingWarn = T;
|
|
2183
2183
|
},
|
|
2184
2184
|
get fallbackWarn() {
|
|
2185
|
-
return
|
|
2185
|
+
return D;
|
|
2186
2186
|
},
|
|
2187
2187
|
set fallbackWarn(u) {
|
|
2188
|
-
|
|
2188
|
+
D = u, v.fallbackWarn = D;
|
|
2189
2189
|
},
|
|
2190
2190
|
get fallbackRoot() {
|
|
2191
|
-
return
|
|
2191
|
+
return k;
|
|
2192
2192
|
},
|
|
2193
2193
|
set fallbackRoot(u) {
|
|
2194
|
-
|
|
2194
|
+
k = u;
|
|
2195
2195
|
},
|
|
2196
2196
|
get fallbackFormat() {
|
|
2197
|
-
return
|
|
2197
|
+
return R;
|
|
2198
2198
|
},
|
|
2199
2199
|
set fallbackFormat(u) {
|
|
2200
|
-
|
|
2200
|
+
R = u, v.fallbackFormat = R;
|
|
2201
2201
|
},
|
|
2202
2202
|
get warnHtmlMessage() {
|
|
2203
|
-
return
|
|
2203
|
+
return L;
|
|
2204
2204
|
},
|
|
2205
2205
|
set warnHtmlMessage(u) {
|
|
2206
|
-
|
|
2206
|
+
L = u, v.warnHtmlMessage = u;
|
|
2207
2207
|
},
|
|
2208
2208
|
get escapeParameter() {
|
|
2209
2209
|
return m;
|
|
@@ -2211,17 +2211,17 @@ function Oa(e = {}) {
|
|
|
2211
2211
|
set escapeParameter(u) {
|
|
2212
2212
|
m = u, v.escapeParameter = u;
|
|
2213
2213
|
},
|
|
2214
|
-
t:
|
|
2215
|
-
getLocaleMessage:
|
|
2214
|
+
t: X,
|
|
2215
|
+
getLocaleMessage: we,
|
|
2216
2216
|
setLocaleMessage: Fe,
|
|
2217
2217
|
mergeLocaleMessage: Ge,
|
|
2218
2218
|
getPostTranslationHandler: F,
|
|
2219
|
-
setPostTranslationHandler:
|
|
2219
|
+
setPostTranslationHandler: w,
|
|
2220
2220
|
getMissingHandler: V,
|
|
2221
2221
|
setMissingHandler: j,
|
|
2222
2222
|
[Ea]: fe
|
|
2223
2223
|
};
|
|
2224
|
-
return W.datetimeFormats = O, W.numberFormats = P, W.rt = te, W.te = $e, W.tm = Ve, W.d = z, W.n = de, W.getDateTimeFormat = Pe, W.setDateTimeFormat = l, W.mergeDateTimeFormat = s, W.getNumberFormat = c, W.setNumberFormat = y, W.mergeNumberFormat = U, W[rr] = n, W[xt] = le, W[Vt] = Y, W[Gt] =
|
|
2224
|
+
return W.datetimeFormats = O, W.numberFormats = P, W.rt = te, W.te = $e, W.tm = Ve, W.d = z, W.n = de, W.getDateTimeFormat = Pe, W.setDateTimeFormat = l, W.mergeDateTimeFormat = s, W.getNumberFormat = c, W.setNumberFormat = y, W.mergeNumberFormat = U, W[rr] = n, W[xt] = le, W[Vt] = Y, W[Gt] = Ae, W;
|
|
2225
2225
|
}
|
|
2226
2226
|
const Qt = {
|
|
2227
2227
|
tag: {
|
|
@@ -2241,7 +2241,7 @@ const Qt = {
|
|
|
2241
2241
|
type: Object
|
|
2242
2242
|
}
|
|
2243
2243
|
};
|
|
2244
|
-
function
|
|
2244
|
+
function La({ slots: e }, t) {
|
|
2245
2245
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, a) => [
|
|
2246
2246
|
...r,
|
|
2247
2247
|
// prettier-ignore
|
|
@@ -2272,15 +2272,15 @@ function lr(e, t, n, r) {
|
|
|
2272
2272
|
return () => {
|
|
2273
2273
|
const f = { part: !0 };
|
|
2274
2274
|
let d = se();
|
|
2275
|
-
e.locale && (f.locale = e.locale), G(e.format) ? f.key = e.format : ee(e.format) && (G(e.format.key) && (f.key = e.format.key), d = Object.keys(e.format).reduce((T,
|
|
2275
|
+
e.locale && (f.locale = e.locale), G(e.format) ? f.key = e.format : ee(e.format) && (G(e.format.key) && (f.key = e.format.key), d = Object.keys(e.format).reduce((T, D) => n.includes(D) ? ge(se(), T, { [D]: e.format[D] }) : T, se()));
|
|
2276
2276
|
const i = r(e.value, f, d);
|
|
2277
2277
|
let b = [f.key];
|
|
2278
|
-
pe(i) ? b = i.map((T,
|
|
2279
|
-
const
|
|
2280
|
-
return Sa(
|
|
2278
|
+
pe(i) ? b = i.map((T, D) => {
|
|
2279
|
+
const k = a[T.type], R = k ? k({ [T.type]: T.value, index: D, parts: i }) : [T.value];
|
|
2280
|
+
return Sa(R) && (R[0].key = `${T.type}-${D}`), R;
|
|
2281
2281
|
}) : G(i) && (b = [i]);
|
|
2282
|
-
const E = ge(se(), o),
|
|
2283
|
-
return Vn(
|
|
2282
|
+
const E = ge(se(), o), N = G(e.tag) || ee(e.tag) ? e.tag : or();
|
|
2283
|
+
return Vn(N, E, b);
|
|
2284
2284
|
};
|
|
2285
2285
|
}
|
|
2286
2286
|
ge({
|
|
@@ -2301,18 +2301,18 @@ ge({
|
|
|
2301
2301
|
type: [String, Object]
|
|
2302
2302
|
}
|
|
2303
2303
|
}, Qt);
|
|
2304
|
-
const
|
|
2304
|
+
const Ra = /* @__PURE__ */ ze("global-vue-i18n");
|
|
2305
2305
|
function Ot(e = {}) {
|
|
2306
2306
|
const t = Yt();
|
|
2307
2307
|
if (t == null)
|
|
2308
2308
|
throw mt(lt.MUST_BE_CALL_SETUP_TOP);
|
|
2309
2309
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2310
2310
|
throw mt(lt.NOT_INSTALLED);
|
|
2311
|
-
const n =
|
|
2311
|
+
const n = Aa(t), r = Ma(n), a = ar(t), o = ka(e, a);
|
|
2312
2312
|
if (o === "global")
|
|
2313
|
-
return
|
|
2313
|
+
return Ca(r, e, a), r;
|
|
2314
2314
|
if (o === "parent") {
|
|
2315
|
-
let i =
|
|
2315
|
+
let i = Da(n, t, e.__useComponent);
|
|
2316
2316
|
return i == null && (i = r), i;
|
|
2317
2317
|
}
|
|
2318
2318
|
const f = n;
|
|
@@ -2323,22 +2323,22 @@ function Ot(e = {}) {
|
|
|
2323
2323
|
}
|
|
2324
2324
|
return d;
|
|
2325
2325
|
}
|
|
2326
|
-
function
|
|
2327
|
-
const t = ur(e.isCE ?
|
|
2326
|
+
function Aa(e) {
|
|
2327
|
+
const t = ur(e.isCE ? Ra : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2328
2328
|
if (!t)
|
|
2329
2329
|
throw mt(e.isCE ? lt.NOT_INSTALLED_WITH_PROVIDE : lt.UNEXPECTED_ERROR);
|
|
2330
2330
|
return t;
|
|
2331
2331
|
}
|
|
2332
|
-
function
|
|
2333
|
-
return
|
|
2332
|
+
function ka(e, t) {
|
|
2333
|
+
return Ct(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2334
2334
|
}
|
|
2335
2335
|
function Ma(e) {
|
|
2336
2336
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2337
2337
|
}
|
|
2338
|
-
function
|
|
2338
|
+
function Da(e, t, n = !1) {
|
|
2339
2339
|
let r = null;
|
|
2340
2340
|
const a = t.root;
|
|
2341
|
-
let o =
|
|
2341
|
+
let o = wa(t, n);
|
|
2342
2342
|
for (; o != null; ) {
|
|
2343
2343
|
const f = e;
|
|
2344
2344
|
if (e.mode === "composition")
|
|
@@ -2353,7 +2353,7 @@ function wa(e, t, n = !1) {
|
|
|
2353
2353
|
}
|
|
2354
2354
|
return r;
|
|
2355
2355
|
}
|
|
2356
|
-
function
|
|
2356
|
+
function wa(e, t = !1) {
|
|
2357
2357
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2358
2358
|
}
|
|
2359
2359
|
function Fa(e, t, n) {
|
|
@@ -2366,14 +2366,14 @@ function Fa(e, t, n) {
|
|
|
2366
2366
|
}, t);
|
|
2367
2367
|
}
|
|
2368
2368
|
Ia();
|
|
2369
|
-
Qs(
|
|
2369
|
+
Qs(Ds);
|
|
2370
2370
|
qs(Js);
|
|
2371
2371
|
ea(Hn);
|
|
2372
2372
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2373
2373
|
const e = Je();
|
|
2374
|
-
e.__INTLIFY__ = !0,
|
|
2374
|
+
e.__INTLIFY__ = !0, ws(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2375
2375
|
}
|
|
2376
|
-
const vt = /* @__PURE__ */
|
|
2376
|
+
const vt = /* @__PURE__ */ Re({
|
|
2377
2377
|
__name: "InheritPermissionTooltip",
|
|
2378
2378
|
props: {
|
|
2379
2379
|
item: {
|
|
@@ -2384,14 +2384,14 @@ const vt = /* @__PURE__ */ Le({
|
|
|
2384
2384
|
setup(e) {
|
|
2385
2385
|
const { t } = Ot();
|
|
2386
2386
|
return (n, r) => {
|
|
2387
|
-
const a =
|
|
2388
|
-
return $(),
|
|
2387
|
+
const a = De("FmIcon"), o = De("FmTooltip");
|
|
2388
|
+
return $(), Ne(o, {
|
|
2389
2389
|
variant: "plain",
|
|
2390
2390
|
placement: "right",
|
|
2391
2391
|
"z-index": 50
|
|
2392
2392
|
}, {
|
|
2393
2393
|
content: ce(() => [
|
|
2394
|
-
ie("div", null, Oe(
|
|
2394
|
+
ie("div", null, Oe(B(t)("team.memberForm.permissions.inherited")), 1),
|
|
2395
2395
|
($(!0), re(Me, null, Ee(e.item.setNames, (f) => ($(), re("div", { key: f }, [
|
|
2396
2396
|
ie("div", null, "- " + Oe(f), 1)
|
|
2397
2397
|
]))), 128))
|
|
@@ -2408,7 +2408,7 @@ const vt = /* @__PURE__ */ Le({
|
|
|
2408
2408
|
};
|
|
2409
2409
|
}
|
|
2410
2410
|
});
|
|
2411
|
-
function
|
|
2411
|
+
function kn(e, t, n) {
|
|
2412
2412
|
const r = n.filter((d) => d !== "manage");
|
|
2413
2413
|
if (r.length === 0) return;
|
|
2414
2414
|
const a = e.findIndex((d) => d.subject === t && !d.inverted);
|
|
@@ -2422,44 +2422,44 @@ function An(e, t, n) {
|
|
|
2422
2422
|
actions: Array.from(o)
|
|
2423
2423
|
});
|
|
2424
2424
|
}
|
|
2425
|
-
const Mn = Object.values(
|
|
2425
|
+
const Mn = Object.values(Ar), Pa = {
|
|
2426
2426
|
read: "View",
|
|
2427
2427
|
create: "Duplicate",
|
|
2428
2428
|
update: "Edit"
|
|
2429
2429
|
};
|
|
2430
2430
|
function ja(e, t, n, r) {
|
|
2431
|
-
const { t: a } = Ke(), { getFlagValue: o, getFlag: f } =
|
|
2432
|
-
var
|
|
2431
|
+
const { t: a } = Ke(), { getFlagValue: o, getFlag: f } = Rr(), d = K(() => {
|
|
2432
|
+
var w;
|
|
2433
2433
|
const _ = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map();
|
|
2434
2434
|
for (const V of t.value) {
|
|
2435
2435
|
const j = V.category;
|
|
2436
2436
|
if (!j) continue;
|
|
2437
2437
|
const Z = V.subject;
|
|
2438
|
-
if (n.value.includes(V.subject) || V.showByFeatureFlag && ((
|
|
2438
|
+
if (n.value.includes(V.subject) || V.showByFeatureFlag && ((w = f(V.showByFeatureFlag)) == null ? void 0 : w.enabled) === !1 && o(V.showByFeatureFlag) === "true")
|
|
2439
2439
|
continue;
|
|
2440
2440
|
_.has(j) || _.set(j, []);
|
|
2441
|
-
const
|
|
2442
|
-
P.set(Z,
|
|
2441
|
+
const X = P.get(Z) ?? 0;
|
|
2442
|
+
P.set(Z, X + 1), _.get(j).push({
|
|
2443
2443
|
label: a(`permissionSet.permissionLabels.${Z}`, V.label),
|
|
2444
2444
|
value: Z,
|
|
2445
|
-
optionKey: `${Z}::${
|
|
2445
|
+
optionKey: `${Z}::${X}`
|
|
2446
2446
|
}), O.has(Z) || O.set(Z, V);
|
|
2447
2447
|
}
|
|
2448
2448
|
return [..._.keys()].sort((V, j) => {
|
|
2449
|
-
const Z = Mn.indexOf(V),
|
|
2450
|
-
return Z === -1 &&
|
|
2449
|
+
const Z = Mn.indexOf(V), X = Mn.indexOf(j);
|
|
2450
|
+
return Z === -1 && X === -1 ? V.localeCompare(j) : Z === -1 ? 1 : X === -1 ? -1 : Z - X;
|
|
2451
2451
|
}).map((V) => {
|
|
2452
|
-
const j = _.get(V), Z = a(`permissionSet.categoryLabels.${V}`, V),
|
|
2452
|
+
const j = _.get(V), Z = a(`permissionSet.categoryLabels.${V}`, V), X = /* @__PURE__ */ new Map();
|
|
2453
2453
|
for (const Y of j) {
|
|
2454
2454
|
const fe = O.get(Y.value);
|
|
2455
|
-
fe &&
|
|
2455
|
+
fe && X.set(Y.value, fe.actions);
|
|
2456
2456
|
}
|
|
2457
2457
|
const te = j.some((Y) => {
|
|
2458
|
-
const fe =
|
|
2458
|
+
const fe = X.get(Y.value);
|
|
2459
2459
|
return fe && fe.length > 1;
|
|
2460
2460
|
}), z = te ? [
|
|
2461
2461
|
...new Set(
|
|
2462
|
-
j.flatMap((Y) =>
|
|
2462
|
+
j.flatMap((Y) => X.get(Y.value) ?? []).filter((Y) => Y !== "manage")
|
|
2463
2463
|
)
|
|
2464
2464
|
] : [], de = /* @__PURE__ */ new Map();
|
|
2465
2465
|
for (const Y of e.value)
|
|
@@ -2469,7 +2469,7 @@ function ja(e, t, n, r) {
|
|
|
2469
2469
|
).map((Y) => Y.subject) : e.value.filter((Y) => j.some((fe) => fe.value === Y.subject) && !Y.inverted).map((Y) => Y.subject), he = j.find((Y) => {
|
|
2470
2470
|
var fe;
|
|
2471
2471
|
return (fe = O.get(Y.value)) == null ? void 0 : fe.isCategoryCover;
|
|
2472
|
-
}), ae = (he == null ? void 0 : he.value) ?? null, le = ae ? de.get(ae) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(),
|
|
2472
|
+
}), ae = (he == null ? void 0 : he.value) ?? null, le = ae ? de.get(ae) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), Ae = le.has("manage");
|
|
2473
2473
|
return {
|
|
2474
2474
|
category: V,
|
|
2475
2475
|
label: Z,
|
|
@@ -2477,23 +2477,23 @@ function ja(e, t, n, r) {
|
|
|
2477
2477
|
selectedSubjects: ve,
|
|
2478
2478
|
isMultiAction: te,
|
|
2479
2479
|
actionColumns: z,
|
|
2480
|
-
permissionActionsMap:
|
|
2480
|
+
permissionActionsMap: X,
|
|
2481
2481
|
selectedActionsMap: de,
|
|
2482
2482
|
coverSubject: ae,
|
|
2483
2483
|
coverSelectedActions: le,
|
|
2484
|
-
coverCoversAll:
|
|
2484
|
+
coverCoversAll: Ae
|
|
2485
2485
|
};
|
|
2486
2486
|
});
|
|
2487
2487
|
});
|
|
2488
2488
|
function i(_, O) {
|
|
2489
|
-
const P = d.value.find((z) => z.category === _), F = (P == null ? void 0 : P.options) ?? [],
|
|
2489
|
+
const P = d.value.find((z) => z.category === _), F = (P == null ? void 0 : P.options) ?? [], w = new Set(F.map((z) => z.value)), V = new Set(O), j = /* @__PURE__ */ new Map();
|
|
2490
2490
|
for (const z of e.value)
|
|
2491
|
-
|
|
2492
|
-
const Z = P != null && P.coverSubject ? j.get(P.coverSubject) : void 0,
|
|
2491
|
+
w.has(z.subject) && !z.inverted && j.set(z.subject, z.conditions);
|
|
2492
|
+
const Z = P != null && P.coverSubject ? j.get(P.coverSubject) : void 0, X = /* @__PURE__ */ new Set(), te = t.value.flatMap(
|
|
2493
2493
|
({ category: z, showByFeatureFlag: de, isCategoryCover: ve, ...he }) => {
|
|
2494
2494
|
const ae = he.subject;
|
|
2495
|
-
if (!V.has(ae) ||
|
|
2496
|
-
|
|
2495
|
+
if (!V.has(ae) || X.has(ae)) return [];
|
|
2496
|
+
X.add(ae);
|
|
2497
2497
|
let le;
|
|
2498
2498
|
return j.has(ae) ? le = j.get(ae) : P != null && P.coverSubject && ae !== P.coverSubject && (le = Z), [
|
|
2499
2499
|
{ ...he, ...le !== void 0 && { conditions: le } }
|
|
@@ -2501,19 +2501,19 @@ function ja(e, t, n, r) {
|
|
|
2501
2501
|
}
|
|
2502
2502
|
);
|
|
2503
2503
|
r("update:model-value", [
|
|
2504
|
-
...e.value.filter((z) => !
|
|
2504
|
+
...e.value.filter((z) => !w.has(z.subject)),
|
|
2505
2505
|
...te
|
|
2506
2506
|
]);
|
|
2507
2507
|
}
|
|
2508
2508
|
function b(_, O) {
|
|
2509
|
-
return
|
|
2509
|
+
return D(_, O) || m(_, O);
|
|
2510
2510
|
}
|
|
2511
2511
|
function E(_) {
|
|
2512
2512
|
return _.options.length > 0 && _.options.every((O) => b(_, O.value));
|
|
2513
2513
|
}
|
|
2514
|
-
function
|
|
2514
|
+
function N(_) {
|
|
2515
2515
|
return _.options.length === 0 || E(_) ? !1 : _.options.some(
|
|
2516
|
-
(O) => b(_, O.value) ||
|
|
2516
|
+
(O) => b(_, O.value) || k(_, O.value).length > 0
|
|
2517
2517
|
);
|
|
2518
2518
|
}
|
|
2519
2519
|
function T(_) {
|
|
@@ -2524,13 +2524,13 @@ function ja(e, t, n, r) {
|
|
|
2524
2524
|
const F = /* @__PURE__ */ new Map();
|
|
2525
2525
|
for (const Z of e.value)
|
|
2526
2526
|
O.has(Z.subject) && !Z.inverted && F.set(Z.subject, Z.conditions);
|
|
2527
|
-
const
|
|
2528
|
-
({ category: Z, showByFeatureFlag:
|
|
2527
|
+
const w = _.coverSubject ? F.get(_.coverSubject) : void 0, V = /* @__PURE__ */ new Set(), j = t.value.flatMap(
|
|
2528
|
+
({ category: Z, showByFeatureFlag: X, isCategoryCover: te, ...z }) => {
|
|
2529
2529
|
const de = z.subject;
|
|
2530
2530
|
if (!O.has(de) || V.has(de)) return [];
|
|
2531
2531
|
V.add(de);
|
|
2532
2532
|
let ve;
|
|
2533
|
-
return F.has(de) ? ve = F.get(de) : _.coverSubject && de !== _.coverSubject && (ve =
|
|
2533
|
+
return F.has(de) ? ve = F.get(de) : _.coverSubject && de !== _.coverSubject && (ve = w), [
|
|
2534
2534
|
{ ...z, ...ve !== void 0 && { conditions: ve } }
|
|
2535
2535
|
];
|
|
2536
2536
|
}
|
|
@@ -2538,18 +2538,18 @@ function ja(e, t, n, r) {
|
|
|
2538
2538
|
r("update:model-value", [...P, ...j]);
|
|
2539
2539
|
}
|
|
2540
2540
|
}
|
|
2541
|
-
function
|
|
2541
|
+
function D(_, O) {
|
|
2542
2542
|
const P = _.selectedActionsMap.get(O);
|
|
2543
2543
|
return P ? P.has("manage") : !1;
|
|
2544
2544
|
}
|
|
2545
|
-
function
|
|
2545
|
+
function k(_, O) {
|
|
2546
2546
|
const P = _.permissionActionsMap.get(O);
|
|
2547
|
-
return P ? P.filter((
|
|
2548
|
-
(
|
|
2547
|
+
return P ? P.filter((w) => w !== "manage").filter(
|
|
2548
|
+
(w) => L(_, O, w) || g(_, O, w)
|
|
2549
2549
|
) : [];
|
|
2550
2550
|
}
|
|
2551
|
-
function
|
|
2552
|
-
return m(_, O) ? !1 : !
|
|
2551
|
+
function R(_, O) {
|
|
2552
|
+
return m(_, O) ? !1 : !D(_, O) && k(_, O).length > 0;
|
|
2553
2553
|
}
|
|
2554
2554
|
function M(_, O) {
|
|
2555
2555
|
if (!_.coverSubject || O === _.coverSubject) return;
|
|
@@ -2563,14 +2563,14 @@ function ja(e, t, n, r) {
|
|
|
2563
2563
|
const F = t.value.find((z) => z.subject === O);
|
|
2564
2564
|
if (!F) return;
|
|
2565
2565
|
const {
|
|
2566
|
-
category:
|
|
2566
|
+
category: w,
|
|
2567
2567
|
showByFeatureFlag: V,
|
|
2568
2568
|
isCategoryCover: j,
|
|
2569
2569
|
...Z
|
|
2570
|
-
} = F,
|
|
2570
|
+
} = F, X = M(_, O), te = e.value.filter((z) => z.subject !== O);
|
|
2571
2571
|
te.push({
|
|
2572
2572
|
...Z,
|
|
2573
|
-
...
|
|
2573
|
+
...X !== void 0 && { conditions: X }
|
|
2574
2574
|
}), r("update:model-value", te);
|
|
2575
2575
|
} else
|
|
2576
2576
|
r(
|
|
@@ -2582,7 +2582,7 @@ function ja(e, t, n, r) {
|
|
|
2582
2582
|
const P = _.permissionActionsMap.get(O);
|
|
2583
2583
|
return P ? P.some((F) => F !== "manage") : !1;
|
|
2584
2584
|
}
|
|
2585
|
-
function
|
|
2585
|
+
function L(_, O, P) {
|
|
2586
2586
|
const F = _.selectedActionsMap.get(O);
|
|
2587
2587
|
return F ? F.has(P) : !1;
|
|
2588
2588
|
}
|
|
@@ -2597,17 +2597,17 @@ function ja(e, t, n, r) {
|
|
|
2597
2597
|
return F ? F.includes(P) : !1;
|
|
2598
2598
|
}
|
|
2599
2599
|
function v(_, O, P) {
|
|
2600
|
-
const F = [...e.value],
|
|
2600
|
+
const F = [...e.value], w = F.findIndex((j) => j.subject === _ && !j.inverted);
|
|
2601
2601
|
if (P)
|
|
2602
|
-
if (
|
|
2603
|
-
const j = { ...F[
|
|
2604
|
-
Z.add(O), j.actions = Array.from(Z), F[
|
|
2602
|
+
if (w >= 0) {
|
|
2603
|
+
const j = { ...F[w] }, Z = new Set(j.actions);
|
|
2604
|
+
Z.add(O), j.actions = Array.from(Z), F[w] = j;
|
|
2605
2605
|
} else {
|
|
2606
2606
|
const j = t.value.find((he) => he.subject === _);
|
|
2607
2607
|
if (!j) return;
|
|
2608
2608
|
const {
|
|
2609
2609
|
category: Z,
|
|
2610
|
-
showByFeatureFlag:
|
|
2610
|
+
showByFeatureFlag: X,
|
|
2611
2611
|
isCategoryCover: te,
|
|
2612
2612
|
...z
|
|
2613
2613
|
} = j, de = d.value.find(
|
|
@@ -2619,51 +2619,51 @@ function ja(e, t, n, r) {
|
|
|
2619
2619
|
...ve !== void 0 && { conditions: ve }
|
|
2620
2620
|
});
|
|
2621
2621
|
}
|
|
2622
|
-
else if (
|
|
2623
|
-
const j = { ...F[
|
|
2624
|
-
Z.length === 0 ? F.splice(
|
|
2622
|
+
else if (w >= 0) {
|
|
2623
|
+
const j = { ...F[w] }, Z = j.actions.filter((X) => X !== O);
|
|
2624
|
+
Z.length === 0 ? F.splice(w, 1) : (j.actions = Z, F[w] = j);
|
|
2625
2625
|
}
|
|
2626
2626
|
const V = t.value.find((j) => j.subject === _);
|
|
2627
|
-
V &&
|
|
2627
|
+
V && kn(F, _, V.actions), r("update:model-value", F);
|
|
2628
2628
|
}
|
|
2629
|
-
function
|
|
2629
|
+
function A(_, O) {
|
|
2630
2630
|
const P = _.options.filter(
|
|
2631
2631
|
(F) => I(_, F.value, O)
|
|
2632
2632
|
);
|
|
2633
2633
|
return P.length === 0 ? !1 : P.every(
|
|
2634
|
-
(F) =>
|
|
2634
|
+
(F) => L(_, F.value, O) || g(_, F.value, O)
|
|
2635
2635
|
);
|
|
2636
2636
|
}
|
|
2637
2637
|
function S(_, O) {
|
|
2638
2638
|
const P = _.options.filter(
|
|
2639
|
-
(
|
|
2639
|
+
(w) => I(_, w.value, O)
|
|
2640
2640
|
);
|
|
2641
2641
|
if (P.length === 0) return !1;
|
|
2642
2642
|
const F = P.filter(
|
|
2643
|
-
(
|
|
2643
|
+
(w) => L(_, w.value, O) || g(_, w.value, O)
|
|
2644
2644
|
).length;
|
|
2645
2645
|
return F > 0 && F < P.length;
|
|
2646
2646
|
}
|
|
2647
2647
|
function H(_, O, P) {
|
|
2648
2648
|
const F = [...e.value];
|
|
2649
|
-
for (const
|
|
2650
|
-
if (!I(_,
|
|
2651
|
-
const V =
|
|
2652
|
-
(
|
|
2649
|
+
for (const w of _.options) {
|
|
2650
|
+
if (!I(_, w.value, O)) continue;
|
|
2651
|
+
const V = w.value, j = F.findIndex(
|
|
2652
|
+
(X) => X.subject === V && !X.inverted
|
|
2653
2653
|
);
|
|
2654
2654
|
if (P)
|
|
2655
2655
|
if (j >= 0) {
|
|
2656
|
-
const
|
|
2657
|
-
te.add(O),
|
|
2656
|
+
const X = { ...F[j] }, te = new Set(X.actions);
|
|
2657
|
+
te.add(O), X.actions = Array.from(te), F[j] = X;
|
|
2658
2658
|
} else {
|
|
2659
|
-
const
|
|
2660
|
-
if (!
|
|
2659
|
+
const X = t.value.find((ae) => ae.subject === V);
|
|
2660
|
+
if (!X) continue;
|
|
2661
2661
|
const {
|
|
2662
2662
|
category: te,
|
|
2663
2663
|
showByFeatureFlag: z,
|
|
2664
2664
|
isCategoryCover: de,
|
|
2665
2665
|
...ve
|
|
2666
|
-
} =
|
|
2666
|
+
} = X, he = M(_, V);
|
|
2667
2667
|
F.push({
|
|
2668
2668
|
...ve,
|
|
2669
2669
|
actions: [O],
|
|
@@ -2671,11 +2671,11 @@ function ja(e, t, n, r) {
|
|
|
2671
2671
|
});
|
|
2672
2672
|
}
|
|
2673
2673
|
else if (j >= 0) {
|
|
2674
|
-
const
|
|
2675
|
-
te.length === 0 ? F.splice(j, 1) : (
|
|
2674
|
+
const X = { ...F[j] }, te = X.actions.filter((z) => z !== O);
|
|
2675
|
+
te.length === 0 ? F.splice(j, 1) : (X.actions = te, F[j] = X);
|
|
2676
2676
|
}
|
|
2677
|
-
const Z = t.value.find((
|
|
2678
|
-
Z &&
|
|
2677
|
+
const Z = t.value.find((X) => X.subject === V);
|
|
2678
|
+
Z && kn(F, V, Z.actions);
|
|
2679
2679
|
}
|
|
2680
2680
|
r("update:model-value", F);
|
|
2681
2681
|
}
|
|
@@ -2687,24 +2687,24 @@ function ja(e, t, n, r) {
|
|
|
2687
2687
|
categoryGroups: d,
|
|
2688
2688
|
toggleCategory: i,
|
|
2689
2689
|
isAllManageChecked: E,
|
|
2690
|
-
isAllManageIndeterminate:
|
|
2690
|
+
isAllManageIndeterminate: N,
|
|
2691
2691
|
toggleAllManage: T,
|
|
2692
|
-
isManageChecked:
|
|
2693
|
-
isManageIndeterminate:
|
|
2692
|
+
isManageChecked: D,
|
|
2693
|
+
isManageIndeterminate: R,
|
|
2694
2694
|
toggleManage: p,
|
|
2695
2695
|
hasNonManageActions: h,
|
|
2696
|
-
isActionChecked:
|
|
2696
|
+
isActionChecked: L,
|
|
2697
2697
|
isRowFullyCoveredByCover: m,
|
|
2698
2698
|
isActionCoveredByCover: g,
|
|
2699
2699
|
permissionDefinesAction: I,
|
|
2700
2700
|
toggleAction: v,
|
|
2701
|
-
isAllActionChecked:
|
|
2701
|
+
isAllActionChecked: A,
|
|
2702
2702
|
isAllActionIndeterminate: S,
|
|
2703
2703
|
toggleAllAction: H,
|
|
2704
2704
|
actionLabel: x
|
|
2705
2705
|
};
|
|
2706
2706
|
}
|
|
2707
|
-
const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Ga = ["onClick"], Wa = { class: "flex justify-center" }, Za = { class: "flex items-center min-w-0 gap-8" }, Ya = ["title", "onClick"],
|
|
2707
|
+
const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Ga = ["onClick"], Wa = { class: "flex justify-center" }, Za = { class: "flex items-center min-w-0 gap-8" }, Ya = ["title", "onClick"], Xa = { class: "flex justify-center" }, Ba = /* @__PURE__ */ Re({
|
|
2708
2708
|
__name: "BasePermission",
|
|
2709
2709
|
props: {
|
|
2710
2710
|
modelValue: {
|
|
@@ -2737,36 +2737,36 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
2737
2737
|
isAllManageIndeterminate: i,
|
|
2738
2738
|
toggleAllManage: b,
|
|
2739
2739
|
isManageChecked: E,
|
|
2740
|
-
isManageIndeterminate:
|
|
2740
|
+
isManageIndeterminate: N,
|
|
2741
2741
|
toggleManage: T,
|
|
2742
|
-
isActionChecked:
|
|
2743
|
-
isRowFullyCoveredByCover:
|
|
2744
|
-
isActionCoveredByCover:
|
|
2742
|
+
isActionChecked: D,
|
|
2743
|
+
isRowFullyCoveredByCover: k,
|
|
2744
|
+
isActionCoveredByCover: R,
|
|
2745
2745
|
permissionDefinesAction: M,
|
|
2746
2746
|
toggleAction: p,
|
|
2747
2747
|
isAllActionChecked: h,
|
|
2748
|
-
isAllActionIndeterminate:
|
|
2748
|
+
isAllActionIndeterminate: L,
|
|
2749
2749
|
toggleAllAction: m,
|
|
2750
2750
|
actionLabel: g
|
|
2751
2751
|
} = ja(
|
|
2752
2752
|
qt(n, "modelValue"),
|
|
2753
2753
|
o,
|
|
2754
2754
|
qt(n, "excludedSubjects"),
|
|
2755
|
-
(
|
|
2755
|
+
(A, S) => r("update:model-value", S)
|
|
2756
2756
|
);
|
|
2757
|
-
function I(
|
|
2758
|
-
const S =
|
|
2757
|
+
function I(A) {
|
|
2758
|
+
const S = A.selectedSubjects.length;
|
|
2759
2759
|
return S === 0 && n.layout !== "leading" ? "" : a("team.memberForm.permissions.allowedCount", { count: S });
|
|
2760
2760
|
}
|
|
2761
|
-
function v(
|
|
2762
|
-
return E(
|
|
2763
|
-
(H) => M(
|
|
2761
|
+
function v(A, S) {
|
|
2762
|
+
return E(A, S) || k(A, S) ? !0 : A.actionColumns.some(
|
|
2763
|
+
(H) => M(A, S, H) && (D(A, S, H) || R(A, S, H))
|
|
2764
2764
|
);
|
|
2765
2765
|
}
|
|
2766
|
-
return (
|
|
2767
|
-
const H =
|
|
2766
|
+
return (A, S) => {
|
|
2767
|
+
const H = De("FmCheckbox");
|
|
2768
2768
|
return $(), re("div", Ua, [
|
|
2769
|
-
($(!0), re(Me, null, Ee(
|
|
2769
|
+
($(!0), re(Me, null, Ee(B(f), (x) => ($(), Ne(Xt, {
|
|
2770
2770
|
key: x.category,
|
|
2771
2771
|
subtitle: I(x),
|
|
2772
2772
|
layout: e.layout,
|
|
@@ -2786,11 +2786,11 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
2786
2786
|
})
|
|
2787
2787
|
}, [
|
|
2788
2788
|
S[0] || (S[0] = ie("div", null, null, -1)),
|
|
2789
|
-
ie("div", Va, Oe(
|
|
2789
|
+
ie("div", Va, Oe(B(a)("team.memberForm.permissions.columnManage")), 1),
|
|
2790
2790
|
($(!0), re(Me, null, Ee(x.actionColumns, (_) => ($(), re("div", {
|
|
2791
2791
|
key: `header-${_}`,
|
|
2792
2792
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2793
|
-
}, Oe(
|
|
2793
|
+
}, Oe(B(g)(_)), 1))), 128))
|
|
2794
2794
|
], 4),
|
|
2795
2795
|
ie("div", {
|
|
2796
2796
|
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
@@ -2800,17 +2800,17 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
2800
2800
|
}, [
|
|
2801
2801
|
ie("div", {
|
|
2802
2802
|
class: "cursor-pointer font-semibold",
|
|
2803
|
-
onClick: (_) => !e.disable &&
|
|
2804
|
-
}, Oe(
|
|
2803
|
+
onClick: (_) => !e.disable && B(b)(x)
|
|
2804
|
+
}, Oe(B(a)("team.labels.all")), 9, Ga),
|
|
2805
2805
|
ie("div", Wa, [
|
|
2806
2806
|
oe(H, {
|
|
2807
|
-
"model-value":
|
|
2808
|
-
indeterminate:
|
|
2807
|
+
"model-value": B(d)(x),
|
|
2808
|
+
indeterminate: B(i)(x),
|
|
2809
2809
|
value: !0,
|
|
2810
2810
|
disabled: e.disable,
|
|
2811
2811
|
size: "sm",
|
|
2812
2812
|
dense: "",
|
|
2813
|
-
"onUpdate:modelValue": (_) =>
|
|
2813
|
+
"onUpdate:modelValue": (_) => B(b)(x)
|
|
2814
2814
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2815
2815
|
]),
|
|
2816
2816
|
($(!0), re(Me, null, Ee(x.actionColumns, (_) => ($(), re("div", {
|
|
@@ -2818,13 +2818,13 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
2818
2818
|
class: "flex justify-center"
|
|
2819
2819
|
}, [
|
|
2820
2820
|
oe(H, {
|
|
2821
|
-
"model-value":
|
|
2822
|
-
indeterminate:
|
|
2821
|
+
"model-value": B(h)(x, _),
|
|
2822
|
+
indeterminate: B(L)(x, _),
|
|
2823
2823
|
value: _,
|
|
2824
2824
|
disabled: e.disable,
|
|
2825
2825
|
size: "sm",
|
|
2826
2826
|
dense: "",
|
|
2827
|
-
"onUpdate:modelValue": (O) =>
|
|
2827
|
+
"onUpdate:modelValue": (O) => B(m)(x, _, O)
|
|
2828
2828
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2829
2829
|
]))), 128))
|
|
2830
2830
|
], 4),
|
|
@@ -2840,41 +2840,41 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
2840
2840
|
ie("span", {
|
|
2841
2841
|
class: "block truncate cursor-pointer",
|
|
2842
2842
|
title: _.label,
|
|
2843
|
-
onClick: (O) => !e.disable && !
|
|
2843
|
+
onClick: (O) => !e.disable && !B(k)(x, _.value) && B(T)(x, _.value, !B(E)(x, _.value))
|
|
2844
2844
|
}, Oe(_.label), 9, Ya),
|
|
2845
|
-
|
|
2845
|
+
Le(A.$slots, `checkbox-${_.value}-append`, {
|
|
2846
2846
|
option: _,
|
|
2847
2847
|
isEffectiveSelected: v(x, _.value),
|
|
2848
|
-
isCoveredByCover:
|
|
2848
|
+
isCoveredByCover: B(k)(x, _.value) || x.actionColumns.some((O) => B(R)(x, _.value, O))
|
|
2849
2849
|
}),
|
|
2850
|
-
|
|
2850
|
+
Le(A.$slots, `checkbox-${_.value}-icon`, {
|
|
2851
2851
|
option: _,
|
|
2852
2852
|
isEffectiveSelected: v(x, _.value),
|
|
2853
|
-
isCoveredByCover:
|
|
2853
|
+
isCoveredByCover: B(k)(x, _.value) || x.actionColumns.some((O) => B(R)(x, _.value, O))
|
|
2854
2854
|
})
|
|
2855
2855
|
]),
|
|
2856
|
-
ie("div",
|
|
2856
|
+
ie("div", Xa, [
|
|
2857
2857
|
oe(H, {
|
|
2858
|
-
"model-value":
|
|
2858
|
+
"model-value": B(E)(x, _.value) || B(k)(x, _.value),
|
|
2859
2859
|
value: _.value,
|
|
2860
|
-
disabled: e.disable ||
|
|
2861
|
-
indeterminate:
|
|
2860
|
+
disabled: e.disable || B(k)(x, _.value),
|
|
2861
|
+
indeterminate: B(N)(x, _.value),
|
|
2862
2862
|
size: "sm",
|
|
2863
|
-
"onUpdate:modelValue": (O) =>
|
|
2863
|
+
"onUpdate:modelValue": (O) => B(T)(x, _.value, O)
|
|
2864
2864
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2865
2865
|
]),
|
|
2866
2866
|
($(!0), re(Me, null, Ee(x.actionColumns, (O) => ($(), re("div", {
|
|
2867
2867
|
key: `${_.optionKey}-${O}`,
|
|
2868
2868
|
class: "flex justify-center"
|
|
2869
2869
|
}, [
|
|
2870
|
-
|
|
2870
|
+
B(M)(x, _.value, O) ? ($(), Ne(H, {
|
|
2871
2871
|
key: 0,
|
|
2872
|
-
"model-value":
|
|
2872
|
+
"model-value": B(D)(x, _.value, O) || B(R)(x, _.value, O),
|
|
2873
2873
|
value: O,
|
|
2874
|
-
disabled: e.disable ||
|
|
2874
|
+
disabled: e.disable || B(R)(x, _.value, O),
|
|
2875
2875
|
size: "sm",
|
|
2876
|
-
"onUpdate:modelValue": (P) =>
|
|
2877
|
-
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) :
|
|
2876
|
+
"onUpdate:modelValue": (P) => B(p)(_.value, O, P)
|
|
2877
|
+
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Ce("", !0)
|
|
2878
2878
|
]))), 128))
|
|
2879
2879
|
], 4))), 128))
|
|
2880
2880
|
])
|
|
@@ -2890,7 +2890,7 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
2890
2890
|
}, Ja = {
|
|
2891
2891
|
key: 0,
|
|
2892
2892
|
class: "q-mr-xs text-red col"
|
|
2893
|
-
}, Ka = { class: "form-input" }, za = /* @__PURE__ */
|
|
2893
|
+
}, Ka = { class: "form-input" }, za = /* @__PURE__ */ Re({
|
|
2894
2894
|
__name: "AppForm",
|
|
2895
2895
|
props: {
|
|
2896
2896
|
title: {
|
|
@@ -2909,24 +2909,24 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
2909
2909
|
setup(e) {
|
|
2910
2910
|
const t = e;
|
|
2911
2911
|
return (n, r) => ($(), re("div", Ha, [
|
|
2912
|
-
|
|
2912
|
+
Le(n.$slots, "top", {}, () => [
|
|
2913
2913
|
t.title ? ($(), re("div", $a, [
|
|
2914
2914
|
ie("div", null, [
|
|
2915
|
-
t.required ? ($(), re("span", Ja, "*")) :
|
|
2915
|
+
t.required ? ($(), re("span", Ja, "*")) : Ce("", !0),
|
|
2916
2916
|
_r(Oe(t.title), 1)
|
|
2917
2917
|
]),
|
|
2918
|
-
|
|
2919
|
-
])) :
|
|
2918
|
+
Le(n.$slots, "title-right")
|
|
2919
|
+
])) : Ce("", !0)
|
|
2920
2920
|
]),
|
|
2921
2921
|
ie("div", Ka, [
|
|
2922
|
-
|
|
2922
|
+
Le(n.$slots, "default")
|
|
2923
2923
|
])
|
|
2924
2924
|
]));
|
|
2925
2925
|
}
|
|
2926
2926
|
}), Qa = { class: "col flex items-center" }, qa = {
|
|
2927
2927
|
key: 1,
|
|
2928
2928
|
class: "q-pa-sm form-error-message text-error"
|
|
2929
|
-
}, ir = /* @__PURE__ */
|
|
2929
|
+
}, ir = /* @__PURE__ */ Re({
|
|
2930
2930
|
__name: "CheckboxInput",
|
|
2931
2931
|
props: {
|
|
2932
2932
|
options: {
|
|
@@ -2984,50 +2984,50 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
2984
2984
|
},
|
|
2985
2985
|
emits: ["update:model-value"],
|
|
2986
2986
|
setup(e, { emit: t }) {
|
|
2987
|
-
const n = e, r = t, { t: a } = Ke(), o = st(!1), f = pr(), d = K(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), i = `checkbox-${
|
|
2988
|
-
() => n.modelValue.filter((
|
|
2989
|
-
),
|
|
2987
|
+
const n = e, r = t, { t: a } = Ke(), o = st(!1), f = pr(), d = K(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), i = `checkbox-${Dr(6)}`, b = K(() => d.value !== !0), E = K(
|
|
2988
|
+
() => n.modelValue.filter((R) => n.options.some((M) => M.value === R))
|
|
2989
|
+
), N = K(
|
|
2990
2990
|
() => typeof n.showAllToggle == "boolean" ? a("team.labels.all") : n.showAllToggle
|
|
2991
2991
|
), T = K(() => n.options.length > 0 && n.options.length === E.value.length);
|
|
2992
|
-
function
|
|
2993
|
-
const
|
|
2992
|
+
function D() {
|
|
2993
|
+
const R = n.modelValue.filter((M) => !E.value.includes(M));
|
|
2994
2994
|
if (T.value === !0)
|
|
2995
|
-
r("update:model-value",
|
|
2995
|
+
r("update:model-value", R);
|
|
2996
2996
|
else {
|
|
2997
2997
|
const M = n.includeDisabledOptionsWhenSelectAll ? n.options.map((p) => p.value) : n.options.filter((p) => !p.disabled).map((p) => p.value);
|
|
2998
|
-
r("update:model-value", [...
|
|
2998
|
+
r("update:model-value", [...R, ...M]);
|
|
2999
2999
|
}
|
|
3000
3000
|
}
|
|
3001
|
-
function
|
|
3001
|
+
function k(R, M) {
|
|
3002
3002
|
let p = Yn(n.modelValue);
|
|
3003
|
-
M ? p.every((h) => h !==
|
|
3003
|
+
M ? p.every((h) => h !== R) && p.push(R) : p = p.filter((h) => h !== R), r("update:model-value", p);
|
|
3004
3004
|
}
|
|
3005
|
-
return (
|
|
3006
|
-
const p =
|
|
3007
|
-
return $(),
|
|
3005
|
+
return (R, M) => {
|
|
3006
|
+
const p = De("FmCheckbox");
|
|
3007
|
+
return $(), Ne(za, {
|
|
3008
3008
|
id: i,
|
|
3009
3009
|
title: e.title,
|
|
3010
3010
|
required: !1
|
|
3011
3011
|
}, {
|
|
3012
3012
|
top: ce(() => [
|
|
3013
|
-
|
|
3013
|
+
Le(R.$slots, "top")
|
|
3014
3014
|
]),
|
|
3015
3015
|
default: ce(() => [
|
|
3016
|
-
n.showAllToggle ? ($(),
|
|
3016
|
+
n.showAllToggle ? ($(), Ne(p, {
|
|
3017
3017
|
key: 0,
|
|
3018
3018
|
"model-value": T.value,
|
|
3019
3019
|
disabled: e.disable,
|
|
3020
|
-
label:
|
|
3020
|
+
label: N.value,
|
|
3021
3021
|
style: rt(`margin-bottom: ${n.gutter}px`),
|
|
3022
3022
|
size: "sm",
|
|
3023
3023
|
dense: "",
|
|
3024
|
-
value:
|
|
3025
|
-
"onUpdate:modelValue":
|
|
3026
|
-
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) :
|
|
3027
|
-
($(!0), re(Me, null, Ee(e.options, (h,
|
|
3024
|
+
value: N.value,
|
|
3025
|
+
"onUpdate:modelValue": D
|
|
3026
|
+
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Ce("", !0),
|
|
3027
|
+
($(!0), re(Me, null, Ee(e.options, (h, L) => ($(), re("div", {
|
|
3028
3028
|
key: h.value,
|
|
3029
|
-
style: rt(`margin-bottom: ${
|
|
3030
|
-
class: Ie(
|
|
3029
|
+
style: rt(`margin-bottom: ${L < e.options.length - 1 ? n.gutter : 0}px`),
|
|
3030
|
+
class: Ie(L < e.options.length - 1 ? "q-mb-sm" : "")
|
|
3031
3031
|
}, [
|
|
3032
3032
|
ie("div", {
|
|
3033
3033
|
class: Ie(["row justify-between", e.alignCenter ? "items-center" : "items-start"])
|
|
@@ -3039,43 +3039,43 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3039
3039
|
size: "sm",
|
|
3040
3040
|
label: h.label,
|
|
3041
3041
|
value: h.label,
|
|
3042
|
-
"onUpdate:modelValue": (m) =>
|
|
3042
|
+
"onUpdate:modelValue": (m) => k(h.value, m)
|
|
3043
3043
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
3044
|
-
|
|
3044
|
+
Le(R.$slots, `checkbox-${h.key || h.value}-append`, {
|
|
3045
3045
|
option: h,
|
|
3046
3046
|
selected: e.modelValue.includes(h.value)
|
|
3047
3047
|
})
|
|
3048
3048
|
]),
|
|
3049
|
-
|
|
3049
|
+
B(f)[`checkbox-${h.key || h.value}-end`] && (e.modelValue.includes(h.value) || e.falsyShowSlot) ? ($(), re("div", {
|
|
3050
3050
|
key: 0,
|
|
3051
3051
|
class: Ie([{ "q-checkbox disabled": e.disable || h.disabled }, "col"])
|
|
3052
3052
|
}, [
|
|
3053
|
-
|
|
3053
|
+
Le(R.$slots, `checkbox-${h.key || h.value}-end`, {
|
|
3054
3054
|
option: h,
|
|
3055
3055
|
value: e.modelValue.includes(h.value),
|
|
3056
3056
|
disable: e.disable || h.disabled
|
|
3057
3057
|
})
|
|
3058
|
-
], 2)) :
|
|
3058
|
+
], 2)) : Ce("", !0)
|
|
3059
3059
|
], 2),
|
|
3060
|
-
|
|
3060
|
+
B(f)[`checkbox-${h.key || h.value}-bottom`] && (e.modelValue.includes(h.value) || e.falsyShowSlot) ? ($(), re("div", {
|
|
3061
3061
|
key: 0,
|
|
3062
3062
|
class: Ie(["q-mt-sm", { "q-checkbox disabled": e.disable || h.disabled }]),
|
|
3063
3063
|
style: rt(`margin-left: ${e.bottomSlotIndent}`)
|
|
3064
3064
|
}, [
|
|
3065
|
-
|
|
3065
|
+
Le(R.$slots, `checkbox-${h.key || h.value}-bottom`, {
|
|
3066
3066
|
option: h,
|
|
3067
3067
|
disable: e.disable || h.disabled,
|
|
3068
3068
|
value: e.modelValue.includes(h.value)
|
|
3069
3069
|
})
|
|
3070
|
-
], 6)) :
|
|
3070
|
+
], 6)) : Ce("", !0)
|
|
3071
3071
|
], 6))), 128)),
|
|
3072
|
-
o.value && b.value ? ($(), re("div", qa, Oe(d.value), 1)) :
|
|
3072
|
+
o.value && b.value ? ($(), re("div", qa, Oe(d.value), 1)) : Ce("", !0)
|
|
3073
3073
|
]),
|
|
3074
3074
|
_: 3
|
|
3075
3075
|
}, 8, ["title"]);
|
|
3076
3076
|
};
|
|
3077
3077
|
}
|
|
3078
|
-
}), ht = "includedFuture",
|
|
3078
|
+
}), ht = "includedFuture", Dn = /* @__PURE__ */ Re({
|
|
3079
3079
|
__name: "ConditionPermission",
|
|
3080
3080
|
props: {
|
|
3081
3081
|
modelValue: {
|
|
@@ -3114,24 +3114,24 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3114
3114
|
)
|
|
3115
3115
|
]), f = K(() => n.modelValue ? n.modelValue : [ht, ...n.options.map((E) => E.value)]), d = K(() => {
|
|
3116
3116
|
if (n.layout === "leading") {
|
|
3117
|
-
const
|
|
3118
|
-
return
|
|
3117
|
+
const N = n.modelValue ? n.options.filter((T) => n.modelValue.includes(T.value)).map((T) => T.label) : null;
|
|
3118
|
+
return Xn(N, {
|
|
3119
3119
|
all: a("team.labels.all"),
|
|
3120
3120
|
none: a("team.labels.none"),
|
|
3121
3121
|
more: (T) => a("team.labels.more", { count: T })
|
|
3122
3122
|
});
|
|
3123
3123
|
}
|
|
3124
|
-
const E = f.value.filter((
|
|
3124
|
+
const E = f.value.filter((N) => N !== ht).length;
|
|
3125
3125
|
return E === 0 ? "" : a("team.memberForm.permissions.allowedCount", { count: E });
|
|
3126
3126
|
});
|
|
3127
3127
|
function i(E) {
|
|
3128
|
-
const
|
|
3129
|
-
r("update:model-value",
|
|
3128
|
+
const N = E.length === o.value.length;
|
|
3129
|
+
r("update:model-value", N ? null : E.filter((T) => T !== ht));
|
|
3130
3130
|
}
|
|
3131
3131
|
const b = st("");
|
|
3132
|
-
return (E,
|
|
3133
|
-
const T =
|
|
3134
|
-
return $(),
|
|
3132
|
+
return (E, N) => {
|
|
3133
|
+
const T = De("fm-search");
|
|
3134
|
+
return $(), Ne(Xt, {
|
|
3135
3135
|
subtitle: d.value,
|
|
3136
3136
|
layout: e.layout,
|
|
3137
3137
|
"initially-collapsed": e.layout === "leading"
|
|
@@ -3141,16 +3141,16 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3141
3141
|
class: Ie(
|
|
3142
3142
|
e.layout === "leading" ? "text-[18px] font-semibold leading-[24px] tracking-[-0.27px]" : "fm-typo-en-title-sm-600"
|
|
3143
3143
|
)
|
|
3144
|
-
}, Oe(
|
|
3144
|
+
}, Oe(B(a)("team.memberForm.permissions.manageable", { context: e.context })), 3)
|
|
3145
3145
|
]),
|
|
3146
3146
|
default: ce(() => [
|
|
3147
|
-
e.options.length > 1 ? ($(),
|
|
3147
|
+
e.options.length > 1 ? ($(), Ne(T, {
|
|
3148
3148
|
key: 0,
|
|
3149
3149
|
modelValue: b.value,
|
|
3150
|
-
"onUpdate:modelValue":
|
|
3150
|
+
"onUpdate:modelValue": N[0] || (N[0] = (D) => b.value = D),
|
|
3151
3151
|
class: "mt-16",
|
|
3152
|
-
placeholder:
|
|
3153
|
-
}, null, 8, ["modelValue", "placeholder"])) :
|
|
3152
|
+
placeholder: B(a)("team.memberForm.permissions.search", { context: e.context })
|
|
3153
|
+
}, null, 8, ["modelValue", "placeholder"])) : Ce("", !0),
|
|
3154
3154
|
oe(ir, {
|
|
3155
3155
|
"model-value": f.value,
|
|
3156
3156
|
options: o.value,
|
|
@@ -3162,10 +3162,10 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3162
3162
|
class: "mt-16",
|
|
3163
3163
|
"onUpdate:modelValue": i
|
|
3164
3164
|
}, tt({ _: 2 }, [
|
|
3165
|
-
Ee(o.value, (
|
|
3166
|
-
name: `checkbox-${
|
|
3167
|
-
fn: ce(({ option:
|
|
3168
|
-
|
|
3165
|
+
Ee(o.value, (D) => ({
|
|
3166
|
+
name: `checkbox-${D.value}-append`,
|
|
3167
|
+
fn: ce(({ option: k }) => [
|
|
3168
|
+
Le(E.$slots, `checkbox-${D.value}-append`, { option: k })
|
|
3169
3169
|
])
|
|
3170
3170
|
}))
|
|
3171
3171
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3174,7 +3174,7 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3174
3174
|
}, 8, ["subtitle", "layout", "initially-collapsed"]);
|
|
3175
3175
|
};
|
|
3176
3176
|
}
|
|
3177
|
-
}), bt = "includedNewRole", eo = /* @__PURE__ */
|
|
3177
|
+
}), bt = "includedNewRole", eo = /* @__PURE__ */ Re({
|
|
3178
3178
|
__name: "PosRolePermission",
|
|
3179
3179
|
props: {
|
|
3180
3180
|
modelValue: {
|
|
@@ -3212,16 +3212,16 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3212
3212
|
...n.roles.map((E) => ({
|
|
3213
3213
|
label: E.name,
|
|
3214
3214
|
value: E._id,
|
|
3215
|
-
disabled: !!b && E.restaurants.every(({ id:
|
|
3215
|
+
disabled: !!b && E.restaurants.every(({ id: N }) => !b.includes(N))
|
|
3216
3216
|
}))
|
|
3217
3217
|
];
|
|
3218
3218
|
}), f = K(() => n.modelValue ? n.modelValue : [bt, ...n.roles.map((b) => b._id)]), d = K(() => {
|
|
3219
3219
|
if (n.layout === "leading") {
|
|
3220
|
-
const E = n.modelValue ? n.roles.filter((
|
|
3221
|
-
return
|
|
3220
|
+
const E = n.modelValue ? n.roles.filter((N) => n.modelValue.includes(N._id)).map((N) => N.name) : null;
|
|
3221
|
+
return Xn(E, {
|
|
3222
3222
|
all: a("team.labels.all"),
|
|
3223
3223
|
none: a("team.labels.none"),
|
|
3224
|
-
more: (
|
|
3224
|
+
more: (N) => a("team.labels.more", { count: N })
|
|
3225
3225
|
});
|
|
3226
3226
|
}
|
|
3227
3227
|
const b = f.value.filter((E) => E !== bt).length;
|
|
@@ -3229,9 +3229,9 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3229
3229
|
});
|
|
3230
3230
|
function i(b) {
|
|
3231
3231
|
const E = b.length === o.value.length;
|
|
3232
|
-
r("update:model-value", E ? null : b.filter((
|
|
3232
|
+
r("update:model-value", E ? null : b.filter((N) => N !== bt));
|
|
3233
3233
|
}
|
|
3234
|
-
return (b, E) => ($(),
|
|
3234
|
+
return (b, E) => ($(), Ne(Xt, {
|
|
3235
3235
|
subtitle: d.value,
|
|
3236
3236
|
layout: e.layout,
|
|
3237
3237
|
"initially-collapsed": e.layout === "leading"
|
|
@@ -3241,7 +3241,7 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3241
3241
|
class: Ie(
|
|
3242
3242
|
e.layout === "leading" ? "text-[18px] font-semibold leading-[24px] tracking-[-0.27px]" : "fm-typo-en-title-sm-600"
|
|
3243
3243
|
)
|
|
3244
|
-
}, Oe(
|
|
3244
|
+
}, Oe(B(a)("team.memberForm.permissions.roles")), 3)
|
|
3245
3245
|
]),
|
|
3246
3246
|
default: ce(() => [
|
|
3247
3247
|
oe(ir, {
|
|
@@ -3254,10 +3254,10 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3254
3254
|
class: "mt-16",
|
|
3255
3255
|
"onUpdate:modelValue": i
|
|
3256
3256
|
}, tt({ _: 2 }, [
|
|
3257
|
-
Ee(o.value, (
|
|
3258
|
-
name: `checkbox-${
|
|
3257
|
+
Ee(o.value, (N) => ({
|
|
3258
|
+
name: `checkbox-${N.value}-append`,
|
|
3259
3259
|
fn: ce(({ option: T }) => [
|
|
3260
|
-
|
|
3260
|
+
Le(b.$slots, `checkbox-${N.value}-append`, { option: T })
|
|
3261
3261
|
])
|
|
3262
3262
|
}))
|
|
3263
3263
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3275,7 +3275,7 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3275
3275
|
}, ro = {
|
|
3276
3276
|
key: 0,
|
|
3277
3277
|
class: "ml-32"
|
|
3278
|
-
},
|
|
3278
|
+
}, wn = /* @__PURE__ */ Re({
|
|
3279
3279
|
__name: "PortalConditionForm",
|
|
3280
3280
|
props: {
|
|
3281
3281
|
entry: {},
|
|
@@ -3294,8 +3294,8 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3294
3294
|
setup(e, { emit: t }) {
|
|
3295
3295
|
const n = t, { t: r } = Ke();
|
|
3296
3296
|
return (a, o) => {
|
|
3297
|
-
const f =
|
|
3298
|
-
return $(),
|
|
3297
|
+
const f = De("FmRadio"), d = De("FmRadioGroup");
|
|
3298
|
+
return $(), Ne(Lr, {
|
|
3299
3299
|
title: e.title,
|
|
3300
3300
|
builders: e.builders,
|
|
3301
3301
|
"form-value-for": e.formValueFor,
|
|
@@ -3316,18 +3316,18 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3316
3316
|
ie("div", null, [
|
|
3317
3317
|
oe(f, {
|
|
3318
3318
|
value: "inherit",
|
|
3319
|
-
label:
|
|
3319
|
+
label: B(r)("team.memberForm.permissions.conditionCover.inherit", {
|
|
3320
3320
|
cover: e.coverOverride.coverLabel(e.subject)
|
|
3321
3321
|
})
|
|
3322
3322
|
}, null, 8, ["label"]),
|
|
3323
|
-
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? ($(), re("p", no, " (" + Oe(
|
|
3323
|
+
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? ($(), re("p", no, " (" + Oe(B(r)(
|
|
3324
3324
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).labelKey,
|
|
3325
3325
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).params ?? {}
|
|
3326
|
-
)) + ") ", 1)) :
|
|
3326
|
+
)) + ") ", 1)) : Ce("", !0)
|
|
3327
3327
|
]),
|
|
3328
3328
|
oe(f, {
|
|
3329
3329
|
value: "custom",
|
|
3330
|
-
label:
|
|
3330
|
+
label: B(r)("team.memberForm.permissions.conditionCover.custom")
|
|
3331
3331
|
}, null, 8, ["label"])
|
|
3332
3332
|
]),
|
|
3333
3333
|
_: 2
|
|
@@ -3339,8 +3339,8 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3339
3339
|
disable: e.disable,
|
|
3340
3340
|
"onUpdate:modelValue": (b) => n("update-form", { builder: i, form: b })
|
|
3341
3341
|
}, null, 8, ["builder", "model-value", "disable", "onUpdate:modelValue"])
|
|
3342
|
-
])) :
|
|
3343
|
-
])) : ($(),
|
|
3342
|
+
])) : Ce("", !0)
|
|
3343
|
+
])) : ($(), Ne(nn, {
|
|
3344
3344
|
key: 1,
|
|
3345
3345
|
builder: i,
|
|
3346
3346
|
"model-value": e.formValueFor(i),
|
|
@@ -3354,7 +3354,7 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3354
3354
|
}
|
|
3355
3355
|
}), so = {
|
|
3356
3356
|
async readWarehouses() {
|
|
3357
|
-
return
|
|
3357
|
+
return kr(await Mr().get("/warehouses"));
|
|
3358
3358
|
}
|
|
3359
3359
|
};
|
|
3360
3360
|
function Fn(e, t) {
|
|
@@ -3390,28 +3390,28 @@ function ao(e, t, n, r) {
|
|
|
3390
3390
|
if (d = d.filter((E) => !(E.subject === i && E.inverted)), !b && !f.has(i)) {
|
|
3391
3391
|
const E = t.find(
|
|
3392
3392
|
(T) => T.subject === i && !T.inverted
|
|
3393
|
-
),
|
|
3394
|
-
|
|
3393
|
+
), N = r(i);
|
|
3394
|
+
N && E && d.push(jn(N, E.actions, E.conditions));
|
|
3395
3395
|
}
|
|
3396
3396
|
}
|
|
3397
3397
|
for (const i of o) {
|
|
3398
3398
|
if (!a.has(i)) continue;
|
|
3399
|
-
const b = e.find((
|
|
3399
|
+
const b = e.find((k) => k.subject === i && !k.inverted), E = t.find((k) => k.subject === i && !k.inverted);
|
|
3400
3400
|
if (!b || !E) continue;
|
|
3401
|
-
const
|
|
3402
|
-
if (
|
|
3401
|
+
const N = new Set(b.actions), T = new Set(E.actions);
|
|
3402
|
+
if (N.size === T.size && [...N].every((k) => T.has(k)))
|
|
3403
3403
|
continue;
|
|
3404
|
-
const
|
|
3405
|
-
if (
|
|
3406
|
-
d[
|
|
3407
|
-
...d[
|
|
3404
|
+
const D = d.findIndex((k) => k.subject === i && !k.inverted);
|
|
3405
|
+
if (D >= 0)
|
|
3406
|
+
d[D] = {
|
|
3407
|
+
...d[D],
|
|
3408
3408
|
actions: Array.from(T)
|
|
3409
3409
|
};
|
|
3410
3410
|
else {
|
|
3411
|
-
const
|
|
3412
|
-
|
|
3411
|
+
const k = r(i);
|
|
3412
|
+
k && d.push(jn(k, Array.from(T)));
|
|
3413
3413
|
}
|
|
3414
|
-
|
|
3414
|
+
N.has("manage") && !T.has("manage") && Fn(d, i) && (d = Pn(d, i)), !N.has("manage") && T.has("manage") && (d = d.filter((k) => !(k.subject === i && k.inverted)));
|
|
3415
3415
|
}
|
|
3416
3416
|
return d;
|
|
3417
3417
|
}
|
|
@@ -3440,7 +3440,7 @@ function io(e, t) {
|
|
|
3440
3440
|
function gt(e, t) {
|
|
3441
3441
|
return `${e}::${t.builderKey}`;
|
|
3442
3442
|
}
|
|
3443
|
-
function
|
|
3443
|
+
function Xe(e) {
|
|
3444
3444
|
try {
|
|
3445
3445
|
return e.conditions ? JSON.parse(e.conditions) : void 0;
|
|
3446
3446
|
} catch {
|
|
@@ -3450,18 +3450,18 @@ function Be(e) {
|
|
|
3450
3450
|
function co(e, t) {
|
|
3451
3451
|
return e.find((n) => !n.inverted && n.subject === t);
|
|
3452
3452
|
}
|
|
3453
|
-
function
|
|
3453
|
+
function kt(e, t) {
|
|
3454
3454
|
const n = new Set(e.actions);
|
|
3455
3455
|
return n.has(Ye.Action.manage) ? !0 : t.actions.every((r) => n.has(r));
|
|
3456
3456
|
}
|
|
3457
3457
|
function Zt(e, t) {
|
|
3458
|
-
const n =
|
|
3459
|
-
return
|
|
3458
|
+
const n = Xe(e);
|
|
3459
|
+
return Dt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3460
3460
|
}
|
|
3461
3461
|
function Un(e, t, n) {
|
|
3462
3462
|
return {
|
|
3463
3463
|
...Zt(e, n),
|
|
3464
|
-
...nt(
|
|
3464
|
+
...nt(Xe(t), n)
|
|
3465
3465
|
};
|
|
3466
3466
|
}
|
|
3467
3467
|
function uo(e, t, n) {
|
|
@@ -3481,11 +3481,11 @@ function uo(e, t, n) {
|
|
|
3481
3481
|
return co(e.value, m);
|
|
3482
3482
|
}
|
|
3483
3483
|
function i(m, g) {
|
|
3484
|
-
return nt(
|
|
3484
|
+
return nt(Xe(m), g);
|
|
3485
3485
|
}
|
|
3486
3486
|
function b(m, g) {
|
|
3487
|
-
var
|
|
3488
|
-
if (!(((
|
|
3487
|
+
var A;
|
|
3488
|
+
if (!(((A = g.appliesToActions) == null ? void 0 : A.call(g, m.actions)) ?? !0)) return !1;
|
|
3489
3489
|
const I = a(m.subject);
|
|
3490
3490
|
if (!I) return !1;
|
|
3491
3491
|
const v = d(I);
|
|
@@ -3494,161 +3494,161 @@ function uo(e, t, n) {
|
|
|
3494
3494
|
function E(m, g) {
|
|
3495
3495
|
if (!b(m, g) || r.value.has(gt(m.subject, g))) return "custom";
|
|
3496
3496
|
if (m.index === null) return "inherit";
|
|
3497
|
-
const I = e.value[m.index], v = a(m.subject),
|
|
3498
|
-
if (I &&
|
|
3499
|
-
const S = nt(
|
|
3497
|
+
const I = e.value[m.index], v = a(m.subject), A = v ? d(v) : void 0;
|
|
3498
|
+
if (I && A) {
|
|
3499
|
+
const S = nt(Xe(I), g), H = i(A, g);
|
|
3500
3500
|
if (JSON.stringify(S) === JSON.stringify(H)) return "inherit";
|
|
3501
3501
|
}
|
|
3502
3502
|
return "custom";
|
|
3503
3503
|
}
|
|
3504
|
-
function
|
|
3504
|
+
function N(m, g, I) {
|
|
3505
3505
|
if (!g.summarizeForm) return;
|
|
3506
3506
|
const v = a(m.subject);
|
|
3507
3507
|
if (!v) return;
|
|
3508
|
-
const
|
|
3509
|
-
if (!
|
|
3510
|
-
const S = g.fromCondition(i(
|
|
3508
|
+
const A = d(v);
|
|
3509
|
+
if (!A) return;
|
|
3510
|
+
const S = g.fromCondition(i(A, g));
|
|
3511
3511
|
return g.summarizeForm(S, { timeZone: I });
|
|
3512
3512
|
}
|
|
3513
3513
|
function T(m, g) {
|
|
3514
3514
|
if (m.index === null) return;
|
|
3515
|
-
const I = [...e.value], v = { ...I[m.index] },
|
|
3515
|
+
const I = [...e.value], v = { ...I[m.index] }, A = Zt(v, g), S = Object.keys(A).length === 0, H = a(m.subject), x = H ? d(H) : void 0, _ = x ? kt(x, v) : !1;
|
|
3516
3516
|
if (S && _)
|
|
3517
3517
|
I.splice(m.index, 1);
|
|
3518
3518
|
else if (x) {
|
|
3519
3519
|
const O = Un(v, x, g);
|
|
3520
3520
|
Object.keys(O).length === 0 ? delete v.conditions : v.conditions = JSON.stringify(O), I[m.index] = v;
|
|
3521
3521
|
} else
|
|
3522
|
-
S ? delete v.conditions : v.conditions = JSON.stringify(
|
|
3522
|
+
S ? delete v.conditions : v.conditions = JSON.stringify(A), I[m.index] = v;
|
|
3523
3523
|
n(I);
|
|
3524
3524
|
}
|
|
3525
|
-
function
|
|
3525
|
+
function D(m, g, I) {
|
|
3526
3526
|
const v = gt(m.subject, g);
|
|
3527
3527
|
if (I === "inherit") {
|
|
3528
3528
|
const S = new Set(r.value);
|
|
3529
3529
|
S.delete(v), r.value = S, T(m, g);
|
|
3530
3530
|
return;
|
|
3531
3531
|
}
|
|
3532
|
-
const
|
|
3533
|
-
|
|
3532
|
+
const A = new Set(r.value);
|
|
3533
|
+
A.add(v), r.value = A, m.index === null && h(m, g, g.fromCondition(void 0), {
|
|
3534
3534
|
forceCreateRule: !0
|
|
3535
3535
|
});
|
|
3536
3536
|
}
|
|
3537
|
-
function
|
|
3537
|
+
function k(m) {
|
|
3538
3538
|
const g = a(m);
|
|
3539
3539
|
if (!g) return [];
|
|
3540
3540
|
const I = d(g);
|
|
3541
3541
|
return (I == null ? void 0 : I.actions) ?? [];
|
|
3542
3542
|
}
|
|
3543
|
-
function
|
|
3543
|
+
function R(m, g) {
|
|
3544
3544
|
return e.value.filter((I) => {
|
|
3545
3545
|
if (I.inverted) return !1;
|
|
3546
3546
|
const v = I.subject;
|
|
3547
|
-
return v === m || a(v) !== m ? !1 : r.value.has(gt(v, g)) ? !0 : Object.keys(nt(
|
|
3547
|
+
return v === m || a(v) !== m ? !1 : r.value.has(gt(v, g)) ? !0 : Object.keys(nt(Xe(I), g)).length > 0;
|
|
3548
3548
|
});
|
|
3549
3549
|
}
|
|
3550
3550
|
function M(m, g) {
|
|
3551
3551
|
const I = `::${g.builderKey}`, v = new Set(r.value);
|
|
3552
|
-
for (const
|
|
3553
|
-
if (!
|
|
3554
|
-
const S =
|
|
3555
|
-
a(S) === m && v.delete(
|
|
3552
|
+
for (const A of v) {
|
|
3553
|
+
if (!A.endsWith(I)) continue;
|
|
3554
|
+
const S = A.slice(0, -I.length);
|
|
3555
|
+
a(S) === m && v.delete(A);
|
|
3556
3556
|
}
|
|
3557
3557
|
r.value = v;
|
|
3558
3558
|
}
|
|
3559
3559
|
function p(m, g, I) {
|
|
3560
3560
|
const v = g.subject;
|
|
3561
|
-
return m.reduce((
|
|
3561
|
+
return m.reduce((A, S) => {
|
|
3562
3562
|
if (S.inverted)
|
|
3563
|
-
return
|
|
3563
|
+
return A.push(S), A;
|
|
3564
3564
|
const H = S.subject;
|
|
3565
3565
|
if (H === v || a(H) !== v)
|
|
3566
|
-
return
|
|
3567
|
-
if (
|
|
3568
|
-
return
|
|
3566
|
+
return A.push(S), A;
|
|
3567
|
+
if (kt(g, S) && Object.keys(Zt(S, I)).length === 0)
|
|
3568
|
+
return A;
|
|
3569
3569
|
const _ = Un(S, g, I);
|
|
3570
3570
|
if (Object.keys(_).length === 0) {
|
|
3571
3571
|
const { conditions: O, ...P } = S;
|
|
3572
|
-
|
|
3572
|
+
A.push(P);
|
|
3573
3573
|
} else
|
|
3574
|
-
|
|
3575
|
-
return
|
|
3574
|
+
A.push({ ...S, conditions: JSON.stringify(_) });
|
|
3575
|
+
return A;
|
|
3576
3576
|
}, []);
|
|
3577
3577
|
}
|
|
3578
3578
|
function h(m, g, I, v = {}) {
|
|
3579
3579
|
var F;
|
|
3580
|
-
const
|
|
3580
|
+
const A = [...e.value];
|
|
3581
3581
|
let S = m.index;
|
|
3582
3582
|
const H = g.toCondition(I), x = Object.keys(H).length > 0;
|
|
3583
3583
|
if (S === null && !x && !v.forceCreateRule) return;
|
|
3584
3584
|
if (S === null) {
|
|
3585
|
-
const
|
|
3586
|
-
if (
|
|
3587
|
-
S =
|
|
3585
|
+
const w = A.findIndex((V) => !V.inverted && V.subject === m.subject);
|
|
3586
|
+
if (w !== -1)
|
|
3587
|
+
S = w;
|
|
3588
3588
|
else {
|
|
3589
3589
|
const V = t.value.find((z) => z.subject === m.subject);
|
|
3590
3590
|
if (!V) return;
|
|
3591
3591
|
const {
|
|
3592
3592
|
category: j,
|
|
3593
3593
|
showByFeatureFlag: Z,
|
|
3594
|
-
isCategoryCover:
|
|
3594
|
+
isCategoryCover: X,
|
|
3595
3595
|
...te
|
|
3596
3596
|
} = V;
|
|
3597
|
-
|
|
3597
|
+
A.push({
|
|
3598
3598
|
...te,
|
|
3599
3599
|
actions: m.actions.length > 0 ? m.actions : te.actions
|
|
3600
|
-
}), S =
|
|
3600
|
+
}), S = A.length - 1;
|
|
3601
3601
|
}
|
|
3602
3602
|
}
|
|
3603
|
-
const _ = { ...
|
|
3603
|
+
const _ = { ...A[S] };
|
|
3604
3604
|
_.actions = [
|
|
3605
3605
|
.../* @__PURE__ */ new Set([..._.actions, ...m.actions])
|
|
3606
3606
|
];
|
|
3607
|
-
const O =
|
|
3608
|
-
if (Object.keys(P).length === 0 ? delete _.conditions : _.conditions = JSON.stringify(P),
|
|
3609
|
-
const
|
|
3607
|
+
const O = Xe(_), P = Dt(O, [{ builder: g, formValue: I }]);
|
|
3608
|
+
if (Object.keys(P).length === 0 ? delete _.conditions : _.conditions = JSON.stringify(P), A[S] = _, tn(m.subject, t.value)) {
|
|
3609
|
+
const w = R(m.subject, g), V = () => {
|
|
3610
3610
|
var Z;
|
|
3611
|
-
M(m.subject, g), n(p(
|
|
3611
|
+
M(m.subject, g), n(p(A, _, g)), (Z = v.afterCommit) == null || Z.call(v);
|
|
3612
3612
|
}, j = () => {
|
|
3613
3613
|
var Z;
|
|
3614
|
-
n(
|
|
3614
|
+
n(A), (Z = v.afterCommit) == null || Z.call(v);
|
|
3615
3615
|
};
|
|
3616
|
-
if (
|
|
3616
|
+
if (w.length === 0) {
|
|
3617
3617
|
V();
|
|
3618
3618
|
return;
|
|
3619
3619
|
}
|
|
3620
3620
|
v.onOverridesConflict ? v.onOverridesConflict({ override: V, keep: j }) : j();
|
|
3621
3621
|
return;
|
|
3622
3622
|
}
|
|
3623
|
-
n(
|
|
3623
|
+
n(A), (F = v.afterCommit) == null || F.call(v);
|
|
3624
3624
|
}
|
|
3625
|
-
function
|
|
3625
|
+
function L(m, g, I = {}) {
|
|
3626
3626
|
if (g.length === 0) return;
|
|
3627
3627
|
const v = [...e.value];
|
|
3628
|
-
let
|
|
3629
|
-
for (const
|
|
3630
|
-
const V =
|
|
3631
|
-
H =
|
|
3628
|
+
let A = v.findIndex((w) => !w.inverted && w.subject === m.subject), S = A === -1 ? void 0 : { ...v[A] }, H = Xe(S ?? {}) ?? {};
|
|
3629
|
+
for (const w of g) {
|
|
3630
|
+
const V = w.mode === "inherit" ? w.builder.fromCondition(void 0) : w.form;
|
|
3631
|
+
H = Dt(H, [{ builder: w.builder, formValue: V }]);
|
|
3632
3632
|
}
|
|
3633
|
-
const x = g.some((
|
|
3633
|
+
const x = g.some((w) => w.mode === "custom");
|
|
3634
3634
|
if (!S && (Object.keys(H).length > 0 || x)) {
|
|
3635
|
-
const
|
|
3636
|
-
if (!
|
|
3635
|
+
const w = t.value.find((te) => te.subject === m.subject);
|
|
3636
|
+
if (!w) return;
|
|
3637
3637
|
const {
|
|
3638
3638
|
category: V,
|
|
3639
3639
|
showByFeatureFlag: j,
|
|
3640
3640
|
isCategoryCover: Z,
|
|
3641
|
-
...
|
|
3642
|
-
} =
|
|
3641
|
+
...X
|
|
3642
|
+
} = w;
|
|
3643
3643
|
S = {
|
|
3644
|
-
...
|
|
3645
|
-
actions: m.actions.length > 0 ? m.actions :
|
|
3646
|
-
}, v.push(S),
|
|
3644
|
+
...X,
|
|
3645
|
+
actions: m.actions.length > 0 ? m.actions : X.actions
|
|
3646
|
+
}, v.push(S), A = v.length - 1;
|
|
3647
3647
|
}
|
|
3648
3648
|
if (S) {
|
|
3649
|
-
const
|
|
3650
|
-
if (!x && Object.keys(H).length === 0 && !!V &&
|
|
3651
|
-
v.splice(
|
|
3649
|
+
const w = a(m.subject), V = w ? d(w) : void 0;
|
|
3650
|
+
if (!x && Object.keys(H).length === 0 && !!V && kt(V, S))
|
|
3651
|
+
v.splice(A, 1), S = void 0;
|
|
3652
3652
|
else {
|
|
3653
3653
|
if (S.actions = [
|
|
3654
3654
|
.../* @__PURE__ */ new Set([...S.actions, ...m.actions])
|
|
@@ -3656,31 +3656,31 @@ function uo(e, t, n) {
|
|
|
3656
3656
|
for (const Z of g)
|
|
3657
3657
|
Z.mode === "inherit" && (H = {
|
|
3658
3658
|
...H,
|
|
3659
|
-
...nt(
|
|
3659
|
+
...nt(Xe(V), Z.builder)
|
|
3660
3660
|
});
|
|
3661
|
-
Object.keys(H).length === 0 ? delete S.conditions : S.conditions = JSON.stringify(H), v[
|
|
3661
|
+
Object.keys(H).length === 0 ? delete S.conditions : S.conditions = JSON.stringify(H), v[A] = S;
|
|
3662
3662
|
}
|
|
3663
3663
|
}
|
|
3664
3664
|
const _ = () => {
|
|
3665
|
-
const
|
|
3665
|
+
const w = new Set(r.value);
|
|
3666
3666
|
for (const V of g) {
|
|
3667
3667
|
const j = gt(m.subject, V.builder);
|
|
3668
|
-
V.mode === "custom" ?
|
|
3668
|
+
V.mode === "custom" ? w.add(j) : w.delete(j);
|
|
3669
3669
|
}
|
|
3670
|
-
r.value =
|
|
3671
|
-
}, O = (
|
|
3670
|
+
r.value = w;
|
|
3671
|
+
}, O = (w) => {
|
|
3672
3672
|
var V;
|
|
3673
|
-
_(), n(
|
|
3673
|
+
_(), n(w), (V = I.afterCommit) == null || V.call(I);
|
|
3674
3674
|
};
|
|
3675
3675
|
if (!tn(m.subject, t.value) || !S) {
|
|
3676
3676
|
O(v);
|
|
3677
3677
|
return;
|
|
3678
3678
|
}
|
|
3679
|
-
const P = g.map((
|
|
3680
|
-
let
|
|
3679
|
+
const P = g.map((w) => w.builder).filter((w) => R(m.subject, w).length > 0), F = () => {
|
|
3680
|
+
let w = v;
|
|
3681
3681
|
for (const V of g.map((j) => j.builder))
|
|
3682
|
-
M(m.subject, V),
|
|
3683
|
-
O(
|
|
3682
|
+
M(m.subject, V), w = p(w, S, V);
|
|
3683
|
+
O(w);
|
|
3684
3684
|
};
|
|
3685
3685
|
if (P.length > 0 && I.onOverridesConflict) {
|
|
3686
3686
|
I.onOverridesConflict({ override: F, keep: () => O(v) });
|
|
@@ -3693,14 +3693,14 @@ function uo(e, t, n) {
|
|
|
3693
3693
|
coverLabel: f,
|
|
3694
3694
|
shouldShowInheritToggle: b,
|
|
3695
3695
|
inheritMode: E,
|
|
3696
|
-
setInheritMode:
|
|
3697
|
-
inheritedSummary:
|
|
3698
|
-
getEffectiveActions:
|
|
3696
|
+
setInheritMode: D,
|
|
3697
|
+
inheritedSummary: N,
|
|
3698
|
+
getEffectiveActions: k,
|
|
3699
3699
|
updateBuilderCondition: h,
|
|
3700
|
-
applyConditionDrafts:
|
|
3700
|
+
applyConditionDrafts: L
|
|
3701
3701
|
};
|
|
3702
3702
|
}
|
|
3703
|
-
const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, _o = "condition-form-select-menu", So = /* @__PURE__ */
|
|
3703
|
+
const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, _o = "condition-form-select-menu", So = /* @__PURE__ */ Re({
|
|
3704
3704
|
__name: "PortalPermissionEditor",
|
|
3705
3705
|
props: /* @__PURE__ */ en({
|
|
3706
3706
|
disable: {
|
|
@@ -3729,18 +3729,18 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3729
3729
|
setup(e, { emit: t }) {
|
|
3730
3730
|
const n = vr(e, "modelValue"), r = e, a = K(() => r.part === "all" ? "trailing" : "leading"), o = K(
|
|
3731
3731
|
() => r.part === "all" ? "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" : ""
|
|
3732
|
-
), f = t, { t: d } = Ke(), i = hr(), b = br(), { breakpoints: E } = gr(),
|
|
3732
|
+
), f = t, { t: d } = Ke(), i = hr(), b = br(), { breakpoints: E } = gr(), N = K(() => E.value.xs || E.value.sm), {
|
|
3733
3733
|
fetchCustomReportPermissions: T,
|
|
3734
|
-
customReportPermissions:
|
|
3735
|
-
} = Ir(),
|
|
3734
|
+
customReportPermissions: D
|
|
3735
|
+
} = Ir(), k = K(() => [
|
|
3736
3736
|
...Gn,
|
|
3737
|
-
...
|
|
3738
|
-
]),
|
|
3737
|
+
...D.value
|
|
3738
|
+
]), R = K(() => {
|
|
3739
3739
|
const s = i.currentBusiness.value, c = i.currentCountry.value, y = c instanceof Object ? c.code : c;
|
|
3740
3740
|
return io(s, y);
|
|
3741
3741
|
});
|
|
3742
3742
|
function M(s) {
|
|
3743
|
-
return
|
|
3743
|
+
return k.value.find((c) => c.subject === s);
|
|
3744
3744
|
}
|
|
3745
3745
|
function p(s, c) {
|
|
3746
3746
|
return rn(s).filter(
|
|
@@ -3751,7 +3751,7 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3751
3751
|
);
|
|
3752
3752
|
}
|
|
3753
3753
|
const h = K(() => {
|
|
3754
|
-
const s =
|
|
3754
|
+
const s = k.value.filter((y) => !I.includes(y.subject)).map((y) => y.subject);
|
|
3755
3755
|
return Er(
|
|
3756
3756
|
r.inheritPermissions.map((y) => ({
|
|
3757
3757
|
...y,
|
|
@@ -3761,17 +3761,17 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3761
3761
|
id: y.subject,
|
|
3762
3762
|
setNames: y.setNames
|
|
3763
3763
|
}));
|
|
3764
|
-
}),
|
|
3764
|
+
}), L = K(() => {
|
|
3765
3765
|
const s = r.inheritPermissions.map((c) => ({
|
|
3766
3766
|
...c,
|
|
3767
3767
|
permissions: c.permissions.filter(
|
|
3768
3768
|
(y) => y.subject === Ye.Subject.Business.inventory_stock
|
|
3769
3769
|
)
|
|
3770
3770
|
}));
|
|
3771
|
-
return
|
|
3771
|
+
return Lt(
|
|
3772
3772
|
s,
|
|
3773
3773
|
"warehouseId",
|
|
3774
|
-
|
|
3774
|
+
A.value.map((c) => c._id)
|
|
3775
3775
|
);
|
|
3776
3776
|
}), m = K(() => {
|
|
3777
3777
|
const s = r.inheritPermissions.map((c) => ({
|
|
@@ -3780,7 +3780,7 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3780
3780
|
(y) => y.subject === Ye.Subject.Restaurant.restaurant
|
|
3781
3781
|
)
|
|
3782
3782
|
}));
|
|
3783
|
-
return
|
|
3783
|
+
return Lt(
|
|
3784
3784
|
s,
|
|
3785
3785
|
"restaurantId",
|
|
3786
3786
|
_.value.map((c) => c._id)
|
|
@@ -3790,18 +3790,18 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3790
3790
|
...c,
|
|
3791
3791
|
permissions: c.permissions.filter((y) => y.subject === Ye.Subject.Business.role)
|
|
3792
3792
|
}));
|
|
3793
|
-
return
|
|
3793
|
+
return Lt(
|
|
3794
3794
|
s,
|
|
3795
3795
|
"roleId",
|
|
3796
3796
|
O.value.map((c) => c._id)
|
|
3797
3797
|
);
|
|
3798
|
-
}), I = [...
|
|
3798
|
+
}), I = [...wr], v = K(() => {
|
|
3799
3799
|
var c;
|
|
3800
3800
|
const s = (c = n.value) == null ? void 0 : c.find(
|
|
3801
3801
|
(y) => y.subject === Ye.Subject.Business.inventory_stock
|
|
3802
3802
|
);
|
|
3803
3803
|
return s ? s.conditions ? JSON.parse(s.conditions).warehouseId.$in : null : [];
|
|
3804
|
-
}),
|
|
3804
|
+
}), A = st([]), S = K(() => A.value.map((s) => ({
|
|
3805
3805
|
label: s.profile.name,
|
|
3806
3806
|
value: s._id
|
|
3807
3807
|
})));
|
|
@@ -3825,19 +3825,19 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3825
3825
|
const { restaurants: _ } = i, O = Fr().roles, P = K(() => _.value.map((s) => ({
|
|
3826
3826
|
label: `${s.profile.code ? s.profile.code + "-" : ""}${s.profile.name}`,
|
|
3827
3827
|
value: s._id
|
|
3828
|
-
}))), F = K(() => _.value.reduce((s, c) => (s[c._id] = O.value.filter((y) => y.restaurants.some((U) => U.id === c._id)).map((y) => y._id), s), {})),
|
|
3828
|
+
}))), F = K(() => _.value.reduce((s, c) => (s[c._id] = O.value.filter((y) => y.restaurants.some((U) => U.id === c._id)).map((y) => y._id), s), {})), w = K(() => Cr(n.value));
|
|
3829
3829
|
function V(s) {
|
|
3830
3830
|
const c = Z(n.value, s);
|
|
3831
3831
|
n.value = c;
|
|
3832
3832
|
}
|
|
3833
|
-
const j = K(() =>
|
|
3833
|
+
const j = K(() => Nr(n.value));
|
|
3834
3834
|
function Z(s, c) {
|
|
3835
3835
|
return Tr(s, c, {
|
|
3836
3836
|
restaurantRoles: F.value,
|
|
3837
3837
|
allRoleIds: O.value.map((y) => y._id)
|
|
3838
3838
|
});
|
|
3839
3839
|
}
|
|
3840
|
-
function
|
|
3840
|
+
function X(s) {
|
|
3841
3841
|
const c = te(n.value, s);
|
|
3842
3842
|
n.value = c;
|
|
3843
3843
|
}
|
|
@@ -3846,7 +3846,7 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3846
3846
|
}
|
|
3847
3847
|
xn(async () => {
|
|
3848
3848
|
await Promise.all([
|
|
3849
|
-
r.part !== "portal" && so.readWarehouses().then((s) =>
|
|
3849
|
+
r.part !== "portal" && so.readWarehouses().then((s) => A.value = s),
|
|
3850
3850
|
T()
|
|
3851
3851
|
]);
|
|
3852
3852
|
});
|
|
@@ -3874,7 +3874,7 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3874
3874
|
);
|
|
3875
3875
|
}
|
|
3876
3876
|
const ve = K(() => new Set(
|
|
3877
|
-
|
|
3877
|
+
k.value.filter((s) => rn(s.subject).length > 0).map((s) => s.subject)
|
|
3878
3878
|
)), he = K(() => {
|
|
3879
3879
|
const s = /* @__PURE__ */ new Map();
|
|
3880
3880
|
return z.value.map((c) => ({
|
|
@@ -3883,7 +3883,7 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3883
3883
|
(y) => !y.inverted && y.subject === c.subject
|
|
3884
3884
|
)
|
|
3885
3885
|
})).filter(({ rule: c }) => !c.inverted).forEach(({ rule: c, index: y }) => {
|
|
3886
|
-
var
|
|
3886
|
+
var C;
|
|
3887
3887
|
const U = c.actions, W = p(c.subject, U);
|
|
3888
3888
|
if (W.length === 0) return;
|
|
3889
3889
|
let u;
|
|
@@ -3895,7 +3895,7 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3895
3895
|
s.set(c.subject, {
|
|
3896
3896
|
index: y >= 0 ? y : null,
|
|
3897
3897
|
subject: c.subject,
|
|
3898
|
-
label: ((
|
|
3898
|
+
label: ((C = M(c.subject)) == null ? void 0 : C.label) ?? c.subject,
|
|
3899
3899
|
actions: U,
|
|
3900
3900
|
// Each builder only ever sees its own slice of the stored condition.
|
|
3901
3901
|
sections: W.map((Q) => ({
|
|
@@ -3904,9 +3904,9 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3904
3904
|
}))
|
|
3905
3905
|
});
|
|
3906
3906
|
}), s;
|
|
3907
|
-
}), ae = uo(n,
|
|
3907
|
+
}), ae = uo(n, k, (s) => {
|
|
3908
3908
|
n.value = s;
|
|
3909
|
-
}), le = Sr(n),
|
|
3909
|
+
}), le = Sr(n), Ae = st(null);
|
|
3910
3910
|
function Y(s, c) {
|
|
3911
3911
|
const y = he.value.get(s);
|
|
3912
3912
|
if (y) return y;
|
|
@@ -3959,7 +3959,7 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3959
3959
|
}
|
|
3960
3960
|
);
|
|
3961
3961
|
}
|
|
3962
|
-
function
|
|
3962
|
+
function we(s) {
|
|
3963
3963
|
return le.hasDraftsForSubject(s);
|
|
3964
3964
|
}
|
|
3965
3965
|
function Fe(s, c) {
|
|
@@ -4017,7 +4017,7 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
4017
4017
|
},
|
|
4018
4018
|
{ deep: !0 }
|
|
4019
4019
|
), (s, c) => {
|
|
4020
|
-
const y =
|
|
4020
|
+
const y = De("FmIcon"), U = De("FmBottomSheet"), W = De("FmPopover");
|
|
4021
4021
|
return $(), re("div", {
|
|
4022
4022
|
class: Ie(["flex flex-col", e.part === "all" ? "gap-32" : "gap-16"])
|
|
4023
4023
|
}, [
|
|
@@ -4025,10 +4025,10 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
4025
4025
|
key: 0,
|
|
4026
4026
|
class: Ie(o.value)
|
|
4027
4027
|
}, [
|
|
4028
|
-
oe(
|
|
4028
|
+
oe(Ba, {
|
|
4029
4029
|
"model-value": z.value,
|
|
4030
4030
|
"excluded-subjects": I,
|
|
4031
|
-
"additional-permissions":
|
|
4031
|
+
"additional-permissions": B(D),
|
|
4032
4032
|
layout: a.value,
|
|
4033
4033
|
"onUpdate:modelValue": de
|
|
4034
4034
|
}, tt({ _: 2 }, [
|
|
@@ -4040,19 +4040,19 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
4040
4040
|
})),
|
|
4041
4041
|
Ee(ve.value, (u) => ({
|
|
4042
4042
|
name: `checkbox-${u}-icon`,
|
|
4043
|
-
fn: ce(({ option:
|
|
4044
|
-
Q && Y(u,
|
|
4045
|
-
|
|
4043
|
+
fn: ce(({ option: C, isEffectiveSelected: Q }) => [
|
|
4044
|
+
Q && Y(u, C.label) ? ($(), re(Me, { key: 0 }, [
|
|
4045
|
+
N.value ? ($(), Ne(U, {
|
|
4046
4046
|
key: 0,
|
|
4047
|
-
"model-value":
|
|
4048
|
-
header:
|
|
4049
|
-
context: Y(u,
|
|
4047
|
+
"model-value": Ae.value === u,
|
|
4048
|
+
header: B(d)("team.memberForm.permissions.conditionTitle", {
|
|
4049
|
+
context: Y(u, C.label).label
|
|
4050
4050
|
}),
|
|
4051
4051
|
"dismiss-away": "",
|
|
4052
4052
|
"z-index": 100,
|
|
4053
4053
|
class: "h-5 flex items-center",
|
|
4054
4054
|
"onUpdate:modelValue": (J) => {
|
|
4055
|
-
|
|
4055
|
+
Ae.value = J ? u : null, J || B(le).clearDraftsForSubject(u);
|
|
4056
4056
|
}
|
|
4057
4057
|
}, {
|
|
4058
4058
|
"bottom-sheet-button": ce(() => [
|
|
@@ -4062,37 +4062,37 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
4062
4062
|
size: "sm",
|
|
4063
4063
|
class: Ie([
|
|
4064
4064
|
"cursor-pointer transition-colors",
|
|
4065
|
-
Ge(Y(u,
|
|
4065
|
+
Ge(Y(u, C.label)) ? "text-fm-color-primary-main" : "text-fm-color-neutral-gray-400 hover:text-fm-color-neutral-gray-600"
|
|
4066
4066
|
])
|
|
4067
4067
|
}, null, 8, ["class"])
|
|
4068
4068
|
])
|
|
4069
4069
|
]),
|
|
4070
4070
|
default: ce(() => [
|
|
4071
|
-
oe(
|
|
4072
|
-
entry: Y(u,
|
|
4073
|
-
builders: Y(u,
|
|
4071
|
+
oe(wn, {
|
|
4072
|
+
entry: Y(u, C.label),
|
|
4073
|
+
builders: Y(u, C.label).sections.map((J) => J.builder),
|
|
4074
4074
|
subject: u,
|
|
4075
|
-
"time-zone":
|
|
4076
|
-
"cover-override":
|
|
4077
|
-
"inherit-mode-for": (J) => $e(Y(u,
|
|
4078
|
-
"form-value-for": (J) => fe(Y(u,
|
|
4079
|
-
"has-changes":
|
|
4075
|
+
"time-zone": R.value,
|
|
4076
|
+
"cover-override": B(ae),
|
|
4077
|
+
"inherit-mode-for": (J) => $e(Y(u, C.label), J),
|
|
4078
|
+
"form-value-for": (J) => fe(Y(u, C.label), J),
|
|
4079
|
+
"has-changes": we(u),
|
|
4080
4080
|
disable: e.disable,
|
|
4081
4081
|
"full-width": !0,
|
|
4082
|
-
onUpdateInheritMode: ({ builder: J, mode: me }) => Ve(Y(u,
|
|
4083
|
-
onUpdateForm: ({ builder: J, form: me }) => Qe(Y(u,
|
|
4084
|
-
onApply: (J) => Fe(Y(u,
|
|
4082
|
+
onUpdateInheritMode: ({ builder: J, mode: me }) => Ve(Y(u, C.label), J, me),
|
|
4083
|
+
onUpdateForm: ({ builder: J, form: me }) => Qe(Y(u, C.label), J, me),
|
|
4084
|
+
onApply: (J) => Fe(Y(u, C.label), () => Ae.value = null)
|
|
4085
4085
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4086
4086
|
]),
|
|
4087
4087
|
_: 2
|
|
4088
|
-
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : ($(),
|
|
4088
|
+
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : ($(), Ne(W, {
|
|
4089
4089
|
key: 1,
|
|
4090
4090
|
disabled: e.disable,
|
|
4091
4091
|
"z-index": 100,
|
|
4092
4092
|
"exclude-el-from-click-outside": [_o],
|
|
4093
4093
|
class: "h-5 flex items-center",
|
|
4094
4094
|
onPopoverChanged: (J) => {
|
|
4095
|
-
J ||
|
|
4095
|
+
J || B(le).clearDraftsForSubject(u);
|
|
4096
4096
|
}
|
|
4097
4097
|
}, {
|
|
4098
4098
|
"popover-button": ce(() => [
|
|
@@ -4102,37 +4102,37 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
4102
4102
|
size: "sm",
|
|
4103
4103
|
class: Ie([
|
|
4104
4104
|
"cursor-pointer transition-colors",
|
|
4105
|
-
Ge(Y(u,
|
|
4105
|
+
Ge(Y(u, C.label)) ? "text-fm-color-primary-main" : "text-fm-color-neutral-gray-400 hover:text-fm-color-neutral-gray-600"
|
|
4106
4106
|
])
|
|
4107
4107
|
}, null, 8, ["class"])
|
|
4108
4108
|
])
|
|
4109
4109
|
]),
|
|
4110
4110
|
default: ce(({ hide: J }) => [
|
|
4111
|
-
oe(
|
|
4112
|
-
entry: Y(u,
|
|
4113
|
-
builders: Y(u,
|
|
4111
|
+
oe(wn, {
|
|
4112
|
+
entry: Y(u, C.label),
|
|
4113
|
+
builders: Y(u, C.label).sections.map((me) => me.builder),
|
|
4114
4114
|
subject: u,
|
|
4115
|
-
"time-zone":
|
|
4116
|
-
"cover-override":
|
|
4117
|
-
title:
|
|
4118
|
-
context: Y(u,
|
|
4115
|
+
"time-zone": R.value,
|
|
4116
|
+
"cover-override": B(ae),
|
|
4117
|
+
title: B(d)("team.memberForm.permissions.conditionTitle", {
|
|
4118
|
+
context: Y(u, C.label).label
|
|
4119
4119
|
}),
|
|
4120
|
-
"inherit-mode-for": (me) => $e(Y(u,
|
|
4121
|
-
"form-value-for": (me) => fe(Y(u,
|
|
4122
|
-
"has-changes":
|
|
4120
|
+
"inherit-mode-for": (me) => $e(Y(u, C.label), me),
|
|
4121
|
+
"form-value-for": (me) => fe(Y(u, C.label), me),
|
|
4122
|
+
"has-changes": we(u),
|
|
4123
4123
|
disable: e.disable,
|
|
4124
4124
|
onUpdateInheritMode: ({ builder: me, mode: We }) => Ve(
|
|
4125
|
-
Y(u,
|
|
4125
|
+
Y(u, C.label),
|
|
4126
4126
|
me,
|
|
4127
4127
|
We
|
|
4128
4128
|
),
|
|
4129
|
-
onUpdateForm: ({ builder: me, form: We }) => Qe(Y(u,
|
|
4130
|
-
onApply: (me) => Fe(Y(u,
|
|
4129
|
+
onUpdateForm: ({ builder: me, form: We }) => Qe(Y(u, C.label), me, We),
|
|
4130
|
+
onApply: (me) => Fe(Y(u, C.label), J)
|
|
4131
4131
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "title", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4132
4132
|
]),
|
|
4133
4133
|
_: 2
|
|
4134
4134
|
}, 1032, ["disabled", "exclude-el-from-click-outside", "onPopoverChanged"]))
|
|
4135
|
-
], 64)) : ($(),
|
|
4135
|
+
], 64)) : ($(), Ne(y, {
|
|
4136
4136
|
key: 1,
|
|
4137
4137
|
name: "settings",
|
|
4138
4138
|
size: "sm",
|
|
@@ -4141,34 +4141,34 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
4141
4141
|
])
|
|
4142
4142
|
}))
|
|
4143
4143
|
]), 1032, ["model-value", "additional-permissions", "layout"])
|
|
4144
|
-
], 2)) :
|
|
4144
|
+
], 2)) : Ce("", !0),
|
|
4145
4145
|
e.part !== "portal" ? ($(), re("div", {
|
|
4146
4146
|
key: 1,
|
|
4147
4147
|
class: Ie(o.value)
|
|
4148
4148
|
}, [
|
|
4149
|
-
oe(
|
|
4149
|
+
oe(Dn, {
|
|
4150
4150
|
"model-value": v.value,
|
|
4151
4151
|
options: S.value,
|
|
4152
|
-
context:
|
|
4152
|
+
context: B(d)("team.labels.warehouse"),
|
|
4153
4153
|
layout: a.value,
|
|
4154
4154
|
"onUpdate:modelValue": H
|
|
4155
4155
|
}, tt({ _: 2 }, [
|
|
4156
|
-
Ee(
|
|
4156
|
+
Ee(L.value, (u) => ({
|
|
4157
4157
|
name: `checkbox-${u.id}-append`,
|
|
4158
4158
|
fn: ce(() => [
|
|
4159
4159
|
oe(vt, { item: u }, null, 8, ["item"])
|
|
4160
4160
|
])
|
|
4161
4161
|
}))
|
|
4162
4162
|
]), 1032, ["model-value", "options", "context", "layout"])
|
|
4163
|
-
], 2)) :
|
|
4163
|
+
], 2)) : Ce("", !0),
|
|
4164
4164
|
e.part !== "portal" ? ($(), re("div", {
|
|
4165
4165
|
key: 2,
|
|
4166
4166
|
class: Ie([o.value, { "order-first": e.part === "workplace" }])
|
|
4167
4167
|
}, [
|
|
4168
|
-
oe(
|
|
4169
|
-
"model-value":
|
|
4168
|
+
oe(Dn, {
|
|
4169
|
+
"model-value": w.value,
|
|
4170
4170
|
options: P.value,
|
|
4171
|
-
context:
|
|
4171
|
+
context: B(d)("team.labels.restaurant"),
|
|
4172
4172
|
layout: a.value,
|
|
4173
4173
|
"onUpdate:modelValue": V
|
|
4174
4174
|
}, tt({ _: 2 }, [
|
|
@@ -4179,17 +4179,17 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
4179
4179
|
])
|
|
4180
4180
|
}))
|
|
4181
4181
|
]), 1032, ["model-value", "options", "context", "layout"])
|
|
4182
|
-
], 2)) :
|
|
4182
|
+
], 2)) : Ce("", !0),
|
|
4183
4183
|
e.part !== "portal" ? ($(), re("div", {
|
|
4184
4184
|
key: 3,
|
|
4185
4185
|
class: Ie(o.value)
|
|
4186
4186
|
}, [
|
|
4187
4187
|
oe(eo, {
|
|
4188
|
-
roles:
|
|
4188
|
+
roles: B(O),
|
|
4189
4189
|
"model-value": j.value,
|
|
4190
|
-
"restaurant-ids":
|
|
4190
|
+
"restaurant-ids": w.value,
|
|
4191
4191
|
layout: a.value,
|
|
4192
|
-
"onUpdate:modelValue":
|
|
4192
|
+
"onUpdate:modelValue": X
|
|
4193
4193
|
}, tt({ _: 2 }, [
|
|
4194
4194
|
Ee(g.value, (u) => ({
|
|
4195
4195
|
name: `checkbox-${u.id}-append`,
|
|
@@ -4198,7 +4198,7 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
4198
4198
|
])
|
|
4199
4199
|
}))
|
|
4200
4200
|
]), 1032, ["roles", "model-value", "restaurant-ids", "layout"])
|
|
4201
|
-
], 2)) :
|
|
4201
|
+
], 2)) : Ce("", !0)
|
|
4202
4202
|
], 2);
|
|
4203
4203
|
};
|
|
4204
4204
|
}
|