@feedmepos/mf-hrm-portal 2.2.2-dev.3 → 2.2.2-dev.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ApprovalCodeList-BjRRA_sc.js → ApprovalCodeList-Dn8R6jgC.js} +2 -2
- package/dist/{AuditLogList-B8kE39lt.js → AuditLogList-BdWELtlp.js} +3 -3
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Ba8w1BwT.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DbUdX_Qk.js} +2 -2
- package/dist/{EmployeeList-7e069yPp.js → EmployeeList-Br4a6imR.js} +4 -4
- package/dist/{GrantUserList-CTYamty5.js → GrantUserList-YpLuH3il.js} +3 -3
- package/dist/{Main-DcPLufZ5.js → Main-DPoPfzcK.js} +2 -2
- package/dist/{Main-DfeNUiyv.js → Main-DWv0oSH4.js} +9 -9
- package/dist/{Main-B-3s0bf_.js → Main-eBobrTdz.js} +5 -5
- package/dist/{PermissionSetList-CNujxzHF.js → PermissionSetList-ttA1JLVy.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Cq9xp1TW.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DQa3GK8B.js} +625 -625
- package/dist/{RoleList-YaY7Np_9.js → RoleList-B790AV-j.js} +7 -7
- package/dist/{TeamMemberList-B-I3KjnH.js → TeamMemberList-B-vgWJw4.js} +6 -6
- package/dist/{TimesheetList-BTsvEiD6.js → TimesheetList-C05Wl5Gw.js} +5 -5
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-CJYgeUxK.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-CDxi-Gdu.js} +2 -2
- package/dist/{app-C3u5orep.js → app-DzZ_hyHn.js} +4 -4
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-B-sLuqme.js → dayjs.min-B-hCRyX9.js} +1 -1
- package/dist/{employee-DaduVi88.js → employee-C2s088Kk.js} +3 -3
- package/dist/{iteration-Cii8ZeX3.js → iteration-C2OwvCva.js} +1 -1
- package/dist/{lodash-BifZ3B1q.js → lodash-BQEjwNx9.js} +1 -1
- package/dist/{role-tzqciGzt.js → role-Z9s80hOy.js} +1 -1
- package/dist/{rule-GhzA0R9H.js → rule-DpoKkvLa.js} +2 -2
- package/dist/{useReportPermissions-BRLy3D7v.js → useReportPermissions-VnFzkyAH.js} +3 -3
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { getCurrentInstance as Bt, inject as ur, ref as rt, shallowRef as dr, computed as z, watch as wt, onMounted as
|
|
1
|
+
import { getCurrentInstance as Bt, inject as ur, ref as rt, shallowRef as dr, computed as z, watch as wt, onMounted as Vn, onUnmounted as mr, defineComponent as Le, h as Wn, createVNode as ue, Text as fr, Fragment as ke, resolveComponent as we, createBlock as Ne, openBlock as J, withCtx as de, 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 Gn, N as Yn, i as Ir, P as yr, y as
|
|
6
|
-
import { _ as Xt, a as Cr, b as nn, u as Tr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { u as Or, b as Sr, P as Zn, S as
|
|
8
|
-
import { c as It } from "./iteration-
|
|
9
|
-
import { g as Lr, b as
|
|
10
|
-
import { u as kr } from "./role-
|
|
5
|
+
import { p as Gn, N as Yn, i as Ir, P as yr, y as Rt, l as Er, k as Nr } from "./rule-DpoKkvLa.js";
|
|
6
|
+
import { _ as Xt, a as Cr, b as nn, u as Tr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DbUdX_Qk.js";
|
|
7
|
+
import { u as Or, b as Sr, P as Zn, S as Dt, A as tt, e as he, k as rn, d as Rr } from "./app-DzZ_hyHn.js";
|
|
8
|
+
import { c as It } from "./iteration-C2OwvCva.js";
|
|
9
|
+
import { g as Lr, b as Ar } from "./restaurant-BTpBmfBV.js";
|
|
10
|
+
import { u as kr } from "./role-Z9s80hOy.js";
|
|
11
11
|
function Bn(e, t) {
|
|
12
12
|
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
13
13
|
}
|
|
@@ -30,17 +30,17 @@ function sn(e, t) {
|
|
|
30
30
|
* (c) 2024 kazuya kawaguchi
|
|
31
31
|
* Released under the MIT License.
|
|
32
32
|
*/
|
|
33
|
-
const on = typeof window < "u", $e = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
33
|
+
const on = typeof window < "u", $e = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Dr = (e, t, n) => Fr({ l: e, k: t, s: n }), Fr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ge = (e) => typeof e == "number" && isFinite(e), Pr = (e) => Ht(e) === "[object Date]", Et = (e) => Ht(e) === "[object RegExp]", Ct = (e) => ee(e) && Object.keys(e).length === 0, Ie = Object.assign, jr = Object.create, oe = (e = null) => jr(e);
|
|
34
34
|
let an;
|
|
35
35
|
const Xe = () => an || (an = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : oe());
|
|
36
36
|
function ln(e) {
|
|
37
37
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
38
38
|
}
|
|
39
39
|
const Ur = Object.prototype.hasOwnProperty;
|
|
40
|
-
function
|
|
40
|
+
function Re(e, t) {
|
|
41
41
|
return Ur.call(e, t);
|
|
42
42
|
}
|
|
43
|
-
const be = Array.isArray, me = (e) => typeof e == "function", Y = (e) => typeof e == "string",
|
|
43
|
+
const be = Array.isArray, me = (e) => typeof e == "function", Y = (e) => typeof e == "string", pe = (e) => typeof e == "boolean", te = (e) => e !== null && typeof e == "object", xr = (e) => te(e) && me(e.then) && me(e.catch), Xn = Object.prototype.toString, Ht = (e) => Xn.call(e), ee = (e) => Ht(e) === "[object Object]", Vr = (e) => e == null ? "" : be(e) || ee(e) && e.toString === Xn ? JSON.stringify(e, null, 2) : String(e);
|
|
44
44
|
function $t(e, t = "") {
|
|
45
45
|
return e.reduce((n, r, l) => l === 0 ? n + r : n + t + r, "");
|
|
46
46
|
}
|
|
@@ -62,7 +62,7 @@ function yt(e, t) {
|
|
|
62
62
|
function Gr(e, t, n) {
|
|
63
63
|
return { line: e, column: t, offset: n };
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Ft(e, t, n) {
|
|
66
66
|
return { start: e, end: t };
|
|
67
67
|
}
|
|
68
68
|
const re = {
|
|
@@ -95,7 +95,7 @@ const Pe = " ", Br = "\r", ye = `
|
|
|
95
95
|
function $r(e) {
|
|
96
96
|
const t = e;
|
|
97
97
|
let n = 0, r = 1, l = 1, a = 0;
|
|
98
|
-
const d = (
|
|
98
|
+
const d = (v) => t[v] === Br && t[v + 1] === ye, u = (v) => t[v] === ye, i = (v) => t[v] === Hr, g = (v) => t[v] === Xr, y = (v) => d(v) || u(v) || i(v) || g(v), T = () => n, N = () => r, F = () => l, w = () => a, L = (v) => d(v) || i(v) || g(v) ? ye : t[v], D = () => L(n), f = () => L(n + a);
|
|
99
99
|
function h() {
|
|
100
100
|
return a = 0, y(n) && (r++, l = 0), d(n) && n++, n++, l++, t[n];
|
|
101
101
|
}
|
|
@@ -105,22 +105,22 @@ function $r(e) {
|
|
|
105
105
|
function c() {
|
|
106
106
|
n = 0, r = 1, l = 1, a = 0;
|
|
107
107
|
}
|
|
108
|
-
function b(
|
|
109
|
-
a =
|
|
108
|
+
function b(v = 0) {
|
|
109
|
+
a = v;
|
|
110
110
|
}
|
|
111
111
|
function I() {
|
|
112
|
-
const
|
|
113
|
-
for (;
|
|
112
|
+
const v = n + a;
|
|
113
|
+
for (; v !== n; )
|
|
114
114
|
h();
|
|
115
115
|
a = 0;
|
|
116
116
|
}
|
|
117
117
|
return {
|
|
118
118
|
index: T,
|
|
119
119
|
line: N,
|
|
120
|
-
column:
|
|
120
|
+
column: F,
|
|
121
121
|
peekOffset: w,
|
|
122
122
|
charAt: L,
|
|
123
|
-
currentChar:
|
|
123
|
+
currentChar: D,
|
|
124
124
|
currentPeek: f,
|
|
125
125
|
next: h,
|
|
126
126
|
peek: S,
|
|
@@ -129,7 +129,7 @@ function $r(e) {
|
|
|
129
129
|
skipToPeek: I
|
|
130
130
|
};
|
|
131
131
|
}
|
|
132
|
-
const
|
|
132
|
+
const Ve = void 0, Jr = ".", cn = "'", Kr = "tokenizer";
|
|
133
133
|
function zr(e, t = {}) {
|
|
134
134
|
const n = t.location !== !1, r = $r(e), l = () => r.index(), a = () => Gr(r.line(), r.column(), r.index()), d = a(), u = l(), i = {
|
|
135
135
|
currentType: 13,
|
|
@@ -144,22 +144,22 @@ function zr(e, t = {}) {
|
|
|
144
144
|
inLinked: !1,
|
|
145
145
|
text: ""
|
|
146
146
|
}, g = () => i, { onError: y } = t;
|
|
147
|
-
function T(s, o, _, ...
|
|
147
|
+
function T(s, o, _, ...A) {
|
|
148
148
|
const M = g();
|
|
149
149
|
if (o.column += _, o.offset += _, y) {
|
|
150
|
-
const P = n ?
|
|
150
|
+
const P = n ? Ft(M.startLoc, o) : null, p = Tt(s, P, {
|
|
151
151
|
domain: Kr,
|
|
152
|
-
args:
|
|
152
|
+
args: A
|
|
153
153
|
});
|
|
154
|
-
y(
|
|
154
|
+
y(p);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
function N(s, o, _) {
|
|
158
158
|
s.endLoc = a(), s.currentType = o;
|
|
159
|
-
const
|
|
160
|
-
return n && (
|
|
159
|
+
const A = { type: o };
|
|
160
|
+
return n && (A.loc = Ft(s.startLoc, s.endLoc)), _ != null && (A.value = _), A;
|
|
161
161
|
}
|
|
162
|
-
const
|
|
162
|
+
const F = (s) => N(
|
|
163
163
|
s,
|
|
164
164
|
13
|
|
165
165
|
/* TokenTypes.EOF */
|
|
@@ -173,12 +173,12 @@ function zr(e, t = {}) {
|
|
|
173
173
|
o += s.currentPeek(), s.peek();
|
|
174
174
|
return o;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function D(s) {
|
|
177
177
|
const o = L(s);
|
|
178
178
|
return s.skipToPeek(), o;
|
|
179
179
|
}
|
|
180
180
|
function f(s) {
|
|
181
|
-
if (s ===
|
|
181
|
+
if (s === Ve)
|
|
182
182
|
return !1;
|
|
183
183
|
const o = s.charCodeAt(0);
|
|
184
184
|
return o >= 97 && o <= 122 || // a-z
|
|
@@ -186,7 +186,7 @@ function zr(e, t = {}) {
|
|
|
186
186
|
o === 95;
|
|
187
187
|
}
|
|
188
188
|
function h(s) {
|
|
189
|
-
if (s ===
|
|
189
|
+
if (s === Ve)
|
|
190
190
|
return !1;
|
|
191
191
|
const o = s.charCodeAt(0);
|
|
192
192
|
return o >= 48 && o <= 57;
|
|
@@ -196,15 +196,15 @@ function zr(e, t = {}) {
|
|
|
196
196
|
if (_ !== 2)
|
|
197
197
|
return !1;
|
|
198
198
|
L(s);
|
|
199
|
-
const
|
|
200
|
-
return s.resetPeek(),
|
|
199
|
+
const A = f(s.currentPeek());
|
|
200
|
+
return s.resetPeek(), A;
|
|
201
201
|
}
|
|
202
202
|
function c(s, o) {
|
|
203
203
|
const { currentType: _ } = o;
|
|
204
204
|
if (_ !== 2)
|
|
205
205
|
return !1;
|
|
206
206
|
L(s);
|
|
207
|
-
const
|
|
207
|
+
const A = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), M = h(A);
|
|
208
208
|
return s.resetPeek(), M;
|
|
209
209
|
}
|
|
210
210
|
function b(s, o) {
|
|
@@ -212,41 +212,41 @@ function zr(e, t = {}) {
|
|
|
212
212
|
if (_ !== 2)
|
|
213
213
|
return !1;
|
|
214
214
|
L(s);
|
|
215
|
-
const
|
|
216
|
-
return s.resetPeek(),
|
|
215
|
+
const A = s.currentPeek() === cn;
|
|
216
|
+
return s.resetPeek(), A;
|
|
217
217
|
}
|
|
218
218
|
function I(s, o) {
|
|
219
219
|
const { currentType: _ } = o;
|
|
220
220
|
if (_ !== 7)
|
|
221
221
|
return !1;
|
|
222
222
|
L(s);
|
|
223
|
-
const
|
|
224
|
-
return s.resetPeek(),
|
|
223
|
+
const A = s.currentPeek() === ".";
|
|
224
|
+
return s.resetPeek(), A;
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function v(s, o) {
|
|
227
227
|
const { currentType: _ } = o;
|
|
228
228
|
if (_ !== 8)
|
|
229
229
|
return !1;
|
|
230
230
|
L(s);
|
|
231
|
-
const
|
|
232
|
-
return s.resetPeek(),
|
|
231
|
+
const A = f(s.currentPeek());
|
|
232
|
+
return s.resetPeek(), A;
|
|
233
233
|
}
|
|
234
234
|
function k(s, o) {
|
|
235
235
|
const { currentType: _ } = o;
|
|
236
236
|
if (!(_ === 7 || _ === 11))
|
|
237
237
|
return !1;
|
|
238
238
|
L(s);
|
|
239
|
-
const
|
|
240
|
-
return s.resetPeek(),
|
|
239
|
+
const A = s.currentPeek() === ":";
|
|
240
|
+
return s.resetPeek(), A;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function R(s, o) {
|
|
243
243
|
const { currentType: _ } = o;
|
|
244
244
|
if (_ !== 9)
|
|
245
245
|
return !1;
|
|
246
|
-
const
|
|
246
|
+
const A = () => {
|
|
247
247
|
const P = s.currentPeek();
|
|
248
|
-
return P === "{" ? f(s.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P === ye ? (s.peek(),
|
|
249
|
-
}, M =
|
|
248
|
+
return P === "{" ? f(s.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P === ye ? (s.peek(), A()) : V(s, !1);
|
|
249
|
+
}, M = A();
|
|
250
250
|
return s.resetPeek(), M;
|
|
251
251
|
}
|
|
252
252
|
function X(s) {
|
|
@@ -254,16 +254,16 @@ function zr(e, t = {}) {
|
|
|
254
254
|
const o = s.currentPeek() === "|";
|
|
255
255
|
return s.resetPeek(), o;
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function V(s, o = !0) {
|
|
258
258
|
const _ = (M = !1, P = "") => {
|
|
259
|
-
const
|
|
260
|
-
return
|
|
261
|
-
},
|
|
262
|
-
return o && s.resetPeek(),
|
|
259
|
+
const p = s.currentPeek();
|
|
260
|
+
return p === "{" || p === "@" || !p ? M : p === "|" ? !(P === Pe || P === ye) : p === Pe ? (s.peek(), _(!0, Pe)) : p === ye ? (s.peek(), _(!0, ye)) : !0;
|
|
261
|
+
}, A = _();
|
|
262
|
+
return o && s.resetPeek(), A;
|
|
263
263
|
}
|
|
264
264
|
function m(s, o) {
|
|
265
265
|
const _ = s.currentChar();
|
|
266
|
-
return _ ===
|
|
266
|
+
return _ === Ve ? Ve : o(_) ? (s.next(), _) : null;
|
|
267
267
|
}
|
|
268
268
|
function C(s) {
|
|
269
269
|
const o = s.charCodeAt(0);
|
|
@@ -276,7 +276,7 @@ function zr(e, t = {}) {
|
|
|
276
276
|
function U(s) {
|
|
277
277
|
return m(s, C);
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function x(s) {
|
|
280
280
|
const o = s.charCodeAt(0);
|
|
281
281
|
return o >= 97 && o <= 122 || // a-z
|
|
282
282
|
o >= 65 && o <= 90 || // A-Z
|
|
@@ -286,7 +286,7 @@ function zr(e, t = {}) {
|
|
|
286
286
|
o === 45;
|
|
287
287
|
}
|
|
288
288
|
function j(s) {
|
|
289
|
-
return m(s,
|
|
289
|
+
return m(s, x);
|
|
290
290
|
}
|
|
291
291
|
function G(s) {
|
|
292
292
|
const o = s.charCodeAt(0);
|
|
@@ -317,7 +317,7 @@ function zr(e, t = {}) {
|
|
|
317
317
|
if (_ === "{" || _ === "}" || _ === "@" || _ === "|" || !_)
|
|
318
318
|
break;
|
|
319
319
|
if (_ === Pe || _ === ye)
|
|
320
|
-
if (
|
|
320
|
+
if (V(s))
|
|
321
321
|
o += _, s.next();
|
|
322
322
|
else {
|
|
323
323
|
if (X(s))
|
|
@@ -330,27 +330,27 @@ function zr(e, t = {}) {
|
|
|
330
330
|
return o;
|
|
331
331
|
}
|
|
332
332
|
function _e(s) {
|
|
333
|
-
|
|
333
|
+
D(s);
|
|
334
334
|
let o = "", _ = "";
|
|
335
335
|
for (; o = j(s); )
|
|
336
336
|
_ += o;
|
|
337
|
-
return s.currentChar() ===
|
|
337
|
+
return s.currentChar() === Ve && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _;
|
|
338
338
|
}
|
|
339
339
|
function ce(s) {
|
|
340
|
-
|
|
340
|
+
D(s);
|
|
341
341
|
let o = "";
|
|
342
|
-
return s.currentChar() === "-" ? (s.next(), o += `-${ne(s)}`) : o += ne(s), s.currentChar() ===
|
|
342
|
+
return s.currentChar() === "-" ? (s.next(), o += `-${ne(s)}`) : o += ne(s), s.currentChar() === Ve && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
343
343
|
}
|
|
344
344
|
function se(s) {
|
|
345
345
|
return s !== cn && s !== ye;
|
|
346
346
|
}
|
|
347
347
|
function fe(s) {
|
|
348
|
-
|
|
348
|
+
D(s), w(s, "'");
|
|
349
349
|
let o = "", _ = "";
|
|
350
350
|
for (; o = m(s, se); )
|
|
351
351
|
o === "\\" ? _ += q(s) : _ += o;
|
|
352
|
-
const
|
|
353
|
-
return
|
|
352
|
+
const A = s.currentChar();
|
|
353
|
+
return A === ye || A === Ve ? (T(re.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), A === ye && (s.next(), w(s, "'")), _) : (w(s, "'"), _);
|
|
354
354
|
}
|
|
355
355
|
function q(s) {
|
|
356
356
|
const o = s.currentChar();
|
|
@@ -359,31 +359,31 @@ function zr(e, t = {}) {
|
|
|
359
359
|
case "'":
|
|
360
360
|
return s.next(), `\\${o}`;
|
|
361
361
|
case "u":
|
|
362
|
-
return
|
|
362
|
+
return De(s, o, 4);
|
|
363
363
|
case "U":
|
|
364
|
-
return
|
|
364
|
+
return De(s, o, 6);
|
|
365
365
|
default:
|
|
366
366
|
return T(re.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function De(s, o, _) {
|
|
370
370
|
w(s, o);
|
|
371
|
-
let
|
|
371
|
+
let A = "";
|
|
372
372
|
for (let M = 0; M < _; M++) {
|
|
373
373
|
const P = B(s);
|
|
374
374
|
if (!P) {
|
|
375
|
-
T(re.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${
|
|
375
|
+
T(re.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${A}${s.currentChar()}`);
|
|
376
376
|
break;
|
|
377
377
|
}
|
|
378
|
-
|
|
378
|
+
A += P;
|
|
379
379
|
}
|
|
380
|
-
return `\\${o}${
|
|
380
|
+
return `\\${o}${A}`;
|
|
381
381
|
}
|
|
382
382
|
function K(s) {
|
|
383
383
|
return s !== "{" && s !== "}" && s !== Pe && s !== ye;
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
|
|
385
|
+
function ve(s) {
|
|
386
|
+
D(s);
|
|
387
387
|
let o = "", _ = "";
|
|
388
388
|
for (; o = m(s, K); )
|
|
389
389
|
_ += o;
|
|
@@ -397,21 +397,21 @@ function zr(e, t = {}) {
|
|
|
397
397
|
}
|
|
398
398
|
function Ke(s) {
|
|
399
399
|
const o = (_) => {
|
|
400
|
-
const
|
|
401
|
-
return
|
|
400
|
+
const A = s.currentChar();
|
|
401
|
+
return A === "{" || A === "@" || A === "|" || A === "(" || A === ")" || !A || A === Pe ? _ : (_ += A, s.next(), o(_));
|
|
402
402
|
};
|
|
403
403
|
return o("");
|
|
404
404
|
}
|
|
405
|
-
function
|
|
406
|
-
|
|
405
|
+
function xe(s) {
|
|
406
|
+
D(s);
|
|
407
407
|
const o = w(
|
|
408
408
|
s,
|
|
409
409
|
"|"
|
|
410
410
|
/* TokenChars.Pipe */
|
|
411
411
|
);
|
|
412
|
-
return
|
|
412
|
+
return D(s), o;
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Fe(s, o) {
|
|
415
415
|
let _ = null;
|
|
416
416
|
switch (s.currentChar()) {
|
|
417
417
|
case "{":
|
|
@@ -420,30 +420,30 @@ function zr(e, t = {}) {
|
|
|
420
420
|
2,
|
|
421
421
|
"{"
|
|
422
422
|
/* TokenChars.BraceLeft */
|
|
423
|
-
),
|
|
423
|
+
), D(s), o.braceNest++, _;
|
|
424
424
|
case "}":
|
|
425
425
|
return o.braceNest > 0 && o.currentType === 2 && T(re.EMPTY_PLACEHOLDER, a(), 0), s.next(), _ = N(
|
|
426
426
|
o,
|
|
427
427
|
3,
|
|
428
428
|
"}"
|
|
429
429
|
/* TokenChars.BraceRight */
|
|
430
|
-
), o.braceNest--, o.braceNest > 0 &&
|
|
430
|
+
), o.braceNest--, o.braceNest > 0 && D(s), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), _;
|
|
431
431
|
case "@":
|
|
432
|
-
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = Ce(s, o) ||
|
|
432
|
+
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = Ce(s, o) || F(o), o.braceNest = 0, _;
|
|
433
433
|
default: {
|
|
434
|
-
let M = !0, P = !0,
|
|
434
|
+
let M = !0, P = !0, p = !0;
|
|
435
435
|
if (X(s))
|
|
436
|
-
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = N(o, 1,
|
|
436
|
+
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = N(o, 1, xe(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
437
437
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
438
438
|
return T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, Ze(s, o);
|
|
439
439
|
if (M = S(s, o))
|
|
440
|
-
return _ = N(o, 4, _e(s)),
|
|
440
|
+
return _ = N(o, 4, _e(s)), D(s), _;
|
|
441
441
|
if (P = c(s, o))
|
|
442
|
-
return _ = N(o, 5, ce(s)),
|
|
443
|
-
if (
|
|
444
|
-
return _ = N(o, 6, fe(s)),
|
|
445
|
-
if (!M && !P && !
|
|
446
|
-
return _ = N(o, 12,
|
|
442
|
+
return _ = N(o, 5, ce(s)), D(s), _;
|
|
443
|
+
if (p = b(s, o))
|
|
444
|
+
return _ = N(o, 6, fe(s)), D(s), _;
|
|
445
|
+
if (!M && !P && !p)
|
|
446
|
+
return _ = N(o, 12, ve(s)), T(re.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, _.value), D(s), _;
|
|
447
447
|
break;
|
|
448
448
|
}
|
|
449
449
|
}
|
|
@@ -451,32 +451,32 @@ function zr(e, t = {}) {
|
|
|
451
451
|
}
|
|
452
452
|
function Ce(s, o) {
|
|
453
453
|
const { currentType: _ } = o;
|
|
454
|
-
let
|
|
454
|
+
let A = null;
|
|
455
455
|
const M = s.currentChar();
|
|
456
456
|
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M === ye || M === Pe) && T(re.INVALID_LINKED_FORMAT, a(), 0), M) {
|
|
457
457
|
case "@":
|
|
458
|
-
return s.next(),
|
|
458
|
+
return s.next(), A = N(
|
|
459
459
|
o,
|
|
460
460
|
7,
|
|
461
461
|
"@"
|
|
462
462
|
/* TokenChars.LinkedAlias */
|
|
463
|
-
), o.inLinked = !0,
|
|
463
|
+
), o.inLinked = !0, A;
|
|
464
464
|
case ".":
|
|
465
|
-
return
|
|
465
|
+
return D(s), s.next(), N(
|
|
466
466
|
o,
|
|
467
467
|
8,
|
|
468
468
|
"."
|
|
469
469
|
/* TokenChars.LinkedDot */
|
|
470
470
|
);
|
|
471
471
|
case ":":
|
|
472
|
-
return
|
|
472
|
+
return D(s), s.next(), N(
|
|
473
473
|
o,
|
|
474
474
|
9,
|
|
475
475
|
":"
|
|
476
476
|
/* TokenChars.LinkedDelimiter */
|
|
477
477
|
);
|
|
478
478
|
default:
|
|
479
|
-
return X(s) ? (
|
|
479
|
+
return X(s) ? (A = N(o, 1, xe(s)), o.braceNest = 0, o.inLinked = !1, A) : I(s, o) || k(s, o) ? (D(s), Ce(s, o)) : v(s, o) ? (D(s), N(o, 11, Je(s))) : R(s, o) ? (D(s), M === "{" ? Fe(s, o) || A : N(o, 10, Ke(s))) : (_ === 7 && T(re.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, Ze(s, o));
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
function Ze(s, o) {
|
|
@@ -485,12 +485,12 @@ function zr(e, t = {}) {
|
|
|
485
485
|
/* TokenTypes.EOF */
|
|
486
486
|
};
|
|
487
487
|
if (o.braceNest > 0)
|
|
488
|
-
return
|
|
488
|
+
return Fe(s, o) || F(o);
|
|
489
489
|
if (o.inLinked)
|
|
490
|
-
return Ce(s, o) ||
|
|
490
|
+
return Ce(s, o) || F(o);
|
|
491
491
|
switch (s.currentChar()) {
|
|
492
492
|
case "{":
|
|
493
|
-
return
|
|
493
|
+
return Fe(s, o) || F(o);
|
|
494
494
|
case "}":
|
|
495
495
|
return T(re.UNBALANCED_CLOSING_BRACE, a(), 0), s.next(), N(
|
|
496
496
|
o,
|
|
@@ -499,11 +499,11 @@ function zr(e, t = {}) {
|
|
|
499
499
|
/* TokenChars.BraceRight */
|
|
500
500
|
);
|
|
501
501
|
case "@":
|
|
502
|
-
return Ce(s, o) ||
|
|
502
|
+
return Ce(s, o) || F(o);
|
|
503
503
|
default: {
|
|
504
504
|
if (X(s))
|
|
505
|
-
return _ = N(o, 1,
|
|
506
|
-
if (
|
|
505
|
+
return _ = N(o, 1, xe(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
506
|
+
if (V(s))
|
|
507
507
|
return N(o, 0, Q(s));
|
|
508
508
|
break;
|
|
509
509
|
}
|
|
@@ -511,8 +511,8 @@ function zr(e, t = {}) {
|
|
|
511
511
|
return _;
|
|
512
512
|
}
|
|
513
513
|
function O() {
|
|
514
|
-
const { currentType: s, offset: o, startLoc: _, endLoc:
|
|
515
|
-
return i.lastType = s, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc =
|
|
514
|
+
const { currentType: s, offset: o, startLoc: _, endLoc: A } = i;
|
|
515
|
+
return i.lastType = s, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc = A, i.offset = l(), i.startLoc = a(), r.currentChar() === Ve ? N(
|
|
516
516
|
i,
|
|
517
517
|
13
|
|
518
518
|
/* TokenTypes.EOF */
|
|
@@ -543,7 +543,7 @@ function ts(e = {}) {
|
|
|
543
543
|
function r(f, h, S, c, ...b) {
|
|
544
544
|
const I = f.currentPosition();
|
|
545
545
|
if (I.offset += c, I.column += c, n) {
|
|
546
|
-
const
|
|
546
|
+
const v = t ? Ft(S, I) : null, k = Tt(h, v, {
|
|
547
547
|
domain: Qr,
|
|
548
548
|
args: b
|
|
549
549
|
});
|
|
@@ -578,7 +578,7 @@ function ts(e = {}) {
|
|
|
578
578
|
return h.type !== 11 ? (r(f, re.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), I.value = "", a(I, c, b), {
|
|
579
579
|
nextConsumeToken: h,
|
|
580
580
|
node: I
|
|
581
|
-
}) : (h.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0,
|
|
581
|
+
}) : (h.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, Ae(h)), I.value = h.value || "", a(I, f.currentOffset(), f.currentPosition()), {
|
|
582
582
|
node: I
|
|
583
583
|
});
|
|
584
584
|
}
|
|
@@ -593,18 +593,18 @@ function ts(e = {}) {
|
|
|
593
593
|
const b = y(f);
|
|
594
594
|
S.modifier = b.node, c = b.nextConsumeToken || f.nextToken();
|
|
595
595
|
}
|
|
596
|
-
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
596
|
+
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(c)), c = f.nextToken(), c.type === 2 && (c = f.nextToken()), c.type) {
|
|
597
597
|
case 10:
|
|
598
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
598
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(c)), S.key = T(f, c.value || "");
|
|
599
599
|
break;
|
|
600
600
|
case 4:
|
|
601
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
601
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(c)), S.key = i(f, c.value || "");
|
|
602
602
|
break;
|
|
603
603
|
case 5:
|
|
604
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
604
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(c)), S.key = u(f, c.value || "");
|
|
605
605
|
break;
|
|
606
606
|
case 6:
|
|
607
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
607
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(c)), S.key = g(f, c.value || "");
|
|
608
608
|
break;
|
|
609
609
|
default: {
|
|
610
610
|
r(f, re.UNEXPECTED_EMPTY_LINKED_KEY, h.lastStartLoc, 0);
|
|
@@ -619,24 +619,24 @@ function ts(e = {}) {
|
|
|
619
619
|
node: S
|
|
620
620
|
};
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function F(f) {
|
|
623
623
|
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);
|
|
624
624
|
b.items = [];
|
|
625
625
|
let I = null;
|
|
626
626
|
do {
|
|
627
|
-
const
|
|
628
|
-
switch (I = null,
|
|
627
|
+
const R = I || f.nextToken();
|
|
628
|
+
switch (I = null, R.type) {
|
|
629
629
|
case 0:
|
|
630
|
-
|
|
630
|
+
R.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(R)), b.items.push(d(f, R.value || ""));
|
|
631
631
|
break;
|
|
632
632
|
case 5:
|
|
633
|
-
|
|
633
|
+
R.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(R)), b.items.push(u(f, R.value || ""));
|
|
634
634
|
break;
|
|
635
635
|
case 4:
|
|
636
|
-
|
|
636
|
+
R.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(R)), b.items.push(i(f, R.value || ""));
|
|
637
637
|
break;
|
|
638
638
|
case 6:
|
|
639
|
-
|
|
639
|
+
R.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(R)), b.items.push(g(f, R.value || ""));
|
|
640
640
|
break;
|
|
641
641
|
case 7: {
|
|
642
642
|
const X = N(f);
|
|
@@ -645,31 +645,31 @@ function ts(e = {}) {
|
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
} while (h.currentType !== 13 && h.currentType !== 1);
|
|
648
|
-
const
|
|
649
|
-
return a(b,
|
|
648
|
+
const v = h.currentType === 1 ? h.lastOffset : f.currentOffset(), k = h.currentType === 1 ? h.lastEndLoc : f.currentPosition();
|
|
649
|
+
return a(b, v, k), b;
|
|
650
650
|
}
|
|
651
651
|
function w(f, h, S, c) {
|
|
652
652
|
const b = f.context();
|
|
653
653
|
let I = c.items.length === 0;
|
|
654
|
-
const
|
|
655
|
-
|
|
654
|
+
const v = l(1, h, S);
|
|
655
|
+
v.cases = [], v.cases.push(c);
|
|
656
656
|
do {
|
|
657
|
-
const k =
|
|
658
|
-
I || (I = k.items.length === 0),
|
|
657
|
+
const k = F(f);
|
|
658
|
+
I || (I = k.items.length === 0), v.cases.push(k);
|
|
659
659
|
} while (b.currentType !== 13);
|
|
660
|
-
return I && r(f, re.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), a(
|
|
660
|
+
return I && r(f, re.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), a(v, f.currentOffset(), f.currentPosition()), v;
|
|
661
661
|
}
|
|
662
662
|
function L(f) {
|
|
663
|
-
const h = f.context(), { offset: S, startLoc: c } = h, b =
|
|
663
|
+
const h = f.context(), { offset: S, startLoc: c } = h, b = F(f);
|
|
664
664
|
return h.currentType === 13 ? b : w(f, S, c, b);
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function D(f) {
|
|
667
667
|
const h = zr(f, Ie({}, e)), S = h.context(), c = l(0, S.offset, S.startLoc);
|
|
668
668
|
return t && c.loc && (c.loc.source = f), c.body = L(h), e.onCacheKey && (c.cacheKey = e.onCacheKey(f)), S.currentType !== 13 && r(h, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, f[S.offset] || ""), a(c, h.currentOffset(), h.currentPosition()), c;
|
|
669
669
|
}
|
|
670
|
-
return { parse:
|
|
670
|
+
return { parse: D };
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function Ae(e) {
|
|
673
673
|
if (e.type === 13)
|
|
674
674
|
return "EOF";
|
|
675
675
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
@@ -822,20 +822,20 @@ function os(e, t) {
|
|
|
822
822
|
};
|
|
823
823
|
a && e.loc && (d.source = e.loc.source);
|
|
824
824
|
const u = () => d;
|
|
825
|
-
function i(L,
|
|
825
|
+
function i(L, D) {
|
|
826
826
|
d.code += L;
|
|
827
827
|
}
|
|
828
|
-
function g(L,
|
|
829
|
-
const f =
|
|
828
|
+
function g(L, D = !0) {
|
|
829
|
+
const f = D ? r : "";
|
|
830
830
|
i(l ? f + " ".repeat(L) : f);
|
|
831
831
|
}
|
|
832
832
|
function y(L = !0) {
|
|
833
|
-
const
|
|
834
|
-
L && g(
|
|
833
|
+
const D = ++d.indentLevel;
|
|
834
|
+
L && g(D);
|
|
835
835
|
}
|
|
836
836
|
function T(L = !0) {
|
|
837
|
-
const
|
|
838
|
-
L && g(
|
|
837
|
+
const D = --d.indentLevel;
|
|
838
|
+
L && g(D);
|
|
839
839
|
}
|
|
840
840
|
function N() {
|
|
841
841
|
g(d.indentLevel);
|
|
@@ -961,7 +961,7 @@ function Lt(e) {
|
|
|
961
961
|
return (n) => _s(n, e);
|
|
962
962
|
}
|
|
963
963
|
function _s(e, t) {
|
|
964
|
-
const n =
|
|
964
|
+
const n = ps(t);
|
|
965
965
|
if (n == null)
|
|
966
966
|
throw it(
|
|
967
967
|
0
|
|
@@ -976,9 +976,9 @@ function _s(e, t) {
|
|
|
976
976
|
} else
|
|
977
977
|
return mn(e, n);
|
|
978
978
|
}
|
|
979
|
-
const
|
|
980
|
-
function
|
|
981
|
-
return Ge(e,
|
|
979
|
+
const vs = ["b", "body"];
|
|
980
|
+
function ps(e) {
|
|
981
|
+
return Ge(e, vs);
|
|
982
982
|
}
|
|
983
983
|
const hs = ["c", "cases"];
|
|
984
984
|
function bs(e) {
|
|
@@ -1010,22 +1010,22 @@ function Pt(e, t) {
|
|
|
1010
1010
|
return _t(t, n);
|
|
1011
1011
|
case 4: {
|
|
1012
1012
|
const r = t;
|
|
1013
|
-
if (
|
|
1013
|
+
if (Re(r, "k") && r.k)
|
|
1014
1014
|
return e.interpolate(e.named(r.k));
|
|
1015
|
-
if (
|
|
1015
|
+
if (Re(r, "key") && r.key)
|
|
1016
1016
|
return e.interpolate(e.named(r.key));
|
|
1017
1017
|
throw it(n);
|
|
1018
1018
|
}
|
|
1019
1019
|
case 5: {
|
|
1020
1020
|
const r = t;
|
|
1021
|
-
if (
|
|
1021
|
+
if (Re(r, "i") && ge(r.i))
|
|
1022
1022
|
return e.interpolate(e.list(r.i));
|
|
1023
|
-
if (
|
|
1023
|
+
if (Re(r, "index") && ge(r.index))
|
|
1024
1024
|
return e.interpolate(e.list(r.index));
|
|
1025
1025
|
throw it(n);
|
|
1026
1026
|
}
|
|
1027
1027
|
case 6: {
|
|
1028
|
-
const r = t, l = Os(r), a =
|
|
1028
|
+
const r = t, l = Os(r), a = Rs(r);
|
|
1029
1029
|
return e.linked(Pt(e, a), l ? Pt(e, l) : void 0, e.type);
|
|
1030
1030
|
}
|
|
1031
1031
|
case 7:
|
|
@@ -1052,7 +1052,7 @@ function Os(e) {
|
|
|
1052
1052
|
return Ge(e, Ts);
|
|
1053
1053
|
}
|
|
1054
1054
|
const Ss = ["k", "key"];
|
|
1055
|
-
function
|
|
1055
|
+
function Rs(e) {
|
|
1056
1056
|
const t = Ge(e, Ss);
|
|
1057
1057
|
if (t)
|
|
1058
1058
|
return t;
|
|
@@ -1064,7 +1064,7 @@ function As(e) {
|
|
|
1064
1064
|
function Ge(e, t, n) {
|
|
1065
1065
|
for (let r = 0; r < t.length; r++) {
|
|
1066
1066
|
const l = t[r];
|
|
1067
|
-
if (
|
|
1067
|
+
if (Re(e, l) && e[l] != null)
|
|
1068
1068
|
return e[l];
|
|
1069
1069
|
}
|
|
1070
1070
|
return n;
|
|
@@ -1073,11 +1073,11 @@ function it(e) {
|
|
|
1073
1073
|
return new Error(`unhandled node type: ${e}`);
|
|
1074
1074
|
}
|
|
1075
1075
|
const Ls = (e) => e;
|
|
1076
|
-
let
|
|
1076
|
+
let vt = oe();
|
|
1077
1077
|
function ot(e) {
|
|
1078
|
-
return te(e) && Kt(e) === 0 && (
|
|
1078
|
+
return te(e) && Kt(e) === 0 && (Re(e, "b") || Re(e, "body"));
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1080
|
+
function As(e, t = {}) {
|
|
1081
1081
|
let n = !1;
|
|
1082
1082
|
const r = t.onError || Zr;
|
|
1083
1083
|
return t.onError = (l) => {
|
|
@@ -1087,21 +1087,21 @@ function Rs(e, t = {}) {
|
|
|
1087
1087
|
// @__NO_SIDE_EFFECTS__
|
|
1088
1088
|
function ks(e, t) {
|
|
1089
1089
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && Y(e)) {
|
|
1090
|
-
|
|
1091
|
-
const r = (t.onCacheKey || Ls)(e), l =
|
|
1090
|
+
pe(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1091
|
+
const r = (t.onCacheKey || Ls)(e), l = vt[r];
|
|
1092
1092
|
if (l)
|
|
1093
1093
|
return l;
|
|
1094
|
-
const { ast: a, detectError: d } =
|
|
1094
|
+
const { ast: a, detectError: d } = As(e, {
|
|
1095
1095
|
...t,
|
|
1096
1096
|
location: ms.env.NODE_ENV !== "production",
|
|
1097
1097
|
jit: !0
|
|
1098
1098
|
}), u = Lt(a);
|
|
1099
|
-
return d ? u :
|
|
1099
|
+
return d ? u : vt[r] = u;
|
|
1100
1100
|
} else {
|
|
1101
1101
|
const n = e.cacheKey;
|
|
1102
1102
|
if (n) {
|
|
1103
|
-
const r =
|
|
1104
|
-
return r || (
|
|
1103
|
+
const r = vt[n];
|
|
1104
|
+
return r || (vt[n] = Lt(e));
|
|
1105
1105
|
} else
|
|
1106
1106
|
return Lt(e);
|
|
1107
1107
|
}
|
|
@@ -1118,8 +1118,8 @@ function ws(e, t, n) {
|
|
|
1118
1118
|
meta: n
|
|
1119
1119
|
});
|
|
1120
1120
|
}
|
|
1121
|
-
const
|
|
1122
|
-
function
|
|
1121
|
+
const Ds = /* @__PURE__ */ Fs("function:translate");
|
|
1122
|
+
function Fs(e) {
|
|
1123
1123
|
return (t) => ct && ct.emit(e, t);
|
|
1124
1124
|
}
|
|
1125
1125
|
const je = {
|
|
@@ -1137,18 +1137,18 @@ function Ue(e) {
|
|
|
1137
1137
|
function zt(e, t) {
|
|
1138
1138
|
return t.locale != null ? fn(t.locale) : fn(e.locale);
|
|
1139
1139
|
}
|
|
1140
|
-
let
|
|
1140
|
+
let At;
|
|
1141
1141
|
function fn(e) {
|
|
1142
1142
|
if (Y(e))
|
|
1143
1143
|
return e;
|
|
1144
1144
|
if (me(e)) {
|
|
1145
|
-
if (e.resolvedOnce &&
|
|
1146
|
-
return
|
|
1145
|
+
if (e.resolvedOnce && At != null)
|
|
1146
|
+
return At;
|
|
1147
1147
|
if (e.constructor.name === "Function") {
|
|
1148
1148
|
const t = e();
|
|
1149
|
-
if (
|
|
1149
|
+
if (xr(t))
|
|
1150
1150
|
throw Ue(je.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1151
|
-
return
|
|
1151
|
+
return At = t;
|
|
1152
1152
|
} else
|
|
1153
1153
|
throw Ue(je.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1154
1154
|
} else
|
|
@@ -1176,7 +1176,7 @@ function Hn(e, t, n) {
|
|
|
1176
1176
|
}
|
|
1177
1177
|
function _n(e, t, n) {
|
|
1178
1178
|
let r = !0;
|
|
1179
|
-
for (let l = 0; l < t.length &&
|
|
1179
|
+
for (let l = 0; l < t.length && pe(r); l++) {
|
|
1180
1180
|
const a = t[l];
|
|
1181
1181
|
Y(a) && (r = Us(e, t[l], n));
|
|
1182
1182
|
}
|
|
@@ -1187,11 +1187,11 @@ function Us(e, t, n) {
|
|
|
1187
1187
|
const l = t.split("-");
|
|
1188
1188
|
do {
|
|
1189
1189
|
const a = l.join("-");
|
|
1190
|
-
r =
|
|
1190
|
+
r = xs(e, a, n), l.splice(-1, 1);
|
|
1191
1191
|
} while (l.length && r === !0);
|
|
1192
1192
|
return r;
|
|
1193
1193
|
}
|
|
1194
|
-
function
|
|
1194
|
+
function xs(e, t, n) {
|
|
1195
1195
|
let r = !1;
|
|
1196
1196
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1197
1197
|
r = t[t.length - 1] !== "!";
|
|
@@ -1361,9 +1361,9 @@ Ye[
|
|
|
1361
1361
|
/* Actions.APPEND */
|
|
1362
1362
|
]
|
|
1363
1363
|
};
|
|
1364
|
-
const
|
|
1364
|
+
const Vs = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1365
1365
|
function Ws(e) {
|
|
1366
|
-
return
|
|
1366
|
+
return Vs.test(e);
|
|
1367
1367
|
}
|
|
1368
1368
|
function Gs(e) {
|
|
1369
1369
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
@@ -1438,7 +1438,7 @@ function Bs(e) {
|
|
|
1438
1438
|
]();
|
|
1439
1439
|
}
|
|
1440
1440
|
};
|
|
1441
|
-
function
|
|
1441
|
+
function F() {
|
|
1442
1442
|
const w = e[n + 1];
|
|
1443
1443
|
if (r === 5 && w === "'" || r === 6 && w === '"')
|
|
1444
1444
|
return n++, u = "\\" + w, N[
|
|
@@ -1447,22 +1447,22 @@ function Bs(e) {
|
|
|
1447
1447
|
](), !0;
|
|
1448
1448
|
}
|
|
1449
1449
|
for (; r !== null; )
|
|
1450
|
-
if (n++, a = e[n], !(a === "\\" &&
|
|
1450
|
+
if (n++, a = e[n], !(a === "\\" && F())) {
|
|
1451
1451
|
if (i = Ys(a), T = Ye[r], g = T[i] || T.l || 8, g === 8 || (r = g[0], g[1] !== void 0 && (y = N[g[1]], y && (u = a, y() === !1))))
|
|
1452
1452
|
return;
|
|
1453
1453
|
if (r === 7)
|
|
1454
1454
|
return t;
|
|
1455
1455
|
}
|
|
1456
1456
|
}
|
|
1457
|
-
const
|
|
1457
|
+
const vn = /* @__PURE__ */ new Map();
|
|
1458
1458
|
function Xs(e, t) {
|
|
1459
1459
|
return te(e) ? e[t] : null;
|
|
1460
1460
|
}
|
|
1461
1461
|
function Hs(e, t) {
|
|
1462
1462
|
if (!te(e))
|
|
1463
1463
|
return null;
|
|
1464
|
-
let n =
|
|
1465
|
-
if (n || (n = Bs(t), n &&
|
|
1464
|
+
let n = vn.get(t);
|
|
1465
|
+
if (n || (n = Bs(t), n && vn.set(t, n)), !n)
|
|
1466
1466
|
return null;
|
|
1467
1467
|
const r = n.length;
|
|
1468
1468
|
let l = e, a = 0;
|
|
@@ -1474,7 +1474,7 @@ function Hs(e, t) {
|
|
|
1474
1474
|
}
|
|
1475
1475
|
return l;
|
|
1476
1476
|
}
|
|
1477
|
-
const $s = "10.0.5", Ot = -1, Nt = "en-US",
|
|
1477
|
+
const $s = "10.0.5", Ot = -1, Nt = "en-US", pn = "", hn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1478
1478
|
function Js() {
|
|
1479
1479
|
return {
|
|
1480
1480
|
upper: (e, t) => t === "text" && Y(e) ? e.toUpperCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
@@ -1504,7 +1504,7 @@ const bn = (e) => {
|
|
|
1504
1504
|
}, to = () => Qn;
|
|
1505
1505
|
let gn = 0;
|
|
1506
1506
|
function no(e = {}) {
|
|
1507
|
-
const t = me(e.onWarn) ? e.onWarn : Wr, n = Y(e.version) ? e.version : $s, r = Y(e.locale) || me(e.locale) ? e.locale : Nt, l = me(r) ? Nt : r, a = be(e.fallbackLocale) || ee(e.fallbackLocale) || Y(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, d = ee(e.messages) ? e.messages : kt(l), u = ee(e.datetimeFormats) ? e.datetimeFormats : kt(l), i = ee(e.numberFormats) ? e.numberFormats : kt(l), g = Ie(oe(), e.modifiers, Js()), y = e.pluralRules || oe(), T = me(e.missing) ? e.missing : null, N =
|
|
1507
|
+
const t = me(e.onWarn) ? e.onWarn : Wr, n = Y(e.version) ? e.version : $s, r = Y(e.locale) || me(e.locale) ? e.locale : Nt, l = me(r) ? Nt : r, a = be(e.fallbackLocale) || ee(e.fallbackLocale) || Y(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, d = ee(e.messages) ? e.messages : kt(l), u = ee(e.datetimeFormats) ? e.datetimeFormats : kt(l), i = ee(e.numberFormats) ? e.numberFormats : kt(l), g = Ie(oe(), e.modifiers, Js()), y = e.pluralRules || oe(), T = me(e.missing) ? e.missing : null, N = pe(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, F = pe(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, w = !!e.fallbackFormat, L = !!e.unresolving, D = me(e.postTranslation) ? e.postTranslation : null, f = ee(e.processor) ? e.processor : null, h = pe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, c = me(e.messageCompiler) ? e.messageCompiler : $n, b = me(e.messageResolver) ? e.messageResolver : Jn || Xs, I = me(e.localeFallbacker) ? e.localeFallbacker : Kn || js, v = te(e.fallbackContext) ? e.fallbackContext : void 0, k = e, R = te(k.__datetimeFormatters) ? k.__datetimeFormatters : /* @__PURE__ */ new Map(), X = te(k.__numberFormatters) ? k.__numberFormatters : /* @__PURE__ */ new Map(), V = te(k.__meta) ? k.__meta : {};
|
|
1508
1508
|
gn++;
|
|
1509
1509
|
const m = {
|
|
1510
1510
|
version: n,
|
|
@@ -1516,21 +1516,21 @@ function no(e = {}) {
|
|
|
1516
1516
|
pluralRules: y,
|
|
1517
1517
|
missing: T,
|
|
1518
1518
|
missingWarn: N,
|
|
1519
|
-
fallbackWarn:
|
|
1519
|
+
fallbackWarn: F,
|
|
1520
1520
|
fallbackFormat: w,
|
|
1521
1521
|
unresolving: L,
|
|
1522
|
-
postTranslation:
|
|
1522
|
+
postTranslation: D,
|
|
1523
1523
|
processor: f,
|
|
1524
1524
|
warnHtmlMessage: h,
|
|
1525
1525
|
escapeParameter: S,
|
|
1526
1526
|
messageCompiler: c,
|
|
1527
1527
|
messageResolver: b,
|
|
1528
1528
|
localeFallbacker: I,
|
|
1529
|
-
fallbackContext:
|
|
1529
|
+
fallbackContext: v,
|
|
1530
1530
|
onWarn: t,
|
|
1531
|
-
__meta:
|
|
1531
|
+
__meta: V
|
|
1532
1532
|
};
|
|
1533
|
-
return m.datetimeFormats = u, m.numberFormats = i, m.__datetimeFormatters =
|
|
1533
|
+
return m.datetimeFormats = u, m.numberFormats = i, m.__datetimeFormatters = R, m.__numberFormatters = X, __INTLIFY_PROD_DEVTOOLS__ && ws(m, n, V), m;
|
|
1534
1534
|
}
|
|
1535
1535
|
const kt = (e) => ({ [e]: oe() });
|
|
1536
1536
|
function Qt(e, t, n, r, l) {
|
|
@@ -1558,9 +1558,9 @@ function so(e, t) {
|
|
|
1558
1558
|
return !1;
|
|
1559
1559
|
}
|
|
1560
1560
|
function In(e, ...t) {
|
|
1561
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __datetimeFormatters: u } = e, [i, g, y, T] = jt(...t), N =
|
|
1562
|
-
|
|
1563
|
-
const
|
|
1561
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __datetimeFormatters: u } = e, [i, g, y, T] = jt(...t), N = pe(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1562
|
+
pe(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1563
|
+
const F = !!y.part, w = zt(e, y), L = d(
|
|
1564
1564
|
e,
|
|
1565
1565
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1566
1566
|
l,
|
|
@@ -1568,16 +1568,16 @@ function In(e, ...t) {
|
|
|
1568
1568
|
);
|
|
1569
1569
|
if (!Y(i) || i === "")
|
|
1570
1570
|
return new Intl.DateTimeFormat(w, T).format(g);
|
|
1571
|
-
let
|
|
1571
|
+
let D = {}, f, h = null;
|
|
1572
1572
|
const S = "datetime format";
|
|
1573
|
-
for (let I = 0; I < L.length && (f = L[I],
|
|
1573
|
+
for (let I = 0; I < L.length && (f = L[I], D = n[f] || {}, h = D[i], !ee(h)); I++)
|
|
1574
1574
|
Qt(e, i, f, N, S);
|
|
1575
1575
|
if (!ee(h) || !Y(f))
|
|
1576
1576
|
return r ? Ot : i;
|
|
1577
1577
|
let c = `${f}__${i}`;
|
|
1578
1578
|
Ct(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
1579
1579
|
let b = u.get(c);
|
|
1580
|
-
return b || (b = new Intl.DateTimeFormat(f, Ie({}, h, T)), u.set(c, b)),
|
|
1580
|
+
return b || (b = new Intl.DateTimeFormat(f, Ie({}, h, T)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1581
1581
|
}
|
|
1582
1582
|
const qn = [
|
|
1583
1583
|
"localeMatcher",
|
|
@@ -1635,9 +1635,9 @@ function yn(e, t, n) {
|
|
|
1635
1635
|
}
|
|
1636
1636
|
}
|
|
1637
1637
|
function En(e, ...t) {
|
|
1638
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __numberFormatters: u } = e, [i, g, y, T] = Ut(...t), N =
|
|
1639
|
-
|
|
1640
|
-
const
|
|
1638
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __numberFormatters: u } = e, [i, g, y, T] = Ut(...t), N = pe(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1639
|
+
pe(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1640
|
+
const F = !!y.part, w = zt(e, y), L = d(
|
|
1641
1641
|
e,
|
|
1642
1642
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1643
1643
|
l,
|
|
@@ -1645,16 +1645,16 @@ function En(e, ...t) {
|
|
|
1645
1645
|
);
|
|
1646
1646
|
if (!Y(i) || i === "")
|
|
1647
1647
|
return new Intl.NumberFormat(w, T).format(g);
|
|
1648
|
-
let
|
|
1648
|
+
let D = {}, f, h = null;
|
|
1649
1649
|
const S = "number format";
|
|
1650
|
-
for (let I = 0; I < L.length && (f = L[I],
|
|
1650
|
+
for (let I = 0; I < L.length && (f = L[I], D = n[f] || {}, h = D[i], !ee(h)); I++)
|
|
1651
1651
|
Qt(e, i, f, N, S);
|
|
1652
1652
|
if (!ee(h) || !Y(f))
|
|
1653
1653
|
return r ? Ot : i;
|
|
1654
1654
|
let c = `${f}__${i}`;
|
|
1655
1655
|
Ct(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
1656
1656
|
let b = u.get(c);
|
|
1657
|
-
return b || (b = new Intl.NumberFormat(f, Ie({}, h, T)), u.set(c, b)),
|
|
1657
|
+
return b || (b = new Intl.NumberFormat(f, Ie({}, h, T)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1658
1658
|
}
|
|
1659
1659
|
const er = [
|
|
1660
1660
|
"localeMatcher",
|
|
@@ -1695,7 +1695,7 @@ function Nn(e, t, n) {
|
|
|
1695
1695
|
r.__numberFormatters.has(a) && r.__numberFormatters.delete(a);
|
|
1696
1696
|
}
|
|
1697
1697
|
}
|
|
1698
|
-
const oo = (e) => e, ao = (e) => "", lo = "text", io = (e) => e.length === 0 ? "" : $t(e), co =
|
|
1698
|
+
const oo = (e) => e, ao = (e) => "", lo = "text", io = (e) => e.length === 0 ? "" : $t(e), co = Vr;
|
|
1699
1699
|
function Cn(e, t) {
|
|
1700
1700
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1701
1701
|
}
|
|
@@ -1714,7 +1714,7 @@ function fo(e = {}) {
|
|
|
1714
1714
|
const S = me(e.messages) ? e.messages(f, !!h) : te(e.messages) ? e.messages[f] : !1;
|
|
1715
1715
|
return S || (e.parent ? e.parent.message(f) : ao);
|
|
1716
1716
|
}
|
|
1717
|
-
const T = (f) => e.modifiers ? e.modifiers[f] : oo, N = ee(e.processor) && me(e.processor.normalize) ? e.processor.normalize : io,
|
|
1717
|
+
const T = (f) => e.modifiers ? e.modifiers[f] : oo, N = ee(e.processor) && me(e.processor.normalize) ? e.processor.normalize : io, F = ee(e.processor) && me(e.processor.interpolate) ? e.processor.interpolate : co, w = ee(e.processor) && Y(e.processor.type) ? e.processor.type : lo, D = {
|
|
1718
1718
|
list: u,
|
|
1719
1719
|
named: g,
|
|
1720
1720
|
plural: a,
|
|
@@ -1722,38 +1722,38 @@ function fo(e = {}) {
|
|
|
1722
1722
|
const [S, c] = h;
|
|
1723
1723
|
let b = "text", I = "";
|
|
1724
1724
|
h.length === 1 ? te(S) ? (I = S.modifier || I, b = S.type || b) : Y(S) && (I = S || I) : h.length === 2 && (Y(S) && (I = S || I), Y(c) && (b = c || b));
|
|
1725
|
-
const
|
|
1725
|
+
const v = y(f, !0)(D), k = (
|
|
1726
1726
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1727
|
-
b === "vnode" && be(
|
|
1727
|
+
b === "vnode" && be(v) && I ? v[0] : v
|
|
1728
1728
|
);
|
|
1729
1729
|
return I ? T(I)(k, b) : k;
|
|
1730
1730
|
},
|
|
1731
1731
|
message: y,
|
|
1732
1732
|
type: w,
|
|
1733
|
-
interpolate:
|
|
1733
|
+
interpolate: F,
|
|
1734
1734
|
normalize: N,
|
|
1735
1735
|
values: Ie(oe(), d, i)
|
|
1736
1736
|
};
|
|
1737
|
-
return
|
|
1737
|
+
return D;
|
|
1738
1738
|
}
|
|
1739
1739
|
const Tn = () => "", Te = (e) => me(e);
|
|
1740
1740
|
function On(e, ...t) {
|
|
1741
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale: d, messages: u } = e, [i, g] =
|
|
1741
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale: d, messages: u } = e, [i, g] = xt(...t), y = pe(g.missingWarn) ? g.missingWarn : e.missingWarn, T = pe(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, N = pe(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, F = !!g.resolvedMessage, w = Y(g.default) || pe(g.default) ? pe(g.default) ? a ? i : () => i : g.default : n ? a ? i : () => i : null, L = n || w != null && (Y(w) || me(w)), D = zt(e, g);
|
|
1742
1742
|
N && _o(g);
|
|
1743
|
-
let [f, h, S] =
|
|
1743
|
+
let [f, h, S] = F ? [
|
|
1744
1744
|
i,
|
|
1745
|
-
|
|
1746
|
-
u[
|
|
1747
|
-
] : tr(e, i,
|
|
1748
|
-
if (!
|
|
1745
|
+
D,
|
|
1746
|
+
u[D] || oe()
|
|
1747
|
+
] : tr(e, i, D, d, T, y), c = f, b = i;
|
|
1748
|
+
if (!F && !(Y(c) || ot(c) || Te(c)) && L && (c = w, b = c), !F && (!(Y(c) || ot(c) || Te(c)) || !Y(h)))
|
|
1749
1749
|
return l ? Ot : i;
|
|
1750
1750
|
let I = !1;
|
|
1751
|
-
const
|
|
1751
|
+
const v = () => {
|
|
1752
1752
|
I = !0;
|
|
1753
|
-
}, k = Te(c) ? c : nr(e, i, h, c, b,
|
|
1753
|
+
}, k = Te(c) ? c : nr(e, i, h, c, b, v);
|
|
1754
1754
|
if (I)
|
|
1755
1755
|
return c;
|
|
1756
|
-
const
|
|
1756
|
+
const R = ho(e, h, S, g), X = fo(R), V = vo(e, k, X), m = r ? r(V, i) : V;
|
|
1757
1757
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1758
1758
|
const C = {
|
|
1759
1759
|
timestamp: Date.now(),
|
|
@@ -1762,7 +1762,7 @@ function On(e, ...t) {
|
|
|
1762
1762
|
format: Y(c) ? c : Te(c) ? c.source : "",
|
|
1763
1763
|
message: m
|
|
1764
1764
|
};
|
|
1765
|
-
C.meta = Ie({}, e.__meta, /* @__PURE__ */ eo() || {}),
|
|
1765
|
+
C.meta = Ie({}, e.__meta, /* @__PURE__ */ eo() || {}), Ds(C);
|
|
1766
1766
|
}
|
|
1767
1767
|
return m;
|
|
1768
1768
|
}
|
|
@@ -1773,11 +1773,11 @@ function _o(e) {
|
|
|
1773
1773
|
}
|
|
1774
1774
|
function tr(e, t, n, r, l, a) {
|
|
1775
1775
|
const { messages: d, onWarn: u, messageResolver: i, localeFallbacker: g } = e, y = g(e, r, n);
|
|
1776
|
-
let T = oe(), N,
|
|
1776
|
+
let T = oe(), N, F = null;
|
|
1777
1777
|
const w = "translate";
|
|
1778
|
-
for (let L = 0; L < y.length && (N = y[L], T = d[N] || oe(), (
|
|
1778
|
+
for (let L = 0; L < y.length && (N = y[L], T = d[N] || oe(), (F = i(T, t)) === null && (F = T[t]), !(Y(F) || ot(F) || Te(F))); L++)
|
|
1779
1779
|
if (!so(N, y)) {
|
|
1780
|
-
const
|
|
1780
|
+
const D = Qt(
|
|
1781
1781
|
e,
|
|
1782
1782
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1783
1783
|
t,
|
|
@@ -1785,9 +1785,9 @@ function tr(e, t, n, r, l, a) {
|
|
|
1785
1785
|
a,
|
|
1786
1786
|
w
|
|
1787
1787
|
);
|
|
1788
|
-
|
|
1788
|
+
D !== t && (F = D);
|
|
1789
1789
|
}
|
|
1790
|
-
return [
|
|
1790
|
+
return [F, N, T];
|
|
1791
1791
|
}
|
|
1792
1792
|
function nr(e, t, n, r, l, a) {
|
|
1793
1793
|
const { messageCompiler: d, warnHtmlMessage: u } = e;
|
|
@@ -1799,20 +1799,20 @@ function nr(e, t, n, r, l, a) {
|
|
|
1799
1799
|
const g = () => r;
|
|
1800
1800
|
return g.locale = n, g.key = t, g;
|
|
1801
1801
|
}
|
|
1802
|
-
const i = d(r,
|
|
1802
|
+
const i = d(r, po(e, n, l, r, u, a));
|
|
1803
1803
|
return i.locale = n, i.key = t, i.source = r, i;
|
|
1804
1804
|
}
|
|
1805
|
-
function
|
|
1805
|
+
function vo(e, t, n) {
|
|
1806
1806
|
return t(n);
|
|
1807
1807
|
}
|
|
1808
|
-
function
|
|
1808
|
+
function xt(...e) {
|
|
1809
1809
|
const [t, n, r] = e, l = oe();
|
|
1810
1810
|
if (!Y(t) && !ge(t) && !Te(t) && !ot(t))
|
|
1811
1811
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1812
1812
|
const a = ge(t) ? String(t) : (Te(t), t);
|
|
1813
1813
|
return ge(n) ? l.plural = n : Y(n) ? l.default = n : ee(n) && !Ct(n) ? l.named = n : be(n) && (l.list = n), ge(r) ? l.plural = r : Y(r) ? l.default = r : ee(r) && Ie(l, r), [a, l];
|
|
1814
1814
|
}
|
|
1815
|
-
function
|
|
1815
|
+
function po(e, t, n, r, l, a) {
|
|
1816
1816
|
return {
|
|
1817
1817
|
locale: t,
|
|
1818
1818
|
key: n,
|
|
@@ -1820,7 +1820,7 @@ function vo(e, t, n, r, l, a) {
|
|
|
1820
1820
|
onError: (d) => {
|
|
1821
1821
|
throw a && a(d), d;
|
|
1822
1822
|
},
|
|
1823
|
-
onCacheKey: (d) =>
|
|
1823
|
+
onCacheKey: (d) => Dr(t, n, d)
|
|
1824
1824
|
};
|
|
1825
1825
|
}
|
|
1826
1826
|
function ho(e, t, n, r) {
|
|
@@ -1828,33 +1828,33 @@ function ho(e, t, n, r) {
|
|
|
1828
1828
|
locale: t,
|
|
1829
1829
|
modifiers: l,
|
|
1830
1830
|
pluralRules: a,
|
|
1831
|
-
messages: (
|
|
1832
|
-
let L = d(n,
|
|
1831
|
+
messages: (F, w) => {
|
|
1832
|
+
let L = d(n, F);
|
|
1833
1833
|
if (L == null && (y || w)) {
|
|
1834
|
-
const [, ,
|
|
1834
|
+
const [, , D] = tr(
|
|
1835
1835
|
y || e,
|
|
1836
1836
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1837
|
-
|
|
1837
|
+
F,
|
|
1838
1838
|
t,
|
|
1839
1839
|
u,
|
|
1840
1840
|
i,
|
|
1841
1841
|
g
|
|
1842
1842
|
);
|
|
1843
|
-
L = d(
|
|
1843
|
+
L = d(D, F);
|
|
1844
1844
|
}
|
|
1845
1845
|
if (Y(L) || ot(L)) {
|
|
1846
|
-
let
|
|
1847
|
-
const h = nr(e,
|
|
1848
|
-
|
|
1846
|
+
let D = !1;
|
|
1847
|
+
const h = nr(e, F, t, L, F, () => {
|
|
1848
|
+
D = !0;
|
|
1849
1849
|
});
|
|
1850
|
-
return
|
|
1850
|
+
return D ? Tn : h;
|
|
1851
1851
|
} else return Te(L) ? L : Tn;
|
|
1852
1852
|
}
|
|
1853
1853
|
};
|
|
1854
1854
|
return e.processor && (N.processor = e.processor), r.list && (N.list = r.list), r.named && (N.named = r.named), ge(r.plural) && (N.pluralIndex = r.plural), N;
|
|
1855
1855
|
}
|
|
1856
1856
|
fs();
|
|
1857
|
-
var bo = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_532c7ab8-ca92-4615-9f1d-1b3ebf72061d", 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_532c7ab8-ca92-4615-9f1d-1b3ebf72061d", 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.0", 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: "1780", ACTIONS_ORCHESTRATION_ID: "b209cf1f-3e2e-4913-b51a-65724088a56f.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: "20260816.277.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_532c7ab8-ca92-4615-9f1d-1b3ebf72061d", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:11534", 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.13/x64", GITHUB_RUN_ID: "32924448348", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "0cab29759799ec2e84179ebb97d6a1af23f2a059", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.6/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9kZXZcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3ODc3MzUwNjgsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc4NzcxMjg2OCwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImI3MDNhMzViLTk0MGYtNTk3NS04NWI1LTkwNTMyYmM2NmFjNiIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiOGNhM2MyOWMwMWM1YjAyZGM5ZjI3YjQ3M2E3ZWZkODNmNjg4M2RhZSIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc4NzcxMjU2OCwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI5ODA0NDM2NzE3N1wiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiOGNhM2MyOWMwMWM1YjAyZGM5ZjI3YjQ3M2E3ZWZkODNmNjg4M2RhZVwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL2RldlwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIzMjkyNDQ0ODM0OFwiLFwicnVuX251bWJlclwiOlwiMTYzXCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiMGNhYjI5NzU5Nzk5ZWMyZTg0MTc5ZWJiOTdkNmExYWYyM2YyYTA1OVwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJ3b3JrZmxvd19zaGFcIjpcIjBjYWIyOTc1OTc5OWVjMmU4NDE3OWViYjk3ZDZhMWFmMjNmMmEwNTlcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL2hybS1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL2RldiIsIm9yY2hfaWQiOiJiMjA5Y2YxZi0zZTJlLTQ5MTMtYjUxYS02NTcyNDA4OGE1NmYucHVibGlzaC5wdWJsaXNoLl9fZGVmYXVsdCIsIm93bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwicGxhbl9pZCI6ImIyMDljZjFmLTNlMmUtNDkxMy1iNTFhLTY1NzI0MDg4YTU2ZiIsInJlcG9zaXRvcnlfaWQiOiIxMTI0NjcyMjM1IiwicmVwb3NpdG9yeV9vd25lcl9pZCI6IjU0ODMxNTE1IiwicmVwb3NpdG9yeV92aXNpYmlsaXR5IjoicHJpdmF0ZSIsInJ1bl9pZCI6IjMyOTI0NDQ4MzQ4IiwicnVuX251bWJlciI6IjE2MyIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDAxMjIxMjIiLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czpiMjA5Y2YxZi0zZTJlLTQ5MTMtYjUxYS02NTcyNDA4OGE1NmY6YjcwM2EzNWItOTQwZi01OTc1LTg1YjUtOTA1MzJiYzY2YWM2IEFjdGlvbnMuUnVubmVyOmIyMDljZjFmLTNlMmUtNDkxMy1iNTFhLTY1NzI0MDg4YTU2ZjpiNzAzYTM1Yi05NDBmLTU5NzUtODViNS05MDUzMmJjNjZhYzYgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6YjIwOWNmMWYtM2UyZS00OTEzLWI1MWEtNjU3MjQwODhhNTZmOmI3MDNhMzViLTk0MGYtNTk3NS04NWI1LTkwNTMyYmM2NmFjNiBnZW5lcmF0ZV9pZF90b2tlbjpiMjA5Y2YxZi0zZTJlLTQ5MTMtYjUxYS02NTcyNDA4OGE1NmY6YjcwM2EzNWItOTQwZi01OTc1LTg1YjUtOTA1MzJiYzY2YWM2IEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiMGNhYjI5NzU5Nzk5ZWMyZTg0MTc5ZWJiOTdkNmExYWYyM2YyYTA1OSIsInRydXN0X3RpZXIiOiIxIn0.WN5MleXbnB0ZvgPge2MNWWRgN1sRsrbtXbKT-JrAbcukLj6mTbaa9oWF0o34KqaMoiOWnZ7_B54QL8BaMU2AmhQyqQ6NSj8TAFlFN0VeIV-n_oKzmA7Kj9kGIqtAUHjIuBsjJFzlldLzGIZV6FuOM8DrXkCA9yFpwXG2Nhhg2gJLFy2rKd15mfGrZH03Ikke6CHV8asgRejKT2fdIKf9KjDrSZQdrQYBBYtDOAHHv6VBs2r_HyxAst2jBOXTNH94BMFXp4CXQnhYQQ2e5BSP8RI5rsZYB76_GtfceFNKVtCOPS6tFkIBZNrFQs3PWlkYYk9oYVIebY5ZsjlgMJvJEg", 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_6d91dabd-65d3-42d4-81f6-a6645b4be16a", INVOCATION_ID: "97f8f908d81a4e7ba70c3e678e9f37a8", 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: "163", 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 1000122122", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "dev", 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.2-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: "0cab29759799ec2e84179ebb97d6a1af23f2a059", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/dev", 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_532c7ab8-ca92-4615-9f1d-1b3ebf72061d", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-2-azure-eastus.actions.githubusercontent.com/40//idtoken/b209cf1f-3e2e-4913-b51a-65724088a56f/b703a35b-940f-5975-85b5-90532bc66ac6?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_532c7ab8-ca92-4615-9f1d-1b3ebf72061d", 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_532c7ab8-ca92-4615-9f1d-1b3ebf72061d", 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_532c7ab8-ca92-4615-9f1d-1b3ebf72061d", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1857
|
+
var bo = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_ac0fdb4c-4b8d-4842-a28f-7d1e1328a54d", 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_ac0fdb4c-4b8d-4842-a28f-7d1e1328a54d", 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.0", 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: "1863", ACTIONS_ORCHESTRATION_ID: "1c4bfeb1-8c94-4fe7-b0dc-ab7f8bf06a9d.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: "20260816.277.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_ac0fdb4c-4b8d-4842-a28f-7d1e1328a54d", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:10815", 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.13/x64", GITHUB_RUN_ID: "32925948604", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "0cab29759799ec2e84179ebb97d6a1af23f2a059", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.6/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9kZXZcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3ODc3MzY1MDcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc4NzcxNDMwNywiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6Ijc0MzYyNjExLTQyMmEtNTRlOS05ZjA3LTE1MzQ0Zjc2OGJmNiIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiOGNhM2MyOWMwMWM1YjAyZGM5ZjI3YjQ3M2E3ZWZkODNmNjg4M2RhZSIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc4NzcxNDAwNywib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI5ODA0ODc0OTc4MFwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiOGNhM2MyOWMwMWM1YjAyZGM5ZjI3YjQ3M2E3ZWZkODNmNjg4M2RhZVwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL2RldlwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIzMjkyNTk0ODYwNFwiLFwicnVuX251bWJlclwiOlwiMTY0XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiMGNhYjI5NzU5Nzk5ZWMyZTg0MTc5ZWJiOTdkNmExYWYyM2YyYTA1OVwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJ3b3JrZmxvd19zaGFcIjpcIjBjYWIyOTc1OTc5OWVjMmU4NDE3OWViYjk3ZDZhMWFmMjNmMmEwNTlcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL2hybS1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL2RldiIsIm9yY2hfaWQiOiIxYzRiZmViMS04Yzk0LTRmZTctYjBkYy1hYjdmOGJmMDZhOWQucHVibGlzaC5wdWJsaXNoLl9fZGVmYXVsdCIsIm93bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwicGxhbl9pZCI6IjFjNGJmZWIxLThjOTQtNGZlNy1iMGRjLWFiN2Y4YmYwNmE5ZCIsInJlcG9zaXRvcnlfaWQiOiIxMTI0NjcyMjM1IiwicmVwb3NpdG9yeV9vd25lcl9pZCI6IjU0ODMxNTE1IiwicmVwb3NpdG9yeV92aXNpYmlsaXR5IjoicHJpdmF0ZSIsInJ1bl9pZCI6IjMyOTI1OTQ4NjA0IiwicnVuX251bWJlciI6IjE2NCIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDAxMjIxNzAiLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czoxYzRiZmViMS04Yzk0LTRmZTctYjBkYy1hYjdmOGJmMDZhOWQ6NzQzNjI2MTEtNDIyYS01NGU5LTlmMDctMTUzNDRmNzY4YmY2IEFjdGlvbnMuUnVubmVyOjFjNGJmZWIxLThjOTQtNGZlNy1iMGRjLWFiN2Y4YmYwNmE5ZDo3NDM2MjYxMS00MjJhLTU0ZTktOWYwNy0xNTM0NGY3NjhiZjYgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6MWM0YmZlYjEtOGM5NC00ZmU3LWIwZGMtYWI3ZjhiZjA2YTlkOjc0MzYyNjExLTQyMmEtNTRlOS05ZjA3LTE1MzQ0Zjc2OGJmNiBnZW5lcmF0ZV9pZF90b2tlbjoxYzRiZmViMS04Yzk0LTRmZTctYjBkYy1hYjdmOGJmMDZhOWQ6NzQzNjI2MTEtNDIyYS01NGU5LTlmMDctMTUzNDRmNzY4YmY2IEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiMGNhYjI5NzU5Nzk5ZWMyZTg0MTc5ZWJiOTdkNmExYWYyM2YyYTA1OSIsInRydXN0X3RpZXIiOiIxIn0.nYscfeBXi6ZqMfkegvPRzk8ynYarUDpX0cTOXu6z7vru75EIM3e0eP-m034TA1xiiLsk-w3g5EGms4icwz3eXXr9bAX5FC-3BI2YdLTJPvyKVmwFjr1R4SJrSKvmidsAb-ECmSSQdG6r4xGyLDdRrMDC-ESikFgkUmfYHMcw9waGTrDoDvyNrp-pqv1d6uE9xmBJxxqG6BKvSySDETn82nefYQsh90yFub0Jd7KszmMAntoBSRFMmxcyrFKHYMCyMgfKqsik9VMtwBn4yAwnfICD-LxVeSgy7igdx9uTWE0sdcxeVk79E0lvS1rzbZbBZOHa-XxEI76b6819kCJa0g", 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_bc9a1c7f-0343-4f4c-a64b-c3d1406873b8", INVOCATION_ID: "385caed22d0c4abb8b59de97d674adc3", 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: "164", 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 1000122170", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "dev", 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.2-dev.4", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", GITHUB_SHA: "0cab29759799ec2e84179ebb97d6a1af23f2a059", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/dev", 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_ac0fdb4c-4b8d-4842-a28f-7d1e1328a54d", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-2-azure-eastus.actions.githubusercontent.com/25//idtoken/1c4bfeb1-8c94-4fe7-b0dc-ab7f8bf06a9d/74362611-422a-54e9-9f07-15344f768bf6?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_ac0fdb4c-4b8d-4842-a28f-7d1e1328a54d", 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_ac0fdb4c-4b8d-4842-a28f-7d1e1328a54d", 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_ac0fdb4c-4b8d-4842-a28f-7d1e1328a54d", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1858
1858
|
const go = "10.0.5";
|
|
1859
1859
|
function Io() {
|
|
1860
1860
|
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);
|
|
@@ -1875,12 +1875,12 @@ const at = {
|
|
|
1875
1875
|
function ut(e, ...t) {
|
|
1876
1876
|
return Tt(e, null, void 0);
|
|
1877
1877
|
}
|
|
1878
|
-
const
|
|
1878
|
+
const Vt = /* @__PURE__ */ $e("__translateVNode"), Wt = /* @__PURE__ */ $e("__datetimeParts"), Gt = /* @__PURE__ */ $e("__numberParts"), yo = $e("__setPluralRules"), rr = /* @__PURE__ */ $e("__injectWithOption"), Yt = /* @__PURE__ */ $e("__dispose");
|
|
1879
1879
|
function dt(e) {
|
|
1880
1880
|
if (!te(e))
|
|
1881
1881
|
return e;
|
|
1882
1882
|
for (const t in e)
|
|
1883
|
-
if (
|
|
1883
|
+
if (Re(e, t))
|
|
1884
1884
|
if (!t.includes("."))
|
|
1885
1885
|
te(e[t]) && dt(e[t]);
|
|
1886
1886
|
else {
|
|
@@ -1907,7 +1907,7 @@ function sr(e, t) {
|
|
|
1907
1907
|
Y(u) && yt(JSON.parse(u), d);
|
|
1908
1908
|
}), l == null && a)
|
|
1909
1909
|
for (const u in d)
|
|
1910
|
-
|
|
1910
|
+
Re(d, u) && dt(d[u]);
|
|
1911
1911
|
return d;
|
|
1912
1912
|
}
|
|
1913
1913
|
function or(e) {
|
|
@@ -1941,19 +1941,19 @@ function Eo(e, t, n) {
|
|
|
1941
1941
|
function Sn(e) {
|
|
1942
1942
|
return ue(fr, null, e, 0);
|
|
1943
1943
|
}
|
|
1944
|
-
const
|
|
1945
|
-
let
|
|
1944
|
+
const Rn = "__INTLIFY_META__", Ln = () => [], No = () => !1;
|
|
1945
|
+
let An = 0;
|
|
1946
1946
|
function kn(e) {
|
|
1947
1947
|
return (t, n, r, l) => e(n, r, Bt() || void 0, l);
|
|
1948
1948
|
}
|
|
1949
1949
|
const Co = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1950
1950
|
const e = Bt();
|
|
1951
1951
|
let t = null;
|
|
1952
|
-
return e && (t = or(e)[
|
|
1952
|
+
return e && (t = or(e)[Rn]) ? { [Rn]: t } : null;
|
|
1953
1953
|
};
|
|
1954
1954
|
function To(e = {}) {
|
|
1955
1955
|
const { __root: t, __injectWithOption: n } = e, r = t === void 0, l = e.flatJson, a = on ? rt : dr;
|
|
1956
|
-
let d =
|
|
1956
|
+
let d = pe(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1957
1957
|
const u = a(
|
|
1958
1958
|
// prettier-ignore
|
|
1959
1959
|
t && d ? t.locale.value : Y(e.locale) ? e.locale : Nt
|
|
@@ -1961,12 +1961,12 @@ function To(e = {}) {
|
|
|
1961
1961
|
// prettier-ignore
|
|
1962
1962
|
t && d ? t.fallbackLocale.value : Y(e.fallbackLocale) || be(e.fallbackLocale) || ee(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
1963
1963
|
), g = a(sr(u.value, e)), y = a(ee(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), T = a(ee(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
|
|
1964
|
-
let N = t ? t.missingWarn :
|
|
1964
|
+
let N = 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, w = t ? t.fallbackRoot : pe(e.fallbackRoot) ? e.fallbackRoot : !0, L = !!e.fallbackFormat, D = me(e.missing) ? e.missing : null, f = me(e.missing) ? kn(e.missing) : null, h = me(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : pe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, c = !!e.escapeParameter;
|
|
1965
1965
|
const b = t ? t.modifiers : ee(e.modifiers) ? e.modifiers : {};
|
|
1966
|
-
let I = e.pluralRules || t && t.pluralRules,
|
|
1967
|
-
|
|
1966
|
+
let I = e.pluralRules || t && t.pluralRules, v;
|
|
1967
|
+
v = (() => {
|
|
1968
1968
|
r && bn(null);
|
|
1969
|
-
const
|
|
1969
|
+
const p = {
|
|
1970
1970
|
version: go,
|
|
1971
1971
|
locale: u.value,
|
|
1972
1972
|
fallbackLocale: i.value,
|
|
@@ -1975,7 +1975,7 @@ function To(e = {}) {
|
|
|
1975
1975
|
pluralRules: I,
|
|
1976
1976
|
missing: f === null ? void 0 : f,
|
|
1977
1977
|
missingWarn: N,
|
|
1978
|
-
fallbackWarn:
|
|
1978
|
+
fallbackWarn: F,
|
|
1979
1979
|
fallbackFormat: L,
|
|
1980
1980
|
unresolving: !0,
|
|
1981
1981
|
postTranslation: h === null ? void 0 : h,
|
|
@@ -1985,11 +1985,11 @@ function To(e = {}) {
|
|
|
1985
1985
|
messageCompiler: e.messageCompiler,
|
|
1986
1986
|
__meta: { framework: "vue" }
|
|
1987
1987
|
};
|
|
1988
|
-
|
|
1989
|
-
const E = no(
|
|
1988
|
+
p.datetimeFormats = y.value, p.numberFormats = T.value, p.__datetimeFormatters = ee(v) ? v.__datetimeFormatters : void 0, p.__numberFormatters = ee(v) ? v.__numberFormatters : void 0;
|
|
1989
|
+
const E = no(p);
|
|
1990
1990
|
return r && bn(E), E;
|
|
1991
|
-
})(), lt(
|
|
1992
|
-
function
|
|
1991
|
+
})(), lt(v, u.value, i.value);
|
|
1992
|
+
function R() {
|
|
1993
1993
|
return [
|
|
1994
1994
|
u.value,
|
|
1995
1995
|
i.value,
|
|
@@ -2000,34 +2000,34 @@ function To(e = {}) {
|
|
|
2000
2000
|
}
|
|
2001
2001
|
const X = z({
|
|
2002
2002
|
get: () => u.value,
|
|
2003
|
-
set: (
|
|
2004
|
-
u.value =
|
|
2003
|
+
set: (p) => {
|
|
2004
|
+
u.value = p, v.locale = u.value;
|
|
2005
2005
|
}
|
|
2006
|
-
}),
|
|
2006
|
+
}), V = z({
|
|
2007
2007
|
get: () => i.value,
|
|
2008
|
-
set: (
|
|
2009
|
-
i.value =
|
|
2008
|
+
set: (p) => {
|
|
2009
|
+
i.value = p, v.fallbackLocale = i.value, lt(v, u.value, p);
|
|
2010
2010
|
}
|
|
2011
2011
|
}), m = z(() => g.value), C = /* @__PURE__ */ z(() => y.value), U = /* @__PURE__ */ z(() => T.value);
|
|
2012
|
-
function
|
|
2012
|
+
function x() {
|
|
2013
2013
|
return me(h) ? h : null;
|
|
2014
2014
|
}
|
|
2015
|
-
function j(
|
|
2016
|
-
h =
|
|
2015
|
+
function j(p) {
|
|
2016
|
+
h = p, v.postTranslation = p;
|
|
2017
2017
|
}
|
|
2018
2018
|
function G() {
|
|
2019
|
-
return
|
|
2019
|
+
return D;
|
|
2020
2020
|
}
|
|
2021
|
-
function W(
|
|
2022
|
-
|
|
2021
|
+
function W(p) {
|
|
2022
|
+
p !== null && (f = kn(p)), D = p, v.missing = f;
|
|
2023
2023
|
}
|
|
2024
|
-
const Z = (
|
|
2025
|
-
|
|
2024
|
+
const Z = (p, E, $, le, Be, mt) => {
|
|
2025
|
+
R();
|
|
2026
2026
|
let ze;
|
|
2027
2027
|
try {
|
|
2028
|
-
bo.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (
|
|
2028
|
+
bo.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = t ? to() : void 0), ze = p(v);
|
|
2029
2029
|
} finally {
|
|
2030
|
-
__INTLIFY_PROD_DEVTOOLS__, r || (
|
|
2030
|
+
__INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = void 0);
|
|
2031
2031
|
}
|
|
2032
2032
|
if ($ !== "translate exists" && // for not `te` (e.g `t`)
|
|
2033
2033
|
ge(ze) && ze === Ot || $ === "translate exists" && !ze) {
|
|
@@ -2039,63 +2039,63 @@ function To(e = {}) {
|
|
|
2039
2039
|
throw ut(at.UNEXPECTED_RETURN_TYPE);
|
|
2040
2040
|
}
|
|
2041
2041
|
};
|
|
2042
|
-
function B(...
|
|
2043
|
-
return Z((E) => Reflect.apply(On, null, [E, ...
|
|
2042
|
+
function B(...p) {
|
|
2043
|
+
return Z((E) => Reflect.apply(On, null, [E, ...p]), () => xt(...p), "translate", (E) => Reflect.apply(E.t, E, [...p]), (E) => E, (E) => Y(E));
|
|
2044
2044
|
}
|
|
2045
|
-
function ne(...
|
|
2046
|
-
const [E, $, le] =
|
|
2045
|
+
function ne(...p) {
|
|
2046
|
+
const [E, $, le] = p;
|
|
2047
2047
|
if (le && !te(le))
|
|
2048
2048
|
throw ut(at.INVALID_ARGUMENT);
|
|
2049
2049
|
return B(E, $, Ie({ resolvedMessage: !0 }, le || {}));
|
|
2050
2050
|
}
|
|
2051
|
-
function Q(...
|
|
2052
|
-
return Z((E) => Reflect.apply(In, null, [E, ...
|
|
2051
|
+
function Q(...p) {
|
|
2052
|
+
return Z((E) => Reflect.apply(In, null, [E, ...p]), () => jt(...p), "datetime format", (E) => Reflect.apply(E.d, E, [...p]), () => pn, (E) => Y(E));
|
|
2053
2053
|
}
|
|
2054
|
-
function _e(...
|
|
2055
|
-
return Z((E) => Reflect.apply(En, null, [E, ...
|
|
2054
|
+
function _e(...p) {
|
|
2055
|
+
return Z((E) => Reflect.apply(En, null, [E, ...p]), () => Ut(...p), "number format", (E) => Reflect.apply(E.n, E, [...p]), () => pn, (E) => Y(E));
|
|
2056
2056
|
}
|
|
2057
|
-
function ce(
|
|
2058
|
-
return
|
|
2057
|
+
function ce(p) {
|
|
2058
|
+
return p.map((E) => Y(E) || ge(E) || pe(E) ? Sn(String(E)) : E);
|
|
2059
2059
|
}
|
|
2060
2060
|
const fe = {
|
|
2061
2061
|
normalize: ce,
|
|
2062
|
-
interpolate: (
|
|
2062
|
+
interpolate: (p) => p,
|
|
2063
2063
|
type: "vnode"
|
|
2064
2064
|
};
|
|
2065
|
-
function q(...
|
|
2065
|
+
function q(...p) {
|
|
2066
2066
|
return Z((E) => {
|
|
2067
2067
|
let $;
|
|
2068
2068
|
const le = E;
|
|
2069
2069
|
try {
|
|
2070
|
-
le.processor = fe, $ = Reflect.apply(On, null, [le, ...
|
|
2070
|
+
le.processor = fe, $ = Reflect.apply(On, null, [le, ...p]);
|
|
2071
2071
|
} finally {
|
|
2072
2072
|
le.processor = null;
|
|
2073
2073
|
}
|
|
2074
2074
|
return $;
|
|
2075
|
-
}, () =>
|
|
2075
|
+
}, () => xt(...p), "translate", (E) => E[Vt](...p), (E) => [Sn(E)], (E) => be(E));
|
|
2076
2076
|
}
|
|
2077
|
-
function
|
|
2078
|
-
return Z((E) => Reflect.apply(En, null, [E, ...
|
|
2077
|
+
function De(...p) {
|
|
2078
|
+
return Z((E) => Reflect.apply(En, null, [E, ...p]), () => Ut(...p), "number format", (E) => E[Gt](...p), Ln, (E) => Y(E) || be(E));
|
|
2079
2079
|
}
|
|
2080
|
-
function K(...
|
|
2081
|
-
return Z((E) => Reflect.apply(In, null, [E, ...
|
|
2080
|
+
function K(...p) {
|
|
2081
|
+
return Z((E) => Reflect.apply(In, null, [E, ...p]), () => jt(...p), "datetime format", (E) => E[Wt](...p), Ln, (E) => Y(E) || be(E));
|
|
2082
2082
|
}
|
|
2083
|
-
function
|
|
2084
|
-
I =
|
|
2083
|
+
function ve(p) {
|
|
2084
|
+
I = p, v.pluralRules = I;
|
|
2085
2085
|
}
|
|
2086
|
-
function Je(
|
|
2086
|
+
function Je(p, E) {
|
|
2087
2087
|
return Z(() => {
|
|
2088
|
-
if (!
|
|
2088
|
+
if (!p)
|
|
2089
2089
|
return !1;
|
|
2090
|
-
const $ = Y(E) ? E : u.value, le =
|
|
2090
|
+
const $ = Y(E) ? E : u.value, le = Fe($), Be = v.messageResolver(le, p);
|
|
2091
2091
|
return ot(Be) || Te(Be) || Y(Be);
|
|
2092
|
-
}, () => [
|
|
2092
|
+
}, () => [p], "translate exists", ($) => Reflect.apply($.te, $, [p, E]), No, ($) => pe($));
|
|
2093
2093
|
}
|
|
2094
|
-
function Ke(
|
|
2094
|
+
function Ke(p) {
|
|
2095
2095
|
let E = null;
|
|
2096
|
-
const $ = Hn(
|
|
2096
|
+
const $ = Hn(v, i.value, u.value);
|
|
2097
2097
|
for (let le = 0; le < $.length; le++) {
|
|
2098
|
-
const Be = g.value[$[le]] || {}, mt =
|
|
2098
|
+
const Be = g.value[$[le]] || {}, mt = v.messageResolver(Be, p);
|
|
2099
2099
|
if (mt != null) {
|
|
2100
2100
|
E = mt;
|
|
2101
2101
|
break;
|
|
@@ -2103,62 +2103,62 @@ function To(e = {}) {
|
|
|
2103
2103
|
}
|
|
2104
2104
|
return E;
|
|
2105
2105
|
}
|
|
2106
|
-
function
|
|
2107
|
-
const E = Ke(
|
|
2108
|
-
return E ?? (t ? t.tm(
|
|
2106
|
+
function xe(p) {
|
|
2107
|
+
const E = Ke(p);
|
|
2108
|
+
return E ?? (t ? t.tm(p) || {} : {});
|
|
2109
2109
|
}
|
|
2110
|
-
function
|
|
2111
|
-
return g.value[
|
|
2110
|
+
function Fe(p) {
|
|
2111
|
+
return g.value[p] || {};
|
|
2112
2112
|
}
|
|
2113
|
-
function Ce(
|
|
2113
|
+
function Ce(p, E) {
|
|
2114
2114
|
if (l) {
|
|
2115
|
-
const $ = { [
|
|
2115
|
+
const $ = { [p]: E };
|
|
2116
2116
|
for (const le in $)
|
|
2117
|
-
|
|
2118
|
-
E = $[
|
|
2117
|
+
Re($, le) && dt($[le]);
|
|
2118
|
+
E = $[p];
|
|
2119
2119
|
}
|
|
2120
|
-
g.value[
|
|
2120
|
+
g.value[p] = E, v.messages = g.value;
|
|
2121
2121
|
}
|
|
2122
|
-
function Ze(
|
|
2123
|
-
g.value[
|
|
2124
|
-
const $ = { [
|
|
2122
|
+
function Ze(p, E) {
|
|
2123
|
+
g.value[p] = g.value[p] || {};
|
|
2124
|
+
const $ = { [p]: E };
|
|
2125
2125
|
if (l)
|
|
2126
2126
|
for (const le in $)
|
|
2127
|
-
|
|
2128
|
-
E = $[
|
|
2127
|
+
Re($, le) && dt($[le]);
|
|
2128
|
+
E = $[p], yt(E, g.value[p]), v.messages = g.value;
|
|
2129
2129
|
}
|
|
2130
|
-
function O(
|
|
2131
|
-
return y.value[
|
|
2130
|
+
function O(p) {
|
|
2131
|
+
return y.value[p] || {};
|
|
2132
2132
|
}
|
|
2133
|
-
function s(
|
|
2134
|
-
y.value[
|
|
2133
|
+
function s(p, E) {
|
|
2134
|
+
y.value[p] = E, v.datetimeFormats = y.value, yn(v, p, E);
|
|
2135
2135
|
}
|
|
2136
|
-
function o(
|
|
2137
|
-
y.value[
|
|
2136
|
+
function o(p, E) {
|
|
2137
|
+
y.value[p] = Ie(y.value[p] || {}, E), v.datetimeFormats = y.value, yn(v, p, E);
|
|
2138
2138
|
}
|
|
2139
|
-
function _(
|
|
2140
|
-
return T.value[
|
|
2139
|
+
function _(p) {
|
|
2140
|
+
return T.value[p] || {};
|
|
2141
2141
|
}
|
|
2142
|
-
function
|
|
2143
|
-
T.value[
|
|
2142
|
+
function A(p, E) {
|
|
2143
|
+
T.value[p] = E, v.numberFormats = T.value, Nn(v, p, E);
|
|
2144
2144
|
}
|
|
2145
|
-
function M(
|
|
2146
|
-
T.value[
|
|
2145
|
+
function M(p, E) {
|
|
2146
|
+
T.value[p] = Ie(T.value[p] || {}, E), v.numberFormats = T.value, Nn(v, p, E);
|
|
2147
2147
|
}
|
|
2148
|
-
|
|
2149
|
-
d && (u.value =
|
|
2150
|
-
}), wt(t.fallbackLocale, (
|
|
2151
|
-
d && (i.value =
|
|
2148
|
+
An++, t && on && (wt(t.locale, (p) => {
|
|
2149
|
+
d && (u.value = p, v.locale = p, lt(v, u.value, i.value));
|
|
2150
|
+
}), wt(t.fallbackLocale, (p) => {
|
|
2151
|
+
d && (i.value = p, v.fallbackLocale = p, lt(v, u.value, i.value));
|
|
2152
2152
|
}));
|
|
2153
2153
|
const P = {
|
|
2154
|
-
id:
|
|
2154
|
+
id: An,
|
|
2155
2155
|
locale: X,
|
|
2156
|
-
fallbackLocale:
|
|
2156
|
+
fallbackLocale: V,
|
|
2157
2157
|
get inheritLocale() {
|
|
2158
2158
|
return d;
|
|
2159
2159
|
},
|
|
2160
|
-
set inheritLocale(
|
|
2161
|
-
d =
|
|
2160
|
+
set inheritLocale(p) {
|
|
2161
|
+
d = p, p && t && (u.value = t.locale.value, i.value = t.fallbackLocale.value, lt(v, u.value, i.value));
|
|
2162
2162
|
},
|
|
2163
2163
|
get availableLocales() {
|
|
2164
2164
|
return Object.keys(g.value).sort();
|
|
@@ -2176,50 +2176,50 @@ function To(e = {}) {
|
|
|
2176
2176
|
get missingWarn() {
|
|
2177
2177
|
return N;
|
|
2178
2178
|
},
|
|
2179
|
-
set missingWarn(
|
|
2180
|
-
N =
|
|
2179
|
+
set missingWarn(p) {
|
|
2180
|
+
N = p, v.missingWarn = N;
|
|
2181
2181
|
},
|
|
2182
2182
|
get fallbackWarn() {
|
|
2183
|
-
return
|
|
2183
|
+
return F;
|
|
2184
2184
|
},
|
|
2185
|
-
set fallbackWarn(
|
|
2186
|
-
|
|
2185
|
+
set fallbackWarn(p) {
|
|
2186
|
+
F = p, v.fallbackWarn = F;
|
|
2187
2187
|
},
|
|
2188
2188
|
get fallbackRoot() {
|
|
2189
2189
|
return w;
|
|
2190
2190
|
},
|
|
2191
|
-
set fallbackRoot(
|
|
2192
|
-
w =
|
|
2191
|
+
set fallbackRoot(p) {
|
|
2192
|
+
w = p;
|
|
2193
2193
|
},
|
|
2194
2194
|
get fallbackFormat() {
|
|
2195
2195
|
return L;
|
|
2196
2196
|
},
|
|
2197
|
-
set fallbackFormat(
|
|
2198
|
-
L =
|
|
2197
|
+
set fallbackFormat(p) {
|
|
2198
|
+
L = p, v.fallbackFormat = L;
|
|
2199
2199
|
},
|
|
2200
2200
|
get warnHtmlMessage() {
|
|
2201
2201
|
return S;
|
|
2202
2202
|
},
|
|
2203
|
-
set warnHtmlMessage(
|
|
2204
|
-
S =
|
|
2203
|
+
set warnHtmlMessage(p) {
|
|
2204
|
+
S = p, v.warnHtmlMessage = p;
|
|
2205
2205
|
},
|
|
2206
2206
|
get escapeParameter() {
|
|
2207
2207
|
return c;
|
|
2208
2208
|
},
|
|
2209
|
-
set escapeParameter(
|
|
2210
|
-
c =
|
|
2209
|
+
set escapeParameter(p) {
|
|
2210
|
+
c = p, v.escapeParameter = p;
|
|
2211
2211
|
},
|
|
2212
2212
|
t: B,
|
|
2213
|
-
getLocaleMessage:
|
|
2213
|
+
getLocaleMessage: Fe,
|
|
2214
2214
|
setLocaleMessage: Ce,
|
|
2215
2215
|
mergeLocaleMessage: Ze,
|
|
2216
|
-
getPostTranslationHandler:
|
|
2216
|
+
getPostTranslationHandler: x,
|
|
2217
2217
|
setPostTranslationHandler: j,
|
|
2218
2218
|
getMissingHandler: G,
|
|
2219
2219
|
setMissingHandler: W,
|
|
2220
|
-
[yo]:
|
|
2220
|
+
[yo]: ve
|
|
2221
2221
|
};
|
|
2222
|
-
return P.datetimeFormats = C, P.numberFormats = U, P.rt = ne, P.te = Je, P.tm =
|
|
2222
|
+
return P.datetimeFormats = C, P.numberFormats = U, P.rt = ne, P.te = Je, P.tm = xe, P.d = Q, P.n = _e, P.getDateTimeFormat = O, P.setDateTimeFormat = s, P.mergeDateTimeFormat = o, P.getNumberFormat = _, P.setNumberFormat = A, P.mergeNumberFormat = M, P[rr] = n, P[Vt] = q, P[Wt] = K, P[Gt] = De, P;
|
|
2223
2223
|
}
|
|
2224
2224
|
const qt = {
|
|
2225
2225
|
tag: {
|
|
@@ -2270,12 +2270,12 @@ function lr(e, t, n, r) {
|
|
|
2270
2270
|
return () => {
|
|
2271
2271
|
const d = { part: !0 };
|
|
2272
2272
|
let u = oe();
|
|
2273
|
-
e.locale && (d.locale = e.locale), Y(e.format) ? d.key = e.format : te(e.format) && (Y(e.format.key) && (d.key = e.format.key), u = Object.keys(e.format).reduce((N,
|
|
2273
|
+
e.locale && (d.locale = e.locale), Y(e.format) ? d.key = e.format : te(e.format) && (Y(e.format.key) && (d.key = e.format.key), u = Object.keys(e.format).reduce((N, F) => n.includes(F) ? Ie(oe(), N, { [F]: e.format[F] }) : N, oe()));
|
|
2274
2274
|
const i = r(e.value, d, u);
|
|
2275
2275
|
let g = [d.key];
|
|
2276
|
-
be(i) ? g = i.map((N,
|
|
2277
|
-
const w = l[N.type], L = w ? w({ [N.type]: N.value, index:
|
|
2278
|
-
return So(L) && (L[0].key = `${N.type}-${
|
|
2276
|
+
be(i) ? g = i.map((N, F) => {
|
|
2277
|
+
const w = l[N.type], L = w ? w({ [N.type]: N.value, index: F, parts: i }) : [N.value];
|
|
2278
|
+
return So(L) && (L[0].key = `${N.type}-${F}`), L;
|
|
2279
2279
|
}) : Y(i) && (g = [i]);
|
|
2280
2280
|
const y = Ie(oe(), a), T = Y(e.tag) || te(e.tag) ? e.tag : ar();
|
|
2281
2281
|
return Wn(T, y, g);
|
|
@@ -2299,14 +2299,14 @@ Ie({
|
|
|
2299
2299
|
type: [String, Object]
|
|
2300
2300
|
}
|
|
2301
2301
|
}, qt);
|
|
2302
|
-
const
|
|
2302
|
+
const Ro = /* @__PURE__ */ $e("global-vue-i18n");
|
|
2303
2303
|
function St(e = {}) {
|
|
2304
2304
|
const t = Bt();
|
|
2305
2305
|
if (t == null)
|
|
2306
2306
|
throw ut(at.MUST_BE_CALL_SETUP_TOP);
|
|
2307
2307
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2308
2308
|
throw ut(at.NOT_INSTALLED);
|
|
2309
|
-
const n = Lo(t), r = ko(n), l = or(t), a =
|
|
2309
|
+
const n = Lo(t), r = ko(n), l = or(t), a = Ao(e, l);
|
|
2310
2310
|
if (a === "global")
|
|
2311
2311
|
return Eo(r, e, l), r;
|
|
2312
2312
|
if (a === "parent") {
|
|
@@ -2317,17 +2317,17 @@ function St(e = {}) {
|
|
|
2317
2317
|
let u = d.__getInstance(t);
|
|
2318
2318
|
if (u == null) {
|
|
2319
2319
|
const i = Ie({}, e);
|
|
2320
|
-
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u = To(i), d.__composerExtend && (u[Yt] = d.__composerExtend(u)),
|
|
2320
|
+
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u = To(i), d.__composerExtend && (u[Yt] = d.__composerExtend(u)), Do(d, t, u), d.__setInstance(t, u);
|
|
2321
2321
|
}
|
|
2322
2322
|
return u;
|
|
2323
2323
|
}
|
|
2324
2324
|
function Lo(e) {
|
|
2325
|
-
const t = ur(e.isCE ?
|
|
2325
|
+
const t = ur(e.isCE ? Ro : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2326
2326
|
if (!t)
|
|
2327
2327
|
throw ut(e.isCE ? at.NOT_INSTALLED_WITH_PROVIDE : at.UNEXPECTED_ERROR);
|
|
2328
2328
|
return t;
|
|
2329
2329
|
}
|
|
2330
|
-
function
|
|
2330
|
+
function Ao(e, t) {
|
|
2331
2331
|
return Ct(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2332
2332
|
}
|
|
2333
2333
|
function ko(e) {
|
|
@@ -2354,8 +2354,8 @@ function Mo(e, t, n = !1) {
|
|
|
2354
2354
|
function wo(e, t = !1) {
|
|
2355
2355
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2356
2356
|
}
|
|
2357
|
-
function
|
|
2358
|
-
|
|
2357
|
+
function Do(e, t, n) {
|
|
2358
|
+
Vn(() => {
|
|
2359
2359
|
}, t), mr(() => {
|
|
2360
2360
|
const r = n;
|
|
2361
2361
|
e.__deleteInstance(t);
|
|
@@ -2371,7 +2371,7 @@ if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
|
2371
2371
|
const e = Xe();
|
|
2372
2372
|
e.__INTLIFY__ = !0, Ms(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2373
2373
|
}
|
|
2374
|
-
const
|
|
2374
|
+
const pt = /* @__PURE__ */ Le({
|
|
2375
2375
|
__name: "InheritPermissionTooltip",
|
|
2376
2376
|
props: {
|
|
2377
2377
|
item: {
|
|
@@ -2420,7 +2420,7 @@ function Mn(e, t, n) {
|
|
|
2420
2420
|
actions: Array.from(a)
|
|
2421
2421
|
});
|
|
2422
2422
|
}
|
|
2423
|
-
const wn = Object.values(Sr),
|
|
2423
|
+
const wn = Object.values(Sr), Fo = {
|
|
2424
2424
|
read: "View",
|
|
2425
2425
|
create: "Duplicate",
|
|
2426
2426
|
update: "Edit"
|
|
@@ -2449,25 +2449,25 @@ function Po(e, t, n, r) {
|
|
|
2449
2449
|
}).map((G) => {
|
|
2450
2450
|
const W = m.get(G), Z = l(`permissionSet.categoryLabels.${G}`, G), B = /* @__PURE__ */ new Map();
|
|
2451
2451
|
for (const K of W) {
|
|
2452
|
-
const
|
|
2453
|
-
|
|
2452
|
+
const ve = C.get(K.value);
|
|
2453
|
+
ve && B.set(K.value, ve.actions);
|
|
2454
2454
|
}
|
|
2455
2455
|
const ne = W.some((K) => {
|
|
2456
|
-
const
|
|
2457
|
-
return
|
|
2456
|
+
const ve = B.get(K.value);
|
|
2457
|
+
return ve && ve.length > 1;
|
|
2458
2458
|
}), Q = ne ? [
|
|
2459
2459
|
...new Set(
|
|
2460
2460
|
W.flatMap((K) => B.get(K.value) ?? []).filter((K) => K !== "manage")
|
|
2461
2461
|
)
|
|
2462
2462
|
] : [], _e = /* @__PURE__ */ new Map();
|
|
2463
2463
|
for (const K of e.value)
|
|
2464
|
-
W.some((
|
|
2464
|
+
W.some((ve) => ve.value === K.subject) && !K.inverted && _e.set(K.subject, new Set(K.actions));
|
|
2465
2465
|
const ce = ne ? e.value.filter(
|
|
2466
|
-
(K) => W.some((
|
|
2467
|
-
).map((K) => K.subject) : e.value.filter((K) => W.some((
|
|
2468
|
-
var
|
|
2469
|
-
return (
|
|
2470
|
-
}), fe = (se == null ? void 0 : se.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(),
|
|
2466
|
+
(K) => W.some((ve) => ve.value === K.subject) && !K.inverted && K.actions.includes("manage")
|
|
2467
|
+
).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) => {
|
|
2468
|
+
var ve;
|
|
2469
|
+
return (ve = C.get(K.value)) == null ? void 0 : ve.isCategoryCover;
|
|
2470
|
+
}), fe = (se == null ? void 0 : se.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), De = q.has("manage");
|
|
2471
2471
|
return {
|
|
2472
2472
|
category: G,
|
|
2473
2473
|
label: Z,
|
|
@@ -2479,12 +2479,12 @@ function Po(e, t, n, r) {
|
|
|
2479
2479
|
selectedActionsMap: _e,
|
|
2480
2480
|
coverSubject: fe,
|
|
2481
2481
|
coverSelectedActions: q,
|
|
2482
|
-
coverCoversAll:
|
|
2482
|
+
coverCoversAll: De
|
|
2483
2483
|
};
|
|
2484
2484
|
});
|
|
2485
2485
|
});
|
|
2486
2486
|
function i(m, C) {
|
|
2487
|
-
const U = u.value.find((Q) => Q.category === m),
|
|
2487
|
+
const U = u.value.find((Q) => Q.category === m), x = (U == null ? void 0 : U.options) ?? [], j = new Set(x.map((Q) => Q.value)), G = new Set(C), W = /* @__PURE__ */ new Map();
|
|
2488
2488
|
for (const Q of e.value)
|
|
2489
2489
|
j.has(Q.subject) && !Q.inverted && W.set(Q.subject, Q.conditions);
|
|
2490
2490
|
const Z = U != null && U.coverSubject ? W.get(U.coverSubject) : void 0, B = /* @__PURE__ */ new Set(), ne = t.value.flatMap(
|
|
@@ -2504,7 +2504,7 @@ function Po(e, t, n, r) {
|
|
|
2504
2504
|
]);
|
|
2505
2505
|
}
|
|
2506
2506
|
function g(m, C) {
|
|
2507
|
-
return
|
|
2507
|
+
return F(m, C) || c(m, C);
|
|
2508
2508
|
}
|
|
2509
2509
|
function y(m) {
|
|
2510
2510
|
return m.options.length > 0 && m.options.every((C) => g(m, C.value));
|
|
@@ -2515,20 +2515,20 @@ function Po(e, t, n, r) {
|
|
|
2515
2515
|
);
|
|
2516
2516
|
}
|
|
2517
2517
|
function N(m) {
|
|
2518
|
-
const C = new Set(m.options.map((
|
|
2518
|
+
const C = new Set(m.options.map((x) => x.value)), U = e.value.filter((x) => !C.has(x.subject));
|
|
2519
2519
|
if (y(m))
|
|
2520
2520
|
r("update:model-value", U);
|
|
2521
2521
|
else {
|
|
2522
|
-
const
|
|
2522
|
+
const x = /* @__PURE__ */ new Map();
|
|
2523
2523
|
for (const Z of e.value)
|
|
2524
|
-
C.has(Z.subject) && !Z.inverted &&
|
|
2525
|
-
const j = m.coverSubject ?
|
|
2524
|
+
C.has(Z.subject) && !Z.inverted && x.set(Z.subject, Z.conditions);
|
|
2525
|
+
const j = m.coverSubject ? x.get(m.coverSubject) : void 0, G = /* @__PURE__ */ new Set(), W = t.value.flatMap(
|
|
2526
2526
|
({ category: Z, showByFeatureFlag: B, isCategoryCover: ne, ...Q }) => {
|
|
2527
2527
|
const _e = Q.subject;
|
|
2528
2528
|
if (!C.has(_e) || G.has(_e)) return [];
|
|
2529
2529
|
G.add(_e);
|
|
2530
2530
|
let ce;
|
|
2531
|
-
return
|
|
2531
|
+
return x.has(_e) ? ce = x.get(_e) : m.coverSubject && _e !== m.coverSubject && (ce = j), [
|
|
2532
2532
|
{ ...Q, ...ce !== void 0 && { conditions: ce } }
|
|
2533
2533
|
];
|
|
2534
2534
|
}
|
|
@@ -2536,7 +2536,7 @@ function Po(e, t, n, r) {
|
|
|
2536
2536
|
r("update:model-value", [...U, ...W]);
|
|
2537
2537
|
}
|
|
2538
2538
|
}
|
|
2539
|
-
function
|
|
2539
|
+
function F(m, C) {
|
|
2540
2540
|
const U = m.selectedActionsMap.get(C);
|
|
2541
2541
|
return U ? U.has("manage") : !1;
|
|
2542
2542
|
}
|
|
@@ -2547,25 +2547,25 @@ function Po(e, t, n, r) {
|
|
|
2547
2547
|
) : [];
|
|
2548
2548
|
}
|
|
2549
2549
|
function L(m, C) {
|
|
2550
|
-
return c(m, C) ? !1 : !
|
|
2550
|
+
return c(m, C) ? !1 : !F(m, C) && w(m, C).length > 0;
|
|
2551
2551
|
}
|
|
2552
|
-
function
|
|
2552
|
+
function D(m, C) {
|
|
2553
2553
|
if (!m.coverSubject || C === m.coverSubject) return;
|
|
2554
2554
|
const U = e.value.find(
|
|
2555
|
-
(
|
|
2555
|
+
(x) => !x.inverted && x.subject === m.coverSubject
|
|
2556
2556
|
);
|
|
2557
2557
|
return (U == null ? void 0 : U.conditions) || void 0;
|
|
2558
2558
|
}
|
|
2559
2559
|
function f(m, C, U) {
|
|
2560
2560
|
if (U) {
|
|
2561
|
-
const
|
|
2562
|
-
if (!
|
|
2561
|
+
const x = t.value.find((Q) => Q.subject === C);
|
|
2562
|
+
if (!x) return;
|
|
2563
2563
|
const {
|
|
2564
2564
|
category: j,
|
|
2565
2565
|
showByFeatureFlag: G,
|
|
2566
2566
|
isCategoryCover: W,
|
|
2567
2567
|
...Z
|
|
2568
|
-
} =
|
|
2568
|
+
} = x, B = D(m, C), ne = e.value.filter((Q) => Q.subject !== C);
|
|
2569
2569
|
ne.push({
|
|
2570
2570
|
...Z,
|
|
2571
2571
|
...B !== void 0 && { conditions: B }
|
|
@@ -2573,16 +2573,16 @@ function Po(e, t, n, r) {
|
|
|
2573
2573
|
} else
|
|
2574
2574
|
r(
|
|
2575
2575
|
"update:model-value",
|
|
2576
|
-
e.value.filter((
|
|
2576
|
+
e.value.filter((x) => x.subject !== C)
|
|
2577
2577
|
);
|
|
2578
2578
|
}
|
|
2579
2579
|
function h(m, C) {
|
|
2580
2580
|
const U = m.permissionActionsMap.get(C);
|
|
2581
|
-
return U ? U.some((
|
|
2581
|
+
return U ? U.some((x) => x !== "manage") : !1;
|
|
2582
2582
|
}
|
|
2583
2583
|
function S(m, C, U) {
|
|
2584
|
-
const
|
|
2585
|
-
return
|
|
2584
|
+
const x = m.selectedActionsMap.get(C);
|
|
2585
|
+
return x ? x.has(U) : !1;
|
|
2586
2586
|
}
|
|
2587
2587
|
function c(m, C) {
|
|
2588
2588
|
return !m.coverSubject || C === m.coverSubject ? !1 : m.coverCoversAll;
|
|
@@ -2591,15 +2591,15 @@ function Po(e, t, n, r) {
|
|
|
2591
2591
|
return !m.coverSubject || C === m.coverSubject ? !1 : m.coverCoversAll ? !0 : m.coverSelectedActions.has(U);
|
|
2592
2592
|
}
|
|
2593
2593
|
function I(m, C, U) {
|
|
2594
|
-
const
|
|
2595
|
-
return
|
|
2594
|
+
const x = m.permissionActionsMap.get(C);
|
|
2595
|
+
return x ? x.includes(U) : !1;
|
|
2596
2596
|
}
|
|
2597
|
-
function
|
|
2598
|
-
const
|
|
2597
|
+
function v(m, C, U) {
|
|
2598
|
+
const x = [...e.value], j = x.findIndex((W) => W.subject === m && !W.inverted);
|
|
2599
2599
|
if (U)
|
|
2600
2600
|
if (j >= 0) {
|
|
2601
|
-
const W = { ...
|
|
2602
|
-
Z.add(C), W.actions = Array.from(Z),
|
|
2601
|
+
const W = { ...x[j] }, Z = new Set(W.actions);
|
|
2602
|
+
Z.add(C), W.actions = Array.from(Z), x[j] = W;
|
|
2603
2603
|
} else {
|
|
2604
2604
|
const W = t.value.find((se) => se.subject === m);
|
|
2605
2605
|
if (!W) return;
|
|
@@ -2610,49 +2610,49 @@ function Po(e, t, n, r) {
|
|
|
2610
2610
|
...Q
|
|
2611
2611
|
} = W, _e = u.value.find(
|
|
2612
2612
|
(se) => se.options.some((fe) => fe.value === m)
|
|
2613
|
-
), ce = _e ?
|
|
2614
|
-
|
|
2613
|
+
), ce = _e ? D(_e, m) : void 0;
|
|
2614
|
+
x.push({
|
|
2615
2615
|
...Q,
|
|
2616
2616
|
actions: [C],
|
|
2617
2617
|
...ce !== void 0 && { conditions: ce }
|
|
2618
2618
|
});
|
|
2619
2619
|
}
|
|
2620
2620
|
else if (j >= 0) {
|
|
2621
|
-
const W = { ...
|
|
2622
|
-
Z.length === 0 ?
|
|
2621
|
+
const W = { ...x[j] }, Z = W.actions.filter((B) => B !== C);
|
|
2622
|
+
Z.length === 0 ? x.splice(j, 1) : (W.actions = Z, x[j] = W);
|
|
2623
2623
|
}
|
|
2624
2624
|
const G = t.value.find((W) => W.subject === m);
|
|
2625
|
-
G && Mn(
|
|
2625
|
+
G && Mn(x, m, G.actions), r("update:model-value", x);
|
|
2626
2626
|
}
|
|
2627
2627
|
function k(m, C) {
|
|
2628
2628
|
const U = m.options.filter(
|
|
2629
|
-
(
|
|
2629
|
+
(x) => I(m, x.value, C)
|
|
2630
2630
|
);
|
|
2631
2631
|
return U.length === 0 ? !1 : U.every(
|
|
2632
|
-
(
|
|
2632
|
+
(x) => S(m, x.value, C) || b(m, x.value, C)
|
|
2633
2633
|
);
|
|
2634
2634
|
}
|
|
2635
|
-
function
|
|
2635
|
+
function R(m, C) {
|
|
2636
2636
|
const U = m.options.filter(
|
|
2637
2637
|
(j) => I(m, j.value, C)
|
|
2638
2638
|
);
|
|
2639
2639
|
if (U.length === 0) return !1;
|
|
2640
|
-
const
|
|
2640
|
+
const x = U.filter(
|
|
2641
2641
|
(j) => S(m, j.value, C) || b(m, j.value, C)
|
|
2642
2642
|
).length;
|
|
2643
|
-
return
|
|
2643
|
+
return x > 0 && x < U.length;
|
|
2644
2644
|
}
|
|
2645
2645
|
function X(m, C, U) {
|
|
2646
|
-
const
|
|
2646
|
+
const x = [...e.value];
|
|
2647
2647
|
for (const j of m.options) {
|
|
2648
2648
|
if (!I(m, j.value, C)) continue;
|
|
2649
|
-
const G = j.value, W =
|
|
2649
|
+
const G = j.value, W = x.findIndex(
|
|
2650
2650
|
(B) => B.subject === G && !B.inverted
|
|
2651
2651
|
);
|
|
2652
2652
|
if (U)
|
|
2653
2653
|
if (W >= 0) {
|
|
2654
|
-
const B = { ...
|
|
2655
|
-
ne.add(C), B.actions = Array.from(ne),
|
|
2654
|
+
const B = { ...x[W] }, ne = new Set(B.actions);
|
|
2655
|
+
ne.add(C), B.actions = Array.from(ne), x[W] = B;
|
|
2656
2656
|
} else {
|
|
2657
2657
|
const B = t.value.find((fe) => fe.subject === G);
|
|
2658
2658
|
if (!B) continue;
|
|
@@ -2661,24 +2661,24 @@ function Po(e, t, n, r) {
|
|
|
2661
2661
|
showByFeatureFlag: Q,
|
|
2662
2662
|
isCategoryCover: _e,
|
|
2663
2663
|
...ce
|
|
2664
|
-
} = B, se =
|
|
2665
|
-
|
|
2664
|
+
} = B, se = D(m, G);
|
|
2665
|
+
x.push({
|
|
2666
2666
|
...ce,
|
|
2667
2667
|
actions: [C],
|
|
2668
2668
|
...se !== void 0 && { conditions: se }
|
|
2669
2669
|
});
|
|
2670
2670
|
}
|
|
2671
2671
|
else if (W >= 0) {
|
|
2672
|
-
const B = { ...
|
|
2673
|
-
ne.length === 0 ?
|
|
2672
|
+
const B = { ...x[W] }, ne = B.actions.filter((Q) => Q !== C);
|
|
2673
|
+
ne.length === 0 ? x.splice(W, 1) : (B.actions = ne, x[W] = B);
|
|
2674
2674
|
}
|
|
2675
2675
|
const Z = t.value.find((B) => B.subject === G);
|
|
2676
|
-
Z && Mn(
|
|
2676
|
+
Z && Mn(x, G, Z.actions);
|
|
2677
2677
|
}
|
|
2678
|
-
r("update:model-value",
|
|
2678
|
+
r("update:model-value", x);
|
|
2679
2679
|
}
|
|
2680
|
-
function
|
|
2681
|
-
const C = `permissionSet.actionLabels.${m}`, U =
|
|
2680
|
+
function V(m) {
|
|
2681
|
+
const C = `permissionSet.actionLabels.${m}`, U = Fo[m] ?? m.charAt(0).toUpperCase() + m.slice(1);
|
|
2682
2682
|
return l(C, U);
|
|
2683
2683
|
}
|
|
2684
2684
|
return {
|
|
@@ -2687,7 +2687,7 @@ function Po(e, t, n, r) {
|
|
|
2687
2687
|
isAllManageChecked: y,
|
|
2688
2688
|
isAllManageIndeterminate: T,
|
|
2689
2689
|
toggleAllManage: N,
|
|
2690
|
-
isManageChecked:
|
|
2690
|
+
isManageChecked: F,
|
|
2691
2691
|
isManageIndeterminate: L,
|
|
2692
2692
|
toggleManage: f,
|
|
2693
2693
|
hasNonManageActions: h,
|
|
@@ -2695,14 +2695,14 @@ function Po(e, t, n, r) {
|
|
|
2695
2695
|
isRowFullyCoveredByCover: c,
|
|
2696
2696
|
isActionCoveredByCover: b,
|
|
2697
2697
|
permissionDefinesAction: I,
|
|
2698
|
-
toggleAction:
|
|
2698
|
+
toggleAction: v,
|
|
2699
2699
|
isAllActionChecked: k,
|
|
2700
|
-
isAllActionIndeterminate:
|
|
2700
|
+
isAllActionIndeterminate: R,
|
|
2701
2701
|
toggleAllAction: X,
|
|
2702
|
-
actionLabel:
|
|
2702
|
+
actionLabel: V
|
|
2703
2703
|
};
|
|
2704
2704
|
}
|
|
2705
|
-
const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm-600" },
|
|
2705
|
+
const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm-600" }, xo = { class: "mt-16" }, Vo = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Wo = ["onClick"], Go = { class: "flex justify-center" }, Yo = { class: "flex items-center min-w-0 gap-8" }, Zo = ["title", "onClick"], Bo = { class: "flex justify-center" }, Xo = /* @__PURE__ */ Le({
|
|
2706
2706
|
__name: "BasePermission",
|
|
2707
2707
|
props: {
|
|
2708
2708
|
modelValue: {
|
|
@@ -2732,10 +2732,10 @@ const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm
|
|
|
2732
2732
|
isManageChecked: y,
|
|
2733
2733
|
isManageIndeterminate: T,
|
|
2734
2734
|
toggleManage: N,
|
|
2735
|
-
isActionChecked:
|
|
2735
|
+
isActionChecked: F,
|
|
2736
2736
|
isRowFullyCoveredByCover: w,
|
|
2737
2737
|
isActionCoveredByCover: L,
|
|
2738
|
-
permissionDefinesAction:
|
|
2738
|
+
permissionDefinesAction: D,
|
|
2739
2739
|
toggleAction: f,
|
|
2740
2740
|
isAllActionChecked: h,
|
|
2741
2741
|
isAllActionIndeterminate: S,
|
|
@@ -2745,38 +2745,38 @@ const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm
|
|
|
2745
2745
|
en(n, "modelValue"),
|
|
2746
2746
|
a,
|
|
2747
2747
|
en(n, "excludedSubjects"),
|
|
2748
|
-
(k,
|
|
2748
|
+
(k, R) => r("update:model-value", R)
|
|
2749
2749
|
);
|
|
2750
2750
|
function I(k) {
|
|
2751
|
-
const
|
|
2752
|
-
return
|
|
2751
|
+
const R = k.selectedSubjects.length;
|
|
2752
|
+
return R === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: R });
|
|
2753
2753
|
}
|
|
2754
|
-
function
|
|
2755
|
-
return y(k,
|
|
2756
|
-
(X) =>
|
|
2754
|
+
function v(k, R) {
|
|
2755
|
+
return y(k, R) || w(k, R) ? !0 : k.actionColumns.some(
|
|
2756
|
+
(X) => D(k, R, X) && (F(k, R, X) || L(k, R, X))
|
|
2757
2757
|
);
|
|
2758
2758
|
}
|
|
2759
|
-
return (k,
|
|
2759
|
+
return (k, R) => {
|
|
2760
2760
|
const X = we("FmCheckbox");
|
|
2761
2761
|
return J(), ie("div", jo, [
|
|
2762
|
-
(J(!0), ie(ke, null, Ee(H(d), (
|
|
2763
|
-
key:
|
|
2764
|
-
subtitle: I(
|
|
2762
|
+
(J(!0), ie(ke, null, Ee(H(d), (V) => (J(), Ne(Xt, {
|
|
2763
|
+
key: V.category,
|
|
2764
|
+
subtitle: I(V)
|
|
2765
2765
|
}, {
|
|
2766
2766
|
title: de(() => [
|
|
2767
|
-
ae("p", Uo, Oe(
|
|
2767
|
+
ae("p", Uo, Oe(V.label), 1)
|
|
2768
2768
|
]),
|
|
2769
2769
|
default: de(() => [
|
|
2770
|
-
ae("div",
|
|
2770
|
+
ae("div", xo, [
|
|
2771
2771
|
ae("div", {
|
|
2772
2772
|
class: "grid items-center px-12 py-8",
|
|
2773
2773
|
style: nt({
|
|
2774
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2774
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${V.actionColumns.length + 1}, 80px)`
|
|
2775
2775
|
})
|
|
2776
2776
|
}, [
|
|
2777
|
-
|
|
2778
|
-
ae("div",
|
|
2779
|
-
(J(!0), ie(ke, null, Ee(
|
|
2777
|
+
R[0] || (R[0] = ae("div", null, null, -1)),
|
|
2778
|
+
ae("div", Vo, Oe(H(l)("team.memberForm.permissions.columnManage")), 1),
|
|
2779
|
+
(J(!0), ie(ke, null, Ee(V.actionColumns, (m) => (J(), ie("div", {
|
|
2780
2780
|
key: `header-${m}`,
|
|
2781
2781
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2782
2782
|
}, Oe(H(b)(m)), 1))), 128))
|
|
@@ -2784,83 +2784,83 @@ const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm
|
|
|
2784
2784
|
ae("div", {
|
|
2785
2785
|
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
2786
2786
|
style: nt({
|
|
2787
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2787
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${V.actionColumns.length + 1}, 80px)`
|
|
2788
2788
|
})
|
|
2789
2789
|
}, [
|
|
2790
2790
|
ae("div", {
|
|
2791
2791
|
class: "cursor-pointer font-semibold",
|
|
2792
|
-
onClick: (m) => !e.disable && H(g)(
|
|
2792
|
+
onClick: (m) => !e.disable && H(g)(V)
|
|
2793
2793
|
}, Oe(H(l)("team.labels.all")), 9, Wo),
|
|
2794
2794
|
ae("div", Go, [
|
|
2795
2795
|
ue(X, {
|
|
2796
|
-
"model-value": H(u)(
|
|
2797
|
-
indeterminate: H(i)(
|
|
2796
|
+
"model-value": H(u)(V),
|
|
2797
|
+
indeterminate: H(i)(V),
|
|
2798
2798
|
value: !0,
|
|
2799
2799
|
disabled: e.disable,
|
|
2800
2800
|
size: "sm",
|
|
2801
2801
|
dense: "",
|
|
2802
|
-
"onUpdate:modelValue": (m) => H(g)(
|
|
2802
|
+
"onUpdate:modelValue": (m) => H(g)(V)
|
|
2803
2803
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2804
2804
|
]),
|
|
2805
|
-
(J(!0), ie(ke, null, Ee(
|
|
2805
|
+
(J(!0), ie(ke, null, Ee(V.actionColumns, (m) => (J(), ie("div", {
|
|
2806
2806
|
key: `all-${m}`,
|
|
2807
2807
|
class: "flex justify-center"
|
|
2808
2808
|
}, [
|
|
2809
2809
|
ue(X, {
|
|
2810
|
-
"model-value": H(h)(
|
|
2811
|
-
indeterminate: H(S)(
|
|
2810
|
+
"model-value": H(h)(V, m),
|
|
2811
|
+
indeterminate: H(S)(V, m),
|
|
2812
2812
|
value: m,
|
|
2813
2813
|
disabled: e.disable,
|
|
2814
2814
|
size: "sm",
|
|
2815
2815
|
dense: "",
|
|
2816
|
-
"onUpdate:modelValue": (C) => H(c)(
|
|
2816
|
+
"onUpdate:modelValue": (C) => H(c)(V, m, C)
|
|
2817
2817
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2818
2818
|
]))), 128))
|
|
2819
2819
|
], 4),
|
|
2820
|
-
|
|
2821
|
-
(J(!0), ie(ke, null, Ee(
|
|
2820
|
+
R[1] || (R[1] = ae("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2821
|
+
(J(!0), ie(ke, null, Ee(V.options, (m) => (J(), ie("div", {
|
|
2822
2822
|
key: m.optionKey,
|
|
2823
2823
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2824
2824
|
style: nt({
|
|
2825
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2825
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${V.actionColumns.length + 1}, 80px)`
|
|
2826
2826
|
})
|
|
2827
2827
|
}, [
|
|
2828
2828
|
ae("div", Yo, [
|
|
2829
2829
|
ae("span", {
|
|
2830
2830
|
class: "block truncate cursor-pointer",
|
|
2831
2831
|
title: m.label,
|
|
2832
|
-
onClick: (C) => !e.disable && !H(w)(
|
|
2832
|
+
onClick: (C) => !e.disable && !H(w)(V, m.value) && H(N)(V, m.value, !H(y)(V, m.value))
|
|
2833
2833
|
}, Oe(m.label), 9, Zo),
|
|
2834
2834
|
Se(k.$slots, `checkbox-${m.value}-append`, {
|
|
2835
2835
|
option: m,
|
|
2836
|
-
isEffectiveSelected:
|
|
2837
|
-
isCoveredByCover: H(w)(
|
|
2836
|
+
isEffectiveSelected: v(V, m.value),
|
|
2837
|
+
isCoveredByCover: H(w)(V, m.value) || V.actionColumns.some((C) => H(L)(V, m.value, C))
|
|
2838
2838
|
}),
|
|
2839
2839
|
Se(k.$slots, `checkbox-${m.value}-icon`, {
|
|
2840
2840
|
option: m,
|
|
2841
|
-
isEffectiveSelected:
|
|
2842
|
-
isCoveredByCover: H(w)(
|
|
2841
|
+
isEffectiveSelected: v(V, m.value),
|
|
2842
|
+
isCoveredByCover: H(w)(V, m.value) || V.actionColumns.some((C) => H(L)(V, m.value, C))
|
|
2843
2843
|
})
|
|
2844
2844
|
]),
|
|
2845
2845
|
ae("div", Bo, [
|
|
2846
2846
|
ue(X, {
|
|
2847
|
-
"model-value": H(y)(
|
|
2847
|
+
"model-value": H(y)(V, m.value) || H(w)(V, m.value),
|
|
2848
2848
|
value: m.value,
|
|
2849
|
-
disabled: e.disable || H(w)(
|
|
2850
|
-
indeterminate: H(T)(
|
|
2849
|
+
disabled: e.disable || H(w)(V, m.value),
|
|
2850
|
+
indeterminate: H(T)(V, m.value),
|
|
2851
2851
|
size: "sm",
|
|
2852
|
-
"onUpdate:modelValue": (C) => H(N)(
|
|
2852
|
+
"onUpdate:modelValue": (C) => H(N)(V, m.value, C)
|
|
2853
2853
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2854
2854
|
]),
|
|
2855
|
-
(J(!0), ie(ke, null, Ee(
|
|
2855
|
+
(J(!0), ie(ke, null, Ee(V.actionColumns, (C) => (J(), ie("div", {
|
|
2856
2856
|
key: `${m.optionKey}-${C}`,
|
|
2857
2857
|
class: "flex justify-center"
|
|
2858
2858
|
}, [
|
|
2859
|
-
H(
|
|
2859
|
+
H(D)(V, m.value, C) ? (J(), Ne(X, {
|
|
2860
2860
|
key: 0,
|
|
2861
|
-
"model-value": H(
|
|
2861
|
+
"model-value": H(F)(V, m.value, C) || H(L)(V, m.value, C),
|
|
2862
2862
|
value: C,
|
|
2863
|
-
disabled: e.disable || H(L)(
|
|
2863
|
+
disabled: e.disable || H(L)(V, m.value, C),
|
|
2864
2864
|
size: "sm",
|
|
2865
2865
|
"onUpdate:modelValue": (U) => H(f)(m.value, C, U)
|
|
2866
2866
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Me("", !0)
|
|
@@ -2981,25 +2981,25 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
2981
2981
|
},
|
|
2982
2982
|
emits: ["update:model-value"],
|
|
2983
2983
|
setup(e, { emit: t }) {
|
|
2984
|
-
const n = e, r = t, { t: l } = He(), a = rt(!1), d =
|
|
2985
|
-
() => n.modelValue.filter((L) => n.options.some((
|
|
2984
|
+
const n = e, r = t, { t: l } = He(), a = rt(!1), d = 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-${Qo(6)}`, g = z(() => u.value !== !0), y = z(
|
|
2985
|
+
() => n.modelValue.filter((L) => n.options.some((D) => D.value === L))
|
|
2986
2986
|
), T = z(
|
|
2987
2987
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2988
2988
|
), N = z(() => n.options.length > 0 && n.options.length === y.value.length);
|
|
2989
|
-
function
|
|
2990
|
-
const L = n.modelValue.filter((
|
|
2989
|
+
function F() {
|
|
2990
|
+
const L = n.modelValue.filter((D) => !y.value.includes(D));
|
|
2991
2991
|
if (N.value === !0)
|
|
2992
2992
|
r("update:model-value", L);
|
|
2993
2993
|
else {
|
|
2994
|
-
const
|
|
2995
|
-
r("update:model-value", [...L, ...
|
|
2994
|
+
const D = n.includeDisabledOptionsWhenSelectAll ? n.options.map((f) => f.value) : n.options.filter((f) => !f.disabled).map((f) => f.value);
|
|
2995
|
+
r("update:model-value", [...L, ...D]);
|
|
2996
2996
|
}
|
|
2997
2997
|
}
|
|
2998
|
-
function w(L,
|
|
2998
|
+
function w(L, D) {
|
|
2999
2999
|
let f = It(n.modelValue);
|
|
3000
|
-
|
|
3000
|
+
D ? f.every((h) => h !== L) && f.push(L) : f = f.filter((h) => h !== L), r("update:model-value", f);
|
|
3001
3001
|
}
|
|
3002
|
-
return (L,
|
|
3002
|
+
return (L, D) => {
|
|
3003
3003
|
const f = we("FmCheckbox");
|
|
3004
3004
|
return J(), Ne(zo, {
|
|
3005
3005
|
id: i,
|
|
@@ -3019,7 +3019,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3019
3019
|
size: "sm",
|
|
3020
3020
|
dense: "",
|
|
3021
3021
|
value: T.value,
|
|
3022
|
-
"onUpdate:modelValue":
|
|
3022
|
+
"onUpdate:modelValue": F
|
|
3023
3023
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Me("", !0),
|
|
3024
3024
|
(J(!0), ie(ke, null, Ee(e.options, (h, S) => (J(), ie("div", {
|
|
3025
3025
|
key: h.value,
|
|
@@ -3072,7 +3072,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3072
3072
|
}, 8, ["title"]);
|
|
3073
3073
|
};
|
|
3074
3074
|
}
|
|
3075
|
-
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture",
|
|
3075
|
+
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture", Dn = /* @__PURE__ */ Le({
|
|
3076
3076
|
__name: "ConditionPermission",
|
|
3077
3077
|
props: {
|
|
3078
3078
|
modelValue: {
|
|
@@ -3123,7 +3123,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3123
3123
|
e.options.length > 1 ? (J(), Ne(N, {
|
|
3124
3124
|
key: 0,
|
|
3125
3125
|
modelValue: g.value,
|
|
3126
|
-
"onUpdate:modelValue": T[0] || (T[0] = (
|
|
3126
|
+
"onUpdate:modelValue": T[0] || (T[0] = (F) => g.value = F),
|
|
3127
3127
|
class: "mt-16",
|
|
3128
3128
|
placeholder: H(l)("team.memberForm.permissions.search", { context: e.context })
|
|
3129
3129
|
}, null, 8, ["modelValue", "placeholder"])) : Me("", !0),
|
|
@@ -3138,10 +3138,10 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3138
3138
|
class: "mt-16",
|
|
3139
3139
|
"onUpdate:modelValue": i
|
|
3140
3140
|
}, et({ _: 2 }, [
|
|
3141
|
-
Ee(a.value, (
|
|
3142
|
-
name: `checkbox-${
|
|
3141
|
+
Ee(a.value, (F) => ({
|
|
3142
|
+
name: `checkbox-${F.value}-append`,
|
|
3143
3143
|
fn: de(({ option: w }) => [
|
|
3144
|
-
Se(y.$slots, `checkbox-${
|
|
3144
|
+
Se(y.$slots, `checkbox-${F.value}-append`, { option: w })
|
|
3145
3145
|
])
|
|
3146
3146
|
}))
|
|
3147
3147
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3230,7 +3230,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3230
3230
|
}, aa = {
|
|
3231
3231
|
key: 0,
|
|
3232
3232
|
class: "ml-32"
|
|
3233
|
-
},
|
|
3233
|
+
}, Fn = /* @__PURE__ */ Le({
|
|
3234
3234
|
__name: "PortalConditionForm",
|
|
3235
3235
|
props: {
|
|
3236
3236
|
entry: {},
|
|
@@ -3309,7 +3309,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3309
3309
|
}
|
|
3310
3310
|
}), la = {
|
|
3311
3311
|
async readWarehouses() {
|
|
3312
|
-
return Lr(await
|
|
3312
|
+
return Lr(await Ar().get("/warehouses"));
|
|
3313
3313
|
}
|
|
3314
3314
|
};
|
|
3315
3315
|
function Pn(e, t) {
|
|
@@ -3356,10 +3356,10 @@ function ia(e, t, n, r) {
|
|
|
3356
3356
|
const T = new Set(g.actions), N = new Set(y.actions);
|
|
3357
3357
|
if (T.size === N.size && [...T].every((w) => N.has(w)))
|
|
3358
3358
|
continue;
|
|
3359
|
-
const
|
|
3360
|
-
if (
|
|
3361
|
-
u[
|
|
3362
|
-
...u[
|
|
3359
|
+
const F = u.findIndex((w) => w.subject === i && !w.inverted);
|
|
3360
|
+
if (F >= 0)
|
|
3361
|
+
u[F] = {
|
|
3362
|
+
...u[F],
|
|
3363
3363
|
actions: Array.from(N)
|
|
3364
3364
|
};
|
|
3365
3365
|
else {
|
|
@@ -3411,9 +3411,9 @@ function Mt(e, t) {
|
|
|
3411
3411
|
}
|
|
3412
3412
|
function Zt(e, t) {
|
|
3413
3413
|
const n = We(e);
|
|
3414
|
-
return
|
|
3414
|
+
return Dt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3415
3415
|
}
|
|
3416
|
-
function
|
|
3416
|
+
function xn(e, t, n) {
|
|
3417
3417
|
return {
|
|
3418
3418
|
...Zt(e, n),
|
|
3419
3419
|
...tt(We(t), n)
|
|
@@ -3443,49 +3443,49 @@ function fa(e, t, n) {
|
|
|
3443
3443
|
if (!(((k = b.appliesToActions) == null ? void 0 : k.call(b, c.actions)) ?? !0)) return !1;
|
|
3444
3444
|
const I = l(c.subject);
|
|
3445
3445
|
if (!I) return !1;
|
|
3446
|
-
const
|
|
3447
|
-
return
|
|
3446
|
+
const v = u(I);
|
|
3447
|
+
return v ? Object.keys(i(v, b)).length > 0 : !1;
|
|
3448
3448
|
}
|
|
3449
3449
|
function y(c, b) {
|
|
3450
3450
|
if (!g(c, b) || r.value.has(gt(c.subject, b))) return "custom";
|
|
3451
3451
|
if (c.index === null) return "inherit";
|
|
3452
|
-
const I = e.value[c.index],
|
|
3452
|
+
const I = e.value[c.index], v = l(c.subject), k = v ? u(v) : void 0;
|
|
3453
3453
|
if (I && k) {
|
|
3454
|
-
const
|
|
3455
|
-
if (JSON.stringify(
|
|
3454
|
+
const R = tt(We(I), b), X = i(k, b);
|
|
3455
|
+
if (JSON.stringify(R) === JSON.stringify(X)) return "inherit";
|
|
3456
3456
|
}
|
|
3457
3457
|
return "custom";
|
|
3458
3458
|
}
|
|
3459
3459
|
function T(c, b, I) {
|
|
3460
3460
|
if (!b.summarizeForm) return;
|
|
3461
|
-
const
|
|
3462
|
-
if (!
|
|
3463
|
-
const k = u(
|
|
3461
|
+
const v = l(c.subject);
|
|
3462
|
+
if (!v) return;
|
|
3463
|
+
const k = u(v);
|
|
3464
3464
|
if (!k) return;
|
|
3465
|
-
const
|
|
3466
|
-
return b.summarizeForm(
|
|
3465
|
+
const R = b.fromCondition(i(k, b));
|
|
3466
|
+
return b.summarizeForm(R, { timeZone: I });
|
|
3467
3467
|
}
|
|
3468
3468
|
function N(c, b) {
|
|
3469
3469
|
if (c.index === null) return;
|
|
3470
|
-
const I = [...e.value],
|
|
3471
|
-
if (
|
|
3470
|
+
const I = [...e.value], v = { ...I[c.index] }, k = Zt(v, b), R = Object.keys(k).length === 0, X = l(c.subject), V = X ? u(X) : void 0, m = V ? Mt(V, v) : !1;
|
|
3471
|
+
if (R && m)
|
|
3472
3472
|
I.splice(c.index, 1);
|
|
3473
|
-
else if (
|
|
3474
|
-
const C =
|
|
3475
|
-
Object.keys(C).length === 0 ? delete
|
|
3473
|
+
else if (V) {
|
|
3474
|
+
const C = xn(v, V, b);
|
|
3475
|
+
Object.keys(C).length === 0 ? delete v.conditions : v.conditions = JSON.stringify(C), I[c.index] = v;
|
|
3476
3476
|
} else
|
|
3477
|
-
|
|
3477
|
+
R ? delete v.conditions : v.conditions = JSON.stringify(k), I[c.index] = v;
|
|
3478
3478
|
n(I);
|
|
3479
3479
|
}
|
|
3480
|
-
function
|
|
3481
|
-
const
|
|
3480
|
+
function F(c, b, I) {
|
|
3481
|
+
const v = gt(c.subject, b);
|
|
3482
3482
|
if (I === "inherit") {
|
|
3483
|
-
const
|
|
3484
|
-
|
|
3483
|
+
const R = new Set(r.value);
|
|
3484
|
+
R.delete(v), r.value = R, N(c, b);
|
|
3485
3485
|
return;
|
|
3486
3486
|
}
|
|
3487
3487
|
const k = new Set(r.value);
|
|
3488
|
-
k.add(
|
|
3488
|
+
k.add(v), r.value = k, c.index === null && h(c, b, b.fromCondition(void 0), {
|
|
3489
3489
|
forceCreateRule: !0
|
|
3490
3490
|
});
|
|
3491
3491
|
}
|
|
@@ -3498,48 +3498,48 @@ function fa(e, t, n) {
|
|
|
3498
3498
|
function L(c, b) {
|
|
3499
3499
|
return e.value.filter((I) => {
|
|
3500
3500
|
if (I.inverted) return !1;
|
|
3501
|
-
const
|
|
3502
|
-
return
|
|
3501
|
+
const v = I.subject;
|
|
3502
|
+
return v === c || l(v) !== c ? !1 : r.value.has(gt(v, b)) ? !0 : Object.keys(tt(We(I), b)).length > 0;
|
|
3503
3503
|
});
|
|
3504
3504
|
}
|
|
3505
|
-
function
|
|
3506
|
-
const I = `::${b.builderKey}`,
|
|
3507
|
-
for (const k of
|
|
3505
|
+
function D(c, b) {
|
|
3506
|
+
const I = `::${b.builderKey}`, v = new Set(r.value);
|
|
3507
|
+
for (const k of v) {
|
|
3508
3508
|
if (!k.endsWith(I)) continue;
|
|
3509
|
-
const
|
|
3510
|
-
l(
|
|
3509
|
+
const R = k.slice(0, -I.length);
|
|
3510
|
+
l(R) === c && v.delete(k);
|
|
3511
3511
|
}
|
|
3512
|
-
r.value =
|
|
3512
|
+
r.value = v;
|
|
3513
3513
|
}
|
|
3514
3514
|
function f(c, b, I) {
|
|
3515
|
-
const
|
|
3516
|
-
return c.reduce((k,
|
|
3517
|
-
if (
|
|
3518
|
-
return k.push(
|
|
3519
|
-
const X =
|
|
3520
|
-
if (X ===
|
|
3521
|
-
return k.push(
|
|
3522
|
-
if (Mt(b,
|
|
3515
|
+
const v = b.subject;
|
|
3516
|
+
return c.reduce((k, R) => {
|
|
3517
|
+
if (R.inverted)
|
|
3518
|
+
return k.push(R), k;
|
|
3519
|
+
const X = R.subject;
|
|
3520
|
+
if (X === v || l(X) !== v)
|
|
3521
|
+
return k.push(R), k;
|
|
3522
|
+
if (Mt(b, R) && Object.keys(Zt(R, I)).length === 0)
|
|
3523
3523
|
return k;
|
|
3524
|
-
const m =
|
|
3524
|
+
const m = xn(R, b, I);
|
|
3525
3525
|
if (Object.keys(m).length === 0) {
|
|
3526
|
-
const { conditions: C, ...U } =
|
|
3526
|
+
const { conditions: C, ...U } = R;
|
|
3527
3527
|
k.push(U);
|
|
3528
3528
|
} else
|
|
3529
|
-
k.push({ ...
|
|
3529
|
+
k.push({ ...R, conditions: JSON.stringify(m) });
|
|
3530
3530
|
return k;
|
|
3531
3531
|
}, []);
|
|
3532
3532
|
}
|
|
3533
|
-
function h(c, b, I,
|
|
3534
|
-
var
|
|
3533
|
+
function h(c, b, I, v = {}) {
|
|
3534
|
+
var x;
|
|
3535
3535
|
const k = [...e.value];
|
|
3536
|
-
let
|
|
3537
|
-
const X = b.toCondition(I),
|
|
3538
|
-
if (
|
|
3539
|
-
if (
|
|
3536
|
+
let R = c.index;
|
|
3537
|
+
const X = b.toCondition(I), V = Object.keys(X).length > 0;
|
|
3538
|
+
if (R === null && !V && !v.forceCreateRule) return;
|
|
3539
|
+
if (R === null) {
|
|
3540
3540
|
const j = k.findIndex((G) => !G.inverted && G.subject === c.subject);
|
|
3541
3541
|
if (j !== -1)
|
|
3542
|
-
|
|
3542
|
+
R = j;
|
|
3543
3543
|
else {
|
|
3544
3544
|
const G = t.value.find((Q) => Q.subject === c.subject);
|
|
3545
3545
|
if (!G) return;
|
|
@@ -3552,41 +3552,41 @@ function fa(e, t, n) {
|
|
|
3552
3552
|
k.push({
|
|
3553
3553
|
...ne,
|
|
3554
3554
|
actions: c.actions.length > 0 ? c.actions : ne.actions
|
|
3555
|
-
}),
|
|
3555
|
+
}), R = k.length - 1;
|
|
3556
3556
|
}
|
|
3557
3557
|
}
|
|
3558
|
-
const m = { ...k[
|
|
3558
|
+
const m = { ...k[R] };
|
|
3559
3559
|
m.actions = [
|
|
3560
3560
|
.../* @__PURE__ */ new Set([...m.actions, ...c.actions])
|
|
3561
3561
|
];
|
|
3562
|
-
const C = We(m), U =
|
|
3563
|
-
if (Object.keys(U).length === 0 ? delete m.conditions : m.conditions = JSON.stringify(U), k[
|
|
3562
|
+
const C = We(m), U = Dt(C, [{ builder: b, formValue: I }]);
|
|
3563
|
+
if (Object.keys(U).length === 0 ? delete m.conditions : m.conditions = JSON.stringify(U), k[R] = m, sn(c.subject, t.value)) {
|
|
3564
3564
|
const j = L(c.subject, b), G = () => {
|
|
3565
3565
|
var Z;
|
|
3566
|
-
|
|
3566
|
+
D(c.subject, b), n(f(k, m, b)), (Z = v.afterCommit) == null || Z.call(v);
|
|
3567
3567
|
}, W = () => {
|
|
3568
3568
|
var Z;
|
|
3569
|
-
n(k), (Z =
|
|
3569
|
+
n(k), (Z = v.afterCommit) == null || Z.call(v);
|
|
3570
3570
|
};
|
|
3571
3571
|
if (j.length === 0) {
|
|
3572
3572
|
G();
|
|
3573
3573
|
return;
|
|
3574
3574
|
}
|
|
3575
|
-
|
|
3575
|
+
v.onOverridesConflict ? v.onOverridesConflict({ override: G, keep: W }) : W();
|
|
3576
3576
|
return;
|
|
3577
3577
|
}
|
|
3578
|
-
n(k), (
|
|
3578
|
+
n(k), (x = v.afterCommit) == null || x.call(v);
|
|
3579
3579
|
}
|
|
3580
3580
|
function S(c, b, I = {}) {
|
|
3581
3581
|
if (b.length === 0) return;
|
|
3582
|
-
const
|
|
3583
|
-
let k =
|
|
3582
|
+
const v = [...e.value];
|
|
3583
|
+
let k = v.findIndex((j) => !j.inverted && j.subject === c.subject), R = k === -1 ? void 0 : { ...v[k] }, X = We(R ?? {}) ?? {};
|
|
3584
3584
|
for (const j of b) {
|
|
3585
3585
|
const G = j.mode === "inherit" ? j.builder.fromCondition(void 0) : j.form;
|
|
3586
|
-
X =
|
|
3586
|
+
X = Dt(X, [{ builder: j.builder, formValue: G }]);
|
|
3587
3587
|
}
|
|
3588
|
-
const
|
|
3589
|
-
if (!
|
|
3588
|
+
const V = b.some((j) => j.mode === "custom");
|
|
3589
|
+
if (!R && (Object.keys(X).length > 0 || V)) {
|
|
3590
3590
|
const j = t.value.find((ne) => ne.subject === c.subject);
|
|
3591
3591
|
if (!j) return;
|
|
3592
3592
|
const {
|
|
@@ -3595,25 +3595,25 @@ function fa(e, t, n) {
|
|
|
3595
3595
|
isCategoryCover: Z,
|
|
3596
3596
|
...B
|
|
3597
3597
|
} = j;
|
|
3598
|
-
|
|
3598
|
+
R = {
|
|
3599
3599
|
...B,
|
|
3600
3600
|
actions: c.actions.length > 0 ? c.actions : B.actions
|
|
3601
|
-
},
|
|
3601
|
+
}, v.push(R), k = v.length - 1;
|
|
3602
3602
|
}
|
|
3603
|
-
if (
|
|
3603
|
+
if (R) {
|
|
3604
3604
|
const j = l(c.subject), G = j ? u(j) : void 0;
|
|
3605
|
-
if (!
|
|
3606
|
-
|
|
3605
|
+
if (!V && Object.keys(X).length === 0 && !!G && Mt(G, R))
|
|
3606
|
+
v.splice(k, 1), R = void 0;
|
|
3607
3607
|
else {
|
|
3608
|
-
if (
|
|
3609
|
-
.../* @__PURE__ */ new Set([...
|
|
3608
|
+
if (R.actions = [
|
|
3609
|
+
.../* @__PURE__ */ new Set([...R.actions, ...c.actions])
|
|
3610
3610
|
], G)
|
|
3611
3611
|
for (const Z of b)
|
|
3612
3612
|
Z.mode === "inherit" && (X = {
|
|
3613
3613
|
...X,
|
|
3614
3614
|
...tt(We(G), Z.builder)
|
|
3615
3615
|
});
|
|
3616
|
-
Object.keys(X).length === 0 ? delete
|
|
3616
|
+
Object.keys(X).length === 0 ? delete R.conditions : R.conditions = JSON.stringify(X), v[k] = R;
|
|
3617
3617
|
}
|
|
3618
3618
|
}
|
|
3619
3619
|
const m = () => {
|
|
@@ -3627,35 +3627,35 @@ function fa(e, t, n) {
|
|
|
3627
3627
|
var G;
|
|
3628
3628
|
m(), n(j), (G = I.afterCommit) == null || G.call(I);
|
|
3629
3629
|
};
|
|
3630
|
-
if (!sn(c.subject, t.value) || !
|
|
3631
|
-
C(
|
|
3630
|
+
if (!sn(c.subject, t.value) || !R) {
|
|
3631
|
+
C(v);
|
|
3632
3632
|
return;
|
|
3633
3633
|
}
|
|
3634
|
-
const U = b.map((j) => j.builder).filter((j) => L(c.subject, j).length > 0),
|
|
3635
|
-
let j =
|
|
3634
|
+
const U = b.map((j) => j.builder).filter((j) => L(c.subject, j).length > 0), x = () => {
|
|
3635
|
+
let j = v;
|
|
3636
3636
|
for (const G of b.map((W) => W.builder))
|
|
3637
|
-
|
|
3637
|
+
D(c.subject, G), j = f(j, R, G);
|
|
3638
3638
|
C(j);
|
|
3639
3639
|
};
|
|
3640
3640
|
if (U.length > 0 && I.onOverridesConflict) {
|
|
3641
|
-
I.onOverridesConflict({ override:
|
|
3641
|
+
I.onOverridesConflict({ override: x, keep: () => C(v) });
|
|
3642
3642
|
return;
|
|
3643
3643
|
}
|
|
3644
|
-
U.length > 0 ? C(
|
|
3644
|
+
U.length > 0 ? C(v) : x();
|
|
3645
3645
|
}
|
|
3646
3646
|
return {
|
|
3647
3647
|
getCoverSubject: l,
|
|
3648
3648
|
coverLabel: d,
|
|
3649
3649
|
shouldShowInheritToggle: g,
|
|
3650
3650
|
inheritMode: y,
|
|
3651
|
-
setInheritMode:
|
|
3651
|
+
setInheritMode: F,
|
|
3652
3652
|
inheritedSummary: T,
|
|
3653
3653
|
getEffectiveActions: w,
|
|
3654
3654
|
updateBuilderCondition: h,
|
|
3655
3655
|
applyConditionDrafts: S
|
|
3656
3656
|
};
|
|
3657
3657
|
}
|
|
3658
|
-
const _a = { class: "flex flex-col gap-32" },
|
|
3658
|
+
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__ */ Le({
|
|
3659
3659
|
__name: "PortalPermissionEditor",
|
|
3660
3660
|
props: /* @__PURE__ */ tn({
|
|
3661
3661
|
disable: {
|
|
@@ -3672,13 +3672,13 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3672
3672
|
}),
|
|
3673
3673
|
emits: /* @__PURE__ */ tn(["permissionChanged"], ["update:modelValue"]),
|
|
3674
3674
|
setup(e, { emit: t }) {
|
|
3675
|
-
const n =
|
|
3675
|
+
const n = pr(e, "modelValue"), r = e, l = t, { t: a } = He(), d = hr(), u = br(), { breakpoints: i } = gr(), g = z(() => i.value.xs || i.value.sm), {
|
|
3676
3676
|
fetchCustomReportPermissions: y,
|
|
3677
3677
|
customReportPermissions: T
|
|
3678
3678
|
} = Ir(), N = z(() => [
|
|
3679
3679
|
...Gn,
|
|
3680
3680
|
...T.value
|
|
3681
|
-
]),
|
|
3681
|
+
]), F = z(() => {
|
|
3682
3682
|
const O = d.currentBusiness.value, s = d.currentCountry.value, o = s instanceof Object ? s.code : s;
|
|
3683
3683
|
return da(O, o);
|
|
3684
3684
|
});
|
|
@@ -3693,7 +3693,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3693
3693
|
}
|
|
3694
3694
|
);
|
|
3695
3695
|
}
|
|
3696
|
-
const
|
|
3696
|
+
const D = z(() => {
|
|
3697
3697
|
const O = N.value.filter((o) => !c.includes(o.subject)).map((o) => o.subject);
|
|
3698
3698
|
return yr(
|
|
3699
3699
|
r.inheritPermissions.map((o) => ({
|
|
@@ -3711,7 +3711,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3711
3711
|
(o) => o.subject === he.Subject.Business.inventory_stock
|
|
3712
3712
|
)
|
|
3713
3713
|
}));
|
|
3714
|
-
return
|
|
3714
|
+
return Rt(
|
|
3715
3715
|
O,
|
|
3716
3716
|
"warehouseId",
|
|
3717
3717
|
I.value.map((s) => s._id)
|
|
@@ -3723,7 +3723,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3723
3723
|
(o) => o.subject === he.Subject.Restaurant.restaurant
|
|
3724
3724
|
)
|
|
3725
3725
|
}));
|
|
3726
|
-
return
|
|
3726
|
+
return Rt(
|
|
3727
3727
|
O,
|
|
3728
3728
|
"restaurantId",
|
|
3729
3729
|
X.value.map((s) => s._id)
|
|
@@ -3733,10 +3733,10 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3733
3733
|
...s,
|
|
3734
3734
|
permissions: s.permissions.filter((o) => o.subject === he.Subject.Business.role)
|
|
3735
3735
|
}));
|
|
3736
|
-
return
|
|
3736
|
+
return Rt(
|
|
3737
3737
|
O,
|
|
3738
3738
|
"roleId",
|
|
3739
|
-
|
|
3739
|
+
V.value.map((s) => s._id)
|
|
3740
3740
|
);
|
|
3741
3741
|
}), c = [
|
|
3742
3742
|
he.Subject.Business.restaurant,
|
|
@@ -3749,15 +3749,15 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3749
3749
|
(o) => o.subject === he.Subject.Business.inventory_stock
|
|
3750
3750
|
);
|
|
3751
3751
|
return O ? O.conditions ? JSON.parse(O.conditions).warehouseId.$in : null : [];
|
|
3752
|
-
}), I = rt([]),
|
|
3752
|
+
}), I = rt([]), v = z(() => I.value.map((O) => ({
|
|
3753
3753
|
label: O.profile.name,
|
|
3754
3754
|
value: O._id
|
|
3755
3755
|
})));
|
|
3756
3756
|
function k(O) {
|
|
3757
|
-
const s =
|
|
3757
|
+
const s = R(n.value, O);
|
|
3758
3758
|
n.value = s;
|
|
3759
3759
|
}
|
|
3760
|
-
function
|
|
3760
|
+
function R(O, s) {
|
|
3761
3761
|
let o = It(
|
|
3762
3762
|
O.filter((_) => _.subject !== he.Subject.Business.inventory_stock)
|
|
3763
3763
|
);
|
|
@@ -3770,11 +3770,11 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3770
3770
|
}
|
|
3771
3771
|
return o;
|
|
3772
3772
|
}
|
|
3773
|
-
const { restaurants: X } = d,
|
|
3773
|
+
const { restaurants: X } = d, V = kr().roles, m = z(() => X.value.map((O) => ({
|
|
3774
3774
|
label: `${O.profile.code ? O.profile.code + "-" : ""}${O.profile.name}`,
|
|
3775
3775
|
value: O._id
|
|
3776
|
-
}))), C = z(() => X.value.reduce((O, s) => (O[s._id] =
|
|
3777
|
-
function
|
|
3776
|
+
}))), C = 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));
|
|
3777
|
+
function x(O) {
|
|
3778
3778
|
const s = G(n.value, O);
|
|
3779
3779
|
n.value = s;
|
|
3780
3780
|
}
|
|
@@ -3783,29 +3783,29 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3783
3783
|
var _;
|
|
3784
3784
|
let o = It(
|
|
3785
3785
|
O.filter(
|
|
3786
|
-
(
|
|
3786
|
+
(A) => A.subject !== he.Subject.Business.restaurant && A.subject !== he.Subject.Restaurant.restaurant
|
|
3787
3787
|
)
|
|
3788
3788
|
);
|
|
3789
3789
|
if (!s || s.length > 0) {
|
|
3790
3790
|
const {
|
|
3791
|
-
category:
|
|
3791
|
+
category: A,
|
|
3792
3792
|
showByFeatureFlag: M,
|
|
3793
3793
|
...P
|
|
3794
|
-
} =
|
|
3794
|
+
} = Rr.restaurant;
|
|
3795
3795
|
o.push(P);
|
|
3796
|
-
const
|
|
3796
|
+
const p = {
|
|
3797
3797
|
actions: [he.Action.manage],
|
|
3798
3798
|
subject: he.Subject.Restaurant.restaurant
|
|
3799
3799
|
};
|
|
3800
|
-
s && (
|
|
3800
|
+
s && (p.conditions = JSON.stringify({ restaurantId: { $in: s } })), o.push(p);
|
|
3801
3801
|
}
|
|
3802
3802
|
if (s) {
|
|
3803
|
-
const
|
|
3803
|
+
const A = [
|
|
3804
3804
|
...new Set(s.map((P) => C.value[P]).flatMap((P) => P))
|
|
3805
|
-
], M =
|
|
3806
|
-
|
|
3805
|
+
], M = V.value.map((P) => P._id);
|
|
3806
|
+
A.length !== M.length && (o = Z(
|
|
3807
3807
|
o,
|
|
3808
|
-
(_ = j.value || M) == null ? void 0 : _.filter((P) =>
|
|
3808
|
+
(_ = j.value || M) == null ? void 0 : _.filter((P) => A.includes(P))
|
|
3809
3809
|
));
|
|
3810
3810
|
}
|
|
3811
3811
|
return o;
|
|
@@ -3828,7 +3828,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3828
3828
|
}
|
|
3829
3829
|
return o;
|
|
3830
3830
|
}
|
|
3831
|
-
|
|
3831
|
+
Vn(async () => {
|
|
3832
3832
|
await Promise.all([
|
|
3833
3833
|
la.readWarehouses().then((O) => I.value = O),
|
|
3834
3834
|
y()
|
|
@@ -3844,10 +3844,10 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3844
3844
|
if (o.inverted) return o;
|
|
3845
3845
|
const _ = o.actions;
|
|
3846
3846
|
if (!_.includes("manage")) return o;
|
|
3847
|
-
const
|
|
3848
|
-
if (!
|
|
3849
|
-
const M =
|
|
3850
|
-
return M.length <= 1 || M.filter((
|
|
3847
|
+
const A = w(o.subject);
|
|
3848
|
+
if (!A) return o;
|
|
3849
|
+
const M = A.actions;
|
|
3850
|
+
return M.length <= 1 || M.filter((p) => !_.includes(p)).length === 0 ? o : { ...o, actions: [...M] };
|
|
3851
3851
|
}));
|
|
3852
3852
|
function ne(O) {
|
|
3853
3853
|
n.value = ia(
|
|
@@ -3868,8 +3868,8 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3868
3868
|
)
|
|
3869
3869
|
})).filter(({ rule: s }) => !s.inverted).forEach(({ rule: s, index: o }) => {
|
|
3870
3870
|
var P;
|
|
3871
|
-
const _ = s.actions,
|
|
3872
|
-
if (
|
|
3871
|
+
const _ = s.actions, A = L(s.subject, _);
|
|
3872
|
+
if (A.length === 0) return;
|
|
3873
3873
|
let M;
|
|
3874
3874
|
try {
|
|
3875
3875
|
M = s.conditions ? JSON.parse(s.conditions) : void 0;
|
|
@@ -3882,9 +3882,9 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3882
3882
|
label: ((P = w(s.subject)) == null ? void 0 : P.label) ?? s.subject,
|
|
3883
3883
|
actions: _,
|
|
3884
3884
|
// Each builder only ever sees its own slice of the stored condition.
|
|
3885
|
-
sections:
|
|
3886
|
-
builder:
|
|
3887
|
-
formValue:
|
|
3885
|
+
sections: A.map((p) => ({
|
|
3886
|
+
builder: p,
|
|
3887
|
+
formValue: p.fromCondition(tt(M, p))
|
|
3888
3888
|
}))
|
|
3889
3889
|
});
|
|
3890
3890
|
}), O;
|
|
@@ -3894,30 +3894,30 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3894
3894
|
function q(O, s) {
|
|
3895
3895
|
const o = _e.value.get(O);
|
|
3896
3896
|
if (o) return o;
|
|
3897
|
-
const _ = ce.getEffectiveActions(O),
|
|
3898
|
-
if (
|
|
3897
|
+
const _ = ce.getEffectiveActions(O), A = L(O, _);
|
|
3898
|
+
if (A.length !== 0)
|
|
3899
3899
|
return {
|
|
3900
3900
|
index: null,
|
|
3901
3901
|
subject: O,
|
|
3902
3902
|
label: s,
|
|
3903
3903
|
actions: _,
|
|
3904
|
-
sections:
|
|
3904
|
+
sections: A.map((M) => ({
|
|
3905
3905
|
builder: M,
|
|
3906
3906
|
formValue: M.fromCondition(void 0)
|
|
3907
3907
|
}))
|
|
3908
3908
|
};
|
|
3909
3909
|
}
|
|
3910
|
-
function
|
|
3910
|
+
function De(O, s) {
|
|
3911
3911
|
const o = se.getDraft({ subject: O.subject, builderKey: s.builderKey });
|
|
3912
3912
|
if (o) return o.formValue;
|
|
3913
|
-
const _ = O.sections.find((
|
|
3913
|
+
const _ = O.sections.find((A) => A.builder.builderKey === s.builderKey);
|
|
3914
3914
|
return _ == null ? void 0 : _.formValue;
|
|
3915
3915
|
}
|
|
3916
3916
|
function K(O, s) {
|
|
3917
3917
|
const o = se.getDraft({ subject: O.subject, builderKey: s.builderKey });
|
|
3918
3918
|
return o != null && o.inheritMode ? o.inheritMode : ce.inheritMode(O, s);
|
|
3919
3919
|
}
|
|
3920
|
-
function
|
|
3920
|
+
function ve(O, s, o) {
|
|
3921
3921
|
const _ = se.getDraft({
|
|
3922
3922
|
subject: O.subject,
|
|
3923
3923
|
builderKey: s.builderKey
|
|
@@ -3934,11 +3934,11 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3934
3934
|
const _ = se.getDraft({
|
|
3935
3935
|
subject: O.subject,
|
|
3936
3936
|
builderKey: s.builderKey
|
|
3937
|
-
}),
|
|
3937
|
+
}), A = O.sections.find((M) => M.builder.builderKey === s.builderKey);
|
|
3938
3938
|
se.setDraft(
|
|
3939
3939
|
{ subject: O.subject, builderKey: s.builderKey },
|
|
3940
3940
|
{
|
|
3941
|
-
formValue: (_ == null ? void 0 : _.formValue) ?? (
|
|
3941
|
+
formValue: (_ == null ? void 0 : _.formValue) ?? (A == null ? void 0 : A.formValue),
|
|
3942
3942
|
inheritMode: o
|
|
3943
3943
|
}
|
|
3944
3944
|
);
|
|
@@ -3946,13 +3946,13 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3946
3946
|
function Ke(O) {
|
|
3947
3947
|
return se.hasDraftsForSubject(O);
|
|
3948
3948
|
}
|
|
3949
|
-
function
|
|
3949
|
+
function xe(O, s) {
|
|
3950
3950
|
const o = O.sections.flatMap((_) => {
|
|
3951
|
-
const
|
|
3951
|
+
const A = se.getDraft({
|
|
3952
3952
|
subject: O.subject,
|
|
3953
3953
|
builderKey: _.builder.builderKey
|
|
3954
3954
|
});
|
|
3955
|
-
return
|
|
3955
|
+
return A ? [{ builder: _.builder, form: A.formValue, mode: A.inheritMode ?? "custom" }] : [];
|
|
3956
3956
|
});
|
|
3957
3957
|
ce.applyConditionDrafts(O, o, {
|
|
3958
3958
|
afterCommit: () => {
|
|
@@ -3961,7 +3961,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3961
3961
|
onOverridesConflict: Ze(O).onOverridesConflict
|
|
3962
3962
|
});
|
|
3963
3963
|
}
|
|
3964
|
-
function
|
|
3964
|
+
function Fe(O) {
|
|
3965
3965
|
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);
|
|
3966
3966
|
}
|
|
3967
3967
|
let Ce = !1;
|
|
@@ -4001,25 +4001,25 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4001
4001
|
},
|
|
4002
4002
|
{ deep: !0 }
|
|
4003
4003
|
), (O, s) => {
|
|
4004
|
-
const o = we("FmIcon"), _ = we("FmBottomSheet"),
|
|
4004
|
+
const o = we("FmIcon"), _ = we("FmBottomSheet"), A = we("FmPopover");
|
|
4005
4005
|
return J(), ie("div", _a, [
|
|
4006
|
-
ae("div",
|
|
4006
|
+
ae("div", va, [
|
|
4007
4007
|
ue(Xo, {
|
|
4008
4008
|
"model-value": B.value,
|
|
4009
4009
|
"excluded-subjects": c,
|
|
4010
4010
|
"additional-permissions": H(T),
|
|
4011
4011
|
"onUpdate:modelValue": ne
|
|
4012
4012
|
}, et({ _: 2 }, [
|
|
4013
|
-
Ee(
|
|
4013
|
+
Ee(D.value, (M) => ({
|
|
4014
4014
|
name: `checkbox-${M.id}-append`,
|
|
4015
4015
|
fn: de(() => [
|
|
4016
|
-
ue(
|
|
4016
|
+
ue(pt, { item: M }, null, 8, ["item"])
|
|
4017
4017
|
])
|
|
4018
4018
|
})),
|
|
4019
4019
|
Ee(Q.value, (M) => ({
|
|
4020
4020
|
name: `checkbox-${M}-icon`,
|
|
4021
|
-
fn: de(({ option: P, isEffectiveSelected:
|
|
4022
|
-
|
|
4021
|
+
fn: de(({ option: P, isEffectiveSelected: p }) => [
|
|
4022
|
+
p && q(M, P.label) ? (J(), ie(ke, { key: 0 }, [
|
|
4023
4023
|
g.value ? (J(), Ne(_, {
|
|
4024
4024
|
key: 0,
|
|
4025
4025
|
"model-value": fe.value === M,
|
|
@@ -4034,36 +4034,36 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4034
4034
|
}
|
|
4035
4035
|
}, {
|
|
4036
4036
|
"bottom-sheet-button": de(() => [
|
|
4037
|
-
ae("div",
|
|
4037
|
+
ae("div", pa, [
|
|
4038
4038
|
ue(o, {
|
|
4039
4039
|
name: "settings",
|
|
4040
4040
|
size: "sm",
|
|
4041
4041
|
class: qe([
|
|
4042
4042
|
"cursor-pointer transition-colors",
|
|
4043
|
-
|
|
4043
|
+
Fe(q(M, P.label)) ? "text-fm-color-primary-main" : "text-fm-color-neutral-gray-400 hover:text-fm-color-neutral-gray-600"
|
|
4044
4044
|
])
|
|
4045
4045
|
}, null, 8, ["class"])
|
|
4046
4046
|
])
|
|
4047
4047
|
]),
|
|
4048
4048
|
default: de(() => [
|
|
4049
|
-
ue(
|
|
4049
|
+
ue(Fn, {
|
|
4050
4050
|
entry: q(M, P.label),
|
|
4051
4051
|
builders: q(M, P.label).sections.map((E) => E.builder),
|
|
4052
4052
|
subject: M,
|
|
4053
|
-
"time-zone":
|
|
4053
|
+
"time-zone": F.value,
|
|
4054
4054
|
"cover-override": H(ce),
|
|
4055
4055
|
"inherit-mode-for": (E) => K(q(M, P.label), E),
|
|
4056
|
-
"form-value-for": (E) =>
|
|
4056
|
+
"form-value-for": (E) => De(q(M, P.label), E),
|
|
4057
4057
|
"has-changes": Ke(M),
|
|
4058
4058
|
disable: e.disable,
|
|
4059
4059
|
"full-width": !0,
|
|
4060
4060
|
onUpdateInheritMode: ({ builder: E, mode: $ }) => Je(q(M, P.label), E, $),
|
|
4061
|
-
onUpdateForm: ({ builder: E, form: $ }) =>
|
|
4062
|
-
onApply: (E) =>
|
|
4061
|
+
onUpdateForm: ({ builder: E, form: $ }) => ve(q(M, P.label), E, $),
|
|
4062
|
+
onApply: (E) => xe(q(M, P.label), () => fe.value = null)
|
|
4063
4063
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4064
4064
|
]),
|
|
4065
4065
|
_: 2
|
|
4066
|
-
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (J(), Ne(
|
|
4066
|
+
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (J(), Ne(A, {
|
|
4067
4067
|
key: 1,
|
|
4068
4068
|
disabled: e.disable,
|
|
4069
4069
|
"z-index": 100,
|
|
@@ -4080,23 +4080,23 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4080
4080
|
size: "sm",
|
|
4081
4081
|
class: qe([
|
|
4082
4082
|
"cursor-pointer transition-colors",
|
|
4083
|
-
|
|
4083
|
+
Fe(q(M, P.label)) ? "text-fm-color-primary-main" : "text-fm-color-neutral-gray-400 hover:text-fm-color-neutral-gray-600"
|
|
4084
4084
|
])
|
|
4085
4085
|
}, null, 8, ["class"])
|
|
4086
4086
|
])
|
|
4087
4087
|
]),
|
|
4088
4088
|
default: de(({ hide: E }) => [
|
|
4089
|
-
ue(
|
|
4089
|
+
ue(Fn, {
|
|
4090
4090
|
entry: q(M, P.label),
|
|
4091
4091
|
builders: q(M, P.label).sections.map(($) => $.builder),
|
|
4092
4092
|
subject: M,
|
|
4093
|
-
"time-zone":
|
|
4093
|
+
"time-zone": F.value,
|
|
4094
4094
|
"cover-override": H(ce),
|
|
4095
4095
|
title: H(a)("team.memberForm.permissions.conditionTitle", {
|
|
4096
4096
|
context: q(M, P.label).label
|
|
4097
4097
|
}),
|
|
4098
4098
|
"inherit-mode-for": ($) => K(q(M, P.label), $),
|
|
4099
|
-
"form-value-for": ($) =>
|
|
4099
|
+
"form-value-for": ($) => De(q(M, P.label), $),
|
|
4100
4100
|
"has-changes": Ke(M),
|
|
4101
4101
|
disable: e.disable,
|
|
4102
4102
|
onUpdateInheritMode: ({ builder: $, mode: le }) => Je(
|
|
@@ -4104,8 +4104,8 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4104
4104
|
$,
|
|
4105
4105
|
le
|
|
4106
4106
|
),
|
|
4107
|
-
onUpdateForm: ({ builder: $, form: le }) =>
|
|
4108
|
-
onApply: ($) =>
|
|
4107
|
+
onUpdateForm: ({ builder: $, form: le }) => ve(q(M, P.label), $, le),
|
|
4108
|
+
onApply: ($) => xe(q(M, P.label), E)
|
|
4109
4109
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "title", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4110
4110
|
]),
|
|
4111
4111
|
_: 2
|
|
@@ -4121,38 +4121,38 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4121
4121
|
]), 1032, ["model-value", "additional-permissions"])
|
|
4122
4122
|
]),
|
|
4123
4123
|
ae("div", ba, [
|
|
4124
|
-
ue(
|
|
4124
|
+
ue(Dn, {
|
|
4125
4125
|
"model-value": b.value,
|
|
4126
|
-
options:
|
|
4126
|
+
options: v.value,
|
|
4127
4127
|
context: H(a)("team.labels.warehouse"),
|
|
4128
4128
|
"onUpdate:modelValue": k
|
|
4129
4129
|
}, et({ _: 2 }, [
|
|
4130
4130
|
Ee(f.value, (M) => ({
|
|
4131
4131
|
name: `checkbox-${M.id}-append`,
|
|
4132
4132
|
fn: de(() => [
|
|
4133
|
-
ue(
|
|
4133
|
+
ue(pt, { item: M }, null, 8, ["item"])
|
|
4134
4134
|
])
|
|
4135
4135
|
}))
|
|
4136
4136
|
]), 1032, ["model-value", "options", "context"])
|
|
4137
4137
|
]),
|
|
4138
4138
|
ae("div", ga, [
|
|
4139
|
-
ue(
|
|
4139
|
+
ue(Dn, {
|
|
4140
4140
|
"model-value": U.value,
|
|
4141
4141
|
options: m.value,
|
|
4142
4142
|
context: H(a)("team.labels.restaurant"),
|
|
4143
|
-
"onUpdate:modelValue":
|
|
4143
|
+
"onUpdate:modelValue": x
|
|
4144
4144
|
}, et({ _: 2 }, [
|
|
4145
4145
|
Ee(h.value, (M) => ({
|
|
4146
4146
|
name: `checkbox-${M.id}-append`,
|
|
4147
4147
|
fn: de(() => [
|
|
4148
|
-
ue(
|
|
4148
|
+
ue(pt, { item: M }, null, 8, ["item"])
|
|
4149
4149
|
])
|
|
4150
4150
|
}))
|
|
4151
4151
|
]), 1032, ["model-value", "options", "context"])
|
|
4152
4152
|
]),
|
|
4153
4153
|
ae("div", Ia, [
|
|
4154
4154
|
ue(ra, {
|
|
4155
|
-
roles: H(
|
|
4155
|
+
roles: H(V),
|
|
4156
4156
|
"model-value": j.value,
|
|
4157
4157
|
"restaurant-ids": U.value,
|
|
4158
4158
|
"onUpdate:modelValue": W
|
|
@@ -4160,7 +4160,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4160
4160
|
Ee(S.value, (M) => ({
|
|
4161
4161
|
name: `checkbox-${M.id}-append`,
|
|
4162
4162
|
fn: de(() => [
|
|
4163
|
-
ue(
|
|
4163
|
+
ue(pt, { item: M }, null, 8, ["item"])
|
|
4164
4164
|
])
|
|
4165
4165
|
}))
|
|
4166
4166
|
]), 1032, ["roles", "model-value", "restaurant-ids"])
|