@feedmepos/mf-hrm-portal 2.3.0-dev.2 → 2.3.0-dev.4
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-CJaNPHZC.js → ApprovalCodeList-Pbk3MAP_.js} +2 -2
- package/dist/{AuditLogList-CHA98ZqW.js → AuditLogList-B4gAQD41.js} +3 -3
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C7rvthEI.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DPbHx_I8.js} +2 -2
- package/dist/{EmployeeList-CVmMKt71.js → EmployeeList-0KpegAhT.js} +4 -4
- package/dist/{GrantUserList-MYjgt5-F.js → GrantUserList-BUkzqot_.js} +3 -3
- package/dist/{Main-hlcHtrsc.js → Main-CNk6IUSX.js} +2 -2
- package/dist/{Main-C0cnqQ3B.js → Main-DgmmoN5E.js} +5 -5
- package/dist/{Main-BgB9lD4K.js → Main-Dx_th1rt.js} +9 -9
- package/dist/{PermissionSetList-5f1WIaVa.js → PermissionSetList-CzZGiCsv.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CFoTAGIX.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-t_OkpC_R.js} +853 -853
- package/dist/{RoleList-DNR4miXr.js → RoleList-BE4zTMIf.js} +7 -7
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-B4VUyKW3.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-BPBc1yaM.js} +1 -1
- package/dist/{ScheduleGeneralPage-Cd5AlY4z.js → ScheduleGeneralPage-OvoLCcup.js} +4 -4
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-Cf0l2MRg.js → ScheduleModal.vue_vue_type_script_setup_true_lang-BOkU6VUe.js} +1 -1
- package/dist/{SchedulePage-C8m0-m3l.js → SchedulePage-CujQTlC7.js} +6 -6
- package/dist/{SchedulePositionPage-DyRckyUx.js → SchedulePositionPage-DJ7HABNZ.js} +3 -3
- package/dist/{TeamMemberList-mw5OveZG.js → TeamMemberList-DcMBkqKA.js} +6 -6
- package/dist/{TimesheetList-BzXarZbM.js → TimesheetList-EFkDNiyH.js} +5 -5
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Dq5i4poN.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-DK7LWwL3.js} +2 -2
- package/dist/{app-DSsdRLHg.js → app-Bljy7Tiw.js} +8 -8
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-B6xBXQtU.js → dayjs.min-6PYBuPpr.js} +1 -1
- package/dist/{employee-hMhzuqk1.js → employee-BabFWzgV.js} +3 -3
- package/dist/{iteration-B34AvpNC.js → iteration-DFJixFmV.js} +1 -1
- package/dist/{lodash-1Vyuy7Mu.js → lodash-CfHZzOs8.js} +1 -1
- package/dist/{role-DKOrgO6f.js → role-DzPtXGaE.js} +1 -1
- package/dist/{rule-CBzQ3GeV.js → rule-DM5JuuR6.js} +2 -2
- package/dist/{useReportPermissions-B2ev0j4w.js → useReportPermissions-vTUP3ZOL.js} +3 -3
- package/package.json +1 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { getCurrentInstance as Yt, inject as us, ref as st, shallowRef as ds, computed as
|
|
2
|
-
import { useI18n as He, useCoreStore as
|
|
1
|
+
import { getCurrentInstance as Yt, inject as us, ref as st, shallowRef as ds, computed as z, watch as wt, onMounted as Vn, onUnmounted as ms, defineComponent as Re, h as Wn, createVNode as ue, Text as fs, Fragment as ke, resolveComponent as we, createBlock as Ne, openBlock as $, withCtx as de, createElementVNode as ae, createElementBlock as ie, toDisplayString as Oe, unref as H, renderList as ye, toRef as en, normalizeStyle as nt, renderSlot as Se, createCommentVNode as Me, createTextVNode as _s, useSlots as hs, normalizeClass as qe, createSlots as et, mergeModels as tn, useModel as vs } from "vue";
|
|
2
|
+
import { useI18n as He, useCoreStore as ps } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialog as bs, useBreakpoints as gs } from "@feedmepos/ui-library";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { p as Gn, N as Zn, d as Is, P as
|
|
6
|
-
import { _ as Xt, a as
|
|
7
|
-
import { u as Os, v as Ss, b as Bn, S as
|
|
8
|
-
import { c as It } from "./iteration-
|
|
5
|
+
import { p as Gn, N as Zn, d as Is, P as Es, w as Lt, x as ys, y as Ns } from "./rule-DM5JuuR6.js";
|
|
6
|
+
import { _ as Xt, a as Ts, b as nn, u as Cs } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DPbHx_I8.js";
|
|
7
|
+
import { u as Os, v as Ss, b as Bn, S as Dt, A as tt, c as pe, k as sn, O as Ls } from "./app-Bljy7Tiw.js";
|
|
8
|
+
import { c as It } from "./iteration-DFJixFmV.js";
|
|
9
9
|
import { r as Rs } from "./string-VNuQNweN.js";
|
|
10
10
|
import { g as As, b as ks } from "./restaurant-D7PEQjPY.js";
|
|
11
|
-
import { u as Ms } from "./role-
|
|
11
|
+
import { u as Ms } from "./role-DzPtXGaE.js";
|
|
12
12
|
function Yn(e, t) {
|
|
13
13
|
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function ws(e) {
|
|
16
16
|
return Array.isArray(e) ? e[0] : e;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Ds(e, t) {
|
|
19
19
|
const n = t.find((l) => Yn(l.subject, e));
|
|
20
20
|
if (!(n != null && n.category) || n.isCategoryCover) return;
|
|
21
21
|
const s = t.find((l) => l.category === n.category && l.isCategoryCover);
|
|
22
22
|
if (s)
|
|
23
|
-
return
|
|
23
|
+
return ws(s.subject);
|
|
24
24
|
}
|
|
25
25
|
function rn(e, t) {
|
|
26
26
|
const n = t.find((s) => Yn(s.subject, e));
|
|
@@ -31,25 +31,25 @@ function rn(e, t) {
|
|
|
31
31
|
* (c) 2024 kazuya kawaguchi
|
|
32
32
|
* Released under the MIT License.
|
|
33
33
|
*/
|
|
34
|
-
const on = typeof window < "u",
|
|
34
|
+
const on = typeof window < "u", Je = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Fs = (e, t, n) => Ps({ l: e, k: t, s: n }), Ps = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ge = (e) => typeof e == "number" && isFinite(e), js = (e) => Ht(e) === "[object Date]", yt = (e) => Ht(e) === "[object RegExp]", Tt = (e) => ee(e) && Object.keys(e).length === 0, Ie = Object.assign, Us = Object.create, oe = (e = null) => Us(e);
|
|
35
35
|
let an;
|
|
36
36
|
const Xe = () => an || (an = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : oe());
|
|
37
37
|
function ln(e) {
|
|
38
38
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
39
39
|
}
|
|
40
|
-
const
|
|
40
|
+
const xs = Object.prototype.hasOwnProperty;
|
|
41
41
|
function Le(e, t) {
|
|
42
|
-
return
|
|
42
|
+
return xs.call(e, t);
|
|
43
43
|
}
|
|
44
|
-
const be = Array.isArray, me = (e) => typeof e == "function", Z = (e) => typeof e == "string", ve = (e) => typeof e == "boolean", te = (e) => e !== null && typeof e == "object", Vs = (e) => te(e) && me(e.then) && me(e.catch), Xn = Object.prototype.toString, Ht = (e) => Xn.call(e), ee = (e) => Ht(e) === "[object Object]",
|
|
45
|
-
function
|
|
44
|
+
const be = Array.isArray, me = (e) => typeof e == "function", Z = (e) => typeof e == "string", ve = (e) => typeof e == "boolean", te = (e) => e !== null && typeof e == "object", Vs = (e) => te(e) && me(e.then) && me(e.catch), Xn = Object.prototype.toString, Ht = (e) => Xn.call(e), ee = (e) => Ht(e) === "[object Object]", Ws = (e) => e == null ? "" : be(e) || ee(e) && e.toString === Xn ? JSON.stringify(e, null, 2) : String(e);
|
|
45
|
+
function Jt(e, t = "") {
|
|
46
46
|
return e.reduce((n, s, l) => l === 0 ? n + s : n + t + s, "");
|
|
47
47
|
}
|
|
48
48
|
function Gs(e, t) {
|
|
49
49
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
50
50
|
}
|
|
51
51
|
const ft = (e) => !te(e) || be(e);
|
|
52
|
-
function
|
|
52
|
+
function Et(e, t) {
|
|
53
53
|
if (ft(e) || ft(t))
|
|
54
54
|
throw new Error("Invalid value");
|
|
55
55
|
const n = [{ src: e, des: t }];
|
|
@@ -84,21 +84,21 @@ const se = {
|
|
|
84
84
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
85
85
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
86
86
|
}, Bs = 17;
|
|
87
|
-
function
|
|
87
|
+
function Ct(e, t, n = {}) {
|
|
88
88
|
const { domain: s, messages: l, args: a } = n, d = e, u = new SyntaxError(String(d));
|
|
89
89
|
return u.code = e, t && (u.location = t), u.domain = s, u;
|
|
90
90
|
}
|
|
91
91
|
function Ys(e) {
|
|
92
92
|
throw e;
|
|
93
93
|
}
|
|
94
|
-
const Pe = " ", Xs = "\r",
|
|
95
|
-
`, Hs = "\u2028",
|
|
96
|
-
function
|
|
94
|
+
const Pe = " ", Xs = "\r", Ee = `
|
|
95
|
+
`, Hs = "\u2028", Js = "\u2029";
|
|
96
|
+
function $s(e) {
|
|
97
97
|
const t = e;
|
|
98
98
|
let n = 0, s = 1, l = 1, a = 0;
|
|
99
|
-
const d = (
|
|
100
|
-
function
|
|
101
|
-
return a = 0,
|
|
99
|
+
const d = (h) => t[h] === Xs && t[h + 1] === Ee, u = (h) => t[h] === Ee, i = (h) => t[h] === Js, g = (h) => t[h] === Hs, E = (h) => d(h) || u(h) || i(h) || g(h), C = () => n, N = () => s, F = () => l, w = () => a, R = (h) => d(h) || i(h) || g(h) ? Ee : t[h], D = () => R(n), f = () => R(n + a);
|
|
100
|
+
function p() {
|
|
101
|
+
return a = 0, E(n) && (s++, l = 0), d(n) && n++, n++, l++, t[n];
|
|
102
102
|
}
|
|
103
103
|
function S() {
|
|
104
104
|
return d(n + a) && a++, a++, t[n + a];
|
|
@@ -106,33 +106,33 @@ function Js(e) {
|
|
|
106
106
|
function c() {
|
|
107
107
|
n = 0, s = 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
|
-
index:
|
|
119
|
+
index: C,
|
|
120
120
|
line: N,
|
|
121
121
|
column: F,
|
|
122
|
-
peekOffset:
|
|
122
|
+
peekOffset: w,
|
|
123
123
|
charAt: R,
|
|
124
|
-
currentChar:
|
|
124
|
+
currentChar: D,
|
|
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 Ve = void 0,
|
|
133
|
+
const Ve = void 0, Ks = ".", cn = "'", zs = "tokenizer";
|
|
134
134
|
function Qs(e, t = {}) {
|
|
135
|
-
const n = t.location !== !1, s =
|
|
135
|
+
const n = t.location !== !1, s = $s(e), l = () => s.index(), a = () => Zs(s.line(), s.column(), s.index()), d = a(), u = l(), i = {
|
|
136
136
|
currentType: 13,
|
|
137
137
|
offset: u,
|
|
138
138
|
startLoc: d,
|
|
@@ -144,15 +144,15 @@ function Qs(e, t = {}) {
|
|
|
144
144
|
braceNest: 0,
|
|
145
145
|
inLinked: !1,
|
|
146
146
|
text: ""
|
|
147
|
-
}, g = () => i, { onError:
|
|
148
|
-
function
|
|
147
|
+
}, g = () => i, { onError: E } = t;
|
|
148
|
+
function C(r, o, _, ...A) {
|
|
149
149
|
const M = g();
|
|
150
|
-
if (o.column += _, o.offset += _,
|
|
151
|
-
const P = n ? Ft(M.startLoc, o) : null, v =
|
|
152
|
-
domain:
|
|
150
|
+
if (o.column += _, o.offset += _, E) {
|
|
151
|
+
const P = n ? Ft(M.startLoc, o) : null, v = Ct(r, P, {
|
|
152
|
+
domain: zs,
|
|
153
153
|
args: A
|
|
154
154
|
});
|
|
155
|
-
|
|
155
|
+
E(v);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
function N(r, o, _) {
|
|
@@ -165,16 +165,16 @@ function Qs(e, t = {}) {
|
|
|
165
165
|
13
|
|
166
166
|
/* TokenTypes.EOF */
|
|
167
167
|
);
|
|
168
|
-
function
|
|
169
|
-
return r.currentChar() === o ? (r.next(), o) : (
|
|
168
|
+
function w(r, o) {
|
|
169
|
+
return r.currentChar() === o ? (r.next(), o) : (C(se.EXPECTED_TOKEN, a(), 0, o), "");
|
|
170
170
|
}
|
|
171
171
|
function R(r) {
|
|
172
172
|
let o = "";
|
|
173
|
-
for (; r.currentPeek() === Pe || r.currentPeek() ===
|
|
173
|
+
for (; r.currentPeek() === Pe || r.currentPeek() === Ee; )
|
|
174
174
|
o += r.currentPeek(), r.peek();
|
|
175
175
|
return o;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function D(r) {
|
|
178
178
|
const o = R(r);
|
|
179
179
|
return r.skipToPeek(), o;
|
|
180
180
|
}
|
|
@@ -186,7 +186,7 @@ function Qs(e, t = {}) {
|
|
|
186
186
|
o >= 65 && o <= 90 || // A-Z
|
|
187
187
|
o === 95;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function p(r) {
|
|
190
190
|
if (r === Ve)
|
|
191
191
|
return !1;
|
|
192
192
|
const o = r.charCodeAt(0);
|
|
@@ -205,7 +205,7 @@ function Qs(e, t = {}) {
|
|
|
205
205
|
if (_ !== 2)
|
|
206
206
|
return !1;
|
|
207
207
|
R(r);
|
|
208
|
-
const A = r.currentPeek() === "-" ? r.peek() : r.currentPeek(), M =
|
|
208
|
+
const A = r.currentPeek() === "-" ? r.peek() : r.currentPeek(), M = p(A);
|
|
209
209
|
return r.resetPeek(), M;
|
|
210
210
|
}
|
|
211
211
|
function b(r, o) {
|
|
@@ -224,7 +224,7 @@ function Qs(e, t = {}) {
|
|
|
224
224
|
const A = r.currentPeek() === ".";
|
|
225
225
|
return r.resetPeek(), A;
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function h(r, o) {
|
|
228
228
|
const { currentType: _ } = o;
|
|
229
229
|
if (_ !== 8)
|
|
230
230
|
return !1;
|
|
@@ -246,7 +246,7 @@ function Qs(e, t = {}) {
|
|
|
246
246
|
return !1;
|
|
247
247
|
const A = () => {
|
|
248
248
|
const P = r.currentPeek();
|
|
249
|
-
return P === "{" ? f(r.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P ===
|
|
249
|
+
return P === "{" ? f(r.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P === Ee ? (r.peek(), A()) : V(r, !1);
|
|
250
250
|
}, M = A();
|
|
251
251
|
return r.resetPeek(), M;
|
|
252
252
|
}
|
|
@@ -258,7 +258,7 @@ function Qs(e, t = {}) {
|
|
|
258
258
|
function V(r, o = !0) {
|
|
259
259
|
const _ = (M = !1, P = "") => {
|
|
260
260
|
const v = r.currentPeek();
|
|
261
|
-
return v === "{" || v === "@" || !v ? M : v === "|" ? !(P === Pe || P ===
|
|
261
|
+
return v === "{" || v === "@" || !v ? M : v === "|" ? !(P === Pe || P === Ee) : v === Pe ? (r.peek(), _(!0, Pe)) : v === Ee ? (r.peek(), _(!0, Ee)) : !0;
|
|
262
262
|
}, A = _();
|
|
263
263
|
return o && r.resetPeek(), A;
|
|
264
264
|
}
|
|
@@ -266,7 +266,7 @@ function Qs(e, t = {}) {
|
|
|
266
266
|
const _ = r.currentChar();
|
|
267
267
|
return _ === Ve ? Ve : o(_) ? (r.next(), _) : null;
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function T(r) {
|
|
270
270
|
const o = r.charCodeAt(0);
|
|
271
271
|
return o >= 97 && o <= 122 || // a-z
|
|
272
272
|
o >= 65 && o <= 90 || // A-Z
|
|
@@ -275,9 +275,9 @@ function Qs(e, t = {}) {
|
|
|
275
275
|
o === 36;
|
|
276
276
|
}
|
|
277
277
|
function U(r) {
|
|
278
|
-
return m(r,
|
|
278
|
+
return m(r, T);
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function x(r) {
|
|
281
281
|
const o = r.charCodeAt(0);
|
|
282
282
|
return o >= 97 && o <= 122 || // a-z
|
|
283
283
|
o >= 65 && o <= 90 || // A-Z
|
|
@@ -287,13 +287,13 @@ function Qs(e, t = {}) {
|
|
|
287
287
|
o === 45;
|
|
288
288
|
}
|
|
289
289
|
function j(r) {
|
|
290
|
-
return m(r,
|
|
290
|
+
return m(r, x);
|
|
291
291
|
}
|
|
292
292
|
function G(r) {
|
|
293
293
|
const o = r.charCodeAt(0);
|
|
294
294
|
return o >= 48 && o <= 57;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function W(r) {
|
|
297
297
|
return m(r, G);
|
|
298
298
|
}
|
|
299
299
|
function B(r) {
|
|
@@ -307,7 +307,7 @@ function Qs(e, t = {}) {
|
|
|
307
307
|
}
|
|
308
308
|
function ne(r) {
|
|
309
309
|
let o = "", _ = "";
|
|
310
|
-
for (; o =
|
|
310
|
+
for (; o = W(r); )
|
|
311
311
|
_ += o;
|
|
312
312
|
return _;
|
|
313
313
|
}
|
|
@@ -317,7 +317,7 @@ function Qs(e, t = {}) {
|
|
|
317
317
|
const _ = r.currentChar();
|
|
318
318
|
if (_ === "{" || _ === "}" || _ === "@" || _ === "|" || !_)
|
|
319
319
|
break;
|
|
320
|
-
if (_ === Pe || _ ===
|
|
320
|
+
if (_ === Pe || _ === Ee)
|
|
321
321
|
if (V(r))
|
|
322
322
|
o += _, r.next();
|
|
323
323
|
else {
|
|
@@ -331,27 +331,27 @@ function Qs(e, t = {}) {
|
|
|
331
331
|
return o;
|
|
332
332
|
}
|
|
333
333
|
function _e(r) {
|
|
334
|
-
|
|
334
|
+
D(r);
|
|
335
335
|
let o = "", _ = "";
|
|
336
336
|
for (; o = j(r); )
|
|
337
337
|
_ += o;
|
|
338
|
-
return r.currentChar() === Ve &&
|
|
338
|
+
return r.currentChar() === Ve && C(se.UNTERMINATED_CLOSING_BRACE, a(), 0), _;
|
|
339
339
|
}
|
|
340
340
|
function ce(r) {
|
|
341
|
-
|
|
341
|
+
D(r);
|
|
342
342
|
let o = "";
|
|
343
|
-
return r.currentChar() === "-" ? (r.next(), o += `-${ne(r)}`) : o += ne(r), r.currentChar() === Ve &&
|
|
343
|
+
return r.currentChar() === "-" ? (r.next(), o += `-${ne(r)}`) : o += ne(r), r.currentChar() === Ve && C(se.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
344
344
|
}
|
|
345
345
|
function re(r) {
|
|
346
|
-
return r !== cn && r !==
|
|
346
|
+
return r !== cn && r !== Ee;
|
|
347
347
|
}
|
|
348
348
|
function fe(r) {
|
|
349
|
-
|
|
349
|
+
D(r), w(r, "'");
|
|
350
350
|
let o = "", _ = "";
|
|
351
351
|
for (; o = m(r, re); )
|
|
352
352
|
o === "\\" ? _ += q(r) : _ += o;
|
|
353
353
|
const A = r.currentChar();
|
|
354
|
-
return A ===
|
|
354
|
+
return A === Ee || A === Ve ? (C(se.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), A === Ee && (r.next(), w(r, "'")), _) : (w(r, "'"), _);
|
|
355
355
|
}
|
|
356
356
|
function q(r) {
|
|
357
357
|
const o = r.currentChar();
|
|
@@ -360,101 +360,101 @@ function Qs(e, t = {}) {
|
|
|
360
360
|
case "'":
|
|
361
361
|
return r.next(), `\\${o}`;
|
|
362
362
|
case "u":
|
|
363
|
-
return
|
|
363
|
+
return De(r, o, 4);
|
|
364
364
|
case "U":
|
|
365
|
-
return
|
|
365
|
+
return De(r, o, 6);
|
|
366
366
|
default:
|
|
367
|
-
return
|
|
367
|
+
return C(se.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
|
|
370
|
+
function De(r, o, _) {
|
|
371
|
+
w(r, o);
|
|
372
372
|
let A = "";
|
|
373
373
|
for (let M = 0; M < _; M++) {
|
|
374
374
|
const P = Y(r);
|
|
375
375
|
if (!P) {
|
|
376
|
-
|
|
376
|
+
C(se.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${A}${r.currentChar()}`);
|
|
377
377
|
break;
|
|
378
378
|
}
|
|
379
379
|
A += P;
|
|
380
380
|
}
|
|
381
381
|
return `\\${o}${A}`;
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
return r !== "{" && r !== "}" && r !== Pe && r !==
|
|
383
|
+
function K(r) {
|
|
384
|
+
return r !== "{" && r !== "}" && r !== Pe && r !== Ee;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
|
|
386
|
+
function he(r) {
|
|
387
|
+
D(r);
|
|
388
388
|
let o = "", _ = "";
|
|
389
|
-
for (; o = m(r,
|
|
389
|
+
for (; o = m(r, K); )
|
|
390
390
|
_ += o;
|
|
391
391
|
return _;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function $e(r) {
|
|
394
394
|
let o = "", _ = "";
|
|
395
395
|
for (; o = U(r); )
|
|
396
396
|
_ += o;
|
|
397
397
|
return _;
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function Ke(r) {
|
|
400
400
|
const o = (_) => {
|
|
401
401
|
const A = r.currentChar();
|
|
402
402
|
return A === "{" || A === "@" || A === "|" || A === "(" || A === ")" || !A || A === Pe ? _ : (_ += A, r.next(), o(_));
|
|
403
403
|
};
|
|
404
404
|
return o("");
|
|
405
405
|
}
|
|
406
|
-
function
|
|
407
|
-
|
|
408
|
-
const o =
|
|
406
|
+
function xe(r) {
|
|
407
|
+
D(r);
|
|
408
|
+
const o = w(
|
|
409
409
|
r,
|
|
410
410
|
"|"
|
|
411
411
|
/* TokenChars.Pipe */
|
|
412
412
|
);
|
|
413
|
-
return
|
|
413
|
+
return D(r), o;
|
|
414
414
|
}
|
|
415
415
|
function Fe(r, o) {
|
|
416
416
|
let _ = null;
|
|
417
417
|
switch (r.currentChar()) {
|
|
418
418
|
case "{":
|
|
419
|
-
return o.braceNest >= 1 &&
|
|
419
|
+
return o.braceNest >= 1 && C(se.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), r.next(), _ = N(
|
|
420
420
|
o,
|
|
421
421
|
2,
|
|
422
422
|
"{"
|
|
423
423
|
/* TokenChars.BraceLeft */
|
|
424
|
-
),
|
|
424
|
+
), D(r), o.braceNest++, _;
|
|
425
425
|
case "}":
|
|
426
|
-
return o.braceNest > 0 && o.currentType === 2 &&
|
|
426
|
+
return o.braceNest > 0 && o.currentType === 2 && C(se.EMPTY_PLACEHOLDER, a(), 0), r.next(), _ = N(
|
|
427
427
|
o,
|
|
428
428
|
3,
|
|
429
429
|
"}"
|
|
430
430
|
/* TokenChars.BraceRight */
|
|
431
|
-
), o.braceNest--, o.braceNest > 0 &&
|
|
431
|
+
), o.braceNest--, o.braceNest > 0 && D(r), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), _;
|
|
432
432
|
case "@":
|
|
433
|
-
return o.braceNest > 0 &&
|
|
433
|
+
return o.braceNest > 0 && C(se.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = Te(r, o) || F(o), o.braceNest = 0, _;
|
|
434
434
|
default: {
|
|
435
435
|
let M = !0, P = !0, v = !0;
|
|
436
436
|
if (X(r))
|
|
437
|
-
return o.braceNest > 0 &&
|
|
437
|
+
return o.braceNest > 0 && C(se.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = N(o, 1, xe(r)), o.braceNest = 0, o.inLinked = !1, _;
|
|
438
438
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
439
|
-
return
|
|
439
|
+
return C(se.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, Be(r, o);
|
|
440
440
|
if (M = S(r, o))
|
|
441
|
-
return _ = N(o, 4, _e(r)),
|
|
441
|
+
return _ = N(o, 4, _e(r)), D(r), _;
|
|
442
442
|
if (P = c(r, o))
|
|
443
|
-
return _ = N(o, 5, ce(r)),
|
|
443
|
+
return _ = N(o, 5, ce(r)), D(r), _;
|
|
444
444
|
if (v = b(r, o))
|
|
445
|
-
return _ = N(o, 6, fe(r)),
|
|
445
|
+
return _ = N(o, 6, fe(r)), D(r), _;
|
|
446
446
|
if (!M && !P && !v)
|
|
447
|
-
return _ = N(o, 12,
|
|
447
|
+
return _ = N(o, 12, he(r)), C(se.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, _.value), D(r), _;
|
|
448
448
|
break;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
return _;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Te(r, o) {
|
|
454
454
|
const { currentType: _ } = o;
|
|
455
455
|
let A = null;
|
|
456
456
|
const M = r.currentChar();
|
|
457
|
-
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M ===
|
|
457
|
+
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M === Ee || M === Pe) && C(se.INVALID_LINKED_FORMAT, a(), 0), M) {
|
|
458
458
|
case "@":
|
|
459
459
|
return r.next(), A = N(
|
|
460
460
|
o,
|
|
@@ -463,21 +463,21 @@ function Qs(e, t = {}) {
|
|
|
463
463
|
/* TokenChars.LinkedAlias */
|
|
464
464
|
), o.inLinked = !0, A;
|
|
465
465
|
case ".":
|
|
466
|
-
return
|
|
466
|
+
return D(r), r.next(), N(
|
|
467
467
|
o,
|
|
468
468
|
8,
|
|
469
469
|
"."
|
|
470
470
|
/* TokenChars.LinkedDot */
|
|
471
471
|
);
|
|
472
472
|
case ":":
|
|
473
|
-
return
|
|
473
|
+
return D(r), r.next(), N(
|
|
474
474
|
o,
|
|
475
475
|
9,
|
|
476
476
|
":"
|
|
477
477
|
/* TokenChars.LinkedDelimiter */
|
|
478
478
|
);
|
|
479
479
|
default:
|
|
480
|
-
return X(r) ? (A = N(o, 1,
|
|
480
|
+
return X(r) ? (A = N(o, 1, xe(r)), o.braceNest = 0, o.inLinked = !1, A) : I(r, o) || k(r, o) ? (D(r), Te(r, o)) : h(r, o) ? (D(r), N(o, 11, $e(r))) : L(r, o) ? (D(r), M === "{" ? Fe(r, o) || A : N(o, 10, Ke(r))) : (_ === 7 && C(se.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, Be(r, o));
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
483
|
function Be(r, o) {
|
|
@@ -488,22 +488,22 @@ function Qs(e, t = {}) {
|
|
|
488
488
|
if (o.braceNest > 0)
|
|
489
489
|
return Fe(r, o) || F(o);
|
|
490
490
|
if (o.inLinked)
|
|
491
|
-
return
|
|
491
|
+
return Te(r, o) || F(o);
|
|
492
492
|
switch (r.currentChar()) {
|
|
493
493
|
case "{":
|
|
494
494
|
return Fe(r, o) || F(o);
|
|
495
495
|
case "}":
|
|
496
|
-
return
|
|
496
|
+
return C(se.UNBALANCED_CLOSING_BRACE, a(), 0), r.next(), N(
|
|
497
497
|
o,
|
|
498
498
|
3,
|
|
499
499
|
"}"
|
|
500
500
|
/* TokenChars.BraceRight */
|
|
501
501
|
);
|
|
502
502
|
case "@":
|
|
503
|
-
return
|
|
503
|
+
return Te(r, o) || F(o);
|
|
504
504
|
default: {
|
|
505
505
|
if (X(r))
|
|
506
|
-
return _ = N(o, 1,
|
|
506
|
+
return _ = N(o, 1, xe(r)), o.braceNest = 0, o.inLinked = !1, _;
|
|
507
507
|
if (V(r))
|
|
508
508
|
return N(o, 0, Q(r));
|
|
509
509
|
break;
|
|
@@ -541,74 +541,74 @@ function tr(e, t, n) {
|
|
|
541
541
|
}
|
|
542
542
|
function nr(e = {}) {
|
|
543
543
|
const t = e.location !== !1, { onError: n } = e;
|
|
544
|
-
function s(f,
|
|
544
|
+
function s(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, k = Ct(p, h, {
|
|
548
548
|
domain: qs,
|
|
549
549
|
args: b
|
|
550
550
|
});
|
|
551
551
|
n(k);
|
|
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 d(f,
|
|
561
|
+
function d(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(er, tr), f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
576
576
|
}
|
|
577
|
-
function
|
|
578
|
-
const
|
|
579
|
-
return
|
|
580
|
-
nextConsumeToken:
|
|
577
|
+
function E(f) {
|
|
578
|
+
const p = f.nextToken(), S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(8, c, b);
|
|
579
|
+
return p.type !== 11 ? (s(f, se.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 && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, Ae(p)), I.value = p.value || "", a(I, f.currentOffset(), f.currentPosition()), {
|
|
583
583
|
node: I
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function C(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
590
|
function N(f) {
|
|
591
|
-
const
|
|
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
|
-
const b =
|
|
594
|
+
const b = E(f);
|
|
595
595
|
S.modifier = b.node, c = b.nextConsumeToken || f.nextToken();
|
|
596
596
|
}
|
|
597
|
-
switch (c.type !== 9 && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
597
|
+
switch (c.type !== 9 && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, Ae(c)), c = f.nextToken(), c.type === 2 && (c = f.nextToken()), c.type) {
|
|
598
598
|
case 10:
|
|
599
|
-
c.value == null && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
599
|
+
c.value == null && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, Ae(c)), S.key = C(f, c.value || "");
|
|
600
600
|
break;
|
|
601
601
|
case 4:
|
|
602
|
-
c.value == null && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
602
|
+
c.value == null && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, Ae(c)), S.key = i(f, c.value || "");
|
|
603
603
|
break;
|
|
604
604
|
case 5:
|
|
605
|
-
c.value == null && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
605
|
+
c.value == null && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, Ae(c)), S.key = u(f, c.value || "");
|
|
606
606
|
break;
|
|
607
607
|
case 6:
|
|
608
|
-
c.value == null && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
608
|
+
c.value == null && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, Ae(c)), S.key = g(f, c.value || "");
|
|
609
609
|
break;
|
|
610
610
|
default: {
|
|
611
|
-
s(f, se.UNEXPECTED_EMPTY_LINKED_KEY,
|
|
611
|
+
s(f, se.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,23 +621,23 @@ function nr(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 L = I || f.nextToken();
|
|
629
629
|
switch (I = null, L.type) {
|
|
630
630
|
case 0:
|
|
631
|
-
L.value == null && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
631
|
+
L.value == null && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, Ae(L)), b.items.push(d(f, L.value || ""));
|
|
632
632
|
break;
|
|
633
633
|
case 5:
|
|
634
|
-
L.value == null && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
634
|
+
L.value == null && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, Ae(L)), b.items.push(u(f, L.value || ""));
|
|
635
635
|
break;
|
|
636
636
|
case 4:
|
|
637
|
-
L.value == null && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
637
|
+
L.value == null && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, Ae(L)), b.items.push(i(f, L.value || ""));
|
|
638
638
|
break;
|
|
639
639
|
case 6:
|
|
640
|
-
L.value == null && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
640
|
+
L.value == null && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, Ae(L)), b.items.push(g(f, L.value || ""));
|
|
641
641
|
break;
|
|
642
642
|
case 7: {
|
|
643
643
|
const X = N(f);
|
|
@@ -645,30 +645,30 @@ function nr(e = {}) {
|
|
|
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(), k = p.currentType === 1 ? p.lastEndLoc : f.currentPosition();
|
|
650
|
+
return a(b, h, k), b;
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function w(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 k = F(f);
|
|
659
|
-
I || (I = k.items.length === 0),
|
|
659
|
+
I || (I = k.items.length === 0), h.cases.push(k);
|
|
660
660
|
} while (b.currentType !== 13);
|
|
661
|
-
return I && s(f, se.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), a(
|
|
661
|
+
return I && s(f, se.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), a(h, f.currentOffset(), f.currentPosition()), h;
|
|
662
662
|
}
|
|
663
663
|
function R(f) {
|
|
664
|
-
const
|
|
665
|
-
return
|
|
664
|
+
const p = f.context(), { offset: S, startLoc: c } = p, b = F(f);
|
|
665
|
+
return p.currentType === 13 ? b : w(f, S, c, b);
|
|
666
666
|
}
|
|
667
|
-
function
|
|
668
|
-
const
|
|
669
|
-
return t && c.loc && (c.loc.source = f), c.body = R(
|
|
667
|
+
function D(f) {
|
|
668
|
+
const p = Qs(f, Ie({}, e)), S = p.context(), c = l(0, S.offset, S.startLoc);
|
|
669
|
+
return t && c.loc && (c.loc.source = f), c.body = R(p), e.onCacheKey && (c.cacheKey = e.onCacheKey(f)), S.currentType !== 13 && s(p, se.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, f[S.offset] || ""), a(c, p.currentOffset(), p.currentPosition()), c;
|
|
670
670
|
}
|
|
671
|
-
return { parse:
|
|
671
|
+
return { parse: D };
|
|
672
672
|
}
|
|
673
673
|
function Ae(e) {
|
|
674
674
|
if (e.type === 13)
|
|
@@ -685,9 +685,9 @@ function sr(e, t = {}) {
|
|
|
685
685
|
}
|
|
686
686
|
function un(e, t) {
|
|
687
687
|
for (let n = 0; n < e.length; n++)
|
|
688
|
-
|
|
688
|
+
$t(e[n], t);
|
|
689
689
|
}
|
|
690
|
-
function
|
|
690
|
+
function $t(e, t) {
|
|
691
691
|
switch (e.type) {
|
|
692
692
|
case 1:
|
|
693
693
|
un(e.cases, t), t.helper(
|
|
@@ -699,7 +699,7 @@ function Jt(e, t) {
|
|
|
699
699
|
un(e.items, t);
|
|
700
700
|
break;
|
|
701
701
|
case 6: {
|
|
702
|
-
|
|
702
|
+
$t(e.key, t), t.helper(
|
|
703
703
|
"linked"
|
|
704
704
|
/* HelperNameMap.LINKED */
|
|
705
705
|
), t.helper(
|
|
@@ -733,7 +733,7 @@ function rr(e, t = {}) {
|
|
|
733
733
|
n.helper(
|
|
734
734
|
"normalize"
|
|
735
735
|
/* HelperNameMap.NORMALIZE */
|
|
736
|
-
), e.body &&
|
|
736
|
+
), e.body && $t(e.body, n);
|
|
737
737
|
const s = n.context();
|
|
738
738
|
e.helpers = Array.from(s.helpers);
|
|
739
739
|
}
|
|
@@ -754,7 +754,7 @@ function dn(e) {
|
|
|
754
754
|
t.push(s.value);
|
|
755
755
|
}
|
|
756
756
|
if (t.length === e.items.length) {
|
|
757
|
-
e.static =
|
|
757
|
+
e.static = Jt(t);
|
|
758
758
|
for (let n = 0; n < e.items.length; n++) {
|
|
759
759
|
const s = e.items[n];
|
|
760
760
|
(s.type === 3 || s.type === 9) && delete s.value;
|
|
@@ -823,20 +823,20 @@ function ar(e, t) {
|
|
|
823
823
|
};
|
|
824
824
|
a && e.loc && (d.source = e.loc.source);
|
|
825
825
|
const u = () => d;
|
|
826
|
-
function i(R,
|
|
826
|
+
function i(R, D) {
|
|
827
827
|
d.code += R;
|
|
828
828
|
}
|
|
829
|
-
function g(R,
|
|
830
|
-
const f =
|
|
829
|
+
function g(R, D = !0) {
|
|
830
|
+
const f = D ? s : "";
|
|
831
831
|
i(l ? f + " ".repeat(R) : f);
|
|
832
832
|
}
|
|
833
|
-
function
|
|
834
|
-
const
|
|
835
|
-
R && g(
|
|
833
|
+
function E(R = !0) {
|
|
834
|
+
const D = ++d.indentLevel;
|
|
835
|
+
R && g(D);
|
|
836
836
|
}
|
|
837
|
-
function
|
|
838
|
-
const
|
|
839
|
-
R && g(
|
|
837
|
+
function C(R = !0) {
|
|
838
|
+
const D = --d.indentLevel;
|
|
839
|
+
R && g(D);
|
|
840
840
|
}
|
|
841
841
|
function N() {
|
|
842
842
|
g(d.indentLevel);
|
|
@@ -844,8 +844,8 @@ function ar(e, t) {
|
|
|
844
844
|
return {
|
|
845
845
|
context: u,
|
|
846
846
|
push: i,
|
|
847
|
-
indent:
|
|
848
|
-
deindent:
|
|
847
|
+
indent: E,
|
|
848
|
+
deindent: C,
|
|
849
849
|
newline: N,
|
|
850
850
|
helper: (R) => `_${R}`,
|
|
851
851
|
needIndent: () => d.needIndent
|
|
@@ -941,7 +941,7 @@ const dr = (e, t = {}) => {
|
|
|
941
941
|
breakLineCode: l,
|
|
942
942
|
needIndent: a
|
|
943
943
|
});
|
|
944
|
-
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), d.length > 0 && (u.push(`const { ${
|
|
944
|
+
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), d.length > 0 && (u.push(`const { ${Jt(d.map((E) => `${E}: _${E}`), ", ")} } = ctx`), u.newline()), u.push("return "), rt(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,
|
|
@@ -959,16 +959,16 @@ function _r() {
|
|
|
959
959
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Xe().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Xe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
960
960
|
}
|
|
961
961
|
function Rt(e) {
|
|
962
|
-
return (n) =>
|
|
962
|
+
return (n) => hr(n, e);
|
|
963
963
|
}
|
|
964
|
-
function
|
|
965
|
-
const n =
|
|
964
|
+
function hr(e, t) {
|
|
965
|
+
const n = pr(t);
|
|
966
966
|
if (n == null)
|
|
967
967
|
throw it(
|
|
968
968
|
0
|
|
969
969
|
/* NodeTypes.Resource */
|
|
970
970
|
);
|
|
971
|
-
if (
|
|
971
|
+
if (Kt(n) === 1) {
|
|
972
972
|
const a = gr(n);
|
|
973
973
|
return e.plural(a.reduce((d, u) => [
|
|
974
974
|
...d,
|
|
@@ -978,7 +978,7 @@ function pr(e, t) {
|
|
|
978
978
|
return mn(e, n);
|
|
979
979
|
}
|
|
980
980
|
const vr = ["b", "body"];
|
|
981
|
-
function
|
|
981
|
+
function pr(e) {
|
|
982
982
|
return Ge(e, vr);
|
|
983
983
|
}
|
|
984
984
|
const br = ["c", "cases"];
|
|
@@ -986,7 +986,7 @@ function gr(e) {
|
|
|
986
986
|
return Ge(e, br, []);
|
|
987
987
|
}
|
|
988
988
|
function mn(e, t) {
|
|
989
|
-
const n =
|
|
989
|
+
const n = Er(t);
|
|
990
990
|
if (n != null)
|
|
991
991
|
return e.type === "text" ? n : e.normalize([n]);
|
|
992
992
|
{
|
|
@@ -995,15 +995,15 @@ function mn(e, t) {
|
|
|
995
995
|
}
|
|
996
996
|
}
|
|
997
997
|
const Ir = ["s", "static"];
|
|
998
|
-
function
|
|
998
|
+
function Er(e) {
|
|
999
999
|
return Ge(e, Ir);
|
|
1000
1000
|
}
|
|
1001
|
-
const
|
|
1001
|
+
const yr = ["i", "items"];
|
|
1002
1002
|
function Nr(e) {
|
|
1003
|
-
return Ge(e,
|
|
1003
|
+
return Ge(e, yr, []);
|
|
1004
1004
|
}
|
|
1005
1005
|
function Pt(e, t) {
|
|
1006
|
-
const n =
|
|
1006
|
+
const n = Kt(t);
|
|
1007
1007
|
switch (n) {
|
|
1008
1008
|
case 3:
|
|
1009
1009
|
return _t(t, n);
|
|
@@ -1037,13 +1037,13 @@ function Pt(e, t) {
|
|
|
1037
1037
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
|
-
const
|
|
1041
|
-
function
|
|
1042
|
-
return Ge(e,
|
|
1040
|
+
const Tr = ["t", "type"];
|
|
1041
|
+
function Kt(e) {
|
|
1042
|
+
return Ge(e, Tr);
|
|
1043
1043
|
}
|
|
1044
|
-
const
|
|
1044
|
+
const Cr = ["v", "value"];
|
|
1045
1045
|
function _t(e, t) {
|
|
1046
|
-
const n = Ge(e,
|
|
1046
|
+
const n = Ge(e, Cr);
|
|
1047
1047
|
if (n)
|
|
1048
1048
|
return n;
|
|
1049
1049
|
throw it(t);
|
|
@@ -1074,9 +1074,9 @@ function it(e) {
|
|
|
1074
1074
|
return new Error(`unhandled node type: ${e}`);
|
|
1075
1075
|
}
|
|
1076
1076
|
const Ar = (e) => e;
|
|
1077
|
-
let
|
|
1077
|
+
let ht = oe();
|
|
1078
1078
|
function ot(e) {
|
|
1079
|
-
return te(e) &&
|
|
1079
|
+
return te(e) && Kt(e) === 0 && (Le(e, "b") || Le(e, "body"));
|
|
1080
1080
|
}
|
|
1081
1081
|
function kr(e, t = {}) {
|
|
1082
1082
|
let n = !1;
|
|
@@ -1089,7 +1089,7 @@ function kr(e, t = {}) {
|
|
|
1089
1089
|
function Mr(e, t) {
|
|
1090
1090
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && Z(e)) {
|
|
1091
1091
|
ve(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1092
|
-
const s = (t.onCacheKey || Ar)(e), l =
|
|
1092
|
+
const s = (t.onCacheKey || Ar)(e), l = ht[s];
|
|
1093
1093
|
if (l)
|
|
1094
1094
|
return l;
|
|
1095
1095
|
const { ast: a, detectError: d } = kr(e, {
|
|
@@ -1097,21 +1097,21 @@ function Mr(e, t) {
|
|
|
1097
1097
|
location: fr.env.NODE_ENV !== "production",
|
|
1098
1098
|
jit: !0
|
|
1099
1099
|
}), u = Rt(a);
|
|
1100
|
-
return d ? u :
|
|
1100
|
+
return d ? u : ht[s] = u;
|
|
1101
1101
|
} else {
|
|
1102
1102
|
const n = e.cacheKey;
|
|
1103
1103
|
if (n) {
|
|
1104
|
-
const s =
|
|
1105
|
-
return s || (
|
|
1104
|
+
const s = ht[n];
|
|
1105
|
+
return s || (ht[n] = Rt(e));
|
|
1106
1106
|
} else
|
|
1107
1107
|
return Rt(e);
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
1110
|
let ct = null;
|
|
1111
|
-
function
|
|
1111
|
+
function wr(e) {
|
|
1112
1112
|
ct = e;
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1114
|
+
function Dr(e, t, n) {
|
|
1115
1115
|
ct && ct.emit("i18n:init", {
|
|
1116
1116
|
timestamp: Date.now(),
|
|
1117
1117
|
i18n: e,
|
|
@@ -1133,9 +1133,9 @@ const je = {
|
|
|
1133
1133
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1134
1134
|
}, jr = 24;
|
|
1135
1135
|
function Ue(e) {
|
|
1136
|
-
return
|
|
1136
|
+
return Ct(e, null, void 0);
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1138
|
+
function zt(e, t) {
|
|
1139
1139
|
return t.locale != null ? fn(t.locale) : fn(e.locale);
|
|
1140
1140
|
}
|
|
1141
1141
|
let At;
|
|
@@ -1179,11 +1179,11 @@ function _n(e, t, n) {
|
|
|
1179
1179
|
let s = !0;
|
|
1180
1180
|
for (let l = 0; l < t.length && ve(s); l++) {
|
|
1181
1181
|
const a = t[l];
|
|
1182
|
-
Z(a) && (s =
|
|
1182
|
+
Z(a) && (s = xr(e, t[l], n));
|
|
1183
1183
|
}
|
|
1184
1184
|
return s;
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1186
|
+
function xr(e, t, n) {
|
|
1187
1187
|
let s;
|
|
1188
1188
|
const l = t.split("-");
|
|
1189
1189
|
do {
|
|
@@ -1362,9 +1362,9 @@ Ze[
|
|
|
1362
1362
|
/* Actions.APPEND */
|
|
1363
1363
|
]
|
|
1364
1364
|
};
|
|
1365
|
-
const
|
|
1365
|
+
const Wr = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1366
1366
|
function Gr(e) {
|
|
1367
|
-
return
|
|
1367
|
+
return Wr.test(e);
|
|
1368
1368
|
}
|
|
1369
1369
|
function Zr(e) {
|
|
1370
1370
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
@@ -1401,7 +1401,7 @@ function Yr(e) {
|
|
|
1401
1401
|
}
|
|
1402
1402
|
function Xr(e) {
|
|
1403
1403
|
const t = [];
|
|
1404
|
-
let n = -1, s = 0, l = 0, a, d, u, i, g,
|
|
1404
|
+
let n = -1, s = 0, l = 0, a, d, u, i, g, E, C;
|
|
1405
1405
|
const N = [];
|
|
1406
1406
|
N[
|
|
1407
1407
|
0
|
|
@@ -1440,30 +1440,30 @@ function Xr(e) {
|
|
|
1440
1440
|
}
|
|
1441
1441
|
};
|
|
1442
1442
|
function F() {
|
|
1443
|
-
const
|
|
1444
|
-
if (s === 5 &&
|
|
1445
|
-
return n++, u = "\\" +
|
|
1443
|
+
const w = e[n + 1];
|
|
1444
|
+
if (s === 5 && w === "'" || s === 6 && w === '"')
|
|
1445
|
+
return n++, u = "\\" + w, N[
|
|
1446
1446
|
0
|
|
1447
1447
|
/* Actions.APPEND */
|
|
1448
1448
|
](), !0;
|
|
1449
1449
|
}
|
|
1450
1450
|
for (; s !== null; )
|
|
1451
1451
|
if (n++, a = e[n], !(a === "\\" && F())) {
|
|
1452
|
-
if (i = Br(a),
|
|
1452
|
+
if (i = Br(a), C = Ze[s], g = C[i] || C.l || 8, g === 8 || (s = g[0], g[1] !== void 0 && (E = N[g[1]], E && (u = a, E() === !1))))
|
|
1453
1453
|
return;
|
|
1454
1454
|
if (s === 7)
|
|
1455
1455
|
return t;
|
|
1456
1456
|
}
|
|
1457
1457
|
}
|
|
1458
|
-
const
|
|
1458
|
+
const hn = /* @__PURE__ */ new Map();
|
|
1459
1459
|
function Hr(e, t) {
|
|
1460
1460
|
return te(e) ? e[t] : null;
|
|
1461
1461
|
}
|
|
1462
|
-
function
|
|
1462
|
+
function Jr(e, t) {
|
|
1463
1463
|
if (!te(e))
|
|
1464
1464
|
return null;
|
|
1465
|
-
let n =
|
|
1466
|
-
if (n || (n = Xr(t), n &&
|
|
1465
|
+
let n = hn.get(t);
|
|
1466
|
+
if (n || (n = Xr(t), n && hn.set(t, n)), !n)
|
|
1467
1467
|
return null;
|
|
1468
1468
|
const s = n.length;
|
|
1469
1469
|
let l = e, a = 0;
|
|
@@ -1475,37 +1475,37 @@ function $r(e, t) {
|
|
|
1475
1475
|
}
|
|
1476
1476
|
return l;
|
|
1477
1477
|
}
|
|
1478
|
-
const
|
|
1479
|
-
function
|
|
1478
|
+
const $r = "10.0.5", Ot = -1, Nt = "en-US", vn = "", pn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1479
|
+
function Kr() {
|
|
1480
1480
|
return {
|
|
1481
1481
|
upper: (e, t) => t === "text" && Z(e) ? e.toUpperCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1482
1482
|
lower: (e, t) => t === "text" && Z(e) ? e.toLowerCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1483
|
-
capitalize: (e, t) => t === "text" && Z(e) ?
|
|
1483
|
+
capitalize: (e, t) => t === "text" && Z(e) ? pn(e) : t === "vnode" && te(e) && "__v_isVNode" in e ? pn(e.children) : e
|
|
1484
1484
|
};
|
|
1485
1485
|
}
|
|
1486
|
-
let $n;
|
|
1487
|
-
function Kr(e) {
|
|
1488
|
-
$n = e;
|
|
1489
|
-
}
|
|
1490
1486
|
let Jn;
|
|
1491
|
-
function
|
|
1487
|
+
function zr(e) {
|
|
1492
1488
|
Jn = e;
|
|
1493
1489
|
}
|
|
1494
|
-
let
|
|
1490
|
+
let $n;
|
|
1491
|
+
function Qr(e) {
|
|
1492
|
+
$n = e;
|
|
1493
|
+
}
|
|
1494
|
+
let Kn;
|
|
1495
1495
|
function qr(e) {
|
|
1496
|
-
|
|
1496
|
+
Kn = e;
|
|
1497
1497
|
}
|
|
1498
|
-
let
|
|
1498
|
+
let zn = null;
|
|
1499
1499
|
const eo = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1500
|
-
|
|
1501
|
-
}, to = /* @__NO_SIDE_EFFECTS__ */ () =>
|
|
1500
|
+
zn = e;
|
|
1501
|
+
}, to = /* @__NO_SIDE_EFFECTS__ */ () => zn;
|
|
1502
1502
|
let Qn = null;
|
|
1503
1503
|
const bn = (e) => {
|
|
1504
1504
|
Qn = e;
|
|
1505
1505
|
}, no = () => Qn;
|
|
1506
1506
|
let gn = 0;
|
|
1507
1507
|
function so(e = {}) {
|
|
1508
|
-
const t = me(e.onWarn) ? e.onWarn : Gs, n = Z(e.version) ? e.version :
|
|
1508
|
+
const t = me(e.onWarn) ? e.onWarn : Gs, n = Z(e.version) ? e.version : $r, s = Z(e.locale) || me(e.locale) ? e.locale : Nt, l = me(s) ? Nt : s, a = be(e.fallbackLocale) || ee(e.fallbackLocale) || Z(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, d = ee(e.messages) ? e.messages : kt(l), u = ee(e.datetimeFormats) ? e.datetimeFormats : kt(l), i = ee(e.numberFormats) ? e.numberFormats : kt(l), g = Ie(oe(), e.modifiers, Kr()), E = e.pluralRules || oe(), C = me(e.missing) ? e.missing : null, N = ve(e.missingWarn) || yt(e.missingWarn) ? e.missingWarn : !0, F = ve(e.fallbackWarn) || yt(e.fallbackWarn) ? e.fallbackWarn : !0, w = !!e.fallbackFormat, R = !!e.unresolving, D = me(e.postTranslation) ? e.postTranslation : null, f = ee(e.processor) ? e.processor : null, p = ve(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, c = me(e.messageCompiler) ? e.messageCompiler : Jn, b = me(e.messageResolver) ? e.messageResolver : $n || Hr, I = me(e.localeFallbacker) ? e.localeFallbacker : Kn || Ur, h = te(e.fallbackContext) ? e.fallbackContext : void 0, k = e, L = te(k.__datetimeFormatters) ? k.__datetimeFormatters : /* @__PURE__ */ new Map(), X = te(k.__numberFormatters) ? k.__numberFormatters : /* @__PURE__ */ new Map(), V = te(k.__meta) ? k.__meta : {};
|
|
1509
1509
|
gn++;
|
|
1510
1510
|
const m = {
|
|
1511
1511
|
version: n,
|
|
@@ -1514,24 +1514,24 @@ function so(e = {}) {
|
|
|
1514
1514
|
fallbackLocale: a,
|
|
1515
1515
|
messages: d,
|
|
1516
1516
|
modifiers: g,
|
|
1517
|
-
pluralRules:
|
|
1518
|
-
missing:
|
|
1517
|
+
pluralRules: E,
|
|
1518
|
+
missing: C,
|
|
1519
1519
|
missingWarn: N,
|
|
1520
1520
|
fallbackWarn: F,
|
|
1521
|
-
fallbackFormat:
|
|
1521
|
+
fallbackFormat: w,
|
|
1522
1522
|
unresolving: R,
|
|
1523
|
-
postTranslation:
|
|
1523
|
+
postTranslation: D,
|
|
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
1532
|
__meta: V
|
|
1533
1533
|
};
|
|
1534
|
-
return m.datetimeFormats = u, m.numberFormats = i, m.__datetimeFormatters = L, m.__numberFormatters = X, __INTLIFY_PROD_DEVTOOLS__ &&
|
|
1534
|
+
return m.datetimeFormats = u, m.numberFormats = i, m.__datetimeFormatters = L, m.__numberFormatters = X, __INTLIFY_PROD_DEVTOOLS__ && Dr(m, n, V), m;
|
|
1535
1535
|
}
|
|
1536
1536
|
const kt = (e) => ({ [e]: oe() });
|
|
1537
1537
|
function Qt(e, t, n, s, l) {
|
|
@@ -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: s, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __datetimeFormatters: u } = e, [i, g,
|
|
1563
|
-
ve(
|
|
1564
|
-
const F = !!
|
|
1562
|
+
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __datetimeFormatters: u } = e, [i, g, E, C] = jt(...t), N = ve(E.missingWarn) ? E.missingWarn : e.missingWarn;
|
|
1563
|
+
ve(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn;
|
|
1564
|
+
const F = !!E.part, w = zt(e, E), R = d(
|
|
1565
1565
|
e,
|
|
1566
1566
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1567
1567
|
l,
|
|
1568
|
-
|
|
1568
|
+
w
|
|
1569
1569
|
);
|
|
1570
1570
|
if (!Z(i) || i === "")
|
|
1571
|
-
return new Intl.DateTimeFormat(
|
|
1572
|
-
let
|
|
1571
|
+
return new Intl.DateTimeFormat(w, C).format(g);
|
|
1572
|
+
let D = {}, f, p = null;
|
|
1573
1573
|
const S = "datetime format";
|
|
1574
|
-
for (let I = 0; I < R.length && (f = R[I],
|
|
1574
|
+
for (let I = 0; I < R.length && (f = R[I], D = n[f] || {}, p = D[i], !ee(p)); I++)
|
|
1575
1575
|
Qt(e, i, f, N, S);
|
|
1576
|
-
if (!ee(
|
|
1576
|
+
if (!ee(p) || !Z(f))
|
|
1577
1577
|
return s ? Ot : i;
|
|
1578
1578
|
let c = `${f}__${i}`;
|
|
1579
|
-
|
|
1579
|
+
Tt(C) || (c = `${c}__${JSON.stringify(C)}`);
|
|
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, C)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1582
1582
|
}
|
|
1583
1583
|
const qn = [
|
|
1584
1584
|
"localeMatcher",
|
|
@@ -1628,34 +1628,34 @@ function jt(...e) {
|
|
|
1628
1628
|
qn.includes(i) ? d[i] = n[i] : a[i] = n[i];
|
|
1629
1629
|
}), Z(s) ? a.locale = s : ee(s) && (d = s), ee(l) && (d = l), [a.key || "", u, a, d];
|
|
1630
1630
|
}
|
|
1631
|
-
function
|
|
1631
|
+
function En(e, t, n) {
|
|
1632
1632
|
const s = e;
|
|
1633
1633
|
for (const l in n) {
|
|
1634
1634
|
const a = `${t}__${l}`;
|
|
1635
1635
|
s.__datetimeFormatters.has(a) && s.__datetimeFormatters.delete(a);
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
1638
|
-
function
|
|
1639
|
-
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __numberFormatters: u } = e, [i, g,
|
|
1640
|
-
ve(
|
|
1641
|
-
const F = !!
|
|
1638
|
+
function yn(e, ...t) {
|
|
1639
|
+
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __numberFormatters: u } = e, [i, g, E, C] = Ut(...t), N = ve(E.missingWarn) ? E.missingWarn : e.missingWarn;
|
|
1640
|
+
ve(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn;
|
|
1641
|
+
const F = !!E.part, w = zt(e, E), R = d(
|
|
1642
1642
|
e,
|
|
1643
1643
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1644
1644
|
l,
|
|
1645
|
-
|
|
1645
|
+
w
|
|
1646
1646
|
);
|
|
1647
1647
|
if (!Z(i) || i === "")
|
|
1648
|
-
return new Intl.NumberFormat(
|
|
1649
|
-
let
|
|
1648
|
+
return new Intl.NumberFormat(w, C).format(g);
|
|
1649
|
+
let D = {}, f, p = null;
|
|
1650
1650
|
const S = "number format";
|
|
1651
|
-
for (let I = 0; I < R.length && (f = R[I],
|
|
1651
|
+
for (let I = 0; I < R.length && (f = R[I], D = n[f] || {}, p = D[i], !ee(p)); I++)
|
|
1652
1652
|
Qt(e, i, f, N, S);
|
|
1653
|
-
if (!ee(
|
|
1653
|
+
if (!ee(p) || !Z(f))
|
|
1654
1654
|
return s ? Ot : i;
|
|
1655
1655
|
let c = `${f}__${i}`;
|
|
1656
|
-
|
|
1656
|
+
Tt(C) || (c = `${c}__${JSON.stringify(C)}`);
|
|
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, C)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1659
1659
|
}
|
|
1660
1660
|
const es = [
|
|
1661
1661
|
"localeMatcher",
|
|
@@ -1696,8 +1696,8 @@ function Nn(e, t, n) {
|
|
|
1696
1696
|
s.__numberFormatters.has(a) && s.__numberFormatters.delete(a);
|
|
1697
1697
|
}
|
|
1698
1698
|
}
|
|
1699
|
-
const ao = (e) => e, lo = (e) => "", io = "text", co = (e) => e.length === 0 ? "" :
|
|
1700
|
-
function
|
|
1699
|
+
const ao = (e) => e, lo = (e) => "", io = "text", co = (e) => e.length === 0 ? "" : Jt(e), uo = Ws;
|
|
1700
|
+
function Tn(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,91 +1708,91 @@ 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), s = te(e.pluralRules) && Z(t) && me(e.pluralRules[t]) ? e.pluralRules[t] :
|
|
1711
|
+
const t = e.locale, n = mo(e), s = te(e.pluralRules) && Z(t) && me(e.pluralRules[t]) ? e.pluralRules[t] : Tn, l = te(e.pluralRules) && Z(t) && me(e.pluralRules[t]) ? Tn : void 0, a = (f) => f[s(n, f.length, l)], d = e.list || [], u = (f) => d[f], i = e.named || oe();
|
|
1712
1712
|
ge(e.pluralIndex) && fo(n, i);
|
|
1713
1713
|
const g = (f) => i[f];
|
|
1714
|
-
function
|
|
1715
|
-
const S = me(e.messages) ? e.messages(f, !!
|
|
1714
|
+
function E(f, p) {
|
|
1715
|
+
const S = me(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
|
|
1718
|
+
const C = (f) => e.modifiers ? e.modifiers[f] : ao, N = ee(e.processor) && me(e.processor.normalize) ? e.processor.normalize : co, F = ee(e.processor) && me(e.processor.interpolate) ? e.processor.interpolate : uo, w = ee(e.processor) && Z(e.processor.type) ? e.processor.type : io, D = {
|
|
1719
1719
|
list: u,
|
|
1720
1720
|
named: g,
|
|
1721
1721
|
plural: a,
|
|
1722
|
-
linked: (f, ...
|
|
1723
|
-
const [S, c] =
|
|
1722
|
+
linked: (f, ...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)(D), k = (
|
|
1727
1727
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1728
|
-
b === "vnode" && be(
|
|
1728
|
+
b === "vnode" && be(h) && I ? h[0] : h
|
|
1729
1729
|
);
|
|
1730
|
-
return I ?
|
|
1730
|
+
return I ? C(I)(k, b) : k;
|
|
1731
1731
|
},
|
|
1732
|
-
message:
|
|
1733
|
-
type:
|
|
1732
|
+
message: E,
|
|
1733
|
+
type: w,
|
|
1734
1734
|
interpolate: F,
|
|
1735
1735
|
normalize: N,
|
|
1736
1736
|
values: Ie(oe(), d, i)
|
|
1737
1737
|
};
|
|
1738
|
-
return
|
|
1738
|
+
return D;
|
|
1739
1739
|
}
|
|
1740
|
-
const
|
|
1740
|
+
const Cn = () => "", Ce = (e) => me(e);
|
|
1741
1741
|
function On(e, ...t) {
|
|
1742
|
-
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: d, messages: u } = e, [i, g] =
|
|
1743
|
-
N &&
|
|
1744
|
-
let [f,
|
|
1742
|
+
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: d, messages: u } = e, [i, g] = xt(...t), E = ve(g.missingWarn) ? g.missingWarn : e.missingWarn, C = ve(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, N = ve(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, F = !!g.resolvedMessage, w = Z(g.default) || ve(g.default) ? ve(g.default) ? a ? i : () => i : g.default : n ? a ? i : () => i : null, R = n || w != null && (Z(w) || me(w)), D = zt(e, g);
|
|
1743
|
+
N && ho(g);
|
|
1744
|
+
let [f, p, S] = F ? [
|
|
1745
1745
|
i,
|
|
1746
|
-
|
|
1747
|
-
u[
|
|
1748
|
-
] : ts(e, i,
|
|
1749
|
-
if (!F && !(Z(c) || ot(c) ||
|
|
1746
|
+
D,
|
|
1747
|
+
u[D] || oe()
|
|
1748
|
+
] : ts(e, i, D, d, C, E), c = f, b = i;
|
|
1749
|
+
if (!F && !(Z(c) || ot(c) || Ce(c)) && R && (c = w, b = c), !F && (!(Z(c) || ot(c) || Ce(c)) || !Z(p)))
|
|
1750
1750
|
return l ? Ot : i;
|
|
1751
1751
|
let I = !1;
|
|
1752
|
-
const
|
|
1752
|
+
const h = () => {
|
|
1753
1753
|
I = !0;
|
|
1754
|
-
}, k =
|
|
1754
|
+
}, k = Ce(c) ? c : ns(e, i, p, c, b, h);
|
|
1755
1755
|
if (I)
|
|
1756
1756
|
return c;
|
|
1757
|
-
const L = bo(e,
|
|
1757
|
+
const L = bo(e, p, S, g), X = _o(L), V = vo(e, k, X), m = s ? s(V, i) : V;
|
|
1758
1758
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1759
|
-
const
|
|
1759
|
+
const T = {
|
|
1760
1760
|
timestamp: Date.now(),
|
|
1761
|
-
key: Z(i) ? i :
|
|
1762
|
-
locale:
|
|
1763
|
-
format: Z(c) ? c :
|
|
1761
|
+
key: Z(i) ? i : Ce(c) ? c.key : "",
|
|
1762
|
+
locale: p || (Ce(c) ? c.locale : ""),
|
|
1763
|
+
format: Z(c) ? c : Ce(c) ? c.source : "",
|
|
1764
1764
|
message: m
|
|
1765
1765
|
};
|
|
1766
|
-
|
|
1766
|
+
T.meta = Ie({}, e.__meta, /* @__PURE__ */ to() || {}), Fr(T);
|
|
1767
1767
|
}
|
|
1768
1768
|
return m;
|
|
1769
1769
|
}
|
|
1770
|
-
function
|
|
1770
|
+
function ho(e) {
|
|
1771
1771
|
be(e.list) ? e.list = e.list.map((t) => Z(t) ? ln(t) : t) : te(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1772
1772
|
Z(e.named[t]) && (e.named[t] = ln(e.named[t]));
|
|
1773
1773
|
});
|
|
1774
1774
|
}
|
|
1775
1775
|
function ts(e, t, n, s, l, a) {
|
|
1776
|
-
const { messages: d, onWarn: u, messageResolver: i, localeFallbacker: g } = e,
|
|
1777
|
-
let
|
|
1778
|
-
const
|
|
1779
|
-
for (let R = 0; R <
|
|
1780
|
-
if (!oo(N,
|
|
1781
|
-
const
|
|
1776
|
+
const { messages: d, onWarn: u, messageResolver: i, localeFallbacker: g } = e, E = g(e, s, n);
|
|
1777
|
+
let C = oe(), N, F = null;
|
|
1778
|
+
const w = "translate";
|
|
1779
|
+
for (let R = 0; R < E.length && (N = E[R], C = d[N] || oe(), (F = i(C, t)) === null && (F = C[t]), !(Z(F) || ot(F) || Ce(F))); R++)
|
|
1780
|
+
if (!oo(N, E)) {
|
|
1781
|
+
const D = Qt(
|
|
1782
1782
|
e,
|
|
1783
1783
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1784
1784
|
t,
|
|
1785
1785
|
N,
|
|
1786
1786
|
a,
|
|
1787
|
-
|
|
1787
|
+
w
|
|
1788
1788
|
);
|
|
1789
|
-
|
|
1789
|
+
D !== t && (F = D);
|
|
1790
1790
|
}
|
|
1791
|
-
return [F, N,
|
|
1791
|
+
return [F, N, C];
|
|
1792
1792
|
}
|
|
1793
1793
|
function ns(e, t, n, s, l, a) {
|
|
1794
1794
|
const { messageCompiler: d, warnHtmlMessage: u } = e;
|
|
1795
|
-
if (
|
|
1795
|
+
if (Ce(s)) {
|
|
1796
1796
|
const g = s;
|
|
1797
1797
|
return g.locale = g.locale || n, g.key = g.key || t, g;
|
|
1798
1798
|
}
|
|
@@ -1800,20 +1800,20 @@ function ns(e, t, n, s, l, a) {
|
|
|
1800
1800
|
const g = () => s;
|
|
1801
1801
|
return g.locale = n, g.key = t, g;
|
|
1802
1802
|
}
|
|
1803
|
-
const i = d(s,
|
|
1803
|
+
const i = d(s, po(e, n, l, s, u, a));
|
|
1804
1804
|
return i.locale = n, i.key = t, i.source = s, i;
|
|
1805
1805
|
}
|
|
1806
1806
|
function vo(e, t, n) {
|
|
1807
1807
|
return t(n);
|
|
1808
1808
|
}
|
|
1809
|
-
function
|
|
1809
|
+
function xt(...e) {
|
|
1810
1810
|
const [t, n, s] = e, l = oe();
|
|
1811
|
-
if (!Z(t) && !ge(t) && !
|
|
1811
|
+
if (!Z(t) && !ge(t) && !Ce(t) && !ot(t))
|
|
1812
1812
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1813
|
-
const a = ge(t) ? String(t) : (
|
|
1814
|
-
return ge(n) ? l.plural = n : Z(n) ? l.default = n : ee(n) && !
|
|
1813
|
+
const a = ge(t) ? String(t) : (Ce(t), t);
|
|
1814
|
+
return ge(n) ? l.plural = n : Z(n) ? l.default = n : ee(n) && !Tt(n) ? l.named = n : be(n) && (l.list = n), ge(s) ? l.plural = s : Z(s) ? l.default = s : ee(s) && Ie(l, s), [a, l];
|
|
1815
1815
|
}
|
|
1816
|
-
function
|
|
1816
|
+
function po(e, t, n, s, l, a) {
|
|
1817
1817
|
return {
|
|
1818
1818
|
locale: t,
|
|
1819
1819
|
key: n,
|
|
@@ -1825,15 +1825,15 @@ function ho(e, t, n, s, l, a) {
|
|
|
1825
1825
|
};
|
|
1826
1826
|
}
|
|
1827
1827
|
function bo(e, t, n, s) {
|
|
1828
|
-
const { modifiers: l, pluralRules: a, messageResolver: d, fallbackLocale: u, fallbackWarn: i, missingWarn: g, fallbackContext:
|
|
1828
|
+
const { modifiers: l, pluralRules: a, messageResolver: d, fallbackLocale: u, fallbackWarn: i, missingWarn: g, fallbackContext: E } = e, N = {
|
|
1829
1829
|
locale: t,
|
|
1830
1830
|
modifiers: l,
|
|
1831
1831
|
pluralRules: a,
|
|
1832
|
-
messages: (F,
|
|
1832
|
+
messages: (F, w) => {
|
|
1833
1833
|
let R = d(n, F);
|
|
1834
|
-
if (R == null && (
|
|
1835
|
-
const [, ,
|
|
1836
|
-
|
|
1834
|
+
if (R == null && (E || w)) {
|
|
1835
|
+
const [, , D] = ts(
|
|
1836
|
+
E || e,
|
|
1837
1837
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1838
1838
|
F,
|
|
1839
1839
|
t,
|
|
@@ -1841,23 +1841,23 @@ function bo(e, t, n, s) {
|
|
|
1841
1841
|
i,
|
|
1842
1842
|
g
|
|
1843
1843
|
);
|
|
1844
|
-
R = d(
|
|
1844
|
+
R = d(D, F);
|
|
1845
1845
|
}
|
|
1846
1846
|
if (Z(R) || ot(R)) {
|
|
1847
|
-
let
|
|
1848
|
-
const
|
|
1849
|
-
|
|
1847
|
+
let D = !1;
|
|
1848
|
+
const p = ns(e, F, t, R, F, () => {
|
|
1849
|
+
D = !0;
|
|
1850
1850
|
});
|
|
1851
|
-
return
|
|
1852
|
-
} else return
|
|
1851
|
+
return D ? Cn : p;
|
|
1852
|
+
} else return Ce(R) ? R : Cn;
|
|
1853
1853
|
}
|
|
1854
1854
|
};
|
|
1855
1855
|
return e.processor && (N.processor = e.processor), s.list && (N.list = s.list), s.named && (N.named = s.named), ge(s.plural) && (N.pluralIndex = s.plural), N;
|
|
1856
1856
|
}
|
|
1857
1857
|
_r();
|
|
1858
|
-
var go = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_af42e9e1-d991-464b-8e92-0287ae6456be", 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_af42e9e1-d991-464b-8e92-0287ae6456be", 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: "1832", ACTIONS_ORCHESTRATION_ID: "97260825-774f-4027-bfda-718eb375615c.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_af42e9e1-d991-464b-8e92-0287ae6456be", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:10808", 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: "37929458565", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "6e9305dadfdefc45ec6d67a63afe2e271865dad0", 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/feat/schedule-auto-schedule", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9mZWF0L3NjaGVkdWxlLWF1dG8tc2NoZWR1bGVcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTE1NzA2NzYsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MTU0ODQ3NiwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImFiMjUxMGRjLTYxMmUtNTI0Zi04MDNmLTJjZjQzNWMzYjdkYyIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiMDlmNzZkOGFjNWU2YTA3MDc1NDI3NDllMWQ1Njg3YmYxZWFkNWYyYyIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MTU0ODE3Niwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCIxMTM4MTYzMjE5MDZcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjA5Zjc2ZDhhYzVlNmEwNzA3NTQyNzQ5ZTFkNTY4N2JmMWVhZDVmMmNcIixcInJlZlwiOlwicmVmcy9oZWFkcy9mZWF0L3NjaGVkdWxlLWF1dG8tc2NoZWR1bGVcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJyZXBvc2l0b3J5XCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2VcIixcInJlcG9zaXRvcnlfaWRcIjpcIjExMjQ2NzIyMzVcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJ1bl9pZFwiOlwiMzc5Mjk0NTg1NjVcIixcInJ1bl9udW1iZXJcIjpcIjE4M1wiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcIjZlOTMwNWRhZGZkZWZjNDVlYzZkNjdhNjNhZmUyZTI3MTg2NWRhZDBcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIGhybS1wb3J0YWxcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtaHJtLXBvcnRhbC10cnVzdGVkLnltbEByZWZzL2hlYWRzL2ZlYXQvc2NoZWR1bGUtYXV0by1zY2hlZHVsZVwiLFwid29ya2Zsb3dfc2hhXCI6XCI2ZTkzMDVkYWRmZGVmYzQ1ZWM2ZDY3YTYzYWZlMmUyNzE4NjVkYWQwXCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9mZWF0L3NjaGVkdWxlLWF1dG8tc2NoZWR1bGUiLCJvcmNoX2lkIjoiOTcyNjA4MjUtNzc0Zi00MDI3LWJmZGEtNzE4ZWIzNzU2MTVjLnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiI5NzI2MDgyNS03NzRmLTQwMjctYmZkYS03MThlYjM3NTYxNWMiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiIzNzkyOTQ1ODU2NSIsInJ1bl9udW1iZXIiOiIxODMiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMTg4MjAwIiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6OTcyNjA4MjUtNzc0Zi00MDI3LWJmZGEtNzE4ZWIzNzU2MTVjOmFiMjUxMGRjLTYxMmUtNTI0Zi04MDNmLTJjZjQzNWMzYjdkYyBBY3Rpb25zLlJ1bm5lcjo5NzI2MDgyNS03NzRmLTQwMjctYmZkYS03MThlYjM3NTYxNWM6YWIyNTEwZGMtNjEyZS01MjRmLTgwM2YtMmNmNDM1YzNiN2RjIEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOjk3MjYwODI1LTc3NGYtNDAyNy1iZmRhLTcxOGViMzc1NjE1YzphYjI1MTBkYy02MTJlLTUyNGYtODAzZi0yY2Y0MzVjM2I3ZGMgZ2VuZXJhdGVfaWRfdG9rZW46OTcyNjA4MjUtNzc0Zi00MDI3LWJmZGEtNzE4ZWIzNzU2MTVjOmFiMjUxMGRjLTYxMmUtNTI0Zi04MDNmLTJjZjQzNWMzYjdkYyBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6IjZlOTMwNWRhZGZkZWZjNDVlYzZkNjdhNjNhZmUyZTI3MTg2NWRhZDAiLCJ0cnVzdF90aWVyIjoiMSJ9.OBKF-IYJWnfg3SFue3tZalaw6ZOGTzXPkCTUw5NtK7vZspXG0u9hq07D2GjAMOsR97sQW477FlTGAX7lfw91589jOQIbfjYyuxd0x546IzXoPE1I-LHc0LOlSxSisyJ7jhduBcR_XT9A-qU02EM_g3WEdaZ6aCrCiI29Ymx0kDJyCS5jn1mmIaZ0yjXHX_yWoLMEAO3Ir8gxbqeye4vI-d3LLK0zxb8l_Octl6kWY08L9c5gjHNZEQg7hbetMQWQds2uHSxh_p4EpUMqUkTu9SBbddxcrRkiabS9BTCXvrW9uqM2gtv4VExmuP10GM9gDP9phaSXMWxiY-rOD6SQ6A", 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_d3939614-d380-454f-9824-0fdec976b57d", INVOCATION_ID: "101beed0ff2d496e80c47fb0ffcf306c", 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: "183", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000188200", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "feat/schedule-auto-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.2", 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: "6e9305dadfdefc45ec6d67a63afe2e271865dad0", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/feat/schedule-auto-schedule", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_af42e9e1-d991-464b-8e92-0287ae6456be", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-3-azure-eastus.actions.githubusercontent.com/162//idtoken/97260825-774f-4027-bfda-718eb375615c/ab2510dc-612e-524f-803f-2cf435c3b7dc?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_af42e9e1-d991-464b-8e92-0287ae6456be", 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_af42e9e1-d991-464b-8e92-0287ae6456be", 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_af42e9e1-d991-464b-8e92-0287ae6456be", 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_dce63cd1-6c39-4a02-b0fb-8233cfb98c32", 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_dce63cd1-6c39-4a02-b0fb-8233cfb98c32", 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: "1855", ACTIONS_ORCHESTRATION_ID: "14f66a45-04a4-4e2b-8f6f-ba5a52810ae2.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_dce63cd1-6c39-4a02-b0fb-8233cfb98c32", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:12162", 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: "37944755317", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "d7d10341901f70d2d1f61cadd873f88ae6f666c5", 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/feat/schedule-auto-schedule", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9mZWF0L3NjaGVkdWxlLWF1dG8tc2NoZWR1bGVcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTE1Nzg0NjUsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MTU1NjI2NSwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImIzNzk2NmJjLTkwZTUtNTNkYS05OWU5LWE0MmRiMTlhNDA5MiIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiMDlmNzZkOGFjNWU2YTA3MDc1NDI3NDllMWQ1Njg3YmYxZWFkNWYyYyIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MTU1NTk2NSwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCIxMTM4NjgwNTE0MzJcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjA5Zjc2ZDhhYzVlNmEwNzA3NTQyNzQ5ZTFkNTY4N2JmMWVhZDVmMmNcIixcInJlZlwiOlwicmVmcy9oZWFkcy9mZWF0L3NjaGVkdWxlLWF1dG8tc2NoZWR1bGVcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJyZXBvc2l0b3J5XCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2VcIixcInJlcG9zaXRvcnlfaWRcIjpcIjExMjQ2NzIyMzVcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJ1bl9pZFwiOlwiMzc5NDQ3NTUzMTdcIixcInJ1bl9udW1iZXJcIjpcIjE4N1wiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcImQ3ZDEwMzQxOTAxZjcwZDJkMWY2MWNhZGQ4NzNmODhhZTZmNjY2YzVcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIGhybS1wb3J0YWxcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtaHJtLXBvcnRhbC10cnVzdGVkLnltbEByZWZzL2hlYWRzL2ZlYXQvc2NoZWR1bGUtYXV0by1zY2hlZHVsZVwiLFwid29ya2Zsb3dfc2hhXCI6XCJkN2QxMDM0MTkwMWY3MGQyZDFmNjFjYWRkODczZjg4YWU2ZjY2NmM1XCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9mZWF0L3NjaGVkdWxlLWF1dG8tc2NoZWR1bGUiLCJvcmNoX2lkIjoiMTRmNjZhNDUtMDRhNC00ZTJiLThmNmYtYmE1YTUyODEwYWUyLnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiIxNGY2NmE0NS0wNGE0LTRlMmItOGY2Zi1iYTVhNTI4MTBhZTIiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiIzNzk0NDc1NTMxNyIsInJ1bl9udW1iZXIiOiIxODciLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMTg4NDAyIiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6MTRmNjZhNDUtMDRhNC00ZTJiLThmNmYtYmE1YTUyODEwYWUyOmIzNzk2NmJjLTkwZTUtNTNkYS05OWU5LWE0MmRiMTlhNDA5MiBBY3Rpb25zLlJ1bm5lcjoxNGY2NmE0NS0wNGE0LTRlMmItOGY2Zi1iYTVhNTI4MTBhZTI6YjM3OTY2YmMtOTBlNS01M2RhLTk5ZTktYTQyZGIxOWE0MDkyIEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOjE0ZjY2YTQ1LTA0YTQtNGUyYi04ZjZmLWJhNWE1MjgxMGFlMjpiMzc5NjZiYy05MGU1LTUzZGEtOTllOS1hNDJkYjE5YTQwOTIgZ2VuZXJhdGVfaWRfdG9rZW46MTRmNjZhNDUtMDRhNC00ZTJiLThmNmYtYmE1YTUyODEwYWUyOmIzNzk2NmJjLTkwZTUtNTNkYS05OWU5LWE0MmRiMTlhNDA5MiBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6ImQ3ZDEwMzQxOTAxZjcwZDJkMWY2MWNhZGQ4NzNmODhhZTZmNjY2YzUiLCJ0cnVzdF90aWVyIjoiMSJ9.FjwVsE--WnIVHssrOiv5tpwYpVIGMImbYJELwcAz9yRFDBDc0fuRxfiudR5OnNav_JTIKdv8N2jyMCDEPHicMIt83-vo9n717DKRE1V9tXFEf2VJG4sNmVoyZFlwMpgeTNb2fGx7qI18E6MUhKUjEyzNkZ_x3qTBJEEULwJf7WWlUq4-1g2FzgHHB8hR37_K7Z5wWAN7lT67OpoTJ6aHISP9zNMpPIWA5gKOOSvP1RaZGniww9K5vH6S-ykm2CyVbMJhtvHuxoF4OJXIljQjUHqqlF4x_b8o0Mw1vM1EoofcSQOFeJbf5ght7TWzieekN2odxvYObjOxexpRAgxsuA", 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_e9e26f94-2fab-4fd1-a984-6ea3bd1755c1", INVOCATION_ID: "5ad8826aeba34086b5a8c17b38ac166d", 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: "187", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000188402", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "feat/schedule-auto-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.4", 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: "d7d10341901f70d2d1f61cadd873f88ae6f666c5", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/feat/schedule-auto-schedule", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_dce63cd1-6c39-4a02-b0fb-8233cfb98c32", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-2-azure-eastus.actions.githubusercontent.com/250//idtoken/14f66a45-04a4-4e2b-8f6f-ba5a52810ae2/b37966bc-90e5-53da-99e9-a42db19a4092?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_dce63cd1-6c39-4a02-b0fb-8233cfb98c32", 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_dce63cd1-6c39-4a02-b0fb-8233cfb98c32", 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_dce63cd1-6c39-4a02-b0fb-8233cfb98c32", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1859
1859
|
const Io = "10.0.5";
|
|
1860
|
-
function
|
|
1860
|
+
function Eo() {
|
|
1861
1861
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Xe().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Xe().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Xe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Xe().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1862
1862
|
}
|
|
1863
1863
|
const at = {
|
|
@@ -1874,9 +1874,9 @@ const at = {
|
|
|
1874
1874
|
UNEXPECTED_ERROR: 32
|
|
1875
1875
|
};
|
|
1876
1876
|
function ut(e, ...t) {
|
|
1877
|
-
return
|
|
1877
|
+
return Ct(e, null, void 0);
|
|
1878
1878
|
}
|
|
1879
|
-
const Vt = /* @__PURE__ */
|
|
1879
|
+
const Vt = /* @__PURE__ */ Je("__translateVNode"), Wt = /* @__PURE__ */ Je("__datetimeParts"), Gt = /* @__PURE__ */ Je("__numberParts"), yo = Je("__setPluralRules"), ss = /* @__PURE__ */ Je("__injectWithOption"), Zt = /* @__PURE__ */ Je("__dispose");
|
|
1880
1880
|
function dt(e) {
|
|
1881
1881
|
if (!te(e))
|
|
1882
1882
|
return e;
|
|
@@ -1903,9 +1903,9 @@ function rs(e, t) {
|
|
|
1903
1903
|
if (be(s) && s.forEach((u) => {
|
|
1904
1904
|
if ("locale" in u && "resource" in u) {
|
|
1905
1905
|
const { locale: i, resource: g } = u;
|
|
1906
|
-
i ? (d[i] = d[i] || oe(),
|
|
1906
|
+
i ? (d[i] = d[i] || oe(), Et(g, d[i])) : Et(g, d);
|
|
1907
1907
|
} else
|
|
1908
|
-
Z(u) &&
|
|
1908
|
+
Z(u) && Et(JSON.parse(u), d);
|
|
1909
1909
|
}), l == null && a)
|
|
1910
1910
|
for (const u in d)
|
|
1911
1911
|
Le(d, u) && dt(d[u]);
|
|
@@ -1942,12 +1942,12 @@ function No(e, t, n) {
|
|
|
1942
1942
|
function Sn(e) {
|
|
1943
1943
|
return ue(fs, null, e, 0);
|
|
1944
1944
|
}
|
|
1945
|
-
const Ln = "__INTLIFY_META__", Rn = () => [],
|
|
1945
|
+
const Ln = "__INTLIFY_META__", Rn = () => [], To = () => !1;
|
|
1946
1946
|
let An = 0;
|
|
1947
1947
|
function kn(e) {
|
|
1948
1948
|
return (t, n, s, l) => e(n, s, Yt() || void 0, l);
|
|
1949
1949
|
}
|
|
1950
|
-
const
|
|
1950
|
+
const Co = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1951
1951
|
const e = Yt();
|
|
1952
1952
|
let t = null;
|
|
1953
1953
|
return e && (t = os(e)[Ln]) ? { [Ln]: t } : null;
|
|
@@ -1961,11 +1961,11 @@ function Oo(e = {}) {
|
|
|
1961
1961
|
), i = a(
|
|
1962
1962
|
// prettier-ignore
|
|
1963
1963
|
t && d ? t.fallbackLocale.value : Z(e.fallbackLocale) || be(e.fallbackLocale) || ee(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
1964
|
-
), g = a(rs(u.value, e)),
|
|
1965
|
-
let N = t ? t.missingWarn : ve(e.missingWarn) ||
|
|
1964
|
+
), g = a(rs(u.value, e)), E = a(ee(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), C = a(ee(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
|
|
1965
|
+
let N = 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, w = t ? t.fallbackRoot : ve(e.fallbackRoot) ? e.fallbackRoot : !0, R = !!e.fallbackFormat, D = me(e.missing) ? e.missing : null, f = me(e.missing) ? kn(e.missing) : null, p = me(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : ve(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, c = !!e.escapeParameter;
|
|
1966
1966
|
const b = t ? t.modifiers : ee(e.modifiers) ? e.modifiers : {};
|
|
1967
|
-
let I = e.pluralRules || t && t.pluralRules,
|
|
1968
|
-
|
|
1967
|
+
let I = e.pluralRules || t && t.pluralRules, h;
|
|
1968
|
+
h = (() => {
|
|
1969
1969
|
s && bn(null);
|
|
1970
1970
|
const v = {
|
|
1971
1971
|
version: Io,
|
|
@@ -1979,84 +1979,84 @@ function Oo(e = {}) {
|
|
|
1979
1979
|
fallbackWarn: F,
|
|
1980
1980
|
fallbackFormat: R,
|
|
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 =
|
|
1990
|
-
const
|
|
1991
|
-
return s && bn(
|
|
1992
|
-
})(), lt(
|
|
1989
|
+
v.datetimeFormats = E.value, v.numberFormats = C.value, v.__datetimeFormatters = ee(h) ? h.__datetimeFormatters : void 0, v.__numberFormatters = ee(h) ? h.__numberFormatters : void 0;
|
|
1990
|
+
const y = so(v);
|
|
1991
|
+
return s && bn(y), y;
|
|
1992
|
+
})(), lt(h, u.value, i.value);
|
|
1993
1993
|
function L() {
|
|
1994
1994
|
return [
|
|
1995
1995
|
u.value,
|
|
1996
1996
|
i.value,
|
|
1997
1997
|
g.value,
|
|
1998
|
-
|
|
1999
|
-
|
|
1998
|
+
E.value,
|
|
1999
|
+
C.value
|
|
2000
2000
|
];
|
|
2001
2001
|
}
|
|
2002
|
-
const X =
|
|
2002
|
+
const X = 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
|
-
}), V =
|
|
2007
|
+
}), V = 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
|
-
}), m =
|
|
2013
|
-
function
|
|
2014
|
-
return me(
|
|
2012
|
+
}), m = z(() => g.value), T = /* @__PURE__ */ z(() => E.value), U = /* @__PURE__ */ z(() => C.value);
|
|
2013
|
+
function x() {
|
|
2014
|
+
return me(p) ? p : null;
|
|
2015
2015
|
}
|
|
2016
2016
|
function j(v) {
|
|
2017
|
-
|
|
2017
|
+
p = v, h.postTranslation = v;
|
|
2018
2018
|
}
|
|
2019
2019
|
function G() {
|
|
2020
|
-
return
|
|
2020
|
+
return D;
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2023
|
-
v !== null && (f = kn(v)),
|
|
2022
|
+
function W(v) {
|
|
2023
|
+
v !== null && (f = kn(v)), D = v, h.missing = f;
|
|
2024
2024
|
}
|
|
2025
|
-
const B = (v,
|
|
2025
|
+
const B = (v, y, J, le, Ye, mt) => {
|
|
2026
2026
|
L();
|
|
2027
|
-
let
|
|
2027
|
+
let ze;
|
|
2028
2028
|
try {
|
|
2029
|
-
go.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (
|
|
2029
|
+
go.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (h.fallbackContext = t ? no() : void 0), ze = v(h);
|
|
2030
2030
|
} finally {
|
|
2031
|
-
__INTLIFY_PROD_DEVTOOLS__, s || (
|
|
2031
|
+
__INTLIFY_PROD_DEVTOOLS__, s || (h.fallbackContext = void 0);
|
|
2032
2032
|
}
|
|
2033
|
-
if (
|
|
2034
|
-
ge(
|
|
2035
|
-
const [cs,
|
|
2036
|
-
return t &&
|
|
2033
|
+
if (J !== "translate exists" && // for not `te` (e.g `t`)
|
|
2034
|
+
ge(ze) && ze === Ot || J === "translate exists" && !ze) {
|
|
2035
|
+
const [cs, ya] = y();
|
|
2036
|
+
return t && w ? le(t) : Ye(cs);
|
|
2037
2037
|
} else {
|
|
2038
|
-
if (mt(
|
|
2039
|
-
return
|
|
2038
|
+
if (mt(ze))
|
|
2039
|
+
return ze;
|
|
2040
2040
|
throw ut(at.UNEXPECTED_RETURN_TYPE);
|
|
2041
2041
|
}
|
|
2042
2042
|
};
|
|
2043
2043
|
function Y(...v) {
|
|
2044
|
-
return B((
|
|
2044
|
+
return B((y) => Reflect.apply(On, null, [y, ...v]), () => xt(...v), "translate", (y) => Reflect.apply(y.t, y, [...v]), (y) => y, (y) => Z(y));
|
|
2045
2045
|
}
|
|
2046
2046
|
function ne(...v) {
|
|
2047
|
-
const [
|
|
2047
|
+
const [y, J, le] = v;
|
|
2048
2048
|
if (le && !te(le))
|
|
2049
2049
|
throw ut(at.INVALID_ARGUMENT);
|
|
2050
|
-
return Y(
|
|
2050
|
+
return Y(y, J, Ie({ resolvedMessage: !0 }, le || {}));
|
|
2051
2051
|
}
|
|
2052
2052
|
function Q(...v) {
|
|
2053
|
-
return B((
|
|
2053
|
+
return B((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 B((
|
|
2056
|
+
return B((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((
|
|
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,92 +2064,92 @@ function Oo(e = {}) {
|
|
|
2064
2064
|
type: "vnode"
|
|
2065
2065
|
};
|
|
2066
2066
|
function q(...v) {
|
|
2067
|
-
return B((
|
|
2068
|
-
let
|
|
2069
|
-
const le =
|
|
2067
|
+
return B((y) => {
|
|
2068
|
+
let J;
|
|
2069
|
+
const le = y;
|
|
2070
2070
|
try {
|
|
2071
|
-
le.processor = fe,
|
|
2071
|
+
le.processor = fe, J = Reflect.apply(On, null, [le, ...v]);
|
|
2072
2072
|
} finally {
|
|
2073
2073
|
le.processor = null;
|
|
2074
2074
|
}
|
|
2075
|
-
return
|
|
2076
|
-
}, () =>
|
|
2075
|
+
return J;
|
|
2076
|
+
}, () => xt(...v), "translate", (y) => y[Vt](...v), (y) => [Sn(y)], (y) => be(y));
|
|
2077
2077
|
}
|
|
2078
|
-
function
|
|
2079
|
-
return B((
|
|
2078
|
+
function De(...v) {
|
|
2079
|
+
return B((y) => Reflect.apply(yn, null, [y, ...v]), () => Ut(...v), "number format", (y) => y[Gt](...v), Rn, (y) => Z(y) || be(y));
|
|
2080
2080
|
}
|
|
2081
|
-
function
|
|
2082
|
-
return B((
|
|
2081
|
+
function K(...v) {
|
|
2082
|
+
return B((y) => Reflect.apply(In, null, [y, ...v]), () => jt(...v), "datetime format", (y) => y[Wt](...v), Rn, (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
|
-
function
|
|
2087
|
+
function $e(v, y) {
|
|
2088
2088
|
return B(() => {
|
|
2089
2089
|
if (!v)
|
|
2090
2090
|
return !1;
|
|
2091
|
-
const
|
|
2092
|
-
return ot(Ye) ||
|
|
2093
|
-
}, () => [v], "translate exists", (
|
|
2094
|
-
}
|
|
2095
|
-
function
|
|
2096
|
-
let
|
|
2097
|
-
const
|
|
2098
|
-
for (let le = 0; le <
|
|
2099
|
-
const Ye = g.value[
|
|
2091
|
+
const J = Z(y) ? y : u.value, le = Fe(J), Ye = h.messageResolver(le, v);
|
|
2092
|
+
return ot(Ye) || Ce(Ye) || Z(Ye);
|
|
2093
|
+
}, () => [v], "translate exists", (J) => Reflect.apply(J.te, J, [v, y]), To, (J) => ve(J));
|
|
2094
|
+
}
|
|
2095
|
+
function Ke(v) {
|
|
2096
|
+
let y = null;
|
|
2097
|
+
const J = Hn(h, i.value, u.value);
|
|
2098
|
+
for (let le = 0; le < J.length; le++) {
|
|
2099
|
+
const Ye = g.value[J[le]] || {}, mt = h.messageResolver(Ye, v);
|
|
2100
2100
|
if (mt != null) {
|
|
2101
|
-
|
|
2101
|
+
y = mt;
|
|
2102
2102
|
break;
|
|
2103
2103
|
}
|
|
2104
2104
|
}
|
|
2105
|
-
return
|
|
2105
|
+
return y;
|
|
2106
2106
|
}
|
|
2107
|
-
function
|
|
2108
|
-
const
|
|
2109
|
-
return
|
|
2107
|
+
function xe(v) {
|
|
2108
|
+
const y = Ke(v);
|
|
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 Te(v, y) {
|
|
2115
2115
|
if (l) {
|
|
2116
|
-
const
|
|
2117
|
-
for (const le in
|
|
2118
|
-
Le(
|
|
2119
|
-
|
|
2116
|
+
const J = { [v]: y };
|
|
2117
|
+
for (const le in J)
|
|
2118
|
+
Le(J, le) && dt(J[le]);
|
|
2119
|
+
y = J[v];
|
|
2120
2120
|
}
|
|
2121
|
-
g.value[v] =
|
|
2121
|
+
g.value[v] = y, h.messages = g.value;
|
|
2122
2122
|
}
|
|
2123
|
-
function Be(v,
|
|
2123
|
+
function Be(v, y) {
|
|
2124
2124
|
g.value[v] = g.value[v] || {};
|
|
2125
|
-
const
|
|
2125
|
+
const J = { [v]: y };
|
|
2126
2126
|
if (l)
|
|
2127
|
-
for (const le in
|
|
2128
|
-
Le(
|
|
2129
|
-
|
|
2127
|
+
for (const le in J)
|
|
2128
|
+
Le(J, le) && dt(J[le]);
|
|
2129
|
+
y = J[v], Et(y, g.value[v]), h.messages = g.value;
|
|
2130
2130
|
}
|
|
2131
2131
|
function O(v) {
|
|
2132
|
-
return
|
|
2132
|
+
return E.value[v] || {};
|
|
2133
2133
|
}
|
|
2134
|
-
function r(v,
|
|
2135
|
-
|
|
2134
|
+
function r(v, y) {
|
|
2135
|
+
E.value[v] = y, h.datetimeFormats = E.value, En(h, v, y);
|
|
2136
2136
|
}
|
|
2137
|
-
function o(v,
|
|
2138
|
-
|
|
2137
|
+
function o(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
|
-
return
|
|
2141
|
+
return C.value[v] || {};
|
|
2142
2142
|
}
|
|
2143
|
-
function A(v,
|
|
2144
|
-
|
|
2143
|
+
function A(v, y) {
|
|
2144
|
+
C.value[v] = y, h.numberFormats = C.value, Nn(h, v, y);
|
|
2145
2145
|
}
|
|
2146
|
-
function M(v,
|
|
2147
|
-
|
|
2146
|
+
function M(v, y) {
|
|
2147
|
+
C.value[v] = Ie(C.value[v] || {}, y), h.numberFormats = C.value, Nn(h, v, y);
|
|
2148
2148
|
}
|
|
2149
|
-
An++, t && on && (
|
|
2150
|
-
d && (u.value = v,
|
|
2151
|
-
}),
|
|
2152
|
-
d && (i.value = v,
|
|
2149
|
+
An++, t && on && (wt(t.locale, (v) => {
|
|
2150
|
+
d && (u.value = v, h.locale = v, lt(h, u.value, i.value));
|
|
2151
|
+
}), wt(t.fallbackLocale, (v) => {
|
|
2152
|
+
d && (i.value = v, h.fallbackLocale = v, lt(h, u.value, i.value));
|
|
2153
2153
|
}));
|
|
2154
2154
|
const P = {
|
|
2155
2155
|
id: An,
|
|
@@ -2159,7 +2159,7 @@ function Oo(e = {}) {
|
|
|
2159
2159
|
return d;
|
|
2160
2160
|
},
|
|
2161
2161
|
set inheritLocale(v) {
|
|
2162
|
-
d = v, v && t && (u.value = t.locale.value, i.value = t.fallbackLocale.value, lt(
|
|
2162
|
+
d = 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();
|
|
@@ -2178,49 +2178,49 @@ function Oo(e = {}) {
|
|
|
2178
2178
|
return N;
|
|
2179
2179
|
},
|
|
2180
2180
|
set missingWarn(v) {
|
|
2181
|
-
N = v,
|
|
2181
|
+
N = v, h.missingWarn = N;
|
|
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
|
-
return
|
|
2190
|
+
return w;
|
|
2191
2191
|
},
|
|
2192
2192
|
set fallbackRoot(v) {
|
|
2193
|
-
|
|
2193
|
+
w = v;
|
|
2194
2194
|
},
|
|
2195
2195
|
get fallbackFormat() {
|
|
2196
2196
|
return R;
|
|
2197
2197
|
},
|
|
2198
2198
|
set fallbackFormat(v) {
|
|
2199
|
-
R = v,
|
|
2199
|
+
R = v, h.fallbackFormat = R;
|
|
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: Y,
|
|
2214
2214
|
getLocaleMessage: Fe,
|
|
2215
|
-
setLocaleMessage:
|
|
2215
|
+
setLocaleMessage: Te,
|
|
2216
2216
|
mergeLocaleMessage: Be,
|
|
2217
|
-
getPostTranslationHandler:
|
|
2217
|
+
getPostTranslationHandler: x,
|
|
2218
2218
|
setPostTranslationHandler: j,
|
|
2219
2219
|
getMissingHandler: G,
|
|
2220
|
-
setMissingHandler:
|
|
2221
|
-
[
|
|
2220
|
+
setMissingHandler: W,
|
|
2221
|
+
[yo]: he
|
|
2222
2222
|
};
|
|
2223
|
-
return P.datetimeFormats =
|
|
2223
|
+
return P.datetimeFormats = T, P.numberFormats = U, P.rt = ne, P.te = $e, P.tm = xe, P.d = Q, P.n = _e, P.getDateTimeFormat = O, P.setDateTimeFormat = r, P.mergeDateTimeFormat = o, P.getNumberFormat = _, P.setNumberFormat = A, P.mergeNumberFormat = M, P[ss] = n, P[Vt] = q, P[Wt] = K, P[Gt] = De, P;
|
|
2224
2224
|
}
|
|
2225
2225
|
const qt = {
|
|
2226
2226
|
tag: {
|
|
@@ -2275,11 +2275,11 @@ function ls(e, t, n, s) {
|
|
|
2275
2275
|
const i = s(e.value, d, u);
|
|
2276
2276
|
let g = [d.key];
|
|
2277
2277
|
be(i) ? g = i.map((N, F) => {
|
|
2278
|
-
const
|
|
2278
|
+
const w = l[N.type], R = w ? w({ [N.type]: N.value, index: F, parts: i }) : [N.value];
|
|
2279
2279
|
return Lo(R) && (R[0].key = `${N.type}-${F}`), R;
|
|
2280
2280
|
}) : Z(i) && (g = [i]);
|
|
2281
|
-
const
|
|
2282
|
-
return
|
|
2281
|
+
const E = Ie(oe(), a), C = Z(e.tag) || te(e.tag) ? e.tag : as();
|
|
2282
|
+
return Wn(C, E, g);
|
|
2283
2283
|
};
|
|
2284
2284
|
}
|
|
2285
2285
|
Ie({
|
|
@@ -2300,7 +2300,7 @@ Ie({
|
|
|
2300
2300
|
type: [String, Object]
|
|
2301
2301
|
}
|
|
2302
2302
|
}, qt);
|
|
2303
|
-
const Ro = /* @__PURE__ */
|
|
2303
|
+
const Ro = /* @__PURE__ */ Je("global-vue-i18n");
|
|
2304
2304
|
function St(e = {}) {
|
|
2305
2305
|
const t = Yt();
|
|
2306
2306
|
if (t == null)
|
|
@@ -2311,7 +2311,7 @@ function St(e = {}) {
|
|
|
2311
2311
|
if (a === "global")
|
|
2312
2312
|
return No(s, e, l), s;
|
|
2313
2313
|
if (a === "parent") {
|
|
2314
|
-
let i =
|
|
2314
|
+
let i = wo(n, t, e.__useComponent);
|
|
2315
2315
|
return i == null && (i = s), i;
|
|
2316
2316
|
}
|
|
2317
2317
|
const d = n;
|
|
@@ -2329,15 +2329,15 @@ function Ao(e) {
|
|
|
2329
2329
|
return t;
|
|
2330
2330
|
}
|
|
2331
2331
|
function ko(e, t) {
|
|
2332
|
-
return
|
|
2332
|
+
return Tt(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;
|
|
2336
2336
|
}
|
|
2337
|
-
function
|
|
2337
|
+
function wo(e, t, n = !1) {
|
|
2338
2338
|
let s = null;
|
|
2339
2339
|
const l = t.root;
|
|
2340
|
-
let a =
|
|
2340
|
+
let a = Do(t, n);
|
|
2341
2341
|
for (; a != null; ) {
|
|
2342
2342
|
const d = e;
|
|
2343
2343
|
if (e.mode === "composition")
|
|
@@ -2352,7 +2352,7 @@ function Do(e, t, n = !1) {
|
|
|
2352
2352
|
}
|
|
2353
2353
|
return s;
|
|
2354
2354
|
}
|
|
2355
|
-
function
|
|
2355
|
+
function Do(e, t = !1) {
|
|
2356
2356
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2357
2357
|
}
|
|
2358
2358
|
function Fo(e, t, n) {
|
|
@@ -2364,13 +2364,13 @@ function Fo(e, t, n) {
|
|
|
2364
2364
|
l && (l(), delete s[Zt]);
|
|
2365
2365
|
}, t);
|
|
2366
2366
|
}
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
Qr(
|
|
2367
|
+
Eo();
|
|
2368
|
+
zr(Mr);
|
|
2369
|
+
Qr(Jr);
|
|
2370
2370
|
qr(Hn);
|
|
2371
2371
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2372
2372
|
const e = Xe();
|
|
2373
|
-
e.__INTLIFY__ = !0,
|
|
2373
|
+
e.__INTLIFY__ = !0, wr(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2374
2374
|
}
|
|
2375
2375
|
const vt = /* @__PURE__ */ Re({
|
|
2376
2376
|
__name: "InheritPermissionTooltip",
|
|
@@ -2383,15 +2383,15 @@ const vt = /* @__PURE__ */ Re({
|
|
|
2383
2383
|
setup(e) {
|
|
2384
2384
|
const { t } = St();
|
|
2385
2385
|
return (n, s) => {
|
|
2386
|
-
const l =
|
|
2387
|
-
return
|
|
2386
|
+
const l = we("FmIcon"), a = we("FmTooltip");
|
|
2387
|
+
return $(), Ne(a, {
|
|
2388
2388
|
variant: "plain",
|
|
2389
2389
|
placement: "right",
|
|
2390
2390
|
"z-index": 50
|
|
2391
2391
|
}, {
|
|
2392
2392
|
content: de(() => [
|
|
2393
2393
|
ae("div", null, Oe(H(t)("team.memberForm.permissions.inherited")), 1),
|
|
2394
|
-
(
|
|
2394
|
+
($(!0), ie(ke, null, ye(e.item.setNames, (d) => ($(), ie("div", { key: d }, [
|
|
2395
2395
|
ae("div", null, "- " + Oe(d), 1)
|
|
2396
2396
|
]))), 128))
|
|
2397
2397
|
]),
|
|
@@ -2421,58 +2421,58 @@ function Mn(e, t, n) {
|
|
|
2421
2421
|
actions: Array.from(a)
|
|
2422
2422
|
});
|
|
2423
2423
|
}
|
|
2424
|
-
const
|
|
2424
|
+
const wn = Object.values(Ss), Po = {
|
|
2425
2425
|
read: "View",
|
|
2426
2426
|
create: "Duplicate",
|
|
2427
2427
|
update: "Edit"
|
|
2428
2428
|
};
|
|
2429
2429
|
function jo(e, t, n, s) {
|
|
2430
|
-
const { t: l } = He(), { getFlagValue: a, getFlag: d } = Os(), u =
|
|
2430
|
+
const { t: l } = He(), { getFlagValue: a, getFlag: d } = Os(), u = z(() => {
|
|
2431
2431
|
var j;
|
|
2432
|
-
const m = /* @__PURE__ */ new Map(),
|
|
2432
|
+
const m = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map();
|
|
2433
2433
|
for (const G of t.value) {
|
|
2434
|
-
const
|
|
2435
|
-
if (!
|
|
2434
|
+
const W = G.category;
|
|
2435
|
+
if (!W) continue;
|
|
2436
2436
|
const B = G.subject;
|
|
2437
2437
|
if (n.value.includes(G.subject) || G.showByFeatureFlag && ((j = d(G.showByFeatureFlag)) == null ? void 0 : j.enabled) === !1 && a(G.showByFeatureFlag) === "true")
|
|
2438
2438
|
continue;
|
|
2439
|
-
m.has(
|
|
2439
|
+
m.has(W) || m.set(W, []);
|
|
2440
2440
|
const Y = U.get(B) ?? 0;
|
|
2441
|
-
U.set(B, Y + 1), m.get(
|
|
2441
|
+
U.set(B, Y + 1), m.get(W).push({
|
|
2442
2442
|
label: l(`permissionSet.permissionLabels.${B}`, G.label),
|
|
2443
2443
|
value: B,
|
|
2444
2444
|
optionKey: `${B}::${Y}`
|
|
2445
|
-
}),
|
|
2445
|
+
}), T.has(B) || T.set(B, G);
|
|
2446
2446
|
}
|
|
2447
|
-
return [...m.keys()].sort((G,
|
|
2448
|
-
const B =
|
|
2449
|
-
return B === -1 && Y === -1 ? G.localeCompare(
|
|
2447
|
+
return [...m.keys()].sort((G, W) => {
|
|
2448
|
+
const B = wn.indexOf(G), Y = wn.indexOf(W);
|
|
2449
|
+
return B === -1 && Y === -1 ? G.localeCompare(W) : B === -1 ? 1 : Y === -1 ? -1 : B - Y;
|
|
2450
2450
|
}).map((G) => {
|
|
2451
|
-
const
|
|
2452
|
-
for (const
|
|
2453
|
-
const
|
|
2454
|
-
|
|
2451
|
+
const W = m.get(G), B = l(`permissionSet.categoryLabels.${G}`, G), Y = /* @__PURE__ */ new Map();
|
|
2452
|
+
for (const K of W) {
|
|
2453
|
+
const he = T.get(K.value);
|
|
2454
|
+
he && Y.set(K.value, he.actions);
|
|
2455
2455
|
}
|
|
2456
|
-
const ne =
|
|
2457
|
-
const
|
|
2458
|
-
return
|
|
2456
|
+
const ne = W.some((K) => {
|
|
2457
|
+
const he = Y.get(K.value);
|
|
2458
|
+
return he && he.length > 1;
|
|
2459
2459
|
}), Q = ne ? [
|
|
2460
2460
|
...new Set(
|
|
2461
|
-
|
|
2461
|
+
W.flatMap((K) => Y.get(K.value) ?? []).filter((K) => K !== "manage")
|
|
2462
2462
|
)
|
|
2463
2463
|
] : [], _e = /* @__PURE__ */ new Map();
|
|
2464
|
-
for (const
|
|
2465
|
-
|
|
2464
|
+
for (const K of e.value)
|
|
2465
|
+
W.some((he) => he.value === K.subject) && !K.inverted && _e.set(K.subject, new Set(K.actions));
|
|
2466
2466
|
const ce = ne ? e.value.filter(
|
|
2467
|
-
(
|
|
2468
|
-
).map((
|
|
2469
|
-
var
|
|
2470
|
-
return (
|
|
2471
|
-
}), fe = (re == null ? void 0 : re.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(),
|
|
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), re = W.find((K) => {
|
|
2469
|
+
var he;
|
|
2470
|
+
return (he = T.get(K.value)) == null ? void 0 : he.isCategoryCover;
|
|
2471
|
+
}), fe = (re == null ? void 0 : re.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), De = q.has("manage");
|
|
2472
2472
|
return {
|
|
2473
2473
|
category: G,
|
|
2474
2474
|
label: B,
|
|
2475
|
-
options:
|
|
2475
|
+
options: W,
|
|
2476
2476
|
selectedSubjects: ce,
|
|
2477
2477
|
isMultiAction: ne,
|
|
2478
2478
|
actionColumns: Q,
|
|
@@ -2480,21 +2480,21 @@ function jo(e, t, n, s) {
|
|
|
2480
2480
|
selectedActionsMap: _e,
|
|
2481
2481
|
coverSubject: fe,
|
|
2482
2482
|
coverSelectedActions: q,
|
|
2483
|
-
coverCoversAll:
|
|
2483
|
+
coverCoversAll: De
|
|
2484
2484
|
};
|
|
2485
2485
|
});
|
|
2486
2486
|
});
|
|
2487
|
-
function i(m,
|
|
2488
|
-
const U = u.value.find((Q) => Q.category === m),
|
|
2487
|
+
function i(m, T) {
|
|
2488
|
+
const U = u.value.find((Q) => Q.category === m), x = (U == null ? void 0 : U.options) ?? [], j = new Set(x.map((Q) => Q.value)), G = new Set(T), W = /* @__PURE__ */ new Map();
|
|
2489
2489
|
for (const Q of e.value)
|
|
2490
|
-
j.has(Q.subject) && !Q.inverted &&
|
|
2491
|
-
const B = U != null && U.coverSubject ?
|
|
2490
|
+
j.has(Q.subject) && !Q.inverted && W.set(Q.subject, Q.conditions);
|
|
2491
|
+
const B = U != null && U.coverSubject ? W.get(U.coverSubject) : void 0, Y = /* @__PURE__ */ new Set(), ne = t.value.flatMap(
|
|
2492
2492
|
({ category: Q, showByFeatureFlag: _e, isCategoryCover: ce, ...re }) => {
|
|
2493
2493
|
const fe = re.subject;
|
|
2494
2494
|
if (!G.has(fe) || Y.has(fe)) return [];
|
|
2495
2495
|
Y.add(fe);
|
|
2496
2496
|
let q;
|
|
2497
|
-
return
|
|
2497
|
+
return W.has(fe) ? q = W.get(fe) : U != null && U.coverSubject && fe !== U.coverSubject && (q = B), [
|
|
2498
2498
|
{ ...re, ...q !== void 0 && { conditions: q } }
|
|
2499
2499
|
];
|
|
2500
2500
|
}
|
|
@@ -2504,69 +2504,69 @@ function jo(e, t, n, s) {
|
|
|
2504
2504
|
...ne
|
|
2505
2505
|
]);
|
|
2506
2506
|
}
|
|
2507
|
-
function g(m,
|
|
2508
|
-
return F(m,
|
|
2507
|
+
function g(m, T) {
|
|
2508
|
+
return F(m, T) || c(m, T);
|
|
2509
2509
|
}
|
|
2510
|
-
function
|
|
2511
|
-
return m.options.length > 0 && m.options.every((
|
|
2510
|
+
function E(m) {
|
|
2511
|
+
return m.options.length > 0 && m.options.every((T) => g(m, T.value));
|
|
2512
2512
|
}
|
|
2513
|
-
function
|
|
2514
|
-
return m.options.length === 0 ||
|
|
2515
|
-
(
|
|
2513
|
+
function C(m) {
|
|
2514
|
+
return m.options.length === 0 || E(m) ? !1 : m.options.some(
|
|
2515
|
+
(T) => g(m, T.value) || w(m, T.value).length > 0
|
|
2516
2516
|
);
|
|
2517
2517
|
}
|
|
2518
2518
|
function N(m) {
|
|
2519
|
-
const
|
|
2520
|
-
if (
|
|
2519
|
+
const T = new Set(m.options.map((x) => x.value)), U = e.value.filter((x) => !T.has(x.subject));
|
|
2520
|
+
if (E(m))
|
|
2521
2521
|
s("update:model-value", U);
|
|
2522
2522
|
else {
|
|
2523
|
-
const
|
|
2523
|
+
const x = /* @__PURE__ */ new Map();
|
|
2524
2524
|
for (const B of e.value)
|
|
2525
|
-
|
|
2526
|
-
const j = m.coverSubject ?
|
|
2525
|
+
T.has(B.subject) && !B.inverted && x.set(B.subject, B.conditions);
|
|
2526
|
+
const j = m.coverSubject ? x.get(m.coverSubject) : void 0, G = /* @__PURE__ */ new Set(), W = t.value.flatMap(
|
|
2527
2527
|
({ category: B, showByFeatureFlag: Y, isCategoryCover: ne, ...Q }) => {
|
|
2528
2528
|
const _e = Q.subject;
|
|
2529
|
-
if (!
|
|
2529
|
+
if (!T.has(_e) || G.has(_e)) return [];
|
|
2530
2530
|
G.add(_e);
|
|
2531
2531
|
let ce;
|
|
2532
|
-
return
|
|
2532
|
+
return x.has(_e) ? ce = x.get(_e) : m.coverSubject && _e !== m.coverSubject && (ce = j), [
|
|
2533
2533
|
{ ...Q, ...ce !== void 0 && { conditions: ce } }
|
|
2534
2534
|
];
|
|
2535
2535
|
}
|
|
2536
2536
|
);
|
|
2537
|
-
s("update:model-value", [...U, ...
|
|
2537
|
+
s("update:model-value", [...U, ...W]);
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
|
-
function F(m,
|
|
2541
|
-
const U = m.selectedActionsMap.get(
|
|
2540
|
+
function F(m, T) {
|
|
2541
|
+
const U = m.selectedActionsMap.get(T);
|
|
2542
2542
|
return U ? U.has("manage") : !1;
|
|
2543
2543
|
}
|
|
2544
|
-
function
|
|
2545
|
-
const U = m.permissionActionsMap.get(
|
|
2544
|
+
function w(m, T) {
|
|
2545
|
+
const U = m.permissionActionsMap.get(T);
|
|
2546
2546
|
return U ? U.filter((j) => j !== "manage").filter(
|
|
2547
|
-
(j) => S(m,
|
|
2547
|
+
(j) => S(m, T, j) || b(m, T, j)
|
|
2548
2548
|
) : [];
|
|
2549
2549
|
}
|
|
2550
|
-
function R(m,
|
|
2551
|
-
return c(m,
|
|
2550
|
+
function R(m, T) {
|
|
2551
|
+
return c(m, T) ? !1 : !F(m, T) && w(m, T).length > 0;
|
|
2552
2552
|
}
|
|
2553
|
-
function
|
|
2554
|
-
if (!m.coverSubject ||
|
|
2553
|
+
function D(m, T) {
|
|
2554
|
+
if (!m.coverSubject || T === m.coverSubject) return;
|
|
2555
2555
|
const U = e.value.find(
|
|
2556
|
-
(
|
|
2556
|
+
(x) => !x.inverted && x.subject === m.coverSubject
|
|
2557
2557
|
);
|
|
2558
2558
|
return (U == null ? void 0 : U.conditions) || void 0;
|
|
2559
2559
|
}
|
|
2560
|
-
function f(m,
|
|
2560
|
+
function f(m, T, U) {
|
|
2561
2561
|
if (U) {
|
|
2562
|
-
const
|
|
2563
|
-
if (!
|
|
2562
|
+
const x = t.value.find((Q) => Q.subject === T);
|
|
2563
|
+
if (!x) return;
|
|
2564
2564
|
const {
|
|
2565
2565
|
category: j,
|
|
2566
2566
|
showByFeatureFlag: G,
|
|
2567
|
-
isCategoryCover:
|
|
2567
|
+
isCategoryCover: W,
|
|
2568
2568
|
...B
|
|
2569
|
-
} =
|
|
2569
|
+
} = x, Y = D(m, T), ne = e.value.filter((Q) => Q.subject !== T);
|
|
2570
2570
|
ne.push({
|
|
2571
2571
|
...B,
|
|
2572
2572
|
...Y !== void 0 && { conditions: Y }
|
|
@@ -2574,86 +2574,86 @@ function jo(e, t, n, s) {
|
|
|
2574
2574
|
} else
|
|
2575
2575
|
s(
|
|
2576
2576
|
"update:model-value",
|
|
2577
|
-
e.value.filter((
|
|
2577
|
+
e.value.filter((x) => x.subject !== T)
|
|
2578
2578
|
);
|
|
2579
2579
|
}
|
|
2580
|
-
function
|
|
2581
|
-
const U = m.permissionActionsMap.get(
|
|
2582
|
-
return U ? U.some((
|
|
2580
|
+
function p(m, T) {
|
|
2581
|
+
const U = m.permissionActionsMap.get(T);
|
|
2582
|
+
return U ? U.some((x) => x !== "manage") : !1;
|
|
2583
2583
|
}
|
|
2584
|
-
function S(m,
|
|
2585
|
-
const
|
|
2586
|
-
return
|
|
2584
|
+
function S(m, T, U) {
|
|
2585
|
+
const x = m.selectedActionsMap.get(T);
|
|
2586
|
+
return x ? x.has(U) : !1;
|
|
2587
2587
|
}
|
|
2588
|
-
function c(m,
|
|
2589
|
-
return !m.coverSubject ||
|
|
2588
|
+
function c(m, T) {
|
|
2589
|
+
return !m.coverSubject || T === m.coverSubject ? !1 : m.coverCoversAll;
|
|
2590
2590
|
}
|
|
2591
|
-
function b(m,
|
|
2592
|
-
return !m.coverSubject ||
|
|
2591
|
+
function b(m, T, U) {
|
|
2592
|
+
return !m.coverSubject || T === m.coverSubject ? !1 : m.coverCoversAll ? !0 : m.coverSelectedActions.has(U);
|
|
2593
2593
|
}
|
|
2594
|
-
function I(m,
|
|
2595
|
-
const
|
|
2596
|
-
return
|
|
2594
|
+
function I(m, T, U) {
|
|
2595
|
+
const x = m.permissionActionsMap.get(T);
|
|
2596
|
+
return x ? x.includes(U) : !1;
|
|
2597
2597
|
}
|
|
2598
|
-
function
|
|
2599
|
-
const
|
|
2598
|
+
function h(m, T, U) {
|
|
2599
|
+
const x = [...e.value], j = x.findIndex((W) => W.subject === m && !W.inverted);
|
|
2600
2600
|
if (U)
|
|
2601
2601
|
if (j >= 0) {
|
|
2602
|
-
const
|
|
2603
|
-
B.add(
|
|
2602
|
+
const W = { ...x[j] }, B = new Set(W.actions);
|
|
2603
|
+
B.add(T), W.actions = Array.from(B), x[j] = W;
|
|
2604
2604
|
} else {
|
|
2605
|
-
const
|
|
2606
|
-
if (!
|
|
2605
|
+
const W = t.value.find((re) => re.subject === m);
|
|
2606
|
+
if (!W) return;
|
|
2607
2607
|
const {
|
|
2608
2608
|
category: B,
|
|
2609
2609
|
showByFeatureFlag: Y,
|
|
2610
2610
|
isCategoryCover: ne,
|
|
2611
2611
|
...Q
|
|
2612
|
-
} =
|
|
2612
|
+
} = W, _e = u.value.find(
|
|
2613
2613
|
(re) => re.options.some((fe) => fe.value === m)
|
|
2614
|
-
), ce = _e ?
|
|
2615
|
-
|
|
2614
|
+
), ce = _e ? D(_e, m) : void 0;
|
|
2615
|
+
x.push({
|
|
2616
2616
|
...Q,
|
|
2617
|
-
actions: [
|
|
2617
|
+
actions: [T],
|
|
2618
2618
|
...ce !== void 0 && { conditions: ce }
|
|
2619
2619
|
});
|
|
2620
2620
|
}
|
|
2621
2621
|
else if (j >= 0) {
|
|
2622
|
-
const
|
|
2623
|
-
B.length === 0 ?
|
|
2622
|
+
const W = { ...x[j] }, B = W.actions.filter((Y) => Y !== T);
|
|
2623
|
+
B.length === 0 ? x.splice(j, 1) : (W.actions = B, x[j] = W);
|
|
2624
2624
|
}
|
|
2625
|
-
const G = t.value.find((
|
|
2626
|
-
G && Mn(
|
|
2625
|
+
const G = t.value.find((W) => W.subject === m);
|
|
2626
|
+
G && Mn(x, m, G.actions), s("update:model-value", x);
|
|
2627
2627
|
}
|
|
2628
|
-
function k(m,
|
|
2628
|
+
function k(m, T) {
|
|
2629
2629
|
const U = m.options.filter(
|
|
2630
|
-
(
|
|
2630
|
+
(x) => I(m, x.value, T)
|
|
2631
2631
|
);
|
|
2632
2632
|
return U.length === 0 ? !1 : U.every(
|
|
2633
|
-
(
|
|
2633
|
+
(x) => S(m, x.value, T) || b(m, x.value, T)
|
|
2634
2634
|
);
|
|
2635
2635
|
}
|
|
2636
|
-
function L(m,
|
|
2636
|
+
function L(m, T) {
|
|
2637
2637
|
const U = m.options.filter(
|
|
2638
|
-
(j) => I(m, j.value,
|
|
2638
|
+
(j) => I(m, j.value, T)
|
|
2639
2639
|
);
|
|
2640
2640
|
if (U.length === 0) return !1;
|
|
2641
|
-
const
|
|
2642
|
-
(j) => S(m, j.value,
|
|
2641
|
+
const x = U.filter(
|
|
2642
|
+
(j) => S(m, j.value, T) || b(m, j.value, T)
|
|
2643
2643
|
).length;
|
|
2644
|
-
return
|
|
2644
|
+
return x > 0 && x < U.length;
|
|
2645
2645
|
}
|
|
2646
|
-
function X(m,
|
|
2647
|
-
const
|
|
2646
|
+
function X(m, T, U) {
|
|
2647
|
+
const x = [...e.value];
|
|
2648
2648
|
for (const j of m.options) {
|
|
2649
|
-
if (!I(m, j.value,
|
|
2650
|
-
const G = j.value,
|
|
2649
|
+
if (!I(m, j.value, T)) continue;
|
|
2650
|
+
const G = j.value, W = x.findIndex(
|
|
2651
2651
|
(Y) => Y.subject === G && !Y.inverted
|
|
2652
2652
|
);
|
|
2653
2653
|
if (U)
|
|
2654
|
-
if (
|
|
2655
|
-
const Y = { ...W
|
|
2656
|
-
ne.add(
|
|
2654
|
+
if (W >= 0) {
|
|
2655
|
+
const Y = { ...x[W] }, ne = new Set(Y.actions);
|
|
2656
|
+
ne.add(T), Y.actions = Array.from(ne), x[W] = Y;
|
|
2657
2657
|
} else {
|
|
2658
2658
|
const Y = t.value.find((fe) => fe.subject === G);
|
|
2659
2659
|
if (!Y) continue;
|
|
@@ -2662,48 +2662,48 @@ function jo(e, t, n, s) {
|
|
|
2662
2662
|
showByFeatureFlag: Q,
|
|
2663
2663
|
isCategoryCover: _e,
|
|
2664
2664
|
...ce
|
|
2665
|
-
} = Y, re =
|
|
2666
|
-
|
|
2665
|
+
} = Y, re = D(m, G);
|
|
2666
|
+
x.push({
|
|
2667
2667
|
...ce,
|
|
2668
|
-
actions: [
|
|
2668
|
+
actions: [T],
|
|
2669
2669
|
...re !== void 0 && { conditions: re }
|
|
2670
2670
|
});
|
|
2671
2671
|
}
|
|
2672
|
-
else if (
|
|
2673
|
-
const Y = { ...W
|
|
2674
|
-
ne.length === 0 ?
|
|
2672
|
+
else if (W >= 0) {
|
|
2673
|
+
const Y = { ...x[W] }, ne = Y.actions.filter((Q) => Q !== T);
|
|
2674
|
+
ne.length === 0 ? x.splice(W, 1) : (Y.actions = ne, x[W] = Y);
|
|
2675
2675
|
}
|
|
2676
2676
|
const B = t.value.find((Y) => Y.subject === G);
|
|
2677
|
-
B && Mn(
|
|
2677
|
+
B && Mn(x, G, B.actions);
|
|
2678
2678
|
}
|
|
2679
|
-
s("update:model-value",
|
|
2679
|
+
s("update:model-value", x);
|
|
2680
2680
|
}
|
|
2681
2681
|
function V(m) {
|
|
2682
|
-
const
|
|
2683
|
-
return l(
|
|
2682
|
+
const T = `permissionSet.actionLabels.${m}`, U = Po[m] ?? m.charAt(0).toUpperCase() + m.slice(1);
|
|
2683
|
+
return l(T, U);
|
|
2684
2684
|
}
|
|
2685
2685
|
return {
|
|
2686
2686
|
categoryGroups: u,
|
|
2687
2687
|
toggleCategory: i,
|
|
2688
|
-
isAllManageChecked:
|
|
2689
|
-
isAllManageIndeterminate:
|
|
2688
|
+
isAllManageChecked: E,
|
|
2689
|
+
isAllManageIndeterminate: C,
|
|
2690
2690
|
toggleAllManage: N,
|
|
2691
2691
|
isManageChecked: F,
|
|
2692
2692
|
isManageIndeterminate: R,
|
|
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: k,
|
|
2701
2701
|
isAllActionIndeterminate: L,
|
|
2702
2702
|
toggleAllAction: X,
|
|
2703
2703
|
actionLabel: V
|
|
2704
2704
|
};
|
|
2705
2705
|
}
|
|
2706
|
-
const Uo = { class: "flex flex-col gap-16" },
|
|
2706
|
+
const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm-600" }, Vo = { class: "mt-16" }, Wo = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Go = ["onClick"], Zo = { class: "flex justify-center" }, Bo = { class: "flex items-center min-w-0 gap-8" }, Yo = ["title", "onClick"], Xo = { class: "flex justify-center" }, Ho = /* @__PURE__ */ Re({
|
|
2707
2707
|
__name: "BasePermission",
|
|
2708
2708
|
props: {
|
|
2709
2709
|
modelValue: {
|
|
@@ -2725,20 +2725,20 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2725
2725
|
},
|
|
2726
2726
|
emits: ["update:model-value"],
|
|
2727
2727
|
setup(e, { emit: t }) {
|
|
2728
|
-
const n = e, s = t, { t: l } = He(), a =
|
|
2728
|
+
const n = e, s = t, { t: l } = He(), a = z(() => [...Gn, ...n.additionalPermissions]), {
|
|
2729
2729
|
categoryGroups: d,
|
|
2730
2730
|
isAllManageChecked: u,
|
|
2731
2731
|
isAllManageIndeterminate: i,
|
|
2732
2732
|
toggleAllManage: g,
|
|
2733
|
-
isManageChecked:
|
|
2734
|
-
isManageIndeterminate:
|
|
2733
|
+
isManageChecked: E,
|
|
2734
|
+
isManageIndeterminate: C,
|
|
2735
2735
|
toggleManage: N,
|
|
2736
2736
|
isActionChecked: F,
|
|
2737
|
-
isRowFullyCoveredByCover:
|
|
2737
|
+
isRowFullyCoveredByCover: w,
|
|
2738
2738
|
isActionCoveredByCover: R,
|
|
2739
|
-
permissionDefinesAction:
|
|
2739
|
+
permissionDefinesAction: D,
|
|
2740
2740
|
toggleAction: f,
|
|
2741
|
-
isAllActionChecked:
|
|
2741
|
+
isAllActionChecked: p,
|
|
2742
2742
|
isAllActionIndeterminate: S,
|
|
2743
2743
|
toggleAllAction: c,
|
|
2744
2744
|
actionLabel: b
|
|
@@ -2752,20 +2752,20 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2752
2752
|
const L = k.selectedSubjects.length;
|
|
2753
2753
|
return L === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: L });
|
|
2754
2754
|
}
|
|
2755
|
-
function
|
|
2756
|
-
return
|
|
2757
|
-
(X) =>
|
|
2755
|
+
function h(k, L) {
|
|
2756
|
+
return E(k, L) || w(k, L) ? !0 : k.actionColumns.some(
|
|
2757
|
+
(X) => D(k, L, X) && (F(k, L, X) || R(k, L, X))
|
|
2758
2758
|
);
|
|
2759
2759
|
}
|
|
2760
2760
|
return (k, L) => {
|
|
2761
|
-
const X =
|
|
2762
|
-
return
|
|
2763
|
-
(
|
|
2761
|
+
const X = we("FmCheckbox");
|
|
2762
|
+
return $(), ie("div", Uo, [
|
|
2763
|
+
($(!0), ie(ke, null, ye(H(d), (V) => ($(), Ne(Xt, {
|
|
2764
2764
|
key: V.category,
|
|
2765
2765
|
subtitle: I(V)
|
|
2766
2766
|
}, {
|
|
2767
2767
|
title: de(() => [
|
|
2768
|
-
ae("p",
|
|
2768
|
+
ae("p", xo, Oe(V.label), 1)
|
|
2769
2769
|
]),
|
|
2770
2770
|
default: de(() => [
|
|
2771
2771
|
ae("div", Vo, [
|
|
@@ -2776,8 +2776,8 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2776
2776
|
})
|
|
2777
2777
|
}, [
|
|
2778
2778
|
L[0] || (L[0] = ae("div", null, null, -1)),
|
|
2779
|
-
ae("div",
|
|
2780
|
-
(
|
|
2779
|
+
ae("div", Wo, Oe(H(l)("team.memberForm.permissions.columnManage")), 1),
|
|
2780
|
+
($(!0), ie(ke, null, ye(V.actionColumns, (m) => ($(), ie("div", {
|
|
2781
2781
|
key: `header-${m}`,
|
|
2782
2782
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2783
2783
|
}, Oe(H(b)(m)), 1))), 128))
|
|
@@ -2803,23 +2803,23 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2803
2803
|
"onUpdate:modelValue": (m) => H(g)(V)
|
|
2804
2804
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2805
2805
|
]),
|
|
2806
|
-
(
|
|
2806
|
+
($(!0), ie(ke, null, ye(V.actionColumns, (m) => ($(), ie("div", {
|
|
2807
2807
|
key: `all-${m}`,
|
|
2808
2808
|
class: "flex justify-center"
|
|
2809
2809
|
}, [
|
|
2810
2810
|
ue(X, {
|
|
2811
|
-
"model-value": H(
|
|
2811
|
+
"model-value": H(p)(V, m),
|
|
2812
2812
|
indeterminate: H(S)(V, m),
|
|
2813
2813
|
value: m,
|
|
2814
2814
|
disabled: e.disable,
|
|
2815
2815
|
size: "sm",
|
|
2816
2816
|
dense: "",
|
|
2817
|
-
"onUpdate:modelValue": (
|
|
2817
|
+
"onUpdate:modelValue": (T) => H(c)(V, m, T)
|
|
2818
2818
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2819
2819
|
]))), 128))
|
|
2820
2820
|
], 4),
|
|
2821
2821
|
L[1] || (L[1] = ae("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2822
|
-
(
|
|
2822
|
+
($(!0), ie(ke, null, ye(V.options, (m) => ($(), ie("div", {
|
|
2823
2823
|
key: m.optionKey,
|
|
2824
2824
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2825
2825
|
style: nt({
|
|
@@ -2830,40 +2830,40 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2830
2830
|
ae("span", {
|
|
2831
2831
|
class: "block truncate cursor-pointer",
|
|
2832
2832
|
title: m.label,
|
|
2833
|
-
onClick: (
|
|
2833
|
+
onClick: (T) => !e.disable && !H(w)(V, m.value) && H(N)(V, m.value, !H(E)(V, m.value))
|
|
2834
2834
|
}, Oe(m.label), 9, Yo),
|
|
2835
2835
|
Se(k.$slots, `checkbox-${m.value}-append`, {
|
|
2836
2836
|
option: m,
|
|
2837
|
-
isEffectiveSelected:
|
|
2838
|
-
isCoveredByCover: H(
|
|
2837
|
+
isEffectiveSelected: h(V, m.value),
|
|
2838
|
+
isCoveredByCover: H(w)(V, m.value) || V.actionColumns.some((T) => H(R)(V, m.value, T))
|
|
2839
2839
|
}),
|
|
2840
2840
|
Se(k.$slots, `checkbox-${m.value}-icon`, {
|
|
2841
2841
|
option: m,
|
|
2842
|
-
isEffectiveSelected:
|
|
2843
|
-
isCoveredByCover: H(
|
|
2842
|
+
isEffectiveSelected: h(V, m.value),
|
|
2843
|
+
isCoveredByCover: H(w)(V, m.value) || V.actionColumns.some((T) => H(R)(V, m.value, T))
|
|
2844
2844
|
})
|
|
2845
2845
|
]),
|
|
2846
2846
|
ae("div", Xo, [
|
|
2847
2847
|
ue(X, {
|
|
2848
|
-
"model-value": H(
|
|
2848
|
+
"model-value": H(E)(V, m.value) || H(w)(V, m.value),
|
|
2849
2849
|
value: m.value,
|
|
2850
|
-
disabled: e.disable || H(
|
|
2851
|
-
indeterminate: H(
|
|
2850
|
+
disabled: e.disable || H(w)(V, m.value),
|
|
2851
|
+
indeterminate: H(C)(V, m.value),
|
|
2852
2852
|
size: "sm",
|
|
2853
|
-
"onUpdate:modelValue": (
|
|
2853
|
+
"onUpdate:modelValue": (T) => H(N)(V, m.value, T)
|
|
2854
2854
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2855
2855
|
]),
|
|
2856
|
-
(
|
|
2857
|
-
key: `${m.optionKey}-${
|
|
2856
|
+
($(!0), ie(ke, null, ye(V.actionColumns, (T) => ($(), ie("div", {
|
|
2857
|
+
key: `${m.optionKey}-${T}`,
|
|
2858
2858
|
class: "flex justify-center"
|
|
2859
2859
|
}, [
|
|
2860
|
-
H(
|
|
2860
|
+
H(D)(V, m.value, T) ? ($(), Ne(X, {
|
|
2861
2861
|
key: 0,
|
|
2862
|
-
"model-value": H(F)(V, m.value,
|
|
2863
|
-
value:
|
|
2864
|
-
disabled: e.disable || H(R)(V, m.value,
|
|
2862
|
+
"model-value": H(F)(V, m.value, T) || H(R)(V, m.value, T),
|
|
2863
|
+
value: T,
|
|
2864
|
+
disabled: e.disable || H(R)(V, m.value, T),
|
|
2865
2865
|
size: "sm",
|
|
2866
|
-
"onUpdate:modelValue": (U) => H(f)(m.value,
|
|
2866
|
+
"onUpdate:modelValue": (U) => H(f)(m.value, T, U)
|
|
2867
2867
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Me("", !0)
|
|
2868
2868
|
]))), 128))
|
|
2869
2869
|
], 4))), 128))
|
|
@@ -2874,13 +2874,13 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2874
2874
|
]);
|
|
2875
2875
|
};
|
|
2876
2876
|
}
|
|
2877
|
-
}),
|
|
2877
|
+
}), Jo = { class: "space-y-16" }, $o = {
|
|
2878
2878
|
key: 0,
|
|
2879
2879
|
class: "flex fm-typo-en-title-sm-600"
|
|
2880
|
-
},
|
|
2880
|
+
}, Ko = {
|
|
2881
2881
|
key: 0,
|
|
2882
2882
|
class: "q-mr-xs text-red col"
|
|
2883
|
-
},
|
|
2883
|
+
}, zo = { class: "form-input" }, Qo = /* @__PURE__ */ Re({
|
|
2884
2884
|
__name: "AppForm",
|
|
2885
2885
|
props: {
|
|
2886
2886
|
title: {
|
|
@@ -2898,17 +2898,17 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2898
2898
|
},
|
|
2899
2899
|
setup(e) {
|
|
2900
2900
|
const t = e;
|
|
2901
|
-
return (n, s) => (
|
|
2901
|
+
return (n, s) => ($(), ie("div", Jo, [
|
|
2902
2902
|
Se(n.$slots, "top", {}, () => [
|
|
2903
|
-
t.title ? (
|
|
2903
|
+
t.title ? ($(), ie("div", $o, [
|
|
2904
2904
|
ae("div", null, [
|
|
2905
|
-
t.required ? (
|
|
2905
|
+
t.required ? ($(), ie("span", Ko, "*")) : Me("", !0),
|
|
2906
2906
|
_s(Oe(t.title), 1)
|
|
2907
2907
|
]),
|
|
2908
2908
|
Se(n.$slots, "title-right")
|
|
2909
2909
|
])) : Me("", !0)
|
|
2910
2910
|
]),
|
|
2911
|
-
ae("div",
|
|
2911
|
+
ae("div", zo, [
|
|
2912
2912
|
Se(n.$slots, "default")
|
|
2913
2913
|
])
|
|
2914
2914
|
]));
|
|
@@ -2974,27 +2974,27 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2974
2974
|
},
|
|
2975
2975
|
emits: ["update:model-value"],
|
|
2976
2976
|
setup(e, { emit: t }) {
|
|
2977
|
-
const n = e, s = t, { t: l } = He(), a = st(!1), d =
|
|
2978
|
-
() => n.modelValue.filter((R) => n.options.some((
|
|
2979
|
-
),
|
|
2977
|
+
const n = e, s = t, { t: l } = He(), a = st(!1), d = hs(), 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-${Rs(6)}`, g = z(() => u.value !== !0), E = z(
|
|
2978
|
+
() => n.modelValue.filter((R) => n.options.some((D) => D.value === R))
|
|
2979
|
+
), C = z(
|
|
2980
2980
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2981
|
-
), N =
|
|
2981
|
+
), N = z(() => n.options.length > 0 && n.options.length === E.value.length);
|
|
2982
2982
|
function F() {
|
|
2983
|
-
const R = n.modelValue.filter((
|
|
2983
|
+
const R = n.modelValue.filter((D) => !E.value.includes(D));
|
|
2984
2984
|
if (N.value === !0)
|
|
2985
2985
|
s("update:model-value", R);
|
|
2986
2986
|
else {
|
|
2987
|
-
const
|
|
2988
|
-
s("update:model-value", [...R, ...
|
|
2987
|
+
const D = n.includeDisabledOptionsWhenSelectAll ? n.options.map((f) => f.value) : n.options.filter((f) => !f.disabled).map((f) => f.value);
|
|
2988
|
+
s("update:model-value", [...R, ...D]);
|
|
2989
2989
|
}
|
|
2990
2990
|
}
|
|
2991
|
-
function
|
|
2991
|
+
function w(R, D) {
|
|
2992
2992
|
let f = It(n.modelValue);
|
|
2993
|
-
|
|
2993
|
+
D ? f.every((p) => p !== R) && f.push(R) : f = f.filter((p) => p !== R), s("update:model-value", f);
|
|
2994
2994
|
}
|
|
2995
|
-
return (R,
|
|
2996
|
-
const f =
|
|
2997
|
-
return
|
|
2995
|
+
return (R, D) => {
|
|
2996
|
+
const f = we("FmCheckbox");
|
|
2997
|
+
return $(), Ne(Qo, {
|
|
2998
2998
|
id: i,
|
|
2999
2999
|
title: e.title,
|
|
3000
3000
|
required: !1
|
|
@@ -3003,19 +3003,19 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3003
3003
|
Se(R.$slots, "top")
|
|
3004
3004
|
]),
|
|
3005
3005
|
default: de(() => [
|
|
3006
|
-
n.showAllToggle ? (
|
|
3006
|
+
n.showAllToggle ? ($(), Ne(f, {
|
|
3007
3007
|
key: 0,
|
|
3008
3008
|
"model-value": N.value,
|
|
3009
3009
|
disabled: e.disable,
|
|
3010
|
-
label:
|
|
3010
|
+
label: C.value,
|
|
3011
3011
|
style: nt(`margin-bottom: ${n.gutter}px`),
|
|
3012
3012
|
size: "sm",
|
|
3013
3013
|
dense: "",
|
|
3014
|
-
value:
|
|
3014
|
+
value: C.value,
|
|
3015
3015
|
"onUpdate:modelValue": F
|
|
3016
3016
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Me("", !0),
|
|
3017
|
-
(
|
|
3018
|
-
key:
|
|
3017
|
+
($(!0), ie(ke, null, ye(e.options, (p, S) => ($(), 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,48 +3024,48 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { 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) =>
|
|
3030
|
+
label: p.label,
|
|
3031
|
+
value: p.label,
|
|
3032
|
+
"onUpdate:modelValue": (c) => w(p.value, c)
|
|
3033
3033
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
3034
|
-
Se(R.$slots, `checkbox-${
|
|
3035
|
-
option:
|
|
3036
|
-
selected: e.modelValue.includes(
|
|
3034
|
+
Se(R.$slots, `checkbox-${p.key || p.value}-append`, {
|
|
3035
|
+
option: p,
|
|
3036
|
+
selected: e.modelValue.includes(p.value)
|
|
3037
3037
|
})
|
|
3038
3038
|
]),
|
|
3039
|
-
H(d)[`checkbox-${
|
|
3039
|
+
H(d)[`checkbox-${p.key || p.value}-end`] && (e.modelValue.includes(p.value) || e.falsyShowSlot) ? ($(), 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(R.$slots, `checkbox-${
|
|
3044
|
-
option:
|
|
3045
|
-
value: e.modelValue.includes(
|
|
3046
|
-
disable: e.disable ||
|
|
3043
|
+
Se(R.$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(d)[`checkbox-${
|
|
3050
|
+
H(d)[`checkbox-${p.key || p.value}-bottom`] && (e.modelValue.includes(p.value) || e.falsyShowSlot) ? ($(), 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(R.$slots, `checkbox-${
|
|
3056
|
-
option:
|
|
3057
|
-
disable: e.disable ||
|
|
3058
|
-
value: e.modelValue.includes(
|
|
3055
|
+
Se(R.$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)),
|
|
3062
|
-
a.value && g.value ? (
|
|
3062
|
+
a.value && g.value ? ($(), ie("div", ea, Oe(u.value), 1)) : Me("", !0)
|
|
3063
3063
|
]),
|
|
3064
3064
|
_: 3
|
|
3065
3065
|
}, 8, ["title"]);
|
|
3066
3066
|
};
|
|
3067
3067
|
}
|
|
3068
|
-
}), ta = { class: "fm-typo-en-title-sm-600" },
|
|
3068
|
+
}), ta = { class: "fm-typo-en-title-sm-600" }, pt = "includedFuture", Dn = /* @__PURE__ */ Re({
|
|
3069
3069
|
__name: "ConditionPermission",
|
|
3070
3070
|
props: {
|
|
3071
3071
|
modelValue: {
|
|
@@ -3087,36 +3087,36 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3087
3087
|
},
|
|
3088
3088
|
emits: ["update:model-value"],
|
|
3089
3089
|
setup(e, { emit: t }) {
|
|
3090
|
-
const n = e, s = t, { t: l } = He(), a =
|
|
3090
|
+
const n = e, s = 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
|
-
]), d =
|
|
3101
|
-
const
|
|
3102
|
-
return
|
|
3100
|
+
]), d = z(() => n.modelValue ? n.modelValue : [pt, ...n.options.map((E) => E.value)]), u = z(() => {
|
|
3101
|
+
const E = d.value.filter((C) => C !== pt).length;
|
|
3102
|
+
return E === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: E });
|
|
3103
3103
|
});
|
|
3104
|
-
function i(
|
|
3105
|
-
const
|
|
3106
|
-
s("update:model-value",
|
|
3104
|
+
function i(E) {
|
|
3105
|
+
const C = E.length === a.value.length;
|
|
3106
|
+
s("update:model-value", C ? null : E.filter((N) => N !== pt));
|
|
3107
3107
|
}
|
|
3108
3108
|
const g = st("");
|
|
3109
|
-
return (
|
|
3110
|
-
const N =
|
|
3111
|
-
return
|
|
3109
|
+
return (E, C) => {
|
|
3110
|
+
const N = we("fm-search");
|
|
3111
|
+
return $(), Ne(Xt, { subtitle: u.value }, {
|
|
3112
3112
|
title: de(() => [
|
|
3113
3113
|
ae("p", ta, Oe(H(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3114
3114
|
]),
|
|
3115
3115
|
default: de(() => [
|
|
3116
|
-
e.options.length > 1 ? (
|
|
3116
|
+
e.options.length > 1 ? ($(), Ne(N, {
|
|
3117
3117
|
key: 0,
|
|
3118
3118
|
modelValue: g.value,
|
|
3119
|
-
"onUpdate:modelValue":
|
|
3119
|
+
"onUpdate:modelValue": C[0] || (C[0] = (F) => g.value = F),
|
|
3120
3120
|
class: "mt-16",
|
|
3121
3121
|
placeholder: H(l)("team.memberForm.permissions.search", { context: e.context })
|
|
3122
3122
|
}, null, 8, ["modelValue", "placeholder"])) : Me("", !0),
|
|
@@ -3131,10 +3131,10 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3131
3131
|
class: "mt-16",
|
|
3132
3132
|
"onUpdate:modelValue": i
|
|
3133
3133
|
}, et({ _: 2 }, [
|
|
3134
|
-
|
|
3134
|
+
ye(a.value, (F) => ({
|
|
3135
3135
|
name: `checkbox-${F.value}-append`,
|
|
3136
|
-
fn: de(({ option:
|
|
3137
|
-
Se(
|
|
3136
|
+
fn: de(({ option: w }) => [
|
|
3137
|
+
Se(E.$slots, `checkbox-${F.value}-append`, { option: w })
|
|
3138
3138
|
])
|
|
3139
3139
|
}))
|
|
3140
3140
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3165,7 +3165,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3165
3165
|
},
|
|
3166
3166
|
emits: ["update:model-value"],
|
|
3167
3167
|
setup(e, { emit: t }) {
|
|
3168
|
-
const n = e, s = t, { t: l } = He(), a =
|
|
3168
|
+
const n = e, s = t, { t: l } = He(), a = z(() => {
|
|
3169
3169
|
const g = n.restaurantIds;
|
|
3170
3170
|
return [
|
|
3171
3171
|
{
|
|
@@ -3173,21 +3173,21 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3173
3173
|
value: bt,
|
|
3174
3174
|
disabled: !!n.modelValue && n.roles.length > n.modelValue.length
|
|
3175
3175
|
},
|
|
3176
|
-
...n.roles.map((
|
|
3177
|
-
label:
|
|
3178
|
-
value:
|
|
3179
|
-
disabled: !!g &&
|
|
3176
|
+
...n.roles.map((E) => ({
|
|
3177
|
+
label: E.name,
|
|
3178
|
+
value: E._id,
|
|
3179
|
+
disabled: !!g && E.restaurants.every(({ id: C }) => !g.includes(C))
|
|
3180
3180
|
}))
|
|
3181
3181
|
];
|
|
3182
|
-
}), d =
|
|
3183
|
-
const g = d.value.filter((
|
|
3182
|
+
}), d = z(() => n.modelValue ? n.modelValue : [bt, ...n.roles.map((g) => g._id)]), u = z(() => {
|
|
3183
|
+
const g = d.value.filter((E) => E !== bt).length;
|
|
3184
3184
|
return g === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: g });
|
|
3185
3185
|
});
|
|
3186
3186
|
function i(g) {
|
|
3187
|
-
const
|
|
3188
|
-
s("update:model-value",
|
|
3187
|
+
const E = g.length === a.value.length;
|
|
3188
|
+
s("update:model-value", E ? null : g.filter((C) => C !== bt));
|
|
3189
3189
|
}
|
|
3190
|
-
return (g,
|
|
3190
|
+
return (g, E) => ($(), Ne(Xt, { subtitle: u.value }, {
|
|
3191
3191
|
title: de(() => [
|
|
3192
3192
|
ae("p", na, Oe(H(l)("team.memberForm.permissions.roles")), 1)
|
|
3193
3193
|
]),
|
|
@@ -3202,10 +3202,10 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3202
3202
|
class: "mt-16",
|
|
3203
3203
|
"onUpdate:modelValue": i
|
|
3204
3204
|
}, et({ _: 2 }, [
|
|
3205
|
-
|
|
3206
|
-
name: `checkbox-${
|
|
3205
|
+
ye(a.value, (C) => ({
|
|
3206
|
+
name: `checkbox-${C.value}-append`,
|
|
3207
3207
|
fn: de(({ option: N }) => [
|
|
3208
|
-
Se(g.$slots, `checkbox-${
|
|
3208
|
+
Se(g.$slots, `checkbox-${C.value}-append`, { option: N })
|
|
3209
3209
|
])
|
|
3210
3210
|
}))
|
|
3211
3211
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3242,8 +3242,8 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3242
3242
|
setup(e, { emit: t }) {
|
|
3243
3243
|
const n = t, { t: s } = He();
|
|
3244
3244
|
return (l, a) => {
|
|
3245
|
-
const d =
|
|
3246
|
-
return
|
|
3245
|
+
const d = we("FmRadio"), u = we("FmRadioGroup");
|
|
3246
|
+
return $(), Ne(Ts, {
|
|
3247
3247
|
title: e.title,
|
|
3248
3248
|
builders: e.builders,
|
|
3249
3249
|
"form-value-for": e.formValueFor,
|
|
@@ -3254,7 +3254,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3254
3254
|
onApply: a[1] || (a[1] = (i) => n("apply"))
|
|
3255
3255
|
}, {
|
|
3256
3256
|
section: de(({ builder: i }) => [
|
|
3257
|
-
e.coverOverride.shouldShowInheritToggle(e.entry, i) ? (
|
|
3257
|
+
e.coverOverride.shouldShowInheritToggle(e.entry, i) ? ($(), ie("div", ra, [
|
|
3258
3258
|
ue(u, {
|
|
3259
3259
|
"model-value": e.inheritModeFor(i),
|
|
3260
3260
|
disabled: e.disable,
|
|
@@ -3268,7 +3268,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3268
3268
|
cover: e.coverOverride.coverLabel(e.subject)
|
|
3269
3269
|
})
|
|
3270
3270
|
}, null, 8, ["label"]),
|
|
3271
|
-
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? (
|
|
3271
|
+
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? ($(), ie("p", oa, " (" + Oe(H(s)(
|
|
3272
3272
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).labelKey,
|
|
3273
3273
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).params ?? {}
|
|
3274
3274
|
)) + ") ", 1)) : Me("", !0)
|
|
@@ -3280,7 +3280,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3280
3280
|
]),
|
|
3281
3281
|
_: 2
|
|
3282
3282
|
}, 1032, ["model-value", "disabled", "onUpdate:modelValue"]),
|
|
3283
|
-
e.inheritModeFor(i) === "custom" ? (
|
|
3283
|
+
e.inheritModeFor(i) === "custom" ? ($(), ie("div", aa, [
|
|
3284
3284
|
ue(nn, {
|
|
3285
3285
|
builder: i,
|
|
3286
3286
|
"model-value": e.formValueFor(i),
|
|
@@ -3288,7 +3288,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3288
3288
|
"onUpdate:modelValue": (g) => n("update-form", { builder: i, form: g })
|
|
3289
3289
|
}, null, 8, ["builder", "model-value", "disable", "onUpdate:modelValue"])
|
|
3290
3290
|
])) : Me("", !0)
|
|
3291
|
-
])) : (
|
|
3291
|
+
])) : ($(), Ne(nn, {
|
|
3292
3292
|
key: 1,
|
|
3293
3293
|
builder: i,
|
|
3294
3294
|
"model-value": e.formValueFor(i),
|
|
@@ -3331,35 +3331,35 @@ function ia(e, t, n, s) {
|
|
|
3331
3331
|
);
|
|
3332
3332
|
let u = [...n];
|
|
3333
3333
|
for (const i of l)
|
|
3334
|
-
a.has(i) || (d.has(i) && (u = u.filter((
|
|
3334
|
+
a.has(i) || (d.has(i) && (u = u.filter((E) => E.subject !== i)), (!d.has(i) || Pn(u, i)) && (u = jn(u, i)));
|
|
3335
3335
|
for (const i of a)
|
|
3336
3336
|
if (!l.has(i)) {
|
|
3337
|
-
const g = u.some((
|
|
3338
|
-
if (u = u.filter((
|
|
3339
|
-
const
|
|
3337
|
+
const g = u.some((E) => E.subject === i && E.inverted);
|
|
3338
|
+
if (u = u.filter((E) => !(E.subject === i && E.inverted)), !g && !d.has(i)) {
|
|
3339
|
+
const E = t.find(
|
|
3340
3340
|
(N) => N.subject === i && !N.inverted
|
|
3341
|
-
),
|
|
3342
|
-
|
|
3341
|
+
), C = s(i);
|
|
3342
|
+
C && E && u.push(Un(C, E.actions, E.conditions));
|
|
3343
3343
|
}
|
|
3344
3344
|
}
|
|
3345
3345
|
for (const i of a) {
|
|
3346
3346
|
if (!l.has(i)) continue;
|
|
3347
|
-
const g = e.find((
|
|
3348
|
-
if (!g || !
|
|
3349
|
-
const
|
|
3350
|
-
if (
|
|
3347
|
+
const g = e.find((w) => w.subject === i && !w.inverted), E = t.find((w) => w.subject === i && !w.inverted);
|
|
3348
|
+
if (!g || !E) continue;
|
|
3349
|
+
const C = new Set(g.actions), N = new Set(E.actions);
|
|
3350
|
+
if (C.size === N.size && [...C].every((w) => N.has(w)))
|
|
3351
3351
|
continue;
|
|
3352
|
-
const F = u.findIndex((
|
|
3352
|
+
const F = u.findIndex((w) => w.subject === i && !w.inverted);
|
|
3353
3353
|
if (F >= 0)
|
|
3354
3354
|
u[F] = {
|
|
3355
3355
|
...u[F],
|
|
3356
3356
|
actions: Array.from(N)
|
|
3357
3357
|
};
|
|
3358
3358
|
else {
|
|
3359
|
-
const
|
|
3360
|
-
|
|
3359
|
+
const w = s(i);
|
|
3360
|
+
w && u.push(Un(w, Array.from(N)));
|
|
3361
3361
|
}
|
|
3362
|
-
|
|
3362
|
+
C.has("manage") && !N.has("manage") && Pn(u, i) && (u = jn(u, i)), !C.has("manage") && N.has("manage") && (u = u.filter((w) => !(w.subject === i && w.inverted)));
|
|
3363
3363
|
}
|
|
3364
3364
|
return u;
|
|
3365
3365
|
}
|
|
@@ -3388,7 +3388,7 @@ function da(e, t) {
|
|
|
3388
3388
|
function gt(e, t) {
|
|
3389
3389
|
return `${e}::${t.builderKey}`;
|
|
3390
3390
|
}
|
|
3391
|
-
function
|
|
3391
|
+
function We(e) {
|
|
3392
3392
|
try {
|
|
3393
3393
|
return e.conditions ? JSON.parse(e.conditions) : void 0;
|
|
3394
3394
|
} catch {
|
|
@@ -3400,22 +3400,22 @@ function ma(e, t) {
|
|
|
3400
3400
|
}
|
|
3401
3401
|
function Mt(e, t) {
|
|
3402
3402
|
const n = new Set(e.actions);
|
|
3403
|
-
return n.has(
|
|
3403
|
+
return n.has(pe.Action.manage) ? !0 : t.actions.every((s) => n.has(s));
|
|
3404
3404
|
}
|
|
3405
3405
|
function Bt(e, t) {
|
|
3406
|
-
const n =
|
|
3407
|
-
return
|
|
3406
|
+
const n = We(e);
|
|
3407
|
+
return Dt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3408
3408
|
}
|
|
3409
|
-
function
|
|
3409
|
+
function xn(e, t, n) {
|
|
3410
3410
|
return {
|
|
3411
3411
|
...Bt(e, n),
|
|
3412
|
-
...tt(
|
|
3412
|
+
...tt(We(t), n)
|
|
3413
3413
|
};
|
|
3414
3414
|
}
|
|
3415
3415
|
function fa(e, t, n) {
|
|
3416
3416
|
const s = st(/* @__PURE__ */ new Set());
|
|
3417
3417
|
function l(c) {
|
|
3418
|
-
return
|
|
3418
|
+
return Ds(c, t.value);
|
|
3419
3419
|
}
|
|
3420
3420
|
function a(c) {
|
|
3421
3421
|
return t.value.find((b) => b.subject === c);
|
|
@@ -3429,60 +3429,60 @@ function fa(e, t, n) {
|
|
|
3429
3429
|
return ma(e.value, c);
|
|
3430
3430
|
}
|
|
3431
3431
|
function i(c, b) {
|
|
3432
|
-
return tt(
|
|
3432
|
+
return tt(We(c), b);
|
|
3433
3433
|
}
|
|
3434
3434
|
function g(c, b) {
|
|
3435
3435
|
var k;
|
|
3436
3436
|
if (!(((k = b.appliesToActions) == null ? void 0 : k.call(b, c.actions)) ?? !0)) return !1;
|
|
3437
3437
|
const I = l(c.subject);
|
|
3438
3438
|
if (!I) return !1;
|
|
3439
|
-
const
|
|
3440
|
-
return
|
|
3439
|
+
const h = u(I);
|
|
3440
|
+
return h ? Object.keys(i(h, b)).length > 0 : !1;
|
|
3441
3441
|
}
|
|
3442
|
-
function
|
|
3442
|
+
function E(c, b) {
|
|
3443
3443
|
if (!g(c, b) || s.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), k = h ? u(h) : void 0;
|
|
3446
3446
|
if (I && k) {
|
|
3447
|
-
const L = tt(
|
|
3447
|
+
const L = tt(We(I), b), X = i(k, b);
|
|
3448
3448
|
if (JSON.stringify(L) === JSON.stringify(X)) return "inherit";
|
|
3449
3449
|
}
|
|
3450
3450
|
return "custom";
|
|
3451
3451
|
}
|
|
3452
|
-
function
|
|
3452
|
+
function C(c, b, I) {
|
|
3453
3453
|
if (!b.summarizeForm) return;
|
|
3454
|
-
const
|
|
3455
|
-
if (!
|
|
3456
|
-
const k = u(
|
|
3454
|
+
const h = l(c.subject);
|
|
3455
|
+
if (!h) return;
|
|
3456
|
+
const k = u(h);
|
|
3457
3457
|
if (!k) return;
|
|
3458
3458
|
const L = b.fromCondition(i(k, b));
|
|
3459
3459
|
return b.summarizeForm(L, { timeZone: I });
|
|
3460
3460
|
}
|
|
3461
3461
|
function N(c, b) {
|
|
3462
3462
|
if (c.index === null) return;
|
|
3463
|
-
const I = [...e.value],
|
|
3463
|
+
const I = [...e.value], h = { ...I[c.index] }, k = Bt(h, b), L = Object.keys(k).length === 0, X = l(c.subject), V = X ? u(X) : void 0, m = V ? Mt(V, h) : !1;
|
|
3464
3464
|
if (L && m)
|
|
3465
3465
|
I.splice(c.index, 1);
|
|
3466
3466
|
else if (V) {
|
|
3467
|
-
const
|
|
3468
|
-
Object.keys(
|
|
3467
|
+
const T = xn(h, V, b);
|
|
3468
|
+
Object.keys(T).length === 0 ? delete h.conditions : h.conditions = JSON.stringify(T), I[c.index] = h;
|
|
3469
3469
|
} else
|
|
3470
|
-
L ? delete
|
|
3470
|
+
L ? delete h.conditions : h.conditions = JSON.stringify(k), 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 L = new Set(s.value);
|
|
3477
|
-
L.delete(
|
|
3477
|
+
L.delete(h), s.value = L, N(c, b);
|
|
3478
3478
|
return;
|
|
3479
3479
|
}
|
|
3480
3480
|
const k = new Set(s.value);
|
|
3481
|
-
k.add(
|
|
3481
|
+
k.add(h), s.value = k, c.index === null && p(c, b, b.fromCondition(void 0), {
|
|
3482
3482
|
forceCreateRule: !0
|
|
3483
3483
|
});
|
|
3484
3484
|
}
|
|
3485
|
-
function
|
|
3485
|
+
function w(c) {
|
|
3486
3486
|
const b = l(c);
|
|
3487
3487
|
if (!b) return [];
|
|
3488
3488
|
const I = u(b);
|
|
@@ -3491,44 +3491,44 @@ function fa(e, t, n) {
|
|
|
3491
3491
|
function R(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 : s.value.has(gt(h, b)) ? !0 : Object.keys(tt(We(I), b)).length > 0;
|
|
3496
3496
|
});
|
|
3497
3497
|
}
|
|
3498
|
-
function
|
|
3499
|
-
const I = `::${b.builderKey}`,
|
|
3500
|
-
for (const k of
|
|
3498
|
+
function D(c, b) {
|
|
3499
|
+
const I = `::${b.builderKey}`, h = new Set(s.value);
|
|
3500
|
+
for (const k of h) {
|
|
3501
3501
|
if (!k.endsWith(I)) continue;
|
|
3502
3502
|
const L = k.slice(0, -I.length);
|
|
3503
|
-
l(L) === c &&
|
|
3503
|
+
l(L) === c && h.delete(k);
|
|
3504
3504
|
}
|
|
3505
|
-
s.value =
|
|
3505
|
+
s.value = h;
|
|
3506
3506
|
}
|
|
3507
3507
|
function f(c, b, I) {
|
|
3508
|
-
const
|
|
3508
|
+
const h = b.subject;
|
|
3509
3509
|
return c.reduce((k, L) => {
|
|
3510
3510
|
if (L.inverted)
|
|
3511
3511
|
return k.push(L), k;
|
|
3512
3512
|
const X = L.subject;
|
|
3513
|
-
if (X ===
|
|
3513
|
+
if (X === h || l(X) !== h)
|
|
3514
3514
|
return k.push(L), k;
|
|
3515
3515
|
if (Mt(b, L) && Object.keys(Bt(L, I)).length === 0)
|
|
3516
3516
|
return k;
|
|
3517
|
-
const m =
|
|
3517
|
+
const m = xn(L, b, I);
|
|
3518
3518
|
if (Object.keys(m).length === 0) {
|
|
3519
|
-
const { conditions:
|
|
3519
|
+
const { conditions: T, ...U } = L;
|
|
3520
3520
|
k.push(U);
|
|
3521
3521
|
} else
|
|
3522
3522
|
k.push({ ...L, conditions: JSON.stringify(m) });
|
|
3523
3523
|
return k;
|
|
3524
3524
|
}, []);
|
|
3525
3525
|
}
|
|
3526
|
-
function
|
|
3527
|
-
var
|
|
3526
|
+
function p(c, b, I, h = {}) {
|
|
3527
|
+
var x;
|
|
3528
3528
|
const k = [...e.value];
|
|
3529
3529
|
let L = c.index;
|
|
3530
3530
|
const X = b.toCondition(I), V = Object.keys(X).length > 0;
|
|
3531
|
-
if (L === null && !V && !
|
|
3531
|
+
if (L === null && !V && !h.forceCreateRule) return;
|
|
3532
3532
|
if (L === null) {
|
|
3533
3533
|
const j = k.findIndex((G) => !G.inverted && G.subject === c.subject);
|
|
3534
3534
|
if (j !== -1)
|
|
@@ -3537,7 +3537,7 @@ function fa(e, t, n) {
|
|
|
3537
3537
|
const G = t.value.find((Q) => Q.subject === c.subject);
|
|
3538
3538
|
if (!G) return;
|
|
3539
3539
|
const {
|
|
3540
|
-
category:
|
|
3540
|
+
category: W,
|
|
3541
3541
|
showByFeatureFlag: B,
|
|
3542
3542
|
isCategoryCover: Y,
|
|
3543
3543
|
...ne
|
|
@@ -3552,31 +3552,31 @@ function fa(e, t, n) {
|
|
|
3552
3552
|
m.actions = [
|
|
3553
3553
|
.../* @__PURE__ */ new Set([...m.actions, ...c.actions])
|
|
3554
3554
|
];
|
|
3555
|
-
const
|
|
3555
|
+
const T = We(m), U = Dt(T, [{ builder: b, formValue: I }]);
|
|
3556
3556
|
if (Object.keys(U).length === 0 ? delete m.conditions : m.conditions = JSON.stringify(U), k[L] = m, rn(c.subject, t.value)) {
|
|
3557
3557
|
const j = R(c.subject, b), G = () => {
|
|
3558
3558
|
var B;
|
|
3559
|
-
|
|
3560
|
-
},
|
|
3559
|
+
D(c.subject, b), n(f(k, m, b)), (B = h.afterCommit) == null || B.call(h);
|
|
3560
|
+
}, W = () => {
|
|
3561
3561
|
var B;
|
|
3562
|
-
n(k), (B =
|
|
3562
|
+
n(k), (B = h.afterCommit) == null || B.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(k), (
|
|
3571
|
+
n(k), (x = h.afterCommit) == null || x.call(h);
|
|
3572
3572
|
}
|
|
3573
3573
|
function S(c, b, I = {}) {
|
|
3574
3574
|
if (b.length === 0) return;
|
|
3575
|
-
const
|
|
3576
|
-
let k =
|
|
3575
|
+
const h = [...e.value];
|
|
3576
|
+
let k = h.findIndex((j) => !j.inverted && j.subject === c.subject), L = k === -1 ? void 0 : { ...h[k] }, X = We(L ?? {}) ?? {};
|
|
3577
3577
|
for (const j of b) {
|
|
3578
3578
|
const G = j.mode === "inherit" ? j.builder.fromCondition(void 0) : j.form;
|
|
3579
|
-
X =
|
|
3579
|
+
X = Dt(X, [{ builder: j.builder, formValue: G }]);
|
|
3580
3580
|
}
|
|
3581
3581
|
const V = b.some((j) => j.mode === "custom");
|
|
3582
3582
|
if (!L && (Object.keys(X).length > 0 || V)) {
|
|
@@ -3584,19 +3584,19 @@ function fa(e, t, n) {
|
|
|
3584
3584
|
if (!j) return;
|
|
3585
3585
|
const {
|
|
3586
3586
|
category: G,
|
|
3587
|
-
showByFeatureFlag:
|
|
3587
|
+
showByFeatureFlag: W,
|
|
3588
3588
|
isCategoryCover: B,
|
|
3589
3589
|
...Y
|
|
3590
3590
|
} = j;
|
|
3591
3591
|
L = {
|
|
3592
3592
|
...Y,
|
|
3593
3593
|
actions: c.actions.length > 0 ? c.actions : Y.actions
|
|
3594
|
-
},
|
|
3594
|
+
}, h.push(L), k = h.length - 1;
|
|
3595
3595
|
}
|
|
3596
3596
|
if (L) {
|
|
3597
3597
|
const j = l(c.subject), G = j ? u(j) : void 0;
|
|
3598
3598
|
if (!V && Object.keys(X).length === 0 && !!G && Mt(G, L))
|
|
3599
|
-
|
|
3599
|
+
h.splice(k, 1), L = void 0;
|
|
3600
3600
|
else {
|
|
3601
3601
|
if (L.actions = [
|
|
3602
3602
|
.../* @__PURE__ */ new Set([...L.actions, ...c.actions])
|
|
@@ -3604,51 +3604,51 @@ function fa(e, t, n) {
|
|
|
3604
3604
|
for (const B of b)
|
|
3605
3605
|
B.mode === "inherit" && (X = {
|
|
3606
3606
|
...X,
|
|
3607
|
-
...tt(
|
|
3607
|
+
...tt(We(G), B.builder)
|
|
3608
3608
|
});
|
|
3609
|
-
Object.keys(X).length === 0 ? delete L.conditions : L.conditions = JSON.stringify(X),
|
|
3609
|
+
Object.keys(X).length === 0 ? delete L.conditions : L.conditions = JSON.stringify(X), h[k] = L;
|
|
3610
3610
|
}
|
|
3611
3611
|
}
|
|
3612
3612
|
const m = () => {
|
|
3613
3613
|
const j = new Set(s.value);
|
|
3614
3614
|
for (const G of b) {
|
|
3615
|
-
const
|
|
3616
|
-
G.mode === "custom" ? j.add(
|
|
3615
|
+
const W = gt(c.subject, G.builder);
|
|
3616
|
+
G.mode === "custom" ? j.add(W) : j.delete(W);
|
|
3617
3617
|
}
|
|
3618
3618
|
s.value = j;
|
|
3619
|
-
},
|
|
3619
|
+
}, T = (j) => {
|
|
3620
3620
|
var G;
|
|
3621
3621
|
m(), n(j), (G = I.afterCommit) == null || G.call(I);
|
|
3622
3622
|
};
|
|
3623
3623
|
if (!rn(c.subject, t.value) || !L) {
|
|
3624
|
-
|
|
3624
|
+
T(h);
|
|
3625
3625
|
return;
|
|
3626
3626
|
}
|
|
3627
|
-
const U = b.map((j) => j.builder).filter((j) => R(c.subject, j).length > 0),
|
|
3628
|
-
let j =
|
|
3629
|
-
for (const G of b.map((
|
|
3630
|
-
|
|
3631
|
-
|
|
3627
|
+
const U = b.map((j) => j.builder).filter((j) => R(c.subject, j).length > 0), x = () => {
|
|
3628
|
+
let j = h;
|
|
3629
|
+
for (const G of b.map((W) => W.builder))
|
|
3630
|
+
D(c.subject, G), j = f(j, L, G);
|
|
3631
|
+
T(j);
|
|
3632
3632
|
};
|
|
3633
3633
|
if (U.length > 0 && I.onOverridesConflict) {
|
|
3634
|
-
I.onOverridesConflict({ override:
|
|
3634
|
+
I.onOverridesConflict({ override: x, keep: () => T(h) });
|
|
3635
3635
|
return;
|
|
3636
3636
|
}
|
|
3637
|
-
U.length > 0 ?
|
|
3637
|
+
U.length > 0 ? T(h) : x();
|
|
3638
3638
|
}
|
|
3639
3639
|
return {
|
|
3640
3640
|
getCoverSubject: l,
|
|
3641
3641
|
coverLabel: d,
|
|
3642
3642
|
shouldShowInheritToggle: g,
|
|
3643
|
-
inheritMode:
|
|
3643
|
+
inheritMode: E,
|
|
3644
3644
|
setInheritMode: F,
|
|
3645
|
-
inheritedSummary:
|
|
3646
|
-
getEffectiveActions:
|
|
3647
|
-
updateBuilderCondition:
|
|
3645
|
+
inheritedSummary: C,
|
|
3646
|
+
getEffectiveActions: w,
|
|
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", Da = /* @__PURE__ */ Re({
|
|
3652
3652
|
__name: "PortalPermissionEditor",
|
|
3653
3653
|
props: /* @__PURE__ */ tn({
|
|
3654
3654
|
disable: {
|
|
@@ -3665,17 +3665,17 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3665
3665
|
}),
|
|
3666
3666
|
emits: /* @__PURE__ */ tn(["permissionChanged"], ["update:modelValue"]),
|
|
3667
3667
|
setup(e, { emit: t }) {
|
|
3668
|
-
const n = vs(e, "modelValue"), s = e, l = t, { t: a } = He(), d =
|
|
3669
|
-
fetchCustomReportPermissions:
|
|
3670
|
-
customReportPermissions:
|
|
3671
|
-
} = Is(), N =
|
|
3668
|
+
const n = vs(e, "modelValue"), s = e, l = t, { t: a } = He(), d = ps(), u = bs(), { breakpoints: i } = gs(), g = z(() => i.value.xs || i.value.sm), {
|
|
3669
|
+
fetchCustomReportPermissions: E,
|
|
3670
|
+
customReportPermissions: C
|
|
3671
|
+
} = Is(), N = z(() => [
|
|
3672
3672
|
...Gn,
|
|
3673
|
-
...
|
|
3674
|
-
]), F =
|
|
3673
|
+
...C.value
|
|
3674
|
+
]), F = z(() => {
|
|
3675
3675
|
const O = d.currentBusiness.value, r = d.currentCountry.value, o = r instanceof Object ? r.code : r;
|
|
3676
3676
|
return da(O, o);
|
|
3677
3677
|
});
|
|
3678
|
-
function
|
|
3678
|
+
function w(O) {
|
|
3679
3679
|
return N.value.find((r) => r.subject === O);
|
|
3680
3680
|
}
|
|
3681
3681
|
function R(O, r) {
|
|
@@ -3686,9 +3686,9 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3686
3686
|
}
|
|
3687
3687
|
);
|
|
3688
3688
|
}
|
|
3689
|
-
const
|
|
3689
|
+
const D = z(() => {
|
|
3690
3690
|
const O = N.value.filter((o) => !c.includes(o.subject)).map((o) => o.subject);
|
|
3691
|
-
return
|
|
3691
|
+
return Es(
|
|
3692
3692
|
s.inheritPermissions.map((o) => ({
|
|
3693
3693
|
...o,
|
|
3694
3694
|
permissions: o.permissions.filter((_) => O.includes(_.subject))
|
|
@@ -3697,11 +3697,11 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3697
3697
|
id: o.subject,
|
|
3698
3698
|
setNames: o.setNames
|
|
3699
3699
|
}));
|
|
3700
|
-
}), f =
|
|
3700
|
+
}), f = z(() => {
|
|
3701
3701
|
const O = s.inheritPermissions.map((r) => ({
|
|
3702
3702
|
...r,
|
|
3703
3703
|
permissions: r.permissions.filter(
|
|
3704
|
-
(o) => o.subject ===
|
|
3704
|
+
(o) => o.subject === pe.Subject.Business.inventory_stock
|
|
3705
3705
|
)
|
|
3706
3706
|
}));
|
|
3707
3707
|
return Lt(
|
|
@@ -3709,11 +3709,11 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3709
3709
|
"warehouseId",
|
|
3710
3710
|
I.value.map((r) => r._id)
|
|
3711
3711
|
);
|
|
3712
|
-
}),
|
|
3712
|
+
}), p = z(() => {
|
|
3713
3713
|
const O = s.inheritPermissions.map((r) => ({
|
|
3714
3714
|
...r,
|
|
3715
3715
|
permissions: r.permissions.filter(
|
|
3716
|
-
(o) => o.subject ===
|
|
3716
|
+
(o) => o.subject === pe.Subject.Restaurant.restaurant
|
|
3717
3717
|
)
|
|
3718
3718
|
}));
|
|
3719
3719
|
return Lt(
|
|
@@ -3721,10 +3721,10 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3721
3721
|
"restaurantId",
|
|
3722
3722
|
X.value.map((r) => r._id)
|
|
3723
3723
|
);
|
|
3724
|
-
}), S =
|
|
3724
|
+
}), S = z(() => {
|
|
3725
3725
|
const O = s.inheritPermissions.map((r) => ({
|
|
3726
3726
|
...r,
|
|
3727
|
-
permissions: r.permissions.filter((o) => o.subject ===
|
|
3727
|
+
permissions: r.permissions.filter((o) => o.subject === pe.Subject.Business.role)
|
|
3728
3728
|
}));
|
|
3729
3729
|
return Lt(
|
|
3730
3730
|
O,
|
|
@@ -3732,17 +3732,17 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3732
3732
|
V.value.map((r) => r._id)
|
|
3733
3733
|
);
|
|
3734
3734
|
}), c = [
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
], b =
|
|
3735
|
+
pe.Subject.Business.restaurant,
|
|
3736
|
+
pe.Subject.Business.role,
|
|
3737
|
+
pe.Subject.Restaurant.restaurant,
|
|
3738
|
+
pe.Subject.Business.inventory_stock
|
|
3739
|
+
], b = z(() => {
|
|
3740
3740
|
var r;
|
|
3741
3741
|
const O = (r = n.value) == null ? void 0 : r.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 = st([]),
|
|
3745
|
+
}), I = st([]), 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 L(O, r) {
|
|
3754
3754
|
let o = It(
|
|
3755
|
-
O.filter((_) => _.subject !==
|
|
3755
|
+
O.filter((_) => _.subject !== pe.Subject.Business.inventory_stock)
|
|
3756
3756
|
);
|
|
3757
3757
|
if (!r || r.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
|
r && (_.conditions = JSON.stringify({ warehouseId: { $in: r } })), o.push(_);
|
|
3763
3763
|
}
|
|
3764
3764
|
return o;
|
|
3765
3765
|
}
|
|
3766
|
-
const { restaurants: X } = d, V = Ms().roles, m =
|
|
3766
|
+
const { restaurants: X } = d, V = Ms().roles, m = z(() => X.value.map((O) => ({
|
|
3767
3767
|
label: `${O.profile.code ? O.profile.code + "-" : ""}${O.profile.name}`,
|
|
3768
3768
|
value: O._id
|
|
3769
|
-
}))),
|
|
3770
|
-
function
|
|
3769
|
+
}))), T = z(() => X.value.reduce((O, r) => (O[r._id] = V.value.filter((o) => o.restaurants.some((_) => _.id === r._id)).map((o) => o._id), O), {})), U = z(() => ys(n.value));
|
|
3770
|
+
function x(O) {
|
|
3771
3771
|
const r = G(n.value, O);
|
|
3772
3772
|
n.value = r;
|
|
3773
3773
|
}
|
|
3774
|
-
const j =
|
|
3774
|
+
const j = z(() => Ns(n.value));
|
|
3775
3775
|
function G(O, r) {
|
|
3776
3776
|
var _;
|
|
3777
3777
|
let o = It(
|
|
3778
3778
|
O.filter(
|
|
3779
|
-
(A) => A.subject !==
|
|
3779
|
+
(A) => A.subject !== pe.Subject.Business.restaurant && A.subject !== pe.Subject.Restaurant.restaurant
|
|
3780
3780
|
)
|
|
3781
3781
|
);
|
|
3782
3782
|
if (!r || r.length > 0) {
|
|
@@ -3787,14 +3787,14 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3787
3787
|
} = Ls.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
|
r && (v.conditions = JSON.stringify({ restaurantId: { $in: r } })), o.push(v);
|
|
3794
3794
|
}
|
|
3795
3795
|
if (r) {
|
|
3796
3796
|
const A = [
|
|
3797
|
-
...new Set(r.map((P) =>
|
|
3797
|
+
...new Set(r.map((P) => T.value[P]).flatMap((P) => P))
|
|
3798
3798
|
], M = V.value.map((P) => P._id);
|
|
3799
3799
|
A.length !== M.length && (o = B(
|
|
3800
3800
|
o,
|
|
@@ -3803,18 +3803,18 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3803
3803
|
}
|
|
3804
3804
|
return o;
|
|
3805
3805
|
}
|
|
3806
|
-
function
|
|
3806
|
+
function W(O) {
|
|
3807
3807
|
const r = B(n.value, O);
|
|
3808
3808
|
n.value = r;
|
|
3809
3809
|
}
|
|
3810
3810
|
function B(O, r) {
|
|
3811
3811
|
let o = It(
|
|
3812
|
-
O.filter((_) => _.subject !==
|
|
3812
|
+
O.filter((_) => _.subject !== pe.Subject.Business.role)
|
|
3813
3813
|
);
|
|
3814
3814
|
if (r && r.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: r } })
|
|
3819
3819
|
};
|
|
3820
3820
|
o.push(_);
|
|
@@ -3824,10 +3824,10 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3824
3824
|
Vn(async () => {
|
|
3825
3825
|
await Promise.all([
|
|
3826
3826
|
la.readWarehouses().then((O) => I.value = O),
|
|
3827
|
-
|
|
3827
|
+
E()
|
|
3828
3828
|
]);
|
|
3829
3829
|
});
|
|
3830
|
-
const Y =
|
|
3830
|
+
const Y = z(() => Zn(
|
|
3831
3831
|
n.value,
|
|
3832
3832
|
Bn
|
|
3833
3833
|
).filter((o) => {
|
|
@@ -3837,7 +3837,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3837
3837
|
if (o.inverted) return o;
|
|
3838
3838
|
const _ = o.actions;
|
|
3839
3839
|
if (!_.includes("manage")) return o;
|
|
3840
|
-
const A =
|
|
3840
|
+
const A = w(o.subject);
|
|
3841
3841
|
if (!A) return o;
|
|
3842
3842
|
const M = A.actions;
|
|
3843
3843
|
return M.length <= 1 || M.filter((v) => !_.includes(v)).length === 0 ? o : { ...o, actions: [...M] };
|
|
@@ -3847,12 +3847,12 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3847
3847
|
Y.value,
|
|
3848
3848
|
O,
|
|
3849
3849
|
n.value,
|
|
3850
|
-
|
|
3850
|
+
w
|
|
3851
3851
|
);
|
|
3852
3852
|
}
|
|
3853
|
-
const Q =
|
|
3853
|
+
const Q = z(() => new Set(
|
|
3854
3854
|
N.value.filter((O) => sn(O.subject).length > 0).map((O) => O.subject)
|
|
3855
|
-
)), _e =
|
|
3855
|
+
)), _e = z(() => {
|
|
3856
3856
|
const O = /* @__PURE__ */ new Map();
|
|
3857
3857
|
return Y.value.map((r) => ({
|
|
3858
3858
|
rule: r,
|
|
@@ -3872,7 +3872,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3872
3872
|
O.set(r.subject, {
|
|
3873
3873
|
index: o >= 0 ? o : null,
|
|
3874
3874
|
subject: r.subject,
|
|
3875
|
-
label: ((P =
|
|
3875
|
+
label: ((P = w(r.subject)) == null ? void 0 : P.label) ?? r.subject,
|
|
3876
3876
|
actions: _,
|
|
3877
3877
|
// Each builder only ever sees its own slice of the stored condition.
|
|
3878
3878
|
sections: A.map((v) => ({
|
|
@@ -3883,7 +3883,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3883
3883
|
}), O;
|
|
3884
3884
|
}), ce = fa(n, N, (O) => {
|
|
3885
3885
|
n.value = O;
|
|
3886
|
-
}), re =
|
|
3886
|
+
}), re = Cs(n), fe = st(null);
|
|
3887
3887
|
function q(O, r) {
|
|
3888
3888
|
const o = _e.value.get(O);
|
|
3889
3889
|
if (o) return o;
|
|
@@ -3900,17 +3900,17 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3900
3900
|
}))
|
|
3901
3901
|
};
|
|
3902
3902
|
}
|
|
3903
|
-
function
|
|
3903
|
+
function De(O, r) {
|
|
3904
3904
|
const o = re.getDraft({ subject: O.subject, builderKey: r.builderKey });
|
|
3905
3905
|
if (o) return o.formValue;
|
|
3906
3906
|
const _ = O.sections.find((A) => A.builder.builderKey === r.builderKey);
|
|
3907
3907
|
return _ == null ? void 0 : _.formValue;
|
|
3908
3908
|
}
|
|
3909
|
-
function
|
|
3909
|
+
function K(O, r) {
|
|
3910
3910
|
const o = re.getDraft({ subject: O.subject, builderKey: r.builderKey });
|
|
3911
3911
|
return o != null && o.inheritMode ? o.inheritMode : ce.inheritMode(O, r);
|
|
3912
3912
|
}
|
|
3913
|
-
function
|
|
3913
|
+
function he(O, r, o) {
|
|
3914
3914
|
const _ = re.getDraft({
|
|
3915
3915
|
subject: O.subject,
|
|
3916
3916
|
builderKey: r.builderKey
|
|
@@ -3919,11 +3919,11 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3919
3919
|
{ subject: O.subject, builderKey: r.builderKey },
|
|
3920
3920
|
{
|
|
3921
3921
|
formValue: o,
|
|
3922
|
-
inheritMode: (_ == null ? void 0 : _.inheritMode) ??
|
|
3922
|
+
inheritMode: (_ == null ? void 0 : _.inheritMode) ?? K(O, r)
|
|
3923
3923
|
}
|
|
3924
3924
|
);
|
|
3925
3925
|
}
|
|
3926
|
-
function
|
|
3926
|
+
function $e(O, r, o) {
|
|
3927
3927
|
const _ = re.getDraft({
|
|
3928
3928
|
subject: O.subject,
|
|
3929
3929
|
builderKey: r.builderKey
|
|
@@ -3936,10 +3936,10 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3936
3936
|
}
|
|
3937
3937
|
);
|
|
3938
3938
|
}
|
|
3939
|
-
function
|
|
3939
|
+
function Ke(O) {
|
|
3940
3940
|
return re.hasDraftsForSubject(O);
|
|
3941
3941
|
}
|
|
3942
|
-
function
|
|
3942
|
+
function xe(O, r) {
|
|
3943
3943
|
const o = O.sections.flatMap((_) => {
|
|
3944
3944
|
const A = re.getDraft({
|
|
3945
3945
|
subject: O.subject,
|
|
@@ -3957,12 +3957,12 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3957
3957
|
function Fe(O) {
|
|
3958
3958
|
return O.sections.some((r) => ce.shouldShowInheritToggle(O, r.builder) ? ce.inheritMode(O, r.builder) === "custom" : Object.keys(r.builder.toCondition(r.formValue)).length > 0);
|
|
3959
3959
|
}
|
|
3960
|
-
let
|
|
3960
|
+
let Te = !1;
|
|
3961
3961
|
function Be(O, r = {}) {
|
|
3962
3962
|
return {
|
|
3963
3963
|
...r,
|
|
3964
3964
|
onOverridesConflict: ({ override: o, keep: _ }) => {
|
|
3965
|
-
|
|
3965
|
+
Te || (Te = !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,42 +3978,42 @@ 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(), Te = !1, u.close();
|
|
3982
3982
|
}).onSecondary(() => {
|
|
3983
|
-
_(),
|
|
3983
|
+
_(), Te = !1, u.close();
|
|
3984
3984
|
}).onClose(() => {
|
|
3985
|
-
|
|
3985
|
+
Te = !1;
|
|
3986
3986
|
}));
|
|
3987
3987
|
}
|
|
3988
3988
|
};
|
|
3989
3989
|
}
|
|
3990
|
-
return
|
|
3990
|
+
return wt(
|
|
3991
3991
|
n,
|
|
3992
3992
|
(O) => {
|
|
3993
3993
|
l("permissionChanged", O);
|
|
3994
3994
|
},
|
|
3995
3995
|
{ deep: !0 }
|
|
3996
3996
|
), (O, r) => {
|
|
3997
|
-
const o =
|
|
3998
|
-
return
|
|
3999
|
-
ae("div",
|
|
3997
|
+
const o = we("FmIcon"), _ = we("FmBottomSheet"), A = we("FmPopover");
|
|
3998
|
+
return $(), ie("div", _a, [
|
|
3999
|
+
ae("div", ha, [
|
|
4000
4000
|
ue(Ho, {
|
|
4001
4001
|
"model-value": Y.value,
|
|
4002
4002
|
"excluded-subjects": c,
|
|
4003
|
-
"additional-permissions": H(
|
|
4003
|
+
"additional-permissions": H(C),
|
|
4004
4004
|
"onUpdate:modelValue": ne
|
|
4005
4005
|
}, et({ _: 2 }, [
|
|
4006
|
-
|
|
4006
|
+
ye(D.value, (M) => ({
|
|
4007
4007
|
name: `checkbox-${M.id}-append`,
|
|
4008
4008
|
fn: de(() => [
|
|
4009
4009
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
4010
4010
|
])
|
|
4011
4011
|
})),
|
|
4012
|
-
|
|
4012
|
+
ye(Q.value, (M) => ({
|
|
4013
4013
|
name: `checkbox-${M}-icon`,
|
|
4014
4014
|
fn: de(({ option: P, isEffectiveSelected: v }) => [
|
|
4015
|
-
v && q(M, P.label) ? (
|
|
4016
|
-
g.value ? (
|
|
4015
|
+
v && q(M, P.label) ? ($(), ie(ke, { key: 0 }, [
|
|
4016
|
+
g.value ? ($(), Ne(_, {
|
|
4017
4017
|
key: 0,
|
|
4018
4018
|
"model-value": fe.value === M,
|
|
4019
4019
|
header: H(a)("team.memberForm.permissions.conditionTitle", {
|
|
@@ -4022,8 +4022,8 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4022
4022
|
"dismiss-away": "",
|
|
4023
4023
|
"z-index": 100,
|
|
4024
4024
|
class: "h-5 flex items-center",
|
|
4025
|
-
"onUpdate:modelValue": (
|
|
4026
|
-
fe.value =
|
|
4025
|
+
"onUpdate:modelValue": (y) => {
|
|
4026
|
+
fe.value = y ? M : null, y || H(re).clearDraftsForSubject(M);
|
|
4027
4027
|
}
|
|
4028
4028
|
}, {
|
|
4029
4029
|
"bottom-sheet-button": de(() => [
|
|
@@ -4041,33 +4041,33 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4041
4041
|
default: de(() => [
|
|
4042
4042
|
ue(Fn, {
|
|
4043
4043
|
entry: q(M, P.label),
|
|
4044
|
-
builders: q(M, P.label).sections.map((
|
|
4044
|
+
builders: q(M, P.label).sections.map((y) => y.builder),
|
|
4045
4045
|
subject: M,
|
|
4046
4046
|
"time-zone": F.value,
|
|
4047
4047
|
"cover-override": H(ce),
|
|
4048
|
-
"inherit-mode-for": (
|
|
4049
|
-
"form-value-for": (
|
|
4050
|
-
"has-changes":
|
|
4048
|
+
"inherit-mode-for": (y) => K(q(M, P.label), y),
|
|
4049
|
+
"form-value-for": (y) => De(q(M, P.label), y),
|
|
4050
|
+
"has-changes": Ke(M),
|
|
4051
4051
|
disable: e.disable,
|
|
4052
4052
|
"full-width": !0,
|
|
4053
|
-
onUpdateInheritMode: ({ builder:
|
|
4054
|
-
onUpdateForm: ({ builder:
|
|
4055
|
-
onApply: (
|
|
4053
|
+
onUpdateInheritMode: ({ builder: y, mode: J }) => $e(q(M, P.label), y, J),
|
|
4054
|
+
onUpdateForm: ({ builder: y, form: J }) => he(q(M, P.label), y, J),
|
|
4055
|
+
onApply: (y) => xe(q(M, P.label), () => fe.value = null)
|
|
4056
4056
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4057
4057
|
]),
|
|
4058
4058
|
_: 2
|
|
4059
|
-
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (
|
|
4059
|
+
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : ($(), Ne(A, {
|
|
4060
4060
|
key: 1,
|
|
4061
4061
|
disabled: e.disable,
|
|
4062
4062
|
"z-index": 100,
|
|
4063
|
-
"exclude-el-from-click-outside": [
|
|
4063
|
+
"exclude-el-from-click-outside": [Ea],
|
|
4064
4064
|
class: "h-5 flex items-center",
|
|
4065
|
-
onPopoverChanged: (
|
|
4066
|
-
|
|
4065
|
+
onPopoverChanged: (y) => {
|
|
4066
|
+
y || H(re).clearDraftsForSubject(M);
|
|
4067
4067
|
}
|
|
4068
4068
|
}, {
|
|
4069
4069
|
"popover-button": de(() => [
|
|
4070
|
-
ae("div",
|
|
4070
|
+
ae("div", pa, [
|
|
4071
4071
|
ue(o, {
|
|
4072
4072
|
name: "settings",
|
|
4073
4073
|
size: "sm",
|
|
@@ -4078,32 +4078,32 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4078
4078
|
}, null, 8, ["class"])
|
|
4079
4079
|
])
|
|
4080
4080
|
]),
|
|
4081
|
-
default: de(({ hide:
|
|
4081
|
+
default: de(({ hide: y }) => [
|
|
4082
4082
|
ue(Fn, {
|
|
4083
4083
|
entry: q(M, P.label),
|
|
4084
|
-
builders: q(M, P.label).sections.map((
|
|
4084
|
+
builders: q(M, P.label).sections.map((J) => J.builder),
|
|
4085
4085
|
subject: M,
|
|
4086
4086
|
"time-zone": F.value,
|
|
4087
4087
|
"cover-override": H(ce),
|
|
4088
4088
|
title: H(a)("team.memberForm.permissions.conditionTitle", {
|
|
4089
4089
|
context: q(M, P.label).label
|
|
4090
4090
|
}),
|
|
4091
|
-
"inherit-mode-for": (
|
|
4092
|
-
"form-value-for": (
|
|
4093
|
-
"has-changes":
|
|
4091
|
+
"inherit-mode-for": (J) => K(q(M, P.label), J),
|
|
4092
|
+
"form-value-for": (J) => De(q(M, P.label), J),
|
|
4093
|
+
"has-changes": Ke(M),
|
|
4094
4094
|
disable: e.disable,
|
|
4095
|
-
onUpdateInheritMode: ({ builder:
|
|
4095
|
+
onUpdateInheritMode: ({ builder: J, mode: le }) => $e(
|
|
4096
4096
|
q(M, P.label),
|
|
4097
|
-
|
|
4097
|
+
J,
|
|
4098
4098
|
le
|
|
4099
4099
|
),
|
|
4100
|
-
onUpdateForm: ({ builder:
|
|
4101
|
-
onApply: (
|
|
4100
|
+
onUpdateForm: ({ builder: J, form: le }) => he(q(M, P.label), J, le),
|
|
4101
|
+
onApply: (J) => xe(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)) : (
|
|
4106
|
+
], 64)) : ($(), Ne(o, {
|
|
4107
4107
|
key: 1,
|
|
4108
4108
|
name: "settings",
|
|
4109
4109
|
size: "sm",
|
|
@@ -4114,13 +4114,13 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4114
4114
|
]), 1032, ["model-value", "additional-permissions"])
|
|
4115
4115
|
]),
|
|
4116
4116
|
ae("div", ba, [
|
|
4117
|
-
ue(
|
|
4117
|
+
ue(Dn, {
|
|
4118
4118
|
"model-value": b.value,
|
|
4119
|
-
options:
|
|
4119
|
+
options: h.value,
|
|
4120
4120
|
context: H(a)("team.labels.warehouse"),
|
|
4121
4121
|
"onUpdate:modelValue": k
|
|
4122
4122
|
}, et({ _: 2 }, [
|
|
4123
|
-
|
|
4123
|
+
ye(f.value, (M) => ({
|
|
4124
4124
|
name: `checkbox-${M.id}-append`,
|
|
4125
4125
|
fn: de(() => [
|
|
4126
4126
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
@@ -4129,13 +4129,13 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4129
4129
|
]), 1032, ["model-value", "options", "context"])
|
|
4130
4130
|
]),
|
|
4131
4131
|
ae("div", ga, [
|
|
4132
|
-
ue(
|
|
4132
|
+
ue(Dn, {
|
|
4133
4133
|
"model-value": U.value,
|
|
4134
4134
|
options: m.value,
|
|
4135
4135
|
context: H(a)("team.labels.restaurant"),
|
|
4136
|
-
"onUpdate:modelValue":
|
|
4136
|
+
"onUpdate:modelValue": x
|
|
4137
4137
|
}, et({ _: 2 }, [
|
|
4138
|
-
|
|
4138
|
+
ye(p.value, (M) => ({
|
|
4139
4139
|
name: `checkbox-${M.id}-append`,
|
|
4140
4140
|
fn: de(() => [
|
|
4141
4141
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
@@ -4148,9 +4148,9 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4148
4148
|
roles: H(V),
|
|
4149
4149
|
"model-value": j.value,
|
|
4150
4150
|
"restaurant-ids": U.value,
|
|
4151
|
-
"onUpdate:modelValue":
|
|
4151
|
+
"onUpdate:modelValue": W
|
|
4152
4152
|
}, et({ _: 2 }, [
|
|
4153
|
-
|
|
4153
|
+
ye(S.value, (M) => ({
|
|
4154
4154
|
name: `checkbox-${M.id}-append`,
|
|
4155
4155
|
fn: de(() => [
|
|
4156
4156
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
@@ -4163,5 +4163,5 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4163
4163
|
}
|
|
4164
4164
|
});
|
|
4165
4165
|
export {
|
|
4166
|
-
|
|
4166
|
+
Da as _
|
|
4167
4167
|
};
|