@feedmepos/mf-hrm-portal 2.3.0-dev.21 → 2.3.0-dev.22
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-DuPmMQ8Z.js → ApprovalCodeList-C1iUwgoF.js} +4 -4
- package/dist/{AuditLogList-BeRA_284.js → AuditLogList-BzzXHCaj.js} +4 -4
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-StnBAQOk.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C1RDx0bv.js} +2 -2
- package/dist/{EmployeeList-qmjsbCjj.js → EmployeeList-Dq8Tw1BS.js} +6 -6
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-oQJgMciC.js → FormItem.vue_vue_type_script_setup_true_lang-CMlAadcn.js} +1 -1
- package/dist/{GrantUserList--WUK7zrV.js → GrantUserList-FY5mQj5n.js} +5 -5
- package/dist/{Main-BIAeEQV9.js → Main-DjsnR21A.js} +5 -5
- package/dist/{Main-9X2iCXoX.js → Main-DlMmsIcO.js} +2 -2
- package/dist/{Main-tPL_YTwT.js → Main-WX55rkzj.js} +9 -9
- package/dist/{PermissionSetList-ByTyQe0s.js → PermissionSetList-4qzgSISm.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bp9WwlnI.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DqldjriM.js} +853 -853
- package/dist/{RoleList-INlydQmP.js → RoleList-B_QD0k4T.js} +7 -7
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-d8KDvgNu.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CR3j1Fb6.js} +1 -1
- package/dist/{ScheduleGeneralPage-DbOoP9Ez.js → ScheduleGeneralPage-DdA5Alee.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-UowMybGr.js → ScheduleModal.vue_vue_type_script_setup_true_lang-5ucGidKP.js} +2 -2
- package/dist/{SchedulePage-CjOZtRlK.js → SchedulePage-Bpf-6Aih.js} +10 -10
- package/dist/{SchedulePositionPage-CnDqkvL9.js → SchedulePositionPage-B44O6h2M.js} +3 -3
- package/dist/{SelectFilter-BWw4B9tM.js → SelectFilter-klqcsyBJ.js} +1 -1
- package/dist/{TeamMemberList-BgYtoXht.js → TeamMemberList-B64tjsvI.js} +7 -7
- package/dist/{TimesheetList-Dg0QYsWO.js → TimesheetList-C0SVJqRg.js} +6 -6
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-eTd4J1CB.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CXQreGJ2.js} +2 -2
- package/dist/{app-CDo04LrB.js → app-DDDq626g.js} +8 -8
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-KFBmxZF3.js → dayjs.min-PTS2bj7p.js} +1 -1
- package/dist/{employee-BRaYoaOY.js → employee-CmDuOgyC.js} +3 -3
- package/dist/{iteration-p-TjO05t.js → iteration-VpgNJCfD.js} +1 -1
- package/dist/{lodash-D72lpJgs.js → lodash-WrzYMosB.js} +1 -1
- package/dist/{role-a35Vc8gC.js → role-B8k9CKN0.js} +1 -1
- package/dist/{rule-BRRw0K7p.js → rule-Di7feaJT.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-Ca-9DEOI.js → useReportPermissions-B-8jGF5r.js} +3 -3
- package/package.json +3 -3
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
2
|
-
import { useI18n as He, useCoreStore as
|
|
1
|
+
import { getCurrentInstance as Yt, inject as ur, ref as rt, shallowRef as mr, computed as z, watch as wt, onMounted as xn, onUnmounted as dr, defineComponent as Le, h as Wn, createVNode as ue, Text as fr, Fragment as ke, resolveComponent as we, createBlock as Ne, openBlock as J, withCtx as me, createElementVNode as ae, createElementBlock as ie, toDisplayString as Oe, unref as H, renderList as Ee, toRef as en, normalizeStyle as nt, renderSlot as Se, createCommentVNode as Me, createTextVNode as _r, useSlots as pr, normalizeClass as qe, createSlots as et, mergeModels as tn, useModel as vr } from "vue";
|
|
2
|
+
import { useI18n as He, useCoreStore as hr } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialog as br, useBreakpoints as gr } from "@feedmepos/ui-library";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { p as Gn, N as Zn, d as Ir, P as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { u as Or, v as Sr, c as Xn, S as Dt, A as tt, d as
|
|
8
|
-
import { c as It } from "./iteration-
|
|
5
|
+
import { p as Gn, N as Zn, d as Ir, P as yr, w as At, x as Er, y as Nr } from "./rule-Di7feaJT.js";
|
|
6
|
+
import { _ as Bt, a as Cr, b as nn, u as Tr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C1RDx0bv.js";
|
|
7
|
+
import { u as Or, v as Sr, c as Xn, S as Dt, A as tt, d as he, k as rn, O as Ar } from "./app-DDDq626g.js";
|
|
8
|
+
import { c as It } from "./iteration-VpgNJCfD.js";
|
|
9
9
|
import { r as Lr } from "./string-VNuQNweN.js";
|
|
10
|
-
import { g as
|
|
11
|
-
import { u as Mr } from "./role-
|
|
12
|
-
function
|
|
10
|
+
import { g as Rr, b as kr } from "./restaurant-D2mfKHaH.js";
|
|
11
|
+
import { u as Mr } from "./role-B8k9CKN0.js";
|
|
12
|
+
function Yn(e, t) {
|
|
13
13
|
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
14
14
|
}
|
|
15
15
|
function wr(e) {
|
|
16
16
|
return Array.isArray(e) ? e[0] : e;
|
|
17
17
|
}
|
|
18
18
|
function Dr(e, t) {
|
|
19
|
-
const n = t.find((l) =>
|
|
19
|
+
const n = t.find((l) => Yn(l.subject, e));
|
|
20
20
|
if (!(n != null && n.category) || n.isCategoryCover) return;
|
|
21
21
|
const r = t.find((l) => l.category === n.category && l.isCategoryCover);
|
|
22
22
|
if (r)
|
|
23
23
|
return wr(r.subject);
|
|
24
24
|
}
|
|
25
25
|
function sn(e, t) {
|
|
26
|
-
const n = t.find((r) =>
|
|
26
|
+
const n = t.find((r) => Yn(r.subject, e));
|
|
27
27
|
return !!(n != null && n.isCategoryCover);
|
|
28
28
|
}
|
|
29
29
|
/*!
|
|
@@ -31,9 +31,9 @@ function sn(e, t) {
|
|
|
31
31
|
* (c) 2024 kazuya kawaguchi
|
|
32
32
|
* Released under the MIT License.
|
|
33
33
|
*/
|
|
34
|
-
const on = typeof window < "u",
|
|
34
|
+
const on = typeof window < "u", $e = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Fr = (e, t, n) => Pr({ l: e, k: t, s: n }), Pr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ge = (e) => typeof e == "number" && isFinite(e), jr = (e) => Ht(e) === "[object Date]", Et = (e) => Ht(e) === "[object RegExp]", Ct = (e) => ee(e) && Object.keys(e).length === 0, Ie = Object.assign, Ur = Object.create, oe = (e = null) => Ur(e);
|
|
35
35
|
let an;
|
|
36
|
-
const
|
|
36
|
+
const Be = () => an || (an = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : oe());
|
|
37
37
|
function ln(e) {
|
|
38
38
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
39
39
|
}
|
|
@@ -41,15 +41,15 @@ const Vr = Object.prototype.hasOwnProperty;
|
|
|
41
41
|
function Ae(e, t) {
|
|
42
42
|
return Vr.call(e, t);
|
|
43
43
|
}
|
|
44
|
-
const be = Array.isArray, de = (e) => typeof e == "function", Z = (e) => typeof e == "string",
|
|
45
|
-
function
|
|
44
|
+
const be = Array.isArray, de = (e) => typeof e == "function", Z = (e) => typeof e == "string", ve = (e) => typeof e == "boolean", te = (e) => e !== null && typeof e == "object", xr = (e) => te(e) && de(e.then) && de(e.catch), Bn = Object.prototype.toString, Ht = (e) => Bn.call(e), ee = (e) => Ht(e) === "[object Object]", Wr = (e) => e == null ? "" : be(e) || ee(e) && e.toString === Bn ? JSON.stringify(e, null, 2) : String(e);
|
|
45
|
+
function $t(e, t = "") {
|
|
46
46
|
return e.reduce((n, r, l) => l === 0 ? n + r : n + t + r, "");
|
|
47
47
|
}
|
|
48
48
|
function Gr(e, t) {
|
|
49
49
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
50
50
|
}
|
|
51
51
|
const ft = (e) => !te(e) || be(e);
|
|
52
|
-
function
|
|
52
|
+
function yt(e, t) {
|
|
53
53
|
if (ft(e) || ft(t))
|
|
54
54
|
throw new Error("Invalid value");
|
|
55
55
|
const n = [{ src: e, des: t }];
|
|
@@ -88,17 +88,17 @@ function Tt(e, t, n = {}) {
|
|
|
88
88
|
const { domain: r, messages: l, args: a } = n, m = e, u = new SyntaxError(String(m));
|
|
89
89
|
return u.code = e, t && (u.location = t), u.domain = r, u;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Yr(e) {
|
|
92
92
|
throw e;
|
|
93
93
|
}
|
|
94
|
-
const Pe = " ",
|
|
95
|
-
`, Hr = "\u2028",
|
|
96
|
-
function
|
|
94
|
+
const Pe = " ", Br = "\r", ye = `
|
|
95
|
+
`, Hr = "\u2028", $r = "\u2029";
|
|
96
|
+
function Jr(e) {
|
|
97
97
|
const t = e;
|
|
98
98
|
let n = 0, r = 1, l = 1, a = 0;
|
|
99
|
-
const m = (
|
|
100
|
-
function
|
|
101
|
-
return a = 0,
|
|
99
|
+
const m = (p) => t[p] === Br && t[p + 1] === ye, u = (p) => t[p] === ye, i = (p) => t[p] === $r, g = (p) => t[p] === Hr, y = (p) => m(p) || u(p) || i(p) || g(p), T = () => n, N = () => r, F = () => l, w = () => a, L = (p) => m(p) || i(p) || g(p) ? ye : t[p], D = () => L(n), f = () => L(n + a);
|
|
100
|
+
function h() {
|
|
101
|
+
return a = 0, y(n) && (r++, l = 0), m(n) && n++, n++, l++, t[n];
|
|
102
102
|
}
|
|
103
103
|
function S() {
|
|
104
104
|
return m(n + a) && a++, a++, t[n + a];
|
|
@@ -106,24 +106,24 @@ function $r(e) {
|
|
|
106
106
|
function c() {
|
|
107
107
|
n = 0, r = 1, l = 1, a = 0;
|
|
108
108
|
}
|
|
109
|
-
function b(
|
|
110
|
-
a =
|
|
109
|
+
function b(p = 0) {
|
|
110
|
+
a = p;
|
|
111
111
|
}
|
|
112
112
|
function I() {
|
|
113
|
-
const
|
|
114
|
-
for (;
|
|
115
|
-
|
|
113
|
+
const p = n + a;
|
|
114
|
+
for (; p !== n; )
|
|
115
|
+
h();
|
|
116
116
|
a = 0;
|
|
117
117
|
}
|
|
118
118
|
return {
|
|
119
119
|
index: T,
|
|
120
|
-
line:
|
|
120
|
+
line: N,
|
|
121
121
|
column: F,
|
|
122
122
|
peekOffset: w,
|
|
123
123
|
charAt: L,
|
|
124
124
|
currentChar: D,
|
|
125
125
|
currentPeek: f,
|
|
126
|
-
next:
|
|
126
|
+
next: h,
|
|
127
127
|
peek: S,
|
|
128
128
|
reset: c,
|
|
129
129
|
resetPeek: b,
|
|
@@ -132,7 +132,7 @@ function $r(e) {
|
|
|
132
132
|
}
|
|
133
133
|
const xe = void 0, Kr = ".", cn = "'", zr = "tokenizer";
|
|
134
134
|
function Qr(e, t = {}) {
|
|
135
|
-
const n = t.location !== !1, r =
|
|
135
|
+
const n = t.location !== !1, r = Jr(e), l = () => r.index(), a = () => Zr(r.line(), r.column(), r.index()), m = a(), u = l(), i = {
|
|
136
136
|
currentType: 13,
|
|
137
137
|
offset: u,
|
|
138
138
|
startLoc: m,
|
|
@@ -144,23 +144,23 @@ function Qr(e, t = {}) {
|
|
|
144
144
|
braceNest: 0,
|
|
145
145
|
inLinked: !1,
|
|
146
146
|
text: ""
|
|
147
|
-
}, g = () => i, { onError:
|
|
148
|
-
function T(s, o, _, ...
|
|
147
|
+
}, g = () => i, { onError: y } = t;
|
|
148
|
+
function T(s, o, _, ...R) {
|
|
149
149
|
const M = g();
|
|
150
|
-
if (o.column += _, o.offset += _,
|
|
151
|
-
const P = n ? Ft(M.startLoc, o) : null,
|
|
150
|
+
if (o.column += _, o.offset += _, y) {
|
|
151
|
+
const P = n ? Ft(M.startLoc, o) : null, v = Tt(s, P, {
|
|
152
152
|
domain: zr,
|
|
153
|
-
args:
|
|
153
|
+
args: R
|
|
154
154
|
});
|
|
155
|
-
|
|
155
|
+
y(v);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function N(s, o, _) {
|
|
159
159
|
s.endLoc = a(), s.currentType = o;
|
|
160
|
-
const
|
|
161
|
-
return n && (
|
|
160
|
+
const R = { type: o };
|
|
161
|
+
return n && (R.loc = Ft(s.startLoc, s.endLoc)), _ != null && (R.value = _), R;
|
|
162
162
|
}
|
|
163
|
-
const F = (s) =>
|
|
163
|
+
const F = (s) => N(
|
|
164
164
|
s,
|
|
165
165
|
13
|
|
166
166
|
/* TokenTypes.EOF */
|
|
@@ -170,7 +170,7 @@ function Qr(e, t = {}) {
|
|
|
170
170
|
}
|
|
171
171
|
function L(s) {
|
|
172
172
|
let o = "";
|
|
173
|
-
for (; s.currentPeek() === Pe || s.currentPeek() ===
|
|
173
|
+
for (; s.currentPeek() === Pe || s.currentPeek() === ye; )
|
|
174
174
|
o += s.currentPeek(), s.peek();
|
|
175
175
|
return o;
|
|
176
176
|
}
|
|
@@ -186,7 +186,7 @@ function Qr(e, t = {}) {
|
|
|
186
186
|
o >= 65 && o <= 90 || // A-Z
|
|
187
187
|
o === 95;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function h(s) {
|
|
190
190
|
if (s === xe)
|
|
191
191
|
return !1;
|
|
192
192
|
const o = s.charCodeAt(0);
|
|
@@ -197,15 +197,15 @@ function Qr(e, t = {}) {
|
|
|
197
197
|
if (_ !== 2)
|
|
198
198
|
return !1;
|
|
199
199
|
L(s);
|
|
200
|
-
const
|
|
201
|
-
return s.resetPeek(),
|
|
200
|
+
const R = f(s.currentPeek());
|
|
201
|
+
return s.resetPeek(), R;
|
|
202
202
|
}
|
|
203
203
|
function c(s, o) {
|
|
204
204
|
const { currentType: _ } = o;
|
|
205
205
|
if (_ !== 2)
|
|
206
206
|
return !1;
|
|
207
207
|
L(s);
|
|
208
|
-
const
|
|
208
|
+
const R = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), M = h(R);
|
|
209
209
|
return s.resetPeek(), M;
|
|
210
210
|
}
|
|
211
211
|
function b(s, o) {
|
|
@@ -213,60 +213,60 @@ function Qr(e, t = {}) {
|
|
|
213
213
|
if (_ !== 2)
|
|
214
214
|
return !1;
|
|
215
215
|
L(s);
|
|
216
|
-
const
|
|
217
|
-
return s.resetPeek(),
|
|
216
|
+
const R = s.currentPeek() === cn;
|
|
217
|
+
return s.resetPeek(), R;
|
|
218
218
|
}
|
|
219
219
|
function I(s, o) {
|
|
220
220
|
const { currentType: _ } = o;
|
|
221
221
|
if (_ !== 7)
|
|
222
222
|
return !1;
|
|
223
223
|
L(s);
|
|
224
|
-
const
|
|
225
|
-
return s.resetPeek(),
|
|
224
|
+
const R = s.currentPeek() === ".";
|
|
225
|
+
return s.resetPeek(), R;
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function p(s, o) {
|
|
228
228
|
const { currentType: _ } = o;
|
|
229
229
|
if (_ !== 8)
|
|
230
230
|
return !1;
|
|
231
231
|
L(s);
|
|
232
|
-
const
|
|
233
|
-
return s.resetPeek(),
|
|
232
|
+
const R = f(s.currentPeek());
|
|
233
|
+
return s.resetPeek(), R;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function k(s, o) {
|
|
236
236
|
const { currentType: _ } = o;
|
|
237
237
|
if (!(_ === 7 || _ === 11))
|
|
238
238
|
return !1;
|
|
239
239
|
L(s);
|
|
240
|
-
const
|
|
241
|
-
return s.resetPeek(),
|
|
240
|
+
const R = s.currentPeek() === ":";
|
|
241
|
+
return s.resetPeek(), R;
|
|
242
242
|
}
|
|
243
243
|
function A(s, o) {
|
|
244
244
|
const { currentType: _ } = o;
|
|
245
245
|
if (_ !== 9)
|
|
246
246
|
return !1;
|
|
247
|
-
const
|
|
247
|
+
const R = () => {
|
|
248
248
|
const P = s.currentPeek();
|
|
249
|
-
return P === "{" ? f(s.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P ===
|
|
250
|
-
}, M =
|
|
249
|
+
return P === "{" ? f(s.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P === ye ? (s.peek(), R()) : x(s, !1);
|
|
250
|
+
}, M = R();
|
|
251
251
|
return s.resetPeek(), M;
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function B(s) {
|
|
254
254
|
L(s);
|
|
255
255
|
const o = s.currentPeek() === "|";
|
|
256
256
|
return s.resetPeek(), o;
|
|
257
257
|
}
|
|
258
258
|
function x(s, o = !0) {
|
|
259
259
|
const _ = (M = !1, P = "") => {
|
|
260
|
-
const
|
|
261
|
-
return
|
|
262
|
-
},
|
|
263
|
-
return o && s.resetPeek(),
|
|
260
|
+
const v = s.currentPeek();
|
|
261
|
+
return v === "{" || v === "@" || !v ? M : v === "|" ? !(P === Pe || P === ye) : v === Pe ? (s.peek(), _(!0, Pe)) : v === ye ? (s.peek(), _(!0, ye)) : !0;
|
|
262
|
+
}, R = _();
|
|
263
|
+
return o && s.resetPeek(), R;
|
|
264
264
|
}
|
|
265
265
|
function d(s, o) {
|
|
266
266
|
const _ = s.currentChar();
|
|
267
267
|
return _ === xe ? xe : o(_) ? (s.next(), _) : null;
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function C(s) {
|
|
270
270
|
const o = s.charCodeAt(0);
|
|
271
271
|
return o >= 97 && o <= 122 || // a-z
|
|
272
272
|
o >= 65 && o <= 90 || // A-Z
|
|
@@ -275,7 +275,7 @@ function Qr(e, t = {}) {
|
|
|
275
275
|
o === 36;
|
|
276
276
|
}
|
|
277
277
|
function U(s) {
|
|
278
|
-
return d(s,
|
|
278
|
+
return d(s, C);
|
|
279
279
|
}
|
|
280
280
|
function V(s) {
|
|
281
281
|
const o = s.charCodeAt(0);
|
|
@@ -302,7 +302,7 @@ function Qr(e, t = {}) {
|
|
|
302
302
|
o >= 65 && o <= 70 || // A-F
|
|
303
303
|
o >= 97 && o <= 102;
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function Y(s) {
|
|
306
306
|
return d(s, X);
|
|
307
307
|
}
|
|
308
308
|
function ne(s) {
|
|
@@ -317,11 +317,11 @@ function Qr(e, t = {}) {
|
|
|
317
317
|
const _ = s.currentChar();
|
|
318
318
|
if (_ === "{" || _ === "}" || _ === "@" || _ === "|" || !_)
|
|
319
319
|
break;
|
|
320
|
-
if (_ === Pe || _ ===
|
|
320
|
+
if (_ === Pe || _ === ye)
|
|
321
321
|
if (x(s))
|
|
322
322
|
o += _, s.next();
|
|
323
323
|
else {
|
|
324
|
-
if (
|
|
324
|
+
if (B(s))
|
|
325
325
|
break;
|
|
326
326
|
o += _, s.next();
|
|
327
327
|
}
|
|
@@ -343,15 +343,15 @@ function Qr(e, t = {}) {
|
|
|
343
343
|
return s.currentChar() === "-" ? (s.next(), o += `-${ne(s)}`) : o += ne(s), s.currentChar() === xe && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
344
344
|
}
|
|
345
345
|
function se(s) {
|
|
346
|
-
return s !== cn && s !==
|
|
346
|
+
return s !== cn && s !== ye;
|
|
347
347
|
}
|
|
348
348
|
function fe(s) {
|
|
349
349
|
D(s), w(s, "'");
|
|
350
350
|
let o = "", _ = "";
|
|
351
351
|
for (; o = d(s, se); )
|
|
352
352
|
o === "\\" ? _ += q(s) : _ += o;
|
|
353
|
-
const
|
|
354
|
-
return
|
|
353
|
+
const R = s.currentChar();
|
|
354
|
+
return R === ye || R === xe ? (T(re.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), R === ye && (s.next(), w(s, "'")), _) : (w(s, "'"), _);
|
|
355
355
|
}
|
|
356
356
|
function q(s) {
|
|
357
357
|
const o = s.currentChar();
|
|
@@ -369,28 +369,28 @@ function Qr(e, t = {}) {
|
|
|
369
369
|
}
|
|
370
370
|
function De(s, o, _) {
|
|
371
371
|
w(s, o);
|
|
372
|
-
let
|
|
372
|
+
let R = "";
|
|
373
373
|
for (let M = 0; M < _; M++) {
|
|
374
|
-
const P =
|
|
374
|
+
const P = Y(s);
|
|
375
375
|
if (!P) {
|
|
376
|
-
T(re.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${
|
|
376
|
+
T(re.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${R}${s.currentChar()}`);
|
|
377
377
|
break;
|
|
378
378
|
}
|
|
379
|
-
|
|
379
|
+
R += P;
|
|
380
380
|
}
|
|
381
|
-
return `\\${o}${
|
|
381
|
+
return `\\${o}${R}`;
|
|
382
382
|
}
|
|
383
383
|
function K(s) {
|
|
384
|
-
return s !== "{" && s !== "}" && s !== Pe && s !==
|
|
384
|
+
return s !== "{" && s !== "}" && s !== Pe && s !== ye;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function pe(s) {
|
|
387
387
|
D(s);
|
|
388
388
|
let o = "", _ = "";
|
|
389
389
|
for (; o = d(s, K); )
|
|
390
390
|
_ += o;
|
|
391
391
|
return _;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function Je(s) {
|
|
394
394
|
let o = "", _ = "";
|
|
395
395
|
for (; o = U(s); )
|
|
396
396
|
_ += o;
|
|
@@ -398,8 +398,8 @@ function Qr(e, t = {}) {
|
|
|
398
398
|
}
|
|
399
399
|
function Ke(s) {
|
|
400
400
|
const o = (_) => {
|
|
401
|
-
const
|
|
402
|
-
return
|
|
401
|
+
const R = s.currentChar();
|
|
402
|
+
return R === "{" || R === "@" || R === "|" || R === "(" || R === ")" || !R || R === Pe ? _ : (_ += R, s.next(), o(_));
|
|
403
403
|
};
|
|
404
404
|
return o("");
|
|
405
405
|
}
|
|
@@ -416,68 +416,68 @@ function Qr(e, t = {}) {
|
|
|
416
416
|
let _ = null;
|
|
417
417
|
switch (s.currentChar()) {
|
|
418
418
|
case "{":
|
|
419
|
-
return o.braceNest >= 1 && T(re.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), s.next(), _ =
|
|
419
|
+
return o.braceNest >= 1 && T(re.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), s.next(), _ = N(
|
|
420
420
|
o,
|
|
421
421
|
2,
|
|
422
422
|
"{"
|
|
423
423
|
/* TokenChars.BraceLeft */
|
|
424
424
|
), D(s), o.braceNest++, _;
|
|
425
425
|
case "}":
|
|
426
|
-
return o.braceNest > 0 && o.currentType === 2 && T(re.EMPTY_PLACEHOLDER, a(), 0), s.next(), _ =
|
|
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
431
|
), o.braceNest--, o.braceNest > 0 && D(s), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), _;
|
|
432
432
|
case "@":
|
|
433
|
-
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ =
|
|
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,
|
|
436
|
-
if (
|
|
437
|
-
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ =
|
|
435
|
+
let M = !0, P = !0, v = !0;
|
|
436
|
+
if (B(s))
|
|
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
439
|
return T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, Xe(s, o);
|
|
440
440
|
if (M = S(s, o))
|
|
441
|
-
return _ =
|
|
441
|
+
return _ = N(o, 4, _e(s)), D(s), _;
|
|
442
442
|
if (P = c(s, o))
|
|
443
|
-
return _ =
|
|
444
|
-
if (
|
|
445
|
-
return _ =
|
|
446
|
-
if (!M && !P && !
|
|
447
|
-
return _ =
|
|
443
|
+
return _ = N(o, 5, ce(s)), D(s), _;
|
|
444
|
+
if (v = b(s, o))
|
|
445
|
+
return _ = N(o, 6, fe(s)), D(s), _;
|
|
446
|
+
if (!M && !P && !v)
|
|
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
|
}
|
|
451
451
|
return _;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Ce(s, o) {
|
|
454
454
|
const { currentType: _ } = o;
|
|
455
|
-
let
|
|
455
|
+
let R = null;
|
|
456
456
|
const M = s.currentChar();
|
|
457
|
-
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M ===
|
|
457
|
+
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M === ye || M === Pe) && T(re.INVALID_LINKED_FORMAT, a(), 0), M) {
|
|
458
458
|
case "@":
|
|
459
|
-
return s.next(),
|
|
459
|
+
return s.next(), R = N(
|
|
460
460
|
o,
|
|
461
461
|
7,
|
|
462
462
|
"@"
|
|
463
463
|
/* TokenChars.LinkedAlias */
|
|
464
|
-
), o.inLinked = !0,
|
|
464
|
+
), o.inLinked = !0, R;
|
|
465
465
|
case ".":
|
|
466
|
-
return D(s), s.next(),
|
|
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 D(s), s.next(),
|
|
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
|
|
480
|
+
return B(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))) : A(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, Xe(s, o));
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
483
|
function Xe(s, o) {
|
|
@@ -488,32 +488,32 @@ function Qr(e, t = {}) {
|
|
|
488
488
|
if (o.braceNest > 0)
|
|
489
489
|
return Fe(s, o) || F(o);
|
|
490
490
|
if (o.inLinked)
|
|
491
|
-
return
|
|
491
|
+
return Ce(s, o) || F(o);
|
|
492
492
|
switch (s.currentChar()) {
|
|
493
493
|
case "{":
|
|
494
494
|
return Fe(s, o) || F(o);
|
|
495
495
|
case "}":
|
|
496
|
-
return T(re.UNBALANCED_CLOSING_BRACE, a(), 0), s.next(),
|
|
496
|
+
return T(re.UNBALANCED_CLOSING_BRACE, a(), 0), s.next(), N(
|
|
497
497
|
o,
|
|
498
498
|
3,
|
|
499
499
|
"}"
|
|
500
500
|
/* TokenChars.BraceRight */
|
|
501
501
|
);
|
|
502
502
|
case "@":
|
|
503
|
-
return
|
|
503
|
+
return Ce(s, o) || F(o);
|
|
504
504
|
default: {
|
|
505
|
-
if (
|
|
506
|
-
return _ =
|
|
505
|
+
if (B(s))
|
|
506
|
+
return _ = N(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
507
507
|
if (x(s))
|
|
508
|
-
return
|
|
508
|
+
return N(o, 0, Q(s));
|
|
509
509
|
break;
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
512
|
return _;
|
|
513
513
|
}
|
|
514
514
|
function O() {
|
|
515
|
-
const { currentType: s, offset: o, startLoc: _, endLoc:
|
|
516
|
-
return i.lastType = s, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc =
|
|
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() === xe ? N(
|
|
517
517
|
i,
|
|
518
518
|
13
|
|
519
519
|
/* TokenTypes.EOF */
|
|
@@ -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, h, S, c, ...b) {
|
|
545
545
|
const I = f.currentPosition();
|
|
546
546
|
if (I.offset += c, I.column += c, n) {
|
|
547
|
-
const
|
|
547
|
+
const p = t ? Ft(S, I) : null, k = Tt(h, p, {
|
|
548
548
|
domain: qr,
|
|
549
549
|
args: b
|
|
550
550
|
});
|
|
551
|
-
n(
|
|
551
|
+
n(k);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
function l(f,
|
|
554
|
+
function l(f, h, S) {
|
|
555
555
|
const c = { type: f };
|
|
556
|
-
return t && (c.start =
|
|
556
|
+
return t && (c.start = h, c.end = h, c.loc = { start: S, end: S }), c;
|
|
557
557
|
}
|
|
558
|
-
function a(f,
|
|
559
|
-
t && (f.end =
|
|
558
|
+
function a(f, h, S, c) {
|
|
559
|
+
t && (f.end = h, f.loc && (f.loc.end = S));
|
|
560
560
|
}
|
|
561
|
-
function m(f,
|
|
561
|
+
function m(f, h) {
|
|
562
562
|
const S = f.context(), c = l(3, S.offset, S.startLoc);
|
|
563
|
-
return c.value =
|
|
563
|
+
return c.value = h, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
564
564
|
}
|
|
565
|
-
function u(f,
|
|
565
|
+
function u(f, h) {
|
|
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(h, 10), f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
568
568
|
}
|
|
569
|
-
function i(f,
|
|
569
|
+
function i(f, h) {
|
|
570
570
|
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(4, c, b);
|
|
571
|
-
return I.key =
|
|
571
|
+
return I.key = h, f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
572
572
|
}
|
|
573
|
-
function g(f,
|
|
573
|
+
function g(f, h) {
|
|
574
574
|
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(9, c, b);
|
|
575
|
-
return I.value =
|
|
575
|
+
return I.value = h.replace(es, ts), f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
576
576
|
}
|
|
577
|
-
function
|
|
578
|
-
const
|
|
579
|
-
return
|
|
580
|
-
nextConsumeToken:
|
|
577
|
+
function y(f) {
|
|
578
|
+
const h = f.nextToken(), S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(8, c, b);
|
|
579
|
+
return h.type !== 11 ? (r(f, re.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), I.value = "", a(I, c, b), {
|
|
580
|
+
nextConsumeToken: h,
|
|
581
581
|
node: I
|
|
582
|
-
}) : (
|
|
582
|
+
}) : (h.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, Re(h)), I.value = h.value || "", a(I, f.currentOffset(), f.currentPosition()), {
|
|
583
583
|
node: I
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
|
-
function T(f,
|
|
586
|
+
function T(f, h) {
|
|
587
587
|
const S = f.context(), c = l(7, S.offset, S.startLoc);
|
|
588
|
-
return c.value =
|
|
588
|
+
return c.value = h, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
591
|
-
const
|
|
590
|
+
function N(f) {
|
|
591
|
+
const h = f.context(), S = l(6, h.offset, h.startLoc);
|
|
592
592
|
let c = f.nextToken();
|
|
593
593
|
if (c.type === 8) {
|
|
594
|
-
const b =
|
|
594
|
+
const b = y(f);
|
|
595
595
|
S.modifier = b.node, c = b.nextConsumeToken || f.nextToken();
|
|
596
596
|
}
|
|
597
|
-
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
597
|
+
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), c = f.nextToken(), c.type === 2 && (c = f.nextToken()), c.type) {
|
|
598
598
|
case 10:
|
|
599
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
599
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.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, h.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, h.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, h.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, h.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,56 +621,56 @@ function ns(e = {}) {
|
|
|
621
621
|
};
|
|
622
622
|
}
|
|
623
623
|
function F(f) {
|
|
624
|
-
const
|
|
624
|
+
const h = f.context(), S = h.currentType === 1 ? f.currentOffset() : h.offset, c = h.currentType === 1 ? h.endLoc : h.startLoc, b = l(2, S, c);
|
|
625
625
|
b.items = [];
|
|
626
626
|
let I = null;
|
|
627
627
|
do {
|
|
628
628
|
const A = I || f.nextToken();
|
|
629
629
|
switch (I = null, A.type) {
|
|
630
630
|
case 0:
|
|
631
|
-
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
631
|
+
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(A)), b.items.push(m(f, A.value || ""));
|
|
632
632
|
break;
|
|
633
633
|
case 5:
|
|
634
|
-
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
634
|
+
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(A)), b.items.push(u(f, A.value || ""));
|
|
635
635
|
break;
|
|
636
636
|
case 4:
|
|
637
|
-
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
637
|
+
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(A)), b.items.push(i(f, A.value || ""));
|
|
638
638
|
break;
|
|
639
639
|
case 6:
|
|
640
|
-
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
640
|
+
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(A)), b.items.push(g(f, A.value || ""));
|
|
641
641
|
break;
|
|
642
642
|
case 7: {
|
|
643
|
-
const
|
|
644
|
-
b.items.push(
|
|
643
|
+
const B = N(f);
|
|
644
|
+
b.items.push(B.node), I = B.nextConsumeToken || null;
|
|
645
645
|
break;
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
|
-
} while (
|
|
649
|
-
const
|
|
650
|
-
return a(b,
|
|
648
|
+
} while (h.currentType !== 13 && h.currentType !== 1);
|
|
649
|
+
const p = h.currentType === 1 ? h.lastOffset : f.currentOffset(), k = h.currentType === 1 ? h.lastEndLoc : f.currentPosition();
|
|
650
|
+
return a(b, p, k), b;
|
|
651
651
|
}
|
|
652
|
-
function w(f,
|
|
652
|
+
function w(f, h, S, c) {
|
|
653
653
|
const b = f.context();
|
|
654
654
|
let I = c.items.length === 0;
|
|
655
|
-
const
|
|
656
|
-
|
|
655
|
+
const p = l(1, h, S);
|
|
656
|
+
p.cases = [], p.cases.push(c);
|
|
657
657
|
do {
|
|
658
|
-
const
|
|
659
|
-
I || (I =
|
|
658
|
+
const k = F(f);
|
|
659
|
+
I || (I = k.items.length === 0), p.cases.push(k);
|
|
660
660
|
} while (b.currentType !== 13);
|
|
661
|
-
return I && r(f, re.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), a(
|
|
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 L(f) {
|
|
664
|
-
const
|
|
665
|
-
return
|
|
664
|
+
const h = f.context(), { offset: S, startLoc: c } = h, b = F(f);
|
|
665
|
+
return h.currentType === 13 ? b : w(f, S, c, b);
|
|
666
666
|
}
|
|
667
667
|
function D(f) {
|
|
668
|
-
const
|
|
669
|
-
return t && c.loc && (c.loc.source = f), c.body = L(
|
|
668
|
+
const h = Qr(f, Ie({}, e)), S = h.context(), c = l(0, S.offset, S.startLoc);
|
|
669
|
+
return t && c.loc && (c.loc.source = f), c.body = L(h), e.onCacheKey && (c.cacheKey = e.onCacheKey(f)), S.currentType !== 13 && r(h, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, f[S.offset] || ""), a(c, h.currentOffset(), h.currentPosition()), c;
|
|
670
670
|
}
|
|
671
671
|
return { parse: D };
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function Re(e) {
|
|
674
674
|
if (e.type === 13)
|
|
675
675
|
return "EOF";
|
|
676
676
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
@@ -685,9 +685,9 @@ function rs(e, t = {}) {
|
|
|
685
685
|
}
|
|
686
686
|
function un(e, t) {
|
|
687
687
|
for (let n = 0; n < e.length; n++)
|
|
688
|
-
|
|
688
|
+
Jt(e[n], t);
|
|
689
689
|
}
|
|
690
|
-
function
|
|
690
|
+
function Jt(e, t) {
|
|
691
691
|
switch (e.type) {
|
|
692
692
|
case 1:
|
|
693
693
|
un(e.cases, t), t.helper(
|
|
@@ -699,7 +699,7 @@ function $t(e, t) {
|
|
|
699
699
|
un(e.items, t);
|
|
700
700
|
break;
|
|
701
701
|
case 6: {
|
|
702
|
-
|
|
702
|
+
Jt(e.key, t), t.helper(
|
|
703
703
|
"linked"
|
|
704
704
|
/* HelperNameMap.LINKED */
|
|
705
705
|
), t.helper(
|
|
@@ -733,7 +733,7 @@ function ss(e, t = {}) {
|
|
|
733
733
|
n.helper(
|
|
734
734
|
"normalize"
|
|
735
735
|
/* HelperNameMap.NORMALIZE */
|
|
736
|
-
), e.body &&
|
|
736
|
+
), e.body && Jt(e.body, n);
|
|
737
737
|
const r = n.context();
|
|
738
738
|
e.helpers = Array.from(r.helpers);
|
|
739
739
|
}
|
|
@@ -754,7 +754,7 @@ function mn(e) {
|
|
|
754
754
|
t.push(r.value);
|
|
755
755
|
}
|
|
756
756
|
if (t.length === e.items.length) {
|
|
757
|
-
e.static =
|
|
757
|
+
e.static = $t(t);
|
|
758
758
|
for (let n = 0; n < e.items.length; n++) {
|
|
759
759
|
const r = e.items[n];
|
|
760
760
|
(r.type === 3 || r.type === 9) && delete r.value;
|
|
@@ -830,7 +830,7 @@ function as(e, t) {
|
|
|
830
830
|
const f = D ? r : "";
|
|
831
831
|
i(l ? f + " ".repeat(L) : f);
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function y(L = !0) {
|
|
834
834
|
const D = ++m.indentLevel;
|
|
835
835
|
L && g(D);
|
|
836
836
|
}
|
|
@@ -838,15 +838,15 @@ function as(e, t) {
|
|
|
838
838
|
const D = --m.indentLevel;
|
|
839
839
|
L && g(D);
|
|
840
840
|
}
|
|
841
|
-
function
|
|
841
|
+
function N() {
|
|
842
842
|
g(m.indentLevel);
|
|
843
843
|
}
|
|
844
844
|
return {
|
|
845
845
|
context: u,
|
|
846
846
|
push: i,
|
|
847
|
-
indent:
|
|
847
|
+
indent: y,
|
|
848
848
|
deindent: T,
|
|
849
|
-
newline:
|
|
849
|
+
newline: N,
|
|
850
850
|
helper: (L) => `_${L}`,
|
|
851
851
|
needIndent: () => m.needIndent
|
|
852
852
|
};
|
|
@@ -941,7 +941,7 @@ const ms = (e, t = {}) => {
|
|
|
941
941
|
breakLineCode: l,
|
|
942
942
|
needIndent: a
|
|
943
943
|
});
|
|
944
|
-
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), m.length > 0 && (u.push(`const { ${
|
|
944
|
+
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), m.length > 0 && (u.push(`const { ${$t(m.map((y) => `${y}: _${y}`), ", ")} } = ctx`), u.newline()), u.push("return "), st(u, e), u.deindent(a), u.push("}"), delete e.helpers;
|
|
945
945
|
const { code: i, map: g } = u.context();
|
|
946
946
|
return {
|
|
947
947
|
ast: e,
|
|
@@ -956,13 +956,13 @@ function ds(e, t = {}) {
|
|
|
956
956
|
}
|
|
957
957
|
var fs = { env: { NODE_ENV: "production" } };
|
|
958
958
|
function _s() {
|
|
959
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
959
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Be().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Be().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
960
960
|
}
|
|
961
961
|
function Lt(e) {
|
|
962
|
-
return (n) =>
|
|
962
|
+
return (n) => ps(n, e);
|
|
963
963
|
}
|
|
964
|
-
function
|
|
965
|
-
const n =
|
|
964
|
+
function ps(e, t) {
|
|
965
|
+
const n = hs(t);
|
|
966
966
|
if (n == null)
|
|
967
967
|
throw it(
|
|
968
968
|
0
|
|
@@ -977,30 +977,30 @@ function hs(e, t) {
|
|
|
977
977
|
} else
|
|
978
978
|
return dn(e, n);
|
|
979
979
|
}
|
|
980
|
-
const
|
|
981
|
-
function
|
|
982
|
-
return Ge(e,
|
|
980
|
+
const vs = ["b", "body"];
|
|
981
|
+
function hs(e) {
|
|
982
|
+
return Ge(e, vs);
|
|
983
983
|
}
|
|
984
984
|
const bs = ["c", "cases"];
|
|
985
985
|
function gs(e) {
|
|
986
986
|
return Ge(e, bs, []);
|
|
987
987
|
}
|
|
988
988
|
function dn(e, t) {
|
|
989
|
-
const n =
|
|
989
|
+
const n = ys(t);
|
|
990
990
|
if (n != null)
|
|
991
991
|
return e.type === "text" ? n : e.normalize([n]);
|
|
992
992
|
{
|
|
993
|
-
const r =
|
|
993
|
+
const r = Ns(t).reduce((l, a) => [...l, Pt(e, a)], []);
|
|
994
994
|
return e.normalize(r);
|
|
995
995
|
}
|
|
996
996
|
}
|
|
997
997
|
const Is = ["s", "static"];
|
|
998
|
-
function
|
|
998
|
+
function ys(e) {
|
|
999
999
|
return Ge(e, Is);
|
|
1000
1000
|
}
|
|
1001
|
-
const
|
|
1002
|
-
function
|
|
1003
|
-
return Ge(e,
|
|
1001
|
+
const Es = ["i", "items"];
|
|
1002
|
+
function Ns(e) {
|
|
1003
|
+
return Ge(e, Es, []);
|
|
1004
1004
|
}
|
|
1005
1005
|
function Pt(e, t) {
|
|
1006
1006
|
const n = Kt(t);
|
|
@@ -1037,9 +1037,9 @@ function Pt(e, t) {
|
|
|
1037
1037
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
|
-
const
|
|
1040
|
+
const Cs = ["t", "type"];
|
|
1041
1041
|
function Kt(e) {
|
|
1042
|
-
return Ge(e,
|
|
1042
|
+
return Ge(e, Cs);
|
|
1043
1043
|
}
|
|
1044
1044
|
const Ts = ["v", "value"];
|
|
1045
1045
|
function _t(e, t) {
|
|
@@ -1073,14 +1073,14 @@ function Ge(e, t, n) {
|
|
|
1073
1073
|
function it(e) {
|
|
1074
1074
|
return new Error(`unhandled node type: ${e}`);
|
|
1075
1075
|
}
|
|
1076
|
-
const
|
|
1077
|
-
let
|
|
1076
|
+
const Rs = (e) => e;
|
|
1077
|
+
let pt = oe();
|
|
1078
1078
|
function ot(e) {
|
|
1079
1079
|
return te(e) && Kt(e) === 0 && (Ae(e, "b") || Ae(e, "body"));
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1081
|
+
function ks(e, t = {}) {
|
|
1082
1082
|
let n = !1;
|
|
1083
|
-
const r = t.onError ||
|
|
1083
|
+
const r = t.onError || Yr;
|
|
1084
1084
|
return t.onError = (l) => {
|
|
1085
1085
|
n = !0, r(l);
|
|
1086
1086
|
}, { ...ds(e, t), detectError: n };
|
|
@@ -1088,21 +1088,21 @@ function Rs(e, t = {}) {
|
|
|
1088
1088
|
// @__NO_SIDE_EFFECTS__
|
|
1089
1089
|
function Ms(e, t) {
|
|
1090
1090
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && Z(e)) {
|
|
1091
|
-
|
|
1092
|
-
const r = (t.onCacheKey ||
|
|
1091
|
+
ve(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1092
|
+
const r = (t.onCacheKey || Rs)(e), l = pt[r];
|
|
1093
1093
|
if (l)
|
|
1094
1094
|
return l;
|
|
1095
|
-
const { ast: a, detectError: m } =
|
|
1095
|
+
const { ast: a, detectError: m } = ks(e, {
|
|
1096
1096
|
...t,
|
|
1097
1097
|
location: fs.env.NODE_ENV !== "production",
|
|
1098
1098
|
jit: !0
|
|
1099
1099
|
}), u = Lt(a);
|
|
1100
|
-
return m ? u :
|
|
1100
|
+
return m ? u : pt[r] = u;
|
|
1101
1101
|
} else {
|
|
1102
1102
|
const n = e.cacheKey;
|
|
1103
1103
|
if (n) {
|
|
1104
|
-
const r =
|
|
1105
|
-
return r || (
|
|
1104
|
+
const r = pt[n];
|
|
1105
|
+
return r || (pt[n] = Lt(e));
|
|
1106
1106
|
} else
|
|
1107
1107
|
return Lt(e);
|
|
1108
1108
|
}
|
|
@@ -1138,18 +1138,18 @@ function Ue(e) {
|
|
|
1138
1138
|
function zt(e, t) {
|
|
1139
1139
|
return t.locale != null ? fn(t.locale) : fn(e.locale);
|
|
1140
1140
|
}
|
|
1141
|
-
let
|
|
1141
|
+
let Rt;
|
|
1142
1142
|
function fn(e) {
|
|
1143
1143
|
if (Z(e))
|
|
1144
1144
|
return e;
|
|
1145
1145
|
if (de(e)) {
|
|
1146
|
-
if (e.resolvedOnce &&
|
|
1147
|
-
return
|
|
1146
|
+
if (e.resolvedOnce && Rt != null)
|
|
1147
|
+
return Rt;
|
|
1148
1148
|
if (e.constructor.name === "Function") {
|
|
1149
1149
|
const t = e();
|
|
1150
1150
|
if (xr(t))
|
|
1151
1151
|
throw Ue(je.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1152
|
-
return
|
|
1152
|
+
return Rt = t;
|
|
1153
1153
|
} else
|
|
1154
1154
|
throw Ue(je.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1155
1155
|
} else
|
|
@@ -1162,7 +1162,7 @@ function Us(e, t, n) {
|
|
|
1162
1162
|
])];
|
|
1163
1163
|
}
|
|
1164
1164
|
function Hn(e, t, n) {
|
|
1165
|
-
const r = Z(n) ? n :
|
|
1165
|
+
const r = Z(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) {
|
|
@@ -1177,7 +1177,7 @@ function Hn(e, t, n) {
|
|
|
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 && ve(r); l++) {
|
|
1181
1181
|
const a = t[l];
|
|
1182
1182
|
Z(a) && (r = Vs(e, t[l], n));
|
|
1183
1183
|
}
|
|
@@ -1395,45 +1395,45 @@ function Xs(e) {
|
|
|
1395
1395
|
}
|
|
1396
1396
|
return "i";
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1398
|
+
function Ys(e) {
|
|
1399
1399
|
const t = e.trim();
|
|
1400
1400
|
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Gs(t) ? Zs(t) : "*" + t;
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1402
|
+
function Bs(e) {
|
|
1403
1403
|
const t = [];
|
|
1404
|
-
let n = -1, r = 0, l = 0, a, m, u, i, g,
|
|
1405
|
-
const
|
|
1406
|
-
|
|
1404
|
+
let n = -1, r = 0, l = 0, a, m, u, i, g, y, T;
|
|
1405
|
+
const N = [];
|
|
1406
|
+
N[
|
|
1407
1407
|
0
|
|
1408
1408
|
/* Actions.APPEND */
|
|
1409
1409
|
] = () => {
|
|
1410
1410
|
m === void 0 ? m = u : m += u;
|
|
1411
|
-
},
|
|
1411
|
+
}, N[
|
|
1412
1412
|
1
|
|
1413
1413
|
/* Actions.PUSH */
|
|
1414
1414
|
] = () => {
|
|
1415
1415
|
m !== void 0 && (t.push(m), m = void 0);
|
|
1416
|
-
},
|
|
1416
|
+
}, N[
|
|
1417
1417
|
2
|
|
1418
1418
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1419
1419
|
] = () => {
|
|
1420
|
-
|
|
1420
|
+
N[
|
|
1421
1421
|
0
|
|
1422
1422
|
/* Actions.APPEND */
|
|
1423
1423
|
](), l++;
|
|
1424
|
-
},
|
|
1424
|
+
}, N[
|
|
1425
1425
|
3
|
|
1426
1426
|
/* Actions.PUSH_SUB_PATH */
|
|
1427
1427
|
] = () => {
|
|
1428
1428
|
if (l > 0)
|
|
1429
|
-
l--, r = 4,
|
|
1429
|
+
l--, r = 4, N[
|
|
1430
1430
|
0
|
|
1431
1431
|
/* Actions.APPEND */
|
|
1432
1432
|
]();
|
|
1433
1433
|
else {
|
|
1434
|
-
if (l = 0, m === void 0 || (m =
|
|
1434
|
+
if (l = 0, m === void 0 || (m = Ys(m), m === !1))
|
|
1435
1435
|
return !1;
|
|
1436
|
-
|
|
1436
|
+
N[
|
|
1437
1437
|
1
|
|
1438
1438
|
/* Actions.PUSH */
|
|
1439
1439
|
]();
|
|
@@ -1442,28 +1442,28 @@ function Ys(e) {
|
|
|
1442
1442
|
function F() {
|
|
1443
1443
|
const w = e[n + 1];
|
|
1444
1444
|
if (r === 5 && w === "'" || r === 6 && w === '"')
|
|
1445
|
-
return n++, u = "\\" + 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 = Xs(a), T = Ze[r], g = T[i] || T.l || 8, g === 8 || (r = g[0], g[1] !== void 0 && (
|
|
1452
|
+
if (i = Xs(a), T = Ze[r], g = T[i] || T.l || 8, g === 8 || (r = g[0], g[1] !== void 0 && (y = N[g[1]], y && (u = a, y() === !1))))
|
|
1453
1453
|
return;
|
|
1454
1454
|
if (r === 7)
|
|
1455
1455
|
return t;
|
|
1456
1456
|
}
|
|
1457
1457
|
}
|
|
1458
|
-
const
|
|
1458
|
+
const pn = /* @__PURE__ */ new Map();
|
|
1459
1459
|
function Hs(e, t) {
|
|
1460
1460
|
return te(e) ? e[t] : null;
|
|
1461
1461
|
}
|
|
1462
|
-
function
|
|
1462
|
+
function $s(e, t) {
|
|
1463
1463
|
if (!te(e))
|
|
1464
1464
|
return null;
|
|
1465
|
-
let n =
|
|
1466
|
-
if (n || (n =
|
|
1465
|
+
let n = pn.get(t);
|
|
1466
|
+
if (n || (n = Bs(t), n && pn.set(t, n)), !n)
|
|
1467
1467
|
return null;
|
|
1468
1468
|
const r = n.length;
|
|
1469
1469
|
let l = e, a = 0;
|
|
@@ -1475,21 +1475,21 @@ function Js(e, t) {
|
|
|
1475
1475
|
}
|
|
1476
1476
|
return l;
|
|
1477
1477
|
}
|
|
1478
|
-
const
|
|
1478
|
+
const Js = "10.0.5", Ot = -1, Nt = "en-US", vn = "", hn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1479
1479
|
function Ks() {
|
|
1480
1480
|
return {
|
|
1481
1481
|
upper: (e, t) => t === "text" && Z(e) ? e.toUpperCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1482
1482
|
lower: (e, t) => t === "text" && Z(e) ? e.toLowerCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1483
|
-
capitalize: (e, t) => t === "text" && Z(e) ?
|
|
1483
|
+
capitalize: (e, t) => t === "text" && Z(e) ? hn(e) : t === "vnode" && te(e) && "__v_isVNode" in e ? hn(e.children) : e
|
|
1484
1484
|
};
|
|
1485
1485
|
}
|
|
1486
|
-
let
|
|
1486
|
+
let $n;
|
|
1487
1487
|
function zs(e) {
|
|
1488
|
-
|
|
1488
|
+
$n = e;
|
|
1489
1489
|
}
|
|
1490
|
-
let
|
|
1490
|
+
let Jn;
|
|
1491
1491
|
function Qs(e) {
|
|
1492
|
-
|
|
1492
|
+
Jn = e;
|
|
1493
1493
|
}
|
|
1494
1494
|
let Kn;
|
|
1495
1495
|
function qs(e) {
|
|
@@ -1505,7 +1505,7 @@ const bn = (e) => {
|
|
|
1505
1505
|
}, no = () => Qn;
|
|
1506
1506
|
let gn = 0;
|
|
1507
1507
|
function ro(e = {}) {
|
|
1508
|
-
const t = de(e.onWarn) ? e.onWarn : Gr, n = Z(e.version) ? e.version :
|
|
1508
|
+
const t = de(e.onWarn) ? e.onWarn : Gr, n = Z(e.version) ? e.version : Js, r = Z(e.locale) || de(e.locale) ? e.locale : Nt, l = de(r) ? Nt : r, a = be(e.fallbackLocale) || ee(e.fallbackLocale) || Z(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, m = ee(e.messages) ? e.messages : kt(l), u = ee(e.datetimeFormats) ? e.datetimeFormats : kt(l), i = ee(e.numberFormats) ? e.numberFormats : kt(l), g = Ie(oe(), e.modifiers, Ks()), y = e.pluralRules || oe(), T = de(e.missing) ? e.missing : null, N = ve(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, F = ve(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, w = !!e.fallbackFormat, L = !!e.unresolving, D = de(e.postTranslation) ? e.postTranslation : null, f = ee(e.processor) ? e.processor : null, h = ve(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, c = de(e.messageCompiler) ? e.messageCompiler : $n, b = de(e.messageResolver) ? e.messageResolver : Jn || Hs, I = de(e.localeFallbacker) ? e.localeFallbacker : Kn || Us, p = te(e.fallbackContext) ? e.fallbackContext : void 0, k = e, A = te(k.__datetimeFormatters) ? k.__datetimeFormatters : /* @__PURE__ */ new Map(), B = te(k.__numberFormatters) ? k.__numberFormatters : /* @__PURE__ */ new Map(), x = te(k.__meta) ? k.__meta : {};
|
|
1509
1509
|
gn++;
|
|
1510
1510
|
const d = {
|
|
1511
1511
|
version: n,
|
|
@@ -1514,26 +1514,26 @@ function ro(e = {}) {
|
|
|
1514
1514
|
fallbackLocale: a,
|
|
1515
1515
|
messages: m,
|
|
1516
1516
|
modifiers: g,
|
|
1517
|
-
pluralRules:
|
|
1517
|
+
pluralRules: y,
|
|
1518
1518
|
missing: T,
|
|
1519
|
-
missingWarn:
|
|
1519
|
+
missingWarn: N,
|
|
1520
1520
|
fallbackWarn: F,
|
|
1521
1521
|
fallbackFormat: w,
|
|
1522
1522
|
unresolving: L,
|
|
1523
1523
|
postTranslation: D,
|
|
1524
1524
|
processor: f,
|
|
1525
|
-
warnHtmlMessage:
|
|
1525
|
+
warnHtmlMessage: h,
|
|
1526
1526
|
escapeParameter: S,
|
|
1527
1527
|
messageCompiler: c,
|
|
1528
1528
|
messageResolver: b,
|
|
1529
1529
|
localeFallbacker: I,
|
|
1530
|
-
fallbackContext:
|
|
1530
|
+
fallbackContext: p,
|
|
1531
1531
|
onWarn: t,
|
|
1532
1532
|
__meta: x
|
|
1533
1533
|
};
|
|
1534
|
-
return d.datetimeFormats = u, d.numberFormats = i, d.__datetimeFormatters = A, d.__numberFormatters =
|
|
1534
|
+
return d.datetimeFormats = u, d.numberFormats = i, d.__datetimeFormatters = A, d.__numberFormatters = B, __INTLIFY_PROD_DEVTOOLS__ && Ds(d, n, x), d;
|
|
1535
1535
|
}
|
|
1536
|
-
const
|
|
1536
|
+
const kt = (e) => ({ [e]: oe() });
|
|
1537
1537
|
function Qt(e, t, n, r, l) {
|
|
1538
1538
|
const { missing: a, onWarn: m } = e;
|
|
1539
1539
|
if (a !== null) {
|
|
@@ -1559,9 +1559,9 @@ 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: m } = e, { __datetimeFormatters: u } = e, [i, g,
|
|
1563
|
-
|
|
1564
|
-
const F = !!
|
|
1562
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: m } = e, { __datetimeFormatters: u } = e, [i, g, y, T] = jt(...t), N = ve(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1563
|
+
ve(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1564
|
+
const F = !!y.part, w = zt(e, y), L = m(
|
|
1565
1565
|
e,
|
|
1566
1566
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1567
1567
|
l,
|
|
@@ -1569,16 +1569,16 @@ function In(e, ...t) {
|
|
|
1569
1569
|
);
|
|
1570
1570
|
if (!Z(i) || i === "")
|
|
1571
1571
|
return new Intl.DateTimeFormat(w, T).format(g);
|
|
1572
|
-
let D = {}, f,
|
|
1572
|
+
let D = {}, f, h = null;
|
|
1573
1573
|
const S = "datetime format";
|
|
1574
|
-
for (let I = 0; I < L.length && (f = L[I], D = n[f] || {},
|
|
1575
|
-
Qt(e, i, f,
|
|
1576
|
-
if (!ee(
|
|
1574
|
+
for (let I = 0; I < L.length && (f = L[I], D = n[f] || {}, h = D[i], !ee(h)); I++)
|
|
1575
|
+
Qt(e, i, f, N, S);
|
|
1576
|
+
if (!ee(h) || !Z(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({}, h, T)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1582
1582
|
}
|
|
1583
1583
|
const qn = [
|
|
1584
1584
|
"localeMatcher",
|
|
@@ -1628,17 +1628,17 @@ function jt(...e) {
|
|
|
1628
1628
|
qn.includes(i) ? m[i] = n[i] : a[i] = n[i];
|
|
1629
1629
|
}), Z(r) ? a.locale = r : ee(r) && (m = r), ee(l) && (m = l), [a.key || "", u, a, m];
|
|
1630
1630
|
}
|
|
1631
|
-
function
|
|
1631
|
+
function yn(e, t, n) {
|
|
1632
1632
|
const r = e;
|
|
1633
1633
|
for (const l in n) {
|
|
1634
1634
|
const a = `${t}__${l}`;
|
|
1635
1635
|
r.__datetimeFormatters.has(a) && r.__datetimeFormatters.delete(a);
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
1638
|
-
function
|
|
1639
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: m } = e, { __numberFormatters: u } = e, [i, g,
|
|
1640
|
-
|
|
1641
|
-
const F = !!
|
|
1638
|
+
function En(e, ...t) {
|
|
1639
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: m } = e, { __numberFormatters: u } = e, [i, g, y, T] = Ut(...t), N = ve(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1640
|
+
ve(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1641
|
+
const F = !!y.part, w = zt(e, y), L = m(
|
|
1642
1642
|
e,
|
|
1643
1643
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1644
1644
|
l,
|
|
@@ -1646,16 +1646,16 @@ function yn(e, ...t) {
|
|
|
1646
1646
|
);
|
|
1647
1647
|
if (!Z(i) || i === "")
|
|
1648
1648
|
return new Intl.NumberFormat(w, T).format(g);
|
|
1649
|
-
let D = {}, f,
|
|
1649
|
+
let D = {}, f, h = null;
|
|
1650
1650
|
const S = "number format";
|
|
1651
|
-
for (let I = 0; I < L.length && (f = L[I], D = n[f] || {},
|
|
1652
|
-
Qt(e, i, f,
|
|
1653
|
-
if (!ee(
|
|
1651
|
+
for (let I = 0; I < L.length && (f = L[I], D = n[f] || {}, h = D[i], !ee(h)); I++)
|
|
1652
|
+
Qt(e, i, f, N, S);
|
|
1653
|
+
if (!ee(h) || !Z(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({}, h, T)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1659
1659
|
}
|
|
1660
1660
|
const er = [
|
|
1661
1661
|
"localeMatcher",
|
|
@@ -1689,15 +1689,15 @@ function Ut(...e) {
|
|
|
1689
1689
|
er.includes(i) ? m[i] = n[i] : a[i] = n[i];
|
|
1690
1690
|
}), Z(r) ? a.locale = r : ee(r) && (m = r), ee(l) && (m = l), [a.key || "", u, a, m];
|
|
1691
1691
|
}
|
|
1692
|
-
function
|
|
1692
|
+
function Nn(e, t, n) {
|
|
1693
1693
|
const r = e;
|
|
1694
1694
|
for (const l in n) {
|
|
1695
1695
|
const a = `${t}__${l}`;
|
|
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 ? "" :
|
|
1700
|
-
function
|
|
1699
|
+
const ao = (e) => e, lo = (e) => "", io = "text", co = (e) => e.length === 0 ? "" : $t(e), uo = Wr;
|
|
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
|
}
|
|
1703
1703
|
function mo(e) {
|
|
@@ -1708,87 +1708,87 @@ 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) && Z(t) && de(e.pluralRules[t]) ? e.pluralRules[t] :
|
|
1711
|
+
const t = e.locale, n = mo(e), r = te(e.pluralRules) && Z(t) && de(e.pluralRules[t]) ? e.pluralRules[t] : Cn, l = te(e.pluralRules) && Z(t) && de(e.pluralRules[t]) ? Cn : void 0, a = (f) => f[r(n, f.length, l)], m = e.list || [], u = (f) => m[f], i = e.named || oe();
|
|
1712
1712
|
ge(e.pluralIndex) && fo(n, i);
|
|
1713
1713
|
const g = (f) => i[f];
|
|
1714
|
-
function
|
|
1715
|
-
const S = de(e.messages) ? e.messages(f, !!
|
|
1714
|
+
function y(f, h) {
|
|
1715
|
+
const S = de(e.messages) ? e.messages(f, !!h) : te(e.messages) ? e.messages[f] : !1;
|
|
1716
1716
|
return S || (e.parent ? e.parent.message(f) : lo);
|
|
1717
1717
|
}
|
|
1718
|
-
const T = (f) => e.modifiers ? e.modifiers[f] : ao,
|
|
1718
|
+
const T = (f) => e.modifiers ? e.modifiers[f] : ao, N = ee(e.processor) && de(e.processor.normalize) ? e.processor.normalize : co, F = ee(e.processor) && de(e.processor.interpolate) ? e.processor.interpolate : uo, w = ee(e.processor) && Z(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, ...h) => {
|
|
1723
|
+
const [S, c] = h;
|
|
1724
1724
|
let b = "text", I = "";
|
|
1725
|
-
|
|
1726
|
-
const
|
|
1725
|
+
h.length === 1 ? te(S) ? (I = S.modifier || I, b = S.type || b) : Z(S) && (I = S || I) : h.length === 2 && (Z(S) && (I = S || I), Z(c) && (b = c || b));
|
|
1726
|
+
const p = y(f, !0)(D), k = (
|
|
1727
1727
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1728
|
-
b === "vnode" && be(
|
|
1728
|
+
b === "vnode" && be(p) && I ? p[0] : p
|
|
1729
1729
|
);
|
|
1730
|
-
return I ? T(I)(
|
|
1730
|
+
return I ? T(I)(k, b) : k;
|
|
1731
1731
|
},
|
|
1732
|
-
message:
|
|
1732
|
+
message: y,
|
|
1733
1733
|
type: w,
|
|
1734
1734
|
interpolate: F,
|
|
1735
|
-
normalize:
|
|
1735
|
+
normalize: N,
|
|
1736
1736
|
values: Ie(oe(), m, i)
|
|
1737
1737
|
};
|
|
1738
1738
|
return D;
|
|
1739
1739
|
}
|
|
1740
1740
|
const Tn = () => "", Te = (e) => de(e);
|
|
1741
1741
|
function On(e, ...t) {
|
|
1742
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale: m, messages: u } = e, [i, g] = Vt(...t),
|
|
1743
|
-
|
|
1744
|
-
let [f,
|
|
1742
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale: m, messages: u } = e, [i, g] = Vt(...t), y = ve(g.missingWarn) ? g.missingWarn : e.missingWarn, T = ve(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, N = ve(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, F = !!g.resolvedMessage, w = Z(g.default) || ve(g.default) ? ve(g.default) ? a ? i : () => i : g.default : n ? a ? i : () => i : null, L = n || w != null && (Z(w) || de(w)), D = zt(e, g);
|
|
1743
|
+
N && po(g);
|
|
1744
|
+
let [f, h, S] = F ? [
|
|
1745
1745
|
i,
|
|
1746
1746
|
D,
|
|
1747
1747
|
u[D] || oe()
|
|
1748
|
-
] : tr(e, i, D, m, T,
|
|
1749
|
-
if (!F && !(Z(c) || ot(c) || Te(c)) && L && (c = w, b = c), !F && (!(Z(c) || ot(c) || Te(c)) || !Z(
|
|
1748
|
+
] : tr(e, i, D, m, T, y), c = f, b = i;
|
|
1749
|
+
if (!F && !(Z(c) || ot(c) || Te(c)) && L && (c = w, b = c), !F && (!(Z(c) || ot(c) || Te(c)) || !Z(h)))
|
|
1750
1750
|
return l ? Ot : i;
|
|
1751
1751
|
let I = !1;
|
|
1752
|
-
const
|
|
1752
|
+
const p = () => {
|
|
1753
1753
|
I = !0;
|
|
1754
|
-
},
|
|
1754
|
+
}, k = Te(c) ? c : nr(e, i, h, c, b, p);
|
|
1755
1755
|
if (I)
|
|
1756
1756
|
return c;
|
|
1757
|
-
const A = bo(e,
|
|
1757
|
+
const A = bo(e, h, S, g), B = _o(A), x = vo(e, k, B), d = r ? r(x, i) : x;
|
|
1758
1758
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1759
|
-
const
|
|
1759
|
+
const C = {
|
|
1760
1760
|
timestamp: Date.now(),
|
|
1761
1761
|
key: Z(i) ? i : Te(c) ? c.key : "",
|
|
1762
|
-
locale:
|
|
1762
|
+
locale: h || (Te(c) ? c.locale : ""),
|
|
1763
1763
|
format: Z(c) ? c : Te(c) ? c.source : "",
|
|
1764
1764
|
message: d
|
|
1765
1765
|
};
|
|
1766
|
-
|
|
1766
|
+
C.meta = Ie({}, e.__meta, /* @__PURE__ */ to() || {}), Fs(C);
|
|
1767
1767
|
}
|
|
1768
1768
|
return d;
|
|
1769
1769
|
}
|
|
1770
|
-
function
|
|
1770
|
+
function po(e) {
|
|
1771
1771
|
be(e.list) ? e.list = e.list.map((t) => Z(t) ? ln(t) : t) : te(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1772
1772
|
Z(e.named[t]) && (e.named[t] = ln(e.named[t]));
|
|
1773
1773
|
});
|
|
1774
1774
|
}
|
|
1775
1775
|
function tr(e, t, n, r, l, a) {
|
|
1776
|
-
const { messages: m, onWarn: u, messageResolver: i, localeFallbacker: g } = e,
|
|
1777
|
-
let T = oe(),
|
|
1776
|
+
const { messages: m, onWarn: u, messageResolver: i, localeFallbacker: g } = e, y = g(e, r, n);
|
|
1777
|
+
let T = oe(), N, F = null;
|
|
1778
1778
|
const w = "translate";
|
|
1779
|
-
for (let L = 0; L <
|
|
1780
|
-
if (!oo(
|
|
1779
|
+
for (let L = 0; L < y.length && (N = y[L], T = m[N] || oe(), (F = i(T, t)) === null && (F = T[t]), !(Z(F) || ot(F) || Te(F))); L++)
|
|
1780
|
+
if (!oo(N, y)) {
|
|
1781
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
|
-
return [F,
|
|
1791
|
+
return [F, N, T];
|
|
1792
1792
|
}
|
|
1793
1793
|
function nr(e, t, n, r, l, a) {
|
|
1794
1794
|
const { messageCompiler: m, warnHtmlMessage: u } = e;
|
|
@@ -1800,10 +1800,10 @@ function nr(e, t, n, r, l, a) {
|
|
|
1800
1800
|
const g = () => r;
|
|
1801
1801
|
return g.locale = n, g.key = t, g;
|
|
1802
1802
|
}
|
|
1803
|
-
const i = m(r,
|
|
1803
|
+
const i = m(r, ho(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 vo(e, t, n) {
|
|
1807
1807
|
return t(n);
|
|
1808
1808
|
}
|
|
1809
1809
|
function Vt(...e) {
|
|
@@ -1811,9 +1811,9 @@ function Vt(...e) {
|
|
|
1811
1811
|
if (!Z(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 : Z(n) ? l.default = n : ee(n) && !
|
|
1814
|
+
return ge(n) ? l.plural = n : Z(n) ? l.default = n : ee(n) && !Ct(n) ? l.named = n : be(n) && (l.list = n), ge(r) ? l.plural = r : Z(r) ? l.default = r : ee(r) && Ie(l, r), [a, l];
|
|
1815
1815
|
}
|
|
1816
|
-
function
|
|
1816
|
+
function ho(e, t, n, r, l, a) {
|
|
1817
1817
|
return {
|
|
1818
1818
|
locale: t,
|
|
1819
1819
|
key: n,
|
|
@@ -1825,15 +1825,15 @@ function vo(e, t, n, r, l, a) {
|
|
|
1825
1825
|
};
|
|
1826
1826
|
}
|
|
1827
1827
|
function bo(e, t, n, r) {
|
|
1828
|
-
const { modifiers: l, pluralRules: a, messageResolver: m, fallbackLocale: u, fallbackWarn: i, missingWarn: g, fallbackContext:
|
|
1828
|
+
const { modifiers: l, pluralRules: a, messageResolver: m, fallbackLocale: u, fallbackWarn: i, missingWarn: g, fallbackContext: y } = e, N = {
|
|
1829
1829
|
locale: t,
|
|
1830
1830
|
modifiers: l,
|
|
1831
1831
|
pluralRules: a,
|
|
1832
1832
|
messages: (F, w) => {
|
|
1833
1833
|
let L = m(n, F);
|
|
1834
|
-
if (L == null && (
|
|
1834
|
+
if (L == null && (y || w)) {
|
|
1835
1835
|
const [, , D] = tr(
|
|
1836
|
-
|
|
1836
|
+
y || e,
|
|
1837
1837
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1838
1838
|
F,
|
|
1839
1839
|
t,
|
|
@@ -1845,20 +1845,20 @@ function bo(e, t, n, r) {
|
|
|
1845
1845
|
}
|
|
1846
1846
|
if (Z(L) || ot(L)) {
|
|
1847
1847
|
let D = !1;
|
|
1848
|
-
const
|
|
1848
|
+
const h = nr(e, F, t, L, F, () => {
|
|
1849
1849
|
D = !0;
|
|
1850
1850
|
});
|
|
1851
|
-
return D ? Tn :
|
|
1851
|
+
return D ? Tn : h;
|
|
1852
1852
|
} else return Te(L) ? L : Tn;
|
|
1853
1853
|
}
|
|
1854
1854
|
};
|
|
1855
|
-
return e.processor && (
|
|
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_78398f08-cbe4-4872-9c49-a3c11a87da46", 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_78398f08-cbe4-4872-9c49-a3c11a87da46", 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: "1893", ACTIONS_ORCHESTRATION_ID: "b7a84d5a-5c6f-418e-b20a-be35a191e7be.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_78398f08-cbe4-4872-9c49-a3c11a87da46", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:13606", 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: "38694661714", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "6745f98b3c2bf79eea5bfe2e9906df3543111c97", 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.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9LREktNTA4Ni1ocm0tc2NoZWR1bGVcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTIwNjkxMjIsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MjA0NjkyMiwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjhlZDNhNDJlLWNkOWUtNWFkZC1hMWM2LWZhYTMxYTk5OGIxNSIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiMDlmNzZkOGFjNWU2YTA3MDc1NDI3NDllMWQ1Njg3YmYxZWFkNWYyYyIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MjA0NjYyMiwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJZeVQ3Nzg2XCIsXCJhY3Rvcl9pZFwiOlwiOTcwMDMxMjVcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiMTE2Mjg4MzE3MzMyXCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluXCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCIwOWY3NmQ4YWM1ZTZhMDcwNzU0Mjc0OWUxZDU2ODdiZjFlYWQ1ZjJjXCIsXCJyZWZcIjpcInJlZnMvaGVhZHMvS0RJLTUwODYtaHJtLXNjaGVkdWxlXCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjM4Njk0NjYxNzE0XCIsXCJydW5fbnVtYmVyXCI6XCIyMDVcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCI2NzQ1Zjk4YjNjMmJmNzllZWE1YmZlMmU5OTA2ZGYzNTQzMTExYzk3XCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy9LREktNTA4Ni1ocm0tc2NoZWR1bGVcIixcIndvcmtmbG93X3NoYVwiOlwiNjc0NWY5OGIzYzJiZjc5ZWVhNWJmZTJlOTkwNmRmMzU0MzExMWM5N1wifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvaHJtLXNlcnZpY2U6cmVmOnJlZnMvaGVhZHMvS0RJLTUwODYtaHJtLXNjaGVkdWxlIiwib3JjaF9pZCI6ImI3YTg0ZDVhLTVjNmYtNDE4ZS1iMjBhLWJlMzVhMTkxZTdiZS5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiYjdhODRkNWEtNWM2Zi00MThlLWIyMGEtYmUzNWExOTFlN2JlIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMzg2OTQ2NjE3MTQiLCJydW5fbnVtYmVyIjoiMjA1IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDE5OTEzMSIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOmI3YTg0ZDVhLTVjNmYtNDE4ZS1iMjBhLWJlMzVhMTkxZTdiZTo4ZWQzYTQyZS1jZDllLTVhZGQtYTFjNi1mYWEzMWE5OThiMTUgQWN0aW9ucy5SdW5uZXI6YjdhODRkNWEtNWM2Zi00MThlLWIyMGEtYmUzNWExOTFlN2JlOjhlZDNhNDJlLWNkOWUtNWFkZC1hMWM2LWZhYTMxYTk5OGIxNSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czpiN2E4NGQ1YS01YzZmLTQxOGUtYjIwYS1iZTM1YTE5MWU3YmU6OGVkM2E0MmUtY2Q5ZS01YWRkLWExYzYtZmFhMzFhOTk4YjE1IGdlbmVyYXRlX2lkX3Rva2VuOmI3YTg0ZDVhLTVjNmYtNDE4ZS1iMjBhLWJlMzVhMTkxZTdiZTo4ZWQzYTQyZS1jZDllLTVhZGQtYTFjNi1mYWEzMWE5OThiMTUgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiI2NzQ1Zjk4YjNjMmJmNzllZWE1YmZlMmU5OTA2ZGYzNTQzMTExYzk3IiwidHJ1c3RfdGllciI6IjEifQ.NU-sjk5XgWKmEEgauQ6lCFzAqBA4qejWKrMbO8-HJvntcAJ8S6oMfx1J8U-snqkpMRR9mt_-1gwZXpPwIA0sL8CMnsnsAH6Hw2D8p7nN5XDed43ooPrc4d3uQ8F55wE56b9A5MDhsqZr3z5DLkeuKg7KXHbXC-dIneUspc9fdOzWZqya8HHJL8jryXZkZ0AU9o6uWO-xfuih02JN7pd6zB7Oy5ORc-in63P4M_nhcRu7SRyomgMpUCJSn4lqOmUnL_9iobtU2itvQNh42EHUvgF9FwzGcgboq-a5osUNvC8fxoHeKjQNlmP4-gZkIBsl1WqR9fsG0DHiIoAGBDzALw", 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_22906b56-b190-4648-8fa3-76e84cb049e0", INVOCATION_ID: "4f62a14459e54e6393d00e41a0f094c3", 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: "205", GITHUB_TRIGGERING_ACTOR: "YyT7786", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000199131", 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.21", 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: "6745f98b3c2bf79eea5bfe2e9906df3543111c97", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/KDI-5086-hrm-schedule", GITHUB_ACTOR: "YyT7786", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_78398f08-cbe4-4872-9c49-a3c11a87da46", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "97003125", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/267//idtoken/b7a84d5a-5c6f-418e-b20a-be35a191e7be/8ed3a42e-cd9e-5add-a1c6-faa31a998b15?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_78398f08-cbe4-4872-9c49-a3c11a87da46", 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_78398f08-cbe4-4872-9c49-a3c11a87da46", 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_78398f08-cbe4-4872-9c49-a3c11a87da46", 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_0f519f67-7dbb-4103-ba2c-0a3942efc239", 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_0f519f67-7dbb-4103-ba2c-0a3942efc239", 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: "1871", ACTIONS_ORCHESTRATION_ID: "e474ef98-1aa5-4fcf-a5bf-aacfdf4d1096.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_0f519f67-7dbb-4103-ba2c-0a3942efc239", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:13133", 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: "38700091594", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "ecfc7438ca70b3dc0f3f076316ce63d63b2ec682", 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.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9LREktNTA4Ni1ocm0tc2NoZWR1bGVcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTIwNzIxMDIsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MjA0OTkwMiwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImM4MzA4MTgyLWQxNjUtNTQ2OC05OTVlLTcyOGZjYjQ4MWFjYyIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiMDlmNzZkOGFjNWU2YTA3MDc1NDI3NDllMWQ1Njg3YmYxZWFkNWYyYyIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MjA0OTYwMiwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJZeVQ3Nzg2XCIsXCJhY3Rvcl9pZFwiOlwiOTcwMDMxMjVcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiMTE2MzA1OTI1MjEzXCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluXCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCIwOWY3NmQ4YWM1ZTZhMDcwNzU0Mjc0OWUxZDU2ODdiZjFlYWQ1ZjJjXCIsXCJyZWZcIjpcInJlZnMvaGVhZHMvS0RJLTUwODYtaHJtLXNjaGVkdWxlXCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjM4NzAwMDkxNTk0XCIsXCJydW5fbnVtYmVyXCI6XCIyMDZcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCJlY2ZjNzQzOGNhNzBiM2RjMGYzZjA3NjMxNmNlNjNkNjNiMmVjNjgyXCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy9LREktNTA4Ni1ocm0tc2NoZWR1bGVcIixcIndvcmtmbG93X3NoYVwiOlwiZWNmYzc0MzhjYTcwYjNkYzBmM2YwNzYzMTZjZTYzZDYzYjJlYzY4MlwifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvaHJtLXNlcnZpY2U6cmVmOnJlZnMvaGVhZHMvS0RJLTUwODYtaHJtLXNjaGVkdWxlIiwib3JjaF9pZCI6ImU0NzRlZjk4LTFhYTUtNGZjZi1hNWJmLWFhY2ZkZjRkMTA5Ni5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiZTQ3NGVmOTgtMWFhNS00ZmNmLWE1YmYtYWFjZmRmNGQxMDk2IiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMzg3MDAwOTE1OTQiLCJydW5fbnVtYmVyIjoiMjA2IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDE5OTQxNyIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOmU0NzRlZjk4LTFhYTUtNGZjZi1hNWJmLWFhY2ZkZjRkMTA5NjpjODMwODE4Mi1kMTY1LTU0NjgtOTk1ZS03MjhmY2I0ODFhY2MgQWN0aW9ucy5SdW5uZXI6ZTQ3NGVmOTgtMWFhNS00ZmNmLWE1YmYtYWFjZmRmNGQxMDk2OmM4MzA4MTgyLWQxNjUtNTQ2OC05OTVlLTcyOGZjYjQ4MWFjYyBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czplNDc0ZWY5OC0xYWE1LTRmY2YtYTViZi1hYWNmZGY0ZDEwOTY6YzgzMDgxODItZDE2NS01NDY4LTk5NWUtNzI4ZmNiNDgxYWNjIGdlbmVyYXRlX2lkX3Rva2VuOmU0NzRlZjk4LTFhYTUtNGZjZi1hNWJmLWFhY2ZkZjRkMTA5NjpjODMwODE4Mi1kMTY1LTU0NjgtOTk1ZS03MjhmY2I0ODFhY2MgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiJlY2ZjNzQzOGNhNzBiM2RjMGYzZjA3NjMxNmNlNjNkNjNiMmVjNjgyIiwidHJ1c3RfdGllciI6IjEifQ.KxsVtZdoRpHtanLwjXTnq52sxWCW1kK-oBKHHX1XbdkO0Qc_LCciVcRDDuyZtZCB0HWt1a4Bvt1XRio7SfCR25XrZDqjLb-Q8s93eINGy9edhHMIzuOTEI-kxpBAwuuCUsoSHG69bwE0a4ipm8undxPZ8F6eAg7nvuHQySWxNjlJ6XIyAgitBUuDvVDL2JhOiDvu2YZCz1XlHpUx-w-mj6tfJzd_hu2Gx3Ry6sFSShZzoodxm1IU9K3o7mPP_LviztACkZ9dEqwRPrr505VSk_bnGiJO4teLk6aMo10Zaubnu4RVu6TTLXPXwRSfGPjKjbyMXPElg0SH8JF2hzHLAw", 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_3d760544-3f3a-4235-8b17-c5058614fa93", INVOCATION_ID: "b97174cd381045c29231d9b9954af4a4", 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: "206", GITHUB_TRIGGERING_ACTOR: "YyT7786", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000199417", 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.22", 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: "ecfc7438ca70b3dc0f3f076316ce63d63b2ec682", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/KDI-5086-hrm-schedule", GITHUB_ACTOR: "YyT7786", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_0f519f67-7dbb-4103-ba2c-0a3942efc239", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "97003125", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/206//idtoken/e474ef98-1aa5-4fcf-a5bf-aacfdf4d1096/c8308182-d165-5468-995e-728fcb481acc?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_0f519f67-7dbb-4103-ba2c-0a3942efc239", 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_0f519f67-7dbb-4103-ba2c-0a3942efc239", 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_0f519f67-7dbb-4103-ba2c-0a3942efc239", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1859
1859
|
const Io = "10.0.5";
|
|
1860
|
-
function
|
|
1861
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
1860
|
+
function yo() {
|
|
1861
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Be().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Be().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Be().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Be().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1862
1862
|
}
|
|
1863
1863
|
const at = {
|
|
1864
1864
|
// composer module errors
|
|
@@ -1876,7 +1876,7 @@ const at = {
|
|
|
1876
1876
|
function ut(e, ...t) {
|
|
1877
1877
|
return Tt(e, null, void 0);
|
|
1878
1878
|
}
|
|
1879
|
-
const xt = /* @__PURE__ */
|
|
1879
|
+
const xt = /* @__PURE__ */ $e("__translateVNode"), Wt = /* @__PURE__ */ $e("__datetimeParts"), Gt = /* @__PURE__ */ $e("__numberParts"), Eo = $e("__setPluralRules"), rr = /* @__PURE__ */ $e("__injectWithOption"), Zt = /* @__PURE__ */ $e("__dispose");
|
|
1880
1880
|
function mt(e) {
|
|
1881
1881
|
if (!te(e))
|
|
1882
1882
|
return e;
|
|
@@ -1903,9 +1903,9 @@ function sr(e, t) {
|
|
|
1903
1903
|
if (be(r) && r.forEach((u) => {
|
|
1904
1904
|
if ("locale" in u && "resource" in u) {
|
|
1905
1905
|
const { locale: i, resource: g } = u;
|
|
1906
|
-
i ? (m[i] = m[i] || oe(),
|
|
1906
|
+
i ? (m[i] = m[i] || oe(), yt(g, m[i])) : yt(g, m);
|
|
1907
1907
|
} else
|
|
1908
|
-
Z(u) &&
|
|
1908
|
+
Z(u) && yt(JSON.parse(u), m);
|
|
1909
1909
|
}), l == null && a)
|
|
1910
1910
|
for (const u in m)
|
|
1911
1911
|
Ae(m, u) && mt(m[u]);
|
|
@@ -1914,7 +1914,7 @@ function sr(e, t) {
|
|
|
1914
1914
|
function or(e) {
|
|
1915
1915
|
return e.type;
|
|
1916
1916
|
}
|
|
1917
|
-
function
|
|
1917
|
+
function No(e, t, n) {
|
|
1918
1918
|
let r = te(t.messages) ? t.messages : oe();
|
|
1919
1919
|
"__i18nGlobal" in n && (r = sr(e.locale.value, {
|
|
1920
1920
|
messages: r,
|
|
@@ -1942,32 +1942,32 @@ function Co(e, t, n) {
|
|
|
1942
1942
|
function Sn(e) {
|
|
1943
1943
|
return ue(fr, null, e, 0);
|
|
1944
1944
|
}
|
|
1945
|
-
const An = "__INTLIFY_META__", Ln = () => [],
|
|
1946
|
-
let
|
|
1947
|
-
function
|
|
1948
|
-
return (t, n, r, l) => e(n, r,
|
|
1945
|
+
const An = "__INTLIFY_META__", Ln = () => [], Co = () => !1;
|
|
1946
|
+
let Rn = 0;
|
|
1947
|
+
function kn(e) {
|
|
1948
|
+
return (t, n, r, l) => e(n, r, Yt() || void 0, l);
|
|
1949
1949
|
}
|
|
1950
1950
|
const To = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1951
|
-
const e =
|
|
1951
|
+
const e = Yt();
|
|
1952
1952
|
let t = null;
|
|
1953
1953
|
return e && (t = or(e)[An]) ? { [An]: t } : null;
|
|
1954
1954
|
};
|
|
1955
1955
|
function Oo(e = {}) {
|
|
1956
1956
|
const { __root: t, __injectWithOption: n } = e, r = t === void 0, l = e.flatJson, a = on ? rt : mr;
|
|
1957
|
-
let m =
|
|
1957
|
+
let m = ve(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1958
1958
|
const u = a(
|
|
1959
1959
|
// prettier-ignore
|
|
1960
|
-
t && m ? t.locale.value : Z(e.locale) ? e.locale :
|
|
1960
|
+
t && m ? t.locale.value : Z(e.locale) ? e.locale : Nt
|
|
1961
1961
|
), i = a(
|
|
1962
1962
|
// prettier-ignore
|
|
1963
1963
|
t && m ? t.fallbackLocale.value : Z(e.fallbackLocale) || be(e.fallbackLocale) || ee(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
1964
|
-
), g = a(sr(u.value, e)),
|
|
1965
|
-
let
|
|
1964
|
+
), g = a(sr(u.value, e)), y = a(ee(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), T = a(ee(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
|
|
1965
|
+
let N = t ? t.missingWarn : ve(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, F = t ? t.fallbackWarn : ve(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, w = t ? t.fallbackRoot : ve(e.fallbackRoot) ? e.fallbackRoot : !0, L = !!e.fallbackFormat, D = de(e.missing) ? e.missing : null, f = de(e.missing) ? kn(e.missing) : null, h = de(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : ve(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, c = !!e.escapeParameter;
|
|
1966
1966
|
const b = t ? t.modifiers : ee(e.modifiers) ? e.modifiers : {};
|
|
1967
|
-
let I = e.pluralRules || t && t.pluralRules,
|
|
1968
|
-
|
|
1967
|
+
let I = e.pluralRules || t && t.pluralRules, p;
|
|
1968
|
+
p = (() => {
|
|
1969
1969
|
r && bn(null);
|
|
1970
|
-
const
|
|
1970
|
+
const v = {
|
|
1971
1971
|
version: Io,
|
|
1972
1972
|
locale: u.value,
|
|
1973
1973
|
fallbackLocale: i.value,
|
|
@@ -1975,191 +1975,191 @@ function Oo(e = {}) {
|
|
|
1975
1975
|
modifiers: b,
|
|
1976
1976
|
pluralRules: I,
|
|
1977
1977
|
missing: f === null ? void 0 : f,
|
|
1978
|
-
missingWarn:
|
|
1978
|
+
missingWarn: N,
|
|
1979
1979
|
fallbackWarn: F,
|
|
1980
1980
|
fallbackFormat: L,
|
|
1981
1981
|
unresolving: !0,
|
|
1982
|
-
postTranslation:
|
|
1982
|
+
postTranslation: h === null ? void 0 : h,
|
|
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
|
|
1991
|
-
return r && bn(
|
|
1992
|
-
})(), lt(
|
|
1989
|
+
v.datetimeFormats = y.value, v.numberFormats = T.value, v.__datetimeFormatters = ee(p) ? p.__datetimeFormatters : void 0, v.__numberFormatters = ee(p) ? p.__numberFormatters : void 0;
|
|
1990
|
+
const E = ro(v);
|
|
1991
|
+
return r && bn(E), E;
|
|
1992
|
+
})(), lt(p, u.value, i.value);
|
|
1993
1993
|
function A() {
|
|
1994
1994
|
return [
|
|
1995
1995
|
u.value,
|
|
1996
1996
|
i.value,
|
|
1997
1997
|
g.value,
|
|
1998
|
-
|
|
1998
|
+
y.value,
|
|
1999
1999
|
T.value
|
|
2000
2000
|
];
|
|
2001
2001
|
}
|
|
2002
|
-
const
|
|
2002
|
+
const B = z({
|
|
2003
2003
|
get: () => u.value,
|
|
2004
|
-
set: (
|
|
2005
|
-
u.value =
|
|
2004
|
+
set: (v) => {
|
|
2005
|
+
u.value = v, p.locale = u.value;
|
|
2006
2006
|
}
|
|
2007
2007
|
}), x = z({
|
|
2008
2008
|
get: () => i.value,
|
|
2009
|
-
set: (
|
|
2010
|
-
i.value =
|
|
2009
|
+
set: (v) => {
|
|
2010
|
+
i.value = v, p.fallbackLocale = i.value, lt(p, u.value, v);
|
|
2011
2011
|
}
|
|
2012
|
-
}), d = z(() => g.value),
|
|
2012
|
+
}), d = z(() => g.value), C = /* @__PURE__ */ z(() => y.value), U = /* @__PURE__ */ z(() => T.value);
|
|
2013
2013
|
function V() {
|
|
2014
|
-
return de(
|
|
2014
|
+
return de(h) ? h : null;
|
|
2015
2015
|
}
|
|
2016
|
-
function j(
|
|
2017
|
-
|
|
2016
|
+
function j(v) {
|
|
2017
|
+
h = v, p.postTranslation = v;
|
|
2018
2018
|
}
|
|
2019
2019
|
function G() {
|
|
2020
2020
|
return D;
|
|
2021
2021
|
}
|
|
2022
|
-
function W(
|
|
2023
|
-
|
|
2022
|
+
function W(v) {
|
|
2023
|
+
v !== null && (f = kn(v)), D = v, p.missing = f;
|
|
2024
2024
|
}
|
|
2025
|
-
const X = (
|
|
2025
|
+
const X = (v, E, $, le, Ye, dt) => {
|
|
2026
2026
|
A();
|
|
2027
2027
|
let ze;
|
|
2028
2028
|
try {
|
|
2029
|
-
go.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (
|
|
2029
|
+
go.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = t ? no() : void 0), ze = v(p);
|
|
2030
2030
|
} finally {
|
|
2031
|
-
__INTLIFY_PROD_DEVTOOLS__, r || (
|
|
2031
|
+
__INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = void 0);
|
|
2032
2032
|
}
|
|
2033
|
-
if (
|
|
2034
|
-
ge(ze) && ze === Ot ||
|
|
2035
|
-
const [cr,
|
|
2036
|
-
return t && w ? le(t) :
|
|
2033
|
+
if ($ !== "translate exists" && // for not `te` (e.g `t`)
|
|
2034
|
+
ge(ze) && ze === Ot || $ === "translate exists" && !ze) {
|
|
2035
|
+
const [cr, Ea] = E();
|
|
2036
|
+
return t && w ? le(t) : Ye(cr);
|
|
2037
2037
|
} else {
|
|
2038
2038
|
if (dt(ze))
|
|
2039
2039
|
return ze;
|
|
2040
2040
|
throw ut(at.UNEXPECTED_RETURN_TYPE);
|
|
2041
2041
|
}
|
|
2042
2042
|
};
|
|
2043
|
-
function
|
|
2044
|
-
return X((
|
|
2043
|
+
function Y(...v) {
|
|
2044
|
+
return X((E) => Reflect.apply(On, null, [E, ...v]), () => Vt(...v), "translate", (E) => Reflect.apply(E.t, E, [...v]), (E) => E, (E) => Z(E));
|
|
2045
2045
|
}
|
|
2046
|
-
function ne(...
|
|
2047
|
-
const [
|
|
2046
|
+
function ne(...v) {
|
|
2047
|
+
const [E, $, le] = v;
|
|
2048
2048
|
if (le && !te(le))
|
|
2049
2049
|
throw ut(at.INVALID_ARGUMENT);
|
|
2050
|
-
return
|
|
2050
|
+
return Y(E, $, Ie({ resolvedMessage: !0 }, le || {}));
|
|
2051
2051
|
}
|
|
2052
|
-
function Q(...
|
|
2053
|
-
return X((
|
|
2052
|
+
function Q(...v) {
|
|
2053
|
+
return X((E) => Reflect.apply(In, null, [E, ...v]), () => jt(...v), "datetime format", (E) => Reflect.apply(E.d, E, [...v]), () => vn, (E) => Z(E));
|
|
2054
2054
|
}
|
|
2055
|
-
function _e(...
|
|
2056
|
-
return X((
|
|
2055
|
+
function _e(...v) {
|
|
2056
|
+
return X((E) => Reflect.apply(En, null, [E, ...v]), () => Ut(...v), "number format", (E) => Reflect.apply(E.n, E, [...v]), () => vn, (E) => Z(E));
|
|
2057
2057
|
}
|
|
2058
|
-
function ce(
|
|
2059
|
-
return
|
|
2058
|
+
function ce(v) {
|
|
2059
|
+
return v.map((E) => Z(E) || ge(E) || ve(E) ? Sn(String(E)) : E);
|
|
2060
2060
|
}
|
|
2061
2061
|
const fe = {
|
|
2062
2062
|
normalize: ce,
|
|
2063
|
-
interpolate: (
|
|
2063
|
+
interpolate: (v) => v,
|
|
2064
2064
|
type: "vnode"
|
|
2065
2065
|
};
|
|
2066
|
-
function q(...
|
|
2067
|
-
return X((
|
|
2068
|
-
let
|
|
2069
|
-
const le =
|
|
2066
|
+
function q(...v) {
|
|
2067
|
+
return X((E) => {
|
|
2068
|
+
let $;
|
|
2069
|
+
const le = E;
|
|
2070
2070
|
try {
|
|
2071
|
-
le.processor = fe,
|
|
2071
|
+
le.processor = fe, $ = Reflect.apply(On, null, [le, ...v]);
|
|
2072
2072
|
} finally {
|
|
2073
2073
|
le.processor = null;
|
|
2074
2074
|
}
|
|
2075
|
-
return
|
|
2076
|
-
}, () => Vt(...
|
|
2075
|
+
return $;
|
|
2076
|
+
}, () => Vt(...v), "translate", (E) => E[xt](...v), (E) => [Sn(E)], (E) => be(E));
|
|
2077
2077
|
}
|
|
2078
|
-
function De(...
|
|
2079
|
-
return X((
|
|
2078
|
+
function De(...v) {
|
|
2079
|
+
return X((E) => Reflect.apply(En, null, [E, ...v]), () => Ut(...v), "number format", (E) => E[Gt](...v), Ln, (E) => Z(E) || be(E));
|
|
2080
2080
|
}
|
|
2081
|
-
function K(...
|
|
2082
|
-
return X((
|
|
2081
|
+
function K(...v) {
|
|
2082
|
+
return X((E) => Reflect.apply(In, null, [E, ...v]), () => jt(...v), "datetime format", (E) => E[Wt](...v), Ln, (E) => Z(E) || be(E));
|
|
2083
2083
|
}
|
|
2084
|
-
function
|
|
2085
|
-
I =
|
|
2084
|
+
function pe(v) {
|
|
2085
|
+
I = v, p.pluralRules = I;
|
|
2086
2086
|
}
|
|
2087
|
-
function
|
|
2087
|
+
function Je(v, E) {
|
|
2088
2088
|
return X(() => {
|
|
2089
|
-
if (!
|
|
2089
|
+
if (!v)
|
|
2090
2090
|
return !1;
|
|
2091
|
-
const
|
|
2092
|
-
return ot(
|
|
2093
|
-
}, () => [
|
|
2094
|
-
}
|
|
2095
|
-
function Ke(
|
|
2096
|
-
let
|
|
2097
|
-
const
|
|
2098
|
-
for (let le = 0; le <
|
|
2099
|
-
const
|
|
2091
|
+
const $ = Z(E) ? E : u.value, le = Fe($), Ye = p.messageResolver(le, v);
|
|
2092
|
+
return ot(Ye) || Te(Ye) || Z(Ye);
|
|
2093
|
+
}, () => [v], "translate exists", ($) => Reflect.apply($.te, $, [v, E]), Co, ($) => ve($));
|
|
2094
|
+
}
|
|
2095
|
+
function Ke(v) {
|
|
2096
|
+
let E = null;
|
|
2097
|
+
const $ = Hn(p, i.value, u.value);
|
|
2098
|
+
for (let le = 0; le < $.length; le++) {
|
|
2099
|
+
const Ye = g.value[$[le]] || {}, dt = p.messageResolver(Ye, v);
|
|
2100
2100
|
if (dt != null) {
|
|
2101
|
-
|
|
2101
|
+
E = dt;
|
|
2102
2102
|
break;
|
|
2103
2103
|
}
|
|
2104
2104
|
}
|
|
2105
|
-
return
|
|
2105
|
+
return E;
|
|
2106
2106
|
}
|
|
2107
|
-
function Ve(
|
|
2108
|
-
const
|
|
2109
|
-
return
|
|
2107
|
+
function Ve(v) {
|
|
2108
|
+
const E = Ke(v);
|
|
2109
|
+
return E ?? (t ? t.tm(v) || {} : {});
|
|
2110
2110
|
}
|
|
2111
|
-
function Fe(
|
|
2112
|
-
return g.value[
|
|
2111
|
+
function Fe(v) {
|
|
2112
|
+
return g.value[v] || {};
|
|
2113
2113
|
}
|
|
2114
|
-
function
|
|
2114
|
+
function Ce(v, E) {
|
|
2115
2115
|
if (l) {
|
|
2116
|
-
const
|
|
2117
|
-
for (const le in
|
|
2118
|
-
Ae(
|
|
2119
|
-
|
|
2116
|
+
const $ = { [v]: E };
|
|
2117
|
+
for (const le in $)
|
|
2118
|
+
Ae($, le) && mt($[le]);
|
|
2119
|
+
E = $[v];
|
|
2120
2120
|
}
|
|
2121
|
-
g.value[
|
|
2121
|
+
g.value[v] = E, p.messages = g.value;
|
|
2122
2122
|
}
|
|
2123
|
-
function Xe(
|
|
2124
|
-
g.value[
|
|
2125
|
-
const
|
|
2123
|
+
function Xe(v, E) {
|
|
2124
|
+
g.value[v] = g.value[v] || {};
|
|
2125
|
+
const $ = { [v]: E };
|
|
2126
2126
|
if (l)
|
|
2127
|
-
for (const le in
|
|
2128
|
-
Ae(
|
|
2129
|
-
|
|
2127
|
+
for (const le in $)
|
|
2128
|
+
Ae($, le) && mt($[le]);
|
|
2129
|
+
E = $[v], yt(E, g.value[v]), p.messages = g.value;
|
|
2130
2130
|
}
|
|
2131
|
-
function O(
|
|
2132
|
-
return
|
|
2131
|
+
function O(v) {
|
|
2132
|
+
return y.value[v] || {};
|
|
2133
2133
|
}
|
|
2134
|
-
function s(
|
|
2135
|
-
|
|
2134
|
+
function s(v, E) {
|
|
2135
|
+
y.value[v] = E, p.datetimeFormats = y.value, yn(p, v, E);
|
|
2136
2136
|
}
|
|
2137
|
-
function o(
|
|
2138
|
-
|
|
2137
|
+
function o(v, E) {
|
|
2138
|
+
y.value[v] = Ie(y.value[v] || {}, E), p.datetimeFormats = y.value, yn(p, v, E);
|
|
2139
2139
|
}
|
|
2140
|
-
function _(
|
|
2141
|
-
return T.value[
|
|
2140
|
+
function _(v) {
|
|
2141
|
+
return T.value[v] || {};
|
|
2142
2142
|
}
|
|
2143
|
-
function
|
|
2144
|
-
T.value[
|
|
2143
|
+
function R(v, E) {
|
|
2144
|
+
T.value[v] = E, p.numberFormats = T.value, Nn(p, v, E);
|
|
2145
2145
|
}
|
|
2146
|
-
function M(
|
|
2147
|
-
T.value[
|
|
2146
|
+
function M(v, E) {
|
|
2147
|
+
T.value[v] = Ie(T.value[v] || {}, E), p.numberFormats = T.value, Nn(p, v, E);
|
|
2148
2148
|
}
|
|
2149
|
-
|
|
2150
|
-
m && (u.value =
|
|
2151
|
-
}), wt(t.fallbackLocale, (
|
|
2152
|
-
m && (i.value =
|
|
2149
|
+
Rn++, t && on && (wt(t.locale, (v) => {
|
|
2150
|
+
m && (u.value = v, p.locale = v, lt(p, u.value, i.value));
|
|
2151
|
+
}), wt(t.fallbackLocale, (v) => {
|
|
2152
|
+
m && (i.value = v, p.fallbackLocale = v, lt(p, u.value, i.value));
|
|
2153
2153
|
}));
|
|
2154
2154
|
const P = {
|
|
2155
|
-
id:
|
|
2156
|
-
locale:
|
|
2155
|
+
id: Rn,
|
|
2156
|
+
locale: B,
|
|
2157
2157
|
fallbackLocale: x,
|
|
2158
2158
|
get inheritLocale() {
|
|
2159
2159
|
return m;
|
|
2160
2160
|
},
|
|
2161
|
-
set inheritLocale(
|
|
2162
|
-
m =
|
|
2161
|
+
set inheritLocale(v) {
|
|
2162
|
+
m = v, v && 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();
|
|
@@ -2175,52 +2175,52 @@ function Oo(e = {}) {
|
|
|
2175
2175
|
return r;
|
|
2176
2176
|
},
|
|
2177
2177
|
get missingWarn() {
|
|
2178
|
-
return
|
|
2178
|
+
return N;
|
|
2179
2179
|
},
|
|
2180
|
-
set missingWarn(
|
|
2181
|
-
|
|
2180
|
+
set missingWarn(v) {
|
|
2181
|
+
N = v, p.missingWarn = N;
|
|
2182
2182
|
},
|
|
2183
2183
|
get fallbackWarn() {
|
|
2184
2184
|
return F;
|
|
2185
2185
|
},
|
|
2186
|
-
set fallbackWarn(
|
|
2187
|
-
F =
|
|
2186
|
+
set fallbackWarn(v) {
|
|
2187
|
+
F = v, p.fallbackWarn = F;
|
|
2188
2188
|
},
|
|
2189
2189
|
get fallbackRoot() {
|
|
2190
2190
|
return w;
|
|
2191
2191
|
},
|
|
2192
|
-
set fallbackRoot(
|
|
2193
|
-
w =
|
|
2192
|
+
set fallbackRoot(v) {
|
|
2193
|
+
w = v;
|
|
2194
2194
|
},
|
|
2195
2195
|
get fallbackFormat() {
|
|
2196
2196
|
return L;
|
|
2197
2197
|
},
|
|
2198
|
-
set fallbackFormat(
|
|
2199
|
-
L =
|
|
2198
|
+
set fallbackFormat(v) {
|
|
2199
|
+
L = v, p.fallbackFormat = L;
|
|
2200
2200
|
},
|
|
2201
2201
|
get warnHtmlMessage() {
|
|
2202
2202
|
return S;
|
|
2203
2203
|
},
|
|
2204
|
-
set warnHtmlMessage(
|
|
2205
|
-
S =
|
|
2204
|
+
set warnHtmlMessage(v) {
|
|
2205
|
+
S = v, p.warnHtmlMessage = v;
|
|
2206
2206
|
},
|
|
2207
2207
|
get escapeParameter() {
|
|
2208
2208
|
return c;
|
|
2209
2209
|
},
|
|
2210
|
-
set escapeParameter(
|
|
2211
|
-
c =
|
|
2210
|
+
set escapeParameter(v) {
|
|
2211
|
+
c = v, p.escapeParameter = v;
|
|
2212
2212
|
},
|
|
2213
|
-
t:
|
|
2213
|
+
t: Y,
|
|
2214
2214
|
getLocaleMessage: Fe,
|
|
2215
|
-
setLocaleMessage:
|
|
2215
|
+
setLocaleMessage: Ce,
|
|
2216
2216
|
mergeLocaleMessage: Xe,
|
|
2217
2217
|
getPostTranslationHandler: V,
|
|
2218
2218
|
setPostTranslationHandler: j,
|
|
2219
2219
|
getMissingHandler: G,
|
|
2220
2220
|
setMissingHandler: W,
|
|
2221
|
-
[
|
|
2221
|
+
[Eo]: pe
|
|
2222
2222
|
};
|
|
2223
|
-
return P.datetimeFormats =
|
|
2223
|
+
return P.datetimeFormats = C, P.numberFormats = U, P.rt = ne, P.te = Je, P.tm = Ve, P.d = Q, P.n = _e, P.getDateTimeFormat = O, P.setDateTimeFormat = s, P.mergeDateTimeFormat = o, P.getNumberFormat = _, P.setNumberFormat = R, P.mergeNumberFormat = M, P[rr] = n, P[xt] = q, P[Wt] = K, P[Gt] = De, P;
|
|
2224
2224
|
}
|
|
2225
2225
|
const qt = {
|
|
2226
2226
|
tag: {
|
|
@@ -2244,14 +2244,14 @@ function So({ slots: e }, t) {
|
|
|
2244
2244
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, l) => [
|
|
2245
2245
|
...r,
|
|
2246
2246
|
// prettier-ignore
|
|
2247
|
-
...l.type ===
|
|
2247
|
+
...l.type === ke ? l.children : [l]
|
|
2248
2248
|
], []) : t.reduce((n, r) => {
|
|
2249
2249
|
const l = e[r];
|
|
2250
2250
|
return l && (n[r] = l()), n;
|
|
2251
2251
|
}, oe());
|
|
2252
2252
|
}
|
|
2253
2253
|
function ar() {
|
|
2254
|
-
return
|
|
2254
|
+
return ke;
|
|
2255
2255
|
}
|
|
2256
2256
|
Ie({
|
|
2257
2257
|
keypath: {
|
|
@@ -2271,15 +2271,15 @@ function lr(e, t, n, r) {
|
|
|
2271
2271
|
return () => {
|
|
2272
2272
|
const m = { part: !0 };
|
|
2273
2273
|
let u = oe();
|
|
2274
|
-
e.locale && (m.locale = e.locale), Z(e.format) ? m.key = e.format : te(e.format) && (Z(e.format.key) && (m.key = e.format.key), u = Object.keys(e.format).reduce((
|
|
2274
|
+
e.locale && (m.locale = e.locale), Z(e.format) ? m.key = e.format : te(e.format) && (Z(e.format.key) && (m.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, m, u);
|
|
2276
2276
|
let g = [m.key];
|
|
2277
|
-
be(i) ? g = i.map((
|
|
2278
|
-
const w = l[
|
|
2279
|
-
return Ao(L) && (L[0].key = `${
|
|
2277
|
+
be(i) ? g = i.map((N, F) => {
|
|
2278
|
+
const w = l[N.type], L = w ? w({ [N.type]: N.value, index: F, parts: i }) : [N.value];
|
|
2279
|
+
return Ao(L) && (L[0].key = `${N.type}-${F}`), L;
|
|
2280
2280
|
}) : Z(i) && (g = [i]);
|
|
2281
|
-
const
|
|
2282
|
-
return Wn(T,
|
|
2281
|
+
const y = Ie(oe(), a), T = Z(e.tag) || te(e.tag) ? e.tag : ar();
|
|
2282
|
+
return Wn(T, y, g);
|
|
2283
2283
|
};
|
|
2284
2284
|
}
|
|
2285
2285
|
Ie({
|
|
@@ -2300,16 +2300,16 @@ Ie({
|
|
|
2300
2300
|
type: [String, Object]
|
|
2301
2301
|
}
|
|
2302
2302
|
}, qt);
|
|
2303
|
-
const Lo = /* @__PURE__ */
|
|
2303
|
+
const Lo = /* @__PURE__ */ $e("global-vue-i18n");
|
|
2304
2304
|
function St(e = {}) {
|
|
2305
|
-
const t =
|
|
2305
|
+
const t = Yt();
|
|
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__)
|
|
2309
2309
|
throw ut(at.NOT_INSTALLED);
|
|
2310
|
-
const n =
|
|
2310
|
+
const n = Ro(t), r = Mo(n), l = or(t), a = ko(e, l);
|
|
2311
2311
|
if (a === "global")
|
|
2312
|
-
return
|
|
2312
|
+
return No(r, e, l), r;
|
|
2313
2313
|
if (a === "parent") {
|
|
2314
2314
|
let i = wo(n, t, e.__useComponent);
|
|
2315
2315
|
return i == null && (i = r), i;
|
|
@@ -2322,14 +2322,14 @@ function St(e = {}) {
|
|
|
2322
2322
|
}
|
|
2323
2323
|
return u;
|
|
2324
2324
|
}
|
|
2325
|
-
function
|
|
2325
|
+
function Ro(e) {
|
|
2326
2326
|
const t = ur(e.isCE ? Lo : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2327
2327
|
if (!t)
|
|
2328
2328
|
throw ut(e.isCE ? at.NOT_INSTALLED_WITH_PROVIDE : at.UNEXPECTED_ERROR);
|
|
2329
2329
|
return t;
|
|
2330
2330
|
}
|
|
2331
|
-
function
|
|
2332
|
-
return
|
|
2331
|
+
function ko(e, t) {
|
|
2332
|
+
return Ct(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2333
2333
|
}
|
|
2334
2334
|
function Mo(e) {
|
|
2335
2335
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
@@ -2364,15 +2364,15 @@ function Fo(e, t, n) {
|
|
|
2364
2364
|
l && (l(), delete r[Zt]);
|
|
2365
2365
|
}, t);
|
|
2366
2366
|
}
|
|
2367
|
-
|
|
2367
|
+
yo();
|
|
2368
2368
|
zs(Ms);
|
|
2369
|
-
Qs(
|
|
2369
|
+
Qs($s);
|
|
2370
2370
|
qs(Hn);
|
|
2371
2371
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2372
|
-
const e =
|
|
2372
|
+
const e = Be();
|
|
2373
2373
|
e.__INTLIFY__ = !0, ws(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2374
2374
|
}
|
|
2375
|
-
const
|
|
2375
|
+
const vt = /* @__PURE__ */ Le({
|
|
2376
2376
|
__name: "InheritPermissionTooltip",
|
|
2377
2377
|
props: {
|
|
2378
2378
|
item: {
|
|
@@ -2384,14 +2384,14 @@ const pt = /* @__PURE__ */ Le({
|
|
|
2384
2384
|
const { t } = St();
|
|
2385
2385
|
return (n, r) => {
|
|
2386
2386
|
const l = we("FmIcon"), a = we("FmTooltip");
|
|
2387
|
-
return
|
|
2387
|
+
return J(), Ne(a, {
|
|
2388
2388
|
variant: "plain",
|
|
2389
2389
|
placement: "right",
|
|
2390
2390
|
"z-index": 50
|
|
2391
2391
|
}, {
|
|
2392
2392
|
content: me(() => [
|
|
2393
2393
|
ae("div", null, Oe(H(t)("team.memberForm.permissions.inherited")), 1),
|
|
2394
|
-
(
|
|
2394
|
+
(J(!0), ie(ke, null, Ee(e.item.setNames, (m) => (J(), ie("div", { key: m }, [
|
|
2395
2395
|
ae("div", null, "- " + Oe(m), 1)
|
|
2396
2396
|
]))), 128))
|
|
2397
2397
|
]),
|
|
@@ -2429,7 +2429,7 @@ const wn = Object.values(Sr), Po = {
|
|
|
2429
2429
|
function jo(e, t, n, r) {
|
|
2430
2430
|
const { t: l } = He(), { getFlagValue: a, getFlag: m } = Or(), u = z(() => {
|
|
2431
2431
|
var j;
|
|
2432
|
-
const d = /* @__PURE__ */ new Map(),
|
|
2432
|
+
const d = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map();
|
|
2433
2433
|
for (const G of t.value) {
|
|
2434
2434
|
const W = G.category;
|
|
2435
2435
|
if (!W) continue;
|
|
@@ -2437,37 +2437,37 @@ function jo(e, t, n, r) {
|
|
|
2437
2437
|
if (n.value.includes(G.subject) || G.showByFeatureFlag && ((j = m(G.showByFeatureFlag)) == null ? void 0 : j.enabled) === !1 && a(G.showByFeatureFlag) === "true")
|
|
2438
2438
|
continue;
|
|
2439
2439
|
d.has(W) || d.set(W, []);
|
|
2440
|
-
const
|
|
2441
|
-
U.set(X,
|
|
2440
|
+
const Y = U.get(X) ?? 0;
|
|
2441
|
+
U.set(X, Y + 1), d.get(W).push({
|
|
2442
2442
|
label: l(`permissionSet.permissionLabels.${X}`, G.label),
|
|
2443
2443
|
value: X,
|
|
2444
|
-
optionKey: `${X}::${
|
|
2445
|
-
}),
|
|
2444
|
+
optionKey: `${X}::${Y}`
|
|
2445
|
+
}), C.has(X) || C.set(X, G);
|
|
2446
2446
|
}
|
|
2447
2447
|
return [...d.keys()].sort((G, W) => {
|
|
2448
|
-
const X = wn.indexOf(G),
|
|
2449
|
-
return X === -1 &&
|
|
2448
|
+
const X = wn.indexOf(G), Y = wn.indexOf(W);
|
|
2449
|
+
return X === -1 && Y === -1 ? G.localeCompare(W) : X === -1 ? 1 : Y === -1 ? -1 : X - Y;
|
|
2450
2450
|
}).map((G) => {
|
|
2451
|
-
const W = d.get(G), X = l(`permissionSet.categoryLabels.${G}`, G),
|
|
2451
|
+
const W = d.get(G), X = l(`permissionSet.categoryLabels.${G}`, G), Y = /* @__PURE__ */ new Map();
|
|
2452
2452
|
for (const K of W) {
|
|
2453
|
-
const
|
|
2454
|
-
|
|
2453
|
+
const pe = C.get(K.value);
|
|
2454
|
+
pe && Y.set(K.value, pe.actions);
|
|
2455
2455
|
}
|
|
2456
2456
|
const ne = W.some((K) => {
|
|
2457
|
-
const
|
|
2458
|
-
return
|
|
2457
|
+
const pe = Y.get(K.value);
|
|
2458
|
+
return pe && pe.length > 1;
|
|
2459
2459
|
}), Q = ne ? [
|
|
2460
2460
|
...new Set(
|
|
2461
|
-
W.flatMap((K) =>
|
|
2461
|
+
W.flatMap((K) => Y.get(K.value) ?? []).filter((K) => K !== "manage")
|
|
2462
2462
|
)
|
|
2463
2463
|
] : [], _e = /* @__PURE__ */ new Map();
|
|
2464
2464
|
for (const K of e.value)
|
|
2465
|
-
W.some((
|
|
2465
|
+
W.some((pe) => pe.value === K.subject) && !K.inverted && _e.set(K.subject, new Set(K.actions));
|
|
2466
2466
|
const ce = ne ? e.value.filter(
|
|
2467
|
-
(K) => W.some((
|
|
2468
|
-
).map((K) => K.subject) : e.value.filter((K) => W.some((
|
|
2469
|
-
var
|
|
2470
|
-
return (
|
|
2467
|
+
(K) => W.some((pe) => pe.value === K.subject) && !K.inverted && K.actions.includes("manage")
|
|
2468
|
+
).map((K) => K.subject) : e.value.filter((K) => W.some((pe) => pe.value === K.subject) && !K.inverted).map((K) => K.subject), se = W.find((K) => {
|
|
2469
|
+
var pe;
|
|
2470
|
+
return (pe = C.get(K.value)) == null ? void 0 : pe.isCategoryCover;
|
|
2471
2471
|
}), fe = (se == null ? void 0 : se.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), De = q.has("manage");
|
|
2472
2472
|
return {
|
|
2473
2473
|
category: G,
|
|
@@ -2476,7 +2476,7 @@ function jo(e, t, n, r) {
|
|
|
2476
2476
|
selectedSubjects: ce,
|
|
2477
2477
|
isMultiAction: ne,
|
|
2478
2478
|
actionColumns: Q,
|
|
2479
|
-
permissionActionsMap:
|
|
2479
|
+
permissionActionsMap: Y,
|
|
2480
2480
|
selectedActionsMap: _e,
|
|
2481
2481
|
coverSubject: fe,
|
|
2482
2482
|
coverSelectedActions: q,
|
|
@@ -2484,15 +2484,15 @@ function jo(e, t, n, r) {
|
|
|
2484
2484
|
};
|
|
2485
2485
|
});
|
|
2486
2486
|
});
|
|
2487
|
-
function i(d,
|
|
2488
|
-
const U = u.value.find((Q) => Q.category === d), V = (U == null ? void 0 : U.options) ?? [], j = new Set(V.map((Q) => Q.value)), G = new Set(
|
|
2487
|
+
function i(d, C) {
|
|
2488
|
+
const U = u.value.find((Q) => Q.category === d), V = (U == null ? void 0 : U.options) ?? [], j = new Set(V.map((Q) => Q.value)), G = new Set(C), W = /* @__PURE__ */ new Map();
|
|
2489
2489
|
for (const Q of e.value)
|
|
2490
2490
|
j.has(Q.subject) && !Q.inverted && W.set(Q.subject, Q.conditions);
|
|
2491
|
-
const X = U != null && U.coverSubject ? W.get(U.coverSubject) : void 0,
|
|
2491
|
+
const X = U != null && U.coverSubject ? W.get(U.coverSubject) : void 0, Y = /* @__PURE__ */ new Set(), ne = t.value.flatMap(
|
|
2492
2492
|
({ category: Q, showByFeatureFlag: _e, isCategoryCover: ce, ...se }) => {
|
|
2493
2493
|
const fe = se.subject;
|
|
2494
|
-
if (!G.has(fe) ||
|
|
2495
|
-
|
|
2494
|
+
if (!G.has(fe) || Y.has(fe)) return [];
|
|
2495
|
+
Y.add(fe);
|
|
2496
2496
|
let q;
|
|
2497
2497
|
return W.has(fe) ? q = W.get(fe) : U != null && U.coverSubject && fe !== U.coverSubject && (q = X), [
|
|
2498
2498
|
{ ...se, ...q !== void 0 && { conditions: q } }
|
|
@@ -2504,29 +2504,29 @@ function jo(e, t, n, r) {
|
|
|
2504
2504
|
...ne
|
|
2505
2505
|
]);
|
|
2506
2506
|
}
|
|
2507
|
-
function g(d,
|
|
2508
|
-
return F(d,
|
|
2507
|
+
function g(d, C) {
|
|
2508
|
+
return F(d, C) || c(d, C);
|
|
2509
2509
|
}
|
|
2510
|
-
function
|
|
2511
|
-
return d.options.length > 0 && d.options.every((
|
|
2510
|
+
function y(d) {
|
|
2511
|
+
return d.options.length > 0 && d.options.every((C) => g(d, C.value));
|
|
2512
2512
|
}
|
|
2513
2513
|
function T(d) {
|
|
2514
|
-
return d.options.length === 0 ||
|
|
2515
|
-
(
|
|
2514
|
+
return d.options.length === 0 || y(d) ? !1 : d.options.some(
|
|
2515
|
+
(C) => g(d, C.value) || w(d, C.value).length > 0
|
|
2516
2516
|
);
|
|
2517
2517
|
}
|
|
2518
|
-
function
|
|
2519
|
-
const
|
|
2520
|
-
if (
|
|
2518
|
+
function N(d) {
|
|
2519
|
+
const C = new Set(d.options.map((V) => V.value)), U = e.value.filter((V) => !C.has(V.subject));
|
|
2520
|
+
if (y(d))
|
|
2521
2521
|
r("update:model-value", U);
|
|
2522
2522
|
else {
|
|
2523
2523
|
const V = /* @__PURE__ */ new Map();
|
|
2524
2524
|
for (const X of e.value)
|
|
2525
|
-
|
|
2525
|
+
C.has(X.subject) && !X.inverted && V.set(X.subject, X.conditions);
|
|
2526
2526
|
const j = d.coverSubject ? V.get(d.coverSubject) : void 0, G = /* @__PURE__ */ new Set(), W = t.value.flatMap(
|
|
2527
|
-
({ category: X, showByFeatureFlag:
|
|
2527
|
+
({ category: X, showByFeatureFlag: Y, isCategoryCover: ne, ...Q }) => {
|
|
2528
2528
|
const _e = Q.subject;
|
|
2529
|
-
if (!
|
|
2529
|
+
if (!C.has(_e) || G.has(_e)) return [];
|
|
2530
2530
|
G.add(_e);
|
|
2531
2531
|
let ce;
|
|
2532
2532
|
return V.has(_e) ? ce = V.get(_e) : d.coverSubject && _e !== d.coverSubject && (ce = j), [
|
|
@@ -2537,76 +2537,76 @@ function jo(e, t, n, r) {
|
|
|
2537
2537
|
r("update:model-value", [...U, ...W]);
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
|
-
function F(d,
|
|
2541
|
-
const U = d.selectedActionsMap.get(
|
|
2540
|
+
function F(d, C) {
|
|
2541
|
+
const U = d.selectedActionsMap.get(C);
|
|
2542
2542
|
return U ? U.has("manage") : !1;
|
|
2543
2543
|
}
|
|
2544
|
-
function w(d,
|
|
2545
|
-
const U = d.permissionActionsMap.get(
|
|
2544
|
+
function w(d, C) {
|
|
2545
|
+
const U = d.permissionActionsMap.get(C);
|
|
2546
2546
|
return U ? U.filter((j) => j !== "manage").filter(
|
|
2547
|
-
(j) => S(d,
|
|
2547
|
+
(j) => S(d, C, j) || b(d, C, j)
|
|
2548
2548
|
) : [];
|
|
2549
2549
|
}
|
|
2550
|
-
function L(d,
|
|
2551
|
-
return c(d,
|
|
2550
|
+
function L(d, C) {
|
|
2551
|
+
return c(d, C) ? !1 : !F(d, C) && w(d, C).length > 0;
|
|
2552
2552
|
}
|
|
2553
|
-
function D(d,
|
|
2554
|
-
if (!d.coverSubject ||
|
|
2553
|
+
function D(d, C) {
|
|
2554
|
+
if (!d.coverSubject || C === d.coverSubject) return;
|
|
2555
2555
|
const U = e.value.find(
|
|
2556
2556
|
(V) => !V.inverted && V.subject === d.coverSubject
|
|
2557
2557
|
);
|
|
2558
2558
|
return (U == null ? void 0 : U.conditions) || void 0;
|
|
2559
2559
|
}
|
|
2560
|
-
function f(d,
|
|
2560
|
+
function f(d, C, U) {
|
|
2561
2561
|
if (U) {
|
|
2562
|
-
const V = t.value.find((Q) => Q.subject ===
|
|
2562
|
+
const V = t.value.find((Q) => Q.subject === C);
|
|
2563
2563
|
if (!V) return;
|
|
2564
2564
|
const {
|
|
2565
2565
|
category: j,
|
|
2566
2566
|
showByFeatureFlag: G,
|
|
2567
2567
|
isCategoryCover: W,
|
|
2568
2568
|
...X
|
|
2569
|
-
} = V,
|
|
2569
|
+
} = V, Y = D(d, C), ne = e.value.filter((Q) => Q.subject !== C);
|
|
2570
2570
|
ne.push({
|
|
2571
2571
|
...X,
|
|
2572
|
-
...
|
|
2572
|
+
...Y !== void 0 && { conditions: Y }
|
|
2573
2573
|
}), r("update:model-value", ne);
|
|
2574
2574
|
} else
|
|
2575
2575
|
r(
|
|
2576
2576
|
"update:model-value",
|
|
2577
|
-
e.value.filter((V) => V.subject !==
|
|
2577
|
+
e.value.filter((V) => V.subject !== C)
|
|
2578
2578
|
);
|
|
2579
2579
|
}
|
|
2580
|
-
function
|
|
2581
|
-
const U = d.permissionActionsMap.get(
|
|
2580
|
+
function h(d, C) {
|
|
2581
|
+
const U = d.permissionActionsMap.get(C);
|
|
2582
2582
|
return U ? U.some((V) => V !== "manage") : !1;
|
|
2583
2583
|
}
|
|
2584
|
-
function S(d,
|
|
2585
|
-
const V = d.selectedActionsMap.get(
|
|
2584
|
+
function S(d, C, U) {
|
|
2585
|
+
const V = d.selectedActionsMap.get(C);
|
|
2586
2586
|
return V ? V.has(U) : !1;
|
|
2587
2587
|
}
|
|
2588
|
-
function c(d,
|
|
2589
|
-
return !d.coverSubject ||
|
|
2588
|
+
function c(d, C) {
|
|
2589
|
+
return !d.coverSubject || C === d.coverSubject ? !1 : d.coverCoversAll;
|
|
2590
2590
|
}
|
|
2591
|
-
function b(d,
|
|
2592
|
-
return !d.coverSubject ||
|
|
2591
|
+
function b(d, C, U) {
|
|
2592
|
+
return !d.coverSubject || C === d.coverSubject ? !1 : d.coverCoversAll ? !0 : d.coverSelectedActions.has(U);
|
|
2593
2593
|
}
|
|
2594
|
-
function I(d,
|
|
2595
|
-
const V = d.permissionActionsMap.get(
|
|
2594
|
+
function I(d, C, U) {
|
|
2595
|
+
const V = d.permissionActionsMap.get(C);
|
|
2596
2596
|
return V ? V.includes(U) : !1;
|
|
2597
2597
|
}
|
|
2598
|
-
function
|
|
2598
|
+
function p(d, C, U) {
|
|
2599
2599
|
const V = [...e.value], j = V.findIndex((W) => W.subject === d && !W.inverted);
|
|
2600
2600
|
if (U)
|
|
2601
2601
|
if (j >= 0) {
|
|
2602
2602
|
const W = { ...V[j] }, X = new Set(W.actions);
|
|
2603
|
-
X.add(
|
|
2603
|
+
X.add(C), W.actions = Array.from(X), V[j] = W;
|
|
2604
2604
|
} else {
|
|
2605
2605
|
const W = t.value.find((se) => se.subject === d);
|
|
2606
2606
|
if (!W) return;
|
|
2607
2607
|
const {
|
|
2608
2608
|
category: X,
|
|
2609
|
-
showByFeatureFlag:
|
|
2609
|
+
showByFeatureFlag: Y,
|
|
2610
2610
|
isCategoryCover: ne,
|
|
2611
2611
|
...Q
|
|
2612
2612
|
} = W, _e = u.value.find(
|
|
@@ -2614,96 +2614,96 @@ function jo(e, t, n, r) {
|
|
|
2614
2614
|
), ce = _e ? D(_e, d) : void 0;
|
|
2615
2615
|
V.push({
|
|
2616
2616
|
...Q,
|
|
2617
|
-
actions: [
|
|
2617
|
+
actions: [C],
|
|
2618
2618
|
...ce !== void 0 && { conditions: ce }
|
|
2619
2619
|
});
|
|
2620
2620
|
}
|
|
2621
2621
|
else if (j >= 0) {
|
|
2622
|
-
const W = { ...V[j] }, X = W.actions.filter((
|
|
2622
|
+
const W = { ...V[j] }, X = W.actions.filter((Y) => Y !== C);
|
|
2623
2623
|
X.length === 0 ? V.splice(j, 1) : (W.actions = X, V[j] = W);
|
|
2624
2624
|
}
|
|
2625
2625
|
const G = t.value.find((W) => W.subject === d);
|
|
2626
2626
|
G && Mn(V, d, G.actions), r("update:model-value", V);
|
|
2627
2627
|
}
|
|
2628
|
-
function
|
|
2628
|
+
function k(d, C) {
|
|
2629
2629
|
const U = d.options.filter(
|
|
2630
|
-
(V) => I(d, V.value,
|
|
2630
|
+
(V) => I(d, V.value, C)
|
|
2631
2631
|
);
|
|
2632
2632
|
return U.length === 0 ? !1 : U.every(
|
|
2633
|
-
(V) => S(d, V.value,
|
|
2633
|
+
(V) => S(d, V.value, C) || b(d, V.value, C)
|
|
2634
2634
|
);
|
|
2635
2635
|
}
|
|
2636
|
-
function A(d,
|
|
2636
|
+
function A(d, C) {
|
|
2637
2637
|
const U = d.options.filter(
|
|
2638
|
-
(j) => I(d, j.value,
|
|
2638
|
+
(j) => I(d, j.value, C)
|
|
2639
2639
|
);
|
|
2640
2640
|
if (U.length === 0) return !1;
|
|
2641
2641
|
const V = U.filter(
|
|
2642
|
-
(j) => S(d, j.value,
|
|
2642
|
+
(j) => S(d, j.value, C) || b(d, j.value, C)
|
|
2643
2643
|
).length;
|
|
2644
2644
|
return V > 0 && V < U.length;
|
|
2645
2645
|
}
|
|
2646
|
-
function
|
|
2646
|
+
function B(d, C, U) {
|
|
2647
2647
|
const V = [...e.value];
|
|
2648
2648
|
for (const j of d.options) {
|
|
2649
|
-
if (!I(d, j.value,
|
|
2649
|
+
if (!I(d, j.value, C)) continue;
|
|
2650
2650
|
const G = j.value, W = V.findIndex(
|
|
2651
|
-
(
|
|
2651
|
+
(Y) => Y.subject === G && !Y.inverted
|
|
2652
2652
|
);
|
|
2653
2653
|
if (U)
|
|
2654
2654
|
if (W >= 0) {
|
|
2655
|
-
const
|
|
2656
|
-
ne.add(
|
|
2655
|
+
const Y = { ...V[W] }, ne = new Set(Y.actions);
|
|
2656
|
+
ne.add(C), Y.actions = Array.from(ne), V[W] = Y;
|
|
2657
2657
|
} else {
|
|
2658
|
-
const
|
|
2659
|
-
if (!
|
|
2658
|
+
const Y = t.value.find((fe) => fe.subject === G);
|
|
2659
|
+
if (!Y) continue;
|
|
2660
2660
|
const {
|
|
2661
2661
|
category: ne,
|
|
2662
2662
|
showByFeatureFlag: Q,
|
|
2663
2663
|
isCategoryCover: _e,
|
|
2664
2664
|
...ce
|
|
2665
|
-
} =
|
|
2665
|
+
} = Y, se = D(d, G);
|
|
2666
2666
|
V.push({
|
|
2667
2667
|
...ce,
|
|
2668
|
-
actions: [
|
|
2668
|
+
actions: [C],
|
|
2669
2669
|
...se !== void 0 && { conditions: se }
|
|
2670
2670
|
});
|
|
2671
2671
|
}
|
|
2672
2672
|
else if (W >= 0) {
|
|
2673
|
-
const
|
|
2674
|
-
ne.length === 0 ? V.splice(W, 1) : (
|
|
2673
|
+
const Y = { ...V[W] }, ne = Y.actions.filter((Q) => Q !== C);
|
|
2674
|
+
ne.length === 0 ? V.splice(W, 1) : (Y.actions = ne, V[W] = Y);
|
|
2675
2675
|
}
|
|
2676
|
-
const X = t.value.find((
|
|
2676
|
+
const X = t.value.find((Y) => Y.subject === G);
|
|
2677
2677
|
X && Mn(V, G, X.actions);
|
|
2678
2678
|
}
|
|
2679
2679
|
r("update:model-value", V);
|
|
2680
2680
|
}
|
|
2681
2681
|
function x(d) {
|
|
2682
|
-
const
|
|
2683
|
-
return l(
|
|
2682
|
+
const C = `permissionSet.actionLabels.${d}`, U = Po[d] ?? d.charAt(0).toUpperCase() + d.slice(1);
|
|
2683
|
+
return l(C, U);
|
|
2684
2684
|
}
|
|
2685
2685
|
return {
|
|
2686
2686
|
categoryGroups: u,
|
|
2687
2687
|
toggleCategory: i,
|
|
2688
|
-
isAllManageChecked:
|
|
2688
|
+
isAllManageChecked: y,
|
|
2689
2689
|
isAllManageIndeterminate: T,
|
|
2690
|
-
toggleAllManage:
|
|
2690
|
+
toggleAllManage: N,
|
|
2691
2691
|
isManageChecked: F,
|
|
2692
2692
|
isManageIndeterminate: L,
|
|
2693
2693
|
toggleManage: f,
|
|
2694
|
-
hasNonManageActions:
|
|
2694
|
+
hasNonManageActions: h,
|
|
2695
2695
|
isActionChecked: S,
|
|
2696
2696
|
isRowFullyCoveredByCover: c,
|
|
2697
2697
|
isActionCoveredByCover: b,
|
|
2698
2698
|
permissionDefinesAction: I,
|
|
2699
|
-
toggleAction:
|
|
2700
|
-
isAllActionChecked:
|
|
2699
|
+
toggleAction: p,
|
|
2700
|
+
isAllActionChecked: k,
|
|
2701
2701
|
isAllActionIndeterminate: A,
|
|
2702
|
-
toggleAllAction:
|
|
2702
|
+
toggleAllAction: B,
|
|
2703
2703
|
actionLabel: x
|
|
2704
2704
|
};
|
|
2705
2705
|
}
|
|
2706
|
-
const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm-600" }, xo = { class: "mt-16" }, Wo = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Go = ["onClick"], Zo = { class: "flex justify-center" }, Xo = { class: "flex items-center min-w-0 gap-8" },
|
|
2706
|
+
const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm-600" }, xo = { class: "mt-16" }, Wo = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Go = ["onClick"], Zo = { class: "flex justify-center" }, Xo = { class: "flex items-center min-w-0 gap-8" }, Yo = ["title", "onClick"], Bo = { class: "flex justify-center" }, Ho = /* @__PURE__ */ Le({
|
|
2707
2707
|
__name: "BasePermission",
|
|
2708
2708
|
props: {
|
|
2709
2709
|
modelValue: {
|
|
@@ -2730,15 +2730,15 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2730
2730
|
isAllManageChecked: u,
|
|
2731
2731
|
isAllManageIndeterminate: i,
|
|
2732
2732
|
toggleAllManage: g,
|
|
2733
|
-
isManageChecked:
|
|
2733
|
+
isManageChecked: y,
|
|
2734
2734
|
isManageIndeterminate: T,
|
|
2735
|
-
toggleManage:
|
|
2735
|
+
toggleManage: N,
|
|
2736
2736
|
isActionChecked: F,
|
|
2737
2737
|
isRowFullyCoveredByCover: w,
|
|
2738
2738
|
isActionCoveredByCover: L,
|
|
2739
2739
|
permissionDefinesAction: D,
|
|
2740
2740
|
toggleAction: f,
|
|
2741
|
-
isAllActionChecked:
|
|
2741
|
+
isAllActionChecked: h,
|
|
2742
2742
|
isAllActionIndeterminate: S,
|
|
2743
2743
|
toggleAllAction: c,
|
|
2744
2744
|
actionLabel: b
|
|
@@ -2746,21 +2746,21 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2746
2746
|
en(n, "modelValue"),
|
|
2747
2747
|
a,
|
|
2748
2748
|
en(n, "excludedSubjects"),
|
|
2749
|
-
(
|
|
2749
|
+
(k, A) => r("update:model-value", A)
|
|
2750
2750
|
);
|
|
2751
|
-
function I(
|
|
2752
|
-
const A =
|
|
2751
|
+
function I(k) {
|
|
2752
|
+
const A = k.selectedSubjects.length;
|
|
2753
2753
|
return A === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: A });
|
|
2754
2754
|
}
|
|
2755
|
-
function
|
|
2756
|
-
return
|
|
2757
|
-
(
|
|
2755
|
+
function p(k, A) {
|
|
2756
|
+
return y(k, A) || w(k, A) ? !0 : k.actionColumns.some(
|
|
2757
|
+
(B) => D(k, A, B) && (F(k, A, B) || L(k, A, B))
|
|
2758
2758
|
);
|
|
2759
2759
|
}
|
|
2760
|
-
return (
|
|
2761
|
-
const
|
|
2762
|
-
return
|
|
2763
|
-
(
|
|
2760
|
+
return (k, A) => {
|
|
2761
|
+
const B = we("FmCheckbox");
|
|
2762
|
+
return J(), ie("div", Uo, [
|
|
2763
|
+
(J(!0), ie(ke, null, Ee(H(m), (x) => (J(), Ne(Bt, {
|
|
2764
2764
|
key: x.category,
|
|
2765
2765
|
subtitle: I(x)
|
|
2766
2766
|
}, {
|
|
@@ -2777,7 +2777,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2777
2777
|
}, [
|
|
2778
2778
|
A[0] || (A[0] = ae("div", null, null, -1)),
|
|
2779
2779
|
ae("div", Wo, Oe(H(l)("team.memberForm.permissions.columnManage")), 1),
|
|
2780
|
-
(
|
|
2780
|
+
(J(!0), ie(ke, null, Ee(x.actionColumns, (d) => (J(), ie("div", {
|
|
2781
2781
|
key: `header-${d}`,
|
|
2782
2782
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2783
2783
|
}, Oe(H(b)(d)), 1))), 128))
|
|
@@ -2793,7 +2793,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2793
2793
|
onClick: (d) => !e.disable && H(g)(x)
|
|
2794
2794
|
}, Oe(H(l)("team.labels.all")), 9, Go),
|
|
2795
2795
|
ae("div", Zo, [
|
|
2796
|
-
ue(
|
|
2796
|
+
ue(B, {
|
|
2797
2797
|
"model-value": H(u)(x),
|
|
2798
2798
|
indeterminate: H(i)(x),
|
|
2799
2799
|
value: !0,
|
|
@@ -2803,23 +2803,23 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2803
2803
|
"onUpdate:modelValue": (d) => H(g)(x)
|
|
2804
2804
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2805
2805
|
]),
|
|
2806
|
-
(
|
|
2806
|
+
(J(!0), ie(ke, null, Ee(x.actionColumns, (d) => (J(), ie("div", {
|
|
2807
2807
|
key: `all-${d}`,
|
|
2808
2808
|
class: "flex justify-center"
|
|
2809
2809
|
}, [
|
|
2810
|
-
ue(
|
|
2811
|
-
"model-value": H(
|
|
2810
|
+
ue(B, {
|
|
2811
|
+
"model-value": H(h)(x, d),
|
|
2812
2812
|
indeterminate: H(S)(x, d),
|
|
2813
2813
|
value: d,
|
|
2814
2814
|
disabled: e.disable,
|
|
2815
2815
|
size: "sm",
|
|
2816
2816
|
dense: "",
|
|
2817
|
-
"onUpdate:modelValue": (
|
|
2817
|
+
"onUpdate:modelValue": (C) => H(c)(x, d, C)
|
|
2818
2818
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2819
2819
|
]))), 128))
|
|
2820
2820
|
], 4),
|
|
2821
2821
|
A[1] || (A[1] = ae("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2822
|
-
(
|
|
2822
|
+
(J(!0), ie(ke, null, Ee(x.options, (d) => (J(), ie("div", {
|
|
2823
2823
|
key: d.optionKey,
|
|
2824
2824
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2825
2825
|
style: nt({
|
|
@@ -2830,40 +2830,40 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2830
2830
|
ae("span", {
|
|
2831
2831
|
class: "block truncate cursor-pointer",
|
|
2832
2832
|
title: d.label,
|
|
2833
|
-
onClick: (
|
|
2834
|
-
}, Oe(d.label), 9,
|
|
2835
|
-
Se(
|
|
2833
|
+
onClick: (C) => !e.disable && !H(w)(x, d.value) && H(N)(x, d.value, !H(y)(x, d.value))
|
|
2834
|
+
}, Oe(d.label), 9, Yo),
|
|
2835
|
+
Se(k.$slots, `checkbox-${d.value}-append`, {
|
|
2836
2836
|
option: d,
|
|
2837
|
-
isEffectiveSelected:
|
|
2838
|
-
isCoveredByCover: H(w)(x, d.value) || x.actionColumns.some((
|
|
2837
|
+
isEffectiveSelected: p(x, d.value),
|
|
2838
|
+
isCoveredByCover: H(w)(x, d.value) || x.actionColumns.some((C) => H(L)(x, d.value, C))
|
|
2839
2839
|
}),
|
|
2840
|
-
Se(
|
|
2840
|
+
Se(k.$slots, `checkbox-${d.value}-icon`, {
|
|
2841
2841
|
option: d,
|
|
2842
|
-
isEffectiveSelected:
|
|
2843
|
-
isCoveredByCover: H(w)(x, d.value) || x.actionColumns.some((
|
|
2842
|
+
isEffectiveSelected: p(x, d.value),
|
|
2843
|
+
isCoveredByCover: H(w)(x, d.value) || x.actionColumns.some((C) => H(L)(x, d.value, C))
|
|
2844
2844
|
})
|
|
2845
2845
|
]),
|
|
2846
|
-
ae("div",
|
|
2847
|
-
ue(
|
|
2848
|
-
"model-value": H(
|
|
2846
|
+
ae("div", Bo, [
|
|
2847
|
+
ue(B, {
|
|
2848
|
+
"model-value": H(y)(x, d.value) || H(w)(x, d.value),
|
|
2849
2849
|
value: d.value,
|
|
2850
2850
|
disabled: e.disable || H(w)(x, d.value),
|
|
2851
2851
|
indeterminate: H(T)(x, d.value),
|
|
2852
2852
|
size: "sm",
|
|
2853
|
-
"onUpdate:modelValue": (
|
|
2853
|
+
"onUpdate:modelValue": (C) => H(N)(x, d.value, C)
|
|
2854
2854
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2855
2855
|
]),
|
|
2856
|
-
(
|
|
2857
|
-
key: `${d.optionKey}-${
|
|
2856
|
+
(J(!0), ie(ke, null, Ee(x.actionColumns, (C) => (J(), ie("div", {
|
|
2857
|
+
key: `${d.optionKey}-${C}`,
|
|
2858
2858
|
class: "flex justify-center"
|
|
2859
2859
|
}, [
|
|
2860
|
-
H(D)(x, d.value,
|
|
2860
|
+
H(D)(x, d.value, C) ? (J(), Ne(B, {
|
|
2861
2861
|
key: 0,
|
|
2862
|
-
"model-value": H(F)(x, d.value,
|
|
2863
|
-
value:
|
|
2864
|
-
disabled: e.disable || H(L)(x, d.value,
|
|
2862
|
+
"model-value": H(F)(x, d.value, C) || H(L)(x, d.value, C),
|
|
2863
|
+
value: C,
|
|
2864
|
+
disabled: e.disable || H(L)(x, d.value, C),
|
|
2865
2865
|
size: "sm",
|
|
2866
|
-
"onUpdate:modelValue": (U) => H(f)(d.value,
|
|
2866
|
+
"onUpdate:modelValue": (U) => H(f)(d.value, C, U)
|
|
2867
2867
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Me("", !0)
|
|
2868
2868
|
]))), 128))
|
|
2869
2869
|
], 4))), 128))
|
|
@@ -2874,7 +2874,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2874
2874
|
]);
|
|
2875
2875
|
};
|
|
2876
2876
|
}
|
|
2877
|
-
}),
|
|
2877
|
+
}), $o = { class: "space-y-16" }, Jo = {
|
|
2878
2878
|
key: 0,
|
|
2879
2879
|
class: "flex fm-typo-en-title-sm-600"
|
|
2880
2880
|
}, Ko = {
|
|
@@ -2898,11 +2898,11 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2898
2898
|
},
|
|
2899
2899
|
setup(e) {
|
|
2900
2900
|
const t = e;
|
|
2901
|
-
return (n, r) => (
|
|
2901
|
+
return (n, r) => (J(), ie("div", $o, [
|
|
2902
2902
|
Se(n.$slots, "top", {}, () => [
|
|
2903
|
-
t.title ? (
|
|
2903
|
+
t.title ? (J(), ie("div", Jo, [
|
|
2904
2904
|
ae("div", null, [
|
|
2905
|
-
t.required ? (
|
|
2905
|
+
t.required ? (J(), ie("span", Ko, "*")) : Me("", !0),
|
|
2906
2906
|
_r(Oe(t.title), 1)
|
|
2907
2907
|
]),
|
|
2908
2908
|
Se(n.$slots, "title-right")
|
|
@@ -2974,14 +2974,14 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2974
2974
|
},
|
|
2975
2975
|
emits: ["update:model-value"],
|
|
2976
2976
|
setup(e, { emit: t }) {
|
|
2977
|
-
const n = e, r = t, { t: l } = He(), a = rt(!1), m =
|
|
2977
|
+
const n = e, r = t, { t: l } = He(), a = rt(!1), m = pr(), u = z(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), i = `checkbox-${Lr(6)}`, g = z(() => u.value !== !0), y = z(
|
|
2978
2978
|
() => n.modelValue.filter((L) => n.options.some((D) => D.value === L))
|
|
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 === y.value.length);
|
|
2982
2982
|
function F() {
|
|
2983
|
-
const L = n.modelValue.filter((D) => !
|
|
2984
|
-
if (
|
|
2983
|
+
const L = n.modelValue.filter((D) => !y.value.includes(D));
|
|
2984
|
+
if (N.value === !0)
|
|
2985
2985
|
r("update:model-value", L);
|
|
2986
2986
|
else {
|
|
2987
2987
|
const D = n.includeDisabledOptionsWhenSelectAll ? n.options.map((f) => f.value) : n.options.filter((f) => !f.disabled).map((f) => f.value);
|
|
@@ -2990,11 +2990,11 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2990
2990
|
}
|
|
2991
2991
|
function w(L, D) {
|
|
2992
2992
|
let f = It(n.modelValue);
|
|
2993
|
-
D ? f.every((
|
|
2993
|
+
D ? f.every((h) => h !== L) && f.push(L) : f = f.filter((h) => h !== L), r("update:model-value", f);
|
|
2994
2994
|
}
|
|
2995
2995
|
return (L, D) => {
|
|
2996
2996
|
const f = we("FmCheckbox");
|
|
2997
|
-
return
|
|
2997
|
+
return J(), Ne(Qo, {
|
|
2998
2998
|
id: i,
|
|
2999
2999
|
title: e.title,
|
|
3000
3000
|
required: !1
|
|
@@ -3003,9 +3003,9 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3003
3003
|
Se(L.$slots, "top")
|
|
3004
3004
|
]),
|
|
3005
3005
|
default: me(() => [
|
|
3006
|
-
n.showAllToggle ? (
|
|
3006
|
+
n.showAllToggle ? (J(), Ne(f, {
|
|
3007
3007
|
key: 0,
|
|
3008
|
-
"model-value":
|
|
3008
|
+
"model-value": N.value,
|
|
3009
3009
|
disabled: e.disable,
|
|
3010
3010
|
label: T.value,
|
|
3011
3011
|
style: nt(`margin-bottom: ${n.gutter}px`),
|
|
@@ -3014,8 +3014,8 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3014
3014
|
value: T.value,
|
|
3015
3015
|
"onUpdate:modelValue": F
|
|
3016
3016
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Me("", !0),
|
|
3017
|
-
(
|
|
3018
|
-
key:
|
|
3017
|
+
(J(!0), ie(ke, null, Ee(e.options, (h, S) => (J(), ie("div", {
|
|
3018
|
+
key: h.value,
|
|
3019
3019
|
style: nt(`margin-bottom: ${S < e.options.length - 1 ? n.gutter : 0}px`),
|
|
3020
3020
|
class: qe(S < e.options.length - 1 ? "q-mb-sm" : "")
|
|
3021
3021
|
}, [
|
|
@@ -3024,48 +3024,48 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { 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(h.value),
|
|
3028
|
+
disabled: e.disable || h.disabled,
|
|
3029
3029
|
size: "sm",
|
|
3030
|
-
label:
|
|
3031
|
-
value:
|
|
3032
|
-
"onUpdate:modelValue": (c) => w(
|
|
3030
|
+
label: h.label,
|
|
3031
|
+
value: h.label,
|
|
3032
|
+
"onUpdate:modelValue": (c) => w(h.value, c)
|
|
3033
3033
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
3034
|
-
Se(L.$slots, `checkbox-${
|
|
3035
|
-
option:
|
|
3036
|
-
selected: e.modelValue.includes(
|
|
3034
|
+
Se(L.$slots, `checkbox-${h.key || h.value}-append`, {
|
|
3035
|
+
option: h,
|
|
3036
|
+
selected: e.modelValue.includes(h.value)
|
|
3037
3037
|
})
|
|
3038
3038
|
]),
|
|
3039
|
-
H(m)[`checkbox-${
|
|
3039
|
+
H(m)[`checkbox-${h.key || h.value}-end`] && (e.modelValue.includes(h.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 || h.disabled }, "col"])
|
|
3042
3042
|
}, [
|
|
3043
|
-
Se(L.$slots, `checkbox-${
|
|
3044
|
-
option:
|
|
3045
|
-
value: e.modelValue.includes(
|
|
3046
|
-
disable: e.disable ||
|
|
3043
|
+
Se(L.$slots, `checkbox-${h.key || h.value}-end`, {
|
|
3044
|
+
option: h,
|
|
3045
|
+
value: e.modelValue.includes(h.value),
|
|
3046
|
+
disable: e.disable || h.disabled
|
|
3047
3047
|
})
|
|
3048
3048
|
], 2)) : Me("", !0)
|
|
3049
3049
|
], 2),
|
|
3050
|
-
H(m)[`checkbox-${
|
|
3050
|
+
H(m)[`checkbox-${h.key || h.value}-bottom`] && (e.modelValue.includes(h.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 || h.disabled }]),
|
|
3053
3053
|
style: nt(`margin-left: ${e.bottomSlotIndent}`)
|
|
3054
3054
|
}, [
|
|
3055
|
-
Se(L.$slots, `checkbox-${
|
|
3056
|
-
option:
|
|
3057
|
-
disable: e.disable ||
|
|
3058
|
-
value: e.modelValue.includes(
|
|
3055
|
+
Se(L.$slots, `checkbox-${h.key || h.value}-bottom`, {
|
|
3056
|
+
option: h,
|
|
3057
|
+
disable: e.disable || h.disabled,
|
|
3058
|
+
value: e.modelValue.includes(h.value)
|
|
3059
3059
|
})
|
|
3060
3060
|
], 6)) : Me("", !0)
|
|
3061
3061
|
], 6))), 128)),
|
|
3062
|
-
a.value && g.value ? (
|
|
3062
|
+
a.value && g.value ? (J(), ie("div", ea, Oe(u.value), 1)) : Me("", !0)
|
|
3063
3063
|
]),
|
|
3064
3064
|
_: 3
|
|
3065
3065
|
}, 8, ["title"]);
|
|
3066
3066
|
};
|
|
3067
3067
|
}
|
|
3068
|
-
}), ta = { class: "fm-typo-en-title-sm-600" },
|
|
3068
|
+
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture", Dn = /* @__PURE__ */ Le({
|
|
3069
3069
|
__name: "ConditionPermission",
|
|
3070
3070
|
props: {
|
|
3071
3071
|
modelValue: {
|
|
@@ -3090,30 +3090,30 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { 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: ht,
|
|
3094
3094
|
// Can only be selected if all other options are selected
|
|
3095
3095
|
disabled: !!n.modelValue && n.options.length > n.modelValue.length
|
|
3096
3096
|
},
|
|
3097
3097
|
...n.options.filter(
|
|
3098
|
-
(
|
|
3098
|
+
(y) => y.label.toLocaleLowerCase().includes(g.value.toLocaleLowerCase())
|
|
3099
3099
|
)
|
|
3100
|
-
]), m = z(() => n.modelValue ? n.modelValue : [
|
|
3101
|
-
const
|
|
3102
|
-
return
|
|
3100
|
+
]), m = z(() => n.modelValue ? n.modelValue : [ht, ...n.options.map((y) => y.value)]), u = z(() => {
|
|
3101
|
+
const y = m.value.filter((T) => T !== ht).length;
|
|
3102
|
+
return y === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: y });
|
|
3103
3103
|
});
|
|
3104
|
-
function i(
|
|
3105
|
-
const T =
|
|
3106
|
-
r("update:model-value", T ? null :
|
|
3104
|
+
function i(y) {
|
|
3105
|
+
const T = y.length === a.value.length;
|
|
3106
|
+
r("update:model-value", T ? null : y.filter((N) => N !== ht));
|
|
3107
3107
|
}
|
|
3108
3108
|
const g = rt("");
|
|
3109
|
-
return (
|
|
3110
|
-
const
|
|
3111
|
-
return
|
|
3109
|
+
return (y, T) => {
|
|
3110
|
+
const N = we("fm-search");
|
|
3111
|
+
return J(), Ne(Bt, { subtitle: u.value }, {
|
|
3112
3112
|
title: me(() => [
|
|
3113
3113
|
ae("p", ta, Oe(H(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3114
3114
|
]),
|
|
3115
3115
|
default: me(() => [
|
|
3116
|
-
e.options.length > 1 ? (
|
|
3116
|
+
e.options.length > 1 ? (J(), Ne(N, {
|
|
3117
3117
|
key: 0,
|
|
3118
3118
|
modelValue: g.value,
|
|
3119
3119
|
"onUpdate:modelValue": T[0] || (T[0] = (F) => g.value = F),
|
|
@@ -3131,10 +3131,10 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3131
3131
|
class: "mt-16",
|
|
3132
3132
|
"onUpdate:modelValue": i
|
|
3133
3133
|
}, et({ _: 2 }, [
|
|
3134
|
-
|
|
3134
|
+
Ee(a.value, (F) => ({
|
|
3135
3135
|
name: `checkbox-${F.value}-append`,
|
|
3136
3136
|
fn: me(({ option: w }) => [
|
|
3137
|
-
Se(
|
|
3137
|
+
Se(y.$slots, `checkbox-${F.value}-append`, { option: w })
|
|
3138
3138
|
])
|
|
3139
3139
|
}))
|
|
3140
3140
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3173,21 +3173,21 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3173
3173
|
value: bt,
|
|
3174
3174
|
disabled: !!n.modelValue && n.roles.length > n.modelValue.length
|
|
3175
3175
|
},
|
|
3176
|
-
...n.roles.map((
|
|
3177
|
-
label:
|
|
3178
|
-
value:
|
|
3179
|
-
disabled: !!g &&
|
|
3176
|
+
...n.roles.map((y) => ({
|
|
3177
|
+
label: y.name,
|
|
3178
|
+
value: y._id,
|
|
3179
|
+
disabled: !!g && y.restaurants.every(({ id: T }) => !g.includes(T))
|
|
3180
3180
|
}))
|
|
3181
3181
|
];
|
|
3182
3182
|
}), m = z(() => n.modelValue ? n.modelValue : [bt, ...n.roles.map((g) => g._id)]), u = z(() => {
|
|
3183
|
-
const g = m.value.filter((
|
|
3183
|
+
const g = m.value.filter((y) => y !== bt).length;
|
|
3184
3184
|
return g === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: g });
|
|
3185
3185
|
});
|
|
3186
3186
|
function i(g) {
|
|
3187
|
-
const
|
|
3188
|
-
r("update:model-value",
|
|
3187
|
+
const y = g.length === a.value.length;
|
|
3188
|
+
r("update:model-value", y ? null : g.filter((T) => T !== bt));
|
|
3189
3189
|
}
|
|
3190
|
-
return (g,
|
|
3190
|
+
return (g, y) => (J(), Ne(Bt, { subtitle: u.value }, {
|
|
3191
3191
|
title: me(() => [
|
|
3192
3192
|
ae("p", na, Oe(H(l)("team.memberForm.permissions.roles")), 1)
|
|
3193
3193
|
]),
|
|
@@ -3202,10 +3202,10 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3202
3202
|
class: "mt-16",
|
|
3203
3203
|
"onUpdate:modelValue": i
|
|
3204
3204
|
}, et({ _: 2 }, [
|
|
3205
|
-
|
|
3205
|
+
Ee(a.value, (T) => ({
|
|
3206
3206
|
name: `checkbox-${T.value}-append`,
|
|
3207
|
-
fn: me(({ option:
|
|
3208
|
-
Se(g.$slots, `checkbox-${T.value}-append`, { option:
|
|
3207
|
+
fn: me(({ option: N }) => [
|
|
3208
|
+
Se(g.$slots, `checkbox-${T.value}-append`, { option: N })
|
|
3209
3209
|
])
|
|
3210
3210
|
}))
|
|
3211
3211
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3243,7 +3243,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3243
3243
|
const n = t, { t: r } = He();
|
|
3244
3244
|
return (l, a) => {
|
|
3245
3245
|
const m = we("FmRadio"), u = we("FmRadioGroup");
|
|
3246
|
-
return
|
|
3246
|
+
return J(), Ne(Cr, {
|
|
3247
3247
|
title: e.title,
|
|
3248
3248
|
builders: e.builders,
|
|
3249
3249
|
"form-value-for": e.formValueFor,
|
|
@@ -3254,7 +3254,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3254
3254
|
onApply: a[1] || (a[1] = (i) => n("apply"))
|
|
3255
3255
|
}, {
|
|
3256
3256
|
section: me(({ builder: i }) => [
|
|
3257
|
-
e.coverOverride.shouldShowInheritToggle(e.entry, i) ? (
|
|
3257
|
+
e.coverOverride.shouldShowInheritToggle(e.entry, i) ? (J(), ie("div", sa, [
|
|
3258
3258
|
ue(u, {
|
|
3259
3259
|
"model-value": e.inheritModeFor(i),
|
|
3260
3260
|
disabled: e.disable,
|
|
@@ -3268,7 +3268,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3268
3268
|
cover: e.coverOverride.coverLabel(e.subject)
|
|
3269
3269
|
})
|
|
3270
3270
|
}, null, 8, ["label"]),
|
|
3271
|
-
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? (
|
|
3271
|
+
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? (J(), ie("p", oa, " (" + Oe(H(r)(
|
|
3272
3272
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).labelKey,
|
|
3273
3273
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).params ?? {}
|
|
3274
3274
|
)) + ") ", 1)) : Me("", !0)
|
|
@@ -3280,7 +3280,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3280
3280
|
]),
|
|
3281
3281
|
_: 2
|
|
3282
3282
|
}, 1032, ["model-value", "disabled", "onUpdate:modelValue"]),
|
|
3283
|
-
e.inheritModeFor(i) === "custom" ? (
|
|
3283
|
+
e.inheritModeFor(i) === "custom" ? (J(), ie("div", aa, [
|
|
3284
3284
|
ue(nn, {
|
|
3285
3285
|
builder: i,
|
|
3286
3286
|
"model-value": e.formValueFor(i),
|
|
@@ -3288,7 +3288,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3288
3288
|
"onUpdate:modelValue": (g) => n("update-form", { builder: i, form: g })
|
|
3289
3289
|
}, null, 8, ["builder", "model-value", "disable", "onUpdate:modelValue"])
|
|
3290
3290
|
])) : Me("", !0)
|
|
3291
|
-
])) : (
|
|
3291
|
+
])) : (J(), Ne(nn, {
|
|
3292
3292
|
key: 1,
|
|
3293
3293
|
builder: i,
|
|
3294
3294
|
"model-value": e.formValueFor(i),
|
|
@@ -3302,7 +3302,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3302
3302
|
}
|
|
3303
3303
|
}), la = {
|
|
3304
3304
|
async readWarehouses() {
|
|
3305
|
-
return
|
|
3305
|
+
return Rr(await kr().get("/warehouses"));
|
|
3306
3306
|
}
|
|
3307
3307
|
};
|
|
3308
3308
|
function Pn(e, t) {
|
|
@@ -3331,35 +3331,35 @@ function ia(e, t, n, r) {
|
|
|
3331
3331
|
);
|
|
3332
3332
|
let u = [...n];
|
|
3333
3333
|
for (const i of l)
|
|
3334
|
-
a.has(i) || (m.has(i) && (u = u.filter((
|
|
3334
|
+
a.has(i) || (m.has(i) && (u = u.filter((y) => y.subject !== i)), (!m.has(i) || Pn(u, i)) && (u = jn(u, i)));
|
|
3335
3335
|
for (const i of a)
|
|
3336
3336
|
if (!l.has(i)) {
|
|
3337
|
-
const g = u.some((
|
|
3338
|
-
if (u = u.filter((
|
|
3339
|
-
const
|
|
3340
|
-
(
|
|
3337
|
+
const g = u.some((y) => y.subject === i && y.inverted);
|
|
3338
|
+
if (u = u.filter((y) => !(y.subject === i && y.inverted)), !g && !m.has(i)) {
|
|
3339
|
+
const y = t.find(
|
|
3340
|
+
(N) => N.subject === i && !N.inverted
|
|
3341
3341
|
), T = r(i);
|
|
3342
|
-
T &&
|
|
3342
|
+
T && y && u.push(Un(T, y.actions, y.conditions));
|
|
3343
3343
|
}
|
|
3344
3344
|
}
|
|
3345
3345
|
for (const i of a) {
|
|
3346
3346
|
if (!l.has(i)) continue;
|
|
3347
|
-
const g = e.find((w) => w.subject === i && !w.inverted),
|
|
3348
|
-
if (!g || !
|
|
3349
|
-
const T = new Set(g.actions),
|
|
3350
|
-
if (T.size ===
|
|
3347
|
+
const g = e.find((w) => w.subject === i && !w.inverted), y = t.find((w) => w.subject === i && !w.inverted);
|
|
3348
|
+
if (!g || !y) continue;
|
|
3349
|
+
const T = new Set(g.actions), N = new Set(y.actions);
|
|
3350
|
+
if (T.size === N.size && [...T].every((w) => N.has(w)))
|
|
3351
3351
|
continue;
|
|
3352
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
|
-
actions: Array.from(
|
|
3356
|
+
actions: Array.from(N)
|
|
3357
3357
|
};
|
|
3358
3358
|
else {
|
|
3359
3359
|
const w = r(i);
|
|
3360
|
-
w && u.push(Un(w, Array.from(
|
|
3360
|
+
w && u.push(Un(w, Array.from(N)));
|
|
3361
3361
|
}
|
|
3362
|
-
T.has("manage") && !
|
|
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
|
}
|
|
@@ -3400,7 +3400,7 @@ function da(e, t) {
|
|
|
3400
3400
|
}
|
|
3401
3401
|
function Mt(e, t) {
|
|
3402
3402
|
const n = new Set(e.actions);
|
|
3403
|
-
return n.has(
|
|
3403
|
+
return n.has(he.Action.manage) ? !0 : t.actions.every((r) => n.has(r));
|
|
3404
3404
|
}
|
|
3405
3405
|
function Xt(e, t) {
|
|
3406
3406
|
const n = We(e);
|
|
@@ -3432,53 +3432,53 @@ function fa(e, t, n) {
|
|
|
3432
3432
|
return tt(We(c), b);
|
|
3433
3433
|
}
|
|
3434
3434
|
function g(c, b) {
|
|
3435
|
-
var
|
|
3436
|
-
if (!(((
|
|
3435
|
+
var k;
|
|
3436
|
+
if (!(((k = b.appliesToActions) == null ? void 0 : k.call(b, c.actions)) ?? !0)) return !1;
|
|
3437
3437
|
const I = l(c.subject);
|
|
3438
3438
|
if (!I) return !1;
|
|
3439
|
-
const
|
|
3440
|
-
return
|
|
3439
|
+
const p = u(I);
|
|
3440
|
+
return p ? Object.keys(i(p, b)).length > 0 : !1;
|
|
3441
3441
|
}
|
|
3442
|
-
function
|
|
3442
|
+
function y(c, b) {
|
|
3443
3443
|
if (!g(c, b) || r.value.has(gt(c.subject, b))) return "custom";
|
|
3444
3444
|
if (c.index === null) return "inherit";
|
|
3445
|
-
const I = e.value[c.index],
|
|
3446
|
-
if (I &&
|
|
3447
|
-
const A = tt(We(I), b),
|
|
3448
|
-
if (JSON.stringify(A) === JSON.stringify(
|
|
3445
|
+
const I = e.value[c.index], p = l(c.subject), k = p ? u(p) : void 0;
|
|
3446
|
+
if (I && k) {
|
|
3447
|
+
const A = tt(We(I), b), B = i(k, b);
|
|
3448
|
+
if (JSON.stringify(A) === JSON.stringify(B)) return "inherit";
|
|
3449
3449
|
}
|
|
3450
3450
|
return "custom";
|
|
3451
3451
|
}
|
|
3452
3452
|
function T(c, b, I) {
|
|
3453
3453
|
if (!b.summarizeForm) return;
|
|
3454
|
-
const
|
|
3455
|
-
if (!
|
|
3456
|
-
const
|
|
3457
|
-
if (!
|
|
3458
|
-
const A = b.fromCondition(i(
|
|
3454
|
+
const p = l(c.subject);
|
|
3455
|
+
if (!p) return;
|
|
3456
|
+
const k = u(p);
|
|
3457
|
+
if (!k) return;
|
|
3458
|
+
const A = b.fromCondition(i(k, b));
|
|
3459
3459
|
return b.summarizeForm(A, { timeZone: I });
|
|
3460
3460
|
}
|
|
3461
|
-
function
|
|
3461
|
+
function N(c, b) {
|
|
3462
3462
|
if (c.index === null) return;
|
|
3463
|
-
const I = [...e.value],
|
|
3463
|
+
const I = [...e.value], p = { ...I[c.index] }, k = Xt(p, b), A = Object.keys(k).length === 0, B = l(c.subject), x = B ? u(B) : void 0, d = x ? Mt(x, p) : !1;
|
|
3464
3464
|
if (A && d)
|
|
3465
3465
|
I.splice(c.index, 1);
|
|
3466
3466
|
else if (x) {
|
|
3467
|
-
const
|
|
3468
|
-
Object.keys(
|
|
3467
|
+
const C = Vn(p, x, b);
|
|
3468
|
+
Object.keys(C).length === 0 ? delete p.conditions : p.conditions = JSON.stringify(C), I[c.index] = p;
|
|
3469
3469
|
} else
|
|
3470
|
-
A ? delete
|
|
3470
|
+
A ? delete p.conditions : p.conditions = JSON.stringify(k), I[c.index] = p;
|
|
3471
3471
|
n(I);
|
|
3472
3472
|
}
|
|
3473
3473
|
function F(c, b, I) {
|
|
3474
|
-
const
|
|
3474
|
+
const p = gt(c.subject, b);
|
|
3475
3475
|
if (I === "inherit") {
|
|
3476
3476
|
const A = new Set(r.value);
|
|
3477
|
-
A.delete(
|
|
3477
|
+
A.delete(p), r.value = A, N(c, b);
|
|
3478
3478
|
return;
|
|
3479
3479
|
}
|
|
3480
|
-
const
|
|
3481
|
-
|
|
3480
|
+
const k = new Set(r.value);
|
|
3481
|
+
k.add(p), r.value = k, c.index === null && h(c, b, b.fromCondition(void 0), {
|
|
3482
3482
|
forceCreateRule: !0
|
|
3483
3483
|
});
|
|
3484
3484
|
}
|
|
@@ -3491,46 +3491,46 @@ function fa(e, t, n) {
|
|
|
3491
3491
|
function L(c, b) {
|
|
3492
3492
|
return e.value.filter((I) => {
|
|
3493
3493
|
if (I.inverted) return !1;
|
|
3494
|
-
const
|
|
3495
|
-
return
|
|
3494
|
+
const p = I.subject;
|
|
3495
|
+
return p === c || l(p) !== c ? !1 : r.value.has(gt(p, b)) ? !0 : Object.keys(tt(We(I), b)).length > 0;
|
|
3496
3496
|
});
|
|
3497
3497
|
}
|
|
3498
3498
|
function D(c, b) {
|
|
3499
|
-
const I = `::${b.builderKey}`,
|
|
3500
|
-
for (const
|
|
3501
|
-
if (!
|
|
3502
|
-
const A =
|
|
3503
|
-
l(A) === c &&
|
|
3499
|
+
const I = `::${b.builderKey}`, p = new Set(r.value);
|
|
3500
|
+
for (const k of p) {
|
|
3501
|
+
if (!k.endsWith(I)) continue;
|
|
3502
|
+
const A = k.slice(0, -I.length);
|
|
3503
|
+
l(A) === c && p.delete(k);
|
|
3504
3504
|
}
|
|
3505
|
-
r.value =
|
|
3505
|
+
r.value = p;
|
|
3506
3506
|
}
|
|
3507
3507
|
function f(c, b, I) {
|
|
3508
|
-
const
|
|
3509
|
-
return c.reduce((
|
|
3508
|
+
const p = b.subject;
|
|
3509
|
+
return c.reduce((k, A) => {
|
|
3510
3510
|
if (A.inverted)
|
|
3511
|
-
return
|
|
3512
|
-
const
|
|
3513
|
-
if (
|
|
3514
|
-
return
|
|
3511
|
+
return k.push(A), k;
|
|
3512
|
+
const B = A.subject;
|
|
3513
|
+
if (B === p || l(B) !== p)
|
|
3514
|
+
return k.push(A), k;
|
|
3515
3515
|
if (Mt(b, A) && Object.keys(Xt(A, I)).length === 0)
|
|
3516
|
-
return
|
|
3516
|
+
return k;
|
|
3517
3517
|
const d = Vn(A, b, I);
|
|
3518
3518
|
if (Object.keys(d).length === 0) {
|
|
3519
|
-
const { conditions:
|
|
3520
|
-
|
|
3519
|
+
const { conditions: C, ...U } = A;
|
|
3520
|
+
k.push(U);
|
|
3521
3521
|
} else
|
|
3522
|
-
|
|
3523
|
-
return
|
|
3522
|
+
k.push({ ...A, conditions: JSON.stringify(d) });
|
|
3523
|
+
return k;
|
|
3524
3524
|
}, []);
|
|
3525
3525
|
}
|
|
3526
|
-
function
|
|
3526
|
+
function h(c, b, I, p = {}) {
|
|
3527
3527
|
var V;
|
|
3528
|
-
const
|
|
3528
|
+
const k = [...e.value];
|
|
3529
3529
|
let A = c.index;
|
|
3530
|
-
const
|
|
3531
|
-
if (A === null && !x && !
|
|
3530
|
+
const B = b.toCondition(I), x = Object.keys(B).length > 0;
|
|
3531
|
+
if (A === null && !x && !p.forceCreateRule) return;
|
|
3532
3532
|
if (A === null) {
|
|
3533
|
-
const j =
|
|
3533
|
+
const j = k.findIndex((G) => !G.inverted && G.subject === c.subject);
|
|
3534
3534
|
if (j !== -1)
|
|
3535
3535
|
A = j;
|
|
3536
3536
|
else {
|
|
@@ -3539,74 +3539,74 @@ function fa(e, t, n) {
|
|
|
3539
3539
|
const {
|
|
3540
3540
|
category: W,
|
|
3541
3541
|
showByFeatureFlag: X,
|
|
3542
|
-
isCategoryCover:
|
|
3542
|
+
isCategoryCover: Y,
|
|
3543
3543
|
...ne
|
|
3544
3544
|
} = G;
|
|
3545
|
-
|
|
3545
|
+
k.push({
|
|
3546
3546
|
...ne,
|
|
3547
3547
|
actions: c.actions.length > 0 ? c.actions : ne.actions
|
|
3548
|
-
}), A =
|
|
3548
|
+
}), A = k.length - 1;
|
|
3549
3549
|
}
|
|
3550
3550
|
}
|
|
3551
|
-
const d = { ...
|
|
3551
|
+
const d = { ...k[A] };
|
|
3552
3552
|
d.actions = [
|
|
3553
3553
|
.../* @__PURE__ */ new Set([...d.actions, ...c.actions])
|
|
3554
3554
|
];
|
|
3555
|
-
const
|
|
3556
|
-
if (Object.keys(U).length === 0 ? delete d.conditions : d.conditions = JSON.stringify(U),
|
|
3555
|
+
const C = We(d), U = Dt(C, [{ builder: b, formValue: I }]);
|
|
3556
|
+
if (Object.keys(U).length === 0 ? delete d.conditions : d.conditions = JSON.stringify(U), k[A] = d, sn(c.subject, t.value)) {
|
|
3557
3557
|
const j = L(c.subject, b), G = () => {
|
|
3558
3558
|
var X;
|
|
3559
|
-
D(c.subject, b), n(f(
|
|
3559
|
+
D(c.subject, b), n(f(k, d, b)), (X = p.afterCommit) == null || X.call(p);
|
|
3560
3560
|
}, W = () => {
|
|
3561
3561
|
var X;
|
|
3562
|
-
n(
|
|
3562
|
+
n(k), (X = p.afterCommit) == null || X.call(p);
|
|
3563
3563
|
};
|
|
3564
3564
|
if (j.length === 0) {
|
|
3565
3565
|
G();
|
|
3566
3566
|
return;
|
|
3567
3567
|
}
|
|
3568
|
-
|
|
3568
|
+
p.onOverridesConflict ? p.onOverridesConflict({ override: G, keep: W }) : W();
|
|
3569
3569
|
return;
|
|
3570
3570
|
}
|
|
3571
|
-
n(
|
|
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
|
-
const
|
|
3576
|
-
let
|
|
3575
|
+
const p = [...e.value];
|
|
3576
|
+
let k = p.findIndex((j) => !j.inverted && j.subject === c.subject), A = k === -1 ? void 0 : { ...p[k] }, B = We(A ?? {}) ?? {};
|
|
3577
3577
|
for (const j of b) {
|
|
3578
3578
|
const G = j.mode === "inherit" ? j.builder.fromCondition(void 0) : j.form;
|
|
3579
|
-
|
|
3579
|
+
B = Dt(B, [{ builder: j.builder, formValue: G }]);
|
|
3580
3580
|
}
|
|
3581
3581
|
const x = b.some((j) => j.mode === "custom");
|
|
3582
|
-
if (!A && (Object.keys(
|
|
3582
|
+
if (!A && (Object.keys(B).length > 0 || x)) {
|
|
3583
3583
|
const j = t.value.find((ne) => ne.subject === c.subject);
|
|
3584
3584
|
if (!j) return;
|
|
3585
3585
|
const {
|
|
3586
3586
|
category: G,
|
|
3587
3587
|
showByFeatureFlag: W,
|
|
3588
3588
|
isCategoryCover: X,
|
|
3589
|
-
...
|
|
3589
|
+
...Y
|
|
3590
3590
|
} = j;
|
|
3591
3591
|
A = {
|
|
3592
|
-
...
|
|
3593
|
-
actions: c.actions.length > 0 ? c.actions :
|
|
3594
|
-
},
|
|
3592
|
+
...Y,
|
|
3593
|
+
actions: c.actions.length > 0 ? c.actions : Y.actions
|
|
3594
|
+
}, p.push(A), k = p.length - 1;
|
|
3595
3595
|
}
|
|
3596
3596
|
if (A) {
|
|
3597
3597
|
const j = l(c.subject), G = j ? u(j) : void 0;
|
|
3598
|
-
if (!x && Object.keys(
|
|
3599
|
-
|
|
3598
|
+
if (!x && Object.keys(B).length === 0 && !!G && Mt(G, A))
|
|
3599
|
+
p.splice(k, 1), A = void 0;
|
|
3600
3600
|
else {
|
|
3601
3601
|
if (A.actions = [
|
|
3602
3602
|
.../* @__PURE__ */ new Set([...A.actions, ...c.actions])
|
|
3603
3603
|
], G)
|
|
3604
3604
|
for (const X of b)
|
|
3605
|
-
X.mode === "inherit" && (
|
|
3606
|
-
...
|
|
3605
|
+
X.mode === "inherit" && (B = {
|
|
3606
|
+
...B,
|
|
3607
3607
|
...tt(We(G), X.builder)
|
|
3608
3608
|
});
|
|
3609
|
-
Object.keys(
|
|
3609
|
+
Object.keys(B).length === 0 ? delete A.conditions : A.conditions = JSON.stringify(B), p[k] = A;
|
|
3610
3610
|
}
|
|
3611
3611
|
}
|
|
3612
3612
|
const d = () => {
|
|
@@ -3616,39 +3616,39 @@ function fa(e, t, n) {
|
|
|
3616
3616
|
G.mode === "custom" ? j.add(W) : j.delete(W);
|
|
3617
3617
|
}
|
|
3618
3618
|
r.value = j;
|
|
3619
|
-
},
|
|
3619
|
+
}, C = (j) => {
|
|
3620
3620
|
var G;
|
|
3621
3621
|
d(), n(j), (G = I.afterCommit) == null || G.call(I);
|
|
3622
3622
|
};
|
|
3623
3623
|
if (!sn(c.subject, t.value) || !A) {
|
|
3624
|
-
|
|
3624
|
+
C(p);
|
|
3625
3625
|
return;
|
|
3626
3626
|
}
|
|
3627
3627
|
const U = b.map((j) => j.builder).filter((j) => L(c.subject, j).length > 0), V = () => {
|
|
3628
|
-
let j =
|
|
3628
|
+
let j = p;
|
|
3629
3629
|
for (const G of b.map((W) => W.builder))
|
|
3630
3630
|
D(c.subject, G), j = f(j, A, G);
|
|
3631
|
-
|
|
3631
|
+
C(j);
|
|
3632
3632
|
};
|
|
3633
3633
|
if (U.length > 0 && I.onOverridesConflict) {
|
|
3634
|
-
I.onOverridesConflict({ override: V, keep: () =>
|
|
3634
|
+
I.onOverridesConflict({ override: V, keep: () => C(p) });
|
|
3635
3635
|
return;
|
|
3636
3636
|
}
|
|
3637
|
-
U.length > 0 ?
|
|
3637
|
+
U.length > 0 ? C(p) : V();
|
|
3638
3638
|
}
|
|
3639
3639
|
return {
|
|
3640
3640
|
getCoverSubject: l,
|
|
3641
3641
|
coverLabel: m,
|
|
3642
3642
|
shouldShowInheritToggle: g,
|
|
3643
|
-
inheritMode:
|
|
3643
|
+
inheritMode: y,
|
|
3644
3644
|
setInheritMode: F,
|
|
3645
3645
|
inheritedSummary: T,
|
|
3646
3646
|
getEffectiveActions: w,
|
|
3647
|
-
updateBuilderCondition:
|
|
3647
|
+
updateBuilderCondition: h,
|
|
3648
3648
|
applyConditionDrafts: S
|
|
3649
3649
|
};
|
|
3650
3650
|
}
|
|
3651
|
-
const _a = { class: "flex flex-col gap-32" },
|
|
3651
|
+
const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, va = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ha = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ba = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ga = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Ia = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ya = "condition-form-select-menu", Da = /* @__PURE__ */ Le({
|
|
3652
3652
|
__name: "PortalPermissionEditor",
|
|
3653
3653
|
props: /* @__PURE__ */ tn({
|
|
3654
3654
|
disable: {
|
|
@@ -3665,10 +3665,10 @@ const _a = { class: "flex flex-col gap-32" }, ha = { 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 =
|
|
3669
|
-
fetchCustomReportPermissions:
|
|
3668
|
+
const n = vr(e, "modelValue"), r = e, l = t, { t: a } = He(), m = hr(), u = br(), { breakpoints: i } = gr(), g = z(() => i.value.xs || i.value.sm), {
|
|
3669
|
+
fetchCustomReportPermissions: y,
|
|
3670
3670
|
customReportPermissions: T
|
|
3671
|
-
} = Ir(),
|
|
3671
|
+
} = Ir(), N = z(() => [
|
|
3672
3672
|
...Gn,
|
|
3673
3673
|
...T.value
|
|
3674
3674
|
]), F = z(() => {
|
|
@@ -3676,7 +3676,7 @@ const _a = { class: "flex flex-col gap-32" }, ha = { class: "p-16 fm-corner-radi
|
|
|
3676
3676
|
return ma(O, o);
|
|
3677
3677
|
});
|
|
3678
3678
|
function w(O) {
|
|
3679
|
-
return
|
|
3679
|
+
return N.value.find((s) => s.subject === O);
|
|
3680
3680
|
}
|
|
3681
3681
|
function L(O, s) {
|
|
3682
3682
|
return rn(O).filter(
|
|
@@ -3687,8 +3687,8 @@ const _a = { class: "flex flex-col gap-32" }, ha = { class: "p-16 fm-corner-radi
|
|
|
3687
3687
|
);
|
|
3688
3688
|
}
|
|
3689
3689
|
const D = z(() => {
|
|
3690
|
-
const O =
|
|
3691
|
-
return
|
|
3690
|
+
const O = N.value.filter((o) => !c.includes(o.subject)).map((o) => o.subject);
|
|
3691
|
+
return yr(
|
|
3692
3692
|
r.inheritPermissions.map((o) => ({
|
|
3693
3693
|
...o,
|
|
3694
3694
|
permissions: o.permissions.filter((_) => O.includes(_.subject))
|
|
@@ -3701,7 +3701,7 @@ const _a = { class: "flex flex-col gap-32" }, ha = { 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 === he.Subject.Business.inventory_stock
|
|
3705
3705
|
)
|
|
3706
3706
|
}));
|
|
3707
3707
|
return At(
|
|
@@ -3709,22 +3709,22 @@ const _a = { class: "flex flex-col gap-32" }, ha = { class: "p-16 fm-corner-radi
|
|
|
3709
3709
|
"warehouseId",
|
|
3710
3710
|
I.value.map((s) => s._id)
|
|
3711
3711
|
);
|
|
3712
|
-
}),
|
|
3712
|
+
}), h = 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 === he.Subject.Restaurant.restaurant
|
|
3717
3717
|
)
|
|
3718
3718
|
}));
|
|
3719
3719
|
return At(
|
|
3720
3720
|
O,
|
|
3721
3721
|
"restaurantId",
|
|
3722
|
-
|
|
3722
|
+
B.value.map((s) => s._id)
|
|
3723
3723
|
);
|
|
3724
3724
|
}), S = z(() => {
|
|
3725
3725
|
const O = r.inheritPermissions.map((s) => ({
|
|
3726
3726
|
...s,
|
|
3727
|
-
permissions: s.permissions.filter((o) => o.subject ===
|
|
3727
|
+
permissions: s.permissions.filter((o) => o.subject === he.Subject.Business.role)
|
|
3728
3728
|
}));
|
|
3729
3729
|
return At(
|
|
3730
3730
|
O,
|
|
@@ -3732,73 +3732,73 @@ const _a = { class: "flex flex-col gap-32" }, ha = { class: "p-16 fm-corner-radi
|
|
|
3732
3732
|
x.value.map((s) => s._id)
|
|
3733
3733
|
);
|
|
3734
3734
|
}), c = [
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3735
|
+
he.Subject.Business.restaurant,
|
|
3736
|
+
he.Subject.Business.role,
|
|
3737
|
+
he.Subject.Restaurant.restaurant,
|
|
3738
|
+
he.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 === he.Subject.Business.inventory_stock
|
|
3743
3743
|
);
|
|
3744
3744
|
return O ? O.conditions ? JSON.parse(O.conditions).warehouseId.$in : null : [];
|
|
3745
|
-
}), I = rt([]),
|
|
3745
|
+
}), I = rt([]), p = z(() => I.value.map((O) => ({
|
|
3746
3746
|
label: O.profile.name,
|
|
3747
3747
|
value: O._id
|
|
3748
3748
|
})));
|
|
3749
|
-
function
|
|
3749
|
+
function k(O) {
|
|
3750
3750
|
const s = A(n.value, O);
|
|
3751
3751
|
n.value = s;
|
|
3752
3752
|
}
|
|
3753
3753
|
function A(O, s) {
|
|
3754
3754
|
let o = It(
|
|
3755
|
-
O.filter((_) => _.subject !==
|
|
3755
|
+
O.filter((_) => _.subject !== he.Subject.Business.inventory_stock)
|
|
3756
3756
|
);
|
|
3757
3757
|
if (!s || s.length > 0) {
|
|
3758
3758
|
const _ = {
|
|
3759
|
-
actions: [
|
|
3760
|
-
subject:
|
|
3759
|
+
actions: [he.Action.manage],
|
|
3760
|
+
subject: he.Subject.Business.inventory_stock
|
|
3761
3761
|
};
|
|
3762
3762
|
s && (_.conditions = JSON.stringify({ warehouseId: { $in: s } })), o.push(_);
|
|
3763
3763
|
}
|
|
3764
3764
|
return o;
|
|
3765
3765
|
}
|
|
3766
|
-
const { restaurants:
|
|
3766
|
+
const { restaurants: B } = m, x = Mr().roles, d = z(() => B.value.map((O) => ({
|
|
3767
3767
|
label: `${O.profile.code ? O.profile.code + "-" : ""}${O.profile.name}`,
|
|
3768
3768
|
value: O._id
|
|
3769
|
-
}))),
|
|
3769
|
+
}))), C = z(() => B.value.reduce((O, s) => (O[s._id] = x.value.filter((o) => o.restaurants.some((_) => _.id === s._id)).map((o) => o._id), O), {})), U = z(() => Er(n.value));
|
|
3770
3770
|
function V(O) {
|
|
3771
3771
|
const s = G(n.value, O);
|
|
3772
3772
|
n.value = s;
|
|
3773
3773
|
}
|
|
3774
|
-
const j = z(() =>
|
|
3774
|
+
const j = z(() => Nr(n.value));
|
|
3775
3775
|
function G(O, s) {
|
|
3776
3776
|
var _;
|
|
3777
3777
|
let o = It(
|
|
3778
3778
|
O.filter(
|
|
3779
|
-
(
|
|
3779
|
+
(R) => R.subject !== he.Subject.Business.restaurant && R.subject !== he.Subject.Restaurant.restaurant
|
|
3780
3780
|
)
|
|
3781
3781
|
);
|
|
3782
3782
|
if (!s || s.length > 0) {
|
|
3783
3783
|
const {
|
|
3784
|
-
category:
|
|
3784
|
+
category: R,
|
|
3785
3785
|
showByFeatureFlag: M,
|
|
3786
3786
|
...P
|
|
3787
3787
|
} = Ar.restaurant;
|
|
3788
3788
|
o.push(P);
|
|
3789
|
-
const
|
|
3790
|
-
actions: [
|
|
3791
|
-
subject:
|
|
3789
|
+
const v = {
|
|
3790
|
+
actions: [he.Action.manage],
|
|
3791
|
+
subject: he.Subject.Restaurant.restaurant
|
|
3792
3792
|
};
|
|
3793
|
-
s && (
|
|
3793
|
+
s && (v.conditions = JSON.stringify({ restaurantId: { $in: s } })), o.push(v);
|
|
3794
3794
|
}
|
|
3795
3795
|
if (s) {
|
|
3796
|
-
const
|
|
3797
|
-
...new Set(s.map((P) =>
|
|
3796
|
+
const R = [
|
|
3797
|
+
...new Set(s.map((P) => C.value[P]).flatMap((P) => P))
|
|
3798
3798
|
], M = x.value.map((P) => P._id);
|
|
3799
|
-
|
|
3799
|
+
R.length !== M.length && (o = X(
|
|
3800
3800
|
o,
|
|
3801
|
-
(_ = j.value || M) == null ? void 0 : _.filter((P) =>
|
|
3801
|
+
(_ = j.value || M) == null ? void 0 : _.filter((P) => R.includes(P))
|
|
3802
3802
|
));
|
|
3803
3803
|
}
|
|
3804
3804
|
return o;
|
|
@@ -3809,12 +3809,12 @@ const _a = { class: "flex flex-col gap-32" }, ha = { class: "p-16 fm-corner-radi
|
|
|
3809
3809
|
}
|
|
3810
3810
|
function X(O, s) {
|
|
3811
3811
|
let o = It(
|
|
3812
|
-
O.filter((_) => _.subject !==
|
|
3812
|
+
O.filter((_) => _.subject !== he.Subject.Business.role)
|
|
3813
3813
|
);
|
|
3814
3814
|
if (s && s.length > 0) {
|
|
3815
3815
|
const _ = {
|
|
3816
|
-
actions: [
|
|
3817
|
-
subject:
|
|
3816
|
+
actions: [he.Action.manage],
|
|
3817
|
+
subject: he.Subject.Business.role,
|
|
3818
3818
|
conditions: JSON.stringify({ roleId: { $in: s } })
|
|
3819
3819
|
};
|
|
3820
3820
|
o.push(_);
|
|
@@ -3824,10 +3824,10 @@ const _a = { class: "flex flex-col gap-32" }, ha = { class: "p-16 fm-corner-radi
|
|
|
3824
3824
|
xn(async () => {
|
|
3825
3825
|
await Promise.all([
|
|
3826
3826
|
la.readWarehouses().then((O) => I.value = O),
|
|
3827
|
-
|
|
3827
|
+
y()
|
|
3828
3828
|
]);
|
|
3829
3829
|
});
|
|
3830
|
-
const
|
|
3830
|
+
const Y = z(() => Zn(
|
|
3831
3831
|
n.value,
|
|
3832
3832
|
Xn
|
|
3833
3833
|
).filter((o) => {
|
|
@@ -3837,32 +3837,32 @@ const _a = { class: "flex flex-col gap-32" }, ha = { 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
|
|
3841
|
-
if (!
|
|
3842
|
-
const M =
|
|
3843
|
-
return M.length <= 1 || M.filter((
|
|
3840
|
+
const R = w(o.subject);
|
|
3841
|
+
if (!R) return o;
|
|
3842
|
+
const M = R.actions;
|
|
3843
|
+
return M.length <= 1 || M.filter((v) => !_.includes(v)).length === 0 ? o : { ...o, actions: [...M] };
|
|
3844
3844
|
}));
|
|
3845
3845
|
function ne(O) {
|
|
3846
3846
|
n.value = ia(
|
|
3847
|
-
|
|
3847
|
+
Y.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 Y.value.map((s) => ({
|
|
3858
3858
|
rule: s,
|
|
3859
3859
|
index: n.value.findIndex(
|
|
3860
3860
|
(o) => !o.inverted && o.subject === s.subject
|
|
3861
3861
|
)
|
|
3862
3862
|
})).filter(({ rule: s }) => !s.inverted).forEach(({ rule: s, index: o }) => {
|
|
3863
3863
|
var P;
|
|
3864
|
-
const _ = s.actions,
|
|
3865
|
-
if (
|
|
3864
|
+
const _ = s.actions, R = L(s.subject, _);
|
|
3865
|
+
if (R.length === 0) return;
|
|
3866
3866
|
let M;
|
|
3867
3867
|
try {
|
|
3868
3868
|
M = s.conditions ? JSON.parse(s.conditions) : void 0;
|
|
@@ -3875,26 +3875,26 @@ const _a = { class: "flex flex-col gap-32" }, ha = { class: "p-16 fm-corner-radi
|
|
|
3875
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:
|
|
3879
|
-
builder:
|
|
3880
|
-
formValue:
|
|
3878
|
+
sections: R.map((v) => ({
|
|
3879
|
+
builder: v,
|
|
3880
|
+
formValue: v.fromCondition(tt(M, v))
|
|
3881
3881
|
}))
|
|
3882
3882
|
});
|
|
3883
3883
|
}), O;
|
|
3884
|
-
}), ce = fa(n,
|
|
3884
|
+
}), ce = fa(n, N, (O) => {
|
|
3885
3885
|
n.value = O;
|
|
3886
3886
|
}), se = Tr(n), fe = rt(null);
|
|
3887
3887
|
function q(O, s) {
|
|
3888
3888
|
const o = _e.value.get(O);
|
|
3889
3889
|
if (o) return o;
|
|
3890
|
-
const _ = ce.getEffectiveActions(O),
|
|
3891
|
-
if (
|
|
3890
|
+
const _ = ce.getEffectiveActions(O), R = L(O, _);
|
|
3891
|
+
if (R.length !== 0)
|
|
3892
3892
|
return {
|
|
3893
3893
|
index: null,
|
|
3894
3894
|
subject: O,
|
|
3895
3895
|
label: s,
|
|
3896
3896
|
actions: _,
|
|
3897
|
-
sections:
|
|
3897
|
+
sections: R.map((M) => ({
|
|
3898
3898
|
builder: M,
|
|
3899
3899
|
formValue: M.fromCondition(void 0)
|
|
3900
3900
|
}))
|
|
@@ -3903,14 +3903,14 @@ const _a = { class: "flex flex-col gap-32" }, ha = { class: "p-16 fm-corner-radi
|
|
|
3903
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
|
-
const _ = O.sections.find((
|
|
3906
|
+
const _ = O.sections.find((R) => R.builder.builderKey === s.builderKey);
|
|
3907
3907
|
return _ == null ? void 0 : _.formValue;
|
|
3908
3908
|
}
|
|
3909
3909
|
function K(O, s) {
|
|
3910
3910
|
const o = se.getDraft({ subject: O.subject, builderKey: s.builderKey });
|
|
3911
3911
|
return o != null && o.inheritMode ? o.inheritMode : ce.inheritMode(O, s);
|
|
3912
3912
|
}
|
|
3913
|
-
function
|
|
3913
|
+
function pe(O, s, o) {
|
|
3914
3914
|
const _ = se.getDraft({
|
|
3915
3915
|
subject: O.subject,
|
|
3916
3916
|
builderKey: s.builderKey
|
|
@@ -3923,15 +3923,15 @@ const _a = { class: "flex flex-col gap-32" }, ha = { class: "p-16 fm-corner-radi
|
|
|
3923
3923
|
}
|
|
3924
3924
|
);
|
|
3925
3925
|
}
|
|
3926
|
-
function
|
|
3926
|
+
function Je(O, s, o) {
|
|
3927
3927
|
const _ = se.getDraft({
|
|
3928
3928
|
subject: O.subject,
|
|
3929
3929
|
builderKey: s.builderKey
|
|
3930
|
-
}),
|
|
3930
|
+
}), R = O.sections.find((M) => M.builder.builderKey === s.builderKey);
|
|
3931
3931
|
se.setDraft(
|
|
3932
3932
|
{ subject: O.subject, builderKey: s.builderKey },
|
|
3933
3933
|
{
|
|
3934
|
-
formValue: (_ == null ? void 0 : _.formValue) ?? (
|
|
3934
|
+
formValue: (_ == null ? void 0 : _.formValue) ?? (R == null ? void 0 : R.formValue),
|
|
3935
3935
|
inheritMode: o
|
|
3936
3936
|
}
|
|
3937
3937
|
);
|
|
@@ -3941,11 +3941,11 @@ const _a = { class: "flex flex-col gap-32" }, ha = { class: "p-16 fm-corner-radi
|
|
|
3941
3941
|
}
|
|
3942
3942
|
function Ve(O, s) {
|
|
3943
3943
|
const o = O.sections.flatMap((_) => {
|
|
3944
|
-
const
|
|
3944
|
+
const R = se.getDraft({
|
|
3945
3945
|
subject: O.subject,
|
|
3946
3946
|
builderKey: _.builder.builderKey
|
|
3947
3947
|
});
|
|
3948
|
-
return
|
|
3948
|
+
return R ? [{ builder: _.builder, form: R.formValue, mode: R.inheritMode ?? "custom" }] : [];
|
|
3949
3949
|
});
|
|
3950
3950
|
ce.applyConditionDrafts(O, o, {
|
|
3951
3951
|
afterCommit: () => {
|
|
@@ -3957,12 +3957,12 @@ const _a = { class: "flex flex-col gap-32" }, ha = { class: "p-16 fm-corner-radi
|
|
|
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
|
-
let
|
|
3960
|
+
let Ce = !1;
|
|
3961
3961
|
function Xe(O, s = {}) {
|
|
3962
3962
|
return {
|
|
3963
3963
|
...s,
|
|
3964
3964
|
onOverridesConflict: ({ override: o, keep: _ }) => {
|
|
3965
|
-
|
|
3965
|
+
Ce || (Ce = !0, u.open({
|
|
3966
3966
|
title: a("team.memberForm.permissions.conditionCover.confirmTitle"),
|
|
3967
3967
|
message: a("team.memberForm.permissions.conditionCover.confirmMessage", {
|
|
3968
3968
|
cover: O.label
|
|
@@ -3978,11 +3978,11 @@ const _a = { class: "flex flex-col gap-32" }, ha = { class: "p-16 fm-corner-radi
|
|
|
3978
3978
|
close: !1
|
|
3979
3979
|
}
|
|
3980
3980
|
}).onPrimary(() => {
|
|
3981
|
-
o(),
|
|
3981
|
+
o(), Ce = !1, u.close();
|
|
3982
3982
|
}).onSecondary(() => {
|
|
3983
|
-
_(),
|
|
3983
|
+
_(), Ce = !1, u.close();
|
|
3984
3984
|
}).onClose(() => {
|
|
3985
|
-
|
|
3985
|
+
Ce = !1;
|
|
3986
3986
|
}));
|
|
3987
3987
|
}
|
|
3988
3988
|
};
|
|
@@ -3994,26 +3994,26 @@ const _a = { class: "flex flex-col gap-32" }, ha = { class: "p-16 fm-corner-radi
|
|
|
3994
3994
|
},
|
|
3995
3995
|
{ deep: !0 }
|
|
3996
3996
|
), (O, s) => {
|
|
3997
|
-
const o = we("FmIcon"), _ = we("FmBottomSheet"),
|
|
3998
|
-
return
|
|
3999
|
-
ae("div",
|
|
3997
|
+
const o = we("FmIcon"), _ = we("FmBottomSheet"), R = we("FmPopover");
|
|
3998
|
+
return J(), ie("div", _a, [
|
|
3999
|
+
ae("div", pa, [
|
|
4000
4000
|
ue(Ho, {
|
|
4001
|
-
"model-value":
|
|
4001
|
+
"model-value": Y.value,
|
|
4002
4002
|
"excluded-subjects": c,
|
|
4003
4003
|
"additional-permissions": H(T),
|
|
4004
4004
|
"onUpdate:modelValue": ne
|
|
4005
4005
|
}, et({ _: 2 }, [
|
|
4006
|
-
|
|
4006
|
+
Ee(D.value, (M) => ({
|
|
4007
4007
|
name: `checkbox-${M.id}-append`,
|
|
4008
4008
|
fn: me(() => [
|
|
4009
|
-
ue(
|
|
4009
|
+
ue(vt, { item: M }, null, 8, ["item"])
|
|
4010
4010
|
])
|
|
4011
4011
|
})),
|
|
4012
|
-
|
|
4012
|
+
Ee(Q.value, (M) => ({
|
|
4013
4013
|
name: `checkbox-${M}-icon`,
|
|
4014
|
-
fn: me(({ option: P, isEffectiveSelected:
|
|
4015
|
-
|
|
4016
|
-
g.value ? (
|
|
4014
|
+
fn: me(({ option: P, isEffectiveSelected: v }) => [
|
|
4015
|
+
v && q(M, P.label) ? (J(), ie(ke, { key: 0 }, [
|
|
4016
|
+
g.value ? (J(), Ne(_, {
|
|
4017
4017
|
key: 0,
|
|
4018
4018
|
"model-value": fe.value === M,
|
|
4019
4019
|
header: H(a)("team.memberForm.permissions.conditionTitle", {
|
|
@@ -4022,12 +4022,12 @@ const _a = { class: "flex flex-col gap-32" }, ha = { class: "p-16 fm-corner-radi
|
|
|
4022
4022
|
"dismiss-away": "",
|
|
4023
4023
|
"z-index": 100,
|
|
4024
4024
|
class: "h-5 flex items-center",
|
|
4025
|
-
"onUpdate:modelValue": (
|
|
4026
|
-
fe.value =
|
|
4025
|
+
"onUpdate:modelValue": (E) => {
|
|
4026
|
+
fe.value = E ? M : null, E || H(se).clearDraftsForSubject(M);
|
|
4027
4027
|
}
|
|
4028
4028
|
}, {
|
|
4029
4029
|
"bottom-sheet-button": me(() => [
|
|
4030
|
-
ae("div",
|
|
4030
|
+
ae("div", va, [
|
|
4031
4031
|
ue(o, {
|
|
4032
4032
|
name: "settings",
|
|
4033
4033
|
size: "sm",
|
|
@@ -4041,33 +4041,33 @@ const _a = { class: "flex flex-col gap-32" }, ha = { class: "p-16 fm-corner-radi
|
|
|
4041
4041
|
default: me(() => [
|
|
4042
4042
|
ue(Fn, {
|
|
4043
4043
|
entry: q(M, P.label),
|
|
4044
|
-
builders: q(M, P.label).sections.map((
|
|
4044
|
+
builders: q(M, P.label).sections.map((E) => E.builder),
|
|
4045
4045
|
subject: M,
|
|
4046
4046
|
"time-zone": F.value,
|
|
4047
4047
|
"cover-override": H(ce),
|
|
4048
|
-
"inherit-mode-for": (
|
|
4049
|
-
"form-value-for": (
|
|
4048
|
+
"inherit-mode-for": (E) => K(q(M, P.label), E),
|
|
4049
|
+
"form-value-for": (E) => De(q(M, P.label), E),
|
|
4050
4050
|
"has-changes": Ke(M),
|
|
4051
4051
|
disable: e.disable,
|
|
4052
4052
|
"full-width": !0,
|
|
4053
|
-
onUpdateInheritMode: ({ builder:
|
|
4054
|
-
onUpdateForm: ({ builder:
|
|
4055
|
-
onApply: (
|
|
4053
|
+
onUpdateInheritMode: ({ builder: E, mode: $ }) => Je(q(M, P.label), E, $),
|
|
4054
|
+
onUpdateForm: ({ builder: E, form: $ }) => pe(q(M, P.label), E, $),
|
|
4055
|
+
onApply: (E) => Ve(q(M, P.label), () => fe.value = null)
|
|
4056
4056
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4057
4057
|
]),
|
|
4058
4058
|
_: 2
|
|
4059
|
-
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (
|
|
4059
|
+
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (J(), Ne(R, {
|
|
4060
4060
|
key: 1,
|
|
4061
4061
|
disabled: e.disable,
|
|
4062
4062
|
"z-index": 100,
|
|
4063
|
-
"exclude-el-from-click-outside": [
|
|
4063
|
+
"exclude-el-from-click-outside": [ya],
|
|
4064
4064
|
class: "h-5 flex items-center",
|
|
4065
|
-
onPopoverChanged: (
|
|
4066
|
-
|
|
4065
|
+
onPopoverChanged: (E) => {
|
|
4066
|
+
E || H(se).clearDraftsForSubject(M);
|
|
4067
4067
|
}
|
|
4068
4068
|
}, {
|
|
4069
4069
|
"popover-button": me(() => [
|
|
4070
|
-
ae("div",
|
|
4070
|
+
ae("div", ha, [
|
|
4071
4071
|
ue(o, {
|
|
4072
4072
|
name: "settings",
|
|
4073
4073
|
size: "sm",
|
|
@@ -4078,32 +4078,32 @@ const _a = { class: "flex flex-col gap-32" }, ha = { class: "p-16 fm-corner-radi
|
|
|
4078
4078
|
}, null, 8, ["class"])
|
|
4079
4079
|
])
|
|
4080
4080
|
]),
|
|
4081
|
-
default: me(({ hide:
|
|
4081
|
+
default: me(({ hide: E }) => [
|
|
4082
4082
|
ue(Fn, {
|
|
4083
4083
|
entry: q(M, P.label),
|
|
4084
|
-
builders: q(M, P.label).sections.map((
|
|
4084
|
+
builders: q(M, P.label).sections.map(($) => $.builder),
|
|
4085
4085
|
subject: M,
|
|
4086
4086
|
"time-zone": F.value,
|
|
4087
4087
|
"cover-override": H(ce),
|
|
4088
4088
|
title: H(a)("team.memberForm.permissions.conditionTitle", {
|
|
4089
4089
|
context: q(M, P.label).label
|
|
4090
4090
|
}),
|
|
4091
|
-
"inherit-mode-for": (
|
|
4092
|
-
"form-value-for": (
|
|
4091
|
+
"inherit-mode-for": ($) => K(q(M, P.label), $),
|
|
4092
|
+
"form-value-for": ($) => De(q(M, P.label), $),
|
|
4093
4093
|
"has-changes": Ke(M),
|
|
4094
4094
|
disable: e.disable,
|
|
4095
|
-
onUpdateInheritMode: ({ builder:
|
|
4095
|
+
onUpdateInheritMode: ({ builder: $, mode: le }) => Je(
|
|
4096
4096
|
q(M, P.label),
|
|
4097
|
-
|
|
4097
|
+
$,
|
|
4098
4098
|
le
|
|
4099
4099
|
),
|
|
4100
|
-
onUpdateForm: ({ builder:
|
|
4101
|
-
onApply: (
|
|
4100
|
+
onUpdateForm: ({ builder: $, form: le }) => pe(q(M, P.label), $, le),
|
|
4101
|
+
onApply: ($) => Ve(q(M, P.label), E)
|
|
4102
4102
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "title", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4103
4103
|
]),
|
|
4104
4104
|
_: 2
|
|
4105
4105
|
}, 1032, ["disabled", "exclude-el-from-click-outside", "onPopoverChanged"]))
|
|
4106
|
-
], 64)) : (
|
|
4106
|
+
], 64)) : (J(), Ne(o, {
|
|
4107
4107
|
key: 1,
|
|
4108
4108
|
name: "settings",
|
|
4109
4109
|
size: "sm",
|
|
@@ -4116,14 +4116,14 @@ const _a = { class: "flex flex-col gap-32" }, ha = { class: "p-16 fm-corner-radi
|
|
|
4116
4116
|
ae("div", ba, [
|
|
4117
4117
|
ue(Dn, {
|
|
4118
4118
|
"model-value": b.value,
|
|
4119
|
-
options:
|
|
4119
|
+
options: p.value,
|
|
4120
4120
|
context: H(a)("team.labels.warehouse"),
|
|
4121
|
-
"onUpdate:modelValue":
|
|
4121
|
+
"onUpdate:modelValue": k
|
|
4122
4122
|
}, et({ _: 2 }, [
|
|
4123
|
-
|
|
4123
|
+
Ee(f.value, (M) => ({
|
|
4124
4124
|
name: `checkbox-${M.id}-append`,
|
|
4125
4125
|
fn: me(() => [
|
|
4126
|
-
ue(
|
|
4126
|
+
ue(vt, { item: M }, null, 8, ["item"])
|
|
4127
4127
|
])
|
|
4128
4128
|
}))
|
|
4129
4129
|
]), 1032, ["model-value", "options", "context"])
|
|
@@ -4135,10 +4135,10 @@ const _a = { class: "flex flex-col gap-32" }, ha = { class: "p-16 fm-corner-radi
|
|
|
4135
4135
|
context: H(a)("team.labels.restaurant"),
|
|
4136
4136
|
"onUpdate:modelValue": V
|
|
4137
4137
|
}, et({ _: 2 }, [
|
|
4138
|
-
|
|
4138
|
+
Ee(h.value, (M) => ({
|
|
4139
4139
|
name: `checkbox-${M.id}-append`,
|
|
4140
4140
|
fn: me(() => [
|
|
4141
|
-
ue(
|
|
4141
|
+
ue(vt, { item: M }, null, 8, ["item"])
|
|
4142
4142
|
])
|
|
4143
4143
|
}))
|
|
4144
4144
|
]), 1032, ["model-value", "options", "context"])
|
|
@@ -4150,10 +4150,10 @@ const _a = { class: "flex flex-col gap-32" }, ha = { class: "p-16 fm-corner-radi
|
|
|
4150
4150
|
"restaurant-ids": U.value,
|
|
4151
4151
|
"onUpdate:modelValue": W
|
|
4152
4152
|
}, et({ _: 2 }, [
|
|
4153
|
-
|
|
4153
|
+
Ee(S.value, (M) => ({
|
|
4154
4154
|
name: `checkbox-${M.id}-append`,
|
|
4155
4155
|
fn: me(() => [
|
|
4156
|
-
ue(
|
|
4156
|
+
ue(vt, { item: M }, null, 8, ["item"])
|
|
4157
4157
|
])
|
|
4158
4158
|
}))
|
|
4159
4159
|
]), 1032, ["roles", "model-value", "restaurant-ids"])
|