@feedmepos/mf-hrm-portal 2.3.0-dev.23 → 2.3.0-dev.25
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-HeJE6bXI.js → ApprovalCodeList-3wBWXPam.js} +4 -4
- package/dist/{AuditLogList-BkkwVqgA.js → AuditLogList-Dlph1SCP.js} +4 -4
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-A0010E4h.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CJW-spxu.js} +2 -2
- package/dist/{EmployeeList-CGtKwz11.js → EmployeeList-RAaFG8p6.js} +6 -6
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-SMVEHSvt.js → FormItem.vue_vue_type_script_setup_true_lang-BaMXEfJr.js} +1 -1
- package/dist/{GrantUserList-CfmmaAKD.js → GrantUserList-CxL7ELvs.js} +5 -5
- package/dist/{Main-BFmIs6Bo.js → Main-Ccg399Ra.js} +5 -5
- package/dist/{Main-D5D1XL4d.js → Main-D19GDYjL.js} +2 -2
- package/dist/{Main-BGeNzzJV.js → Main-DQcp3NRa.js} +9 -9
- package/dist/{PermissionSetList-DSL8Ad6l.js → PermissionSetList-CdQjM54-.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CF8xJ_3T.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CzUGRJe4.js} +821 -821
- package/dist/{RoleList-D2X3wdBw.js → RoleList-DTyp8dcV.js} +7 -7
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Co8M_O6w.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-BOg6mQYF.js} +1 -1
- package/dist/{ScheduleGeneralPage-CnoOZH1_.js → ScheduleGeneralPage-Cn_jBdfC.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-DoHZ_Dww.js → ScheduleModal.vue_vue_type_script_setup_true_lang-BbSv92Ry.js} +7 -7
- package/dist/{SchedulePage-BP3BXmND.js → SchedulePage-CTAIOE59.js} +4259 -4250
- package/dist/{SchedulePositionPage-BazSzvrh.js → SchedulePositionPage-BIXuH4Pk.js} +3 -3
- package/dist/{SelectFilter-BdslMtMp.js → SelectFilter-DvWwcdKo.js} +1 -1
- package/dist/{TeamMemberList-B86cQsp9.js → TeamMemberList-CqTvtoGc.js} +7 -7
- package/dist/{TimesheetList-Cg3kANnw.js → TimesheetList-CanJSlhF.js} +6 -6
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CKoQaOk1.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-UAdvuPmt.js} +2 -2
- package/dist/{app-Dmw_06Ep.js → app-CTAbM1YW.js} +8 -8
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-VRO6_wdL.js → dayjs.min-Bv1ruj1a.js} +1 -1
- package/dist/{employee-BoHcXkhJ.js → employee-D-jow9b7.js} +3 -3
- package/dist/{iteration-DE0WDDoe.js → iteration-KG5GZWLu.js} +1 -1
- package/dist/{lodash-C70tGp_f.js → lodash-BCapmkFh.js} +1 -1
- package/dist/{role-DyGoiMku.js → role-Dx1RfQ1m.js} +1 -1
- package/dist/{rule-BXwcd4Jm.js → rule-D8e9LFze.js} +2 -2
- package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-CDt1z_Ww.js → useReportPermissions-DXiMU0Is.js} +3 -3
- package/package.json +4 -4
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { getCurrentInstance as Bt, inject as ur, ref as rt, shallowRef as
|
|
2
|
-
import { useI18n as He, useCoreStore as
|
|
1
|
+
import { getCurrentInstance as Bt, inject as ur, ref as rt, shallowRef as mr, computed as z, watch as Dt, onMounted as xn, onUnmounted as dr, defineComponent as Le, h as Wn, createVNode as ue, Text as fr, Fragment as Re, resolveComponent as De, createBlock as Ce, openBlock as J, withCtx as me, createElementVNode as ae, createElementBlock as ie, toDisplayString as Oe, unref as H, renderList as ye, toRef as en, normalizeStyle as nt, renderSlot as Se, createCommentVNode as Me, createTextVNode as _r, useSlots as hr, normalizeClass as qe, createSlots as et, mergeModels as tn, useModel as vr } from "vue";
|
|
2
|
+
import { useI18n as He, useCoreStore as pr } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialog as br, useBreakpoints as gr } from "@feedmepos/ui-library";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { p as Gn, N as
|
|
6
|
-
import { _ as Yt, a as
|
|
7
|
-
import { u as Or, v as Sr, c as
|
|
8
|
-
import { c as It } from "./iteration-
|
|
5
|
+
import { p as Gn, N as Zn, d as Ir, P as Er, w as At, x as yr, y as Cr } from "./rule-D8e9LFze.js";
|
|
6
|
+
import { _ as Yt, a as Nr, b as nn, u as Tr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CJW-spxu.js";
|
|
7
|
+
import { u as Or, v as Sr, c as Xn, S as wt, A as tt, d as pe, k as rn, O as Ar } from "./app-CTAbM1YW.js";
|
|
8
|
+
import { c as It } from "./iteration-KG5GZWLu.js";
|
|
9
9
|
import { r as Lr } from "./string-VNuQNweN.js";
|
|
10
10
|
import { g as kr, b as Rr } from "./restaurant-D2mfKHaH.js";
|
|
11
|
-
import { u as Mr } from "./role-
|
|
11
|
+
import { u as Mr } from "./role-Dx1RfQ1m.js";
|
|
12
12
|
function Bn(e, t) {
|
|
13
13
|
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
14
14
|
}
|
|
@@ -31,17 +31,17 @@ function sn(e, t) {
|
|
|
31
31
|
* (c) 2024 kazuya kawaguchi
|
|
32
32
|
* Released under the MIT License.
|
|
33
33
|
*/
|
|
34
|
-
const on = typeof window < "u", $e = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Fr = (e, t, n) => Pr({ l: e, k: t, s: n }), Pr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ge = (e) => typeof e == "number" && isFinite(e), jr = (e) => Ht(e) === "[object Date]", yt = (e) => Ht(e) === "[object RegExp]",
|
|
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]", yt = (e) => Ht(e) === "[object RegExp]", Nt = (e) => ee(e) && Object.keys(e).length === 0, Ie = Object.assign, Ur = Object.create, oe = (e = null) => Ur(e);
|
|
35
35
|
let an;
|
|
36
36
|
const Ye = () => an || (an = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : oe());
|
|
37
37
|
function ln(e) {
|
|
38
38
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
39
39
|
}
|
|
40
|
-
const
|
|
40
|
+
const Vr = Object.prototype.hasOwnProperty;
|
|
41
41
|
function Ae(e, t) {
|
|
42
|
-
return
|
|
42
|
+
return Vr.call(e, t);
|
|
43
43
|
}
|
|
44
|
-
const be = Array.isArray,
|
|
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), Yn = Object.prototype.toString, Ht = (e) => Yn.call(e), ee = (e) => Ht(e) === "[object Object]", Wr = (e) => e == null ? "" : be(e) || ee(e) && e.toString === Yn ? JSON.stringify(e, null, 2) : String(e);
|
|
45
45
|
function $t(e, t = "") {
|
|
46
46
|
return e.reduce((n, r, l) => l === 0 ? n + r : n + t + r, "");
|
|
47
47
|
}
|
|
@@ -60,7 +60,7 @@ function Et(e, t) {
|
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Zr(e, t, n) {
|
|
64
64
|
return { line: e, column: t, offset: n };
|
|
65
65
|
}
|
|
66
66
|
function Ft(e, t, n) {
|
|
@@ -83,9 +83,9 @@ const re = {
|
|
|
83
83
|
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
84
84
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
85
85
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
86
|
-
},
|
|
86
|
+
}, Xr = 17;
|
|
87
87
|
function Tt(e, t, n = {}) {
|
|
88
|
-
const { domain: r, messages: l, args: a } = n,
|
|
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
91
|
function Br(e) {
|
|
@@ -96,51 +96,51 @@ const Pe = " ", Yr = "\r", Ee = `
|
|
|
96
96
|
function Jr(e) {
|
|
97
97
|
const t = e;
|
|
98
98
|
let n = 0, r = 1, l = 1, a = 0;
|
|
99
|
-
const
|
|
100
|
-
function
|
|
101
|
-
return a = 0, E(n) && (r++, l = 0),
|
|
99
|
+
const m = (h) => t[h] === Yr && t[h + 1] === Ee, u = (h) => t[h] === Ee, i = (h) => t[h] === $r, g = (h) => t[h] === Hr, E = (h) => m(h) || u(h) || i(h) || g(h), T = () => n, C = () => r, F = () => l, D = () => a, L = (h) => m(h) || i(h) || g(h) ? Ee : t[h], w = () => L(n), f = () => L(n + a);
|
|
100
|
+
function p() {
|
|
101
|
+
return a = 0, E(n) && (r++, l = 0), m(n) && n++, n++, l++, t[n];
|
|
102
102
|
}
|
|
103
103
|
function S() {
|
|
104
|
-
return
|
|
104
|
+
return m(n + a) && a++, a++, t[n + a];
|
|
105
105
|
}
|
|
106
106
|
function c() {
|
|
107
107
|
n = 0, r = 1, l = 1, a = 0;
|
|
108
108
|
}
|
|
109
|
-
function b(
|
|
110
|
-
a =
|
|
109
|
+
function b(h = 0) {
|
|
110
|
+
a = h;
|
|
111
111
|
}
|
|
112
112
|
function I() {
|
|
113
|
-
const
|
|
114
|
-
for (;
|
|
115
|
-
|
|
113
|
+
const h = n + a;
|
|
114
|
+
for (; h !== n; )
|
|
115
|
+
p();
|
|
116
116
|
a = 0;
|
|
117
117
|
}
|
|
118
118
|
return {
|
|
119
119
|
index: T,
|
|
120
|
-
line:
|
|
120
|
+
line: C,
|
|
121
121
|
column: F,
|
|
122
122
|
peekOffset: D,
|
|
123
123
|
charAt: L,
|
|
124
124
|
currentChar: w,
|
|
125
125
|
currentPeek: f,
|
|
126
|
-
next:
|
|
126
|
+
next: p,
|
|
127
127
|
peek: S,
|
|
128
128
|
reset: c,
|
|
129
129
|
resetPeek: b,
|
|
130
130
|
skipToPeek: I
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
const
|
|
133
|
+
const xe = void 0, Kr = ".", cn = "'", zr = "tokenizer";
|
|
134
134
|
function Qr(e, t = {}) {
|
|
135
|
-
const n = t.location !== !1, r = Jr(e), l = () => r.index(), a = () =>
|
|
135
|
+
const n = t.location !== !1, r = Jr(e), l = () => r.index(), a = () => Zr(r.line(), r.column(), r.index()), m = a(), u = l(), i = {
|
|
136
136
|
currentType: 13,
|
|
137
137
|
offset: u,
|
|
138
|
-
startLoc:
|
|
139
|
-
endLoc:
|
|
138
|
+
startLoc: m,
|
|
139
|
+
endLoc: m,
|
|
140
140
|
lastType: 13,
|
|
141
141
|
lastOffset: u,
|
|
142
|
-
lastStartLoc:
|
|
143
|
-
lastEndLoc:
|
|
142
|
+
lastStartLoc: m,
|
|
143
|
+
lastEndLoc: m,
|
|
144
144
|
braceNest: 0,
|
|
145
145
|
inLinked: !1,
|
|
146
146
|
text: ""
|
|
@@ -155,12 +155,12 @@ function Qr(e, t = {}) {
|
|
|
155
155
|
E(v);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function C(s, o, _) {
|
|
159
159
|
s.endLoc = a(), s.currentType = o;
|
|
160
160
|
const k = { type: o };
|
|
161
161
|
return n && (k.loc = Ft(s.startLoc, s.endLoc)), _ != null && (k.value = _), k;
|
|
162
162
|
}
|
|
163
|
-
const F = (s) =>
|
|
163
|
+
const F = (s) => C(
|
|
164
164
|
s,
|
|
165
165
|
13
|
|
166
166
|
/* TokenTypes.EOF */
|
|
@@ -179,15 +179,15 @@ function Qr(e, t = {}) {
|
|
|
179
179
|
return s.skipToPeek(), o;
|
|
180
180
|
}
|
|
181
181
|
function f(s) {
|
|
182
|
-
if (s ===
|
|
182
|
+
if (s === xe)
|
|
183
183
|
return !1;
|
|
184
184
|
const o = s.charCodeAt(0);
|
|
185
185
|
return o >= 97 && o <= 122 || // a-z
|
|
186
186
|
o >= 65 && o <= 90 || // A-Z
|
|
187
187
|
o === 95;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
if (s ===
|
|
189
|
+
function p(s) {
|
|
190
|
+
if (s === xe)
|
|
191
191
|
return !1;
|
|
192
192
|
const o = s.charCodeAt(0);
|
|
193
193
|
return o >= 48 && o <= 57;
|
|
@@ -205,7 +205,7 @@ function Qr(e, t = {}) {
|
|
|
205
205
|
if (_ !== 2)
|
|
206
206
|
return !1;
|
|
207
207
|
L(s);
|
|
208
|
-
const k = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), M =
|
|
208
|
+
const k = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), M = p(k);
|
|
209
209
|
return s.resetPeek(), M;
|
|
210
210
|
}
|
|
211
211
|
function b(s, o) {
|
|
@@ -224,7 +224,7 @@ function Qr(e, t = {}) {
|
|
|
224
224
|
const k = s.currentPeek() === ".";
|
|
225
225
|
return s.resetPeek(), k;
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function h(s, o) {
|
|
228
228
|
const { currentType: _ } = o;
|
|
229
229
|
if (_ !== 8)
|
|
230
230
|
return !1;
|
|
@@ -246,7 +246,7 @@ function Qr(e, t = {}) {
|
|
|
246
246
|
return !1;
|
|
247
247
|
const k = () => {
|
|
248
248
|
const P = s.currentPeek();
|
|
249
|
-
return P === "{" ? f(s.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P === Ee ? (s.peek(), k()) :
|
|
249
|
+
return P === "{" ? f(s.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P === Ee ? (s.peek(), k()) : x(s, !1);
|
|
250
250
|
}, M = k();
|
|
251
251
|
return s.resetPeek(), M;
|
|
252
252
|
}
|
|
@@ -255,18 +255,18 @@ function Qr(e, t = {}) {
|
|
|
255
255
|
const o = s.currentPeek() === "|";
|
|
256
256
|
return s.resetPeek(), o;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function x(s, o = !0) {
|
|
259
259
|
const _ = (M = !1, P = "") => {
|
|
260
260
|
const v = s.currentPeek();
|
|
261
261
|
return v === "{" || v === "@" || !v ? M : v === "|" ? !(P === Pe || P === Ee) : v === Pe ? (s.peek(), _(!0, Pe)) : v === Ee ? (s.peek(), _(!0, Ee)) : !0;
|
|
262
262
|
}, k = _();
|
|
263
263
|
return o && s.resetPeek(), k;
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function d(s, o) {
|
|
266
266
|
const _ = s.currentChar();
|
|
267
|
-
return _ ===
|
|
267
|
+
return _ === xe ? xe : o(_) ? (s.next(), _) : null;
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function N(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,9 +275,9 @@ function Qr(e, t = {}) {
|
|
|
275
275
|
o === 36;
|
|
276
276
|
}
|
|
277
277
|
function U(s) {
|
|
278
|
-
return
|
|
278
|
+
return d(s, N);
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function V(s) {
|
|
281
281
|
const o = s.charCodeAt(0);
|
|
282
282
|
return o >= 97 && o <= 122 || // a-z
|
|
283
283
|
o >= 65 && o <= 90 || // A-Z
|
|
@@ -287,23 +287,23 @@ function Qr(e, t = {}) {
|
|
|
287
287
|
o === 45;
|
|
288
288
|
}
|
|
289
289
|
function j(s) {
|
|
290
|
-
return
|
|
290
|
+
return d(s, V);
|
|
291
291
|
}
|
|
292
292
|
function G(s) {
|
|
293
293
|
const o = s.charCodeAt(0);
|
|
294
294
|
return o >= 48 && o <= 57;
|
|
295
295
|
}
|
|
296
296
|
function W(s) {
|
|
297
|
-
return
|
|
297
|
+
return d(s, G);
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function X(s) {
|
|
300
300
|
const o = s.charCodeAt(0);
|
|
301
301
|
return o >= 48 && o <= 57 || // 0-9
|
|
302
302
|
o >= 65 && o <= 70 || // A-F
|
|
303
303
|
o >= 97 && o <= 102;
|
|
304
304
|
}
|
|
305
305
|
function B(s) {
|
|
306
|
-
return
|
|
306
|
+
return d(s, X);
|
|
307
307
|
}
|
|
308
308
|
function ne(s) {
|
|
309
309
|
let o = "", _ = "";
|
|
@@ -318,7 +318,7 @@ function Qr(e, t = {}) {
|
|
|
318
318
|
if (_ === "{" || _ === "}" || _ === "@" || _ === "|" || !_)
|
|
319
319
|
break;
|
|
320
320
|
if (_ === Pe || _ === Ee)
|
|
321
|
-
if (
|
|
321
|
+
if (x(s))
|
|
322
322
|
o += _, s.next();
|
|
323
323
|
else {
|
|
324
324
|
if (Y(s))
|
|
@@ -335,12 +335,12 @@ function Qr(e, t = {}) {
|
|
|
335
335
|
let o = "", _ = "";
|
|
336
336
|
for (; o = j(s); )
|
|
337
337
|
_ += o;
|
|
338
|
-
return s.currentChar() ===
|
|
338
|
+
return s.currentChar() === xe && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _;
|
|
339
339
|
}
|
|
340
340
|
function ce(s) {
|
|
341
341
|
w(s);
|
|
342
342
|
let o = "";
|
|
343
|
-
return s.currentChar() === "-" ? (s.next(), o += `-${ne(s)}`) : o += ne(s), s.currentChar() ===
|
|
343
|
+
return s.currentChar() === "-" ? (s.next(), o += `-${ne(s)}`) : o += ne(s), s.currentChar() === xe && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
344
344
|
}
|
|
345
345
|
function se(s) {
|
|
346
346
|
return s !== cn && s !== Ee;
|
|
@@ -348,10 +348,10 @@ function Qr(e, t = {}) {
|
|
|
348
348
|
function fe(s) {
|
|
349
349
|
w(s), D(s, "'");
|
|
350
350
|
let o = "", _ = "";
|
|
351
|
-
for (; o =
|
|
351
|
+
for (; o = d(s, se); )
|
|
352
352
|
o === "\\" ? _ += q(s) : _ += o;
|
|
353
353
|
const k = s.currentChar();
|
|
354
|
-
return k === Ee || k ===
|
|
354
|
+
return k === Ee || k === xe ? (T(re.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), k === Ee && (s.next(), D(s, "'")), _) : (D(s, "'"), _);
|
|
355
355
|
}
|
|
356
356
|
function q(s) {
|
|
357
357
|
const o = s.currentChar();
|
|
@@ -383,10 +383,10 @@ function Qr(e, t = {}) {
|
|
|
383
383
|
function K(s) {
|
|
384
384
|
return s !== "{" && s !== "}" && s !== Pe && s !== Ee;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function he(s) {
|
|
387
387
|
w(s);
|
|
388
388
|
let o = "", _ = "";
|
|
389
|
-
for (; o =
|
|
389
|
+
for (; o = d(s, K); )
|
|
390
390
|
_ += o;
|
|
391
391
|
return _;
|
|
392
392
|
}
|
|
@@ -403,7 +403,7 @@ function Qr(e, t = {}) {
|
|
|
403
403
|
};
|
|
404
404
|
return o("");
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function Ve(s) {
|
|
407
407
|
w(s);
|
|
408
408
|
const o = D(
|
|
409
409
|
s,
|
|
@@ -416,71 +416,71 @@ 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(), _ = C(
|
|
420
420
|
o,
|
|
421
421
|
2,
|
|
422
422
|
"{"
|
|
423
423
|
/* TokenChars.BraceLeft */
|
|
424
424
|
), w(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(), _ = C(
|
|
427
427
|
o,
|
|
428
428
|
3,
|
|
429
429
|
"}"
|
|
430
430
|
/* TokenChars.BraceRight */
|
|
431
431
|
), o.braceNest--, o.braceNest > 0 && w(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), _ = Ne(s, o) || F(o), o.braceNest = 0, _;
|
|
434
434
|
default: {
|
|
435
435
|
let M = !0, P = !0, v = !0;
|
|
436
436
|
if (Y(s))
|
|
437
|
-
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ =
|
|
437
|
+
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = C(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
438
438
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
439
|
-
return T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0,
|
|
439
|
+
return T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, Xe(s, o);
|
|
440
440
|
if (M = S(s, o))
|
|
441
|
-
return _ =
|
|
441
|
+
return _ = C(o, 4, _e(s)), w(s), _;
|
|
442
442
|
if (P = c(s, o))
|
|
443
|
-
return _ =
|
|
443
|
+
return _ = C(o, 5, ce(s)), w(s), _;
|
|
444
444
|
if (v = b(s, o))
|
|
445
|
-
return _ =
|
|
445
|
+
return _ = C(o, 6, fe(s)), w(s), _;
|
|
446
446
|
if (!M && !P && !v)
|
|
447
|
-
return _ =
|
|
447
|
+
return _ = C(o, 12, he(s)), T(re.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, _.value), w(s), _;
|
|
448
448
|
break;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
return _;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Ne(s, o) {
|
|
454
454
|
const { currentType: _ } = o;
|
|
455
455
|
let k = null;
|
|
456
456
|
const M = s.currentChar();
|
|
457
457
|
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M === Ee || M === Pe) && T(re.INVALID_LINKED_FORMAT, a(), 0), M) {
|
|
458
458
|
case "@":
|
|
459
|
-
return s.next(), k =
|
|
459
|
+
return s.next(), k = C(
|
|
460
460
|
o,
|
|
461
461
|
7,
|
|
462
462
|
"@"
|
|
463
463
|
/* TokenChars.LinkedAlias */
|
|
464
464
|
), o.inLinked = !0, k;
|
|
465
465
|
case ".":
|
|
466
|
-
return w(s), s.next(),
|
|
466
|
+
return w(s), s.next(), C(
|
|
467
467
|
o,
|
|
468
468
|
8,
|
|
469
469
|
"."
|
|
470
470
|
/* TokenChars.LinkedDot */
|
|
471
471
|
);
|
|
472
472
|
case ":":
|
|
473
|
-
return w(s), s.next(),
|
|
473
|
+
return w(s), s.next(), C(
|
|
474
474
|
o,
|
|
475
475
|
9,
|
|
476
476
|
":"
|
|
477
477
|
/* TokenChars.LinkedDelimiter */
|
|
478
478
|
);
|
|
479
479
|
default:
|
|
480
|
-
return Y(s) ? (k =
|
|
480
|
+
return Y(s) ? (k = C(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, k) : I(s, o) || R(s, o) ? (w(s), Ne(s, o)) : h(s, o) ? (w(s), C(o, 11, Je(s))) : A(s, o) ? (w(s), M === "{" ? Fe(s, o) || k : C(o, 10, Ke(s))) : (_ === 7 && T(re.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, Xe(s, o));
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function Xe(s, o) {
|
|
484
484
|
let _ = {
|
|
485
485
|
type: 13
|
|
486
486
|
/* TokenTypes.EOF */
|
|
@@ -488,24 +488,24 @@ 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 Ne(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(), C(
|
|
497
497
|
o,
|
|
498
498
|
3,
|
|
499
499
|
"}"
|
|
500
500
|
/* TokenChars.BraceRight */
|
|
501
501
|
);
|
|
502
502
|
case "@":
|
|
503
|
-
return
|
|
503
|
+
return Ne(s, o) || F(o);
|
|
504
504
|
default: {
|
|
505
505
|
if (Y(s))
|
|
506
|
-
return _ =
|
|
507
|
-
if (
|
|
508
|
-
return
|
|
506
|
+
return _ = C(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
507
|
+
if (x(s))
|
|
508
|
+
return C(o, 0, Q(s));
|
|
509
509
|
break;
|
|
510
510
|
}
|
|
511
511
|
}
|
|
@@ -513,11 +513,11 @@ function Qr(e, t = {}) {
|
|
|
513
513
|
}
|
|
514
514
|
function O() {
|
|
515
515
|
const { currentType: s, offset: o, startLoc: _, endLoc: k } = i;
|
|
516
|
-
return i.lastType = s, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc = k, i.offset = l(), i.startLoc = a(), r.currentChar() ===
|
|
516
|
+
return i.lastType = s, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc = k, i.offset = l(), i.startLoc = a(), r.currentChar() === xe ? C(
|
|
517
517
|
i,
|
|
518
518
|
13
|
|
519
519
|
/* TokenTypes.EOF */
|
|
520
|
-
) :
|
|
520
|
+
) : Xe(r, i);
|
|
521
521
|
}
|
|
522
522
|
return {
|
|
523
523
|
nextToken: O,
|
|
@@ -541,74 +541,74 @@ function ts(e, t, n) {
|
|
|
541
541
|
}
|
|
542
542
|
function ns(e = {}) {
|
|
543
543
|
const t = e.location !== !1, { onError: n } = e;
|
|
544
|
-
function r(f,
|
|
544
|
+
function r(f, p, S, c, ...b) {
|
|
545
545
|
const I = f.currentPosition();
|
|
546
546
|
if (I.offset += c, I.column += c, n) {
|
|
547
|
-
const
|
|
547
|
+
const h = t ? Ft(S, I) : null, R = Tt(p, h, {
|
|
548
548
|
domain: qr,
|
|
549
549
|
args: b
|
|
550
550
|
});
|
|
551
551
|
n(R);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
function l(f,
|
|
554
|
+
function l(f, p, S) {
|
|
555
555
|
const c = { type: f };
|
|
556
|
-
return t && (c.start =
|
|
556
|
+
return t && (c.start = p, c.end = p, c.loc = { start: S, end: S }), c;
|
|
557
557
|
}
|
|
558
|
-
function a(f,
|
|
559
|
-
t && (f.end =
|
|
558
|
+
function a(f, p, S, c) {
|
|
559
|
+
t && (f.end = p, f.loc && (f.loc.end = S));
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function m(f, p) {
|
|
562
562
|
const S = f.context(), c = l(3, S.offset, S.startLoc);
|
|
563
|
-
return c.value =
|
|
563
|
+
return c.value = p, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
564
564
|
}
|
|
565
|
-
function u(f,
|
|
565
|
+
function u(f, p) {
|
|
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(p, 10), f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
568
568
|
}
|
|
569
|
-
function i(f,
|
|
569
|
+
function i(f, p) {
|
|
570
570
|
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(4, c, b);
|
|
571
|
-
return I.key =
|
|
571
|
+
return I.key = p, f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
572
572
|
}
|
|
573
|
-
function g(f,
|
|
573
|
+
function g(f, p) {
|
|
574
574
|
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(9, c, b);
|
|
575
|
-
return I.value =
|
|
575
|
+
return I.value = p.replace(es, ts), f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
576
576
|
}
|
|
577
577
|
function E(f) {
|
|
578
|
-
const
|
|
579
|
-
return
|
|
580
|
-
nextConsumeToken:
|
|
578
|
+
const p = f.nextToken(), S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(8, c, b);
|
|
579
|
+
return p.type !== 11 ? (r(f, re.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), I.value = "", a(I, c, b), {
|
|
580
|
+
nextConsumeToken: p,
|
|
581
581
|
node: I
|
|
582
|
-
}) : (
|
|
582
|
+
}) : (p.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, ke(p)), I.value = p.value || "", a(I, f.currentOffset(), f.currentPosition()), {
|
|
583
583
|
node: I
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
|
-
function T(f,
|
|
586
|
+
function T(f, p) {
|
|
587
587
|
const S = f.context(), c = l(7, S.offset, S.startLoc);
|
|
588
|
-
return c.value =
|
|
588
|
+
return c.value = p, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
591
|
-
const
|
|
590
|
+
function C(f) {
|
|
591
|
+
const p = f.context(), S = l(6, p.offset, p.startLoc);
|
|
592
592
|
let c = f.nextToken();
|
|
593
593
|
if (c.type === 8) {
|
|
594
594
|
const b = E(f);
|
|
595
595
|
S.modifier = b.node, c = b.nextConsumeToken || f.nextToken();
|
|
596
596
|
}
|
|
597
|
-
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
597
|
+
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ke(c)), c = f.nextToken(), c.type === 2 && (c = f.nextToken()), c.type) {
|
|
598
598
|
case 10:
|
|
599
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
599
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ke(c)), S.key = T(f, c.value || "");
|
|
600
600
|
break;
|
|
601
601
|
case 4:
|
|
602
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
602
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ke(c)), S.key = i(f, c.value || "");
|
|
603
603
|
break;
|
|
604
604
|
case 5:
|
|
605
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
605
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ke(c)), S.key = u(f, c.value || "");
|
|
606
606
|
break;
|
|
607
607
|
case 6:
|
|
608
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
608
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, ke(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, p.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,52 +621,52 @@ function ns(e = {}) {
|
|
|
621
621
|
};
|
|
622
622
|
}
|
|
623
623
|
function F(f) {
|
|
624
|
-
const
|
|
624
|
+
const p = f.context(), S = p.currentType === 1 ? f.currentOffset() : p.offset, c = p.currentType === 1 ? p.endLoc : p.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, p.lastStartLoc, 0, ke(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, p.lastStartLoc, 0, ke(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, p.lastStartLoc, 0, ke(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, p.lastStartLoc, 0, ke(A)), b.items.push(g(f, A.value || ""));
|
|
641
641
|
break;
|
|
642
642
|
case 7: {
|
|
643
|
-
const Y =
|
|
643
|
+
const Y = C(f);
|
|
644
644
|
b.items.push(Y.node), I = Y.nextConsumeToken || null;
|
|
645
645
|
break;
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
|
-
} while (
|
|
649
|
-
const
|
|
650
|
-
return a(b,
|
|
648
|
+
} while (p.currentType !== 13 && p.currentType !== 1);
|
|
649
|
+
const h = p.currentType === 1 ? p.lastOffset : f.currentOffset(), R = p.currentType === 1 ? p.lastEndLoc : f.currentPosition();
|
|
650
|
+
return a(b, h, R), b;
|
|
651
651
|
}
|
|
652
|
-
function D(f,
|
|
652
|
+
function D(f, p, S, c) {
|
|
653
653
|
const b = f.context();
|
|
654
654
|
let I = c.items.length === 0;
|
|
655
|
-
const
|
|
656
|
-
|
|
655
|
+
const h = l(1, p, S);
|
|
656
|
+
h.cases = [], h.cases.push(c);
|
|
657
657
|
do {
|
|
658
658
|
const R = F(f);
|
|
659
|
-
I || (I = R.items.length === 0),
|
|
659
|
+
I || (I = R.items.length === 0), h.cases.push(R);
|
|
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(h, f.currentOffset(), f.currentPosition()), h;
|
|
662
662
|
}
|
|
663
663
|
function L(f) {
|
|
664
|
-
const
|
|
665
|
-
return
|
|
664
|
+
const p = f.context(), { offset: S, startLoc: c } = p, b = F(f);
|
|
665
|
+
return p.currentType === 13 ? b : D(f, S, c, b);
|
|
666
666
|
}
|
|
667
667
|
function w(f) {
|
|
668
|
-
const
|
|
669
|
-
return t && c.loc && (c.loc.source = f), c.body = L(
|
|
668
|
+
const p = Qr(f, Ie({}, e)), S = p.context(), c = l(0, S.offset, S.startLoc);
|
|
669
|
+
return t && c.loc && (c.loc.source = f), c.body = L(p), e.onCacheKey && (c.cacheKey = e.onCacheKey(f)), S.currentType !== 13 && r(p, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, f[S.offset] || ""), a(c, p.currentOffset(), p.currentPosition()), c;
|
|
670
670
|
}
|
|
671
671
|
return { parse: w };
|
|
672
672
|
}
|
|
@@ -739,9 +739,9 @@ function ss(e, t = {}) {
|
|
|
739
739
|
}
|
|
740
740
|
function os(e) {
|
|
741
741
|
const t = e.body;
|
|
742
|
-
return t.type === 2 ?
|
|
742
|
+
return t.type === 2 ? mn(t) : t.cases.forEach((n) => mn(n)), e;
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function mn(e) {
|
|
745
745
|
if (e.items.length === 1) {
|
|
746
746
|
const t = e.items[0];
|
|
747
747
|
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
@@ -810,7 +810,7 @@ function Qe(e) {
|
|
|
810
810
|
delete e.type;
|
|
811
811
|
}
|
|
812
812
|
function as(e, t) {
|
|
813
|
-
const { filename: n, breakLineCode: r, needIndent: l } = t, a = t.location !== !1,
|
|
813
|
+
const { filename: n, breakLineCode: r, needIndent: l } = t, a = t.location !== !1, m = {
|
|
814
814
|
filename: n,
|
|
815
815
|
code: "",
|
|
816
816
|
column: 1,
|
|
@@ -821,34 +821,34 @@ function as(e, t) {
|
|
|
821
821
|
needIndent: l,
|
|
822
822
|
indentLevel: 0
|
|
823
823
|
};
|
|
824
|
-
a && e.loc && (
|
|
825
|
-
const u = () =>
|
|
824
|
+
a && e.loc && (m.source = e.loc.source);
|
|
825
|
+
const u = () => m;
|
|
826
826
|
function i(L, w) {
|
|
827
|
-
|
|
827
|
+
m.code += L;
|
|
828
828
|
}
|
|
829
829
|
function g(L, w = !0) {
|
|
830
830
|
const f = w ? r : "";
|
|
831
831
|
i(l ? f + " ".repeat(L) : f);
|
|
832
832
|
}
|
|
833
833
|
function E(L = !0) {
|
|
834
|
-
const w = ++
|
|
834
|
+
const w = ++m.indentLevel;
|
|
835
835
|
L && g(w);
|
|
836
836
|
}
|
|
837
837
|
function T(L = !0) {
|
|
838
|
-
const w = --
|
|
838
|
+
const w = --m.indentLevel;
|
|
839
839
|
L && g(w);
|
|
840
840
|
}
|
|
841
|
-
function
|
|
842
|
-
g(
|
|
841
|
+
function C() {
|
|
842
|
+
g(m.indentLevel);
|
|
843
843
|
}
|
|
844
844
|
return {
|
|
845
845
|
context: u,
|
|
846
846
|
push: i,
|
|
847
847
|
indent: E,
|
|
848
848
|
deindent: T,
|
|
849
|
-
newline:
|
|
849
|
+
newline: C,
|
|
850
850
|
helper: (L) => `_${L}`,
|
|
851
|
-
needIndent: () =>
|
|
851
|
+
needIndent: () => m.needIndent
|
|
852
852
|
};
|
|
853
853
|
}
|
|
854
854
|
function ls(e, t) {
|
|
@@ -932,16 +932,16 @@ function st(e, t) {
|
|
|
932
932
|
break;
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
|
-
const
|
|
936
|
-
const n =
|
|
935
|
+
const ms = (e, t = {}) => {
|
|
936
|
+
const n = Z(t.mode) ? t.mode : "normal", r = Z(t.filename) ? t.filename : "message.intl";
|
|
937
937
|
t.sourceMap;
|
|
938
938
|
const l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
939
|
-
`, a = t.needIndent ? t.needIndent : n !== "arrow",
|
|
939
|
+
`, a = t.needIndent ? t.needIndent : n !== "arrow", m = e.helpers || [], u = as(e, {
|
|
940
940
|
filename: r,
|
|
941
941
|
breakLineCode: l,
|
|
942
942
|
needIndent: a
|
|
943
943
|
});
|
|
944
|
-
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a),
|
|
944
|
+
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), m.length > 0 && (u.push(`const { ${$t(m.map((E) => `${E}: _${E}`), ", ")} } = 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,
|
|
@@ -950,19 +950,19 @@ const ds = (e, t = {}) => {
|
|
|
950
950
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
951
951
|
};
|
|
952
952
|
};
|
|
953
|
-
function
|
|
953
|
+
function ds(e, t = {}) {
|
|
954
954
|
const n = Ie({}, t), r = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize, u = ns(n).parse(e);
|
|
955
|
-
return r ? (a && os(u), l && Qe(u), { ast: u, code: "" }) : (ss(u, n),
|
|
955
|
+
return r ? (a && os(u), l && Qe(u), { ast: u, code: "" }) : (ss(u, n), ms(u, n));
|
|
956
956
|
}
|
|
957
957
|
var fs = { env: { NODE_ENV: "production" } };
|
|
958
958
|
function _s() {
|
|
959
959
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ye().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ye().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
960
960
|
}
|
|
961
961
|
function Lt(e) {
|
|
962
|
-
return (n) =>
|
|
962
|
+
return (n) => hs(n, e);
|
|
963
963
|
}
|
|
964
|
-
function
|
|
965
|
-
const n =
|
|
964
|
+
function hs(e, t) {
|
|
965
|
+
const n = ps(t);
|
|
966
966
|
if (n == null)
|
|
967
967
|
throw it(
|
|
968
968
|
0
|
|
@@ -970,27 +970,27 @@ function ps(e, t) {
|
|
|
970
970
|
);
|
|
971
971
|
if (Kt(n) === 1) {
|
|
972
972
|
const a = gs(n);
|
|
973
|
-
return e.plural(a.reduce((
|
|
974
|
-
...
|
|
975
|
-
|
|
973
|
+
return e.plural(a.reduce((m, u) => [
|
|
974
|
+
...m,
|
|
975
|
+
dn(e, u)
|
|
976
976
|
], []));
|
|
977
977
|
} else
|
|
978
|
-
return
|
|
978
|
+
return dn(e, n);
|
|
979
979
|
}
|
|
980
980
|
const vs = ["b", "body"];
|
|
981
|
-
function
|
|
981
|
+
function ps(e) {
|
|
982
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
|
-
function
|
|
988
|
+
function dn(e, t) {
|
|
989
989
|
const n = Es(t);
|
|
990
990
|
if (n != null)
|
|
991
991
|
return e.type === "text" ? n : e.normalize([n]);
|
|
992
992
|
{
|
|
993
|
-
const r =
|
|
993
|
+
const r = Cs(t).reduce((l, a) => [...l, Pt(e, a)], []);
|
|
994
994
|
return e.normalize(r);
|
|
995
995
|
}
|
|
996
996
|
}
|
|
@@ -999,7 +999,7 @@ function Es(e) {
|
|
|
999
999
|
return Ge(e, Is);
|
|
1000
1000
|
}
|
|
1001
1001
|
const ys = ["i", "items"];
|
|
1002
|
-
function
|
|
1002
|
+
function Cs(e) {
|
|
1003
1003
|
return Ge(e, ys, []);
|
|
1004
1004
|
}
|
|
1005
1005
|
function Pt(e, 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 Ns = ["t", "type"];
|
|
1041
1041
|
function Kt(e) {
|
|
1042
|
-
return Ge(e,
|
|
1042
|
+
return Ge(e, Ns);
|
|
1043
1043
|
}
|
|
1044
1044
|
const Ts = ["v", "value"];
|
|
1045
1045
|
function _t(e, t) {
|
|
@@ -1074,7 +1074,7 @@ function it(e) {
|
|
|
1074
1074
|
return new Error(`unhandled node type: ${e}`);
|
|
1075
1075
|
}
|
|
1076
1076
|
const ks = (e) => e;
|
|
1077
|
-
let
|
|
1077
|
+
let ht = oe();
|
|
1078
1078
|
function ot(e) {
|
|
1079
1079
|
return te(e) && Kt(e) === 0 && (Ae(e, "b") || Ae(e, "body"));
|
|
1080
1080
|
}
|
|
@@ -1083,26 +1083,26 @@ function Rs(e, t = {}) {
|
|
|
1083
1083
|
const r = t.onError || Br;
|
|
1084
1084
|
return t.onError = (l) => {
|
|
1085
1085
|
n = !0, r(l);
|
|
1086
|
-
}, { ...
|
|
1086
|
+
}, { ...ds(e, t), detectError: n };
|
|
1087
1087
|
}
|
|
1088
1088
|
// @__NO_SIDE_EFFECTS__
|
|
1089
1089
|
function Ms(e, t) {
|
|
1090
|
-
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ &&
|
|
1090
|
+
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && Z(e)) {
|
|
1091
1091
|
ve(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1092
|
-
const r = (t.onCacheKey || ks)(e), l =
|
|
1092
|
+
const r = (t.onCacheKey || ks)(e), l = ht[r];
|
|
1093
1093
|
if (l)
|
|
1094
1094
|
return l;
|
|
1095
|
-
const { ast: a, detectError:
|
|
1095
|
+
const { ast: a, detectError: m } = Rs(e, {
|
|
1096
1096
|
...t,
|
|
1097
1097
|
location: fs.env.NODE_ENV !== "production",
|
|
1098
1098
|
jit: !0
|
|
1099
1099
|
}), u = Lt(a);
|
|
1100
|
-
return
|
|
1100
|
+
return m ? u : ht[r] = u;
|
|
1101
1101
|
} else {
|
|
1102
1102
|
const n = e.cacheKey;
|
|
1103
1103
|
if (n) {
|
|
1104
|
-
const r =
|
|
1105
|
-
return r || (
|
|
1104
|
+
const r = ht[n];
|
|
1105
|
+
return r || (ht[n] = Lt(e));
|
|
1106
1106
|
} else
|
|
1107
1107
|
return Lt(e);
|
|
1108
1108
|
}
|
|
@@ -1124,7 +1124,7 @@ function Ps(e) {
|
|
|
1124
1124
|
return (t) => ct && ct.emit(e, t);
|
|
1125
1125
|
}
|
|
1126
1126
|
const je = {
|
|
1127
|
-
INVALID_ARGUMENT:
|
|
1127
|
+
INVALID_ARGUMENT: Xr,
|
|
1128
1128
|
// 17
|
|
1129
1129
|
INVALID_DATE_ARGUMENT: 18,
|
|
1130
1130
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1140,14 +1140,14 @@ function zt(e, t) {
|
|
|
1140
1140
|
}
|
|
1141
1141
|
let kt;
|
|
1142
1142
|
function fn(e) {
|
|
1143
|
-
if (
|
|
1143
|
+
if (Z(e))
|
|
1144
1144
|
return e;
|
|
1145
|
-
if (
|
|
1145
|
+
if (de(e)) {
|
|
1146
1146
|
if (e.resolvedOnce && kt != null)
|
|
1147
1147
|
return kt;
|
|
1148
1148
|
if (e.constructor.name === "Function") {
|
|
1149
1149
|
const t = e();
|
|
1150
|
-
if (
|
|
1150
|
+
if (xr(t))
|
|
1151
1151
|
throw Ue(je.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1152
1152
|
return kt = t;
|
|
1153
1153
|
} else
|
|
@@ -1158,20 +1158,20 @@ function fn(e) {
|
|
|
1158
1158
|
function Us(e, t, n) {
|
|
1159
1159
|
return [.../* @__PURE__ */ new Set([
|
|
1160
1160
|
n,
|
|
1161
|
-
...be(t) ? t : te(t) ? Object.keys(t) :
|
|
1161
|
+
...be(t) ? t : te(t) ? Object.keys(t) : Z(t) ? [t] : [n]
|
|
1162
1162
|
])];
|
|
1163
1163
|
}
|
|
1164
1164
|
function Hn(e, t, n) {
|
|
1165
|
-
const r =
|
|
1165
|
+
const r = Z(n) ? n : Ct, l = e;
|
|
1166
1166
|
l.__localeChainCache || (l.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1167
1167
|
let a = l.__localeChainCache.get(r);
|
|
1168
1168
|
if (!a) {
|
|
1169
1169
|
a = [];
|
|
1170
|
-
let
|
|
1171
|
-
for (; be(
|
|
1172
|
-
|
|
1170
|
+
let m = [n];
|
|
1171
|
+
for (; be(m); )
|
|
1172
|
+
m = _n(a, m, t);
|
|
1173
1173
|
const u = be(t) || !ee(t) ? t : t.default ? t.default : null;
|
|
1174
|
-
|
|
1174
|
+
m = Z(u) ? [u] : u, be(m) && _n(a, m, !1), l.__localeChainCache.set(r, a);
|
|
1175
1175
|
}
|
|
1176
1176
|
return a;
|
|
1177
1177
|
}
|
|
@@ -1179,20 +1179,20 @@ function _n(e, t, n) {
|
|
|
1179
1179
|
let r = !0;
|
|
1180
1180
|
for (let l = 0; l < t.length && ve(r); l++) {
|
|
1181
1181
|
const a = t[l];
|
|
1182
|
-
|
|
1182
|
+
Z(a) && (r = Vs(e, t[l], n));
|
|
1183
1183
|
}
|
|
1184
1184
|
return r;
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1186
|
+
function Vs(e, t, n) {
|
|
1187
1187
|
let r;
|
|
1188
1188
|
const l = t.split("-");
|
|
1189
1189
|
do {
|
|
1190
1190
|
const a = l.join("-");
|
|
1191
|
-
r =
|
|
1191
|
+
r = xs(e, a, n), l.splice(-1, 1);
|
|
1192
1192
|
} while (l.length && r === !0);
|
|
1193
1193
|
return r;
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1195
|
+
function xs(e, t, n) {
|
|
1196
1196
|
let r = !1;
|
|
1197
1197
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1198
1198
|
r = t[t.length - 1] !== "!";
|
|
@@ -1201,8 +1201,8 @@ function Vs(e, t, n) {
|
|
|
1201
1201
|
}
|
|
1202
1202
|
return r;
|
|
1203
1203
|
}
|
|
1204
|
-
const
|
|
1205
|
-
|
|
1204
|
+
const Ze = [];
|
|
1205
|
+
Ze[
|
|
1206
1206
|
0
|
|
1207
1207
|
/* States.BEFORE_PATH */
|
|
1208
1208
|
] = {
|
|
@@ -1224,7 +1224,7 @@ Xe[
|
|
|
1224
1224
|
/* States.AFTER_PATH */
|
|
1225
1225
|
]
|
|
1226
1226
|
};
|
|
1227
|
-
|
|
1227
|
+
Ze[
|
|
1228
1228
|
1
|
|
1229
1229
|
/* States.IN_PATH */
|
|
1230
1230
|
] = {
|
|
@@ -1245,7 +1245,7 @@ Xe[
|
|
|
1245
1245
|
/* States.AFTER_PATH */
|
|
1246
1246
|
]
|
|
1247
1247
|
};
|
|
1248
|
-
|
|
1248
|
+
Ze[
|
|
1249
1249
|
2
|
|
1250
1250
|
/* States.BEFORE_IDENT */
|
|
1251
1251
|
] = {
|
|
@@ -1264,7 +1264,7 @@ Xe[
|
|
|
1264
1264
|
/* Actions.APPEND */
|
|
1265
1265
|
]
|
|
1266
1266
|
};
|
|
1267
|
-
|
|
1267
|
+
Ze[
|
|
1268
1268
|
3
|
|
1269
1269
|
/* States.IN_IDENT */
|
|
1270
1270
|
] = {
|
|
@@ -1299,7 +1299,7 @@ Xe[
|
|
|
1299
1299
|
/* Actions.PUSH */
|
|
1300
1300
|
]
|
|
1301
1301
|
};
|
|
1302
|
-
|
|
1302
|
+
Ze[
|
|
1303
1303
|
4
|
|
1304
1304
|
/* States.IN_SUB_PATH */
|
|
1305
1305
|
] = {
|
|
@@ -1330,7 +1330,7 @@ Xe[
|
|
|
1330
1330
|
/* Actions.APPEND */
|
|
1331
1331
|
]
|
|
1332
1332
|
};
|
|
1333
|
-
|
|
1333
|
+
Ze[
|
|
1334
1334
|
5
|
|
1335
1335
|
/* States.IN_SINGLE_QUOTE */
|
|
1336
1336
|
] = {
|
|
@@ -1346,7 +1346,7 @@ Xe[
|
|
|
1346
1346
|
/* Actions.APPEND */
|
|
1347
1347
|
]
|
|
1348
1348
|
};
|
|
1349
|
-
|
|
1349
|
+
Ze[
|
|
1350
1350
|
6
|
|
1351
1351
|
/* States.IN_DOUBLE_QUOTE */
|
|
1352
1352
|
] = {
|
|
@@ -1366,11 +1366,11 @@ const Ws = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
|
1366
1366
|
function Gs(e) {
|
|
1367
1367
|
return Ws.test(e);
|
|
1368
1368
|
}
|
|
1369
|
-
function
|
|
1369
|
+
function Zs(e) {
|
|
1370
1370
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1371
1371
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function Xs(e) {
|
|
1374
1374
|
if (e == null)
|
|
1375
1375
|
return "o";
|
|
1376
1376
|
switch (e.charCodeAt(0)) {
|
|
@@ -1397,43 +1397,43 @@ function Zs(e) {
|
|
|
1397
1397
|
}
|
|
1398
1398
|
function Bs(e) {
|
|
1399
1399
|
const t = e.trim();
|
|
1400
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Gs(t) ?
|
|
1400
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Gs(t) ? Zs(t) : "*" + t;
|
|
1401
1401
|
}
|
|
1402
1402
|
function Ys(e) {
|
|
1403
1403
|
const t = [];
|
|
1404
|
-
let n = -1, r = 0, l = 0, a,
|
|
1405
|
-
const
|
|
1406
|
-
|
|
1404
|
+
let n = -1, r = 0, l = 0, a, m, u, i, g, E, T;
|
|
1405
|
+
const C = [];
|
|
1406
|
+
C[
|
|
1407
1407
|
0
|
|
1408
1408
|
/* Actions.APPEND */
|
|
1409
1409
|
] = () => {
|
|
1410
|
-
|
|
1411
|
-
},
|
|
1410
|
+
m === void 0 ? m = u : m += u;
|
|
1411
|
+
}, C[
|
|
1412
1412
|
1
|
|
1413
1413
|
/* Actions.PUSH */
|
|
1414
1414
|
] = () => {
|
|
1415
|
-
|
|
1416
|
-
},
|
|
1415
|
+
m !== void 0 && (t.push(m), m = void 0);
|
|
1416
|
+
}, C[
|
|
1417
1417
|
2
|
|
1418
1418
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1419
1419
|
] = () => {
|
|
1420
|
-
|
|
1420
|
+
C[
|
|
1421
1421
|
0
|
|
1422
1422
|
/* Actions.APPEND */
|
|
1423
1423
|
](), l++;
|
|
1424
|
-
},
|
|
1424
|
+
}, C[
|
|
1425
1425
|
3
|
|
1426
1426
|
/* Actions.PUSH_SUB_PATH */
|
|
1427
1427
|
] = () => {
|
|
1428
1428
|
if (l > 0)
|
|
1429
|
-
l--, r = 4,
|
|
1429
|
+
l--, r = 4, C[
|
|
1430
1430
|
0
|
|
1431
1431
|
/* Actions.APPEND */
|
|
1432
1432
|
]();
|
|
1433
1433
|
else {
|
|
1434
|
-
if (l = 0,
|
|
1434
|
+
if (l = 0, m === void 0 || (m = Bs(m), m === !1))
|
|
1435
1435
|
return !1;
|
|
1436
|
-
|
|
1436
|
+
C[
|
|
1437
1437
|
1
|
|
1438
1438
|
/* Actions.PUSH */
|
|
1439
1439
|
]();
|
|
@@ -1442,45 +1442,45 @@ function Ys(e) {
|
|
|
1442
1442
|
function F() {
|
|
1443
1443
|
const D = e[n + 1];
|
|
1444
1444
|
if (r === 5 && D === "'" || r === 6 && D === '"')
|
|
1445
|
-
return n++, u = "\\" + D,
|
|
1445
|
+
return n++, u = "\\" + D, C[
|
|
1446
1446
|
0
|
|
1447
1447
|
/* Actions.APPEND */
|
|
1448
1448
|
](), !0;
|
|
1449
1449
|
}
|
|
1450
1450
|
for (; r !== null; )
|
|
1451
1451
|
if (n++, a = e[n], !(a === "\\" && F())) {
|
|
1452
|
-
if (i =
|
|
1452
|
+
if (i = Xs(a), T = Ze[r], g = T[i] || T.l || 8, g === 8 || (r = g[0], g[1] !== void 0 && (E = C[g[1]], E && (u = a, E() === !1))))
|
|
1453
1453
|
return;
|
|
1454
1454
|
if (r === 7)
|
|
1455
1455
|
return t;
|
|
1456
1456
|
}
|
|
1457
1457
|
}
|
|
1458
|
-
const
|
|
1458
|
+
const hn = /* @__PURE__ */ new Map();
|
|
1459
1459
|
function Hs(e, t) {
|
|
1460
1460
|
return te(e) ? e[t] : null;
|
|
1461
1461
|
}
|
|
1462
1462
|
function $s(e, t) {
|
|
1463
1463
|
if (!te(e))
|
|
1464
1464
|
return null;
|
|
1465
|
-
let n =
|
|
1466
|
-
if (n || (n = Ys(t), n &&
|
|
1465
|
+
let n = hn.get(t);
|
|
1466
|
+
if (n || (n = Ys(t), n && hn.set(t, n)), !n)
|
|
1467
1467
|
return null;
|
|
1468
1468
|
const r = n.length;
|
|
1469
1469
|
let l = e, a = 0;
|
|
1470
1470
|
for (; a < r; ) {
|
|
1471
|
-
const
|
|
1472
|
-
if (
|
|
1471
|
+
const m = l[n[a]];
|
|
1472
|
+
if (m === void 0 || de(l))
|
|
1473
1473
|
return null;
|
|
1474
|
-
l =
|
|
1474
|
+
l = m, a++;
|
|
1475
1475
|
}
|
|
1476
1476
|
return l;
|
|
1477
1477
|
}
|
|
1478
|
-
const Js = "10.0.5", Ot = -1,
|
|
1478
|
+
const Js = "10.0.5", Ot = -1, Ct = "en-US", vn = "", pn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1479
1479
|
function Ks() {
|
|
1480
1480
|
return {
|
|
1481
|
-
upper: (e, t) => t === "text" &&
|
|
1482
|
-
lower: (e, t) => t === "text" &&
|
|
1483
|
-
capitalize: (e, t) => t === "text" &&
|
|
1481
|
+
upper: (e, t) => t === "text" && Z(e) ? e.toUpperCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
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) ? pn(e) : t === "vnode" && te(e) && "__v_isVNode" in e ? pn(e.children) : e
|
|
1484
1484
|
};
|
|
1485
1485
|
}
|
|
1486
1486
|
let $n;
|
|
@@ -1505,40 +1505,40 @@ const bn = (e) => {
|
|
|
1505
1505
|
}, no = () => Qn;
|
|
1506
1506
|
let gn = 0;
|
|
1507
1507
|
function ro(e = {}) {
|
|
1508
|
-
const t =
|
|
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 : Ct, l = de(r) ? Ct : r, a = be(e.fallbackLocale) || ee(e.fallbackLocale) || Z(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, m = ee(e.messages) ? e.messages : Rt(l), u = ee(e.datetimeFormats) ? e.datetimeFormats : Rt(l), i = ee(e.numberFormats) ? e.numberFormats : Rt(l), g = Ie(oe(), e.modifiers, Ks()), E = e.pluralRules || oe(), T = de(e.missing) ? e.missing : null, C = ve(e.missingWarn) || yt(e.missingWarn) ? e.missingWarn : !0, F = ve(e.fallbackWarn) || yt(e.fallbackWarn) ? e.fallbackWarn : !0, D = !!e.fallbackFormat, L = !!e.unresolving, w = de(e.postTranslation) ? e.postTranslation : null, f = ee(e.processor) ? e.processor : null, p = 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, h = te(e.fallbackContext) ? e.fallbackContext : void 0, R = e, A = te(R.__datetimeFormatters) ? R.__datetimeFormatters : /* @__PURE__ */ new Map(), Y = te(R.__numberFormatters) ? R.__numberFormatters : /* @__PURE__ */ new Map(), x = te(R.__meta) ? R.__meta : {};
|
|
1509
1509
|
gn++;
|
|
1510
|
-
const
|
|
1510
|
+
const d = {
|
|
1511
1511
|
version: n,
|
|
1512
1512
|
cid: gn,
|
|
1513
1513
|
locale: r,
|
|
1514
1514
|
fallbackLocale: a,
|
|
1515
|
-
messages:
|
|
1515
|
+
messages: m,
|
|
1516
1516
|
modifiers: g,
|
|
1517
1517
|
pluralRules: E,
|
|
1518
1518
|
missing: T,
|
|
1519
|
-
missingWarn:
|
|
1519
|
+
missingWarn: C,
|
|
1520
1520
|
fallbackWarn: F,
|
|
1521
1521
|
fallbackFormat: D,
|
|
1522
1522
|
unresolving: L,
|
|
1523
1523
|
postTranslation: w,
|
|
1524
1524
|
processor: f,
|
|
1525
|
-
warnHtmlMessage:
|
|
1525
|
+
warnHtmlMessage: p,
|
|
1526
1526
|
escapeParameter: S,
|
|
1527
1527
|
messageCompiler: c,
|
|
1528
1528
|
messageResolver: b,
|
|
1529
1529
|
localeFallbacker: I,
|
|
1530
|
-
fallbackContext:
|
|
1530
|
+
fallbackContext: h,
|
|
1531
1531
|
onWarn: t,
|
|
1532
|
-
__meta:
|
|
1532
|
+
__meta: x
|
|
1533
1533
|
};
|
|
1534
|
-
return
|
|
1534
|
+
return d.datetimeFormats = u, d.numberFormats = i, d.__datetimeFormatters = A, d.__numberFormatters = Y, __INTLIFY_PROD_DEVTOOLS__ && ws(d, n, x), d;
|
|
1535
1535
|
}
|
|
1536
1536
|
const Rt = (e) => ({ [e]: oe() });
|
|
1537
1537
|
function Qt(e, t, n, r, l) {
|
|
1538
|
-
const { missing: a, onWarn:
|
|
1538
|
+
const { missing: a, onWarn: m } = e;
|
|
1539
1539
|
if (a !== null) {
|
|
1540
1540
|
const u = a(e, n, t, l);
|
|
1541
|
-
return
|
|
1541
|
+
return Z(u) ? u : t;
|
|
1542
1542
|
} else
|
|
1543
1543
|
return t;
|
|
1544
1544
|
}
|
|
@@ -1559,26 +1559,26 @@ function oo(e, t) {
|
|
|
1559
1559
|
return !1;
|
|
1560
1560
|
}
|
|
1561
1561
|
function In(e, ...t) {
|
|
1562
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker:
|
|
1562
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: m } = e, { __datetimeFormatters: u } = e, [i, g, E, T] = jt(...t), C = ve(E.missingWarn) ? E.missingWarn : e.missingWarn;
|
|
1563
1563
|
ve(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn;
|
|
1564
|
-
const F = !!E.part, D = zt(e, E), L =
|
|
1564
|
+
const F = !!E.part, D = zt(e, E), L = m(
|
|
1565
1565
|
e,
|
|
1566
1566
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1567
1567
|
l,
|
|
1568
1568
|
D
|
|
1569
1569
|
);
|
|
1570
|
-
if (!
|
|
1570
|
+
if (!Z(i) || i === "")
|
|
1571
1571
|
return new Intl.DateTimeFormat(D, T).format(g);
|
|
1572
|
-
let w = {}, f,
|
|
1572
|
+
let w = {}, f, p = null;
|
|
1573
1573
|
const S = "datetime format";
|
|
1574
|
-
for (let I = 0; I < L.length && (f = L[I], w = n[f] || {},
|
|
1575
|
-
Qt(e, i, f,
|
|
1576
|
-
if (!ee(
|
|
1574
|
+
for (let I = 0; I < L.length && (f = L[I], w = n[f] || {}, p = w[i], !ee(p)); I++)
|
|
1575
|
+
Qt(e, i, f, C, S);
|
|
1576
|
+
if (!ee(p) || !Z(f))
|
|
1577
1577
|
return r ? Ot : i;
|
|
1578
1578
|
let c = `${f}__${i}`;
|
|
1579
|
-
|
|
1579
|
+
Nt(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({}, p, T)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1582
1582
|
}
|
|
1583
1583
|
const qn = [
|
|
1584
1584
|
"localeMatcher",
|
|
@@ -1604,8 +1604,8 @@ const qn = [
|
|
|
1604
1604
|
];
|
|
1605
1605
|
function jt(...e) {
|
|
1606
1606
|
const [t, n, r, l] = e, a = oe();
|
|
1607
|
-
let
|
|
1608
|
-
if (
|
|
1607
|
+
let m = oe(), u;
|
|
1608
|
+
if (Z(t)) {
|
|
1609
1609
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1610
1610
|
if (!i)
|
|
1611
1611
|
throw Ue(je.INVALID_ISO_DATE_ARGUMENT);
|
|
@@ -1624,9 +1624,9 @@ function jt(...e) {
|
|
|
1624
1624
|
u = t;
|
|
1625
1625
|
else
|
|
1626
1626
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1627
|
-
return
|
|
1628
|
-
qn.includes(i) ?
|
|
1629
|
-
}),
|
|
1627
|
+
return Z(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1628
|
+
qn.includes(i) ? m[i] = n[i] : a[i] = n[i];
|
|
1629
|
+
}), Z(r) ? a.locale = r : ee(r) && (m = r), ee(l) && (m = l), [a.key || "", u, a, m];
|
|
1630
1630
|
}
|
|
1631
1631
|
function En(e, t, n) {
|
|
1632
1632
|
const r = e;
|
|
@@ -1636,26 +1636,26 @@ function En(e, t, n) {
|
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
1638
1638
|
function yn(e, ...t) {
|
|
1639
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker:
|
|
1639
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: m } = e, { __numberFormatters: u } = e, [i, g, E, T] = Ut(...t), C = ve(E.missingWarn) ? E.missingWarn : e.missingWarn;
|
|
1640
1640
|
ve(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn;
|
|
1641
|
-
const F = !!E.part, D = zt(e, E), L =
|
|
1641
|
+
const F = !!E.part, D = zt(e, E), L = m(
|
|
1642
1642
|
e,
|
|
1643
1643
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1644
1644
|
l,
|
|
1645
1645
|
D
|
|
1646
1646
|
);
|
|
1647
|
-
if (!
|
|
1647
|
+
if (!Z(i) || i === "")
|
|
1648
1648
|
return new Intl.NumberFormat(D, T).format(g);
|
|
1649
|
-
let w = {}, f,
|
|
1649
|
+
let w = {}, f, p = null;
|
|
1650
1650
|
const S = "number format";
|
|
1651
|
-
for (let I = 0; I < L.length && (f = L[I], w = n[f] || {},
|
|
1652
|
-
Qt(e, i, f,
|
|
1653
|
-
if (!ee(
|
|
1651
|
+
for (let I = 0; I < L.length && (f = L[I], w = n[f] || {}, p = w[i], !ee(p)); I++)
|
|
1652
|
+
Qt(e, i, f, C, S);
|
|
1653
|
+
if (!ee(p) || !Z(f))
|
|
1654
1654
|
return r ? Ot : i;
|
|
1655
1655
|
let c = `${f}__${i}`;
|
|
1656
|
-
|
|
1656
|
+
Nt(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({}, p, T)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1659
1659
|
}
|
|
1660
1660
|
const er = [
|
|
1661
1661
|
"localeMatcher",
|
|
@@ -1681,15 +1681,15 @@ const er = [
|
|
|
1681
1681
|
];
|
|
1682
1682
|
function Ut(...e) {
|
|
1683
1683
|
const [t, n, r, l] = e, a = oe();
|
|
1684
|
-
let
|
|
1684
|
+
let m = oe();
|
|
1685
1685
|
if (!ge(t))
|
|
1686
1686
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1687
1687
|
const u = t;
|
|
1688
|
-
return
|
|
1689
|
-
er.includes(i) ?
|
|
1690
|
-
}),
|
|
1688
|
+
return Z(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1689
|
+
er.includes(i) ? m[i] = n[i] : a[i] = n[i];
|
|
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 Cn(e, t, n) {
|
|
1693
1693
|
const r = e;
|
|
1694
1694
|
for (const l in n) {
|
|
1695
1695
|
const a = `${t}__${l}`;
|
|
@@ -1697,7 +1697,7 @@ function Nn(e, t, n) {
|
|
|
1697
1697
|
}
|
|
1698
1698
|
}
|
|
1699
1699
|
const ao = (e) => e, lo = (e) => "", io = "text", co = (e) => e.length === 0 ? "" : $t(e), uo = Wr;
|
|
1700
|
-
function
|
|
1700
|
+
function Nn(e, t) {
|
|
1701
1701
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1702
1702
|
}
|
|
1703
1703
|
function mo(e) {
|
|
@@ -1708,129 +1708,129 @@ function fo(e, t) {
|
|
|
1708
1708
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1709
1709
|
}
|
|
1710
1710
|
function _o(e = {}) {
|
|
1711
|
-
const t = e.locale, n = mo(e), r = te(e.pluralRules) &&
|
|
1711
|
+
const t = e.locale, n = mo(e), r = te(e.pluralRules) && Z(t) && de(e.pluralRules[t]) ? e.pluralRules[t] : Nn, l = te(e.pluralRules) && Z(t) && de(e.pluralRules[t]) ? Nn : void 0, a = (f) => f[r(n, f.length, l)], m = e.list || [], u = (f) => m[f], i = e.named || oe();
|
|
1712
1712
|
ge(e.pluralIndex) && fo(n, i);
|
|
1713
1713
|
const g = (f) => i[f];
|
|
1714
|
-
function E(f,
|
|
1715
|
-
const S =
|
|
1714
|
+
function E(f, p) {
|
|
1715
|
+
const S = de(e.messages) ? e.messages(f, !!p) : 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, C = ee(e.processor) && de(e.processor.normalize) ? e.processor.normalize : co, F = ee(e.processor) && de(e.processor.interpolate) ? e.processor.interpolate : uo, D = ee(e.processor) && Z(e.processor.type) ? e.processor.type : io, w = {
|
|
1719
1719
|
list: u,
|
|
1720
1720
|
named: g,
|
|
1721
1721
|
plural: a,
|
|
1722
|
-
linked: (f, ...
|
|
1723
|
-
const [S, c] =
|
|
1722
|
+
linked: (f, ...p) => {
|
|
1723
|
+
const [S, c] = p;
|
|
1724
1724
|
let b = "text", I = "";
|
|
1725
|
-
|
|
1726
|
-
const
|
|
1725
|
+
p.length === 1 ? te(S) ? (I = S.modifier || I, b = S.type || b) : Z(S) && (I = S || I) : p.length === 2 && (Z(S) && (I = S || I), Z(c) && (b = c || b));
|
|
1726
|
+
const h = E(f, !0)(w), R = (
|
|
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(h) && I ? h[0] : h
|
|
1729
1729
|
);
|
|
1730
1730
|
return I ? T(I)(R, b) : R;
|
|
1731
1731
|
},
|
|
1732
1732
|
message: E,
|
|
1733
1733
|
type: D,
|
|
1734
1734
|
interpolate: F,
|
|
1735
|
-
normalize:
|
|
1736
|
-
values: Ie(oe(),
|
|
1735
|
+
normalize: C,
|
|
1736
|
+
values: Ie(oe(), m, i)
|
|
1737
1737
|
};
|
|
1738
1738
|
return w;
|
|
1739
1739
|
}
|
|
1740
|
-
const Tn = () => "", Te = (e) =>
|
|
1740
|
+
const Tn = () => "", Te = (e) => de(e);
|
|
1741
1741
|
function On(e, ...t) {
|
|
1742
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale:
|
|
1743
|
-
|
|
1744
|
-
let [f,
|
|
1742
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale: m, messages: u } = e, [i, g] = Vt(...t), E = ve(g.missingWarn) ? g.missingWarn : e.missingWarn, T = ve(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, C = ve(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, F = !!g.resolvedMessage, D = Z(g.default) || ve(g.default) ? ve(g.default) ? a ? i : () => i : g.default : n ? a ? i : () => i : null, L = n || D != null && (Z(D) || de(D)), w = zt(e, g);
|
|
1743
|
+
C && ho(g);
|
|
1744
|
+
let [f, p, S] = F ? [
|
|
1745
1745
|
i,
|
|
1746
1746
|
w,
|
|
1747
1747
|
u[w] || oe()
|
|
1748
|
-
] : tr(e, i, w,
|
|
1749
|
-
if (!F && !(
|
|
1748
|
+
] : tr(e, i, w, m, T, E), c = f, b = i;
|
|
1749
|
+
if (!F && !(Z(c) || ot(c) || Te(c)) && L && (c = D, b = c), !F && (!(Z(c) || ot(c) || Te(c)) || !Z(p)))
|
|
1750
1750
|
return l ? Ot : i;
|
|
1751
1751
|
let I = !1;
|
|
1752
|
-
const
|
|
1752
|
+
const h = () => {
|
|
1753
1753
|
I = !0;
|
|
1754
|
-
}, R = Te(c) ? c : nr(e, i,
|
|
1754
|
+
}, R = Te(c) ? c : nr(e, i, p, c, b, h);
|
|
1755
1755
|
if (I)
|
|
1756
1756
|
return c;
|
|
1757
|
-
const A = bo(e,
|
|
1757
|
+
const A = bo(e, p, S, g), Y = _o(A), x = vo(e, R, Y), d = r ? r(x, i) : x;
|
|
1758
1758
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1759
|
-
const
|
|
1759
|
+
const N = {
|
|
1760
1760
|
timestamp: Date.now(),
|
|
1761
|
-
key:
|
|
1762
|
-
locale:
|
|
1763
|
-
format:
|
|
1764
|
-
message:
|
|
1761
|
+
key: Z(i) ? i : Te(c) ? c.key : "",
|
|
1762
|
+
locale: p || (Te(c) ? c.locale : ""),
|
|
1763
|
+
format: Z(c) ? c : Te(c) ? c.source : "",
|
|
1764
|
+
message: d
|
|
1765
1765
|
};
|
|
1766
|
-
|
|
1766
|
+
N.meta = Ie({}, e.__meta, /* @__PURE__ */ to() || {}), Fs(N);
|
|
1767
1767
|
}
|
|
1768
|
-
return
|
|
1768
|
+
return d;
|
|
1769
1769
|
}
|
|
1770
|
-
function
|
|
1771
|
-
be(e.list) ? e.list = e.list.map((t) =>
|
|
1772
|
-
|
|
1770
|
+
function ho(e) {
|
|
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
|
+
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:
|
|
1777
|
-
let T = oe(),
|
|
1776
|
+
const { messages: m, onWarn: u, messageResolver: i, localeFallbacker: g } = e, E = g(e, r, n);
|
|
1777
|
+
let T = oe(), C, F = null;
|
|
1778
1778
|
const D = "translate";
|
|
1779
|
-
for (let L = 0; L < E.length && (
|
|
1780
|
-
if (!oo(
|
|
1779
|
+
for (let L = 0; L < E.length && (C = E[L], T = m[C] || oe(), (F = i(T, t)) === null && (F = T[t]), !(Z(F) || ot(F) || Te(F))); L++)
|
|
1780
|
+
if (!oo(C, E)) {
|
|
1781
1781
|
const w = Qt(
|
|
1782
1782
|
e,
|
|
1783
1783
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1784
1784
|
t,
|
|
1785
|
-
|
|
1785
|
+
C,
|
|
1786
1786
|
a,
|
|
1787
1787
|
D
|
|
1788
1788
|
);
|
|
1789
1789
|
w !== t && (F = w);
|
|
1790
1790
|
}
|
|
1791
|
-
return [F,
|
|
1791
|
+
return [F, C, T];
|
|
1792
1792
|
}
|
|
1793
1793
|
function nr(e, t, n, r, l, a) {
|
|
1794
|
-
const { messageCompiler:
|
|
1794
|
+
const { messageCompiler: m, warnHtmlMessage: u } = e;
|
|
1795
1795
|
if (Te(r)) {
|
|
1796
1796
|
const g = r;
|
|
1797
1797
|
return g.locale = g.locale || n, g.key = g.key || t, g;
|
|
1798
1798
|
}
|
|
1799
|
-
if (
|
|
1799
|
+
if (m == null) {
|
|
1800
1800
|
const g = () => r;
|
|
1801
1801
|
return g.locale = n, g.key = t, g;
|
|
1802
1802
|
}
|
|
1803
|
-
const i =
|
|
1803
|
+
const i = m(r, po(e, n, l, r, u, a));
|
|
1804
1804
|
return i.locale = n, i.key = t, i.source = r, i;
|
|
1805
1805
|
}
|
|
1806
1806
|
function vo(e, t, n) {
|
|
1807
1807
|
return t(n);
|
|
1808
1808
|
}
|
|
1809
|
-
function
|
|
1809
|
+
function Vt(...e) {
|
|
1810
1810
|
const [t, n, r] = e, l = oe();
|
|
1811
|
-
if (!
|
|
1811
|
+
if (!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 :
|
|
1814
|
+
return ge(n) ? l.plural = n : Z(n) ? l.default = n : ee(n) && !Nt(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 po(e, t, n, r, l, a) {
|
|
1817
1817
|
return {
|
|
1818
1818
|
locale: t,
|
|
1819
1819
|
key: n,
|
|
1820
1820
|
warnHtmlMessage: l,
|
|
1821
|
-
onError: (
|
|
1822
|
-
throw a && a(
|
|
1821
|
+
onError: (m) => {
|
|
1822
|
+
throw a && a(m), m;
|
|
1823
1823
|
},
|
|
1824
|
-
onCacheKey: (
|
|
1824
|
+
onCacheKey: (m) => Fr(t, n, m)
|
|
1825
1825
|
};
|
|
1826
1826
|
}
|
|
1827
1827
|
function bo(e, t, n, r) {
|
|
1828
|
-
const { modifiers: l, pluralRules: a, messageResolver:
|
|
1828
|
+
const { modifiers: l, pluralRules: a, messageResolver: m, fallbackLocale: u, fallbackWarn: i, missingWarn: g, fallbackContext: E } = e, C = {
|
|
1829
1829
|
locale: t,
|
|
1830
1830
|
modifiers: l,
|
|
1831
1831
|
pluralRules: a,
|
|
1832
1832
|
messages: (F, D) => {
|
|
1833
|
-
let L =
|
|
1833
|
+
let L = m(n, F);
|
|
1834
1834
|
if (L == null && (E || D)) {
|
|
1835
1835
|
const [, , w] = tr(
|
|
1836
1836
|
E || e,
|
|
@@ -1841,21 +1841,21 @@ function bo(e, t, n, r) {
|
|
|
1841
1841
|
i,
|
|
1842
1842
|
g
|
|
1843
1843
|
);
|
|
1844
|
-
L =
|
|
1844
|
+
L = m(w, F);
|
|
1845
1845
|
}
|
|
1846
|
-
if (
|
|
1846
|
+
if (Z(L) || ot(L)) {
|
|
1847
1847
|
let w = !1;
|
|
1848
|
-
const
|
|
1848
|
+
const p = nr(e, F, t, L, F, () => {
|
|
1849
1849
|
w = !0;
|
|
1850
1850
|
});
|
|
1851
|
-
return w ? Tn :
|
|
1851
|
+
return w ? Tn : p;
|
|
1852
1852
|
} else return Te(L) ? L : Tn;
|
|
1853
1853
|
}
|
|
1854
1854
|
};
|
|
1855
|
-
return e.processor && (
|
|
1855
|
+
return e.processor && (C.processor = e.processor), r.list && (C.list = r.list), r.named && (C.named = r.named), ge(r.plural) && (C.pluralIndex = r.plural), C;
|
|
1856
1856
|
}
|
|
1857
1857
|
_s();
|
|
1858
|
-
var go = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_b5e64fcf-b2f4-439e-9168-d637ffccb8e5", 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_b5e64fcf-b2f4-439e-9168-d637ffccb8e5", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.8.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/30.0.16248370", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1868", ACTIONS_ORCHESTRATION_ID: "286e1726-79d8-4747-9168-e9aadeb7334a.publish.publish.__default", npm_config_engine_strict: "true", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20261012.334.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_b5e64fcf-b2f4-439e-9168-d637ffccb8e5", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:12605", 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: "38702859340", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "58ca5319745985122a9dff19e713c54acc1594a4", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.9/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/KDI-5086-hrm-schedule", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9LREktNTA4Ni1ocm0tc2NoZWR1bGVcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTIwNzM1NTksImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MjA1MTM2MCwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjVhNzE3MTA1LTg1OTktNWU2OS1iM2ExLTVmMWNlMjIxYmQ3YiIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiMDlmNzZkOGFjNWU2YTA3MDc1NDI3NDllMWQ1Njg3YmYxZWFkNWYyYyIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MjA1MTA2MCwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJZeVQ3Nzg2XCIsXCJhY3Rvcl9pZFwiOlwiOTcwMDMxMjVcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiMTE2MzE1MDE2MDczXCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluXCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCIwOWY3NmQ4YWM1ZTZhMDcwNzU0Mjc0OWUxZDU2ODdiZjFlYWQ1ZjJjXCIsXCJyZWZcIjpcInJlZnMvaGVhZHMvS0RJLTUwODYtaHJtLXNjaGVkdWxlXCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjM4NzAyODU5MzQwXCIsXCJydW5fbnVtYmVyXCI6XCIyMDdcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCI1OGNhNTMxOTc0NTk4NTEyMmE5ZGZmMTllNzEzYzU0YWNjMTU5NGE0XCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy9LREktNTA4Ni1ocm0tc2NoZWR1bGVcIixcIndvcmtmbG93X3NoYVwiOlwiNThjYTUzMTk3NDU5ODUxMjJhOWRmZjE5ZTcxM2M1NGFjYzE1OTRhNFwifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvaHJtLXNlcnZpY2U6cmVmOnJlZnMvaGVhZHMvS0RJLTUwODYtaHJtLXNjaGVkdWxlIiwib3JjaF9pZCI6IjI4NmUxNzI2LTc5ZDgtNDc0Ny05MTY4LWU5YWFkZWI3MzM0YS5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiMjg2ZTE3MjYtNzlkOC00NzQ3LTkxNjgtZTlhYWRlYjczMzRhIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMzg3MDI4NTkzNDAiLCJydW5fbnVtYmVyIjoiMjA3IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDE5OTUyMCIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjI4NmUxNzI2LTc5ZDgtNDc0Ny05MTY4LWU5YWFkZWI3MzM0YTo1YTcxNzEwNS04NTk5LTVlNjktYjNhMS01ZjFjZTIyMWJkN2IgQWN0aW9ucy5SdW5uZXI6Mjg2ZTE3MjYtNzlkOC00NzQ3LTkxNjgtZTlhYWRlYjczMzRhOjVhNzE3MTA1LTg1OTktNWU2OS1iM2ExLTVmMWNlMjIxYmQ3YiBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czoyODZlMTcyNi03OWQ4LTQ3NDctOTE2OC1lOWFhZGViNzMzNGE6NWE3MTcxMDUtODU5OS01ZTY5LWIzYTEtNWYxY2UyMjFiZDdiIGdlbmVyYXRlX2lkX3Rva2VuOjI4NmUxNzI2LTc5ZDgtNDc0Ny05MTY4LWU5YWFkZWI3MzM0YTo1YTcxNzEwNS04NTk5LTVlNjktYjNhMS01ZjFjZTIyMWJkN2IgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiI1OGNhNTMxOTc0NTk4NTEyMmE5ZGZmMTllNzEzYzU0YWNjMTU5NGE0IiwidHJ1c3RfdGllciI6IjEifQ.wWnbqr4uwLs_fCjn1-fDSl8pw0EJTz-TUxFjX-40CtGNnO9yZiHXQ2nBvPmutwlW3wpUjFzPGDN-Q-qZ4SuAwrkz0stYL_-NWpCRZFsSQWGWNZMIjsDAZkT76urMQb2UAse0S64DnvkPbXL9R92iNWApc_xA2aablzeED6Ey8Q2cyMu49lOZGXUb5PY4suebuwPqIypAg6ZKHVlpz4YFXj7AkYifDvjDJ8uP0WDfRuA2u_Y1VYsMQi_kQMcOUyHIpcxHXMm4Cq9Brr4Y7CVrzgLp7BKhdktn21i8WT8m-ScDVt8Rll_njgsjwlKMFGFzu7hNZB3Y_AeS5qNQLU3_Eg", 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_c0dfe61e-e7cf-44b0-b051-f5b88d3f67e7", INVOCATION_ID: "528bdd5d7e5846248f55d80db0a91924", 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: "207", 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 1000199520", 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.23", 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: "58ca5319745985122a9dff19e713c54acc1594a4", 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_b5e64fcf-b2f4-439e-9168-d637ffccb8e5", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "97003125", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-3-azure-eastus.actions.githubusercontent.com/192//idtoken/286e1726-79d8-4747-9168-e9aadeb7334a/5a717105-8599-5e69-b3a1-5f1ce221bd7b?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_b5e64fcf-b2f4-439e-9168-d637ffccb8e5", 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_b5e64fcf-b2f4-439e-9168-d637ffccb8e5", 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_b5e64fcf-b2f4-439e-9168-d637ffccb8e5", 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_278bee2b-46e2-40c5-adc9-44989c198124", 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_278bee2b-46e2-40c5-adc9-44989c198124", 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: "1809", ACTIONS_ORCHESTRATION_ID: "47db0087-3c15-48a1-b885-c9749f8eadac.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_278bee2b-46e2-40c5-adc9-44989c198124", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:11608", 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: "38706592801", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "110130967a6503dad0a60bbef0937cf9953f563b", 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.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9LREktNTA4Ni1ocm0tc2NoZWR1bGVcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTIwNzU0NTEsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MjA1MzI1MSwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImVkMDdkZmRjLWNlNmEtNTZkNC05ZDJkLTVhMDk3NmEyZmEwYiIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiMDlmNzZkOGFjNWU2YTA3MDc1NDI3NDllMWQ1Njg3YmYxZWFkNWYyYyIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MjA1Mjk1MSwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJZeVQ3Nzg2XCIsXCJhY3Rvcl9pZFwiOlwiOTcwMDMxMjVcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiMTE2MzI3NDE1MDg4XCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluXCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCIwOWY3NmQ4YWM1ZTZhMDcwNzU0Mjc0OWUxZDU2ODdiZjFlYWQ1ZjJjXCIsXCJyZWZcIjpcInJlZnMvaGVhZHMvS0RJLTUwODYtaHJtLXNjaGVkdWxlXCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjM4NzA2NTkyODAxXCIsXCJydW5fbnVtYmVyXCI6XCIyMDlcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCIxMTAxMzA5NjdhNjUwM2RhZDBhNjBiYmVmMDkzN2NmOTk1M2Y1NjNiXCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy9LREktNTA4Ni1ocm0tc2NoZWR1bGVcIixcIndvcmtmbG93X3NoYVwiOlwiMTEwMTMwOTY3YTY1MDNkYWQwYTYwYmJlZjA5MzdjZjk5NTNmNTYzYlwifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvaHJtLXNlcnZpY2U6cmVmOnJlZnMvaGVhZHMvS0RJLTUwODYtaHJtLXNjaGVkdWxlIiwib3JjaF9pZCI6IjQ3ZGIwMDg3LTNjMTUtNDhhMS1iODg1LWM5NzQ5ZjhlYWRhYy5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiNDdkYjAwODctM2MxNS00OGExLWI4ODUtYzk3NDlmOGVhZGFjIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMzg3MDY1OTI4MDEiLCJydW5fbnVtYmVyIjoiMjA5IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDE5OTY0MCIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjQ3ZGIwMDg3LTNjMTUtNDhhMS1iODg1LWM5NzQ5ZjhlYWRhYzplZDA3ZGZkYy1jZTZhLTU2ZDQtOWQyZC01YTA5NzZhMmZhMGIgQWN0aW9ucy5SdW5uZXI6NDdkYjAwODctM2MxNS00OGExLWI4ODUtYzk3NDlmOGVhZGFjOmVkMDdkZmRjLWNlNmEtNTZkNC05ZDJkLTVhMDk3NmEyZmEwYiBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czo0N2RiMDA4Ny0zYzE1LTQ4YTEtYjg4NS1jOTc0OWY4ZWFkYWM6ZWQwN2RmZGMtY2U2YS01NmQ0LTlkMmQtNWEwOTc2YTJmYTBiIGdlbmVyYXRlX2lkX3Rva2VuOjQ3ZGIwMDg3LTNjMTUtNDhhMS1iODg1LWM5NzQ5ZjhlYWRhYzplZDA3ZGZkYy1jZTZhLTU2ZDQtOWQyZC01YTA5NzZhMmZhMGIgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiIxMTAxMzA5NjdhNjUwM2RhZDBhNjBiYmVmMDkzN2NmOTk1M2Y1NjNiIiwidHJ1c3RfdGllciI6IjEifQ.o7OCH68mLYLT7cHGtEqDHo5r9vllMfiKXaEjczWqE-p2EHbfKSk70aH6cG4OUv5X3atjVEBxa7Wt2nmPFhQhDuyJV1ebp4baQtpP8A4zCg4VLEVimUiEZstuzKXIaSZgCvfKyyDmYajDzef5A8mwc128JsIUbOeKRcd-Vnm72jOkKD9K_7PJjzVNMZ8l99NPvVIM8yiG43LlKl3L0oLctnLd42tE7AiK1WTIMa5VQG-0JPVv02KwVdpyo-tSUgEerZrbu1axPd6p-8ZPmj21mCZm4QRiCjVZA16cogP0HjSLQxDy7TWVMFNDnFkYmRoU-cT517ExOABv15LFoieH4Q", 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_8e1fb9e7-9566-4b87-9912-8b6b9ae43a30", INVOCATION_ID: "2112fdbaca884f91a7b56d3265293de7", 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: "209", 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 1000199640", 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.25", 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: "110130967a6503dad0a60bbef0937cf9953f563b", 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_278bee2b-46e2-40c5-adc9-44989c198124", 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/245//idtoken/47db0087-3c15-48a1-b885-c9749f8eadac/ed07dfdc-ce6a-56d4-9d2d-5a0976a2fa0b?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_278bee2b-46e2-40c5-adc9-44989c198124", 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_278bee2b-46e2-40c5-adc9-44989c198124", 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_278bee2b-46e2-40c5-adc9-44989c198124", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1859
1859
|
const Io = "10.0.5";
|
|
1860
1860
|
function Eo() {
|
|
1861
1861
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Ye().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Ye().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ye().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ye().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
@@ -1876,45 +1876,45 @@ const at = {
|
|
|
1876
1876
|
function ut(e, ...t) {
|
|
1877
1877
|
return Tt(e, null, void 0);
|
|
1878
1878
|
}
|
|
1879
|
-
const
|
|
1880
|
-
function
|
|
1879
|
+
const xt = /* @__PURE__ */ $e("__translateVNode"), Wt = /* @__PURE__ */ $e("__datetimeParts"), Gt = /* @__PURE__ */ $e("__numberParts"), yo = $e("__setPluralRules"), rr = /* @__PURE__ */ $e("__injectWithOption"), Zt = /* @__PURE__ */ $e("__dispose");
|
|
1880
|
+
function mt(e) {
|
|
1881
1881
|
if (!te(e))
|
|
1882
1882
|
return e;
|
|
1883
1883
|
for (const t in e)
|
|
1884
1884
|
if (Ae(e, t))
|
|
1885
1885
|
if (!t.includes("."))
|
|
1886
|
-
te(e[t]) &&
|
|
1886
|
+
te(e[t]) && mt(e[t]);
|
|
1887
1887
|
else {
|
|
1888
1888
|
const n = t.split("."), r = n.length - 1;
|
|
1889
1889
|
let l = e, a = !1;
|
|
1890
|
-
for (let
|
|
1891
|
-
if (n[
|
|
1890
|
+
for (let m = 0; m < r; m++) {
|
|
1891
|
+
if (n[m] in l || (l[n[m]] = oe()), !te(l[n[m]])) {
|
|
1892
1892
|
a = !0;
|
|
1893
1893
|
break;
|
|
1894
1894
|
}
|
|
1895
|
-
l = l[n[
|
|
1895
|
+
l = l[n[m]];
|
|
1896
1896
|
}
|
|
1897
|
-
a || (l[n[r]] = e[t], delete e[t]), te(l[n[r]]) &&
|
|
1897
|
+
a || (l[n[r]] = e[t], delete e[t]), te(l[n[r]]) && mt(l[n[r]]);
|
|
1898
1898
|
}
|
|
1899
1899
|
return e;
|
|
1900
1900
|
}
|
|
1901
1901
|
function sr(e, t) {
|
|
1902
|
-
const { messages: n, __i18n: r, messageResolver: l, flatJson: a } = t,
|
|
1902
|
+
const { messages: n, __i18n: r, messageResolver: l, flatJson: a } = t, m = ee(n) ? n : be(r) ? oe() : { [e]: oe() };
|
|
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 ? (
|
|
1906
|
+
i ? (m[i] = m[i] || oe(), Et(g, m[i])) : Et(g, m);
|
|
1907
1907
|
} else
|
|
1908
|
-
|
|
1908
|
+
Z(u) && Et(JSON.parse(u), m);
|
|
1909
1909
|
}), l == null && a)
|
|
1910
|
-
for (const u in
|
|
1911
|
-
Ae(
|
|
1912
|
-
return
|
|
1910
|
+
for (const u in m)
|
|
1911
|
+
Ae(m, u) && mt(m[u]);
|
|
1912
|
+
return m;
|
|
1913
1913
|
}
|
|
1914
1914
|
function or(e) {
|
|
1915
1915
|
return e.type;
|
|
1916
1916
|
}
|
|
1917
|
-
function
|
|
1917
|
+
function Co(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,
|
|
@@ -1927,14 +1927,14 @@ function No(e, t, n) {
|
|
|
1927
1927
|
{
|
|
1928
1928
|
if (te(t.datetimeFormats)) {
|
|
1929
1929
|
const a = Object.keys(t.datetimeFormats);
|
|
1930
|
-
a.length && a.forEach((
|
|
1931
|
-
e.mergeDateTimeFormat(
|
|
1930
|
+
a.length && a.forEach((m) => {
|
|
1931
|
+
e.mergeDateTimeFormat(m, t.datetimeFormats[m]);
|
|
1932
1932
|
});
|
|
1933
1933
|
}
|
|
1934
1934
|
if (te(t.numberFormats)) {
|
|
1935
1935
|
const a = Object.keys(t.numberFormats);
|
|
1936
|
-
a.length && a.forEach((
|
|
1937
|
-
e.mergeNumberFormat(
|
|
1936
|
+
a.length && a.forEach((m) => {
|
|
1937
|
+
e.mergeNumberFormat(m, t.numberFormats[m]);
|
|
1938
1938
|
});
|
|
1939
1939
|
}
|
|
1940
1940
|
}
|
|
@@ -1942,7 +1942,7 @@ function No(e, t, n) {
|
|
|
1942
1942
|
function Sn(e) {
|
|
1943
1943
|
return ue(fr, null, e, 0);
|
|
1944
1944
|
}
|
|
1945
|
-
const An = "__INTLIFY_META__", Ln = () => [],
|
|
1945
|
+
const An = "__INTLIFY_META__", Ln = () => [], No = () => !1;
|
|
1946
1946
|
let kn = 0;
|
|
1947
1947
|
function Rn(e) {
|
|
1948
1948
|
return (t, n, r, l) => e(n, r, Bt() || void 0, l);
|
|
@@ -1953,19 +1953,19 @@ const To = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
|
1953
1953
|
return e && (t = or(e)[An]) ? { [An]: t } : null;
|
|
1954
1954
|
};
|
|
1955
1955
|
function Oo(e = {}) {
|
|
1956
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, l = e.flatJson, a = on ? rt :
|
|
1957
|
-
let
|
|
1956
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, l = e.flatJson, a = on ? rt : mr;
|
|
1957
|
+
let m = ve(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1958
1958
|
const u = a(
|
|
1959
1959
|
// prettier-ignore
|
|
1960
|
-
t &&
|
|
1960
|
+
t && m ? t.locale.value : Z(e.locale) ? e.locale : Ct
|
|
1961
1961
|
), i = a(
|
|
1962
1962
|
// prettier-ignore
|
|
1963
|
-
t &&
|
|
1963
|
+
t && m ? t.fallbackLocale.value : Z(e.fallbackLocale) || be(e.fallbackLocale) || ee(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
1964
1964
|
), g = a(sr(u.value, e)), E = a(ee(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), T = a(ee(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
|
|
1965
|
-
let
|
|
1965
|
+
let C = t ? t.missingWarn : ve(e.missingWarn) || yt(e.missingWarn) ? e.missingWarn : !0, F = t ? t.fallbackWarn : ve(e.fallbackWarn) || yt(e.fallbackWarn) ? e.fallbackWarn : !0, D = t ? t.fallbackRoot : ve(e.fallbackRoot) ? e.fallbackRoot : !0, L = !!e.fallbackFormat, w = de(e.missing) ? e.missing : null, f = de(e.missing) ? Rn(e.missing) : null, p = 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, h;
|
|
1968
|
+
h = (() => {
|
|
1969
1969
|
r && bn(null);
|
|
1970
1970
|
const v = {
|
|
1971
1971
|
version: Io,
|
|
@@ -1975,21 +1975,21 @@ function Oo(e = {}) {
|
|
|
1975
1975
|
modifiers: b,
|
|
1976
1976
|
pluralRules: I,
|
|
1977
1977
|
missing: f === null ? void 0 : f,
|
|
1978
|
-
missingWarn:
|
|
1978
|
+
missingWarn: C,
|
|
1979
1979
|
fallbackWarn: F,
|
|
1980
1980
|
fallbackFormat: L,
|
|
1981
1981
|
unresolving: !0,
|
|
1982
|
-
postTranslation:
|
|
1982
|
+
postTranslation: p === null ? void 0 : p,
|
|
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
|
-
v.datetimeFormats = E.value, v.numberFormats = T.value, v.__datetimeFormatters = ee(
|
|
1989
|
+
v.datetimeFormats = E.value, v.numberFormats = T.value, v.__datetimeFormatters = ee(h) ? h.__datetimeFormatters : void 0, v.__numberFormatters = ee(h) ? h.__numberFormatters : void 0;
|
|
1990
1990
|
const y = ro(v);
|
|
1991
1991
|
return r && bn(y), y;
|
|
1992
|
-
})(), lt(
|
|
1992
|
+
})(), lt(h, u.value, i.value);
|
|
1993
1993
|
function A() {
|
|
1994
1994
|
return [
|
|
1995
1995
|
u.value,
|
|
@@ -2002,46 +2002,46 @@ function Oo(e = {}) {
|
|
|
2002
2002
|
const Y = z({
|
|
2003
2003
|
get: () => u.value,
|
|
2004
2004
|
set: (v) => {
|
|
2005
|
-
u.value = v,
|
|
2005
|
+
u.value = v, h.locale = u.value;
|
|
2006
2006
|
}
|
|
2007
|
-
}),
|
|
2007
|
+
}), x = z({
|
|
2008
2008
|
get: () => i.value,
|
|
2009
2009
|
set: (v) => {
|
|
2010
|
-
i.value = v,
|
|
2010
|
+
i.value = v, h.fallbackLocale = i.value, lt(h, u.value, v);
|
|
2011
2011
|
}
|
|
2012
|
-
}),
|
|
2013
|
-
function
|
|
2014
|
-
return
|
|
2012
|
+
}), d = z(() => g.value), N = /* @__PURE__ */ z(() => E.value), U = /* @__PURE__ */ z(() => T.value);
|
|
2013
|
+
function V() {
|
|
2014
|
+
return de(p) ? p : null;
|
|
2015
2015
|
}
|
|
2016
2016
|
function j(v) {
|
|
2017
|
-
|
|
2017
|
+
p = v, h.postTranslation = v;
|
|
2018
2018
|
}
|
|
2019
2019
|
function G() {
|
|
2020
2020
|
return w;
|
|
2021
2021
|
}
|
|
2022
2022
|
function W(v) {
|
|
2023
|
-
v !== null && (f = Rn(v)), w = v,
|
|
2023
|
+
v !== null && (f = Rn(v)), w = v, h.missing = f;
|
|
2024
2024
|
}
|
|
2025
|
-
const
|
|
2025
|
+
const X = (v, y, $, le, Be, 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 || (h.fallbackContext = t ? no() : void 0), ze = v(h);
|
|
2030
2030
|
} finally {
|
|
2031
|
-
__INTLIFY_PROD_DEVTOOLS__, r || (
|
|
2031
|
+
__INTLIFY_PROD_DEVTOOLS__, r || (h.fallbackContext = void 0);
|
|
2032
2032
|
}
|
|
2033
2033
|
if ($ !== "translate exists" && // for not `te` (e.g `t`)
|
|
2034
2034
|
ge(ze) && ze === Ot || $ === "translate exists" && !ze) {
|
|
2035
2035
|
const [cr, ya] = y();
|
|
2036
2036
|
return t && D ? le(t) : Be(cr);
|
|
2037
2037
|
} else {
|
|
2038
|
-
if (
|
|
2038
|
+
if (dt(ze))
|
|
2039
2039
|
return ze;
|
|
2040
2040
|
throw ut(at.UNEXPECTED_RETURN_TYPE);
|
|
2041
2041
|
}
|
|
2042
2042
|
};
|
|
2043
2043
|
function B(...v) {
|
|
2044
|
-
return
|
|
2044
|
+
return X((y) => Reflect.apply(On, null, [y, ...v]), () => Vt(...v), "translate", (y) => Reflect.apply(y.t, y, [...v]), (y) => y, (y) => Z(y));
|
|
2045
2045
|
}
|
|
2046
2046
|
function ne(...v) {
|
|
2047
2047
|
const [y, $, le] = v;
|
|
@@ -2050,13 +2050,13 @@ function Oo(e = {}) {
|
|
|
2050
2050
|
return B(y, $, Ie({ resolvedMessage: !0 }, le || {}));
|
|
2051
2051
|
}
|
|
2052
2052
|
function Q(...v) {
|
|
2053
|
-
return
|
|
2053
|
+
return X((y) => Reflect.apply(In, null, [y, ...v]), () => jt(...v), "datetime format", (y) => Reflect.apply(y.d, y, [...v]), () => vn, (y) => Z(y));
|
|
2054
2054
|
}
|
|
2055
2055
|
function _e(...v) {
|
|
2056
|
-
return
|
|
2056
|
+
return X((y) => Reflect.apply(yn, null, [y, ...v]), () => Ut(...v), "number format", (y) => Reflect.apply(y.n, y, [...v]), () => vn, (y) => Z(y));
|
|
2057
2057
|
}
|
|
2058
2058
|
function ce(v) {
|
|
2059
|
-
return v.map((y) =>
|
|
2059
|
+
return v.map((y) => Z(y) || ge(y) || ve(y) ? Sn(String(y)) : y);
|
|
2060
2060
|
}
|
|
2061
2061
|
const fe = {
|
|
2062
2062
|
normalize: ce,
|
|
@@ -2064,7 +2064,7 @@ function Oo(e = {}) {
|
|
|
2064
2064
|
type: "vnode"
|
|
2065
2065
|
};
|
|
2066
2066
|
function q(...v) {
|
|
2067
|
-
return
|
|
2067
|
+
return X((y) => {
|
|
2068
2068
|
let $;
|
|
2069
2069
|
const le = y;
|
|
2070
2070
|
try {
|
|
@@ -2073,98 +2073,98 @@ function Oo(e = {}) {
|
|
|
2073
2073
|
le.processor = null;
|
|
2074
2074
|
}
|
|
2075
2075
|
return $;
|
|
2076
|
-
}, () =>
|
|
2076
|
+
}, () => Vt(...v), "translate", (y) => y[xt](...v), (y) => [Sn(y)], (y) => be(y));
|
|
2077
2077
|
}
|
|
2078
2078
|
function we(...v) {
|
|
2079
|
-
return
|
|
2079
|
+
return X((y) => Reflect.apply(yn, null, [y, ...v]), () => Ut(...v), "number format", (y) => y[Gt](...v), Ln, (y) => Z(y) || be(y));
|
|
2080
2080
|
}
|
|
2081
2081
|
function K(...v) {
|
|
2082
|
-
return
|
|
2082
|
+
return X((y) => Reflect.apply(In, null, [y, ...v]), () => jt(...v), "datetime format", (y) => y[Wt](...v), Ln, (y) => Z(y) || be(y));
|
|
2083
2083
|
}
|
|
2084
|
-
function
|
|
2085
|
-
I = v,
|
|
2084
|
+
function he(v) {
|
|
2085
|
+
I = v, h.pluralRules = I;
|
|
2086
2086
|
}
|
|
2087
2087
|
function Je(v, y) {
|
|
2088
|
-
return
|
|
2088
|
+
return X(() => {
|
|
2089
2089
|
if (!v)
|
|
2090
2090
|
return !1;
|
|
2091
|
-
const $ =
|
|
2092
|
-
return ot(Be) || Te(Be) ||
|
|
2093
|
-
}, () => [v], "translate exists", ($) => Reflect.apply($.te, $, [v, y]),
|
|
2091
|
+
const $ = Z(y) ? y : u.value, le = Fe($), Be = h.messageResolver(le, v);
|
|
2092
|
+
return ot(Be) || Te(Be) || Z(Be);
|
|
2093
|
+
}, () => [v], "translate exists", ($) => Reflect.apply($.te, $, [v, y]), No, ($) => ve($));
|
|
2094
2094
|
}
|
|
2095
2095
|
function Ke(v) {
|
|
2096
2096
|
let y = null;
|
|
2097
|
-
const $ = Hn(
|
|
2097
|
+
const $ = Hn(h, i.value, u.value);
|
|
2098
2098
|
for (let le = 0; le < $.length; le++) {
|
|
2099
|
-
const Be = g.value[$[le]] || {},
|
|
2100
|
-
if (
|
|
2101
|
-
y =
|
|
2099
|
+
const Be = g.value[$[le]] || {}, dt = h.messageResolver(Be, v);
|
|
2100
|
+
if (dt != null) {
|
|
2101
|
+
y = dt;
|
|
2102
2102
|
break;
|
|
2103
2103
|
}
|
|
2104
2104
|
}
|
|
2105
2105
|
return y;
|
|
2106
2106
|
}
|
|
2107
|
-
function
|
|
2107
|
+
function Ve(v) {
|
|
2108
2108
|
const y = Ke(v);
|
|
2109
2109
|
return y ?? (t ? t.tm(v) || {} : {});
|
|
2110
2110
|
}
|
|
2111
2111
|
function Fe(v) {
|
|
2112
2112
|
return g.value[v] || {};
|
|
2113
2113
|
}
|
|
2114
|
-
function
|
|
2114
|
+
function Ne(v, y) {
|
|
2115
2115
|
if (l) {
|
|
2116
2116
|
const $ = { [v]: y };
|
|
2117
2117
|
for (const le in $)
|
|
2118
|
-
Ae($, le) &&
|
|
2118
|
+
Ae($, le) && mt($[le]);
|
|
2119
2119
|
y = $[v];
|
|
2120
2120
|
}
|
|
2121
|
-
g.value[v] = y,
|
|
2121
|
+
g.value[v] = y, h.messages = g.value;
|
|
2122
2122
|
}
|
|
2123
|
-
function
|
|
2123
|
+
function Xe(v, y) {
|
|
2124
2124
|
g.value[v] = g.value[v] || {};
|
|
2125
2125
|
const $ = { [v]: y };
|
|
2126
2126
|
if (l)
|
|
2127
2127
|
for (const le in $)
|
|
2128
|
-
Ae($, le) &&
|
|
2129
|
-
y = $[v], Et(y, g.value[v]),
|
|
2128
|
+
Ae($, le) && mt($[le]);
|
|
2129
|
+
y = $[v], Et(y, g.value[v]), h.messages = g.value;
|
|
2130
2130
|
}
|
|
2131
2131
|
function O(v) {
|
|
2132
2132
|
return E.value[v] || {};
|
|
2133
2133
|
}
|
|
2134
2134
|
function s(v, y) {
|
|
2135
|
-
E.value[v] = y,
|
|
2135
|
+
E.value[v] = y, h.datetimeFormats = E.value, En(h, v, y);
|
|
2136
2136
|
}
|
|
2137
2137
|
function o(v, y) {
|
|
2138
|
-
E.value[v] = Ie(E.value[v] || {}, y),
|
|
2138
|
+
E.value[v] = Ie(E.value[v] || {}, y), h.datetimeFormats = E.value, En(h, v, y);
|
|
2139
2139
|
}
|
|
2140
2140
|
function _(v) {
|
|
2141
2141
|
return T.value[v] || {};
|
|
2142
2142
|
}
|
|
2143
2143
|
function k(v, y) {
|
|
2144
|
-
T.value[v] = y,
|
|
2144
|
+
T.value[v] = y, h.numberFormats = T.value, Cn(h, v, y);
|
|
2145
2145
|
}
|
|
2146
2146
|
function M(v, y) {
|
|
2147
|
-
T.value[v] = Ie(T.value[v] || {}, y),
|
|
2147
|
+
T.value[v] = Ie(T.value[v] || {}, y), h.numberFormats = T.value, Cn(h, v, y);
|
|
2148
2148
|
}
|
|
2149
2149
|
kn++, t && on && (Dt(t.locale, (v) => {
|
|
2150
|
-
|
|
2150
|
+
m && (u.value = v, h.locale = v, lt(h, u.value, i.value));
|
|
2151
2151
|
}), Dt(t.fallbackLocale, (v) => {
|
|
2152
|
-
|
|
2152
|
+
m && (i.value = v, h.fallbackLocale = v, lt(h, u.value, i.value));
|
|
2153
2153
|
}));
|
|
2154
2154
|
const P = {
|
|
2155
2155
|
id: kn,
|
|
2156
2156
|
locale: Y,
|
|
2157
|
-
fallbackLocale:
|
|
2157
|
+
fallbackLocale: x,
|
|
2158
2158
|
get inheritLocale() {
|
|
2159
|
-
return
|
|
2159
|
+
return m;
|
|
2160
2160
|
},
|
|
2161
2161
|
set inheritLocale(v) {
|
|
2162
|
-
|
|
2162
|
+
m = v, v && t && (u.value = t.locale.value, i.value = t.fallbackLocale.value, lt(h, u.value, i.value));
|
|
2163
2163
|
},
|
|
2164
2164
|
get availableLocales() {
|
|
2165
2165
|
return Object.keys(g.value).sort();
|
|
2166
2166
|
},
|
|
2167
|
-
messages:
|
|
2167
|
+
messages: d,
|
|
2168
2168
|
get modifiers() {
|
|
2169
2169
|
return b;
|
|
2170
2170
|
},
|
|
@@ -2175,16 +2175,16 @@ function Oo(e = {}) {
|
|
|
2175
2175
|
return r;
|
|
2176
2176
|
},
|
|
2177
2177
|
get missingWarn() {
|
|
2178
|
-
return
|
|
2178
|
+
return C;
|
|
2179
2179
|
},
|
|
2180
2180
|
set missingWarn(v) {
|
|
2181
|
-
|
|
2181
|
+
C = v, h.missingWarn = C;
|
|
2182
2182
|
},
|
|
2183
2183
|
get fallbackWarn() {
|
|
2184
2184
|
return F;
|
|
2185
2185
|
},
|
|
2186
2186
|
set fallbackWarn(v) {
|
|
2187
|
-
F = v,
|
|
2187
|
+
F = v, h.fallbackWarn = F;
|
|
2188
2188
|
},
|
|
2189
2189
|
get fallbackRoot() {
|
|
2190
2190
|
return D;
|
|
@@ -2196,31 +2196,31 @@ function Oo(e = {}) {
|
|
|
2196
2196
|
return L;
|
|
2197
2197
|
},
|
|
2198
2198
|
set fallbackFormat(v) {
|
|
2199
|
-
L = v,
|
|
2199
|
+
L = v, h.fallbackFormat = L;
|
|
2200
2200
|
},
|
|
2201
2201
|
get warnHtmlMessage() {
|
|
2202
2202
|
return S;
|
|
2203
2203
|
},
|
|
2204
2204
|
set warnHtmlMessage(v) {
|
|
2205
|
-
S = v,
|
|
2205
|
+
S = v, h.warnHtmlMessage = v;
|
|
2206
2206
|
},
|
|
2207
2207
|
get escapeParameter() {
|
|
2208
2208
|
return c;
|
|
2209
2209
|
},
|
|
2210
2210
|
set escapeParameter(v) {
|
|
2211
|
-
c = v,
|
|
2211
|
+
c = v, h.escapeParameter = v;
|
|
2212
2212
|
},
|
|
2213
2213
|
t: B,
|
|
2214
2214
|
getLocaleMessage: Fe,
|
|
2215
|
-
setLocaleMessage:
|
|
2216
|
-
mergeLocaleMessage:
|
|
2217
|
-
getPostTranslationHandler:
|
|
2215
|
+
setLocaleMessage: Ne,
|
|
2216
|
+
mergeLocaleMessage: Xe,
|
|
2217
|
+
getPostTranslationHandler: V,
|
|
2218
2218
|
setPostTranslationHandler: j,
|
|
2219
2219
|
getMissingHandler: G,
|
|
2220
2220
|
setMissingHandler: W,
|
|
2221
|
-
[yo]:
|
|
2221
|
+
[yo]: he
|
|
2222
2222
|
};
|
|
2223
|
-
return P.datetimeFormats =
|
|
2223
|
+
return P.datetimeFormats = N, P.numberFormats = U, P.rt = ne, P.te = Je, P.tm = Ve, P.d = Q, P.n = _e, P.getDateTimeFormat = O, P.setDateTimeFormat = s, P.mergeDateTimeFormat = o, P.getNumberFormat = _, P.setNumberFormat = k, P.mergeNumberFormat = M, P[rr] = n, P[xt] = q, P[Wt] = K, P[Gt] = we, P;
|
|
2224
2224
|
}
|
|
2225
2225
|
const qt = {
|
|
2226
2226
|
tag: {
|
|
@@ -2264,21 +2264,21 @@ Ie({
|
|
|
2264
2264
|
}
|
|
2265
2265
|
}, qt);
|
|
2266
2266
|
function Ao(e) {
|
|
2267
|
-
return be(e) && !
|
|
2267
|
+
return be(e) && !Z(e[0]);
|
|
2268
2268
|
}
|
|
2269
2269
|
function lr(e, t, n, r) {
|
|
2270
2270
|
const { slots: l, attrs: a } = t;
|
|
2271
2271
|
return () => {
|
|
2272
|
-
const
|
|
2272
|
+
const m = { part: !0 };
|
|
2273
2273
|
let u = oe();
|
|
2274
|
-
e.locale && (
|
|
2275
|
-
const i = r(e.value,
|
|
2276
|
-
let g = [
|
|
2277
|
-
be(i) ? g = i.map((
|
|
2278
|
-
const D = l[
|
|
2279
|
-
return Ao(L) && (L[0].key = `${
|
|
2280
|
-
}) :
|
|
2281
|
-
const E = Ie(oe(), a), T =
|
|
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((C, F) => n.includes(F) ? Ie(oe(), C, { [F]: e.format[F] }) : C, oe()));
|
|
2275
|
+
const i = r(e.value, m, u);
|
|
2276
|
+
let g = [m.key];
|
|
2277
|
+
be(i) ? g = i.map((C, F) => {
|
|
2278
|
+
const D = l[C.type], L = D ? D({ [C.type]: C.value, index: F, parts: i }) : [C.value];
|
|
2279
|
+
return Ao(L) && (L[0].key = `${C.type}-${F}`), L;
|
|
2280
|
+
}) : Z(i) && (g = [i]);
|
|
2281
|
+
const E = Ie(oe(), a), T = Z(e.tag) || te(e.tag) ? e.tag : ar();
|
|
2282
2282
|
return Wn(T, E, g);
|
|
2283
2283
|
};
|
|
2284
2284
|
}
|
|
@@ -2309,16 +2309,16 @@ function St(e = {}) {
|
|
|
2309
2309
|
throw ut(at.NOT_INSTALLED);
|
|
2310
2310
|
const n = ko(t), r = Mo(n), l = or(t), a = Ro(e, l);
|
|
2311
2311
|
if (a === "global")
|
|
2312
|
-
return
|
|
2312
|
+
return Co(r, e, l), r;
|
|
2313
2313
|
if (a === "parent") {
|
|
2314
2314
|
let i = Do(n, t, e.__useComponent);
|
|
2315
2315
|
return i == null && (i = r), i;
|
|
2316
2316
|
}
|
|
2317
|
-
const
|
|
2318
|
-
let u =
|
|
2317
|
+
const m = n;
|
|
2318
|
+
let u = m.__getInstance(t);
|
|
2319
2319
|
if (u == null) {
|
|
2320
2320
|
const i = Ie({}, e);
|
|
2321
|
-
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u = Oo(i),
|
|
2321
|
+
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u = Oo(i), m.__composerExtend && (u[Zt] = m.__composerExtend(u)), Fo(m, t, u), m.__setInstance(t, u);
|
|
2322
2322
|
}
|
|
2323
2323
|
return u;
|
|
2324
2324
|
}
|
|
@@ -2329,7 +2329,7 @@ function ko(e) {
|
|
|
2329
2329
|
return t;
|
|
2330
2330
|
}
|
|
2331
2331
|
function Ro(e, t) {
|
|
2332
|
-
return
|
|
2332
|
+
return Nt(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;
|
|
@@ -2339,11 +2339,11 @@ function Do(e, t, n = !1) {
|
|
|
2339
2339
|
const l = t.root;
|
|
2340
2340
|
let a = wo(t, n);
|
|
2341
2341
|
for (; a != null; ) {
|
|
2342
|
-
const
|
|
2342
|
+
const m = e;
|
|
2343
2343
|
if (e.mode === "composition")
|
|
2344
|
-
r =
|
|
2344
|
+
r = m.__getInstance(a);
|
|
2345
2345
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
2346
|
-
const u =
|
|
2346
|
+
const u = m.__getInstance(a);
|
|
2347
2347
|
u != null && (r = u.__composer, n && r && !r[rr] && (r = null));
|
|
2348
2348
|
}
|
|
2349
2349
|
if (r != null || l === a)
|
|
@@ -2356,12 +2356,12 @@ function wo(e, t = !1) {
|
|
|
2356
2356
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2357
2357
|
}
|
|
2358
2358
|
function Fo(e, t, n) {
|
|
2359
|
-
|
|
2360
|
-
}, t),
|
|
2359
|
+
xn(() => {
|
|
2360
|
+
}, t), dr(() => {
|
|
2361
2361
|
const r = n;
|
|
2362
2362
|
e.__deleteInstance(t);
|
|
2363
|
-
const l = r[
|
|
2364
|
-
l && (l(), delete r[
|
|
2363
|
+
const l = r[Zt];
|
|
2364
|
+
l && (l(), delete r[Zt]);
|
|
2365
2365
|
}, t);
|
|
2366
2366
|
}
|
|
2367
2367
|
Eo();
|
|
@@ -2384,18 +2384,18 @@ const vt = /* @__PURE__ */ Le({
|
|
|
2384
2384
|
const { t } = St();
|
|
2385
2385
|
return (n, r) => {
|
|
2386
2386
|
const l = De("FmIcon"), a = De("FmTooltip");
|
|
2387
|
-
return J(),
|
|
2387
|
+
return J(), Ce(a, {
|
|
2388
2388
|
variant: "plain",
|
|
2389
2389
|
placement: "right",
|
|
2390
2390
|
"z-index": 50
|
|
2391
2391
|
}, {
|
|
2392
|
-
content:
|
|
2392
|
+
content: me(() => [
|
|
2393
2393
|
ae("div", null, Oe(H(t)("team.memberForm.permissions.inherited")), 1),
|
|
2394
|
-
(J(!0), ie(Re, null, ye(e.item.setNames, (
|
|
2395
|
-
ae("div", null, "- " + Oe(
|
|
2394
|
+
(J(!0), ie(Re, null, ye(e.item.setNames, (m) => (J(), ie("div", { key: m }, [
|
|
2395
|
+
ae("div", null, "- " + Oe(m), 1)
|
|
2396
2396
|
]))), 128))
|
|
2397
2397
|
]),
|
|
2398
|
-
default:
|
|
2398
|
+
default: me(() => [
|
|
2399
2399
|
ue(l, {
|
|
2400
2400
|
name: "admin_panel_settings",
|
|
2401
2401
|
size: "sm",
|
|
@@ -2412,11 +2412,11 @@ function Mn(e, t, n) {
|
|
|
2412
2412
|
if (r.length === 0) return;
|
|
2413
2413
|
const l = e.findIndex((u) => u.subject === t && !u.inverted);
|
|
2414
2414
|
if (l < 0) return;
|
|
2415
|
-
const a = new Set(e[l].actions),
|
|
2416
|
-
|
|
2415
|
+
const a = new Set(e[l].actions), m = r.every((u) => a.has(u));
|
|
2416
|
+
m && !a.has("manage") ? (a.add("manage"), e[l] = {
|
|
2417
2417
|
...e[l],
|
|
2418
2418
|
actions: Array.from(a)
|
|
2419
|
-
}) : !
|
|
2419
|
+
}) : !m && a.has("manage") && (a.delete("manage"), a.size === 0 ? e.splice(l, 1) : e[l] = {
|
|
2420
2420
|
...e[l],
|
|
2421
2421
|
actions: Array.from(a)
|
|
2422
2422
|
});
|
|
@@ -2427,51 +2427,51 @@ const Dn = Object.values(Sr), Po = {
|
|
|
2427
2427
|
update: "Edit"
|
|
2428
2428
|
};
|
|
2429
2429
|
function jo(e, t, n, r) {
|
|
2430
|
-
const { t: l } = He(), { getFlagValue: a, getFlag:
|
|
2430
|
+
const { t: l } = He(), { getFlagValue: a, getFlag: m } = Or(), u = z(() => {
|
|
2431
2431
|
var j;
|
|
2432
|
-
const
|
|
2432
|
+
const d = /* @__PURE__ */ new Map(), N = /* @__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;
|
|
2436
|
-
const
|
|
2437
|
-
if (n.value.includes(G.subject) || G.showByFeatureFlag && ((j =
|
|
2436
|
+
const X = G.subject;
|
|
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
|
-
|
|
2440
|
-
const B = U.get(
|
|
2441
|
-
U.set(
|
|
2442
|
-
label: l(`permissionSet.permissionLabels.${
|
|
2443
|
-
value:
|
|
2444
|
-
optionKey: `${
|
|
2445
|
-
}),
|
|
2439
|
+
d.has(W) || d.set(W, []);
|
|
2440
|
+
const B = U.get(X) ?? 0;
|
|
2441
|
+
U.set(X, B + 1), d.get(W).push({
|
|
2442
|
+
label: l(`permissionSet.permissionLabels.${X}`, G.label),
|
|
2443
|
+
value: X,
|
|
2444
|
+
optionKey: `${X}::${B}`
|
|
2445
|
+
}), N.has(X) || N.set(X, G);
|
|
2446
2446
|
}
|
|
2447
|
-
return [...
|
|
2448
|
-
const
|
|
2449
|
-
return
|
|
2447
|
+
return [...d.keys()].sort((G, W) => {
|
|
2448
|
+
const X = Dn.indexOf(G), B = Dn.indexOf(W);
|
|
2449
|
+
return X === -1 && B === -1 ? G.localeCompare(W) : X === -1 ? 1 : B === -1 ? -1 : X - B;
|
|
2450
2450
|
}).map((G) => {
|
|
2451
|
-
const W =
|
|
2451
|
+
const W = d.get(G), X = l(`permissionSet.categoryLabels.${G}`, G), B = /* @__PURE__ */ new Map();
|
|
2452
2452
|
for (const K of W) {
|
|
2453
|
-
const
|
|
2454
|
-
|
|
2453
|
+
const he = N.get(K.value);
|
|
2454
|
+
he && B.set(K.value, he.actions);
|
|
2455
2455
|
}
|
|
2456
2456
|
const ne = W.some((K) => {
|
|
2457
|
-
const
|
|
2458
|
-
return
|
|
2457
|
+
const he = B.get(K.value);
|
|
2458
|
+
return he && he.length > 1;
|
|
2459
2459
|
}), Q = ne ? [
|
|
2460
2460
|
...new Set(
|
|
2461
2461
|
W.flatMap((K) => B.get(K.value) ?? []).filter((K) => K !== "manage")
|
|
2462
2462
|
)
|
|
2463
2463
|
] : [], _e = /* @__PURE__ */ new Map();
|
|
2464
2464
|
for (const K of e.value)
|
|
2465
|
-
W.some((
|
|
2465
|
+
W.some((he) => he.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((he) => he.value === K.subject) && !K.inverted && K.actions.includes("manage")
|
|
2468
|
+
).map((K) => K.subject) : e.value.filter((K) => W.some((he) => he.value === K.subject) && !K.inverted).map((K) => K.subject), se = W.find((K) => {
|
|
2469
|
+
var he;
|
|
2470
|
+
return (he = N.get(K.value)) == null ? void 0 : he.isCategoryCover;
|
|
2471
2471
|
}), fe = (se == null ? void 0 : se.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), we = q.has("manage");
|
|
2472
2472
|
return {
|
|
2473
2473
|
category: G,
|
|
2474
|
-
label:
|
|
2474
|
+
label: X,
|
|
2475
2475
|
options: W,
|
|
2476
2476
|
selectedSubjects: ce,
|
|
2477
2477
|
isMultiAction: ne,
|
|
@@ -2484,17 +2484,17 @@ function jo(e, t, n, r) {
|
|
|
2484
2484
|
};
|
|
2485
2485
|
});
|
|
2486
2486
|
});
|
|
2487
|
-
function i(
|
|
2488
|
-
const U = u.value.find((Q) => Q.category ===
|
|
2487
|
+
function i(d, N) {
|
|
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(N), W = /* @__PURE__ */ new Map();
|
|
2489
2489
|
for (const Q of e.value)
|
|
2490
2490
|
j.has(Q.subject) && !Q.inverted && W.set(Q.subject, Q.conditions);
|
|
2491
|
-
const
|
|
2491
|
+
const X = U != null && U.coverSubject ? W.get(U.coverSubject) : void 0, B = /* @__PURE__ */ new Set(), ne = t.value.flatMap(
|
|
2492
2492
|
({ category: Q, showByFeatureFlag: _e, isCategoryCover: ce, ...se }) => {
|
|
2493
2493
|
const fe = se.subject;
|
|
2494
2494
|
if (!G.has(fe) || B.has(fe)) return [];
|
|
2495
2495
|
B.add(fe);
|
|
2496
2496
|
let q;
|
|
2497
|
-
return W.has(fe) ? q = W.get(fe) : U != null && U.coverSubject && fe !== U.coverSubject && (q =
|
|
2497
|
+
return W.has(fe) ? q = W.get(fe) : U != null && U.coverSubject && fe !== U.coverSubject && (q = X), [
|
|
2498
2498
|
{ ...se, ...q !== void 0 && { conditions: q } }
|
|
2499
2499
|
];
|
|
2500
2500
|
}
|
|
@@ -2504,32 +2504,32 @@ function jo(e, t, n, r) {
|
|
|
2504
2504
|
...ne
|
|
2505
2505
|
]);
|
|
2506
2506
|
}
|
|
2507
|
-
function g(
|
|
2508
|
-
return F(
|
|
2507
|
+
function g(d, N) {
|
|
2508
|
+
return F(d, N) || c(d, N);
|
|
2509
2509
|
}
|
|
2510
|
-
function E(
|
|
2511
|
-
return
|
|
2510
|
+
function E(d) {
|
|
2511
|
+
return d.options.length > 0 && d.options.every((N) => g(d, N.value));
|
|
2512
2512
|
}
|
|
2513
|
-
function T(
|
|
2514
|
-
return
|
|
2515
|
-
(
|
|
2513
|
+
function T(d) {
|
|
2514
|
+
return d.options.length === 0 || E(d) ? !1 : d.options.some(
|
|
2515
|
+
(N) => g(d, N.value) || D(d, N.value).length > 0
|
|
2516
2516
|
);
|
|
2517
2517
|
}
|
|
2518
|
-
function
|
|
2519
|
-
const
|
|
2520
|
-
if (E(
|
|
2518
|
+
function C(d) {
|
|
2519
|
+
const N = new Set(d.options.map((V) => V.value)), U = e.value.filter((V) => !N.has(V.subject));
|
|
2520
|
+
if (E(d))
|
|
2521
2521
|
r("update:model-value", U);
|
|
2522
2522
|
else {
|
|
2523
|
-
const
|
|
2524
|
-
for (const
|
|
2525
|
-
|
|
2526
|
-
const j =
|
|
2527
|
-
({ category:
|
|
2523
|
+
const V = /* @__PURE__ */ new Map();
|
|
2524
|
+
for (const X of e.value)
|
|
2525
|
+
N.has(X.subject) && !X.inverted && V.set(X.subject, X.conditions);
|
|
2526
|
+
const j = d.coverSubject ? V.get(d.coverSubject) : void 0, G = /* @__PURE__ */ new Set(), W = t.value.flatMap(
|
|
2527
|
+
({ category: X, showByFeatureFlag: B, isCategoryCover: ne, ...Q }) => {
|
|
2528
2528
|
const _e = Q.subject;
|
|
2529
|
-
if (!
|
|
2529
|
+
if (!N.has(_e) || G.has(_e)) return [];
|
|
2530
2530
|
G.add(_e);
|
|
2531
2531
|
let ce;
|
|
2532
|
-
return
|
|
2532
|
+
return V.has(_e) ? ce = V.get(_e) : d.coverSubject && _e !== d.coverSubject && (ce = j), [
|
|
2533
2533
|
{ ...Q, ...ce !== void 0 && { conditions: ce } }
|
|
2534
2534
|
];
|
|
2535
2535
|
}
|
|
@@ -2537,123 +2537,123 @@ function jo(e, t, n, r) {
|
|
|
2537
2537
|
r("update:model-value", [...U, ...W]);
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
|
-
function F(
|
|
2541
|
-
const U =
|
|
2540
|
+
function F(d, N) {
|
|
2541
|
+
const U = d.selectedActionsMap.get(N);
|
|
2542
2542
|
return U ? U.has("manage") : !1;
|
|
2543
2543
|
}
|
|
2544
|
-
function D(
|
|
2545
|
-
const U =
|
|
2544
|
+
function D(d, N) {
|
|
2545
|
+
const U = d.permissionActionsMap.get(N);
|
|
2546
2546
|
return U ? U.filter((j) => j !== "manage").filter(
|
|
2547
|
-
(j) => S(
|
|
2547
|
+
(j) => S(d, N, j) || b(d, N, j)
|
|
2548
2548
|
) : [];
|
|
2549
2549
|
}
|
|
2550
|
-
function L(
|
|
2551
|
-
return c(
|
|
2550
|
+
function L(d, N) {
|
|
2551
|
+
return c(d, N) ? !1 : !F(d, N) && D(d, N).length > 0;
|
|
2552
2552
|
}
|
|
2553
|
-
function w(
|
|
2554
|
-
if (!
|
|
2553
|
+
function w(d, N) {
|
|
2554
|
+
if (!d.coverSubject || N === 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(
|
|
2560
|
+
function f(d, N, U) {
|
|
2561
2561
|
if (U) {
|
|
2562
|
-
const
|
|
2563
|
-
if (!
|
|
2562
|
+
const V = t.value.find((Q) => Q.subject === N);
|
|
2563
|
+
if (!V) return;
|
|
2564
2564
|
const {
|
|
2565
2565
|
category: j,
|
|
2566
2566
|
showByFeatureFlag: G,
|
|
2567
2567
|
isCategoryCover: W,
|
|
2568
|
-
...
|
|
2569
|
-
} =
|
|
2568
|
+
...X
|
|
2569
|
+
} = V, B = w(d, N), ne = e.value.filter((Q) => Q.subject !== N);
|
|
2570
2570
|
ne.push({
|
|
2571
|
-
...
|
|
2571
|
+
...X,
|
|
2572
2572
|
...B !== void 0 && { conditions: B }
|
|
2573
2573
|
}), r("update:model-value", ne);
|
|
2574
2574
|
} else
|
|
2575
2575
|
r(
|
|
2576
2576
|
"update:model-value",
|
|
2577
|
-
e.value.filter((
|
|
2577
|
+
e.value.filter((V) => V.subject !== N)
|
|
2578
2578
|
);
|
|
2579
2579
|
}
|
|
2580
|
-
function
|
|
2581
|
-
const U =
|
|
2582
|
-
return U ? U.some((
|
|
2580
|
+
function p(d, N) {
|
|
2581
|
+
const U = d.permissionActionsMap.get(N);
|
|
2582
|
+
return U ? U.some((V) => V !== "manage") : !1;
|
|
2583
2583
|
}
|
|
2584
|
-
function S(
|
|
2585
|
-
const
|
|
2586
|
-
return
|
|
2584
|
+
function S(d, N, U) {
|
|
2585
|
+
const V = d.selectedActionsMap.get(N);
|
|
2586
|
+
return V ? V.has(U) : !1;
|
|
2587
2587
|
}
|
|
2588
|
-
function c(
|
|
2589
|
-
return !
|
|
2588
|
+
function c(d, N) {
|
|
2589
|
+
return !d.coverSubject || N === d.coverSubject ? !1 : d.coverCoversAll;
|
|
2590
2590
|
}
|
|
2591
|
-
function b(
|
|
2592
|
-
return !
|
|
2591
|
+
function b(d, N, U) {
|
|
2592
|
+
return !d.coverSubject || N === d.coverSubject ? !1 : d.coverCoversAll ? !0 : d.coverSelectedActions.has(U);
|
|
2593
2593
|
}
|
|
2594
|
-
function I(
|
|
2595
|
-
const
|
|
2596
|
-
return
|
|
2594
|
+
function I(d, N, U) {
|
|
2595
|
+
const V = d.permissionActionsMap.get(N);
|
|
2596
|
+
return V ? V.includes(U) : !1;
|
|
2597
2597
|
}
|
|
2598
|
-
function
|
|
2599
|
-
const
|
|
2598
|
+
function h(d, N, U) {
|
|
2599
|
+
const V = [...e.value], j = V.findIndex((W) => W.subject === d && !W.inverted);
|
|
2600
2600
|
if (U)
|
|
2601
2601
|
if (j >= 0) {
|
|
2602
|
-
const W = { ...
|
|
2603
|
-
|
|
2602
|
+
const W = { ...V[j] }, X = new Set(W.actions);
|
|
2603
|
+
X.add(N), W.actions = Array.from(X), V[j] = W;
|
|
2604
2604
|
} else {
|
|
2605
|
-
const W = t.value.find((se) => se.subject ===
|
|
2605
|
+
const W = t.value.find((se) => se.subject === d);
|
|
2606
2606
|
if (!W) return;
|
|
2607
2607
|
const {
|
|
2608
|
-
category:
|
|
2608
|
+
category: X,
|
|
2609
2609
|
showByFeatureFlag: B,
|
|
2610
2610
|
isCategoryCover: ne,
|
|
2611
2611
|
...Q
|
|
2612
2612
|
} = W, _e = u.value.find(
|
|
2613
|
-
(se) => se.options.some((fe) => fe.value ===
|
|
2614
|
-
), ce = _e ? w(_e,
|
|
2615
|
-
|
|
2613
|
+
(se) => se.options.some((fe) => fe.value === d)
|
|
2614
|
+
), ce = _e ? w(_e, d) : void 0;
|
|
2615
|
+
V.push({
|
|
2616
2616
|
...Q,
|
|
2617
|
-
actions: [
|
|
2617
|
+
actions: [N],
|
|
2618
2618
|
...ce !== void 0 && { conditions: ce }
|
|
2619
2619
|
});
|
|
2620
2620
|
}
|
|
2621
2621
|
else if (j >= 0) {
|
|
2622
|
-
const W = { ...
|
|
2623
|
-
|
|
2622
|
+
const W = { ...V[j] }, X = W.actions.filter((B) => B !== N);
|
|
2623
|
+
X.length === 0 ? V.splice(j, 1) : (W.actions = X, V[j] = W);
|
|
2624
2624
|
}
|
|
2625
|
-
const G = t.value.find((W) => W.subject ===
|
|
2626
|
-
G && Mn(
|
|
2625
|
+
const G = t.value.find((W) => W.subject === d);
|
|
2626
|
+
G && Mn(V, d, G.actions), r("update:model-value", V);
|
|
2627
2627
|
}
|
|
2628
|
-
function R(
|
|
2629
|
-
const U =
|
|
2630
|
-
(
|
|
2628
|
+
function R(d, N) {
|
|
2629
|
+
const U = d.options.filter(
|
|
2630
|
+
(V) => I(d, V.value, N)
|
|
2631
2631
|
);
|
|
2632
2632
|
return U.length === 0 ? !1 : U.every(
|
|
2633
|
-
(
|
|
2633
|
+
(V) => S(d, V.value, N) || b(d, V.value, N)
|
|
2634
2634
|
);
|
|
2635
2635
|
}
|
|
2636
|
-
function A(
|
|
2637
|
-
const U =
|
|
2638
|
-
(j) => I(
|
|
2636
|
+
function A(d, N) {
|
|
2637
|
+
const U = d.options.filter(
|
|
2638
|
+
(j) => I(d, j.value, N)
|
|
2639
2639
|
);
|
|
2640
2640
|
if (U.length === 0) return !1;
|
|
2641
|
-
const
|
|
2642
|
-
(j) => S(
|
|
2641
|
+
const V = U.filter(
|
|
2642
|
+
(j) => S(d, j.value, N) || b(d, j.value, N)
|
|
2643
2643
|
).length;
|
|
2644
|
-
return
|
|
2644
|
+
return V > 0 && V < U.length;
|
|
2645
2645
|
}
|
|
2646
|
-
function Y(
|
|
2647
|
-
const
|
|
2648
|
-
for (const j of
|
|
2649
|
-
if (!I(
|
|
2650
|
-
const G = j.value, W =
|
|
2646
|
+
function Y(d, N, U) {
|
|
2647
|
+
const V = [...e.value];
|
|
2648
|
+
for (const j of d.options) {
|
|
2649
|
+
if (!I(d, j.value, N)) continue;
|
|
2650
|
+
const G = j.value, W = V.findIndex(
|
|
2651
2651
|
(B) => B.subject === G && !B.inverted
|
|
2652
2652
|
);
|
|
2653
2653
|
if (U)
|
|
2654
2654
|
if (W >= 0) {
|
|
2655
|
-
const B = { ...
|
|
2656
|
-
ne.add(
|
|
2655
|
+
const B = { ...V[W] }, ne = new Set(B.actions);
|
|
2656
|
+
ne.add(N), B.actions = Array.from(ne), V[W] = B;
|
|
2657
2657
|
} else {
|
|
2658
2658
|
const B = t.value.find((fe) => fe.subject === G);
|
|
2659
2659
|
if (!B) continue;
|
|
@@ -2662,48 +2662,48 @@ function jo(e, t, n, r) {
|
|
|
2662
2662
|
showByFeatureFlag: Q,
|
|
2663
2663
|
isCategoryCover: _e,
|
|
2664
2664
|
...ce
|
|
2665
|
-
} = B, se = w(
|
|
2666
|
-
|
|
2665
|
+
} = B, se = w(d, G);
|
|
2666
|
+
V.push({
|
|
2667
2667
|
...ce,
|
|
2668
|
-
actions: [
|
|
2668
|
+
actions: [N],
|
|
2669
2669
|
...se !== void 0 && { conditions: se }
|
|
2670
2670
|
});
|
|
2671
2671
|
}
|
|
2672
2672
|
else if (W >= 0) {
|
|
2673
|
-
const B = { ...
|
|
2674
|
-
ne.length === 0 ?
|
|
2673
|
+
const B = { ...V[W] }, ne = B.actions.filter((Q) => Q !== N);
|
|
2674
|
+
ne.length === 0 ? V.splice(W, 1) : (B.actions = ne, V[W] = B);
|
|
2675
2675
|
}
|
|
2676
|
-
const
|
|
2677
|
-
|
|
2676
|
+
const X = t.value.find((B) => B.subject === G);
|
|
2677
|
+
X && Mn(V, G, X.actions);
|
|
2678
2678
|
}
|
|
2679
|
-
r("update:model-value",
|
|
2679
|
+
r("update:model-value", V);
|
|
2680
2680
|
}
|
|
2681
|
-
function
|
|
2682
|
-
const
|
|
2683
|
-
return l(
|
|
2681
|
+
function x(d) {
|
|
2682
|
+
const N = `permissionSet.actionLabels.${d}`, U = Po[d] ?? d.charAt(0).toUpperCase() + d.slice(1);
|
|
2683
|
+
return l(N, U);
|
|
2684
2684
|
}
|
|
2685
2685
|
return {
|
|
2686
2686
|
categoryGroups: u,
|
|
2687
2687
|
toggleCategory: i,
|
|
2688
2688
|
isAllManageChecked: E,
|
|
2689
2689
|
isAllManageIndeterminate: T,
|
|
2690
|
-
toggleAllManage:
|
|
2690
|
+
toggleAllManage: C,
|
|
2691
2691
|
isManageChecked: F,
|
|
2692
2692
|
isManageIndeterminate: L,
|
|
2693
2693
|
toggleManage: f,
|
|
2694
|
-
hasNonManageActions:
|
|
2694
|
+
hasNonManageActions: p,
|
|
2695
2695
|
isActionChecked: S,
|
|
2696
2696
|
isRowFullyCoveredByCover: c,
|
|
2697
2697
|
isActionCoveredByCover: b,
|
|
2698
2698
|
permissionDefinesAction: I,
|
|
2699
|
-
toggleAction:
|
|
2699
|
+
toggleAction: h,
|
|
2700
2700
|
isAllActionChecked: R,
|
|
2701
2701
|
isAllActionIndeterminate: A,
|
|
2702
2702
|
toggleAllAction: Y,
|
|
2703
|
-
actionLabel:
|
|
2703
|
+
actionLabel: x
|
|
2704
2704
|
};
|
|
2705
2705
|
}
|
|
2706
|
-
const Uo = { class: "flex flex-col gap-16" },
|
|
2706
|
+
const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm-600" }, xo = { class: "mt-16" }, Wo = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Go = ["onClick"], Zo = { class: "flex justify-center" }, Xo = { class: "flex items-center min-w-0 gap-8" }, Bo = ["title", "onClick"], Yo = { class: "flex justify-center" }, Ho = /* @__PURE__ */ Le({
|
|
2707
2707
|
__name: "BasePermission",
|
|
2708
2708
|
props: {
|
|
2709
2709
|
modelValue: {
|
|
@@ -2726,19 +2726,19 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
2726
2726
|
emits: ["update:model-value"],
|
|
2727
2727
|
setup(e, { emit: t }) {
|
|
2728
2728
|
const n = e, r = t, { t: l } = He(), a = z(() => [...Gn, ...n.additionalPermissions]), {
|
|
2729
|
-
categoryGroups:
|
|
2729
|
+
categoryGroups: m,
|
|
2730
2730
|
isAllManageChecked: u,
|
|
2731
2731
|
isAllManageIndeterminate: i,
|
|
2732
2732
|
toggleAllManage: g,
|
|
2733
2733
|
isManageChecked: E,
|
|
2734
2734
|
isManageIndeterminate: T,
|
|
2735
|
-
toggleManage:
|
|
2735
|
+
toggleManage: C,
|
|
2736
2736
|
isActionChecked: F,
|
|
2737
2737
|
isRowFullyCoveredByCover: D,
|
|
2738
2738
|
isActionCoveredByCover: L,
|
|
2739
2739
|
permissionDefinesAction: w,
|
|
2740
2740
|
toggleAction: f,
|
|
2741
|
-
isAllActionChecked:
|
|
2741
|
+
isAllActionChecked: p,
|
|
2742
2742
|
isAllActionIndeterminate: S,
|
|
2743
2743
|
toggleAllAction: c,
|
|
2744
2744
|
actionLabel: b
|
|
@@ -2752,7 +2752,7 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
2752
2752
|
const A = R.selectedSubjects.length;
|
|
2753
2753
|
return A === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: A });
|
|
2754
2754
|
}
|
|
2755
|
-
function
|
|
2755
|
+
function h(R, A) {
|
|
2756
2756
|
return E(R, A) || D(R, A) ? !0 : R.actionColumns.some(
|
|
2757
2757
|
(Y) => w(R, A, Y) && (F(R, A, Y) || L(R, A, Y))
|
|
2758
2758
|
);
|
|
@@ -2760,110 +2760,110 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
2760
2760
|
return (R, A) => {
|
|
2761
2761
|
const Y = De("FmCheckbox");
|
|
2762
2762
|
return J(), ie("div", Uo, [
|
|
2763
|
-
(J(!0), ie(Re, null, ye(H(
|
|
2764
|
-
key:
|
|
2765
|
-
subtitle: I(
|
|
2763
|
+
(J(!0), ie(Re, null, ye(H(m), (x) => (J(), Ce(Yt, {
|
|
2764
|
+
key: x.category,
|
|
2765
|
+
subtitle: I(x)
|
|
2766
2766
|
}, {
|
|
2767
|
-
title:
|
|
2768
|
-
ae("p",
|
|
2767
|
+
title: me(() => [
|
|
2768
|
+
ae("p", Vo, Oe(x.label), 1)
|
|
2769
2769
|
]),
|
|
2770
|
-
default:
|
|
2771
|
-
ae("div",
|
|
2770
|
+
default: me(() => [
|
|
2771
|
+
ae("div", xo, [
|
|
2772
2772
|
ae("div", {
|
|
2773
2773
|
class: "grid items-center px-12 py-8",
|
|
2774
2774
|
style: nt({
|
|
2775
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2775
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2776
2776
|
})
|
|
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
|
-
(J(!0), ie(Re, null, ye(
|
|
2781
|
-
key: `header-${
|
|
2780
|
+
(J(!0), ie(Re, null, ye(x.actionColumns, (d) => (J(), ie("div", {
|
|
2781
|
+
key: `header-${d}`,
|
|
2782
2782
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2783
|
-
}, Oe(H(b)(
|
|
2783
|
+
}, Oe(H(b)(d)), 1))), 128))
|
|
2784
2784
|
], 4),
|
|
2785
2785
|
ae("div", {
|
|
2786
2786
|
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
2787
2787
|
style: nt({
|
|
2788
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2788
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2789
2789
|
})
|
|
2790
2790
|
}, [
|
|
2791
2791
|
ae("div", {
|
|
2792
2792
|
class: "cursor-pointer font-semibold",
|
|
2793
|
-
onClick: (
|
|
2793
|
+
onClick: (d) => !e.disable && H(g)(x)
|
|
2794
2794
|
}, Oe(H(l)("team.labels.all")), 9, Go),
|
|
2795
|
-
ae("div",
|
|
2795
|
+
ae("div", Zo, [
|
|
2796
2796
|
ue(Y, {
|
|
2797
|
-
"model-value": H(u)(
|
|
2798
|
-
indeterminate: H(i)(
|
|
2797
|
+
"model-value": H(u)(x),
|
|
2798
|
+
indeterminate: H(i)(x),
|
|
2799
2799
|
value: !0,
|
|
2800
2800
|
disabled: e.disable,
|
|
2801
2801
|
size: "sm",
|
|
2802
2802
|
dense: "",
|
|
2803
|
-
"onUpdate:modelValue": (
|
|
2803
|
+
"onUpdate:modelValue": (d) => H(g)(x)
|
|
2804
2804
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2805
2805
|
]),
|
|
2806
|
-
(J(!0), ie(Re, null, ye(
|
|
2807
|
-
key: `all-${
|
|
2806
|
+
(J(!0), ie(Re, null, ye(x.actionColumns, (d) => (J(), ie("div", {
|
|
2807
|
+
key: `all-${d}`,
|
|
2808
2808
|
class: "flex justify-center"
|
|
2809
2809
|
}, [
|
|
2810
2810
|
ue(Y, {
|
|
2811
|
-
"model-value": H(
|
|
2812
|
-
indeterminate: H(S)(
|
|
2813
|
-
value:
|
|
2811
|
+
"model-value": H(p)(x, d),
|
|
2812
|
+
indeterminate: H(S)(x, d),
|
|
2813
|
+
value: d,
|
|
2814
2814
|
disabled: e.disable,
|
|
2815
2815
|
size: "sm",
|
|
2816
2816
|
dense: "",
|
|
2817
|
-
"onUpdate:modelValue": (
|
|
2817
|
+
"onUpdate:modelValue": (N) => H(c)(x, d, N)
|
|
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
|
-
(J(!0), ie(Re, null, ye(
|
|
2823
|
-
key:
|
|
2822
|
+
(J(!0), ie(Re, null, ye(x.options, (d) => (J(), ie("div", {
|
|
2823
|
+
key: d.optionKey,
|
|
2824
2824
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2825
2825
|
style: nt({
|
|
2826
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2826
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2827
2827
|
})
|
|
2828
2828
|
}, [
|
|
2829
|
-
ae("div",
|
|
2829
|
+
ae("div", Xo, [
|
|
2830
2830
|
ae("span", {
|
|
2831
2831
|
class: "block truncate cursor-pointer",
|
|
2832
|
-
title:
|
|
2833
|
-
onClick: (
|
|
2834
|
-
}, Oe(
|
|
2835
|
-
Se(R.$slots, `checkbox-${
|
|
2836
|
-
option:
|
|
2837
|
-
isEffectiveSelected:
|
|
2838
|
-
isCoveredByCover: H(D)(
|
|
2832
|
+
title: d.label,
|
|
2833
|
+
onClick: (N) => !e.disable && !H(D)(x, d.value) && H(C)(x, d.value, !H(E)(x, d.value))
|
|
2834
|
+
}, Oe(d.label), 9, Bo),
|
|
2835
|
+
Se(R.$slots, `checkbox-${d.value}-append`, {
|
|
2836
|
+
option: d,
|
|
2837
|
+
isEffectiveSelected: h(x, d.value),
|
|
2838
|
+
isCoveredByCover: H(D)(x, d.value) || x.actionColumns.some((N) => H(L)(x, d.value, N))
|
|
2839
2839
|
}),
|
|
2840
|
-
Se(R.$slots, `checkbox-${
|
|
2841
|
-
option:
|
|
2842
|
-
isEffectiveSelected:
|
|
2843
|
-
isCoveredByCover: H(D)(
|
|
2840
|
+
Se(R.$slots, `checkbox-${d.value}-icon`, {
|
|
2841
|
+
option: d,
|
|
2842
|
+
isEffectiveSelected: h(x, d.value),
|
|
2843
|
+
isCoveredByCover: H(D)(x, d.value) || x.actionColumns.some((N) => H(L)(x, d.value, N))
|
|
2844
2844
|
})
|
|
2845
2845
|
]),
|
|
2846
2846
|
ae("div", Yo, [
|
|
2847
2847
|
ue(Y, {
|
|
2848
|
-
"model-value": H(E)(
|
|
2849
|
-
value:
|
|
2850
|
-
disabled: e.disable || H(D)(
|
|
2851
|
-
indeterminate: H(T)(
|
|
2848
|
+
"model-value": H(E)(x, d.value) || H(D)(x, d.value),
|
|
2849
|
+
value: d.value,
|
|
2850
|
+
disabled: e.disable || H(D)(x, d.value),
|
|
2851
|
+
indeterminate: H(T)(x, d.value),
|
|
2852
2852
|
size: "sm",
|
|
2853
|
-
"onUpdate:modelValue": (
|
|
2853
|
+
"onUpdate:modelValue": (N) => H(C)(x, d.value, N)
|
|
2854
2854
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2855
2855
|
]),
|
|
2856
|
-
(J(!0), ie(Re, null, ye(
|
|
2857
|
-
key: `${
|
|
2856
|
+
(J(!0), ie(Re, null, ye(x.actionColumns, (N) => (J(), ie("div", {
|
|
2857
|
+
key: `${d.optionKey}-${N}`,
|
|
2858
2858
|
class: "flex justify-center"
|
|
2859
2859
|
}, [
|
|
2860
|
-
H(w)(
|
|
2860
|
+
H(w)(x, d.value, N) ? (J(), Ce(Y, {
|
|
2861
2861
|
key: 0,
|
|
2862
|
-
"model-value": H(F)(
|
|
2863
|
-
value:
|
|
2864
|
-
disabled: e.disable || H(L)(
|
|
2862
|
+
"model-value": H(F)(x, d.value, N) || H(L)(x, d.value, N),
|
|
2863
|
+
value: N,
|
|
2864
|
+
disabled: e.disable || H(L)(x, d.value, N),
|
|
2865
2865
|
size: "sm",
|
|
2866
|
-
"onUpdate:modelValue": (U) => H(f)(
|
|
2866
|
+
"onUpdate:modelValue": (U) => H(f)(d.value, N, U)
|
|
2867
2867
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Me("", !0)
|
|
2868
2868
|
]))), 128))
|
|
2869
2869
|
], 4))), 128))
|
|
@@ -2974,14 +2974,14 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
2974
2974
|
},
|
|
2975
2975
|
emits: ["update:model-value"],
|
|
2976
2976
|
setup(e, { emit: t }) {
|
|
2977
|
-
const n = e, r = t, { t: l } = He(), a = rt(!1),
|
|
2977
|
+
const n = e, r = t, { t: l } = He(), a = rt(!1), m = hr(), 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), E = z(
|
|
2978
2978
|
() => n.modelValue.filter((L) => n.options.some((w) => w.value === L))
|
|
2979
2979
|
), T = z(
|
|
2980
2980
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2981
|
-
),
|
|
2981
|
+
), C = z(() => n.options.length > 0 && n.options.length === E.value.length);
|
|
2982
2982
|
function F() {
|
|
2983
2983
|
const L = n.modelValue.filter((w) => !E.value.includes(w));
|
|
2984
|
-
if (
|
|
2984
|
+
if (C.value === !0)
|
|
2985
2985
|
r("update:model-value", L);
|
|
2986
2986
|
else {
|
|
2987
2987
|
const w = n.includeDisabledOptionsWhenSelectAll ? n.options.map((f) => f.value) : n.options.filter((f) => !f.disabled).map((f) => f.value);
|
|
@@ -2990,22 +2990,22 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
2990
2990
|
}
|
|
2991
2991
|
function D(L, w) {
|
|
2992
2992
|
let f = It(n.modelValue);
|
|
2993
|
-
w ? f.every((
|
|
2993
|
+
w ? f.every((p) => p !== L) && f.push(L) : f = f.filter((p) => p !== L), r("update:model-value", f);
|
|
2994
2994
|
}
|
|
2995
2995
|
return (L, w) => {
|
|
2996
2996
|
const f = De("FmCheckbox");
|
|
2997
|
-
return J(),
|
|
2997
|
+
return J(), Ce(Qo, {
|
|
2998
2998
|
id: i,
|
|
2999
2999
|
title: e.title,
|
|
3000
3000
|
required: !1
|
|
3001
3001
|
}, {
|
|
3002
|
-
top:
|
|
3002
|
+
top: me(() => [
|
|
3003
3003
|
Se(L.$slots, "top")
|
|
3004
3004
|
]),
|
|
3005
|
-
default:
|
|
3006
|
-
n.showAllToggle ? (J(),
|
|
3005
|
+
default: me(() => [
|
|
3006
|
+
n.showAllToggle ? (J(), Ce(f, {
|
|
3007
3007
|
key: 0,
|
|
3008
|
-
"model-value":
|
|
3008
|
+
"model-value": C.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" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3014
3014
|
value: T.value,
|
|
3015
3015
|
"onUpdate:modelValue": F
|
|
3016
3016
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Me("", !0),
|
|
3017
|
-
(J(!0), ie(Re, null, ye(e.options, (
|
|
3018
|
-
key:
|
|
3017
|
+
(J(!0), ie(Re, null, ye(e.options, (p, S) => (J(), ie("div", {
|
|
3018
|
+
key: p.value,
|
|
3019
3019
|
style: nt(`margin-bottom: ${S < e.options.length - 1 ? n.gutter : 0}px`),
|
|
3020
3020
|
class: qe(S < e.options.length - 1 ? "q-mb-sm" : "")
|
|
3021
3021
|
}, [
|
|
@@ -3024,38 +3024,38 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3024
3024
|
}, [
|
|
3025
3025
|
ae("div", qo, [
|
|
3026
3026
|
ue(f, {
|
|
3027
|
-
"model-value": e.modelValue.includes(
|
|
3028
|
-
disabled: e.disable ||
|
|
3027
|
+
"model-value": e.modelValue.includes(p.value),
|
|
3028
|
+
disabled: e.disable || p.disabled,
|
|
3029
3029
|
size: "sm",
|
|
3030
|
-
label:
|
|
3031
|
-
value:
|
|
3032
|
-
"onUpdate:modelValue": (c) => D(
|
|
3030
|
+
label: p.label,
|
|
3031
|
+
value: p.label,
|
|
3032
|
+
"onUpdate:modelValue": (c) => D(p.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-${p.key || p.value}-append`, {
|
|
3035
|
+
option: p,
|
|
3036
|
+
selected: e.modelValue.includes(p.value)
|
|
3037
3037
|
})
|
|
3038
3038
|
]),
|
|
3039
|
-
H(
|
|
3039
|
+
H(m)[`checkbox-${p.key || p.value}-end`] && (e.modelValue.includes(p.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 || p.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-${p.key || p.value}-end`, {
|
|
3044
|
+
option: p,
|
|
3045
|
+
value: e.modelValue.includes(p.value),
|
|
3046
|
+
disable: e.disable || p.disabled
|
|
3047
3047
|
})
|
|
3048
3048
|
], 2)) : Me("", !0)
|
|
3049
3049
|
], 2),
|
|
3050
|
-
H(
|
|
3050
|
+
H(m)[`checkbox-${p.key || p.value}-bottom`] && (e.modelValue.includes(p.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 || p.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-${p.key || p.value}-bottom`, {
|
|
3056
|
+
option: p,
|
|
3057
|
+
disable: e.disable || p.disabled,
|
|
3058
|
+
value: e.modelValue.includes(p.value)
|
|
3059
3059
|
})
|
|
3060
3060
|
], 6)) : Me("", !0)
|
|
3061
3061
|
], 6))), 128)),
|
|
@@ -3065,7 +3065,7 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3065
3065
|
}, 8, ["title"]);
|
|
3066
3066
|
};
|
|
3067
3067
|
}
|
|
3068
|
-
}), ta = { class: "fm-typo-en-title-sm-600" },
|
|
3068
|
+
}), ta = { class: "fm-typo-en-title-sm-600" }, pt = "includedFuture", wn = /* @__PURE__ */ Le({
|
|
3069
3069
|
__name: "ConditionPermission",
|
|
3070
3070
|
props: {
|
|
3071
3071
|
modelValue: {
|
|
@@ -3090,30 +3090,30 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3090
3090
|
const n = e, r = t, { t: l } = He(), a = z(() => [
|
|
3091
3091
|
{
|
|
3092
3092
|
label: l("team.memberForm.permissions.includedFuture", { context: n.context }),
|
|
3093
|
-
value:
|
|
3093
|
+
value: pt,
|
|
3094
3094
|
// Can only be selected if all other options are selected
|
|
3095
3095
|
disabled: !!n.modelValue && n.options.length > n.modelValue.length
|
|
3096
3096
|
},
|
|
3097
3097
|
...n.options.filter(
|
|
3098
3098
|
(E) => E.label.toLocaleLowerCase().includes(g.value.toLocaleLowerCase())
|
|
3099
3099
|
)
|
|
3100
|
-
]),
|
|
3101
|
-
const E =
|
|
3100
|
+
]), m = z(() => n.modelValue ? n.modelValue : [pt, ...n.options.map((E) => E.value)]), u = z(() => {
|
|
3101
|
+
const E = m.value.filter((T) => T !== pt).length;
|
|
3102
3102
|
return E === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: E });
|
|
3103
3103
|
});
|
|
3104
3104
|
function i(E) {
|
|
3105
3105
|
const T = E.length === a.value.length;
|
|
3106
|
-
r("update:model-value", T ? null : E.filter((
|
|
3106
|
+
r("update:model-value", T ? null : E.filter((C) => C !== pt));
|
|
3107
3107
|
}
|
|
3108
3108
|
const g = rt("");
|
|
3109
3109
|
return (E, T) => {
|
|
3110
|
-
const
|
|
3111
|
-
return J(),
|
|
3112
|
-
title:
|
|
3110
|
+
const C = De("fm-search");
|
|
3111
|
+
return J(), Ce(Yt, { subtitle: u.value }, {
|
|
3112
|
+
title: me(() => [
|
|
3113
3113
|
ae("p", ta, Oe(H(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3114
3114
|
]),
|
|
3115
|
-
default:
|
|
3116
|
-
e.options.length > 1 ? (J(),
|
|
3115
|
+
default: me(() => [
|
|
3116
|
+
e.options.length > 1 ? (J(), Ce(C, {
|
|
3117
3117
|
key: 0,
|
|
3118
3118
|
modelValue: g.value,
|
|
3119
3119
|
"onUpdate:modelValue": T[0] || (T[0] = (F) => g.value = F),
|
|
@@ -3121,7 +3121,7 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3121
3121
|
placeholder: H(l)("team.memberForm.permissions.search", { context: e.context })
|
|
3122
3122
|
}, null, 8, ["modelValue", "placeholder"])) : Me("", !0),
|
|
3123
3123
|
ue(ir, {
|
|
3124
|
-
"model-value":
|
|
3124
|
+
"model-value": m.value,
|
|
3125
3125
|
options: a.value,
|
|
3126
3126
|
"show-intermediate": !1,
|
|
3127
3127
|
"show-all-toggle": !0,
|
|
@@ -3133,7 +3133,7 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3133
3133
|
}, et({ _: 2 }, [
|
|
3134
3134
|
ye(a.value, (F) => ({
|
|
3135
3135
|
name: `checkbox-${F.value}-append`,
|
|
3136
|
-
fn:
|
|
3136
|
+
fn: me(({ option: D }) => [
|
|
3137
3137
|
Se(E.$slots, `checkbox-${F.value}-append`, { option: D })
|
|
3138
3138
|
])
|
|
3139
3139
|
}))
|
|
@@ -3179,21 +3179,21 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3179
3179
|
disabled: !!g && E.restaurants.every(({ id: T }) => !g.includes(T))
|
|
3180
3180
|
}))
|
|
3181
3181
|
];
|
|
3182
|
-
}),
|
|
3183
|
-
const g =
|
|
3182
|
+
}), m = z(() => n.modelValue ? n.modelValue : [bt, ...n.roles.map((g) => g._id)]), u = z(() => {
|
|
3183
|
+
const g = m.value.filter((E) => E !== bt).length;
|
|
3184
3184
|
return g === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: g });
|
|
3185
3185
|
});
|
|
3186
3186
|
function i(g) {
|
|
3187
3187
|
const E = g.length === a.value.length;
|
|
3188
3188
|
r("update:model-value", E ? null : g.filter((T) => T !== bt));
|
|
3189
3189
|
}
|
|
3190
|
-
return (g, E) => (J(),
|
|
3191
|
-
title:
|
|
3190
|
+
return (g, E) => (J(), Ce(Yt, { subtitle: u.value }, {
|
|
3191
|
+
title: me(() => [
|
|
3192
3192
|
ae("p", na, Oe(H(l)("team.memberForm.permissions.roles")), 1)
|
|
3193
3193
|
]),
|
|
3194
|
-
default:
|
|
3194
|
+
default: me(() => [
|
|
3195
3195
|
ue(ir, {
|
|
3196
|
-
"model-value":
|
|
3196
|
+
"model-value": m.value,
|
|
3197
3197
|
options: a.value,
|
|
3198
3198
|
"show-intermediate": !1,
|
|
3199
3199
|
"show-all-toggle": !1,
|
|
@@ -3204,8 +3204,8 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3204
3204
|
}, et({ _: 2 }, [
|
|
3205
3205
|
ye(a.value, (T) => ({
|
|
3206
3206
|
name: `checkbox-${T.value}-append`,
|
|
3207
|
-
fn:
|
|
3208
|
-
Se(g.$slots, `checkbox-${T.value}-append`, { option:
|
|
3207
|
+
fn: me(({ option: C }) => [
|
|
3208
|
+
Se(g.$slots, `checkbox-${T.value}-append`, { option: C })
|
|
3209
3209
|
])
|
|
3210
3210
|
}))
|
|
3211
3211
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3242,8 +3242,8 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3242
3242
|
setup(e, { emit: t }) {
|
|
3243
3243
|
const n = t, { t: r } = He();
|
|
3244
3244
|
return (l, a) => {
|
|
3245
|
-
const
|
|
3246
|
-
return J(),
|
|
3245
|
+
const m = De("FmRadio"), u = De("FmRadioGroup");
|
|
3246
|
+
return J(), Ce(Nr, {
|
|
3247
3247
|
title: e.title,
|
|
3248
3248
|
builders: e.builders,
|
|
3249
3249
|
"form-value-for": e.formValueFor,
|
|
@@ -3253,16 +3253,16 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3253
3253
|
onUpdateForm: a[0] || (a[0] = (i) => n("update-form", i)),
|
|
3254
3254
|
onApply: a[1] || (a[1] = (i) => n("apply"))
|
|
3255
3255
|
}, {
|
|
3256
|
-
section:
|
|
3256
|
+
section: me(({ builder: i }) => [
|
|
3257
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,
|
|
3261
3261
|
"onUpdate:modelValue": (g) => n("update-inherit-mode", { builder: i, mode: g })
|
|
3262
3262
|
}, {
|
|
3263
|
-
default:
|
|
3263
|
+
default: me(() => [
|
|
3264
3264
|
ae("div", null, [
|
|
3265
|
-
ue(
|
|
3265
|
+
ue(m, {
|
|
3266
3266
|
value: "inherit",
|
|
3267
3267
|
label: H(r)("team.memberForm.permissions.conditionCover.inherit", {
|
|
3268
3268
|
cover: e.coverOverride.coverLabel(e.subject)
|
|
@@ -3273,7 +3273,7 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3273
3273
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).params ?? {}
|
|
3274
3274
|
)) + ") ", 1)) : Me("", !0)
|
|
3275
3275
|
]),
|
|
3276
|
-
ue(
|
|
3276
|
+
ue(m, {
|
|
3277
3277
|
value: "custom",
|
|
3278
3278
|
label: H(r)("team.memberForm.permissions.conditionCover.custom")
|
|
3279
3279
|
}, null, 8, ["label"])
|
|
@@ -3288,7 +3288,7 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3288
3288
|
"onUpdate:modelValue": (g) => n("update-form", { builder: i, form: g })
|
|
3289
3289
|
}, null, 8, ["builder", "model-value", "disable", "onUpdate:modelValue"])
|
|
3290
3290
|
])) : Me("", !0)
|
|
3291
|
-
])) : (J(),
|
|
3291
|
+
])) : (J(), Ce(nn, {
|
|
3292
3292
|
key: 1,
|
|
3293
3293
|
builder: i,
|
|
3294
3294
|
"model-value": e.formValueFor(i),
|
|
@@ -3306,7 +3306,7 @@ const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
3306
3306
|
}
|
|
3307
3307
|
};
|
|
3308
3308
|
function Pn(e, t) {
|
|
3309
|
-
return
|
|
3309
|
+
return Zn(e, Xn).some(
|
|
3310
3310
|
(n) => n.subject === t && !n.inverted && n.actions.includes("manage")
|
|
3311
3311
|
);
|
|
3312
3312
|
}
|
|
@@ -3314,9 +3314,9 @@ function jn(e, t) {
|
|
|
3314
3314
|
return e.some((n) => n.subject === t && n.inverted) ? e : [...e, { subject: t, actions: ["manage"], inverted: !0 }];
|
|
3315
3315
|
}
|
|
3316
3316
|
function Un(e, t, n) {
|
|
3317
|
-
const { category: r, showByFeatureFlag: l, isCategoryCover: a, ...
|
|
3317
|
+
const { category: r, showByFeatureFlag: l, isCategoryCover: a, ...m } = e;
|
|
3318
3318
|
return {
|
|
3319
|
-
...
|
|
3319
|
+
...m,
|
|
3320
3320
|
actions: t,
|
|
3321
3321
|
...n !== void 0 && { conditions: n }
|
|
3322
3322
|
};
|
|
@@ -3326,18 +3326,18 @@ function ia(e, t, n, r) {
|
|
|
3326
3326
|
e.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3327
3327
|
), a = new Set(
|
|
3328
3328
|
t.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3329
|
-
),
|
|
3329
|
+
), m = new Set(
|
|
3330
3330
|
n.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3331
3331
|
);
|
|
3332
3332
|
let u = [...n];
|
|
3333
3333
|
for (const i of l)
|
|
3334
|
-
a.has(i) || (
|
|
3334
|
+
a.has(i) || (m.has(i) && (u = u.filter((E) => E.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
3337
|
const g = u.some((E) => E.subject === i && E.inverted);
|
|
3338
|
-
if (u = u.filter((E) => !(E.subject === i && E.inverted)), !g && !
|
|
3338
|
+
if (u = u.filter((E) => !(E.subject === i && E.inverted)), !g && !m.has(i)) {
|
|
3339
3339
|
const E = t.find(
|
|
3340
|
-
(
|
|
3340
|
+
(C) => C.subject === i && !C.inverted
|
|
3341
3341
|
), T = r(i);
|
|
3342
3342
|
T && E && u.push(Un(T, E.actions, E.conditions));
|
|
3343
3343
|
}
|
|
@@ -3346,20 +3346,20 @@ function ia(e, t, n, r) {
|
|
|
3346
3346
|
if (!l.has(i)) continue;
|
|
3347
3347
|
const g = e.find((D) => D.subject === i && !D.inverted), E = t.find((D) => D.subject === i && !D.inverted);
|
|
3348
3348
|
if (!g || !E) continue;
|
|
3349
|
-
const T = new Set(g.actions),
|
|
3350
|
-
if (T.size ===
|
|
3349
|
+
const T = new Set(g.actions), C = new Set(E.actions);
|
|
3350
|
+
if (T.size === C.size && [...T].every((D) => C.has(D)))
|
|
3351
3351
|
continue;
|
|
3352
3352
|
const F = u.findIndex((D) => D.subject === i && !D.inverted);
|
|
3353
3353
|
if (F >= 0)
|
|
3354
3354
|
u[F] = {
|
|
3355
3355
|
...u[F],
|
|
3356
|
-
actions: Array.from(
|
|
3356
|
+
actions: Array.from(C)
|
|
3357
3357
|
};
|
|
3358
3358
|
else {
|
|
3359
3359
|
const D = r(i);
|
|
3360
|
-
D && u.push(Un(D, Array.from(
|
|
3360
|
+
D && u.push(Un(D, Array.from(C)));
|
|
3361
3361
|
}
|
|
3362
|
-
T.has("manage") && !
|
|
3362
|
+
T.has("manage") && !C.has("manage") && Pn(u, i) && (u = jn(u, i)), !T.has("manage") && C.has("manage") && (u = u.filter((D) => !(D.subject === i && D.inverted)));
|
|
3363
3363
|
}
|
|
3364
3364
|
return u;
|
|
3365
3365
|
}
|
|
@@ -3382,7 +3382,7 @@ function ua(e) {
|
|
|
3382
3382
|
const t = (e || "").toUpperCase();
|
|
3383
3383
|
return ca[t] ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
3384
3384
|
}
|
|
3385
|
-
function
|
|
3385
|
+
function ma(e, t) {
|
|
3386
3386
|
return e != null && e.timezone ? e.timezone : e != null && e.timeZone ? e.timeZone : ua((e == null ? void 0 : e.country) ?? t);
|
|
3387
3387
|
}
|
|
3388
3388
|
function gt(e, t) {
|
|
@@ -3395,20 +3395,20 @@ function We(e) {
|
|
|
3395
3395
|
return;
|
|
3396
3396
|
}
|
|
3397
3397
|
}
|
|
3398
|
-
function
|
|
3398
|
+
function da(e, t) {
|
|
3399
3399
|
return e.find((n) => !n.inverted && n.subject === 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(pe.Action.manage) ? !0 : t.actions.every((r) => n.has(r));
|
|
3404
3404
|
}
|
|
3405
|
-
function
|
|
3405
|
+
function Xt(e, t) {
|
|
3406
3406
|
const n = We(e);
|
|
3407
3407
|
return wt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3408
3408
|
}
|
|
3409
|
-
function
|
|
3409
|
+
function Vn(e, t, n) {
|
|
3410
3410
|
return {
|
|
3411
|
-
...
|
|
3411
|
+
...Xt(e, n),
|
|
3412
3412
|
...tt(We(t), n)
|
|
3413
3413
|
};
|
|
3414
3414
|
}
|
|
@@ -3420,13 +3420,13 @@ function fa(e, t, n) {
|
|
|
3420
3420
|
function a(c) {
|
|
3421
3421
|
return t.value.find((b) => b.subject === c);
|
|
3422
3422
|
}
|
|
3423
|
-
function
|
|
3423
|
+
function m(c) {
|
|
3424
3424
|
var I;
|
|
3425
3425
|
const b = l(c);
|
|
3426
3426
|
return b ? (I = a(b)) == null ? void 0 : I.label : void 0;
|
|
3427
3427
|
}
|
|
3428
3428
|
function u(c) {
|
|
3429
|
-
return
|
|
3429
|
+
return da(e.value, c);
|
|
3430
3430
|
}
|
|
3431
3431
|
function i(c, b) {
|
|
3432
3432
|
return tt(We(c), b);
|
|
@@ -3436,13 +3436,13 @@ function fa(e, t, n) {
|
|
|
3436
3436
|
if (!(((R = b.appliesToActions) == null ? void 0 : R.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 h = u(I);
|
|
3440
|
+
return h ? Object.keys(i(h, b)).length > 0 : !1;
|
|
3441
3441
|
}
|
|
3442
3442
|
function E(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],
|
|
3445
|
+
const I = e.value[c.index], h = l(c.subject), R = h ? u(h) : void 0;
|
|
3446
3446
|
if (I && R) {
|
|
3447
3447
|
const A = tt(We(I), b), Y = i(R, b);
|
|
3448
3448
|
if (JSON.stringify(A) === JSON.stringify(Y)) return "inherit";
|
|
@@ -3451,34 +3451,34 @@ function fa(e, t, n) {
|
|
|
3451
3451
|
}
|
|
3452
3452
|
function T(c, b, I) {
|
|
3453
3453
|
if (!b.summarizeForm) return;
|
|
3454
|
-
const
|
|
3455
|
-
if (!
|
|
3456
|
-
const R = u(
|
|
3454
|
+
const h = l(c.subject);
|
|
3455
|
+
if (!h) return;
|
|
3456
|
+
const R = u(h);
|
|
3457
3457
|
if (!R) return;
|
|
3458
3458
|
const A = b.fromCondition(i(R, b));
|
|
3459
3459
|
return b.summarizeForm(A, { timeZone: I });
|
|
3460
3460
|
}
|
|
3461
|
-
function
|
|
3461
|
+
function C(c, b) {
|
|
3462
3462
|
if (c.index === null) return;
|
|
3463
|
-
const I = [...e.value],
|
|
3464
|
-
if (A &&
|
|
3463
|
+
const I = [...e.value], h = { ...I[c.index] }, R = Xt(h, b), A = Object.keys(R).length === 0, Y = l(c.subject), x = Y ? u(Y) : void 0, d = x ? Mt(x, h) : !1;
|
|
3464
|
+
if (A && d)
|
|
3465
3465
|
I.splice(c.index, 1);
|
|
3466
|
-
else if (
|
|
3467
|
-
const
|
|
3468
|
-
Object.keys(
|
|
3466
|
+
else if (x) {
|
|
3467
|
+
const N = Vn(h, x, b);
|
|
3468
|
+
Object.keys(N).length === 0 ? delete h.conditions : h.conditions = JSON.stringify(N), I[c.index] = h;
|
|
3469
3469
|
} else
|
|
3470
|
-
A ? delete
|
|
3470
|
+
A ? delete h.conditions : h.conditions = JSON.stringify(R), I[c.index] = h;
|
|
3471
3471
|
n(I);
|
|
3472
3472
|
}
|
|
3473
3473
|
function F(c, b, I) {
|
|
3474
|
-
const
|
|
3474
|
+
const h = gt(c.subject, b);
|
|
3475
3475
|
if (I === "inherit") {
|
|
3476
3476
|
const A = new Set(r.value);
|
|
3477
|
-
A.delete(
|
|
3477
|
+
A.delete(h), r.value = A, C(c, b);
|
|
3478
3478
|
return;
|
|
3479
3479
|
}
|
|
3480
3480
|
const R = new Set(r.value);
|
|
3481
|
-
R.add(
|
|
3481
|
+
R.add(h), r.value = R, c.index === null && p(c, b, b.fromCondition(void 0), {
|
|
3482
3482
|
forceCreateRule: !0
|
|
3483
3483
|
});
|
|
3484
3484
|
}
|
|
@@ -3491,44 +3491,44 @@ 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 h = I.subject;
|
|
3495
|
+
return h === c || l(h) !== c ? !1 : r.value.has(gt(h, b)) ? !0 : Object.keys(tt(We(I), b)).length > 0;
|
|
3496
3496
|
});
|
|
3497
3497
|
}
|
|
3498
3498
|
function w(c, b) {
|
|
3499
|
-
const I = `::${b.builderKey}`,
|
|
3500
|
-
for (const R of
|
|
3499
|
+
const I = `::${b.builderKey}`, h = new Set(r.value);
|
|
3500
|
+
for (const R of h) {
|
|
3501
3501
|
if (!R.endsWith(I)) continue;
|
|
3502
3502
|
const A = R.slice(0, -I.length);
|
|
3503
|
-
l(A) === c &&
|
|
3503
|
+
l(A) === c && h.delete(R);
|
|
3504
3504
|
}
|
|
3505
|
-
r.value =
|
|
3505
|
+
r.value = h;
|
|
3506
3506
|
}
|
|
3507
3507
|
function f(c, b, I) {
|
|
3508
|
-
const
|
|
3508
|
+
const h = b.subject;
|
|
3509
3509
|
return c.reduce((R, A) => {
|
|
3510
3510
|
if (A.inverted)
|
|
3511
3511
|
return R.push(A), R;
|
|
3512
3512
|
const Y = A.subject;
|
|
3513
|
-
if (Y ===
|
|
3513
|
+
if (Y === h || l(Y) !== h)
|
|
3514
3514
|
return R.push(A), R;
|
|
3515
|
-
if (Mt(b, A) && Object.keys(
|
|
3515
|
+
if (Mt(b, A) && Object.keys(Xt(A, I)).length === 0)
|
|
3516
3516
|
return R;
|
|
3517
|
-
const
|
|
3518
|
-
if (Object.keys(
|
|
3519
|
-
const { conditions:
|
|
3517
|
+
const d = Vn(A, b, I);
|
|
3518
|
+
if (Object.keys(d).length === 0) {
|
|
3519
|
+
const { conditions: N, ...U } = A;
|
|
3520
3520
|
R.push(U);
|
|
3521
3521
|
} else
|
|
3522
|
-
R.push({ ...A, conditions: JSON.stringify(
|
|
3522
|
+
R.push({ ...A, conditions: JSON.stringify(d) });
|
|
3523
3523
|
return R;
|
|
3524
3524
|
}, []);
|
|
3525
3525
|
}
|
|
3526
|
-
function
|
|
3527
|
-
var
|
|
3526
|
+
function p(c, b, I, h = {}) {
|
|
3527
|
+
var V;
|
|
3528
3528
|
const R = [...e.value];
|
|
3529
3529
|
let A = c.index;
|
|
3530
|
-
const Y = b.toCondition(I),
|
|
3531
|
-
if (A === null && !
|
|
3530
|
+
const Y = b.toCondition(I), x = Object.keys(Y).length > 0;
|
|
3531
|
+
if (A === null && !x && !h.forceCreateRule) return;
|
|
3532
3532
|
if (A === null) {
|
|
3533
3533
|
const j = R.findIndex((G) => !G.inverted && G.subject === c.subject);
|
|
3534
3534
|
if (j !== -1)
|
|
@@ -3538,7 +3538,7 @@ function fa(e, t, n) {
|
|
|
3538
3538
|
if (!G) return;
|
|
3539
3539
|
const {
|
|
3540
3540
|
category: W,
|
|
3541
|
-
showByFeatureFlag:
|
|
3541
|
+
showByFeatureFlag: X,
|
|
3542
3542
|
isCategoryCover: B,
|
|
3543
3543
|
...ne
|
|
3544
3544
|
} = G;
|
|
@@ -3548,107 +3548,107 @@ function fa(e, t, n) {
|
|
|
3548
3548
|
}), A = R.length - 1;
|
|
3549
3549
|
}
|
|
3550
3550
|
}
|
|
3551
|
-
const
|
|
3552
|
-
|
|
3553
|
-
.../* @__PURE__ */ new Set([...
|
|
3551
|
+
const d = { ...R[A] };
|
|
3552
|
+
d.actions = [
|
|
3553
|
+
.../* @__PURE__ */ new Set([...d.actions, ...c.actions])
|
|
3554
3554
|
];
|
|
3555
|
-
const
|
|
3556
|
-
if (Object.keys(U).length === 0 ? delete
|
|
3555
|
+
const N = We(d), U = wt(N, [{ builder: b, formValue: I }]);
|
|
3556
|
+
if (Object.keys(U).length === 0 ? delete d.conditions : d.conditions = JSON.stringify(U), R[A] = d, sn(c.subject, t.value)) {
|
|
3557
3557
|
const j = L(c.subject, b), G = () => {
|
|
3558
|
-
var
|
|
3559
|
-
w(c.subject, b), n(f(R,
|
|
3558
|
+
var X;
|
|
3559
|
+
w(c.subject, b), n(f(R, d, b)), (X = h.afterCommit) == null || X.call(h);
|
|
3560
3560
|
}, W = () => {
|
|
3561
|
-
var
|
|
3562
|
-
n(R), (
|
|
3561
|
+
var X;
|
|
3562
|
+
n(R), (X = h.afterCommit) == null || X.call(h);
|
|
3563
3563
|
};
|
|
3564
3564
|
if (j.length === 0) {
|
|
3565
3565
|
G();
|
|
3566
3566
|
return;
|
|
3567
3567
|
}
|
|
3568
|
-
|
|
3568
|
+
h.onOverridesConflict ? h.onOverridesConflict({ override: G, keep: W }) : W();
|
|
3569
3569
|
return;
|
|
3570
3570
|
}
|
|
3571
|
-
n(R), (
|
|
3571
|
+
n(R), (V = h.afterCommit) == null || V.call(h);
|
|
3572
3572
|
}
|
|
3573
3573
|
function S(c, b, I = {}) {
|
|
3574
3574
|
if (b.length === 0) return;
|
|
3575
|
-
const
|
|
3576
|
-
let R =
|
|
3575
|
+
const h = [...e.value];
|
|
3576
|
+
let R = h.findIndex((j) => !j.inverted && j.subject === c.subject), A = R === -1 ? void 0 : { ...h[R] }, Y = 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
|
Y = wt(Y, [{ builder: j.builder, formValue: G }]);
|
|
3580
3580
|
}
|
|
3581
|
-
const
|
|
3582
|
-
if (!A && (Object.keys(Y).length > 0 ||
|
|
3581
|
+
const x = b.some((j) => j.mode === "custom");
|
|
3582
|
+
if (!A && (Object.keys(Y).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
|
-
isCategoryCover:
|
|
3588
|
+
isCategoryCover: X,
|
|
3589
3589
|
...B
|
|
3590
3590
|
} = j;
|
|
3591
3591
|
A = {
|
|
3592
3592
|
...B,
|
|
3593
3593
|
actions: c.actions.length > 0 ? c.actions : B.actions
|
|
3594
|
-
},
|
|
3594
|
+
}, h.push(A), R = h.length - 1;
|
|
3595
3595
|
}
|
|
3596
3596
|
if (A) {
|
|
3597
3597
|
const j = l(c.subject), G = j ? u(j) : void 0;
|
|
3598
|
-
if (!
|
|
3599
|
-
|
|
3598
|
+
if (!x && Object.keys(Y).length === 0 && !!G && Mt(G, A))
|
|
3599
|
+
h.splice(R, 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
|
-
for (const
|
|
3605
|
-
|
|
3604
|
+
for (const X of b)
|
|
3605
|
+
X.mode === "inherit" && (Y = {
|
|
3606
3606
|
...Y,
|
|
3607
|
-
...tt(We(G),
|
|
3607
|
+
...tt(We(G), X.builder)
|
|
3608
3608
|
});
|
|
3609
|
-
Object.keys(Y).length === 0 ? delete A.conditions : A.conditions = JSON.stringify(Y),
|
|
3609
|
+
Object.keys(Y).length === 0 ? delete A.conditions : A.conditions = JSON.stringify(Y), h[R] = A;
|
|
3610
3610
|
}
|
|
3611
3611
|
}
|
|
3612
|
-
const
|
|
3612
|
+
const d = () => {
|
|
3613
3613
|
const j = new Set(r.value);
|
|
3614
3614
|
for (const G of b) {
|
|
3615
3615
|
const W = gt(c.subject, G.builder);
|
|
3616
3616
|
G.mode === "custom" ? j.add(W) : j.delete(W);
|
|
3617
3617
|
}
|
|
3618
3618
|
r.value = j;
|
|
3619
|
-
},
|
|
3619
|
+
}, N = (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
|
+
N(h);
|
|
3625
3625
|
return;
|
|
3626
3626
|
}
|
|
3627
|
-
const U = b.map((j) => j.builder).filter((j) => L(c.subject, j).length > 0),
|
|
3628
|
-
let j =
|
|
3627
|
+
const U = b.map((j) => j.builder).filter((j) => L(c.subject, j).length > 0), V = () => {
|
|
3628
|
+
let j = h;
|
|
3629
3629
|
for (const G of b.map((W) => W.builder))
|
|
3630
3630
|
w(c.subject, G), j = f(j, A, G);
|
|
3631
|
-
|
|
3631
|
+
N(j);
|
|
3632
3632
|
};
|
|
3633
3633
|
if (U.length > 0 && I.onOverridesConflict) {
|
|
3634
|
-
I.onOverridesConflict({ override:
|
|
3634
|
+
I.onOverridesConflict({ override: V, keep: () => N(h) });
|
|
3635
3635
|
return;
|
|
3636
3636
|
}
|
|
3637
|
-
U.length > 0 ?
|
|
3637
|
+
U.length > 0 ? N(h) : V();
|
|
3638
3638
|
}
|
|
3639
3639
|
return {
|
|
3640
3640
|
getCoverSubject: l,
|
|
3641
|
-
coverLabel:
|
|
3641
|
+
coverLabel: m,
|
|
3642
3642
|
shouldShowInheritToggle: g,
|
|
3643
3643
|
inheritMode: E,
|
|
3644
3644
|
setInheritMode: F,
|
|
3645
3645
|
inheritedSummary: T,
|
|
3646
3646
|
getEffectiveActions: D,
|
|
3647
|
-
updateBuilderCondition:
|
|
3647
|
+
updateBuilderCondition: p,
|
|
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" }, ha = { 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" }, pa = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ba = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ga = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Ia = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Ea = "condition-form-select-menu", wa = /* @__PURE__ */ Le({
|
|
3652
3652
|
__name: "PortalPermissionEditor",
|
|
3653
3653
|
props: /* @__PURE__ */ tn({
|
|
3654
3654
|
disable: {
|
|
@@ -3665,18 +3665,18 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3665
3665
|
}),
|
|
3666
3666
|
emits: /* @__PURE__ */ tn(["permissionChanged"], ["update:modelValue"]),
|
|
3667
3667
|
setup(e, { emit: t }) {
|
|
3668
|
-
const n = vr(e, "modelValue"), r = e, l = t, { t: a } = He(),
|
|
3668
|
+
const n = vr(e, "modelValue"), r = e, l = t, { t: a } = He(), m = pr(), u = br(), { breakpoints: i } = gr(), g = z(() => i.value.xs || i.value.sm), {
|
|
3669
3669
|
fetchCustomReportPermissions: E,
|
|
3670
3670
|
customReportPermissions: T
|
|
3671
|
-
} = Ir(),
|
|
3671
|
+
} = Ir(), C = z(() => [
|
|
3672
3672
|
...Gn,
|
|
3673
3673
|
...T.value
|
|
3674
3674
|
]), F = z(() => {
|
|
3675
|
-
const O =
|
|
3676
|
-
return
|
|
3675
|
+
const O = m.currentBusiness.value, s = m.currentCountry.value, o = s instanceof Object ? s.code : s;
|
|
3676
|
+
return ma(O, o);
|
|
3677
3677
|
});
|
|
3678
3678
|
function D(O) {
|
|
3679
|
-
return
|
|
3679
|
+
return C.value.find((s) => s.subject === O);
|
|
3680
3680
|
}
|
|
3681
3681
|
function L(O, s) {
|
|
3682
3682
|
return rn(O).filter(
|
|
@@ -3687,7 +3687,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3687
3687
|
);
|
|
3688
3688
|
}
|
|
3689
3689
|
const w = z(() => {
|
|
3690
|
-
const O =
|
|
3690
|
+
const O = C.value.filter((o) => !c.includes(o.subject)).map((o) => o.subject);
|
|
3691
3691
|
return Er(
|
|
3692
3692
|
r.inheritPermissions.map((o) => ({
|
|
3693
3693
|
...o,
|
|
@@ -3701,7 +3701,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3701
3701
|
const O = r.inheritPermissions.map((s) => ({
|
|
3702
3702
|
...s,
|
|
3703
3703
|
permissions: s.permissions.filter(
|
|
3704
|
-
(o) => o.subject ===
|
|
3704
|
+
(o) => o.subject === pe.Subject.Business.inventory_stock
|
|
3705
3705
|
)
|
|
3706
3706
|
}));
|
|
3707
3707
|
return At(
|
|
@@ -3709,11 +3709,11 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3709
3709
|
"warehouseId",
|
|
3710
3710
|
I.value.map((s) => s._id)
|
|
3711
3711
|
);
|
|
3712
|
-
}),
|
|
3712
|
+
}), p = 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 === pe.Subject.Restaurant.restaurant
|
|
3717
3717
|
)
|
|
3718
3718
|
}));
|
|
3719
3719
|
return At(
|
|
@@ -3724,25 +3724,25 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3724
3724
|
}), S = z(() => {
|
|
3725
3725
|
const O = r.inheritPermissions.map((s) => ({
|
|
3726
3726
|
...s,
|
|
3727
|
-
permissions: s.permissions.filter((o) => o.subject ===
|
|
3727
|
+
permissions: s.permissions.filter((o) => o.subject === pe.Subject.Business.role)
|
|
3728
3728
|
}));
|
|
3729
3729
|
return At(
|
|
3730
3730
|
O,
|
|
3731
3731
|
"roleId",
|
|
3732
|
-
|
|
3732
|
+
x.value.map((s) => s._id)
|
|
3733
3733
|
);
|
|
3734
3734
|
}), c = [
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3735
|
+
pe.Subject.Business.restaurant,
|
|
3736
|
+
pe.Subject.Business.role,
|
|
3737
|
+
pe.Subject.Restaurant.restaurant,
|
|
3738
|
+
pe.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 === pe.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([]), h = z(() => I.value.map((O) => ({
|
|
3746
3746
|
label: O.profile.name,
|
|
3747
3747
|
value: O._id
|
|
3748
3748
|
})));
|
|
@@ -3752,31 +3752,31 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3752
3752
|
}
|
|
3753
3753
|
function A(O, s) {
|
|
3754
3754
|
let o = It(
|
|
3755
|
-
O.filter((_) => _.subject !==
|
|
3755
|
+
O.filter((_) => _.subject !== pe.Subject.Business.inventory_stock)
|
|
3756
3756
|
);
|
|
3757
3757
|
if (!s || s.length > 0) {
|
|
3758
3758
|
const _ = {
|
|
3759
|
-
actions: [
|
|
3760
|
-
subject:
|
|
3759
|
+
actions: [pe.Action.manage],
|
|
3760
|
+
subject: pe.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: Y } =
|
|
3766
|
+
const { restaurants: Y } = m, x = Mr().roles, d = z(() => Y.value.map((O) => ({
|
|
3767
3767
|
label: `${O.profile.code ? O.profile.code + "-" : ""}${O.profile.name}`,
|
|
3768
3768
|
value: O._id
|
|
3769
|
-
}))),
|
|
3770
|
-
function
|
|
3769
|
+
}))), N = z(() => Y.value.reduce((O, s) => (O[s._id] = x.value.filter((o) => o.restaurants.some((_) => _.id === s._id)).map((o) => o._id), O), {})), U = z(() => yr(n.value));
|
|
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(() => Cr(n.value));
|
|
3775
3775
|
function G(O, s) {
|
|
3776
3776
|
var _;
|
|
3777
3777
|
let o = It(
|
|
3778
3778
|
O.filter(
|
|
3779
|
-
(k) => k.subject !==
|
|
3779
|
+
(k) => k.subject !== pe.Subject.Business.restaurant && k.subject !== pe.Subject.Restaurant.restaurant
|
|
3780
3780
|
)
|
|
3781
3781
|
);
|
|
3782
3782
|
if (!s || s.length > 0) {
|
|
@@ -3787,16 +3787,16 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3787
3787
|
} = Ar.restaurant;
|
|
3788
3788
|
o.push(P);
|
|
3789
3789
|
const v = {
|
|
3790
|
-
actions: [
|
|
3791
|
-
subject:
|
|
3790
|
+
actions: [pe.Action.manage],
|
|
3791
|
+
subject: pe.Subject.Restaurant.restaurant
|
|
3792
3792
|
};
|
|
3793
3793
|
s && (v.conditions = JSON.stringify({ restaurantId: { $in: s } })), o.push(v);
|
|
3794
3794
|
}
|
|
3795
3795
|
if (s) {
|
|
3796
3796
|
const k = [
|
|
3797
|
-
...new Set(s.map((P) =>
|
|
3798
|
-
], M =
|
|
3799
|
-
k.length !== M.length && (o =
|
|
3797
|
+
...new Set(s.map((P) => N.value[P]).flatMap((P) => P))
|
|
3798
|
+
], M = x.value.map((P) => P._id);
|
|
3799
|
+
k.length !== M.length && (o = X(
|
|
3800
3800
|
o,
|
|
3801
3801
|
(_ = j.value || M) == null ? void 0 : _.filter((P) => k.includes(P))
|
|
3802
3802
|
));
|
|
@@ -3804,32 +3804,32 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3804
3804
|
return o;
|
|
3805
3805
|
}
|
|
3806
3806
|
function W(O) {
|
|
3807
|
-
const s =
|
|
3807
|
+
const s = X(n.value, O);
|
|
3808
3808
|
n.value = s;
|
|
3809
3809
|
}
|
|
3810
|
-
function
|
|
3810
|
+
function X(O, s) {
|
|
3811
3811
|
let o = It(
|
|
3812
|
-
O.filter((_) => _.subject !==
|
|
3812
|
+
O.filter((_) => _.subject !== pe.Subject.Business.role)
|
|
3813
3813
|
);
|
|
3814
3814
|
if (s && s.length > 0) {
|
|
3815
3815
|
const _ = {
|
|
3816
|
-
actions: [
|
|
3817
|
-
subject:
|
|
3816
|
+
actions: [pe.Action.manage],
|
|
3817
|
+
subject: pe.Subject.Business.role,
|
|
3818
3818
|
conditions: JSON.stringify({ roleId: { $in: s } })
|
|
3819
3819
|
};
|
|
3820
3820
|
o.push(_);
|
|
3821
3821
|
}
|
|
3822
3822
|
return o;
|
|
3823
3823
|
}
|
|
3824
|
-
|
|
3824
|
+
xn(async () => {
|
|
3825
3825
|
await Promise.all([
|
|
3826
3826
|
la.readWarehouses().then((O) => I.value = O),
|
|
3827
3827
|
E()
|
|
3828
3828
|
]);
|
|
3829
3829
|
});
|
|
3830
|
-
const B = z(() =>
|
|
3830
|
+
const B = z(() => Zn(
|
|
3831
3831
|
n.value,
|
|
3832
|
-
|
|
3832
|
+
Xn
|
|
3833
3833
|
).filter((o) => {
|
|
3834
3834
|
const _ = o.source;
|
|
3835
3835
|
return (_ == null ? void 0 : _.type) !== "systemPermissionSet" ? !0 : o.actions.includes("manage");
|
|
@@ -3851,7 +3851,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3851
3851
|
);
|
|
3852
3852
|
}
|
|
3853
3853
|
const Q = z(() => new Set(
|
|
3854
|
-
|
|
3854
|
+
C.value.filter((O) => rn(O.subject).length > 0).map((O) => O.subject)
|
|
3855
3855
|
)), _e = z(() => {
|
|
3856
3856
|
const O = /* @__PURE__ */ new Map();
|
|
3857
3857
|
return B.value.map((s) => ({
|
|
@@ -3881,7 +3881,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3881
3881
|
}))
|
|
3882
3882
|
});
|
|
3883
3883
|
}), O;
|
|
3884
|
-
}), ce = fa(n,
|
|
3884
|
+
}), ce = fa(n, C, (O) => {
|
|
3885
3885
|
n.value = O;
|
|
3886
3886
|
}), se = Tr(n), fe = rt(null);
|
|
3887
3887
|
function q(O, s) {
|
|
@@ -3910,7 +3910,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
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 he(O, s, o) {
|
|
3914
3914
|
const _ = se.getDraft({
|
|
3915
3915
|
subject: O.subject,
|
|
3916
3916
|
builderKey: s.builderKey
|
|
@@ -3939,7 +3939,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3939
3939
|
function Ke(O) {
|
|
3940
3940
|
return se.hasDraftsForSubject(O);
|
|
3941
3941
|
}
|
|
3942
|
-
function
|
|
3942
|
+
function Ve(O, s) {
|
|
3943
3943
|
const o = O.sections.flatMap((_) => {
|
|
3944
3944
|
const k = se.getDraft({
|
|
3945
3945
|
subject: O.subject,
|
|
@@ -3951,18 +3951,18 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3951
3951
|
afterCommit: () => {
|
|
3952
3952
|
se.clearDraftsForSubject(O.subject), s();
|
|
3953
3953
|
},
|
|
3954
|
-
onOverridesConflict:
|
|
3954
|
+
onOverridesConflict: Xe(O).onOverridesConflict
|
|
3955
3955
|
});
|
|
3956
3956
|
}
|
|
3957
3957
|
function Fe(O) {
|
|
3958
3958
|
return O.sections.some((s) => ce.shouldShowInheritToggle(O, s.builder) ? ce.inheritMode(O, s.builder) === "custom" : Object.keys(s.builder.toCondition(s.formValue)).length > 0);
|
|
3959
3959
|
}
|
|
3960
|
-
let
|
|
3961
|
-
function
|
|
3960
|
+
let Ne = !1;
|
|
3961
|
+
function Xe(O, s = {}) {
|
|
3962
3962
|
return {
|
|
3963
3963
|
...s,
|
|
3964
3964
|
onOverridesConflict: ({ override: o, keep: _ }) => {
|
|
3965
|
-
|
|
3965
|
+
Ne || (Ne = !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" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3978
3978
|
close: !1
|
|
3979
3979
|
}
|
|
3980
3980
|
}).onPrimary(() => {
|
|
3981
|
-
o(),
|
|
3981
|
+
o(), Ne = !1, u.close();
|
|
3982
3982
|
}).onSecondary(() => {
|
|
3983
|
-
_(),
|
|
3983
|
+
_(), Ne = !1, u.close();
|
|
3984
3984
|
}).onClose(() => {
|
|
3985
|
-
|
|
3985
|
+
Ne = !1;
|
|
3986
3986
|
}));
|
|
3987
3987
|
}
|
|
3988
3988
|
};
|
|
@@ -3996,7 +3996,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3996
3996
|
), (O, s) => {
|
|
3997
3997
|
const o = De("FmIcon"), _ = De("FmBottomSheet"), k = De("FmPopover");
|
|
3998
3998
|
return J(), ie("div", _a, [
|
|
3999
|
-
ae("div",
|
|
3999
|
+
ae("div", ha, [
|
|
4000
4000
|
ue(Ho, {
|
|
4001
4001
|
"model-value": B.value,
|
|
4002
4002
|
"excluded-subjects": c,
|
|
@@ -4005,15 +4005,15 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4005
4005
|
}, et({ _: 2 }, [
|
|
4006
4006
|
ye(w.value, (M) => ({
|
|
4007
4007
|
name: `checkbox-${M.id}-append`,
|
|
4008
|
-
fn:
|
|
4008
|
+
fn: me(() => [
|
|
4009
4009
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
4010
4010
|
])
|
|
4011
4011
|
})),
|
|
4012
4012
|
ye(Q.value, (M) => ({
|
|
4013
4013
|
name: `checkbox-${M}-icon`,
|
|
4014
|
-
fn:
|
|
4014
|
+
fn: me(({ option: P, isEffectiveSelected: v }) => [
|
|
4015
4015
|
v && q(M, P.label) ? (J(), ie(Re, { key: 0 }, [
|
|
4016
|
-
g.value ? (J(),
|
|
4016
|
+
g.value ? (J(), Ce(_, {
|
|
4017
4017
|
key: 0,
|
|
4018
4018
|
"model-value": fe.value === M,
|
|
4019
4019
|
header: H(a)("team.memberForm.permissions.conditionTitle", {
|
|
@@ -4026,7 +4026,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4026
4026
|
fe.value = y ? M : null, y || H(se).clearDraftsForSubject(M);
|
|
4027
4027
|
}
|
|
4028
4028
|
}, {
|
|
4029
|
-
"bottom-sheet-button":
|
|
4029
|
+
"bottom-sheet-button": me(() => [
|
|
4030
4030
|
ae("div", va, [
|
|
4031
4031
|
ue(o, {
|
|
4032
4032
|
name: "settings",
|
|
@@ -4038,7 +4038,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4038
4038
|
}, null, 8, ["class"])
|
|
4039
4039
|
])
|
|
4040
4040
|
]),
|
|
4041
|
-
default:
|
|
4041
|
+
default: me(() => [
|
|
4042
4042
|
ue(Fn, {
|
|
4043
4043
|
entry: q(M, P.label),
|
|
4044
4044
|
builders: q(M, P.label).sections.map((y) => y.builder),
|
|
@@ -4051,12 +4051,12 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4051
4051
|
disable: e.disable,
|
|
4052
4052
|
"full-width": !0,
|
|
4053
4053
|
onUpdateInheritMode: ({ builder: y, mode: $ }) => Je(q(M, P.label), y, $),
|
|
4054
|
-
onUpdateForm: ({ builder: y, form: $ }) =>
|
|
4055
|
-
onApply: (y) =>
|
|
4054
|
+
onUpdateForm: ({ builder: y, form: $ }) => he(q(M, P.label), y, $),
|
|
4055
|
+
onApply: (y) => Ve(q(M, P.label), () => fe.value = null)
|
|
4056
4056
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4057
4057
|
]),
|
|
4058
4058
|
_: 2
|
|
4059
|
-
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (J(),
|
|
4059
|
+
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (J(), Ce(k, {
|
|
4060
4060
|
key: 1,
|
|
4061
4061
|
disabled: e.disable,
|
|
4062
4062
|
"z-index": 100,
|
|
@@ -4066,8 +4066,8 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4066
4066
|
y || H(se).clearDraftsForSubject(M);
|
|
4067
4067
|
}
|
|
4068
4068
|
}, {
|
|
4069
|
-
"popover-button":
|
|
4070
|
-
ae("div",
|
|
4069
|
+
"popover-button": me(() => [
|
|
4070
|
+
ae("div", pa, [
|
|
4071
4071
|
ue(o, {
|
|
4072
4072
|
name: "settings",
|
|
4073
4073
|
size: "sm",
|
|
@@ -4078,7 +4078,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4078
4078
|
}, null, 8, ["class"])
|
|
4079
4079
|
])
|
|
4080
4080
|
]),
|
|
4081
|
-
default:
|
|
4081
|
+
default: me(({ hide: y }) => [
|
|
4082
4082
|
ue(Fn, {
|
|
4083
4083
|
entry: q(M, P.label),
|
|
4084
4084
|
builders: q(M, P.label).sections.map(($) => $.builder),
|
|
@@ -4097,13 +4097,13 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4097
4097
|
$,
|
|
4098
4098
|
le
|
|
4099
4099
|
),
|
|
4100
|
-
onUpdateForm: ({ builder: $, form: le }) =>
|
|
4101
|
-
onApply: ($) =>
|
|
4100
|
+
onUpdateForm: ({ builder: $, form: le }) => he(q(M, P.label), $, le),
|
|
4101
|
+
onApply: ($) => Ve(q(M, P.label), y)
|
|
4102
4102
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "title", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4103
4103
|
]),
|
|
4104
4104
|
_: 2
|
|
4105
4105
|
}, 1032, ["disabled", "exclude-el-from-click-outside", "onPopoverChanged"]))
|
|
4106
|
-
], 64)) : (J(),
|
|
4106
|
+
], 64)) : (J(), Ce(o, {
|
|
4107
4107
|
key: 1,
|
|
4108
4108
|
name: "settings",
|
|
4109
4109
|
size: "sm",
|
|
@@ -4116,13 +4116,13 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4116
4116
|
ae("div", ba, [
|
|
4117
4117
|
ue(wn, {
|
|
4118
4118
|
"model-value": b.value,
|
|
4119
|
-
options:
|
|
4119
|
+
options: h.value,
|
|
4120
4120
|
context: H(a)("team.labels.warehouse"),
|
|
4121
4121
|
"onUpdate:modelValue": R
|
|
4122
4122
|
}, et({ _: 2 }, [
|
|
4123
4123
|
ye(f.value, (M) => ({
|
|
4124
4124
|
name: `checkbox-${M.id}-append`,
|
|
4125
|
-
fn:
|
|
4125
|
+
fn: me(() => [
|
|
4126
4126
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
4127
4127
|
])
|
|
4128
4128
|
}))
|
|
@@ -4131,13 +4131,13 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4131
4131
|
ae("div", ga, [
|
|
4132
4132
|
ue(wn, {
|
|
4133
4133
|
"model-value": U.value,
|
|
4134
|
-
options:
|
|
4134
|
+
options: d.value,
|
|
4135
4135
|
context: H(a)("team.labels.restaurant"),
|
|
4136
|
-
"onUpdate:modelValue":
|
|
4136
|
+
"onUpdate:modelValue": V
|
|
4137
4137
|
}, et({ _: 2 }, [
|
|
4138
|
-
ye(
|
|
4138
|
+
ye(p.value, (M) => ({
|
|
4139
4139
|
name: `checkbox-${M.id}-append`,
|
|
4140
|
-
fn:
|
|
4140
|
+
fn: me(() => [
|
|
4141
4141
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
4142
4142
|
])
|
|
4143
4143
|
}))
|
|
@@ -4145,14 +4145,14 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4145
4145
|
]),
|
|
4146
4146
|
ae("div", Ia, [
|
|
4147
4147
|
ue(ra, {
|
|
4148
|
-
roles: H(
|
|
4148
|
+
roles: H(x),
|
|
4149
4149
|
"model-value": j.value,
|
|
4150
4150
|
"restaurant-ids": U.value,
|
|
4151
4151
|
"onUpdate:modelValue": W
|
|
4152
4152
|
}, et({ _: 2 }, [
|
|
4153
4153
|
ye(S.value, (M) => ({
|
|
4154
4154
|
name: `checkbox-${M.id}-append`,
|
|
4155
|
-
fn:
|
|
4155
|
+
fn: me(() => [
|
|
4156
4156
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
4157
4157
|
])
|
|
4158
4158
|
}))
|