@feedmepos/mf-hrm-portal 2.3.0-dev.17 → 2.3.0-dev.18
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-CQp5AXmP.js → ApprovalCodeList-B10IvyLu.js} +4 -4
- package/dist/{AuditLogList-CBOp_hDR.js → AuditLogList-BJ8GXIzu.js} +4 -4
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-_2_usHCJ.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DfXqKPnU.js} +2 -2
- package/dist/{EmployeeList-1vR0zMMp.js → EmployeeList-CNj262HG.js} +6 -6
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-NR_aWS7l.js → FormItem.vue_vue_type_script_setup_true_lang-BvSLGM1C.js} +1 -1
- package/dist/{GrantUserList-CmeAG1Gy.js → GrantUserList-R259wy0R.js} +5 -5
- package/dist/{Main-BUTiZtwj.js → Main-DLgW7BX_.js} +2 -2
- package/dist/{Main-DTAb8QWQ.js → Main-DZ5T4TP1.js} +9 -9
- package/dist/{Main-DLh6VmQX.js → Main-yUEWFlC3.js} +5 -5
- package/dist/{PermissionSetList-BtaX2k3V.js → PermissionSetList-Xrzkx52n.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-B6dR75q1.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BhR3MM-s.js} +732 -732
- package/dist/{RoleList-Qyyi7w2u.js → RoleList-RRDkrVmu.js} +7 -7
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-EPVMITc0.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-BhkmMQxt.js} +1 -1
- package/dist/{ScheduleGeneralPage-CjZ8OFnN.js → ScheduleGeneralPage-CfcIh0Fy.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-KOLBDv21.js → ScheduleModal.vue_vue_type_script_setup_true_lang-WYuVJxed.js} +211 -206
- package/dist/SchedulePage-CHu1VI-U.js +19201 -0
- package/dist/{SchedulePositionPage-Cu6rRBlZ.js → SchedulePositionPage-Dx2fZ1QI.js} +27 -27
- package/dist/{SelectFilter-D58Vrs_W.js → SelectFilter-DoeKbbjT.js} +1 -1
- package/dist/{TeamMemberList-CC_okKtX.js → TeamMemberList-CPpBsvi7.js} +7 -7
- package/dist/{TimesheetList-ULjiy1OT.js → TimesheetList-CWl2faUZ.js} +6 -6
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-D9xXvYuA.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Dc0_djRp.js} +2 -2
- package/dist/{app-COD0IHk1.js → app-COWpQb6i.js} +8 -8
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-jNfjc_8X.js → dayjs.min-Dv2S110T.js} +1 -1
- package/dist/{employee-Db1gyZQZ.js → employee-Drs22uVf.js} +3 -3
- package/dist/{iteration-z1uPD-7T.js → iteration-B23jisFZ.js} +1 -1
- package/dist/{lodash-uwLYB3oL.js → lodash-CQM_jgZN.js} +1 -1
- package/dist/{role-BhO6Cl-l.js → role-k4mdt-op.js} +1 -1
- package/dist/{rule-BZ340_dr.js → rule-xOAXApqp.js} +2 -2
- package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +4 -2
- package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +1 -0
- package/dist/src/views/scheduling/components/ScheduleBoardGridHeader.vue.d.ts +5 -0
- package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +5 -0
- package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +3 -0
- package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +0 -1
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +2 -1
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +14 -0
- package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +1 -1
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +2 -1
- package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useSchedulePageCellDrop.d.ts +3 -1
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +6 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-BjkeMcNA.js → useReportPermissions-BB4JiYDf.js} +3 -3
- package/package.json +1 -1
- package/dist/SchedulePage-BWpgAx3a.js +0 -18831
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
2
|
-
import { useI18n as He, useCoreStore as
|
|
1
|
+
import { getCurrentInstance as Bt, inject as ur, ref as rt, shallowRef as dr, computed as z, watch as wt, onMounted as Wn, onUnmounted as mr, defineComponent as Ae, h as xn, createVNode as ue, Text as fr, Fragment as ke, resolveComponent as we, createBlock as Ne, openBlock as J, withCtx as de, createElementVNode as ae, createElementBlock as ie, toDisplayString as Oe, unref as H, renderList as ye, 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 hr } from "vue";
|
|
2
|
+
import { useI18n as He, useCoreStore as vr } 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
|
|
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 Er, w as Lt, x as yr, y as Nr } from "./rule-xOAXApqp.js";
|
|
6
|
+
import { _ as Xt, a as Cr, b as nn, u as Tr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DfXqKPnU.js";
|
|
7
|
+
import { u as Or, v as Sr, c as Zn, S as Dt, A as tt, d as ve, k as rn, O as Lr } from "./app-COWpQb6i.js";
|
|
8
|
+
import { c as It } from "./iteration-B23jisFZ.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-
|
|
12
|
-
function
|
|
11
|
+
import { u as Mr } from "./role-k4mdt-op.js";
|
|
12
|
+
function Bn(e, t) {
|
|
13
13
|
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function wr(e) {
|
|
16
16
|
return Array.isArray(e) ? e[0] : e;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
const n = t.find((l) =>
|
|
18
|
+
function Dr(e, t) {
|
|
19
|
+
const n = t.find((l) => Bn(l.subject, e));
|
|
20
20
|
if (!(n != null && n.category) || n.isCategoryCover) return;
|
|
21
21
|
const r = t.find((l) => l.category === n.category && l.isCategoryCover);
|
|
22
22
|
if (r)
|
|
23
|
-
return
|
|
23
|
+
return wr(r.subject);
|
|
24
24
|
}
|
|
25
25
|
function sn(e, t) {
|
|
26
|
-
const n = t.find((r) =>
|
|
26
|
+
const n = t.find((r) => Bn(r.subject, e));
|
|
27
27
|
return !!(n != null && n.isCategoryCover);
|
|
28
28
|
}
|
|
29
29
|
/*!
|
|
@@ -37,15 +37,15 @@ const Xe = () => an || (an = typeof globalThis < "u" ? globalThis : typeof self
|
|
|
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", he = (e) => typeof e == "boolean", te = (e) => e !== null && typeof e == "object", Wr = (e) => te(e) && me(e.then) && me(e.catch), Xn = Object.prototype.toString, Ht = (e) => Xn.call(e), ee = (e) => Ht(e) === "[object Object]", xr = (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
|
}
|
|
48
|
-
function
|
|
48
|
+
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);
|
|
@@ -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,12 +83,12 @@ const re = {
|
|
|
83
83
|
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
84
84
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
85
85
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
86
|
-
},
|
|
86
|
+
}, Zr = 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;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Br(e) {
|
|
92
92
|
throw e;
|
|
93
93
|
}
|
|
94
94
|
const Pe = " ", Xr = "\r", Ee = `
|
|
@@ -96,8 +96,8 @@ const Pe = " ", Xr = "\r", Ee = `
|
|
|
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] === Ee, u = (p) => t[p] === Ee, i = (p) => t[p] === $r, g = (p) => t[p] === Hr, E = (p) => d(p) || u(p) || i(p) || g(p), T = () => n, N = () => r, F = () => l,
|
|
100
|
-
function
|
|
99
|
+
const d = (p) => t[p] === Xr && t[p + 1] === Ee, u = (p) => t[p] === Ee, i = (p) => t[p] === $r, g = (p) => t[p] === Hr, E = (p) => d(p) || u(p) || i(p) || g(p), T = () => n, N = () => r, F = () => l, w = () => a, A = (p) => d(p) || i(p) || g(p) ? Ee : t[p], D = () => A(n), f = () => A(n + a);
|
|
100
|
+
function v() {
|
|
101
101
|
return a = 0, E(n) && (r++, l = 0), d(n) && n++, n++, l++, t[n];
|
|
102
102
|
}
|
|
103
103
|
function S() {
|
|
@@ -112,27 +112,27 @@ function Jr(e) {
|
|
|
112
112
|
function I() {
|
|
113
113
|
const p = n + a;
|
|
114
114
|
for (; p !== n; )
|
|
115
|
-
|
|
115
|
+
v();
|
|
116
116
|
a = 0;
|
|
117
117
|
}
|
|
118
118
|
return {
|
|
119
119
|
index: T,
|
|
120
120
|
line: N,
|
|
121
121
|
column: F,
|
|
122
|
-
peekOffset:
|
|
122
|
+
peekOffset: w,
|
|
123
123
|
charAt: A,
|
|
124
|
-
currentChar:
|
|
124
|
+
currentChar: D,
|
|
125
125
|
currentPeek: f,
|
|
126
|
-
next:
|
|
126
|
+
next: v,
|
|
127
127
|
peek: S,
|
|
128
128
|
reset: c,
|
|
129
129
|
resetPeek: b,
|
|
130
130
|
skipToPeek: I
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
const
|
|
133
|
+
const We = 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,
|
|
@@ -148,11 +148,11 @@ function Qr(e, t = {}) {
|
|
|
148
148
|
function T(s, o, _, ...R) {
|
|
149
149
|
const M = g();
|
|
150
150
|
if (o.column += _, o.offset += _, E) {
|
|
151
|
-
const P = n ? Ft(M.startLoc, o) : null,
|
|
151
|
+
const P = n ? Ft(M.startLoc, o) : null, h = Tt(s, P, {
|
|
152
152
|
domain: zr,
|
|
153
153
|
args: R
|
|
154
154
|
});
|
|
155
|
-
E(
|
|
155
|
+
E(h);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
function N(s, o, _) {
|
|
@@ -165,7 +165,7 @@ function Qr(e, t = {}) {
|
|
|
165
165
|
13
|
|
166
166
|
/* TokenTypes.EOF */
|
|
167
167
|
);
|
|
168
|
-
function
|
|
168
|
+
function w(s, o) {
|
|
169
169
|
return s.currentChar() === o ? (s.next(), o) : (T(re.EXPECTED_TOKEN, a(), 0, o), "");
|
|
170
170
|
}
|
|
171
171
|
function A(s) {
|
|
@@ -174,20 +174,20 @@ function Qr(e, t = {}) {
|
|
|
174
174
|
o += s.currentPeek(), s.peek();
|
|
175
175
|
return o;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function D(s) {
|
|
178
178
|
const o = A(s);
|
|
179
179
|
return s.skipToPeek(), o;
|
|
180
180
|
}
|
|
181
181
|
function f(s) {
|
|
182
|
-
if (s ===
|
|
182
|
+
if (s === We)
|
|
183
183
|
return !1;
|
|
184
184
|
const o = s.charCodeAt(0);
|
|
185
185
|
return o >= 97 && o <= 122 || // a-z
|
|
186
186
|
o >= 65 && o <= 90 || // A-Z
|
|
187
187
|
o === 95;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
if (s ===
|
|
189
|
+
function v(s) {
|
|
190
|
+
if (s === We)
|
|
191
191
|
return !1;
|
|
192
192
|
const o = s.charCodeAt(0);
|
|
193
193
|
return o >= 48 && o <= 57;
|
|
@@ -205,7 +205,7 @@ function Qr(e, t = {}) {
|
|
|
205
205
|
if (_ !== 2)
|
|
206
206
|
return !1;
|
|
207
207
|
A(s);
|
|
208
|
-
const R = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), M =
|
|
208
|
+
const R = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), M = v(R);
|
|
209
209
|
return s.resetPeek(), M;
|
|
210
210
|
}
|
|
211
211
|
function b(s, o) {
|
|
@@ -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 === Ee ? (s.peek(), R()) :
|
|
249
|
+
return P === "{" ? f(s.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P === Ee ? (s.peek(), R()) : W(s, !1);
|
|
250
250
|
}, M = R();
|
|
251
251
|
return s.resetPeek(), M;
|
|
252
252
|
}
|
|
@@ -255,16 +255,16 @@ function Qr(e, t = {}) {
|
|
|
255
255
|
const o = s.currentPeek() === "|";
|
|
256
256
|
return s.resetPeek(), o;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function W(s, o = !0) {
|
|
259
259
|
const _ = (M = !1, P = "") => {
|
|
260
|
-
const
|
|
261
|
-
return
|
|
260
|
+
const h = s.currentPeek();
|
|
261
|
+
return h === "{" || h === "@" || !h ? M : h === "|" ? !(P === Pe || P === Ee) : h === Pe ? (s.peek(), _(!0, Pe)) : h === Ee ? (s.peek(), _(!0, Ee)) : !0;
|
|
262
262
|
}, R = _();
|
|
263
263
|
return o && s.resetPeek(), R;
|
|
264
264
|
}
|
|
265
265
|
function m(s, o) {
|
|
266
266
|
const _ = s.currentChar();
|
|
267
|
-
return _ ===
|
|
267
|
+
return _ === We ? We : o(_) ? (s.next(), _) : null;
|
|
268
268
|
}
|
|
269
269
|
function C(s) {
|
|
270
270
|
const o = s.charCodeAt(0);
|
|
@@ -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
|
-
function
|
|
292
|
+
function G(s) {
|
|
293
293
|
const o = s.charCodeAt(0);
|
|
294
294
|
return o >= 48 && o <= 57;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
297
|
-
return m(s,
|
|
296
|
+
function x(s) {
|
|
297
|
+
return m(s, G);
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function Z(s) {
|
|
300
300
|
const o = s.charCodeAt(0);
|
|
301
301
|
return o >= 48 && o <= 57 || // 0-9
|
|
302
302
|
o >= 65 && o <= 70 || // A-F
|
|
303
303
|
o >= 97 && o <= 102;
|
|
304
304
|
}
|
|
305
|
-
function
|
|
306
|
-
return m(s,
|
|
305
|
+
function B(s) {
|
|
306
|
+
return m(s, Z);
|
|
307
307
|
}
|
|
308
308
|
function ne(s) {
|
|
309
309
|
let o = "", _ = "";
|
|
310
|
-
for (; o =
|
|
310
|
+
for (; o = x(s); )
|
|
311
311
|
_ += o;
|
|
312
312
|
return _;
|
|
313
313
|
}
|
|
@@ -318,7 +318,7 @@ function Qr(e, t = {}) {
|
|
|
318
318
|
if (_ === "{" || _ === "}" || _ === "@" || _ === "|" || !_)
|
|
319
319
|
break;
|
|
320
320
|
if (_ === Pe || _ === Ee)
|
|
321
|
-
if (
|
|
321
|
+
if (W(s))
|
|
322
322
|
o += _, s.next();
|
|
323
323
|
else {
|
|
324
324
|
if (X(s))
|
|
@@ -331,27 +331,27 @@ function Qr(e, t = {}) {
|
|
|
331
331
|
return o;
|
|
332
332
|
}
|
|
333
333
|
function _e(s) {
|
|
334
|
-
|
|
334
|
+
D(s);
|
|
335
335
|
let o = "", _ = "";
|
|
336
336
|
for (; o = j(s); )
|
|
337
337
|
_ += o;
|
|
338
|
-
return s.currentChar() ===
|
|
338
|
+
return s.currentChar() === We && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _;
|
|
339
339
|
}
|
|
340
340
|
function ce(s) {
|
|
341
|
-
|
|
341
|
+
D(s);
|
|
342
342
|
let o = "";
|
|
343
|
-
return s.currentChar() === "-" ? (s.next(), o += `-${ne(s)}`) : o += ne(s), s.currentChar() ===
|
|
343
|
+
return s.currentChar() === "-" ? (s.next(), o += `-${ne(s)}`) : o += ne(s), s.currentChar() === We && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
344
344
|
}
|
|
345
345
|
function se(s) {
|
|
346
346
|
return s !== cn && s !== Ee;
|
|
347
347
|
}
|
|
348
348
|
function fe(s) {
|
|
349
|
-
|
|
349
|
+
D(s), w(s, "'");
|
|
350
350
|
let o = "", _ = "";
|
|
351
351
|
for (; o = m(s, se); )
|
|
352
352
|
o === "\\" ? _ += q(s) : _ += o;
|
|
353
353
|
const R = s.currentChar();
|
|
354
|
-
return R === Ee || R ===
|
|
354
|
+
return R === Ee || R === We ? (T(re.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), R === Ee && (s.next(), w(s, "'")), _) : (w(s, "'"), _);
|
|
355
355
|
}
|
|
356
356
|
function q(s) {
|
|
357
357
|
const o = s.currentChar();
|
|
@@ -360,18 +360,18 @@ function Qr(e, t = {}) {
|
|
|
360
360
|
case "'":
|
|
361
361
|
return s.next(), `\\${o}`;
|
|
362
362
|
case "u":
|
|
363
|
-
return
|
|
363
|
+
return De(s, o, 4);
|
|
364
364
|
case "U":
|
|
365
|
-
return
|
|
365
|
+
return De(s, o, 6);
|
|
366
366
|
default:
|
|
367
367
|
return T(re.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
|
|
370
|
+
function De(s, o, _) {
|
|
371
|
+
w(s, o);
|
|
372
372
|
let R = "";
|
|
373
373
|
for (let M = 0; M < _; M++) {
|
|
374
|
-
const P =
|
|
374
|
+
const P = B(s);
|
|
375
375
|
if (!P) {
|
|
376
376
|
T(re.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${R}${s.currentChar()}`);
|
|
377
377
|
break;
|
|
@@ -384,7 +384,7 @@ function Qr(e, t = {}) {
|
|
|
384
384
|
return s !== "{" && s !== "}" && s !== Pe && s !== Ee;
|
|
385
385
|
}
|
|
386
386
|
function pe(s) {
|
|
387
|
-
|
|
387
|
+
D(s);
|
|
388
388
|
let o = "", _ = "";
|
|
389
389
|
for (; o = m(s, K); )
|
|
390
390
|
_ += o;
|
|
@@ -403,14 +403,14 @@ function Qr(e, t = {}) {
|
|
|
403
403
|
};
|
|
404
404
|
return o("");
|
|
405
405
|
}
|
|
406
|
-
function
|
|
407
|
-
|
|
408
|
-
const o =
|
|
406
|
+
function Ve(s) {
|
|
407
|
+
D(s);
|
|
408
|
+
const o = w(
|
|
409
409
|
s,
|
|
410
410
|
"|"
|
|
411
411
|
/* TokenChars.Pipe */
|
|
412
412
|
);
|
|
413
|
-
return
|
|
413
|
+
return D(s), o;
|
|
414
414
|
}
|
|
415
415
|
function Fe(s, o) {
|
|
416
416
|
let _ = null;
|
|
@@ -421,30 +421,30 @@ function Qr(e, t = {}) {
|
|
|
421
421
|
2,
|
|
422
422
|
"{"
|
|
423
423
|
/* TokenChars.BraceLeft */
|
|
424
|
-
),
|
|
424
|
+
), D(s), o.braceNest++, _;
|
|
425
425
|
case "}":
|
|
426
426
|
return o.braceNest > 0 && o.currentType === 2 && T(re.EMPTY_PLACEHOLDER, a(), 0), s.next(), _ = N(
|
|
427
427
|
o,
|
|
428
428
|
3,
|
|
429
429
|
"}"
|
|
430
430
|
/* TokenChars.BraceRight */
|
|
431
|
-
), o.braceNest--, o.braceNest > 0 &&
|
|
431
|
+
), o.braceNest--, o.braceNest > 0 && D(s), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), _;
|
|
432
432
|
case "@":
|
|
433
433
|
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = Ce(s, o) || F(o), o.braceNest = 0, _;
|
|
434
434
|
default: {
|
|
435
|
-
let M = !0, P = !0,
|
|
435
|
+
let M = !0, P = !0, h = !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, Ze(s, o);
|
|
440
440
|
if (M = S(s, o))
|
|
441
|
-
return _ = N(o, 4, _e(s)),
|
|
441
|
+
return _ = N(o, 4, _e(s)), D(s), _;
|
|
442
442
|
if (P = c(s, o))
|
|
443
|
-
return _ = N(o, 5, ce(s)),
|
|
444
|
-
if (
|
|
445
|
-
return _ = N(o, 6, fe(s)),
|
|
446
|
-
if (!M && !P && !
|
|
447
|
-
return _ = N(o, 12, pe(s)), T(re.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, _.value),
|
|
443
|
+
return _ = N(o, 5, ce(s)), D(s), _;
|
|
444
|
+
if (h = b(s, o))
|
|
445
|
+
return _ = N(o, 6, fe(s)), D(s), _;
|
|
446
|
+
if (!M && !P && !h)
|
|
447
|
+
return _ = N(o, 12, pe(s)), T(re.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, _.value), D(s), _;
|
|
448
448
|
break;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
@@ -463,24 +463,24 @@ function Qr(e, t = {}) {
|
|
|
463
463
|
/* TokenChars.LinkedAlias */
|
|
464
464
|
), o.inLinked = !0, R;
|
|
465
465
|
case ".":
|
|
466
|
-
return
|
|
466
|
+
return D(s), s.next(), N(
|
|
467
467
|
o,
|
|
468
468
|
8,
|
|
469
469
|
"."
|
|
470
470
|
/* TokenChars.LinkedDot */
|
|
471
471
|
);
|
|
472
472
|
case ":":
|
|
473
|
-
return
|
|
473
|
+
return D(s), s.next(), N(
|
|
474
474
|
o,
|
|
475
475
|
9,
|
|
476
476
|
":"
|
|
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) ? (D(s), Ce(s, o)) : p(s, o) ? (D(s), N(o, 11, Je(s))) : L(s, o) ? (D(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, Ze(s, o));
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function Ze(s, o) {
|
|
484
484
|
let _ = {
|
|
485
485
|
type: 13
|
|
486
486
|
/* TokenTypes.EOF */
|
|
@@ -503,8 +503,8 @@ 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,
|
|
507
|
-
if (
|
|
506
|
+
return _ = N(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
507
|
+
if (W(s))
|
|
508
508
|
return N(o, 0, Q(s));
|
|
509
509
|
break;
|
|
510
510
|
}
|
|
@@ -513,11 +513,11 @@ function Qr(e, t = {}) {
|
|
|
513
513
|
}
|
|
514
514
|
function O() {
|
|
515
515
|
const { currentType: s, offset: o, startLoc: _, endLoc: R } = i;
|
|
516
|
-
return i.lastType = s, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc = R, i.offset = l(), i.startLoc = a(), r.currentChar() ===
|
|
516
|
+
return i.lastType = s, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc = R, i.offset = l(), i.startLoc = a(), r.currentChar() === We ? N(
|
|
517
517
|
i,
|
|
518
518
|
13
|
|
519
519
|
/* TokenTypes.EOF */
|
|
520
|
-
) :
|
|
520
|
+
) : Ze(r, i);
|
|
521
521
|
}
|
|
522
522
|
return {
|
|
523
523
|
nextToken: O,
|
|
@@ -541,74 +541,74 @@ function ts(e, t, n) {
|
|
|
541
541
|
}
|
|
542
542
|
function ns(e = {}) {
|
|
543
543
|
const t = e.location !== !1, { onError: n } = e;
|
|
544
|
-
function r(f,
|
|
544
|
+
function r(f, v, S, c, ...b) {
|
|
545
545
|
const I = f.currentPosition();
|
|
546
546
|
if (I.offset += c, I.column += c, n) {
|
|
547
|
-
const p = t ? Ft(S, I) : null, k = Tt(
|
|
547
|
+
const p = t ? Ft(S, I) : null, k = Tt(v, p, {
|
|
548
548
|
domain: qr,
|
|
549
549
|
args: b
|
|
550
550
|
});
|
|
551
551
|
n(k);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
function l(f,
|
|
554
|
+
function l(f, v, S) {
|
|
555
555
|
const c = { type: f };
|
|
556
|
-
return t && (c.start =
|
|
556
|
+
return t && (c.start = v, c.end = v, c.loc = { start: S, end: S }), c;
|
|
557
557
|
}
|
|
558
|
-
function a(f,
|
|
559
|
-
t && (f.end =
|
|
558
|
+
function a(f, v, S, c) {
|
|
559
|
+
t && (f.end = v, f.loc && (f.loc.end = S));
|
|
560
560
|
}
|
|
561
|
-
function d(f,
|
|
561
|
+
function d(f, v) {
|
|
562
562
|
const S = f.context(), c = l(3, S.offset, S.startLoc);
|
|
563
|
-
return c.value =
|
|
563
|
+
return c.value = v, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
564
564
|
}
|
|
565
|
-
function u(f,
|
|
565
|
+
function u(f, v) {
|
|
566
566
|
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(5, c, b);
|
|
567
|
-
return I.index = parseInt(
|
|
567
|
+
return I.index = parseInt(v, 10), f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
568
568
|
}
|
|
569
|
-
function i(f,
|
|
569
|
+
function i(f, v) {
|
|
570
570
|
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(4, c, b);
|
|
571
|
-
return I.key =
|
|
571
|
+
return I.key = v, f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
572
572
|
}
|
|
573
|
-
function g(f,
|
|
573
|
+
function g(f, v) {
|
|
574
574
|
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(9, c, b);
|
|
575
|
-
return I.value =
|
|
575
|
+
return I.value = v.replace(es, ts), f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
576
576
|
}
|
|
577
577
|
function E(f) {
|
|
578
|
-
const
|
|
579
|
-
return
|
|
580
|
-
nextConsumeToken:
|
|
578
|
+
const v = f.nextToken(), S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(8, c, b);
|
|
579
|
+
return v.type !== 11 ? (r(f, re.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), I.value = "", a(I, c, b), {
|
|
580
|
+
nextConsumeToken: v,
|
|
581
581
|
node: I
|
|
582
|
-
}) : (
|
|
582
|
+
}) : (v.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, Re(v)), I.value = v.value || "", a(I, f.currentOffset(), f.currentPosition()), {
|
|
583
583
|
node: I
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
|
-
function T(f,
|
|
586
|
+
function T(f, v) {
|
|
587
587
|
const S = f.context(), c = l(7, S.offset, S.startLoc);
|
|
588
|
-
return c.value =
|
|
588
|
+
return c.value = v, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
589
589
|
}
|
|
590
590
|
function N(f) {
|
|
591
|
-
const
|
|
591
|
+
const v = f.context(), S = l(6, v.offset, v.startLoc);
|
|
592
592
|
let c = f.nextToken();
|
|
593
593
|
if (c.type === 8) {
|
|
594
594
|
const b = E(f);
|
|
595
595
|
S.modifier = b.node, c = b.nextConsumeToken || f.nextToken();
|
|
596
596
|
}
|
|
597
|
-
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
597
|
+
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, Re(c)), c = f.nextToken(), c.type === 2 && (c = f.nextToken()), c.type) {
|
|
598
598
|
case 10:
|
|
599
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
599
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, Re(c)), S.key = T(f, c.value || "");
|
|
600
600
|
break;
|
|
601
601
|
case 4:
|
|
602
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
602
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, Re(c)), S.key = i(f, c.value || "");
|
|
603
603
|
break;
|
|
604
604
|
case 5:
|
|
605
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
605
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, Re(c)), S.key = u(f, c.value || "");
|
|
606
606
|
break;
|
|
607
607
|
case 6:
|
|
608
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
608
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, Re(c)), S.key = g(f, c.value || "");
|
|
609
609
|
break;
|
|
610
610
|
default: {
|
|
611
|
-
r(f, re.UNEXPECTED_EMPTY_LINKED_KEY,
|
|
611
|
+
r(f, re.UNEXPECTED_EMPTY_LINKED_KEY, v.lastStartLoc, 0);
|
|
612
612
|
const b = f.context(), I = l(7, b.offset, b.startLoc);
|
|
613
613
|
return I.value = "", a(I, b.offset, b.startLoc), S.key = I, a(S, b.offset, b.startLoc), {
|
|
614
614
|
nextConsumeToken: c,
|
|
@@ -621,23 +621,23 @@ function ns(e = {}) {
|
|
|
621
621
|
};
|
|
622
622
|
}
|
|
623
623
|
function F(f) {
|
|
624
|
-
const
|
|
624
|
+
const v = f.context(), S = v.currentType === 1 ? f.currentOffset() : v.offset, c = v.currentType === 1 ? v.endLoc : v.startLoc, b = l(2, S, c);
|
|
625
625
|
b.items = [];
|
|
626
626
|
let I = null;
|
|
627
627
|
do {
|
|
628
628
|
const L = I || f.nextToken();
|
|
629
629
|
switch (I = null, L.type) {
|
|
630
630
|
case 0:
|
|
631
|
-
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
631
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, Re(L)), b.items.push(d(f, L.value || ""));
|
|
632
632
|
break;
|
|
633
633
|
case 5:
|
|
634
|
-
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
634
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, Re(L)), b.items.push(u(f, L.value || ""));
|
|
635
635
|
break;
|
|
636
636
|
case 4:
|
|
637
|
-
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
637
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, Re(L)), b.items.push(i(f, L.value || ""));
|
|
638
638
|
break;
|
|
639
639
|
case 6:
|
|
640
|
-
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
640
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, Re(L)), b.items.push(g(f, L.value || ""));
|
|
641
641
|
break;
|
|
642
642
|
case 7: {
|
|
643
643
|
const X = N(f);
|
|
@@ -645,14 +645,14 @@ function ns(e = {}) {
|
|
|
645
645
|
break;
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
|
-
} while (
|
|
649
|
-
const p =
|
|
648
|
+
} while (v.currentType !== 13 && v.currentType !== 1);
|
|
649
|
+
const p = v.currentType === 1 ? v.lastOffset : f.currentOffset(), k = v.currentType === 1 ? v.lastEndLoc : f.currentPosition();
|
|
650
650
|
return a(b, p, k), b;
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function w(f, v, S, c) {
|
|
653
653
|
const b = f.context();
|
|
654
654
|
let I = c.items.length === 0;
|
|
655
|
-
const p = l(1,
|
|
655
|
+
const p = l(1, v, S);
|
|
656
656
|
p.cases = [], p.cases.push(c);
|
|
657
657
|
do {
|
|
658
658
|
const k = F(f);
|
|
@@ -661,14 +661,14 @@ function ns(e = {}) {
|
|
|
661
661
|
return I && r(f, re.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), a(p, f.currentOffset(), f.currentPosition()), p;
|
|
662
662
|
}
|
|
663
663
|
function A(f) {
|
|
664
|
-
const
|
|
665
|
-
return
|
|
664
|
+
const v = f.context(), { offset: S, startLoc: c } = v, b = F(f);
|
|
665
|
+
return v.currentType === 13 ? b : w(f, S, c, b);
|
|
666
666
|
}
|
|
667
|
-
function
|
|
668
|
-
const
|
|
669
|
-
return t && c.loc && (c.loc.source = f), c.body = A(
|
|
667
|
+
function D(f) {
|
|
668
|
+
const v = Qr(f, Ie({}, e)), S = v.context(), c = l(0, S.offset, S.startLoc);
|
|
669
|
+
return t && c.loc && (c.loc.source = f), c.body = A(v), e.onCacheKey && (c.cacheKey = e.onCacheKey(f)), S.currentType !== 13 && r(v, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, f[S.offset] || ""), a(c, v.currentOffset(), v.currentPosition()), c;
|
|
670
670
|
}
|
|
671
|
-
return { parse:
|
|
671
|
+
return { parse: D };
|
|
672
672
|
}
|
|
673
673
|
function Re(e) {
|
|
674
674
|
if (e.type === 13)
|
|
@@ -823,20 +823,20 @@ function as(e, t) {
|
|
|
823
823
|
};
|
|
824
824
|
a && e.loc && (d.source = e.loc.source);
|
|
825
825
|
const u = () => d;
|
|
826
|
-
function i(A,
|
|
826
|
+
function i(A, D) {
|
|
827
827
|
d.code += A;
|
|
828
828
|
}
|
|
829
|
-
function g(A,
|
|
830
|
-
const f =
|
|
829
|
+
function g(A, D = !0) {
|
|
830
|
+
const f = D ? r : "";
|
|
831
831
|
i(l ? f + " ".repeat(A) : f);
|
|
832
832
|
}
|
|
833
833
|
function E(A = !0) {
|
|
834
|
-
const
|
|
835
|
-
A && g(
|
|
834
|
+
const D = ++d.indentLevel;
|
|
835
|
+
A && g(D);
|
|
836
836
|
}
|
|
837
837
|
function T(A = !0) {
|
|
838
|
-
const
|
|
839
|
-
A && g(
|
|
838
|
+
const D = --d.indentLevel;
|
|
839
|
+
A && g(D);
|
|
840
840
|
}
|
|
841
841
|
function N() {
|
|
842
842
|
g(d.indentLevel);
|
|
@@ -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, {
|
|
@@ -962,7 +962,7 @@ function At(e) {
|
|
|
962
962
|
return (n) => ps(n, e);
|
|
963
963
|
}
|
|
964
964
|
function ps(e, t) {
|
|
965
|
-
const n =
|
|
965
|
+
const n = vs(t);
|
|
966
966
|
if (n == null)
|
|
967
967
|
throw it(
|
|
968
968
|
0
|
|
@@ -977,13 +977,13 @@ function ps(e, t) {
|
|
|
977
977
|
} else
|
|
978
978
|
return mn(e, n);
|
|
979
979
|
}
|
|
980
|
-
const
|
|
981
|
-
function
|
|
982
|
-
return
|
|
980
|
+
const hs = ["b", "body"];
|
|
981
|
+
function vs(e) {
|
|
982
|
+
return Ge(e, hs);
|
|
983
983
|
}
|
|
984
984
|
const bs = ["c", "cases"];
|
|
985
985
|
function gs(e) {
|
|
986
|
-
return
|
|
986
|
+
return Ge(e, bs, []);
|
|
987
987
|
}
|
|
988
988
|
function mn(e, t) {
|
|
989
989
|
const n = Es(t);
|
|
@@ -996,11 +996,11 @@ function mn(e, t) {
|
|
|
996
996
|
}
|
|
997
997
|
const Is = ["s", "static"];
|
|
998
998
|
function Es(e) {
|
|
999
|
-
return
|
|
999
|
+
return Ge(e, Is);
|
|
1000
1000
|
}
|
|
1001
1001
|
const ys = ["i", "items"];
|
|
1002
1002
|
function Ns(e) {
|
|
1003
|
-
return
|
|
1003
|
+
return Ge(e, ys, []);
|
|
1004
1004
|
}
|
|
1005
1005
|
function Pt(e, t) {
|
|
1006
1006
|
const n = Kt(t);
|
|
@@ -1039,22 +1039,22 @@ function Pt(e, t) {
|
|
|
1039
1039
|
}
|
|
1040
1040
|
const Cs = ["t", "type"];
|
|
1041
1041
|
function Kt(e) {
|
|
1042
|
-
return
|
|
1042
|
+
return Ge(e, Cs);
|
|
1043
1043
|
}
|
|
1044
1044
|
const Ts = ["v", "value"];
|
|
1045
1045
|
function _t(e, t) {
|
|
1046
|
-
const n =
|
|
1046
|
+
const n = Ge(e, Ts);
|
|
1047
1047
|
if (n)
|
|
1048
1048
|
return n;
|
|
1049
1049
|
throw it(t);
|
|
1050
1050
|
}
|
|
1051
1051
|
const Os = ["m", "modifier"];
|
|
1052
1052
|
function Ss(e) {
|
|
1053
|
-
return
|
|
1053
|
+
return Ge(e, Os);
|
|
1054
1054
|
}
|
|
1055
1055
|
const Ls = ["k", "key"];
|
|
1056
1056
|
function As(e) {
|
|
1057
|
-
const t =
|
|
1057
|
+
const t = Ge(e, Ls);
|
|
1058
1058
|
if (t)
|
|
1059
1059
|
return t;
|
|
1060
1060
|
throw it(
|
|
@@ -1062,7 +1062,7 @@ function As(e) {
|
|
|
1062
1062
|
/* NodeTypes.Linked */
|
|
1063
1063
|
);
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1065
|
+
function Ge(e, t, n) {
|
|
1066
1066
|
for (let r = 0; r < t.length; r++) {
|
|
1067
1067
|
const l = t[r];
|
|
1068
1068
|
if (Le(e, l) && e[l] != null)
|
|
@@ -1080,15 +1080,15 @@ function ot(e) {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
function ks(e, t = {}) {
|
|
1082
1082
|
let n = !1;
|
|
1083
|
-
const r = t.onError ||
|
|
1083
|
+
const r = t.onError || Br;
|
|
1084
1084
|
return t.onError = (l) => {
|
|
1085
1085
|
n = !0, r(l);
|
|
1086
1086
|
}, { ...ms(e, t), detectError: n };
|
|
1087
1087
|
}
|
|
1088
1088
|
// @__NO_SIDE_EFFECTS__
|
|
1089
1089
|
function Ms(e, t) {
|
|
1090
|
-
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ &&
|
|
1091
|
-
|
|
1090
|
+
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && Y(e)) {
|
|
1091
|
+
he(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1092
1092
|
const r = (t.onCacheKey || Rs)(e), l = pt[r];
|
|
1093
1093
|
if (l)
|
|
1094
1094
|
return l;
|
|
@@ -1108,10 +1108,10 @@ function Ms(e, t) {
|
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
1110
|
let ct = null;
|
|
1111
|
-
function
|
|
1111
|
+
function ws(e) {
|
|
1112
1112
|
ct = e;
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1114
|
+
function Ds(e, t, n) {
|
|
1115
1115
|
ct && ct.emit("i18n:init", {
|
|
1116
1116
|
timestamp: Date.now(),
|
|
1117
1117
|
i18n: e,
|
|
@@ -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: Zr,
|
|
1128
1128
|
// 17
|
|
1129
1129
|
INVALID_DATE_ARGUMENT: 18,
|
|
1130
1130
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1140,14 +1140,14 @@ function zt(e, t) {
|
|
|
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)
|
|
1147
1147
|
return Rt;
|
|
1148
1148
|
if (e.constructor.name === "Function") {
|
|
1149
1149
|
const t = e();
|
|
1150
|
-
if (
|
|
1150
|
+
if (Wr(t))
|
|
1151
1151
|
throw Ue(je.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1152
1152
|
return Rt = t;
|
|
1153
1153
|
} else
|
|
@@ -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,28 +1171,28 @@ 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
|
}
|
|
1178
1178
|
function _n(e, t, n) {
|
|
1179
1179
|
let r = !0;
|
|
1180
|
-
for (let l = 0; l < t.length &&
|
|
1180
|
+
for (let l = 0; l < t.length && he(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 {
|
|
1190
1190
|
const a = l.join("-");
|
|
1191
|
-
r =
|
|
1191
|
+
r = Ws(e, a, n), l.splice(-1, 1);
|
|
1192
1192
|
} while (l.length && r === !0);
|
|
1193
1193
|
return r;
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1195
|
+
function Ws(e, t, n) {
|
|
1196
1196
|
let r = !1;
|
|
1197
1197
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1198
1198
|
r = t[t.length - 1] !== "!";
|
|
@@ -1201,8 +1201,8 @@ function Vs(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 @@ Ge[
|
|
|
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 @@ Ge[
|
|
|
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 @@ Ge[
|
|
|
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 @@ Ge[
|
|
|
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 @@ Ge[
|
|
|
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 @@ Ge[
|
|
|
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 @@ Ge[
|
|
|
1362
1362
|
/* Actions.APPEND */
|
|
1363
1363
|
]
|
|
1364
1364
|
};
|
|
1365
|
-
const
|
|
1366
|
-
function Zs(e) {
|
|
1367
|
-
return Ws.test(e);
|
|
1368
|
-
}
|
|
1365
|
+
const xs = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1369
1366
|
function Gs(e) {
|
|
1367
|
+
return xs.test(e);
|
|
1368
|
+
}
|
|
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 Zs(e) {
|
|
1374
1374
|
if (e == null)
|
|
1375
1375
|
return "o";
|
|
1376
1376
|
switch (e.charCodeAt(0)) {
|
|
@@ -1395,9 +1395,9 @@ function Bs(e) {
|
|
|
1395
1395
|
}
|
|
1396
1396
|
return "i";
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1398
|
+
function Bs(e) {
|
|
1399
1399
|
const t = e.trim();
|
|
1400
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1400
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Gs(t) ? Ys(t) : "*" + t;
|
|
1401
1401
|
}
|
|
1402
1402
|
function Xs(e) {
|
|
1403
1403
|
const t = [];
|
|
@@ -1431,7 +1431,7 @@ function Xs(e) {
|
|
|
1431
1431
|
/* Actions.APPEND */
|
|
1432
1432
|
]();
|
|
1433
1433
|
else {
|
|
1434
|
-
if (l = 0, d === void 0 || (d =
|
|
1434
|
+
if (l = 0, d === void 0 || (d = Bs(d), d === !1))
|
|
1435
1435
|
return !1;
|
|
1436
1436
|
N[
|
|
1437
1437
|
1
|
|
@@ -1440,16 +1440,16 @@ function Xs(e) {
|
|
|
1440
1440
|
}
|
|
1441
1441
|
};
|
|
1442
1442
|
function F() {
|
|
1443
|
-
const
|
|
1444
|
-
if (r === 5 &&
|
|
1445
|
-
return n++, u = "\\" +
|
|
1443
|
+
const w = e[n + 1];
|
|
1444
|
+
if (r === 5 && w === "'" || r === 6 && w === '"')
|
|
1445
|
+
return n++, u = "\\" + w, N[
|
|
1446
1446
|
0
|
|
1447
1447
|
/* Actions.APPEND */
|
|
1448
1448
|
](), !0;
|
|
1449
1449
|
}
|
|
1450
1450
|
for (; r !== null; )
|
|
1451
1451
|
if (n++, a = e[n], !(a === "\\" && F())) {
|
|
1452
|
-
if (i =
|
|
1452
|
+
if (i = Zs(a), T = Ye[r], g = T[i] || T.l || 8, g === 8 || (r = g[0], g[1] !== void 0 && (E = N[g[1]], E && (u = a, E() === !1))))
|
|
1453
1453
|
return;
|
|
1454
1454
|
if (r === 7)
|
|
1455
1455
|
return t;
|
|
@@ -1475,12 +1475,12 @@ function $s(e, t) {
|
|
|
1475
1475
|
}
|
|
1476
1476
|
return l;
|
|
1477
1477
|
}
|
|
1478
|
-
const Js = "10.0.5", Ot = -1, Nt = "en-US",
|
|
1478
|
+
const Js = "10.0.5", Ot = -1, Nt = "en-US", hn = "", vn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1479
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) ? vn(e) : t === "vnode" && te(e) && "__v_isVNode" in e ? vn(e.children) : e
|
|
1484
1484
|
};
|
|
1485
1485
|
}
|
|
1486
1486
|
let $n;
|
|
@@ -1505,7 +1505,7 @@ const bn = (e) => {
|
|
|
1505
1505
|
}, no = () => Qn;
|
|
1506
1506
|
let gn = 0;
|
|
1507
1507
|
function ro(e = {}) {
|
|
1508
|
-
const t = me(e.onWarn) ? e.onWarn :
|
|
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()), E = e.pluralRules || oe(), T = me(e.missing) ? e.missing : null, N = he(e.missingWarn) || yt(e.missingWarn) ? e.missingWarn : !0, F = he(e.fallbackWarn) || yt(e.fallbackWarn) ? e.fallbackWarn : !0, w = !!e.fallbackFormat, A = !!e.unresolving, D = me(e.postTranslation) ? e.postTranslation : null, f = ee(e.processor) ? e.processor : null, v = he(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(), W = te(k.__meta) ? k.__meta : {};
|
|
1509
1509
|
gn++;
|
|
1510
1510
|
const m = {
|
|
1511
1511
|
version: n,
|
|
@@ -1518,27 +1518,27 @@ function ro(e = {}) {
|
|
|
1518
1518
|
missing: T,
|
|
1519
1519
|
missingWarn: N,
|
|
1520
1520
|
fallbackWarn: F,
|
|
1521
|
-
fallbackFormat:
|
|
1521
|
+
fallbackFormat: w,
|
|
1522
1522
|
unresolving: A,
|
|
1523
|
-
postTranslation:
|
|
1523
|
+
postTranslation: D,
|
|
1524
1524
|
processor: f,
|
|
1525
|
-
warnHtmlMessage:
|
|
1525
|
+
warnHtmlMessage: v,
|
|
1526
1526
|
escapeParameter: S,
|
|
1527
1527
|
messageCompiler: c,
|
|
1528
1528
|
messageResolver: b,
|
|
1529
1529
|
localeFallbacker: I,
|
|
1530
1530
|
fallbackContext: p,
|
|
1531
1531
|
onWarn: t,
|
|
1532
|
-
__meta:
|
|
1532
|
+
__meta: W
|
|
1533
1533
|
};
|
|
1534
|
-
return m.datetimeFormats = u, m.numberFormats = i, m.__datetimeFormatters = L, m.__numberFormatters = X, __INTLIFY_PROD_DEVTOOLS__ &&
|
|
1534
|
+
return m.datetimeFormats = u, m.numberFormats = i, m.__datetimeFormatters = L, m.__numberFormatters = X, __INTLIFY_PROD_DEVTOOLS__ && Ds(m, n, W), m;
|
|
1535
1535
|
}
|
|
1536
1536
|
const kt = (e) => ({ [e]: oe() });
|
|
1537
1537
|
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,26 +1559,26 @@ 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, E, T] = jt(...t), N =
|
|
1563
|
-
|
|
1564
|
-
const F = !!E.part,
|
|
1562
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __datetimeFormatters: u } = e, [i, g, E, T] = jt(...t), N = he(E.missingWarn) ? E.missingWarn : e.missingWarn;
|
|
1563
|
+
he(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn;
|
|
1564
|
+
const F = !!E.part, w = zt(e, E), A = d(
|
|
1565
1565
|
e,
|
|
1566
1566
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1567
1567
|
l,
|
|
1568
|
-
|
|
1568
|
+
w
|
|
1569
1569
|
);
|
|
1570
|
-
if (!
|
|
1571
|
-
return new Intl.DateTimeFormat(
|
|
1572
|
-
let
|
|
1570
|
+
if (!Y(i) || i === "")
|
|
1571
|
+
return new Intl.DateTimeFormat(w, T).format(g);
|
|
1572
|
+
let D = {}, f, v = null;
|
|
1573
1573
|
const S = "datetime format";
|
|
1574
|
-
for (let I = 0; I < A.length && (f = A[I],
|
|
1574
|
+
for (let I = 0; I < A.length && (f = A[I], D = n[f] || {}, v = D[i], !ee(v)); I++)
|
|
1575
1575
|
Qt(e, i, f, N, S);
|
|
1576
|
-
if (!ee(
|
|
1576
|
+
if (!ee(v) || !Y(f))
|
|
1577
1577
|
return r ? Ot : i;
|
|
1578
1578
|
let c = `${f}__${i}`;
|
|
1579
1579
|
Ct(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
1580
1580
|
let b = u.get(c);
|
|
1581
|
-
return b || (b = new Intl.DateTimeFormat(f, Ie({},
|
|
1581
|
+
return b || (b = new Intl.DateTimeFormat(f, Ie({}, v, T)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1582
1582
|
}
|
|
1583
1583
|
const qn = [
|
|
1584
1584
|
"localeMatcher",
|
|
@@ -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,9 +1624,9 @@ 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
1631
|
function En(e, t, n) {
|
|
1632
1632
|
const r = e;
|
|
@@ -1636,26 +1636,26 @@ function En(e, t, n) {
|
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
1638
1638
|
function yn(e, ...t) {
|
|
1639
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __numberFormatters: u } = e, [i, g, E, T] = Ut(...t), N =
|
|
1640
|
-
|
|
1641
|
-
const F = !!E.part,
|
|
1639
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __numberFormatters: u } = e, [i, g, E, T] = Ut(...t), N = he(E.missingWarn) ? E.missingWarn : e.missingWarn;
|
|
1640
|
+
he(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn;
|
|
1641
|
+
const F = !!E.part, w = zt(e, E), A = d(
|
|
1642
1642
|
e,
|
|
1643
1643
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1644
1644
|
l,
|
|
1645
|
-
|
|
1645
|
+
w
|
|
1646
1646
|
);
|
|
1647
|
-
if (!
|
|
1648
|
-
return new Intl.NumberFormat(
|
|
1649
|
-
let
|
|
1647
|
+
if (!Y(i) || i === "")
|
|
1648
|
+
return new Intl.NumberFormat(w, T).format(g);
|
|
1649
|
+
let D = {}, f, v = null;
|
|
1650
1650
|
const S = "number format";
|
|
1651
|
-
for (let I = 0; I < A.length && (f = A[I],
|
|
1651
|
+
for (let I = 0; I < A.length && (f = A[I], D = n[f] || {}, v = D[i], !ee(v)); I++)
|
|
1652
1652
|
Qt(e, i, f, N, S);
|
|
1653
|
-
if (!ee(
|
|
1653
|
+
if (!ee(v) || !Y(f))
|
|
1654
1654
|
return r ? Ot : i;
|
|
1655
1655
|
let c = `${f}__${i}`;
|
|
1656
1656
|
Ct(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
1657
1657
|
let b = u.get(c);
|
|
1658
|
-
return b || (b = new Intl.NumberFormat(f, Ie({},
|
|
1658
|
+
return b || (b = new Intl.NumberFormat(f, Ie({}, v, T)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1659
1659
|
}
|
|
1660
1660
|
const er = [
|
|
1661
1661
|
"localeMatcher",
|
|
@@ -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 = xr;
|
|
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,59 +1708,59 @@ 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 E(f,
|
|
1715
|
-
const S = me(e.messages) ? e.messages(f, !!
|
|
1714
|
+
function E(f, v) {
|
|
1715
|
+
const S = me(e.messages) ? e.messages(f, !!v) : 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,
|
|
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, w = ee(e.processor) && Y(e.processor.type) ? e.processor.type : io, D = {
|
|
1719
1719
|
list: u,
|
|
1720
1720
|
named: g,
|
|
1721
1721
|
plural: a,
|
|
1722
|
-
linked: (f, ...
|
|
1723
|
-
const [S, c] =
|
|
1722
|
+
linked: (f, ...v) => {
|
|
1723
|
+
const [S, c] = v;
|
|
1724
1724
|
let b = "text", I = "";
|
|
1725
|
-
|
|
1726
|
-
const p = E(f, !0)(
|
|
1725
|
+
v.length === 1 ? te(S) ? (I = S.modifier || I, b = S.type || b) : Y(S) && (I = S || I) : v.length === 2 && (Y(S) && (I = S || I), Y(c) && (b = c || b));
|
|
1726
|
+
const p = E(f, !0)(D), 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
1732
|
message: E,
|
|
1733
|
-
type:
|
|
1733
|
+
type: w,
|
|
1734
1734
|
interpolate: F,
|
|
1735
1735
|
normalize: N,
|
|
1736
1736
|
values: Ie(oe(), d, i)
|
|
1737
1737
|
};
|
|
1738
|
-
return
|
|
1738
|
+
return D;
|
|
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), E = he(g.missingWarn) ? g.missingWarn : e.missingWarn, T = he(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, N = he(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, F = !!g.resolvedMessage, w = Y(g.default) || he(g.default) ? he(g.default) ? a ? i : () => i : g.default : n ? a ? i : () => i : null, A = n || w != null && (Y(w) || me(w)), D = zt(e, g);
|
|
1743
1743
|
N && po(g);
|
|
1744
|
-
let [f,
|
|
1744
|
+
let [f, v, S] = F ? [
|
|
1745
1745
|
i,
|
|
1746
|
-
|
|
1747
|
-
u[
|
|
1748
|
-
] : tr(e, i,
|
|
1749
|
-
if (!F && !(
|
|
1746
|
+
D,
|
|
1747
|
+
u[D] || oe()
|
|
1748
|
+
] : tr(e, i, D, d, T, E), c = f, b = i;
|
|
1749
|
+
if (!F && !(Y(c) || ot(c) || Te(c)) && A && (c = w, b = c), !F && (!(Y(c) || ot(c) || Te(c)) || !Y(v)))
|
|
1750
1750
|
return l ? Ot : i;
|
|
1751
1751
|
let I = !1;
|
|
1752
1752
|
const p = () => {
|
|
1753
1753
|
I = !0;
|
|
1754
|
-
}, k = Te(c) ? c : nr(e, i,
|
|
1754
|
+
}, k = Te(c) ? c : nr(e, i, v, c, b, p);
|
|
1755
1755
|
if (I)
|
|
1756
1756
|
return c;
|
|
1757
|
-
const L = bo(e,
|
|
1757
|
+
const L = bo(e, v, S, g), X = _o(L), W = ho(e, k, X), m = r ? r(W, i) : W;
|
|
1758
1758
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1759
1759
|
const C = {
|
|
1760
1760
|
timestamp: Date.now(),
|
|
1761
|
-
key:
|
|
1762
|
-
locale:
|
|
1763
|
-
format:
|
|
1761
|
+
key: Y(i) ? i : Te(c) ? c.key : "",
|
|
1762
|
+
locale: v || (Te(c) ? c.locale : ""),
|
|
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,25 +1768,25 @@ 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
1776
|
const { messages: d, onWarn: u, messageResolver: i, localeFallbacker: g } = e, E = g(e, r, n);
|
|
1777
1777
|
let T = oe(), N, F = null;
|
|
1778
|
-
const
|
|
1779
|
-
for (let A = 0; A < E.length && (N = E[A], T = d[N] || oe(), (F = i(T, t)) === null && (F = T[t]), !(
|
|
1778
|
+
const w = "translate";
|
|
1779
|
+
for (let A = 0; A < E.length && (N = E[A], T = d[N] || oe(), (F = i(T, t)) === null && (F = T[t]), !(Y(F) || ot(F) || Te(F))); A++)
|
|
1780
1780
|
if (!oo(N, E)) {
|
|
1781
|
-
const
|
|
1781
|
+
const D = Qt(
|
|
1782
1782
|
e,
|
|
1783
1783
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1784
1784
|
t,
|
|
1785
1785
|
N,
|
|
1786
1786
|
a,
|
|
1787
|
-
|
|
1787
|
+
w
|
|
1788
1788
|
);
|
|
1789
|
-
|
|
1789
|
+
D !== t && (F = D);
|
|
1790
1790
|
}
|
|
1791
1791
|
return [F, N, T];
|
|
1792
1792
|
}
|
|
@@ -1800,20 +1800,20 @@ function nr(e, t, n, r, l, a) {
|
|
|
1800
1800
|
const g = () => r;
|
|
1801
1801
|
return g.locale = n, g.key = t, g;
|
|
1802
1802
|
}
|
|
1803
|
-
const i = d(r,
|
|
1803
|
+
const i = d(r, vo(e, n, l, r, u, a));
|
|
1804
1804
|
return i.locale = n, i.key = t, i.source = r, i;
|
|
1805
1805
|
}
|
|
1806
|
-
function
|
|
1806
|
+
function ho(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
|
-
function
|
|
1816
|
+
function vo(e, t, n, r, l, a) {
|
|
1817
1817
|
return {
|
|
1818
1818
|
locale: t,
|
|
1819
1819
|
key: n,
|
|
@@ -1829,10 +1829,10 @@ function bo(e, t, n, r) {
|
|
|
1829
1829
|
locale: t,
|
|
1830
1830
|
modifiers: l,
|
|
1831
1831
|
pluralRules: a,
|
|
1832
|
-
messages: (F,
|
|
1832
|
+
messages: (F, w) => {
|
|
1833
1833
|
let A = d(n, F);
|
|
1834
|
-
if (A == null && (E ||
|
|
1835
|
-
const [, ,
|
|
1834
|
+
if (A == null && (E || w)) {
|
|
1835
|
+
const [, , D] = tr(
|
|
1836
1836
|
E || e,
|
|
1837
1837
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1838
1838
|
F,
|
|
@@ -1841,21 +1841,21 @@ function bo(e, t, n, r) {
|
|
|
1841
1841
|
i,
|
|
1842
1842
|
g
|
|
1843
1843
|
);
|
|
1844
|
-
A = d(
|
|
1844
|
+
A = d(D, F);
|
|
1845
1845
|
}
|
|
1846
|
-
if (
|
|
1847
|
-
let
|
|
1848
|
-
const
|
|
1849
|
-
|
|
1846
|
+
if (Y(A) || ot(A)) {
|
|
1847
|
+
let D = !1;
|
|
1848
|
+
const v = nr(e, F, t, A, F, () => {
|
|
1849
|
+
D = !0;
|
|
1850
1850
|
});
|
|
1851
|
-
return
|
|
1851
|
+
return D ? Tn : v;
|
|
1852
1852
|
} else return Te(A) ? A : Tn;
|
|
1853
1853
|
}
|
|
1854
1854
|
};
|
|
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_4d5bd70c-370b-4d83-9911-6e11e5832b89", 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_4d5bd70c-370b-4d83-9911-6e11e5832b89", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.8.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/30.0.16248370", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1772", ACTIONS_ORCHESTRATION_ID: "17b1cbd7-981e-460b-9604-fe7e8d6751ef.publish.publish.__default", npm_config_engine_strict: "true", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20261004.327.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_4d5bd70c-370b-4d83-9911-6e11e5832b89", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:10711", 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: "38598143921", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "3bca1816d5e9a96aec54fac348127fee19a4bf52", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.8/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/KDI-5086-hrm-schedule", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9LREktNTA4Ni1ocm0tc2NoZWR1bGVcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTIwMTc0MTYsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MTk5NTIxNiwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImJlNmRlY2ZmLWM2ZjEtNWNmNy04NzRiLTFiZWIxNjI1M2QwNCIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiMDlmNzZkOGFjNWU2YTA3MDc1NDI3NDllMWQ1Njg3YmYxZWFkNWYyYyIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MTk5NDkxNiwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCIxMTU5NzAxMDIzNzRcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjA5Zjc2ZDhhYzVlNmEwNzA3NTQyNzQ5ZTFkNTY4N2JmMWVhZDVmMmNcIixcInJlZlwiOlwicmVmcy9oZWFkcy9LREktNTA4Ni1ocm0tc2NoZWR1bGVcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJyZXBvc2l0b3J5XCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2VcIixcInJlcG9zaXRvcnlfaWRcIjpcIjExMjQ2NzIyMzVcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJ1bl9pZFwiOlwiMzg1OTgxNDM5MjFcIixcInJ1bl9udW1iZXJcIjpcIjIwMFwiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcIjNiY2ExODE2ZDVlOWE5NmFlYzU0ZmFjMzQ4MTI3ZmVlMTlhNGJmNTJcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIGhybS1wb3J0YWxcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtaHJtLXBvcnRhbC10cnVzdGVkLnltbEByZWZzL2hlYWRzL0tESS01MDg2LWhybS1zY2hlZHVsZVwiLFwid29ya2Zsb3dfc2hhXCI6XCIzYmNhMTgxNmQ1ZTlhOTZhZWM1NGZhYzM0ODEyN2ZlZTE5YTRiZjUyXCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9LREktNTA4Ni1ocm0tc2NoZWR1bGUiLCJvcmNoX2lkIjoiMTdiMWNiZDctOTgxZS00NjBiLTk2MDQtZmU3ZThkNjc1MWVmLnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiIxN2IxY2JkNy05ODFlLTQ2MGItOTYwNC1mZTdlOGQ2NzUxZWYiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiIzODU5ODE0MzkyMSIsInJ1bl9udW1iZXIiOiIyMDAiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMTk4MTA0IiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6MTdiMWNiZDctOTgxZS00NjBiLTk2MDQtZmU3ZThkNjc1MWVmOmJlNmRlY2ZmLWM2ZjEtNWNmNy04NzRiLTFiZWIxNjI1M2QwNCBBY3Rpb25zLlJ1bm5lcjoxN2IxY2JkNy05ODFlLTQ2MGItOTYwNC1mZTdlOGQ2NzUxZWY6YmU2ZGVjZmYtYzZmMS01Y2Y3LTg3NGItMWJlYjE2MjUzZDA0IEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOjE3YjFjYmQ3LTk4MWUtNDYwYi05NjA0LWZlN2U4ZDY3NTFlZjpiZTZkZWNmZi1jNmYxLTVjZjctODc0Yi0xYmViMTYyNTNkMDQgZ2VuZXJhdGVfaWRfdG9rZW46MTdiMWNiZDctOTgxZS00NjBiLTk2MDQtZmU3ZThkNjc1MWVmOmJlNmRlY2ZmLWM2ZjEtNWNmNy04NzRiLTFiZWIxNjI1M2QwNCBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6IjNiY2ExODE2ZDVlOWE5NmFlYzU0ZmFjMzQ4MTI3ZmVlMTlhNGJmNTIiLCJ0cnVzdF90aWVyIjoiMSJ9.4pEwqIzp6uQtC9h-WwWNp2yIVvZEv7HLvlwUzhyI9s7NGNp_0MZJTP03BRA2EcUvbpG0rdzABw_AemaTetBExTYEVUHd-upqgBrx3rAltngO-zxLnDIav_xYEFcMwCr2SPFEcMywf3skKAV_6r0tI0XPU4vPeG9Lvhzn1D0yj-HMCqC6bBPMBKNOFi6TtSFWCK7lQ2E_j68NWyXU9wXbDcAhwwE9jNEw5KNN18395DEFR3uv3-9tgz_3KcrPcaldl5RaWeb_mWwWGGnWHVIIucShHrDVWcQf8q339oUHhezdxoTakbGxtH8JFfu5NuyRK9pecoayUGT39vp1zdTf0Q", 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_da13e43c-4710-4ef0-8fa5-7c68f5051c83", INVOCATION_ID: "9b0e76b9856c4c30809ee884a59017a8", 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: "200", 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 1000198104", 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.17", 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: "3bca1816d5e9a96aec54fac348127fee19a4bf52", 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_4d5bd70c-370b-4d83-9911-6e11e5832b89", 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-1-azure-eastus.actions.githubusercontent.com/5//idtoken/17b1cbd7-981e-460b-9604-fe7e8d6751ef/be6decff-c6f1-5cf7-874b-1beb16253d04?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_4d5bd70c-370b-4d83-9911-6e11e5832b89", 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_4d5bd70c-370b-4d83-9911-6e11e5832b89", 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_4d5bd70c-370b-4d83-9911-6e11e5832b89", 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_d59ed343-e200-403e-a392-a9dc934e8922", 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_d59ed343-e200-403e-a392-a9dc934e8922", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.8.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/30.0.16248370", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1935", ACTIONS_ORCHESTRATION_ID: "ccbbdeaa-f4b8-4faa-8611-672f33337c68.publish.publish.__default", npm_config_engine_strict: "true", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20261004.327.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_d59ed343-e200-403e-a392-a9dc934e8922", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:13042", 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: "38601177816", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "df89cf26aca8ca10f20099655b4b01a0fe1b7435", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.8/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/KDI-5086-hrm-schedule", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9LREktNTA4Ni1ocm0tc2NoZWR1bGVcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTIwMTg3MDEsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MTk5NjUwMSwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjNkMjkzNjkwLWY1ZjItNWQ0MC04YTBlLTA4YmFmMzY3MjJkMCIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiMDlmNzZkOGFjNWU2YTA3MDc1NDI3NDllMWQ1Njg3YmYxZWFkNWYyYyIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MTk5NjIwMSwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCIxMTU5ODA1MzMzNDlcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjA5Zjc2ZDhhYzVlNmEwNzA3NTQyNzQ5ZTFkNTY4N2JmMWVhZDVmMmNcIixcInJlZlwiOlwicmVmcy9oZWFkcy9LREktNTA4Ni1ocm0tc2NoZWR1bGVcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJyZXBvc2l0b3J5XCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2VcIixcInJlcG9zaXRvcnlfaWRcIjpcIjExMjQ2NzIyMzVcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJ1bl9pZFwiOlwiMzg2MDExNzc4MTZcIixcInJ1bl9udW1iZXJcIjpcIjIwMVwiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcImRmODljZjI2YWNhOGNhMTBmMjAwOTk2NTViNGIwMWEwZmUxYjc0MzVcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIGhybS1wb3J0YWxcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtaHJtLXBvcnRhbC10cnVzdGVkLnltbEByZWZzL2hlYWRzL0tESS01MDg2LWhybS1zY2hlZHVsZVwiLFwid29ya2Zsb3dfc2hhXCI6XCJkZjg5Y2YyNmFjYThjYTEwZjIwMDk5NjU1YjRiMDFhMGZlMWI3NDM1XCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9LREktNTA4Ni1ocm0tc2NoZWR1bGUiLCJvcmNoX2lkIjoiY2NiYmRlYWEtZjRiOC00ZmFhLTg2MTEtNjcyZjMzMzM3YzY4LnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiJjY2JiZGVhYS1mNGI4LTRmYWEtODYxMS02NzJmMzMzMzdjNjgiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiIzODYwMTE3NzgxNiIsInJ1bl9udW1iZXIiOiIyMDEiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMTk4MTU2IiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6Y2NiYmRlYWEtZjRiOC00ZmFhLTg2MTEtNjcyZjMzMzM3YzY4OjNkMjkzNjkwLWY1ZjItNWQ0MC04YTBlLTA4YmFmMzY3MjJkMCBBY3Rpb25zLlJ1bm5lcjpjY2JiZGVhYS1mNGI4LTRmYWEtODYxMS02NzJmMzMzMzdjNjg6M2QyOTM2OTAtZjVmMi01ZDQwLThhMGUtMDhiYWYzNjcyMmQwIEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOmNjYmJkZWFhLWY0YjgtNGZhYS04NjExLTY3MmYzMzMzN2M2ODozZDI5MzY5MC1mNWYyLTVkNDAtOGEwZS0wOGJhZjM2NzIyZDAgZ2VuZXJhdGVfaWRfdG9rZW46Y2NiYmRlYWEtZjRiOC00ZmFhLTg2MTEtNjcyZjMzMzM3YzY4OjNkMjkzNjkwLWY1ZjItNWQ0MC04YTBlLTA4YmFmMzY3MjJkMCBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6ImRmODljZjI2YWNhOGNhMTBmMjAwOTk2NTViNGIwMWEwZmUxYjc0MzUiLCJ0cnVzdF90aWVyIjoiMSJ9.nlgPBQVz94Zf_ctEWlUaR-XCVM0kI5So7smzDMXdf-UhWDY6FHMWeQy7up5ObQqXKKg5QW40YqpkAwFwxm8R5CKdZc8qfXFjerYpZukOSFB8SJapkHlqe1vIwX8K9lqDoLd_1nseML6WR9hNOwnI86BdNQaOk6eiRhp72Q4hcWOxZ_TVjUBnWl1Pqyyd-NgmAAxzVv7Zms_CjynD877pA1lGFADR9i7fVugu9hrNbxcClkiYFUcP8QFRpkYag2fcqIGcXavQ682npBjMn0Zm70YD3CVFOgA4xX_pyA0lvOL-iaUHT6G92mJX_FKws9i7I0lfOY7RnmYK4shQwhF7Eg", 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_805a5e30-3c47-4246-805a-9c5362daefd6", INVOCATION_ID: "c883abab28894ebd8e6dc8fd0b0d9d41", 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: "201", 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 1000198156", 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.18", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", GITHUB_SHA: "df89cf26aca8ca10f20099655b4b01a0fe1b7435", 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_d59ed343-e200-403e-a392-a9dc934e8922", 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-3-azure-eastus.actions.githubusercontent.com/113//idtoken/ccbbdeaa-f4b8-4faa-8611-672f33337c68/3d293690-f5f2-5d40-8a0e-08baf36722d0?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_d59ed343-e200-403e-a392-a9dc934e8922", 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_d59ed343-e200-403e-a392-a9dc934e8922", 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_d59ed343-e200-403e-a392-a9dc934e8922", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1859
1859
|
const Io = "10.0.5";
|
|
1860
1860
|
function Eo() {
|
|
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);
|
|
@@ -1876,7 +1876,7 @@ const at = {
|
|
|
1876
1876
|
function ut(e, ...t) {
|
|
1877
1877
|
return Tt(e, null, void 0);
|
|
1878
1878
|
}
|
|
1879
|
-
const
|
|
1879
|
+
const Wt = /* @__PURE__ */ $e("__translateVNode"), xt = /* @__PURE__ */ $e("__datetimeParts"), Gt = /* @__PURE__ */ $e("__numberParts"), yo = $e("__setPluralRules"), rr = /* @__PURE__ */ $e("__injectWithOption"), Yt = /* @__PURE__ */ $e("__dispose");
|
|
1880
1880
|
function dt(e) {
|
|
1881
1881
|
if (!te(e))
|
|
1882
1882
|
return e;
|
|
@@ -1905,7 +1905,7 @@ function sr(e, t) {
|
|
|
1905
1905
|
const { locale: i, resource: g } = u;
|
|
1906
1906
|
i ? (d[i] = d[i] || oe(), Et(g, d[i])) : Et(g, d);
|
|
1907
1907
|
} else
|
|
1908
|
-
|
|
1908
|
+
Y(u) && Et(JSON.parse(u), d);
|
|
1909
1909
|
}), l == null && a)
|
|
1910
1910
|
for (const u in d)
|
|
1911
1911
|
Le(d, u) && dt(d[u]);
|
|
@@ -1945,29 +1945,29 @@ function Sn(e) {
|
|
|
1945
1945
|
const Ln = "__INTLIFY_META__", An = () => [], Co = () => !1;
|
|
1946
1946
|
let Rn = 0;
|
|
1947
1947
|
function kn(e) {
|
|
1948
|
-
return (t, n, r, l) => e(n, r,
|
|
1948
|
+
return (t, n, r, l) => e(n, r, Bt() || void 0, l);
|
|
1949
1949
|
}
|
|
1950
1950
|
const To = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1951
|
-
const e =
|
|
1951
|
+
const e = Bt();
|
|
1952
1952
|
let t = null;
|
|
1953
1953
|
return e && (t = or(e)[Ln]) ? { [Ln]: t } : null;
|
|
1954
1954
|
};
|
|
1955
1955
|
function Oo(e = {}) {
|
|
1956
1956
|
const { __root: t, __injectWithOption: n } = e, r = t === void 0, l = e.flatJson, a = on ? rt : dr;
|
|
1957
|
-
let d =
|
|
1957
|
+
let d = he(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 :
|
|
1963
|
+
t && d ? t.fallbackLocale.value : Y(e.fallbackLocale) || be(e.fallbackLocale) || ee(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
1964
1964
|
), g = a(sr(u.value, e)), E = a(ee(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), T = a(ee(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
|
|
1965
|
-
let N = t ? t.missingWarn :
|
|
1965
|
+
let N = t ? t.missingWarn : he(e.missingWarn) || yt(e.missingWarn) ? e.missingWarn : !0, F = t ? t.fallbackWarn : he(e.fallbackWarn) || yt(e.fallbackWarn) ? e.fallbackWarn : !0, w = t ? t.fallbackRoot : he(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.fallbackFormat, D = me(e.missing) ? e.missing : null, f = me(e.missing) ? kn(e.missing) : null, v = me(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : he(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 = (() => {
|
|
1969
1969
|
r && bn(null);
|
|
1970
|
-
const
|
|
1970
|
+
const h = {
|
|
1971
1971
|
version: Io,
|
|
1972
1972
|
locale: u.value,
|
|
1973
1973
|
fallbackLocale: i.value,
|
|
@@ -1979,15 +1979,15 @@ function Oo(e = {}) {
|
|
|
1979
1979
|
fallbackWarn: F,
|
|
1980
1980
|
fallbackFormat: A,
|
|
1981
1981
|
unresolving: !0,
|
|
1982
|
-
postTranslation:
|
|
1982
|
+
postTranslation: v === null ? void 0 : v,
|
|
1983
1983
|
warnHtmlMessage: S,
|
|
1984
1984
|
escapeParameter: c,
|
|
1985
1985
|
messageResolver: e.messageResolver,
|
|
1986
1986
|
messageCompiler: e.messageCompiler,
|
|
1987
1987
|
__meta: { framework: "vue" }
|
|
1988
1988
|
};
|
|
1989
|
-
|
|
1990
|
-
const y = ro(
|
|
1989
|
+
h.datetimeFormats = E.value, h.numberFormats = T.value, h.__datetimeFormatters = ee(p) ? p.__datetimeFormatters : void 0, h.__numberFormatters = ee(p) ? p.__numberFormatters : void 0;
|
|
1990
|
+
const y = ro(h);
|
|
1991
1991
|
return r && bn(y), y;
|
|
1992
1992
|
})(), lt(p, u.value, i.value);
|
|
1993
1993
|
function L() {
|
|
@@ -2001,102 +2001,102 @@ function Oo(e = {}) {
|
|
|
2001
2001
|
}
|
|
2002
2002
|
const X = z({
|
|
2003
2003
|
get: () => u.value,
|
|
2004
|
-
set: (
|
|
2005
|
-
u.value =
|
|
2004
|
+
set: (h) => {
|
|
2005
|
+
u.value = h, p.locale = u.value;
|
|
2006
2006
|
}
|
|
2007
|
-
}),
|
|
2007
|
+
}), W = z({
|
|
2008
2008
|
get: () => i.value,
|
|
2009
|
-
set: (
|
|
2010
|
-
i.value =
|
|
2009
|
+
set: (h) => {
|
|
2010
|
+
i.value = h, p.fallbackLocale = i.value, lt(p, u.value, h);
|
|
2011
2011
|
}
|
|
2012
2012
|
}), m = z(() => g.value), C = /* @__PURE__ */ z(() => E.value), U = /* @__PURE__ */ z(() => T.value);
|
|
2013
|
-
function
|
|
2014
|
-
return me(
|
|
2013
|
+
function V() {
|
|
2014
|
+
return me(v) ? v : null;
|
|
2015
2015
|
}
|
|
2016
|
-
function j(
|
|
2017
|
-
|
|
2016
|
+
function j(h) {
|
|
2017
|
+
v = h, p.postTranslation = h;
|
|
2018
2018
|
}
|
|
2019
|
-
function
|
|
2020
|
-
return
|
|
2019
|
+
function G() {
|
|
2020
|
+
return D;
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2023
|
-
|
|
2022
|
+
function x(h) {
|
|
2023
|
+
h !== null && (f = kn(h)), D = h, p.missing = f;
|
|
2024
2024
|
}
|
|
2025
|
-
const
|
|
2025
|
+
const Z = (h, y, $, le, Be, mt) => {
|
|
2026
2026
|
L();
|
|
2027
2027
|
let ze;
|
|
2028
2028
|
try {
|
|
2029
|
-
go.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = t ? no() : void 0), ze =
|
|
2029
|
+
go.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = t ? no() : void 0), ze = h(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
2034
|
ge(ze) && ze === Ot || $ === "translate exists" && !ze) {
|
|
2035
2035
|
const [cr, ya] = y();
|
|
2036
|
-
return t &&
|
|
2036
|
+
return t && w ? le(t) : Be(cr);
|
|
2037
2037
|
} else {
|
|
2038
2038
|
if (mt(ze))
|
|
2039
2039
|
return ze;
|
|
2040
2040
|
throw ut(at.UNEXPECTED_RETURN_TYPE);
|
|
2041
2041
|
}
|
|
2042
2042
|
};
|
|
2043
|
-
function
|
|
2044
|
-
return
|
|
2043
|
+
function B(...h) {
|
|
2044
|
+
return Z((y) => Reflect.apply(On, null, [y, ...h]), () => Vt(...h), "translate", (y) => Reflect.apply(y.t, y, [...h]), (y) => y, (y) => Y(y));
|
|
2045
2045
|
}
|
|
2046
|
-
function ne(...
|
|
2047
|
-
const [y, $, le] =
|
|
2046
|
+
function ne(...h) {
|
|
2047
|
+
const [y, $, le] = h;
|
|
2048
2048
|
if (le && !te(le))
|
|
2049
2049
|
throw ut(at.INVALID_ARGUMENT);
|
|
2050
|
-
return
|
|
2050
|
+
return B(y, $, Ie({ resolvedMessage: !0 }, le || {}));
|
|
2051
2051
|
}
|
|
2052
|
-
function Q(...
|
|
2053
|
-
return
|
|
2052
|
+
function Q(...h) {
|
|
2053
|
+
return Z((y) => Reflect.apply(In, null, [y, ...h]), () => jt(...h), "datetime format", (y) => Reflect.apply(y.d, y, [...h]), () => hn, (y) => Y(y));
|
|
2054
2054
|
}
|
|
2055
|
-
function _e(...
|
|
2056
|
-
return
|
|
2055
|
+
function _e(...h) {
|
|
2056
|
+
return Z((y) => Reflect.apply(yn, null, [y, ...h]), () => Ut(...h), "number format", (y) => Reflect.apply(y.n, y, [...h]), () => hn, (y) => Y(y));
|
|
2057
2057
|
}
|
|
2058
|
-
function ce(
|
|
2059
|
-
return
|
|
2058
|
+
function ce(h) {
|
|
2059
|
+
return h.map((y) => Y(y) || ge(y) || he(y) ? Sn(String(y)) : y);
|
|
2060
2060
|
}
|
|
2061
2061
|
const fe = {
|
|
2062
2062
|
normalize: ce,
|
|
2063
|
-
interpolate: (
|
|
2063
|
+
interpolate: (h) => h,
|
|
2064
2064
|
type: "vnode"
|
|
2065
2065
|
};
|
|
2066
|
-
function q(...
|
|
2067
|
-
return
|
|
2066
|
+
function q(...h) {
|
|
2067
|
+
return Z((y) => {
|
|
2068
2068
|
let $;
|
|
2069
2069
|
const le = y;
|
|
2070
2070
|
try {
|
|
2071
|
-
le.processor = fe, $ = Reflect.apply(On, null, [le, ...
|
|
2071
|
+
le.processor = fe, $ = Reflect.apply(On, null, [le, ...h]);
|
|
2072
2072
|
} finally {
|
|
2073
2073
|
le.processor = null;
|
|
2074
2074
|
}
|
|
2075
2075
|
return $;
|
|
2076
|
-
}, () =>
|
|
2076
|
+
}, () => Vt(...h), "translate", (y) => y[Wt](...h), (y) => [Sn(y)], (y) => be(y));
|
|
2077
2077
|
}
|
|
2078
|
-
function
|
|
2079
|
-
return
|
|
2078
|
+
function De(...h) {
|
|
2079
|
+
return Z((y) => Reflect.apply(yn, null, [y, ...h]), () => Ut(...h), "number format", (y) => y[Gt](...h), An, (y) => Y(y) || be(y));
|
|
2080
2080
|
}
|
|
2081
|
-
function K(...
|
|
2082
|
-
return
|
|
2081
|
+
function K(...h) {
|
|
2082
|
+
return Z((y) => Reflect.apply(In, null, [y, ...h]), () => jt(...h), "datetime format", (y) => y[xt](...h), An, (y) => Y(y) || be(y));
|
|
2083
2083
|
}
|
|
2084
|
-
function pe(
|
|
2085
|
-
I =
|
|
2084
|
+
function pe(h) {
|
|
2085
|
+
I = h, p.pluralRules = I;
|
|
2086
2086
|
}
|
|
2087
|
-
function Je(
|
|
2088
|
-
return
|
|
2089
|
-
if (!
|
|
2087
|
+
function Je(h, y) {
|
|
2088
|
+
return Z(() => {
|
|
2089
|
+
if (!h)
|
|
2090
2090
|
return !1;
|
|
2091
|
-
const $ =
|
|
2092
|
-
return ot(
|
|
2093
|
-
}, () => [
|
|
2091
|
+
const $ = Y(y) ? y : u.value, le = Fe($), Be = p.messageResolver(le, h);
|
|
2092
|
+
return ot(Be) || Te(Be) || Y(Be);
|
|
2093
|
+
}, () => [h], "translate exists", ($) => Reflect.apply($.te, $, [h, y]), Co, ($) => he($));
|
|
2094
2094
|
}
|
|
2095
|
-
function Ke(
|
|
2095
|
+
function Ke(h) {
|
|
2096
2096
|
let y = null;
|
|
2097
2097
|
const $ = Hn(p, i.value, u.value);
|
|
2098
2098
|
for (let le = 0; le < $.length; le++) {
|
|
2099
|
-
const
|
|
2099
|
+
const Be = g.value[$[le]] || {}, mt = p.messageResolver(Be, h);
|
|
2100
2100
|
if (mt != null) {
|
|
2101
2101
|
y = mt;
|
|
2102
2102
|
break;
|
|
@@ -2104,62 +2104,62 @@ function Oo(e = {}) {
|
|
|
2104
2104
|
}
|
|
2105
2105
|
return y;
|
|
2106
2106
|
}
|
|
2107
|
-
function
|
|
2108
|
-
const y = Ke(
|
|
2109
|
-
return y ?? (t ? t.tm(
|
|
2107
|
+
function Ve(h) {
|
|
2108
|
+
const y = Ke(h);
|
|
2109
|
+
return y ?? (t ? t.tm(h) || {} : {});
|
|
2110
2110
|
}
|
|
2111
|
-
function Fe(
|
|
2112
|
-
return g.value[
|
|
2111
|
+
function Fe(h) {
|
|
2112
|
+
return g.value[h] || {};
|
|
2113
2113
|
}
|
|
2114
|
-
function Ce(
|
|
2114
|
+
function Ce(h, y) {
|
|
2115
2115
|
if (l) {
|
|
2116
|
-
const $ = { [
|
|
2116
|
+
const $ = { [h]: y };
|
|
2117
2117
|
for (const le in $)
|
|
2118
2118
|
Le($, le) && dt($[le]);
|
|
2119
|
-
y = $[
|
|
2119
|
+
y = $[h];
|
|
2120
2120
|
}
|
|
2121
|
-
g.value[
|
|
2121
|
+
g.value[h] = y, p.messages = g.value;
|
|
2122
2122
|
}
|
|
2123
|
-
function
|
|
2124
|
-
g.value[
|
|
2125
|
-
const $ = { [
|
|
2123
|
+
function Ze(h, y) {
|
|
2124
|
+
g.value[h] = g.value[h] || {};
|
|
2125
|
+
const $ = { [h]: y };
|
|
2126
2126
|
if (l)
|
|
2127
2127
|
for (const le in $)
|
|
2128
2128
|
Le($, le) && dt($[le]);
|
|
2129
|
-
y = $[
|
|
2129
|
+
y = $[h], Et(y, g.value[h]), p.messages = g.value;
|
|
2130
2130
|
}
|
|
2131
|
-
function O(
|
|
2132
|
-
return E.value[
|
|
2131
|
+
function O(h) {
|
|
2132
|
+
return E.value[h] || {};
|
|
2133
2133
|
}
|
|
2134
|
-
function s(
|
|
2135
|
-
E.value[
|
|
2134
|
+
function s(h, y) {
|
|
2135
|
+
E.value[h] = y, p.datetimeFormats = E.value, En(p, h, y);
|
|
2136
2136
|
}
|
|
2137
|
-
function o(
|
|
2138
|
-
E.value[
|
|
2137
|
+
function o(h, y) {
|
|
2138
|
+
E.value[h] = Ie(E.value[h] || {}, y), p.datetimeFormats = E.value, En(p, h, y);
|
|
2139
2139
|
}
|
|
2140
|
-
function _(
|
|
2141
|
-
return T.value[
|
|
2140
|
+
function _(h) {
|
|
2141
|
+
return T.value[h] || {};
|
|
2142
2142
|
}
|
|
2143
|
-
function R(
|
|
2144
|
-
T.value[
|
|
2143
|
+
function R(h, y) {
|
|
2144
|
+
T.value[h] = y, p.numberFormats = T.value, Nn(p, h, y);
|
|
2145
2145
|
}
|
|
2146
|
-
function M(
|
|
2147
|
-
T.value[
|
|
2146
|
+
function M(h, y) {
|
|
2147
|
+
T.value[h] = Ie(T.value[h] || {}, y), p.numberFormats = T.value, Nn(p, h, y);
|
|
2148
2148
|
}
|
|
2149
|
-
Rn++, t && on && (
|
|
2150
|
-
d && (u.value =
|
|
2151
|
-
}),
|
|
2152
|
-
d && (i.value =
|
|
2149
|
+
Rn++, t && on && (wt(t.locale, (h) => {
|
|
2150
|
+
d && (u.value = h, p.locale = h, lt(p, u.value, i.value));
|
|
2151
|
+
}), wt(t.fallbackLocale, (h) => {
|
|
2152
|
+
d && (i.value = h, p.fallbackLocale = h, lt(p, u.value, i.value));
|
|
2153
2153
|
}));
|
|
2154
2154
|
const P = {
|
|
2155
2155
|
id: Rn,
|
|
2156
2156
|
locale: X,
|
|
2157
|
-
fallbackLocale:
|
|
2157
|
+
fallbackLocale: W,
|
|
2158
2158
|
get inheritLocale() {
|
|
2159
2159
|
return d;
|
|
2160
2160
|
},
|
|
2161
|
-
set inheritLocale(
|
|
2162
|
-
d =
|
|
2161
|
+
set inheritLocale(h) {
|
|
2162
|
+
d = h, h && t && (u.value = t.locale.value, i.value = t.fallbackLocale.value, lt(p, u.value, i.value));
|
|
2163
2163
|
},
|
|
2164
2164
|
get availableLocales() {
|
|
2165
2165
|
return Object.keys(g.value).sort();
|
|
@@ -2177,50 +2177,50 @@ function Oo(e = {}) {
|
|
|
2177
2177
|
get missingWarn() {
|
|
2178
2178
|
return N;
|
|
2179
2179
|
},
|
|
2180
|
-
set missingWarn(
|
|
2181
|
-
N =
|
|
2180
|
+
set missingWarn(h) {
|
|
2181
|
+
N = h, p.missingWarn = N;
|
|
2182
2182
|
},
|
|
2183
2183
|
get fallbackWarn() {
|
|
2184
2184
|
return F;
|
|
2185
2185
|
},
|
|
2186
|
-
set fallbackWarn(
|
|
2187
|
-
F =
|
|
2186
|
+
set fallbackWarn(h) {
|
|
2187
|
+
F = h, p.fallbackWarn = F;
|
|
2188
2188
|
},
|
|
2189
2189
|
get fallbackRoot() {
|
|
2190
|
-
return
|
|
2190
|
+
return w;
|
|
2191
2191
|
},
|
|
2192
|
-
set fallbackRoot(
|
|
2193
|
-
|
|
2192
|
+
set fallbackRoot(h) {
|
|
2193
|
+
w = h;
|
|
2194
2194
|
},
|
|
2195
2195
|
get fallbackFormat() {
|
|
2196
2196
|
return A;
|
|
2197
2197
|
},
|
|
2198
|
-
set fallbackFormat(
|
|
2199
|
-
A =
|
|
2198
|
+
set fallbackFormat(h) {
|
|
2199
|
+
A = h, p.fallbackFormat = A;
|
|
2200
2200
|
},
|
|
2201
2201
|
get warnHtmlMessage() {
|
|
2202
2202
|
return S;
|
|
2203
2203
|
},
|
|
2204
|
-
set warnHtmlMessage(
|
|
2205
|
-
S =
|
|
2204
|
+
set warnHtmlMessage(h) {
|
|
2205
|
+
S = h, p.warnHtmlMessage = h;
|
|
2206
2206
|
},
|
|
2207
2207
|
get escapeParameter() {
|
|
2208
2208
|
return c;
|
|
2209
2209
|
},
|
|
2210
|
-
set escapeParameter(
|
|
2211
|
-
c =
|
|
2210
|
+
set escapeParameter(h) {
|
|
2211
|
+
c = h, p.escapeParameter = h;
|
|
2212
2212
|
},
|
|
2213
|
-
t:
|
|
2213
|
+
t: B,
|
|
2214
2214
|
getLocaleMessage: Fe,
|
|
2215
2215
|
setLocaleMessage: Ce,
|
|
2216
|
-
mergeLocaleMessage:
|
|
2217
|
-
getPostTranslationHandler:
|
|
2216
|
+
mergeLocaleMessage: Ze,
|
|
2217
|
+
getPostTranslationHandler: V,
|
|
2218
2218
|
setPostTranslationHandler: j,
|
|
2219
|
-
getMissingHandler:
|
|
2220
|
-
setMissingHandler:
|
|
2219
|
+
getMissingHandler: G,
|
|
2220
|
+
setMissingHandler: x,
|
|
2221
2221
|
[yo]: 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[Wt] = q, P[xt] = K, P[Gt] = De, 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
|
-
const
|
|
2278
|
+
const w = l[N.type], A = w ? w({ [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 E = Ie(oe(), a), T =
|
|
2282
|
-
return
|
|
2280
|
+
}) : Y(i) && (g = [i]);
|
|
2281
|
+
const E = Ie(oe(), a), T = Y(e.tag) || te(e.tag) ? e.tag : ar();
|
|
2282
|
+
return xn(T, E, g);
|
|
2283
2283
|
};
|
|
2284
2284
|
}
|
|
2285
2285
|
Ie({
|
|
@@ -2302,7 +2302,7 @@ Ie({
|
|
|
2302
2302
|
}, qt);
|
|
2303
2303
|
const Ao = /* @__PURE__ */ $e("global-vue-i18n");
|
|
2304
2304
|
function St(e = {}) {
|
|
2305
|
-
const t =
|
|
2305
|
+
const t = Bt();
|
|
2306
2306
|
if (t == null)
|
|
2307
2307
|
throw ut(at.MUST_BE_CALL_SETUP_TOP);
|
|
2308
2308
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
@@ -2311,14 +2311,14 @@ function St(e = {}) {
|
|
|
2311
2311
|
if (a === "global")
|
|
2312
2312
|
return No(r, e, l), r;
|
|
2313
2313
|
if (a === "parent") {
|
|
2314
|
-
let i =
|
|
2314
|
+
let i = wo(n, t, e.__useComponent);
|
|
2315
2315
|
return i == null && (i = r), i;
|
|
2316
2316
|
}
|
|
2317
2317
|
const d = n;
|
|
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
|
}
|
|
@@ -2334,10 +2334,10 @@ function ko(e, t) {
|
|
|
2334
2334
|
function Mo(e) {
|
|
2335
2335
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2336
2336
|
}
|
|
2337
|
-
function
|
|
2337
|
+
function wo(e, t, n = !1) {
|
|
2338
2338
|
let r = null;
|
|
2339
2339
|
const l = t.root;
|
|
2340
|
-
let a =
|
|
2340
|
+
let a = Do(t, n);
|
|
2341
2341
|
for (; a != null; ) {
|
|
2342
2342
|
const d = e;
|
|
2343
2343
|
if (e.mode === "composition")
|
|
@@ -2352,16 +2352,16 @@ function Do(e, t, n = !1) {
|
|
|
2352
2352
|
}
|
|
2353
2353
|
return r;
|
|
2354
2354
|
}
|
|
2355
|
-
function
|
|
2355
|
+
function Do(e, t = !1) {
|
|
2356
2356
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2357
2357
|
}
|
|
2358
2358
|
function Fo(e, t, n) {
|
|
2359
|
-
|
|
2359
|
+
Wn(() => {
|
|
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
2367
|
Eo();
|
|
@@ -2370,9 +2370,9 @@ Qs($s);
|
|
|
2370
2370
|
qs(Hn);
|
|
2371
2371
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2372
2372
|
const e = Xe();
|
|
2373
|
-
e.__INTLIFY__ = !0,
|
|
2373
|
+
e.__INTLIFY__ = !0, ws(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2374
2374
|
}
|
|
2375
|
-
const
|
|
2375
|
+
const ht = /* @__PURE__ */ Ae({
|
|
2376
2376
|
__name: "InheritPermissionTooltip",
|
|
2377
2377
|
props: {
|
|
2378
2378
|
item: {
|
|
@@ -2383,7 +2383,7 @@ const vt = /* @__PURE__ */ Ae({
|
|
|
2383
2383
|
setup(e) {
|
|
2384
2384
|
const { t } = St();
|
|
2385
2385
|
return (n, r) => {
|
|
2386
|
-
const l =
|
|
2386
|
+
const l = we("FmIcon"), a = we("FmTooltip");
|
|
2387
2387
|
return J(), Ne(a, {
|
|
2388
2388
|
variant: "plain",
|
|
2389
2389
|
placement: "right",
|
|
@@ -2421,7 +2421,7 @@ function Mn(e, t, n) {
|
|
|
2421
2421
|
actions: Array.from(a)
|
|
2422
2422
|
});
|
|
2423
2423
|
}
|
|
2424
|
-
const
|
|
2424
|
+
const wn = Object.values(Sr), Po = {
|
|
2425
2425
|
read: "View",
|
|
2426
2426
|
create: "Duplicate",
|
|
2427
2427
|
update: "Edit"
|
|
@@ -2430,71 +2430,71 @@ function jo(e, t, n, r) {
|
|
|
2430
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
|
-
for (const
|
|
2434
|
-
const
|
|
2435
|
-
if (!
|
|
2436
|
-
const
|
|
2437
|
-
if (n.value.includes(
|
|
2433
|
+
for (const G of t.value) {
|
|
2434
|
+
const x = G.category;
|
|
2435
|
+
if (!x) continue;
|
|
2436
|
+
const Z = G.subject;
|
|
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
|
|
2441
|
-
U.set(
|
|
2442
|
-
label: l(`permissionSet.permissionLabels.${
|
|
2443
|
-
value:
|
|
2444
|
-
optionKey: `${
|
|
2445
|
-
}), C.has(
|
|
2439
|
+
m.has(x) || m.set(x, []);
|
|
2440
|
+
const B = U.get(Z) ?? 0;
|
|
2441
|
+
U.set(Z, B + 1), m.get(x).push({
|
|
2442
|
+
label: l(`permissionSet.permissionLabels.${Z}`, G.label),
|
|
2443
|
+
value: Z,
|
|
2444
|
+
optionKey: `${Z}::${B}`
|
|
2445
|
+
}), C.has(Z) || C.set(Z, G);
|
|
2446
2446
|
}
|
|
2447
|
-
return [...m.keys()].sort((
|
|
2448
|
-
const
|
|
2449
|
-
return
|
|
2450
|
-
}).map((
|
|
2451
|
-
const
|
|
2452
|
-
for (const K of
|
|
2447
|
+
return [...m.keys()].sort((G, x) => {
|
|
2448
|
+
const Z = wn.indexOf(G), B = wn.indexOf(x);
|
|
2449
|
+
return Z === -1 && B === -1 ? G.localeCompare(x) : Z === -1 ? 1 : B === -1 ? -1 : Z - B;
|
|
2450
|
+
}).map((G) => {
|
|
2451
|
+
const x = m.get(G), Z = l(`permissionSet.categoryLabels.${G}`, G), B = /* @__PURE__ */ new Map();
|
|
2452
|
+
for (const K of x) {
|
|
2453
2453
|
const pe = C.get(K.value);
|
|
2454
|
-
pe &&
|
|
2454
|
+
pe && B.set(K.value, pe.actions);
|
|
2455
2455
|
}
|
|
2456
|
-
const ne =
|
|
2457
|
-
const pe =
|
|
2456
|
+
const ne = x.some((K) => {
|
|
2457
|
+
const pe = B.get(K.value);
|
|
2458
2458
|
return pe && pe.length > 1;
|
|
2459
2459
|
}), Q = ne ? [
|
|
2460
2460
|
...new Set(
|
|
2461
|
-
|
|
2461
|
+
x.flatMap((K) => B.get(K.value) ?? []).filter((K) => K !== "manage")
|
|
2462
2462
|
)
|
|
2463
2463
|
] : [], _e = /* @__PURE__ */ new Map();
|
|
2464
2464
|
for (const K of e.value)
|
|
2465
|
-
|
|
2465
|
+
x.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
|
-
(K) =>
|
|
2468
|
-
).map((K) => K.subject) : e.value.filter((K) =>
|
|
2467
|
+
(K) => x.some((pe) => pe.value === K.subject) && !K.inverted && K.actions.includes("manage")
|
|
2468
|
+
).map((K) => K.subject) : e.value.filter((K) => x.some((pe) => pe.value === K.subject) && !K.inverted).map((K) => K.subject), se = x.find((K) => {
|
|
2469
2469
|
var pe;
|
|
2470
2470
|
return (pe = C.get(K.value)) == null ? void 0 : pe.isCategoryCover;
|
|
2471
|
-
}), fe = (se == null ? void 0 : se.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(),
|
|
2471
|
+
}), fe = (se == null ? void 0 : se.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), De = q.has("manage");
|
|
2472
2472
|
return {
|
|
2473
|
-
category:
|
|
2474
|
-
label:
|
|
2475
|
-
options:
|
|
2473
|
+
category: G,
|
|
2474
|
+
label: Z,
|
|
2475
|
+
options: x,
|
|
2476
2476
|
selectedSubjects: ce,
|
|
2477
2477
|
isMultiAction: ne,
|
|
2478
2478
|
actionColumns: Q,
|
|
2479
|
-
permissionActionsMap:
|
|
2479
|
+
permissionActionsMap: B,
|
|
2480
2480
|
selectedActionsMap: _e,
|
|
2481
2481
|
coverSubject: fe,
|
|
2482
2482
|
coverSelectedActions: q,
|
|
2483
|
-
coverCoversAll:
|
|
2483
|
+
coverCoversAll: De
|
|
2484
2484
|
};
|
|
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), x = /* @__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 && x.set(Q.subject, Q.conditions);
|
|
2491
|
+
const Z = U != null && U.coverSubject ? x.get(U.coverSubject) : void 0, B = /* @__PURE__ */ new Set(), ne = t.value.flatMap(
|
|
2492
2492
|
({ category: Q, showByFeatureFlag: _e, isCategoryCover: ce, ...se }) => {
|
|
2493
2493
|
const fe = se.subject;
|
|
2494
|
-
if (!
|
|
2495
|
-
|
|
2494
|
+
if (!G.has(fe) || B.has(fe)) return [];
|
|
2495
|
+
B.add(fe);
|
|
2496
2496
|
let q;
|
|
2497
|
-
return
|
|
2497
|
+
return x.has(fe) ? q = x.get(fe) : U != null && U.coverSubject && fe !== U.coverSubject && (q = Z), [
|
|
2498
2498
|
{ ...se, ...q !== void 0 && { conditions: q } }
|
|
2499
2499
|
];
|
|
2500
2500
|
}
|
|
@@ -2512,78 +2512,78 @@ function jo(e, t, n, r) {
|
|
|
2512
2512
|
}
|
|
2513
2513
|
function T(m) {
|
|
2514
2514
|
return m.options.length === 0 || E(m) ? !1 : m.options.some(
|
|
2515
|
-
(C) => g(m, C.value) ||
|
|
2515
|
+
(C) => g(m, C.value) || w(m, C.value).length > 0
|
|
2516
2516
|
);
|
|
2517
2517
|
}
|
|
2518
2518
|
function N(m) {
|
|
2519
|
-
const C = new Set(m.options.map((
|
|
2519
|
+
const C = new Set(m.options.map((V) => V.value)), U = e.value.filter((V) => !C.has(V.subject));
|
|
2520
2520
|
if (E(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 Z of e.value)
|
|
2525
|
+
C.has(Z.subject) && !Z.inverted && V.set(Z.subject, Z.conditions);
|
|
2526
|
+
const j = m.coverSubject ? V.get(m.coverSubject) : void 0, G = /* @__PURE__ */ new Set(), x = t.value.flatMap(
|
|
2527
|
+
({ category: Z, showByFeatureFlag: B, isCategoryCover: ne, ...Q }) => {
|
|
2528
2528
|
const _e = Q.subject;
|
|
2529
|
-
if (!C.has(_e) ||
|
|
2530
|
-
|
|
2529
|
+
if (!C.has(_e) || G.has(_e)) return [];
|
|
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, ...x]);
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
2540
|
function F(m, C) {
|
|
2541
2541
|
const U = m.selectedActionsMap.get(C);
|
|
2542
2542
|
return U ? U.has("manage") : !1;
|
|
2543
2543
|
}
|
|
2544
|
-
function
|
|
2544
|
+
function w(m, C) {
|
|
2545
2545
|
const U = m.permissionActionsMap.get(C);
|
|
2546
2546
|
return U ? U.filter((j) => j !== "manage").filter(
|
|
2547
2547
|
(j) => S(m, C, j) || b(m, C, j)
|
|
2548
2548
|
) : [];
|
|
2549
2549
|
}
|
|
2550
2550
|
function A(m, C) {
|
|
2551
|
-
return c(m, C) ? !1 : !F(m, C) &&
|
|
2551
|
+
return c(m, C) ? !1 : !F(m, C) && w(m, C).length > 0;
|
|
2552
2552
|
}
|
|
2553
|
-
function
|
|
2553
|
+
function D(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
|
-
showByFeatureFlag:
|
|
2567
|
-
isCategoryCover:
|
|
2568
|
-
...
|
|
2569
|
-
} =
|
|
2566
|
+
showByFeatureFlag: G,
|
|
2567
|
+
isCategoryCover: x,
|
|
2568
|
+
...Z
|
|
2569
|
+
} = V, B = D(m, C), ne = e.value.filter((Q) => Q.subject !== C);
|
|
2570
2570
|
ne.push({
|
|
2571
|
-
...
|
|
2572
|
-
...
|
|
2571
|
+
...Z,
|
|
2572
|
+
...B !== void 0 && { conditions: B }
|
|
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
|
-
function
|
|
2580
|
+
function v(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((x) => x.subject === m && !x.inverted);
|
|
2600
2600
|
if (U)
|
|
2601
2601
|
if (j >= 0) {
|
|
2602
|
-
const
|
|
2603
|
-
|
|
2602
|
+
const x = { ...V[j] }, Z = new Set(x.actions);
|
|
2603
|
+
Z.add(C), x.actions = Array.from(Z), V[j] = x;
|
|
2604
2604
|
} else {
|
|
2605
|
-
const
|
|
2606
|
-
if (!
|
|
2605
|
+
const x = t.value.find((se) => se.subject === m);
|
|
2606
|
+
if (!x) return;
|
|
2607
2607
|
const {
|
|
2608
|
-
category:
|
|
2609
|
-
showByFeatureFlag:
|
|
2608
|
+
category: Z,
|
|
2609
|
+
showByFeatureFlag: B,
|
|
2610
2610
|
isCategoryCover: ne,
|
|
2611
2611
|
...Q
|
|
2612
|
-
} =
|
|
2612
|
+
} = x, _e = u.value.find(
|
|
2613
2613
|
(se) => se.options.some((fe) => fe.value === m)
|
|
2614
|
-
), ce = _e ?
|
|
2615
|
-
|
|
2614
|
+
), ce = _e ? D(_e, m) : void 0;
|
|
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 x = { ...V[j] }, Z = x.actions.filter((B) => B !== C);
|
|
2623
|
+
Z.length === 0 ? V.splice(j, 1) : (x.actions = Z, V[j] = x);
|
|
2624
2624
|
}
|
|
2625
|
-
const
|
|
2626
|
-
|
|
2625
|
+
const G = t.value.find((x) => x.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,47 +2638,47 @@ 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
|
|
2651
|
-
(
|
|
2650
|
+
const G = j.value, x = V.findIndex(
|
|
2651
|
+
(B) => B.subject === G && !B.inverted
|
|
2652
2652
|
);
|
|
2653
2653
|
if (U)
|
|
2654
|
-
if (
|
|
2655
|
-
const
|
|
2656
|
-
ne.add(C),
|
|
2654
|
+
if (x >= 0) {
|
|
2655
|
+
const B = { ...V[x] }, ne = new Set(B.actions);
|
|
2656
|
+
ne.add(C), B.actions = Array.from(ne), V[x] = B;
|
|
2657
2657
|
} else {
|
|
2658
|
-
const
|
|
2659
|
-
if (!
|
|
2658
|
+
const B = t.value.find((fe) => fe.subject === G);
|
|
2659
|
+
if (!B) continue;
|
|
2660
2660
|
const {
|
|
2661
2661
|
category: ne,
|
|
2662
2662
|
showByFeatureFlag: Q,
|
|
2663
2663
|
isCategoryCover: _e,
|
|
2664
2664
|
...ce
|
|
2665
|
-
} =
|
|
2666
|
-
|
|
2665
|
+
} = B, se = D(m, G);
|
|
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
|
|
2674
|
-
ne.length === 0 ?
|
|
2672
|
+
else if (x >= 0) {
|
|
2673
|
+
const B = { ...V[x] }, ne = B.actions.filter((Q) => Q !== C);
|
|
2674
|
+
ne.length === 0 ? V.splice(x, 1) : (B.actions = ne, V[x] = B);
|
|
2675
2675
|
}
|
|
2676
|
-
const
|
|
2677
|
-
|
|
2676
|
+
const Z = t.value.find((B) => B.subject === G);
|
|
2677
|
+
Z && Mn(V, G, Z.actions);
|
|
2678
2678
|
}
|
|
2679
|
-
r("update:model-value",
|
|
2679
|
+
r("update:model-value", V);
|
|
2680
2680
|
}
|
|
2681
|
-
function
|
|
2681
|
+
function W(m) {
|
|
2682
2682
|
const C = `permissionSet.actionLabels.${m}`, U = Po[m] ?? m.charAt(0).toUpperCase() + m.slice(1);
|
|
2683
2683
|
return l(C, U);
|
|
2684
2684
|
}
|
|
@@ -2691,7 +2691,7 @@ function jo(e, t, n, r) {
|
|
|
2691
2691
|
isManageChecked: F,
|
|
2692
2692
|
isManageIndeterminate: A,
|
|
2693
2693
|
toggleManage: f,
|
|
2694
|
-
hasNonManageActions:
|
|
2694
|
+
hasNonManageActions: v,
|
|
2695
2695
|
isActionChecked: S,
|
|
2696
2696
|
isRowFullyCoveredByCover: c,
|
|
2697
2697
|
isActionCoveredByCover: b,
|
|
@@ -2700,10 +2700,10 @@ function jo(e, t, n, r) {
|
|
|
2700
2700
|
isAllActionChecked: k,
|
|
2701
2701
|
isAllActionIndeterminate: L,
|
|
2702
2702
|
toggleAllAction: X,
|
|
2703
|
-
actionLabel:
|
|
2703
|
+
actionLabel: W
|
|
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" }, Wo = { class: "mt-16" }, xo = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Go = ["onClick"], Yo = { class: "flex justify-center" }, Zo = { class: "flex items-center min-w-0 gap-8" }, Bo = ["title", "onClick"], Xo = { class: "flex justify-center" }, Ho = /* @__PURE__ */ Ae({
|
|
2707
2707
|
__name: "BasePermission",
|
|
2708
2708
|
props: {
|
|
2709
2709
|
modelValue: {
|
|
@@ -2725,7 +2725,7 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { 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 = z(() => [...
|
|
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,
|
|
@@ -2734,11 +2734,11 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
2734
2734
|
isManageIndeterminate: T,
|
|
2735
2735
|
toggleManage: N,
|
|
2736
2736
|
isActionChecked: F,
|
|
2737
|
-
isRowFullyCoveredByCover:
|
|
2737
|
+
isRowFullyCoveredByCover: w,
|
|
2738
2738
|
isActionCoveredByCover: A,
|
|
2739
|
-
permissionDefinesAction:
|
|
2739
|
+
permissionDefinesAction: D,
|
|
2740
2740
|
toggleAction: f,
|
|
2741
|
-
isAllActionChecked:
|
|
2741
|
+
isAllActionChecked: v,
|
|
2742
2742
|
isAllActionIndeterminate: S,
|
|
2743
2743
|
toggleAllAction: c,
|
|
2744
2744
|
actionLabel: b
|
|
@@ -2753,31 +2753,31 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { 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 E(k, L) ||
|
|
2757
|
-
(X) =>
|
|
2756
|
+
return E(k, L) || w(k, L) ? !0 : k.actionColumns.some(
|
|
2757
|
+
(X) => D(k, L, X) && (F(k, L, X) || A(k, L, X))
|
|
2758
2758
|
);
|
|
2759
2759
|
}
|
|
2760
2760
|
return (k, L) => {
|
|
2761
|
-
const X =
|
|
2761
|
+
const X = we("FmCheckbox");
|
|
2762
2762
|
return J(), ie("div", Uo, [
|
|
2763
|
-
(J(!0), ie(ke, null, ye(H(d), (
|
|
2764
|
-
key:
|
|
2765
|
-
subtitle: I(
|
|
2763
|
+
(J(!0), ie(ke, null, ye(H(d), (W) => (J(), Ne(Xt, {
|
|
2764
|
+
key: W.category,
|
|
2765
|
+
subtitle: I(W)
|
|
2766
2766
|
}, {
|
|
2767
2767
|
title: de(() => [
|
|
2768
|
-
ae("p",
|
|
2768
|
+
ae("p", Vo, Oe(W.label), 1)
|
|
2769
2769
|
]),
|
|
2770
2770
|
default: de(() => [
|
|
2771
|
-
ae("div",
|
|
2771
|
+
ae("div", Wo, [
|
|
2772
2772
|
ae("div", {
|
|
2773
2773
|
class: "grid items-center px-12 py-8",
|
|
2774
2774
|
style: nt({
|
|
2775
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2775
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${W.actionColumns.length + 1}, 80px)`
|
|
2776
2776
|
})
|
|
2777
2777
|
}, [
|
|
2778
2778
|
L[0] || (L[0] = ae("div", null, null, -1)),
|
|
2779
|
-
ae("div",
|
|
2780
|
-
(J(!0), ie(ke, null, ye(
|
|
2779
|
+
ae("div", xo, Oe(H(l)("team.memberForm.permissions.columnManage")), 1),
|
|
2780
|
+
(J(!0), ie(ke, null, ye(W.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))
|
|
@@ -2785,83 +2785,83 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
2785
2785
|
ae("div", {
|
|
2786
2786
|
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
2787
2787
|
style: nt({
|
|
2788
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2788
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${W.actionColumns.length + 1}, 80px)`
|
|
2789
2789
|
})
|
|
2790
2790
|
}, [
|
|
2791
2791
|
ae("div", {
|
|
2792
2792
|
class: "cursor-pointer font-semibold",
|
|
2793
|
-
onClick: (m) => !e.disable && H(g)(
|
|
2794
|
-
}, Oe(H(l)("team.labels.all")), 9,
|
|
2795
|
-
ae("div",
|
|
2793
|
+
onClick: (m) => !e.disable && H(g)(W)
|
|
2794
|
+
}, Oe(H(l)("team.labels.all")), 9, Go),
|
|
2795
|
+
ae("div", Yo, [
|
|
2796
2796
|
ue(X, {
|
|
2797
|
-
"model-value": H(u)(
|
|
2798
|
-
indeterminate: H(i)(
|
|
2797
|
+
"model-value": H(u)(W),
|
|
2798
|
+
indeterminate: H(i)(W),
|
|
2799
2799
|
value: !0,
|
|
2800
2800
|
disabled: e.disable,
|
|
2801
2801
|
size: "sm",
|
|
2802
2802
|
dense: "",
|
|
2803
|
-
"onUpdate:modelValue": (m) => H(g)(
|
|
2803
|
+
"onUpdate:modelValue": (m) => H(g)(W)
|
|
2804
2804
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2805
2805
|
]),
|
|
2806
|
-
(J(!0), ie(ke, null, ye(
|
|
2806
|
+
(J(!0), ie(ke, null, ye(W.actionColumns, (m) => (J(), ie("div", {
|
|
2807
2807
|
key: `all-${m}`,
|
|
2808
2808
|
class: "flex justify-center"
|
|
2809
2809
|
}, [
|
|
2810
2810
|
ue(X, {
|
|
2811
|
-
"model-value": H(
|
|
2812
|
-
indeterminate: H(S)(
|
|
2811
|
+
"model-value": H(v)(W, m),
|
|
2812
|
+
indeterminate: H(S)(W, m),
|
|
2813
2813
|
value: m,
|
|
2814
2814
|
disabled: e.disable,
|
|
2815
2815
|
size: "sm",
|
|
2816
2816
|
dense: "",
|
|
2817
|
-
"onUpdate:modelValue": (C) => H(c)(
|
|
2817
|
+
"onUpdate:modelValue": (C) => H(c)(W, m, C)
|
|
2818
2818
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
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, ye(
|
|
2822
|
+
(J(!0), ie(ke, null, ye(W.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
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2826
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${W.actionColumns.length + 1}, 80px)`
|
|
2827
2827
|
})
|
|
2828
2828
|
}, [
|
|
2829
|
-
ae("div",
|
|
2829
|
+
ae("div", Zo, [
|
|
2830
2830
|
ae("span", {
|
|
2831
2831
|
class: "block truncate cursor-pointer",
|
|
2832
2832
|
title: m.label,
|
|
2833
|
-
onClick: (C) => !e.disable && !H(
|
|
2834
|
-
}, Oe(m.label), 9,
|
|
2833
|
+
onClick: (C) => !e.disable && !H(w)(W, m.value) && H(N)(W, m.value, !H(E)(W, m.value))
|
|
2834
|
+
}, Oe(m.label), 9, Bo),
|
|
2835
2835
|
Se(k.$slots, `checkbox-${m.value}-append`, {
|
|
2836
2836
|
option: m,
|
|
2837
|
-
isEffectiveSelected: p(
|
|
2838
|
-
isCoveredByCover: H(
|
|
2837
|
+
isEffectiveSelected: p(W, m.value),
|
|
2838
|
+
isCoveredByCover: H(w)(W, m.value) || W.actionColumns.some((C) => H(A)(W, m.value, C))
|
|
2839
2839
|
}),
|
|
2840
2840
|
Se(k.$slots, `checkbox-${m.value}-icon`, {
|
|
2841
2841
|
option: m,
|
|
2842
|
-
isEffectiveSelected: p(
|
|
2843
|
-
isCoveredByCover: H(
|
|
2842
|
+
isEffectiveSelected: p(W, m.value),
|
|
2843
|
+
isCoveredByCover: H(w)(W, m.value) || W.actionColumns.some((C) => H(A)(W, m.value, C))
|
|
2844
2844
|
})
|
|
2845
2845
|
]),
|
|
2846
2846
|
ae("div", Xo, [
|
|
2847
2847
|
ue(X, {
|
|
2848
|
-
"model-value": H(E)(
|
|
2848
|
+
"model-value": H(E)(W, m.value) || H(w)(W, m.value),
|
|
2849
2849
|
value: m.value,
|
|
2850
|
-
disabled: e.disable || H(
|
|
2851
|
-
indeterminate: H(T)(
|
|
2850
|
+
disabled: e.disable || H(w)(W, m.value),
|
|
2851
|
+
indeterminate: H(T)(W, m.value),
|
|
2852
2852
|
size: "sm",
|
|
2853
|
-
"onUpdate:modelValue": (C) => H(N)(
|
|
2853
|
+
"onUpdate:modelValue": (C) => H(N)(W, m.value, C)
|
|
2854
2854
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2855
2855
|
]),
|
|
2856
|
-
(J(!0), ie(ke, null, ye(
|
|
2856
|
+
(J(!0), ie(ke, null, ye(W.actionColumns, (C) => (J(), ie("div", {
|
|
2857
2857
|
key: `${m.optionKey}-${C}`,
|
|
2858
2858
|
class: "flex justify-center"
|
|
2859
2859
|
}, [
|
|
2860
|
-
H(
|
|
2860
|
+
H(D)(W, m.value, C) ? (J(), Ne(X, {
|
|
2861
2861
|
key: 0,
|
|
2862
|
-
"model-value": H(F)(
|
|
2862
|
+
"model-value": H(F)(W, m.value, C) || H(A)(W, m.value, C),
|
|
2863
2863
|
value: C,
|
|
2864
|
-
disabled: e.disable || H(A)(
|
|
2864
|
+
disabled: e.disable || H(A)(W, m.value, C),
|
|
2865
2865
|
size: "sm",
|
|
2866
2866
|
"onUpdate:modelValue": (U) => H(f)(m.value, C, U)
|
|
2867
2867
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Me("", !0)
|
|
@@ -2975,25 +2975,25 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
2975
2975
|
emits: ["update:model-value"],
|
|
2976
2976
|
setup(e, { emit: t }) {
|
|
2977
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), E = z(
|
|
2978
|
-
() => n.modelValue.filter((A) => n.options.some((
|
|
2978
|
+
() => n.modelValue.filter((A) => n.options.some((D) => D.value === A))
|
|
2979
2979
|
), T = z(
|
|
2980
2980
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2981
2981
|
), N = z(() => n.options.length > 0 && n.options.length === E.value.length);
|
|
2982
2982
|
function F() {
|
|
2983
|
-
const A = n.modelValue.filter((
|
|
2983
|
+
const A = n.modelValue.filter((D) => !E.value.includes(D));
|
|
2984
2984
|
if (N.value === !0)
|
|
2985
2985
|
r("update:model-value", A);
|
|
2986
2986
|
else {
|
|
2987
|
-
const
|
|
2988
|
-
r("update:model-value", [...A, ...
|
|
2987
|
+
const D = n.includeDisabledOptionsWhenSelectAll ? n.options.map((f) => f.value) : n.options.filter((f) => !f.disabled).map((f) => f.value);
|
|
2988
|
+
r("update:model-value", [...A, ...D]);
|
|
2989
2989
|
}
|
|
2990
2990
|
}
|
|
2991
|
-
function
|
|
2991
|
+
function w(A, D) {
|
|
2992
2992
|
let f = It(n.modelValue);
|
|
2993
|
-
|
|
2993
|
+
D ? f.every((v) => v !== A) && f.push(A) : f = f.filter((v) => v !== A), r("update:model-value", f);
|
|
2994
2994
|
}
|
|
2995
|
-
return (A,
|
|
2996
|
-
const f =
|
|
2995
|
+
return (A, D) => {
|
|
2996
|
+
const f = we("FmCheckbox");
|
|
2997
2997
|
return J(), Ne(Qo, {
|
|
2998
2998
|
id: i,
|
|
2999
2999
|
title: e.title,
|
|
@@ -3014,8 +3014,8 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3014
3014
|
value: T.value,
|
|
3015
3015
|
"onUpdate:modelValue": F
|
|
3016
3016
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Me("", !0),
|
|
3017
|
-
(J(!0), ie(ke, null, ye(e.options, (
|
|
3018
|
-
key:
|
|
3017
|
+
(J(!0), ie(ke, null, ye(e.options, (v, S) => (J(), ie("div", {
|
|
3018
|
+
key: v.value,
|
|
3019
3019
|
style: nt(`margin-bottom: ${S < e.options.length - 1 ? n.gutter : 0}px`),
|
|
3020
3020
|
class: qe(S < e.options.length - 1 ? "q-mb-sm" : "")
|
|
3021
3021
|
}, [
|
|
@@ -3024,38 +3024,38 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3024
3024
|
}, [
|
|
3025
3025
|
ae("div", qo, [
|
|
3026
3026
|
ue(f, {
|
|
3027
|
-
"model-value": e.modelValue.includes(
|
|
3028
|
-
disabled: e.disable ||
|
|
3027
|
+
"model-value": e.modelValue.includes(v.value),
|
|
3028
|
+
disabled: e.disable || v.disabled,
|
|
3029
3029
|
size: "sm",
|
|
3030
|
-
label:
|
|
3031
|
-
value:
|
|
3032
|
-
"onUpdate:modelValue": (c) =>
|
|
3030
|
+
label: v.label,
|
|
3031
|
+
value: v.label,
|
|
3032
|
+
"onUpdate:modelValue": (c) => w(v.value, c)
|
|
3033
3033
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
3034
|
-
Se(A.$slots, `checkbox-${
|
|
3035
|
-
option:
|
|
3036
|
-
selected: e.modelValue.includes(
|
|
3034
|
+
Se(A.$slots, `checkbox-${v.key || v.value}-append`, {
|
|
3035
|
+
option: v,
|
|
3036
|
+
selected: e.modelValue.includes(v.value)
|
|
3037
3037
|
})
|
|
3038
3038
|
]),
|
|
3039
|
-
H(d)[`checkbox-${
|
|
3039
|
+
H(d)[`checkbox-${v.key || v.value}-end`] && (e.modelValue.includes(v.value) || e.falsyShowSlot) ? (J(), ie("div", {
|
|
3040
3040
|
key: 0,
|
|
3041
|
-
class: qe([{ "q-checkbox disabled": e.disable ||
|
|
3041
|
+
class: qe([{ "q-checkbox disabled": e.disable || v.disabled }, "col"])
|
|
3042
3042
|
}, [
|
|
3043
|
-
Se(A.$slots, `checkbox-${
|
|
3044
|
-
option:
|
|
3045
|
-
value: e.modelValue.includes(
|
|
3046
|
-
disable: e.disable ||
|
|
3043
|
+
Se(A.$slots, `checkbox-${v.key || v.value}-end`, {
|
|
3044
|
+
option: v,
|
|
3045
|
+
value: e.modelValue.includes(v.value),
|
|
3046
|
+
disable: e.disable || v.disabled
|
|
3047
3047
|
})
|
|
3048
3048
|
], 2)) : Me("", !0)
|
|
3049
3049
|
], 2),
|
|
3050
|
-
H(d)[`checkbox-${
|
|
3050
|
+
H(d)[`checkbox-${v.key || v.value}-bottom`] && (e.modelValue.includes(v.value) || e.falsyShowSlot) ? (J(), ie("div", {
|
|
3051
3051
|
key: 0,
|
|
3052
|
-
class: qe(["q-mt-sm", { "q-checkbox disabled": e.disable ||
|
|
3052
|
+
class: qe(["q-mt-sm", { "q-checkbox disabled": e.disable || v.disabled }]),
|
|
3053
3053
|
style: nt(`margin-left: ${e.bottomSlotIndent}`)
|
|
3054
3054
|
}, [
|
|
3055
|
-
Se(A.$slots, `checkbox-${
|
|
3056
|
-
option:
|
|
3057
|
-
disable: e.disable ||
|
|
3058
|
-
value: e.modelValue.includes(
|
|
3055
|
+
Se(A.$slots, `checkbox-${v.key || v.value}-bottom`, {
|
|
3056
|
+
option: v,
|
|
3057
|
+
disable: e.disable || v.disabled,
|
|
3058
|
+
value: e.modelValue.includes(v.value)
|
|
3059
3059
|
})
|
|
3060
3060
|
], 6)) : Me("", !0)
|
|
3061
3061
|
], 6))), 128)),
|
|
@@ -3065,7 +3065,7 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3065
3065
|
}, 8, ["title"]);
|
|
3066
3066
|
};
|
|
3067
3067
|
}
|
|
3068
|
-
}), ta = { class: "fm-typo-en-title-sm-600" },
|
|
3068
|
+
}), ta = { class: "fm-typo-en-title-sm-600" }, vt = "includedFuture", Dn = /* @__PURE__ */ Ae({
|
|
3069
3069
|
__name: "ConditionPermission",
|
|
3070
3070
|
props: {
|
|
3071
3071
|
modelValue: {
|
|
@@ -3090,24 +3090,24 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3090
3090
|
const n = e, r = t, { t: l } = He(), a = z(() => [
|
|
3091
3091
|
{
|
|
3092
3092
|
label: l("team.memberForm.permissions.includedFuture", { context: n.context }),
|
|
3093
|
-
value:
|
|
3093
|
+
value: vt,
|
|
3094
3094
|
// Can only be selected if all other options are selected
|
|
3095
3095
|
disabled: !!n.modelValue && n.options.length > n.modelValue.length
|
|
3096
3096
|
},
|
|
3097
3097
|
...n.options.filter(
|
|
3098
3098
|
(E) => E.label.toLocaleLowerCase().includes(g.value.toLocaleLowerCase())
|
|
3099
3099
|
)
|
|
3100
|
-
]), d = z(() => n.modelValue ? n.modelValue : [
|
|
3101
|
-
const E = d.value.filter((T) => T !==
|
|
3100
|
+
]), d = z(() => n.modelValue ? n.modelValue : [vt, ...n.options.map((E) => E.value)]), u = z(() => {
|
|
3101
|
+
const E = d.value.filter((T) => T !== vt).length;
|
|
3102
3102
|
return E === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: E });
|
|
3103
3103
|
});
|
|
3104
3104
|
function i(E) {
|
|
3105
3105
|
const T = E.length === a.value.length;
|
|
3106
|
-
r("update:model-value", T ? null : E.filter((N) => N !==
|
|
3106
|
+
r("update:model-value", T ? null : E.filter((N) => N !== vt));
|
|
3107
3107
|
}
|
|
3108
3108
|
const g = rt("");
|
|
3109
3109
|
return (E, T) => {
|
|
3110
|
-
const N =
|
|
3110
|
+
const N = we("fm-search");
|
|
3111
3111
|
return J(), Ne(Xt, { subtitle: u.value }, {
|
|
3112
3112
|
title: de(() => [
|
|
3113
3113
|
ae("p", ta, Oe(H(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
@@ -3133,8 +3133,8 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3133
3133
|
}, et({ _: 2 }, [
|
|
3134
3134
|
ye(a.value, (F) => ({
|
|
3135
3135
|
name: `checkbox-${F.value}-append`,
|
|
3136
|
-
fn: de(({ option:
|
|
3137
|
-
Se(E.$slots, `checkbox-${F.value}-append`, { option:
|
|
3136
|
+
fn: de(({ option: w }) => [
|
|
3137
|
+
Se(E.$slots, `checkbox-${F.value}-append`, { option: w })
|
|
3138
3138
|
])
|
|
3139
3139
|
}))
|
|
3140
3140
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3242,7 +3242,7 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3242
3242
|
setup(e, { emit: t }) {
|
|
3243
3243
|
const n = t, { t: r } = He();
|
|
3244
3244
|
return (l, a) => {
|
|
3245
|
-
const d =
|
|
3245
|
+
const d = we("FmRadio"), u = we("FmRadioGroup");
|
|
3246
3246
|
return J(), Ne(Cr, {
|
|
3247
3247
|
title: e.title,
|
|
3248
3248
|
builders: e.builders,
|
|
@@ -3306,7 +3306,7 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3306
3306
|
}
|
|
3307
3307
|
};
|
|
3308
3308
|
function Pn(e, t) {
|
|
3309
|
-
return
|
|
3309
|
+
return Yn(e, Zn).some(
|
|
3310
3310
|
(n) => n.subject === t && !n.inverted && n.actions.includes("manage")
|
|
3311
3311
|
);
|
|
3312
3312
|
}
|
|
@@ -3344,22 +3344,22 @@ function ia(e, t, n, r) {
|
|
|
3344
3344
|
}
|
|
3345
3345
|
for (const i of a) {
|
|
3346
3346
|
if (!l.has(i)) continue;
|
|
3347
|
-
const g = e.find((
|
|
3347
|
+
const g = e.find((w) => w.subject === i && !w.inverted), E = t.find((w) => w.subject === i && !w.inverted);
|
|
3348
3348
|
if (!g || !E) continue;
|
|
3349
3349
|
const T = new Set(g.actions), N = new Set(E.actions);
|
|
3350
|
-
if (T.size === N.size && [...T].every((
|
|
3350
|
+
if (T.size === N.size && [...T].every((w) => N.has(w)))
|
|
3351
3351
|
continue;
|
|
3352
|
-
const F = u.findIndex((
|
|
3352
|
+
const F = u.findIndex((w) => w.subject === i && !w.inverted);
|
|
3353
3353
|
if (F >= 0)
|
|
3354
3354
|
u[F] = {
|
|
3355
3355
|
...u[F],
|
|
3356
3356
|
actions: Array.from(N)
|
|
3357
3357
|
};
|
|
3358
3358
|
else {
|
|
3359
|
-
const
|
|
3360
|
-
|
|
3359
|
+
const w = r(i);
|
|
3360
|
+
w && u.push(Un(w, Array.from(N)));
|
|
3361
3361
|
}
|
|
3362
|
-
T.has("manage") && !N.has("manage") && Pn(u, i) && (u = jn(u, i)), !T.has("manage") && N.has("manage") && (u = u.filter((
|
|
3362
|
+
T.has("manage") && !N.has("manage") && Pn(u, i) && (u = jn(u, i)), !T.has("manage") && N.has("manage") && (u = u.filter((w) => !(w.subject === i && w.inverted)));
|
|
3363
3363
|
}
|
|
3364
3364
|
return u;
|
|
3365
3365
|
}
|
|
@@ -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 xe(e) {
|
|
3392
3392
|
try {
|
|
3393
3393
|
return e.conditions ? JSON.parse(e.conditions) : void 0;
|
|
3394
3394
|
} catch {
|
|
@@ -3400,22 +3400,22 @@ function ma(e, t) {
|
|
|
3400
3400
|
}
|
|
3401
3401
|
function Mt(e, t) {
|
|
3402
3402
|
const n = new Set(e.actions);
|
|
3403
|
-
return n.has(
|
|
3403
|
+
return n.has(ve.Action.manage) ? !0 : t.actions.every((r) => n.has(r));
|
|
3404
3404
|
}
|
|
3405
|
-
function
|
|
3406
|
-
const n =
|
|
3407
|
-
return
|
|
3405
|
+
function Zt(e, t) {
|
|
3406
|
+
const n = xe(e);
|
|
3407
|
+
return Dt(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
|
+
...Zt(e, n),
|
|
3412
|
+
...tt(xe(t), n)
|
|
3413
3413
|
};
|
|
3414
3414
|
}
|
|
3415
3415
|
function fa(e, t, n) {
|
|
3416
3416
|
const r = rt(/* @__PURE__ */ new Set());
|
|
3417
3417
|
function l(c) {
|
|
3418
|
-
return
|
|
3418
|
+
return Dr(c, t.value);
|
|
3419
3419
|
}
|
|
3420
3420
|
function a(c) {
|
|
3421
3421
|
return t.value.find((b) => b.subject === c);
|
|
@@ -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(xe(c), b);
|
|
3433
3433
|
}
|
|
3434
3434
|
function g(c, b) {
|
|
3435
3435
|
var k;
|
|
@@ -3444,7 +3444,7 @@ function fa(e, t, n) {
|
|
|
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(xe(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 = Zt(p, b), L = Object.keys(k).length === 0, X = l(c.subject), W = X ? u(X) : void 0, m = W ? Mt(W, p) : !1;
|
|
3464
3464
|
if (L && m)
|
|
3465
3465
|
I.splice(c.index, 1);
|
|
3466
|
-
else if (
|
|
3467
|
-
const C =
|
|
3466
|
+
else if (W) {
|
|
3467
|
+
const C = Vn(p, W, 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;
|
|
@@ -3478,11 +3478,11 @@ function fa(e, t, n) {
|
|
|
3478
3478
|
return;
|
|
3479
3479
|
}
|
|
3480
3480
|
const k = new Set(r.value);
|
|
3481
|
-
k.add(p), r.value = k, c.index === null &&
|
|
3481
|
+
k.add(p), r.value = k, c.index === null && v(c, b, b.fromCondition(void 0), {
|
|
3482
3482
|
forceCreateRule: !0
|
|
3483
3483
|
});
|
|
3484
3484
|
}
|
|
3485
|
-
function
|
|
3485
|
+
function w(c) {
|
|
3486
3486
|
const b = l(c);
|
|
3487
3487
|
if (!b) return [];
|
|
3488
3488
|
const I = u(b);
|
|
@@ -3492,10 +3492,10 @@ 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(xe(I), b)).length > 0;
|
|
3496
3496
|
});
|
|
3497
3497
|
}
|
|
3498
|
-
function
|
|
3498
|
+
function D(c, b) {
|
|
3499
3499
|
const I = `::${b.builderKey}`, p = new Set(r.value);
|
|
3500
3500
|
for (const k of p) {
|
|
3501
3501
|
if (!k.endsWith(I)) continue;
|
|
@@ -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(Zt(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);
|
|
@@ -3523,25 +3523,25 @@ function fa(e, t, n) {
|
|
|
3523
3523
|
return k;
|
|
3524
3524
|
}, []);
|
|
3525
3525
|
}
|
|
3526
|
-
function
|
|
3527
|
-
var
|
|
3526
|
+
function v(c, b, I, p = {}) {
|
|
3527
|
+
var V;
|
|
3528
3528
|
const k = [...e.value];
|
|
3529
3529
|
let L = c.index;
|
|
3530
|
-
const X = b.toCondition(I),
|
|
3531
|
-
if (L === null && !
|
|
3530
|
+
const X = b.toCondition(I), W = Object.keys(X).length > 0;
|
|
3531
|
+
if (L === null && !W && !p.forceCreateRule) return;
|
|
3532
3532
|
if (L === null) {
|
|
3533
|
-
const j = k.findIndex((
|
|
3533
|
+
const j = k.findIndex((G) => !G.inverted && G.subject === c.subject);
|
|
3534
3534
|
if (j !== -1)
|
|
3535
3535
|
L = j;
|
|
3536
3536
|
else {
|
|
3537
|
-
const
|
|
3538
|
-
if (!
|
|
3537
|
+
const G = t.value.find((Q) => Q.subject === c.subject);
|
|
3538
|
+
if (!G) return;
|
|
3539
3539
|
const {
|
|
3540
|
-
category:
|
|
3541
|
-
showByFeatureFlag:
|
|
3542
|
-
isCategoryCover:
|
|
3540
|
+
category: x,
|
|
3541
|
+
showByFeatureFlag: Z,
|
|
3542
|
+
isCategoryCover: B,
|
|
3543
3543
|
...ne
|
|
3544
|
-
} =
|
|
3544
|
+
} = G;
|
|
3545
3545
|
k.push({
|
|
3546
3546
|
...ne,
|
|
3547
3547
|
actions: c.actions.length > 0 ? c.actions : ne.actions
|
|
@@ -3552,89 +3552,89 @@ 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 = xe(m), U = Dt(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
|
-
const j = A(c.subject, b),
|
|
3558
|
-
var
|
|
3559
|
-
|
|
3560
|
-
},
|
|
3561
|
-
var
|
|
3562
|
-
n(k), (
|
|
3557
|
+
const j = A(c.subject, b), G = () => {
|
|
3558
|
+
var Z;
|
|
3559
|
+
D(c.subject, b), n(f(k, m, b)), (Z = p.afterCommit) == null || Z.call(p);
|
|
3560
|
+
}, x = () => {
|
|
3561
|
+
var Z;
|
|
3562
|
+
n(k), (Z = p.afterCommit) == null || Z.call(p);
|
|
3563
3563
|
};
|
|
3564
3564
|
if (j.length === 0) {
|
|
3565
|
-
|
|
3565
|
+
G();
|
|
3566
3566
|
return;
|
|
3567
3567
|
}
|
|
3568
|
-
p.onOverridesConflict ? p.onOverridesConflict({ override:
|
|
3568
|
+
p.onOverridesConflict ? p.onOverridesConflict({ override: G, keep: x }) : x();
|
|
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 = xe(L ?? {}) ?? {};
|
|
3577
3577
|
for (const j of b) {
|
|
3578
|
-
const
|
|
3579
|
-
X =
|
|
3578
|
+
const G = j.mode === "inherit" ? j.builder.fromCondition(void 0) : j.form;
|
|
3579
|
+
X = Dt(X, [{ builder: j.builder, formValue: G }]);
|
|
3580
3580
|
}
|
|
3581
|
-
const
|
|
3582
|
-
if (!L && (Object.keys(X).length > 0 ||
|
|
3581
|
+
const W = b.some((j) => j.mode === "custom");
|
|
3582
|
+
if (!L && (Object.keys(X).length > 0 || W)) {
|
|
3583
3583
|
const j = t.value.find((ne) => ne.subject === c.subject);
|
|
3584
3584
|
if (!j) return;
|
|
3585
3585
|
const {
|
|
3586
|
-
category:
|
|
3587
|
-
showByFeatureFlag:
|
|
3588
|
-
isCategoryCover:
|
|
3589
|
-
...
|
|
3586
|
+
category: G,
|
|
3587
|
+
showByFeatureFlag: x,
|
|
3588
|
+
isCategoryCover: Z,
|
|
3589
|
+
...B
|
|
3590
3590
|
} = j;
|
|
3591
3591
|
L = {
|
|
3592
|
-
...
|
|
3593
|
-
actions: c.actions.length > 0 ? c.actions :
|
|
3592
|
+
...B,
|
|
3593
|
+
actions: c.actions.length > 0 ? c.actions : B.actions
|
|
3594
3594
|
}, p.push(L), k = p.length - 1;
|
|
3595
3595
|
}
|
|
3596
3596
|
if (L) {
|
|
3597
|
-
const j = l(c.subject),
|
|
3598
|
-
if (!
|
|
3597
|
+
const j = l(c.subject), G = j ? u(j) : void 0;
|
|
3598
|
+
if (!W && Object.keys(X).length === 0 && !!G && Mt(G, L))
|
|
3599
3599
|
p.splice(k, 1), L = void 0;
|
|
3600
3600
|
else {
|
|
3601
3601
|
if (L.actions = [
|
|
3602
3602
|
.../* @__PURE__ */ new Set([...L.actions, ...c.actions])
|
|
3603
|
-
],
|
|
3604
|
-
for (const
|
|
3605
|
-
|
|
3603
|
+
], G)
|
|
3604
|
+
for (const Z of b)
|
|
3605
|
+
Z.mode === "inherit" && (X = {
|
|
3606
3606
|
...X,
|
|
3607
|
-
...tt(
|
|
3607
|
+
...tt(xe(G), Z.builder)
|
|
3608
3608
|
});
|
|
3609
3609
|
Object.keys(X).length === 0 ? delete L.conditions : L.conditions = JSON.stringify(X), p[k] = L;
|
|
3610
3610
|
}
|
|
3611
3611
|
}
|
|
3612
3612
|
const m = () => {
|
|
3613
3613
|
const j = new Set(r.value);
|
|
3614
|
-
for (const
|
|
3615
|
-
const
|
|
3616
|
-
|
|
3614
|
+
for (const G of b) {
|
|
3615
|
+
const x = gt(c.subject, G.builder);
|
|
3616
|
+
G.mode === "custom" ? j.add(x) : j.delete(x);
|
|
3617
3617
|
}
|
|
3618
3618
|
r.value = j;
|
|
3619
3619
|
}, C = (j) => {
|
|
3620
|
-
var
|
|
3621
|
-
m(), n(j), (
|
|
3620
|
+
var G;
|
|
3621
|
+
m(), n(j), (G = I.afterCommit) == null || G.call(I);
|
|
3622
3622
|
};
|
|
3623
3623
|
if (!sn(c.subject, t.value) || !L) {
|
|
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
|
|
3630
|
-
|
|
3629
|
+
for (const G of b.map((x) => x.builder))
|
|
3630
|
+
D(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,
|
|
@@ -3643,12 +3643,12 @@ function fa(e, t, n) {
|
|
|
3643
3643
|
inheritMode: E,
|
|
3644
3644
|
setInheritMode: F,
|
|
3645
3645
|
inheritedSummary: T,
|
|
3646
|
-
getEffectiveActions:
|
|
3647
|
-
updateBuilderCondition:
|
|
3646
|
+
getEffectiveActions: w,
|
|
3647
|
+
updateBuilderCondition: v,
|
|
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" },
|
|
3651
|
+
const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ha = { class: "h-[24px] w-[24px] flex items-center justify-center" }, va = { 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" }, Ea = "condition-form-select-menu", Da = /* @__PURE__ */ Ae({
|
|
3652
3652
|
__name: "PortalPermissionEditor",
|
|
3653
3653
|
props: /* @__PURE__ */ tn({
|
|
3654
3654
|
disable: {
|
|
@@ -3665,17 +3665,17 @@ 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 =
|
|
3668
|
+
const n = hr(e, "modelValue"), r = e, l = t, { t: a } = He(), d = vr(), u = br(), { breakpoints: i } = gr(), g = z(() => i.value.xs || i.value.sm), {
|
|
3669
3669
|
fetchCustomReportPermissions: E,
|
|
3670
3670
|
customReportPermissions: T
|
|
3671
3671
|
} = Ir(), N = z(() => [
|
|
3672
|
-
...
|
|
3672
|
+
...Gn,
|
|
3673
3673
|
...T.value
|
|
3674
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
|
});
|
|
3678
|
-
function
|
|
3678
|
+
function w(O) {
|
|
3679
3679
|
return N.value.find((s) => s.subject === O);
|
|
3680
3680
|
}
|
|
3681
3681
|
function A(O, s) {
|
|
@@ -3686,7 +3686,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3686
3686
|
}
|
|
3687
3687
|
);
|
|
3688
3688
|
}
|
|
3689
|
-
const
|
|
3689
|
+
const D = z(() => {
|
|
3690
3690
|
const O = N.value.filter((o) => !c.includes(o.subject)).map((o) => o.subject);
|
|
3691
3691
|
return Er(
|
|
3692
3692
|
r.inheritPermissions.map((o) => ({
|
|
@@ -3701,7 +3701,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3701
3701
|
const O = r.inheritPermissions.map((s) => ({
|
|
3702
3702
|
...s,
|
|
3703
3703
|
permissions: s.permissions.filter(
|
|
3704
|
-
(o) => o.subject ===
|
|
3704
|
+
(o) => o.subject === ve.Subject.Business.inventory_stock
|
|
3705
3705
|
)
|
|
3706
3706
|
}));
|
|
3707
3707
|
return Lt(
|
|
@@ -3709,11 +3709,11 @@ 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
|
-
}),
|
|
3712
|
+
}), v = z(() => {
|
|
3713
3713
|
const O = r.inheritPermissions.map((s) => ({
|
|
3714
3714
|
...s,
|
|
3715
3715
|
permissions: s.permissions.filter(
|
|
3716
|
-
(o) => o.subject ===
|
|
3716
|
+
(o) => o.subject === ve.Subject.Restaurant.restaurant
|
|
3717
3717
|
)
|
|
3718
3718
|
}));
|
|
3719
3719
|
return Lt(
|
|
@@ -3724,22 +3724,22 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3724
3724
|
}), S = z(() => {
|
|
3725
3725
|
const O = r.inheritPermissions.map((s) => ({
|
|
3726
3726
|
...s,
|
|
3727
|
-
permissions: s.permissions.filter((o) => o.subject ===
|
|
3727
|
+
permissions: s.permissions.filter((o) => o.subject === ve.Subject.Business.role)
|
|
3728
3728
|
}));
|
|
3729
3729
|
return Lt(
|
|
3730
3730
|
O,
|
|
3731
3731
|
"roleId",
|
|
3732
|
-
|
|
3732
|
+
W.value.map((s) => s._id)
|
|
3733
3733
|
);
|
|
3734
3734
|
}), c = [
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3735
|
+
ve.Subject.Business.restaurant,
|
|
3736
|
+
ve.Subject.Business.role,
|
|
3737
|
+
ve.Subject.Restaurant.restaurant,
|
|
3738
|
+
ve.Subject.Business.inventory_stock
|
|
3739
3739
|
], b = z(() => {
|
|
3740
3740
|
var s;
|
|
3741
3741
|
const O = (s = n.value) == null ? void 0 : s.find(
|
|
3742
|
-
(o) => o.subject ===
|
|
3742
|
+
(o) => o.subject === ve.Subject.Business.inventory_stock
|
|
3743
3743
|
);
|
|
3744
3744
|
return O ? O.conditions ? JSON.parse(O.conditions).warehouseId.$in : null : [];
|
|
3745
3745
|
}), I = rt([]), p = z(() => I.value.map((O) => ({
|
|
@@ -3752,31 +3752,31 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3752
3752
|
}
|
|
3753
3753
|
function L(O, s) {
|
|
3754
3754
|
let o = It(
|
|
3755
|
-
O.filter((_) => _.subject !==
|
|
3755
|
+
O.filter((_) => _.subject !== ve.Subject.Business.inventory_stock)
|
|
3756
3756
|
);
|
|
3757
3757
|
if (!s || s.length > 0) {
|
|
3758
3758
|
const _ = {
|
|
3759
|
-
actions: [
|
|
3760
|
-
subject:
|
|
3759
|
+
actions: [ve.Action.manage],
|
|
3760
|
+
subject: ve.Subject.Business.inventory_stock
|
|
3761
3761
|
};
|
|
3762
3762
|
s && (_.conditions = JSON.stringify({ warehouseId: { $in: s } })), o.push(_);
|
|
3763
3763
|
}
|
|
3764
3764
|
return o;
|
|
3765
3765
|
}
|
|
3766
|
-
const { restaurants: X } = d,
|
|
3766
|
+
const { restaurants: X } = d, W = 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 = z(() => X.value.reduce((O, s) => (O[s._id] =
|
|
3770
|
-
function
|
|
3771
|
-
const s =
|
|
3769
|
+
}))), C = z(() => X.value.reduce((O, s) => (O[s._id] = W.value.filter((o) => o.restaurants.some((_) => _.id === s._id)).map((o) => o._id), O), {})), U = z(() => yr(n.value));
|
|
3770
|
+
function V(O) {
|
|
3771
|
+
const s = G(n.value, O);
|
|
3772
3772
|
n.value = s;
|
|
3773
3773
|
}
|
|
3774
3774
|
const j = z(() => Nr(n.value));
|
|
3775
|
-
function
|
|
3775
|
+
function G(O, s) {
|
|
3776
3776
|
var _;
|
|
3777
3777
|
let o = It(
|
|
3778
3778
|
O.filter(
|
|
3779
|
-
(R) => R.subject !==
|
|
3779
|
+
(R) => R.subject !== ve.Subject.Business.restaurant && R.subject !== ve.Subject.Restaurant.restaurant
|
|
3780
3780
|
)
|
|
3781
3781
|
);
|
|
3782
3782
|
if (!s || s.length > 0) {
|
|
@@ -3786,50 +3786,50 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3786
3786
|
...P
|
|
3787
3787
|
} = Lr.restaurant;
|
|
3788
3788
|
o.push(P);
|
|
3789
|
-
const
|
|
3790
|
-
actions: [
|
|
3791
|
-
subject:
|
|
3789
|
+
const h = {
|
|
3790
|
+
actions: [ve.Action.manage],
|
|
3791
|
+
subject: ve.Subject.Restaurant.restaurant
|
|
3792
3792
|
};
|
|
3793
|
-
s && (
|
|
3793
|
+
s && (h.conditions = JSON.stringify({ restaurantId: { $in: s } })), o.push(h);
|
|
3794
3794
|
}
|
|
3795
3795
|
if (s) {
|
|
3796
3796
|
const R = [
|
|
3797
3797
|
...new Set(s.map((P) => C.value[P]).flatMap((P) => P))
|
|
3798
|
-
], M =
|
|
3799
|
-
R.length !== M.length && (o =
|
|
3798
|
+
], M = W.value.map((P) => P._id);
|
|
3799
|
+
R.length !== M.length && (o = Z(
|
|
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 x(O) {
|
|
3807
|
+
const s = Z(n.value, O);
|
|
3808
3808
|
n.value = s;
|
|
3809
3809
|
}
|
|
3810
|
-
function
|
|
3810
|
+
function Z(O, s) {
|
|
3811
3811
|
let o = It(
|
|
3812
|
-
O.filter((_) => _.subject !==
|
|
3812
|
+
O.filter((_) => _.subject !== ve.Subject.Business.role)
|
|
3813
3813
|
);
|
|
3814
3814
|
if (s && s.length > 0) {
|
|
3815
3815
|
const _ = {
|
|
3816
|
-
actions: [
|
|
3817
|
-
subject:
|
|
3816
|
+
actions: [ve.Action.manage],
|
|
3817
|
+
subject: ve.Subject.Business.role,
|
|
3818
3818
|
conditions: JSON.stringify({ roleId: { $in: s } })
|
|
3819
3819
|
};
|
|
3820
3820
|
o.push(_);
|
|
3821
3821
|
}
|
|
3822
3822
|
return o;
|
|
3823
3823
|
}
|
|
3824
|
-
|
|
3824
|
+
Wn(async () => {
|
|
3825
3825
|
await Promise.all([
|
|
3826
3826
|
la.readWarehouses().then((O) => I.value = O),
|
|
3827
3827
|
E()
|
|
3828
3828
|
]);
|
|
3829
3829
|
});
|
|
3830
|
-
const
|
|
3830
|
+
const B = z(() => Yn(
|
|
3831
3831
|
n.value,
|
|
3832
|
-
|
|
3832
|
+
Zn
|
|
3833
3833
|
).filter((o) => {
|
|
3834
3834
|
const _ = o.source;
|
|
3835
3835
|
return (_ == null ? void 0 : _.type) !== "systemPermissionSet" ? !0 : o.actions.includes("manage");
|
|
@@ -3837,24 +3837,24 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3837
3837
|
if (o.inverted) return o;
|
|
3838
3838
|
const _ = o.actions;
|
|
3839
3839
|
if (!_.includes("manage")) return o;
|
|
3840
|
-
const R =
|
|
3840
|
+
const R = w(o.subject);
|
|
3841
3841
|
if (!R) return o;
|
|
3842
3842
|
const M = R.actions;
|
|
3843
|
-
return M.length <= 1 || M.filter((
|
|
3843
|
+
return M.length <= 1 || M.filter((h) => !_.includes(h)).length === 0 ? o : { ...o, actions: [...M] };
|
|
3844
3844
|
}));
|
|
3845
3845
|
function ne(O) {
|
|
3846
3846
|
n.value = ia(
|
|
3847
|
-
|
|
3847
|
+
B.value,
|
|
3848
3848
|
O,
|
|
3849
3849
|
n.value,
|
|
3850
|
-
|
|
3850
|
+
w
|
|
3851
3851
|
);
|
|
3852
3852
|
}
|
|
3853
3853
|
const Q = z(() => new Set(
|
|
3854
3854
|
N.value.filter((O) => rn(O.subject).length > 0).map((O) => O.subject)
|
|
3855
3855
|
)), _e = z(() => {
|
|
3856
3856
|
const O = /* @__PURE__ */ new Map();
|
|
3857
|
-
return
|
|
3857
|
+
return B.value.map((s) => ({
|
|
3858
3858
|
rule: s,
|
|
3859
3859
|
index: n.value.findIndex(
|
|
3860
3860
|
(o) => !o.inverted && o.subject === s.subject
|
|
@@ -3872,12 +3872,12 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3872
3872
|
O.set(s.subject, {
|
|
3873
3873
|
index: o >= 0 ? o : null,
|
|
3874
3874
|
subject: s.subject,
|
|
3875
|
-
label: ((P =
|
|
3875
|
+
label: ((P = w(s.subject)) == null ? void 0 : P.label) ?? s.subject,
|
|
3876
3876
|
actions: _,
|
|
3877
3877
|
// Each builder only ever sees its own slice of the stored condition.
|
|
3878
|
-
sections: R.map((
|
|
3879
|
-
builder:
|
|
3880
|
-
formValue:
|
|
3878
|
+
sections: R.map((h) => ({
|
|
3879
|
+
builder: h,
|
|
3880
|
+
formValue: h.fromCondition(tt(M, h))
|
|
3881
3881
|
}))
|
|
3882
3882
|
});
|
|
3883
3883
|
}), O;
|
|
@@ -3900,7 +3900,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3900
3900
|
}))
|
|
3901
3901
|
};
|
|
3902
3902
|
}
|
|
3903
|
-
function
|
|
3903
|
+
function De(O, s) {
|
|
3904
3904
|
const o = se.getDraft({ subject: O.subject, builderKey: s.builderKey });
|
|
3905
3905
|
if (o) return o.formValue;
|
|
3906
3906
|
const _ = O.sections.find((R) => R.builder.builderKey === s.builderKey);
|
|
@@ -3939,7 +3939,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3939
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: Ze(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 Ze(O, s = {}) {
|
|
3962
3962
|
return {
|
|
3963
3963
|
...s,
|
|
3964
3964
|
onOverridesConflict: ({ override: o, keep: _ }) => {
|
|
@@ -3987,32 +3987,32 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3987
3987
|
}
|
|
3988
3988
|
};
|
|
3989
3989
|
}
|
|
3990
|
-
return
|
|
3990
|
+
return wt(
|
|
3991
3991
|
n,
|
|
3992
3992
|
(O) => {
|
|
3993
3993
|
l("permissionChanged", O);
|
|
3994
3994
|
},
|
|
3995
3995
|
{ deep: !0 }
|
|
3996
3996
|
), (O, s) => {
|
|
3997
|
-
const o =
|
|
3997
|
+
const o = we("FmIcon"), _ = we("FmBottomSheet"), R = we("FmPopover");
|
|
3998
3998
|
return J(), ie("div", _a, [
|
|
3999
3999
|
ae("div", pa, [
|
|
4000
4000
|
ue(Ho, {
|
|
4001
|
-
"model-value":
|
|
4001
|
+
"model-value": B.value,
|
|
4002
4002
|
"excluded-subjects": c,
|
|
4003
4003
|
"additional-permissions": H(T),
|
|
4004
4004
|
"onUpdate:modelValue": ne
|
|
4005
4005
|
}, et({ _: 2 }, [
|
|
4006
|
-
ye(
|
|
4006
|
+
ye(D.value, (M) => ({
|
|
4007
4007
|
name: `checkbox-${M.id}-append`,
|
|
4008
4008
|
fn: de(() => [
|
|
4009
|
-
ue(
|
|
4009
|
+
ue(ht, { item: M }, null, 8, ["item"])
|
|
4010
4010
|
])
|
|
4011
4011
|
})),
|
|
4012
4012
|
ye(Q.value, (M) => ({
|
|
4013
4013
|
name: `checkbox-${M}-icon`,
|
|
4014
|
-
fn: de(({ option: P, isEffectiveSelected:
|
|
4015
|
-
|
|
4014
|
+
fn: de(({ option: P, isEffectiveSelected: h }) => [
|
|
4015
|
+
h && q(M, P.label) ? (J(), ie(ke, { key: 0 }, [
|
|
4016
4016
|
g.value ? (J(), Ne(_, {
|
|
4017
4017
|
key: 0,
|
|
4018
4018
|
"model-value": fe.value === M,
|
|
@@ -4027,7 +4027,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4027
4027
|
}
|
|
4028
4028
|
}, {
|
|
4029
4029
|
"bottom-sheet-button": de(() => [
|
|
4030
|
-
ae("div",
|
|
4030
|
+
ae("div", ha, [
|
|
4031
4031
|
ue(o, {
|
|
4032
4032
|
name: "settings",
|
|
4033
4033
|
size: "sm",
|
|
@@ -4046,13 +4046,13 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4046
4046
|
"time-zone": F.value,
|
|
4047
4047
|
"cover-override": H(ce),
|
|
4048
4048
|
"inherit-mode-for": (y) => K(q(M, P.label), y),
|
|
4049
|
-
"form-value-for": (y) =>
|
|
4049
|
+
"form-value-for": (y) => De(q(M, P.label), y),
|
|
4050
4050
|
"has-changes": Ke(M),
|
|
4051
4051
|
disable: e.disable,
|
|
4052
4052
|
"full-width": !0,
|
|
4053
4053
|
onUpdateInheritMode: ({ builder: y, mode: $ }) => Je(q(M, P.label), y, $),
|
|
4054
4054
|
onUpdateForm: ({ builder: y, form: $ }) => pe(q(M, P.label), y, $),
|
|
4055
|
-
onApply: (y) =>
|
|
4055
|
+
onApply: (y) => 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
|
|
@@ -4067,7 +4067,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4067
4067
|
}
|
|
4068
4068
|
}, {
|
|
4069
4069
|
"popover-button": de(() => [
|
|
4070
|
-
ae("div",
|
|
4070
|
+
ae("div", va, [
|
|
4071
4071
|
ue(o, {
|
|
4072
4072
|
name: "settings",
|
|
4073
4073
|
size: "sm",
|
|
@@ -4089,7 +4089,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4089
4089
|
context: q(M, P.label).label
|
|
4090
4090
|
}),
|
|
4091
4091
|
"inherit-mode-for": ($) => K(q(M, P.label), $),
|
|
4092
|
-
"form-value-for": ($) =>
|
|
4092
|
+
"form-value-for": ($) => De(q(M, P.label), $),
|
|
4093
4093
|
"has-changes": Ke(M),
|
|
4094
4094
|
disable: e.disable,
|
|
4095
4095
|
onUpdateInheritMode: ({ builder: $, mode: le }) => Je(
|
|
@@ -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), y)
|
|
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
|
|
@@ -4114,7 +4114,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4114
4114
|
]), 1032, ["model-value", "additional-permissions"])
|
|
4115
4115
|
]),
|
|
4116
4116
|
ae("div", ba, [
|
|
4117
|
-
ue(
|
|
4117
|
+
ue(Dn, {
|
|
4118
4118
|
"model-value": b.value,
|
|
4119
4119
|
options: p.value,
|
|
4120
4120
|
context: H(a)("team.labels.warehouse"),
|
|
@@ -4123,37 +4123,37 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4123
4123
|
ye(f.value, (M) => ({
|
|
4124
4124
|
name: `checkbox-${M.id}-append`,
|
|
4125
4125
|
fn: de(() => [
|
|
4126
|
-
ue(
|
|
4126
|
+
ue(ht, { item: M }, null, 8, ["item"])
|
|
4127
4127
|
])
|
|
4128
4128
|
}))
|
|
4129
4129
|
]), 1032, ["model-value", "options", "context"])
|
|
4130
4130
|
]),
|
|
4131
4131
|
ae("div", ga, [
|
|
4132
|
-
ue(
|
|
4132
|
+
ue(Dn, {
|
|
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
|
-
ye(
|
|
4138
|
+
ye(v.value, (M) => ({
|
|
4139
4139
|
name: `checkbox-${M.id}-append`,
|
|
4140
4140
|
fn: de(() => [
|
|
4141
|
-
ue(
|
|
4141
|
+
ue(ht, { item: M }, null, 8, ["item"])
|
|
4142
4142
|
])
|
|
4143
4143
|
}))
|
|
4144
4144
|
]), 1032, ["model-value", "options", "context"])
|
|
4145
4145
|
]),
|
|
4146
4146
|
ae("div", Ia, [
|
|
4147
4147
|
ue(ra, {
|
|
4148
|
-
roles: H(
|
|
4148
|
+
roles: H(W),
|
|
4149
4149
|
"model-value": j.value,
|
|
4150
4150
|
"restaurant-ids": U.value,
|
|
4151
|
-
"onUpdate:modelValue":
|
|
4151
|
+
"onUpdate:modelValue": x
|
|
4152
4152
|
}, et({ _: 2 }, [
|
|
4153
4153
|
ye(S.value, (M) => ({
|
|
4154
4154
|
name: `checkbox-${M.id}-append`,
|
|
4155
4155
|
fn: de(() => [
|
|
4156
|
-
ue(
|
|
4156
|
+
ue(ht, { item: M }, null, 8, ["item"])
|
|
4157
4157
|
])
|
|
4158
4158
|
}))
|
|
4159
4159
|
]), 1032, ["roles", "model-value", "restaurant-ids"])
|
|
@@ -4163,5 +4163,5 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4163
4163
|
}
|
|
4164
4164
|
});
|
|
4165
4165
|
export {
|
|
4166
|
-
|
|
4166
|
+
Da as _
|
|
4167
4167
|
};
|