@feedmepos/mf-hrm-portal 2.2.5-dev.3 → 2.2.5-dev.5
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-BuIPVwsl.js → ApprovalCodeList-DqR6ouRS.js} +2 -2
- package/dist/{AuditLogList-l3fv_3jD.js → AuditLogList-CG2BiQX6.js} +3 -3
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BYY9dMSQ.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C7nMXx8R.js} +2 -2
- package/dist/{EmployeeList-HjNxPBcN.js → EmployeeList-CGZzol7v.js} +4 -4
- package/dist/{GrantUserList-B91EBl82.js → GrantUserList-D1fBv1KQ.js} +3 -3
- package/dist/{Main-C_tQuQsU.js → Main-BOt-Y1wv.js} +9 -9
- package/dist/{Main-TuG-h_qY.js → Main-CFoZot3K.js} +5 -5
- package/dist/{Main-DeqJPnm7.js → Main-zg7fbEtx.js} +2 -2
- package/dist/{PermissionSetList-qVaYkiQ4.js → PermissionSetList-bJpwD62u.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DcpNr0M4.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C4C8Cvf4.js} +1273 -1273
- package/dist/{RoleList-CM0m4nya.js → RoleList-DUVZ7dkO.js} +7 -7
- package/dist/{TeamMemberList-GkMQuyoE.js → TeamMemberList-DAnM-DSd.js} +6 -6
- package/dist/{TimesheetList-Ci2r3AOF.js → TimesheetList-5sdcWjEf.js} +5 -5
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-QbQ7tbJP.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-GhPw_mCW.js} +2 -2
- package/dist/{app-MXDLzWd6.js → app-D-cQzgkr.js} +5 -5
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-DRqYbe11.js → dayjs.min-DqFS0ebn.js} +1 -1
- package/dist/{employee-zsQMMIVM.js → employee-DvvnCQMK.js} +3 -3
- package/dist/{iteration-CtN8sidV.js → iteration-BjW8Cs9e.js} +1 -1
- package/dist/{lodash-BwY7earz.js → lodash-wjhSWqez.js} +1 -1
- package/dist/{role-Ds1yN3BN.js → role-CEUcSmA6.js} +1 -1
- package/dist/{rule-DkG2eGGH.js → rule-Df8LOhxm.js} +2 -2
- package/dist/{useReportPermissions-B_YakoB-.js → useReportPermissions-4wm7pJcK.js} +3 -3
- package/package.json +1 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { getCurrentInstance as Yt, inject as ur, ref as rt, shallowRef as
|
|
1
|
+
import { getCurrentInstance as Yt, inject as ur, ref as rt, shallowRef as mr, computed as z, watch as Dt, onMounted as Vn, onUnmounted as dr, defineComponent as Ae, h as Wn, createVNode as ue, Text as fr, Fragment as ke, resolveComponent as De, createBlock as Ce, openBlock as $, withCtx as me, createElementVNode as ae, createElementBlock as ie, toDisplayString as Oe, unref as H, renderList as Ee, toRef as en, normalizeStyle as nt, renderSlot as Se, createCommentVNode as Me, createTextVNode as _r, useSlots as vr, normalizeClass as qe, createSlots as et, mergeModels as tn, useModel as pr } from "vue";
|
|
2
2
|
import { useI18n as He, useCoreStore as hr } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialog as br, useBreakpoints as gr } from "@feedmepos/ui-library";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { p as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { u as
|
|
8
|
-
import { c as
|
|
9
|
-
import { r as
|
|
10
|
-
import { g as
|
|
11
|
-
import { u as Mr } from "./role-
|
|
5
|
+
import { p as Gn, N as Zn, d as Ir, P as yr, w as Lt, x as Er, y as Cr } from "./rule-Df8LOhxm.js";
|
|
6
|
+
import { _ as Xt, a as Nr, b as nn, u as Tr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C7nMXx8R.js";
|
|
7
|
+
import { u as Or, b as Sr, d as Bn, S as wt, A as tt, e as he, k as rn, O as Lr } from "./app-D-cQzgkr.js";
|
|
8
|
+
import { c as It } from "./iteration-BjW8Cs9e.js";
|
|
9
|
+
import { r as Ar } from "./string-VNuQNweN.js";
|
|
10
|
+
import { g as Rr, b as kr } from "./restaurant-BTpBmfBV.js";
|
|
11
|
+
import { u as Mr } from "./role-CEUcSmA6.js";
|
|
12
12
|
function Yn(e, t) {
|
|
13
13
|
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Dr(e) {
|
|
16
16
|
return Array.isArray(e) ? e[0] : e;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function wr(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 r = t.find((l) => l.category === n.category && l.isCategoryCover);
|
|
22
22
|
if (r)
|
|
23
|
-
return
|
|
23
|
+
return Dr(r.subject);
|
|
24
24
|
}
|
|
25
25
|
function sn(e, t) {
|
|
26
26
|
const n = t.find((r) => Yn(r.subject, e));
|
|
@@ -31,25 +31,25 @@ function sn(e, t) {
|
|
|
31
31
|
* (c) 2024 kazuya kawaguchi
|
|
32
32
|
* Released under the MIT License.
|
|
33
33
|
*/
|
|
34
|
-
const on = typeof window < "u",
|
|
34
|
+
const on = typeof window < "u", Je = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Fr = (e, t, n) => Pr({ l: e, k: t, s: n }), Pr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ge = (e) => typeof e == "number" && isFinite(e), jr = (e) => Ht(e) === "[object Date]", Et = (e) => Ht(e) === "[object RegExp]", Nt = (e) => ee(e) && Object.keys(e).length === 0, Ie = Object.assign, Ur = Object.create, oe = (e = null) => Ur(e);
|
|
35
35
|
let an;
|
|
36
|
-
const
|
|
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 xr = Object.prototype.hasOwnProperty;
|
|
41
41
|
function Le(e, t) {
|
|
42
|
-
return
|
|
42
|
+
return xr.call(e, t);
|
|
43
43
|
}
|
|
44
|
-
const be = Array.isArray,
|
|
45
|
-
function
|
|
44
|
+
const be = Array.isArray, de = (e) => typeof e == "function", Z = (e) => typeof e == "string", pe = (e) => typeof e == "boolean", te = (e) => e !== null && typeof e == "object", Vr = (e) => te(e) && de(e.then) && de(e.catch), Xn = Object.prototype.toString, Ht = (e) => Xn.call(e), ee = (e) => Ht(e) === "[object Object]", Wr = (e) => e == null ? "" : be(e) || ee(e) && e.toString === Xn ? JSON.stringify(e, null, 2) : String(e);
|
|
45
|
+
function Jt(e, t = "") {
|
|
46
46
|
return e.reduce((n, r, l) => l === 0 ? n + r : n + t + r, "");
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Gr(e, t) {
|
|
49
49
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
50
50
|
}
|
|
51
51
|
const ft = (e) => !te(e) || be(e);
|
|
52
|
-
function
|
|
52
|
+
function yt(e, t) {
|
|
53
53
|
if (ft(e) || ft(t))
|
|
54
54
|
throw new Error("Invalid value");
|
|
55
55
|
const n = [{ src: e, des: t }];
|
|
@@ -83,25 +83,25 @@ const re = {
|
|
|
83
83
|
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
84
84
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
85
85
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
86
|
-
},
|
|
87
|
-
function
|
|
88
|
-
const { domain: r, messages: l, args: a } = n,
|
|
86
|
+
}, Br = 17;
|
|
87
|
+
function Tt(e, t, n = {}) {
|
|
88
|
+
const { domain: r, messages: l, args: a } = n, m = e, u = new SyntaxError(String(m));
|
|
89
89
|
return u.code = e, t && (u.location = t), u.domain = r, u;
|
|
90
90
|
}
|
|
91
91
|
function Yr(e) {
|
|
92
92
|
throw e;
|
|
93
93
|
}
|
|
94
|
-
const Pe = " ",
|
|
95
|
-
`, Hr = "\u2028",
|
|
96
|
-
function
|
|
94
|
+
const Pe = " ", Xr = "\r", ye = `
|
|
95
|
+
`, Hr = "\u2028", Jr = "\u2029";
|
|
96
|
+
function $r(e) {
|
|
97
97
|
const t = e;
|
|
98
98
|
let n = 0, r = 1, l = 1, a = 0;
|
|
99
|
-
const
|
|
99
|
+
const m = (v) => t[v] === Xr && t[v + 1] === ye, u = (v) => t[v] === ye, i = (v) => t[v] === Jr, g = (v) => t[v] === Hr, y = (v) => m(v) || u(v) || i(v) || g(v), T = () => n, C = () => r, F = () => l, D = () => a, A = (v) => m(v) || i(v) || g(v) ? ye : t[v], w = () => A(n), f = () => A(n + a);
|
|
100
100
|
function h() {
|
|
101
|
-
return a = 0,
|
|
101
|
+
return a = 0, y(n) && (r++, l = 0), m(n) && n++, n++, l++, t[n];
|
|
102
102
|
}
|
|
103
103
|
function S() {
|
|
104
|
-
return
|
|
104
|
+
return m(n + a) && a++, a++, t[n + a];
|
|
105
105
|
}
|
|
106
106
|
function c() {
|
|
107
107
|
n = 0, r = 1, l = 1, a = 0;
|
|
@@ -109,77 +109,77 @@ function Jr(e) {
|
|
|
109
109
|
function b(v = 0) {
|
|
110
110
|
a = v;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function I() {
|
|
113
113
|
const v = n + a;
|
|
114
114
|
for (; v !== n; )
|
|
115
115
|
h();
|
|
116
116
|
a = 0;
|
|
117
117
|
}
|
|
118
118
|
return {
|
|
119
|
-
index:
|
|
120
|
-
line:
|
|
119
|
+
index: T,
|
|
120
|
+
line: C,
|
|
121
121
|
column: F,
|
|
122
|
-
peekOffset:
|
|
123
|
-
charAt:
|
|
124
|
-
currentChar:
|
|
122
|
+
peekOffset: D,
|
|
123
|
+
charAt: A,
|
|
124
|
+
currentChar: w,
|
|
125
125
|
currentPeek: f,
|
|
126
126
|
next: h,
|
|
127
127
|
peek: S,
|
|
128
128
|
reset: c,
|
|
129
129
|
resetPeek: b,
|
|
130
|
-
skipToPeek:
|
|
130
|
+
skipToPeek: I
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
const
|
|
133
|
+
const Ve = void 0, Kr = ".", cn = "'", zr = "tokenizer";
|
|
134
134
|
function Qr(e, t = {}) {
|
|
135
|
-
const n = t.location !== !1, r =
|
|
135
|
+
const n = t.location !== !1, r = $r(e), l = () => r.index(), a = () => Zr(r.line(), r.column(), r.index()), m = a(), u = l(), i = {
|
|
136
136
|
currentType: 13,
|
|
137
137
|
offset: u,
|
|
138
|
-
startLoc:
|
|
139
|
-
endLoc:
|
|
138
|
+
startLoc: m,
|
|
139
|
+
endLoc: m,
|
|
140
140
|
lastType: 13,
|
|
141
141
|
lastOffset: u,
|
|
142
|
-
lastStartLoc:
|
|
143
|
-
lastEndLoc:
|
|
142
|
+
lastStartLoc: m,
|
|
143
|
+
lastEndLoc: m,
|
|
144
144
|
braceNest: 0,
|
|
145
145
|
inLinked: !1,
|
|
146
146
|
text: ""
|
|
147
|
-
}, g = () => i, { onError:
|
|
148
|
-
function
|
|
147
|
+
}, g = () => i, { onError: y } = t;
|
|
148
|
+
function T(s, o, _, ...R) {
|
|
149
149
|
const M = g();
|
|
150
|
-
if (o.column += _, o.offset += _,
|
|
151
|
-
const P = n ? Ft(M.startLoc, o) : null, p =
|
|
150
|
+
if (o.column += _, o.offset += _, y) {
|
|
151
|
+
const P = n ? Ft(M.startLoc, o) : null, p = Tt(s, P, {
|
|
152
152
|
domain: zr,
|
|
153
|
-
args:
|
|
153
|
+
args: R
|
|
154
154
|
});
|
|
155
|
-
|
|
155
|
+
y(p);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function C(s, o, _) {
|
|
159
159
|
s.endLoc = a(), s.currentType = o;
|
|
160
|
-
const
|
|
161
|
-
return n && (
|
|
160
|
+
const R = { type: o };
|
|
161
|
+
return n && (R.loc = Ft(s.startLoc, s.endLoc)), _ != null && (R.value = _), R;
|
|
162
162
|
}
|
|
163
|
-
const F = (s) =>
|
|
163
|
+
const F = (s) => C(
|
|
164
164
|
s,
|
|
165
165
|
13
|
|
166
166
|
/* TokenTypes.EOF */
|
|
167
167
|
);
|
|
168
|
-
function
|
|
169
|
-
return s.currentChar() === o ? (s.next(), o) : (
|
|
168
|
+
function D(s, o) {
|
|
169
|
+
return s.currentChar() === o ? (s.next(), o) : (T(re.EXPECTED_TOKEN, a(), 0, o), "");
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function A(s) {
|
|
172
172
|
let o = "";
|
|
173
|
-
for (; s.currentPeek() === Pe || s.currentPeek() ===
|
|
173
|
+
for (; s.currentPeek() === Pe || s.currentPeek() === ye; )
|
|
174
174
|
o += s.currentPeek(), s.peek();
|
|
175
175
|
return o;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
const o =
|
|
177
|
+
function w(s) {
|
|
178
|
+
const o = A(s);
|
|
179
179
|
return s.skipToPeek(), o;
|
|
180
180
|
}
|
|
181
181
|
function f(s) {
|
|
182
|
-
if (s ===
|
|
182
|
+
if (s === Ve)
|
|
183
183
|
return !1;
|
|
184
184
|
const o = s.charCodeAt(0);
|
|
185
185
|
return o >= 97 && o <= 122 || // a-z
|
|
@@ -187,7 +187,7 @@ function Qr(e, t = {}) {
|
|
|
187
187
|
o === 95;
|
|
188
188
|
}
|
|
189
189
|
function h(s) {
|
|
190
|
-
if (s ===
|
|
190
|
+
if (s === Ve)
|
|
191
191
|
return !1;
|
|
192
192
|
const o = s.charCodeAt(0);
|
|
193
193
|
return o >= 48 && o <= 57;
|
|
@@ -196,77 +196,77 @@ function Qr(e, t = {}) {
|
|
|
196
196
|
const { currentType: _ } = o;
|
|
197
197
|
if (_ !== 2)
|
|
198
198
|
return !1;
|
|
199
|
-
|
|
200
|
-
const
|
|
201
|
-
return s.resetPeek(),
|
|
199
|
+
A(s);
|
|
200
|
+
const R = f(s.currentPeek());
|
|
201
|
+
return s.resetPeek(), R;
|
|
202
202
|
}
|
|
203
203
|
function c(s, o) {
|
|
204
204
|
const { currentType: _ } = o;
|
|
205
205
|
if (_ !== 2)
|
|
206
206
|
return !1;
|
|
207
|
-
|
|
208
|
-
const
|
|
207
|
+
A(s);
|
|
208
|
+
const R = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), M = h(R);
|
|
209
209
|
return s.resetPeek(), M;
|
|
210
210
|
}
|
|
211
211
|
function b(s, o) {
|
|
212
212
|
const { currentType: _ } = o;
|
|
213
213
|
if (_ !== 2)
|
|
214
214
|
return !1;
|
|
215
|
-
|
|
216
|
-
const
|
|
217
|
-
return s.resetPeek(),
|
|
215
|
+
A(s);
|
|
216
|
+
const R = s.currentPeek() === cn;
|
|
217
|
+
return s.resetPeek(), R;
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function I(s, o) {
|
|
220
220
|
const { currentType: _ } = o;
|
|
221
221
|
if (_ !== 7)
|
|
222
222
|
return !1;
|
|
223
|
-
|
|
224
|
-
const
|
|
225
|
-
return s.resetPeek(),
|
|
223
|
+
A(s);
|
|
224
|
+
const R = s.currentPeek() === ".";
|
|
225
|
+
return s.resetPeek(), R;
|
|
226
226
|
}
|
|
227
227
|
function v(s, o) {
|
|
228
228
|
const { currentType: _ } = o;
|
|
229
229
|
if (_ !== 8)
|
|
230
230
|
return !1;
|
|
231
|
-
|
|
232
|
-
const
|
|
233
|
-
return s.resetPeek(),
|
|
231
|
+
A(s);
|
|
232
|
+
const R = f(s.currentPeek());
|
|
233
|
+
return s.resetPeek(), R;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function k(s, o) {
|
|
236
236
|
const { currentType: _ } = o;
|
|
237
237
|
if (!(_ === 7 || _ === 11))
|
|
238
238
|
return !1;
|
|
239
|
-
|
|
240
|
-
const
|
|
241
|
-
return s.resetPeek(),
|
|
239
|
+
A(s);
|
|
240
|
+
const R = s.currentPeek() === ":";
|
|
241
|
+
return s.resetPeek(), R;
|
|
242
242
|
}
|
|
243
243
|
function L(s, o) {
|
|
244
244
|
const { currentType: _ } = o;
|
|
245
245
|
if (_ !== 9)
|
|
246
246
|
return !1;
|
|
247
|
-
const
|
|
247
|
+
const R = () => {
|
|
248
248
|
const P = s.currentPeek();
|
|
249
|
-
return P === "{" ? f(s.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P ===
|
|
250
|
-
}, M =
|
|
249
|
+
return P === "{" ? f(s.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P === ye ? (s.peek(), R()) : V(s, !1);
|
|
250
|
+
}, M = R();
|
|
251
251
|
return s.resetPeek(), M;
|
|
252
252
|
}
|
|
253
|
-
function
|
|
254
|
-
|
|
253
|
+
function X(s) {
|
|
254
|
+
A(s);
|
|
255
255
|
const o = s.currentPeek() === "|";
|
|
256
256
|
return s.resetPeek(), o;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function V(s, o = !0) {
|
|
259
259
|
const _ = (M = !1, P = "") => {
|
|
260
260
|
const p = s.currentPeek();
|
|
261
|
-
return p === "{" || p === "@" || !p ? M : p === "|" ? !(P === Pe || P ===
|
|
262
|
-
},
|
|
263
|
-
return o && s.resetPeek(),
|
|
261
|
+
return p === "{" || p === "@" || !p ? M : p === "|" ? !(P === Pe || P === ye) : p === Pe ? (s.peek(), _(!0, Pe)) : p === ye ? (s.peek(), _(!0, ye)) : !0;
|
|
262
|
+
}, R = _();
|
|
263
|
+
return o && s.resetPeek(), R;
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function d(s, o) {
|
|
266
266
|
const _ = s.currentChar();
|
|
267
|
-
return _ ===
|
|
267
|
+
return _ === Ve ? Ve : o(_) ? (s.next(), _) : null;
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function N(s) {
|
|
270
270
|
const o = s.charCodeAt(0);
|
|
271
271
|
return o >= 97 && o <= 122 || // a-z
|
|
272
272
|
o >= 65 && o <= 90 || // A-Z
|
|
@@ -275,9 +275,9 @@ function Qr(e, t = {}) {
|
|
|
275
275
|
o === 36;
|
|
276
276
|
}
|
|
277
277
|
function U(s) {
|
|
278
|
-
return
|
|
278
|
+
return d(s, N);
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function x(s) {
|
|
281
281
|
const o = s.charCodeAt(0);
|
|
282
282
|
return o >= 97 && o <= 122 || // a-z
|
|
283
283
|
o >= 65 && o <= 90 || // A-Z
|
|
@@ -287,27 +287,27 @@ function Qr(e, t = {}) {
|
|
|
287
287
|
o === 45;
|
|
288
288
|
}
|
|
289
289
|
function j(s) {
|
|
290
|
-
return
|
|
290
|
+
return d(s, x);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function G(s) {
|
|
293
293
|
const o = s.charCodeAt(0);
|
|
294
294
|
return o >= 48 && o <= 57;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
297
|
-
return
|
|
296
|
+
function W(s) {
|
|
297
|
+
return d(s, G);
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function B(s) {
|
|
300
300
|
const o = s.charCodeAt(0);
|
|
301
301
|
return o >= 48 && o <= 57 || // 0-9
|
|
302
302
|
o >= 65 && o <= 70 || // A-F
|
|
303
303
|
o >= 97 && o <= 102;
|
|
304
304
|
}
|
|
305
305
|
function Y(s) {
|
|
306
|
-
return
|
|
306
|
+
return d(s, B);
|
|
307
307
|
}
|
|
308
308
|
function ne(s) {
|
|
309
309
|
let o = "", _ = "";
|
|
310
|
-
for (; o =
|
|
310
|
+
for (; o = W(s); )
|
|
311
311
|
_ += o;
|
|
312
312
|
return _;
|
|
313
313
|
}
|
|
@@ -317,11 +317,11 @@ function Qr(e, t = {}) {
|
|
|
317
317
|
const _ = s.currentChar();
|
|
318
318
|
if (_ === "{" || _ === "}" || _ === "@" || _ === "|" || !_)
|
|
319
319
|
break;
|
|
320
|
-
if (_ === Pe || _ ===
|
|
321
|
-
if (
|
|
320
|
+
if (_ === Pe || _ === ye)
|
|
321
|
+
if (V(s))
|
|
322
322
|
o += _, s.next();
|
|
323
323
|
else {
|
|
324
|
-
if (
|
|
324
|
+
if (X(s))
|
|
325
325
|
break;
|
|
326
326
|
o += _, s.next();
|
|
327
327
|
}
|
|
@@ -331,27 +331,27 @@ function Qr(e, t = {}) {
|
|
|
331
331
|
return o;
|
|
332
332
|
}
|
|
333
333
|
function _e(s) {
|
|
334
|
-
|
|
334
|
+
w(s);
|
|
335
335
|
let o = "", _ = "";
|
|
336
336
|
for (; o = j(s); )
|
|
337
337
|
_ += o;
|
|
338
|
-
return s.currentChar() ===
|
|
338
|
+
return s.currentChar() === Ve && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _;
|
|
339
339
|
}
|
|
340
340
|
function ce(s) {
|
|
341
|
-
|
|
341
|
+
w(s);
|
|
342
342
|
let o = "";
|
|
343
|
-
return s.currentChar() === "-" ? (s.next(), o += `-${ne(s)}`) : o += ne(s), s.currentChar() ===
|
|
343
|
+
return s.currentChar() === "-" ? (s.next(), o += `-${ne(s)}`) : o += ne(s), s.currentChar() === Ve && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
344
344
|
}
|
|
345
345
|
function se(s) {
|
|
346
|
-
return s !== cn && s !==
|
|
346
|
+
return s !== cn && s !== ye;
|
|
347
347
|
}
|
|
348
348
|
function fe(s) {
|
|
349
|
-
|
|
349
|
+
w(s), D(s, "'");
|
|
350
350
|
let o = "", _ = "";
|
|
351
|
-
for (; o =
|
|
351
|
+
for (; o = d(s, se); )
|
|
352
352
|
o === "\\" ? _ += q(s) : _ += o;
|
|
353
|
-
const
|
|
354
|
-
return
|
|
353
|
+
const R = s.currentChar();
|
|
354
|
+
return R === ye || R === Ve ? (T(re.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), R === ye && (s.next(), D(s, "'")), _) : (D(s, "'"), _);
|
|
355
355
|
}
|
|
356
356
|
function q(s) {
|
|
357
357
|
const o = s.currentChar();
|
|
@@ -360,37 +360,37 @@ function Qr(e, t = {}) {
|
|
|
360
360
|
case "'":
|
|
361
361
|
return s.next(), `\\${o}`;
|
|
362
362
|
case "u":
|
|
363
|
-
return
|
|
363
|
+
return we(s, o, 4);
|
|
364
364
|
case "U":
|
|
365
|
-
return
|
|
365
|
+
return we(s, o, 6);
|
|
366
366
|
default:
|
|
367
|
-
return
|
|
367
|
+
return T(re.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
|
|
372
|
-
let
|
|
370
|
+
function we(s, o, _) {
|
|
371
|
+
D(s, o);
|
|
372
|
+
let R = "";
|
|
373
373
|
for (let M = 0; M < _; M++) {
|
|
374
374
|
const P = Y(s);
|
|
375
375
|
if (!P) {
|
|
376
|
-
|
|
376
|
+
T(re.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${R}${s.currentChar()}`);
|
|
377
377
|
break;
|
|
378
378
|
}
|
|
379
|
-
|
|
379
|
+
R += P;
|
|
380
380
|
}
|
|
381
|
-
return `\\${o}${
|
|
381
|
+
return `\\${o}${R}`;
|
|
382
382
|
}
|
|
383
383
|
function K(s) {
|
|
384
|
-
return s !== "{" && s !== "}" && s !== Pe && s !==
|
|
384
|
+
return s !== "{" && s !== "}" && s !== Pe && s !== ye;
|
|
385
385
|
}
|
|
386
386
|
function ve(s) {
|
|
387
|
-
|
|
387
|
+
w(s);
|
|
388
388
|
let o = "", _ = "";
|
|
389
|
-
for (; o =
|
|
389
|
+
for (; o = d(s, K); )
|
|
390
390
|
_ += o;
|
|
391
391
|
return _;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function $e(s) {
|
|
394
394
|
let o = "", _ = "";
|
|
395
395
|
for (; o = U(s); )
|
|
396
396
|
_ += o;
|
|
@@ -398,89 +398,89 @@ function Qr(e, t = {}) {
|
|
|
398
398
|
}
|
|
399
399
|
function Ke(s) {
|
|
400
400
|
const o = (_) => {
|
|
401
|
-
const
|
|
402
|
-
return
|
|
401
|
+
const R = s.currentChar();
|
|
402
|
+
return R === "{" || R === "@" || R === "|" || R === "(" || R === ")" || !R || R === Pe ? _ : (_ += R, s.next(), o(_));
|
|
403
403
|
};
|
|
404
404
|
return o("");
|
|
405
405
|
}
|
|
406
|
-
function
|
|
407
|
-
|
|
408
|
-
const o =
|
|
406
|
+
function xe(s) {
|
|
407
|
+
w(s);
|
|
408
|
+
const o = D(
|
|
409
409
|
s,
|
|
410
410
|
"|"
|
|
411
411
|
/* TokenChars.Pipe */
|
|
412
412
|
);
|
|
413
|
-
return
|
|
413
|
+
return w(s), o;
|
|
414
414
|
}
|
|
415
415
|
function Fe(s, o) {
|
|
416
416
|
let _ = null;
|
|
417
417
|
switch (s.currentChar()) {
|
|
418
418
|
case "{":
|
|
419
|
-
return o.braceNest >= 1 &&
|
|
419
|
+
return o.braceNest >= 1 && T(re.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), s.next(), _ = C(
|
|
420
420
|
o,
|
|
421
421
|
2,
|
|
422
422
|
"{"
|
|
423
423
|
/* TokenChars.BraceLeft */
|
|
424
|
-
),
|
|
424
|
+
), w(s), o.braceNest++, _;
|
|
425
425
|
case "}":
|
|
426
|
-
return o.braceNest > 0 && o.currentType === 2 &&
|
|
426
|
+
return o.braceNest > 0 && o.currentType === 2 && T(re.EMPTY_PLACEHOLDER, a(), 0), s.next(), _ = C(
|
|
427
427
|
o,
|
|
428
428
|
3,
|
|
429
429
|
"}"
|
|
430
430
|
/* TokenChars.BraceRight */
|
|
431
|
-
), o.braceNest--, o.braceNest > 0 &&
|
|
431
|
+
), o.braceNest--, o.braceNest > 0 && w(s), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), _;
|
|
432
432
|
case "@":
|
|
433
|
-
return o.braceNest > 0 &&
|
|
433
|
+
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = Ne(s, o) || F(o), o.braceNest = 0, _;
|
|
434
434
|
default: {
|
|
435
435
|
let M = !0, P = !0, p = !0;
|
|
436
|
-
if (
|
|
437
|
-
return o.braceNest > 0 &&
|
|
436
|
+
if (X(s))
|
|
437
|
+
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = C(o, 1, xe(s)), 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 T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, Be(s, o);
|
|
440
440
|
if (M = S(s, o))
|
|
441
|
-
return _ =
|
|
441
|
+
return _ = C(o, 4, _e(s)), w(s), _;
|
|
442
442
|
if (P = c(s, o))
|
|
443
|
-
return _ =
|
|
443
|
+
return _ = C(o, 5, ce(s)), w(s), _;
|
|
444
444
|
if (p = b(s, o))
|
|
445
|
-
return _ =
|
|
445
|
+
return _ = C(o, 6, fe(s)), w(s), _;
|
|
446
446
|
if (!M && !P && !p)
|
|
447
|
-
return _ =
|
|
447
|
+
return _ = C(o, 12, ve(s)), T(re.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, _.value), w(s), _;
|
|
448
448
|
break;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
return _;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Ne(s, o) {
|
|
454
454
|
const { currentType: _ } = o;
|
|
455
|
-
let
|
|
455
|
+
let R = null;
|
|
456
456
|
const M = s.currentChar();
|
|
457
|
-
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M ===
|
|
457
|
+
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M === ye || M === Pe) && T(re.INVALID_LINKED_FORMAT, a(), 0), M) {
|
|
458
458
|
case "@":
|
|
459
|
-
return s.next(),
|
|
459
|
+
return s.next(), R = C(
|
|
460
460
|
o,
|
|
461
461
|
7,
|
|
462
462
|
"@"
|
|
463
463
|
/* TokenChars.LinkedAlias */
|
|
464
|
-
), o.inLinked = !0,
|
|
464
|
+
), o.inLinked = !0, R;
|
|
465
465
|
case ".":
|
|
466
|
-
return
|
|
466
|
+
return w(s), s.next(), C(
|
|
467
467
|
o,
|
|
468
468
|
8,
|
|
469
469
|
"."
|
|
470
470
|
/* TokenChars.LinkedDot */
|
|
471
471
|
);
|
|
472
472
|
case ":":
|
|
473
|
-
return
|
|
473
|
+
return w(s), s.next(), C(
|
|
474
474
|
o,
|
|
475
475
|
9,
|
|
476
476
|
":"
|
|
477
477
|
/* TokenChars.LinkedDelimiter */
|
|
478
478
|
);
|
|
479
479
|
default:
|
|
480
|
-
return
|
|
480
|
+
return X(s) ? (R = C(o, 1, xe(s)), o.braceNest = 0, o.inLinked = !1, R) : I(s, o) || k(s, o) ? (w(s), Ne(s, o)) : v(s, o) ? (w(s), C(o, 11, $e(s))) : L(s, o) ? (w(s), M === "{" ? Fe(s, o) || R : C(o, 10, Ke(s))) : (_ === 7 && T(re.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, Be(s, o));
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function Be(s, o) {
|
|
484
484
|
let _ = {
|
|
485
485
|
type: 13
|
|
486
486
|
/* TokenTypes.EOF */
|
|
@@ -488,39 +488,39 @@ function Qr(e, t = {}) {
|
|
|
488
488
|
if (o.braceNest > 0)
|
|
489
489
|
return Fe(s, o) || F(o);
|
|
490
490
|
if (o.inLinked)
|
|
491
|
-
return
|
|
491
|
+
return Ne(s, o) || F(o);
|
|
492
492
|
switch (s.currentChar()) {
|
|
493
493
|
case "{":
|
|
494
494
|
return Fe(s, o) || F(o);
|
|
495
495
|
case "}":
|
|
496
|
-
return
|
|
496
|
+
return T(re.UNBALANCED_CLOSING_BRACE, a(), 0), s.next(), C(
|
|
497
497
|
o,
|
|
498
498
|
3,
|
|
499
499
|
"}"
|
|
500
500
|
/* TokenChars.BraceRight */
|
|
501
501
|
);
|
|
502
502
|
case "@":
|
|
503
|
-
return
|
|
503
|
+
return Ne(s, o) || F(o);
|
|
504
504
|
default: {
|
|
505
|
-
if (
|
|
506
|
-
return _ =
|
|
507
|
-
if (
|
|
508
|
-
return
|
|
505
|
+
if (X(s))
|
|
506
|
+
return _ = C(o, 1, xe(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
507
|
+
if (V(s))
|
|
508
|
+
return C(o, 0, Q(s));
|
|
509
509
|
break;
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
512
|
return _;
|
|
513
513
|
}
|
|
514
|
-
function
|
|
515
|
-
const { currentType: s, offset: o, startLoc: _, endLoc:
|
|
516
|
-
return i.lastType = s, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc =
|
|
514
|
+
function O() {
|
|
515
|
+
const { currentType: s, offset: o, startLoc: _, endLoc: R } = i;
|
|
516
|
+
return i.lastType = s, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc = R, i.offset = l(), i.startLoc = a(), r.currentChar() === Ve ? C(
|
|
517
517
|
i,
|
|
518
518
|
13
|
|
519
519
|
/* TokenTypes.EOF */
|
|
520
|
-
) :
|
|
520
|
+
) : Be(r, i);
|
|
521
521
|
}
|
|
522
522
|
return {
|
|
523
|
-
nextToken:
|
|
523
|
+
nextToken: O,
|
|
524
524
|
currentOffset: l,
|
|
525
525
|
currentPosition: a,
|
|
526
526
|
context: g
|
|
@@ -542,13 +542,13 @@ function ts(e, t, n) {
|
|
|
542
542
|
function ns(e = {}) {
|
|
543
543
|
const t = e.location !== !1, { onError: n } = e;
|
|
544
544
|
function r(f, h, S, c, ...b) {
|
|
545
|
-
const
|
|
546
|
-
if (
|
|
547
|
-
const v = t ? Ft(S,
|
|
545
|
+
const I = f.currentPosition();
|
|
546
|
+
if (I.offset += c, I.column += c, n) {
|
|
547
|
+
const v = t ? Ft(S, I) : null, k = Tt(h, v, {
|
|
548
548
|
domain: qr,
|
|
549
549
|
args: b
|
|
550
550
|
});
|
|
551
|
-
n(
|
|
551
|
+
n(k);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
function l(f, h, S) {
|
|
@@ -558,59 +558,59 @@ function ns(e = {}) {
|
|
|
558
558
|
function a(f, h, S, c) {
|
|
559
559
|
t && (f.end = h, f.loc && (f.loc.end = S));
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function m(f, h) {
|
|
562
562
|
const S = f.context(), c = l(3, S.offset, S.startLoc);
|
|
563
563
|
return c.value = h, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
564
564
|
}
|
|
565
565
|
function u(f, h) {
|
|
566
|
-
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S,
|
|
567
|
-
return
|
|
566
|
+
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(5, c, b);
|
|
567
|
+
return I.index = parseInt(h, 10), f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
568
568
|
}
|
|
569
569
|
function i(f, h) {
|
|
570
|
-
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S,
|
|
571
|
-
return
|
|
570
|
+
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(4, c, b);
|
|
571
|
+
return I.key = h, f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
572
572
|
}
|
|
573
573
|
function g(f, h) {
|
|
574
|
-
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S,
|
|
575
|
-
return
|
|
574
|
+
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(9, c, b);
|
|
575
|
+
return I.value = h.replace(es, ts), f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
576
576
|
}
|
|
577
|
-
function
|
|
578
|
-
const h = f.nextToken(), S = f.context(), { lastOffset: c, lastStartLoc: b } = S,
|
|
579
|
-
return h.type !== 11 ? (r(f, re.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0),
|
|
577
|
+
function y(f) {
|
|
578
|
+
const h = f.nextToken(), S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(8, c, b);
|
|
579
|
+
return h.type !== 11 ? (r(f, re.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), I.value = "", a(I, c, b), {
|
|
580
580
|
nextConsumeToken: h,
|
|
581
|
-
node:
|
|
582
|
-
}) : (h.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0,
|
|
583
|
-
node:
|
|
581
|
+
node: I
|
|
582
|
+
}) : (h.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, Re(h)), I.value = h.value || "", a(I, f.currentOffset(), f.currentPosition()), {
|
|
583
|
+
node: I
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function T(f, h) {
|
|
587
587
|
const S = f.context(), c = l(7, S.offset, S.startLoc);
|
|
588
588
|
return c.value = h, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function C(f) {
|
|
591
591
|
const h = f.context(), S = l(6, h.offset, h.startLoc);
|
|
592
592
|
let c = f.nextToken();
|
|
593
593
|
if (c.type === 8) {
|
|
594
|
-
const b =
|
|
594
|
+
const b = y(f);
|
|
595
595
|
S.modifier = b.node, c = b.nextConsumeToken || f.nextToken();
|
|
596
596
|
}
|
|
597
|
-
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
597
|
+
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), c = f.nextToken(), c.type === 2 && (c = f.nextToken()), c.type) {
|
|
598
598
|
case 10:
|
|
599
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
599
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), S.key = T(f, c.value || "");
|
|
600
600
|
break;
|
|
601
601
|
case 4:
|
|
602
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
602
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), S.key = i(f, c.value || "");
|
|
603
603
|
break;
|
|
604
604
|
case 5:
|
|
605
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
605
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), S.key = u(f, c.value || "");
|
|
606
606
|
break;
|
|
607
607
|
case 6:
|
|
608
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
608
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), S.key = g(f, c.value || "");
|
|
609
609
|
break;
|
|
610
610
|
default: {
|
|
611
611
|
r(f, re.UNEXPECTED_EMPTY_LINKED_KEY, h.lastStartLoc, 0);
|
|
612
|
-
const b = f.context(),
|
|
613
|
-
return
|
|
612
|
+
const b = f.context(), I = l(7, b.offset, b.startLoc);
|
|
613
|
+
return I.value = "", a(I, b.offset, b.startLoc), S.key = I, a(S, b.offset, b.startLoc), {
|
|
614
614
|
nextConsumeToken: c,
|
|
615
615
|
node: S
|
|
616
616
|
};
|
|
@@ -623,54 +623,54 @@ function ns(e = {}) {
|
|
|
623
623
|
function F(f) {
|
|
624
624
|
const h = f.context(), S = h.currentType === 1 ? f.currentOffset() : h.offset, c = h.currentType === 1 ? h.endLoc : h.startLoc, b = l(2, S, c);
|
|
625
625
|
b.items = [];
|
|
626
|
-
let
|
|
626
|
+
let I = null;
|
|
627
627
|
do {
|
|
628
|
-
const L =
|
|
629
|
-
switch (
|
|
628
|
+
const L = I || f.nextToken();
|
|
629
|
+
switch (I = null, L.type) {
|
|
630
630
|
case 0:
|
|
631
|
-
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
631
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(L)), b.items.push(m(f, L.value || ""));
|
|
632
632
|
break;
|
|
633
633
|
case 5:
|
|
634
|
-
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
634
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(L)), b.items.push(u(f, L.value || ""));
|
|
635
635
|
break;
|
|
636
636
|
case 4:
|
|
637
|
-
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
637
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(L)), b.items.push(i(f, L.value || ""));
|
|
638
638
|
break;
|
|
639
639
|
case 6:
|
|
640
|
-
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
640
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(L)), b.items.push(g(f, L.value || ""));
|
|
641
641
|
break;
|
|
642
642
|
case 7: {
|
|
643
|
-
const
|
|
644
|
-
b.items.push(
|
|
643
|
+
const X = C(f);
|
|
644
|
+
b.items.push(X.node), I = X.nextConsumeToken || null;
|
|
645
645
|
break;
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
648
|
} while (h.currentType !== 13 && h.currentType !== 1);
|
|
649
|
-
const v = h.currentType === 1 ? h.lastOffset : f.currentOffset(),
|
|
650
|
-
return a(b, v,
|
|
649
|
+
const v = h.currentType === 1 ? h.lastOffset : f.currentOffset(), k = h.currentType === 1 ? h.lastEndLoc : f.currentPosition();
|
|
650
|
+
return a(b, v, k), b;
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function D(f, h, S, c) {
|
|
653
653
|
const b = f.context();
|
|
654
|
-
let
|
|
654
|
+
let I = c.items.length === 0;
|
|
655
655
|
const v = l(1, h, S);
|
|
656
656
|
v.cases = [], v.cases.push(c);
|
|
657
657
|
do {
|
|
658
|
-
const
|
|
659
|
-
|
|
658
|
+
const k = F(f);
|
|
659
|
+
I || (I = k.items.length === 0), v.cases.push(k);
|
|
660
660
|
} while (b.currentType !== 13);
|
|
661
|
-
return
|
|
661
|
+
return I && r(f, re.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), a(v, f.currentOffset(), f.currentPosition()), v;
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function A(f) {
|
|
664
664
|
const h = f.context(), { offset: S, startLoc: c } = h, b = F(f);
|
|
665
|
-
return h.currentType === 13 ? b :
|
|
665
|
+
return h.currentType === 13 ? b : D(f, S, c, b);
|
|
666
666
|
}
|
|
667
|
-
function
|
|
668
|
-
const h = Qr(f,
|
|
669
|
-
return t && c.loc && (c.loc.source = f), c.body =
|
|
667
|
+
function w(f) {
|
|
668
|
+
const h = Qr(f, Ie({}, e)), S = h.context(), c = l(0, S.offset, S.startLoc);
|
|
669
|
+
return t && c.loc && (c.loc.source = f), c.body = A(h), e.onCacheKey && (c.cacheKey = e.onCacheKey(f)), S.currentType !== 13 && r(h, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, f[S.offset] || ""), a(c, h.currentOffset(), h.currentPosition()), c;
|
|
670
670
|
}
|
|
671
|
-
return { parse:
|
|
671
|
+
return { parse: w };
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function Re(e) {
|
|
674
674
|
if (e.type === 13)
|
|
675
675
|
return "EOF";
|
|
676
676
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
@@ -685,9 +685,9 @@ function rs(e, t = {}) {
|
|
|
685
685
|
}
|
|
686
686
|
function un(e, t) {
|
|
687
687
|
for (let n = 0; n < e.length; n++)
|
|
688
|
-
|
|
688
|
+
$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,15 +733,15 @@ function ss(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 r = n.context();
|
|
738
738
|
e.helpers = Array.from(r.helpers);
|
|
739
739
|
}
|
|
740
740
|
function os(e) {
|
|
741
741
|
const t = e.body;
|
|
742
|
-
return t.type === 2 ?
|
|
742
|
+
return t.type === 2 ? mn(t) : t.cases.forEach((n) => mn(n)), e;
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function mn(e) {
|
|
745
745
|
if (e.items.length === 1) {
|
|
746
746
|
const t = e.items[0];
|
|
747
747
|
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
@@ -754,7 +754,7 @@ function dn(e) {
|
|
|
754
754
|
t.push(r.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 r = e.items[n];
|
|
760
760
|
(r.type === 3 || r.type === 9) && delete r.value;
|
|
@@ -810,7 +810,7 @@ function Qe(e) {
|
|
|
810
810
|
delete e.type;
|
|
811
811
|
}
|
|
812
812
|
function as(e, t) {
|
|
813
|
-
const { filename: n, breakLineCode: r, needIndent: l } = t, a = t.location !== !1,
|
|
813
|
+
const { filename: n, breakLineCode: r, needIndent: l } = t, a = t.location !== !1, m = {
|
|
814
814
|
filename: n,
|
|
815
815
|
code: "",
|
|
816
816
|
column: 1,
|
|
@@ -821,34 +821,34 @@ function as(e, t) {
|
|
|
821
821
|
needIndent: l,
|
|
822
822
|
indentLevel: 0
|
|
823
823
|
};
|
|
824
|
-
a && e.loc && (
|
|
825
|
-
const u = () =>
|
|
826
|
-
function i(
|
|
827
|
-
|
|
824
|
+
a && e.loc && (m.source = e.loc.source);
|
|
825
|
+
const u = () => m;
|
|
826
|
+
function i(A, w) {
|
|
827
|
+
m.code += A;
|
|
828
828
|
}
|
|
829
|
-
function g(
|
|
830
|
-
const f =
|
|
831
|
-
i(l ? f + " ".repeat(
|
|
829
|
+
function g(A, w = !0) {
|
|
830
|
+
const f = w ? r : "";
|
|
831
|
+
i(l ? f + " ".repeat(A) : f);
|
|
832
832
|
}
|
|
833
|
-
function
|
|
834
|
-
const
|
|
835
|
-
|
|
833
|
+
function y(A = !0) {
|
|
834
|
+
const w = ++m.indentLevel;
|
|
835
|
+
A && g(w);
|
|
836
836
|
}
|
|
837
|
-
function
|
|
838
|
-
const
|
|
839
|
-
|
|
837
|
+
function T(A = !0) {
|
|
838
|
+
const w = --m.indentLevel;
|
|
839
|
+
A && g(w);
|
|
840
840
|
}
|
|
841
|
-
function
|
|
842
|
-
g(
|
|
841
|
+
function C() {
|
|
842
|
+
g(m.indentLevel);
|
|
843
843
|
}
|
|
844
844
|
return {
|
|
845
845
|
context: u,
|
|
846
846
|
push: i,
|
|
847
|
-
indent:
|
|
848
|
-
deindent:
|
|
849
|
-
newline:
|
|
850
|
-
helper: (
|
|
851
|
-
needIndent: () =>
|
|
847
|
+
indent: y,
|
|
848
|
+
deindent: T,
|
|
849
|
+
newline: C,
|
|
850
|
+
helper: (A) => `_${A}`,
|
|
851
|
+
needIndent: () => m.needIndent
|
|
852
852
|
};
|
|
853
853
|
}
|
|
854
854
|
function ls(e, t) {
|
|
@@ -932,16 +932,16 @@ function st(e, t) {
|
|
|
932
932
|
break;
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
|
-
const
|
|
935
|
+
const ms = (e, t = {}) => {
|
|
936
936
|
const n = Z(t.mode) ? t.mode : "normal", r = Z(t.filename) ? t.filename : "message.intl";
|
|
937
937
|
t.sourceMap;
|
|
938
938
|
const l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
939
|
-
`, a = t.needIndent ? t.needIndent : n !== "arrow",
|
|
939
|
+
`, a = t.needIndent ? t.needIndent : n !== "arrow", m = e.helpers || [], u = as(e, {
|
|
940
940
|
filename: r,
|
|
941
941
|
breakLineCode: l,
|
|
942
942
|
needIndent: a
|
|
943
943
|
});
|
|
944
|
-
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a),
|
|
944
|
+
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), m.length > 0 && (u.push(`const { ${Jt(m.map((y) => `${y}: _${y}`), ", ")} } = ctx`), u.newline()), u.push("return "), st(u, e), u.deindent(a), u.push("}"), delete e.helpers;
|
|
945
945
|
const { code: i, map: g } = u.context();
|
|
946
946
|
return {
|
|
947
947
|
ast: e,
|
|
@@ -950,15 +950,15 @@ const ds = (e, t = {}) => {
|
|
|
950
950
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
951
951
|
};
|
|
952
952
|
};
|
|
953
|
-
function
|
|
954
|
-
const n =
|
|
955
|
-
return r ? (a && os(u), l && Qe(u), { ast: u, code: "" }) : (ss(u, n),
|
|
953
|
+
function ds(e, t = {}) {
|
|
954
|
+
const n = Ie({}, t), r = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize, u = ns(n).parse(e);
|
|
955
|
+
return r ? (a && os(u), l && Qe(u), { ast: u, code: "" }) : (ss(u, n), ms(u, n));
|
|
956
956
|
}
|
|
957
957
|
var fs = { env: { NODE_ENV: "production" } };
|
|
958
958
|
function _s() {
|
|
959
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
959
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Xe().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Xe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function At(e) {
|
|
962
962
|
return (n) => vs(n, e);
|
|
963
963
|
}
|
|
964
964
|
function vs(e, t) {
|
|
@@ -970,37 +970,37 @@ function vs(e, t) {
|
|
|
970
970
|
);
|
|
971
971
|
if (Kt(n) === 1) {
|
|
972
972
|
const a = gs(n);
|
|
973
|
-
return e.plural(a.reduce((
|
|
974
|
-
...
|
|
975
|
-
|
|
973
|
+
return e.plural(a.reduce((m, u) => [
|
|
974
|
+
...m,
|
|
975
|
+
dn(e, u)
|
|
976
976
|
], []));
|
|
977
977
|
} else
|
|
978
|
-
return
|
|
978
|
+
return dn(e, n);
|
|
979
979
|
}
|
|
980
980
|
const ps = ["b", "body"];
|
|
981
981
|
function hs(e) {
|
|
982
|
-
return
|
|
982
|
+
return Ge(e, ps);
|
|
983
983
|
}
|
|
984
984
|
const bs = ["c", "cases"];
|
|
985
985
|
function gs(e) {
|
|
986
|
-
return
|
|
986
|
+
return Ge(e, bs, []);
|
|
987
987
|
}
|
|
988
|
-
function
|
|
989
|
-
const n =
|
|
988
|
+
function dn(e, t) {
|
|
989
|
+
const n = ys(t);
|
|
990
990
|
if (n != null)
|
|
991
991
|
return e.type === "text" ? n : e.normalize([n]);
|
|
992
992
|
{
|
|
993
|
-
const r =
|
|
993
|
+
const r = Cs(t).reduce((l, a) => [...l, Pt(e, a)], []);
|
|
994
994
|
return e.normalize(r);
|
|
995
995
|
}
|
|
996
996
|
}
|
|
997
|
-
const
|
|
998
|
-
function
|
|
999
|
-
return
|
|
997
|
+
const Is = ["s", "static"];
|
|
998
|
+
function ys(e) {
|
|
999
|
+
return Ge(e, Is);
|
|
1000
1000
|
}
|
|
1001
|
-
const
|
|
1002
|
-
function
|
|
1003
|
-
return
|
|
1001
|
+
const Es = ["i", "items"];
|
|
1002
|
+
function Cs(e) {
|
|
1003
|
+
return Ge(e, Es, []);
|
|
1004
1004
|
}
|
|
1005
1005
|
function Pt(e, t) {
|
|
1006
1006
|
const n = Kt(t);
|
|
@@ -1026,7 +1026,7 @@ function Pt(e, t) {
|
|
|
1026
1026
|
throw it(n);
|
|
1027
1027
|
}
|
|
1028
1028
|
case 6: {
|
|
1029
|
-
const r = t, l = Ss(r), a =
|
|
1029
|
+
const r = t, l = Ss(r), a = As(r);
|
|
1030
1030
|
return e.linked(Pt(e, a), l ? Pt(e, l) : void 0, e.type);
|
|
1031
1031
|
}
|
|
1032
1032
|
case 7:
|
|
@@ -1037,24 +1037,24 @@ function Pt(e, t) {
|
|
|
1037
1037
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
|
-
const
|
|
1040
|
+
const Ns = ["t", "type"];
|
|
1041
1041
|
function Kt(e) {
|
|
1042
|
-
return
|
|
1042
|
+
return Ge(e, Ns);
|
|
1043
1043
|
}
|
|
1044
|
-
const
|
|
1044
|
+
const Ts = ["v", "value"];
|
|
1045
1045
|
function _t(e, t) {
|
|
1046
|
-
const n =
|
|
1046
|
+
const n = Ge(e, Ts);
|
|
1047
1047
|
if (n)
|
|
1048
1048
|
return n;
|
|
1049
1049
|
throw it(t);
|
|
1050
1050
|
}
|
|
1051
|
-
const
|
|
1051
|
+
const Os = ["m", "modifier"];
|
|
1052
1052
|
function Ss(e) {
|
|
1053
|
-
return
|
|
1053
|
+
return Ge(e, Os);
|
|
1054
1054
|
}
|
|
1055
1055
|
const Ls = ["k", "key"];
|
|
1056
|
-
function
|
|
1057
|
-
const t =
|
|
1056
|
+
function As(e) {
|
|
1057
|
+
const t = Ge(e, Ls);
|
|
1058
1058
|
if (t)
|
|
1059
1059
|
return t;
|
|
1060
1060
|
throw it(
|
|
@@ -1062,7 +1062,7 @@ function ks(e) {
|
|
|
1062
1062
|
/* NodeTypes.Linked */
|
|
1063
1063
|
);
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1065
|
+
function Ge(e, t, n) {
|
|
1066
1066
|
for (let r = 0; r < t.length; r++) {
|
|
1067
1067
|
const l = t[r];
|
|
1068
1068
|
if (Le(e, l) && e[l] != null)
|
|
@@ -1073,45 +1073,45 @@ function We(e, t, n) {
|
|
|
1073
1073
|
function it(e) {
|
|
1074
1074
|
return new Error(`unhandled node type: ${e}`);
|
|
1075
1075
|
}
|
|
1076
|
-
const
|
|
1076
|
+
const Rs = (e) => e;
|
|
1077
1077
|
let vt = oe();
|
|
1078
1078
|
function ot(e) {
|
|
1079
1079
|
return te(e) && Kt(e) === 0 && (Le(e, "b") || Le(e, "body"));
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1081
|
+
function ks(e, t = {}) {
|
|
1082
1082
|
let n = !1;
|
|
1083
1083
|
const r = t.onError || Yr;
|
|
1084
1084
|
return t.onError = (l) => {
|
|
1085
1085
|
n = !0, r(l);
|
|
1086
|
-
}, { ...
|
|
1086
|
+
}, { ...ds(e, t), detectError: n };
|
|
1087
1087
|
}
|
|
1088
1088
|
// @__NO_SIDE_EFFECTS__
|
|
1089
1089
|
function Ms(e, t) {
|
|
1090
1090
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && Z(e)) {
|
|
1091
1091
|
pe(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1092
|
-
const r = (t.onCacheKey ||
|
|
1092
|
+
const r = (t.onCacheKey || Rs)(e), l = vt[r];
|
|
1093
1093
|
if (l)
|
|
1094
1094
|
return l;
|
|
1095
|
-
const { ast: a, detectError:
|
|
1095
|
+
const { ast: a, detectError: m } = ks(e, {
|
|
1096
1096
|
...t,
|
|
1097
1097
|
location: fs.env.NODE_ENV !== "production",
|
|
1098
1098
|
jit: !0
|
|
1099
|
-
}), u =
|
|
1100
|
-
return
|
|
1099
|
+
}), u = At(a);
|
|
1100
|
+
return m ? u : vt[r] = u;
|
|
1101
1101
|
} else {
|
|
1102
1102
|
const n = e.cacheKey;
|
|
1103
1103
|
if (n) {
|
|
1104
1104
|
const r = vt[n];
|
|
1105
|
-
return r || (vt[n] =
|
|
1105
|
+
return r || (vt[n] = At(e));
|
|
1106
1106
|
} else
|
|
1107
|
-
return
|
|
1107
|
+
return At(e);
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
1110
|
let ct = null;
|
|
1111
|
-
function
|
|
1111
|
+
function Ds(e) {
|
|
1112
1112
|
ct = e;
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1114
|
+
function ws(e, t, n) {
|
|
1115
1115
|
ct && ct.emit("i18n:init", {
|
|
1116
1116
|
timestamp: Date.now(),
|
|
1117
1117
|
i18n: e,
|
|
@@ -1124,7 +1124,7 @@ function Ps(e) {
|
|
|
1124
1124
|
return (t) => ct && ct.emit(e, t);
|
|
1125
1125
|
}
|
|
1126
1126
|
const je = {
|
|
1127
|
-
INVALID_ARGUMENT:
|
|
1127
|
+
INVALID_ARGUMENT: Br,
|
|
1128
1128
|
// 17
|
|
1129
1129
|
INVALID_DATE_ARGUMENT: 18,
|
|
1130
1130
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1133,23 +1133,23 @@ const je = {
|
|
|
1133
1133
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1134
1134
|
}, js = 24;
|
|
1135
1135
|
function Ue(e) {
|
|
1136
|
-
return
|
|
1136
|
+
return Tt(e, null, void 0);
|
|
1137
1137
|
}
|
|
1138
1138
|
function zt(e, t) {
|
|
1139
1139
|
return t.locale != null ? fn(t.locale) : fn(e.locale);
|
|
1140
1140
|
}
|
|
1141
|
-
let
|
|
1141
|
+
let Rt;
|
|
1142
1142
|
function fn(e) {
|
|
1143
1143
|
if (Z(e))
|
|
1144
1144
|
return e;
|
|
1145
|
-
if (
|
|
1146
|
-
if (e.resolvedOnce &&
|
|
1147
|
-
return
|
|
1145
|
+
if (de(e)) {
|
|
1146
|
+
if (e.resolvedOnce && Rt != null)
|
|
1147
|
+
return Rt;
|
|
1148
1148
|
if (e.constructor.name === "Function") {
|
|
1149
1149
|
const t = e();
|
|
1150
|
-
if (
|
|
1150
|
+
if (Vr(t))
|
|
1151
1151
|
throw Ue(je.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1152
|
-
return
|
|
1152
|
+
return Rt = t;
|
|
1153
1153
|
} else
|
|
1154
1154
|
throw Ue(je.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1155
1155
|
} else
|
|
@@ -1162,16 +1162,16 @@ function Us(e, t, n) {
|
|
|
1162
1162
|
])];
|
|
1163
1163
|
}
|
|
1164
1164
|
function Hn(e, t, n) {
|
|
1165
|
-
const r = Z(n) ? n :
|
|
1165
|
+
const r = Z(n) ? n : Ct, l = e;
|
|
1166
1166
|
l.__localeChainCache || (l.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1167
1167
|
let a = l.__localeChainCache.get(r);
|
|
1168
1168
|
if (!a) {
|
|
1169
1169
|
a = [];
|
|
1170
|
-
let
|
|
1171
|
-
for (; be(
|
|
1172
|
-
|
|
1170
|
+
let m = [n];
|
|
1171
|
+
for (; be(m); )
|
|
1172
|
+
m = _n(a, m, t);
|
|
1173
1173
|
const u = be(t) || !ee(t) ? t : t.default ? t.default : null;
|
|
1174
|
-
|
|
1174
|
+
m = Z(u) ? [u] : u, be(m) && _n(a, m, !1), l.__localeChainCache.set(r, a);
|
|
1175
1175
|
}
|
|
1176
1176
|
return a;
|
|
1177
1177
|
}
|
|
@@ -1179,20 +1179,20 @@ function _n(e, t, n) {
|
|
|
1179
1179
|
let r = !0;
|
|
1180
1180
|
for (let l = 0; l < t.length && pe(r); l++) {
|
|
1181
1181
|
const a = t[l];
|
|
1182
|
-
Z(a) && (r =
|
|
1182
|
+
Z(a) && (r = xs(e, t[l], n));
|
|
1183
1183
|
}
|
|
1184
1184
|
return r;
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1186
|
+
function xs(e, t, n) {
|
|
1187
1187
|
let r;
|
|
1188
1188
|
const l = t.split("-");
|
|
1189
1189
|
do {
|
|
1190
1190
|
const a = l.join("-");
|
|
1191
|
-
r =
|
|
1191
|
+
r = Vs(e, a, n), l.splice(-1, 1);
|
|
1192
1192
|
} while (l.length && r === !0);
|
|
1193
1193
|
return r;
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1195
|
+
function Vs(e, t, n) {
|
|
1196
1196
|
let r = !1;
|
|
1197
1197
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1198
1198
|
r = t[t.length - 1] !== "!";
|
|
@@ -1362,15 +1362,15 @@ Ze[
|
|
|
1362
1362
|
/* Actions.APPEND */
|
|
1363
1363
|
]
|
|
1364
1364
|
};
|
|
1365
|
-
const
|
|
1366
|
-
function
|
|
1367
|
-
return
|
|
1365
|
+
const Ws = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1366
|
+
function Gs(e) {
|
|
1367
|
+
return Ws.test(e);
|
|
1368
1368
|
}
|
|
1369
1369
|
function Zs(e) {
|
|
1370
1370
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1371
1371
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function Bs(e) {
|
|
1374
1374
|
if (e == null)
|
|
1375
1375
|
return "o";
|
|
1376
1376
|
switch (e.charCodeAt(0)) {
|
|
@@ -1397,59 +1397,59 @@ function Xs(e) {
|
|
|
1397
1397
|
}
|
|
1398
1398
|
function Ys(e) {
|
|
1399
1399
|
const t = e.trim();
|
|
1400
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1400
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Gs(t) ? Zs(t) : "*" + t;
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1402
|
+
function Xs(e) {
|
|
1403
1403
|
const t = [];
|
|
1404
|
-
let n = -1, r = 0, l = 0, a,
|
|
1405
|
-
const
|
|
1406
|
-
|
|
1404
|
+
let n = -1, r = 0, l = 0, a, m, u, i, g, y, T;
|
|
1405
|
+
const C = [];
|
|
1406
|
+
C[
|
|
1407
1407
|
0
|
|
1408
1408
|
/* Actions.APPEND */
|
|
1409
1409
|
] = () => {
|
|
1410
|
-
|
|
1411
|
-
},
|
|
1410
|
+
m === void 0 ? m = u : m += u;
|
|
1411
|
+
}, C[
|
|
1412
1412
|
1
|
|
1413
1413
|
/* Actions.PUSH */
|
|
1414
1414
|
] = () => {
|
|
1415
|
-
|
|
1416
|
-
},
|
|
1415
|
+
m !== void 0 && (t.push(m), m = void 0);
|
|
1416
|
+
}, C[
|
|
1417
1417
|
2
|
|
1418
1418
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1419
1419
|
] = () => {
|
|
1420
|
-
|
|
1420
|
+
C[
|
|
1421
1421
|
0
|
|
1422
1422
|
/* Actions.APPEND */
|
|
1423
1423
|
](), l++;
|
|
1424
|
-
},
|
|
1424
|
+
}, C[
|
|
1425
1425
|
3
|
|
1426
1426
|
/* Actions.PUSH_SUB_PATH */
|
|
1427
1427
|
] = () => {
|
|
1428
1428
|
if (l > 0)
|
|
1429
|
-
l--, r = 4,
|
|
1429
|
+
l--, r = 4, C[
|
|
1430
1430
|
0
|
|
1431
1431
|
/* Actions.APPEND */
|
|
1432
1432
|
]();
|
|
1433
1433
|
else {
|
|
1434
|
-
if (l = 0,
|
|
1434
|
+
if (l = 0, m === void 0 || (m = Ys(m), m === !1))
|
|
1435
1435
|
return !1;
|
|
1436
|
-
|
|
1436
|
+
C[
|
|
1437
1437
|
1
|
|
1438
1438
|
/* Actions.PUSH */
|
|
1439
1439
|
]();
|
|
1440
1440
|
}
|
|
1441
1441
|
};
|
|
1442
1442
|
function F() {
|
|
1443
|
-
const
|
|
1444
|
-
if (r === 5 &&
|
|
1445
|
-
return n++, u = "\\" +
|
|
1443
|
+
const D = e[n + 1];
|
|
1444
|
+
if (r === 5 && D === "'" || r === 6 && D === '"')
|
|
1445
|
+
return n++, u = "\\" + D, C[
|
|
1446
1446
|
0
|
|
1447
1447
|
/* Actions.APPEND */
|
|
1448
1448
|
](), !0;
|
|
1449
1449
|
}
|
|
1450
1450
|
for (; r !== null; )
|
|
1451
1451
|
if (n++, a = e[n], !(a === "\\" && F())) {
|
|
1452
|
-
if (i =
|
|
1452
|
+
if (i = Bs(a), T = Ze[r], g = T[i] || T.l || 8, g === 8 || (r = g[0], g[1] !== void 0 && (y = C[g[1]], y && (u = a, y() === !1))))
|
|
1453
1453
|
return;
|
|
1454
1454
|
if (r === 7)
|
|
1455
1455
|
return t;
|
|
@@ -1459,23 +1459,23 @@ const vn = /* @__PURE__ */ new Map();
|
|
|
1459
1459
|
function Hs(e, t) {
|
|
1460
1460
|
return te(e) ? e[t] : null;
|
|
1461
1461
|
}
|
|
1462
|
-
function
|
|
1462
|
+
function Js(e, t) {
|
|
1463
1463
|
if (!te(e))
|
|
1464
1464
|
return null;
|
|
1465
1465
|
let n = vn.get(t);
|
|
1466
|
-
if (n || (n =
|
|
1466
|
+
if (n || (n = Xs(t), n && vn.set(t, n)), !n)
|
|
1467
1467
|
return null;
|
|
1468
1468
|
const r = n.length;
|
|
1469
1469
|
let l = e, a = 0;
|
|
1470
1470
|
for (; a < r; ) {
|
|
1471
|
-
const
|
|
1472
|
-
if (
|
|
1471
|
+
const m = l[n[a]];
|
|
1472
|
+
if (m === void 0 || de(l))
|
|
1473
1473
|
return null;
|
|
1474
|
-
l =
|
|
1474
|
+
l = m, a++;
|
|
1475
1475
|
}
|
|
1476
1476
|
return l;
|
|
1477
1477
|
}
|
|
1478
|
-
const
|
|
1478
|
+
const $s = "10.0.5", Ot = -1, Ct = "en-US", pn = "", hn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1479
1479
|
function Ks() {
|
|
1480
1480
|
return {
|
|
1481
1481
|
upper: (e, t) => t === "text" && Z(e) ? e.toUpperCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
@@ -1483,13 +1483,13 @@ function Ks() {
|
|
|
1483
1483
|
capitalize: (e, t) => t === "text" && Z(e) ? hn(e) : t === "vnode" && te(e) && "__v_isVNode" in e ? hn(e.children) : e
|
|
1484
1484
|
};
|
|
1485
1485
|
}
|
|
1486
|
-
let
|
|
1486
|
+
let Jn;
|
|
1487
1487
|
function zs(e) {
|
|
1488
|
-
|
|
1488
|
+
Jn = e;
|
|
1489
1489
|
}
|
|
1490
|
-
let
|
|
1490
|
+
let $n;
|
|
1491
1491
|
function Qs(e) {
|
|
1492
|
-
|
|
1492
|
+
$n = e;
|
|
1493
1493
|
}
|
|
1494
1494
|
let Kn;
|
|
1495
1495
|
function qs(e) {
|
|
@@ -1505,37 +1505,37 @@ const bn = (e) => {
|
|
|
1505
1505
|
}, no = () => Qn;
|
|
1506
1506
|
let gn = 0;
|
|
1507
1507
|
function ro(e = {}) {
|
|
1508
|
-
const t =
|
|
1508
|
+
const t = de(e.onWarn) ? e.onWarn : Gr, n = Z(e.version) ? e.version : $s, r = Z(e.locale) || de(e.locale) ? e.locale : Ct, l = de(r) ? Ct : r, a = be(e.fallbackLocale) || ee(e.fallbackLocale) || Z(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, m = ee(e.messages) ? e.messages : kt(l), u = ee(e.datetimeFormats) ? e.datetimeFormats : kt(l), i = ee(e.numberFormats) ? e.numberFormats : kt(l), g = Ie(oe(), e.modifiers, Ks()), y = e.pluralRules || oe(), T = de(e.missing) ? e.missing : null, C = pe(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, F = pe(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, D = !!e.fallbackFormat, A = !!e.unresolving, w = de(e.postTranslation) ? e.postTranslation : null, f = ee(e.processor) ? e.processor : null, h = pe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, c = de(e.messageCompiler) ? e.messageCompiler : Jn, b = de(e.messageResolver) ? e.messageResolver : $n || Hs, I = de(e.localeFallbacker) ? e.localeFallbacker : Kn || Us, v = 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
|
-
const
|
|
1510
|
+
const d = {
|
|
1511
1511
|
version: n,
|
|
1512
1512
|
cid: gn,
|
|
1513
1513
|
locale: r,
|
|
1514
1514
|
fallbackLocale: a,
|
|
1515
|
-
messages:
|
|
1515
|
+
messages: m,
|
|
1516
1516
|
modifiers: g,
|
|
1517
|
-
pluralRules:
|
|
1518
|
-
missing:
|
|
1519
|
-
missingWarn:
|
|
1517
|
+
pluralRules: y,
|
|
1518
|
+
missing: T,
|
|
1519
|
+
missingWarn: C,
|
|
1520
1520
|
fallbackWarn: F,
|
|
1521
|
-
fallbackFormat:
|
|
1522
|
-
unresolving:
|
|
1523
|
-
postTranslation:
|
|
1521
|
+
fallbackFormat: D,
|
|
1522
|
+
unresolving: A,
|
|
1523
|
+
postTranslation: w,
|
|
1524
1524
|
processor: f,
|
|
1525
1525
|
warnHtmlMessage: h,
|
|
1526
1526
|
escapeParameter: S,
|
|
1527
1527
|
messageCompiler: c,
|
|
1528
1528
|
messageResolver: b,
|
|
1529
|
-
localeFallbacker:
|
|
1529
|
+
localeFallbacker: I,
|
|
1530
1530
|
fallbackContext: v,
|
|
1531
1531
|
onWarn: t,
|
|
1532
|
-
__meta:
|
|
1532
|
+
__meta: V
|
|
1533
1533
|
};
|
|
1534
|
-
return
|
|
1534
|
+
return d.datetimeFormats = u, d.numberFormats = i, d.__datetimeFormatters = L, d.__numberFormatters = X, __INTLIFY_PROD_DEVTOOLS__ && ws(d, n, V), d;
|
|
1535
1535
|
}
|
|
1536
|
-
const
|
|
1536
|
+
const kt = (e) => ({ [e]: oe() });
|
|
1537
1537
|
function Qt(e, t, n, r, l) {
|
|
1538
|
-
const { missing: a, onWarn:
|
|
1538
|
+
const { missing: a, onWarn: m } = e;
|
|
1539
1539
|
if (a !== null) {
|
|
1540
1540
|
const u = a(e, n, t, l);
|
|
1541
1541
|
return Z(u) ? u : t;
|
|
@@ -1558,27 +1558,27 @@ function oo(e, t) {
|
|
|
1558
1558
|
return !0;
|
|
1559
1559
|
return !1;
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1562
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker:
|
|
1563
|
-
pe(
|
|
1564
|
-
const F = !!
|
|
1561
|
+
function In(e, ...t) {
|
|
1562
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: m } = e, { __datetimeFormatters: u } = e, [i, g, y, T] = jt(...t), C = pe(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1563
|
+
pe(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1564
|
+
const F = !!y.part, D = zt(e, y), A = m(
|
|
1565
1565
|
e,
|
|
1566
1566
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1567
1567
|
l,
|
|
1568
|
-
|
|
1568
|
+
D
|
|
1569
1569
|
);
|
|
1570
1570
|
if (!Z(i) || i === "")
|
|
1571
|
-
return new Intl.DateTimeFormat(
|
|
1572
|
-
let
|
|
1571
|
+
return new Intl.DateTimeFormat(D, T).format(g);
|
|
1572
|
+
let w = {}, f, h = null;
|
|
1573
1573
|
const S = "datetime format";
|
|
1574
|
-
for (let
|
|
1575
|
-
Qt(e, i, f,
|
|
1574
|
+
for (let I = 0; I < A.length && (f = A[I], w = n[f] || {}, h = w[i], !ee(h)); I++)
|
|
1575
|
+
Qt(e, i, f, C, S);
|
|
1576
1576
|
if (!ee(h) || !Z(f))
|
|
1577
|
-
return r ?
|
|
1577
|
+
return r ? Ot : i;
|
|
1578
1578
|
let c = `${f}__${i}`;
|
|
1579
|
-
|
|
1579
|
+
Nt(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
1580
1580
|
let b = u.get(c);
|
|
1581
|
-
return b || (b = new Intl.DateTimeFormat(f,
|
|
1581
|
+
return b || (b = new Intl.DateTimeFormat(f, Ie({}, h, T)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1582
1582
|
}
|
|
1583
1583
|
const qn = [
|
|
1584
1584
|
"localeMatcher",
|
|
@@ -1604,7 +1604,7 @@ const qn = [
|
|
|
1604
1604
|
];
|
|
1605
1605
|
function jt(...e) {
|
|
1606
1606
|
const [t, n, r, l] = e, a = oe();
|
|
1607
|
-
let
|
|
1607
|
+
let m = oe(), u;
|
|
1608
1608
|
if (Z(t)) {
|
|
1609
1609
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1610
1610
|
if (!i)
|
|
@@ -1625,37 +1625,37 @@ function jt(...e) {
|
|
|
1625
1625
|
else
|
|
1626
1626
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1627
1627
|
return Z(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1628
|
-
qn.includes(i) ?
|
|
1629
|
-
}), Z(r) ? a.locale = r : ee(r) && (
|
|
1628
|
+
qn.includes(i) ? m[i] = n[i] : a[i] = n[i];
|
|
1629
|
+
}), Z(r) ? a.locale = r : ee(r) && (m = r), ee(l) && (m = l), [a.key || "", u, a, m];
|
|
1630
1630
|
}
|
|
1631
|
-
function
|
|
1631
|
+
function yn(e, t, n) {
|
|
1632
1632
|
const r = e;
|
|
1633
1633
|
for (const l in n) {
|
|
1634
1634
|
const a = `${t}__${l}`;
|
|
1635
1635
|
r.__datetimeFormatters.has(a) && r.__datetimeFormatters.delete(a);
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
1638
|
-
function
|
|
1639
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker:
|
|
1640
|
-
pe(
|
|
1641
|
-
const F = !!
|
|
1638
|
+
function En(e, ...t) {
|
|
1639
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: m } = e, { __numberFormatters: u } = e, [i, g, y, T] = Ut(...t), C = pe(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1640
|
+
pe(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1641
|
+
const F = !!y.part, D = zt(e, y), A = m(
|
|
1642
1642
|
e,
|
|
1643
1643
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1644
1644
|
l,
|
|
1645
|
-
|
|
1645
|
+
D
|
|
1646
1646
|
);
|
|
1647
1647
|
if (!Z(i) || i === "")
|
|
1648
|
-
return new Intl.NumberFormat(
|
|
1649
|
-
let
|
|
1648
|
+
return new Intl.NumberFormat(D, T).format(g);
|
|
1649
|
+
let w = {}, f, h = null;
|
|
1650
1650
|
const S = "number format";
|
|
1651
|
-
for (let
|
|
1652
|
-
Qt(e, i, f,
|
|
1651
|
+
for (let I = 0; I < A.length && (f = A[I], w = n[f] || {}, h = w[i], !ee(h)); I++)
|
|
1652
|
+
Qt(e, i, f, C, S);
|
|
1653
1653
|
if (!ee(h) || !Z(f))
|
|
1654
|
-
return r ?
|
|
1654
|
+
return r ? Ot : i;
|
|
1655
1655
|
let c = `${f}__${i}`;
|
|
1656
|
-
|
|
1656
|
+
Nt(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
1657
1657
|
let b = u.get(c);
|
|
1658
|
-
return b || (b = new Intl.NumberFormat(f,
|
|
1658
|
+
return b || (b = new Intl.NumberFormat(f, Ie({}, h, T)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1659
1659
|
}
|
|
1660
1660
|
const er = [
|
|
1661
1661
|
"localeMatcher",
|
|
@@ -1681,23 +1681,23 @@ const er = [
|
|
|
1681
1681
|
];
|
|
1682
1682
|
function Ut(...e) {
|
|
1683
1683
|
const [t, n, r, l] = e, a = oe();
|
|
1684
|
-
let
|
|
1684
|
+
let m = oe();
|
|
1685
1685
|
if (!ge(t))
|
|
1686
1686
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1687
1687
|
const u = t;
|
|
1688
1688
|
return Z(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1689
|
-
er.includes(i) ?
|
|
1690
|
-
}), Z(r) ? a.locale = r : ee(r) && (
|
|
1689
|
+
er.includes(i) ? m[i] = n[i] : a[i] = n[i];
|
|
1690
|
+
}), Z(r) ? a.locale = r : ee(r) && (m = r), ee(l) && (m = l), [a.key || "", u, a, m];
|
|
1691
1691
|
}
|
|
1692
|
-
function
|
|
1692
|
+
function Cn(e, t, n) {
|
|
1693
1693
|
const r = e;
|
|
1694
1694
|
for (const l in n) {
|
|
1695
1695
|
const a = `${t}__${l}`;
|
|
1696
1696
|
r.__numberFormatters.has(a) && r.__numberFormatters.delete(a);
|
|
1697
1697
|
}
|
|
1698
1698
|
}
|
|
1699
|
-
const ao = (e) => e, lo = (e) => "", io = "text", co = (e) => e.length === 0 ? "" :
|
|
1700
|
-
function
|
|
1699
|
+
const ao = (e) => e, lo = (e) => "", io = "text", co = (e) => e.length === 0 ? "" : Jt(e), uo = Wr;
|
|
1700
|
+
function Nn(e, t) {
|
|
1701
1701
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1702
1702
|
}
|
|
1703
1703
|
function mo(e) {
|
|
@@ -1708,64 +1708,64 @@ function fo(e, t) {
|
|
|
1708
1708
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1709
1709
|
}
|
|
1710
1710
|
function _o(e = {}) {
|
|
1711
|
-
const t = e.locale, n = mo(e), r = te(e.pluralRules) && Z(t) &&
|
|
1711
|
+
const t = e.locale, n = mo(e), r = te(e.pluralRules) && Z(t) && de(e.pluralRules[t]) ? e.pluralRules[t] : Nn, l = te(e.pluralRules) && Z(t) && de(e.pluralRules[t]) ? Nn : void 0, a = (f) => f[r(n, f.length, l)], m = e.list || [], u = (f) => m[f], i = e.named || oe();
|
|
1712
1712
|
ge(e.pluralIndex) && fo(n, i);
|
|
1713
1713
|
const g = (f) => i[f];
|
|
1714
|
-
function
|
|
1715
|
-
const S =
|
|
1714
|
+
function y(f, h) {
|
|
1715
|
+
const S = de(e.messages) ? e.messages(f, !!h) : te(e.messages) ? e.messages[f] : !1;
|
|
1716
1716
|
return S || (e.parent ? e.parent.message(f) : lo);
|
|
1717
1717
|
}
|
|
1718
|
-
const
|
|
1718
|
+
const T = (f) => e.modifiers ? e.modifiers[f] : ao, C = ee(e.processor) && de(e.processor.normalize) ? e.processor.normalize : co, F = ee(e.processor) && de(e.processor.interpolate) ? e.processor.interpolate : uo, D = ee(e.processor) && Z(e.processor.type) ? e.processor.type : io, w = {
|
|
1719
1719
|
list: u,
|
|
1720
1720
|
named: g,
|
|
1721
1721
|
plural: a,
|
|
1722
1722
|
linked: (f, ...h) => {
|
|
1723
1723
|
const [S, c] = h;
|
|
1724
|
-
let b = "text",
|
|
1725
|
-
h.length === 1 ? te(S) ? (
|
|
1726
|
-
const v =
|
|
1724
|
+
let b = "text", I = "";
|
|
1725
|
+
h.length === 1 ? te(S) ? (I = S.modifier || I, b = S.type || b) : Z(S) && (I = S || I) : h.length === 2 && (Z(S) && (I = S || I), Z(c) && (b = c || b));
|
|
1726
|
+
const v = y(f, !0)(w), k = (
|
|
1727
1727
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1728
|
-
b === "vnode" && be(v) &&
|
|
1728
|
+
b === "vnode" && be(v) && I ? v[0] : v
|
|
1729
1729
|
);
|
|
1730
|
-
return
|
|
1730
|
+
return I ? T(I)(k, b) : k;
|
|
1731
1731
|
},
|
|
1732
|
-
message:
|
|
1733
|
-
type:
|
|
1732
|
+
message: y,
|
|
1733
|
+
type: D,
|
|
1734
1734
|
interpolate: F,
|
|
1735
|
-
normalize:
|
|
1736
|
-
values:
|
|
1735
|
+
normalize: C,
|
|
1736
|
+
values: Ie(oe(), m, i)
|
|
1737
1737
|
};
|
|
1738
|
-
return
|
|
1738
|
+
return w;
|
|
1739
1739
|
}
|
|
1740
|
-
const
|
|
1741
|
-
function
|
|
1742
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale:
|
|
1743
|
-
|
|
1740
|
+
const Tn = () => "", Te = (e) => de(e);
|
|
1741
|
+
function On(e, ...t) {
|
|
1742
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale: m, messages: u } = e, [i, g] = xt(...t), y = pe(g.missingWarn) ? g.missingWarn : e.missingWarn, T = pe(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, C = pe(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, F = !!g.resolvedMessage, D = Z(g.default) || pe(g.default) ? pe(g.default) ? a ? i : () => i : g.default : n ? a ? i : () => i : null, A = n || D != null && (Z(D) || de(D)), w = zt(e, g);
|
|
1743
|
+
C && vo(g);
|
|
1744
1744
|
let [f, h, S] = F ? [
|
|
1745
1745
|
i,
|
|
1746
|
-
|
|
1747
|
-
u[
|
|
1748
|
-
] : tr(e, i,
|
|
1749
|
-
if (!F && !(Z(c) || ot(c) ||
|
|
1750
|
-
return l ?
|
|
1751
|
-
let
|
|
1746
|
+
w,
|
|
1747
|
+
u[w] || oe()
|
|
1748
|
+
] : tr(e, i, w, m, T, y), c = f, b = i;
|
|
1749
|
+
if (!F && !(Z(c) || ot(c) || Te(c)) && A && (c = D, b = c), !F && (!(Z(c) || ot(c) || Te(c)) || !Z(h)))
|
|
1750
|
+
return l ? Ot : i;
|
|
1751
|
+
let I = !1;
|
|
1752
1752
|
const v = () => {
|
|
1753
|
-
|
|
1754
|
-
},
|
|
1755
|
-
if (
|
|
1753
|
+
I = !0;
|
|
1754
|
+
}, k = Te(c) ? c : nr(e, i, h, c, b, v);
|
|
1755
|
+
if (I)
|
|
1756
1756
|
return c;
|
|
1757
|
-
const L = bo(e, h, S, g),
|
|
1757
|
+
const L = bo(e, h, S, g), X = _o(L), V = po(e, k, X), d = r ? r(V, i) : V;
|
|
1758
1758
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1759
|
-
const
|
|
1759
|
+
const N = {
|
|
1760
1760
|
timestamp: Date.now(),
|
|
1761
|
-
key: Z(i) ? i :
|
|
1762
|
-
locale: h || (
|
|
1763
|
-
format: Z(c) ? c :
|
|
1764
|
-
message:
|
|
1761
|
+
key: Z(i) ? i : Te(c) ? c.key : "",
|
|
1762
|
+
locale: h || (Te(c) ? c.locale : ""),
|
|
1763
|
+
format: Z(c) ? c : Te(c) ? c.source : "",
|
|
1764
|
+
message: d
|
|
1765
1765
|
};
|
|
1766
|
-
|
|
1766
|
+
N.meta = Ie({}, e.__meta, /* @__PURE__ */ to() || {}), Fs(N);
|
|
1767
1767
|
}
|
|
1768
|
-
return
|
|
1768
|
+
return d;
|
|
1769
1769
|
}
|
|
1770
1770
|
function vo(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) => {
|
|
@@ -1773,67 +1773,67 @@ function vo(e) {
|
|
|
1773
1773
|
});
|
|
1774
1774
|
}
|
|
1775
1775
|
function tr(e, t, n, r, l, a) {
|
|
1776
|
-
const { messages:
|
|
1777
|
-
let
|
|
1778
|
-
const
|
|
1779
|
-
for (let
|
|
1780
|
-
if (!oo(
|
|
1781
|
-
const
|
|
1776
|
+
const { messages: m, onWarn: u, messageResolver: i, localeFallbacker: g } = e, y = g(e, r, n);
|
|
1777
|
+
let T = oe(), C, F = null;
|
|
1778
|
+
const D = "translate";
|
|
1779
|
+
for (let A = 0; A < y.length && (C = y[A], T = m[C] || oe(), (F = i(T, t)) === null && (F = T[t]), !(Z(F) || ot(F) || Te(F))); A++)
|
|
1780
|
+
if (!oo(C, y)) {
|
|
1781
|
+
const w = Qt(
|
|
1782
1782
|
e,
|
|
1783
1783
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1784
1784
|
t,
|
|
1785
|
-
|
|
1785
|
+
C,
|
|
1786
1786
|
a,
|
|
1787
|
-
|
|
1787
|
+
D
|
|
1788
1788
|
);
|
|
1789
|
-
|
|
1789
|
+
w !== t && (F = w);
|
|
1790
1790
|
}
|
|
1791
|
-
return [F,
|
|
1791
|
+
return [F, C, T];
|
|
1792
1792
|
}
|
|
1793
1793
|
function nr(e, t, n, r, l, a) {
|
|
1794
|
-
const { messageCompiler:
|
|
1795
|
-
if (
|
|
1794
|
+
const { messageCompiler: m, warnHtmlMessage: u } = e;
|
|
1795
|
+
if (Te(r)) {
|
|
1796
1796
|
const g = r;
|
|
1797
1797
|
return g.locale = g.locale || n, g.key = g.key || t, g;
|
|
1798
1798
|
}
|
|
1799
|
-
if (
|
|
1799
|
+
if (m == null) {
|
|
1800
1800
|
const g = () => r;
|
|
1801
1801
|
return g.locale = n, g.key = t, g;
|
|
1802
1802
|
}
|
|
1803
|
-
const i =
|
|
1803
|
+
const i = m(r, ho(e, n, l, r, u, a));
|
|
1804
1804
|
return i.locale = n, i.key = t, i.source = r, i;
|
|
1805
1805
|
}
|
|
1806
1806
|
function po(e, t, n) {
|
|
1807
1807
|
return t(n);
|
|
1808
1808
|
}
|
|
1809
|
-
function
|
|
1809
|
+
function xt(...e) {
|
|
1810
1810
|
const [t, n, r] = e, l = oe();
|
|
1811
|
-
if (!Z(t) && !ge(t) && !
|
|
1811
|
+
if (!Z(t) && !ge(t) && !Te(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) : (Te(t), t);
|
|
1814
|
+
return ge(n) ? l.plural = n : Z(n) ? l.default = n : ee(n) && !Nt(n) ? l.named = n : be(n) && (l.list = n), ge(r) ? l.plural = r : Z(r) ? l.default = r : ee(r) && Ie(l, r), [a, l];
|
|
1815
1815
|
}
|
|
1816
1816
|
function ho(e, t, n, r, l, a) {
|
|
1817
1817
|
return {
|
|
1818
1818
|
locale: t,
|
|
1819
1819
|
key: n,
|
|
1820
1820
|
warnHtmlMessage: l,
|
|
1821
|
-
onError: (
|
|
1822
|
-
throw a && a(
|
|
1821
|
+
onError: (m) => {
|
|
1822
|
+
throw a && a(m), m;
|
|
1823
1823
|
},
|
|
1824
|
-
onCacheKey: (
|
|
1824
|
+
onCacheKey: (m) => Fr(t, n, m)
|
|
1825
1825
|
};
|
|
1826
1826
|
}
|
|
1827
1827
|
function bo(e, t, n, r) {
|
|
1828
|
-
const { modifiers: l, pluralRules: a, messageResolver:
|
|
1828
|
+
const { modifiers: l, pluralRules: a, messageResolver: m, fallbackLocale: u, fallbackWarn: i, missingWarn: g, fallbackContext: y } = e, C = {
|
|
1829
1829
|
locale: t,
|
|
1830
1830
|
modifiers: l,
|
|
1831
1831
|
pluralRules: a,
|
|
1832
|
-
messages: (F,
|
|
1833
|
-
let
|
|
1834
|
-
if (
|
|
1835
|
-
const [, ,
|
|
1836
|
-
|
|
1832
|
+
messages: (F, D) => {
|
|
1833
|
+
let A = m(n, F);
|
|
1834
|
+
if (A == null && (y || D)) {
|
|
1835
|
+
const [, , w] = tr(
|
|
1836
|
+
y || e,
|
|
1837
1837
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1838
1838
|
F,
|
|
1839
1839
|
t,
|
|
@@ -1841,24 +1841,24 @@ function bo(e, t, n, r) {
|
|
|
1841
1841
|
i,
|
|
1842
1842
|
g
|
|
1843
1843
|
);
|
|
1844
|
-
|
|
1844
|
+
A = m(w, F);
|
|
1845
1845
|
}
|
|
1846
|
-
if (Z(
|
|
1847
|
-
let
|
|
1848
|
-
const h = nr(e, F, t,
|
|
1849
|
-
|
|
1846
|
+
if (Z(A) || ot(A)) {
|
|
1847
|
+
let w = !1;
|
|
1848
|
+
const h = nr(e, F, t, A, F, () => {
|
|
1849
|
+
w = !0;
|
|
1850
1850
|
});
|
|
1851
|
-
return
|
|
1852
|
-
} else return
|
|
1851
|
+
return w ? Tn : h;
|
|
1852
|
+
} else return Te(A) ? A : Tn;
|
|
1853
1853
|
}
|
|
1854
1854
|
};
|
|
1855
|
-
return e.processor && (
|
|
1855
|
+
return e.processor && (C.processor = e.processor), r.list && (C.list = r.list), r.named && (C.named = r.named), ge(r.plural) && (C.pluralIndex = r.plural), C;
|
|
1856
1856
|
}
|
|
1857
1857
|
_s();
|
|
1858
|
-
var go = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_efb8d97d-fd83-430d-9111-6463bad93060", 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_efb8d97d-fd83-430d-9111-6463bad93060", 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.7.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", 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: "1789", ACTIONS_ORCHESTRATION_ID: "54f09bee-6e4f-4d1a-ad0b-cbec1c5a4598.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: "20260920.314.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_efb8d97d-fd83-430d-9111-6463bad93060", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:10811", 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: "36384533078", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "87fbbe6ab7e18854afd224693c582438ce7d0cd7", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.8/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/KDI-5147-passcode-uniqueness", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9LREktNTE0Ny1wYXNzY29kZS11bmlxdWVuZXNzXCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsImF1ZCI6InZzbzo2Zjk2ZmE4OS1iN2JmLTQ4NzgtYmFkMy04OTgwMDY1NjZiNmUiLCJiaWxsaW5nX293bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwiZXhwIjoxNzkwNTk3NTYwLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3ByaW1hcnlzaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJpYXQiOjE3OTA1NzUzNjAsImlzcyI6Imh0dHBzOi8vdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJqb2JfaWQiOiI5ODIxNjcwYy00OGY0LTU2ODgtYTU2Ny1jNDVkOGVhNTI0ZDEiLCJqb2Jfd29ya2Zsb3dfcmVmIjoiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluIiwiam9iX3dvcmtmbG93X3NoYSI6ImU2NzkzMTg0MTJjNWFiYzEwZmNlMzcyYzhhNDZmMTZhOGVkMWQ2OTIiLCJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJuYmYiOjE3OTA1NzUwNjAsIm9pZGNfZXh0cmEiOiJ7XCJhY3RvclwiOlwianVuLWxlZS1mZWVkbWVcIixcImFjdG9yX2lkXCI6XCIyMzkyODI4NjJcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiMTA4ODA3MDQwODk5XCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluXCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCJlNjc5MzE4NDEyYzVhYmMxMGZjZTM3MmM4YTQ2ZjE2YThlZDFkNjkyXCIsXCJyZWZcIjpcInJlZnMvaGVhZHMvS0RJLTUxNDctcGFzc2NvZGUtdW5pcXVlbmVzc1wiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIzNjM4NDUzMzA3OFwiLFwicnVuX251bWJlclwiOlwiMTY5XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiODdmYmJlNmFiN2UxODg1NGFmZDIyNDY5M2M1ODI0MzhjZTdkMGNkN1wiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvS0RJLTUxNDctcGFzc2NvZGUtdW5pcXVlbmVzc1wiLFwid29ya2Zsb3dfc2hhXCI6XCI4N2ZiYmU2YWI3ZTE4ODU0YWZkMjI0NjkzYzU4MjQzOGNlN2QwY2Q3XCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9LREktNTE0Ny1wYXNzY29kZS11bmlxdWVuZXNzIiwib3JjaF9pZCI6IjU0ZjA5YmVlLTZlNGYtNGQxYS1hZDBiLWNiZWMxYzVhNDU5OC5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiNTRmMDliZWUtNmU0Zi00ZDFhLWFkMGItY2JlYzFjNWE0NTk4IiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMzYzODQ1MzMwNzgiLCJydW5fbnVtYmVyIjoiMTY5IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDE2NjQ2NyIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjU0ZjA5YmVlLTZlNGYtNGQxYS1hZDBiLWNiZWMxYzVhNDU5ODo5ODIxNjcwYy00OGY0LTU2ODgtYTU2Ny1jNDVkOGVhNTI0ZDEgQWN0aW9ucy5SdW5uZXI6NTRmMDliZWUtNmU0Zi00ZDFhLWFkMGItY2JlYzFjNWE0NTk4Ojk4MjE2NzBjLTQ4ZjQtNTY4OC1hNTY3LWM0NWQ4ZWE1MjRkMSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czo1NGYwOWJlZS02ZTRmLTRkMWEtYWQwYi1jYmVjMWM1YTQ1OTg6OTgyMTY3MGMtNDhmNC01Njg4LWE1NjctYzQ1ZDhlYTUyNGQxIGdlbmVyYXRlX2lkX3Rva2VuOjU0ZjA5YmVlLTZlNGYtNGQxYS1hZDBiLWNiZWMxYzVhNDU5ODo5ODIxNjcwYy00OGY0LTU2ODgtYTU2Ny1jNDVkOGVhNTI0ZDEgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiI4N2ZiYmU2YWI3ZTE4ODU0YWZkMjI0NjkzYzU4MjQzOGNlN2QwY2Q3IiwidHJ1c3RfdGllciI6IjEifQ.QhYCV7vTge5jwGeJqb8JuTLZzI281CMJANLZELGlNOgUVO3VOAtvMPALVTViF5sDBt4PNB46IJKShZdyS3FiqekHA8XGNdVh9j_n89PfSLiCK40oEj-X2PpqHElHG7gLyhXgRKmwVGT4SkfUcfc9mC_jeIc9o7XQqjZIoInXOqJ6W5wWN72_ago1Pc45aqOjlpurFJGgRPU3bLDudGKFZfMMWzIqNzd5zERYt8ctvV-ewxH69nVqtbI3GS0yoLsXiPPi6HLEyk0qDjnWAhQuyhS5iYU_ZybdonSEStAdx0W5xZEupTPUfzWouem20dIOx1m4if9KUVa0Ic7ecX7rlg", 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_096884f2-066a-44be-853a-f6a0f4b1fc3d", INVOCATION_ID: "99d531d7826c4e53b9df969c4933b391", 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: "169", 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 1000166467", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "KDI-5147-passcode-uniqueness", 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.2.5-dev.3", 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: "87fbbe6ab7e18854afd224693c582438ce7d0cd7", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/KDI-5147-passcode-uniqueness", 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_efb8d97d-fd83-430d-9111-6463bad93060", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/236//idtoken/54f09bee-6e4f-4d1a-ad0b-cbec1c5a4598/9821670c-48f4-5688-a567-c45d8ea524d1?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_efb8d97d-fd83-430d-9111-6463bad93060", 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_efb8d97d-fd83-430d-9111-6463bad93060", 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_efb8d97d-fd83-430d-9111-6463bad93060", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1859
|
-
const
|
|
1860
|
-
function
|
|
1861
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
1858
|
+
var go = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_0dcf34bf-35e9-4dae-8ccf-892369630284", 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_0dcf34bf-35e9-4dae-8ccf-892369630284", 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.7.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", 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: "1820", ACTIONS_ORCHESTRATION_ID: "4bd7c73e-8305-41f6-a276-e2590d9656f2.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: "20260920.314.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_0dcf34bf-35e9-4dae-8ccf-892369630284", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:12103", 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: "36561577888", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "cb4bf18d69d1b797fddad2efa5f71a72b4f76892", 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/main", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6M31dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTA3MDMyOTIsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MDY4MTA5MiwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImM5ZjkwZmM3LTlkYmItNWNmZC05M2VhLTgyZjE0NzU2YTYyMSIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiN2I1NGJjNjY5MWViYzMxNjZjZDE2NDIzMDQyM2RjZThiNzVlNzIyNiIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MDY4MDc5Miwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJZeVQ3Nzg2XCIsXCJhY3Rvcl9pZFwiOlwiOTcwMDMxMjVcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiMTA5MzgzNDY1OTU1XCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluXCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCI3YjU0YmM2NjkxZWJjMzE2NmNkMTY0MjMwNDIzZGNlOGI3NWU3MjI2XCIsXCJyZWZcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwicmVmX3Byb3RlY3RlZFwiOlwidHJ1ZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjM2NTYxNTc3ODg4XCIsXCJydW5fbnVtYmVyXCI6XCIxNzNcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCJjYjRiZjE4ZDY5ZDFiNzk3ZmRkYWQyZWZhNWY3MWE3MmI0Zjc2ODkyXCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy9tYWluXCIsXCJ3b3JrZmxvd19zaGFcIjpcImNiNGJmMThkNjlkMWI3OTdmZGRhZDJlZmE1ZjcxYTcyYjRmNzY4OTJcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL2hybS1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL21haW4iLCJvcmNoX2lkIjoiNGJkN2M3M2UtODMwNS00MWY2LWEyNzYtZTI1OTBkOTY1NmYyLnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiI0YmQ3YzczZS04MzA1LTQxZjYtYTI3Ni1lMjU5MGQ5NjU2ZjIiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiIzNjU2MTU3Nzg4OCIsInJ1bl9udW1iZXIiOiIxNzMiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMTY5ODAwIiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6NGJkN2M3M2UtODMwNS00MWY2LWEyNzYtZTI1OTBkOTY1NmYyOmM5ZjkwZmM3LTlkYmItNWNmZC05M2VhLTgyZjE0NzU2YTYyMSBBY3Rpb25zLlJ1bm5lcjo0YmQ3YzczZS04MzA1LTQxZjYtYTI3Ni1lMjU5MGQ5NjU2ZjI6YzlmOTBmYzctOWRiYi01Y2ZkLTkzZWEtODJmMTQ3NTZhNjIxIEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOjRiZDdjNzNlLTgzMDUtNDFmNi1hMjc2LWUyNTkwZDk2NTZmMjpjOWY5MGZjNy05ZGJiLTVjZmQtOTNlYS04MmYxNDc1NmE2MjEgZ2VuZXJhdGVfaWRfdG9rZW46NGJkN2M3M2UtODMwNS00MWY2LWEyNzYtZTI1OTBkOTY1NmYyOmM5ZjkwZmM3LTlkYmItNWNmZC05M2VhLTgyZjE0NzU2YTYyMSBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6ImNiNGJmMThkNjlkMWI3OTdmZGRhZDJlZmE1ZjcxYTcyYjRmNzY4OTIiLCJ0cnVzdF90aWVyIjoiMSJ9.TdrFP8pv8cE3hzq3BdT1LDKwaRv0aN2iHhwpPdW3e1x9znGtXlxAwr-gqfaXqGIu_UKYTQ92hO6alGWvLC0KLaMKTjTHTQeJASF4Ss7fZxv0PArblomRy9_w9UXXKPBlTzel-YPBDBmdX0xloGBExsEUoNaC4Z5KSuGk3jwypqQD1SNvcaIgGq3_JDmqfrpJOHrNL_dgWGChG4xli7tCPtfHN-iNmT8m5C4Ew9Z_NtRm06bcsUwIlLi3dMkQvQ1EMNnyRCclqz-6m47hlX5WdBWMLWbB4Ut2wBZlOPOxW0TvIlhLJkm1YiTGwCaKkqdNQrKJWrvqeKI7f1AGSQUK8g", 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_f3428f6e-7e96-4942-a7ab-b1d6a3ba247f", INVOCATION_ID: "a9231dc7ae3f449a90c58825dbeeebff", 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: "173", GITHUB_TRIGGERING_ACTOR: "YyT7786", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000169800", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", 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.2.5-dev.5", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "true", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", GITHUB_SHA: "cb4bf18d69d1b797fddad2efa5f71a72b4f76892", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "YyT7786", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_0dcf34bf-35e9-4dae-8ccf-892369630284", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "97003125", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/219//idtoken/4bd7c73e-8305-41f6-a276-e2590d9656f2/c9f90fc7-9dbb-5cfd-93ea-82f14756a621?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_0dcf34bf-35e9-4dae-8ccf-892369630284", 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_0dcf34bf-35e9-4dae-8ccf-892369630284", 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_0dcf34bf-35e9-4dae-8ccf-892369630284", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1859
|
+
const Io = "10.0.5";
|
|
1860
|
+
function yo() {
|
|
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 = {
|
|
1864
1864
|
// composer module errors
|
|
@@ -1874,47 +1874,47 @@ const at = {
|
|
|
1874
1874
|
UNEXPECTED_ERROR: 32
|
|
1875
1875
|
};
|
|
1876
1876
|
function ut(e, ...t) {
|
|
1877
|
-
return
|
|
1877
|
+
return Tt(e, null, void 0);
|
|
1878
1878
|
}
|
|
1879
|
-
const
|
|
1880
|
-
function
|
|
1879
|
+
const Vt = /* @__PURE__ */ Je("__translateVNode"), Wt = /* @__PURE__ */ Je("__datetimeParts"), Gt = /* @__PURE__ */ Je("__numberParts"), Eo = Je("__setPluralRules"), rr = /* @__PURE__ */ Je("__injectWithOption"), Zt = /* @__PURE__ */ Je("__dispose");
|
|
1880
|
+
function mt(e) {
|
|
1881
1881
|
if (!te(e))
|
|
1882
1882
|
return e;
|
|
1883
1883
|
for (const t in e)
|
|
1884
1884
|
if (Le(e, t))
|
|
1885
1885
|
if (!t.includes("."))
|
|
1886
|
-
te(e[t]) &&
|
|
1886
|
+
te(e[t]) && mt(e[t]);
|
|
1887
1887
|
else {
|
|
1888
1888
|
const n = t.split("."), r = n.length - 1;
|
|
1889
1889
|
let l = e, a = !1;
|
|
1890
|
-
for (let
|
|
1891
|
-
if (n[
|
|
1890
|
+
for (let m = 0; m < r; m++) {
|
|
1891
|
+
if (n[m] in l || (l[n[m]] = oe()), !te(l[n[m]])) {
|
|
1892
1892
|
a = !0;
|
|
1893
1893
|
break;
|
|
1894
1894
|
}
|
|
1895
|
-
l = l[n[
|
|
1895
|
+
l = l[n[m]];
|
|
1896
1896
|
}
|
|
1897
|
-
a || (l[n[r]] = e[t], delete e[t]), te(l[n[r]]) &&
|
|
1897
|
+
a || (l[n[r]] = e[t], delete e[t]), te(l[n[r]]) && mt(l[n[r]]);
|
|
1898
1898
|
}
|
|
1899
1899
|
return e;
|
|
1900
1900
|
}
|
|
1901
1901
|
function sr(e, t) {
|
|
1902
|
-
const { messages: n, __i18n: r, messageResolver: l, flatJson: a } = t,
|
|
1902
|
+
const { messages: n, __i18n: r, messageResolver: l, flatJson: a } = t, m = ee(n) ? n : be(r) ? oe() : { [e]: oe() };
|
|
1903
1903
|
if (be(r) && r.forEach((u) => {
|
|
1904
1904
|
if ("locale" in u && "resource" in u) {
|
|
1905
1905
|
const { locale: i, resource: g } = u;
|
|
1906
|
-
i ? (
|
|
1906
|
+
i ? (m[i] = m[i] || oe(), yt(g, m[i])) : yt(g, m);
|
|
1907
1907
|
} else
|
|
1908
|
-
Z(u) &&
|
|
1908
|
+
Z(u) && yt(JSON.parse(u), m);
|
|
1909
1909
|
}), l == null && a)
|
|
1910
|
-
for (const u in
|
|
1911
|
-
Le(
|
|
1912
|
-
return
|
|
1910
|
+
for (const u in m)
|
|
1911
|
+
Le(m, u) && mt(m[u]);
|
|
1912
|
+
return m;
|
|
1913
1913
|
}
|
|
1914
1914
|
function or(e) {
|
|
1915
1915
|
return e.type;
|
|
1916
1916
|
}
|
|
1917
|
-
function
|
|
1917
|
+
function Co(e, t, n) {
|
|
1918
1918
|
let r = te(t.messages) ? t.messages : oe();
|
|
1919
1919
|
"__i18nGlobal" in n && (r = sr(e.locale.value, {
|
|
1920
1920
|
messages: r,
|
|
@@ -1927,14 +1927,14 @@ function No(e, t, n) {
|
|
|
1927
1927
|
{
|
|
1928
1928
|
if (te(t.datetimeFormats)) {
|
|
1929
1929
|
const a = Object.keys(t.datetimeFormats);
|
|
1930
|
-
a.length && a.forEach((
|
|
1931
|
-
e.mergeDateTimeFormat(
|
|
1930
|
+
a.length && a.forEach((m) => {
|
|
1931
|
+
e.mergeDateTimeFormat(m, t.datetimeFormats[m]);
|
|
1932
1932
|
});
|
|
1933
1933
|
}
|
|
1934
1934
|
if (te(t.numberFormats)) {
|
|
1935
1935
|
const a = Object.keys(t.numberFormats);
|
|
1936
|
-
a.length && a.forEach((
|
|
1937
|
-
e.mergeNumberFormat(
|
|
1936
|
+
a.length && a.forEach((m) => {
|
|
1937
|
+
e.mergeNumberFormat(m, t.numberFormats[m]);
|
|
1938
1938
|
});
|
|
1939
1939
|
}
|
|
1940
1940
|
}
|
|
@@ -1942,42 +1942,42 @@ function No(e, t, n) {
|
|
|
1942
1942
|
function Sn(e) {
|
|
1943
1943
|
return ue(fr, null, e, 0);
|
|
1944
1944
|
}
|
|
1945
|
-
const Ln = "__INTLIFY_META__",
|
|
1946
|
-
let
|
|
1947
|
-
function
|
|
1945
|
+
const Ln = "__INTLIFY_META__", An = () => [], No = () => !1;
|
|
1946
|
+
let Rn = 0;
|
|
1947
|
+
function kn(e) {
|
|
1948
1948
|
return (t, n, r, l) => e(n, r, Yt() || void 0, l);
|
|
1949
1949
|
}
|
|
1950
|
-
const
|
|
1950
|
+
const To = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1951
1951
|
const e = Yt();
|
|
1952
1952
|
let t = null;
|
|
1953
1953
|
return e && (t = or(e)[Ln]) ? { [Ln]: t } : null;
|
|
1954
1954
|
};
|
|
1955
|
-
function
|
|
1956
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, l = e.flatJson, a = on ? rt :
|
|
1957
|
-
let
|
|
1955
|
+
function Oo(e = {}) {
|
|
1956
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, l = e.flatJson, a = on ? rt : mr;
|
|
1957
|
+
let m = pe(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1958
1958
|
const u = a(
|
|
1959
1959
|
// prettier-ignore
|
|
1960
|
-
t &&
|
|
1960
|
+
t && m ? t.locale.value : Z(e.locale) ? e.locale : Ct
|
|
1961
1961
|
), i = a(
|
|
1962
1962
|
// prettier-ignore
|
|
1963
|
-
t &&
|
|
1964
|
-
), g = a(sr(u.value, e)),
|
|
1965
|
-
let
|
|
1963
|
+
t && m ? t.fallbackLocale.value : Z(e.fallbackLocale) || be(e.fallbackLocale) || ee(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
1964
|
+
), g = a(sr(u.value, e)), y = a(ee(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), T = a(ee(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
|
|
1965
|
+
let C = t ? t.missingWarn : pe(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, F = t ? t.fallbackWarn : pe(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, D = t ? t.fallbackRoot : pe(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.fallbackFormat, w = de(e.missing) ? e.missing : null, f = de(e.missing) ? kn(e.missing) : null, h = de(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : pe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, c = !!e.escapeParameter;
|
|
1966
1966
|
const b = t ? t.modifiers : ee(e.modifiers) ? e.modifiers : {};
|
|
1967
|
-
let
|
|
1967
|
+
let I = e.pluralRules || t && t.pluralRules, v;
|
|
1968
1968
|
v = (() => {
|
|
1969
1969
|
r && bn(null);
|
|
1970
1970
|
const p = {
|
|
1971
|
-
version:
|
|
1971
|
+
version: Io,
|
|
1972
1972
|
locale: u.value,
|
|
1973
1973
|
fallbackLocale: i.value,
|
|
1974
1974
|
messages: g.value,
|
|
1975
1975
|
modifiers: b,
|
|
1976
|
-
pluralRules:
|
|
1976
|
+
pluralRules: I,
|
|
1977
1977
|
missing: f === null ? void 0 : f,
|
|
1978
|
-
missingWarn:
|
|
1978
|
+
missingWarn: C,
|
|
1979
1979
|
fallbackWarn: F,
|
|
1980
|
-
fallbackFormat:
|
|
1980
|
+
fallbackFormat: A,
|
|
1981
1981
|
unresolving: !0,
|
|
1982
1982
|
postTranslation: h === null ? void 0 : h,
|
|
1983
1983
|
warnHtmlMessage: S,
|
|
@@ -1986,43 +1986,43 @@ function To(e = {}) {
|
|
|
1986
1986
|
messageCompiler: e.messageCompiler,
|
|
1987
1987
|
__meta: { framework: "vue" }
|
|
1988
1988
|
};
|
|
1989
|
-
p.datetimeFormats =
|
|
1990
|
-
const
|
|
1991
|
-
return r && bn(
|
|
1989
|
+
p.datetimeFormats = y.value, p.numberFormats = T.value, p.__datetimeFormatters = ee(v) ? v.__datetimeFormatters : void 0, p.__numberFormatters = ee(v) ? v.__numberFormatters : void 0;
|
|
1990
|
+
const E = ro(p);
|
|
1991
|
+
return r && bn(E), E;
|
|
1992
1992
|
})(), lt(v, 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
|
+
y.value,
|
|
1999
|
+
T.value
|
|
2000
2000
|
];
|
|
2001
2001
|
}
|
|
2002
|
-
const
|
|
2002
|
+
const X = z({
|
|
2003
2003
|
get: () => u.value,
|
|
2004
2004
|
set: (p) => {
|
|
2005
2005
|
u.value = p, v.locale = u.value;
|
|
2006
2006
|
}
|
|
2007
|
-
}),
|
|
2007
|
+
}), V = z({
|
|
2008
2008
|
get: () => i.value,
|
|
2009
2009
|
set: (p) => {
|
|
2010
2010
|
i.value = p, v.fallbackLocale = i.value, lt(v, u.value, p);
|
|
2011
2011
|
}
|
|
2012
|
-
}),
|
|
2013
|
-
function
|
|
2014
|
-
return
|
|
2012
|
+
}), d = z(() => g.value), N = /* @__PURE__ */ z(() => y.value), U = /* @__PURE__ */ z(() => T.value);
|
|
2013
|
+
function x() {
|
|
2014
|
+
return de(h) ? h : null;
|
|
2015
2015
|
}
|
|
2016
2016
|
function j(p) {
|
|
2017
2017
|
h = p, v.postTranslation = p;
|
|
2018
2018
|
}
|
|
2019
|
-
function
|
|
2020
|
-
return
|
|
2019
|
+
function G() {
|
|
2020
|
+
return w;
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2023
|
-
p !== null && (f =
|
|
2022
|
+
function W(p) {
|
|
2023
|
+
p !== null && (f = kn(p)), w = p, v.missing = f;
|
|
2024
2024
|
}
|
|
2025
|
-
const
|
|
2025
|
+
const B = (p, E, J, le, Ye, dt) => {
|
|
2026
2026
|
L();
|
|
2027
2027
|
let ze;
|
|
2028
2028
|
try {
|
|
@@ -2030,33 +2030,33 @@ function To(e = {}) {
|
|
|
2030
2030
|
} finally {
|
|
2031
2031
|
__INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = void 0);
|
|
2032
2032
|
}
|
|
2033
|
-
if (
|
|
2034
|
-
ge(ze) && ze ===
|
|
2035
|
-
const [cr,
|
|
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 [cr, Ea] = E();
|
|
2036
|
+
return t && D ? le(t) : Ye(cr);
|
|
2037
2037
|
} else {
|
|
2038
|
-
if (
|
|
2038
|
+
if (dt(ze))
|
|
2039
2039
|
return ze;
|
|
2040
2040
|
throw ut(at.UNEXPECTED_RETURN_TYPE);
|
|
2041
2041
|
}
|
|
2042
2042
|
};
|
|
2043
2043
|
function Y(...p) {
|
|
2044
|
-
return
|
|
2044
|
+
return B((E) => Reflect.apply(On, null, [E, ...p]), () => xt(...p), "translate", (E) => Reflect.apply(E.t, E, [...p]), (E) => E, (E) => Z(E));
|
|
2045
2045
|
}
|
|
2046
2046
|
function ne(...p) {
|
|
2047
|
-
const [
|
|
2047
|
+
const [E, J, le] = p;
|
|
2048
2048
|
if (le && !te(le))
|
|
2049
2049
|
throw ut(at.INVALID_ARGUMENT);
|
|
2050
|
-
return Y(
|
|
2050
|
+
return Y(E, J, Ie({ resolvedMessage: !0 }, le || {}));
|
|
2051
2051
|
}
|
|
2052
2052
|
function Q(...p) {
|
|
2053
|
-
return
|
|
2053
|
+
return B((E) => Reflect.apply(In, null, [E, ...p]), () => jt(...p), "datetime format", (E) => Reflect.apply(E.d, E, [...p]), () => pn, (E) => Z(E));
|
|
2054
2054
|
}
|
|
2055
2055
|
function _e(...p) {
|
|
2056
|
-
return
|
|
2056
|
+
return B((E) => Reflect.apply(En, null, [E, ...p]), () => Ut(...p), "number format", (E) => Reflect.apply(E.n, E, [...p]), () => pn, (E) => Z(E));
|
|
2057
2057
|
}
|
|
2058
2058
|
function ce(p) {
|
|
2059
|
-
return p.map((
|
|
2059
|
+
return p.map((E) => Z(E) || ge(E) || pe(E) ? Sn(String(E)) : E);
|
|
2060
2060
|
}
|
|
2061
2061
|
const fe = {
|
|
2062
2062
|
normalize: ce,
|
|
@@ -2064,121 +2064,121 @@ function To(e = {}) {
|
|
|
2064
2064
|
type: "vnode"
|
|
2065
2065
|
};
|
|
2066
2066
|
function q(...p) {
|
|
2067
|
-
return
|
|
2068
|
-
let
|
|
2069
|
-
const le =
|
|
2067
|
+
return B((E) => {
|
|
2068
|
+
let J;
|
|
2069
|
+
const le = E;
|
|
2070
2070
|
try {
|
|
2071
|
-
le.processor = fe,
|
|
2071
|
+
le.processor = fe, J = Reflect.apply(On, null, [le, ...p]);
|
|
2072
2072
|
} finally {
|
|
2073
2073
|
le.processor = null;
|
|
2074
2074
|
}
|
|
2075
|
-
return
|
|
2076
|
-
}, () =>
|
|
2075
|
+
return J;
|
|
2076
|
+
}, () => xt(...p), "translate", (E) => E[Vt](...p), (E) => [Sn(E)], (E) => be(E));
|
|
2077
2077
|
}
|
|
2078
|
-
function
|
|
2079
|
-
return
|
|
2078
|
+
function we(...p) {
|
|
2079
|
+
return B((E) => Reflect.apply(En, null, [E, ...p]), () => Ut(...p), "number format", (E) => E[Gt](...p), An, (E) => Z(E) || be(E));
|
|
2080
2080
|
}
|
|
2081
2081
|
function K(...p) {
|
|
2082
|
-
return
|
|
2082
|
+
return B((E) => Reflect.apply(In, null, [E, ...p]), () => jt(...p), "datetime format", (E) => E[Wt](...p), An, (E) => Z(E) || be(E));
|
|
2083
2083
|
}
|
|
2084
2084
|
function ve(p) {
|
|
2085
|
-
|
|
2085
|
+
I = p, v.pluralRules = I;
|
|
2086
2086
|
}
|
|
2087
|
-
function
|
|
2088
|
-
return
|
|
2087
|
+
function $e(p, E) {
|
|
2088
|
+
return B(() => {
|
|
2089
2089
|
if (!p)
|
|
2090
2090
|
return !1;
|
|
2091
|
-
const
|
|
2092
|
-
return ot(Ye) ||
|
|
2093
|
-
}, () => [p], "translate exists", (
|
|
2091
|
+
const J = Z(E) ? E : u.value, le = Fe(J), Ye = v.messageResolver(le, p);
|
|
2092
|
+
return ot(Ye) || Te(Ye) || Z(Ye);
|
|
2093
|
+
}, () => [p], "translate exists", (J) => Reflect.apply(J.te, J, [p, E]), No, (J) => pe(J));
|
|
2094
2094
|
}
|
|
2095
2095
|
function Ke(p) {
|
|
2096
|
-
let
|
|
2097
|
-
const
|
|
2098
|
-
for (let le = 0; le <
|
|
2099
|
-
const Ye = g.value[
|
|
2100
|
-
if (
|
|
2101
|
-
|
|
2096
|
+
let E = null;
|
|
2097
|
+
const J = Hn(v, i.value, u.value);
|
|
2098
|
+
for (let le = 0; le < J.length; le++) {
|
|
2099
|
+
const Ye = g.value[J[le]] || {}, dt = v.messageResolver(Ye, p);
|
|
2100
|
+
if (dt != null) {
|
|
2101
|
+
E = dt;
|
|
2102
2102
|
break;
|
|
2103
2103
|
}
|
|
2104
2104
|
}
|
|
2105
|
-
return
|
|
2105
|
+
return E;
|
|
2106
2106
|
}
|
|
2107
|
-
function
|
|
2108
|
-
const
|
|
2109
|
-
return
|
|
2107
|
+
function xe(p) {
|
|
2108
|
+
const E = Ke(p);
|
|
2109
|
+
return E ?? (t ? t.tm(p) || {} : {});
|
|
2110
2110
|
}
|
|
2111
2111
|
function Fe(p) {
|
|
2112
2112
|
return g.value[p] || {};
|
|
2113
2113
|
}
|
|
2114
|
-
function
|
|
2114
|
+
function Ne(p, E) {
|
|
2115
2115
|
if (l) {
|
|
2116
|
-
const
|
|
2117
|
-
for (const le in
|
|
2118
|
-
Le(
|
|
2119
|
-
|
|
2116
|
+
const J = { [p]: E };
|
|
2117
|
+
for (const le in J)
|
|
2118
|
+
Le(J, le) && mt(J[le]);
|
|
2119
|
+
E = J[p];
|
|
2120
2120
|
}
|
|
2121
|
-
g.value[p] =
|
|
2121
|
+
g.value[p] = E, v.messages = g.value;
|
|
2122
2122
|
}
|
|
2123
|
-
function
|
|
2123
|
+
function Be(p, E) {
|
|
2124
2124
|
g.value[p] = g.value[p] || {};
|
|
2125
|
-
const
|
|
2125
|
+
const J = { [p]: E };
|
|
2126
2126
|
if (l)
|
|
2127
|
-
for (const le in
|
|
2128
|
-
Le(
|
|
2129
|
-
|
|
2127
|
+
for (const le in J)
|
|
2128
|
+
Le(J, le) && mt(J[le]);
|
|
2129
|
+
E = J[p], yt(E, g.value[p]), v.messages = g.value;
|
|
2130
2130
|
}
|
|
2131
|
-
function
|
|
2132
|
-
return
|
|
2131
|
+
function O(p) {
|
|
2132
|
+
return y.value[p] || {};
|
|
2133
2133
|
}
|
|
2134
|
-
function s(p,
|
|
2135
|
-
|
|
2134
|
+
function s(p, E) {
|
|
2135
|
+
y.value[p] = E, v.datetimeFormats = y.value, yn(v, p, E);
|
|
2136
2136
|
}
|
|
2137
|
-
function o(p,
|
|
2138
|
-
|
|
2137
|
+
function o(p, E) {
|
|
2138
|
+
y.value[p] = Ie(y.value[p] || {}, E), v.datetimeFormats = y.value, yn(v, p, E);
|
|
2139
2139
|
}
|
|
2140
2140
|
function _(p) {
|
|
2141
|
-
return
|
|
2141
|
+
return T.value[p] || {};
|
|
2142
2142
|
}
|
|
2143
|
-
function
|
|
2144
|
-
|
|
2143
|
+
function R(p, E) {
|
|
2144
|
+
T.value[p] = E, v.numberFormats = T.value, Cn(v, p, E);
|
|
2145
2145
|
}
|
|
2146
|
-
function M(p,
|
|
2147
|
-
|
|
2146
|
+
function M(p, E) {
|
|
2147
|
+
T.value[p] = Ie(T.value[p] || {}, E), v.numberFormats = T.value, Cn(v, p, E);
|
|
2148
2148
|
}
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
}),
|
|
2152
|
-
|
|
2149
|
+
Rn++, t && on && (Dt(t.locale, (p) => {
|
|
2150
|
+
m && (u.value = p, v.locale = p, lt(v, u.value, i.value));
|
|
2151
|
+
}), Dt(t.fallbackLocale, (p) => {
|
|
2152
|
+
m && (i.value = p, v.fallbackLocale = p, lt(v, u.value, i.value));
|
|
2153
2153
|
}));
|
|
2154
2154
|
const P = {
|
|
2155
|
-
id:
|
|
2156
|
-
locale:
|
|
2157
|
-
fallbackLocale:
|
|
2155
|
+
id: Rn,
|
|
2156
|
+
locale: X,
|
|
2157
|
+
fallbackLocale: V,
|
|
2158
2158
|
get inheritLocale() {
|
|
2159
|
-
return
|
|
2159
|
+
return m;
|
|
2160
2160
|
},
|
|
2161
2161
|
set inheritLocale(p) {
|
|
2162
|
-
|
|
2162
|
+
m = p, p && t && (u.value = t.locale.value, i.value = t.fallbackLocale.value, lt(v, u.value, i.value));
|
|
2163
2163
|
},
|
|
2164
2164
|
get availableLocales() {
|
|
2165
2165
|
return Object.keys(g.value).sort();
|
|
2166
2166
|
},
|
|
2167
|
-
messages:
|
|
2167
|
+
messages: d,
|
|
2168
2168
|
get modifiers() {
|
|
2169
2169
|
return b;
|
|
2170
2170
|
},
|
|
2171
2171
|
get pluralRules() {
|
|
2172
|
-
return
|
|
2172
|
+
return I || {};
|
|
2173
2173
|
},
|
|
2174
2174
|
get isGlobal() {
|
|
2175
2175
|
return r;
|
|
2176
2176
|
},
|
|
2177
2177
|
get missingWarn() {
|
|
2178
|
-
return
|
|
2178
|
+
return C;
|
|
2179
2179
|
},
|
|
2180
2180
|
set missingWarn(p) {
|
|
2181
|
-
|
|
2181
|
+
C = p, v.missingWarn = C;
|
|
2182
2182
|
},
|
|
2183
2183
|
get fallbackWarn() {
|
|
2184
2184
|
return F;
|
|
@@ -2187,16 +2187,16 @@ function To(e = {}) {
|
|
|
2187
2187
|
F = p, v.fallbackWarn = F;
|
|
2188
2188
|
},
|
|
2189
2189
|
get fallbackRoot() {
|
|
2190
|
-
return
|
|
2190
|
+
return D;
|
|
2191
2191
|
},
|
|
2192
2192
|
set fallbackRoot(p) {
|
|
2193
|
-
|
|
2193
|
+
D = p;
|
|
2194
2194
|
},
|
|
2195
2195
|
get fallbackFormat() {
|
|
2196
|
-
return
|
|
2196
|
+
return A;
|
|
2197
2197
|
},
|
|
2198
2198
|
set fallbackFormat(p) {
|
|
2199
|
-
|
|
2199
|
+
A = p, v.fallbackFormat = A;
|
|
2200
2200
|
},
|
|
2201
2201
|
get warnHtmlMessage() {
|
|
2202
2202
|
return S;
|
|
@@ -2212,15 +2212,15 @@ function To(e = {}) {
|
|
|
2212
2212
|
},
|
|
2213
2213
|
t: Y,
|
|
2214
2214
|
getLocaleMessage: Fe,
|
|
2215
|
-
setLocaleMessage:
|
|
2216
|
-
mergeLocaleMessage:
|
|
2217
|
-
getPostTranslationHandler:
|
|
2215
|
+
setLocaleMessage: Ne,
|
|
2216
|
+
mergeLocaleMessage: Be,
|
|
2217
|
+
getPostTranslationHandler: x,
|
|
2218
2218
|
setPostTranslationHandler: j,
|
|
2219
|
-
getMissingHandler:
|
|
2220
|
-
setMissingHandler:
|
|
2221
|
-
[
|
|
2219
|
+
getMissingHandler: G,
|
|
2220
|
+
setMissingHandler: W,
|
|
2221
|
+
[Eo]: ve
|
|
2222
2222
|
};
|
|
2223
|
-
return P.datetimeFormats =
|
|
2223
|
+
return P.datetimeFormats = N, P.numberFormats = U, P.rt = ne, P.te = $e, P.tm = xe, P.d = Q, P.n = _e, P.getDateTimeFormat = O, P.setDateTimeFormat = s, P.mergeDateTimeFormat = o, P.getNumberFormat = _, P.setNumberFormat = R, P.mergeNumberFormat = M, P[rr] = n, P[Vt] = q, P[Wt] = K, P[Gt] = we, P;
|
|
2224
2224
|
}
|
|
2225
2225
|
const qt = {
|
|
2226
2226
|
tag: {
|
|
@@ -2244,16 +2244,16 @@ function So({ slots: e }, t) {
|
|
|
2244
2244
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, l) => [
|
|
2245
2245
|
...r,
|
|
2246
2246
|
// prettier-ignore
|
|
2247
|
-
...l.type ===
|
|
2247
|
+
...l.type === ke ? l.children : [l]
|
|
2248
2248
|
], []) : t.reduce((n, r) => {
|
|
2249
2249
|
const l = e[r];
|
|
2250
2250
|
return l && (n[r] = l()), n;
|
|
2251
2251
|
}, oe());
|
|
2252
2252
|
}
|
|
2253
2253
|
function ar() {
|
|
2254
|
-
return
|
|
2254
|
+
return ke;
|
|
2255
2255
|
}
|
|
2256
|
-
|
|
2256
|
+
Ie({
|
|
2257
2257
|
keypath: {
|
|
2258
2258
|
type: String,
|
|
2259
2259
|
required: !0
|
|
@@ -2269,20 +2269,20 @@ function Lo(e) {
|
|
|
2269
2269
|
function lr(e, t, n, r) {
|
|
2270
2270
|
const { slots: l, attrs: a } = t;
|
|
2271
2271
|
return () => {
|
|
2272
|
-
const
|
|
2272
|
+
const m = { part: !0 };
|
|
2273
2273
|
let u = oe();
|
|
2274
|
-
e.locale && (
|
|
2275
|
-
const i = r(e.value,
|
|
2276
|
-
let g = [
|
|
2277
|
-
be(i) ? g = i.map((
|
|
2278
|
-
const
|
|
2279
|
-
return Lo(
|
|
2274
|
+
e.locale && (m.locale = e.locale), Z(e.format) ? m.key = e.format : te(e.format) && (Z(e.format.key) && (m.key = e.format.key), u = Object.keys(e.format).reduce((C, F) => n.includes(F) ? Ie(oe(), C, { [F]: e.format[F] }) : C, oe()));
|
|
2275
|
+
const i = r(e.value, m, u);
|
|
2276
|
+
let g = [m.key];
|
|
2277
|
+
be(i) ? g = i.map((C, F) => {
|
|
2278
|
+
const D = l[C.type], A = D ? D({ [C.type]: C.value, index: F, parts: i }) : [C.value];
|
|
2279
|
+
return Lo(A) && (A[0].key = `${C.type}-${F}`), A;
|
|
2280
2280
|
}) : Z(i) && (g = [i]);
|
|
2281
|
-
const
|
|
2282
|
-
return
|
|
2281
|
+
const y = Ie(oe(), a), T = Z(e.tag) || te(e.tag) ? e.tag : ar();
|
|
2282
|
+
return Wn(T, y, g);
|
|
2283
2283
|
};
|
|
2284
2284
|
}
|
|
2285
|
-
|
|
2285
|
+
Ie({
|
|
2286
2286
|
value: {
|
|
2287
2287
|
type: Number,
|
|
2288
2288
|
required: !0
|
|
@@ -2291,7 +2291,7 @@ ye({
|
|
|
2291
2291
|
type: [String, Object]
|
|
2292
2292
|
}
|
|
2293
2293
|
}, qt);
|
|
2294
|
-
|
|
2294
|
+
Ie({
|
|
2295
2295
|
value: {
|
|
2296
2296
|
type: [Number, Date],
|
|
2297
2297
|
required: !0
|
|
@@ -2300,50 +2300,50 @@ ye({
|
|
|
2300
2300
|
type: [String, Object]
|
|
2301
2301
|
}
|
|
2302
2302
|
}, qt);
|
|
2303
|
-
const
|
|
2303
|
+
const Ao = /* @__PURE__ */ Je("global-vue-i18n");
|
|
2304
2304
|
function St(e = {}) {
|
|
2305
2305
|
const t = Yt();
|
|
2306
2306
|
if (t == null)
|
|
2307
2307
|
throw ut(at.MUST_BE_CALL_SETUP_TOP);
|
|
2308
2308
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2309
2309
|
throw ut(at.NOT_INSTALLED);
|
|
2310
|
-
const n =
|
|
2310
|
+
const n = Ro(t), r = Mo(n), l = or(t), a = ko(e, l);
|
|
2311
2311
|
if (a === "global")
|
|
2312
|
-
return
|
|
2312
|
+
return Co(r, e, l), r;
|
|
2313
2313
|
if (a === "parent") {
|
|
2314
|
-
let i =
|
|
2314
|
+
let i = Do(n, t, e.__useComponent);
|
|
2315
2315
|
return i == null && (i = r), i;
|
|
2316
2316
|
}
|
|
2317
|
-
const
|
|
2318
|
-
let u =
|
|
2317
|
+
const m = n;
|
|
2318
|
+
let u = m.__getInstance(t);
|
|
2319
2319
|
if (u == null) {
|
|
2320
|
-
const i =
|
|
2321
|
-
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u =
|
|
2320
|
+
const i = Ie({}, e);
|
|
2321
|
+
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u = Oo(i), m.__composerExtend && (u[Zt] = m.__composerExtend(u)), Fo(m, t, u), m.__setInstance(t, u);
|
|
2322
2322
|
}
|
|
2323
2323
|
return u;
|
|
2324
2324
|
}
|
|
2325
|
-
function
|
|
2326
|
-
const t = ur(e.isCE ?
|
|
2325
|
+
function Ro(e) {
|
|
2326
|
+
const t = ur(e.isCE ? Ao : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2327
2327
|
if (!t)
|
|
2328
2328
|
throw ut(e.isCE ? at.NOT_INSTALLED_WITH_PROVIDE : at.UNEXPECTED_ERROR);
|
|
2329
2329
|
return t;
|
|
2330
2330
|
}
|
|
2331
|
-
function
|
|
2332
|
-
return
|
|
2331
|
+
function ko(e, t) {
|
|
2332
|
+
return Nt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2333
2333
|
}
|
|
2334
2334
|
function Mo(e) {
|
|
2335
2335
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2336
2336
|
}
|
|
2337
|
-
function
|
|
2337
|
+
function Do(e, t, n = !1) {
|
|
2338
2338
|
let r = null;
|
|
2339
2339
|
const l = t.root;
|
|
2340
|
-
let a =
|
|
2340
|
+
let a = wo(t, n);
|
|
2341
2341
|
for (; a != null; ) {
|
|
2342
|
-
const
|
|
2342
|
+
const m = e;
|
|
2343
2343
|
if (e.mode === "composition")
|
|
2344
|
-
r =
|
|
2344
|
+
r = m.__getInstance(a);
|
|
2345
2345
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
2346
|
-
const u =
|
|
2346
|
+
const u = m.__getInstance(a);
|
|
2347
2347
|
u != null && (r = u.__composer, n && r && !r[rr] && (r = null));
|
|
2348
2348
|
}
|
|
2349
2349
|
if (r != null || l === a)
|
|
@@ -2352,27 +2352,27 @@ function wo(e, t, n = !1) {
|
|
|
2352
2352
|
}
|
|
2353
2353
|
return r;
|
|
2354
2354
|
}
|
|
2355
|
-
function
|
|
2355
|
+
function wo(e, t = !1) {
|
|
2356
2356
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2357
2357
|
}
|
|
2358
2358
|
function Fo(e, t, n) {
|
|
2359
|
-
|
|
2360
|
-
}, t),
|
|
2359
|
+
Vn(() => {
|
|
2360
|
+
}, t), dr(() => {
|
|
2361
2361
|
const r = n;
|
|
2362
2362
|
e.__deleteInstance(t);
|
|
2363
2363
|
const l = r[Zt];
|
|
2364
2364
|
l && (l(), delete r[Zt]);
|
|
2365
2365
|
}, t);
|
|
2366
2366
|
}
|
|
2367
|
-
|
|
2367
|
+
yo();
|
|
2368
2368
|
zs(Ms);
|
|
2369
|
-
Qs(
|
|
2369
|
+
Qs(Js);
|
|
2370
2370
|
qs(Hn);
|
|
2371
2371
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2372
|
-
const e =
|
|
2373
|
-
e.__INTLIFY__ = !0,
|
|
2372
|
+
const e = Xe();
|
|
2373
|
+
e.__INTLIFY__ = !0, Ds(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2374
2374
|
}
|
|
2375
|
-
const pt = /* @__PURE__ */
|
|
2375
|
+
const pt = /* @__PURE__ */ Ae({
|
|
2376
2376
|
__name: "InheritPermissionTooltip",
|
|
2377
2377
|
props: {
|
|
2378
2378
|
item: {
|
|
@@ -2383,19 +2383,19 @@ const pt = /* @__PURE__ */ ke({
|
|
|
2383
2383
|
setup(e) {
|
|
2384
2384
|
const { t } = St();
|
|
2385
2385
|
return (n, r) => {
|
|
2386
|
-
const l =
|
|
2387
|
-
return
|
|
2386
|
+
const l = De("FmIcon"), a = De("FmTooltip");
|
|
2387
|
+
return $(), Ce(a, {
|
|
2388
2388
|
variant: "plain",
|
|
2389
2389
|
placement: "right",
|
|
2390
2390
|
"z-index": 50
|
|
2391
2391
|
}, {
|
|
2392
|
-
content:
|
|
2393
|
-
ae("div", null,
|
|
2394
|
-
(
|
|
2395
|
-
ae("div", null, "- " +
|
|
2392
|
+
content: me(() => [
|
|
2393
|
+
ae("div", null, Oe(H(t)("team.memberForm.permissions.inherited")), 1),
|
|
2394
|
+
($(!0), ie(ke, null, Ee(e.item.setNames, (m) => ($(), ie("div", { key: m }, [
|
|
2395
|
+
ae("div", null, "- " + Oe(m), 1)
|
|
2396
2396
|
]))), 128))
|
|
2397
2397
|
]),
|
|
2398
|
-
default:
|
|
2398
|
+
default: me(() => [
|
|
2399
2399
|
ue(l, {
|
|
2400
2400
|
name: "admin_panel_settings",
|
|
2401
2401
|
size: "sm",
|
|
@@ -2412,67 +2412,67 @@ function Mn(e, t, n) {
|
|
|
2412
2412
|
if (r.length === 0) return;
|
|
2413
2413
|
const l = e.findIndex((u) => u.subject === t && !u.inverted);
|
|
2414
2414
|
if (l < 0) return;
|
|
2415
|
-
const a = new Set(e[l].actions),
|
|
2416
|
-
|
|
2415
|
+
const a = new Set(e[l].actions), m = r.every((u) => a.has(u));
|
|
2416
|
+
m && !a.has("manage") ? (a.add("manage"), e[l] = {
|
|
2417
2417
|
...e[l],
|
|
2418
2418
|
actions: Array.from(a)
|
|
2419
|
-
}) : !
|
|
2419
|
+
}) : !m && a.has("manage") && (a.delete("manage"), a.size === 0 ? e.splice(l, 1) : e[l] = {
|
|
2420
2420
|
...e[l],
|
|
2421
2421
|
actions: Array.from(a)
|
|
2422
2422
|
});
|
|
2423
2423
|
}
|
|
2424
|
-
const
|
|
2424
|
+
const Dn = Object.values(Sr), Po = {
|
|
2425
2425
|
read: "View",
|
|
2426
2426
|
create: "Duplicate",
|
|
2427
2427
|
update: "Edit"
|
|
2428
2428
|
};
|
|
2429
2429
|
function jo(e, t, n, r) {
|
|
2430
|
-
const { t: l } = He(), { getFlagValue: a, getFlag:
|
|
2430
|
+
const { t: l } = He(), { getFlagValue: a, getFlag: m } = Or(), u = z(() => {
|
|
2431
2431
|
var j;
|
|
2432
|
-
const
|
|
2433
|
-
for (const
|
|
2434
|
-
const
|
|
2435
|
-
if (!
|
|
2436
|
-
const
|
|
2437
|
-
if (n.value.includes(
|
|
2432
|
+
const d = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map();
|
|
2433
|
+
for (const G of t.value) {
|
|
2434
|
+
const W = G.category;
|
|
2435
|
+
if (!W) continue;
|
|
2436
|
+
const B = G.subject;
|
|
2437
|
+
if (n.value.includes(G.subject) || G.showByFeatureFlag && ((j = m(G.showByFeatureFlag)) == null ? void 0 : j.enabled) === !1 && a(G.showByFeatureFlag) === "true")
|
|
2438
2438
|
continue;
|
|
2439
|
-
|
|
2440
|
-
const Y = U.get(
|
|
2441
|
-
U.set(
|
|
2442
|
-
label: l(`permissionSet.permissionLabels.${
|
|
2443
|
-
value:
|
|
2444
|
-
optionKey: `${
|
|
2445
|
-
}),
|
|
2439
|
+
d.has(W) || d.set(W, []);
|
|
2440
|
+
const Y = U.get(B) ?? 0;
|
|
2441
|
+
U.set(B, Y + 1), d.get(W).push({
|
|
2442
|
+
label: l(`permissionSet.permissionLabels.${B}`, G.label),
|
|
2443
|
+
value: B,
|
|
2444
|
+
optionKey: `${B}::${Y}`
|
|
2445
|
+
}), N.has(B) || N.set(B, G);
|
|
2446
2446
|
}
|
|
2447
|
-
return [...
|
|
2448
|
-
const
|
|
2449
|
-
return
|
|
2450
|
-
}).map((
|
|
2451
|
-
const
|
|
2452
|
-
for (const K of
|
|
2453
|
-
const ve =
|
|
2447
|
+
return [...d.keys()].sort((G, W) => {
|
|
2448
|
+
const B = Dn.indexOf(G), Y = Dn.indexOf(W);
|
|
2449
|
+
return B === -1 && Y === -1 ? G.localeCompare(W) : B === -1 ? 1 : Y === -1 ? -1 : B - Y;
|
|
2450
|
+
}).map((G) => {
|
|
2451
|
+
const W = d.get(G), B = l(`permissionSet.categoryLabels.${G}`, G), Y = /* @__PURE__ */ new Map();
|
|
2452
|
+
for (const K of W) {
|
|
2453
|
+
const ve = N.get(K.value);
|
|
2454
2454
|
ve && Y.set(K.value, ve.actions);
|
|
2455
2455
|
}
|
|
2456
|
-
const ne =
|
|
2456
|
+
const ne = W.some((K) => {
|
|
2457
2457
|
const ve = Y.get(K.value);
|
|
2458
2458
|
return ve && ve.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
2464
|
for (const K of e.value)
|
|
2465
|
-
|
|
2465
|
+
W.some((ve) => ve.value === K.subject) && !K.inverted && _e.set(K.subject, new Set(K.actions));
|
|
2466
2466
|
const ce = ne ? e.value.filter(
|
|
2467
|
-
(K) =>
|
|
2468
|
-
).map((K) => K.subject) : e.value.filter((K) =>
|
|
2467
|
+
(K) => W.some((ve) => ve.value === K.subject) && !K.inverted && K.actions.includes("manage")
|
|
2468
|
+
).map((K) => K.subject) : e.value.filter((K) => W.some((ve) => ve.value === K.subject) && !K.inverted).map((K) => K.subject), se = W.find((K) => {
|
|
2469
2469
|
var ve;
|
|
2470
|
-
return (ve =
|
|
2471
|
-
}), fe = (se == null ? void 0 : se.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(),
|
|
2470
|
+
return (ve = N.get(K.value)) == null ? void 0 : ve.isCategoryCover;
|
|
2471
|
+
}), fe = (se == null ? void 0 : se.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), we = q.has("manage");
|
|
2472
2472
|
return {
|
|
2473
|
-
category:
|
|
2474
|
-
label:
|
|
2475
|
-
options:
|
|
2473
|
+
category: G,
|
|
2474
|
+
label: B,
|
|
2475
|
+
options: W,
|
|
2476
2476
|
selectedSubjects: ce,
|
|
2477
2477
|
isMultiAction: ne,
|
|
2478
2478
|
actionColumns: Q,
|
|
@@ -2480,21 +2480,21 @@ function jo(e, t, n, r) {
|
|
|
2480
2480
|
selectedActionsMap: _e,
|
|
2481
2481
|
coverSubject: fe,
|
|
2482
2482
|
coverSelectedActions: q,
|
|
2483
|
-
coverCoversAll:
|
|
2483
|
+
coverCoversAll: we
|
|
2484
2484
|
};
|
|
2485
2485
|
});
|
|
2486
2486
|
});
|
|
2487
|
-
function i(
|
|
2488
|
-
const U = u.value.find((Q) => Q.category ===
|
|
2487
|
+
function i(d, N) {
|
|
2488
|
+
const U = u.value.find((Q) => Q.category === d), x = (U == null ? void 0 : U.options) ?? [], j = new Set(x.map((Q) => Q.value)), G = new Set(N), W = /* @__PURE__ */ new Map();
|
|
2489
2489
|
for (const Q of e.value)
|
|
2490
|
-
j.has(Q.subject) && !Q.inverted &&
|
|
2491
|
-
const
|
|
2490
|
+
j.has(Q.subject) && !Q.inverted && W.set(Q.subject, Q.conditions);
|
|
2491
|
+
const B = U != null && U.coverSubject ? W.get(U.coverSubject) : void 0, Y = /* @__PURE__ */ new Set(), ne = t.value.flatMap(
|
|
2492
2492
|
({ category: Q, showByFeatureFlag: _e, isCategoryCover: ce, ...se }) => {
|
|
2493
2493
|
const fe = se.subject;
|
|
2494
|
-
if (!
|
|
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
|
{ ...se, ...q !== void 0 && { conditions: q } }
|
|
2499
2499
|
];
|
|
2500
2500
|
}
|
|
@@ -2504,206 +2504,206 @@ function jo(e, t, n, r) {
|
|
|
2504
2504
|
...ne
|
|
2505
2505
|
]);
|
|
2506
2506
|
}
|
|
2507
|
-
function g(
|
|
2508
|
-
return F(
|
|
2507
|
+
function g(d, N) {
|
|
2508
|
+
return F(d, N) || c(d, N);
|
|
2509
2509
|
}
|
|
2510
|
-
function
|
|
2511
|
-
return
|
|
2510
|
+
function y(d) {
|
|
2511
|
+
return d.options.length > 0 && d.options.every((N) => g(d, N.value));
|
|
2512
2512
|
}
|
|
2513
|
-
function
|
|
2514
|
-
return
|
|
2515
|
-
(
|
|
2513
|
+
function T(d) {
|
|
2514
|
+
return d.options.length === 0 || y(d) ? !1 : d.options.some(
|
|
2515
|
+
(N) => g(d, N.value) || D(d, N.value).length > 0
|
|
2516
2516
|
);
|
|
2517
2517
|
}
|
|
2518
|
-
function
|
|
2519
|
-
const
|
|
2520
|
-
if (
|
|
2518
|
+
function C(d) {
|
|
2519
|
+
const N = new Set(d.options.map((x) => x.value)), U = e.value.filter((x) => !N.has(x.subject));
|
|
2520
|
+
if (y(d))
|
|
2521
2521
|
r("update:model-value", U);
|
|
2522
2522
|
else {
|
|
2523
|
-
const
|
|
2524
|
-
for (const
|
|
2525
|
-
|
|
2526
|
-
const j =
|
|
2527
|
-
({ category:
|
|
2523
|
+
const x = /* @__PURE__ */ new Map();
|
|
2524
|
+
for (const B of e.value)
|
|
2525
|
+
N.has(B.subject) && !B.inverted && x.set(B.subject, B.conditions);
|
|
2526
|
+
const j = d.coverSubject ? x.get(d.coverSubject) : void 0, G = /* @__PURE__ */ new Set(), W = t.value.flatMap(
|
|
2527
|
+
({ category: B, showByFeatureFlag: Y, isCategoryCover: ne, ...Q }) => {
|
|
2528
2528
|
const _e = Q.subject;
|
|
2529
|
-
if (!
|
|
2530
|
-
|
|
2529
|
+
if (!N.has(_e) || G.has(_e)) return [];
|
|
2530
|
+
G.add(_e);
|
|
2531
2531
|
let ce;
|
|
2532
|
-
return
|
|
2532
|
+
return x.has(_e) ? ce = x.get(_e) : d.coverSubject && _e !== d.coverSubject && (ce = j), [
|
|
2533
2533
|
{ ...Q, ...ce !== void 0 && { conditions: ce } }
|
|
2534
2534
|
];
|
|
2535
2535
|
}
|
|
2536
2536
|
);
|
|
2537
|
-
r("update:model-value", [...U, ...
|
|
2537
|
+
r("update:model-value", [...U, ...W]);
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
|
-
function F(
|
|
2541
|
-
const U =
|
|
2540
|
+
function F(d, N) {
|
|
2541
|
+
const U = d.selectedActionsMap.get(N);
|
|
2542
2542
|
return U ? U.has("manage") : !1;
|
|
2543
2543
|
}
|
|
2544
|
-
function
|
|
2545
|
-
const U =
|
|
2544
|
+
function D(d, N) {
|
|
2545
|
+
const U = d.permissionActionsMap.get(N);
|
|
2546
2546
|
return U ? U.filter((j) => j !== "manage").filter(
|
|
2547
|
-
(j) => S(
|
|
2547
|
+
(j) => S(d, N, j) || b(d, N, j)
|
|
2548
2548
|
) : [];
|
|
2549
2549
|
}
|
|
2550
|
-
function
|
|
2551
|
-
return c(
|
|
2550
|
+
function A(d, N) {
|
|
2551
|
+
return c(d, N) ? !1 : !F(d, N) && D(d, N).length > 0;
|
|
2552
2552
|
}
|
|
2553
|
-
function
|
|
2554
|
-
if (!
|
|
2553
|
+
function w(d, N) {
|
|
2554
|
+
if (!d.coverSubject || N === d.coverSubject) return;
|
|
2555
2555
|
const U = e.value.find(
|
|
2556
|
-
(
|
|
2556
|
+
(x) => !x.inverted && x.subject === d.coverSubject
|
|
2557
2557
|
);
|
|
2558
2558
|
return (U == null ? void 0 : U.conditions) || void 0;
|
|
2559
2559
|
}
|
|
2560
|
-
function f(
|
|
2560
|
+
function f(d, N, U) {
|
|
2561
2561
|
if (U) {
|
|
2562
|
-
const
|
|
2563
|
-
if (!
|
|
2562
|
+
const x = t.value.find((Q) => Q.subject === N);
|
|
2563
|
+
if (!x) return;
|
|
2564
2564
|
const {
|
|
2565
2565
|
category: j,
|
|
2566
|
-
showByFeatureFlag:
|
|
2567
|
-
isCategoryCover:
|
|
2568
|
-
...
|
|
2569
|
-
} =
|
|
2566
|
+
showByFeatureFlag: G,
|
|
2567
|
+
isCategoryCover: W,
|
|
2568
|
+
...B
|
|
2569
|
+
} = x, Y = w(d, N), ne = e.value.filter((Q) => Q.subject !== N);
|
|
2570
2570
|
ne.push({
|
|
2571
|
-
...
|
|
2571
|
+
...B,
|
|
2572
2572
|
...Y !== void 0 && { conditions: Y }
|
|
2573
2573
|
}), r("update:model-value", ne);
|
|
2574
2574
|
} else
|
|
2575
2575
|
r(
|
|
2576
2576
|
"update:model-value",
|
|
2577
|
-
e.value.filter((
|
|
2577
|
+
e.value.filter((x) => x.subject !== N)
|
|
2578
2578
|
);
|
|
2579
2579
|
}
|
|
2580
|
-
function h(
|
|
2581
|
-
const U =
|
|
2582
|
-
return U ? U.some((
|
|
2580
|
+
function h(d, N) {
|
|
2581
|
+
const U = d.permissionActionsMap.get(N);
|
|
2582
|
+
return U ? U.some((x) => x !== "manage") : !1;
|
|
2583
2583
|
}
|
|
2584
|
-
function S(
|
|
2585
|
-
const
|
|
2586
|
-
return
|
|
2584
|
+
function S(d, N, U) {
|
|
2585
|
+
const x = d.selectedActionsMap.get(N);
|
|
2586
|
+
return x ? x.has(U) : !1;
|
|
2587
2587
|
}
|
|
2588
|
-
function c(
|
|
2589
|
-
return !
|
|
2588
|
+
function c(d, N) {
|
|
2589
|
+
return !d.coverSubject || N === d.coverSubject ? !1 : d.coverCoversAll;
|
|
2590
2590
|
}
|
|
2591
|
-
function b(
|
|
2592
|
-
return !
|
|
2591
|
+
function b(d, N, U) {
|
|
2592
|
+
return !d.coverSubject || N === d.coverSubject ? !1 : d.coverCoversAll ? !0 : d.coverSelectedActions.has(U);
|
|
2593
2593
|
}
|
|
2594
|
-
function
|
|
2595
|
-
const
|
|
2596
|
-
return
|
|
2594
|
+
function I(d, N, U) {
|
|
2595
|
+
const x = d.permissionActionsMap.get(N);
|
|
2596
|
+
return x ? x.includes(U) : !1;
|
|
2597
2597
|
}
|
|
2598
|
-
function v(
|
|
2599
|
-
const
|
|
2598
|
+
function v(d, N, U) {
|
|
2599
|
+
const x = [...e.value], j = x.findIndex((W) => W.subject === d && !W.inverted);
|
|
2600
2600
|
if (U)
|
|
2601
2601
|
if (j >= 0) {
|
|
2602
|
-
const
|
|
2603
|
-
|
|
2602
|
+
const W = { ...x[j] }, B = new Set(W.actions);
|
|
2603
|
+
B.add(N), W.actions = Array.from(B), x[j] = W;
|
|
2604
2604
|
} else {
|
|
2605
|
-
const
|
|
2606
|
-
if (!
|
|
2605
|
+
const W = t.value.find((se) => se.subject === d);
|
|
2606
|
+
if (!W) return;
|
|
2607
2607
|
const {
|
|
2608
|
-
category:
|
|
2608
|
+
category: B,
|
|
2609
2609
|
showByFeatureFlag: Y,
|
|
2610
2610
|
isCategoryCover: ne,
|
|
2611
2611
|
...Q
|
|
2612
|
-
} =
|
|
2613
|
-
(se) => se.options.some((fe) => fe.value ===
|
|
2614
|
-
), ce = _e ?
|
|
2615
|
-
|
|
2612
|
+
} = W, _e = u.value.find(
|
|
2613
|
+
(se) => se.options.some((fe) => fe.value === d)
|
|
2614
|
+
), ce = _e ? w(_e, d) : void 0;
|
|
2615
|
+
x.push({
|
|
2616
2616
|
...Q,
|
|
2617
|
-
actions: [
|
|
2617
|
+
actions: [N],
|
|
2618
2618
|
...ce !== void 0 && { conditions: ce }
|
|
2619
2619
|
});
|
|
2620
2620
|
}
|
|
2621
2621
|
else if (j >= 0) {
|
|
2622
|
-
const
|
|
2623
|
-
|
|
2622
|
+
const W = { ...x[j] }, B = W.actions.filter((Y) => Y !== N);
|
|
2623
|
+
B.length === 0 ? x.splice(j, 1) : (W.actions = B, x[j] = W);
|
|
2624
2624
|
}
|
|
2625
|
-
const
|
|
2626
|
-
|
|
2625
|
+
const G = t.value.find((W) => W.subject === d);
|
|
2626
|
+
G && Mn(x, d, G.actions), r("update:model-value", x);
|
|
2627
2627
|
}
|
|
2628
|
-
function
|
|
2629
|
-
const U =
|
|
2630
|
-
(
|
|
2628
|
+
function k(d, N) {
|
|
2629
|
+
const U = d.options.filter(
|
|
2630
|
+
(x) => I(d, x.value, N)
|
|
2631
2631
|
);
|
|
2632
2632
|
return U.length === 0 ? !1 : U.every(
|
|
2633
|
-
(
|
|
2633
|
+
(x) => S(d, x.value, N) || b(d, x.value, N)
|
|
2634
2634
|
);
|
|
2635
2635
|
}
|
|
2636
|
-
function L(
|
|
2637
|
-
const U =
|
|
2638
|
-
(j) =>
|
|
2636
|
+
function L(d, N) {
|
|
2637
|
+
const U = d.options.filter(
|
|
2638
|
+
(j) => I(d, j.value, N)
|
|
2639
2639
|
);
|
|
2640
2640
|
if (U.length === 0) return !1;
|
|
2641
|
-
const
|
|
2642
|
-
(j) => S(
|
|
2641
|
+
const x = U.filter(
|
|
2642
|
+
(j) => S(d, j.value, N) || b(d, j.value, N)
|
|
2643
2643
|
).length;
|
|
2644
|
-
return
|
|
2645
|
-
}
|
|
2646
|
-
function
|
|
2647
|
-
const
|
|
2648
|
-
for (const j of
|
|
2649
|
-
if (!
|
|
2650
|
-
const
|
|
2651
|
-
(Y) => Y.subject ===
|
|
2644
|
+
return x > 0 && x < U.length;
|
|
2645
|
+
}
|
|
2646
|
+
function X(d, N, U) {
|
|
2647
|
+
const x = [...e.value];
|
|
2648
|
+
for (const j of d.options) {
|
|
2649
|
+
if (!I(d, j.value, N)) continue;
|
|
2650
|
+
const G = j.value, W = x.findIndex(
|
|
2651
|
+
(Y) => Y.subject === G && !Y.inverted
|
|
2652
2652
|
);
|
|
2653
2653
|
if (U)
|
|
2654
|
-
if (
|
|
2655
|
-
const Y = { ...
|
|
2656
|
-
ne.add(
|
|
2654
|
+
if (W >= 0) {
|
|
2655
|
+
const Y = { ...x[W] }, ne = new Set(Y.actions);
|
|
2656
|
+
ne.add(N), Y.actions = Array.from(ne), x[W] = Y;
|
|
2657
2657
|
} else {
|
|
2658
|
-
const Y = t.value.find((fe) => fe.subject ===
|
|
2658
|
+
const Y = t.value.find((fe) => fe.subject === G);
|
|
2659
2659
|
if (!Y) continue;
|
|
2660
2660
|
const {
|
|
2661
2661
|
category: ne,
|
|
2662
2662
|
showByFeatureFlag: Q,
|
|
2663
2663
|
isCategoryCover: _e,
|
|
2664
2664
|
...ce
|
|
2665
|
-
} = Y, se =
|
|
2666
|
-
|
|
2665
|
+
} = Y, se = w(d, G);
|
|
2666
|
+
x.push({
|
|
2667
2667
|
...ce,
|
|
2668
|
-
actions: [
|
|
2668
|
+
actions: [N],
|
|
2669
2669
|
...se !== void 0 && { conditions: se }
|
|
2670
2670
|
});
|
|
2671
2671
|
}
|
|
2672
|
-
else if (
|
|
2673
|
-
const Y = { ...
|
|
2674
|
-
ne.length === 0 ?
|
|
2672
|
+
else if (W >= 0) {
|
|
2673
|
+
const Y = { ...x[W] }, ne = Y.actions.filter((Q) => Q !== N);
|
|
2674
|
+
ne.length === 0 ? x.splice(W, 1) : (Y.actions = ne, x[W] = Y);
|
|
2675
2675
|
}
|
|
2676
|
-
const
|
|
2677
|
-
|
|
2676
|
+
const B = t.value.find((Y) => Y.subject === G);
|
|
2677
|
+
B && Mn(x, G, B.actions);
|
|
2678
2678
|
}
|
|
2679
|
-
r("update:model-value",
|
|
2679
|
+
r("update:model-value", x);
|
|
2680
2680
|
}
|
|
2681
|
-
function
|
|
2682
|
-
const
|
|
2683
|
-
return l(
|
|
2681
|
+
function V(d) {
|
|
2682
|
+
const N = `permissionSet.actionLabels.${d}`, U = Po[d] ?? d.charAt(0).toUpperCase() + d.slice(1);
|
|
2683
|
+
return l(N, U);
|
|
2684
2684
|
}
|
|
2685
2685
|
return {
|
|
2686
2686
|
categoryGroups: u,
|
|
2687
2687
|
toggleCategory: i,
|
|
2688
|
-
isAllManageChecked:
|
|
2689
|
-
isAllManageIndeterminate:
|
|
2690
|
-
toggleAllManage:
|
|
2688
|
+
isAllManageChecked: y,
|
|
2689
|
+
isAllManageIndeterminate: T,
|
|
2690
|
+
toggleAllManage: C,
|
|
2691
2691
|
isManageChecked: F,
|
|
2692
|
-
isManageIndeterminate:
|
|
2692
|
+
isManageIndeterminate: A,
|
|
2693
2693
|
toggleManage: f,
|
|
2694
2694
|
hasNonManageActions: h,
|
|
2695
2695
|
isActionChecked: S,
|
|
2696
2696
|
isRowFullyCoveredByCover: c,
|
|
2697
2697
|
isActionCoveredByCover: b,
|
|
2698
|
-
permissionDefinesAction:
|
|
2698
|
+
permissionDefinesAction: I,
|
|
2699
2699
|
toggleAction: v,
|
|
2700
|
-
isAllActionChecked:
|
|
2700
|
+
isAllActionChecked: k,
|
|
2701
2701
|
isAllActionIndeterminate: L,
|
|
2702
|
-
toggleAllAction:
|
|
2703
|
-
actionLabel:
|
|
2702
|
+
toggleAllAction: X,
|
|
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__ */ Ae({
|
|
2707
2707
|
__name: "BasePermission",
|
|
2708
2708
|
props: {
|
|
2709
2709
|
modelValue: {
|
|
@@ -2725,18 +2725,18 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2725
2725
|
},
|
|
2726
2726
|
emits: ["update:model-value"],
|
|
2727
2727
|
setup(e, { emit: t }) {
|
|
2728
|
-
const n = e, r = t, { t: l } = He(), a = z(() => [...
|
|
2729
|
-
categoryGroups:
|
|
2728
|
+
const n = e, r = t, { t: l } = He(), a = z(() => [...Gn, ...n.additionalPermissions]), {
|
|
2729
|
+
categoryGroups: m,
|
|
2730
2730
|
isAllManageChecked: u,
|
|
2731
2731
|
isAllManageIndeterminate: i,
|
|
2732
2732
|
toggleAllManage: g,
|
|
2733
|
-
isManageChecked:
|
|
2734
|
-
isManageIndeterminate:
|
|
2735
|
-
toggleManage:
|
|
2733
|
+
isManageChecked: y,
|
|
2734
|
+
isManageIndeterminate: T,
|
|
2735
|
+
toggleManage: C,
|
|
2736
2736
|
isActionChecked: F,
|
|
2737
|
-
isRowFullyCoveredByCover:
|
|
2738
|
-
isActionCoveredByCover:
|
|
2739
|
-
permissionDefinesAction:
|
|
2737
|
+
isRowFullyCoveredByCover: D,
|
|
2738
|
+
isActionCoveredByCover: A,
|
|
2739
|
+
permissionDefinesAction: w,
|
|
2740
2740
|
toggleAction: f,
|
|
2741
2741
|
isAllActionChecked: h,
|
|
2742
2742
|
isAllActionIndeterminate: S,
|
|
@@ -2746,124 +2746,124 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2746
2746
|
en(n, "modelValue"),
|
|
2747
2747
|
a,
|
|
2748
2748
|
en(n, "excludedSubjects"),
|
|
2749
|
-
(
|
|
2749
|
+
(k, L) => r("update:model-value", L)
|
|
2750
2750
|
);
|
|
2751
|
-
function
|
|
2752
|
-
const L =
|
|
2751
|
+
function I(k) {
|
|
2752
|
+
const L = k.selectedSubjects.length;
|
|
2753
2753
|
return L === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: L });
|
|
2754
2754
|
}
|
|
2755
|
-
function v(
|
|
2756
|
-
return
|
|
2757
|
-
(
|
|
2755
|
+
function v(k, L) {
|
|
2756
|
+
return y(k, L) || D(k, L) ? !0 : k.actionColumns.some(
|
|
2757
|
+
(X) => w(k, L, X) && (F(k, L, X) || A(k, L, X))
|
|
2758
2758
|
);
|
|
2759
2759
|
}
|
|
2760
|
-
return (
|
|
2761
|
-
const
|
|
2762
|
-
return
|
|
2763
|
-
(
|
|
2764
|
-
key:
|
|
2765
|
-
subtitle:
|
|
2760
|
+
return (k, L) => {
|
|
2761
|
+
const X = De("FmCheckbox");
|
|
2762
|
+
return $(), ie("div", Uo, [
|
|
2763
|
+
($(!0), ie(ke, null, Ee(H(m), (V) => ($(), Ce(Xt, {
|
|
2764
|
+
key: V.category,
|
|
2765
|
+
subtitle: I(V)
|
|
2766
2766
|
}, {
|
|
2767
|
-
title:
|
|
2768
|
-
ae("p",
|
|
2767
|
+
title: me(() => [
|
|
2768
|
+
ae("p", xo, Oe(V.label), 1)
|
|
2769
2769
|
]),
|
|
2770
|
-
default:
|
|
2771
|
-
ae("div",
|
|
2770
|
+
default: me(() => [
|
|
2771
|
+
ae("div", Vo, [
|
|
2772
2772
|
ae("div", {
|
|
2773
2773
|
class: "grid items-center px-12 py-8",
|
|
2774
2774
|
style: nt({
|
|
2775
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2775
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${V.actionColumns.length + 1}, 80px)`
|
|
2776
2776
|
})
|
|
2777
2777
|
}, [
|
|
2778
2778
|
L[0] || (L[0] = ae("div", null, null, -1)),
|
|
2779
|
-
ae("div",
|
|
2780
|
-
(
|
|
2781
|
-
key: `header-${
|
|
2779
|
+
ae("div", Wo, Oe(H(l)("team.memberForm.permissions.columnManage")), 1),
|
|
2780
|
+
($(!0), ie(ke, null, Ee(V.actionColumns, (d) => ($(), ie("div", {
|
|
2781
|
+
key: `header-${d}`,
|
|
2782
2782
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2783
|
-
},
|
|
2783
|
+
}, Oe(H(b)(d)), 1))), 128))
|
|
2784
2784
|
], 4),
|
|
2785
2785
|
ae("div", {
|
|
2786
2786
|
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
2787
2787
|
style: nt({
|
|
2788
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2788
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${V.actionColumns.length + 1}, 80px)`
|
|
2789
2789
|
})
|
|
2790
2790
|
}, [
|
|
2791
2791
|
ae("div", {
|
|
2792
2792
|
class: "cursor-pointer font-semibold",
|
|
2793
|
-
onClick: (
|
|
2794
|
-
},
|
|
2793
|
+
onClick: (d) => !e.disable && H(g)(V)
|
|
2794
|
+
}, Oe(H(l)("team.labels.all")), 9, Go),
|
|
2795
2795
|
ae("div", Zo, [
|
|
2796
|
-
ue(
|
|
2797
|
-
"model-value": H(u)(
|
|
2798
|
-
indeterminate: H(i)(
|
|
2796
|
+
ue(X, {
|
|
2797
|
+
"model-value": H(u)(V),
|
|
2798
|
+
indeterminate: H(i)(V),
|
|
2799
2799
|
value: !0,
|
|
2800
2800
|
disabled: e.disable,
|
|
2801
2801
|
size: "sm",
|
|
2802
2802
|
dense: "",
|
|
2803
|
-
"onUpdate:modelValue": (
|
|
2803
|
+
"onUpdate:modelValue": (d) => H(g)(V)
|
|
2804
2804
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2805
2805
|
]),
|
|
2806
|
-
(
|
|
2807
|
-
key: `all-${
|
|
2806
|
+
($(!0), ie(ke, null, Ee(V.actionColumns, (d) => ($(), ie("div", {
|
|
2807
|
+
key: `all-${d}`,
|
|
2808
2808
|
class: "flex justify-center"
|
|
2809
2809
|
}, [
|
|
2810
|
-
ue(
|
|
2811
|
-
"model-value": H(h)(
|
|
2812
|
-
indeterminate: H(S)(
|
|
2813
|
-
value:
|
|
2810
|
+
ue(X, {
|
|
2811
|
+
"model-value": H(h)(V, d),
|
|
2812
|
+
indeterminate: H(S)(V, d),
|
|
2813
|
+
value: d,
|
|
2814
2814
|
disabled: e.disable,
|
|
2815
2815
|
size: "sm",
|
|
2816
2816
|
dense: "",
|
|
2817
|
-
"onUpdate:modelValue": (
|
|
2817
|
+
"onUpdate:modelValue": (N) => H(c)(V, d, N)
|
|
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
|
-
(
|
|
2823
|
-
key:
|
|
2822
|
+
($(!0), ie(ke, null, Ee(V.options, (d) => ($(), ie("div", {
|
|
2823
|
+
key: d.optionKey,
|
|
2824
2824
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2825
2825
|
style: nt({
|
|
2826
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2826
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${V.actionColumns.length + 1}, 80px)`
|
|
2827
2827
|
})
|
|
2828
2828
|
}, [
|
|
2829
|
-
ae("div",
|
|
2829
|
+
ae("div", Bo, [
|
|
2830
2830
|
ae("span", {
|
|
2831
2831
|
class: "block truncate cursor-pointer",
|
|
2832
|
-
title:
|
|
2833
|
-
onClick: (
|
|
2834
|
-
},
|
|
2835
|
-
Se(
|
|
2836
|
-
option:
|
|
2837
|
-
isEffectiveSelected: v(
|
|
2838
|
-
isCoveredByCover: H(
|
|
2832
|
+
title: d.label,
|
|
2833
|
+
onClick: (N) => !e.disable && !H(D)(V, d.value) && H(C)(V, d.value, !H(y)(V, d.value))
|
|
2834
|
+
}, Oe(d.label), 9, Yo),
|
|
2835
|
+
Se(k.$slots, `checkbox-${d.value}-append`, {
|
|
2836
|
+
option: d,
|
|
2837
|
+
isEffectiveSelected: v(V, d.value),
|
|
2838
|
+
isCoveredByCover: H(D)(V, d.value) || V.actionColumns.some((N) => H(A)(V, d.value, N))
|
|
2839
2839
|
}),
|
|
2840
|
-
Se(
|
|
2841
|
-
option:
|
|
2842
|
-
isEffectiveSelected: v(
|
|
2843
|
-
isCoveredByCover: H(
|
|
2840
|
+
Se(k.$slots, `checkbox-${d.value}-icon`, {
|
|
2841
|
+
option: d,
|
|
2842
|
+
isEffectiveSelected: v(V, d.value),
|
|
2843
|
+
isCoveredByCover: H(D)(V, d.value) || V.actionColumns.some((N) => H(A)(V, d.value, N))
|
|
2844
2844
|
})
|
|
2845
2845
|
]),
|
|
2846
|
-
ae("div",
|
|
2847
|
-
ue(
|
|
2848
|
-
"model-value": H(
|
|
2849
|
-
value:
|
|
2850
|
-
disabled: e.disable || H(
|
|
2851
|
-
indeterminate: H(
|
|
2846
|
+
ae("div", Xo, [
|
|
2847
|
+
ue(X, {
|
|
2848
|
+
"model-value": H(y)(V, d.value) || H(D)(V, d.value),
|
|
2849
|
+
value: d.value,
|
|
2850
|
+
disabled: e.disable || H(D)(V, d.value),
|
|
2851
|
+
indeterminate: H(T)(V, d.value),
|
|
2852
2852
|
size: "sm",
|
|
2853
|
-
"onUpdate:modelValue": (
|
|
2853
|
+
"onUpdate:modelValue": (N) => H(C)(V, d.value, N)
|
|
2854
2854
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2855
2855
|
]),
|
|
2856
|
-
(
|
|
2857
|
-
key: `${
|
|
2856
|
+
($(!0), ie(ke, null, Ee(V.actionColumns, (N) => ($(), ie("div", {
|
|
2857
|
+
key: `${d.optionKey}-${N}`,
|
|
2858
2858
|
class: "flex justify-center"
|
|
2859
2859
|
}, [
|
|
2860
|
-
H(
|
|
2860
|
+
H(w)(V, d.value, N) ? ($(), Ce(X, {
|
|
2861
2861
|
key: 0,
|
|
2862
|
-
"model-value": H(F)(
|
|
2863
|
-
value:
|
|
2864
|
-
disabled: e.disable || H(
|
|
2862
|
+
"model-value": H(F)(V, d.value, N) || H(A)(V, d.value, N),
|
|
2863
|
+
value: N,
|
|
2864
|
+
disabled: e.disable || H(A)(V, d.value, N),
|
|
2865
2865
|
size: "sm",
|
|
2866
|
-
"onUpdate:modelValue": (U) => H(f)(
|
|
2866
|
+
"onUpdate:modelValue": (U) => H(f)(d.value, N, U)
|
|
2867
2867
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Me("", !0)
|
|
2868
2868
|
]))), 128))
|
|
2869
2869
|
], 4))), 128))
|
|
@@ -2874,13 +2874,13 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { 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
|
-
}, zo = { class: "form-input" }, Qo = /* @__PURE__ */
|
|
2883
|
+
}, zo = { class: "form-input" }, Qo = /* @__PURE__ */ Ae({
|
|
2884
2884
|
__name: "AppForm",
|
|
2885
2885
|
props: {
|
|
2886
2886
|
title: {
|
|
@@ -2898,12 +2898,12 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2898
2898
|
},
|
|
2899
2899
|
setup(e) {
|
|
2900
2900
|
const t = e;
|
|
2901
|
-
return (n, r) => (
|
|
2901
|
+
return (n, r) => ($(), 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 ? (
|
|
2906
|
-
_r(
|
|
2905
|
+
t.required ? ($(), ie("span", Ko, "*")) : Me("", !0),
|
|
2906
|
+
_r(Oe(t.title), 1)
|
|
2907
2907
|
]),
|
|
2908
2908
|
Se(n.$slots, "title-right")
|
|
2909
2909
|
])) : Me("", !0)
|
|
@@ -2916,7 +2916,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2916
2916
|
}), qo = { class: "col flex items-center" }, ea = {
|
|
2917
2917
|
key: 1,
|
|
2918
2918
|
class: "q-pa-sm form-error-message text-error"
|
|
2919
|
-
}, ir = /* @__PURE__ */
|
|
2919
|
+
}, ir = /* @__PURE__ */ Ae({
|
|
2920
2920
|
__name: "CheckboxInput",
|
|
2921
2921
|
props: {
|
|
2922
2922
|
options: {
|
|
@@ -2974,47 +2974,47 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2974
2974
|
},
|
|
2975
2975
|
emits: ["update:model-value"],
|
|
2976
2976
|
setup(e, { emit: t }) {
|
|
2977
|
-
const n = e, r = t, { t: l } = He(), a = rt(!1),
|
|
2978
|
-
() => n.modelValue.filter((
|
|
2979
|
-
),
|
|
2977
|
+
const n = e, r = t, { t: l } = He(), a = rt(!1), m = vr(), u = z(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), i = `checkbox-${Ar(6)}`, g = z(() => u.value !== !0), y = z(
|
|
2978
|
+
() => n.modelValue.filter((A) => n.options.some((w) => w.value === A))
|
|
2979
|
+
), T = z(
|
|
2980
2980
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2981
|
-
),
|
|
2981
|
+
), C = z(() => n.options.length > 0 && n.options.length === y.value.length);
|
|
2982
2982
|
function F() {
|
|
2983
|
-
const
|
|
2984
|
-
if (
|
|
2985
|
-
r("update:model-value",
|
|
2983
|
+
const A = n.modelValue.filter((w) => !y.value.includes(w));
|
|
2984
|
+
if (C.value === !0)
|
|
2985
|
+
r("update:model-value", A);
|
|
2986
2986
|
else {
|
|
2987
|
-
const
|
|
2988
|
-
r("update:model-value", [...
|
|
2987
|
+
const w = n.includeDisabledOptionsWhenSelectAll ? n.options.map((f) => f.value) : n.options.filter((f) => !f.disabled).map((f) => f.value);
|
|
2988
|
+
r("update:model-value", [...A, ...w]);
|
|
2989
2989
|
}
|
|
2990
2990
|
}
|
|
2991
|
-
function
|
|
2992
|
-
let f =
|
|
2993
|
-
|
|
2991
|
+
function D(A, w) {
|
|
2992
|
+
let f = It(n.modelValue);
|
|
2993
|
+
w ? f.every((h) => h !== A) && f.push(A) : f = f.filter((h) => h !== A), r("update:model-value", f);
|
|
2994
2994
|
}
|
|
2995
|
-
return (
|
|
2996
|
-
const f =
|
|
2997
|
-
return
|
|
2995
|
+
return (A, w) => {
|
|
2996
|
+
const f = De("FmCheckbox");
|
|
2997
|
+
return $(), Ce(Qo, {
|
|
2998
2998
|
id: i,
|
|
2999
2999
|
title: e.title,
|
|
3000
3000
|
required: !1
|
|
3001
3001
|
}, {
|
|
3002
|
-
top:
|
|
3003
|
-
Se(
|
|
3002
|
+
top: me(() => [
|
|
3003
|
+
Se(A.$slots, "top")
|
|
3004
3004
|
]),
|
|
3005
|
-
default:
|
|
3006
|
-
n.showAllToggle ? (
|
|
3005
|
+
default: me(() => [
|
|
3006
|
+
n.showAllToggle ? ($(), Ce(f, {
|
|
3007
3007
|
key: 0,
|
|
3008
|
-
"model-value":
|
|
3008
|
+
"model-value": C.value,
|
|
3009
3009
|
disabled: e.disable,
|
|
3010
|
-
label:
|
|
3010
|
+
label: T.value,
|
|
3011
3011
|
style: nt(`margin-bottom: ${n.gutter}px`),
|
|
3012
3012
|
size: "sm",
|
|
3013
3013
|
dense: "",
|
|
3014
|
-
value:
|
|
3014
|
+
value: T.value,
|
|
3015
3015
|
"onUpdate:modelValue": F
|
|
3016
3016
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Me("", !0),
|
|
3017
|
-
(
|
|
3017
|
+
($(!0), ie(ke, null, Ee(e.options, (h, S) => ($(), ie("div", {
|
|
3018
3018
|
key: h.value,
|
|
3019
3019
|
style: nt(`margin-bottom: ${S < e.options.length - 1 ? n.gutter : 0}px`),
|
|
3020
3020
|
class: qe(S < e.options.length - 1 ? "q-mb-sm" : "")
|
|
@@ -3029,43 +3029,43 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3029
3029
|
size: "sm",
|
|
3030
3030
|
label: h.label,
|
|
3031
3031
|
value: h.label,
|
|
3032
|
-
"onUpdate:modelValue": (c) =>
|
|
3032
|
+
"onUpdate:modelValue": (c) => D(h.value, c)
|
|
3033
3033
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
3034
|
-
Se(
|
|
3034
|
+
Se(A.$slots, `checkbox-${h.key || h.value}-append`, {
|
|
3035
3035
|
option: h,
|
|
3036
3036
|
selected: e.modelValue.includes(h.value)
|
|
3037
3037
|
})
|
|
3038
3038
|
]),
|
|
3039
|
-
H(
|
|
3039
|
+
H(m)[`checkbox-${h.key || h.value}-end`] && (e.modelValue.includes(h.value) || e.falsyShowSlot) ? ($(), ie("div", {
|
|
3040
3040
|
key: 0,
|
|
3041
3041
|
class: qe([{ "q-checkbox disabled": e.disable || h.disabled }, "col"])
|
|
3042
3042
|
}, [
|
|
3043
|
-
Se(
|
|
3043
|
+
Se(A.$slots, `checkbox-${h.key || h.value}-end`, {
|
|
3044
3044
|
option: h,
|
|
3045
3045
|
value: e.modelValue.includes(h.value),
|
|
3046
3046
|
disable: e.disable || h.disabled
|
|
3047
3047
|
})
|
|
3048
3048
|
], 2)) : Me("", !0)
|
|
3049
3049
|
], 2),
|
|
3050
|
-
H(
|
|
3050
|
+
H(m)[`checkbox-${h.key || h.value}-bottom`] && (e.modelValue.includes(h.value) || e.falsyShowSlot) ? ($(), ie("div", {
|
|
3051
3051
|
key: 0,
|
|
3052
3052
|
class: qe(["q-mt-sm", { "q-checkbox disabled": e.disable || h.disabled }]),
|
|
3053
3053
|
style: nt(`margin-left: ${e.bottomSlotIndent}`)
|
|
3054
3054
|
}, [
|
|
3055
|
-
Se(
|
|
3055
|
+
Se(A.$slots, `checkbox-${h.key || h.value}-bottom`, {
|
|
3056
3056
|
option: h,
|
|
3057
3057
|
disable: e.disable || h.disabled,
|
|
3058
3058
|
value: e.modelValue.includes(h.value)
|
|
3059
3059
|
})
|
|
3060
3060
|
], 6)) : Me("", !0)
|
|
3061
3061
|
], 6))), 128)),
|
|
3062
|
-
a.value && g.value ? (
|
|
3062
|
+
a.value && g.value ? ($(), 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" }, ht = "includedFuture",
|
|
3068
|
+
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture", wn = /* @__PURE__ */ Ae({
|
|
3069
3069
|
__name: "ConditionPermission",
|
|
3070
3070
|
props: {
|
|
3071
3071
|
modelValue: {
|
|
@@ -3095,33 +3095,33 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3095
3095
|
disabled: !!n.modelValue && n.options.length > n.modelValue.length
|
|
3096
3096
|
},
|
|
3097
3097
|
...n.options.filter(
|
|
3098
|
-
(
|
|
3098
|
+
(y) => y.label.toLocaleLowerCase().includes(g.value.toLocaleLowerCase())
|
|
3099
3099
|
)
|
|
3100
|
-
]),
|
|
3101
|
-
const
|
|
3102
|
-
return
|
|
3100
|
+
]), m = z(() => n.modelValue ? n.modelValue : [ht, ...n.options.map((y) => y.value)]), u = z(() => {
|
|
3101
|
+
const y = m.value.filter((T) => T !== ht).length;
|
|
3102
|
+
return y === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: y });
|
|
3103
3103
|
});
|
|
3104
|
-
function i(
|
|
3105
|
-
const
|
|
3106
|
-
r("update:model-value",
|
|
3104
|
+
function i(y) {
|
|
3105
|
+
const T = y.length === a.value.length;
|
|
3106
|
+
r("update:model-value", T ? null : y.filter((C) => C !== ht));
|
|
3107
3107
|
}
|
|
3108
3108
|
const g = rt("");
|
|
3109
|
-
return (
|
|
3110
|
-
const
|
|
3111
|
-
return
|
|
3112
|
-
title:
|
|
3113
|
-
ae("p", ta,
|
|
3109
|
+
return (y, T) => {
|
|
3110
|
+
const C = De("fm-search");
|
|
3111
|
+
return $(), Ce(Xt, { subtitle: u.value }, {
|
|
3112
|
+
title: me(() => [
|
|
3113
|
+
ae("p", ta, Oe(H(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3114
3114
|
]),
|
|
3115
|
-
default:
|
|
3116
|
-
e.options.length > 1 ? (
|
|
3115
|
+
default: me(() => [
|
|
3116
|
+
e.options.length > 1 ? ($(), Ce(C, {
|
|
3117
3117
|
key: 0,
|
|
3118
3118
|
modelValue: g.value,
|
|
3119
|
-
"onUpdate:modelValue":
|
|
3119
|
+
"onUpdate:modelValue": T[0] || (T[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),
|
|
3123
3123
|
ue(ir, {
|
|
3124
|
-
"model-value":
|
|
3124
|
+
"model-value": m.value,
|
|
3125
3125
|
options: a.value,
|
|
3126
3126
|
"show-intermediate": !1,
|
|
3127
3127
|
"show-all-toggle": !0,
|
|
@@ -3131,10 +3131,10 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3131
3131
|
class: "mt-16",
|
|
3132
3132
|
"onUpdate:modelValue": i
|
|
3133
3133
|
}, et({ _: 2 }, [
|
|
3134
|
-
|
|
3134
|
+
Ee(a.value, (F) => ({
|
|
3135
3135
|
name: `checkbox-${F.value}-append`,
|
|
3136
|
-
fn:
|
|
3137
|
-
Se(
|
|
3136
|
+
fn: me(({ option: D }) => [
|
|
3137
|
+
Se(y.$slots, `checkbox-${F.value}-append`, { option: D })
|
|
3138
3138
|
])
|
|
3139
3139
|
}))
|
|
3140
3140
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3143,7 +3143,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3143
3143
|
}, 8, ["subtitle"]);
|
|
3144
3144
|
};
|
|
3145
3145
|
}
|
|
3146
|
-
}), na = { class: "fm-typo-en-title-sm-600" }, bt = "includedNewRole", ra = /* @__PURE__ */
|
|
3146
|
+
}), na = { class: "fm-typo-en-title-sm-600" }, bt = "includedNewRole", ra = /* @__PURE__ */ Ae({
|
|
3147
3147
|
__name: "PosRolePermission",
|
|
3148
3148
|
props: {
|
|
3149
3149
|
modelValue: {
|
|
@@ -3173,27 +3173,27 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3173
3173
|
value: bt,
|
|
3174
3174
|
disabled: !!n.modelValue && n.roles.length > n.modelValue.length
|
|
3175
3175
|
},
|
|
3176
|
-
...n.roles.map((
|
|
3177
|
-
label:
|
|
3178
|
-
value:
|
|
3179
|
-
disabled: !!g &&
|
|
3176
|
+
...n.roles.map((y) => ({
|
|
3177
|
+
label: y.name,
|
|
3178
|
+
value: y._id,
|
|
3179
|
+
disabled: !!g && y.restaurants.every(({ id: T }) => !g.includes(T))
|
|
3180
3180
|
}))
|
|
3181
3181
|
];
|
|
3182
|
-
}),
|
|
3183
|
-
const g =
|
|
3182
|
+
}), m = z(() => n.modelValue ? n.modelValue : [bt, ...n.roles.map((g) => g._id)]), u = z(() => {
|
|
3183
|
+
const g = m.value.filter((y) => y !== bt).length;
|
|
3184
3184
|
return g === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: g });
|
|
3185
3185
|
});
|
|
3186
3186
|
function i(g) {
|
|
3187
|
-
const
|
|
3188
|
-
r("update:model-value",
|
|
3187
|
+
const y = g.length === a.value.length;
|
|
3188
|
+
r("update:model-value", y ? null : g.filter((T) => T !== bt));
|
|
3189
3189
|
}
|
|
3190
|
-
return (g,
|
|
3191
|
-
title:
|
|
3192
|
-
ae("p", na,
|
|
3190
|
+
return (g, y) => ($(), Ce(Xt, { subtitle: u.value }, {
|
|
3191
|
+
title: me(() => [
|
|
3192
|
+
ae("p", na, Oe(H(l)("team.memberForm.permissions.roles")), 1)
|
|
3193
3193
|
]),
|
|
3194
|
-
default:
|
|
3194
|
+
default: me(() => [
|
|
3195
3195
|
ue(ir, {
|
|
3196
|
-
"model-value":
|
|
3196
|
+
"model-value": m.value,
|
|
3197
3197
|
options: a.value,
|
|
3198
3198
|
"show-intermediate": !1,
|
|
3199
3199
|
"show-all-toggle": !1,
|
|
@@ -3202,10 +3202,10 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3202
3202
|
class: "mt-16",
|
|
3203
3203
|
"onUpdate:modelValue": i
|
|
3204
3204
|
}, et({ _: 2 }, [
|
|
3205
|
-
|
|
3206
|
-
name: `checkbox-${
|
|
3207
|
-
fn:
|
|
3208
|
-
Se(g.$slots, `checkbox-${
|
|
3205
|
+
Ee(a.value, (T) => ({
|
|
3206
|
+
name: `checkbox-${T.value}-append`,
|
|
3207
|
+
fn: me(({ option: C }) => [
|
|
3208
|
+
Se(g.$slots, `checkbox-${T.value}-append`, { option: C })
|
|
3209
3209
|
])
|
|
3210
3210
|
}))
|
|
3211
3211
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3223,7 +3223,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3223
3223
|
}, aa = {
|
|
3224
3224
|
key: 0,
|
|
3225
3225
|
class: "ml-32"
|
|
3226
|
-
}, Fn = /* @__PURE__ */
|
|
3226
|
+
}, Fn = /* @__PURE__ */ Ae({
|
|
3227
3227
|
__name: "PortalConditionForm",
|
|
3228
3228
|
props: {
|
|
3229
3229
|
entry: {},
|
|
@@ -3242,8 +3242,8 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3242
3242
|
setup(e, { emit: t }) {
|
|
3243
3243
|
const n = t, { t: r } = He();
|
|
3244
3244
|
return (l, a) => {
|
|
3245
|
-
const
|
|
3246
|
-
return
|
|
3245
|
+
const m = De("FmRadio"), u = De("FmRadioGroup");
|
|
3246
|
+
return $(), Ce(Nr, {
|
|
3247
3247
|
title: e.title,
|
|
3248
3248
|
builders: e.builders,
|
|
3249
3249
|
"form-value-for": e.formValueFor,
|
|
@@ -3253,34 +3253,34 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3253
3253
|
onUpdateForm: a[0] || (a[0] = (i) => n("update-form", i)),
|
|
3254
3254
|
onApply: a[1] || (a[1] = (i) => n("apply"))
|
|
3255
3255
|
}, {
|
|
3256
|
-
section:
|
|
3257
|
-
e.coverOverride.shouldShowInheritToggle(e.entry, i) ? (
|
|
3256
|
+
section: me(({ builder: i }) => [
|
|
3257
|
+
e.coverOverride.shouldShowInheritToggle(e.entry, i) ? ($(), ie("div", sa, [
|
|
3258
3258
|
ue(u, {
|
|
3259
3259
|
"model-value": e.inheritModeFor(i),
|
|
3260
3260
|
disabled: e.disable,
|
|
3261
3261
|
"onUpdate:modelValue": (g) => n("update-inherit-mode", { builder: i, mode: g })
|
|
3262
3262
|
}, {
|
|
3263
|
-
default:
|
|
3263
|
+
default: me(() => [
|
|
3264
3264
|
ae("div", null, [
|
|
3265
|
-
ue(
|
|
3265
|
+
ue(m, {
|
|
3266
3266
|
value: "inherit",
|
|
3267
3267
|
label: H(r)("team.memberForm.permissions.conditionCover.inherit", {
|
|
3268
3268
|
cover: e.coverOverride.coverLabel(e.subject)
|
|
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(r)(
|
|
3272
3272
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).labelKey,
|
|
3273
3273
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).params ?? {}
|
|
3274
3274
|
)) + ") ", 1)) : Me("", !0)
|
|
3275
3275
|
]),
|
|
3276
|
-
ue(
|
|
3276
|
+
ue(m, {
|
|
3277
3277
|
value: "custom",
|
|
3278
3278
|
label: H(r)("team.memberForm.permissions.conditionCover.custom")
|
|
3279
3279
|
}, null, 8, ["label"])
|
|
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" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3288
3288
|
"onUpdate:modelValue": (g) => n("update-form", { builder: i, form: g })
|
|
3289
3289
|
}, null, 8, ["builder", "model-value", "disable", "onUpdate:modelValue"])
|
|
3290
3290
|
])) : Me("", !0)
|
|
3291
|
-
])) : (
|
|
3291
|
+
])) : ($(), Ce(nn, {
|
|
3292
3292
|
key: 1,
|
|
3293
3293
|
builder: i,
|
|
3294
3294
|
"model-value": e.formValueFor(i),
|
|
@@ -3302,11 +3302,11 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3302
3302
|
}
|
|
3303
3303
|
}), la = {
|
|
3304
3304
|
async readWarehouses() {
|
|
3305
|
-
return
|
|
3305
|
+
return Rr(await kr().get("/warehouses"));
|
|
3306
3306
|
}
|
|
3307
3307
|
};
|
|
3308
3308
|
function Pn(e, t) {
|
|
3309
|
-
return Zn(e,
|
|
3309
|
+
return Zn(e, Bn).some(
|
|
3310
3310
|
(n) => n.subject === t && !n.inverted && n.actions.includes("manage")
|
|
3311
3311
|
);
|
|
3312
3312
|
}
|
|
@@ -3314,9 +3314,9 @@ function jn(e, t) {
|
|
|
3314
3314
|
return e.some((n) => n.subject === t && n.inverted) ? e : [...e, { subject: t, actions: ["manage"], inverted: !0 }];
|
|
3315
3315
|
}
|
|
3316
3316
|
function Un(e, t, n) {
|
|
3317
|
-
const { category: r, showByFeatureFlag: l, isCategoryCover: a, ...
|
|
3317
|
+
const { category: r, showByFeatureFlag: l, isCategoryCover: a, ...m } = e;
|
|
3318
3318
|
return {
|
|
3319
|
-
...
|
|
3319
|
+
...m,
|
|
3320
3320
|
actions: t,
|
|
3321
3321
|
...n !== void 0 && { conditions: n }
|
|
3322
3322
|
};
|
|
@@ -3326,40 +3326,40 @@ function ia(e, t, n, r) {
|
|
|
3326
3326
|
e.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3327
3327
|
), a = new Set(
|
|
3328
3328
|
t.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3329
|
-
),
|
|
3329
|
+
), m = new Set(
|
|
3330
3330
|
n.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3331
3331
|
);
|
|
3332
3332
|
let u = [...n];
|
|
3333
3333
|
for (const i of l)
|
|
3334
|
-
a.has(i) || (
|
|
3334
|
+
a.has(i) || (m.has(i) && (u = u.filter((y) => y.subject !== i)), (!m.has(i) || Pn(u, i)) && (u = jn(u, i)));
|
|
3335
3335
|
for (const i of a)
|
|
3336
3336
|
if (!l.has(i)) {
|
|
3337
|
-
const g = u.some((
|
|
3338
|
-
if (u = u.filter((
|
|
3339
|
-
const
|
|
3340
|
-
(
|
|
3341
|
-
),
|
|
3342
|
-
|
|
3337
|
+
const g = u.some((y) => y.subject === i && y.inverted);
|
|
3338
|
+
if (u = u.filter((y) => !(y.subject === i && y.inverted)), !g && !m.has(i)) {
|
|
3339
|
+
const y = t.find(
|
|
3340
|
+
(C) => C.subject === i && !C.inverted
|
|
3341
|
+
), T = r(i);
|
|
3342
|
+
T && y && u.push(Un(T, y.actions, y.conditions));
|
|
3343
3343
|
}
|
|
3344
3344
|
}
|
|
3345
3345
|
for (const i of a) {
|
|
3346
3346
|
if (!l.has(i)) continue;
|
|
3347
|
-
const g = e.find((
|
|
3348
|
-
if (!g || !
|
|
3349
|
-
const
|
|
3350
|
-
if (
|
|
3347
|
+
const g = e.find((D) => D.subject === i && !D.inverted), y = t.find((D) => D.subject === i && !D.inverted);
|
|
3348
|
+
if (!g || !y) continue;
|
|
3349
|
+
const T = new Set(g.actions), C = new Set(y.actions);
|
|
3350
|
+
if (T.size === C.size && [...T].every((D) => C.has(D)))
|
|
3351
3351
|
continue;
|
|
3352
|
-
const F = u.findIndex((
|
|
3352
|
+
const F = u.findIndex((D) => D.subject === i && !D.inverted);
|
|
3353
3353
|
if (F >= 0)
|
|
3354
3354
|
u[F] = {
|
|
3355
3355
|
...u[F],
|
|
3356
|
-
actions: Array.from(
|
|
3356
|
+
actions: Array.from(C)
|
|
3357
3357
|
};
|
|
3358
3358
|
else {
|
|
3359
|
-
const
|
|
3360
|
-
|
|
3359
|
+
const D = r(i);
|
|
3360
|
+
D && u.push(Un(D, Array.from(C)));
|
|
3361
3361
|
}
|
|
3362
|
-
|
|
3362
|
+
T.has("manage") && !C.has("manage") && Pn(u, i) && (u = jn(u, i)), !T.has("manage") && C.has("manage") && (u = u.filter((D) => !(D.subject === i && D.inverted)));
|
|
3363
3363
|
}
|
|
3364
3364
|
return u;
|
|
3365
3365
|
}
|
|
@@ -3382,273 +3382,273 @@ function ua(e) {
|
|
|
3382
3382
|
const t = (e || "").toUpperCase();
|
|
3383
3383
|
return ca[t] ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
3384
3384
|
}
|
|
3385
|
-
function
|
|
3385
|
+
function ma(e, t) {
|
|
3386
3386
|
return e != null && e.timezone ? e.timezone : e != null && e.timeZone ? e.timeZone : ua((e == null ? void 0 : e.country) ?? t);
|
|
3387
3387
|
}
|
|
3388
3388
|
function gt(e, t) {
|
|
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 {
|
|
3395
3395
|
return;
|
|
3396
3396
|
}
|
|
3397
3397
|
}
|
|
3398
|
-
function
|
|
3398
|
+
function da(e, t) {
|
|
3399
3399
|
return e.find((n) => !n.inverted && n.subject === t);
|
|
3400
3400
|
}
|
|
3401
3401
|
function Mt(e, t) {
|
|
3402
3402
|
const n = new Set(e.actions);
|
|
3403
3403
|
return n.has(he.Action.manage) ? !0 : t.actions.every((r) => n.has(r));
|
|
3404
3404
|
}
|
|
3405
|
-
function
|
|
3406
|
-
const n =
|
|
3407
|
-
return
|
|
3405
|
+
function Bt(e, t) {
|
|
3406
|
+
const n = We(e);
|
|
3407
|
+
return wt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3408
3408
|
}
|
|
3409
|
-
function
|
|
3409
|
+
function xn(e, t, n) {
|
|
3410
3410
|
return {
|
|
3411
|
-
...
|
|
3412
|
-
...tt(
|
|
3411
|
+
...Bt(e, n),
|
|
3412
|
+
...tt(We(t), n)
|
|
3413
3413
|
};
|
|
3414
3414
|
}
|
|
3415
3415
|
function fa(e, t, n) {
|
|
3416
3416
|
const r = rt(/* @__PURE__ */ new Set());
|
|
3417
3417
|
function l(c) {
|
|
3418
|
-
return
|
|
3418
|
+
return wr(c, t.value);
|
|
3419
3419
|
}
|
|
3420
3420
|
function a(c) {
|
|
3421
3421
|
return t.value.find((b) => b.subject === c);
|
|
3422
3422
|
}
|
|
3423
|
-
function
|
|
3424
|
-
var
|
|
3423
|
+
function m(c) {
|
|
3424
|
+
var I;
|
|
3425
3425
|
const b = l(c);
|
|
3426
|
-
return b ? (
|
|
3426
|
+
return b ? (I = a(b)) == null ? void 0 : I.label : void 0;
|
|
3427
3427
|
}
|
|
3428
3428
|
function u(c) {
|
|
3429
|
-
return
|
|
3429
|
+
return da(e.value, c);
|
|
3430
3430
|
}
|
|
3431
3431
|
function i(c, b) {
|
|
3432
|
-
return tt(
|
|
3432
|
+
return tt(We(c), b);
|
|
3433
3433
|
}
|
|
3434
3434
|
function g(c, b) {
|
|
3435
|
-
var
|
|
3436
|
-
if (!(((
|
|
3437
|
-
const
|
|
3438
|
-
if (!
|
|
3439
|
-
const v = u(
|
|
3435
|
+
var k;
|
|
3436
|
+
if (!(((k = b.appliesToActions) == null ? void 0 : k.call(b, c.actions)) ?? !0)) return !1;
|
|
3437
|
+
const I = l(c.subject);
|
|
3438
|
+
if (!I) return !1;
|
|
3439
|
+
const v = u(I);
|
|
3440
3440
|
return v ? Object.keys(i(v, b)).length > 0 : !1;
|
|
3441
3441
|
}
|
|
3442
|
-
function
|
|
3442
|
+
function y(c, b) {
|
|
3443
3443
|
if (!g(c, b) || r.value.has(gt(c.subject, b))) return "custom";
|
|
3444
3444
|
if (c.index === null) return "inherit";
|
|
3445
|
-
const
|
|
3446
|
-
if (
|
|
3447
|
-
const L = tt(
|
|
3448
|
-
if (JSON.stringify(L) === JSON.stringify(
|
|
3445
|
+
const I = e.value[c.index], v = l(c.subject), k = v ? u(v) : void 0;
|
|
3446
|
+
if (I && k) {
|
|
3447
|
+
const L = tt(We(I), b), X = i(k, b);
|
|
3448
|
+
if (JSON.stringify(L) === JSON.stringify(X)) return "inherit";
|
|
3449
3449
|
}
|
|
3450
3450
|
return "custom";
|
|
3451
3451
|
}
|
|
3452
|
-
function
|
|
3452
|
+
function T(c, b, I) {
|
|
3453
3453
|
if (!b.summarizeForm) return;
|
|
3454
3454
|
const v = l(c.subject);
|
|
3455
3455
|
if (!v) return;
|
|
3456
|
-
const
|
|
3457
|
-
if (!
|
|
3458
|
-
const L = b.fromCondition(i(
|
|
3459
|
-
return b.summarizeForm(L, { timeZone:
|
|
3456
|
+
const k = u(v);
|
|
3457
|
+
if (!k) return;
|
|
3458
|
+
const L = b.fromCondition(i(k, b));
|
|
3459
|
+
return b.summarizeForm(L, { timeZone: I });
|
|
3460
3460
|
}
|
|
3461
|
-
function
|
|
3461
|
+
function C(c, b) {
|
|
3462
3462
|
if (c.index === null) return;
|
|
3463
|
-
const
|
|
3464
|
-
if (L &&
|
|
3465
|
-
|
|
3466
|
-
else if (
|
|
3467
|
-
const
|
|
3468
|
-
Object.keys(
|
|
3463
|
+
const I = [...e.value], v = { ...I[c.index] }, k = Bt(v, b), L = Object.keys(k).length === 0, X = l(c.subject), V = X ? u(X) : void 0, d = V ? Mt(V, v) : !1;
|
|
3464
|
+
if (L && d)
|
|
3465
|
+
I.splice(c.index, 1);
|
|
3466
|
+
else if (V) {
|
|
3467
|
+
const N = xn(v, V, b);
|
|
3468
|
+
Object.keys(N).length === 0 ? delete v.conditions : v.conditions = JSON.stringify(N), I[c.index] = v;
|
|
3469
3469
|
} else
|
|
3470
|
-
L ? delete v.conditions : v.conditions = JSON.stringify(
|
|
3471
|
-
n(
|
|
3470
|
+
L ? delete v.conditions : v.conditions = JSON.stringify(k), I[c.index] = v;
|
|
3471
|
+
n(I);
|
|
3472
3472
|
}
|
|
3473
|
-
function F(c, b,
|
|
3473
|
+
function F(c, b, I) {
|
|
3474
3474
|
const v = gt(c.subject, b);
|
|
3475
|
-
if (
|
|
3475
|
+
if (I === "inherit") {
|
|
3476
3476
|
const L = new Set(r.value);
|
|
3477
|
-
L.delete(v), r.value = L,
|
|
3477
|
+
L.delete(v), r.value = L, C(c, b);
|
|
3478
3478
|
return;
|
|
3479
3479
|
}
|
|
3480
|
-
const
|
|
3481
|
-
|
|
3480
|
+
const k = new Set(r.value);
|
|
3481
|
+
k.add(v), r.value = k, c.index === null && h(c, b, b.fromCondition(void 0), {
|
|
3482
3482
|
forceCreateRule: !0
|
|
3483
3483
|
});
|
|
3484
3484
|
}
|
|
3485
|
-
function
|
|
3485
|
+
function D(c) {
|
|
3486
3486
|
const b = l(c);
|
|
3487
3487
|
if (!b) return [];
|
|
3488
|
-
const
|
|
3489
|
-
return (
|
|
3490
|
-
}
|
|
3491
|
-
function
|
|
3492
|
-
return e.value.filter((
|
|
3493
|
-
if (
|
|
3494
|
-
const v =
|
|
3495
|
-
return v === c || l(v) !== c ? !1 : r.value.has(gt(v, b)) ? !0 : Object.keys(tt(
|
|
3488
|
+
const I = u(b);
|
|
3489
|
+
return (I == null ? void 0 : I.actions) ?? [];
|
|
3490
|
+
}
|
|
3491
|
+
function A(c, b) {
|
|
3492
|
+
return e.value.filter((I) => {
|
|
3493
|
+
if (I.inverted) return !1;
|
|
3494
|
+
const v = I.subject;
|
|
3495
|
+
return v === c || l(v) !== c ? !1 : r.value.has(gt(v, b)) ? !0 : Object.keys(tt(We(I), b)).length > 0;
|
|
3496
3496
|
});
|
|
3497
3497
|
}
|
|
3498
|
-
function
|
|
3499
|
-
const
|
|
3500
|
-
for (const
|
|
3501
|
-
if (!
|
|
3502
|
-
const L =
|
|
3503
|
-
l(L) === c && v.delete(
|
|
3498
|
+
function w(c, b) {
|
|
3499
|
+
const I = `::${b.builderKey}`, v = new Set(r.value);
|
|
3500
|
+
for (const k of v) {
|
|
3501
|
+
if (!k.endsWith(I)) continue;
|
|
3502
|
+
const L = k.slice(0, -I.length);
|
|
3503
|
+
l(L) === c && v.delete(k);
|
|
3504
3504
|
}
|
|
3505
3505
|
r.value = v;
|
|
3506
3506
|
}
|
|
3507
|
-
function f(c, b,
|
|
3507
|
+
function f(c, b, I) {
|
|
3508
3508
|
const v = b.subject;
|
|
3509
|
-
return c.reduce((
|
|
3509
|
+
return c.reduce((k, L) => {
|
|
3510
3510
|
if (L.inverted)
|
|
3511
|
-
return
|
|
3512
|
-
const
|
|
3513
|
-
if (
|
|
3514
|
-
return
|
|
3515
|
-
if (Mt(b, L) && Object.keys(
|
|
3516
|
-
return
|
|
3517
|
-
const
|
|
3518
|
-
if (Object.keys(
|
|
3519
|
-
const { conditions:
|
|
3520
|
-
|
|
3511
|
+
return k.push(L), k;
|
|
3512
|
+
const X = L.subject;
|
|
3513
|
+
if (X === v || l(X) !== v)
|
|
3514
|
+
return k.push(L), k;
|
|
3515
|
+
if (Mt(b, L) && Object.keys(Bt(L, I)).length === 0)
|
|
3516
|
+
return k;
|
|
3517
|
+
const d = xn(L, b, I);
|
|
3518
|
+
if (Object.keys(d).length === 0) {
|
|
3519
|
+
const { conditions: N, ...U } = L;
|
|
3520
|
+
k.push(U);
|
|
3521
3521
|
} else
|
|
3522
|
-
|
|
3523
|
-
return
|
|
3522
|
+
k.push({ ...L, conditions: JSON.stringify(d) });
|
|
3523
|
+
return k;
|
|
3524
3524
|
}, []);
|
|
3525
3525
|
}
|
|
3526
|
-
function h(c, b,
|
|
3527
|
-
var
|
|
3528
|
-
const
|
|
3526
|
+
function h(c, b, I, v = {}) {
|
|
3527
|
+
var x;
|
|
3528
|
+
const k = [...e.value];
|
|
3529
3529
|
let L = c.index;
|
|
3530
|
-
const
|
|
3531
|
-
if (L === null && !
|
|
3530
|
+
const X = b.toCondition(I), V = Object.keys(X).length > 0;
|
|
3531
|
+
if (L === null && !V && !v.forceCreateRule) return;
|
|
3532
3532
|
if (L === null) {
|
|
3533
|
-
const j =
|
|
3533
|
+
const j = k.findIndex((G) => !G.inverted && G.subject === c.subject);
|
|
3534
3534
|
if (j !== -1)
|
|
3535
3535
|
L = j;
|
|
3536
3536
|
else {
|
|
3537
|
-
const
|
|
3538
|
-
if (!
|
|
3537
|
+
const G = t.value.find((Q) => Q.subject === c.subject);
|
|
3538
|
+
if (!G) return;
|
|
3539
3539
|
const {
|
|
3540
|
-
category:
|
|
3541
|
-
showByFeatureFlag:
|
|
3540
|
+
category: W,
|
|
3541
|
+
showByFeatureFlag: B,
|
|
3542
3542
|
isCategoryCover: Y,
|
|
3543
3543
|
...ne
|
|
3544
|
-
} =
|
|
3545
|
-
|
|
3544
|
+
} = G;
|
|
3545
|
+
k.push({
|
|
3546
3546
|
...ne,
|
|
3547
3547
|
actions: c.actions.length > 0 ? c.actions : ne.actions
|
|
3548
|
-
}), L =
|
|
3548
|
+
}), L = k.length - 1;
|
|
3549
3549
|
}
|
|
3550
3550
|
}
|
|
3551
|
-
const
|
|
3552
|
-
|
|
3553
|
-
.../* @__PURE__ */ new Set([...
|
|
3551
|
+
const d = { ...k[L] };
|
|
3552
|
+
d.actions = [
|
|
3553
|
+
.../* @__PURE__ */ new Set([...d.actions, ...c.actions])
|
|
3554
3554
|
];
|
|
3555
|
-
const
|
|
3556
|
-
if (Object.keys(U).length === 0 ? delete
|
|
3557
|
-
const j =
|
|
3558
|
-
var
|
|
3559
|
-
|
|
3560
|
-
},
|
|
3561
|
-
var
|
|
3562
|
-
n(
|
|
3555
|
+
const N = We(d), U = wt(N, [{ builder: b, formValue: I }]);
|
|
3556
|
+
if (Object.keys(U).length === 0 ? delete d.conditions : d.conditions = JSON.stringify(U), k[L] = d, sn(c.subject, t.value)) {
|
|
3557
|
+
const j = A(c.subject, b), G = () => {
|
|
3558
|
+
var B;
|
|
3559
|
+
w(c.subject, b), n(f(k, d, b)), (B = v.afterCommit) == null || B.call(v);
|
|
3560
|
+
}, W = () => {
|
|
3561
|
+
var B;
|
|
3562
|
+
n(k), (B = v.afterCommit) == null || B.call(v);
|
|
3563
3563
|
};
|
|
3564
3564
|
if (j.length === 0) {
|
|
3565
|
-
|
|
3565
|
+
G();
|
|
3566
3566
|
return;
|
|
3567
3567
|
}
|
|
3568
|
-
v.onOverridesConflict ? v.onOverridesConflict({ override:
|
|
3568
|
+
v.onOverridesConflict ? v.onOverridesConflict({ override: G, keep: W }) : W();
|
|
3569
3569
|
return;
|
|
3570
3570
|
}
|
|
3571
|
-
n(
|
|
3571
|
+
n(k), (x = v.afterCommit) == null || x.call(v);
|
|
3572
3572
|
}
|
|
3573
|
-
function S(c, b,
|
|
3573
|
+
function S(c, b, I = {}) {
|
|
3574
3574
|
if (b.length === 0) return;
|
|
3575
3575
|
const v = [...e.value];
|
|
3576
|
-
let
|
|
3576
|
+
let k = v.findIndex((j) => !j.inverted && j.subject === c.subject), L = k === -1 ? void 0 : { ...v[k] }, X = We(L ?? {}) ?? {};
|
|
3577
3577
|
for (const j of b) {
|
|
3578
|
-
const
|
|
3579
|
-
|
|
3578
|
+
const G = j.mode === "inherit" ? j.builder.fromCondition(void 0) : j.form;
|
|
3579
|
+
X = wt(X, [{ builder: j.builder, formValue: G }]);
|
|
3580
3580
|
}
|
|
3581
|
-
const
|
|
3582
|
-
if (!L && (Object.keys(
|
|
3581
|
+
const V = b.some((j) => j.mode === "custom");
|
|
3582
|
+
if (!L && (Object.keys(X).length > 0 || V)) {
|
|
3583
3583
|
const j = t.value.find((ne) => ne.subject === c.subject);
|
|
3584
3584
|
if (!j) return;
|
|
3585
3585
|
const {
|
|
3586
|
-
category:
|
|
3587
|
-
showByFeatureFlag:
|
|
3588
|
-
isCategoryCover:
|
|
3586
|
+
category: G,
|
|
3587
|
+
showByFeatureFlag: W,
|
|
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
|
-
}, v.push(L),
|
|
3594
|
+
}, v.push(L), k = v.length - 1;
|
|
3595
3595
|
}
|
|
3596
3596
|
if (L) {
|
|
3597
|
-
const j = l(c.subject),
|
|
3598
|
-
if (!
|
|
3599
|
-
v.splice(
|
|
3597
|
+
const j = l(c.subject), G = j ? u(j) : void 0;
|
|
3598
|
+
if (!V && Object.keys(X).length === 0 && !!G && Mt(G, L))
|
|
3599
|
+
v.splice(k, 1), L = void 0;
|
|
3600
3600
|
else {
|
|
3601
3601
|
if (L.actions = [
|
|
3602
3602
|
.../* @__PURE__ */ new Set([...L.actions, ...c.actions])
|
|
3603
|
-
],
|
|
3604
|
-
for (const
|
|
3605
|
-
|
|
3606
|
-
...
|
|
3607
|
-
...tt(
|
|
3603
|
+
], G)
|
|
3604
|
+
for (const B of b)
|
|
3605
|
+
B.mode === "inherit" && (X = {
|
|
3606
|
+
...X,
|
|
3607
|
+
...tt(We(G), B.builder)
|
|
3608
3608
|
});
|
|
3609
|
-
Object.keys(
|
|
3609
|
+
Object.keys(X).length === 0 ? delete L.conditions : L.conditions = JSON.stringify(X), v[k] = L;
|
|
3610
3610
|
}
|
|
3611
3611
|
}
|
|
3612
|
-
const
|
|
3612
|
+
const d = () => {
|
|
3613
3613
|
const j = new Set(r.value);
|
|
3614
|
-
for (const
|
|
3615
|
-
const
|
|
3616
|
-
|
|
3614
|
+
for (const G of b) {
|
|
3615
|
+
const W = gt(c.subject, G.builder);
|
|
3616
|
+
G.mode === "custom" ? j.add(W) : j.delete(W);
|
|
3617
3617
|
}
|
|
3618
3618
|
r.value = j;
|
|
3619
|
-
},
|
|
3620
|
-
var
|
|
3621
|
-
|
|
3619
|
+
}, N = (j) => {
|
|
3620
|
+
var G;
|
|
3621
|
+
d(), n(j), (G = I.afterCommit) == null || G.call(I);
|
|
3622
3622
|
};
|
|
3623
3623
|
if (!sn(c.subject, t.value) || !L) {
|
|
3624
|
-
|
|
3624
|
+
N(v);
|
|
3625
3625
|
return;
|
|
3626
3626
|
}
|
|
3627
|
-
const U = b.map((j) => j.builder).filter((j) =>
|
|
3627
|
+
const U = b.map((j) => j.builder).filter((j) => A(c.subject, j).length > 0), x = () => {
|
|
3628
3628
|
let j = v;
|
|
3629
|
-
for (const
|
|
3630
|
-
|
|
3631
|
-
|
|
3629
|
+
for (const G of b.map((W) => W.builder))
|
|
3630
|
+
w(c.subject, G), j = f(j, L, G);
|
|
3631
|
+
N(j);
|
|
3632
3632
|
};
|
|
3633
|
-
if (U.length > 0 &&
|
|
3634
|
-
|
|
3633
|
+
if (U.length > 0 && I.onOverridesConflict) {
|
|
3634
|
+
I.onOverridesConflict({ override: x, keep: () => N(v) });
|
|
3635
3635
|
return;
|
|
3636
3636
|
}
|
|
3637
|
-
U.length > 0 ?
|
|
3637
|
+
U.length > 0 ? N(v) : x();
|
|
3638
3638
|
}
|
|
3639
3639
|
return {
|
|
3640
3640
|
getCoverSubject: l,
|
|
3641
|
-
coverLabel:
|
|
3641
|
+
coverLabel: m,
|
|
3642
3642
|
shouldShowInheritToggle: g,
|
|
3643
|
-
inheritMode:
|
|
3643
|
+
inheritMode: y,
|
|
3644
3644
|
setInheritMode: F,
|
|
3645
|
-
inheritedSummary:
|
|
3646
|
-
getEffectiveActions:
|
|
3645
|
+
inheritedSummary: T,
|
|
3646
|
+
getEffectiveActions: D,
|
|
3647
3647
|
updateBuilderCondition: h,
|
|
3648
3648
|
applyConditionDrafts: S
|
|
3649
3649
|
};
|
|
3650
3650
|
}
|
|
3651
|
-
const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, pa = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ha = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ba = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ga = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" },
|
|
3651
|
+
const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, pa = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ha = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ba = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ga = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Ia = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ya = "condition-form-select-menu", wa = /* @__PURE__ */ Ae({
|
|
3652
3652
|
__name: "PortalPermissionEditor",
|
|
3653
3653
|
props: /* @__PURE__ */ tn({
|
|
3654
3654
|
disable: {
|
|
@@ -3665,71 +3665,71 @@ const _a = { class: "flex flex-col gap-32" }, va = { 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 = pr(e, "modelValue"), r = e, l = t, { t: a } = He(),
|
|
3669
|
-
fetchCustomReportPermissions:
|
|
3670
|
-
customReportPermissions:
|
|
3671
|
-
} =
|
|
3672
|
-
...
|
|
3673
|
-
...
|
|
3668
|
+
const n = pr(e, "modelValue"), r = e, l = t, { t: a } = He(), m = hr(), u = br(), { breakpoints: i } = gr(), g = z(() => i.value.xs || i.value.sm), {
|
|
3669
|
+
fetchCustomReportPermissions: y,
|
|
3670
|
+
customReportPermissions: T
|
|
3671
|
+
} = Ir(), C = z(() => [
|
|
3672
|
+
...Gn,
|
|
3673
|
+
...T.value
|
|
3674
3674
|
]), F = z(() => {
|
|
3675
|
-
const
|
|
3676
|
-
return
|
|
3675
|
+
const O = m.currentBusiness.value, s = m.currentCountry.value, o = s instanceof Object ? s.code : s;
|
|
3676
|
+
return ma(O, o);
|
|
3677
3677
|
});
|
|
3678
|
-
function
|
|
3679
|
-
return
|
|
3678
|
+
function D(O) {
|
|
3679
|
+
return C.value.find((s) => s.subject === O);
|
|
3680
3680
|
}
|
|
3681
|
-
function
|
|
3682
|
-
return rn(
|
|
3681
|
+
function A(O, s) {
|
|
3682
|
+
return rn(O).filter(
|
|
3683
3683
|
(o) => {
|
|
3684
3684
|
var _;
|
|
3685
3685
|
return ((_ = o.appliesToActions) == null ? void 0 : _.call(o, s)) ?? !0;
|
|
3686
3686
|
}
|
|
3687
3687
|
);
|
|
3688
3688
|
}
|
|
3689
|
-
const
|
|
3690
|
-
const
|
|
3691
|
-
return
|
|
3689
|
+
const w = z(() => {
|
|
3690
|
+
const O = C.value.filter((o) => !c.includes(o.subject)).map((o) => o.subject);
|
|
3691
|
+
return yr(
|
|
3692
3692
|
r.inheritPermissions.map((o) => ({
|
|
3693
3693
|
...o,
|
|
3694
|
-
permissions: o.permissions.filter((_) =>
|
|
3694
|
+
permissions: o.permissions.filter((_) => O.includes(_.subject))
|
|
3695
3695
|
}))
|
|
3696
3696
|
).map((o) => ({
|
|
3697
3697
|
id: o.subject,
|
|
3698
3698
|
setNames: o.setNames
|
|
3699
3699
|
}));
|
|
3700
3700
|
}), f = z(() => {
|
|
3701
|
-
const
|
|
3701
|
+
const O = r.inheritPermissions.map((s) => ({
|
|
3702
3702
|
...s,
|
|
3703
3703
|
permissions: s.permissions.filter(
|
|
3704
3704
|
(o) => o.subject === he.Subject.Business.inventory_stock
|
|
3705
3705
|
)
|
|
3706
3706
|
}));
|
|
3707
3707
|
return Lt(
|
|
3708
|
-
|
|
3708
|
+
O,
|
|
3709
3709
|
"warehouseId",
|
|
3710
|
-
|
|
3710
|
+
I.value.map((s) => s._id)
|
|
3711
3711
|
);
|
|
3712
3712
|
}), h = z(() => {
|
|
3713
|
-
const
|
|
3713
|
+
const O = r.inheritPermissions.map((s) => ({
|
|
3714
3714
|
...s,
|
|
3715
3715
|
permissions: s.permissions.filter(
|
|
3716
3716
|
(o) => o.subject === he.Subject.Restaurant.restaurant
|
|
3717
3717
|
)
|
|
3718
3718
|
}));
|
|
3719
3719
|
return Lt(
|
|
3720
|
-
|
|
3720
|
+
O,
|
|
3721
3721
|
"restaurantId",
|
|
3722
|
-
|
|
3722
|
+
X.value.map((s) => s._id)
|
|
3723
3723
|
);
|
|
3724
3724
|
}), S = z(() => {
|
|
3725
|
-
const
|
|
3725
|
+
const O = r.inheritPermissions.map((s) => ({
|
|
3726
3726
|
...s,
|
|
3727
3727
|
permissions: s.permissions.filter((o) => o.subject === he.Subject.Business.role)
|
|
3728
3728
|
}));
|
|
3729
3729
|
return Lt(
|
|
3730
|
-
|
|
3730
|
+
O,
|
|
3731
3731
|
"roleId",
|
|
3732
|
-
|
|
3732
|
+
V.value.map((s) => s._id)
|
|
3733
3733
|
);
|
|
3734
3734
|
}), c = [
|
|
3735
3735
|
he.Subject.Business.restaurant,
|
|
@@ -3738,21 +3738,21 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3738
3738
|
he.Subject.Business.inventory_stock
|
|
3739
3739
|
], b = z(() => {
|
|
3740
3740
|
var s;
|
|
3741
|
-
const
|
|
3741
|
+
const O = (s = n.value) == null ? void 0 : s.find(
|
|
3742
3742
|
(o) => o.subject === he.Subject.Business.inventory_stock
|
|
3743
3743
|
);
|
|
3744
|
-
return
|
|
3745
|
-
}),
|
|
3746
|
-
label:
|
|
3747
|
-
value:
|
|
3744
|
+
return O ? O.conditions ? JSON.parse(O.conditions).warehouseId.$in : null : [];
|
|
3745
|
+
}), I = rt([]), v = z(() => I.value.map((O) => ({
|
|
3746
|
+
label: O.profile.name,
|
|
3747
|
+
value: O._id
|
|
3748
3748
|
})));
|
|
3749
|
-
function
|
|
3750
|
-
const s = L(n.value,
|
|
3749
|
+
function k(O) {
|
|
3750
|
+
const s = L(n.value, O);
|
|
3751
3751
|
n.value = s;
|
|
3752
3752
|
}
|
|
3753
|
-
function L(
|
|
3754
|
-
let o =
|
|
3755
|
-
|
|
3753
|
+
function L(O, s) {
|
|
3754
|
+
let o = It(
|
|
3755
|
+
O.filter((_) => _.subject !== he.Subject.Business.inventory_stock)
|
|
3756
3756
|
);
|
|
3757
3757
|
if (!s || s.length > 0) {
|
|
3758
3758
|
const _ = {
|
|
@@ -3763,25 +3763,25 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3763
3763
|
}
|
|
3764
3764
|
return o;
|
|
3765
3765
|
}
|
|
3766
|
-
const { restaurants:
|
|
3767
|
-
label: `${
|
|
3768
|
-
value:
|
|
3769
|
-
}))),
|
|
3770
|
-
function
|
|
3771
|
-
const s =
|
|
3766
|
+
const { restaurants: X } = m, V = Mr().roles, d = z(() => X.value.map((O) => ({
|
|
3767
|
+
label: `${O.profile.code ? O.profile.code + "-" : ""}${O.profile.name}`,
|
|
3768
|
+
value: O._id
|
|
3769
|
+
}))), N = z(() => X.value.reduce((O, s) => (O[s._id] = V.value.filter((o) => o.restaurants.some((_) => _.id === s._id)).map((o) => o._id), O), {})), U = z(() => Er(n.value));
|
|
3770
|
+
function x(O) {
|
|
3771
|
+
const s = G(n.value, O);
|
|
3772
3772
|
n.value = s;
|
|
3773
3773
|
}
|
|
3774
|
-
const j = z(() =>
|
|
3775
|
-
function
|
|
3774
|
+
const j = z(() => Cr(n.value));
|
|
3775
|
+
function G(O, s) {
|
|
3776
3776
|
var _;
|
|
3777
|
-
let o =
|
|
3778
|
-
|
|
3779
|
-
(
|
|
3777
|
+
let o = It(
|
|
3778
|
+
O.filter(
|
|
3779
|
+
(R) => R.subject !== he.Subject.Business.restaurant && R.subject !== he.Subject.Restaurant.restaurant
|
|
3780
3780
|
)
|
|
3781
3781
|
);
|
|
3782
3782
|
if (!s || s.length > 0) {
|
|
3783
3783
|
const {
|
|
3784
|
-
category:
|
|
3784
|
+
category: R,
|
|
3785
3785
|
showByFeatureFlag: M,
|
|
3786
3786
|
...P
|
|
3787
3787
|
} = Lr.restaurant;
|
|
@@ -3793,23 +3793,23 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3793
3793
|
s && (p.conditions = JSON.stringify({ restaurantId: { $in: s } })), o.push(p);
|
|
3794
3794
|
}
|
|
3795
3795
|
if (s) {
|
|
3796
|
-
const
|
|
3797
|
-
...new Set(s.map((P) =>
|
|
3798
|
-
], M =
|
|
3799
|
-
|
|
3796
|
+
const R = [
|
|
3797
|
+
...new Set(s.map((P) => N.value[P]).flatMap((P) => P))
|
|
3798
|
+
], M = V.value.map((P) => P._id);
|
|
3799
|
+
R.length !== M.length && (o = B(
|
|
3800
3800
|
o,
|
|
3801
|
-
(_ = j.value || M) == null ? void 0 : _.filter((P) =>
|
|
3801
|
+
(_ = j.value || M) == null ? void 0 : _.filter((P) => R.includes(P))
|
|
3802
3802
|
));
|
|
3803
3803
|
}
|
|
3804
3804
|
return o;
|
|
3805
3805
|
}
|
|
3806
|
-
function
|
|
3807
|
-
const s =
|
|
3806
|
+
function W(O) {
|
|
3807
|
+
const s = B(n.value, O);
|
|
3808
3808
|
n.value = s;
|
|
3809
3809
|
}
|
|
3810
|
-
function
|
|
3811
|
-
let o =
|
|
3812
|
-
|
|
3810
|
+
function B(O, s) {
|
|
3811
|
+
let o = It(
|
|
3812
|
+
O.filter((_) => _.subject !== he.Subject.Business.role)
|
|
3813
3813
|
);
|
|
3814
3814
|
if (s && s.length > 0) {
|
|
3815
3815
|
const _ = {
|
|
@@ -3821,15 +3821,15 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3821
3821
|
}
|
|
3822
3822
|
return o;
|
|
3823
3823
|
}
|
|
3824
|
-
|
|
3824
|
+
Vn(async () => {
|
|
3825
3825
|
await Promise.all([
|
|
3826
|
-
la.readWarehouses().then((
|
|
3827
|
-
|
|
3826
|
+
la.readWarehouses().then((O) => I.value = O),
|
|
3827
|
+
y()
|
|
3828
3828
|
]);
|
|
3829
3829
|
});
|
|
3830
3830
|
const Y = z(() => Zn(
|
|
3831
3831
|
n.value,
|
|
3832
|
-
|
|
3832
|
+
Bn
|
|
3833
3833
|
).filter((o) => {
|
|
3834
3834
|
const _ = o.source;
|
|
3835
3835
|
return (_ == null ? void 0 : _.type) !== "systemPermissionSet" ? !0 : o.actions.includes("manage");
|
|
@@ -3837,23 +3837,23 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3837
3837
|
if (o.inverted) return o;
|
|
3838
3838
|
const _ = o.actions;
|
|
3839
3839
|
if (!_.includes("manage")) return o;
|
|
3840
|
-
const
|
|
3841
|
-
if (!
|
|
3842
|
-
const M =
|
|
3840
|
+
const R = D(o.subject);
|
|
3841
|
+
if (!R) return o;
|
|
3842
|
+
const M = R.actions;
|
|
3843
3843
|
return M.length <= 1 || M.filter((p) => !_.includes(p)).length === 0 ? o : { ...o, actions: [...M] };
|
|
3844
3844
|
}));
|
|
3845
|
-
function ne(
|
|
3845
|
+
function ne(O) {
|
|
3846
3846
|
n.value = ia(
|
|
3847
3847
|
Y.value,
|
|
3848
|
-
|
|
3848
|
+
O,
|
|
3849
3849
|
n.value,
|
|
3850
|
-
|
|
3850
|
+
D
|
|
3851
3851
|
);
|
|
3852
3852
|
}
|
|
3853
3853
|
const Q = z(() => new Set(
|
|
3854
|
-
|
|
3854
|
+
C.value.filter((O) => rn(O.subject).length > 0).map((O) => O.subject)
|
|
3855
3855
|
)), _e = z(() => {
|
|
3856
|
-
const
|
|
3856
|
+
const O = /* @__PURE__ */ new Map();
|
|
3857
3857
|
return Y.value.map((s) => ({
|
|
3858
3858
|
rule: s,
|
|
3859
3859
|
index: n.value.findIndex(
|
|
@@ -3861,111 +3861,111 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3861
3861
|
)
|
|
3862
3862
|
})).filter(({ rule: s }) => !s.inverted).forEach(({ rule: s, index: o }) => {
|
|
3863
3863
|
var P;
|
|
3864
|
-
const _ = s.actions,
|
|
3865
|
-
if (
|
|
3864
|
+
const _ = s.actions, R = A(s.subject, _);
|
|
3865
|
+
if (R.length === 0) return;
|
|
3866
3866
|
let M;
|
|
3867
3867
|
try {
|
|
3868
3868
|
M = s.conditions ? JSON.parse(s.conditions) : void 0;
|
|
3869
3869
|
} catch {
|
|
3870
3870
|
M = void 0;
|
|
3871
3871
|
}
|
|
3872
|
-
|
|
3872
|
+
O.set(s.subject, {
|
|
3873
3873
|
index: o >= 0 ? o : null,
|
|
3874
3874
|
subject: s.subject,
|
|
3875
|
-
label: ((P =
|
|
3875
|
+
label: ((P = D(s.subject)) == null ? void 0 : P.label) ?? s.subject,
|
|
3876
3876
|
actions: _,
|
|
3877
3877
|
// Each builder only ever sees its own slice of the stored condition.
|
|
3878
|
-
sections:
|
|
3878
|
+
sections: R.map((p) => ({
|
|
3879
3879
|
builder: p,
|
|
3880
3880
|
formValue: p.fromCondition(tt(M, p))
|
|
3881
3881
|
}))
|
|
3882
3882
|
});
|
|
3883
|
-
}),
|
|
3884
|
-
}), ce = fa(n,
|
|
3885
|
-
n.value =
|
|
3886
|
-
}), se =
|
|
3887
|
-
function q(
|
|
3888
|
-
const o = _e.value.get(
|
|
3883
|
+
}), O;
|
|
3884
|
+
}), ce = fa(n, C, (O) => {
|
|
3885
|
+
n.value = O;
|
|
3886
|
+
}), se = Tr(n), fe = rt(null);
|
|
3887
|
+
function q(O, s) {
|
|
3888
|
+
const o = _e.value.get(O);
|
|
3889
3889
|
if (o) return o;
|
|
3890
|
-
const _ = ce.getEffectiveActions(
|
|
3891
|
-
if (
|
|
3890
|
+
const _ = ce.getEffectiveActions(O), R = A(O, _);
|
|
3891
|
+
if (R.length !== 0)
|
|
3892
3892
|
return {
|
|
3893
3893
|
index: null,
|
|
3894
|
-
subject:
|
|
3894
|
+
subject: O,
|
|
3895
3895
|
label: s,
|
|
3896
3896
|
actions: _,
|
|
3897
|
-
sections:
|
|
3897
|
+
sections: R.map((M) => ({
|
|
3898
3898
|
builder: M,
|
|
3899
3899
|
formValue: M.fromCondition(void 0)
|
|
3900
3900
|
}))
|
|
3901
3901
|
};
|
|
3902
3902
|
}
|
|
3903
|
-
function
|
|
3904
|
-
const o = se.getDraft({ subject:
|
|
3903
|
+
function we(O, s) {
|
|
3904
|
+
const o = se.getDraft({ subject: O.subject, builderKey: s.builderKey });
|
|
3905
3905
|
if (o) return o.formValue;
|
|
3906
|
-
const _ =
|
|
3906
|
+
const _ = O.sections.find((R) => R.builder.builderKey === s.builderKey);
|
|
3907
3907
|
return _ == null ? void 0 : _.formValue;
|
|
3908
3908
|
}
|
|
3909
|
-
function K(
|
|
3910
|
-
const o = se.getDraft({ subject:
|
|
3911
|
-
return o != null && o.inheritMode ? o.inheritMode : ce.inheritMode(
|
|
3909
|
+
function K(O, s) {
|
|
3910
|
+
const o = se.getDraft({ subject: O.subject, builderKey: s.builderKey });
|
|
3911
|
+
return o != null && o.inheritMode ? o.inheritMode : ce.inheritMode(O, s);
|
|
3912
3912
|
}
|
|
3913
|
-
function ve(
|
|
3913
|
+
function ve(O, s, o) {
|
|
3914
3914
|
const _ = se.getDraft({
|
|
3915
|
-
subject:
|
|
3915
|
+
subject: O.subject,
|
|
3916
3916
|
builderKey: s.builderKey
|
|
3917
3917
|
});
|
|
3918
3918
|
se.setDraft(
|
|
3919
|
-
{ subject:
|
|
3919
|
+
{ subject: O.subject, builderKey: s.builderKey },
|
|
3920
3920
|
{
|
|
3921
3921
|
formValue: o,
|
|
3922
|
-
inheritMode: (_ == null ? void 0 : _.inheritMode) ?? K(
|
|
3922
|
+
inheritMode: (_ == null ? void 0 : _.inheritMode) ?? K(O, s)
|
|
3923
3923
|
}
|
|
3924
3924
|
);
|
|
3925
3925
|
}
|
|
3926
|
-
function
|
|
3926
|
+
function $e(O, s, o) {
|
|
3927
3927
|
const _ = se.getDraft({
|
|
3928
|
-
subject:
|
|
3928
|
+
subject: O.subject,
|
|
3929
3929
|
builderKey: s.builderKey
|
|
3930
|
-
}),
|
|
3930
|
+
}), R = O.sections.find((M) => M.builder.builderKey === s.builderKey);
|
|
3931
3931
|
se.setDraft(
|
|
3932
|
-
{ subject:
|
|
3932
|
+
{ subject: O.subject, builderKey: s.builderKey },
|
|
3933
3933
|
{
|
|
3934
|
-
formValue: (_ == null ? void 0 : _.formValue) ?? (
|
|
3934
|
+
formValue: (_ == null ? void 0 : _.formValue) ?? (R == null ? void 0 : R.formValue),
|
|
3935
3935
|
inheritMode: o
|
|
3936
3936
|
}
|
|
3937
3937
|
);
|
|
3938
3938
|
}
|
|
3939
|
-
function Ke(
|
|
3940
|
-
return se.hasDraftsForSubject(
|
|
3939
|
+
function Ke(O) {
|
|
3940
|
+
return se.hasDraftsForSubject(O);
|
|
3941
3941
|
}
|
|
3942
|
-
function
|
|
3943
|
-
const o =
|
|
3944
|
-
const
|
|
3945
|
-
subject:
|
|
3942
|
+
function xe(O, s) {
|
|
3943
|
+
const o = O.sections.flatMap((_) => {
|
|
3944
|
+
const R = se.getDraft({
|
|
3945
|
+
subject: O.subject,
|
|
3946
3946
|
builderKey: _.builder.builderKey
|
|
3947
3947
|
});
|
|
3948
|
-
return
|
|
3948
|
+
return R ? [{ builder: _.builder, form: R.formValue, mode: R.inheritMode ?? "custom" }] : [];
|
|
3949
3949
|
});
|
|
3950
|
-
ce.applyConditionDrafts(
|
|
3950
|
+
ce.applyConditionDrafts(O, o, {
|
|
3951
3951
|
afterCommit: () => {
|
|
3952
|
-
se.clearDraftsForSubject(
|
|
3952
|
+
se.clearDraftsForSubject(O.subject), s();
|
|
3953
3953
|
},
|
|
3954
|
-
onOverridesConflict:
|
|
3954
|
+
onOverridesConflict: Be(O).onOverridesConflict
|
|
3955
3955
|
});
|
|
3956
3956
|
}
|
|
3957
|
-
function Fe(
|
|
3958
|
-
return
|
|
3957
|
+
function Fe(O) {
|
|
3958
|
+
return O.sections.some((s) => ce.shouldShowInheritToggle(O, s.builder) ? ce.inheritMode(O, s.builder) === "custom" : Object.keys(s.builder.toCondition(s.formValue)).length > 0);
|
|
3959
3959
|
}
|
|
3960
|
-
let
|
|
3961
|
-
function
|
|
3960
|
+
let Ne = !1;
|
|
3961
|
+
function Be(O, s = {}) {
|
|
3962
3962
|
return {
|
|
3963
3963
|
...s,
|
|
3964
3964
|
onOverridesConflict: ({ override: o, keep: _ }) => {
|
|
3965
|
-
|
|
3965
|
+
Ne || (Ne = !0, u.open({
|
|
3966
3966
|
title: a("team.memberForm.permissions.conditionCover.confirmTitle"),
|
|
3967
3967
|
message: a("team.memberForm.permissions.conditionCover.confirmMessage", {
|
|
3968
|
-
cover:
|
|
3968
|
+
cover: O.label
|
|
3969
3969
|
}),
|
|
3970
3970
|
minWidth: i.value.lg ? 588 : 0,
|
|
3971
3971
|
zIndex: 200,
|
|
@@ -3978,42 +3978,42 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3978
3978
|
close: !1
|
|
3979
3979
|
}
|
|
3980
3980
|
}).onPrimary(() => {
|
|
3981
|
-
o(),
|
|
3981
|
+
o(), Ne = !1, u.close();
|
|
3982
3982
|
}).onSecondary(() => {
|
|
3983
|
-
_(),
|
|
3983
|
+
_(), Ne = !1, u.close();
|
|
3984
3984
|
}).onClose(() => {
|
|
3985
|
-
|
|
3985
|
+
Ne = !1;
|
|
3986
3986
|
}));
|
|
3987
3987
|
}
|
|
3988
3988
|
};
|
|
3989
3989
|
}
|
|
3990
|
-
return
|
|
3990
|
+
return Dt(
|
|
3991
3991
|
n,
|
|
3992
|
-
(
|
|
3993
|
-
l("permissionChanged",
|
|
3992
|
+
(O) => {
|
|
3993
|
+
l("permissionChanged", O);
|
|
3994
3994
|
},
|
|
3995
3995
|
{ deep: !0 }
|
|
3996
|
-
), (
|
|
3997
|
-
const o =
|
|
3998
|
-
return
|
|
3996
|
+
), (O, s) => {
|
|
3997
|
+
const o = De("FmIcon"), _ = De("FmBottomSheet"), R = De("FmPopover");
|
|
3998
|
+
return $(), ie("div", _a, [
|
|
3999
3999
|
ae("div", va, [
|
|
4000
4000
|
ue(Ho, {
|
|
4001
4001
|
"model-value": Y.value,
|
|
4002
4002
|
"excluded-subjects": c,
|
|
4003
|
-
"additional-permissions": H(
|
|
4003
|
+
"additional-permissions": H(T),
|
|
4004
4004
|
"onUpdate:modelValue": ne
|
|
4005
4005
|
}, et({ _: 2 }, [
|
|
4006
|
-
|
|
4006
|
+
Ee(w.value, (M) => ({
|
|
4007
4007
|
name: `checkbox-${M.id}-append`,
|
|
4008
|
-
fn:
|
|
4008
|
+
fn: me(() => [
|
|
4009
4009
|
ue(pt, { item: M }, null, 8, ["item"])
|
|
4010
4010
|
])
|
|
4011
4011
|
})),
|
|
4012
|
-
|
|
4012
|
+
Ee(Q.value, (M) => ({
|
|
4013
4013
|
name: `checkbox-${M}-icon`,
|
|
4014
|
-
fn:
|
|
4015
|
-
p && q(M, P.label) ? (
|
|
4016
|
-
g.value ? (
|
|
4014
|
+
fn: me(({ option: P, isEffectiveSelected: p }) => [
|
|
4015
|
+
p && q(M, P.label) ? ($(), ie(ke, { key: 0 }, [
|
|
4016
|
+
g.value ? ($(), Ce(_, {
|
|
4017
4017
|
key: 0,
|
|
4018
4018
|
"model-value": fe.value === M,
|
|
4019
4019
|
header: H(a)("team.memberForm.permissions.conditionTitle", {
|
|
@@ -4022,11 +4022,11 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4022
4022
|
"dismiss-away": "",
|
|
4023
4023
|
"z-index": 100,
|
|
4024
4024
|
class: "h-5 flex items-center",
|
|
4025
|
-
"onUpdate:modelValue": (
|
|
4026
|
-
fe.value =
|
|
4025
|
+
"onUpdate:modelValue": (E) => {
|
|
4026
|
+
fe.value = E ? M : null, E || H(se).clearDraftsForSubject(M);
|
|
4027
4027
|
}
|
|
4028
4028
|
}, {
|
|
4029
|
-
"bottom-sheet-button":
|
|
4029
|
+
"bottom-sheet-button": me(() => [
|
|
4030
4030
|
ae("div", pa, [
|
|
4031
4031
|
ue(o, {
|
|
4032
4032
|
name: "settings",
|
|
@@ -4038,35 +4038,35 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4038
4038
|
}, null, 8, ["class"])
|
|
4039
4039
|
])
|
|
4040
4040
|
]),
|
|
4041
|
-
default:
|
|
4041
|
+
default: me(() => [
|
|
4042
4042
|
ue(Fn, {
|
|
4043
4043
|
entry: q(M, P.label),
|
|
4044
|
-
builders: q(M, P.label).sections.map((
|
|
4044
|
+
builders: q(M, P.label).sections.map((E) => E.builder),
|
|
4045
4045
|
subject: M,
|
|
4046
4046
|
"time-zone": F.value,
|
|
4047
4047
|
"cover-override": H(ce),
|
|
4048
|
-
"inherit-mode-for": (
|
|
4049
|
-
"form-value-for": (
|
|
4048
|
+
"inherit-mode-for": (E) => K(q(M, P.label), E),
|
|
4049
|
+
"form-value-for": (E) => we(q(M, P.label), E),
|
|
4050
4050
|
"has-changes": Ke(M),
|
|
4051
4051
|
disable: e.disable,
|
|
4052
4052
|
"full-width": !0,
|
|
4053
|
-
onUpdateInheritMode: ({ builder:
|
|
4054
|
-
onUpdateForm: ({ builder:
|
|
4055
|
-
onApply: (
|
|
4053
|
+
onUpdateInheritMode: ({ builder: E, mode: J }) => $e(q(M, P.label), E, J),
|
|
4054
|
+
onUpdateForm: ({ builder: E, form: J }) => ve(q(M, P.label), E, J),
|
|
4055
|
+
onApply: (E) => 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"])) : ($(), Ce(R, {
|
|
4060
4060
|
key: 1,
|
|
4061
4061
|
disabled: e.disable,
|
|
4062
4062
|
"z-index": 100,
|
|
4063
|
-
"exclude-el-from-click-outside": [
|
|
4063
|
+
"exclude-el-from-click-outside": [ya],
|
|
4064
4064
|
class: "h-5 flex items-center",
|
|
4065
|
-
onPopoverChanged: (
|
|
4066
|
-
|
|
4065
|
+
onPopoverChanged: (E) => {
|
|
4066
|
+
E || H(se).clearDraftsForSubject(M);
|
|
4067
4067
|
}
|
|
4068
4068
|
}, {
|
|
4069
|
-
"popover-button":
|
|
4069
|
+
"popover-button": me(() => [
|
|
4070
4070
|
ae("div", ha, [
|
|
4071
4071
|
ue(o, {
|
|
4072
4072
|
name: "settings",
|
|
@@ -4078,32 +4078,32 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4078
4078
|
}, null, 8, ["class"])
|
|
4079
4079
|
])
|
|
4080
4080
|
]),
|
|
4081
|
-
default:
|
|
4081
|
+
default: me(({ hide: E }) => [
|
|
4082
4082
|
ue(Fn, {
|
|
4083
4083
|
entry: q(M, P.label),
|
|
4084
|
-
builders: q(M, P.label).sections.map((
|
|
4084
|
+
builders: q(M, P.label).sections.map((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": (
|
|
4091
|
+
"inherit-mode-for": (J) => K(q(M, P.label), J),
|
|
4092
|
+
"form-value-for": (J) => we(q(M, P.label), J),
|
|
4093
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 }) => ve(q(M, P.label), J, le),
|
|
4101
|
+
onApply: (J) => xe(q(M, P.label), E)
|
|
4102
4102
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "title", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4103
4103
|
]),
|
|
4104
4104
|
_: 2
|
|
4105
4105
|
}, 1032, ["disabled", "exclude-el-from-click-outside", "onPopoverChanged"]))
|
|
4106
|
-
], 64)) : (
|
|
4106
|
+
], 64)) : ($(), Ce(o, {
|
|
4107
4107
|
key: 1,
|
|
4108
4108
|
name: "settings",
|
|
4109
4109
|
size: "sm",
|
|
@@ -4114,45 +4114,45 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4114
4114
|
]), 1032, ["model-value", "additional-permissions"])
|
|
4115
4115
|
]),
|
|
4116
4116
|
ae("div", ba, [
|
|
4117
|
-
ue(
|
|
4117
|
+
ue(wn, {
|
|
4118
4118
|
"model-value": b.value,
|
|
4119
4119
|
options: v.value,
|
|
4120
4120
|
context: H(a)("team.labels.warehouse"),
|
|
4121
|
-
"onUpdate:modelValue":
|
|
4121
|
+
"onUpdate:modelValue": k
|
|
4122
4122
|
}, et({ _: 2 }, [
|
|
4123
|
-
|
|
4123
|
+
Ee(f.value, (M) => ({
|
|
4124
4124
|
name: `checkbox-${M.id}-append`,
|
|
4125
|
-
fn:
|
|
4125
|
+
fn: me(() => [
|
|
4126
4126
|
ue(pt, { item: M }, null, 8, ["item"])
|
|
4127
4127
|
])
|
|
4128
4128
|
}))
|
|
4129
4129
|
]), 1032, ["model-value", "options", "context"])
|
|
4130
4130
|
]),
|
|
4131
4131
|
ae("div", ga, [
|
|
4132
|
-
ue(
|
|
4132
|
+
ue(wn, {
|
|
4133
4133
|
"model-value": U.value,
|
|
4134
|
-
options:
|
|
4134
|
+
options: d.value,
|
|
4135
4135
|
context: H(a)("team.labels.restaurant"),
|
|
4136
|
-
"onUpdate:modelValue":
|
|
4136
|
+
"onUpdate:modelValue": x
|
|
4137
4137
|
}, et({ _: 2 }, [
|
|
4138
|
-
|
|
4138
|
+
Ee(h.value, (M) => ({
|
|
4139
4139
|
name: `checkbox-${M.id}-append`,
|
|
4140
|
-
fn:
|
|
4140
|
+
fn: me(() => [
|
|
4141
4141
|
ue(pt, { item: M }, null, 8, ["item"])
|
|
4142
4142
|
])
|
|
4143
4143
|
}))
|
|
4144
4144
|
]), 1032, ["model-value", "options", "context"])
|
|
4145
4145
|
]),
|
|
4146
|
-
ae("div",
|
|
4146
|
+
ae("div", Ia, [
|
|
4147
4147
|
ue(ra, {
|
|
4148
|
-
roles: H(
|
|
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
|
+
Ee(S.value, (M) => ({
|
|
4154
4154
|
name: `checkbox-${M.id}-append`,
|
|
4155
|
-
fn:
|
|
4155
|
+
fn: me(() => [
|
|
4156
4156
|
ue(pt, { item: M }, null, 8, ["item"])
|
|
4157
4157
|
])
|
|
4158
4158
|
}))
|
|
@@ -4163,5 +4163,5 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4163
4163
|
}
|
|
4164
4164
|
});
|
|
4165
4165
|
export {
|
|
4166
|
-
|
|
4166
|
+
wa as _
|
|
4167
4167
|
};
|