@feedmepos/mf-hrm-portal 2.2.5-dev.6 → 2.2.5-dev.7
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-CtCpcbAC.js → ApprovalCodeList-dn-WwNAd.js} +2 -2
- package/dist/{AuditLogList-BYOvk3l4.js → AuditLogList-BqVp9fxD.js} +3 -3
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DS4_vkTG.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DnAet2oc.js} +2 -2
- package/dist/{EmployeeList-B_sTjkdO.js → EmployeeList-BwTJre5k.js} +5 -5
- package/dist/{GrantUserList-_nRUyHYM.js → GrantUserList-CZek1r4F.js} +3 -3
- package/dist/{Main-DqY2oGAM.js → Main-CbmA-SYo.js} +9 -9
- package/dist/{Main-DoLU6s-8.js → Main-DVA51sj2.js} +2 -2
- package/dist/{Main-CloHiemF.js → Main-MjSYZdOq.js} +5 -5
- package/dist/{PermissionSetList-uL-0fN9H.js → PermissionSetList-lkHmXhNm.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-dCgJ2s08.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-cFQDQCal.js} +568 -568
- package/dist/{RoleList-CwrDYFXz.js → RoleList-BSs0SmFo.js} +7 -7
- package/dist/{ScheduleGeneralPage-CgQOHHb8.js → ScheduleGeneralPage-DD9n2TUe.js} +3 -3
- package/dist/{SchedulePage-C7q1IL70.js → SchedulePage-B0X97zVC.js} +5 -5
- package/dist/{SchedulePositionPage-Dys7X035.js → SchedulePositionPage-BXz1USn3.js} +3 -3
- package/dist/{ScheduleSelect.vue_vue_type_script_setup_true_lang-Cm2VWp8s.js → ScheduleSelect.vue_vue_type_script_setup_true_lang-DAHke2rH.js} +1 -1
- package/dist/{TeamMemberList-qyKCeSsW.js → TeamMemberList-Dit_nV6d.js} +6 -6
- package/dist/{TimesheetList-D1EJG90Z.js → TimesheetList-B-FlRO7E.js} +4 -4
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Car-HXjq.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-DZUJR8K_.js} +1 -1
- package/dist/{app-By1O6mq8.js → app-BpnOPodL.js} +127 -127
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-_ZoZF_Ra.js → dayjs.min-4GLfSOGZ.js} +1 -1
- package/dist/{employee-BC7QM1dX.js → employee-ChdVnSmd.js} +3 -3
- package/dist/{index-CHf8MAN1.js → index-CilJxsY7.js} +1 -1
- package/dist/{index-u10uXqFM.js → index-DYoVJQTd.js} +1 -1
- package/dist/{lodash-BsAtPIfh.js → lodash-CcFIMCiJ.js} +1 -1
- package/dist/{role-PShfEEXE.js → role-OXCiWTVq.js} +1 -1
- package/dist/{rule-RU8uWecT.js → rule-8iyCO_LZ.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-Bu-l3ebR.js → useReportPermissions-C3fuFTUC.js} +3 -3
- package/dist/{useScheduleOutlet-BOmEn1hr.js → useScheduleOutlet-TPZJHgSY.js} +1 -1
- package/dist/{useSchedulePositions-upgaNffa.js → useSchedulePositions-DCkaKHQm.js} +1 -1
- package/package.json +1 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { getCurrentInstance as Bt, inject as ur, ref as rt, shallowRef as dr, computed as z, watch as
|
|
2
|
-
import { useI18n as
|
|
1
|
+
import { getCurrentInstance as Bt, inject as ur, ref as rt, shallowRef as dr, computed as z, watch as wt, onMounted as xn, onUnmounted as mr, defineComponent as Le, h as Wn, createVNode as ue, Text as fr, Fragment as Re, resolveComponent as we, createBlock as Ne, openBlock as J, withCtx as de, 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 pr, normalizeClass as qe, createSlots as et, mergeModels as tn, useModel as vr } from "vue";
|
|
2
|
+
import { useI18n as He, useCoreStore as hr } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialog as br, useBreakpoints as gr } from "@feedmepos/ui-library";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { p as Gn, N as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { u as Or, v as Sr, b as
|
|
5
|
+
import { p as Gn, N as Xn, d as Ir, P as yr, w as At, x as Er, y as Nr } from "./rule-8iyCO_LZ.js";
|
|
6
|
+
import { _ as Zt, a as Cr, b as nn, u as Tr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DnAet2oc.js";
|
|
7
|
+
import { u as Or, v as Sr, b as Yn, S as Dt, A as tt, c as he, k as rn, O as Ar } from "./app-BpnOPodL.js";
|
|
8
8
|
import { c as It } from "./iteration-CcXrOMQe.js";
|
|
9
|
-
import { r as
|
|
10
|
-
import "./index-
|
|
11
|
-
import { g as
|
|
12
|
-
import { u as Mr } from "./role-
|
|
9
|
+
import { r as Lr } from "./string-VNuQNweN.js";
|
|
10
|
+
import "./index-DYoVJQTd.js";
|
|
11
|
+
import { g as kr, b as Rr } from "./restaurant-BTpBmfBV.js";
|
|
12
|
+
import { u as Mr } from "./role-OXCiWTVq.js";
|
|
13
13
|
function Bn(e, t) {
|
|
14
14
|
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function wr(e) {
|
|
17
17
|
return Array.isArray(e) ? e[0] : e;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function Dr(e, t) {
|
|
20
20
|
const n = t.find((l) => Bn(l.subject, e));
|
|
21
21
|
if (!(n != null && n.category) || n.isCategoryCover) return;
|
|
22
22
|
const r = t.find((l) => l.category === n.category && l.isCategoryCover);
|
|
23
23
|
if (r)
|
|
24
|
-
return
|
|
24
|
+
return wr(r.subject);
|
|
25
25
|
}
|
|
26
26
|
function sn(e, t) {
|
|
27
27
|
const n = t.find((r) => Bn(r.subject, e));
|
|
@@ -32,17 +32,17 @@ function sn(e, t) {
|
|
|
32
32
|
* (c) 2024 kazuya kawaguchi
|
|
33
33
|
* Released under the MIT License.
|
|
34
34
|
*/
|
|
35
|
-
const on = typeof window < "u", $e = (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) =>
|
|
35
|
+
const on = typeof window < "u", $e = (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]", Ct = (e) => ee(e) && Object.keys(e).length === 0, Ie = Object.assign, Ur = Object.create, oe = (e = null) => Ur(e);
|
|
36
36
|
let an;
|
|
37
|
-
const
|
|
37
|
+
const Ze = () => an || (an = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : oe());
|
|
38
38
|
function ln(e) {
|
|
39
39
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
40
40
|
}
|
|
41
41
|
const Vr = Object.prototype.hasOwnProperty;
|
|
42
|
-
function
|
|
42
|
+
function Ae(e, t) {
|
|
43
43
|
return Vr.call(e, t);
|
|
44
44
|
}
|
|
45
|
-
const be = Array.isArray, me = (e) => typeof e == "function",
|
|
45
|
+
const be = Array.isArray, me = (e) => typeof e == "function", X = (e) => typeof e == "string", ve = (e) => typeof e == "boolean", te = (e) => e !== null && typeof e == "object", xr = (e) => te(e) && me(e.then) && me(e.catch), Zn = Object.prototype.toString, Ht = (e) => Zn.call(e), ee = (e) => Ht(e) === "[object Object]", Wr = (e) => e == null ? "" : be(e) || ee(e) && e.toString === Zn ? JSON.stringify(e, null, 2) : String(e);
|
|
46
46
|
function $t(e, t = "") {
|
|
47
47
|
return e.reduce((n, r, l) => l === 0 ? n + r : n + t + r, "");
|
|
48
48
|
}
|
|
@@ -61,7 +61,7 @@ function yt(e, t) {
|
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function Xr(e, t, n) {
|
|
65
65
|
return { line: e, column: t, offset: n };
|
|
66
66
|
}
|
|
67
67
|
function Ft(e, t, n) {
|
|
@@ -84,7 +84,7 @@ const re = {
|
|
|
84
84
|
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
85
85
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
86
86
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
87
|
-
},
|
|
87
|
+
}, Yr = 17;
|
|
88
88
|
function Tt(e, t, n = {}) {
|
|
89
89
|
const { domain: r, messages: l, args: a } = n, d = e, u = new SyntaxError(String(d));
|
|
90
90
|
return u.code = e, t && (u.location = t), u.domain = r, u;
|
|
@@ -92,12 +92,12 @@ function Tt(e, t, n = {}) {
|
|
|
92
92
|
function Br(e) {
|
|
93
93
|
throw e;
|
|
94
94
|
}
|
|
95
|
-
const Pe = " ",
|
|
96
|
-
`,
|
|
95
|
+
const Pe = " ", Zr = "\r", ye = `
|
|
96
|
+
`, Hr = "\u2028", $r = "\u2029";
|
|
97
97
|
function Jr(e) {
|
|
98
98
|
const t = e;
|
|
99
99
|
let n = 0, r = 1, l = 1, a = 0;
|
|
100
|
-
const d = (p) => t[p] ===
|
|
100
|
+
const d = (p) => t[p] === Zr && t[p + 1] === ye, u = (p) => t[p] === ye, i = (p) => t[p] === $r, g = (p) => t[p] === Hr, y = (p) => d(p) || u(p) || i(p) || g(p), T = () => n, N = () => r, F = () => l, w = () => a, L = (p) => d(p) || i(p) || g(p) ? ye : t[p], D = () => L(n), f = () => L(n + a);
|
|
101
101
|
function h() {
|
|
102
102
|
return a = 0, y(n) && (r++, l = 0), d(n) && n++, n++, l++, t[n];
|
|
103
103
|
}
|
|
@@ -120,9 +120,9 @@ function Jr(e) {
|
|
|
120
120
|
index: T,
|
|
121
121
|
line: N,
|
|
122
122
|
column: F,
|
|
123
|
-
peekOffset:
|
|
124
|
-
charAt:
|
|
125
|
-
currentChar:
|
|
123
|
+
peekOffset: w,
|
|
124
|
+
charAt: L,
|
|
125
|
+
currentChar: D,
|
|
126
126
|
currentPeek: f,
|
|
127
127
|
next: h,
|
|
128
128
|
peek: S,
|
|
@@ -133,7 +133,7 @@ function Jr(e) {
|
|
|
133
133
|
}
|
|
134
134
|
const xe = void 0, Kr = ".", cn = "'", zr = "tokenizer";
|
|
135
135
|
function Qr(e, t = {}) {
|
|
136
|
-
const n = t.location !== !1, r = Jr(e), l = () => r.index(), a = () =>
|
|
136
|
+
const n = t.location !== !1, r = Jr(e), l = () => r.index(), a = () => Xr(r.line(), r.column(), r.index()), d = a(), u = l(), i = {
|
|
137
137
|
currentType: 13,
|
|
138
138
|
offset: u,
|
|
139
139
|
startLoc: d,
|
|
@@ -146,37 +146,37 @@ function Qr(e, t = {}) {
|
|
|
146
146
|
inLinked: !1,
|
|
147
147
|
text: ""
|
|
148
148
|
}, g = () => i, { onError: y } = t;
|
|
149
|
-
function T(s, o, _, ...
|
|
149
|
+
function T(s, o, _, ...k) {
|
|
150
150
|
const M = g();
|
|
151
151
|
if (o.column += _, o.offset += _, y) {
|
|
152
152
|
const P = n ? Ft(M.startLoc, o) : null, v = Tt(s, P, {
|
|
153
153
|
domain: zr,
|
|
154
|
-
args:
|
|
154
|
+
args: k
|
|
155
155
|
});
|
|
156
156
|
y(v);
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
function N(s, o, _) {
|
|
160
160
|
s.endLoc = a(), s.currentType = o;
|
|
161
|
-
const
|
|
162
|
-
return n && (
|
|
161
|
+
const k = { type: o };
|
|
162
|
+
return n && (k.loc = Ft(s.startLoc, s.endLoc)), _ != null && (k.value = _), k;
|
|
163
163
|
}
|
|
164
164
|
const F = (s) => N(
|
|
165
165
|
s,
|
|
166
166
|
13
|
|
167
167
|
/* TokenTypes.EOF */
|
|
168
168
|
);
|
|
169
|
-
function
|
|
169
|
+
function w(s, o) {
|
|
170
170
|
return s.currentChar() === o ? (s.next(), o) : (T(re.EXPECTED_TOKEN, a(), 0, o), "");
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function L(s) {
|
|
173
173
|
let o = "";
|
|
174
174
|
for (; s.currentPeek() === Pe || s.currentPeek() === ye; )
|
|
175
175
|
o += s.currentPeek(), s.peek();
|
|
176
176
|
return o;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
const o =
|
|
178
|
+
function D(s) {
|
|
179
|
+
const o = L(s);
|
|
180
180
|
return s.skipToPeek(), o;
|
|
181
181
|
}
|
|
182
182
|
function f(s) {
|
|
@@ -197,62 +197,62 @@ function Qr(e, t = {}) {
|
|
|
197
197
|
const { currentType: _ } = o;
|
|
198
198
|
if (_ !== 2)
|
|
199
199
|
return !1;
|
|
200
|
-
|
|
201
|
-
const
|
|
202
|
-
return s.resetPeek(),
|
|
200
|
+
L(s);
|
|
201
|
+
const k = f(s.currentPeek());
|
|
202
|
+
return s.resetPeek(), k;
|
|
203
203
|
}
|
|
204
204
|
function c(s, o) {
|
|
205
205
|
const { currentType: _ } = o;
|
|
206
206
|
if (_ !== 2)
|
|
207
207
|
return !1;
|
|
208
|
-
|
|
209
|
-
const
|
|
208
|
+
L(s);
|
|
209
|
+
const k = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), M = h(k);
|
|
210
210
|
return s.resetPeek(), M;
|
|
211
211
|
}
|
|
212
212
|
function b(s, o) {
|
|
213
213
|
const { currentType: _ } = o;
|
|
214
214
|
if (_ !== 2)
|
|
215
215
|
return !1;
|
|
216
|
-
|
|
217
|
-
const
|
|
218
|
-
return s.resetPeek(),
|
|
216
|
+
L(s);
|
|
217
|
+
const k = s.currentPeek() === cn;
|
|
218
|
+
return s.resetPeek(), k;
|
|
219
219
|
}
|
|
220
220
|
function I(s, o) {
|
|
221
221
|
const { currentType: _ } = o;
|
|
222
222
|
if (_ !== 7)
|
|
223
223
|
return !1;
|
|
224
|
-
|
|
225
|
-
const
|
|
226
|
-
return s.resetPeek(),
|
|
224
|
+
L(s);
|
|
225
|
+
const k = s.currentPeek() === ".";
|
|
226
|
+
return s.resetPeek(), k;
|
|
227
227
|
}
|
|
228
228
|
function p(s, o) {
|
|
229
229
|
const { currentType: _ } = o;
|
|
230
230
|
if (_ !== 8)
|
|
231
231
|
return !1;
|
|
232
|
-
|
|
233
|
-
const
|
|
234
|
-
return s.resetPeek(),
|
|
232
|
+
L(s);
|
|
233
|
+
const k = f(s.currentPeek());
|
|
234
|
+
return s.resetPeek(), k;
|
|
235
235
|
}
|
|
236
236
|
function R(s, o) {
|
|
237
237
|
const { currentType: _ } = o;
|
|
238
238
|
if (!(_ === 7 || _ === 11))
|
|
239
239
|
return !1;
|
|
240
|
-
|
|
241
|
-
const
|
|
242
|
-
return s.resetPeek(),
|
|
240
|
+
L(s);
|
|
241
|
+
const k = s.currentPeek() === ":";
|
|
242
|
+
return s.resetPeek(), k;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function A(s, o) {
|
|
245
245
|
const { currentType: _ } = o;
|
|
246
246
|
if (_ !== 9)
|
|
247
247
|
return !1;
|
|
248
|
-
const
|
|
248
|
+
const k = () => {
|
|
249
249
|
const P = s.currentPeek();
|
|
250
|
-
return P === "{" ? f(s.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P === ye ? (s.peek(),
|
|
251
|
-
}, M =
|
|
250
|
+
return P === "{" ? f(s.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P === ye ? (s.peek(), k()) : x(s, !1);
|
|
251
|
+
}, M = k();
|
|
252
252
|
return s.resetPeek(), M;
|
|
253
253
|
}
|
|
254
|
-
function
|
|
255
|
-
|
|
254
|
+
function Z(s) {
|
|
255
|
+
L(s);
|
|
256
256
|
const o = s.currentPeek() === "|";
|
|
257
257
|
return s.resetPeek(), o;
|
|
258
258
|
}
|
|
@@ -260,8 +260,8 @@ function Qr(e, t = {}) {
|
|
|
260
260
|
const _ = (M = !1, P = "") => {
|
|
261
261
|
const v = s.currentPeek();
|
|
262
262
|
return v === "{" || v === "@" || !v ? M : v === "|" ? !(P === Pe || P === ye) : v === Pe ? (s.peek(), _(!0, Pe)) : v === ye ? (s.peek(), _(!0, ye)) : !0;
|
|
263
|
-
},
|
|
264
|
-
return o && s.resetPeek(),
|
|
263
|
+
}, k = _();
|
|
264
|
+
return o && s.resetPeek(), k;
|
|
265
265
|
}
|
|
266
266
|
function m(s, o) {
|
|
267
267
|
const _ = s.currentChar();
|
|
@@ -297,14 +297,14 @@ function Qr(e, t = {}) {
|
|
|
297
297
|
function W(s) {
|
|
298
298
|
return m(s, G);
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function Y(s) {
|
|
301
301
|
const o = s.charCodeAt(0);
|
|
302
302
|
return o >= 48 && o <= 57 || // 0-9
|
|
303
303
|
o >= 65 && o <= 70 || // A-F
|
|
304
304
|
o >= 97 && o <= 102;
|
|
305
305
|
}
|
|
306
306
|
function B(s) {
|
|
307
|
-
return m(s,
|
|
307
|
+
return m(s, Y);
|
|
308
308
|
}
|
|
309
309
|
function ne(s) {
|
|
310
310
|
let o = "", _ = "";
|
|
@@ -322,7 +322,7 @@ function Qr(e, t = {}) {
|
|
|
322
322
|
if (x(s))
|
|
323
323
|
o += _, s.next();
|
|
324
324
|
else {
|
|
325
|
-
if (
|
|
325
|
+
if (Z(s))
|
|
326
326
|
break;
|
|
327
327
|
o += _, s.next();
|
|
328
328
|
}
|
|
@@ -332,14 +332,14 @@ function Qr(e, t = {}) {
|
|
|
332
332
|
return o;
|
|
333
333
|
}
|
|
334
334
|
function _e(s) {
|
|
335
|
-
|
|
335
|
+
D(s);
|
|
336
336
|
let o = "", _ = "";
|
|
337
337
|
for (; o = j(s); )
|
|
338
338
|
_ += o;
|
|
339
339
|
return s.currentChar() === xe && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _;
|
|
340
340
|
}
|
|
341
341
|
function ce(s) {
|
|
342
|
-
|
|
342
|
+
D(s);
|
|
343
343
|
let o = "";
|
|
344
344
|
return s.currentChar() === "-" ? (s.next(), o += `-${ne(s)}`) : o += ne(s), s.currentChar() === xe && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
345
345
|
}
|
|
@@ -347,12 +347,12 @@ function Qr(e, t = {}) {
|
|
|
347
347
|
return s !== cn && s !== ye;
|
|
348
348
|
}
|
|
349
349
|
function fe(s) {
|
|
350
|
-
|
|
350
|
+
D(s), w(s, "'");
|
|
351
351
|
let o = "", _ = "";
|
|
352
352
|
for (; o = m(s, se); )
|
|
353
353
|
o === "\\" ? _ += q(s) : _ += o;
|
|
354
|
-
const
|
|
355
|
-
return
|
|
354
|
+
const k = s.currentChar();
|
|
355
|
+
return k === ye || k === xe ? (T(re.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), k === ye && (s.next(), w(s, "'")), _) : (w(s, "'"), _);
|
|
356
356
|
}
|
|
357
357
|
function q(s) {
|
|
358
358
|
const o = s.currentChar();
|
|
@@ -361,31 +361,31 @@ function Qr(e, t = {}) {
|
|
|
361
361
|
case "'":
|
|
362
362
|
return s.next(), `\\${o}`;
|
|
363
363
|
case "u":
|
|
364
|
-
return
|
|
364
|
+
return De(s, o, 4);
|
|
365
365
|
case "U":
|
|
366
|
-
return
|
|
366
|
+
return De(s, o, 6);
|
|
367
367
|
default:
|
|
368
368
|
return T(re.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
|
|
373
|
-
let
|
|
371
|
+
function De(s, o, _) {
|
|
372
|
+
w(s, o);
|
|
373
|
+
let k = "";
|
|
374
374
|
for (let M = 0; M < _; M++) {
|
|
375
375
|
const P = B(s);
|
|
376
376
|
if (!P) {
|
|
377
|
-
T(re.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${
|
|
377
|
+
T(re.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${k}${s.currentChar()}`);
|
|
378
378
|
break;
|
|
379
379
|
}
|
|
380
|
-
|
|
380
|
+
k += P;
|
|
381
381
|
}
|
|
382
|
-
return `\\${o}${
|
|
382
|
+
return `\\${o}${k}`;
|
|
383
383
|
}
|
|
384
384
|
function K(s) {
|
|
385
385
|
return s !== "{" && s !== "}" && s !== Pe && s !== ye;
|
|
386
386
|
}
|
|
387
387
|
function pe(s) {
|
|
388
|
-
|
|
388
|
+
D(s);
|
|
389
389
|
let o = "", _ = "";
|
|
390
390
|
for (; o = m(s, K); )
|
|
391
391
|
_ += o;
|
|
@@ -399,19 +399,19 @@ function Qr(e, t = {}) {
|
|
|
399
399
|
}
|
|
400
400
|
function Ke(s) {
|
|
401
401
|
const o = (_) => {
|
|
402
|
-
const
|
|
403
|
-
return
|
|
402
|
+
const k = s.currentChar();
|
|
403
|
+
return k === "{" || k === "@" || k === "|" || k === "(" || k === ")" || !k || k === Pe ? _ : (_ += k, s.next(), o(_));
|
|
404
404
|
};
|
|
405
405
|
return o("");
|
|
406
406
|
}
|
|
407
407
|
function Ve(s) {
|
|
408
|
-
|
|
409
|
-
const o =
|
|
408
|
+
D(s);
|
|
409
|
+
const o = w(
|
|
410
410
|
s,
|
|
411
411
|
"|"
|
|
412
412
|
/* TokenChars.Pipe */
|
|
413
413
|
);
|
|
414
|
-
return
|
|
414
|
+
return D(s), o;
|
|
415
415
|
}
|
|
416
416
|
function Fe(s, o) {
|
|
417
417
|
let _ = null;
|
|
@@ -422,30 +422,30 @@ function Qr(e, t = {}) {
|
|
|
422
422
|
2,
|
|
423
423
|
"{"
|
|
424
424
|
/* TokenChars.BraceLeft */
|
|
425
|
-
),
|
|
425
|
+
), D(s), o.braceNest++, _;
|
|
426
426
|
case "}":
|
|
427
427
|
return o.braceNest > 0 && o.currentType === 2 && T(re.EMPTY_PLACEHOLDER, a(), 0), s.next(), _ = N(
|
|
428
428
|
o,
|
|
429
429
|
3,
|
|
430
430
|
"}"
|
|
431
431
|
/* TokenChars.BraceRight */
|
|
432
|
-
), o.braceNest--, o.braceNest > 0 &&
|
|
432
|
+
), o.braceNest--, o.braceNest > 0 && D(s), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), _;
|
|
433
433
|
case "@":
|
|
434
434
|
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = Ce(s, o) || F(o), o.braceNest = 0, _;
|
|
435
435
|
default: {
|
|
436
436
|
let M = !0, P = !0, v = !0;
|
|
437
|
-
if (
|
|
437
|
+
if (Z(s))
|
|
438
438
|
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = N(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
439
439
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
440
|
-
return T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0,
|
|
440
|
+
return T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, Ye(s, o);
|
|
441
441
|
if (M = S(s, o))
|
|
442
|
-
return _ = N(o, 4, _e(s)),
|
|
442
|
+
return _ = N(o, 4, _e(s)), D(s), _;
|
|
443
443
|
if (P = c(s, o))
|
|
444
|
-
return _ = N(o, 5, ce(s)),
|
|
444
|
+
return _ = N(o, 5, ce(s)), D(s), _;
|
|
445
445
|
if (v = b(s, o))
|
|
446
|
-
return _ = N(o, 6, fe(s)),
|
|
446
|
+
return _ = N(o, 6, fe(s)), D(s), _;
|
|
447
447
|
if (!M && !P && !v)
|
|
448
|
-
return _ = N(o, 12, pe(s)), T(re.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, _.value),
|
|
448
|
+
return _ = N(o, 12, pe(s)), T(re.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, _.value), D(s), _;
|
|
449
449
|
break;
|
|
450
450
|
}
|
|
451
451
|
}
|
|
@@ -453,35 +453,35 @@ function Qr(e, t = {}) {
|
|
|
453
453
|
}
|
|
454
454
|
function Ce(s, o) {
|
|
455
455
|
const { currentType: _ } = o;
|
|
456
|
-
let
|
|
456
|
+
let k = null;
|
|
457
457
|
const M = s.currentChar();
|
|
458
458
|
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M === ye || M === Pe) && T(re.INVALID_LINKED_FORMAT, a(), 0), M) {
|
|
459
459
|
case "@":
|
|
460
|
-
return s.next(),
|
|
460
|
+
return s.next(), k = N(
|
|
461
461
|
o,
|
|
462
462
|
7,
|
|
463
463
|
"@"
|
|
464
464
|
/* TokenChars.LinkedAlias */
|
|
465
|
-
), o.inLinked = !0,
|
|
465
|
+
), o.inLinked = !0, k;
|
|
466
466
|
case ".":
|
|
467
|
-
return
|
|
467
|
+
return D(s), s.next(), N(
|
|
468
468
|
o,
|
|
469
469
|
8,
|
|
470
470
|
"."
|
|
471
471
|
/* TokenChars.LinkedDot */
|
|
472
472
|
);
|
|
473
473
|
case ":":
|
|
474
|
-
return
|
|
474
|
+
return D(s), s.next(), N(
|
|
475
475
|
o,
|
|
476
476
|
9,
|
|
477
477
|
":"
|
|
478
478
|
/* TokenChars.LinkedDelimiter */
|
|
479
479
|
);
|
|
480
480
|
default:
|
|
481
|
-
return
|
|
481
|
+
return Z(s) ? (k = N(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, k) : I(s, o) || R(s, o) ? (D(s), Ce(s, o)) : p(s, o) ? (D(s), N(o, 11, Je(s))) : A(s, o) ? (D(s), M === "{" ? Fe(s, o) || k : N(o, 10, Ke(s))) : (_ === 7 && T(re.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, Ye(s, o));
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function Ye(s, o) {
|
|
485
485
|
let _ = {
|
|
486
486
|
type: 13
|
|
487
487
|
/* TokenTypes.EOF */
|
|
@@ -503,7 +503,7 @@ function Qr(e, t = {}) {
|
|
|
503
503
|
case "@":
|
|
504
504
|
return Ce(s, o) || F(o);
|
|
505
505
|
default: {
|
|
506
|
-
if (
|
|
506
|
+
if (Z(s))
|
|
507
507
|
return _ = N(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
508
508
|
if (x(s))
|
|
509
509
|
return N(o, 0, Q(s));
|
|
@@ -513,12 +513,12 @@ function Qr(e, t = {}) {
|
|
|
513
513
|
return _;
|
|
514
514
|
}
|
|
515
515
|
function O() {
|
|
516
|
-
const { currentType: s, offset: o, startLoc: _, endLoc:
|
|
517
|
-
return i.lastType = s, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc =
|
|
516
|
+
const { currentType: s, offset: o, startLoc: _, endLoc: k } = i;
|
|
517
|
+
return i.lastType = s, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc = k, i.offset = l(), i.startLoc = a(), r.currentChar() === xe ? N(
|
|
518
518
|
i,
|
|
519
519
|
13
|
|
520
520
|
/* TokenTypes.EOF */
|
|
521
|
-
) :
|
|
521
|
+
) : Ye(r, i);
|
|
522
522
|
}
|
|
523
523
|
return {
|
|
524
524
|
nextToken: O,
|
|
@@ -580,7 +580,7 @@ function ns(e = {}) {
|
|
|
580
580
|
return h.type !== 11 ? (r(f, re.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), I.value = "", a(I, c, b), {
|
|
581
581
|
nextConsumeToken: h,
|
|
582
582
|
node: I
|
|
583
|
-
}) : (h.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0,
|
|
583
|
+
}) : (h.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, ke(h)), I.value = h.value || "", a(I, f.currentOffset(), f.currentPosition()), {
|
|
584
584
|
node: I
|
|
585
585
|
});
|
|
586
586
|
}
|
|
@@ -595,18 +595,18 @@ function ns(e = {}) {
|
|
|
595
595
|
const b = y(f);
|
|
596
596
|
S.modifier = b.node, c = b.nextConsumeToken || f.nextToken();
|
|
597
597
|
}
|
|
598
|
-
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
598
|
+
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(c)), c = f.nextToken(), c.type === 2 && (c = f.nextToken()), c.type) {
|
|
599
599
|
case 10:
|
|
600
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
600
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(c)), S.key = T(f, c.value || "");
|
|
601
601
|
break;
|
|
602
602
|
case 4:
|
|
603
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
603
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(c)), S.key = i(f, c.value || "");
|
|
604
604
|
break;
|
|
605
605
|
case 5:
|
|
606
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
606
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(c)), S.key = u(f, c.value || "");
|
|
607
607
|
break;
|
|
608
608
|
case 6:
|
|
609
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
609
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(c)), S.key = g(f, c.value || "");
|
|
610
610
|
break;
|
|
611
611
|
default: {
|
|
612
612
|
r(f, re.UNEXPECTED_EMPTY_LINKED_KEY, h.lastStartLoc, 0);
|
|
@@ -626,23 +626,23 @@ function ns(e = {}) {
|
|
|
626
626
|
b.items = [];
|
|
627
627
|
let I = null;
|
|
628
628
|
do {
|
|
629
|
-
const
|
|
630
|
-
switch (I = null,
|
|
629
|
+
const A = I || f.nextToken();
|
|
630
|
+
switch (I = null, A.type) {
|
|
631
631
|
case 0:
|
|
632
|
-
|
|
632
|
+
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(A)), b.items.push(d(f, A.value || ""));
|
|
633
633
|
break;
|
|
634
634
|
case 5:
|
|
635
|
-
|
|
635
|
+
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(A)), b.items.push(u(f, A.value || ""));
|
|
636
636
|
break;
|
|
637
637
|
case 4:
|
|
638
|
-
|
|
638
|
+
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(A)), b.items.push(i(f, A.value || ""));
|
|
639
639
|
break;
|
|
640
640
|
case 6:
|
|
641
|
-
|
|
641
|
+
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(A)), b.items.push(g(f, A.value || ""));
|
|
642
642
|
break;
|
|
643
643
|
case 7: {
|
|
644
|
-
const
|
|
645
|
-
b.items.push(
|
|
644
|
+
const Z = N(f);
|
|
645
|
+
b.items.push(Z.node), I = Z.nextConsumeToken || null;
|
|
646
646
|
break;
|
|
647
647
|
}
|
|
648
648
|
}
|
|
@@ -650,7 +650,7 @@ function ns(e = {}) {
|
|
|
650
650
|
const p = h.currentType === 1 ? h.lastOffset : f.currentOffset(), R = h.currentType === 1 ? h.lastEndLoc : f.currentPosition();
|
|
651
651
|
return a(b, p, R), b;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function w(f, h, S, c) {
|
|
654
654
|
const b = f.context();
|
|
655
655
|
let I = c.items.length === 0;
|
|
656
656
|
const p = l(1, h, S);
|
|
@@ -661,17 +661,17 @@ function ns(e = {}) {
|
|
|
661
661
|
} while (b.currentType !== 13);
|
|
662
662
|
return I && r(f, re.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), a(p, f.currentOffset(), f.currentPosition()), p;
|
|
663
663
|
}
|
|
664
|
-
function
|
|
664
|
+
function L(f) {
|
|
665
665
|
const h = f.context(), { offset: S, startLoc: c } = h, b = F(f);
|
|
666
|
-
return h.currentType === 13 ? b :
|
|
666
|
+
return h.currentType === 13 ? b : w(f, S, c, b);
|
|
667
667
|
}
|
|
668
|
-
function
|
|
668
|
+
function D(f) {
|
|
669
669
|
const h = Qr(f, Ie({}, e)), S = h.context(), c = l(0, S.offset, S.startLoc);
|
|
670
|
-
return t && c.loc && (c.loc.source = f), c.body =
|
|
670
|
+
return t && c.loc && (c.loc.source = f), c.body = L(h), e.onCacheKey && (c.cacheKey = e.onCacheKey(f)), S.currentType !== 13 && r(h, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, f[S.offset] || ""), a(c, h.currentOffset(), h.currentPosition()), c;
|
|
671
671
|
}
|
|
672
|
-
return { parse:
|
|
672
|
+
return { parse: D };
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function ke(e) {
|
|
675
675
|
if (e.type === 13)
|
|
676
676
|
return "EOF";
|
|
677
677
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
@@ -824,20 +824,20 @@ function as(e, t) {
|
|
|
824
824
|
};
|
|
825
825
|
a && e.loc && (d.source = e.loc.source);
|
|
826
826
|
const u = () => d;
|
|
827
|
-
function i(
|
|
828
|
-
d.code +=
|
|
827
|
+
function i(L, D) {
|
|
828
|
+
d.code += L;
|
|
829
829
|
}
|
|
830
|
-
function g(
|
|
831
|
-
const f =
|
|
832
|
-
i(l ? f + " ".repeat(
|
|
830
|
+
function g(L, D = !0) {
|
|
831
|
+
const f = D ? r : "";
|
|
832
|
+
i(l ? f + " ".repeat(L) : f);
|
|
833
833
|
}
|
|
834
|
-
function y(
|
|
835
|
-
const
|
|
836
|
-
|
|
834
|
+
function y(L = !0) {
|
|
835
|
+
const D = ++d.indentLevel;
|
|
836
|
+
L && g(D);
|
|
837
837
|
}
|
|
838
|
-
function T(
|
|
839
|
-
const
|
|
840
|
-
|
|
838
|
+
function T(L = !0) {
|
|
839
|
+
const D = --d.indentLevel;
|
|
840
|
+
L && g(D);
|
|
841
841
|
}
|
|
842
842
|
function N() {
|
|
843
843
|
g(d.indentLevel);
|
|
@@ -848,7 +848,7 @@ function as(e, t) {
|
|
|
848
848
|
indent: y,
|
|
849
849
|
deindent: T,
|
|
850
850
|
newline: N,
|
|
851
|
-
helper: (
|
|
851
|
+
helper: (L) => `_${L}`,
|
|
852
852
|
needIndent: () => d.needIndent
|
|
853
853
|
};
|
|
854
854
|
}
|
|
@@ -934,7 +934,7 @@ function st(e, t) {
|
|
|
934
934
|
}
|
|
935
935
|
}
|
|
936
936
|
const ds = (e, t = {}) => {
|
|
937
|
-
const n =
|
|
937
|
+
const n = X(t.mode) ? t.mode : "normal", r = X(t.filename) ? t.filename : "message.intl";
|
|
938
938
|
t.sourceMap;
|
|
939
939
|
const l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
940
940
|
`, a = t.needIndent ? t.needIndent : n !== "arrow", d = e.helpers || [], u = as(e, {
|
|
@@ -957,9 +957,9 @@ function ms(e, t = {}) {
|
|
|
957
957
|
}
|
|
958
958
|
var fs = { env: { NODE_ENV: "production" } };
|
|
959
959
|
function _s() {
|
|
960
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
960
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ze().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ze().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
961
961
|
}
|
|
962
|
-
function
|
|
962
|
+
function Lt(e) {
|
|
963
963
|
return (n) => ps(n, e);
|
|
964
964
|
}
|
|
965
965
|
function ps(e, t) {
|
|
@@ -1012,22 +1012,22 @@ function Pt(e, t) {
|
|
|
1012
1012
|
return _t(t, n);
|
|
1013
1013
|
case 4: {
|
|
1014
1014
|
const r = t;
|
|
1015
|
-
if (
|
|
1015
|
+
if (Ae(r, "k") && r.k)
|
|
1016
1016
|
return e.interpolate(e.named(r.k));
|
|
1017
|
-
if (
|
|
1017
|
+
if (Ae(r, "key") && r.key)
|
|
1018
1018
|
return e.interpolate(e.named(r.key));
|
|
1019
1019
|
throw it(n);
|
|
1020
1020
|
}
|
|
1021
1021
|
case 5: {
|
|
1022
1022
|
const r = t;
|
|
1023
|
-
if (
|
|
1023
|
+
if (Ae(r, "i") && ge(r.i))
|
|
1024
1024
|
return e.interpolate(e.list(r.i));
|
|
1025
|
-
if (
|
|
1025
|
+
if (Ae(r, "index") && ge(r.index))
|
|
1026
1026
|
return e.interpolate(e.list(r.index));
|
|
1027
1027
|
throw it(n);
|
|
1028
1028
|
}
|
|
1029
1029
|
case 6: {
|
|
1030
|
-
const r = t, l = Ss(r), a =
|
|
1030
|
+
const r = t, l = Ss(r), a = Ls(r);
|
|
1031
1031
|
return e.linked(Pt(e, a), l ? Pt(e, l) : void 0, e.type);
|
|
1032
1032
|
}
|
|
1033
1033
|
case 7:
|
|
@@ -1053,9 +1053,9 @@ const Os = ["m", "modifier"];
|
|
|
1053
1053
|
function Ss(e) {
|
|
1054
1054
|
return Ge(e, Os);
|
|
1055
1055
|
}
|
|
1056
|
-
const
|
|
1057
|
-
function
|
|
1058
|
-
const t = Ge(e,
|
|
1056
|
+
const As = ["k", "key"];
|
|
1057
|
+
function Ls(e) {
|
|
1058
|
+
const t = Ge(e, As);
|
|
1059
1059
|
if (t)
|
|
1060
1060
|
return t;
|
|
1061
1061
|
throw it(
|
|
@@ -1066,7 +1066,7 @@ function As(e) {
|
|
|
1066
1066
|
function Ge(e, t, n) {
|
|
1067
1067
|
for (let r = 0; r < t.length; r++) {
|
|
1068
1068
|
const l = t[r];
|
|
1069
|
-
if (
|
|
1069
|
+
if (Ae(e, l) && e[l] != null)
|
|
1070
1070
|
return e[l];
|
|
1071
1071
|
}
|
|
1072
1072
|
return n;
|
|
@@ -1074,10 +1074,10 @@ function Ge(e, t, n) {
|
|
|
1074
1074
|
function it(e) {
|
|
1075
1075
|
return new Error(`unhandled node type: ${e}`);
|
|
1076
1076
|
}
|
|
1077
|
-
const
|
|
1077
|
+
const ks = (e) => e;
|
|
1078
1078
|
let pt = oe();
|
|
1079
1079
|
function ot(e) {
|
|
1080
|
-
return te(e) && Kt(e) === 0 && (
|
|
1080
|
+
return te(e) && Kt(e) === 0 && (Ae(e, "b") || Ae(e, "body"));
|
|
1081
1081
|
}
|
|
1082
1082
|
function Rs(e, t = {}) {
|
|
1083
1083
|
let n = !1;
|
|
@@ -1088,31 +1088,31 @@ function Rs(e, t = {}) {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
// @__NO_SIDE_EFFECTS__
|
|
1090
1090
|
function Ms(e, t) {
|
|
1091
|
-
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ &&
|
|
1091
|
+
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && X(e)) {
|
|
1092
1092
|
ve(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1093
|
-
const r = (t.onCacheKey ||
|
|
1093
|
+
const r = (t.onCacheKey || ks)(e), l = pt[r];
|
|
1094
1094
|
if (l)
|
|
1095
1095
|
return l;
|
|
1096
1096
|
const { ast: a, detectError: d } = Rs(e, {
|
|
1097
1097
|
...t,
|
|
1098
1098
|
location: fs.env.NODE_ENV !== "production",
|
|
1099
1099
|
jit: !0
|
|
1100
|
-
}), u =
|
|
1100
|
+
}), u = Lt(a);
|
|
1101
1101
|
return d ? u : pt[r] = u;
|
|
1102
1102
|
} else {
|
|
1103
1103
|
const n = e.cacheKey;
|
|
1104
1104
|
if (n) {
|
|
1105
1105
|
const r = pt[n];
|
|
1106
|
-
return r || (pt[n] =
|
|
1106
|
+
return r || (pt[n] = Lt(e));
|
|
1107
1107
|
} else
|
|
1108
|
-
return
|
|
1108
|
+
return Lt(e);
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
1111
|
let ct = null;
|
|
1112
|
-
function
|
|
1112
|
+
function ws(e) {
|
|
1113
1113
|
ct = e;
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1115
|
+
function Ds(e, t, n) {
|
|
1116
1116
|
ct && ct.emit("i18n:init", {
|
|
1117
1117
|
timestamp: Date.now(),
|
|
1118
1118
|
i18n: e,
|
|
@@ -1125,7 +1125,7 @@ function Ps(e) {
|
|
|
1125
1125
|
return (t) => ct && ct.emit(e, t);
|
|
1126
1126
|
}
|
|
1127
1127
|
const je = {
|
|
1128
|
-
INVALID_ARGUMENT:
|
|
1128
|
+
INVALID_ARGUMENT: Yr,
|
|
1129
1129
|
// 17
|
|
1130
1130
|
INVALID_DATE_ARGUMENT: 18,
|
|
1131
1131
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1139,18 +1139,18 @@ function Ue(e) {
|
|
|
1139
1139
|
function zt(e, t) {
|
|
1140
1140
|
return t.locale != null ? fn(t.locale) : fn(e.locale);
|
|
1141
1141
|
}
|
|
1142
|
-
let
|
|
1142
|
+
let kt;
|
|
1143
1143
|
function fn(e) {
|
|
1144
|
-
if (
|
|
1144
|
+
if (X(e))
|
|
1145
1145
|
return e;
|
|
1146
1146
|
if (me(e)) {
|
|
1147
|
-
if (e.resolvedOnce &&
|
|
1148
|
-
return
|
|
1147
|
+
if (e.resolvedOnce && kt != null)
|
|
1148
|
+
return kt;
|
|
1149
1149
|
if (e.constructor.name === "Function") {
|
|
1150
1150
|
const t = e();
|
|
1151
1151
|
if (xr(t))
|
|
1152
1152
|
throw Ue(je.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1153
|
-
return
|
|
1153
|
+
return kt = t;
|
|
1154
1154
|
} else
|
|
1155
1155
|
throw Ue(je.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1156
1156
|
} else
|
|
@@ -1159,11 +1159,11 @@ function fn(e) {
|
|
|
1159
1159
|
function Us(e, t, n) {
|
|
1160
1160
|
return [.../* @__PURE__ */ new Set([
|
|
1161
1161
|
n,
|
|
1162
|
-
...be(t) ? t : te(t) ? Object.keys(t) :
|
|
1162
|
+
...be(t) ? t : te(t) ? Object.keys(t) : X(t) ? [t] : [n]
|
|
1163
1163
|
])];
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1166
|
-
const r =
|
|
1165
|
+
function Hn(e, t, n) {
|
|
1166
|
+
const r = X(n) ? n : Nt, l = e;
|
|
1167
1167
|
l.__localeChainCache || (l.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1168
1168
|
let a = l.__localeChainCache.get(r);
|
|
1169
1169
|
if (!a) {
|
|
@@ -1172,7 +1172,7 @@ function Yn(e, t, n) {
|
|
|
1172
1172
|
for (; be(d); )
|
|
1173
1173
|
d = _n(a, d, t);
|
|
1174
1174
|
const u = be(t) || !ee(t) ? t : t.default ? t.default : null;
|
|
1175
|
-
d =
|
|
1175
|
+
d = X(u) ? [u] : u, be(d) && _n(a, d, !1), l.__localeChainCache.set(r, a);
|
|
1176
1176
|
}
|
|
1177
1177
|
return a;
|
|
1178
1178
|
}
|
|
@@ -1180,7 +1180,7 @@ function _n(e, t, n) {
|
|
|
1180
1180
|
let r = !0;
|
|
1181
1181
|
for (let l = 0; l < t.length && ve(r); l++) {
|
|
1182
1182
|
const a = t[l];
|
|
1183
|
-
|
|
1183
|
+
X(a) && (r = Vs(e, t[l], n));
|
|
1184
1184
|
}
|
|
1185
1185
|
return r;
|
|
1186
1186
|
}
|
|
@@ -1202,8 +1202,8 @@ function xs(e, t, n) {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
return r;
|
|
1204
1204
|
}
|
|
1205
|
-
const
|
|
1206
|
-
|
|
1205
|
+
const Xe = [];
|
|
1206
|
+
Xe[
|
|
1207
1207
|
0
|
|
1208
1208
|
/* States.BEFORE_PATH */
|
|
1209
1209
|
] = {
|
|
@@ -1225,7 +1225,7 @@ Ze[
|
|
|
1225
1225
|
/* States.AFTER_PATH */
|
|
1226
1226
|
]
|
|
1227
1227
|
};
|
|
1228
|
-
|
|
1228
|
+
Xe[
|
|
1229
1229
|
1
|
|
1230
1230
|
/* States.IN_PATH */
|
|
1231
1231
|
] = {
|
|
@@ -1246,7 +1246,7 @@ Ze[
|
|
|
1246
1246
|
/* States.AFTER_PATH */
|
|
1247
1247
|
]
|
|
1248
1248
|
};
|
|
1249
|
-
|
|
1249
|
+
Xe[
|
|
1250
1250
|
2
|
|
1251
1251
|
/* States.BEFORE_IDENT */
|
|
1252
1252
|
] = {
|
|
@@ -1265,7 +1265,7 @@ Ze[
|
|
|
1265
1265
|
/* Actions.APPEND */
|
|
1266
1266
|
]
|
|
1267
1267
|
};
|
|
1268
|
-
|
|
1268
|
+
Xe[
|
|
1269
1269
|
3
|
|
1270
1270
|
/* States.IN_IDENT */
|
|
1271
1271
|
] = {
|
|
@@ -1300,7 +1300,7 @@ Ze[
|
|
|
1300
1300
|
/* Actions.PUSH */
|
|
1301
1301
|
]
|
|
1302
1302
|
};
|
|
1303
|
-
|
|
1303
|
+
Xe[
|
|
1304
1304
|
4
|
|
1305
1305
|
/* States.IN_SUB_PATH */
|
|
1306
1306
|
] = {
|
|
@@ -1331,7 +1331,7 @@ Ze[
|
|
|
1331
1331
|
/* Actions.APPEND */
|
|
1332
1332
|
]
|
|
1333
1333
|
};
|
|
1334
|
-
|
|
1334
|
+
Xe[
|
|
1335
1335
|
5
|
|
1336
1336
|
/* States.IN_SINGLE_QUOTE */
|
|
1337
1337
|
] = {
|
|
@@ -1347,7 +1347,7 @@ Ze[
|
|
|
1347
1347
|
/* Actions.APPEND */
|
|
1348
1348
|
]
|
|
1349
1349
|
};
|
|
1350
|
-
|
|
1350
|
+
Xe[
|
|
1351
1351
|
6
|
|
1352
1352
|
/* States.IN_DOUBLE_QUOTE */
|
|
1353
1353
|
] = {
|
|
@@ -1367,11 +1367,11 @@ const Ws = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
|
1367
1367
|
function Gs(e) {
|
|
1368
1368
|
return Ws.test(e);
|
|
1369
1369
|
}
|
|
1370
|
-
function
|
|
1370
|
+
function Xs(e) {
|
|
1371
1371
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1372
1372
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1373
1373
|
}
|
|
1374
|
-
function
|
|
1374
|
+
function Ys(e) {
|
|
1375
1375
|
if (e == null)
|
|
1376
1376
|
return "o";
|
|
1377
1377
|
switch (e.charCodeAt(0)) {
|
|
@@ -1398,9 +1398,9 @@ function Xs(e) {
|
|
|
1398
1398
|
}
|
|
1399
1399
|
function Bs(e) {
|
|
1400
1400
|
const t = e.trim();
|
|
1401
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Gs(t) ?
|
|
1401
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Gs(t) ? Xs(t) : "*" + t;
|
|
1402
1402
|
}
|
|
1403
|
-
function
|
|
1403
|
+
function Zs(e) {
|
|
1404
1404
|
const t = [];
|
|
1405
1405
|
let n = -1, r = 0, l = 0, a, d, u, i, g, y, T;
|
|
1406
1406
|
const N = [];
|
|
@@ -1441,30 +1441,30 @@ function Hs(e) {
|
|
|
1441
1441
|
}
|
|
1442
1442
|
};
|
|
1443
1443
|
function F() {
|
|
1444
|
-
const
|
|
1445
|
-
if (r === 5 &&
|
|
1446
|
-
return n++, u = "\\" +
|
|
1444
|
+
const w = e[n + 1];
|
|
1445
|
+
if (r === 5 && w === "'" || r === 6 && w === '"')
|
|
1446
|
+
return n++, u = "\\" + w, N[
|
|
1447
1447
|
0
|
|
1448
1448
|
/* Actions.APPEND */
|
|
1449
1449
|
](), !0;
|
|
1450
1450
|
}
|
|
1451
1451
|
for (; r !== null; )
|
|
1452
1452
|
if (n++, a = e[n], !(a === "\\" && F())) {
|
|
1453
|
-
if (i =
|
|
1453
|
+
if (i = Ys(a), T = Xe[r], g = T[i] || T.l || 8, g === 8 || (r = g[0], g[1] !== void 0 && (y = N[g[1]], y && (u = a, y() === !1))))
|
|
1454
1454
|
return;
|
|
1455
1455
|
if (r === 7)
|
|
1456
1456
|
return t;
|
|
1457
1457
|
}
|
|
1458
1458
|
}
|
|
1459
1459
|
const pn = /* @__PURE__ */ new Map();
|
|
1460
|
-
function
|
|
1460
|
+
function Hs(e, t) {
|
|
1461
1461
|
return te(e) ? e[t] : null;
|
|
1462
1462
|
}
|
|
1463
1463
|
function $s(e, t) {
|
|
1464
1464
|
if (!te(e))
|
|
1465
1465
|
return null;
|
|
1466
1466
|
let n = pn.get(t);
|
|
1467
|
-
if (n || (n =
|
|
1467
|
+
if (n || (n = Zs(t), n && pn.set(t, n)), !n)
|
|
1468
1468
|
return null;
|
|
1469
1469
|
const r = n.length;
|
|
1470
1470
|
let l = e, a = 0;
|
|
@@ -1479,9 +1479,9 @@ function $s(e, t) {
|
|
|
1479
1479
|
const Js = "10.0.5", Ot = -1, Nt = "en-US", vn = "", hn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1480
1480
|
function Ks() {
|
|
1481
1481
|
return {
|
|
1482
|
-
upper: (e, t) => t === "text" &&
|
|
1483
|
-
lower: (e, t) => t === "text" &&
|
|
1484
|
-
capitalize: (e, t) => t === "text" &&
|
|
1482
|
+
upper: (e, t) => t === "text" && X(e) ? e.toUpperCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1483
|
+
lower: (e, t) => t === "text" && X(e) ? e.toLowerCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1484
|
+
capitalize: (e, t) => t === "text" && X(e) ? hn(e) : t === "vnode" && te(e) && "__v_isVNode" in e ? hn(e.children) : e
|
|
1485
1485
|
};
|
|
1486
1486
|
}
|
|
1487
1487
|
let $n;
|
|
@@ -1506,7 +1506,7 @@ const bn = (e) => {
|
|
|
1506
1506
|
}, no = () => Qn;
|
|
1507
1507
|
let gn = 0;
|
|
1508
1508
|
function ro(e = {}) {
|
|
1509
|
-
const t = me(e.onWarn) ? e.onWarn : Gr, n =
|
|
1509
|
+
const t = me(e.onWarn) ? e.onWarn : Gr, n = X(e.version) ? e.version : Js, r = X(e.locale) || me(e.locale) ? e.locale : Nt, l = me(r) ? Nt : r, a = be(e.fallbackLocale) || ee(e.fallbackLocale) || X(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, d = 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 = me(e.missing) ? e.missing : null, N = ve(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, F = ve(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, w = !!e.fallbackFormat, L = !!e.unresolving, D = me(e.postTranslation) ? e.postTranslation : null, f = ee(e.processor) ? e.processor : null, h = ve(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, c = me(e.messageCompiler) ? e.messageCompiler : $n, b = me(e.messageResolver) ? e.messageResolver : Jn || Hs, I = me(e.localeFallbacker) ? e.localeFallbacker : Kn || Us, p = te(e.fallbackContext) ? e.fallbackContext : void 0, R = e, A = te(R.__datetimeFormatters) ? R.__datetimeFormatters : /* @__PURE__ */ new Map(), Z = te(R.__numberFormatters) ? R.__numberFormatters : /* @__PURE__ */ new Map(), x = te(R.__meta) ? R.__meta : {};
|
|
1510
1510
|
gn++;
|
|
1511
1511
|
const m = {
|
|
1512
1512
|
version: n,
|
|
@@ -1519,9 +1519,9 @@ function ro(e = {}) {
|
|
|
1519
1519
|
missing: T,
|
|
1520
1520
|
missingWarn: N,
|
|
1521
1521
|
fallbackWarn: F,
|
|
1522
|
-
fallbackFormat:
|
|
1523
|
-
unresolving:
|
|
1524
|
-
postTranslation:
|
|
1522
|
+
fallbackFormat: w,
|
|
1523
|
+
unresolving: L,
|
|
1524
|
+
postTranslation: D,
|
|
1525
1525
|
processor: f,
|
|
1526
1526
|
warnHtmlMessage: h,
|
|
1527
1527
|
escapeParameter: S,
|
|
@@ -1532,14 +1532,14 @@ function ro(e = {}) {
|
|
|
1532
1532
|
onWarn: t,
|
|
1533
1533
|
__meta: x
|
|
1534
1534
|
};
|
|
1535
|
-
return m.datetimeFormats = u, m.numberFormats = i, m.__datetimeFormatters =
|
|
1535
|
+
return m.datetimeFormats = u, m.numberFormats = i, m.__datetimeFormatters = A, m.__numberFormatters = Z, __INTLIFY_PROD_DEVTOOLS__ && Ds(m, n, x), m;
|
|
1536
1536
|
}
|
|
1537
1537
|
const Rt = (e) => ({ [e]: oe() });
|
|
1538
1538
|
function Qt(e, t, n, r, l) {
|
|
1539
1539
|
const { missing: a, onWarn: d } = e;
|
|
1540
1540
|
if (a !== null) {
|
|
1541
1541
|
const u = a(e, n, t, l);
|
|
1542
|
-
return
|
|
1542
|
+
return X(u) ? u : t;
|
|
1543
1543
|
} else
|
|
1544
1544
|
return t;
|
|
1545
1545
|
}
|
|
@@ -1562,19 +1562,19 @@ function oo(e, t) {
|
|
|
1562
1562
|
function In(e, ...t) {
|
|
1563
1563
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __datetimeFormatters: u } = e, [i, g, y, T] = jt(...t), N = ve(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1564
1564
|
ve(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1565
|
-
const F = !!y.part,
|
|
1565
|
+
const F = !!y.part, w = zt(e, y), L = d(
|
|
1566
1566
|
e,
|
|
1567
1567
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1568
1568
|
l,
|
|
1569
|
-
|
|
1569
|
+
w
|
|
1570
1570
|
);
|
|
1571
|
-
if (!
|
|
1572
|
-
return new Intl.DateTimeFormat(
|
|
1573
|
-
let
|
|
1571
|
+
if (!X(i) || i === "")
|
|
1572
|
+
return new Intl.DateTimeFormat(w, T).format(g);
|
|
1573
|
+
let D = {}, f, h = null;
|
|
1574
1574
|
const S = "datetime format";
|
|
1575
|
-
for (let I = 0; I <
|
|
1575
|
+
for (let I = 0; I < L.length && (f = L[I], D = n[f] || {}, h = D[i], !ee(h)); I++)
|
|
1576
1576
|
Qt(e, i, f, N, S);
|
|
1577
|
-
if (!ee(h) || !
|
|
1577
|
+
if (!ee(h) || !X(f))
|
|
1578
1578
|
return r ? Ot : i;
|
|
1579
1579
|
let c = `${f}__${i}`;
|
|
1580
1580
|
Ct(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
@@ -1606,7 +1606,7 @@ const qn = [
|
|
|
1606
1606
|
function jt(...e) {
|
|
1607
1607
|
const [t, n, r, l] = e, a = oe();
|
|
1608
1608
|
let d = oe(), u;
|
|
1609
|
-
if (
|
|
1609
|
+
if (X(t)) {
|
|
1610
1610
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1611
1611
|
if (!i)
|
|
1612
1612
|
throw Ue(je.INVALID_ISO_DATE_ARGUMENT);
|
|
@@ -1625,9 +1625,9 @@ function jt(...e) {
|
|
|
1625
1625
|
u = t;
|
|
1626
1626
|
else
|
|
1627
1627
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1628
|
-
return
|
|
1628
|
+
return X(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1629
1629
|
qn.includes(i) ? d[i] = n[i] : a[i] = n[i];
|
|
1630
|
-
}),
|
|
1630
|
+
}), X(r) ? a.locale = r : ee(r) && (d = r), ee(l) && (d = l), [a.key || "", u, a, d];
|
|
1631
1631
|
}
|
|
1632
1632
|
function yn(e, t, n) {
|
|
1633
1633
|
const r = e;
|
|
@@ -1639,19 +1639,19 @@ function yn(e, t, n) {
|
|
|
1639
1639
|
function En(e, ...t) {
|
|
1640
1640
|
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __numberFormatters: u } = e, [i, g, y, T] = Ut(...t), N = ve(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1641
1641
|
ve(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1642
|
-
const F = !!y.part,
|
|
1642
|
+
const F = !!y.part, w = zt(e, y), L = d(
|
|
1643
1643
|
e,
|
|
1644
1644
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1645
1645
|
l,
|
|
1646
|
-
|
|
1646
|
+
w
|
|
1647
1647
|
);
|
|
1648
|
-
if (!
|
|
1649
|
-
return new Intl.NumberFormat(
|
|
1650
|
-
let
|
|
1648
|
+
if (!X(i) || i === "")
|
|
1649
|
+
return new Intl.NumberFormat(w, T).format(g);
|
|
1650
|
+
let D = {}, f, h = null;
|
|
1651
1651
|
const S = "number format";
|
|
1652
|
-
for (let I = 0; I <
|
|
1652
|
+
for (let I = 0; I < L.length && (f = L[I], D = n[f] || {}, h = D[i], !ee(h)); I++)
|
|
1653
1653
|
Qt(e, i, f, N, S);
|
|
1654
|
-
if (!ee(h) || !
|
|
1654
|
+
if (!ee(h) || !X(f))
|
|
1655
1655
|
return r ? Ot : i;
|
|
1656
1656
|
let c = `${f}__${i}`;
|
|
1657
1657
|
Ct(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
@@ -1686,9 +1686,9 @@ function Ut(...e) {
|
|
|
1686
1686
|
if (!ge(t))
|
|
1687
1687
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1688
1688
|
const u = t;
|
|
1689
|
-
return
|
|
1689
|
+
return X(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1690
1690
|
er.includes(i) ? d[i] = n[i] : a[i] = n[i];
|
|
1691
|
-
}),
|
|
1691
|
+
}), X(r) ? a.locale = r : ee(r) && (d = r), ee(l) && (d = l), [a.key || "", u, a, d];
|
|
1692
1692
|
}
|
|
1693
1693
|
function Nn(e, t, n) {
|
|
1694
1694
|
const r = e;
|
|
@@ -1709,45 +1709,45 @@ function fo(e, t) {
|
|
|
1709
1709
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1710
1710
|
}
|
|
1711
1711
|
function _o(e = {}) {
|
|
1712
|
-
const t = e.locale, n = mo(e), r = te(e.pluralRules) &&
|
|
1712
|
+
const t = e.locale, n = mo(e), r = te(e.pluralRules) && X(t) && me(e.pluralRules[t]) ? e.pluralRules[t] : Cn, l = te(e.pluralRules) && X(t) && me(e.pluralRules[t]) ? Cn : void 0, a = (f) => f[r(n, f.length, l)], d = e.list || [], u = (f) => d[f], i = e.named || oe();
|
|
1713
1713
|
ge(e.pluralIndex) && fo(n, i);
|
|
1714
1714
|
const g = (f) => i[f];
|
|
1715
1715
|
function y(f, h) {
|
|
1716
1716
|
const S = me(e.messages) ? e.messages(f, !!h) : te(e.messages) ? e.messages[f] : !1;
|
|
1717
1717
|
return S || (e.parent ? e.parent.message(f) : lo);
|
|
1718
1718
|
}
|
|
1719
|
-
const T = (f) => e.modifiers ? e.modifiers[f] : ao, N = ee(e.processor) && me(e.processor.normalize) ? e.processor.normalize : co, F = ee(e.processor) && me(e.processor.interpolate) ? e.processor.interpolate : uo,
|
|
1719
|
+
const T = (f) => e.modifiers ? e.modifiers[f] : ao, N = ee(e.processor) && me(e.processor.normalize) ? e.processor.normalize : co, F = ee(e.processor) && me(e.processor.interpolate) ? e.processor.interpolate : uo, w = ee(e.processor) && X(e.processor.type) ? e.processor.type : io, D = {
|
|
1720
1720
|
list: u,
|
|
1721
1721
|
named: g,
|
|
1722
1722
|
plural: a,
|
|
1723
1723
|
linked: (f, ...h) => {
|
|
1724
1724
|
const [S, c] = h;
|
|
1725
1725
|
let b = "text", I = "";
|
|
1726
|
-
h.length === 1 ? te(S) ? (I = S.modifier || I, b = S.type || b) :
|
|
1727
|
-
const p = y(f, !0)(
|
|
1726
|
+
h.length === 1 ? te(S) ? (I = S.modifier || I, b = S.type || b) : X(S) && (I = S || I) : h.length === 2 && (X(S) && (I = S || I), X(c) && (b = c || b));
|
|
1727
|
+
const p = y(f, !0)(D), R = (
|
|
1728
1728
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1729
1729
|
b === "vnode" && be(p) && I ? p[0] : p
|
|
1730
1730
|
);
|
|
1731
1731
|
return I ? T(I)(R, b) : R;
|
|
1732
1732
|
},
|
|
1733
1733
|
message: y,
|
|
1734
|
-
type:
|
|
1734
|
+
type: w,
|
|
1735
1735
|
interpolate: F,
|
|
1736
1736
|
normalize: N,
|
|
1737
1737
|
values: Ie(oe(), d, i)
|
|
1738
1738
|
};
|
|
1739
|
-
return
|
|
1739
|
+
return D;
|
|
1740
1740
|
}
|
|
1741
1741
|
const Tn = () => "", Te = (e) => me(e);
|
|
1742
1742
|
function On(e, ...t) {
|
|
1743
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale: d, messages: u } = e, [i, g] = Vt(...t), y = ve(g.missingWarn) ? g.missingWarn : e.missingWarn, T = ve(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, N = ve(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, F = !!g.resolvedMessage,
|
|
1743
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale: d, messages: u } = e, [i, g] = Vt(...t), y = ve(g.missingWarn) ? g.missingWarn : e.missingWarn, T = ve(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, N = ve(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, F = !!g.resolvedMessage, w = X(g.default) || ve(g.default) ? ve(g.default) ? a ? i : () => i : g.default : n ? a ? i : () => i : null, L = n || w != null && (X(w) || me(w)), D = zt(e, g);
|
|
1744
1744
|
N && po(g);
|
|
1745
1745
|
let [f, h, S] = F ? [
|
|
1746
1746
|
i,
|
|
1747
|
-
|
|
1748
|
-
u[
|
|
1749
|
-
] : tr(e, i,
|
|
1750
|
-
if (!F && !(
|
|
1747
|
+
D,
|
|
1748
|
+
u[D] || oe()
|
|
1749
|
+
] : tr(e, i, D, d, T, y), c = f, b = i;
|
|
1750
|
+
if (!F && !(X(c) || ot(c) || Te(c)) && L && (c = w, b = c), !F && (!(X(c) || ot(c) || Te(c)) || !X(h)))
|
|
1751
1751
|
return l ? Ot : i;
|
|
1752
1752
|
let I = !1;
|
|
1753
1753
|
const p = () => {
|
|
@@ -1755,13 +1755,13 @@ function On(e, ...t) {
|
|
|
1755
1755
|
}, R = Te(c) ? c : nr(e, i, h, c, b, p);
|
|
1756
1756
|
if (I)
|
|
1757
1757
|
return c;
|
|
1758
|
-
const
|
|
1758
|
+
const A = bo(e, h, S, g), Z = _o(A), x = vo(e, R, Z), m = r ? r(x, i) : x;
|
|
1759
1759
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1760
1760
|
const C = {
|
|
1761
1761
|
timestamp: Date.now(),
|
|
1762
|
-
key:
|
|
1762
|
+
key: X(i) ? i : Te(c) ? c.key : "",
|
|
1763
1763
|
locale: h || (Te(c) ? c.locale : ""),
|
|
1764
|
-
format:
|
|
1764
|
+
format: X(c) ? c : Te(c) ? c.source : "",
|
|
1765
1765
|
message: m
|
|
1766
1766
|
};
|
|
1767
1767
|
C.meta = Ie({}, e.__meta, /* @__PURE__ */ to() || {}), Fs(C);
|
|
@@ -1769,25 +1769,25 @@ function On(e, ...t) {
|
|
|
1769
1769
|
return m;
|
|
1770
1770
|
}
|
|
1771
1771
|
function po(e) {
|
|
1772
|
-
be(e.list) ? e.list = e.list.map((t) =>
|
|
1773
|
-
|
|
1772
|
+
be(e.list) ? e.list = e.list.map((t) => X(t) ? ln(t) : t) : te(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1773
|
+
X(e.named[t]) && (e.named[t] = ln(e.named[t]));
|
|
1774
1774
|
});
|
|
1775
1775
|
}
|
|
1776
1776
|
function tr(e, t, n, r, l, a) {
|
|
1777
1777
|
const { messages: d, onWarn: u, messageResolver: i, localeFallbacker: g } = e, y = g(e, r, n);
|
|
1778
1778
|
let T = oe(), N, F = null;
|
|
1779
|
-
const
|
|
1780
|
-
for (let
|
|
1779
|
+
const w = "translate";
|
|
1780
|
+
for (let L = 0; L < y.length && (N = y[L], T = d[N] || oe(), (F = i(T, t)) === null && (F = T[t]), !(X(F) || ot(F) || Te(F))); L++)
|
|
1781
1781
|
if (!oo(N, y)) {
|
|
1782
|
-
const
|
|
1782
|
+
const D = Qt(
|
|
1783
1783
|
e,
|
|
1784
1784
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1785
1785
|
t,
|
|
1786
1786
|
N,
|
|
1787
1787
|
a,
|
|
1788
|
-
|
|
1788
|
+
w
|
|
1789
1789
|
);
|
|
1790
|
-
|
|
1790
|
+
D !== t && (F = D);
|
|
1791
1791
|
}
|
|
1792
1792
|
return [F, N, T];
|
|
1793
1793
|
}
|
|
@@ -1809,10 +1809,10 @@ function vo(e, t, n) {
|
|
|
1809
1809
|
}
|
|
1810
1810
|
function Vt(...e) {
|
|
1811
1811
|
const [t, n, r] = e, l = oe();
|
|
1812
|
-
if (!
|
|
1812
|
+
if (!X(t) && !ge(t) && !Te(t) && !ot(t))
|
|
1813
1813
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1814
1814
|
const a = ge(t) ? String(t) : (Te(t), t);
|
|
1815
|
-
return ge(n) ? l.plural = n :
|
|
1815
|
+
return ge(n) ? l.plural = n : X(n) ? l.default = n : ee(n) && !Ct(n) ? l.named = n : be(n) && (l.list = n), ge(r) ? l.plural = r : X(r) ? l.default = r : ee(r) && Ie(l, r), [a, l];
|
|
1816
1816
|
}
|
|
1817
1817
|
function ho(e, t, n, r, l, a) {
|
|
1818
1818
|
return {
|
|
@@ -1830,10 +1830,10 @@ function bo(e, t, n, r) {
|
|
|
1830
1830
|
locale: t,
|
|
1831
1831
|
modifiers: l,
|
|
1832
1832
|
pluralRules: a,
|
|
1833
|
-
messages: (F,
|
|
1834
|
-
let
|
|
1835
|
-
if (
|
|
1836
|
-
const [, ,
|
|
1833
|
+
messages: (F, w) => {
|
|
1834
|
+
let L = d(n, F);
|
|
1835
|
+
if (L == null && (y || w)) {
|
|
1836
|
+
const [, , D] = tr(
|
|
1837
1837
|
y || e,
|
|
1838
1838
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1839
1839
|
F,
|
|
@@ -1842,24 +1842,24 @@ function bo(e, t, n, r) {
|
|
|
1842
1842
|
i,
|
|
1843
1843
|
g
|
|
1844
1844
|
);
|
|
1845
|
-
|
|
1845
|
+
L = d(D, F);
|
|
1846
1846
|
}
|
|
1847
|
-
if (
|
|
1848
|
-
let
|
|
1849
|
-
const h = nr(e, F, t,
|
|
1850
|
-
|
|
1847
|
+
if (X(L) || ot(L)) {
|
|
1848
|
+
let D = !1;
|
|
1849
|
+
const h = nr(e, F, t, L, F, () => {
|
|
1850
|
+
D = !0;
|
|
1851
1851
|
});
|
|
1852
|
-
return
|
|
1853
|
-
} else return Te(
|
|
1852
|
+
return D ? Tn : h;
|
|
1853
|
+
} else return Te(L) ? L : Tn;
|
|
1854
1854
|
}
|
|
1855
1855
|
};
|
|
1856
1856
|
return e.processor && (N.processor = e.processor), r.list && (N.list = r.list), r.named && (N.named = r.named), ge(r.plural) && (N.pluralIndex = r.plural), N;
|
|
1857
1857
|
}
|
|
1858
1858
|
_s();
|
|
1859
|
-
var go = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_9b00ab19-1b23-4c32-b522-1c935903a10d", 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_9b00ab19-1b23-4c32-b522-1c935903a10d", 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.7.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1718", ACTIONS_ORCHESTRATION_ID: "d2094dde-e950-47e8-ad25-8cd02796f853.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: "20260920.314.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_9b00ab19-1b23-4c32-b522-1c935903a10d", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:11413", 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: "36611536805", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "56241aa3843554e06341a36ad13b925a8c555d78", 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/test/schedule-backend", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy90ZXN0L3NjaGVkdWxlLWJhY2tlbmRcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTA3MjgzMjksImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MDcwNjEyOSwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImQxMjY0N2NhLTFkZmUtNTZmYi05OGVhLWVkZmMyZGE0NDIzOCIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiN2I1NGJjNjY5MWViYzMxNjZjZDE2NDIzMDQyM2RjZThiNzVlNzIyNiIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MDcwNTgyOSwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJZeVQ3Nzg2XCIsXCJhY3Rvcl9pZFwiOlwiOTcwMDMxMjVcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiMTA5NTUzOTMyMTg1XCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluXCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCI3YjU0YmM2NjkxZWJjMzE2NmNkMTY0MjMwNDIzZGNlOGI3NWU3MjI2XCIsXCJyZWZcIjpcInJlZnMvaGVhZHMvdGVzdC9zY2hlZHVsZS1iYWNrZW5kXCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjM2NjExNTM2ODA1XCIsXCJydW5fbnVtYmVyXCI6XCIxNzRcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCI1NjI0MWFhMzg0MzU1NGUwNjM0MWEzNmFkMTNiOTI1YThjNTU1ZDc4XCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy90ZXN0L3NjaGVkdWxlLWJhY2tlbmRcIixcIndvcmtmbG93X3NoYVwiOlwiNTYyNDFhYTM4NDM1NTRlMDYzNDFhMzZhZDEzYjkyNWE4YzU1NWQ3OFwifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvaHJtLXNlcnZpY2U6cmVmOnJlZnMvaGVhZHMvdGVzdC9zY2hlZHVsZS1iYWNrZW5kIiwib3JjaF9pZCI6ImQyMDk0ZGRlLWU5NTAtNDdlOC1hZDI1LThjZDAyNzk2Zjg1My5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiZDIwOTRkZGUtZTk1MC00N2U4LWFkMjUtOGNkMDI3OTZmODUzIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMzY2MTE1MzY4MDUiLCJydW5fbnVtYmVyIjoiMTc0IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDE3MDMwNiIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOmQyMDk0ZGRlLWU5NTAtNDdlOC1hZDI1LThjZDAyNzk2Zjg1MzpkMTI2NDdjYS0xZGZlLTU2ZmItOThlYS1lZGZjMmRhNDQyMzggQWN0aW9ucy5SdW5uZXI6ZDIwOTRkZGUtZTk1MC00N2U4LWFkMjUtOGNkMDI3OTZmODUzOmQxMjY0N2NhLTFkZmUtNTZmYi05OGVhLWVkZmMyZGE0NDIzOCBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czpkMjA5NGRkZS1lOTUwLTQ3ZTgtYWQyNS04Y2QwMjc5NmY4NTM6ZDEyNjQ3Y2EtMWRmZS01NmZiLTk4ZWEtZWRmYzJkYTQ0MjM4IGdlbmVyYXRlX2lkX3Rva2VuOmQyMDk0ZGRlLWU5NTAtNDdlOC1hZDI1LThjZDAyNzk2Zjg1MzpkMTI2NDdjYS0xZGZlLTU2ZmItOThlYS1lZGZjMmRhNDQyMzggQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiI1NjI0MWFhMzg0MzU1NGUwNjM0MWEzNmFkMTNiOTI1YThjNTU1ZDc4IiwidHJ1c3RfdGllciI6IjEifQ.rWKRIUqDoOrqORzIXocMTdB1d-TFNNvcuDR8TmaoNe4qrVdzMDGa6n1X13X-8_Df0RhWq8tY5NAiM4LJ3QhrGD2eF7kAfooXeLNQCheiUvrVvWfqpda3XRihg12zUELjNNtabXfntgbG-o51Zteb2g6411xKbi1qvyGmA4fmljdKxrRyYwmPCAkem5ErLGrYE7Ec3X2at09WWC2B1Dp0NTzVHDqroG3j2JnoraBVGc-qvXZtG52PsPZfBxRggdsc1_REnb47JwvAu4Duo5A2aypt9eft50pY7Jp5X2nMS8fPKrIrDqQ8ONogG0bX64LKpB6-qp4BfesVZIK8uVKS7g", 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_df531ef7-1884-496c-917a-24a136ddd2d2", INVOCATION_ID: "6a7eb9a3cc2f46d98960314f9759cca0", 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: "174", 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 1000170306", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "test/schedule-backend", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.2.5-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: "56241aa3843554e06341a36ad13b925a8c555d78", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/test/schedule-backend", 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_9b00ab19-1b23-4c32-b522-1c935903a10d", 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-3-azure-eastus.actions.githubusercontent.com/229//idtoken/d2094dde-e950-47e8-ad25-8cd02796f853/d12647ca-1dfe-56fb-98ea-edfc2da44238?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_9b00ab19-1b23-4c32-b522-1c935903a10d", 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_9b00ab19-1b23-4c32-b522-1c935903a10d", 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_9b00ab19-1b23-4c32-b522-1c935903a10d", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1859
|
+
var go = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_6c67bd49-bc1e-49fa-9882-4fd6dc7e1596", 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_6c67bd49-bc1e-49fa-9882-4fd6dc7e1596", 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.7.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1791", ACTIONS_ORCHESTRATION_ID: "cb4f62c6-8094-4d41-86c1-46369b185920.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: "20260920.314.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_6c67bd49-bc1e-49fa-9882-4fd6dc7e1596", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:11418", 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: "36614764995", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "015ab35975bac9a49b0ce7894381d185de0b771e", 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/test/schedule-backend", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy90ZXN0L3NjaGVkdWxlLWJhY2tlbmRcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTA3Mjk5NTEsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MDcwNzc1MSwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImQ1OWIxNzYwLTA2NTMtNTg1Ny1iOTc5LTI2YmFmNWJiMDg3ZCIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiN2I1NGJjNjY5MWViYzMxNjZjZDE2NDIzMDQyM2RjZThiNzVlNzIyNiIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MDcwNzQ1MSwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJZeVQ3Nzg2XCIsXCJhY3Rvcl9pZFwiOlwiOTcwMDMxMjVcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiMTA5NTY0ODUxOTA4XCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluXCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCI3YjU0YmM2NjkxZWJjMzE2NmNkMTY0MjMwNDIzZGNlOGI3NWU3MjI2XCIsXCJyZWZcIjpcInJlZnMvaGVhZHMvdGVzdC9zY2hlZHVsZS1iYWNrZW5kXCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjM2NjE0NzY0OTk1XCIsXCJydW5fbnVtYmVyXCI6XCIxNzVcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCIwMTVhYjM1OTc1YmFjOWE0OWIwY2U3ODk0MzgxZDE4NWRlMGI3NzFlXCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy90ZXN0L3NjaGVkdWxlLWJhY2tlbmRcIixcIndvcmtmbG93X3NoYVwiOlwiMDE1YWIzNTk3NWJhYzlhNDliMGNlNzg5NDM4MWQxODVkZTBiNzcxZVwifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvaHJtLXNlcnZpY2U6cmVmOnJlZnMvaGVhZHMvdGVzdC9zY2hlZHVsZS1iYWNrZW5kIiwib3JjaF9pZCI6ImNiNGY2MmM2LTgwOTQtNGQ0MS04NmMxLTQ2MzY5YjE4NTkyMC5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiY2I0ZjYyYzYtODA5NC00ZDQxLTg2YzEtNDYzNjliMTg1OTIwIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMzY2MTQ3NjQ5OTUiLCJydW5fbnVtYmVyIjoiMTc1IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDE3MDMxNiIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOmNiNGY2MmM2LTgwOTQtNGQ0MS04NmMxLTQ2MzY5YjE4NTkyMDpkNTliMTc2MC0wNjUzLTU4NTctYjk3OS0yNmJhZjViYjA4N2QgQWN0aW9ucy5SdW5uZXI6Y2I0ZjYyYzYtODA5NC00ZDQxLTg2YzEtNDYzNjliMTg1OTIwOmQ1OWIxNzYwLTA2NTMtNTg1Ny1iOTc5LTI2YmFmNWJiMDg3ZCBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czpjYjRmNjJjNi04MDk0LTRkNDEtODZjMS00NjM2OWIxODU5MjA6ZDU5YjE3NjAtMDY1My01ODU3LWI5NzktMjZiYWY1YmIwODdkIGdlbmVyYXRlX2lkX3Rva2VuOmNiNGY2MmM2LTgwOTQtNGQ0MS04NmMxLTQ2MzY5YjE4NTkyMDpkNTliMTc2MC0wNjUzLTU4NTctYjk3OS0yNmJhZjViYjA4N2QgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiIwMTVhYjM1OTc1YmFjOWE0OWIwY2U3ODk0MzgxZDE4NWRlMGI3NzFlIiwidHJ1c3RfdGllciI6IjEifQ.CrO1TuEVdBdEIScYBQSfEx-A8Kg6gpmcPpvl_-CWgXXIcOrRFGBCUTIdHXMPDO5N0KoJzvZGegpia28QGntIQrWbWzjplVDKVMeQ3gv7nFawx1n-pTb6YCLGz7GmOCnNOpUh6gHQys1G8An1jeNU-pJYolyAGyJ8oS2-5B6WB65DIhdMBdMz58oCN7o8TqoT2mdjaYXujFFiBnVdcYvRbepxjydENY4iwJOIG8oHZ5ID2FDFz7tEsk3aHgrqYBIZn7WCqYOh0mUJmVxwR0JSJo1WxObw_nDnrxs1fmH0rpdgo4OM6phhhOoiqfc42eDSII08z-AjFU6UngEFWcf5eA", 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_654d2d83-0595-4ca0-a306-32fc75304812", INVOCATION_ID: "1fed5587472b451795dd7d68e3f6ca40", 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: "175", 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 1000170316", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "test/schedule-backend", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.2.5-dev.7", 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: "015ab35975bac9a49b0ce7894381d185de0b771e", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/test/schedule-backend", 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_6c67bd49-bc1e-49fa-9882-4fd6dc7e1596", 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-3-azure-eastus.actions.githubusercontent.com/145//idtoken/cb4f62c6-8094-4d41-86c1-46369b185920/d59b1760-0653-5857-b979-26baf5bb087d?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_6c67bd49-bc1e-49fa-9882-4fd6dc7e1596", 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_6c67bd49-bc1e-49fa-9882-4fd6dc7e1596", 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_6c67bd49-bc1e-49fa-9882-4fd6dc7e1596", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1860
1860
|
const Io = "10.0.5";
|
|
1861
1861
|
function yo() {
|
|
1862
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
1862
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Ze().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Ze().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ze().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ze().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1863
1863
|
}
|
|
1864
1864
|
const at = {
|
|
1865
1865
|
// composer module errors
|
|
@@ -1877,12 +1877,12 @@ const at = {
|
|
|
1877
1877
|
function ut(e, ...t) {
|
|
1878
1878
|
return Tt(e, null, void 0);
|
|
1879
1879
|
}
|
|
1880
|
-
const xt = /* @__PURE__ */ $e("__translateVNode"), Wt = /* @__PURE__ */ $e("__datetimeParts"), Gt = /* @__PURE__ */ $e("__numberParts"), Eo = $e("__setPluralRules"), rr = /* @__PURE__ */ $e("__injectWithOption"),
|
|
1880
|
+
const xt = /* @__PURE__ */ $e("__translateVNode"), Wt = /* @__PURE__ */ $e("__datetimeParts"), Gt = /* @__PURE__ */ $e("__numberParts"), Eo = $e("__setPluralRules"), rr = /* @__PURE__ */ $e("__injectWithOption"), Xt = /* @__PURE__ */ $e("__dispose");
|
|
1881
1881
|
function dt(e) {
|
|
1882
1882
|
if (!te(e))
|
|
1883
1883
|
return e;
|
|
1884
1884
|
for (const t in e)
|
|
1885
|
-
if (
|
|
1885
|
+
if (Ae(e, t))
|
|
1886
1886
|
if (!t.includes("."))
|
|
1887
1887
|
te(e[t]) && dt(e[t]);
|
|
1888
1888
|
else {
|
|
@@ -1906,10 +1906,10 @@ function sr(e, t) {
|
|
|
1906
1906
|
const { locale: i, resource: g } = u;
|
|
1907
1907
|
i ? (d[i] = d[i] || oe(), yt(g, d[i])) : yt(g, d);
|
|
1908
1908
|
} else
|
|
1909
|
-
|
|
1909
|
+
X(u) && yt(JSON.parse(u), d);
|
|
1910
1910
|
}), l == null && a)
|
|
1911
1911
|
for (const u in d)
|
|
1912
|
-
|
|
1912
|
+
Ae(d, u) && dt(d[u]);
|
|
1913
1913
|
return d;
|
|
1914
1914
|
}
|
|
1915
1915
|
function or(e) {
|
|
@@ -1943,27 +1943,27 @@ function No(e, t, n) {
|
|
|
1943
1943
|
function Sn(e) {
|
|
1944
1944
|
return ue(fr, null, e, 0);
|
|
1945
1945
|
}
|
|
1946
|
-
const
|
|
1947
|
-
let
|
|
1946
|
+
const An = "__INTLIFY_META__", Ln = () => [], Co = () => !1;
|
|
1947
|
+
let kn = 0;
|
|
1948
1948
|
function Rn(e) {
|
|
1949
1949
|
return (t, n, r, l) => e(n, r, Bt() || void 0, l);
|
|
1950
1950
|
}
|
|
1951
1951
|
const To = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1952
1952
|
const e = Bt();
|
|
1953
1953
|
let t = null;
|
|
1954
|
-
return e && (t = or(e)[
|
|
1954
|
+
return e && (t = or(e)[An]) ? { [An]: t } : null;
|
|
1955
1955
|
};
|
|
1956
1956
|
function Oo(e = {}) {
|
|
1957
1957
|
const { __root: t, __injectWithOption: n } = e, r = t === void 0, l = e.flatJson, a = on ? rt : dr;
|
|
1958
1958
|
let d = ve(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1959
1959
|
const u = a(
|
|
1960
1960
|
// prettier-ignore
|
|
1961
|
-
t && d ? t.locale.value :
|
|
1961
|
+
t && d ? t.locale.value : X(e.locale) ? e.locale : Nt
|
|
1962
1962
|
), i = a(
|
|
1963
1963
|
// prettier-ignore
|
|
1964
|
-
t && d ? t.fallbackLocale.value :
|
|
1964
|
+
t && d ? t.fallbackLocale.value : X(e.fallbackLocale) || be(e.fallbackLocale) || ee(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
1965
1965
|
), g = a(sr(u.value, e)), y = a(ee(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), T = a(ee(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
|
|
1966
|
-
let N = t ? t.missingWarn : ve(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, F = t ? t.fallbackWarn : ve(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0,
|
|
1966
|
+
let N = t ? t.missingWarn : ve(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, F = t ? t.fallbackWarn : ve(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, w = t ? t.fallbackRoot : ve(e.fallbackRoot) ? e.fallbackRoot : !0, L = !!e.fallbackFormat, D = me(e.missing) ? e.missing : null, f = me(e.missing) ? Rn(e.missing) : null, h = me(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : ve(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, c = !!e.escapeParameter;
|
|
1967
1967
|
const b = t ? t.modifiers : ee(e.modifiers) ? e.modifiers : {};
|
|
1968
1968
|
let I = e.pluralRules || t && t.pluralRules, p;
|
|
1969
1969
|
p = (() => {
|
|
@@ -1978,7 +1978,7 @@ function Oo(e = {}) {
|
|
|
1978
1978
|
missing: f === null ? void 0 : f,
|
|
1979
1979
|
missingWarn: N,
|
|
1980
1980
|
fallbackWarn: F,
|
|
1981
|
-
fallbackFormat:
|
|
1981
|
+
fallbackFormat: L,
|
|
1982
1982
|
unresolving: !0,
|
|
1983
1983
|
postTranslation: h === null ? void 0 : h,
|
|
1984
1984
|
warnHtmlMessage: S,
|
|
@@ -1991,7 +1991,7 @@ function Oo(e = {}) {
|
|
|
1991
1991
|
const E = ro(v);
|
|
1992
1992
|
return r && bn(E), E;
|
|
1993
1993
|
})(), lt(p, u.value, i.value);
|
|
1994
|
-
function
|
|
1994
|
+
function A() {
|
|
1995
1995
|
return [
|
|
1996
1996
|
u.value,
|
|
1997
1997
|
i.value,
|
|
@@ -2000,7 +2000,7 @@ function Oo(e = {}) {
|
|
|
2000
2000
|
T.value
|
|
2001
2001
|
];
|
|
2002
2002
|
}
|
|
2003
|
-
const
|
|
2003
|
+
const Z = z({
|
|
2004
2004
|
get: () => u.value,
|
|
2005
2005
|
set: (v) => {
|
|
2006
2006
|
u.value = v, p.locale = u.value;
|
|
@@ -2018,13 +2018,13 @@ function Oo(e = {}) {
|
|
|
2018
2018
|
h = v, p.postTranslation = v;
|
|
2019
2019
|
}
|
|
2020
2020
|
function G() {
|
|
2021
|
-
return
|
|
2021
|
+
return D;
|
|
2022
2022
|
}
|
|
2023
2023
|
function W(v) {
|
|
2024
|
-
v !== null && (f = Rn(v)),
|
|
2024
|
+
v !== null && (f = Rn(v)), D = v, p.missing = f;
|
|
2025
2025
|
}
|
|
2026
|
-
const
|
|
2027
|
-
|
|
2026
|
+
const Y = (v, E, $, le, Be, mt) => {
|
|
2027
|
+
A();
|
|
2028
2028
|
let ze;
|
|
2029
2029
|
try {
|
|
2030
2030
|
go.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = t ? no() : void 0), ze = v(p);
|
|
@@ -2034,7 +2034,7 @@ function Oo(e = {}) {
|
|
|
2034
2034
|
if ($ !== "translate exists" && // for not `te` (e.g `t`)
|
|
2035
2035
|
ge(ze) && ze === Ot || $ === "translate exists" && !ze) {
|
|
2036
2036
|
const [cr, Ea] = E();
|
|
2037
|
-
return t &&
|
|
2037
|
+
return t && w ? le(t) : Be(cr);
|
|
2038
2038
|
} else {
|
|
2039
2039
|
if (mt(ze))
|
|
2040
2040
|
return ze;
|
|
@@ -2042,7 +2042,7 @@ function Oo(e = {}) {
|
|
|
2042
2042
|
}
|
|
2043
2043
|
};
|
|
2044
2044
|
function B(...v) {
|
|
2045
|
-
return
|
|
2045
|
+
return Y((E) => Reflect.apply(On, null, [E, ...v]), () => Vt(...v), "translate", (E) => Reflect.apply(E.t, E, [...v]), (E) => E, (E) => X(E));
|
|
2046
2046
|
}
|
|
2047
2047
|
function ne(...v) {
|
|
2048
2048
|
const [E, $, le] = v;
|
|
@@ -2051,13 +2051,13 @@ function Oo(e = {}) {
|
|
|
2051
2051
|
return B(E, $, Ie({ resolvedMessage: !0 }, le || {}));
|
|
2052
2052
|
}
|
|
2053
2053
|
function Q(...v) {
|
|
2054
|
-
return
|
|
2054
|
+
return Y((E) => Reflect.apply(In, null, [E, ...v]), () => jt(...v), "datetime format", (E) => Reflect.apply(E.d, E, [...v]), () => vn, (E) => X(E));
|
|
2055
2055
|
}
|
|
2056
2056
|
function _e(...v) {
|
|
2057
|
-
return
|
|
2057
|
+
return Y((E) => Reflect.apply(En, null, [E, ...v]), () => Ut(...v), "number format", (E) => Reflect.apply(E.n, E, [...v]), () => vn, (E) => X(E));
|
|
2058
2058
|
}
|
|
2059
2059
|
function ce(v) {
|
|
2060
|
-
return v.map((E) =>
|
|
2060
|
+
return v.map((E) => X(E) || ge(E) || ve(E) ? Sn(String(E)) : E);
|
|
2061
2061
|
}
|
|
2062
2062
|
const fe = {
|
|
2063
2063
|
normalize: ce,
|
|
@@ -2065,7 +2065,7 @@ function Oo(e = {}) {
|
|
|
2065
2065
|
type: "vnode"
|
|
2066
2066
|
};
|
|
2067
2067
|
function q(...v) {
|
|
2068
|
-
return
|
|
2068
|
+
return Y((E) => {
|
|
2069
2069
|
let $;
|
|
2070
2070
|
const le = E;
|
|
2071
2071
|
try {
|
|
@@ -2076,26 +2076,26 @@ function Oo(e = {}) {
|
|
|
2076
2076
|
return $;
|
|
2077
2077
|
}, () => Vt(...v), "translate", (E) => E[xt](...v), (E) => [Sn(E)], (E) => be(E));
|
|
2078
2078
|
}
|
|
2079
|
-
function
|
|
2080
|
-
return
|
|
2079
|
+
function De(...v) {
|
|
2080
|
+
return Y((E) => Reflect.apply(En, null, [E, ...v]), () => Ut(...v), "number format", (E) => E[Gt](...v), Ln, (E) => X(E) || be(E));
|
|
2081
2081
|
}
|
|
2082
2082
|
function K(...v) {
|
|
2083
|
-
return
|
|
2083
|
+
return Y((E) => Reflect.apply(In, null, [E, ...v]), () => jt(...v), "datetime format", (E) => E[Wt](...v), Ln, (E) => X(E) || be(E));
|
|
2084
2084
|
}
|
|
2085
2085
|
function pe(v) {
|
|
2086
2086
|
I = v, p.pluralRules = I;
|
|
2087
2087
|
}
|
|
2088
2088
|
function Je(v, E) {
|
|
2089
|
-
return
|
|
2089
|
+
return Y(() => {
|
|
2090
2090
|
if (!v)
|
|
2091
2091
|
return !1;
|
|
2092
|
-
const $ =
|
|
2093
|
-
return ot(Be) || Te(Be) ||
|
|
2092
|
+
const $ = X(E) ? E : u.value, le = Fe($), Be = p.messageResolver(le, v);
|
|
2093
|
+
return ot(Be) || Te(Be) || X(Be);
|
|
2094
2094
|
}, () => [v], "translate exists", ($) => Reflect.apply($.te, $, [v, E]), Co, ($) => ve($));
|
|
2095
2095
|
}
|
|
2096
2096
|
function Ke(v) {
|
|
2097
2097
|
let E = null;
|
|
2098
|
-
const $ =
|
|
2098
|
+
const $ = Hn(p, i.value, u.value);
|
|
2099
2099
|
for (let le = 0; le < $.length; le++) {
|
|
2100
2100
|
const Be = g.value[$[le]] || {}, mt = p.messageResolver(Be, v);
|
|
2101
2101
|
if (mt != null) {
|
|
@@ -2116,17 +2116,17 @@ function Oo(e = {}) {
|
|
|
2116
2116
|
if (l) {
|
|
2117
2117
|
const $ = { [v]: E };
|
|
2118
2118
|
for (const le in $)
|
|
2119
|
-
|
|
2119
|
+
Ae($, le) && dt($[le]);
|
|
2120
2120
|
E = $[v];
|
|
2121
2121
|
}
|
|
2122
2122
|
g.value[v] = E, p.messages = g.value;
|
|
2123
2123
|
}
|
|
2124
|
-
function
|
|
2124
|
+
function Ye(v, E) {
|
|
2125
2125
|
g.value[v] = g.value[v] || {};
|
|
2126
2126
|
const $ = { [v]: E };
|
|
2127
2127
|
if (l)
|
|
2128
2128
|
for (const le in $)
|
|
2129
|
-
|
|
2129
|
+
Ae($, le) && dt($[le]);
|
|
2130
2130
|
E = $[v], yt(E, g.value[v]), p.messages = g.value;
|
|
2131
2131
|
}
|
|
2132
2132
|
function O(v) {
|
|
@@ -2141,20 +2141,20 @@ function Oo(e = {}) {
|
|
|
2141
2141
|
function _(v) {
|
|
2142
2142
|
return T.value[v] || {};
|
|
2143
2143
|
}
|
|
2144
|
-
function
|
|
2144
|
+
function k(v, E) {
|
|
2145
2145
|
T.value[v] = E, p.numberFormats = T.value, Nn(p, v, E);
|
|
2146
2146
|
}
|
|
2147
2147
|
function M(v, E) {
|
|
2148
2148
|
T.value[v] = Ie(T.value[v] || {}, E), p.numberFormats = T.value, Nn(p, v, E);
|
|
2149
2149
|
}
|
|
2150
|
-
|
|
2150
|
+
kn++, t && on && (wt(t.locale, (v) => {
|
|
2151
2151
|
d && (u.value = v, p.locale = v, lt(p, u.value, i.value));
|
|
2152
|
-
}),
|
|
2152
|
+
}), wt(t.fallbackLocale, (v) => {
|
|
2153
2153
|
d && (i.value = v, p.fallbackLocale = v, lt(p, u.value, i.value));
|
|
2154
2154
|
}));
|
|
2155
2155
|
const P = {
|
|
2156
|
-
id:
|
|
2157
|
-
locale:
|
|
2156
|
+
id: kn,
|
|
2157
|
+
locale: Z,
|
|
2158
2158
|
fallbackLocale: x,
|
|
2159
2159
|
get inheritLocale() {
|
|
2160
2160
|
return d;
|
|
@@ -2188,16 +2188,16 @@ function Oo(e = {}) {
|
|
|
2188
2188
|
F = v, p.fallbackWarn = F;
|
|
2189
2189
|
},
|
|
2190
2190
|
get fallbackRoot() {
|
|
2191
|
-
return
|
|
2191
|
+
return w;
|
|
2192
2192
|
},
|
|
2193
2193
|
set fallbackRoot(v) {
|
|
2194
|
-
|
|
2194
|
+
w = v;
|
|
2195
2195
|
},
|
|
2196
2196
|
get fallbackFormat() {
|
|
2197
|
-
return
|
|
2197
|
+
return L;
|
|
2198
2198
|
},
|
|
2199
2199
|
set fallbackFormat(v) {
|
|
2200
|
-
|
|
2200
|
+
L = v, p.fallbackFormat = L;
|
|
2201
2201
|
},
|
|
2202
2202
|
get warnHtmlMessage() {
|
|
2203
2203
|
return S;
|
|
@@ -2214,14 +2214,14 @@ function Oo(e = {}) {
|
|
|
2214
2214
|
t: B,
|
|
2215
2215
|
getLocaleMessage: Fe,
|
|
2216
2216
|
setLocaleMessage: Ce,
|
|
2217
|
-
mergeLocaleMessage:
|
|
2217
|
+
mergeLocaleMessage: Ye,
|
|
2218
2218
|
getPostTranslationHandler: V,
|
|
2219
2219
|
setPostTranslationHandler: j,
|
|
2220
2220
|
getMissingHandler: G,
|
|
2221
2221
|
setMissingHandler: W,
|
|
2222
2222
|
[Eo]: pe
|
|
2223
2223
|
};
|
|
2224
|
-
return P.datetimeFormats = C, P.numberFormats = U, P.rt = ne, P.te = Je, P.tm = Ve, P.d = Q, P.n = _e, P.getDateTimeFormat = O, P.setDateTimeFormat = s, P.mergeDateTimeFormat = o, P.getNumberFormat = _, P.setNumberFormat =
|
|
2224
|
+
return P.datetimeFormats = C, P.numberFormats = U, P.rt = ne, P.te = Je, P.tm = Ve, 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[xt] = q, P[Wt] = K, P[Gt] = De, P;
|
|
2225
2225
|
}
|
|
2226
2226
|
const qt = {
|
|
2227
2227
|
tag: {
|
|
@@ -2264,22 +2264,22 @@ Ie({
|
|
|
2264
2264
|
validator: (e) => ge(e) || !isNaN(e)
|
|
2265
2265
|
}
|
|
2266
2266
|
}, qt);
|
|
2267
|
-
function
|
|
2268
|
-
return be(e) && !
|
|
2267
|
+
function Ao(e) {
|
|
2268
|
+
return be(e) && !X(e[0]);
|
|
2269
2269
|
}
|
|
2270
2270
|
function lr(e, t, n, r) {
|
|
2271
2271
|
const { slots: l, attrs: a } = t;
|
|
2272
2272
|
return () => {
|
|
2273
2273
|
const d = { part: !0 };
|
|
2274
2274
|
let u = oe();
|
|
2275
|
-
e.locale && (d.locale = e.locale),
|
|
2275
|
+
e.locale && (d.locale = e.locale), X(e.format) ? d.key = e.format : te(e.format) && (X(e.format.key) && (d.key = e.format.key), u = Object.keys(e.format).reduce((N, F) => n.includes(F) ? Ie(oe(), N, { [F]: e.format[F] }) : N, oe()));
|
|
2276
2276
|
const i = r(e.value, d, u);
|
|
2277
2277
|
let g = [d.key];
|
|
2278
2278
|
be(i) ? g = i.map((N, F) => {
|
|
2279
|
-
const
|
|
2280
|
-
return
|
|
2281
|
-
}) :
|
|
2282
|
-
const y = Ie(oe(), a), T =
|
|
2279
|
+
const w = l[N.type], L = w ? w({ [N.type]: N.value, index: F, parts: i }) : [N.value];
|
|
2280
|
+
return Ao(L) && (L[0].key = `${N.type}-${F}`), L;
|
|
2281
|
+
}) : X(i) && (g = [i]);
|
|
2282
|
+
const y = Ie(oe(), a), T = X(e.tag) || te(e.tag) ? e.tag : ar();
|
|
2283
2283
|
return Wn(T, y, g);
|
|
2284
2284
|
};
|
|
2285
2285
|
}
|
|
@@ -2301,30 +2301,30 @@ Ie({
|
|
|
2301
2301
|
type: [String, Object]
|
|
2302
2302
|
}
|
|
2303
2303
|
}, qt);
|
|
2304
|
-
const
|
|
2304
|
+
const Lo = /* @__PURE__ */ $e("global-vue-i18n");
|
|
2305
2305
|
function St(e = {}) {
|
|
2306
2306
|
const t = Bt();
|
|
2307
2307
|
if (t == null)
|
|
2308
2308
|
throw ut(at.MUST_BE_CALL_SETUP_TOP);
|
|
2309
2309
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2310
2310
|
throw ut(at.NOT_INSTALLED);
|
|
2311
|
-
const n =
|
|
2311
|
+
const n = ko(t), r = Mo(n), l = or(t), a = Ro(e, l);
|
|
2312
2312
|
if (a === "global")
|
|
2313
2313
|
return No(r, e, l), r;
|
|
2314
2314
|
if (a === "parent") {
|
|
2315
|
-
let i =
|
|
2315
|
+
let i = wo(n, t, e.__useComponent);
|
|
2316
2316
|
return i == null && (i = r), i;
|
|
2317
2317
|
}
|
|
2318
2318
|
const d = n;
|
|
2319
2319
|
let u = d.__getInstance(t);
|
|
2320
2320
|
if (u == null) {
|
|
2321
2321
|
const i = Ie({}, e);
|
|
2322
|
-
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u = Oo(i), d.__composerExtend && (u[
|
|
2322
|
+
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u = Oo(i), d.__composerExtend && (u[Xt] = d.__composerExtend(u)), Fo(d, t, u), d.__setInstance(t, u);
|
|
2323
2323
|
}
|
|
2324
2324
|
return u;
|
|
2325
2325
|
}
|
|
2326
|
-
function
|
|
2327
|
-
const t = ur(e.isCE ?
|
|
2326
|
+
function ko(e) {
|
|
2327
|
+
const t = ur(e.isCE ? Lo : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2328
2328
|
if (!t)
|
|
2329
2329
|
throw ut(e.isCE ? at.NOT_INSTALLED_WITH_PROVIDE : at.UNEXPECTED_ERROR);
|
|
2330
2330
|
return t;
|
|
@@ -2335,10 +2335,10 @@ function Ro(e, t) {
|
|
|
2335
2335
|
function Mo(e) {
|
|
2336
2336
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2337
2337
|
}
|
|
2338
|
-
function
|
|
2338
|
+
function wo(e, t, n = !1) {
|
|
2339
2339
|
let r = null;
|
|
2340
2340
|
const l = t.root;
|
|
2341
|
-
let a =
|
|
2341
|
+
let a = Do(t, n);
|
|
2342
2342
|
for (; a != null; ) {
|
|
2343
2343
|
const d = e;
|
|
2344
2344
|
if (e.mode === "composition")
|
|
@@ -2353,7 +2353,7 @@ function Do(e, t, n = !1) {
|
|
|
2353
2353
|
}
|
|
2354
2354
|
return r;
|
|
2355
2355
|
}
|
|
2356
|
-
function
|
|
2356
|
+
function Do(e, t = !1) {
|
|
2357
2357
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2358
2358
|
}
|
|
2359
2359
|
function Fo(e, t, n) {
|
|
@@ -2361,19 +2361,19 @@ function Fo(e, t, n) {
|
|
|
2361
2361
|
}, t), mr(() => {
|
|
2362
2362
|
const r = n;
|
|
2363
2363
|
e.__deleteInstance(t);
|
|
2364
|
-
const l = r[
|
|
2365
|
-
l && (l(), delete r[
|
|
2364
|
+
const l = r[Xt];
|
|
2365
|
+
l && (l(), delete r[Xt]);
|
|
2366
2366
|
}, t);
|
|
2367
2367
|
}
|
|
2368
2368
|
yo();
|
|
2369
2369
|
zs(Ms);
|
|
2370
2370
|
Qs($s);
|
|
2371
|
-
qs(
|
|
2371
|
+
qs(Hn);
|
|
2372
2372
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2373
|
-
const e =
|
|
2374
|
-
e.__INTLIFY__ = !0,
|
|
2373
|
+
const e = Ze();
|
|
2374
|
+
e.__INTLIFY__ = !0, ws(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2375
2375
|
}
|
|
2376
|
-
const vt = /* @__PURE__ */
|
|
2376
|
+
const vt = /* @__PURE__ */ Le({
|
|
2377
2377
|
__name: "InheritPermissionTooltip",
|
|
2378
2378
|
props: {
|
|
2379
2379
|
item: {
|
|
@@ -2384,14 +2384,14 @@ const vt = /* @__PURE__ */ Ae({
|
|
|
2384
2384
|
setup(e) {
|
|
2385
2385
|
const { t } = St();
|
|
2386
2386
|
return (n, r) => {
|
|
2387
|
-
const l =
|
|
2387
|
+
const l = we("FmIcon"), a = we("FmTooltip");
|
|
2388
2388
|
return J(), Ne(a, {
|
|
2389
2389
|
variant: "plain",
|
|
2390
2390
|
placement: "right",
|
|
2391
2391
|
"z-index": 50
|
|
2392
2392
|
}, {
|
|
2393
2393
|
content: de(() => [
|
|
2394
|
-
ae("div", null, Oe(
|
|
2394
|
+
ae("div", null, Oe(H(t)("team.memberForm.permissions.inherited")), 1),
|
|
2395
2395
|
(J(!0), ie(Re, null, Ee(e.item.setNames, (d) => (J(), ie("div", { key: d }, [
|
|
2396
2396
|
ae("div", null, "- " + Oe(d), 1)
|
|
2397
2397
|
]))), 128))
|
|
@@ -2422,34 +2422,34 @@ function Mn(e, t, n) {
|
|
|
2422
2422
|
actions: Array.from(a)
|
|
2423
2423
|
});
|
|
2424
2424
|
}
|
|
2425
|
-
const
|
|
2425
|
+
const wn = Object.values(Sr), Po = {
|
|
2426
2426
|
read: "View",
|
|
2427
2427
|
create: "Duplicate",
|
|
2428
2428
|
update: "Edit"
|
|
2429
2429
|
};
|
|
2430
2430
|
function jo(e, t, n, r) {
|
|
2431
|
-
const { t: l } =
|
|
2431
|
+
const { t: l } = He(), { getFlagValue: a, getFlag: d } = Or(), u = z(() => {
|
|
2432
2432
|
var j;
|
|
2433
2433
|
const m = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map();
|
|
2434
2434
|
for (const G of t.value) {
|
|
2435
2435
|
const W = G.category;
|
|
2436
2436
|
if (!W) continue;
|
|
2437
|
-
const
|
|
2437
|
+
const Y = G.subject;
|
|
2438
2438
|
if (n.value.includes(G.subject) || G.showByFeatureFlag && ((j = d(G.showByFeatureFlag)) == null ? void 0 : j.enabled) === !1 && a(G.showByFeatureFlag) === "true")
|
|
2439
2439
|
continue;
|
|
2440
2440
|
m.has(W) || m.set(W, []);
|
|
2441
|
-
const B = U.get(
|
|
2442
|
-
U.set(
|
|
2443
|
-
label: l(`permissionSet.permissionLabels.${
|
|
2444
|
-
value:
|
|
2445
|
-
optionKey: `${
|
|
2446
|
-
}), C.has(
|
|
2441
|
+
const B = U.get(Y) ?? 0;
|
|
2442
|
+
U.set(Y, B + 1), m.get(W).push({
|
|
2443
|
+
label: l(`permissionSet.permissionLabels.${Y}`, G.label),
|
|
2444
|
+
value: Y,
|
|
2445
|
+
optionKey: `${Y}::${B}`
|
|
2446
|
+
}), C.has(Y) || C.set(Y, G);
|
|
2447
2447
|
}
|
|
2448
2448
|
return [...m.keys()].sort((G, W) => {
|
|
2449
|
-
const
|
|
2450
|
-
return
|
|
2449
|
+
const Y = wn.indexOf(G), B = wn.indexOf(W);
|
|
2450
|
+
return Y === -1 && B === -1 ? G.localeCompare(W) : Y === -1 ? 1 : B === -1 ? -1 : Y - B;
|
|
2451
2451
|
}).map((G) => {
|
|
2452
|
-
const W = m.get(G),
|
|
2452
|
+
const W = m.get(G), Y = l(`permissionSet.categoryLabels.${G}`, G), B = /* @__PURE__ */ new Map();
|
|
2453
2453
|
for (const K of W) {
|
|
2454
2454
|
const pe = C.get(K.value);
|
|
2455
2455
|
pe && B.set(K.value, pe.actions);
|
|
@@ -2469,10 +2469,10 @@ function jo(e, t, n, r) {
|
|
|
2469
2469
|
).map((K) => K.subject) : e.value.filter((K) => W.some((pe) => pe.value === K.subject) && !K.inverted).map((K) => K.subject), se = W.find((K) => {
|
|
2470
2470
|
var pe;
|
|
2471
2471
|
return (pe = C.get(K.value)) == null ? void 0 : pe.isCategoryCover;
|
|
2472
|
-
}), fe = (se == null ? void 0 : se.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(),
|
|
2472
|
+
}), fe = (se == null ? void 0 : se.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), De = q.has("manage");
|
|
2473
2473
|
return {
|
|
2474
2474
|
category: G,
|
|
2475
|
-
label:
|
|
2475
|
+
label: Y,
|
|
2476
2476
|
options: W,
|
|
2477
2477
|
selectedSubjects: ce,
|
|
2478
2478
|
isMultiAction: ne,
|
|
@@ -2481,7 +2481,7 @@ function jo(e, t, n, r) {
|
|
|
2481
2481
|
selectedActionsMap: _e,
|
|
2482
2482
|
coverSubject: fe,
|
|
2483
2483
|
coverSelectedActions: q,
|
|
2484
|
-
coverCoversAll:
|
|
2484
|
+
coverCoversAll: De
|
|
2485
2485
|
};
|
|
2486
2486
|
});
|
|
2487
2487
|
});
|
|
@@ -2489,13 +2489,13 @@ function jo(e, t, n, r) {
|
|
|
2489
2489
|
const U = u.value.find((Q) => Q.category === m), V = (U == null ? void 0 : U.options) ?? [], j = new Set(V.map((Q) => Q.value)), G = new Set(C), W = /* @__PURE__ */ new Map();
|
|
2490
2490
|
for (const Q of e.value)
|
|
2491
2491
|
j.has(Q.subject) && !Q.inverted && W.set(Q.subject, Q.conditions);
|
|
2492
|
-
const
|
|
2492
|
+
const Y = U != null && U.coverSubject ? W.get(U.coverSubject) : void 0, B = /* @__PURE__ */ new Set(), ne = t.value.flatMap(
|
|
2493
2493
|
({ category: Q, showByFeatureFlag: _e, isCategoryCover: ce, ...se }) => {
|
|
2494
2494
|
const fe = se.subject;
|
|
2495
2495
|
if (!G.has(fe) || B.has(fe)) return [];
|
|
2496
2496
|
B.add(fe);
|
|
2497
2497
|
let q;
|
|
2498
|
-
return W.has(fe) ? q = W.get(fe) : U != null && U.coverSubject && fe !== U.coverSubject && (q =
|
|
2498
|
+
return W.has(fe) ? q = W.get(fe) : U != null && U.coverSubject && fe !== U.coverSubject && (q = Y), [
|
|
2499
2499
|
{ ...se, ...q !== void 0 && { conditions: q } }
|
|
2500
2500
|
];
|
|
2501
2501
|
}
|
|
@@ -2513,7 +2513,7 @@ function jo(e, t, n, r) {
|
|
|
2513
2513
|
}
|
|
2514
2514
|
function T(m) {
|
|
2515
2515
|
return m.options.length === 0 || y(m) ? !1 : m.options.some(
|
|
2516
|
-
(C) => g(m, C.value) ||
|
|
2516
|
+
(C) => g(m, C.value) || w(m, C.value).length > 0
|
|
2517
2517
|
);
|
|
2518
2518
|
}
|
|
2519
2519
|
function N(m) {
|
|
@@ -2522,10 +2522,10 @@ function jo(e, t, n, r) {
|
|
|
2522
2522
|
r("update:model-value", U);
|
|
2523
2523
|
else {
|
|
2524
2524
|
const V = /* @__PURE__ */ new Map();
|
|
2525
|
-
for (const
|
|
2526
|
-
C.has(
|
|
2525
|
+
for (const Y of e.value)
|
|
2526
|
+
C.has(Y.subject) && !Y.inverted && V.set(Y.subject, Y.conditions);
|
|
2527
2527
|
const j = m.coverSubject ? V.get(m.coverSubject) : void 0, G = /* @__PURE__ */ new Set(), W = t.value.flatMap(
|
|
2528
|
-
({ category:
|
|
2528
|
+
({ category: Y, showByFeatureFlag: B, isCategoryCover: ne, ...Q }) => {
|
|
2529
2529
|
const _e = Q.subject;
|
|
2530
2530
|
if (!C.has(_e) || G.has(_e)) return [];
|
|
2531
2531
|
G.add(_e);
|
|
@@ -2542,16 +2542,16 @@ function jo(e, t, n, r) {
|
|
|
2542
2542
|
const U = m.selectedActionsMap.get(C);
|
|
2543
2543
|
return U ? U.has("manage") : !1;
|
|
2544
2544
|
}
|
|
2545
|
-
function
|
|
2545
|
+
function w(m, C) {
|
|
2546
2546
|
const U = m.permissionActionsMap.get(C);
|
|
2547
2547
|
return U ? U.filter((j) => j !== "manage").filter(
|
|
2548
2548
|
(j) => S(m, C, j) || b(m, C, j)
|
|
2549
2549
|
) : [];
|
|
2550
2550
|
}
|
|
2551
|
-
function
|
|
2552
|
-
return c(m, C) ? !1 : !F(m, C) &&
|
|
2551
|
+
function L(m, C) {
|
|
2552
|
+
return c(m, C) ? !1 : !F(m, C) && w(m, C).length > 0;
|
|
2553
2553
|
}
|
|
2554
|
-
function
|
|
2554
|
+
function D(m, C) {
|
|
2555
2555
|
if (!m.coverSubject || C === m.coverSubject) return;
|
|
2556
2556
|
const U = e.value.find(
|
|
2557
2557
|
(V) => !V.inverted && V.subject === m.coverSubject
|
|
@@ -2566,10 +2566,10 @@ function jo(e, t, n, r) {
|
|
|
2566
2566
|
category: j,
|
|
2567
2567
|
showByFeatureFlag: G,
|
|
2568
2568
|
isCategoryCover: W,
|
|
2569
|
-
...
|
|
2570
|
-
} = V, B =
|
|
2569
|
+
...Y
|
|
2570
|
+
} = V, B = D(m, C), ne = e.value.filter((Q) => Q.subject !== C);
|
|
2571
2571
|
ne.push({
|
|
2572
|
-
...
|
|
2572
|
+
...Y,
|
|
2573
2573
|
...B !== void 0 && { conditions: B }
|
|
2574
2574
|
}), r("update:model-value", ne);
|
|
2575
2575
|
} else
|
|
@@ -2600,19 +2600,19 @@ function jo(e, t, n, r) {
|
|
|
2600
2600
|
const V = [...e.value], j = V.findIndex((W) => W.subject === m && !W.inverted);
|
|
2601
2601
|
if (U)
|
|
2602
2602
|
if (j >= 0) {
|
|
2603
|
-
const W = { ...V[j] },
|
|
2604
|
-
|
|
2603
|
+
const W = { ...V[j] }, Y = new Set(W.actions);
|
|
2604
|
+
Y.add(C), W.actions = Array.from(Y), V[j] = W;
|
|
2605
2605
|
} else {
|
|
2606
2606
|
const W = t.value.find((se) => se.subject === m);
|
|
2607
2607
|
if (!W) return;
|
|
2608
2608
|
const {
|
|
2609
|
-
category:
|
|
2609
|
+
category: Y,
|
|
2610
2610
|
showByFeatureFlag: B,
|
|
2611
2611
|
isCategoryCover: ne,
|
|
2612
2612
|
...Q
|
|
2613
2613
|
} = W, _e = u.value.find(
|
|
2614
2614
|
(se) => se.options.some((fe) => fe.value === m)
|
|
2615
|
-
), ce = _e ?
|
|
2615
|
+
), ce = _e ? D(_e, m) : void 0;
|
|
2616
2616
|
V.push({
|
|
2617
2617
|
...Q,
|
|
2618
2618
|
actions: [C],
|
|
@@ -2620,8 +2620,8 @@ function jo(e, t, n, r) {
|
|
|
2620
2620
|
});
|
|
2621
2621
|
}
|
|
2622
2622
|
else if (j >= 0) {
|
|
2623
|
-
const W = { ...V[j] },
|
|
2624
|
-
|
|
2623
|
+
const W = { ...V[j] }, Y = W.actions.filter((B) => B !== C);
|
|
2624
|
+
Y.length === 0 ? V.splice(j, 1) : (W.actions = Y, V[j] = W);
|
|
2625
2625
|
}
|
|
2626
2626
|
const G = t.value.find((W) => W.subject === m);
|
|
2627
2627
|
G && Mn(V, m, G.actions), r("update:model-value", V);
|
|
@@ -2634,7 +2634,7 @@ function jo(e, t, n, r) {
|
|
|
2634
2634
|
(V) => S(m, V.value, C) || b(m, V.value, C)
|
|
2635
2635
|
);
|
|
2636
2636
|
}
|
|
2637
|
-
function
|
|
2637
|
+
function A(m, C) {
|
|
2638
2638
|
const U = m.options.filter(
|
|
2639
2639
|
(j) => I(m, j.value, C)
|
|
2640
2640
|
);
|
|
@@ -2644,7 +2644,7 @@ function jo(e, t, n, r) {
|
|
|
2644
2644
|
).length;
|
|
2645
2645
|
return V > 0 && V < U.length;
|
|
2646
2646
|
}
|
|
2647
|
-
function
|
|
2647
|
+
function Z(m, C, U) {
|
|
2648
2648
|
const V = [...e.value];
|
|
2649
2649
|
for (const j of m.options) {
|
|
2650
2650
|
if (!I(m, j.value, C)) continue;
|
|
@@ -2663,7 +2663,7 @@ function jo(e, t, n, r) {
|
|
|
2663
2663
|
showByFeatureFlag: Q,
|
|
2664
2664
|
isCategoryCover: _e,
|
|
2665
2665
|
...ce
|
|
2666
|
-
} = B, se =
|
|
2666
|
+
} = B, se = D(m, G);
|
|
2667
2667
|
V.push({
|
|
2668
2668
|
...ce,
|
|
2669
2669
|
actions: [C],
|
|
@@ -2674,8 +2674,8 @@ function jo(e, t, n, r) {
|
|
|
2674
2674
|
const B = { ...V[W] }, ne = B.actions.filter((Q) => Q !== C);
|
|
2675
2675
|
ne.length === 0 ? V.splice(W, 1) : (B.actions = ne, V[W] = B);
|
|
2676
2676
|
}
|
|
2677
|
-
const
|
|
2678
|
-
|
|
2677
|
+
const Y = t.value.find((B) => B.subject === G);
|
|
2678
|
+
Y && Mn(V, G, Y.actions);
|
|
2679
2679
|
}
|
|
2680
2680
|
r("update:model-value", V);
|
|
2681
2681
|
}
|
|
@@ -2690,7 +2690,7 @@ function jo(e, t, n, r) {
|
|
|
2690
2690
|
isAllManageIndeterminate: T,
|
|
2691
2691
|
toggleAllManage: N,
|
|
2692
2692
|
isManageChecked: F,
|
|
2693
|
-
isManageIndeterminate:
|
|
2693
|
+
isManageIndeterminate: L,
|
|
2694
2694
|
toggleManage: f,
|
|
2695
2695
|
hasNonManageActions: h,
|
|
2696
2696
|
isActionChecked: S,
|
|
@@ -2699,12 +2699,12 @@ function jo(e, t, n, r) {
|
|
|
2699
2699
|
permissionDefinesAction: I,
|
|
2700
2700
|
toggleAction: p,
|
|
2701
2701
|
isAllActionChecked: R,
|
|
2702
|
-
isAllActionIndeterminate:
|
|
2703
|
-
toggleAllAction:
|
|
2702
|
+
isAllActionIndeterminate: A,
|
|
2703
|
+
toggleAllAction: Z,
|
|
2704
2704
|
actionLabel: x
|
|
2705
2705
|
};
|
|
2706
2706
|
}
|
|
2707
|
-
const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm-600" }, xo = { class: "mt-16" }, Wo = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Go = ["onClick"],
|
|
2707
|
+
const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm-600" }, xo = { 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" }, Bo = ["title", "onClick"], Zo = { class: "flex justify-center" }, Ho = /* @__PURE__ */ Le({
|
|
2708
2708
|
__name: "BasePermission",
|
|
2709
2709
|
props: {
|
|
2710
2710
|
modelValue: {
|
|
@@ -2726,7 +2726,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2726
2726
|
},
|
|
2727
2727
|
emits: ["update:model-value"],
|
|
2728
2728
|
setup(e, { emit: t }) {
|
|
2729
|
-
const n = e, r = t, { t: l } =
|
|
2729
|
+
const n = e, r = t, { t: l } = He(), a = z(() => [...Gn, ...n.additionalPermissions]), {
|
|
2730
2730
|
categoryGroups: d,
|
|
2731
2731
|
isAllManageChecked: u,
|
|
2732
2732
|
isAllManageIndeterminate: i,
|
|
@@ -2735,9 +2735,9 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2735
2735
|
isManageIndeterminate: T,
|
|
2736
2736
|
toggleManage: N,
|
|
2737
2737
|
isActionChecked: F,
|
|
2738
|
-
isRowFullyCoveredByCover:
|
|
2739
|
-
isActionCoveredByCover:
|
|
2740
|
-
permissionDefinesAction:
|
|
2738
|
+
isRowFullyCoveredByCover: w,
|
|
2739
|
+
isActionCoveredByCover: L,
|
|
2740
|
+
permissionDefinesAction: D,
|
|
2741
2741
|
toggleAction: f,
|
|
2742
2742
|
isAllActionChecked: h,
|
|
2743
2743
|
isAllActionIndeterminate: S,
|
|
@@ -2747,21 +2747,21 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2747
2747
|
en(n, "modelValue"),
|
|
2748
2748
|
a,
|
|
2749
2749
|
en(n, "excludedSubjects"),
|
|
2750
|
-
(R,
|
|
2750
|
+
(R, A) => r("update:model-value", A)
|
|
2751
2751
|
);
|
|
2752
2752
|
function I(R) {
|
|
2753
|
-
const
|
|
2754
|
-
return
|
|
2753
|
+
const A = R.selectedSubjects.length;
|
|
2754
|
+
return A === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: A });
|
|
2755
2755
|
}
|
|
2756
|
-
function p(R,
|
|
2757
|
-
return y(R,
|
|
2758
|
-
(
|
|
2756
|
+
function p(R, A) {
|
|
2757
|
+
return y(R, A) || w(R, A) ? !0 : R.actionColumns.some(
|
|
2758
|
+
(Z) => D(R, A, Z) && (F(R, A, Z) || L(R, A, Z))
|
|
2759
2759
|
);
|
|
2760
2760
|
}
|
|
2761
|
-
return (R,
|
|
2762
|
-
const
|
|
2761
|
+
return (R, A) => {
|
|
2762
|
+
const Z = we("FmCheckbox");
|
|
2763
2763
|
return J(), ie("div", Uo, [
|
|
2764
|
-
(J(!0), ie(Re, null, Ee(
|
|
2764
|
+
(J(!0), ie(Re, null, Ee(H(d), (x) => (J(), Ne(Zt, {
|
|
2765
2765
|
key: x.category,
|
|
2766
2766
|
subtitle: I(x)
|
|
2767
2767
|
}, {
|
|
@@ -2776,12 +2776,12 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2776
2776
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2777
2777
|
})
|
|
2778
2778
|
}, [
|
|
2779
|
-
|
|
2780
|
-
ae("div", Wo, Oe(
|
|
2779
|
+
A[0] || (A[0] = ae("div", null, null, -1)),
|
|
2780
|
+
ae("div", Wo, Oe(H(l)("team.memberForm.permissions.columnManage")), 1),
|
|
2781
2781
|
(J(!0), ie(Re, null, Ee(x.actionColumns, (m) => (J(), ie("div", {
|
|
2782
2782
|
key: `header-${m}`,
|
|
2783
2783
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2784
|
-
}, Oe(
|
|
2784
|
+
}, Oe(H(b)(m)), 1))), 128))
|
|
2785
2785
|
], 4),
|
|
2786
2786
|
ae("div", {
|
|
2787
2787
|
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
@@ -2791,35 +2791,35 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2791
2791
|
}, [
|
|
2792
2792
|
ae("div", {
|
|
2793
2793
|
class: "cursor-pointer font-semibold",
|
|
2794
|
-
onClick: (m) => !e.disable &&
|
|
2795
|
-
}, Oe(
|
|
2796
|
-
ae("div",
|
|
2797
|
-
ue(
|
|
2798
|
-
"model-value":
|
|
2799
|
-
indeterminate:
|
|
2794
|
+
onClick: (m) => !e.disable && H(g)(x)
|
|
2795
|
+
}, Oe(H(l)("team.labels.all")), 9, Go),
|
|
2796
|
+
ae("div", Xo, [
|
|
2797
|
+
ue(Z, {
|
|
2798
|
+
"model-value": H(u)(x),
|
|
2799
|
+
indeterminate: H(i)(x),
|
|
2800
2800
|
value: !0,
|
|
2801
2801
|
disabled: e.disable,
|
|
2802
2802
|
size: "sm",
|
|
2803
2803
|
dense: "",
|
|
2804
|
-
"onUpdate:modelValue": (m) =>
|
|
2804
|
+
"onUpdate:modelValue": (m) => H(g)(x)
|
|
2805
2805
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2806
2806
|
]),
|
|
2807
2807
|
(J(!0), ie(Re, null, Ee(x.actionColumns, (m) => (J(), ie("div", {
|
|
2808
2808
|
key: `all-${m}`,
|
|
2809
2809
|
class: "flex justify-center"
|
|
2810
2810
|
}, [
|
|
2811
|
-
ue(
|
|
2812
|
-
"model-value":
|
|
2813
|
-
indeterminate:
|
|
2811
|
+
ue(Z, {
|
|
2812
|
+
"model-value": H(h)(x, m),
|
|
2813
|
+
indeterminate: H(S)(x, m),
|
|
2814
2814
|
value: m,
|
|
2815
2815
|
disabled: e.disable,
|
|
2816
2816
|
size: "sm",
|
|
2817
2817
|
dense: "",
|
|
2818
|
-
"onUpdate:modelValue": (C) =>
|
|
2818
|
+
"onUpdate:modelValue": (C) => H(c)(x, m, C)
|
|
2819
2819
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2820
2820
|
]))), 128))
|
|
2821
2821
|
], 4),
|
|
2822
|
-
|
|
2822
|
+
A[1] || (A[1] = ae("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2823
2823
|
(J(!0), ie(Re, null, Ee(x.options, (m) => (J(), ie("div", {
|
|
2824
2824
|
key: m.optionKey,
|
|
2825
2825
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
@@ -2827,44 +2827,44 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2827
2827
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2828
2828
|
})
|
|
2829
2829
|
}, [
|
|
2830
|
-
ae("div",
|
|
2830
|
+
ae("div", Yo, [
|
|
2831
2831
|
ae("span", {
|
|
2832
2832
|
class: "block truncate cursor-pointer",
|
|
2833
2833
|
title: m.label,
|
|
2834
|
-
onClick: (C) => !e.disable && !
|
|
2834
|
+
onClick: (C) => !e.disable && !H(w)(x, m.value) && H(N)(x, m.value, !H(y)(x, m.value))
|
|
2835
2835
|
}, Oe(m.label), 9, Bo),
|
|
2836
2836
|
Se(R.$slots, `checkbox-${m.value}-append`, {
|
|
2837
2837
|
option: m,
|
|
2838
2838
|
isEffectiveSelected: p(x, m.value),
|
|
2839
|
-
isCoveredByCover:
|
|
2839
|
+
isCoveredByCover: H(w)(x, m.value) || x.actionColumns.some((C) => H(L)(x, m.value, C))
|
|
2840
2840
|
}),
|
|
2841
2841
|
Se(R.$slots, `checkbox-${m.value}-icon`, {
|
|
2842
2842
|
option: m,
|
|
2843
2843
|
isEffectiveSelected: p(x, m.value),
|
|
2844
|
-
isCoveredByCover:
|
|
2844
|
+
isCoveredByCover: H(w)(x, m.value) || x.actionColumns.some((C) => H(L)(x, m.value, C))
|
|
2845
2845
|
})
|
|
2846
2846
|
]),
|
|
2847
|
-
ae("div",
|
|
2848
|
-
ue(
|
|
2849
|
-
"model-value":
|
|
2847
|
+
ae("div", Zo, [
|
|
2848
|
+
ue(Z, {
|
|
2849
|
+
"model-value": H(y)(x, m.value) || H(w)(x, m.value),
|
|
2850
2850
|
value: m.value,
|
|
2851
|
-
disabled: e.disable ||
|
|
2852
|
-
indeterminate:
|
|
2851
|
+
disabled: e.disable || H(w)(x, m.value),
|
|
2852
|
+
indeterminate: H(T)(x, m.value),
|
|
2853
2853
|
size: "sm",
|
|
2854
|
-
"onUpdate:modelValue": (C) =>
|
|
2854
|
+
"onUpdate:modelValue": (C) => H(N)(x, m.value, C)
|
|
2855
2855
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2856
2856
|
]),
|
|
2857
2857
|
(J(!0), ie(Re, null, Ee(x.actionColumns, (C) => (J(), ie("div", {
|
|
2858
2858
|
key: `${m.optionKey}-${C}`,
|
|
2859
2859
|
class: "flex justify-center"
|
|
2860
2860
|
}, [
|
|
2861
|
-
|
|
2861
|
+
H(D)(x, m.value, C) ? (J(), Ne(Z, {
|
|
2862
2862
|
key: 0,
|
|
2863
|
-
"model-value":
|
|
2863
|
+
"model-value": H(F)(x, m.value, C) || H(L)(x, m.value, C),
|
|
2864
2864
|
value: C,
|
|
2865
|
-
disabled: e.disable ||
|
|
2865
|
+
disabled: e.disable || H(L)(x, m.value, C),
|
|
2866
2866
|
size: "sm",
|
|
2867
|
-
"onUpdate:modelValue": (U) =>
|
|
2867
|
+
"onUpdate:modelValue": (U) => H(f)(m.value, C, U)
|
|
2868
2868
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Me("", !0)
|
|
2869
2869
|
]))), 128))
|
|
2870
2870
|
], 4))), 128))
|
|
@@ -2881,7 +2881,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2881
2881
|
}, Ko = {
|
|
2882
2882
|
key: 0,
|
|
2883
2883
|
class: "q-mr-xs text-red col"
|
|
2884
|
-
}, zo = { class: "form-input" }, Qo = /* @__PURE__ */
|
|
2884
|
+
}, zo = { class: "form-input" }, Qo = /* @__PURE__ */ Le({
|
|
2885
2885
|
__name: "AppForm",
|
|
2886
2886
|
props: {
|
|
2887
2887
|
title: {
|
|
@@ -2917,7 +2917,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2917
2917
|
}), qo = { class: "col flex items-center" }, ea = {
|
|
2918
2918
|
key: 1,
|
|
2919
2919
|
class: "q-pa-sm form-error-message text-error"
|
|
2920
|
-
}, ir = /* @__PURE__ */
|
|
2920
|
+
}, ir = /* @__PURE__ */ Le({
|
|
2921
2921
|
__name: "CheckboxInput",
|
|
2922
2922
|
props: {
|
|
2923
2923
|
options: {
|
|
@@ -2975,33 +2975,33 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2975
2975
|
},
|
|
2976
2976
|
emits: ["update:model-value"],
|
|
2977
2977
|
setup(e, { emit: t }) {
|
|
2978
|
-
const n = e, r = t, { t: l } =
|
|
2979
|
-
() => n.modelValue.filter((
|
|
2978
|
+
const n = e, r = t, { t: l } = He(), a = rt(!1), d = pr(), 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-${Lr(6)}`, g = z(() => u.value !== !0), y = z(
|
|
2979
|
+
() => n.modelValue.filter((L) => n.options.some((D) => D.value === L))
|
|
2980
2980
|
), T = z(
|
|
2981
2981
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2982
2982
|
), N = z(() => n.options.length > 0 && n.options.length === y.value.length);
|
|
2983
2983
|
function F() {
|
|
2984
|
-
const
|
|
2984
|
+
const L = n.modelValue.filter((D) => !y.value.includes(D));
|
|
2985
2985
|
if (N.value === !0)
|
|
2986
|
-
r("update:model-value",
|
|
2986
|
+
r("update:model-value", L);
|
|
2987
2987
|
else {
|
|
2988
|
-
const
|
|
2989
|
-
r("update:model-value", [...
|
|
2988
|
+
const D = n.includeDisabledOptionsWhenSelectAll ? n.options.map((f) => f.value) : n.options.filter((f) => !f.disabled).map((f) => f.value);
|
|
2989
|
+
r("update:model-value", [...L, ...D]);
|
|
2990
2990
|
}
|
|
2991
2991
|
}
|
|
2992
|
-
function
|
|
2992
|
+
function w(L, D) {
|
|
2993
2993
|
let f = It(n.modelValue);
|
|
2994
|
-
|
|
2994
|
+
D ? f.every((h) => h !== L) && f.push(L) : f = f.filter((h) => h !== L), r("update:model-value", f);
|
|
2995
2995
|
}
|
|
2996
|
-
return (
|
|
2997
|
-
const f =
|
|
2996
|
+
return (L, D) => {
|
|
2997
|
+
const f = we("FmCheckbox");
|
|
2998
2998
|
return J(), Ne(Qo, {
|
|
2999
2999
|
id: i,
|
|
3000
3000
|
title: e.title,
|
|
3001
3001
|
required: !1
|
|
3002
3002
|
}, {
|
|
3003
3003
|
top: de(() => [
|
|
3004
|
-
Se(
|
|
3004
|
+
Se(L.$slots, "top")
|
|
3005
3005
|
]),
|
|
3006
3006
|
default: de(() => [
|
|
3007
3007
|
n.showAllToggle ? (J(), Ne(f, {
|
|
@@ -3030,30 +3030,30 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3030
3030
|
size: "sm",
|
|
3031
3031
|
label: h.label,
|
|
3032
3032
|
value: h.label,
|
|
3033
|
-
"onUpdate:modelValue": (c) =>
|
|
3033
|
+
"onUpdate:modelValue": (c) => w(h.value, c)
|
|
3034
3034
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
3035
|
-
Se(
|
|
3035
|
+
Se(L.$slots, `checkbox-${h.key || h.value}-append`, {
|
|
3036
3036
|
option: h,
|
|
3037
3037
|
selected: e.modelValue.includes(h.value)
|
|
3038
3038
|
})
|
|
3039
3039
|
]),
|
|
3040
|
-
|
|
3040
|
+
H(d)[`checkbox-${h.key || h.value}-end`] && (e.modelValue.includes(h.value) || e.falsyShowSlot) ? (J(), ie("div", {
|
|
3041
3041
|
key: 0,
|
|
3042
3042
|
class: qe([{ "q-checkbox disabled": e.disable || h.disabled }, "col"])
|
|
3043
3043
|
}, [
|
|
3044
|
-
Se(
|
|
3044
|
+
Se(L.$slots, `checkbox-${h.key || h.value}-end`, {
|
|
3045
3045
|
option: h,
|
|
3046
3046
|
value: e.modelValue.includes(h.value),
|
|
3047
3047
|
disable: e.disable || h.disabled
|
|
3048
3048
|
})
|
|
3049
3049
|
], 2)) : Me("", !0)
|
|
3050
3050
|
], 2),
|
|
3051
|
-
|
|
3051
|
+
H(d)[`checkbox-${h.key || h.value}-bottom`] && (e.modelValue.includes(h.value) || e.falsyShowSlot) ? (J(), ie("div", {
|
|
3052
3052
|
key: 0,
|
|
3053
3053
|
class: qe(["q-mt-sm", { "q-checkbox disabled": e.disable || h.disabled }]),
|
|
3054
3054
|
style: nt(`margin-left: ${e.bottomSlotIndent}`)
|
|
3055
3055
|
}, [
|
|
3056
|
-
Se(
|
|
3056
|
+
Se(L.$slots, `checkbox-${h.key || h.value}-bottom`, {
|
|
3057
3057
|
option: h,
|
|
3058
3058
|
disable: e.disable || h.disabled,
|
|
3059
3059
|
value: e.modelValue.includes(h.value)
|
|
@@ -3066,7 +3066,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3066
3066
|
}, 8, ["title"]);
|
|
3067
3067
|
};
|
|
3068
3068
|
}
|
|
3069
|
-
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture",
|
|
3069
|
+
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture", Dn = /* @__PURE__ */ Le({
|
|
3070
3070
|
__name: "ConditionPermission",
|
|
3071
3071
|
props: {
|
|
3072
3072
|
modelValue: {
|
|
@@ -3088,7 +3088,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3088
3088
|
},
|
|
3089
3089
|
emits: ["update:model-value"],
|
|
3090
3090
|
setup(e, { emit: t }) {
|
|
3091
|
-
const n = e, r = t, { t: l } =
|
|
3091
|
+
const n = e, r = t, { t: l } = He(), a = z(() => [
|
|
3092
3092
|
{
|
|
3093
3093
|
label: l("team.memberForm.permissions.includedFuture", { context: n.context }),
|
|
3094
3094
|
value: ht,
|
|
@@ -3108,10 +3108,10 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3108
3108
|
}
|
|
3109
3109
|
const g = rt("");
|
|
3110
3110
|
return (y, T) => {
|
|
3111
|
-
const N =
|
|
3112
|
-
return J(), Ne(
|
|
3111
|
+
const N = we("fm-search");
|
|
3112
|
+
return J(), Ne(Zt, { subtitle: u.value }, {
|
|
3113
3113
|
title: de(() => [
|
|
3114
|
-
ae("p", ta, Oe(
|
|
3114
|
+
ae("p", ta, Oe(H(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3115
3115
|
]),
|
|
3116
3116
|
default: de(() => [
|
|
3117
3117
|
e.options.length > 1 ? (J(), Ne(N, {
|
|
@@ -3119,7 +3119,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3119
3119
|
modelValue: g.value,
|
|
3120
3120
|
"onUpdate:modelValue": T[0] || (T[0] = (F) => g.value = F),
|
|
3121
3121
|
class: "mt-16",
|
|
3122
|
-
placeholder:
|
|
3122
|
+
placeholder: H(l)("team.memberForm.permissions.search", { context: e.context })
|
|
3123
3123
|
}, null, 8, ["modelValue", "placeholder"])) : Me("", !0),
|
|
3124
3124
|
ue(ir, {
|
|
3125
3125
|
"model-value": d.value,
|
|
@@ -3134,8 +3134,8 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3134
3134
|
}, et({ _: 2 }, [
|
|
3135
3135
|
Ee(a.value, (F) => ({
|
|
3136
3136
|
name: `checkbox-${F.value}-append`,
|
|
3137
|
-
fn: de(({ option:
|
|
3138
|
-
Se(y.$slots, `checkbox-${F.value}-append`, { option:
|
|
3137
|
+
fn: de(({ option: w }) => [
|
|
3138
|
+
Se(y.$slots, `checkbox-${F.value}-append`, { option: w })
|
|
3139
3139
|
])
|
|
3140
3140
|
}))
|
|
3141
3141
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3144,7 +3144,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3144
3144
|
}, 8, ["subtitle"]);
|
|
3145
3145
|
};
|
|
3146
3146
|
}
|
|
3147
|
-
}), na = { class: "fm-typo-en-title-sm-600" }, bt = "includedNewRole", ra = /* @__PURE__ */
|
|
3147
|
+
}), na = { class: "fm-typo-en-title-sm-600" }, bt = "includedNewRole", ra = /* @__PURE__ */ Le({
|
|
3148
3148
|
__name: "PosRolePermission",
|
|
3149
3149
|
props: {
|
|
3150
3150
|
modelValue: {
|
|
@@ -3166,7 +3166,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3166
3166
|
},
|
|
3167
3167
|
emits: ["update:model-value"],
|
|
3168
3168
|
setup(e, { emit: t }) {
|
|
3169
|
-
const n = e, r = t, { t: l } =
|
|
3169
|
+
const n = e, r = t, { t: l } = He(), a = z(() => {
|
|
3170
3170
|
const g = n.restaurantIds;
|
|
3171
3171
|
return [
|
|
3172
3172
|
{
|
|
@@ -3188,9 +3188,9 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3188
3188
|
const y = g.length === a.value.length;
|
|
3189
3189
|
r("update:model-value", y ? null : g.filter((T) => T !== bt));
|
|
3190
3190
|
}
|
|
3191
|
-
return (g, y) => (J(), Ne(
|
|
3191
|
+
return (g, y) => (J(), Ne(Zt, { subtitle: u.value }, {
|
|
3192
3192
|
title: de(() => [
|
|
3193
|
-
ae("p", na, Oe(
|
|
3193
|
+
ae("p", na, Oe(H(l)("team.memberForm.permissions.roles")), 1)
|
|
3194
3194
|
]),
|
|
3195
3195
|
default: de(() => [
|
|
3196
3196
|
ue(ir, {
|
|
@@ -3224,7 +3224,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3224
3224
|
}, aa = {
|
|
3225
3225
|
key: 0,
|
|
3226
3226
|
class: "ml-32"
|
|
3227
|
-
}, Fn = /* @__PURE__ */
|
|
3227
|
+
}, Fn = /* @__PURE__ */ Le({
|
|
3228
3228
|
__name: "PortalConditionForm",
|
|
3229
3229
|
props: {
|
|
3230
3230
|
entry: {},
|
|
@@ -3241,9 +3241,9 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3241
3241
|
},
|
|
3242
3242
|
emits: ["update-inherit-mode", "update-form", "apply"],
|
|
3243
3243
|
setup(e, { emit: t }) {
|
|
3244
|
-
const n = t, { t: r } =
|
|
3244
|
+
const n = t, { t: r } = He();
|
|
3245
3245
|
return (l, a) => {
|
|
3246
|
-
const d =
|
|
3246
|
+
const d = we("FmRadio"), u = we("FmRadioGroup");
|
|
3247
3247
|
return J(), Ne(Cr, {
|
|
3248
3248
|
title: e.title,
|
|
3249
3249
|
builders: e.builders,
|
|
@@ -3265,18 +3265,18 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3265
3265
|
ae("div", null, [
|
|
3266
3266
|
ue(d, {
|
|
3267
3267
|
value: "inherit",
|
|
3268
|
-
label:
|
|
3268
|
+
label: H(r)("team.memberForm.permissions.conditionCover.inherit", {
|
|
3269
3269
|
cover: e.coverOverride.coverLabel(e.subject)
|
|
3270
3270
|
})
|
|
3271
3271
|
}, null, 8, ["label"]),
|
|
3272
|
-
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? (J(), ie("p", oa, " (" + Oe(
|
|
3272
|
+
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? (J(), ie("p", oa, " (" + Oe(H(r)(
|
|
3273
3273
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).labelKey,
|
|
3274
3274
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).params ?? {}
|
|
3275
3275
|
)) + ") ", 1)) : Me("", !0)
|
|
3276
3276
|
]),
|
|
3277
3277
|
ue(d, {
|
|
3278
3278
|
value: "custom",
|
|
3279
|
-
label:
|
|
3279
|
+
label: H(r)("team.memberForm.permissions.conditionCover.custom")
|
|
3280
3280
|
}, null, 8, ["label"])
|
|
3281
3281
|
]),
|
|
3282
3282
|
_: 2
|
|
@@ -3303,11 +3303,11 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3303
3303
|
}
|
|
3304
3304
|
}), la = {
|
|
3305
3305
|
async readWarehouses() {
|
|
3306
|
-
return
|
|
3306
|
+
return kr(await Rr().get("/warehouses"));
|
|
3307
3307
|
}
|
|
3308
3308
|
};
|
|
3309
3309
|
function Pn(e, t) {
|
|
3310
|
-
return
|
|
3310
|
+
return Xn(e, Yn).some(
|
|
3311
3311
|
(n) => n.subject === t && !n.inverted && n.actions.includes("manage")
|
|
3312
3312
|
);
|
|
3313
3313
|
}
|
|
@@ -3345,22 +3345,22 @@ function ia(e, t, n, r) {
|
|
|
3345
3345
|
}
|
|
3346
3346
|
for (const i of a) {
|
|
3347
3347
|
if (!l.has(i)) continue;
|
|
3348
|
-
const g = e.find((
|
|
3348
|
+
const g = e.find((w) => w.subject === i && !w.inverted), y = t.find((w) => w.subject === i && !w.inverted);
|
|
3349
3349
|
if (!g || !y) continue;
|
|
3350
3350
|
const T = new Set(g.actions), N = new Set(y.actions);
|
|
3351
|
-
if (T.size === N.size && [...T].every((
|
|
3351
|
+
if (T.size === N.size && [...T].every((w) => N.has(w)))
|
|
3352
3352
|
continue;
|
|
3353
|
-
const F = u.findIndex((
|
|
3353
|
+
const F = u.findIndex((w) => w.subject === i && !w.inverted);
|
|
3354
3354
|
if (F >= 0)
|
|
3355
3355
|
u[F] = {
|
|
3356
3356
|
...u[F],
|
|
3357
3357
|
actions: Array.from(N)
|
|
3358
3358
|
};
|
|
3359
3359
|
else {
|
|
3360
|
-
const
|
|
3361
|
-
|
|
3360
|
+
const w = r(i);
|
|
3361
|
+
w && u.push(Un(w, Array.from(N)));
|
|
3362
3362
|
}
|
|
3363
|
-
T.has("manage") && !N.has("manage") && Pn(u, i) && (u = jn(u, i)), !T.has("manage") && N.has("manage") && (u = u.filter((
|
|
3363
|
+
T.has("manage") && !N.has("manage") && Pn(u, i) && (u = jn(u, i)), !T.has("manage") && N.has("manage") && (u = u.filter((w) => !(w.subject === i && w.inverted)));
|
|
3364
3364
|
}
|
|
3365
3365
|
return u;
|
|
3366
3366
|
}
|
|
@@ -3403,20 +3403,20 @@ function Mt(e, t) {
|
|
|
3403
3403
|
const n = new Set(e.actions);
|
|
3404
3404
|
return n.has(he.Action.manage) ? !0 : t.actions.every((r) => n.has(r));
|
|
3405
3405
|
}
|
|
3406
|
-
function
|
|
3406
|
+
function Yt(e, t) {
|
|
3407
3407
|
const n = We(e);
|
|
3408
|
-
return
|
|
3408
|
+
return Dt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3409
3409
|
}
|
|
3410
3410
|
function Vn(e, t, n) {
|
|
3411
3411
|
return {
|
|
3412
|
-
...
|
|
3412
|
+
...Yt(e, n),
|
|
3413
3413
|
...tt(We(t), n)
|
|
3414
3414
|
};
|
|
3415
3415
|
}
|
|
3416
3416
|
function fa(e, t, n) {
|
|
3417
3417
|
const r = rt(/* @__PURE__ */ new Set());
|
|
3418
3418
|
function l(c) {
|
|
3419
|
-
return
|
|
3419
|
+
return Dr(c, t.value);
|
|
3420
3420
|
}
|
|
3421
3421
|
function a(c) {
|
|
3422
3422
|
return t.value.find((b) => b.subject === c);
|
|
@@ -3445,8 +3445,8 @@ function fa(e, t, n) {
|
|
|
3445
3445
|
if (c.index === null) return "inherit";
|
|
3446
3446
|
const I = e.value[c.index], p = l(c.subject), R = p ? u(p) : void 0;
|
|
3447
3447
|
if (I && R) {
|
|
3448
|
-
const
|
|
3449
|
-
if (JSON.stringify(
|
|
3448
|
+
const A = tt(We(I), b), Z = i(R, b);
|
|
3449
|
+
if (JSON.stringify(A) === JSON.stringify(Z)) return "inherit";
|
|
3450
3450
|
}
|
|
3451
3451
|
return "custom";
|
|
3452
3452
|
}
|
|
@@ -3456,26 +3456,26 @@ function fa(e, t, n) {
|
|
|
3456
3456
|
if (!p) return;
|
|
3457
3457
|
const R = u(p);
|
|
3458
3458
|
if (!R) return;
|
|
3459
|
-
const
|
|
3460
|
-
return b.summarizeForm(
|
|
3459
|
+
const A = b.fromCondition(i(R, b));
|
|
3460
|
+
return b.summarizeForm(A, { timeZone: I });
|
|
3461
3461
|
}
|
|
3462
3462
|
function N(c, b) {
|
|
3463
3463
|
if (c.index === null) return;
|
|
3464
|
-
const I = [...e.value], p = { ...I[c.index] }, R =
|
|
3465
|
-
if (
|
|
3464
|
+
const I = [...e.value], p = { ...I[c.index] }, R = Yt(p, b), A = Object.keys(R).length === 0, Z = l(c.subject), x = Z ? u(Z) : void 0, m = x ? Mt(x, p) : !1;
|
|
3465
|
+
if (A && m)
|
|
3466
3466
|
I.splice(c.index, 1);
|
|
3467
3467
|
else if (x) {
|
|
3468
3468
|
const C = Vn(p, x, b);
|
|
3469
3469
|
Object.keys(C).length === 0 ? delete p.conditions : p.conditions = JSON.stringify(C), I[c.index] = p;
|
|
3470
3470
|
} else
|
|
3471
|
-
|
|
3471
|
+
A ? delete p.conditions : p.conditions = JSON.stringify(R), I[c.index] = p;
|
|
3472
3472
|
n(I);
|
|
3473
3473
|
}
|
|
3474
3474
|
function F(c, b, I) {
|
|
3475
3475
|
const p = gt(c.subject, b);
|
|
3476
3476
|
if (I === "inherit") {
|
|
3477
|
-
const
|
|
3478
|
-
|
|
3477
|
+
const A = new Set(r.value);
|
|
3478
|
+
A.delete(p), r.value = A, N(c, b);
|
|
3479
3479
|
return;
|
|
3480
3480
|
}
|
|
3481
3481
|
const R = new Set(r.value);
|
|
@@ -3483,84 +3483,84 @@ function fa(e, t, n) {
|
|
|
3483
3483
|
forceCreateRule: !0
|
|
3484
3484
|
});
|
|
3485
3485
|
}
|
|
3486
|
-
function
|
|
3486
|
+
function w(c) {
|
|
3487
3487
|
const b = l(c);
|
|
3488
3488
|
if (!b) return [];
|
|
3489
3489
|
const I = u(b);
|
|
3490
3490
|
return (I == null ? void 0 : I.actions) ?? [];
|
|
3491
3491
|
}
|
|
3492
|
-
function
|
|
3492
|
+
function L(c, b) {
|
|
3493
3493
|
return e.value.filter((I) => {
|
|
3494
3494
|
if (I.inverted) return !1;
|
|
3495
3495
|
const p = I.subject;
|
|
3496
3496
|
return p === c || l(p) !== c ? !1 : r.value.has(gt(p, b)) ? !0 : Object.keys(tt(We(I), b)).length > 0;
|
|
3497
3497
|
});
|
|
3498
3498
|
}
|
|
3499
|
-
function
|
|
3499
|
+
function D(c, b) {
|
|
3500
3500
|
const I = `::${b.builderKey}`, p = new Set(r.value);
|
|
3501
3501
|
for (const R of p) {
|
|
3502
3502
|
if (!R.endsWith(I)) continue;
|
|
3503
|
-
const
|
|
3504
|
-
l(
|
|
3503
|
+
const A = R.slice(0, -I.length);
|
|
3504
|
+
l(A) === c && p.delete(R);
|
|
3505
3505
|
}
|
|
3506
3506
|
r.value = p;
|
|
3507
3507
|
}
|
|
3508
3508
|
function f(c, b, I) {
|
|
3509
3509
|
const p = b.subject;
|
|
3510
|
-
return c.reduce((R,
|
|
3511
|
-
if (
|
|
3512
|
-
return R.push(
|
|
3513
|
-
const
|
|
3514
|
-
if (
|
|
3515
|
-
return R.push(
|
|
3516
|
-
if (Mt(b,
|
|
3510
|
+
return c.reduce((R, A) => {
|
|
3511
|
+
if (A.inverted)
|
|
3512
|
+
return R.push(A), R;
|
|
3513
|
+
const Z = A.subject;
|
|
3514
|
+
if (Z === p || l(Z) !== p)
|
|
3515
|
+
return R.push(A), R;
|
|
3516
|
+
if (Mt(b, A) && Object.keys(Yt(A, I)).length === 0)
|
|
3517
3517
|
return R;
|
|
3518
|
-
const m = Vn(
|
|
3518
|
+
const m = Vn(A, b, I);
|
|
3519
3519
|
if (Object.keys(m).length === 0) {
|
|
3520
|
-
const { conditions: C, ...U } =
|
|
3520
|
+
const { conditions: C, ...U } = A;
|
|
3521
3521
|
R.push(U);
|
|
3522
3522
|
} else
|
|
3523
|
-
R.push({ ...
|
|
3523
|
+
R.push({ ...A, conditions: JSON.stringify(m) });
|
|
3524
3524
|
return R;
|
|
3525
3525
|
}, []);
|
|
3526
3526
|
}
|
|
3527
3527
|
function h(c, b, I, p = {}) {
|
|
3528
3528
|
var V;
|
|
3529
3529
|
const R = [...e.value];
|
|
3530
|
-
let
|
|
3531
|
-
const
|
|
3532
|
-
if (
|
|
3533
|
-
if (
|
|
3530
|
+
let A = c.index;
|
|
3531
|
+
const Z = b.toCondition(I), x = Object.keys(Z).length > 0;
|
|
3532
|
+
if (A === null && !x && !p.forceCreateRule) return;
|
|
3533
|
+
if (A === null) {
|
|
3534
3534
|
const j = R.findIndex((G) => !G.inverted && G.subject === c.subject);
|
|
3535
3535
|
if (j !== -1)
|
|
3536
|
-
|
|
3536
|
+
A = j;
|
|
3537
3537
|
else {
|
|
3538
3538
|
const G = t.value.find((Q) => Q.subject === c.subject);
|
|
3539
3539
|
if (!G) return;
|
|
3540
3540
|
const {
|
|
3541
3541
|
category: W,
|
|
3542
|
-
showByFeatureFlag:
|
|
3542
|
+
showByFeatureFlag: Y,
|
|
3543
3543
|
isCategoryCover: B,
|
|
3544
3544
|
...ne
|
|
3545
3545
|
} = G;
|
|
3546
3546
|
R.push({
|
|
3547
3547
|
...ne,
|
|
3548
3548
|
actions: c.actions.length > 0 ? c.actions : ne.actions
|
|
3549
|
-
}),
|
|
3549
|
+
}), A = R.length - 1;
|
|
3550
3550
|
}
|
|
3551
3551
|
}
|
|
3552
|
-
const m = { ...R[
|
|
3552
|
+
const m = { ...R[A] };
|
|
3553
3553
|
m.actions = [
|
|
3554
3554
|
.../* @__PURE__ */ new Set([...m.actions, ...c.actions])
|
|
3555
3555
|
];
|
|
3556
|
-
const C = We(m), U =
|
|
3557
|
-
if (Object.keys(U).length === 0 ? delete m.conditions : m.conditions = JSON.stringify(U), R[
|
|
3558
|
-
const j =
|
|
3559
|
-
var
|
|
3560
|
-
|
|
3556
|
+
const C = We(m), U = Dt(C, [{ builder: b, formValue: I }]);
|
|
3557
|
+
if (Object.keys(U).length === 0 ? delete m.conditions : m.conditions = JSON.stringify(U), R[A] = m, sn(c.subject, t.value)) {
|
|
3558
|
+
const j = L(c.subject, b), G = () => {
|
|
3559
|
+
var Y;
|
|
3560
|
+
D(c.subject, b), n(f(R, m, b)), (Y = p.afterCommit) == null || Y.call(p);
|
|
3561
3561
|
}, W = () => {
|
|
3562
|
-
var
|
|
3563
|
-
n(R), (
|
|
3562
|
+
var Y;
|
|
3563
|
+
n(R), (Y = p.afterCommit) == null || Y.call(p);
|
|
3564
3564
|
};
|
|
3565
3565
|
if (j.length === 0) {
|
|
3566
3566
|
G();
|
|
@@ -3574,40 +3574,40 @@ function fa(e, t, n) {
|
|
|
3574
3574
|
function S(c, b, I = {}) {
|
|
3575
3575
|
if (b.length === 0) return;
|
|
3576
3576
|
const p = [...e.value];
|
|
3577
|
-
let R = p.findIndex((j) => !j.inverted && j.subject === c.subject),
|
|
3577
|
+
let R = p.findIndex((j) => !j.inverted && j.subject === c.subject), A = R === -1 ? void 0 : { ...p[R] }, Z = We(A ?? {}) ?? {};
|
|
3578
3578
|
for (const j of b) {
|
|
3579
3579
|
const G = j.mode === "inherit" ? j.builder.fromCondition(void 0) : j.form;
|
|
3580
|
-
|
|
3580
|
+
Z = Dt(Z, [{ builder: j.builder, formValue: G }]);
|
|
3581
3581
|
}
|
|
3582
3582
|
const x = b.some((j) => j.mode === "custom");
|
|
3583
|
-
if (!
|
|
3583
|
+
if (!A && (Object.keys(Z).length > 0 || x)) {
|
|
3584
3584
|
const j = t.value.find((ne) => ne.subject === c.subject);
|
|
3585
3585
|
if (!j) return;
|
|
3586
3586
|
const {
|
|
3587
3587
|
category: G,
|
|
3588
3588
|
showByFeatureFlag: W,
|
|
3589
|
-
isCategoryCover:
|
|
3589
|
+
isCategoryCover: Y,
|
|
3590
3590
|
...B
|
|
3591
3591
|
} = j;
|
|
3592
|
-
|
|
3592
|
+
A = {
|
|
3593
3593
|
...B,
|
|
3594
3594
|
actions: c.actions.length > 0 ? c.actions : B.actions
|
|
3595
|
-
}, p.push(
|
|
3595
|
+
}, p.push(A), R = p.length - 1;
|
|
3596
3596
|
}
|
|
3597
|
-
if (
|
|
3597
|
+
if (A) {
|
|
3598
3598
|
const j = l(c.subject), G = j ? u(j) : void 0;
|
|
3599
|
-
if (!x && Object.keys(
|
|
3600
|
-
p.splice(R, 1),
|
|
3599
|
+
if (!x && Object.keys(Z).length === 0 && !!G && Mt(G, A))
|
|
3600
|
+
p.splice(R, 1), A = void 0;
|
|
3601
3601
|
else {
|
|
3602
|
-
if (
|
|
3603
|
-
.../* @__PURE__ */ new Set([...
|
|
3602
|
+
if (A.actions = [
|
|
3603
|
+
.../* @__PURE__ */ new Set([...A.actions, ...c.actions])
|
|
3604
3604
|
], G)
|
|
3605
|
-
for (const
|
|
3606
|
-
|
|
3607
|
-
...
|
|
3608
|
-
...tt(We(G),
|
|
3605
|
+
for (const Y of b)
|
|
3606
|
+
Y.mode === "inherit" && (Z = {
|
|
3607
|
+
...Z,
|
|
3608
|
+
...tt(We(G), Y.builder)
|
|
3609
3609
|
});
|
|
3610
|
-
Object.keys(
|
|
3610
|
+
Object.keys(Z).length === 0 ? delete A.conditions : A.conditions = JSON.stringify(Z), p[R] = A;
|
|
3611
3611
|
}
|
|
3612
3612
|
}
|
|
3613
3613
|
const m = () => {
|
|
@@ -3621,14 +3621,14 @@ function fa(e, t, n) {
|
|
|
3621
3621
|
var G;
|
|
3622
3622
|
m(), n(j), (G = I.afterCommit) == null || G.call(I);
|
|
3623
3623
|
};
|
|
3624
|
-
if (!sn(c.subject, t.value) || !
|
|
3624
|
+
if (!sn(c.subject, t.value) || !A) {
|
|
3625
3625
|
C(p);
|
|
3626
3626
|
return;
|
|
3627
3627
|
}
|
|
3628
|
-
const U = b.map((j) => j.builder).filter((j) =>
|
|
3628
|
+
const U = b.map((j) => j.builder).filter((j) => L(c.subject, j).length > 0), V = () => {
|
|
3629
3629
|
let j = p;
|
|
3630
3630
|
for (const G of b.map((W) => W.builder))
|
|
3631
|
-
|
|
3631
|
+
D(c.subject, G), j = f(j, A, G);
|
|
3632
3632
|
C(j);
|
|
3633
3633
|
};
|
|
3634
3634
|
if (U.length > 0 && I.onOverridesConflict) {
|
|
@@ -3644,12 +3644,12 @@ function fa(e, t, n) {
|
|
|
3644
3644
|
inheritMode: y,
|
|
3645
3645
|
setInheritMode: F,
|
|
3646
3646
|
inheritedSummary: T,
|
|
3647
|
-
getEffectiveActions:
|
|
3647
|
+
getEffectiveActions: w,
|
|
3648
3648
|
updateBuilderCondition: h,
|
|
3649
3649
|
applyConditionDrafts: S
|
|
3650
3650
|
};
|
|
3651
3651
|
}
|
|
3652
|
-
const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, va = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ha = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ba = { 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", Fa = /* @__PURE__ */
|
|
3652
|
+
const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, va = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ha = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ba = { 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", Fa = /* @__PURE__ */ Le({
|
|
3653
3653
|
__name: "PortalPermissionEditor",
|
|
3654
3654
|
props: /* @__PURE__ */ tn({
|
|
3655
3655
|
disable: {
|
|
@@ -3666,7 +3666,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3666
3666
|
}),
|
|
3667
3667
|
emits: /* @__PURE__ */ tn(["permissionChanged"], ["update:modelValue"]),
|
|
3668
3668
|
setup(e, { emit: t }) {
|
|
3669
|
-
const n = vr(e, "modelValue"), r = e, l = t, { t: a } =
|
|
3669
|
+
const n = vr(e, "modelValue"), r = e, l = t, { t: a } = He(), d = hr(), u = br(), { breakpoints: i } = gr(), g = z(() => i.value.xs || i.value.sm), {
|
|
3670
3670
|
fetchCustomReportPermissions: y,
|
|
3671
3671
|
customReportPermissions: T
|
|
3672
3672
|
} = Ir(), N = z(() => [
|
|
@@ -3676,10 +3676,10 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3676
3676
|
const O = d.currentBusiness.value, s = d.currentCountry.value, o = s instanceof Object ? s.code : s;
|
|
3677
3677
|
return da(O, o);
|
|
3678
3678
|
});
|
|
3679
|
-
function
|
|
3679
|
+
function w(O) {
|
|
3680
3680
|
return N.value.find((s) => s.subject === O);
|
|
3681
3681
|
}
|
|
3682
|
-
function
|
|
3682
|
+
function L(O, s) {
|
|
3683
3683
|
return rn(O).filter(
|
|
3684
3684
|
(o) => {
|
|
3685
3685
|
var _;
|
|
@@ -3687,7 +3687,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3687
3687
|
}
|
|
3688
3688
|
);
|
|
3689
3689
|
}
|
|
3690
|
-
const
|
|
3690
|
+
const D = z(() => {
|
|
3691
3691
|
const O = N.value.filter((o) => !c.includes(o.subject)).map((o) => o.subject);
|
|
3692
3692
|
return yr(
|
|
3693
3693
|
r.inheritPermissions.map((o) => ({
|
|
@@ -3705,7 +3705,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3705
3705
|
(o) => o.subject === he.Subject.Business.inventory_stock
|
|
3706
3706
|
)
|
|
3707
3707
|
}));
|
|
3708
|
-
return
|
|
3708
|
+
return At(
|
|
3709
3709
|
O,
|
|
3710
3710
|
"warehouseId",
|
|
3711
3711
|
I.value.map((s) => s._id)
|
|
@@ -3717,17 +3717,17 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3717
3717
|
(o) => o.subject === he.Subject.Restaurant.restaurant
|
|
3718
3718
|
)
|
|
3719
3719
|
}));
|
|
3720
|
-
return
|
|
3720
|
+
return At(
|
|
3721
3721
|
O,
|
|
3722
3722
|
"restaurantId",
|
|
3723
|
-
|
|
3723
|
+
Z.value.map((s) => s._id)
|
|
3724
3724
|
);
|
|
3725
3725
|
}), S = z(() => {
|
|
3726
3726
|
const O = r.inheritPermissions.map((s) => ({
|
|
3727
3727
|
...s,
|
|
3728
3728
|
permissions: s.permissions.filter((o) => o.subject === he.Subject.Business.role)
|
|
3729
3729
|
}));
|
|
3730
|
-
return
|
|
3730
|
+
return At(
|
|
3731
3731
|
O,
|
|
3732
3732
|
"roleId",
|
|
3733
3733
|
x.value.map((s) => s._id)
|
|
@@ -3748,10 +3748,10 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3748
3748
|
value: O._id
|
|
3749
3749
|
})));
|
|
3750
3750
|
function R(O) {
|
|
3751
|
-
const s =
|
|
3751
|
+
const s = A(n.value, O);
|
|
3752
3752
|
n.value = s;
|
|
3753
3753
|
}
|
|
3754
|
-
function
|
|
3754
|
+
function A(O, s) {
|
|
3755
3755
|
let o = It(
|
|
3756
3756
|
O.filter((_) => _.subject !== he.Subject.Business.inventory_stock)
|
|
3757
3757
|
);
|
|
@@ -3764,10 +3764,10 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3764
3764
|
}
|
|
3765
3765
|
return o;
|
|
3766
3766
|
}
|
|
3767
|
-
const { restaurants:
|
|
3767
|
+
const { restaurants: Z } = d, x = Mr().roles, m = z(() => Z.value.map((O) => ({
|
|
3768
3768
|
label: `${O.profile.code ? O.profile.code + "-" : ""}${O.profile.name}`,
|
|
3769
3769
|
value: O._id
|
|
3770
|
-
}))), C = z(() =>
|
|
3770
|
+
}))), C = z(() => Z.value.reduce((O, s) => (O[s._id] = x.value.filter((o) => o.restaurants.some((_) => _.id === s._id)).map((o) => o._id), O), {})), U = z(() => Er(n.value));
|
|
3771
3771
|
function V(O) {
|
|
3772
3772
|
const s = G(n.value, O);
|
|
3773
3773
|
n.value = s;
|
|
@@ -3777,15 +3777,15 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3777
3777
|
var _;
|
|
3778
3778
|
let o = It(
|
|
3779
3779
|
O.filter(
|
|
3780
|
-
(
|
|
3780
|
+
(k) => k.subject !== he.Subject.Business.restaurant && k.subject !== he.Subject.Restaurant.restaurant
|
|
3781
3781
|
)
|
|
3782
3782
|
);
|
|
3783
3783
|
if (!s || s.length > 0) {
|
|
3784
3784
|
const {
|
|
3785
|
-
category:
|
|
3785
|
+
category: k,
|
|
3786
3786
|
showByFeatureFlag: M,
|
|
3787
3787
|
...P
|
|
3788
|
-
} =
|
|
3788
|
+
} = Ar.restaurant;
|
|
3789
3789
|
o.push(P);
|
|
3790
3790
|
const v = {
|
|
3791
3791
|
actions: [he.Action.manage],
|
|
@@ -3794,21 +3794,21 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3794
3794
|
s && (v.conditions = JSON.stringify({ restaurantId: { $in: s } })), o.push(v);
|
|
3795
3795
|
}
|
|
3796
3796
|
if (s) {
|
|
3797
|
-
const
|
|
3797
|
+
const k = [
|
|
3798
3798
|
...new Set(s.map((P) => C.value[P]).flatMap((P) => P))
|
|
3799
3799
|
], M = x.value.map((P) => P._id);
|
|
3800
|
-
|
|
3800
|
+
k.length !== M.length && (o = Y(
|
|
3801
3801
|
o,
|
|
3802
|
-
(_ = j.value || M) == null ? void 0 : _.filter((P) =>
|
|
3802
|
+
(_ = j.value || M) == null ? void 0 : _.filter((P) => k.includes(P))
|
|
3803
3803
|
));
|
|
3804
3804
|
}
|
|
3805
3805
|
return o;
|
|
3806
3806
|
}
|
|
3807
3807
|
function W(O) {
|
|
3808
|
-
const s =
|
|
3808
|
+
const s = Y(n.value, O);
|
|
3809
3809
|
n.value = s;
|
|
3810
3810
|
}
|
|
3811
|
-
function
|
|
3811
|
+
function Y(O, s) {
|
|
3812
3812
|
let o = It(
|
|
3813
3813
|
O.filter((_) => _.subject !== he.Subject.Business.role)
|
|
3814
3814
|
);
|
|
@@ -3828,9 +3828,9 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3828
3828
|
y()
|
|
3829
3829
|
]);
|
|
3830
3830
|
});
|
|
3831
|
-
const B = z(() =>
|
|
3831
|
+
const B = z(() => Xn(
|
|
3832
3832
|
n.value,
|
|
3833
|
-
|
|
3833
|
+
Yn
|
|
3834
3834
|
).filter((o) => {
|
|
3835
3835
|
const _ = o.source;
|
|
3836
3836
|
return (_ == null ? void 0 : _.type) !== "systemPermissionSet" ? !0 : o.actions.includes("manage");
|
|
@@ -3838,9 +3838,9 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3838
3838
|
if (o.inverted) return o;
|
|
3839
3839
|
const _ = o.actions;
|
|
3840
3840
|
if (!_.includes("manage")) return o;
|
|
3841
|
-
const
|
|
3842
|
-
if (!
|
|
3843
|
-
const M =
|
|
3841
|
+
const k = w(o.subject);
|
|
3842
|
+
if (!k) return o;
|
|
3843
|
+
const M = k.actions;
|
|
3844
3844
|
return M.length <= 1 || M.filter((v) => !_.includes(v)).length === 0 ? o : { ...o, actions: [...M] };
|
|
3845
3845
|
}));
|
|
3846
3846
|
function ne(O) {
|
|
@@ -3848,7 +3848,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3848
3848
|
B.value,
|
|
3849
3849
|
O,
|
|
3850
3850
|
n.value,
|
|
3851
|
-
|
|
3851
|
+
w
|
|
3852
3852
|
);
|
|
3853
3853
|
}
|
|
3854
3854
|
const Q = z(() => new Set(
|
|
@@ -3862,8 +3862,8 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3862
3862
|
)
|
|
3863
3863
|
})).filter(({ rule: s }) => !s.inverted).forEach(({ rule: s, index: o }) => {
|
|
3864
3864
|
var P;
|
|
3865
|
-
const _ = s.actions,
|
|
3866
|
-
if (
|
|
3865
|
+
const _ = s.actions, k = L(s.subject, _);
|
|
3866
|
+
if (k.length === 0) return;
|
|
3867
3867
|
let M;
|
|
3868
3868
|
try {
|
|
3869
3869
|
M = s.conditions ? JSON.parse(s.conditions) : void 0;
|
|
@@ -3873,10 +3873,10 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3873
3873
|
O.set(s.subject, {
|
|
3874
3874
|
index: o >= 0 ? o : null,
|
|
3875
3875
|
subject: s.subject,
|
|
3876
|
-
label: ((P =
|
|
3876
|
+
label: ((P = w(s.subject)) == null ? void 0 : P.label) ?? s.subject,
|
|
3877
3877
|
actions: _,
|
|
3878
3878
|
// Each builder only ever sees its own slice of the stored condition.
|
|
3879
|
-
sections:
|
|
3879
|
+
sections: k.map((v) => ({
|
|
3880
3880
|
builder: v,
|
|
3881
3881
|
formValue: v.fromCondition(tt(M, v))
|
|
3882
3882
|
}))
|
|
@@ -3888,23 +3888,23 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3888
3888
|
function q(O, s) {
|
|
3889
3889
|
const o = _e.value.get(O);
|
|
3890
3890
|
if (o) return o;
|
|
3891
|
-
const _ = ce.getEffectiveActions(O),
|
|
3892
|
-
if (
|
|
3891
|
+
const _ = ce.getEffectiveActions(O), k = L(O, _);
|
|
3892
|
+
if (k.length !== 0)
|
|
3893
3893
|
return {
|
|
3894
3894
|
index: null,
|
|
3895
3895
|
subject: O,
|
|
3896
3896
|
label: s,
|
|
3897
3897
|
actions: _,
|
|
3898
|
-
sections:
|
|
3898
|
+
sections: k.map((M) => ({
|
|
3899
3899
|
builder: M,
|
|
3900
3900
|
formValue: M.fromCondition(void 0)
|
|
3901
3901
|
}))
|
|
3902
3902
|
};
|
|
3903
3903
|
}
|
|
3904
|
-
function
|
|
3904
|
+
function De(O, s) {
|
|
3905
3905
|
const o = se.getDraft({ subject: O.subject, builderKey: s.builderKey });
|
|
3906
3906
|
if (o) return o.formValue;
|
|
3907
|
-
const _ = O.sections.find((
|
|
3907
|
+
const _ = O.sections.find((k) => k.builder.builderKey === s.builderKey);
|
|
3908
3908
|
return _ == null ? void 0 : _.formValue;
|
|
3909
3909
|
}
|
|
3910
3910
|
function K(O, s) {
|
|
@@ -3928,11 +3928,11 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3928
3928
|
const _ = se.getDraft({
|
|
3929
3929
|
subject: O.subject,
|
|
3930
3930
|
builderKey: s.builderKey
|
|
3931
|
-
}),
|
|
3931
|
+
}), k = O.sections.find((M) => M.builder.builderKey === s.builderKey);
|
|
3932
3932
|
se.setDraft(
|
|
3933
3933
|
{ subject: O.subject, builderKey: s.builderKey },
|
|
3934
3934
|
{
|
|
3935
|
-
formValue: (_ == null ? void 0 : _.formValue) ?? (
|
|
3935
|
+
formValue: (_ == null ? void 0 : _.formValue) ?? (k == null ? void 0 : k.formValue),
|
|
3936
3936
|
inheritMode: o
|
|
3937
3937
|
}
|
|
3938
3938
|
);
|
|
@@ -3942,24 +3942,24 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3942
3942
|
}
|
|
3943
3943
|
function Ve(O, s) {
|
|
3944
3944
|
const o = O.sections.flatMap((_) => {
|
|
3945
|
-
const
|
|
3945
|
+
const k = se.getDraft({
|
|
3946
3946
|
subject: O.subject,
|
|
3947
3947
|
builderKey: _.builder.builderKey
|
|
3948
3948
|
});
|
|
3949
|
-
return
|
|
3949
|
+
return k ? [{ builder: _.builder, form: k.formValue, mode: k.inheritMode ?? "custom" }] : [];
|
|
3950
3950
|
});
|
|
3951
3951
|
ce.applyConditionDrafts(O, o, {
|
|
3952
3952
|
afterCommit: () => {
|
|
3953
3953
|
se.clearDraftsForSubject(O.subject), s();
|
|
3954
3954
|
},
|
|
3955
|
-
onOverridesConflict:
|
|
3955
|
+
onOverridesConflict: Ye(O).onOverridesConflict
|
|
3956
3956
|
});
|
|
3957
3957
|
}
|
|
3958
3958
|
function Fe(O) {
|
|
3959
3959
|
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);
|
|
3960
3960
|
}
|
|
3961
3961
|
let Ce = !1;
|
|
3962
|
-
function
|
|
3962
|
+
function Ye(O, s = {}) {
|
|
3963
3963
|
return {
|
|
3964
3964
|
...s,
|
|
3965
3965
|
onOverridesConflict: ({ override: o, keep: _ }) => {
|
|
@@ -3988,23 +3988,23 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3988
3988
|
}
|
|
3989
3989
|
};
|
|
3990
3990
|
}
|
|
3991
|
-
return
|
|
3991
|
+
return wt(
|
|
3992
3992
|
n,
|
|
3993
3993
|
(O) => {
|
|
3994
3994
|
l("permissionChanged", O);
|
|
3995
3995
|
},
|
|
3996
3996
|
{ deep: !0 }
|
|
3997
3997
|
), (O, s) => {
|
|
3998
|
-
const o =
|
|
3998
|
+
const o = we("FmIcon"), _ = we("FmBottomSheet"), k = we("FmPopover");
|
|
3999
3999
|
return J(), ie("div", _a, [
|
|
4000
4000
|
ae("div", pa, [
|
|
4001
|
-
ue(
|
|
4001
|
+
ue(Ho, {
|
|
4002
4002
|
"model-value": B.value,
|
|
4003
4003
|
"excluded-subjects": c,
|
|
4004
|
-
"additional-permissions":
|
|
4004
|
+
"additional-permissions": H(T),
|
|
4005
4005
|
"onUpdate:modelValue": ne
|
|
4006
4006
|
}, et({ _: 2 }, [
|
|
4007
|
-
Ee(
|
|
4007
|
+
Ee(D.value, (M) => ({
|
|
4008
4008
|
name: `checkbox-${M.id}-append`,
|
|
4009
4009
|
fn: de(() => [
|
|
4010
4010
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
@@ -4017,14 +4017,14 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4017
4017
|
g.value ? (J(), Ne(_, {
|
|
4018
4018
|
key: 0,
|
|
4019
4019
|
"model-value": fe.value === M,
|
|
4020
|
-
header:
|
|
4020
|
+
header: H(a)("team.memberForm.permissions.conditionTitle", {
|
|
4021
4021
|
context: q(M, P.label).label
|
|
4022
4022
|
}),
|
|
4023
4023
|
"dismiss-away": "",
|
|
4024
4024
|
"z-index": 100,
|
|
4025
4025
|
class: "h-5 flex items-center",
|
|
4026
4026
|
"onUpdate:modelValue": (E) => {
|
|
4027
|
-
fe.value = E ? M : null, E ||
|
|
4027
|
+
fe.value = E ? M : null, E || H(se).clearDraftsForSubject(M);
|
|
4028
4028
|
}
|
|
4029
4029
|
}, {
|
|
4030
4030
|
"bottom-sheet-button": de(() => [
|
|
@@ -4045,9 +4045,9 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4045
4045
|
builders: q(M, P.label).sections.map((E) => E.builder),
|
|
4046
4046
|
subject: M,
|
|
4047
4047
|
"time-zone": F.value,
|
|
4048
|
-
"cover-override":
|
|
4048
|
+
"cover-override": H(ce),
|
|
4049
4049
|
"inherit-mode-for": (E) => K(q(M, P.label), E),
|
|
4050
|
-
"form-value-for": (E) =>
|
|
4050
|
+
"form-value-for": (E) => De(q(M, P.label), E),
|
|
4051
4051
|
"has-changes": Ke(M),
|
|
4052
4052
|
disable: e.disable,
|
|
4053
4053
|
"full-width": !0,
|
|
@@ -4057,14 +4057,14 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4057
4057
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4058
4058
|
]),
|
|
4059
4059
|
_: 2
|
|
4060
|
-
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (J(), Ne(
|
|
4060
|
+
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (J(), Ne(k, {
|
|
4061
4061
|
key: 1,
|
|
4062
4062
|
disabled: e.disable,
|
|
4063
4063
|
"z-index": 100,
|
|
4064
4064
|
"exclude-el-from-click-outside": [ya],
|
|
4065
4065
|
class: "h-5 flex items-center",
|
|
4066
4066
|
onPopoverChanged: (E) => {
|
|
4067
|
-
E ||
|
|
4067
|
+
E || H(se).clearDraftsForSubject(M);
|
|
4068
4068
|
}
|
|
4069
4069
|
}, {
|
|
4070
4070
|
"popover-button": de(() => [
|
|
@@ -4085,12 +4085,12 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4085
4085
|
builders: q(M, P.label).sections.map(($) => $.builder),
|
|
4086
4086
|
subject: M,
|
|
4087
4087
|
"time-zone": F.value,
|
|
4088
|
-
"cover-override":
|
|
4089
|
-
title:
|
|
4088
|
+
"cover-override": H(ce),
|
|
4089
|
+
title: H(a)("team.memberForm.permissions.conditionTitle", {
|
|
4090
4090
|
context: q(M, P.label).label
|
|
4091
4091
|
}),
|
|
4092
4092
|
"inherit-mode-for": ($) => K(q(M, P.label), $),
|
|
4093
|
-
"form-value-for": ($) =>
|
|
4093
|
+
"form-value-for": ($) => De(q(M, P.label), $),
|
|
4094
4094
|
"has-changes": Ke(M),
|
|
4095
4095
|
disable: e.disable,
|
|
4096
4096
|
onUpdateInheritMode: ({ builder: $, mode: le }) => Je(
|
|
@@ -4115,10 +4115,10 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4115
4115
|
]), 1032, ["model-value", "additional-permissions"])
|
|
4116
4116
|
]),
|
|
4117
4117
|
ae("div", ba, [
|
|
4118
|
-
ue(
|
|
4118
|
+
ue(Dn, {
|
|
4119
4119
|
"model-value": b.value,
|
|
4120
4120
|
options: p.value,
|
|
4121
|
-
context:
|
|
4121
|
+
context: H(a)("team.labels.warehouse"),
|
|
4122
4122
|
"onUpdate:modelValue": R
|
|
4123
4123
|
}, et({ _: 2 }, [
|
|
4124
4124
|
Ee(f.value, (M) => ({
|
|
@@ -4130,10 +4130,10 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4130
4130
|
]), 1032, ["model-value", "options", "context"])
|
|
4131
4131
|
]),
|
|
4132
4132
|
ae("div", ga, [
|
|
4133
|
-
ue(
|
|
4133
|
+
ue(Dn, {
|
|
4134
4134
|
"model-value": U.value,
|
|
4135
4135
|
options: m.value,
|
|
4136
|
-
context:
|
|
4136
|
+
context: H(a)("team.labels.restaurant"),
|
|
4137
4137
|
"onUpdate:modelValue": V
|
|
4138
4138
|
}, et({ _: 2 }, [
|
|
4139
4139
|
Ee(h.value, (M) => ({
|
|
@@ -4146,7 +4146,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4146
4146
|
]),
|
|
4147
4147
|
ae("div", Ia, [
|
|
4148
4148
|
ue(ra, {
|
|
4149
|
-
roles:
|
|
4149
|
+
roles: H(x),
|
|
4150
4150
|
"model-value": j.value,
|
|
4151
4151
|
"restaurant-ids": U.value,
|
|
4152
4152
|
"onUpdate:modelValue": W
|