@feedmepos/mf-hrm-portal 2.3.0-dev.30 → 2.3.0-dev.31
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-CaDmeGvQ.js → ApprovalCodeList-CWch1fPp.js} +4 -4
- package/dist/{AuditLogList-hnICcJxN.js → AuditLogList-Dghwxogp.js} +4 -4
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CM3AAsUP.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BrZD73bP.js} +2 -2
- package/dist/{EmployeeList-DjfBIMQV.js → EmployeeList-BSrQTgKS.js} +6 -6
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-CTGlmY6t.js → FormItem.vue_vue_type_script_setup_true_lang-BaoNK72R.js} +1 -1
- package/dist/{GrantUserList-DH1HXfV4.js → GrantUserList-Cqlm7SC8.js} +5 -5
- package/dist/{Main-1GboTunP.js → Main-Cv6emTjo.js} +9 -9
- package/dist/{Main-C4S5bpnK.js → Main-Cy39OsdC.js} +5 -5
- package/dist/{Main-D0o-aQHX.js → Main-GFkUfBG7.js} +2 -2
- package/dist/{PermissionSetList-CSONq6qt.js → PermissionSetList-DckK2K9d.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-fU3Feetb.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CLegdfVG.js} +451 -451
- package/dist/{RoleList-WdgayfhL.js → RoleList-Bfpgb4WK.js} +7 -7
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Bx1P_UAW.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Tqp7ALu_.js} +1 -1
- package/dist/{ScheduleGeneralPage-XUX2-_Vc.js → ScheduleGeneralPage-DpvA2Qmg.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-CECio4Kc.js → ScheduleModal.vue_vue_type_script_setup_true_lang-DgXhOBUA.js} +2 -2
- package/dist/{SchedulePage-LQ7-8VUw.js → SchedulePage-DGBxv7Xl.js} +7 -7
- package/dist/{SchedulePositionPage-DcUbTYV6.js → SchedulePositionPage-CoDH-_GS.js} +3 -3
- package/dist/{SelectFilter-BbkPuYP_.js → SelectFilter-BmPl0nGk.js} +1 -1
- package/dist/{TeamMemberList-BMdMDYBF.js → TeamMemberList-C4sRgPCJ.js} +7 -7
- package/dist/{TimesheetList-B6vZEmgb.js → TimesheetList-BvbGXbQJ.js} +6 -6
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Bna8vHO7.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CjlquA4w.js} +2 -2
- package/dist/{app-DwBKX4e9.js → app-P7IBQlke.js} +8 -8
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-DAKzxOMD.js → dayjs.min-F98FDy4j.js} +1 -1
- package/dist/{employee-GhYyAhwS.js → employee-1Xm80pW8.js} +3 -3
- package/dist/{iteration-Da8377p8.js → iteration-BdSsaLV1.js} +1 -1
- package/dist/{lodash-DChu1GU2.js → lodash-DbhAtFh7.js} +1 -1
- package/dist/{role-CyynUSdG.js → role-BPGfYbnf.js} +1 -1
- package/dist/{rule-Cnn7MV1z.js → rule-C3777WTe.js} +2 -2
- package/dist/{useReportPermissions-B3OMJ4QX.js → useReportPermissions-CW4Tk5tm.js} +3 -3
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { getCurrentInstance as Zt, inject as ur, ref as rt, shallowRef as dr, computed as
|
|
1
|
+
import { getCurrentInstance as Zt, inject as ur, ref as rt, shallowRef as dr, computed as z, watch as Dt, onMounted as xn, onUnmounted as mr, defineComponent as Ae, h as Wn, createVNode as ue, Text as fr, Fragment as ke, resolveComponent as De, 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
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 Xt, a as Cr, b as nn, u as Tr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { u as Or, v as Sr, c as
|
|
8
|
-
import { c as It } from "./iteration-
|
|
5
|
+
import { p as Gn, N as Yn, d as Ir, P as yr, w as Lt, x as Er, y as Nr } from "./rule-C3777WTe.js";
|
|
6
|
+
import { _ as Xt, a as Cr, b as nn, u as Tr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BrZD73bP.js";
|
|
7
|
+
import { u as Or, v as Sr, c as Bn, S as wt, A as tt, d as he, k as rn, O as Lr } from "./app-P7IBQlke.js";
|
|
8
|
+
import { c as It } from "./iteration-BdSsaLV1.js";
|
|
9
9
|
import { r as Ar } from "./string-VNuQNweN.js";
|
|
10
10
|
import { g as Rr, b as kr } from "./restaurant-D2mfKHaH.js";
|
|
11
|
-
import { u as Mr } from "./role-
|
|
11
|
+
import { u as Mr } from "./role-BPGfYbnf.js";
|
|
12
12
|
function Zn(e, t) {
|
|
13
13
|
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
14
14
|
}
|
|
@@ -31,17 +31,17 @@ function sn(e, t) {
|
|
|
31
31
|
* (c) 2024 kazuya kawaguchi
|
|
32
32
|
* Released under the MIT License.
|
|
33
33
|
*/
|
|
34
|
-
const on = typeof window < "u", $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]",
|
|
34
|
+
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);
|
|
35
35
|
let an;
|
|
36
36
|
const Xe = () => an || (an = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : oe());
|
|
37
37
|
function ln(e) {
|
|
38
38
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
39
39
|
}
|
|
40
|
-
const
|
|
40
|
+
const Vr = Object.prototype.hasOwnProperty;
|
|
41
41
|
function Le(e, t) {
|
|
42
|
-
return
|
|
42
|
+
return Vr.call(e, t);
|
|
43
43
|
}
|
|
44
|
-
const be = Array.isArray, me = (e) => typeof e == "function",
|
|
44
|
+
const be = Array.isArray, me = (e) => typeof e == "function", Y = (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), Xn = Object.prototype.toString, Ht = (e) => Xn.call(e), ee = (e) => Ht(e) === "[object Object]", Wr = (e) => e == null ? "" : be(e) || ee(e) && e.toString === Xn ? JSON.stringify(e, null, 2) : String(e);
|
|
45
45
|
function $t(e, t = "") {
|
|
46
46
|
return e.reduce((n, r, l) => l === 0 ? n + r : n + t + r, "");
|
|
47
47
|
}
|
|
@@ -49,7 +49,7 @@ function Gr(e, t) {
|
|
|
49
49
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
50
50
|
}
|
|
51
51
|
const ft = (e) => !te(e) || be(e);
|
|
52
|
-
function
|
|
52
|
+
function yt(e, t) {
|
|
53
53
|
if (ft(e) || ft(t))
|
|
54
54
|
throw new Error("Invalid value");
|
|
55
55
|
const n = [{ src: e, des: t }];
|
|
@@ -60,7 +60,7 @@ function Et(e, t) {
|
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Yr(e, t, n) {
|
|
64
64
|
return { line: e, column: t, offset: n };
|
|
65
65
|
}
|
|
66
66
|
function Ft(e, t, n) {
|
|
@@ -83,7 +83,7 @@ const re = {
|
|
|
83
83
|
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
84
84
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
85
85
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
86
|
-
},
|
|
86
|
+
}, Br = 17;
|
|
87
87
|
function Tt(e, t, n = {}) {
|
|
88
88
|
const { domain: r, messages: l, args: a } = n, d = e, u = new SyntaxError(String(d));
|
|
89
89
|
return u.code = e, t && (u.location = t), u.domain = r, u;
|
|
@@ -91,14 +91,14 @@ function Tt(e, t, n = {}) {
|
|
|
91
91
|
function Zr(e) {
|
|
92
92
|
throw e;
|
|
93
93
|
}
|
|
94
|
-
const Pe = " ", Xr = "\r",
|
|
94
|
+
const Pe = " ", Xr = "\r", ye = `
|
|
95
95
|
`, Hr = "\u2028", $r = "\u2029";
|
|
96
96
|
function Jr(e) {
|
|
97
97
|
const t = e;
|
|
98
98
|
let n = 0, r = 1, l = 1, a = 0;
|
|
99
|
-
const d = (p) => t[p] === Xr && t[p + 1] ===
|
|
99
|
+
const d = (p) => t[p] === Xr && 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, D = () => a, A = (p) => d(p) || i(p) || g(p) ? ye : t[p], w = () => A(n), f = () => A(n + a);
|
|
100
100
|
function h() {
|
|
101
|
-
return a = 0,
|
|
101
|
+
return a = 0, y(n) && (r++, l = 0), d(n) && n++, n++, l++, t[n];
|
|
102
102
|
}
|
|
103
103
|
function S() {
|
|
104
104
|
return d(n + a) && a++, a++, t[n + a];
|
|
@@ -130,9 +130,9 @@ function Jr(e) {
|
|
|
130
130
|
skipToPeek: I
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
const xe = void 0,
|
|
133
|
+
const xe = void 0, Kr = ".", cn = "'", zr = "tokenizer";
|
|
134
134
|
function Qr(e, t = {}) {
|
|
135
|
-
const n = t.location !== !1, r = Jr(e), l = () => r.index(), a = () =>
|
|
135
|
+
const n = t.location !== !1, r = Jr(e), l = () => r.index(), a = () => Yr(r.line(), r.column(), r.index()), d = a(), u = l(), i = {
|
|
136
136
|
currentType: 13,
|
|
137
137
|
offset: u,
|
|
138
138
|
startLoc: d,
|
|
@@ -144,15 +144,15 @@ function Qr(e, t = {}) {
|
|
|
144
144
|
braceNest: 0,
|
|
145
145
|
inLinked: !1,
|
|
146
146
|
text: ""
|
|
147
|
-
}, g = () => i, { onError:
|
|
147
|
+
}, g = () => i, { onError: y } = t;
|
|
148
148
|
function T(s, o, _, ...R) {
|
|
149
149
|
const M = g();
|
|
150
|
-
if (o.column += _, o.offset += _,
|
|
150
|
+
if (o.column += _, o.offset += _, y) {
|
|
151
151
|
const P = n ? Ft(M.startLoc, o) : null, v = Tt(s, P, {
|
|
152
|
-
domain:
|
|
152
|
+
domain: zr,
|
|
153
153
|
args: R
|
|
154
154
|
});
|
|
155
|
-
|
|
155
|
+
y(v);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
function N(s, o, _) {
|
|
@@ -170,7 +170,7 @@ function Qr(e, t = {}) {
|
|
|
170
170
|
}
|
|
171
171
|
function A(s) {
|
|
172
172
|
let o = "";
|
|
173
|
-
for (; s.currentPeek() === Pe || s.currentPeek() ===
|
|
173
|
+
for (; s.currentPeek() === Pe || s.currentPeek() === ye; )
|
|
174
174
|
o += s.currentPeek(), s.peek();
|
|
175
175
|
return o;
|
|
176
176
|
}
|
|
@@ -246,7 +246,7 @@ function Qr(e, t = {}) {
|
|
|
246
246
|
return !1;
|
|
247
247
|
const R = () => {
|
|
248
248
|
const P = s.currentPeek();
|
|
249
|
-
return P === "{" ? f(s.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P ===
|
|
249
|
+
return P === "{" ? f(s.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P === ye ? (s.peek(), R()) : x(s, !1);
|
|
250
250
|
}, M = R();
|
|
251
251
|
return s.resetPeek(), M;
|
|
252
252
|
}
|
|
@@ -258,7 +258,7 @@ function Qr(e, t = {}) {
|
|
|
258
258
|
function x(s, o = !0) {
|
|
259
259
|
const _ = (M = !1, P = "") => {
|
|
260
260
|
const v = s.currentPeek();
|
|
261
|
-
return v === "{" || v === "@" || !v ? M : v === "|" ? !(P === Pe || P ===
|
|
261
|
+
return v === "{" || v === "@" || !v ? M : v === "|" ? !(P === Pe || P === ye) : v === Pe ? (s.peek(), _(!0, Pe)) : v === ye ? (s.peek(), _(!0, ye)) : !0;
|
|
262
262
|
}, R = _();
|
|
263
263
|
return o && s.resetPeek(), R;
|
|
264
264
|
}
|
|
@@ -277,7 +277,7 @@ function Qr(e, t = {}) {
|
|
|
277
277
|
function U(s) {
|
|
278
278
|
return m(s, C);
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function V(s) {
|
|
281
281
|
const o = s.charCodeAt(0);
|
|
282
282
|
return o >= 97 && o <= 122 || // a-z
|
|
283
283
|
o >= 65 && o <= 90 || // A-Z
|
|
@@ -287,27 +287,27 @@ function Qr(e, t = {}) {
|
|
|
287
287
|
o === 45;
|
|
288
288
|
}
|
|
289
289
|
function j(s) {
|
|
290
|
-
return m(s,
|
|
290
|
+
return m(s, V);
|
|
291
291
|
}
|
|
292
292
|
function G(s) {
|
|
293
293
|
const o = s.charCodeAt(0);
|
|
294
294
|
return o >= 48 && o <= 57;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function W(s) {
|
|
297
297
|
return m(s, G);
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function B(s) {
|
|
300
300
|
const o = s.charCodeAt(0);
|
|
301
301
|
return o >= 48 && o <= 57 || // 0-9
|
|
302
302
|
o >= 65 && o <= 70 || // A-F
|
|
303
303
|
o >= 97 && o <= 102;
|
|
304
304
|
}
|
|
305
305
|
function Z(s) {
|
|
306
|
-
return m(s,
|
|
306
|
+
return m(s, B);
|
|
307
307
|
}
|
|
308
308
|
function ne(s) {
|
|
309
309
|
let o = "", _ = "";
|
|
310
|
-
for (; o =
|
|
310
|
+
for (; o = W(s); )
|
|
311
311
|
_ += o;
|
|
312
312
|
return _;
|
|
313
313
|
}
|
|
@@ -317,7 +317,7 @@ function Qr(e, t = {}) {
|
|
|
317
317
|
const _ = s.currentChar();
|
|
318
318
|
if (_ === "{" || _ === "}" || _ === "@" || _ === "|" || !_)
|
|
319
319
|
break;
|
|
320
|
-
if (_ === Pe || _ ===
|
|
320
|
+
if (_ === Pe || _ === ye)
|
|
321
321
|
if (x(s))
|
|
322
322
|
o += _, s.next();
|
|
323
323
|
else {
|
|
@@ -343,7 +343,7 @@ function Qr(e, t = {}) {
|
|
|
343
343
|
return s.currentChar() === "-" ? (s.next(), o += `-${ne(s)}`) : o += ne(s), s.currentChar() === xe && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
344
344
|
}
|
|
345
345
|
function se(s) {
|
|
346
|
-
return s !== cn && s !==
|
|
346
|
+
return s !== cn && s !== ye;
|
|
347
347
|
}
|
|
348
348
|
function fe(s) {
|
|
349
349
|
w(s), D(s, "'");
|
|
@@ -351,7 +351,7 @@ function Qr(e, t = {}) {
|
|
|
351
351
|
for (; o = m(s, se); )
|
|
352
352
|
o === "\\" ? _ += q(s) : _ += o;
|
|
353
353
|
const R = s.currentChar();
|
|
354
|
-
return R ===
|
|
354
|
+
return R === ye || R === xe ? (T(re.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), R === ye && (s.next(), D(s, "'")), _) : (D(s, "'"), _);
|
|
355
355
|
}
|
|
356
356
|
function q(s) {
|
|
357
357
|
const o = s.currentChar();
|
|
@@ -380,13 +380,13 @@ function Qr(e, t = {}) {
|
|
|
380
380
|
}
|
|
381
381
|
return `\\${o}${R}`;
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
return s !== "{" && s !== "}" && s !== Pe && s !==
|
|
383
|
+
function K(s) {
|
|
384
|
+
return s !== "{" && s !== "}" && s !== Pe && s !== ye;
|
|
385
385
|
}
|
|
386
386
|
function pe(s) {
|
|
387
387
|
w(s);
|
|
388
388
|
let o = "", _ = "";
|
|
389
|
-
for (; o = m(s,
|
|
389
|
+
for (; o = m(s, K); )
|
|
390
390
|
_ += o;
|
|
391
391
|
return _;
|
|
392
392
|
}
|
|
@@ -396,14 +396,14 @@ function Qr(e, t = {}) {
|
|
|
396
396
|
_ += o;
|
|
397
397
|
return _;
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function Ke(s) {
|
|
400
400
|
const o = (_) => {
|
|
401
401
|
const R = s.currentChar();
|
|
402
402
|
return R === "{" || R === "@" || R === "|" || R === "(" || R === ")" || !R || R === Pe ? _ : (_ += R, s.next(), o(_));
|
|
403
403
|
};
|
|
404
404
|
return o("");
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function Ve(s) {
|
|
407
407
|
w(s);
|
|
408
408
|
const o = D(
|
|
409
409
|
s,
|
|
@@ -434,9 +434,9 @@ function Qr(e, t = {}) {
|
|
|
434
434
|
default: {
|
|
435
435
|
let M = !0, P = !0, v = !0;
|
|
436
436
|
if (X(s))
|
|
437
|
-
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = N(o, 1,
|
|
437
|
+
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = N(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
438
438
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
439
|
-
return T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0,
|
|
439
|
+
return T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, Be(s, o);
|
|
440
440
|
if (M = S(s, o))
|
|
441
441
|
return _ = N(o, 4, _e(s)), w(s), _;
|
|
442
442
|
if (P = c(s, o))
|
|
@@ -454,7 +454,7 @@ function Qr(e, t = {}) {
|
|
|
454
454
|
const { currentType: _ } = o;
|
|
455
455
|
let R = null;
|
|
456
456
|
const M = s.currentChar();
|
|
457
|
-
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M ===
|
|
457
|
+
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M === ye || M === Pe) && T(re.INVALID_LINKED_FORMAT, a(), 0), M) {
|
|
458
458
|
case "@":
|
|
459
459
|
return s.next(), R = N(
|
|
460
460
|
o,
|
|
@@ -477,10 +477,10 @@ function Qr(e, t = {}) {
|
|
|
477
477
|
/* TokenChars.LinkedDelimiter */
|
|
478
478
|
);
|
|
479
479
|
default:
|
|
480
|
-
return X(s) ? (R = N(o, 1,
|
|
480
|
+
return X(s) ? (R = N(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, R) : I(s, o) || k(s, o) ? (w(s), Ce(s, o)) : p(s, o) ? (w(s), N(o, 11, Je(s))) : L(s, o) ? (w(s), M === "{" ? Fe(s, o) || R : N(o, 10, Ke(s))) : (_ === 7 && T(re.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, Be(s, o));
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function Be(s, o) {
|
|
484
484
|
let _ = {
|
|
485
485
|
type: 13
|
|
486
486
|
/* TokenTypes.EOF */
|
|
@@ -503,7 +503,7 @@ function Qr(e, t = {}) {
|
|
|
503
503
|
return Ce(s, o) || F(o);
|
|
504
504
|
default: {
|
|
505
505
|
if (X(s))
|
|
506
|
-
return _ = N(o, 1,
|
|
506
|
+
return _ = N(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
507
507
|
if (x(s))
|
|
508
508
|
return N(o, 0, Q(s));
|
|
509
509
|
break;
|
|
@@ -517,7 +517,7 @@ function Qr(e, t = {}) {
|
|
|
517
517
|
i,
|
|
518
518
|
13
|
|
519
519
|
/* TokenTypes.EOF */
|
|
520
|
-
) :
|
|
520
|
+
) : Be(r, i);
|
|
521
521
|
}
|
|
522
522
|
return {
|
|
523
523
|
nextToken: O,
|
|
@@ -574,7 +574,7 @@ function ns(e = {}) {
|
|
|
574
574
|
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(9, c, b);
|
|
575
575
|
return I.value = h.replace(es, ts), f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function y(f) {
|
|
578
578
|
const h = f.nextToken(), S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(8, c, b);
|
|
579
579
|
return h.type !== 11 ? (r(f, re.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), I.value = "", a(I, c, b), {
|
|
580
580
|
nextConsumeToken: h,
|
|
@@ -591,7 +591,7 @@ function ns(e = {}) {
|
|
|
591
591
|
const h = f.context(), S = l(6, h.offset, h.startLoc);
|
|
592
592
|
let c = f.nextToken();
|
|
593
593
|
if (c.type === 8) {
|
|
594
|
-
const b =
|
|
594
|
+
const b = y(f);
|
|
595
595
|
S.modifier = b.node, c = b.nextConsumeToken || f.nextToken();
|
|
596
596
|
}
|
|
597
597
|
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), c = f.nextToken(), c.type === 2 && (c = f.nextToken()), c.type) {
|
|
@@ -830,7 +830,7 @@ function as(e, t) {
|
|
|
830
830
|
const f = w ? r : "";
|
|
831
831
|
i(l ? f + " ".repeat(A) : f);
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function y(A = !0) {
|
|
834
834
|
const w = ++d.indentLevel;
|
|
835
835
|
A && g(w);
|
|
836
836
|
}
|
|
@@ -844,7 +844,7 @@ function as(e, t) {
|
|
|
844
844
|
return {
|
|
845
845
|
context: u,
|
|
846
846
|
push: i,
|
|
847
|
-
indent:
|
|
847
|
+
indent: y,
|
|
848
848
|
deindent: T,
|
|
849
849
|
newline: N,
|
|
850
850
|
helper: (A) => `_${A}`,
|
|
@@ -933,7 +933,7 @@ function st(e, t) {
|
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
935
|
const ds = (e, t = {}) => {
|
|
936
|
-
const n =
|
|
936
|
+
const n = Y(t.mode) ? t.mode : "normal", r = Y(t.filename) ? t.filename : "message.intl";
|
|
937
937
|
t.sourceMap;
|
|
938
938
|
const l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
939
939
|
`, a = t.needIndent ? t.needIndent : n !== "arrow", d = e.helpers || [], u = as(e, {
|
|
@@ -941,7 +941,7 @@ const ds = (e, t = {}) => {
|
|
|
941
941
|
breakLineCode: l,
|
|
942
942
|
needIndent: a
|
|
943
943
|
});
|
|
944
|
-
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), d.length > 0 && (u.push(`const { ${$t(d.map((
|
|
944
|
+
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), d.length > 0 && (u.push(`const { ${$t(d.map((y) => `${y}: _${y}`), ", ")} } = ctx`), u.newline()), u.push("return "), st(u, e), u.deindent(a), u.push("}"), delete e.helpers;
|
|
945
945
|
const { code: i, map: g } = u.context();
|
|
946
946
|
return {
|
|
947
947
|
ast: e,
|
|
@@ -968,7 +968,7 @@ function ps(e, t) {
|
|
|
968
968
|
0
|
|
969
969
|
/* NodeTypes.Resource */
|
|
970
970
|
);
|
|
971
|
-
if (
|
|
971
|
+
if (Kt(n) === 1) {
|
|
972
972
|
const a = gs(n);
|
|
973
973
|
return e.plural(a.reduce((d, u) => [
|
|
974
974
|
...d,
|
|
@@ -986,7 +986,7 @@ function gs(e) {
|
|
|
986
986
|
return Ge(e, bs, []);
|
|
987
987
|
}
|
|
988
988
|
function mn(e, t) {
|
|
989
|
-
const n =
|
|
989
|
+
const n = ys(t);
|
|
990
990
|
if (n != null)
|
|
991
991
|
return e.type === "text" ? n : e.normalize([n]);
|
|
992
992
|
{
|
|
@@ -995,15 +995,15 @@ function mn(e, t) {
|
|
|
995
995
|
}
|
|
996
996
|
}
|
|
997
997
|
const Is = ["s", "static"];
|
|
998
|
-
function
|
|
998
|
+
function ys(e) {
|
|
999
999
|
return Ge(e, Is);
|
|
1000
1000
|
}
|
|
1001
|
-
const
|
|
1001
|
+
const Es = ["i", "items"];
|
|
1002
1002
|
function Ns(e) {
|
|
1003
|
-
return Ge(e,
|
|
1003
|
+
return Ge(e, Es, []);
|
|
1004
1004
|
}
|
|
1005
1005
|
function Pt(e, t) {
|
|
1006
|
-
const n =
|
|
1006
|
+
const n = Kt(t);
|
|
1007
1007
|
switch (n) {
|
|
1008
1008
|
case 3:
|
|
1009
1009
|
return _t(t, n);
|
|
@@ -1038,7 +1038,7 @@ function Pt(e, t) {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
1040
|
const Cs = ["t", "type"];
|
|
1041
|
-
function
|
|
1041
|
+
function Kt(e) {
|
|
1042
1042
|
return Ge(e, Cs);
|
|
1043
1043
|
}
|
|
1044
1044
|
const Ts = ["v", "value"];
|
|
@@ -1076,7 +1076,7 @@ function it(e) {
|
|
|
1076
1076
|
const Rs = (e) => e;
|
|
1077
1077
|
let pt = oe();
|
|
1078
1078
|
function ot(e) {
|
|
1079
|
-
return te(e) &&
|
|
1079
|
+
return te(e) && Kt(e) === 0 && (Le(e, "b") || Le(e, "body"));
|
|
1080
1080
|
}
|
|
1081
1081
|
function ks(e, t = {}) {
|
|
1082
1082
|
let n = !1;
|
|
@@ -1087,7 +1087,7 @@ function ks(e, t = {}) {
|
|
|
1087
1087
|
}
|
|
1088
1088
|
// @__NO_SIDE_EFFECTS__
|
|
1089
1089
|
function Ms(e, t) {
|
|
1090
|
-
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ &&
|
|
1090
|
+
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && Y(e)) {
|
|
1091
1091
|
ve(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1092
1092
|
const r = (t.onCacheKey || Rs)(e), l = pt[r];
|
|
1093
1093
|
if (l)
|
|
@@ -1124,7 +1124,7 @@ function Ps(e) {
|
|
|
1124
1124
|
return (t) => ct && ct.emit(e, t);
|
|
1125
1125
|
}
|
|
1126
1126
|
const je = {
|
|
1127
|
-
INVALID_ARGUMENT:
|
|
1127
|
+
INVALID_ARGUMENT: Br,
|
|
1128
1128
|
// 17
|
|
1129
1129
|
INVALID_DATE_ARGUMENT: 18,
|
|
1130
1130
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1135,12 +1135,12 @@ const je = {
|
|
|
1135
1135
|
function Ue(e) {
|
|
1136
1136
|
return Tt(e, null, void 0);
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1138
|
+
function zt(e, t) {
|
|
1139
1139
|
return t.locale != null ? fn(t.locale) : fn(e.locale);
|
|
1140
1140
|
}
|
|
1141
1141
|
let Rt;
|
|
1142
1142
|
function fn(e) {
|
|
1143
|
-
if (
|
|
1143
|
+
if (Y(e))
|
|
1144
1144
|
return e;
|
|
1145
1145
|
if (me(e)) {
|
|
1146
1146
|
if (e.resolvedOnce && Rt != null)
|
|
@@ -1158,11 +1158,11 @@ function fn(e) {
|
|
|
1158
1158
|
function Us(e, t, n) {
|
|
1159
1159
|
return [.../* @__PURE__ */ new Set([
|
|
1160
1160
|
n,
|
|
1161
|
-
...be(t) ? t : te(t) ? Object.keys(t) :
|
|
1161
|
+
...be(t) ? t : te(t) ? Object.keys(t) : Y(t) ? [t] : [n]
|
|
1162
1162
|
])];
|
|
1163
1163
|
}
|
|
1164
1164
|
function Hn(e, t, n) {
|
|
1165
|
-
const r =
|
|
1165
|
+
const r = Y(n) ? n : Nt, l = e;
|
|
1166
1166
|
l.__localeChainCache || (l.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1167
1167
|
let a = l.__localeChainCache.get(r);
|
|
1168
1168
|
if (!a) {
|
|
@@ -1171,7 +1171,7 @@ function Hn(e, t, n) {
|
|
|
1171
1171
|
for (; be(d); )
|
|
1172
1172
|
d = _n(a, d, t);
|
|
1173
1173
|
const u = be(t) || !ee(t) ? t : t.default ? t.default : null;
|
|
1174
|
-
d =
|
|
1174
|
+
d = Y(u) ? [u] : u, be(d) && _n(a, d, !1), l.__localeChainCache.set(r, a);
|
|
1175
1175
|
}
|
|
1176
1176
|
return a;
|
|
1177
1177
|
}
|
|
@@ -1179,11 +1179,11 @@ function _n(e, t, n) {
|
|
|
1179
1179
|
let r = !0;
|
|
1180
1180
|
for (let l = 0; l < t.length && ve(r); l++) {
|
|
1181
1181
|
const a = t[l];
|
|
1182
|
-
|
|
1182
|
+
Y(a) && (r = Vs(e, t[l], n));
|
|
1183
1183
|
}
|
|
1184
1184
|
return r;
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1186
|
+
function Vs(e, t, n) {
|
|
1187
1187
|
let r;
|
|
1188
1188
|
const l = t.split("-");
|
|
1189
1189
|
do {
|
|
@@ -1201,8 +1201,8 @@ function xs(e, t, n) {
|
|
|
1201
1201
|
}
|
|
1202
1202
|
return r;
|
|
1203
1203
|
}
|
|
1204
|
-
const
|
|
1205
|
-
|
|
1204
|
+
const Ye = [];
|
|
1205
|
+
Ye[
|
|
1206
1206
|
0
|
|
1207
1207
|
/* States.BEFORE_PATH */
|
|
1208
1208
|
] = {
|
|
@@ -1224,7 +1224,7 @@ Be[
|
|
|
1224
1224
|
/* States.AFTER_PATH */
|
|
1225
1225
|
]
|
|
1226
1226
|
};
|
|
1227
|
-
|
|
1227
|
+
Ye[
|
|
1228
1228
|
1
|
|
1229
1229
|
/* States.IN_PATH */
|
|
1230
1230
|
] = {
|
|
@@ -1245,7 +1245,7 @@ Be[
|
|
|
1245
1245
|
/* States.AFTER_PATH */
|
|
1246
1246
|
]
|
|
1247
1247
|
};
|
|
1248
|
-
|
|
1248
|
+
Ye[
|
|
1249
1249
|
2
|
|
1250
1250
|
/* States.BEFORE_IDENT */
|
|
1251
1251
|
] = {
|
|
@@ -1264,7 +1264,7 @@ Be[
|
|
|
1264
1264
|
/* Actions.APPEND */
|
|
1265
1265
|
]
|
|
1266
1266
|
};
|
|
1267
|
-
|
|
1267
|
+
Ye[
|
|
1268
1268
|
3
|
|
1269
1269
|
/* States.IN_IDENT */
|
|
1270
1270
|
] = {
|
|
@@ -1299,7 +1299,7 @@ Be[
|
|
|
1299
1299
|
/* Actions.PUSH */
|
|
1300
1300
|
]
|
|
1301
1301
|
};
|
|
1302
|
-
|
|
1302
|
+
Ye[
|
|
1303
1303
|
4
|
|
1304
1304
|
/* States.IN_SUB_PATH */
|
|
1305
1305
|
] = {
|
|
@@ -1330,7 +1330,7 @@ Be[
|
|
|
1330
1330
|
/* Actions.APPEND */
|
|
1331
1331
|
]
|
|
1332
1332
|
};
|
|
1333
|
-
|
|
1333
|
+
Ye[
|
|
1334
1334
|
5
|
|
1335
1335
|
/* States.IN_SINGLE_QUOTE */
|
|
1336
1336
|
] = {
|
|
@@ -1346,7 +1346,7 @@ Be[
|
|
|
1346
1346
|
/* Actions.APPEND */
|
|
1347
1347
|
]
|
|
1348
1348
|
};
|
|
1349
|
-
|
|
1349
|
+
Ye[
|
|
1350
1350
|
6
|
|
1351
1351
|
/* States.IN_DOUBLE_QUOTE */
|
|
1352
1352
|
] = {
|
|
@@ -1362,15 +1362,15 @@ Be[
|
|
|
1362
1362
|
/* Actions.APPEND */
|
|
1363
1363
|
]
|
|
1364
1364
|
};
|
|
1365
|
-
const
|
|
1365
|
+
const Ws = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1366
1366
|
function Gs(e) {
|
|
1367
|
-
return
|
|
1367
|
+
return Ws.test(e);
|
|
1368
1368
|
}
|
|
1369
|
-
function
|
|
1369
|
+
function Ys(e) {
|
|
1370
1370
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1371
1371
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function Bs(e) {
|
|
1374
1374
|
if (e == null)
|
|
1375
1375
|
return "o";
|
|
1376
1376
|
switch (e.charCodeAt(0)) {
|
|
@@ -1397,11 +1397,11 @@ function Ys(e) {
|
|
|
1397
1397
|
}
|
|
1398
1398
|
function Zs(e) {
|
|
1399
1399
|
const t = e.trim();
|
|
1400
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Gs(t) ?
|
|
1400
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Gs(t) ? Ys(t) : "*" + t;
|
|
1401
1401
|
}
|
|
1402
1402
|
function Xs(e) {
|
|
1403
1403
|
const t = [];
|
|
1404
|
-
let n = -1, r = 0, l = 0, a, d, u, i, g,
|
|
1404
|
+
let n = -1, r = 0, l = 0, a, d, u, i, g, y, T;
|
|
1405
1405
|
const N = [];
|
|
1406
1406
|
N[
|
|
1407
1407
|
0
|
|
@@ -1449,7 +1449,7 @@ function Xs(e) {
|
|
|
1449
1449
|
}
|
|
1450
1450
|
for (; r !== null; )
|
|
1451
1451
|
if (n++, a = e[n], !(a === "\\" && F())) {
|
|
1452
|
-
if (i =
|
|
1452
|
+
if (i = Bs(a), T = Ye[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))))
|
|
1453
1453
|
return;
|
|
1454
1454
|
if (r === 7)
|
|
1455
1455
|
return t;
|
|
@@ -1476,36 +1476,36 @@ function $s(e, t) {
|
|
|
1476
1476
|
return l;
|
|
1477
1477
|
}
|
|
1478
1478
|
const Js = "10.0.5", Ot = -1, Nt = "en-US", vn = "", hn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1479
|
-
function
|
|
1479
|
+
function Ks() {
|
|
1480
1480
|
return {
|
|
1481
|
-
upper: (e, t) => t === "text" &&
|
|
1482
|
-
lower: (e, t) => t === "text" &&
|
|
1483
|
-
capitalize: (e, t) => t === "text" &&
|
|
1481
|
+
upper: (e, t) => t === "text" && Y(e) ? e.toUpperCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1482
|
+
lower: (e, t) => t === "text" && Y(e) ? e.toLowerCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1483
|
+
capitalize: (e, t) => t === "text" && Y(e) ? hn(e) : t === "vnode" && te(e) && "__v_isVNode" in e ? hn(e.children) : e
|
|
1484
1484
|
};
|
|
1485
1485
|
}
|
|
1486
1486
|
let $n;
|
|
1487
|
-
function
|
|
1487
|
+
function zs(e) {
|
|
1488
1488
|
$n = e;
|
|
1489
1489
|
}
|
|
1490
1490
|
let Jn;
|
|
1491
1491
|
function Qs(e) {
|
|
1492
1492
|
Jn = e;
|
|
1493
1493
|
}
|
|
1494
|
-
let
|
|
1494
|
+
let Kn;
|
|
1495
1495
|
function qs(e) {
|
|
1496
|
-
|
|
1496
|
+
Kn = e;
|
|
1497
1497
|
}
|
|
1498
|
-
let
|
|
1498
|
+
let zn = null;
|
|
1499
1499
|
const eo = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1500
|
-
|
|
1501
|
-
}, to = /* @__NO_SIDE_EFFECTS__ */ () =>
|
|
1500
|
+
zn = e;
|
|
1501
|
+
}, to = /* @__NO_SIDE_EFFECTS__ */ () => zn;
|
|
1502
1502
|
let Qn = null;
|
|
1503
1503
|
const bn = (e) => {
|
|
1504
1504
|
Qn = e;
|
|
1505
1505
|
}, no = () => Qn;
|
|
1506
1506
|
let gn = 0;
|
|
1507
1507
|
function ro(e = {}) {
|
|
1508
|
-
const t = me(e.onWarn) ? e.onWarn : Gr, n =
|
|
1508
|
+
const t = me(e.onWarn) ? e.onWarn : Gr, n = Y(e.version) ? e.version : Js, r = Y(e.locale) || me(e.locale) ? e.locale : Nt, l = me(r) ? Nt : r, a = be(e.fallbackLocale) || ee(e.fallbackLocale) || Y(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, d = ee(e.messages) ? e.messages : kt(l), u = ee(e.datetimeFormats) ? e.datetimeFormats : kt(l), i = ee(e.numberFormats) ? e.numberFormats : kt(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, D = !!e.fallbackFormat, A = !!e.unresolving, w = 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, k = e, L = te(k.__datetimeFormatters) ? k.__datetimeFormatters : /* @__PURE__ */ new Map(), X = te(k.__numberFormatters) ? k.__numberFormatters : /* @__PURE__ */ new Map(), x = te(k.__meta) ? k.__meta : {};
|
|
1509
1509
|
gn++;
|
|
1510
1510
|
const m = {
|
|
1511
1511
|
version: n,
|
|
@@ -1514,7 +1514,7 @@ function ro(e = {}) {
|
|
|
1514
1514
|
fallbackLocale: a,
|
|
1515
1515
|
messages: d,
|
|
1516
1516
|
modifiers: g,
|
|
1517
|
-
pluralRules:
|
|
1517
|
+
pluralRules: y,
|
|
1518
1518
|
missing: T,
|
|
1519
1519
|
missingWarn: N,
|
|
1520
1520
|
fallbackWarn: F,
|
|
@@ -1538,7 +1538,7 @@ function Qt(e, t, n, r, l) {
|
|
|
1538
1538
|
const { missing: a, onWarn: d } = e;
|
|
1539
1539
|
if (a !== null) {
|
|
1540
1540
|
const u = a(e, n, t, l);
|
|
1541
|
-
return
|
|
1541
|
+
return Y(u) ? u : t;
|
|
1542
1542
|
} else
|
|
1543
1543
|
return t;
|
|
1544
1544
|
}
|
|
@@ -1559,21 +1559,21 @@ function oo(e, t) {
|
|
|
1559
1559
|
return !1;
|
|
1560
1560
|
}
|
|
1561
1561
|
function In(e, ...t) {
|
|
1562
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __datetimeFormatters: u } = e, [i, g,
|
|
1563
|
-
ve(
|
|
1564
|
-
const F = !!
|
|
1562
|
+
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;
|
|
1563
|
+
ve(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1564
|
+
const F = !!y.part, D = zt(e, y), A = d(
|
|
1565
1565
|
e,
|
|
1566
1566
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1567
1567
|
l,
|
|
1568
1568
|
D
|
|
1569
1569
|
);
|
|
1570
|
-
if (!
|
|
1570
|
+
if (!Y(i) || i === "")
|
|
1571
1571
|
return new Intl.DateTimeFormat(D, T).format(g);
|
|
1572
1572
|
let w = {}, f, h = null;
|
|
1573
1573
|
const S = "datetime format";
|
|
1574
1574
|
for (let I = 0; I < A.length && (f = A[I], w = n[f] || {}, h = w[i], !ee(h)); I++)
|
|
1575
1575
|
Qt(e, i, f, N, S);
|
|
1576
|
-
if (!ee(h) || !
|
|
1576
|
+
if (!ee(h) || !Y(f))
|
|
1577
1577
|
return r ? Ot : i;
|
|
1578
1578
|
let c = `${f}__${i}`;
|
|
1579
1579
|
Ct(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
@@ -1605,7 +1605,7 @@ const qn = [
|
|
|
1605
1605
|
function jt(...e) {
|
|
1606
1606
|
const [t, n, r, l] = e, a = oe();
|
|
1607
1607
|
let d = oe(), u;
|
|
1608
|
-
if (
|
|
1608
|
+
if (Y(t)) {
|
|
1609
1609
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1610
1610
|
if (!i)
|
|
1611
1611
|
throw Ue(je.INVALID_ISO_DATE_ARGUMENT);
|
|
@@ -1624,33 +1624,33 @@ function jt(...e) {
|
|
|
1624
1624
|
u = t;
|
|
1625
1625
|
else
|
|
1626
1626
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1627
|
-
return
|
|
1627
|
+
return Y(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1628
1628
|
qn.includes(i) ? d[i] = n[i] : a[i] = n[i];
|
|
1629
|
-
}),
|
|
1629
|
+
}), Y(r) ? a.locale = r : ee(r) && (d = r), ee(l) && (d = l), [a.key || "", u, a, d];
|
|
1630
1630
|
}
|
|
1631
|
-
function
|
|
1631
|
+
function yn(e, t, n) {
|
|
1632
1632
|
const r = e;
|
|
1633
1633
|
for (const l in n) {
|
|
1634
1634
|
const a = `${t}__${l}`;
|
|
1635
1635
|
r.__datetimeFormatters.has(a) && r.__datetimeFormatters.delete(a);
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
1638
|
-
function
|
|
1639
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __numberFormatters: u } = e, [i, g,
|
|
1640
|
-
ve(
|
|
1641
|
-
const F = !!
|
|
1638
|
+
function En(e, ...t) {
|
|
1639
|
+
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;
|
|
1640
|
+
ve(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1641
|
+
const F = !!y.part, D = zt(e, y), A = d(
|
|
1642
1642
|
e,
|
|
1643
1643
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1644
1644
|
l,
|
|
1645
1645
|
D
|
|
1646
1646
|
);
|
|
1647
|
-
if (!
|
|
1647
|
+
if (!Y(i) || i === "")
|
|
1648
1648
|
return new Intl.NumberFormat(D, T).format(g);
|
|
1649
1649
|
let w = {}, f, h = null;
|
|
1650
1650
|
const S = "number format";
|
|
1651
1651
|
for (let I = 0; I < A.length && (f = A[I], w = n[f] || {}, h = w[i], !ee(h)); I++)
|
|
1652
1652
|
Qt(e, i, f, N, S);
|
|
1653
|
-
if (!ee(h) || !
|
|
1653
|
+
if (!ee(h) || !Y(f))
|
|
1654
1654
|
return r ? Ot : i;
|
|
1655
1655
|
let c = `${f}__${i}`;
|
|
1656
1656
|
Ct(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
@@ -1685,9 +1685,9 @@ function Ut(...e) {
|
|
|
1685
1685
|
if (!ge(t))
|
|
1686
1686
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1687
1687
|
const u = t;
|
|
1688
|
-
return
|
|
1688
|
+
return Y(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1689
1689
|
er.includes(i) ? d[i] = n[i] : a[i] = n[i];
|
|
1690
|
-
}),
|
|
1690
|
+
}), Y(r) ? a.locale = r : ee(r) && (d = r), ee(l) && (d = l), [a.key || "", u, a, d];
|
|
1691
1691
|
}
|
|
1692
1692
|
function Nn(e, t, n) {
|
|
1693
1693
|
const r = e;
|
|
@@ -1696,7 +1696,7 @@ function Nn(e, t, n) {
|
|
|
1696
1696
|
r.__numberFormatters.has(a) && r.__numberFormatters.delete(a);
|
|
1697
1697
|
}
|
|
1698
1698
|
}
|
|
1699
|
-
const ao = (e) => e, lo = (e) => "", io = "text", co = (e) => e.length === 0 ? "" : $t(e), uo =
|
|
1699
|
+
const ao = (e) => e, lo = (e) => "", io = "text", co = (e) => e.length === 0 ? "" : $t(e), uo = Wr;
|
|
1700
1700
|
function Cn(e, t) {
|
|
1701
1701
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1702
1702
|
}
|
|
@@ -1708,28 +1708,28 @@ function fo(e, t) {
|
|
|
1708
1708
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1709
1709
|
}
|
|
1710
1710
|
function _o(e = {}) {
|
|
1711
|
-
const t = e.locale, n = mo(e), r = te(e.pluralRules) &&
|
|
1711
|
+
const t = e.locale, n = mo(e), r = te(e.pluralRules) && Y(t) && me(e.pluralRules[t]) ? e.pluralRules[t] : Cn, l = te(e.pluralRules) && Y(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();
|
|
1712
1712
|
ge(e.pluralIndex) && fo(n, i);
|
|
1713
1713
|
const g = (f) => i[f];
|
|
1714
|
-
function
|
|
1714
|
+
function y(f, h) {
|
|
1715
1715
|
const S = me(e.messages) ? e.messages(f, !!h) : te(e.messages) ? e.messages[f] : !1;
|
|
1716
1716
|
return S || (e.parent ? e.parent.message(f) : lo);
|
|
1717
1717
|
}
|
|
1718
|
-
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, D = ee(e.processor) &&
|
|
1718
|
+
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, D = ee(e.processor) && Y(e.processor.type) ? e.processor.type : io, w = {
|
|
1719
1719
|
list: u,
|
|
1720
1720
|
named: g,
|
|
1721
1721
|
plural: a,
|
|
1722
1722
|
linked: (f, ...h) => {
|
|
1723
1723
|
const [S, c] = h;
|
|
1724
1724
|
let b = "text", I = "";
|
|
1725
|
-
h.length === 1 ? te(S) ? (I = S.modifier || I, b = S.type || b) :
|
|
1726
|
-
const p =
|
|
1725
|
+
h.length === 1 ? te(S) ? (I = S.modifier || I, b = S.type || b) : Y(S) && (I = S || I) : h.length === 2 && (Y(S) && (I = S || I), Y(c) && (b = c || b));
|
|
1726
|
+
const p = y(f, !0)(w), k = (
|
|
1727
1727
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1728
1728
|
b === "vnode" && be(p) && I ? p[0] : p
|
|
1729
1729
|
);
|
|
1730
1730
|
return I ? T(I)(k, b) : k;
|
|
1731
1731
|
},
|
|
1732
|
-
message:
|
|
1732
|
+
message: y,
|
|
1733
1733
|
type: D,
|
|
1734
1734
|
interpolate: F,
|
|
1735
1735
|
normalize: N,
|
|
@@ -1739,14 +1739,14 @@ function _o(e = {}) {
|
|
|
1739
1739
|
}
|
|
1740
1740
|
const Tn = () => "", Te = (e) => me(e);
|
|
1741
1741
|
function On(e, ...t) {
|
|
1742
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale: d, messages: u } = e, [i, g] =
|
|
1742
|
+
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, D = Y(g.default) || ve(g.default) ? ve(g.default) ? a ? i : () => i : g.default : n ? a ? i : () => i : null, A = n || D != null && (Y(D) || me(D)), w = zt(e, g);
|
|
1743
1743
|
N && po(g);
|
|
1744
1744
|
let [f, h, S] = F ? [
|
|
1745
1745
|
i,
|
|
1746
1746
|
w,
|
|
1747
1747
|
u[w] || oe()
|
|
1748
|
-
] : tr(e, i, w, d, T,
|
|
1749
|
-
if (!F && !(
|
|
1748
|
+
] : tr(e, i, w, d, T, y), c = f, b = i;
|
|
1749
|
+
if (!F && !(Y(c) || ot(c) || Te(c)) && A && (c = D, b = c), !F && (!(Y(c) || ot(c) || Te(c)) || !Y(h)))
|
|
1750
1750
|
return l ? Ot : i;
|
|
1751
1751
|
let I = !1;
|
|
1752
1752
|
const p = () => {
|
|
@@ -1758,9 +1758,9 @@ function On(e, ...t) {
|
|
|
1758
1758
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1759
1759
|
const C = {
|
|
1760
1760
|
timestamp: Date.now(),
|
|
1761
|
-
key:
|
|
1761
|
+
key: Y(i) ? i : Te(c) ? c.key : "",
|
|
1762
1762
|
locale: h || (Te(c) ? c.locale : ""),
|
|
1763
|
-
format:
|
|
1763
|
+
format: Y(c) ? c : Te(c) ? c.source : "",
|
|
1764
1764
|
message: m
|
|
1765
1765
|
};
|
|
1766
1766
|
C.meta = Ie({}, e.__meta, /* @__PURE__ */ to() || {}), Fs(C);
|
|
@@ -1768,16 +1768,16 @@ function On(e, ...t) {
|
|
|
1768
1768
|
return m;
|
|
1769
1769
|
}
|
|
1770
1770
|
function po(e) {
|
|
1771
|
-
be(e.list) ? e.list = e.list.map((t) =>
|
|
1772
|
-
|
|
1771
|
+
be(e.list) ? e.list = e.list.map((t) => Y(t) ? ln(t) : t) : te(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1772
|
+
Y(e.named[t]) && (e.named[t] = ln(e.named[t]));
|
|
1773
1773
|
});
|
|
1774
1774
|
}
|
|
1775
1775
|
function tr(e, t, n, r, l, a) {
|
|
1776
|
-
const { messages: d, onWarn: u, messageResolver: i, localeFallbacker: g } = e,
|
|
1776
|
+
const { messages: d, onWarn: u, messageResolver: i, localeFallbacker: g } = e, y = g(e, r, n);
|
|
1777
1777
|
let T = oe(), N, F = null;
|
|
1778
1778
|
const D = "translate";
|
|
1779
|
-
for (let A = 0; A <
|
|
1780
|
-
if (!oo(N,
|
|
1779
|
+
for (let A = 0; A < y.length && (N = y[A], T = d[N] || oe(), (F = i(T, t)) === null && (F = T[t]), !(Y(F) || ot(F) || Te(F))); A++)
|
|
1780
|
+
if (!oo(N, y)) {
|
|
1781
1781
|
const w = Qt(
|
|
1782
1782
|
e,
|
|
1783
1783
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -1806,12 +1806,12 @@ function nr(e, t, n, r, l, a) {
|
|
|
1806
1806
|
function vo(e, t, n) {
|
|
1807
1807
|
return t(n);
|
|
1808
1808
|
}
|
|
1809
|
-
function
|
|
1809
|
+
function Vt(...e) {
|
|
1810
1810
|
const [t, n, r] = e, l = oe();
|
|
1811
|
-
if (!
|
|
1811
|
+
if (!Y(t) && !ge(t) && !Te(t) && !ot(t))
|
|
1812
1812
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1813
1813
|
const a = ge(t) ? String(t) : (Te(t), t);
|
|
1814
|
-
return ge(n) ? l.plural = n :
|
|
1814
|
+
return ge(n) ? l.plural = n : Y(n) ? l.default = n : ee(n) && !Ct(n) ? l.named = n : be(n) && (l.list = n), ge(r) ? l.plural = r : Y(r) ? l.default = r : ee(r) && Ie(l, r), [a, l];
|
|
1815
1815
|
}
|
|
1816
1816
|
function ho(e, t, n, r, l, a) {
|
|
1817
1817
|
return {
|
|
@@ -1825,15 +1825,15 @@ function ho(e, t, n, r, l, a) {
|
|
|
1825
1825
|
};
|
|
1826
1826
|
}
|
|
1827
1827
|
function bo(e, t, n, r) {
|
|
1828
|
-
const { modifiers: l, pluralRules: a, messageResolver: d, fallbackLocale: u, fallbackWarn: i, missingWarn: g, fallbackContext:
|
|
1828
|
+
const { modifiers: l, pluralRules: a, messageResolver: d, fallbackLocale: u, fallbackWarn: i, missingWarn: g, fallbackContext: y } = e, N = {
|
|
1829
1829
|
locale: t,
|
|
1830
1830
|
modifiers: l,
|
|
1831
1831
|
pluralRules: a,
|
|
1832
1832
|
messages: (F, D) => {
|
|
1833
1833
|
let A = d(n, F);
|
|
1834
|
-
if (A == null && (
|
|
1834
|
+
if (A == null && (y || D)) {
|
|
1835
1835
|
const [, , w] = tr(
|
|
1836
|
-
|
|
1836
|
+
y || e,
|
|
1837
1837
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1838
1838
|
F,
|
|
1839
1839
|
t,
|
|
@@ -1843,7 +1843,7 @@ function bo(e, t, n, r) {
|
|
|
1843
1843
|
);
|
|
1844
1844
|
A = d(w, F);
|
|
1845
1845
|
}
|
|
1846
|
-
if (
|
|
1846
|
+
if (Y(A) || ot(A)) {
|
|
1847
1847
|
let w = !1;
|
|
1848
1848
|
const h = nr(e, F, t, A, F, () => {
|
|
1849
1849
|
w = !0;
|
|
@@ -1855,9 +1855,9 @@ function bo(e, t, n, r) {
|
|
|
1855
1855
|
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;
|
|
1856
1856
|
}
|
|
1857
1857
|
_s();
|
|
1858
|
-
var go = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_af41446e-06ac-49be-9ecf-85a7fe44cdfa", 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_af41446e-06ac-49be-9ecf-85a7fe44cdfa", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.8.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/30.0.16248370", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1839", ACTIONS_ORCHESTRATION_ID: "2715f317-d369-4f93-ae30-4d03bc566aea.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: "20261012.334.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_af41446e-06ac-49be-9ecf-85a7fe44cdfa", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:11304", 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: "38777608634", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "77bc917667aa1568f339bffca89cd16e436a1881", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.9/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/KDI-5086-hrm-schedule", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9LREktNTA4Ni1ocm0tc2NoZWR1bGVcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTIxMDc1MDQsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MjA4NTMwNCwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImM3Njg5NGYzLTNlN2YtNWU3OS04NTIyLTBkMmFjYzU5MGE5YyIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiMDlmNzZkOGFjNWU2YTA3MDc1NDI3NDllMWQ1Njg3YmYxZWFkNWYyYyIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MjA4NTAwNCwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCIxMTY1NjkyMTgzNzBcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjA5Zjc2ZDhhYzVlNmEwNzA3NTQyNzQ5ZTFkNTY4N2JmMWVhZDVmMmNcIixcInJlZlwiOlwicmVmcy9oZWFkcy9LREktNTA4Ni1ocm0tc2NoZWR1bGVcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJyZXBvc2l0b3J5XCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2VcIixcInJlcG9zaXRvcnlfaWRcIjpcIjExMjQ2NzIyMzVcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJ1bl9pZFwiOlwiMzg3Nzc2MDg2MzRcIixcInJ1bl9udW1iZXJcIjpcIjIxNFwiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcIjc3YmM5MTc2NjdhYTE1NjhmMzM5YmZmY2E4OWNkMTZlNDM2YTE4ODFcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIGhybS1wb3J0YWxcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtaHJtLXBvcnRhbC10cnVzdGVkLnltbEByZWZzL2hlYWRzL0tESS01MDg2LWhybS1zY2hlZHVsZVwiLFwid29ya2Zsb3dfc2hhXCI6XCI3N2JjOTE3NjY3YWExNTY4ZjMzOWJmZmNhODljZDE2ZTQzNmExODgxXCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9LREktNTA4Ni1ocm0tc2NoZWR1bGUiLCJvcmNoX2lkIjoiMjcxNWYzMTctZDM2OS00ZjkzLWFlMzAtNGQwM2JjNTY2YWVhLnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiIyNzE1ZjMxNy1kMzY5LTRmOTMtYWUzMC00ZDAzYmM1NjZhZWEiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiIzODc3NzYwODYzNCIsInJ1bl9udW1iZXIiOiIyMTQiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMjAxMTg2IiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6MjcxNWYzMTctZDM2OS00ZjkzLWFlMzAtNGQwM2JjNTY2YWVhOmM3Njg5NGYzLTNlN2YtNWU3OS04NTIyLTBkMmFjYzU5MGE5YyBBY3Rpb25zLlJ1bm5lcjoyNzE1ZjMxNy1kMzY5LTRmOTMtYWUzMC00ZDAzYmM1NjZhZWE6Yzc2ODk0ZjMtM2U3Zi01ZTc5LTg1MjItMGQyYWNjNTkwYTljIEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOjI3MTVmMzE3LWQzNjktNGY5My1hZTMwLTRkMDNiYzU2NmFlYTpjNzY4OTRmMy0zZTdmLTVlNzktODUyMi0wZDJhY2M1OTBhOWMgZ2VuZXJhdGVfaWRfdG9rZW46MjcxNWYzMTctZDM2OS00ZjkzLWFlMzAtNGQwM2JjNTY2YWVhOmM3Njg5NGYzLTNlN2YtNWU3OS04NTIyLTBkMmFjYzU5MGE5YyBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6Ijc3YmM5MTc2NjdhYTE1NjhmMzM5YmZmY2E4OWNkMTZlNDM2YTE4ODEiLCJ0cnVzdF90aWVyIjoiMSJ9.jkAXAdIFJ0TC7rXc-AOJvfHSL2FnJwdoBdUm2k4ces_Gv17ZDONCrQn6WWqquI1I9GWmd6ecpzvLoe1xNl2Yunx9gAxOWQLLW4Rp4p6ls2l9OfnfCTERdyM73a4Ut_N9qgaPKIO-L6lfepYeKgGMhXrbDNYX3eW3Mu_kLf0Y0xvuN3TJNCu49gXqS6iaFsDEDkGFyuTfd1FOLkrLspB9MM1aSJv5dbwrA93Ze1QPUASdX1j8hS0toKEmmG-XH1_12tfBLcWu4kSs9adbWdXnvceBxJ3oGxaeybF28IQXBvzqHrJK-6tL6QtOu316ZuQ78E9a31vAmulIH1bcWJGasA", 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_297fff60-a5bd-42eb-9cdd-b2acd3a38692", INVOCATION_ID: "b1ee60d4432c4e90a59be2b4e20b3384", 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: "214", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000201186", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "KDI-5086-hrm-schedule", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.3.0-dev.30", 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: "77bc917667aa1568f339bffca89cd16e436a1881", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/KDI-5086-hrm-schedule", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_af41446e-06ac-49be-9ecf-85a7fe44cdfa", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-2-azure-eastus.actions.githubusercontent.com/74//idtoken/2715f317-d369-4f93-ae30-4d03bc566aea/c76894f3-3e7f-5e79-8522-0d2acc590a9c?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_af41446e-06ac-49be-9ecf-85a7fe44cdfa", 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_af41446e-06ac-49be-9ecf-85a7fe44cdfa", 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_af41446e-06ac-49be-9ecf-85a7fe44cdfa", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1858
|
+
var go = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_19011869-c29c-4340-a154-7f2d8a582267", 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_19011869-c29c-4340-a154-7f2d8a582267", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.8.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/30.0.16248370", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1842", ACTIONS_ORCHESTRATION_ID: "7accf180-0eb4-4f50-a946-8ac4851d0b94.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: "20261012.334.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_19011869-c29c-4340-a154-7f2d8a582267", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:11491", 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: "38835057884", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "ef78a6f0c600278e376cf1cc95918d661ddd3779", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.9/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/KDI-5086-hrm-schedule", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9LREktNTA4Ni1ocm0tc2NoZWR1bGVcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTIxMzYxNDcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MjExMzk0NywiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjNiMDY1MjI4LTU0OGItNTEyYS04OGM5LWU3YTBlMmU1NjI1YyIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiMDlmNzZkOGFjNWU2YTA3MDc1NDI3NDllMWQ1Njg3YmYxZWFkNWYyYyIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MjExMzY0Nywib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCIxMTY3NjIyMTUwMjRcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjA5Zjc2ZDhhYzVlNmEwNzA3NTQyNzQ5ZTFkNTY4N2JmMWVhZDVmMmNcIixcInJlZlwiOlwicmVmcy9oZWFkcy9LREktNTA4Ni1ocm0tc2NoZWR1bGVcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJyZXBvc2l0b3J5XCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2VcIixcInJlcG9zaXRvcnlfaWRcIjpcIjExMjQ2NzIyMzVcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJ1bl9pZFwiOlwiMzg4MzUwNTc4ODRcIixcInJ1bl9udW1iZXJcIjpcIjIxNVwiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcImVmNzhhNmYwYzYwMDI3OGUzNzZjZjFjYzk1OTE4ZDY2MWRkZDM3NzlcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIGhybS1wb3J0YWxcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtaHJtLXBvcnRhbC10cnVzdGVkLnltbEByZWZzL2hlYWRzL0tESS01MDg2LWhybS1zY2hlZHVsZVwiLFwid29ya2Zsb3dfc2hhXCI6XCJlZjc4YTZmMGM2MDAyNzhlMzc2Y2YxY2M5NTkxOGQ2NjFkZGQzNzc5XCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9LREktNTA4Ni1ocm0tc2NoZWR1bGUiLCJvcmNoX2lkIjoiN2FjY2YxODAtMGViNC00ZjUwLWE5NDYtOGFjNDg1MWQwYjk0LnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiI3YWNjZjE4MC0wZWI0LTRmNTAtYTk0Ni04YWM0ODUxZDBiOTQiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiIzODgzNTA1Nzg4NCIsInJ1bl9udW1iZXIiOiIyMTUiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMjAxODExIiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6N2FjY2YxODAtMGViNC00ZjUwLWE5NDYtOGFjNDg1MWQwYjk0OjNiMDY1MjI4LTU0OGItNTEyYS04OGM5LWU3YTBlMmU1NjI1YyBBY3Rpb25zLlJ1bm5lcjo3YWNjZjE4MC0wZWI0LTRmNTAtYTk0Ni04YWM0ODUxZDBiOTQ6M2IwNjUyMjgtNTQ4Yi01MTJhLTg4YzktZTdhMGUyZTU2MjVjIEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOjdhY2NmMTgwLTBlYjQtNGY1MC1hOTQ2LThhYzQ4NTFkMGI5NDozYjA2NTIyOC01NDhiLTUxMmEtODhjOS1lN2EwZTJlNTYyNWMgZ2VuZXJhdGVfaWRfdG9rZW46N2FjY2YxODAtMGViNC00ZjUwLWE5NDYtOGFjNDg1MWQwYjk0OjNiMDY1MjI4LTU0OGItNTEyYS04OGM5LWU3YTBlMmU1NjI1YyBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6ImVmNzhhNmYwYzYwMDI3OGUzNzZjZjFjYzk1OTE4ZDY2MWRkZDM3NzkiLCJ0cnVzdF90aWVyIjoiMSJ9.GVePoCoFdnyrJPKcEK3-mA3L24VBSjtJy03HNNV31JF_DV_PQsRXwih3sdrUEccdl-LM7A30xXNQ41nbke7ljjZ-Rp3jig0smdKtPzNnynRXUfqu3bXYVYO4Un5r2NDaUDccT5DFOPUttuptVgb8FIwv4_9i_YfBFj0XTn_QV3V-2NA0PsPaBbY_RasP4Ha5lDTsWsuOHWa3HwjdfWU4UNGzNaIWcTp3uY4OvIJEGMCmYwdfRVdvr49fH0zwY_af-rI2awgtBtkVx-B0gQP4ViAKusgY_One29rpdgqBKyhK8xLG6YTs3gviL79iXgq7CYMdtFxl8BiKbB-eyc9Kyg", 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_0eb4def3-8db6-472a-9c35-c2e719294891", INVOCATION_ID: "b5c368350dc949b0a2bc47f53b91a91e", 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: "215", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000201811", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "KDI-5086-hrm-schedule", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.3.0-dev.31", 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: "ef78a6f0c600278e376cf1cc95918d661ddd3779", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/KDI-5086-hrm-schedule", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_19011869-c29c-4340-a154-7f2d8a582267", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-2-azure-eastus.actions.githubusercontent.com/168//idtoken/7accf180-0eb4-4f50-a946-8ac4851d0b94/3b065228-548b-512a-88c9-e7a0e2e5625c?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_19011869-c29c-4340-a154-7f2d8a582267", 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_19011869-c29c-4340-a154-7f2d8a582267", 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_19011869-c29c-4340-a154-7f2d8a582267", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1859
1859
|
const Io = "10.0.5";
|
|
1860
|
-
function
|
|
1860
|
+
function yo() {
|
|
1861
1861
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Xe().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Xe().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Xe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Xe().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1862
1862
|
}
|
|
1863
1863
|
const at = {
|
|
@@ -1876,7 +1876,7 @@ const at = {
|
|
|
1876
1876
|
function ut(e, ...t) {
|
|
1877
1877
|
return Tt(e, null, void 0);
|
|
1878
1878
|
}
|
|
1879
|
-
const xt = /* @__PURE__ */ $e("__translateVNode"),
|
|
1879
|
+
const xt = /* @__PURE__ */ $e("__translateVNode"), Wt = /* @__PURE__ */ $e("__datetimeParts"), Gt = /* @__PURE__ */ $e("__numberParts"), Eo = $e("__setPluralRules"), rr = /* @__PURE__ */ $e("__injectWithOption"), Yt = /* @__PURE__ */ $e("__dispose");
|
|
1880
1880
|
function dt(e) {
|
|
1881
1881
|
if (!te(e))
|
|
1882
1882
|
return e;
|
|
@@ -1903,9 +1903,9 @@ function sr(e, t) {
|
|
|
1903
1903
|
if (be(r) && r.forEach((u) => {
|
|
1904
1904
|
if ("locale" in u && "resource" in u) {
|
|
1905
1905
|
const { locale: i, resource: g } = u;
|
|
1906
|
-
i ? (d[i] = d[i] || oe(),
|
|
1906
|
+
i ? (d[i] = d[i] || oe(), yt(g, d[i])) : yt(g, d);
|
|
1907
1907
|
} else
|
|
1908
|
-
|
|
1908
|
+
Y(u) && yt(JSON.parse(u), d);
|
|
1909
1909
|
}), l == null && a)
|
|
1910
1910
|
for (const u in d)
|
|
1911
1911
|
Le(d, u) && dt(d[u]);
|
|
@@ -1957,12 +1957,12 @@ function Oo(e = {}) {
|
|
|
1957
1957
|
let d = ve(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1958
1958
|
const u = a(
|
|
1959
1959
|
// prettier-ignore
|
|
1960
|
-
t && d ? t.locale.value :
|
|
1960
|
+
t && d ? t.locale.value : Y(e.locale) ? e.locale : Nt
|
|
1961
1961
|
), i = a(
|
|
1962
1962
|
// prettier-ignore
|
|
1963
|
-
t && d ? t.fallbackLocale.value :
|
|
1964
|
-
), g = a(sr(u.value, e)),
|
|
1965
|
-
let N = t ? t.missingWarn : ve(e.missingWarn) ||
|
|
1963
|
+
t && d ? t.fallbackLocale.value : Y(e.fallbackLocale) || be(e.fallbackLocale) || ee(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
1964
|
+
), g = a(sr(u.value, e)), y = a(ee(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), T = a(ee(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
|
|
1965
|
+
let 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, D = t ? t.fallbackRoot : ve(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.fallbackFormat, w = me(e.missing) ? e.missing : null, f = me(e.missing) ? kn(e.missing) : null, h = me(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : ve(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, c = !!e.escapeParameter;
|
|
1966
1966
|
const b = t ? t.modifiers : ee(e.modifiers) ? e.modifiers : {};
|
|
1967
1967
|
let I = e.pluralRules || t && t.pluralRules, p;
|
|
1968
1968
|
p = (() => {
|
|
@@ -1986,31 +1986,31 @@ function Oo(e = {}) {
|
|
|
1986
1986
|
messageCompiler: e.messageCompiler,
|
|
1987
1987
|
__meta: { framework: "vue" }
|
|
1988
1988
|
};
|
|
1989
|
-
v.datetimeFormats =
|
|
1990
|
-
const
|
|
1991
|
-
return r && bn(
|
|
1989
|
+
v.datetimeFormats = y.value, v.numberFormats = T.value, v.__datetimeFormatters = ee(p) ? p.__datetimeFormatters : void 0, v.__numberFormatters = ee(p) ? p.__numberFormatters : void 0;
|
|
1990
|
+
const E = ro(v);
|
|
1991
|
+
return r && bn(E), E;
|
|
1992
1992
|
})(), lt(p, u.value, i.value);
|
|
1993
1993
|
function L() {
|
|
1994
1994
|
return [
|
|
1995
1995
|
u.value,
|
|
1996
1996
|
i.value,
|
|
1997
1997
|
g.value,
|
|
1998
|
-
|
|
1998
|
+
y.value,
|
|
1999
1999
|
T.value
|
|
2000
2000
|
];
|
|
2001
2001
|
}
|
|
2002
|
-
const X =
|
|
2002
|
+
const X = z({
|
|
2003
2003
|
get: () => u.value,
|
|
2004
2004
|
set: (v) => {
|
|
2005
2005
|
u.value = v, p.locale = u.value;
|
|
2006
2006
|
}
|
|
2007
|
-
}), x =
|
|
2007
|
+
}), x = z({
|
|
2008
2008
|
get: () => i.value,
|
|
2009
2009
|
set: (v) => {
|
|
2010
2010
|
i.value = v, p.fallbackLocale = i.value, lt(p, u.value, v);
|
|
2011
2011
|
}
|
|
2012
|
-
}), m =
|
|
2013
|
-
function
|
|
2012
|
+
}), m = z(() => g.value), C = /* @__PURE__ */ z(() => y.value), U = /* @__PURE__ */ z(() => T.value);
|
|
2013
|
+
function V() {
|
|
2014
2014
|
return me(h) ? h : null;
|
|
2015
2015
|
}
|
|
2016
2016
|
function j(v) {
|
|
@@ -2019,44 +2019,44 @@ function Oo(e = {}) {
|
|
|
2019
2019
|
function G() {
|
|
2020
2020
|
return w;
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2022
|
+
function W(v) {
|
|
2023
2023
|
v !== null && (f = kn(v)), w = v, p.missing = f;
|
|
2024
2024
|
}
|
|
2025
|
-
const
|
|
2025
|
+
const B = (v, E, $, le, Ze, mt) => {
|
|
2026
2026
|
L();
|
|
2027
|
-
let
|
|
2027
|
+
let ze;
|
|
2028
2028
|
try {
|
|
2029
|
-
go.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = t ? no() : void 0),
|
|
2029
|
+
go.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = t ? no() : void 0), ze = v(p);
|
|
2030
2030
|
} finally {
|
|
2031
2031
|
__INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = void 0);
|
|
2032
2032
|
}
|
|
2033
2033
|
if ($ !== "translate exists" && // for not `te` (e.g `t`)
|
|
2034
|
-
ge(
|
|
2035
|
-
const [cr,
|
|
2034
|
+
ge(ze) && ze === Ot || $ === "translate exists" && !ze) {
|
|
2035
|
+
const [cr, Ea] = E();
|
|
2036
2036
|
return t && D ? le(t) : Ze(cr);
|
|
2037
2037
|
} else {
|
|
2038
|
-
if (mt(
|
|
2039
|
-
return
|
|
2038
|
+
if (mt(ze))
|
|
2039
|
+
return ze;
|
|
2040
2040
|
throw ut(at.UNEXPECTED_RETURN_TYPE);
|
|
2041
2041
|
}
|
|
2042
2042
|
};
|
|
2043
2043
|
function Z(...v) {
|
|
2044
|
-
return
|
|
2044
|
+
return B((E) => Reflect.apply(On, null, [E, ...v]), () => Vt(...v), "translate", (E) => Reflect.apply(E.t, E, [...v]), (E) => E, (E) => Y(E));
|
|
2045
2045
|
}
|
|
2046
2046
|
function ne(...v) {
|
|
2047
|
-
const [
|
|
2047
|
+
const [E, $, le] = v;
|
|
2048
2048
|
if (le && !te(le))
|
|
2049
2049
|
throw ut(at.INVALID_ARGUMENT);
|
|
2050
|
-
return Z(
|
|
2050
|
+
return Z(E, $, Ie({ resolvedMessage: !0 }, le || {}));
|
|
2051
2051
|
}
|
|
2052
2052
|
function Q(...v) {
|
|
2053
|
-
return
|
|
2053
|
+
return B((E) => Reflect.apply(In, null, [E, ...v]), () => jt(...v), "datetime format", (E) => Reflect.apply(E.d, E, [...v]), () => vn, (E) => Y(E));
|
|
2054
2054
|
}
|
|
2055
2055
|
function _e(...v) {
|
|
2056
|
-
return
|
|
2056
|
+
return B((E) => Reflect.apply(En, null, [E, ...v]), () => Ut(...v), "number format", (E) => Reflect.apply(E.n, E, [...v]), () => vn, (E) => Y(E));
|
|
2057
2057
|
}
|
|
2058
2058
|
function ce(v) {
|
|
2059
|
-
return v.map((
|
|
2059
|
+
return v.map((E) => Y(E) || ge(E) || ve(E) ? Sn(String(E)) : E);
|
|
2060
2060
|
}
|
|
2061
2061
|
const fe = {
|
|
2062
2062
|
normalize: ce,
|
|
@@ -2064,87 +2064,87 @@ function Oo(e = {}) {
|
|
|
2064
2064
|
type: "vnode"
|
|
2065
2065
|
};
|
|
2066
2066
|
function q(...v) {
|
|
2067
|
-
return
|
|
2067
|
+
return B((E) => {
|
|
2068
2068
|
let $;
|
|
2069
|
-
const le =
|
|
2069
|
+
const le = E;
|
|
2070
2070
|
try {
|
|
2071
2071
|
le.processor = fe, $ = Reflect.apply(On, null, [le, ...v]);
|
|
2072
2072
|
} finally {
|
|
2073
2073
|
le.processor = null;
|
|
2074
2074
|
}
|
|
2075
2075
|
return $;
|
|
2076
|
-
}, () =>
|
|
2076
|
+
}, () => Vt(...v), "translate", (E) => E[xt](...v), (E) => [Sn(E)], (E) => be(E));
|
|
2077
2077
|
}
|
|
2078
2078
|
function we(...v) {
|
|
2079
|
-
return
|
|
2079
|
+
return B((E) => Reflect.apply(En, null, [E, ...v]), () => Ut(...v), "number format", (E) => E[Gt](...v), An, (E) => Y(E) || be(E));
|
|
2080
2080
|
}
|
|
2081
|
-
function
|
|
2082
|
-
return
|
|
2081
|
+
function K(...v) {
|
|
2082
|
+
return B((E) => Reflect.apply(In, null, [E, ...v]), () => jt(...v), "datetime format", (E) => E[Wt](...v), An, (E) => Y(E) || be(E));
|
|
2083
2083
|
}
|
|
2084
2084
|
function pe(v) {
|
|
2085
2085
|
I = v, p.pluralRules = I;
|
|
2086
2086
|
}
|
|
2087
|
-
function Je(v,
|
|
2088
|
-
return
|
|
2087
|
+
function Je(v, E) {
|
|
2088
|
+
return B(() => {
|
|
2089
2089
|
if (!v)
|
|
2090
2090
|
return !1;
|
|
2091
|
-
const $ =
|
|
2092
|
-
return ot(Ze) || Te(Ze) ||
|
|
2093
|
-
}, () => [v], "translate exists", ($) => Reflect.apply($.te, $, [v,
|
|
2091
|
+
const $ = Y(E) ? E : u.value, le = Fe($), Ze = p.messageResolver(le, v);
|
|
2092
|
+
return ot(Ze) || Te(Ze) || Y(Ze);
|
|
2093
|
+
}, () => [v], "translate exists", ($) => Reflect.apply($.te, $, [v, E]), Co, ($) => ve($));
|
|
2094
2094
|
}
|
|
2095
|
-
function
|
|
2096
|
-
let
|
|
2095
|
+
function Ke(v) {
|
|
2096
|
+
let E = null;
|
|
2097
2097
|
const $ = Hn(p, i.value, u.value);
|
|
2098
2098
|
for (let le = 0; le < $.length; le++) {
|
|
2099
2099
|
const Ze = g.value[$[le]] || {}, mt = p.messageResolver(Ze, v);
|
|
2100
2100
|
if (mt != null) {
|
|
2101
|
-
|
|
2101
|
+
E = mt;
|
|
2102
2102
|
break;
|
|
2103
2103
|
}
|
|
2104
2104
|
}
|
|
2105
|
-
return
|
|
2105
|
+
return E;
|
|
2106
2106
|
}
|
|
2107
|
-
function
|
|
2108
|
-
const
|
|
2109
|
-
return
|
|
2107
|
+
function Ve(v) {
|
|
2108
|
+
const E = Ke(v);
|
|
2109
|
+
return E ?? (t ? t.tm(v) || {} : {});
|
|
2110
2110
|
}
|
|
2111
2111
|
function Fe(v) {
|
|
2112
2112
|
return g.value[v] || {};
|
|
2113
2113
|
}
|
|
2114
|
-
function Ce(v,
|
|
2114
|
+
function Ce(v, E) {
|
|
2115
2115
|
if (l) {
|
|
2116
|
-
const $ = { [v]:
|
|
2116
|
+
const $ = { [v]: E };
|
|
2117
2117
|
for (const le in $)
|
|
2118
2118
|
Le($, le) && dt($[le]);
|
|
2119
|
-
|
|
2119
|
+
E = $[v];
|
|
2120
2120
|
}
|
|
2121
|
-
g.value[v] =
|
|
2121
|
+
g.value[v] = E, p.messages = g.value;
|
|
2122
2122
|
}
|
|
2123
|
-
function
|
|
2123
|
+
function Be(v, E) {
|
|
2124
2124
|
g.value[v] = g.value[v] || {};
|
|
2125
|
-
const $ = { [v]:
|
|
2125
|
+
const $ = { [v]: E };
|
|
2126
2126
|
if (l)
|
|
2127
2127
|
for (const le in $)
|
|
2128
2128
|
Le($, le) && dt($[le]);
|
|
2129
|
-
|
|
2129
|
+
E = $[v], yt(E, g.value[v]), p.messages = g.value;
|
|
2130
2130
|
}
|
|
2131
2131
|
function O(v) {
|
|
2132
|
-
return
|
|
2132
|
+
return y.value[v] || {};
|
|
2133
2133
|
}
|
|
2134
|
-
function s(v,
|
|
2135
|
-
|
|
2134
|
+
function s(v, E) {
|
|
2135
|
+
y.value[v] = E, p.datetimeFormats = y.value, yn(p, v, E);
|
|
2136
2136
|
}
|
|
2137
|
-
function o(v,
|
|
2138
|
-
|
|
2137
|
+
function o(v, E) {
|
|
2138
|
+
y.value[v] = Ie(y.value[v] || {}, E), p.datetimeFormats = y.value, yn(p, v, E);
|
|
2139
2139
|
}
|
|
2140
2140
|
function _(v) {
|
|
2141
2141
|
return T.value[v] || {};
|
|
2142
2142
|
}
|
|
2143
|
-
function R(v,
|
|
2144
|
-
T.value[v] =
|
|
2143
|
+
function R(v, E) {
|
|
2144
|
+
T.value[v] = E, p.numberFormats = T.value, Nn(p, v, E);
|
|
2145
2145
|
}
|
|
2146
|
-
function M(v,
|
|
2147
|
-
T.value[v] = Ie(T.value[v] || {},
|
|
2146
|
+
function M(v, E) {
|
|
2147
|
+
T.value[v] = Ie(T.value[v] || {}, E), p.numberFormats = T.value, Nn(p, v, E);
|
|
2148
2148
|
}
|
|
2149
2149
|
Rn++, t && on && (Dt(t.locale, (v) => {
|
|
2150
2150
|
d && (u.value = v, p.locale = v, lt(p, u.value, i.value));
|
|
@@ -2213,14 +2213,14 @@ function Oo(e = {}) {
|
|
|
2213
2213
|
t: Z,
|
|
2214
2214
|
getLocaleMessage: Fe,
|
|
2215
2215
|
setLocaleMessage: Ce,
|
|
2216
|
-
mergeLocaleMessage:
|
|
2217
|
-
getPostTranslationHandler:
|
|
2216
|
+
mergeLocaleMessage: Be,
|
|
2217
|
+
getPostTranslationHandler: V,
|
|
2218
2218
|
setPostTranslationHandler: j,
|
|
2219
2219
|
getMissingHandler: G,
|
|
2220
|
-
setMissingHandler:
|
|
2221
|
-
[
|
|
2220
|
+
setMissingHandler: W,
|
|
2221
|
+
[Eo]: pe
|
|
2222
2222
|
};
|
|
2223
|
-
return P.datetimeFormats = C, P.numberFormats = U, P.rt = ne, P.te = Je, P.tm =
|
|
2223
|
+
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 = R, P.mergeNumberFormat = M, P[rr] = n, P[xt] = q, P[Wt] = K, P[Gt] = we, P;
|
|
2224
2224
|
}
|
|
2225
2225
|
const qt = {
|
|
2226
2226
|
tag: {
|
|
@@ -2264,22 +2264,22 @@ Ie({
|
|
|
2264
2264
|
}
|
|
2265
2265
|
}, qt);
|
|
2266
2266
|
function Lo(e) {
|
|
2267
|
-
return be(e) && !
|
|
2267
|
+
return be(e) && !Y(e[0]);
|
|
2268
2268
|
}
|
|
2269
2269
|
function lr(e, t, n, r) {
|
|
2270
2270
|
const { slots: l, attrs: a } = t;
|
|
2271
2271
|
return () => {
|
|
2272
2272
|
const d = { part: !0 };
|
|
2273
2273
|
let u = oe();
|
|
2274
|
-
e.locale && (d.locale = e.locale),
|
|
2274
|
+
e.locale && (d.locale = e.locale), Y(e.format) ? d.key = e.format : te(e.format) && (Y(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()));
|
|
2275
2275
|
const i = r(e.value, d, u);
|
|
2276
2276
|
let g = [d.key];
|
|
2277
2277
|
be(i) ? g = i.map((N, F) => {
|
|
2278
2278
|
const D = l[N.type], A = D ? D({ [N.type]: N.value, index: F, parts: i }) : [N.value];
|
|
2279
2279
|
return Lo(A) && (A[0].key = `${N.type}-${F}`), A;
|
|
2280
|
-
}) :
|
|
2281
|
-
const
|
|
2282
|
-
return
|
|
2280
|
+
}) : Y(i) && (g = [i]);
|
|
2281
|
+
const y = Ie(oe(), a), T = Y(e.tag) || te(e.tag) ? e.tag : ar();
|
|
2282
|
+
return Wn(T, y, g);
|
|
2283
2283
|
};
|
|
2284
2284
|
}
|
|
2285
2285
|
Ie({
|
|
@@ -2318,7 +2318,7 @@ function St(e = {}) {
|
|
|
2318
2318
|
let u = d.__getInstance(t);
|
|
2319
2319
|
if (u == null) {
|
|
2320
2320
|
const i = Ie({}, e);
|
|
2321
|
-
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u = Oo(i), d.__composerExtend && (u[
|
|
2321
|
+
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u = Oo(i), d.__composerExtend && (u[Yt] = d.__composerExtend(u)), Fo(d, t, u), d.__setInstance(t, u);
|
|
2322
2322
|
}
|
|
2323
2323
|
return u;
|
|
2324
2324
|
}
|
|
@@ -2360,12 +2360,12 @@ function Fo(e, t, n) {
|
|
|
2360
2360
|
}, t), mr(() => {
|
|
2361
2361
|
const r = n;
|
|
2362
2362
|
e.__deleteInstance(t);
|
|
2363
|
-
const l = r[
|
|
2364
|
-
l && (l(), delete r[
|
|
2363
|
+
const l = r[Yt];
|
|
2364
|
+
l && (l(), delete r[Yt]);
|
|
2365
2365
|
}, t);
|
|
2366
2366
|
}
|
|
2367
|
-
|
|
2368
|
-
|
|
2367
|
+
yo();
|
|
2368
|
+
zs(Ms);
|
|
2369
2369
|
Qs($s);
|
|
2370
2370
|
qs(Hn);
|
|
2371
2371
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
@@ -2391,7 +2391,7 @@ const vt = /* @__PURE__ */ Ae({
|
|
|
2391
2391
|
}, {
|
|
2392
2392
|
content: de(() => [
|
|
2393
2393
|
ae("div", null, Oe(H(t)("team.memberForm.permissions.inherited")), 1),
|
|
2394
|
-
(J(!0), ie(ke, null,
|
|
2394
|
+
(J(!0), ie(ke, null, Ee(e.item.setNames, (d) => (J(), ie("div", { key: d }, [
|
|
2395
2395
|
ae("div", null, "- " + Oe(d), 1)
|
|
2396
2396
|
]))), 128))
|
|
2397
2397
|
]),
|
|
@@ -2427,52 +2427,52 @@ const Dn = Object.values(Sr), Po = {
|
|
|
2427
2427
|
update: "Edit"
|
|
2428
2428
|
};
|
|
2429
2429
|
function jo(e, t, n, r) {
|
|
2430
|
-
const { t: l } = He(), { getFlagValue: a, getFlag: d } = Or(), u =
|
|
2430
|
+
const { t: l } = He(), { getFlagValue: a, getFlag: d } = Or(), u = z(() => {
|
|
2431
2431
|
var j;
|
|
2432
2432
|
const m = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map();
|
|
2433
2433
|
for (const G of t.value) {
|
|
2434
|
-
const
|
|
2435
|
-
if (!
|
|
2436
|
-
const
|
|
2434
|
+
const W = G.category;
|
|
2435
|
+
if (!W) continue;
|
|
2436
|
+
const B = G.subject;
|
|
2437
2437
|
if (n.value.includes(G.subject) || G.showByFeatureFlag && ((j = d(G.showByFeatureFlag)) == null ? void 0 : j.enabled) === !1 && a(G.showByFeatureFlag) === "true")
|
|
2438
2438
|
continue;
|
|
2439
|
-
m.has(
|
|
2440
|
-
const Z = U.get(
|
|
2441
|
-
U.set(
|
|
2442
|
-
label: l(`permissionSet.permissionLabels.${
|
|
2443
|
-
value:
|
|
2444
|
-
optionKey: `${
|
|
2445
|
-
}), C.has(
|
|
2439
|
+
m.has(W) || m.set(W, []);
|
|
2440
|
+
const Z = U.get(B) ?? 0;
|
|
2441
|
+
U.set(B, Z + 1), m.get(W).push({
|
|
2442
|
+
label: l(`permissionSet.permissionLabels.${B}`, G.label),
|
|
2443
|
+
value: B,
|
|
2444
|
+
optionKey: `${B}::${Z}`
|
|
2445
|
+
}), C.has(B) || C.set(B, G);
|
|
2446
2446
|
}
|
|
2447
|
-
return [...m.keys()].sort((G,
|
|
2448
|
-
const
|
|
2449
|
-
return
|
|
2447
|
+
return [...m.keys()].sort((G, W) => {
|
|
2448
|
+
const B = Dn.indexOf(G), Z = Dn.indexOf(W);
|
|
2449
|
+
return B === -1 && Z === -1 ? G.localeCompare(W) : B === -1 ? 1 : Z === -1 ? -1 : B - Z;
|
|
2450
2450
|
}).map((G) => {
|
|
2451
|
-
const
|
|
2452
|
-
for (const
|
|
2453
|
-
const pe = C.get(
|
|
2454
|
-
pe && Z.set(
|
|
2451
|
+
const W = m.get(G), B = l(`permissionSet.categoryLabels.${G}`, G), Z = /* @__PURE__ */ new Map();
|
|
2452
|
+
for (const K of W) {
|
|
2453
|
+
const pe = C.get(K.value);
|
|
2454
|
+
pe && Z.set(K.value, pe.actions);
|
|
2455
2455
|
}
|
|
2456
|
-
const ne =
|
|
2457
|
-
const pe = Z.get(
|
|
2456
|
+
const ne = W.some((K) => {
|
|
2457
|
+
const pe = Z.get(K.value);
|
|
2458
2458
|
return pe && pe.length > 1;
|
|
2459
2459
|
}), Q = ne ? [
|
|
2460
2460
|
...new Set(
|
|
2461
|
-
|
|
2461
|
+
W.flatMap((K) => Z.get(K.value) ?? []).filter((K) => K !== "manage")
|
|
2462
2462
|
)
|
|
2463
2463
|
] : [], _e = /* @__PURE__ */ new Map();
|
|
2464
|
-
for (const
|
|
2465
|
-
|
|
2464
|
+
for (const K of e.value)
|
|
2465
|
+
W.some((pe) => pe.value === K.subject) && !K.inverted && _e.set(K.subject, new Set(K.actions));
|
|
2466
2466
|
const ce = ne ? e.value.filter(
|
|
2467
|
-
(
|
|
2468
|
-
).map((
|
|
2467
|
+
(K) => W.some((pe) => pe.value === K.subject) && !K.inverted && K.actions.includes("manage")
|
|
2468
|
+
).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) => {
|
|
2469
2469
|
var pe;
|
|
2470
|
-
return (pe = C.get(
|
|
2470
|
+
return (pe = C.get(K.value)) == null ? void 0 : pe.isCategoryCover;
|
|
2471
2471
|
}), fe = (se == null ? void 0 : se.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), we = q.has("manage");
|
|
2472
2472
|
return {
|
|
2473
2473
|
category: G,
|
|
2474
|
-
label:
|
|
2475
|
-
options:
|
|
2474
|
+
label: B,
|
|
2475
|
+
options: W,
|
|
2476
2476
|
selectedSubjects: ce,
|
|
2477
2477
|
isMultiAction: ne,
|
|
2478
2478
|
actionColumns: Q,
|
|
@@ -2485,16 +2485,16 @@ function jo(e, t, n, r) {
|
|
|
2485
2485
|
});
|
|
2486
2486
|
});
|
|
2487
2487
|
function i(m, C) {
|
|
2488
|
-
const U = u.value.find((Q) => Q.category === m),
|
|
2488
|
+
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();
|
|
2489
2489
|
for (const Q of e.value)
|
|
2490
|
-
j.has(Q.subject) && !Q.inverted &&
|
|
2491
|
-
const
|
|
2490
|
+
j.has(Q.subject) && !Q.inverted && W.set(Q.subject, Q.conditions);
|
|
2491
|
+
const B = U != null && U.coverSubject ? W.get(U.coverSubject) : void 0, Z = /* @__PURE__ */ new Set(), ne = t.value.flatMap(
|
|
2492
2492
|
({ category: Q, showByFeatureFlag: _e, isCategoryCover: ce, ...se }) => {
|
|
2493
2493
|
const fe = se.subject;
|
|
2494
2494
|
if (!G.has(fe) || Z.has(fe)) return [];
|
|
2495
2495
|
Z.add(fe);
|
|
2496
2496
|
let q;
|
|
2497
|
-
return
|
|
2497
|
+
return W.has(fe) ? q = W.get(fe) : U != null && U.coverSubject && fe !== U.coverSubject && (q = B), [
|
|
2498
2498
|
{ ...se, ...q !== void 0 && { conditions: q } }
|
|
2499
2499
|
];
|
|
2500
2500
|
}
|
|
@@ -2507,34 +2507,34 @@ function jo(e, t, n, r) {
|
|
|
2507
2507
|
function g(m, C) {
|
|
2508
2508
|
return F(m, C) || c(m, C);
|
|
2509
2509
|
}
|
|
2510
|
-
function
|
|
2510
|
+
function y(m) {
|
|
2511
2511
|
return m.options.length > 0 && m.options.every((C) => g(m, C.value));
|
|
2512
2512
|
}
|
|
2513
2513
|
function T(m) {
|
|
2514
|
-
return m.options.length === 0 ||
|
|
2514
|
+
return m.options.length === 0 || y(m) ? !1 : m.options.some(
|
|
2515
2515
|
(C) => g(m, C.value) || D(m, C.value).length > 0
|
|
2516
2516
|
);
|
|
2517
2517
|
}
|
|
2518
2518
|
function N(m) {
|
|
2519
|
-
const C = new Set(m.options.map((
|
|
2520
|
-
if (
|
|
2519
|
+
const C = new Set(m.options.map((V) => V.value)), U = e.value.filter((V) => !C.has(V.subject));
|
|
2520
|
+
if (y(m))
|
|
2521
2521
|
r("update:model-value", U);
|
|
2522
2522
|
else {
|
|
2523
|
-
const
|
|
2524
|
-
for (const
|
|
2525
|
-
C.has(
|
|
2526
|
-
const j = m.coverSubject ?
|
|
2527
|
-
({ category:
|
|
2523
|
+
const V = /* @__PURE__ */ new Map();
|
|
2524
|
+
for (const B of e.value)
|
|
2525
|
+
C.has(B.subject) && !B.inverted && V.set(B.subject, B.conditions);
|
|
2526
|
+
const j = m.coverSubject ? V.get(m.coverSubject) : void 0, G = /* @__PURE__ */ new Set(), W = t.value.flatMap(
|
|
2527
|
+
({ category: B, showByFeatureFlag: Z, isCategoryCover: ne, ...Q }) => {
|
|
2528
2528
|
const _e = Q.subject;
|
|
2529
2529
|
if (!C.has(_e) || G.has(_e)) return [];
|
|
2530
2530
|
G.add(_e);
|
|
2531
2531
|
let ce;
|
|
2532
|
-
return
|
|
2532
|
+
return V.has(_e) ? ce = V.get(_e) : m.coverSubject && _e !== m.coverSubject && (ce = j), [
|
|
2533
2533
|
{ ...Q, ...ce !== void 0 && { conditions: ce } }
|
|
2534
2534
|
];
|
|
2535
2535
|
}
|
|
2536
2536
|
);
|
|
2537
|
-
r("update:model-value", [...U, ...
|
|
2537
|
+
r("update:model-value", [...U, ...W]);
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
2540
|
function F(m, C) {
|
|
@@ -2553,37 +2553,37 @@ function jo(e, t, n, r) {
|
|
|
2553
2553
|
function w(m, C) {
|
|
2554
2554
|
if (!m.coverSubject || C === m.coverSubject) return;
|
|
2555
2555
|
const U = e.value.find(
|
|
2556
|
-
(
|
|
2556
|
+
(V) => !V.inverted && V.subject === m.coverSubject
|
|
2557
2557
|
);
|
|
2558
2558
|
return (U == null ? void 0 : U.conditions) || void 0;
|
|
2559
2559
|
}
|
|
2560
2560
|
function f(m, C, U) {
|
|
2561
2561
|
if (U) {
|
|
2562
|
-
const
|
|
2563
|
-
if (!
|
|
2562
|
+
const V = t.value.find((Q) => Q.subject === C);
|
|
2563
|
+
if (!V) return;
|
|
2564
2564
|
const {
|
|
2565
2565
|
category: j,
|
|
2566
2566
|
showByFeatureFlag: G,
|
|
2567
|
-
isCategoryCover:
|
|
2568
|
-
...
|
|
2569
|
-
} =
|
|
2567
|
+
isCategoryCover: W,
|
|
2568
|
+
...B
|
|
2569
|
+
} = V, Z = w(m, C), ne = e.value.filter((Q) => Q.subject !== C);
|
|
2570
2570
|
ne.push({
|
|
2571
|
-
...
|
|
2571
|
+
...B,
|
|
2572
2572
|
...Z !== void 0 && { conditions: Z }
|
|
2573
2573
|
}), r("update:model-value", ne);
|
|
2574
2574
|
} else
|
|
2575
2575
|
r(
|
|
2576
2576
|
"update:model-value",
|
|
2577
|
-
e.value.filter((
|
|
2577
|
+
e.value.filter((V) => V.subject !== C)
|
|
2578
2578
|
);
|
|
2579
2579
|
}
|
|
2580
2580
|
function h(m, C) {
|
|
2581
2581
|
const U = m.permissionActionsMap.get(C);
|
|
2582
|
-
return U ? U.some((
|
|
2582
|
+
return U ? U.some((V) => V !== "manage") : !1;
|
|
2583
2583
|
}
|
|
2584
2584
|
function S(m, C, U) {
|
|
2585
|
-
const
|
|
2586
|
-
return
|
|
2585
|
+
const V = m.selectedActionsMap.get(C);
|
|
2586
|
+
return V ? V.has(U) : !1;
|
|
2587
2587
|
}
|
|
2588
2588
|
function c(m, C) {
|
|
2589
2589
|
return !m.coverSubject || C === m.coverSubject ? !1 : m.coverCoversAll;
|
|
@@ -2592,45 +2592,45 @@ function jo(e, t, n, r) {
|
|
|
2592
2592
|
return !m.coverSubject || C === m.coverSubject ? !1 : m.coverCoversAll ? !0 : m.coverSelectedActions.has(U);
|
|
2593
2593
|
}
|
|
2594
2594
|
function I(m, C, U) {
|
|
2595
|
-
const
|
|
2596
|
-
return
|
|
2595
|
+
const V = m.permissionActionsMap.get(C);
|
|
2596
|
+
return V ? V.includes(U) : !1;
|
|
2597
2597
|
}
|
|
2598
2598
|
function p(m, C, U) {
|
|
2599
|
-
const
|
|
2599
|
+
const V = [...e.value], j = V.findIndex((W) => W.subject === m && !W.inverted);
|
|
2600
2600
|
if (U)
|
|
2601
2601
|
if (j >= 0) {
|
|
2602
|
-
const
|
|
2603
|
-
|
|
2602
|
+
const W = { ...V[j] }, B = new Set(W.actions);
|
|
2603
|
+
B.add(C), W.actions = Array.from(B), V[j] = W;
|
|
2604
2604
|
} else {
|
|
2605
|
-
const
|
|
2606
|
-
if (!
|
|
2605
|
+
const W = t.value.find((se) => se.subject === m);
|
|
2606
|
+
if (!W) return;
|
|
2607
2607
|
const {
|
|
2608
|
-
category:
|
|
2608
|
+
category: B,
|
|
2609
2609
|
showByFeatureFlag: Z,
|
|
2610
2610
|
isCategoryCover: ne,
|
|
2611
2611
|
...Q
|
|
2612
|
-
} =
|
|
2612
|
+
} = W, _e = u.value.find(
|
|
2613
2613
|
(se) => se.options.some((fe) => fe.value === m)
|
|
2614
2614
|
), ce = _e ? w(_e, m) : void 0;
|
|
2615
|
-
|
|
2615
|
+
V.push({
|
|
2616
2616
|
...Q,
|
|
2617
2617
|
actions: [C],
|
|
2618
2618
|
...ce !== void 0 && { conditions: ce }
|
|
2619
2619
|
});
|
|
2620
2620
|
}
|
|
2621
2621
|
else if (j >= 0) {
|
|
2622
|
-
const
|
|
2623
|
-
|
|
2622
|
+
const W = { ...V[j] }, B = W.actions.filter((Z) => Z !== C);
|
|
2623
|
+
B.length === 0 ? V.splice(j, 1) : (W.actions = B, V[j] = W);
|
|
2624
2624
|
}
|
|
2625
|
-
const G = t.value.find((
|
|
2626
|
-
G && Mn(
|
|
2625
|
+
const G = t.value.find((W) => W.subject === m);
|
|
2626
|
+
G && Mn(V, m, G.actions), r("update:model-value", V);
|
|
2627
2627
|
}
|
|
2628
2628
|
function k(m, C) {
|
|
2629
2629
|
const U = m.options.filter(
|
|
2630
|
-
(
|
|
2630
|
+
(V) => I(m, V.value, C)
|
|
2631
2631
|
);
|
|
2632
2632
|
return U.length === 0 ? !1 : U.every(
|
|
2633
|
-
(
|
|
2633
|
+
(V) => S(m, V.value, C) || b(m, V.value, C)
|
|
2634
2634
|
);
|
|
2635
2635
|
}
|
|
2636
2636
|
function L(m, C) {
|
|
@@ -2638,22 +2638,22 @@ function jo(e, t, n, r) {
|
|
|
2638
2638
|
(j) => I(m, j.value, C)
|
|
2639
2639
|
);
|
|
2640
2640
|
if (U.length === 0) return !1;
|
|
2641
|
-
const
|
|
2641
|
+
const V = U.filter(
|
|
2642
2642
|
(j) => S(m, j.value, C) || b(m, j.value, C)
|
|
2643
2643
|
).length;
|
|
2644
|
-
return
|
|
2644
|
+
return V > 0 && V < U.length;
|
|
2645
2645
|
}
|
|
2646
2646
|
function X(m, C, U) {
|
|
2647
|
-
const
|
|
2647
|
+
const V = [...e.value];
|
|
2648
2648
|
for (const j of m.options) {
|
|
2649
2649
|
if (!I(m, j.value, C)) continue;
|
|
2650
|
-
const G = j.value,
|
|
2650
|
+
const G = j.value, W = V.findIndex(
|
|
2651
2651
|
(Z) => Z.subject === G && !Z.inverted
|
|
2652
2652
|
);
|
|
2653
2653
|
if (U)
|
|
2654
|
-
if (
|
|
2655
|
-
const Z = { ...W
|
|
2656
|
-
ne.add(C), Z.actions = Array.from(ne), W
|
|
2654
|
+
if (W >= 0) {
|
|
2655
|
+
const Z = { ...V[W] }, ne = new Set(Z.actions);
|
|
2656
|
+
ne.add(C), Z.actions = Array.from(ne), V[W] = Z;
|
|
2657
2657
|
} else {
|
|
2658
2658
|
const Z = t.value.find((fe) => fe.subject === G);
|
|
2659
2659
|
if (!Z) continue;
|
|
@@ -2663,20 +2663,20 @@ function jo(e, t, n, r) {
|
|
|
2663
2663
|
isCategoryCover: _e,
|
|
2664
2664
|
...ce
|
|
2665
2665
|
} = Z, se = w(m, G);
|
|
2666
|
-
|
|
2666
|
+
V.push({
|
|
2667
2667
|
...ce,
|
|
2668
2668
|
actions: [C],
|
|
2669
2669
|
...se !== void 0 && { conditions: se }
|
|
2670
2670
|
});
|
|
2671
2671
|
}
|
|
2672
|
-
else if (
|
|
2673
|
-
const Z = { ...W
|
|
2674
|
-
ne.length === 0 ?
|
|
2672
|
+
else if (W >= 0) {
|
|
2673
|
+
const Z = { ...V[W] }, ne = Z.actions.filter((Q) => Q !== C);
|
|
2674
|
+
ne.length === 0 ? V.splice(W, 1) : (Z.actions = ne, V[W] = Z);
|
|
2675
2675
|
}
|
|
2676
|
-
const
|
|
2677
|
-
|
|
2676
|
+
const B = t.value.find((Z) => Z.subject === G);
|
|
2677
|
+
B && Mn(V, G, B.actions);
|
|
2678
2678
|
}
|
|
2679
|
-
r("update:model-value",
|
|
2679
|
+
r("update:model-value", V);
|
|
2680
2680
|
}
|
|
2681
2681
|
function x(m) {
|
|
2682
2682
|
const C = `permissionSet.actionLabels.${m}`, U = Po[m] ?? m.charAt(0).toUpperCase() + m.slice(1);
|
|
@@ -2685,7 +2685,7 @@ function jo(e, t, n, r) {
|
|
|
2685
2685
|
return {
|
|
2686
2686
|
categoryGroups: u,
|
|
2687
2687
|
toggleCategory: i,
|
|
2688
|
-
isAllManageChecked:
|
|
2688
|
+
isAllManageChecked: y,
|
|
2689
2689
|
isAllManageIndeterminate: T,
|
|
2690
2690
|
toggleAllManage: N,
|
|
2691
2691
|
isManageChecked: F,
|
|
@@ -2703,7 +2703,7 @@ function jo(e, t, n, r) {
|
|
|
2703
2703
|
actionLabel: x
|
|
2704
2704
|
};
|
|
2705
2705
|
}
|
|
2706
|
-
const Uo = { class: "flex flex-col gap-16" },
|
|
2706
|
+
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"], Yo = { class: "flex justify-center" }, Bo = { class: "flex items-center min-w-0 gap-8" }, Zo = ["title", "onClick"], Xo = { class: "flex justify-center" }, Ho = /* @__PURE__ */ Ae({
|
|
2707
2707
|
__name: "BasePermission",
|
|
2708
2708
|
props: {
|
|
2709
2709
|
modelValue: {
|
|
@@ -2725,12 +2725,12 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2725
2725
|
},
|
|
2726
2726
|
emits: ["update:model-value"],
|
|
2727
2727
|
setup(e, { emit: t }) {
|
|
2728
|
-
const n = e, r = t, { t: l } = He(), a =
|
|
2728
|
+
const n = e, r = t, { t: l } = He(), a = z(() => [...Gn, ...n.additionalPermissions]), {
|
|
2729
2729
|
categoryGroups: d,
|
|
2730
2730
|
isAllManageChecked: u,
|
|
2731
2731
|
isAllManageIndeterminate: i,
|
|
2732
2732
|
toggleAllManage: g,
|
|
2733
|
-
isManageChecked:
|
|
2733
|
+
isManageChecked: y,
|
|
2734
2734
|
isManageIndeterminate: T,
|
|
2735
2735
|
toggleManage: N,
|
|
2736
2736
|
isActionChecked: F,
|
|
@@ -2753,19 +2753,19 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2753
2753
|
return L === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: L });
|
|
2754
2754
|
}
|
|
2755
2755
|
function p(k, L) {
|
|
2756
|
-
return
|
|
2756
|
+
return y(k, L) || D(k, L) ? !0 : k.actionColumns.some(
|
|
2757
2757
|
(X) => w(k, L, X) && (F(k, L, X) || A(k, L, X))
|
|
2758
2758
|
);
|
|
2759
2759
|
}
|
|
2760
2760
|
return (k, L) => {
|
|
2761
2761
|
const X = De("FmCheckbox");
|
|
2762
2762
|
return J(), ie("div", Uo, [
|
|
2763
|
-
(J(!0), ie(ke, null,
|
|
2763
|
+
(J(!0), ie(ke, null, Ee(H(d), (x) => (J(), Ne(Xt, {
|
|
2764
2764
|
key: x.category,
|
|
2765
2765
|
subtitle: I(x)
|
|
2766
2766
|
}, {
|
|
2767
2767
|
title: de(() => [
|
|
2768
|
-
ae("p",
|
|
2768
|
+
ae("p", Vo, Oe(x.label), 1)
|
|
2769
2769
|
]),
|
|
2770
2770
|
default: de(() => [
|
|
2771
2771
|
ae("div", xo, [
|
|
@@ -2776,8 +2776,8 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2776
2776
|
})
|
|
2777
2777
|
}, [
|
|
2778
2778
|
L[0] || (L[0] = ae("div", null, null, -1)),
|
|
2779
|
-
ae("div",
|
|
2780
|
-
(J(!0), ie(ke, null,
|
|
2779
|
+
ae("div", Wo, Oe(H(l)("team.memberForm.permissions.columnManage")), 1),
|
|
2780
|
+
(J(!0), ie(ke, null, Ee(x.actionColumns, (m) => (J(), ie("div", {
|
|
2781
2781
|
key: `header-${m}`,
|
|
2782
2782
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2783
2783
|
}, Oe(H(b)(m)), 1))), 128))
|
|
@@ -2792,7 +2792,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2792
2792
|
class: "cursor-pointer font-semibold",
|
|
2793
2793
|
onClick: (m) => !e.disable && H(g)(x)
|
|
2794
2794
|
}, Oe(H(l)("team.labels.all")), 9, Go),
|
|
2795
|
-
ae("div",
|
|
2795
|
+
ae("div", Yo, [
|
|
2796
2796
|
ue(X, {
|
|
2797
2797
|
"model-value": H(u)(x),
|
|
2798
2798
|
indeterminate: H(i)(x),
|
|
@@ -2803,7 +2803,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2803
2803
|
"onUpdate:modelValue": (m) => H(g)(x)
|
|
2804
2804
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2805
2805
|
]),
|
|
2806
|
-
(J(!0), ie(ke, null,
|
|
2806
|
+
(J(!0), ie(ke, null, Ee(x.actionColumns, (m) => (J(), ie("div", {
|
|
2807
2807
|
key: `all-${m}`,
|
|
2808
2808
|
class: "flex justify-center"
|
|
2809
2809
|
}, [
|
|
@@ -2819,18 +2819,18 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2819
2819
|
]))), 128))
|
|
2820
2820
|
], 4),
|
|
2821
2821
|
L[1] || (L[1] = ae("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2822
|
-
(J(!0), ie(ke, null,
|
|
2822
|
+
(J(!0), ie(ke, null, Ee(x.options, (m) => (J(), ie("div", {
|
|
2823
2823
|
key: m.optionKey,
|
|
2824
2824
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2825
2825
|
style: nt({
|
|
2826
2826
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2827
2827
|
})
|
|
2828
2828
|
}, [
|
|
2829
|
-
ae("div",
|
|
2829
|
+
ae("div", Bo, [
|
|
2830
2830
|
ae("span", {
|
|
2831
2831
|
class: "block truncate cursor-pointer",
|
|
2832
2832
|
title: m.label,
|
|
2833
|
-
onClick: (C) => !e.disable && !H(D)(x, m.value) && H(N)(x, m.value, !H(
|
|
2833
|
+
onClick: (C) => !e.disable && !H(D)(x, m.value) && H(N)(x, m.value, !H(y)(x, m.value))
|
|
2834
2834
|
}, Oe(m.label), 9, Zo),
|
|
2835
2835
|
Se(k.$slots, `checkbox-${m.value}-append`, {
|
|
2836
2836
|
option: m,
|
|
@@ -2845,7 +2845,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2845
2845
|
]),
|
|
2846
2846
|
ae("div", Xo, [
|
|
2847
2847
|
ue(X, {
|
|
2848
|
-
"model-value": H(
|
|
2848
|
+
"model-value": H(y)(x, m.value) || H(D)(x, m.value),
|
|
2849
2849
|
value: m.value,
|
|
2850
2850
|
disabled: e.disable || H(D)(x, m.value),
|
|
2851
2851
|
indeterminate: H(T)(x, m.value),
|
|
@@ -2853,7 +2853,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2853
2853
|
"onUpdate:modelValue": (C) => H(N)(x, m.value, C)
|
|
2854
2854
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2855
2855
|
]),
|
|
2856
|
-
(J(!0), ie(ke, null,
|
|
2856
|
+
(J(!0), ie(ke, null, Ee(x.actionColumns, (C) => (J(), ie("div", {
|
|
2857
2857
|
key: `${m.optionKey}-${C}`,
|
|
2858
2858
|
class: "flex justify-center"
|
|
2859
2859
|
}, [
|
|
@@ -2877,10 +2877,10 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2877
2877
|
}), $o = { class: "space-y-16" }, Jo = {
|
|
2878
2878
|
key: 0,
|
|
2879
2879
|
class: "flex fm-typo-en-title-sm-600"
|
|
2880
|
-
},
|
|
2880
|
+
}, Ko = {
|
|
2881
2881
|
key: 0,
|
|
2882
2882
|
class: "q-mr-xs text-red col"
|
|
2883
|
-
},
|
|
2883
|
+
}, zo = { class: "form-input" }, Qo = /* @__PURE__ */ Ae({
|
|
2884
2884
|
__name: "AppForm",
|
|
2885
2885
|
props: {
|
|
2886
2886
|
title: {
|
|
@@ -2902,13 +2902,13 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2902
2902
|
Se(n.$slots, "top", {}, () => [
|
|
2903
2903
|
t.title ? (J(), ie("div", Jo, [
|
|
2904
2904
|
ae("div", null, [
|
|
2905
|
-
t.required ? (J(), ie("span",
|
|
2905
|
+
t.required ? (J(), ie("span", Ko, "*")) : Me("", !0),
|
|
2906
2906
|
_r(Oe(t.title), 1)
|
|
2907
2907
|
]),
|
|
2908
2908
|
Se(n.$slots, "title-right")
|
|
2909
2909
|
])) : Me("", !0)
|
|
2910
2910
|
]),
|
|
2911
|
-
ae("div",
|
|
2911
|
+
ae("div", zo, [
|
|
2912
2912
|
Se(n.$slots, "default")
|
|
2913
2913
|
])
|
|
2914
2914
|
]));
|
|
@@ -2974,13 +2974,13 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2974
2974
|
},
|
|
2975
2975
|
emits: ["update:model-value"],
|
|
2976
2976
|
setup(e, { emit: t }) {
|
|
2977
|
-
const n = e, r = t, { t: l } = He(), a = rt(!1), d = pr(), u =
|
|
2977
|
+
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-${Ar(6)}`, g = z(() => u.value !== !0), y = z(
|
|
2978
2978
|
() => n.modelValue.filter((A) => n.options.some((w) => w.value === A))
|
|
2979
|
-
), T =
|
|
2979
|
+
), T = z(
|
|
2980
2980
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2981
|
-
), N =
|
|
2981
|
+
), N = z(() => n.options.length > 0 && n.options.length === y.value.length);
|
|
2982
2982
|
function F() {
|
|
2983
|
-
const A = n.modelValue.filter((w) => !
|
|
2983
|
+
const A = n.modelValue.filter((w) => !y.value.includes(w));
|
|
2984
2984
|
if (N.value === !0)
|
|
2985
2985
|
r("update:model-value", A);
|
|
2986
2986
|
else {
|
|
@@ -3014,7 +3014,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3014
3014
|
value: T.value,
|
|
3015
3015
|
"onUpdate:modelValue": F
|
|
3016
3016
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Me("", !0),
|
|
3017
|
-
(J(!0), ie(ke, null,
|
|
3017
|
+
(J(!0), ie(ke, null, Ee(e.options, (h, S) => (J(), ie("div", {
|
|
3018
3018
|
key: h.value,
|
|
3019
3019
|
style: nt(`margin-bottom: ${S < e.options.length - 1 ? n.gutter : 0}px`),
|
|
3020
3020
|
class: qe(S < e.options.length - 1 ? "q-mb-sm" : "")
|
|
@@ -3087,7 +3087,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3087
3087
|
},
|
|
3088
3088
|
emits: ["update:model-value"],
|
|
3089
3089
|
setup(e, { emit: t }) {
|
|
3090
|
-
const n = e, r = t, { t: l } = He(), a =
|
|
3090
|
+
const n = e, r = t, { t: l } = He(), a = z(() => [
|
|
3091
3091
|
{
|
|
3092
3092
|
label: l("team.memberForm.permissions.includedFuture", { context: n.context }),
|
|
3093
3093
|
value: ht,
|
|
@@ -3095,18 +3095,18 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3095
3095
|
disabled: !!n.modelValue && n.options.length > n.modelValue.length
|
|
3096
3096
|
},
|
|
3097
3097
|
...n.options.filter(
|
|
3098
|
-
(
|
|
3098
|
+
(y) => y.label.toLocaleLowerCase().includes(g.value.toLocaleLowerCase())
|
|
3099
3099
|
)
|
|
3100
|
-
]), d =
|
|
3101
|
-
const
|
|
3102
|
-
return
|
|
3100
|
+
]), d = z(() => n.modelValue ? n.modelValue : [ht, ...n.options.map((y) => y.value)]), u = z(() => {
|
|
3101
|
+
const y = d.value.filter((T) => T !== ht).length;
|
|
3102
|
+
return y === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: y });
|
|
3103
3103
|
});
|
|
3104
|
-
function i(
|
|
3105
|
-
const T =
|
|
3106
|
-
r("update:model-value", T ? null :
|
|
3104
|
+
function i(y) {
|
|
3105
|
+
const T = y.length === a.value.length;
|
|
3106
|
+
r("update:model-value", T ? null : y.filter((N) => N !== ht));
|
|
3107
3107
|
}
|
|
3108
3108
|
const g = rt("");
|
|
3109
|
-
return (
|
|
3109
|
+
return (y, T) => {
|
|
3110
3110
|
const N = De("fm-search");
|
|
3111
3111
|
return J(), Ne(Xt, { subtitle: u.value }, {
|
|
3112
3112
|
title: de(() => [
|
|
@@ -3131,10 +3131,10 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3131
3131
|
class: "mt-16",
|
|
3132
3132
|
"onUpdate:modelValue": i
|
|
3133
3133
|
}, et({ _: 2 }, [
|
|
3134
|
-
|
|
3134
|
+
Ee(a.value, (F) => ({
|
|
3135
3135
|
name: `checkbox-${F.value}-append`,
|
|
3136
3136
|
fn: de(({ option: D }) => [
|
|
3137
|
-
Se(
|
|
3137
|
+
Se(y.$slots, `checkbox-${F.value}-append`, { option: D })
|
|
3138
3138
|
])
|
|
3139
3139
|
}))
|
|
3140
3140
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3165,7 +3165,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3165
3165
|
},
|
|
3166
3166
|
emits: ["update:model-value"],
|
|
3167
3167
|
setup(e, { emit: t }) {
|
|
3168
|
-
const n = e, r = t, { t: l } = He(), a =
|
|
3168
|
+
const n = e, r = t, { t: l } = He(), a = z(() => {
|
|
3169
3169
|
const g = n.restaurantIds;
|
|
3170
3170
|
return [
|
|
3171
3171
|
{
|
|
@@ -3173,21 +3173,21 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3173
3173
|
value: bt,
|
|
3174
3174
|
disabled: !!n.modelValue && n.roles.length > n.modelValue.length
|
|
3175
3175
|
},
|
|
3176
|
-
...n.roles.map((
|
|
3177
|
-
label:
|
|
3178
|
-
value:
|
|
3179
|
-
disabled: !!g &&
|
|
3176
|
+
...n.roles.map((y) => ({
|
|
3177
|
+
label: y.name,
|
|
3178
|
+
value: y._id,
|
|
3179
|
+
disabled: !!g && y.restaurants.every(({ id: T }) => !g.includes(T))
|
|
3180
3180
|
}))
|
|
3181
3181
|
];
|
|
3182
|
-
}), d =
|
|
3183
|
-
const g = d.value.filter((
|
|
3182
|
+
}), d = z(() => n.modelValue ? n.modelValue : [bt, ...n.roles.map((g) => g._id)]), u = z(() => {
|
|
3183
|
+
const g = d.value.filter((y) => y !== bt).length;
|
|
3184
3184
|
return g === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: g });
|
|
3185
3185
|
});
|
|
3186
3186
|
function i(g) {
|
|
3187
|
-
const
|
|
3188
|
-
r("update:model-value",
|
|
3187
|
+
const y = g.length === a.value.length;
|
|
3188
|
+
r("update:model-value", y ? null : g.filter((T) => T !== bt));
|
|
3189
3189
|
}
|
|
3190
|
-
return (g,
|
|
3190
|
+
return (g, y) => (J(), Ne(Xt, { subtitle: u.value }, {
|
|
3191
3191
|
title: de(() => [
|
|
3192
3192
|
ae("p", na, Oe(H(l)("team.memberForm.permissions.roles")), 1)
|
|
3193
3193
|
]),
|
|
@@ -3202,7 +3202,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3202
3202
|
class: "mt-16",
|
|
3203
3203
|
"onUpdate:modelValue": i
|
|
3204
3204
|
}, et({ _: 2 }, [
|
|
3205
|
-
|
|
3205
|
+
Ee(a.value, (T) => ({
|
|
3206
3206
|
name: `checkbox-${T.value}-append`,
|
|
3207
3207
|
fn: de(({ option: N }) => [
|
|
3208
3208
|
Se(g.$slots, `checkbox-${T.value}-append`, { option: N })
|
|
@@ -3306,7 +3306,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3306
3306
|
}
|
|
3307
3307
|
};
|
|
3308
3308
|
function Pn(e, t) {
|
|
3309
|
-
return
|
|
3309
|
+
return Yn(e, Bn).some(
|
|
3310
3310
|
(n) => n.subject === t && !n.inverted && n.actions.includes("manage")
|
|
3311
3311
|
);
|
|
3312
3312
|
}
|
|
@@ -3331,22 +3331,22 @@ function ia(e, t, n, r) {
|
|
|
3331
3331
|
);
|
|
3332
3332
|
let u = [...n];
|
|
3333
3333
|
for (const i of l)
|
|
3334
|
-
a.has(i) || (d.has(i) && (u = u.filter((
|
|
3334
|
+
a.has(i) || (d.has(i) && (u = u.filter((y) => y.subject !== i)), (!d.has(i) || Pn(u, i)) && (u = jn(u, i)));
|
|
3335
3335
|
for (const i of a)
|
|
3336
3336
|
if (!l.has(i)) {
|
|
3337
|
-
const g = u.some((
|
|
3338
|
-
if (u = u.filter((
|
|
3339
|
-
const
|
|
3337
|
+
const g = u.some((y) => y.subject === i && y.inverted);
|
|
3338
|
+
if (u = u.filter((y) => !(y.subject === i && y.inverted)), !g && !d.has(i)) {
|
|
3339
|
+
const y = t.find(
|
|
3340
3340
|
(N) => N.subject === i && !N.inverted
|
|
3341
3341
|
), T = r(i);
|
|
3342
|
-
T &&
|
|
3342
|
+
T && y && u.push(Un(T, y.actions, y.conditions));
|
|
3343
3343
|
}
|
|
3344
3344
|
}
|
|
3345
3345
|
for (const i of a) {
|
|
3346
3346
|
if (!l.has(i)) continue;
|
|
3347
|
-
const g = e.find((D) => D.subject === i && !D.inverted),
|
|
3348
|
-
if (!g || !
|
|
3349
|
-
const T = new Set(g.actions), N = new Set(
|
|
3347
|
+
const g = e.find((D) => D.subject === i && !D.inverted), y = t.find((D) => D.subject === i && !D.inverted);
|
|
3348
|
+
if (!g || !y) continue;
|
|
3349
|
+
const T = new Set(g.actions), N = new Set(y.actions);
|
|
3350
3350
|
if (T.size === N.size && [...T].every((D) => N.has(D)))
|
|
3351
3351
|
continue;
|
|
3352
3352
|
const F = u.findIndex((D) => D.subject === i && !D.inverted);
|
|
@@ -3388,7 +3388,7 @@ function da(e, t) {
|
|
|
3388
3388
|
function gt(e, t) {
|
|
3389
3389
|
return `${e}::${t.builderKey}`;
|
|
3390
3390
|
}
|
|
3391
|
-
function
|
|
3391
|
+
function We(e) {
|
|
3392
3392
|
try {
|
|
3393
3393
|
return e.conditions ? JSON.parse(e.conditions) : void 0;
|
|
3394
3394
|
} catch {
|
|
@@ -3402,14 +3402,14 @@ function Mt(e, t) {
|
|
|
3402
3402
|
const n = new Set(e.actions);
|
|
3403
3403
|
return n.has(he.Action.manage) ? !0 : t.actions.every((r) => n.has(r));
|
|
3404
3404
|
}
|
|
3405
|
-
function
|
|
3406
|
-
const n =
|
|
3405
|
+
function Bt(e, t) {
|
|
3406
|
+
const n = We(e);
|
|
3407
3407
|
return wt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3408
3408
|
}
|
|
3409
|
-
function
|
|
3409
|
+
function Vn(e, t, n) {
|
|
3410
3410
|
return {
|
|
3411
|
-
...
|
|
3412
|
-
...tt(
|
|
3411
|
+
...Bt(e, n),
|
|
3412
|
+
...tt(We(t), n)
|
|
3413
3413
|
};
|
|
3414
3414
|
}
|
|
3415
3415
|
function fa(e, t, n) {
|
|
@@ -3429,7 +3429,7 @@ function fa(e, t, n) {
|
|
|
3429
3429
|
return ma(e.value, c);
|
|
3430
3430
|
}
|
|
3431
3431
|
function i(c, b) {
|
|
3432
|
-
return tt(
|
|
3432
|
+
return tt(We(c), b);
|
|
3433
3433
|
}
|
|
3434
3434
|
function g(c, b) {
|
|
3435
3435
|
var k;
|
|
@@ -3439,12 +3439,12 @@ function fa(e, t, n) {
|
|
|
3439
3439
|
const p = u(I);
|
|
3440
3440
|
return p ? Object.keys(i(p, b)).length > 0 : !1;
|
|
3441
3441
|
}
|
|
3442
|
-
function
|
|
3442
|
+
function y(c, b) {
|
|
3443
3443
|
if (!g(c, b) || r.value.has(gt(c.subject, b))) return "custom";
|
|
3444
3444
|
if (c.index === null) return "inherit";
|
|
3445
3445
|
const I = e.value[c.index], p = l(c.subject), k = p ? u(p) : void 0;
|
|
3446
3446
|
if (I && k) {
|
|
3447
|
-
const L = tt(
|
|
3447
|
+
const L = tt(We(I), b), X = i(k, b);
|
|
3448
3448
|
if (JSON.stringify(L) === JSON.stringify(X)) return "inherit";
|
|
3449
3449
|
}
|
|
3450
3450
|
return "custom";
|
|
@@ -3460,11 +3460,11 @@ function fa(e, t, n) {
|
|
|
3460
3460
|
}
|
|
3461
3461
|
function N(c, b) {
|
|
3462
3462
|
if (c.index === null) return;
|
|
3463
|
-
const I = [...e.value], p = { ...I[c.index] }, k =
|
|
3463
|
+
const I = [...e.value], p = { ...I[c.index] }, k = Bt(p, b), L = Object.keys(k).length === 0, X = l(c.subject), x = X ? u(X) : void 0, m = x ? Mt(x, p) : !1;
|
|
3464
3464
|
if (L && m)
|
|
3465
3465
|
I.splice(c.index, 1);
|
|
3466
3466
|
else if (x) {
|
|
3467
|
-
const C =
|
|
3467
|
+
const C = Vn(p, x, b);
|
|
3468
3468
|
Object.keys(C).length === 0 ? delete p.conditions : p.conditions = JSON.stringify(C), I[c.index] = p;
|
|
3469
3469
|
} else
|
|
3470
3470
|
L ? delete p.conditions : p.conditions = JSON.stringify(k), I[c.index] = p;
|
|
@@ -3492,7 +3492,7 @@ function fa(e, t, n) {
|
|
|
3492
3492
|
return e.value.filter((I) => {
|
|
3493
3493
|
if (I.inverted) return !1;
|
|
3494
3494
|
const p = I.subject;
|
|
3495
|
-
return p === c || l(p) !== c ? !1 : r.value.has(gt(p, b)) ? !0 : Object.keys(tt(
|
|
3495
|
+
return p === c || l(p) !== c ? !1 : r.value.has(gt(p, b)) ? !0 : Object.keys(tt(We(I), b)).length > 0;
|
|
3496
3496
|
});
|
|
3497
3497
|
}
|
|
3498
3498
|
function w(c, b) {
|
|
@@ -3512,9 +3512,9 @@ function fa(e, t, n) {
|
|
|
3512
3512
|
const X = L.subject;
|
|
3513
3513
|
if (X === p || l(X) !== p)
|
|
3514
3514
|
return k.push(L), k;
|
|
3515
|
-
if (Mt(b, L) && Object.keys(
|
|
3515
|
+
if (Mt(b, L) && Object.keys(Bt(L, I)).length === 0)
|
|
3516
3516
|
return k;
|
|
3517
|
-
const m =
|
|
3517
|
+
const m = Vn(L, b, I);
|
|
3518
3518
|
if (Object.keys(m).length === 0) {
|
|
3519
3519
|
const { conditions: C, ...U } = L;
|
|
3520
3520
|
k.push(U);
|
|
@@ -3524,7 +3524,7 @@ function fa(e, t, n) {
|
|
|
3524
3524
|
}, []);
|
|
3525
3525
|
}
|
|
3526
3526
|
function h(c, b, I, p = {}) {
|
|
3527
|
-
var
|
|
3527
|
+
var V;
|
|
3528
3528
|
const k = [...e.value];
|
|
3529
3529
|
let L = c.index;
|
|
3530
3530
|
const X = b.toCondition(I), x = Object.keys(X).length > 0;
|
|
@@ -3537,8 +3537,8 @@ function fa(e, t, n) {
|
|
|
3537
3537
|
const G = t.value.find((Q) => Q.subject === c.subject);
|
|
3538
3538
|
if (!G) return;
|
|
3539
3539
|
const {
|
|
3540
|
-
category:
|
|
3541
|
-
showByFeatureFlag:
|
|
3540
|
+
category: W,
|
|
3541
|
+
showByFeatureFlag: B,
|
|
3542
3542
|
isCategoryCover: Z,
|
|
3543
3543
|
...ne
|
|
3544
3544
|
} = G;
|
|
@@ -3552,28 +3552,28 @@ function fa(e, t, n) {
|
|
|
3552
3552
|
m.actions = [
|
|
3553
3553
|
.../* @__PURE__ */ new Set([...m.actions, ...c.actions])
|
|
3554
3554
|
];
|
|
3555
|
-
const C =
|
|
3555
|
+
const C = We(m), U = wt(C, [{ builder: b, formValue: I }]);
|
|
3556
3556
|
if (Object.keys(U).length === 0 ? delete m.conditions : m.conditions = JSON.stringify(U), k[L] = m, sn(c.subject, t.value)) {
|
|
3557
3557
|
const j = A(c.subject, b), G = () => {
|
|
3558
|
-
var
|
|
3559
|
-
w(c.subject, b), n(f(k, m, b)), (
|
|
3560
|
-
},
|
|
3561
|
-
var
|
|
3562
|
-
n(k), (
|
|
3558
|
+
var B;
|
|
3559
|
+
w(c.subject, b), n(f(k, m, b)), (B = p.afterCommit) == null || B.call(p);
|
|
3560
|
+
}, W = () => {
|
|
3561
|
+
var B;
|
|
3562
|
+
n(k), (B = p.afterCommit) == null || B.call(p);
|
|
3563
3563
|
};
|
|
3564
3564
|
if (j.length === 0) {
|
|
3565
3565
|
G();
|
|
3566
3566
|
return;
|
|
3567
3567
|
}
|
|
3568
|
-
p.onOverridesConflict ? p.onOverridesConflict({ override: G, keep:
|
|
3568
|
+
p.onOverridesConflict ? p.onOverridesConflict({ override: G, keep: W }) : W();
|
|
3569
3569
|
return;
|
|
3570
3570
|
}
|
|
3571
|
-
n(k), (
|
|
3571
|
+
n(k), (V = p.afterCommit) == null || V.call(p);
|
|
3572
3572
|
}
|
|
3573
3573
|
function S(c, b, I = {}) {
|
|
3574
3574
|
if (b.length === 0) return;
|
|
3575
3575
|
const p = [...e.value];
|
|
3576
|
-
let k = p.findIndex((j) => !j.inverted && j.subject === c.subject), L = k === -1 ? void 0 : { ...p[k] }, X =
|
|
3576
|
+
let k = p.findIndex((j) => !j.inverted && j.subject === c.subject), L = k === -1 ? void 0 : { ...p[k] }, X = We(L ?? {}) ?? {};
|
|
3577
3577
|
for (const j of b) {
|
|
3578
3578
|
const G = j.mode === "inherit" ? j.builder.fromCondition(void 0) : j.form;
|
|
3579
3579
|
X = wt(X, [{ builder: j.builder, formValue: G }]);
|
|
@@ -3584,8 +3584,8 @@ function fa(e, t, n) {
|
|
|
3584
3584
|
if (!j) return;
|
|
3585
3585
|
const {
|
|
3586
3586
|
category: G,
|
|
3587
|
-
showByFeatureFlag:
|
|
3588
|
-
isCategoryCover:
|
|
3587
|
+
showByFeatureFlag: W,
|
|
3588
|
+
isCategoryCover: B,
|
|
3589
3589
|
...Z
|
|
3590
3590
|
} = j;
|
|
3591
3591
|
L = {
|
|
@@ -3601,10 +3601,10 @@ function fa(e, t, n) {
|
|
|
3601
3601
|
if (L.actions = [
|
|
3602
3602
|
.../* @__PURE__ */ new Set([...L.actions, ...c.actions])
|
|
3603
3603
|
], G)
|
|
3604
|
-
for (const
|
|
3605
|
-
|
|
3604
|
+
for (const B of b)
|
|
3605
|
+
B.mode === "inherit" && (X = {
|
|
3606
3606
|
...X,
|
|
3607
|
-
...tt(
|
|
3607
|
+
...tt(We(G), B.builder)
|
|
3608
3608
|
});
|
|
3609
3609
|
Object.keys(X).length === 0 ? delete L.conditions : L.conditions = JSON.stringify(X), p[k] = L;
|
|
3610
3610
|
}
|
|
@@ -3612,8 +3612,8 @@ function fa(e, t, n) {
|
|
|
3612
3612
|
const m = () => {
|
|
3613
3613
|
const j = new Set(r.value);
|
|
3614
3614
|
for (const G of b) {
|
|
3615
|
-
const
|
|
3616
|
-
G.mode === "custom" ? j.add(
|
|
3615
|
+
const W = gt(c.subject, G.builder);
|
|
3616
|
+
G.mode === "custom" ? j.add(W) : j.delete(W);
|
|
3617
3617
|
}
|
|
3618
3618
|
r.value = j;
|
|
3619
3619
|
}, C = (j) => {
|
|
@@ -3624,23 +3624,23 @@ function fa(e, t, n) {
|
|
|
3624
3624
|
C(p);
|
|
3625
3625
|
return;
|
|
3626
3626
|
}
|
|
3627
|
-
const U = b.map((j) => j.builder).filter((j) => A(c.subject, j).length > 0),
|
|
3627
|
+
const U = b.map((j) => j.builder).filter((j) => A(c.subject, j).length > 0), V = () => {
|
|
3628
3628
|
let j = p;
|
|
3629
|
-
for (const G of b.map((
|
|
3629
|
+
for (const G of b.map((W) => W.builder))
|
|
3630
3630
|
w(c.subject, G), j = f(j, L, G);
|
|
3631
3631
|
C(j);
|
|
3632
3632
|
};
|
|
3633
3633
|
if (U.length > 0 && I.onOverridesConflict) {
|
|
3634
|
-
I.onOverridesConflict({ override:
|
|
3634
|
+
I.onOverridesConflict({ override: V, keep: () => C(p) });
|
|
3635
3635
|
return;
|
|
3636
3636
|
}
|
|
3637
|
-
U.length > 0 ? C(p) :
|
|
3637
|
+
U.length > 0 ? C(p) : V();
|
|
3638
3638
|
}
|
|
3639
3639
|
return {
|
|
3640
3640
|
getCoverSubject: l,
|
|
3641
3641
|
coverLabel: d,
|
|
3642
3642
|
shouldShowInheritToggle: g,
|
|
3643
|
-
inheritMode:
|
|
3643
|
+
inheritMode: y,
|
|
3644
3644
|
setInheritMode: F,
|
|
3645
3645
|
inheritedSummary: T,
|
|
3646
3646
|
getEffectiveActions: D,
|
|
@@ -3648,7 +3648,7 @@ function fa(e, t, n) {
|
|
|
3648
3648
|
applyConditionDrafts: S
|
|
3649
3649
|
};
|
|
3650
3650
|
}
|
|
3651
|
-
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" },
|
|
3651
|
+
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", wa = /* @__PURE__ */ Ae({
|
|
3652
3652
|
__name: "PortalPermissionEditor",
|
|
3653
3653
|
props: /* @__PURE__ */ tn({
|
|
3654
3654
|
disable: {
|
|
@@ -3665,13 +3665,13 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3665
3665
|
}),
|
|
3666
3666
|
emits: /* @__PURE__ */ tn(["permissionChanged"], ["update:modelValue"]),
|
|
3667
3667
|
setup(e, { emit: t }) {
|
|
3668
|
-
const n = vr(e, "modelValue"), r = e, l = t, { t: a } = He(), d = hr(), u = br(), { breakpoints: i } = gr(), g =
|
|
3669
|
-
fetchCustomReportPermissions:
|
|
3668
|
+
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), {
|
|
3669
|
+
fetchCustomReportPermissions: y,
|
|
3670
3670
|
customReportPermissions: T
|
|
3671
|
-
} = Ir(), N =
|
|
3671
|
+
} = Ir(), N = z(() => [
|
|
3672
3672
|
...Gn,
|
|
3673
3673
|
...T.value
|
|
3674
|
-
]), F =
|
|
3674
|
+
]), F = z(() => {
|
|
3675
3675
|
const O = d.currentBusiness.value, s = d.currentCountry.value, o = s instanceof Object ? s.code : s;
|
|
3676
3676
|
return da(O, o);
|
|
3677
3677
|
});
|
|
@@ -3686,9 +3686,9 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3686
3686
|
}
|
|
3687
3687
|
);
|
|
3688
3688
|
}
|
|
3689
|
-
const w =
|
|
3689
|
+
const w = z(() => {
|
|
3690
3690
|
const O = N.value.filter((o) => !c.includes(o.subject)).map((o) => o.subject);
|
|
3691
|
-
return
|
|
3691
|
+
return yr(
|
|
3692
3692
|
r.inheritPermissions.map((o) => ({
|
|
3693
3693
|
...o,
|
|
3694
3694
|
permissions: o.permissions.filter((_) => O.includes(_.subject))
|
|
@@ -3697,7 +3697,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3697
3697
|
id: o.subject,
|
|
3698
3698
|
setNames: o.setNames
|
|
3699
3699
|
}));
|
|
3700
|
-
}), f =
|
|
3700
|
+
}), f = z(() => {
|
|
3701
3701
|
const O = r.inheritPermissions.map((s) => ({
|
|
3702
3702
|
...s,
|
|
3703
3703
|
permissions: s.permissions.filter(
|
|
@@ -3709,7 +3709,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3709
3709
|
"warehouseId",
|
|
3710
3710
|
I.value.map((s) => s._id)
|
|
3711
3711
|
);
|
|
3712
|
-
}), h =
|
|
3712
|
+
}), h = z(() => {
|
|
3713
3713
|
const O = r.inheritPermissions.map((s) => ({
|
|
3714
3714
|
...s,
|
|
3715
3715
|
permissions: s.permissions.filter(
|
|
@@ -3721,7 +3721,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3721
3721
|
"restaurantId",
|
|
3722
3722
|
X.value.map((s) => s._id)
|
|
3723
3723
|
);
|
|
3724
|
-
}), S =
|
|
3724
|
+
}), S = z(() => {
|
|
3725
3725
|
const O = r.inheritPermissions.map((s) => ({
|
|
3726
3726
|
...s,
|
|
3727
3727
|
permissions: s.permissions.filter((o) => o.subject === he.Subject.Business.role)
|
|
@@ -3736,13 +3736,13 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3736
3736
|
he.Subject.Business.role,
|
|
3737
3737
|
he.Subject.Restaurant.restaurant,
|
|
3738
3738
|
he.Subject.Business.inventory_stock
|
|
3739
|
-
], b =
|
|
3739
|
+
], b = z(() => {
|
|
3740
3740
|
var s;
|
|
3741
3741
|
const O = (s = n.value) == null ? void 0 : s.find(
|
|
3742
3742
|
(o) => o.subject === he.Subject.Business.inventory_stock
|
|
3743
3743
|
);
|
|
3744
3744
|
return O ? O.conditions ? JSON.parse(O.conditions).warehouseId.$in : null : [];
|
|
3745
|
-
}), I = rt([]), p =
|
|
3745
|
+
}), I = rt([]), p = z(() => I.value.map((O) => ({
|
|
3746
3746
|
label: O.profile.name,
|
|
3747
3747
|
value: O._id
|
|
3748
3748
|
})));
|
|
@@ -3763,15 +3763,15 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3763
3763
|
}
|
|
3764
3764
|
return o;
|
|
3765
3765
|
}
|
|
3766
|
-
const { restaurants: X } = d, x = Mr().roles, m =
|
|
3766
|
+
const { restaurants: X } = d, x = Mr().roles, m = z(() => X.value.map((O) => ({
|
|
3767
3767
|
label: `${O.profile.code ? O.profile.code + "-" : ""}${O.profile.name}`,
|
|
3768
3768
|
value: O._id
|
|
3769
|
-
}))), C =
|
|
3770
|
-
function
|
|
3769
|
+
}))), C = z(() => X.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));
|
|
3770
|
+
function V(O) {
|
|
3771
3771
|
const s = G(n.value, O);
|
|
3772
3772
|
n.value = s;
|
|
3773
3773
|
}
|
|
3774
|
-
const j =
|
|
3774
|
+
const j = z(() => Nr(n.value));
|
|
3775
3775
|
function G(O, s) {
|
|
3776
3776
|
var _;
|
|
3777
3777
|
let o = It(
|
|
@@ -3796,18 +3796,18 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3796
3796
|
const R = [
|
|
3797
3797
|
...new Set(s.map((P) => C.value[P]).flatMap((P) => P))
|
|
3798
3798
|
], M = x.value.map((P) => P._id);
|
|
3799
|
-
R.length !== M.length && (o =
|
|
3799
|
+
R.length !== M.length && (o = B(
|
|
3800
3800
|
o,
|
|
3801
3801
|
(_ = j.value || M) == null ? void 0 : _.filter((P) => R.includes(P))
|
|
3802
3802
|
));
|
|
3803
3803
|
}
|
|
3804
3804
|
return o;
|
|
3805
3805
|
}
|
|
3806
|
-
function
|
|
3807
|
-
const s =
|
|
3806
|
+
function W(O) {
|
|
3807
|
+
const s = B(n.value, O);
|
|
3808
3808
|
n.value = s;
|
|
3809
3809
|
}
|
|
3810
|
-
function
|
|
3810
|
+
function B(O, s) {
|
|
3811
3811
|
let o = It(
|
|
3812
3812
|
O.filter((_) => _.subject !== he.Subject.Business.role)
|
|
3813
3813
|
);
|
|
@@ -3824,12 +3824,12 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3824
3824
|
xn(async () => {
|
|
3825
3825
|
await Promise.all([
|
|
3826
3826
|
la.readWarehouses().then((O) => I.value = O),
|
|
3827
|
-
|
|
3827
|
+
y()
|
|
3828
3828
|
]);
|
|
3829
3829
|
});
|
|
3830
|
-
const Z =
|
|
3830
|
+
const Z = z(() => Yn(
|
|
3831
3831
|
n.value,
|
|
3832
|
-
|
|
3832
|
+
Bn
|
|
3833
3833
|
).filter((o) => {
|
|
3834
3834
|
const _ = o.source;
|
|
3835
3835
|
return (_ == null ? void 0 : _.type) !== "systemPermissionSet" ? !0 : o.actions.includes("manage");
|
|
@@ -3850,9 +3850,9 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3850
3850
|
D
|
|
3851
3851
|
);
|
|
3852
3852
|
}
|
|
3853
|
-
const Q =
|
|
3853
|
+
const Q = z(() => new Set(
|
|
3854
3854
|
N.value.filter((O) => rn(O.subject).length > 0).map((O) => O.subject)
|
|
3855
|
-
)), _e =
|
|
3855
|
+
)), _e = z(() => {
|
|
3856
3856
|
const O = /* @__PURE__ */ new Map();
|
|
3857
3857
|
return Z.value.map((s) => ({
|
|
3858
3858
|
rule: s,
|
|
@@ -3906,7 +3906,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3906
3906
|
const _ = O.sections.find((R) => R.builder.builderKey === s.builderKey);
|
|
3907
3907
|
return _ == null ? void 0 : _.formValue;
|
|
3908
3908
|
}
|
|
3909
|
-
function
|
|
3909
|
+
function K(O, s) {
|
|
3910
3910
|
const o = se.getDraft({ subject: O.subject, builderKey: s.builderKey });
|
|
3911
3911
|
return o != null && o.inheritMode ? o.inheritMode : ce.inheritMode(O, s);
|
|
3912
3912
|
}
|
|
@@ -3919,7 +3919,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3919
3919
|
{ subject: O.subject, builderKey: s.builderKey },
|
|
3920
3920
|
{
|
|
3921
3921
|
formValue: o,
|
|
3922
|
-
inheritMode: (_ == null ? void 0 : _.inheritMode) ??
|
|
3922
|
+
inheritMode: (_ == null ? void 0 : _.inheritMode) ?? K(O, s)
|
|
3923
3923
|
}
|
|
3924
3924
|
);
|
|
3925
3925
|
}
|
|
@@ -3936,10 +3936,10 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3936
3936
|
}
|
|
3937
3937
|
);
|
|
3938
3938
|
}
|
|
3939
|
-
function
|
|
3939
|
+
function Ke(O) {
|
|
3940
3940
|
return se.hasDraftsForSubject(O);
|
|
3941
3941
|
}
|
|
3942
|
-
function
|
|
3942
|
+
function Ve(O, s) {
|
|
3943
3943
|
const o = O.sections.flatMap((_) => {
|
|
3944
3944
|
const R = se.getDraft({
|
|
3945
3945
|
subject: O.subject,
|
|
@@ -3951,14 +3951,14 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3951
3951
|
afterCommit: () => {
|
|
3952
3952
|
se.clearDraftsForSubject(O.subject), s();
|
|
3953
3953
|
},
|
|
3954
|
-
onOverridesConflict:
|
|
3954
|
+
onOverridesConflict: Be(O).onOverridesConflict
|
|
3955
3955
|
});
|
|
3956
3956
|
}
|
|
3957
3957
|
function Fe(O) {
|
|
3958
3958
|
return O.sections.some((s) => ce.shouldShowInheritToggle(O, s.builder) ? ce.inheritMode(O, s.builder) === "custom" : Object.keys(s.builder.toCondition(s.formValue)).length > 0);
|
|
3959
3959
|
}
|
|
3960
3960
|
let Ce = !1;
|
|
3961
|
-
function
|
|
3961
|
+
function Be(O, s = {}) {
|
|
3962
3962
|
return {
|
|
3963
3963
|
...s,
|
|
3964
3964
|
onOverridesConflict: ({ override: o, keep: _ }) => {
|
|
@@ -4003,13 +4003,13 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4003
4003
|
"additional-permissions": H(T),
|
|
4004
4004
|
"onUpdate:modelValue": ne
|
|
4005
4005
|
}, et({ _: 2 }, [
|
|
4006
|
-
|
|
4006
|
+
Ee(w.value, (M) => ({
|
|
4007
4007
|
name: `checkbox-${M.id}-append`,
|
|
4008
4008
|
fn: de(() => [
|
|
4009
4009
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
4010
4010
|
])
|
|
4011
4011
|
})),
|
|
4012
|
-
|
|
4012
|
+
Ee(Q.value, (M) => ({
|
|
4013
4013
|
name: `checkbox-${M}-icon`,
|
|
4014
4014
|
fn: de(({ option: P, isEffectiveSelected: v }) => [
|
|
4015
4015
|
v && q(M, P.label) ? (J(), ie(ke, { key: 0 }, [
|
|
@@ -4022,8 +4022,8 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4022
4022
|
"dismiss-away": "",
|
|
4023
4023
|
"z-index": 100,
|
|
4024
4024
|
class: "h-5 flex items-center",
|
|
4025
|
-
"onUpdate:modelValue": (
|
|
4026
|
-
fe.value =
|
|
4025
|
+
"onUpdate:modelValue": (E) => {
|
|
4026
|
+
fe.value = E ? M : null, E || H(se).clearDraftsForSubject(M);
|
|
4027
4027
|
}
|
|
4028
4028
|
}, {
|
|
4029
4029
|
"bottom-sheet-button": de(() => [
|
|
@@ -4041,18 +4041,18 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4041
4041
|
default: de(() => [
|
|
4042
4042
|
ue(Fn, {
|
|
4043
4043
|
entry: q(M, P.label),
|
|
4044
|
-
builders: q(M, P.label).sections.map((
|
|
4044
|
+
builders: q(M, P.label).sections.map((E) => E.builder),
|
|
4045
4045
|
subject: M,
|
|
4046
4046
|
"time-zone": F.value,
|
|
4047
4047
|
"cover-override": H(ce),
|
|
4048
|
-
"inherit-mode-for": (
|
|
4049
|
-
"form-value-for": (
|
|
4050
|
-
"has-changes":
|
|
4048
|
+
"inherit-mode-for": (E) => K(q(M, P.label), E),
|
|
4049
|
+
"form-value-for": (E) => we(q(M, P.label), E),
|
|
4050
|
+
"has-changes": Ke(M),
|
|
4051
4051
|
disable: e.disable,
|
|
4052
4052
|
"full-width": !0,
|
|
4053
|
-
onUpdateInheritMode: ({ builder:
|
|
4054
|
-
onUpdateForm: ({ builder:
|
|
4055
|
-
onApply: (
|
|
4053
|
+
onUpdateInheritMode: ({ builder: E, mode: $ }) => Je(q(M, P.label), E, $),
|
|
4054
|
+
onUpdateForm: ({ builder: E, form: $ }) => pe(q(M, P.label), E, $),
|
|
4055
|
+
onApply: (E) => Ve(q(M, P.label), () => fe.value = null)
|
|
4056
4056
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4057
4057
|
]),
|
|
4058
4058
|
_: 2
|
|
@@ -4060,10 +4060,10 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4060
4060
|
key: 1,
|
|
4061
4061
|
disabled: e.disable,
|
|
4062
4062
|
"z-index": 100,
|
|
4063
|
-
"exclude-el-from-click-outside": [
|
|
4063
|
+
"exclude-el-from-click-outside": [ya],
|
|
4064
4064
|
class: "h-5 flex items-center",
|
|
4065
|
-
onPopoverChanged: (
|
|
4066
|
-
|
|
4065
|
+
onPopoverChanged: (E) => {
|
|
4066
|
+
E || H(se).clearDraftsForSubject(M);
|
|
4067
4067
|
}
|
|
4068
4068
|
}, {
|
|
4069
4069
|
"popover-button": de(() => [
|
|
@@ -4078,7 +4078,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4078
4078
|
}, null, 8, ["class"])
|
|
4079
4079
|
])
|
|
4080
4080
|
]),
|
|
4081
|
-
default: de(({ hide:
|
|
4081
|
+
default: de(({ hide: E }) => [
|
|
4082
4082
|
ue(Fn, {
|
|
4083
4083
|
entry: q(M, P.label),
|
|
4084
4084
|
builders: q(M, P.label).sections.map(($) => $.builder),
|
|
@@ -4088,9 +4088,9 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4088
4088
|
title: H(a)("team.memberForm.permissions.conditionTitle", {
|
|
4089
4089
|
context: q(M, P.label).label
|
|
4090
4090
|
}),
|
|
4091
|
-
"inherit-mode-for": ($) =>
|
|
4091
|
+
"inherit-mode-for": ($) => K(q(M, P.label), $),
|
|
4092
4092
|
"form-value-for": ($) => we(q(M, P.label), $),
|
|
4093
|
-
"has-changes":
|
|
4093
|
+
"has-changes": Ke(M),
|
|
4094
4094
|
disable: e.disable,
|
|
4095
4095
|
onUpdateInheritMode: ({ builder: $, mode: le }) => Je(
|
|
4096
4096
|
q(M, P.label),
|
|
@@ -4098,7 +4098,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4098
4098
|
le
|
|
4099
4099
|
),
|
|
4100
4100
|
onUpdateForm: ({ builder: $, form: le }) => pe(q(M, P.label), $, le),
|
|
4101
|
-
onApply: ($) =>
|
|
4101
|
+
onApply: ($) => Ve(q(M, P.label), E)
|
|
4102
4102
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "title", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4103
4103
|
]),
|
|
4104
4104
|
_: 2
|
|
@@ -4120,7 +4120,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4120
4120
|
context: H(a)("team.labels.warehouse"),
|
|
4121
4121
|
"onUpdate:modelValue": k
|
|
4122
4122
|
}, et({ _: 2 }, [
|
|
4123
|
-
|
|
4123
|
+
Ee(f.value, (M) => ({
|
|
4124
4124
|
name: `checkbox-${M.id}-append`,
|
|
4125
4125
|
fn: de(() => [
|
|
4126
4126
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
@@ -4133,9 +4133,9 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4133
4133
|
"model-value": U.value,
|
|
4134
4134
|
options: m.value,
|
|
4135
4135
|
context: H(a)("team.labels.restaurant"),
|
|
4136
|
-
"onUpdate:modelValue":
|
|
4136
|
+
"onUpdate:modelValue": V
|
|
4137
4137
|
}, et({ _: 2 }, [
|
|
4138
|
-
|
|
4138
|
+
Ee(h.value, (M) => ({
|
|
4139
4139
|
name: `checkbox-${M.id}-append`,
|
|
4140
4140
|
fn: de(() => [
|
|
4141
4141
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
@@ -4148,9 +4148,9 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4148
4148
|
roles: H(x),
|
|
4149
4149
|
"model-value": j.value,
|
|
4150
4150
|
"restaurant-ids": U.value,
|
|
4151
|
-
"onUpdate:modelValue":
|
|
4151
|
+
"onUpdate:modelValue": W
|
|
4152
4152
|
}, et({ _: 2 }, [
|
|
4153
|
-
|
|
4153
|
+
Ee(S.value, (M) => ({
|
|
4154
4154
|
name: `checkbox-${M.id}-append`,
|
|
4155
4155
|
fn: de(() => [
|
|
4156
4156
|
ue(vt, { item: M }, null, 8, ["item"])
|