@feedmepos/mf-hrm-portal 2.2.2-dev → 2.2.2
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-B9O8QzzI.js → ApprovalCodeList-Dpg-lwZA.js} +5 -5
- package/dist/AuditLogList-B8lU5FU1.js +1149 -0
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C9MYbxum.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Di-1ZwEW.js} +2 -2
- package/dist/{EmployeeList-BFxMwFJq.js → EmployeeList-ByeniR1c.js} +71 -71
- package/dist/{GrantUserList-CZtmMRoS.js → GrantUserList-D0YIdpMH.js} +6 -6
- package/dist/{Main-on0TXkQt.js → Main-Bg0Najd8.js} +8 -8
- package/dist/{Main-B622Z4q4.js → Main-C9-EztWV.js} +11 -11
- package/dist/{Main-DD6IthCS.js → Main-CTsTrR0m.js} +5 -5
- package/dist/{PermissionSetList-FCX3TBoi.js → PermissionSetList-CqVP3iB8.js} +78 -77
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Cl_YNh0k.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CXNhJDfA.js} +569 -564
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-XHuHin8t.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-Z-DH7ouY.js} +1 -1
- package/dist/RoleList-CQuV9O_f.js +739 -0
- package/dist/{TeamMemberList-BAU7Y3jh.js → TeamMemberList-DNitiMN5.js} +312 -313
- package/dist/{TimesheetList-DtFBWhma.js → TimesheetList-DYJsjODe.js} +7 -7
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-Tatn3jUv.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-DWKJIq76.js} +3 -3
- package/dist/{app-Bbf6hEPt.js → app-BJKd6Faz.js} +521 -817
- package/dist/app.js +1 -1
- package/dist/{approval-code-jIjkeVEb.js → approval-code-BRClD2HN.js} +1 -1
- package/dist/{dayjs.min-BAnGg8q2.js → dayjs.min-D8ClaZcZ.js} +1 -1
- package/dist/{employee-DVSD3L51.js → employee-C9VVckRM.js} +4 -4
- package/dist/{grant-user-SNiDV22U.js → grant-user-Dhi3ilC_.js} +1 -1
- package/dist/{iteration-BTZViJtd.js → iteration-CMXHdaKL.js} +1 -1
- package/dist/{lodash-Cgdk4_YL.js → lodash-0-Y1xSyQ.js} +1 -1
- package/dist/{restaurant-BTpBmfBV.js → restaurant-DiYb0pCm.js} +2 -2
- package/dist/{role-CXVpO6fB.js → role-B-Y4JezP.js} +2 -2
- package/dist/{rule-TR3MVo-b.js → rule-raGIIqlH.js} +288 -261
- package/dist/src/api/audit-log/index.d.ts +0 -6
- package/dist/src/api/user/index.d.ts +2 -2
- package/dist/src/composables/useReportPermissions.d.ts +1 -0
- package/dist/src/helpers/rule.d.ts +2 -0
- package/dist/src/types/audit-log.d.ts +1 -1
- package/dist/src/types/role.d.ts +1 -0
- package/dist/src/views/audit-log/locales/index.d.ts +0 -300
- package/dist/src/views/hr/locales/index.d.ts +12 -8
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DCwd8GWN.js → useAppStore-BGhlB1_1.js} +1 -1
- package/dist/useDebounce-CWb5QR9G.js +28 -0
- package/dist/{useLoading-CXzTpIVv.js → useLoading-CvgqVDbF.js} +1 -1
- package/dist/useReportPermissions-C5_EivtU.js +82 -0
- package/package.json +2 -2
- package/dist/AuditLogList-CtFEXKWZ.js +0 -1722
- package/dist/RoleList-p_9KHzqF.js +0 -725
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +0 -16
- package/dist/src/views/audit-log/change-nodes.d.ts +0 -14
- package/dist/src/views/audit-log/event-line.d.ts +0 -13
- package/dist/src/views/audit-log/operation-status.d.ts +0 -2
- package/dist/src/views/audit-log/snapshot-diff.d.ts +0 -11
- package/dist/useDebounce-B8ZPVS5C.js +0 -15
- package/dist/useReportPermissions-BpAFyO17.js +0 -71
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { getCurrentInstance as Bt, inject as ur, ref as rt, shallowRef as mr, computed as z, watch as wt, onMounted as xn, onUnmounted as dr, defineComponent as
|
|
1
|
+
import { getCurrentInstance as Bt, inject as ur, ref as rt, shallowRef as mr, computed as z, watch as wt, onMounted as xn, onUnmounted as dr, defineComponent as Se, h as Wn, createVNode as ue, Text as fr, Fragment as ke, resolveComponent as we, createBlock as Ce, openBlock as J, withCtx as me, createElementVNode as ae, createElementBlock as ie, toDisplayString as Oe, unref as H, renderList as Ee, toRef as en, normalizeStyle as nt, renderSlot as Le, createCommentVNode as Me, createTextVNode as _r, useSlots as pr, normalizeClass as qe, createSlots as et, mergeModels as tn, useModel as vr } from "vue";
|
|
2
2
|
import { useI18n as He, useCoreStore as hr } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialog as br, useBreakpoints as gr } from "@feedmepos/ui-library";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { p as
|
|
6
|
-
import { _ as Xt, a as
|
|
7
|
-
import { u as Or, b as
|
|
8
|
-
import { c as It } from "./iteration-
|
|
9
|
-
import { g as
|
|
10
|
-
import { u as kr } from "./role-
|
|
5
|
+
import { p as Yn, N as Gn, i as Ir, P as yr, y as At, l as Er, k as Cr } from "./rule-raGIIqlH.js";
|
|
6
|
+
import { _ as Xt, a as Nr, b as nn, u as Tr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Di-1ZwEW.js";
|
|
7
|
+
import { u as Or, b as Lr, P as Zn, S as Dt, A as tt, e as he, k as rn, d as Ar } from "./app-BJKd6Faz.js";
|
|
8
|
+
import { c as It } from "./iteration-CMXHdaKL.js";
|
|
9
|
+
import { g as Sr, b as Rr } from "./restaurant-DiYb0pCm.js";
|
|
10
|
+
import { u as kr } from "./role-B-Y4JezP.js";
|
|
11
11
|
function Bn(e, t) {
|
|
12
12
|
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
13
13
|
}
|
|
@@ -30,9 +30,9 @@ 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), 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]",
|
|
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]", Nt = (e) => ee(e) && Object.keys(e).length === 0, Ie = Object.assign, jr = Object.create, oe = (e = null) => jr(e);
|
|
34
34
|
let an;
|
|
35
|
-
const Xe = () => an || (an = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global :
|
|
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
|
}
|
|
@@ -40,7 +40,7 @@ const Ur = Object.prototype.hasOwnProperty;
|
|
|
40
40
|
function Ae(e, t) {
|
|
41
41
|
return Ur.call(e, t);
|
|
42
42
|
}
|
|
43
|
-
const be = Array.isArray, de = (e) => typeof e == "function",
|
|
43
|
+
const be = Array.isArray, de = (e) => typeof e == "function", G = (e) => typeof e == "string", ve = (e) => typeof e == "boolean", te = (e) => e !== null && typeof e == "object", Vr = (e) => te(e) && de(e.then) && de(e.catch), Xn = Object.prototype.toString, Ht = (e) => Xn.call(e), ee = (e) => Ht(e) === "[object Object]", xr = (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
|
}
|
|
@@ -55,11 +55,11 @@ function yt(e, t) {
|
|
|
55
55
|
for (; n.length; ) {
|
|
56
56
|
const { src: r, des: l } = n.pop();
|
|
57
57
|
Object.keys(r).forEach((a) => {
|
|
58
|
-
a !== "__proto__" && (te(r[a]) && !te(l[a]) && (l[a] = Array.isArray(r[a]) ? [] :
|
|
58
|
+
a !== "__proto__" && (te(r[a]) && !te(l[a]) && (l[a] = Array.isArray(r[a]) ? [] : oe()), ft(l[a]) || ft(r[a]) ? l[a] = r[a] : n.push({ src: r[a], des: l[a] }));
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Yr(e, t, n) {
|
|
63
63
|
return { line: e, column: t, offset: n };
|
|
64
64
|
}
|
|
65
65
|
function Ft(e, t, n) {
|
|
@@ -82,12 +82,12 @@ const re = {
|
|
|
82
82
|
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
83
83
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
84
84
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
85
|
-
},
|
|
85
|
+
}, Gr = 17;
|
|
86
86
|
function Tt(e, t, n = {}) {
|
|
87
87
|
const { domain: r, messages: l, args: a } = n, m = e, u = new SyntaxError(String(m));
|
|
88
88
|
return u.code = e, t && (u.location = t), u.domain = r, u;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function Zr(e) {
|
|
91
91
|
throw e;
|
|
92
92
|
}
|
|
93
93
|
const Pe = " ", Br = "\r", ye = `
|
|
@@ -95,11 +95,11 @@ 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 m = (p) => t[p] === Br && t[p + 1] === ye, u = (p) => t[p] === ye, i = (p) => t[p] === Hr, g = (p) => t[p] === Xr, y = (p) => m(p) || u(p) || i(p) || g(p), T = () => n,
|
|
98
|
+
const m = (p) => t[p] === Br && t[p + 1] === ye, u = (p) => t[p] === ye, i = (p) => t[p] === Hr, g = (p) => t[p] === Xr, y = (p) => m(p) || u(p) || i(p) || g(p), T = () => n, C = () => r, F = () => l, w = () => a, S = (p) => m(p) || i(p) || g(p) ? ye : t[p], D = () => S(n), f = () => S(n + a);
|
|
99
99
|
function h() {
|
|
100
100
|
return a = 0, y(n) && (r++, l = 0), m(n) && n++, n++, l++, t[n];
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function L() {
|
|
103
103
|
return m(n + a) && a++, a++, t[n + a];
|
|
104
104
|
}
|
|
105
105
|
function c() {
|
|
@@ -116,14 +116,14 @@ function $r(e) {
|
|
|
116
116
|
}
|
|
117
117
|
return {
|
|
118
118
|
index: T,
|
|
119
|
-
line:
|
|
119
|
+
line: C,
|
|
120
120
|
column: F,
|
|
121
121
|
peekOffset: w,
|
|
122
|
-
charAt:
|
|
122
|
+
charAt: S,
|
|
123
123
|
currentChar: D,
|
|
124
124
|
currentPeek: f,
|
|
125
125
|
next: h,
|
|
126
|
-
peek:
|
|
126
|
+
peek: L,
|
|
127
127
|
reset: c,
|
|
128
128
|
resetPeek: b,
|
|
129
129
|
skipToPeek: I
|
|
@@ -131,7 +131,7 @@ function $r(e) {
|
|
|
131
131
|
}
|
|
132
132
|
const xe = void 0, Jr = ".", cn = "'", Kr = "tokenizer";
|
|
133
133
|
function zr(e, t = {}) {
|
|
134
|
-
const n = t.location !== !1, r = $r(e), l = () => r.index(), a = () =>
|
|
134
|
+
const n = t.location !== !1, r = $r(e), l = () => r.index(), a = () => Yr(r.line(), r.column(), r.index()), m = a(), u = l(), i = {
|
|
135
135
|
currentType: 13,
|
|
136
136
|
offset: u,
|
|
137
137
|
startLoc: m,
|
|
@@ -154,12 +154,12 @@ function zr(e, t = {}) {
|
|
|
154
154
|
y(v);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function C(s, o, _) {
|
|
158
158
|
s.endLoc = a(), s.currentType = o;
|
|
159
159
|
const R = { type: o };
|
|
160
160
|
return n && (R.loc = Ft(s.startLoc, s.endLoc)), _ != null && (R.value = _), R;
|
|
161
161
|
}
|
|
162
|
-
const F = (s) =>
|
|
162
|
+
const F = (s) => C(
|
|
163
163
|
s,
|
|
164
164
|
13
|
|
165
165
|
/* TokenTypes.EOF */
|
|
@@ -167,14 +167,14 @@ function zr(e, t = {}) {
|
|
|
167
167
|
function w(s, o) {
|
|
168
168
|
return s.currentChar() === o ? (s.next(), o) : (T(re.EXPECTED_TOKEN, a(), 0, o), "");
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function S(s) {
|
|
171
171
|
let o = "";
|
|
172
172
|
for (; s.currentPeek() === Pe || s.currentPeek() === ye; )
|
|
173
173
|
o += s.currentPeek(), s.peek();
|
|
174
174
|
return o;
|
|
175
175
|
}
|
|
176
176
|
function D(s) {
|
|
177
|
-
const o =
|
|
177
|
+
const o = S(s);
|
|
178
178
|
return s.skipToPeek(), o;
|
|
179
179
|
}
|
|
180
180
|
function f(s) {
|
|
@@ -191,11 +191,11 @@ function zr(e, t = {}) {
|
|
|
191
191
|
const o = s.charCodeAt(0);
|
|
192
192
|
return o >= 48 && o <= 57;
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function L(s, o) {
|
|
195
195
|
const { currentType: _ } = o;
|
|
196
196
|
if (_ !== 2)
|
|
197
197
|
return !1;
|
|
198
|
-
|
|
198
|
+
S(s);
|
|
199
199
|
const R = f(s.currentPeek());
|
|
200
200
|
return s.resetPeek(), R;
|
|
201
201
|
}
|
|
@@ -203,7 +203,7 @@ function zr(e, t = {}) {
|
|
|
203
203
|
const { currentType: _ } = o;
|
|
204
204
|
if (_ !== 2)
|
|
205
205
|
return !1;
|
|
206
|
-
|
|
206
|
+
S(s);
|
|
207
207
|
const R = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), M = h(R);
|
|
208
208
|
return s.resetPeek(), M;
|
|
209
209
|
}
|
|
@@ -211,7 +211,7 @@ function zr(e, t = {}) {
|
|
|
211
211
|
const { currentType: _ } = o;
|
|
212
212
|
if (_ !== 2)
|
|
213
213
|
return !1;
|
|
214
|
-
|
|
214
|
+
S(s);
|
|
215
215
|
const R = s.currentPeek() === cn;
|
|
216
216
|
return s.resetPeek(), R;
|
|
217
217
|
}
|
|
@@ -219,7 +219,7 @@ function zr(e, t = {}) {
|
|
|
219
219
|
const { currentType: _ } = o;
|
|
220
220
|
if (_ !== 7)
|
|
221
221
|
return !1;
|
|
222
|
-
|
|
222
|
+
S(s);
|
|
223
223
|
const R = s.currentPeek() === ".";
|
|
224
224
|
return s.resetPeek(), R;
|
|
225
225
|
}
|
|
@@ -227,7 +227,7 @@ function zr(e, t = {}) {
|
|
|
227
227
|
const { currentType: _ } = o;
|
|
228
228
|
if (_ !== 8)
|
|
229
229
|
return !1;
|
|
230
|
-
|
|
230
|
+
S(s);
|
|
231
231
|
const R = f(s.currentPeek());
|
|
232
232
|
return s.resetPeek(), R;
|
|
233
233
|
}
|
|
@@ -235,7 +235,7 @@ function zr(e, t = {}) {
|
|
|
235
235
|
const { currentType: _ } = o;
|
|
236
236
|
if (!(_ === 7 || _ === 11))
|
|
237
237
|
return !1;
|
|
238
|
-
|
|
238
|
+
S(s);
|
|
239
239
|
const R = s.currentPeek() === ":";
|
|
240
240
|
return s.resetPeek(), R;
|
|
241
241
|
}
|
|
@@ -250,7 +250,7 @@ function zr(e, t = {}) {
|
|
|
250
250
|
return s.resetPeek(), M;
|
|
251
251
|
}
|
|
252
252
|
function X(s) {
|
|
253
|
-
|
|
253
|
+
S(s);
|
|
254
254
|
const o = s.currentPeek() === "|";
|
|
255
255
|
return s.resetPeek(), o;
|
|
256
256
|
}
|
|
@@ -265,7 +265,7 @@ function zr(e, t = {}) {
|
|
|
265
265
|
const _ = s.currentChar();
|
|
266
266
|
return _ === xe ? xe : o(_) ? (s.next(), _) : null;
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function N(s) {
|
|
269
269
|
const o = s.charCodeAt(0);
|
|
270
270
|
return o >= 97 && o <= 122 || // a-z
|
|
271
271
|
o >= 65 && o <= 90 || // A-Z
|
|
@@ -274,7 +274,7 @@ function zr(e, t = {}) {
|
|
|
274
274
|
o === 36;
|
|
275
275
|
}
|
|
276
276
|
function U(s) {
|
|
277
|
-
return d(s,
|
|
277
|
+
return d(s, N);
|
|
278
278
|
}
|
|
279
279
|
function V(s) {
|
|
280
280
|
const o = s.charCodeAt(0);
|
|
@@ -288,21 +288,21 @@ function zr(e, t = {}) {
|
|
|
288
288
|
function j(s) {
|
|
289
289
|
return d(s, V);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function Y(s) {
|
|
292
292
|
const o = s.charCodeAt(0);
|
|
293
293
|
return o >= 48 && o <= 57;
|
|
294
294
|
}
|
|
295
295
|
function W(s) {
|
|
296
|
-
return d(s,
|
|
296
|
+
return d(s, Y);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function Z(s) {
|
|
299
299
|
const o = s.charCodeAt(0);
|
|
300
300
|
return o >= 48 && o <= 57 || // 0-9
|
|
301
301
|
o >= 65 && o <= 70 || // A-F
|
|
302
302
|
o >= 97 && o <= 102;
|
|
303
303
|
}
|
|
304
304
|
function B(s) {
|
|
305
|
-
return d(s,
|
|
305
|
+
return d(s, Z);
|
|
306
306
|
}
|
|
307
307
|
function ne(s) {
|
|
308
308
|
let o = "", _ = "";
|
|
@@ -341,13 +341,13 @@ function zr(e, t = {}) {
|
|
|
341
341
|
let o = "";
|
|
342
342
|
return s.currentChar() === "-" ? (s.next(), o += `-${ne(s)}`) : o += ne(s), s.currentChar() === xe && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
343
343
|
}
|
|
344
|
-
function
|
|
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
|
-
for (; o = d(s,
|
|
350
|
+
for (; o = d(s, se); )
|
|
351
351
|
o === "\\" ? _ += q(s) : _ += o;
|
|
352
352
|
const R = s.currentChar();
|
|
353
353
|
return R === ye || R === xe ? (T(re.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), R === ye && (s.next(), w(s, "'")), _) : (w(s, "'"), _);
|
|
@@ -415,71 +415,71 @@ function zr(e, t = {}) {
|
|
|
415
415
|
let _ = null;
|
|
416
416
|
switch (s.currentChar()) {
|
|
417
417
|
case "{":
|
|
418
|
-
return o.braceNest >= 1 && T(re.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), s.next(), _ =
|
|
418
|
+
return o.braceNest >= 1 && T(re.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), s.next(), _ = C(
|
|
419
419
|
o,
|
|
420
420
|
2,
|
|
421
421
|
"{"
|
|
422
422
|
/* TokenChars.BraceLeft */
|
|
423
423
|
), D(s), o.braceNest++, _;
|
|
424
424
|
case "}":
|
|
425
|
-
return o.braceNest > 0 && o.currentType === 2 && T(re.EMPTY_PLACEHOLDER, a(), 0), s.next(), _ =
|
|
425
|
+
return o.braceNest > 0 && o.currentType === 2 && T(re.EMPTY_PLACEHOLDER, a(), 0), s.next(), _ = C(
|
|
426
426
|
o,
|
|
427
427
|
3,
|
|
428
428
|
"}"
|
|
429
429
|
/* TokenChars.BraceRight */
|
|
430
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), _ =
|
|
432
|
+
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = Ne(s, o) || F(o), o.braceNest = 0, _;
|
|
433
433
|
default: {
|
|
434
434
|
let M = !0, P = !0, v = !0;
|
|
435
435
|
if (X(s))
|
|
436
|
-
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ =
|
|
436
|
+
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = C(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
437
437
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
438
|
-
return T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0,
|
|
439
|
-
if (M =
|
|
440
|
-
return _ =
|
|
438
|
+
return T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, Ze(s, o);
|
|
439
|
+
if (M = L(s, o))
|
|
440
|
+
return _ = C(o, 4, _e(s)), D(s), _;
|
|
441
441
|
if (P = c(s, o))
|
|
442
|
-
return _ =
|
|
442
|
+
return _ = C(o, 5, ce(s)), D(s), _;
|
|
443
443
|
if (v = b(s, o))
|
|
444
|
-
return _ =
|
|
444
|
+
return _ = C(o, 6, fe(s)), D(s), _;
|
|
445
445
|
if (!M && !P && !v)
|
|
446
|
-
return _ =
|
|
446
|
+
return _ = C(o, 12, pe(s)), T(re.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, _.value), D(s), _;
|
|
447
447
|
break;
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
return _;
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function Ne(s, o) {
|
|
453
453
|
const { currentType: _ } = o;
|
|
454
454
|
let R = 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(), R =
|
|
458
|
+
return s.next(), R = C(
|
|
459
459
|
o,
|
|
460
460
|
7,
|
|
461
461
|
"@"
|
|
462
462
|
/* TokenChars.LinkedAlias */
|
|
463
463
|
), o.inLinked = !0, R;
|
|
464
464
|
case ".":
|
|
465
|
-
return D(s), s.next(),
|
|
465
|
+
return D(s), s.next(), C(
|
|
466
466
|
o,
|
|
467
467
|
8,
|
|
468
468
|
"."
|
|
469
469
|
/* TokenChars.LinkedDot */
|
|
470
470
|
);
|
|
471
471
|
case ":":
|
|
472
|
-
return D(s), s.next(),
|
|
472
|
+
return D(s), s.next(), C(
|
|
473
473
|
o,
|
|
474
474
|
9,
|
|
475
475
|
":"
|
|
476
476
|
/* TokenChars.LinkedDelimiter */
|
|
477
477
|
);
|
|
478
478
|
default:
|
|
479
|
-
return X(s) ? (R =
|
|
479
|
+
return X(s) ? (R = C(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, R) : I(s, o) || k(s, o) ? (D(s), Ne(s, o)) : p(s, o) ? (D(s), C(o, 11, Je(s))) : A(s, o) ? (D(s), M === "{" ? Fe(s, o) || R : C(o, 10, Ke(s))) : (_ === 7 && T(re.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, Ze(s, o));
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function Ze(s, o) {
|
|
483
483
|
let _ = {
|
|
484
484
|
type: 13
|
|
485
485
|
/* TokenTypes.EOF */
|
|
@@ -487,24 +487,24 @@ function zr(e, t = {}) {
|
|
|
487
487
|
if (o.braceNest > 0)
|
|
488
488
|
return Fe(s, o) || F(o);
|
|
489
489
|
if (o.inLinked)
|
|
490
|
-
return
|
|
490
|
+
return Ne(s, o) || F(o);
|
|
491
491
|
switch (s.currentChar()) {
|
|
492
492
|
case "{":
|
|
493
493
|
return Fe(s, o) || F(o);
|
|
494
494
|
case "}":
|
|
495
|
-
return T(re.UNBALANCED_CLOSING_BRACE, a(), 0), s.next(),
|
|
495
|
+
return T(re.UNBALANCED_CLOSING_BRACE, a(), 0), s.next(), C(
|
|
496
496
|
o,
|
|
497
497
|
3,
|
|
498
498
|
"}"
|
|
499
499
|
/* TokenChars.BraceRight */
|
|
500
500
|
);
|
|
501
501
|
case "@":
|
|
502
|
-
return
|
|
502
|
+
return Ne(s, o) || F(o);
|
|
503
503
|
default: {
|
|
504
504
|
if (X(s))
|
|
505
|
-
return _ =
|
|
505
|
+
return _ = C(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
506
506
|
if (x(s))
|
|
507
|
-
return
|
|
507
|
+
return C(o, 0, Q(s));
|
|
508
508
|
break;
|
|
509
509
|
}
|
|
510
510
|
}
|
|
@@ -512,11 +512,11 @@ function zr(e, t = {}) {
|
|
|
512
512
|
}
|
|
513
513
|
function O() {
|
|
514
514
|
const { currentType: s, offset: o, startLoc: _, endLoc: R } = i;
|
|
515
|
-
return i.lastType = s, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc = R, i.offset = l(), i.startLoc = a(), r.currentChar() === xe ?
|
|
515
|
+
return i.lastType = s, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc = R, i.offset = l(), i.startLoc = a(), r.currentChar() === xe ? C(
|
|
516
516
|
i,
|
|
517
517
|
13
|
|
518
518
|
/* TokenTypes.EOF */
|
|
519
|
-
) :
|
|
519
|
+
) : Ze(r, i);
|
|
520
520
|
}
|
|
521
521
|
return {
|
|
522
522
|
nextToken: O,
|
|
@@ -540,87 +540,87 @@ function es(e, t, n) {
|
|
|
540
540
|
}
|
|
541
541
|
function ts(e = {}) {
|
|
542
542
|
const t = e.location !== !1, { onError: n } = e;
|
|
543
|
-
function r(f, h,
|
|
543
|
+
function r(f, h, L, c, ...b) {
|
|
544
544
|
const I = f.currentPosition();
|
|
545
545
|
if (I.offset += c, I.column += c, n) {
|
|
546
|
-
const p = t ? Ft(
|
|
546
|
+
const p = t ? Ft(L, I) : null, k = Tt(h, p, {
|
|
547
547
|
domain: Qr,
|
|
548
548
|
args: b
|
|
549
549
|
});
|
|
550
550
|
n(k);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
function l(f, h,
|
|
553
|
+
function l(f, h, L) {
|
|
554
554
|
const c = { type: f };
|
|
555
|
-
return t && (c.start = h, c.end = h, c.loc = { start:
|
|
555
|
+
return t && (c.start = h, c.end = h, c.loc = { start: L, end: L }), c;
|
|
556
556
|
}
|
|
557
|
-
function a(f, h,
|
|
558
|
-
t && (f.end = h, f.loc && (f.loc.end =
|
|
557
|
+
function a(f, h, L, c) {
|
|
558
|
+
t && (f.end = h, f.loc && (f.loc.end = L));
|
|
559
559
|
}
|
|
560
560
|
function m(f, h) {
|
|
561
|
-
const
|
|
561
|
+
const L = f.context(), c = l(3, L.offset, L.startLoc);
|
|
562
562
|
return c.value = h, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
563
563
|
}
|
|
564
564
|
function u(f, h) {
|
|
565
|
-
const
|
|
565
|
+
const L = f.context(), { lastOffset: c, lastStartLoc: b } = L, I = l(5, c, b);
|
|
566
566
|
return I.index = parseInt(h, 10), f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
567
567
|
}
|
|
568
568
|
function i(f, h) {
|
|
569
|
-
const
|
|
569
|
+
const L = f.context(), { lastOffset: c, lastStartLoc: b } = L, I = l(4, c, b);
|
|
570
570
|
return I.key = h, f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
571
571
|
}
|
|
572
572
|
function g(f, h) {
|
|
573
|
-
const
|
|
573
|
+
const L = f.context(), { lastOffset: c, lastStartLoc: b } = L, I = l(9, c, b);
|
|
574
574
|
return I.value = h.replace(qr, es), f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
575
575
|
}
|
|
576
576
|
function y(f) {
|
|
577
|
-
const h = f.nextToken(),
|
|
578
|
-
return h.type !== 11 ? (r(f, re.UNEXPECTED_EMPTY_LINKED_MODIFIER,
|
|
577
|
+
const h = f.nextToken(), L = f.context(), { lastOffset: c, lastStartLoc: b } = L, I = l(8, c, b);
|
|
578
|
+
return h.type !== 11 ? (r(f, re.UNEXPECTED_EMPTY_LINKED_MODIFIER, L.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,
|
|
581
|
+
}) : (h.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, Re(h)), I.value = h.value || "", a(I, f.currentOffset(), f.currentPosition()), {
|
|
582
582
|
node: I
|
|
583
583
|
});
|
|
584
584
|
}
|
|
585
585
|
function T(f, h) {
|
|
586
|
-
const
|
|
586
|
+
const L = f.context(), c = l(7, L.offset, L.startLoc);
|
|
587
587
|
return c.value = h, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
588
588
|
}
|
|
589
|
-
function
|
|
590
|
-
const h = f.context(),
|
|
589
|
+
function C(f) {
|
|
590
|
+
const h = f.context(), L = l(6, h.offset, h.startLoc);
|
|
591
591
|
let c = f.nextToken();
|
|
592
592
|
if (c.type === 8) {
|
|
593
593
|
const b = y(f);
|
|
594
|
-
|
|
594
|
+
L.modifier = b.node, c = b.nextConsumeToken || f.nextToken();
|
|
595
595
|
}
|
|
596
596
|
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), c = f.nextToken(), c.type === 2 && (c = f.nextToken()), c.type) {
|
|
597
597
|
case 10:
|
|
598
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)),
|
|
598
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), L.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, Re(c)),
|
|
601
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), L.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, Re(c)),
|
|
604
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), L.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, Re(c)),
|
|
607
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), L.key = g(f, c.value || "");
|
|
608
608
|
break;
|
|
609
609
|
default: {
|
|
610
610
|
r(f, re.UNEXPECTED_EMPTY_LINKED_KEY, h.lastStartLoc, 0);
|
|
611
611
|
const b = f.context(), I = l(7, b.offset, b.startLoc);
|
|
612
|
-
return I.value = "", a(I, b.offset, b.startLoc),
|
|
612
|
+
return I.value = "", a(I, b.offset, b.startLoc), L.key = I, a(L, b.offset, b.startLoc), {
|
|
613
613
|
nextConsumeToken: c,
|
|
614
|
-
node:
|
|
614
|
+
node: L
|
|
615
615
|
};
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
return a(
|
|
619
|
-
node:
|
|
618
|
+
return a(L, f.currentOffset(), f.currentPosition()), {
|
|
619
|
+
node: L
|
|
620
620
|
};
|
|
621
621
|
}
|
|
622
622
|
function F(f) {
|
|
623
|
-
const h = f.context(),
|
|
623
|
+
const h = f.context(), L = h.currentType === 1 ? f.currentOffset() : h.offset, c = h.currentType === 1 ? h.endLoc : h.startLoc, b = l(2, L, c);
|
|
624
624
|
b.items = [];
|
|
625
625
|
let I = null;
|
|
626
626
|
do {
|
|
@@ -639,7 +639,7 @@ function ts(e = {}) {
|
|
|
639
639
|
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(A)), b.items.push(g(f, A.value || ""));
|
|
640
640
|
break;
|
|
641
641
|
case 7: {
|
|
642
|
-
const X =
|
|
642
|
+
const X = C(f);
|
|
643
643
|
b.items.push(X.node), I = X.nextConsumeToken || null;
|
|
644
644
|
break;
|
|
645
645
|
}
|
|
@@ -648,24 +648,24 @@ function ts(e = {}) {
|
|
|
648
648
|
const p = h.currentType === 1 ? h.lastOffset : f.currentOffset(), k = h.currentType === 1 ? h.lastEndLoc : f.currentPosition();
|
|
649
649
|
return a(b, p, k), b;
|
|
650
650
|
}
|
|
651
|
-
function w(f, h,
|
|
651
|
+
function w(f, h, L, c) {
|
|
652
652
|
const b = f.context();
|
|
653
653
|
let I = c.items.length === 0;
|
|
654
|
-
const p = l(1, h,
|
|
654
|
+
const p = l(1, h, L);
|
|
655
655
|
p.cases = [], p.cases.push(c);
|
|
656
656
|
do {
|
|
657
657
|
const k = F(f);
|
|
658
658
|
I || (I = k.items.length === 0), p.cases.push(k);
|
|
659
659
|
} while (b.currentType !== 13);
|
|
660
|
-
return I && r(f, re.MUST_HAVE_MESSAGES_IN_PLURAL,
|
|
660
|
+
return I && r(f, re.MUST_HAVE_MESSAGES_IN_PLURAL, L, 0), a(p, f.currentOffset(), f.currentPosition()), p;
|
|
661
661
|
}
|
|
662
|
-
function
|
|
663
|
-
const h = f.context(), { offset:
|
|
664
|
-
return h.currentType === 13 ? b : w(f,
|
|
662
|
+
function S(f) {
|
|
663
|
+
const h = f.context(), { offset: L, startLoc: c } = h, b = F(f);
|
|
664
|
+
return h.currentType === 13 ? b : w(f, L, c, b);
|
|
665
665
|
}
|
|
666
666
|
function D(f) {
|
|
667
|
-
const h = zr(f, Ie({}, e)),
|
|
668
|
-
return t && c.loc && (c.loc.source = f), c.body =
|
|
667
|
+
const h = zr(f, Ie({}, e)), L = h.context(), c = l(0, L.offset, L.startLoc);
|
|
668
|
+
return t && c.loc && (c.loc.source = f), c.body = S(h), e.onCacheKey && (c.cacheKey = e.onCacheKey(f)), L.currentType !== 13 && r(h, re.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, f[L.offset] || ""), a(c, h.currentOffset(), h.currentPosition()), c;
|
|
669
669
|
}
|
|
670
670
|
return { parse: D };
|
|
671
671
|
}
|
|
@@ -822,22 +822,22 @@ function os(e, t) {
|
|
|
822
822
|
};
|
|
823
823
|
a && e.loc && (m.source = e.loc.source);
|
|
824
824
|
const u = () => m;
|
|
825
|
-
function i(
|
|
826
|
-
m.code +=
|
|
825
|
+
function i(S, D) {
|
|
826
|
+
m.code += S;
|
|
827
827
|
}
|
|
828
|
-
function g(
|
|
828
|
+
function g(S, D = !0) {
|
|
829
829
|
const f = D ? r : "";
|
|
830
|
-
i(l ? f + " ".repeat(
|
|
830
|
+
i(l ? f + " ".repeat(S) : f);
|
|
831
831
|
}
|
|
832
|
-
function y(
|
|
832
|
+
function y(S = !0) {
|
|
833
833
|
const D = ++m.indentLevel;
|
|
834
|
-
|
|
834
|
+
S && g(D);
|
|
835
835
|
}
|
|
836
|
-
function T(
|
|
836
|
+
function T(S = !0) {
|
|
837
837
|
const D = --m.indentLevel;
|
|
838
|
-
|
|
838
|
+
S && g(D);
|
|
839
839
|
}
|
|
840
|
-
function
|
|
840
|
+
function C() {
|
|
841
841
|
g(m.indentLevel);
|
|
842
842
|
}
|
|
843
843
|
return {
|
|
@@ -845,8 +845,8 @@ function os(e, t) {
|
|
|
845
845
|
push: i,
|
|
846
846
|
indent: y,
|
|
847
847
|
deindent: T,
|
|
848
|
-
newline:
|
|
849
|
-
helper: (
|
|
848
|
+
newline: C,
|
|
849
|
+
helper: (S) => `_${S}`,
|
|
850
850
|
needIndent: () => m.needIndent
|
|
851
851
|
};
|
|
852
852
|
}
|
|
@@ -932,7 +932,7 @@ function st(e, t) {
|
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
934
|
const us = (e, t = {}) => {
|
|
935
|
-
const n =
|
|
935
|
+
const n = G(t.mode) ? t.mode : "normal", r = G(t.filename) ? t.filename : "message.intl";
|
|
936
936
|
t.sourceMap;
|
|
937
937
|
const l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
938
938
|
`, a = t.needIndent ? t.needIndent : n !== "arrow", m = e.helpers || [], u = os(e, {
|
|
@@ -957,7 +957,7 @@ var ds = { env: { NODE_ENV: "production" } };
|
|
|
957
957
|
function fs() {
|
|
958
958
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Xe().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Xe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
959
959
|
}
|
|
960
|
-
function
|
|
960
|
+
function St(e) {
|
|
961
961
|
return (n) => _s(n, e);
|
|
962
962
|
}
|
|
963
963
|
function _s(e, t) {
|
|
@@ -978,11 +978,11 @@ function _s(e, t) {
|
|
|
978
978
|
}
|
|
979
979
|
const ps = ["b", "body"];
|
|
980
980
|
function vs(e) {
|
|
981
|
-
return
|
|
981
|
+
return Ye(e, ps);
|
|
982
982
|
}
|
|
983
983
|
const hs = ["c", "cases"];
|
|
984
984
|
function bs(e) {
|
|
985
|
-
return
|
|
985
|
+
return Ye(e, hs, []);
|
|
986
986
|
}
|
|
987
987
|
function dn(e, t) {
|
|
988
988
|
const n = Is(t);
|
|
@@ -995,11 +995,11 @@ function dn(e, t) {
|
|
|
995
995
|
}
|
|
996
996
|
const gs = ["s", "static"];
|
|
997
997
|
function Is(e) {
|
|
998
|
-
return
|
|
998
|
+
return Ye(e, gs);
|
|
999
999
|
}
|
|
1000
1000
|
const ys = ["i", "items"];
|
|
1001
1001
|
function Es(e) {
|
|
1002
|
-
return
|
|
1002
|
+
return Ye(e, ys, []);
|
|
1003
1003
|
}
|
|
1004
1004
|
function Pt(e, t) {
|
|
1005
1005
|
const n = Kt(t);
|
|
@@ -1036,24 +1036,24 @@ function Pt(e, t) {
|
|
|
1036
1036
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
|
-
const
|
|
1039
|
+
const Cs = ["t", "type"];
|
|
1040
1040
|
function Kt(e) {
|
|
1041
|
-
return
|
|
1041
|
+
return Ye(e, Cs);
|
|
1042
1042
|
}
|
|
1043
|
-
const
|
|
1043
|
+
const Ns = ["v", "value"];
|
|
1044
1044
|
function _t(e, t) {
|
|
1045
|
-
const n =
|
|
1045
|
+
const n = Ye(e, Ns);
|
|
1046
1046
|
if (n)
|
|
1047
1047
|
return n;
|
|
1048
1048
|
throw it(t);
|
|
1049
1049
|
}
|
|
1050
1050
|
const Ts = ["m", "modifier"];
|
|
1051
1051
|
function Os(e) {
|
|
1052
|
-
return
|
|
1052
|
+
return Ye(e, Ts);
|
|
1053
1053
|
}
|
|
1054
|
-
const
|
|
1054
|
+
const Ls = ["k", "key"];
|
|
1055
1055
|
function As(e) {
|
|
1056
|
-
const t =
|
|
1056
|
+
const t = Ye(e, Ls);
|
|
1057
1057
|
if (t)
|
|
1058
1058
|
return t;
|
|
1059
1059
|
throw it(
|
|
@@ -1061,7 +1061,7 @@ function As(e) {
|
|
|
1061
1061
|
/* NodeTypes.Linked */
|
|
1062
1062
|
);
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
1064
|
+
function Ye(e, t, n) {
|
|
1065
1065
|
for (let r = 0; r < t.length; r++) {
|
|
1066
1066
|
const l = t[r];
|
|
1067
1067
|
if (Ae(e, l) && e[l] != null)
|
|
@@ -1072,38 +1072,38 @@ function Ge(e, t, n) {
|
|
|
1072
1072
|
function it(e) {
|
|
1073
1073
|
return new Error(`unhandled node type: ${e}`);
|
|
1074
1074
|
}
|
|
1075
|
-
const
|
|
1076
|
-
let pt =
|
|
1075
|
+
const Ss = (e) => e;
|
|
1076
|
+
let pt = oe();
|
|
1077
1077
|
function ot(e) {
|
|
1078
1078
|
return te(e) && Kt(e) === 0 && (Ae(e, "b") || Ae(e, "body"));
|
|
1079
1079
|
}
|
|
1080
1080
|
function Rs(e, t = {}) {
|
|
1081
1081
|
let n = !1;
|
|
1082
|
-
const r = t.onError ||
|
|
1082
|
+
const r = t.onError || Zr;
|
|
1083
1083
|
return t.onError = (l) => {
|
|
1084
1084
|
n = !0, r(l);
|
|
1085
1085
|
}, { ...ms(e, t), detectError: n };
|
|
1086
1086
|
}
|
|
1087
1087
|
// @__NO_SIDE_EFFECTS__
|
|
1088
1088
|
function ks(e, t) {
|
|
1089
|
-
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ &&
|
|
1089
|
+
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && G(e)) {
|
|
1090
1090
|
ve(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1091
|
-
const r = (t.onCacheKey ||
|
|
1091
|
+
const r = (t.onCacheKey || Ss)(e), l = pt[r];
|
|
1092
1092
|
if (l)
|
|
1093
1093
|
return l;
|
|
1094
1094
|
const { ast: a, detectError: m } = Rs(e, {
|
|
1095
1095
|
...t,
|
|
1096
1096
|
location: ds.env.NODE_ENV !== "production",
|
|
1097
1097
|
jit: !0
|
|
1098
|
-
}), u =
|
|
1098
|
+
}), u = St(a);
|
|
1099
1099
|
return m ? u : pt[r] = u;
|
|
1100
1100
|
} else {
|
|
1101
1101
|
const n = e.cacheKey;
|
|
1102
1102
|
if (n) {
|
|
1103
1103
|
const r = pt[n];
|
|
1104
|
-
return r || (pt[n] =
|
|
1104
|
+
return r || (pt[n] = St(e));
|
|
1105
1105
|
} else
|
|
1106
|
-
return
|
|
1106
|
+
return St(e);
|
|
1107
1107
|
}
|
|
1108
1108
|
}
|
|
1109
1109
|
let ct = null;
|
|
@@ -1123,7 +1123,7 @@ function Fs(e) {
|
|
|
1123
1123
|
return (t) => ct && ct.emit(e, t);
|
|
1124
1124
|
}
|
|
1125
1125
|
const je = {
|
|
1126
|
-
INVALID_ARGUMENT:
|
|
1126
|
+
INVALID_ARGUMENT: Gr,
|
|
1127
1127
|
// 17
|
|
1128
1128
|
INVALID_DATE_ARGUMENT: 18,
|
|
1129
1129
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1139,7 +1139,7 @@ function zt(e, t) {
|
|
|
1139
1139
|
}
|
|
1140
1140
|
let Rt;
|
|
1141
1141
|
function fn(e) {
|
|
1142
|
-
if (
|
|
1142
|
+
if (G(e))
|
|
1143
1143
|
return e;
|
|
1144
1144
|
if (de(e)) {
|
|
1145
1145
|
if (e.resolvedOnce && Rt != null)
|
|
@@ -1157,11 +1157,11 @@ function fn(e) {
|
|
|
1157
1157
|
function js(e, t, n) {
|
|
1158
1158
|
return [.../* @__PURE__ */ new Set([
|
|
1159
1159
|
n,
|
|
1160
|
-
...be(t) ? t : te(t) ? Object.keys(t) :
|
|
1160
|
+
...be(t) ? t : te(t) ? Object.keys(t) : G(t) ? [t] : [n]
|
|
1161
1161
|
])];
|
|
1162
1162
|
}
|
|
1163
1163
|
function Hn(e, t, n) {
|
|
1164
|
-
const r =
|
|
1164
|
+
const r = G(n) ? n : Ct, l = e;
|
|
1165
1165
|
l.__localeChainCache || (l.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1166
1166
|
let a = l.__localeChainCache.get(r);
|
|
1167
1167
|
if (!a) {
|
|
@@ -1170,7 +1170,7 @@ function Hn(e, t, n) {
|
|
|
1170
1170
|
for (; be(m); )
|
|
1171
1171
|
m = _n(a, m, t);
|
|
1172
1172
|
const u = be(t) || !ee(t) ? t : t.default ? t.default : null;
|
|
1173
|
-
m =
|
|
1173
|
+
m = G(u) ? [u] : u, be(m) && _n(a, m, !1), l.__localeChainCache.set(r, a);
|
|
1174
1174
|
}
|
|
1175
1175
|
return a;
|
|
1176
1176
|
}
|
|
@@ -1178,7 +1178,7 @@ function _n(e, t, n) {
|
|
|
1178
1178
|
let r = !0;
|
|
1179
1179
|
for (let l = 0; l < t.length && ve(r); l++) {
|
|
1180
1180
|
const a = t[l];
|
|
1181
|
-
|
|
1181
|
+
G(a) && (r = Us(e, t[l], n));
|
|
1182
1182
|
}
|
|
1183
1183
|
return r;
|
|
1184
1184
|
}
|
|
@@ -1200,8 +1200,8 @@ function Vs(e, t, n) {
|
|
|
1200
1200
|
}
|
|
1201
1201
|
return r;
|
|
1202
1202
|
}
|
|
1203
|
-
const
|
|
1204
|
-
|
|
1203
|
+
const Ge = [];
|
|
1204
|
+
Ge[
|
|
1205
1205
|
0
|
|
1206
1206
|
/* States.BEFORE_PATH */
|
|
1207
1207
|
] = {
|
|
@@ -1223,7 +1223,7 @@ Ze[
|
|
|
1223
1223
|
/* States.AFTER_PATH */
|
|
1224
1224
|
]
|
|
1225
1225
|
};
|
|
1226
|
-
|
|
1226
|
+
Ge[
|
|
1227
1227
|
1
|
|
1228
1228
|
/* States.IN_PATH */
|
|
1229
1229
|
] = {
|
|
@@ -1244,7 +1244,7 @@ Ze[
|
|
|
1244
1244
|
/* States.AFTER_PATH */
|
|
1245
1245
|
]
|
|
1246
1246
|
};
|
|
1247
|
-
|
|
1247
|
+
Ge[
|
|
1248
1248
|
2
|
|
1249
1249
|
/* States.BEFORE_IDENT */
|
|
1250
1250
|
] = {
|
|
@@ -1263,7 +1263,7 @@ Ze[
|
|
|
1263
1263
|
/* Actions.APPEND */
|
|
1264
1264
|
]
|
|
1265
1265
|
};
|
|
1266
|
-
|
|
1266
|
+
Ge[
|
|
1267
1267
|
3
|
|
1268
1268
|
/* States.IN_IDENT */
|
|
1269
1269
|
] = {
|
|
@@ -1298,7 +1298,7 @@ Ze[
|
|
|
1298
1298
|
/* Actions.PUSH */
|
|
1299
1299
|
]
|
|
1300
1300
|
};
|
|
1301
|
-
|
|
1301
|
+
Ge[
|
|
1302
1302
|
4
|
|
1303
1303
|
/* States.IN_SUB_PATH */
|
|
1304
1304
|
] = {
|
|
@@ -1329,7 +1329,7 @@ Ze[
|
|
|
1329
1329
|
/* Actions.APPEND */
|
|
1330
1330
|
]
|
|
1331
1331
|
};
|
|
1332
|
-
|
|
1332
|
+
Ge[
|
|
1333
1333
|
5
|
|
1334
1334
|
/* States.IN_SINGLE_QUOTE */
|
|
1335
1335
|
] = {
|
|
@@ -1345,7 +1345,7 @@ Ze[
|
|
|
1345
1345
|
/* Actions.APPEND */
|
|
1346
1346
|
]
|
|
1347
1347
|
};
|
|
1348
|
-
|
|
1348
|
+
Ge[
|
|
1349
1349
|
6
|
|
1350
1350
|
/* States.IN_DOUBLE_QUOTE */
|
|
1351
1351
|
] = {
|
|
@@ -1365,11 +1365,11 @@ const xs = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
|
1365
1365
|
function Ws(e) {
|
|
1366
1366
|
return xs.test(e);
|
|
1367
1367
|
}
|
|
1368
|
-
function
|
|
1368
|
+
function Ys(e) {
|
|
1369
1369
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1370
1370
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1371
1371
|
}
|
|
1372
|
-
function
|
|
1372
|
+
function Gs(e) {
|
|
1373
1373
|
if (e == null)
|
|
1374
1374
|
return "o";
|
|
1375
1375
|
switch (e.charCodeAt(0)) {
|
|
@@ -1394,45 +1394,45 @@ function Zs(e) {
|
|
|
1394
1394
|
}
|
|
1395
1395
|
return "i";
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1397
|
+
function Zs(e) {
|
|
1398
1398
|
const t = e.trim();
|
|
1399
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Ws(t) ?
|
|
1399
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Ws(t) ? Ys(t) : "*" + t;
|
|
1400
1400
|
}
|
|
1401
1401
|
function Bs(e) {
|
|
1402
1402
|
const t = [];
|
|
1403
1403
|
let n = -1, r = 0, l = 0, a, m, u, i, g, y, T;
|
|
1404
|
-
const
|
|
1405
|
-
|
|
1404
|
+
const C = [];
|
|
1405
|
+
C[
|
|
1406
1406
|
0
|
|
1407
1407
|
/* Actions.APPEND */
|
|
1408
1408
|
] = () => {
|
|
1409
1409
|
m === void 0 ? m = u : m += u;
|
|
1410
|
-
},
|
|
1410
|
+
}, C[
|
|
1411
1411
|
1
|
|
1412
1412
|
/* Actions.PUSH */
|
|
1413
1413
|
] = () => {
|
|
1414
1414
|
m !== void 0 && (t.push(m), m = void 0);
|
|
1415
|
-
},
|
|
1415
|
+
}, C[
|
|
1416
1416
|
2
|
|
1417
1417
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1418
1418
|
] = () => {
|
|
1419
|
-
|
|
1419
|
+
C[
|
|
1420
1420
|
0
|
|
1421
1421
|
/* Actions.APPEND */
|
|
1422
1422
|
](), l++;
|
|
1423
|
-
},
|
|
1423
|
+
}, C[
|
|
1424
1424
|
3
|
|
1425
1425
|
/* Actions.PUSH_SUB_PATH */
|
|
1426
1426
|
] = () => {
|
|
1427
1427
|
if (l > 0)
|
|
1428
|
-
l--, r = 4,
|
|
1428
|
+
l--, r = 4, C[
|
|
1429
1429
|
0
|
|
1430
1430
|
/* Actions.APPEND */
|
|
1431
1431
|
]();
|
|
1432
1432
|
else {
|
|
1433
|
-
if (l = 0, m === void 0 || (m =
|
|
1433
|
+
if (l = 0, m === void 0 || (m = Zs(m), m === !1))
|
|
1434
1434
|
return !1;
|
|
1435
|
-
|
|
1435
|
+
C[
|
|
1436
1436
|
1
|
|
1437
1437
|
/* Actions.PUSH */
|
|
1438
1438
|
]();
|
|
@@ -1441,14 +1441,14 @@ function Bs(e) {
|
|
|
1441
1441
|
function F() {
|
|
1442
1442
|
const w = e[n + 1];
|
|
1443
1443
|
if (r === 5 && w === "'" || r === 6 && w === '"')
|
|
1444
|
-
return n++, u = "\\" + w,
|
|
1444
|
+
return n++, u = "\\" + w, C[
|
|
1445
1445
|
0
|
|
1446
1446
|
/* Actions.APPEND */
|
|
1447
1447
|
](), !0;
|
|
1448
1448
|
}
|
|
1449
1449
|
for (; r !== null; )
|
|
1450
1450
|
if (n++, a = e[n], !(a === "\\" && F())) {
|
|
1451
|
-
if (i =
|
|
1451
|
+
if (i = Gs(a), T = Ge[r], g = T[i] || T.l || 8, g === 8 || (r = g[0], g[1] !== void 0 && (y = C[g[1]], y && (u = a, y() === !1))))
|
|
1452
1452
|
return;
|
|
1453
1453
|
if (r === 7)
|
|
1454
1454
|
return t;
|
|
@@ -1474,12 +1474,12 @@ function Hs(e, t) {
|
|
|
1474
1474
|
}
|
|
1475
1475
|
return l;
|
|
1476
1476
|
}
|
|
1477
|
-
const $s = "10.0.5", Ot = -1,
|
|
1477
|
+
const $s = "10.0.5", Ot = -1, Ct = "en-US", vn = "", hn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1478
1478
|
function Js() {
|
|
1479
1479
|
return {
|
|
1480
|
-
upper: (e, t) => t === "text" &&
|
|
1481
|
-
lower: (e, t) => t === "text" &&
|
|
1482
|
-
capitalize: (e, t) => t === "text" &&
|
|
1480
|
+
upper: (e, t) => t === "text" && G(e) ? e.toUpperCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1481
|
+
lower: (e, t) => t === "text" && G(e) ? e.toLowerCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1482
|
+
capitalize: (e, t) => t === "text" && G(e) ? hn(e) : t === "vnode" && te(e) && "__v_isVNode" in e ? hn(e.children) : e
|
|
1483
1483
|
};
|
|
1484
1484
|
}
|
|
1485
1485
|
let $n;
|
|
@@ -1504,7 +1504,7 @@ const bn = (e) => {
|
|
|
1504
1504
|
}, to = () => Qn;
|
|
1505
1505
|
let gn = 0;
|
|
1506
1506
|
function no(e = {}) {
|
|
1507
|
-
const t = de(e.onWarn) ? e.onWarn : Wr, n =
|
|
1507
|
+
const t = de(e.onWarn) ? e.onWarn : Wr, n = G(e.version) ? e.version : $s, r = G(e.locale) || de(e.locale) ? e.locale : Ct, l = de(r) ? Ct : r, a = be(e.fallbackLocale) || ee(e.fallbackLocale) || G(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, m = ee(e.messages) ? e.messages : kt(l), u = ee(e.datetimeFormats) ? e.datetimeFormats : kt(l), i = ee(e.numberFormats) ? e.numberFormats : kt(l), g = Ie(oe(), e.modifiers, Js()), y = e.pluralRules || oe(), T = de(e.missing) ? e.missing : null, C = ve(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, F = ve(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, w = !!e.fallbackFormat, S = !!e.unresolving, D = de(e.postTranslation) ? e.postTranslation : null, f = ee(e.processor) ? e.processor : null, h = ve(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, L = !!e.escapeParameter, c = de(e.messageCompiler) ? e.messageCompiler : $n, b = de(e.messageResolver) ? e.messageResolver : Jn || Xs, I = de(e.localeFallbacker) ? e.localeFallbacker : Kn || js, p = te(e.fallbackContext) ? e.fallbackContext : void 0, k = e, A = te(k.__datetimeFormatters) ? k.__datetimeFormatters : /* @__PURE__ */ new Map(), X = te(k.__numberFormatters) ? k.__numberFormatters : /* @__PURE__ */ new Map(), x = te(k.__meta) ? k.__meta : {};
|
|
1508
1508
|
gn++;
|
|
1509
1509
|
const d = {
|
|
1510
1510
|
version: n,
|
|
@@ -1515,14 +1515,14 @@ function no(e = {}) {
|
|
|
1515
1515
|
modifiers: g,
|
|
1516
1516
|
pluralRules: y,
|
|
1517
1517
|
missing: T,
|
|
1518
|
-
missingWarn:
|
|
1518
|
+
missingWarn: C,
|
|
1519
1519
|
fallbackWarn: F,
|
|
1520
1520
|
fallbackFormat: w,
|
|
1521
|
-
unresolving:
|
|
1521
|
+
unresolving: S,
|
|
1522
1522
|
postTranslation: D,
|
|
1523
1523
|
processor: f,
|
|
1524
1524
|
warnHtmlMessage: h,
|
|
1525
|
-
escapeParameter:
|
|
1525
|
+
escapeParameter: L,
|
|
1526
1526
|
messageCompiler: c,
|
|
1527
1527
|
messageResolver: b,
|
|
1528
1528
|
localeFallbacker: I,
|
|
@@ -1532,12 +1532,12 @@ function no(e = {}) {
|
|
|
1532
1532
|
};
|
|
1533
1533
|
return d.datetimeFormats = u, d.numberFormats = i, d.__datetimeFormatters = A, d.__numberFormatters = X, __INTLIFY_PROD_DEVTOOLS__ && ws(d, n, x), d;
|
|
1534
1534
|
}
|
|
1535
|
-
const kt = (e) => ({ [e]:
|
|
1535
|
+
const kt = (e) => ({ [e]: oe() });
|
|
1536
1536
|
function Qt(e, t, n, r, l) {
|
|
1537
1537
|
const { missing: a, onWarn: m } = e;
|
|
1538
1538
|
if (a !== null) {
|
|
1539
1539
|
const u = a(e, n, t, l);
|
|
1540
|
-
return
|
|
1540
|
+
return G(u) ? u : t;
|
|
1541
1541
|
} else
|
|
1542
1542
|
return t;
|
|
1543
1543
|
}
|
|
@@ -1558,24 +1558,24 @@ 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: m } = e, { __datetimeFormatters: u } = e, [i, g, y, T] = jt(...t),
|
|
1561
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: m } = e, { __datetimeFormatters: u } = e, [i, g, y, T] = jt(...t), C = ve(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1562
1562
|
ve(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1563
|
-
const F = !!y.part, w = zt(e, y),
|
|
1563
|
+
const F = !!y.part, w = zt(e, y), S = m(
|
|
1564
1564
|
e,
|
|
1565
1565
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1566
1566
|
l,
|
|
1567
1567
|
w
|
|
1568
1568
|
);
|
|
1569
|
-
if (!
|
|
1569
|
+
if (!G(i) || i === "")
|
|
1570
1570
|
return new Intl.DateTimeFormat(w, T).format(g);
|
|
1571
1571
|
let D = {}, f, h = null;
|
|
1572
|
-
const
|
|
1573
|
-
for (let I = 0; I <
|
|
1574
|
-
Qt(e, i, f,
|
|
1575
|
-
if (!ee(h) || !
|
|
1572
|
+
const L = "datetime format";
|
|
1573
|
+
for (let I = 0; I < S.length && (f = S[I], D = n[f] || {}, h = D[i], !ee(h)); I++)
|
|
1574
|
+
Qt(e, i, f, C, L);
|
|
1575
|
+
if (!ee(h) || !G(f))
|
|
1576
1576
|
return r ? Ot : i;
|
|
1577
1577
|
let c = `${f}__${i}`;
|
|
1578
|
-
|
|
1578
|
+
Nt(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
1579
1579
|
let b = u.get(c);
|
|
1580
1580
|
return b || (b = new Intl.DateTimeFormat(f, Ie({}, h, T)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1581
1581
|
}
|
|
@@ -1602,9 +1602,9 @@ const qn = [
|
|
|
1602
1602
|
"fractionalSecondDigits"
|
|
1603
1603
|
];
|
|
1604
1604
|
function jt(...e) {
|
|
1605
|
-
const [t, n, r, l] = e, a =
|
|
1606
|
-
let m =
|
|
1607
|
-
if (
|
|
1605
|
+
const [t, n, r, l] = e, a = oe();
|
|
1606
|
+
let m = oe(), u;
|
|
1607
|
+
if (G(t)) {
|
|
1608
1608
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1609
1609
|
if (!i)
|
|
1610
1610
|
throw Ue(je.INVALID_ISO_DATE_ARGUMENT);
|
|
@@ -1623,9 +1623,9 @@ function jt(...e) {
|
|
|
1623
1623
|
u = t;
|
|
1624
1624
|
else
|
|
1625
1625
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1626
|
-
return
|
|
1626
|
+
return G(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1627
1627
|
qn.includes(i) ? m[i] = n[i] : a[i] = n[i];
|
|
1628
|
-
}),
|
|
1628
|
+
}), G(r) ? a.locale = r : ee(r) && (m = r), ee(l) && (m = l), [a.key || "", u, a, m];
|
|
1629
1629
|
}
|
|
1630
1630
|
function yn(e, t, n) {
|
|
1631
1631
|
const r = e;
|
|
@@ -1635,24 +1635,24 @@ 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: m } = e, { __numberFormatters: u } = e, [i, g, y, T] = Ut(...t),
|
|
1638
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: m } = e, { __numberFormatters: u } = e, [i, g, y, T] = Ut(...t), C = ve(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1639
1639
|
ve(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1640
|
-
const F = !!y.part, w = zt(e, y),
|
|
1640
|
+
const F = !!y.part, w = zt(e, y), S = m(
|
|
1641
1641
|
e,
|
|
1642
1642
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1643
1643
|
l,
|
|
1644
1644
|
w
|
|
1645
1645
|
);
|
|
1646
|
-
if (!
|
|
1646
|
+
if (!G(i) || i === "")
|
|
1647
1647
|
return new Intl.NumberFormat(w, T).format(g);
|
|
1648
1648
|
let D = {}, f, h = null;
|
|
1649
|
-
const
|
|
1650
|
-
for (let I = 0; I <
|
|
1651
|
-
Qt(e, i, f,
|
|
1652
|
-
if (!ee(h) || !
|
|
1649
|
+
const L = "number format";
|
|
1650
|
+
for (let I = 0; I < S.length && (f = S[I], D = n[f] || {}, h = D[i], !ee(h)); I++)
|
|
1651
|
+
Qt(e, i, f, C, L);
|
|
1652
|
+
if (!ee(h) || !G(f))
|
|
1653
1653
|
return r ? Ot : i;
|
|
1654
1654
|
let c = `${f}__${i}`;
|
|
1655
|
-
|
|
1655
|
+
Nt(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
1656
1656
|
let b = u.get(c);
|
|
1657
1657
|
return b || (b = new Intl.NumberFormat(f, Ie({}, h, T)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1658
1658
|
}
|
|
@@ -1679,16 +1679,16 @@ const er = [
|
|
|
1679
1679
|
"trailingZeroDisplay"
|
|
1680
1680
|
];
|
|
1681
1681
|
function Ut(...e) {
|
|
1682
|
-
const [t, n, r, l] = e, a =
|
|
1683
|
-
let m =
|
|
1682
|
+
const [t, n, r, l] = e, a = oe();
|
|
1683
|
+
let m = oe();
|
|
1684
1684
|
if (!ge(t))
|
|
1685
1685
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1686
1686
|
const u = t;
|
|
1687
|
-
return
|
|
1687
|
+
return G(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1688
1688
|
er.includes(i) ? m[i] = n[i] : a[i] = n[i];
|
|
1689
|
-
}),
|
|
1689
|
+
}), G(r) ? a.locale = r : ee(r) && (m = r), ee(l) && (m = l), [a.key || "", u, a, m];
|
|
1690
1690
|
}
|
|
1691
|
-
function
|
|
1691
|
+
function Cn(e, t, n) {
|
|
1692
1692
|
const r = e;
|
|
1693
1693
|
for (const l in n) {
|
|
1694
1694
|
const a = `${t}__${l}`;
|
|
@@ -1696,7 +1696,7 @@ function Nn(e, t, n) {
|
|
|
1696
1696
|
}
|
|
1697
1697
|
}
|
|
1698
1698
|
const oo = (e) => e, ao = (e) => "", lo = "text", io = (e) => e.length === 0 ? "" : $t(e), co = xr;
|
|
1699
|
-
function
|
|
1699
|
+
function Nn(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
|
}
|
|
1702
1702
|
function uo(e) {
|
|
@@ -1707,21 +1707,21 @@ function mo(e, t) {
|
|
|
1707
1707
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1708
1708
|
}
|
|
1709
1709
|
function fo(e = {}) {
|
|
1710
|
-
const t = e.locale, n = uo(e), r = te(e.pluralRules) &&
|
|
1710
|
+
const t = e.locale, n = uo(e), r = te(e.pluralRules) && G(t) && de(e.pluralRules[t]) ? e.pluralRules[t] : Nn, l = te(e.pluralRules) && G(t) && de(e.pluralRules[t]) ? Nn : void 0, a = (f) => f[r(n, f.length, l)], m = e.list || [], u = (f) => m[f], i = e.named || oe();
|
|
1711
1711
|
ge(e.pluralIndex) && mo(n, i);
|
|
1712
1712
|
const g = (f) => i[f];
|
|
1713
1713
|
function y(f, h) {
|
|
1714
|
-
const
|
|
1715
|
-
return
|
|
1714
|
+
const L = de(e.messages) ? e.messages(f, !!h) : te(e.messages) ? e.messages[f] : !1;
|
|
1715
|
+
return L || (e.parent ? e.parent.message(f) : ao);
|
|
1716
1716
|
}
|
|
1717
|
-
const T = (f) => e.modifiers ? e.modifiers[f] : oo,
|
|
1717
|
+
const T = (f) => e.modifiers ? e.modifiers[f] : oo, C = ee(e.processor) && de(e.processor.normalize) ? e.processor.normalize : io, F = ee(e.processor) && de(e.processor.interpolate) ? e.processor.interpolate : co, w = ee(e.processor) && G(e.processor.type) ? e.processor.type : lo, D = {
|
|
1718
1718
|
list: u,
|
|
1719
1719
|
named: g,
|
|
1720
1720
|
plural: a,
|
|
1721
1721
|
linked: (f, ...h) => {
|
|
1722
|
-
const [
|
|
1722
|
+
const [L, c] = h;
|
|
1723
1723
|
let b = "text", I = "";
|
|
1724
|
-
h.length === 1 ? te(
|
|
1724
|
+
h.length === 1 ? te(L) ? (I = L.modifier || I, b = L.type || b) : G(L) && (I = L || I) : h.length === 2 && (G(L) && (I = L || I), G(c) && (b = c || b));
|
|
1725
1725
|
const p = y(f, !0)(D), k = (
|
|
1726
1726
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1727
1727
|
b === "vnode" && be(p) && I ? p[0] : p
|
|
@@ -1731,21 +1731,21 @@ function fo(e = {}) {
|
|
|
1731
1731
|
message: y,
|
|
1732
1732
|
type: w,
|
|
1733
1733
|
interpolate: F,
|
|
1734
|
-
normalize:
|
|
1735
|
-
values: Ie(
|
|
1734
|
+
normalize: C,
|
|
1735
|
+
values: Ie(oe(), m, i)
|
|
1736
1736
|
};
|
|
1737
1737
|
return D;
|
|
1738
1738
|
}
|
|
1739
1739
|
const Tn = () => "", Te = (e) => de(e);
|
|
1740
1740
|
function On(e, ...t) {
|
|
1741
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale: m, messages: u } = e, [i, g] = Vt(...t), y = ve(g.missingWarn) ? g.missingWarn : e.missingWarn, T = ve(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn,
|
|
1742
|
-
|
|
1743
|
-
let [f, h,
|
|
1741
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale: m, messages: u } = e, [i, g] = Vt(...t), y = ve(g.missingWarn) ? g.missingWarn : e.missingWarn, T = ve(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, C = ve(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, F = !!g.resolvedMessage, w = G(g.default) || ve(g.default) ? ve(g.default) ? a ? i : () => i : g.default : n ? a ? i : () => i : null, S = n || w != null && (G(w) || de(w)), D = zt(e, g);
|
|
1742
|
+
C && _o(g);
|
|
1743
|
+
let [f, h, L] = F ? [
|
|
1744
1744
|
i,
|
|
1745
1745
|
D,
|
|
1746
|
-
u[D] ||
|
|
1746
|
+
u[D] || oe()
|
|
1747
1747
|
] : tr(e, i, D, m, T, y), c = f, b = i;
|
|
1748
|
-
if (!F && !(
|
|
1748
|
+
if (!F && !(G(c) || ot(c) || Te(c)) && S && (c = w, b = c), !F && (!(G(c) || ot(c) || Te(c)) || !G(h)))
|
|
1749
1749
|
return l ? Ot : i;
|
|
1750
1750
|
let I = !1;
|
|
1751
1751
|
const p = () => {
|
|
@@ -1753,41 +1753,41 @@ function On(e, ...t) {
|
|
|
1753
1753
|
}, k = Te(c) ? c : nr(e, i, h, c, b, p);
|
|
1754
1754
|
if (I)
|
|
1755
1755
|
return c;
|
|
1756
|
-
const A = ho(e, h,
|
|
1756
|
+
const A = ho(e, h, L, g), X = fo(A), x = po(e, k, X), d = r ? r(x, i) : x;
|
|
1757
1757
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1758
|
-
const
|
|
1758
|
+
const N = {
|
|
1759
1759
|
timestamp: Date.now(),
|
|
1760
|
-
key:
|
|
1760
|
+
key: G(i) ? i : Te(c) ? c.key : "",
|
|
1761
1761
|
locale: h || (Te(c) ? c.locale : ""),
|
|
1762
|
-
format:
|
|
1762
|
+
format: G(c) ? c : Te(c) ? c.source : "",
|
|
1763
1763
|
message: d
|
|
1764
1764
|
};
|
|
1765
|
-
|
|
1765
|
+
N.meta = Ie({}, e.__meta, /* @__PURE__ */ eo() || {}), Ds(N);
|
|
1766
1766
|
}
|
|
1767
1767
|
return d;
|
|
1768
1768
|
}
|
|
1769
1769
|
function _o(e) {
|
|
1770
|
-
be(e.list) ? e.list = e.list.map((t) =>
|
|
1771
|
-
|
|
1770
|
+
be(e.list) ? e.list = e.list.map((t) => G(t) ? ln(t) : t) : te(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1771
|
+
G(e.named[t]) && (e.named[t] = ln(e.named[t]));
|
|
1772
1772
|
});
|
|
1773
1773
|
}
|
|
1774
1774
|
function tr(e, t, n, r, l, a) {
|
|
1775
1775
|
const { messages: m, onWarn: u, messageResolver: i, localeFallbacker: g } = e, y = g(e, r, n);
|
|
1776
|
-
let T =
|
|
1776
|
+
let T = oe(), C, F = null;
|
|
1777
1777
|
const w = "translate";
|
|
1778
|
-
for (let
|
|
1779
|
-
if (!so(
|
|
1778
|
+
for (let S = 0; S < y.length && (C = y[S], T = m[C] || oe(), (F = i(T, t)) === null && (F = T[t]), !(G(F) || ot(F) || Te(F))); S++)
|
|
1779
|
+
if (!so(C, y)) {
|
|
1780
1780
|
const D = Qt(
|
|
1781
1781
|
e,
|
|
1782
1782
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1783
1783
|
t,
|
|
1784
|
-
|
|
1784
|
+
C,
|
|
1785
1785
|
a,
|
|
1786
1786
|
w
|
|
1787
1787
|
);
|
|
1788
1788
|
D !== t && (F = D);
|
|
1789
1789
|
}
|
|
1790
|
-
return [F,
|
|
1790
|
+
return [F, C, T];
|
|
1791
1791
|
}
|
|
1792
1792
|
function nr(e, t, n, r, l, a) {
|
|
1793
1793
|
const { messageCompiler: m, warnHtmlMessage: u } = e;
|
|
@@ -1806,11 +1806,11 @@ function po(e, t, n) {
|
|
|
1806
1806
|
return t(n);
|
|
1807
1807
|
}
|
|
1808
1808
|
function Vt(...e) {
|
|
1809
|
-
const [t, n, r] = e, l =
|
|
1810
|
-
if (!
|
|
1809
|
+
const [t, n, r] = e, l = oe();
|
|
1810
|
+
if (!G(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
|
-
return ge(n) ? l.plural = n :
|
|
1813
|
+
return ge(n) ? l.plural = n : G(n) ? l.default = n : ee(n) && !Nt(n) ? l.named = n : be(n) && (l.list = n), ge(r) ? l.plural = r : G(r) ? l.default = r : ee(r) && Ie(l, r), [a, l];
|
|
1814
1814
|
}
|
|
1815
1815
|
function vo(e, t, n, r, l, a) {
|
|
1816
1816
|
return {
|
|
@@ -1824,13 +1824,13 @@ function vo(e, t, n, r, l, a) {
|
|
|
1824
1824
|
};
|
|
1825
1825
|
}
|
|
1826
1826
|
function ho(e, t, n, r) {
|
|
1827
|
-
const { modifiers: l, pluralRules: a, messageResolver: m, fallbackLocale: u, fallbackWarn: i, missingWarn: g, fallbackContext: y } = e,
|
|
1827
|
+
const { modifiers: l, pluralRules: a, messageResolver: m, fallbackLocale: u, fallbackWarn: i, missingWarn: g, fallbackContext: y } = e, C = {
|
|
1828
1828
|
locale: t,
|
|
1829
1829
|
modifiers: l,
|
|
1830
1830
|
pluralRules: a,
|
|
1831
1831
|
messages: (F, w) => {
|
|
1832
|
-
let
|
|
1833
|
-
if (
|
|
1832
|
+
let S = m(n, F);
|
|
1833
|
+
if (S == null && (y || w)) {
|
|
1834
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
|
|
@@ -1840,21 +1840,21 @@ function ho(e, t, n, r) {
|
|
|
1840
1840
|
i,
|
|
1841
1841
|
g
|
|
1842
1842
|
);
|
|
1843
|
-
|
|
1843
|
+
S = m(D, F);
|
|
1844
1844
|
}
|
|
1845
|
-
if (
|
|
1845
|
+
if (G(S) || ot(S)) {
|
|
1846
1846
|
let D = !1;
|
|
1847
|
-
const h = nr(e, F, t,
|
|
1847
|
+
const h = nr(e, F, t, S, F, () => {
|
|
1848
1848
|
D = !0;
|
|
1849
1849
|
});
|
|
1850
1850
|
return D ? Tn : h;
|
|
1851
|
-
} else return Te(
|
|
1851
|
+
} else return Te(S) ? S : Tn;
|
|
1852
1852
|
}
|
|
1853
1853
|
};
|
|
1854
|
-
return e.processor && (
|
|
1854
|
+
return e.processor && (C.processor = e.processor), r.list && (C.list = r.list), r.named && (C.named = r.named), ge(r.plural) && (C.pluralIndex = r.plural), C;
|
|
1855
1855
|
}
|
|
1856
1856
|
fs();
|
|
1857
|
-
var bo = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_14e75b8d-0689-470e-81f6-e27c55319276", 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_14e75b8d-0689-470e-81f6-e27c55319276", 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: "1735", ACTIONS_ORCHESTRATION_ID: "85045431-76e4-4a55-bb29-8fbd9ff88695.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: "20260810.271.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_14e75b8d-0689-470e-81f6-e27c55319276", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:9984", 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.12/x64", GITHUB_RUN_ID: "32097781694", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "806519740b0129da4303039d84762035f7856187", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.5/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.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9kZXZcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3ODcwNDgwNzMsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc4NzAyNTg3MywiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjNjOGQxZmVmLTc3MjQtNWY3Mi1iMTYzLWExOTJmNDg0NGYyMCIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiODkzYjFlOWU1YjA1NjE2Y2YwYjQ2MzZjMGU3YzM3ODc3YTAzYWZkMCIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc4NzAyNTU3Mywib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI5NTU5MjM2NDczNlwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiODkzYjFlOWU1YjA1NjE2Y2YwYjQ2MzZjMGU3YzM3ODc3YTAzYWZkMFwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL2RldlwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIzMjA5Nzc4MTY5NFwiLFwicnVuX251bWJlclwiOlwiMTYwXCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiODA2NTE5NzQwYjAxMjlkYTQzMDMwMzlkODQ3NjIwMzVmNzg1NjE4N1wiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJ3b3JrZmxvd19zaGFcIjpcIjgwNjUxOTc0MGIwMTI5ZGE0MzAzMDM5ZDg0NzYyMDM1Zjc4NTYxODdcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL2hybS1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL2RldiIsIm9yY2hfaWQiOiI4NTA0NTQzMS03NmU0LTRhNTUtYmIyOS04ZmJkOWZmODg2OTUucHVibGlzaC5wdWJsaXNoLl9fZGVmYXVsdCIsIm93bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwicGxhbl9pZCI6Ijg1MDQ1NDMxLTc2ZTQtNGE1NS1iYjI5LThmYmQ5ZmY4ODY5NSIsInJlcG9zaXRvcnlfaWQiOiIxMTI0NjcyMjM1IiwicmVwb3NpdG9yeV9vd25lcl9pZCI6IjU0ODMxNTE1IiwicmVwb3NpdG9yeV92aXNpYmlsaXR5IjoicHJpdmF0ZSIsInJ1bl9pZCI6IjMyMDk3NzgxNjk0IiwicnVuX251bWJlciI6IjE2MCIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDAxMTI5NTAiLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czo4NTA0NTQzMS03NmU0LTRhNTUtYmIyOS04ZmJkOWZmODg2OTU6M2M4ZDFmZWYtNzcyNC01ZjcyLWIxNjMtYTE5MmY0ODQ0ZjIwIEFjdGlvbnMuUnVubmVyOjg1MDQ1NDMxLTc2ZTQtNGE1NS1iYjI5LThmYmQ5ZmY4ODY5NTozYzhkMWZlZi03NzI0LTVmNzItYjE2My1hMTkyZjQ4NDRmMjAgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6ODUwNDU0MzEtNzZlNC00YTU1LWJiMjktOGZiZDlmZjg4Njk1OjNjOGQxZmVmLTc3MjQtNWY3Mi1iMTYzLWExOTJmNDg0NGYyMCBnZW5lcmF0ZV9pZF90b2tlbjo4NTA0NTQzMS03NmU0LTRhNTUtYmIyOS04ZmJkOWZmODg2OTU6M2M4ZDFmZWYtNzcyNC01ZjcyLWIxNjMtYTE5MmY0ODQ0ZjIwIEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiODA2NTE5NzQwYjAxMjlkYTQzMDMwMzlkODQ3NjIwMzVmNzg1NjE4NyIsInRydXN0X3RpZXIiOiIxIn0.NLQIj7me0RQft-GjUQQML7wg56K5KdOGGaVha6W27T0a2HQfttkCTQvImpKcnY7TOPzTwCfWCYbvqUH2yBpPXWTWfoPFOrw72APJjkl1EZXXZekSPMSMcxSrN08RqPndDf7mBFQZ4ydcqXLuH1pYXWOycwBosomb9drp2V2pdbMZGJAIAxAk9TKNLU2JroawhRCOvecOuKM50rww3WI5bDFITM2bcQU9jZ9DdAI_I_c_sEfkBo_ntsx4HtNqvHjEtIUuj2qeCoBfRF5Yu0IQ4v69iTeQlWmHRDtao31nXlTw8f4tnnvgUJKNtBxy2kPCo7Zeg4Cf60f4poXkqtic8w", 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_e25636f0-c079-4abc-8ced-a98854a93932", INVOCATION_ID: "7115558e5cb241eb9d60d2ba3ca2f1f4", 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: "160", 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 1000112950", 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", 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: "806519740b0129da4303039d84762035f7856187", 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_14e75b8d-0689-470e-81f6-e27c55319276", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-3-azure-eastus.actions.githubusercontent.com/165//idtoken/85045431-76e4-4a55-bb29-8fbd9ff88695/3c8d1fef-7724-5f72-b163-a192f4844f20?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_14e75b8d-0689-470e-81f6-e27c55319276", 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_14e75b8d-0689-470e-81f6-e27c55319276", 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_14e75b8d-0689-470e-81f6-e27c55319276", 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_f815c101-f9a1-4a24-9368-567b1b570509", 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_f815c101-f9a1-4a24-9368-567b1b570509", 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: "1784", ACTIONS_ORCHESTRATION_ID: "f6ec9bbb-aebd-4610-90b6-02837a07dc20.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: "20260810.271.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_f815c101-f9a1-4a24-9368-567b1b570509", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:12980", 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.12/x64", GITHUB_RUN_ID: "32215443641", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "b20a60f7f5a67d490c9f3fa28f4bbba948ff47ce", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.5/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/main", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6M31dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3ODcxMzU0NzAsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc4NzExMzI3MCwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImYxYThmMjA1LTc0MjAtNTZkMC1iY2ZkLTcxYjUwN2JiYTgzYyIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiODI5ZWI3NzRkOWU1Y2RmMTRhZjZjYzg0Y2Y1Mzg3Y2VjOWVmNDU3ZCIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc4NzExMjk3MCwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI5NTk1NTk5MDQxOFwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiODI5ZWI3NzRkOWU1Y2RmMTRhZjZjYzg0Y2Y1Mzg3Y2VjOWVmNDU3ZFwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL21haW5cIixcInJlZl9wcm90ZWN0ZWRcIjpcInRydWVcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIzMjIxNTQ0MzY0MVwiLFwicnVuX251bWJlclwiOlwiMTYyXCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiYjIwYTYwZjdmNWE2N2Q0OTBjOWYzZmEyOGY0YmJiYTk0OGZmNDdjZVwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvbWFpblwiLFwid29ya2Zsb3dfc2hhXCI6XCJiMjBhNjBmN2Y1YTY3ZDQ5MGM5ZjNmYTI4ZjRiYmJhOTQ4ZmY0N2NlXCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9tYWluIiwib3JjaF9pZCI6ImY2ZWM5YmJiLWFlYmQtNDYxMC05MGI2LTAyODM3YTA3ZGMyMC5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiZjZlYzliYmItYWViZC00NjEwLTkwYjYtMDI4MzdhMDdkYzIwIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMzIyMTU0NDM2NDEiLCJydW5fbnVtYmVyIjoiMTYyIiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDExNDgwNiIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOmY2ZWM5YmJiLWFlYmQtNDYxMC05MGI2LTAyODM3YTA3ZGMyMDpmMWE4ZjIwNS03NDIwLTU2ZDAtYmNmZC03MWI1MDdiYmE4M2MgQWN0aW9ucy5SdW5uZXI6ZjZlYzliYmItYWViZC00NjEwLTkwYjYtMDI4MzdhMDdkYzIwOmYxYThmMjA1LTc0MjAtNTZkMC1iY2ZkLTcxYjUwN2JiYTgzYyBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czpmNmVjOWJiYi1hZWJkLTQ2MTAtOTBiNi0wMjgzN2EwN2RjMjA6ZjFhOGYyMDUtNzQyMC01NmQwLWJjZmQtNzFiNTA3YmJhODNjIGdlbmVyYXRlX2lkX3Rva2VuOmY2ZWM5YmJiLWFlYmQtNDYxMC05MGI2LTAyODM3YTA3ZGMyMDpmMWE4ZjIwNS03NDIwLTU2ZDAtYmNmZC03MWI1MDdiYmE4M2MgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiJiMjBhNjBmN2Y1YTY3ZDQ5MGM5ZjNmYTI4ZjRiYmJhOTQ4ZmY0N2NlIiwidHJ1c3RfdGllciI6IjEifQ.DyEsR2_sWYgy7Aqkw4FLePmFOKcPyfjDwoVza-7xQoG7BFmuBVTLzwTmetHgfrOmXEireDMBKg4pQc_CsRItmMUwA0EOv4FyICR2rlzKI7ZZcUt-Zr1Q_B0wzhFs-I9fzMH1F_DNBAsuldKxBMj99b_qdOvNy2ZW25ji4cfhRADyfYoZ-dLdAdUPrK2hLGV7Gm5vuJrtWcTWDNPLIS_oVXU4czVPFRbrg6jK_J9IL7Q7R3ew1X5iCkVYHsdbpXLYq-LqEdjt7GOIrRaHb09NcMBjDOowSC5CljH0o43gtssYtJi0DRtJXBhAA0ZizWTdLRu8cLl_j5VGb_ZT8OFNBw", 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_f07b81d8-391a-4e8a-b48e-280e8d656440", INVOCATION_ID: "4e945ad3a0624affbdd4c546da3eca0a", 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: "162", 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 1000114806", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.2.2", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "true", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", GITHUB_SHA: "b20a60f7f5a67d490c9f3fa28f4bbba948ff47ce", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_f815c101-f9a1-4a24-9368-567b1b570509", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/78//idtoken/f6ec9bbb-aebd-4610-90b6-02837a07dc20/f1a8f205-7420-56d0-bcfd-71b507bba83c?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_f815c101-f9a1-4a24-9368-567b1b570509", 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_f815c101-f9a1-4a24-9368-567b1b570509", 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_f815c101-f9a1-4a24-9368-567b1b570509", 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,7 +1875,7 @@ const at = {
|
|
|
1875
1875
|
function ut(e, ...t) {
|
|
1876
1876
|
return Tt(e, null, void 0);
|
|
1877
1877
|
}
|
|
1878
|
-
const xt = /* @__PURE__ */ $e("__translateVNode"), Wt = /* @__PURE__ */ $e("__datetimeParts"),
|
|
1878
|
+
const xt = /* @__PURE__ */ $e("__translateVNode"), Wt = /* @__PURE__ */ $e("__datetimeParts"), Yt = /* @__PURE__ */ $e("__numberParts"), yo = $e("__setPluralRules"), rr = /* @__PURE__ */ $e("__injectWithOption"), Gt = /* @__PURE__ */ $e("__dispose");
|
|
1879
1879
|
function mt(e) {
|
|
1880
1880
|
if (!te(e))
|
|
1881
1881
|
return e;
|
|
@@ -1887,7 +1887,7 @@ function mt(e) {
|
|
|
1887
1887
|
const n = t.split("."), r = n.length - 1;
|
|
1888
1888
|
let l = e, a = !1;
|
|
1889
1889
|
for (let m = 0; m < r; m++) {
|
|
1890
|
-
if (n[m] in l || (l[n[m]] =
|
|
1890
|
+
if (n[m] in l || (l[n[m]] = oe()), !te(l[n[m]])) {
|
|
1891
1891
|
a = !0;
|
|
1892
1892
|
break;
|
|
1893
1893
|
}
|
|
@@ -1898,13 +1898,13 @@ function mt(e) {
|
|
|
1898
1898
|
return e;
|
|
1899
1899
|
}
|
|
1900
1900
|
function sr(e, t) {
|
|
1901
|
-
const { messages: n, __i18n: r, messageResolver: l, flatJson: a } = t, m = ee(n) ? n : be(r) ?
|
|
1901
|
+
const { messages: n, __i18n: r, messageResolver: l, flatJson: a } = t, m = ee(n) ? n : be(r) ? oe() : { [e]: oe() };
|
|
1902
1902
|
if (be(r) && r.forEach((u) => {
|
|
1903
1903
|
if ("locale" in u && "resource" in u) {
|
|
1904
1904
|
const { locale: i, resource: g } = u;
|
|
1905
|
-
i ? (m[i] = m[i] ||
|
|
1905
|
+
i ? (m[i] = m[i] || oe(), yt(g, m[i])) : yt(g, m);
|
|
1906
1906
|
} else
|
|
1907
|
-
|
|
1907
|
+
G(u) && yt(JSON.parse(u), m);
|
|
1908
1908
|
}), l == null && a)
|
|
1909
1909
|
for (const u in m)
|
|
1910
1910
|
Ae(m, u) && mt(m[u]);
|
|
@@ -1914,7 +1914,7 @@ function or(e) {
|
|
|
1914
1914
|
return e.type;
|
|
1915
1915
|
}
|
|
1916
1916
|
function Eo(e, t, n) {
|
|
1917
|
-
let r = te(t.messages) ? t.messages :
|
|
1917
|
+
let r = te(t.messages) ? t.messages : oe();
|
|
1918
1918
|
"__i18nGlobal" in n && (r = sr(e.locale.value, {
|
|
1919
1919
|
messages: r,
|
|
1920
1920
|
__i18n: n.__i18nGlobal
|
|
@@ -1938,15 +1938,15 @@ function Eo(e, t, n) {
|
|
|
1938
1938
|
}
|
|
1939
1939
|
}
|
|
1940
1940
|
}
|
|
1941
|
-
function
|
|
1941
|
+
function Ln(e) {
|
|
1942
1942
|
return ue(fr, null, e, 0);
|
|
1943
1943
|
}
|
|
1944
|
-
const An = "__INTLIFY_META__",
|
|
1944
|
+
const An = "__INTLIFY_META__", Sn = () => [], Co = () => !1;
|
|
1945
1945
|
let Rn = 0;
|
|
1946
1946
|
function kn(e) {
|
|
1947
1947
|
return (t, n, r, l) => e(n, r, Bt() || void 0, l);
|
|
1948
1948
|
}
|
|
1949
|
-
const
|
|
1949
|
+
const No = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1950
1950
|
const e = Bt();
|
|
1951
1951
|
let t = null;
|
|
1952
1952
|
return e && (t = or(e)[An]) ? { [An]: t } : null;
|
|
@@ -1956,12 +1956,12 @@ function To(e = {}) {
|
|
|
1956
1956
|
let m = ve(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1957
1957
|
const u = a(
|
|
1958
1958
|
// prettier-ignore
|
|
1959
|
-
t && m ? t.locale.value :
|
|
1959
|
+
t && m ? t.locale.value : G(e.locale) ? e.locale : Ct
|
|
1960
1960
|
), i = a(
|
|
1961
1961
|
// prettier-ignore
|
|
1962
|
-
t && m ? t.fallbackLocale.value :
|
|
1962
|
+
t && m ? t.fallbackLocale.value : G(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
|
|
1964
|
+
let C = t ? t.missingWarn : ve(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, F = t ? t.fallbackWarn : ve(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, w = t ? t.fallbackRoot : ve(e.fallbackRoot) ? e.fallbackRoot : !0, S = !!e.fallbackFormat, D = de(e.missing) ? e.missing : null, f = de(e.missing) ? kn(e.missing) : null, h = de(e.postTranslation) ? e.postTranslation : null, L = t ? t.warnHtmlMessage : ve(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, c = !!e.escapeParameter;
|
|
1965
1965
|
const b = t ? t.modifiers : ee(e.modifiers) ? e.modifiers : {};
|
|
1966
1966
|
let I = e.pluralRules || t && t.pluralRules, p;
|
|
1967
1967
|
p = (() => {
|
|
@@ -1974,12 +1974,12 @@ function To(e = {}) {
|
|
|
1974
1974
|
modifiers: b,
|
|
1975
1975
|
pluralRules: I,
|
|
1976
1976
|
missing: f === null ? void 0 : f,
|
|
1977
|
-
missingWarn:
|
|
1977
|
+
missingWarn: C,
|
|
1978
1978
|
fallbackWarn: F,
|
|
1979
|
-
fallbackFormat:
|
|
1979
|
+
fallbackFormat: S,
|
|
1980
1980
|
unresolving: !0,
|
|
1981
1981
|
postTranslation: h === null ? void 0 : h,
|
|
1982
|
-
warnHtmlMessage:
|
|
1982
|
+
warnHtmlMessage: L,
|
|
1983
1983
|
escapeParameter: c,
|
|
1984
1984
|
messageResolver: e.messageResolver,
|
|
1985
1985
|
messageCompiler: e.messageCompiler,
|
|
@@ -2008,20 +2008,20 @@ function To(e = {}) {
|
|
|
2008
2008
|
set: (v) => {
|
|
2009
2009
|
i.value = v, p.fallbackLocale = i.value, lt(p, u.value, v);
|
|
2010
2010
|
}
|
|
2011
|
-
}), d = z(() => g.value),
|
|
2011
|
+
}), d = z(() => g.value), N = /* @__PURE__ */ z(() => y.value), U = /* @__PURE__ */ z(() => T.value);
|
|
2012
2012
|
function V() {
|
|
2013
2013
|
return de(h) ? h : null;
|
|
2014
2014
|
}
|
|
2015
2015
|
function j(v) {
|
|
2016
2016
|
h = v, p.postTranslation = v;
|
|
2017
2017
|
}
|
|
2018
|
-
function
|
|
2018
|
+
function Y() {
|
|
2019
2019
|
return D;
|
|
2020
2020
|
}
|
|
2021
2021
|
function W(v) {
|
|
2022
2022
|
v !== null && (f = kn(v)), D = v, p.missing = f;
|
|
2023
2023
|
}
|
|
2024
|
-
const
|
|
2024
|
+
const Z = (v, E, $, le, Be, dt) => {
|
|
2025
2025
|
A();
|
|
2026
2026
|
let ze;
|
|
2027
2027
|
try {
|
|
@@ -2040,7 +2040,7 @@ function To(e = {}) {
|
|
|
2040
2040
|
}
|
|
2041
2041
|
};
|
|
2042
2042
|
function B(...v) {
|
|
2043
|
-
return
|
|
2043
|
+
return Z((E) => Reflect.apply(On, null, [E, ...v]), () => Vt(...v), "translate", (E) => Reflect.apply(E.t, E, [...v]), (E) => E, (E) => G(E));
|
|
2044
2044
|
}
|
|
2045
2045
|
function ne(...v) {
|
|
2046
2046
|
const [E, $, le] = v;
|
|
@@ -2049,13 +2049,13 @@ function To(e = {}) {
|
|
|
2049
2049
|
return B(E, $, Ie({ resolvedMessage: !0 }, le || {}));
|
|
2050
2050
|
}
|
|
2051
2051
|
function Q(...v) {
|
|
2052
|
-
return
|
|
2052
|
+
return Z((E) => Reflect.apply(In, null, [E, ...v]), () => jt(...v), "datetime format", (E) => Reflect.apply(E.d, E, [...v]), () => vn, (E) => G(E));
|
|
2053
2053
|
}
|
|
2054
2054
|
function _e(...v) {
|
|
2055
|
-
return
|
|
2055
|
+
return Z((E) => Reflect.apply(En, null, [E, ...v]), () => Ut(...v), "number format", (E) => Reflect.apply(E.n, E, [...v]), () => vn, (E) => G(E));
|
|
2056
2056
|
}
|
|
2057
2057
|
function ce(v) {
|
|
2058
|
-
return v.map((E) =>
|
|
2058
|
+
return v.map((E) => G(E) || ge(E) || ve(E) ? Ln(String(E)) : E);
|
|
2059
2059
|
}
|
|
2060
2060
|
const fe = {
|
|
2061
2061
|
normalize: ce,
|
|
@@ -2063,7 +2063,7 @@ function To(e = {}) {
|
|
|
2063
2063
|
type: "vnode"
|
|
2064
2064
|
};
|
|
2065
2065
|
function q(...v) {
|
|
2066
|
-
return
|
|
2066
|
+
return Z((E) => {
|
|
2067
2067
|
let $;
|
|
2068
2068
|
const le = E;
|
|
2069
2069
|
try {
|
|
@@ -2072,24 +2072,24 @@ function To(e = {}) {
|
|
|
2072
2072
|
le.processor = null;
|
|
2073
2073
|
}
|
|
2074
2074
|
return $;
|
|
2075
|
-
}, () => Vt(...v), "translate", (E) => E[xt](...v), (E) => [
|
|
2075
|
+
}, () => Vt(...v), "translate", (E) => E[xt](...v), (E) => [Ln(E)], (E) => be(E));
|
|
2076
2076
|
}
|
|
2077
2077
|
function De(...v) {
|
|
2078
|
-
return
|
|
2078
|
+
return Z((E) => Reflect.apply(En, null, [E, ...v]), () => Ut(...v), "number format", (E) => E[Yt](...v), Sn, (E) => G(E) || be(E));
|
|
2079
2079
|
}
|
|
2080
2080
|
function K(...v) {
|
|
2081
|
-
return
|
|
2081
|
+
return Z((E) => Reflect.apply(In, null, [E, ...v]), () => jt(...v), "datetime format", (E) => E[Wt](...v), Sn, (E) => G(E) || be(E));
|
|
2082
2082
|
}
|
|
2083
2083
|
function pe(v) {
|
|
2084
2084
|
I = v, p.pluralRules = I;
|
|
2085
2085
|
}
|
|
2086
2086
|
function Je(v, E) {
|
|
2087
|
-
return
|
|
2087
|
+
return Z(() => {
|
|
2088
2088
|
if (!v)
|
|
2089
2089
|
return !1;
|
|
2090
|
-
const $ =
|
|
2091
|
-
return ot(Be) || Te(Be) ||
|
|
2092
|
-
}, () => [v], "translate exists", ($) => Reflect.apply($.te, $, [v, E]),
|
|
2090
|
+
const $ = G(E) ? E : u.value, le = Fe($), Be = p.messageResolver(le, v);
|
|
2091
|
+
return ot(Be) || Te(Be) || G(Be);
|
|
2092
|
+
}, () => [v], "translate exists", ($) => Reflect.apply($.te, $, [v, E]), Co, ($) => ve($));
|
|
2093
2093
|
}
|
|
2094
2094
|
function Ke(v) {
|
|
2095
2095
|
let E = null;
|
|
@@ -2110,7 +2110,7 @@ function To(e = {}) {
|
|
|
2110
2110
|
function Fe(v) {
|
|
2111
2111
|
return g.value[v] || {};
|
|
2112
2112
|
}
|
|
2113
|
-
function
|
|
2113
|
+
function Ne(v, E) {
|
|
2114
2114
|
if (l) {
|
|
2115
2115
|
const $ = { [v]: E };
|
|
2116
2116
|
for (const le in $)
|
|
@@ -2119,7 +2119,7 @@ function To(e = {}) {
|
|
|
2119
2119
|
}
|
|
2120
2120
|
g.value[v] = E, p.messages = g.value;
|
|
2121
2121
|
}
|
|
2122
|
-
function
|
|
2122
|
+
function Ze(v, E) {
|
|
2123
2123
|
g.value[v] = g.value[v] || {};
|
|
2124
2124
|
const $ = { [v]: E };
|
|
2125
2125
|
if (l)
|
|
@@ -2140,10 +2140,10 @@ function To(e = {}) {
|
|
|
2140
2140
|
return T.value[v] || {};
|
|
2141
2141
|
}
|
|
2142
2142
|
function R(v, E) {
|
|
2143
|
-
T.value[v] = E, p.numberFormats = T.value,
|
|
2143
|
+
T.value[v] = E, p.numberFormats = T.value, Cn(p, v, E);
|
|
2144
2144
|
}
|
|
2145
2145
|
function M(v, E) {
|
|
2146
|
-
T.value[v] = Ie(T.value[v] || {}, E), p.numberFormats = T.value,
|
|
2146
|
+
T.value[v] = Ie(T.value[v] || {}, E), p.numberFormats = T.value, Cn(p, v, E);
|
|
2147
2147
|
}
|
|
2148
2148
|
Rn++, t && on && (wt(t.locale, (v) => {
|
|
2149
2149
|
m && (u.value = v, p.locale = v, lt(p, u.value, i.value));
|
|
@@ -2174,10 +2174,10 @@ function To(e = {}) {
|
|
|
2174
2174
|
return r;
|
|
2175
2175
|
},
|
|
2176
2176
|
get missingWarn() {
|
|
2177
|
-
return
|
|
2177
|
+
return C;
|
|
2178
2178
|
},
|
|
2179
2179
|
set missingWarn(v) {
|
|
2180
|
-
|
|
2180
|
+
C = v, p.missingWarn = C;
|
|
2181
2181
|
},
|
|
2182
2182
|
get fallbackWarn() {
|
|
2183
2183
|
return F;
|
|
@@ -2192,16 +2192,16 @@ function To(e = {}) {
|
|
|
2192
2192
|
w = v;
|
|
2193
2193
|
},
|
|
2194
2194
|
get fallbackFormat() {
|
|
2195
|
-
return
|
|
2195
|
+
return S;
|
|
2196
2196
|
},
|
|
2197
2197
|
set fallbackFormat(v) {
|
|
2198
|
-
|
|
2198
|
+
S = v, p.fallbackFormat = S;
|
|
2199
2199
|
},
|
|
2200
2200
|
get warnHtmlMessage() {
|
|
2201
|
-
return
|
|
2201
|
+
return L;
|
|
2202
2202
|
},
|
|
2203
2203
|
set warnHtmlMessage(v) {
|
|
2204
|
-
|
|
2204
|
+
L = v, p.warnHtmlMessage = v;
|
|
2205
2205
|
},
|
|
2206
2206
|
get escapeParameter() {
|
|
2207
2207
|
return c;
|
|
@@ -2211,15 +2211,15 @@ function To(e = {}) {
|
|
|
2211
2211
|
},
|
|
2212
2212
|
t: B,
|
|
2213
2213
|
getLocaleMessage: Fe,
|
|
2214
|
-
setLocaleMessage:
|
|
2215
|
-
mergeLocaleMessage:
|
|
2214
|
+
setLocaleMessage: Ne,
|
|
2215
|
+
mergeLocaleMessage: Ze,
|
|
2216
2216
|
getPostTranslationHandler: V,
|
|
2217
2217
|
setPostTranslationHandler: j,
|
|
2218
|
-
getMissingHandler:
|
|
2218
|
+
getMissingHandler: Y,
|
|
2219
2219
|
setMissingHandler: W,
|
|
2220
2220
|
[yo]: pe
|
|
2221
2221
|
};
|
|
2222
|
-
return P.datetimeFormats =
|
|
2222
|
+
return P.datetimeFormats = N, P.numberFormats = U, P.rt = ne, P.te = Je, P.tm = Ve, P.d = Q, P.n = _e, P.getDateTimeFormat = O, P.setDateTimeFormat = s, P.mergeDateTimeFormat = o, P.getNumberFormat = _, P.setNumberFormat = R, P.mergeNumberFormat = M, P[rr] = n, P[xt] = q, P[Wt] = K, P[Yt] = De, P;
|
|
2223
2223
|
}
|
|
2224
2224
|
const qt = {
|
|
2225
2225
|
tag: {
|
|
@@ -2247,7 +2247,7 @@ function Oo({ slots: e }, t) {
|
|
|
2247
2247
|
], []) : t.reduce((n, r) => {
|
|
2248
2248
|
const l = e[r];
|
|
2249
2249
|
return l && (n[r] = l()), n;
|
|
2250
|
-
},
|
|
2250
|
+
}, oe());
|
|
2251
2251
|
}
|
|
2252
2252
|
function ar() {
|
|
2253
2253
|
return ke;
|
|
@@ -2262,22 +2262,22 @@ Ie({
|
|
|
2262
2262
|
validator: (e) => ge(e) || !isNaN(e)
|
|
2263
2263
|
}
|
|
2264
2264
|
}, qt);
|
|
2265
|
-
function
|
|
2266
|
-
return be(e) && !
|
|
2265
|
+
function Lo(e) {
|
|
2266
|
+
return be(e) && !G(e[0]);
|
|
2267
2267
|
}
|
|
2268
2268
|
function lr(e, t, n, r) {
|
|
2269
2269
|
const { slots: l, attrs: a } = t;
|
|
2270
2270
|
return () => {
|
|
2271
2271
|
const m = { part: !0 };
|
|
2272
|
-
let u =
|
|
2273
|
-
e.locale && (m.locale = e.locale),
|
|
2272
|
+
let u = oe();
|
|
2273
|
+
e.locale && (m.locale = e.locale), G(e.format) ? m.key = e.format : te(e.format) && (G(e.format.key) && (m.key = e.format.key), u = Object.keys(e.format).reduce((C, F) => n.includes(F) ? Ie(oe(), C, { [F]: e.format[F] }) : C, oe()));
|
|
2274
2274
|
const i = r(e.value, m, u);
|
|
2275
2275
|
let g = [m.key];
|
|
2276
|
-
be(i) ? g = i.map((
|
|
2277
|
-
const w = l[
|
|
2278
|
-
return
|
|
2279
|
-
}) :
|
|
2280
|
-
const y = Ie(
|
|
2276
|
+
be(i) ? g = i.map((C, F) => {
|
|
2277
|
+
const w = l[C.type], S = w ? w({ [C.type]: C.value, index: F, parts: i }) : [C.value];
|
|
2278
|
+
return Lo(S) && (S[0].key = `${C.type}-${F}`), S;
|
|
2279
|
+
}) : G(i) && (g = [i]);
|
|
2280
|
+
const y = Ie(oe(), a), T = G(e.tag) || te(e.tag) ? e.tag : ar();
|
|
2281
2281
|
return Wn(T, y, g);
|
|
2282
2282
|
};
|
|
2283
2283
|
}
|
|
@@ -2300,13 +2300,13 @@ Ie({
|
|
|
2300
2300
|
}
|
|
2301
2301
|
}, qt);
|
|
2302
2302
|
const Ao = /* @__PURE__ */ $e("global-vue-i18n");
|
|
2303
|
-
function
|
|
2303
|
+
function Lt(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 =
|
|
2309
|
+
const n = So(t), r = ko(n), l = or(t), a = Ro(e, l);
|
|
2310
2310
|
if (a === "global")
|
|
2311
2311
|
return Eo(r, e, l), r;
|
|
2312
2312
|
if (a === "parent") {
|
|
@@ -2317,18 +2317,18 @@ function St(e = {}) {
|
|
|
2317
2317
|
let u = m.__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), m.__composerExtend && (u[
|
|
2320
|
+
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u = To(i), m.__composerExtend && (u[Gt] = m.__composerExtend(u)), Do(m, t, u), m.__setInstance(t, u);
|
|
2321
2321
|
}
|
|
2322
2322
|
return u;
|
|
2323
2323
|
}
|
|
2324
|
-
function
|
|
2324
|
+
function So(e) {
|
|
2325
2325
|
const t = ur(e.isCE ? Ao : 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
2330
|
function Ro(e, t) {
|
|
2331
|
-
return
|
|
2331
|
+
return Nt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2332
2332
|
}
|
|
2333
2333
|
function ko(e) {
|
|
2334
2334
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
@@ -2359,8 +2359,8 @@ function Do(e, t, n) {
|
|
|
2359
2359
|
}, t), dr(() => {
|
|
2360
2360
|
const r = n;
|
|
2361
2361
|
e.__deleteInstance(t);
|
|
2362
|
-
const l = r[
|
|
2363
|
-
l && (l(), delete r[
|
|
2362
|
+
const l = r[Gt];
|
|
2363
|
+
l && (l(), delete r[Gt]);
|
|
2364
2364
|
}, t);
|
|
2365
2365
|
}
|
|
2366
2366
|
Io();
|
|
@@ -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 vt = /* @__PURE__ */
|
|
2374
|
+
const vt = /* @__PURE__ */ Se({
|
|
2375
2375
|
__name: "InheritPermissionTooltip",
|
|
2376
2376
|
props: {
|
|
2377
2377
|
item: {
|
|
@@ -2380,10 +2380,10 @@ const vt = /* @__PURE__ */ Le({
|
|
|
2380
2380
|
}
|
|
2381
2381
|
},
|
|
2382
2382
|
setup(e) {
|
|
2383
|
-
const { t } =
|
|
2383
|
+
const { t } = Lt();
|
|
2384
2384
|
return (n, r) => {
|
|
2385
2385
|
const l = we("FmIcon"), a = we("FmTooltip");
|
|
2386
|
-
return J(),
|
|
2386
|
+
return J(), Ce(a, {
|
|
2387
2387
|
variant: "plain",
|
|
2388
2388
|
placement: "right",
|
|
2389
2389
|
"z-index": 50
|
|
@@ -2420,7 +2420,7 @@ function Mn(e, t, n) {
|
|
|
2420
2420
|
actions: Array.from(a)
|
|
2421
2421
|
});
|
|
2422
2422
|
}
|
|
2423
|
-
const wn = Object.values(
|
|
2423
|
+
const wn = Object.values(Lr), Fo = {
|
|
2424
2424
|
read: "View",
|
|
2425
2425
|
create: "Duplicate",
|
|
2426
2426
|
update: "Edit"
|
|
@@ -2428,28 +2428,28 @@ const wn = Object.values(Sr), Fo = {
|
|
|
2428
2428
|
function Po(e, t, n, r) {
|
|
2429
2429
|
const { t: l } = He(), { getFlagValue: a, getFlag: m } = Or(), u = z(() => {
|
|
2430
2430
|
var j;
|
|
2431
|
-
const d = /* @__PURE__ */ new Map(),
|
|
2432
|
-
for (const
|
|
2433
|
-
const W =
|
|
2431
|
+
const d = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map();
|
|
2432
|
+
for (const Y of t.value) {
|
|
2433
|
+
const W = Y.category;
|
|
2434
2434
|
if (!W) continue;
|
|
2435
|
-
const
|
|
2436
|
-
if (n.value.includes(
|
|
2435
|
+
const Z = Y.subject;
|
|
2436
|
+
if (n.value.includes(Y.subject) || Y.showByFeatureFlag && ((j = m(Y.showByFeatureFlag)) == null ? void 0 : j.enabled) === !1 && a(Y.showByFeatureFlag) === "true")
|
|
2437
2437
|
continue;
|
|
2438
2438
|
d.has(W) || d.set(W, []);
|
|
2439
|
-
const B = U.get(
|
|
2440
|
-
U.set(
|
|
2441
|
-
label: l(`permissionSet.permissionLabels.${
|
|
2442
|
-
value:
|
|
2443
|
-
optionKey: `${
|
|
2444
|
-
}),
|
|
2439
|
+
const B = U.get(Z) ?? 0;
|
|
2440
|
+
U.set(Z, B + 1), d.get(W).push({
|
|
2441
|
+
label: l(`permissionSet.permissionLabels.${Z}`, Y.label),
|
|
2442
|
+
value: Z,
|
|
2443
|
+
optionKey: `${Z}::${B}`
|
|
2444
|
+
}), N.has(Z) || N.set(Z, Y);
|
|
2445
2445
|
}
|
|
2446
|
-
return [...d.keys()].sort((
|
|
2447
|
-
const
|
|
2448
|
-
return
|
|
2449
|
-
}).map((
|
|
2450
|
-
const W = d.get(
|
|
2446
|
+
return [...d.keys()].sort((Y, W) => {
|
|
2447
|
+
const Z = wn.indexOf(Y), B = wn.indexOf(W);
|
|
2448
|
+
return Z === -1 && B === -1 ? Y.localeCompare(W) : Z === -1 ? 1 : B === -1 ? -1 : Z - B;
|
|
2449
|
+
}).map((Y) => {
|
|
2450
|
+
const W = d.get(Y), Z = l(`permissionSet.categoryLabels.${Y}`, Y), B = /* @__PURE__ */ new Map();
|
|
2451
2451
|
for (const K of W) {
|
|
2452
|
-
const pe =
|
|
2452
|
+
const pe = N.get(K.value);
|
|
2453
2453
|
pe && B.set(K.value, pe.actions);
|
|
2454
2454
|
}
|
|
2455
2455
|
const ne = W.some((K) => {
|
|
@@ -2464,13 +2464,13 @@ function Po(e, t, n, r) {
|
|
|
2464
2464
|
W.some((pe) => pe.value === K.subject) && !K.inverted && _e.set(K.subject, new Set(K.actions));
|
|
2465
2465
|
const ce = ne ? e.value.filter(
|
|
2466
2466
|
(K) => W.some((pe) => pe.value === K.subject) && !K.inverted && K.actions.includes("manage")
|
|
2467
|
-
).map((K) => K.subject) : e.value.filter((K) => W.some((pe) => pe.value === K.subject) && !K.inverted).map((K) => K.subject),
|
|
2467
|
+
).map((K) => K.subject) : e.value.filter((K) => W.some((pe) => pe.value === K.subject) && !K.inverted).map((K) => K.subject), se = W.find((K) => {
|
|
2468
2468
|
var pe;
|
|
2469
|
-
return (pe =
|
|
2470
|
-
}), fe = (
|
|
2469
|
+
return (pe = N.get(K.value)) == null ? void 0 : pe.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
|
-
category:
|
|
2473
|
-
label:
|
|
2472
|
+
category: Y,
|
|
2473
|
+
label: Z,
|
|
2474
2474
|
options: W,
|
|
2475
2475
|
selectedSubjects: ce,
|
|
2476
2476
|
isMultiAction: ne,
|
|
@@ -2483,18 +2483,18 @@ function Po(e, t, n, r) {
|
|
|
2483
2483
|
};
|
|
2484
2484
|
});
|
|
2485
2485
|
});
|
|
2486
|
-
function i(d,
|
|
2487
|
-
const U = u.value.find((Q) => Q.category === d), V = (U == null ? void 0 : U.options) ?? [], j = new Set(V.map((Q) => Q.value)),
|
|
2486
|
+
function i(d, N) {
|
|
2487
|
+
const U = u.value.find((Q) => Q.category === d), V = (U == null ? void 0 : U.options) ?? [], j = new Set(V.map((Q) => Q.value)), Y = new Set(N), 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
|
-
const
|
|
2491
|
-
({ category: Q, showByFeatureFlag: _e, isCategoryCover: ce, ...
|
|
2492
|
-
const fe =
|
|
2493
|
-
if (!
|
|
2490
|
+
const Z = U != null && U.coverSubject ? W.get(U.coverSubject) : void 0, B = /* @__PURE__ */ new Set(), ne = t.value.flatMap(
|
|
2491
|
+
({ category: Q, showByFeatureFlag: _e, isCategoryCover: ce, ...se }) => {
|
|
2492
|
+
const fe = se.subject;
|
|
2493
|
+
if (!Y.has(fe) || B.has(fe)) return [];
|
|
2494
2494
|
B.add(fe);
|
|
2495
2495
|
let q;
|
|
2496
|
-
return W.has(fe) ? q = W.get(fe) : U != null && U.coverSubject && fe !== U.coverSubject && (q =
|
|
2497
|
-
{ ...
|
|
2496
|
+
return W.has(fe) ? q = W.get(fe) : U != null && U.coverSubject && fe !== U.coverSubject && (q = Z), [
|
|
2497
|
+
{ ...se, ...q !== void 0 && { conditions: q } }
|
|
2498
2498
|
];
|
|
2499
2499
|
}
|
|
2500
2500
|
);
|
|
@@ -2503,30 +2503,30 @@ function Po(e, t, n, r) {
|
|
|
2503
2503
|
...ne
|
|
2504
2504
|
]);
|
|
2505
2505
|
}
|
|
2506
|
-
function g(d,
|
|
2507
|
-
return F(d,
|
|
2506
|
+
function g(d, N) {
|
|
2507
|
+
return F(d, N) || c(d, N);
|
|
2508
2508
|
}
|
|
2509
2509
|
function y(d) {
|
|
2510
|
-
return d.options.length > 0 && d.options.every((
|
|
2510
|
+
return d.options.length > 0 && d.options.every((N) => g(d, N.value));
|
|
2511
2511
|
}
|
|
2512
2512
|
function T(d) {
|
|
2513
2513
|
return d.options.length === 0 || y(d) ? !1 : d.options.some(
|
|
2514
|
-
(
|
|
2514
|
+
(N) => g(d, N.value) || w(d, N.value).length > 0
|
|
2515
2515
|
);
|
|
2516
2516
|
}
|
|
2517
|
-
function
|
|
2518
|
-
const
|
|
2517
|
+
function C(d) {
|
|
2518
|
+
const N = new Set(d.options.map((V) => V.value)), U = e.value.filter((V) => !N.has(V.subject));
|
|
2519
2519
|
if (y(d))
|
|
2520
2520
|
r("update:model-value", U);
|
|
2521
2521
|
else {
|
|
2522
2522
|
const V = /* @__PURE__ */ new Map();
|
|
2523
|
-
for (const
|
|
2524
|
-
|
|
2525
|
-
const j = d.coverSubject ? V.get(d.coverSubject) : void 0,
|
|
2526
|
-
({ category:
|
|
2523
|
+
for (const Z of e.value)
|
|
2524
|
+
N.has(Z.subject) && !Z.inverted && V.set(Z.subject, Z.conditions);
|
|
2525
|
+
const j = d.coverSubject ? V.get(d.coverSubject) : void 0, Y = /* @__PURE__ */ new Set(), W = t.value.flatMap(
|
|
2526
|
+
({ category: Z, showByFeatureFlag: B, isCategoryCover: ne, ...Q }) => {
|
|
2527
2527
|
const _e = Q.subject;
|
|
2528
|
-
if (!
|
|
2529
|
-
|
|
2528
|
+
if (!N.has(_e) || Y.has(_e)) return [];
|
|
2529
|
+
Y.add(_e);
|
|
2530
2530
|
let ce;
|
|
2531
2531
|
return V.has(_e) ? ce = V.get(_e) : d.coverSubject && _e !== d.coverSubject && (ce = j), [
|
|
2532
2532
|
{ ...Q, ...ce !== void 0 && { conditions: ce } }
|
|
@@ -2536,162 +2536,162 @@ function Po(e, t, n, r) {
|
|
|
2536
2536
|
r("update:model-value", [...U, ...W]);
|
|
2537
2537
|
}
|
|
2538
2538
|
}
|
|
2539
|
-
function F(d,
|
|
2540
|
-
const U = d.selectedActionsMap.get(
|
|
2539
|
+
function F(d, N) {
|
|
2540
|
+
const U = d.selectedActionsMap.get(N);
|
|
2541
2541
|
return U ? U.has("manage") : !1;
|
|
2542
2542
|
}
|
|
2543
|
-
function w(d,
|
|
2544
|
-
const U = d.permissionActionsMap.get(
|
|
2543
|
+
function w(d, N) {
|
|
2544
|
+
const U = d.permissionActionsMap.get(N);
|
|
2545
2545
|
return U ? U.filter((j) => j !== "manage").filter(
|
|
2546
|
-
(j) =>
|
|
2546
|
+
(j) => L(d, N, j) || b(d, N, j)
|
|
2547
2547
|
) : [];
|
|
2548
2548
|
}
|
|
2549
|
-
function
|
|
2550
|
-
return c(d,
|
|
2549
|
+
function S(d, N) {
|
|
2550
|
+
return c(d, N) ? !1 : !F(d, N) && w(d, N).length > 0;
|
|
2551
2551
|
}
|
|
2552
|
-
function D(d,
|
|
2553
|
-
if (!d.coverSubject ||
|
|
2552
|
+
function D(d, N) {
|
|
2553
|
+
if (!d.coverSubject || N === d.coverSubject) return;
|
|
2554
2554
|
const U = e.value.find(
|
|
2555
2555
|
(V) => !V.inverted && V.subject === d.coverSubject
|
|
2556
2556
|
);
|
|
2557
2557
|
return (U == null ? void 0 : U.conditions) || void 0;
|
|
2558
2558
|
}
|
|
2559
|
-
function f(d,
|
|
2559
|
+
function f(d, N, U) {
|
|
2560
2560
|
if (U) {
|
|
2561
|
-
const V = t.value.find((Q) => Q.subject ===
|
|
2561
|
+
const V = t.value.find((Q) => Q.subject === N);
|
|
2562
2562
|
if (!V) return;
|
|
2563
2563
|
const {
|
|
2564
2564
|
category: j,
|
|
2565
|
-
showByFeatureFlag:
|
|
2565
|
+
showByFeatureFlag: Y,
|
|
2566
2566
|
isCategoryCover: W,
|
|
2567
|
-
...
|
|
2568
|
-
} = V, B = D(d,
|
|
2567
|
+
...Z
|
|
2568
|
+
} = V, B = D(d, N), ne = e.value.filter((Q) => Q.subject !== N);
|
|
2569
2569
|
ne.push({
|
|
2570
|
-
...
|
|
2570
|
+
...Z,
|
|
2571
2571
|
...B !== void 0 && { conditions: B }
|
|
2572
2572
|
}), r("update:model-value", ne);
|
|
2573
2573
|
} else
|
|
2574
2574
|
r(
|
|
2575
2575
|
"update:model-value",
|
|
2576
|
-
e.value.filter((V) => V.subject !==
|
|
2576
|
+
e.value.filter((V) => V.subject !== N)
|
|
2577
2577
|
);
|
|
2578
2578
|
}
|
|
2579
|
-
function h(d,
|
|
2580
|
-
const U = d.permissionActionsMap.get(
|
|
2579
|
+
function h(d, N) {
|
|
2580
|
+
const U = d.permissionActionsMap.get(N);
|
|
2581
2581
|
return U ? U.some((V) => V !== "manage") : !1;
|
|
2582
2582
|
}
|
|
2583
|
-
function
|
|
2584
|
-
const V = d.selectedActionsMap.get(
|
|
2583
|
+
function L(d, N, U) {
|
|
2584
|
+
const V = d.selectedActionsMap.get(N);
|
|
2585
2585
|
return V ? V.has(U) : !1;
|
|
2586
2586
|
}
|
|
2587
|
-
function c(d,
|
|
2588
|
-
return !d.coverSubject ||
|
|
2587
|
+
function c(d, N) {
|
|
2588
|
+
return !d.coverSubject || N === d.coverSubject ? !1 : d.coverCoversAll;
|
|
2589
2589
|
}
|
|
2590
|
-
function b(d,
|
|
2591
|
-
return !d.coverSubject ||
|
|
2590
|
+
function b(d, N, U) {
|
|
2591
|
+
return !d.coverSubject || N === d.coverSubject ? !1 : d.coverCoversAll ? !0 : d.coverSelectedActions.has(U);
|
|
2592
2592
|
}
|
|
2593
|
-
function I(d,
|
|
2594
|
-
const V = d.permissionActionsMap.get(
|
|
2593
|
+
function I(d, N, U) {
|
|
2594
|
+
const V = d.permissionActionsMap.get(N);
|
|
2595
2595
|
return V ? V.includes(U) : !1;
|
|
2596
2596
|
}
|
|
2597
|
-
function p(d,
|
|
2597
|
+
function p(d, N, U) {
|
|
2598
2598
|
const V = [...e.value], j = V.findIndex((W) => W.subject === d && !W.inverted);
|
|
2599
2599
|
if (U)
|
|
2600
2600
|
if (j >= 0) {
|
|
2601
|
-
const W = { ...V[j] },
|
|
2602
|
-
|
|
2601
|
+
const W = { ...V[j] }, Z = new Set(W.actions);
|
|
2602
|
+
Z.add(N), W.actions = Array.from(Z), V[j] = W;
|
|
2603
2603
|
} else {
|
|
2604
|
-
const W = t.value.find((
|
|
2604
|
+
const W = t.value.find((se) => se.subject === d);
|
|
2605
2605
|
if (!W) return;
|
|
2606
2606
|
const {
|
|
2607
|
-
category:
|
|
2607
|
+
category: Z,
|
|
2608
2608
|
showByFeatureFlag: B,
|
|
2609
2609
|
isCategoryCover: ne,
|
|
2610
2610
|
...Q
|
|
2611
2611
|
} = W, _e = u.value.find(
|
|
2612
|
-
(
|
|
2612
|
+
(se) => se.options.some((fe) => fe.value === d)
|
|
2613
2613
|
), ce = _e ? D(_e, d) : void 0;
|
|
2614
2614
|
V.push({
|
|
2615
2615
|
...Q,
|
|
2616
|
-
actions: [
|
|
2616
|
+
actions: [N],
|
|
2617
2617
|
...ce !== void 0 && { conditions: ce }
|
|
2618
2618
|
});
|
|
2619
2619
|
}
|
|
2620
2620
|
else if (j >= 0) {
|
|
2621
|
-
const W = { ...V[j] },
|
|
2622
|
-
|
|
2621
|
+
const W = { ...V[j] }, Z = W.actions.filter((B) => B !== N);
|
|
2622
|
+
Z.length === 0 ? V.splice(j, 1) : (W.actions = Z, V[j] = W);
|
|
2623
2623
|
}
|
|
2624
|
-
const
|
|
2625
|
-
|
|
2624
|
+
const Y = t.value.find((W) => W.subject === d);
|
|
2625
|
+
Y && Mn(V, d, Y.actions), r("update:model-value", V);
|
|
2626
2626
|
}
|
|
2627
|
-
function k(d,
|
|
2627
|
+
function k(d, N) {
|
|
2628
2628
|
const U = d.options.filter(
|
|
2629
|
-
(V) => I(d, V.value,
|
|
2629
|
+
(V) => I(d, V.value, N)
|
|
2630
2630
|
);
|
|
2631
2631
|
return U.length === 0 ? !1 : U.every(
|
|
2632
|
-
(V) =>
|
|
2632
|
+
(V) => L(d, V.value, N) || b(d, V.value, N)
|
|
2633
2633
|
);
|
|
2634
2634
|
}
|
|
2635
|
-
function A(d,
|
|
2635
|
+
function A(d, N) {
|
|
2636
2636
|
const U = d.options.filter(
|
|
2637
|
-
(j) => I(d, j.value,
|
|
2637
|
+
(j) => I(d, j.value, N)
|
|
2638
2638
|
);
|
|
2639
2639
|
if (U.length === 0) return !1;
|
|
2640
2640
|
const V = U.filter(
|
|
2641
|
-
(j) =>
|
|
2641
|
+
(j) => L(d, j.value, N) || b(d, j.value, N)
|
|
2642
2642
|
).length;
|
|
2643
2643
|
return V > 0 && V < U.length;
|
|
2644
2644
|
}
|
|
2645
|
-
function X(d,
|
|
2645
|
+
function X(d, N, U) {
|
|
2646
2646
|
const V = [...e.value];
|
|
2647
2647
|
for (const j of d.options) {
|
|
2648
|
-
if (!I(d, j.value,
|
|
2649
|
-
const
|
|
2650
|
-
(B) => B.subject ===
|
|
2648
|
+
if (!I(d, j.value, N)) continue;
|
|
2649
|
+
const Y = j.value, W = V.findIndex(
|
|
2650
|
+
(B) => B.subject === Y && !B.inverted
|
|
2651
2651
|
);
|
|
2652
2652
|
if (U)
|
|
2653
2653
|
if (W >= 0) {
|
|
2654
2654
|
const B = { ...V[W] }, ne = new Set(B.actions);
|
|
2655
|
-
ne.add(
|
|
2655
|
+
ne.add(N), B.actions = Array.from(ne), V[W] = B;
|
|
2656
2656
|
} else {
|
|
2657
|
-
const B = t.value.find((fe) => fe.subject ===
|
|
2657
|
+
const B = t.value.find((fe) => fe.subject === Y);
|
|
2658
2658
|
if (!B) continue;
|
|
2659
2659
|
const {
|
|
2660
2660
|
category: ne,
|
|
2661
2661
|
showByFeatureFlag: Q,
|
|
2662
2662
|
isCategoryCover: _e,
|
|
2663
2663
|
...ce
|
|
2664
|
-
} = B,
|
|
2664
|
+
} = B, se = D(d, Y);
|
|
2665
2665
|
V.push({
|
|
2666
2666
|
...ce,
|
|
2667
|
-
actions: [
|
|
2668
|
-
...
|
|
2667
|
+
actions: [N],
|
|
2668
|
+
...se !== void 0 && { conditions: se }
|
|
2669
2669
|
});
|
|
2670
2670
|
}
|
|
2671
2671
|
else if (W >= 0) {
|
|
2672
|
-
const B = { ...V[W] }, ne = B.actions.filter((Q) => Q !==
|
|
2672
|
+
const B = { ...V[W] }, ne = B.actions.filter((Q) => Q !== N);
|
|
2673
2673
|
ne.length === 0 ? V.splice(W, 1) : (B.actions = ne, V[W] = B);
|
|
2674
2674
|
}
|
|
2675
|
-
const
|
|
2676
|
-
|
|
2675
|
+
const Z = t.value.find((B) => B.subject === Y);
|
|
2676
|
+
Z && Mn(V, Y, Z.actions);
|
|
2677
2677
|
}
|
|
2678
2678
|
r("update:model-value", V);
|
|
2679
2679
|
}
|
|
2680
2680
|
function x(d) {
|
|
2681
|
-
const
|
|
2682
|
-
return l(
|
|
2681
|
+
const N = `permissionSet.actionLabels.${d}`, U = Fo[d] ?? d.charAt(0).toUpperCase() + d.slice(1);
|
|
2682
|
+
return l(N, U);
|
|
2683
2683
|
}
|
|
2684
2684
|
return {
|
|
2685
2685
|
categoryGroups: u,
|
|
2686
2686
|
toggleCategory: i,
|
|
2687
2687
|
isAllManageChecked: y,
|
|
2688
2688
|
isAllManageIndeterminate: T,
|
|
2689
|
-
toggleAllManage:
|
|
2689
|
+
toggleAllManage: C,
|
|
2690
2690
|
isManageChecked: F,
|
|
2691
|
-
isManageIndeterminate:
|
|
2691
|
+
isManageIndeterminate: S,
|
|
2692
2692
|
toggleManage: f,
|
|
2693
2693
|
hasNonManageActions: h,
|
|
2694
|
-
isActionChecked:
|
|
2694
|
+
isActionChecked: L,
|
|
2695
2695
|
isRowFullyCoveredByCover: c,
|
|
2696
2696
|
isActionCoveredByCover: b,
|
|
2697
2697
|
permissionDefinesAction: I,
|
|
@@ -2702,7 +2702,7 @@ function Po(e, t, n, r) {
|
|
|
2702
2702
|
actionLabel: x
|
|
2703
2703
|
};
|
|
2704
2704
|
}
|
|
2705
|
-
const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm-600" }, Vo = { class: "mt-16" }, xo = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Wo = ["onClick"],
|
|
2705
|
+
const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm-600" }, Vo = { class: "mt-16" }, xo = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Wo = ["onClick"], Yo = { class: "flex justify-center" }, Go = { class: "flex items-center min-w-0 gap-8" }, Zo = ["title", "onClick"], Bo = { class: "flex justify-center" }, Xo = /* @__PURE__ */ Se({
|
|
2706
2706
|
__name: "BasePermission",
|
|
2707
2707
|
props: {
|
|
2708
2708
|
modelValue: {
|
|
@@ -2724,21 +2724,21 @@ const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm
|
|
|
2724
2724
|
},
|
|
2725
2725
|
emits: ["update:model-value"],
|
|
2726
2726
|
setup(e, { emit: t }) {
|
|
2727
|
-
const n = e, r = t, { t: l } = He(), a = z(() => [...
|
|
2727
|
+
const n = e, r = t, { t: l } = He(), a = z(() => [...Yn, ...n.additionalPermissions]), {
|
|
2728
2728
|
categoryGroups: m,
|
|
2729
2729
|
isAllManageChecked: u,
|
|
2730
2730
|
isAllManageIndeterminate: i,
|
|
2731
2731
|
toggleAllManage: g,
|
|
2732
2732
|
isManageChecked: y,
|
|
2733
2733
|
isManageIndeterminate: T,
|
|
2734
|
-
toggleManage:
|
|
2734
|
+
toggleManage: C,
|
|
2735
2735
|
isActionChecked: F,
|
|
2736
2736
|
isRowFullyCoveredByCover: w,
|
|
2737
|
-
isActionCoveredByCover:
|
|
2737
|
+
isActionCoveredByCover: S,
|
|
2738
2738
|
permissionDefinesAction: D,
|
|
2739
2739
|
toggleAction: f,
|
|
2740
2740
|
isAllActionChecked: h,
|
|
2741
|
-
isAllActionIndeterminate:
|
|
2741
|
+
isAllActionIndeterminate: L,
|
|
2742
2742
|
toggleAllAction: c,
|
|
2743
2743
|
actionLabel: b
|
|
2744
2744
|
} = Po(
|
|
@@ -2753,13 +2753,13 @@ const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm
|
|
|
2753
2753
|
}
|
|
2754
2754
|
function p(k, A) {
|
|
2755
2755
|
return y(k, A) || w(k, A) ? !0 : k.actionColumns.some(
|
|
2756
|
-
(X) => D(k, A, X) && (F(k, A, X) ||
|
|
2756
|
+
(X) => D(k, A, X) && (F(k, A, X) || S(k, A, X))
|
|
2757
2757
|
);
|
|
2758
2758
|
}
|
|
2759
2759
|
return (k, A) => {
|
|
2760
2760
|
const X = we("FmCheckbox");
|
|
2761
2761
|
return J(), ie("div", jo, [
|
|
2762
|
-
(J(!0), ie(ke, null, Ee(H(m), (x) => (J(),
|
|
2762
|
+
(J(!0), ie(ke, null, Ee(H(m), (x) => (J(), Ce(Xt, {
|
|
2763
2763
|
key: x.category,
|
|
2764
2764
|
subtitle: I(x)
|
|
2765
2765
|
}, {
|
|
@@ -2791,7 +2791,7 @@ const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm
|
|
|
2791
2791
|
class: "cursor-pointer font-semibold",
|
|
2792
2792
|
onClick: (d) => !e.disable && H(g)(x)
|
|
2793
2793
|
}, Oe(H(l)("team.labels.all")), 9, Wo),
|
|
2794
|
-
ae("div",
|
|
2794
|
+
ae("div", Yo, [
|
|
2795
2795
|
ue(X, {
|
|
2796
2796
|
"model-value": H(u)(x),
|
|
2797
2797
|
indeterminate: H(i)(x),
|
|
@@ -2808,12 +2808,12 @@ const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm
|
|
|
2808
2808
|
}, [
|
|
2809
2809
|
ue(X, {
|
|
2810
2810
|
"model-value": H(h)(x, d),
|
|
2811
|
-
indeterminate: H(
|
|
2811
|
+
indeterminate: H(L)(x, d),
|
|
2812
2812
|
value: d,
|
|
2813
2813
|
disabled: e.disable,
|
|
2814
2814
|
size: "sm",
|
|
2815
2815
|
dense: "",
|
|
2816
|
-
"onUpdate:modelValue": (
|
|
2816
|
+
"onUpdate:modelValue": (N) => H(c)(x, d, N)
|
|
2817
2817
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2818
2818
|
]))), 128))
|
|
2819
2819
|
], 4),
|
|
@@ -2825,21 +2825,21 @@ const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm
|
|
|
2825
2825
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2826
2826
|
})
|
|
2827
2827
|
}, [
|
|
2828
|
-
ae("div",
|
|
2828
|
+
ae("div", Go, [
|
|
2829
2829
|
ae("span", {
|
|
2830
2830
|
class: "block truncate cursor-pointer",
|
|
2831
2831
|
title: d.label,
|
|
2832
|
-
onClick: (
|
|
2833
|
-
}, Oe(d.label), 9,
|
|
2834
|
-
|
|
2832
|
+
onClick: (N) => !e.disable && !H(w)(x, d.value) && H(C)(x, d.value, !H(y)(x, d.value))
|
|
2833
|
+
}, Oe(d.label), 9, Zo),
|
|
2834
|
+
Le(k.$slots, `checkbox-${d.value}-append`, {
|
|
2835
2835
|
option: d,
|
|
2836
2836
|
isEffectiveSelected: p(x, d.value),
|
|
2837
|
-
isCoveredByCover: H(w)(x, d.value) || x.actionColumns.some((
|
|
2837
|
+
isCoveredByCover: H(w)(x, d.value) || x.actionColumns.some((N) => H(S)(x, d.value, N))
|
|
2838
2838
|
}),
|
|
2839
|
-
|
|
2839
|
+
Le(k.$slots, `checkbox-${d.value}-icon`, {
|
|
2840
2840
|
option: d,
|
|
2841
2841
|
isEffectiveSelected: p(x, d.value),
|
|
2842
|
-
isCoveredByCover: H(w)(x, d.value) || x.actionColumns.some((
|
|
2842
|
+
isCoveredByCover: H(w)(x, d.value) || x.actionColumns.some((N) => H(S)(x, d.value, N))
|
|
2843
2843
|
})
|
|
2844
2844
|
]),
|
|
2845
2845
|
ae("div", Bo, [
|
|
@@ -2849,20 +2849,20 @@ const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm
|
|
|
2849
2849
|
disabled: e.disable || H(w)(x, d.value),
|
|
2850
2850
|
indeterminate: H(T)(x, d.value),
|
|
2851
2851
|
size: "sm",
|
|
2852
|
-
"onUpdate:modelValue": (
|
|
2852
|
+
"onUpdate:modelValue": (N) => H(C)(x, d.value, N)
|
|
2853
2853
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2854
2854
|
]),
|
|
2855
|
-
(J(!0), ie(ke, null, Ee(x.actionColumns, (
|
|
2856
|
-
key: `${d.optionKey}-${
|
|
2855
|
+
(J(!0), ie(ke, null, Ee(x.actionColumns, (N) => (J(), ie("div", {
|
|
2856
|
+
key: `${d.optionKey}-${N}`,
|
|
2857
2857
|
class: "flex justify-center"
|
|
2858
2858
|
}, [
|
|
2859
|
-
H(D)(x, d.value,
|
|
2859
|
+
H(D)(x, d.value, N) ? (J(), Ce(X, {
|
|
2860
2860
|
key: 0,
|
|
2861
|
-
"model-value": H(F)(x, d.value,
|
|
2862
|
-
value:
|
|
2863
|
-
disabled: e.disable || H(
|
|
2861
|
+
"model-value": H(F)(x, d.value, N) || H(S)(x, d.value, N),
|
|
2862
|
+
value: N,
|
|
2863
|
+
disabled: e.disable || H(S)(x, d.value, N),
|
|
2864
2864
|
size: "sm",
|
|
2865
|
-
"onUpdate:modelValue": (U) => H(f)(d.value,
|
|
2865
|
+
"onUpdate:modelValue": (U) => H(f)(d.value, N, U)
|
|
2866
2866
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Me("", !0)
|
|
2867
2867
|
]))), 128))
|
|
2868
2868
|
], 4))), 128))
|
|
@@ -2879,7 +2879,7 @@ const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm
|
|
|
2879
2879
|
}, Jo = {
|
|
2880
2880
|
key: 0,
|
|
2881
2881
|
class: "q-mr-xs text-red col"
|
|
2882
|
-
}, Ko = { class: "form-input" }, zo = /* @__PURE__ */
|
|
2882
|
+
}, Ko = { class: "form-input" }, zo = /* @__PURE__ */ Se({
|
|
2883
2883
|
__name: "AppForm",
|
|
2884
2884
|
props: {
|
|
2885
2885
|
title: {
|
|
@@ -2898,17 +2898,17 @@ const jo = { class: "flex flex-col gap-16" }, Uo = { class: "fm-typo-en-title-sm
|
|
|
2898
2898
|
setup(e) {
|
|
2899
2899
|
const t = e;
|
|
2900
2900
|
return (n, r) => (J(), ie("div", Ho, [
|
|
2901
|
-
|
|
2901
|
+
Le(n.$slots, "top", {}, () => [
|
|
2902
2902
|
t.title ? (J(), ie("div", $o, [
|
|
2903
2903
|
ae("div", null, [
|
|
2904
2904
|
t.required ? (J(), ie("span", Jo, "*")) : Me("", !0),
|
|
2905
2905
|
_r(Oe(t.title), 1)
|
|
2906
2906
|
]),
|
|
2907
|
-
|
|
2907
|
+
Le(n.$slots, "title-right")
|
|
2908
2908
|
])) : Me("", !0)
|
|
2909
2909
|
]),
|
|
2910
2910
|
ae("div", Ko, [
|
|
2911
|
-
|
|
2911
|
+
Le(n.$slots, "default")
|
|
2912
2912
|
])
|
|
2913
2913
|
]));
|
|
2914
2914
|
}
|
|
@@ -2923,7 +2923,7 @@ function Qo(e, t) {
|
|
|
2923
2923
|
const qo = { class: "col flex items-center" }, ea = {
|
|
2924
2924
|
key: 1,
|
|
2925
2925
|
class: "q-pa-sm form-error-message text-error"
|
|
2926
|
-
}, ir = /* @__PURE__ */
|
|
2926
|
+
}, ir = /* @__PURE__ */ Se({
|
|
2927
2927
|
__name: "CheckboxInput",
|
|
2928
2928
|
props: {
|
|
2929
2929
|
options: {
|
|
@@ -2982,37 +2982,37 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
2982
2982
|
emits: ["update:model-value"],
|
|
2983
2983
|
setup(e, { emit: t }) {
|
|
2984
2984
|
const n = e, r = t, { t: l } = He(), a = rt(!1), m = pr(), u = z(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), i = `checkbox-${Qo(6)}`, g = z(() => u.value !== !0), y = z(
|
|
2985
|
-
() => n.modelValue.filter((
|
|
2985
|
+
() => n.modelValue.filter((S) => n.options.some((D) => D.value === S))
|
|
2986
2986
|
), T = z(
|
|
2987
2987
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2988
|
-
),
|
|
2988
|
+
), C = z(() => n.options.length > 0 && n.options.length === y.value.length);
|
|
2989
2989
|
function F() {
|
|
2990
|
-
const
|
|
2991
|
-
if (
|
|
2992
|
-
r("update:model-value",
|
|
2990
|
+
const S = n.modelValue.filter((D) => !y.value.includes(D));
|
|
2991
|
+
if (C.value === !0)
|
|
2992
|
+
r("update:model-value", S);
|
|
2993
2993
|
else {
|
|
2994
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", [...
|
|
2995
|
+
r("update:model-value", [...S, ...D]);
|
|
2996
2996
|
}
|
|
2997
2997
|
}
|
|
2998
|
-
function w(
|
|
2998
|
+
function w(S, D) {
|
|
2999
2999
|
let f = It(n.modelValue);
|
|
3000
|
-
D ? f.every((h) => h !==
|
|
3000
|
+
D ? f.every((h) => h !== S) && f.push(S) : f = f.filter((h) => h !== S), r("update:model-value", f);
|
|
3001
3001
|
}
|
|
3002
|
-
return (
|
|
3002
|
+
return (S, D) => {
|
|
3003
3003
|
const f = we("FmCheckbox");
|
|
3004
|
-
return J(),
|
|
3004
|
+
return J(), Ce(zo, {
|
|
3005
3005
|
id: i,
|
|
3006
3006
|
title: e.title,
|
|
3007
3007
|
required: !1
|
|
3008
3008
|
}, {
|
|
3009
3009
|
top: me(() => [
|
|
3010
|
-
|
|
3010
|
+
Le(S.$slots, "top")
|
|
3011
3011
|
]),
|
|
3012
3012
|
default: me(() => [
|
|
3013
|
-
n.showAllToggle ? (J(),
|
|
3013
|
+
n.showAllToggle ? (J(), Ce(f, {
|
|
3014
3014
|
key: 0,
|
|
3015
|
-
"model-value":
|
|
3015
|
+
"model-value": C.value,
|
|
3016
3016
|
disabled: e.disable,
|
|
3017
3017
|
label: T.value,
|
|
3018
3018
|
style: nt(`margin-bottom: ${n.gutter}px`),
|
|
@@ -3021,10 +3021,10 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3021
3021
|
value: T.value,
|
|
3022
3022
|
"onUpdate:modelValue": F
|
|
3023
3023
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Me("", !0),
|
|
3024
|
-
(J(!0), ie(ke, null, Ee(e.options, (h,
|
|
3024
|
+
(J(!0), ie(ke, null, Ee(e.options, (h, L) => (J(), ie("div", {
|
|
3025
3025
|
key: h.value,
|
|
3026
|
-
style: nt(`margin-bottom: ${
|
|
3027
|
-
class: qe(
|
|
3026
|
+
style: nt(`margin-bottom: ${L < e.options.length - 1 ? n.gutter : 0}px`),
|
|
3027
|
+
class: qe(L < e.options.length - 1 ? "q-mb-sm" : "")
|
|
3028
3028
|
}, [
|
|
3029
3029
|
ae("div", {
|
|
3030
3030
|
class: qe(["row justify-between", e.alignCenter ? "items-center" : "items-start"])
|
|
@@ -3038,7 +3038,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3038
3038
|
value: h.label,
|
|
3039
3039
|
"onUpdate:modelValue": (c) => w(h.value, c)
|
|
3040
3040
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
3041
|
-
|
|
3041
|
+
Le(S.$slots, `checkbox-${h.key || h.value}-append`, {
|
|
3042
3042
|
option: h,
|
|
3043
3043
|
selected: e.modelValue.includes(h.value)
|
|
3044
3044
|
})
|
|
@@ -3047,7 +3047,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3047
3047
|
key: 0,
|
|
3048
3048
|
class: qe([{ "q-checkbox disabled": e.disable || h.disabled }, "col"])
|
|
3049
3049
|
}, [
|
|
3050
|
-
|
|
3050
|
+
Le(S.$slots, `checkbox-${h.key || h.value}-end`, {
|
|
3051
3051
|
option: h,
|
|
3052
3052
|
value: e.modelValue.includes(h.value),
|
|
3053
3053
|
disable: e.disable || h.disabled
|
|
@@ -3059,7 +3059,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3059
3059
|
class: qe(["q-mt-sm", { "q-checkbox disabled": e.disable || h.disabled }]),
|
|
3060
3060
|
style: nt(`margin-left: ${e.bottomSlotIndent}`)
|
|
3061
3061
|
}, [
|
|
3062
|
-
|
|
3062
|
+
Le(S.$slots, `checkbox-${h.key || h.value}-bottom`, {
|
|
3063
3063
|
option: h,
|
|
3064
3064
|
disable: e.disable || h.disabled,
|
|
3065
3065
|
value: e.modelValue.includes(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", Dn = /* @__PURE__ */
|
|
3075
|
+
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture", Dn = /* @__PURE__ */ Se({
|
|
3076
3076
|
__name: "ConditionPermission",
|
|
3077
3077
|
props: {
|
|
3078
3078
|
modelValue: {
|
|
@@ -3110,17 +3110,17 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3110
3110
|
});
|
|
3111
3111
|
function i(y) {
|
|
3112
3112
|
const T = y.length === a.value.length;
|
|
3113
|
-
r("update:model-value", T ? null : y.filter((
|
|
3113
|
+
r("update:model-value", T ? null : y.filter((C) => C !== ht));
|
|
3114
3114
|
}
|
|
3115
3115
|
const g = rt("");
|
|
3116
3116
|
return (y, T) => {
|
|
3117
|
-
const
|
|
3118
|
-
return J(),
|
|
3117
|
+
const C = we("fm-search");
|
|
3118
|
+
return J(), Ce(Xt, { subtitle: u.value }, {
|
|
3119
3119
|
title: me(() => [
|
|
3120
3120
|
ae("p", ta, Oe(H(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3121
3121
|
]),
|
|
3122
3122
|
default: me(() => [
|
|
3123
|
-
e.options.length > 1 ? (J(),
|
|
3123
|
+
e.options.length > 1 ? (J(), Ce(C, {
|
|
3124
3124
|
key: 0,
|
|
3125
3125
|
modelValue: g.value,
|
|
3126
3126
|
"onUpdate:modelValue": T[0] || (T[0] = (F) => g.value = F),
|
|
@@ -3141,7 +3141,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3141
3141
|
Ee(a.value, (F) => ({
|
|
3142
3142
|
name: `checkbox-${F.value}-append`,
|
|
3143
3143
|
fn: me(({ option: w }) => [
|
|
3144
|
-
|
|
3144
|
+
Le(y.$slots, `checkbox-${F.value}-append`, { option: w })
|
|
3145
3145
|
])
|
|
3146
3146
|
}))
|
|
3147
3147
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3150,7 +3150,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3150
3150
|
}, 8, ["subtitle"]);
|
|
3151
3151
|
};
|
|
3152
3152
|
}
|
|
3153
|
-
}), na = { class: "fm-typo-en-title-sm-600" }, bt = "includedNewRole", ra = /* @__PURE__ */
|
|
3153
|
+
}), na = { class: "fm-typo-en-title-sm-600" }, bt = "includedNewRole", ra = /* @__PURE__ */ Se({
|
|
3154
3154
|
__name: "PosRolePermission",
|
|
3155
3155
|
props: {
|
|
3156
3156
|
modelValue: {
|
|
@@ -3194,7 +3194,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3194
3194
|
const y = g.length === a.value.length;
|
|
3195
3195
|
r("update:model-value", y ? null : g.filter((T) => T !== bt));
|
|
3196
3196
|
}
|
|
3197
|
-
return (g, y) => (J(),
|
|
3197
|
+
return (g, y) => (J(), Ce(Xt, { subtitle: u.value }, {
|
|
3198
3198
|
title: me(() => [
|
|
3199
3199
|
ae("p", na, Oe(H(l)("team.memberForm.permissions.roles")), 1)
|
|
3200
3200
|
]),
|
|
@@ -3211,8 +3211,8 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3211
3211
|
}, et({ _: 2 }, [
|
|
3212
3212
|
Ee(a.value, (T) => ({
|
|
3213
3213
|
name: `checkbox-${T.value}-append`,
|
|
3214
|
-
fn: me(({ option:
|
|
3215
|
-
|
|
3214
|
+
fn: me(({ option: C }) => [
|
|
3215
|
+
Le(g.$slots, `checkbox-${T.value}-append`, { option: C })
|
|
3216
3216
|
])
|
|
3217
3217
|
}))
|
|
3218
3218
|
]), 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
|
-
}, Fn = /* @__PURE__ */
|
|
3233
|
+
}, Fn = /* @__PURE__ */ Se({
|
|
3234
3234
|
__name: "PortalConditionForm",
|
|
3235
3235
|
props: {
|
|
3236
3236
|
entry: {},
|
|
@@ -3250,7 +3250,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3250
3250
|
const n = t, { t: r } = He();
|
|
3251
3251
|
return (l, a) => {
|
|
3252
3252
|
const m = we("FmRadio"), u = we("FmRadioGroup");
|
|
3253
|
-
return J(),
|
|
3253
|
+
return J(), Ce(Nr, {
|
|
3254
3254
|
title: e.title,
|
|
3255
3255
|
builders: e.builders,
|
|
3256
3256
|
"form-value-for": e.formValueFor,
|
|
@@ -3295,7 +3295,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3295
3295
|
"onUpdate:modelValue": (g) => n("update-form", { builder: i, form: g })
|
|
3296
3296
|
}, null, 8, ["builder", "model-value", "disable", "onUpdate:modelValue"])
|
|
3297
3297
|
])) : Me("", !0)
|
|
3298
|
-
])) : (J(),
|
|
3298
|
+
])) : (J(), Ce(nn, {
|
|
3299
3299
|
key: 1,
|
|
3300
3300
|
builder: i,
|
|
3301
3301
|
"model-value": e.formValueFor(i),
|
|
@@ -3309,11 +3309,11 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3309
3309
|
}
|
|
3310
3310
|
}), la = {
|
|
3311
3311
|
async readWarehouses() {
|
|
3312
|
-
return
|
|
3312
|
+
return Sr(await Rr().get("/warehouses"));
|
|
3313
3313
|
}
|
|
3314
3314
|
};
|
|
3315
3315
|
function Pn(e, t) {
|
|
3316
|
-
return
|
|
3316
|
+
return Gn(e, Zn).some(
|
|
3317
3317
|
(n) => n.subject === t && !n.inverted && n.actions.includes("manage")
|
|
3318
3318
|
);
|
|
3319
3319
|
}
|
|
@@ -3344,7 +3344,7 @@ function ia(e, t, n, r) {
|
|
|
3344
3344
|
const g = u.some((y) => y.subject === i && y.inverted);
|
|
3345
3345
|
if (u = u.filter((y) => !(y.subject === i && y.inverted)), !g && !m.has(i)) {
|
|
3346
3346
|
const y = t.find(
|
|
3347
|
-
(
|
|
3347
|
+
(C) => C.subject === i && !C.inverted
|
|
3348
3348
|
), T = r(i);
|
|
3349
3349
|
T && y && u.push(Un(T, y.actions, y.conditions));
|
|
3350
3350
|
}
|
|
@@ -3353,20 +3353,20 @@ function ia(e, t, n, r) {
|
|
|
3353
3353
|
if (!l.has(i)) continue;
|
|
3354
3354
|
const g = e.find((w) => w.subject === i && !w.inverted), y = t.find((w) => w.subject === i && !w.inverted);
|
|
3355
3355
|
if (!g || !y) continue;
|
|
3356
|
-
const T = new Set(g.actions),
|
|
3357
|
-
if (T.size ===
|
|
3356
|
+
const T = new Set(g.actions), C = new Set(y.actions);
|
|
3357
|
+
if (T.size === C.size && [...T].every((w) => C.has(w)))
|
|
3358
3358
|
continue;
|
|
3359
3359
|
const F = u.findIndex((w) => w.subject === i && !w.inverted);
|
|
3360
3360
|
if (F >= 0)
|
|
3361
3361
|
u[F] = {
|
|
3362
3362
|
...u[F],
|
|
3363
|
-
actions: Array.from(
|
|
3363
|
+
actions: Array.from(C)
|
|
3364
3364
|
};
|
|
3365
3365
|
else {
|
|
3366
3366
|
const w = r(i);
|
|
3367
|
-
w && u.push(Un(w, Array.from(
|
|
3367
|
+
w && u.push(Un(w, Array.from(C)));
|
|
3368
3368
|
}
|
|
3369
|
-
T.has("manage") && !
|
|
3369
|
+
T.has("manage") && !C.has("manage") && Pn(u, i) && (u = jn(u, i)), !T.has("manage") && C.has("manage") && (u = u.filter((w) => !(w.subject === i && w.inverted)));
|
|
3370
3370
|
}
|
|
3371
3371
|
return u;
|
|
3372
3372
|
}
|
|
@@ -3409,13 +3409,13 @@ function Mt(e, t) {
|
|
|
3409
3409
|
const n = new Set(e.actions);
|
|
3410
3410
|
return n.has(he.Action.manage) ? !0 : t.actions.every((r) => n.has(r));
|
|
3411
3411
|
}
|
|
3412
|
-
function
|
|
3412
|
+
function Zt(e, t) {
|
|
3413
3413
|
const n = We(e);
|
|
3414
3414
|
return Dt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3415
3415
|
}
|
|
3416
3416
|
function Vn(e, t, n) {
|
|
3417
3417
|
return {
|
|
3418
|
-
...
|
|
3418
|
+
...Zt(e, n),
|
|
3419
3419
|
...tt(We(t), n)
|
|
3420
3420
|
};
|
|
3421
3421
|
}
|
|
@@ -3465,14 +3465,14 @@ function fa(e, t, n) {
|
|
|
3465
3465
|
const A = b.fromCondition(i(k, b));
|
|
3466
3466
|
return b.summarizeForm(A, { timeZone: I });
|
|
3467
3467
|
}
|
|
3468
|
-
function
|
|
3468
|
+
function C(c, b) {
|
|
3469
3469
|
if (c.index === null) return;
|
|
3470
|
-
const I = [...e.value], p = { ...I[c.index] }, k =
|
|
3470
|
+
const I = [...e.value], p = { ...I[c.index] }, k = Zt(p, b), A = Object.keys(k).length === 0, X = l(c.subject), x = X ? u(X) : void 0, d = x ? Mt(x, p) : !1;
|
|
3471
3471
|
if (A && d)
|
|
3472
3472
|
I.splice(c.index, 1);
|
|
3473
3473
|
else if (x) {
|
|
3474
|
-
const
|
|
3475
|
-
Object.keys(
|
|
3474
|
+
const N = Vn(p, x, b);
|
|
3475
|
+
Object.keys(N).length === 0 ? delete p.conditions : p.conditions = JSON.stringify(N), I[c.index] = p;
|
|
3476
3476
|
} else
|
|
3477
3477
|
A ? delete p.conditions : p.conditions = JSON.stringify(k), I[c.index] = p;
|
|
3478
3478
|
n(I);
|
|
@@ -3481,7 +3481,7 @@ function fa(e, t, n) {
|
|
|
3481
3481
|
const p = gt(c.subject, b);
|
|
3482
3482
|
if (I === "inherit") {
|
|
3483
3483
|
const A = new Set(r.value);
|
|
3484
|
-
A.delete(p), r.value = A,
|
|
3484
|
+
A.delete(p), r.value = A, C(c, b);
|
|
3485
3485
|
return;
|
|
3486
3486
|
}
|
|
3487
3487
|
const k = new Set(r.value);
|
|
@@ -3495,7 +3495,7 @@ function fa(e, t, n) {
|
|
|
3495
3495
|
const I = u(b);
|
|
3496
3496
|
return (I == null ? void 0 : I.actions) ?? [];
|
|
3497
3497
|
}
|
|
3498
|
-
function
|
|
3498
|
+
function S(c, b) {
|
|
3499
3499
|
return e.value.filter((I) => {
|
|
3500
3500
|
if (I.inverted) return !1;
|
|
3501
3501
|
const p = I.subject;
|
|
@@ -3519,11 +3519,11 @@ function fa(e, t, n) {
|
|
|
3519
3519
|
const X = A.subject;
|
|
3520
3520
|
if (X === p || l(X) !== p)
|
|
3521
3521
|
return k.push(A), k;
|
|
3522
|
-
if (Mt(b, A) && Object.keys(
|
|
3522
|
+
if (Mt(b, A) && Object.keys(Zt(A, I)).length === 0)
|
|
3523
3523
|
return k;
|
|
3524
3524
|
const d = Vn(A, b, I);
|
|
3525
3525
|
if (Object.keys(d).length === 0) {
|
|
3526
|
-
const { conditions:
|
|
3526
|
+
const { conditions: N, ...U } = A;
|
|
3527
3527
|
k.push(U);
|
|
3528
3528
|
} else
|
|
3529
3529
|
k.push({ ...A, conditions: JSON.stringify(d) });
|
|
@@ -3537,18 +3537,18 @@ function fa(e, t, n) {
|
|
|
3537
3537
|
const X = b.toCondition(I), x = Object.keys(X).length > 0;
|
|
3538
3538
|
if (A === null && !x && !p.forceCreateRule) return;
|
|
3539
3539
|
if (A === null) {
|
|
3540
|
-
const j = k.findIndex((
|
|
3540
|
+
const j = k.findIndex((Y) => !Y.inverted && Y.subject === c.subject);
|
|
3541
3541
|
if (j !== -1)
|
|
3542
3542
|
A = j;
|
|
3543
3543
|
else {
|
|
3544
|
-
const
|
|
3545
|
-
if (!
|
|
3544
|
+
const Y = t.value.find((Q) => Q.subject === c.subject);
|
|
3545
|
+
if (!Y) return;
|
|
3546
3546
|
const {
|
|
3547
3547
|
category: W,
|
|
3548
|
-
showByFeatureFlag:
|
|
3548
|
+
showByFeatureFlag: Z,
|
|
3549
3549
|
isCategoryCover: B,
|
|
3550
3550
|
...ne
|
|
3551
|
-
} =
|
|
3551
|
+
} = Y;
|
|
3552
3552
|
k.push({
|
|
3553
3553
|
...ne,
|
|
3554
3554
|
actions: c.actions.length > 0 ? c.actions : ne.actions
|
|
@@ -3559,40 +3559,40 @@ function fa(e, t, n) {
|
|
|
3559
3559
|
d.actions = [
|
|
3560
3560
|
.../* @__PURE__ */ new Set([...d.actions, ...c.actions])
|
|
3561
3561
|
];
|
|
3562
|
-
const
|
|
3562
|
+
const N = We(d), U = Dt(N, [{ builder: b, formValue: I }]);
|
|
3563
3563
|
if (Object.keys(U).length === 0 ? delete d.conditions : d.conditions = JSON.stringify(U), k[A] = d, sn(c.subject, t.value)) {
|
|
3564
|
-
const j =
|
|
3565
|
-
var
|
|
3566
|
-
D(c.subject, b), n(f(k, d, b)), (
|
|
3564
|
+
const j = S(c.subject, b), Y = () => {
|
|
3565
|
+
var Z;
|
|
3566
|
+
D(c.subject, b), n(f(k, d, b)), (Z = p.afterCommit) == null || Z.call(p);
|
|
3567
3567
|
}, W = () => {
|
|
3568
|
-
var
|
|
3569
|
-
n(k), (
|
|
3568
|
+
var Z;
|
|
3569
|
+
n(k), (Z = p.afterCommit) == null || Z.call(p);
|
|
3570
3570
|
};
|
|
3571
3571
|
if (j.length === 0) {
|
|
3572
|
-
|
|
3572
|
+
Y();
|
|
3573
3573
|
return;
|
|
3574
3574
|
}
|
|
3575
|
-
p.onOverridesConflict ? p.onOverridesConflict({ override:
|
|
3575
|
+
p.onOverridesConflict ? p.onOverridesConflict({ override: Y, keep: W }) : W();
|
|
3576
3576
|
return;
|
|
3577
3577
|
}
|
|
3578
3578
|
n(k), (V = p.afterCommit) == null || V.call(p);
|
|
3579
3579
|
}
|
|
3580
|
-
function
|
|
3580
|
+
function L(c, b, I = {}) {
|
|
3581
3581
|
if (b.length === 0) return;
|
|
3582
3582
|
const p = [...e.value];
|
|
3583
3583
|
let k = p.findIndex((j) => !j.inverted && j.subject === c.subject), A = k === -1 ? void 0 : { ...p[k] }, X = We(A ?? {}) ?? {};
|
|
3584
3584
|
for (const j of b) {
|
|
3585
|
-
const
|
|
3586
|
-
X = Dt(X, [{ builder: j.builder, formValue:
|
|
3585
|
+
const Y = j.mode === "inherit" ? j.builder.fromCondition(void 0) : j.form;
|
|
3586
|
+
X = Dt(X, [{ builder: j.builder, formValue: Y }]);
|
|
3587
3587
|
}
|
|
3588
3588
|
const x = b.some((j) => j.mode === "custom");
|
|
3589
3589
|
if (!A && (Object.keys(X).length > 0 || x)) {
|
|
3590
3590
|
const j = t.value.find((ne) => ne.subject === c.subject);
|
|
3591
3591
|
if (!j) return;
|
|
3592
3592
|
const {
|
|
3593
|
-
category:
|
|
3593
|
+
category: Y,
|
|
3594
3594
|
showByFeatureFlag: W,
|
|
3595
|
-
isCategoryCover:
|
|
3595
|
+
isCategoryCover: Z,
|
|
3596
3596
|
...B
|
|
3597
3597
|
} = j;
|
|
3598
3598
|
A = {
|
|
@@ -3601,47 +3601,47 @@ function fa(e, t, n) {
|
|
|
3601
3601
|
}, p.push(A), k = p.length - 1;
|
|
3602
3602
|
}
|
|
3603
3603
|
if (A) {
|
|
3604
|
-
const j = l(c.subject),
|
|
3605
|
-
if (!x && Object.keys(X).length === 0 && !!
|
|
3604
|
+
const j = l(c.subject), Y = j ? u(j) : void 0;
|
|
3605
|
+
if (!x && Object.keys(X).length === 0 && !!Y && Mt(Y, A))
|
|
3606
3606
|
p.splice(k, 1), A = void 0;
|
|
3607
3607
|
else {
|
|
3608
3608
|
if (A.actions = [
|
|
3609
3609
|
.../* @__PURE__ */ new Set([...A.actions, ...c.actions])
|
|
3610
|
-
],
|
|
3611
|
-
for (const
|
|
3612
|
-
|
|
3610
|
+
], Y)
|
|
3611
|
+
for (const Z of b)
|
|
3612
|
+
Z.mode === "inherit" && (X = {
|
|
3613
3613
|
...X,
|
|
3614
|
-
...tt(We(
|
|
3614
|
+
...tt(We(Y), Z.builder)
|
|
3615
3615
|
});
|
|
3616
3616
|
Object.keys(X).length === 0 ? delete A.conditions : A.conditions = JSON.stringify(X), p[k] = A;
|
|
3617
3617
|
}
|
|
3618
3618
|
}
|
|
3619
3619
|
const d = () => {
|
|
3620
3620
|
const j = new Set(r.value);
|
|
3621
|
-
for (const
|
|
3622
|
-
const W = gt(c.subject,
|
|
3623
|
-
|
|
3621
|
+
for (const Y of b) {
|
|
3622
|
+
const W = gt(c.subject, Y.builder);
|
|
3623
|
+
Y.mode === "custom" ? j.add(W) : j.delete(W);
|
|
3624
3624
|
}
|
|
3625
3625
|
r.value = j;
|
|
3626
|
-
},
|
|
3627
|
-
var
|
|
3628
|
-
d(), n(j), (
|
|
3626
|
+
}, N = (j) => {
|
|
3627
|
+
var Y;
|
|
3628
|
+
d(), n(j), (Y = I.afterCommit) == null || Y.call(I);
|
|
3629
3629
|
};
|
|
3630
3630
|
if (!sn(c.subject, t.value) || !A) {
|
|
3631
|
-
|
|
3631
|
+
N(p);
|
|
3632
3632
|
return;
|
|
3633
3633
|
}
|
|
3634
|
-
const U = b.map((j) => j.builder).filter((j) =>
|
|
3634
|
+
const U = b.map((j) => j.builder).filter((j) => S(c.subject, j).length > 0), V = () => {
|
|
3635
3635
|
let j = p;
|
|
3636
|
-
for (const
|
|
3637
|
-
D(c.subject,
|
|
3638
|
-
|
|
3636
|
+
for (const Y of b.map((W) => W.builder))
|
|
3637
|
+
D(c.subject, Y), j = f(j, A, Y);
|
|
3638
|
+
N(j);
|
|
3639
3639
|
};
|
|
3640
3640
|
if (U.length > 0 && I.onOverridesConflict) {
|
|
3641
|
-
I.onOverridesConflict({ override: V, keep: () =>
|
|
3641
|
+
I.onOverridesConflict({ override: V, keep: () => N(p) });
|
|
3642
3642
|
return;
|
|
3643
3643
|
}
|
|
3644
|
-
U.length > 0 ?
|
|
3644
|
+
U.length > 0 ? N(p) : V();
|
|
3645
3645
|
}
|
|
3646
3646
|
return {
|
|
3647
3647
|
getCoverSubject: l,
|
|
@@ -3652,10 +3652,10 @@ function fa(e, t, n) {
|
|
|
3652
3652
|
inheritedSummary: T,
|
|
3653
3653
|
getEffectiveActions: w,
|
|
3654
3654
|
updateBuilderCondition: h,
|
|
3655
|
-
applyConditionDrafts:
|
|
3655
|
+
applyConditionDrafts: L
|
|
3656
3656
|
};
|
|
3657
3657
|
}
|
|
3658
|
-
const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, va = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ha = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ba = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ga = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Ia = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ya = "condition-form-select-menu", wa = /* @__PURE__ */
|
|
3658
|
+
const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, va = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ha = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ba = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ga = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Ia = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ya = "condition-form-select-menu", wa = /* @__PURE__ */ Se({
|
|
3659
3659
|
__name: "PortalPermissionEditor",
|
|
3660
3660
|
props: /* @__PURE__ */ tn({
|
|
3661
3661
|
disable: {
|
|
@@ -3675,17 +3675,17 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3675
3675
|
const n = vr(e, "modelValue"), r = e, l = t, { t: a } = He(), m = hr(), u = br(), { breakpoints: i } = gr(), g = z(() => i.value.xs || i.value.sm), {
|
|
3676
3676
|
fetchCustomReportPermissions: y,
|
|
3677
3677
|
customReportPermissions: T
|
|
3678
|
-
} = Ir(),
|
|
3679
|
-
...
|
|
3678
|
+
} = Ir(), C = z(() => [
|
|
3679
|
+
...Yn,
|
|
3680
3680
|
...T.value
|
|
3681
3681
|
]), F = z(() => {
|
|
3682
3682
|
const O = m.currentBusiness.value, s = m.currentCountry.value, o = s instanceof Object ? s.code : s;
|
|
3683
3683
|
return ma(O, o);
|
|
3684
3684
|
});
|
|
3685
3685
|
function w(O) {
|
|
3686
|
-
return
|
|
3686
|
+
return C.value.find((s) => s.subject === O);
|
|
3687
3687
|
}
|
|
3688
|
-
function
|
|
3688
|
+
function S(O, s) {
|
|
3689
3689
|
return rn(O).filter(
|
|
3690
3690
|
(o) => {
|
|
3691
3691
|
var _;
|
|
@@ -3694,7 +3694,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3694
3694
|
);
|
|
3695
3695
|
}
|
|
3696
3696
|
const D = z(() => {
|
|
3697
|
-
const O =
|
|
3697
|
+
const O = C.value.filter((o) => !c.includes(o.subject)).map((o) => o.subject);
|
|
3698
3698
|
return yr(
|
|
3699
3699
|
r.inheritPermissions.map((o) => ({
|
|
3700
3700
|
...o,
|
|
@@ -3728,7 +3728,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3728
3728
|
"restaurantId",
|
|
3729
3729
|
X.value.map((s) => s._id)
|
|
3730
3730
|
);
|
|
3731
|
-
}),
|
|
3731
|
+
}), L = z(() => {
|
|
3732
3732
|
const O = r.inheritPermissions.map((s) => ({
|
|
3733
3733
|
...s,
|
|
3734
3734
|
permissions: s.permissions.filter((o) => o.subject === he.Subject.Business.role)
|
|
@@ -3773,13 +3773,13 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3773
3773
|
const { restaurants: X } = m, x = kr().roles, d = z(() => X.value.map((O) => ({
|
|
3774
3774
|
label: `${O.profile.code ? O.profile.code + "-" : ""}${O.profile.name}`,
|
|
3775
3775
|
value: O._id
|
|
3776
|
-
}))),
|
|
3776
|
+
}))), N = z(() => X.value.reduce((O, s) => (O[s._id] = x.value.filter((o) => o.restaurants.some((_) => _.id === s._id)).map((o) => o._id), O), {})), U = z(() => Er(n.value));
|
|
3777
3777
|
function V(O) {
|
|
3778
|
-
const s =
|
|
3778
|
+
const s = Y(n.value, O);
|
|
3779
3779
|
n.value = s;
|
|
3780
3780
|
}
|
|
3781
|
-
const j = z(() =>
|
|
3782
|
-
function
|
|
3781
|
+
const j = z(() => Cr(n.value));
|
|
3782
|
+
function Y(O, s) {
|
|
3783
3783
|
var _;
|
|
3784
3784
|
let o = It(
|
|
3785
3785
|
O.filter(
|
|
@@ -3801,9 +3801,9 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3801
3801
|
}
|
|
3802
3802
|
if (s) {
|
|
3803
3803
|
const R = [
|
|
3804
|
-
...new Set(s.map((P) =>
|
|
3804
|
+
...new Set(s.map((P) => N.value[P]).flatMap((P) => P))
|
|
3805
3805
|
], M = x.value.map((P) => P._id);
|
|
3806
|
-
R.length !== M.length && (o =
|
|
3806
|
+
R.length !== M.length && (o = Z(
|
|
3807
3807
|
o,
|
|
3808
3808
|
(_ = j.value || M) == null ? void 0 : _.filter((P) => R.includes(P))
|
|
3809
3809
|
));
|
|
@@ -3811,10 +3811,10 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3811
3811
|
return o;
|
|
3812
3812
|
}
|
|
3813
3813
|
function W(O) {
|
|
3814
|
-
const s =
|
|
3814
|
+
const s = Z(n.value, O);
|
|
3815
3815
|
n.value = s;
|
|
3816
3816
|
}
|
|
3817
|
-
function
|
|
3817
|
+
function Z(O, s) {
|
|
3818
3818
|
let o = It(
|
|
3819
3819
|
O.filter((_) => _.subject !== he.Subject.Business.role)
|
|
3820
3820
|
);
|
|
@@ -3834,9 +3834,9 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3834
3834
|
y()
|
|
3835
3835
|
]);
|
|
3836
3836
|
});
|
|
3837
|
-
const B = z(() =>
|
|
3837
|
+
const B = z(() => Gn(
|
|
3838
3838
|
n.value,
|
|
3839
|
-
|
|
3839
|
+
Zn
|
|
3840
3840
|
).filter((o) => {
|
|
3841
3841
|
const _ = o.source;
|
|
3842
3842
|
return (_ == null ? void 0 : _.type) !== "systemPermissionSet" ? !0 : o.actions.includes("manage");
|
|
@@ -3858,7 +3858,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3858
3858
|
);
|
|
3859
3859
|
}
|
|
3860
3860
|
const Q = z(() => new Set(
|
|
3861
|
-
|
|
3861
|
+
C.value.filter((O) => rn(O.subject).length > 0).map((O) => O.subject)
|
|
3862
3862
|
)), _e = z(() => {
|
|
3863
3863
|
const O = /* @__PURE__ */ new Map();
|
|
3864
3864
|
return B.value.map((s) => ({
|
|
@@ -3868,7 +3868,7 @@ 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, R =
|
|
3871
|
+
const _ = s.actions, R = S(s.subject, _);
|
|
3872
3872
|
if (R.length === 0) return;
|
|
3873
3873
|
let M;
|
|
3874
3874
|
try {
|
|
@@ -3888,13 +3888,13 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3888
3888
|
}))
|
|
3889
3889
|
});
|
|
3890
3890
|
}), O;
|
|
3891
|
-
}), ce = fa(n,
|
|
3891
|
+
}), ce = fa(n, C, (O) => {
|
|
3892
3892
|
n.value = O;
|
|
3893
|
-
}),
|
|
3893
|
+
}), se = Tr(n), fe = rt(null);
|
|
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), R =
|
|
3897
|
+
const _ = ce.getEffectiveActions(O), R = S(O, _);
|
|
3898
3898
|
if (R.length !== 0)
|
|
3899
3899
|
return {
|
|
3900
3900
|
index: null,
|
|
@@ -3908,21 +3908,21 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3908
3908
|
};
|
|
3909
3909
|
}
|
|
3910
3910
|
function De(O, s) {
|
|
3911
|
-
const o =
|
|
3911
|
+
const o = se.getDraft({ subject: O.subject, builderKey: s.builderKey });
|
|
3912
3912
|
if (o) return o.formValue;
|
|
3913
3913
|
const _ = O.sections.find((R) => R.builder.builderKey === s.builderKey);
|
|
3914
3914
|
return _ == null ? void 0 : _.formValue;
|
|
3915
3915
|
}
|
|
3916
3916
|
function K(O, s) {
|
|
3917
|
-
const o =
|
|
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
3920
|
function pe(O, s, o) {
|
|
3921
|
-
const _ =
|
|
3921
|
+
const _ = se.getDraft({
|
|
3922
3922
|
subject: O.subject,
|
|
3923
3923
|
builderKey: s.builderKey
|
|
3924
3924
|
});
|
|
3925
|
-
|
|
3925
|
+
se.setDraft(
|
|
3926
3926
|
{ subject: O.subject, builderKey: s.builderKey },
|
|
3927
3927
|
{
|
|
3928
3928
|
formValue: o,
|
|
@@ -3931,11 +3931,11 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3931
3931
|
);
|
|
3932
3932
|
}
|
|
3933
3933
|
function Je(O, s, o) {
|
|
3934
|
-
const _ =
|
|
3934
|
+
const _ = se.getDraft({
|
|
3935
3935
|
subject: O.subject,
|
|
3936
3936
|
builderKey: s.builderKey
|
|
3937
3937
|
}), R = O.sections.find((M) => M.builder.builderKey === s.builderKey);
|
|
3938
|
-
|
|
3938
|
+
se.setDraft(
|
|
3939
3939
|
{ subject: O.subject, builderKey: s.builderKey },
|
|
3940
3940
|
{
|
|
3941
3941
|
formValue: (_ == null ? void 0 : _.formValue) ?? (R == null ? void 0 : R.formValue),
|
|
@@ -3944,11 +3944,11 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3944
3944
|
);
|
|
3945
3945
|
}
|
|
3946
3946
|
function Ke(O) {
|
|
3947
|
-
return
|
|
3947
|
+
return se.hasDraftsForSubject(O);
|
|
3948
3948
|
}
|
|
3949
3949
|
function Ve(O, s) {
|
|
3950
3950
|
const o = O.sections.flatMap((_) => {
|
|
3951
|
-
const R =
|
|
3951
|
+
const R = se.getDraft({
|
|
3952
3952
|
subject: O.subject,
|
|
3953
3953
|
builderKey: _.builder.builderKey
|
|
3954
3954
|
});
|
|
@@ -3956,20 +3956,20 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3956
3956
|
});
|
|
3957
3957
|
ce.applyConditionDrafts(O, o, {
|
|
3958
3958
|
afterCommit: () => {
|
|
3959
|
-
|
|
3959
|
+
se.clearDraftsForSubject(O.subject), s();
|
|
3960
3960
|
},
|
|
3961
|
-
onOverridesConflict:
|
|
3961
|
+
onOverridesConflict: Ze(O).onOverridesConflict
|
|
3962
3962
|
});
|
|
3963
3963
|
}
|
|
3964
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
|
-
let
|
|
3968
|
-
function
|
|
3967
|
+
let Ne = !1;
|
|
3968
|
+
function Ze(O, s = {}) {
|
|
3969
3969
|
return {
|
|
3970
3970
|
...s,
|
|
3971
3971
|
onOverridesConflict: ({ override: o, keep: _ }) => {
|
|
3972
|
-
|
|
3972
|
+
Ne || (Ne = !0, u.open({
|
|
3973
3973
|
title: a("team.memberForm.permissions.conditionCover.confirmTitle"),
|
|
3974
3974
|
message: a("team.memberForm.permissions.conditionCover.confirmMessage", {
|
|
3975
3975
|
cover: O.label
|
|
@@ -3985,11 +3985,11 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3985
3985
|
close: !1
|
|
3986
3986
|
}
|
|
3987
3987
|
}).onPrimary(() => {
|
|
3988
|
-
o(),
|
|
3988
|
+
o(), Ne = !1, u.close();
|
|
3989
3989
|
}).onSecondary(() => {
|
|
3990
|
-
_(),
|
|
3990
|
+
_(), Ne = !1, u.close();
|
|
3991
3991
|
}).onClose(() => {
|
|
3992
|
-
|
|
3992
|
+
Ne = !1;
|
|
3993
3993
|
}));
|
|
3994
3994
|
}
|
|
3995
3995
|
};
|
|
@@ -4020,15 +4020,18 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4020
4020
|
name: `checkbox-${M}-icon`,
|
|
4021
4021
|
fn: me(({ option: P, isEffectiveSelected: v }) => [
|
|
4022
4022
|
v && q(M, P.label) ? (J(), ie(ke, { key: 0 }, [
|
|
4023
|
-
g.value ? (J(),
|
|
4023
|
+
g.value ? (J(), Ce(_, {
|
|
4024
4024
|
key: 0,
|
|
4025
4025
|
"model-value": fe.value === M,
|
|
4026
4026
|
header: H(a)("team.memberForm.permissions.conditionTitle", {
|
|
4027
4027
|
context: q(M, P.label).label
|
|
4028
4028
|
}),
|
|
4029
|
+
"dismiss-away": "",
|
|
4029
4030
|
"z-index": 100,
|
|
4030
4031
|
class: "h-5 flex items-center",
|
|
4031
|
-
"onUpdate:modelValue": (E) =>
|
|
4032
|
+
"onUpdate:modelValue": (E) => {
|
|
4033
|
+
fe.value = E ? M : null, E || H(se).clearDraftsForSubject(M);
|
|
4034
|
+
}
|
|
4032
4035
|
}, {
|
|
4033
4036
|
"bottom-sheet-button": me(() => [
|
|
4034
4037
|
ae("div", va, [
|
|
@@ -4060,13 +4063,15 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4060
4063
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4061
4064
|
]),
|
|
4062
4065
|
_: 2
|
|
4063
|
-
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (J(),
|
|
4066
|
+
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (J(), Ce(R, {
|
|
4064
4067
|
key: 1,
|
|
4065
4068
|
disabled: e.disable,
|
|
4066
4069
|
"z-index": 100,
|
|
4067
4070
|
"exclude-el-from-click-outside": [ya],
|
|
4068
4071
|
class: "h-5 flex items-center",
|
|
4069
|
-
|
|
4072
|
+
onPopoverChanged: (E) => {
|
|
4073
|
+
E || H(se).clearDraftsForSubject(M);
|
|
4074
|
+
}
|
|
4070
4075
|
}, {
|
|
4071
4076
|
"popover-button": me(() => [
|
|
4072
4077
|
ae("div", ha, [
|
|
@@ -4104,8 +4109,8 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4104
4109
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "title", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4105
4110
|
]),
|
|
4106
4111
|
_: 2
|
|
4107
|
-
}, 1032, ["disabled", "exclude-el-from-click-outside", "
|
|
4108
|
-
], 64)) : (J(),
|
|
4112
|
+
}, 1032, ["disabled", "exclude-el-from-click-outside", "onPopoverChanged"]))
|
|
4113
|
+
], 64)) : (J(), Ce(o, {
|
|
4109
4114
|
key: 1,
|
|
4110
4115
|
name: "settings",
|
|
4111
4116
|
size: "sm",
|
|
@@ -4152,7 +4157,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4152
4157
|
"restaurant-ids": U.value,
|
|
4153
4158
|
"onUpdate:modelValue": W
|
|
4154
4159
|
}, et({ _: 2 }, [
|
|
4155
|
-
Ee(
|
|
4160
|
+
Ee(L.value, (M) => ({
|
|
4156
4161
|
name: `checkbox-${M.id}-append`,
|
|
4157
4162
|
fn: me(() => [
|
|
4158
4163
|
ue(vt, { item: M }, null, 8, ["item"])
|