@feedmepos/mf-hrm-portal 2.1.0-dev → 2.1.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AuditLogList-AGlAsWwd.js +1608 -0
- package/dist/{ConditionFormHost.vue_vue_type_script_setup_true_lang-tiuei7CA.js → ConditionFormHost.vue_vue_type_script_setup_true_lang-BYHKFwRm.js} +2 -2
- package/dist/EmployeeList-KvjoGI87.js +884 -0
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-D3MOFOUI.js → FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js} +1 -1
- package/dist/{Main-BgOhmojO.js → Main-BLh16xRg.js} +188 -185
- package/dist/Main-D3TSdtSE.js +94 -0
- package/dist/{Main-D2Wf__wM.js → Main-Dn1TfDRj.js} +1987 -1979
- package/dist/PermissionSetList-Ds69m9UU.js +392 -0
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CCKVpAwv.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bk6ub3Dv.js} +1122 -1122
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-D-14ca2J.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-BHxCP_uW.js} +1 -1
- package/dist/ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js +42 -0
- package/dist/{RoleList-tSC8RJHe.js → RoleList-v8McRCnz.js} +231 -221
- package/dist/SelectFilter-ATOm0hdn.js +269 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +16 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js → TableEmptyState.vue_vue_type_script_setup_true_lang-Ci_MVqGK.js} +54 -20
- package/dist/{TeamMemberList-Bz-kDJ0e.js → TeamMemberList-BYQnNIhT.js} +137 -131
- package/dist/{TimesheetList-BFVhmcRt.js → TimesheetList-C1OWa6kf.js} +140 -134
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_d7ed31d7_lang-CtHuL5tW.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-CLu9gzzi.js} +2 -2
- package/dist/{app-DRnSocX8.js → app-CJouCBgi.js} +792 -475
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-B8xOAypU.js → dayjs.min-DUugkgDM.js} +1 -1
- package/dist/{employee-UrXqUaik.js → employee-D5rEVmge.js} +3 -3
- package/dist/{iteration-LEYoQKiI.js → iteration-QRRNYlps.js} +1 -1
- package/dist/{lodash-Bq6_eZZ0.js → lodash-BlZhpHhM.js} +1 -1
- package/dist/{rule-CJC6Cq6S.js → rule-Dy7eMChN.js} +116 -110
- package/dist/src/api/audit-log/index.d.ts +23 -0
- package/dist/src/components/button/ResponsiveFabButton.vue.d.ts +7 -1
- package/dist/src/components/form/SelectFilter.vue.d.ts +3 -0
- package/dist/src/components/table/EmptyDataTemplate/index.vue.d.ts +4 -1
- package/dist/src/components/table/TableEmptyState.vue.d.ts +31 -0
- package/dist/src/stores/permission-set.d.ts +12 -3
- package/dist/src/stores/team.d.ts +4 -1
- package/dist/src/types/audit-log.d.ts +1 -1
- package/dist/src/views/audit-log/event-line.d.ts +13 -0
- package/dist/src/views/audit-log/locales/index.d.ts +320 -16
- package/dist/src/views/audit-log/snapshot-diff.d.ts +11 -0
- package/dist/src/views/hr/employee/EmployeeList.vue.d.ts +1 -0
- package/dist/src/views/hr/locales/index.d.ts +4 -0
- package/dist/src/views/team/locales/index.d.ts +4 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-BGsfYWAR.js → useAppStore-CtMoad7V.js} +1 -1
- package/dist/useDebounce-B8ZPVS5C.js +15 -0
- package/dist/{useLoading-BUM5R2qV.js → useLoading-CNqlchYO.js} +1 -1
- package/dist/{useReportPermissions-nlQ_BBL2.js → useReportPermissions-C5wGC9bf.js} +3 -3
- package/package.json +1 -1
- package/dist/AuditLogList-C1bGND8z.js +0 -1037
- package/dist/EmployeeList-DqQF9xEx.js +0 -851
- package/dist/Main-DcKVuIjB.js +0 -90
- package/dist/PermissionSetList-CQpTa0eY.js +0 -384
- package/dist/ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js +0 -38
- package/dist/SelectFilter-DUj7GBtT.js +0 -251
- package/dist/useDebounce-CWb5QR9G.js +0 -28
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
1
|
+
import { getCurrentInstance as Xt, inject as as, ref as dt, shallowRef as ls, computed as z, watch as wt, onMounted as jn, onUnmounted as os, defineComponent as we, h as Un, createVNode as ie, Text as is, Fragment as Oe, resolveComponent as Me, createBlock as Ae, openBlock as J, withCtx as de, createElementVNode as se, createElementBlock as ae, toDisplayString as ke, unref as X, renderList as ye, toRef as tn, normalizeStyle as Je, renderSlot as Re, createCommentVNode as Le, createTextVNode as cs, useSlots as us, normalizeClass as at, createSlots as $e, mergeModels as nn, useModel as ds } from "vue";
|
|
2
2
|
import { useI18n as qe, useCoreStore as ms } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialog as fs, useBreakpoints as _s } from "@feedmepos/ui-library";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { p as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { u as
|
|
8
|
-
import { d as gt, g as Ns, b as
|
|
9
|
-
import { u as
|
|
10
|
-
function
|
|
5
|
+
import { p as Vn, i as ps, P as bs, x as Ot, l as vs, k as hs, N as Rt } from "./rule-Dy7eMChN.js";
|
|
6
|
+
import { _ as Ht, u as gs, a as sn } from "./ConditionFormHost.vue_vue_type_script_setup_true_lang-BYHKFwRm.js";
|
|
7
|
+
import { u as Is, v as ys, S as Ft, d as fe, A as Pt, k as rn, b as Es, P as Lt } from "./app-CJouCBgi.js";
|
|
8
|
+
import { d as gt, g as Ns, b as ks } from "./iteration-QRRNYlps.js";
|
|
9
|
+
import { u as Ts } from "./useAppStore-CtMoad7V.js";
|
|
10
|
+
function xn(e, t) {
|
|
11
11
|
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function Cs(e) {
|
|
14
14
|
return Array.isArray(e) ? e[0] : e;
|
|
15
15
|
}
|
|
16
16
|
function Os(e, t) {
|
|
17
|
-
const n = t.find((o) =>
|
|
17
|
+
const n = t.find((o) => xn(o.subject, e));
|
|
18
18
|
if (!(n != null && n.category) || n.isCategoryCover) return;
|
|
19
19
|
const s = t.find((o) => o.category === n.category && o.isCategoryCover);
|
|
20
20
|
if (s)
|
|
21
|
-
return
|
|
21
|
+
return Cs(s.subject);
|
|
22
22
|
}
|
|
23
23
|
function an(e, t) {
|
|
24
|
-
const n = t.find((s) =>
|
|
24
|
+
const n = t.find((s) => xn(s.subject, e));
|
|
25
25
|
return !!(n != null && n.isCategoryCover);
|
|
26
26
|
}
|
|
27
27
|
/*!
|
|
@@ -29,25 +29,25 @@ function an(e, t) {
|
|
|
29
29
|
* (c) 2024 kazuya kawaguchi
|
|
30
30
|
* Released under the MIT License.
|
|
31
31
|
*/
|
|
32
|
-
const ln = typeof window < "u",
|
|
32
|
+
const ln = typeof window < "u", Ze = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Rs = (e, t, n) => Ls({ l: e, k: t, s: n }), Ls = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ve = (e) => typeof e == "number" && isFinite(e), Ss = (e) => $t(e) === "[object Date]", yt = (e) => $t(e) === "[object RegExp]", Nt = (e) => q(e) && Object.keys(e).length === 0, he = Object.assign, As = Object.create, re = (e = null) => As(e);
|
|
33
33
|
let on;
|
|
34
|
-
const
|
|
34
|
+
const Ye = () => on || (on = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : re());
|
|
35
35
|
function cn(e) {
|
|
36
36
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
37
37
|
}
|
|
38
38
|
const Ds = Object.prototype.hasOwnProperty;
|
|
39
|
-
function
|
|
39
|
+
function Se(e, t) {
|
|
40
40
|
return Ds.call(e, t);
|
|
41
41
|
}
|
|
42
|
-
const _e = Array.isArray, le = (e) => typeof e == "function",
|
|
43
|
-
function
|
|
42
|
+
const _e = Array.isArray, le = (e) => typeof e == "function", W = (e) => typeof e == "string", ue = (e) => typeof e == "boolean", ee = (e) => e !== null && typeof e == "object", Ms = (e) => ee(e) && le(e.then) && le(e.catch), Gn = Object.prototype.toString, $t = (e) => Gn.call(e), q = (e) => $t(e) === "[object Object]", ws = (e) => e == null ? "" : _e(e) || q(e) && e.toString === Gn ? JSON.stringify(e, null, 2) : String(e);
|
|
43
|
+
function Jt(e, t = "") {
|
|
44
44
|
return e.reduce((n, s, o) => o === 0 ? n + s : n + t + s, "");
|
|
45
45
|
}
|
|
46
46
|
function Fs(e, t) {
|
|
47
47
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
48
48
|
}
|
|
49
49
|
const mt = (e) => !ee(e) || _e(e);
|
|
50
|
-
function
|
|
50
|
+
function It(e, t) {
|
|
51
51
|
if (mt(e) || mt(t))
|
|
52
52
|
throw new Error("Invalid value");
|
|
53
53
|
const n = [{ src: e, des: t }];
|
|
@@ -82,23 +82,23 @@ const ne = {
|
|
|
82
82
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
83
83
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
84
84
|
}, js = 17;
|
|
85
|
-
function
|
|
85
|
+
function kt(e, t, n = {}) {
|
|
86
86
|
const { domain: s, messages: o, args: l } = n, c = e, m = new SyntaxError(String(c));
|
|
87
87
|
return m.code = e, t && (m.location = t), m.domain = s, m;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function Us(e) {
|
|
90
90
|
throw e;
|
|
91
91
|
}
|
|
92
|
-
const Fe = " ",
|
|
93
|
-
`,
|
|
94
|
-
function
|
|
92
|
+
const Fe = " ", Vs = "\r", Ie = `
|
|
93
|
+
`, xs = "\u2028", Gs = "\u2029";
|
|
94
|
+
function Ws(e) {
|
|
95
95
|
const t = e;
|
|
96
96
|
let n = 0, s = 1, o = 1, l = 0;
|
|
97
|
-
const c = (b) => t[b] ===
|
|
97
|
+
const c = (b) => t[b] === Vs && t[b + 1] === Ie, m = (b) => t[b] === Ie, v = (b) => t[b] === Gs, I = (b) => t[b] === xs, O = (b) => c(b) || m(b) || v(b) || I(b), L = () => n, R = () => s, U = () => o, B = () => l, M = (b) => c(b) || v(b) || I(b) ? Ie : t[b], P = () => M(n), u = () => M(n + l);
|
|
98
98
|
function p() {
|
|
99
99
|
return l = 0, O(n) && (s++, o = 0), c(n) && n++, n++, o++, t[n];
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function S() {
|
|
102
102
|
return c(n + l) && l++, l++, t[n + l];
|
|
103
103
|
}
|
|
104
104
|
function i() {
|
|
@@ -107,30 +107,30 @@ function Gs(e) {
|
|
|
107
107
|
function g(b = 0) {
|
|
108
108
|
l = b;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function y() {
|
|
111
111
|
const b = n + l;
|
|
112
112
|
for (; b !== n; )
|
|
113
113
|
p();
|
|
114
114
|
l = 0;
|
|
115
115
|
}
|
|
116
116
|
return {
|
|
117
|
-
index:
|
|
118
|
-
line:
|
|
119
|
-
column:
|
|
120
|
-
peekOffset:
|
|
117
|
+
index: L,
|
|
118
|
+
line: R,
|
|
119
|
+
column: U,
|
|
120
|
+
peekOffset: B,
|
|
121
121
|
charAt: M,
|
|
122
122
|
currentChar: P,
|
|
123
123
|
currentPeek: u,
|
|
124
124
|
next: p,
|
|
125
|
-
peek:
|
|
125
|
+
peek: S,
|
|
126
126
|
reset: i,
|
|
127
127
|
resetPeek: g,
|
|
128
|
-
skipToPeek:
|
|
128
|
+
skipToPeek: y
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
|
-
const
|
|
132
|
-
function
|
|
133
|
-
const n = t.location !== !1, s =
|
|
131
|
+
const Ve = void 0, Ys = ".", un = "'", Zs = "tokenizer";
|
|
132
|
+
function Bs(e, t = {}) {
|
|
133
|
+
const n = t.location !== !1, s = Ws(e), o = () => s.index(), l = () => Ps(s.line(), s.column(), s.index()), c = l(), m = o(), v = {
|
|
134
134
|
currentType: 13,
|
|
135
135
|
offset: m,
|
|
136
136
|
startLoc: c,
|
|
@@ -142,33 +142,33 @@ function Zs(e, t = {}) {
|
|
|
142
142
|
braceNest: 0,
|
|
143
143
|
inLinked: !1,
|
|
144
144
|
text: ""
|
|
145
|
-
},
|
|
146
|
-
function
|
|
147
|
-
const D =
|
|
145
|
+
}, I = () => v, { onError: O } = t;
|
|
146
|
+
function L(r, a, d, ...F) {
|
|
147
|
+
const D = I();
|
|
148
148
|
if (a.column += d, a.offset += d, O) {
|
|
149
|
-
const
|
|
150
|
-
domain:
|
|
149
|
+
const x = n ? jt(D.startLoc, a) : null, _ = kt(r, x, {
|
|
150
|
+
domain: Zs,
|
|
151
151
|
args: F
|
|
152
152
|
});
|
|
153
153
|
O(_);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function R(r, a, d) {
|
|
157
157
|
r.endLoc = l(), r.currentType = a;
|
|
158
158
|
const F = { type: a };
|
|
159
159
|
return n && (F.loc = jt(r.startLoc, r.endLoc)), d != null && (F.value = d), F;
|
|
160
160
|
}
|
|
161
|
-
const
|
|
161
|
+
const U = (r) => R(
|
|
162
162
|
r,
|
|
163
163
|
13
|
|
164
164
|
/* TokenTypes.EOF */
|
|
165
165
|
);
|
|
166
|
-
function
|
|
167
|
-
return r.currentChar() === a ? (r.next(), a) : (
|
|
166
|
+
function B(r, a) {
|
|
167
|
+
return r.currentChar() === a ? (r.next(), a) : (L(ne.EXPECTED_TOKEN, l(), 0, a), "");
|
|
168
168
|
}
|
|
169
169
|
function M(r) {
|
|
170
170
|
let a = "";
|
|
171
|
-
for (; r.currentPeek() === Fe || r.currentPeek() ===
|
|
171
|
+
for (; r.currentPeek() === Fe || r.currentPeek() === Ie; )
|
|
172
172
|
a += r.currentPeek(), r.peek();
|
|
173
173
|
return a;
|
|
174
174
|
}
|
|
@@ -177,7 +177,7 @@ function Zs(e, t = {}) {
|
|
|
177
177
|
return r.skipToPeek(), a;
|
|
178
178
|
}
|
|
179
179
|
function u(r) {
|
|
180
|
-
if (r ===
|
|
180
|
+
if (r === Ve)
|
|
181
181
|
return !1;
|
|
182
182
|
const a = r.charCodeAt(0);
|
|
183
183
|
return a >= 97 && a <= 122 || // a-z
|
|
@@ -185,12 +185,12 @@ function Zs(e, t = {}) {
|
|
|
185
185
|
a === 95;
|
|
186
186
|
}
|
|
187
187
|
function p(r) {
|
|
188
|
-
if (r ===
|
|
188
|
+
if (r === Ve)
|
|
189
189
|
return !1;
|
|
190
190
|
const a = r.charCodeAt(0);
|
|
191
191
|
return a >= 48 && a <= 57;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function S(r, a) {
|
|
194
194
|
const { currentType: d } = a;
|
|
195
195
|
if (d !== 2)
|
|
196
196
|
return !1;
|
|
@@ -214,7 +214,7 @@ function Zs(e, t = {}) {
|
|
|
214
214
|
const F = r.currentPeek() === un;
|
|
215
215
|
return r.resetPeek(), F;
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function y(r, a) {
|
|
218
218
|
const { currentType: d } = a;
|
|
219
219
|
if (d !== 7)
|
|
220
220
|
return !1;
|
|
@@ -243,28 +243,28 @@ function Zs(e, t = {}) {
|
|
|
243
243
|
if (d !== 9)
|
|
244
244
|
return !1;
|
|
245
245
|
const F = () => {
|
|
246
|
-
const
|
|
247
|
-
return
|
|
246
|
+
const x = r.currentPeek();
|
|
247
|
+
return x === "{" ? u(r.peek()) : x === "@" || x === "|" || x === ":" || x === "." || x === Fe || !x ? !1 : x === Ie ? (r.peek(), F()) : E(r, !1);
|
|
248
248
|
}, D = F();
|
|
249
249
|
return r.resetPeek(), D;
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function T(r) {
|
|
252
252
|
M(r);
|
|
253
253
|
const a = r.currentPeek() === "|";
|
|
254
254
|
return r.resetPeek(), a;
|
|
255
255
|
}
|
|
256
|
-
function
|
|
257
|
-
const d = (D = !1,
|
|
256
|
+
function E(r, a = !0) {
|
|
257
|
+
const d = (D = !1, x = "") => {
|
|
258
258
|
const _ = r.currentPeek();
|
|
259
|
-
return _ === "{" || _ === "@" || !_ ? D : _ === "|" ? !(
|
|
259
|
+
return _ === "{" || _ === "@" || !_ ? D : _ === "|" ? !(x === Fe || x === Ie) : _ === Fe ? (r.peek(), d(!0, Fe)) : _ === Ie ? (r.peek(), d(!0, Ie)) : !0;
|
|
260
260
|
}, F = d();
|
|
261
261
|
return a && r.resetPeek(), F;
|
|
262
262
|
}
|
|
263
263
|
function h(r, a) {
|
|
264
264
|
const d = r.currentChar();
|
|
265
|
-
return d ===
|
|
265
|
+
return d === Ve ? Ve : a(d) ? (r.next(), d) : null;
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function Z(r) {
|
|
268
268
|
const a = r.charCodeAt(0);
|
|
269
269
|
return a >= 97 && a <= 122 || // a-z
|
|
270
270
|
a >= 65 && a <= 90 || // A-Z
|
|
@@ -272,10 +272,10 @@ function Zs(e, t = {}) {
|
|
|
272
272
|
a === 95 || // _
|
|
273
273
|
a === 36;
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
return h(r,
|
|
275
|
+
function H(r) {
|
|
276
|
+
return h(r, Z);
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function Y(r) {
|
|
279
279
|
const a = r.charCodeAt(0);
|
|
280
280
|
return a >= 97 && a <= 122 || // a-z
|
|
281
281
|
a >= 65 && a <= 90 || // A-Z
|
|
@@ -284,14 +284,14 @@ function Zs(e, t = {}) {
|
|
|
284
284
|
a === 36 || // $
|
|
285
285
|
a === 45;
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
return h(r,
|
|
287
|
+
function V(r) {
|
|
288
|
+
return h(r, Y);
|
|
289
289
|
}
|
|
290
290
|
function j(r) {
|
|
291
291
|
const a = r.charCodeAt(0);
|
|
292
292
|
return a >= 48 && a <= 57;
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function $(r) {
|
|
295
295
|
return h(r, j);
|
|
296
296
|
}
|
|
297
297
|
function te(r) {
|
|
@@ -305,7 +305,7 @@ function Zs(e, t = {}) {
|
|
|
305
305
|
}
|
|
306
306
|
function pe(r) {
|
|
307
307
|
let a = "", d = "";
|
|
308
|
-
for (; a =
|
|
308
|
+
for (; a = $(r); )
|
|
309
309
|
d += a;
|
|
310
310
|
return d;
|
|
311
311
|
}
|
|
@@ -315,11 +315,11 @@ function Zs(e, t = {}) {
|
|
|
315
315
|
const d = r.currentChar();
|
|
316
316
|
if (d === "{" || d === "}" || d === "@" || d === "|" || !d)
|
|
317
317
|
break;
|
|
318
|
-
if (d === Fe || d ===
|
|
319
|
-
if (
|
|
318
|
+
if (d === Fe || d === Ie)
|
|
319
|
+
if (E(r))
|
|
320
320
|
a += d, r.next();
|
|
321
321
|
else {
|
|
322
|
-
if (
|
|
322
|
+
if (T(r))
|
|
323
323
|
break;
|
|
324
324
|
a += d, r.next();
|
|
325
325
|
}
|
|
@@ -331,25 +331,25 @@ function Zs(e, t = {}) {
|
|
|
331
331
|
function be(r) {
|
|
332
332
|
P(r);
|
|
333
333
|
let a = "", d = "";
|
|
334
|
-
for (; a =
|
|
334
|
+
for (; a = V(r); )
|
|
335
335
|
d += a;
|
|
336
|
-
return r.currentChar() ===
|
|
336
|
+
return r.currentChar() === Ve && L(ne.UNTERMINATED_CLOSING_BRACE, l(), 0), d;
|
|
337
337
|
}
|
|
338
338
|
function ge(r) {
|
|
339
339
|
P(r);
|
|
340
340
|
let a = "";
|
|
341
|
-
return r.currentChar() === "-" ? (r.next(), a += `-${pe(r)}`) : a += pe(r), r.currentChar() ===
|
|
341
|
+
return r.currentChar() === "-" ? (r.next(), a += `-${pe(r)}`) : a += pe(r), r.currentChar() === Ve && L(ne.UNTERMINATED_CLOSING_BRACE, l(), 0), a;
|
|
342
342
|
}
|
|
343
343
|
function ce(r) {
|
|
344
|
-
return r !== un && r !==
|
|
344
|
+
return r !== un && r !== Ie;
|
|
345
345
|
}
|
|
346
346
|
function K(r) {
|
|
347
|
-
P(r),
|
|
347
|
+
P(r), B(r, "'");
|
|
348
348
|
let a = "", d = "";
|
|
349
349
|
for (; a = h(r, ce); )
|
|
350
350
|
a === "\\" ? d += oe(r) : d += a;
|
|
351
351
|
const F = r.currentChar();
|
|
352
|
-
return F ===
|
|
352
|
+
return F === Ie || F === Ve ? (L(ne.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, l(), 0), F === Ie && (r.next(), B(r, "'")), d) : (B(r, "'"), d);
|
|
353
353
|
}
|
|
354
354
|
function oe(r) {
|
|
355
355
|
const a = r.currentChar();
|
|
@@ -358,28 +358,28 @@ function Zs(e, t = {}) {
|
|
|
358
358
|
case "'":
|
|
359
359
|
return r.next(), `\\${a}`;
|
|
360
360
|
case "u":
|
|
361
|
-
return
|
|
361
|
+
return We(r, a, 4);
|
|
362
362
|
case "U":
|
|
363
|
-
return
|
|
363
|
+
return We(r, a, 6);
|
|
364
364
|
default:
|
|
365
|
-
return
|
|
365
|
+
return L(ne.UNKNOWN_ESCAPE_SEQUENCE, l(), 0, a), "";
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
|
|
368
|
+
function We(r, a, d) {
|
|
369
|
+
B(r, a);
|
|
370
370
|
let F = "";
|
|
371
371
|
for (let D = 0; D < d; D++) {
|
|
372
|
-
const
|
|
373
|
-
if (!
|
|
374
|
-
|
|
372
|
+
const x = me(r);
|
|
373
|
+
if (!x) {
|
|
374
|
+
L(ne.INVALID_UNICODE_ESCAPE_SEQUENCE, l(), 0, `\\${a}${F}${r.currentChar()}`);
|
|
375
375
|
break;
|
|
376
376
|
}
|
|
377
|
-
F +=
|
|
377
|
+
F += x;
|
|
378
378
|
}
|
|
379
379
|
return `\\${a}${F}`;
|
|
380
380
|
}
|
|
381
381
|
function et(r) {
|
|
382
|
-
return r !== "{" && r !== "}" && r !== Fe && r !==
|
|
382
|
+
return r !== "{" && r !== "}" && r !== Fe && r !== Ie;
|
|
383
383
|
}
|
|
384
384
|
function tt(r) {
|
|
385
385
|
P(r);
|
|
@@ -390,7 +390,7 @@ function Zs(e, t = {}) {
|
|
|
390
390
|
}
|
|
391
391
|
function nt(r) {
|
|
392
392
|
let a = "", d = "";
|
|
393
|
-
for (; a =
|
|
393
|
+
for (; a = H(r); )
|
|
394
394
|
d += a;
|
|
395
395
|
return d;
|
|
396
396
|
}
|
|
@@ -401,81 +401,81 @@ function Zs(e, t = {}) {
|
|
|
401
401
|
};
|
|
402
402
|
return a("");
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function Ce(r) {
|
|
405
405
|
P(r);
|
|
406
|
-
const a =
|
|
406
|
+
const a = B(
|
|
407
407
|
r,
|
|
408
408
|
"|"
|
|
409
409
|
/* TokenChars.Pipe */
|
|
410
410
|
);
|
|
411
411
|
return P(r), a;
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function Ue(r, a) {
|
|
414
414
|
let d = null;
|
|
415
415
|
switch (r.currentChar()) {
|
|
416
416
|
case "{":
|
|
417
|
-
return a.braceNest >= 1 &&
|
|
417
|
+
return a.braceNest >= 1 && L(ne.NOT_ALLOW_NEST_PLACEHOLDER, l(), 0), r.next(), d = R(
|
|
418
418
|
a,
|
|
419
419
|
2,
|
|
420
420
|
"{"
|
|
421
421
|
/* TokenChars.BraceLeft */
|
|
422
422
|
), P(r), a.braceNest++, d;
|
|
423
423
|
case "}":
|
|
424
|
-
return a.braceNest > 0 && a.currentType === 2 &&
|
|
424
|
+
return a.braceNest > 0 && a.currentType === 2 && L(ne.EMPTY_PLACEHOLDER, l(), 0), r.next(), d = R(
|
|
425
425
|
a,
|
|
426
426
|
3,
|
|
427
427
|
"}"
|
|
428
428
|
/* TokenChars.BraceRight */
|
|
429
429
|
), a.braceNest--, a.braceNest > 0 && P(r), a.inLinked && a.braceNest === 0 && (a.inLinked = !1), d;
|
|
430
430
|
case "@":
|
|
431
|
-
return a.braceNest > 0 &&
|
|
431
|
+
return a.braceNest > 0 && L(ne.UNTERMINATED_CLOSING_BRACE, l(), 0), d = k(r, a) || U(a), a.braceNest = 0, d;
|
|
432
432
|
default: {
|
|
433
|
-
let D = !0,
|
|
434
|
-
if (
|
|
435
|
-
return a.braceNest > 0 &&
|
|
433
|
+
let D = !0, x = !0, _ = !0;
|
|
434
|
+
if (T(r))
|
|
435
|
+
return a.braceNest > 0 && L(ne.UNTERMINATED_CLOSING_BRACE, l(), 0), d = R(a, 1, Ce(r)), a.braceNest = 0, a.inLinked = !1, d;
|
|
436
436
|
if (a.braceNest > 0 && (a.currentType === 4 || a.currentType === 5 || a.currentType === 6))
|
|
437
|
-
return
|
|
438
|
-
if (D =
|
|
439
|
-
return d =
|
|
440
|
-
if (
|
|
441
|
-
return d =
|
|
437
|
+
return L(ne.UNTERMINATED_CLOSING_BRACE, l(), 0), a.braceNest = 0, N(r, a);
|
|
438
|
+
if (D = S(r, a))
|
|
439
|
+
return d = R(a, 4, be(r)), P(r), d;
|
|
440
|
+
if (x = i(r, a))
|
|
441
|
+
return d = R(a, 5, ge(r)), P(r), d;
|
|
442
442
|
if (_ = g(r, a))
|
|
443
|
-
return d =
|
|
444
|
-
if (!D && !
|
|
445
|
-
return d =
|
|
443
|
+
return d = R(a, 6, K(r)), P(r), d;
|
|
444
|
+
if (!D && !x && !_)
|
|
445
|
+
return d = R(a, 12, tt(r)), L(ne.INVALID_TOKEN_IN_PLACEHOLDER, l(), 0, d.value), P(r), d;
|
|
446
446
|
break;
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
return d;
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function k(r, a) {
|
|
452
452
|
const { currentType: d } = a;
|
|
453
453
|
let F = null;
|
|
454
454
|
const D = r.currentChar();
|
|
455
|
-
switch ((d === 7 || d === 8 || d === 11 || d === 9) && (D ===
|
|
455
|
+
switch ((d === 7 || d === 8 || d === 11 || d === 9) && (D === Ie || D === Fe) && L(ne.INVALID_LINKED_FORMAT, l(), 0), D) {
|
|
456
456
|
case "@":
|
|
457
|
-
return r.next(), F =
|
|
457
|
+
return r.next(), F = R(
|
|
458
458
|
a,
|
|
459
459
|
7,
|
|
460
460
|
"@"
|
|
461
461
|
/* TokenChars.LinkedAlias */
|
|
462
462
|
), a.inLinked = !0, F;
|
|
463
463
|
case ".":
|
|
464
|
-
return P(r), r.next(),
|
|
464
|
+
return P(r), r.next(), R(
|
|
465
465
|
a,
|
|
466
466
|
8,
|
|
467
467
|
"."
|
|
468
468
|
/* TokenChars.LinkedDot */
|
|
469
469
|
);
|
|
470
470
|
case ":":
|
|
471
|
-
return P(r), r.next(),
|
|
471
|
+
return P(r), r.next(), R(
|
|
472
472
|
a,
|
|
473
473
|
9,
|
|
474
474
|
":"
|
|
475
475
|
/* TokenChars.LinkedDelimiter */
|
|
476
476
|
);
|
|
477
477
|
default:
|
|
478
|
-
return
|
|
478
|
+
return T(r) ? (F = R(a, 1, Ce(r)), a.braceNest = 0, a.inLinked = !1, F) : y(r, a) || w(r, a) ? (P(r), k(r, a)) : b(r, a) ? (P(r), R(a, 11, nt(r))) : f(r, a) ? (P(r), D === "{" ? Ue(r, a) || F : R(a, 10, st(r))) : (d === 7 && L(ne.INVALID_LINKED_FORMAT, l(), 0), a.braceNest = 0, a.inLinked = !1, N(r, a));
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
481
|
function N(r, a) {
|
|
@@ -484,26 +484,26 @@ function Zs(e, t = {}) {
|
|
|
484
484
|
/* TokenTypes.EOF */
|
|
485
485
|
};
|
|
486
486
|
if (a.braceNest > 0)
|
|
487
|
-
return
|
|
487
|
+
return Ue(r, a) || U(a);
|
|
488
488
|
if (a.inLinked)
|
|
489
|
-
return
|
|
489
|
+
return k(r, a) || U(a);
|
|
490
490
|
switch (r.currentChar()) {
|
|
491
491
|
case "{":
|
|
492
|
-
return
|
|
492
|
+
return Ue(r, a) || U(a);
|
|
493
493
|
case "}":
|
|
494
|
-
return
|
|
494
|
+
return L(ne.UNBALANCED_CLOSING_BRACE, l(), 0), r.next(), R(
|
|
495
495
|
a,
|
|
496
496
|
3,
|
|
497
497
|
"}"
|
|
498
498
|
/* TokenChars.BraceRight */
|
|
499
499
|
);
|
|
500
500
|
case "@":
|
|
501
|
-
return
|
|
501
|
+
return k(r, a) || U(a);
|
|
502
502
|
default: {
|
|
503
|
-
if (
|
|
504
|
-
return d =
|
|
505
|
-
if (
|
|
506
|
-
return
|
|
503
|
+
if (T(r))
|
|
504
|
+
return d = R(a, 1, Ce(r)), a.braceNest = 0, a.inLinked = !1, d;
|
|
505
|
+
if (E(r))
|
|
506
|
+
return R(a, 0, Ne(r));
|
|
507
507
|
break;
|
|
508
508
|
}
|
|
509
509
|
}
|
|
@@ -511,7 +511,7 @@ function Zs(e, t = {}) {
|
|
|
511
511
|
}
|
|
512
512
|
function A() {
|
|
513
513
|
const { currentType: r, offset: a, startLoc: d, endLoc: F } = v;
|
|
514
|
-
return v.lastType = r, v.lastOffset = a, v.lastStartLoc = d, v.lastEndLoc = F, v.offset = o(), v.startLoc = l(), s.currentChar() ===
|
|
514
|
+
return v.lastType = r, v.lastOffset = a, v.lastStartLoc = d, v.lastEndLoc = F, v.offset = o(), v.startLoc = l(), s.currentChar() === Ve ? R(
|
|
515
515
|
v,
|
|
516
516
|
13
|
|
517
517
|
/* TokenTypes.EOF */
|
|
@@ -521,11 +521,11 @@ function Zs(e, t = {}) {
|
|
|
521
521
|
nextToken: A,
|
|
522
522
|
currentOffset: o,
|
|
523
523
|
currentPosition: l,
|
|
524
|
-
context:
|
|
524
|
+
context: I
|
|
525
525
|
};
|
|
526
526
|
}
|
|
527
|
-
const
|
|
528
|
-
function
|
|
527
|
+
const Xs = "parser", Hs = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
528
|
+
function $s(e, t, n) {
|
|
529
529
|
switch (e) {
|
|
530
530
|
case "\\\\":
|
|
531
531
|
return "\\";
|
|
@@ -537,94 +537,94 @@ function Js(e, t, n) {
|
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function Js(e = {}) {
|
|
541
541
|
const t = e.location !== !1, { onError: n } = e;
|
|
542
|
-
function s(u, p,
|
|
543
|
-
const
|
|
544
|
-
if (
|
|
545
|
-
const b = t ? jt(
|
|
546
|
-
domain:
|
|
542
|
+
function s(u, p, S, i, ...g) {
|
|
543
|
+
const y = u.currentPosition();
|
|
544
|
+
if (y.offset += i, y.column += i, n) {
|
|
545
|
+
const b = t ? jt(S, y) : null, w = kt(p, b, {
|
|
546
|
+
domain: Xs,
|
|
547
547
|
args: g
|
|
548
548
|
});
|
|
549
549
|
n(w);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
|
-
function o(u, p,
|
|
552
|
+
function o(u, p, S) {
|
|
553
553
|
const i = { type: u };
|
|
554
|
-
return t && (i.start = p, i.end = p, i.loc = { start:
|
|
554
|
+
return t && (i.start = p, i.end = p, i.loc = { start: S, end: S }), i;
|
|
555
555
|
}
|
|
556
|
-
function l(u, p,
|
|
557
|
-
t && (u.end = p, u.loc && (u.loc.end =
|
|
556
|
+
function l(u, p, S, i) {
|
|
557
|
+
t && (u.end = p, u.loc && (u.loc.end = S));
|
|
558
558
|
}
|
|
559
559
|
function c(u, p) {
|
|
560
|
-
const
|
|
560
|
+
const S = u.context(), i = o(3, S.offset, S.startLoc);
|
|
561
561
|
return i.value = p, l(i, u.currentOffset(), u.currentPosition()), i;
|
|
562
562
|
}
|
|
563
563
|
function m(u, p) {
|
|
564
|
-
const
|
|
565
|
-
return
|
|
564
|
+
const S = u.context(), { lastOffset: i, lastStartLoc: g } = S, y = o(5, i, g);
|
|
565
|
+
return y.index = parseInt(p, 10), u.nextToken(), l(y, u.currentOffset(), u.currentPosition()), y;
|
|
566
566
|
}
|
|
567
567
|
function v(u, p) {
|
|
568
|
-
const
|
|
569
|
-
return
|
|
568
|
+
const S = u.context(), { lastOffset: i, lastStartLoc: g } = S, y = o(4, i, g);
|
|
569
|
+
return y.key = p, u.nextToken(), l(y, u.currentOffset(), u.currentPosition()), y;
|
|
570
570
|
}
|
|
571
|
-
function
|
|
572
|
-
const
|
|
573
|
-
return
|
|
571
|
+
function I(u, p) {
|
|
572
|
+
const S = u.context(), { lastOffset: i, lastStartLoc: g } = S, y = o(9, i, g);
|
|
573
|
+
return y.value = p.replace(Hs, $s), u.nextToken(), l(y, u.currentOffset(), u.currentPosition()), y;
|
|
574
574
|
}
|
|
575
575
|
function O(u) {
|
|
576
|
-
const p = u.nextToken(),
|
|
577
|
-
return p.type !== 11 ? (s(u, ne.UNEXPECTED_EMPTY_LINKED_MODIFIER,
|
|
576
|
+
const p = u.nextToken(), S = u.context(), { lastOffset: i, lastStartLoc: g } = S, y = o(8, i, g);
|
|
577
|
+
return p.type !== 11 ? (s(u, ne.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), y.value = "", l(y, i, g), {
|
|
578
578
|
nextConsumeToken: p,
|
|
579
|
-
node:
|
|
580
|
-
}) : (p.value == null && s(u, ne.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
581
|
-
node:
|
|
579
|
+
node: y
|
|
580
|
+
}) : (p.value == null && s(u, ne.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, De(p)), y.value = p.value || "", l(y, u.currentOffset(), u.currentPosition()), {
|
|
581
|
+
node: y
|
|
582
582
|
});
|
|
583
583
|
}
|
|
584
|
-
function
|
|
585
|
-
const
|
|
584
|
+
function L(u, p) {
|
|
585
|
+
const S = u.context(), i = o(7, S.offset, S.startLoc);
|
|
586
586
|
return i.value = p, l(i, u.currentOffset(), u.currentPosition()), i;
|
|
587
587
|
}
|
|
588
|
-
function
|
|
589
|
-
const p = u.context(),
|
|
588
|
+
function R(u) {
|
|
589
|
+
const p = u.context(), S = o(6, p.offset, p.startLoc);
|
|
590
590
|
let i = u.nextToken();
|
|
591
591
|
if (i.type === 8) {
|
|
592
592
|
const g = O(u);
|
|
593
|
-
|
|
593
|
+
S.modifier = g.node, i = g.nextConsumeToken || u.nextToken();
|
|
594
594
|
}
|
|
595
595
|
switch (i.type !== 9 && s(u, ne.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, De(i)), i = u.nextToken(), i.type === 2 && (i = u.nextToken()), i.type) {
|
|
596
596
|
case 10:
|
|
597
|
-
i.value == null && s(u, ne.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, De(i)),
|
|
597
|
+
i.value == null && s(u, ne.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, De(i)), S.key = L(u, i.value || "");
|
|
598
598
|
break;
|
|
599
599
|
case 4:
|
|
600
|
-
i.value == null && s(u, ne.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, De(i)),
|
|
600
|
+
i.value == null && s(u, ne.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, De(i)), S.key = v(u, i.value || "");
|
|
601
601
|
break;
|
|
602
602
|
case 5:
|
|
603
|
-
i.value == null && s(u, ne.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, De(i)),
|
|
603
|
+
i.value == null && s(u, ne.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, De(i)), S.key = m(u, i.value || "");
|
|
604
604
|
break;
|
|
605
605
|
case 6:
|
|
606
|
-
i.value == null && s(u, ne.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, De(i)),
|
|
606
|
+
i.value == null && s(u, ne.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, De(i)), S.key = I(u, i.value || "");
|
|
607
607
|
break;
|
|
608
608
|
default: {
|
|
609
609
|
s(u, ne.UNEXPECTED_EMPTY_LINKED_KEY, p.lastStartLoc, 0);
|
|
610
|
-
const g = u.context(),
|
|
611
|
-
return
|
|
610
|
+
const g = u.context(), y = o(7, g.offset, g.startLoc);
|
|
611
|
+
return y.value = "", l(y, g.offset, g.startLoc), S.key = y, l(S, g.offset, g.startLoc), {
|
|
612
612
|
nextConsumeToken: i,
|
|
613
|
-
node:
|
|
613
|
+
node: S
|
|
614
614
|
};
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
return l(
|
|
618
|
-
node:
|
|
617
|
+
return l(S, u.currentOffset(), u.currentPosition()), {
|
|
618
|
+
node: S
|
|
619
619
|
};
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
const p = u.context(),
|
|
621
|
+
function U(u) {
|
|
622
|
+
const p = u.context(), S = p.currentType === 1 ? u.currentOffset() : p.offset, i = p.currentType === 1 ? p.endLoc : p.startLoc, g = o(2, S, i);
|
|
623
623
|
g.items = [];
|
|
624
|
-
let
|
|
624
|
+
let y = null;
|
|
625
625
|
do {
|
|
626
|
-
const f =
|
|
627
|
-
switch (
|
|
626
|
+
const f = y || u.nextToken();
|
|
627
|
+
switch (y = null, f.type) {
|
|
628
628
|
case 0:
|
|
629
629
|
f.value == null && s(u, ne.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, De(f)), g.items.push(c(u, f.value || ""));
|
|
630
630
|
break;
|
|
@@ -635,11 +635,11 @@ function $s(e = {}) {
|
|
|
635
635
|
f.value == null && s(u, ne.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, De(f)), g.items.push(v(u, f.value || ""));
|
|
636
636
|
break;
|
|
637
637
|
case 6:
|
|
638
|
-
f.value == null && s(u, ne.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, De(f)), g.items.push(
|
|
638
|
+
f.value == null && s(u, ne.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, De(f)), g.items.push(I(u, f.value || ""));
|
|
639
639
|
break;
|
|
640
640
|
case 7: {
|
|
641
|
-
const
|
|
642
|
-
g.items.push(
|
|
641
|
+
const T = R(u);
|
|
642
|
+
g.items.push(T.node), y = T.nextConsumeToken || null;
|
|
643
643
|
break;
|
|
644
644
|
}
|
|
645
645
|
}
|
|
@@ -647,24 +647,24 @@ function $s(e = {}) {
|
|
|
647
647
|
const b = p.currentType === 1 ? p.lastOffset : u.currentOffset(), w = p.currentType === 1 ? p.lastEndLoc : u.currentPosition();
|
|
648
648
|
return l(g, b, w), g;
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function B(u, p, S, i) {
|
|
651
651
|
const g = u.context();
|
|
652
|
-
let
|
|
653
|
-
const b = o(1, p,
|
|
652
|
+
let y = i.items.length === 0;
|
|
653
|
+
const b = o(1, p, S);
|
|
654
654
|
b.cases = [], b.cases.push(i);
|
|
655
655
|
do {
|
|
656
|
-
const w =
|
|
657
|
-
|
|
656
|
+
const w = U(u);
|
|
657
|
+
y || (y = w.items.length === 0), b.cases.push(w);
|
|
658
658
|
} while (g.currentType !== 13);
|
|
659
|
-
return
|
|
659
|
+
return y && s(u, ne.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), l(b, u.currentOffset(), u.currentPosition()), b;
|
|
660
660
|
}
|
|
661
661
|
function M(u) {
|
|
662
|
-
const p = u.context(), { offset:
|
|
663
|
-
return p.currentType === 13 ? g :
|
|
662
|
+
const p = u.context(), { offset: S, startLoc: i } = p, g = U(u);
|
|
663
|
+
return p.currentType === 13 ? g : B(u, S, i, g);
|
|
664
664
|
}
|
|
665
665
|
function P(u) {
|
|
666
|
-
const p =
|
|
667
|
-
return t && i.loc && (i.loc.source = u), i.body = M(p), e.onCacheKey && (i.cacheKey = e.onCacheKey(u)),
|
|
666
|
+
const p = Bs(u, he({}, e)), S = p.context(), i = o(0, S.offset, S.startLoc);
|
|
667
|
+
return t && i.loc && (i.loc.source = u), i.body = M(p), e.onCacheKey && (i.cacheKey = e.onCacheKey(u)), S.currentType !== 13 && s(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, u[S.offset] || ""), l(i, p.currentOffset(), p.currentPosition()), i;
|
|
668
668
|
}
|
|
669
669
|
return { parse: P };
|
|
670
670
|
}
|
|
@@ -752,7 +752,7 @@ function mn(e) {
|
|
|
752
752
|
t.push(s.value);
|
|
753
753
|
}
|
|
754
754
|
if (t.length === e.items.length) {
|
|
755
|
-
e.static =
|
|
755
|
+
e.static = Jt(t);
|
|
756
756
|
for (let n = 0; n < e.items.length; n++) {
|
|
757
757
|
const s = e.items[n];
|
|
758
758
|
(s.type === 3 || s.type === 9) && delete s.value;
|
|
@@ -760,24 +760,24 @@ function mn(e) {
|
|
|
760
760
|
}
|
|
761
761
|
}
|
|
762
762
|
}
|
|
763
|
-
function
|
|
763
|
+
function He(e) {
|
|
764
764
|
switch (e.t = e.type, e.type) {
|
|
765
765
|
case 0: {
|
|
766
766
|
const t = e;
|
|
767
|
-
|
|
767
|
+
He(t.body), t.b = t.body, delete t.body;
|
|
768
768
|
break;
|
|
769
769
|
}
|
|
770
770
|
case 1: {
|
|
771
771
|
const t = e, n = t.cases;
|
|
772
772
|
for (let s = 0; s < n.length; s++)
|
|
773
|
-
|
|
773
|
+
He(n[s]);
|
|
774
774
|
t.c = n, delete t.cases;
|
|
775
775
|
break;
|
|
776
776
|
}
|
|
777
777
|
case 2: {
|
|
778
778
|
const t = e, n = t.items;
|
|
779
779
|
for (let s = 0; s < n.length; s++)
|
|
780
|
-
|
|
780
|
+
He(n[s]);
|
|
781
781
|
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
782
782
|
break;
|
|
783
783
|
}
|
|
@@ -791,7 +791,7 @@ function Ye(e) {
|
|
|
791
791
|
}
|
|
792
792
|
case 6: {
|
|
793
793
|
const t = e;
|
|
794
|
-
|
|
794
|
+
He(t.key), t.k = t.key, delete t.key, t.modifier && (He(t.modifier), t.m = t.modifier, delete t.modifier);
|
|
795
795
|
break;
|
|
796
796
|
}
|
|
797
797
|
case 5: {
|
|
@@ -824,27 +824,27 @@ function qs(e, t) {
|
|
|
824
824
|
function v(M, P) {
|
|
825
825
|
c.code += M;
|
|
826
826
|
}
|
|
827
|
-
function
|
|
827
|
+
function I(M, P = !0) {
|
|
828
828
|
const u = P ? s : "";
|
|
829
829
|
v(o ? u + " ".repeat(M) : u);
|
|
830
830
|
}
|
|
831
831
|
function O(M = !0) {
|
|
832
832
|
const P = ++c.indentLevel;
|
|
833
|
-
M &&
|
|
833
|
+
M && I(P);
|
|
834
834
|
}
|
|
835
|
-
function
|
|
835
|
+
function L(M = !0) {
|
|
836
836
|
const P = --c.indentLevel;
|
|
837
|
-
M &&
|
|
837
|
+
M && I(P);
|
|
838
838
|
}
|
|
839
|
-
function
|
|
840
|
-
|
|
839
|
+
function R() {
|
|
840
|
+
I(c.indentLevel);
|
|
841
841
|
}
|
|
842
842
|
return {
|
|
843
843
|
context: m,
|
|
844
844
|
push: v,
|
|
845
845
|
indent: O,
|
|
846
|
-
deindent:
|
|
847
|
-
newline:
|
|
846
|
+
deindent: L,
|
|
847
|
+
newline: R,
|
|
848
848
|
helper: (M) => `_${M}`,
|
|
849
849
|
needIndent: () => c.needIndent
|
|
850
850
|
};
|
|
@@ -931,7 +931,7 @@ function Ke(e, t) {
|
|
|
931
931
|
}
|
|
932
932
|
}
|
|
933
933
|
const rr = (e, t = {}) => {
|
|
934
|
-
const n =
|
|
934
|
+
const n = W(t.mode) ? t.mode : "normal", s = W(t.filename) ? t.filename : "message.intl";
|
|
935
935
|
t.sourceMap;
|
|
936
936
|
const o = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
937
937
|
`, l = t.needIndent ? t.needIndent : n !== "arrow", c = e.helpers || [], m = qs(e, {
|
|
@@ -939,24 +939,24 @@ const rr = (e, t = {}) => {
|
|
|
939
939
|
breakLineCode: o,
|
|
940
940
|
needIndent: l
|
|
941
941
|
});
|
|
942
|
-
m.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), m.indent(l), c.length > 0 && (m.push(`const { ${
|
|
943
|
-
const { code: v, map:
|
|
942
|
+
m.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), m.indent(l), c.length > 0 && (m.push(`const { ${Jt(c.map((O) => `${O}: _${O}`), ", ")} } = ctx`), m.newline()), m.push("return "), Ke(m, e), m.deindent(l), m.push("}"), delete e.helpers;
|
|
943
|
+
const { code: v, map: I } = m.context();
|
|
944
944
|
return {
|
|
945
945
|
ast: e,
|
|
946
946
|
code: v,
|
|
947
|
-
map:
|
|
947
|
+
map: I ? I.toJSON() : void 0
|
|
948
948
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
949
949
|
};
|
|
950
950
|
};
|
|
951
951
|
function ar(e, t = {}) {
|
|
952
|
-
const n = he({}, t), s = !!n.jit, o = !!n.minify, l = n.optimize == null ? !0 : n.optimize, m =
|
|
953
|
-
return s ? (l && Qs(m), o &&
|
|
952
|
+
const n = he({}, t), s = !!n.jit, o = !!n.minify, l = n.optimize == null ? !0 : n.optimize, m = Js(n).parse(e);
|
|
953
|
+
return s ? (l && Qs(m), o && He(m), { ast: m, code: "" }) : (zs(m, n), rr(m, n));
|
|
954
954
|
}
|
|
955
955
|
var lr = { env: { NODE_ENV: "production" } };
|
|
956
956
|
function or() {
|
|
957
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
957
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ye().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ye().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function St(e) {
|
|
960
960
|
return (n) => ir(n, e);
|
|
961
961
|
}
|
|
962
962
|
function ir(e, t) {
|
|
@@ -977,30 +977,30 @@ function ir(e, t) {
|
|
|
977
977
|
}
|
|
978
978
|
const cr = ["b", "body"];
|
|
979
979
|
function ur(e) {
|
|
980
|
-
return
|
|
980
|
+
return xe(e, cr);
|
|
981
981
|
}
|
|
982
982
|
const dr = ["c", "cases"];
|
|
983
983
|
function mr(e) {
|
|
984
|
-
return
|
|
984
|
+
return xe(e, dr, []);
|
|
985
985
|
}
|
|
986
986
|
function fn(e, t) {
|
|
987
987
|
const n = _r(t);
|
|
988
988
|
if (n != null)
|
|
989
989
|
return e.type === "text" ? n : e.normalize([n]);
|
|
990
990
|
{
|
|
991
|
-
const s = br(t).reduce((o, l) => [...o,
|
|
991
|
+
const s = br(t).reduce((o, l) => [...o, Ut(e, l)], []);
|
|
992
992
|
return e.normalize(s);
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
995
|
const fr = ["s", "static"];
|
|
996
996
|
function _r(e) {
|
|
997
|
-
return
|
|
997
|
+
return xe(e, fr);
|
|
998
998
|
}
|
|
999
999
|
const pr = ["i", "items"];
|
|
1000
1000
|
function br(e) {
|
|
1001
|
-
return
|
|
1001
|
+
return xe(e, pr, []);
|
|
1002
1002
|
}
|
|
1003
|
-
function
|
|
1003
|
+
function Ut(e, t) {
|
|
1004
1004
|
const n = zt(t);
|
|
1005
1005
|
switch (n) {
|
|
1006
1006
|
case 3:
|
|
@@ -1009,23 +1009,23 @@ function xt(e, t) {
|
|
|
1009
1009
|
return ft(t, n);
|
|
1010
1010
|
case 4: {
|
|
1011
1011
|
const s = t;
|
|
1012
|
-
if (
|
|
1012
|
+
if (Se(s, "k") && s.k)
|
|
1013
1013
|
return e.interpolate(e.named(s.k));
|
|
1014
|
-
if (
|
|
1014
|
+
if (Se(s, "key") && s.key)
|
|
1015
1015
|
return e.interpolate(e.named(s.key));
|
|
1016
1016
|
throw ot(n);
|
|
1017
1017
|
}
|
|
1018
1018
|
case 5: {
|
|
1019
1019
|
const s = t;
|
|
1020
|
-
if (
|
|
1020
|
+
if (Se(s, "i") && ve(s.i))
|
|
1021
1021
|
return e.interpolate(e.list(s.i));
|
|
1022
|
-
if (
|
|
1022
|
+
if (Se(s, "index") && ve(s.index))
|
|
1023
1023
|
return e.interpolate(e.list(s.index));
|
|
1024
1024
|
throw ot(n);
|
|
1025
1025
|
}
|
|
1026
1026
|
case 6: {
|
|
1027
|
-
const s = t, o =
|
|
1028
|
-
return e.linked(
|
|
1027
|
+
const s = t, o = Ir(s), l = Er(s);
|
|
1028
|
+
return e.linked(Ut(e, l), o ? Ut(e, o) : void 0, e.type);
|
|
1029
1029
|
}
|
|
1030
1030
|
case 7:
|
|
1031
1031
|
return ft(t, n);
|
|
@@ -1037,22 +1037,22 @@ function xt(e, t) {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
const vr = ["t", "type"];
|
|
1039
1039
|
function zt(e) {
|
|
1040
|
-
return
|
|
1040
|
+
return xe(e, vr);
|
|
1041
1041
|
}
|
|
1042
1042
|
const hr = ["v", "value"];
|
|
1043
1043
|
function ft(e, t) {
|
|
1044
|
-
const n =
|
|
1044
|
+
const n = xe(e, hr);
|
|
1045
1045
|
if (n)
|
|
1046
1046
|
return n;
|
|
1047
1047
|
throw ot(t);
|
|
1048
1048
|
}
|
|
1049
1049
|
const gr = ["m", "modifier"];
|
|
1050
|
-
function yr(e) {
|
|
1051
|
-
return Ve(e, gr);
|
|
1052
|
-
}
|
|
1053
|
-
const Er = ["k", "key"];
|
|
1054
1050
|
function Ir(e) {
|
|
1055
|
-
|
|
1051
|
+
return xe(e, gr);
|
|
1052
|
+
}
|
|
1053
|
+
const yr = ["k", "key"];
|
|
1054
|
+
function Er(e) {
|
|
1055
|
+
const t = xe(e, yr);
|
|
1056
1056
|
if (t)
|
|
1057
1057
|
return t;
|
|
1058
1058
|
throw ot(
|
|
@@ -1060,10 +1060,10 @@ function Ir(e) {
|
|
|
1060
1060
|
/* NodeTypes.Linked */
|
|
1061
1061
|
);
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1063
|
+
function xe(e, t, n) {
|
|
1064
1064
|
for (let s = 0; s < t.length; s++) {
|
|
1065
1065
|
const o = t[s];
|
|
1066
|
-
if (
|
|
1066
|
+
if (Se(e, o) && e[o] != null)
|
|
1067
1067
|
return e[o];
|
|
1068
1068
|
}
|
|
1069
1069
|
return n;
|
|
@@ -1074,39 +1074,39 @@ function ot(e) {
|
|
|
1074
1074
|
const Nr = (e) => e;
|
|
1075
1075
|
let _t = re();
|
|
1076
1076
|
function ze(e) {
|
|
1077
|
-
return ee(e) && zt(e) === 0 && (
|
|
1077
|
+
return ee(e) && zt(e) === 0 && (Se(e, "b") || Se(e, "body"));
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1079
|
+
function kr(e, t = {}) {
|
|
1080
1080
|
let n = !1;
|
|
1081
|
-
const s = t.onError ||
|
|
1081
|
+
const s = t.onError || Us;
|
|
1082
1082
|
return t.onError = (o) => {
|
|
1083
1083
|
n = !0, s(o);
|
|
1084
1084
|
}, { ...ar(e, t), detectError: n };
|
|
1085
1085
|
}
|
|
1086
1086
|
// @__NO_SIDE_EFFECTS__
|
|
1087
|
-
function
|
|
1088
|
-
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ &&
|
|
1087
|
+
function Tr(e, t) {
|
|
1088
|
+
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && W(e)) {
|
|
1089
1089
|
ue(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1090
1090
|
const s = (t.onCacheKey || Nr)(e), o = _t[s];
|
|
1091
1091
|
if (o)
|
|
1092
1092
|
return o;
|
|
1093
|
-
const { ast: l, detectError: c } =
|
|
1093
|
+
const { ast: l, detectError: c } = kr(e, {
|
|
1094
1094
|
...t,
|
|
1095
1095
|
location: lr.env.NODE_ENV !== "production",
|
|
1096
1096
|
jit: !0
|
|
1097
|
-
}), m =
|
|
1097
|
+
}), m = St(l);
|
|
1098
1098
|
return c ? m : _t[s] = m;
|
|
1099
1099
|
} else {
|
|
1100
1100
|
const n = e.cacheKey;
|
|
1101
1101
|
if (n) {
|
|
1102
1102
|
const s = _t[n];
|
|
1103
|
-
return s || (_t[n] =
|
|
1103
|
+
return s || (_t[n] = St(e));
|
|
1104
1104
|
} else
|
|
1105
|
-
return
|
|
1105
|
+
return St(e);
|
|
1106
1106
|
}
|
|
1107
1107
|
}
|
|
1108
1108
|
let it = null;
|
|
1109
|
-
function
|
|
1109
|
+
function Cr(e) {
|
|
1110
1110
|
it = e;
|
|
1111
1111
|
}
|
|
1112
1112
|
function Or(e, t, n) {
|
|
@@ -1117,8 +1117,8 @@ function Or(e, t, n) {
|
|
|
1117
1117
|
meta: n
|
|
1118
1118
|
});
|
|
1119
1119
|
}
|
|
1120
|
-
const
|
|
1121
|
-
function
|
|
1120
|
+
const Rr = /* @__PURE__ */ Lr("function:translate");
|
|
1121
|
+
function Lr(e) {
|
|
1122
1122
|
return (t) => it && it.emit(e, t);
|
|
1123
1123
|
}
|
|
1124
1124
|
const Pe = {
|
|
@@ -1129,16 +1129,16 @@ const Pe = {
|
|
|
1129
1129
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1130
1130
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1131
1131
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1132
|
-
},
|
|
1132
|
+
}, Sr = 24;
|
|
1133
1133
|
function je(e) {
|
|
1134
|
-
return
|
|
1134
|
+
return kt(e, null, void 0);
|
|
1135
1135
|
}
|
|
1136
1136
|
function Qt(e, t) {
|
|
1137
1137
|
return t.locale != null ? _n(t.locale) : _n(e.locale);
|
|
1138
1138
|
}
|
|
1139
1139
|
let At;
|
|
1140
1140
|
function _n(e) {
|
|
1141
|
-
if (
|
|
1141
|
+
if (W(e))
|
|
1142
1142
|
return e;
|
|
1143
1143
|
if (le(e)) {
|
|
1144
1144
|
if (e.resolvedOnce && At != null)
|
|
@@ -1156,11 +1156,11 @@ function _n(e) {
|
|
|
1156
1156
|
function Ar(e, t, n) {
|
|
1157
1157
|
return [.../* @__PURE__ */ new Set([
|
|
1158
1158
|
n,
|
|
1159
|
-
..._e(t) ? t : ee(t) ? Object.keys(t) :
|
|
1159
|
+
..._e(t) ? t : ee(t) ? Object.keys(t) : W(t) ? [t] : [n]
|
|
1160
1160
|
])];
|
|
1161
1161
|
}
|
|
1162
|
-
function
|
|
1163
|
-
const s =
|
|
1162
|
+
function Wn(e, t, n) {
|
|
1163
|
+
const s = W(n) ? n : Et, o = e;
|
|
1164
1164
|
o.__localeChainCache || (o.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1165
1165
|
let l = o.__localeChainCache.get(s);
|
|
1166
1166
|
if (!l) {
|
|
@@ -1169,7 +1169,7 @@ function Gn(e, t, n) {
|
|
|
1169
1169
|
for (; _e(c); )
|
|
1170
1170
|
c = pn(l, c, t);
|
|
1171
1171
|
const m = _e(t) || !q(t) ? t : t.default ? t.default : null;
|
|
1172
|
-
c =
|
|
1172
|
+
c = W(m) ? [m] : m, _e(c) && pn(l, c, !1), o.__localeChainCache.set(s, l);
|
|
1173
1173
|
}
|
|
1174
1174
|
return l;
|
|
1175
1175
|
}
|
|
@@ -1177,7 +1177,7 @@ function pn(e, t, n) {
|
|
|
1177
1177
|
let s = !0;
|
|
1178
1178
|
for (let o = 0; o < t.length && ue(s); o++) {
|
|
1179
1179
|
const l = t[o];
|
|
1180
|
-
|
|
1180
|
+
W(l) && (s = Dr(e, t[o], n));
|
|
1181
1181
|
}
|
|
1182
1182
|
return s;
|
|
1183
1183
|
}
|
|
@@ -1199,8 +1199,8 @@ function Mr(e, t, n) {
|
|
|
1199
1199
|
}
|
|
1200
1200
|
return s;
|
|
1201
1201
|
}
|
|
1202
|
-
const
|
|
1203
|
-
|
|
1202
|
+
const Ge = [];
|
|
1203
|
+
Ge[
|
|
1204
1204
|
0
|
|
1205
1205
|
/* States.BEFORE_PATH */
|
|
1206
1206
|
] = {
|
|
@@ -1222,7 +1222,7 @@ We[
|
|
|
1222
1222
|
/* States.AFTER_PATH */
|
|
1223
1223
|
]
|
|
1224
1224
|
};
|
|
1225
|
-
|
|
1225
|
+
Ge[
|
|
1226
1226
|
1
|
|
1227
1227
|
/* States.IN_PATH */
|
|
1228
1228
|
] = {
|
|
@@ -1243,7 +1243,7 @@ We[
|
|
|
1243
1243
|
/* States.AFTER_PATH */
|
|
1244
1244
|
]
|
|
1245
1245
|
};
|
|
1246
|
-
|
|
1246
|
+
Ge[
|
|
1247
1247
|
2
|
|
1248
1248
|
/* States.BEFORE_IDENT */
|
|
1249
1249
|
] = {
|
|
@@ -1262,7 +1262,7 @@ We[
|
|
|
1262
1262
|
/* Actions.APPEND */
|
|
1263
1263
|
]
|
|
1264
1264
|
};
|
|
1265
|
-
|
|
1265
|
+
Ge[
|
|
1266
1266
|
3
|
|
1267
1267
|
/* States.IN_IDENT */
|
|
1268
1268
|
] = {
|
|
@@ -1297,7 +1297,7 @@ We[
|
|
|
1297
1297
|
/* Actions.PUSH */
|
|
1298
1298
|
]
|
|
1299
1299
|
};
|
|
1300
|
-
|
|
1300
|
+
Ge[
|
|
1301
1301
|
4
|
|
1302
1302
|
/* States.IN_SUB_PATH */
|
|
1303
1303
|
] = {
|
|
@@ -1328,7 +1328,7 @@ We[
|
|
|
1328
1328
|
/* Actions.APPEND */
|
|
1329
1329
|
]
|
|
1330
1330
|
};
|
|
1331
|
-
|
|
1331
|
+
Ge[
|
|
1332
1332
|
5
|
|
1333
1333
|
/* States.IN_SINGLE_QUOTE */
|
|
1334
1334
|
] = {
|
|
@@ -1344,7 +1344,7 @@ We[
|
|
|
1344
1344
|
/* Actions.APPEND */
|
|
1345
1345
|
]
|
|
1346
1346
|
};
|
|
1347
|
-
|
|
1347
|
+
Ge[
|
|
1348
1348
|
6
|
|
1349
1349
|
/* States.IN_DOUBLE_QUOTE */
|
|
1350
1350
|
] = {
|
|
@@ -1393,75 +1393,75 @@ function jr(e) {
|
|
|
1393
1393
|
}
|
|
1394
1394
|
return "i";
|
|
1395
1395
|
}
|
|
1396
|
-
function
|
|
1396
|
+
function Ur(e) {
|
|
1397
1397
|
const t = e.trim();
|
|
1398
1398
|
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Fr(t) ? Pr(t) : "*" + t;
|
|
1399
1399
|
}
|
|
1400
|
-
function
|
|
1400
|
+
function Vr(e) {
|
|
1401
1401
|
const t = [];
|
|
1402
|
-
let n = -1, s = 0, o = 0, l, c, m, v,
|
|
1403
|
-
const
|
|
1404
|
-
|
|
1402
|
+
let n = -1, s = 0, o = 0, l, c, m, v, I, O, L;
|
|
1403
|
+
const R = [];
|
|
1404
|
+
R[
|
|
1405
1405
|
0
|
|
1406
1406
|
/* Actions.APPEND */
|
|
1407
1407
|
] = () => {
|
|
1408
1408
|
c === void 0 ? c = m : c += m;
|
|
1409
|
-
},
|
|
1409
|
+
}, R[
|
|
1410
1410
|
1
|
|
1411
1411
|
/* Actions.PUSH */
|
|
1412
1412
|
] = () => {
|
|
1413
1413
|
c !== void 0 && (t.push(c), c = void 0);
|
|
1414
|
-
},
|
|
1414
|
+
}, R[
|
|
1415
1415
|
2
|
|
1416
1416
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1417
1417
|
] = () => {
|
|
1418
|
-
|
|
1418
|
+
R[
|
|
1419
1419
|
0
|
|
1420
1420
|
/* Actions.APPEND */
|
|
1421
1421
|
](), o++;
|
|
1422
|
-
},
|
|
1422
|
+
}, R[
|
|
1423
1423
|
3
|
|
1424
1424
|
/* Actions.PUSH_SUB_PATH */
|
|
1425
1425
|
] = () => {
|
|
1426
1426
|
if (o > 0)
|
|
1427
|
-
o--, s = 4,
|
|
1427
|
+
o--, s = 4, R[
|
|
1428
1428
|
0
|
|
1429
1429
|
/* Actions.APPEND */
|
|
1430
1430
|
]();
|
|
1431
1431
|
else {
|
|
1432
|
-
if (o = 0, c === void 0 || (c =
|
|
1432
|
+
if (o = 0, c === void 0 || (c = Ur(c), c === !1))
|
|
1433
1433
|
return !1;
|
|
1434
|
-
|
|
1434
|
+
R[
|
|
1435
1435
|
1
|
|
1436
1436
|
/* Actions.PUSH */
|
|
1437
1437
|
]();
|
|
1438
1438
|
}
|
|
1439
1439
|
};
|
|
1440
|
-
function
|
|
1441
|
-
const
|
|
1442
|
-
if (s === 5 &&
|
|
1443
|
-
return n++, m = "\\" +
|
|
1440
|
+
function U() {
|
|
1441
|
+
const B = e[n + 1];
|
|
1442
|
+
if (s === 5 && B === "'" || s === 6 && B === '"')
|
|
1443
|
+
return n++, m = "\\" + B, R[
|
|
1444
1444
|
0
|
|
1445
1445
|
/* Actions.APPEND */
|
|
1446
1446
|
](), !0;
|
|
1447
1447
|
}
|
|
1448
1448
|
for (; s !== null; )
|
|
1449
|
-
if (n++, l = e[n], !(l === "\\" &&
|
|
1450
|
-
if (v = jr(l),
|
|
1449
|
+
if (n++, l = e[n], !(l === "\\" && U())) {
|
|
1450
|
+
if (v = jr(l), L = Ge[s], I = L[v] || L.l || 8, I === 8 || (s = I[0], I[1] !== void 0 && (O = R[I[1]], O && (m = l, O() === !1))))
|
|
1451
1451
|
return;
|
|
1452
1452
|
if (s === 7)
|
|
1453
1453
|
return t;
|
|
1454
1454
|
}
|
|
1455
1455
|
}
|
|
1456
1456
|
const bn = /* @__PURE__ */ new Map();
|
|
1457
|
-
function
|
|
1457
|
+
function xr(e, t) {
|
|
1458
1458
|
return ee(e) ? e[t] : null;
|
|
1459
1459
|
}
|
|
1460
|
-
function
|
|
1460
|
+
function Gr(e, t) {
|
|
1461
1461
|
if (!ee(e))
|
|
1462
1462
|
return null;
|
|
1463
1463
|
let n = bn.get(t);
|
|
1464
|
-
if (n || (n =
|
|
1464
|
+
if (n || (n = Vr(t), n && bn.set(t, n)), !n)
|
|
1465
1465
|
return null;
|
|
1466
1466
|
const s = n.length;
|
|
1467
1467
|
let o = e, l = 0;
|
|
@@ -1473,70 +1473,70 @@ function Wr(e, t) {
|
|
|
1473
1473
|
}
|
|
1474
1474
|
return o;
|
|
1475
1475
|
}
|
|
1476
|
-
const
|
|
1477
|
-
function
|
|
1476
|
+
const Wr = "10.0.5", Tt = -1, Et = "en-US", vn = "", hn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1477
|
+
function Yr() {
|
|
1478
1478
|
return {
|
|
1479
|
-
upper: (e, t) => t === "text" &&
|
|
1480
|
-
lower: (e, t) => t === "text" &&
|
|
1481
|
-
capitalize: (e, t) => t === "text" &&
|
|
1479
|
+
upper: (e, t) => t === "text" && W(e) ? e.toUpperCase() : t === "vnode" && ee(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1480
|
+
lower: (e, t) => t === "text" && W(e) ? e.toLowerCase() : t === "vnode" && ee(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1481
|
+
capitalize: (e, t) => t === "text" && W(e) ? hn(e) : t === "vnode" && ee(e) && "__v_isVNode" in e ? hn(e.children) : e
|
|
1482
1482
|
};
|
|
1483
1483
|
}
|
|
1484
|
-
let
|
|
1485
|
-
function Xr(e) {
|
|
1486
|
-
Bn = e;
|
|
1487
|
-
}
|
|
1488
|
-
let Xn;
|
|
1484
|
+
let Yn;
|
|
1489
1485
|
function Zr(e) {
|
|
1490
|
-
|
|
1486
|
+
Yn = e;
|
|
1491
1487
|
}
|
|
1492
1488
|
let Zn;
|
|
1493
|
-
function
|
|
1489
|
+
function Br(e) {
|
|
1494
1490
|
Zn = e;
|
|
1495
1491
|
}
|
|
1492
|
+
let Bn;
|
|
1493
|
+
function Xr(e) {
|
|
1494
|
+
Bn = e;
|
|
1495
|
+
}
|
|
1496
|
+
let Xn = null;
|
|
1497
|
+
const Hr = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1498
|
+
Xn = e;
|
|
1499
|
+
}, $r = /* @__NO_SIDE_EFFECTS__ */ () => Xn;
|
|
1496
1500
|
let Hn = null;
|
|
1497
|
-
const Yr = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1498
|
-
Hn = e;
|
|
1499
|
-
}, Jr = /* @__NO_SIDE_EFFECTS__ */ () => Hn;
|
|
1500
|
-
let Yn = null;
|
|
1501
1501
|
const gn = (e) => {
|
|
1502
|
-
|
|
1503
|
-
},
|
|
1504
|
-
let
|
|
1502
|
+
Hn = e;
|
|
1503
|
+
}, Jr = () => Hn;
|
|
1504
|
+
let In = 0;
|
|
1505
1505
|
function Kr(e = {}) {
|
|
1506
|
-
const t = le(e.onWarn) ? e.onWarn : Fs, n =
|
|
1507
|
-
|
|
1506
|
+
const t = le(e.onWarn) ? e.onWarn : Fs, n = W(e.version) ? e.version : Wr, s = W(e.locale) || le(e.locale) ? e.locale : Et, o = le(s) ? Et : s, l = _e(e.fallbackLocale) || q(e.fallbackLocale) || W(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : o, c = q(e.messages) ? e.messages : Dt(o), m = q(e.datetimeFormats) ? e.datetimeFormats : Dt(o), v = q(e.numberFormats) ? e.numberFormats : Dt(o), I = he(re(), e.modifiers, Yr()), O = e.pluralRules || re(), L = le(e.missing) ? e.missing : null, R = ue(e.missingWarn) || yt(e.missingWarn) ? e.missingWarn : !0, U = ue(e.fallbackWarn) || yt(e.fallbackWarn) ? e.fallbackWarn : !0, B = !!e.fallbackFormat, M = !!e.unresolving, P = le(e.postTranslation) ? e.postTranslation : null, u = q(e.processor) ? e.processor : null, p = ue(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, i = le(e.messageCompiler) ? e.messageCompiler : Yn, g = le(e.messageResolver) ? e.messageResolver : Zn || xr, y = le(e.localeFallbacker) ? e.localeFallbacker : Bn || Ar, b = ee(e.fallbackContext) ? e.fallbackContext : void 0, w = e, f = ee(w.__datetimeFormatters) ? w.__datetimeFormatters : /* @__PURE__ */ new Map(), T = ee(w.__numberFormatters) ? w.__numberFormatters : /* @__PURE__ */ new Map(), E = ee(w.__meta) ? w.__meta : {};
|
|
1507
|
+
In++;
|
|
1508
1508
|
const h = {
|
|
1509
1509
|
version: n,
|
|
1510
|
-
cid:
|
|
1510
|
+
cid: In,
|
|
1511
1511
|
locale: s,
|
|
1512
1512
|
fallbackLocale: l,
|
|
1513
1513
|
messages: c,
|
|
1514
|
-
modifiers:
|
|
1514
|
+
modifiers: I,
|
|
1515
1515
|
pluralRules: O,
|
|
1516
|
-
missing:
|
|
1517
|
-
missingWarn:
|
|
1518
|
-
fallbackWarn:
|
|
1519
|
-
fallbackFormat:
|
|
1516
|
+
missing: L,
|
|
1517
|
+
missingWarn: R,
|
|
1518
|
+
fallbackWarn: U,
|
|
1519
|
+
fallbackFormat: B,
|
|
1520
1520
|
unresolving: M,
|
|
1521
1521
|
postTranslation: P,
|
|
1522
1522
|
processor: u,
|
|
1523
1523
|
warnHtmlMessage: p,
|
|
1524
|
-
escapeParameter:
|
|
1524
|
+
escapeParameter: S,
|
|
1525
1525
|
messageCompiler: i,
|
|
1526
1526
|
messageResolver: g,
|
|
1527
|
-
localeFallbacker:
|
|
1527
|
+
localeFallbacker: y,
|
|
1528
1528
|
fallbackContext: b,
|
|
1529
1529
|
onWarn: t,
|
|
1530
|
-
__meta:
|
|
1530
|
+
__meta: E
|
|
1531
1531
|
};
|
|
1532
|
-
return h.datetimeFormats = m, h.numberFormats = v, h.__datetimeFormatters = f, h.__numberFormatters =
|
|
1532
|
+
return h.datetimeFormats = m, h.numberFormats = v, h.__datetimeFormatters = f, h.__numberFormatters = T, __INTLIFY_PROD_DEVTOOLS__ && Or(h, n, E), h;
|
|
1533
1533
|
}
|
|
1534
1534
|
const Dt = (e) => ({ [e]: re() });
|
|
1535
1535
|
function qt(e, t, n, s, o) {
|
|
1536
1536
|
const { missing: l, onWarn: c } = e;
|
|
1537
1537
|
if (l !== null) {
|
|
1538
1538
|
const m = l(e, n, t, o);
|
|
1539
|
-
return
|
|
1539
|
+
return W(m) ? m : t;
|
|
1540
1540
|
} else
|
|
1541
1541
|
return t;
|
|
1542
1542
|
}
|
|
@@ -1556,29 +1556,29 @@ function Qr(e, t) {
|
|
|
1556
1556
|
return !0;
|
|
1557
1557
|
return !1;
|
|
1558
1558
|
}
|
|
1559
|
-
function
|
|
1560
|
-
const { datetimeFormats: n, unresolving: s, fallbackLocale: o, onWarn: l, localeFallbacker: c } = e, { __datetimeFormatters: m } = e, [v,
|
|
1559
|
+
function yn(e, ...t) {
|
|
1560
|
+
const { datetimeFormats: n, unresolving: s, fallbackLocale: o, onWarn: l, localeFallbacker: c } = e, { __datetimeFormatters: m } = e, [v, I, O, L] = Vt(...t), R = ue(O.missingWarn) ? O.missingWarn : e.missingWarn;
|
|
1561
1561
|
ue(O.fallbackWarn) ? O.fallbackWarn : e.fallbackWarn;
|
|
1562
|
-
const
|
|
1562
|
+
const U = !!O.part, B = Qt(e, O), M = c(
|
|
1563
1563
|
e,
|
|
1564
1564
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1565
1565
|
o,
|
|
1566
|
-
|
|
1566
|
+
B
|
|
1567
1567
|
);
|
|
1568
|
-
if (!
|
|
1569
|
-
return new Intl.DateTimeFormat(
|
|
1568
|
+
if (!W(v) || v === "")
|
|
1569
|
+
return new Intl.DateTimeFormat(B, L).format(I);
|
|
1570
1570
|
let P = {}, u, p = null;
|
|
1571
|
-
const
|
|
1572
|
-
for (let
|
|
1573
|
-
qt(e, v, u,
|
|
1574
|
-
if (!q(p) || !
|
|
1575
|
-
return s ?
|
|
1571
|
+
const S = "datetime format";
|
|
1572
|
+
for (let y = 0; y < M.length && (u = M[y], P = n[u] || {}, p = P[v], !q(p)); y++)
|
|
1573
|
+
qt(e, v, u, R, S);
|
|
1574
|
+
if (!q(p) || !W(u))
|
|
1575
|
+
return s ? Tt : v;
|
|
1576
1576
|
let i = `${u}__${v}`;
|
|
1577
|
-
Nt(
|
|
1577
|
+
Nt(L) || (i = `${i}__${JSON.stringify(L)}`);
|
|
1578
1578
|
let g = m.get(i);
|
|
1579
|
-
return g || (g = new Intl.DateTimeFormat(u, he({}, p,
|
|
1579
|
+
return g || (g = new Intl.DateTimeFormat(u, he({}, p, L)), m.set(i, g)), U ? g.formatToParts(I) : g.format(I);
|
|
1580
1580
|
}
|
|
1581
|
-
const
|
|
1581
|
+
const $n = [
|
|
1582
1582
|
"localeMatcher",
|
|
1583
1583
|
"weekday",
|
|
1584
1584
|
"era",
|
|
@@ -1600,21 +1600,21 @@ const Jn = [
|
|
|
1600
1600
|
"hourCycle",
|
|
1601
1601
|
"fractionalSecondDigits"
|
|
1602
1602
|
];
|
|
1603
|
-
function
|
|
1603
|
+
function Vt(...e) {
|
|
1604
1604
|
const [t, n, s, o] = e, l = re();
|
|
1605
1605
|
let c = re(), m;
|
|
1606
|
-
if (
|
|
1606
|
+
if (W(t)) {
|
|
1607
1607
|
const v = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1608
1608
|
if (!v)
|
|
1609
1609
|
throw je(Pe.INVALID_ISO_DATE_ARGUMENT);
|
|
1610
|
-
const
|
|
1611
|
-
m = new Date(
|
|
1610
|
+
const I = v[3] ? v[3].trim().startsWith("T") ? `${v[1].trim()}${v[3].trim()}` : `${v[1].trim()}T${v[3].trim()}` : v[1].trim();
|
|
1611
|
+
m = new Date(I);
|
|
1612
1612
|
try {
|
|
1613
1613
|
m.toISOString();
|
|
1614
1614
|
} catch {
|
|
1615
1615
|
throw je(Pe.INVALID_ISO_DATE_ARGUMENT);
|
|
1616
1616
|
}
|
|
1617
|
-
} else if (
|
|
1617
|
+
} else if (Ss(t)) {
|
|
1618
1618
|
if (isNaN(t.getTime()))
|
|
1619
1619
|
throw je(Pe.INVALID_DATE_ARGUMENT);
|
|
1620
1620
|
m = t;
|
|
@@ -1622,11 +1622,11 @@ function Ut(...e) {
|
|
|
1622
1622
|
m = t;
|
|
1623
1623
|
else
|
|
1624
1624
|
throw je(Pe.INVALID_ARGUMENT);
|
|
1625
|
-
return
|
|
1626
|
-
|
|
1627
|
-
}),
|
|
1625
|
+
return W(n) ? l.key = n : q(n) && Object.keys(n).forEach((v) => {
|
|
1626
|
+
$n.includes(v) ? c[v] = n[v] : l[v] = n[v];
|
|
1627
|
+
}), W(s) ? l.locale = s : q(s) && (c = s), q(o) && (c = o), [l.key || "", m, l, c];
|
|
1628
1628
|
}
|
|
1629
|
-
function
|
|
1629
|
+
function En(e, t, n) {
|
|
1630
1630
|
const s = e;
|
|
1631
1631
|
for (const o in n) {
|
|
1632
1632
|
const l = `${t}__${o}`;
|
|
@@ -1634,28 +1634,28 @@ function In(e, t, n) {
|
|
|
1634
1634
|
}
|
|
1635
1635
|
}
|
|
1636
1636
|
function Nn(e, ...t) {
|
|
1637
|
-
const { numberFormats: n, unresolving: s, fallbackLocale: o, onWarn: l, localeFallbacker: c } = e, { __numberFormatters: m } = e, [v,
|
|
1637
|
+
const { numberFormats: n, unresolving: s, fallbackLocale: o, onWarn: l, localeFallbacker: c } = e, { __numberFormatters: m } = e, [v, I, O, L] = xt(...t), R = ue(O.missingWarn) ? O.missingWarn : e.missingWarn;
|
|
1638
1638
|
ue(O.fallbackWarn) ? O.fallbackWarn : e.fallbackWarn;
|
|
1639
|
-
const
|
|
1639
|
+
const U = !!O.part, B = Qt(e, O), M = c(
|
|
1640
1640
|
e,
|
|
1641
1641
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1642
1642
|
o,
|
|
1643
|
-
|
|
1643
|
+
B
|
|
1644
1644
|
);
|
|
1645
|
-
if (!
|
|
1646
|
-
return new Intl.NumberFormat(
|
|
1645
|
+
if (!W(v) || v === "")
|
|
1646
|
+
return new Intl.NumberFormat(B, L).format(I);
|
|
1647
1647
|
let P = {}, u, p = null;
|
|
1648
|
-
const
|
|
1649
|
-
for (let
|
|
1650
|
-
qt(e, v, u,
|
|
1651
|
-
if (!q(p) || !
|
|
1652
|
-
return s ?
|
|
1648
|
+
const S = "number format";
|
|
1649
|
+
for (let y = 0; y < M.length && (u = M[y], P = n[u] || {}, p = P[v], !q(p)); y++)
|
|
1650
|
+
qt(e, v, u, R, S);
|
|
1651
|
+
if (!q(p) || !W(u))
|
|
1652
|
+
return s ? Tt : v;
|
|
1653
1653
|
let i = `${u}__${v}`;
|
|
1654
|
-
Nt(
|
|
1654
|
+
Nt(L) || (i = `${i}__${JSON.stringify(L)}`);
|
|
1655
1655
|
let g = m.get(i);
|
|
1656
|
-
return g || (g = new Intl.NumberFormat(u, he({}, p,
|
|
1656
|
+
return g || (g = new Intl.NumberFormat(u, he({}, p, L)), m.set(i, g)), U ? g.formatToParts(I) : g.format(I);
|
|
1657
1657
|
}
|
|
1658
|
-
const
|
|
1658
|
+
const Jn = [
|
|
1659
1659
|
"localeMatcher",
|
|
1660
1660
|
"style",
|
|
1661
1661
|
"currency",
|
|
@@ -1677,25 +1677,25 @@ const $n = [
|
|
|
1677
1677
|
"roundingIncrement",
|
|
1678
1678
|
"trailingZeroDisplay"
|
|
1679
1679
|
];
|
|
1680
|
-
function
|
|
1680
|
+
function xt(...e) {
|
|
1681
1681
|
const [t, n, s, o] = e, l = re();
|
|
1682
1682
|
let c = re();
|
|
1683
1683
|
if (!ve(t))
|
|
1684
1684
|
throw je(Pe.INVALID_ARGUMENT);
|
|
1685
1685
|
const m = t;
|
|
1686
|
-
return
|
|
1687
|
-
|
|
1688
|
-
}),
|
|
1686
|
+
return W(n) ? l.key = n : q(n) && Object.keys(n).forEach((v) => {
|
|
1687
|
+
Jn.includes(v) ? c[v] = n[v] : l[v] = n[v];
|
|
1688
|
+
}), W(s) ? l.locale = s : q(s) && (c = s), q(o) && (c = o), [l.key || "", m, l, c];
|
|
1689
1689
|
}
|
|
1690
|
-
function
|
|
1690
|
+
function kn(e, t, n) {
|
|
1691
1691
|
const s = e;
|
|
1692
1692
|
for (const o in n) {
|
|
1693
1693
|
const l = `${t}__${o}`;
|
|
1694
1694
|
s.__numberFormatters.has(l) && s.__numberFormatters.delete(l);
|
|
1695
1695
|
}
|
|
1696
1696
|
}
|
|
1697
|
-
const qr = (e) => e, ea = (e) => "", ta = "text", na = (e) => e.length === 0 ? "" :
|
|
1698
|
-
function
|
|
1697
|
+
const qr = (e) => e, ea = (e) => "", ta = "text", na = (e) => e.length === 0 ? "" : Jt(e), sa = ws;
|
|
1698
|
+
function Tn(e, t) {
|
|
1699
1699
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1700
1700
|
}
|
|
1701
1701
|
function ra(e) {
|
|
@@ -1706,97 +1706,97 @@ function aa(e, t) {
|
|
|
1706
1706
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1707
1707
|
}
|
|
1708
1708
|
function la(e = {}) {
|
|
1709
|
-
const t = e.locale, n = ra(e), s = ee(e.pluralRules) &&
|
|
1709
|
+
const t = e.locale, n = ra(e), s = ee(e.pluralRules) && W(t) && le(e.pluralRules[t]) ? e.pluralRules[t] : Tn, o = ee(e.pluralRules) && W(t) && le(e.pluralRules[t]) ? Tn : void 0, l = (u) => u[s(n, u.length, o)], c = e.list || [], m = (u) => c[u], v = e.named || re();
|
|
1710
1710
|
ve(e.pluralIndex) && aa(n, v);
|
|
1711
|
-
const
|
|
1711
|
+
const I = (u) => v[u];
|
|
1712
1712
|
function O(u, p) {
|
|
1713
|
-
const
|
|
1714
|
-
return
|
|
1713
|
+
const S = le(e.messages) ? e.messages(u, !!p) : ee(e.messages) ? e.messages[u] : !1;
|
|
1714
|
+
return S || (e.parent ? e.parent.message(u) : ea);
|
|
1715
1715
|
}
|
|
1716
|
-
const
|
|
1716
|
+
const L = (u) => e.modifiers ? e.modifiers[u] : qr, R = q(e.processor) && le(e.processor.normalize) ? e.processor.normalize : na, U = q(e.processor) && le(e.processor.interpolate) ? e.processor.interpolate : sa, B = q(e.processor) && W(e.processor.type) ? e.processor.type : ta, P = {
|
|
1717
1717
|
list: m,
|
|
1718
|
-
named:
|
|
1718
|
+
named: I,
|
|
1719
1719
|
plural: l,
|
|
1720
1720
|
linked: (u, ...p) => {
|
|
1721
|
-
const [
|
|
1722
|
-
let g = "text",
|
|
1723
|
-
p.length === 1 ? ee(
|
|
1721
|
+
const [S, i] = p;
|
|
1722
|
+
let g = "text", y = "";
|
|
1723
|
+
p.length === 1 ? ee(S) ? (y = S.modifier || y, g = S.type || g) : W(S) && (y = S || y) : p.length === 2 && (W(S) && (y = S || y), W(i) && (g = i || g));
|
|
1724
1724
|
const b = O(u, !0)(P), w = (
|
|
1725
1725
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1726
|
-
g === "vnode" && _e(b) &&
|
|
1726
|
+
g === "vnode" && _e(b) && y ? b[0] : b
|
|
1727
1727
|
);
|
|
1728
|
-
return
|
|
1728
|
+
return y ? L(y)(w, g) : w;
|
|
1729
1729
|
},
|
|
1730
1730
|
message: O,
|
|
1731
|
-
type:
|
|
1732
|
-
interpolate:
|
|
1733
|
-
normalize:
|
|
1731
|
+
type: B,
|
|
1732
|
+
interpolate: U,
|
|
1733
|
+
normalize: R,
|
|
1734
1734
|
values: he(re(), c, v)
|
|
1735
1735
|
};
|
|
1736
1736
|
return P;
|
|
1737
1737
|
}
|
|
1738
|
-
const
|
|
1738
|
+
const Cn = () => "", Te = (e) => le(e);
|
|
1739
1739
|
function On(e, ...t) {
|
|
1740
|
-
const { fallbackFormat: n, postTranslation: s, unresolving: o, messageCompiler: l, fallbackLocale: c, messages: m } = e, [v,
|
|
1741
|
-
|
|
1742
|
-
let [u, p,
|
|
1740
|
+
const { fallbackFormat: n, postTranslation: s, unresolving: o, messageCompiler: l, fallbackLocale: c, messages: m } = e, [v, I] = Gt(...t), O = ue(I.missingWarn) ? I.missingWarn : e.missingWarn, L = ue(I.fallbackWarn) ? I.fallbackWarn : e.fallbackWarn, R = ue(I.escapeParameter) ? I.escapeParameter : e.escapeParameter, U = !!I.resolvedMessage, B = W(I.default) || ue(I.default) ? ue(I.default) ? l ? v : () => v : I.default : n ? l ? v : () => v : null, M = n || B != null && (W(B) || le(B)), P = Qt(e, I);
|
|
1741
|
+
R && oa(I);
|
|
1742
|
+
let [u, p, S] = U ? [
|
|
1743
1743
|
v,
|
|
1744
1744
|
P,
|
|
1745
1745
|
m[P] || re()
|
|
1746
|
-
] : Kn(e, v, P, c,
|
|
1747
|
-
if (!
|
|
1748
|
-
return o ?
|
|
1749
|
-
let
|
|
1746
|
+
] : Kn(e, v, P, c, L, O), i = u, g = v;
|
|
1747
|
+
if (!U && !(W(i) || ze(i) || Te(i)) && M && (i = B, g = i), !U && (!(W(i) || ze(i) || Te(i)) || !W(p)))
|
|
1748
|
+
return o ? Tt : v;
|
|
1749
|
+
let y = !1;
|
|
1750
1750
|
const b = () => {
|
|
1751
|
-
|
|
1752
|
-
}, w =
|
|
1753
|
-
if (
|
|
1751
|
+
y = !0;
|
|
1752
|
+
}, w = Te(i) ? i : zn(e, v, p, i, g, b);
|
|
1753
|
+
if (y)
|
|
1754
1754
|
return i;
|
|
1755
|
-
const f = ua(e, p,
|
|
1755
|
+
const f = ua(e, p, S, I), T = la(f), E = ia(e, w, T), h = s ? s(E, v) : E;
|
|
1756
1756
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1757
|
-
const
|
|
1757
|
+
const Z = {
|
|
1758
1758
|
timestamp: Date.now(),
|
|
1759
|
-
key:
|
|
1760
|
-
locale: p || (
|
|
1761
|
-
format:
|
|
1759
|
+
key: W(v) ? v : Te(i) ? i.key : "",
|
|
1760
|
+
locale: p || (Te(i) ? i.locale : ""),
|
|
1761
|
+
format: W(i) ? i : Te(i) ? i.source : "",
|
|
1762
1762
|
message: h
|
|
1763
1763
|
};
|
|
1764
|
-
|
|
1764
|
+
Z.meta = he({}, e.__meta, /* @__PURE__ */ $r() || {}), Rr(Z);
|
|
1765
1765
|
}
|
|
1766
1766
|
return h;
|
|
1767
1767
|
}
|
|
1768
1768
|
function oa(e) {
|
|
1769
|
-
_e(e.list) ? e.list = e.list.map((t) =>
|
|
1770
|
-
|
|
1769
|
+
_e(e.list) ? e.list = e.list.map((t) => W(t) ? cn(t) : t) : ee(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1770
|
+
W(e.named[t]) && (e.named[t] = cn(e.named[t]));
|
|
1771
1771
|
});
|
|
1772
1772
|
}
|
|
1773
1773
|
function Kn(e, t, n, s, o, l) {
|
|
1774
|
-
const { messages: c, onWarn: m, messageResolver: v, localeFallbacker:
|
|
1775
|
-
let
|
|
1776
|
-
const
|
|
1777
|
-
for (let M = 0; M < O.length && (
|
|
1778
|
-
if (!Qr(
|
|
1774
|
+
const { messages: c, onWarn: m, messageResolver: v, localeFallbacker: I } = e, O = I(e, s, n);
|
|
1775
|
+
let L = re(), R, U = null;
|
|
1776
|
+
const B = "translate";
|
|
1777
|
+
for (let M = 0; M < O.length && (R = O[M], L = c[R] || re(), (U = v(L, t)) === null && (U = L[t]), !(W(U) || ze(U) || Te(U))); M++)
|
|
1778
|
+
if (!Qr(R, O)) {
|
|
1779
1779
|
const P = qt(
|
|
1780
1780
|
e,
|
|
1781
1781
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1782
1782
|
t,
|
|
1783
|
-
|
|
1783
|
+
R,
|
|
1784
1784
|
l,
|
|
1785
|
-
|
|
1785
|
+
B
|
|
1786
1786
|
);
|
|
1787
|
-
P !== t && (
|
|
1787
|
+
P !== t && (U = P);
|
|
1788
1788
|
}
|
|
1789
|
-
return [
|
|
1789
|
+
return [U, R, L];
|
|
1790
1790
|
}
|
|
1791
1791
|
function zn(e, t, n, s, o, l) {
|
|
1792
1792
|
const { messageCompiler: c, warnHtmlMessage: m } = e;
|
|
1793
|
-
if (
|
|
1794
|
-
const
|
|
1795
|
-
return
|
|
1793
|
+
if (Te(s)) {
|
|
1794
|
+
const I = s;
|
|
1795
|
+
return I.locale = I.locale || n, I.key = I.key || t, I;
|
|
1796
1796
|
}
|
|
1797
1797
|
if (c == null) {
|
|
1798
|
-
const
|
|
1799
|
-
return
|
|
1798
|
+
const I = () => s;
|
|
1799
|
+
return I.locale = n, I.key = t, I;
|
|
1800
1800
|
}
|
|
1801
1801
|
const v = c(s, ca(e, n, o, s, m, l));
|
|
1802
1802
|
return v.locale = n, v.key = t, v.source = s, v;
|
|
@@ -1804,12 +1804,12 @@ function zn(e, t, n, s, o, l) {
|
|
|
1804
1804
|
function ia(e, t, n) {
|
|
1805
1805
|
return t(n);
|
|
1806
1806
|
}
|
|
1807
|
-
function
|
|
1807
|
+
function Gt(...e) {
|
|
1808
1808
|
const [t, n, s] = e, o = re();
|
|
1809
|
-
if (!
|
|
1809
|
+
if (!W(t) && !ve(t) && !Te(t) && !ze(t))
|
|
1810
1810
|
throw je(Pe.INVALID_ARGUMENT);
|
|
1811
|
-
const l = ve(t) ? String(t) : (
|
|
1812
|
-
return ve(n) ? o.plural = n :
|
|
1811
|
+
const l = ve(t) ? String(t) : (Te(t), t);
|
|
1812
|
+
return ve(n) ? o.plural = n : W(n) ? o.default = n : q(n) && !Nt(n) ? o.named = n : _e(n) && (o.list = n), ve(s) ? o.plural = s : W(s) ? o.default = s : q(s) && he(o, s), [l, o];
|
|
1813
1813
|
}
|
|
1814
1814
|
function ca(e, t, n, s, o, l) {
|
|
1815
1815
|
return {
|
|
@@ -1819,48 +1819,48 @@ function ca(e, t, n, s, o, l) {
|
|
|
1819
1819
|
onError: (c) => {
|
|
1820
1820
|
throw l && l(c), c;
|
|
1821
1821
|
},
|
|
1822
|
-
onCacheKey: (c) =>
|
|
1822
|
+
onCacheKey: (c) => Rs(t, n, c)
|
|
1823
1823
|
};
|
|
1824
1824
|
}
|
|
1825
1825
|
function ua(e, t, n, s) {
|
|
1826
|
-
const { modifiers: o, pluralRules: l, messageResolver: c, fallbackLocale: m, fallbackWarn: v, missingWarn:
|
|
1826
|
+
const { modifiers: o, pluralRules: l, messageResolver: c, fallbackLocale: m, fallbackWarn: v, missingWarn: I, fallbackContext: O } = e, R = {
|
|
1827
1827
|
locale: t,
|
|
1828
1828
|
modifiers: o,
|
|
1829
1829
|
pluralRules: l,
|
|
1830
|
-
messages: (
|
|
1831
|
-
let M = c(n,
|
|
1832
|
-
if (M == null && (O ||
|
|
1830
|
+
messages: (U, B) => {
|
|
1831
|
+
let M = c(n, U);
|
|
1832
|
+
if (M == null && (O || B)) {
|
|
1833
1833
|
const [, , P] = Kn(
|
|
1834
1834
|
O || e,
|
|
1835
1835
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1836
|
-
|
|
1836
|
+
U,
|
|
1837
1837
|
t,
|
|
1838
1838
|
m,
|
|
1839
1839
|
v,
|
|
1840
|
-
|
|
1840
|
+
I
|
|
1841
1841
|
);
|
|
1842
|
-
M = c(P,
|
|
1842
|
+
M = c(P, U);
|
|
1843
1843
|
}
|
|
1844
|
-
if (
|
|
1844
|
+
if (W(M) || ze(M)) {
|
|
1845
1845
|
let P = !1;
|
|
1846
|
-
const p = zn(e,
|
|
1846
|
+
const p = zn(e, U, t, M, U, () => {
|
|
1847
1847
|
P = !0;
|
|
1848
1848
|
});
|
|
1849
|
-
return P ?
|
|
1850
|
-
} else return
|
|
1849
|
+
return P ? Cn : p;
|
|
1850
|
+
} else return Te(M) ? M : Cn;
|
|
1851
1851
|
}
|
|
1852
1852
|
};
|
|
1853
|
-
return e.processor && (
|
|
1853
|
+
return e.processor && (R.processor = e.processor), s.list && (R.list = s.list), s.named && (R.named = s.named), ve(s.plural) && (R.pluralIndex = s.plural), R;
|
|
1854
1854
|
}
|
|
1855
1855
|
or();
|
|
1856
|
-
var da = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_0e49c2be-7988-403c-afec-f8b9ff15456a", npm_package_devDependencies__types_node: "^18.17.17", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", npm_package_devDependencies_vitest: "^1.2.0", USER: "runner", npm_config_always_auth: "", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v24.5.0 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.16", npm_package_devDependencies_vue_i18n: "10.0.5", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_0e49c2be-7988-403c-afec-f8b9ff15456a", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.2.0", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", npm_package_files_0: "dist", npm_package_devDependencies_eslint_import_resolver_typescript: "^4.4.4", HOME: "/home/runner", npm_package_devDependencies__eslint_js: "^9.39.2", npm_package_devDependencies__typescript_eslint_parser: "^8.52.0", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_devDependencies_eslint_config_prettier: "^10.1.8", 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.6.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "^1.29.10", npm_package_devDependencies_code_inspector_plugin: "^0.20.16", npm_package_devDependencies_npm_run_all2: "^6.0.6", 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: "1870", ACTIONS_ORCHESTRATION_ID: "88e40577-0748-4cc9-992e-55b10d739b29.publish.publish.__default", npm_package_dependencies__feedmepos_ui_library: "^1.10.6", npm_package_dependencies_dayjs: "^1.11.10", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "VITE_TARGET_ENV=dev pnpm build:mf && pnpm build:dts", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.9.3", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^2.0.6", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260714.240.1", npm_package_scripts_dev: "vite", npm_package_devDependencies_prettier: "^3.7.4", npm_package_devDependencies_sass_embedded: "^1.93.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_devDependencies__vue_tsconfig: "^0.4.0", npm_package_devDependencies_eslint_plugin_import: "^2.32.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:15129", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.16", 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_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^8.52.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.12/x64", GITHUB_RUN_ID: "29805088678", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "55914c11116f1e617bc58d87bcde1841ff052241", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.5/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/feat/custom-permission-condition-builder", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9mZWF0L2N1c3RvbS1wZXJtaXNzaW9uLWNvbmRpdGlvbi1idWlsZGVyXCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsImF1ZCI6InZzbzo2Zjk2ZmE4OS1iN2JmLTQ4NzgtYmFkMy04OTgwMDY1NjZiNmUiLCJiaWxsaW5nX293bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwiZXhwIjoxNzg0NjM1MTY3LCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3ByaW1hcnlzaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJpYXQiOjE3ODQ2MTI5NjcsImlzcyI6Imh0dHBzOi8vdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJqb2JfaWQiOiI2ZDU0MDJlZi01YjA3LTU2MTQtYTM1YS03ZTBkZDk5MTNkNTgiLCJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJuYmYiOjE3ODQ2MTI2NjcsIm9pZGNfZXh0cmEiOiJ7XCJhY3RvclwiOlwianVuLWxlZS1mZWVkbWVcIixcImFjdG9yX2lkXCI6XCIyMzkyODI4NjJcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiODg1NTM5MjY0NzRcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjRlMDcwYzk4MDg0M2U3MGFhNWJmM2E0Yzk1NmQ5NjA2M2ZiYTNhODVcIixcInJlZlwiOlwicmVmcy9oZWFkcy9mZWF0L2N1c3RvbS1wZXJtaXNzaW9uLWNvbmRpdGlvbi1idWlsZGVyXCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjI5ODA1MDg4Njc4XCIsXCJydW5fbnVtYmVyXCI6XCIxNDBcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCI1NTkxNGMxMTExNmYxZTYxN2JjNThkODdiY2RlMTg0MWZmMDUyMjQxXCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy9mZWF0L2N1c3RvbS1wZXJtaXNzaW9uLWNvbmRpdGlvbi1idWlsZGVyXCIsXCJ3b3JrZmxvd19zaGFcIjpcIjU1OTE0YzExMTE2ZjFlNjE3YmM1OGQ4N2JjZGUxODQxZmYwNTIyNDFcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL2hybS1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL2ZlYXQvY3VzdG9tLXBlcm1pc3Npb24tY29uZGl0aW9uLWJ1aWxkZXIiLCJvcmNoX2lkIjoiODhlNDA1NzctMDc0OC00Y2M5LTk5MmUtNTViMTBkNzM5YjI5LnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiI4OGU0MDU3Ny0wNzQ4LTRjYzktOTkyZS01NWIxMGQ3MzliMjkiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiIyOTgwNTA4ODY3OCIsInJ1bl9udW1iZXIiOiIxNDAiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMDkzMjA0IiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6ODhlNDA1NzctMDc0OC00Y2M5LTk5MmUtNTViMTBkNzM5YjI5OjZkNTQwMmVmLTViMDctNTYxNC1hMzVhLTdlMGRkOTkxM2Q1OCBBY3Rpb25zLlJ1bm5lcjo4OGU0MDU3Ny0wNzQ4LTRjYzktOTkyZS01NWIxMGQ3MzliMjk6NmQ1NDAyZWYtNWIwNy01NjE0LWEzNWEtN2UwZGQ5OTEzZDU4IEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOjg4ZTQwNTc3LTA3NDgtNGNjOS05OTJlLTU1YjEwZDczOWIyOTo2ZDU0MDJlZi01YjA3LTU2MTQtYTM1YS03ZTBkZDk5MTNkNTggZ2VuZXJhdGVfaWRfdG9rZW46ODhlNDA1NzctMDc0OC00Y2M5LTk5MmUtNTViMTBkNzM5YjI5OjZkNTQwMmVmLTViMDctNTYxNC1hMzVhLTdlMGRkOTkxM2Q1OCBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6IjU1OTE0YzExMTE2ZjFlNjE3YmM1OGQ4N2JjZGUxODQxZmYwNTIyNDEiLCJ0cnVzdF90aWVyIjoiMSJ9.yqpljkDbNKxO6RiIjVxqeKm4BAZza9LTESoN13Q3U45Cr_NoQ_gLVVakFgB-nUQvMyf2vnfNTVK7FnMmf8GV3XVWem4YLQn6AN7A3loSC1GrdFhVLroWo_O_ngAlDI5wePkn04vFyD_ArZI9tGUTr9LzH8hmr0yMBtxnVd0kVm2piWOgguOWMT8BFlvNAJMspKvmhqLerydBRAO6oRSvkA5ysZZiCoyjcub8HCObM3Msj6mfP-FcvPaH2lfz6jSRXz32-CrG19MSwuRaMQJlMuiBoly2SrdgGo7UQziEYWLRhbIRhnBrfYrHkEoSF5epzbP-shQaZqON5DtDwDORFw", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_package_dependencies_axios: "^1.7.7", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/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@9.15.9/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@9.15.9/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_c07afbdf-b430-4078-bc7b-3c28ce588274", INVOCATION_ID: "45225ce9b21542efa74b2e51a8bf48fb", 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: "140", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --access public --tag latest --no-git-checks", npm_package_scripts_publish_npm_beta: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --access public --tag beta --no-git-checks", npm_package_scripts_publish_github: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --tag latest --no-git-checks", npm_package_scripts_publish_github_beta: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --tag beta --no-git-checks", npm_config_frozen_lockfile: "", npm_package_devDependencies__vitest_ui: "^1.2.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies__vue_eslint_config_typescript: "^12.0.0", npm_package_devDependencies_eslint: "^9.39.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000093204", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "feat/custom-permission-condition-builder", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "^2.14.36", 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", npm_package_scripts_test: "vitest", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__casl_ability: "^3.4.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^4.0.0", npm_package_devDependencies__vue_eslint_config_prettier: "^8.0.0", 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@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.1.0-dev", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts", npm_package_dependencies__feedmepos_hrm_permission: "workspace:*", npm_package_devDependencies__rushstack_eslint_patch: "^1.3.3", npm_package_devDependencies_eslint_plugin_unused_imports: "^4.3.0", npm_package_devDependencies_jsdom: "^24.0.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_uuid: "^10.0.0", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "55914c11116f1e617bc58d87bcde1841ff052241", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.2", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/feat/custom-permission-condition-builder", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", npm_package_devDependencies_globals: "^16.5.0", npm_package_scripts_format: "prettier --write src/", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_0e49c2be-7988-403c-afec-f8b9ff15456a", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_package_devDependencies_vue_eslint_parser: "^10.2.0", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/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/32//idtoken/88e40577-0748-4cc9-992e-55b10d739b29/6d5402ef-5b07-5614-a35a-7e0dd9913d58?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_0e49c2be-7988-403c-afec-f8b9ff15456a", npm_package_exports___types: "./dist/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_feature_flag: "^0.0.15", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_devDependencies_eslint_plugin_vue: "^9.33.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", 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_0e49c2be-7988-403c-afec-f8b9ff15456a", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1856
|
+
var da = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_f2cfef7c-e7c3-47a6-885e-d2db229fb3e0", npm_package_devDependencies__types_node: "^18.17.17", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", npm_package_devDependencies_vitest: "^1.2.0", USER: "runner", npm_config_always_auth: "", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v24.5.0 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.16", npm_package_devDependencies_vue_i18n: "10.0.5", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_f2cfef7c-e7c3-47a6-885e-d2db229fb3e0", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.2.0", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", npm_package_files_0: "dist", npm_package_devDependencies_eslint_import_resolver_typescript: "^4.4.4", HOME: "/home/runner", npm_package_devDependencies__eslint_js: "^9.39.2", npm_package_devDependencies__typescript_eslint_parser: "^8.52.0", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_devDependencies_eslint_config_prettier: "^10.1.8", 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.6.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "^1.29.10", npm_package_devDependencies_code_inspector_plugin: "^0.20.16", npm_package_devDependencies_npm_run_all2: "^6.0.6", 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: "1806", ACTIONS_ORCHESTRATION_ID: "f8bd90fb-7c1a-4f56-af6f-02e6c9eb903b.publish.publish.__default", npm_package_dependencies__feedmepos_ui_library: "^1.10.6", npm_package_dependencies_dayjs: "^1.11.10", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "VITE_TARGET_ENV=dev pnpm build:mf && pnpm build:dts", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.9.3", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^2.0.6", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260720.247.2", npm_package_scripts_dev: "vite", npm_package_devDependencies_prettier: "^3.7.4", npm_package_devDependencies_sass_embedded: "^1.93.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_f2cfef7c-e7c3-47a6-885e-d2db229fb3e0", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_devDependencies__vue_tsconfig: "^0.4.0", npm_package_devDependencies_eslint_plugin_import: "^2.32.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:12872", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.16", 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_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^8.52.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.12/x64", GITHUB_RUN_ID: "29978572712", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "768ab34bebbbc848daddbcb95a4471dad7160261", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.5/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9kZXZcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3ODQ4MDE2MjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc4NDc3OTQyNywiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjJmZDdhNGJmLWVkMjUtNTQ3OS04ZmZiLWMxNjUwZTE4N2YzYSIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc4NDc3OTEyNywib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCI4OTExNTQ3MDQzNFwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiMTZkYTQzODhhZTQ0YzgwNTk2ZTkzMWEyMDhmNDc4NDA1MDc2ODIxNVwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL2RldlwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIyOTk3ODU3MjcxMlwiLFwicnVuX251bWJlclwiOlwiMTQxXCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiNzY4YWIzNGJlYmJiYzg0OGRhZGRiY2I5NWE0NDcxZGFkNzE2MDI2MVwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJ3b3JrZmxvd19zaGFcIjpcIjc2OGFiMzRiZWJiYmM4NDhkYWRkYmNiOTVhNDQ3MWRhZDcxNjAyNjFcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL2hybS1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL2RldiIsIm9yY2hfaWQiOiJmOGJkOTBmYi03YzFhLTRmNTYtYWY2Zi0wMmU2YzllYjkwM2IucHVibGlzaC5wdWJsaXNoLl9fZGVmYXVsdCIsIm93bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwicGxhbl9pZCI6ImY4YmQ5MGZiLTdjMWEtNGY1Ni1hZjZmLTAyZTZjOWViOTAzYiIsInJlcG9zaXRvcnlfaWQiOiIxMTI0NjcyMjM1IiwicmVwb3NpdG9yeV9vd25lcl9pZCI6IjU0ODMxNTE1IiwicmVwb3NpdG9yeV92aXNpYmlsaXR5IjoicHJpdmF0ZSIsInJ1bl9pZCI6IjI5OTc4NTcyNzEyIiwicnVuX251bWJlciI6IjE0MSIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDAwOTU0MzgiLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czpmOGJkOTBmYi03YzFhLTRmNTYtYWY2Zi0wMmU2YzllYjkwM2I6MmZkN2E0YmYtZWQyNS01NDc5LThmZmItYzE2NTBlMTg3ZjNhIEFjdGlvbnMuUnVubmVyOmY4YmQ5MGZiLTdjMWEtNGY1Ni1hZjZmLTAyZTZjOWViOTAzYjoyZmQ3YTRiZi1lZDI1LTU0NzktOGZmYi1jMTY1MGUxODdmM2EgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6ZjhiZDkwZmItN2MxYS00ZjU2LWFmNmYtMDJlNmM5ZWI5MDNiOjJmZDdhNGJmLWVkMjUtNTQ3OS04ZmZiLWMxNjUwZTE4N2YzYSBnZW5lcmF0ZV9pZF90b2tlbjpmOGJkOTBmYi03YzFhLTRmNTYtYWY2Zi0wMmU2YzllYjkwM2I6MmZkN2E0YmYtZWQyNS01NDc5LThmZmItYzE2NTBlMTg3ZjNhIEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiNzY4YWIzNGJlYmJiYzg0OGRhZGRiY2I5NWE0NDcxZGFkNzE2MDI2MSIsInRydXN0X3RpZXIiOiIxIn0.H8SwdvScQax0bM9JYUs4Y_6fsYpgNPpLo4RTc8S22s29vPvE1O6Blkc_IrzEPhFDrfE16It6W_33dVZ_GAwRYiU5K_URRXgapD3t8cRBjxQdMH4LQybnpbbslJG0WbYZ51SclBn5gEQJd0zbT_8sgY8AtrskAM6jeRyQROJQkEwFKh2ZX2mDBDvI_4xMLtrIq4AuPCmvybXSAGonpbf0h8C0IOLhaSfOxTCLp_jZtVRG--XWwn1J18X7ym1r3-vdJc6jbZYyMsYkOvygntB8W_G1NMBhqgQZ8Xbe3Im71AKiqZXPVBaHGT0-etW2fPQkojpzyyriaz5VPcn2Scyg0w", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_package_dependencies_axios: "^1.7.7", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/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@9.15.9/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@9.15.9/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_29e64ee1-e035-46e5-b4bf-902fa58ce9fd", INVOCATION_ID: "2cbf39d49dff46c08bc6207e7f90afc4", 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: "141", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --access public --tag latest --no-git-checks", npm_package_scripts_publish_npm_beta: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --access public --tag beta --no-git-checks", npm_package_scripts_publish_github: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --tag latest --no-git-checks", npm_package_scripts_publish_github_beta: "pnpm build && pnpm publish --registry https://npm.pkg.github.com/ --tag beta --no-git-checks", npm_config_frozen_lockfile: "", npm_package_devDependencies__vitest_ui: "^1.2.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies__vue_eslint_config_typescript: "^12.0.0", npm_package_devDependencies_eslint: "^9.39.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000095438", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "^2.14.36", 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", npm_package_scripts_test: "vitest", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__casl_ability: "^3.4.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^4.0.0", npm_package_devDependencies__vue_eslint_config_prettier: "^8.0.0", 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@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.1.0-dev.2", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts", npm_package_dependencies__feedmepos_hrm_permission: "workspace:*", npm_package_devDependencies__rushstack_eslint_patch: "^1.3.3", npm_package_devDependencies_eslint_plugin_unused_imports: "^4.3.0", npm_package_devDependencies_jsdom: "^24.0.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_uuid: "^10.0.0", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "768ab34bebbbc848daddbcb95a4471dad7160261", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.2", 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", npm_package_devDependencies_globals: "^16.5.0", npm_package_scripts_format: "prettier --write src/", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_f2cfef7c-e7c3-47a6-885e-d2db229fb3e0", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_package_devDependencies_vue_eslint_parser: "^10.2.0", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/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/52//idtoken/f8bd90fb-7c1a-4f56-af6f-02e6c9eb903b/2fd7a4bf-ed25-5479-8ffb-c1650e187f3a?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_f2cfef7c-e7c3-47a6-885e-d2db229fb3e0", npm_package_exports___types: "./dist/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_feature_flag: "^0.0.15", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_devDependencies_eslint_plugin_vue: "^9.33.0", npm_package_devDependencies_postcss: "^8.4.31", 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_f2cfef7c-e7c3-47a6-885e-d2db229fb3e0", 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_f2cfef7c-e7c3-47a6-885e-d2db229fb3e0", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_package_dependencies_libphonenumber_js: "^1.11.1", NODE_ENV: "production" } };
|
|
1857
1857
|
const ma = "10.0.5";
|
|
1858
1858
|
function fa() {
|
|
1859
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
1859
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Ye().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Ye().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ye().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ye().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1860
1860
|
}
|
|
1861
1861
|
const Qe = {
|
|
1862
1862
|
// composer module errors
|
|
1863
|
-
UNEXPECTED_RETURN_TYPE:
|
|
1863
|
+
UNEXPECTED_RETURN_TYPE: Sr,
|
|
1864
1864
|
// 24
|
|
1865
1865
|
// legacy module errors
|
|
1866
1866
|
INVALID_ARGUMENT: 25,
|
|
@@ -1872,14 +1872,14 @@ const Qe = {
|
|
|
1872
1872
|
UNEXPECTED_ERROR: 32
|
|
1873
1873
|
};
|
|
1874
1874
|
function ct(e, ...t) {
|
|
1875
|
-
return
|
|
1875
|
+
return kt(e, null, void 0);
|
|
1876
1876
|
}
|
|
1877
|
-
const
|
|
1877
|
+
const Wt = /* @__PURE__ */ Ze("__translateVNode"), Yt = /* @__PURE__ */ Ze("__datetimeParts"), Zt = /* @__PURE__ */ Ze("__numberParts"), _a = Ze("__setPluralRules"), Qn = /* @__PURE__ */ Ze("__injectWithOption"), Bt = /* @__PURE__ */ Ze("__dispose");
|
|
1878
1878
|
function ut(e) {
|
|
1879
1879
|
if (!ee(e))
|
|
1880
1880
|
return e;
|
|
1881
1881
|
for (const t in e)
|
|
1882
|
-
if (
|
|
1882
|
+
if (Se(e, t))
|
|
1883
1883
|
if (!t.includes("."))
|
|
1884
1884
|
ee(e[t]) && ut(e[t]);
|
|
1885
1885
|
else {
|
|
@@ -1900,13 +1900,13 @@ function qn(e, t) {
|
|
|
1900
1900
|
const { messages: n, __i18n: s, messageResolver: o, flatJson: l } = t, c = q(n) ? n : _e(s) ? re() : { [e]: re() };
|
|
1901
1901
|
if (_e(s) && s.forEach((m) => {
|
|
1902
1902
|
if ("locale" in m && "resource" in m) {
|
|
1903
|
-
const { locale: v, resource:
|
|
1904
|
-
v ? (c[v] = c[v] || re(),
|
|
1903
|
+
const { locale: v, resource: I } = m;
|
|
1904
|
+
v ? (c[v] = c[v] || re(), It(I, c[v])) : It(I, c);
|
|
1905
1905
|
} else
|
|
1906
|
-
|
|
1906
|
+
W(m) && It(JSON.parse(m), c);
|
|
1907
1907
|
}), o == null && l)
|
|
1908
1908
|
for (const m in c)
|
|
1909
|
-
|
|
1909
|
+
Se(c, m) && ut(c[m]);
|
|
1910
1910
|
return c;
|
|
1911
1911
|
}
|
|
1912
1912
|
function es(e) {
|
|
@@ -1937,124 +1937,124 @@ function pa(e, t, n) {
|
|
|
1937
1937
|
}
|
|
1938
1938
|
}
|
|
1939
1939
|
}
|
|
1940
|
-
function
|
|
1940
|
+
function Rn(e) {
|
|
1941
1941
|
return ie(is, null, e, 0);
|
|
1942
1942
|
}
|
|
1943
|
-
const
|
|
1943
|
+
const Ln = "__INTLIFY_META__", Sn = () => [], ba = () => !1;
|
|
1944
1944
|
let An = 0;
|
|
1945
1945
|
function Dn(e) {
|
|
1946
|
-
return (t, n, s, o) => e(n, s,
|
|
1946
|
+
return (t, n, s, o) => e(n, s, Xt() || void 0, o);
|
|
1947
1947
|
}
|
|
1948
1948
|
const va = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1949
|
-
const e =
|
|
1949
|
+
const e = Xt();
|
|
1950
1950
|
let t = null;
|
|
1951
|
-
return e && (t = es(e)[
|
|
1951
|
+
return e && (t = es(e)[Ln]) ? { [Ln]: t } : null;
|
|
1952
1952
|
};
|
|
1953
1953
|
function ha(e = {}) {
|
|
1954
1954
|
const { __root: t, __injectWithOption: n } = e, s = t === void 0, o = e.flatJson, l = ln ? dt : ls;
|
|
1955
1955
|
let c = ue(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1956
1956
|
const m = l(
|
|
1957
1957
|
// prettier-ignore
|
|
1958
|
-
t && c ? t.locale.value :
|
|
1958
|
+
t && c ? t.locale.value : W(e.locale) ? e.locale : Et
|
|
1959
1959
|
), v = l(
|
|
1960
1960
|
// prettier-ignore
|
|
1961
|
-
t && c ? t.fallbackLocale.value :
|
|
1962
|
-
),
|
|
1963
|
-
let
|
|
1961
|
+
t && c ? t.fallbackLocale.value : W(e.fallbackLocale) || _e(e.fallbackLocale) || q(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : m.value
|
|
1962
|
+
), I = l(qn(m.value, e)), O = l(q(e.datetimeFormats) ? e.datetimeFormats : { [m.value]: {} }), L = l(q(e.numberFormats) ? e.numberFormats : { [m.value]: {} });
|
|
1963
|
+
let R = t ? t.missingWarn : ue(e.missingWarn) || yt(e.missingWarn) ? e.missingWarn : !0, U = t ? t.fallbackWarn : ue(e.fallbackWarn) || yt(e.fallbackWarn) ? e.fallbackWarn : !0, B = t ? t.fallbackRoot : ue(e.fallbackRoot) ? e.fallbackRoot : !0, M = !!e.fallbackFormat, P = le(e.missing) ? e.missing : null, u = le(e.missing) ? Dn(e.missing) : null, p = le(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : ue(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, i = !!e.escapeParameter;
|
|
1964
1964
|
const g = t ? t.modifiers : q(e.modifiers) ? e.modifiers : {};
|
|
1965
|
-
let
|
|
1965
|
+
let y = e.pluralRules || t && t.pluralRules, b;
|
|
1966
1966
|
b = (() => {
|
|
1967
1967
|
s && gn(null);
|
|
1968
1968
|
const _ = {
|
|
1969
1969
|
version: ma,
|
|
1970
1970
|
locale: m.value,
|
|
1971
1971
|
fallbackLocale: v.value,
|
|
1972
|
-
messages:
|
|
1972
|
+
messages: I.value,
|
|
1973
1973
|
modifiers: g,
|
|
1974
|
-
pluralRules:
|
|
1974
|
+
pluralRules: y,
|
|
1975
1975
|
missing: u === null ? void 0 : u,
|
|
1976
|
-
missingWarn:
|
|
1977
|
-
fallbackWarn:
|
|
1976
|
+
missingWarn: R,
|
|
1977
|
+
fallbackWarn: U,
|
|
1978
1978
|
fallbackFormat: M,
|
|
1979
1979
|
unresolving: !0,
|
|
1980
1980
|
postTranslation: p === null ? void 0 : p,
|
|
1981
|
-
warnHtmlMessage:
|
|
1981
|
+
warnHtmlMessage: S,
|
|
1982
1982
|
escapeParameter: i,
|
|
1983
1983
|
messageResolver: e.messageResolver,
|
|
1984
1984
|
messageCompiler: e.messageCompiler,
|
|
1985
1985
|
__meta: { framework: "vue" }
|
|
1986
1986
|
};
|
|
1987
|
-
_.datetimeFormats = O.value, _.numberFormats =
|
|
1988
|
-
const
|
|
1989
|
-
return s && gn(
|
|
1987
|
+
_.datetimeFormats = O.value, _.numberFormats = L.value, _.__datetimeFormatters = q(b) ? b.__datetimeFormatters : void 0, _.__numberFormatters = q(b) ? b.__numberFormatters : void 0;
|
|
1988
|
+
const C = Kr(_);
|
|
1989
|
+
return s && gn(C), C;
|
|
1990
1990
|
})(), rt(b, m.value, v.value);
|
|
1991
1991
|
function f() {
|
|
1992
1992
|
return [
|
|
1993
1993
|
m.value,
|
|
1994
1994
|
v.value,
|
|
1995
|
-
|
|
1995
|
+
I.value,
|
|
1996
1996
|
O.value,
|
|
1997
|
-
|
|
1997
|
+
L.value
|
|
1998
1998
|
];
|
|
1999
1999
|
}
|
|
2000
|
-
const
|
|
2000
|
+
const T = z({
|
|
2001
2001
|
get: () => m.value,
|
|
2002
2002
|
set: (_) => {
|
|
2003
2003
|
m.value = _, b.locale = m.value;
|
|
2004
2004
|
}
|
|
2005
|
-
}),
|
|
2005
|
+
}), E = z({
|
|
2006
2006
|
get: () => v.value,
|
|
2007
2007
|
set: (_) => {
|
|
2008
2008
|
v.value = _, b.fallbackLocale = v.value, rt(b, m.value, _);
|
|
2009
2009
|
}
|
|
2010
|
-
}), h = z(() =>
|
|
2011
|
-
function
|
|
2010
|
+
}), h = z(() => I.value), Z = /* @__PURE__ */ z(() => O.value), H = /* @__PURE__ */ z(() => L.value);
|
|
2011
|
+
function Y() {
|
|
2012
2012
|
return le(p) ? p : null;
|
|
2013
2013
|
}
|
|
2014
|
-
function
|
|
2014
|
+
function V(_) {
|
|
2015
2015
|
p = _, b.postTranslation = _;
|
|
2016
2016
|
}
|
|
2017
2017
|
function j() {
|
|
2018
2018
|
return P;
|
|
2019
2019
|
}
|
|
2020
|
-
function
|
|
2020
|
+
function $(_) {
|
|
2021
2021
|
_ !== null && (u = Dn(_)), P = _, b.missing = u;
|
|
2022
2022
|
}
|
|
2023
|
-
const te = (_,
|
|
2023
|
+
const te = (_, C, G, Q, Ee, Be) => {
|
|
2024
2024
|
f();
|
|
2025
|
-
let
|
|
2025
|
+
let Xe;
|
|
2026
2026
|
try {
|
|
2027
|
-
da.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (b.fallbackContext = t ?
|
|
2027
|
+
da.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (b.fallbackContext = t ? Jr() : void 0), Xe = _(b);
|
|
2028
2028
|
} finally {
|
|
2029
2029
|
__INTLIFY_PROD_DEVTOOLS__, s || (b.fallbackContext = void 0);
|
|
2030
2030
|
}
|
|
2031
|
-
if (
|
|
2032
|
-
ve(
|
|
2033
|
-
const [rs, vl] =
|
|
2034
|
-
return t &&
|
|
2031
|
+
if (G !== "translate exists" && // for not `te` (e.g `t`)
|
|
2032
|
+
ve(Xe) && Xe === Tt || G === "translate exists" && !Xe) {
|
|
2033
|
+
const [rs, vl] = C();
|
|
2034
|
+
return t && B ? Q(t) : Ee(rs);
|
|
2035
2035
|
} else {
|
|
2036
|
-
if (
|
|
2037
|
-
return
|
|
2036
|
+
if (Be(Xe))
|
|
2037
|
+
return Xe;
|
|
2038
2038
|
throw ct(Qe.UNEXPECTED_RETURN_TYPE);
|
|
2039
2039
|
}
|
|
2040
2040
|
};
|
|
2041
2041
|
function me(..._) {
|
|
2042
|
-
return te((
|
|
2042
|
+
return te((C) => Reflect.apply(On, null, [C, ..._]), () => Gt(..._), "translate", (C) => Reflect.apply(C.t, C, [..._]), (C) => C, (C) => W(C));
|
|
2043
2043
|
}
|
|
2044
2044
|
function pe(..._) {
|
|
2045
|
-
const [
|
|
2045
|
+
const [C, G, Q] = _;
|
|
2046
2046
|
if (Q && !ee(Q))
|
|
2047
2047
|
throw ct(Qe.INVALID_ARGUMENT);
|
|
2048
|
-
return me(
|
|
2048
|
+
return me(C, G, he({ resolvedMessage: !0 }, Q || {}));
|
|
2049
2049
|
}
|
|
2050
2050
|
function Ne(..._) {
|
|
2051
|
-
return te((
|
|
2051
|
+
return te((C) => Reflect.apply(yn, null, [C, ..._]), () => Vt(..._), "datetime format", (C) => Reflect.apply(C.d, C, [..._]), () => vn, (C) => W(C));
|
|
2052
2052
|
}
|
|
2053
2053
|
function be(..._) {
|
|
2054
|
-
return te((
|
|
2054
|
+
return te((C) => Reflect.apply(Nn, null, [C, ..._]), () => xt(..._), "number format", (C) => Reflect.apply(C.n, C, [..._]), () => vn, (C) => W(C));
|
|
2055
2055
|
}
|
|
2056
2056
|
function ge(_) {
|
|
2057
|
-
return _.map((
|
|
2057
|
+
return _.map((C) => W(C) || ve(C) || ue(C) ? Rn(String(C)) : C);
|
|
2058
2058
|
}
|
|
2059
2059
|
const K = {
|
|
2060
2060
|
normalize: ge,
|
|
@@ -2062,97 +2062,97 @@ function ha(e = {}) {
|
|
|
2062
2062
|
type: "vnode"
|
|
2063
2063
|
};
|
|
2064
2064
|
function oe(..._) {
|
|
2065
|
-
return te((
|
|
2066
|
-
let
|
|
2067
|
-
const Q =
|
|
2065
|
+
return te((C) => {
|
|
2066
|
+
let G;
|
|
2067
|
+
const Q = C;
|
|
2068
2068
|
try {
|
|
2069
|
-
Q.processor = K,
|
|
2069
|
+
Q.processor = K, G = Reflect.apply(On, null, [Q, ..._]);
|
|
2070
2070
|
} finally {
|
|
2071
2071
|
Q.processor = null;
|
|
2072
2072
|
}
|
|
2073
|
-
return
|
|
2074
|
-
}, () =>
|
|
2073
|
+
return G;
|
|
2074
|
+
}, () => Gt(..._), "translate", (C) => C[Wt](..._), (C) => [Rn(C)], (C) => _e(C));
|
|
2075
2075
|
}
|
|
2076
|
-
function
|
|
2077
|
-
return te((
|
|
2076
|
+
function We(..._) {
|
|
2077
|
+
return te((C) => Reflect.apply(Nn, null, [C, ..._]), () => xt(..._), "number format", (C) => C[Zt](..._), Sn, (C) => W(C) || _e(C));
|
|
2078
2078
|
}
|
|
2079
2079
|
function et(..._) {
|
|
2080
|
-
return te((
|
|
2080
|
+
return te((C) => Reflect.apply(yn, null, [C, ..._]), () => Vt(..._), "datetime format", (C) => C[Yt](..._), Sn, (C) => W(C) || _e(C));
|
|
2081
2081
|
}
|
|
2082
2082
|
function tt(_) {
|
|
2083
|
-
|
|
2083
|
+
y = _, b.pluralRules = y;
|
|
2084
2084
|
}
|
|
2085
|
-
function nt(_,
|
|
2085
|
+
function nt(_, C) {
|
|
2086
2086
|
return te(() => {
|
|
2087
2087
|
if (!_)
|
|
2088
2088
|
return !1;
|
|
2089
|
-
const
|
|
2090
|
-
return ze(
|
|
2091
|
-
}, () => [_], "translate exists", (
|
|
2089
|
+
const G = W(C) ? C : m.value, Q = Ue(G), Ee = b.messageResolver(Q, _);
|
|
2090
|
+
return ze(Ee) || Te(Ee) || W(Ee);
|
|
2091
|
+
}, () => [_], "translate exists", (G) => Reflect.apply(G.te, G, [_, C]), ba, (G) => ue(G));
|
|
2092
2092
|
}
|
|
2093
2093
|
function st(_) {
|
|
2094
|
-
let
|
|
2095
|
-
const
|
|
2096
|
-
for (let Q = 0; Q <
|
|
2097
|
-
const
|
|
2098
|
-
if (
|
|
2099
|
-
|
|
2094
|
+
let C = null;
|
|
2095
|
+
const G = Wn(b, v.value, m.value);
|
|
2096
|
+
for (let Q = 0; Q < G.length; Q++) {
|
|
2097
|
+
const Ee = I.value[G[Q]] || {}, Be = b.messageResolver(Ee, _);
|
|
2098
|
+
if (Be != null) {
|
|
2099
|
+
C = Be;
|
|
2100
2100
|
break;
|
|
2101
2101
|
}
|
|
2102
2102
|
}
|
|
2103
|
-
return
|
|
2103
|
+
return C;
|
|
2104
2104
|
}
|
|
2105
|
-
function
|
|
2106
|
-
const
|
|
2107
|
-
return
|
|
2105
|
+
function Ce(_) {
|
|
2106
|
+
const C = st(_);
|
|
2107
|
+
return C ?? (t ? t.tm(_) || {} : {});
|
|
2108
2108
|
}
|
|
2109
|
-
function
|
|
2110
|
-
return
|
|
2109
|
+
function Ue(_) {
|
|
2110
|
+
return I.value[_] || {};
|
|
2111
2111
|
}
|
|
2112
|
-
function
|
|
2112
|
+
function k(_, C) {
|
|
2113
2113
|
if (o) {
|
|
2114
|
-
const
|
|
2115
|
-
for (const Q in
|
|
2116
|
-
|
|
2117
|
-
|
|
2114
|
+
const G = { [_]: C };
|
|
2115
|
+
for (const Q in G)
|
|
2116
|
+
Se(G, Q) && ut(G[Q]);
|
|
2117
|
+
C = G[_];
|
|
2118
2118
|
}
|
|
2119
|
-
|
|
2119
|
+
I.value[_] = C, b.messages = I.value;
|
|
2120
2120
|
}
|
|
2121
|
-
function N(_,
|
|
2122
|
-
|
|
2123
|
-
const
|
|
2121
|
+
function N(_, C) {
|
|
2122
|
+
I.value[_] = I.value[_] || {};
|
|
2123
|
+
const G = { [_]: C };
|
|
2124
2124
|
if (o)
|
|
2125
|
-
for (const Q in
|
|
2126
|
-
|
|
2127
|
-
|
|
2125
|
+
for (const Q in G)
|
|
2126
|
+
Se(G, Q) && ut(G[Q]);
|
|
2127
|
+
C = G[_], It(C, I.value[_]), b.messages = I.value;
|
|
2128
2128
|
}
|
|
2129
2129
|
function A(_) {
|
|
2130
2130
|
return O.value[_] || {};
|
|
2131
2131
|
}
|
|
2132
|
-
function r(_,
|
|
2133
|
-
O.value[_] =
|
|
2132
|
+
function r(_, C) {
|
|
2133
|
+
O.value[_] = C, b.datetimeFormats = O.value, En(b, _, C);
|
|
2134
2134
|
}
|
|
2135
|
-
function a(_,
|
|
2136
|
-
O.value[_] = he(O.value[_] || {},
|
|
2135
|
+
function a(_, C) {
|
|
2136
|
+
O.value[_] = he(O.value[_] || {}, C), b.datetimeFormats = O.value, En(b, _, C);
|
|
2137
2137
|
}
|
|
2138
2138
|
function d(_) {
|
|
2139
|
-
return
|
|
2139
|
+
return L.value[_] || {};
|
|
2140
2140
|
}
|
|
2141
|
-
function F(_,
|
|
2142
|
-
|
|
2141
|
+
function F(_, C) {
|
|
2142
|
+
L.value[_] = C, b.numberFormats = L.value, kn(b, _, C);
|
|
2143
2143
|
}
|
|
2144
|
-
function D(_,
|
|
2145
|
-
|
|
2144
|
+
function D(_, C) {
|
|
2145
|
+
L.value[_] = he(L.value[_] || {}, C), b.numberFormats = L.value, kn(b, _, C);
|
|
2146
2146
|
}
|
|
2147
2147
|
An++, t && ln && (wt(t.locale, (_) => {
|
|
2148
2148
|
c && (m.value = _, b.locale = _, rt(b, m.value, v.value));
|
|
2149
2149
|
}), wt(t.fallbackLocale, (_) => {
|
|
2150
2150
|
c && (v.value = _, b.fallbackLocale = _, rt(b, m.value, v.value));
|
|
2151
2151
|
}));
|
|
2152
|
-
const
|
|
2152
|
+
const x = {
|
|
2153
2153
|
id: An,
|
|
2154
|
-
locale:
|
|
2155
|
-
fallbackLocale:
|
|
2154
|
+
locale: T,
|
|
2155
|
+
fallbackLocale: E,
|
|
2156
2156
|
get inheritLocale() {
|
|
2157
2157
|
return c;
|
|
2158
2158
|
},
|
|
@@ -2160,35 +2160,35 @@ function ha(e = {}) {
|
|
|
2160
2160
|
c = _, _ && t && (m.value = t.locale.value, v.value = t.fallbackLocale.value, rt(b, m.value, v.value));
|
|
2161
2161
|
},
|
|
2162
2162
|
get availableLocales() {
|
|
2163
|
-
return Object.keys(
|
|
2163
|
+
return Object.keys(I.value).sort();
|
|
2164
2164
|
},
|
|
2165
2165
|
messages: h,
|
|
2166
2166
|
get modifiers() {
|
|
2167
2167
|
return g;
|
|
2168
2168
|
},
|
|
2169
2169
|
get pluralRules() {
|
|
2170
|
-
return
|
|
2170
|
+
return y || {};
|
|
2171
2171
|
},
|
|
2172
2172
|
get isGlobal() {
|
|
2173
2173
|
return s;
|
|
2174
2174
|
},
|
|
2175
2175
|
get missingWarn() {
|
|
2176
|
-
return
|
|
2176
|
+
return R;
|
|
2177
2177
|
},
|
|
2178
2178
|
set missingWarn(_) {
|
|
2179
|
-
|
|
2179
|
+
R = _, b.missingWarn = R;
|
|
2180
2180
|
},
|
|
2181
2181
|
get fallbackWarn() {
|
|
2182
|
-
return
|
|
2182
|
+
return U;
|
|
2183
2183
|
},
|
|
2184
2184
|
set fallbackWarn(_) {
|
|
2185
|
-
|
|
2185
|
+
U = _, b.fallbackWarn = U;
|
|
2186
2186
|
},
|
|
2187
2187
|
get fallbackRoot() {
|
|
2188
|
-
return
|
|
2188
|
+
return B;
|
|
2189
2189
|
},
|
|
2190
2190
|
set fallbackRoot(_) {
|
|
2191
|
-
|
|
2191
|
+
B = _;
|
|
2192
2192
|
},
|
|
2193
2193
|
get fallbackFormat() {
|
|
2194
2194
|
return M;
|
|
@@ -2197,10 +2197,10 @@ function ha(e = {}) {
|
|
|
2197
2197
|
M = _, b.fallbackFormat = M;
|
|
2198
2198
|
},
|
|
2199
2199
|
get warnHtmlMessage() {
|
|
2200
|
-
return
|
|
2200
|
+
return S;
|
|
2201
2201
|
},
|
|
2202
2202
|
set warnHtmlMessage(_) {
|
|
2203
|
-
|
|
2203
|
+
S = _, b.warnHtmlMessage = _;
|
|
2204
2204
|
},
|
|
2205
2205
|
get escapeParameter() {
|
|
2206
2206
|
return i;
|
|
@@ -2209,16 +2209,16 @@ function ha(e = {}) {
|
|
|
2209
2209
|
i = _, b.escapeParameter = _;
|
|
2210
2210
|
},
|
|
2211
2211
|
t: me,
|
|
2212
|
-
getLocaleMessage:
|
|
2213
|
-
setLocaleMessage:
|
|
2212
|
+
getLocaleMessage: Ue,
|
|
2213
|
+
setLocaleMessage: k,
|
|
2214
2214
|
mergeLocaleMessage: N,
|
|
2215
|
-
getPostTranslationHandler:
|
|
2216
|
-
setPostTranslationHandler:
|
|
2215
|
+
getPostTranslationHandler: Y,
|
|
2216
|
+
setPostTranslationHandler: V,
|
|
2217
2217
|
getMissingHandler: j,
|
|
2218
|
-
setMissingHandler:
|
|
2218
|
+
setMissingHandler: $,
|
|
2219
2219
|
[_a]: tt
|
|
2220
2220
|
};
|
|
2221
|
-
return
|
|
2221
|
+
return x.datetimeFormats = Z, x.numberFormats = H, x.rt = pe, x.te = nt, x.tm = Ce, x.d = Ne, x.n = be, x.getDateTimeFormat = A, x.setDateTimeFormat = r, x.mergeDateTimeFormat = a, x.getNumberFormat = d, x.setNumberFormat = F, x.mergeNumberFormat = D, x[Qn] = n, x[Wt] = oe, x[Yt] = et, x[Zt] = We, x;
|
|
2222
2222
|
}
|
|
2223
2223
|
const en = {
|
|
2224
2224
|
tag: {
|
|
@@ -2261,23 +2261,23 @@ he({
|
|
|
2261
2261
|
validator: (e) => ve(e) || !isNaN(e)
|
|
2262
2262
|
}
|
|
2263
2263
|
}, en);
|
|
2264
|
-
function
|
|
2265
|
-
return _e(e) && !
|
|
2264
|
+
function Ia(e) {
|
|
2265
|
+
return _e(e) && !W(e[0]);
|
|
2266
2266
|
}
|
|
2267
2267
|
function ns(e, t, n, s) {
|
|
2268
2268
|
const { slots: o, attrs: l } = t;
|
|
2269
2269
|
return () => {
|
|
2270
2270
|
const c = { part: !0 };
|
|
2271
2271
|
let m = re();
|
|
2272
|
-
e.locale && (c.locale = e.locale),
|
|
2272
|
+
e.locale && (c.locale = e.locale), W(e.format) ? c.key = e.format : ee(e.format) && (W(e.format.key) && (c.key = e.format.key), m = Object.keys(e.format).reduce((R, U) => n.includes(U) ? he(re(), R, { [U]: e.format[U] }) : R, re()));
|
|
2273
2273
|
const v = s(e.value, c, m);
|
|
2274
|
-
let
|
|
2275
|
-
_e(v) ?
|
|
2276
|
-
const
|
|
2277
|
-
return
|
|
2278
|
-
}) :
|
|
2279
|
-
const O = he(re(), l),
|
|
2280
|
-
return
|
|
2274
|
+
let I = [c.key];
|
|
2275
|
+
_e(v) ? I = v.map((R, U) => {
|
|
2276
|
+
const B = o[R.type], M = B ? B({ [R.type]: R.value, index: U, parts: v }) : [R.value];
|
|
2277
|
+
return Ia(M) && (M[0].key = `${R.type}-${U}`), M;
|
|
2278
|
+
}) : W(v) && (I = [v]);
|
|
2279
|
+
const O = he(re(), l), L = W(e.tag) || ee(e.tag) ? e.tag : ts();
|
|
2280
|
+
return Un(L, O, I);
|
|
2281
2281
|
};
|
|
2282
2282
|
}
|
|
2283
2283
|
he({
|
|
@@ -2298,30 +2298,30 @@ he({
|
|
|
2298
2298
|
type: [String, Object]
|
|
2299
2299
|
}
|
|
2300
2300
|
}, en);
|
|
2301
|
-
const
|
|
2302
|
-
function
|
|
2303
|
-
const t =
|
|
2301
|
+
const ya = /* @__PURE__ */ Ze("global-vue-i18n");
|
|
2302
|
+
function Ct(e = {}) {
|
|
2303
|
+
const t = Xt();
|
|
2304
2304
|
if (t == null)
|
|
2305
2305
|
throw ct(Qe.MUST_BE_CALL_SETUP_TOP);
|
|
2306
2306
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2307
2307
|
throw ct(Qe.NOT_INSTALLED);
|
|
2308
|
-
const n =
|
|
2308
|
+
const n = Ea(t), s = ka(n), o = es(t), l = Na(e, o);
|
|
2309
2309
|
if (l === "global")
|
|
2310
2310
|
return pa(s, e, o), s;
|
|
2311
2311
|
if (l === "parent") {
|
|
2312
|
-
let v =
|
|
2312
|
+
let v = Ta(n, t, e.__useComponent);
|
|
2313
2313
|
return v == null && (v = s), v;
|
|
2314
2314
|
}
|
|
2315
2315
|
const c = n;
|
|
2316
2316
|
let m = c.__getInstance(t);
|
|
2317
2317
|
if (m == null) {
|
|
2318
2318
|
const v = he({}, e);
|
|
2319
|
-
"__i18n" in o && (v.__i18n = o.__i18n), s && (v.__root = s), m = ha(v), c.__composerExtend && (m[
|
|
2319
|
+
"__i18n" in o && (v.__i18n = o.__i18n), s && (v.__root = s), m = ha(v), c.__composerExtend && (m[Bt] = c.__composerExtend(m)), Oa(c, t, m), c.__setInstance(t, m);
|
|
2320
2320
|
}
|
|
2321
2321
|
return m;
|
|
2322
2322
|
}
|
|
2323
|
-
function
|
|
2324
|
-
const t = as(e.isCE ?
|
|
2323
|
+
function Ea(e) {
|
|
2324
|
+
const t = as(e.isCE ? ya : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2325
2325
|
if (!t)
|
|
2326
2326
|
throw ct(e.isCE ? Qe.NOT_INSTALLED_WITH_PROVIDE : Qe.UNEXPECTED_ERROR);
|
|
2327
2327
|
return t;
|
|
@@ -2329,13 +2329,13 @@ function Ia(e) {
|
|
|
2329
2329
|
function Na(e, t) {
|
|
2330
2330
|
return Nt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2331
2331
|
}
|
|
2332
|
-
function
|
|
2332
|
+
function ka(e) {
|
|
2333
2333
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2334
2334
|
}
|
|
2335
|
-
function
|
|
2335
|
+
function Ta(e, t, n = !1) {
|
|
2336
2336
|
let s = null;
|
|
2337
2337
|
const o = t.root;
|
|
2338
|
-
let l =
|
|
2338
|
+
let l = Ca(t, n);
|
|
2339
2339
|
for (; l != null; ) {
|
|
2340
2340
|
const c = e;
|
|
2341
2341
|
if (e.mode === "composition")
|
|
@@ -2350,7 +2350,7 @@ function ka(e, t, n = !1) {
|
|
|
2350
2350
|
}
|
|
2351
2351
|
return s;
|
|
2352
2352
|
}
|
|
2353
|
-
function
|
|
2353
|
+
function Ca(e, t = !1) {
|
|
2354
2354
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2355
2355
|
}
|
|
2356
2356
|
function Oa(e, t, n) {
|
|
@@ -2358,17 +2358,17 @@ function Oa(e, t, n) {
|
|
|
2358
2358
|
}, t), os(() => {
|
|
2359
2359
|
const s = n;
|
|
2360
2360
|
e.__deleteInstance(t);
|
|
2361
|
-
const o = s[
|
|
2362
|
-
o && (o(), delete s[
|
|
2361
|
+
const o = s[Bt];
|
|
2362
|
+
o && (o(), delete s[Bt]);
|
|
2363
2363
|
}, t);
|
|
2364
2364
|
}
|
|
2365
2365
|
fa();
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2366
|
+
Zr(Tr);
|
|
2367
|
+
Br(Gr);
|
|
2368
|
+
Xr(Wn);
|
|
2369
2369
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2370
|
-
const e =
|
|
2371
|
-
e.__INTLIFY__ = !0,
|
|
2370
|
+
const e = Ye();
|
|
2371
|
+
e.__INTLIFY__ = !0, Cr(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2372
2372
|
}
|
|
2373
2373
|
const pt = /* @__PURE__ */ we({
|
|
2374
2374
|
__name: "InheritPermissionTooltip",
|
|
@@ -2379,18 +2379,18 @@ const pt = /* @__PURE__ */ we({
|
|
|
2379
2379
|
}
|
|
2380
2380
|
},
|
|
2381
2381
|
setup(e) {
|
|
2382
|
-
const { t } =
|
|
2382
|
+
const { t } = Ct();
|
|
2383
2383
|
return (n, s) => {
|
|
2384
2384
|
const o = Me("FmIcon"), l = Me("FmTooltip");
|
|
2385
|
-
return
|
|
2385
|
+
return J(), Ae(l, {
|
|
2386
2386
|
variant: "plain",
|
|
2387
2387
|
placement: "right",
|
|
2388
2388
|
"z-index": 50
|
|
2389
2389
|
}, {
|
|
2390
2390
|
content: de(() => [
|
|
2391
|
-
se("div", null,
|
|
2392
|
-
(
|
|
2393
|
-
se("div", null, "- " +
|
|
2391
|
+
se("div", null, ke(X(t)("team.memberForm.permissions.inherited")), 1),
|
|
2392
|
+
(J(!0), ae(Oe, null, ye(e.item.setNames, (c) => (J(), ae("div", { key: c }, [
|
|
2393
|
+
se("div", null, "- " + ke(c), 1)
|
|
2394
2394
|
]))), 128))
|
|
2395
2395
|
]),
|
|
2396
2396
|
default: de(() => [
|
|
@@ -2419,60 +2419,60 @@ function Mn(e, t, n) {
|
|
|
2419
2419
|
actions: Array.from(l)
|
|
2420
2420
|
});
|
|
2421
2421
|
}
|
|
2422
|
-
const wn = Object.values(
|
|
2422
|
+
const wn = Object.values(ys), Ra = {
|
|
2423
2423
|
read: "View",
|
|
2424
2424
|
create: "Duplicate",
|
|
2425
2425
|
update: "Edit"
|
|
2426
2426
|
};
|
|
2427
|
-
function
|
|
2428
|
-
const { t: o } = qe(), { getFlagValue: l, getFlag: c } =
|
|
2429
|
-
var
|
|
2430
|
-
const f = /* @__PURE__ */ new Map(),
|
|
2431
|
-
for (const
|
|
2432
|
-
const
|
|
2433
|
-
if (!
|
|
2434
|
-
const
|
|
2435
|
-
if (n.value.includes(
|
|
2427
|
+
function La(e, t, n, s) {
|
|
2428
|
+
const { t: o } = qe(), { getFlagValue: l, getFlag: c } = Is(), m = z(() => {
|
|
2429
|
+
var Z;
|
|
2430
|
+
const f = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map();
|
|
2431
|
+
for (const H of t.value) {
|
|
2432
|
+
const Y = H.category;
|
|
2433
|
+
if (!Y) continue;
|
|
2434
|
+
const V = H.subject;
|
|
2435
|
+
if (n.value.includes(H.subject) || H.showByFeatureFlag && ((Z = c(H.showByFeatureFlag)) == null ? void 0 : Z.enabled) === !1 && l(H.showByFeatureFlag) === "true")
|
|
2436
2436
|
continue;
|
|
2437
|
-
f.has(
|
|
2438
|
-
const j =
|
|
2439
|
-
|
|
2440
|
-
label: o(`permissionSet.permissionLabels.${
|
|
2441
|
-
value:
|
|
2442
|
-
optionKey: `${
|
|
2443
|
-
}),
|
|
2444
|
-
}
|
|
2445
|
-
return [...f.keys()].sort((
|
|
2446
|
-
const
|
|
2447
|
-
return
|
|
2448
|
-
}).map((
|
|
2449
|
-
const
|
|
2450
|
-
for (const K of
|
|
2451
|
-
const oe =
|
|
2437
|
+
f.has(Y) || f.set(Y, []);
|
|
2438
|
+
const j = E.get(V) ?? 0;
|
|
2439
|
+
E.set(V, j + 1), f.get(Y).push({
|
|
2440
|
+
label: o(`permissionSet.permissionLabels.${V}`, H.label),
|
|
2441
|
+
value: V,
|
|
2442
|
+
optionKey: `${V}::${j}`
|
|
2443
|
+
}), T.has(V) || T.set(V, H);
|
|
2444
|
+
}
|
|
2445
|
+
return [...f.keys()].sort((H, Y) => {
|
|
2446
|
+
const V = wn.indexOf(H), j = wn.indexOf(Y);
|
|
2447
|
+
return V === -1 && j === -1 ? H.localeCompare(Y) : V === -1 ? 1 : j === -1 ? -1 : V - j;
|
|
2448
|
+
}).map((H) => {
|
|
2449
|
+
const Y = f.get(H), V = o(`permissionSet.categoryLabels.${H}`, H), j = /* @__PURE__ */ new Map();
|
|
2450
|
+
for (const K of Y) {
|
|
2451
|
+
const oe = T.get(K.value);
|
|
2452
2452
|
oe && j.set(K.value, oe.actions);
|
|
2453
2453
|
}
|
|
2454
|
-
const
|
|
2454
|
+
const $ = Y.some((K) => {
|
|
2455
2455
|
const oe = j.get(K.value);
|
|
2456
2456
|
return oe && oe.length > 1;
|
|
2457
|
-
}), te =
|
|
2457
|
+
}), te = $ ? [
|
|
2458
2458
|
...new Set(
|
|
2459
|
-
|
|
2459
|
+
Y.flatMap((K) => j.get(K.value) ?? []).filter((K) => K !== "manage")
|
|
2460
2460
|
)
|
|
2461
2461
|
] : [], me = /* @__PURE__ */ new Map();
|
|
2462
2462
|
for (const K of e.value)
|
|
2463
|
-
|
|
2464
|
-
const pe =
|
|
2465
|
-
(K) =>
|
|
2466
|
-
).map((K) => K.subject) : e.value.filter((K) =>
|
|
2463
|
+
Y.some((oe) => oe.value === K.subject) && !K.inverted && me.set(K.subject, new Set(K.actions));
|
|
2464
|
+
const pe = $ ? e.value.filter(
|
|
2465
|
+
(K) => Y.some((oe) => oe.value === K.subject) && !K.inverted && K.actions.includes("manage")
|
|
2466
|
+
).map((K) => K.subject) : e.value.filter((K) => Y.some((oe) => oe.value === K.subject) && !K.inverted).map((K) => K.subject), Ne = Y.find((K) => {
|
|
2467
2467
|
var oe;
|
|
2468
|
-
return (oe =
|
|
2468
|
+
return (oe = T.get(K.value)) == null ? void 0 : oe.isCategoryCover;
|
|
2469
2469
|
}), be = (Ne == null ? void 0 : Ne.value) ?? null, ge = be ? me.get(be) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), ce = ge.has("manage");
|
|
2470
2470
|
return {
|
|
2471
|
-
category:
|
|
2472
|
-
label:
|
|
2473
|
-
options:
|
|
2471
|
+
category: H,
|
|
2472
|
+
label: V,
|
|
2473
|
+
options: Y,
|
|
2474
2474
|
selectedSubjects: pe,
|
|
2475
|
-
isMultiAction:
|
|
2475
|
+
isMultiAction: $,
|
|
2476
2476
|
actionColumns: te,
|
|
2477
2477
|
permissionActionsMap: j,
|
|
2478
2478
|
selectedActionsMap: me,
|
|
@@ -2482,191 +2482,191 @@ function Sa(e, t, n, s) {
|
|
|
2482
2482
|
};
|
|
2483
2483
|
});
|
|
2484
2484
|
});
|
|
2485
|
-
function v(f,
|
|
2486
|
-
var
|
|
2487
|
-
const
|
|
2488
|
-
({ category: j, showByFeatureFlag:
|
|
2485
|
+
function v(f, T) {
|
|
2486
|
+
var V;
|
|
2487
|
+
const E = ((V = m.value.find((j) => j.category === f)) == null ? void 0 : V.options) ?? [], h = new Set(E.map((j) => j.value)), Z = new Set(T), H = /* @__PURE__ */ new Set(), Y = t.value.flatMap(
|
|
2488
|
+
({ category: j, showByFeatureFlag: $, isCategoryCover: te, ...me }) => {
|
|
2489
2489
|
const pe = me.subject;
|
|
2490
|
-
return !
|
|
2490
|
+
return !Z.has(pe) || H.has(pe) ? [] : (H.add(pe), [me]);
|
|
2491
2491
|
}
|
|
2492
2492
|
);
|
|
2493
2493
|
s("update:model-value", [
|
|
2494
2494
|
...e.value.filter((j) => !h.has(j.subject)),
|
|
2495
|
-
...
|
|
2495
|
+
...Y
|
|
2496
2496
|
]);
|
|
2497
2497
|
}
|
|
2498
|
-
function
|
|
2499
|
-
return f.options.length > 0 && f.options.every((
|
|
2498
|
+
function I(f) {
|
|
2499
|
+
return f.options.length > 0 && f.options.every((T) => f.selectedSubjects.includes(T.value));
|
|
2500
2500
|
}
|
|
2501
2501
|
function O(f) {
|
|
2502
2502
|
if (f.options.length === 0) return !1;
|
|
2503
|
-
const
|
|
2504
|
-
(
|
|
2503
|
+
const T = f.options.filter(
|
|
2504
|
+
(E) => f.selectedSubjects.includes(E.value)
|
|
2505
2505
|
).length;
|
|
2506
|
-
return
|
|
2506
|
+
return T > 0 && T < f.options.length;
|
|
2507
2507
|
}
|
|
2508
|
-
function
|
|
2509
|
-
const
|
|
2510
|
-
if (
|
|
2511
|
-
s("update:model-value",
|
|
2508
|
+
function L(f) {
|
|
2509
|
+
const T = new Set(f.options.map((h) => h.value)), E = e.value.filter((h) => !T.has(h.subject));
|
|
2510
|
+
if (I(f))
|
|
2511
|
+
s("update:model-value", E);
|
|
2512
2512
|
else {
|
|
2513
|
-
const h = /* @__PURE__ */ new Set(),
|
|
2514
|
-
({ category:
|
|
2515
|
-
const
|
|
2516
|
-
return !
|
|
2513
|
+
const h = /* @__PURE__ */ new Set(), Z = t.value.flatMap(
|
|
2514
|
+
({ category: H, showByFeatureFlag: Y, isCategoryCover: V, ...j }) => {
|
|
2515
|
+
const $ = j.subject;
|
|
2516
|
+
return !T.has($) || h.has($) ? [] : (h.add($), [j]);
|
|
2517
2517
|
}
|
|
2518
2518
|
);
|
|
2519
|
-
s("update:model-value", [...
|
|
2519
|
+
s("update:model-value", [...E, ...Z]);
|
|
2520
2520
|
}
|
|
2521
2521
|
}
|
|
2522
|
-
function
|
|
2523
|
-
const
|
|
2524
|
-
return
|
|
2522
|
+
function R(f, T) {
|
|
2523
|
+
const E = f.selectedActionsMap.get(T);
|
|
2524
|
+
return E ? E.has("manage") : !1;
|
|
2525
2525
|
}
|
|
2526
|
-
function
|
|
2527
|
-
const
|
|
2528
|
-
if (!
|
|
2529
|
-
const h =
|
|
2526
|
+
function U(f, T) {
|
|
2527
|
+
const E = f.permissionActionsMap.get(T);
|
|
2528
|
+
if (!E) return !1;
|
|
2529
|
+
const h = E.filter((Y) => Y !== "manage");
|
|
2530
2530
|
if (h.length === 0) return !1;
|
|
2531
|
-
const
|
|
2532
|
-
if (!
|
|
2533
|
-
const
|
|
2534
|
-
return
|
|
2535
|
-
}
|
|
2536
|
-
function
|
|
2537
|
-
if (
|
|
2538
|
-
const h = t.value.find((
|
|
2531
|
+
const Z = f.selectedActionsMap.get(T);
|
|
2532
|
+
if (!Z) return !1;
|
|
2533
|
+
const H = h.filter((Y) => Z.has(Y));
|
|
2534
|
+
return H.length > 0 && H.length < h.length;
|
|
2535
|
+
}
|
|
2536
|
+
function B(f, T, E) {
|
|
2537
|
+
if (E) {
|
|
2538
|
+
const h = t.value.find(($) => $.subject === T);
|
|
2539
2539
|
if (!h) return;
|
|
2540
2540
|
const {
|
|
2541
|
-
category:
|
|
2542
|
-
showByFeatureFlag:
|
|
2543
|
-
isCategoryCover:
|
|
2544
|
-
...
|
|
2545
|
-
} = h, j = e.value.filter((
|
|
2546
|
-
j.push(
|
|
2541
|
+
category: Z,
|
|
2542
|
+
showByFeatureFlag: H,
|
|
2543
|
+
isCategoryCover: Y,
|
|
2544
|
+
...V
|
|
2545
|
+
} = h, j = e.value.filter(($) => $.subject !== T);
|
|
2546
|
+
j.push(V), s("update:model-value", j);
|
|
2547
2547
|
} else
|
|
2548
2548
|
s(
|
|
2549
2549
|
"update:model-value",
|
|
2550
|
-
e.value.filter((h) => h.subject !==
|
|
2550
|
+
e.value.filter((h) => h.subject !== T)
|
|
2551
2551
|
);
|
|
2552
2552
|
}
|
|
2553
|
-
function M(f,
|
|
2554
|
-
const
|
|
2555
|
-
return
|
|
2553
|
+
function M(f, T) {
|
|
2554
|
+
const E = f.permissionActionsMap.get(T);
|
|
2555
|
+
return E ? E.some((h) => h !== "manage") : !1;
|
|
2556
2556
|
}
|
|
2557
|
-
function P(f,
|
|
2558
|
-
const h = f.selectedActionsMap.get(
|
|
2559
|
-
return h ? h.has(
|
|
2557
|
+
function P(f, T, E) {
|
|
2558
|
+
const h = f.selectedActionsMap.get(T);
|
|
2559
|
+
return h ? h.has(E) : !1;
|
|
2560
2560
|
}
|
|
2561
|
-
function u(f,
|
|
2562
|
-
return !f.coverSubject ||
|
|
2561
|
+
function u(f, T) {
|
|
2562
|
+
return !f.coverSubject || T === f.coverSubject ? !1 : f.coverCoversAll;
|
|
2563
2563
|
}
|
|
2564
|
-
function p(f,
|
|
2565
|
-
return !f.coverSubject ||
|
|
2564
|
+
function p(f, T, E) {
|
|
2565
|
+
return !f.coverSubject || T === f.coverSubject ? !1 : f.coverCoversAll ? !0 : f.coverSelectedActions.has(E);
|
|
2566
2566
|
}
|
|
2567
|
-
function
|
|
2568
|
-
const h = f.permissionActionsMap.get(
|
|
2569
|
-
return h ? h.includes(
|
|
2567
|
+
function S(f, T, E) {
|
|
2568
|
+
const h = f.permissionActionsMap.get(T);
|
|
2569
|
+
return h ? h.includes(E) : !1;
|
|
2570
2570
|
}
|
|
2571
|
-
function i(f,
|
|
2572
|
-
const h = [...e.value],
|
|
2573
|
-
if (
|
|
2574
|
-
if (
|
|
2575
|
-
const
|
|
2576
|
-
|
|
2571
|
+
function i(f, T, E) {
|
|
2572
|
+
const h = [...e.value], Z = h.findIndex((Y) => Y.subject === f && !Y.inverted);
|
|
2573
|
+
if (E)
|
|
2574
|
+
if (Z >= 0) {
|
|
2575
|
+
const Y = { ...h[Z] }, V = new Set(Y.actions);
|
|
2576
|
+
V.add(T), Y.actions = Array.from(V), h[Z] = Y;
|
|
2577
2577
|
} else {
|
|
2578
|
-
const
|
|
2579
|
-
if (!
|
|
2578
|
+
const Y = t.value.find((me) => me.subject === f);
|
|
2579
|
+
if (!Y) return;
|
|
2580
2580
|
const {
|
|
2581
|
-
category:
|
|
2581
|
+
category: V,
|
|
2582
2582
|
showByFeatureFlag: j,
|
|
2583
|
-
isCategoryCover:
|
|
2583
|
+
isCategoryCover: $,
|
|
2584
2584
|
...te
|
|
2585
|
-
} =
|
|
2586
|
-
h.push({ ...te, actions: [
|
|
2585
|
+
} = Y;
|
|
2586
|
+
h.push({ ...te, actions: [T] });
|
|
2587
2587
|
}
|
|
2588
|
-
else if (
|
|
2589
|
-
const
|
|
2590
|
-
|
|
2588
|
+
else if (Z >= 0) {
|
|
2589
|
+
const Y = { ...h[Z] }, V = Y.actions.filter((j) => j !== T);
|
|
2590
|
+
V.length === 0 ? h.splice(Z, 1) : (Y.actions = V, h[Z] = Y);
|
|
2591
2591
|
}
|
|
2592
|
-
const
|
|
2593
|
-
|
|
2592
|
+
const H = t.value.find((Y) => Y.subject === f);
|
|
2593
|
+
H && Mn(h, f, H.actions), s("update:model-value", h);
|
|
2594
2594
|
}
|
|
2595
|
-
function g(f,
|
|
2596
|
-
const
|
|
2597
|
-
(h) =>
|
|
2595
|
+
function g(f, T) {
|
|
2596
|
+
const E = f.options.filter(
|
|
2597
|
+
(h) => S(f, h.value, T)
|
|
2598
2598
|
);
|
|
2599
|
-
return
|
|
2600
|
-
(h) => P(f, h.value,
|
|
2599
|
+
return E.length === 0 ? !1 : E.every(
|
|
2600
|
+
(h) => P(f, h.value, T) || p(f, h.value, T)
|
|
2601
2601
|
);
|
|
2602
2602
|
}
|
|
2603
|
-
function
|
|
2604
|
-
const
|
|
2605
|
-
(
|
|
2603
|
+
function y(f, T) {
|
|
2604
|
+
const E = f.options.filter(
|
|
2605
|
+
(Z) => S(f, Z.value, T)
|
|
2606
2606
|
);
|
|
2607
|
-
if (
|
|
2608
|
-
const h =
|
|
2609
|
-
(
|
|
2607
|
+
if (E.length === 0) return !1;
|
|
2608
|
+
const h = E.filter(
|
|
2609
|
+
(Z) => P(f, Z.value, T) || p(f, Z.value, T)
|
|
2610
2610
|
).length;
|
|
2611
|
-
return h > 0 && h <
|
|
2611
|
+
return h > 0 && h < E.length;
|
|
2612
2612
|
}
|
|
2613
|
-
function b(f,
|
|
2613
|
+
function b(f, T, E) {
|
|
2614
2614
|
const h = [...e.value];
|
|
2615
|
-
for (const
|
|
2616
|
-
if (!
|
|
2617
|
-
const
|
|
2618
|
-
(j) => j.subject ===
|
|
2615
|
+
for (const Z of f.options) {
|
|
2616
|
+
if (!S(f, Z.value, T)) continue;
|
|
2617
|
+
const H = Z.value, Y = h.findIndex(
|
|
2618
|
+
(j) => j.subject === H && !j.inverted
|
|
2619
2619
|
);
|
|
2620
|
-
if (
|
|
2621
|
-
if (
|
|
2622
|
-
const j = { ...h[
|
|
2623
|
-
|
|
2620
|
+
if (E)
|
|
2621
|
+
if (Y >= 0) {
|
|
2622
|
+
const j = { ...h[Y] }, $ = new Set(j.actions);
|
|
2623
|
+
$.add(T), j.actions = Array.from($), h[Y] = j;
|
|
2624
2624
|
} else {
|
|
2625
|
-
const j = t.value.find((Ne) => Ne.subject ===
|
|
2625
|
+
const j = t.value.find((Ne) => Ne.subject === H);
|
|
2626
2626
|
if (!j) continue;
|
|
2627
2627
|
const {
|
|
2628
|
-
category:
|
|
2628
|
+
category: $,
|
|
2629
2629
|
showByFeatureFlag: te,
|
|
2630
2630
|
isCategoryCover: me,
|
|
2631
2631
|
...pe
|
|
2632
2632
|
} = j;
|
|
2633
|
-
h.push({ ...pe, actions: [
|
|
2633
|
+
h.push({ ...pe, actions: [T] });
|
|
2634
2634
|
}
|
|
2635
|
-
else if (
|
|
2636
|
-
const j = { ...h[
|
|
2637
|
-
|
|
2635
|
+
else if (Y >= 0) {
|
|
2636
|
+
const j = { ...h[Y] }, $ = j.actions.filter((te) => te !== T);
|
|
2637
|
+
$.length === 0 ? h.splice(Y, 1) : (j.actions = $, h[Y] = j);
|
|
2638
2638
|
}
|
|
2639
|
-
const
|
|
2640
|
-
|
|
2639
|
+
const V = t.value.find((j) => j.subject === H);
|
|
2640
|
+
V && Mn(h, H, V.actions);
|
|
2641
2641
|
}
|
|
2642
2642
|
s("update:model-value", h);
|
|
2643
2643
|
}
|
|
2644
2644
|
function w(f) {
|
|
2645
|
-
const
|
|
2646
|
-
return o(
|
|
2645
|
+
const T = `permissionSet.actionLabels.${f}`, E = Ra[f] ?? f.charAt(0).toUpperCase() + f.slice(1);
|
|
2646
|
+
return o(T, E);
|
|
2647
2647
|
}
|
|
2648
2648
|
return {
|
|
2649
2649
|
categoryGroups: m,
|
|
2650
2650
|
toggleCategory: v,
|
|
2651
|
-
isAllManageChecked:
|
|
2651
|
+
isAllManageChecked: I,
|
|
2652
2652
|
isAllManageIndeterminate: O,
|
|
2653
|
-
toggleAllManage:
|
|
2654
|
-
isManageChecked:
|
|
2655
|
-
isManageIndeterminate:
|
|
2656
|
-
toggleManage:
|
|
2653
|
+
toggleAllManage: L,
|
|
2654
|
+
isManageChecked: R,
|
|
2655
|
+
isManageIndeterminate: U,
|
|
2656
|
+
toggleManage: B,
|
|
2657
2657
|
hasNonManageActions: M,
|
|
2658
2658
|
isActionChecked: P,
|
|
2659
2659
|
isRowFullyCoveredByCover: u,
|
|
2660
2660
|
isActionCoveredByCover: p,
|
|
2661
|
-
permissionDefinesAction:
|
|
2661
|
+
permissionDefinesAction: S,
|
|
2662
2662
|
toggleAction: i,
|
|
2663
2663
|
isAllActionChecked: g,
|
|
2664
|
-
isAllActionIndeterminate:
|
|
2664
|
+
isAllActionIndeterminate: y,
|
|
2665
2665
|
toggleAllAction: b,
|
|
2666
2666
|
actionLabel: w
|
|
2667
2667
|
};
|
|
2668
2668
|
}
|
|
2669
|
-
const
|
|
2669
|
+
const Sa = { class: "flex flex-col gap-16" }, Aa = { class: "fm-typo-en-title-sm-600" }, Da = { class: "mt-16" }, Ma = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, wa = ["onClick"], Fa = { class: "flex justify-center" }, Pa = { class: "flex items-center min-w-0 gap-8" }, ja = ["title", "onClick"], Ua = { class: "flex justify-center" }, Va = /* @__PURE__ */ we({
|
|
2670
2670
|
__name: "BasePermission",
|
|
2671
2671
|
props: {
|
|
2672
2672
|
modelValue: {
|
|
@@ -2688,146 +2688,146 @@ const Ra = { class: "flex flex-col gap-16" }, Aa = { class: "fm-typo-en-title-sm
|
|
|
2688
2688
|
},
|
|
2689
2689
|
emits: ["update:model-value"],
|
|
2690
2690
|
setup(e, { emit: t }) {
|
|
2691
|
-
const n = e, s = t, { t: o } = qe(), l = z(() => [...
|
|
2691
|
+
const n = e, s = t, { t: o } = qe(), l = z(() => [...Vn, ...n.additionalPermissions]), {
|
|
2692
2692
|
categoryGroups: c,
|
|
2693
2693
|
isAllManageChecked: m,
|
|
2694
2694
|
isAllManageIndeterminate: v,
|
|
2695
|
-
toggleAllManage:
|
|
2695
|
+
toggleAllManage: I,
|
|
2696
2696
|
isManageChecked: O,
|
|
2697
|
-
isManageIndeterminate:
|
|
2698
|
-
toggleManage:
|
|
2699
|
-
isActionChecked:
|
|
2700
|
-
isRowFullyCoveredByCover:
|
|
2697
|
+
isManageIndeterminate: L,
|
|
2698
|
+
toggleManage: R,
|
|
2699
|
+
isActionChecked: U,
|
|
2700
|
+
isRowFullyCoveredByCover: B,
|
|
2701
2701
|
isActionCoveredByCover: M,
|
|
2702
2702
|
permissionDefinesAction: P,
|
|
2703
2703
|
toggleAction: u,
|
|
2704
2704
|
isAllActionChecked: p,
|
|
2705
|
-
isAllActionIndeterminate:
|
|
2705
|
+
isAllActionIndeterminate: S,
|
|
2706
2706
|
toggleAllAction: i,
|
|
2707
2707
|
actionLabel: g
|
|
2708
|
-
} =
|
|
2708
|
+
} = La(
|
|
2709
2709
|
tn(n, "modelValue"),
|
|
2710
2710
|
l,
|
|
2711
2711
|
tn(n, "excludedSubjects"),
|
|
2712
2712
|
(w, f) => s("update:model-value", f)
|
|
2713
2713
|
);
|
|
2714
|
-
function
|
|
2714
|
+
function y(w) {
|
|
2715
2715
|
const f = w.selectedSubjects.length;
|
|
2716
2716
|
return f === 0 ? "" : o("team.memberForm.permissions.allowedCount", { count: f });
|
|
2717
2717
|
}
|
|
2718
2718
|
function b(w, f) {
|
|
2719
|
-
return O(w, f) ||
|
|
2720
|
-
(
|
|
2719
|
+
return O(w, f) || B(w, f) ? !0 : w.actionColumns.some(
|
|
2720
|
+
(T) => P(w, f, T) && (U(w, f, T) || M(w, f, T))
|
|
2721
2721
|
);
|
|
2722
2722
|
}
|
|
2723
2723
|
return (w, f) => {
|
|
2724
|
-
const
|
|
2725
|
-
return
|
|
2726
|
-
(
|
|
2727
|
-
key:
|
|
2728
|
-
subtitle: E
|
|
2724
|
+
const T = Me("FmCheckbox");
|
|
2725
|
+
return J(), ae("div", Sa, [
|
|
2726
|
+
(J(!0), ae(Oe, null, ye(X(c), (E) => (J(), Ae(Ht, {
|
|
2727
|
+
key: E.category,
|
|
2728
|
+
subtitle: y(E)
|
|
2729
2729
|
}, {
|
|
2730
2730
|
title: de(() => [
|
|
2731
|
-
se("p", Aa,
|
|
2731
|
+
se("p", Aa, ke(E.label), 1)
|
|
2732
2732
|
]),
|
|
2733
2733
|
default: de(() => [
|
|
2734
2734
|
se("div", Da, [
|
|
2735
2735
|
se("div", {
|
|
2736
2736
|
class: "grid items-center px-12 py-8",
|
|
2737
|
-
style:
|
|
2738
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2737
|
+
style: Je({
|
|
2738
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${E.actionColumns.length + 1}, 80px)`
|
|
2739
2739
|
})
|
|
2740
2740
|
}, [
|
|
2741
2741
|
f[0] || (f[0] = se("div", null, null, -1)),
|
|
2742
|
-
se("div", Ma,
|
|
2743
|
-
(
|
|
2742
|
+
se("div", Ma, ke(X(o)("team.memberForm.permissions.columnManage")), 1),
|
|
2743
|
+
(J(!0), ae(Oe, null, ye(E.actionColumns, (h) => (J(), ae("div", {
|
|
2744
2744
|
key: `header-${h}`,
|
|
2745
2745
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2746
|
-
},
|
|
2746
|
+
}, ke(X(g)(h)), 1))), 128))
|
|
2747
2747
|
], 4),
|
|
2748
2748
|
se("div", {
|
|
2749
2749
|
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
2750
|
-
style:
|
|
2751
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2750
|
+
style: Je({
|
|
2751
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${E.actionColumns.length + 1}, 80px)`
|
|
2752
2752
|
})
|
|
2753
2753
|
}, [
|
|
2754
2754
|
se("div", {
|
|
2755
2755
|
class: "cursor-pointer font-semibold",
|
|
2756
|
-
onClick: (h) => !e.disable &&
|
|
2757
|
-
},
|
|
2756
|
+
onClick: (h) => !e.disable && X(I)(E)
|
|
2757
|
+
}, ke(X(o)("team.labels.all")), 9, wa),
|
|
2758
2758
|
se("div", Fa, [
|
|
2759
|
-
ie(
|
|
2760
|
-
"model-value":
|
|
2761
|
-
indeterminate:
|
|
2759
|
+
ie(T, {
|
|
2760
|
+
"model-value": X(m)(E),
|
|
2761
|
+
indeterminate: X(v)(E),
|
|
2762
2762
|
value: !0,
|
|
2763
2763
|
disabled: e.disable,
|
|
2764
2764
|
size: "sm",
|
|
2765
2765
|
dense: "",
|
|
2766
|
-
"onUpdate:modelValue": (h) =>
|
|
2766
|
+
"onUpdate:modelValue": (h) => X(I)(E)
|
|
2767
2767
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2768
2768
|
]),
|
|
2769
|
-
(
|
|
2769
|
+
(J(!0), ae(Oe, null, ye(E.actionColumns, (h) => (J(), ae("div", {
|
|
2770
2770
|
key: `all-${h}`,
|
|
2771
2771
|
class: "flex justify-center"
|
|
2772
2772
|
}, [
|
|
2773
|
-
ie(
|
|
2774
|
-
"model-value":
|
|
2775
|
-
indeterminate:
|
|
2773
|
+
ie(T, {
|
|
2774
|
+
"model-value": X(p)(E, h),
|
|
2775
|
+
indeterminate: X(S)(E, h),
|
|
2776
2776
|
value: h,
|
|
2777
2777
|
disabled: e.disable,
|
|
2778
2778
|
size: "sm",
|
|
2779
2779
|
dense: "",
|
|
2780
|
-
"onUpdate:modelValue": (
|
|
2780
|
+
"onUpdate:modelValue": (Z) => X(i)(E, h, Z)
|
|
2781
2781
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2782
2782
|
]))), 128))
|
|
2783
2783
|
], 4),
|
|
2784
2784
|
f[1] || (f[1] = se("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2785
|
-
(
|
|
2785
|
+
(J(!0), ae(Oe, null, ye(E.options, (h) => (J(), ae("div", {
|
|
2786
2786
|
key: h.optionKey,
|
|
2787
2787
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2788
|
-
style:
|
|
2789
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2788
|
+
style: Je({
|
|
2789
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${E.actionColumns.length + 1}, 80px)`
|
|
2790
2790
|
})
|
|
2791
2791
|
}, [
|
|
2792
2792
|
se("div", Pa, [
|
|
2793
2793
|
se("span", {
|
|
2794
2794
|
class: "block truncate cursor-pointer",
|
|
2795
2795
|
title: h.label,
|
|
2796
|
-
onClick: (
|
|
2797
|
-
},
|
|
2798
|
-
|
|
2796
|
+
onClick: (Z) => !e.disable && !X(B)(E, h.value) && X(R)(E, h.value, !X(O)(E, h.value))
|
|
2797
|
+
}, ke(h.label), 9, ja),
|
|
2798
|
+
Re(w.$slots, `checkbox-${h.value}-append`, {
|
|
2799
2799
|
option: h,
|
|
2800
|
-
isEffectiveSelected: b(
|
|
2801
|
-
isCoveredByCover:
|
|
2800
|
+
isEffectiveSelected: b(E, h.value),
|
|
2801
|
+
isCoveredByCover: X(B)(E, h.value) || E.actionColumns.some((Z) => X(M)(E, h.value, Z))
|
|
2802
2802
|
}),
|
|
2803
|
-
|
|
2803
|
+
Re(w.$slots, `checkbox-${h.value}-icon`, {
|
|
2804
2804
|
option: h,
|
|
2805
|
-
isEffectiveSelected: b(
|
|
2806
|
-
isCoveredByCover:
|
|
2805
|
+
isEffectiveSelected: b(E, h.value),
|
|
2806
|
+
isCoveredByCover: X(B)(E, h.value) || E.actionColumns.some((Z) => X(M)(E, h.value, Z))
|
|
2807
2807
|
})
|
|
2808
2808
|
]),
|
|
2809
|
-
se("div",
|
|
2810
|
-
ie(
|
|
2811
|
-
"model-value":
|
|
2809
|
+
se("div", Ua, [
|
|
2810
|
+
ie(T, {
|
|
2811
|
+
"model-value": X(O)(E, h.value) || X(B)(E, h.value),
|
|
2812
2812
|
value: h.value,
|
|
2813
|
-
disabled: e.disable ||
|
|
2814
|
-
indeterminate:
|
|
2813
|
+
disabled: e.disable || X(B)(E, h.value),
|
|
2814
|
+
indeterminate: X(L)(E, h.value),
|
|
2815
2815
|
size: "sm",
|
|
2816
|
-
"onUpdate:modelValue": (
|
|
2816
|
+
"onUpdate:modelValue": (Z) => X(R)(E, h.value, Z)
|
|
2817
2817
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2818
2818
|
]),
|
|
2819
|
-
(
|
|
2820
|
-
key: `${h.optionKey}-${
|
|
2819
|
+
(J(!0), ae(Oe, null, ye(E.actionColumns, (Z) => (J(), ae("div", {
|
|
2820
|
+
key: `${h.optionKey}-${Z}`,
|
|
2821
2821
|
class: "flex justify-center"
|
|
2822
2822
|
}, [
|
|
2823
|
-
|
|
2823
|
+
X(P)(E, h.value, Z) ? (J(), Ae(T, {
|
|
2824
2824
|
key: 0,
|
|
2825
|
-
"model-value":
|
|
2826
|
-
value:
|
|
2827
|
-
disabled: e.disable ||
|
|
2825
|
+
"model-value": X(U)(E, h.value, Z) || X(M)(E, h.value, Z),
|
|
2826
|
+
value: Z,
|
|
2827
|
+
disabled: e.disable || X(M)(E, h.value, Z),
|
|
2828
2828
|
size: "sm",
|
|
2829
|
-
"onUpdate:modelValue": (
|
|
2830
|
-
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) :
|
|
2829
|
+
"onUpdate:modelValue": (H) => X(u)(h.value, Z, H)
|
|
2830
|
+
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Le("", !0)
|
|
2831
2831
|
]))), 128))
|
|
2832
2832
|
], 4))), 128))
|
|
2833
2833
|
])
|
|
@@ -2837,13 +2837,13 @@ const Ra = { class: "flex flex-col gap-16" }, Aa = { class: "fm-typo-en-title-sm
|
|
|
2837
2837
|
]);
|
|
2838
2838
|
};
|
|
2839
2839
|
}
|
|
2840
|
-
}),
|
|
2840
|
+
}), xa = { class: "space-y-16" }, Ga = {
|
|
2841
2841
|
key: 0,
|
|
2842
2842
|
class: "flex fm-typo-en-title-sm-600"
|
|
2843
|
-
},
|
|
2843
|
+
}, Wa = {
|
|
2844
2844
|
key: 0,
|
|
2845
2845
|
class: "q-mr-xs text-red col"
|
|
2846
|
-
},
|
|
2846
|
+
}, Ya = { class: "form-input" }, Za = /* @__PURE__ */ we({
|
|
2847
2847
|
__name: "AppForm",
|
|
2848
2848
|
props: {
|
|
2849
2849
|
title: {
|
|
@@ -2861,30 +2861,30 @@ const Ra = { class: "flex flex-col gap-16" }, Aa = { class: "fm-typo-en-title-sm
|
|
|
2861
2861
|
},
|
|
2862
2862
|
setup(e) {
|
|
2863
2863
|
const t = e;
|
|
2864
|
-
return (n, s) => (
|
|
2865
|
-
|
|
2866
|
-
t.title ? (
|
|
2864
|
+
return (n, s) => (J(), ae("div", xa, [
|
|
2865
|
+
Re(n.$slots, "top", {}, () => [
|
|
2866
|
+
t.title ? (J(), ae("div", Ga, [
|
|
2867
2867
|
se("div", null, [
|
|
2868
|
-
t.required ? (
|
|
2869
|
-
cs(
|
|
2868
|
+
t.required ? (J(), ae("span", Wa, "*")) : Le("", !0),
|
|
2869
|
+
cs(ke(t.title), 1)
|
|
2870
2870
|
]),
|
|
2871
|
-
|
|
2872
|
-
])) :
|
|
2871
|
+
Re(n.$slots, "title-right")
|
|
2872
|
+
])) : Le("", !0)
|
|
2873
2873
|
]),
|
|
2874
|
-
se("div",
|
|
2875
|
-
|
|
2874
|
+
se("div", Ya, [
|
|
2875
|
+
Re(n.$slots, "default")
|
|
2876
2876
|
])
|
|
2877
2877
|
]));
|
|
2878
2878
|
}
|
|
2879
2879
|
});
|
|
2880
|
-
function
|
|
2880
|
+
function Ba(e, t) {
|
|
2881
2881
|
let n = "", s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
2882
2882
|
const o = s.length;
|
|
2883
2883
|
for (let l = 0; l < e; l++)
|
|
2884
2884
|
n += s.charAt(Math.floor(Math.random() * o));
|
|
2885
2885
|
return n;
|
|
2886
2886
|
}
|
|
2887
|
-
const
|
|
2887
|
+
const Xa = { class: "col flex items-center" }, Ha = {
|
|
2888
2888
|
key: 1,
|
|
2889
2889
|
class: "q-pa-sm form-error-message text-error"
|
|
2890
2890
|
}, ss = /* @__PURE__ */ we({
|
|
@@ -2945,98 +2945,98 @@ const Ha = { class: "col flex items-center" }, Ya = {
|
|
|
2945
2945
|
},
|
|
2946
2946
|
emits: ["update:model-value"],
|
|
2947
2947
|
setup(e, { emit: t }) {
|
|
2948
|
-
const n = e, s = t, { t: o } = qe(), l = dt(!1), c = us(), m = z(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), v = `checkbox-${
|
|
2948
|
+
const n = e, s = t, { t: o } = qe(), l = dt(!1), c = us(), m = z(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), v = `checkbox-${Ba(6)}`, I = z(() => m.value !== !0), O = z(
|
|
2949
2949
|
() => n.modelValue.filter((M) => n.options.some((P) => P.value === M))
|
|
2950
|
-
),
|
|
2950
|
+
), L = z(
|
|
2951
2951
|
() => typeof n.showAllToggle == "boolean" ? o("team.labels.all") : n.showAllToggle
|
|
2952
|
-
),
|
|
2953
|
-
function
|
|
2952
|
+
), R = z(() => n.options.length > 0 && n.options.length === O.value.length);
|
|
2953
|
+
function U() {
|
|
2954
2954
|
const M = n.modelValue.filter((P) => !O.value.includes(P));
|
|
2955
|
-
if (
|
|
2955
|
+
if (R.value === !0)
|
|
2956
2956
|
s("update:model-value", M);
|
|
2957
2957
|
else {
|
|
2958
2958
|
const P = n.includeDisabledOptionsWhenSelectAll ? n.options.map((u) => u.value) : n.options.filter((u) => !u.disabled).map((u) => u.value);
|
|
2959
2959
|
s("update:model-value", [...M, ...P]);
|
|
2960
2960
|
}
|
|
2961
2961
|
}
|
|
2962
|
-
function
|
|
2962
|
+
function B(M, P) {
|
|
2963
2963
|
let u = gt(n.modelValue);
|
|
2964
2964
|
P ? u.every((p) => p !== M) && u.push(M) : u = u.filter((p) => p !== M), s("update:model-value", u);
|
|
2965
2965
|
}
|
|
2966
2966
|
return (M, P) => {
|
|
2967
2967
|
const u = Me("FmCheckbox");
|
|
2968
|
-
return
|
|
2968
|
+
return J(), Ae(Za, {
|
|
2969
2969
|
id: v,
|
|
2970
2970
|
title: e.title,
|
|
2971
2971
|
required: !1
|
|
2972
2972
|
}, {
|
|
2973
2973
|
top: de(() => [
|
|
2974
|
-
|
|
2974
|
+
Re(M.$slots, "top")
|
|
2975
2975
|
]),
|
|
2976
2976
|
default: de(() => [
|
|
2977
|
-
n.showAllToggle ? (
|
|
2977
|
+
n.showAllToggle ? (J(), Ae(u, {
|
|
2978
2978
|
key: 0,
|
|
2979
|
-
"model-value":
|
|
2979
|
+
"model-value": R.value,
|
|
2980
2980
|
disabled: e.disable,
|
|
2981
|
-
label:
|
|
2982
|
-
style:
|
|
2981
|
+
label: L.value,
|
|
2982
|
+
style: Je(`margin-bottom: ${n.gutter}px`),
|
|
2983
2983
|
size: "sm",
|
|
2984
2984
|
dense: "",
|
|
2985
|
-
value:
|
|
2986
|
-
"onUpdate:modelValue":
|
|
2987
|
-
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) :
|
|
2988
|
-
(
|
|
2985
|
+
value: L.value,
|
|
2986
|
+
"onUpdate:modelValue": U
|
|
2987
|
+
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Le("", !0),
|
|
2988
|
+
(J(!0), ae(Oe, null, ye(e.options, (p, S) => (J(), ae("div", {
|
|
2989
2989
|
key: p.value,
|
|
2990
|
-
style:
|
|
2991
|
-
class: at(
|
|
2990
|
+
style: Je(`margin-bottom: ${S < e.options.length - 1 ? n.gutter : 0}px`),
|
|
2991
|
+
class: at(S < e.options.length - 1 ? "q-mb-sm" : "")
|
|
2992
2992
|
}, [
|
|
2993
2993
|
se("div", {
|
|
2994
2994
|
class: at(["row justify-between", e.alignCenter ? "items-center" : "items-start"])
|
|
2995
2995
|
}, [
|
|
2996
|
-
se("div",
|
|
2996
|
+
se("div", Xa, [
|
|
2997
2997
|
ie(u, {
|
|
2998
2998
|
"model-value": e.modelValue.includes(p.value),
|
|
2999
2999
|
disabled: e.disable || p.disabled,
|
|
3000
3000
|
size: "sm",
|
|
3001
3001
|
label: p.label,
|
|
3002
3002
|
value: p.label,
|
|
3003
|
-
"onUpdate:modelValue": (i) =>
|
|
3003
|
+
"onUpdate:modelValue": (i) => B(p.value, i)
|
|
3004
3004
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
3005
|
-
|
|
3005
|
+
Re(M.$slots, `checkbox-${p.key || p.value}-append`, {
|
|
3006
3006
|
option: p,
|
|
3007
3007
|
selected: e.modelValue.includes(p.value)
|
|
3008
3008
|
})
|
|
3009
3009
|
]),
|
|
3010
|
-
|
|
3010
|
+
X(c)[`checkbox-${p.key || p.value}-end`] && (e.modelValue.includes(p.value) || e.falsyShowSlot) ? (J(), ae("div", {
|
|
3011
3011
|
key: 0,
|
|
3012
3012
|
class: at([{ "q-checkbox disabled": e.disable || p.disabled }, "col"])
|
|
3013
3013
|
}, [
|
|
3014
|
-
|
|
3014
|
+
Re(M.$slots, `checkbox-${p.key || p.value}-end`, {
|
|
3015
3015
|
option: p,
|
|
3016
3016
|
value: e.modelValue.includes(p.value),
|
|
3017
3017
|
disable: e.disable || p.disabled
|
|
3018
3018
|
})
|
|
3019
|
-
], 2)) :
|
|
3019
|
+
], 2)) : Le("", !0)
|
|
3020
3020
|
], 2),
|
|
3021
|
-
|
|
3021
|
+
X(c)[`checkbox-${p.key || p.value}-bottom`] && (e.modelValue.includes(p.value) || e.falsyShowSlot) ? (J(), ae("div", {
|
|
3022
3022
|
key: 0,
|
|
3023
3023
|
class: at(["q-mt-sm", { "q-checkbox disabled": e.disable || p.disabled }]),
|
|
3024
|
-
style:
|
|
3024
|
+
style: Je(`margin-left: ${e.bottomSlotIndent}`)
|
|
3025
3025
|
}, [
|
|
3026
|
-
|
|
3026
|
+
Re(M.$slots, `checkbox-${p.key || p.value}-bottom`, {
|
|
3027
3027
|
option: p,
|
|
3028
3028
|
disable: e.disable || p.disabled,
|
|
3029
3029
|
value: e.modelValue.includes(p.value)
|
|
3030
3030
|
})
|
|
3031
|
-
], 6)) :
|
|
3031
|
+
], 6)) : Le("", !0)
|
|
3032
3032
|
], 6))), 128)),
|
|
3033
|
-
l.value &&
|
|
3033
|
+
l.value && I.value ? (J(), ae("div", Ha, ke(m.value), 1)) : Le("", !0)
|
|
3034
3034
|
]),
|
|
3035
3035
|
_: 3
|
|
3036
3036
|
}, 8, ["title"]);
|
|
3037
3037
|
};
|
|
3038
3038
|
}
|
|
3039
|
-
}),
|
|
3039
|
+
}), $a = { class: "fm-typo-en-title-sm-600" }, bt = "includedFuture", Fn = /* @__PURE__ */ we({
|
|
3040
3040
|
__name: "ConditionPermission",
|
|
3041
3041
|
props: {
|
|
3042
3042
|
modelValue: {
|
|
@@ -3066,31 +3066,31 @@ const Ha = { class: "col flex items-center" }, Ya = {
|
|
|
3066
3066
|
disabled: !!n.modelValue && n.options.length > n.modelValue.length
|
|
3067
3067
|
},
|
|
3068
3068
|
...n.options.filter(
|
|
3069
|
-
(O) => O.label.toLocaleLowerCase().includes(
|
|
3069
|
+
(O) => O.label.toLocaleLowerCase().includes(I.value.toLocaleLowerCase())
|
|
3070
3070
|
)
|
|
3071
3071
|
]), c = z(() => n.modelValue ? n.modelValue : [bt, ...n.options.map((O) => O.value)]), m = z(() => {
|
|
3072
|
-
const O = c.value.filter((
|
|
3072
|
+
const O = c.value.filter((L) => L !== bt).length;
|
|
3073
3073
|
return O === 0 ? "" : o("team.memberForm.permissions.allowedCount", { count: O });
|
|
3074
3074
|
});
|
|
3075
3075
|
function v(O) {
|
|
3076
|
-
const
|
|
3077
|
-
s("update:model-value",
|
|
3076
|
+
const L = O.length === l.value.length;
|
|
3077
|
+
s("update:model-value", L ? null : O.filter((R) => R !== bt));
|
|
3078
3078
|
}
|
|
3079
|
-
const
|
|
3080
|
-
return (O,
|
|
3081
|
-
const
|
|
3082
|
-
return
|
|
3079
|
+
const I = dt("");
|
|
3080
|
+
return (O, L) => {
|
|
3081
|
+
const R = Me("fm-search");
|
|
3082
|
+
return J(), Ae(Ht, { subtitle: m.value }, {
|
|
3083
3083
|
title: de(() => [
|
|
3084
|
-
se("p",
|
|
3084
|
+
se("p", $a, ke(X(o)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3085
3085
|
]),
|
|
3086
3086
|
default: de(() => [
|
|
3087
|
-
e.options.length > 1 ? (
|
|
3087
|
+
e.options.length > 1 ? (J(), Ae(R, {
|
|
3088
3088
|
key: 0,
|
|
3089
|
-
modelValue:
|
|
3090
|
-
"onUpdate:modelValue":
|
|
3089
|
+
modelValue: I.value,
|
|
3090
|
+
"onUpdate:modelValue": L[0] || (L[0] = (U) => I.value = U),
|
|
3091
3091
|
class: "mt-16",
|
|
3092
|
-
placeholder:
|
|
3093
|
-
}, null, 8, ["modelValue", "placeholder"])) :
|
|
3092
|
+
placeholder: X(o)("team.memberForm.permissions.search", { context: e.context })
|
|
3093
|
+
}, null, 8, ["modelValue", "placeholder"])) : Le("", !0),
|
|
3094
3094
|
ie(ss, {
|
|
3095
3095
|
"model-value": c.value,
|
|
3096
3096
|
options: l.value,
|
|
@@ -3101,11 +3101,11 @@ const Ha = { class: "col flex items-center" }, Ya = {
|
|
|
3101
3101
|
title: "",
|
|
3102
3102
|
class: "mt-16",
|
|
3103
3103
|
"onUpdate:modelValue": v
|
|
3104
|
-
},
|
|
3105
|
-
|
|
3106
|
-
name: `checkbox-${
|
|
3107
|
-
fn: de(({ option:
|
|
3108
|
-
|
|
3104
|
+
}, $e({ _: 2 }, [
|
|
3105
|
+
ye(l.value, (U) => ({
|
|
3106
|
+
name: `checkbox-${U.value}-append`,
|
|
3107
|
+
fn: de(({ option: B }) => [
|
|
3108
|
+
Re(O.$slots, `checkbox-${U.value}-append`, { option: B })
|
|
3109
3109
|
])
|
|
3110
3110
|
}))
|
|
3111
3111
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3114,7 +3114,7 @@ const Ha = { class: "col flex items-center" }, Ya = {
|
|
|
3114
3114
|
}, 8, ["subtitle"]);
|
|
3115
3115
|
};
|
|
3116
3116
|
}
|
|
3117
|
-
}),
|
|
3117
|
+
}), Ja = { class: "fm-typo-en-title-sm-600" }, vt = "includedNewRole", Ka = /* @__PURE__ */ we({
|
|
3118
3118
|
__name: "PosRolePermission",
|
|
3119
3119
|
props: {
|
|
3120
3120
|
modelValue: {
|
|
@@ -3137,7 +3137,7 @@ const Ha = { class: "col flex items-center" }, Ya = {
|
|
|
3137
3137
|
emits: ["update:model-value"],
|
|
3138
3138
|
setup(e, { emit: t }) {
|
|
3139
3139
|
const n = e, s = t, { t: o } = qe(), l = z(() => {
|
|
3140
|
-
const
|
|
3140
|
+
const I = n.restaurantIds;
|
|
3141
3141
|
return [
|
|
3142
3142
|
{
|
|
3143
3143
|
label: o("team.memberForm.permissions.includedNewRole"),
|
|
@@ -3147,20 +3147,20 @@ const Ha = { class: "col flex items-center" }, Ya = {
|
|
|
3147
3147
|
...n.roles.map((O) => ({
|
|
3148
3148
|
label: O.name,
|
|
3149
3149
|
value: O._id,
|
|
3150
|
-
disabled: !!
|
|
3150
|
+
disabled: !!I && O.restaurants.every(({ id: L }) => !I.includes(L))
|
|
3151
3151
|
}))
|
|
3152
3152
|
];
|
|
3153
|
-
}), c = z(() => n.modelValue ? n.modelValue : [vt, ...n.roles.map((
|
|
3154
|
-
const
|
|
3155
|
-
return
|
|
3153
|
+
}), c = z(() => n.modelValue ? n.modelValue : [vt, ...n.roles.map((I) => I._id)]), m = z(() => {
|
|
3154
|
+
const I = c.value.filter((O) => O !== vt).length;
|
|
3155
|
+
return I === 0 ? "" : o("team.memberForm.permissions.allowedCount", { count: I });
|
|
3156
3156
|
});
|
|
3157
|
-
function v(
|
|
3158
|
-
const O =
|
|
3159
|
-
s("update:model-value", O ? null :
|
|
3157
|
+
function v(I) {
|
|
3158
|
+
const O = I.length === l.value.length;
|
|
3159
|
+
s("update:model-value", O ? null : I.filter((L) => L !== vt));
|
|
3160
3160
|
}
|
|
3161
|
-
return (
|
|
3161
|
+
return (I, O) => (J(), Ae(Ht, { subtitle: m.value }, {
|
|
3162
3162
|
title: de(() => [
|
|
3163
|
-
se("p",
|
|
3163
|
+
se("p", Ja, ke(X(o)("team.memberForm.permissions.roles")), 1)
|
|
3164
3164
|
]),
|
|
3165
3165
|
default: de(() => [
|
|
3166
3166
|
ie(ss, {
|
|
@@ -3172,11 +3172,11 @@ const Ha = { class: "col flex items-center" }, Ya = {
|
|
|
3172
3172
|
title: "",
|
|
3173
3173
|
class: "mt-16",
|
|
3174
3174
|
"onUpdate:modelValue": v
|
|
3175
|
-
},
|
|
3176
|
-
|
|
3177
|
-
name: `checkbox-${
|
|
3178
|
-
fn: de(({ option:
|
|
3179
|
-
|
|
3175
|
+
}, $e({ _: 2 }, [
|
|
3176
|
+
ye(l.value, (L) => ({
|
|
3177
|
+
name: `checkbox-${L.value}-append`,
|
|
3178
|
+
fn: de(({ option: R }) => [
|
|
3179
|
+
Re(I.$slots, `checkbox-${L.value}-append`, { option: R })
|
|
3180
3180
|
])
|
|
3181
3181
|
}))
|
|
3182
3182
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3186,7 +3186,7 @@ const Ha = { class: "col flex items-center" }, Ya = {
|
|
|
3186
3186
|
}
|
|
3187
3187
|
}), za = {
|
|
3188
3188
|
async readWarehouses() {
|
|
3189
|
-
return Ns(await
|
|
3189
|
+
return Ns(await ks().get("/warehouses"));
|
|
3190
3190
|
}
|
|
3191
3191
|
}, Qa = {
|
|
3192
3192
|
MY: "Asia/Kuala_Lumpur",
|
|
@@ -3240,9 +3240,9 @@ function nl(e, t, n) {
|
|
|
3240
3240
|
return t.value.find((g) => g.subject === i);
|
|
3241
3241
|
}
|
|
3242
3242
|
function c(i) {
|
|
3243
|
-
var
|
|
3243
|
+
var y;
|
|
3244
3244
|
const g = o(i);
|
|
3245
|
-
return g ? (
|
|
3245
|
+
return g ? (y = l(g)) == null ? void 0 : y.label : void 0;
|
|
3246
3246
|
}
|
|
3247
3247
|
function m(i) {
|
|
3248
3248
|
return tl(e.value, i);
|
|
@@ -3250,36 +3250,36 @@ function nl(e, t, n) {
|
|
|
3250
3250
|
function v(i, g) {
|
|
3251
3251
|
return Pt(lt(i), g);
|
|
3252
3252
|
}
|
|
3253
|
-
function
|
|
3253
|
+
function I(i, g) {
|
|
3254
3254
|
var w;
|
|
3255
3255
|
if (!(((w = g.appliesToActions) == null ? void 0 : w.call(g, i.actions)) ?? !0)) return !1;
|
|
3256
|
-
const
|
|
3257
|
-
if (!
|
|
3258
|
-
const b = m(
|
|
3256
|
+
const y = o(i.subject);
|
|
3257
|
+
if (!y) return !1;
|
|
3258
|
+
const b = m(y);
|
|
3259
3259
|
return b ? Object.keys(v(b, g)).length > 0 : !1;
|
|
3260
3260
|
}
|
|
3261
3261
|
function O(i, g) {
|
|
3262
|
-
return !
|
|
3262
|
+
return !I(i, g) || s.value.has(ht(i.subject, g)) ? "custom" : i.index === null ? "inherit" : "custom";
|
|
3263
3263
|
}
|
|
3264
|
-
function
|
|
3264
|
+
function L(i, g, y) {
|
|
3265
3265
|
if (!g.summarizeForm) return;
|
|
3266
3266
|
const b = o(i.subject);
|
|
3267
3267
|
if (!b) return;
|
|
3268
3268
|
const w = m(b);
|
|
3269
3269
|
if (!w) return;
|
|
3270
3270
|
const f = g.fromCondition(v(w, g));
|
|
3271
|
-
return g.summarizeForm(f, { timeZone:
|
|
3271
|
+
return g.summarizeForm(f, { timeZone: y });
|
|
3272
3272
|
}
|
|
3273
|
-
function
|
|
3273
|
+
function R(i, g) {
|
|
3274
3274
|
if (i.index === null) return;
|
|
3275
|
-
const
|
|
3276
|
-
f && h ?
|
|
3275
|
+
const y = [...e.value], b = { ...y[i.index] }, w = Pn(b, g), f = Object.keys(w).length === 0, T = o(i.subject), E = T ? m(T) : void 0, h = E ? Mt(E, b) : !1;
|
|
3276
|
+
f && h ? y.splice(i.index, 1) : (f ? delete b.conditions : b.conditions = JSON.stringify(w), y[i.index] = b), n(y);
|
|
3277
3277
|
}
|
|
3278
|
-
function
|
|
3278
|
+
function U(i, g, y) {
|
|
3279
3279
|
const b = ht(i.subject, g);
|
|
3280
|
-
if (
|
|
3280
|
+
if (y === "inherit") {
|
|
3281
3281
|
const f = new Set(s.value);
|
|
3282
|
-
f.delete(b), s.value = f,
|
|
3282
|
+
f.delete(b), s.value = f, R(i, g);
|
|
3283
3283
|
return;
|
|
3284
3284
|
}
|
|
3285
3285
|
const w = new Set(s.value);
|
|
@@ -3287,55 +3287,55 @@ function nl(e, t, n) {
|
|
|
3287
3287
|
forceCreateRule: !0
|
|
3288
3288
|
});
|
|
3289
3289
|
}
|
|
3290
|
-
function
|
|
3290
|
+
function B(i) {
|
|
3291
3291
|
const g = o(i);
|
|
3292
3292
|
if (!g) return [];
|
|
3293
|
-
const
|
|
3294
|
-
return (
|
|
3293
|
+
const y = m(g);
|
|
3294
|
+
return (y == null ? void 0 : y.actions) ?? [];
|
|
3295
3295
|
}
|
|
3296
3296
|
function M(i, g) {
|
|
3297
|
-
return e.value.filter((
|
|
3298
|
-
if (
|
|
3299
|
-
const b =
|
|
3300
|
-
return b === i || o(b) !== i ? !1 : s.value.has(ht(b, g)) ? !0 : Object.keys(Pt(lt(
|
|
3297
|
+
return e.value.filter((y) => {
|
|
3298
|
+
if (y.inverted) return !1;
|
|
3299
|
+
const b = y.subject;
|
|
3300
|
+
return b === i || o(b) !== i ? !1 : s.value.has(ht(b, g)) ? !0 : Object.keys(Pt(lt(y), g)).length > 0;
|
|
3301
3301
|
});
|
|
3302
3302
|
}
|
|
3303
3303
|
function P(i, g) {
|
|
3304
|
-
const
|
|
3304
|
+
const y = `::${g.builderKey}`, b = new Set(s.value);
|
|
3305
3305
|
for (const w of b) {
|
|
3306
|
-
if (!w.endsWith(
|
|
3307
|
-
const f = w.slice(0, -
|
|
3306
|
+
if (!w.endsWith(y)) continue;
|
|
3307
|
+
const f = w.slice(0, -y.length);
|
|
3308
3308
|
o(f) === i && b.delete(w);
|
|
3309
3309
|
}
|
|
3310
3310
|
s.value = b;
|
|
3311
3311
|
}
|
|
3312
|
-
function u(i, g,
|
|
3312
|
+
function u(i, g, y) {
|
|
3313
3313
|
const b = g.subject;
|
|
3314
3314
|
return i.reduce((w, f) => {
|
|
3315
3315
|
if (f.inverted)
|
|
3316
3316
|
return w.push(f), w;
|
|
3317
|
-
const
|
|
3318
|
-
if (
|
|
3317
|
+
const T = f.subject;
|
|
3318
|
+
if (T === b || o(T) !== b || !Mt(g, f))
|
|
3319
3319
|
return w.push(f), w;
|
|
3320
|
-
const
|
|
3321
|
-
return Object.keys(
|
|
3320
|
+
const E = Pn(f, y);
|
|
3321
|
+
return Object.keys(E).length === 0 || w.push({ ...f, conditions: JSON.stringify(E) }), w;
|
|
3322
3322
|
}, []);
|
|
3323
3323
|
}
|
|
3324
|
-
function p(i, g,
|
|
3325
|
-
var
|
|
3324
|
+
function p(i, g, y, b = {}) {
|
|
3325
|
+
var Y;
|
|
3326
3326
|
const w = [...e.value];
|
|
3327
3327
|
let f = i.index;
|
|
3328
|
-
const
|
|
3329
|
-
if (f === null && !
|
|
3328
|
+
const T = g.toCondition(y), E = Object.keys(T).length > 0;
|
|
3329
|
+
if (f === null && !E && !b.forceCreateRule) return;
|
|
3330
3330
|
if (f === null) {
|
|
3331
|
-
const
|
|
3332
|
-
if (
|
|
3333
|
-
f =
|
|
3331
|
+
const V = w.findIndex((j) => !j.inverted && j.subject === i.subject);
|
|
3332
|
+
if (V !== -1)
|
|
3333
|
+
f = V;
|
|
3334
3334
|
else {
|
|
3335
3335
|
const j = t.value.find((Ne) => Ne.subject === i.subject);
|
|
3336
3336
|
if (!j) return;
|
|
3337
3337
|
const {
|
|
3338
|
-
category:
|
|
3338
|
+
category: $,
|
|
3339
3339
|
showByFeatureFlag: te,
|
|
3340
3340
|
isCategoryCover: me,
|
|
3341
3341
|
...pe
|
|
@@ -3343,85 +3343,85 @@ function nl(e, t, n) {
|
|
|
3343
3343
|
w.push(pe), f = w.length - 1;
|
|
3344
3344
|
}
|
|
3345
3345
|
}
|
|
3346
|
-
const h = { ...w[f] },
|
|
3347
|
-
if (Object.keys(
|
|
3348
|
-
const
|
|
3346
|
+
const h = { ...w[f] }, Z = lt(h), H = Ft(Z, [{ builder: g, formValue: y }]);
|
|
3347
|
+
if (Object.keys(H).length === 0 ? delete h.conditions : h.conditions = JSON.stringify(H), w[f] = h, an(i.subject, t.value)) {
|
|
3348
|
+
const V = M(i.subject, g), j = () => {
|
|
3349
3349
|
var te;
|
|
3350
3350
|
P(i.subject, g), n(u(w, h, g)), (te = b.afterCommit) == null || te.call(b);
|
|
3351
|
-
},
|
|
3351
|
+
}, $ = () => {
|
|
3352
3352
|
var te;
|
|
3353
3353
|
n(w), (te = b.afterCommit) == null || te.call(b);
|
|
3354
3354
|
};
|
|
3355
|
-
if (
|
|
3355
|
+
if (V.length === 0) {
|
|
3356
3356
|
j();
|
|
3357
3357
|
return;
|
|
3358
3358
|
}
|
|
3359
|
-
b.onOverridesConflict ? b.onOverridesConflict({ override: j, keep:
|
|
3359
|
+
b.onOverridesConflict ? b.onOverridesConflict({ override: j, keep: $ }) : $();
|
|
3360
3360
|
return;
|
|
3361
3361
|
}
|
|
3362
|
-
n(w), (
|
|
3362
|
+
n(w), (Y = b.afterCommit) == null || Y.call(b);
|
|
3363
3363
|
}
|
|
3364
|
-
function
|
|
3364
|
+
function S(i, g, y = {}) {
|
|
3365
3365
|
if (g.length === 0) return;
|
|
3366
3366
|
const b = [...e.value];
|
|
3367
|
-
let w = b.findIndex((
|
|
3368
|
-
for (const
|
|
3369
|
-
const j =
|
|
3370
|
-
|
|
3371
|
-
}
|
|
3372
|
-
const
|
|
3373
|
-
if (!f && (Object.keys(
|
|
3374
|
-
const
|
|
3375
|
-
if (!
|
|
3367
|
+
let w = b.findIndex((V) => !V.inverted && V.subject === i.subject), f = w === -1 ? void 0 : { ...b[w] }, T = lt(f ?? {}) ?? {};
|
|
3368
|
+
for (const V of g) {
|
|
3369
|
+
const j = V.mode === "inherit" ? V.builder.fromCondition(void 0) : V.form;
|
|
3370
|
+
T = Ft(T, [{ builder: V.builder, formValue: j }]);
|
|
3371
|
+
}
|
|
3372
|
+
const E = g.some((V) => V.mode === "custom");
|
|
3373
|
+
if (!f && (Object.keys(T).length > 0 || E)) {
|
|
3374
|
+
const V = t.value.find((pe) => pe.subject === i.subject);
|
|
3375
|
+
if (!V) return;
|
|
3376
3376
|
const {
|
|
3377
3377
|
category: j,
|
|
3378
|
-
showByFeatureFlag:
|
|
3378
|
+
showByFeatureFlag: $,
|
|
3379
3379
|
isCategoryCover: te,
|
|
3380
3380
|
...me
|
|
3381
|
-
} =
|
|
3381
|
+
} = V;
|
|
3382
3382
|
f = me, b.push(f), w = b.length - 1;
|
|
3383
3383
|
}
|
|
3384
3384
|
if (f) {
|
|
3385
|
-
const
|
|
3386
|
-
!
|
|
3385
|
+
const V = o(i.subject), j = V ? m(V) : void 0;
|
|
3386
|
+
!E && Object.keys(T).length === 0 && !!j && Mt(j, f) ? (b.splice(w, 1), f = void 0) : (Object.keys(T).length === 0 ? delete f.conditions : f.conditions = JSON.stringify(T), b[w] = f);
|
|
3387
3387
|
}
|
|
3388
3388
|
const h = () => {
|
|
3389
|
-
const
|
|
3389
|
+
const V = new Set(s.value);
|
|
3390
3390
|
for (const j of g) {
|
|
3391
|
-
const
|
|
3392
|
-
j.mode === "custom" ?
|
|
3391
|
+
const $ = ht(i.subject, j.builder);
|
|
3392
|
+
j.mode === "custom" ? V.add($) : V.delete($);
|
|
3393
3393
|
}
|
|
3394
|
-
s.value =
|
|
3395
|
-
},
|
|
3394
|
+
s.value = V;
|
|
3395
|
+
}, Z = (V) => {
|
|
3396
3396
|
var j;
|
|
3397
|
-
h(), n(
|
|
3397
|
+
h(), n(V), (j = y.afterCommit) == null || j.call(y);
|
|
3398
3398
|
};
|
|
3399
3399
|
if (!an(i.subject, t.value) || !f) {
|
|
3400
|
-
|
|
3400
|
+
Z(b);
|
|
3401
3401
|
return;
|
|
3402
3402
|
}
|
|
3403
|
-
const
|
|
3404
|
-
let
|
|
3405
|
-
for (const j of g.map((
|
|
3406
|
-
P(i.subject, j),
|
|
3407
|
-
|
|
3403
|
+
const H = g.map((V) => V.builder).filter((V) => M(i.subject, V).length > 0), Y = () => {
|
|
3404
|
+
let V = b;
|
|
3405
|
+
for (const j of g.map(($) => $.builder))
|
|
3406
|
+
P(i.subject, j), V = u(V, f, j);
|
|
3407
|
+
Z(V);
|
|
3408
3408
|
};
|
|
3409
|
-
if (
|
|
3410
|
-
|
|
3409
|
+
if (H.length > 0 && y.onOverridesConflict) {
|
|
3410
|
+
y.onOverridesConflict({ override: Y, keep: () => Z(b) });
|
|
3411
3411
|
return;
|
|
3412
3412
|
}
|
|
3413
|
-
|
|
3413
|
+
H.length > 0 ? Z(b) : Y();
|
|
3414
3414
|
}
|
|
3415
3415
|
return {
|
|
3416
3416
|
getCoverSubject: o,
|
|
3417
3417
|
coverLabel: c,
|
|
3418
|
-
shouldShowInheritToggle:
|
|
3418
|
+
shouldShowInheritToggle: I,
|
|
3419
3419
|
inheritMode: O,
|
|
3420
|
-
setInheritMode:
|
|
3421
|
-
inheritedSummary:
|
|
3422
|
-
getEffectiveActions:
|
|
3420
|
+
setInheritMode: U,
|
|
3421
|
+
inheritedSummary: L,
|
|
3422
|
+
getEffectiveActions: B,
|
|
3423
3423
|
updateBuilderCondition: p,
|
|
3424
|
-
applyConditionDrafts:
|
|
3424
|
+
applyConditionDrafts: S
|
|
3425
3425
|
};
|
|
3426
3426
|
}
|
|
3427
3427
|
const sl = { class: "flex flex-col gap-32" }, rl = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, al = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ll = { class: "flex flex-col gap-12 p-16 w-[320px]" }, ol = { class: "fm-typo-en-title-sm-600" }, il = {
|
|
@@ -3455,20 +3455,20 @@ const sl = { class: "flex flex-col gap-32" }, rl = { class: "p-16 fm-corner-radi
|
|
|
3455
3455
|
emits: /* @__PURE__ */ nn(["permissionChanged"], ["update:modelValue"]),
|
|
3456
3456
|
setup(e, { emit: t }) {
|
|
3457
3457
|
const n = ds(e, "modelValue"), s = e, o = t, { t: l } = qe(), c = ms(), m = fs(), { breakpoints: v } = _s(), {
|
|
3458
|
-
fetchCustomReportPermissions:
|
|
3458
|
+
fetchCustomReportPermissions: I,
|
|
3459
3459
|
customReportPermissions: O
|
|
3460
|
-
} = ps(),
|
|
3461
|
-
...
|
|
3460
|
+
} = ps(), L = z(() => [
|
|
3461
|
+
...Vn,
|
|
3462
3462
|
...O.value
|
|
3463
|
-
]),
|
|
3464
|
-
const
|
|
3465
|
-
return el(
|
|
3463
|
+
]), R = z(() => {
|
|
3464
|
+
const k = c.currentBusiness.value, N = c.currentCountry.value, A = N instanceof Object ? N.code : N;
|
|
3465
|
+
return el(k, A);
|
|
3466
3466
|
});
|
|
3467
|
-
function
|
|
3468
|
-
return
|
|
3467
|
+
function U(k) {
|
|
3468
|
+
return L.value.find((N) => N.subject === k);
|
|
3469
3469
|
}
|
|
3470
|
-
function
|
|
3471
|
-
return rn(
|
|
3470
|
+
function B(k, N) {
|
|
3471
|
+
return rn(k).filter(
|
|
3472
3472
|
(A) => {
|
|
3473
3473
|
var r;
|
|
3474
3474
|
return ((r = A.appliesToActions) == null ? void 0 : r.call(A, N)) ?? !0;
|
|
@@ -3476,72 +3476,72 @@ const sl = { class: "flex flex-col gap-32" }, rl = { class: "p-16 fm-corner-radi
|
|
|
3476
3476
|
);
|
|
3477
3477
|
}
|
|
3478
3478
|
const M = z(() => {
|
|
3479
|
-
const
|
|
3479
|
+
const k = L.value.filter((A) => !S.includes(A.subject)).map((A) => A.subject);
|
|
3480
3480
|
return bs(
|
|
3481
3481
|
s.inheritPermissions.map((A) => ({
|
|
3482
3482
|
...A,
|
|
3483
|
-
permissions: A.permissions.filter((r) =>
|
|
3483
|
+
permissions: A.permissions.filter((r) => k.includes(r.subject))
|
|
3484
3484
|
}))
|
|
3485
3485
|
).map((A) => ({
|
|
3486
3486
|
id: A.subject,
|
|
3487
3487
|
setNames: A.setNames
|
|
3488
3488
|
}));
|
|
3489
3489
|
}), P = z(() => {
|
|
3490
|
-
const
|
|
3490
|
+
const k = s.inheritPermissions.map((N) => ({
|
|
3491
3491
|
...N,
|
|
3492
3492
|
permissions: N.permissions.filter(
|
|
3493
3493
|
(A) => A.subject === fe.Subject.Business.inventory_stock
|
|
3494
3494
|
)
|
|
3495
3495
|
}));
|
|
3496
3496
|
return Ot(
|
|
3497
|
-
|
|
3497
|
+
k,
|
|
3498
3498
|
"warehouseId",
|
|
3499
3499
|
g.value.map((N) => N._id)
|
|
3500
3500
|
);
|
|
3501
3501
|
}), u = z(() => {
|
|
3502
|
-
const
|
|
3502
|
+
const k = s.inheritPermissions.map((N) => ({
|
|
3503
3503
|
...N,
|
|
3504
3504
|
permissions: N.permissions.filter(
|
|
3505
3505
|
(A) => A.subject === fe.Subject.Restaurant.restaurant
|
|
3506
3506
|
)
|
|
3507
3507
|
}));
|
|
3508
3508
|
return Ot(
|
|
3509
|
-
|
|
3509
|
+
k,
|
|
3510
3510
|
"restaurantId",
|
|
3511
3511
|
f.value.map((N) => N._id)
|
|
3512
3512
|
);
|
|
3513
3513
|
}), p = z(() => {
|
|
3514
|
-
const
|
|
3514
|
+
const k = s.inheritPermissions.map((N) => ({
|
|
3515
3515
|
...N,
|
|
3516
3516
|
permissions: N.permissions.filter((A) => A.subject === fe.Subject.Business.role)
|
|
3517
3517
|
}));
|
|
3518
3518
|
return Ot(
|
|
3519
|
-
|
|
3519
|
+
k,
|
|
3520
3520
|
"roleId",
|
|
3521
|
-
|
|
3521
|
+
T.value.map((N) => N._id)
|
|
3522
3522
|
);
|
|
3523
|
-
}),
|
|
3523
|
+
}), S = [
|
|
3524
3524
|
fe.Subject.Business.restaurant,
|
|
3525
3525
|
fe.Subject.Business.role,
|
|
3526
3526
|
fe.Subject.Restaurant.restaurant,
|
|
3527
3527
|
fe.Subject.Business.inventory_stock
|
|
3528
3528
|
], i = z(() => {
|
|
3529
3529
|
var N;
|
|
3530
|
-
const
|
|
3530
|
+
const k = (N = n.value) == null ? void 0 : N.find(
|
|
3531
3531
|
(A) => A.subject === fe.Subject.Business.inventory_stock
|
|
3532
3532
|
);
|
|
3533
|
-
return
|
|
3534
|
-
}), g = dt([]),
|
|
3535
|
-
label:
|
|
3536
|
-
value:
|
|
3533
|
+
return k ? k.conditions ? JSON.parse(k.conditions).warehouseId.$in : null : [];
|
|
3534
|
+
}), g = dt([]), y = z(() => g.value.map((k) => ({
|
|
3535
|
+
label: k.profile.name,
|
|
3536
|
+
value: k._id
|
|
3537
3537
|
})));
|
|
3538
|
-
function b(
|
|
3539
|
-
const N = w(n.value,
|
|
3538
|
+
function b(k) {
|
|
3539
|
+
const N = w(n.value, k);
|
|
3540
3540
|
n.value = N;
|
|
3541
3541
|
}
|
|
3542
|
-
function w(
|
|
3542
|
+
function w(k, N) {
|
|
3543
3543
|
let A = gt(
|
|
3544
|
-
|
|
3544
|
+
k.filter((r) => r.subject !== fe.Subject.Business.inventory_stock)
|
|
3545
3545
|
);
|
|
3546
3546
|
if (!N || N.length > 0) {
|
|
3547
3547
|
const r = {
|
|
@@ -3552,19 +3552,19 @@ const sl = { class: "flex flex-col gap-32" }, rl = { class: "p-16 fm-corner-radi
|
|
|
3552
3552
|
}
|
|
3553
3553
|
return A;
|
|
3554
3554
|
}
|
|
3555
|
-
const { restaurants: f } = c,
|
|
3556
|
-
label: `${
|
|
3557
|
-
value:
|
|
3558
|
-
}))), h = z(() => f.value.reduce((
|
|
3559
|
-
function
|
|
3560
|
-
const N =
|
|
3555
|
+
const { restaurants: f } = c, T = Ts().roles, E = z(() => f.value.map((k) => ({
|
|
3556
|
+
label: `${k.profile.code ? k.profile.code + "-" : ""}${k.profile.name}`,
|
|
3557
|
+
value: k._id
|
|
3558
|
+
}))), h = z(() => f.value.reduce((k, N) => (k[N._id] = T.value.filter((A) => A.restaurants.some((r) => r.id === N._id)).map((A) => A._id), k), {})), Z = z(() => vs(n.value));
|
|
3559
|
+
function H(k) {
|
|
3560
|
+
const N = V(n.value, k);
|
|
3561
3561
|
n.value = N;
|
|
3562
3562
|
}
|
|
3563
|
-
const
|
|
3564
|
-
function
|
|
3563
|
+
const Y = z(() => hs(n.value));
|
|
3564
|
+
function V(k, N) {
|
|
3565
3565
|
var r;
|
|
3566
3566
|
let A = gt(
|
|
3567
|
-
|
|
3567
|
+
k.filter(
|
|
3568
3568
|
(a) => a.subject !== fe.Subject.Business.restaurant && a.subject !== fe.Subject.Restaurant.restaurant
|
|
3569
3569
|
)
|
|
3570
3570
|
);
|
|
@@ -3573,7 +3573,7 @@ const sl = { class: "flex flex-col gap-32" }, rl = { class: "p-16 fm-corner-radi
|
|
|
3573
3573
|
category: a,
|
|
3574
3574
|
showByFeatureFlag: d,
|
|
3575
3575
|
...F
|
|
3576
|
-
} =
|
|
3576
|
+
} = Es.restaurant;
|
|
3577
3577
|
A.push(F);
|
|
3578
3578
|
const D = {
|
|
3579
3579
|
actions: [fe.Action.manage],
|
|
@@ -3584,21 +3584,21 @@ const sl = { class: "flex flex-col gap-32" }, rl = { class: "p-16 fm-corner-radi
|
|
|
3584
3584
|
if (N) {
|
|
3585
3585
|
const a = [
|
|
3586
3586
|
...new Set(N.map((F) => h.value[F]).flatMap((F) => F))
|
|
3587
|
-
], d =
|
|
3588
|
-
a.length !== d.length && (A =
|
|
3587
|
+
], d = T.value.map((F) => F._id);
|
|
3588
|
+
a.length !== d.length && (A = $(
|
|
3589
3589
|
A,
|
|
3590
|
-
(r =
|
|
3590
|
+
(r = Y.value || d) == null ? void 0 : r.filter((F) => a.includes(F))
|
|
3591
3591
|
));
|
|
3592
3592
|
}
|
|
3593
3593
|
return A;
|
|
3594
3594
|
}
|
|
3595
|
-
function j(
|
|
3596
|
-
const N =
|
|
3595
|
+
function j(k) {
|
|
3596
|
+
const N = $(n.value, k);
|
|
3597
3597
|
n.value = N;
|
|
3598
3598
|
}
|
|
3599
|
-
function
|
|
3599
|
+
function $(k, N) {
|
|
3600
3600
|
let A = gt(
|
|
3601
|
-
|
|
3601
|
+
k.filter((r) => r.subject !== fe.Subject.Business.role)
|
|
3602
3602
|
);
|
|
3603
3603
|
if (N && N.length > 0) {
|
|
3604
3604
|
const r = {
|
|
@@ -3612,13 +3612,13 @@ const sl = { class: "flex flex-col gap-32" }, rl = { class: "p-16 fm-corner-radi
|
|
|
3612
3612
|
}
|
|
3613
3613
|
jn(async () => {
|
|
3614
3614
|
await Promise.all([
|
|
3615
|
-
za.readWarehouses().then((
|
|
3616
|
-
|
|
3615
|
+
za.readWarehouses().then((k) => g.value = k),
|
|
3616
|
+
I()
|
|
3617
3617
|
]);
|
|
3618
3618
|
});
|
|
3619
|
-
const te = z(() =>
|
|
3619
|
+
const te = z(() => Rt(
|
|
3620
3620
|
n.value,
|
|
3621
|
-
|
|
3621
|
+
Lt
|
|
3622
3622
|
).filter((A) => {
|
|
3623
3623
|
const r = A.source;
|
|
3624
3624
|
return (r == null ? void 0 : r.type) !== "systemPermissionSet" ? !0 : A.actions.includes("manage");
|
|
@@ -3626,24 +3626,24 @@ const sl = { class: "flex flex-col gap-32" }, rl = { class: "p-16 fm-corner-radi
|
|
|
3626
3626
|
if (A.inverted) return A;
|
|
3627
3627
|
const r = A.actions;
|
|
3628
3628
|
if (!r.includes("manage")) return A;
|
|
3629
|
-
const a =
|
|
3629
|
+
const a = U(A.subject);
|
|
3630
3630
|
if (!a) return A;
|
|
3631
3631
|
const d = a.actions;
|
|
3632
3632
|
return d.length <= 1 || d.filter((D) => !r.includes(D)).length === 0 ? A : { ...A, actions: [...d] };
|
|
3633
3633
|
}));
|
|
3634
|
-
function me(
|
|
3634
|
+
function me(k) {
|
|
3635
3635
|
const N = new Set(
|
|
3636
3636
|
te.value.filter((d) => !d.inverted).map((d) => d.subject)
|
|
3637
3637
|
), A = new Set(
|
|
3638
|
-
|
|
3638
|
+
k.filter((d) => !d.inverted).map((d) => d.subject)
|
|
3639
3639
|
), r = new Set(
|
|
3640
3640
|
n.value.filter((d) => !d.inverted).map((d) => d.subject)
|
|
3641
3641
|
);
|
|
3642
3642
|
let a = [...n.value];
|
|
3643
3643
|
for (const d of N)
|
|
3644
|
-
A.has(d) || (r.has(d) && (a = a.filter((D) => D.subject !== d)), (!r.has(d) ||
|
|
3644
|
+
A.has(d) || (r.has(d) && (a = a.filter((D) => D.subject !== d)), (!r.has(d) || Rt(
|
|
3645
3645
|
a,
|
|
3646
|
-
|
|
3646
|
+
Lt
|
|
3647
3647
|
).some(
|
|
3648
3648
|
(D) => D.subject === d && !D.inverted && D.actions.includes("manage")
|
|
3649
3649
|
)) && !a.some((D) => D.subject === d && D.inverted) && a.push({ subject: d, actions: ["manage"], inverted: !0 }));
|
|
@@ -3651,50 +3651,50 @@ const sl = { class: "flex flex-col gap-32" }, rl = { class: "p-16 fm-corner-radi
|
|
|
3651
3651
|
if (!N.has(d)) {
|
|
3652
3652
|
const F = a.some((D) => D.subject === d && D.inverted);
|
|
3653
3653
|
if (a = a.filter((D) => !(D.subject === d && D.inverted)), !F && !r.has(d)) {
|
|
3654
|
-
const D =
|
|
3654
|
+
const D = k.find(
|
|
3655
3655
|
(_) => _.subject === d && !_.inverted
|
|
3656
|
-
),
|
|
3657
|
-
if (
|
|
3658
|
-
const { category: _, showByFeatureFlag:
|
|
3659
|
-
a.push({ ...
|
|
3656
|
+
), x = U(d);
|
|
3657
|
+
if (x && D) {
|
|
3658
|
+
const { category: _, showByFeatureFlag: C, ...G } = x;
|
|
3659
|
+
a.push({ ...G, actions: D.actions });
|
|
3660
3660
|
}
|
|
3661
3661
|
}
|
|
3662
3662
|
}
|
|
3663
3663
|
for (const d of A) {
|
|
3664
3664
|
if (!N.has(d)) continue;
|
|
3665
3665
|
const F = te.value.find(
|
|
3666
|
-
(
|
|
3667
|
-
), D =
|
|
3666
|
+
(G) => G.subject === d && !G.inverted
|
|
3667
|
+
), D = k.find((G) => G.subject === d && !G.inverted);
|
|
3668
3668
|
if (!F || !D) continue;
|
|
3669
|
-
const
|
|
3670
|
-
if (
|
|
3669
|
+
const x = new Set(F.actions), _ = new Set(D.actions);
|
|
3670
|
+
if (x.size === _.size && [...x].every((G) => _.has(G)))
|
|
3671
3671
|
continue;
|
|
3672
|
-
const
|
|
3673
|
-
if (
|
|
3674
|
-
a[
|
|
3675
|
-
...a[
|
|
3672
|
+
const C = a.findIndex((G) => G.subject === d && !G.inverted);
|
|
3673
|
+
if (C >= 0)
|
|
3674
|
+
a[C] = {
|
|
3675
|
+
...a[C],
|
|
3676
3676
|
actions: Array.from(_)
|
|
3677
3677
|
};
|
|
3678
3678
|
else {
|
|
3679
|
-
const
|
|
3680
|
-
if (
|
|
3681
|
-
const { category: Q, showByFeatureFlag:
|
|
3682
|
-
a.push({ ...
|
|
3679
|
+
const G = U(d);
|
|
3680
|
+
if (G) {
|
|
3681
|
+
const { category: Q, showByFeatureFlag: Ee, ...Be } = G;
|
|
3682
|
+
a.push({ ...Be, actions: Array.from(_) });
|
|
3683
3683
|
}
|
|
3684
3684
|
}
|
|
3685
|
-
|
|
3685
|
+
x.has("manage") && !_.has("manage") && Rt(
|
|
3686
3686
|
a,
|
|
3687
|
-
|
|
3687
|
+
Lt
|
|
3688
3688
|
).some(
|
|
3689
3689
|
(Q) => Q.subject === d && !Q.inverted && Q.actions.includes("manage")
|
|
3690
|
-
) && !a.some((Q) => Q.subject === d && Q.inverted) && a.push({ subject: d, actions: ["manage"], inverted: !0 }), !
|
|
3690
|
+
) && !a.some((Q) => Q.subject === d && Q.inverted) && a.push({ subject: d, actions: ["manage"], inverted: !0 }), !x.has("manage") && _.has("manage") && (a = a.filter((G) => !(G.subject === d && G.inverted)));
|
|
3691
3691
|
}
|
|
3692
3692
|
n.value = a;
|
|
3693
3693
|
}
|
|
3694
3694
|
const pe = z(() => new Set(
|
|
3695
|
-
|
|
3695
|
+
L.value.filter((k) => rn(k.subject).length > 0).map((k) => k.subject)
|
|
3696
3696
|
)), Ne = z(() => {
|
|
3697
|
-
const
|
|
3697
|
+
const k = /* @__PURE__ */ new Map();
|
|
3698
3698
|
return te.value.map((N) => ({
|
|
3699
3699
|
rule: N,
|
|
3700
3700
|
index: n.value.findIndex(
|
|
@@ -3702,7 +3702,7 @@ const sl = { class: "flex flex-col gap-32" }, rl = { class: "p-16 fm-corner-radi
|
|
|
3702
3702
|
)
|
|
3703
3703
|
})).filter(({ rule: N }) => !N.inverted).forEach(({ rule: N, index: A }) => {
|
|
3704
3704
|
var F;
|
|
3705
|
-
const r = N.actions, a =
|
|
3705
|
+
const r = N.actions, a = B(N.subject, r);
|
|
3706
3706
|
if (a.length === 0) return;
|
|
3707
3707
|
let d;
|
|
3708
3708
|
try {
|
|
@@ -3710,10 +3710,10 @@ const sl = { class: "flex flex-col gap-32" }, rl = { class: "p-16 fm-corner-radi
|
|
|
3710
3710
|
} catch {
|
|
3711
3711
|
d = void 0;
|
|
3712
3712
|
}
|
|
3713
|
-
|
|
3713
|
+
k.set(N.subject, {
|
|
3714
3714
|
index: A >= 0 ? A : null,
|
|
3715
3715
|
subject: N.subject,
|
|
3716
|
-
label: ((F =
|
|
3716
|
+
label: ((F = U(N.subject)) == null ? void 0 : F.label) ?? N.subject,
|
|
3717
3717
|
actions: r,
|
|
3718
3718
|
// Each builder only ever sees its own slice of the stored condition.
|
|
3719
3719
|
sections: a.map((D) => ({
|
|
@@ -3721,18 +3721,18 @@ const sl = { class: "flex flex-col gap-32" }, rl = { class: "p-16 fm-corner-radi
|
|
|
3721
3721
|
formValue: D.fromCondition(Pt(d, D))
|
|
3722
3722
|
}))
|
|
3723
3723
|
});
|
|
3724
|
-
}),
|
|
3725
|
-
}), be = nl(n,
|
|
3726
|
-
n.value =
|
|
3724
|
+
}), k;
|
|
3725
|
+
}), be = nl(n, L, (k) => {
|
|
3726
|
+
n.value = k;
|
|
3727
3727
|
}), ge = gs(n);
|
|
3728
|
-
function ce(
|
|
3729
|
-
const A = Ne.value.get(
|
|
3728
|
+
function ce(k, N) {
|
|
3729
|
+
const A = Ne.value.get(k);
|
|
3730
3730
|
if (A) return A;
|
|
3731
|
-
const r = be.getEffectiveActions(
|
|
3731
|
+
const r = be.getEffectiveActions(k), a = B(k, r);
|
|
3732
3732
|
if (a.length !== 0)
|
|
3733
3733
|
return {
|
|
3734
3734
|
index: null,
|
|
3735
|
-
subject:
|
|
3735
|
+
subject: k,
|
|
3736
3736
|
label: N,
|
|
3737
3737
|
actions: r,
|
|
3738
3738
|
sections: a.map((d) => ({
|
|
@@ -3741,72 +3741,72 @@ const sl = { class: "flex flex-col gap-32" }, rl = { class: "p-16 fm-corner-radi
|
|
|
3741
3741
|
}))
|
|
3742
3742
|
};
|
|
3743
3743
|
}
|
|
3744
|
-
function K(
|
|
3745
|
-
const A = ge.getDraft({ subject:
|
|
3744
|
+
function K(k, N) {
|
|
3745
|
+
const A = ge.getDraft({ subject: k.subject, builderKey: N.builderKey });
|
|
3746
3746
|
if (A) return A.formValue;
|
|
3747
|
-
const r =
|
|
3747
|
+
const r = k.sections.find((a) => a.builder.builderKey === N.builderKey);
|
|
3748
3748
|
return r == null ? void 0 : r.formValue;
|
|
3749
3749
|
}
|
|
3750
|
-
function oe(
|
|
3751
|
-
const A = ge.getDraft({ subject:
|
|
3752
|
-
return A != null && A.inheritMode ? A.inheritMode : be.inheritMode(
|
|
3750
|
+
function oe(k, N) {
|
|
3751
|
+
const A = ge.getDraft({ subject: k.subject, builderKey: N.builderKey });
|
|
3752
|
+
return A != null && A.inheritMode ? A.inheritMode : be.inheritMode(k, N);
|
|
3753
3753
|
}
|
|
3754
|
-
function
|
|
3754
|
+
function We(k, N, A) {
|
|
3755
3755
|
const r = ge.getDraft({
|
|
3756
|
-
subject:
|
|
3756
|
+
subject: k.subject,
|
|
3757
3757
|
builderKey: N.builderKey
|
|
3758
3758
|
});
|
|
3759
3759
|
ge.setDraft(
|
|
3760
|
-
{ subject:
|
|
3760
|
+
{ subject: k.subject, builderKey: N.builderKey },
|
|
3761
3761
|
{
|
|
3762
3762
|
formValue: A,
|
|
3763
|
-
inheritMode: (r == null ? void 0 : r.inheritMode) ?? oe(
|
|
3763
|
+
inheritMode: (r == null ? void 0 : r.inheritMode) ?? oe(k, N)
|
|
3764
3764
|
}
|
|
3765
3765
|
);
|
|
3766
3766
|
}
|
|
3767
|
-
function et(
|
|
3767
|
+
function et(k, N, A) {
|
|
3768
3768
|
const r = ge.getDraft({
|
|
3769
|
-
subject:
|
|
3769
|
+
subject: k.subject,
|
|
3770
3770
|
builderKey: N.builderKey
|
|
3771
|
-
}), a =
|
|
3771
|
+
}), a = k.sections.find((d) => d.builder.builderKey === N.builderKey);
|
|
3772
3772
|
ge.setDraft(
|
|
3773
|
-
{ subject:
|
|
3773
|
+
{ subject: k.subject, builderKey: N.builderKey },
|
|
3774
3774
|
{
|
|
3775
3775
|
formValue: (r == null ? void 0 : r.formValue) ?? (a == null ? void 0 : a.formValue),
|
|
3776
3776
|
inheritMode: A
|
|
3777
3777
|
}
|
|
3778
3778
|
);
|
|
3779
3779
|
}
|
|
3780
|
-
function tt(
|
|
3781
|
-
return ge.hasDraftsForSubject(
|
|
3780
|
+
function tt(k) {
|
|
3781
|
+
return ge.hasDraftsForSubject(k);
|
|
3782
3782
|
}
|
|
3783
|
-
function nt(
|
|
3784
|
-
const A =
|
|
3783
|
+
function nt(k, N) {
|
|
3784
|
+
const A = k.sections.flatMap((r) => {
|
|
3785
3785
|
const a = ge.getDraft({
|
|
3786
|
-
subject:
|
|
3786
|
+
subject: k.subject,
|
|
3787
3787
|
builderKey: r.builder.builderKey
|
|
3788
3788
|
});
|
|
3789
3789
|
return a ? [{ builder: r.builder, form: a.formValue, mode: a.inheritMode ?? "custom" }] : [];
|
|
3790
3790
|
});
|
|
3791
|
-
be.applyConditionDrafts(
|
|
3791
|
+
be.applyConditionDrafts(k, A, {
|
|
3792
3792
|
afterCommit: () => {
|
|
3793
|
-
ge.clearDraftsForSubject(
|
|
3793
|
+
ge.clearDraftsForSubject(k.subject), N();
|
|
3794
3794
|
},
|
|
3795
|
-
onOverridesConflict:
|
|
3795
|
+
onOverridesConflict: Ue(k).onOverridesConflict
|
|
3796
3796
|
});
|
|
3797
3797
|
}
|
|
3798
|
-
function st(
|
|
3799
|
-
return
|
|
3798
|
+
function st(k) {
|
|
3799
|
+
return k.sections.some((N) => Object.keys(N.builder.toCondition(N.formValue)).length > 0 ? !0 : be.shouldShowInheritToggle(k, N.builder) && be.inheritMode(k, N.builder) === "custom");
|
|
3800
3800
|
}
|
|
3801
|
-
let
|
|
3802
|
-
function
|
|
3801
|
+
let Ce = !1;
|
|
3802
|
+
function Ue(k, N = {}) {
|
|
3803
3803
|
return {
|
|
3804
3804
|
...N,
|
|
3805
3805
|
onOverridesConflict: ({ override: A, keep: r }) => {
|
|
3806
|
-
|
|
3806
|
+
Ce || (Ce = !0, m.open({
|
|
3807
3807
|
title: l("team.memberForm.permissions.conditionCover.confirmTitle"),
|
|
3808
3808
|
message: l("team.memberForm.permissions.conditionCover.confirmMessage", {
|
|
3809
|
-
cover:
|
|
3809
|
+
cover: k.label
|
|
3810
3810
|
}),
|
|
3811
3811
|
minWidth: v.value.lg ? 588 : 0,
|
|
3812
3812
|
zIndex: 200,
|
|
@@ -3819,47 +3819,47 @@ const sl = { class: "flex flex-col gap-32" }, rl = { class: "p-16 fm-corner-radi
|
|
|
3819
3819
|
close: !1
|
|
3820
3820
|
}
|
|
3821
3821
|
}).onPrimary(() => {
|
|
3822
|
-
A(),
|
|
3822
|
+
A(), Ce = !1, m.close();
|
|
3823
3823
|
}).onSecondary(() => {
|
|
3824
|
-
r(),
|
|
3824
|
+
r(), Ce = !1, m.close();
|
|
3825
3825
|
}).onClose(() => {
|
|
3826
|
-
|
|
3826
|
+
Ce = !1;
|
|
3827
3827
|
}));
|
|
3828
3828
|
}
|
|
3829
3829
|
};
|
|
3830
3830
|
}
|
|
3831
3831
|
return wt(
|
|
3832
3832
|
n,
|
|
3833
|
-
(
|
|
3834
|
-
o("permissionChanged",
|
|
3833
|
+
(k) => {
|
|
3834
|
+
o("permissionChanged", k);
|
|
3835
3835
|
},
|
|
3836
3836
|
{ deep: !0 }
|
|
3837
|
-
), (
|
|
3837
|
+
), (k, N) => {
|
|
3838
3838
|
const A = Me("FmIcon"), r = Me("FmRadio"), a = Me("FmRadioGroup"), d = Me("FmButton"), F = Me("FmPopover");
|
|
3839
|
-
return
|
|
3839
|
+
return J(), ae("div", sl, [
|
|
3840
3840
|
se("div", rl, [
|
|
3841
|
-
ie(
|
|
3841
|
+
ie(Va, {
|
|
3842
3842
|
"model-value": te.value,
|
|
3843
|
-
"excluded-subjects":
|
|
3844
|
-
"additional-permissions":
|
|
3843
|
+
"excluded-subjects": S,
|
|
3844
|
+
"additional-permissions": X(O),
|
|
3845
3845
|
"onUpdate:modelValue": me
|
|
3846
|
-
},
|
|
3847
|
-
|
|
3846
|
+
}, $e({ _: 2 }, [
|
|
3847
|
+
ye(M.value, (D) => ({
|
|
3848
3848
|
name: `checkbox-${D.id}-append`,
|
|
3849
3849
|
fn: de(() => [
|
|
3850
3850
|
ie(pt, { item: D }, null, 8, ["item"])
|
|
3851
3851
|
])
|
|
3852
3852
|
})),
|
|
3853
|
-
|
|
3853
|
+
ye(pe.value, (D) => ({
|
|
3854
3854
|
name: `checkbox-${D}-icon`,
|
|
3855
|
-
fn: de(({ option:
|
|
3856
|
-
_ && ce(D,
|
|
3855
|
+
fn: de(({ option: x, isEffectiveSelected: _ }) => [
|
|
3856
|
+
_ && ce(D, x.label) ? (J(), Ae(F, {
|
|
3857
3857
|
key: 0,
|
|
3858
3858
|
disabled: e.disable,
|
|
3859
3859
|
"z-index": 100,
|
|
3860
3860
|
"exclude-el-from-click-outside": [bl],
|
|
3861
3861
|
class: "h-5 flex items-center",
|
|
3862
|
-
onClose: () =>
|
|
3862
|
+
onClose: () => X(ge).clearDraftsForSubject(D)
|
|
3863
3863
|
}, {
|
|
3864
3864
|
"popover-button": de(() => [
|
|
3865
3865
|
se("div", al, [
|
|
@@ -3868,105 +3868,105 @@ const sl = { class: "flex flex-col gap-32" }, rl = { class: "p-16 fm-corner-radi
|
|
|
3868
3868
|
size: "sm",
|
|
3869
3869
|
class: at([
|
|
3870
3870
|
"cursor-pointer transition-colors",
|
|
3871
|
-
st(ce(D,
|
|
3871
|
+
st(ce(D, x.label)) ? "text-fm-color-primary-main" : "text-fm-color-neutral-gray-400 hover:text-fm-color-neutral-gray-600"
|
|
3872
3872
|
])
|
|
3873
3873
|
}, null, 8, ["class"])
|
|
3874
3874
|
])
|
|
3875
3875
|
]),
|
|
3876
|
-
default: de(({ hide:
|
|
3876
|
+
default: de(({ hide: C }) => [
|
|
3877
3877
|
se("div", ll, [
|
|
3878
|
-
se("p", ol,
|
|
3879
|
-
context: ce(D,
|
|
3878
|
+
se("p", ol, ke(X(l)("team.memberForm.permissions.conditionTitle", {
|
|
3879
|
+
context: ce(D, x.label).label
|
|
3880
3880
|
})), 1),
|
|
3881
|
-
(
|
|
3882
|
-
key:
|
|
3881
|
+
(J(!0), ae(Oe, null, ye(ce(D, x.label).sections, (G, Q) => (J(), ae(Oe, {
|
|
3882
|
+
key: G.builder.builderKey
|
|
3883
3883
|
}, [
|
|
3884
|
-
Q > 0 ? (
|
|
3885
|
-
|
|
3886
|
-
ce(D,
|
|
3887
|
-
|
|
3888
|
-
) ? (
|
|
3884
|
+
Q > 0 ? (J(), ae("div", il)) : Le("", !0),
|
|
3885
|
+
X(be).shouldShowInheritToggle(
|
|
3886
|
+
ce(D, x.label),
|
|
3887
|
+
G.builder
|
|
3888
|
+
) ? (J(), ae("div", cl, [
|
|
3889
3889
|
ie(a, {
|
|
3890
|
-
"model-value": oe(ce(D,
|
|
3890
|
+
"model-value": oe(ce(D, x.label), G.builder),
|
|
3891
3891
|
disabled: e.disable,
|
|
3892
|
-
"onUpdate:modelValue": (
|
|
3893
|
-
ce(D,
|
|
3894
|
-
|
|
3895
|
-
|
|
3892
|
+
"onUpdate:modelValue": (Ee) => et(
|
|
3893
|
+
ce(D, x.label),
|
|
3894
|
+
G.builder,
|
|
3895
|
+
Ee
|
|
3896
3896
|
)
|
|
3897
3897
|
}, {
|
|
3898
3898
|
default: de(() => [
|
|
3899
3899
|
se("div", null, [
|
|
3900
3900
|
ie(r, {
|
|
3901
3901
|
value: "inherit",
|
|
3902
|
-
label:
|
|
3903
|
-
cover:
|
|
3902
|
+
label: X(l)("team.memberForm.permissions.conditionCover.inherit", {
|
|
3903
|
+
cover: X(be).coverLabel(D)
|
|
3904
3904
|
})
|
|
3905
3905
|
}, null, 8, ["label"]),
|
|
3906
|
-
|
|
3907
|
-
ce(D,
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
) ? (
|
|
3911
|
-
|
|
3912
|
-
ce(D,
|
|
3913
|
-
|
|
3914
|
-
|
|
3906
|
+
X(be).inheritedSummary(
|
|
3907
|
+
ce(D, x.label),
|
|
3908
|
+
G.builder,
|
|
3909
|
+
R.value
|
|
3910
|
+
) ? (J(), ae("p", ul, " (" + ke(X(l)(
|
|
3911
|
+
X(be).inheritedSummary(
|
|
3912
|
+
ce(D, x.label),
|
|
3913
|
+
G.builder,
|
|
3914
|
+
R.value
|
|
3915
3915
|
).labelKey,
|
|
3916
|
-
|
|
3917
|
-
ce(D,
|
|
3918
|
-
|
|
3919
|
-
|
|
3916
|
+
X(be).inheritedSummary(
|
|
3917
|
+
ce(D, x.label),
|
|
3918
|
+
G.builder,
|
|
3919
|
+
R.value
|
|
3920
3920
|
).params ?? {}
|
|
3921
|
-
)) + ") ", 1)) :
|
|
3921
|
+
)) + ") ", 1)) : Le("", !0)
|
|
3922
3922
|
]),
|
|
3923
3923
|
ie(r, {
|
|
3924
3924
|
value: "custom",
|
|
3925
|
-
label:
|
|
3925
|
+
label: X(l)("team.memberForm.permissions.conditionCover.custom")
|
|
3926
3926
|
}, null, 8, ["label"])
|
|
3927
3927
|
]),
|
|
3928
3928
|
_: 2
|
|
3929
3929
|
}, 1032, ["model-value", "disabled", "onUpdate:modelValue"]),
|
|
3930
3930
|
oe(
|
|
3931
|
-
ce(D,
|
|
3932
|
-
|
|
3933
|
-
) === "custom" ? (
|
|
3931
|
+
ce(D, x.label),
|
|
3932
|
+
G.builder
|
|
3933
|
+
) === "custom" ? (J(), ae("div", dl, [
|
|
3934
3934
|
ie(sn, {
|
|
3935
|
-
builder:
|
|
3936
|
-
"model-value": K(ce(D,
|
|
3935
|
+
builder: G.builder,
|
|
3936
|
+
"model-value": K(ce(D, x.label), G.builder),
|
|
3937
3937
|
disable: e.disable,
|
|
3938
|
-
"onUpdate:modelValue": (
|
|
3939
|
-
ce(D,
|
|
3940
|
-
|
|
3941
|
-
|
|
3938
|
+
"onUpdate:modelValue": (Ee) => We(
|
|
3939
|
+
ce(D, x.label),
|
|
3940
|
+
G.builder,
|
|
3941
|
+
Ee
|
|
3942
3942
|
)
|
|
3943
3943
|
}, null, 8, ["builder", "model-value", "disable", "onUpdate:modelValue"])
|
|
3944
|
-
])) :
|
|
3945
|
-
])) : (
|
|
3944
|
+
])) : Le("", !0)
|
|
3945
|
+
])) : (J(), Ae(sn, {
|
|
3946
3946
|
key: 2,
|
|
3947
|
-
builder:
|
|
3948
|
-
"model-value": K(ce(D,
|
|
3947
|
+
builder: G.builder,
|
|
3948
|
+
"model-value": K(ce(D, x.label), G.builder),
|
|
3949
3949
|
disable: e.disable,
|
|
3950
|
-
"onUpdate:modelValue": (
|
|
3951
|
-
ce(D,
|
|
3952
|
-
|
|
3953
|
-
|
|
3950
|
+
"onUpdate:modelValue": (Ee) => We(
|
|
3951
|
+
ce(D, x.label),
|
|
3952
|
+
G.builder,
|
|
3953
|
+
Ee
|
|
3954
3954
|
)
|
|
3955
3955
|
}, null, 8, ["builder", "model-value", "disable", "onUpdate:modelValue"]))
|
|
3956
3956
|
], 64))), 128)),
|
|
3957
3957
|
se("div", ml, [
|
|
3958
3958
|
ie(d, {
|
|
3959
|
-
label:
|
|
3959
|
+
label: X(l)("team.memberForm.permissions.conditionApply"),
|
|
3960
3960
|
size: "md",
|
|
3961
3961
|
variant: "primary",
|
|
3962
3962
|
disabled: e.disable || !tt(D),
|
|
3963
|
-
onClick: (
|
|
3963
|
+
onClick: (G) => nt(ce(D, x.label), C)
|
|
3964
3964
|
}, null, 8, ["label", "disabled", "onClick"])
|
|
3965
3965
|
])
|
|
3966
3966
|
])
|
|
3967
3967
|
]),
|
|
3968
3968
|
_: 2
|
|
3969
|
-
}, 1032, ["disabled", "exclude-el-from-click-outside", "onClose"])) : (
|
|
3969
|
+
}, 1032, ["disabled", "exclude-el-from-click-outside", "onClose"])) : (J(), Ae(A, {
|
|
3970
3970
|
key: 1,
|
|
3971
3971
|
name: "settings",
|
|
3972
3972
|
size: "sm",
|
|
@@ -3979,11 +3979,11 @@ const sl = { class: "flex flex-col gap-32" }, rl = { class: "p-16 fm-corner-radi
|
|
|
3979
3979
|
se("div", fl, [
|
|
3980
3980
|
ie(Fn, {
|
|
3981
3981
|
"model-value": i.value,
|
|
3982
|
-
options:
|
|
3983
|
-
context:
|
|
3982
|
+
options: y.value,
|
|
3983
|
+
context: X(l)("team.labels.warehouse"),
|
|
3984
3984
|
"onUpdate:modelValue": b
|
|
3985
|
-
},
|
|
3986
|
-
|
|
3985
|
+
}, $e({ _: 2 }, [
|
|
3986
|
+
ye(P.value, (D) => ({
|
|
3987
3987
|
name: `checkbox-${D.id}-append`,
|
|
3988
3988
|
fn: de(() => [
|
|
3989
3989
|
ie(pt, { item: D }, null, 8, ["item"])
|
|
@@ -3993,12 +3993,12 @@ const sl = { class: "flex flex-col gap-32" }, rl = { class: "p-16 fm-corner-radi
|
|
|
3993
3993
|
]),
|
|
3994
3994
|
se("div", _l, [
|
|
3995
3995
|
ie(Fn, {
|
|
3996
|
-
"model-value":
|
|
3997
|
-
options:
|
|
3998
|
-
context:
|
|
3999
|
-
"onUpdate:modelValue":
|
|
4000
|
-
},
|
|
4001
|
-
|
|
3996
|
+
"model-value": Z.value,
|
|
3997
|
+
options: E.value,
|
|
3998
|
+
context: X(l)("team.labels.restaurant"),
|
|
3999
|
+
"onUpdate:modelValue": H
|
|
4000
|
+
}, $e({ _: 2 }, [
|
|
4001
|
+
ye(u.value, (D) => ({
|
|
4002
4002
|
name: `checkbox-${D.id}-append`,
|
|
4003
4003
|
fn: de(() => [
|
|
4004
4004
|
ie(pt, { item: D }, null, 8, ["item"])
|
|
@@ -4008,12 +4008,12 @@ const sl = { class: "flex flex-col gap-32" }, rl = { class: "p-16 fm-corner-radi
|
|
|
4008
4008
|
]),
|
|
4009
4009
|
se("div", pl, [
|
|
4010
4010
|
ie(Ka, {
|
|
4011
|
-
roles:
|
|
4012
|
-
"model-value":
|
|
4013
|
-
"restaurant-ids":
|
|
4011
|
+
roles: X(T),
|
|
4012
|
+
"model-value": Y.value,
|
|
4013
|
+
"restaurant-ids": Z.value,
|
|
4014
4014
|
"onUpdate:modelValue": j
|
|
4015
|
-
},
|
|
4016
|
-
|
|
4015
|
+
}, $e({ _: 2 }, [
|
|
4016
|
+
ye(p.value, (D) => ({
|
|
4017
4017
|
name: `checkbox-${D.id}-append`,
|
|
4018
4018
|
fn: de(() => [
|
|
4019
4019
|
ie(pt, { item: D }, null, 8, ["item"])
|