@feedmepos/mf-hrm-portal 2.3.0-dev.6 → 2.3.0-dev.8
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-Cf1l-ult.js → ApprovalCodeList-D5E_FN3f.js} +5 -5
- package/dist/AuditLogList-CqqiS2xW.js +1779 -0
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BdbfGDI_.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DC_oQTsP.js} +2 -2
- package/dist/{EmployeeList-sc773luN.js → EmployeeList-ChMlGxmu.js} +6 -6
- package/dist/{GrantUserList-2XTroUF8.js → GrantUserList-DA26W3K3.js} +6 -6
- package/dist/{Main-BNCfG0Sg.js → Main-B27Qx8R2.js} +8 -8
- package/dist/{Main-BIo4YcWF.js → Main-C0gVAR92.js} +5 -5
- package/dist/{Main-CCGYrZsD.js → Main-m39gMG-a.js} +11 -11
- package/dist/{PermissionSetList-7Ut1F99N.js → PermissionSetList-mdA65jmw.js} +7 -7
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-B1l2xUpn.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Dp6bdEZp.js} +601 -601
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-fe-Rdwn4.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-BVz6q3HE.js} +1 -1
- package/dist/{RoleList-DMKdy74J.js → RoleList-BPayuLxA.js} +9 -9
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CI94gSkp.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-C_EQivMd.js} +1 -1
- package/dist/{ScheduleGeneralPage-DGdnq7oV.js → ScheduleGeneralPage-sAqR1-hf.js} +4 -4
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-Cq-zMPW_.js → ScheduleModal.vue_vue_type_script_setup_true_lang-ABipaQiR.js} +2 -2
- package/dist/{SchedulePage-B7M5fPIA.js → SchedulePage-DhbtCR8U.js} +6243 -6070
- package/dist/{SchedulePositionPage-DeorKiCc.js → SchedulePositionPage-BUQy-Itg.js} +3 -3
- package/dist/{TeamMemberList-CQswHBEk.js → TeamMemberList-CIlvRlf8.js} +10 -10
- package/dist/{TimesheetList-lWsJuha_.js → TimesheetList-DFAfhWYG.js} +7 -7
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CLgmz6LT.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-QGzHuY7V.js} +3 -3
- package/dist/{app-MTWSOw4U.js → app-C_EW9DFr.js} +228 -464
- package/dist/app.js +1 -1
- package/dist/{approval-code-C9DmR4Md.js → approval-code-DHsUgc4K.js} +1 -1
- package/dist/{dayjs.min-9rM_szda.js → dayjs.min-ibysRBBa.js} +1 -1
- package/dist/{employee-BvtW9sI6.js → employee-B1BQc4gB.js} +4 -4
- package/dist/{grant-user-Bv-pJ9Wt.js → grant-user-qzKHFTro.js} +1 -1
- package/dist/{iteration-Byna7hj1.js → iteration-DQVB-iz0.js} +1 -1
- package/dist/{lodash-CnwRhwQm.js → lodash-DOj41a0A.js} +1 -1
- package/dist/{restaurant-D7PEQjPY.js → restaurant-BbYRA_IT.js} +4 -3
- package/dist/{role-N_-ZZfhy.js → role-B9MSLu4B.js} +2 -2
- package/dist/{rule-B9-ryqfq.js → rule-e6okoXK6.js} +3 -3
- package/dist/src/api/audit-log/index.d.ts +0 -4
- package/dist/src/views/audit-log/constants.d.ts +30 -9
- package/dist/src/views/audit-log/locales/index.d.ts +0 -236
- package/dist/src/views/scheduling/components/ScheduleOnboardingAssignPositionModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/composables/useRemyAppStore.d.ts +5 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +126 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-d_nHyK5u.js → useAppStore-BoLkvkE2.js} +1 -1
- package/dist/{useLoading-JFoghhRz.js → useLoading-Ch1AUYT1.js} +1 -1
- package/dist/{useReportPermissions-BSOsfpnM.js → useReportPermissions-CJ9ey1bN.js} +3 -3
- package/package.json +1 -1
- package/dist/AuditLogList-D1sMrERs.js +0 -1951
- package/dist/src/views/audit-log/pos-row.d.ts +0 -27
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
2
|
-
import { useI18n as He, useCoreStore as
|
|
3
|
-
import { useDialog as
|
|
1
|
+
import { getCurrentInstance as Zt, inject as ur, ref as rt, shallowRef as mr, computed as z, watch as Dt, onMounted as Vn, onUnmounted as dr, defineComponent as Ae, h as Wn, createVNode as ue, Text as fr, Fragment as Re, resolveComponent as De, createBlock as Ce, openBlock as $, withCtx as me, createElementVNode as ae, createElementBlock as ie, toDisplayString as Oe, unref as H, renderList as Ee, toRef as en, normalizeStyle as nt, renderSlot as Se, createCommentVNode as Me, createTextVNode as _r, useSlots as vr, normalizeClass as qe, createSlots as et, mergeModels as tn, useModel as pr } from "vue";
|
|
2
|
+
import { useI18n as He, useCoreStore as br } from "@feedmepos/mf-common";
|
|
3
|
+
import { useDialog as hr, useBreakpoints as gr } from "@feedmepos/ui-library";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { p as Gn, N as Xn, d as Ir, P as yr, w as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { u as Or, v as Sr, b as
|
|
8
|
-
import { c as It } from "./iteration-
|
|
9
|
-
import { r as
|
|
10
|
-
import { g as kr, b as Rr } from "./restaurant-
|
|
11
|
-
import { u as Mr } from "./role-
|
|
12
|
-
function
|
|
5
|
+
import { p as Gn, N as Xn, d as Ir, P as yr, w as Lt, x as Er, y as Cr } from "./rule-e6okoXK6.js";
|
|
6
|
+
import { _ as Bt, a as Nr, b as nn, u as Tr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DC_oQTsP.js";
|
|
7
|
+
import { u as Or, v as Sr, b as Yn, S as wt, A as tt, c as be, k as rn, O as Lr } from "./app-C_EW9DFr.js";
|
|
8
|
+
import { c as It } from "./iteration-DQVB-iz0.js";
|
|
9
|
+
import { r as Ar } from "./string-VNuQNweN.js";
|
|
10
|
+
import { g as kr, b as Rr } from "./restaurant-BbYRA_IT.js";
|
|
11
|
+
import { u as Mr } from "./role-B9MSLu4B.js";
|
|
12
|
+
function Zn(e, t) {
|
|
13
13
|
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
14
14
|
}
|
|
15
15
|
function Dr(e) {
|
|
16
16
|
return Array.isArray(e) ? e[0] : e;
|
|
17
17
|
}
|
|
18
18
|
function wr(e, t) {
|
|
19
|
-
const n = t.find((l) =>
|
|
19
|
+
const n = t.find((l) => Zn(l.subject, e));
|
|
20
20
|
if (!(n != null && n.category) || n.isCategoryCover) return;
|
|
21
21
|
const r = t.find((l) => l.category === n.category && l.isCategoryCover);
|
|
22
22
|
if (r)
|
|
23
23
|
return Dr(r.subject);
|
|
24
24
|
}
|
|
25
25
|
function sn(e, t) {
|
|
26
|
-
const n = t.find((r) =>
|
|
26
|
+
const n = t.find((r) => Zn(r.subject, e));
|
|
27
27
|
return !!(n != null && n.isCategoryCover);
|
|
28
28
|
}
|
|
29
29
|
/*!
|
|
@@ -31,24 +31,24 @@ function sn(e, t) {
|
|
|
31
31
|
* (c) 2024 kazuya kawaguchi
|
|
32
32
|
* Released under the MIT License.
|
|
33
33
|
*/
|
|
34
|
-
const on = typeof window < "u",
|
|
34
|
+
const on = typeof window < "u", Je = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Fr = (e, t, n) => Pr({ l: e, k: t, s: n }), Pr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ge = (e) => typeof e == "number" && isFinite(e), jr = (e) => Ht(e) === "[object Date]", Et = (e) => Ht(e) === "[object RegExp]", Nt = (e) => ee(e) && Object.keys(e).length === 0, Ie = Object.assign, Ur = Object.create, oe = (e = null) => Ur(e);
|
|
35
35
|
let an;
|
|
36
|
-
const
|
|
36
|
+
const Be = () => an || (an = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : oe());
|
|
37
37
|
function ln(e) {
|
|
38
38
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
39
39
|
}
|
|
40
40
|
const xr = Object.prototype.hasOwnProperty;
|
|
41
|
-
function
|
|
41
|
+
function Le(e, t) {
|
|
42
42
|
return xr.call(e, t);
|
|
43
43
|
}
|
|
44
|
-
const
|
|
45
|
-
function
|
|
44
|
+
const he = Array.isArray, de = (e) => typeof e == "function", X = (e) => typeof e == "string", pe = (e) => typeof e == "boolean", te = (e) => e !== null && typeof e == "object", Vr = (e) => te(e) && de(e.then) && de(e.catch), Bn = Object.prototype.toString, Ht = (e) => Bn.call(e), ee = (e) => Ht(e) === "[object Object]", Wr = (e) => e == null ? "" : he(e) || ee(e) && e.toString === Bn ? JSON.stringify(e, null, 2) : String(e);
|
|
45
|
+
function Jt(e, t = "") {
|
|
46
46
|
return e.reduce((n, r, l) => l === 0 ? n + r : n + t + r, "");
|
|
47
47
|
}
|
|
48
48
|
function Gr(e, t) {
|
|
49
49
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
50
50
|
}
|
|
51
|
-
const ft = (e) => !te(e) ||
|
|
51
|
+
const ft = (e) => !te(e) || he(e);
|
|
52
52
|
function yt(e, t) {
|
|
53
53
|
if (ft(e) || ft(t))
|
|
54
54
|
throw new Error("Invalid value");
|
|
@@ -83,21 +83,21 @@ const re = {
|
|
|
83
83
|
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
84
84
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
85
85
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
86
|
-
},
|
|
86
|
+
}, Yr = 17;
|
|
87
87
|
function Tt(e, t, n = {}) {
|
|
88
88
|
const { domain: r, messages: l, args: a } = n, m = e, u = new SyntaxError(String(m));
|
|
89
89
|
return u.code = e, t && (u.location = t), u.domain = r, u;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Zr(e) {
|
|
92
92
|
throw e;
|
|
93
93
|
}
|
|
94
|
-
const Pe = " ",
|
|
95
|
-
`, Hr = "\u2028",
|
|
96
|
-
function
|
|
94
|
+
const Pe = " ", Br = "\r", ye = `
|
|
95
|
+
`, Hr = "\u2028", Jr = "\u2029";
|
|
96
|
+
function $r(e) {
|
|
97
97
|
const t = e;
|
|
98
98
|
let n = 0, r = 1, l = 1, a = 0;
|
|
99
|
-
const m = (v) => t[v] ===
|
|
100
|
-
function
|
|
99
|
+
const m = (v) => t[v] === Br && t[v + 1] === ye, u = (v) => t[v] === ye, i = (v) => t[v] === Jr, g = (v) => t[v] === Hr, y = (v) => m(v) || u(v) || i(v) || g(v), T = () => n, C = () => r, F = () => l, D = () => a, A = (v) => m(v) || i(v) || g(v) ? ye : t[v], w = () => A(n), f = () => A(n + a);
|
|
100
|
+
function b() {
|
|
101
101
|
return a = 0, y(n) && (r++, l = 0), m(n) && n++, n++, l++, t[n];
|
|
102
102
|
}
|
|
103
103
|
function S() {
|
|
@@ -106,13 +106,13 @@ function Jr(e) {
|
|
|
106
106
|
function c() {
|
|
107
107
|
n = 0, r = 1, l = 1, a = 0;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function h(v = 0) {
|
|
110
110
|
a = v;
|
|
111
111
|
}
|
|
112
112
|
function I() {
|
|
113
113
|
const v = n + a;
|
|
114
114
|
for (; v !== n; )
|
|
115
|
-
|
|
115
|
+
b();
|
|
116
116
|
a = 0;
|
|
117
117
|
}
|
|
118
118
|
return {
|
|
@@ -120,19 +120,19 @@ function Jr(e) {
|
|
|
120
120
|
line: C,
|
|
121
121
|
column: F,
|
|
122
122
|
peekOffset: D,
|
|
123
|
-
charAt:
|
|
123
|
+
charAt: A,
|
|
124
124
|
currentChar: w,
|
|
125
125
|
currentPeek: f,
|
|
126
|
-
next:
|
|
126
|
+
next: b,
|
|
127
127
|
peek: S,
|
|
128
128
|
reset: c,
|
|
129
|
-
resetPeek:
|
|
129
|
+
resetPeek: h,
|
|
130
130
|
skipToPeek: I
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
133
|
const Ve = void 0, Kr = ".", cn = "'", zr = "tokenizer";
|
|
134
134
|
function Qr(e, t = {}) {
|
|
135
|
-
const n = t.location !== !1, r =
|
|
135
|
+
const n = t.location !== !1, r = $r(e), l = () => r.index(), a = () => Xr(r.line(), r.column(), r.index()), m = a(), u = l(), i = {
|
|
136
136
|
currentType: 13,
|
|
137
137
|
offset: u,
|
|
138
138
|
startLoc: m,
|
|
@@ -168,14 +168,14 @@ function Qr(e, t = {}) {
|
|
|
168
168
|
function D(s, o) {
|
|
169
169
|
return s.currentChar() === o ? (s.next(), o) : (T(re.EXPECTED_TOKEN, a(), 0, o), "");
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function A(s) {
|
|
172
172
|
let o = "";
|
|
173
173
|
for (; s.currentPeek() === Pe || s.currentPeek() === ye; )
|
|
174
174
|
o += s.currentPeek(), s.peek();
|
|
175
175
|
return o;
|
|
176
176
|
}
|
|
177
177
|
function w(s) {
|
|
178
|
-
const o =
|
|
178
|
+
const o = A(s);
|
|
179
179
|
return s.skipToPeek(), o;
|
|
180
180
|
}
|
|
181
181
|
function f(s) {
|
|
@@ -186,7 +186,7 @@ function Qr(e, t = {}) {
|
|
|
186
186
|
o >= 65 && o <= 90 || // A-Z
|
|
187
187
|
o === 95;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function b(s) {
|
|
190
190
|
if (s === Ve)
|
|
191
191
|
return !1;
|
|
192
192
|
const o = s.charCodeAt(0);
|
|
@@ -196,7 +196,7 @@ function Qr(e, t = {}) {
|
|
|
196
196
|
const { currentType: _ } = o;
|
|
197
197
|
if (_ !== 2)
|
|
198
198
|
return !1;
|
|
199
|
-
|
|
199
|
+
A(s);
|
|
200
200
|
const k = f(s.currentPeek());
|
|
201
201
|
return s.resetPeek(), k;
|
|
202
202
|
}
|
|
@@ -204,15 +204,15 @@ function Qr(e, t = {}) {
|
|
|
204
204
|
const { currentType: _ } = o;
|
|
205
205
|
if (_ !== 2)
|
|
206
206
|
return !1;
|
|
207
|
-
|
|
208
|
-
const k = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), M =
|
|
207
|
+
A(s);
|
|
208
|
+
const k = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), M = b(k);
|
|
209
209
|
return s.resetPeek(), M;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function h(s, o) {
|
|
212
212
|
const { currentType: _ } = o;
|
|
213
213
|
if (_ !== 2)
|
|
214
214
|
return !1;
|
|
215
|
-
|
|
215
|
+
A(s);
|
|
216
216
|
const k = s.currentPeek() === cn;
|
|
217
217
|
return s.resetPeek(), k;
|
|
218
218
|
}
|
|
@@ -220,7 +220,7 @@ function Qr(e, t = {}) {
|
|
|
220
220
|
const { currentType: _ } = o;
|
|
221
221
|
if (_ !== 7)
|
|
222
222
|
return !1;
|
|
223
|
-
|
|
223
|
+
A(s);
|
|
224
224
|
const k = s.currentPeek() === ".";
|
|
225
225
|
return s.resetPeek(), k;
|
|
226
226
|
}
|
|
@@ -228,7 +228,7 @@ function Qr(e, t = {}) {
|
|
|
228
228
|
const { currentType: _ } = o;
|
|
229
229
|
if (_ !== 8)
|
|
230
230
|
return !1;
|
|
231
|
-
|
|
231
|
+
A(s);
|
|
232
232
|
const k = f(s.currentPeek());
|
|
233
233
|
return s.resetPeek(), k;
|
|
234
234
|
}
|
|
@@ -236,11 +236,11 @@ function Qr(e, t = {}) {
|
|
|
236
236
|
const { currentType: _ } = o;
|
|
237
237
|
if (!(_ === 7 || _ === 11))
|
|
238
238
|
return !1;
|
|
239
|
-
|
|
239
|
+
A(s);
|
|
240
240
|
const k = s.currentPeek() === ":";
|
|
241
241
|
return s.resetPeek(), k;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function L(s, o) {
|
|
244
244
|
const { currentType: _ } = o;
|
|
245
245
|
if (_ !== 9)
|
|
246
246
|
return !1;
|
|
@@ -250,8 +250,8 @@ function Qr(e, t = {}) {
|
|
|
250
250
|
}, M = k();
|
|
251
251
|
return s.resetPeek(), M;
|
|
252
252
|
}
|
|
253
|
-
function
|
|
254
|
-
|
|
253
|
+
function B(s) {
|
|
254
|
+
A(s);
|
|
255
255
|
const o = s.currentPeek() === "|";
|
|
256
256
|
return s.resetPeek(), o;
|
|
257
257
|
}
|
|
@@ -296,14 +296,14 @@ function Qr(e, t = {}) {
|
|
|
296
296
|
function W(s) {
|
|
297
297
|
return d(s, G);
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function Y(s) {
|
|
300
300
|
const o = s.charCodeAt(0);
|
|
301
301
|
return o >= 48 && o <= 57 || // 0-9
|
|
302
302
|
o >= 65 && o <= 70 || // A-F
|
|
303
303
|
o >= 97 && o <= 102;
|
|
304
304
|
}
|
|
305
|
-
function
|
|
306
|
-
return d(s,
|
|
305
|
+
function Z(s) {
|
|
306
|
+
return d(s, Y);
|
|
307
307
|
}
|
|
308
308
|
function ne(s) {
|
|
309
309
|
let o = "", _ = "";
|
|
@@ -321,7 +321,7 @@ function Qr(e, t = {}) {
|
|
|
321
321
|
if (V(s))
|
|
322
322
|
o += _, s.next();
|
|
323
323
|
else {
|
|
324
|
-
if (
|
|
324
|
+
if (B(s))
|
|
325
325
|
break;
|
|
326
326
|
o += _, s.next();
|
|
327
327
|
}
|
|
@@ -371,7 +371,7 @@ function Qr(e, t = {}) {
|
|
|
371
371
|
D(s, o);
|
|
372
372
|
let k = "";
|
|
373
373
|
for (let M = 0; M < _; M++) {
|
|
374
|
-
const P =
|
|
374
|
+
const P = Z(s);
|
|
375
375
|
if (!P) {
|
|
376
376
|
T(re.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${k}${s.currentChar()}`);
|
|
377
377
|
break;
|
|
@@ -390,7 +390,7 @@ function Qr(e, t = {}) {
|
|
|
390
390
|
_ += o;
|
|
391
391
|
return _;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function $e(s) {
|
|
394
394
|
let o = "", _ = "";
|
|
395
395
|
for (; o = U(s); )
|
|
396
396
|
_ += o;
|
|
@@ -433,15 +433,15 @@ function Qr(e, t = {}) {
|
|
|
433
433
|
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = Ne(s, o) || F(o), o.braceNest = 0, _;
|
|
434
434
|
default: {
|
|
435
435
|
let M = !0, P = !0, p = !0;
|
|
436
|
-
if (
|
|
436
|
+
if (B(s))
|
|
437
437
|
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = C(o, 1, xe(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
438
438
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
439
|
-
return T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0,
|
|
439
|
+
return T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, Ye(s, o);
|
|
440
440
|
if (M = S(s, o))
|
|
441
441
|
return _ = C(o, 4, _e(s)), w(s), _;
|
|
442
442
|
if (P = c(s, o))
|
|
443
443
|
return _ = C(o, 5, ce(s)), w(s), _;
|
|
444
|
-
if (p =
|
|
444
|
+
if (p = h(s, o))
|
|
445
445
|
return _ = C(o, 6, fe(s)), w(s), _;
|
|
446
446
|
if (!M && !P && !p)
|
|
447
447
|
return _ = C(o, 12, ve(s)), T(re.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, _.value), w(s), _;
|
|
@@ -477,10 +477,10 @@ function Qr(e, t = {}) {
|
|
|
477
477
|
/* TokenChars.LinkedDelimiter */
|
|
478
478
|
);
|
|
479
479
|
default:
|
|
480
|
-
return
|
|
480
|
+
return B(s) ? (k = C(o, 1, xe(s)), o.braceNest = 0, o.inLinked = !1, k) : I(s, o) || R(s, o) ? (w(s), Ne(s, o)) : v(s, o) ? (w(s), C(o, 11, $e(s))) : L(s, o) ? (w(s), M === "{" ? Fe(s, o) || k : C(o, 10, Ke(s))) : (_ === 7 && T(re.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, Ye(s, o));
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function Ye(s, o) {
|
|
484
484
|
let _ = {
|
|
485
485
|
type: 13
|
|
486
486
|
/* TokenTypes.EOF */
|
|
@@ -502,7 +502,7 @@ function Qr(e, t = {}) {
|
|
|
502
502
|
case "@":
|
|
503
503
|
return Ne(s, o) || F(o);
|
|
504
504
|
default: {
|
|
505
|
-
if (
|
|
505
|
+
if (B(s))
|
|
506
506
|
return _ = C(o, 1, xe(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
507
507
|
if (V(s))
|
|
508
508
|
return C(o, 0, Q(s));
|
|
@@ -517,7 +517,7 @@ function Qr(e, t = {}) {
|
|
|
517
517
|
i,
|
|
518
518
|
13
|
|
519
519
|
/* TokenTypes.EOF */
|
|
520
|
-
) :
|
|
520
|
+
) : Ye(r, i);
|
|
521
521
|
}
|
|
522
522
|
return {
|
|
523
523
|
nextToken: O,
|
|
@@ -541,76 +541,76 @@ function ts(e, t, n) {
|
|
|
541
541
|
}
|
|
542
542
|
function ns(e = {}) {
|
|
543
543
|
const t = e.location !== !1, { onError: n } = e;
|
|
544
|
-
function r(f,
|
|
544
|
+
function r(f, b, S, c, ...h) {
|
|
545
545
|
const I = f.currentPosition();
|
|
546
546
|
if (I.offset += c, I.column += c, n) {
|
|
547
|
-
const v = t ? Ft(S, I) : null, R = Tt(
|
|
547
|
+
const v = t ? Ft(S, I) : null, R = Tt(b, v, {
|
|
548
548
|
domain: qr,
|
|
549
|
-
args:
|
|
549
|
+
args: h
|
|
550
550
|
});
|
|
551
551
|
n(R);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
function l(f,
|
|
554
|
+
function l(f, b, S) {
|
|
555
555
|
const c = { type: f };
|
|
556
|
-
return t && (c.start =
|
|
556
|
+
return t && (c.start = b, c.end = b, c.loc = { start: S, end: S }), c;
|
|
557
557
|
}
|
|
558
|
-
function a(f,
|
|
559
|
-
t && (f.end =
|
|
558
|
+
function a(f, b, S, c) {
|
|
559
|
+
t && (f.end = b, f.loc && (f.loc.end = S));
|
|
560
560
|
}
|
|
561
|
-
function m(f,
|
|
561
|
+
function m(f, b) {
|
|
562
562
|
const S = f.context(), c = l(3, S.offset, S.startLoc);
|
|
563
|
-
return c.value =
|
|
563
|
+
return c.value = b, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
564
564
|
}
|
|
565
|
-
function u(f,
|
|
566
|
-
const S = f.context(), { lastOffset: c, lastStartLoc:
|
|
567
|
-
return I.index = parseInt(
|
|
565
|
+
function u(f, b) {
|
|
566
|
+
const S = f.context(), { lastOffset: c, lastStartLoc: h } = S, I = l(5, c, h);
|
|
567
|
+
return I.index = parseInt(b, 10), f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
568
568
|
}
|
|
569
|
-
function i(f,
|
|
570
|
-
const S = f.context(), { lastOffset: c, lastStartLoc:
|
|
571
|
-
return I.key =
|
|
569
|
+
function i(f, b) {
|
|
570
|
+
const S = f.context(), { lastOffset: c, lastStartLoc: h } = S, I = l(4, c, h);
|
|
571
|
+
return I.key = b, f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
572
572
|
}
|
|
573
|
-
function g(f,
|
|
574
|
-
const S = f.context(), { lastOffset: c, lastStartLoc:
|
|
575
|
-
return I.value =
|
|
573
|
+
function g(f, b) {
|
|
574
|
+
const S = f.context(), { lastOffset: c, lastStartLoc: h } = S, I = l(9, c, h);
|
|
575
|
+
return I.value = b.replace(es, ts), f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
576
576
|
}
|
|
577
577
|
function y(f) {
|
|
578
|
-
const
|
|
579
|
-
return
|
|
580
|
-
nextConsumeToken:
|
|
578
|
+
const b = f.nextToken(), S = f.context(), { lastOffset: c, lastStartLoc: h } = S, I = l(8, c, h);
|
|
579
|
+
return b.type !== 11 ? (r(f, re.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), I.value = "", a(I, c, h), {
|
|
580
|
+
nextConsumeToken: b,
|
|
581
581
|
node: I
|
|
582
|
-
}) : (
|
|
582
|
+
}) : (b.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, ke(b)), I.value = b.value || "", a(I, f.currentOffset(), f.currentPosition()), {
|
|
583
583
|
node: I
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
|
-
function T(f,
|
|
586
|
+
function T(f, b) {
|
|
587
587
|
const S = f.context(), c = l(7, S.offset, S.startLoc);
|
|
588
|
-
return c.value =
|
|
588
|
+
return c.value = b, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
589
589
|
}
|
|
590
590
|
function C(f) {
|
|
591
|
-
const
|
|
591
|
+
const b = f.context(), S = l(6, b.offset, b.startLoc);
|
|
592
592
|
let c = f.nextToken();
|
|
593
593
|
if (c.type === 8) {
|
|
594
|
-
const
|
|
595
|
-
S.modifier =
|
|
594
|
+
const h = y(f);
|
|
595
|
+
S.modifier = h.node, c = h.nextConsumeToken || f.nextToken();
|
|
596
596
|
}
|
|
597
|
-
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
597
|
+
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ke(c)), c = f.nextToken(), c.type === 2 && (c = f.nextToken()), c.type) {
|
|
598
598
|
case 10:
|
|
599
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
599
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ke(c)), S.key = T(f, c.value || "");
|
|
600
600
|
break;
|
|
601
601
|
case 4:
|
|
602
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
602
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ke(c)), S.key = i(f, c.value || "");
|
|
603
603
|
break;
|
|
604
604
|
case 5:
|
|
605
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
605
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ke(c)), S.key = u(f, c.value || "");
|
|
606
606
|
break;
|
|
607
607
|
case 6:
|
|
608
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
608
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ke(c)), S.key = g(f, c.value || "");
|
|
609
609
|
break;
|
|
610
610
|
default: {
|
|
611
|
-
r(f, re.UNEXPECTED_EMPTY_LINKED_KEY,
|
|
612
|
-
const
|
|
613
|
-
return I.value = "", a(I,
|
|
611
|
+
r(f, re.UNEXPECTED_EMPTY_LINKED_KEY, b.lastStartLoc, 0);
|
|
612
|
+
const h = f.context(), I = l(7, h.offset, h.startLoc);
|
|
613
|
+
return I.value = "", a(I, h.offset, h.startLoc), S.key = I, a(S, h.offset, h.startLoc), {
|
|
614
614
|
nextConsumeToken: c,
|
|
615
615
|
node: S
|
|
616
616
|
};
|
|
@@ -621,52 +621,52 @@ function ns(e = {}) {
|
|
|
621
621
|
};
|
|
622
622
|
}
|
|
623
623
|
function F(f) {
|
|
624
|
-
const
|
|
625
|
-
|
|
624
|
+
const b = f.context(), S = b.currentType === 1 ? f.currentOffset() : b.offset, c = b.currentType === 1 ? b.endLoc : b.startLoc, h = l(2, S, c);
|
|
625
|
+
h.items = [];
|
|
626
626
|
let I = null;
|
|
627
627
|
do {
|
|
628
|
-
const
|
|
629
|
-
switch (I = null,
|
|
628
|
+
const L = I || f.nextToken();
|
|
629
|
+
switch (I = null, L.type) {
|
|
630
630
|
case 0:
|
|
631
|
-
|
|
631
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ke(L)), h.items.push(m(f, L.value || ""));
|
|
632
632
|
break;
|
|
633
633
|
case 5:
|
|
634
|
-
|
|
634
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ke(L)), h.items.push(u(f, L.value || ""));
|
|
635
635
|
break;
|
|
636
636
|
case 4:
|
|
637
|
-
|
|
637
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ke(L)), h.items.push(i(f, L.value || ""));
|
|
638
638
|
break;
|
|
639
639
|
case 6:
|
|
640
|
-
|
|
640
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ke(L)), h.items.push(g(f, L.value || ""));
|
|
641
641
|
break;
|
|
642
642
|
case 7: {
|
|
643
|
-
const
|
|
644
|
-
|
|
643
|
+
const B = C(f);
|
|
644
|
+
h.items.push(B.node), I = B.nextConsumeToken || null;
|
|
645
645
|
break;
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
|
-
} while (
|
|
649
|
-
const v =
|
|
650
|
-
return a(
|
|
648
|
+
} while (b.currentType !== 13 && b.currentType !== 1);
|
|
649
|
+
const v = b.currentType === 1 ? b.lastOffset : f.currentOffset(), R = b.currentType === 1 ? b.lastEndLoc : f.currentPosition();
|
|
650
|
+
return a(h, v, R), h;
|
|
651
651
|
}
|
|
652
|
-
function D(f,
|
|
653
|
-
const
|
|
652
|
+
function D(f, b, S, c) {
|
|
653
|
+
const h = f.context();
|
|
654
654
|
let I = c.items.length === 0;
|
|
655
|
-
const v = l(1,
|
|
655
|
+
const v = l(1, b, S);
|
|
656
656
|
v.cases = [], v.cases.push(c);
|
|
657
657
|
do {
|
|
658
658
|
const R = F(f);
|
|
659
659
|
I || (I = R.items.length === 0), v.cases.push(R);
|
|
660
|
-
} while (
|
|
660
|
+
} while (h.currentType !== 13);
|
|
661
661
|
return I && r(f, re.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), a(v, f.currentOffset(), f.currentPosition()), v;
|
|
662
662
|
}
|
|
663
|
-
function
|
|
664
|
-
const
|
|
665
|
-
return
|
|
663
|
+
function A(f) {
|
|
664
|
+
const b = f.context(), { offset: S, startLoc: c } = b, h = F(f);
|
|
665
|
+
return b.currentType === 13 ? h : D(f, S, c, h);
|
|
666
666
|
}
|
|
667
667
|
function w(f) {
|
|
668
|
-
const
|
|
669
|
-
return t && c.loc && (c.loc.source = f), c.body =
|
|
668
|
+
const b = Qr(f, Ie({}, e)), S = b.context(), c = l(0, S.offset, S.startLoc);
|
|
669
|
+
return t && c.loc && (c.loc.source = f), c.body = A(b), e.onCacheKey && (c.cacheKey = e.onCacheKey(f)), S.currentType !== 13 && r(b, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, f[S.offset] || ""), a(c, b.currentOffset(), b.currentPosition()), c;
|
|
670
670
|
}
|
|
671
671
|
return { parse: w };
|
|
672
672
|
}
|
|
@@ -685,9 +685,9 @@ function rs(e, t = {}) {
|
|
|
685
685
|
}
|
|
686
686
|
function un(e, t) {
|
|
687
687
|
for (let n = 0; n < e.length; n++)
|
|
688
|
-
|
|
688
|
+
$t(e[n], t);
|
|
689
689
|
}
|
|
690
|
-
function
|
|
690
|
+
function $t(e, t) {
|
|
691
691
|
switch (e.type) {
|
|
692
692
|
case 1:
|
|
693
693
|
un(e.cases, t), t.helper(
|
|
@@ -699,7 +699,7 @@ function Jt(e, t) {
|
|
|
699
699
|
un(e.items, t);
|
|
700
700
|
break;
|
|
701
701
|
case 6: {
|
|
702
|
-
|
|
702
|
+
$t(e.key, t), t.helper(
|
|
703
703
|
"linked"
|
|
704
704
|
/* HelperNameMap.LINKED */
|
|
705
705
|
), t.helper(
|
|
@@ -733,7 +733,7 @@ function ss(e, t = {}) {
|
|
|
733
733
|
n.helper(
|
|
734
734
|
"normalize"
|
|
735
735
|
/* HelperNameMap.NORMALIZE */
|
|
736
|
-
), e.body &&
|
|
736
|
+
), e.body && $t(e.body, n);
|
|
737
737
|
const r = n.context();
|
|
738
738
|
e.helpers = Array.from(r.helpers);
|
|
739
739
|
}
|
|
@@ -754,7 +754,7 @@ function mn(e) {
|
|
|
754
754
|
t.push(r.value);
|
|
755
755
|
}
|
|
756
756
|
if (t.length === e.items.length) {
|
|
757
|
-
e.static =
|
|
757
|
+
e.static = Jt(t);
|
|
758
758
|
for (let n = 0; n < e.items.length; n++) {
|
|
759
759
|
const r = e.items[n];
|
|
760
760
|
(r.type === 3 || r.type === 9) && delete r.value;
|
|
@@ -823,20 +823,20 @@ function as(e, t) {
|
|
|
823
823
|
};
|
|
824
824
|
a && e.loc && (m.source = e.loc.source);
|
|
825
825
|
const u = () => m;
|
|
826
|
-
function i(
|
|
827
|
-
m.code +=
|
|
826
|
+
function i(A, w) {
|
|
827
|
+
m.code += A;
|
|
828
828
|
}
|
|
829
|
-
function g(
|
|
829
|
+
function g(A, w = !0) {
|
|
830
830
|
const f = w ? r : "";
|
|
831
|
-
i(l ? f + " ".repeat(
|
|
831
|
+
i(l ? f + " ".repeat(A) : f);
|
|
832
832
|
}
|
|
833
|
-
function y(
|
|
833
|
+
function y(A = !0) {
|
|
834
834
|
const w = ++m.indentLevel;
|
|
835
|
-
|
|
835
|
+
A && g(w);
|
|
836
836
|
}
|
|
837
|
-
function T(
|
|
837
|
+
function T(A = !0) {
|
|
838
838
|
const w = --m.indentLevel;
|
|
839
|
-
|
|
839
|
+
A && g(w);
|
|
840
840
|
}
|
|
841
841
|
function C() {
|
|
842
842
|
g(m.indentLevel);
|
|
@@ -847,7 +847,7 @@ function as(e, t) {
|
|
|
847
847
|
indent: y,
|
|
848
848
|
deindent: T,
|
|
849
849
|
newline: C,
|
|
850
|
-
helper: (
|
|
850
|
+
helper: (A) => `_${A}`,
|
|
851
851
|
needIndent: () => m.needIndent
|
|
852
852
|
};
|
|
853
853
|
}
|
|
@@ -941,7 +941,7 @@ const ms = (e, t = {}) => {
|
|
|
941
941
|
breakLineCode: l,
|
|
942
942
|
needIndent: a
|
|
943
943
|
});
|
|
944
|
-
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), m.length > 0 && (u.push(`const { ${
|
|
944
|
+
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), m.length > 0 && (u.push(`const { ${Jt(m.map((y) => `${y}: _${y}`), ", ")} } = ctx`), u.newline()), u.push("return "), st(u, e), u.deindent(a), u.push("}"), delete e.helpers;
|
|
945
945
|
const { code: i, map: g } = u.context();
|
|
946
946
|
return {
|
|
947
947
|
ast: e,
|
|
@@ -956,13 +956,13 @@ function ds(e, t = {}) {
|
|
|
956
956
|
}
|
|
957
957
|
var fs = { env: { NODE_ENV: "production" } };
|
|
958
958
|
function _s() {
|
|
959
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
959
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Be().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Be().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function At(e) {
|
|
962
962
|
return (n) => vs(n, e);
|
|
963
963
|
}
|
|
964
964
|
function vs(e, t) {
|
|
965
|
-
const n =
|
|
965
|
+
const n = bs(t);
|
|
966
966
|
if (n == null)
|
|
967
967
|
throw it(
|
|
968
968
|
0
|
|
@@ -978,12 +978,12 @@ function vs(e, t) {
|
|
|
978
978
|
return dn(e, n);
|
|
979
979
|
}
|
|
980
980
|
const ps = ["b", "body"];
|
|
981
|
-
function
|
|
981
|
+
function bs(e) {
|
|
982
982
|
return Ge(e, ps);
|
|
983
983
|
}
|
|
984
|
-
const
|
|
984
|
+
const hs = ["c", "cases"];
|
|
985
985
|
function gs(e) {
|
|
986
|
-
return Ge(e,
|
|
986
|
+
return Ge(e, hs, []);
|
|
987
987
|
}
|
|
988
988
|
function dn(e, t) {
|
|
989
989
|
const n = ys(t);
|
|
@@ -1011,22 +1011,22 @@ function Pt(e, t) {
|
|
|
1011
1011
|
return _t(t, n);
|
|
1012
1012
|
case 4: {
|
|
1013
1013
|
const r = t;
|
|
1014
|
-
if (
|
|
1014
|
+
if (Le(r, "k") && r.k)
|
|
1015
1015
|
return e.interpolate(e.named(r.k));
|
|
1016
|
-
if (
|
|
1016
|
+
if (Le(r, "key") && r.key)
|
|
1017
1017
|
return e.interpolate(e.named(r.key));
|
|
1018
1018
|
throw it(n);
|
|
1019
1019
|
}
|
|
1020
1020
|
case 5: {
|
|
1021
1021
|
const r = t;
|
|
1022
|
-
if (
|
|
1022
|
+
if (Le(r, "i") && ge(r.i))
|
|
1023
1023
|
return e.interpolate(e.list(r.i));
|
|
1024
|
-
if (
|
|
1024
|
+
if (Le(r, "index") && ge(r.index))
|
|
1025
1025
|
return e.interpolate(e.list(r.index));
|
|
1026
1026
|
throw it(n);
|
|
1027
1027
|
}
|
|
1028
1028
|
case 6: {
|
|
1029
|
-
const r = t, l = Ss(r), a =
|
|
1029
|
+
const r = t, l = Ss(r), a = As(r);
|
|
1030
1030
|
return e.linked(Pt(e, a), l ? Pt(e, l) : void 0, e.type);
|
|
1031
1031
|
}
|
|
1032
1032
|
case 7:
|
|
@@ -1052,9 +1052,9 @@ const Os = ["m", "modifier"];
|
|
|
1052
1052
|
function Ss(e) {
|
|
1053
1053
|
return Ge(e, Os);
|
|
1054
1054
|
}
|
|
1055
|
-
const
|
|
1056
|
-
function
|
|
1057
|
-
const t = Ge(e,
|
|
1055
|
+
const Ls = ["k", "key"];
|
|
1056
|
+
function As(e) {
|
|
1057
|
+
const t = Ge(e, Ls);
|
|
1058
1058
|
if (t)
|
|
1059
1059
|
return t;
|
|
1060
1060
|
throw it(
|
|
@@ -1065,7 +1065,7 @@ function Ls(e) {
|
|
|
1065
1065
|
function Ge(e, t, n) {
|
|
1066
1066
|
for (let r = 0; r < t.length; r++) {
|
|
1067
1067
|
const l = t[r];
|
|
1068
|
-
if (
|
|
1068
|
+
if (Le(e, l) && e[l] != null)
|
|
1069
1069
|
return e[l];
|
|
1070
1070
|
}
|
|
1071
1071
|
return n;
|
|
@@ -1076,11 +1076,11 @@ function it(e) {
|
|
|
1076
1076
|
const ks = (e) => e;
|
|
1077
1077
|
let vt = oe();
|
|
1078
1078
|
function ot(e) {
|
|
1079
|
-
return te(e) && Kt(e) === 0 && (
|
|
1079
|
+
return te(e) && Kt(e) === 0 && (Le(e, "b") || Le(e, "body"));
|
|
1080
1080
|
}
|
|
1081
1081
|
function Rs(e, t = {}) {
|
|
1082
1082
|
let n = !1;
|
|
1083
|
-
const r = t.onError ||
|
|
1083
|
+
const r = t.onError || Zr;
|
|
1084
1084
|
return t.onError = (l) => {
|
|
1085
1085
|
n = !0, r(l);
|
|
1086
1086
|
}, { ...ds(e, t), detectError: n };
|
|
@@ -1096,15 +1096,15 @@ function Ms(e, t) {
|
|
|
1096
1096
|
...t,
|
|
1097
1097
|
location: fs.env.NODE_ENV !== "production",
|
|
1098
1098
|
jit: !0
|
|
1099
|
-
}), u =
|
|
1099
|
+
}), u = At(a);
|
|
1100
1100
|
return m ? u : vt[r] = u;
|
|
1101
1101
|
} else {
|
|
1102
1102
|
const n = e.cacheKey;
|
|
1103
1103
|
if (n) {
|
|
1104
1104
|
const r = vt[n];
|
|
1105
|
-
return r || (vt[n] =
|
|
1105
|
+
return r || (vt[n] = At(e));
|
|
1106
1106
|
} else
|
|
1107
|
-
return
|
|
1107
|
+
return At(e);
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
1110
|
let ct = null;
|
|
@@ -1124,7 +1124,7 @@ function Ps(e) {
|
|
|
1124
1124
|
return (t) => ct && ct.emit(e, t);
|
|
1125
1125
|
}
|
|
1126
1126
|
const je = {
|
|
1127
|
-
INVALID_ARGUMENT:
|
|
1127
|
+
INVALID_ARGUMENT: Yr,
|
|
1128
1128
|
// 17
|
|
1129
1129
|
INVALID_DATE_ARGUMENT: 18,
|
|
1130
1130
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1158,7 +1158,7 @@ function fn(e) {
|
|
|
1158
1158
|
function Us(e, t, n) {
|
|
1159
1159
|
return [.../* @__PURE__ */ new Set([
|
|
1160
1160
|
n,
|
|
1161
|
-
...
|
|
1161
|
+
...he(t) ? t : te(t) ? Object.keys(t) : X(t) ? [t] : [n]
|
|
1162
1162
|
])];
|
|
1163
1163
|
}
|
|
1164
1164
|
function Hn(e, t, n) {
|
|
@@ -1168,10 +1168,10 @@ function Hn(e, t, n) {
|
|
|
1168
1168
|
if (!a) {
|
|
1169
1169
|
a = [];
|
|
1170
1170
|
let m = [n];
|
|
1171
|
-
for (;
|
|
1171
|
+
for (; he(m); )
|
|
1172
1172
|
m = _n(a, m, t);
|
|
1173
|
-
const u =
|
|
1174
|
-
m = X(u) ? [u] : u,
|
|
1173
|
+
const u = he(t) || !ee(t) ? t : t.default ? t.default : null;
|
|
1174
|
+
m = X(u) ? [u] : u, he(m) && _n(a, m, !1), l.__localeChainCache.set(r, a);
|
|
1175
1175
|
}
|
|
1176
1176
|
return a;
|
|
1177
1177
|
}
|
|
@@ -1197,7 +1197,7 @@ function Vs(e, t, n) {
|
|
|
1197
1197
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1198
1198
|
r = t[t.length - 1] !== "!";
|
|
1199
1199
|
const l = t.replace(/!/g, "");
|
|
1200
|
-
e.push(l), (
|
|
1200
|
+
e.push(l), (he(n) || ee(n)) && n[l] && (r = n[l]);
|
|
1201
1201
|
}
|
|
1202
1202
|
return r;
|
|
1203
1203
|
}
|
|
@@ -1370,7 +1370,7 @@ function Xs(e) {
|
|
|
1370
1370
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1371
1371
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function Ys(e) {
|
|
1374
1374
|
if (e == null)
|
|
1375
1375
|
return "o";
|
|
1376
1376
|
switch (e.charCodeAt(0)) {
|
|
@@ -1395,11 +1395,11 @@ function Zs(e) {
|
|
|
1395
1395
|
}
|
|
1396
1396
|
return "i";
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1398
|
+
function Zs(e) {
|
|
1399
1399
|
const t = e.trim();
|
|
1400
1400
|
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Gs(t) ? Xs(t) : "*" + t;
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1402
|
+
function Bs(e) {
|
|
1403
1403
|
const t = [];
|
|
1404
1404
|
let n = -1, r = 0, l = 0, a, m, u, i, g, y, T;
|
|
1405
1405
|
const C = [];
|
|
@@ -1431,7 +1431,7 @@ function Ys(e) {
|
|
|
1431
1431
|
/* Actions.APPEND */
|
|
1432
1432
|
]();
|
|
1433
1433
|
else {
|
|
1434
|
-
if (l = 0, m === void 0 || (m =
|
|
1434
|
+
if (l = 0, m === void 0 || (m = Zs(m), m === !1))
|
|
1435
1435
|
return !1;
|
|
1436
1436
|
C[
|
|
1437
1437
|
1
|
|
@@ -1449,7 +1449,7 @@ function Ys(e) {
|
|
|
1449
1449
|
}
|
|
1450
1450
|
for (; r !== null; )
|
|
1451
1451
|
if (n++, a = e[n], !(a === "\\" && F())) {
|
|
1452
|
-
if (i =
|
|
1452
|
+
if (i = Ys(a), T = Xe[r], g = T[i] || T.l || 8, g === 8 || (r = g[0], g[1] !== void 0 && (y = C[g[1]], y && (u = a, y() === !1))))
|
|
1453
1453
|
return;
|
|
1454
1454
|
if (r === 7)
|
|
1455
1455
|
return t;
|
|
@@ -1459,11 +1459,11 @@ const vn = /* @__PURE__ */ new Map();
|
|
|
1459
1459
|
function Hs(e, t) {
|
|
1460
1460
|
return te(e) ? e[t] : null;
|
|
1461
1461
|
}
|
|
1462
|
-
function
|
|
1462
|
+
function Js(e, t) {
|
|
1463
1463
|
if (!te(e))
|
|
1464
1464
|
return null;
|
|
1465
1465
|
let n = vn.get(t);
|
|
1466
|
-
if (n || (n =
|
|
1466
|
+
if (n || (n = Bs(t), n && vn.set(t, n)), !n)
|
|
1467
1467
|
return null;
|
|
1468
1468
|
const r = n.length;
|
|
1469
1469
|
let l = e, a = 0;
|
|
@@ -1475,21 +1475,21 @@ function $s(e, t) {
|
|
|
1475
1475
|
}
|
|
1476
1476
|
return l;
|
|
1477
1477
|
}
|
|
1478
|
-
const
|
|
1478
|
+
const $s = "10.0.5", Ot = -1, Ct = "en-US", pn = "", bn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1479
1479
|
function Ks() {
|
|
1480
1480
|
return {
|
|
1481
1481
|
upper: (e, t) => t === "text" && X(e) ? e.toUpperCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1482
1482
|
lower: (e, t) => t === "text" && X(e) ? e.toLowerCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1483
|
-
capitalize: (e, t) => t === "text" && X(e) ?
|
|
1483
|
+
capitalize: (e, t) => t === "text" && X(e) ? bn(e) : t === "vnode" && te(e) && "__v_isVNode" in e ? bn(e.children) : e
|
|
1484
1484
|
};
|
|
1485
1485
|
}
|
|
1486
|
-
let
|
|
1486
|
+
let Jn;
|
|
1487
1487
|
function zs(e) {
|
|
1488
|
-
|
|
1488
|
+
Jn = e;
|
|
1489
1489
|
}
|
|
1490
|
-
let
|
|
1490
|
+
let $n;
|
|
1491
1491
|
function Qs(e) {
|
|
1492
|
-
|
|
1492
|
+
$n = e;
|
|
1493
1493
|
}
|
|
1494
1494
|
let Kn;
|
|
1495
1495
|
function qs(e) {
|
|
@@ -1500,12 +1500,12 @@ const eo = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
|
1500
1500
|
zn = e;
|
|
1501
1501
|
}, to = /* @__NO_SIDE_EFFECTS__ */ () => zn;
|
|
1502
1502
|
let Qn = null;
|
|
1503
|
-
const
|
|
1503
|
+
const hn = (e) => {
|
|
1504
1504
|
Qn = e;
|
|
1505
1505
|
}, no = () => Qn;
|
|
1506
1506
|
let gn = 0;
|
|
1507
1507
|
function ro(e = {}) {
|
|
1508
|
-
const t = de(e.onWarn) ? e.onWarn : Gr, n = X(e.version) ? e.version :
|
|
1508
|
+
const t = de(e.onWarn) ? e.onWarn : Gr, n = X(e.version) ? e.version : $s, r = X(e.locale) || de(e.locale) ? e.locale : Ct, l = de(r) ? Ct : r, a = he(e.fallbackLocale) || ee(e.fallbackLocale) || X(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, m = ee(e.messages) ? e.messages : Rt(l), u = ee(e.datetimeFormats) ? e.datetimeFormats : Rt(l), i = ee(e.numberFormats) ? e.numberFormats : Rt(l), g = Ie(oe(), e.modifiers, Ks()), y = e.pluralRules || oe(), T = de(e.missing) ? e.missing : null, C = pe(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, F = pe(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, D = !!e.fallbackFormat, A = !!e.unresolving, w = de(e.postTranslation) ? e.postTranslation : null, f = ee(e.processor) ? e.processor : null, b = pe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, c = de(e.messageCompiler) ? e.messageCompiler : Jn, h = de(e.messageResolver) ? e.messageResolver : $n || Hs, I = de(e.localeFallbacker) ? e.localeFallbacker : Kn || Us, v = te(e.fallbackContext) ? e.fallbackContext : void 0, R = e, L = te(R.__datetimeFormatters) ? R.__datetimeFormatters : /* @__PURE__ */ new Map(), B = te(R.__numberFormatters) ? R.__numberFormatters : /* @__PURE__ */ new Map(), V = te(R.__meta) ? R.__meta : {};
|
|
1509
1509
|
gn++;
|
|
1510
1510
|
const d = {
|
|
1511
1511
|
version: n,
|
|
@@ -1519,19 +1519,19 @@ function ro(e = {}) {
|
|
|
1519
1519
|
missingWarn: C,
|
|
1520
1520
|
fallbackWarn: F,
|
|
1521
1521
|
fallbackFormat: D,
|
|
1522
|
-
unresolving:
|
|
1522
|
+
unresolving: A,
|
|
1523
1523
|
postTranslation: w,
|
|
1524
1524
|
processor: f,
|
|
1525
|
-
warnHtmlMessage:
|
|
1525
|
+
warnHtmlMessage: b,
|
|
1526
1526
|
escapeParameter: S,
|
|
1527
1527
|
messageCompiler: c,
|
|
1528
|
-
messageResolver:
|
|
1528
|
+
messageResolver: h,
|
|
1529
1529
|
localeFallbacker: I,
|
|
1530
1530
|
fallbackContext: v,
|
|
1531
1531
|
onWarn: t,
|
|
1532
1532
|
__meta: V
|
|
1533
1533
|
};
|
|
1534
|
-
return d.datetimeFormats = u, d.numberFormats = i, d.__datetimeFormatters =
|
|
1534
|
+
return d.datetimeFormats = u, d.numberFormats = i, d.__datetimeFormatters = L, d.__numberFormatters = B, __INTLIFY_PROD_DEVTOOLS__ && ws(d, n, V), d;
|
|
1535
1535
|
}
|
|
1536
1536
|
const Rt = (e) => ({ [e]: oe() });
|
|
1537
1537
|
function Qt(e, t, n, r, l) {
|
|
@@ -1561,7 +1561,7 @@ function oo(e, t) {
|
|
|
1561
1561
|
function In(e, ...t) {
|
|
1562
1562
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: m } = e, { __datetimeFormatters: u } = e, [i, g, y, T] = jt(...t), C = pe(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1563
1563
|
pe(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1564
|
-
const F = !!y.part, D = zt(e, y),
|
|
1564
|
+
const F = !!y.part, D = zt(e, y), A = m(
|
|
1565
1565
|
e,
|
|
1566
1566
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1567
1567
|
l,
|
|
@@ -1569,16 +1569,16 @@ function In(e, ...t) {
|
|
|
1569
1569
|
);
|
|
1570
1570
|
if (!X(i) || i === "")
|
|
1571
1571
|
return new Intl.DateTimeFormat(D, T).format(g);
|
|
1572
|
-
let w = {}, f,
|
|
1572
|
+
let w = {}, f, b = null;
|
|
1573
1573
|
const S = "datetime format";
|
|
1574
|
-
for (let I = 0; I <
|
|
1574
|
+
for (let I = 0; I < A.length && (f = A[I], w = n[f] || {}, b = w[i], !ee(b)); I++)
|
|
1575
1575
|
Qt(e, i, f, C, S);
|
|
1576
|
-
if (!ee(
|
|
1576
|
+
if (!ee(b) || !X(f))
|
|
1577
1577
|
return r ? Ot : i;
|
|
1578
1578
|
let c = `${f}__${i}`;
|
|
1579
1579
|
Nt(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
1580
|
-
let
|
|
1581
|
-
return
|
|
1580
|
+
let h = u.get(c);
|
|
1581
|
+
return h || (h = new Intl.DateTimeFormat(f, Ie({}, b, T)), u.set(c, h)), F ? h.formatToParts(g) : h.format(g);
|
|
1582
1582
|
}
|
|
1583
1583
|
const qn = [
|
|
1584
1584
|
"localeMatcher",
|
|
@@ -1638,7 +1638,7 @@ function yn(e, t, n) {
|
|
|
1638
1638
|
function En(e, ...t) {
|
|
1639
1639
|
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: m } = e, { __numberFormatters: u } = e, [i, g, y, T] = Ut(...t), C = pe(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1640
1640
|
pe(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1641
|
-
const F = !!y.part, D = zt(e, y),
|
|
1641
|
+
const F = !!y.part, D = zt(e, y), A = m(
|
|
1642
1642
|
e,
|
|
1643
1643
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1644
1644
|
l,
|
|
@@ -1646,16 +1646,16 @@ function En(e, ...t) {
|
|
|
1646
1646
|
);
|
|
1647
1647
|
if (!X(i) || i === "")
|
|
1648
1648
|
return new Intl.NumberFormat(D, T).format(g);
|
|
1649
|
-
let w = {}, f,
|
|
1649
|
+
let w = {}, f, b = null;
|
|
1650
1650
|
const S = "number format";
|
|
1651
|
-
for (let I = 0; I <
|
|
1651
|
+
for (let I = 0; I < A.length && (f = A[I], w = n[f] || {}, b = w[i], !ee(b)); I++)
|
|
1652
1652
|
Qt(e, i, f, C, S);
|
|
1653
|
-
if (!ee(
|
|
1653
|
+
if (!ee(b) || !X(f))
|
|
1654
1654
|
return r ? Ot : i;
|
|
1655
1655
|
let c = `${f}__${i}`;
|
|
1656
1656
|
Nt(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
1657
|
-
let
|
|
1658
|
-
return
|
|
1657
|
+
let h = u.get(c);
|
|
1658
|
+
return h || (h = new Intl.NumberFormat(f, Ie({}, b, T)), u.set(c, h)), F ? h.formatToParts(g) : h.format(g);
|
|
1659
1659
|
}
|
|
1660
1660
|
const er = [
|
|
1661
1661
|
"localeMatcher",
|
|
@@ -1696,7 +1696,7 @@ function Cn(e, t, n) {
|
|
|
1696
1696
|
r.__numberFormatters.has(a) && r.__numberFormatters.delete(a);
|
|
1697
1697
|
}
|
|
1698
1698
|
}
|
|
1699
|
-
const ao = (e) => e, lo = (e) => "", io = "text", co = (e) => e.length === 0 ? "" :
|
|
1699
|
+
const ao = (e) => e, lo = (e) => "", io = "text", co = (e) => e.length === 0 ? "" : Jt(e), uo = Wr;
|
|
1700
1700
|
function Nn(e, t) {
|
|
1701
1701
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1702
1702
|
}
|
|
@@ -1711,23 +1711,23 @@ function _o(e = {}) {
|
|
|
1711
1711
|
const t = e.locale, n = mo(e), r = te(e.pluralRules) && X(t) && de(e.pluralRules[t]) ? e.pluralRules[t] : Nn, l = te(e.pluralRules) && X(t) && de(e.pluralRules[t]) ? Nn : void 0, a = (f) => f[r(n, f.length, l)], m = e.list || [], u = (f) => m[f], i = e.named || oe();
|
|
1712
1712
|
ge(e.pluralIndex) && fo(n, i);
|
|
1713
1713
|
const g = (f) => i[f];
|
|
1714
|
-
function y(f,
|
|
1715
|
-
const S = de(e.messages) ? e.messages(f, !!
|
|
1714
|
+
function y(f, b) {
|
|
1715
|
+
const S = de(e.messages) ? e.messages(f, !!b) : te(e.messages) ? e.messages[f] : !1;
|
|
1716
1716
|
return S || (e.parent ? e.parent.message(f) : lo);
|
|
1717
1717
|
}
|
|
1718
1718
|
const T = (f) => e.modifiers ? e.modifiers[f] : ao, C = ee(e.processor) && de(e.processor.normalize) ? e.processor.normalize : co, F = ee(e.processor) && de(e.processor.interpolate) ? e.processor.interpolate : uo, D = ee(e.processor) && X(e.processor.type) ? e.processor.type : io, w = {
|
|
1719
1719
|
list: u,
|
|
1720
1720
|
named: g,
|
|
1721
1721
|
plural: a,
|
|
1722
|
-
linked: (f, ...
|
|
1723
|
-
const [S, c] =
|
|
1724
|
-
let
|
|
1725
|
-
|
|
1722
|
+
linked: (f, ...b) => {
|
|
1723
|
+
const [S, c] = b;
|
|
1724
|
+
let h = "text", I = "";
|
|
1725
|
+
b.length === 1 ? te(S) ? (I = S.modifier || I, h = S.type || h) : X(S) && (I = S || I) : b.length === 2 && (X(S) && (I = S || I), X(c) && (h = c || h));
|
|
1726
1726
|
const v = y(f, !0)(w), R = (
|
|
1727
1727
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1728
|
-
|
|
1728
|
+
h === "vnode" && he(v) && I ? v[0] : v
|
|
1729
1729
|
);
|
|
1730
|
-
return I ? T(I)(R,
|
|
1730
|
+
return I ? T(I)(R, h) : R;
|
|
1731
1731
|
},
|
|
1732
1732
|
message: y,
|
|
1733
1733
|
type: D,
|
|
@@ -1739,27 +1739,27 @@ function _o(e = {}) {
|
|
|
1739
1739
|
}
|
|
1740
1740
|
const Tn = () => "", Te = (e) => de(e);
|
|
1741
1741
|
function On(e, ...t) {
|
|
1742
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale: m, messages: u } = e, [i, g] = xt(...t), y = pe(g.missingWarn) ? g.missingWarn : e.missingWarn, T = pe(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, C = pe(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, F = !!g.resolvedMessage, D = X(g.default) || pe(g.default) ? pe(g.default) ? a ? i : () => i : g.default : n ? a ? i : () => i : null,
|
|
1742
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale: m, messages: u } = e, [i, g] = xt(...t), y = pe(g.missingWarn) ? g.missingWarn : e.missingWarn, T = pe(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, C = pe(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, F = !!g.resolvedMessage, D = X(g.default) || pe(g.default) ? pe(g.default) ? a ? i : () => i : g.default : n ? a ? i : () => i : null, A = n || D != null && (X(D) || de(D)), w = zt(e, g);
|
|
1743
1743
|
C && vo(g);
|
|
1744
|
-
let [f,
|
|
1744
|
+
let [f, b, S] = F ? [
|
|
1745
1745
|
i,
|
|
1746
1746
|
w,
|
|
1747
1747
|
u[w] || oe()
|
|
1748
|
-
] : tr(e, i, w, m, T, y), c = f,
|
|
1749
|
-
if (!F && !(X(c) || ot(c) || Te(c)) &&
|
|
1748
|
+
] : tr(e, i, w, m, T, y), c = f, h = i;
|
|
1749
|
+
if (!F && !(X(c) || ot(c) || Te(c)) && A && (c = D, h = c), !F && (!(X(c) || ot(c) || Te(c)) || !X(b)))
|
|
1750
1750
|
return l ? Ot : i;
|
|
1751
1751
|
let I = !1;
|
|
1752
1752
|
const v = () => {
|
|
1753
1753
|
I = !0;
|
|
1754
|
-
}, R = Te(c) ? c : nr(e, i,
|
|
1754
|
+
}, R = Te(c) ? c : nr(e, i, b, c, h, v);
|
|
1755
1755
|
if (I)
|
|
1756
1756
|
return c;
|
|
1757
|
-
const
|
|
1757
|
+
const L = ho(e, b, S, g), B = _o(L), V = po(e, R, B), d = r ? r(V, i) : V;
|
|
1758
1758
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1759
1759
|
const N = {
|
|
1760
1760
|
timestamp: Date.now(),
|
|
1761
1761
|
key: X(i) ? i : Te(c) ? c.key : "",
|
|
1762
|
-
locale:
|
|
1762
|
+
locale: b || (Te(c) ? c.locale : ""),
|
|
1763
1763
|
format: X(c) ? c : Te(c) ? c.source : "",
|
|
1764
1764
|
message: d
|
|
1765
1765
|
};
|
|
@@ -1768,7 +1768,7 @@ function On(e, ...t) {
|
|
|
1768
1768
|
return d;
|
|
1769
1769
|
}
|
|
1770
1770
|
function vo(e) {
|
|
1771
|
-
|
|
1771
|
+
he(e.list) ? e.list = e.list.map((t) => X(t) ? ln(t) : t) : te(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1772
1772
|
X(e.named[t]) && (e.named[t] = ln(e.named[t]));
|
|
1773
1773
|
});
|
|
1774
1774
|
}
|
|
@@ -1776,7 +1776,7 @@ function tr(e, t, n, r, l, a) {
|
|
|
1776
1776
|
const { messages: m, onWarn: u, messageResolver: i, localeFallbacker: g } = e, y = g(e, r, n);
|
|
1777
1777
|
let T = oe(), C, F = null;
|
|
1778
1778
|
const D = "translate";
|
|
1779
|
-
for (let
|
|
1779
|
+
for (let A = 0; A < y.length && (C = y[A], T = m[C] || oe(), (F = i(T, t)) === null && (F = T[t]), !(X(F) || ot(F) || Te(F))); A++)
|
|
1780
1780
|
if (!oo(C, y)) {
|
|
1781
1781
|
const w = Qt(
|
|
1782
1782
|
e,
|
|
@@ -1800,7 +1800,7 @@ function nr(e, t, n, r, l, a) {
|
|
|
1800
1800
|
const g = () => r;
|
|
1801
1801
|
return g.locale = n, g.key = t, g;
|
|
1802
1802
|
}
|
|
1803
|
-
const i = m(r,
|
|
1803
|
+
const i = m(r, bo(e, n, l, r, u, a));
|
|
1804
1804
|
return i.locale = n, i.key = t, i.source = r, i;
|
|
1805
1805
|
}
|
|
1806
1806
|
function po(e, t, n) {
|
|
@@ -1811,9 +1811,9 @@ function xt(...e) {
|
|
|
1811
1811
|
if (!X(t) && !ge(t) && !Te(t) && !ot(t))
|
|
1812
1812
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1813
1813
|
const a = ge(t) ? String(t) : (Te(t), t);
|
|
1814
|
-
return ge(n) ? l.plural = n : X(n) ? l.default = n : ee(n) && !Nt(n) ? l.named = n :
|
|
1814
|
+
return ge(n) ? l.plural = n : X(n) ? l.default = n : ee(n) && !Nt(n) ? l.named = n : he(n) && (l.list = n), ge(r) ? l.plural = r : X(r) ? l.default = r : ee(r) && Ie(l, r), [a, l];
|
|
1815
1815
|
}
|
|
1816
|
-
function
|
|
1816
|
+
function bo(e, t, n, r, l, a) {
|
|
1817
1817
|
return {
|
|
1818
1818
|
locale: t,
|
|
1819
1819
|
key: n,
|
|
@@ -1824,14 +1824,14 @@ function ho(e, t, n, r, l, a) {
|
|
|
1824
1824
|
onCacheKey: (m) => Fr(t, n, m)
|
|
1825
1825
|
};
|
|
1826
1826
|
}
|
|
1827
|
-
function
|
|
1827
|
+
function ho(e, t, n, r) {
|
|
1828
1828
|
const { modifiers: l, pluralRules: a, messageResolver: m, fallbackLocale: u, fallbackWarn: i, missingWarn: g, fallbackContext: y } = e, C = {
|
|
1829
1829
|
locale: t,
|
|
1830
1830
|
modifiers: l,
|
|
1831
1831
|
pluralRules: a,
|
|
1832
1832
|
messages: (F, D) => {
|
|
1833
|
-
let
|
|
1834
|
-
if (
|
|
1833
|
+
let A = m(n, F);
|
|
1834
|
+
if (A == null && (y || D)) {
|
|
1835
1835
|
const [, , w] = tr(
|
|
1836
1836
|
y || e,
|
|
1837
1837
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
@@ -1841,24 +1841,24 @@ function bo(e, t, n, r) {
|
|
|
1841
1841
|
i,
|
|
1842
1842
|
g
|
|
1843
1843
|
);
|
|
1844
|
-
|
|
1844
|
+
A = m(w, F);
|
|
1845
1845
|
}
|
|
1846
|
-
if (X(
|
|
1846
|
+
if (X(A) || ot(A)) {
|
|
1847
1847
|
let w = !1;
|
|
1848
|
-
const
|
|
1848
|
+
const b = nr(e, F, t, A, F, () => {
|
|
1849
1849
|
w = !0;
|
|
1850
1850
|
});
|
|
1851
|
-
return w ? Tn :
|
|
1852
|
-
} else return Te(
|
|
1851
|
+
return w ? Tn : b;
|
|
1852
|
+
} else return Te(A) ? A : Tn;
|
|
1853
1853
|
}
|
|
1854
1854
|
};
|
|
1855
1855
|
return e.processor && (C.processor = e.processor), r.list && (C.list = r.list), r.named && (C.named = r.named), ge(r.plural) && (C.pluralIndex = r.plural), C;
|
|
1856
1856
|
}
|
|
1857
1857
|
_s();
|
|
1858
|
-
var go = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_8f315c6e-a7c7-4a04-852b-6b8a9e29a669", 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_8f315c6e-a7c7-4a04-852b-6b8a9e29a669", 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.0", 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: "1756", ACTIONS_ORCHESTRATION_ID: "d3500c79-c396-49f1-ba8d-9676cf349dcd.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: "20261004.327.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_8f315c6e-a7c7-4a04-852b-6b8a9e29a669", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:11041", 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: "38007943781", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "644f737050ca2d135de648c5c3259880c00d3fa6", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.8/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.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9kZXZcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTE2MTMyNzcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MTU5MTA3NywiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjBiYWU0YjE3LWU2M2ItNTUzYS1hYjE2LTc2MzI1ZDU1MGFlOSIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiMDlmNzZkOGFjNWU2YTA3MDc1NDI3NDllMWQ1Njg3YmYxZWFkNWYyYyIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MTU5MDc3Nywib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJDYXN0YS1tZXJlXCIsXCJhY3Rvcl9pZFwiOlwiODIyOTgwMTdcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiMTE0MDgwOTk0MTg2XCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluXCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCIwOWY3NmQ4YWM1ZTZhMDcwNzU0Mjc0OWUxZDU2ODdiZjFlYWQ1ZjJjXCIsXCJyZWZcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjM4MDA3OTQzNzgxXCIsXCJydW5fbnVtYmVyXCI6XCIxODlcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCI2NDRmNzM3MDUwY2EyZDEzNWRlNjQ4YzVjMzI1OTg4MGMwMGQzZmE2XCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy9kZXZcIixcIndvcmtmbG93X3NoYVwiOlwiNjQ0ZjczNzA1MGNhMmQxMzVkZTY0OGM1YzMyNTk4ODBjMDBkM2ZhNlwifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvaHJtLXNlcnZpY2U6cmVmOnJlZnMvaGVhZHMvZGV2Iiwib3JjaF9pZCI6ImQzNTAwYzc5LWMzOTYtNDlmMS1iYThkLTk2NzZjZjM0OWRjZC5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiZDM1MDBjNzktYzM5Ni00OWYxLWJhOGQtOTY3NmNmMzQ5ZGNkIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMzgwMDc5NDM3ODEiLCJydW5fbnVtYmVyIjoiMTg5IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDE4ODcyNSIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOmQzNTAwYzc5LWMzOTYtNDlmMS1iYThkLTk2NzZjZjM0OWRjZDowYmFlNGIxNy1lNjNiLTU1M2EtYWIxNi03NjMyNWQ1NTBhZTkgQWN0aW9ucy5SdW5uZXI6ZDM1MDBjNzktYzM5Ni00OWYxLWJhOGQtOTY3NmNmMzQ5ZGNkOjBiYWU0YjE3LWU2M2ItNTUzYS1hYjE2LTc2MzI1ZDU1MGFlOSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czpkMzUwMGM3OS1jMzk2LTQ5ZjEtYmE4ZC05Njc2Y2YzNDlkY2Q6MGJhZTRiMTctZTYzYi01NTNhLWFiMTYtNzYzMjVkNTUwYWU5IGdlbmVyYXRlX2lkX3Rva2VuOmQzNTAwYzc5LWMzOTYtNDlmMS1iYThkLTk2NzZjZjM0OWRjZDowYmFlNGIxNy1lNjNiLTU1M2EtYWIxNi03NjMyNWQ1NTBhZTkgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiI2NDRmNzM3MDUwY2EyZDEzNWRlNjQ4YzVjMzI1OTg4MGMwMGQzZmE2IiwidHJ1c3RfdGllciI6IjEifQ.M1NYSgvSl3eZsK8ReGeryilRIaCQzKd6fmh6lpHDZ4wDnX066mlJcu8gNs4_0vWqURNM0a5ntzJHt4aW5HoP853w6dRAyrCYmh5xgTwNZ00bqdvS8I-4Xr68UctW79YhW8DGtCMqJl-1pZ-Q3Ksi8hehAmSD00_ysKKRDD4cx-OeYKQGcjlx7bNPPcMjevz6flPzl-jtETXngaaupj9sQfiEElLWeOsXm1lK29JK0xnHKyz86OcMq8-ooeTM8JPX9VklIthcyJTkAn8EjG73eFX9mx_L300JxbrChQg_u9onYzFOnuhbY-YO8FQWkWM8Dg5AFk4DOLp_6FuwkXnHnA", 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_b1cff68b-acb9-45b1-b8cb-72fa1397f153", INVOCATION_ID: "b2aaf2f83dd242d39ceaf4fad2f0623d", 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: "189", GITHUB_TRIGGERING_ACTOR: "Casta-mere", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000188725", 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.0-dev.6", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", GITHUB_SHA: "644f737050ca2d135de648c5c3259880c00d3fa6", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/dev", GITHUB_ACTOR: "Casta-mere", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_8f315c6e-a7c7-4a04-852b-6b8a9e29a669", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "82298017", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/205//idtoken/d3500c79-c396-49f1-ba8d-9676cf349dcd/0bae4b17-e63b-553a-ab16-76325d550ae9?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_8f315c6e-a7c7-4a04-852b-6b8a9e29a669", 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_8f315c6e-a7c7-4a04-852b-6b8a9e29a669", 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_8f315c6e-a7c7-4a04-852b-6b8a9e29a669", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1858
|
+
var go = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_6537df77-27e9-4600-b86d-aba6b178b565", 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_6537df77-27e9-4600-b86d-aba6b178b565", 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.0", 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: "1769", ACTIONS_ORCHESTRATION_ID: "a838dc17-bb98-4d5f-bb16-60a37719d8ce.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: "20261004.327.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_6537df77-27e9-4600-b86d-aba6b178b565", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:11518", 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: "38229864137", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "27b3bd12532020f9a93f368cd7c19ee475e03955", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.8/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/KDI-5086-hrm-schedule", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9LREktNTA4Ni1ocm0tc2NoZWR1bGVcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTE4MTkzNzQsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MTc5NzE3NCwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImYxYzRmOGYxLTQxMjUtNWIyNS1iNWVjLWI5M2M3ZWJiNzcxMyIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiMDlmNzZkOGFjNWU2YTA3MDc1NDI3NDllMWQ1Njg3YmYxZWFkNWYyYyIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MTc5Njg3NCwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJZeVQ3Nzg2XCIsXCJhY3Rvcl9pZFwiOlwiOTcwMDMxMjVcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiMTE0NzQ2NDMxMDAxXCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluXCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCIwOWY3NmQ4YWM1ZTZhMDcwNzU0Mjc0OWUxZDU2ODdiZjFlYWQ1ZjJjXCIsXCJyZWZcIjpcInJlZnMvaGVhZHMvS0RJLTUwODYtaHJtLXNjaGVkdWxlXCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjM4MjI5ODY0MTM3XCIsXCJydW5fbnVtYmVyXCI6XCIxOTFcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCIyN2IzYmQxMjUzMjAyMGY5YTkzZjM2OGNkN2MxOWVlNDc1ZTAzOTU1XCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy9LREktNTA4Ni1ocm0tc2NoZWR1bGVcIixcIndvcmtmbG93X3NoYVwiOlwiMjdiM2JkMTI1MzIwMjBmOWE5M2YzNjhjZDdjMTllZTQ3NWUwMzk1NVwifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvaHJtLXNlcnZpY2U6cmVmOnJlZnMvaGVhZHMvS0RJLTUwODYtaHJtLXNjaGVkdWxlIiwib3JjaF9pZCI6ImE4MzhkYzE3LWJiOTgtNGQ1Zi1iYjE2LTYwYTM3NzE5ZDhjZS5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiYTgzOGRjMTctYmI5OC00ZDVmLWJiMTYtNjBhMzc3MTlkOGNlIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMzgyMjk4NjQxMzciLCJydW5fbnVtYmVyIjoiMTkxIiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDE5Mjc5MCIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOmE4MzhkYzE3LWJiOTgtNGQ1Zi1iYjE2LTYwYTM3NzE5ZDhjZTpmMWM0ZjhmMS00MTI1LTViMjUtYjVlYy1iOTNjN2ViYjc3MTMgQWN0aW9ucy5SdW5uZXI6YTgzOGRjMTctYmI5OC00ZDVmLWJiMTYtNjBhMzc3MTlkOGNlOmYxYzRmOGYxLTQxMjUtNWIyNS1iNWVjLWI5M2M3ZWJiNzcxMyBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czphODM4ZGMxNy1iYjk4LTRkNWYtYmIxNi02MGEzNzcxOWQ4Y2U6ZjFjNGY4ZjEtNDEyNS01YjI1LWI1ZWMtYjkzYzdlYmI3NzEzIGdlbmVyYXRlX2lkX3Rva2VuOmE4MzhkYzE3LWJiOTgtNGQ1Zi1iYjE2LTYwYTM3NzE5ZDhjZTpmMWM0ZjhmMS00MTI1LTViMjUtYjVlYy1iOTNjN2ViYjc3MTMgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiIyN2IzYmQxMjUzMjAyMGY5YTkzZjM2OGNkN2MxOWVlNDc1ZTAzOTU1IiwidHJ1c3RfdGllciI6IjEifQ.GYUl6RH1GXK9WLoKEzxpTemgHm8RSuIK3H3nJ13DaDtaOqab5xmdUTus1rN7kbvEU-hHoiiopSfU8HqDN0P0f2RxCSU1lZbMXB0lSxZchTqyjMXYFk5lVFAJf_Wiif96scF8VTJ6TnAOvQLDLty_1LGdtn3pYBSPtM9evNabe_63_WvEyQv0OpXyaBKYvyTs9wpaQvwmkz1SVZK9dTASNF-gNzzrFUB_azOYHh5EjofH_jOtmIo9H3FAhFsb8DIgvFsi3pIFr6D3Ney-FaB8UJJeZkDUXSGAraLNPK3qYuZpvuisLiJabf5xAGLakCd0uj7ZDzJKdPsydjkIRRP1jQ", 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_ba804b0a-8378-45f5-bf28-2f5387680eb4", INVOCATION_ID: "4a0a1ec3de384f73889213823514a3c9", 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: "191", GITHUB_TRIGGERING_ACTOR: "YyT7786", 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 1000192790", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "KDI-5086-hrm-schedule", 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.0-dev.8", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", GITHUB_SHA: "27b3bd12532020f9a93f368cd7c19ee475e03955", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/KDI-5086-hrm-schedule", GITHUB_ACTOR: "YyT7786", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_6537df77-27e9-4600-b86d-aba6b178b565", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "97003125", 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/38//idtoken/a838dc17-bb98-4d5f-bb16-60a37719d8ce/f1c4f8f1-4125-5b25-b5ec-b93c7ebb7713?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_6537df77-27e9-4600-b86d-aba6b178b565", 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_6537df77-27e9-4600-b86d-aba6b178b565", 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_6537df77-27e9-4600-b86d-aba6b178b565", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1859
1859
|
const Io = "10.0.5";
|
|
1860
1860
|
function yo() {
|
|
1861
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
1861
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Be().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Be().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Be().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Be().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1862
1862
|
}
|
|
1863
1863
|
const at = {
|
|
1864
1864
|
// composer module errors
|
|
@@ -1876,12 +1876,12 @@ const at = {
|
|
|
1876
1876
|
function ut(e, ...t) {
|
|
1877
1877
|
return Tt(e, null, void 0);
|
|
1878
1878
|
}
|
|
1879
|
-
const Vt = /* @__PURE__ */
|
|
1879
|
+
const Vt = /* @__PURE__ */ Je("__translateVNode"), Wt = /* @__PURE__ */ Je("__datetimeParts"), Gt = /* @__PURE__ */ Je("__numberParts"), Eo = Je("__setPluralRules"), rr = /* @__PURE__ */ Je("__injectWithOption"), Xt = /* @__PURE__ */ Je("__dispose");
|
|
1880
1880
|
function mt(e) {
|
|
1881
1881
|
if (!te(e))
|
|
1882
1882
|
return e;
|
|
1883
1883
|
for (const t in e)
|
|
1884
|
-
if (
|
|
1884
|
+
if (Le(e, t))
|
|
1885
1885
|
if (!t.includes("."))
|
|
1886
1886
|
te(e[t]) && mt(e[t]);
|
|
1887
1887
|
else {
|
|
@@ -1899,8 +1899,8 @@ function mt(e) {
|
|
|
1899
1899
|
return e;
|
|
1900
1900
|
}
|
|
1901
1901
|
function sr(e, t) {
|
|
1902
|
-
const { messages: n, __i18n: r, messageResolver: l, flatJson: a } = t, m = ee(n) ? n :
|
|
1903
|
-
if (
|
|
1902
|
+
const { messages: n, __i18n: r, messageResolver: l, flatJson: a } = t, m = ee(n) ? n : he(r) ? oe() : { [e]: oe() };
|
|
1903
|
+
if (he(r) && r.forEach((u) => {
|
|
1904
1904
|
if ("locale" in u && "resource" in u) {
|
|
1905
1905
|
const { locale: i, resource: g } = u;
|
|
1906
1906
|
i ? (m[i] = m[i] || oe(), yt(g, m[i])) : yt(g, m);
|
|
@@ -1908,7 +1908,7 @@ function sr(e, t) {
|
|
|
1908
1908
|
X(u) && yt(JSON.parse(u), m);
|
|
1909
1909
|
}), l == null && a)
|
|
1910
1910
|
for (const u in m)
|
|
1911
|
-
|
|
1911
|
+
Le(m, u) && mt(m[u]);
|
|
1912
1912
|
return m;
|
|
1913
1913
|
}
|
|
1914
1914
|
function or(e) {
|
|
@@ -1942,15 +1942,15 @@ function Co(e, t, n) {
|
|
|
1942
1942
|
function Sn(e) {
|
|
1943
1943
|
return ue(fr, null, e, 0);
|
|
1944
1944
|
}
|
|
1945
|
-
const
|
|
1945
|
+
const Ln = "__INTLIFY_META__", An = () => [], No = () => !1;
|
|
1946
1946
|
let kn = 0;
|
|
1947
1947
|
function Rn(e) {
|
|
1948
|
-
return (t, n, r, l) => e(n, r,
|
|
1948
|
+
return (t, n, r, l) => e(n, r, Zt() || void 0, l);
|
|
1949
1949
|
}
|
|
1950
1950
|
const To = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1951
|
-
const e =
|
|
1951
|
+
const e = Zt();
|
|
1952
1952
|
let t = null;
|
|
1953
|
-
return e && (t = or(e)[
|
|
1953
|
+
return e && (t = or(e)[Ln]) ? { [Ln]: t } : null;
|
|
1954
1954
|
};
|
|
1955
1955
|
function Oo(e = {}) {
|
|
1956
1956
|
const { __root: t, __injectWithOption: n } = e, r = t === void 0, l = e.flatJson, a = on ? rt : mr;
|
|
@@ -1960,26 +1960,26 @@ function Oo(e = {}) {
|
|
|
1960
1960
|
t && m ? t.locale.value : X(e.locale) ? e.locale : Ct
|
|
1961
1961
|
), i = a(
|
|
1962
1962
|
// prettier-ignore
|
|
1963
|
-
t && m ? t.fallbackLocale.value : X(e.fallbackLocale) ||
|
|
1963
|
+
t && m ? t.fallbackLocale.value : X(e.fallbackLocale) || he(e.fallbackLocale) || ee(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
1964
1964
|
), g = a(sr(u.value, e)), y = a(ee(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), T = a(ee(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
|
|
1965
|
-
let C = t ? t.missingWarn : pe(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, F = t ? t.fallbackWarn : pe(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, D = t ? t.fallbackRoot : pe(e.fallbackRoot) ? e.fallbackRoot : !0,
|
|
1966
|
-
const
|
|
1965
|
+
let C = t ? t.missingWarn : pe(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, F = t ? t.fallbackWarn : pe(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, D = t ? t.fallbackRoot : pe(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.fallbackFormat, w = de(e.missing) ? e.missing : null, f = de(e.missing) ? Rn(e.missing) : null, b = de(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : pe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, c = !!e.escapeParameter;
|
|
1966
|
+
const h = t ? t.modifiers : ee(e.modifiers) ? e.modifiers : {};
|
|
1967
1967
|
let I = e.pluralRules || t && t.pluralRules, v;
|
|
1968
1968
|
v = (() => {
|
|
1969
|
-
r &&
|
|
1969
|
+
r && hn(null);
|
|
1970
1970
|
const p = {
|
|
1971
1971
|
version: Io,
|
|
1972
1972
|
locale: u.value,
|
|
1973
1973
|
fallbackLocale: i.value,
|
|
1974
1974
|
messages: g.value,
|
|
1975
|
-
modifiers:
|
|
1975
|
+
modifiers: h,
|
|
1976
1976
|
pluralRules: I,
|
|
1977
1977
|
missing: f === null ? void 0 : f,
|
|
1978
1978
|
missingWarn: C,
|
|
1979
1979
|
fallbackWarn: F,
|
|
1980
|
-
fallbackFormat:
|
|
1980
|
+
fallbackFormat: A,
|
|
1981
1981
|
unresolving: !0,
|
|
1982
|
-
postTranslation:
|
|
1982
|
+
postTranslation: b === null ? void 0 : b,
|
|
1983
1983
|
warnHtmlMessage: S,
|
|
1984
1984
|
escapeParameter: c,
|
|
1985
1985
|
messageResolver: e.messageResolver,
|
|
@@ -1988,9 +1988,9 @@ function Oo(e = {}) {
|
|
|
1988
1988
|
};
|
|
1989
1989
|
p.datetimeFormats = y.value, p.numberFormats = T.value, p.__datetimeFormatters = ee(v) ? v.__datetimeFormatters : void 0, p.__numberFormatters = ee(v) ? v.__numberFormatters : void 0;
|
|
1990
1990
|
const E = ro(p);
|
|
1991
|
-
return r &&
|
|
1991
|
+
return r && hn(E), E;
|
|
1992
1992
|
})(), lt(v, u.value, i.value);
|
|
1993
|
-
function
|
|
1993
|
+
function L() {
|
|
1994
1994
|
return [
|
|
1995
1995
|
u.value,
|
|
1996
1996
|
i.value,
|
|
@@ -1999,7 +1999,7 @@ function Oo(e = {}) {
|
|
|
1999
1999
|
T.value
|
|
2000
2000
|
];
|
|
2001
2001
|
}
|
|
2002
|
-
const
|
|
2002
|
+
const B = z({
|
|
2003
2003
|
get: () => u.value,
|
|
2004
2004
|
set: (p) => {
|
|
2005
2005
|
u.value = p, v.locale = u.value;
|
|
@@ -2011,10 +2011,10 @@ function Oo(e = {}) {
|
|
|
2011
2011
|
}
|
|
2012
2012
|
}), d = z(() => g.value), N = /* @__PURE__ */ z(() => y.value), U = /* @__PURE__ */ z(() => T.value);
|
|
2013
2013
|
function x() {
|
|
2014
|
-
return de(
|
|
2014
|
+
return de(b) ? b : null;
|
|
2015
2015
|
}
|
|
2016
2016
|
function j(p) {
|
|
2017
|
-
|
|
2017
|
+
b = p, v.postTranslation = p;
|
|
2018
2018
|
}
|
|
2019
2019
|
function G() {
|
|
2020
2020
|
return w;
|
|
@@ -2022,38 +2022,38 @@ function Oo(e = {}) {
|
|
|
2022
2022
|
function W(p) {
|
|
2023
2023
|
p !== null && (f = Rn(p)), w = p, v.missing = f;
|
|
2024
2024
|
}
|
|
2025
|
-
const
|
|
2026
|
-
|
|
2025
|
+
const Y = (p, E, J, le, Ze, dt) => {
|
|
2026
|
+
L();
|
|
2027
2027
|
let ze;
|
|
2028
2028
|
try {
|
|
2029
2029
|
go.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = t ? no() : void 0), ze = p(v);
|
|
2030
2030
|
} finally {
|
|
2031
2031
|
__INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = void 0);
|
|
2032
2032
|
}
|
|
2033
|
-
if (
|
|
2034
|
-
ge(ze) && ze === Ot ||
|
|
2033
|
+
if (J !== "translate exists" && // for not `te` (e.g `t`)
|
|
2034
|
+
ge(ze) && ze === Ot || J === "translate exists" && !ze) {
|
|
2035
2035
|
const [cr, Ea] = E();
|
|
2036
|
-
return t && D ? le(t) :
|
|
2036
|
+
return t && D ? le(t) : Ze(cr);
|
|
2037
2037
|
} else {
|
|
2038
2038
|
if (dt(ze))
|
|
2039
2039
|
return ze;
|
|
2040
2040
|
throw ut(at.UNEXPECTED_RETURN_TYPE);
|
|
2041
2041
|
}
|
|
2042
2042
|
};
|
|
2043
|
-
function
|
|
2044
|
-
return
|
|
2043
|
+
function Z(...p) {
|
|
2044
|
+
return Y((E) => Reflect.apply(On, null, [E, ...p]), () => xt(...p), "translate", (E) => Reflect.apply(E.t, E, [...p]), (E) => E, (E) => X(E));
|
|
2045
2045
|
}
|
|
2046
2046
|
function ne(...p) {
|
|
2047
|
-
const [E,
|
|
2047
|
+
const [E, J, le] = p;
|
|
2048
2048
|
if (le && !te(le))
|
|
2049
2049
|
throw ut(at.INVALID_ARGUMENT);
|
|
2050
|
-
return
|
|
2050
|
+
return Z(E, J, Ie({ resolvedMessage: !0 }, le || {}));
|
|
2051
2051
|
}
|
|
2052
2052
|
function Q(...p) {
|
|
2053
|
-
return
|
|
2053
|
+
return Y((E) => Reflect.apply(In, null, [E, ...p]), () => jt(...p), "datetime format", (E) => Reflect.apply(E.d, E, [...p]), () => pn, (E) => X(E));
|
|
2054
2054
|
}
|
|
2055
2055
|
function _e(...p) {
|
|
2056
|
-
return
|
|
2056
|
+
return Y((E) => Reflect.apply(En, null, [E, ...p]), () => Ut(...p), "number format", (E) => Reflect.apply(E.n, E, [...p]), () => pn, (E) => X(E));
|
|
2057
2057
|
}
|
|
2058
2058
|
function ce(p) {
|
|
2059
2059
|
return p.map((E) => X(E) || ge(E) || pe(E) ? Sn(String(E)) : E);
|
|
@@ -2064,39 +2064,39 @@ function Oo(e = {}) {
|
|
|
2064
2064
|
type: "vnode"
|
|
2065
2065
|
};
|
|
2066
2066
|
function q(...p) {
|
|
2067
|
-
return
|
|
2068
|
-
let
|
|
2067
|
+
return Y((E) => {
|
|
2068
|
+
let J;
|
|
2069
2069
|
const le = E;
|
|
2070
2070
|
try {
|
|
2071
|
-
le.processor = fe,
|
|
2071
|
+
le.processor = fe, J = Reflect.apply(On, null, [le, ...p]);
|
|
2072
2072
|
} finally {
|
|
2073
2073
|
le.processor = null;
|
|
2074
2074
|
}
|
|
2075
|
-
return
|
|
2076
|
-
}, () => xt(...p), "translate", (E) => E[Vt](...p), (E) => [Sn(E)], (E) =>
|
|
2075
|
+
return J;
|
|
2076
|
+
}, () => xt(...p), "translate", (E) => E[Vt](...p), (E) => [Sn(E)], (E) => he(E));
|
|
2077
2077
|
}
|
|
2078
2078
|
function we(...p) {
|
|
2079
|
-
return
|
|
2079
|
+
return Y((E) => Reflect.apply(En, null, [E, ...p]), () => Ut(...p), "number format", (E) => E[Gt](...p), An, (E) => X(E) || he(E));
|
|
2080
2080
|
}
|
|
2081
2081
|
function K(...p) {
|
|
2082
|
-
return
|
|
2082
|
+
return Y((E) => Reflect.apply(In, null, [E, ...p]), () => jt(...p), "datetime format", (E) => E[Wt](...p), An, (E) => X(E) || he(E));
|
|
2083
2083
|
}
|
|
2084
2084
|
function ve(p) {
|
|
2085
2085
|
I = p, v.pluralRules = I;
|
|
2086
2086
|
}
|
|
2087
|
-
function
|
|
2088
|
-
return
|
|
2087
|
+
function $e(p, E) {
|
|
2088
|
+
return Y(() => {
|
|
2089
2089
|
if (!p)
|
|
2090
2090
|
return !1;
|
|
2091
|
-
const
|
|
2092
|
-
return ot(
|
|
2093
|
-
}, () => [p], "translate exists", (
|
|
2091
|
+
const J = X(E) ? E : u.value, le = Fe(J), Ze = v.messageResolver(le, p);
|
|
2092
|
+
return ot(Ze) || Te(Ze) || X(Ze);
|
|
2093
|
+
}, () => [p], "translate exists", (J) => Reflect.apply(J.te, J, [p, E]), No, (J) => pe(J));
|
|
2094
2094
|
}
|
|
2095
2095
|
function Ke(p) {
|
|
2096
2096
|
let E = null;
|
|
2097
|
-
const
|
|
2098
|
-
for (let le = 0; le <
|
|
2099
|
-
const
|
|
2097
|
+
const J = Hn(v, i.value, u.value);
|
|
2098
|
+
for (let le = 0; le < J.length; le++) {
|
|
2099
|
+
const Ze = g.value[J[le]] || {}, dt = v.messageResolver(Ze, p);
|
|
2100
2100
|
if (dt != null) {
|
|
2101
2101
|
E = dt;
|
|
2102
2102
|
break;
|
|
@@ -2113,20 +2113,20 @@ function Oo(e = {}) {
|
|
|
2113
2113
|
}
|
|
2114
2114
|
function Ne(p, E) {
|
|
2115
2115
|
if (l) {
|
|
2116
|
-
const
|
|
2117
|
-
for (const le in
|
|
2118
|
-
|
|
2119
|
-
E =
|
|
2116
|
+
const J = { [p]: E };
|
|
2117
|
+
for (const le in J)
|
|
2118
|
+
Le(J, le) && mt(J[le]);
|
|
2119
|
+
E = J[p];
|
|
2120
2120
|
}
|
|
2121
2121
|
g.value[p] = E, v.messages = g.value;
|
|
2122
2122
|
}
|
|
2123
|
-
function
|
|
2123
|
+
function Ye(p, E) {
|
|
2124
2124
|
g.value[p] = g.value[p] || {};
|
|
2125
|
-
const
|
|
2125
|
+
const J = { [p]: E };
|
|
2126
2126
|
if (l)
|
|
2127
|
-
for (const le in
|
|
2128
|
-
|
|
2129
|
-
E =
|
|
2127
|
+
for (const le in J)
|
|
2128
|
+
Le(J, le) && mt(J[le]);
|
|
2129
|
+
E = J[p], yt(E, g.value[p]), v.messages = g.value;
|
|
2130
2130
|
}
|
|
2131
2131
|
function O(p) {
|
|
2132
2132
|
return y.value[p] || {};
|
|
@@ -2153,7 +2153,7 @@ function Oo(e = {}) {
|
|
|
2153
2153
|
}));
|
|
2154
2154
|
const P = {
|
|
2155
2155
|
id: kn,
|
|
2156
|
-
locale:
|
|
2156
|
+
locale: B,
|
|
2157
2157
|
fallbackLocale: V,
|
|
2158
2158
|
get inheritLocale() {
|
|
2159
2159
|
return m;
|
|
@@ -2166,7 +2166,7 @@ function Oo(e = {}) {
|
|
|
2166
2166
|
},
|
|
2167
2167
|
messages: d,
|
|
2168
2168
|
get modifiers() {
|
|
2169
|
-
return
|
|
2169
|
+
return h;
|
|
2170
2170
|
},
|
|
2171
2171
|
get pluralRules() {
|
|
2172
2172
|
return I || {};
|
|
@@ -2193,10 +2193,10 @@ function Oo(e = {}) {
|
|
|
2193
2193
|
D = p;
|
|
2194
2194
|
},
|
|
2195
2195
|
get fallbackFormat() {
|
|
2196
|
-
return
|
|
2196
|
+
return A;
|
|
2197
2197
|
},
|
|
2198
2198
|
set fallbackFormat(p) {
|
|
2199
|
-
|
|
2199
|
+
A = p, v.fallbackFormat = A;
|
|
2200
2200
|
},
|
|
2201
2201
|
get warnHtmlMessage() {
|
|
2202
2202
|
return S;
|
|
@@ -2210,17 +2210,17 @@ function Oo(e = {}) {
|
|
|
2210
2210
|
set escapeParameter(p) {
|
|
2211
2211
|
c = p, v.escapeParameter = p;
|
|
2212
2212
|
},
|
|
2213
|
-
t:
|
|
2213
|
+
t: Z,
|
|
2214
2214
|
getLocaleMessage: Fe,
|
|
2215
2215
|
setLocaleMessage: Ne,
|
|
2216
|
-
mergeLocaleMessage:
|
|
2216
|
+
mergeLocaleMessage: Ye,
|
|
2217
2217
|
getPostTranslationHandler: x,
|
|
2218
2218
|
setPostTranslationHandler: j,
|
|
2219
2219
|
getMissingHandler: G,
|
|
2220
2220
|
setMissingHandler: W,
|
|
2221
2221
|
[Eo]: ve
|
|
2222
2222
|
};
|
|
2223
|
-
return P.datetimeFormats = N, P.numberFormats = U, P.rt = ne, P.te =
|
|
2223
|
+
return P.datetimeFormats = N, P.numberFormats = U, P.rt = ne, P.te = $e, P.tm = xe, P.d = Q, P.n = _e, P.getDateTimeFormat = O, P.setDateTimeFormat = s, P.mergeDateTimeFormat = o, P.getNumberFormat = _, P.setNumberFormat = k, P.mergeNumberFormat = M, P[rr] = n, P[Vt] = q, P[Wt] = K, P[Gt] = we, P;
|
|
2224
2224
|
}
|
|
2225
2225
|
const qt = {
|
|
2226
2226
|
tag: {
|
|
@@ -2263,8 +2263,8 @@ Ie({
|
|
|
2263
2263
|
validator: (e) => ge(e) || !isNaN(e)
|
|
2264
2264
|
}
|
|
2265
2265
|
}, qt);
|
|
2266
|
-
function
|
|
2267
|
-
return
|
|
2266
|
+
function Lo(e) {
|
|
2267
|
+
return he(e) && !X(e[0]);
|
|
2268
2268
|
}
|
|
2269
2269
|
function lr(e, t, n, r) {
|
|
2270
2270
|
const { slots: l, attrs: a } = t;
|
|
@@ -2274,9 +2274,9 @@ function lr(e, t, n, r) {
|
|
|
2274
2274
|
e.locale && (m.locale = e.locale), X(e.format) ? m.key = e.format : te(e.format) && (X(e.format.key) && (m.key = e.format.key), u = Object.keys(e.format).reduce((C, F) => n.includes(F) ? Ie(oe(), C, { [F]: e.format[F] }) : C, oe()));
|
|
2275
2275
|
const i = r(e.value, m, u);
|
|
2276
2276
|
let g = [m.key];
|
|
2277
|
-
|
|
2278
|
-
const D = l[C.type],
|
|
2279
|
-
return
|
|
2277
|
+
he(i) ? g = i.map((C, F) => {
|
|
2278
|
+
const D = l[C.type], A = D ? D({ [C.type]: C.value, index: F, parts: i }) : [C.value];
|
|
2279
|
+
return Lo(A) && (A[0].key = `${C.type}-${F}`), A;
|
|
2280
2280
|
}) : X(i) && (g = [i]);
|
|
2281
2281
|
const y = Ie(oe(), a), T = X(e.tag) || te(e.tag) ? e.tag : ar();
|
|
2282
2282
|
return Wn(T, y, g);
|
|
@@ -2300,9 +2300,9 @@ Ie({
|
|
|
2300
2300
|
type: [String, Object]
|
|
2301
2301
|
}
|
|
2302
2302
|
}, qt);
|
|
2303
|
-
const
|
|
2303
|
+
const Ao = /* @__PURE__ */ Je("global-vue-i18n");
|
|
2304
2304
|
function St(e = {}) {
|
|
2305
|
-
const t =
|
|
2305
|
+
const t = Zt();
|
|
2306
2306
|
if (t == null)
|
|
2307
2307
|
throw ut(at.MUST_BE_CALL_SETUP_TOP);
|
|
2308
2308
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
@@ -2323,7 +2323,7 @@ function St(e = {}) {
|
|
|
2323
2323
|
return u;
|
|
2324
2324
|
}
|
|
2325
2325
|
function ko(e) {
|
|
2326
|
-
const t = ur(e.isCE ?
|
|
2326
|
+
const t = ur(e.isCE ? Ao : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2327
2327
|
if (!t)
|
|
2328
2328
|
throw ut(e.isCE ? at.NOT_INSTALLED_WITH_PROVIDE : at.UNEXPECTED_ERROR);
|
|
2329
2329
|
return t;
|
|
@@ -2366,13 +2366,13 @@ function Fo(e, t, n) {
|
|
|
2366
2366
|
}
|
|
2367
2367
|
yo();
|
|
2368
2368
|
zs(Ms);
|
|
2369
|
-
Qs(
|
|
2369
|
+
Qs(Js);
|
|
2370
2370
|
qs(Hn);
|
|
2371
2371
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2372
|
-
const e =
|
|
2372
|
+
const e = Be();
|
|
2373
2373
|
e.__INTLIFY__ = !0, Ds(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2374
2374
|
}
|
|
2375
|
-
const pt = /* @__PURE__ */
|
|
2375
|
+
const pt = /* @__PURE__ */ Ae({
|
|
2376
2376
|
__name: "InheritPermissionTooltip",
|
|
2377
2377
|
props: {
|
|
2378
2378
|
item: {
|
|
@@ -2384,14 +2384,14 @@ const pt = /* @__PURE__ */ Le({
|
|
|
2384
2384
|
const { t } = St();
|
|
2385
2385
|
return (n, r) => {
|
|
2386
2386
|
const l = De("FmIcon"), a = De("FmTooltip");
|
|
2387
|
-
return
|
|
2387
|
+
return $(), Ce(a, {
|
|
2388
2388
|
variant: "plain",
|
|
2389
2389
|
placement: "right",
|
|
2390
2390
|
"z-index": 50
|
|
2391
2391
|
}, {
|
|
2392
2392
|
content: me(() => [
|
|
2393
2393
|
ae("div", null, Oe(H(t)("team.memberForm.permissions.inherited")), 1),
|
|
2394
|
-
(
|
|
2394
|
+
($(!0), ie(Re, null, Ee(e.item.setNames, (m) => ($(), ie("div", { key: m }, [
|
|
2395
2395
|
ae("div", null, "- " + Oe(m), 1)
|
|
2396
2396
|
]))), 128))
|
|
2397
2397
|
]),
|
|
@@ -2433,32 +2433,32 @@ function jo(e, t, n, r) {
|
|
|
2433
2433
|
for (const G of t.value) {
|
|
2434
2434
|
const W = G.category;
|
|
2435
2435
|
if (!W) continue;
|
|
2436
|
-
const
|
|
2436
|
+
const Y = G.subject;
|
|
2437
2437
|
if (n.value.includes(G.subject) || G.showByFeatureFlag && ((j = m(G.showByFeatureFlag)) == null ? void 0 : j.enabled) === !1 && a(G.showByFeatureFlag) === "true")
|
|
2438
2438
|
continue;
|
|
2439
2439
|
d.has(W) || d.set(W, []);
|
|
2440
|
-
const
|
|
2441
|
-
U.set(
|
|
2442
|
-
label: l(`permissionSet.permissionLabels.${
|
|
2443
|
-
value:
|
|
2444
|
-
optionKey: `${
|
|
2445
|
-
}), N.has(
|
|
2440
|
+
const Z = U.get(Y) ?? 0;
|
|
2441
|
+
U.set(Y, Z + 1), d.get(W).push({
|
|
2442
|
+
label: l(`permissionSet.permissionLabels.${Y}`, G.label),
|
|
2443
|
+
value: Y,
|
|
2444
|
+
optionKey: `${Y}::${Z}`
|
|
2445
|
+
}), N.has(Y) || N.set(Y, G);
|
|
2446
2446
|
}
|
|
2447
2447
|
return [...d.keys()].sort((G, W) => {
|
|
2448
|
-
const
|
|
2449
|
-
return
|
|
2448
|
+
const Y = Dn.indexOf(G), Z = Dn.indexOf(W);
|
|
2449
|
+
return Y === -1 && Z === -1 ? G.localeCompare(W) : Y === -1 ? 1 : Z === -1 ? -1 : Y - Z;
|
|
2450
2450
|
}).map((G) => {
|
|
2451
|
-
const W = d.get(G),
|
|
2451
|
+
const W = d.get(G), Y = l(`permissionSet.categoryLabels.${G}`, G), Z = /* @__PURE__ */ new Map();
|
|
2452
2452
|
for (const K of W) {
|
|
2453
2453
|
const ve = N.get(K.value);
|
|
2454
|
-
ve &&
|
|
2454
|
+
ve && Z.set(K.value, ve.actions);
|
|
2455
2455
|
}
|
|
2456
2456
|
const ne = W.some((K) => {
|
|
2457
|
-
const ve =
|
|
2457
|
+
const ve = Z.get(K.value);
|
|
2458
2458
|
return ve && ve.length > 1;
|
|
2459
2459
|
}), Q = ne ? [
|
|
2460
2460
|
...new Set(
|
|
2461
|
-
W.flatMap((K) =>
|
|
2461
|
+
W.flatMap((K) => Z.get(K.value) ?? []).filter((K) => K !== "manage")
|
|
2462
2462
|
)
|
|
2463
2463
|
] : [], _e = /* @__PURE__ */ new Map();
|
|
2464
2464
|
for (const K of e.value)
|
|
@@ -2471,12 +2471,12 @@ function jo(e, t, n, r) {
|
|
|
2471
2471
|
}), fe = (se == null ? void 0 : se.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), we = q.has("manage");
|
|
2472
2472
|
return {
|
|
2473
2473
|
category: G,
|
|
2474
|
-
label:
|
|
2474
|
+
label: Y,
|
|
2475
2475
|
options: W,
|
|
2476
2476
|
selectedSubjects: ce,
|
|
2477
2477
|
isMultiAction: ne,
|
|
2478
2478
|
actionColumns: Q,
|
|
2479
|
-
permissionActionsMap:
|
|
2479
|
+
permissionActionsMap: Z,
|
|
2480
2480
|
selectedActionsMap: _e,
|
|
2481
2481
|
coverSubject: fe,
|
|
2482
2482
|
coverSelectedActions: q,
|
|
@@ -2488,13 +2488,13 @@ function jo(e, t, n, r) {
|
|
|
2488
2488
|
const U = u.value.find((Q) => Q.category === d), x = (U == null ? void 0 : U.options) ?? [], j = new Set(x.map((Q) => Q.value)), G = new Set(N), W = /* @__PURE__ */ new Map();
|
|
2489
2489
|
for (const Q of e.value)
|
|
2490
2490
|
j.has(Q.subject) && !Q.inverted && W.set(Q.subject, Q.conditions);
|
|
2491
|
-
const
|
|
2491
|
+
const Y = U != null && U.coverSubject ? W.get(U.coverSubject) : void 0, Z = /* @__PURE__ */ new Set(), ne = t.value.flatMap(
|
|
2492
2492
|
({ category: Q, showByFeatureFlag: _e, isCategoryCover: ce, ...se }) => {
|
|
2493
2493
|
const fe = se.subject;
|
|
2494
|
-
if (!G.has(fe) ||
|
|
2495
|
-
|
|
2494
|
+
if (!G.has(fe) || Z.has(fe)) return [];
|
|
2495
|
+
Z.add(fe);
|
|
2496
2496
|
let q;
|
|
2497
|
-
return W.has(fe) ? q = W.get(fe) : U != null && U.coverSubject && fe !== U.coverSubject && (q =
|
|
2497
|
+
return W.has(fe) ? q = W.get(fe) : U != null && U.coverSubject && fe !== U.coverSubject && (q = Y), [
|
|
2498
2498
|
{ ...se, ...q !== void 0 && { conditions: q } }
|
|
2499
2499
|
];
|
|
2500
2500
|
}
|
|
@@ -2521,10 +2521,10 @@ function jo(e, t, n, r) {
|
|
|
2521
2521
|
r("update:model-value", U);
|
|
2522
2522
|
else {
|
|
2523
2523
|
const x = /* @__PURE__ */ new Map();
|
|
2524
|
-
for (const
|
|
2525
|
-
N.has(
|
|
2524
|
+
for (const Y of e.value)
|
|
2525
|
+
N.has(Y.subject) && !Y.inverted && x.set(Y.subject, Y.conditions);
|
|
2526
2526
|
const j = d.coverSubject ? x.get(d.coverSubject) : void 0, G = /* @__PURE__ */ new Set(), W = t.value.flatMap(
|
|
2527
|
-
({ category:
|
|
2527
|
+
({ category: Y, showByFeatureFlag: Z, isCategoryCover: ne, ...Q }) => {
|
|
2528
2528
|
const _e = Q.subject;
|
|
2529
2529
|
if (!N.has(_e) || G.has(_e)) return [];
|
|
2530
2530
|
G.add(_e);
|
|
@@ -2544,10 +2544,10 @@ function jo(e, t, n, r) {
|
|
|
2544
2544
|
function D(d, N) {
|
|
2545
2545
|
const U = d.permissionActionsMap.get(N);
|
|
2546
2546
|
return U ? U.filter((j) => j !== "manage").filter(
|
|
2547
|
-
(j) => S(d, N, j) ||
|
|
2547
|
+
(j) => S(d, N, j) || h(d, N, j)
|
|
2548
2548
|
) : [];
|
|
2549
2549
|
}
|
|
2550
|
-
function
|
|
2550
|
+
function A(d, N) {
|
|
2551
2551
|
return c(d, N) ? !1 : !F(d, N) && D(d, N).length > 0;
|
|
2552
2552
|
}
|
|
2553
2553
|
function w(d, N) {
|
|
@@ -2565,11 +2565,11 @@ function jo(e, t, n, r) {
|
|
|
2565
2565
|
category: j,
|
|
2566
2566
|
showByFeatureFlag: G,
|
|
2567
2567
|
isCategoryCover: W,
|
|
2568
|
-
...
|
|
2569
|
-
} = x,
|
|
2568
|
+
...Y
|
|
2569
|
+
} = x, Z = w(d, N), ne = e.value.filter((Q) => Q.subject !== N);
|
|
2570
2570
|
ne.push({
|
|
2571
|
-
...
|
|
2572
|
-
...
|
|
2571
|
+
...Y,
|
|
2572
|
+
...Z !== void 0 && { conditions: Z }
|
|
2573
2573
|
}), r("update:model-value", ne);
|
|
2574
2574
|
} else
|
|
2575
2575
|
r(
|
|
@@ -2577,7 +2577,7 @@ function jo(e, t, n, r) {
|
|
|
2577
2577
|
e.value.filter((x) => x.subject !== N)
|
|
2578
2578
|
);
|
|
2579
2579
|
}
|
|
2580
|
-
function
|
|
2580
|
+
function b(d, N) {
|
|
2581
2581
|
const U = d.permissionActionsMap.get(N);
|
|
2582
2582
|
return U ? U.some((x) => x !== "manage") : !1;
|
|
2583
2583
|
}
|
|
@@ -2588,7 +2588,7 @@ function jo(e, t, n, r) {
|
|
|
2588
2588
|
function c(d, N) {
|
|
2589
2589
|
return !d.coverSubject || N === d.coverSubject ? !1 : d.coverCoversAll;
|
|
2590
2590
|
}
|
|
2591
|
-
function
|
|
2591
|
+
function h(d, N, U) {
|
|
2592
2592
|
return !d.coverSubject || N === d.coverSubject ? !1 : d.coverCoversAll ? !0 : d.coverSelectedActions.has(U);
|
|
2593
2593
|
}
|
|
2594
2594
|
function I(d, N, U) {
|
|
@@ -2599,14 +2599,14 @@ function jo(e, t, n, r) {
|
|
|
2599
2599
|
const x = [...e.value], j = x.findIndex((W) => W.subject === d && !W.inverted);
|
|
2600
2600
|
if (U)
|
|
2601
2601
|
if (j >= 0) {
|
|
2602
|
-
const W = { ...x[j] },
|
|
2603
|
-
|
|
2602
|
+
const W = { ...x[j] }, Y = new Set(W.actions);
|
|
2603
|
+
Y.add(N), W.actions = Array.from(Y), x[j] = W;
|
|
2604
2604
|
} else {
|
|
2605
2605
|
const W = t.value.find((se) => se.subject === d);
|
|
2606
2606
|
if (!W) return;
|
|
2607
2607
|
const {
|
|
2608
|
-
category:
|
|
2609
|
-
showByFeatureFlag:
|
|
2608
|
+
category: Y,
|
|
2609
|
+
showByFeatureFlag: Z,
|
|
2610
2610
|
isCategoryCover: ne,
|
|
2611
2611
|
...Q
|
|
2612
2612
|
} = W, _e = u.value.find(
|
|
@@ -2619,8 +2619,8 @@ function jo(e, t, n, r) {
|
|
|
2619
2619
|
});
|
|
2620
2620
|
}
|
|
2621
2621
|
else if (j >= 0) {
|
|
2622
|
-
const W = { ...x[j] },
|
|
2623
|
-
|
|
2622
|
+
const W = { ...x[j] }, Y = W.actions.filter((Z) => Z !== N);
|
|
2623
|
+
Y.length === 0 ? x.splice(j, 1) : (W.actions = Y, x[j] = W);
|
|
2624
2624
|
}
|
|
2625
2625
|
const G = t.value.find((W) => W.subject === d);
|
|
2626
2626
|
G && Mn(x, d, G.actions), r("update:model-value", x);
|
|
@@ -2630,39 +2630,39 @@ function jo(e, t, n, r) {
|
|
|
2630
2630
|
(x) => I(d, x.value, N)
|
|
2631
2631
|
);
|
|
2632
2632
|
return U.length === 0 ? !1 : U.every(
|
|
2633
|
-
(x) => S(d, x.value, N) ||
|
|
2633
|
+
(x) => S(d, x.value, N) || h(d, x.value, N)
|
|
2634
2634
|
);
|
|
2635
2635
|
}
|
|
2636
|
-
function
|
|
2636
|
+
function L(d, N) {
|
|
2637
2637
|
const U = d.options.filter(
|
|
2638
2638
|
(j) => I(d, j.value, N)
|
|
2639
2639
|
);
|
|
2640
2640
|
if (U.length === 0) return !1;
|
|
2641
2641
|
const x = U.filter(
|
|
2642
|
-
(j) => S(d, j.value, N) ||
|
|
2642
|
+
(j) => S(d, j.value, N) || h(d, j.value, N)
|
|
2643
2643
|
).length;
|
|
2644
2644
|
return x > 0 && x < U.length;
|
|
2645
2645
|
}
|
|
2646
|
-
function
|
|
2646
|
+
function B(d, N, U) {
|
|
2647
2647
|
const x = [...e.value];
|
|
2648
2648
|
for (const j of d.options) {
|
|
2649
2649
|
if (!I(d, j.value, N)) continue;
|
|
2650
2650
|
const G = j.value, W = x.findIndex(
|
|
2651
|
-
(
|
|
2651
|
+
(Z) => Z.subject === G && !Z.inverted
|
|
2652
2652
|
);
|
|
2653
2653
|
if (U)
|
|
2654
2654
|
if (W >= 0) {
|
|
2655
|
-
const
|
|
2656
|
-
ne.add(N),
|
|
2655
|
+
const Z = { ...x[W] }, ne = new Set(Z.actions);
|
|
2656
|
+
ne.add(N), Z.actions = Array.from(ne), x[W] = Z;
|
|
2657
2657
|
} else {
|
|
2658
|
-
const
|
|
2659
|
-
if (!
|
|
2658
|
+
const Z = t.value.find((fe) => fe.subject === G);
|
|
2659
|
+
if (!Z) continue;
|
|
2660
2660
|
const {
|
|
2661
2661
|
category: ne,
|
|
2662
2662
|
showByFeatureFlag: Q,
|
|
2663
2663
|
isCategoryCover: _e,
|
|
2664
2664
|
...ce
|
|
2665
|
-
} =
|
|
2665
|
+
} = Z, se = w(d, G);
|
|
2666
2666
|
x.push({
|
|
2667
2667
|
...ce,
|
|
2668
2668
|
actions: [N],
|
|
@@ -2670,11 +2670,11 @@ function jo(e, t, n, r) {
|
|
|
2670
2670
|
});
|
|
2671
2671
|
}
|
|
2672
2672
|
else if (W >= 0) {
|
|
2673
|
-
const
|
|
2674
|
-
ne.length === 0 ? x.splice(W, 1) : (
|
|
2673
|
+
const Z = { ...x[W] }, ne = Z.actions.filter((Q) => Q !== N);
|
|
2674
|
+
ne.length === 0 ? x.splice(W, 1) : (Z.actions = ne, x[W] = Z);
|
|
2675
2675
|
}
|
|
2676
|
-
const
|
|
2677
|
-
|
|
2676
|
+
const Y = t.value.find((Z) => Z.subject === G);
|
|
2677
|
+
Y && Mn(x, G, Y.actions);
|
|
2678
2678
|
}
|
|
2679
2679
|
r("update:model-value", x);
|
|
2680
2680
|
}
|
|
@@ -2689,21 +2689,21 @@ function jo(e, t, n, r) {
|
|
|
2689
2689
|
isAllManageIndeterminate: T,
|
|
2690
2690
|
toggleAllManage: C,
|
|
2691
2691
|
isManageChecked: F,
|
|
2692
|
-
isManageIndeterminate:
|
|
2692
|
+
isManageIndeterminate: A,
|
|
2693
2693
|
toggleManage: f,
|
|
2694
|
-
hasNonManageActions:
|
|
2694
|
+
hasNonManageActions: b,
|
|
2695
2695
|
isActionChecked: S,
|
|
2696
2696
|
isRowFullyCoveredByCover: c,
|
|
2697
|
-
isActionCoveredByCover:
|
|
2697
|
+
isActionCoveredByCover: h,
|
|
2698
2698
|
permissionDefinesAction: I,
|
|
2699
2699
|
toggleAction: v,
|
|
2700
2700
|
isAllActionChecked: R,
|
|
2701
|
-
isAllActionIndeterminate:
|
|
2702
|
-
toggleAllAction:
|
|
2701
|
+
isAllActionIndeterminate: L,
|
|
2702
|
+
toggleAllAction: B,
|
|
2703
2703
|
actionLabel: V
|
|
2704
2704
|
};
|
|
2705
2705
|
}
|
|
2706
|
-
const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm-600" }, Vo = { class: "mt-16" }, Wo = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Go = ["onClick"], Xo = { class: "flex justify-center" },
|
|
2706
|
+
const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm-600" }, Vo = { class: "mt-16" }, Wo = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Go = ["onClick"], Xo = { class: "flex justify-center" }, Yo = { class: "flex items-center min-w-0 gap-8" }, Zo = ["title", "onClick"], Bo = { class: "flex justify-center" }, Ho = /* @__PURE__ */ Ae({
|
|
2707
2707
|
__name: "BasePermission",
|
|
2708
2708
|
props: {
|
|
2709
2709
|
modelValue: {
|
|
@@ -2735,32 +2735,32 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
2735
2735
|
toggleManage: C,
|
|
2736
2736
|
isActionChecked: F,
|
|
2737
2737
|
isRowFullyCoveredByCover: D,
|
|
2738
|
-
isActionCoveredByCover:
|
|
2738
|
+
isActionCoveredByCover: A,
|
|
2739
2739
|
permissionDefinesAction: w,
|
|
2740
2740
|
toggleAction: f,
|
|
2741
|
-
isAllActionChecked:
|
|
2741
|
+
isAllActionChecked: b,
|
|
2742
2742
|
isAllActionIndeterminate: S,
|
|
2743
2743
|
toggleAllAction: c,
|
|
2744
|
-
actionLabel:
|
|
2744
|
+
actionLabel: h
|
|
2745
2745
|
} = jo(
|
|
2746
2746
|
en(n, "modelValue"),
|
|
2747
2747
|
a,
|
|
2748
2748
|
en(n, "excludedSubjects"),
|
|
2749
|
-
(R,
|
|
2749
|
+
(R, L) => r("update:model-value", L)
|
|
2750
2750
|
);
|
|
2751
2751
|
function I(R) {
|
|
2752
|
-
const
|
|
2753
|
-
return
|
|
2752
|
+
const L = R.selectedSubjects.length;
|
|
2753
|
+
return L === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: L });
|
|
2754
2754
|
}
|
|
2755
|
-
function v(R,
|
|
2756
|
-
return y(R,
|
|
2757
|
-
(
|
|
2755
|
+
function v(R, L) {
|
|
2756
|
+
return y(R, L) || D(R, L) ? !0 : R.actionColumns.some(
|
|
2757
|
+
(B) => w(R, L, B) && (F(R, L, B) || A(R, L, B))
|
|
2758
2758
|
);
|
|
2759
2759
|
}
|
|
2760
|
-
return (R,
|
|
2761
|
-
const
|
|
2762
|
-
return
|
|
2763
|
-
(
|
|
2760
|
+
return (R, L) => {
|
|
2761
|
+
const B = De("FmCheckbox");
|
|
2762
|
+
return $(), ie("div", Uo, [
|
|
2763
|
+
($(!0), ie(Re, null, Ee(H(m), (V) => ($(), Ce(Bt, {
|
|
2764
2764
|
key: V.category,
|
|
2765
2765
|
subtitle: I(V)
|
|
2766
2766
|
}, {
|
|
@@ -2775,12 +2775,12 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
2775
2775
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${V.actionColumns.length + 1}, 80px)`
|
|
2776
2776
|
})
|
|
2777
2777
|
}, [
|
|
2778
|
-
|
|
2778
|
+
L[0] || (L[0] = ae("div", null, null, -1)),
|
|
2779
2779
|
ae("div", Wo, Oe(H(l)("team.memberForm.permissions.columnManage")), 1),
|
|
2780
|
-
(
|
|
2780
|
+
($(!0), ie(Re, null, Ee(V.actionColumns, (d) => ($(), ie("div", {
|
|
2781
2781
|
key: `header-${d}`,
|
|
2782
2782
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2783
|
-
}, Oe(H(
|
|
2783
|
+
}, Oe(H(h)(d)), 1))), 128))
|
|
2784
2784
|
], 4),
|
|
2785
2785
|
ae("div", {
|
|
2786
2786
|
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
@@ -2793,7 +2793,7 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
2793
2793
|
onClick: (d) => !e.disable && H(g)(V)
|
|
2794
2794
|
}, Oe(H(l)("team.labels.all")), 9, Go),
|
|
2795
2795
|
ae("div", Xo, [
|
|
2796
|
-
ue(
|
|
2796
|
+
ue(B, {
|
|
2797
2797
|
"model-value": H(u)(V),
|
|
2798
2798
|
indeterminate: H(i)(V),
|
|
2799
2799
|
value: !0,
|
|
@@ -2803,12 +2803,12 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
2803
2803
|
"onUpdate:modelValue": (d) => H(g)(V)
|
|
2804
2804
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2805
2805
|
]),
|
|
2806
|
-
(
|
|
2806
|
+
($(!0), ie(Re, null, Ee(V.actionColumns, (d) => ($(), ie("div", {
|
|
2807
2807
|
key: `all-${d}`,
|
|
2808
2808
|
class: "flex justify-center"
|
|
2809
2809
|
}, [
|
|
2810
|
-
ue(
|
|
2811
|
-
"model-value": H(
|
|
2810
|
+
ue(B, {
|
|
2811
|
+
"model-value": H(b)(V, d),
|
|
2812
2812
|
indeterminate: H(S)(V, d),
|
|
2813
2813
|
value: d,
|
|
2814
2814
|
disabled: e.disable,
|
|
@@ -2818,33 +2818,33 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
2818
2818
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2819
2819
|
]))), 128))
|
|
2820
2820
|
], 4),
|
|
2821
|
-
|
|
2822
|
-
(
|
|
2821
|
+
L[1] || (L[1] = ae("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2822
|
+
($(!0), ie(Re, null, Ee(V.options, (d) => ($(), ie("div", {
|
|
2823
2823
|
key: d.optionKey,
|
|
2824
2824
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2825
2825
|
style: nt({
|
|
2826
2826
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${V.actionColumns.length + 1}, 80px)`
|
|
2827
2827
|
})
|
|
2828
2828
|
}, [
|
|
2829
|
-
ae("div",
|
|
2829
|
+
ae("div", Yo, [
|
|
2830
2830
|
ae("span", {
|
|
2831
2831
|
class: "block truncate cursor-pointer",
|
|
2832
2832
|
title: d.label,
|
|
2833
2833
|
onClick: (N) => !e.disable && !H(D)(V, d.value) && H(C)(V, d.value, !H(y)(V, d.value))
|
|
2834
|
-
}, Oe(d.label), 9,
|
|
2834
|
+
}, Oe(d.label), 9, Zo),
|
|
2835
2835
|
Se(R.$slots, `checkbox-${d.value}-append`, {
|
|
2836
2836
|
option: d,
|
|
2837
2837
|
isEffectiveSelected: v(V, d.value),
|
|
2838
|
-
isCoveredByCover: H(D)(V, d.value) || V.actionColumns.some((N) => H(
|
|
2838
|
+
isCoveredByCover: H(D)(V, d.value) || V.actionColumns.some((N) => H(A)(V, d.value, N))
|
|
2839
2839
|
}),
|
|
2840
2840
|
Se(R.$slots, `checkbox-${d.value}-icon`, {
|
|
2841
2841
|
option: d,
|
|
2842
2842
|
isEffectiveSelected: v(V, d.value),
|
|
2843
|
-
isCoveredByCover: H(D)(V, d.value) || V.actionColumns.some((N) => H(
|
|
2843
|
+
isCoveredByCover: H(D)(V, d.value) || V.actionColumns.some((N) => H(A)(V, d.value, N))
|
|
2844
2844
|
})
|
|
2845
2845
|
]),
|
|
2846
|
-
ae("div",
|
|
2847
|
-
ue(
|
|
2846
|
+
ae("div", Bo, [
|
|
2847
|
+
ue(B, {
|
|
2848
2848
|
"model-value": H(y)(V, d.value) || H(D)(V, d.value),
|
|
2849
2849
|
value: d.value,
|
|
2850
2850
|
disabled: e.disable || H(D)(V, d.value),
|
|
@@ -2853,15 +2853,15 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
2853
2853
|
"onUpdate:modelValue": (N) => H(C)(V, d.value, N)
|
|
2854
2854
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2855
2855
|
]),
|
|
2856
|
-
(
|
|
2856
|
+
($(!0), ie(Re, null, Ee(V.actionColumns, (N) => ($(), ie("div", {
|
|
2857
2857
|
key: `${d.optionKey}-${N}`,
|
|
2858
2858
|
class: "flex justify-center"
|
|
2859
2859
|
}, [
|
|
2860
|
-
H(w)(V, d.value, N) ? (
|
|
2860
|
+
H(w)(V, d.value, N) ? ($(), Ce(B, {
|
|
2861
2861
|
key: 0,
|
|
2862
|
-
"model-value": H(F)(V, d.value, N) || H(
|
|
2862
|
+
"model-value": H(F)(V, d.value, N) || H(A)(V, d.value, N),
|
|
2863
2863
|
value: N,
|
|
2864
|
-
disabled: e.disable || H(
|
|
2864
|
+
disabled: e.disable || H(A)(V, d.value, N),
|
|
2865
2865
|
size: "sm",
|
|
2866
2866
|
"onUpdate:modelValue": (U) => H(f)(d.value, N, U)
|
|
2867
2867
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Me("", !0)
|
|
@@ -2874,13 +2874,13 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
2874
2874
|
]);
|
|
2875
2875
|
};
|
|
2876
2876
|
}
|
|
2877
|
-
}),
|
|
2877
|
+
}), Jo = { class: "space-y-16" }, $o = {
|
|
2878
2878
|
key: 0,
|
|
2879
2879
|
class: "flex fm-typo-en-title-sm-600"
|
|
2880
2880
|
}, Ko = {
|
|
2881
2881
|
key: 0,
|
|
2882
2882
|
class: "q-mr-xs text-red col"
|
|
2883
|
-
}, zo = { class: "form-input" }, Qo = /* @__PURE__ */
|
|
2883
|
+
}, zo = { class: "form-input" }, Qo = /* @__PURE__ */ Ae({
|
|
2884
2884
|
__name: "AppForm",
|
|
2885
2885
|
props: {
|
|
2886
2886
|
title: {
|
|
@@ -2898,11 +2898,11 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
2898
2898
|
},
|
|
2899
2899
|
setup(e) {
|
|
2900
2900
|
const t = e;
|
|
2901
|
-
return (n, r) => (
|
|
2901
|
+
return (n, r) => ($(), ie("div", Jo, [
|
|
2902
2902
|
Se(n.$slots, "top", {}, () => [
|
|
2903
|
-
t.title ? (
|
|
2903
|
+
t.title ? ($(), ie("div", $o, [
|
|
2904
2904
|
ae("div", null, [
|
|
2905
|
-
t.required ? (
|
|
2905
|
+
t.required ? ($(), ie("span", Ko, "*")) : Me("", !0),
|
|
2906
2906
|
_r(Oe(t.title), 1)
|
|
2907
2907
|
]),
|
|
2908
2908
|
Se(n.$slots, "title-right")
|
|
@@ -2916,7 +2916,7 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
2916
2916
|
}), qo = { class: "col flex items-center" }, ea = {
|
|
2917
2917
|
key: 1,
|
|
2918
2918
|
class: "q-pa-sm form-error-message text-error"
|
|
2919
|
-
}, ir = /* @__PURE__ */
|
|
2919
|
+
}, ir = /* @__PURE__ */ Ae({
|
|
2920
2920
|
__name: "CheckboxInput",
|
|
2921
2921
|
props: {
|
|
2922
2922
|
options: {
|
|
@@ -2974,36 +2974,36 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
2974
2974
|
},
|
|
2975
2975
|
emits: ["update:model-value"],
|
|
2976
2976
|
setup(e, { emit: t }) {
|
|
2977
|
-
const n = e, r = t, { t: l } = He(), a = rt(!1), m = vr(), u = z(() => 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-${
|
|
2978
|
-
() => n.modelValue.filter((
|
|
2977
|
+
const n = e, r = t, { t: l } = He(), a = rt(!1), m = vr(), u = z(() => 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-${Ar(6)}`, g = z(() => u.value !== !0), y = z(
|
|
2978
|
+
() => n.modelValue.filter((A) => n.options.some((w) => w.value === A))
|
|
2979
2979
|
), T = z(
|
|
2980
2980
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2981
2981
|
), C = z(() => n.options.length > 0 && n.options.length === y.value.length);
|
|
2982
2982
|
function F() {
|
|
2983
|
-
const
|
|
2983
|
+
const A = n.modelValue.filter((w) => !y.value.includes(w));
|
|
2984
2984
|
if (C.value === !0)
|
|
2985
|
-
r("update:model-value",
|
|
2985
|
+
r("update:model-value", A);
|
|
2986
2986
|
else {
|
|
2987
2987
|
const w = n.includeDisabledOptionsWhenSelectAll ? n.options.map((f) => f.value) : n.options.filter((f) => !f.disabled).map((f) => f.value);
|
|
2988
|
-
r("update:model-value", [...
|
|
2988
|
+
r("update:model-value", [...A, ...w]);
|
|
2989
2989
|
}
|
|
2990
2990
|
}
|
|
2991
|
-
function D(
|
|
2991
|
+
function D(A, w) {
|
|
2992
2992
|
let f = It(n.modelValue);
|
|
2993
|
-
w ? f.every((
|
|
2993
|
+
w ? f.every((b) => b !== A) && f.push(A) : f = f.filter((b) => b !== A), r("update:model-value", f);
|
|
2994
2994
|
}
|
|
2995
|
-
return (
|
|
2995
|
+
return (A, w) => {
|
|
2996
2996
|
const f = De("FmCheckbox");
|
|
2997
|
-
return
|
|
2997
|
+
return $(), Ce(Qo, {
|
|
2998
2998
|
id: i,
|
|
2999
2999
|
title: e.title,
|
|
3000
3000
|
required: !1
|
|
3001
3001
|
}, {
|
|
3002
3002
|
top: me(() => [
|
|
3003
|
-
Se(
|
|
3003
|
+
Se(A.$slots, "top")
|
|
3004
3004
|
]),
|
|
3005
3005
|
default: me(() => [
|
|
3006
|
-
n.showAllToggle ? (
|
|
3006
|
+
n.showAllToggle ? ($(), Ce(f, {
|
|
3007
3007
|
key: 0,
|
|
3008
3008
|
"model-value": C.value,
|
|
3009
3009
|
disabled: e.disable,
|
|
@@ -3014,8 +3014,8 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3014
3014
|
value: T.value,
|
|
3015
3015
|
"onUpdate:modelValue": F
|
|
3016
3016
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Me("", !0),
|
|
3017
|
-
(
|
|
3018
|
-
key:
|
|
3017
|
+
($(!0), ie(Re, null, Ee(e.options, (b, S) => ($(), ie("div", {
|
|
3018
|
+
key: b.value,
|
|
3019
3019
|
style: nt(`margin-bottom: ${S < e.options.length - 1 ? n.gutter : 0}px`),
|
|
3020
3020
|
class: qe(S < e.options.length - 1 ? "q-mb-sm" : "")
|
|
3021
3021
|
}, [
|
|
@@ -3024,48 +3024,48 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3024
3024
|
}, [
|
|
3025
3025
|
ae("div", qo, [
|
|
3026
3026
|
ue(f, {
|
|
3027
|
-
"model-value": e.modelValue.includes(
|
|
3028
|
-
disabled: e.disable ||
|
|
3027
|
+
"model-value": e.modelValue.includes(b.value),
|
|
3028
|
+
disabled: e.disable || b.disabled,
|
|
3029
3029
|
size: "sm",
|
|
3030
|
-
label:
|
|
3031
|
-
value:
|
|
3032
|
-
"onUpdate:modelValue": (c) => D(
|
|
3030
|
+
label: b.label,
|
|
3031
|
+
value: b.label,
|
|
3032
|
+
"onUpdate:modelValue": (c) => D(b.value, c)
|
|
3033
3033
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
3034
|
-
Se(
|
|
3035
|
-
option:
|
|
3036
|
-
selected: e.modelValue.includes(
|
|
3034
|
+
Se(A.$slots, `checkbox-${b.key || b.value}-append`, {
|
|
3035
|
+
option: b,
|
|
3036
|
+
selected: e.modelValue.includes(b.value)
|
|
3037
3037
|
})
|
|
3038
3038
|
]),
|
|
3039
|
-
H(m)[`checkbox-${
|
|
3039
|
+
H(m)[`checkbox-${b.key || b.value}-end`] && (e.modelValue.includes(b.value) || e.falsyShowSlot) ? ($(), ie("div", {
|
|
3040
3040
|
key: 0,
|
|
3041
|
-
class: qe([{ "q-checkbox disabled": e.disable ||
|
|
3041
|
+
class: qe([{ "q-checkbox disabled": e.disable || b.disabled }, "col"])
|
|
3042
3042
|
}, [
|
|
3043
|
-
Se(
|
|
3044
|
-
option:
|
|
3045
|
-
value: e.modelValue.includes(
|
|
3046
|
-
disable: e.disable ||
|
|
3043
|
+
Se(A.$slots, `checkbox-${b.key || b.value}-end`, {
|
|
3044
|
+
option: b,
|
|
3045
|
+
value: e.modelValue.includes(b.value),
|
|
3046
|
+
disable: e.disable || b.disabled
|
|
3047
3047
|
})
|
|
3048
3048
|
], 2)) : Me("", !0)
|
|
3049
3049
|
], 2),
|
|
3050
|
-
H(m)[`checkbox-${
|
|
3050
|
+
H(m)[`checkbox-${b.key || b.value}-bottom`] && (e.modelValue.includes(b.value) || e.falsyShowSlot) ? ($(), ie("div", {
|
|
3051
3051
|
key: 0,
|
|
3052
|
-
class: qe(["q-mt-sm", { "q-checkbox disabled": e.disable ||
|
|
3052
|
+
class: qe(["q-mt-sm", { "q-checkbox disabled": e.disable || b.disabled }]),
|
|
3053
3053
|
style: nt(`margin-left: ${e.bottomSlotIndent}`)
|
|
3054
3054
|
}, [
|
|
3055
|
-
Se(
|
|
3056
|
-
option:
|
|
3057
|
-
disable: e.disable ||
|
|
3058
|
-
value: e.modelValue.includes(
|
|
3055
|
+
Se(A.$slots, `checkbox-${b.key || b.value}-bottom`, {
|
|
3056
|
+
option: b,
|
|
3057
|
+
disable: e.disable || b.disabled,
|
|
3058
|
+
value: e.modelValue.includes(b.value)
|
|
3059
3059
|
})
|
|
3060
3060
|
], 6)) : Me("", !0)
|
|
3061
3061
|
], 6))), 128)),
|
|
3062
|
-
a.value && g.value ? (
|
|
3062
|
+
a.value && g.value ? ($(), ie("div", ea, Oe(u.value), 1)) : Me("", !0)
|
|
3063
3063
|
]),
|
|
3064
3064
|
_: 3
|
|
3065
3065
|
}, 8, ["title"]);
|
|
3066
3066
|
};
|
|
3067
3067
|
}
|
|
3068
|
-
}), ta = { class: "fm-typo-en-title-sm-600" },
|
|
3068
|
+
}), ta = { class: "fm-typo-en-title-sm-600" }, bt = "includedFuture", wn = /* @__PURE__ */ Ae({
|
|
3069
3069
|
__name: "ConditionPermission",
|
|
3070
3070
|
props: {
|
|
3071
3071
|
modelValue: {
|
|
@@ -3090,30 +3090,30 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3090
3090
|
const n = e, r = t, { t: l } = He(), a = z(() => [
|
|
3091
3091
|
{
|
|
3092
3092
|
label: l("team.memberForm.permissions.includedFuture", { context: n.context }),
|
|
3093
|
-
value:
|
|
3093
|
+
value: bt,
|
|
3094
3094
|
// Can only be selected if all other options are selected
|
|
3095
3095
|
disabled: !!n.modelValue && n.options.length > n.modelValue.length
|
|
3096
3096
|
},
|
|
3097
3097
|
...n.options.filter(
|
|
3098
3098
|
(y) => y.label.toLocaleLowerCase().includes(g.value.toLocaleLowerCase())
|
|
3099
3099
|
)
|
|
3100
|
-
]), m = z(() => n.modelValue ? n.modelValue : [
|
|
3101
|
-
const y = m.value.filter((T) => T !==
|
|
3100
|
+
]), m = z(() => n.modelValue ? n.modelValue : [bt, ...n.options.map((y) => y.value)]), u = z(() => {
|
|
3101
|
+
const y = m.value.filter((T) => T !== bt).length;
|
|
3102
3102
|
return y === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: y });
|
|
3103
3103
|
});
|
|
3104
3104
|
function i(y) {
|
|
3105
3105
|
const T = y.length === a.value.length;
|
|
3106
|
-
r("update:model-value", T ? null : y.filter((C) => C !==
|
|
3106
|
+
r("update:model-value", T ? null : y.filter((C) => C !== bt));
|
|
3107
3107
|
}
|
|
3108
3108
|
const g = rt("");
|
|
3109
3109
|
return (y, T) => {
|
|
3110
3110
|
const C = De("fm-search");
|
|
3111
|
-
return
|
|
3111
|
+
return $(), Ce(Bt, { subtitle: u.value }, {
|
|
3112
3112
|
title: me(() => [
|
|
3113
3113
|
ae("p", ta, Oe(H(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3114
3114
|
]),
|
|
3115
3115
|
default: me(() => [
|
|
3116
|
-
e.options.length > 1 ? (
|
|
3116
|
+
e.options.length > 1 ? ($(), Ce(C, {
|
|
3117
3117
|
key: 0,
|
|
3118
3118
|
modelValue: g.value,
|
|
3119
3119
|
"onUpdate:modelValue": T[0] || (T[0] = (F) => g.value = F),
|
|
@@ -3143,7 +3143,7 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3143
3143
|
}, 8, ["subtitle"]);
|
|
3144
3144
|
};
|
|
3145
3145
|
}
|
|
3146
|
-
}), na = { class: "fm-typo-en-title-sm-600" },
|
|
3146
|
+
}), na = { class: "fm-typo-en-title-sm-600" }, ht = "includedNewRole", ra = /* @__PURE__ */ Ae({
|
|
3147
3147
|
__name: "PosRolePermission",
|
|
3148
3148
|
props: {
|
|
3149
3149
|
modelValue: {
|
|
@@ -3170,7 +3170,7 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3170
3170
|
return [
|
|
3171
3171
|
{
|
|
3172
3172
|
label: l("team.memberForm.permissions.includedNewRole"),
|
|
3173
|
-
value:
|
|
3173
|
+
value: ht,
|
|
3174
3174
|
disabled: !!n.modelValue && n.roles.length > n.modelValue.length
|
|
3175
3175
|
},
|
|
3176
3176
|
...n.roles.map((y) => ({
|
|
@@ -3179,15 +3179,15 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3179
3179
|
disabled: !!g && y.restaurants.every(({ id: T }) => !g.includes(T))
|
|
3180
3180
|
}))
|
|
3181
3181
|
];
|
|
3182
|
-
}), m = z(() => n.modelValue ? n.modelValue : [
|
|
3183
|
-
const g = m.value.filter((y) => y !==
|
|
3182
|
+
}), m = z(() => n.modelValue ? n.modelValue : [ht, ...n.roles.map((g) => g._id)]), u = z(() => {
|
|
3183
|
+
const g = m.value.filter((y) => y !== ht).length;
|
|
3184
3184
|
return g === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: g });
|
|
3185
3185
|
});
|
|
3186
3186
|
function i(g) {
|
|
3187
3187
|
const y = g.length === a.value.length;
|
|
3188
|
-
r("update:model-value", y ? null : g.filter((T) => T !==
|
|
3188
|
+
r("update:model-value", y ? null : g.filter((T) => T !== ht));
|
|
3189
3189
|
}
|
|
3190
|
-
return (g, y) => (
|
|
3190
|
+
return (g, y) => ($(), Ce(Bt, { subtitle: u.value }, {
|
|
3191
3191
|
title: me(() => [
|
|
3192
3192
|
ae("p", na, Oe(H(l)("team.memberForm.permissions.roles")), 1)
|
|
3193
3193
|
]),
|
|
@@ -3223,7 +3223,7 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3223
3223
|
}, aa = {
|
|
3224
3224
|
key: 0,
|
|
3225
3225
|
class: "ml-32"
|
|
3226
|
-
}, Fn = /* @__PURE__ */
|
|
3226
|
+
}, Fn = /* @__PURE__ */ Ae({
|
|
3227
3227
|
__name: "PortalConditionForm",
|
|
3228
3228
|
props: {
|
|
3229
3229
|
entry: {},
|
|
@@ -3243,7 +3243,7 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3243
3243
|
const n = t, { t: r } = He();
|
|
3244
3244
|
return (l, a) => {
|
|
3245
3245
|
const m = De("FmRadio"), u = De("FmRadioGroup");
|
|
3246
|
-
return
|
|
3246
|
+
return $(), Ce(Nr, {
|
|
3247
3247
|
title: e.title,
|
|
3248
3248
|
builders: e.builders,
|
|
3249
3249
|
"form-value-for": e.formValueFor,
|
|
@@ -3254,7 +3254,7 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3254
3254
|
onApply: a[1] || (a[1] = (i) => n("apply"))
|
|
3255
3255
|
}, {
|
|
3256
3256
|
section: me(({ builder: i }) => [
|
|
3257
|
-
e.coverOverride.shouldShowInheritToggle(e.entry, i) ? (
|
|
3257
|
+
e.coverOverride.shouldShowInheritToggle(e.entry, i) ? ($(), ie("div", sa, [
|
|
3258
3258
|
ue(u, {
|
|
3259
3259
|
"model-value": e.inheritModeFor(i),
|
|
3260
3260
|
disabled: e.disable,
|
|
@@ -3268,7 +3268,7 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3268
3268
|
cover: e.coverOverride.coverLabel(e.subject)
|
|
3269
3269
|
})
|
|
3270
3270
|
}, null, 8, ["label"]),
|
|
3271
|
-
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? (
|
|
3271
|
+
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? ($(), ie("p", oa, " (" + Oe(H(r)(
|
|
3272
3272
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).labelKey,
|
|
3273
3273
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).params ?? {}
|
|
3274
3274
|
)) + ") ", 1)) : Me("", !0)
|
|
@@ -3280,7 +3280,7 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3280
3280
|
]),
|
|
3281
3281
|
_: 2
|
|
3282
3282
|
}, 1032, ["model-value", "disabled", "onUpdate:modelValue"]),
|
|
3283
|
-
e.inheritModeFor(i) === "custom" ? (
|
|
3283
|
+
e.inheritModeFor(i) === "custom" ? ($(), ie("div", aa, [
|
|
3284
3284
|
ue(nn, {
|
|
3285
3285
|
builder: i,
|
|
3286
3286
|
"model-value": e.formValueFor(i),
|
|
@@ -3288,7 +3288,7 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3288
3288
|
"onUpdate:modelValue": (g) => n("update-form", { builder: i, form: g })
|
|
3289
3289
|
}, null, 8, ["builder", "model-value", "disable", "onUpdate:modelValue"])
|
|
3290
3290
|
])) : Me("", !0)
|
|
3291
|
-
])) : (
|
|
3291
|
+
])) : ($(), Ce(nn, {
|
|
3292
3292
|
key: 1,
|
|
3293
3293
|
builder: i,
|
|
3294
3294
|
"model-value": e.formValueFor(i),
|
|
@@ -3306,7 +3306,7 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3306
3306
|
}
|
|
3307
3307
|
};
|
|
3308
3308
|
function Pn(e, t) {
|
|
3309
|
-
return Xn(e,
|
|
3309
|
+
return Xn(e, Yn).some(
|
|
3310
3310
|
(n) => n.subject === t && !n.inverted && n.actions.includes("manage")
|
|
3311
3311
|
);
|
|
3312
3312
|
}
|
|
@@ -3400,15 +3400,15 @@ function da(e, t) {
|
|
|
3400
3400
|
}
|
|
3401
3401
|
function Mt(e, t) {
|
|
3402
3402
|
const n = new Set(e.actions);
|
|
3403
|
-
return n.has(
|
|
3403
|
+
return n.has(be.Action.manage) ? !0 : t.actions.every((r) => n.has(r));
|
|
3404
3404
|
}
|
|
3405
|
-
function
|
|
3405
|
+
function Yt(e, t) {
|
|
3406
3406
|
const n = We(e);
|
|
3407
3407
|
return wt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3408
3408
|
}
|
|
3409
3409
|
function xn(e, t, n) {
|
|
3410
3410
|
return {
|
|
3411
|
-
...
|
|
3411
|
+
...Yt(e, n),
|
|
3412
3412
|
...tt(We(t), n)
|
|
3413
3413
|
};
|
|
3414
3414
|
}
|
|
@@ -3418,148 +3418,148 @@ function fa(e, t, n) {
|
|
|
3418
3418
|
return wr(c, t.value);
|
|
3419
3419
|
}
|
|
3420
3420
|
function a(c) {
|
|
3421
|
-
return t.value.find((
|
|
3421
|
+
return t.value.find((h) => h.subject === c);
|
|
3422
3422
|
}
|
|
3423
3423
|
function m(c) {
|
|
3424
3424
|
var I;
|
|
3425
|
-
const
|
|
3426
|
-
return
|
|
3425
|
+
const h = l(c);
|
|
3426
|
+
return h ? (I = a(h)) == null ? void 0 : I.label : void 0;
|
|
3427
3427
|
}
|
|
3428
3428
|
function u(c) {
|
|
3429
3429
|
return da(e.value, c);
|
|
3430
3430
|
}
|
|
3431
|
-
function i(c,
|
|
3432
|
-
return tt(We(c),
|
|
3431
|
+
function i(c, h) {
|
|
3432
|
+
return tt(We(c), h);
|
|
3433
3433
|
}
|
|
3434
|
-
function g(c,
|
|
3434
|
+
function g(c, h) {
|
|
3435
3435
|
var R;
|
|
3436
|
-
if (!(((R =
|
|
3436
|
+
if (!(((R = h.appliesToActions) == null ? void 0 : R.call(h, c.actions)) ?? !0)) return !1;
|
|
3437
3437
|
const I = l(c.subject);
|
|
3438
3438
|
if (!I) return !1;
|
|
3439
3439
|
const v = u(I);
|
|
3440
|
-
return v ? Object.keys(i(v,
|
|
3440
|
+
return v ? Object.keys(i(v, h)).length > 0 : !1;
|
|
3441
3441
|
}
|
|
3442
|
-
function y(c,
|
|
3443
|
-
if (!g(c,
|
|
3442
|
+
function y(c, h) {
|
|
3443
|
+
if (!g(c, h) || r.value.has(gt(c.subject, h))) return "custom";
|
|
3444
3444
|
if (c.index === null) return "inherit";
|
|
3445
3445
|
const I = e.value[c.index], v = l(c.subject), R = v ? u(v) : void 0;
|
|
3446
3446
|
if (I && R) {
|
|
3447
|
-
const
|
|
3448
|
-
if (JSON.stringify(
|
|
3447
|
+
const L = tt(We(I), h), B = i(R, h);
|
|
3448
|
+
if (JSON.stringify(L) === JSON.stringify(B)) return "inherit";
|
|
3449
3449
|
}
|
|
3450
3450
|
return "custom";
|
|
3451
3451
|
}
|
|
3452
|
-
function T(c,
|
|
3453
|
-
if (!
|
|
3452
|
+
function T(c, h, I) {
|
|
3453
|
+
if (!h.summarizeForm) return;
|
|
3454
3454
|
const v = l(c.subject);
|
|
3455
3455
|
if (!v) return;
|
|
3456
3456
|
const R = u(v);
|
|
3457
3457
|
if (!R) return;
|
|
3458
|
-
const
|
|
3459
|
-
return
|
|
3458
|
+
const L = h.fromCondition(i(R, h));
|
|
3459
|
+
return h.summarizeForm(L, { timeZone: I });
|
|
3460
3460
|
}
|
|
3461
|
-
function C(c,
|
|
3461
|
+
function C(c, h) {
|
|
3462
3462
|
if (c.index === null) return;
|
|
3463
|
-
const I = [...e.value], v = { ...I[c.index] }, R =
|
|
3464
|
-
if (
|
|
3463
|
+
const I = [...e.value], v = { ...I[c.index] }, R = Yt(v, h), L = Object.keys(R).length === 0, B = l(c.subject), V = B ? u(B) : void 0, d = V ? Mt(V, v) : !1;
|
|
3464
|
+
if (L && d)
|
|
3465
3465
|
I.splice(c.index, 1);
|
|
3466
3466
|
else if (V) {
|
|
3467
|
-
const N = xn(v, V,
|
|
3467
|
+
const N = xn(v, V, h);
|
|
3468
3468
|
Object.keys(N).length === 0 ? delete v.conditions : v.conditions = JSON.stringify(N), I[c.index] = v;
|
|
3469
3469
|
} else
|
|
3470
|
-
|
|
3470
|
+
L ? delete v.conditions : v.conditions = JSON.stringify(R), I[c.index] = v;
|
|
3471
3471
|
n(I);
|
|
3472
3472
|
}
|
|
3473
|
-
function F(c,
|
|
3474
|
-
const v = gt(c.subject,
|
|
3473
|
+
function F(c, h, I) {
|
|
3474
|
+
const v = gt(c.subject, h);
|
|
3475
3475
|
if (I === "inherit") {
|
|
3476
|
-
const
|
|
3477
|
-
|
|
3476
|
+
const L = new Set(r.value);
|
|
3477
|
+
L.delete(v), r.value = L, C(c, h);
|
|
3478
3478
|
return;
|
|
3479
3479
|
}
|
|
3480
3480
|
const R = new Set(r.value);
|
|
3481
|
-
R.add(v), r.value = R, c.index === null &&
|
|
3481
|
+
R.add(v), r.value = R, c.index === null && b(c, h, h.fromCondition(void 0), {
|
|
3482
3482
|
forceCreateRule: !0
|
|
3483
3483
|
});
|
|
3484
3484
|
}
|
|
3485
3485
|
function D(c) {
|
|
3486
|
-
const
|
|
3487
|
-
if (!
|
|
3488
|
-
const I = u(
|
|
3486
|
+
const h = l(c);
|
|
3487
|
+
if (!h) return [];
|
|
3488
|
+
const I = u(h);
|
|
3489
3489
|
return (I == null ? void 0 : I.actions) ?? [];
|
|
3490
3490
|
}
|
|
3491
|
-
function
|
|
3491
|
+
function A(c, h) {
|
|
3492
3492
|
return e.value.filter((I) => {
|
|
3493
3493
|
if (I.inverted) return !1;
|
|
3494
3494
|
const v = I.subject;
|
|
3495
|
-
return v === c || l(v) !== c ? !1 : r.value.has(gt(v,
|
|
3495
|
+
return v === c || l(v) !== c ? !1 : r.value.has(gt(v, h)) ? !0 : Object.keys(tt(We(I), h)).length > 0;
|
|
3496
3496
|
});
|
|
3497
3497
|
}
|
|
3498
|
-
function w(c,
|
|
3499
|
-
const I = `::${
|
|
3498
|
+
function w(c, h) {
|
|
3499
|
+
const I = `::${h.builderKey}`, v = new Set(r.value);
|
|
3500
3500
|
for (const R of v) {
|
|
3501
3501
|
if (!R.endsWith(I)) continue;
|
|
3502
|
-
const
|
|
3503
|
-
l(
|
|
3502
|
+
const L = R.slice(0, -I.length);
|
|
3503
|
+
l(L) === c && v.delete(R);
|
|
3504
3504
|
}
|
|
3505
3505
|
r.value = v;
|
|
3506
3506
|
}
|
|
3507
|
-
function f(c,
|
|
3508
|
-
const v =
|
|
3509
|
-
return c.reduce((R,
|
|
3510
|
-
if (
|
|
3511
|
-
return R.push(
|
|
3512
|
-
const
|
|
3513
|
-
if (
|
|
3514
|
-
return R.push(
|
|
3515
|
-
if (Mt(
|
|
3507
|
+
function f(c, h, I) {
|
|
3508
|
+
const v = h.subject;
|
|
3509
|
+
return c.reduce((R, L) => {
|
|
3510
|
+
if (L.inverted)
|
|
3511
|
+
return R.push(L), R;
|
|
3512
|
+
const B = L.subject;
|
|
3513
|
+
if (B === v || l(B) !== v)
|
|
3514
|
+
return R.push(L), R;
|
|
3515
|
+
if (Mt(h, L) && Object.keys(Yt(L, I)).length === 0)
|
|
3516
3516
|
return R;
|
|
3517
|
-
const d = xn(
|
|
3517
|
+
const d = xn(L, h, I);
|
|
3518
3518
|
if (Object.keys(d).length === 0) {
|
|
3519
|
-
const { conditions: N, ...U } =
|
|
3519
|
+
const { conditions: N, ...U } = L;
|
|
3520
3520
|
R.push(U);
|
|
3521
3521
|
} else
|
|
3522
|
-
R.push({ ...
|
|
3522
|
+
R.push({ ...L, conditions: JSON.stringify(d) });
|
|
3523
3523
|
return R;
|
|
3524
3524
|
}, []);
|
|
3525
3525
|
}
|
|
3526
|
-
function
|
|
3526
|
+
function b(c, h, I, v = {}) {
|
|
3527
3527
|
var x;
|
|
3528
3528
|
const R = [...e.value];
|
|
3529
|
-
let
|
|
3530
|
-
const
|
|
3531
|
-
if (
|
|
3532
|
-
if (
|
|
3529
|
+
let L = c.index;
|
|
3530
|
+
const B = h.toCondition(I), V = Object.keys(B).length > 0;
|
|
3531
|
+
if (L === null && !V && !v.forceCreateRule) return;
|
|
3532
|
+
if (L === null) {
|
|
3533
3533
|
const j = R.findIndex((G) => !G.inverted && G.subject === c.subject);
|
|
3534
3534
|
if (j !== -1)
|
|
3535
|
-
|
|
3535
|
+
L = j;
|
|
3536
3536
|
else {
|
|
3537
3537
|
const G = t.value.find((Q) => Q.subject === c.subject);
|
|
3538
3538
|
if (!G) return;
|
|
3539
3539
|
const {
|
|
3540
3540
|
category: W,
|
|
3541
|
-
showByFeatureFlag:
|
|
3542
|
-
isCategoryCover:
|
|
3541
|
+
showByFeatureFlag: Y,
|
|
3542
|
+
isCategoryCover: Z,
|
|
3543
3543
|
...ne
|
|
3544
3544
|
} = G;
|
|
3545
3545
|
R.push({
|
|
3546
3546
|
...ne,
|
|
3547
3547
|
actions: c.actions.length > 0 ? c.actions : ne.actions
|
|
3548
|
-
}),
|
|
3548
|
+
}), L = R.length - 1;
|
|
3549
3549
|
}
|
|
3550
3550
|
}
|
|
3551
|
-
const d = { ...R[
|
|
3551
|
+
const d = { ...R[L] };
|
|
3552
3552
|
d.actions = [
|
|
3553
3553
|
.../* @__PURE__ */ new Set([...d.actions, ...c.actions])
|
|
3554
3554
|
];
|
|
3555
|
-
const N = We(d), U = wt(N, [{ builder:
|
|
3556
|
-
if (Object.keys(U).length === 0 ? delete d.conditions : d.conditions = JSON.stringify(U), R[
|
|
3557
|
-
const j =
|
|
3558
|
-
var
|
|
3559
|
-
w(c.subject,
|
|
3555
|
+
const N = We(d), U = wt(N, [{ builder: h, formValue: I }]);
|
|
3556
|
+
if (Object.keys(U).length === 0 ? delete d.conditions : d.conditions = JSON.stringify(U), R[L] = d, sn(c.subject, t.value)) {
|
|
3557
|
+
const j = A(c.subject, h), G = () => {
|
|
3558
|
+
var Y;
|
|
3559
|
+
w(c.subject, h), n(f(R, d, h)), (Y = v.afterCommit) == null || Y.call(v);
|
|
3560
3560
|
}, W = () => {
|
|
3561
|
-
var
|
|
3562
|
-
n(R), (
|
|
3561
|
+
var Y;
|
|
3562
|
+
n(R), (Y = v.afterCommit) == null || Y.call(v);
|
|
3563
3563
|
};
|
|
3564
3564
|
if (j.length === 0) {
|
|
3565
3565
|
G();
|
|
@@ -3570,48 +3570,48 @@ function fa(e, t, n) {
|
|
|
3570
3570
|
}
|
|
3571
3571
|
n(R), (x = v.afterCommit) == null || x.call(v);
|
|
3572
3572
|
}
|
|
3573
|
-
function S(c,
|
|
3574
|
-
if (
|
|
3573
|
+
function S(c, h, I = {}) {
|
|
3574
|
+
if (h.length === 0) return;
|
|
3575
3575
|
const v = [...e.value];
|
|
3576
|
-
let R = v.findIndex((j) => !j.inverted && j.subject === c.subject),
|
|
3577
|
-
for (const j of
|
|
3576
|
+
let R = v.findIndex((j) => !j.inverted && j.subject === c.subject), L = R === -1 ? void 0 : { ...v[R] }, B = We(L ?? {}) ?? {};
|
|
3577
|
+
for (const j of h) {
|
|
3578
3578
|
const G = j.mode === "inherit" ? j.builder.fromCondition(void 0) : j.form;
|
|
3579
|
-
|
|
3579
|
+
B = wt(B, [{ builder: j.builder, formValue: G }]);
|
|
3580
3580
|
}
|
|
3581
|
-
const V =
|
|
3582
|
-
if (!
|
|
3581
|
+
const V = h.some((j) => j.mode === "custom");
|
|
3582
|
+
if (!L && (Object.keys(B).length > 0 || V)) {
|
|
3583
3583
|
const j = t.value.find((ne) => ne.subject === c.subject);
|
|
3584
3584
|
if (!j) return;
|
|
3585
3585
|
const {
|
|
3586
3586
|
category: G,
|
|
3587
3587
|
showByFeatureFlag: W,
|
|
3588
|
-
isCategoryCover:
|
|
3589
|
-
...
|
|
3588
|
+
isCategoryCover: Y,
|
|
3589
|
+
...Z
|
|
3590
3590
|
} = j;
|
|
3591
|
-
|
|
3592
|
-
...
|
|
3593
|
-
actions: c.actions.length > 0 ? c.actions :
|
|
3594
|
-
}, v.push(
|
|
3591
|
+
L = {
|
|
3592
|
+
...Z,
|
|
3593
|
+
actions: c.actions.length > 0 ? c.actions : Z.actions
|
|
3594
|
+
}, v.push(L), R = v.length - 1;
|
|
3595
3595
|
}
|
|
3596
|
-
if (
|
|
3596
|
+
if (L) {
|
|
3597
3597
|
const j = l(c.subject), G = j ? u(j) : void 0;
|
|
3598
|
-
if (!V && Object.keys(
|
|
3599
|
-
v.splice(R, 1),
|
|
3598
|
+
if (!V && Object.keys(B).length === 0 && !!G && Mt(G, L))
|
|
3599
|
+
v.splice(R, 1), L = void 0;
|
|
3600
3600
|
else {
|
|
3601
|
-
if (
|
|
3602
|
-
.../* @__PURE__ */ new Set([...
|
|
3601
|
+
if (L.actions = [
|
|
3602
|
+
.../* @__PURE__ */ new Set([...L.actions, ...c.actions])
|
|
3603
3603
|
], G)
|
|
3604
|
-
for (const
|
|
3605
|
-
|
|
3606
|
-
...
|
|
3607
|
-
...tt(We(G),
|
|
3604
|
+
for (const Y of h)
|
|
3605
|
+
Y.mode === "inherit" && (B = {
|
|
3606
|
+
...B,
|
|
3607
|
+
...tt(We(G), Y.builder)
|
|
3608
3608
|
});
|
|
3609
|
-
Object.keys(
|
|
3609
|
+
Object.keys(B).length === 0 ? delete L.conditions : L.conditions = JSON.stringify(B), v[R] = L;
|
|
3610
3610
|
}
|
|
3611
3611
|
}
|
|
3612
3612
|
const d = () => {
|
|
3613
3613
|
const j = new Set(r.value);
|
|
3614
|
-
for (const G of
|
|
3614
|
+
for (const G of h) {
|
|
3615
3615
|
const W = gt(c.subject, G.builder);
|
|
3616
3616
|
G.mode === "custom" ? j.add(W) : j.delete(W);
|
|
3617
3617
|
}
|
|
@@ -3620,14 +3620,14 @@ function fa(e, t, n) {
|
|
|
3620
3620
|
var G;
|
|
3621
3621
|
d(), n(j), (G = I.afterCommit) == null || G.call(I);
|
|
3622
3622
|
};
|
|
3623
|
-
if (!sn(c.subject, t.value) || !
|
|
3623
|
+
if (!sn(c.subject, t.value) || !L) {
|
|
3624
3624
|
N(v);
|
|
3625
3625
|
return;
|
|
3626
3626
|
}
|
|
3627
|
-
const U =
|
|
3627
|
+
const U = h.map((j) => j.builder).filter((j) => A(c.subject, j).length > 0), x = () => {
|
|
3628
3628
|
let j = v;
|
|
3629
|
-
for (const G of
|
|
3630
|
-
w(c.subject, G), j = f(j,
|
|
3629
|
+
for (const G of h.map((W) => W.builder))
|
|
3630
|
+
w(c.subject, G), j = f(j, L, G);
|
|
3631
3631
|
N(j);
|
|
3632
3632
|
};
|
|
3633
3633
|
if (U.length > 0 && I.onOverridesConflict) {
|
|
@@ -3644,11 +3644,11 @@ function fa(e, t, n) {
|
|
|
3644
3644
|
setInheritMode: F,
|
|
3645
3645
|
inheritedSummary: T,
|
|
3646
3646
|
getEffectiveActions: D,
|
|
3647
|
-
updateBuilderCondition:
|
|
3647
|
+
updateBuilderCondition: b,
|
|
3648
3648
|
applyConditionDrafts: S
|
|
3649
3649
|
};
|
|
3650
3650
|
}
|
|
3651
|
-
const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, pa = { class: "h-[24px] w-[24px] flex items-center justify-center" },
|
|
3651
|
+
const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, pa = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ba = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ha = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ga = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Ia = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ya = "condition-form-select-menu", wa = /* @__PURE__ */ Ae({
|
|
3652
3652
|
__name: "PortalPermissionEditor",
|
|
3653
3653
|
props: /* @__PURE__ */ tn({
|
|
3654
3654
|
disable: {
|
|
@@ -3665,7 +3665,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3665
3665
|
}),
|
|
3666
3666
|
emits: /* @__PURE__ */ tn(["permissionChanged"], ["update:modelValue"]),
|
|
3667
3667
|
setup(e, { emit: t }) {
|
|
3668
|
-
const n = pr(e, "modelValue"), r = e, l = t, { t: a } = He(), m =
|
|
3668
|
+
const n = pr(e, "modelValue"), r = e, l = t, { t: a } = He(), m = br(), u = hr(), { breakpoints: i } = gr(), g = z(() => i.value.xs || i.value.sm), {
|
|
3669
3669
|
fetchCustomReportPermissions: y,
|
|
3670
3670
|
customReportPermissions: T
|
|
3671
3671
|
} = Ir(), C = z(() => [
|
|
@@ -3678,7 +3678,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3678
3678
|
function D(O) {
|
|
3679
3679
|
return C.value.find((s) => s.subject === O);
|
|
3680
3680
|
}
|
|
3681
|
-
function
|
|
3681
|
+
function A(O, s) {
|
|
3682
3682
|
return rn(O).filter(
|
|
3683
3683
|
(o) => {
|
|
3684
3684
|
var _;
|
|
@@ -3701,45 +3701,45 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3701
3701
|
const O = r.inheritPermissions.map((s) => ({
|
|
3702
3702
|
...s,
|
|
3703
3703
|
permissions: s.permissions.filter(
|
|
3704
|
-
(o) => o.subject ===
|
|
3704
|
+
(o) => o.subject === be.Subject.Business.inventory_stock
|
|
3705
3705
|
)
|
|
3706
3706
|
}));
|
|
3707
|
-
return
|
|
3707
|
+
return Lt(
|
|
3708
3708
|
O,
|
|
3709
3709
|
"warehouseId",
|
|
3710
3710
|
I.value.map((s) => s._id)
|
|
3711
3711
|
);
|
|
3712
|
-
}),
|
|
3712
|
+
}), b = z(() => {
|
|
3713
3713
|
const O = r.inheritPermissions.map((s) => ({
|
|
3714
3714
|
...s,
|
|
3715
3715
|
permissions: s.permissions.filter(
|
|
3716
|
-
(o) => o.subject ===
|
|
3716
|
+
(o) => o.subject === be.Subject.Restaurant.restaurant
|
|
3717
3717
|
)
|
|
3718
3718
|
}));
|
|
3719
|
-
return
|
|
3719
|
+
return Lt(
|
|
3720
3720
|
O,
|
|
3721
3721
|
"restaurantId",
|
|
3722
|
-
|
|
3722
|
+
B.value.map((s) => s._id)
|
|
3723
3723
|
);
|
|
3724
3724
|
}), S = z(() => {
|
|
3725
3725
|
const O = r.inheritPermissions.map((s) => ({
|
|
3726
3726
|
...s,
|
|
3727
|
-
permissions: s.permissions.filter((o) => o.subject ===
|
|
3727
|
+
permissions: s.permissions.filter((o) => o.subject === be.Subject.Business.role)
|
|
3728
3728
|
}));
|
|
3729
|
-
return
|
|
3729
|
+
return Lt(
|
|
3730
3730
|
O,
|
|
3731
3731
|
"roleId",
|
|
3732
3732
|
V.value.map((s) => s._id)
|
|
3733
3733
|
);
|
|
3734
3734
|
}), c = [
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
],
|
|
3735
|
+
be.Subject.Business.restaurant,
|
|
3736
|
+
be.Subject.Business.role,
|
|
3737
|
+
be.Subject.Restaurant.restaurant,
|
|
3738
|
+
be.Subject.Business.inventory_stock
|
|
3739
|
+
], h = z(() => {
|
|
3740
3740
|
var s;
|
|
3741
3741
|
const O = (s = n.value) == null ? void 0 : s.find(
|
|
3742
|
-
(o) => o.subject ===
|
|
3742
|
+
(o) => o.subject === be.Subject.Business.inventory_stock
|
|
3743
3743
|
);
|
|
3744
3744
|
return O ? O.conditions ? JSON.parse(O.conditions).warehouseId.$in : null : [];
|
|
3745
3745
|
}), I = rt([]), v = z(() => I.value.map((O) => ({
|
|
@@ -3747,26 +3747,26 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3747
3747
|
value: O._id
|
|
3748
3748
|
})));
|
|
3749
3749
|
function R(O) {
|
|
3750
|
-
const s =
|
|
3750
|
+
const s = L(n.value, O);
|
|
3751
3751
|
n.value = s;
|
|
3752
3752
|
}
|
|
3753
|
-
function
|
|
3753
|
+
function L(O, s) {
|
|
3754
3754
|
let o = It(
|
|
3755
|
-
O.filter((_) => _.subject !==
|
|
3755
|
+
O.filter((_) => _.subject !== be.Subject.Business.inventory_stock)
|
|
3756
3756
|
);
|
|
3757
3757
|
if (!s || s.length > 0) {
|
|
3758
3758
|
const _ = {
|
|
3759
|
-
actions: [
|
|
3760
|
-
subject:
|
|
3759
|
+
actions: [be.Action.manage],
|
|
3760
|
+
subject: be.Subject.Business.inventory_stock
|
|
3761
3761
|
};
|
|
3762
3762
|
s && (_.conditions = JSON.stringify({ warehouseId: { $in: s } })), o.push(_);
|
|
3763
3763
|
}
|
|
3764
3764
|
return o;
|
|
3765
3765
|
}
|
|
3766
|
-
const { restaurants:
|
|
3766
|
+
const { restaurants: B } = m, V = Mr().roles, d = z(() => B.value.map((O) => ({
|
|
3767
3767
|
label: `${O.profile.code ? O.profile.code + "-" : ""}${O.profile.name}`,
|
|
3768
3768
|
value: O._id
|
|
3769
|
-
}))), N = z(() =>
|
|
3769
|
+
}))), N = z(() => B.value.reduce((O, s) => (O[s._id] = V.value.filter((o) => o.restaurants.some((_) => _.id === s._id)).map((o) => o._id), O), {})), U = z(() => Er(n.value));
|
|
3770
3770
|
function x(O) {
|
|
3771
3771
|
const s = G(n.value, O);
|
|
3772
3772
|
n.value = s;
|
|
@@ -3776,7 +3776,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3776
3776
|
var _;
|
|
3777
3777
|
let o = It(
|
|
3778
3778
|
O.filter(
|
|
3779
|
-
(k) => k.subject !==
|
|
3779
|
+
(k) => k.subject !== be.Subject.Business.restaurant && k.subject !== be.Subject.Restaurant.restaurant
|
|
3780
3780
|
)
|
|
3781
3781
|
);
|
|
3782
3782
|
if (!s || s.length > 0) {
|
|
@@ -3784,11 +3784,11 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3784
3784
|
category: k,
|
|
3785
3785
|
showByFeatureFlag: M,
|
|
3786
3786
|
...P
|
|
3787
|
-
} =
|
|
3787
|
+
} = Lr.restaurant;
|
|
3788
3788
|
o.push(P);
|
|
3789
3789
|
const p = {
|
|
3790
|
-
actions: [
|
|
3791
|
-
subject:
|
|
3790
|
+
actions: [be.Action.manage],
|
|
3791
|
+
subject: be.Subject.Restaurant.restaurant
|
|
3792
3792
|
};
|
|
3793
3793
|
s && (p.conditions = JSON.stringify({ restaurantId: { $in: s } })), o.push(p);
|
|
3794
3794
|
}
|
|
@@ -3796,7 +3796,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3796
3796
|
const k = [
|
|
3797
3797
|
...new Set(s.map((P) => N.value[P]).flatMap((P) => P))
|
|
3798
3798
|
], M = V.value.map((P) => P._id);
|
|
3799
|
-
k.length !== M.length && (o =
|
|
3799
|
+
k.length !== M.length && (o = Y(
|
|
3800
3800
|
o,
|
|
3801
3801
|
(_ = j.value || M) == null ? void 0 : _.filter((P) => k.includes(P))
|
|
3802
3802
|
));
|
|
@@ -3804,17 +3804,17 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3804
3804
|
return o;
|
|
3805
3805
|
}
|
|
3806
3806
|
function W(O) {
|
|
3807
|
-
const s =
|
|
3807
|
+
const s = Y(n.value, O);
|
|
3808
3808
|
n.value = s;
|
|
3809
3809
|
}
|
|
3810
|
-
function
|
|
3810
|
+
function Y(O, s) {
|
|
3811
3811
|
let o = It(
|
|
3812
|
-
O.filter((_) => _.subject !==
|
|
3812
|
+
O.filter((_) => _.subject !== be.Subject.Business.role)
|
|
3813
3813
|
);
|
|
3814
3814
|
if (s && s.length > 0) {
|
|
3815
3815
|
const _ = {
|
|
3816
|
-
actions: [
|
|
3817
|
-
subject:
|
|
3816
|
+
actions: [be.Action.manage],
|
|
3817
|
+
subject: be.Subject.Business.role,
|
|
3818
3818
|
conditions: JSON.stringify({ roleId: { $in: s } })
|
|
3819
3819
|
};
|
|
3820
3820
|
o.push(_);
|
|
@@ -3827,9 +3827,9 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3827
3827
|
y()
|
|
3828
3828
|
]);
|
|
3829
3829
|
});
|
|
3830
|
-
const
|
|
3830
|
+
const Z = z(() => Xn(
|
|
3831
3831
|
n.value,
|
|
3832
|
-
|
|
3832
|
+
Yn
|
|
3833
3833
|
).filter((o) => {
|
|
3834
3834
|
const _ = o.source;
|
|
3835
3835
|
return (_ == null ? void 0 : _.type) !== "systemPermissionSet" ? !0 : o.actions.includes("manage");
|
|
@@ -3844,7 +3844,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3844
3844
|
}));
|
|
3845
3845
|
function ne(O) {
|
|
3846
3846
|
n.value = ia(
|
|
3847
|
-
|
|
3847
|
+
Z.value,
|
|
3848
3848
|
O,
|
|
3849
3849
|
n.value,
|
|
3850
3850
|
D
|
|
@@ -3854,14 +3854,14 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3854
3854
|
C.value.filter((O) => rn(O.subject).length > 0).map((O) => O.subject)
|
|
3855
3855
|
)), _e = z(() => {
|
|
3856
3856
|
const O = /* @__PURE__ */ new Map();
|
|
3857
|
-
return
|
|
3857
|
+
return Z.value.map((s) => ({
|
|
3858
3858
|
rule: s,
|
|
3859
3859
|
index: n.value.findIndex(
|
|
3860
3860
|
(o) => !o.inverted && o.subject === s.subject
|
|
3861
3861
|
)
|
|
3862
3862
|
})).filter(({ rule: s }) => !s.inverted).forEach(({ rule: s, index: o }) => {
|
|
3863
3863
|
var P;
|
|
3864
|
-
const _ = s.actions, k =
|
|
3864
|
+
const _ = s.actions, k = A(s.subject, _);
|
|
3865
3865
|
if (k.length === 0) return;
|
|
3866
3866
|
let M;
|
|
3867
3867
|
try {
|
|
@@ -3887,7 +3887,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3887
3887
|
function q(O, s) {
|
|
3888
3888
|
const o = _e.value.get(O);
|
|
3889
3889
|
if (o) return o;
|
|
3890
|
-
const _ = ce.getEffectiveActions(O), k =
|
|
3890
|
+
const _ = ce.getEffectiveActions(O), k = A(O, _);
|
|
3891
3891
|
if (k.length !== 0)
|
|
3892
3892
|
return {
|
|
3893
3893
|
index: null,
|
|
@@ -3923,7 +3923,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3923
3923
|
}
|
|
3924
3924
|
);
|
|
3925
3925
|
}
|
|
3926
|
-
function
|
|
3926
|
+
function $e(O, s, o) {
|
|
3927
3927
|
const _ = se.getDraft({
|
|
3928
3928
|
subject: O.subject,
|
|
3929
3929
|
builderKey: s.builderKey
|
|
@@ -3951,14 +3951,14 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3951
3951
|
afterCommit: () => {
|
|
3952
3952
|
se.clearDraftsForSubject(O.subject), s();
|
|
3953
3953
|
},
|
|
3954
|
-
onOverridesConflict:
|
|
3954
|
+
onOverridesConflict: Ye(O).onOverridesConflict
|
|
3955
3955
|
});
|
|
3956
3956
|
}
|
|
3957
3957
|
function Fe(O) {
|
|
3958
3958
|
return O.sections.some((s) => ce.shouldShowInheritToggle(O, s.builder) ? ce.inheritMode(O, s.builder) === "custom" : Object.keys(s.builder.toCondition(s.formValue)).length > 0);
|
|
3959
3959
|
}
|
|
3960
3960
|
let Ne = !1;
|
|
3961
|
-
function
|
|
3961
|
+
function Ye(O, s = {}) {
|
|
3962
3962
|
return {
|
|
3963
3963
|
...s,
|
|
3964
3964
|
onOverridesConflict: ({ override: o, keep: _ }) => {
|
|
@@ -3995,10 +3995,10 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3995
3995
|
{ deep: !0 }
|
|
3996
3996
|
), (O, s) => {
|
|
3997
3997
|
const o = De("FmIcon"), _ = De("FmBottomSheet"), k = De("FmPopover");
|
|
3998
|
-
return
|
|
3998
|
+
return $(), ie("div", _a, [
|
|
3999
3999
|
ae("div", va, [
|
|
4000
4000
|
ue(Ho, {
|
|
4001
|
-
"model-value":
|
|
4001
|
+
"model-value": Z.value,
|
|
4002
4002
|
"excluded-subjects": c,
|
|
4003
4003
|
"additional-permissions": H(T),
|
|
4004
4004
|
"onUpdate:modelValue": ne
|
|
@@ -4012,8 +4012,8 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4012
4012
|
Ee(Q.value, (M) => ({
|
|
4013
4013
|
name: `checkbox-${M}-icon`,
|
|
4014
4014
|
fn: me(({ option: P, isEffectiveSelected: p }) => [
|
|
4015
|
-
p && q(M, P.label) ? (
|
|
4016
|
-
g.value ? (
|
|
4015
|
+
p && q(M, P.label) ? ($(), ie(Re, { key: 0 }, [
|
|
4016
|
+
g.value ? ($(), Ce(_, {
|
|
4017
4017
|
key: 0,
|
|
4018
4018
|
"model-value": fe.value === M,
|
|
4019
4019
|
header: H(a)("team.memberForm.permissions.conditionTitle", {
|
|
@@ -4050,13 +4050,13 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4050
4050
|
"has-changes": Ke(M),
|
|
4051
4051
|
disable: e.disable,
|
|
4052
4052
|
"full-width": !0,
|
|
4053
|
-
onUpdateInheritMode: ({ builder: E, mode:
|
|
4054
|
-
onUpdateForm: ({ builder: E, form:
|
|
4053
|
+
onUpdateInheritMode: ({ builder: E, mode: J }) => $e(q(M, P.label), E, J),
|
|
4054
|
+
onUpdateForm: ({ builder: E, form: J }) => ve(q(M, P.label), E, J),
|
|
4055
4055
|
onApply: (E) => xe(q(M, P.label), () => fe.value = null)
|
|
4056
4056
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4057
4057
|
]),
|
|
4058
4058
|
_: 2
|
|
4059
|
-
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (
|
|
4059
|
+
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : ($(), Ce(k, {
|
|
4060
4060
|
key: 1,
|
|
4061
4061
|
disabled: e.disable,
|
|
4062
4062
|
"z-index": 100,
|
|
@@ -4067,7 +4067,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4067
4067
|
}
|
|
4068
4068
|
}, {
|
|
4069
4069
|
"popover-button": me(() => [
|
|
4070
|
-
ae("div",
|
|
4070
|
+
ae("div", ba, [
|
|
4071
4071
|
ue(o, {
|
|
4072
4072
|
name: "settings",
|
|
4073
4073
|
size: "sm",
|
|
@@ -4081,29 +4081,29 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4081
4081
|
default: me(({ hide: E }) => [
|
|
4082
4082
|
ue(Fn, {
|
|
4083
4083
|
entry: q(M, P.label),
|
|
4084
|
-
builders: q(M, P.label).sections.map((
|
|
4084
|
+
builders: q(M, P.label).sections.map((J) => J.builder),
|
|
4085
4085
|
subject: M,
|
|
4086
4086
|
"time-zone": F.value,
|
|
4087
4087
|
"cover-override": H(ce),
|
|
4088
4088
|
title: H(a)("team.memberForm.permissions.conditionTitle", {
|
|
4089
4089
|
context: q(M, P.label).label
|
|
4090
4090
|
}),
|
|
4091
|
-
"inherit-mode-for": (
|
|
4092
|
-
"form-value-for": (
|
|
4091
|
+
"inherit-mode-for": (J) => K(q(M, P.label), J),
|
|
4092
|
+
"form-value-for": (J) => we(q(M, P.label), J),
|
|
4093
4093
|
"has-changes": Ke(M),
|
|
4094
4094
|
disable: e.disable,
|
|
4095
|
-
onUpdateInheritMode: ({ builder:
|
|
4095
|
+
onUpdateInheritMode: ({ builder: J, mode: le }) => $e(
|
|
4096
4096
|
q(M, P.label),
|
|
4097
|
-
|
|
4097
|
+
J,
|
|
4098
4098
|
le
|
|
4099
4099
|
),
|
|
4100
|
-
onUpdateForm: ({ builder:
|
|
4101
|
-
onApply: (
|
|
4100
|
+
onUpdateForm: ({ builder: J, form: le }) => ve(q(M, P.label), J, le),
|
|
4101
|
+
onApply: (J) => xe(q(M, P.label), E)
|
|
4102
4102
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "title", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4103
4103
|
]),
|
|
4104
4104
|
_: 2
|
|
4105
4105
|
}, 1032, ["disabled", "exclude-el-from-click-outside", "onPopoverChanged"]))
|
|
4106
|
-
], 64)) : (
|
|
4106
|
+
], 64)) : ($(), Ce(o, {
|
|
4107
4107
|
key: 1,
|
|
4108
4108
|
name: "settings",
|
|
4109
4109
|
size: "sm",
|
|
@@ -4113,9 +4113,9 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4113
4113
|
}))
|
|
4114
4114
|
]), 1032, ["model-value", "additional-permissions"])
|
|
4115
4115
|
]),
|
|
4116
|
-
ae("div",
|
|
4116
|
+
ae("div", ha, [
|
|
4117
4117
|
ue(wn, {
|
|
4118
|
-
"model-value":
|
|
4118
|
+
"model-value": h.value,
|
|
4119
4119
|
options: v.value,
|
|
4120
4120
|
context: H(a)("team.labels.warehouse"),
|
|
4121
4121
|
"onUpdate:modelValue": R
|
|
@@ -4135,7 +4135,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4135
4135
|
context: H(a)("team.labels.restaurant"),
|
|
4136
4136
|
"onUpdate:modelValue": x
|
|
4137
4137
|
}, et({ _: 2 }, [
|
|
4138
|
-
Ee(
|
|
4138
|
+
Ee(b.value, (M) => ({
|
|
4139
4139
|
name: `checkbox-${M.id}-append`,
|
|
4140
4140
|
fn: me(() => [
|
|
4141
4141
|
ue(pt, { item: M }, null, 8, ["item"])
|