@feedmepos/mf-hrm-portal 2.3.2-dev.13 → 2.3.2-dev.14
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-CkEhtUbS.js → ApprovalCodeList-BDMu2nlf.js} +7 -7
- package/dist/{AuditLogList-Bz5zAZyW.js → AuditLogList-BFBj-jk9.js} +5 -5
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-ChuqsZ3x.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-D7UE_NiK.js} +2 -2
- package/dist/{EmployeeList-CynhLV-L.js → EmployeeList-yMAEN8HX.js} +8 -8
- package/dist/{FormSection.vue_vue_type_script_setup_true_lang-CiFif3c3.js → FormSection.vue_vue_type_script_setup_true_lang-BgRk-jRk.js} +1 -1
- package/dist/{GrantUserList-DeWVTGuy.js → GrantUserList-aYzD_hm0.js} +8 -8
- package/dist/{Main-B3Leg_L0.js → Main-0iTpXb98.js} +10 -10
- package/dist/{Main-DnryPI7f.js → Main-BiXZ2uwk.js} +12 -12
- package/dist/{Main-DZGRjkR3.js → Main-C8MhhDdW.js} +5 -5
- package/dist/{MyPosProfile-Dm93oppE.js → MyPosProfile-Calhn0WC.js} +1 -1
- package/dist/{PermissionSetList-ecBXd3ag.js → PermissionSetList-C-O_seZy.js} +17 -17
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BLMb_4xS.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-3FF5AMJb.js} +808 -808
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-2XEgCaw_.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-C07A8JOx.js} +29 -29
- package/dist/{RoleForm.vue_vue_type_script_setup_true_lang-BWwZEK1N.js → RoleForm.vue_vue_type_script_setup_true_lang-DdVuso5Y.js} +31 -31
- package/dist/{RoleList-V02s5IFg.js → RoleList-DExzw7JT.js} +7 -7
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-D4EmiXpK.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-RRpzDisY.js} +1 -1
- package/dist/{ScheduleGeneralPage-B19huvz7.js → ScheduleGeneralPage-DlHMmhGJ.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-DpHkFE_N.js → ScheduleModal.vue_vue_type_script_setup_true_lang-Dkkv_UZL.js} +4 -4
- package/dist/{SchedulePage-DatMj0FX.js → SchedulePage-dhZaaOB9.js} +9 -9
- package/dist/{SchedulePositionPage-weHCiVXF.js → SchedulePositionPage-MzZ5rMOP.js} +3 -3
- package/dist/{SelectFilter-VzroQ6nY.js → SelectFilter-D6i7dIWo.js} +1 -1
- package/dist/{TeamMemberList-Ckh78JzV.js → TeamMemberList-DcA_qRCm.js} +87 -87
- package/dist/{TimesheetList-tA58dMKW.js → TimesheetList-DbZ5S4W7.js} +8 -8
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-B0kMSBDL.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-5AgJfpEl.js} +3 -3
- package/dist/{app-v2fOFcO4.js → app-DTHCLxcv.js} +1792 -1760
- package/dist/app.js +1 -1
- package/dist/{approval-code-DXtjIgqA.js → approval-code-Bs9_Zvb4.js} +1 -1
- package/dist/{dayjs.min-DxlOWUZ1.js → dayjs.min-B1mxceq0.js} +17 -17
- package/dist/{employee-RT04bxj-.js → employee-7hJffW-T.js} +5 -5
- package/dist/{grant-user-6LflFpNK.js → grant-user-CDuaDJvW.js} +1 -1
- package/dist/{iteration-Ce8Ag6An.js → iteration-Blu9ugj8.js} +1 -1
- package/dist/{lodash-CKvwb5V-.js → lodash-DeuHD52q.js} +1 -1
- package/dist/{member-grant-CmrGFbhy.js → member-grant-DxA40oCw.js} +5 -5
- package/dist/{restaurant-B8fppQ6A.js → restaurant-hEQn38rG.js} +1 -1
- package/dist/{role-BtVKxf2F.js → role-CcTqE2HQ.js} +3 -3
- package/dist/{rule-Cd1olm_T.js → rule-CfTomm23.js} +11 -11
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-CgesqYqb.js → useAppStore-D5U6wJfE.js} +1 -1
- package/dist/{useLoading-nOeAHeTr.js → useLoading-Ct27XghS.js} +1 -1
- package/dist/{useReportPermissions-CB_JGPpt.js → useReportPermissions-BD1IvbaS.js} +20 -20
- package/dist/{useSsoProviders-9r2i0iR9.js → useSsoProviders-uz6kcTrk.js} +1 -1
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { getCurrentInstance 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 Re, h as Zn, createVNode as ce, Text as vr, Fragment as De, resolveComponent as Fe, createBlock as Oe, openBlock as K, withCtx as de, createElementVNode as ue, createElementBlock as re, toDisplayString as ke, unref as Y, renderList as Ne, toRef as qt, normalizeStyle as rt, renderSlot as Le, createCommentVNode as Te, normalizeClass as Ce, createTextVNode as hr, useSlots as br, createSlots as tt, mergeModels as en, useModel as gr } from "vue";
|
|
2
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 {
|
|
8
|
-
import { c as Hn } from "./iteration-
|
|
9
|
-
import { r as Pr, s as
|
|
10
|
-
import { W as jr } from "./member-grant-
|
|
11
|
-
import { u as Ur } from "./role-
|
|
5
|
+
import { p as Gn, N as Bn, Y as tn, V as Cr, a as Nr, j as Tr, Q as Or, A as Sr, D as kr, C as Lr } from "./rule-CfTomm23.js";
|
|
6
|
+
import { _ as Yt, a as Ar, b as nn, u as Rr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-D7UE_NiK.js";
|
|
7
|
+
import { v as Mr, u as Yn, w as rn, x as sn, h as wr, g as Dr, b as Fr, C as Xn, S as wt, A as nt, k as Ye, q as an } from "./app-DTHCLxcv.js";
|
|
8
|
+
import { c as Hn } from "./iteration-Blu9ugj8.js";
|
|
9
|
+
import { r as Pr, s as Jn } from "./string-DZQ1uNjn.js";
|
|
10
|
+
import { W as jr } from "./member-grant-DxA40oCw.js";
|
|
11
|
+
import { u as Ur } from "./role-CcTqE2HQ.js";
|
|
12
12
|
function St(e, t, n) {
|
|
13
13
|
const r = /* @__PURE__ */ new Map();
|
|
14
14
|
return e.forEach(
|
|
15
|
-
({ name: s, permissions: a }) => a.forEach(({ conditions:
|
|
15
|
+
({ name: s, permissions: a }) => a.forEach(({ conditions: m, actions: d }) => {
|
|
16
16
|
var g, C;
|
|
17
|
-
const l = JSON.parse(
|
|
17
|
+
const l = JSON.parse(m || "{}");
|
|
18
18
|
(g = l[t]) != null && g.$in ? (C = l[t]) == null || C.$in.forEach(
|
|
19
19
|
(N) => (r.get(N) ?? r.set(N, /* @__PURE__ */ new Set()).get(N)).add(s)
|
|
20
20
|
) : d[0] === "manage" && n.forEach((N) => {
|
|
@@ -31,39 +31,39 @@ 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), xr = (e, t, n) => Vr({ l: e, k: t, s: n }), Vr = (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]", Ct = (e) => q(e) && Object.keys(e).length === 0, Ie = Object.assign,
|
|
34
|
+
const on = typeof window < "u", Qe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), xr = (e, t, n) => Vr({ l: e, k: t, s: n }), Vr = (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]", Ct = (e) => q(e) && Object.keys(e).length === 0, Ie = Object.assign, Zr = Object.create, ae = (e = null) => Zr(e);
|
|
35
35
|
let ln;
|
|
36
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
|
|
40
|
+
const Gr = Object.prototype.hasOwnProperty;
|
|
41
41
|
function Ae(e, t) {
|
|
42
|
-
return
|
|
42
|
+
return Gr.call(e, t);
|
|
43
43
|
}
|
|
44
|
-
const be = Array.isArray,
|
|
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]", Yr = (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
|
}
|
|
48
48
|
function Xr(e, t) {
|
|
49
49
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
50
50
|
}
|
|
51
|
-
const
|
|
51
|
+
const ft = (e) => !ee(e) || be(e);
|
|
52
52
|
function It(e, t) {
|
|
53
|
-
if (
|
|
53
|
+
if (ft(e) || ft(t))
|
|
54
54
|
throw new Error("Invalid value");
|
|
55
55
|
const n = [{ src: e, des: t }];
|
|
56
56
|
for (; n.length; ) {
|
|
57
57
|
const { src: r, des: s } = n.pop();
|
|
58
58
|
Object.keys(r).forEach((a) => {
|
|
59
|
-
a !== "__proto__" && (ee(r[a]) && !ee(s[a]) && (s[a] = Array.isArray(r[a]) ? [] : ae()),
|
|
59
|
+
a !== "__proto__" && (ee(r[a]) && !ee(s[a]) && (s[a] = Array.isArray(r[a]) ? [] : ae()), ft(s[a]) || ft(r[a]) ? s[a] = r[a] : n.push({ src: r[a], des: s[a] }));
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
function Hr(e, t, n) {
|
|
64
64
|
return { line: e, column: t, offset: n };
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Dt(e, t, n) {
|
|
67
67
|
return { start: e, end: t };
|
|
68
68
|
}
|
|
69
69
|
const ne = {
|
|
@@ -83,12 +83,12 @@ const ne = {
|
|
|
83
83
|
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
84
84
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
85
85
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
86
|
-
},
|
|
86
|
+
}, Jr = 17;
|
|
87
87
|
function Nt(e, t, n = {}) {
|
|
88
|
-
const { domain: r, messages: s, args: a } = n,
|
|
88
|
+
const { domain: r, messages: s, args: a } = n, m = e, d = new SyntaxError(String(m));
|
|
89
89
|
return d.code = e, t && (d.location = t), d.domain = r, d;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function $r(e) {
|
|
92
92
|
throw e;
|
|
93
93
|
}
|
|
94
94
|
const xe = " ", Kr = "\r", Ee = `
|
|
@@ -96,12 +96,12 @@ const xe = " ", Kr = "\r", Ee = `
|
|
|
96
96
|
function qr(e) {
|
|
97
97
|
const t = e;
|
|
98
98
|
let n = 0, r = 1, s = 1, a = 0;
|
|
99
|
-
const
|
|
99
|
+
const m = (_) => t[_] === Kr && t[_ + 1] === Ee, d = (_) => t[_] === Ee, l = (_) => t[_] === Qr, g = (_) => t[_] === zr, C = (_) => m(_) || d(_) || l(_) || g(_), N = () => n, T = () => r, j = () => s, D = () => a, k = (_) => m(_) || l(_) || g(_) ? Ee : t[_], P = () => k(n), f = () => k(n + a);
|
|
100
100
|
function b() {
|
|
101
|
-
return a = 0, C(n) && (r++, s = 0),
|
|
101
|
+
return a = 0, C(n) && (r++, s = 0), m(n) && n++, n++, s++, t[n];
|
|
102
102
|
}
|
|
103
103
|
function A() {
|
|
104
|
-
return
|
|
104
|
+
return m(n + a) && a++, a++, t[n + a];
|
|
105
105
|
}
|
|
106
106
|
function u() {
|
|
107
107
|
n = 0, r = 1, s = 1, a = 0;
|
|
@@ -119,10 +119,10 @@ function qr(e) {
|
|
|
119
119
|
index: N,
|
|
120
120
|
line: T,
|
|
121
121
|
column: j,
|
|
122
|
-
peekOffset:
|
|
123
|
-
charAt:
|
|
122
|
+
peekOffset: D,
|
|
123
|
+
charAt: k,
|
|
124
124
|
currentChar: P,
|
|
125
|
-
currentPeek:
|
|
125
|
+
currentPeek: f,
|
|
126
126
|
next: b,
|
|
127
127
|
peek: A,
|
|
128
128
|
reset: u,
|
|
@@ -130,17 +130,17 @@ function qr(e) {
|
|
|
130
130
|
skipToPeek: E
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
const
|
|
133
|
+
const Be = void 0, es = ".", un = "'", ts = "tokenizer";
|
|
134
134
|
function ns(e, t = {}) {
|
|
135
|
-
const n = t.location !== !1, r = qr(e), s = () => r.index(), a = () => Hr(r.line(), r.column(), r.index()),
|
|
135
|
+
const n = t.location !== !1, r = qr(e), s = () => r.index(), a = () => Hr(r.line(), r.column(), r.index()), m = a(), d = s(), l = {
|
|
136
136
|
currentType: 13,
|
|
137
137
|
offset: d,
|
|
138
|
-
startLoc:
|
|
139
|
-
endLoc:
|
|
138
|
+
startLoc: m,
|
|
139
|
+
endLoc: m,
|
|
140
140
|
lastType: 13,
|
|
141
141
|
lastOffset: d,
|
|
142
|
-
lastStartLoc:
|
|
143
|
-
lastEndLoc:
|
|
142
|
+
lastStartLoc: m,
|
|
143
|
+
lastEndLoc: m,
|
|
144
144
|
braceNest: 0,
|
|
145
145
|
inLinked: !1,
|
|
146
146
|
text: ""
|
|
@@ -148,7 +148,7 @@ function ns(e, t = {}) {
|
|
|
148
148
|
function N(o, i, c, ...h) {
|
|
149
149
|
const S = g();
|
|
150
150
|
if (i.column += c, i.offset += c, C) {
|
|
151
|
-
const M = n ?
|
|
151
|
+
const M = n ? Dt(S.startLoc, i) : null, p = Nt(o, M, {
|
|
152
152
|
domain: ts,
|
|
153
153
|
args: h
|
|
154
154
|
});
|
|
@@ -158,28 +158,28 @@ 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 = Dt(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 D(o, i) {
|
|
169
169
|
return o.currentChar() === i ? (o.next(), i) : (N(ne.EXPECTED_TOKEN, a(), 0, i), "");
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function k(o) {
|
|
172
172
|
let i = "";
|
|
173
173
|
for (; o.currentPeek() === xe || 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
|
-
function
|
|
182
|
-
if (o ===
|
|
181
|
+
function f(o) {
|
|
182
|
+
if (o === Be)
|
|
183
183
|
return !1;
|
|
184
184
|
const i = o.charCodeAt(0);
|
|
185
185
|
return i >= 97 && i <= 122 || // a-z
|
|
@@ -187,7 +187,7 @@ function ns(e, t = {}) {
|
|
|
187
187
|
i === 95;
|
|
188
188
|
}
|
|
189
189
|
function b(o) {
|
|
190
|
-
if (o ===
|
|
190
|
+
if (o === Be)
|
|
191
191
|
return !1;
|
|
192
192
|
const i = o.charCodeAt(0);
|
|
193
193
|
return i >= 48 && i <= 57;
|
|
@@ -196,15 +196,15 @@ function ns(e, t = {}) {
|
|
|
196
196
|
const { currentType: c } = i;
|
|
197
197
|
if (c !== 2)
|
|
198
198
|
return !1;
|
|
199
|
-
|
|
200
|
-
const h =
|
|
199
|
+
k(o);
|
|
200
|
+
const h = f(o.currentPeek());
|
|
201
201
|
return o.resetPeek(), h;
|
|
202
202
|
}
|
|
203
203
|
function u(o, i) {
|
|
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,30 +228,30 @@ function ns(e, t = {}) {
|
|
|
228
228
|
const { currentType: c } = i;
|
|
229
229
|
if (c !== 8)
|
|
230
230
|
return !1;
|
|
231
|
-
|
|
232
|
-
const h =
|
|
231
|
+
k(o);
|
|
232
|
+
const h = f(o.currentPeek());
|
|
233
233
|
return o.resetPeek(), h;
|
|
234
234
|
}
|
|
235
235
|
function R(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 === "{" ?
|
|
249
|
+
return M === "{" ? f(o.peek()) : M === "@" || M === "|" || M === ":" || M === "." || M === xe || !M ? !1 : M === Ee ? (o.peek(), h()) : x(o, !1);
|
|
250
250
|
}, S = h();
|
|
251
251
|
return o.resetPeek(), S;
|
|
252
252
|
}
|
|
253
|
-
function
|
|
254
|
-
|
|
253
|
+
function $(o) {
|
|
254
|
+
k(o);
|
|
255
255
|
const i = o.currentPeek() === "|";
|
|
256
256
|
return o.resetPeek(), i;
|
|
257
257
|
}
|
|
@@ -264,7 +264,7 @@ function ns(e, t = {}) {
|
|
|
264
264
|
}
|
|
265
265
|
function F(o, i) {
|
|
266
266
|
const c = o.currentChar();
|
|
267
|
-
return c ===
|
|
267
|
+
return c === Be ? Be : i(c) ? (o.next(), c) : null;
|
|
268
268
|
}
|
|
269
269
|
function y(o) {
|
|
270
270
|
const i = o.charCodeAt(0);
|
|
@@ -274,7 +274,7 @@ function ns(e, t = {}) {
|
|
|
274
274
|
i === 95 || // _
|
|
275
275
|
i === 36;
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function w(o) {
|
|
278
278
|
return F(o, y);
|
|
279
279
|
}
|
|
280
280
|
function V(o) {
|
|
@@ -289,12 +289,12 @@ function ns(e, t = {}) {
|
|
|
289
289
|
function O(o) {
|
|
290
290
|
return F(o, V);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function Z(o) {
|
|
293
293
|
const i = o.charCodeAt(0);
|
|
294
294
|
return i >= 48 && i <= 57;
|
|
295
295
|
}
|
|
296
296
|
function H(o) {
|
|
297
|
-
return F(o,
|
|
297
|
+
return F(o, Z);
|
|
298
298
|
}
|
|
299
299
|
function U(o) {
|
|
300
300
|
const i = o.charCodeAt(0);
|
|
@@ -302,7 +302,7 @@ function ns(e, t = {}) {
|
|
|
302
302
|
i >= 65 && i <= 70 || // A-F
|
|
303
303
|
i >= 97 && i <= 102;
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function J(o) {
|
|
306
306
|
return F(o, U);
|
|
307
307
|
}
|
|
308
308
|
function X(o) {
|
|
@@ -321,7 +321,7 @@ function ns(e, t = {}) {
|
|
|
321
321
|
if (x(o))
|
|
322
322
|
i += c, o.next();
|
|
323
323
|
else {
|
|
324
|
-
if (
|
|
324
|
+
if ($(o))
|
|
325
325
|
break;
|
|
326
326
|
i += c, o.next();
|
|
327
327
|
}
|
|
@@ -335,23 +335,23 @@ function ns(e, t = {}) {
|
|
|
335
335
|
let i = "", c = "";
|
|
336
336
|
for (; i = O(o); )
|
|
337
337
|
c += i;
|
|
338
|
-
return o.currentChar() ===
|
|
338
|
+
return o.currentChar() === Be && N(ne.UNTERMINATED_CLOSING_BRACE, a(), 0), c;
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function fe(o) {
|
|
341
341
|
P(o);
|
|
342
342
|
let i = "";
|
|
343
|
-
return o.currentChar() === "-" ? (o.next(), i += `-${X(o)}`) : i += X(o), o.currentChar() ===
|
|
343
|
+
return o.currentChar() === "-" ? (o.next(), i += `-${X(o)}`) : i += X(o), o.currentChar() === Be && N(ne.UNTERMINATED_CLOSING_BRACE, a(), 0), i;
|
|
344
344
|
}
|
|
345
345
|
function ye(o) {
|
|
346
346
|
return o !== un && o !== Ee;
|
|
347
347
|
}
|
|
348
348
|
function ve(o) {
|
|
349
|
-
P(o),
|
|
349
|
+
P(o), D(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 ===
|
|
354
|
+
return h === Ee || h === Be ? (N(ne.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), h === Ee && (o.next(), D(o, "'")), c) : (D(o, "'"), c);
|
|
355
355
|
}
|
|
356
356
|
function oe(o) {
|
|
357
357
|
const i = o.currentChar();
|
|
@@ -368,10 +368,10 @@ function ns(e, t = {}) {
|
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
function ie(o, i, c) {
|
|
371
|
-
|
|
371
|
+
D(o, i);
|
|
372
372
|
let h = "";
|
|
373
373
|
for (let S = 0; S < c; S++) {
|
|
374
|
-
const M =
|
|
374
|
+
const M = J(o);
|
|
375
375
|
if (!M) {
|
|
376
376
|
N(ne.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${i}${h}${o.currentChar()}`);
|
|
377
377
|
break;
|
|
@@ -383,7 +383,7 @@ function ns(e, t = {}) {
|
|
|
383
383
|
function Pe(o) {
|
|
384
384
|
return o !== "{" && o !== "}" && o !== xe && o !== Ee;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function B(o) {
|
|
387
387
|
P(o);
|
|
388
388
|
let i = "", c = "";
|
|
389
389
|
for (; i = F(o, Pe); )
|
|
@@ -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 = w(o); )
|
|
396
396
|
c += i;
|
|
397
397
|
return c;
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function $e(o) {
|
|
400
400
|
const i = (c) => {
|
|
401
401
|
const h = o.currentChar();
|
|
402
402
|
return h === "{" || h === "@" || h === "|" || h === "(" || h === ")" || !h || h === xe ? c : (c += h, o.next(), i(c));
|
|
403
403
|
};
|
|
404
404
|
return i("");
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function Ze(o) {
|
|
407
407
|
P(o);
|
|
408
|
-
const i =
|
|
408
|
+
const i = D(
|
|
409
409
|
o,
|
|
410
410
|
"|"
|
|
411
411
|
/* TokenChars.Pipe */
|
|
@@ -433,18 +433,18 @@ function ns(e, t = {}) {
|
|
|
433
433
|
return i.braceNest > 0 && N(ne.UNTERMINATED_CLOSING_BRACE, a(), 0), c = Ue(o, i) || j(i), i.braceNest = 0, c;
|
|
434
434
|
default: {
|
|
435
435
|
let S = !0, M = !0, p = !0;
|
|
436
|
-
if (
|
|
437
|
-
return i.braceNest > 0 && N(ne.UNTERMINATED_CLOSING_BRACE, a(), 0), c = T(i, 1,
|
|
436
|
+
if ($(o))
|
|
437
|
+
return i.braceNest > 0 && N(ne.UNTERMINATED_CLOSING_BRACE, a(), 0), c = T(i, 1, Ze(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 N(ne.UNTERMINATED_CLOSING_BRACE, a(), 0), i.braceNest = 0,
|
|
439
|
+
return N(ne.UNTERMINATED_CLOSING_BRACE, a(), 0), i.braceNest = 0, Ge(o, i);
|
|
440
440
|
if (S = A(o, i))
|
|
441
441
|
return c = T(i, 4, Q(o)), P(o), c;
|
|
442
442
|
if (M = u(o, i))
|
|
443
|
-
return c = T(i, 5,
|
|
443
|
+
return c = T(i, 5, fe(o)), P(o), c;
|
|
444
444
|
if (p = I(o, i))
|
|
445
445
|
return c = T(i, 6, ve(o)), P(o), c;
|
|
446
446
|
if (!S && !M && !p)
|
|
447
|
-
return c = T(i, 12,
|
|
447
|
+
return c = T(i, 12, B(o)), N(ne.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, c.value), P(o), c;
|
|
448
448
|
break;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
@@ -477,10 +477,10 @@ function ns(e, t = {}) {
|
|
|
477
477
|
/* TokenChars.LinkedDelimiter */
|
|
478
478
|
);
|
|
479
479
|
default:
|
|
480
|
-
return
|
|
480
|
+
return $(o) ? (h = T(i, 1, Ze(o)), i.braceNest = 0, i.inLinked = !1, h) : E(o, i) || R(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 && N(ne.INVALID_LINKED_FORMAT, a(), 0), i.braceNest = 0, i.inLinked = !1, Ge(o, i));
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function Ge(o, i) {
|
|
484
484
|
let c = {
|
|
485
485
|
type: 13
|
|
486
486
|
/* TokenTypes.EOF */
|
|
@@ -502,8 +502,8 @@ function ns(e, t = {}) {
|
|
|
502
502
|
case "@":
|
|
503
503
|
return Ue(o, i) || j(i);
|
|
504
504
|
default: {
|
|
505
|
-
if (
|
|
506
|
-
return c = T(i, 1,
|
|
505
|
+
if ($(o))
|
|
506
|
+
return c = T(i, 1, Ze(o)), i.braceNest = 0, i.inLinked = !1, c;
|
|
507
507
|
if (x(o))
|
|
508
508
|
return T(i, 0, se(o));
|
|
509
509
|
break;
|
|
@@ -513,11 +513,11 @@ function ns(e, t = {}) {
|
|
|
513
513
|
}
|
|
514
514
|
function qe() {
|
|
515
515
|
const { currentType: o, offset: i, startLoc: c, endLoc: h } = l;
|
|
516
|
-
return l.lastType = o, l.lastOffset = i, l.lastStartLoc = c, l.lastEndLoc = h, l.offset = s(), l.startLoc = a(), r.currentChar() ===
|
|
516
|
+
return l.lastType = o, l.lastOffset = i, l.lastStartLoc = c, l.lastEndLoc = h, l.offset = s(), l.startLoc = a(), r.currentChar() === Be ? T(
|
|
517
517
|
l,
|
|
518
518
|
13
|
|
519
519
|
/* TokenTypes.EOF */
|
|
520
|
-
) :
|
|
520
|
+
) : Ge(r, l);
|
|
521
521
|
}
|
|
522
522
|
return {
|
|
523
523
|
nextToken: qe,
|
|
@@ -541,136 +541,136 @@ 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(
|
|
545
|
-
const E =
|
|
544
|
+
function r(f, b, A, u, ...I) {
|
|
545
|
+
const E = f.currentPosition();
|
|
546
546
|
if (E.offset += u, E.column += u, n) {
|
|
547
|
-
const _ = t ?
|
|
547
|
+
const _ = t ? Dt(A, E) : null, R = Nt(b, _, {
|
|
548
548
|
domain: rs,
|
|
549
549
|
args: I
|
|
550
550
|
});
|
|
551
551
|
n(R);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
function s(
|
|
555
|
-
const u = { type:
|
|
554
|
+
function s(f, b, A) {
|
|
555
|
+
const u = { type: f };
|
|
556
556
|
return t && (u.start = b, u.end = b, u.loc = { start: A, end: A }), u;
|
|
557
557
|
}
|
|
558
|
-
function a(
|
|
559
|
-
t && (
|
|
558
|
+
function a(f, b, A, u) {
|
|
559
|
+
t && (f.end = b, f.loc && (f.loc.end = A));
|
|
560
560
|
}
|
|
561
|
-
function f
|
|
562
|
-
const A =
|
|
563
|
-
return u.value = b, a(u,
|
|
561
|
+
function m(f, b) {
|
|
562
|
+
const A = f.context(), u = s(3, A.offset, A.startLoc);
|
|
563
|
+
return u.value = b, a(u, f.currentOffset(), f.currentPosition()), u;
|
|
564
564
|
}
|
|
565
|
-
function d(
|
|
566
|
-
const A =
|
|
567
|
-
return E.index = parseInt(b, 10),
|
|
565
|
+
function d(f, b) {
|
|
566
|
+
const A = f.context(), { lastOffset: u, lastStartLoc: I } = A, E = s(5, u, I);
|
|
567
|
+
return E.index = parseInt(b, 10), f.nextToken(), a(E, f.currentOffset(), f.currentPosition()), E;
|
|
568
568
|
}
|
|
569
|
-
function l(
|
|
570
|
-
const A =
|
|
571
|
-
return E.key = b,
|
|
569
|
+
function l(f, b) {
|
|
570
|
+
const A = f.context(), { lastOffset: u, lastStartLoc: I } = A, E = s(4, u, I);
|
|
571
|
+
return E.key = b, f.nextToken(), a(E, f.currentOffset(), f.currentPosition()), E;
|
|
572
572
|
}
|
|
573
|
-
function g(
|
|
574
|
-
const A =
|
|
575
|
-
return E.value = b.replace(ss, as),
|
|
573
|
+
function g(f, b) {
|
|
574
|
+
const A = f.context(), { lastOffset: u, lastStartLoc: I } = A, E = s(9, u, I);
|
|
575
|
+
return E.value = b.replace(ss, as), f.nextToken(), a(E, f.currentOffset(), f.currentPosition()), E;
|
|
576
576
|
}
|
|
577
|
-
function C(
|
|
578
|
-
const b =
|
|
579
|
-
return b.type !== 11 ? (r(
|
|
577
|
+
function C(f) {
|
|
578
|
+
const b = f.nextToken(), A = f.context(), { lastOffset: u, lastStartLoc: I } = A, E = s(8, u, I);
|
|
579
|
+
return b.type !== 11 ? (r(f, ne.UNEXPECTED_EMPTY_LINKED_MODIFIER, A.lastStartLoc, 0), E.value = "", a(E, u, I), {
|
|
580
580
|
nextConsumeToken: b,
|
|
581
581
|
node: E
|
|
582
|
-
}) : (b.value == null && r(
|
|
582
|
+
}) : (b.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, we(b)), E.value = b.value || "", a(E, f.currentOffset(), f.currentPosition()), {
|
|
583
583
|
node: E
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
|
-
function N(
|
|
587
|
-
const A =
|
|
588
|
-
return u.value = b, a(u,
|
|
586
|
+
function N(f, b) {
|
|
587
|
+
const A = f.context(), u = s(7, A.offset, A.startLoc);
|
|
588
|
+
return u.value = b, a(u, f.currentOffset(), f.currentPosition()), u;
|
|
589
589
|
}
|
|
590
|
-
function T(
|
|
591
|
-
const b =
|
|
592
|
-
let u =
|
|
590
|
+
function T(f) {
|
|
591
|
+
const b = f.context(), A = s(6, b.offset, b.startLoc);
|
|
592
|
+
let u = f.nextToken();
|
|
593
593
|
if (u.type === 8) {
|
|
594
|
-
const I = C(
|
|
595
|
-
A.modifier = I.node, u = I.nextConsumeToken ||
|
|
594
|
+
const I = C(f);
|
|
595
|
+
A.modifier = I.node, u = I.nextConsumeToken || f.nextToken();
|
|
596
596
|
}
|
|
597
|
-
switch (u.type !== 9 && r(
|
|
597
|
+
switch (u.type !== 9 && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, we(u)), u = f.nextToken(), u.type === 2 && (u = f.nextToken()), u.type) {
|
|
598
598
|
case 10:
|
|
599
|
-
u.value == null && r(
|
|
599
|
+
u.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, we(u)), A.key = N(f, u.value || "");
|
|
600
600
|
break;
|
|
601
601
|
case 4:
|
|
602
|
-
u.value == null && r(
|
|
602
|
+
u.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, we(u)), A.key = l(f, u.value || "");
|
|
603
603
|
break;
|
|
604
604
|
case 5:
|
|
605
|
-
u.value == null && r(
|
|
605
|
+
u.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, we(u)), A.key = d(f, u.value || "");
|
|
606
606
|
break;
|
|
607
607
|
case 6:
|
|
608
|
-
u.value == null && r(
|
|
608
|
+
u.value == null && r(f, ne.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, we(u)), A.key = g(f, u.value || "");
|
|
609
609
|
break;
|
|
610
610
|
default: {
|
|
611
|
-
r(
|
|
612
|
-
const I =
|
|
611
|
+
r(f, ne.UNEXPECTED_EMPTY_LINKED_KEY, b.lastStartLoc, 0);
|
|
612
|
+
const I = f.context(), E = s(7, I.offset, I.startLoc);
|
|
613
613
|
return E.value = "", a(E, I.offset, I.startLoc), A.key = E, a(A, I.offset, I.startLoc), {
|
|
614
614
|
nextConsumeToken: u,
|
|
615
615
|
node: A
|
|
616
616
|
};
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
return a(A,
|
|
619
|
+
return a(A, f.currentOffset(), f.currentPosition()), {
|
|
620
620
|
node: A
|
|
621
621
|
};
|
|
622
622
|
}
|
|
623
|
-
function j(
|
|
624
|
-
const b =
|
|
623
|
+
function j(f) {
|
|
624
|
+
const b = f.context(), A = b.currentType === 1 ? f.currentOffset() : b.offset, u = b.currentType === 1 ? b.endLoc : b.startLoc, I = s(2, A, 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, we(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, we(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, we(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, we(L)), I.items.push(g(f, L.value || ""));
|
|
641
641
|
break;
|
|
642
642
|
case 7: {
|
|
643
|
-
const
|
|
644
|
-
I.items.push(
|
|
643
|
+
const $ = T(f);
|
|
644
|
+
I.items.push($.node), E = $.nextConsumeToken || null;
|
|
645
645
|
break;
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
648
|
} while (b.currentType !== 13 && b.currentType !== 1);
|
|
649
|
-
const _ = b.currentType === 1 ? b.lastOffset :
|
|
649
|
+
const _ = b.currentType === 1 ? b.lastOffset : f.currentOffset(), R = b.currentType === 1 ? b.lastEndLoc : f.currentPosition();
|
|
650
650
|
return a(I, _, R), I;
|
|
651
651
|
}
|
|
652
|
-
function
|
|
653
|
-
const I =
|
|
652
|
+
function D(f, b, A, u) {
|
|
653
|
+
const I = f.context();
|
|
654
654
|
let E = u.items.length === 0;
|
|
655
655
|
const _ = s(1, b, A);
|
|
656
656
|
_.cases = [], _.cases.push(u);
|
|
657
657
|
do {
|
|
658
|
-
const R = j(
|
|
658
|
+
const R = j(f);
|
|
659
659
|
E || (E = R.items.length === 0), _.cases.push(R);
|
|
660
660
|
} while (I.currentType !== 13);
|
|
661
|
-
return E && r(
|
|
661
|
+
return E && r(f, ne.MUST_HAVE_MESSAGES_IN_PLURAL, A, 0), a(_, f.currentOffset(), f.currentPosition()), _;
|
|
662
662
|
}
|
|
663
|
-
function
|
|
664
|
-
const b =
|
|
665
|
-
return b.currentType === 13 ? I :
|
|
663
|
+
function k(f) {
|
|
664
|
+
const b = f.context(), { offset: A, startLoc: u } = b, I = j(f);
|
|
665
|
+
return b.currentType === 13 ? I : D(f, A, u, I);
|
|
666
666
|
}
|
|
667
|
-
function P(
|
|
668
|
-
const b = ns(
|
|
669
|
-
return t && u.loc && (u.loc.source =
|
|
667
|
+
function P(f) {
|
|
668
|
+
const b = ns(f, Ie({}, e)), A = b.context(), u = s(0, A.offset, A.startLoc);
|
|
669
|
+
return t && u.loc && (u.loc.source = f), u.body = k(b), e.onCacheKey && (u.cacheKey = e.onCacheKey(f)), A.currentType !== 13 && r(b, ne.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, f[A.offset] || ""), a(u, b.currentOffset(), b.currentPosition()), u;
|
|
670
670
|
}
|
|
671
671
|
return { parse: P };
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function we(e) {
|
|
674
674
|
if (e.type === 13)
|
|
675
675
|
return "EOF";
|
|
676
676
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
@@ -685,9 +685,9 @@ function ls(e, t = {}) {
|
|
|
685
685
|
}
|
|
686
686
|
function dn(e, t) {
|
|
687
687
|
for (let n = 0; n < e.length; n++)
|
|
688
|
-
|
|
688
|
+
Jt(e[n], t);
|
|
689
689
|
}
|
|
690
|
-
function
|
|
690
|
+
function Jt(e, t) {
|
|
691
691
|
switch (e.type) {
|
|
692
692
|
case 1:
|
|
693
693
|
dn(e.cases, t), t.helper(
|
|
@@ -699,7 +699,7 @@ function $t(e, t) {
|
|
|
699
699
|
dn(e.items, t);
|
|
700
700
|
break;
|
|
701
701
|
case 6: {
|
|
702
|
-
|
|
702
|
+
Jt(e.key, t), t.helper(
|
|
703
703
|
"linked"
|
|
704
704
|
/* HelperNameMap.LINKED */
|
|
705
705
|
), t.helper(
|
|
@@ -733,15 +733,15 @@ function is(e, t = {}) {
|
|
|
733
733
|
n.helper(
|
|
734
734
|
"normalize"
|
|
735
735
|
/* HelperNameMap.NORMALIZE */
|
|
736
|
-
), e.body &&
|
|
736
|
+
), e.body && Jt(e.body, n);
|
|
737
737
|
const r = n.context();
|
|
738
738
|
e.helpers = Array.from(r.helpers);
|
|
739
739
|
}
|
|
740
740
|
function cs(e) {
|
|
741
741
|
const t = e.body;
|
|
742
|
-
return t.type === 2 ?
|
|
742
|
+
return t.type === 2 ? mn(t) : t.cases.forEach((n) => mn(n)), e;
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function mn(e) {
|
|
745
745
|
if (e.items.length === 1) {
|
|
746
746
|
const t = e.items[0];
|
|
747
747
|
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
@@ -810,7 +810,7 @@ function et(e) {
|
|
|
810
810
|
delete e.type;
|
|
811
811
|
}
|
|
812
812
|
function us(e, t) {
|
|
813
|
-
const { filename: n, breakLineCode: r, needIndent: s } = t, a = t.location !== !1,
|
|
813
|
+
const { filename: n, breakLineCode: r, needIndent: s } = t, a = t.location !== !1, m = {
|
|
814
814
|
filename: n,
|
|
815
815
|
code: "",
|
|
816
816
|
column: 1,
|
|
@@ -821,25 +821,25 @@ function us(e, t) {
|
|
|
821
821
|
needIndent: s,
|
|
822
822
|
indentLevel: 0
|
|
823
823
|
};
|
|
824
|
-
a && e.loc && (
|
|
825
|
-
const d = () =>
|
|
826
|
-
function l(
|
|
827
|
-
|
|
824
|
+
a && e.loc && (m.source = e.loc.source);
|
|
825
|
+
const d = () => m;
|
|
826
|
+
function l(k, P) {
|
|
827
|
+
m.code += k;
|
|
828
828
|
}
|
|
829
|
-
function g(
|
|
830
|
-
const
|
|
831
|
-
l(s ?
|
|
829
|
+
function g(k, P = !0) {
|
|
830
|
+
const f = P ? r : "";
|
|
831
|
+
l(s ? f + " ".repeat(k) : f);
|
|
832
832
|
}
|
|
833
|
-
function C(
|
|
834
|
-
const P = ++
|
|
835
|
-
|
|
833
|
+
function C(k = !0) {
|
|
834
|
+
const P = ++m.indentLevel;
|
|
835
|
+
k && g(P);
|
|
836
836
|
}
|
|
837
|
-
function N(
|
|
838
|
-
const P = --
|
|
839
|
-
|
|
837
|
+
function N(k = !0) {
|
|
838
|
+
const P = --m.indentLevel;
|
|
839
|
+
k && g(P);
|
|
840
840
|
}
|
|
841
841
|
function T() {
|
|
842
|
-
g(
|
|
842
|
+
g(m.indentLevel);
|
|
843
843
|
}
|
|
844
844
|
return {
|
|
845
845
|
context: d,
|
|
@@ -847,8 +847,8 @@ function us(e, t) {
|
|
|
847
847
|
indent: C,
|
|
848
848
|
deindent: N,
|
|
849
849
|
newline: T,
|
|
850
|
-
helper: (
|
|
851
|
-
needIndent: () =>
|
|
850
|
+
helper: (k) => `_${k}`,
|
|
851
|
+
needIndent: () => m.needIndent
|
|
852
852
|
};
|
|
853
853
|
}
|
|
854
854
|
function ds(e, t) {
|
|
@@ -858,7 +858,7 @@ function ds(e, t) {
|
|
|
858
858
|
/* HelperNameMap.LINKED */
|
|
859
859
|
)}(`), at(e, t.key), t.modifier ? (e.push(", "), at(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
860
860
|
}
|
|
861
|
-
function
|
|
861
|
+
function ms(e, t) {
|
|
862
862
|
const { helper: n, needIndent: r } = e;
|
|
863
863
|
e.push(`${n(
|
|
864
864
|
"normalize"
|
|
@@ -869,7 +869,7 @@ function fs(e, t) {
|
|
|
869
869
|
e.push(", ");
|
|
870
870
|
e.deindent(r()), e.push("])");
|
|
871
871
|
}
|
|
872
|
-
function
|
|
872
|
+
function fs(e, t) {
|
|
873
873
|
const { helper: n, needIndent: r } = e;
|
|
874
874
|
if (t.cases.length > 1) {
|
|
875
875
|
e.push(`${n(
|
|
@@ -892,10 +892,10 @@ function at(e, t) {
|
|
|
892
892
|
_s(e, t);
|
|
893
893
|
break;
|
|
894
894
|
case 1:
|
|
895
|
-
|
|
895
|
+
fs(e, t);
|
|
896
896
|
break;
|
|
897
897
|
case 2:
|
|
898
|
-
|
|
898
|
+
ms(e, t);
|
|
899
899
|
break;
|
|
900
900
|
case 6:
|
|
901
901
|
ds(e, t);
|
|
@@ -936,12 +936,12 @@ const ps = (e, t = {}) => {
|
|
|
936
936
|
const n = W(t.mode) ? t.mode : "normal", r = W(t.filename) ? t.filename : "message.intl";
|
|
937
937
|
t.sourceMap;
|
|
938
938
|
const s = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
939
|
-
`, a = t.needIndent ? t.needIndent : n !== "arrow",
|
|
939
|
+
`, a = t.needIndent ? t.needIndent : n !== "arrow", m = e.helpers || [], d = us(e, {
|
|
940
940
|
filename: r,
|
|
941
941
|
breakLineCode: s,
|
|
942
942
|
needIndent: a
|
|
943
943
|
});
|
|
944
|
-
d.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), d.indent(a),
|
|
944
|
+
d.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), d.indent(a), m.length > 0 && (d.push(`const { ${Ht(m.map((C) => `${C}: _${C}`), ", ")} } = ctx`), d.newline()), d.push("return "), at(d, e), d.deindent(a), d.push("}"), delete e.helpers;
|
|
945
945
|
const { code: l, map: g } = d.context();
|
|
946
946
|
return {
|
|
947
947
|
ast: e,
|
|
@@ -958,7 +958,7 @@ var hs = { env: { NODE_ENV: "production" } };
|
|
|
958
958
|
function bs() {
|
|
959
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) {
|
|
@@ -968,14 +968,14 @@ function gs(e, t) {
|
|
|
968
968
|
0
|
|
969
969
|
/* NodeTypes.Resource */
|
|
970
970
|
);
|
|
971
|
-
if (
|
|
971
|
+
if ($t(n) === 1) {
|
|
972
972
|
const a = Cs(n);
|
|
973
|
-
return e.plural(a.reduce((
|
|
974
|
-
...
|
|
975
|
-
|
|
973
|
+
return e.plural(a.reduce((m, d) => [
|
|
974
|
+
...m,
|
|
975
|
+
fn(e, d)
|
|
976
976
|
], []));
|
|
977
977
|
} else
|
|
978
|
-
return
|
|
978
|
+
return fn(e, n);
|
|
979
979
|
}
|
|
980
980
|
const Is = ["b", "body"];
|
|
981
981
|
function ys(e) {
|
|
@@ -985,7 +985,7 @@ const Es = ["c", "cases"];
|
|
|
985
985
|
function Cs(e) {
|
|
986
986
|
return He(e, Es, []);
|
|
987
987
|
}
|
|
988
|
-
function
|
|
988
|
+
function fn(e, t) {
|
|
989
989
|
const n = Ts(t);
|
|
990
990
|
if (n != null)
|
|
991
991
|
return e.type === "text" ? n : e.normalize([n]);
|
|
@@ -1003,7 +1003,7 @@ function Ss(e) {
|
|
|
1003
1003
|
return He(e, Os, []);
|
|
1004
1004
|
}
|
|
1005
1005
|
function Ft(e, t) {
|
|
1006
|
-
const n =
|
|
1006
|
+
const n = $t(t);
|
|
1007
1007
|
switch (n) {
|
|
1008
1008
|
case 3:
|
|
1009
1009
|
return _t(t, n);
|
|
@@ -1026,7 +1026,7 @@ function Ft(e, t) {
|
|
|
1026
1026
|
throw ct(n);
|
|
1027
1027
|
}
|
|
1028
1028
|
case 6: {
|
|
1029
|
-
const r = t, s = Rs(r), a =
|
|
1029
|
+
const r = t, s = Rs(r), a = ws(r);
|
|
1030
1030
|
return e.linked(Ft(e, a), s ? Ft(e, s) : void 0, e.type);
|
|
1031
1031
|
}
|
|
1032
1032
|
case 7:
|
|
@@ -1037,13 +1037,13 @@ function Ft(e, t) {
|
|
|
1037
1037
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
|
-
const
|
|
1041
|
-
function
|
|
1042
|
-
return He(e,
|
|
1040
|
+
const ks = ["t", "type"];
|
|
1041
|
+
function $t(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);
|
|
@@ -1053,7 +1053,7 @@ function Rs(e) {
|
|
|
1053
1053
|
return He(e, As);
|
|
1054
1054
|
}
|
|
1055
1055
|
const Ms = ["k", "key"];
|
|
1056
|
-
function
|
|
1056
|
+
function ws(e) {
|
|
1057
1057
|
const t = He(e, Ms);
|
|
1058
1058
|
if (t)
|
|
1059
1059
|
return t;
|
|
@@ -1073,14 +1073,14 @@ 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 Ds = (e) => e;
|
|
1077
1077
|
let pt = ae();
|
|
1078
1078
|
function ot(e) {
|
|
1079
|
-
return ee(e) &&
|
|
1079
|
+
return ee(e) && $t(e) === 0 && (Ae(e, "b") || Ae(e, "body"));
|
|
1080
1080
|
}
|
|
1081
1081
|
function Fs(e, t = {}) {
|
|
1082
1082
|
let n = !1;
|
|
1083
|
-
const r = t.onError ||
|
|
1083
|
+
const r = t.onError || $r;
|
|
1084
1084
|
return t.onError = (s) => {
|
|
1085
1085
|
n = !0, r(s);
|
|
1086
1086
|
}, { ...vs(e, t), detectError: n };
|
|
@@ -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 || Ds)(e), s = pt[r];
|
|
1093
1093
|
if (s)
|
|
1094
1094
|
return s;
|
|
1095
|
-
const { ast: a, detectError:
|
|
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 =
|
|
1100
|
-
return
|
|
1099
|
+
}), d = kt(a);
|
|
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;
|
|
@@ -1124,7 +1124,7 @@ function Vs(e) {
|
|
|
1124
1124
|
return (t) => ut && ut.emit(e, t);
|
|
1125
1125
|
}
|
|
1126
1126
|
const Ve = {
|
|
1127
|
-
INVALID_ARGUMENT:
|
|
1127
|
+
INVALID_ARGUMENT: Jr,
|
|
1128
1128
|
// 17
|
|
1129
1129
|
INVALID_DATE_ARGUMENT: 18,
|
|
1130
1130
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1138,24 +1138,24 @@ function We(e) {
|
|
|
1138
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
|
-
if (
|
|
1146
|
-
if (e.resolvedOnce &&
|
|
1147
|
-
return
|
|
1145
|
+
if (me(e)) {
|
|
1146
|
+
if (e.resolvedOnce && Lt != null)
|
|
1147
|
+
return Lt;
|
|
1148
1148
|
if (e.constructor.name === "Function") {
|
|
1149
1149
|
const t = e();
|
|
1150
|
-
if (
|
|
1150
|
+
if (Br(t))
|
|
1151
1151
|
throw We(Ve.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1152
|
-
return
|
|
1152
|
+
return Lt = t;
|
|
1153
1153
|
} else
|
|
1154
1154
|
throw We(Ve.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1155
1155
|
} else
|
|
1156
1156
|
throw We(Ve.NOT_SUPPORT_LOCALE_TYPE);
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1158
|
+
function Zs(e, t, n) {
|
|
1159
1159
|
return [.../* @__PURE__ */ new Set([
|
|
1160
1160
|
n,
|
|
1161
1161
|
...be(t) ? t : ee(t) ? Object.keys(t) : W(t) ? [t] : [n]
|
|
@@ -1167,11 +1167,11 @@ function Kn(e, t, n) {
|
|
|
1167
1167
|
let a = s.__localeChainCache.get(r);
|
|
1168
1168
|
if (!a) {
|
|
1169
1169
|
a = [];
|
|
1170
|
-
let
|
|
1171
|
-
for (; be(
|
|
1172
|
-
|
|
1170
|
+
let m = [n];
|
|
1171
|
+
for (; be(m); )
|
|
1172
|
+
m = pn(a, m, t);
|
|
1173
1173
|
const d = be(t) || !q(t) ? t : t.default ? t.default : null;
|
|
1174
|
-
|
|
1174
|
+
m = W(d) ? [d] : d, be(m) && pn(a, m, !1), s.__localeChainCache.set(r, a);
|
|
1175
1175
|
}
|
|
1176
1176
|
return a;
|
|
1177
1177
|
}
|
|
@@ -1179,20 +1179,20 @@ 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 = Gs(e, t[s], n));
|
|
1183
1183
|
}
|
|
1184
1184
|
return r;
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1186
|
+
function Gs(e, t, n) {
|
|
1187
1187
|
let r;
|
|
1188
1188
|
const s = t.split("-");
|
|
1189
1189
|
do {
|
|
1190
1190
|
const a = s.join("-");
|
|
1191
|
-
r =
|
|
1191
|
+
r = Bs(e, a, n), s.splice(-1, 1);
|
|
1192
1192
|
} while (s.length && r === !0);
|
|
1193
1193
|
return r;
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1195
|
+
function Bs(e, t, n) {
|
|
1196
1196
|
let r = !1;
|
|
1197
1197
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1198
1198
|
r = t[t.length - 1] !== "!";
|
|
@@ -1201,8 +1201,8 @@ function Ys(e, t, n) {
|
|
|
1201
1201
|
}
|
|
1202
1202
|
return r;
|
|
1203
1203
|
}
|
|
1204
|
-
const
|
|
1205
|
-
|
|
1204
|
+
const Je = [];
|
|
1205
|
+
Je[
|
|
1206
1206
|
0
|
|
1207
1207
|
/* States.BEFORE_PATH */
|
|
1208
1208
|
] = {
|
|
@@ -1224,7 +1224,7 @@ $e[
|
|
|
1224
1224
|
/* States.AFTER_PATH */
|
|
1225
1225
|
]
|
|
1226
1226
|
};
|
|
1227
|
-
|
|
1227
|
+
Je[
|
|
1228
1228
|
1
|
|
1229
1229
|
/* States.IN_PATH */
|
|
1230
1230
|
] = {
|
|
@@ -1245,7 +1245,7 @@ $e[
|
|
|
1245
1245
|
/* States.AFTER_PATH */
|
|
1246
1246
|
]
|
|
1247
1247
|
};
|
|
1248
|
-
|
|
1248
|
+
Je[
|
|
1249
1249
|
2
|
|
1250
1250
|
/* States.BEFORE_IDENT */
|
|
1251
1251
|
] = {
|
|
@@ -1264,7 +1264,7 @@ $e[
|
|
|
1264
1264
|
/* Actions.APPEND */
|
|
1265
1265
|
]
|
|
1266
1266
|
};
|
|
1267
|
-
|
|
1267
|
+
Je[
|
|
1268
1268
|
3
|
|
1269
1269
|
/* States.IN_IDENT */
|
|
1270
1270
|
] = {
|
|
@@ -1299,7 +1299,7 @@ $e[
|
|
|
1299
1299
|
/* Actions.PUSH */
|
|
1300
1300
|
]
|
|
1301
1301
|
};
|
|
1302
|
-
|
|
1302
|
+
Je[
|
|
1303
1303
|
4
|
|
1304
1304
|
/* States.IN_SUB_PATH */
|
|
1305
1305
|
] = {
|
|
@@ -1330,7 +1330,7 @@ $e[
|
|
|
1330
1330
|
/* Actions.APPEND */
|
|
1331
1331
|
]
|
|
1332
1332
|
};
|
|
1333
|
-
|
|
1333
|
+
Je[
|
|
1334
1334
|
5
|
|
1335
1335
|
/* States.IN_SINGLE_QUOTE */
|
|
1336
1336
|
] = {
|
|
@@ -1346,7 +1346,7 @@ $e[
|
|
|
1346
1346
|
/* Actions.APPEND */
|
|
1347
1347
|
]
|
|
1348
1348
|
};
|
|
1349
|
-
|
|
1349
|
+
Je[
|
|
1350
1350
|
6
|
|
1351
1351
|
/* States.IN_DOUBLE_QUOTE */
|
|
1352
1352
|
] = {
|
|
@@ -1362,15 +1362,15 @@ $e[
|
|
|
1362
1362
|
/* Actions.APPEND */
|
|
1363
1363
|
]
|
|
1364
1364
|
};
|
|
1365
|
-
const
|
|
1365
|
+
const Ys = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1366
1366
|
function Xs(e) {
|
|
1367
|
-
return
|
|
1367
|
+
return Ys.test(e);
|
|
1368
1368
|
}
|
|
1369
1369
|
function Hs(e) {
|
|
1370
1370
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1371
1371
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function Js(e) {
|
|
1374
1374
|
if (e == null)
|
|
1375
1375
|
return "o";
|
|
1376
1376
|
switch (e.charCodeAt(0)) {
|
|
@@ -1395,24 +1395,24 @@ function $s(e) {
|
|
|
1395
1395
|
}
|
|
1396
1396
|
return "i";
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1398
|
+
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
1402
|
function Ks(e) {
|
|
1403
1403
|
const t = [];
|
|
1404
|
-
let n = -1, r = 0, s = 0, a,
|
|
1404
|
+
let n = -1, r = 0, s = 0, a, m, d, l, g, C, N;
|
|
1405
1405
|
const T = [];
|
|
1406
1406
|
T[
|
|
1407
1407
|
0
|
|
1408
1408
|
/* Actions.APPEND */
|
|
1409
1409
|
] = () => {
|
|
1410
|
-
|
|
1410
|
+
m === void 0 ? m = d : m += d;
|
|
1411
1411
|
}, T[
|
|
1412
1412
|
1
|
|
1413
1413
|
/* Actions.PUSH */
|
|
1414
1414
|
] = () => {
|
|
1415
|
-
|
|
1415
|
+
m !== void 0 && (t.push(m), m = void 0);
|
|
1416
1416
|
}, T[
|
|
1417
1417
|
2
|
|
1418
1418
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
@@ -1431,7 +1431,7 @@ function Ks(e) {
|
|
|
1431
1431
|
/* Actions.APPEND */
|
|
1432
1432
|
]();
|
|
1433
1433
|
else {
|
|
1434
|
-
if (s = 0,
|
|
1434
|
+
if (s = 0, m === void 0 || (m = $s(m), m === !1))
|
|
1435
1435
|
return !1;
|
|
1436
1436
|
T[
|
|
1437
1437
|
1
|
|
@@ -1440,16 +1440,16 @@ function Ks(e) {
|
|
|
1440
1440
|
}
|
|
1441
1441
|
};
|
|
1442
1442
|
function j() {
|
|
1443
|
-
const
|
|
1444
|
-
if (r === 5 &&
|
|
1445
|
-
return n++, d = "\\" +
|
|
1443
|
+
const D = e[n + 1];
|
|
1444
|
+
if (r === 5 && D === "'" || r === 6 && D === '"')
|
|
1445
|
+
return n++, d = "\\" + D, T[
|
|
1446
1446
|
0
|
|
1447
1447
|
/* Actions.APPEND */
|
|
1448
1448
|
](), !0;
|
|
1449
1449
|
}
|
|
1450
1450
|
for (; r !== null; )
|
|
1451
1451
|
if (n++, a = e[n], !(a === "\\" && j())) {
|
|
1452
|
-
if (l =
|
|
1452
|
+
if (l = Js(a), N = Je[r], g = N[l] || N.l || 8, g === 8 || (r = g[0], g[1] !== void 0 && (C = T[g[1]], C && (d = a, C() === !1))))
|
|
1453
1453
|
return;
|
|
1454
1454
|
if (r === 7)
|
|
1455
1455
|
return t;
|
|
@@ -1468,10 +1468,10 @@ function Qs(e, t) {
|
|
|
1468
1468
|
const r = n.length;
|
|
1469
1469
|
let s = e, a = 0;
|
|
1470
1470
|
for (; a < r; ) {
|
|
1471
|
-
const
|
|
1472
|
-
if (
|
|
1471
|
+
const m = s[n[a]];
|
|
1472
|
+
if (m === void 0 || me(s))
|
|
1473
1473
|
return null;
|
|
1474
|
-
s =
|
|
1474
|
+
s = m, a++;
|
|
1475
1475
|
}
|
|
1476
1476
|
return s;
|
|
1477
1477
|
}
|
|
@@ -1505,23 +1505,23 @@ const gn = (e) => {
|
|
|
1505
1505
|
}, oa = () => tr;
|
|
1506
1506
|
let In = 0;
|
|
1507
1507
|
function la(e = {}) {
|
|
1508
|
-
const t =
|
|
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 : At(s), d = q(e.datetimeFormats) ? e.datetimeFormats : At(s), l = q(e.numberFormats) ? e.numberFormats : At(s), g = Ie(ae(), e.modifiers, ea()), C = e.pluralRules || ae(), N = 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, D = !!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, A = !!e.escapeParameter, u = me(e.messageCompiler) ? e.messageCompiler : zn, I = me(e.messageResolver) ? e.messageResolver : Qn || zs, E = me(e.localeFallbacker) ? e.localeFallbacker : qn || Zs, _ = ee(e.fallbackContext) ? e.fallbackContext : void 0, R = e, L = ee(R.__datetimeFormatters) ? R.__datetimeFormatters : /* @__PURE__ */ new Map(), $ = ee(R.__numberFormatters) ? R.__numberFormatters : /* @__PURE__ */ new Map(), x = ee(R.__meta) ? R.__meta : {};
|
|
1509
1509
|
In++;
|
|
1510
1510
|
const F = {
|
|
1511
1511
|
version: n,
|
|
1512
1512
|
cid: In,
|
|
1513
1513
|
locale: r,
|
|
1514
1514
|
fallbackLocale: a,
|
|
1515
|
-
messages:
|
|
1515
|
+
messages: m,
|
|
1516
1516
|
modifiers: g,
|
|
1517
1517
|
pluralRules: C,
|
|
1518
1518
|
missing: N,
|
|
1519
1519
|
missingWarn: T,
|
|
1520
1520
|
fallbackWarn: j,
|
|
1521
|
-
fallbackFormat:
|
|
1522
|
-
unresolving:
|
|
1521
|
+
fallbackFormat: D,
|
|
1522
|
+
unresolving: k,
|
|
1523
1523
|
postTranslation: P,
|
|
1524
|
-
processor:
|
|
1524
|
+
processor: f,
|
|
1525
1525
|
warnHtmlMessage: b,
|
|
1526
1526
|
escapeParameter: A,
|
|
1527
1527
|
messageCompiler: u,
|
|
@@ -1531,11 +1531,11 @@ function la(e = {}) {
|
|
|
1531
1531
|
onWarn: t,
|
|
1532
1532
|
__meta: x
|
|
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, x), F;
|
|
1535
1535
|
}
|
|
1536
1536
|
const At = (e) => ({ [e]: ae() });
|
|
1537
1537
|
function zt(e, t, n, r, s) {
|
|
1538
|
-
const { missing: a, onWarn:
|
|
1538
|
+
const { missing: a, onWarn: m } = e;
|
|
1539
1539
|
if (a !== null) {
|
|
1540
1540
|
const d = a(e, n, t, s);
|
|
1541
1541
|
return W(d) ? d : t;
|
|
@@ -1559,26 +1559,26 @@ function ca(e, t) {
|
|
|
1559
1559
|
return !1;
|
|
1560
1560
|
}
|
|
1561
1561
|
function yn(e, ...t) {
|
|
1562
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: s, onWarn: a, localeFallbacker:
|
|
1562
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: s, onWarn: a, localeFallbacker: m } = e, { __datetimeFormatters: d } = e, [l, g, C, N] = Pt(...t), T = pe(C.missingWarn) ? C.missingWarn : e.missingWarn;
|
|
1563
1563
|
pe(C.fallbackWarn) ? C.fallbackWarn : e.fallbackWarn;
|
|
1564
|
-
const j = !!C.part,
|
|
1564
|
+
const j = !!C.part, D = Kt(e, C), k = m(
|
|
1565
1565
|
e,
|
|
1566
1566
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1567
1567
|
s,
|
|
1568
|
-
|
|
1568
|
+
D
|
|
1569
1569
|
);
|
|
1570
1570
|
if (!W(l) || l === "")
|
|
1571
|
-
return new Intl.DateTimeFormat(
|
|
1572
|
-
let P = {},
|
|
1571
|
+
return new Intl.DateTimeFormat(D, N).format(g);
|
|
1572
|
+
let P = {}, f, b = null;
|
|
1573
1573
|
const A = "datetime format";
|
|
1574
|
-
for (let E = 0; E <
|
|
1575
|
-
zt(e, l,
|
|
1576
|
-
if (!q(b) || !W(
|
|
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, A);
|
|
1576
|
+
if (!q(b) || !W(f))
|
|
1577
1577
|
return r ? Tt : l;
|
|
1578
|
-
let u = `${
|
|
1578
|
+
let u = `${f}__${l}`;
|
|
1579
1579
|
Ct(N) || (u = `${u}__${JSON.stringify(N)}`);
|
|
1580
1580
|
let I = d.get(u);
|
|
1581
|
-
return I || (I = new Intl.DateTimeFormat(
|
|
1581
|
+
return I || (I = new Intl.DateTimeFormat(f, Ie({}, b, N)), d.set(u, I)), j ? I.formatToParts(g) : I.format(g);
|
|
1582
1582
|
}
|
|
1583
1583
|
const nr = [
|
|
1584
1584
|
"localeMatcher",
|
|
@@ -1604,7 +1604,7 @@ const nr = [
|
|
|
1604
1604
|
];
|
|
1605
1605
|
function Pt(...e) {
|
|
1606
1606
|
const [t, n, r, s] = e, a = ae();
|
|
1607
|
-
let
|
|
1607
|
+
let m = ae(), d;
|
|
1608
1608
|
if (W(t)) {
|
|
1609
1609
|
const l = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1610
1610
|
if (!l)
|
|
@@ -1625,8 +1625,8 @@ function Pt(...e) {
|
|
|
1625
1625
|
else
|
|
1626
1626
|
throw We(Ve.INVALID_ARGUMENT);
|
|
1627
1627
|
return W(n) ? a.key = n : q(n) && Object.keys(n).forEach((l) => {
|
|
1628
|
-
nr.includes(l) ?
|
|
1629
|
-
}), W(r) ? a.locale = r : q(r) && (
|
|
1628
|
+
nr.includes(l) ? m[l] = n[l] : a[l] = n[l];
|
|
1629
|
+
}), W(r) ? a.locale = r : q(r) && (m = r), q(s) && (m = s), [a.key || "", d, a, m];
|
|
1630
1630
|
}
|
|
1631
1631
|
function En(e, t, n) {
|
|
1632
1632
|
const r = e;
|
|
@@ -1636,26 +1636,26 @@ function En(e, t, n) {
|
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
1638
1638
|
function Cn(e, ...t) {
|
|
1639
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: s, onWarn: a, localeFallbacker:
|
|
1639
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: s, onWarn: a, localeFallbacker: m } = e, { __numberFormatters: d } = e, [l, g, C, N] = jt(...t), T = pe(C.missingWarn) ? C.missingWarn : e.missingWarn;
|
|
1640
1640
|
pe(C.fallbackWarn) ? C.fallbackWarn : e.fallbackWarn;
|
|
1641
|
-
const j = !!C.part,
|
|
1641
|
+
const j = !!C.part, D = Kt(e, C), k = m(
|
|
1642
1642
|
e,
|
|
1643
1643
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1644
1644
|
s,
|
|
1645
|
-
|
|
1645
|
+
D
|
|
1646
1646
|
);
|
|
1647
1647
|
if (!W(l) || l === "")
|
|
1648
|
-
return new Intl.NumberFormat(
|
|
1649
|
-
let P = {},
|
|
1648
|
+
return new Intl.NumberFormat(D, N).format(g);
|
|
1649
|
+
let P = {}, f, b = null;
|
|
1650
1650
|
const A = "number format";
|
|
1651
|
-
for (let E = 0; E <
|
|
1652
|
-
zt(e, l,
|
|
1653
|
-
if (!q(b) || !W(
|
|
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, A);
|
|
1653
|
+
if (!q(b) || !W(f))
|
|
1654
1654
|
return r ? Tt : l;
|
|
1655
|
-
let u = `${
|
|
1655
|
+
let u = `${f}__${l}`;
|
|
1656
1656
|
Ct(N) || (u = `${u}__${JSON.stringify(N)}`);
|
|
1657
1657
|
let I = d.get(u);
|
|
1658
|
-
return I || (I = new Intl.NumberFormat(
|
|
1658
|
+
return I || (I = new Intl.NumberFormat(f, Ie({}, b, N)), d.set(u, I)), j ? I.formatToParts(g) : I.format(g);
|
|
1659
1659
|
}
|
|
1660
1660
|
const rr = [
|
|
1661
1661
|
"localeMatcher",
|
|
@@ -1681,13 +1681,13 @@ const rr = [
|
|
|
1681
1681
|
];
|
|
1682
1682
|
function jt(...e) {
|
|
1683
1683
|
const [t, n, r, s] = e, a = ae();
|
|
1684
|
-
let
|
|
1684
|
+
let m = ae();
|
|
1685
1685
|
if (!ge(t))
|
|
1686
1686
|
throw We(Ve.INVALID_ARGUMENT);
|
|
1687
1687
|
const d = t;
|
|
1688
1688
|
return W(n) ? a.key = n : q(n) && Object.keys(n).forEach((l) => {
|
|
1689
|
-
rr.includes(l) ?
|
|
1690
|
-
}), W(r) ? a.locale = r : q(r) && (
|
|
1689
|
+
rr.includes(l) ? m[l] = n[l] : a[l] = n[l];
|
|
1690
|
+
}), W(r) ? a.locale = r : q(r) && (m = r), q(s) && (m = s), [a.key || "", d, a, m];
|
|
1691
1691
|
}
|
|
1692
1692
|
function Nn(e, t, n) {
|
|
1693
1693
|
const r = e;
|
|
@@ -1696,7 +1696,7 @@ function Nn(e, t, n) {
|
|
|
1696
1696
|
r.__numberFormatters.has(a) && r.__numberFormatters.delete(a);
|
|
1697
1697
|
}
|
|
1698
1698
|
}
|
|
1699
|
-
const ua = (e) => e, da = (e) => "",
|
|
1699
|
+
const ua = (e) => e, da = (e) => "", ma = "text", fa = (e) => e.length === 0 ? "" : Ht(e), _a = Yr;
|
|
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
|
}
|
|
@@ -1708,45 +1708,45 @@ function va(e, t) {
|
|
|
1708
1708
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1709
1709
|
}
|
|
1710
1710
|
function ha(e = {}) {
|
|
1711
|
-
const t = e.locale, n = pa(e), r = ee(e.pluralRules) && W(t) &&
|
|
1711
|
+
const t = e.locale, n = pa(e), r = ee(e.pluralRules) && W(t) && me(e.pluralRules[t]) ? e.pluralRules[t] : Tn, s = ee(e.pluralRules) && W(t) && me(e.pluralRules[t]) ? Tn : void 0, a = (f) => f[r(n, f.length, s)], m = e.list || [], d = (f) => m[f], l = e.named || ae();
|
|
1712
1712
|
ge(e.pluralIndex) && va(n, l);
|
|
1713
|
-
const g = (
|
|
1714
|
-
function C(
|
|
1715
|
-
const A =
|
|
1716
|
-
return A || (e.parent ? e.parent.message(
|
|
1713
|
+
const g = (f) => l[f];
|
|
1714
|
+
function C(f, b) {
|
|
1715
|
+
const A = me(e.messages) ? e.messages(f, !!b) : ee(e.messages) ? e.messages[f] : !1;
|
|
1716
|
+
return A || (e.parent ? e.parent.message(f) : da);
|
|
1717
1717
|
}
|
|
1718
|
-
const N = (
|
|
1718
|
+
const N = (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, D = 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
|
-
linked: (
|
|
1722
|
+
linked: (f, ...b) => {
|
|
1723
1723
|
const [A, u] = b;
|
|
1724
1724
|
let I = "text", E = "";
|
|
1725
1725
|
b.length === 1 ? ee(A) ? (E = A.modifier || E, I = A.type || I) : W(A) && (E = A || E) : b.length === 2 && (W(A) && (E = A || E), W(u) && (I = u || I));
|
|
1726
|
-
const _ = C(
|
|
1726
|
+
const _ = C(f, !0)(P), R = (
|
|
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
1730
|
return E ? N(E)(R, I) : R;
|
|
1731
1731
|
},
|
|
1732
1732
|
message: C,
|
|
1733
|
-
type:
|
|
1733
|
+
type: D,
|
|
1734
1734
|
interpolate: j,
|
|
1735
1735
|
normalize: T,
|
|
1736
|
-
values: Ie(ae(),
|
|
1736
|
+
values: Ie(ae(), m, l)
|
|
1737
1737
|
};
|
|
1738
1738
|
return P;
|
|
1739
1739
|
}
|
|
1740
|
-
const On = () => "", Se = (e) =>
|
|
1740
|
+
const On = () => "", Se = (e) => me(e);
|
|
1741
1741
|
function Sn(e, ...t) {
|
|
1742
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: a, fallbackLocale:
|
|
1742
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: a, fallbackLocale: m, messages: d } = e, [l, g] = Ut(...t), C = pe(g.missingWarn) ? g.missingWarn : e.missingWarn, N = pe(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, T = pe(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, j = !!g.resolvedMessage, D = W(g.default) || pe(g.default) ? pe(g.default) ? a ? l : () => l : g.default : n ? a ? l : () => l : null, k = n || D != null && (W(D) || me(D)), P = Kt(e, g);
|
|
1743
1743
|
T && ba(g);
|
|
1744
|
-
let [
|
|
1744
|
+
let [f, b, A] = j ? [
|
|
1745
1745
|
l,
|
|
1746
1746
|
P,
|
|
1747
1747
|
d[P] || ae()
|
|
1748
|
-
] : sr(e, l, P,
|
|
1749
|
-
if (!j && !(W(u) || ot(u) || Se(u)) &&
|
|
1748
|
+
] : sr(e, l, P, m, N, C), u = f, I = l;
|
|
1749
|
+
if (!j && !(W(u) || ot(u) || Se(u)) && k && (u = D, 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 _ = () => {
|
|
@@ -1754,7 +1754,7 @@ function Sn(e, ...t) {
|
|
|
1754
1754
|
}, R = 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, A, g), $ = ha(L), x = ga(e, R, $), F = r ? r(x, l) : x;
|
|
1758
1758
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1759
1759
|
const y = {
|
|
1760
1760
|
timestamp: Date.now(),
|
|
@@ -1773,10 +1773,10 @@ function ba(e) {
|
|
|
1773
1773
|
});
|
|
1774
1774
|
}
|
|
1775
1775
|
function sr(e, t, n, r, s, a) {
|
|
1776
|
-
const { messages:
|
|
1776
|
+
const { messages: m, onWarn: d, messageResolver: l, localeFallbacker: g } = e, C = g(e, r, n);
|
|
1777
1777
|
let N = ae(), T, j = null;
|
|
1778
|
-
const
|
|
1779
|
-
for (let
|
|
1778
|
+
const D = "translate";
|
|
1779
|
+
for (let k = 0; k < C.length && (T = C[k], N = m[T] || ae(), (j = l(N, t)) === null && (j = N[t]), !(W(j) || ot(j) || Se(j))); k++)
|
|
1780
1780
|
if (!ca(T, C)) {
|
|
1781
1781
|
const P = zt(
|
|
1782
1782
|
e,
|
|
@@ -1784,23 +1784,23 @@ function sr(e, t, n, r, s, a) {
|
|
|
1784
1784
|
t,
|
|
1785
1785
|
T,
|
|
1786
1786
|
a,
|
|
1787
|
-
|
|
1787
|
+
D
|
|
1788
1788
|
);
|
|
1789
1789
|
P !== t && (j = P);
|
|
1790
1790
|
}
|
|
1791
1791
|
return [j, T, N];
|
|
1792
1792
|
}
|
|
1793
1793
|
function ar(e, t, n, r, s, a) {
|
|
1794
|
-
const { messageCompiler:
|
|
1794
|
+
const { messageCompiler: m, warnHtmlMessage: d } = e;
|
|
1795
1795
|
if (Se(r)) {
|
|
1796
1796
|
const g = r;
|
|
1797
1797
|
return g.locale = g.locale || n, g.key = g.key || t, g;
|
|
1798
1798
|
}
|
|
1799
|
-
if (
|
|
1799
|
+
if (m == null) {
|
|
1800
1800
|
const g = () => r;
|
|
1801
1801
|
return g.locale = n, g.key = t, g;
|
|
1802
1802
|
}
|
|
1803
|
-
const l =
|
|
1803
|
+
const l = m(r, Ia(e, n, s, r, d, a));
|
|
1804
1804
|
return l.locale = n, l.key = t, l.source = r, l;
|
|
1805
1805
|
}
|
|
1806
1806
|
function ga(e, t, n) {
|
|
@@ -1818,20 +1818,20 @@ function Ia(e, t, n, r, s, a) {
|
|
|
1818
1818
|
locale: t,
|
|
1819
1819
|
key: n,
|
|
1820
1820
|
warnHtmlMessage: s,
|
|
1821
|
-
onError: (
|
|
1822
|
-
throw a && a(
|
|
1821
|
+
onError: (m) => {
|
|
1822
|
+
throw a && a(m), m;
|
|
1823
1823
|
},
|
|
1824
|
-
onCacheKey: (
|
|
1824
|
+
onCacheKey: (m) => xr(t, n, m)
|
|
1825
1825
|
};
|
|
1826
1826
|
}
|
|
1827
1827
|
function ya(e, t, n, r) {
|
|
1828
|
-
const { modifiers: s, pluralRules: a, messageResolver:
|
|
1828
|
+
const { modifiers: s, pluralRules: a, messageResolver: m, fallbackLocale: d, fallbackWarn: l, missingWarn: g, fallbackContext: C } = e, T = {
|
|
1829
1829
|
locale: t,
|
|
1830
1830
|
modifiers: s,
|
|
1831
1831
|
pluralRules: a,
|
|
1832
|
-
messages: (j,
|
|
1833
|
-
let
|
|
1834
|
-
if (
|
|
1832
|
+
messages: (j, D) => {
|
|
1833
|
+
let k = m(n, j);
|
|
1834
|
+
if (k == null && (C || D)) {
|
|
1835
1835
|
const [, , P] = sr(
|
|
1836
1836
|
C || e,
|
|
1837
1837
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
@@ -1841,21 +1841,21 @@ 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_dfafcfc5-bfdf-461c-a804-d6d31f76ecbb", DOTNET_NOLOGO: "1", USER: "runner", npm_config_always_auth: "", npm_config_user_agent: "pnpm/10.8.0 npm/? node/v24.5.0 linux x64", CI: "true", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_dfafcfc5-bfdf-461c-a804-d6d31f76ecbb", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/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.8.2", 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: "1904", ACTIONS_ORCHESTRATION_ID: "8d0bd5c9-3090-465d-8584-b59f88a08c6a.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: "20261026.180.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_dfafcfc5-bfdf-461c-a804-d6d31f76ecbb", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "10:13874", 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: "41562578181", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "2ca5c2f9a4c61473ba6ded97fd49fd53989584ce", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.10/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.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9kZXZcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTM2OTI5OTAsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MzY3MDc5MCwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjlhNTUwZjc0LThjMTktNTY1NS04MWE4LWI3MDM0MDI0OTlmZiIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiYjAzYTNkMTJiZDA4ZGQwMmMwNDAyNDA5M2U4MmM0ZDkyZjVkMzE4NyIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MzY3MDQ5MCwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCIxMjU2NzY0NzkzODFcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcImIwM2EzZDEyYmQwOGRkMDJjMDQwMjQwOTNlODJjNGQ5MmY1ZDMxODdcIixcInJlZlwiOlwicmVmcy9oZWFkcy9kZXZcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJyZXBvc2l0b3J5XCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2VcIixcInJlcG9zaXRvcnlfaWRcIjpcIjExMjQ2NzIyMzVcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJ1bl9pZFwiOlwiNDE1NjI1NzgxODFcIixcInJ1bl9udW1iZXJcIjpcIjIzOFwiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcIjJjYTVjMmY5YTRjNjE0NzNiYTZkZWQ5N2ZkNDlmZDUzOTg5NTg0Y2VcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIGhybS1wb3J0YWxcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtaHJtLXBvcnRhbC10cnVzdGVkLnltbEByZWZzL2hlYWRzL2RldlwiLFwid29ya2Zsb3dfc2hhXCI6XCIyY2E1YzJmOWE0YzYxNDczYmE2ZGVkOTdmZDQ5ZmQ1Mzk4OTU4NGNlXCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9kZXYiLCJvcmNoX2lkIjoiOGQwYmQ1YzktMzA5MC00NjVkLTg1ODQtYjU5Zjg4YTA4YzZhLnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiI4ZDBiZDVjOS0zMDkwLTQ2NWQtODU4NC1iNTlmODhhMDhjNmEiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiI0MTU2MjU3ODE4MSIsInJ1bl9udW1iZXIiOiIyMzgiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMjQ5MTY3IiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6OGQwYmQ1YzktMzA5MC00NjVkLTg1ODQtYjU5Zjg4YTA4YzZhOjlhNTUwZjc0LThjMTktNTY1NS04MWE4LWI3MDM0MDI0OTlmZiBBY3Rpb25zLlJ1bm5lcjo4ZDBiZDVjOS0zMDkwLTQ2NWQtODU4NC1iNTlmODhhMDhjNmE6OWE1NTBmNzQtOGMxOS01NjU1LTgxYTgtYjcwMzQwMjQ5OWZmIEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOjhkMGJkNWM5LTMwOTAtNDY1ZC04NTg0LWI1OWY4OGEwOGM2YTo5YTU1MGY3NC04YzE5LTU2NTUtODFhOC1iNzAzNDAyNDk5ZmYgZ2VuZXJhdGVfaWRfdG9rZW46OGQwYmQ1YzktMzA5MC00NjVkLTg1ODQtYjU5Zjg4YTA4YzZhOjlhNTUwZjc0LThjMTktNTY1NS04MWE4LWI3MDM0MDI0OTlmZiBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6IjJjYTVjMmY5YTRjNjE0NzNiYTZkZWQ5N2ZkNDlmZDUzOTg5NTg0Y2UiLCJ0cnVzdF90aWVyIjoiMSJ9.4Y7gVbwI_BEgWMz7UpFHSaf43xCTQWBxgH0fOiVup49GEk28YqLTloObNgc-CfFLBPAg0Ziw20yGeR8MI_LluYuWRDkvrkv_OyYHJeL5J7IwPbFFM89ksCY39XedBkSh9ChVnF9LHUSmAGOeZ6YPwcbmQjpPhHNws7ejzDph7f93A_s4lXF-sugWxm5Rlf3bcm54zKXCPJqs3uRlH84DLnUG-5gIW62uDBSBd4-Q6DSRrljjAil-jmyccgtl4WVs4gGJetSmCKr5U3T75Vpc6Wz5KG9ORf0DZQ_7jU9Uw5Veligh4lZKsLksnmXPGun-IjaoCpT2dZdDuZhYq9IPCg", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/24.5.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_e64e3303-61cb-4414-9a51-dd9a68fcc73f", INVOCATION_ID: "b055e24c5f154cb38454ec21167efd93", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", npm_package_name: "@feedmepos/mf-hrm-portal", GITHUB_ACTION: "__run_5", GITHUB_RUN_NUMBER: "238", 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 1000249167", 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.3.2-dev.13", 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"}', npm_config_package_extensions: '{"@feedmepos/entity":{"dependencies":{"@feedmepos/core":"2.14.52"}}}', GITHUB_SHA: "2ca5c2f9a4c61473ba6ded97fd49fd53989584ce", 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_dfafcfc5-bfdf-461c-a804-d6d31f76ecbb", 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-3-azure-eastus.actions.githubusercontent.com/260//idtoken/8d0bd5c9-3090-465d-8584-b59f88a08c6a/9a550f74-8c19-5655-81a8-b703402499ff?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_dfafcfc5-bfdf-461c-a804-d6d31f76ecbb", 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_dfafcfc5-bfdf-461c-a804-d6d31f76ecbb", 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_dfafcfc5-bfdf-461c-a804-d6d31f76ecbb", 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_4799d085-580a-49c2-8705-71cc0a0305ff", DOTNET_NOLOGO: "1", USER: "runner", npm_config_always_auth: "", npm_config_user_agent: "pnpm/10.8.0 npm/? node/v24.5.0 linux x64", CI: "true", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_4799d085-580a-49c2-8705-71cc0a0305ff", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/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.8.2", 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: "1715", ACTIONS_ORCHESTRATION_ID: "f87b7cf9-210e-4f3d-90d9-fd93dd00dd67.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: "20261026.180.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_4799d085-580a-49c2-8705-71cc0a0305ff", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "10:14697", 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: "42000318715", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "602ef86faf756166cb7736714ce0379fc61e052c", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.10/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.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9kZXZcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTM4OTIwODgsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5Mzg2OTg4OCwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6Ijc0NDVkMjRmLTgxODktNWM4OS04NjkwLTdlMGJiZWUwNmI0MyIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiYjhjZjk5ZDA2OTg0OTI1M2IxMjZkYzY2MzQxN2M2ZTI5NDRmNzY0MiIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5Mzg2OTU4OCwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCIxMjcxNTM2MjcxMTJcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcImI4Y2Y5OWQwNjk4NDkyNTNiMTI2ZGM2NjM0MTdjNmUyOTQ0Zjc2NDJcIixcInJlZlwiOlwicmVmcy9oZWFkcy9kZXZcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJyZXBvc2l0b3J5XCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2VcIixcInJlcG9zaXRvcnlfaWRcIjpcIjExMjQ2NzIyMzVcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJ1bl9pZFwiOlwiNDIwMDAzMTg3MTVcIixcInJ1bl9udW1iZXJcIjpcIjIzOVwiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcIjYwMmVmODZmYWY3NTYxNjZjYjc3MzY3MTRjZTAzNzlmYzYxZTA1MmNcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIGhybS1wb3J0YWxcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtaHJtLXBvcnRhbC10cnVzdGVkLnltbEByZWZzL2hlYWRzL2RldlwiLFwid29ya2Zsb3dfc2hhXCI6XCI2MDJlZjg2ZmFmNzU2MTY2Y2I3NzM2NzE0Y2UwMzc5ZmM2MWUwNTJjXCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9kZXYiLCJvcmNoX2lkIjoiZjg3YjdjZjktMjEwZS00ZjNkLTkwZDktZmQ5M2RkMDBkZDY3LnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiJmODdiN2NmOS0yMTBlLTRmM2QtOTBkOS1mZDkzZGQwMGRkNjciLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiI0MjAwMDMxODcxNSIsInJ1bl9udW1iZXIiOiIyMzkiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMjU5MjYzIiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6Zjg3YjdjZjktMjEwZS00ZjNkLTkwZDktZmQ5M2RkMDBkZDY3Ojc0NDVkMjRmLTgxODktNWM4OS04NjkwLTdlMGJiZWUwNmI0MyBBY3Rpb25zLlJ1bm5lcjpmODdiN2NmOS0yMTBlLTRmM2QtOTBkOS1mZDkzZGQwMGRkNjc6NzQ0NWQyNGYtODE4OS01Yzg5LTg2OTAtN2UwYmJlZTA2YjQzIEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOmY4N2I3Y2Y5LTIxMGUtNGYzZC05MGQ5LWZkOTNkZDAwZGQ2Nzo3NDQ1ZDI0Zi04MTg5LTVjODktODY5MC03ZTBiYmVlMDZiNDMgZ2VuZXJhdGVfaWRfdG9rZW46Zjg3YjdjZjktMjEwZS00ZjNkLTkwZDktZmQ5M2RkMDBkZDY3Ojc0NDVkMjRmLTgxODktNWM4OS04NjkwLTdlMGJiZWUwNmI0MyBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6IjYwMmVmODZmYWY3NTYxNjZjYjc3MzY3MTRjZTAzNzlmYzYxZTA1MmMiLCJ0cnVzdF90aWVyIjoiMSJ9.Zng_Z0v5KbCfSkdNjBJBxoGp_FkAKHDILExeSdozLvuQ2MDAyYfQEhaOZlSA0EAJNfF3sWg2n7mq7A5icoO1ye91vnFiq5lAG_GI_tO4IJjihZTwgboPXol5MapzlFy20b6HNUes48kZwPD56GU1kjegNxPS7YECYCwueiH3cpu8feYQ6aZdkzGu5za93HypOGWnwA1HXyCavNfDgCg-L3uaftLOMVOqfss5fOGWQM9vslTQbieV67H3dfv3bKMVUVHV4spwNwDHY01cAiQucei3cdFrpgly715OBoRNI-iFbUTUbXCAdW03MVRUzNNJlMnV1H596FLX7F8zUk11mw", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/24.5.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_676bca61-4c14-4c4b-afaf-e226feb71459", INVOCATION_ID: "f735794a46cd49039f03dcbdde5240d5", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", npm_package_name: "@feedmepos/mf-hrm-portal", GITHUB_ACTION: "__run_5", GITHUB_RUN_NUMBER: "239", 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 1000259263", 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.3.2-dev.14", 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"}', npm_config_package_extensions: '{"@feedmepos/entity":{"dependencies":{"@feedmepos/core":"2.14.52"}}}', GITHUB_SHA: "602ef86faf756166cb7736714ce0379fc61e052c", 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_4799d085-580a-49c2-8705-71cc0a0305ff", 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/11//idtoken/f87b7cf9-210e-4f3d-90d9-fd93dd00dd67/7445d24f-8189-5c89-8690-7e0bbee06b43?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_4799d085-580a-49c2-8705-71cc0a0305ff", 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_4799d085-580a-49c2-8705-71cc0a0305ff", 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_4799d085-580a-49c2-8705-71cc0a0305ff", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1859
1859
|
const Ca = "10.0.5";
|
|
1860
1860
|
function Na() {
|
|
1861
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);
|
|
@@ -1876,40 +1876,40 @@ const lt = {
|
|
|
1876
1876
|
function dt(e, ...t) {
|
|
1877
1877
|
return Nt(e, null, void 0);
|
|
1878
1878
|
}
|
|
1879
|
-
const xt = /* @__PURE__ */ Qe("__translateVNode"), Vt = /* @__PURE__ */ Qe("__datetimeParts"), Wt = /* @__PURE__ */ Qe("__numberParts"), Ta = Qe("__setPluralRules"), or = /* @__PURE__ */ Qe("__injectWithOption"),
|
|
1880
|
-
function
|
|
1879
|
+
const xt = /* @__PURE__ */ Qe("__translateVNode"), Vt = /* @__PURE__ */ Qe("__datetimeParts"), Wt = /* @__PURE__ */ Qe("__numberParts"), Ta = Qe("__setPluralRules"), or = /* @__PURE__ */ Qe("__injectWithOption"), Zt = /* @__PURE__ */ Qe("__dispose");
|
|
1880
|
+
function mt(e) {
|
|
1881
1881
|
if (!ee(e))
|
|
1882
1882
|
return e;
|
|
1883
1883
|
for (const t in e)
|
|
1884
1884
|
if (Ae(e, t))
|
|
1885
1885
|
if (!t.includes("."))
|
|
1886
|
-
ee(e[t]) &&
|
|
1886
|
+
ee(e[t]) && mt(e[t]);
|
|
1887
1887
|
else {
|
|
1888
1888
|
const n = t.split("."), r = n.length - 1;
|
|
1889
1889
|
let s = e, a = !1;
|
|
1890
|
-
for (let
|
|
1891
|
-
if (n[
|
|
1890
|
+
for (let m = 0; m < r; m++) {
|
|
1891
|
+
if (n[m] in s || (s[n[m]] = ae()), !ee(s[n[m]])) {
|
|
1892
1892
|
a = !0;
|
|
1893
1893
|
break;
|
|
1894
1894
|
}
|
|
1895
|
-
s = s[n[
|
|
1895
|
+
s = s[n[m]];
|
|
1896
1896
|
}
|
|
1897
|
-
a || (s[n[r]] = e[t], delete e[t]), ee(s[n[r]]) &&
|
|
1897
|
+
a || (s[n[r]] = e[t], delete e[t]), ee(s[n[r]]) && mt(s[n[r]]);
|
|
1898
1898
|
}
|
|
1899
1899
|
return e;
|
|
1900
1900
|
}
|
|
1901
1901
|
function lr(e, t) {
|
|
1902
|
-
const { messages: n, __i18n: r, messageResolver: s, flatJson: a } = t,
|
|
1902
|
+
const { messages: n, __i18n: r, messageResolver: s, flatJson: a } = t, m = q(n) ? n : be(r) ? ae() : { [e]: ae() };
|
|
1903
1903
|
if (be(r) && r.forEach((d) => {
|
|
1904
1904
|
if ("locale" in d && "resource" in d) {
|
|
1905
1905
|
const { locale: l, resource: g } = d;
|
|
1906
|
-
l ? (
|
|
1906
|
+
l ? (m[l] = m[l] || ae(), It(g, m[l])) : It(g, m);
|
|
1907
1907
|
} else
|
|
1908
|
-
W(d) && It(JSON.parse(d),
|
|
1908
|
+
W(d) && It(JSON.parse(d), m);
|
|
1909
1909
|
}), s == null && a)
|
|
1910
|
-
for (const d in
|
|
1911
|
-
Ae(
|
|
1912
|
-
return
|
|
1910
|
+
for (const d in m)
|
|
1911
|
+
Ae(m, d) && mt(m[d]);
|
|
1912
|
+
return m;
|
|
1913
1913
|
}
|
|
1914
1914
|
function ir(e) {
|
|
1915
1915
|
return e.type;
|
|
@@ -1927,42 +1927,42 @@ function Oa(e, t, n) {
|
|
|
1927
1927
|
{
|
|
1928
1928
|
if (ee(t.datetimeFormats)) {
|
|
1929
1929
|
const a = Object.keys(t.datetimeFormats);
|
|
1930
|
-
a.length && a.forEach((
|
|
1931
|
-
e.mergeDateTimeFormat(
|
|
1930
|
+
a.length && a.forEach((m) => {
|
|
1931
|
+
e.mergeDateTimeFormat(m, t.datetimeFormats[m]);
|
|
1932
1932
|
});
|
|
1933
1933
|
}
|
|
1934
1934
|
if (ee(t.numberFormats)) {
|
|
1935
1935
|
const a = Object.keys(t.numberFormats);
|
|
1936
|
-
a.length && a.forEach((
|
|
1937
|
-
e.mergeNumberFormat(
|
|
1936
|
+
a.length && a.forEach((m) => {
|
|
1937
|
+
e.mergeNumberFormat(m, t.numberFormats[m]);
|
|
1938
1938
|
});
|
|
1939
1939
|
}
|
|
1940
1940
|
}
|
|
1941
1941
|
}
|
|
1942
|
-
function
|
|
1942
|
+
function kn(e) {
|
|
1943
1943
|
return ce(vr, null, e, 0);
|
|
1944
1944
|
}
|
|
1945
|
-
const
|
|
1945
|
+
const Ln = "__INTLIFY_META__", An = () => [], Sa = () => !1;
|
|
1946
1946
|
let Rn = 0;
|
|
1947
1947
|
function Mn(e) {
|
|
1948
|
-
return (t, n, r, s) => e(n, r,
|
|
1948
|
+
return (t, n, r, s) => e(n, r, Bt() || void 0, s);
|
|
1949
1949
|
}
|
|
1950
|
-
const
|
|
1951
|
-
const e =
|
|
1950
|
+
const ka = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
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
|
-
let
|
|
1957
|
+
let m = pe(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1958
1958
|
const d = a(
|
|
1959
1959
|
// prettier-ignore
|
|
1960
|
-
t &&
|
|
1960
|
+
t && m ? t.locale.value : W(e.locale) ? e.locale : Et
|
|
1961
1961
|
), l = a(
|
|
1962
1962
|
// prettier-ignore
|
|
1963
|
-
t &&
|
|
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)), C = a(q(e.datetimeFormats) ? e.datetimeFormats : { [d.value]: {} }), N = 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, D = 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, A = 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
|
_ = (() => {
|
|
@@ -1974,10 +1974,10 @@ function ka(e = {}) {
|
|
|
1974
1974
|
messages: g.value,
|
|
1975
1975
|
modifiers: I,
|
|
1976
1976
|
pluralRules: E,
|
|
1977
|
-
missing:
|
|
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
1983
|
warnHtmlMessage: A,
|
|
@@ -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,7 +1999,7 @@ function ka(e = {}) {
|
|
|
1999
1999
|
N.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;
|
|
@@ -2009,45 +2009,45 @@ function ka(e = {}) {
|
|
|
2009
2009
|
set: (p) => {
|
|
2010
2010
|
l.value = p, _.fallbackLocale = l.value, it(_, d.value, p);
|
|
2011
2011
|
}
|
|
2012
|
-
}), F = z(() => g.value), y = /* @__PURE__ */ z(() => C.value),
|
|
2012
|
+
}), F = z(() => g.value), y = /* @__PURE__ */ z(() => C.value), w = /* @__PURE__ */ z(() => N.value);
|
|
2013
2013
|
function V() {
|
|
2014
|
-
return
|
|
2014
|
+
return me(b) ? b : null;
|
|
2015
2015
|
}
|
|
2016
2016
|
function O(p) {
|
|
2017
2017
|
b = p, _.postTranslation = p;
|
|
2018
2018
|
}
|
|
2019
|
-
function
|
|
2019
|
+
function Z() {
|
|
2020
2020
|
return P;
|
|
2021
2021
|
}
|
|
2022
2022
|
function H(p) {
|
|
2023
|
-
p !== null && (
|
|
2023
|
+
p !== null && (f = Mn(p)), P = p, _.missing = f;
|
|
2024
2024
|
}
|
|
2025
|
-
const U = (p, v,
|
|
2026
|
-
|
|
2025
|
+
const U = (p, v, G, 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 ||
|
|
2035
|
-
const [
|
|
2036
|
-
return t &&
|
|
2033
|
+
if (G !== "translate exists" && // for not `te` (e.g `t`)
|
|
2034
|
+
ge(Me) && Me === Tt || G === "translate exists" && !Me) {
|
|
2035
|
+
const [mr, bo] = v();
|
|
2036
|
+
return t && D ? te(t) : le(mr);
|
|
2037
2037
|
} else {
|
|
2038
2038
|
if (he(Me))
|
|
2039
2039
|
return Me;
|
|
2040
2040
|
throw dt(lt.UNEXPECTED_RETURN_TYPE);
|
|
2041
2041
|
}
|
|
2042
2042
|
};
|
|
2043
|
-
function
|
|
2043
|
+
function J(...p) {
|
|
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, G, te] = p;
|
|
2048
2048
|
if (te && !ee(te))
|
|
2049
2049
|
throw dt(lt.INVALID_ARGUMENT);
|
|
2050
|
-
return
|
|
2050
|
+
return J(v, G, 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));
|
|
@@ -2055,25 +2055,25 @@ function ka(e = {}) {
|
|
|
2055
2055
|
function Q(...p) {
|
|
2056
2056
|
return U((v) => Reflect.apply(Cn, null, [v, ...p]), () => jt(...p), "number format", (v) => Reflect.apply(v.n, v, [...p]), () => hn, (v) => W(v));
|
|
2057
2057
|
}
|
|
2058
|
-
function
|
|
2059
|
-
return p.map((v) => W(v) || ge(v) || pe(v) ?
|
|
2058
|
+
function fe(p) {
|
|
2059
|
+
return p.map((v) => W(v) || ge(v) || pe(v) ? kn(String(v)) : v);
|
|
2060
2060
|
}
|
|
2061
2061
|
const ve = {
|
|
2062
|
-
normalize:
|
|
2062
|
+
normalize: fe,
|
|
2063
2063
|
interpolate: (p) => p,
|
|
2064
2064
|
type: "vnode"
|
|
2065
2065
|
};
|
|
2066
2066
|
function oe(...p) {
|
|
2067
2067
|
return U((v) => {
|
|
2068
|
-
let
|
|
2068
|
+
let G;
|
|
2069
2069
|
const te = v;
|
|
2070
2070
|
try {
|
|
2071
|
-
te.processor = ve,
|
|
2071
|
+
te.processor = ve, G = Reflect.apply(Sn, null, [te, ...p]);
|
|
2072
2072
|
} finally {
|
|
2073
2073
|
te.processor = null;
|
|
2074
2074
|
}
|
|
2075
|
-
return
|
|
2076
|
-
}, () => Ut(...p), "translate", (v) => v[xt](...p), (v) => [
|
|
2075
|
+
return G;
|
|
2076
|
+
}, () => Ut(...p), "translate", (v) => v[xt](...p), (v) => [kn(v)], (v) => be(v));
|
|
2077
2077
|
}
|
|
2078
2078
|
function ie(...p) {
|
|
2079
2079
|
return U((v) => Reflect.apply(Cn, null, [v, ...p]), () => jt(...p), "number format", (v) => v[Wt](...p), An, (v) => W(v) || be(v));
|
|
@@ -2081,22 +2081,22 @@ function ka(e = {}) {
|
|
|
2081
2081
|
function Pe(...p) {
|
|
2082
2082
|
return U((v) => Reflect.apply(yn, null, [v, ...p]), () => Pt(...p), "datetime format", (v) => v[Vt](...p), An, (v) => W(v) || be(v));
|
|
2083
2083
|
}
|
|
2084
|
-
function
|
|
2084
|
+
function B(p) {
|
|
2085
2085
|
E = p, _.pluralRules = E;
|
|
2086
2086
|
}
|
|
2087
2087
|
function _e(p, v) {
|
|
2088
2088
|
return U(() => {
|
|
2089
2089
|
if (!p)
|
|
2090
2090
|
return !1;
|
|
2091
|
-
const
|
|
2091
|
+
const G = W(v) ? v : d.value, te = je(G), le = _.messageResolver(te, p);
|
|
2092
2092
|
return ot(le) || Se(le) || W(le);
|
|
2093
|
-
}, () => [p], "translate exists", (
|
|
2093
|
+
}, () => [p], "translate exists", (G) => Reflect.apply(G.te, G, [p, v]), Sa, (G) => pe(G));
|
|
2094
2094
|
}
|
|
2095
|
-
function
|
|
2095
|
+
function $e(p) {
|
|
2096
2096
|
let v = null;
|
|
2097
|
-
const
|
|
2098
|
-
for (let te = 0; te <
|
|
2099
|
-
const le = g.value[
|
|
2097
|
+
const G = Kn(_, l.value, d.value);
|
|
2098
|
+
for (let te = 0; te < G.length; te++) {
|
|
2099
|
+
const le = g.value[G[te]] || {}, he = _.messageResolver(le, p);
|
|
2100
2100
|
if (he != null) {
|
|
2101
2101
|
v = he;
|
|
2102
2102
|
break;
|
|
@@ -2104,8 +2104,8 @@ function ka(e = {}) {
|
|
|
2104
2104
|
}
|
|
2105
2105
|
return v;
|
|
2106
2106
|
}
|
|
2107
|
-
function
|
|
2108
|
-
const v =
|
|
2107
|
+
function Ze(p) {
|
|
2108
|
+
const v = $e(p);
|
|
2109
2109
|
return v ?? (t ? t.tm(p) || {} : {});
|
|
2110
2110
|
}
|
|
2111
2111
|
function je(p) {
|
|
@@ -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
|
-
Ae(
|
|
2119
|
-
v =
|
|
2116
|
+
const G = { [p]: v };
|
|
2117
|
+
for (const te in G)
|
|
2118
|
+
Ae(G, te) && mt(G[te]);
|
|
2119
|
+
v = G[p];
|
|
2120
2120
|
}
|
|
2121
2121
|
g.value[p] = v, _.messages = g.value;
|
|
2122
2122
|
}
|
|
2123
|
-
function
|
|
2123
|
+
function Ge(p, v) {
|
|
2124
2124
|
g.value[p] = g.value[p] || {};
|
|
2125
|
-
const
|
|
2125
|
+
const G = { [p]: v };
|
|
2126
2126
|
if (s)
|
|
2127
|
-
for (const te in
|
|
2128
|
-
Ae(
|
|
2129
|
-
v =
|
|
2127
|
+
for (const te in G)
|
|
2128
|
+
Ae(G, te) && mt(G[te]);
|
|
2129
|
+
v = G[p], It(v, g.value[p]), _.messages = g.value;
|
|
2130
2130
|
}
|
|
2131
2131
|
function qe(p) {
|
|
2132
2132
|
return C.value[p] || {};
|
|
@@ -2147,19 +2147,19 @@ function ka(e = {}) {
|
|
|
2147
2147
|
N.value[p] = Ie(N.value[p] || {}, v), _.numberFormats = N.value, Nn(_, p, v);
|
|
2148
2148
|
}
|
|
2149
2149
|
Rn++, 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
2155
|
id: Rn,
|
|
2156
|
-
locale:
|
|
2156
|
+
locale: $,
|
|
2157
2157
|
fallbackLocale: x,
|
|
2158
2158
|
get inheritLocale() {
|
|
2159
|
-
return
|
|
2159
|
+
return m;
|
|
2160
2160
|
},
|
|
2161
2161
|
set inheritLocale(p) {
|
|
2162
|
-
|
|
2162
|
+
m = p, p && t && (d.value = t.locale.value, l.value = t.fallbackLocale.value, it(_, d.value, l.value));
|
|
2163
2163
|
},
|
|
2164
2164
|
get availableLocales() {
|
|
2165
2165
|
return Object.keys(g.value).sort();
|
|
@@ -2187,16 +2187,16 @@ function ka(e = {}) {
|
|
|
2187
2187
|
j = p, _.fallbackWarn = j;
|
|
2188
2188
|
},
|
|
2189
2189
|
get fallbackRoot() {
|
|
2190
|
-
return
|
|
2190
|
+
return D;
|
|
2191
2191
|
},
|
|
2192
2192
|
set fallbackRoot(p) {
|
|
2193
|
-
|
|
2193
|
+
D = p;
|
|
2194
2194
|
},
|
|
2195
2195
|
get fallbackFormat() {
|
|
2196
|
-
return
|
|
2196
|
+
return k;
|
|
2197
2197
|
},
|
|
2198
2198
|
set fallbackFormat(p) {
|
|
2199
|
-
|
|
2199
|
+
k = p, _.fallbackFormat = k;
|
|
2200
2200
|
},
|
|
2201
2201
|
get warnHtmlMessage() {
|
|
2202
2202
|
return A;
|
|
@@ -2210,17 +2210,17 @@ function ka(e = {}) {
|
|
|
2210
2210
|
set escapeParameter(p) {
|
|
2211
2211
|
u = p, _.escapeParameter = p;
|
|
2212
2212
|
},
|
|
2213
|
-
t:
|
|
2213
|
+
t: J,
|
|
2214
2214
|
getLocaleMessage: je,
|
|
2215
2215
|
setLocaleMessage: Ue,
|
|
2216
|
-
mergeLocaleMessage:
|
|
2216
|
+
mergeLocaleMessage: Ge,
|
|
2217
2217
|
getPostTranslationHandler: V,
|
|
2218
2218
|
setPostTranslationHandler: O,
|
|
2219
|
-
getMissingHandler:
|
|
2219
|
+
getMissingHandler: Z,
|
|
2220
2220
|
setMissingHandler: H,
|
|
2221
|
-
[Ta]:
|
|
2221
|
+
[Ta]: B
|
|
2222
2222
|
};
|
|
2223
|
-
return M.datetimeFormats = y, M.numberFormats =
|
|
2223
|
+
return M.datetimeFormats = y, M.numberFormats = w, M.rt = X, M.te = _e, M.tm = Ze, 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[xt] = oe, M[Vt] = Pe, M[Wt] = ie, M;
|
|
2224
2224
|
}
|
|
2225
2225
|
const Qt = {
|
|
2226
2226
|
tag: {
|
|
@@ -2244,14 +2244,14 @@ function Aa({ 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 === De ? 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 De;
|
|
2255
2255
|
}
|
|
2256
2256
|
Ie({
|
|
2257
2257
|
keypath: {
|
|
@@ -2269,17 +2269,17 @@ function Ra(e) {
|
|
|
2269
2269
|
function ur(e, t, n, r) {
|
|
2270
2270
|
const { slots: s, attrs: a } = t;
|
|
2271
2271
|
return () => {
|
|
2272
|
-
const
|
|
2272
|
+
const m = { part: !0 };
|
|
2273
2273
|
let d = ae();
|
|
2274
|
-
e.locale && (
|
|
2275
|
-
const l = r(e.value,
|
|
2276
|
-
let g = [
|
|
2274
|
+
e.locale && (m.locale = e.locale), W(e.format) ? m.key = e.format : ee(e.format) && (W(e.format.key) && (m.key = e.format.key), d = Object.keys(e.format).reduce((T, j) => n.includes(j) ? Ie(ae(), T, { [j]: e.format[j] }) : T, ae()));
|
|
2275
|
+
const l = r(e.value, m, d);
|
|
2276
|
+
let g = [m.key];
|
|
2277
2277
|
be(l) ? g = l.map((T, j) => {
|
|
2278
|
-
const
|
|
2279
|
-
return Ra(
|
|
2278
|
+
const D = s[T.type], k = D ? D({ [T.type]: T.value, index: j, parts: l }) : [T.value];
|
|
2279
|
+
return Ra(k) && (k[0].key = `${T.type}-${j}`), k;
|
|
2280
2280
|
}) : W(l) && (g = [l]);
|
|
2281
2281
|
const C = Ie(ae(), a), N = W(e.tag) || ee(e.tag) ? e.tag : cr();
|
|
2282
|
-
return
|
|
2282
|
+
return Zn(N, C, g);
|
|
2283
2283
|
};
|
|
2284
2284
|
}
|
|
2285
2285
|
Ie({
|
|
@@ -2302,33 +2302,33 @@ Ie({
|
|
|
2302
2302
|
}, Qt);
|
|
2303
2303
|
const Ma = /* @__PURE__ */ Qe("global-vue-i18n");
|
|
2304
2304
|
function Ot(e = {}) {
|
|
2305
|
-
const t =
|
|
2305
|
+
const t = Bt();
|
|
2306
2306
|
if (t == null)
|
|
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 = wa(t), r = Fa(n), s = ir(t), a = Da(e, s);
|
|
2311
2311
|
if (a === "global")
|
|
2312
2312
|
return Oa(r, e, s), r;
|
|
2313
2313
|
if (a === "parent") {
|
|
2314
2314
|
let l = Pa(n, t, e.__useComponent);
|
|
2315
2315
|
return l == null && (l = r), l;
|
|
2316
2316
|
}
|
|
2317
|
-
const
|
|
2318
|
-
let d =
|
|
2317
|
+
const m = n;
|
|
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[Zt] = m.__composerExtend(d)), Ua(m, t, d), m.__setInstance(t, d);
|
|
2322
2322
|
}
|
|
2323
2323
|
return d;
|
|
2324
2324
|
}
|
|
2325
|
-
function
|
|
2326
|
-
const t =
|
|
2325
|
+
function wa(e) {
|
|
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 Da(e, t) {
|
|
2332
2332
|
return Ct(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2333
2333
|
}
|
|
2334
2334
|
function Fa(e) {
|
|
@@ -2339,11 +2339,11 @@ function Pa(e, t, n = !1) {
|
|
|
2339
2339
|
const s = t.root;
|
|
2340
2340
|
let a = ja(t, n);
|
|
2341
2341
|
for (; a != null; ) {
|
|
2342
|
-
const
|
|
2342
|
+
const m = e;
|
|
2343
2343
|
if (e.mode === "composition")
|
|
2344
|
-
r =
|
|
2344
|
+
r = m.__getInstance(a);
|
|
2345
2345
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
2346
|
-
const d =
|
|
2346
|
+
const d = m.__getInstance(a);
|
|
2347
2347
|
d != null && (r = d.__composer, n && r && !r[or] && (r = null));
|
|
2348
2348
|
}
|
|
2349
2349
|
if (r != null || s === a)
|
|
@@ -2360,8 +2360,8 @@ function Ua(e, t, n) {
|
|
|
2360
2360
|
}, t), pr(() => {
|
|
2361
2361
|
const r = n;
|
|
2362
2362
|
e.__deleteInstance(t);
|
|
2363
|
-
const s = r[
|
|
2364
|
-
s && (s(), delete r[
|
|
2363
|
+
const s = r[Zt];
|
|
2364
|
+
s && (s(), delete r[Zt]);
|
|
2365
2365
|
}, t);
|
|
2366
2366
|
}
|
|
2367
2367
|
Na();
|
|
@@ -2390,9 +2390,9 @@ const vt = /* @__PURE__ */ Re({
|
|
|
2390
2390
|
"z-index": 50
|
|
2391
2391
|
}, {
|
|
2392
2392
|
content: de(() => [
|
|
2393
|
-
ue("div", null,
|
|
2394
|
-
(K(!0), re(
|
|
2395
|
-
ue("div", null, "- " +
|
|
2393
|
+
ue("div", null, ke(Y(t)("team.memberForm.permissions.inherited")), 1),
|
|
2394
|
+
(K(!0), re(De, null, Ne(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,133 +2407,133 @@ const vt = /* @__PURE__ */ Re({
|
|
|
2407
2407
|
};
|
|
2408
2408
|
}
|
|
2409
2409
|
});
|
|
2410
|
-
function
|
|
2410
|
+
function wn(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);
|
|
2414
2414
|
if (s < 0) return;
|
|
2415
|
-
const a = new Set(e[s].actions),
|
|
2416
|
-
|
|
2415
|
+
const a = new Set(e[s].actions), m = r.every((d) => a.has(d));
|
|
2416
|
+
m && !a.has("manage") ? (a.add("manage"), e[s] = {
|
|
2417
2417
|
...e[s],
|
|
2418
2418
|
actions: Array.from(a)
|
|
2419
|
-
}) : !
|
|
2419
|
+
}) : !m && a.has("manage") && (a.delete("manage"), a.size === 0 ? e.splice(s, 1) : e[s] = {
|
|
2420
2420
|
...e[s],
|
|
2421
2421
|
actions: Array.from(a)
|
|
2422
2422
|
});
|
|
2423
2423
|
}
|
|
2424
|
-
const
|
|
2424
|
+
const Dn = Object.values(wr), xa = {
|
|
2425
2425
|
read: "View",
|
|
2426
2426
|
create: "Duplicate",
|
|
2427
2427
|
update: "Edit"
|
|
2428
2428
|
};
|
|
2429
2429
|
function Va(e, t, n, r) {
|
|
2430
|
-
const { t: s } = ze(), { getFlagValue: a, getFlag:
|
|
2431
|
-
var
|
|
2432
|
-
const y = /* @__PURE__ */ new Map(),
|
|
2430
|
+
const { t: s } = ze(), { getFlagValue: a, getFlag: m } = Mr(), { isFoodCourt: d } = Yn(), l = z(() => {
|
|
2431
|
+
var Z;
|
|
2432
|
+
const y = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map();
|
|
2433
2433
|
for (const H of t.value) {
|
|
2434
2434
|
const U = H.category;
|
|
2435
2435
|
if (!U) continue;
|
|
2436
|
-
const
|
|
2436
|
+
const J = H.subject;
|
|
2437
2437
|
if (d.value) {
|
|
2438
|
-
if (rn.has(
|
|
2439
|
-
} else if (sn.has(
|
|
2438
|
+
if (rn.has(J) && !sn.has(J)) continue;
|
|
2439
|
+
} else if (sn.has(J) && !rn.has(J))
|
|
2440
2440
|
continue;
|
|
2441
|
-
if (n.value.includes(H.subject) || H.showByFeatureFlag && ((
|
|
2441
|
+
if (n.value.includes(H.subject) || H.showByFeatureFlag && ((Z = m(H.showByFeatureFlag)) == null ? void 0 : Z.enabled) === !1 && a(H.showByFeatureFlag) === "true")
|
|
2442
2442
|
continue;
|
|
2443
2443
|
y.has(U) || y.set(U, []);
|
|
2444
|
-
const X = V.get(
|
|
2445
|
-
V.set(
|
|
2446
|
-
label: s(`permissionSet.permissionLabels.${
|
|
2447
|
-
value:
|
|
2448
|
-
optionKey: `${
|
|
2449
|
-
}),
|
|
2444
|
+
const X = V.get(J) ?? 0;
|
|
2445
|
+
V.set(J, X + 1), y.get(U).push({
|
|
2446
|
+
label: s(`permissionSet.permissionLabels.${J}`, H.label),
|
|
2447
|
+
value: J,
|
|
2448
|
+
optionKey: `${J}::${X}`
|
|
2449
|
+
}), w.has(J) || w.set(J, H);
|
|
2450
2450
|
}
|
|
2451
2451
|
return [...y.keys()].sort((H, U) => {
|
|
2452
|
-
const
|
|
2453
|
-
return
|
|
2452
|
+
const J = Dn.indexOf(H), X = Dn.indexOf(U);
|
|
2453
|
+
return J === -1 && X === -1 ? H.localeCompare(U) : J === -1 ? 1 : X === -1 ? -1 : J - X;
|
|
2454
2454
|
}).map((H) => {
|
|
2455
|
-
const U = y.get(H),
|
|
2456
|
-
for (const
|
|
2457
|
-
const _e =
|
|
2458
|
-
_e && X.set(
|
|
2455
|
+
const U = y.get(H), J = s(`permissionSet.categoryLabels.${H}`, H), X = /* @__PURE__ */ new Map();
|
|
2456
|
+
for (const B of U) {
|
|
2457
|
+
const _e = w.get(B.value);
|
|
2458
|
+
_e && X.set(B.value, _e.actions);
|
|
2459
2459
|
}
|
|
2460
|
-
const se = U.some((
|
|
2461
|
-
const _e = X.get(
|
|
2460
|
+
const se = U.some((B) => {
|
|
2461
|
+
const _e = X.get(B.value);
|
|
2462
2462
|
return _e && _e.length > 1;
|
|
2463
2463
|
}), Q = se ? [
|
|
2464
2464
|
...new Set(
|
|
2465
|
-
U.flatMap((
|
|
2465
|
+
U.flatMap((B) => X.get(B.value) ?? []).filter((B) => B !== "manage")
|
|
2466
2466
|
)
|
|
2467
|
-
] : [],
|
|
2468
|
-
for (const
|
|
2469
|
-
U.some((_e) => _e.value ===
|
|
2467
|
+
] : [], fe = /* @__PURE__ */ new Map();
|
|
2468
|
+
for (const B of e.value)
|
|
2469
|
+
U.some((_e) => _e.value === B.subject) && !B.inverted && fe.set(B.subject, new Set(B.actions));
|
|
2470
2470
|
const ye = se ? e.value.filter(
|
|
2471
|
-
(
|
|
2472
|
-
).map((
|
|
2471
|
+
(B) => U.some((_e) => _e.value === B.subject) && !B.inverted && B.actions.includes("manage")
|
|
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 =
|
|
2475
|
-
}), oe = (ve == null ? void 0 : ve.value) ?? null, ie = oe ?
|
|
2474
|
+
return (_e = w.get(B.value)) == null ? void 0 : _e.isCategoryCover;
|
|
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,
|
|
2478
|
-
label:
|
|
2478
|
+
label: J,
|
|
2479
2479
|
options: U,
|
|
2480
2480
|
selectedSubjects: ye,
|
|
2481
2481
|
isMultiAction: se,
|
|
2482
2482
|
actionColumns: Q,
|
|
2483
2483
|
permissionActionsMap: X,
|
|
2484
|
-
selectedActionsMap:
|
|
2484
|
+
selectedActionsMap: fe,
|
|
2485
2485
|
coverSubject: oe,
|
|
2486
2486
|
coverSelectedActions: ie,
|
|
2487
2487
|
coverCoversAll: Pe
|
|
2488
2488
|
};
|
|
2489
2489
|
});
|
|
2490
2490
|
});
|
|
2491
|
-
function g(y,
|
|
2492
|
-
const V = l.value.find((Q) => Q.category === y), O = (V == null ? void 0 : V.options) ?? [],
|
|
2491
|
+
function g(y, w) {
|
|
2492
|
+
const V = l.value.find((Q) => Q.category === y), O = (V == null ? void 0 : V.options) ?? [], Z = new Set(O.map((Q) => Q.value)), H = new Set(w), U = /* @__PURE__ */ new Map();
|
|
2493
2493
|
for (const Q of e.value)
|
|
2494
|
-
|
|
2495
|
-
const
|
|
2496
|
-
({ category: Q, showByFeatureFlag:
|
|
2494
|
+
Z.has(Q.subject) && !Q.inverted && U.set(Q.subject, Q.conditions);
|
|
2495
|
+
const J = V != null && V.coverSubject ? U.get(V.coverSubject) : void 0, X = /* @__PURE__ */ new Set(), se = t.value.flatMap(
|
|
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) : V != null && V.coverSubject && oe !== V.coverSubject && (ie =
|
|
2501
|
+
return U.has(oe) ? ie = U.get(oe) : V != null && V.coverSubject && oe !== V.coverSubject && (ie = J), [
|
|
2502
2502
|
{ ...ve, ...ie !== void 0 && { conditions: ie } }
|
|
2503
2503
|
];
|
|
2504
2504
|
}
|
|
2505
2505
|
);
|
|
2506
2506
|
r("update:model-value", [
|
|
2507
|
-
...e.value.filter((Q) => !
|
|
2507
|
+
...e.value.filter((Q) => !Z.has(Q.subject)),
|
|
2508
2508
|
...se
|
|
2509
2509
|
]);
|
|
2510
2510
|
}
|
|
2511
|
-
function C(y,
|
|
2512
|
-
return
|
|
2511
|
+
function C(y, w) {
|
|
2512
|
+
return D(y, w) || I(y, w);
|
|
2513
2513
|
}
|
|
2514
2514
|
function N(y) {
|
|
2515
|
-
return y.options.length > 0 && y.options.every((
|
|
2515
|
+
return y.options.length > 0 && y.options.every((w) => C(y, w.value));
|
|
2516
2516
|
}
|
|
2517
2517
|
function T(y) {
|
|
2518
2518
|
return y.options.length === 0 || N(y) ? !1 : y.options.some(
|
|
2519
|
-
(
|
|
2519
|
+
(w) => C(y, w.value) || k(y, w.value).length > 0
|
|
2520
2520
|
);
|
|
2521
2521
|
}
|
|
2522
2522
|
function j(y) {
|
|
2523
|
-
const
|
|
2523
|
+
const w = new Set(y.options.map((O) => O.value)), V = e.value.filter((O) => !w.has(O.subject));
|
|
2524
2524
|
if (N(y))
|
|
2525
2525
|
r("update:model-value", V);
|
|
2526
2526
|
else {
|
|
2527
2527
|
const O = /* @__PURE__ */ new Map();
|
|
2528
|
-
for (const
|
|
2529
|
-
|
|
2530
|
-
const
|
|
2531
|
-
({ category:
|
|
2532
|
-
const
|
|
2533
|
-
if (!
|
|
2534
|
-
H.add(
|
|
2528
|
+
for (const J of e.value)
|
|
2529
|
+
w.has(J.subject) && !J.inverted && O.set(J.subject, J.conditions);
|
|
2530
|
+
const Z = y.coverSubject ? O.get(y.coverSubject) : void 0, H = /* @__PURE__ */ new Set(), U = t.value.flatMap(
|
|
2531
|
+
({ category: J, showByFeatureFlag: X, isCategoryCover: se, ...Q }) => {
|
|
2532
|
+
const fe = Q.subject;
|
|
2533
|
+
if (!w.has(fe) || H.has(fe)) return [];
|
|
2534
|
+
H.add(fe);
|
|
2535
2535
|
let ye;
|
|
2536
|
-
return O.has(
|
|
2536
|
+
return O.has(fe) ? ye = O.get(fe) : y.coverSubject && fe !== y.coverSubject && (ye = Z), [
|
|
2537
2537
|
{ ...Q, ...ye !== void 0 && { conditions: ye } }
|
|
2538
2538
|
];
|
|
2539
2539
|
}
|
|
@@ -2541,150 +2541,150 @@ function Va(e, t, n, r) {
|
|
|
2541
2541
|
r("update:model-value", [...V, ...U]);
|
|
2542
2542
|
}
|
|
2543
2543
|
}
|
|
2544
|
-
function
|
|
2545
|
-
const V = y.selectedActionsMap.get(
|
|
2544
|
+
function D(y, w) {
|
|
2545
|
+
const V = y.selectedActionsMap.get(w);
|
|
2546
2546
|
return V ? V.has("manage") : !1;
|
|
2547
2547
|
}
|
|
2548
|
-
function
|
|
2549
|
-
const V = y.permissionActionsMap.get(
|
|
2550
|
-
return V ? V.filter((
|
|
2551
|
-
(
|
|
2548
|
+
function k(y, w) {
|
|
2549
|
+
const V = y.permissionActionsMap.get(w);
|
|
2550
|
+
return V ? V.filter((Z) => Z !== "manage").filter(
|
|
2551
|
+
(Z) => u(y, w, Z) || E(y, w, Z)
|
|
2552
2552
|
) : [];
|
|
2553
2553
|
}
|
|
2554
|
-
function P(y,
|
|
2555
|
-
return I(y,
|
|
2554
|
+
function P(y, w) {
|
|
2555
|
+
return I(y, w) ? !1 : !D(y, w) && k(y, w).length > 0;
|
|
2556
2556
|
}
|
|
2557
|
-
function
|
|
2558
|
-
if (!y.coverSubject ||
|
|
2557
|
+
function f(y, w) {
|
|
2558
|
+
if (!y.coverSubject || w === y.coverSubject) return;
|
|
2559
2559
|
const V = e.value.find(
|
|
2560
2560
|
(O) => !O.inverted && O.subject === y.coverSubject
|
|
2561
2561
|
);
|
|
2562
2562
|
return (V == null ? void 0 : V.conditions) || void 0;
|
|
2563
2563
|
}
|
|
2564
|
-
function b(y,
|
|
2564
|
+
function b(y, w, V) {
|
|
2565
2565
|
if (V) {
|
|
2566
|
-
const O = t.value.find((Q) => Q.subject ===
|
|
2566
|
+
const O = t.value.find((Q) => Q.subject === w);
|
|
2567
2567
|
if (!O) return;
|
|
2568
2568
|
const {
|
|
2569
|
-
category:
|
|
2569
|
+
category: Z,
|
|
2570
2570
|
showByFeatureFlag: H,
|
|
2571
2571
|
isCategoryCover: U,
|
|
2572
|
-
|
|
2573
|
-
} = O, X =
|
|
2572
|
+
...J
|
|
2573
|
+
} = O, X = f(y, w), se = e.value.filter((Q) => Q.subject !== w);
|
|
2574
2574
|
se.push({
|
|
2575
|
-
|
|
2575
|
+
...J,
|
|
2576
2576
|
...X !== void 0 && { conditions: X }
|
|
2577
2577
|
}), r("update:model-value", se);
|
|
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 !== w)
|
|
2582
2582
|
);
|
|
2583
2583
|
}
|
|
2584
|
-
function A(y,
|
|
2585
|
-
const V = y.permissionActionsMap.get(
|
|
2584
|
+
function A(y, w) {
|
|
2585
|
+
const V = y.permissionActionsMap.get(w);
|
|
2586
2586
|
return V ? V.some((O) => O !== "manage") : !1;
|
|
2587
2587
|
}
|
|
2588
|
-
function u(y,
|
|
2589
|
-
const O = y.selectedActionsMap.get(
|
|
2588
|
+
function u(y, w, V) {
|
|
2589
|
+
const O = y.selectedActionsMap.get(w);
|
|
2590
2590
|
return O ? O.has(V) : !1;
|
|
2591
2591
|
}
|
|
2592
|
-
function I(y,
|
|
2593
|
-
return !y.coverSubject ||
|
|
2592
|
+
function I(y, w) {
|
|
2593
|
+
return !y.coverSubject || w === y.coverSubject ? !1 : y.coverCoversAll;
|
|
2594
2594
|
}
|
|
2595
|
-
function E(y,
|
|
2596
|
-
return !y.coverSubject ||
|
|
2595
|
+
function E(y, w, V) {
|
|
2596
|
+
return !y.coverSubject || w === y.coverSubject ? !1 : y.coverCoversAll ? !0 : y.coverSelectedActions.has(V);
|
|
2597
2597
|
}
|
|
2598
|
-
function _(y,
|
|
2599
|
-
const O = y.permissionActionsMap.get(
|
|
2598
|
+
function _(y, w, V) {
|
|
2599
|
+
const O = y.permissionActionsMap.get(w);
|
|
2600
2600
|
return O ? O.includes(V) : !1;
|
|
2601
2601
|
}
|
|
2602
|
-
function R(y,
|
|
2603
|
-
const O = [...e.value],
|
|
2602
|
+
function R(y, w, V) {
|
|
2603
|
+
const O = [...e.value], Z = O.findIndex((U) => U.subject === y && !U.inverted);
|
|
2604
2604
|
if (V)
|
|
2605
|
-
if (
|
|
2606
|
-
const U = { ...O[
|
|
2607
|
-
|
|
2605
|
+
if (Z >= 0) {
|
|
2606
|
+
const U = { ...O[Z] }, J = new Set(U.actions);
|
|
2607
|
+
J.add(w), U.actions = Array.from(J), O[Z] = U;
|
|
2608
2608
|
} else {
|
|
2609
2609
|
const U = t.value.find((ve) => ve.subject === y);
|
|
2610
2610
|
if (!U) return;
|
|
2611
2611
|
const {
|
|
2612
|
-
category:
|
|
2612
|
+
category: J,
|
|
2613
2613
|
showByFeatureFlag: X,
|
|
2614
2614
|
isCategoryCover: se,
|
|
2615
2615
|
...Q
|
|
2616
|
-
} = U,
|
|
2616
|
+
} = U, fe = l.value.find(
|
|
2617
2617
|
(ve) => ve.options.some((oe) => oe.value === y)
|
|
2618
|
-
), ye =
|
|
2618
|
+
), ye = fe ? f(fe, y) : void 0;
|
|
2619
2619
|
O.push({
|
|
2620
2620
|
...Q,
|
|
2621
|
-
actions: [
|
|
2621
|
+
actions: [w],
|
|
2622
2622
|
...ye !== void 0 && { conditions: ye }
|
|
2623
2623
|
});
|
|
2624
2624
|
}
|
|
2625
|
-
else if (
|
|
2626
|
-
const U = { ...O[
|
|
2627
|
-
|
|
2625
|
+
else if (Z >= 0) {
|
|
2626
|
+
const U = { ...O[Z] }, J = U.actions.filter((X) => X !== w);
|
|
2627
|
+
J.length === 0 ? O.splice(Z, 1) : (U.actions = J, O[Z] = U);
|
|
2628
2628
|
}
|
|
2629
2629
|
const H = t.value.find((U) => U.subject === y);
|
|
2630
|
-
H &&
|
|
2630
|
+
H && wn(O, y, H.actions), r("update:model-value", O);
|
|
2631
2631
|
}
|
|
2632
|
-
function
|
|
2632
|
+
function L(y, w) {
|
|
2633
2633
|
const V = y.options.filter(
|
|
2634
|
-
(O) => _(y, O.value,
|
|
2634
|
+
(O) => _(y, O.value, w)
|
|
2635
2635
|
);
|
|
2636
2636
|
return V.length === 0 ? !1 : V.every(
|
|
2637
|
-
(O) => u(y, O.value,
|
|
2637
|
+
(O) => u(y, O.value, w) || E(y, O.value, w)
|
|
2638
2638
|
);
|
|
2639
2639
|
}
|
|
2640
|
-
function
|
|
2640
|
+
function $(y, w) {
|
|
2641
2641
|
const V = y.options.filter(
|
|
2642
|
-
(
|
|
2642
|
+
(Z) => _(y, Z.value, w)
|
|
2643
2643
|
);
|
|
2644
2644
|
if (V.length === 0) return !1;
|
|
2645
2645
|
const O = V.filter(
|
|
2646
|
-
(
|
|
2646
|
+
(Z) => u(y, Z.value, w) || E(y, Z.value, w)
|
|
2647
2647
|
).length;
|
|
2648
2648
|
return O > 0 && O < V.length;
|
|
2649
2649
|
}
|
|
2650
|
-
function x(y,
|
|
2650
|
+
function x(y, w, V) {
|
|
2651
2651
|
const O = [...e.value];
|
|
2652
|
-
for (const
|
|
2653
|
-
if (!_(y,
|
|
2654
|
-
const H =
|
|
2652
|
+
for (const Z of y.options) {
|
|
2653
|
+
if (!_(y, Z.value, w)) continue;
|
|
2654
|
+
const H = Z.value, U = O.findIndex(
|
|
2655
2655
|
(X) => X.subject === H && !X.inverted
|
|
2656
2656
|
);
|
|
2657
2657
|
if (V)
|
|
2658
2658
|
if (U >= 0) {
|
|
2659
2659
|
const X = { ...O[U] }, se = new Set(X.actions);
|
|
2660
|
-
se.add(
|
|
2660
|
+
se.add(w), 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;
|
|
2664
2664
|
const {
|
|
2665
2665
|
category: se,
|
|
2666
2666
|
showByFeatureFlag: Q,
|
|
2667
|
-
isCategoryCover:
|
|
2667
|
+
isCategoryCover: fe,
|
|
2668
2668
|
...ye
|
|
2669
|
-
} = X, ve =
|
|
2669
|
+
} = X, ve = f(y, H);
|
|
2670
2670
|
O.push({
|
|
2671
2671
|
...ye,
|
|
2672
|
-
actions: [
|
|
2672
|
+
actions: [w],
|
|
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 !== w);
|
|
2678
2678
|
se.length === 0 ? O.splice(U, 1) : (X.actions = se, O[U] = X);
|
|
2679
2679
|
}
|
|
2680
|
-
const
|
|
2681
|
-
|
|
2680
|
+
const J = t.value.find((X) => X.subject === H);
|
|
2681
|
+
J && wn(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 w = `permissionSet.actionLabels.${y}`, V = xa[y] ?? y.charAt(0).toUpperCase() + y.slice(1);
|
|
2687
|
+
return s(w, V);
|
|
2688
2688
|
}
|
|
2689
2689
|
return {
|
|
2690
2690
|
categoryGroups: l,
|
|
@@ -2692,7 +2692,7 @@ function Va(e, t, n, r) {
|
|
|
2692
2692
|
isAllManageChecked: N,
|
|
2693
2693
|
isAllManageIndeterminate: T,
|
|
2694
2694
|
toggleAllManage: j,
|
|
2695
|
-
isManageChecked:
|
|
2695
|
+
isManageChecked: D,
|
|
2696
2696
|
isManageIndeterminate: P,
|
|
2697
2697
|
toggleManage: b,
|
|
2698
2698
|
hasNonManageActions: A,
|
|
@@ -2701,13 +2701,13 @@ function Va(e, t, n, r) {
|
|
|
2701
2701
|
isActionCoveredByCover: E,
|
|
2702
2702
|
permissionDefinesAction: _,
|
|
2703
2703
|
toggleAction: R,
|
|
2704
|
-
isAllActionChecked:
|
|
2705
|
-
isAllActionIndeterminate:
|
|
2704
|
+
isAllActionChecked: L,
|
|
2705
|
+
isAllActionIndeterminate: $,
|
|
2706
2706
|
toggleAllAction: x,
|
|
2707
2707
|
actionLabel: F
|
|
2708
2708
|
};
|
|
2709
2709
|
}
|
|
2710
|
-
const Wa = { class: "flex flex-col gap-16" },
|
|
2710
|
+
const Wa = { class: "flex flex-col gap-16" }, Za = { class: "mt-16" }, Ga = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Ba = ["onClick"], Ya = { class: "flex justify-center" }, Xa = { class: "flex items-center min-w-0 gap-8" }, Ha = ["title", "onClick"], Ja = { class: "flex justify-center" }, $a = /* @__PURE__ */ Re({
|
|
2711
2711
|
__name: "BasePermission",
|
|
2712
2712
|
props: {
|
|
2713
2713
|
modelValue: {
|
|
@@ -2734,8 +2734,8 @@ 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 } = ze(), a = z(() => [...
|
|
2738
|
-
categoryGroups:
|
|
2737
|
+
const n = e, r = t, { t: s } = ze(), a = z(() => [...Gn, ...n.additionalPermissions]), {
|
|
2738
|
+
categoryGroups: m,
|
|
2739
2739
|
isAllManageChecked: d,
|
|
2740
2740
|
isAllManageIndeterminate: l,
|
|
2741
2741
|
toggleAllManage: g,
|
|
@@ -2743,10 +2743,10 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
2743
2743
|
isManageIndeterminate: N,
|
|
2744
2744
|
toggleManage: T,
|
|
2745
2745
|
isActionChecked: j,
|
|
2746
|
-
isRowFullyCoveredByCover:
|
|
2747
|
-
isActionCoveredByCover:
|
|
2746
|
+
isRowFullyCoveredByCover: D,
|
|
2747
|
+
isActionCoveredByCover: k,
|
|
2748
2748
|
permissionDefinesAction: P,
|
|
2749
|
-
toggleAction:
|
|
2749
|
+
toggleAction: f,
|
|
2750
2750
|
isAllActionChecked: b,
|
|
2751
2751
|
isAllActionIndeterminate: A,
|
|
2752
2752
|
toggleAllAction: u,
|
|
@@ -2755,21 +2755,21 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
2755
2755
|
qt(n, "modelValue"),
|
|
2756
2756
|
a,
|
|
2757
2757
|
qt(n, "excludedSubjects"),
|
|
2758
|
-
(R,
|
|
2758
|
+
(R, L) => r("update:model-value", L)
|
|
2759
2759
|
);
|
|
2760
2760
|
function E(R) {
|
|
2761
|
-
const
|
|
2762
|
-
return
|
|
2761
|
+
const L = R.selectedSubjects.length;
|
|
2762
|
+
return L === 0 && n.layout !== "leading" ? "" : s("team.memberForm.permissions.allowedCount", { count: L });
|
|
2763
2763
|
}
|
|
2764
|
-
function _(R,
|
|
2765
|
-
return C(R,
|
|
2766
|
-
(
|
|
2764
|
+
function _(R, L) {
|
|
2765
|
+
return C(R, L) || D(R, L) ? !0 : R.actionColumns.some(
|
|
2766
|
+
($) => P(R, L, $) && (j(R, L, $) || k(R, L, $))
|
|
2767
2767
|
);
|
|
2768
2768
|
}
|
|
2769
|
-
return (R,
|
|
2770
|
-
const
|
|
2769
|
+
return (R, L) => {
|
|
2770
|
+
const $ = Fe("FmCheckbox");
|
|
2771
2771
|
return K(), re("div", Wa, [
|
|
2772
|
-
(K(!0), re(
|
|
2772
|
+
(K(!0), re(De, null, Ne(Y(m), (x) => (K(), Oe(Yt, {
|
|
2773
2773
|
key: x.category,
|
|
2774
2774
|
subtitle: E(x),
|
|
2775
2775
|
layout: e.layout,
|
|
@@ -2778,22 +2778,22 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
2778
2778
|
title: de(() => [
|
|
2779
2779
|
ue("p", {
|
|
2780
2780
|
class: Ce(e.layout === "leading" ? "text-[18px] font-semibold leading-[24px] tracking-[-0.27px]" : "fm-typo-en-title-sm-600")
|
|
2781
|
-
},
|
|
2781
|
+
}, ke(x.label), 3)
|
|
2782
2782
|
]),
|
|
2783
2783
|
default: de(() => [
|
|
2784
|
-
ue("div",
|
|
2784
|
+
ue("div", Za, [
|
|
2785
2785
|
ue("div", {
|
|
2786
2786
|
class: "grid items-center px-12 py-8",
|
|
2787
2787
|
style: rt({
|
|
2788
2788
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2789
2789
|
})
|
|
2790
2790
|
}, [
|
|
2791
|
-
|
|
2792
|
-
ue("div",
|
|
2793
|
-
(K(!0), re(
|
|
2791
|
+
L[0] || (L[0] = ue("div", null, null, -1)),
|
|
2792
|
+
ue("div", Ga, ke(Y(s)("team.memberForm.permissions.columnManage")), 1),
|
|
2793
|
+
(K(!0), re(De, null, Ne(x.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(Y(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",
|
|
@@ -2803,36 +2803,36 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
2803
2803
|
}, [
|
|
2804
2804
|
ue("div", {
|
|
2805
2805
|
class: "cursor-pointer font-semibold",
|
|
2806
|
-
onClick: (F) => !e.disable &&
|
|
2807
|
-
},
|
|
2808
|
-
ue("div",
|
|
2809
|
-
ce(
|
|
2810
|
-
"model-value":
|
|
2811
|
-
indeterminate:
|
|
2806
|
+
onClick: (F) => !e.disable && Y(g)(x)
|
|
2807
|
+
}, ke(Y(s)("team.labels.all")), 9, Ba),
|
|
2808
|
+
ue("div", Ya, [
|
|
2809
|
+
ce($, {
|
|
2810
|
+
"model-value": Y(d)(x),
|
|
2811
|
+
indeterminate: Y(l)(x),
|
|
2812
2812
|
value: !0,
|
|
2813
2813
|
disabled: e.disable,
|
|
2814
2814
|
size: "sm",
|
|
2815
2815
|
dense: "",
|
|
2816
|
-
"onUpdate:modelValue": (F) =>
|
|
2816
|
+
"onUpdate:modelValue": (F) => Y(g)(x)
|
|
2817
2817
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2818
2818
|
]),
|
|
2819
|
-
(K(!0), re(
|
|
2819
|
+
(K(!0), re(De, null, Ne(x.actionColumns, (F) => (K(), re("div", {
|
|
2820
2820
|
key: `all-${F}`,
|
|
2821
2821
|
class: "flex justify-center"
|
|
2822
2822
|
}, [
|
|
2823
|
-
ce(
|
|
2824
|
-
"model-value":
|
|
2825
|
-
indeterminate:
|
|
2823
|
+
ce($, {
|
|
2824
|
+
"model-value": Y(b)(x, F),
|
|
2825
|
+
indeterminate: Y(A)(x, 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) => Y(u)(x, F, y)
|
|
2831
2831
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2832
2832
|
]))), 128))
|
|
2833
2833
|
], 4),
|
|
2834
|
-
|
|
2835
|
-
(K(!0), re(
|
|
2834
|
+
L[1] || (L[1] = ue("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2835
|
+
(K(!0), re(De, null, Ne(x.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({
|
|
@@ -2843,40 +2843,40 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
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 && !Y(D)(x, F.value) && Y(T)(x, F.value, !Y(C)(x, F.value))
|
|
2847
|
+
}, ke(F.label), 9, Ha),
|
|
2848
|
+
Le(R.$slots, `checkbox-${F.value}-append`, {
|
|
2849
2849
|
option: F,
|
|
2850
2850
|
isEffectiveSelected: _(x, F.value),
|
|
2851
|
-
isCoveredByCover:
|
|
2851
|
+
isCoveredByCover: Y(D)(x, F.value) || x.actionColumns.some((y) => Y(k)(x, F.value, y))
|
|
2852
2852
|
}),
|
|
2853
|
-
|
|
2853
|
+
Le(R.$slots, `checkbox-${F.value}-icon`, {
|
|
2854
2854
|
option: F,
|
|
2855
2855
|
isEffectiveSelected: _(x, F.value),
|
|
2856
|
-
isCoveredByCover:
|
|
2856
|
+
isCoveredByCover: Y(D)(x, F.value) || x.actionColumns.some((y) => Y(k)(x, F.value, y))
|
|
2857
2857
|
})
|
|
2858
2858
|
]),
|
|
2859
|
-
ue("div",
|
|
2860
|
-
ce(
|
|
2861
|
-
"model-value":
|
|
2859
|
+
ue("div", Ja, [
|
|
2860
|
+
ce($, {
|
|
2861
|
+
"model-value": Y(C)(x, F.value) || Y(D)(x, F.value),
|
|
2862
2862
|
value: F.value,
|
|
2863
|
-
disabled: e.disable ||
|
|
2864
|
-
indeterminate:
|
|
2863
|
+
disabled: e.disable || Y(D)(x, F.value),
|
|
2864
|
+
indeterminate: Y(N)(x, F.value),
|
|
2865
2865
|
size: "sm",
|
|
2866
|
-
"onUpdate:modelValue": (y) =>
|
|
2866
|
+
"onUpdate:modelValue": (y) => Y(T)(x, F.value, y)
|
|
2867
2867
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2868
2868
|
]),
|
|
2869
|
-
(K(!0), re(
|
|
2869
|
+
(K(!0), re(De, null, Ne(x.actionColumns, (y) => (K(), re("div", {
|
|
2870
2870
|
key: `${F.optionKey}-${y}`,
|
|
2871
2871
|
class: "flex justify-center"
|
|
2872
2872
|
}, [
|
|
2873
|
-
|
|
2873
|
+
Y(P)(x, F.value, y) ? (K(), Oe($, {
|
|
2874
2874
|
key: 0,
|
|
2875
|
-
"model-value":
|
|
2875
|
+
"model-value": Y(j)(x, F.value, y) || Y(k)(x, F.value, y),
|
|
2876
2876
|
value: y,
|
|
2877
|
-
disabled: e.disable ||
|
|
2877
|
+
disabled: e.disable || Y(k)(x, F.value, y),
|
|
2878
2878
|
size: "sm",
|
|
2879
|
-
"onUpdate:modelValue": (
|
|
2879
|
+
"onUpdate:modelValue": (w) => Y(f)(F.value, y, w)
|
|
2880
2880
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Te("", !0)
|
|
2881
2881
|
]))), 128))
|
|
2882
2882
|
], 4))), 128))
|
|
@@ -2912,17 +2912,17 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
2912
2912
|
setup(e) {
|
|
2913
2913
|
const t = e;
|
|
2914
2914
|
return (n, r) => (K(), re("div", Ka, [
|
|
2915
|
-
|
|
2915
|
+
Le(n.$slots, "top", {}, () => [
|
|
2916
2916
|
t.title ? (K(), re("div", za, [
|
|
2917
2917
|
ue("div", null, [
|
|
2918
2918
|
t.required ? (K(), re("span", Qa, "*")) : Te("", !0),
|
|
2919
|
-
hr(
|
|
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
|
}
|
|
@@ -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 } = ze(), a = st(!1),
|
|
2991
|
-
() => n.modelValue.filter((
|
|
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), C = z(
|
|
2991
|
+
() => n.modelValue.filter((k) => n.options.some((P) => P.value === k))
|
|
2992
2992
|
), N = z(
|
|
2993
2993
|
() => typeof n.showAllToggle == "boolean" ? s("team.labels.all") : n.showAllToggle
|
|
2994
2994
|
), T = z(() => n.options.length > 0 && n.options.length === C.value.length);
|
|
2995
2995
|
function j() {
|
|
2996
|
-
const
|
|
2996
|
+
const k = n.modelValue.filter((P) => !C.value.includes(P));
|
|
2997
2997
|
if (T.value === !0)
|
|
2998
|
-
r("update:model-value",
|
|
2998
|
+
r("update:model-value", k);
|
|
2999
2999
|
else {
|
|
3000
|
-
const P = n.includeDisabledOptionsWhenSelectAll ? n.options.map((
|
|
3001
|
-
r("update:model-value", [...
|
|
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", [...k, ...P]);
|
|
3002
3002
|
}
|
|
3003
3003
|
}
|
|
3004
|
-
function
|
|
3005
|
-
let
|
|
3006
|
-
P ?
|
|
3004
|
+
function D(k, P) {
|
|
3005
|
+
let f = Hn(n.modelValue);
|
|
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 (
|
|
3009
|
-
const
|
|
3008
|
+
return (k, P) => {
|
|
3009
|
+
const f = Fe("FmCheckbox");
|
|
3010
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 ? (K(), Oe(
|
|
3019
|
+
n.showAllToggle ? (K(), Oe(f, {
|
|
3020
3020
|
key: 0,
|
|
3021
3021
|
"model-value": T.value,
|
|
3022
3022
|
disabled: e.disable,
|
|
@@ -3027,7 +3027,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3027
3027
|
value: N.value,
|
|
3028
3028
|
"onUpdate:modelValue": j
|
|
3029
3029
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Te("", !0),
|
|
3030
|
-
(K(!0), re(
|
|
3030
|
+
(K(!0), re(De, null, Ne(e.options, (b, A) => (K(), re("div", {
|
|
3031
3031
|
key: b.value,
|
|
3032
3032
|
style: rt(`margin-bottom: ${A < e.options.length - 1 ? n.gutter : 0}px`),
|
|
3033
3033
|
class: Ce(A < e.options.length - 1 ? "q-mb-sm" : "")
|
|
@@ -3036,43 +3036,43 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3036
3036
|
class: Ce(["row justify-between", e.alignCenter ? "items-center" : "items-start"])
|
|
3037
3037
|
}, [
|
|
3038
3038
|
ue("div", to, [
|
|
3039
|
-
ce(
|
|
3039
|
+
ce(f, {
|
|
3040
3040
|
"model-value": e.modelValue.includes(b.value),
|
|
3041
3041
|
disabled: e.disable || b.disabled,
|
|
3042
3042
|
size: "sm",
|
|
3043
3043
|
label: b.label,
|
|
3044
3044
|
value: b.label,
|
|
3045
|
-
"onUpdate:modelValue": (u) =>
|
|
3045
|
+
"onUpdate:modelValue": (u) => D(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
|
+
Y(m)[`checkbox-${b.key || b.value}-end`] && (e.modelValue.includes(b.value) || e.falsyShowSlot) ? (K(), re("div", {
|
|
3053
3053
|
key: 0,
|
|
3054
3054
|
class: Ce([{ "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
|
+
Y(m)[`checkbox-${b.key || b.value}-bottom`] && (e.modelValue.includes(b.value) || e.falsyShowSlot) ? (K(), re("div", {
|
|
3064
3064
|
key: 0,
|
|
3065
3065
|
class: Ce(["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 ? (K(), re("div", no,
|
|
3075
|
+
a.value && g.value ? (K(), re("div", no, ke(d.value), 1)) : Te("", !0)
|
|
3076
3076
|
]),
|
|
3077
3077
|
_: 3
|
|
3078
3078
|
}, 8, ["title"]);
|
|
@@ -3115,16 +3115,16 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3115
3115
|
...n.options.filter(
|
|
3116
3116
|
(C) => C.label.toLocaleLowerCase().includes(g.value.toLocaleLowerCase())
|
|
3117
3117
|
)
|
|
3118
|
-
]),
|
|
3118
|
+
]), m = z(() => n.modelValue ? n.modelValue : [ht, ...n.options.map((C) => C.value)]), d = z(() => {
|
|
3119
3119
|
if (n.layout === "leading") {
|
|
3120
3120
|
const N = n.modelValue ? n.options.filter((T) => n.modelValue.includes(T.value)).map((T) => T.label) : null;
|
|
3121
|
-
return
|
|
3121
|
+
return Jn(N, {
|
|
3122
3122
|
all: s("team.labels.all"),
|
|
3123
3123
|
none: s("team.labels.none"),
|
|
3124
3124
|
more: (T) => s("team.labels.more", { count: T })
|
|
3125
3125
|
});
|
|
3126
3126
|
}
|
|
3127
|
-
const C =
|
|
3127
|
+
const C = m.value.filter((N) => N !== ht).length;
|
|
3128
3128
|
return C === 0 ? "" : s("team.memberForm.permissions.allowedCount", { count: C });
|
|
3129
3129
|
});
|
|
3130
3130
|
function l(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 (C, N) => {
|
|
3136
3136
|
const T = Fe("fm-search");
|
|
3137
|
-
return K(), Oe(
|
|
3137
|
+
return K(), Oe(Yt, {
|
|
3138
3138
|
subtitle: d.value,
|
|
3139
3139
|
layout: e.layout,
|
|
3140
3140
|
"initially-collapsed": e.layout === "leading"
|
|
@@ -3144,7 +3144,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3144
3144
|
class: Ce(
|
|
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(Y(s)("team.memberForm.permissions.manageable", { context: e.context })), 3)
|
|
3148
3148
|
]),
|
|
3149
3149
|
default: de(() => [
|
|
3150
3150
|
e.options.length > 1 ? (K(), Oe(T, {
|
|
@@ -3152,10 +3152,10 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3152
3152
|
modelValue: g.value,
|
|
3153
3153
|
"onUpdate:modelValue": N[0] || (N[0] = (j) => g.value = j),
|
|
3154
3154
|
class: "mt-16",
|
|
3155
|
-
placeholder:
|
|
3155
|
+
placeholder: Y(s)("team.memberForm.permissions.search", { context: e.context })
|
|
3156
3156
|
}, null, 8, ["modelValue", "placeholder"])) : Te("", !0),
|
|
3157
3157
|
ce(dr, {
|
|
3158
|
-
"model-value":
|
|
3158
|
+
"model-value": m.value,
|
|
3159
3159
|
options: a.value,
|
|
3160
3160
|
"show-intermediate": !1,
|
|
3161
3161
|
"show-all-toggle": !0,
|
|
@@ -3167,8 +3167,8 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3167
3167
|
}, tt({ _: 2 }, [
|
|
3168
3168
|
Ne(a.value, (j) => ({
|
|
3169
3169
|
name: `checkbox-${j.value}-append`,
|
|
3170
|
-
fn: de(({ option:
|
|
3171
|
-
|
|
3170
|
+
fn: de(({ option: D }) => [
|
|
3171
|
+
Le(C.$slots, `checkbox-${j.value}-append`, { option: D })
|
|
3172
3172
|
])
|
|
3173
3173
|
}))
|
|
3174
3174
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3218,23 +3218,23 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3218
3218
|
disabled: !!g && C.restaurants.every(({ id: N }) => !g.includes(N))
|
|
3219
3219
|
}))
|
|
3220
3220
|
];
|
|
3221
|
-
}),
|
|
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 C = n.modelValue ? n.roles.filter((N) => n.modelValue.includes(N._id)).map((N) => N.name) : null;
|
|
3224
|
-
return
|
|
3224
|
+
return Jn(C, {
|
|
3225
3225
|
all: s("team.labels.all"),
|
|
3226
3226
|
none: s("team.labels.none"),
|
|
3227
3227
|
more: (N) => s("team.labels.more", { count: N })
|
|
3228
3228
|
});
|
|
3229
3229
|
}
|
|
3230
|
-
const g =
|
|
3230
|
+
const g = m.value.filter((C) => C !== bt).length;
|
|
3231
3231
|
return g === 0 ? "" : s("team.memberForm.permissions.allowedCount", { count: g });
|
|
3232
3232
|
});
|
|
3233
3233
|
function l(g) {
|
|
3234
3234
|
const C = g.length === a.value.length;
|
|
3235
3235
|
r("update:model-value", C ? null : g.filter((N) => N !== bt));
|
|
3236
3236
|
}
|
|
3237
|
-
return (g, C) => (K(), Oe(
|
|
3237
|
+
return (g, C) => (K(), Oe(Yt, {
|
|
3238
3238
|
subtitle: d.value,
|
|
3239
3239
|
layout: e.layout,
|
|
3240
3240
|
"initially-collapsed": e.layout === "leading"
|
|
@@ -3244,11 +3244,11 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3244
3244
|
class: Ce(
|
|
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(Y(s)("team.memberForm.permissions.roles")), 3)
|
|
3248
3248
|
]),
|
|
3249
3249
|
default: de(() => [
|
|
3250
3250
|
ce(dr, {
|
|
3251
|
-
"model-value":
|
|
3251
|
+
"model-value": m.value,
|
|
3252
3252
|
options: a.value,
|
|
3253
3253
|
"show-intermediate": !1,
|
|
3254
3254
|
"show-all-toggle": !1,
|
|
@@ -3260,7 +3260,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3260
3260
|
Ne(a.value, (N) => ({
|
|
3261
3261
|
name: `checkbox-${N.value}-append`,
|
|
3262
3262
|
fn: de(({ option: T }) => [
|
|
3263
|
-
|
|
3263
|
+
Le(g.$slots, `checkbox-${N.value}-append`, { option: T })
|
|
3264
3264
|
])
|
|
3265
3265
|
}))
|
|
3266
3266
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3297,7 +3297,7 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3297
3297
|
setup(e, { emit: t }) {
|
|
3298
3298
|
const n = t, { t: r } = ze();
|
|
3299
3299
|
return (s, a) => {
|
|
3300
|
-
const
|
|
3300
|
+
const m = Fe("FmRadio"), d = Fe("FmRadioGroup");
|
|
3301
3301
|
return K(), Oe(Ar, {
|
|
3302
3302
|
title: e.title,
|
|
3303
3303
|
builders: e.builders,
|
|
@@ -3317,20 +3317,20 @@ const Wa = { class: "flex flex-col gap-16" }, Ga = { class: "mt-16" }, Za = { cl
|
|
|
3317
3317
|
}, {
|
|
3318
3318
|
default: de(() => [
|
|
3319
3319
|
ue("div", null, [
|
|
3320
|
-
ce(
|
|
3320
|
+
ce(m, {
|
|
3321
3321
|
value: "inherit",
|
|
3322
|
-
label:
|
|
3322
|
+
label: Y(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) ? (K(), re("p", ao, " (" +
|
|
3326
|
+
e.coverOverride.inheritedSummary(e.entry, l, e.timeZone) ? (K(), re("p", ao, " (" + ke(Y(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
|
-
ce(
|
|
3331
|
+
ce(m, {
|
|
3332
3332
|
value: "custom",
|
|
3333
|
-
label:
|
|
3333
|
+
label: Y(r)("team.memberForm.permissions.conditionCover.custom")
|
|
3334
3334
|
}, null, 8, ["label"])
|
|
3335
3335
|
]),
|
|
3336
3336
|
_: 2
|
|
@@ -3357,11 +3357,11 @@ 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 Dr(await Fr().get("/warehouses"));
|
|
3361
3361
|
}
|
|
3362
3362
|
};
|
|
3363
3363
|
function jn(e, t) {
|
|
3364
|
-
return
|
|
3364
|
+
return Bn(e, Xn).some(
|
|
3365
3365
|
(n) => n.subject === t && !n.inverted && n.actions.includes("manage")
|
|
3366
3366
|
);
|
|
3367
3367
|
}
|
|
@@ -3369,9 +3369,9 @@ 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
3371
|
function xn(e, t, n) {
|
|
3372
|
-
const { category: r, showByFeatureFlag: s, isCategoryCover: a, ...
|
|
3372
|
+
const { category: r, showByFeatureFlag: s, isCategoryCover: a, ...m } = e;
|
|
3373
3373
|
return {
|
|
3374
|
-
...
|
|
3374
|
+
...m,
|
|
3375
3375
|
actions: t,
|
|
3376
3376
|
...n !== void 0 && { conditions: n }
|
|
3377
3377
|
};
|
|
@@ -3381,16 +3381,16 @@ function io(e, t, n, r) {
|
|
|
3381
3381
|
e.filter((l) => !l.inverted).map((l) => l.subject)
|
|
3382
3382
|
), a = new Set(
|
|
3383
3383
|
t.filter((l) => !l.inverted).map((l) => l.subject)
|
|
3384
|
-
),
|
|
3384
|
+
), m = new Set(
|
|
3385
3385
|
n.filter((l) => !l.inverted).map((l) => l.subject)
|
|
3386
3386
|
);
|
|
3387
3387
|
let d = [...n];
|
|
3388
3388
|
for (const l of s)
|
|
3389
|
-
a.has(l) || (
|
|
3389
|
+
a.has(l) || (m.has(l) && (d = d.filter((C) => C.subject !== l)), (!m.has(l) || jn(d, l)) && (d = Un(d, l)));
|
|
3390
3390
|
for (const l of a)
|
|
3391
3391
|
if (!s.has(l)) {
|
|
3392
3392
|
const g = d.some((C) => C.subject === l && C.inverted);
|
|
3393
|
-
if (d = d.filter((C) => !(C.subject === l && C.inverted)), !g && !
|
|
3393
|
+
if (d = d.filter((C) => !(C.subject === l && C.inverted)), !g && !m.has(l)) {
|
|
3394
3394
|
const C = t.find(
|
|
3395
3395
|
(T) => T.subject === l && !T.inverted
|
|
3396
3396
|
), N = r(l);
|
|
@@ -3399,22 +3399,22 @@ function io(e, t, n, r) {
|
|
|
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((D) => D.subject === l && !D.inverted), C = t.find((D) => D.subject === l && !D.inverted);
|
|
3403
3403
|
if (!g || !C) continue;
|
|
3404
3404
|
const N = new Set(g.actions), T = new Set(C.actions);
|
|
3405
|
-
if (N.size === T.size && [...N].every((
|
|
3405
|
+
if (N.size === T.size && [...N].every((D) => T.has(D)))
|
|
3406
3406
|
continue;
|
|
3407
|
-
const j = d.findIndex((
|
|
3407
|
+
const j = d.findIndex((D) => D.subject === l && !D.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 D = r(l);
|
|
3415
|
+
D && d.push(xn(D, Array.from(T)));
|
|
3416
3416
|
}
|
|
3417
|
-
N.has("manage") && !T.has("manage") && jn(d, l) && (d = Un(d, l)), !N.has("manage") && T.has("manage") && (d = d.filter((
|
|
3417
|
+
N.has("manage") && !T.has("manage") && jn(d, l) && (d = Un(d, l)), !N.has("manage") && T.has("manage") && (d = d.filter((D) => !(D.subject === l && D.inverted)));
|
|
3418
3418
|
}
|
|
3419
3419
|
return d;
|
|
3420
3420
|
}
|
|
@@ -3437,7 +3437,7 @@ function uo(e) {
|
|
|
3437
3437
|
const t = (e || "").toUpperCase();
|
|
3438
3438
|
return co[t] ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
3439
3439
|
}
|
|
3440
|
-
function
|
|
3440
|
+
function mo(e, t) {
|
|
3441
3441
|
return e != null && e.timezone ? e.timezone : e != null && e.timeZone ? e.timeZone : uo((e == null ? void 0 : e.country) ?? t);
|
|
3442
3442
|
}
|
|
3443
3443
|
function gt(e, t) {
|
|
@@ -3450,20 +3450,20 @@ function Xe(e) {
|
|
|
3450
3450
|
return;
|
|
3451
3451
|
}
|
|
3452
3452
|
}
|
|
3453
|
-
function
|
|
3453
|
+
function fo(e, t) {
|
|
3454
3454
|
return e.find((n) => !n.inverted && n.subject === t);
|
|
3455
3455
|
}
|
|
3456
3456
|
function Rt(e, t) {
|
|
3457
3457
|
const n = new Set(e.actions);
|
|
3458
|
-
return n.has(
|
|
3458
|
+
return n.has(Ye.Action.manage) ? !0 : t.actions.every((r) => n.has(r));
|
|
3459
3459
|
}
|
|
3460
|
-
function
|
|
3460
|
+
function Gt(e, t) {
|
|
3461
3461
|
const n = Xe(e);
|
|
3462
|
-
return
|
|
3462
|
+
return wt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3463
3463
|
}
|
|
3464
3464
|
function Vn(e, t, n) {
|
|
3465
3465
|
return {
|
|
3466
|
-
...
|
|
3466
|
+
...Gt(e, n),
|
|
3467
3467
|
...nt(Xe(t), n)
|
|
3468
3468
|
};
|
|
3469
3469
|
}
|
|
@@ -3475,13 +3475,13 @@ function _o(e, t, n) {
|
|
|
3475
3475
|
function a(u) {
|
|
3476
3476
|
return t.value.find((I) => I.subject === u);
|
|
3477
3477
|
}
|
|
3478
|
-
function
|
|
3478
|
+
function m(u) {
|
|
3479
3479
|
var E;
|
|
3480
3480
|
const I = s(u);
|
|
3481
3481
|
return I ? (E = a(I)) == null ? void 0 : E.label : void 0;
|
|
3482
3482
|
}
|
|
3483
3483
|
function d(u) {
|
|
3484
|
-
return
|
|
3484
|
+
return fo(e.value, u);
|
|
3485
3485
|
}
|
|
3486
3486
|
function l(u, I) {
|
|
3487
3487
|
return nt(Xe(u), I);
|
|
@@ -3499,8 +3499,8 @@ function _o(e, t, n) {
|
|
|
3499
3499
|
if (u.index === null) return "inherit";
|
|
3500
3500
|
const E = e.value[u.index], _ = s(u.subject), R = _ ? d(_) : void 0;
|
|
3501
3501
|
if (E && R) {
|
|
3502
|
-
const
|
|
3503
|
-
if (JSON.stringify(
|
|
3502
|
+
const L = nt(Xe(E), I), $ = l(R, I);
|
|
3503
|
+
if (JSON.stringify(L) === JSON.stringify($)) return "inherit";
|
|
3504
3504
|
}
|
|
3505
3505
|
return "custom";
|
|
3506
3506
|
}
|
|
@@ -3510,26 +3510,26 @@ function _o(e, t, n) {
|
|
|
3510
3510
|
if (!_) return;
|
|
3511
3511
|
const R = d(_);
|
|
3512
3512
|
if (!R) return;
|
|
3513
|
-
const
|
|
3514
|
-
return I.summarizeForm(
|
|
3513
|
+
const L = I.fromCondition(l(R, 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] }, R =
|
|
3519
|
-
if (
|
|
3518
|
+
const E = [...e.value], _ = { ...E[u.index] }, R = Gt(_, I), L = Object.keys(R).length === 0, $ = s(u.subject), x = $ ? d($) : void 0, F = x ? Rt(x, _) : !1;
|
|
3519
|
+
if (L && F)
|
|
3520
3520
|
E.splice(u.index, 1);
|
|
3521
3521
|
else if (x) {
|
|
3522
3522
|
const y = Vn(_, x, 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(R), 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
3535
|
const R = new Set(r.value);
|
|
@@ -3537,13 +3537,13 @@ function _o(e, t, n) {
|
|
|
3537
3537
|
forceCreateRule: !0
|
|
3538
3538
|
});
|
|
3539
3539
|
}
|
|
3540
|
-
function
|
|
3540
|
+
function D(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;
|
|
@@ -3554,73 +3554,73 @@ function _o(e, t, n) {
|
|
|
3554
3554
|
const E = `::${I.builderKey}`, _ = new Set(r.value);
|
|
3555
3555
|
for (const R of _) {
|
|
3556
3556
|
if (!R.endsWith(E)) continue;
|
|
3557
|
-
const
|
|
3558
|
-
s(
|
|
3557
|
+
const L = R.slice(0, -E.length);
|
|
3558
|
+
s(L) === u && _.delete(R);
|
|
3559
3559
|
}
|
|
3560
3560
|
r.value = _;
|
|
3561
3561
|
}
|
|
3562
|
-
function
|
|
3562
|
+
function f(u, I, E) {
|
|
3563
3563
|
const _ = I.subject;
|
|
3564
|
-
return u.reduce((R,
|
|
3565
|
-
if (
|
|
3566
|
-
return R.push(
|
|
3567
|
-
const
|
|
3568
|
-
if (
|
|
3569
|
-
return R.push(
|
|
3570
|
-
if (Rt(I,
|
|
3564
|
+
return u.reduce((R, L) => {
|
|
3565
|
+
if (L.inverted)
|
|
3566
|
+
return R.push(L), R;
|
|
3567
|
+
const $ = L.subject;
|
|
3568
|
+
if ($ === _ || s($) !== _)
|
|
3569
|
+
return R.push(L), R;
|
|
3570
|
+
if (Rt(I, L) && Object.keys(Gt(L, E)).length === 0)
|
|
3571
3571
|
return R;
|
|
3572
|
-
const F = Vn(
|
|
3572
|
+
const F = Vn(L, I, E);
|
|
3573
3573
|
if (Object.keys(F).length === 0) {
|
|
3574
|
-
const { conditions: y, ...
|
|
3575
|
-
R.push(
|
|
3574
|
+
const { conditions: y, ...w } = L;
|
|
3575
|
+
R.push(w);
|
|
3576
3576
|
} else
|
|
3577
|
-
R.push({ ...
|
|
3577
|
+
R.push({ ...L, conditions: JSON.stringify(F) });
|
|
3578
3578
|
return R;
|
|
3579
3579
|
}, []);
|
|
3580
3580
|
}
|
|
3581
3581
|
function b(u, I, E, _ = {}) {
|
|
3582
3582
|
var V;
|
|
3583
3583
|
const R = [...e.value];
|
|
3584
|
-
let
|
|
3585
|
-
const
|
|
3586
|
-
if (
|
|
3587
|
-
if (
|
|
3588
|
-
const O = R.findIndex((
|
|
3584
|
+
let L = u.index;
|
|
3585
|
+
const $ = I.toCondition(E), x = Object.keys($).length > 0;
|
|
3586
|
+
if (L === null && !x && !_.forceCreateRule) return;
|
|
3587
|
+
if (L === null) {
|
|
3588
|
+
const O = R.findIndex((Z) => !Z.inverted && Z.subject === u.subject);
|
|
3589
3589
|
if (O !== -1)
|
|
3590
|
-
|
|
3590
|
+
L = O;
|
|
3591
3591
|
else {
|
|
3592
|
-
const
|
|
3593
|
-
if (!
|
|
3592
|
+
const Z = t.value.find((se) => se.subject === u.subject);
|
|
3593
|
+
if (!Z) return;
|
|
3594
3594
|
const {
|
|
3595
3595
|
category: H,
|
|
3596
3596
|
showByFeatureFlag: U,
|
|
3597
|
-
isCategoryCover:
|
|
3597
|
+
isCategoryCover: J,
|
|
3598
3598
|
...X
|
|
3599
|
-
} =
|
|
3599
|
+
} = Z;
|
|
3600
3600
|
R.push({
|
|
3601
3601
|
...X,
|
|
3602
3602
|
actions: u.actions.length > 0 ? u.actions : X.actions
|
|
3603
|
-
}),
|
|
3603
|
+
}), L = R.length - 1;
|
|
3604
3604
|
}
|
|
3605
3605
|
}
|
|
3606
|
-
const F = { ...R[
|
|
3606
|
+
const F = { ...R[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), w = wt(y, [{ builder: I, formValue: E }]);
|
|
3611
|
+
if (Object.keys(w).length === 0 ? delete F.conditions : F.conditions = JSON.stringify(w), R[L] = F, tn(u.subject, t.value)) {
|
|
3612
|
+
const O = k(u.subject, I), Z = () => {
|
|
3613
3613
|
var U;
|
|
3614
|
-
P(u.subject, I), n(
|
|
3614
|
+
P(u.subject, I), n(f(R, F, I)), (U = _.afterCommit) == null || U.call(_);
|
|
3615
3615
|
}, H = () => {
|
|
3616
3616
|
var U;
|
|
3617
3617
|
n(R), (U = _.afterCommit) == null || U.call(_);
|
|
3618
3618
|
};
|
|
3619
3619
|
if (O.length === 0) {
|
|
3620
|
-
|
|
3620
|
+
Z();
|
|
3621
3621
|
return;
|
|
3622
3622
|
}
|
|
3623
|
-
_.onOverridesConflict ? _.onOverridesConflict({ override:
|
|
3623
|
+
_.onOverridesConflict ? _.onOverridesConflict({ override: Z, keep: H }) : H();
|
|
3624
3624
|
return;
|
|
3625
3625
|
}
|
|
3626
3626
|
n(R), (V = _.afterCommit) == null || V.call(_);
|
|
@@ -3628,77 +3628,77 @@ function _o(e, t, n) {
|
|
|
3628
3628
|
function A(u, I, E = {}) {
|
|
3629
3629
|
if (I.length === 0) return;
|
|
3630
3630
|
const _ = [...e.value];
|
|
3631
|
-
let R = _.findIndex((O) => !O.inverted && O.subject === u.subject),
|
|
3631
|
+
let R = _.findIndex((O) => !O.inverted && O.subject === u.subject), L = R === -1 ? void 0 : { ..._[R] }, $ = Xe(L ?? {}) ?? {};
|
|
3632
3632
|
for (const O of I) {
|
|
3633
|
-
const
|
|
3634
|
-
|
|
3633
|
+
const Z = O.mode === "inherit" ? O.builder.fromCondition(void 0) : O.form;
|
|
3634
|
+
$ = wt($, [{ builder: O.builder, formValue: Z }]);
|
|
3635
3635
|
}
|
|
3636
3636
|
const x = I.some((O) => O.mode === "custom");
|
|
3637
|
-
if (!
|
|
3637
|
+
if (!L && (Object.keys($).length > 0 || x)) {
|
|
3638
3638
|
const O = t.value.find((X) => X.subject === u.subject);
|
|
3639
3639
|
if (!O) return;
|
|
3640
3640
|
const {
|
|
3641
|
-
category:
|
|
3641
|
+
category: Z,
|
|
3642
3642
|
showByFeatureFlag: H,
|
|
3643
3643
|
isCategoryCover: U,
|
|
3644
|
-
|
|
3644
|
+
...J
|
|
3645
3645
|
} = O;
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
actions: u.actions.length > 0 ? u.actions :
|
|
3649
|
-
}, _.push(
|
|
3646
|
+
L = {
|
|
3647
|
+
...J,
|
|
3648
|
+
actions: u.actions.length > 0 ? u.actions : J.actions
|
|
3649
|
+
}, _.push(L), R = _.length - 1;
|
|
3650
3650
|
}
|
|
3651
|
-
if (
|
|
3652
|
-
const O = s(u.subject),
|
|
3653
|
-
if (!x && Object.keys(
|
|
3654
|
-
_.splice(R, 1),
|
|
3651
|
+
if (L) {
|
|
3652
|
+
const O = s(u.subject), Z = O ? d(O) : void 0;
|
|
3653
|
+
if (!x && Object.keys($).length === 0 && !!Z && Rt(Z, L))
|
|
3654
|
+
_.splice(R, 1), L = void 0;
|
|
3655
3655
|
else {
|
|
3656
|
-
if (
|
|
3657
|
-
.../* @__PURE__ */ new Set([...
|
|
3658
|
-
],
|
|
3656
|
+
if (L.actions = [
|
|
3657
|
+
.../* @__PURE__ */ new Set([...L.actions, ...u.actions])
|
|
3658
|
+
], Z)
|
|
3659
3659
|
for (const U of I)
|
|
3660
|
-
U.mode === "inherit" && (
|
|
3661
|
-
|
|
3662
|
-
...nt(Xe(
|
|
3660
|
+
U.mode === "inherit" && ($ = {
|
|
3661
|
+
...$,
|
|
3662
|
+
...nt(Xe(Z), U.builder)
|
|
3663
3663
|
});
|
|
3664
|
-
Object.keys(
|
|
3664
|
+
Object.keys($).length === 0 ? delete L.conditions : L.conditions = JSON.stringify($), _[R] = L;
|
|
3665
3665
|
}
|
|
3666
3666
|
}
|
|
3667
3667
|
const F = () => {
|
|
3668
3668
|
const O = new Set(r.value);
|
|
3669
|
-
for (const
|
|
3670
|
-
const H = gt(u.subject,
|
|
3671
|
-
|
|
3669
|
+
for (const Z of I) {
|
|
3670
|
+
const H = gt(u.subject, Z.builder);
|
|
3671
|
+
Z.mode === "custom" ? O.add(H) : O.delete(H);
|
|
3672
3672
|
}
|
|
3673
3673
|
r.value = O;
|
|
3674
3674
|
}, y = (O) => {
|
|
3675
|
-
var
|
|
3676
|
-
F(), n(O), (
|
|
3675
|
+
var Z;
|
|
3676
|
+
F(), n(O), (Z = E.afterCommit) == null || Z.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 w = I.map((O) => O.builder).filter((O) => k(u.subject, O).length > 0), V = () => {
|
|
3683
3683
|
let O = _;
|
|
3684
|
-
for (const
|
|
3685
|
-
P(u.subject,
|
|
3684
|
+
for (const Z of I.map((H) => H.builder))
|
|
3685
|
+
P(u.subject, Z), O = f(O, L, Z);
|
|
3686
3686
|
y(O);
|
|
3687
3687
|
};
|
|
3688
|
-
if (
|
|
3688
|
+
if (w.length > 0 && E.onOverridesConflict) {
|
|
3689
3689
|
E.onOverridesConflict({ override: V, keep: () => y(_) });
|
|
3690
3690
|
return;
|
|
3691
3691
|
}
|
|
3692
|
-
|
|
3692
|
+
w.length > 0 ? y(_) : V();
|
|
3693
3693
|
}
|
|
3694
3694
|
return {
|
|
3695
3695
|
getCoverSubject: s,
|
|
3696
|
-
coverLabel:
|
|
3696
|
+
coverLabel: m,
|
|
3697
3697
|
shouldShowInheritToggle: g,
|
|
3698
3698
|
inheritMode: C,
|
|
3699
3699
|
setInheritMode: j,
|
|
3700
3700
|
inheritedSummary: N,
|
|
3701
|
-
getEffectiveActions:
|
|
3701
|
+
getEffectiveActions: D,
|
|
3702
3702
|
updateBuilderCondition: b,
|
|
3703
3703
|
applyConditionDrafts: A
|
|
3704
3704
|
};
|
|
@@ -3732,20 +3732,20 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
3732
3732
|
setup(e, { emit: t }) {
|
|
3733
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
|
-
),
|
|
3735
|
+
), m = t, { t: d } = ze(), l = Ir(), g = yr(), { breakpoints: C } = Er(), N = z(() => C.value.xs || C.value.sm), {
|
|
3736
3736
|
fetchCustomReportPermissions: T,
|
|
3737
3737
|
customReportPermissions: j
|
|
3738
|
-
} = Nr(),
|
|
3739
|
-
...
|
|
3738
|
+
} = Nr(), D = z(() => [
|
|
3739
|
+
...Gn,
|
|
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
|
-
return
|
|
3743
|
+
return mo(c, S);
|
|
3744
3744
|
});
|
|
3745
3745
|
function P(c) {
|
|
3746
|
-
return
|
|
3746
|
+
return D.value.find((h) => h.subject === c);
|
|
3747
3747
|
}
|
|
3748
|
-
function
|
|
3748
|
+
function f(c, h) {
|
|
3749
3749
|
return an(c).filter(
|
|
3750
3750
|
(S) => {
|
|
3751
3751
|
var M;
|
|
@@ -3754,7 +3754,7 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
3754
3754
|
);
|
|
3755
3755
|
}
|
|
3756
3756
|
const b = z(() => {
|
|
3757
|
-
const c =
|
|
3757
|
+
const c = D.value.filter((S) => !E.includes(S.subject)).map((S) => S.subject);
|
|
3758
3758
|
return Tr(
|
|
3759
3759
|
r.inheritPermissions.map((S) => ({
|
|
3760
3760
|
...S,
|
|
@@ -3768,7 +3768,7 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
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 === Ye.Subject.Business.inventory_stock
|
|
3772
3772
|
)
|
|
3773
3773
|
}));
|
|
3774
3774
|
return St(
|
|
@@ -3780,7 +3780,7 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
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 === Ye.Subject.Restaurant.restaurant
|
|
3784
3784
|
)
|
|
3785
3785
|
}));
|
|
3786
3786
|
return St(
|
|
@@ -3791,7 +3791,7 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
3791
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 === Ye.Subject.Business.role)
|
|
3795
3795
|
}));
|
|
3796
3796
|
return St(
|
|
3797
3797
|
c,
|
|
@@ -3801,60 +3801,60 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
3801
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 === Ye.Subject.Business.inventory_stock
|
|
3805
3805
|
);
|
|
3806
3806
|
return c ? c.conditions ? JSON.parse(c.conditions).warehouseId.$in : null : [];
|
|
3807
|
-
}), R = st([]),
|
|
3807
|
+
}), R = st([]), L = z(() => R.value.map((c) => ({
|
|
3808
3808
|
label: c.profile.name,
|
|
3809
3809
|
value: c._id
|
|
3810
3810
|
})));
|
|
3811
|
-
function
|
|
3811
|
+
function $(c) {
|
|
3812
3812
|
const h = x(n.value, c);
|
|
3813
3813
|
n.value = h;
|
|
3814
3814
|
}
|
|
3815
3815
|
function x(c, h) {
|
|
3816
3816
|
let S = Hn(
|
|
3817
|
-
c.filter((M) => M.subject !==
|
|
3817
|
+
c.filter((M) => M.subject !== Ye.Subject.Business.inventory_stock)
|
|
3818
3818
|
);
|
|
3819
3819
|
if (!h || h.length > 0) {
|
|
3820
3820
|
const M = {
|
|
3821
|
-
actions: [
|
|
3822
|
-
subject:
|
|
3821
|
+
actions: [Ye.Action.manage],
|
|
3822
|
+
subject: Ye.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, w = z(() => F.value.map((c) => ({
|
|
3829
3829
|
label: `${c.profile.code ? c.profile.code + "-" : ""}${c.profile.name}`,
|
|
3830
3830
|
value: c._id
|
|
3831
3831
|
}))), V = 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
|
-
function
|
|
3832
|
+
function Z(c) {
|
|
3833
3833
|
const h = U(n.value, c);
|
|
3834
3834
|
n.value = h;
|
|
3835
3835
|
}
|
|
3836
3836
|
const H = z(() => Sr(n.value));
|
|
3837
3837
|
function U(c, h) {
|
|
3838
|
-
return
|
|
3838
|
+
return kr(c, h, {
|
|
3839
3839
|
restaurantRoles: V.value,
|
|
3840
3840
|
allRoleIds: y.value.map((S) => S._id)
|
|
3841
3841
|
});
|
|
3842
3842
|
}
|
|
3843
|
-
function
|
|
3843
|
+
function J(c) {
|
|
3844
3844
|
const h = X(n.value, c);
|
|
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 } = Yn();
|
|
3851
3851
|
Wn(async () => {
|
|
3852
3852
|
await Promise.all([
|
|
3853
3853
|
r.part !== "portal" && !se.value && lo.readWarehouses().then((c) => R.value = c),
|
|
3854
3854
|
T()
|
|
3855
3855
|
]);
|
|
3856
3856
|
});
|
|
3857
|
-
const Q = z(() =>
|
|
3857
|
+
const Q = z(() => Bn(
|
|
3858
3858
|
n.value,
|
|
3859
3859
|
Xn
|
|
3860
3860
|
).filter((S) => {
|
|
@@ -3869,7 +3869,7 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
3869
3869
|
const v = p.actions;
|
|
3870
3870
|
return v.length <= 1 || v.filter((te) => !M.includes(te)).length === 0 ? S : { ...S, actions: [...v] };
|
|
3871
3871
|
}));
|
|
3872
|
-
function
|
|
3872
|
+
function fe(c) {
|
|
3873
3873
|
n.value = io(
|
|
3874
3874
|
Q.value,
|
|
3875
3875
|
c,
|
|
@@ -3878,7 +3878,7 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
3878
3878
|
);
|
|
3879
3879
|
}
|
|
3880
3880
|
const ye = z(() => new Set(
|
|
3881
|
-
|
|
3881
|
+
D.value.filter((c) => an(c.subject).length > 0).map((c) => c.subject)
|
|
3882
3882
|
)), ve = z(() => {
|
|
3883
3883
|
const c = /* @__PURE__ */ new Map();
|
|
3884
3884
|
return Q.value.map((h) => ({
|
|
@@ -3887,8 +3887,8 @@ 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
|
|
3891
|
-
const M = h.actions, p =
|
|
3890
|
+
var G;
|
|
3891
|
+
const M = h.actions, p = f(h.subject, M);
|
|
3892
3892
|
if (p.length === 0) return;
|
|
3893
3893
|
let v;
|
|
3894
3894
|
try {
|
|
@@ -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: ((G = P(h.subject)) == null ? void 0 : G.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,13 +3908,13 @@ 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, D, (c) => {
|
|
3912
3912
|
n.value = c;
|
|
3913
3913
|
}), ie = Rr(n), Pe = st(null);
|
|
3914
|
-
function
|
|
3914
|
+
function B(c, h) {
|
|
3915
3915
|
const S = ve.value.get(c);
|
|
3916
3916
|
if (S) return S;
|
|
3917
|
-
const M = oe.getEffectiveActions(c), p =
|
|
3917
|
+
const M = oe.getEffectiveActions(c), p = f(c, M);
|
|
3918
3918
|
if (p.length !== 0)
|
|
3919
3919
|
return {
|
|
3920
3920
|
index: null,
|
|
@@ -3933,11 +3933,11 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
3933
3933
|
const M = c.sections.find((p) => p.builder.builderKey === h.builderKey);
|
|
3934
3934
|
return M == null ? void 0 : M.formValue;
|
|
3935
3935
|
}
|
|
3936
|
-
function
|
|
3936
|
+
function $e(c, h) {
|
|
3937
3937
|
const S = ie.getDraft({ subject: c.subject, builderKey: h.builderKey });
|
|
3938
3938
|
return S != null && S.inheritMode ? S.inheritMode : oe.inheritMode(c, h);
|
|
3939
3939
|
}
|
|
3940
|
-
function
|
|
3940
|
+
function Ze(c, h, S) {
|
|
3941
3941
|
const M = ie.getDraft({
|
|
3942
3942
|
subject: c.subject,
|
|
3943
3943
|
builderKey: h.builderKey
|
|
@@ -3946,7 +3946,7 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
3946
3946
|
{ subject: c.subject, builderKey: h.builderKey },
|
|
3947
3947
|
{
|
|
3948
3948
|
formValue: S,
|
|
3949
|
-
inheritMode: (M == null ? void 0 : M.inheritMode) ??
|
|
3949
|
+
inheritMode: (M == null ? void 0 : M.inheritMode) ?? $e(c, h)
|
|
3950
3950
|
}
|
|
3951
3951
|
);
|
|
3952
3952
|
}
|
|
@@ -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 Ge(c, h) {
|
|
3970
3970
|
const S = c.sections.flatMap((M) => {
|
|
3971
3971
|
const p = ie.getDraft({
|
|
3972
3972
|
subject: c.subject,
|
|
@@ -4017,7 +4017,7 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
4017
4017
|
return Mt(
|
|
4018
4018
|
n,
|
|
4019
4019
|
(c) => {
|
|
4020
|
-
|
|
4020
|
+
m("permissionChanged", c);
|
|
4021
4021
|
},
|
|
4022
4022
|
{ deep: !0 }
|
|
4023
4023
|
), (c, h) => {
|
|
@@ -4029,12 +4029,12 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
4029
4029
|
key: 0,
|
|
4030
4030
|
class: Ce(a.value)
|
|
4031
4031
|
}, [
|
|
4032
|
-
ce(
|
|
4032
|
+
ce($a, {
|
|
4033
4033
|
"model-value": Q.value,
|
|
4034
4034
|
"excluded-subjects": E,
|
|
4035
|
-
"additional-permissions":
|
|
4035
|
+
"additional-permissions": Y(j),
|
|
4036
4036
|
layout: s.value,
|
|
4037
|
-
"onUpdate:modelValue":
|
|
4037
|
+
"onUpdate:modelValue": fe
|
|
4038
4038
|
}, tt({ _: 2 }, [
|
|
4039
4039
|
Ne(b.value, (v) => ({
|
|
4040
4040
|
name: `checkbox-${v.id}-append`,
|
|
@@ -4044,19 +4044,19 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
4044
4044
|
})),
|
|
4045
4045
|
Ne(ye.value, (v) => ({
|
|
4046
4046
|
name: `checkbox-${v}-icon`,
|
|
4047
|
-
fn: de(({ option:
|
|
4048
|
-
te &&
|
|
4047
|
+
fn: de(({ option: G, isEffectiveSelected: te }) => [
|
|
4048
|
+
te && B(v, G.label) ? (K(), re(De, { key: 0 }, [
|
|
4049
4049
|
N.value ? (K(), Oe(M, {
|
|
4050
4050
|
key: 0,
|
|
4051
4051
|
"model-value": Pe.value === v,
|
|
4052
|
-
header:
|
|
4053
|
-
context:
|
|
4052
|
+
header: Y(d)("team.memberForm.permissions.conditionTitle", {
|
|
4053
|
+
context: B(v, G.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 || Y(ie).clearDraftsForSubject(v);
|
|
4060
4060
|
}
|
|
4061
4061
|
}, {
|
|
4062
4062
|
"bottom-sheet-button": de(() => [
|
|
@@ -4066,26 +4066,26 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
4066
4066
|
size: "sm",
|
|
4067
4067
|
class: Ce([
|
|
4068
4068
|
"cursor-pointer transition-colors",
|
|
4069
|
-
qe(
|
|
4069
|
+
qe(B(v, G.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:
|
|
4077
|
-
builders:
|
|
4076
|
+
entry: B(v, G.label),
|
|
4077
|
+
builders: B(v, G.label).sections.map((le) => le.builder),
|
|
4078
4078
|
subject: v,
|
|
4079
|
-
"time-zone":
|
|
4080
|
-
"cover-override":
|
|
4081
|
-
"inherit-mode-for": (le) =>
|
|
4082
|
-
"form-value-for": (le) => _e(
|
|
4079
|
+
"time-zone": k.value,
|
|
4080
|
+
"cover-override": Y(oe),
|
|
4081
|
+
"inherit-mode-for": (le) => $e(B(v, G.label), le),
|
|
4082
|
+
"form-value-for": (le) => _e(B(v, G.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(
|
|
4087
|
-
onUpdateForm: ({ builder: le, form: he }) =>
|
|
4088
|
-
onApply: (le) =>
|
|
4086
|
+
onUpdateInheritMode: ({ builder: le, mode: he }) => je(B(v, G.label), le, he),
|
|
4087
|
+
onUpdateForm: ({ builder: le, form: he }) => Ze(B(v, G.label), le, he),
|
|
4088
|
+
onApply: (le) => Ge(B(v, G.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
|
|
@@ -4096,7 +4096,7 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
4096
4096
|
"exclude-el-from-click-outside": [ho],
|
|
4097
4097
|
class: "h-5 flex items-center",
|
|
4098
4098
|
onPopoverChanged: (le) => {
|
|
4099
|
-
le ||
|
|
4099
|
+
le || Y(ie).clearDraftsForSubject(v);
|
|
4100
4100
|
}
|
|
4101
4101
|
}, {
|
|
4102
4102
|
"popover-button": de(() => [
|
|
@@ -4106,32 +4106,32 @@ const po = { class: "h-[24px] w-[24px] flex items-center justify-center" }, vo =
|
|
|
4106
4106
|
size: "sm",
|
|
4107
4107
|
class: Ce([
|
|
4108
4108
|
"cursor-pointer transition-colors",
|
|
4109
|
-
qe(
|
|
4109
|
+
qe(B(v, G.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:
|
|
4117
|
-
builders:
|
|
4116
|
+
entry: B(v, G.label),
|
|
4117
|
+
builders: B(v, G.label).sections.map((he) => he.builder),
|
|
4118
4118
|
subject: v,
|
|
4119
|
-
"time-zone":
|
|
4120
|
-
"cover-override":
|
|
4121
|
-
title:
|
|
4122
|
-
context:
|
|
4119
|
+
"time-zone": k.value,
|
|
4120
|
+
"cover-override": Y(oe),
|
|
4121
|
+
title: Y(d)("team.memberForm.permissions.conditionTitle", {
|
|
4122
|
+
context: B(v, G.label).label
|
|
4123
4123
|
}),
|
|
4124
|
-
"inherit-mode-for": (he) =>
|
|
4125
|
-
"form-value-for": (he) => _e(
|
|
4124
|
+
"inherit-mode-for": (he) => $e(B(v, G.label), he),
|
|
4125
|
+
"form-value-for": (he) => _e(B(v, G.label), he),
|
|
4126
4126
|
"has-changes": Ue(v),
|
|
4127
4127
|
disable: e.disable,
|
|
4128
4128
|
onUpdateInheritMode: ({ builder: he, mode: Me }) => je(
|
|
4129
|
-
|
|
4129
|
+
B(v, G.label),
|
|
4130
4130
|
he,
|
|
4131
4131
|
Me
|
|
4132
4132
|
),
|
|
4133
|
-
onUpdateForm: ({ builder: he, form: Me }) =>
|
|
4134
|
-
onApply: (he) =>
|
|
4133
|
+
onUpdateForm: ({ builder: he, form: Me }) => Ze(B(v, G.label), he, Me),
|
|
4134
|
+
onApply: (he) => Ge(B(v, G.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
|
|
@@ -4146,16 +4146,16 @@ 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" && !Y(se) ? (K(), re("div", {
|
|
4150
4150
|
key: 1,
|
|
4151
4151
|
class: Ce(a.value)
|
|
4152
4152
|
}, [
|
|
4153
4153
|
ce(Fn, {
|
|
4154
4154
|
"model-value": _.value,
|
|
4155
|
-
options:
|
|
4156
|
-
context:
|
|
4155
|
+
options: L.value,
|
|
4156
|
+
context: Y(d)("team.labels.warehouse"),
|
|
4157
4157
|
layout: s.value,
|
|
4158
|
-
"onUpdate:modelValue":
|
|
4158
|
+
"onUpdate:modelValue": $
|
|
4159
4159
|
}, tt({ _: 2 }, [
|
|
4160
4160
|
Ne(A.value, (v) => ({
|
|
4161
4161
|
name: `checkbox-${v.id}-append`,
|
|
@@ -4165,16 +4165,16 @@ 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" && !Y(se) ? (K(), re("div", {
|
|
4169
4169
|
key: 2,
|
|
4170
4170
|
class: Ce([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: w.value,
|
|
4175
|
+
context: Y(d)("team.labels.restaurant"),
|
|
4176
4176
|
layout: s.value,
|
|
4177
|
-
"onUpdate:modelValue":
|
|
4177
|
+
"onUpdate:modelValue": Z
|
|
4178
4178
|
}, tt({ _: 2 }, [
|
|
4179
4179
|
Ne(u.value, (v) => ({
|
|
4180
4180
|
name: `checkbox-${v.id}-append`,
|
|
@@ -4184,16 +4184,16 @@ 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" && !Y(se) ? (K(), re("div", {
|
|
4188
4188
|
key: 3,
|
|
4189
4189
|
class: Ce(a.value)
|
|
4190
4190
|
}, [
|
|
4191
4191
|
ce(ro, {
|
|
4192
|
-
roles:
|
|
4192
|
+
roles: Y(y),
|
|
4193
4193
|
"model-value": H.value,
|
|
4194
4194
|
"restaurant-ids": O.value,
|
|
4195
4195
|
layout: s.value,
|
|
4196
|
-
"onUpdate:modelValue":
|
|
4196
|
+
"onUpdate:modelValue": J
|
|
4197
4197
|
}, tt({ _: 2 }, [
|
|
4198
4198
|
Ne(I.value, (v) => ({
|
|
4199
4199
|
name: `checkbox-${v.id}-append`,
|