@feedmepos/mf-hrm-portal 2.3.2-dev → 2.3.3-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ApprovalCodeList-xOyDG5ug.js → ApprovalCodeList-D8ZVkmrF.js} +13 -14
- package/dist/{AuditLogList-Dd6HyFhk.js → AuditLogList-Fby1fcGU.js} +3 -3
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Cixg_icC.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-B1uS6T3r.js} +2 -2
- package/dist/{EmployeeList-BG2KPvOB.js → EmployeeList-DY2Y-FtT.js} +16 -17
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-BDGewUFD.js +90 -0
- package/dist/{GrantUserList-CUkuf3VV.js → GrantUserList-RK38DjjY.js} +14 -15
- package/dist/{Main-Cg9SOzcz.js → Main-424HHE7m.js} +5 -5
- package/dist/{Main-BSHf8gTE.js → Main-BuJe2QNl.js} +12 -11
- package/dist/{Main-BcixH7R5.js → Main-Pv9x678t.js} +11 -11
- package/dist/{MyPosProfile-CN8Bj3aV.js → MyPosProfile-Rc2ZTeQR.js} +1 -1
- package/dist/{PermissionSetList-I3u2_qHR.js → PermissionSetList-BT1oUm8M.js} +20 -20
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BBoRXQPn.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BRrhFF3y.js} +1008 -1008
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-B5QDOF0L.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CD3d4RX6.js} +1 -1
- package/dist/RoleForm.vue_vue_type_script_setup_true_lang-DS4eMJ6w.js +547 -0
- package/dist/RoleList-CrLxn4_K.js +274 -0
- package/dist/TeamMemberList-D32ZtSLP.js +2060 -0
- package/dist/{TimesheetList-CECFKt7H.js → TimesheetList-ByUp0yfA.js} +7 -7
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-RIyoAmeb.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-9x0jnL2P.js} +3 -3
- package/dist/{app-CdrnR_Pw.js → app-BsAwRWj0.js} +208 -188
- package/dist/app.js +1 -1
- package/dist/{approval-code-Bwvwehz9.js → approval-code-BUuYtJAO.js} +1 -1
- package/dist/{dayjs.min-BO8bcI17.js → dayjs.min-C9xnIrg1.js} +1 -1
- package/dist/{employee-Dg-J9goA.js → employee-DAwBQ0bc.js} +5 -5
- package/dist/{grant-user-whFOaPZI.js → grant-user-D-PdX5g-.js} +1 -1
- package/dist/{iteration-ZpERYj3o.js → iteration-Dat4Ismm.js} +1 -1
- package/dist/{lodash-7SZBZ8VQ.js → lodash-DjYVoggD.js} +1 -1
- package/dist/{member-grant-C46lvrh2.js → member-grant-CQHFGo-k.js} +2 -2
- package/dist/{restaurant-CKhT6kgj.js → restaurant-dbllb9m8.js} +1 -1
- package/dist/{role-C6hFKOfU.js → role-DN-jiQnS.js} +3 -3
- package/dist/{rule-BlMymDXm.js → rule-Bgcb9R7I.js} +19 -19
- package/dist/src/helpers/pos-assignment-rows.d.ts +2 -0
- package/dist/src/views/hr/locales/index.d.ts +20 -0
- package/dist/src/views/hr/role/RoleForm.vue.d.ts +29 -2
- package/dist/src/views/team/components/MemberGrantFields.vue.d.ts +2 -6
- package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +0 -2
- package/dist/src/views/team/member/AddMemberForm.vue.d.ts +0 -2
- package/dist/src/views/team/member/TeamMemberMasterUser.vue.d.ts +0 -2
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-CL6EEDuw.js → useAppStore-BABlZnfR.js} +1 -1
- package/dist/{useLoading-BBjBUzGJ.js → useLoading-B47q5dVg.js} +1 -1
- package/dist/{useReportPermissions-Bg0fma6m.js → useReportPermissions-D-nbQAm5.js} +5 -5
- package/package.json +1 -1
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js +0 -45
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +0 -49
- package/dist/RoleList-ALmAwN0U.js +0 -739
- package/dist/TeamMemberList-DZfEnOs1.js +0 -2097
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
2
|
-
import { useI18n as Ke, useCoreStore as
|
|
1
|
+
import { getCurrentInstance as Xt, inject as mr, ref as st, shallowRef as dr, computed as z, watch as wt, onMounted as xn, onUnmounted as fr, defineComponent as Ae, h as Wn, createVNode as le, Text as _r, Fragment as we, resolveComponent as De, createBlock as Te, openBlock as J, withCtx as ce, createElementVNode as ie, createElementBlock as re, toDisplayString as Se, unref as Y, renderList as Ce, toRef as en, normalizeStyle as rt, renderSlot as Le, createCommentVNode as Ne, normalizeClass as Ee, createTextVNode as vr, useSlots as pr, createSlots as tt, mergeModels as tn, useModel as hr } from "vue";
|
|
2
|
+
import { useI18n as Ke, useCoreStore as br } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialog as gr, useBreakpoints as yr } from "@feedmepos/ui-library";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { p as Gn, N as Zn,
|
|
6
|
-
import { _ as
|
|
7
|
-
import { u as Sr,
|
|
8
|
-
import { c as yt } from "./iteration-
|
|
9
|
-
import { r as Mr, s as
|
|
10
|
-
import { W as wr } from "./member-grant-
|
|
11
|
-
import { u as Dr } from "./role-
|
|
12
|
-
function
|
|
5
|
+
import { p as Gn, N as Zn, a as Ir, P as Er, w as Lt, x as Cr, y as Nr } from "./rule-Bgcb9R7I.js";
|
|
6
|
+
import { _ as Yt, a as Tr, b as nn, u as Or } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-B1uS6T3r.js";
|
|
7
|
+
import { u as Sr, k as Lr, g as kr, b as Ar, v as Bn, S as Dt, A as nt, m as ye, q as rn, O as Rr } from "./app-BsAwRWj0.js";
|
|
8
|
+
import { c as yt } from "./iteration-Dat4Ismm.js";
|
|
9
|
+
import { r as Mr, s as Xn } from "./string-DZQ1uNjn.js";
|
|
10
|
+
import { W as wr } from "./member-grant-CQHFGo-k.js";
|
|
11
|
+
import { u as Dr } from "./role-DN-jiQnS.js";
|
|
12
|
+
function Yn(e, t) {
|
|
13
13
|
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
14
14
|
}
|
|
15
15
|
function Fr(e) {
|
|
16
16
|
return Array.isArray(e) ? e[0] : e;
|
|
17
17
|
}
|
|
18
18
|
function Pr(e, t) {
|
|
19
|
-
const n = t.find((a) =>
|
|
19
|
+
const n = t.find((a) => Yn(a.subject, e));
|
|
20
20
|
if (!(n != null && n.category) || n.isCategoryCover) return;
|
|
21
21
|
const r = t.find((a) => a.category === n.category && a.isCategoryCover);
|
|
22
22
|
if (r)
|
|
23
23
|
return Fr(r.subject);
|
|
24
24
|
}
|
|
25
25
|
function sn(e, t) {
|
|
26
|
-
const n = t.find((r) =>
|
|
26
|
+
const n = t.find((r) => Yn(r.subject, e));
|
|
27
27
|
return !!(n != null && n.isCategoryCover);
|
|
28
28
|
}
|
|
29
29
|
/*!
|
|
@@ -31,36 +31,36 @@ function sn(e, t) {
|
|
|
31
31
|
* (c) 2024 kazuya kawaguchi
|
|
32
32
|
* Released under the MIT License.
|
|
33
33
|
*/
|
|
34
|
-
const an = typeof window < "u", ze = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), jr = (e, t, n) =>
|
|
35
|
-
let
|
|
36
|
-
const $e = () =>
|
|
37
|
-
function
|
|
34
|
+
const an = typeof window < "u", ze = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), jr = (e, t, n) => Ur({ l: e, k: t, s: n }), Ur = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), be = (e) => typeof e == "number" && isFinite(e), Vr = (e) => Ht(e) === "[object Date]", Et = (e) => Ht(e) === "[object RegExp]", Nt = (e) => q(e) && Object.keys(e).length === 0, ge = Object.assign, xr = Object.create, se = (e = null) => xr(e);
|
|
35
|
+
let ln;
|
|
36
|
+
const $e = () => ln || (ln = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : se());
|
|
37
|
+
function on(e) {
|
|
38
38
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
39
39
|
}
|
|
40
40
|
const Wr = Object.prototype.hasOwnProperty;
|
|
41
41
|
function ke(e, t) {
|
|
42
42
|
return Wr.call(e, t);
|
|
43
43
|
}
|
|
44
|
-
const
|
|
44
|
+
const ve = Array.isArray, ue = (e) => typeof e == "function", G = (e) => typeof e == "string", _e = (e) => typeof e == "boolean", ee = (e) => e !== null && typeof e == "object", Gr = (e) => ee(e) && ue(e.then) && ue(e.catch), Hn = Object.prototype.toString, Ht = (e) => Hn.call(e), q = (e) => Ht(e) === "[object Object]", Zr = (e) => e == null ? "" : ve(e) || q(e) && e.toString === Hn ? JSON.stringify(e, null, 2) : String(e);
|
|
45
45
|
function Jt(e, t = "") {
|
|
46
46
|
return e.reduce((n, r, a) => a === 0 ? n + r : n + t + r, "");
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Br(e, t) {
|
|
49
49
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
50
50
|
}
|
|
51
|
-
const ft = (e) => !ee(e) ||
|
|
51
|
+
const ft = (e) => !ee(e) || ve(e);
|
|
52
52
|
function It(e, t) {
|
|
53
53
|
if (ft(e) || ft(t))
|
|
54
54
|
throw new Error("Invalid value");
|
|
55
55
|
const n = [{ src: e, des: t }];
|
|
56
56
|
for (; n.length; ) {
|
|
57
57
|
const { src: r, des: a } = n.pop();
|
|
58
|
-
Object.keys(r).forEach((
|
|
59
|
-
|
|
58
|
+
Object.keys(r).forEach((l) => {
|
|
59
|
+
l !== "__proto__" && (ee(r[l]) && !ee(a[l]) && (a[l] = Array.isArray(r[l]) ? [] : se()), ft(a[l]) || ft(r[l]) ? a[l] = r[l] : n.push({ src: r[l], des: a[l] }));
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Xr(e, t, n) {
|
|
64
64
|
return { line: e, column: t, offset: n };
|
|
65
65
|
}
|
|
66
66
|
function Ft(e, t, n) {
|
|
@@ -83,37 +83,37 @@ const ne = {
|
|
|
83
83
|
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
84
84
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
85
85
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
86
|
-
},
|
|
86
|
+
}, Yr = 17;
|
|
87
87
|
function Tt(e, t, n = {}) {
|
|
88
|
-
const { domain: r, messages: a, args:
|
|
88
|
+
const { domain: r, messages: a, args: l } = n, f = e, d = new SyntaxError(String(f));
|
|
89
89
|
return d.code = e, t && (d.location = t), d.domain = r, d;
|
|
90
90
|
}
|
|
91
91
|
function Hr(e) {
|
|
92
92
|
throw e;
|
|
93
93
|
}
|
|
94
|
-
const
|
|
94
|
+
const Ue = " ", Jr = "\r", Ie = `
|
|
95
95
|
`, $r = "\u2028", Kr = "\u2029";
|
|
96
96
|
function zr(e) {
|
|
97
97
|
const t = e;
|
|
98
|
-
let n = 0, r = 1, a = 1,
|
|
99
|
-
const f = (
|
|
100
|
-
function
|
|
101
|
-
return
|
|
98
|
+
let n = 0, r = 1, a = 1, l = 0;
|
|
99
|
+
const f = (p) => t[p] === Jr && t[p + 1] === Ie, d = (p) => t[p] === Ie, i = (p) => t[p] === Kr, g = (p) => t[p] === $r, C = (p) => f(p) || d(p) || i(p) || g(p), O = () => n, N = () => r, w = () => a, R = () => l, k = (p) => f(p) || i(p) || g(p) ? Ie : t[p], M = () => k(n), v = () => k(n + l);
|
|
100
|
+
function h() {
|
|
101
|
+
return l = 0, C(n) && (r++, a = 0), f(n) && n++, n++, a++, t[n];
|
|
102
102
|
}
|
|
103
103
|
function S() {
|
|
104
|
-
return f(n +
|
|
104
|
+
return f(n + l) && l++, l++, t[n + l];
|
|
105
105
|
}
|
|
106
106
|
function m() {
|
|
107
|
-
n = 0, r = 1, a = 1,
|
|
107
|
+
n = 0, r = 1, a = 1, l = 0;
|
|
108
108
|
}
|
|
109
|
-
function y(
|
|
110
|
-
|
|
109
|
+
function y(p = 0) {
|
|
110
|
+
l = p;
|
|
111
111
|
}
|
|
112
112
|
function E() {
|
|
113
|
-
const
|
|
114
|
-
for (;
|
|
115
|
-
|
|
116
|
-
|
|
113
|
+
const p = n + l;
|
|
114
|
+
for (; p !== n; )
|
|
115
|
+
h();
|
|
116
|
+
l = 0;
|
|
117
117
|
}
|
|
118
118
|
return {
|
|
119
119
|
index: O,
|
|
@@ -122,17 +122,17 @@ function zr(e) {
|
|
|
122
122
|
peekOffset: R,
|
|
123
123
|
charAt: k,
|
|
124
124
|
currentChar: M,
|
|
125
|
-
currentPeek:
|
|
126
|
-
next:
|
|
125
|
+
currentPeek: v,
|
|
126
|
+
next: h,
|
|
127
127
|
peek: S,
|
|
128
128
|
reset: m,
|
|
129
129
|
resetPeek: y,
|
|
130
130
|
skipToPeek: E
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
const
|
|
133
|
+
const Be = void 0, Qr = ".", cn = "'", qr = "tokenizer";
|
|
134
134
|
function es(e, t = {}) {
|
|
135
|
-
const n = t.location !== !1, r = zr(e), a = () => r.index(),
|
|
135
|
+
const n = t.location !== !1, r = zr(e), a = () => r.index(), l = () => Xr(r.line(), r.column(), r.index()), f = l(), d = a(), i = {
|
|
136
136
|
currentType: 13,
|
|
137
137
|
offset: d,
|
|
138
138
|
startLoc: f,
|
|
@@ -145,140 +145,140 @@ function es(e, t = {}) {
|
|
|
145
145
|
inLinked: !1,
|
|
146
146
|
text: ""
|
|
147
147
|
}, g = () => i, { onError: C } = t;
|
|
148
|
-
function O(
|
|
148
|
+
function O(o, s, c, ...b) {
|
|
149
149
|
const D = g();
|
|
150
150
|
if (s.column += c, s.offset += c, C) {
|
|
151
|
-
const
|
|
151
|
+
const V = n ? Ft(D.startLoc, s) : null, u = Tt(o, V, {
|
|
152
152
|
domain: qr,
|
|
153
|
-
args:
|
|
153
|
+
args: b
|
|
154
154
|
});
|
|
155
155
|
C(u);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
function N(
|
|
159
|
-
|
|
160
|
-
const
|
|
161
|
-
return n && (
|
|
158
|
+
function N(o, s, c) {
|
|
159
|
+
o.endLoc = l(), o.currentType = s;
|
|
160
|
+
const b = { type: s };
|
|
161
|
+
return n && (b.loc = Ft(o.startLoc, o.endLoc)), c != null && (b.value = c), b;
|
|
162
162
|
}
|
|
163
|
-
const w = (
|
|
164
|
-
|
|
163
|
+
const w = (o) => N(
|
|
164
|
+
o,
|
|
165
165
|
13
|
|
166
166
|
/* TokenTypes.EOF */
|
|
167
167
|
);
|
|
168
|
-
function R(
|
|
169
|
-
return
|
|
168
|
+
function R(o, s) {
|
|
169
|
+
return o.currentChar() === s ? (o.next(), s) : (O(ne.EXPECTED_TOKEN, l(), 0, s), "");
|
|
170
170
|
}
|
|
171
|
-
function k(
|
|
171
|
+
function k(o) {
|
|
172
172
|
let s = "";
|
|
173
|
-
for (;
|
|
174
|
-
s +=
|
|
173
|
+
for (; o.currentPeek() === Ue || o.currentPeek() === Ie; )
|
|
174
|
+
s += o.currentPeek(), o.peek();
|
|
175
175
|
return s;
|
|
176
176
|
}
|
|
177
|
-
function M(
|
|
178
|
-
const s = k(
|
|
179
|
-
return
|
|
177
|
+
function M(o) {
|
|
178
|
+
const s = k(o);
|
|
179
|
+
return o.skipToPeek(), s;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
if (
|
|
181
|
+
function v(o) {
|
|
182
|
+
if (o === Be)
|
|
183
183
|
return !1;
|
|
184
|
-
const s =
|
|
184
|
+
const s = o.charCodeAt(0);
|
|
185
185
|
return s >= 97 && s <= 122 || // a-z
|
|
186
186
|
s >= 65 && s <= 90 || // A-Z
|
|
187
187
|
s === 95;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
if (
|
|
189
|
+
function h(o) {
|
|
190
|
+
if (o === Be)
|
|
191
191
|
return !1;
|
|
192
|
-
const s =
|
|
192
|
+
const s = o.charCodeAt(0);
|
|
193
193
|
return s >= 48 && s <= 57;
|
|
194
194
|
}
|
|
195
|
-
function S(
|
|
195
|
+
function S(o, s) {
|
|
196
196
|
const { currentType: c } = s;
|
|
197
197
|
if (c !== 2)
|
|
198
198
|
return !1;
|
|
199
|
-
k(
|
|
200
|
-
const
|
|
201
|
-
return
|
|
199
|
+
k(o);
|
|
200
|
+
const b = v(o.currentPeek());
|
|
201
|
+
return o.resetPeek(), b;
|
|
202
202
|
}
|
|
203
|
-
function m(
|
|
203
|
+
function m(o, s) {
|
|
204
204
|
const { currentType: c } = s;
|
|
205
205
|
if (c !== 2)
|
|
206
206
|
return !1;
|
|
207
|
-
k(
|
|
208
|
-
const
|
|
209
|
-
return
|
|
207
|
+
k(o);
|
|
208
|
+
const b = o.currentPeek() === "-" ? o.peek() : o.currentPeek(), D = h(b);
|
|
209
|
+
return o.resetPeek(), D;
|
|
210
210
|
}
|
|
211
|
-
function y(
|
|
211
|
+
function y(o, s) {
|
|
212
212
|
const { currentType: c } = s;
|
|
213
213
|
if (c !== 2)
|
|
214
214
|
return !1;
|
|
215
|
-
k(
|
|
216
|
-
const
|
|
217
|
-
return
|
|
215
|
+
k(o);
|
|
216
|
+
const b = o.currentPeek() === cn;
|
|
217
|
+
return o.resetPeek(), b;
|
|
218
218
|
}
|
|
219
|
-
function E(
|
|
219
|
+
function E(o, s) {
|
|
220
220
|
const { currentType: c } = s;
|
|
221
221
|
if (c !== 7)
|
|
222
222
|
return !1;
|
|
223
|
-
k(
|
|
224
|
-
const
|
|
225
|
-
return
|
|
223
|
+
k(o);
|
|
224
|
+
const b = o.currentPeek() === ".";
|
|
225
|
+
return o.resetPeek(), b;
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function p(o, s) {
|
|
228
228
|
const { currentType: c } = s;
|
|
229
229
|
if (c !== 8)
|
|
230
230
|
return !1;
|
|
231
|
-
k(
|
|
232
|
-
const
|
|
233
|
-
return
|
|
231
|
+
k(o);
|
|
232
|
+
const b = v(o.currentPeek());
|
|
233
|
+
return o.resetPeek(), b;
|
|
234
234
|
}
|
|
235
|
-
function A(
|
|
235
|
+
function A(o, s) {
|
|
236
236
|
const { currentType: c } = s;
|
|
237
237
|
if (!(c === 7 || c === 11))
|
|
238
238
|
return !1;
|
|
239
|
-
k(
|
|
240
|
-
const
|
|
241
|
-
return
|
|
239
|
+
k(o);
|
|
240
|
+
const b = o.currentPeek() === ":";
|
|
241
|
+
return o.resetPeek(), b;
|
|
242
242
|
}
|
|
243
|
-
function L(
|
|
243
|
+
function L(o, s) {
|
|
244
244
|
const { currentType: c } = s;
|
|
245
245
|
if (c !== 9)
|
|
246
246
|
return !1;
|
|
247
|
-
const
|
|
248
|
-
const
|
|
249
|
-
return
|
|
250
|
-
}, D =
|
|
251
|
-
return
|
|
252
|
-
}
|
|
253
|
-
function H(
|
|
254
|
-
k(
|
|
255
|
-
const s =
|
|
256
|
-
return
|
|
257
|
-
}
|
|
258
|
-
function x(
|
|
259
|
-
const c = (D = !1,
|
|
260
|
-
const u =
|
|
261
|
-
return u === "{" || u === "@" || !u ? D : u === "|" ? !(
|
|
262
|
-
},
|
|
263
|
-
return s &&
|
|
264
|
-
}
|
|
265
|
-
function _(
|
|
266
|
-
const c =
|
|
267
|
-
return c ===
|
|
268
|
-
}
|
|
269
|
-
function T(
|
|
270
|
-
const s =
|
|
247
|
+
const b = () => {
|
|
248
|
+
const V = o.currentPeek();
|
|
249
|
+
return V === "{" ? v(o.peek()) : V === "@" || V === "|" || V === ":" || V === "." || V === Ue || !V ? !1 : V === Ie ? (o.peek(), b()) : x(o, !1);
|
|
250
|
+
}, D = b();
|
|
251
|
+
return o.resetPeek(), D;
|
|
252
|
+
}
|
|
253
|
+
function H(o) {
|
|
254
|
+
k(o);
|
|
255
|
+
const s = o.currentPeek() === "|";
|
|
256
|
+
return o.resetPeek(), s;
|
|
257
|
+
}
|
|
258
|
+
function x(o, s = !0) {
|
|
259
|
+
const c = (D = !1, V = "") => {
|
|
260
|
+
const u = o.currentPeek();
|
|
261
|
+
return u === "{" || u === "@" || !u ? D : u === "|" ? !(V === Ue || V === Ie) : u === Ue ? (o.peek(), c(!0, Ue)) : u === Ie ? (o.peek(), c(!0, Ie)) : !0;
|
|
262
|
+
}, b = c();
|
|
263
|
+
return s && o.resetPeek(), b;
|
|
264
|
+
}
|
|
265
|
+
function _(o, s) {
|
|
266
|
+
const c = o.currentChar();
|
|
267
|
+
return c === Be ? Be : s(c) ? (o.next(), c) : null;
|
|
268
|
+
}
|
|
269
|
+
function T(o) {
|
|
270
|
+
const s = o.charCodeAt(0);
|
|
271
271
|
return s >= 97 && s <= 122 || // a-z
|
|
272
272
|
s >= 65 && s <= 90 || // A-Z
|
|
273
273
|
s >= 48 && s <= 57 || // 0-9
|
|
274
274
|
s === 95 || // _
|
|
275
275
|
s === 36;
|
|
276
276
|
}
|
|
277
|
-
function j(
|
|
278
|
-
return _(
|
|
277
|
+
function j(o) {
|
|
278
|
+
return _(o, T);
|
|
279
279
|
}
|
|
280
|
-
function P(
|
|
281
|
-
const s =
|
|
280
|
+
function P(o) {
|
|
281
|
+
const s = o.charCodeAt(0);
|
|
282
282
|
return s >= 97 && s <= 122 || // a-z
|
|
283
283
|
s >= 65 && s <= 90 || // A-Z
|
|
284
284
|
s >= 48 && s <= 57 || // 0-9
|
|
@@ -286,234 +286,234 @@ function es(e, t = {}) {
|
|
|
286
286
|
s === 36 || // $
|
|
287
287
|
s === 45;
|
|
288
288
|
}
|
|
289
|
-
function F(
|
|
290
|
-
return _(
|
|
289
|
+
function F(o) {
|
|
290
|
+
return _(o, P);
|
|
291
291
|
}
|
|
292
|
-
function W(
|
|
293
|
-
const s =
|
|
292
|
+
function W(o) {
|
|
293
|
+
const s = o.charCodeAt(0);
|
|
294
294
|
return s >= 48 && s <= 57;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
297
|
-
return _(
|
|
296
|
+
function U(o) {
|
|
297
|
+
return _(o, W);
|
|
298
298
|
}
|
|
299
|
-
function Z(
|
|
300
|
-
const s =
|
|
299
|
+
function Z(o) {
|
|
300
|
+
const s = o.charCodeAt(0);
|
|
301
301
|
return s >= 48 && s <= 57 || // 0-9
|
|
302
302
|
s >= 65 && s <= 70 || // A-F
|
|
303
303
|
s >= 97 && s <= 102;
|
|
304
304
|
}
|
|
305
|
-
function
|
|
306
|
-
return _(
|
|
305
|
+
function X(o) {
|
|
306
|
+
return _(o, Z);
|
|
307
307
|
}
|
|
308
|
-
function te(
|
|
308
|
+
function te(o) {
|
|
309
309
|
let s = "", c = "";
|
|
310
|
-
for (; s =
|
|
310
|
+
for (; s = U(o); )
|
|
311
311
|
c += s;
|
|
312
312
|
return c;
|
|
313
313
|
}
|
|
314
|
-
function Q(
|
|
314
|
+
function Q(o) {
|
|
315
315
|
let s = "";
|
|
316
316
|
for (; ; ) {
|
|
317
|
-
const c =
|
|
317
|
+
const c = o.currentChar();
|
|
318
318
|
if (c === "{" || c === "}" || c === "@" || c === "|" || !c)
|
|
319
319
|
break;
|
|
320
|
-
if (c ===
|
|
321
|
-
if (x(
|
|
322
|
-
s += c,
|
|
320
|
+
if (c === Ue || c === Ie)
|
|
321
|
+
if (x(o))
|
|
322
|
+
s += c, o.next();
|
|
323
323
|
else {
|
|
324
|
-
if (H(
|
|
324
|
+
if (H(o))
|
|
325
325
|
break;
|
|
326
|
-
s += c,
|
|
326
|
+
s += c, o.next();
|
|
327
327
|
}
|
|
328
328
|
else
|
|
329
|
-
s += c,
|
|
329
|
+
s += c, o.next();
|
|
330
330
|
}
|
|
331
331
|
return s;
|
|
332
332
|
}
|
|
333
|
-
function de(
|
|
334
|
-
M(
|
|
333
|
+
function de(o) {
|
|
334
|
+
M(o);
|
|
335
335
|
let s = "", c = "";
|
|
336
|
-
for (; s = F(
|
|
336
|
+
for (; s = F(o); )
|
|
337
337
|
c += s;
|
|
338
|
-
return
|
|
338
|
+
return o.currentChar() === Be && O(ne.UNTERMINATED_CLOSING_BRACE, l(), 0), c;
|
|
339
339
|
}
|
|
340
|
-
function
|
|
341
|
-
M(
|
|
340
|
+
function pe(o) {
|
|
341
|
+
M(o);
|
|
342
342
|
let s = "";
|
|
343
|
-
return
|
|
343
|
+
return o.currentChar() === "-" ? (o.next(), s += `-${te(o)}`) : s += te(o), o.currentChar() === Be && O(ne.UNTERMINATED_CLOSING_BRACE, l(), 0), s;
|
|
344
344
|
}
|
|
345
|
-
function
|
|
346
|
-
return
|
|
345
|
+
function he(o) {
|
|
346
|
+
return o !== cn && o !== Ie;
|
|
347
347
|
}
|
|
348
|
-
function ae(
|
|
349
|
-
M(
|
|
348
|
+
function ae(o) {
|
|
349
|
+
M(o), R(o, "'");
|
|
350
350
|
let s = "", c = "";
|
|
351
|
-
for (; s = _(
|
|
352
|
-
s === "\\" ? c +=
|
|
353
|
-
const
|
|
354
|
-
return
|
|
351
|
+
for (; s = _(o, he); )
|
|
352
|
+
s === "\\" ? c += oe(o) : c += s;
|
|
353
|
+
const b = o.currentChar();
|
|
354
|
+
return b === Ie || b === Be ? (O(ne.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, l(), 0), b === Ie && (o.next(), R(o, "'")), c) : (R(o, "'"), c);
|
|
355
355
|
}
|
|
356
|
-
function
|
|
357
|
-
const s =
|
|
356
|
+
function oe(o) {
|
|
357
|
+
const s = o.currentChar();
|
|
358
358
|
switch (s) {
|
|
359
359
|
case "\\":
|
|
360
360
|
case "'":
|
|
361
|
-
return
|
|
361
|
+
return o.next(), `\\${s}`;
|
|
362
362
|
case "u":
|
|
363
|
-
return Re(
|
|
363
|
+
return Re(o, s, 4);
|
|
364
364
|
case "U":
|
|
365
|
-
return Re(
|
|
365
|
+
return Re(o, s, 6);
|
|
366
366
|
default:
|
|
367
|
-
return O(ne.UNKNOWN_ESCAPE_SEQUENCE,
|
|
367
|
+
return O(ne.UNKNOWN_ESCAPE_SEQUENCE, l(), 0, s), "";
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
function Re(
|
|
371
|
-
R(
|
|
372
|
-
let
|
|
370
|
+
function Re(o, s, c) {
|
|
371
|
+
R(o, s);
|
|
372
|
+
let b = "";
|
|
373
373
|
for (let D = 0; D < c; D++) {
|
|
374
|
-
const
|
|
375
|
-
if (!
|
|
376
|
-
O(ne.INVALID_UNICODE_ESCAPE_SEQUENCE,
|
|
374
|
+
const V = X(o);
|
|
375
|
+
if (!V) {
|
|
376
|
+
O(ne.INVALID_UNICODE_ESCAPE_SEQUENCE, l(), 0, `\\${s}${b}${o.currentChar()}`);
|
|
377
377
|
break;
|
|
378
378
|
}
|
|
379
|
-
|
|
379
|
+
b += V;
|
|
380
380
|
}
|
|
381
|
-
return `\\${s}${
|
|
381
|
+
return `\\${s}${b}`;
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
return
|
|
383
|
+
function B(o) {
|
|
384
|
+
return o !== "{" && o !== "}" && o !== Ue && o !== Ie;
|
|
385
385
|
}
|
|
386
|
-
function fe(
|
|
387
|
-
M(
|
|
386
|
+
function fe(o) {
|
|
387
|
+
M(o);
|
|
388
388
|
let s = "", c = "";
|
|
389
|
-
for (; s = _(
|
|
389
|
+
for (; s = _(o, B); )
|
|
390
390
|
c += s;
|
|
391
391
|
return c;
|
|
392
392
|
}
|
|
393
|
-
function Je(
|
|
393
|
+
function Je(o) {
|
|
394
394
|
let s = "", c = "";
|
|
395
|
-
for (; s = j(
|
|
395
|
+
for (; s = j(o); )
|
|
396
396
|
c += s;
|
|
397
397
|
return c;
|
|
398
398
|
}
|
|
399
|
-
function Qe(
|
|
399
|
+
function Qe(o) {
|
|
400
400
|
const s = (c) => {
|
|
401
|
-
const
|
|
402
|
-
return
|
|
401
|
+
const b = o.currentChar();
|
|
402
|
+
return b === "{" || b === "@" || b === "|" || b === "(" || b === ")" || !b || b === Ue ? c : (c += b, o.next(), s(c));
|
|
403
403
|
};
|
|
404
404
|
return s("");
|
|
405
405
|
}
|
|
406
|
-
function We(
|
|
407
|
-
M(
|
|
406
|
+
function We(o) {
|
|
407
|
+
M(o);
|
|
408
408
|
const s = R(
|
|
409
|
-
|
|
409
|
+
o,
|
|
410
410
|
"|"
|
|
411
411
|
/* TokenChars.Pipe */
|
|
412
412
|
);
|
|
413
|
-
return M(
|
|
413
|
+
return M(o), s;
|
|
414
414
|
}
|
|
415
|
-
function Fe(
|
|
415
|
+
function Fe(o, s) {
|
|
416
416
|
let c = null;
|
|
417
|
-
switch (
|
|
417
|
+
switch (o.currentChar()) {
|
|
418
418
|
case "{":
|
|
419
|
-
return s.braceNest >= 1 && O(ne.NOT_ALLOW_NEST_PLACEHOLDER,
|
|
419
|
+
return s.braceNest >= 1 && O(ne.NOT_ALLOW_NEST_PLACEHOLDER, l(), 0), o.next(), c = N(
|
|
420
420
|
s,
|
|
421
421
|
2,
|
|
422
422
|
"{"
|
|
423
423
|
/* TokenChars.BraceLeft */
|
|
424
|
-
), M(
|
|
424
|
+
), M(o), s.braceNest++, c;
|
|
425
425
|
case "}":
|
|
426
|
-
return s.braceNest > 0 && s.currentType === 2 && O(ne.EMPTY_PLACEHOLDER,
|
|
426
|
+
return s.braceNest > 0 && s.currentType === 2 && O(ne.EMPTY_PLACEHOLDER, l(), 0), o.next(), c = N(
|
|
427
427
|
s,
|
|
428
428
|
3,
|
|
429
429
|
"}"
|
|
430
430
|
/* TokenChars.BraceRight */
|
|
431
|
-
), s.braceNest--, s.braceNest > 0 && M(
|
|
431
|
+
), s.braceNest--, s.braceNest > 0 && M(o), s.inLinked && s.braceNest === 0 && (s.inLinked = !1), c;
|
|
432
432
|
case "@":
|
|
433
|
-
return s.braceNest > 0 && O(ne.UNTERMINATED_CLOSING_BRACE,
|
|
433
|
+
return s.braceNest > 0 && O(ne.UNTERMINATED_CLOSING_BRACE, l(), 0), c = Pe(o, s) || w(s), s.braceNest = 0, c;
|
|
434
434
|
default: {
|
|
435
|
-
let D = !0,
|
|
436
|
-
if (H(
|
|
437
|
-
return s.braceNest > 0 && O(ne.UNTERMINATED_CLOSING_BRACE,
|
|
435
|
+
let D = !0, V = !0, u = !0;
|
|
436
|
+
if (H(o))
|
|
437
|
+
return s.braceNest > 0 && O(ne.UNTERMINATED_CLOSING_BRACE, l(), 0), c = N(s, 1, We(o)), s.braceNest = 0, s.inLinked = !1, c;
|
|
438
438
|
if (s.braceNest > 0 && (s.currentType === 4 || s.currentType === 5 || s.currentType === 6))
|
|
439
|
-
return O(ne.UNTERMINATED_CLOSING_BRACE,
|
|
440
|
-
if (D = S(
|
|
441
|
-
return c = N(s, 4, de(
|
|
442
|
-
if (
|
|
443
|
-
return c = N(s, 5,
|
|
444
|
-
if (u = y(
|
|
445
|
-
return c = N(s, 6, ae(
|
|
446
|
-
if (!D && !
|
|
447
|
-
return c = N(s, 12, fe(
|
|
439
|
+
return O(ne.UNTERMINATED_CLOSING_BRACE, l(), 0), s.braceNest = 0, Ge(o, s);
|
|
440
|
+
if (D = S(o, s))
|
|
441
|
+
return c = N(s, 4, de(o)), M(o), c;
|
|
442
|
+
if (V = m(o, s))
|
|
443
|
+
return c = N(s, 5, pe(o)), M(o), c;
|
|
444
|
+
if (u = y(o, s))
|
|
445
|
+
return c = N(s, 6, ae(o)), M(o), c;
|
|
446
|
+
if (!D && !V && !u)
|
|
447
|
+
return c = N(s, 12, fe(o)), O(ne.INVALID_TOKEN_IN_PLACEHOLDER, l(), 0, c.value), M(o), c;
|
|
448
448
|
break;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
return c;
|
|
452
452
|
}
|
|
453
|
-
function Pe(
|
|
453
|
+
function Pe(o, s) {
|
|
454
454
|
const { currentType: c } = s;
|
|
455
|
-
let
|
|
456
|
-
const D =
|
|
457
|
-
switch ((c === 7 || c === 8 || c === 11 || c === 9) && (D === Ie || D ===
|
|
455
|
+
let b = null;
|
|
456
|
+
const D = o.currentChar();
|
|
457
|
+
switch ((c === 7 || c === 8 || c === 11 || c === 9) && (D === Ie || D === Ue) && O(ne.INVALID_LINKED_FORMAT, l(), 0), D) {
|
|
458
458
|
case "@":
|
|
459
|
-
return
|
|
459
|
+
return o.next(), b = N(
|
|
460
460
|
s,
|
|
461
461
|
7,
|
|
462
462
|
"@"
|
|
463
463
|
/* TokenChars.LinkedAlias */
|
|
464
|
-
), s.inLinked = !0,
|
|
464
|
+
), s.inLinked = !0, b;
|
|
465
465
|
case ".":
|
|
466
|
-
return M(
|
|
466
|
+
return M(o), o.next(), N(
|
|
467
467
|
s,
|
|
468
468
|
8,
|
|
469
469
|
"."
|
|
470
470
|
/* TokenChars.LinkedDot */
|
|
471
471
|
);
|
|
472
472
|
case ":":
|
|
473
|
-
return M(
|
|
473
|
+
return M(o), o.next(), N(
|
|
474
474
|
s,
|
|
475
475
|
9,
|
|
476
476
|
":"
|
|
477
477
|
/* TokenChars.LinkedDelimiter */
|
|
478
478
|
);
|
|
479
479
|
default:
|
|
480
|
-
return H(
|
|
480
|
+
return H(o) ? (b = N(s, 1, We(o)), s.braceNest = 0, s.inLinked = !1, b) : E(o, s) || A(o, s) ? (M(o), Pe(o, s)) : p(o, s) ? (M(o), N(s, 11, Je(o))) : L(o, s) ? (M(o), D === "{" ? Fe(o, s) || b : N(s, 10, Qe(o))) : (c === 7 && O(ne.INVALID_LINKED_FORMAT, l(), 0), s.braceNest = 0, s.inLinked = !1, Ge(o, s));
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
function Ge(
|
|
483
|
+
function Ge(o, s) {
|
|
484
484
|
let c = {
|
|
485
485
|
type: 13
|
|
486
486
|
/* TokenTypes.EOF */
|
|
487
487
|
};
|
|
488
488
|
if (s.braceNest > 0)
|
|
489
|
-
return Fe(
|
|
489
|
+
return Fe(o, s) || w(s);
|
|
490
490
|
if (s.inLinked)
|
|
491
|
-
return Pe(
|
|
492
|
-
switch (
|
|
491
|
+
return Pe(o, s) || w(s);
|
|
492
|
+
switch (o.currentChar()) {
|
|
493
493
|
case "{":
|
|
494
|
-
return Fe(
|
|
494
|
+
return Fe(o, s) || w(s);
|
|
495
495
|
case "}":
|
|
496
|
-
return O(ne.UNBALANCED_CLOSING_BRACE,
|
|
496
|
+
return O(ne.UNBALANCED_CLOSING_BRACE, l(), 0), o.next(), N(
|
|
497
497
|
s,
|
|
498
498
|
3,
|
|
499
499
|
"}"
|
|
500
500
|
/* TokenChars.BraceRight */
|
|
501
501
|
);
|
|
502
502
|
case "@":
|
|
503
|
-
return Pe(
|
|
503
|
+
return Pe(o, s) || w(s);
|
|
504
504
|
default: {
|
|
505
|
-
if (H(
|
|
506
|
-
return c = N(s, 1, We(
|
|
507
|
-
if (x(
|
|
508
|
-
return N(s, 0, Q(
|
|
505
|
+
if (H(o))
|
|
506
|
+
return c = N(s, 1, We(o)), s.braceNest = 0, s.inLinked = !1, c;
|
|
507
|
+
if (x(o))
|
|
508
|
+
return N(s, 0, Q(o));
|
|
509
509
|
break;
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
512
|
return c;
|
|
513
513
|
}
|
|
514
514
|
function je() {
|
|
515
|
-
const { currentType:
|
|
516
|
-
return i.lastType =
|
|
515
|
+
const { currentType: o, offset: s, startLoc: c, endLoc: b } = i;
|
|
516
|
+
return i.lastType = o, i.lastOffset = s, i.lastStartLoc = c, i.lastEndLoc = b, i.offset = a(), i.startLoc = l(), r.currentChar() === Be ? N(
|
|
517
517
|
i,
|
|
518
518
|
13
|
|
519
519
|
/* TokenTypes.EOF */
|
|
@@ -522,7 +522,7 @@ function es(e, t = {}) {
|
|
|
522
522
|
return {
|
|
523
523
|
nextToken: je,
|
|
524
524
|
currentOffset: a,
|
|
525
|
-
currentPosition:
|
|
525
|
+
currentPosition: l,
|
|
526
526
|
context: g
|
|
527
527
|
};
|
|
528
528
|
}
|
|
@@ -541,132 +541,132 @@ function rs(e, t, n) {
|
|
|
541
541
|
}
|
|
542
542
|
function ss(e = {}) {
|
|
543
543
|
const t = e.location !== !1, { onError: n } = e;
|
|
544
|
-
function r(
|
|
545
|
-
const E =
|
|
544
|
+
function r(v, h, S, m, ...y) {
|
|
545
|
+
const E = v.currentPosition();
|
|
546
546
|
if (E.offset += m, E.column += m, n) {
|
|
547
|
-
const
|
|
547
|
+
const p = t ? Ft(S, E) : null, A = Tt(h, p, {
|
|
548
548
|
domain: ts,
|
|
549
549
|
args: y
|
|
550
550
|
});
|
|
551
551
|
n(A);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
function a(
|
|
555
|
-
const m = { type:
|
|
556
|
-
return t && (m.start =
|
|
554
|
+
function a(v, h, S) {
|
|
555
|
+
const m = { type: v };
|
|
556
|
+
return t && (m.start = h, m.end = h, m.loc = { start: S, end: S }), m;
|
|
557
557
|
}
|
|
558
|
-
function
|
|
559
|
-
t && (
|
|
558
|
+
function l(v, h, S, m) {
|
|
559
|
+
t && (v.end = h, v.loc && (v.loc.end = S));
|
|
560
560
|
}
|
|
561
|
-
function f(
|
|
562
|
-
const S =
|
|
563
|
-
return m.value =
|
|
561
|
+
function f(v, h) {
|
|
562
|
+
const S = v.context(), m = a(3, S.offset, S.startLoc);
|
|
563
|
+
return m.value = h, l(m, v.currentOffset(), v.currentPosition()), m;
|
|
564
564
|
}
|
|
565
|
-
function d(
|
|
566
|
-
const S =
|
|
567
|
-
return E.index = parseInt(
|
|
565
|
+
function d(v, h) {
|
|
566
|
+
const S = v.context(), { lastOffset: m, lastStartLoc: y } = S, E = a(5, m, y);
|
|
567
|
+
return E.index = parseInt(h, 10), v.nextToken(), l(E, v.currentOffset(), v.currentPosition()), E;
|
|
568
568
|
}
|
|
569
|
-
function i(
|
|
570
|
-
const S =
|
|
571
|
-
return E.key =
|
|
569
|
+
function i(v, h) {
|
|
570
|
+
const S = v.context(), { lastOffset: m, lastStartLoc: y } = S, E = a(4, m, y);
|
|
571
|
+
return E.key = h, v.nextToken(), l(E, v.currentOffset(), v.currentPosition()), E;
|
|
572
572
|
}
|
|
573
|
-
function g(
|
|
574
|
-
const S =
|
|
575
|
-
return E.value =
|
|
573
|
+
function g(v, h) {
|
|
574
|
+
const S = v.context(), { lastOffset: m, lastStartLoc: y } = S, E = a(9, m, y);
|
|
575
|
+
return E.value = h.replace(ns, rs), v.nextToken(), l(E, v.currentOffset(), v.currentPosition()), E;
|
|
576
576
|
}
|
|
577
|
-
function C(
|
|
578
|
-
const
|
|
579
|
-
return
|
|
580
|
-
nextConsumeToken:
|
|
577
|
+
function C(v) {
|
|
578
|
+
const h = v.nextToken(), S = v.context(), { lastOffset: m, lastStartLoc: y } = S, E = a(8, m, y);
|
|
579
|
+
return h.type !== 11 ? (r(v, ne.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), E.value = "", l(E, m, y), {
|
|
580
|
+
nextConsumeToken: h,
|
|
581
581
|
node: E
|
|
582
|
-
}) : (
|
|
582
|
+
}) : (h.value == null && r(v, ne.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, Me(h)), E.value = h.value || "", l(E, v.currentOffset(), v.currentPosition()), {
|
|
583
583
|
node: E
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
|
-
function O(
|
|
587
|
-
const S =
|
|
588
|
-
return m.value =
|
|
586
|
+
function O(v, h) {
|
|
587
|
+
const S = v.context(), m = a(7, S.offset, S.startLoc);
|
|
588
|
+
return m.value = h, l(m, v.currentOffset(), v.currentPosition()), m;
|
|
589
589
|
}
|
|
590
|
-
function N(
|
|
591
|
-
const
|
|
592
|
-
let m =
|
|
590
|
+
function N(v) {
|
|
591
|
+
const h = v.context(), S = a(6, h.offset, h.startLoc);
|
|
592
|
+
let m = v.nextToken();
|
|
593
593
|
if (m.type === 8) {
|
|
594
|
-
const y = C(
|
|
595
|
-
S.modifier = y.node, m = y.nextConsumeToken ||
|
|
594
|
+
const y = C(v);
|
|
595
|
+
S.modifier = y.node, m = y.nextConsumeToken || v.nextToken();
|
|
596
596
|
}
|
|
597
|
-
switch (m.type !== 9 && r(
|
|
597
|
+
switch (m.type !== 9 && r(v, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Me(m)), m = v.nextToken(), m.type === 2 && (m = v.nextToken()), m.type) {
|
|
598
598
|
case 10:
|
|
599
|
-
m.value == null && r(
|
|
599
|
+
m.value == null && r(v, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Me(m)), S.key = O(v, m.value || "");
|
|
600
600
|
break;
|
|
601
601
|
case 4:
|
|
602
|
-
m.value == null && r(
|
|
602
|
+
m.value == null && r(v, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Me(m)), S.key = i(v, m.value || "");
|
|
603
603
|
break;
|
|
604
604
|
case 5:
|
|
605
|
-
m.value == null && r(
|
|
605
|
+
m.value == null && r(v, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Me(m)), S.key = d(v, m.value || "");
|
|
606
606
|
break;
|
|
607
607
|
case 6:
|
|
608
|
-
m.value == null && r(
|
|
608
|
+
m.value == null && r(v, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Me(m)), S.key = g(v, m.value || "");
|
|
609
609
|
break;
|
|
610
610
|
default: {
|
|
611
|
-
r(
|
|
612
|
-
const y =
|
|
613
|
-
return E.value = "",
|
|
611
|
+
r(v, ne.UNEXPECTED_EMPTY_LINKED_KEY, h.lastStartLoc, 0);
|
|
612
|
+
const y = v.context(), E = a(7, y.offset, y.startLoc);
|
|
613
|
+
return E.value = "", l(E, y.offset, y.startLoc), S.key = E, l(S, y.offset, y.startLoc), {
|
|
614
614
|
nextConsumeToken: m,
|
|
615
615
|
node: S
|
|
616
616
|
};
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
return
|
|
619
|
+
return l(S, v.currentOffset(), v.currentPosition()), {
|
|
620
620
|
node: S
|
|
621
621
|
};
|
|
622
622
|
}
|
|
623
|
-
function w(
|
|
624
|
-
const
|
|
623
|
+
function w(v) {
|
|
624
|
+
const h = v.context(), S = h.currentType === 1 ? v.currentOffset() : h.offset, m = h.currentType === 1 ? h.endLoc : h.startLoc, y = a(2, S, m);
|
|
625
625
|
y.items = [];
|
|
626
626
|
let E = null;
|
|
627
627
|
do {
|
|
628
|
-
const L = E ||
|
|
628
|
+
const L = E || v.nextToken();
|
|
629
629
|
switch (E = null, L.type) {
|
|
630
630
|
case 0:
|
|
631
|
-
L.value == null && r(
|
|
631
|
+
L.value == null && r(v, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Me(L)), y.items.push(f(v, L.value || ""));
|
|
632
632
|
break;
|
|
633
633
|
case 5:
|
|
634
|
-
L.value == null && r(
|
|
634
|
+
L.value == null && r(v, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Me(L)), y.items.push(d(v, L.value || ""));
|
|
635
635
|
break;
|
|
636
636
|
case 4:
|
|
637
|
-
L.value == null && r(
|
|
637
|
+
L.value == null && r(v, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Me(L)), y.items.push(i(v, L.value || ""));
|
|
638
638
|
break;
|
|
639
639
|
case 6:
|
|
640
|
-
L.value == null && r(
|
|
640
|
+
L.value == null && r(v, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Me(L)), y.items.push(g(v, L.value || ""));
|
|
641
641
|
break;
|
|
642
642
|
case 7: {
|
|
643
|
-
const H = N(
|
|
643
|
+
const H = N(v);
|
|
644
644
|
y.items.push(H.node), E = H.nextConsumeToken || null;
|
|
645
645
|
break;
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
|
-
} while (
|
|
649
|
-
const
|
|
650
|
-
return
|
|
648
|
+
} while (h.currentType !== 13 && h.currentType !== 1);
|
|
649
|
+
const p = h.currentType === 1 ? h.lastOffset : v.currentOffset(), A = h.currentType === 1 ? h.lastEndLoc : v.currentPosition();
|
|
650
|
+
return l(y, p, A), y;
|
|
651
651
|
}
|
|
652
|
-
function R(
|
|
653
|
-
const y =
|
|
652
|
+
function R(v, h, S, m) {
|
|
653
|
+
const y = v.context();
|
|
654
654
|
let E = m.items.length === 0;
|
|
655
|
-
const
|
|
656
|
-
|
|
655
|
+
const p = a(1, h, S);
|
|
656
|
+
p.cases = [], p.cases.push(m);
|
|
657
657
|
do {
|
|
658
|
-
const A = w(
|
|
659
|
-
E || (E = A.items.length === 0),
|
|
658
|
+
const A = w(v);
|
|
659
|
+
E || (E = A.items.length === 0), p.cases.push(A);
|
|
660
660
|
} while (y.currentType !== 13);
|
|
661
|
-
return E && r(
|
|
661
|
+
return E && r(v, ne.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), l(p, v.currentOffset(), v.currentPosition()), p;
|
|
662
662
|
}
|
|
663
|
-
function k(
|
|
664
|
-
const
|
|
665
|
-
return
|
|
663
|
+
function k(v) {
|
|
664
|
+
const h = v.context(), { offset: S, startLoc: m } = h, y = w(v);
|
|
665
|
+
return h.currentType === 13 ? y : R(v, S, m, y);
|
|
666
666
|
}
|
|
667
|
-
function M(
|
|
668
|
-
const
|
|
669
|
-
return t && m.loc && (m.loc.source =
|
|
667
|
+
function M(v) {
|
|
668
|
+
const h = es(v, ge({}, e)), S = h.context(), m = a(0, S.offset, S.startLoc);
|
|
669
|
+
return t && m.loc && (m.loc.source = v), m.body = k(h), e.onCacheKey && (m.cacheKey = e.onCacheKey(v)), S.currentType !== 13 && r(h, ne.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, v[S.offset] || ""), l(m, h.currentOffset(), h.currentPosition()), m;
|
|
670
670
|
}
|
|
671
671
|
return { parse: M };
|
|
672
672
|
}
|
|
@@ -681,7 +681,7 @@ function as(e, t = {}) {
|
|
|
681
681
|
ast: e,
|
|
682
682
|
helpers: /* @__PURE__ */ new Set()
|
|
683
683
|
};
|
|
684
|
-
return { context: () => n, helper: (
|
|
684
|
+
return { context: () => n, helper: (l) => (n.helpers.add(l), l) };
|
|
685
685
|
}
|
|
686
686
|
function un(e, t) {
|
|
687
687
|
for (let n = 0; n < e.length; n++)
|
|
@@ -728,7 +728,7 @@ function $t(e, t) {
|
|
|
728
728
|
break;
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function ls(e, t = {}) {
|
|
732
732
|
const n = as(e);
|
|
733
733
|
n.helper(
|
|
734
734
|
"normalize"
|
|
@@ -737,7 +737,7 @@ function os(e, t = {}) {
|
|
|
737
737
|
const r = n.context();
|
|
738
738
|
e.helpers = Array.from(r.helpers);
|
|
739
739
|
}
|
|
740
|
-
function
|
|
740
|
+
function os(e) {
|
|
741
741
|
const t = e.body;
|
|
742
742
|
return t.type === 2 ? mn(t) : t.cases.forEach((n) => mn(n)), e;
|
|
743
743
|
}
|
|
@@ -810,7 +810,7 @@ function et(e) {
|
|
|
810
810
|
delete e.type;
|
|
811
811
|
}
|
|
812
812
|
function is(e, t) {
|
|
813
|
-
const { filename: n, breakLineCode: r, needIndent: a } = t,
|
|
813
|
+
const { filename: n, breakLineCode: r, needIndent: a } = t, l = t.location !== !1, f = {
|
|
814
814
|
filename: n,
|
|
815
815
|
code: "",
|
|
816
816
|
column: 1,
|
|
@@ -821,14 +821,14 @@ function is(e, t) {
|
|
|
821
821
|
needIndent: a,
|
|
822
822
|
indentLevel: 0
|
|
823
823
|
};
|
|
824
|
-
|
|
824
|
+
l && e.loc && (f.source = e.loc.source);
|
|
825
825
|
const d = () => f;
|
|
826
826
|
function i(k, M) {
|
|
827
827
|
f.code += k;
|
|
828
828
|
}
|
|
829
829
|
function g(k, M = !0) {
|
|
830
|
-
const
|
|
831
|
-
i(a ?
|
|
830
|
+
const v = M ? r : "";
|
|
831
|
+
i(a ? v + " ".repeat(k) : v);
|
|
832
832
|
}
|
|
833
833
|
function C(k = !0) {
|
|
834
834
|
const M = ++f.indentLevel;
|
|
@@ -865,7 +865,7 @@ function us(e, t) {
|
|
|
865
865
|
/* HelperNameMap.NORMALIZE */
|
|
866
866
|
)}([`), e.indent(r());
|
|
867
867
|
const a = t.items.length;
|
|
868
|
-
for (let
|
|
868
|
+
for (let l = 0; l < a && (at(e, t.items[l]), l !== a - 1); l++)
|
|
869
869
|
e.push(", ");
|
|
870
870
|
e.deindent(r()), e.push("])");
|
|
871
871
|
}
|
|
@@ -877,7 +877,7 @@ function ms(e, t) {
|
|
|
877
877
|
/* HelperNameMap.PLURAL */
|
|
878
878
|
)}([`), e.indent(r());
|
|
879
879
|
const a = t.cases.length;
|
|
880
|
-
for (let
|
|
880
|
+
for (let l = 0; l < a && (at(e, t.cases[l]), l !== a - 1); l++)
|
|
881
881
|
e.push(", ");
|
|
882
882
|
e.deindent(r()), e.push("])");
|
|
883
883
|
}
|
|
@@ -936,12 +936,12 @@ const fs = (e, t = {}) => {
|
|
|
936
936
|
const n = G(t.mode) ? t.mode : "normal", r = G(t.filename) ? t.filename : "message.intl";
|
|
937
937
|
t.sourceMap;
|
|
938
938
|
const a = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
939
|
-
`,
|
|
939
|
+
`, l = t.needIndent ? t.needIndent : n !== "arrow", f = e.helpers || [], d = is(e, {
|
|
940
940
|
filename: r,
|
|
941
941
|
breakLineCode: a,
|
|
942
|
-
needIndent:
|
|
942
|
+
needIndent: l
|
|
943
943
|
});
|
|
944
|
-
d.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), d.indent(
|
|
944
|
+
d.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), d.indent(l), f.length > 0 && (d.push(`const { ${Jt(f.map((C) => `${C}: _${C}`), ", ")} } = ctx`), d.newline()), d.push("return "), at(d, e), d.deindent(l), d.push("}"), delete e.helpers;
|
|
945
945
|
const { code: i, map: g } = d.context();
|
|
946
946
|
return {
|
|
947
947
|
ast: e,
|
|
@@ -951,17 +951,17 @@ const fs = (e, t = {}) => {
|
|
|
951
951
|
};
|
|
952
952
|
};
|
|
953
953
|
function _s(e, t = {}) {
|
|
954
|
-
const n = ge({}, t), r = !!n.jit, a = !!n.minify,
|
|
955
|
-
return r ? (
|
|
954
|
+
const n = ge({}, t), r = !!n.jit, a = !!n.minify, l = n.optimize == null ? !0 : n.optimize, d = ss(n).parse(e);
|
|
955
|
+
return r ? (l && os(d), a && et(d), { ast: d, code: "" }) : (ls(d, n), fs(d, n));
|
|
956
956
|
}
|
|
957
|
-
var
|
|
958
|
-
function
|
|
957
|
+
var vs = { env: { NODE_ENV: "production" } };
|
|
958
|
+
function ps() {
|
|
959
959
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && ($e().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && ($e().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
960
960
|
}
|
|
961
961
|
function kt(e) {
|
|
962
|
-
return (n) =>
|
|
962
|
+
return (n) => hs(n, e);
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function hs(e, t) {
|
|
965
965
|
const n = gs(t);
|
|
966
966
|
if (n == null)
|
|
967
967
|
throw ct(
|
|
@@ -969,38 +969,38 @@ function ps(e, t) {
|
|
|
969
969
|
/* NodeTypes.Resource */
|
|
970
970
|
);
|
|
971
971
|
if (Kt(n) === 1) {
|
|
972
|
-
const
|
|
973
|
-
return e.plural(
|
|
972
|
+
const l = Is(n);
|
|
973
|
+
return e.plural(l.reduce((f, d) => [
|
|
974
974
|
...f,
|
|
975
975
|
dn(e, d)
|
|
976
976
|
], []));
|
|
977
977
|
} else
|
|
978
978
|
return dn(e, n);
|
|
979
979
|
}
|
|
980
|
-
const
|
|
980
|
+
const bs = ["b", "body"];
|
|
981
981
|
function gs(e) {
|
|
982
|
-
return
|
|
982
|
+
return Ye(e, bs);
|
|
983
983
|
}
|
|
984
984
|
const ys = ["c", "cases"];
|
|
985
985
|
function Is(e) {
|
|
986
|
-
return
|
|
986
|
+
return Ye(e, ys, []);
|
|
987
987
|
}
|
|
988
988
|
function dn(e, t) {
|
|
989
989
|
const n = Cs(t);
|
|
990
990
|
if (n != null)
|
|
991
991
|
return e.type === "text" ? n : e.normalize([n]);
|
|
992
992
|
{
|
|
993
|
-
const r = Ts(t).reduce((a,
|
|
993
|
+
const r = Ts(t).reduce((a, l) => [...a, Pt(e, l)], []);
|
|
994
994
|
return e.normalize(r);
|
|
995
995
|
}
|
|
996
996
|
}
|
|
997
997
|
const Es = ["s", "static"];
|
|
998
998
|
function Cs(e) {
|
|
999
|
-
return
|
|
999
|
+
return Ye(e, Es);
|
|
1000
1000
|
}
|
|
1001
1001
|
const Ns = ["i", "items"];
|
|
1002
1002
|
function Ts(e) {
|
|
1003
|
-
return
|
|
1003
|
+
return Ye(e, Ns, []);
|
|
1004
1004
|
}
|
|
1005
1005
|
function Pt(e, t) {
|
|
1006
1006
|
const n = Kt(t);
|
|
@@ -1019,15 +1019,15 @@ function Pt(e, t) {
|
|
|
1019
1019
|
}
|
|
1020
1020
|
case 5: {
|
|
1021
1021
|
const r = t;
|
|
1022
|
-
if (ke(r, "i") &&
|
|
1022
|
+
if (ke(r, "i") && be(r.i))
|
|
1023
1023
|
return e.interpolate(e.list(r.i));
|
|
1024
|
-
if (ke(r, "index") &&
|
|
1024
|
+
if (ke(r, "index") && be(r.index))
|
|
1025
1025
|
return e.interpolate(e.list(r.index));
|
|
1026
1026
|
throw ct(n);
|
|
1027
1027
|
}
|
|
1028
1028
|
case 6: {
|
|
1029
|
-
const r = t, a = ks(r),
|
|
1030
|
-
return e.linked(Pt(e,
|
|
1029
|
+
const r = t, a = ks(r), l = Rs(r);
|
|
1030
|
+
return e.linked(Pt(e, l), a ? Pt(e, a) : void 0, e.type);
|
|
1031
1031
|
}
|
|
1032
1032
|
case 7:
|
|
1033
1033
|
return _t(t, n);
|
|
@@ -1039,22 +1039,22 @@ function Pt(e, t) {
|
|
|
1039
1039
|
}
|
|
1040
1040
|
const Os = ["t", "type"];
|
|
1041
1041
|
function Kt(e) {
|
|
1042
|
-
return
|
|
1042
|
+
return Ye(e, Os);
|
|
1043
1043
|
}
|
|
1044
1044
|
const Ss = ["v", "value"];
|
|
1045
1045
|
function _t(e, t) {
|
|
1046
|
-
const n =
|
|
1046
|
+
const n = Ye(e, Ss);
|
|
1047
1047
|
if (n)
|
|
1048
1048
|
return n;
|
|
1049
1049
|
throw ct(t);
|
|
1050
1050
|
}
|
|
1051
1051
|
const Ls = ["m", "modifier"];
|
|
1052
1052
|
function ks(e) {
|
|
1053
|
-
return
|
|
1053
|
+
return Ye(e, Ls);
|
|
1054
1054
|
}
|
|
1055
1055
|
const As = ["k", "key"];
|
|
1056
1056
|
function Rs(e) {
|
|
1057
|
-
const t =
|
|
1057
|
+
const t = Ye(e, As);
|
|
1058
1058
|
if (t)
|
|
1059
1059
|
return t;
|
|
1060
1060
|
throw ct(
|
|
@@ -1062,7 +1062,7 @@ function Rs(e) {
|
|
|
1062
1062
|
/* NodeTypes.Linked */
|
|
1063
1063
|
);
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1065
|
+
function Ye(e, t, n) {
|
|
1066
1066
|
for (let r = 0; r < t.length; r++) {
|
|
1067
1067
|
const a = t[r];
|
|
1068
1068
|
if (ke(e, a) && e[a] != null)
|
|
@@ -1074,8 +1074,8 @@ function ct(e) {
|
|
|
1074
1074
|
return new Error(`unhandled node type: ${e}`);
|
|
1075
1075
|
}
|
|
1076
1076
|
const Ms = (e) => e;
|
|
1077
|
-
let
|
|
1078
|
-
function
|
|
1077
|
+
let vt = se();
|
|
1078
|
+
function lt(e) {
|
|
1079
1079
|
return ee(e) && Kt(e) === 0 && (ke(e, "b") || ke(e, "body"));
|
|
1080
1080
|
}
|
|
1081
1081
|
function ws(e, t = {}) {
|
|
@@ -1089,20 +1089,20 @@ function ws(e, t = {}) {
|
|
|
1089
1089
|
function Ds(e, t) {
|
|
1090
1090
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && G(e)) {
|
|
1091
1091
|
_e(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1092
|
-
const r = (t.onCacheKey || Ms)(e), a =
|
|
1092
|
+
const r = (t.onCacheKey || Ms)(e), a = vt[r];
|
|
1093
1093
|
if (a)
|
|
1094
1094
|
return a;
|
|
1095
|
-
const { ast:
|
|
1095
|
+
const { ast: l, detectError: f } = ws(e, {
|
|
1096
1096
|
...t,
|
|
1097
|
-
location:
|
|
1097
|
+
location: vs.env.NODE_ENV !== "production",
|
|
1098
1098
|
jit: !0
|
|
1099
|
-
}), d = kt(
|
|
1100
|
-
return f ? d :
|
|
1099
|
+
}), d = kt(l);
|
|
1100
|
+
return f ? d : vt[r] = d;
|
|
1101
1101
|
} else {
|
|
1102
1102
|
const n = e.cacheKey;
|
|
1103
1103
|
if (n) {
|
|
1104
|
-
const r =
|
|
1105
|
-
return r || (
|
|
1104
|
+
const r = vt[n];
|
|
1105
|
+
return r || (vt[n] = kt(e));
|
|
1106
1106
|
} else
|
|
1107
1107
|
return kt(e);
|
|
1108
1108
|
}
|
|
@@ -1119,19 +1119,19 @@ function Ps(e, t, n) {
|
|
|
1119
1119
|
meta: n
|
|
1120
1120
|
});
|
|
1121
1121
|
}
|
|
1122
|
-
const js = /* @__PURE__ */
|
|
1123
|
-
function
|
|
1122
|
+
const js = /* @__PURE__ */ Us("function:translate");
|
|
1123
|
+
function Us(e) {
|
|
1124
1124
|
return (t) => ut && ut.emit(e, t);
|
|
1125
1125
|
}
|
|
1126
|
-
const
|
|
1127
|
-
INVALID_ARGUMENT:
|
|
1126
|
+
const Ve = {
|
|
1127
|
+
INVALID_ARGUMENT: Yr,
|
|
1128
1128
|
// 17
|
|
1129
1129
|
INVALID_DATE_ARGUMENT: 18,
|
|
1130
1130
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
1131
1131
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1132
1132
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1133
1133
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1134
|
-
},
|
|
1134
|
+
}, Vs = 24;
|
|
1135
1135
|
function xe(e) {
|
|
1136
1136
|
return Tt(e, null, void 0);
|
|
1137
1137
|
}
|
|
@@ -1148,38 +1148,38 @@ function fn(e) {
|
|
|
1148
1148
|
if (e.constructor.name === "Function") {
|
|
1149
1149
|
const t = e();
|
|
1150
1150
|
if (Gr(t))
|
|
1151
|
-
throw xe(
|
|
1151
|
+
throw xe(Ve.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1152
1152
|
return At = t;
|
|
1153
1153
|
} else
|
|
1154
|
-
throw xe(
|
|
1154
|
+
throw xe(Ve.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1155
1155
|
} else
|
|
1156
|
-
throw xe(
|
|
1156
|
+
throw xe(Ve.NOT_SUPPORT_LOCALE_TYPE);
|
|
1157
1157
|
}
|
|
1158
1158
|
function xs(e, t, n) {
|
|
1159
1159
|
return [.../* @__PURE__ */ new Set([
|
|
1160
1160
|
n,
|
|
1161
|
-
...
|
|
1161
|
+
...ve(t) ? t : ee(t) ? Object.keys(t) : G(t) ? [t] : [n]
|
|
1162
1162
|
])];
|
|
1163
1163
|
}
|
|
1164
1164
|
function Jn(e, t, n) {
|
|
1165
1165
|
const r = G(n) ? n : Ct, a = e;
|
|
1166
1166
|
a.__localeChainCache || (a.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1167
|
-
let
|
|
1168
|
-
if (!
|
|
1169
|
-
|
|
1167
|
+
let l = a.__localeChainCache.get(r);
|
|
1168
|
+
if (!l) {
|
|
1169
|
+
l = [];
|
|
1170
1170
|
let f = [n];
|
|
1171
|
-
for (;
|
|
1172
|
-
f = _n(
|
|
1173
|
-
const d =
|
|
1174
|
-
f = G(d) ? [d] : d,
|
|
1171
|
+
for (; ve(f); )
|
|
1172
|
+
f = _n(l, f, t);
|
|
1173
|
+
const d = ve(t) || !q(t) ? t : t.default ? t.default : null;
|
|
1174
|
+
f = G(d) ? [d] : d, ve(f) && _n(l, f, !1), a.__localeChainCache.set(r, l);
|
|
1175
1175
|
}
|
|
1176
|
-
return
|
|
1176
|
+
return l;
|
|
1177
1177
|
}
|
|
1178
1178
|
function _n(e, t, n) {
|
|
1179
1179
|
let r = !0;
|
|
1180
1180
|
for (let a = 0; a < t.length && _e(r); a++) {
|
|
1181
|
-
const
|
|
1182
|
-
G(
|
|
1181
|
+
const l = t[a];
|
|
1182
|
+
G(l) && (r = Ws(e, t[a], n));
|
|
1183
1183
|
}
|
|
1184
1184
|
return r;
|
|
1185
1185
|
}
|
|
@@ -1187,8 +1187,8 @@ function Ws(e, t, n) {
|
|
|
1187
1187
|
let r;
|
|
1188
1188
|
const a = t.split("-");
|
|
1189
1189
|
do {
|
|
1190
|
-
const
|
|
1191
|
-
r = Gs(e,
|
|
1190
|
+
const l = a.join("-");
|
|
1191
|
+
r = Gs(e, l, n), a.splice(-1, 1);
|
|
1192
1192
|
} while (a.length && r === !0);
|
|
1193
1193
|
return r;
|
|
1194
1194
|
}
|
|
@@ -1197,7 +1197,7 @@ function Gs(e, t, n) {
|
|
|
1197
1197
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1198
1198
|
r = t[t.length - 1] !== "!";
|
|
1199
1199
|
const a = t.replace(/!/g, "");
|
|
1200
|
-
e.push(a), (
|
|
1200
|
+
e.push(a), (ve(n) || q(n)) && n[a] && (r = n[a]);
|
|
1201
1201
|
}
|
|
1202
1202
|
return r;
|
|
1203
1203
|
}
|
|
@@ -1363,14 +1363,14 @@ He[
|
|
|
1363
1363
|
]
|
|
1364
1364
|
};
|
|
1365
1365
|
const Zs = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1366
|
-
function
|
|
1366
|
+
function Bs(e) {
|
|
1367
1367
|
return Zs.test(e);
|
|
1368
1368
|
}
|
|
1369
|
-
function
|
|
1369
|
+
function Xs(e) {
|
|
1370
1370
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1371
1371
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function Ys(e) {
|
|
1374
1374
|
if (e == null)
|
|
1375
1375
|
return "o";
|
|
1376
1376
|
switch (e.charCodeAt(0)) {
|
|
@@ -1397,11 +1397,11 @@ function Xs(e) {
|
|
|
1397
1397
|
}
|
|
1398
1398
|
function Hs(e) {
|
|
1399
1399
|
const t = e.trim();
|
|
1400
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1400
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Bs(t) ? Xs(t) : "*" + t;
|
|
1401
1401
|
}
|
|
1402
1402
|
function Js(e) {
|
|
1403
1403
|
const t = [];
|
|
1404
|
-
let n = -1, r = 0, a = 0,
|
|
1404
|
+
let n = -1, r = 0, a = 0, l, f, d, i, g, C, O;
|
|
1405
1405
|
const N = [];
|
|
1406
1406
|
N[
|
|
1407
1407
|
0
|
|
@@ -1448,39 +1448,39 @@ function Js(e) {
|
|
|
1448
1448
|
](), !0;
|
|
1449
1449
|
}
|
|
1450
1450
|
for (; r !== null; )
|
|
1451
|
-
if (n++,
|
|
1452
|
-
if (i =
|
|
1451
|
+
if (n++, l = e[n], !(l === "\\" && w())) {
|
|
1452
|
+
if (i = Ys(l), O = He[r], g = O[i] || O.l || 8, g === 8 || (r = g[0], g[1] !== void 0 && (C = N[g[1]], C && (d = l, C() === !1))))
|
|
1453
1453
|
return;
|
|
1454
1454
|
if (r === 7)
|
|
1455
1455
|
return t;
|
|
1456
1456
|
}
|
|
1457
1457
|
}
|
|
1458
|
-
const
|
|
1458
|
+
const vn = /* @__PURE__ */ new Map();
|
|
1459
1459
|
function $s(e, t) {
|
|
1460
1460
|
return ee(e) ? e[t] : null;
|
|
1461
1461
|
}
|
|
1462
1462
|
function Ks(e, t) {
|
|
1463
1463
|
if (!ee(e))
|
|
1464
1464
|
return null;
|
|
1465
|
-
let n =
|
|
1466
|
-
if (n || (n = Js(t), n &&
|
|
1465
|
+
let n = vn.get(t);
|
|
1466
|
+
if (n || (n = Js(t), n && vn.set(t, n)), !n)
|
|
1467
1467
|
return null;
|
|
1468
1468
|
const r = n.length;
|
|
1469
|
-
let a = e,
|
|
1470
|
-
for (;
|
|
1471
|
-
const f = a[n[
|
|
1469
|
+
let a = e, l = 0;
|
|
1470
|
+
for (; l < r; ) {
|
|
1471
|
+
const f = a[n[l]];
|
|
1472
1472
|
if (f === void 0 || ue(a))
|
|
1473
1473
|
return null;
|
|
1474
|
-
a = f,
|
|
1474
|
+
a = f, l++;
|
|
1475
1475
|
}
|
|
1476
1476
|
return a;
|
|
1477
1477
|
}
|
|
1478
|
-
const zs = "10.0.5", Ot = -1, Ct = "en-US",
|
|
1478
|
+
const zs = "10.0.5", Ot = -1, Ct = "en-US", pn = "", hn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1479
1479
|
function Qs() {
|
|
1480
1480
|
return {
|
|
1481
1481
|
upper: (e, t) => t === "text" && G(e) ? e.toUpperCase() : t === "vnode" && ee(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1482
1482
|
lower: (e, t) => t === "text" && G(e) ? e.toLowerCase() : t === "vnode" && ee(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1483
|
-
capitalize: (e, t) => t === "text" && G(e) ?
|
|
1483
|
+
capitalize: (e, t) => t === "text" && G(e) ? hn(e) : t === "vnode" && ee(e) && "__v_isVNode" in e ? hn(e.children) : e
|
|
1484
1484
|
};
|
|
1485
1485
|
}
|
|
1486
1486
|
let $n;
|
|
@@ -1500,18 +1500,18 @@ const na = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
|
1500
1500
|
Qn = e;
|
|
1501
1501
|
}, ra = /* @__NO_SIDE_EFFECTS__ */ () => Qn;
|
|
1502
1502
|
let qn = null;
|
|
1503
|
-
const
|
|
1503
|
+
const bn = (e) => {
|
|
1504
1504
|
qn = e;
|
|
1505
1505
|
}, sa = () => qn;
|
|
1506
1506
|
let gn = 0;
|
|
1507
1507
|
function aa(e = {}) {
|
|
1508
|
-
const t = ue(e.onWarn) ? e.onWarn :
|
|
1508
|
+
const t = ue(e.onWarn) ? e.onWarn : Br, n = G(e.version) ? e.version : zs, r = G(e.locale) || ue(e.locale) ? e.locale : Ct, a = ue(r) ? Ct : r, l = ve(e.fallbackLocale) || q(e.fallbackLocale) || G(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, f = q(e.messages) ? e.messages : Rt(a), d = q(e.datetimeFormats) ? e.datetimeFormats : Rt(a), i = q(e.numberFormats) ? e.numberFormats : Rt(a), g = ge(se(), e.modifiers, Qs()), C = e.pluralRules || se(), O = ue(e.missing) ? e.missing : null, N = _e(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, w = _e(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, R = !!e.fallbackFormat, k = !!e.unresolving, M = ue(e.postTranslation) ? e.postTranslation : null, v = q(e.processor) ? e.processor : null, h = _e(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, m = ue(e.messageCompiler) ? e.messageCompiler : $n, y = ue(e.messageResolver) ? e.messageResolver : Kn || $s, E = ue(e.localeFallbacker) ? e.localeFallbacker : zn || xs, p = ee(e.fallbackContext) ? e.fallbackContext : void 0, A = e, L = ee(A.__datetimeFormatters) ? A.__datetimeFormatters : /* @__PURE__ */ new Map(), H = ee(A.__numberFormatters) ? A.__numberFormatters : /* @__PURE__ */ new Map(), x = ee(A.__meta) ? A.__meta : {};
|
|
1509
1509
|
gn++;
|
|
1510
1510
|
const _ = {
|
|
1511
1511
|
version: n,
|
|
1512
1512
|
cid: gn,
|
|
1513
1513
|
locale: r,
|
|
1514
|
-
fallbackLocale:
|
|
1514
|
+
fallbackLocale: l,
|
|
1515
1515
|
messages: f,
|
|
1516
1516
|
modifiers: g,
|
|
1517
1517
|
pluralRules: C,
|
|
@@ -1521,13 +1521,13 @@ function aa(e = {}) {
|
|
|
1521
1521
|
fallbackFormat: R,
|
|
1522
1522
|
unresolving: k,
|
|
1523
1523
|
postTranslation: M,
|
|
1524
|
-
processor:
|
|
1525
|
-
warnHtmlMessage:
|
|
1524
|
+
processor: v,
|
|
1525
|
+
warnHtmlMessage: h,
|
|
1526
1526
|
escapeParameter: S,
|
|
1527
1527
|
messageCompiler: m,
|
|
1528
1528
|
messageResolver: y,
|
|
1529
1529
|
localeFallbacker: E,
|
|
1530
|
-
fallbackContext:
|
|
1530
|
+
fallbackContext: p,
|
|
1531
1531
|
onWarn: t,
|
|
1532
1532
|
__meta: x
|
|
1533
1533
|
};
|
|
@@ -1535,9 +1535,9 @@ function aa(e = {}) {
|
|
|
1535
1535
|
}
|
|
1536
1536
|
const Rt = (e) => ({ [e]: se() });
|
|
1537
1537
|
function Qt(e, t, n, r, a) {
|
|
1538
|
-
const { missing:
|
|
1539
|
-
if (
|
|
1540
|
-
const d =
|
|
1538
|
+
const { missing: l, onWarn: f } = e;
|
|
1539
|
+
if (l !== null) {
|
|
1540
|
+
const d = l(e, n, t, a);
|
|
1541
1541
|
return G(d) ? d : t;
|
|
1542
1542
|
} else
|
|
1543
1543
|
return t;
|
|
@@ -1546,20 +1546,20 @@ function it(e, t, n) {
|
|
|
1546
1546
|
const r = e;
|
|
1547
1547
|
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1548
1548
|
}
|
|
1549
|
-
function
|
|
1549
|
+
function la(e, t) {
|
|
1550
1550
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1551
1551
|
}
|
|
1552
|
-
function
|
|
1552
|
+
function oa(e, t) {
|
|
1553
1553
|
const n = t.indexOf(e);
|
|
1554
1554
|
if (n === -1)
|
|
1555
1555
|
return !1;
|
|
1556
1556
|
for (let r = n + 1; r < t.length; r++)
|
|
1557
|
-
if (
|
|
1557
|
+
if (la(e, t[r]))
|
|
1558
1558
|
return !0;
|
|
1559
1559
|
return !1;
|
|
1560
1560
|
}
|
|
1561
1561
|
function yn(e, ...t) {
|
|
1562
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn:
|
|
1562
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: l, localeFallbacker: f } = e, { __datetimeFormatters: d } = e, [i, g, C, O] = jt(...t), N = _e(C.missingWarn) ? C.missingWarn : e.missingWarn;
|
|
1563
1563
|
_e(C.fallbackWarn) ? C.fallbackWarn : e.fallbackWarn;
|
|
1564
1564
|
const w = !!C.part, R = zt(e, C), k = f(
|
|
1565
1565
|
e,
|
|
@@ -1569,16 +1569,16 @@ function yn(e, ...t) {
|
|
|
1569
1569
|
);
|
|
1570
1570
|
if (!G(i) || i === "")
|
|
1571
1571
|
return new Intl.DateTimeFormat(R, O).format(g);
|
|
1572
|
-
let M = {},
|
|
1572
|
+
let M = {}, v, h = null;
|
|
1573
1573
|
const S = "datetime format";
|
|
1574
|
-
for (let E = 0; E < k.length && (
|
|
1575
|
-
Qt(e, i,
|
|
1576
|
-
if (!q(
|
|
1574
|
+
for (let E = 0; E < k.length && (v = k[E], M = n[v] || {}, h = M[i], !q(h)); E++)
|
|
1575
|
+
Qt(e, i, v, N, S);
|
|
1576
|
+
if (!q(h) || !G(v))
|
|
1577
1577
|
return r ? Ot : i;
|
|
1578
|
-
let m = `${
|
|
1578
|
+
let m = `${v}__${i}`;
|
|
1579
1579
|
Nt(O) || (m = `${m}__${JSON.stringify(O)}`);
|
|
1580
1580
|
let y = d.get(m);
|
|
1581
|
-
return y || (y = new Intl.DateTimeFormat(
|
|
1581
|
+
return y || (y = new Intl.DateTimeFormat(v, ge({}, h, O)), d.set(m, y)), w ? y.formatToParts(g) : y.format(g);
|
|
1582
1582
|
}
|
|
1583
1583
|
const er = [
|
|
1584
1584
|
"localeMatcher",
|
|
@@ -1603,40 +1603,40 @@ const er = [
|
|
|
1603
1603
|
"fractionalSecondDigits"
|
|
1604
1604
|
];
|
|
1605
1605
|
function jt(...e) {
|
|
1606
|
-
const [t, n, r, a] = e,
|
|
1606
|
+
const [t, n, r, a] = e, l = se();
|
|
1607
1607
|
let f = se(), d;
|
|
1608
1608
|
if (G(t)) {
|
|
1609
1609
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1610
1610
|
if (!i)
|
|
1611
|
-
throw xe(
|
|
1611
|
+
throw xe(Ve.INVALID_ISO_DATE_ARGUMENT);
|
|
1612
1612
|
const g = i[3] ? i[3].trim().startsWith("T") ? `${i[1].trim()}${i[3].trim()}` : `${i[1].trim()}T${i[3].trim()}` : i[1].trim();
|
|
1613
1613
|
d = new Date(g);
|
|
1614
1614
|
try {
|
|
1615
1615
|
d.toISOString();
|
|
1616
1616
|
} catch {
|
|
1617
|
-
throw xe(
|
|
1617
|
+
throw xe(Ve.INVALID_ISO_DATE_ARGUMENT);
|
|
1618
1618
|
}
|
|
1619
|
-
} else if (
|
|
1619
|
+
} else if (Vr(t)) {
|
|
1620
1620
|
if (isNaN(t.getTime()))
|
|
1621
|
-
throw xe(
|
|
1621
|
+
throw xe(Ve.INVALID_DATE_ARGUMENT);
|
|
1622
1622
|
d = t;
|
|
1623
|
-
} else if (
|
|
1623
|
+
} else if (be(t))
|
|
1624
1624
|
d = t;
|
|
1625
1625
|
else
|
|
1626
|
-
throw xe(
|
|
1627
|
-
return G(n) ?
|
|
1628
|
-
er.includes(i) ? f[i] = n[i] :
|
|
1629
|
-
}), G(r) ?
|
|
1626
|
+
throw xe(Ve.INVALID_ARGUMENT);
|
|
1627
|
+
return G(n) ? l.key = n : q(n) && Object.keys(n).forEach((i) => {
|
|
1628
|
+
er.includes(i) ? f[i] = n[i] : l[i] = n[i];
|
|
1629
|
+
}), G(r) ? l.locale = r : q(r) && (f = r), q(a) && (f = a), [l.key || "", d, l, f];
|
|
1630
1630
|
}
|
|
1631
1631
|
function In(e, t, n) {
|
|
1632
1632
|
const r = e;
|
|
1633
1633
|
for (const a in n) {
|
|
1634
|
-
const
|
|
1635
|
-
r.__datetimeFormatters.has(
|
|
1634
|
+
const l = `${t}__${a}`;
|
|
1635
|
+
r.__datetimeFormatters.has(l) && r.__datetimeFormatters.delete(l);
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
1638
1638
|
function En(e, ...t) {
|
|
1639
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn:
|
|
1639
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: l, localeFallbacker: f } = e, { __numberFormatters: d } = e, [i, g, C, O] = Ut(...t), N = _e(C.missingWarn) ? C.missingWarn : e.missingWarn;
|
|
1640
1640
|
_e(C.fallbackWarn) ? C.fallbackWarn : e.fallbackWarn;
|
|
1641
1641
|
const w = !!C.part, R = zt(e, C), k = f(
|
|
1642
1642
|
e,
|
|
@@ -1646,16 +1646,16 @@ function En(e, ...t) {
|
|
|
1646
1646
|
);
|
|
1647
1647
|
if (!G(i) || i === "")
|
|
1648
1648
|
return new Intl.NumberFormat(R, O).format(g);
|
|
1649
|
-
let M = {},
|
|
1649
|
+
let M = {}, v, h = null;
|
|
1650
1650
|
const S = "number format";
|
|
1651
|
-
for (let E = 0; E < k.length && (
|
|
1652
|
-
Qt(e, i,
|
|
1653
|
-
if (!q(
|
|
1651
|
+
for (let E = 0; E < k.length && (v = k[E], M = n[v] || {}, h = M[i], !q(h)); E++)
|
|
1652
|
+
Qt(e, i, v, N, S);
|
|
1653
|
+
if (!q(h) || !G(v))
|
|
1654
1654
|
return r ? Ot : i;
|
|
1655
|
-
let m = `${
|
|
1655
|
+
let m = `${v}__${i}`;
|
|
1656
1656
|
Nt(O) || (m = `${m}__${JSON.stringify(O)}`);
|
|
1657
1657
|
let y = d.get(m);
|
|
1658
|
-
return y || (y = new Intl.NumberFormat(
|
|
1658
|
+
return y || (y = new Intl.NumberFormat(v, ge({}, h, O)), d.set(m, y)), w ? y.formatToParts(g) : y.format(g);
|
|
1659
1659
|
}
|
|
1660
1660
|
const tr = [
|
|
1661
1661
|
"localeMatcher",
|
|
@@ -1679,21 +1679,21 @@ const tr = [
|
|
|
1679
1679
|
"roundingIncrement",
|
|
1680
1680
|
"trailingZeroDisplay"
|
|
1681
1681
|
];
|
|
1682
|
-
function
|
|
1683
|
-
const [t, n, r, a] = e,
|
|
1682
|
+
function Ut(...e) {
|
|
1683
|
+
const [t, n, r, a] = e, l = se();
|
|
1684
1684
|
let f = se();
|
|
1685
|
-
if (!
|
|
1686
|
-
throw xe(
|
|
1685
|
+
if (!be(t))
|
|
1686
|
+
throw xe(Ve.INVALID_ARGUMENT);
|
|
1687
1687
|
const d = t;
|
|
1688
|
-
return G(n) ?
|
|
1689
|
-
tr.includes(i) ? f[i] = n[i] :
|
|
1690
|
-
}), G(r) ?
|
|
1688
|
+
return G(n) ? l.key = n : q(n) && Object.keys(n).forEach((i) => {
|
|
1689
|
+
tr.includes(i) ? f[i] = n[i] : l[i] = n[i];
|
|
1690
|
+
}), G(r) ? l.locale = r : q(r) && (f = r), q(a) && (f = a), [l.key || "", d, l, f];
|
|
1691
1691
|
}
|
|
1692
1692
|
function Cn(e, t, n) {
|
|
1693
1693
|
const r = e;
|
|
1694
1694
|
for (const a in n) {
|
|
1695
|
-
const
|
|
1696
|
-
r.__numberFormatters.has(
|
|
1695
|
+
const l = `${t}__${a}`;
|
|
1696
|
+
r.__numberFormatters.has(l) && r.__numberFormatters.delete(l);
|
|
1697
1697
|
}
|
|
1698
1698
|
}
|
|
1699
1699
|
const ia = (e) => e, ca = (e) => "", ua = "text", ma = (e) => e.length === 0 ? "" : Jt(e), da = Zr;
|
|
@@ -1701,31 +1701,31 @@ function Nn(e, t) {
|
|
|
1701
1701
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1702
1702
|
}
|
|
1703
1703
|
function fa(e) {
|
|
1704
|
-
const t =
|
|
1705
|
-
return e.named && (
|
|
1704
|
+
const t = be(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1705
|
+
return e.named && (be(e.named.count) || be(e.named.n)) ? be(e.named.count) ? e.named.count : be(e.named.n) ? e.named.n : t : t;
|
|
1706
1706
|
}
|
|
1707
1707
|
function _a(e, t) {
|
|
1708
1708
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1709
1709
|
}
|
|
1710
|
-
function
|
|
1711
|
-
const t = e.locale, n = fa(e), r = ee(e.pluralRules) && G(t) && ue(e.pluralRules[t]) ? e.pluralRules[t] : Nn, a = ee(e.pluralRules) && G(t) && ue(e.pluralRules[t]) ? Nn : void 0,
|
|
1712
|
-
|
|
1713
|
-
const g = (
|
|
1714
|
-
function C(
|
|
1715
|
-
const S = ue(e.messages) ? e.messages(
|
|
1716
|
-
return S || (e.parent ? e.parent.message(
|
|
1710
|
+
function va(e = {}) {
|
|
1711
|
+
const t = e.locale, n = fa(e), r = ee(e.pluralRules) && G(t) && ue(e.pluralRules[t]) ? e.pluralRules[t] : Nn, a = ee(e.pluralRules) && G(t) && ue(e.pluralRules[t]) ? Nn : void 0, l = (v) => v[r(n, v.length, a)], f = e.list || [], d = (v) => f[v], i = e.named || se();
|
|
1712
|
+
be(e.pluralIndex) && _a(n, i);
|
|
1713
|
+
const g = (v) => i[v];
|
|
1714
|
+
function C(v, h) {
|
|
1715
|
+
const S = ue(e.messages) ? e.messages(v, !!h) : ee(e.messages) ? e.messages[v] : !1;
|
|
1716
|
+
return S || (e.parent ? e.parent.message(v) : ca);
|
|
1717
1717
|
}
|
|
1718
|
-
const O = (
|
|
1718
|
+
const O = (v) => e.modifiers ? e.modifiers[v] : ia, N = q(e.processor) && ue(e.processor.normalize) ? e.processor.normalize : ma, w = q(e.processor) && ue(e.processor.interpolate) ? e.processor.interpolate : da, R = q(e.processor) && G(e.processor.type) ? e.processor.type : ua, M = {
|
|
1719
1719
|
list: d,
|
|
1720
1720
|
named: g,
|
|
1721
|
-
plural:
|
|
1722
|
-
linked: (
|
|
1723
|
-
const [S, m] =
|
|
1721
|
+
plural: l,
|
|
1722
|
+
linked: (v, ...h) => {
|
|
1723
|
+
const [S, m] = h;
|
|
1724
1724
|
let y = "text", E = "";
|
|
1725
|
-
|
|
1726
|
-
const
|
|
1725
|
+
h.length === 1 ? ee(S) ? (E = S.modifier || E, y = S.type || y) : G(S) && (E = S || E) : h.length === 2 && (G(S) && (E = S || E), G(m) && (y = m || y));
|
|
1726
|
+
const p = C(v, !0)(M), A = (
|
|
1727
1727
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1728
|
-
y === "vnode" &&
|
|
1728
|
+
y === "vnode" && ve(p) && E ? p[0] : p
|
|
1729
1729
|
);
|
|
1730
1730
|
return E ? O(E)(A, y) : A;
|
|
1731
1731
|
},
|
|
@@ -1739,27 +1739,27 @@ function ba(e = {}) {
|
|
|
1739
1739
|
}
|
|
1740
1740
|
const Tn = () => "", Oe = (e) => ue(e);
|
|
1741
1741
|
function On(e, ...t) {
|
|
1742
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler:
|
|
1743
|
-
N &&
|
|
1744
|
-
let [
|
|
1742
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: l, fallbackLocale: f, messages: d } = e, [i, g] = Vt(...t), C = _e(g.missingWarn) ? g.missingWarn : e.missingWarn, O = _e(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, N = _e(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, w = !!g.resolvedMessage, R = G(g.default) || _e(g.default) ? _e(g.default) ? l ? i : () => i : g.default : n ? l ? i : () => i : null, k = n || R != null && (G(R) || ue(R)), M = zt(e, g);
|
|
1743
|
+
N && pa(g);
|
|
1744
|
+
let [v, h, S] = w ? [
|
|
1745
1745
|
i,
|
|
1746
1746
|
M,
|
|
1747
1747
|
d[M] || se()
|
|
1748
|
-
] : nr(e, i, M, f, O, C), m =
|
|
1749
|
-
if (!w && !(G(m) ||
|
|
1748
|
+
] : nr(e, i, M, f, O, C), m = v, y = i;
|
|
1749
|
+
if (!w && !(G(m) || lt(m) || Oe(m)) && k && (m = R, y = m), !w && (!(G(m) || lt(m) || Oe(m)) || !G(h)))
|
|
1750
1750
|
return a ? Ot : i;
|
|
1751
1751
|
let E = !1;
|
|
1752
|
-
const
|
|
1752
|
+
const p = () => {
|
|
1753
1753
|
E = !0;
|
|
1754
|
-
}, A = Oe(m) ? m : rr(e, i,
|
|
1754
|
+
}, A = Oe(m) ? m : rr(e, i, h, m, y, p);
|
|
1755
1755
|
if (E)
|
|
1756
1756
|
return m;
|
|
1757
|
-
const L = ga(e,
|
|
1757
|
+
const L = ga(e, h, S, g), H = va(L), x = ha(e, A, H), _ = r ? r(x, i) : x;
|
|
1758
1758
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1759
1759
|
const T = {
|
|
1760
1760
|
timestamp: Date.now(),
|
|
1761
1761
|
key: G(i) ? i : Oe(m) ? m.key : "",
|
|
1762
|
-
locale:
|
|
1762
|
+
locale: h || (Oe(m) ? m.locale : ""),
|
|
1763
1763
|
format: G(m) ? m : Oe(m) ? m.source : "",
|
|
1764
1764
|
message: _
|
|
1765
1765
|
};
|
|
@@ -1767,30 +1767,30 @@ function On(e, ...t) {
|
|
|
1767
1767
|
}
|
|
1768
1768
|
return _;
|
|
1769
1769
|
}
|
|
1770
|
-
function
|
|
1771
|
-
|
|
1772
|
-
G(e.named[t]) && (e.named[t] =
|
|
1770
|
+
function pa(e) {
|
|
1771
|
+
ve(e.list) ? e.list = e.list.map((t) => G(t) ? on(t) : t) : ee(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1772
|
+
G(e.named[t]) && (e.named[t] = on(e.named[t]));
|
|
1773
1773
|
});
|
|
1774
1774
|
}
|
|
1775
|
-
function nr(e, t, n, r, a,
|
|
1775
|
+
function nr(e, t, n, r, a, l) {
|
|
1776
1776
|
const { messages: f, onWarn: d, messageResolver: i, localeFallbacker: g } = e, C = g(e, r, n);
|
|
1777
1777
|
let O = se(), N, w = null;
|
|
1778
1778
|
const R = "translate";
|
|
1779
|
-
for (let k = 0; k < C.length && (N = C[k], O = f[N] || se(), (w = i(O, t)) === null && (w = O[t]), !(G(w) ||
|
|
1780
|
-
if (!
|
|
1779
|
+
for (let k = 0; k < C.length && (N = C[k], O = f[N] || se(), (w = i(O, t)) === null && (w = O[t]), !(G(w) || lt(w) || Oe(w))); k++)
|
|
1780
|
+
if (!oa(N, C)) {
|
|
1781
1781
|
const M = Qt(
|
|
1782
1782
|
e,
|
|
1783
1783
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1784
1784
|
t,
|
|
1785
1785
|
N,
|
|
1786
|
-
|
|
1786
|
+
l,
|
|
1787
1787
|
R
|
|
1788
1788
|
);
|
|
1789
1789
|
M !== t && (w = M);
|
|
1790
1790
|
}
|
|
1791
1791
|
return [w, N, O];
|
|
1792
1792
|
}
|
|
1793
|
-
function rr(e, t, n, r, a,
|
|
1793
|
+
function rr(e, t, n, r, a, l) {
|
|
1794
1794
|
const { messageCompiler: f, warnHtmlMessage: d } = e;
|
|
1795
1795
|
if (Oe(r)) {
|
|
1796
1796
|
const g = r;
|
|
@@ -1800,35 +1800,35 @@ function rr(e, t, n, r, a, o) {
|
|
|
1800
1800
|
const g = () => r;
|
|
1801
1801
|
return g.locale = n, g.key = t, g;
|
|
1802
1802
|
}
|
|
1803
|
-
const i = f(r,
|
|
1803
|
+
const i = f(r, ba(e, n, a, r, d, l));
|
|
1804
1804
|
return i.locale = n, i.key = t, i.source = r, i;
|
|
1805
1805
|
}
|
|
1806
|
-
function
|
|
1806
|
+
function ha(e, t, n) {
|
|
1807
1807
|
return t(n);
|
|
1808
1808
|
}
|
|
1809
|
-
function
|
|
1809
|
+
function Vt(...e) {
|
|
1810
1810
|
const [t, n, r] = e, a = se();
|
|
1811
|
-
if (!G(t) && !
|
|
1812
|
-
throw xe(
|
|
1813
|
-
const
|
|
1814
|
-
return
|
|
1811
|
+
if (!G(t) && !be(t) && !Oe(t) && !lt(t))
|
|
1812
|
+
throw xe(Ve.INVALID_ARGUMENT);
|
|
1813
|
+
const l = be(t) ? String(t) : (Oe(t), t);
|
|
1814
|
+
return be(n) ? a.plural = n : G(n) ? a.default = n : q(n) && !Nt(n) ? a.named = n : ve(n) && (a.list = n), be(r) ? a.plural = r : G(r) ? a.default = r : q(r) && ge(a, r), [l, a];
|
|
1815
1815
|
}
|
|
1816
|
-
function
|
|
1816
|
+
function ba(e, t, n, r, a, l) {
|
|
1817
1817
|
return {
|
|
1818
1818
|
locale: t,
|
|
1819
1819
|
key: n,
|
|
1820
1820
|
warnHtmlMessage: a,
|
|
1821
1821
|
onError: (f) => {
|
|
1822
|
-
throw
|
|
1822
|
+
throw l && l(f), f;
|
|
1823
1823
|
},
|
|
1824
1824
|
onCacheKey: (f) => jr(t, n, f)
|
|
1825
1825
|
};
|
|
1826
1826
|
}
|
|
1827
1827
|
function ga(e, t, n, r) {
|
|
1828
|
-
const { modifiers: a, pluralRules:
|
|
1828
|
+
const { modifiers: a, pluralRules: l, messageResolver: f, fallbackLocale: d, fallbackWarn: i, missingWarn: g, fallbackContext: C } = e, N = {
|
|
1829
1829
|
locale: t,
|
|
1830
1830
|
modifiers: a,
|
|
1831
|
-
pluralRules:
|
|
1831
|
+
pluralRules: l,
|
|
1832
1832
|
messages: (w, R) => {
|
|
1833
1833
|
let k = f(n, w);
|
|
1834
1834
|
if (k == null && (C || R)) {
|
|
@@ -1843,26 +1843,26 @@ function ga(e, t, n, r) {
|
|
|
1843
1843
|
);
|
|
1844
1844
|
k = f(M, w);
|
|
1845
1845
|
}
|
|
1846
|
-
if (G(k) ||
|
|
1846
|
+
if (G(k) || lt(k)) {
|
|
1847
1847
|
let M = !1;
|
|
1848
|
-
const
|
|
1848
|
+
const h = rr(e, w, t, k, w, () => {
|
|
1849
1849
|
M = !0;
|
|
1850
1850
|
});
|
|
1851
|
-
return M ? Tn :
|
|
1851
|
+
return M ? Tn : h;
|
|
1852
1852
|
} else return Oe(k) ? k : Tn;
|
|
1853
1853
|
}
|
|
1854
1854
|
};
|
|
1855
|
-
return e.processor && (N.processor = e.processor), r.list && (N.list = r.list), r.named && (N.named = r.named),
|
|
1855
|
+
return e.processor && (N.processor = e.processor), r.list && (N.list = r.list), r.named && (N.named = r.named), be(r.plural) && (N.pluralIndex = r.plural), N;
|
|
1856
1856
|
}
|
|
1857
|
-
|
|
1858
|
-
var ya = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_b80bf9f0-2f3c-4e53-a2ba-b548323b3c2b", DOTNET_NOLOGO: "1", USER: "runner", npm_config_always_auth: "", npm_config_user_agent: "pnpm/10.8.0 npm/? node/v24.5.0 linux x64", CI: "true", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_b80bf9f0-2f3c-4e53-a2ba-b548323b3c2b", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.8.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/30.0.16248370", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1841", ACTIONS_ORCHESTRATION_ID: "6694aacf-bf73-4ca0-ab3b-e87ab8bb3f84.publish.publish.__default", npm_config_engine_strict: "true", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20261012.334.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_b80bf9f0-2f3c-4e53-a2ba-b548323b3c2b", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:10766", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.14/x64", GITHUB_RUN_ID: "39399919117", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "b6a2070d94f6ea3ef3c8cfdd1b108bedea09057e", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.9/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/ma/feat/kdi-5225-team-member-ui", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYS9mZWF0L2tkaS01MjI1LXRlYW0tbWVtYmVyLXVpXCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsImF1ZCI6InZzbzo2Zjk2ZmE4OS1iN2JmLTQ4NzgtYmFkMy04OTgwMDY1NjZiNmUiLCJiaWxsaW5nX293bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwiZXhwIjoxNzkyNTEwMjE2LCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3ByaW1hcnlzaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJpYXQiOjE3OTI0ODgwMTYsImlzcyI6Imh0dHBzOi8vdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJqb2JfaWQiOiJmY2NjZmUwYi05YTc2LTU3MGUtOTdiMy04OWVkMTBiNGQ1ZjUiLCJqb2Jfd29ya2Zsb3dfcmVmIjoiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluIiwiam9iX3dvcmtmbG93X3NoYSI6IjA5Zjc2ZDhhYzVlNmEwNzA3NTQyNzQ5ZTFkNTY4N2JmMWVhZDVmMmMiLCJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJuYmYiOjE3OTI0ODc3MTYsIm9pZGNfZXh0cmEiOiJ7XCJhY3RvclwiOlwiTWlyb29uOTlcIixcImFjdG9yX2lkXCI6XCI2NTYzNzQyMVwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCIxMTg1NTE3OTIxMzNcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjA5Zjc2ZDhhYzVlNmEwNzA3NTQyNzQ5ZTFkNTY4N2JmMWVhZDVmMmNcIixcInJlZlwiOlwicmVmcy9oZWFkcy9tYS9mZWF0L2tkaS01MjI1LXRlYW0tbWVtYmVyLXVpXCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjM5Mzk5OTE5MTE3XCIsXCJydW5fbnVtYmVyXCI6XCIyMjNcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCJiNmEyMDcwZDk0ZjZlYTNlZjNjOGNmZGQxYjEwOGJlZGVhMDkwNTdlXCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy9tYS9mZWF0L2tkaS01MjI1LXRlYW0tbWVtYmVyLXVpXCIsXCJ3b3JrZmxvd19zaGFcIjpcImI2YTIwNzBkOTRmNmVhM2VmM2M4Y2ZkZDFiMTA4YmVkZWEwOTA1N2VcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL2hybS1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL21hL2ZlYXQva2RpLTUyMjUtdGVhbS1tZW1iZXItdWkiLCJvcmNoX2lkIjoiNjY5NGFhY2YtYmY3My00Y2EwLWFiM2ItZTg3YWI4YmIzZjg0LnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiI2Njk0YWFjZi1iZjczLTRjYTAtYWIzYi1lODdhYjhiYjNmODQiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiIzOTM5OTkxOTExNyIsInJ1bl9udW1iZXIiOiIyMjMiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMjA5ODAxIiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6NjY5NGFhY2YtYmY3My00Y2EwLWFiM2ItZTg3YWI4YmIzZjg0OmZjY2NmZTBiLTlhNzYtNTcwZS05N2IzLTg5ZWQxMGI0ZDVmNSBBY3Rpb25zLlJ1bm5lcjo2Njk0YWFjZi1iZjczLTRjYTAtYWIzYi1lODdhYjhiYjNmODQ6ZmNjY2ZlMGItOWE3Ni01NzBlLTk3YjMtODllZDEwYjRkNWY1IEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOjY2OTRhYWNmLWJmNzMtNGNhMC1hYjNiLWU4N2FiOGJiM2Y4NDpmY2NjZmUwYi05YTc2LTU3MGUtOTdiMy04OWVkMTBiNGQ1ZjUgZ2VuZXJhdGVfaWRfdG9rZW46NjY5NGFhY2YtYmY3My00Y2EwLWFiM2ItZTg3YWI4YmIzZjg0OmZjY2NmZTBiLTlhNzYtNTcwZS05N2IzLTg5ZWQxMGI0ZDVmNSBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6ImI2YTIwNzBkOTRmNmVhM2VmM2M4Y2ZkZDFiMTA4YmVkZWEwOTA1N2UiLCJ0cnVzdF90aWVyIjoiMSJ9.fHxxsaA9kkoJdwvXaSZejqJF8fvcdr11nNwHah9m_UCtwZhdkIFDHWTxeDZq3V-Y2UxiQGnuBa9VyBtla6qEVr6dny8Ft-PZykAWOa5nhMmCUILiZ-kXiw3rmcF0yRTj_DQeKpIAP4qIfSMF-EnbFjtWRB3WjqFDivuzYLfwvFN-7SQEKRPjCGhcqxDDXRtrQPEfH5AU3Ns0g2mRNSD0_4G2AyaY2LJ9VqRQEPXqqEYrCNj1Cko0D28ppHVQd8tUo6epE69O4tp37bIl7ZOYNPfs8lGzBMYbeO9X_jOOUaUZ_oewbTR2WuE7CeHgmNA7Q6bsOYpHcVSTZu1mKfnEyA", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/24.5.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_1f0d90f1-6157-4398-9762-88700456fcca", INVOCATION_ID: "f4cd0216aa0a47608d1594ae5a926c84", 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: "223", GITHUB_TRIGGERING_ACTOR: "Miroon99", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000209801", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "ma/feat/kdi-5225-team-member-ui", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.3.2-dev", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", GITHUB_SHA: "b6a2070d94f6ea3ef3c8cfdd1b108bedea09057e", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/ma/feat/kdi-5225-team-member-ui", GITHUB_ACTOR: "Miroon99", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_b80bf9f0-2f3c-4e53-a2ba-b548323b3c2b", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "65637421", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-2-azure-eastus.actions.githubusercontent.com/274//idtoken/6694aacf-bf73-4ca0-ab3b-e87ab8bb3f84/fcccfe0b-9a76-570e-97b3-89ed10b4d5f5?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_b80bf9f0-2f3c-4e53-a2ba-b548323b3c2b", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_b80bf9f0-2f3c-4e53-a2ba-b548323b3c2b", 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_b80bf9f0-2f3c-4e53-a2ba-b548323b3c2b", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1857
|
+
ps();
|
|
1858
|
+
var ya = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_04c35d78-0ce7-4dd4-b386-f5c7c65ef830", DOTNET_NOLOGO: "1", USER: "runner", npm_config_always_auth: "", npm_config_user_agent: "pnpm/10.8.0 npm/? node/v24.5.0 linux x64", CI: "true", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_04c35d78-0ce7-4dd4-b386-f5c7c65ef830", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.8.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/30.0.16248370", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1776", ACTIONS_ORCHESTRATION_ID: "f0a30a28-ce0e-46ca-92e9-97b94b175aa2.publish.publish.__default", npm_config_engine_strict: "true", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20261018.339.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_04c35d78-0ce7-4dd4-b386-f5c7c65ef830", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "10:11133", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.14/x64", GITHUB_RUN_ID: "39402639207", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "3ab1df19fa1744da2f39ad59a2052b5eaf0fef27", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.9/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/ma/feat/kdi-5225-team-member-ui", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYS9mZWF0L2tkaS01MjI1LXRlYW0tbWVtYmVyLXVpXCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsImF1ZCI6InZzbzo2Zjk2ZmE4OS1iN2JmLTQ4NzgtYmFkMy04OTgwMDY1NjZiNmUiLCJiaWxsaW5nX293bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwiZXhwIjoxNzkyNTExNTQ4LCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3ByaW1hcnlzaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJpYXQiOjE3OTI0ODkzNDgsImlzcyI6Imh0dHBzOi8vdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJqb2JfaWQiOiJmMGI1MDQ1ZS05ZTZmLTVjYjQtOWQ5NC1kYjllNWZjMTgyN2EiLCJqb2Jfd29ya2Zsb3dfcmVmIjoiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluIiwiam9iX3dvcmtmbG93X3NoYSI6IjA5Zjc2ZDhhYzVlNmEwNzA3NTQyNzQ5ZTFkNTY4N2JmMWVhZDVmMmMiLCJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJuYmYiOjE3OTI0ODkwNDgsIm9pZGNfZXh0cmEiOiJ7XCJhY3RvclwiOlwiTWlyb29uOTlcIixcImFjdG9yX2lkXCI6XCI2NTYzNzQyMVwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCIxMTg1NjA4NjQxNTVcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjA5Zjc2ZDhhYzVlNmEwNzA3NTQyNzQ5ZTFkNTY4N2JmMWVhZDVmMmNcIixcInJlZlwiOlwicmVmcy9oZWFkcy9tYS9mZWF0L2tkaS01MjI1LXRlYW0tbWVtYmVyLXVpXCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjM5NDAyNjM5MjA3XCIsXCJydW5fbnVtYmVyXCI6XCIyMjRcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCIzYWIxZGYxOWZhMTc0NGRhMmYzOWFkNTlhMjA1MmI1ZWFmMGZlZjI3XCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy9tYS9mZWF0L2tkaS01MjI1LXRlYW0tbWVtYmVyLXVpXCIsXCJ3b3JrZmxvd19zaGFcIjpcIjNhYjFkZjE5ZmExNzQ0ZGEyZjM5YWQ1OWEyMDUyYjVlYWYwZmVmMjdcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL2hybS1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL21hL2ZlYXQva2RpLTUyMjUtdGVhbS1tZW1iZXItdWkiLCJvcmNoX2lkIjoiZjBhMzBhMjgtY2UwZS00NmNhLTkyZTktOTdiOTRiMTc1YWEyLnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiJmMGEzMGEyOC1jZTBlLTQ2Y2EtOTJlOS05N2I5NGIxNzVhYTIiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiIzOTQwMjYzOTIwNyIsInJ1bl9udW1iZXIiOiIyMjQiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMjA5ODY3IiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6ZjBhMzBhMjgtY2UwZS00NmNhLTkyZTktOTdiOTRiMTc1YWEyOmYwYjUwNDVlLTllNmYtNWNiNC05ZDk0LWRiOWU1ZmMxODI3YSBBY3Rpb25zLlJ1bm5lcjpmMGEzMGEyOC1jZTBlLTQ2Y2EtOTJlOS05N2I5NGIxNzVhYTI6ZjBiNTA0NWUtOWU2Zi01Y2I0LTlkOTQtZGI5ZTVmYzE4MjdhIEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOmYwYTMwYTI4LWNlMGUtNDZjYS05MmU5LTk3Yjk0YjE3NWFhMjpmMGI1MDQ1ZS05ZTZmLTVjYjQtOWQ5NC1kYjllNWZjMTgyN2EgZ2VuZXJhdGVfaWRfdG9rZW46ZjBhMzBhMjgtY2UwZS00NmNhLTkyZTktOTdiOTRiMTc1YWEyOmYwYjUwNDVlLTllNmYtNWNiNC05ZDk0LWRiOWU1ZmMxODI3YSBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6IjNhYjFkZjE5ZmExNzQ0ZGEyZjM5YWQ1OWEyMDUyYjVlYWYwZmVmMjciLCJ0cnVzdF90aWVyIjoiMSJ9.TPl9uKQHfsRNTA3JXgBIupqtUuf8Q4yyYPANgndmdqlRpcyfSkp5l5wBbPju9PWG8FUyUsBC32_I3YrpYnVN5kM8fBhnwShTMaZXR-i0Q6ogFCPdM72h9Myo2At4Rafd9B_G5NwibTPbL0OkegbPC8CTKp9vp1CW-SRZgcO4Cfn_NPmq3ebcq5PHOBp4MmoEivjW7ksuLznUf-xk1_K0XO2nyBrQ5jSOjN4uwmFEoeUBdL6OJPcuT9Nj0Pzun673wAnJfToMTdNQjIJ9pSQHD3W8KGBB7LhZHjh6v7Fp-Bl65veSauD_U-7SnvLBUL7kP95htzSj73lngs7NNxWBEQ", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/24.5.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_53e8f767-e753-4578-a84f-abbcd3fc1bc9", INVOCATION_ID: "d9f82f24df2340da92f93fb5ce44e846", 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: "224", GITHUB_TRIGGERING_ACTOR: "Miroon99", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000209867", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "ma/feat/kdi-5225-team-member-ui", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.3.3-dev", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", GITHUB_SHA: "3ab1df19fa1744da2f39ad59a2052b5eaf0fef27", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/ma/feat/kdi-5225-team-member-ui", GITHUB_ACTOR: "Miroon99", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_04c35d78-0ce7-4dd4-b386-f5c7c65ef830", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "65637421", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/161//idtoken/f0a30a28-ce0e-46ca-92e9-97b94b175aa2/f0b5045e-9e6f-5cb4-9d94-db9e5fc1827a?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_04c35d78-0ce7-4dd4-b386-f5c7c65ef830", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_04c35d78-0ce7-4dd4-b386-f5c7c65ef830", 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_04c35d78-0ce7-4dd4-b386-f5c7c65ef830", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1859
1859
|
const Ia = "10.0.5";
|
|
1860
1860
|
function Ea() {
|
|
1861
1861
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && ($e().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && ($e().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && ($e().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && ($e().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1862
1862
|
}
|
|
1863
|
-
const
|
|
1863
|
+
const ot = {
|
|
1864
1864
|
// composer module errors
|
|
1865
|
-
UNEXPECTED_RETURN_TYPE:
|
|
1865
|
+
UNEXPECTED_RETURN_TYPE: Vs,
|
|
1866
1866
|
// 24
|
|
1867
1867
|
// legacy module errors
|
|
1868
1868
|
INVALID_ARGUMENT: 25,
|
|
@@ -1886,32 +1886,32 @@ function dt(e) {
|
|
|
1886
1886
|
ee(e[t]) && dt(e[t]);
|
|
1887
1887
|
else {
|
|
1888
1888
|
const n = t.split("."), r = n.length - 1;
|
|
1889
|
-
let a = e,
|
|
1889
|
+
let a = e, l = !1;
|
|
1890
1890
|
for (let f = 0; f < r; f++) {
|
|
1891
1891
|
if (n[f] in a || (a[n[f]] = se()), !ee(a[n[f]])) {
|
|
1892
|
-
|
|
1892
|
+
l = !0;
|
|
1893
1893
|
break;
|
|
1894
1894
|
}
|
|
1895
1895
|
a = a[n[f]];
|
|
1896
1896
|
}
|
|
1897
|
-
|
|
1897
|
+
l || (a[n[r]] = e[t], delete e[t]), ee(a[n[r]]) && dt(a[n[r]]);
|
|
1898
1898
|
}
|
|
1899
1899
|
return e;
|
|
1900
1900
|
}
|
|
1901
1901
|
function ar(e, t) {
|
|
1902
|
-
const { messages: n, __i18n: r, messageResolver: a, flatJson:
|
|
1903
|
-
if (
|
|
1902
|
+
const { messages: n, __i18n: r, messageResolver: a, flatJson: l } = t, f = q(n) ? n : ve(r) ? se() : { [e]: se() };
|
|
1903
|
+
if (ve(r) && r.forEach((d) => {
|
|
1904
1904
|
if ("locale" in d && "resource" in d) {
|
|
1905
1905
|
const { locale: i, resource: g } = d;
|
|
1906
1906
|
i ? (f[i] = f[i] || se(), It(g, f[i])) : It(g, f);
|
|
1907
1907
|
} else
|
|
1908
1908
|
G(d) && It(JSON.parse(d), f);
|
|
1909
|
-
}), a == null &&
|
|
1909
|
+
}), a == null && l)
|
|
1910
1910
|
for (const d in f)
|
|
1911
1911
|
ke(f, d) && dt(f[d]);
|
|
1912
1912
|
return f;
|
|
1913
1913
|
}
|
|
1914
|
-
function
|
|
1914
|
+
function lr(e) {
|
|
1915
1915
|
return e.type;
|
|
1916
1916
|
}
|
|
1917
1917
|
function Na(e, t, n) {
|
|
@@ -1921,52 +1921,52 @@ function Na(e, t, n) {
|
|
|
1921
1921
|
__i18n: n.__i18nGlobal
|
|
1922
1922
|
}));
|
|
1923
1923
|
const a = Object.keys(r);
|
|
1924
|
-
a.length && a.forEach((
|
|
1925
|
-
e.mergeLocaleMessage(
|
|
1924
|
+
a.length && a.forEach((l) => {
|
|
1925
|
+
e.mergeLocaleMessage(l, r[l]);
|
|
1926
1926
|
});
|
|
1927
1927
|
{
|
|
1928
1928
|
if (ee(t.datetimeFormats)) {
|
|
1929
|
-
const
|
|
1930
|
-
|
|
1929
|
+
const l = Object.keys(t.datetimeFormats);
|
|
1930
|
+
l.length && l.forEach((f) => {
|
|
1931
1931
|
e.mergeDateTimeFormat(f, t.datetimeFormats[f]);
|
|
1932
1932
|
});
|
|
1933
1933
|
}
|
|
1934
1934
|
if (ee(t.numberFormats)) {
|
|
1935
|
-
const
|
|
1936
|
-
|
|
1935
|
+
const l = Object.keys(t.numberFormats);
|
|
1936
|
+
l.length && l.forEach((f) => {
|
|
1937
1937
|
e.mergeNumberFormat(f, t.numberFormats[f]);
|
|
1938
1938
|
});
|
|
1939
1939
|
}
|
|
1940
1940
|
}
|
|
1941
1941
|
}
|
|
1942
1942
|
function Sn(e) {
|
|
1943
|
-
return
|
|
1943
|
+
return le(_r, null, e, 0);
|
|
1944
1944
|
}
|
|
1945
1945
|
const Ln = "__INTLIFY_META__", kn = () => [], Ta = () => !1;
|
|
1946
1946
|
let An = 0;
|
|
1947
1947
|
function Rn(e) {
|
|
1948
|
-
return (t, n, r, a) => e(n, r,
|
|
1948
|
+
return (t, n, r, a) => e(n, r, Xt() || void 0, a);
|
|
1949
1949
|
}
|
|
1950
1950
|
const Oa = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1951
|
-
const e =
|
|
1951
|
+
const e = Xt();
|
|
1952
1952
|
let t = null;
|
|
1953
|
-
return e && (t =
|
|
1953
|
+
return e && (t = lr(e)[Ln]) ? { [Ln]: t } : null;
|
|
1954
1954
|
};
|
|
1955
1955
|
function Sa(e = {}) {
|
|
1956
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson,
|
|
1956
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, l = an ? st : dr;
|
|
1957
1957
|
let f = _e(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1958
|
-
const d =
|
|
1958
|
+
const d = l(
|
|
1959
1959
|
// prettier-ignore
|
|
1960
1960
|
t && f ? t.locale.value : G(e.locale) ? e.locale : Ct
|
|
1961
|
-
), i =
|
|
1961
|
+
), i = l(
|
|
1962
1962
|
// prettier-ignore
|
|
1963
|
-
t && f ? t.fallbackLocale.value : G(e.fallbackLocale) ||
|
|
1964
|
-
), g =
|
|
1965
|
-
let N = t ? t.missingWarn : _e(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, w = t ? t.fallbackWarn : _e(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, R = t ? t.fallbackRoot : _e(e.fallbackRoot) ? e.fallbackRoot : !0, k = !!e.fallbackFormat, M = ue(e.missing) ? e.missing : null,
|
|
1963
|
+
t && f ? t.fallbackLocale.value : G(e.fallbackLocale) || ve(e.fallbackLocale) || q(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : d.value
|
|
1964
|
+
), g = l(ar(d.value, e)), C = l(q(e.datetimeFormats) ? e.datetimeFormats : { [d.value]: {} }), O = l(q(e.numberFormats) ? e.numberFormats : { [d.value]: {} });
|
|
1965
|
+
let N = t ? t.missingWarn : _e(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, w = t ? t.fallbackWarn : _e(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, R = t ? t.fallbackRoot : _e(e.fallbackRoot) ? e.fallbackRoot : !0, k = !!e.fallbackFormat, M = ue(e.missing) ? e.missing : null, v = ue(e.missing) ? Rn(e.missing) : null, h = ue(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : _e(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, m = !!e.escapeParameter;
|
|
1966
1966
|
const y = t ? t.modifiers : q(e.modifiers) ? e.modifiers : {};
|
|
1967
|
-
let E = e.pluralRules || t && t.pluralRules,
|
|
1968
|
-
|
|
1969
|
-
r &&
|
|
1967
|
+
let E = e.pluralRules || t && t.pluralRules, p;
|
|
1968
|
+
p = (() => {
|
|
1969
|
+
r && bn(null);
|
|
1970
1970
|
const u = {
|
|
1971
1971
|
version: Ia,
|
|
1972
1972
|
locale: d.value,
|
|
@@ -1974,22 +1974,22 @@ function Sa(e = {}) {
|
|
|
1974
1974
|
messages: g.value,
|
|
1975
1975
|
modifiers: y,
|
|
1976
1976
|
pluralRules: E,
|
|
1977
|
-
missing:
|
|
1977
|
+
missing: v === null ? void 0 : v,
|
|
1978
1978
|
missingWarn: N,
|
|
1979
1979
|
fallbackWarn: w,
|
|
1980
1980
|
fallbackFormat: k,
|
|
1981
1981
|
unresolving: !0,
|
|
1982
|
-
postTranslation:
|
|
1982
|
+
postTranslation: h === null ? void 0 : h,
|
|
1983
1983
|
warnHtmlMessage: S,
|
|
1984
1984
|
escapeParameter: m,
|
|
1985
1985
|
messageResolver: e.messageResolver,
|
|
1986
1986
|
messageCompiler: e.messageCompiler,
|
|
1987
1987
|
__meta: { framework: "vue" }
|
|
1988
1988
|
};
|
|
1989
|
-
u.datetimeFormats = C.value, u.numberFormats = O.value, u.__datetimeFormatters = q(
|
|
1989
|
+
u.datetimeFormats = C.value, u.numberFormats = O.value, u.__datetimeFormatters = q(p) ? p.__datetimeFormatters : void 0, u.__numberFormatters = q(p) ? p.__numberFormatters : void 0;
|
|
1990
1990
|
const I = aa(u);
|
|
1991
|
-
return r &&
|
|
1992
|
-
})(), it(
|
|
1991
|
+
return r && bn(I), I;
|
|
1992
|
+
})(), it(p, d.value, i.value);
|
|
1993
1993
|
function L() {
|
|
1994
1994
|
return [
|
|
1995
1995
|
d.value,
|
|
@@ -2002,68 +2002,68 @@ function Sa(e = {}) {
|
|
|
2002
2002
|
const H = z({
|
|
2003
2003
|
get: () => d.value,
|
|
2004
2004
|
set: (u) => {
|
|
2005
|
-
d.value = u,
|
|
2005
|
+
d.value = u, p.locale = d.value;
|
|
2006
2006
|
}
|
|
2007
2007
|
}), x = z({
|
|
2008
2008
|
get: () => i.value,
|
|
2009
2009
|
set: (u) => {
|
|
2010
|
-
i.value = u,
|
|
2010
|
+
i.value = u, p.fallbackLocale = i.value, it(p, d.value, u);
|
|
2011
2011
|
}
|
|
2012
2012
|
}), _ = z(() => g.value), T = /* @__PURE__ */ z(() => C.value), j = /* @__PURE__ */ z(() => O.value);
|
|
2013
2013
|
function P() {
|
|
2014
|
-
return ue(
|
|
2014
|
+
return ue(h) ? h : null;
|
|
2015
2015
|
}
|
|
2016
2016
|
function F(u) {
|
|
2017
|
-
|
|
2017
|
+
h = u, p.postTranslation = u;
|
|
2018
2018
|
}
|
|
2019
2019
|
function W() {
|
|
2020
2020
|
return M;
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2023
|
-
u !== null && (
|
|
2022
|
+
function U(u) {
|
|
2023
|
+
u !== null && (v = Rn(u)), M = u, p.missing = v;
|
|
2024
2024
|
}
|
|
2025
2025
|
const Z = (u, I, K, $, me, Ze) => {
|
|
2026
2026
|
L();
|
|
2027
2027
|
let qe;
|
|
2028
2028
|
try {
|
|
2029
|
-
ya.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (
|
|
2029
|
+
ya.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = t ? sa() : void 0), qe = u(p);
|
|
2030
2030
|
} finally {
|
|
2031
|
-
__INTLIFY_PROD_DEVTOOLS__, r || (
|
|
2031
|
+
__INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = void 0);
|
|
2032
2032
|
}
|
|
2033
2033
|
if (K !== "translate exists" && // for not `te` (e.g `t`)
|
|
2034
|
-
|
|
2035
|
-
const [ur,
|
|
2034
|
+
be(qe) && qe === Ot || K === "translate exists" && !qe) {
|
|
2035
|
+
const [ur, vl] = I();
|
|
2036
2036
|
return t && R ? $(t) : me(ur);
|
|
2037
2037
|
} else {
|
|
2038
2038
|
if (Ze(qe))
|
|
2039
2039
|
return qe;
|
|
2040
|
-
throw mt(
|
|
2040
|
+
throw mt(ot.UNEXPECTED_RETURN_TYPE);
|
|
2041
2041
|
}
|
|
2042
2042
|
};
|
|
2043
|
-
function
|
|
2044
|
-
return Z((I) => Reflect.apply(On, null, [I, ...u]), () =>
|
|
2043
|
+
function X(...u) {
|
|
2044
|
+
return Z((I) => Reflect.apply(On, null, [I, ...u]), () => Vt(...u), "translate", (I) => Reflect.apply(I.t, I, [...u]), (I) => I, (I) => G(I));
|
|
2045
2045
|
}
|
|
2046
2046
|
function te(...u) {
|
|
2047
2047
|
const [I, K, $] = u;
|
|
2048
2048
|
if ($ && !ee($))
|
|
2049
|
-
throw mt(
|
|
2050
|
-
return
|
|
2049
|
+
throw mt(ot.INVALID_ARGUMENT);
|
|
2050
|
+
return X(I, K, ge({ resolvedMessage: !0 }, $ || {}));
|
|
2051
2051
|
}
|
|
2052
2052
|
function Q(...u) {
|
|
2053
|
-
return Z((I) => Reflect.apply(yn, null, [I, ...u]), () => jt(...u), "datetime format", (I) => Reflect.apply(I.d, I, [...u]), () =>
|
|
2053
|
+
return Z((I) => Reflect.apply(yn, null, [I, ...u]), () => jt(...u), "datetime format", (I) => Reflect.apply(I.d, I, [...u]), () => pn, (I) => G(I));
|
|
2054
2054
|
}
|
|
2055
2055
|
function de(...u) {
|
|
2056
|
-
return Z((I) => Reflect.apply(En, null, [I, ...u]), () =>
|
|
2056
|
+
return Z((I) => Reflect.apply(En, null, [I, ...u]), () => Ut(...u), "number format", (I) => Reflect.apply(I.n, I, [...u]), () => pn, (I) => G(I));
|
|
2057
2057
|
}
|
|
2058
|
-
function
|
|
2059
|
-
return u.map((I) => G(I) ||
|
|
2058
|
+
function pe(u) {
|
|
2059
|
+
return u.map((I) => G(I) || be(I) || _e(I) ? Sn(String(I)) : I);
|
|
2060
2060
|
}
|
|
2061
2061
|
const ae = {
|
|
2062
|
-
normalize:
|
|
2062
|
+
normalize: pe,
|
|
2063
2063
|
interpolate: (u) => u,
|
|
2064
2064
|
type: "vnode"
|
|
2065
2065
|
};
|
|
2066
|
-
function
|
|
2066
|
+
function oe(...u) {
|
|
2067
2067
|
return Z((I) => {
|
|
2068
2068
|
let K;
|
|
2069
2069
|
const $ = I;
|
|
@@ -2073,30 +2073,30 @@ function Sa(e = {}) {
|
|
|
2073
2073
|
$.processor = null;
|
|
2074
2074
|
}
|
|
2075
2075
|
return K;
|
|
2076
|
-
}, () =>
|
|
2076
|
+
}, () => Vt(...u), "translate", (I) => I[xt](...u), (I) => [Sn(I)], (I) => ve(I));
|
|
2077
2077
|
}
|
|
2078
2078
|
function Re(...u) {
|
|
2079
|
-
return Z((I) => Reflect.apply(En, null, [I, ...u]), () =>
|
|
2079
|
+
return Z((I) => Reflect.apply(En, null, [I, ...u]), () => Ut(...u), "number format", (I) => I[Gt](...u), kn, (I) => G(I) || ve(I));
|
|
2080
2080
|
}
|
|
2081
|
-
function
|
|
2082
|
-
return Z((I) => Reflect.apply(yn, null, [I, ...u]), () => jt(...u), "datetime format", (I) => I[Wt](...u), kn, (I) => G(I) ||
|
|
2081
|
+
function B(...u) {
|
|
2082
|
+
return Z((I) => Reflect.apply(yn, null, [I, ...u]), () => jt(...u), "datetime format", (I) => I[Wt](...u), kn, (I) => G(I) || ve(I));
|
|
2083
2083
|
}
|
|
2084
2084
|
function fe(u) {
|
|
2085
|
-
E = u,
|
|
2085
|
+
E = u, p.pluralRules = E;
|
|
2086
2086
|
}
|
|
2087
2087
|
function Je(u, I) {
|
|
2088
2088
|
return Z(() => {
|
|
2089
2089
|
if (!u)
|
|
2090
2090
|
return !1;
|
|
2091
|
-
const K = G(I) ? I : d.value, $ = Fe(K), me =
|
|
2092
|
-
return
|
|
2091
|
+
const K = G(I) ? I : d.value, $ = Fe(K), me = p.messageResolver($, u);
|
|
2092
|
+
return lt(me) || Oe(me) || G(me);
|
|
2093
2093
|
}, () => [u], "translate exists", (K) => Reflect.apply(K.te, K, [u, I]), Ta, (K) => _e(K));
|
|
2094
2094
|
}
|
|
2095
2095
|
function Qe(u) {
|
|
2096
2096
|
let I = null;
|
|
2097
|
-
const K = Jn(
|
|
2097
|
+
const K = Jn(p, i.value, d.value);
|
|
2098
2098
|
for (let $ = 0; $ < K.length; $++) {
|
|
2099
|
-
const me = g.value[K[$]] || {}, Ze =
|
|
2099
|
+
const me = g.value[K[$]] || {}, Ze = p.messageResolver(me, u);
|
|
2100
2100
|
if (Ze != null) {
|
|
2101
2101
|
I = Ze;
|
|
2102
2102
|
break;
|
|
@@ -2118,7 +2118,7 @@ function Sa(e = {}) {
|
|
|
2118
2118
|
ke(K, $) && dt(K[$]);
|
|
2119
2119
|
I = K[u];
|
|
2120
2120
|
}
|
|
2121
|
-
g.value[u] = I,
|
|
2121
|
+
g.value[u] = I, p.messages = g.value;
|
|
2122
2122
|
}
|
|
2123
2123
|
function Ge(u, I) {
|
|
2124
2124
|
g.value[u] = g.value[u] || {};
|
|
@@ -2126,32 +2126,32 @@ function Sa(e = {}) {
|
|
|
2126
2126
|
if (a)
|
|
2127
2127
|
for (const $ in K)
|
|
2128
2128
|
ke(K, $) && dt(K[$]);
|
|
2129
|
-
I = K[u], It(I, g.value[u]),
|
|
2129
|
+
I = K[u], It(I, g.value[u]), p.messages = g.value;
|
|
2130
2130
|
}
|
|
2131
2131
|
function je(u) {
|
|
2132
2132
|
return C.value[u] || {};
|
|
2133
2133
|
}
|
|
2134
|
-
function
|
|
2135
|
-
C.value[u] = I,
|
|
2134
|
+
function o(u, I) {
|
|
2135
|
+
C.value[u] = I, p.datetimeFormats = C.value, In(p, u, I);
|
|
2136
2136
|
}
|
|
2137
2137
|
function s(u, I) {
|
|
2138
|
-
C.value[u] = ge(C.value[u] || {}, I),
|
|
2138
|
+
C.value[u] = ge(C.value[u] || {}, I), p.datetimeFormats = C.value, In(p, u, I);
|
|
2139
2139
|
}
|
|
2140
2140
|
function c(u) {
|
|
2141
2141
|
return O.value[u] || {};
|
|
2142
2142
|
}
|
|
2143
|
-
function
|
|
2144
|
-
O.value[u] = I,
|
|
2143
|
+
function b(u, I) {
|
|
2144
|
+
O.value[u] = I, p.numberFormats = O.value, Cn(p, u, I);
|
|
2145
2145
|
}
|
|
2146
2146
|
function D(u, I) {
|
|
2147
|
-
O.value[u] = ge(O.value[u] || {}, I),
|
|
2147
|
+
O.value[u] = ge(O.value[u] || {}, I), p.numberFormats = O.value, Cn(p, u, I);
|
|
2148
2148
|
}
|
|
2149
2149
|
An++, t && an && (wt(t.locale, (u) => {
|
|
2150
|
-
f && (d.value = u,
|
|
2150
|
+
f && (d.value = u, p.locale = u, it(p, d.value, i.value));
|
|
2151
2151
|
}), wt(t.fallbackLocale, (u) => {
|
|
2152
|
-
f && (i.value = u,
|
|
2152
|
+
f && (i.value = u, p.fallbackLocale = u, it(p, d.value, i.value));
|
|
2153
2153
|
}));
|
|
2154
|
-
const
|
|
2154
|
+
const V = {
|
|
2155
2155
|
id: An,
|
|
2156
2156
|
locale: H,
|
|
2157
2157
|
fallbackLocale: x,
|
|
@@ -2159,7 +2159,7 @@ function Sa(e = {}) {
|
|
|
2159
2159
|
return f;
|
|
2160
2160
|
},
|
|
2161
2161
|
set inheritLocale(u) {
|
|
2162
|
-
f = u, u && t && (d.value = t.locale.value, i.value = t.fallbackLocale.value, it(
|
|
2162
|
+
f = u, u && t && (d.value = t.locale.value, i.value = t.fallbackLocale.value, it(p, d.value, i.value));
|
|
2163
2163
|
},
|
|
2164
2164
|
get availableLocales() {
|
|
2165
2165
|
return Object.keys(g.value).sort();
|
|
@@ -2178,13 +2178,13 @@ function Sa(e = {}) {
|
|
|
2178
2178
|
return N;
|
|
2179
2179
|
},
|
|
2180
2180
|
set missingWarn(u) {
|
|
2181
|
-
N = u,
|
|
2181
|
+
N = u, p.missingWarn = N;
|
|
2182
2182
|
},
|
|
2183
2183
|
get fallbackWarn() {
|
|
2184
2184
|
return w;
|
|
2185
2185
|
},
|
|
2186
2186
|
set fallbackWarn(u) {
|
|
2187
|
-
w = u,
|
|
2187
|
+
w = u, p.fallbackWarn = w;
|
|
2188
2188
|
},
|
|
2189
2189
|
get fallbackRoot() {
|
|
2190
2190
|
return R;
|
|
@@ -2196,31 +2196,31 @@ function Sa(e = {}) {
|
|
|
2196
2196
|
return k;
|
|
2197
2197
|
},
|
|
2198
2198
|
set fallbackFormat(u) {
|
|
2199
|
-
k = u,
|
|
2199
|
+
k = u, p.fallbackFormat = k;
|
|
2200
2200
|
},
|
|
2201
2201
|
get warnHtmlMessage() {
|
|
2202
2202
|
return S;
|
|
2203
2203
|
},
|
|
2204
2204
|
set warnHtmlMessage(u) {
|
|
2205
|
-
S = u,
|
|
2205
|
+
S = u, p.warnHtmlMessage = u;
|
|
2206
2206
|
},
|
|
2207
2207
|
get escapeParameter() {
|
|
2208
2208
|
return m;
|
|
2209
2209
|
},
|
|
2210
2210
|
set escapeParameter(u) {
|
|
2211
|
-
m = u,
|
|
2211
|
+
m = u, p.escapeParameter = u;
|
|
2212
2212
|
},
|
|
2213
|
-
t:
|
|
2213
|
+
t: X,
|
|
2214
2214
|
getLocaleMessage: Fe,
|
|
2215
2215
|
setLocaleMessage: Pe,
|
|
2216
2216
|
mergeLocaleMessage: Ge,
|
|
2217
2217
|
getPostTranslationHandler: P,
|
|
2218
2218
|
setPostTranslationHandler: F,
|
|
2219
2219
|
getMissingHandler: W,
|
|
2220
|
-
setMissingHandler:
|
|
2220
|
+
setMissingHandler: U,
|
|
2221
2221
|
[Ca]: fe
|
|
2222
2222
|
};
|
|
2223
|
-
return
|
|
2223
|
+
return V.datetimeFormats = T, V.numberFormats = j, V.rt = te, V.te = Je, V.tm = We, V.d = Q, V.n = de, V.getDateTimeFormat = je, V.setDateTimeFormat = o, V.mergeDateTimeFormat = s, V.getNumberFormat = c, V.setNumberFormat = b, V.mergeNumberFormat = D, V[sr] = n, V[xt] = oe, V[Wt] = B, V[Gt] = Re, V;
|
|
2224
2224
|
}
|
|
2225
2225
|
const qt = {
|
|
2226
2226
|
tag: {
|
|
@@ -2250,7 +2250,7 @@ function La({ slots: e }, t) {
|
|
|
2250
2250
|
return a && (n[r] = a()), n;
|
|
2251
2251
|
}, se());
|
|
2252
2252
|
}
|
|
2253
|
-
function
|
|
2253
|
+
function or() {
|
|
2254
2254
|
return we;
|
|
2255
2255
|
}
|
|
2256
2256
|
ge({
|
|
@@ -2260,25 +2260,25 @@ ge({
|
|
|
2260
2260
|
},
|
|
2261
2261
|
plural: {
|
|
2262
2262
|
type: [Number, String],
|
|
2263
|
-
validator: (e) =>
|
|
2263
|
+
validator: (e) => be(e) || !isNaN(e)
|
|
2264
2264
|
}
|
|
2265
2265
|
}, qt);
|
|
2266
2266
|
function ka(e) {
|
|
2267
|
-
return
|
|
2267
|
+
return ve(e) && !G(e[0]);
|
|
2268
2268
|
}
|
|
2269
2269
|
function ir(e, t, n, r) {
|
|
2270
|
-
const { slots: a, attrs:
|
|
2270
|
+
const { slots: a, attrs: l } = t;
|
|
2271
2271
|
return () => {
|
|
2272
2272
|
const f = { part: !0 };
|
|
2273
2273
|
let d = se();
|
|
2274
2274
|
e.locale && (f.locale = e.locale), G(e.format) ? f.key = e.format : ee(e.format) && (G(e.format.key) && (f.key = e.format.key), d = Object.keys(e.format).reduce((N, w) => n.includes(w) ? ge(se(), N, { [w]: e.format[w] }) : N, se()));
|
|
2275
2275
|
const i = r(e.value, f, d);
|
|
2276
2276
|
let g = [f.key];
|
|
2277
|
-
|
|
2277
|
+
ve(i) ? g = i.map((N, w) => {
|
|
2278
2278
|
const R = a[N.type], k = R ? R({ [N.type]: N.value, index: w, parts: i }) : [N.value];
|
|
2279
2279
|
return ka(k) && (k[0].key = `${N.type}-${w}`), k;
|
|
2280
2280
|
}) : G(i) && (g = [i]);
|
|
2281
|
-
const C = ge(se(),
|
|
2281
|
+
const C = ge(se(), l), O = G(e.tag) || ee(e.tag) ? e.tag : or();
|
|
2282
2282
|
return Wn(O, C, g);
|
|
2283
2283
|
};
|
|
2284
2284
|
}
|
|
@@ -2302,15 +2302,15 @@ ge({
|
|
|
2302
2302
|
}, qt);
|
|
2303
2303
|
const Aa = /* @__PURE__ */ ze("global-vue-i18n");
|
|
2304
2304
|
function St(e = {}) {
|
|
2305
|
-
const t =
|
|
2305
|
+
const t = Xt();
|
|
2306
2306
|
if (t == null)
|
|
2307
|
-
throw mt(
|
|
2307
|
+
throw mt(ot.MUST_BE_CALL_SETUP_TOP);
|
|
2308
2308
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2309
|
-
throw mt(
|
|
2310
|
-
const n = Ra(t), r = wa(n), a =
|
|
2311
|
-
if (
|
|
2309
|
+
throw mt(ot.NOT_INSTALLED);
|
|
2310
|
+
const n = Ra(t), r = wa(n), a = lr(t), l = Ma(e, a);
|
|
2311
|
+
if (l === "global")
|
|
2312
2312
|
return Na(r, e, a), r;
|
|
2313
|
-
if (
|
|
2313
|
+
if (l === "parent") {
|
|
2314
2314
|
let i = Da(n, t, e.__useComponent);
|
|
2315
2315
|
return i == null && (i = r), i;
|
|
2316
2316
|
}
|
|
@@ -2325,7 +2325,7 @@ function St(e = {}) {
|
|
|
2325
2325
|
function Ra(e) {
|
|
2326
2326
|
const t = mr(e.isCE ? Aa : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2327
2327
|
if (!t)
|
|
2328
|
-
throw mt(e.isCE ?
|
|
2328
|
+
throw mt(e.isCE ? ot.NOT_INSTALLED_WITH_PROVIDE : ot.UNEXPECTED_ERROR);
|
|
2329
2329
|
return t;
|
|
2330
2330
|
}
|
|
2331
2331
|
function Ma(e, t) {
|
|
@@ -2337,18 +2337,18 @@ function wa(e) {
|
|
|
2337
2337
|
function Da(e, t, n = !1) {
|
|
2338
2338
|
let r = null;
|
|
2339
2339
|
const a = t.root;
|
|
2340
|
-
let
|
|
2341
|
-
for (;
|
|
2340
|
+
let l = Fa(t, n);
|
|
2341
|
+
for (; l != null; ) {
|
|
2342
2342
|
const f = e;
|
|
2343
2343
|
if (e.mode === "composition")
|
|
2344
|
-
r = f.__getInstance(
|
|
2344
|
+
r = f.__getInstance(l);
|
|
2345
2345
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
2346
|
-
const d = f.__getInstance(
|
|
2346
|
+
const d = f.__getInstance(l);
|
|
2347
2347
|
d != null && (r = d.__composer, n && r && !r[sr] && (r = null));
|
|
2348
2348
|
}
|
|
2349
|
-
if (r != null || a ===
|
|
2349
|
+
if (r != null || a === l)
|
|
2350
2350
|
break;
|
|
2351
|
-
|
|
2351
|
+
l = l.parent;
|
|
2352
2352
|
}
|
|
2353
2353
|
return r;
|
|
2354
2354
|
}
|
|
@@ -2372,7 +2372,7 @@ if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
|
2372
2372
|
const e = $e();
|
|
2373
2373
|
e.__INTLIFY__ = !0, Fs(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2374
2374
|
}
|
|
2375
|
-
const
|
|
2375
|
+
const pt = /* @__PURE__ */ Ae({
|
|
2376
2376
|
__name: "InheritPermissionTooltip",
|
|
2377
2377
|
props: {
|
|
2378
2378
|
item: {
|
|
@@ -2383,20 +2383,20 @@ const vt = /* @__PURE__ */ Ae({
|
|
|
2383
2383
|
setup(e) {
|
|
2384
2384
|
const { t } = St();
|
|
2385
2385
|
return (n, r) => {
|
|
2386
|
-
const a = De("FmIcon"),
|
|
2387
|
-
return J(), Te(
|
|
2386
|
+
const a = De("FmIcon"), l = De("FmTooltip");
|
|
2387
|
+
return J(), Te(l, {
|
|
2388
2388
|
variant: "plain",
|
|
2389
2389
|
placement: "right",
|
|
2390
2390
|
"z-index": 50
|
|
2391
2391
|
}, {
|
|
2392
2392
|
content: ce(() => [
|
|
2393
|
-
ie("div", null, Se(
|
|
2393
|
+
ie("div", null, Se(Y(t)("team.memberForm.permissions.inherited")), 1),
|
|
2394
2394
|
(J(!0), re(we, null, Ce(e.item.setNames, (f) => (J(), re("div", { key: f }, [
|
|
2395
2395
|
ie("div", null, "- " + Se(f), 1)
|
|
2396
2396
|
]))), 128))
|
|
2397
2397
|
]),
|
|
2398
2398
|
default: ce(() => [
|
|
2399
|
-
|
|
2399
|
+
le(a, {
|
|
2400
2400
|
name: "admin_panel_settings",
|
|
2401
2401
|
size: "sm",
|
|
2402
2402
|
class: "ml-1 text-fm-color-typo-info"
|
|
@@ -2412,13 +2412,13 @@ function Mn(e, t, n) {
|
|
|
2412
2412
|
if (r.length === 0) return;
|
|
2413
2413
|
const a = e.findIndex((d) => d.subject === t && !d.inverted);
|
|
2414
2414
|
if (a < 0) return;
|
|
2415
|
-
const
|
|
2416
|
-
f && !
|
|
2415
|
+
const l = new Set(e[a].actions), f = r.every((d) => l.has(d));
|
|
2416
|
+
f && !l.has("manage") ? (l.add("manage"), e[a] = {
|
|
2417
2417
|
...e[a],
|
|
2418
|
-
actions: Array.from(
|
|
2419
|
-
}) : !f &&
|
|
2418
|
+
actions: Array.from(l)
|
|
2419
|
+
}) : !f && l.has("manage") && (l.delete("manage"), l.size === 0 ? e.splice(a, 1) : e[a] = {
|
|
2420
2420
|
...e[a],
|
|
2421
|
-
actions: Array.from(
|
|
2421
|
+
actions: Array.from(l)
|
|
2422
2422
|
});
|
|
2423
2423
|
}
|
|
2424
2424
|
const wn = Object.values(Lr), ja = {
|
|
@@ -2426,76 +2426,76 @@ const wn = Object.values(Lr), ja = {
|
|
|
2426
2426
|
create: "Duplicate",
|
|
2427
2427
|
update: "Edit"
|
|
2428
2428
|
};
|
|
2429
|
-
function
|
|
2430
|
-
const { t: a } = Ke(), { getFlagValue:
|
|
2429
|
+
function Ua(e, t, n, r) {
|
|
2430
|
+
const { t: a } = Ke(), { getFlagValue: l, getFlag: f } = Sr(), d = z(() => {
|
|
2431
2431
|
var F;
|
|
2432
2432
|
const _ = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map();
|
|
2433
2433
|
for (const W of t.value) {
|
|
2434
|
-
const
|
|
2435
|
-
if (!
|
|
2434
|
+
const U = W.category;
|
|
2435
|
+
if (!U) continue;
|
|
2436
2436
|
const Z = W.subject;
|
|
2437
|
-
if (n.value.includes(W.subject) || W.showByFeatureFlag && ((F = f(W.showByFeatureFlag)) == null ? void 0 : F.enabled) === !1 &&
|
|
2437
|
+
if (n.value.includes(W.subject) || W.showByFeatureFlag && ((F = f(W.showByFeatureFlag)) == null ? void 0 : F.enabled) === !1 && l(W.showByFeatureFlag) === "true")
|
|
2438
2438
|
continue;
|
|
2439
|
-
_.has(
|
|
2440
|
-
const
|
|
2441
|
-
j.set(Z,
|
|
2439
|
+
_.has(U) || _.set(U, []);
|
|
2440
|
+
const X = j.get(Z) ?? 0;
|
|
2441
|
+
j.set(Z, X + 1), _.get(U).push({
|
|
2442
2442
|
label: a(`permissionSet.permissionLabels.${Z}`, W.label),
|
|
2443
2443
|
value: Z,
|
|
2444
|
-
optionKey: `${Z}::${
|
|
2444
|
+
optionKey: `${Z}::${X}`
|
|
2445
2445
|
}), T.has(Z) || T.set(Z, W);
|
|
2446
2446
|
}
|
|
2447
|
-
return [..._.keys()].sort((W,
|
|
2448
|
-
const Z = wn.indexOf(W),
|
|
2449
|
-
return Z === -1 &&
|
|
2447
|
+
return [..._.keys()].sort((W, U) => {
|
|
2448
|
+
const Z = wn.indexOf(W), X = wn.indexOf(U);
|
|
2449
|
+
return Z === -1 && X === -1 ? W.localeCompare(U) : Z === -1 ? 1 : X === -1 ? -1 : Z - X;
|
|
2450
2450
|
}).map((W) => {
|
|
2451
|
-
const
|
|
2452
|
-
for (const
|
|
2453
|
-
const fe = T.get(
|
|
2454
|
-
fe &&
|
|
2451
|
+
const U = _.get(W), Z = a(`permissionSet.categoryLabels.${W}`, W), X = /* @__PURE__ */ new Map();
|
|
2452
|
+
for (const B of U) {
|
|
2453
|
+
const fe = T.get(B.value);
|
|
2454
|
+
fe && X.set(B.value, fe.actions);
|
|
2455
2455
|
}
|
|
2456
|
-
const te =
|
|
2457
|
-
const fe =
|
|
2456
|
+
const te = U.some((B) => {
|
|
2457
|
+
const fe = X.get(B.value);
|
|
2458
2458
|
return fe && fe.length > 1;
|
|
2459
2459
|
}), Q = te ? [
|
|
2460
2460
|
...new Set(
|
|
2461
|
-
|
|
2461
|
+
U.flatMap((B) => X.get(B.value) ?? []).filter((B) => B !== "manage")
|
|
2462
2462
|
)
|
|
2463
2463
|
] : [], de = /* @__PURE__ */ new Map();
|
|
2464
|
-
for (const
|
|
2465
|
-
|
|
2466
|
-
const
|
|
2467
|
-
(
|
|
2468
|
-
).map((
|
|
2464
|
+
for (const B of e.value)
|
|
2465
|
+
U.some((fe) => fe.value === B.subject) && !B.inverted && de.set(B.subject, new Set(B.actions));
|
|
2466
|
+
const pe = te ? e.value.filter(
|
|
2467
|
+
(B) => U.some((fe) => fe.value === B.subject) && !B.inverted && B.actions.includes("manage")
|
|
2468
|
+
).map((B) => B.subject) : e.value.filter((B) => U.some((fe) => fe.value === B.subject) && !B.inverted).map((B) => B.subject), he = U.find((B) => {
|
|
2469
2469
|
var fe;
|
|
2470
|
-
return (fe = T.get(
|
|
2471
|
-
}), ae = (
|
|
2470
|
+
return (fe = T.get(B.value)) == null ? void 0 : fe.isCategoryCover;
|
|
2471
|
+
}), ae = (he == null ? void 0 : he.value) ?? null, oe = ae ? de.get(ae) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), Re = oe.has("manage");
|
|
2472
2472
|
return {
|
|
2473
2473
|
category: W,
|
|
2474
2474
|
label: Z,
|
|
2475
|
-
options:
|
|
2476
|
-
selectedSubjects:
|
|
2475
|
+
options: U,
|
|
2476
|
+
selectedSubjects: pe,
|
|
2477
2477
|
isMultiAction: te,
|
|
2478
2478
|
actionColumns: Q,
|
|
2479
|
-
permissionActionsMap:
|
|
2479
|
+
permissionActionsMap: X,
|
|
2480
2480
|
selectedActionsMap: de,
|
|
2481
2481
|
coverSubject: ae,
|
|
2482
|
-
coverSelectedActions:
|
|
2482
|
+
coverSelectedActions: oe,
|
|
2483
2483
|
coverCoversAll: Re
|
|
2484
2484
|
};
|
|
2485
2485
|
});
|
|
2486
2486
|
});
|
|
2487
2487
|
function i(_, T) {
|
|
2488
|
-
const j = d.value.find((Q) => Q.category === _), P = (j == null ? void 0 : j.options) ?? [], F = new Set(P.map((Q) => Q.value)), W = new Set(T),
|
|
2488
|
+
const j = d.value.find((Q) => Q.category === _), P = (j == null ? void 0 : j.options) ?? [], F = new Set(P.map((Q) => Q.value)), W = new Set(T), U = /* @__PURE__ */ new Map();
|
|
2489
2489
|
for (const Q of e.value)
|
|
2490
|
-
F.has(Q.subject) && !Q.inverted &&
|
|
2491
|
-
const Z = j != null && j.coverSubject ?
|
|
2492
|
-
({ category: Q, showByFeatureFlag: de, isCategoryCover:
|
|
2493
|
-
const ae =
|
|
2494
|
-
if (!W.has(ae) ||
|
|
2495
|
-
|
|
2496
|
-
let
|
|
2497
|
-
return
|
|
2498
|
-
{ ...
|
|
2490
|
+
F.has(Q.subject) && !Q.inverted && U.set(Q.subject, Q.conditions);
|
|
2491
|
+
const Z = j != null && j.coverSubject ? U.get(j.coverSubject) : void 0, X = /* @__PURE__ */ new Set(), te = t.value.flatMap(
|
|
2492
|
+
({ category: Q, showByFeatureFlag: de, isCategoryCover: pe, ...he }) => {
|
|
2493
|
+
const ae = he.subject;
|
|
2494
|
+
if (!W.has(ae) || X.has(ae)) return [];
|
|
2495
|
+
X.add(ae);
|
|
2496
|
+
let oe;
|
|
2497
|
+
return U.has(ae) ? oe = U.get(ae) : j != null && j.coverSubject && ae !== j.coverSubject && (oe = Z), [
|
|
2498
|
+
{ ...he, ...oe !== void 0 && { conditions: oe } }
|
|
2499
2499
|
];
|
|
2500
2500
|
}
|
|
2501
2501
|
);
|
|
@@ -2523,18 +2523,18 @@ function Va(e, t, n, r) {
|
|
|
2523
2523
|
const P = /* @__PURE__ */ new Map();
|
|
2524
2524
|
for (const Z of e.value)
|
|
2525
2525
|
T.has(Z.subject) && !Z.inverted && P.set(Z.subject, Z.conditions);
|
|
2526
|
-
const F = _.coverSubject ? P.get(_.coverSubject) : void 0, W = /* @__PURE__ */ new Set(),
|
|
2527
|
-
({ category: Z, showByFeatureFlag:
|
|
2526
|
+
const F = _.coverSubject ? P.get(_.coverSubject) : void 0, W = /* @__PURE__ */ new Set(), U = t.value.flatMap(
|
|
2527
|
+
({ category: Z, showByFeatureFlag: X, isCategoryCover: te, ...Q }) => {
|
|
2528
2528
|
const de = Q.subject;
|
|
2529
2529
|
if (!T.has(de) || W.has(de)) return [];
|
|
2530
2530
|
W.add(de);
|
|
2531
|
-
let
|
|
2532
|
-
return P.has(de) ?
|
|
2533
|
-
{ ...Q, ...
|
|
2531
|
+
let pe;
|
|
2532
|
+
return P.has(de) ? pe = P.get(de) : _.coverSubject && de !== _.coverSubject && (pe = F), [
|
|
2533
|
+
{ ...Q, ...pe !== void 0 && { conditions: pe } }
|
|
2534
2534
|
];
|
|
2535
2535
|
}
|
|
2536
2536
|
);
|
|
2537
|
-
r("update:model-value", [...j, ...
|
|
2537
|
+
r("update:model-value", [...j, ...U]);
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
2540
|
function w(_, T) {
|
|
@@ -2557,19 +2557,19 @@ function Va(e, t, n, r) {
|
|
|
2557
2557
|
);
|
|
2558
2558
|
return (j == null ? void 0 : j.conditions) || void 0;
|
|
2559
2559
|
}
|
|
2560
|
-
function
|
|
2560
|
+
function v(_, T, j) {
|
|
2561
2561
|
if (j) {
|
|
2562
2562
|
const P = t.value.find((Q) => Q.subject === T);
|
|
2563
2563
|
if (!P) return;
|
|
2564
2564
|
const {
|
|
2565
2565
|
category: F,
|
|
2566
2566
|
showByFeatureFlag: W,
|
|
2567
|
-
isCategoryCover:
|
|
2567
|
+
isCategoryCover: U,
|
|
2568
2568
|
...Z
|
|
2569
|
-
} = P,
|
|
2569
|
+
} = P, X = M(_, T), te = e.value.filter((Q) => Q.subject !== T);
|
|
2570
2570
|
te.push({
|
|
2571
2571
|
...Z,
|
|
2572
|
-
...
|
|
2572
|
+
...X !== void 0 && { conditions: X }
|
|
2573
2573
|
}), r("update:model-value", te);
|
|
2574
2574
|
} else
|
|
2575
2575
|
r(
|
|
@@ -2577,7 +2577,7 @@ function Va(e, t, n, r) {
|
|
|
2577
2577
|
e.value.filter((P) => P.subject !== T)
|
|
2578
2578
|
);
|
|
2579
2579
|
}
|
|
2580
|
-
function
|
|
2580
|
+
function h(_, T) {
|
|
2581
2581
|
const j = _.permissionActionsMap.get(T);
|
|
2582
2582
|
return j ? j.some((P) => P !== "manage") : !1;
|
|
2583
2583
|
}
|
|
@@ -2595,34 +2595,34 @@ function Va(e, t, n, r) {
|
|
|
2595
2595
|
const P = _.permissionActionsMap.get(T);
|
|
2596
2596
|
return P ? P.includes(j) : !1;
|
|
2597
2597
|
}
|
|
2598
|
-
function
|
|
2599
|
-
const P = [...e.value], F = P.findIndex((
|
|
2598
|
+
function p(_, T, j) {
|
|
2599
|
+
const P = [...e.value], F = P.findIndex((U) => U.subject === _ && !U.inverted);
|
|
2600
2600
|
if (j)
|
|
2601
2601
|
if (F >= 0) {
|
|
2602
|
-
const
|
|
2603
|
-
Z.add(T),
|
|
2602
|
+
const U = { ...P[F] }, Z = new Set(U.actions);
|
|
2603
|
+
Z.add(T), U.actions = Array.from(Z), P[F] = U;
|
|
2604
2604
|
} else {
|
|
2605
|
-
const
|
|
2606
|
-
if (!
|
|
2605
|
+
const U = t.value.find((he) => he.subject === _);
|
|
2606
|
+
if (!U) return;
|
|
2607
2607
|
const {
|
|
2608
2608
|
category: Z,
|
|
2609
|
-
showByFeatureFlag:
|
|
2609
|
+
showByFeatureFlag: X,
|
|
2610
2610
|
isCategoryCover: te,
|
|
2611
2611
|
...Q
|
|
2612
|
-
} =
|
|
2613
|
-
(
|
|
2614
|
-
),
|
|
2612
|
+
} = U, de = d.value.find(
|
|
2613
|
+
(he) => he.options.some((ae) => ae.value === _)
|
|
2614
|
+
), pe = de ? M(de, _) : void 0;
|
|
2615
2615
|
P.push({
|
|
2616
2616
|
...Q,
|
|
2617
2617
|
actions: [T],
|
|
2618
|
-
...
|
|
2618
|
+
...pe !== void 0 && { conditions: pe }
|
|
2619
2619
|
});
|
|
2620
2620
|
}
|
|
2621
2621
|
else if (F >= 0) {
|
|
2622
|
-
const
|
|
2623
|
-
Z.length === 0 ? P.splice(F, 1) : (
|
|
2622
|
+
const U = { ...P[F] }, Z = U.actions.filter((X) => X !== T);
|
|
2623
|
+
Z.length === 0 ? P.splice(F, 1) : (U.actions = Z, P[F] = U);
|
|
2624
2624
|
}
|
|
2625
|
-
const W = t.value.find((
|
|
2625
|
+
const W = t.value.find((U) => U.subject === _);
|
|
2626
2626
|
W && Mn(P, _, W.actions), r("update:model-value", P);
|
|
2627
2627
|
}
|
|
2628
2628
|
function A(_, T) {
|
|
@@ -2647,33 +2647,33 @@ function Va(e, t, n, r) {
|
|
|
2647
2647
|
const P = [...e.value];
|
|
2648
2648
|
for (const F of _.options) {
|
|
2649
2649
|
if (!E(_, F.value, T)) continue;
|
|
2650
|
-
const W = F.value,
|
|
2651
|
-
(
|
|
2650
|
+
const W = F.value, U = P.findIndex(
|
|
2651
|
+
(X) => X.subject === W && !X.inverted
|
|
2652
2652
|
);
|
|
2653
2653
|
if (j)
|
|
2654
|
-
if (
|
|
2655
|
-
const
|
|
2656
|
-
te.add(T),
|
|
2654
|
+
if (U >= 0) {
|
|
2655
|
+
const X = { ...P[U] }, te = new Set(X.actions);
|
|
2656
|
+
te.add(T), X.actions = Array.from(te), P[U] = X;
|
|
2657
2657
|
} else {
|
|
2658
|
-
const
|
|
2659
|
-
if (!
|
|
2658
|
+
const X = t.value.find((ae) => ae.subject === W);
|
|
2659
|
+
if (!X) continue;
|
|
2660
2660
|
const {
|
|
2661
2661
|
category: te,
|
|
2662
2662
|
showByFeatureFlag: Q,
|
|
2663
2663
|
isCategoryCover: de,
|
|
2664
|
-
...
|
|
2665
|
-
} =
|
|
2664
|
+
...pe
|
|
2665
|
+
} = X, he = M(_, W);
|
|
2666
2666
|
P.push({
|
|
2667
|
-
...
|
|
2667
|
+
...pe,
|
|
2668
2668
|
actions: [T],
|
|
2669
|
-
...
|
|
2669
|
+
...he !== void 0 && { conditions: he }
|
|
2670
2670
|
});
|
|
2671
2671
|
}
|
|
2672
|
-
else if (
|
|
2673
|
-
const
|
|
2674
|
-
te.length === 0 ? P.splice(
|
|
2672
|
+
else if (U >= 0) {
|
|
2673
|
+
const X = { ...P[U] }, te = X.actions.filter((Q) => Q !== T);
|
|
2674
|
+
te.length === 0 ? P.splice(U, 1) : (X.actions = te, P[U] = X);
|
|
2675
2675
|
}
|
|
2676
|
-
const Z = t.value.find((
|
|
2676
|
+
const Z = t.value.find((X) => X.subject === W);
|
|
2677
2677
|
Z && Mn(P, W, Z.actions);
|
|
2678
2678
|
}
|
|
2679
2679
|
r("update:model-value", P);
|
|
@@ -2690,20 +2690,20 @@ function Va(e, t, n, r) {
|
|
|
2690
2690
|
toggleAllManage: N,
|
|
2691
2691
|
isManageChecked: w,
|
|
2692
2692
|
isManageIndeterminate: k,
|
|
2693
|
-
toggleManage:
|
|
2694
|
-
hasNonManageActions:
|
|
2693
|
+
toggleManage: v,
|
|
2694
|
+
hasNonManageActions: h,
|
|
2695
2695
|
isActionChecked: S,
|
|
2696
2696
|
isRowFullyCoveredByCover: m,
|
|
2697
2697
|
isActionCoveredByCover: y,
|
|
2698
2698
|
permissionDefinesAction: E,
|
|
2699
|
-
toggleAction:
|
|
2699
|
+
toggleAction: p,
|
|
2700
2700
|
isAllActionChecked: A,
|
|
2701
2701
|
isAllActionIndeterminate: L,
|
|
2702
2702
|
toggleAllAction: H,
|
|
2703
2703
|
actionLabel: x
|
|
2704
2704
|
};
|
|
2705
2705
|
}
|
|
2706
|
-
const
|
|
2706
|
+
const Va = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Ga = ["onClick"], Za = { class: "flex justify-center" }, Ba = { class: "flex items-center min-w-0 gap-8" }, Xa = ["title", "onClick"], Ya = { class: "flex justify-center" }, Ha = /* @__PURE__ */ Ae({
|
|
2707
2707
|
__name: "BasePermission",
|
|
2708
2708
|
props: {
|
|
2709
2709
|
modelValue: {
|
|
@@ -2730,7 +2730,7 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { cl
|
|
|
2730
2730
|
},
|
|
2731
2731
|
emits: ["update:model-value"],
|
|
2732
2732
|
setup(e, { emit: t }) {
|
|
2733
|
-
const n = e, r = t, { t: a } = Ke(),
|
|
2733
|
+
const n = e, r = t, { t: a } = Ke(), l = z(() => [...Gn, ...n.additionalPermissions]), {
|
|
2734
2734
|
categoryGroups: f,
|
|
2735
2735
|
isAllManageChecked: d,
|
|
2736
2736
|
isAllManageIndeterminate: i,
|
|
@@ -2742,14 +2742,14 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { cl
|
|
|
2742
2742
|
isRowFullyCoveredByCover: R,
|
|
2743
2743
|
isActionCoveredByCover: k,
|
|
2744
2744
|
permissionDefinesAction: M,
|
|
2745
|
-
toggleAction:
|
|
2746
|
-
isAllActionChecked:
|
|
2745
|
+
toggleAction: v,
|
|
2746
|
+
isAllActionChecked: h,
|
|
2747
2747
|
isAllActionIndeterminate: S,
|
|
2748
2748
|
toggleAllAction: m,
|
|
2749
2749
|
actionLabel: y
|
|
2750
|
-
} =
|
|
2750
|
+
} = Ua(
|
|
2751
2751
|
en(n, "modelValue"),
|
|
2752
|
-
|
|
2752
|
+
l,
|
|
2753
2753
|
en(n, "excludedSubjects"),
|
|
2754
2754
|
(A, L) => r("update:model-value", L)
|
|
2755
2755
|
);
|
|
@@ -2757,15 +2757,15 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { cl
|
|
|
2757
2757
|
const L = A.selectedSubjects.length;
|
|
2758
2758
|
return L === 0 && n.layout !== "leading" ? "" : a("team.memberForm.permissions.allowedCount", { count: L });
|
|
2759
2759
|
}
|
|
2760
|
-
function
|
|
2760
|
+
function p(A, L) {
|
|
2761
2761
|
return C(A, L) || R(A, L) ? !0 : A.actionColumns.some(
|
|
2762
2762
|
(H) => M(A, L, H) && (w(A, L, H) || k(A, L, H))
|
|
2763
2763
|
);
|
|
2764
2764
|
}
|
|
2765
2765
|
return (A, L) => {
|
|
2766
2766
|
const H = De("FmCheckbox");
|
|
2767
|
-
return J(), re("div",
|
|
2768
|
-
(J(!0), re(we, null, Ce(
|
|
2767
|
+
return J(), re("div", Va, [
|
|
2768
|
+
(J(!0), re(we, null, Ce(Y(f), (x) => (J(), Te(Yt, {
|
|
2769
2769
|
key: x.category,
|
|
2770
2770
|
subtitle: E(x),
|
|
2771
2771
|
layout: e.layout,
|
|
@@ -2785,11 +2785,11 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { cl
|
|
|
2785
2785
|
})
|
|
2786
2786
|
}, [
|
|
2787
2787
|
L[0] || (L[0] = ie("div", null, null, -1)),
|
|
2788
|
-
ie("div", Wa, Se(
|
|
2788
|
+
ie("div", Wa, Se(Y(a)("team.memberForm.permissions.columnManage")), 1),
|
|
2789
2789
|
(J(!0), re(we, null, Ce(x.actionColumns, (_) => (J(), re("div", {
|
|
2790
2790
|
key: `header-${_}`,
|
|
2791
2791
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2792
|
-
}, Se(
|
|
2792
|
+
}, Se(Y(y)(_)), 1))), 128))
|
|
2793
2793
|
], 4),
|
|
2794
2794
|
ie("div", {
|
|
2795
2795
|
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
@@ -2799,31 +2799,31 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { cl
|
|
|
2799
2799
|
}, [
|
|
2800
2800
|
ie("div", {
|
|
2801
2801
|
class: "cursor-pointer font-semibold",
|
|
2802
|
-
onClick: (_) => !e.disable &&
|
|
2803
|
-
}, Se(
|
|
2802
|
+
onClick: (_) => !e.disable && Y(g)(x)
|
|
2803
|
+
}, Se(Y(a)("team.labels.all")), 9, Ga),
|
|
2804
2804
|
ie("div", Za, [
|
|
2805
|
-
|
|
2806
|
-
"model-value":
|
|
2807
|
-
indeterminate:
|
|
2805
|
+
le(H, {
|
|
2806
|
+
"model-value": Y(d)(x),
|
|
2807
|
+
indeterminate: Y(i)(x),
|
|
2808
2808
|
value: !0,
|
|
2809
2809
|
disabled: e.disable,
|
|
2810
2810
|
size: "sm",
|
|
2811
2811
|
dense: "",
|
|
2812
|
-
"onUpdate:modelValue": (_) =>
|
|
2812
|
+
"onUpdate:modelValue": (_) => Y(g)(x)
|
|
2813
2813
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2814
2814
|
]),
|
|
2815
2815
|
(J(!0), re(we, null, Ce(x.actionColumns, (_) => (J(), re("div", {
|
|
2816
2816
|
key: `all-${_}`,
|
|
2817
2817
|
class: "flex justify-center"
|
|
2818
2818
|
}, [
|
|
2819
|
-
|
|
2820
|
-
"model-value":
|
|
2821
|
-
indeterminate:
|
|
2819
|
+
le(H, {
|
|
2820
|
+
"model-value": Y(h)(x, _),
|
|
2821
|
+
indeterminate: Y(S)(x, _),
|
|
2822
2822
|
value: _,
|
|
2823
2823
|
disabled: e.disable,
|
|
2824
2824
|
size: "sm",
|
|
2825
2825
|
dense: "",
|
|
2826
|
-
"onUpdate:modelValue": (T) =>
|
|
2826
|
+
"onUpdate:modelValue": (T) => Y(m)(x, _, T)
|
|
2827
2827
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2828
2828
|
]))), 128))
|
|
2829
2829
|
], 4),
|
|
@@ -2835,44 +2835,44 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { cl
|
|
|
2835
2835
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2836
2836
|
})
|
|
2837
2837
|
}, [
|
|
2838
|
-
ie("div",
|
|
2838
|
+
ie("div", Ba, [
|
|
2839
2839
|
ie("span", {
|
|
2840
2840
|
class: "block truncate cursor-pointer",
|
|
2841
2841
|
title: _.label,
|
|
2842
|
-
onClick: (T) => !e.disable && !
|
|
2843
|
-
}, Se(_.label), 9,
|
|
2842
|
+
onClick: (T) => !e.disable && !Y(R)(x, _.value) && Y(N)(x, _.value, !Y(C)(x, _.value))
|
|
2843
|
+
}, Se(_.label), 9, Xa),
|
|
2844
2844
|
Le(A.$slots, `checkbox-${_.value}-append`, {
|
|
2845
2845
|
option: _,
|
|
2846
|
-
isEffectiveSelected:
|
|
2847
|
-
isCoveredByCover:
|
|
2846
|
+
isEffectiveSelected: p(x, _.value),
|
|
2847
|
+
isCoveredByCover: Y(R)(x, _.value) || x.actionColumns.some((T) => Y(k)(x, _.value, T))
|
|
2848
2848
|
}),
|
|
2849
2849
|
Le(A.$slots, `checkbox-${_.value}-icon`, {
|
|
2850
2850
|
option: _,
|
|
2851
|
-
isEffectiveSelected:
|
|
2852
|
-
isCoveredByCover:
|
|
2851
|
+
isEffectiveSelected: p(x, _.value),
|
|
2852
|
+
isCoveredByCover: Y(R)(x, _.value) || x.actionColumns.some((T) => Y(k)(x, _.value, T))
|
|
2853
2853
|
})
|
|
2854
2854
|
]),
|
|
2855
|
-
ie("div",
|
|
2856
|
-
|
|
2857
|
-
"model-value":
|
|
2855
|
+
ie("div", Ya, [
|
|
2856
|
+
le(H, {
|
|
2857
|
+
"model-value": Y(C)(x, _.value) || Y(R)(x, _.value),
|
|
2858
2858
|
value: _.value,
|
|
2859
|
-
disabled: e.disable ||
|
|
2860
|
-
indeterminate:
|
|
2859
|
+
disabled: e.disable || Y(R)(x, _.value),
|
|
2860
|
+
indeterminate: Y(O)(x, _.value),
|
|
2861
2861
|
size: "sm",
|
|
2862
|
-
"onUpdate:modelValue": (T) =>
|
|
2862
|
+
"onUpdate:modelValue": (T) => Y(N)(x, _.value, T)
|
|
2863
2863
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2864
2864
|
]),
|
|
2865
2865
|
(J(!0), re(we, null, Ce(x.actionColumns, (T) => (J(), re("div", {
|
|
2866
2866
|
key: `${_.optionKey}-${T}`,
|
|
2867
2867
|
class: "flex justify-center"
|
|
2868
2868
|
}, [
|
|
2869
|
-
|
|
2869
|
+
Y(M)(x, _.value, T) ? (J(), Te(H, {
|
|
2870
2870
|
key: 0,
|
|
2871
|
-
"model-value":
|
|
2871
|
+
"model-value": Y(w)(x, _.value, T) || Y(k)(x, _.value, T),
|
|
2872
2872
|
value: T,
|
|
2873
|
-
disabled: e.disable ||
|
|
2873
|
+
disabled: e.disable || Y(k)(x, _.value, T),
|
|
2874
2874
|
size: "sm",
|
|
2875
|
-
"onUpdate:modelValue": (j) =>
|
|
2875
|
+
"onUpdate:modelValue": (j) => Y(v)(_.value, T, j)
|
|
2876
2876
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Ne("", !0)
|
|
2877
2877
|
]))), 128))
|
|
2878
2878
|
], 4))), 128))
|
|
@@ -2912,7 +2912,7 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { cl
|
|
|
2912
2912
|
t.title ? (J(), re("div", $a, [
|
|
2913
2913
|
ie("div", null, [
|
|
2914
2914
|
t.required ? (J(), re("span", Ka, "*")) : Ne("", !0),
|
|
2915
|
-
|
|
2915
|
+
vr(Se(t.title), 1)
|
|
2916
2916
|
]),
|
|
2917
2917
|
Le(n.$slots, "title-right")
|
|
2918
2918
|
])) : Ne("", !0)
|
|
@@ -2922,7 +2922,7 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { cl
|
|
|
2922
2922
|
])
|
|
2923
2923
|
]));
|
|
2924
2924
|
}
|
|
2925
|
-
}), qa = { class: "col flex items-center" },
|
|
2925
|
+
}), qa = { class: "col flex items-center" }, el = {
|
|
2926
2926
|
key: 1,
|
|
2927
2927
|
class: "q-pa-sm form-error-message text-error"
|
|
2928
2928
|
}, cr = /* @__PURE__ */ Ae({
|
|
@@ -2983,7 +2983,7 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { cl
|
|
|
2983
2983
|
},
|
|
2984
2984
|
emits: ["update:model-value"],
|
|
2985
2985
|
setup(e, { emit: t }) {
|
|
2986
|
-
const n = e, r = t, { t: a } = Ke(),
|
|
2986
|
+
const n = e, r = t, { t: a } = Ke(), l = st(!1), f = pr(), d = z(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), i = `checkbox-${Mr(6)}`, g = z(() => d.value !== !0), C = z(
|
|
2987
2987
|
() => n.modelValue.filter((k) => n.options.some((M) => M.value === k))
|
|
2988
2988
|
), O = z(
|
|
2989
2989
|
() => typeof n.showAllToggle == "boolean" ? a("team.labels.all") : n.showAllToggle
|
|
@@ -2993,16 +2993,16 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { cl
|
|
|
2993
2993
|
if (N.value === !0)
|
|
2994
2994
|
r("update:model-value", k);
|
|
2995
2995
|
else {
|
|
2996
|
-
const M = n.includeDisabledOptionsWhenSelectAll ? n.options.map((
|
|
2996
|
+
const M = n.includeDisabledOptionsWhenSelectAll ? n.options.map((v) => v.value) : n.options.filter((v) => !v.disabled).map((v) => v.value);
|
|
2997
2997
|
r("update:model-value", [...k, ...M]);
|
|
2998
2998
|
}
|
|
2999
2999
|
}
|
|
3000
3000
|
function R(k, M) {
|
|
3001
|
-
let
|
|
3002
|
-
M ?
|
|
3001
|
+
let v = yt(n.modelValue);
|
|
3002
|
+
M ? v.every((h) => h !== k) && v.push(k) : v = v.filter((h) => h !== k), r("update:model-value", v);
|
|
3003
3003
|
}
|
|
3004
3004
|
return (k, M) => {
|
|
3005
|
-
const
|
|
3005
|
+
const v = De("FmCheckbox");
|
|
3006
3006
|
return J(), Te(Qa, {
|
|
3007
3007
|
id: i,
|
|
3008
3008
|
title: e.title,
|
|
@@ -3012,7 +3012,7 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { cl
|
|
|
3012
3012
|
Le(k.$slots, "top")
|
|
3013
3013
|
]),
|
|
3014
3014
|
default: ce(() => [
|
|
3015
|
-
n.showAllToggle ? (J(), Te(
|
|
3015
|
+
n.showAllToggle ? (J(), Te(v, {
|
|
3016
3016
|
key: 0,
|
|
3017
3017
|
"model-value": N.value,
|
|
3018
3018
|
disabled: e.disable,
|
|
@@ -3023,8 +3023,8 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { cl
|
|
|
3023
3023
|
value: O.value,
|
|
3024
3024
|
"onUpdate:modelValue": w
|
|
3025
3025
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Ne("", !0),
|
|
3026
|
-
(J(!0), re(we, null, Ce(e.options, (
|
|
3027
|
-
key:
|
|
3026
|
+
(J(!0), re(we, null, Ce(e.options, (h, S) => (J(), re("div", {
|
|
3027
|
+
key: h.value,
|
|
3028
3028
|
style: rt(`margin-bottom: ${S < e.options.length - 1 ? n.gutter : 0}px`),
|
|
3029
3029
|
class: Ee(S < e.options.length - 1 ? "q-mb-sm" : "")
|
|
3030
3030
|
}, [
|
|
@@ -3032,49 +3032,49 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { cl
|
|
|
3032
3032
|
class: Ee(["row justify-between", e.alignCenter ? "items-center" : "items-start"])
|
|
3033
3033
|
}, [
|
|
3034
3034
|
ie("div", qa, [
|
|
3035
|
-
|
|
3036
|
-
"model-value": e.modelValue.includes(
|
|
3037
|
-
disabled: e.disable ||
|
|
3035
|
+
le(v, {
|
|
3036
|
+
"model-value": e.modelValue.includes(h.value),
|
|
3037
|
+
disabled: e.disable || h.disabled,
|
|
3038
3038
|
size: "sm",
|
|
3039
|
-
label:
|
|
3040
|
-
value:
|
|
3041
|
-
"onUpdate:modelValue": (m) => R(
|
|
3039
|
+
label: h.label,
|
|
3040
|
+
value: h.label,
|
|
3041
|
+
"onUpdate:modelValue": (m) => R(h.value, m)
|
|
3042
3042
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
3043
|
-
Le(k.$slots, `checkbox-${
|
|
3044
|
-
option:
|
|
3045
|
-
selected: e.modelValue.includes(
|
|
3043
|
+
Le(k.$slots, `checkbox-${h.key || h.value}-append`, {
|
|
3044
|
+
option: h,
|
|
3045
|
+
selected: e.modelValue.includes(h.value)
|
|
3046
3046
|
})
|
|
3047
3047
|
]),
|
|
3048
|
-
|
|
3048
|
+
Y(f)[`checkbox-${h.key || h.value}-end`] && (e.modelValue.includes(h.value) || e.falsyShowSlot) ? (J(), re("div", {
|
|
3049
3049
|
key: 0,
|
|
3050
|
-
class: Ee([{ "q-checkbox disabled": e.disable ||
|
|
3050
|
+
class: Ee([{ "q-checkbox disabled": e.disable || h.disabled }, "col"])
|
|
3051
3051
|
}, [
|
|
3052
|
-
Le(k.$slots, `checkbox-${
|
|
3053
|
-
option:
|
|
3054
|
-
value: e.modelValue.includes(
|
|
3055
|
-
disable: e.disable ||
|
|
3052
|
+
Le(k.$slots, `checkbox-${h.key || h.value}-end`, {
|
|
3053
|
+
option: h,
|
|
3054
|
+
value: e.modelValue.includes(h.value),
|
|
3055
|
+
disable: e.disable || h.disabled
|
|
3056
3056
|
})
|
|
3057
3057
|
], 2)) : Ne("", !0)
|
|
3058
3058
|
], 2),
|
|
3059
|
-
|
|
3059
|
+
Y(f)[`checkbox-${h.key || h.value}-bottom`] && (e.modelValue.includes(h.value) || e.falsyShowSlot) ? (J(), re("div", {
|
|
3060
3060
|
key: 0,
|
|
3061
|
-
class: Ee(["q-mt-sm", { "q-checkbox disabled": e.disable ||
|
|
3061
|
+
class: Ee(["q-mt-sm", { "q-checkbox disabled": e.disable || h.disabled }]),
|
|
3062
3062
|
style: rt(`margin-left: ${e.bottomSlotIndent}`)
|
|
3063
3063
|
}, [
|
|
3064
|
-
Le(k.$slots, `checkbox-${
|
|
3065
|
-
option:
|
|
3066
|
-
disable: e.disable ||
|
|
3067
|
-
value: e.modelValue.includes(
|
|
3064
|
+
Le(k.$slots, `checkbox-${h.key || h.value}-bottom`, {
|
|
3065
|
+
option: h,
|
|
3066
|
+
disable: e.disable || h.disabled,
|
|
3067
|
+
value: e.modelValue.includes(h.value)
|
|
3068
3068
|
})
|
|
3069
3069
|
], 6)) : Ne("", !0)
|
|
3070
3070
|
], 6))), 128)),
|
|
3071
|
-
|
|
3071
|
+
l.value && g.value ? (J(), re("div", el, Se(d.value), 1)) : Ne("", !0)
|
|
3072
3072
|
]),
|
|
3073
3073
|
_: 3
|
|
3074
3074
|
}, 8, ["title"]);
|
|
3075
3075
|
};
|
|
3076
3076
|
}
|
|
3077
|
-
}),
|
|
3077
|
+
}), ht = "includedFuture", Dn = /* @__PURE__ */ Ae({
|
|
3078
3078
|
__name: "ConditionPermission",
|
|
3079
3079
|
props: {
|
|
3080
3080
|
modelValue: {
|
|
@@ -3101,36 +3101,36 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { cl
|
|
|
3101
3101
|
},
|
|
3102
3102
|
emits: ["update:model-value"],
|
|
3103
3103
|
setup(e, { emit: t }) {
|
|
3104
|
-
const n = e, r = t, { t: a } = Ke(),
|
|
3104
|
+
const n = e, r = t, { t: a } = Ke(), l = z(() => [
|
|
3105
3105
|
{
|
|
3106
3106
|
label: a("team.memberForm.permissions.includedFuture", { context: n.context }),
|
|
3107
|
-
value:
|
|
3107
|
+
value: ht,
|
|
3108
3108
|
// Can only be selected if all other options are selected
|
|
3109
3109
|
disabled: !!n.modelValue && n.options.length > n.modelValue.length
|
|
3110
3110
|
},
|
|
3111
3111
|
...n.options.filter(
|
|
3112
3112
|
(C) => C.label.toLocaleLowerCase().includes(g.value.toLocaleLowerCase())
|
|
3113
3113
|
)
|
|
3114
|
-
]), f = z(() => n.modelValue ? n.modelValue : [
|
|
3114
|
+
]), f = z(() => n.modelValue ? n.modelValue : [ht, ...n.options.map((C) => C.value)]), d = z(() => {
|
|
3115
3115
|
if (n.layout === "leading") {
|
|
3116
3116
|
const O = n.modelValue ? n.options.filter((N) => n.modelValue.includes(N.value)).map((N) => N.label) : null;
|
|
3117
|
-
return
|
|
3117
|
+
return Xn(O, {
|
|
3118
3118
|
all: a("team.labels.all"),
|
|
3119
3119
|
none: a("team.labels.none"),
|
|
3120
3120
|
more: (N) => a("team.labels.more", { count: N })
|
|
3121
3121
|
});
|
|
3122
3122
|
}
|
|
3123
|
-
const C = f.value.filter((O) => O !==
|
|
3123
|
+
const C = f.value.filter((O) => O !== ht).length;
|
|
3124
3124
|
return C === 0 ? "" : a("team.memberForm.permissions.allowedCount", { count: C });
|
|
3125
3125
|
});
|
|
3126
3126
|
function i(C) {
|
|
3127
|
-
const O = C.length ===
|
|
3128
|
-
r("update:model-value", O ? null : C.filter((N) => N !==
|
|
3127
|
+
const O = C.length === l.value.length;
|
|
3128
|
+
r("update:model-value", O ? null : C.filter((N) => N !== ht));
|
|
3129
3129
|
}
|
|
3130
3130
|
const g = st("");
|
|
3131
3131
|
return (C, O) => {
|
|
3132
3132
|
const N = De("fm-search");
|
|
3133
|
-
return J(), Te(
|
|
3133
|
+
return J(), Te(Yt, {
|
|
3134
3134
|
subtitle: d.value,
|
|
3135
3135
|
layout: e.layout,
|
|
3136
3136
|
"initially-collapsed": e.layout === "leading"
|
|
@@ -3140,7 +3140,7 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { cl
|
|
|
3140
3140
|
class: Ee(
|
|
3141
3141
|
e.layout === "leading" ? "text-[18px] font-semibold leading-[24px] tracking-[-0.27px]" : "fm-typo-en-title-sm-600"
|
|
3142
3142
|
)
|
|
3143
|
-
}, Se(
|
|
3143
|
+
}, Se(Y(a)("team.memberForm.permissions.manageable", { context: e.context })), 3)
|
|
3144
3144
|
]),
|
|
3145
3145
|
default: ce(() => [
|
|
3146
3146
|
e.options.length > 1 ? (J(), Te(N, {
|
|
@@ -3148,11 +3148,11 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { cl
|
|
|
3148
3148
|
modelValue: g.value,
|
|
3149
3149
|
"onUpdate:modelValue": O[0] || (O[0] = (w) => g.value = w),
|
|
3150
3150
|
class: "mt-16",
|
|
3151
|
-
placeholder:
|
|
3151
|
+
placeholder: Y(a)("team.memberForm.permissions.search", { context: e.context })
|
|
3152
3152
|
}, null, 8, ["modelValue", "placeholder"])) : Ne("", !0),
|
|
3153
|
-
|
|
3153
|
+
le(cr, {
|
|
3154
3154
|
"model-value": f.value,
|
|
3155
|
-
options:
|
|
3155
|
+
options: l.value,
|
|
3156
3156
|
"show-intermediate": !1,
|
|
3157
3157
|
"show-all-toggle": !0,
|
|
3158
3158
|
disable: e.disable,
|
|
@@ -3161,7 +3161,7 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { cl
|
|
|
3161
3161
|
class: "mt-16",
|
|
3162
3162
|
"onUpdate:modelValue": i
|
|
3163
3163
|
}, tt({ _: 2 }, [
|
|
3164
|
-
Ce(
|
|
3164
|
+
Ce(l.value, (w) => ({
|
|
3165
3165
|
name: `checkbox-${w.value}-append`,
|
|
3166
3166
|
fn: ce(({ option: R }) => [
|
|
3167
3167
|
Le(C.$slots, `checkbox-${w.value}-append`, { option: R })
|
|
@@ -3173,7 +3173,7 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { cl
|
|
|
3173
3173
|
}, 8, ["subtitle", "layout", "initially-collapsed"]);
|
|
3174
3174
|
};
|
|
3175
3175
|
}
|
|
3176
|
-
}),
|
|
3176
|
+
}), bt = "includedNewRole", tl = /* @__PURE__ */ Ae({
|
|
3177
3177
|
__name: "PosRolePermission",
|
|
3178
3178
|
props: {
|
|
3179
3179
|
modelValue: {
|
|
@@ -3200,12 +3200,12 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { cl
|
|
|
3200
3200
|
},
|
|
3201
3201
|
emits: ["update:model-value"],
|
|
3202
3202
|
setup(e, { emit: t }) {
|
|
3203
|
-
const n = e, r = t, { t: a } = Ke(),
|
|
3203
|
+
const n = e, r = t, { t: a } = Ke(), l = z(() => {
|
|
3204
3204
|
const g = n.restaurantIds;
|
|
3205
3205
|
return [
|
|
3206
3206
|
{
|
|
3207
3207
|
label: a("team.memberForm.permissions.includedNewRole"),
|
|
3208
|
-
value:
|
|
3208
|
+
value: bt,
|
|
3209
3209
|
disabled: !!n.modelValue && n.roles.length > n.modelValue.length
|
|
3210
3210
|
},
|
|
3211
3211
|
...n.roles.map((C) => ({
|
|
@@ -3214,23 +3214,23 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { cl
|
|
|
3214
3214
|
disabled: !!g && C.restaurants.every(({ id: O }) => !g.includes(O))
|
|
3215
3215
|
}))
|
|
3216
3216
|
];
|
|
3217
|
-
}), f = z(() => n.modelValue ? n.modelValue : [
|
|
3217
|
+
}), f = z(() => n.modelValue ? n.modelValue : [bt, ...n.roles.map((g) => g._id)]), d = z(() => {
|
|
3218
3218
|
if (n.layout === "leading") {
|
|
3219
3219
|
const C = n.modelValue ? n.roles.filter((O) => n.modelValue.includes(O._id)).map((O) => O.name) : null;
|
|
3220
|
-
return
|
|
3220
|
+
return Xn(C, {
|
|
3221
3221
|
all: a("team.labels.all"),
|
|
3222
3222
|
none: a("team.labels.none"),
|
|
3223
3223
|
more: (O) => a("team.labels.more", { count: O })
|
|
3224
3224
|
});
|
|
3225
3225
|
}
|
|
3226
|
-
const g = f.value.filter((C) => C !==
|
|
3226
|
+
const g = f.value.filter((C) => C !== bt).length;
|
|
3227
3227
|
return g === 0 ? "" : a("team.memberForm.permissions.allowedCount", { count: g });
|
|
3228
3228
|
});
|
|
3229
3229
|
function i(g) {
|
|
3230
|
-
const C = g.length ===
|
|
3231
|
-
r("update:model-value", C ? null : g.filter((O) => O !==
|
|
3230
|
+
const C = g.length === l.value.length;
|
|
3231
|
+
r("update:model-value", C ? null : g.filter((O) => O !== bt));
|
|
3232
3232
|
}
|
|
3233
|
-
return (g, C) => (J(), Te(
|
|
3233
|
+
return (g, C) => (J(), Te(Yt, {
|
|
3234
3234
|
subtitle: d.value,
|
|
3235
3235
|
layout: e.layout,
|
|
3236
3236
|
"initially-collapsed": e.layout === "leading"
|
|
@@ -3240,12 +3240,12 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { cl
|
|
|
3240
3240
|
class: Ee(
|
|
3241
3241
|
e.layout === "leading" ? "text-[18px] font-semibold leading-[24px] tracking-[-0.27px]" : "fm-typo-en-title-sm-600"
|
|
3242
3242
|
)
|
|
3243
|
-
}, Se(
|
|
3243
|
+
}, Se(Y(a)("team.memberForm.permissions.roles")), 3)
|
|
3244
3244
|
]),
|
|
3245
3245
|
default: ce(() => [
|
|
3246
|
-
|
|
3246
|
+
le(cr, {
|
|
3247
3247
|
"model-value": f.value,
|
|
3248
|
-
options:
|
|
3248
|
+
options: l.value,
|
|
3249
3249
|
"show-intermediate": !1,
|
|
3250
3250
|
"show-all-toggle": !1,
|
|
3251
3251
|
disable: e.disable,
|
|
@@ -3253,7 +3253,7 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { cl
|
|
|
3253
3253
|
class: "mt-16",
|
|
3254
3254
|
"onUpdate:modelValue": i
|
|
3255
3255
|
}, tt({ _: 2 }, [
|
|
3256
|
-
Ce(
|
|
3256
|
+
Ce(l.value, (O) => ({
|
|
3257
3257
|
name: `checkbox-${O.value}-append`,
|
|
3258
3258
|
fn: ce(({ option: N }) => [
|
|
3259
3259
|
Le(g.$slots, `checkbox-${O.value}-append`, { option: N })
|
|
@@ -3264,14 +3264,14 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { cl
|
|
|
3264
3264
|
_: 3
|
|
3265
3265
|
}, 8, ["subtitle", "layout", "initially-collapsed"]));
|
|
3266
3266
|
}
|
|
3267
|
-
}),
|
|
3267
|
+
}), nl = {
|
|
3268
3268
|
key: 0,
|
|
3269
3269
|
class: "flex flex-col gap-8"
|
|
3270
|
-
},
|
|
3270
|
+
}, rl = {
|
|
3271
3271
|
key: 0,
|
|
3272
3272
|
class: "ml-32",
|
|
3273
3273
|
style: { "font-size": "12px", "line-height": "16px", color: "#8a8f98", "font-weight": "400" }
|
|
3274
|
-
},
|
|
3274
|
+
}, sl = {
|
|
3275
3275
|
key: 0,
|
|
3276
3276
|
class: "ml-32"
|
|
3277
3277
|
}, Fn = /* @__PURE__ */ Ae({
|
|
@@ -3292,7 +3292,7 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { cl
|
|
|
3292
3292
|
emits: ["update-inherit-mode", "update-form", "apply"],
|
|
3293
3293
|
setup(e, { emit: t }) {
|
|
3294
3294
|
const n = t, { t: r } = Ke();
|
|
3295
|
-
return (a,
|
|
3295
|
+
return (a, l) => {
|
|
3296
3296
|
const f = De("FmRadio"), d = De("FmRadioGroup");
|
|
3297
3297
|
return J(), Te(Tr, {
|
|
3298
3298
|
title: e.title,
|
|
@@ -3301,38 +3301,38 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { cl
|
|
|
3301
3301
|
"has-changes": e.hasChanges,
|
|
3302
3302
|
disable: e.disable,
|
|
3303
3303
|
"full-width": e.fullWidth,
|
|
3304
|
-
onUpdateForm:
|
|
3305
|
-
onApply:
|
|
3304
|
+
onUpdateForm: l[0] || (l[0] = (i) => n("update-form", i)),
|
|
3305
|
+
onApply: l[1] || (l[1] = (i) => n("apply"))
|
|
3306
3306
|
}, {
|
|
3307
3307
|
section: ce(({ builder: i }) => [
|
|
3308
|
-
e.coverOverride.shouldShowInheritToggle(e.entry, i) ? (J(), re("div",
|
|
3309
|
-
|
|
3308
|
+
e.coverOverride.shouldShowInheritToggle(e.entry, i) ? (J(), re("div", nl, [
|
|
3309
|
+
le(d, {
|
|
3310
3310
|
"model-value": e.inheritModeFor(i),
|
|
3311
3311
|
disabled: e.disable,
|
|
3312
3312
|
"onUpdate:modelValue": (g) => n("update-inherit-mode", { builder: i, mode: g })
|
|
3313
3313
|
}, {
|
|
3314
3314
|
default: ce(() => [
|
|
3315
3315
|
ie("div", null, [
|
|
3316
|
-
|
|
3316
|
+
le(f, {
|
|
3317
3317
|
value: "inherit",
|
|
3318
|
-
label:
|
|
3318
|
+
label: Y(r)("team.memberForm.permissions.conditionCover.inherit", {
|
|
3319
3319
|
cover: e.coverOverride.coverLabel(e.subject)
|
|
3320
3320
|
})
|
|
3321
3321
|
}, null, 8, ["label"]),
|
|
3322
|
-
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? (J(), re("p",
|
|
3322
|
+
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? (J(), re("p", rl, " (" + Se(Y(r)(
|
|
3323
3323
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).labelKey,
|
|
3324
3324
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).params ?? {}
|
|
3325
3325
|
)) + ") ", 1)) : Ne("", !0)
|
|
3326
3326
|
]),
|
|
3327
|
-
|
|
3327
|
+
le(f, {
|
|
3328
3328
|
value: "custom",
|
|
3329
|
-
label:
|
|
3329
|
+
label: Y(r)("team.memberForm.permissions.conditionCover.custom")
|
|
3330
3330
|
}, null, 8, ["label"])
|
|
3331
3331
|
]),
|
|
3332
3332
|
_: 2
|
|
3333
3333
|
}, 1032, ["model-value", "disabled", "onUpdate:modelValue"]),
|
|
3334
|
-
e.inheritModeFor(i) === "custom" ? (J(), re("div",
|
|
3335
|
-
|
|
3334
|
+
e.inheritModeFor(i) === "custom" ? (J(), re("div", sl, [
|
|
3335
|
+
le(nn, {
|
|
3336
3336
|
builder: i,
|
|
3337
3337
|
"model-value": e.formValueFor(i),
|
|
3338
3338
|
disable: e.disable,
|
|
@@ -3351,49 +3351,49 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { cl
|
|
|
3351
3351
|
}, 8, ["title", "builders", "form-value-for", "has-changes", "disable", "full-width"]);
|
|
3352
3352
|
};
|
|
3353
3353
|
}
|
|
3354
|
-
}),
|
|
3354
|
+
}), al = {
|
|
3355
3355
|
async readWarehouses() {
|
|
3356
3356
|
return kr(await Ar().get("/warehouses"));
|
|
3357
3357
|
}
|
|
3358
3358
|
};
|
|
3359
3359
|
function Pn(e, t) {
|
|
3360
|
-
return Zn(e,
|
|
3360
|
+
return Zn(e, Bn).some(
|
|
3361
3361
|
(n) => n.subject === t && !n.inverted && n.actions.includes("manage")
|
|
3362
3362
|
);
|
|
3363
3363
|
}
|
|
3364
3364
|
function jn(e, t) {
|
|
3365
3365
|
return e.some((n) => n.subject === t && n.inverted) ? e : [...e, { subject: t, actions: ["manage"], inverted: !0 }];
|
|
3366
3366
|
}
|
|
3367
|
-
function
|
|
3368
|
-
const { category: r, showByFeatureFlag: a, isCategoryCover:
|
|
3367
|
+
function Un(e, t, n) {
|
|
3368
|
+
const { category: r, showByFeatureFlag: a, isCategoryCover: l, ...f } = e;
|
|
3369
3369
|
return {
|
|
3370
3370
|
...f,
|
|
3371
3371
|
actions: t,
|
|
3372
3372
|
...n !== void 0 && { conditions: n }
|
|
3373
3373
|
};
|
|
3374
3374
|
}
|
|
3375
|
-
function
|
|
3375
|
+
function ll(e, t, n, r) {
|
|
3376
3376
|
const a = new Set(
|
|
3377
3377
|
e.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3378
|
-
),
|
|
3378
|
+
), l = new Set(
|
|
3379
3379
|
t.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3380
3380
|
), f = new Set(
|
|
3381
3381
|
n.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3382
3382
|
);
|
|
3383
3383
|
let d = [...n];
|
|
3384
3384
|
for (const i of a)
|
|
3385
|
-
|
|
3386
|
-
for (const i of
|
|
3385
|
+
l.has(i) || (f.has(i) && (d = d.filter((C) => C.subject !== i)), (!f.has(i) || Pn(d, i)) && (d = jn(d, i)));
|
|
3386
|
+
for (const i of l)
|
|
3387
3387
|
if (!a.has(i)) {
|
|
3388
3388
|
const g = d.some((C) => C.subject === i && C.inverted);
|
|
3389
3389
|
if (d = d.filter((C) => !(C.subject === i && C.inverted)), !g && !f.has(i)) {
|
|
3390
3390
|
const C = t.find(
|
|
3391
3391
|
(N) => N.subject === i && !N.inverted
|
|
3392
3392
|
), O = r(i);
|
|
3393
|
-
O && C && d.push(
|
|
3393
|
+
O && C && d.push(Un(O, C.actions, C.conditions));
|
|
3394
3394
|
}
|
|
3395
3395
|
}
|
|
3396
|
-
for (const i of
|
|
3396
|
+
for (const i of l) {
|
|
3397
3397
|
if (!a.has(i)) continue;
|
|
3398
3398
|
const g = e.find((R) => R.subject === i && !R.inverted), C = t.find((R) => R.subject === i && !R.inverted);
|
|
3399
3399
|
if (!g || !C) continue;
|
|
@@ -3408,13 +3408,13 @@ function oo(e, t, n, r) {
|
|
|
3408
3408
|
};
|
|
3409
3409
|
else {
|
|
3410
3410
|
const R = r(i);
|
|
3411
|
-
R && d.push(
|
|
3411
|
+
R && d.push(Un(R, Array.from(N)));
|
|
3412
3412
|
}
|
|
3413
3413
|
O.has("manage") && !N.has("manage") && Pn(d, i) && (d = jn(d, i)), !O.has("manage") && N.has("manage") && (d = d.filter((R) => !(R.subject === i && R.inverted)));
|
|
3414
3414
|
}
|
|
3415
3415
|
return d;
|
|
3416
3416
|
}
|
|
3417
|
-
const
|
|
3417
|
+
const ol = {
|
|
3418
3418
|
MY: "Asia/Kuala_Lumpur",
|
|
3419
3419
|
SG: "Asia/Singapore",
|
|
3420
3420
|
TH: "Asia/Bangkok",
|
|
@@ -3429,107 +3429,107 @@ const lo = {
|
|
|
3429
3429
|
AE: "Asia/Dubai",
|
|
3430
3430
|
UK: "Europe/London"
|
|
3431
3431
|
};
|
|
3432
|
-
function
|
|
3432
|
+
function il(e) {
|
|
3433
3433
|
const t = (e || "").toUpperCase();
|
|
3434
|
-
return
|
|
3434
|
+
return ol[t] ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
3435
3435
|
}
|
|
3436
|
-
function
|
|
3437
|
-
return e != null && e.timezone ? e.timezone : e != null && e.timeZone ? e.timeZone :
|
|
3436
|
+
function cl(e, t) {
|
|
3437
|
+
return e != null && e.timezone ? e.timezone : e != null && e.timeZone ? e.timeZone : il((e == null ? void 0 : e.country) ?? t);
|
|
3438
3438
|
}
|
|
3439
3439
|
function gt(e, t) {
|
|
3440
3440
|
return `${e}::${t.builderKey}`;
|
|
3441
3441
|
}
|
|
3442
|
-
function
|
|
3442
|
+
function Xe(e) {
|
|
3443
3443
|
try {
|
|
3444
3444
|
return e.conditions ? JSON.parse(e.conditions) : void 0;
|
|
3445
3445
|
} catch {
|
|
3446
3446
|
return;
|
|
3447
3447
|
}
|
|
3448
3448
|
}
|
|
3449
|
-
function
|
|
3449
|
+
function ul(e, t) {
|
|
3450
3450
|
return e.find((n) => !n.inverted && n.subject === t);
|
|
3451
3451
|
}
|
|
3452
3452
|
function Mt(e, t) {
|
|
3453
3453
|
const n = new Set(e.actions);
|
|
3454
3454
|
return n.has(ye.Action.manage) ? !0 : t.actions.every((r) => n.has(r));
|
|
3455
3455
|
}
|
|
3456
|
-
function
|
|
3457
|
-
const n =
|
|
3456
|
+
function Bt(e, t) {
|
|
3457
|
+
const n = Xe(e);
|
|
3458
3458
|
return Dt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3459
3459
|
}
|
|
3460
|
-
function
|
|
3460
|
+
function Vn(e, t, n) {
|
|
3461
3461
|
return {
|
|
3462
|
-
...
|
|
3463
|
-
...nt(
|
|
3462
|
+
...Bt(e, n),
|
|
3463
|
+
...nt(Xe(t), n)
|
|
3464
3464
|
};
|
|
3465
3465
|
}
|
|
3466
|
-
function
|
|
3466
|
+
function ml(e, t, n) {
|
|
3467
3467
|
const r = st(/* @__PURE__ */ new Set());
|
|
3468
3468
|
function a(m) {
|
|
3469
3469
|
return Pr(m, t.value);
|
|
3470
3470
|
}
|
|
3471
|
-
function
|
|
3471
|
+
function l(m) {
|
|
3472
3472
|
return t.value.find((y) => y.subject === m);
|
|
3473
3473
|
}
|
|
3474
3474
|
function f(m) {
|
|
3475
3475
|
var E;
|
|
3476
3476
|
const y = a(m);
|
|
3477
|
-
return y ? (E =
|
|
3477
|
+
return y ? (E = l(y)) == null ? void 0 : E.label : void 0;
|
|
3478
3478
|
}
|
|
3479
3479
|
function d(m) {
|
|
3480
|
-
return
|
|
3480
|
+
return ul(e.value, m);
|
|
3481
3481
|
}
|
|
3482
3482
|
function i(m, y) {
|
|
3483
|
-
return nt(
|
|
3483
|
+
return nt(Xe(m), y);
|
|
3484
3484
|
}
|
|
3485
3485
|
function g(m, y) {
|
|
3486
3486
|
var A;
|
|
3487
3487
|
if (!(((A = y.appliesToActions) == null ? void 0 : A.call(y, m.actions)) ?? !0)) return !1;
|
|
3488
3488
|
const E = a(m.subject);
|
|
3489
3489
|
if (!E) return !1;
|
|
3490
|
-
const
|
|
3491
|
-
return
|
|
3490
|
+
const p = d(E);
|
|
3491
|
+
return p ? Object.keys(i(p, y)).length > 0 : !1;
|
|
3492
3492
|
}
|
|
3493
3493
|
function C(m, y) {
|
|
3494
3494
|
if (!g(m, y) || r.value.has(gt(m.subject, y))) return "custom";
|
|
3495
3495
|
if (m.index === null) return "inherit";
|
|
3496
|
-
const E = e.value[m.index],
|
|
3496
|
+
const E = e.value[m.index], p = a(m.subject), A = p ? d(p) : void 0;
|
|
3497
3497
|
if (E && A) {
|
|
3498
|
-
const L = nt(
|
|
3498
|
+
const L = nt(Xe(E), y), H = i(A, y);
|
|
3499
3499
|
if (JSON.stringify(L) === JSON.stringify(H)) return "inherit";
|
|
3500
3500
|
}
|
|
3501
3501
|
return "custom";
|
|
3502
3502
|
}
|
|
3503
3503
|
function O(m, y, E) {
|
|
3504
3504
|
if (!y.summarizeForm) return;
|
|
3505
|
-
const
|
|
3506
|
-
if (!
|
|
3507
|
-
const A = d(
|
|
3505
|
+
const p = a(m.subject);
|
|
3506
|
+
if (!p) return;
|
|
3507
|
+
const A = d(p);
|
|
3508
3508
|
if (!A) return;
|
|
3509
3509
|
const L = y.fromCondition(i(A, y));
|
|
3510
3510
|
return y.summarizeForm(L, { timeZone: E });
|
|
3511
3511
|
}
|
|
3512
3512
|
function N(m, y) {
|
|
3513
3513
|
if (m.index === null) return;
|
|
3514
|
-
const E = [...e.value],
|
|
3514
|
+
const E = [...e.value], p = { ...E[m.index] }, A = Bt(p, y), L = Object.keys(A).length === 0, H = a(m.subject), x = H ? d(H) : void 0, _ = x ? Mt(x, p) : !1;
|
|
3515
3515
|
if (L && _)
|
|
3516
3516
|
E.splice(m.index, 1);
|
|
3517
3517
|
else if (x) {
|
|
3518
|
-
const T =
|
|
3519
|
-
Object.keys(T).length === 0 ? delete
|
|
3518
|
+
const T = Vn(p, x, y);
|
|
3519
|
+
Object.keys(T).length === 0 ? delete p.conditions : p.conditions = JSON.stringify(T), E[m.index] = p;
|
|
3520
3520
|
} else
|
|
3521
|
-
L ? delete
|
|
3521
|
+
L ? delete p.conditions : p.conditions = JSON.stringify(A), E[m.index] = p;
|
|
3522
3522
|
n(E);
|
|
3523
3523
|
}
|
|
3524
3524
|
function w(m, y, E) {
|
|
3525
|
-
const
|
|
3525
|
+
const p = gt(m.subject, y);
|
|
3526
3526
|
if (E === "inherit") {
|
|
3527
3527
|
const L = new Set(r.value);
|
|
3528
|
-
L.delete(
|
|
3528
|
+
L.delete(p), r.value = L, N(m, y);
|
|
3529
3529
|
return;
|
|
3530
3530
|
}
|
|
3531
3531
|
const A = new Set(r.value);
|
|
3532
|
-
A.add(
|
|
3532
|
+
A.add(p), r.value = A, m.index === null && h(m, y, y.fromCondition(void 0), {
|
|
3533
3533
|
forceCreateRule: !0
|
|
3534
3534
|
});
|
|
3535
3535
|
}
|
|
@@ -3542,30 +3542,30 @@ function mo(e, t, n) {
|
|
|
3542
3542
|
function k(m, y) {
|
|
3543
3543
|
return e.value.filter((E) => {
|
|
3544
3544
|
if (E.inverted) return !1;
|
|
3545
|
-
const
|
|
3546
|
-
return
|
|
3545
|
+
const p = E.subject;
|
|
3546
|
+
return p === m || a(p) !== m ? !1 : r.value.has(gt(p, y)) ? !0 : Object.keys(nt(Xe(E), y)).length > 0;
|
|
3547
3547
|
});
|
|
3548
3548
|
}
|
|
3549
3549
|
function M(m, y) {
|
|
3550
|
-
const E = `::${y.builderKey}`,
|
|
3551
|
-
for (const A of
|
|
3550
|
+
const E = `::${y.builderKey}`, p = new Set(r.value);
|
|
3551
|
+
for (const A of p) {
|
|
3552
3552
|
if (!A.endsWith(E)) continue;
|
|
3553
3553
|
const L = A.slice(0, -E.length);
|
|
3554
|
-
a(L) === m &&
|
|
3554
|
+
a(L) === m && p.delete(A);
|
|
3555
3555
|
}
|
|
3556
|
-
r.value =
|
|
3556
|
+
r.value = p;
|
|
3557
3557
|
}
|
|
3558
|
-
function
|
|
3559
|
-
const
|
|
3558
|
+
function v(m, y, E) {
|
|
3559
|
+
const p = y.subject;
|
|
3560
3560
|
return m.reduce((A, L) => {
|
|
3561
3561
|
if (L.inverted)
|
|
3562
3562
|
return A.push(L), A;
|
|
3563
3563
|
const H = L.subject;
|
|
3564
|
-
if (H ===
|
|
3564
|
+
if (H === p || a(H) !== p)
|
|
3565
3565
|
return A.push(L), A;
|
|
3566
|
-
if (Mt(y, L) && Object.keys(
|
|
3566
|
+
if (Mt(y, L) && Object.keys(Bt(L, E)).length === 0)
|
|
3567
3567
|
return A;
|
|
3568
|
-
const _ =
|
|
3568
|
+
const _ = Vn(L, y, E);
|
|
3569
3569
|
if (Object.keys(_).length === 0) {
|
|
3570
3570
|
const { conditions: T, ...j } = L;
|
|
3571
3571
|
A.push(j);
|
|
@@ -3574,12 +3574,12 @@ function mo(e, t, n) {
|
|
|
3574
3574
|
return A;
|
|
3575
3575
|
}, []);
|
|
3576
3576
|
}
|
|
3577
|
-
function
|
|
3577
|
+
function h(m, y, E, p = {}) {
|
|
3578
3578
|
var P;
|
|
3579
3579
|
const A = [...e.value];
|
|
3580
3580
|
let L = m.index;
|
|
3581
3581
|
const H = y.toCondition(E), x = Object.keys(H).length > 0;
|
|
3582
|
-
if (L === null && !x && !
|
|
3582
|
+
if (L === null && !x && !p.forceCreateRule) return;
|
|
3583
3583
|
if (L === null) {
|
|
3584
3584
|
const F = A.findIndex((W) => !W.inverted && W.subject === m.subject);
|
|
3585
3585
|
if (F !== -1)
|
|
@@ -3588,9 +3588,9 @@ function mo(e, t, n) {
|
|
|
3588
3588
|
const W = t.value.find((Q) => Q.subject === m.subject);
|
|
3589
3589
|
if (!W) return;
|
|
3590
3590
|
const {
|
|
3591
|
-
category:
|
|
3591
|
+
category: U,
|
|
3592
3592
|
showByFeatureFlag: Z,
|
|
3593
|
-
isCategoryCover:
|
|
3593
|
+
isCategoryCover: X,
|
|
3594
3594
|
...te
|
|
3595
3595
|
} = W;
|
|
3596
3596
|
A.push({
|
|
@@ -3603,28 +3603,28 @@ function mo(e, t, n) {
|
|
|
3603
3603
|
_.actions = [
|
|
3604
3604
|
.../* @__PURE__ */ new Set([..._.actions, ...m.actions])
|
|
3605
3605
|
];
|
|
3606
|
-
const T =
|
|
3606
|
+
const T = Xe(_), j = Dt(T, [{ builder: y, formValue: E }]);
|
|
3607
3607
|
if (Object.keys(j).length === 0 ? delete _.conditions : _.conditions = JSON.stringify(j), A[L] = _, sn(m.subject, t.value)) {
|
|
3608
3608
|
const F = k(m.subject, y), W = () => {
|
|
3609
3609
|
var Z;
|
|
3610
|
-
M(m.subject, y), n(
|
|
3611
|
-
},
|
|
3610
|
+
M(m.subject, y), n(v(A, _, y)), (Z = p.afterCommit) == null || Z.call(p);
|
|
3611
|
+
}, U = () => {
|
|
3612
3612
|
var Z;
|
|
3613
|
-
n(A), (Z =
|
|
3613
|
+
n(A), (Z = p.afterCommit) == null || Z.call(p);
|
|
3614
3614
|
};
|
|
3615
3615
|
if (F.length === 0) {
|
|
3616
3616
|
W();
|
|
3617
3617
|
return;
|
|
3618
3618
|
}
|
|
3619
|
-
|
|
3619
|
+
p.onOverridesConflict ? p.onOverridesConflict({ override: W, keep: U }) : U();
|
|
3620
3620
|
return;
|
|
3621
3621
|
}
|
|
3622
|
-
n(A), (P =
|
|
3622
|
+
n(A), (P = p.afterCommit) == null || P.call(p);
|
|
3623
3623
|
}
|
|
3624
3624
|
function S(m, y, E = {}) {
|
|
3625
3625
|
if (y.length === 0) return;
|
|
3626
|
-
const
|
|
3627
|
-
let A =
|
|
3626
|
+
const p = [...e.value];
|
|
3627
|
+
let A = p.findIndex((F) => !F.inverted && F.subject === m.subject), L = A === -1 ? void 0 : { ...p[A] }, H = Xe(L ?? {}) ?? {};
|
|
3628
3628
|
for (const F of y) {
|
|
3629
3629
|
const W = F.mode === "inherit" ? F.builder.fromCondition(void 0) : F.form;
|
|
3630
3630
|
H = Dt(H, [{ builder: F.builder, formValue: W }]);
|
|
@@ -3635,19 +3635,19 @@ function mo(e, t, n) {
|
|
|
3635
3635
|
if (!F) return;
|
|
3636
3636
|
const {
|
|
3637
3637
|
category: W,
|
|
3638
|
-
showByFeatureFlag:
|
|
3638
|
+
showByFeatureFlag: U,
|
|
3639
3639
|
isCategoryCover: Z,
|
|
3640
|
-
...
|
|
3640
|
+
...X
|
|
3641
3641
|
} = F;
|
|
3642
3642
|
L = {
|
|
3643
|
-
...
|
|
3644
|
-
actions: m.actions.length > 0 ? m.actions :
|
|
3645
|
-
},
|
|
3643
|
+
...X,
|
|
3644
|
+
actions: m.actions.length > 0 ? m.actions : X.actions
|
|
3645
|
+
}, p.push(L), A = p.length - 1;
|
|
3646
3646
|
}
|
|
3647
3647
|
if (L) {
|
|
3648
3648
|
const F = a(m.subject), W = F ? d(F) : void 0;
|
|
3649
3649
|
if (!x && Object.keys(H).length === 0 && !!W && Mt(W, L))
|
|
3650
|
-
|
|
3650
|
+
p.splice(A, 1), L = void 0;
|
|
3651
3651
|
else {
|
|
3652
3652
|
if (L.actions = [
|
|
3653
3653
|
.../* @__PURE__ */ new Set([...L.actions, ...m.actions])
|
|
@@ -3655,16 +3655,16 @@ function mo(e, t, n) {
|
|
|
3655
3655
|
for (const Z of y)
|
|
3656
3656
|
Z.mode === "inherit" && (H = {
|
|
3657
3657
|
...H,
|
|
3658
|
-
...nt(
|
|
3658
|
+
...nt(Xe(W), Z.builder)
|
|
3659
3659
|
});
|
|
3660
|
-
Object.keys(H).length === 0 ? delete L.conditions : L.conditions = JSON.stringify(H),
|
|
3660
|
+
Object.keys(H).length === 0 ? delete L.conditions : L.conditions = JSON.stringify(H), p[A] = L;
|
|
3661
3661
|
}
|
|
3662
3662
|
}
|
|
3663
3663
|
const _ = () => {
|
|
3664
3664
|
const F = new Set(r.value);
|
|
3665
3665
|
for (const W of y) {
|
|
3666
|
-
const
|
|
3667
|
-
W.mode === "custom" ? F.add(
|
|
3666
|
+
const U = gt(m.subject, W.builder);
|
|
3667
|
+
W.mode === "custom" ? F.add(U) : F.delete(U);
|
|
3668
3668
|
}
|
|
3669
3669
|
r.value = F;
|
|
3670
3670
|
}, T = (F) => {
|
|
@@ -3672,20 +3672,20 @@ function mo(e, t, n) {
|
|
|
3672
3672
|
_(), n(F), (W = E.afterCommit) == null || W.call(E);
|
|
3673
3673
|
};
|
|
3674
3674
|
if (!sn(m.subject, t.value) || !L) {
|
|
3675
|
-
T(
|
|
3675
|
+
T(p);
|
|
3676
3676
|
return;
|
|
3677
3677
|
}
|
|
3678
3678
|
const j = y.map((F) => F.builder).filter((F) => k(m.subject, F).length > 0), P = () => {
|
|
3679
|
-
let F =
|
|
3680
|
-
for (const W of y.map((
|
|
3681
|
-
M(m.subject, W), F =
|
|
3679
|
+
let F = p;
|
|
3680
|
+
for (const W of y.map((U) => U.builder))
|
|
3681
|
+
M(m.subject, W), F = v(F, L, W);
|
|
3682
3682
|
T(F);
|
|
3683
3683
|
};
|
|
3684
3684
|
if (j.length > 0 && E.onOverridesConflict) {
|
|
3685
|
-
E.onOverridesConflict({ override: P, keep: () => T(
|
|
3685
|
+
E.onOverridesConflict({ override: P, keep: () => T(p) });
|
|
3686
3686
|
return;
|
|
3687
3687
|
}
|
|
3688
|
-
j.length > 0 ? T(
|
|
3688
|
+
j.length > 0 ? T(p) : P();
|
|
3689
3689
|
}
|
|
3690
3690
|
return {
|
|
3691
3691
|
getCoverSubject: a,
|
|
@@ -3695,11 +3695,11 @@ function mo(e, t, n) {
|
|
|
3695
3695
|
setInheritMode: w,
|
|
3696
3696
|
inheritedSummary: O,
|
|
3697
3697
|
getEffectiveActions: R,
|
|
3698
|
-
updateBuilderCondition:
|
|
3698
|
+
updateBuilderCondition: h,
|
|
3699
3699
|
applyConditionDrafts: S
|
|
3700
3700
|
};
|
|
3701
3701
|
}
|
|
3702
|
-
const
|
|
3702
|
+
const dl = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fl = { class: "h-[24px] w-[24px] flex items-center justify-center" }, _l = "condition-form-select-menu", Sl = /* @__PURE__ */ Ae({
|
|
3703
3703
|
__name: "PortalPermissionEditor",
|
|
3704
3704
|
props: /* @__PURE__ */ tn({
|
|
3705
3705
|
disable: {
|
|
@@ -3726,45 +3726,45 @@ const fo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, _o =
|
|
|
3726
3726
|
}),
|
|
3727
3727
|
emits: /* @__PURE__ */ tn(["permissionChanged"], ["update:modelValue"]),
|
|
3728
3728
|
setup(e, { emit: t }) {
|
|
3729
|
-
const n =
|
|
3729
|
+
const n = hr(e, "modelValue"), r = e, a = z(() => r.part === "all" ? "trailing" : "leading"), l = z(
|
|
3730
3730
|
() => r.part === "all" ? "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" : ""
|
|
3731
|
-
), f = t, { t: d } = Ke(), i =
|
|
3731
|
+
), f = t, { t: d } = Ke(), i = br(), g = gr(), { breakpoints: C } = yr(), O = z(() => C.value.xs || C.value.sm), {
|
|
3732
3732
|
fetchCustomReportPermissions: N,
|
|
3733
3733
|
customReportPermissions: w
|
|
3734
3734
|
} = Ir(), R = z(() => [
|
|
3735
3735
|
...Gn,
|
|
3736
3736
|
...w.value
|
|
3737
3737
|
]), k = z(() => {
|
|
3738
|
-
const s = i.currentBusiness.value, c = i.currentCountry.value,
|
|
3739
|
-
return
|
|
3738
|
+
const s = i.currentBusiness.value, c = i.currentCountry.value, b = c instanceof Object ? c.code : c;
|
|
3739
|
+
return cl(s, b);
|
|
3740
3740
|
});
|
|
3741
3741
|
function M(s) {
|
|
3742
3742
|
return R.value.find((c) => c.subject === s);
|
|
3743
3743
|
}
|
|
3744
|
-
function
|
|
3744
|
+
function v(s, c) {
|
|
3745
3745
|
return rn(s).filter(
|
|
3746
|
-
(
|
|
3746
|
+
(b) => {
|
|
3747
3747
|
var D;
|
|
3748
|
-
return ((D =
|
|
3748
|
+
return ((D = b.appliesToActions) == null ? void 0 : D.call(b, c)) ?? !0;
|
|
3749
3749
|
}
|
|
3750
3750
|
);
|
|
3751
3751
|
}
|
|
3752
|
-
const
|
|
3753
|
-
const s = R.value.filter((
|
|
3752
|
+
const h = z(() => {
|
|
3753
|
+
const s = R.value.filter((b) => !E.includes(b.subject)).map((b) => b.subject);
|
|
3754
3754
|
return Er(
|
|
3755
|
-
r.inheritPermissions.map((
|
|
3756
|
-
...
|
|
3757
|
-
permissions:
|
|
3755
|
+
r.inheritPermissions.map((b) => ({
|
|
3756
|
+
...b,
|
|
3757
|
+
permissions: b.permissions.filter((D) => s.includes(D.subject))
|
|
3758
3758
|
}))
|
|
3759
|
-
).map((
|
|
3760
|
-
id:
|
|
3761
|
-
setNames:
|
|
3759
|
+
).map((b) => ({
|
|
3760
|
+
id: b.subject,
|
|
3761
|
+
setNames: b.setNames
|
|
3762
3762
|
}));
|
|
3763
3763
|
}), S = z(() => {
|
|
3764
3764
|
const s = r.inheritPermissions.map((c) => ({
|
|
3765
3765
|
...c,
|
|
3766
3766
|
permissions: c.permissions.filter(
|
|
3767
|
-
(
|
|
3767
|
+
(b) => b.subject === ye.Subject.Business.inventory_stock
|
|
3768
3768
|
)
|
|
3769
3769
|
}));
|
|
3770
3770
|
return Lt(
|
|
@@ -3776,7 +3776,7 @@ const fo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, _o =
|
|
|
3776
3776
|
const s = r.inheritPermissions.map((c) => ({
|
|
3777
3777
|
...c,
|
|
3778
3778
|
permissions: c.permissions.filter(
|
|
3779
|
-
(
|
|
3779
|
+
(b) => b.subject === ye.Subject.Restaurant.restaurant
|
|
3780
3780
|
)
|
|
3781
3781
|
}));
|
|
3782
3782
|
return Lt(
|
|
@@ -3787,17 +3787,17 @@ const fo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, _o =
|
|
|
3787
3787
|
}), y = z(() => {
|
|
3788
3788
|
const s = r.inheritPermissions.map((c) => ({
|
|
3789
3789
|
...c,
|
|
3790
|
-
permissions: c.permissions.filter((
|
|
3790
|
+
permissions: c.permissions.filter((b) => b.subject === ye.Subject.Business.role)
|
|
3791
3791
|
}));
|
|
3792
3792
|
return Lt(
|
|
3793
3793
|
s,
|
|
3794
3794
|
"roleId",
|
|
3795
3795
|
T.value.map((c) => c._id)
|
|
3796
3796
|
);
|
|
3797
|
-
}), E = [...wr],
|
|
3797
|
+
}), E = [...wr], p = z(() => {
|
|
3798
3798
|
var c;
|
|
3799
3799
|
const s = (c = n.value) == null ? void 0 : c.find(
|
|
3800
|
-
(
|
|
3800
|
+
(b) => b.subject === ye.Subject.Business.inventory_stock
|
|
3801
3801
|
);
|
|
3802
3802
|
return s ? s.conditions ? JSON.parse(s.conditions).warehouseId.$in : null : [];
|
|
3803
3803
|
}), A = st([]), L = z(() => A.value.map((s) => ({
|
|
@@ -3809,7 +3809,7 @@ const fo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, _o =
|
|
|
3809
3809
|
n.value = c;
|
|
3810
3810
|
}
|
|
3811
3811
|
function x(s, c) {
|
|
3812
|
-
let
|
|
3812
|
+
let b = yt(
|
|
3813
3813
|
s.filter((D) => D.subject !== ye.Subject.Business.inventory_stock)
|
|
3814
3814
|
);
|
|
3815
3815
|
if (!c || c.length > 0) {
|
|
@@ -3817,56 +3817,56 @@ const fo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, _o =
|
|
|
3817
3817
|
actions: [ye.Action.manage],
|
|
3818
3818
|
subject: ye.Subject.Business.inventory_stock
|
|
3819
3819
|
};
|
|
3820
|
-
c && (D.conditions = JSON.stringify({ warehouseId: { $in: c } })),
|
|
3820
|
+
c && (D.conditions = JSON.stringify({ warehouseId: { $in: c } })), b.push(D);
|
|
3821
3821
|
}
|
|
3822
|
-
return
|
|
3822
|
+
return b;
|
|
3823
3823
|
}
|
|
3824
3824
|
const { restaurants: _ } = i, T = Dr().roles, j = z(() => _.value.map((s) => ({
|
|
3825
3825
|
label: `${s.profile.code ? s.profile.code + "-" : ""}${s.profile.name}`,
|
|
3826
3826
|
value: s._id
|
|
3827
|
-
}))), P = z(() => _.value.reduce((s, c) => (s[c._id] = T.value.filter((
|
|
3827
|
+
}))), P = z(() => _.value.reduce((s, c) => (s[c._id] = T.value.filter((b) => b.restaurants.some((D) => D.id === c._id)).map((b) => b._id), s), {})), F = z(() => Cr(n.value));
|
|
3828
3828
|
function W(s) {
|
|
3829
3829
|
const c = Z(n.value, s);
|
|
3830
3830
|
n.value = c;
|
|
3831
3831
|
}
|
|
3832
|
-
const
|
|
3832
|
+
const U = z(() => Nr(n.value));
|
|
3833
3833
|
function Z(s, c) {
|
|
3834
3834
|
var D;
|
|
3835
|
-
let
|
|
3835
|
+
let b = yt(
|
|
3836
3836
|
s.filter(
|
|
3837
|
-
(
|
|
3837
|
+
(V) => V.subject !== ye.Subject.Business.restaurant && V.subject !== ye.Subject.Restaurant.restaurant
|
|
3838
3838
|
)
|
|
3839
3839
|
);
|
|
3840
3840
|
if (!c || c.length > 0) {
|
|
3841
3841
|
const {
|
|
3842
|
-
category:
|
|
3842
|
+
category: V,
|
|
3843
3843
|
showByFeatureFlag: u,
|
|
3844
3844
|
...I
|
|
3845
3845
|
} = Rr.restaurant;
|
|
3846
|
-
|
|
3846
|
+
b.push(I);
|
|
3847
3847
|
const K = {
|
|
3848
3848
|
actions: [ye.Action.manage],
|
|
3849
3849
|
subject: ye.Subject.Restaurant.restaurant
|
|
3850
3850
|
};
|
|
3851
|
-
c && (K.conditions = JSON.stringify({ restaurantId: { $in: c } })),
|
|
3851
|
+
c && (K.conditions = JSON.stringify({ restaurantId: { $in: c } })), b.push(K);
|
|
3852
3852
|
}
|
|
3853
3853
|
if (c) {
|
|
3854
|
-
const
|
|
3854
|
+
const V = [
|
|
3855
3855
|
...new Set(c.map((I) => P.value[I]).flatMap((I) => I))
|
|
3856
3856
|
], u = T.value.map((I) => I._id);
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
(D =
|
|
3857
|
+
V.length !== u.length && (b = te(
|
|
3858
|
+
b,
|
|
3859
|
+
(D = U.value || u) == null ? void 0 : D.filter((I) => V.includes(I))
|
|
3860
3860
|
));
|
|
3861
3861
|
}
|
|
3862
|
-
return
|
|
3862
|
+
return b;
|
|
3863
3863
|
}
|
|
3864
|
-
function
|
|
3864
|
+
function X(s) {
|
|
3865
3865
|
const c = te(n.value, s);
|
|
3866
3866
|
n.value = c;
|
|
3867
3867
|
}
|
|
3868
3868
|
function te(s, c) {
|
|
3869
|
-
let
|
|
3869
|
+
let b = yt(
|
|
3870
3870
|
s.filter((D) => D.subject !== ye.Subject.Business.role)
|
|
3871
3871
|
);
|
|
3872
3872
|
if (c && c.length > 0) {
|
|
@@ -3875,52 +3875,52 @@ const fo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, _o =
|
|
|
3875
3875
|
subject: ye.Subject.Business.role,
|
|
3876
3876
|
conditions: JSON.stringify({ roleId: { $in: c } })
|
|
3877
3877
|
};
|
|
3878
|
-
|
|
3878
|
+
b.push(D);
|
|
3879
3879
|
}
|
|
3880
|
-
return
|
|
3880
|
+
return b;
|
|
3881
3881
|
}
|
|
3882
3882
|
xn(async () => {
|
|
3883
3883
|
await Promise.all([
|
|
3884
|
-
r.part !== "portal" &&
|
|
3884
|
+
r.part !== "portal" && al.readWarehouses().then((s) => A.value = s),
|
|
3885
3885
|
N()
|
|
3886
3886
|
]);
|
|
3887
3887
|
});
|
|
3888
3888
|
const Q = z(() => Zn(
|
|
3889
3889
|
n.value,
|
|
3890
|
-
|
|
3891
|
-
).filter((
|
|
3892
|
-
const D =
|
|
3893
|
-
return (D == null ? void 0 : D.type) !== "systemPermissionSet" ? !0 :
|
|
3894
|
-
}).map((
|
|
3895
|
-
if (
|
|
3896
|
-
const D =
|
|
3897
|
-
if (!D.includes("manage")) return
|
|
3898
|
-
const
|
|
3899
|
-
if (!
|
|
3900
|
-
const u =
|
|
3901
|
-
return u.length <= 1 || u.filter((K) => !D.includes(K)).length === 0 ?
|
|
3890
|
+
Bn
|
|
3891
|
+
).filter((b) => {
|
|
3892
|
+
const D = b.source;
|
|
3893
|
+
return (D == null ? void 0 : D.type) !== "systemPermissionSet" ? !0 : b.actions.includes("manage");
|
|
3894
|
+
}).map((b) => {
|
|
3895
|
+
if (b.inverted) return b;
|
|
3896
|
+
const D = b.actions;
|
|
3897
|
+
if (!D.includes("manage")) return b;
|
|
3898
|
+
const V = M(b.subject);
|
|
3899
|
+
if (!V) return b;
|
|
3900
|
+
const u = V.actions;
|
|
3901
|
+
return u.length <= 1 || u.filter((K) => !D.includes(K)).length === 0 ? b : { ...b, actions: [...u] };
|
|
3902
3902
|
}));
|
|
3903
3903
|
function de(s) {
|
|
3904
|
-
n.value =
|
|
3904
|
+
n.value = ll(
|
|
3905
3905
|
Q.value,
|
|
3906
3906
|
s,
|
|
3907
3907
|
n.value,
|
|
3908
3908
|
M
|
|
3909
3909
|
);
|
|
3910
3910
|
}
|
|
3911
|
-
const
|
|
3911
|
+
const pe = z(() => new Set(
|
|
3912
3912
|
R.value.filter((s) => rn(s.subject).length > 0).map((s) => s.subject)
|
|
3913
|
-
)),
|
|
3913
|
+
)), he = z(() => {
|
|
3914
3914
|
const s = /* @__PURE__ */ new Map();
|
|
3915
3915
|
return Q.value.map((c) => ({
|
|
3916
3916
|
rule: c,
|
|
3917
3917
|
index: n.value.findIndex(
|
|
3918
|
-
(
|
|
3918
|
+
(b) => !b.inverted && b.subject === c.subject
|
|
3919
3919
|
)
|
|
3920
|
-
})).filter(({ rule: c }) => !c.inverted).forEach(({ rule: c, index:
|
|
3920
|
+
})).filter(({ rule: c }) => !c.inverted).forEach(({ rule: c, index: b }) => {
|
|
3921
3921
|
var I;
|
|
3922
|
-
const D = c.actions,
|
|
3923
|
-
if (
|
|
3922
|
+
const D = c.actions, V = v(c.subject, D);
|
|
3923
|
+
if (V.length === 0) return;
|
|
3924
3924
|
let u;
|
|
3925
3925
|
try {
|
|
3926
3926
|
u = c.conditions ? JSON.parse(c.conditions) : void 0;
|
|
@@ -3928,98 +3928,98 @@ const fo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, _o =
|
|
|
3928
3928
|
u = void 0;
|
|
3929
3929
|
}
|
|
3930
3930
|
s.set(c.subject, {
|
|
3931
|
-
index:
|
|
3931
|
+
index: b >= 0 ? b : null,
|
|
3932
3932
|
subject: c.subject,
|
|
3933
3933
|
label: ((I = M(c.subject)) == null ? void 0 : I.label) ?? c.subject,
|
|
3934
3934
|
actions: D,
|
|
3935
3935
|
// Each builder only ever sees its own slice of the stored condition.
|
|
3936
|
-
sections:
|
|
3936
|
+
sections: V.map((K) => ({
|
|
3937
3937
|
builder: K,
|
|
3938
3938
|
formValue: K.fromCondition(nt(u, K))
|
|
3939
3939
|
}))
|
|
3940
3940
|
});
|
|
3941
3941
|
}), s;
|
|
3942
|
-
}), ae =
|
|
3942
|
+
}), ae = ml(n, R, (s) => {
|
|
3943
3943
|
n.value = s;
|
|
3944
|
-
}),
|
|
3945
|
-
function
|
|
3946
|
-
const
|
|
3947
|
-
if (
|
|
3948
|
-
const D = ae.getEffectiveActions(s),
|
|
3949
|
-
if (
|
|
3944
|
+
}), oe = Or(n), Re = st(null);
|
|
3945
|
+
function B(s, c) {
|
|
3946
|
+
const b = he.value.get(s);
|
|
3947
|
+
if (b) return b;
|
|
3948
|
+
const D = ae.getEffectiveActions(s), V = v(s, D);
|
|
3949
|
+
if (V.length !== 0)
|
|
3950
3950
|
return {
|
|
3951
3951
|
index: null,
|
|
3952
3952
|
subject: s,
|
|
3953
3953
|
label: c,
|
|
3954
3954
|
actions: D,
|
|
3955
|
-
sections:
|
|
3955
|
+
sections: V.map((u) => ({
|
|
3956
3956
|
builder: u,
|
|
3957
3957
|
formValue: u.fromCondition(void 0)
|
|
3958
3958
|
}))
|
|
3959
3959
|
};
|
|
3960
3960
|
}
|
|
3961
3961
|
function fe(s, c) {
|
|
3962
|
-
const
|
|
3963
|
-
if (
|
|
3964
|
-
const D = s.sections.find((
|
|
3962
|
+
const b = oe.getDraft({ subject: s.subject, builderKey: c.builderKey });
|
|
3963
|
+
if (b) return b.formValue;
|
|
3964
|
+
const D = s.sections.find((V) => V.builder.builderKey === c.builderKey);
|
|
3965
3965
|
return D == null ? void 0 : D.formValue;
|
|
3966
3966
|
}
|
|
3967
3967
|
function Je(s, c) {
|
|
3968
|
-
const
|
|
3969
|
-
return
|
|
3968
|
+
const b = oe.getDraft({ subject: s.subject, builderKey: c.builderKey });
|
|
3969
|
+
return b != null && b.inheritMode ? b.inheritMode : ae.inheritMode(s, c);
|
|
3970
3970
|
}
|
|
3971
|
-
function Qe(s, c,
|
|
3972
|
-
const D =
|
|
3971
|
+
function Qe(s, c, b) {
|
|
3972
|
+
const D = oe.getDraft({
|
|
3973
3973
|
subject: s.subject,
|
|
3974
3974
|
builderKey: c.builderKey
|
|
3975
3975
|
});
|
|
3976
|
-
|
|
3976
|
+
oe.setDraft(
|
|
3977
3977
|
{ subject: s.subject, builderKey: c.builderKey },
|
|
3978
3978
|
{
|
|
3979
|
-
formValue:
|
|
3979
|
+
formValue: b,
|
|
3980
3980
|
inheritMode: (D == null ? void 0 : D.inheritMode) ?? Je(s, c)
|
|
3981
3981
|
}
|
|
3982
3982
|
);
|
|
3983
3983
|
}
|
|
3984
|
-
function We(s, c,
|
|
3985
|
-
const D =
|
|
3984
|
+
function We(s, c, b) {
|
|
3985
|
+
const D = oe.getDraft({
|
|
3986
3986
|
subject: s.subject,
|
|
3987
3987
|
builderKey: c.builderKey
|
|
3988
|
-
}),
|
|
3989
|
-
|
|
3988
|
+
}), V = s.sections.find((u) => u.builder.builderKey === c.builderKey);
|
|
3989
|
+
oe.setDraft(
|
|
3990
3990
|
{ subject: s.subject, builderKey: c.builderKey },
|
|
3991
3991
|
{
|
|
3992
|
-
formValue: (D == null ? void 0 : D.formValue) ?? (
|
|
3993
|
-
inheritMode:
|
|
3992
|
+
formValue: (D == null ? void 0 : D.formValue) ?? (V == null ? void 0 : V.formValue),
|
|
3993
|
+
inheritMode: b
|
|
3994
3994
|
}
|
|
3995
3995
|
);
|
|
3996
3996
|
}
|
|
3997
3997
|
function Fe(s) {
|
|
3998
|
-
return
|
|
3998
|
+
return oe.hasDraftsForSubject(s);
|
|
3999
3999
|
}
|
|
4000
4000
|
function Pe(s, c) {
|
|
4001
|
-
const
|
|
4002
|
-
const
|
|
4001
|
+
const b = s.sections.flatMap((D) => {
|
|
4002
|
+
const V = oe.getDraft({
|
|
4003
4003
|
subject: s.subject,
|
|
4004
4004
|
builderKey: D.builder.builderKey
|
|
4005
4005
|
});
|
|
4006
|
-
return
|
|
4006
|
+
return V ? [{ builder: D.builder, form: V.formValue, mode: V.inheritMode ?? "custom" }] : [];
|
|
4007
4007
|
});
|
|
4008
|
-
ae.applyConditionDrafts(s,
|
|
4008
|
+
ae.applyConditionDrafts(s, b, {
|
|
4009
4009
|
afterCommit: () => {
|
|
4010
|
-
|
|
4010
|
+
oe.clearDraftsForSubject(s.subject), c();
|
|
4011
4011
|
},
|
|
4012
|
-
onOverridesConflict:
|
|
4012
|
+
onOverridesConflict: o(s).onOverridesConflict
|
|
4013
4013
|
});
|
|
4014
4014
|
}
|
|
4015
4015
|
function Ge(s) {
|
|
4016
4016
|
return s.sections.some((c) => ae.shouldShowInheritToggle(s, c.builder) ? ae.inheritMode(s, c.builder) === "custom" : Object.keys(c.builder.toCondition(c.formValue)).length > 0);
|
|
4017
4017
|
}
|
|
4018
4018
|
let je = !1;
|
|
4019
|
-
function
|
|
4019
|
+
function o(s, c = {}) {
|
|
4020
4020
|
return {
|
|
4021
4021
|
...c,
|
|
4022
|
-
onOverridesConflict: ({ override:
|
|
4022
|
+
onOverridesConflict: ({ override: b, keep: D }) => {
|
|
4023
4023
|
je || (je = !0, g.open({
|
|
4024
4024
|
title: d("team.memberForm.permissions.conditionCover.confirmTitle"),
|
|
4025
4025
|
message: d("team.memberForm.permissions.conditionCover.confirmMessage", {
|
|
@@ -4036,7 +4036,7 @@ const fo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, _o =
|
|
|
4036
4036
|
close: !1
|
|
4037
4037
|
}
|
|
4038
4038
|
}).onPrimary(() => {
|
|
4039
|
-
|
|
4039
|
+
b(), je = !1, g.close();
|
|
4040
4040
|
}).onSecondary(() => {
|
|
4041
4041
|
D(), je = !1, g.close();
|
|
4042
4042
|
}).onClose(() => {
|
|
@@ -4052,122 +4052,122 @@ const fo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, _o =
|
|
|
4052
4052
|
},
|
|
4053
4053
|
{ deep: !0 }
|
|
4054
4054
|
), (s, c) => {
|
|
4055
|
-
const
|
|
4055
|
+
const b = De("FmIcon"), D = De("FmBottomSheet"), V = De("FmPopover");
|
|
4056
4056
|
return J(), re("div", {
|
|
4057
4057
|
class: Ee(["flex flex-col", e.part === "all" ? "gap-32" : "gap-16"])
|
|
4058
4058
|
}, [
|
|
4059
4059
|
e.part !== "workplace" ? (J(), re("div", {
|
|
4060
4060
|
key: 0,
|
|
4061
|
-
class: Ee(
|
|
4061
|
+
class: Ee(l.value)
|
|
4062
4062
|
}, [
|
|
4063
|
-
|
|
4063
|
+
le(Ha, {
|
|
4064
4064
|
"model-value": Q.value,
|
|
4065
4065
|
"excluded-subjects": E,
|
|
4066
|
-
"additional-permissions":
|
|
4066
|
+
"additional-permissions": Y(w),
|
|
4067
4067
|
layout: a.value,
|
|
4068
4068
|
"onUpdate:modelValue": de
|
|
4069
4069
|
}, tt({ _: 2 }, [
|
|
4070
|
-
Ce(
|
|
4070
|
+
Ce(h.value, (u) => ({
|
|
4071
4071
|
name: `checkbox-${u.id}-append`,
|
|
4072
4072
|
fn: ce(() => [
|
|
4073
|
-
|
|
4073
|
+
le(pt, { item: u }, null, 8, ["item"])
|
|
4074
4074
|
])
|
|
4075
4075
|
})),
|
|
4076
|
-
Ce(
|
|
4076
|
+
Ce(pe.value, (u) => ({
|
|
4077
4077
|
name: `checkbox-${u}-icon`,
|
|
4078
4078
|
fn: ce(({ option: I, isEffectiveSelected: K }) => [
|
|
4079
|
-
K &&
|
|
4079
|
+
K && B(u, I.label) ? (J(), re(we, { key: 0 }, [
|
|
4080
4080
|
O.value ? (J(), Te(D, {
|
|
4081
4081
|
key: 0,
|
|
4082
4082
|
"model-value": Re.value === u,
|
|
4083
|
-
header:
|
|
4084
|
-
context:
|
|
4083
|
+
header: Y(d)("team.memberForm.permissions.conditionTitle", {
|
|
4084
|
+
context: B(u, I.label).label
|
|
4085
4085
|
}),
|
|
4086
4086
|
"dismiss-away": "",
|
|
4087
4087
|
"z-index": 100,
|
|
4088
4088
|
class: "h-5 flex items-center",
|
|
4089
4089
|
"onUpdate:modelValue": ($) => {
|
|
4090
|
-
Re.value = $ ? u : null, $ ||
|
|
4090
|
+
Re.value = $ ? u : null, $ || Y(oe).clearDraftsForSubject(u);
|
|
4091
4091
|
}
|
|
4092
4092
|
}, {
|
|
4093
4093
|
"bottom-sheet-button": ce(() => [
|
|
4094
|
-
ie("div",
|
|
4095
|
-
|
|
4094
|
+
ie("div", dl, [
|
|
4095
|
+
le(b, {
|
|
4096
4096
|
name: "settings",
|
|
4097
4097
|
size: "sm",
|
|
4098
4098
|
class: Ee([
|
|
4099
4099
|
"cursor-pointer transition-colors",
|
|
4100
|
-
Ge(
|
|
4100
|
+
Ge(B(u, I.label)) ? "text-fm-color-primary-main" : "text-fm-color-neutral-gray-400 hover:text-fm-color-neutral-gray-600"
|
|
4101
4101
|
])
|
|
4102
4102
|
}, null, 8, ["class"])
|
|
4103
4103
|
])
|
|
4104
4104
|
]),
|
|
4105
4105
|
default: ce(() => [
|
|
4106
|
-
|
|
4107
|
-
entry:
|
|
4108
|
-
builders:
|
|
4106
|
+
le(Fn, {
|
|
4107
|
+
entry: B(u, I.label),
|
|
4108
|
+
builders: B(u, I.label).sections.map(($) => $.builder),
|
|
4109
4109
|
subject: u,
|
|
4110
4110
|
"time-zone": k.value,
|
|
4111
|
-
"cover-override":
|
|
4112
|
-
"inherit-mode-for": ($) => Je(
|
|
4113
|
-
"form-value-for": ($) => fe(
|
|
4111
|
+
"cover-override": Y(ae),
|
|
4112
|
+
"inherit-mode-for": ($) => Je(B(u, I.label), $),
|
|
4113
|
+
"form-value-for": ($) => fe(B(u, I.label), $),
|
|
4114
4114
|
"has-changes": Fe(u),
|
|
4115
4115
|
disable: e.disable,
|
|
4116
4116
|
"full-width": !0,
|
|
4117
|
-
onUpdateInheritMode: ({ builder: $, mode: me }) => We(
|
|
4118
|
-
onUpdateForm: ({ builder: $, form: me }) => Qe(
|
|
4119
|
-
onApply: ($) => Pe(
|
|
4117
|
+
onUpdateInheritMode: ({ builder: $, mode: me }) => We(B(u, I.label), $, me),
|
|
4118
|
+
onUpdateForm: ({ builder: $, form: me }) => Qe(B(u, I.label), $, me),
|
|
4119
|
+
onApply: ($) => Pe(B(u, I.label), () => Re.value = null)
|
|
4120
4120
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4121
4121
|
]),
|
|
4122
4122
|
_: 2
|
|
4123
|
-
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (J(), Te(
|
|
4123
|
+
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (J(), Te(V, {
|
|
4124
4124
|
key: 1,
|
|
4125
4125
|
disabled: e.disable,
|
|
4126
4126
|
"z-index": 100,
|
|
4127
|
-
"exclude-el-from-click-outside": [
|
|
4127
|
+
"exclude-el-from-click-outside": [_l],
|
|
4128
4128
|
class: "h-5 flex items-center",
|
|
4129
4129
|
onPopoverChanged: ($) => {
|
|
4130
|
-
$ ||
|
|
4130
|
+
$ || Y(oe).clearDraftsForSubject(u);
|
|
4131
4131
|
}
|
|
4132
4132
|
}, {
|
|
4133
4133
|
"popover-button": ce(() => [
|
|
4134
|
-
ie("div",
|
|
4135
|
-
|
|
4134
|
+
ie("div", fl, [
|
|
4135
|
+
le(b, {
|
|
4136
4136
|
name: "settings",
|
|
4137
4137
|
size: "sm",
|
|
4138
4138
|
class: Ee([
|
|
4139
4139
|
"cursor-pointer transition-colors",
|
|
4140
|
-
Ge(
|
|
4140
|
+
Ge(B(u, I.label)) ? "text-fm-color-primary-main" : "text-fm-color-neutral-gray-400 hover:text-fm-color-neutral-gray-600"
|
|
4141
4141
|
])
|
|
4142
4142
|
}, null, 8, ["class"])
|
|
4143
4143
|
])
|
|
4144
4144
|
]),
|
|
4145
4145
|
default: ce(({ hide: $ }) => [
|
|
4146
|
-
|
|
4147
|
-
entry:
|
|
4148
|
-
builders:
|
|
4146
|
+
le(Fn, {
|
|
4147
|
+
entry: B(u, I.label),
|
|
4148
|
+
builders: B(u, I.label).sections.map((me) => me.builder),
|
|
4149
4149
|
subject: u,
|
|
4150
4150
|
"time-zone": k.value,
|
|
4151
|
-
"cover-override":
|
|
4152
|
-
title:
|
|
4153
|
-
context:
|
|
4151
|
+
"cover-override": Y(ae),
|
|
4152
|
+
title: Y(d)("team.memberForm.permissions.conditionTitle", {
|
|
4153
|
+
context: B(u, I.label).label
|
|
4154
4154
|
}),
|
|
4155
|
-
"inherit-mode-for": (me) => Je(
|
|
4156
|
-
"form-value-for": (me) => fe(
|
|
4155
|
+
"inherit-mode-for": (me) => Je(B(u, I.label), me),
|
|
4156
|
+
"form-value-for": (me) => fe(B(u, I.label), me),
|
|
4157
4157
|
"has-changes": Fe(u),
|
|
4158
4158
|
disable: e.disable,
|
|
4159
4159
|
onUpdateInheritMode: ({ builder: me, mode: Ze }) => We(
|
|
4160
|
-
|
|
4160
|
+
B(u, I.label),
|
|
4161
4161
|
me,
|
|
4162
4162
|
Ze
|
|
4163
4163
|
),
|
|
4164
|
-
onUpdateForm: ({ builder: me, form: Ze }) => Qe(
|
|
4165
|
-
onApply: (me) => Pe(
|
|
4164
|
+
onUpdateForm: ({ builder: me, form: Ze }) => Qe(B(u, I.label), me, Ze),
|
|
4165
|
+
onApply: (me) => Pe(B(u, I.label), $)
|
|
4166
4166
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "title", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4167
4167
|
]),
|
|
4168
4168
|
_: 2
|
|
4169
4169
|
}, 1032, ["disabled", "exclude-el-from-click-outside", "onPopoverChanged"]))
|
|
4170
|
-
], 64)) : (J(), Te(
|
|
4170
|
+
], 64)) : (J(), Te(b, {
|
|
4171
4171
|
key: 1,
|
|
4172
4172
|
name: "settings",
|
|
4173
4173
|
size: "sm",
|
|
@@ -4179,57 +4179,57 @@ const fo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, _o =
|
|
|
4179
4179
|
], 2)) : Ne("", !0),
|
|
4180
4180
|
e.part !== "portal" ? (J(), re("div", {
|
|
4181
4181
|
key: 1,
|
|
4182
|
-
class: Ee(
|
|
4182
|
+
class: Ee(l.value)
|
|
4183
4183
|
}, [
|
|
4184
|
-
|
|
4185
|
-
"model-value":
|
|
4184
|
+
le(Dn, {
|
|
4185
|
+
"model-value": p.value,
|
|
4186
4186
|
options: L.value,
|
|
4187
|
-
context:
|
|
4187
|
+
context: Y(d)("team.labels.warehouse"),
|
|
4188
4188
|
layout: a.value,
|
|
4189
4189
|
"onUpdate:modelValue": H
|
|
4190
4190
|
}, tt({ _: 2 }, [
|
|
4191
4191
|
Ce(S.value, (u) => ({
|
|
4192
4192
|
name: `checkbox-${u.id}-append`,
|
|
4193
4193
|
fn: ce(() => [
|
|
4194
|
-
|
|
4194
|
+
le(pt, { item: u }, null, 8, ["item"])
|
|
4195
4195
|
])
|
|
4196
4196
|
}))
|
|
4197
4197
|
]), 1032, ["model-value", "options", "context", "layout"])
|
|
4198
4198
|
], 2)) : Ne("", !0),
|
|
4199
4199
|
e.part !== "portal" ? (J(), re("div", {
|
|
4200
4200
|
key: 2,
|
|
4201
|
-
class: Ee([
|
|
4201
|
+
class: Ee([l.value, { "order-first": e.part === "workplace" }])
|
|
4202
4202
|
}, [
|
|
4203
|
-
|
|
4203
|
+
le(Dn, {
|
|
4204
4204
|
"model-value": F.value,
|
|
4205
4205
|
options: j.value,
|
|
4206
|
-
context:
|
|
4206
|
+
context: Y(d)("team.labels.restaurant"),
|
|
4207
4207
|
layout: a.value,
|
|
4208
4208
|
"onUpdate:modelValue": W
|
|
4209
4209
|
}, tt({ _: 2 }, [
|
|
4210
4210
|
Ce(m.value, (u) => ({
|
|
4211
4211
|
name: `checkbox-${u.id}-append`,
|
|
4212
4212
|
fn: ce(() => [
|
|
4213
|
-
|
|
4213
|
+
le(pt, { item: u }, null, 8, ["item"])
|
|
4214
4214
|
])
|
|
4215
4215
|
}))
|
|
4216
4216
|
]), 1032, ["model-value", "options", "context", "layout"])
|
|
4217
4217
|
], 2)) : Ne("", !0),
|
|
4218
4218
|
e.part !== "portal" ? (J(), re("div", {
|
|
4219
4219
|
key: 3,
|
|
4220
|
-
class: Ee(
|
|
4220
|
+
class: Ee(l.value)
|
|
4221
4221
|
}, [
|
|
4222
|
-
|
|
4223
|
-
roles:
|
|
4224
|
-
"model-value":
|
|
4222
|
+
le(tl, {
|
|
4223
|
+
roles: Y(T),
|
|
4224
|
+
"model-value": U.value,
|
|
4225
4225
|
"restaurant-ids": F.value,
|
|
4226
4226
|
layout: a.value,
|
|
4227
|
-
"onUpdate:modelValue":
|
|
4227
|
+
"onUpdate:modelValue": X
|
|
4228
4228
|
}, tt({ _: 2 }, [
|
|
4229
4229
|
Ce(y.value, (u) => ({
|
|
4230
4230
|
name: `checkbox-${u.id}-append`,
|
|
4231
4231
|
fn: ce(() => [
|
|
4232
|
-
|
|
4232
|
+
le(pt, { item: u }, null, 8, ["item"])
|
|
4233
4233
|
])
|
|
4234
4234
|
}))
|
|
4235
4235
|
]), 1032, ["roles", "model-value", "restaurant-ids", "layout"])
|
|
@@ -4239,5 +4239,5 @@ const fo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, _o =
|
|
|
4239
4239
|
}
|
|
4240
4240
|
});
|
|
4241
4241
|
export {
|
|
4242
|
-
|
|
4242
|
+
Sl as _
|
|
4243
4243
|
};
|