@feedmepos/mf-hrm-portal 2.4.2-dev → 2.4.2-dev.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-DpNF0wL7.js → ApprovalCodeList-b8usXKo8.js} +7 -7
- package/dist/{AuditLogList-D2bUFsuK.js → AuditLogList-DqbgzFAs.js} +5 -5
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BjEJErcL.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-WeFI9muF.js} +2 -2
- package/dist/{EmployeeList-CBYU0R2j.js → EmployeeList-NM0guUbU.js} +8 -8
- package/dist/{FormSection.vue_vue_type_script_setup_true_lang-DsPLbLwQ.js → FormSection.vue_vue_type_script_setup_true_lang-BCNKeDZY.js} +1 -1
- package/dist/{GrantUserList-ClliuQ8h.js → GrantUserList-B-p8Qghu.js} +8 -8
- package/dist/{Main-D9MQo2l1.js → Main-BrhCJsik.js} +10 -10
- package/dist/{Main-CBuOW87D.js → Main-D_EXStcl.js} +12 -12
- package/dist/{Main-DlPdGefL.js → Main-x6An4Vlq.js} +5 -5
- package/dist/{MyPosProfile-IAPSqlBP.js → MyPosProfile-CG1PZ5p4.js} +1 -1
- package/dist/{PermissionSetList-Dd0fkW0L.js → PermissionSetList-D4Vdbk10.js} +6 -6
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CjQCbJRu.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CFyGZpKr.js} +664 -664
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DJnIFlKq.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CTxqUf16.js} +2 -2
- package/dist/{RoleForm.vue_vue_type_script_setup_true_lang-hE2OZwfO.js → RoleForm.vue_vue_type_script_setup_true_lang-DUhqZaQv.js} +9 -9
- package/dist/{RoleList-zZHpt079.js → RoleList-DFcy90mE.js} +7 -7
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-yJwTtFyF.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DiWJzXvb.js} +1 -1
- package/dist/{ScheduleGeneralPage-_cqIJY8R.js → ScheduleGeneralPage-O7ohVH-K.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-C6M76KUA.js → ScheduleModal.vue_vue_type_script_setup_true_lang-DOkdX3vt.js} +4 -4
- package/dist/{SchedulePage-DHkWe1KO.js → SchedulePage-WT_Ttars.js} +9 -9
- package/dist/{SchedulePositionPage-5JUJwlJc.js → SchedulePositionPage-13qwxMn2.js} +3 -3
- package/dist/{SelectFilter-DWRvb1Yl.js → SelectFilter-DbE6YV-6.js} +1 -1
- package/dist/{TeamMemberList-C_4f5Djs.js → TeamMemberList-CWfXQcO3.js} +12 -12
- package/dist/{TimesheetList-B3Yx8cwt.js → TimesheetList-Bp2hRf7V.js} +8 -8
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_ffd7f807_lang-Co2GtU1N.js → TimesheetList.vue_vue_type_style_index_0_scoped_ffd7f807_lang-_tXql6vR.js} +3 -3
- package/dist/{app-BA3UHSk0.js → app-D-6Rxcbg.js} +25 -15
- package/dist/app.js +1 -1
- package/dist/{approval-code-BR4FD3sx.js → approval-code-Ba9JpPf4.js} +1 -1
- package/dist/{dayjs.min-JyaQ6PUU.js → dayjs.min-dCnie4oC.js} +17 -17
- package/dist/{employee-n31b7QEp.js → employee-B5qCkaCi.js} +5 -5
- package/dist/{grant-user-DKUZdzrY.js → grant-user-Dpla60s_.js} +1 -1
- package/dist/{index-CkC2sfPK.js → index-D8G0ElDc.js} +1 -1
- package/dist/{lodash-BJMVlo9i.js → lodash-CucBZWOa.js} +1 -1
- package/dist/{member-grant-B1V9g0Sb.js → member-grant-CZILo1nC.js} +2 -2
- package/dist/{restaurant-BbSg6yOm.js → restaurant-CD6RZ8XG.js} +1 -1
- package/dist/{role-iTqgtFqf.js → role-54DbS-Cy.js} +3 -3
- package/dist/{rule-BJhti6BZ.js → rule-DzTp1Kjh.js} +3 -3
- package/dist/src/views/team/locales/index.d.ts +4 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DiGaOhje.js → useAppStore-C_LStOtj.js} +1 -1
- package/dist/{useLoading-DOcoObCD.js → useLoading-CJ-DUrnR.js} +1 -1
- package/dist/{useReportPermissions-c9KGuXQq.js → useReportPermissions-C7TLMKuR.js} +3 -3
- package/dist/{useSsoProviders-CkhHtzRQ.js → useSsoProviders-DhmUc7LW.js} +1 -1
- package/package.json +2 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { getCurrentInstance as Bt, inject as fr, ref as st, shallowRef as _r, computed as
|
|
2
|
-
import { useI18n as
|
|
1
|
+
import { getCurrentInstance as Bt, inject as fr, ref as st, shallowRef as _r, computed as z, watch as Mt, onMounted as Wn, onUnmounted as pr, defineComponent as Ae, h as Gn, createVNode as ce, Text as vr, Fragment as we, resolveComponent as Fe, createBlock as Oe, openBlock as K, withCtx as de, createElementVNode as ue, createElementBlock as re, toDisplayString as ke, unref as Z, renderList as Ce, toRef as qt, normalizeStyle as rt, renderSlot as Le, createCommentVNode as Te, normalizeClass as Ne, createTextVNode as hr, useSlots as br, createSlots as tt, mergeModels as en, useModel as gr } from "vue";
|
|
2
|
+
import { useI18n as ze, useCoreStore as Ir } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialog as yr, useBreakpoints as Er } from "@feedmepos/ui-library";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { p as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { v as Mr, u as
|
|
8
|
-
import { c as Hn } from "./index-
|
|
5
|
+
import { p as Yn, N as Bn, Y as tn, V as Nr, a as Cr, j as Tr, Q as Or, A as Sr, D as kr, C as Lr } from "./rule-DzTp1Kjh.js";
|
|
6
|
+
import { _ as Zt, a as Rr, b as nn, u as Ar } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-WeFI9muF.js";
|
|
7
|
+
import { v as Mr, u as Zn, w as rn, x as sn, h as Dr, g as wr, b as Fr, C as Xn, S as Dt, A as nt, k as Ze, q as an } from "./app-D-6Rxcbg.js";
|
|
8
|
+
import { c as Hn } from "./index-D8G0ElDc.js";
|
|
9
9
|
import { r as Pr, s as Jn } from "./string-DZQ1uNjn.js";
|
|
10
|
-
import { W as jr } from "./member-grant-
|
|
11
|
-
import { u as Ur } from "./role-
|
|
10
|
+
import { W as jr } from "./member-grant-CZILo1nC.js";
|
|
11
|
+
import { u as Ur } from "./role-54DbS-Cy.js";
|
|
12
12
|
function St(e, t, n) {
|
|
13
13
|
const r = /* @__PURE__ */ new Map();
|
|
14
14
|
return e.forEach(
|
|
@@ -31,17 +31,17 @@ function St(e, t, n) {
|
|
|
31
31
|
* (c) 2024 kazuya kawaguchi
|
|
32
32
|
* Released under the MIT License.
|
|
33
33
|
*/
|
|
34
|
-
const on = typeof window < "u", Qe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
34
|
+
const on = typeof window < "u", Qe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Vr = (e, t, n) => xr({ l: e, k: t, s: n }), xr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ge = (e) => typeof e == "number" && isFinite(e), Wr = (e) => Xt(e) === "[object Date]", yt = (e) => Xt(e) === "[object RegExp]", Nt = (e) => q(e) && Object.keys(e).length === 0, Ie = Object.assign, Gr = Object.create, ae = (e = null) => Gr(e);
|
|
35
35
|
let ln;
|
|
36
|
-
const
|
|
36
|
+
const Ke = () => ln || (ln = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : ae());
|
|
37
37
|
function cn(e) {
|
|
38
38
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
39
39
|
}
|
|
40
|
-
const
|
|
41
|
-
function
|
|
42
|
-
return
|
|
40
|
+
const Yr = Object.prototype.hasOwnProperty;
|
|
41
|
+
function Re(e, t) {
|
|
42
|
+
return Yr.call(e, t);
|
|
43
43
|
}
|
|
44
|
-
const be = Array.isArray, me = (e) => typeof e == "function", W = (e) => typeof e == "string", pe = (e) => typeof e == "boolean", ee = (e) => e !== null && typeof e == "object", Br = (e) => ee(e) && me(e.then) && me(e.catch), $n = Object.prototype.toString, Xt = (e) => $n.call(e), q = (e) => Xt(e) === "[object Object]",
|
|
44
|
+
const be = Array.isArray, me = (e) => typeof e == "function", W = (e) => typeof e == "string", pe = (e) => typeof e == "boolean", ee = (e) => e !== null && typeof e == "object", Br = (e) => ee(e) && me(e.then) && me(e.catch), $n = Object.prototype.toString, Xt = (e) => $n.call(e), q = (e) => Xt(e) === "[object Object]", Zr = (e) => e == null ? "" : be(e) || q(e) && e.toString === $n ? JSON.stringify(e, null, 2) : String(e);
|
|
45
45
|
function Ht(e, t = "") {
|
|
46
46
|
return e.reduce((n, r, s) => s === 0 ? n + r : n + t + r, "");
|
|
47
47
|
}
|
|
@@ -63,7 +63,7 @@ function It(e, t) {
|
|
|
63
63
|
function Hr(e, t, n) {
|
|
64
64
|
return { line: e, column: t, offset: n };
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function wt(e, t, n) {
|
|
67
67
|
return { start: e, end: t };
|
|
68
68
|
}
|
|
69
69
|
const ne = {
|
|
@@ -91,16 +91,16 @@ function Ct(e, t, n = {}) {
|
|
|
91
91
|
function $r(e) {
|
|
92
92
|
throw e;
|
|
93
93
|
}
|
|
94
|
-
const
|
|
95
|
-
`,
|
|
94
|
+
const Ve = " ", Kr = "\r", Ee = `
|
|
95
|
+
`, zr = "\u2028", Qr = "\u2029";
|
|
96
96
|
function qr(e) {
|
|
97
97
|
const t = e;
|
|
98
98
|
let n = 0, r = 1, s = 1, a = 0;
|
|
99
|
-
const m = (_) => t[_] ===
|
|
99
|
+
const m = (_) => t[_] === Kr && t[_ + 1] === Ee, d = (_) => t[_] === Ee, l = (_) => t[_] === Qr, g = (_) => t[_] === zr, N = (_) => m(_) || d(_) || l(_) || g(_), C = () => n, T = () => r, j = () => s, w = () => a, k = (_) => m(_) || l(_) || g(_) ? Ee : t[_], P = () => k(n), f = () => k(n + a);
|
|
100
100
|
function b() {
|
|
101
101
|
return a = 0, N(n) && (r++, s = 0), m(n) && n++, n++, s++, t[n];
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function R() {
|
|
104
104
|
return m(n + a) && a++, a++, t[n + a];
|
|
105
105
|
}
|
|
106
106
|
function u() {
|
|
@@ -119,12 +119,12 @@ function qr(e) {
|
|
|
119
119
|
index: C,
|
|
120
120
|
line: T,
|
|
121
121
|
column: j,
|
|
122
|
-
peekOffset:
|
|
123
|
-
charAt:
|
|
122
|
+
peekOffset: w,
|
|
123
|
+
charAt: k,
|
|
124
124
|
currentChar: P,
|
|
125
125
|
currentPeek: f,
|
|
126
126
|
next: b,
|
|
127
|
-
peek:
|
|
127
|
+
peek: R,
|
|
128
128
|
reset: u,
|
|
129
129
|
resetPeek: I,
|
|
130
130
|
skipToPeek: E
|
|
@@ -148,7 +148,7 @@ function ns(e, t = {}) {
|
|
|
148
148
|
function C(o, i, c, ...h) {
|
|
149
149
|
const S = g();
|
|
150
150
|
if (i.column += c, i.offset += c, N) {
|
|
151
|
-
const M = n ?
|
|
151
|
+
const M = n ? wt(S.startLoc, i) : null, p = Ct(o, M, {
|
|
152
152
|
domain: ts,
|
|
153
153
|
args: h
|
|
154
154
|
});
|
|
@@ -158,24 +158,24 @@ function ns(e, t = {}) {
|
|
|
158
158
|
function T(o, i, c) {
|
|
159
159
|
o.endLoc = a(), o.currentType = i;
|
|
160
160
|
const h = { type: i };
|
|
161
|
-
return n && (h.loc =
|
|
161
|
+
return n && (h.loc = wt(o.startLoc, o.endLoc)), c != null && (h.value = c), h;
|
|
162
162
|
}
|
|
163
163
|
const j = (o) => T(
|
|
164
164
|
o,
|
|
165
165
|
13
|
|
166
166
|
/* TokenTypes.EOF */
|
|
167
167
|
);
|
|
168
|
-
function
|
|
168
|
+
function w(o, i) {
|
|
169
169
|
return o.currentChar() === i ? (o.next(), i) : (C(ne.EXPECTED_TOKEN, a(), 0, i), "");
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function k(o) {
|
|
172
172
|
let i = "";
|
|
173
|
-
for (; o.currentPeek() ===
|
|
173
|
+
for (; o.currentPeek() === Ve || o.currentPeek() === Ee; )
|
|
174
174
|
i += o.currentPeek(), o.peek();
|
|
175
175
|
return i;
|
|
176
176
|
}
|
|
177
177
|
function P(o) {
|
|
178
|
-
const i =
|
|
178
|
+
const i = k(o);
|
|
179
179
|
return o.skipToPeek(), i;
|
|
180
180
|
}
|
|
181
181
|
function f(o) {
|
|
@@ -192,11 +192,11 @@ function ns(e, t = {}) {
|
|
|
192
192
|
const i = o.charCodeAt(0);
|
|
193
193
|
return i >= 48 && i <= 57;
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function R(o, i) {
|
|
196
196
|
const { currentType: c } = i;
|
|
197
197
|
if (c !== 2)
|
|
198
198
|
return !1;
|
|
199
|
-
|
|
199
|
+
k(o);
|
|
200
200
|
const h = f(o.currentPeek());
|
|
201
201
|
return o.resetPeek(), h;
|
|
202
202
|
}
|
|
@@ -204,7 +204,7 @@ function ns(e, t = {}) {
|
|
|
204
204
|
const { currentType: c } = i;
|
|
205
205
|
if (c !== 2)
|
|
206
206
|
return !1;
|
|
207
|
-
|
|
207
|
+
k(o);
|
|
208
208
|
const h = o.currentPeek() === "-" ? o.peek() : o.currentPeek(), S = b(h);
|
|
209
209
|
return o.resetPeek(), S;
|
|
210
210
|
}
|
|
@@ -212,7 +212,7 @@ function ns(e, t = {}) {
|
|
|
212
212
|
const { currentType: c } = i;
|
|
213
213
|
if (c !== 2)
|
|
214
214
|
return !1;
|
|
215
|
-
|
|
215
|
+
k(o);
|
|
216
216
|
const h = o.currentPeek() === un;
|
|
217
217
|
return o.resetPeek(), h;
|
|
218
218
|
}
|
|
@@ -220,7 +220,7 @@ function ns(e, t = {}) {
|
|
|
220
220
|
const { currentType: c } = i;
|
|
221
221
|
if (c !== 7)
|
|
222
222
|
return !1;
|
|
223
|
-
|
|
223
|
+
k(o);
|
|
224
224
|
const h = o.currentPeek() === ".";
|
|
225
225
|
return o.resetPeek(), h;
|
|
226
226
|
}
|
|
@@ -228,37 +228,37 @@ function ns(e, t = {}) {
|
|
|
228
228
|
const { currentType: c } = i;
|
|
229
229
|
if (c !== 8)
|
|
230
230
|
return !1;
|
|
231
|
-
|
|
231
|
+
k(o);
|
|
232
232
|
const h = f(o.currentPeek());
|
|
233
233
|
return o.resetPeek(), h;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function A(o, i) {
|
|
236
236
|
const { currentType: c } = i;
|
|
237
237
|
if (!(c === 7 || c === 11))
|
|
238
238
|
return !1;
|
|
239
|
-
|
|
239
|
+
k(o);
|
|
240
240
|
const h = o.currentPeek() === ":";
|
|
241
241
|
return o.resetPeek(), h;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function L(o, i) {
|
|
244
244
|
const { currentType: c } = i;
|
|
245
245
|
if (c !== 9)
|
|
246
246
|
return !1;
|
|
247
247
|
const h = () => {
|
|
248
248
|
const M = o.currentPeek();
|
|
249
|
-
return M === "{" ? f(o.peek()) : M === "@" || M === "|" || M === ":" || M === "." || M ===
|
|
249
|
+
return M === "{" ? f(o.peek()) : M === "@" || M === "|" || M === ":" || M === "." || M === Ve || !M ? !1 : M === Ee ? (o.peek(), h()) : V(o, !1);
|
|
250
250
|
}, S = h();
|
|
251
251
|
return o.resetPeek(), S;
|
|
252
252
|
}
|
|
253
253
|
function $(o) {
|
|
254
|
-
|
|
254
|
+
k(o);
|
|
255
255
|
const i = o.currentPeek() === "|";
|
|
256
256
|
return o.resetPeek(), i;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function V(o, i = !0) {
|
|
259
259
|
const c = (S = !1, M = "") => {
|
|
260
260
|
const p = o.currentPeek();
|
|
261
|
-
return p === "{" || p === "@" || !p ? S : p === "|" ? !(M ===
|
|
261
|
+
return p === "{" || p === "@" || !p ? S : p === "|" ? !(M === Ve || M === Ee) : p === Ve ? (o.peek(), c(!0, Ve)) : p === Ee ? (o.peek(), c(!0, Ee)) : !0;
|
|
262
262
|
}, h = c();
|
|
263
263
|
return i && o.resetPeek(), h;
|
|
264
264
|
}
|
|
@@ -274,10 +274,10 @@ function ns(e, t = {}) {
|
|
|
274
274
|
i === 95 || // _
|
|
275
275
|
i === 36;
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function D(o) {
|
|
278
278
|
return F(o, y);
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function x(o) {
|
|
281
281
|
const i = o.charCodeAt(0);
|
|
282
282
|
return i >= 97 && i <= 122 || // a-z
|
|
283
283
|
i >= 65 && i <= 90 || // A-Z
|
|
@@ -287,7 +287,7 @@ function ns(e, t = {}) {
|
|
|
287
287
|
i === 45;
|
|
288
288
|
}
|
|
289
289
|
function O(o) {
|
|
290
|
-
return F(o,
|
|
290
|
+
return F(o, x);
|
|
291
291
|
}
|
|
292
292
|
function G(o) {
|
|
293
293
|
const i = o.charCodeAt(0);
|
|
@@ -317,8 +317,8 @@ function ns(e, t = {}) {
|
|
|
317
317
|
const c = o.currentChar();
|
|
318
318
|
if (c === "{" || c === "}" || c === "@" || c === "|" || !c)
|
|
319
319
|
break;
|
|
320
|
-
if (c ===
|
|
321
|
-
if (
|
|
320
|
+
if (c === Ve || c === Ee)
|
|
321
|
+
if (V(o))
|
|
322
322
|
i += c, o.next();
|
|
323
323
|
else {
|
|
324
324
|
if ($(o))
|
|
@@ -346,12 +346,12 @@ function ns(e, t = {}) {
|
|
|
346
346
|
return o !== un && o !== Ee;
|
|
347
347
|
}
|
|
348
348
|
function ve(o) {
|
|
349
|
-
P(o),
|
|
349
|
+
P(o), w(o, "'");
|
|
350
350
|
let i = "", c = "";
|
|
351
351
|
for (; i = F(o, ye); )
|
|
352
352
|
i === "\\" ? c += oe(o) : c += i;
|
|
353
353
|
const h = o.currentChar();
|
|
354
|
-
return h === Ee || h === Be ? (C(ne.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), h === Ee && (o.next(),
|
|
354
|
+
return h === Ee || h === Be ? (C(ne.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), h === Ee && (o.next(), w(o, "'")), c) : (w(o, "'"), c);
|
|
355
355
|
}
|
|
356
356
|
function oe(o) {
|
|
357
357
|
const i = o.currentChar();
|
|
@@ -368,7 +368,7 @@ function ns(e, t = {}) {
|
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
function ie(o, i, c) {
|
|
371
|
-
|
|
371
|
+
w(o, i);
|
|
372
372
|
let h = "";
|
|
373
373
|
for (let S = 0; S < c; S++) {
|
|
374
374
|
const M = J(o);
|
|
@@ -381,7 +381,7 @@ function ns(e, t = {}) {
|
|
|
381
381
|
return `\\${i}${h}`;
|
|
382
382
|
}
|
|
383
383
|
function Pe(o) {
|
|
384
|
-
return o !== "{" && o !== "}" && o !==
|
|
384
|
+
return o !== "{" && o !== "}" && o !== Ve && o !== Ee;
|
|
385
385
|
}
|
|
386
386
|
function B(o) {
|
|
387
387
|
P(o);
|
|
@@ -392,20 +392,20 @@ function ns(e, t = {}) {
|
|
|
392
392
|
}
|
|
393
393
|
function _e(o) {
|
|
394
394
|
let i = "", c = "";
|
|
395
|
-
for (; i =
|
|
395
|
+
for (; i = D(o); )
|
|
396
396
|
c += i;
|
|
397
397
|
return c;
|
|
398
398
|
}
|
|
399
399
|
function $e(o) {
|
|
400
400
|
const i = (c) => {
|
|
401
401
|
const h = o.currentChar();
|
|
402
|
-
return h === "{" || h === "@" || h === "|" || h === "(" || h === ")" || !h || h ===
|
|
402
|
+
return h === "{" || h === "@" || h === "|" || h === "(" || h === ")" || !h || h === Ve ? c : (c += h, o.next(), i(c));
|
|
403
403
|
};
|
|
404
404
|
return i("");
|
|
405
405
|
}
|
|
406
406
|
function Ge(o) {
|
|
407
407
|
P(o);
|
|
408
|
-
const i =
|
|
408
|
+
const i = w(
|
|
409
409
|
o,
|
|
410
410
|
"|"
|
|
411
411
|
/* TokenChars.Pipe */
|
|
@@ -436,8 +436,8 @@ function ns(e, t = {}) {
|
|
|
436
436
|
if ($(o))
|
|
437
437
|
return i.braceNest > 0 && C(ne.UNTERMINATED_CLOSING_BRACE, a(), 0), c = T(i, 1, Ge(o)), i.braceNest = 0, i.inLinked = !1, c;
|
|
438
438
|
if (i.braceNest > 0 && (i.currentType === 4 || i.currentType === 5 || i.currentType === 6))
|
|
439
|
-
return C(ne.UNTERMINATED_CLOSING_BRACE, a(), 0), i.braceNest = 0,
|
|
440
|
-
if (S =
|
|
439
|
+
return C(ne.UNTERMINATED_CLOSING_BRACE, a(), 0), i.braceNest = 0, Ye(o, i);
|
|
440
|
+
if (S = R(o, i))
|
|
441
441
|
return c = T(i, 4, Q(o)), P(o), c;
|
|
442
442
|
if (M = u(o, i))
|
|
443
443
|
return c = T(i, 5, fe(o)), P(o), c;
|
|
@@ -454,7 +454,7 @@ function ns(e, t = {}) {
|
|
|
454
454
|
const { currentType: c } = i;
|
|
455
455
|
let h = null;
|
|
456
456
|
const S = o.currentChar();
|
|
457
|
-
switch ((c === 7 || c === 8 || c === 11 || c === 9) && (S === Ee || S ===
|
|
457
|
+
switch ((c === 7 || c === 8 || c === 11 || c === 9) && (S === Ee || S === Ve) && C(ne.INVALID_LINKED_FORMAT, a(), 0), S) {
|
|
458
458
|
case "@":
|
|
459
459
|
return o.next(), h = T(
|
|
460
460
|
i,
|
|
@@ -477,10 +477,10 @@ function ns(e, t = {}) {
|
|
|
477
477
|
/* TokenChars.LinkedDelimiter */
|
|
478
478
|
);
|
|
479
479
|
default:
|
|
480
|
-
return $(o) ? (h = T(i, 1, Ge(o)), i.braceNest = 0, i.inLinked = !1, h) : E(o, i) ||
|
|
480
|
+
return $(o) ? (h = T(i, 1, Ge(o)), i.braceNest = 0, i.inLinked = !1, h) : E(o, i) || A(o, i) ? (P(o), Ue(o, i)) : _(o, i) ? (P(o), T(i, 11, _e(o))) : L(o, i) ? (P(o), S === "{" ? je(o, i) || h : T(i, 10, $e(o))) : (c === 7 && C(ne.INVALID_LINKED_FORMAT, a(), 0), i.braceNest = 0, i.inLinked = !1, Ye(o, i));
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function Ye(o, i) {
|
|
484
484
|
let c = {
|
|
485
485
|
type: 13
|
|
486
486
|
/* TokenTypes.EOF */
|
|
@@ -504,7 +504,7 @@ function ns(e, t = {}) {
|
|
|
504
504
|
default: {
|
|
505
505
|
if ($(o))
|
|
506
506
|
return c = T(i, 1, Ge(o)), i.braceNest = 0, i.inLinked = !1, c;
|
|
507
|
-
if (
|
|
507
|
+
if (V(o))
|
|
508
508
|
return T(i, 0, se(o));
|
|
509
509
|
break;
|
|
510
510
|
}
|
|
@@ -517,7 +517,7 @@ function ns(e, t = {}) {
|
|
|
517
517
|
l,
|
|
518
518
|
13
|
|
519
519
|
/* TokenTypes.EOF */
|
|
520
|
-
) :
|
|
520
|
+
) : Ye(r, l);
|
|
521
521
|
}
|
|
522
522
|
return {
|
|
523
523
|
nextToken: qe,
|
|
@@ -541,103 +541,103 @@ function as(e, t, n) {
|
|
|
541
541
|
}
|
|
542
542
|
function os(e = {}) {
|
|
543
543
|
const t = e.location !== !1, { onError: n } = e;
|
|
544
|
-
function r(f, b,
|
|
544
|
+
function r(f, b, R, u, ...I) {
|
|
545
545
|
const E = f.currentPosition();
|
|
546
546
|
if (E.offset += u, E.column += u, n) {
|
|
547
|
-
const _ = t ?
|
|
547
|
+
const _ = t ? wt(R, E) : null, A = Ct(b, _, {
|
|
548
548
|
domain: rs,
|
|
549
549
|
args: I
|
|
550
550
|
});
|
|
551
|
-
n(
|
|
551
|
+
n(A);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
function s(f, b,
|
|
554
|
+
function s(f, b, R) {
|
|
555
555
|
const u = { type: f };
|
|
556
|
-
return t && (u.start = b, u.end = b, u.loc = { start:
|
|
556
|
+
return t && (u.start = b, u.end = b, u.loc = { start: R, end: R }), u;
|
|
557
557
|
}
|
|
558
|
-
function a(f, b,
|
|
559
|
-
t && (f.end = b, f.loc && (f.loc.end =
|
|
558
|
+
function a(f, b, R, u) {
|
|
559
|
+
t && (f.end = b, f.loc && (f.loc.end = R));
|
|
560
560
|
}
|
|
561
561
|
function m(f, b) {
|
|
562
|
-
const
|
|
562
|
+
const R = f.context(), u = s(3, R.offset, R.startLoc);
|
|
563
563
|
return u.value = b, a(u, f.currentOffset(), f.currentPosition()), u;
|
|
564
564
|
}
|
|
565
565
|
function d(f, b) {
|
|
566
|
-
const
|
|
566
|
+
const R = f.context(), { lastOffset: u, lastStartLoc: I } = R, E = s(5, u, I);
|
|
567
567
|
return E.index = parseInt(b, 10), f.nextToken(), a(E, f.currentOffset(), f.currentPosition()), E;
|
|
568
568
|
}
|
|
569
569
|
function l(f, b) {
|
|
570
|
-
const
|
|
570
|
+
const R = f.context(), { lastOffset: u, lastStartLoc: I } = R, E = s(4, u, I);
|
|
571
571
|
return E.key = b, f.nextToken(), a(E, f.currentOffset(), f.currentPosition()), E;
|
|
572
572
|
}
|
|
573
573
|
function g(f, b) {
|
|
574
|
-
const
|
|
574
|
+
const R = f.context(), { lastOffset: u, lastStartLoc: I } = R, E = s(9, u, I);
|
|
575
575
|
return E.value = b.replace(ss, as), f.nextToken(), a(E, f.currentOffset(), f.currentPosition()), E;
|
|
576
576
|
}
|
|
577
577
|
function N(f) {
|
|
578
|
-
const b = f.nextToken(),
|
|
579
|
-
return b.type !== 11 ? (r(f, ne.UNEXPECTED_EMPTY_LINKED_MODIFIER,
|
|
578
|
+
const b = f.nextToken(), R = f.context(), { lastOffset: u, lastStartLoc: I } = R, E = s(8, u, I);
|
|
579
|
+
return b.type !== 11 ? (r(f, ne.UNEXPECTED_EMPTY_LINKED_MODIFIER, R.lastStartLoc, 0), E.value = "", a(E, u, I), {
|
|
580
580
|
nextConsumeToken: b,
|
|
581
581
|
node: E
|
|
582
|
-
}) : (b.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
582
|
+
}) : (b.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, R.lastStartLoc, 0, De(b)), E.value = b.value || "", a(E, f.currentOffset(), f.currentPosition()), {
|
|
583
583
|
node: E
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
586
|
function C(f, b) {
|
|
587
|
-
const
|
|
587
|
+
const R = f.context(), u = s(7, R.offset, R.startLoc);
|
|
588
588
|
return u.value = b, a(u, f.currentOffset(), f.currentPosition()), u;
|
|
589
589
|
}
|
|
590
590
|
function T(f) {
|
|
591
|
-
const b = f.context(),
|
|
591
|
+
const b = f.context(), R = s(6, b.offset, b.startLoc);
|
|
592
592
|
let u = f.nextToken();
|
|
593
593
|
if (u.type === 8) {
|
|
594
594
|
const I = N(f);
|
|
595
|
-
|
|
595
|
+
R.modifier = I.node, u = I.nextConsumeToken || f.nextToken();
|
|
596
596
|
}
|
|
597
|
-
switch (u.type !== 9 && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0,
|
|
597
|
+
switch (u.type !== 9 && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, De(u)), u = f.nextToken(), u.type === 2 && (u = f.nextToken()), u.type) {
|
|
598
598
|
case 10:
|
|
599
|
-
u.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0,
|
|
599
|
+
u.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, De(u)), R.key = C(f, u.value || "");
|
|
600
600
|
break;
|
|
601
601
|
case 4:
|
|
602
|
-
u.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0,
|
|
602
|
+
u.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, De(u)), R.key = l(f, u.value || "");
|
|
603
603
|
break;
|
|
604
604
|
case 5:
|
|
605
|
-
u.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0,
|
|
605
|
+
u.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, De(u)), R.key = d(f, u.value || "");
|
|
606
606
|
break;
|
|
607
607
|
case 6:
|
|
608
|
-
u.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0,
|
|
608
|
+
u.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, De(u)), R.key = g(f, u.value || "");
|
|
609
609
|
break;
|
|
610
610
|
default: {
|
|
611
611
|
r(f, ne.UNEXPECTED_EMPTY_LINKED_KEY, b.lastStartLoc, 0);
|
|
612
612
|
const I = f.context(), E = s(7, I.offset, I.startLoc);
|
|
613
|
-
return E.value = "", a(E, I.offset, I.startLoc),
|
|
613
|
+
return E.value = "", a(E, I.offset, I.startLoc), R.key = E, a(R, I.offset, I.startLoc), {
|
|
614
614
|
nextConsumeToken: u,
|
|
615
|
-
node:
|
|
615
|
+
node: R
|
|
616
616
|
};
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
return a(
|
|
620
|
-
node:
|
|
619
|
+
return a(R, f.currentOffset(), f.currentPosition()), {
|
|
620
|
+
node: R
|
|
621
621
|
};
|
|
622
622
|
}
|
|
623
623
|
function j(f) {
|
|
624
|
-
const b = f.context(),
|
|
624
|
+
const b = f.context(), R = b.currentType === 1 ? f.currentOffset() : b.offset, u = b.currentType === 1 ? b.endLoc : b.startLoc, I = s(2, R, u);
|
|
625
625
|
I.items = [];
|
|
626
626
|
let E = null;
|
|
627
627
|
do {
|
|
628
|
-
const
|
|
629
|
-
switch (E = null,
|
|
628
|
+
const L = E || f.nextToken();
|
|
629
|
+
switch (E = null, L.type) {
|
|
630
630
|
case 0:
|
|
631
|
-
|
|
631
|
+
L.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, De(L)), I.items.push(m(f, L.value || ""));
|
|
632
632
|
break;
|
|
633
633
|
case 5:
|
|
634
|
-
|
|
634
|
+
L.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, De(L)), I.items.push(d(f, L.value || ""));
|
|
635
635
|
break;
|
|
636
636
|
case 4:
|
|
637
|
-
|
|
637
|
+
L.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, De(L)), I.items.push(l(f, L.value || ""));
|
|
638
638
|
break;
|
|
639
639
|
case 6:
|
|
640
|
-
|
|
640
|
+
L.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, De(L)), I.items.push(g(f, L.value || ""));
|
|
641
641
|
break;
|
|
642
642
|
case 7: {
|
|
643
643
|
const $ = T(f);
|
|
@@ -646,31 +646,31 @@ function os(e = {}) {
|
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
648
|
} while (b.currentType !== 13 && b.currentType !== 1);
|
|
649
|
-
const _ = b.currentType === 1 ? b.lastOffset : f.currentOffset(),
|
|
650
|
-
return a(I, _,
|
|
649
|
+
const _ = b.currentType === 1 ? b.lastOffset : f.currentOffset(), A = b.currentType === 1 ? b.lastEndLoc : f.currentPosition();
|
|
650
|
+
return a(I, _, A), I;
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function w(f, b, R, u) {
|
|
653
653
|
const I = f.context();
|
|
654
654
|
let E = u.items.length === 0;
|
|
655
|
-
const _ = s(1, b,
|
|
655
|
+
const _ = s(1, b, R);
|
|
656
656
|
_.cases = [], _.cases.push(u);
|
|
657
657
|
do {
|
|
658
|
-
const
|
|
659
|
-
E || (E =
|
|
658
|
+
const A = j(f);
|
|
659
|
+
E || (E = A.items.length === 0), _.cases.push(A);
|
|
660
660
|
} while (I.currentType !== 13);
|
|
661
|
-
return E && r(f, ne.MUST_HAVE_MESSAGES_IN_PLURAL,
|
|
661
|
+
return E && r(f, ne.MUST_HAVE_MESSAGES_IN_PLURAL, R, 0), a(_, f.currentOffset(), f.currentPosition()), _;
|
|
662
662
|
}
|
|
663
|
-
function
|
|
664
|
-
const b = f.context(), { offset:
|
|
665
|
-
return b.currentType === 13 ? I :
|
|
663
|
+
function k(f) {
|
|
664
|
+
const b = f.context(), { offset: R, startLoc: u } = b, I = j(f);
|
|
665
|
+
return b.currentType === 13 ? I : w(f, R, u, I);
|
|
666
666
|
}
|
|
667
667
|
function P(f) {
|
|
668
|
-
const b = ns(f, Ie({}, e)),
|
|
669
|
-
return t && u.loc && (u.loc.source = f), u.body =
|
|
668
|
+
const b = ns(f, Ie({}, e)), R = b.context(), u = s(0, R.offset, R.startLoc);
|
|
669
|
+
return t && u.loc && (u.loc.source = f), u.body = k(b), e.onCacheKey && (u.cacheKey = e.onCacheKey(f)), R.currentType !== 13 && r(b, ne.UNEXPECTED_LEXICAL_ANALYSIS, R.lastStartLoc, 0, f[R.offset] || ""), a(u, b.currentOffset(), b.currentPosition()), u;
|
|
670
670
|
}
|
|
671
671
|
return { parse: P };
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function De(e) {
|
|
674
674
|
if (e.type === 13)
|
|
675
675
|
return "EOF";
|
|
676
676
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
@@ -823,20 +823,20 @@ function us(e, t) {
|
|
|
823
823
|
};
|
|
824
824
|
a && e.loc && (m.source = e.loc.source);
|
|
825
825
|
const d = () => m;
|
|
826
|
-
function l(
|
|
827
|
-
m.code +=
|
|
826
|
+
function l(k, P) {
|
|
827
|
+
m.code += k;
|
|
828
828
|
}
|
|
829
|
-
function g(
|
|
829
|
+
function g(k, P = !0) {
|
|
830
830
|
const f = P ? r : "";
|
|
831
|
-
l(s ? f + " ".repeat(
|
|
831
|
+
l(s ? f + " ".repeat(k) : f);
|
|
832
832
|
}
|
|
833
|
-
function N(
|
|
833
|
+
function N(k = !0) {
|
|
834
834
|
const P = ++m.indentLevel;
|
|
835
|
-
|
|
835
|
+
k && g(P);
|
|
836
836
|
}
|
|
837
|
-
function C(
|
|
837
|
+
function C(k = !0) {
|
|
838
838
|
const P = --m.indentLevel;
|
|
839
|
-
|
|
839
|
+
k && g(P);
|
|
840
840
|
}
|
|
841
841
|
function T() {
|
|
842
842
|
g(m.indentLevel);
|
|
@@ -847,7 +847,7 @@ function us(e, t) {
|
|
|
847
847
|
indent: N,
|
|
848
848
|
deindent: C,
|
|
849
849
|
newline: T,
|
|
850
|
-
helper: (
|
|
850
|
+
helper: (k) => `_${k}`,
|
|
851
851
|
needIndent: () => m.needIndent
|
|
852
852
|
};
|
|
853
853
|
}
|
|
@@ -956,9 +956,9 @@ function vs(e, t = {}) {
|
|
|
956
956
|
}
|
|
957
957
|
var hs = { env: { NODE_ENV: "production" } };
|
|
958
958
|
function bs() {
|
|
959
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
959
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ke().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ke().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function kt(e) {
|
|
962
962
|
return (n) => gs(n, e);
|
|
963
963
|
}
|
|
964
964
|
function gs(e, t) {
|
|
@@ -1011,22 +1011,22 @@ function Ft(e, t) {
|
|
|
1011
1011
|
return _t(t, n);
|
|
1012
1012
|
case 4: {
|
|
1013
1013
|
const r = t;
|
|
1014
|
-
if (
|
|
1014
|
+
if (Re(r, "k") && r.k)
|
|
1015
1015
|
return e.interpolate(e.named(r.k));
|
|
1016
|
-
if (
|
|
1016
|
+
if (Re(r, "key") && r.key)
|
|
1017
1017
|
return e.interpolate(e.named(r.key));
|
|
1018
1018
|
throw ct(n);
|
|
1019
1019
|
}
|
|
1020
1020
|
case 5: {
|
|
1021
1021
|
const r = t;
|
|
1022
|
-
if (
|
|
1022
|
+
if (Re(r, "i") && ge(r.i))
|
|
1023
1023
|
return e.interpolate(e.list(r.i));
|
|
1024
|
-
if (
|
|
1024
|
+
if (Re(r, "index") && ge(r.index))
|
|
1025
1025
|
return e.interpolate(e.list(r.index));
|
|
1026
1026
|
throw ct(n);
|
|
1027
1027
|
}
|
|
1028
1028
|
case 6: {
|
|
1029
|
-
const r = t, s =
|
|
1029
|
+
const r = t, s = As(r), a = Ds(r);
|
|
1030
1030
|
return e.linked(Ft(e, a), s ? Ft(e, s) : void 0, e.type);
|
|
1031
1031
|
}
|
|
1032
1032
|
case 7:
|
|
@@ -1037,23 +1037,23 @@ function Ft(e, t) {
|
|
|
1037
1037
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
|
-
const
|
|
1040
|
+
const ks = ["t", "type"];
|
|
1041
1041
|
function $t(e) {
|
|
1042
|
-
return He(e,
|
|
1042
|
+
return He(e, ks);
|
|
1043
1043
|
}
|
|
1044
|
-
const
|
|
1044
|
+
const Ls = ["v", "value"];
|
|
1045
1045
|
function _t(e, t) {
|
|
1046
|
-
const n = He(e,
|
|
1046
|
+
const n = He(e, Ls);
|
|
1047
1047
|
if (n)
|
|
1048
1048
|
return n;
|
|
1049
1049
|
throw ct(t);
|
|
1050
1050
|
}
|
|
1051
|
-
const
|
|
1052
|
-
function
|
|
1053
|
-
return He(e,
|
|
1051
|
+
const Rs = ["m", "modifier"];
|
|
1052
|
+
function As(e) {
|
|
1053
|
+
return He(e, Rs);
|
|
1054
1054
|
}
|
|
1055
1055
|
const Ms = ["k", "key"];
|
|
1056
|
-
function
|
|
1056
|
+
function Ds(e) {
|
|
1057
1057
|
const t = He(e, Ms);
|
|
1058
1058
|
if (t)
|
|
1059
1059
|
return t;
|
|
@@ -1065,7 +1065,7 @@ function ws(e) {
|
|
|
1065
1065
|
function He(e, t, n) {
|
|
1066
1066
|
for (let r = 0; r < t.length; r++) {
|
|
1067
1067
|
const s = t[r];
|
|
1068
|
-
if (
|
|
1068
|
+
if (Re(e, s) && e[s] != null)
|
|
1069
1069
|
return e[s];
|
|
1070
1070
|
}
|
|
1071
1071
|
return n;
|
|
@@ -1073,10 +1073,10 @@ function He(e, t, n) {
|
|
|
1073
1073
|
function ct(e) {
|
|
1074
1074
|
return new Error(`unhandled node type: ${e}`);
|
|
1075
1075
|
}
|
|
1076
|
-
const
|
|
1076
|
+
const ws = (e) => e;
|
|
1077
1077
|
let pt = ae();
|
|
1078
1078
|
function ot(e) {
|
|
1079
|
-
return ee(e) && $t(e) === 0 && (
|
|
1079
|
+
return ee(e) && $t(e) === 0 && (Re(e, "b") || Re(e, "body"));
|
|
1080
1080
|
}
|
|
1081
1081
|
function Fs(e, t = {}) {
|
|
1082
1082
|
let n = !1;
|
|
@@ -1089,22 +1089,22 @@ function Fs(e, t = {}) {
|
|
|
1089
1089
|
function Ps(e, t) {
|
|
1090
1090
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && W(e)) {
|
|
1091
1091
|
pe(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1092
|
-
const r = (t.onCacheKey ||
|
|
1092
|
+
const r = (t.onCacheKey || ws)(e), s = pt[r];
|
|
1093
1093
|
if (s)
|
|
1094
1094
|
return s;
|
|
1095
1095
|
const { ast: a, detectError: m } = Fs(e, {
|
|
1096
1096
|
...t,
|
|
1097
1097
|
location: hs.env.NODE_ENV !== "production",
|
|
1098
1098
|
jit: !0
|
|
1099
|
-
}), d =
|
|
1099
|
+
}), d = kt(a);
|
|
1100
1100
|
return m ? d : pt[r] = d;
|
|
1101
1101
|
} else {
|
|
1102
1102
|
const n = e.cacheKey;
|
|
1103
1103
|
if (n) {
|
|
1104
1104
|
const r = pt[n];
|
|
1105
|
-
return r || (pt[n] =
|
|
1105
|
+
return r || (pt[n] = kt(e));
|
|
1106
1106
|
} else
|
|
1107
|
-
return
|
|
1107
|
+
return kt(e);
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
1110
|
let ut = null;
|
|
@@ -1119,11 +1119,11 @@ function Us(e, t, n) {
|
|
|
1119
1119
|
meta: n
|
|
1120
1120
|
});
|
|
1121
1121
|
}
|
|
1122
|
-
const
|
|
1123
|
-
function
|
|
1122
|
+
const Vs = /* @__PURE__ */ xs("function:translate");
|
|
1123
|
+
function xs(e) {
|
|
1124
1124
|
return (t) => ut && ut.emit(e, t);
|
|
1125
1125
|
}
|
|
1126
|
-
const
|
|
1126
|
+
const xe = {
|
|
1127
1127
|
INVALID_ARGUMENT: Jr,
|
|
1128
1128
|
// 17
|
|
1129
1129
|
INVALID_DATE_ARGUMENT: 18,
|
|
@@ -1135,25 +1135,25 @@ const Ve = {
|
|
|
1135
1135
|
function We(e) {
|
|
1136
1136
|
return Ct(e, null, void 0);
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1138
|
+
function Kt(e, t) {
|
|
1139
1139
|
return t.locale != null ? _n(t.locale) : _n(e.locale);
|
|
1140
1140
|
}
|
|
1141
|
-
let
|
|
1141
|
+
let Lt;
|
|
1142
1142
|
function _n(e) {
|
|
1143
1143
|
if (W(e))
|
|
1144
1144
|
return e;
|
|
1145
1145
|
if (me(e)) {
|
|
1146
|
-
if (e.resolvedOnce &&
|
|
1147
|
-
return
|
|
1146
|
+
if (e.resolvedOnce && Lt != null)
|
|
1147
|
+
return Lt;
|
|
1148
1148
|
if (e.constructor.name === "Function") {
|
|
1149
1149
|
const t = e();
|
|
1150
1150
|
if (Br(t))
|
|
1151
|
-
throw We(
|
|
1152
|
-
return
|
|
1151
|
+
throw We(xe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1152
|
+
return Lt = t;
|
|
1153
1153
|
} else
|
|
1154
|
-
throw We(
|
|
1154
|
+
throw We(xe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1155
1155
|
} else
|
|
1156
|
-
throw We(
|
|
1156
|
+
throw We(xe.NOT_SUPPORT_LOCALE_TYPE);
|
|
1157
1157
|
}
|
|
1158
1158
|
function Gs(e, t, n) {
|
|
1159
1159
|
return [.../* @__PURE__ */ new Set([
|
|
@@ -1161,7 +1161,7 @@ function Gs(e, t, n) {
|
|
|
1161
1161
|
...be(t) ? t : ee(t) ? Object.keys(t) : W(t) ? [t] : [n]
|
|
1162
1162
|
])];
|
|
1163
1163
|
}
|
|
1164
|
-
function
|
|
1164
|
+
function Kn(e, t, n) {
|
|
1165
1165
|
const r = W(n) ? n : Et, s = e;
|
|
1166
1166
|
s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1167
1167
|
let a = s.__localeChainCache.get(r);
|
|
@@ -1179,11 +1179,11 @@ function pn(e, t, n) {
|
|
|
1179
1179
|
let r = !0;
|
|
1180
1180
|
for (let s = 0; s < t.length && pe(r); s++) {
|
|
1181
1181
|
const a = t[s];
|
|
1182
|
-
W(a) && (r =
|
|
1182
|
+
W(a) && (r = Ys(e, t[s], n));
|
|
1183
1183
|
}
|
|
1184
1184
|
return r;
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1186
|
+
function Ys(e, t, n) {
|
|
1187
1187
|
let r;
|
|
1188
1188
|
const s = t.split("-");
|
|
1189
1189
|
do {
|
|
@@ -1362,9 +1362,9 @@ Je[
|
|
|
1362
1362
|
/* Actions.APPEND */
|
|
1363
1363
|
]
|
|
1364
1364
|
};
|
|
1365
|
-
const
|
|
1365
|
+
const Zs = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1366
1366
|
function Xs(e) {
|
|
1367
|
-
return
|
|
1367
|
+
return Zs.test(e);
|
|
1368
1368
|
}
|
|
1369
1369
|
function Hs(e) {
|
|
1370
1370
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
@@ -1399,7 +1399,7 @@ function $s(e) {
|
|
|
1399
1399
|
const t = e.trim();
|
|
1400
1400
|
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Xs(t) ? Hs(t) : "*" + t;
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1402
|
+
function Ks(e) {
|
|
1403
1403
|
const t = [];
|
|
1404
1404
|
let n = -1, r = 0, s = 0, a, m, d, l, g, N, C;
|
|
1405
1405
|
const T = [];
|
|
@@ -1440,9 +1440,9 @@ function zs(e) {
|
|
|
1440
1440
|
}
|
|
1441
1441
|
};
|
|
1442
1442
|
function j() {
|
|
1443
|
-
const
|
|
1444
|
-
if (r === 5 &&
|
|
1445
|
-
return n++, d = "\\" +
|
|
1443
|
+
const w = e[n + 1];
|
|
1444
|
+
if (r === 5 && w === "'" || r === 6 && w === '"')
|
|
1445
|
+
return n++, d = "\\" + w, T[
|
|
1446
1446
|
0
|
|
1447
1447
|
/* Actions.APPEND */
|
|
1448
1448
|
](), !0;
|
|
@@ -1456,14 +1456,14 @@ function zs(e) {
|
|
|
1456
1456
|
}
|
|
1457
1457
|
}
|
|
1458
1458
|
const vn = /* @__PURE__ */ new Map();
|
|
1459
|
-
function
|
|
1459
|
+
function zs(e, t) {
|
|
1460
1460
|
return ee(e) ? e[t] : null;
|
|
1461
1461
|
}
|
|
1462
1462
|
function Qs(e, t) {
|
|
1463
1463
|
if (!ee(e))
|
|
1464
1464
|
return null;
|
|
1465
1465
|
let n = vn.get(t);
|
|
1466
|
-
if (n || (n =
|
|
1466
|
+
if (n || (n = Ks(t), n && vn.set(t, n)), !n)
|
|
1467
1467
|
return null;
|
|
1468
1468
|
const r = n.length;
|
|
1469
1469
|
let s = e, a = 0;
|
|
@@ -1483,9 +1483,9 @@ function ea() {
|
|
|
1483
1483
|
capitalize: (e, t) => t === "text" && W(e) ? bn(e) : t === "vnode" && ee(e) && "__v_isVNode" in e ? bn(e.children) : e
|
|
1484
1484
|
};
|
|
1485
1485
|
}
|
|
1486
|
-
let
|
|
1486
|
+
let zn;
|
|
1487
1487
|
function ta(e) {
|
|
1488
|
-
|
|
1488
|
+
zn = e;
|
|
1489
1489
|
}
|
|
1490
1490
|
let Qn;
|
|
1491
1491
|
function na(e) {
|
|
@@ -1505,7 +1505,7 @@ const gn = (e) => {
|
|
|
1505
1505
|
}, oa = () => tr;
|
|
1506
1506
|
let In = 0;
|
|
1507
1507
|
function la(e = {}) {
|
|
1508
|
-
const t = me(e.onWarn) ? e.onWarn : Xr, n = W(e.version) ? e.version : qs, r = W(e.locale) || me(e.locale) ? e.locale : Et, s = me(r) ? Et : r, a = be(e.fallbackLocale) || q(e.fallbackLocale) || W(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, m = q(e.messages) ? e.messages :
|
|
1508
|
+
const t = me(e.onWarn) ? e.onWarn : Xr, n = W(e.version) ? e.version : qs, r = W(e.locale) || me(e.locale) ? e.locale : Et, s = me(r) ? Et : r, a = be(e.fallbackLocale) || q(e.fallbackLocale) || W(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, m = q(e.messages) ? e.messages : Rt(s), d = q(e.datetimeFormats) ? e.datetimeFormats : Rt(s), l = q(e.numberFormats) ? e.numberFormats : Rt(s), g = Ie(ae(), e.modifiers, ea()), N = e.pluralRules || ae(), C = me(e.missing) ? e.missing : null, T = pe(e.missingWarn) || yt(e.missingWarn) ? e.missingWarn : !0, j = pe(e.fallbackWarn) || yt(e.fallbackWarn) ? e.fallbackWarn : !0, w = !!e.fallbackFormat, k = !!e.unresolving, P = me(e.postTranslation) ? e.postTranslation : null, f = q(e.processor) ? e.processor : null, b = pe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, R = !!e.escapeParameter, u = me(e.messageCompiler) ? e.messageCompiler : zn, I = me(e.messageResolver) ? e.messageResolver : Qn || zs, E = me(e.localeFallbacker) ? e.localeFallbacker : qn || Gs, _ = ee(e.fallbackContext) ? e.fallbackContext : void 0, A = e, L = ee(A.__datetimeFormatters) ? A.__datetimeFormatters : /* @__PURE__ */ new Map(), $ = ee(A.__numberFormatters) ? A.__numberFormatters : /* @__PURE__ */ new Map(), V = ee(A.__meta) ? A.__meta : {};
|
|
1509
1509
|
In++;
|
|
1510
1510
|
const F = {
|
|
1511
1511
|
version: n,
|
|
@@ -1518,23 +1518,23 @@ function la(e = {}) {
|
|
|
1518
1518
|
missing: C,
|
|
1519
1519
|
missingWarn: T,
|
|
1520
1520
|
fallbackWarn: j,
|
|
1521
|
-
fallbackFormat:
|
|
1522
|
-
unresolving:
|
|
1521
|
+
fallbackFormat: w,
|
|
1522
|
+
unresolving: k,
|
|
1523
1523
|
postTranslation: P,
|
|
1524
1524
|
processor: f,
|
|
1525
1525
|
warnHtmlMessage: b,
|
|
1526
|
-
escapeParameter:
|
|
1526
|
+
escapeParameter: R,
|
|
1527
1527
|
messageCompiler: u,
|
|
1528
1528
|
messageResolver: I,
|
|
1529
1529
|
localeFallbacker: E,
|
|
1530
1530
|
fallbackContext: _,
|
|
1531
1531
|
onWarn: t,
|
|
1532
|
-
__meta:
|
|
1532
|
+
__meta: V
|
|
1533
1533
|
};
|
|
1534
|
-
return F.datetimeFormats = d, F.numberFormats = l, F.__datetimeFormatters =
|
|
1534
|
+
return F.datetimeFormats = d, F.numberFormats = l, F.__datetimeFormatters = L, F.__numberFormatters = $, __INTLIFY_PROD_DEVTOOLS__ && Us(F, n, V), F;
|
|
1535
1535
|
}
|
|
1536
|
-
const
|
|
1537
|
-
function
|
|
1536
|
+
const Rt = (e) => ({ [e]: ae() });
|
|
1537
|
+
function zt(e, t, n, r, s) {
|
|
1538
1538
|
const { missing: a, onWarn: m } = e;
|
|
1539
1539
|
if (a !== null) {
|
|
1540
1540
|
const d = a(e, n, t, s);
|
|
@@ -1561,18 +1561,18 @@ function ca(e, t) {
|
|
|
1561
1561
|
function yn(e, ...t) {
|
|
1562
1562
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: s, onWarn: a, localeFallbacker: m } = e, { __datetimeFormatters: d } = e, [l, g, N, C] = Pt(...t), T = pe(N.missingWarn) ? N.missingWarn : e.missingWarn;
|
|
1563
1563
|
pe(N.fallbackWarn) ? N.fallbackWarn : e.fallbackWarn;
|
|
1564
|
-
const j = !!N.part,
|
|
1564
|
+
const j = !!N.part, w = Kt(e, N), k = m(
|
|
1565
1565
|
e,
|
|
1566
1566
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1567
1567
|
s,
|
|
1568
|
-
|
|
1568
|
+
w
|
|
1569
1569
|
);
|
|
1570
1570
|
if (!W(l) || l === "")
|
|
1571
|
-
return new Intl.DateTimeFormat(
|
|
1571
|
+
return new Intl.DateTimeFormat(w, C).format(g);
|
|
1572
1572
|
let P = {}, f, b = null;
|
|
1573
|
-
const
|
|
1574
|
-
for (let E = 0; E <
|
|
1575
|
-
|
|
1573
|
+
const R = "datetime format";
|
|
1574
|
+
for (let E = 0; E < k.length && (f = k[E], P = n[f] || {}, b = P[l], !q(b)); E++)
|
|
1575
|
+
zt(e, l, f, T, R);
|
|
1576
1576
|
if (!q(b) || !W(f))
|
|
1577
1577
|
return r ? Tt : l;
|
|
1578
1578
|
let u = `${f}__${l}`;
|
|
@@ -1608,22 +1608,22 @@ function Pt(...e) {
|
|
|
1608
1608
|
if (W(t)) {
|
|
1609
1609
|
const l = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1610
1610
|
if (!l)
|
|
1611
|
-
throw We(
|
|
1611
|
+
throw We(xe.INVALID_ISO_DATE_ARGUMENT);
|
|
1612
1612
|
const g = l[3] ? l[3].trim().startsWith("T") ? `${l[1].trim()}${l[3].trim()}` : `${l[1].trim()}T${l[3].trim()}` : l[1].trim();
|
|
1613
1613
|
d = new Date(g);
|
|
1614
1614
|
try {
|
|
1615
1615
|
d.toISOString();
|
|
1616
1616
|
} catch {
|
|
1617
|
-
throw We(
|
|
1617
|
+
throw We(xe.INVALID_ISO_DATE_ARGUMENT);
|
|
1618
1618
|
}
|
|
1619
1619
|
} else if (Wr(t)) {
|
|
1620
1620
|
if (isNaN(t.getTime()))
|
|
1621
|
-
throw We(
|
|
1621
|
+
throw We(xe.INVALID_DATE_ARGUMENT);
|
|
1622
1622
|
d = t;
|
|
1623
1623
|
} else if (ge(t))
|
|
1624
1624
|
d = t;
|
|
1625
1625
|
else
|
|
1626
|
-
throw We(
|
|
1626
|
+
throw We(xe.INVALID_ARGUMENT);
|
|
1627
1627
|
return W(n) ? a.key = n : q(n) && Object.keys(n).forEach((l) => {
|
|
1628
1628
|
nr.includes(l) ? m[l] = n[l] : a[l] = n[l];
|
|
1629
1629
|
}), W(r) ? a.locale = r : q(r) && (m = r), q(s) && (m = s), [a.key || "", d, a, m];
|
|
@@ -1638,18 +1638,18 @@ function En(e, t, n) {
|
|
|
1638
1638
|
function Nn(e, ...t) {
|
|
1639
1639
|
const { numberFormats: n, unresolving: r, fallbackLocale: s, onWarn: a, localeFallbacker: m } = e, { __numberFormatters: d } = e, [l, g, N, C] = jt(...t), T = pe(N.missingWarn) ? N.missingWarn : e.missingWarn;
|
|
1640
1640
|
pe(N.fallbackWarn) ? N.fallbackWarn : e.fallbackWarn;
|
|
1641
|
-
const j = !!N.part,
|
|
1641
|
+
const j = !!N.part, w = Kt(e, N), k = m(
|
|
1642
1642
|
e,
|
|
1643
1643
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1644
1644
|
s,
|
|
1645
|
-
|
|
1645
|
+
w
|
|
1646
1646
|
);
|
|
1647
1647
|
if (!W(l) || l === "")
|
|
1648
|
-
return new Intl.NumberFormat(
|
|
1648
|
+
return new Intl.NumberFormat(w, C).format(g);
|
|
1649
1649
|
let P = {}, f, b = null;
|
|
1650
|
-
const
|
|
1651
|
-
for (let E = 0; E <
|
|
1652
|
-
|
|
1650
|
+
const R = "number format";
|
|
1651
|
+
for (let E = 0; E < k.length && (f = k[E], P = n[f] || {}, b = P[l], !q(b)); E++)
|
|
1652
|
+
zt(e, l, f, T, R);
|
|
1653
1653
|
if (!q(b) || !W(f))
|
|
1654
1654
|
return r ? Tt : l;
|
|
1655
1655
|
let u = `${f}__${l}`;
|
|
@@ -1683,7 +1683,7 @@ function jt(...e) {
|
|
|
1683
1683
|
const [t, n, r, s] = e, a = ae();
|
|
1684
1684
|
let m = ae();
|
|
1685
1685
|
if (!ge(t))
|
|
1686
|
-
throw We(
|
|
1686
|
+
throw We(xe.INVALID_ARGUMENT);
|
|
1687
1687
|
const d = t;
|
|
1688
1688
|
return W(n) ? a.key = n : q(n) && Object.keys(n).forEach((l) => {
|
|
1689
1689
|
rr.includes(l) ? m[l] = n[l] : a[l] = n[l];
|
|
@@ -1696,7 +1696,7 @@ function Cn(e, t, n) {
|
|
|
1696
1696
|
r.__numberFormatters.has(a) && r.__numberFormatters.delete(a);
|
|
1697
1697
|
}
|
|
1698
1698
|
}
|
|
1699
|
-
const ua = (e) => e, da = (e) => "", ma = "text", fa = (e) => e.length === 0 ? "" : Ht(e), _a =
|
|
1699
|
+
const ua = (e) => e, da = (e) => "", ma = "text", fa = (e) => e.length === 0 ? "" : Ht(e), _a = Zr;
|
|
1700
1700
|
function Tn(e, t) {
|
|
1701
1701
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1702
1702
|
}
|
|
@@ -1712,25 +1712,25 @@ function ha(e = {}) {
|
|
|
1712
1712
|
ge(e.pluralIndex) && va(n, l);
|
|
1713
1713
|
const g = (f) => l[f];
|
|
1714
1714
|
function N(f, b) {
|
|
1715
|
-
const
|
|
1716
|
-
return
|
|
1715
|
+
const R = me(e.messages) ? e.messages(f, !!b) : ee(e.messages) ? e.messages[f] : !1;
|
|
1716
|
+
return R || (e.parent ? e.parent.message(f) : da);
|
|
1717
1717
|
}
|
|
1718
|
-
const C = (f) => e.modifiers ? e.modifiers[f] : ua, T = q(e.processor) && me(e.processor.normalize) ? e.processor.normalize : fa, j = q(e.processor) && me(e.processor.interpolate) ? e.processor.interpolate : _a,
|
|
1718
|
+
const C = (f) => e.modifiers ? e.modifiers[f] : ua, T = q(e.processor) && me(e.processor.normalize) ? e.processor.normalize : fa, j = q(e.processor) && me(e.processor.interpolate) ? e.processor.interpolate : _a, w = q(e.processor) && W(e.processor.type) ? e.processor.type : ma, P = {
|
|
1719
1719
|
list: d,
|
|
1720
1720
|
named: g,
|
|
1721
1721
|
plural: a,
|
|
1722
1722
|
linked: (f, ...b) => {
|
|
1723
|
-
const [
|
|
1723
|
+
const [R, u] = b;
|
|
1724
1724
|
let I = "text", E = "";
|
|
1725
|
-
b.length === 1 ? ee(
|
|
1726
|
-
const _ = N(f, !0)(P),
|
|
1725
|
+
b.length === 1 ? ee(R) ? (E = R.modifier || E, I = R.type || I) : W(R) && (E = R || E) : b.length === 2 && (W(R) && (E = R || E), W(u) && (I = u || I));
|
|
1726
|
+
const _ = N(f, !0)(P), A = (
|
|
1727
1727
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1728
1728
|
I === "vnode" && be(_) && E ? _[0] : _
|
|
1729
1729
|
);
|
|
1730
|
-
return E ? C(E)(
|
|
1730
|
+
return E ? C(E)(A, I) : A;
|
|
1731
1731
|
},
|
|
1732
1732
|
message: N,
|
|
1733
|
-
type:
|
|
1733
|
+
type: w,
|
|
1734
1734
|
interpolate: j,
|
|
1735
1735
|
normalize: T,
|
|
1736
1736
|
values: Ie(ae(), m, l)
|
|
@@ -1739,22 +1739,22 @@ function ha(e = {}) {
|
|
|
1739
1739
|
}
|
|
1740
1740
|
const On = () => "", Se = (e) => me(e);
|
|
1741
1741
|
function Sn(e, ...t) {
|
|
1742
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: a, fallbackLocale: m, messages: d } = e, [l, g] = Ut(...t), N = pe(g.missingWarn) ? g.missingWarn : e.missingWarn, C = pe(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, T = pe(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, j = !!g.resolvedMessage,
|
|
1742
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: a, fallbackLocale: m, messages: d } = e, [l, g] = Ut(...t), N = pe(g.missingWarn) ? g.missingWarn : e.missingWarn, C = pe(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, T = pe(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, j = !!g.resolvedMessage, w = W(g.default) || pe(g.default) ? pe(g.default) ? a ? l : () => l : g.default : n ? a ? l : () => l : null, k = n || w != null && (W(w) || me(w)), P = Kt(e, g);
|
|
1743
1743
|
T && ba(g);
|
|
1744
|
-
let [f, b,
|
|
1744
|
+
let [f, b, R] = j ? [
|
|
1745
1745
|
l,
|
|
1746
1746
|
P,
|
|
1747
1747
|
d[P] || ae()
|
|
1748
1748
|
] : sr(e, l, P, m, C, N), u = f, I = l;
|
|
1749
|
-
if (!j && !(W(u) || ot(u) || Se(u)) &&
|
|
1749
|
+
if (!j && !(W(u) || ot(u) || Se(u)) && k && (u = w, I = u), !j && (!(W(u) || ot(u) || Se(u)) || !W(b)))
|
|
1750
1750
|
return s ? Tt : l;
|
|
1751
1751
|
let E = !1;
|
|
1752
1752
|
const _ = () => {
|
|
1753
1753
|
E = !0;
|
|
1754
|
-
},
|
|
1754
|
+
}, A = Se(u) ? u : ar(e, l, b, u, I, _);
|
|
1755
1755
|
if (E)
|
|
1756
1756
|
return u;
|
|
1757
|
-
const
|
|
1757
|
+
const L = ya(e, b, R, g), $ = ha(L), V = ga(e, A, $), F = r ? r(V, l) : V;
|
|
1758
1758
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1759
1759
|
const y = {
|
|
1760
1760
|
timestamp: Date.now(),
|
|
@@ -1763,7 +1763,7 @@ function Sn(e, ...t) {
|
|
|
1763
1763
|
format: W(u) ? u : Se(u) ? u.source : "",
|
|
1764
1764
|
message: F
|
|
1765
1765
|
};
|
|
1766
|
-
y.meta = Ie({}, e.__meta, /* @__PURE__ */ aa() || {}),
|
|
1766
|
+
y.meta = Ie({}, e.__meta, /* @__PURE__ */ aa() || {}), Vs(y);
|
|
1767
1767
|
}
|
|
1768
1768
|
return F;
|
|
1769
1769
|
}
|
|
@@ -1775,16 +1775,16 @@ function ba(e) {
|
|
|
1775
1775
|
function sr(e, t, n, r, s, a) {
|
|
1776
1776
|
const { messages: m, onWarn: d, messageResolver: l, localeFallbacker: g } = e, N = g(e, r, n);
|
|
1777
1777
|
let C = ae(), T, j = null;
|
|
1778
|
-
const
|
|
1779
|
-
for (let
|
|
1778
|
+
const w = "translate";
|
|
1779
|
+
for (let k = 0; k < N.length && (T = N[k], C = m[T] || ae(), (j = l(C, t)) === null && (j = C[t]), !(W(j) || ot(j) || Se(j))); k++)
|
|
1780
1780
|
if (!ca(T, N)) {
|
|
1781
|
-
const P =
|
|
1781
|
+
const P = zt(
|
|
1782
1782
|
e,
|
|
1783
1783
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1784
1784
|
t,
|
|
1785
1785
|
T,
|
|
1786
1786
|
a,
|
|
1787
|
-
|
|
1787
|
+
w
|
|
1788
1788
|
);
|
|
1789
1789
|
P !== t && (j = P);
|
|
1790
1790
|
}
|
|
@@ -1809,7 +1809,7 @@ function ga(e, t, n) {
|
|
|
1809
1809
|
function Ut(...e) {
|
|
1810
1810
|
const [t, n, r] = e, s = ae();
|
|
1811
1811
|
if (!W(t) && !ge(t) && !Se(t) && !ot(t))
|
|
1812
|
-
throw We(
|
|
1812
|
+
throw We(xe.INVALID_ARGUMENT);
|
|
1813
1813
|
const a = ge(t) ? String(t) : (Se(t), t);
|
|
1814
1814
|
return ge(n) ? s.plural = n : W(n) ? s.default = n : q(n) && !Nt(n) ? s.named = n : be(n) && (s.list = n), ge(r) ? s.plural = r : W(r) ? s.default = r : q(r) && Ie(s, r), [a, s];
|
|
1815
1815
|
}
|
|
@@ -1821,7 +1821,7 @@ function Ia(e, t, n, r, s, a) {
|
|
|
1821
1821
|
onError: (m) => {
|
|
1822
1822
|
throw a && a(m), m;
|
|
1823
1823
|
},
|
|
1824
|
-
onCacheKey: (m) =>
|
|
1824
|
+
onCacheKey: (m) => Vr(t, n, m)
|
|
1825
1825
|
};
|
|
1826
1826
|
}
|
|
1827
1827
|
function ya(e, t, n, r) {
|
|
@@ -1829,9 +1829,9 @@ function ya(e, t, n, r) {
|
|
|
1829
1829
|
locale: t,
|
|
1830
1830
|
modifiers: s,
|
|
1831
1831
|
pluralRules: a,
|
|
1832
|
-
messages: (j,
|
|
1833
|
-
let
|
|
1834
|
-
if (
|
|
1832
|
+
messages: (j, w) => {
|
|
1833
|
+
let k = m(n, j);
|
|
1834
|
+
if (k == null && (N || w)) {
|
|
1835
1835
|
const [, , P] = sr(
|
|
1836
1836
|
N || e,
|
|
1837
1837
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
@@ -1841,24 +1841,24 @@ function ya(e, t, n, r) {
|
|
|
1841
1841
|
l,
|
|
1842
1842
|
g
|
|
1843
1843
|
);
|
|
1844
|
-
|
|
1844
|
+
k = m(P, j);
|
|
1845
1845
|
}
|
|
1846
|
-
if (W(
|
|
1846
|
+
if (W(k) || ot(k)) {
|
|
1847
1847
|
let P = !1;
|
|
1848
|
-
const b = ar(e, j, t,
|
|
1848
|
+
const b = ar(e, j, t, k, j, () => {
|
|
1849
1849
|
P = !0;
|
|
1850
1850
|
});
|
|
1851
1851
|
return P ? On : b;
|
|
1852
|
-
} else return Se(
|
|
1852
|
+
} else return Se(k) ? k : On;
|
|
1853
1853
|
}
|
|
1854
1854
|
};
|
|
1855
1855
|
return e.processor && (T.processor = e.processor), r.list && (T.list = r.list), r.named && (T.named = r.named), ge(r.plural) && (T.pluralIndex = r.plural), T;
|
|
1856
1856
|
}
|
|
1857
1857
|
bs();
|
|
1858
|
-
var Ea = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_b3f69fc8-e2bf-44a4-89a8-9556b12e47eb", DOTNET_NOLOGO: "1", USER: "runner", npm_config_always_auth: "", npm_config_user_agent: "pnpm/10.8.0 npm/? node/v24.22.2 linux x64", CI: "true", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_b3f69fc8-e2bf-44a4-89a8-9556b12e47eb", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.22.2/x64/bin/node", 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.9.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/30.0.16248370", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "2407", ACTIONS_ORCHESTRATION_ID: "444f172d-0a40-4cf3-9eb8-c934ca5fc299.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: "20261111.196.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_b3f69fc8-e2bf-44a4-89a8-9556b12e47eb", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "10:15145", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.14/x64", GITHUB_RUN_ID: "44223981202", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "7689c15a2e550b40233aafb7ae26e6436f7d0417", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.11/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu26", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9kZXZcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTQ5OTEzNDEsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5NDk2OTE0MSwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImIxMGQwMWU5LTFlMzUtNTEwZS1hYzNjLTc5N2I5OWQzZmQ3NyIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiZjM0MmQ5OTc2NTQ2NGFlYzg3YTVjYmY0MTdiYWZjZGYyN2U0MjBiNSIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5NDk2ODg0MSwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCIxMzQ1MzI1NDk2MzJcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcImYzNDJkOTk3NjU0NjRhZWM4N2E1Y2JmNDE3YmFmY2RmMjdlNDIwYjVcIixcInJlZlwiOlwicmVmcy9oZWFkcy9kZXZcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJyZXBvc2l0b3J5XCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2VcIixcInJlcG9zaXRvcnlfaWRcIjpcIjExMjQ2NzIyMzVcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJ1bl9pZFwiOlwiNDQyMjM5ODEyMDJcIixcInJ1bl9udW1iZXJcIjpcIjI1MFwiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcIjc2ODljMTVhMmU1NTBiNDAyMzNhYWZiN2FlMjZlNjQzNmY3ZDA0MTdcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIGhybS1wb3J0YWxcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtaHJtLXBvcnRhbC10cnVzdGVkLnltbEByZWZzL2hlYWRzL2RldlwiLFwid29ya2Zsb3dfc2hhXCI6XCI3Njg5YzE1YTJlNTUwYjQwMjMzYWFmYjdhZTI2ZTY0MzZmN2QwNDE3XCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9kZXYiLCJvcmNoX2lkIjoiNDQ0ZjE3MmQtMGE0MC00Y2YzLTllYjgtYzkzNGNhNWZjMjk5LnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiI0NDRmMTcyZC0wYTQwLTRjZjMtOWViOC1jOTM0Y2E1ZmMyOTkiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiI0NDIyMzk4MTIwMiIsInJ1bl9udW1iZXIiOiIyNTAiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMjk2NTM4IiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6NDQ0ZjE3MmQtMGE0MC00Y2YzLTllYjgtYzkzNGNhNWZjMjk5OmIxMGQwMWU5LTFlMzUtNTEwZS1hYzNjLTc5N2I5OWQzZmQ3NyBBY3Rpb25zLlJ1bm5lcjo0NDRmMTcyZC0wYTQwLTRjZjMtOWViOC1jOTM0Y2E1ZmMyOTk6YjEwZDAxZTktMWUzNS01MTBlLWFjM2MtNzk3Yjk5ZDNmZDc3IEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOjQ0NGYxNzJkLTBhNDAtNGNmMy05ZWI4LWM5MzRjYTVmYzI5OTpiMTBkMDFlOS0xZTM1LTUxMGUtYWMzYy03OTdiOTlkM2ZkNzcgZ2VuZXJhdGVfaWRfdG9rZW46NDQ0ZjE3MmQtMGE0MC00Y2YzLTllYjgtYzkzNGNhNWZjMjk5OmIxMGQwMWU5LTFlMzUtNTEwZS1hYzNjLTc5N2I5OWQzZmQ3NyBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6Ijc2ODljMTVhMmU1NTBiNDAyMzNhYWZiN2FlMjZlNjQzNmY3ZDA0MTciLCJ0cnVzdF90aWVyIjoiMSJ9.IELVKPJoRzP13xq2ryj2cqG73C9aQSM_qCcE2TabPKfcF1JHnP8rarVJIzXP5RIayou8Ana7nxAIccMztuVyWavhsFFf0UzAUhSQ4yUkRRAxI0NHX0NVu5ShmSEcrQTdRaW-lK0g1JgxLQ9QK8cuV8EuYRJTvS-btrYA-Q8hmk0lV0ddeTZJajH7OSULiEX6ojD9CMst8blIfVMrgxFN3tOpBOEE1M6tlEL_2ThGVVGirwgdgFxiNWrFoViHi3BI07TjQzVuV4hmxbbgssnXXyfbWs91YuLCvKOC03Nks6ZIcd55XmMnEMfYfLhJD7chOFKznz4WWSr9gG79Kkntig", 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.22.2/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_a5bfd30b-2cd3-4511-9a6c-6cee09a03e3e", INVOCATION_ID: "a07bd56580104adbbf1901c4d1890ed8", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/24.22.2/x64/bin/node", npm_package_name: "@feedmepos/mf-hrm-portal", GITHUB_ACTION: "__run_5", GITHUB_RUN_NUMBER: "250", 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", RUNNER_NAME: "GitHub Actions 1000296538", 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.4.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", npm_config_overrides: '{"proxy-addr":">=2.0.8 <3","@fastify/busboy":">=3.2.1 <4","@grpc/grpc-js":">=1.14.5 <2","brace-expansion@^2":"^2.1.6","js-yaml@^4":"^4.3.2","source-map-js":"^1.2.2","dompurify":">=3.4.17 <4","undici@^6":">=6.29.1 <7","body-parser@^1":">=1.20.9 <2","multer":">=2.5.0 <3","node-forge":">=1.4.1 <2","follow-redirects@^1.16":">=1.16.2 <2"}', npm_config_package_extensions: '{"@feedmepos/entity":{"dependencies":{"@feedmepos/core":"2.14.52"}}}', GITHUB_SHA: "7689c15a2e550b40233aafb7ae26e6436f7d0417", 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_b3f69fc8-e2bf-44a4-89a8-9556b12e47eb", JAVA_HOME: "/usr/lib/jvm/temurin-25-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-2-azure-eastus.actions.githubusercontent.com/151//idtoken/444f172d-0a40-4cf3-9eb8-c934ca5fc299/b10d01e9-1e35-510e-ac3c-797b99d3fd77?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_b3f69fc8-e2bf-44a4-89a8-9556b12e47eb", 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_b3f69fc8-e2bf-44a4-89a8-9556b12e47eb", 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_b3f69fc8-e2bf-44a4-89a8-9556b12e47eb", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1858
|
+
var Ea = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_3d59da01-acab-4c53-84c5-ba87ebf027c0", DOTNET_NOLOGO: "1", USER: "runner", npm_config_always_auth: "", npm_config_user_agent: "pnpm/10.8.0 npm/? node/v24.22.2 linux x64", CI: "true", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_3d59da01-acab-4c53-84c5-ba87ebf027c0", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.22.2/x64/bin/node", 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.9.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/30.0.16248370", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1981", ACTIONS_ORCHESTRATION_ID: "9cc7c930-3af5-40e9-b486-d2db8a796806.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: "20261111.196.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_3d59da01-acab-4c53-84c5-ba87ebf027c0", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "10:15277", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.14/x64", GITHUB_RUN_ID: "44253967975", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "9781d9bf7b080832c48f4a3e9f0362153f4bd25f", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.11/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu26", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9kZXZcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTUwMDY2NjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5NDk4NDQ2NywiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImEzNGI1OTQ5LTI1Y2YtNTc4OS1hY2U2LTBhZTBjMDVlM2IzMSIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiZjM0MmQ5OTc2NTQ2NGFlYzg3YTVjYmY0MTdiYWZjZGYyN2U0MjBiNSIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5NDk4NDE2Nywib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCIxMzQ2MzExMjI4MTlcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcImYzNDJkOTk3NjU0NjRhZWM4N2E1Y2JmNDE3YmFmY2RmMjdlNDIwYjVcIixcInJlZlwiOlwicmVmcy9oZWFkcy9kZXZcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJyZXBvc2l0b3J5XCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2VcIixcInJlcG9zaXRvcnlfaWRcIjpcIjExMjQ2NzIyMzVcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJ1bl9pZFwiOlwiNDQyNTM5Njc5NzVcIixcInJ1bl9udW1iZXJcIjpcIjI1MVwiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcIjk3ODFkOWJmN2IwODA4MzJjNDhmNGEzZTlmMDM2MjE1M2Y0YmQyNWZcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIGhybS1wb3J0YWxcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtaHJtLXBvcnRhbC10cnVzdGVkLnltbEByZWZzL2hlYWRzL2RldlwiLFwid29ya2Zsb3dfc2hhXCI6XCI5NzgxZDliZjdiMDgwODMyYzQ4ZjRhM2U5ZjAzNjIxNTNmNGJkMjVmXCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9kZXYiLCJvcmNoX2lkIjoiOWNjN2M5MzAtM2FmNS00MGU5LWI0ODYtZDJkYjhhNzk2ODA2LnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiI5Y2M3YzkzMC0zYWY1LTQwZTktYjQ4Ni1kMmRiOGE3OTY4MDYiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiI0NDI1Mzk2Nzk3NSIsInJ1bl9udW1iZXIiOiIyNTEiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMjk4MDY1IiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6OWNjN2M5MzAtM2FmNS00MGU5LWI0ODYtZDJkYjhhNzk2ODA2OmEzNGI1OTQ5LTI1Y2YtNTc4OS1hY2U2LTBhZTBjMDVlM2IzMSBBY3Rpb25zLlJ1bm5lcjo5Y2M3YzkzMC0zYWY1LTQwZTktYjQ4Ni1kMmRiOGE3OTY4MDY6YTM0YjU5NDktMjVjZi01Nzg5LWFjZTYtMGFlMGMwNWUzYjMxIEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOjljYzdjOTMwLTNhZjUtNDBlOS1iNDg2LWQyZGI4YTc5NjgwNjphMzRiNTk0OS0yNWNmLTU3ODktYWNlNi0wYWUwYzA1ZTNiMzEgZ2VuZXJhdGVfaWRfdG9rZW46OWNjN2M5MzAtM2FmNS00MGU5LWI0ODYtZDJkYjhhNzk2ODA2OmEzNGI1OTQ5LTI1Y2YtNTc4OS1hY2U2LTBhZTBjMDVlM2IzMSBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6Ijk3ODFkOWJmN2IwODA4MzJjNDhmNGEzZTlmMDM2MjE1M2Y0YmQyNWYiLCJ0cnVzdF90aWVyIjoiMSJ9.H-79iImKlbh6Z6lZYOGs1Bfolqd3igUlY94l5B_mGDtON9lbRvQgshp6A1V6K4vQL1Qj975636yiKzHU3LuvQVKvtWkHBlEciOq8lUJP4VV5XEUPK1TyDAxdACr5o9f4Ri7AYR4yIXBfZVFFd8SkRrS6Yowpp3FRMmTiww7oDjaREecKdt46g2S2zZRGuFRf2eKYZSpDYDhZFczCRavoQFmp4lDXxAqIjdzxgiUT2V7IR8Rpm8I7vGsDbuSUuIY5e9rk7em4XXBnDqYY748OL7M2yIU3IInVPVkBTk7Wd0-1VQNHb5m7cRWlmKFRetEmV0WGFBBq_r5Rismd13EE4Q", 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.22.2/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_31d64d0f-21d2-4c52-abed-39dcb3778f97", INVOCATION_ID: "4dc9af926e5945aeb8809cc2706ef717", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/24.22.2/x64/bin/node", npm_package_name: "@feedmepos/mf-hrm-portal", GITHUB_ACTION: "__run_5", GITHUB_RUN_NUMBER: "251", 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", RUNNER_NAME: "GitHub Actions 1000298065", 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.4.2-dev.2", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", npm_config_overrides: '{"proxy-addr":">=2.0.8 <3","@fastify/busboy":">=3.2.1 <4","@grpc/grpc-js":">=1.14.5 <2","brace-expansion@^2":"^2.1.6","js-yaml@^4":"^4.3.2","source-map-js":"^1.2.2","dompurify":">=3.4.17 <4","undici@^6":">=6.29.1 <7","body-parser@^1":">=1.20.9 <2","multer":">=2.5.0 <3","node-forge":">=1.4.1 <2","follow-redirects@^1.16":">=1.16.2 <2"}', npm_config_package_extensions: '{"@feedmepos/entity":{"dependencies":{"@feedmepos/core":"2.14.52"}}}', GITHUB_SHA: "9781d9bf7b080832c48f4a3e9f0362153f4bd25f", 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_3d59da01-acab-4c53-84c5-ba87ebf027c0", JAVA_HOME: "/usr/lib/jvm/temurin-25-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-2-azure-eastus.actions.githubusercontent.com/103//idtoken/9cc7c930-3af5-40e9-b486-d2db8a796806/a34b5949-25cf-5789-ace6-0ae0c05e3b31?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_3d59da01-acab-4c53-84c5-ba87ebf027c0", 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_3d59da01-acab-4c53-84c5-ba87ebf027c0", 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_3d59da01-acab-4c53-84c5-ba87ebf027c0", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1859
1859
|
const Na = "10.0.5";
|
|
1860
1860
|
function Ca() {
|
|
1861
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
1861
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Ke().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Ke().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ke().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ke().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1862
1862
|
}
|
|
1863
1863
|
const lt = {
|
|
1864
1864
|
// composer module errors
|
|
@@ -1876,12 +1876,12 @@ const lt = {
|
|
|
1876
1876
|
function dt(e, ...t) {
|
|
1877
1877
|
return Ct(e, null, void 0);
|
|
1878
1878
|
}
|
|
1879
|
-
const
|
|
1879
|
+
const Vt = /* @__PURE__ */ Qe("__translateVNode"), xt = /* @__PURE__ */ Qe("__datetimeParts"), Wt = /* @__PURE__ */ Qe("__numberParts"), Ta = Qe("__setPluralRules"), or = /* @__PURE__ */ Qe("__injectWithOption"), Gt = /* @__PURE__ */ Qe("__dispose");
|
|
1880
1880
|
function mt(e) {
|
|
1881
1881
|
if (!ee(e))
|
|
1882
1882
|
return e;
|
|
1883
1883
|
for (const t in e)
|
|
1884
|
-
if (
|
|
1884
|
+
if (Re(e, t))
|
|
1885
1885
|
if (!t.includes("."))
|
|
1886
1886
|
ee(e[t]) && mt(e[t]);
|
|
1887
1887
|
else {
|
|
@@ -1908,7 +1908,7 @@ function lr(e, t) {
|
|
|
1908
1908
|
W(d) && It(JSON.parse(d), m);
|
|
1909
1909
|
}), s == null && a)
|
|
1910
1910
|
for (const d in m)
|
|
1911
|
-
|
|
1911
|
+
Re(m, d) && mt(m[d]);
|
|
1912
1912
|
return m;
|
|
1913
1913
|
}
|
|
1914
1914
|
function ir(e) {
|
|
@@ -1939,20 +1939,20 @@ function Oa(e, t, n) {
|
|
|
1939
1939
|
}
|
|
1940
1940
|
}
|
|
1941
1941
|
}
|
|
1942
|
-
function
|
|
1942
|
+
function kn(e) {
|
|
1943
1943
|
return ce(vr, null, e, 0);
|
|
1944
1944
|
}
|
|
1945
|
-
const
|
|
1946
|
-
let
|
|
1945
|
+
const Ln = "__INTLIFY_META__", Rn = () => [], Sa = () => !1;
|
|
1946
|
+
let An = 0;
|
|
1947
1947
|
function Mn(e) {
|
|
1948
1948
|
return (t, n, r, s) => e(n, r, Bt() || void 0, s);
|
|
1949
1949
|
}
|
|
1950
|
-
const
|
|
1950
|
+
const ka = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1951
1951
|
const e = Bt();
|
|
1952
1952
|
let t = null;
|
|
1953
|
-
return e && (t = ir(e)[
|
|
1953
|
+
return e && (t = ir(e)[Ln]) ? { [Ln]: t } : null;
|
|
1954
1954
|
};
|
|
1955
|
-
function
|
|
1955
|
+
function La(e = {}) {
|
|
1956
1956
|
const { __root: t, __injectWithOption: n } = e, r = t === void 0, s = e.flatJson, a = on ? st : _r;
|
|
1957
1957
|
let m = pe(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1958
1958
|
const d = a(
|
|
@@ -1962,7 +1962,7 @@ function ka(e = {}) {
|
|
|
1962
1962
|
// prettier-ignore
|
|
1963
1963
|
t && m ? t.fallbackLocale.value : W(e.fallbackLocale) || be(e.fallbackLocale) || q(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : d.value
|
|
1964
1964
|
), g = a(lr(d.value, e)), N = a(q(e.datetimeFormats) ? e.datetimeFormats : { [d.value]: {} }), C = a(q(e.numberFormats) ? e.numberFormats : { [d.value]: {} });
|
|
1965
|
-
let T = t ? t.missingWarn : pe(e.missingWarn) || yt(e.missingWarn) ? e.missingWarn : !0, j = t ? t.fallbackWarn : pe(e.fallbackWarn) || yt(e.fallbackWarn) ? e.fallbackWarn : !0,
|
|
1965
|
+
let T = t ? t.missingWarn : pe(e.missingWarn) || yt(e.missingWarn) ? e.missingWarn : !0, j = t ? t.fallbackWarn : pe(e.fallbackWarn) || yt(e.fallbackWarn) ? e.fallbackWarn : !0, w = t ? t.fallbackRoot : pe(e.fallbackRoot) ? e.fallbackRoot : !0, k = !!e.fallbackFormat, P = me(e.missing) ? e.missing : null, f = me(e.missing) ? Mn(e.missing) : null, b = me(e.postTranslation) ? e.postTranslation : null, R = t ? t.warnHtmlMessage : pe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, u = !!e.escapeParameter;
|
|
1966
1966
|
const I = t ? t.modifiers : q(e.modifiers) ? e.modifiers : {};
|
|
1967
1967
|
let E = e.pluralRules || t && t.pluralRules, _;
|
|
1968
1968
|
_ = (() => {
|
|
@@ -1977,10 +1977,10 @@ function ka(e = {}) {
|
|
|
1977
1977
|
missing: f === null ? void 0 : f,
|
|
1978
1978
|
missingWarn: T,
|
|
1979
1979
|
fallbackWarn: j,
|
|
1980
|
-
fallbackFormat:
|
|
1980
|
+
fallbackFormat: k,
|
|
1981
1981
|
unresolving: !0,
|
|
1982
1982
|
postTranslation: b === null ? void 0 : b,
|
|
1983
|
-
warnHtmlMessage:
|
|
1983
|
+
warnHtmlMessage: R,
|
|
1984
1984
|
escapeParameter: u,
|
|
1985
1985
|
messageResolver: e.messageResolver,
|
|
1986
1986
|
messageCompiler: e.messageCompiler,
|
|
@@ -1990,7 +1990,7 @@ function ka(e = {}) {
|
|
|
1990
1990
|
const v = la(p);
|
|
1991
1991
|
return r && gn(v), v;
|
|
1992
1992
|
})(), it(_, d.value, l.value);
|
|
1993
|
-
function
|
|
1993
|
+
function L() {
|
|
1994
1994
|
return [
|
|
1995
1995
|
d.value,
|
|
1996
1996
|
l.value,
|
|
@@ -1999,18 +1999,18 @@ function ka(e = {}) {
|
|
|
1999
1999
|
C.value
|
|
2000
2000
|
];
|
|
2001
2001
|
}
|
|
2002
|
-
const $ =
|
|
2002
|
+
const $ = z({
|
|
2003
2003
|
get: () => d.value,
|
|
2004
2004
|
set: (p) => {
|
|
2005
2005
|
d.value = p, _.locale = d.value;
|
|
2006
2006
|
}
|
|
2007
|
-
}),
|
|
2007
|
+
}), V = z({
|
|
2008
2008
|
get: () => l.value,
|
|
2009
2009
|
set: (p) => {
|
|
2010
2010
|
l.value = p, _.fallbackLocale = l.value, it(_, d.value, p);
|
|
2011
2011
|
}
|
|
2012
|
-
}), F =
|
|
2013
|
-
function
|
|
2012
|
+
}), F = z(() => g.value), y = /* @__PURE__ */ z(() => N.value), D = /* @__PURE__ */ z(() => C.value);
|
|
2013
|
+
function x() {
|
|
2014
2014
|
return me(b) ? b : null;
|
|
2015
2015
|
}
|
|
2016
2016
|
function O(p) {
|
|
@@ -2022,18 +2022,18 @@ function ka(e = {}) {
|
|
|
2022
2022
|
function H(p) {
|
|
2023
2023
|
p !== null && (f = Mn(p)), P = p, _.missing = f;
|
|
2024
2024
|
}
|
|
2025
|
-
const U = (p, v,
|
|
2026
|
-
|
|
2025
|
+
const U = (p, v, Y, te, le, he) => {
|
|
2026
|
+
L();
|
|
2027
2027
|
let Me;
|
|
2028
2028
|
try {
|
|
2029
2029
|
Ea.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (_.fallbackContext = t ? oa() : void 0), Me = p(_);
|
|
2030
2030
|
} finally {
|
|
2031
2031
|
__INTLIFY_PROD_DEVTOOLS__, r || (_.fallbackContext = void 0);
|
|
2032
2032
|
}
|
|
2033
|
-
if (
|
|
2034
|
-
ge(Me) && Me === Tt ||
|
|
2033
|
+
if (Y !== "translate exists" && // for not `te` (e.g `t`)
|
|
2034
|
+
ge(Me) && Me === Tt || Y === "translate exists" && !Me) {
|
|
2035
2035
|
const [mr, bo] = v();
|
|
2036
|
-
return t &&
|
|
2036
|
+
return t && w ? te(t) : le(mr);
|
|
2037
2037
|
} else {
|
|
2038
2038
|
if (he(Me))
|
|
2039
2039
|
return Me;
|
|
@@ -2044,10 +2044,10 @@ function ka(e = {}) {
|
|
|
2044
2044
|
return U((v) => Reflect.apply(Sn, null, [v, ...p]), () => Ut(...p), "translate", (v) => Reflect.apply(v.t, v, [...p]), (v) => v, (v) => W(v));
|
|
2045
2045
|
}
|
|
2046
2046
|
function X(...p) {
|
|
2047
|
-
const [v,
|
|
2047
|
+
const [v, Y, te] = p;
|
|
2048
2048
|
if (te && !ee(te))
|
|
2049
2049
|
throw dt(lt.INVALID_ARGUMENT);
|
|
2050
|
-
return J(v,
|
|
2050
|
+
return J(v, Y, Ie({ resolvedMessage: !0 }, te || {}));
|
|
2051
2051
|
}
|
|
2052
2052
|
function se(...p) {
|
|
2053
2053
|
return U((v) => Reflect.apply(yn, null, [v, ...p]), () => Pt(...p), "datetime format", (v) => Reflect.apply(v.d, v, [...p]), () => hn, (v) => W(v));
|
|
@@ -2056,7 +2056,7 @@ function ka(e = {}) {
|
|
|
2056
2056
|
return U((v) => Reflect.apply(Nn, null, [v, ...p]), () => jt(...p), "number format", (v) => Reflect.apply(v.n, v, [...p]), () => hn, (v) => W(v));
|
|
2057
2057
|
}
|
|
2058
2058
|
function fe(p) {
|
|
2059
|
-
return p.map((v) => W(v) || ge(v) || pe(v) ?
|
|
2059
|
+
return p.map((v) => W(v) || ge(v) || pe(v) ? kn(String(v)) : v);
|
|
2060
2060
|
}
|
|
2061
2061
|
const ve = {
|
|
2062
2062
|
normalize: fe,
|
|
@@ -2065,21 +2065,21 @@ function ka(e = {}) {
|
|
|
2065
2065
|
};
|
|
2066
2066
|
function oe(...p) {
|
|
2067
2067
|
return U((v) => {
|
|
2068
|
-
let
|
|
2068
|
+
let Y;
|
|
2069
2069
|
const te = v;
|
|
2070
2070
|
try {
|
|
2071
|
-
te.processor = ve,
|
|
2071
|
+
te.processor = ve, Y = Reflect.apply(Sn, null, [te, ...p]);
|
|
2072
2072
|
} finally {
|
|
2073
2073
|
te.processor = null;
|
|
2074
2074
|
}
|
|
2075
|
-
return
|
|
2076
|
-
}, () => Ut(...p), "translate", (v) => v[
|
|
2075
|
+
return Y;
|
|
2076
|
+
}, () => Ut(...p), "translate", (v) => v[Vt](...p), (v) => [kn(v)], (v) => be(v));
|
|
2077
2077
|
}
|
|
2078
2078
|
function ie(...p) {
|
|
2079
|
-
return U((v) => Reflect.apply(Nn, null, [v, ...p]), () => jt(...p), "number format", (v) => v[Wt](...p),
|
|
2079
|
+
return U((v) => Reflect.apply(Nn, null, [v, ...p]), () => jt(...p), "number format", (v) => v[Wt](...p), Rn, (v) => W(v) || be(v));
|
|
2080
2080
|
}
|
|
2081
2081
|
function Pe(...p) {
|
|
2082
|
-
return U((v) => Reflect.apply(yn, null, [v, ...p]), () => Pt(...p), "datetime format", (v) => v[
|
|
2082
|
+
return U((v) => Reflect.apply(yn, null, [v, ...p]), () => Pt(...p), "datetime format", (v) => v[xt](...p), Rn, (v) => W(v) || be(v));
|
|
2083
2083
|
}
|
|
2084
2084
|
function B(p) {
|
|
2085
2085
|
E = p, _.pluralRules = E;
|
|
@@ -2088,15 +2088,15 @@ function ka(e = {}) {
|
|
|
2088
2088
|
return U(() => {
|
|
2089
2089
|
if (!p)
|
|
2090
2090
|
return !1;
|
|
2091
|
-
const
|
|
2091
|
+
const Y = W(v) ? v : d.value, te = je(Y), le = _.messageResolver(te, p);
|
|
2092
2092
|
return ot(le) || Se(le) || W(le);
|
|
2093
|
-
}, () => [p], "translate exists", (
|
|
2093
|
+
}, () => [p], "translate exists", (Y) => Reflect.apply(Y.te, Y, [p, v]), Sa, (Y) => pe(Y));
|
|
2094
2094
|
}
|
|
2095
2095
|
function $e(p) {
|
|
2096
2096
|
let v = null;
|
|
2097
|
-
const
|
|
2098
|
-
for (let te = 0; te <
|
|
2099
|
-
const le = g.value[
|
|
2097
|
+
const Y = Kn(_, l.value, d.value);
|
|
2098
|
+
for (let te = 0; te < Y.length; te++) {
|
|
2099
|
+
const le = g.value[Y[te]] || {}, he = _.messageResolver(le, p);
|
|
2100
2100
|
if (he != null) {
|
|
2101
2101
|
v = he;
|
|
2102
2102
|
break;
|
|
@@ -2113,20 +2113,20 @@ function ka(e = {}) {
|
|
|
2113
2113
|
}
|
|
2114
2114
|
function Ue(p, v) {
|
|
2115
2115
|
if (s) {
|
|
2116
|
-
const
|
|
2117
|
-
for (const te in
|
|
2118
|
-
|
|
2119
|
-
v =
|
|
2116
|
+
const Y = { [p]: v };
|
|
2117
|
+
for (const te in Y)
|
|
2118
|
+
Re(Y, te) && mt(Y[te]);
|
|
2119
|
+
v = Y[p];
|
|
2120
2120
|
}
|
|
2121
2121
|
g.value[p] = v, _.messages = g.value;
|
|
2122
2122
|
}
|
|
2123
|
-
function
|
|
2123
|
+
function Ye(p, v) {
|
|
2124
2124
|
g.value[p] = g.value[p] || {};
|
|
2125
|
-
const
|
|
2125
|
+
const Y = { [p]: v };
|
|
2126
2126
|
if (s)
|
|
2127
|
-
for (const te in
|
|
2128
|
-
|
|
2129
|
-
v =
|
|
2127
|
+
for (const te in Y)
|
|
2128
|
+
Re(Y, te) && mt(Y[te]);
|
|
2129
|
+
v = Y[p], It(v, g.value[p]), _.messages = g.value;
|
|
2130
2130
|
}
|
|
2131
2131
|
function qe(p) {
|
|
2132
2132
|
return N.value[p] || {};
|
|
@@ -2146,15 +2146,15 @@ function ka(e = {}) {
|
|
|
2146
2146
|
function S(p, v) {
|
|
2147
2147
|
C.value[p] = Ie(C.value[p] || {}, v), _.numberFormats = C.value, Cn(_, p, v);
|
|
2148
2148
|
}
|
|
2149
|
-
|
|
2149
|
+
An++, t && on && (Mt(t.locale, (p) => {
|
|
2150
2150
|
m && (d.value = p, _.locale = p, it(_, d.value, l.value));
|
|
2151
2151
|
}), Mt(t.fallbackLocale, (p) => {
|
|
2152
2152
|
m && (l.value = p, _.fallbackLocale = p, it(_, d.value, l.value));
|
|
2153
2153
|
}));
|
|
2154
2154
|
const M = {
|
|
2155
|
-
id:
|
|
2155
|
+
id: An,
|
|
2156
2156
|
locale: $,
|
|
2157
|
-
fallbackLocale:
|
|
2157
|
+
fallbackLocale: V,
|
|
2158
2158
|
get inheritLocale() {
|
|
2159
2159
|
return m;
|
|
2160
2160
|
},
|
|
@@ -2187,22 +2187,22 @@ function ka(e = {}) {
|
|
|
2187
2187
|
j = p, _.fallbackWarn = j;
|
|
2188
2188
|
},
|
|
2189
2189
|
get fallbackRoot() {
|
|
2190
|
-
return
|
|
2190
|
+
return w;
|
|
2191
2191
|
},
|
|
2192
2192
|
set fallbackRoot(p) {
|
|
2193
|
-
|
|
2193
|
+
w = p;
|
|
2194
2194
|
},
|
|
2195
2195
|
get fallbackFormat() {
|
|
2196
|
-
return
|
|
2196
|
+
return k;
|
|
2197
2197
|
},
|
|
2198
2198
|
set fallbackFormat(p) {
|
|
2199
|
-
|
|
2199
|
+
k = p, _.fallbackFormat = k;
|
|
2200
2200
|
},
|
|
2201
2201
|
get warnHtmlMessage() {
|
|
2202
|
-
return
|
|
2202
|
+
return R;
|
|
2203
2203
|
},
|
|
2204
2204
|
set warnHtmlMessage(p) {
|
|
2205
|
-
|
|
2205
|
+
R = p, _.warnHtmlMessage = p;
|
|
2206
2206
|
},
|
|
2207
2207
|
get escapeParameter() {
|
|
2208
2208
|
return u;
|
|
@@ -2213,14 +2213,14 @@ function ka(e = {}) {
|
|
|
2213
2213
|
t: J,
|
|
2214
2214
|
getLocaleMessage: je,
|
|
2215
2215
|
setLocaleMessage: Ue,
|
|
2216
|
-
mergeLocaleMessage:
|
|
2217
|
-
getPostTranslationHandler:
|
|
2216
|
+
mergeLocaleMessage: Ye,
|
|
2217
|
+
getPostTranslationHandler: x,
|
|
2218
2218
|
setPostTranslationHandler: O,
|
|
2219
2219
|
getMissingHandler: G,
|
|
2220
2220
|
setMissingHandler: H,
|
|
2221
2221
|
[Ta]: B
|
|
2222
2222
|
};
|
|
2223
|
-
return M.datetimeFormats = y, M.numberFormats =
|
|
2223
|
+
return M.datetimeFormats = y, M.numberFormats = D, M.rt = X, M.te = _e, M.tm = Ge, M.d = se, M.n = Q, M.getDateTimeFormat = qe, M.setDateTimeFormat = o, M.mergeDateTimeFormat = i, M.getNumberFormat = c, M.setNumberFormat = h, M.mergeNumberFormat = S, M[or] = n, M[Vt] = oe, M[xt] = Pe, M[Wt] = ie, M;
|
|
2224
2224
|
}
|
|
2225
2225
|
const Qt = {
|
|
2226
2226
|
tag: {
|
|
@@ -2240,18 +2240,18 @@ const Qt = {
|
|
|
2240
2240
|
type: Object
|
|
2241
2241
|
}
|
|
2242
2242
|
};
|
|
2243
|
-
function
|
|
2243
|
+
function Ra({ slots: e }, t) {
|
|
2244
2244
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, s) => [
|
|
2245
2245
|
...r,
|
|
2246
2246
|
// prettier-ignore
|
|
2247
|
-
...s.type ===
|
|
2247
|
+
...s.type === we ? s.children : [s]
|
|
2248
2248
|
], []) : t.reduce((n, r) => {
|
|
2249
2249
|
const s = e[r];
|
|
2250
2250
|
return s && (n[r] = s()), n;
|
|
2251
2251
|
}, ae());
|
|
2252
2252
|
}
|
|
2253
2253
|
function cr() {
|
|
2254
|
-
return
|
|
2254
|
+
return we;
|
|
2255
2255
|
}
|
|
2256
2256
|
Ie({
|
|
2257
2257
|
keypath: {
|
|
@@ -2263,7 +2263,7 @@ Ie({
|
|
|
2263
2263
|
validator: (e) => ge(e) || !isNaN(e)
|
|
2264
2264
|
}
|
|
2265
2265
|
}, Qt);
|
|
2266
|
-
function
|
|
2266
|
+
function Aa(e) {
|
|
2267
2267
|
return be(e) && !W(e[0]);
|
|
2268
2268
|
}
|
|
2269
2269
|
function ur(e, t, n, r) {
|
|
@@ -2275,8 +2275,8 @@ function ur(e, t, n, r) {
|
|
|
2275
2275
|
const l = r(e.value, m, d);
|
|
2276
2276
|
let g = [m.key];
|
|
2277
2277
|
be(l) ? g = l.map((T, j) => {
|
|
2278
|
-
const
|
|
2279
|
-
return
|
|
2278
|
+
const w = s[T.type], k = w ? w({ [T.type]: T.value, index: j, parts: l }) : [T.value];
|
|
2279
|
+
return Aa(k) && (k[0].key = `${T.type}-${j}`), k;
|
|
2280
2280
|
}) : W(l) && (g = [l]);
|
|
2281
2281
|
const N = Ie(ae(), a), C = W(e.tag) || ee(e.tag) ? e.tag : cr();
|
|
2282
2282
|
return Gn(C, N, g);
|
|
@@ -2307,7 +2307,7 @@ function Ot(e = {}) {
|
|
|
2307
2307
|
throw dt(lt.MUST_BE_CALL_SETUP_TOP);
|
|
2308
2308
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2309
2309
|
throw dt(lt.NOT_INSTALLED);
|
|
2310
|
-
const n =
|
|
2310
|
+
const n = Da(t), r = Fa(n), s = ir(t), a = wa(e, s);
|
|
2311
2311
|
if (a === "global")
|
|
2312
2312
|
return Oa(r, e, s), r;
|
|
2313
2313
|
if (a === "parent") {
|
|
@@ -2318,17 +2318,17 @@ function Ot(e = {}) {
|
|
|
2318
2318
|
let d = m.__getInstance(t);
|
|
2319
2319
|
if (d == null) {
|
|
2320
2320
|
const l = Ie({}, e);
|
|
2321
|
-
"__i18n" in s && (l.__i18n = s.__i18n), r && (l.__root = r), d =
|
|
2321
|
+
"__i18n" in s && (l.__i18n = s.__i18n), r && (l.__root = r), d = La(l), m.__composerExtend && (d[Gt] = m.__composerExtend(d)), Ua(m, t, d), m.__setInstance(t, d);
|
|
2322
2322
|
}
|
|
2323
2323
|
return d;
|
|
2324
2324
|
}
|
|
2325
|
-
function
|
|
2325
|
+
function Da(e) {
|
|
2326
2326
|
const t = fr(e.isCE ? Ma : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2327
2327
|
if (!t)
|
|
2328
2328
|
throw dt(e.isCE ? lt.NOT_INSTALLED_WITH_PROVIDE : lt.UNEXPECTED_ERROR);
|
|
2329
2329
|
return t;
|
|
2330
2330
|
}
|
|
2331
|
-
function
|
|
2331
|
+
function wa(e, t) {
|
|
2332
2332
|
return Nt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2333
2333
|
}
|
|
2334
2334
|
function Fa(e) {
|
|
@@ -2367,12 +2367,12 @@ function Ua(e, t, n) {
|
|
|
2367
2367
|
Ca();
|
|
2368
2368
|
ta(Ps);
|
|
2369
2369
|
na(Qs);
|
|
2370
|
-
ra(
|
|
2370
|
+
ra(Kn);
|
|
2371
2371
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2372
|
-
const e =
|
|
2372
|
+
const e = Ke();
|
|
2373
2373
|
e.__INTLIFY__ = !0, js(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2374
2374
|
}
|
|
2375
|
-
const vt = /* @__PURE__ */
|
|
2375
|
+
const vt = /* @__PURE__ */ Ae({
|
|
2376
2376
|
__name: "InheritPermissionTooltip",
|
|
2377
2377
|
props: {
|
|
2378
2378
|
item: {
|
|
@@ -2384,15 +2384,15 @@ const vt = /* @__PURE__ */ Re({
|
|
|
2384
2384
|
const { t } = Ot();
|
|
2385
2385
|
return (n, r) => {
|
|
2386
2386
|
const s = Fe("FmIcon"), a = Fe("FmTooltip");
|
|
2387
|
-
return
|
|
2387
|
+
return K(), Oe(a, {
|
|
2388
2388
|
variant: "plain",
|
|
2389
2389
|
placement: "right",
|
|
2390
2390
|
"z-index": 50
|
|
2391
2391
|
}, {
|
|
2392
2392
|
content: de(() => [
|
|
2393
|
-
ue("div", null,
|
|
2394
|
-
(
|
|
2395
|
-
ue("div", null, "- " +
|
|
2393
|
+
ue("div", null, ke(Z(t)("team.memberForm.permissions.inherited")), 1),
|
|
2394
|
+
(K(!0), re(we, null, Ce(e.item.setNames, (m) => (K(), re("div", { key: m }, [
|
|
2395
|
+
ue("div", null, "- " + ke(m), 1)
|
|
2396
2396
|
]))), 128))
|
|
2397
2397
|
]),
|
|
2398
2398
|
default: de(() => [
|
|
@@ -2407,7 +2407,7 @@ const vt = /* @__PURE__ */ Re({
|
|
|
2407
2407
|
};
|
|
2408
2408
|
}
|
|
2409
2409
|
});
|
|
2410
|
-
function
|
|
2410
|
+
function Dn(e, t, n) {
|
|
2411
2411
|
const r = n.filter((d) => d !== "manage");
|
|
2412
2412
|
if (r.length === 0) return;
|
|
2413
2413
|
const s = e.findIndex((d) => d.subject === t && !d.inverted);
|
|
@@ -2421,15 +2421,15 @@ function wn(e, t, n) {
|
|
|
2421
2421
|
actions: Array.from(a)
|
|
2422
2422
|
});
|
|
2423
2423
|
}
|
|
2424
|
-
const
|
|
2424
|
+
const wn = Object.values(Dr), Va = {
|
|
2425
2425
|
read: "View",
|
|
2426
2426
|
create: "Duplicate",
|
|
2427
2427
|
update: "Edit"
|
|
2428
2428
|
};
|
|
2429
|
-
function
|
|
2430
|
-
const { t: s } =
|
|
2429
|
+
function xa(e, t, n, r) {
|
|
2430
|
+
const { t: s } = ze(), { getFlagValue: a, getFlag: m } = Mr(), { isFoodCourt: d } = Zn(), l = z(() => {
|
|
2431
2431
|
var G;
|
|
2432
|
-
const y = /* @__PURE__ */ new Map(),
|
|
2432
|
+
const y = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map();
|
|
2433
2433
|
for (const H of t.value) {
|
|
2434
2434
|
const U = H.category;
|
|
2435
2435
|
if (!U) continue;
|
|
@@ -2441,20 +2441,20 @@ function Va(e, t, n, r) {
|
|
|
2441
2441
|
if (n.value.includes(H.subject) || H.showByFeatureFlag && ((G = m(H.showByFeatureFlag)) == null ? void 0 : G.enabled) === !1 && a(H.showByFeatureFlag) === "true")
|
|
2442
2442
|
continue;
|
|
2443
2443
|
y.has(U) || y.set(U, []);
|
|
2444
|
-
const X =
|
|
2445
|
-
|
|
2444
|
+
const X = x.get(J) ?? 0;
|
|
2445
|
+
x.set(J, X + 1), y.get(U).push({
|
|
2446
2446
|
label: s(`permissionSet.permissionLabels.${J}`, H.label),
|
|
2447
2447
|
value: J,
|
|
2448
2448
|
optionKey: `${J}::${X}`
|
|
2449
|
-
}),
|
|
2449
|
+
}), D.has(J) || D.set(J, H);
|
|
2450
2450
|
}
|
|
2451
2451
|
return [...y.keys()].sort((H, U) => {
|
|
2452
|
-
const J =
|
|
2452
|
+
const J = wn.indexOf(H), X = wn.indexOf(U);
|
|
2453
2453
|
return J === -1 && X === -1 ? H.localeCompare(U) : J === -1 ? 1 : X === -1 ? -1 : J - X;
|
|
2454
2454
|
}).map((H) => {
|
|
2455
2455
|
const U = y.get(H), J = s(`permissionSet.categoryLabels.${H}`, H), X = /* @__PURE__ */ new Map();
|
|
2456
2456
|
for (const B of U) {
|
|
2457
|
-
const _e =
|
|
2457
|
+
const _e = D.get(B.value);
|
|
2458
2458
|
_e && X.set(B.value, _e.actions);
|
|
2459
2459
|
}
|
|
2460
2460
|
const se = U.some((B) => {
|
|
@@ -2471,7 +2471,7 @@ function Va(e, t, n, r) {
|
|
|
2471
2471
|
(B) => U.some((_e) => _e.value === B.subject) && !B.inverted && B.actions.includes("manage")
|
|
2472
2472
|
).map((B) => B.subject) : e.value.filter((B) => U.some((_e) => _e.value === B.subject) && !B.inverted).map((B) => B.subject), ve = U.find((B) => {
|
|
2473
2473
|
var _e;
|
|
2474
|
-
return (_e =
|
|
2474
|
+
return (_e = D.get(B.value)) == null ? void 0 : _e.isCategoryCover;
|
|
2475
2475
|
}), oe = (ve == null ? void 0 : ve.value) ?? null, ie = oe ? fe.get(oe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), Pe = ie.has("manage");
|
|
2476
2476
|
return {
|
|
2477
2477
|
category: H,
|
|
@@ -2488,17 +2488,17 @@ function Va(e, t, n, r) {
|
|
|
2488
2488
|
};
|
|
2489
2489
|
});
|
|
2490
2490
|
});
|
|
2491
|
-
function g(y,
|
|
2492
|
-
const
|
|
2491
|
+
function g(y, D) {
|
|
2492
|
+
const x = l.value.find((Q) => Q.category === y), O = (x == null ? void 0 : x.options) ?? [], G = new Set(O.map((Q) => Q.value)), H = new Set(D), U = /* @__PURE__ */ new Map();
|
|
2493
2493
|
for (const Q of e.value)
|
|
2494
2494
|
G.has(Q.subject) && !Q.inverted && U.set(Q.subject, Q.conditions);
|
|
2495
|
-
const J =
|
|
2495
|
+
const J = x != null && x.coverSubject ? U.get(x.coverSubject) : void 0, X = /* @__PURE__ */ new Set(), se = t.value.flatMap(
|
|
2496
2496
|
({ category: Q, showByFeatureFlag: fe, isCategoryCover: ye, ...ve }) => {
|
|
2497
2497
|
const oe = ve.subject;
|
|
2498
2498
|
if (!H.has(oe) || X.has(oe)) return [];
|
|
2499
2499
|
X.add(oe);
|
|
2500
2500
|
let ie;
|
|
2501
|
-
return U.has(oe) ? ie = U.get(oe) :
|
|
2501
|
+
return U.has(oe) ? ie = U.get(oe) : x != null && x.coverSubject && oe !== x.coverSubject && (ie = J), [
|
|
2502
2502
|
{ ...ve, ...ie !== void 0 && { conditions: ie } }
|
|
2503
2503
|
];
|
|
2504
2504
|
}
|
|
@@ -2508,29 +2508,29 @@ function Va(e, t, n, r) {
|
|
|
2508
2508
|
...se
|
|
2509
2509
|
]);
|
|
2510
2510
|
}
|
|
2511
|
-
function N(y,
|
|
2512
|
-
return
|
|
2511
|
+
function N(y, D) {
|
|
2512
|
+
return w(y, D) || I(y, D);
|
|
2513
2513
|
}
|
|
2514
2514
|
function C(y) {
|
|
2515
|
-
return y.options.length > 0 && y.options.every((
|
|
2515
|
+
return y.options.length > 0 && y.options.every((D) => N(y, D.value));
|
|
2516
2516
|
}
|
|
2517
2517
|
function T(y) {
|
|
2518
2518
|
return y.options.length === 0 || C(y) ? !1 : y.options.some(
|
|
2519
|
-
(
|
|
2519
|
+
(D) => N(y, D.value) || k(y, D.value).length > 0
|
|
2520
2520
|
);
|
|
2521
2521
|
}
|
|
2522
2522
|
function j(y) {
|
|
2523
|
-
const
|
|
2523
|
+
const D = new Set(y.options.map((O) => O.value)), x = e.value.filter((O) => !D.has(O.subject));
|
|
2524
2524
|
if (C(y))
|
|
2525
|
-
r("update:model-value",
|
|
2525
|
+
r("update:model-value", x);
|
|
2526
2526
|
else {
|
|
2527
2527
|
const O = /* @__PURE__ */ new Map();
|
|
2528
2528
|
for (const J of e.value)
|
|
2529
|
-
|
|
2529
|
+
D.has(J.subject) && !J.inverted && O.set(J.subject, J.conditions);
|
|
2530
2530
|
const G = y.coverSubject ? O.get(y.coverSubject) : void 0, H = /* @__PURE__ */ new Set(), U = t.value.flatMap(
|
|
2531
2531
|
({ category: J, showByFeatureFlag: X, isCategoryCover: se, ...Q }) => {
|
|
2532
2532
|
const fe = Q.subject;
|
|
2533
|
-
if (!
|
|
2533
|
+
if (!D.has(fe) || H.has(fe)) return [];
|
|
2534
2534
|
H.add(fe);
|
|
2535
2535
|
let ye;
|
|
2536
2536
|
return O.has(fe) ? ye = O.get(fe) : y.coverSubject && fe !== y.coverSubject && (ye = G), [
|
|
@@ -2538,39 +2538,39 @@ function Va(e, t, n, r) {
|
|
|
2538
2538
|
];
|
|
2539
2539
|
}
|
|
2540
2540
|
);
|
|
2541
|
-
r("update:model-value", [...
|
|
2541
|
+
r("update:model-value", [...x, ...U]);
|
|
2542
2542
|
}
|
|
2543
2543
|
}
|
|
2544
|
-
function
|
|
2545
|
-
const
|
|
2546
|
-
return
|
|
2544
|
+
function w(y, D) {
|
|
2545
|
+
const x = y.selectedActionsMap.get(D);
|
|
2546
|
+
return x ? x.has("manage") : !1;
|
|
2547
2547
|
}
|
|
2548
|
-
function
|
|
2549
|
-
const
|
|
2550
|
-
return
|
|
2551
|
-
(G) => u(y,
|
|
2548
|
+
function k(y, D) {
|
|
2549
|
+
const x = y.permissionActionsMap.get(D);
|
|
2550
|
+
return x ? x.filter((G) => G !== "manage").filter(
|
|
2551
|
+
(G) => u(y, D, G) || E(y, D, G)
|
|
2552
2552
|
) : [];
|
|
2553
2553
|
}
|
|
2554
|
-
function P(y,
|
|
2555
|
-
return I(y,
|
|
2554
|
+
function P(y, D) {
|
|
2555
|
+
return I(y, D) ? !1 : !w(y, D) && k(y, D).length > 0;
|
|
2556
2556
|
}
|
|
2557
|
-
function f(y,
|
|
2558
|
-
if (!y.coverSubject ||
|
|
2559
|
-
const
|
|
2557
|
+
function f(y, D) {
|
|
2558
|
+
if (!y.coverSubject || D === y.coverSubject) return;
|
|
2559
|
+
const x = e.value.find(
|
|
2560
2560
|
(O) => !O.inverted && O.subject === y.coverSubject
|
|
2561
2561
|
);
|
|
2562
|
-
return (
|
|
2562
|
+
return (x == null ? void 0 : x.conditions) || void 0;
|
|
2563
2563
|
}
|
|
2564
|
-
function b(y,
|
|
2565
|
-
if (
|
|
2566
|
-
const O = t.value.find((Q) => Q.subject ===
|
|
2564
|
+
function b(y, D, x) {
|
|
2565
|
+
if (x) {
|
|
2566
|
+
const O = t.value.find((Q) => Q.subject === D);
|
|
2567
2567
|
if (!O) return;
|
|
2568
2568
|
const {
|
|
2569
2569
|
category: G,
|
|
2570
2570
|
showByFeatureFlag: H,
|
|
2571
2571
|
isCategoryCover: U,
|
|
2572
2572
|
...J
|
|
2573
|
-
} = O, X = f(y,
|
|
2573
|
+
} = O, X = f(y, D), se = e.value.filter((Q) => Q.subject !== D);
|
|
2574
2574
|
se.push({
|
|
2575
2575
|
...J,
|
|
2576
2576
|
...X !== void 0 && { conditions: X }
|
|
@@ -2578,33 +2578,33 @@ function Va(e, t, n, r) {
|
|
|
2578
2578
|
} else
|
|
2579
2579
|
r(
|
|
2580
2580
|
"update:model-value",
|
|
2581
|
-
e.value.filter((O) => O.subject !==
|
|
2581
|
+
e.value.filter((O) => O.subject !== D)
|
|
2582
2582
|
);
|
|
2583
2583
|
}
|
|
2584
|
-
function
|
|
2585
|
-
const
|
|
2586
|
-
return
|
|
2584
|
+
function R(y, D) {
|
|
2585
|
+
const x = y.permissionActionsMap.get(D);
|
|
2586
|
+
return x ? x.some((O) => O !== "manage") : !1;
|
|
2587
2587
|
}
|
|
2588
|
-
function u(y,
|
|
2589
|
-
const O = y.selectedActionsMap.get(
|
|
2590
|
-
return O ? O.has(
|
|
2588
|
+
function u(y, D, x) {
|
|
2589
|
+
const O = y.selectedActionsMap.get(D);
|
|
2590
|
+
return O ? O.has(x) : !1;
|
|
2591
2591
|
}
|
|
2592
|
-
function I(y,
|
|
2593
|
-
return !y.coverSubject ||
|
|
2592
|
+
function I(y, D) {
|
|
2593
|
+
return !y.coverSubject || D === y.coverSubject ? !1 : y.coverCoversAll;
|
|
2594
2594
|
}
|
|
2595
|
-
function E(y,
|
|
2596
|
-
return !y.coverSubject ||
|
|
2595
|
+
function E(y, D, x) {
|
|
2596
|
+
return !y.coverSubject || D === y.coverSubject ? !1 : y.coverCoversAll ? !0 : y.coverSelectedActions.has(x);
|
|
2597
2597
|
}
|
|
2598
|
-
function _(y,
|
|
2599
|
-
const O = y.permissionActionsMap.get(
|
|
2600
|
-
return O ? O.includes(
|
|
2598
|
+
function _(y, D, x) {
|
|
2599
|
+
const O = y.permissionActionsMap.get(D);
|
|
2600
|
+
return O ? O.includes(x) : !1;
|
|
2601
2601
|
}
|
|
2602
|
-
function
|
|
2602
|
+
function A(y, D, x) {
|
|
2603
2603
|
const O = [...e.value], G = O.findIndex((U) => U.subject === y && !U.inverted);
|
|
2604
|
-
if (
|
|
2604
|
+
if (x)
|
|
2605
2605
|
if (G >= 0) {
|
|
2606
2606
|
const U = { ...O[G] }, J = new Set(U.actions);
|
|
2607
|
-
J.add(
|
|
2607
|
+
J.add(D), U.actions = Array.from(J), O[G] = U;
|
|
2608
2608
|
} else {
|
|
2609
2609
|
const U = t.value.find((ve) => ve.subject === y);
|
|
2610
2610
|
if (!U) return;
|
|
@@ -2618,46 +2618,46 @@ function Va(e, t, n, r) {
|
|
|
2618
2618
|
), ye = fe ? f(fe, y) : void 0;
|
|
2619
2619
|
O.push({
|
|
2620
2620
|
...Q,
|
|
2621
|
-
actions: [
|
|
2621
|
+
actions: [D],
|
|
2622
2622
|
...ye !== void 0 && { conditions: ye }
|
|
2623
2623
|
});
|
|
2624
2624
|
}
|
|
2625
2625
|
else if (G >= 0) {
|
|
2626
|
-
const U = { ...O[G] }, J = U.actions.filter((X) => X !==
|
|
2626
|
+
const U = { ...O[G] }, J = U.actions.filter((X) => X !== D);
|
|
2627
2627
|
J.length === 0 ? O.splice(G, 1) : (U.actions = J, O[G] = U);
|
|
2628
2628
|
}
|
|
2629
2629
|
const H = t.value.find((U) => U.subject === y);
|
|
2630
|
-
H &&
|
|
2630
|
+
H && Dn(O, y, H.actions), r("update:model-value", O);
|
|
2631
2631
|
}
|
|
2632
|
-
function
|
|
2633
|
-
const
|
|
2634
|
-
(O) => _(y, O.value,
|
|
2632
|
+
function L(y, D) {
|
|
2633
|
+
const x = y.options.filter(
|
|
2634
|
+
(O) => _(y, O.value, D)
|
|
2635
2635
|
);
|
|
2636
|
-
return
|
|
2637
|
-
(O) => u(y, O.value,
|
|
2636
|
+
return x.length === 0 ? !1 : x.every(
|
|
2637
|
+
(O) => u(y, O.value, D) || E(y, O.value, D)
|
|
2638
2638
|
);
|
|
2639
2639
|
}
|
|
2640
|
-
function $(y,
|
|
2641
|
-
const
|
|
2642
|
-
(G) => _(y, G.value,
|
|
2640
|
+
function $(y, D) {
|
|
2641
|
+
const x = y.options.filter(
|
|
2642
|
+
(G) => _(y, G.value, D)
|
|
2643
2643
|
);
|
|
2644
|
-
if (
|
|
2645
|
-
const O =
|
|
2646
|
-
(G) => u(y, G.value,
|
|
2644
|
+
if (x.length === 0) return !1;
|
|
2645
|
+
const O = x.filter(
|
|
2646
|
+
(G) => u(y, G.value, D) || E(y, G.value, D)
|
|
2647
2647
|
).length;
|
|
2648
|
-
return O > 0 && O <
|
|
2648
|
+
return O > 0 && O < x.length;
|
|
2649
2649
|
}
|
|
2650
|
-
function
|
|
2650
|
+
function V(y, D, x) {
|
|
2651
2651
|
const O = [...e.value];
|
|
2652
2652
|
for (const G of y.options) {
|
|
2653
|
-
if (!_(y, G.value,
|
|
2653
|
+
if (!_(y, G.value, D)) continue;
|
|
2654
2654
|
const H = G.value, U = O.findIndex(
|
|
2655
2655
|
(X) => X.subject === H && !X.inverted
|
|
2656
2656
|
);
|
|
2657
|
-
if (
|
|
2657
|
+
if (x)
|
|
2658
2658
|
if (U >= 0) {
|
|
2659
2659
|
const X = { ...O[U] }, se = new Set(X.actions);
|
|
2660
|
-
se.add(
|
|
2660
|
+
se.add(D), X.actions = Array.from(se), O[U] = X;
|
|
2661
2661
|
} else {
|
|
2662
2662
|
const X = t.value.find((oe) => oe.subject === H);
|
|
2663
2663
|
if (!X) continue;
|
|
@@ -2669,22 +2669,22 @@ function Va(e, t, n, r) {
|
|
|
2669
2669
|
} = X, ve = f(y, H);
|
|
2670
2670
|
O.push({
|
|
2671
2671
|
...ye,
|
|
2672
|
-
actions: [
|
|
2672
|
+
actions: [D],
|
|
2673
2673
|
...ve !== void 0 && { conditions: ve }
|
|
2674
2674
|
});
|
|
2675
2675
|
}
|
|
2676
2676
|
else if (U >= 0) {
|
|
2677
|
-
const X = { ...O[U] }, se = X.actions.filter((Q) => Q !==
|
|
2677
|
+
const X = { ...O[U] }, se = X.actions.filter((Q) => Q !== D);
|
|
2678
2678
|
se.length === 0 ? O.splice(U, 1) : (X.actions = se, O[U] = X);
|
|
2679
2679
|
}
|
|
2680
2680
|
const J = t.value.find((X) => X.subject === H);
|
|
2681
|
-
J &&
|
|
2681
|
+
J && Dn(O, H, J.actions);
|
|
2682
2682
|
}
|
|
2683
2683
|
r("update:model-value", O);
|
|
2684
2684
|
}
|
|
2685
2685
|
function F(y) {
|
|
2686
|
-
const
|
|
2687
|
-
return s(
|
|
2686
|
+
const D = `permissionSet.actionLabels.${y}`, x = Va[y] ?? y.charAt(0).toUpperCase() + y.slice(1);
|
|
2687
|
+
return s(D, x);
|
|
2688
2688
|
}
|
|
2689
2689
|
return {
|
|
2690
2690
|
categoryGroups: l,
|
|
@@ -2692,22 +2692,22 @@ function Va(e, t, n, r) {
|
|
|
2692
2692
|
isAllManageChecked: C,
|
|
2693
2693
|
isAllManageIndeterminate: T,
|
|
2694
2694
|
toggleAllManage: j,
|
|
2695
|
-
isManageChecked:
|
|
2695
|
+
isManageChecked: w,
|
|
2696
2696
|
isManageIndeterminate: P,
|
|
2697
2697
|
toggleManage: b,
|
|
2698
|
-
hasNonManageActions:
|
|
2698
|
+
hasNonManageActions: R,
|
|
2699
2699
|
isActionChecked: u,
|
|
2700
2700
|
isRowFullyCoveredByCover: I,
|
|
2701
2701
|
isActionCoveredByCover: E,
|
|
2702
2702
|
permissionDefinesAction: _,
|
|
2703
|
-
toggleAction:
|
|
2704
|
-
isAllActionChecked:
|
|
2703
|
+
toggleAction: A,
|
|
2704
|
+
isAllActionChecked: L,
|
|
2705
2705
|
isAllActionIndeterminate: $,
|
|
2706
|
-
toggleAllAction:
|
|
2706
|
+
toggleAllAction: V,
|
|
2707
2707
|
actionLabel: F
|
|
2708
2708
|
};
|
|
2709
2709
|
}
|
|
2710
|
-
const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" },
|
|
2710
|
+
const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Ya = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Ba = ["onClick"], Za = { class: "flex justify-center" }, Xa = { class: "flex items-center min-w-0 gap-8" }, Ha = ["title", "onClick"], Ja = { class: "flex justify-center" }, $a = /* @__PURE__ */ Ae({
|
|
2711
2711
|
__name: "BasePermission",
|
|
2712
2712
|
props: {
|
|
2713
2713
|
modelValue: {
|
|
@@ -2734,7 +2734,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
2734
2734
|
},
|
|
2735
2735
|
emits: ["update:model-value"],
|
|
2736
2736
|
setup(e, { emit: t }) {
|
|
2737
|
-
const n = e, r = t, { t: s } =
|
|
2737
|
+
const n = e, r = t, { t: s } = ze(), a = z(() => [...Yn, ...n.additionalPermissions]), {
|
|
2738
2738
|
categoryGroups: m,
|
|
2739
2739
|
isAllManageChecked: d,
|
|
2740
2740
|
isAllManageIndeterminate: l,
|
|
@@ -2743,140 +2743,140 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
2743
2743
|
isManageIndeterminate: C,
|
|
2744
2744
|
toggleManage: T,
|
|
2745
2745
|
isActionChecked: j,
|
|
2746
|
-
isRowFullyCoveredByCover:
|
|
2747
|
-
isActionCoveredByCover:
|
|
2746
|
+
isRowFullyCoveredByCover: w,
|
|
2747
|
+
isActionCoveredByCover: k,
|
|
2748
2748
|
permissionDefinesAction: P,
|
|
2749
2749
|
toggleAction: f,
|
|
2750
2750
|
isAllActionChecked: b,
|
|
2751
|
-
isAllActionIndeterminate:
|
|
2751
|
+
isAllActionIndeterminate: R,
|
|
2752
2752
|
toggleAllAction: u,
|
|
2753
2753
|
actionLabel: I
|
|
2754
|
-
} =
|
|
2754
|
+
} = xa(
|
|
2755
2755
|
qt(n, "modelValue"),
|
|
2756
2756
|
a,
|
|
2757
2757
|
qt(n, "excludedSubjects"),
|
|
2758
|
-
(
|
|
2758
|
+
(A, L) => r("update:model-value", L)
|
|
2759
2759
|
);
|
|
2760
|
-
function E(
|
|
2761
|
-
const
|
|
2762
|
-
return
|
|
2760
|
+
function E(A) {
|
|
2761
|
+
const L = A.selectedSubjects.length;
|
|
2762
|
+
return L === 0 && n.layout !== "leading" ? "" : s("team.memberForm.permissions.allowedCount", { count: L });
|
|
2763
2763
|
}
|
|
2764
|
-
function _(
|
|
2765
|
-
return N(
|
|
2766
|
-
($) => P(
|
|
2764
|
+
function _(A, L) {
|
|
2765
|
+
return N(A, L) || w(A, L) ? !0 : A.actionColumns.some(
|
|
2766
|
+
($) => P(A, L, $) && (j(A, L, $) || k(A, L, $))
|
|
2767
2767
|
);
|
|
2768
2768
|
}
|
|
2769
|
-
return (
|
|
2769
|
+
return (A, L) => {
|
|
2770
2770
|
const $ = Fe("FmCheckbox");
|
|
2771
|
-
return
|
|
2772
|
-
(
|
|
2773
|
-
key:
|
|
2774
|
-
subtitle: E(
|
|
2771
|
+
return K(), re("div", Wa, [
|
|
2772
|
+
(K(!0), re(we, null, Ce(Z(m), (V) => (K(), Oe(Zt, {
|
|
2773
|
+
key: V.category,
|
|
2774
|
+
subtitle: E(V),
|
|
2775
2775
|
layout: e.layout,
|
|
2776
2776
|
"initially-collapsed": e.layout === "leading"
|
|
2777
2777
|
}, {
|
|
2778
2778
|
title: de(() => [
|
|
2779
2779
|
ue("p", {
|
|
2780
2780
|
class: Ne(e.layout === "leading" ? "text-[18px] font-semibold leading-[24px] tracking-[-0.27px]" : "fm-typo-en-title-sm-600")
|
|
2781
|
-
},
|
|
2781
|
+
}, ke(V.label), 3)
|
|
2782
2782
|
]),
|
|
2783
2783
|
default: de(() => [
|
|
2784
2784
|
ue("div", Ga, [
|
|
2785
2785
|
ue("div", {
|
|
2786
2786
|
class: "grid items-center px-12 py-8",
|
|
2787
2787
|
style: rt({
|
|
2788
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2788
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${V.actionColumns.length + 1}, 80px)`
|
|
2789
2789
|
})
|
|
2790
2790
|
}, [
|
|
2791
|
-
|
|
2792
|
-
ue("div",
|
|
2793
|
-
(
|
|
2791
|
+
L[0] || (L[0] = ue("div", null, null, -1)),
|
|
2792
|
+
ue("div", Ya, ke(Z(s)("team.memberForm.permissions.columnManage")), 1),
|
|
2793
|
+
(K(!0), re(we, null, Ce(V.actionColumns, (F) => (K(), re("div", {
|
|
2794
2794
|
key: `header-${F}`,
|
|
2795
2795
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2796
|
-
},
|
|
2796
|
+
}, ke(Z(I)(F)), 1))), 128))
|
|
2797
2797
|
], 4),
|
|
2798
2798
|
ue("div", {
|
|
2799
2799
|
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
2800
2800
|
style: rt({
|
|
2801
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2801
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${V.actionColumns.length + 1}, 80px)`
|
|
2802
2802
|
})
|
|
2803
2803
|
}, [
|
|
2804
2804
|
ue("div", {
|
|
2805
2805
|
class: "cursor-pointer font-semibold",
|
|
2806
|
-
onClick: (F) => !e.disable &&
|
|
2807
|
-
},
|
|
2808
|
-
ue("div",
|
|
2806
|
+
onClick: (F) => !e.disable && Z(g)(V)
|
|
2807
|
+
}, ke(Z(s)("team.labels.all")), 9, Ba),
|
|
2808
|
+
ue("div", Za, [
|
|
2809
2809
|
ce($, {
|
|
2810
|
-
"model-value":
|
|
2811
|
-
indeterminate:
|
|
2810
|
+
"model-value": Z(d)(V),
|
|
2811
|
+
indeterminate: Z(l)(V),
|
|
2812
2812
|
value: !0,
|
|
2813
2813
|
disabled: e.disable,
|
|
2814
2814
|
size: "sm",
|
|
2815
2815
|
dense: "",
|
|
2816
|
-
"onUpdate:modelValue": (F) =>
|
|
2816
|
+
"onUpdate:modelValue": (F) => Z(g)(V)
|
|
2817
2817
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2818
2818
|
]),
|
|
2819
|
-
(
|
|
2819
|
+
(K(!0), re(we, null, Ce(V.actionColumns, (F) => (K(), re("div", {
|
|
2820
2820
|
key: `all-${F}`,
|
|
2821
2821
|
class: "flex justify-center"
|
|
2822
2822
|
}, [
|
|
2823
2823
|
ce($, {
|
|
2824
|
-
"model-value":
|
|
2825
|
-
indeterminate:
|
|
2824
|
+
"model-value": Z(b)(V, F),
|
|
2825
|
+
indeterminate: Z(R)(V, F),
|
|
2826
2826
|
value: F,
|
|
2827
2827
|
disabled: e.disable,
|
|
2828
2828
|
size: "sm",
|
|
2829
2829
|
dense: "",
|
|
2830
|
-
"onUpdate:modelValue": (y) =>
|
|
2830
|
+
"onUpdate:modelValue": (y) => Z(u)(V, F, y)
|
|
2831
2831
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2832
2832
|
]))), 128))
|
|
2833
2833
|
], 4),
|
|
2834
|
-
|
|
2835
|
-
(
|
|
2834
|
+
L[1] || (L[1] = ue("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2835
|
+
(K(!0), re(we, null, Ce(V.options, (F) => (K(), re("div", {
|
|
2836
2836
|
key: F.optionKey,
|
|
2837
2837
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2838
2838
|
style: rt({
|
|
2839
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2839
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${V.actionColumns.length + 1}, 80px)`
|
|
2840
2840
|
})
|
|
2841
2841
|
}, [
|
|
2842
2842
|
ue("div", Xa, [
|
|
2843
2843
|
ue("span", {
|
|
2844
2844
|
class: "block truncate cursor-pointer",
|
|
2845
2845
|
title: F.label,
|
|
2846
|
-
onClick: (y) => !e.disable && !
|
|
2847
|
-
},
|
|
2848
|
-
|
|
2846
|
+
onClick: (y) => !e.disable && !Z(w)(V, F.value) && Z(T)(V, F.value, !Z(N)(V, F.value))
|
|
2847
|
+
}, ke(F.label), 9, Ha),
|
|
2848
|
+
Le(A.$slots, `checkbox-${F.value}-append`, {
|
|
2849
2849
|
option: F,
|
|
2850
|
-
isEffectiveSelected: _(
|
|
2851
|
-
isCoveredByCover:
|
|
2850
|
+
isEffectiveSelected: _(V, F.value),
|
|
2851
|
+
isCoveredByCover: Z(w)(V, F.value) || V.actionColumns.some((y) => Z(k)(V, F.value, y))
|
|
2852
2852
|
}),
|
|
2853
|
-
|
|
2853
|
+
Le(A.$slots, `checkbox-${F.value}-icon`, {
|
|
2854
2854
|
option: F,
|
|
2855
|
-
isEffectiveSelected: _(
|
|
2856
|
-
isCoveredByCover:
|
|
2855
|
+
isEffectiveSelected: _(V, F.value),
|
|
2856
|
+
isCoveredByCover: Z(w)(V, F.value) || V.actionColumns.some((y) => Z(k)(V, F.value, y))
|
|
2857
2857
|
})
|
|
2858
2858
|
]),
|
|
2859
2859
|
ue("div", Ja, [
|
|
2860
2860
|
ce($, {
|
|
2861
|
-
"model-value":
|
|
2861
|
+
"model-value": Z(N)(V, F.value) || Z(w)(V, F.value),
|
|
2862
2862
|
value: F.value,
|
|
2863
|
-
disabled: e.disable ||
|
|
2864
|
-
indeterminate:
|
|
2863
|
+
disabled: e.disable || Z(w)(V, F.value),
|
|
2864
|
+
indeterminate: Z(C)(V, F.value),
|
|
2865
2865
|
size: "sm",
|
|
2866
|
-
"onUpdate:modelValue": (y) =>
|
|
2866
|
+
"onUpdate:modelValue": (y) => Z(T)(V, F.value, y)
|
|
2867
2867
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2868
2868
|
]),
|
|
2869
|
-
(
|
|
2869
|
+
(K(!0), re(we, null, Ce(V.actionColumns, (y) => (K(), re("div", {
|
|
2870
2870
|
key: `${F.optionKey}-${y}`,
|
|
2871
2871
|
class: "flex justify-center"
|
|
2872
2872
|
}, [
|
|
2873
|
-
|
|
2873
|
+
Z(P)(V, F.value, y) ? (K(), Oe($, {
|
|
2874
2874
|
key: 0,
|
|
2875
|
-
"model-value":
|
|
2875
|
+
"model-value": Z(j)(V, F.value, y) || Z(k)(V, F.value, y),
|
|
2876
2876
|
value: y,
|
|
2877
|
-
disabled: e.disable ||
|
|
2877
|
+
disabled: e.disable || Z(k)(V, F.value, y),
|
|
2878
2878
|
size: "sm",
|
|
2879
|
-
"onUpdate:modelValue": (
|
|
2879
|
+
"onUpdate:modelValue": (D) => Z(f)(F.value, y, D)
|
|
2880
2880
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Te("", !0)
|
|
2881
2881
|
]))), 128))
|
|
2882
2882
|
], 4))), 128))
|
|
@@ -2887,13 +2887,13 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
2887
2887
|
]);
|
|
2888
2888
|
};
|
|
2889
2889
|
}
|
|
2890
|
-
}),
|
|
2890
|
+
}), Ka = { class: "space-y-16" }, za = {
|
|
2891
2891
|
key: 0,
|
|
2892
2892
|
class: "flex fm-typo-en-title-sm-600"
|
|
2893
2893
|
}, Qa = {
|
|
2894
2894
|
key: 0,
|
|
2895
2895
|
class: "q-mr-xs text-red col"
|
|
2896
|
-
}, qa = { class: "form-input" }, eo = /* @__PURE__ */
|
|
2896
|
+
}, qa = { class: "form-input" }, eo = /* @__PURE__ */ Ae({
|
|
2897
2897
|
__name: "AppForm",
|
|
2898
2898
|
props: {
|
|
2899
2899
|
title: {
|
|
@@ -2911,25 +2911,25 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
2911
2911
|
},
|
|
2912
2912
|
setup(e) {
|
|
2913
2913
|
const t = e;
|
|
2914
|
-
return (n, r) => (
|
|
2915
|
-
|
|
2916
|
-
t.title ? (
|
|
2914
|
+
return (n, r) => (K(), re("div", Ka, [
|
|
2915
|
+
Le(n.$slots, "top", {}, () => [
|
|
2916
|
+
t.title ? (K(), re("div", za, [
|
|
2917
2917
|
ue("div", null, [
|
|
2918
|
-
t.required ? (
|
|
2919
|
-
hr(
|
|
2918
|
+
t.required ? (K(), re("span", Qa, "*")) : Te("", !0),
|
|
2919
|
+
hr(ke(t.title), 1)
|
|
2920
2920
|
]),
|
|
2921
|
-
|
|
2921
|
+
Le(n.$slots, "title-right")
|
|
2922
2922
|
])) : Te("", !0)
|
|
2923
2923
|
]),
|
|
2924
2924
|
ue("div", qa, [
|
|
2925
|
-
|
|
2925
|
+
Le(n.$slots, "default")
|
|
2926
2926
|
])
|
|
2927
2927
|
]));
|
|
2928
2928
|
}
|
|
2929
2929
|
}), to = { class: "col flex items-center" }, no = {
|
|
2930
2930
|
key: 1,
|
|
2931
2931
|
class: "q-pa-sm form-error-message text-error"
|
|
2932
|
-
}, dr = /* @__PURE__ */
|
|
2932
|
+
}, dr = /* @__PURE__ */ Ae({
|
|
2933
2933
|
__name: "CheckboxInput",
|
|
2934
2934
|
props: {
|
|
2935
2935
|
options: {
|
|
@@ -2987,36 +2987,36 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
2987
2987
|
},
|
|
2988
2988
|
emits: ["update:model-value"],
|
|
2989
2989
|
setup(e, { emit: t }) {
|
|
2990
|
-
const n = e, r = t, { t: s } =
|
|
2991
|
-
() => n.modelValue.filter((
|
|
2992
|
-
), C =
|
|
2990
|
+
const n = e, r = t, { t: s } = ze(), a = st(!1), m = br(), d = z(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), l = `checkbox-${Pr(6)}`, g = z(() => d.value !== !0), N = z(
|
|
2991
|
+
() => n.modelValue.filter((k) => n.options.some((P) => P.value === k))
|
|
2992
|
+
), C = z(
|
|
2993
2993
|
() => typeof n.showAllToggle == "boolean" ? s("team.labels.all") : n.showAllToggle
|
|
2994
|
-
), T =
|
|
2994
|
+
), T = z(() => n.options.length > 0 && n.options.length === N.value.length);
|
|
2995
2995
|
function j() {
|
|
2996
|
-
const
|
|
2996
|
+
const k = n.modelValue.filter((P) => !N.value.includes(P));
|
|
2997
2997
|
if (T.value === !0)
|
|
2998
|
-
r("update:model-value",
|
|
2998
|
+
r("update:model-value", k);
|
|
2999
2999
|
else {
|
|
3000
3000
|
const P = n.includeDisabledOptionsWhenSelectAll ? n.options.map((f) => f.value) : n.options.filter((f) => !f.disabled).map((f) => f.value);
|
|
3001
|
-
r("update:model-value", [...
|
|
3001
|
+
r("update:model-value", [...k, ...P]);
|
|
3002
3002
|
}
|
|
3003
3003
|
}
|
|
3004
|
-
function
|
|
3004
|
+
function w(k, P) {
|
|
3005
3005
|
let f = Hn(n.modelValue);
|
|
3006
|
-
P ? f.every((b) => b !==
|
|
3006
|
+
P ? f.every((b) => b !== k) && f.push(k) : f = f.filter((b) => b !== k), r("update:model-value", f);
|
|
3007
3007
|
}
|
|
3008
|
-
return (
|
|
3008
|
+
return (k, P) => {
|
|
3009
3009
|
const f = Fe("FmCheckbox");
|
|
3010
|
-
return
|
|
3010
|
+
return K(), Oe(eo, {
|
|
3011
3011
|
id: l,
|
|
3012
3012
|
title: e.title,
|
|
3013
3013
|
required: !1
|
|
3014
3014
|
}, {
|
|
3015
3015
|
top: de(() => [
|
|
3016
|
-
|
|
3016
|
+
Le(k.$slots, "top")
|
|
3017
3017
|
]),
|
|
3018
3018
|
default: de(() => [
|
|
3019
|
-
n.showAllToggle ? (
|
|
3019
|
+
n.showAllToggle ? (K(), Oe(f, {
|
|
3020
3020
|
key: 0,
|
|
3021
3021
|
"model-value": T.value,
|
|
3022
3022
|
disabled: e.disable,
|
|
@@ -3027,10 +3027,10 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3027
3027
|
value: C.value,
|
|
3028
3028
|
"onUpdate:modelValue": j
|
|
3029
3029
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Te("", !0),
|
|
3030
|
-
(
|
|
3030
|
+
(K(!0), re(we, null, Ce(e.options, (b, R) => (K(), re("div", {
|
|
3031
3031
|
key: b.value,
|
|
3032
|
-
style: rt(`margin-bottom: ${
|
|
3033
|
-
class: Ne(
|
|
3032
|
+
style: rt(`margin-bottom: ${R < e.options.length - 1 ? n.gutter : 0}px`),
|
|
3033
|
+
class: Ne(R < e.options.length - 1 ? "q-mb-sm" : "")
|
|
3034
3034
|
}, [
|
|
3035
3035
|
ue("div", {
|
|
3036
3036
|
class: Ne(["row justify-between", e.alignCenter ? "items-center" : "items-start"])
|
|
@@ -3042,43 +3042,43 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3042
3042
|
size: "sm",
|
|
3043
3043
|
label: b.label,
|
|
3044
3044
|
value: b.label,
|
|
3045
|
-
"onUpdate:modelValue": (u) =>
|
|
3045
|
+
"onUpdate:modelValue": (u) => w(b.value, u)
|
|
3046
3046
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
3047
|
-
|
|
3047
|
+
Le(k.$slots, `checkbox-${b.key || b.value}-append`, {
|
|
3048
3048
|
option: b,
|
|
3049
3049
|
selected: e.modelValue.includes(b.value)
|
|
3050
3050
|
})
|
|
3051
3051
|
]),
|
|
3052
|
-
|
|
3052
|
+
Z(m)[`checkbox-${b.key || b.value}-end`] && (e.modelValue.includes(b.value) || e.falsyShowSlot) ? (K(), re("div", {
|
|
3053
3053
|
key: 0,
|
|
3054
3054
|
class: Ne([{ "q-checkbox disabled": e.disable || b.disabled }, "col"])
|
|
3055
3055
|
}, [
|
|
3056
|
-
|
|
3056
|
+
Le(k.$slots, `checkbox-${b.key || b.value}-end`, {
|
|
3057
3057
|
option: b,
|
|
3058
3058
|
value: e.modelValue.includes(b.value),
|
|
3059
3059
|
disable: e.disable || b.disabled
|
|
3060
3060
|
})
|
|
3061
3061
|
], 2)) : Te("", !0)
|
|
3062
3062
|
], 2),
|
|
3063
|
-
|
|
3063
|
+
Z(m)[`checkbox-${b.key || b.value}-bottom`] && (e.modelValue.includes(b.value) || e.falsyShowSlot) ? (K(), re("div", {
|
|
3064
3064
|
key: 0,
|
|
3065
3065
|
class: Ne(["q-mt-sm", { "q-checkbox disabled": e.disable || b.disabled }]),
|
|
3066
3066
|
style: rt(`margin-left: ${e.bottomSlotIndent}`)
|
|
3067
3067
|
}, [
|
|
3068
|
-
|
|
3068
|
+
Le(k.$slots, `checkbox-${b.key || b.value}-bottom`, {
|
|
3069
3069
|
option: b,
|
|
3070
3070
|
disable: e.disable || b.disabled,
|
|
3071
3071
|
value: e.modelValue.includes(b.value)
|
|
3072
3072
|
})
|
|
3073
3073
|
], 6)) : Te("", !0)
|
|
3074
3074
|
], 6))), 128)),
|
|
3075
|
-
a.value && g.value ? (
|
|
3075
|
+
a.value && g.value ? (K(), re("div", no, ke(d.value), 1)) : Te("", !0)
|
|
3076
3076
|
]),
|
|
3077
3077
|
_: 3
|
|
3078
3078
|
}, 8, ["title"]);
|
|
3079
3079
|
};
|
|
3080
3080
|
}
|
|
3081
|
-
}), ht = "includedFuture", Fn = /* @__PURE__ */
|
|
3081
|
+
}), ht = "includedFuture", Fn = /* @__PURE__ */ Ae({
|
|
3082
3082
|
__name: "ConditionPermission",
|
|
3083
3083
|
props: {
|
|
3084
3084
|
modelValue: {
|
|
@@ -3105,7 +3105,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3105
3105
|
},
|
|
3106
3106
|
emits: ["update:model-value"],
|
|
3107
3107
|
setup(e, { emit: t }) {
|
|
3108
|
-
const n = e, r = t, { t: s } =
|
|
3108
|
+
const n = e, r = t, { t: s } = ze(), a = z(() => [
|
|
3109
3109
|
{
|
|
3110
3110
|
label: s("team.memberForm.permissions.includedFuture", { context: n.context }),
|
|
3111
3111
|
value: ht,
|
|
@@ -3115,7 +3115,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3115
3115
|
...n.options.filter(
|
|
3116
3116
|
(N) => N.label.toLocaleLowerCase().includes(g.value.toLocaleLowerCase())
|
|
3117
3117
|
)
|
|
3118
|
-
]), m =
|
|
3118
|
+
]), m = z(() => n.modelValue ? n.modelValue : [ht, ...n.options.map((N) => N.value)]), d = z(() => {
|
|
3119
3119
|
if (n.layout === "leading") {
|
|
3120
3120
|
const C = n.modelValue ? n.options.filter((T) => n.modelValue.includes(T.value)).map((T) => T.label) : null;
|
|
3121
3121
|
return Jn(C, {
|
|
@@ -3134,7 +3134,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3134
3134
|
const g = st("");
|
|
3135
3135
|
return (N, C) => {
|
|
3136
3136
|
const T = Fe("fm-search");
|
|
3137
|
-
return
|
|
3137
|
+
return K(), Oe(Zt, {
|
|
3138
3138
|
subtitle: d.value,
|
|
3139
3139
|
layout: e.layout,
|
|
3140
3140
|
"initially-collapsed": e.layout === "leading"
|
|
@@ -3144,15 +3144,15 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3144
3144
|
class: Ne(
|
|
3145
3145
|
e.layout === "leading" ? "text-[18px] font-semibold leading-[24px] tracking-[-0.27px]" : "fm-typo-en-title-sm-600"
|
|
3146
3146
|
)
|
|
3147
|
-
},
|
|
3147
|
+
}, ke(Z(s)("team.memberForm.permissions.manageable", { context: e.context })), 3)
|
|
3148
3148
|
]),
|
|
3149
3149
|
default: de(() => [
|
|
3150
|
-
e.options.length > 1 ? (
|
|
3150
|
+
e.options.length > 1 ? (K(), Oe(T, {
|
|
3151
3151
|
key: 0,
|
|
3152
3152
|
modelValue: g.value,
|
|
3153
3153
|
"onUpdate:modelValue": C[0] || (C[0] = (j) => g.value = j),
|
|
3154
3154
|
class: "mt-16",
|
|
3155
|
-
placeholder:
|
|
3155
|
+
placeholder: Z(s)("team.memberForm.permissions.search", { context: e.context })
|
|
3156
3156
|
}, null, 8, ["modelValue", "placeholder"])) : Te("", !0),
|
|
3157
3157
|
ce(dr, {
|
|
3158
3158
|
"model-value": m.value,
|
|
@@ -3167,8 +3167,8 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3167
3167
|
}, tt({ _: 2 }, [
|
|
3168
3168
|
Ce(a.value, (j) => ({
|
|
3169
3169
|
name: `checkbox-${j.value}-append`,
|
|
3170
|
-
fn: de(({ option:
|
|
3171
|
-
|
|
3170
|
+
fn: de(({ option: w }) => [
|
|
3171
|
+
Le(N.$slots, `checkbox-${j.value}-append`, { option: w })
|
|
3172
3172
|
])
|
|
3173
3173
|
}))
|
|
3174
3174
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3177,7 +3177,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3177
3177
|
}, 8, ["subtitle", "layout", "initially-collapsed"]);
|
|
3178
3178
|
};
|
|
3179
3179
|
}
|
|
3180
|
-
}), bt = "includedNewRole", ro = /* @__PURE__ */
|
|
3180
|
+
}), bt = "includedNewRole", ro = /* @__PURE__ */ Ae({
|
|
3181
3181
|
__name: "PosRolePermission",
|
|
3182
3182
|
props: {
|
|
3183
3183
|
modelValue: {
|
|
@@ -3204,7 +3204,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3204
3204
|
},
|
|
3205
3205
|
emits: ["update:model-value"],
|
|
3206
3206
|
setup(e, { emit: t }) {
|
|
3207
|
-
const n = e, r = t, { t: s } =
|
|
3207
|
+
const n = e, r = t, { t: s } = ze(), a = z(() => {
|
|
3208
3208
|
const g = n.restaurantIds;
|
|
3209
3209
|
return [
|
|
3210
3210
|
{
|
|
@@ -3218,7 +3218,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3218
3218
|
disabled: !!g && N.restaurants.every(({ id: C }) => !g.includes(C))
|
|
3219
3219
|
}))
|
|
3220
3220
|
];
|
|
3221
|
-
}), m =
|
|
3221
|
+
}), m = z(() => n.modelValue ? n.modelValue : [bt, ...n.roles.map((g) => g._id)]), d = z(() => {
|
|
3222
3222
|
if (n.layout === "leading") {
|
|
3223
3223
|
const N = n.modelValue ? n.roles.filter((C) => n.modelValue.includes(C._id)).map((C) => C.name) : null;
|
|
3224
3224
|
return Jn(N, {
|
|
@@ -3234,7 +3234,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3234
3234
|
const N = g.length === a.value.length;
|
|
3235
3235
|
r("update:model-value", N ? null : g.filter((C) => C !== bt));
|
|
3236
3236
|
}
|
|
3237
|
-
return (g, N) => (
|
|
3237
|
+
return (g, N) => (K(), Oe(Zt, {
|
|
3238
3238
|
subtitle: d.value,
|
|
3239
3239
|
layout: e.layout,
|
|
3240
3240
|
"initially-collapsed": e.layout === "leading"
|
|
@@ -3244,7 +3244,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3244
3244
|
class: Ne(
|
|
3245
3245
|
e.layout === "leading" ? "text-[18px] font-semibold leading-[24px] tracking-[-0.27px]" : "fm-typo-en-title-sm-600"
|
|
3246
3246
|
)
|
|
3247
|
-
},
|
|
3247
|
+
}, ke(Z(s)("team.memberForm.permissions.roles")), 3)
|
|
3248
3248
|
]),
|
|
3249
3249
|
default: de(() => [
|
|
3250
3250
|
ce(dr, {
|
|
@@ -3260,7 +3260,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3260
3260
|
Ce(a.value, (C) => ({
|
|
3261
3261
|
name: `checkbox-${C.value}-append`,
|
|
3262
3262
|
fn: de(({ option: T }) => [
|
|
3263
|
-
|
|
3263
|
+
Le(g.$slots, `checkbox-${C.value}-append`, { option: T })
|
|
3264
3264
|
])
|
|
3265
3265
|
}))
|
|
3266
3266
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3278,7 +3278,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3278
3278
|
}, oo = {
|
|
3279
3279
|
key: 0,
|
|
3280
3280
|
class: "ml-32"
|
|
3281
|
-
}, Pn = /* @__PURE__ */
|
|
3281
|
+
}, Pn = /* @__PURE__ */ Ae({
|
|
3282
3282
|
__name: "PortalConditionForm",
|
|
3283
3283
|
props: {
|
|
3284
3284
|
entry: {},
|
|
@@ -3295,10 +3295,10 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3295
3295
|
},
|
|
3296
3296
|
emits: ["update-inherit-mode", "update-form", "apply"],
|
|
3297
3297
|
setup(e, { emit: t }) {
|
|
3298
|
-
const n = t, { t: r } =
|
|
3298
|
+
const n = t, { t: r } = ze();
|
|
3299
3299
|
return (s, a) => {
|
|
3300
3300
|
const m = Fe("FmRadio"), d = Fe("FmRadioGroup");
|
|
3301
|
-
return
|
|
3301
|
+
return K(), Oe(Rr, {
|
|
3302
3302
|
title: e.title,
|
|
3303
3303
|
builders: e.builders,
|
|
3304
3304
|
"form-value-for": e.formValueFor,
|
|
@@ -3309,7 +3309,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3309
3309
|
onApply: a[1] || (a[1] = (l) => n("apply"))
|
|
3310
3310
|
}, {
|
|
3311
3311
|
section: de(({ builder: l }) => [
|
|
3312
|
-
e.coverOverride.shouldShowInheritToggle(e.entry, l) ? (
|
|
3312
|
+
e.coverOverride.shouldShowInheritToggle(e.entry, l) ? (K(), re("div", so, [
|
|
3313
3313
|
ce(d, {
|
|
3314
3314
|
"model-value": e.inheritModeFor(l),
|
|
3315
3315
|
disabled: e.disable,
|
|
@@ -3319,23 +3319,23 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3319
3319
|
ue("div", null, [
|
|
3320
3320
|
ce(m, {
|
|
3321
3321
|
value: "inherit",
|
|
3322
|
-
label:
|
|
3322
|
+
label: Z(r)("team.memberForm.permissions.conditionCover.inherit", {
|
|
3323
3323
|
cover: e.coverOverride.coverLabel(e.subject)
|
|
3324
3324
|
})
|
|
3325
3325
|
}, null, 8, ["label"]),
|
|
3326
|
-
e.coverOverride.inheritedSummary(e.entry, l, e.timeZone) ? (
|
|
3326
|
+
e.coverOverride.inheritedSummary(e.entry, l, e.timeZone) ? (K(), re("p", ao, " (" + ke(Z(r)(
|
|
3327
3327
|
e.coverOverride.inheritedSummary(e.entry, l, e.timeZone).labelKey,
|
|
3328
3328
|
e.coverOverride.inheritedSummary(e.entry, l, e.timeZone).params ?? {}
|
|
3329
3329
|
)) + ") ", 1)) : Te("", !0)
|
|
3330
3330
|
]),
|
|
3331
3331
|
ce(m, {
|
|
3332
3332
|
value: "custom",
|
|
3333
|
-
label:
|
|
3333
|
+
label: Z(r)("team.memberForm.permissions.conditionCover.custom")
|
|
3334
3334
|
}, null, 8, ["label"])
|
|
3335
3335
|
]),
|
|
3336
3336
|
_: 2
|
|
3337
3337
|
}, 1032, ["model-value", "disabled", "onUpdate:modelValue"]),
|
|
3338
|
-
e.inheritModeFor(l) === "custom" ? (
|
|
3338
|
+
e.inheritModeFor(l) === "custom" ? (K(), re("div", oo, [
|
|
3339
3339
|
ce(nn, {
|
|
3340
3340
|
builder: l,
|
|
3341
3341
|
"model-value": e.formValueFor(l),
|
|
@@ -3343,7 +3343,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3343
3343
|
"onUpdate:modelValue": (g) => n("update-form", { builder: l, form: g })
|
|
3344
3344
|
}, null, 8, ["builder", "model-value", "disable", "onUpdate:modelValue"])
|
|
3345
3345
|
])) : Te("", !0)
|
|
3346
|
-
])) : (
|
|
3346
|
+
])) : (K(), Oe(nn, {
|
|
3347
3347
|
key: 1,
|
|
3348
3348
|
builder: l,
|
|
3349
3349
|
"model-value": e.formValueFor(l),
|
|
@@ -3357,7 +3357,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3357
3357
|
}
|
|
3358
3358
|
}), lo = {
|
|
3359
3359
|
async readWarehouses() {
|
|
3360
|
-
return
|
|
3360
|
+
return wr(await Fr().get("/warehouses"));
|
|
3361
3361
|
}
|
|
3362
3362
|
};
|
|
3363
3363
|
function jn(e, t) {
|
|
@@ -3368,7 +3368,7 @@ function jn(e, t) {
|
|
|
3368
3368
|
function Un(e, t) {
|
|
3369
3369
|
return e.some((n) => n.subject === t && n.inverted) ? e : [...e, { subject: t, actions: ["manage"], inverted: !0 }];
|
|
3370
3370
|
}
|
|
3371
|
-
function
|
|
3371
|
+
function Vn(e, t, n) {
|
|
3372
3372
|
const { category: r, showByFeatureFlag: s, isCategoryCover: a, ...m } = e;
|
|
3373
3373
|
return {
|
|
3374
3374
|
...m,
|
|
@@ -3394,27 +3394,27 @@ function io(e, t, n, r) {
|
|
|
3394
3394
|
const N = t.find(
|
|
3395
3395
|
(T) => T.subject === l && !T.inverted
|
|
3396
3396
|
), C = r(l);
|
|
3397
|
-
C && N && d.push(
|
|
3397
|
+
C && N && d.push(Vn(C, N.actions, N.conditions));
|
|
3398
3398
|
}
|
|
3399
3399
|
}
|
|
3400
3400
|
for (const l of a) {
|
|
3401
3401
|
if (!s.has(l)) continue;
|
|
3402
|
-
const g = e.find((
|
|
3402
|
+
const g = e.find((w) => w.subject === l && !w.inverted), N = t.find((w) => w.subject === l && !w.inverted);
|
|
3403
3403
|
if (!g || !N) continue;
|
|
3404
3404
|
const C = new Set(g.actions), T = new Set(N.actions);
|
|
3405
|
-
if (C.size === T.size && [...C].every((
|
|
3405
|
+
if (C.size === T.size && [...C].every((w) => T.has(w)))
|
|
3406
3406
|
continue;
|
|
3407
|
-
const j = d.findIndex((
|
|
3407
|
+
const j = d.findIndex((w) => w.subject === l && !w.inverted);
|
|
3408
3408
|
if (j >= 0)
|
|
3409
3409
|
d[j] = {
|
|
3410
3410
|
...d[j],
|
|
3411
3411
|
actions: Array.from(T)
|
|
3412
3412
|
};
|
|
3413
3413
|
else {
|
|
3414
|
-
const
|
|
3415
|
-
|
|
3414
|
+
const w = r(l);
|
|
3415
|
+
w && d.push(Vn(w, Array.from(T)));
|
|
3416
3416
|
}
|
|
3417
|
-
C.has("manage") && !T.has("manage") && jn(d, l) && (d = Un(d, l)), !C.has("manage") && T.has("manage") && (d = d.filter((
|
|
3417
|
+
C.has("manage") && !T.has("manage") && jn(d, l) && (d = Un(d, l)), !C.has("manage") && T.has("manage") && (d = d.filter((w) => !(w.subject === l && w.inverted)));
|
|
3418
3418
|
}
|
|
3419
3419
|
return d;
|
|
3420
3420
|
}
|
|
@@ -3453,17 +3453,17 @@ function Xe(e) {
|
|
|
3453
3453
|
function fo(e, t) {
|
|
3454
3454
|
return e.find((n) => !n.inverted && n.subject === t);
|
|
3455
3455
|
}
|
|
3456
|
-
function
|
|
3456
|
+
function At(e, t) {
|
|
3457
3457
|
const n = new Set(e.actions);
|
|
3458
|
-
return n.has(
|
|
3458
|
+
return n.has(Ze.Action.manage) ? !0 : t.actions.every((r) => n.has(r));
|
|
3459
3459
|
}
|
|
3460
|
-
function
|
|
3460
|
+
function Yt(e, t) {
|
|
3461
3461
|
const n = Xe(e);
|
|
3462
|
-
return
|
|
3462
|
+
return Dt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3463
3463
|
}
|
|
3464
|
-
function
|
|
3464
|
+
function xn(e, t, n) {
|
|
3465
3465
|
return {
|
|
3466
|
-
...
|
|
3466
|
+
...Yt(e, n),
|
|
3467
3467
|
...nt(Xe(t), n)
|
|
3468
3468
|
};
|
|
3469
3469
|
}
|
|
@@ -3487,8 +3487,8 @@ function _o(e, t, n) {
|
|
|
3487
3487
|
return nt(Xe(u), I);
|
|
3488
3488
|
}
|
|
3489
3489
|
function g(u, I) {
|
|
3490
|
-
var
|
|
3491
|
-
if (!(((
|
|
3490
|
+
var A;
|
|
3491
|
+
if (!(((A = I.appliesToActions) == null ? void 0 : A.call(I, u.actions)) ?? !0)) return !1;
|
|
3492
3492
|
const E = s(u.subject);
|
|
3493
3493
|
if (!E) return !1;
|
|
3494
3494
|
const _ = d(E);
|
|
@@ -3497,10 +3497,10 @@ function _o(e, t, n) {
|
|
|
3497
3497
|
function N(u, I) {
|
|
3498
3498
|
if (!g(u, I) || r.value.has(gt(u.subject, I))) return "custom";
|
|
3499
3499
|
if (u.index === null) return "inherit";
|
|
3500
|
-
const E = e.value[u.index], _ = s(u.subject),
|
|
3501
|
-
if (E &&
|
|
3502
|
-
const
|
|
3503
|
-
if (JSON.stringify(
|
|
3500
|
+
const E = e.value[u.index], _ = s(u.subject), A = _ ? d(_) : void 0;
|
|
3501
|
+
if (E && A) {
|
|
3502
|
+
const L = nt(Xe(E), I), $ = l(A, I);
|
|
3503
|
+
if (JSON.stringify(L) === JSON.stringify($)) return "inherit";
|
|
3504
3504
|
}
|
|
3505
3505
|
return "custom";
|
|
3506
3506
|
}
|
|
@@ -3508,42 +3508,42 @@ function _o(e, t, n) {
|
|
|
3508
3508
|
if (!I.summarizeForm) return;
|
|
3509
3509
|
const _ = s(u.subject);
|
|
3510
3510
|
if (!_) return;
|
|
3511
|
-
const
|
|
3512
|
-
if (!
|
|
3513
|
-
const
|
|
3514
|
-
return I.summarizeForm(
|
|
3511
|
+
const A = d(_);
|
|
3512
|
+
if (!A) return;
|
|
3513
|
+
const L = I.fromCondition(l(A, I));
|
|
3514
|
+
return I.summarizeForm(L, { timeZone: E });
|
|
3515
3515
|
}
|
|
3516
3516
|
function T(u, I) {
|
|
3517
3517
|
if (u.index === null) return;
|
|
3518
|
-
const E = [...e.value], _ = { ...E[u.index] },
|
|
3519
|
-
if (
|
|
3518
|
+
const E = [...e.value], _ = { ...E[u.index] }, A = Yt(_, I), L = Object.keys(A).length === 0, $ = s(u.subject), V = $ ? d($) : void 0, F = V ? At(V, _) : !1;
|
|
3519
|
+
if (L && F)
|
|
3520
3520
|
E.splice(u.index, 1);
|
|
3521
|
-
else if (
|
|
3522
|
-
const y =
|
|
3521
|
+
else if (V) {
|
|
3522
|
+
const y = xn(_, V, I);
|
|
3523
3523
|
Object.keys(y).length === 0 ? delete _.conditions : _.conditions = JSON.stringify(y), E[u.index] = _;
|
|
3524
3524
|
} else
|
|
3525
|
-
|
|
3525
|
+
L ? delete _.conditions : _.conditions = JSON.stringify(A), E[u.index] = _;
|
|
3526
3526
|
n(E);
|
|
3527
3527
|
}
|
|
3528
3528
|
function j(u, I, E) {
|
|
3529
3529
|
const _ = gt(u.subject, I);
|
|
3530
3530
|
if (E === "inherit") {
|
|
3531
|
-
const
|
|
3532
|
-
|
|
3531
|
+
const L = new Set(r.value);
|
|
3532
|
+
L.delete(_), r.value = L, T(u, I);
|
|
3533
3533
|
return;
|
|
3534
3534
|
}
|
|
3535
|
-
const
|
|
3536
|
-
|
|
3535
|
+
const A = new Set(r.value);
|
|
3536
|
+
A.add(_), r.value = A, u.index === null && b(u, I, I.fromCondition(void 0), {
|
|
3537
3537
|
forceCreateRule: !0
|
|
3538
3538
|
});
|
|
3539
3539
|
}
|
|
3540
|
-
function
|
|
3540
|
+
function w(u) {
|
|
3541
3541
|
const I = s(u);
|
|
3542
3542
|
if (!I) return [];
|
|
3543
3543
|
const E = d(I);
|
|
3544
3544
|
return (E == null ? void 0 : E.actions) ?? [];
|
|
3545
3545
|
}
|
|
3546
|
-
function
|
|
3546
|
+
function k(u, I) {
|
|
3547
3547
|
return e.value.filter((E) => {
|
|
3548
3548
|
if (E.inverted) return !1;
|
|
3549
3549
|
const _ = E.subject;
|
|
@@ -3552,42 +3552,42 @@ function _o(e, t, n) {
|
|
|
3552
3552
|
}
|
|
3553
3553
|
function P(u, I) {
|
|
3554
3554
|
const E = `::${I.builderKey}`, _ = new Set(r.value);
|
|
3555
|
-
for (const
|
|
3556
|
-
if (!
|
|
3557
|
-
const
|
|
3558
|
-
s(
|
|
3555
|
+
for (const A of _) {
|
|
3556
|
+
if (!A.endsWith(E)) continue;
|
|
3557
|
+
const L = A.slice(0, -E.length);
|
|
3558
|
+
s(L) === u && _.delete(A);
|
|
3559
3559
|
}
|
|
3560
3560
|
r.value = _;
|
|
3561
3561
|
}
|
|
3562
3562
|
function f(u, I, E) {
|
|
3563
3563
|
const _ = I.subject;
|
|
3564
|
-
return u.reduce((
|
|
3565
|
-
if (
|
|
3566
|
-
return
|
|
3567
|
-
const $ =
|
|
3564
|
+
return u.reduce((A, L) => {
|
|
3565
|
+
if (L.inverted)
|
|
3566
|
+
return A.push(L), A;
|
|
3567
|
+
const $ = L.subject;
|
|
3568
3568
|
if ($ === _ || s($) !== _)
|
|
3569
|
-
return
|
|
3570
|
-
if (
|
|
3571
|
-
return
|
|
3572
|
-
const F =
|
|
3569
|
+
return A.push(L), A;
|
|
3570
|
+
if (At(I, L) && Object.keys(Yt(L, E)).length === 0)
|
|
3571
|
+
return A;
|
|
3572
|
+
const F = xn(L, I, E);
|
|
3573
3573
|
if (Object.keys(F).length === 0) {
|
|
3574
|
-
const { conditions: y, ...
|
|
3575
|
-
|
|
3574
|
+
const { conditions: y, ...D } = L;
|
|
3575
|
+
A.push(D);
|
|
3576
3576
|
} else
|
|
3577
|
-
|
|
3578
|
-
return
|
|
3577
|
+
A.push({ ...L, conditions: JSON.stringify(F) });
|
|
3578
|
+
return A;
|
|
3579
3579
|
}, []);
|
|
3580
3580
|
}
|
|
3581
3581
|
function b(u, I, E, _ = {}) {
|
|
3582
|
-
var
|
|
3583
|
-
const
|
|
3584
|
-
let
|
|
3585
|
-
const $ = I.toCondition(E),
|
|
3586
|
-
if (
|
|
3587
|
-
if (
|
|
3588
|
-
const O =
|
|
3582
|
+
var x;
|
|
3583
|
+
const A = [...e.value];
|
|
3584
|
+
let L = u.index;
|
|
3585
|
+
const $ = I.toCondition(E), V = Object.keys($).length > 0;
|
|
3586
|
+
if (L === null && !V && !_.forceCreateRule) return;
|
|
3587
|
+
if (L === null) {
|
|
3588
|
+
const O = A.findIndex((G) => !G.inverted && G.subject === u.subject);
|
|
3589
3589
|
if (O !== -1)
|
|
3590
|
-
|
|
3590
|
+
L = O;
|
|
3591
3591
|
else {
|
|
3592
3592
|
const G = t.value.find((se) => se.subject === u.subject);
|
|
3593
3593
|
if (!G) return;
|
|
@@ -3597,24 +3597,24 @@ function _o(e, t, n) {
|
|
|
3597
3597
|
isCategoryCover: J,
|
|
3598
3598
|
...X
|
|
3599
3599
|
} = G;
|
|
3600
|
-
|
|
3600
|
+
A.push({
|
|
3601
3601
|
...X,
|
|
3602
3602
|
actions: u.actions.length > 0 ? u.actions : X.actions
|
|
3603
|
-
}),
|
|
3603
|
+
}), L = A.length - 1;
|
|
3604
3604
|
}
|
|
3605
3605
|
}
|
|
3606
|
-
const F = { ...
|
|
3606
|
+
const F = { ...A[L] };
|
|
3607
3607
|
F.actions = [
|
|
3608
3608
|
.../* @__PURE__ */ new Set([...F.actions, ...u.actions])
|
|
3609
3609
|
];
|
|
3610
|
-
const y = Xe(F),
|
|
3611
|
-
if (Object.keys(
|
|
3612
|
-
const O =
|
|
3610
|
+
const y = Xe(F), D = Dt(y, [{ builder: I, formValue: E }]);
|
|
3611
|
+
if (Object.keys(D).length === 0 ? delete F.conditions : F.conditions = JSON.stringify(D), A[L] = F, tn(u.subject, t.value)) {
|
|
3612
|
+
const O = k(u.subject, I), G = () => {
|
|
3613
3613
|
var U;
|
|
3614
|
-
P(u.subject, I), n(f(
|
|
3614
|
+
P(u.subject, I), n(f(A, F, I)), (U = _.afterCommit) == null || U.call(_);
|
|
3615
3615
|
}, H = () => {
|
|
3616
3616
|
var U;
|
|
3617
|
-
n(
|
|
3617
|
+
n(A), (U = _.afterCommit) == null || U.call(_);
|
|
3618
3618
|
};
|
|
3619
3619
|
if (O.length === 0) {
|
|
3620
3620
|
G();
|
|
@@ -3623,18 +3623,18 @@ function _o(e, t, n) {
|
|
|
3623
3623
|
_.onOverridesConflict ? _.onOverridesConflict({ override: G, keep: H }) : H();
|
|
3624
3624
|
return;
|
|
3625
3625
|
}
|
|
3626
|
-
n(
|
|
3626
|
+
n(A), (x = _.afterCommit) == null || x.call(_);
|
|
3627
3627
|
}
|
|
3628
|
-
function
|
|
3628
|
+
function R(u, I, E = {}) {
|
|
3629
3629
|
if (I.length === 0) return;
|
|
3630
3630
|
const _ = [...e.value];
|
|
3631
|
-
let
|
|
3631
|
+
let A = _.findIndex((O) => !O.inverted && O.subject === u.subject), L = A === -1 ? void 0 : { ..._[A] }, $ = Xe(L ?? {}) ?? {};
|
|
3632
3632
|
for (const O of I) {
|
|
3633
3633
|
const G = O.mode === "inherit" ? O.builder.fromCondition(void 0) : O.form;
|
|
3634
|
-
$ =
|
|
3634
|
+
$ = Dt($, [{ builder: O.builder, formValue: G }]);
|
|
3635
3635
|
}
|
|
3636
|
-
const
|
|
3637
|
-
if (!
|
|
3636
|
+
const V = I.some((O) => O.mode === "custom");
|
|
3637
|
+
if (!L && (Object.keys($).length > 0 || V)) {
|
|
3638
3638
|
const O = t.value.find((X) => X.subject === u.subject);
|
|
3639
3639
|
if (!O) return;
|
|
3640
3640
|
const {
|
|
@@ -3643,25 +3643,25 @@ function _o(e, t, n) {
|
|
|
3643
3643
|
isCategoryCover: U,
|
|
3644
3644
|
...J
|
|
3645
3645
|
} = O;
|
|
3646
|
-
|
|
3646
|
+
L = {
|
|
3647
3647
|
...J,
|
|
3648
3648
|
actions: u.actions.length > 0 ? u.actions : J.actions
|
|
3649
|
-
}, _.push(
|
|
3649
|
+
}, _.push(L), A = _.length - 1;
|
|
3650
3650
|
}
|
|
3651
|
-
if (
|
|
3651
|
+
if (L) {
|
|
3652
3652
|
const O = s(u.subject), G = O ? d(O) : void 0;
|
|
3653
|
-
if (!
|
|
3654
|
-
_.splice(
|
|
3653
|
+
if (!V && Object.keys($).length === 0 && !!G && At(G, L))
|
|
3654
|
+
_.splice(A, 1), L = void 0;
|
|
3655
3655
|
else {
|
|
3656
|
-
if (
|
|
3657
|
-
.../* @__PURE__ */ new Set([...
|
|
3656
|
+
if (L.actions = [
|
|
3657
|
+
.../* @__PURE__ */ new Set([...L.actions, ...u.actions])
|
|
3658
3658
|
], G)
|
|
3659
3659
|
for (const U of I)
|
|
3660
3660
|
U.mode === "inherit" && ($ = {
|
|
3661
3661
|
...$,
|
|
3662
3662
|
...nt(Xe(G), U.builder)
|
|
3663
3663
|
});
|
|
3664
|
-
Object.keys($).length === 0 ? delete
|
|
3664
|
+
Object.keys($).length === 0 ? delete L.conditions : L.conditions = JSON.stringify($), _[A] = L;
|
|
3665
3665
|
}
|
|
3666
3666
|
}
|
|
3667
3667
|
const F = () => {
|
|
@@ -3675,21 +3675,21 @@ function _o(e, t, n) {
|
|
|
3675
3675
|
var G;
|
|
3676
3676
|
F(), n(O), (G = E.afterCommit) == null || G.call(E);
|
|
3677
3677
|
};
|
|
3678
|
-
if (!tn(u.subject, t.value) || !
|
|
3678
|
+
if (!tn(u.subject, t.value) || !L) {
|
|
3679
3679
|
y(_);
|
|
3680
3680
|
return;
|
|
3681
3681
|
}
|
|
3682
|
-
const
|
|
3682
|
+
const D = I.map((O) => O.builder).filter((O) => k(u.subject, O).length > 0), x = () => {
|
|
3683
3683
|
let O = _;
|
|
3684
3684
|
for (const G of I.map((H) => H.builder))
|
|
3685
|
-
P(u.subject, G), O = f(O,
|
|
3685
|
+
P(u.subject, G), O = f(O, L, G);
|
|
3686
3686
|
y(O);
|
|
3687
3687
|
};
|
|
3688
|
-
if (
|
|
3689
|
-
E.onOverridesConflict({ override:
|
|
3688
|
+
if (D.length > 0 && E.onOverridesConflict) {
|
|
3689
|
+
E.onOverridesConflict({ override: x, keep: () => y(_) });
|
|
3690
3690
|
return;
|
|
3691
3691
|
}
|
|
3692
|
-
|
|
3692
|
+
D.length > 0 ? y(_) : x();
|
|
3693
3693
|
}
|
|
3694
3694
|
return {
|
|
3695
3695
|
getCoverSubject: s,
|
|
@@ -3698,12 +3698,12 @@ function _o(e, t, n) {
|
|
|
3698
3698
|
inheritMode: N,
|
|
3699
3699
|
setInheritMode: j,
|
|
3700
3700
|
inheritedSummary: C,
|
|
3701
|
-
getEffectiveActions:
|
|
3701
|
+
getEffectiveActions: w,
|
|
3702
3702
|
updateBuilderCondition: b,
|
|
3703
|
-
applyConditionDrafts:
|
|
3703
|
+
applyConditionDrafts: R
|
|
3704
3704
|
};
|
|
3705
3705
|
}
|
|
3706
|
-
const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ho = "condition-form-select-menu",
|
|
3706
|
+
const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ho = "condition-form-select-menu", Ro = /* @__PURE__ */ Ae({
|
|
3707
3707
|
__name: "PortalPermissionEditor",
|
|
3708
3708
|
props: /* @__PURE__ */ en({
|
|
3709
3709
|
disable: {
|
|
@@ -3730,20 +3730,20 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
3730
3730
|
}),
|
|
3731
3731
|
emits: /* @__PURE__ */ en(["permissionChanged"], ["update:modelValue"]),
|
|
3732
3732
|
setup(e, { emit: t }) {
|
|
3733
|
-
const n = gr(e, "modelValue"), r = e, s =
|
|
3733
|
+
const n = gr(e, "modelValue"), r = e, s = z(() => r.part === "all" ? "trailing" : "leading"), a = z(
|
|
3734
3734
|
() => r.part === "all" ? "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" : ""
|
|
3735
|
-
), m = t, { t: d } =
|
|
3735
|
+
), m = t, { t: d } = ze(), l = Ir(), g = yr(), { breakpoints: N } = Er(), C = z(() => N.value.xs || N.value.sm), {
|
|
3736
3736
|
fetchCustomReportPermissions: T,
|
|
3737
3737
|
customReportPermissions: j
|
|
3738
|
-
} = Cr(),
|
|
3739
|
-
...
|
|
3738
|
+
} = Cr(), w = z(() => [
|
|
3739
|
+
...Yn,
|
|
3740
3740
|
...j.value
|
|
3741
|
-
]),
|
|
3741
|
+
]), k = z(() => {
|
|
3742
3742
|
const c = l.currentBusiness.value, h = l.currentCountry.value, S = h instanceof Object ? h.code : h;
|
|
3743
3743
|
return mo(c, S);
|
|
3744
3744
|
});
|
|
3745
3745
|
function P(c) {
|
|
3746
|
-
return
|
|
3746
|
+
return w.value.find((h) => h.subject === c);
|
|
3747
3747
|
}
|
|
3748
3748
|
function f(c, h) {
|
|
3749
3749
|
return an(c).filter(
|
|
@@ -3753,8 +3753,8 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
3753
3753
|
}
|
|
3754
3754
|
);
|
|
3755
3755
|
}
|
|
3756
|
-
const b =
|
|
3757
|
-
const c =
|
|
3756
|
+
const b = z(() => {
|
|
3757
|
+
const c = w.value.filter((S) => !E.includes(S.subject)).map((S) => S.subject);
|
|
3758
3758
|
return Tr(
|
|
3759
3759
|
r.inheritPermissions.map((S) => ({
|
|
3760
3760
|
...S,
|
|
@@ -3764,23 +3764,23 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
3764
3764
|
id: S.subject,
|
|
3765
3765
|
setNames: S.setNames
|
|
3766
3766
|
}));
|
|
3767
|
-
}),
|
|
3767
|
+
}), R = z(() => {
|
|
3768
3768
|
const c = r.inheritPermissions.map((h) => ({
|
|
3769
3769
|
...h,
|
|
3770
3770
|
permissions: h.permissions.filter(
|
|
3771
|
-
(S) => S.subject ===
|
|
3771
|
+
(S) => S.subject === Ze.Subject.Business.inventory_stock
|
|
3772
3772
|
)
|
|
3773
3773
|
}));
|
|
3774
3774
|
return St(
|
|
3775
3775
|
c,
|
|
3776
3776
|
"warehouseId",
|
|
3777
|
-
|
|
3777
|
+
A.value.map((h) => h._id)
|
|
3778
3778
|
);
|
|
3779
|
-
}), u =
|
|
3779
|
+
}), u = z(() => {
|
|
3780
3780
|
const c = r.inheritPermissions.map((h) => ({
|
|
3781
3781
|
...h,
|
|
3782
3782
|
permissions: h.permissions.filter(
|
|
3783
|
-
(S) => S.subject ===
|
|
3783
|
+
(S) => S.subject === Ze.Subject.Restaurant.restaurant
|
|
3784
3784
|
)
|
|
3785
3785
|
}));
|
|
3786
3786
|
return St(
|
|
@@ -3788,55 +3788,55 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
3788
3788
|
"restaurantId",
|
|
3789
3789
|
F.value.map((h) => h._id)
|
|
3790
3790
|
);
|
|
3791
|
-
}), I =
|
|
3791
|
+
}), I = z(() => {
|
|
3792
3792
|
const c = r.inheritPermissions.map((h) => ({
|
|
3793
3793
|
...h,
|
|
3794
|
-
permissions: h.permissions.filter((S) => S.subject ===
|
|
3794
|
+
permissions: h.permissions.filter((S) => S.subject === Ze.Subject.Business.role)
|
|
3795
3795
|
}));
|
|
3796
3796
|
return St(
|
|
3797
3797
|
c,
|
|
3798
3798
|
"roleId",
|
|
3799
3799
|
y.value.map((h) => h._id)
|
|
3800
3800
|
);
|
|
3801
|
-
}), E = [...jr], _ =
|
|
3801
|
+
}), E = [...jr], _ = z(() => {
|
|
3802
3802
|
var h;
|
|
3803
3803
|
const c = (h = n.value) == null ? void 0 : h.find(
|
|
3804
|
-
(S) => S.subject ===
|
|
3804
|
+
(S) => S.subject === Ze.Subject.Business.inventory_stock
|
|
3805
3805
|
);
|
|
3806
3806
|
return c ? c.conditions ? JSON.parse(c.conditions).warehouseId.$in : null : [];
|
|
3807
|
-
}),
|
|
3807
|
+
}), A = st([]), L = z(() => A.value.map((c) => ({
|
|
3808
3808
|
label: c.profile.name,
|
|
3809
3809
|
value: c._id
|
|
3810
3810
|
})));
|
|
3811
3811
|
function $(c) {
|
|
3812
|
-
const h =
|
|
3812
|
+
const h = V(n.value, c);
|
|
3813
3813
|
n.value = h;
|
|
3814
3814
|
}
|
|
3815
|
-
function
|
|
3815
|
+
function V(c, h) {
|
|
3816
3816
|
let S = Hn(
|
|
3817
|
-
c.filter((M) => M.subject !==
|
|
3817
|
+
c.filter((M) => M.subject !== Ze.Subject.Business.inventory_stock)
|
|
3818
3818
|
);
|
|
3819
3819
|
if (!h || h.length > 0) {
|
|
3820
3820
|
const M = {
|
|
3821
|
-
actions: [
|
|
3822
|
-
subject:
|
|
3821
|
+
actions: [Ze.Action.manage],
|
|
3822
|
+
subject: Ze.Subject.Business.inventory_stock
|
|
3823
3823
|
};
|
|
3824
3824
|
h && (M.conditions = JSON.stringify({ warehouseId: { $in: h } })), S.push(M);
|
|
3825
3825
|
}
|
|
3826
3826
|
return S;
|
|
3827
3827
|
}
|
|
3828
|
-
const { restaurants: F } = l, y = Ur().roles,
|
|
3828
|
+
const { restaurants: F } = l, y = Ur().roles, D = z(() => F.value.map((c) => ({
|
|
3829
3829
|
label: `${c.profile.code ? c.profile.code + "-" : ""}${c.profile.name}`,
|
|
3830
3830
|
value: c._id
|
|
3831
|
-
}))),
|
|
3831
|
+
}))), x = z(() => F.value.reduce((c, h) => (c[h._id] = y.value.filter((S) => S.restaurants.some((M) => M.id === h._id)).map((S) => S._id), c), {})), O = z(() => Or(n.value));
|
|
3832
3832
|
function G(c) {
|
|
3833
3833
|
const h = U(n.value, c);
|
|
3834
3834
|
n.value = h;
|
|
3835
3835
|
}
|
|
3836
|
-
const H =
|
|
3836
|
+
const H = z(() => Sr(n.value));
|
|
3837
3837
|
function U(c, h) {
|
|
3838
|
-
return
|
|
3839
|
-
restaurantRoles:
|
|
3838
|
+
return kr(c, h, {
|
|
3839
|
+
restaurantRoles: x.value,
|
|
3840
3840
|
allRoleIds: y.value.map((S) => S._id)
|
|
3841
3841
|
});
|
|
3842
3842
|
}
|
|
@@ -3845,16 +3845,16 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
3845
3845
|
n.value = h;
|
|
3846
3846
|
}
|
|
3847
3847
|
function X(c, h) {
|
|
3848
|
-
return
|
|
3848
|
+
return Lr(c, h);
|
|
3849
3849
|
}
|
|
3850
|
-
const { isFoodCourt: se } =
|
|
3850
|
+
const { isFoodCourt: se } = Zn();
|
|
3851
3851
|
Wn(async () => {
|
|
3852
3852
|
await Promise.all([
|
|
3853
|
-
r.part !== "portal" && !se.value && lo.readWarehouses().then((c) =>
|
|
3853
|
+
r.part !== "portal" && !se.value && lo.readWarehouses().then((c) => A.value = c),
|
|
3854
3854
|
T()
|
|
3855
3855
|
]);
|
|
3856
3856
|
});
|
|
3857
|
-
const Q =
|
|
3857
|
+
const Q = z(() => Bn(
|
|
3858
3858
|
n.value,
|
|
3859
3859
|
Xn
|
|
3860
3860
|
).filter((S) => {
|
|
@@ -3877,9 +3877,9 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
3877
3877
|
P
|
|
3878
3878
|
);
|
|
3879
3879
|
}
|
|
3880
|
-
const ye =
|
|
3881
|
-
|
|
3882
|
-
)), ve =
|
|
3880
|
+
const ye = z(() => new Set(
|
|
3881
|
+
w.value.filter((c) => an(c.subject).length > 0).map((c) => c.subject)
|
|
3882
|
+
)), ve = z(() => {
|
|
3883
3883
|
const c = /* @__PURE__ */ new Map();
|
|
3884
3884
|
return Q.value.map((h) => ({
|
|
3885
3885
|
rule: h,
|
|
@@ -3887,7 +3887,7 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
3887
3887
|
(S) => !S.inverted && S.subject === h.subject
|
|
3888
3888
|
)
|
|
3889
3889
|
})).filter(({ rule: h }) => !h.inverted).forEach(({ rule: h, index: S }) => {
|
|
3890
|
-
var
|
|
3890
|
+
var Y;
|
|
3891
3891
|
const M = h.actions, p = f(h.subject, M);
|
|
3892
3892
|
if (p.length === 0) return;
|
|
3893
3893
|
let v;
|
|
@@ -3899,7 +3899,7 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
3899
3899
|
c.set(h.subject, {
|
|
3900
3900
|
index: S >= 0 ? S : null,
|
|
3901
3901
|
subject: h.subject,
|
|
3902
|
-
label: ((
|
|
3902
|
+
label: ((Y = P(h.subject)) == null ? void 0 : Y.label) ?? h.subject,
|
|
3903
3903
|
actions: M,
|
|
3904
3904
|
// Each builder only ever sees its own slice of the stored condition.
|
|
3905
3905
|
sections: p.map((te) => ({
|
|
@@ -3908,9 +3908,9 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
3908
3908
|
}))
|
|
3909
3909
|
});
|
|
3910
3910
|
}), c;
|
|
3911
|
-
}), oe = _o(n,
|
|
3911
|
+
}), oe = _o(n, w, (c) => {
|
|
3912
3912
|
n.value = c;
|
|
3913
|
-
}), ie =
|
|
3913
|
+
}), ie = Ar(n), Pe = st(null);
|
|
3914
3914
|
function B(c, h) {
|
|
3915
3915
|
const S = ve.value.get(c);
|
|
3916
3916
|
if (S) return S;
|
|
@@ -3966,7 +3966,7 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
3966
3966
|
function Ue(c) {
|
|
3967
3967
|
return ie.hasDraftsForSubject(c);
|
|
3968
3968
|
}
|
|
3969
|
-
function
|
|
3969
|
+
function Ye(c, h) {
|
|
3970
3970
|
const S = c.sections.flatMap((M) => {
|
|
3971
3971
|
const p = ie.getDraft({
|
|
3972
3972
|
subject: c.subject,
|
|
@@ -4022,17 +4022,17 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
4022
4022
|
{ deep: !0 }
|
|
4023
4023
|
), (c, h) => {
|
|
4024
4024
|
const S = Fe("FmIcon"), M = Fe("FmBottomSheet"), p = Fe("FmPopover");
|
|
4025
|
-
return
|
|
4025
|
+
return K(), re("div", {
|
|
4026
4026
|
class: Ne(["flex flex-col", e.part === "all" ? "gap-32" : "gap-16"])
|
|
4027
4027
|
}, [
|
|
4028
|
-
e.part !== "workplace" ? (
|
|
4028
|
+
e.part !== "workplace" ? (K(), re("div", {
|
|
4029
4029
|
key: 0,
|
|
4030
4030
|
class: Ne(a.value)
|
|
4031
4031
|
}, [
|
|
4032
4032
|
ce($a, {
|
|
4033
4033
|
"model-value": Q.value,
|
|
4034
4034
|
"excluded-subjects": E,
|
|
4035
|
-
"additional-permissions":
|
|
4035
|
+
"additional-permissions": Z(j),
|
|
4036
4036
|
layout: s.value,
|
|
4037
4037
|
"onUpdate:modelValue": fe
|
|
4038
4038
|
}, tt({ _: 2 }, [
|
|
@@ -4044,19 +4044,19 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
4044
4044
|
})),
|
|
4045
4045
|
Ce(ye.value, (v) => ({
|
|
4046
4046
|
name: `checkbox-${v}-icon`,
|
|
4047
|
-
fn: de(({ option:
|
|
4048
|
-
te && B(v,
|
|
4049
|
-
C.value ? (
|
|
4047
|
+
fn: de(({ option: Y, isEffectiveSelected: te }) => [
|
|
4048
|
+
te && B(v, Y.label) ? (K(), re(we, { key: 0 }, [
|
|
4049
|
+
C.value ? (K(), Oe(M, {
|
|
4050
4050
|
key: 0,
|
|
4051
4051
|
"model-value": Pe.value === v,
|
|
4052
|
-
header:
|
|
4053
|
-
context: B(v,
|
|
4052
|
+
header: Z(d)("team.memberForm.permissions.conditionTitle", {
|
|
4053
|
+
context: B(v, Y.label).label
|
|
4054
4054
|
}),
|
|
4055
4055
|
"dismiss-away": "",
|
|
4056
4056
|
"z-index": 100,
|
|
4057
4057
|
class: "h-5 flex items-center",
|
|
4058
4058
|
"onUpdate:modelValue": (le) => {
|
|
4059
|
-
Pe.value = le ? v : null, le ||
|
|
4059
|
+
Pe.value = le ? v : null, le || Z(ie).clearDraftsForSubject(v);
|
|
4060
4060
|
}
|
|
4061
4061
|
}, {
|
|
4062
4062
|
"bottom-sheet-button": de(() => [
|
|
@@ -4066,37 +4066,37 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
4066
4066
|
size: "sm",
|
|
4067
4067
|
class: Ne([
|
|
4068
4068
|
"cursor-pointer transition-colors",
|
|
4069
|
-
qe(B(v,
|
|
4069
|
+
qe(B(v, Y.label)) ? "text-fm-color-primary-main" : "text-fm-color-neutral-gray-400 hover:text-fm-color-neutral-gray-600"
|
|
4070
4070
|
])
|
|
4071
4071
|
}, null, 8, ["class"])
|
|
4072
4072
|
])
|
|
4073
4073
|
]),
|
|
4074
4074
|
default: de(() => [
|
|
4075
4075
|
ce(Pn, {
|
|
4076
|
-
entry: B(v,
|
|
4077
|
-
builders: B(v,
|
|
4076
|
+
entry: B(v, Y.label),
|
|
4077
|
+
builders: B(v, Y.label).sections.map((le) => le.builder),
|
|
4078
4078
|
subject: v,
|
|
4079
|
-
"time-zone":
|
|
4080
|
-
"cover-override":
|
|
4081
|
-
"inherit-mode-for": (le) => $e(B(v,
|
|
4082
|
-
"form-value-for": (le) => _e(B(v,
|
|
4079
|
+
"time-zone": k.value,
|
|
4080
|
+
"cover-override": Z(oe),
|
|
4081
|
+
"inherit-mode-for": (le) => $e(B(v, Y.label), le),
|
|
4082
|
+
"form-value-for": (le) => _e(B(v, Y.label), le),
|
|
4083
4083
|
"has-changes": Ue(v),
|
|
4084
4084
|
disable: e.disable,
|
|
4085
4085
|
"full-width": !0,
|
|
4086
|
-
onUpdateInheritMode: ({ builder: le, mode: he }) => je(B(v,
|
|
4087
|
-
onUpdateForm: ({ builder: le, form: he }) => Ge(B(v,
|
|
4088
|
-
onApply: (le) =>
|
|
4086
|
+
onUpdateInheritMode: ({ builder: le, mode: he }) => je(B(v, Y.label), le, he),
|
|
4087
|
+
onUpdateForm: ({ builder: le, form: he }) => Ge(B(v, Y.label), le, he),
|
|
4088
|
+
onApply: (le) => Ye(B(v, Y.label), () => Pe.value = null)
|
|
4089
4089
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4090
4090
|
]),
|
|
4091
4091
|
_: 2
|
|
4092
|
-
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (
|
|
4092
|
+
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (K(), Oe(p, {
|
|
4093
4093
|
key: 1,
|
|
4094
4094
|
disabled: e.disable,
|
|
4095
4095
|
"z-index": 100,
|
|
4096
4096
|
"exclude-el-from-click-outside": [ho],
|
|
4097
4097
|
class: "h-5 flex items-center",
|
|
4098
4098
|
onPopoverChanged: (le) => {
|
|
4099
|
-
le ||
|
|
4099
|
+
le || Z(ie).clearDraftsForSubject(v);
|
|
4100
4100
|
}
|
|
4101
4101
|
}, {
|
|
4102
4102
|
"popover-button": de(() => [
|
|
@@ -4106,37 +4106,37 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
4106
4106
|
size: "sm",
|
|
4107
4107
|
class: Ne([
|
|
4108
4108
|
"cursor-pointer transition-colors",
|
|
4109
|
-
qe(B(v,
|
|
4109
|
+
qe(B(v, Y.label)) ? "text-fm-color-primary-main" : "text-fm-color-neutral-gray-400 hover:text-fm-color-neutral-gray-600"
|
|
4110
4110
|
])
|
|
4111
4111
|
}, null, 8, ["class"])
|
|
4112
4112
|
])
|
|
4113
4113
|
]),
|
|
4114
4114
|
default: de(({ hide: le }) => [
|
|
4115
4115
|
ce(Pn, {
|
|
4116
|
-
entry: B(v,
|
|
4117
|
-
builders: B(v,
|
|
4116
|
+
entry: B(v, Y.label),
|
|
4117
|
+
builders: B(v, Y.label).sections.map((he) => he.builder),
|
|
4118
4118
|
subject: v,
|
|
4119
|
-
"time-zone":
|
|
4120
|
-
"cover-override":
|
|
4121
|
-
title:
|
|
4122
|
-
context: B(v,
|
|
4119
|
+
"time-zone": k.value,
|
|
4120
|
+
"cover-override": Z(oe),
|
|
4121
|
+
title: Z(d)("team.memberForm.permissions.conditionTitle", {
|
|
4122
|
+
context: B(v, Y.label).label
|
|
4123
4123
|
}),
|
|
4124
|
-
"inherit-mode-for": (he) => $e(B(v,
|
|
4125
|
-
"form-value-for": (he) => _e(B(v,
|
|
4124
|
+
"inherit-mode-for": (he) => $e(B(v, Y.label), he),
|
|
4125
|
+
"form-value-for": (he) => _e(B(v, Y.label), he),
|
|
4126
4126
|
"has-changes": Ue(v),
|
|
4127
4127
|
disable: e.disable,
|
|
4128
4128
|
onUpdateInheritMode: ({ builder: he, mode: Me }) => je(
|
|
4129
|
-
B(v,
|
|
4129
|
+
B(v, Y.label),
|
|
4130
4130
|
he,
|
|
4131
4131
|
Me
|
|
4132
4132
|
),
|
|
4133
|
-
onUpdateForm: ({ builder: he, form: Me }) => Ge(B(v,
|
|
4134
|
-
onApply: (he) =>
|
|
4133
|
+
onUpdateForm: ({ builder: he, form: Me }) => Ge(B(v, Y.label), he, Me),
|
|
4134
|
+
onApply: (he) => Ye(B(v, Y.label), le)
|
|
4135
4135
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "title", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4136
4136
|
]),
|
|
4137
4137
|
_: 2
|
|
4138
4138
|
}, 1032, ["disabled", "exclude-el-from-click-outside", "onPopoverChanged"]))
|
|
4139
|
-
], 64)) : (
|
|
4139
|
+
], 64)) : (K(), Oe(S, {
|
|
4140
4140
|
key: 1,
|
|
4141
4141
|
name: "settings",
|
|
4142
4142
|
size: "sm",
|
|
@@ -4146,18 +4146,18 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
4146
4146
|
}))
|
|
4147
4147
|
]), 1032, ["model-value", "additional-permissions", "layout"])
|
|
4148
4148
|
], 2)) : Te("", !0),
|
|
4149
|
-
e.part !== "portal" && !
|
|
4149
|
+
e.part !== "portal" && !Z(se) ? (K(), re("div", {
|
|
4150
4150
|
key: 1,
|
|
4151
4151
|
class: Ne(a.value)
|
|
4152
4152
|
}, [
|
|
4153
4153
|
ce(Fn, {
|
|
4154
4154
|
"model-value": _.value,
|
|
4155
|
-
options:
|
|
4156
|
-
context:
|
|
4155
|
+
options: L.value,
|
|
4156
|
+
context: Z(d)("team.labels.warehouse"),
|
|
4157
4157
|
layout: s.value,
|
|
4158
4158
|
"onUpdate:modelValue": $
|
|
4159
4159
|
}, tt({ _: 2 }, [
|
|
4160
|
-
Ce(
|
|
4160
|
+
Ce(R.value, (v) => ({
|
|
4161
4161
|
name: `checkbox-${v.id}-append`,
|
|
4162
4162
|
fn: de(() => [
|
|
4163
4163
|
ce(vt, { item: v }, null, 8, ["item"])
|
|
@@ -4165,14 +4165,14 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
4165
4165
|
}))
|
|
4166
4166
|
]), 1032, ["model-value", "options", "context", "layout"])
|
|
4167
4167
|
], 2)) : Te("", !0),
|
|
4168
|
-
e.part !== "portal" && !
|
|
4168
|
+
e.part !== "portal" && !Z(se) ? (K(), re("div", {
|
|
4169
4169
|
key: 2,
|
|
4170
4170
|
class: Ne([a.value, { "order-first": e.part === "workplace" }])
|
|
4171
4171
|
}, [
|
|
4172
4172
|
ce(Fn, {
|
|
4173
4173
|
"model-value": O.value,
|
|
4174
|
-
options:
|
|
4175
|
-
context:
|
|
4174
|
+
options: D.value,
|
|
4175
|
+
context: Z(d)("team.labels.restaurant"),
|
|
4176
4176
|
layout: s.value,
|
|
4177
4177
|
"onUpdate:modelValue": G
|
|
4178
4178
|
}, tt({ _: 2 }, [
|
|
@@ -4184,12 +4184,12 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
4184
4184
|
}))
|
|
4185
4185
|
]), 1032, ["model-value", "options", "context", "layout"])
|
|
4186
4186
|
], 2)) : Te("", !0),
|
|
4187
|
-
e.part !== "portal" && !
|
|
4187
|
+
e.part !== "portal" && !Z(se) ? (K(), re("div", {
|
|
4188
4188
|
key: 3,
|
|
4189
4189
|
class: Ne(a.value)
|
|
4190
4190
|
}, [
|
|
4191
4191
|
ce(ro, {
|
|
4192
|
-
roles:
|
|
4192
|
+
roles: Z(y),
|
|
4193
4193
|
"model-value": H.value,
|
|
4194
4194
|
"restaurant-ids": O.value,
|
|
4195
4195
|
layout: s.value,
|
|
@@ -4208,5 +4208,5 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
4208
4208
|
}
|
|
4209
4209
|
});
|
|
4210
4210
|
export {
|
|
4211
|
-
|
|
4211
|
+
Ro as _
|
|
4212
4212
|
};
|