@feedmepos/mf-hrm-portal 2.3.2-dev.6 → 2.3.2-dev.7
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-ix9OeJEQ.js → ApprovalCodeList-Bw0E-hZl.js} +7 -7
- package/dist/{AuditLogList-D5H_O9Q0.js → AuditLogList-CA-_t77n.js} +5 -5
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CuELLYY4.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-LtjNCAFN.js} +2 -2
- package/dist/{EmployeeList-DICzZjVM.js → EmployeeList-D_bX0EhQ.js} +8 -8
- package/dist/{FormSection.vue_vue_type_script_setup_true_lang-BQzSWAqC.js → FormSection.vue_vue_type_script_setup_true_lang-CyZxQa-b.js} +1 -1
- package/dist/{GrantUserList-DoMN7Eks.js → GrantUserList-Cg7ITk_M.js} +8 -8
- package/dist/{Main-CQ42sYi9.js → Main-BaB4vgI5.js} +11 -11
- package/dist/{Main-CHIExpOV.js → Main-Bl-Ocx1G.js} +5 -5
- package/dist/{Main-DwYh9cxQ.js → Main-D5wi42fp.js} +10 -10
- package/dist/{MyPosProfile-DaUdREQX.js → MyPosProfile-CUG_201f.js} +1 -1
- package/dist/{PermissionSetList-B7WM9N-p.js → PermissionSetList-kgG9H3DX.js} +6 -6
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BSVtyLlL.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-y1YcZpGA.js} +755 -755
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-C7fnnbme.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-fQyCtDXM.js} +1 -1
- package/dist/{RoleForm.vue_vue_type_script_setup_true_lang-AbQIllkX.js → RoleForm.vue_vue_type_script_setup_true_lang-3Q8udk43.js} +9 -9
- package/dist/{RoleList-vQsHxlNc.js → RoleList-Cmz97HHP.js} +7 -7
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-D52LhvGG.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CggEy3OI.js} +1 -1
- package/dist/{ScheduleGeneralPage-BLqh7jH6.js → ScheduleGeneralPage-B39k3SQH.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-C9doSgov.js → ScheduleModal.vue_vue_type_script_setup_true_lang-C5j3D4eF.js} +4 -4
- package/dist/{SchedulePage-YADV_6w9.js → SchedulePage-AVmRkFi1.js} +9 -9
- package/dist/{SchedulePositionPage-BowDQMG_.js → SchedulePositionPage-3rE-O8CG.js} +3 -3
- package/dist/{SelectFilter-CBp1qxLd.js → SelectFilter-R7ry_GEg.js} +1 -1
- package/dist/{TeamMemberList-BoJ87moU.js → TeamMemberList-CvDnIILn.js} +12 -12
- package/dist/{TimesheetList-BULw75oo.js → TimesheetList-DYoglTi8.js} +62 -62
- package/dist/TimesheetList.vue_vue_type_style_index_0_scoped_d0c6fd51_lang-DBpzyQ17.js +63 -0
- package/dist/{app-DOFDND9j.js → app-DKUCzcrc.js} +10 -10
- package/dist/app.js +1 -1
- package/dist/{approval-code-Dgj6S82q.js → approval-code-nsETgIry.js} +1 -1
- package/dist/{dayjs.min-AoirQCgL.js → dayjs.min-CtULWW1N.js} +1 -1
- package/dist/{employee-VB6YmuSS.js → employee-DlsSqR3i.js} +5 -5
- package/dist/{grant-user-C-ptrq7l.js → grant-user-Dpa_Rl6j.js} +1 -1
- package/dist/{iteration-DmuDXP8U.js → iteration-DpHBtiyr.js} +1 -1
- package/dist/{lodash-CBFO-xTu.js → lodash-YaHCUo_F.js} +1 -1
- package/dist/{member-grant-CHOB8eQ_.js → member-grant-CEokFI3_.js} +2 -2
- package/dist/{restaurant-DH2Fxzi7.js → restaurant-CDFKqEFm.js} +1 -1
- package/dist/{role-DUpHwRiY.js → role-DyBVVlEA.js} +3 -3
- package/dist/{rule-aUPH1VOW.js → rule-xErZqYmH.js} +3 -3
- package/dist/src/api/timesheet/index.d.ts +1 -1
- package/dist/src/stores/timesheet.d.ts +6 -6
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DwmJbpf-.js → useAppStore-BqsvPsPB.js} +1 -1
- package/dist/{useLoading-Dmlm4oSU.js → useLoading-BS1bnZg1.js} +1 -1
- package/dist/{useReportPermissions-XPn-p57R.js → useReportPermissions-DJEhkyGc.js} +3 -3
- package/package.json +1 -1
- package/dist/TimesheetList.vue_vue_type_style_index_0_scoped_c98b0b84_lang-VlnjH9aQ.js +0 -58
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
1
|
+
import { getCurrentInstance as Yt, inject as ur, ref as st, shallowRef as dr, computed as K, watch as Mt, onMounted as Un, onUnmounted as mr, defineComponent as ke, h as Vn, createVNode as oe, Text as fr, Fragment as Me, resolveComponent as De, createBlock as Ne, openBlock as J, withCtx as ce, createElementVNode as ie, createElementBlock as re, toDisplayString as Oe, unref as X, renderList as Ee, toRef as qt, normalizeStyle as rt, renderSlot as Se, createCommentVNode as Te, normalizeClass as ye, createTextVNode as _r, useSlots as pr, createSlots as tt, mergeModels as en, useModel as vr } from "vue";
|
|
2
2
|
import { useI18n as Ke, useCoreStore as hr } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialog as br, useBreakpoints as gr } from "@feedmepos/ui-library";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { p as Wn, i as Gn, V as tn, K as Ir, a as yr, j as Er, H as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { u as
|
|
8
|
-
import { c as
|
|
9
|
-
import { r as
|
|
10
|
-
import { W as
|
|
11
|
-
import { u as Fr } from "./role-
|
|
5
|
+
import { p as Wn, i as Gn, V as tn, K as Ir, a as yr, j as Er, H as Tr, L as Nr, D as Cr, x as Or } from "./rule-xErZqYmH.js";
|
|
6
|
+
import { _ as Bt, a as Sr, b as nn, u as Lr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-LtjNCAFN.js";
|
|
7
|
+
import { u as kr, v as Ar, g as Rr, b as Mr, P as Zn, S as Dt, A as nt, m as Ye, j as rn } from "./app-DKUCzcrc.js";
|
|
8
|
+
import { c as Yn } from "./iteration-DpHBtiyr.js";
|
|
9
|
+
import { r as Dr, s as Bn } from "./string-DZQ1uNjn.js";
|
|
10
|
+
import { W as wr } from "./member-grant-CEokFI3_.js";
|
|
11
|
+
import { u as Fr } from "./role-DyBVVlEA.js";
|
|
12
12
|
function St(e, t, n) {
|
|
13
13
|
const r = /* @__PURE__ */ new Map();
|
|
14
14
|
return e.forEach(
|
|
@@ -16,9 +16,9 @@ function St(e, t, n) {
|
|
|
16
16
|
var b, E;
|
|
17
17
|
const i = JSON.parse(f || "{}");
|
|
18
18
|
(b = i[t]) != null && b.$in ? (E = i[t]) == null || E.$in.forEach(
|
|
19
|
-
(
|
|
20
|
-
) : m[0] === "manage" && n.forEach((
|
|
21
|
-
(r.get(
|
|
19
|
+
(N) => (r.get(N) ?? r.set(N, /* @__PURE__ */ new Set()).get(N)).add(a)
|
|
20
|
+
) : m[0] === "manage" && n.forEach((N) => {
|
|
21
|
+
(r.get(N) ?? r.set(N, /* @__PURE__ */ new Set()).get(N)).add(a);
|
|
22
22
|
});
|
|
23
23
|
})
|
|
24
24
|
), [...r].map(([a, o]) => ({
|
|
@@ -31,7 +31,7 @@ function St(e, t, n) {
|
|
|
31
31
|
* (c) 2024 kazuya kawaguchi
|
|
32
32
|
* Released under the MIT License.
|
|
33
33
|
*/
|
|
34
|
-
const sn = typeof window < "u", ze = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Pr = (e, t, n) => jr({ l: e, k: t, s: n }), jr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), be = (e) => typeof e == "number" && isFinite(e),
|
|
34
|
+
const sn = typeof window < "u", ze = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Pr = (e, t, n) => jr({ l: e, k: t, s: n }), jr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), be = (e) => typeof e == "number" && isFinite(e), xr = (e) => Xt(e) === "[object Date]", yt = (e) => Xt(e) === "[object RegExp]", Tt = (e) => q(e) && Object.keys(e).length === 0, ge = Object.assign, Ur = Object.create, se = (e = null) => Ur(e);
|
|
35
35
|
let an;
|
|
36
36
|
const $e = () => an || (an = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : se());
|
|
37
37
|
function on(e) {
|
|
@@ -45,7 +45,7 @@ const pe = Array.isArray, ue = (e) => typeof e == "function", W = (e) => typeof
|
|
|
45
45
|
function Ht(e, t = "") {
|
|
46
46
|
return e.reduce((n, r, a) => a === 0 ? n + r : n + t + r, "");
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Zr(e, t) {
|
|
49
49
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
50
50
|
}
|
|
51
51
|
const ft = (e) => !ee(e) || pe(e);
|
|
@@ -60,10 +60,10 @@ function It(e, t) {
|
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Yr(e, t, n) {
|
|
64
64
|
return { line: e, column: t, offset: n };
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function wt(e, t, n) {
|
|
67
67
|
return { start: e, end: t };
|
|
68
68
|
}
|
|
69
69
|
const ne = {
|
|
@@ -83,8 +83,8 @@ const ne = {
|
|
|
83
83
|
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
84
84
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
85
85
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
86
|
-
},
|
|
87
|
-
function
|
|
86
|
+
}, Br = 17;
|
|
87
|
+
function Nt(e, t, n = {}) {
|
|
88
88
|
const { domain: r, messages: a, args: o } = n, f = e, m = new SyntaxError(String(f));
|
|
89
89
|
return m.code = e, t && (m.location = t), m.domain = r, m;
|
|
90
90
|
}
|
|
@@ -96,7 +96,7 @@ const je = " ", Hr = "\r", Ie = `
|
|
|
96
96
|
function Kr(e) {
|
|
97
97
|
const t = e;
|
|
98
98
|
let n = 0, r = 1, a = 1, o = 0;
|
|
99
|
-
const f = (v) => t[v] === Hr && t[v + 1] === Ie, m = (v) => t[v] === Ie, i = (v) => t[v] === $r, b = (v) => t[v] === Jr, E = (v) => f(v) || m(v) || i(v) || b(v),
|
|
99
|
+
const f = (v) => t[v] === Hr && t[v + 1] === Ie, m = (v) => t[v] === Ie, i = (v) => t[v] === $r, b = (v) => t[v] === Jr, E = (v) => f(v) || m(v) || i(v) || b(v), N = () => n, C = () => r, D = () => a, R = () => o, k = (v) => f(v) || i(v) || b(v) ? Ie : t[v], M = () => k(n), p = () => k(n + o);
|
|
100
100
|
function h() {
|
|
101
101
|
return o = 0, E(n) && (r++, a = 0), f(n) && n++, n++, a++, t[n];
|
|
102
102
|
}
|
|
@@ -116,11 +116,11 @@ function Kr(e) {
|
|
|
116
116
|
o = 0;
|
|
117
117
|
}
|
|
118
118
|
return {
|
|
119
|
-
index:
|
|
120
|
-
line:
|
|
121
|
-
column:
|
|
119
|
+
index: N,
|
|
120
|
+
line: C,
|
|
121
|
+
column: D,
|
|
122
122
|
peekOffset: R,
|
|
123
|
-
charAt:
|
|
123
|
+
charAt: k,
|
|
124
124
|
currentChar: M,
|
|
125
125
|
currentPeek: p,
|
|
126
126
|
next: h,
|
|
@@ -130,9 +130,9 @@ function Kr(e) {
|
|
|
130
130
|
skipToPeek: y
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
const
|
|
133
|
+
const Ze = void 0, zr = ".", ln = "'", Qr = "tokenizer";
|
|
134
134
|
function qr(e, t = {}) {
|
|
135
|
-
const n = t.location !== !1, r = Kr(e), a = () => r.index(), o = () =>
|
|
135
|
+
const n = t.location !== !1, r = Kr(e), a = () => r.index(), o = () => Yr(r.line(), r.column(), r.index()), f = o(), m = a(), i = {
|
|
136
136
|
currentType: 13,
|
|
137
137
|
offset: m,
|
|
138
138
|
startLoc: f,
|
|
@@ -145,41 +145,41 @@ function qr(e, t = {}) {
|
|
|
145
145
|
inLinked: !1,
|
|
146
146
|
text: ""
|
|
147
147
|
}, b = () => i, { onError: E } = t;
|
|
148
|
-
function
|
|
149
|
-
const
|
|
148
|
+
function N(l, s, c, ...I) {
|
|
149
|
+
const x = b();
|
|
150
150
|
if (s.column += c, s.offset += c, E) {
|
|
151
|
-
const G = n ?
|
|
151
|
+
const G = n ? wt(x.startLoc, s) : null, u = Nt(l, G, {
|
|
152
152
|
domain: Qr,
|
|
153
153
|
args: I
|
|
154
154
|
});
|
|
155
155
|
E(u);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function C(l, s, c) {
|
|
159
159
|
l.endLoc = o(), l.currentType = s;
|
|
160
160
|
const I = { type: s };
|
|
161
|
-
return n && (I.loc =
|
|
161
|
+
return n && (I.loc = wt(l.startLoc, l.endLoc)), c != null && (I.value = c), I;
|
|
162
162
|
}
|
|
163
|
-
const
|
|
163
|
+
const D = (l) => C(
|
|
164
164
|
l,
|
|
165
165
|
13
|
|
166
166
|
/* TokenTypes.EOF */
|
|
167
167
|
);
|
|
168
168
|
function R(l, s) {
|
|
169
|
-
return l.currentChar() === s ? (l.next(), s) : (
|
|
169
|
+
return l.currentChar() === s ? (l.next(), s) : (N(ne.EXPECTED_TOKEN, o(), 0, s), "");
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function k(l) {
|
|
172
172
|
let s = "";
|
|
173
173
|
for (; l.currentPeek() === je || l.currentPeek() === Ie; )
|
|
174
174
|
s += l.currentPeek(), l.peek();
|
|
175
175
|
return s;
|
|
176
176
|
}
|
|
177
177
|
function M(l) {
|
|
178
|
-
const s =
|
|
178
|
+
const s = k(l);
|
|
179
179
|
return l.skipToPeek(), s;
|
|
180
180
|
}
|
|
181
181
|
function p(l) {
|
|
182
|
-
if (l ===
|
|
182
|
+
if (l === Ze)
|
|
183
183
|
return !1;
|
|
184
184
|
const s = l.charCodeAt(0);
|
|
185
185
|
return s >= 97 && s <= 122 || // a-z
|
|
@@ -187,7 +187,7 @@ function qr(e, t = {}) {
|
|
|
187
187
|
s === 95;
|
|
188
188
|
}
|
|
189
189
|
function h(l) {
|
|
190
|
-
if (l ===
|
|
190
|
+
if (l === Ze)
|
|
191
191
|
return !1;
|
|
192
192
|
const s = l.charCodeAt(0);
|
|
193
193
|
return s >= 48 && s <= 57;
|
|
@@ -196,7 +196,7 @@ function qr(e, t = {}) {
|
|
|
196
196
|
const { currentType: c } = s;
|
|
197
197
|
if (c !== 2)
|
|
198
198
|
return !1;
|
|
199
|
-
|
|
199
|
+
k(l);
|
|
200
200
|
const I = p(l.currentPeek());
|
|
201
201
|
return l.resetPeek(), I;
|
|
202
202
|
}
|
|
@@ -204,15 +204,15 @@ function qr(e, t = {}) {
|
|
|
204
204
|
const { currentType: c } = s;
|
|
205
205
|
if (c !== 2)
|
|
206
206
|
return !1;
|
|
207
|
-
|
|
208
|
-
const I = l.currentPeek() === "-" ? l.peek() : l.currentPeek(),
|
|
209
|
-
return l.resetPeek(),
|
|
207
|
+
k(l);
|
|
208
|
+
const I = l.currentPeek() === "-" ? l.peek() : l.currentPeek(), x = h(I);
|
|
209
|
+
return l.resetPeek(), x;
|
|
210
210
|
}
|
|
211
211
|
function g(l, s) {
|
|
212
212
|
const { currentType: c } = s;
|
|
213
213
|
if (c !== 2)
|
|
214
214
|
return !1;
|
|
215
|
-
|
|
215
|
+
k(l);
|
|
216
216
|
const I = l.currentPeek() === ln;
|
|
217
217
|
return l.resetPeek(), I;
|
|
218
218
|
}
|
|
@@ -220,7 +220,7 @@ function qr(e, t = {}) {
|
|
|
220
220
|
const { currentType: c } = s;
|
|
221
221
|
if (c !== 7)
|
|
222
222
|
return !1;
|
|
223
|
-
|
|
223
|
+
k(l);
|
|
224
224
|
const I = l.currentPeek() === ".";
|
|
225
225
|
return l.resetPeek(), I;
|
|
226
226
|
}
|
|
@@ -228,15 +228,15 @@ function qr(e, t = {}) {
|
|
|
228
228
|
const { currentType: c } = s;
|
|
229
229
|
if (c !== 8)
|
|
230
230
|
return !1;
|
|
231
|
-
|
|
231
|
+
k(l);
|
|
232
232
|
const I = p(l.currentPeek());
|
|
233
233
|
return l.resetPeek(), I;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function A(l, s) {
|
|
236
236
|
const { currentType: c } = s;
|
|
237
237
|
if (!(c === 7 || c === 11))
|
|
238
238
|
return !1;
|
|
239
|
-
|
|
239
|
+
k(l);
|
|
240
240
|
const I = l.currentPeek() === ":";
|
|
241
241
|
return l.resetPeek(), I;
|
|
242
242
|
}
|
|
@@ -246,25 +246,25 @@ function qr(e, t = {}) {
|
|
|
246
246
|
return !1;
|
|
247
247
|
const I = () => {
|
|
248
248
|
const G = l.currentPeek();
|
|
249
|
-
return G === "{" ? p(l.peek()) : G === "@" || G === "|" || G === ":" || G === "." || G === je || !G ? !1 : G === Ie ? (l.peek(), I()) :
|
|
250
|
-
},
|
|
251
|
-
return l.resetPeek(),
|
|
249
|
+
return G === "{" ? p(l.peek()) : G === "@" || G === "|" || G === ":" || G === "." || G === je || !G ? !1 : G === Ie ? (l.peek(), I()) : U(l, !1);
|
|
250
|
+
}, x = I();
|
|
251
|
+
return l.resetPeek(), x;
|
|
252
252
|
}
|
|
253
253
|
function H(l) {
|
|
254
|
-
|
|
254
|
+
k(l);
|
|
255
255
|
const s = l.currentPeek() === "|";
|
|
256
256
|
return l.resetPeek(), s;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
259
|
-
const c = (
|
|
258
|
+
function U(l, s = !0) {
|
|
259
|
+
const c = (x = !1, G = "") => {
|
|
260
260
|
const u = l.currentPeek();
|
|
261
|
-
return u === "{" || u === "@" || !u ?
|
|
261
|
+
return u === "{" || u === "@" || !u ? x : u === "|" ? !(G === je || G === Ie) : u === je ? (l.peek(), c(!0, je)) : u === Ie ? (l.peek(), c(!0, Ie)) : !0;
|
|
262
262
|
}, I = c();
|
|
263
263
|
return s && l.resetPeek(), I;
|
|
264
264
|
}
|
|
265
265
|
function _(l, s) {
|
|
266
266
|
const c = l.currentChar();
|
|
267
|
-
return c ===
|
|
267
|
+
return c === Ze ? Ze : s(c) ? (l.next(), c) : null;
|
|
268
268
|
}
|
|
269
269
|
function O(l) {
|
|
270
270
|
const s = l.charCodeAt(0);
|
|
@@ -286,7 +286,7 @@ function qr(e, t = {}) {
|
|
|
286
286
|
s === 36 || // $
|
|
287
287
|
s === 45;
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function w(l) {
|
|
290
290
|
return _(l, F);
|
|
291
291
|
}
|
|
292
292
|
function V(l) {
|
|
@@ -296,14 +296,14 @@ function qr(e, t = {}) {
|
|
|
296
296
|
function j(l) {
|
|
297
297
|
return _(l, V);
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function Z(l) {
|
|
300
300
|
const s = l.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 _(l,
|
|
305
|
+
function B(l) {
|
|
306
|
+
return _(l, Z);
|
|
307
307
|
}
|
|
308
308
|
function te(l) {
|
|
309
309
|
let s = "", c = "";
|
|
@@ -318,7 +318,7 @@ function qr(e, t = {}) {
|
|
|
318
318
|
if (c === "{" || c === "}" || c === "@" || c === "|" || !c)
|
|
319
319
|
break;
|
|
320
320
|
if (c === je || c === Ie)
|
|
321
|
-
if (
|
|
321
|
+
if (U(l))
|
|
322
322
|
s += c, l.next();
|
|
323
323
|
else {
|
|
324
324
|
if (H(l))
|
|
@@ -333,14 +333,14 @@ function qr(e, t = {}) {
|
|
|
333
333
|
function me(l) {
|
|
334
334
|
M(l);
|
|
335
335
|
let s = "", c = "";
|
|
336
|
-
for (; s =
|
|
336
|
+
for (; s = w(l); )
|
|
337
337
|
c += s;
|
|
338
|
-
return l.currentChar() ===
|
|
338
|
+
return l.currentChar() === Ze && N(ne.UNTERMINATED_CLOSING_BRACE, o(), 0), c;
|
|
339
339
|
}
|
|
340
340
|
function ve(l) {
|
|
341
341
|
M(l);
|
|
342
342
|
let s = "";
|
|
343
|
-
return l.currentChar() === "-" ? (l.next(), s += `-${te(l)}`) : s += te(l), l.currentChar() ===
|
|
343
|
+
return l.currentChar() === "-" ? (l.next(), s += `-${te(l)}`) : s += te(l), l.currentChar() === Ze && N(ne.UNTERMINATED_CLOSING_BRACE, o(), 0), s;
|
|
344
344
|
}
|
|
345
345
|
function he(l) {
|
|
346
346
|
return l !== ln && l !== Ie;
|
|
@@ -351,7 +351,7 @@ function qr(e, t = {}) {
|
|
|
351
351
|
for (; s = _(l, he); )
|
|
352
352
|
s === "\\" ? c += le(l) : c += s;
|
|
353
353
|
const I = l.currentChar();
|
|
354
|
-
return I === Ie || I ===
|
|
354
|
+
return I === Ie || I === Ze ? (N(ne.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), I === Ie && (l.next(), R(l, "'")), c) : (R(l, "'"), c);
|
|
355
355
|
}
|
|
356
356
|
function le(l) {
|
|
357
357
|
const s = l.currentChar();
|
|
@@ -360,33 +360,33 @@ function qr(e, t = {}) {
|
|
|
360
360
|
case "'":
|
|
361
361
|
return l.next(), `\\${s}`;
|
|
362
362
|
case "u":
|
|
363
|
-
return
|
|
363
|
+
return Ae(l, s, 4);
|
|
364
364
|
case "U":
|
|
365
|
-
return
|
|
365
|
+
return Ae(l, s, 6);
|
|
366
366
|
default:
|
|
367
|
-
return
|
|
367
|
+
return N(ne.UNKNOWN_ESCAPE_SEQUENCE, o(), 0, s), "";
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function Ae(l, s, c) {
|
|
371
371
|
R(l, s);
|
|
372
372
|
let I = "";
|
|
373
|
-
for (let
|
|
374
|
-
const G =
|
|
373
|
+
for (let x = 0; x < c; x++) {
|
|
374
|
+
const G = B(l);
|
|
375
375
|
if (!G) {
|
|
376
|
-
|
|
376
|
+
N(ne.INVALID_UNICODE_ESCAPE_SEQUENCE, o(), 0, `\\${s}${I}${l.currentChar()}`);
|
|
377
377
|
break;
|
|
378
378
|
}
|
|
379
379
|
I += G;
|
|
380
380
|
}
|
|
381
381
|
return `\\${s}${I}`;
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function Y(l) {
|
|
384
384
|
return l !== "{" && l !== "}" && l !== je && l !== Ie;
|
|
385
385
|
}
|
|
386
386
|
function fe(l) {
|
|
387
387
|
M(l);
|
|
388
388
|
let s = "", c = "";
|
|
389
|
-
for (; s = _(l,
|
|
389
|
+
for (; s = _(l, Y); )
|
|
390
390
|
c += s;
|
|
391
391
|
return c;
|
|
392
392
|
}
|
|
@@ -412,39 +412,39 @@ function qr(e, t = {}) {
|
|
|
412
412
|
);
|
|
413
413
|
return M(l), s;
|
|
414
414
|
}
|
|
415
|
-
function
|
|
415
|
+
function we(l, s) {
|
|
416
416
|
let c = null;
|
|
417
417
|
switch (l.currentChar()) {
|
|
418
418
|
case "{":
|
|
419
|
-
return s.braceNest >= 1 &&
|
|
419
|
+
return s.braceNest >= 1 && N(ne.NOT_ALLOW_NEST_PLACEHOLDER, o(), 0), l.next(), c = C(
|
|
420
420
|
s,
|
|
421
421
|
2,
|
|
422
422
|
"{"
|
|
423
423
|
/* TokenChars.BraceLeft */
|
|
424
424
|
), M(l), s.braceNest++, c;
|
|
425
425
|
case "}":
|
|
426
|
-
return s.braceNest > 0 && s.currentType === 2 &&
|
|
426
|
+
return s.braceNest > 0 && s.currentType === 2 && N(ne.EMPTY_PLACEHOLDER, o(), 0), l.next(), c = C(
|
|
427
427
|
s,
|
|
428
428
|
3,
|
|
429
429
|
"}"
|
|
430
430
|
/* TokenChars.BraceRight */
|
|
431
431
|
), s.braceNest--, s.braceNest > 0 && M(l), s.inLinked && s.braceNest === 0 && (s.inLinked = !1), c;
|
|
432
432
|
case "@":
|
|
433
|
-
return s.braceNest > 0 &&
|
|
433
|
+
return s.braceNest > 0 && N(ne.UNTERMINATED_CLOSING_BRACE, o(), 0), c = Fe(l, s) || D(s), s.braceNest = 0, c;
|
|
434
434
|
default: {
|
|
435
|
-
let
|
|
435
|
+
let x = !0, G = !0, u = !0;
|
|
436
436
|
if (H(l))
|
|
437
|
-
return s.braceNest > 0 &&
|
|
437
|
+
return s.braceNest > 0 && N(ne.UNTERMINATED_CLOSING_BRACE, o(), 0), c = C(s, 1, Ve(l)), s.braceNest = 0, s.inLinked = !1, c;
|
|
438
438
|
if (s.braceNest > 0 && (s.currentType === 4 || s.currentType === 5 || s.currentType === 6))
|
|
439
|
-
return
|
|
440
|
-
if (
|
|
441
|
-
return c =
|
|
439
|
+
return N(ne.UNTERMINATED_CLOSING_BRACE, o(), 0), s.braceNest = 0, We(l, s);
|
|
440
|
+
if (x = S(l, s))
|
|
441
|
+
return c = C(s, 4, me(l)), M(l), c;
|
|
442
442
|
if (G = d(l, s))
|
|
443
|
-
return c =
|
|
443
|
+
return c = C(s, 5, ve(l)), M(l), c;
|
|
444
444
|
if (u = g(l, s))
|
|
445
|
-
return c =
|
|
446
|
-
if (!
|
|
447
|
-
return c =
|
|
445
|
+
return c = C(s, 6, ae(l)), M(l), c;
|
|
446
|
+
if (!x && !G && !u)
|
|
447
|
+
return c = C(s, 12, fe(l)), N(ne.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, c.value), M(l), c;
|
|
448
448
|
break;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
@@ -453,31 +453,31 @@ function qr(e, t = {}) {
|
|
|
453
453
|
function Fe(l, s) {
|
|
454
454
|
const { currentType: c } = s;
|
|
455
455
|
let I = null;
|
|
456
|
-
const
|
|
457
|
-
switch ((c === 7 || c === 8 || c === 11 || c === 9) && (
|
|
456
|
+
const x = l.currentChar();
|
|
457
|
+
switch ((c === 7 || c === 8 || c === 11 || c === 9) && (x === Ie || x === je) && N(ne.INVALID_LINKED_FORMAT, o(), 0), x) {
|
|
458
458
|
case "@":
|
|
459
|
-
return l.next(), I =
|
|
459
|
+
return l.next(), I = C(
|
|
460
460
|
s,
|
|
461
461
|
7,
|
|
462
462
|
"@"
|
|
463
463
|
/* TokenChars.LinkedAlias */
|
|
464
464
|
), s.inLinked = !0, I;
|
|
465
465
|
case ".":
|
|
466
|
-
return M(l), l.next(),
|
|
466
|
+
return M(l), l.next(), C(
|
|
467
467
|
s,
|
|
468
468
|
8,
|
|
469
469
|
"."
|
|
470
470
|
/* TokenChars.LinkedDot */
|
|
471
471
|
);
|
|
472
472
|
case ":":
|
|
473
|
-
return M(l), l.next(),
|
|
473
|
+
return M(l), l.next(), C(
|
|
474
474
|
s,
|
|
475
475
|
9,
|
|
476
476
|
":"
|
|
477
477
|
/* TokenChars.LinkedDelimiter */
|
|
478
478
|
);
|
|
479
479
|
default:
|
|
480
|
-
return H(l) ? (I =
|
|
480
|
+
return H(l) ? (I = C(s, 1, Ve(l)), s.braceNest = 0, s.inLinked = !1, I) : y(l, s) || A(l, s) ? (M(l), Fe(l, s)) : v(l, s) ? (M(l), C(s, 11, Je(l))) : L(l, s) ? (M(l), x === "{" ? we(l, s) || I : C(s, 10, Qe(l))) : (c === 7 && N(ne.INVALID_LINKED_FORMAT, o(), 0), s.braceNest = 0, s.inLinked = !1, We(l, s));
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
483
|
function We(l, s) {
|
|
@@ -486,26 +486,26 @@ function qr(e, t = {}) {
|
|
|
486
486
|
/* TokenTypes.EOF */
|
|
487
487
|
};
|
|
488
488
|
if (s.braceNest > 0)
|
|
489
|
-
return
|
|
489
|
+
return we(l, s) || D(s);
|
|
490
490
|
if (s.inLinked)
|
|
491
|
-
return Fe(l, s) ||
|
|
491
|
+
return Fe(l, s) || D(s);
|
|
492
492
|
switch (l.currentChar()) {
|
|
493
493
|
case "{":
|
|
494
|
-
return
|
|
494
|
+
return we(l, s) || D(s);
|
|
495
495
|
case "}":
|
|
496
|
-
return
|
|
496
|
+
return N(ne.UNBALANCED_CLOSING_BRACE, o(), 0), l.next(), C(
|
|
497
497
|
s,
|
|
498
498
|
3,
|
|
499
499
|
"}"
|
|
500
500
|
/* TokenChars.BraceRight */
|
|
501
501
|
);
|
|
502
502
|
case "@":
|
|
503
|
-
return Fe(l, s) ||
|
|
503
|
+
return Fe(l, s) || D(s);
|
|
504
504
|
default: {
|
|
505
505
|
if (H(l))
|
|
506
|
-
return c =
|
|
507
|
-
if (
|
|
508
|
-
return
|
|
506
|
+
return c = C(s, 1, Ve(l)), s.braceNest = 0, s.inLinked = !1, c;
|
|
507
|
+
if (U(l))
|
|
508
|
+
return C(s, 0, z(l));
|
|
509
509
|
break;
|
|
510
510
|
}
|
|
511
511
|
}
|
|
@@ -513,7 +513,7 @@ function qr(e, t = {}) {
|
|
|
513
513
|
}
|
|
514
514
|
function Pe() {
|
|
515
515
|
const { currentType: l, offset: s, startLoc: c, endLoc: I } = i;
|
|
516
|
-
return i.lastType = l, i.lastOffset = s, i.lastStartLoc = c, i.lastEndLoc = I, i.offset = a(), i.startLoc = o(), r.currentChar() ===
|
|
516
|
+
return i.lastType = l, i.lastOffset = s, i.lastStartLoc = c, i.lastEndLoc = I, i.offset = a(), i.startLoc = o(), r.currentChar() === Ze ? C(
|
|
517
517
|
i,
|
|
518
518
|
13
|
|
519
519
|
/* TokenTypes.EOF */
|
|
@@ -544,11 +544,11 @@ function rs(e = {}) {
|
|
|
544
544
|
function r(p, h, S, d, ...g) {
|
|
545
545
|
const y = p.currentPosition();
|
|
546
546
|
if (y.offset += d, y.column += d, n) {
|
|
547
|
-
const v = t ?
|
|
547
|
+
const v = t ? wt(S, y) : null, A = Nt(h, v, {
|
|
548
548
|
domain: es,
|
|
549
549
|
args: g
|
|
550
550
|
});
|
|
551
|
-
n(
|
|
551
|
+
n(A);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
function a(p, h, S) {
|
|
@@ -583,11 +583,11 @@ function rs(e = {}) {
|
|
|
583
583
|
node: y
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function N(p, h) {
|
|
587
587
|
const S = p.context(), d = a(7, S.offset, S.startLoc);
|
|
588
588
|
return d.value = h, o(d, p.currentOffset(), p.currentPosition()), d;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function C(p) {
|
|
591
591
|
const h = p.context(), S = a(6, h.offset, h.startLoc);
|
|
592
592
|
let d = p.nextToken();
|
|
593
593
|
if (d.type === 8) {
|
|
@@ -596,7 +596,7 @@ function rs(e = {}) {
|
|
|
596
596
|
}
|
|
597
597
|
switch (d.type !== 9 && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(d)), d = p.nextToken(), d.type === 2 && (d = p.nextToken()), d.type) {
|
|
598
598
|
case 10:
|
|
599
|
-
d.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(d)), S.key =
|
|
599
|
+
d.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(d)), S.key = N(p, d.value || "");
|
|
600
600
|
break;
|
|
601
601
|
case 4:
|
|
602
602
|
d.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(d)), S.key = i(p, d.value || "");
|
|
@@ -620,7 +620,7 @@ function rs(e = {}) {
|
|
|
620
620
|
node: S
|
|
621
621
|
};
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function D(p) {
|
|
624
624
|
const h = p.context(), S = h.currentType === 1 ? p.currentOffset() : h.offset, d = h.currentType === 1 ? h.endLoc : h.startLoc, g = a(2, S, d);
|
|
625
625
|
g.items = [];
|
|
626
626
|
let y = null;
|
|
@@ -640,14 +640,14 @@ function rs(e = {}) {
|
|
|
640
640
|
L.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(L)), g.items.push(b(p, L.value || ""));
|
|
641
641
|
break;
|
|
642
642
|
case 7: {
|
|
643
|
-
const H =
|
|
643
|
+
const H = C(p);
|
|
644
644
|
g.items.push(H.node), y = H.nextConsumeToken || null;
|
|
645
645
|
break;
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
648
|
} while (h.currentType !== 13 && h.currentType !== 1);
|
|
649
|
-
const v = h.currentType === 1 ? h.lastOffset : p.currentOffset(),
|
|
650
|
-
return o(g, v,
|
|
649
|
+
const v = h.currentType === 1 ? h.lastOffset : p.currentOffset(), A = h.currentType === 1 ? h.lastEndLoc : p.currentPosition();
|
|
650
|
+
return o(g, v, A), g;
|
|
651
651
|
}
|
|
652
652
|
function R(p, h, S, d) {
|
|
653
653
|
const g = p.context();
|
|
@@ -655,18 +655,18 @@ function rs(e = {}) {
|
|
|
655
655
|
const v = a(1, h, S);
|
|
656
656
|
v.cases = [], v.cases.push(d);
|
|
657
657
|
do {
|
|
658
|
-
const
|
|
659
|
-
y || (y =
|
|
658
|
+
const A = D(p);
|
|
659
|
+
y || (y = A.items.length === 0), v.cases.push(A);
|
|
660
660
|
} while (g.currentType !== 13);
|
|
661
661
|
return y && r(p, ne.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), o(v, p.currentOffset(), p.currentPosition()), v;
|
|
662
662
|
}
|
|
663
|
-
function
|
|
664
|
-
const h = p.context(), { offset: S, startLoc: d } = h, g =
|
|
663
|
+
function k(p) {
|
|
664
|
+
const h = p.context(), { offset: S, startLoc: d } = h, g = D(p);
|
|
665
665
|
return h.currentType === 13 ? g : R(p, S, d, g);
|
|
666
666
|
}
|
|
667
667
|
function M(p) {
|
|
668
668
|
const h = qr(p, ge({}, e)), S = h.context(), d = a(0, S.offset, S.startLoc);
|
|
669
|
-
return t && d.loc && (d.loc.source = p), d.body =
|
|
669
|
+
return t && d.loc && (d.loc.source = p), d.body = k(h), e.onCacheKey && (d.cacheKey = e.onCacheKey(p)), S.currentType !== 13 && r(h, ne.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, p[S.offset] || ""), o(d, h.currentOffset(), h.currentPosition()), d;
|
|
670
670
|
}
|
|
671
671
|
return { parse: M };
|
|
672
672
|
}
|
|
@@ -823,31 +823,31 @@ function ls(e, t) {
|
|
|
823
823
|
};
|
|
824
824
|
o && e.loc && (f.source = e.loc.source);
|
|
825
825
|
const m = () => f;
|
|
826
|
-
function i(
|
|
827
|
-
f.code +=
|
|
826
|
+
function i(k, M) {
|
|
827
|
+
f.code += k;
|
|
828
828
|
}
|
|
829
|
-
function b(
|
|
829
|
+
function b(k, M = !0) {
|
|
830
830
|
const p = M ? r : "";
|
|
831
|
-
i(a ? p + " ".repeat(
|
|
831
|
+
i(a ? p + " ".repeat(k) : p);
|
|
832
832
|
}
|
|
833
|
-
function E(
|
|
833
|
+
function E(k = !0) {
|
|
834
834
|
const M = ++f.indentLevel;
|
|
835
|
-
|
|
835
|
+
k && b(M);
|
|
836
836
|
}
|
|
837
|
-
function
|
|
837
|
+
function N(k = !0) {
|
|
838
838
|
const M = --f.indentLevel;
|
|
839
|
-
|
|
839
|
+
k && b(M);
|
|
840
840
|
}
|
|
841
|
-
function
|
|
841
|
+
function C() {
|
|
842
842
|
b(f.indentLevel);
|
|
843
843
|
}
|
|
844
844
|
return {
|
|
845
845
|
context: m,
|
|
846
846
|
push: i,
|
|
847
847
|
indent: E,
|
|
848
|
-
deindent:
|
|
849
|
-
newline:
|
|
850
|
-
helper: (
|
|
848
|
+
deindent: N,
|
|
849
|
+
newline: C,
|
|
850
|
+
helper: (k) => `_${k}`,
|
|
851
851
|
needIndent: () => f.needIndent
|
|
852
852
|
};
|
|
853
853
|
}
|
|
@@ -990,7 +990,7 @@ function dn(e, t) {
|
|
|
990
990
|
if (n != null)
|
|
991
991
|
return e.type === "text" ? n : e.normalize([n]);
|
|
992
992
|
{
|
|
993
|
-
const r =
|
|
993
|
+
const r = Ns(t).reduce((a, o) => [...a, Ft(e, o)], []);
|
|
994
994
|
return e.normalize(r);
|
|
995
995
|
}
|
|
996
996
|
}
|
|
@@ -998,9 +998,9 @@ const ys = ["s", "static"];
|
|
|
998
998
|
function Es(e) {
|
|
999
999
|
return Xe(e, ys);
|
|
1000
1000
|
}
|
|
1001
|
-
const
|
|
1002
|
-
function
|
|
1003
|
-
return Xe(e,
|
|
1001
|
+
const Ts = ["i", "items"];
|
|
1002
|
+
function Ns(e) {
|
|
1003
|
+
return Xe(e, Ts, []);
|
|
1004
1004
|
}
|
|
1005
1005
|
function Ft(e, t) {
|
|
1006
1006
|
const n = $t(t);
|
|
@@ -1026,7 +1026,7 @@ function Ft(e, t) {
|
|
|
1026
1026
|
throw ct(n);
|
|
1027
1027
|
}
|
|
1028
1028
|
case 6: {
|
|
1029
|
-
const r = t, a = Ls(r), o =
|
|
1029
|
+
const r = t, a = Ls(r), o = As(r);
|
|
1030
1030
|
return e.linked(Ft(e, o), a ? Ft(e, a) : void 0, e.type);
|
|
1031
1031
|
}
|
|
1032
1032
|
case 7:
|
|
@@ -1037,9 +1037,9 @@ function Ft(e, t) {
|
|
|
1037
1037
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
|
-
const
|
|
1040
|
+
const Cs = ["t", "type"];
|
|
1041
1041
|
function $t(e) {
|
|
1042
|
-
return Xe(e,
|
|
1042
|
+
return Xe(e, Cs);
|
|
1043
1043
|
}
|
|
1044
1044
|
const Os = ["v", "value"];
|
|
1045
1045
|
function _t(e, t) {
|
|
@@ -1052,9 +1052,9 @@ const Ss = ["m", "modifier"];
|
|
|
1052
1052
|
function Ls(e) {
|
|
1053
1053
|
return Xe(e, Ss);
|
|
1054
1054
|
}
|
|
1055
|
-
const
|
|
1056
|
-
function
|
|
1057
|
-
const t = Xe(e,
|
|
1055
|
+
const ks = ["k", "key"];
|
|
1056
|
+
function As(e) {
|
|
1057
|
+
const t = Xe(e, ks);
|
|
1058
1058
|
if (t)
|
|
1059
1059
|
return t;
|
|
1060
1060
|
throw ct(
|
|
@@ -1086,7 +1086,7 @@ function Ms(e, t = {}) {
|
|
|
1086
1086
|
}, { ...fs(e, t), detectError: n };
|
|
1087
1087
|
}
|
|
1088
1088
|
// @__NO_SIDE_EFFECTS__
|
|
1089
|
-
function
|
|
1089
|
+
function Ds(e, t) {
|
|
1090
1090
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && W(e)) {
|
|
1091
1091
|
_e(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1092
1092
|
const r = (t.onCacheKey || Rs)(e), a = pt[r];
|
|
@@ -1108,7 +1108,7 @@ function ws(e, t) {
|
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
1110
|
let ut = null;
|
|
1111
|
-
function
|
|
1111
|
+
function ws(e) {
|
|
1112
1112
|
ut = e;
|
|
1113
1113
|
}
|
|
1114
1114
|
function Fs(e, t, n) {
|
|
@@ -1123,39 +1123,39 @@ const Ps = /* @__PURE__ */ js("function:translate");
|
|
|
1123
1123
|
function js(e) {
|
|
1124
1124
|
return (t) => ut && ut.emit(e, t);
|
|
1125
1125
|
}
|
|
1126
|
-
const
|
|
1127
|
-
INVALID_ARGUMENT:
|
|
1126
|
+
const xe = {
|
|
1127
|
+
INVALID_ARGUMENT: Br,
|
|
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
|
-
},
|
|
1135
|
-
function
|
|
1136
|
-
return
|
|
1134
|
+
}, xs = 24;
|
|
1135
|
+
function Ue(e) {
|
|
1136
|
+
return Nt(e, null, void 0);
|
|
1137
1137
|
}
|
|
1138
1138
|
function Kt(e, t) {
|
|
1139
1139
|
return t.locale != null ? mn(t.locale) : mn(e.locale);
|
|
1140
1140
|
}
|
|
1141
|
-
let
|
|
1141
|
+
let kt;
|
|
1142
1142
|
function mn(e) {
|
|
1143
1143
|
if (W(e))
|
|
1144
1144
|
return e;
|
|
1145
1145
|
if (ue(e)) {
|
|
1146
|
-
if (e.resolvedOnce &&
|
|
1147
|
-
return
|
|
1146
|
+
if (e.resolvedOnce && kt != null)
|
|
1147
|
+
return kt;
|
|
1148
1148
|
if (e.constructor.name === "Function") {
|
|
1149
1149
|
const t = e();
|
|
1150
1150
|
if (Wr(t))
|
|
1151
|
-
throw xe
|
|
1152
|
-
return
|
|
1151
|
+
throw Ue(xe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1152
|
+
return kt = t;
|
|
1153
1153
|
} else
|
|
1154
|
-
throw xe
|
|
1154
|
+
throw Ue(xe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1155
1155
|
} else
|
|
1156
|
-
throw xe
|
|
1156
|
+
throw Ue(xe.NOT_SUPPORT_LOCALE_TYPE);
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1158
|
+
function Us(e, t, n) {
|
|
1159
1159
|
return [.../* @__PURE__ */ new Set([
|
|
1160
1160
|
n,
|
|
1161
1161
|
...pe(t) ? t : ee(t) ? Object.keys(t) : W(t) ? [t] : [n]
|
|
@@ -1363,14 +1363,14 @@ He[
|
|
|
1363
1363
|
]
|
|
1364
1364
|
};
|
|
1365
1365
|
const Gs = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1366
|
-
function
|
|
1366
|
+
function Zs(e) {
|
|
1367
1367
|
return Gs.test(e);
|
|
1368
1368
|
}
|
|
1369
|
-
function
|
|
1369
|
+
function Ys(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 Bs(e) {
|
|
1374
1374
|
if (e == null)
|
|
1375
1375
|
return "o";
|
|
1376
1376
|
switch (e.charCodeAt(0)) {
|
|
@@ -1397,59 +1397,59 @@ function Ys(e) {
|
|
|
1397
1397
|
}
|
|
1398
1398
|
function Xs(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 : Zs(t) ? Ys(t) : "*" + t;
|
|
1401
1401
|
}
|
|
1402
1402
|
function Hs(e) {
|
|
1403
1403
|
const t = [];
|
|
1404
|
-
let n = -1, r = 0, a = 0, o, f, m, i, b, E,
|
|
1405
|
-
const
|
|
1406
|
-
|
|
1404
|
+
let n = -1, r = 0, a = 0, o, f, m, i, b, E, N;
|
|
1405
|
+
const C = [];
|
|
1406
|
+
C[
|
|
1407
1407
|
0
|
|
1408
1408
|
/* Actions.APPEND */
|
|
1409
1409
|
] = () => {
|
|
1410
1410
|
f === void 0 ? f = m : f += m;
|
|
1411
|
-
},
|
|
1411
|
+
}, C[
|
|
1412
1412
|
1
|
|
1413
1413
|
/* Actions.PUSH */
|
|
1414
1414
|
] = () => {
|
|
1415
1415
|
f !== void 0 && (t.push(f), f = void 0);
|
|
1416
|
-
},
|
|
1416
|
+
}, C[
|
|
1417
1417
|
2
|
|
1418
1418
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1419
1419
|
] = () => {
|
|
1420
|
-
|
|
1420
|
+
C[
|
|
1421
1421
|
0
|
|
1422
1422
|
/* Actions.APPEND */
|
|
1423
1423
|
](), a++;
|
|
1424
|
-
},
|
|
1424
|
+
}, C[
|
|
1425
1425
|
3
|
|
1426
1426
|
/* Actions.PUSH_SUB_PATH */
|
|
1427
1427
|
] = () => {
|
|
1428
1428
|
if (a > 0)
|
|
1429
|
-
a--, r = 4,
|
|
1429
|
+
a--, r = 4, C[
|
|
1430
1430
|
0
|
|
1431
1431
|
/* Actions.APPEND */
|
|
1432
1432
|
]();
|
|
1433
1433
|
else {
|
|
1434
1434
|
if (a = 0, f === void 0 || (f = Xs(f), f === !1))
|
|
1435
1435
|
return !1;
|
|
1436
|
-
|
|
1436
|
+
C[
|
|
1437
1437
|
1
|
|
1438
1438
|
/* Actions.PUSH */
|
|
1439
1439
|
]();
|
|
1440
1440
|
}
|
|
1441
1441
|
};
|
|
1442
|
-
function
|
|
1442
|
+
function D() {
|
|
1443
1443
|
const R = e[n + 1];
|
|
1444
1444
|
if (r === 5 && R === "'" || r === 6 && R === '"')
|
|
1445
|
-
return n++, m = "\\" + R,
|
|
1445
|
+
return n++, m = "\\" + R, C[
|
|
1446
1446
|
0
|
|
1447
1447
|
/* Actions.APPEND */
|
|
1448
1448
|
](), !0;
|
|
1449
1449
|
}
|
|
1450
1450
|
for (; r !== null; )
|
|
1451
|
-
if (n++, o = e[n], !(o === "\\" &&
|
|
1452
|
-
if (i =
|
|
1451
|
+
if (n++, o = e[n], !(o === "\\" && D())) {
|
|
1452
|
+
if (i = Bs(o), N = He[r], b = N[i] || N.l || 8, b === 8 || (r = b[0], b[1] !== void 0 && (E = C[b[1]], E && (m = o, E() === !1))))
|
|
1453
1453
|
return;
|
|
1454
1454
|
if (r === 7)
|
|
1455
1455
|
return t;
|
|
@@ -1475,7 +1475,7 @@ function $s(e, t) {
|
|
|
1475
1475
|
}
|
|
1476
1476
|
return a;
|
|
1477
1477
|
}
|
|
1478
|
-
const Ks = "10.0.5",
|
|
1478
|
+
const Ks = "10.0.5", Ct = -1, Et = "en-US", pn = "", vn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1479
1479
|
function zs() {
|
|
1480
1480
|
return {
|
|
1481
1481
|
upper: (e, t) => t === "text" && W(e) ? e.toUpperCase() : t === "vnode" && ee(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
@@ -1505,7 +1505,7 @@ const hn = (e) => {
|
|
|
1505
1505
|
}, ra = () => Qn;
|
|
1506
1506
|
let bn = 0;
|
|
1507
1507
|
function sa(e = {}) {
|
|
1508
|
-
const t = ue(e.onWarn) ? e.onWarn :
|
|
1508
|
+
const t = ue(e.onWarn) ? e.onWarn : Zr, n = W(e.version) ? e.version : Ks, r = W(e.locale) || ue(e.locale) ? e.locale : Et, a = ue(r) ? Et : r, o = pe(e.fallbackLocale) || q(e.fallbackLocale) || W(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, f = q(e.messages) ? e.messages : At(a), m = q(e.datetimeFormats) ? e.datetimeFormats : At(a), i = q(e.numberFormats) ? e.numberFormats : At(a), b = ge(se(), e.modifiers, zs()), E = e.pluralRules || se(), N = ue(e.missing) ? e.missing : null, C = _e(e.missingWarn) || yt(e.missingWarn) ? e.missingWarn : !0, D = _e(e.fallbackWarn) || yt(e.fallbackWarn) ? e.fallbackWarn : !0, R = !!e.fallbackFormat, k = !!e.unresolving, M = ue(e.postTranslation) ? e.postTranslation : null, p = q(e.processor) ? e.processor : null, h = _e(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, d = ue(e.messageCompiler) ? e.messageCompiler : Jn, g = ue(e.messageResolver) ? e.messageResolver : $n || Js, y = ue(e.localeFallbacker) ? e.localeFallbacker : Kn || Us, v = 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(), U = ee(A.__meta) ? A.__meta : {};
|
|
1509
1509
|
bn++;
|
|
1510
1510
|
const _ = {
|
|
1511
1511
|
version: n,
|
|
@@ -1515,11 +1515,11 @@ function sa(e = {}) {
|
|
|
1515
1515
|
messages: f,
|
|
1516
1516
|
modifiers: b,
|
|
1517
1517
|
pluralRules: E,
|
|
1518
|
-
missing:
|
|
1519
|
-
missingWarn:
|
|
1520
|
-
fallbackWarn:
|
|
1518
|
+
missing: N,
|
|
1519
|
+
missingWarn: C,
|
|
1520
|
+
fallbackWarn: D,
|
|
1521
1521
|
fallbackFormat: R,
|
|
1522
|
-
unresolving:
|
|
1522
|
+
unresolving: k,
|
|
1523
1523
|
postTranslation: M,
|
|
1524
1524
|
processor: p,
|
|
1525
1525
|
warnHtmlMessage: h,
|
|
@@ -1529,11 +1529,11 @@ function sa(e = {}) {
|
|
|
1529
1529
|
localeFallbacker: y,
|
|
1530
1530
|
fallbackContext: v,
|
|
1531
1531
|
onWarn: t,
|
|
1532
|
-
__meta:
|
|
1532
|
+
__meta: U
|
|
1533
1533
|
};
|
|
1534
|
-
return _.datetimeFormats = m, _.numberFormats = i, _.__datetimeFormatters = L, _.__numberFormatters = H, __INTLIFY_PROD_DEVTOOLS__ && Fs(_, n,
|
|
1534
|
+
return _.datetimeFormats = m, _.numberFormats = i, _.__datetimeFormatters = L, _.__numberFormatters = H, __INTLIFY_PROD_DEVTOOLS__ && Fs(_, n, U), _;
|
|
1535
1535
|
}
|
|
1536
|
-
const
|
|
1536
|
+
const At = (e) => ({ [e]: se() });
|
|
1537
1537
|
function zt(e, t, n, r, a) {
|
|
1538
1538
|
const { missing: o, onWarn: f } = e;
|
|
1539
1539
|
if (o !== null) {
|
|
@@ -1559,26 +1559,26 @@ function oa(e, t) {
|
|
|
1559
1559
|
return !1;
|
|
1560
1560
|
}
|
|
1561
1561
|
function gn(e, ...t) {
|
|
1562
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: o, localeFallbacker: f } = e, { __datetimeFormatters: m } = e, [i, b, E,
|
|
1562
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: o, localeFallbacker: f } = e, { __datetimeFormatters: m } = e, [i, b, E, N] = Pt(...t), C = _e(E.missingWarn) ? E.missingWarn : e.missingWarn;
|
|
1563
1563
|
_e(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn;
|
|
1564
|
-
const
|
|
1564
|
+
const D = !!E.part, R = Kt(e, E), k = f(
|
|
1565
1565
|
e,
|
|
1566
1566
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1567
1567
|
a,
|
|
1568
1568
|
R
|
|
1569
1569
|
);
|
|
1570
1570
|
if (!W(i) || i === "")
|
|
1571
|
-
return new Intl.DateTimeFormat(R,
|
|
1571
|
+
return new Intl.DateTimeFormat(R, N).format(b);
|
|
1572
1572
|
let M = {}, p, h = null;
|
|
1573
1573
|
const S = "datetime format";
|
|
1574
|
-
for (let y = 0; y <
|
|
1575
|
-
zt(e, i, p,
|
|
1574
|
+
for (let y = 0; y < k.length && (p = k[y], M = n[p] || {}, h = M[i], !q(h)); y++)
|
|
1575
|
+
zt(e, i, p, C, S);
|
|
1576
1576
|
if (!q(h) || !W(p))
|
|
1577
|
-
return r ?
|
|
1577
|
+
return r ? Ct : i;
|
|
1578
1578
|
let d = `${p}__${i}`;
|
|
1579
|
-
|
|
1579
|
+
Tt(N) || (d = `${d}__${JSON.stringify(N)}`);
|
|
1580
1580
|
let g = m.get(d);
|
|
1581
|
-
return g || (g = new Intl.DateTimeFormat(p, ge({}, h,
|
|
1581
|
+
return g || (g = new Intl.DateTimeFormat(p, ge({}, h, N)), m.set(d, g)), D ? g.formatToParts(b) : g.format(b);
|
|
1582
1582
|
}
|
|
1583
1583
|
const qn = [
|
|
1584
1584
|
"localeMatcher",
|
|
@@ -1608,22 +1608,22 @@ function Pt(...e) {
|
|
|
1608
1608
|
if (W(t)) {
|
|
1609
1609
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1610
1610
|
if (!i)
|
|
1611
|
-
throw xe
|
|
1611
|
+
throw Ue(xe.INVALID_ISO_DATE_ARGUMENT);
|
|
1612
1612
|
const b = 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
|
m = new Date(b);
|
|
1614
1614
|
try {
|
|
1615
1615
|
m.toISOString();
|
|
1616
1616
|
} catch {
|
|
1617
|
-
throw xe
|
|
1617
|
+
throw Ue(xe.INVALID_ISO_DATE_ARGUMENT);
|
|
1618
1618
|
}
|
|
1619
|
-
} else if (
|
|
1619
|
+
} else if (xr(t)) {
|
|
1620
1620
|
if (isNaN(t.getTime()))
|
|
1621
|
-
throw xe
|
|
1621
|
+
throw Ue(xe.INVALID_DATE_ARGUMENT);
|
|
1622
1622
|
m = t;
|
|
1623
1623
|
} else if (be(t))
|
|
1624
1624
|
m = t;
|
|
1625
1625
|
else
|
|
1626
|
-
throw xe
|
|
1626
|
+
throw Ue(xe.INVALID_ARGUMENT);
|
|
1627
1627
|
return W(n) ? o.key = n : q(n) && Object.keys(n).forEach((i) => {
|
|
1628
1628
|
qn.includes(i) ? f[i] = n[i] : o[i] = n[i];
|
|
1629
1629
|
}), W(r) ? o.locale = r : q(r) && (f = r), q(a) && (f = a), [o.key || "", m, o, f];
|
|
@@ -1636,26 +1636,26 @@ function In(e, t, n) {
|
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
1638
1638
|
function yn(e, ...t) {
|
|
1639
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: o, localeFallbacker: f } = e, { __numberFormatters: m } = e, [i, b, E,
|
|
1639
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: o, localeFallbacker: f } = e, { __numberFormatters: m } = e, [i, b, E, N] = jt(...t), C = _e(E.missingWarn) ? E.missingWarn : e.missingWarn;
|
|
1640
1640
|
_e(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn;
|
|
1641
|
-
const
|
|
1641
|
+
const D = !!E.part, R = Kt(e, E), k = f(
|
|
1642
1642
|
e,
|
|
1643
1643
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1644
1644
|
a,
|
|
1645
1645
|
R
|
|
1646
1646
|
);
|
|
1647
1647
|
if (!W(i) || i === "")
|
|
1648
|
-
return new Intl.NumberFormat(R,
|
|
1648
|
+
return new Intl.NumberFormat(R, N).format(b);
|
|
1649
1649
|
let M = {}, p, h = null;
|
|
1650
1650
|
const S = "number format";
|
|
1651
|
-
for (let y = 0; y <
|
|
1652
|
-
zt(e, i, p,
|
|
1651
|
+
for (let y = 0; y < k.length && (p = k[y], M = n[p] || {}, h = M[i], !q(h)); y++)
|
|
1652
|
+
zt(e, i, p, C, S);
|
|
1653
1653
|
if (!q(h) || !W(p))
|
|
1654
|
-
return r ?
|
|
1654
|
+
return r ? Ct : i;
|
|
1655
1655
|
let d = `${p}__${i}`;
|
|
1656
|
-
|
|
1656
|
+
Tt(N) || (d = `${d}__${JSON.stringify(N)}`);
|
|
1657
1657
|
let g = m.get(d);
|
|
1658
|
-
return g || (g = new Intl.NumberFormat(p, ge({}, h,
|
|
1658
|
+
return g || (g = new Intl.NumberFormat(p, ge({}, h, N)), m.set(d, g)), D ? g.formatToParts(b) : g.format(b);
|
|
1659
1659
|
}
|
|
1660
1660
|
const er = [
|
|
1661
1661
|
"localeMatcher",
|
|
@@ -1683,7 +1683,7 @@ function jt(...e) {
|
|
|
1683
1683
|
const [t, n, r, a] = e, o = se();
|
|
1684
1684
|
let f = se();
|
|
1685
1685
|
if (!be(t))
|
|
1686
|
-
throw xe
|
|
1686
|
+
throw Ue(xe.INVALID_ARGUMENT);
|
|
1687
1687
|
const m = t;
|
|
1688
1688
|
return W(n) ? o.key = n : q(n) && Object.keys(n).forEach((i) => {
|
|
1689
1689
|
er.includes(i) ? f[i] = n[i] : o[i] = n[i];
|
|
@@ -1697,7 +1697,7 @@ function En(e, t, n) {
|
|
|
1697
1697
|
}
|
|
1698
1698
|
}
|
|
1699
1699
|
const la = (e) => e, ia = (e) => "", ca = "text", ua = (e) => e.length === 0 ? "" : Ht(e), da = Gr;
|
|
1700
|
-
function
|
|
1700
|
+
function Tn(e, t) {
|
|
1701
1701
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1702
1702
|
}
|
|
1703
1703
|
function ma(e) {
|
|
@@ -1708,14 +1708,14 @@ function fa(e, t) {
|
|
|
1708
1708
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1709
1709
|
}
|
|
1710
1710
|
function _a(e = {}) {
|
|
1711
|
-
const t = e.locale, n = ma(e), r = ee(e.pluralRules) && W(t) && ue(e.pluralRules[t]) ? e.pluralRules[t] :
|
|
1711
|
+
const t = e.locale, n = ma(e), r = ee(e.pluralRules) && W(t) && ue(e.pluralRules[t]) ? e.pluralRules[t] : Tn, a = ee(e.pluralRules) && W(t) && ue(e.pluralRules[t]) ? Tn : void 0, o = (p) => p[r(n, p.length, a)], f = e.list || [], m = (p) => f[p], i = e.named || se();
|
|
1712
1712
|
be(e.pluralIndex) && fa(n, i);
|
|
1713
1713
|
const b = (p) => i[p];
|
|
1714
1714
|
function E(p, h) {
|
|
1715
1715
|
const S = ue(e.messages) ? e.messages(p, !!h) : ee(e.messages) ? e.messages[p] : !1;
|
|
1716
1716
|
return S || (e.parent ? e.parent.message(p) : ia);
|
|
1717
1717
|
}
|
|
1718
|
-
const
|
|
1718
|
+
const N = (p) => e.modifiers ? e.modifiers[p] : la, C = q(e.processor) && ue(e.processor.normalize) ? e.processor.normalize : ua, D = q(e.processor) && ue(e.processor.interpolate) ? e.processor.interpolate : da, R = q(e.processor) && W(e.processor.type) ? e.processor.type : ca, M = {
|
|
1719
1719
|
list: m,
|
|
1720
1720
|
named: b,
|
|
1721
1721
|
plural: o,
|
|
@@ -1723,44 +1723,44 @@ function _a(e = {}) {
|
|
|
1723
1723
|
const [S, d] = h;
|
|
1724
1724
|
let g = "text", y = "";
|
|
1725
1725
|
h.length === 1 ? ee(S) ? (y = S.modifier || y, g = S.type || g) : W(S) && (y = S || y) : h.length === 2 && (W(S) && (y = S || y), W(d) && (g = d || g));
|
|
1726
|
-
const v = E(p, !0)(M),
|
|
1726
|
+
const v = E(p, !0)(M), A = (
|
|
1727
1727
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1728
1728
|
g === "vnode" && pe(v) && y ? v[0] : v
|
|
1729
1729
|
);
|
|
1730
|
-
return y ?
|
|
1730
|
+
return y ? N(y)(A, g) : A;
|
|
1731
1731
|
},
|
|
1732
1732
|
message: E,
|
|
1733
1733
|
type: R,
|
|
1734
|
-
interpolate:
|
|
1735
|
-
normalize:
|
|
1734
|
+
interpolate: D,
|
|
1735
|
+
normalize: C,
|
|
1736
1736
|
values: ge(se(), f, i)
|
|
1737
1737
|
};
|
|
1738
1738
|
return M;
|
|
1739
1739
|
}
|
|
1740
|
-
const
|
|
1741
|
-
function
|
|
1742
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: o, fallbackLocale: f, messages: m } = e, [i, b] =
|
|
1743
|
-
|
|
1744
|
-
let [p, h, S] =
|
|
1740
|
+
const Nn = () => "", Ce = (e) => ue(e);
|
|
1741
|
+
function Cn(e, ...t) {
|
|
1742
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: o, fallbackLocale: f, messages: m } = e, [i, b] = xt(...t), E = _e(b.missingWarn) ? b.missingWarn : e.missingWarn, N = _e(b.fallbackWarn) ? b.fallbackWarn : e.fallbackWarn, C = _e(b.escapeParameter) ? b.escapeParameter : e.escapeParameter, D = !!b.resolvedMessage, R = W(b.default) || _e(b.default) ? _e(b.default) ? o ? i : () => i : b.default : n ? o ? i : () => i : null, k = n || R != null && (W(R) || ue(R)), M = Kt(e, b);
|
|
1743
|
+
C && pa(b);
|
|
1744
|
+
let [p, h, S] = D ? [
|
|
1745
1745
|
i,
|
|
1746
1746
|
M,
|
|
1747
1747
|
m[M] || se()
|
|
1748
|
-
] : tr(e, i, M, f,
|
|
1749
|
-
if (!
|
|
1750
|
-
return a ?
|
|
1748
|
+
] : tr(e, i, M, f, N, E), d = p, g = i;
|
|
1749
|
+
if (!D && !(W(d) || ot(d) || Ce(d)) && k && (d = R, g = d), !D && (!(W(d) || ot(d) || Ce(d)) || !W(h)))
|
|
1750
|
+
return a ? Ct : i;
|
|
1751
1751
|
let y = !1;
|
|
1752
1752
|
const v = () => {
|
|
1753
1753
|
y = !0;
|
|
1754
|
-
},
|
|
1754
|
+
}, A = Ce(d) ? d : nr(e, i, h, d, g, v);
|
|
1755
1755
|
if (y)
|
|
1756
1756
|
return d;
|
|
1757
|
-
const L = ba(e, h, S, b), H = _a(L),
|
|
1757
|
+
const L = ba(e, h, S, b), H = _a(L), U = va(e, A, H), _ = r ? r(U, i) : U;
|
|
1758
1758
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1759
1759
|
const O = {
|
|
1760
1760
|
timestamp: Date.now(),
|
|
1761
|
-
key: W(i) ? i :
|
|
1762
|
-
locale: h || (
|
|
1763
|
-
format: W(d) ? d :
|
|
1761
|
+
key: W(i) ? i : Ce(d) ? d.key : "",
|
|
1762
|
+
locale: h || (Ce(d) ? d.locale : ""),
|
|
1763
|
+
format: W(d) ? d : Ce(d) ? d.source : "",
|
|
1764
1764
|
message: _
|
|
1765
1765
|
};
|
|
1766
1766
|
O.meta = ge({}, e.__meta, /* @__PURE__ */ na() || {}), Ps(O);
|
|
@@ -1774,25 +1774,25 @@ function pa(e) {
|
|
|
1774
1774
|
}
|
|
1775
1775
|
function tr(e, t, n, r, a, o) {
|
|
1776
1776
|
const { messages: f, onWarn: m, messageResolver: i, localeFallbacker: b } = e, E = b(e, r, n);
|
|
1777
|
-
let
|
|
1777
|
+
let N = se(), C, D = null;
|
|
1778
1778
|
const R = "translate";
|
|
1779
|
-
for (let
|
|
1780
|
-
if (!oa(
|
|
1779
|
+
for (let k = 0; k < E.length && (C = E[k], N = f[C] || se(), (D = i(N, t)) === null && (D = N[t]), !(W(D) || ot(D) || Ce(D))); k++)
|
|
1780
|
+
if (!oa(C, E)) {
|
|
1781
1781
|
const M = zt(
|
|
1782
1782
|
e,
|
|
1783
1783
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1784
1784
|
t,
|
|
1785
|
-
|
|
1785
|
+
C,
|
|
1786
1786
|
o,
|
|
1787
1787
|
R
|
|
1788
1788
|
);
|
|
1789
|
-
M !== t && (
|
|
1789
|
+
M !== t && (D = M);
|
|
1790
1790
|
}
|
|
1791
|
-
return [
|
|
1791
|
+
return [D, C, N];
|
|
1792
1792
|
}
|
|
1793
1793
|
function nr(e, t, n, r, a, o) {
|
|
1794
1794
|
const { messageCompiler: f, warnHtmlMessage: m } = e;
|
|
1795
|
-
if (
|
|
1795
|
+
if (Ce(r)) {
|
|
1796
1796
|
const b = r;
|
|
1797
1797
|
return b.locale = b.locale || n, b.key = b.key || t, b;
|
|
1798
1798
|
}
|
|
@@ -1806,12 +1806,12 @@ function nr(e, t, n, r, a, o) {
|
|
|
1806
1806
|
function va(e, t, n) {
|
|
1807
1807
|
return t(n);
|
|
1808
1808
|
}
|
|
1809
|
-
function
|
|
1809
|
+
function xt(...e) {
|
|
1810
1810
|
const [t, n, r] = e, a = se();
|
|
1811
|
-
if (!W(t) && !be(t) && !
|
|
1812
|
-
throw xe
|
|
1813
|
-
const o = be(t) ? String(t) : (
|
|
1814
|
-
return be(n) ? a.plural = n : W(n) ? a.default = n : q(n) && !
|
|
1811
|
+
if (!W(t) && !be(t) && !Ce(t) && !ot(t))
|
|
1812
|
+
throw Ue(xe.INVALID_ARGUMENT);
|
|
1813
|
+
const o = be(t) ? String(t) : (Ce(t), t);
|
|
1814
|
+
return be(n) ? a.plural = n : W(n) ? a.default = n : q(n) && !Tt(n) ? a.named = n : pe(n) && (a.list = n), be(r) ? a.plural = r : W(r) ? a.default = r : q(r) && ge(a, r), [o, a];
|
|
1815
1815
|
}
|
|
1816
1816
|
function ha(e, t, n, r, a, o) {
|
|
1817
1817
|
return {
|
|
@@ -1825,44 +1825,44 @@ function ha(e, t, n, r, a, o) {
|
|
|
1825
1825
|
};
|
|
1826
1826
|
}
|
|
1827
1827
|
function ba(e, t, n, r) {
|
|
1828
|
-
const { modifiers: a, pluralRules: o, messageResolver: f, fallbackLocale: m, fallbackWarn: i, missingWarn: b, fallbackContext: E } = e,
|
|
1828
|
+
const { modifiers: a, pluralRules: o, messageResolver: f, fallbackLocale: m, fallbackWarn: i, missingWarn: b, fallbackContext: E } = e, C = {
|
|
1829
1829
|
locale: t,
|
|
1830
1830
|
modifiers: a,
|
|
1831
1831
|
pluralRules: o,
|
|
1832
|
-
messages: (
|
|
1833
|
-
let
|
|
1834
|
-
if (
|
|
1832
|
+
messages: (D, R) => {
|
|
1833
|
+
let k = f(n, D);
|
|
1834
|
+
if (k == null && (E || R)) {
|
|
1835
1835
|
const [, , M] = tr(
|
|
1836
1836
|
E || e,
|
|
1837
1837
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1838
|
-
|
|
1838
|
+
D,
|
|
1839
1839
|
t,
|
|
1840
1840
|
m,
|
|
1841
1841
|
i,
|
|
1842
1842
|
b
|
|
1843
1843
|
);
|
|
1844
|
-
|
|
1844
|
+
k = f(M, D);
|
|
1845
1845
|
}
|
|
1846
|
-
if (W(
|
|
1846
|
+
if (W(k) || ot(k)) {
|
|
1847
1847
|
let M = !1;
|
|
1848
|
-
const h = nr(e,
|
|
1848
|
+
const h = nr(e, D, t, k, D, () => {
|
|
1849
1849
|
M = !0;
|
|
1850
1850
|
});
|
|
1851
|
-
return M ?
|
|
1852
|
-
} else return
|
|
1851
|
+
return M ? Nn : h;
|
|
1852
|
+
} else return Ce(k) ? k : Nn;
|
|
1853
1853
|
}
|
|
1854
1854
|
};
|
|
1855
|
-
return e.processor && (
|
|
1855
|
+
return e.processor && (C.processor = e.processor), r.list && (C.list = r.list), r.named && (C.named = r.named), be(r.plural) && (C.pluralIndex = r.plural), C;
|
|
1856
1856
|
}
|
|
1857
1857
|
ps();
|
|
1858
|
-
var ga = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_3dfdd5c1-5879-40ac-9c6f-5076c00bd198", 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_3dfdd5c1-5879-40ac-9c6f-5076c00bd198", 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: "1842", ACTIONS_ORCHESTRATION_ID: "48f1456d-c8e2-4a55-b1c1-0e56935877e3.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_3dfdd5c1-5879-40ac-9c6f-5076c00bd198", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:10738", 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: "39927953612", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "a82c06e6fa5d3a9b4b7d4abd61ceb60a9e6a068e", 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/dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9kZXZcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTI3Njc4NTgsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5Mjc0NTY1OCwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6Ijg2NzRhMDAyLWNiNTgtNTU5YS1hMzgyLWIwZWVlYTBiZjg4MSIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiNzA2NmVkNTQ1MjAxY2IyNzc2YTdiNjIxZWNmMGU1OTg1ZWNlMjkwMyIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5Mjc0NTM1OCwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCIxMjAzMjg5MjMwMTBcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjcwNjZlZDU0NTIwMWNiMjc3NmE3YjYyMWVjZjBlNTk4NWVjZTI5MDNcIixcInJlZlwiOlwicmVmcy9oZWFkcy9kZXZcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJyZXBvc2l0b3J5XCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2VcIixcInJlcG9zaXRvcnlfaWRcIjpcIjExMjQ2NzIyMzVcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJ1bl9pZFwiOlwiMzk5Mjc5NTM2MTJcIixcInJ1bl9udW1iZXJcIjpcIjIzMFwiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcImE4MmMwNmU2ZmE1ZDNhOWI0YjdkNGFiZDYxY2ViNjBhOWU2YTA2OGVcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIGhybS1wb3J0YWxcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtaHJtLXBvcnRhbC10cnVzdGVkLnltbEByZWZzL2hlYWRzL2RldlwiLFwid29ya2Zsb3dfc2hhXCI6XCJhODJjMDZlNmZhNWQzYTliNGI3ZDRhYmQ2MWNlYjYwYTllNmEwNjhlXCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9kZXYiLCJvcmNoX2lkIjoiNDhmMTQ1NmQtYzhlMi00YTU1LWIxYzEtMGU1NjkzNTg3N2UzLnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiI0OGYxNDU2ZC1jOGUyLTRhNTUtYjFjMS0wZTU2OTM1ODc3ZTMiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiIzOTkyNzk1MzYxMiIsInJ1bl9udW1iZXIiOiIyMzAiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMjE5NTU2IiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6NDhmMTQ1NmQtYzhlMi00YTU1LWIxYzEtMGU1NjkzNTg3N2UzOjg2NzRhMDAyLWNiNTgtNTU5YS1hMzgyLWIwZWVlYTBiZjg4MSBBY3Rpb25zLlJ1bm5lcjo0OGYxNDU2ZC1jOGUyLTRhNTUtYjFjMS0wZTU2OTM1ODc3ZTM6ODY3NGEwMDItY2I1OC01NTlhLWEzODItYjBlZWVhMGJmODgxIEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOjQ4ZjE0NTZkLWM4ZTItNGE1NS1iMWMxLTBlNTY5MzU4NzdlMzo4Njc0YTAwMi1jYjU4LTU1OWEtYTM4Mi1iMGVlZWEwYmY4ODEgZ2VuZXJhdGVfaWRfdG9rZW46NDhmMTQ1NmQtYzhlMi00YTU1LWIxYzEtMGU1NjkzNTg3N2UzOjg2NzRhMDAyLWNiNTgtNTU5YS1hMzgyLWIwZWVlYTBiZjg4MSBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6ImE4MmMwNmU2ZmE1ZDNhOWI0YjdkNGFiZDYxY2ViNjBhOWU2YTA2OGUiLCJ0cnVzdF90aWVyIjoiMSJ9.uybxYAyflg8C0G-v-LijYTBuTU4yj6qNeod0y4fOQrxosFhS8D5ogQDvo3L1wmPArXE4K7_WnHxqbg3o3bBHhHt_vc6FL2OfphCuEJtIzNTJQT85e7RZfaFfukB4ItiOoLo8AZ5ywIRxxinBnrrYIH6Iww8kTeRqUW7k77OZYKbYsWvTi7NAl1OQ18_Z5CIplJBmFJmlrA3PADIUR1ZyHBhZBOPquZhuRuNMvZ39saEMTeq4CJUkYYLIWC3tpb--mkjkHpeCveINoFbs27RJZB69oW9jcxVxh_siJgcmkyf1OaEpnK46tDEpziA-JqBlgY1-m9InaQ4CkelQfvBoCQ", 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_78eb5216-a6a9-458d-999f-6f1bcd5daa0b", INVOCATION_ID: "9e1046c4d9c846d3b452d4f7fbe2ee92", 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: "230", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000219556", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.3.2-dev.6", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", npm_config_overrides: '{"proxy-addr":">=2.0.8 <3","@fastify/busboy":">=3.2.1 <4","@grpc/grpc-js":">=1.14.5 <2","brace-expansion@^2":"^2.1.6","js-yaml@^4":"^4.3.2","source-map-js":"^1.2.2","dompurify":">=3.4.17 <4","undici@^6":">=6.28.1 <7"}', npm_config_package_extensions: '{"@feedmepos/entity":{"dependencies":{"@feedmepos/core":"2.14.52"}}}', GITHUB_SHA: "a82c06e6fa5d3a9b4b7d4abd61ceb60a9e6a068e", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/dev", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_3dfdd5c1-5879-40ac-9c6f-5076c00bd198", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/214//idtoken/48f1456d-c8e2-4a55-b1c1-0e56935877e3/8674a002-cb58-559a-a382-b0eeea0bf881?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_3dfdd5c1-5879-40ac-9c6f-5076c00bd198", 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_3dfdd5c1-5879-40ac-9c6f-5076c00bd198", 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_3dfdd5c1-5879-40ac-9c6f-5076c00bd198", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1858
|
+
var ga = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_82a1800f-1c3a-471d-8a76-ce72983b83d3", 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_82a1800f-1c3a-471d-8a76-ce72983b83d3", 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: "1759", ACTIONS_ORCHESTRATION_ID: "92f99de7-1aab-4019-8cba-fbbb23a8988e.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_82a1800f-1c3a-471d-8a76-ce72983b83d3", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:10903", 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: "39940300329", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "aa7a43b6a51d2021e47de99e4f1a39108c840d4b", 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/dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9kZXZcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTI3NzM5OTYsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5Mjc1MTc5NiwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImYwNzY1OWRjLTgzNDYtNWVkYy1iNTQ3LWYxYjAxOTIyMjkxOCIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiNzA2NmVkNTQ1MjAxY2IyNzc2YTdiNjIxZWNmMGU1OTg1ZWNlMjkwMyIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5Mjc1MTQ5Niwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCIxMjAzNjk4NDE0OTdcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjcwNjZlZDU0NTIwMWNiMjc3NmE3YjYyMWVjZjBlNTk4NWVjZTI5MDNcIixcInJlZlwiOlwicmVmcy9oZWFkcy9kZXZcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJyZXBvc2l0b3J5XCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2VcIixcInJlcG9zaXRvcnlfaWRcIjpcIjExMjQ2NzIyMzVcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJ1bl9pZFwiOlwiMzk5NDAzMDAzMjlcIixcInJ1bl9udW1iZXJcIjpcIjIzMVwiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcImFhN2E0M2I2YTUxZDIwMjFlNDdkZTk5ZTRmMWEzOTEwOGM4NDBkNGJcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIGhybS1wb3J0YWxcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtaHJtLXBvcnRhbC10cnVzdGVkLnltbEByZWZzL2hlYWRzL2RldlwiLFwid29ya2Zsb3dfc2hhXCI6XCJhYTdhNDNiNmE1MWQyMDIxZTQ3ZGU5OWU0ZjFhMzkxMDhjODQwZDRiXCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9kZXYiLCJvcmNoX2lkIjoiOTJmOTlkZTctMWFhYi00MDE5LThjYmEtZmJiYjIzYTg5ODhlLnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiI5MmY5OWRlNy0xYWFiLTQwMTktOGNiYS1mYmJiMjNhODk4OGUiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiIzOTk0MDMwMDMyOSIsInJ1bl9udW1iZXIiOiIyMzEiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMjIwMDc2IiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6OTJmOTlkZTctMWFhYi00MDE5LThjYmEtZmJiYjIzYTg5ODhlOmYwNzY1OWRjLTgzNDYtNWVkYy1iNTQ3LWYxYjAxOTIyMjkxOCBBY3Rpb25zLlJ1bm5lcjo5MmY5OWRlNy0xYWFiLTQwMTktOGNiYS1mYmJiMjNhODk4OGU6ZjA3NjU5ZGMtODM0Ni01ZWRjLWI1NDctZjFiMDE5MjIyOTE4IEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOjkyZjk5ZGU3LTFhYWItNDAxOS04Y2JhLWZiYmIyM2E4OTg4ZTpmMDc2NTlkYy04MzQ2LTVlZGMtYjU0Ny1mMWIwMTkyMjI5MTggZ2VuZXJhdGVfaWRfdG9rZW46OTJmOTlkZTctMWFhYi00MDE5LThjYmEtZmJiYjIzYTg5ODhlOmYwNzY1OWRjLTgzNDYtNWVkYy1iNTQ3LWYxYjAxOTIyMjkxOCBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6ImFhN2E0M2I2YTUxZDIwMjFlNDdkZTk5ZTRmMWEzOTEwOGM4NDBkNGIiLCJ0cnVzdF90aWVyIjoiMSJ9.M7v3cWmMcWJDxfHmoavxizi7xgwwq5TCpPTjn0u7d4YpTOcP8rYqJ53nzL1DALAJuPKllGU9aO4yh3POGbfHEPP_xJh8vfeZdWdCxnlBuwyXrrbtyngMH858XfLFaFhN1lipDJuO04Bl0SvKBBJQjbM9UkvygT75Xeu0AODL5NitjMUAQBeU3_T9KYkb4GQ8uPXPu9t0P3SS2o7ekKzmKgvCekJTjOLbwoGFbIpZKWgVIfR3zR-RzZ-PYDVcaj6ULGMnLwJNRnRy7ixLzHq76TXACxYZF_5hdA5BArnYWo9TXQcyKZbvNvHep5yDU4DhpQtFIuIy78TYXVerjNNtIg", 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_fc7e9965-db6f-4f9d-b97b-97fcf76fd562", INVOCATION_ID: "b92fc5aba89247c2804e131ee8082bd1", 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: "231", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000220076", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.3.2-dev.7", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", npm_config_overrides: '{"proxy-addr":">=2.0.8 <3","@fastify/busboy":">=3.2.1 <4","@grpc/grpc-js":">=1.14.5 <2","brace-expansion@^2":"^2.1.6","js-yaml@^4":"^4.3.2","source-map-js":"^1.2.2","dompurify":">=3.4.17 <4","undici@^6":">=6.28.1 <7"}', npm_config_package_extensions: '{"@feedmepos/entity":{"dependencies":{"@feedmepos/core":"2.14.52"}}}', GITHUB_SHA: "aa7a43b6a51d2021e47de99e4f1a39108c840d4b", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/dev", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_82a1800f-1c3a-471d-8a76-ce72983b83d3", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-2-azure-eastus.actions.githubusercontent.com/142//idtoken/92f99de7-1aab-4019-8cba-fbbb23a8988e/f07659dc-8346-5edc-b547-f1b019222918?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_82a1800f-1c3a-471d-8a76-ce72983b83d3", 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_82a1800f-1c3a-471d-8a76-ce72983b83d3", 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_82a1800f-1c3a-471d-8a76-ce72983b83d3", 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 ya() {
|
|
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
1863
|
const lt = {
|
|
1864
1864
|
// composer module errors
|
|
1865
|
-
UNEXPECTED_RETURN_TYPE:
|
|
1865
|
+
UNEXPECTED_RETURN_TYPE: xs,
|
|
1866
1866
|
// 24
|
|
1867
1867
|
// legacy module errors
|
|
1868
1868
|
INVALID_ARGUMENT: 25,
|
|
@@ -1874,9 +1874,9 @@ const lt = {
|
|
|
1874
1874
|
UNEXPECTED_ERROR: 32
|
|
1875
1875
|
};
|
|
1876
1876
|
function dt(e, ...t) {
|
|
1877
|
-
return
|
|
1877
|
+
return Nt(e, null, void 0);
|
|
1878
1878
|
}
|
|
1879
|
-
const
|
|
1879
|
+
const Ut = /* @__PURE__ */ ze("__translateVNode"), Vt = /* @__PURE__ */ ze("__datetimeParts"), Wt = /* @__PURE__ */ ze("__numberParts"), Ea = ze("__setPluralRules"), rr = /* @__PURE__ */ ze("__injectWithOption"), Gt = /* @__PURE__ */ ze("__dispose");
|
|
1880
1880
|
function mt(e) {
|
|
1881
1881
|
if (!ee(e))
|
|
1882
1882
|
return e;
|
|
@@ -1914,7 +1914,7 @@ function sr(e, t) {
|
|
|
1914
1914
|
function ar(e) {
|
|
1915
1915
|
return e.type;
|
|
1916
1916
|
}
|
|
1917
|
-
function
|
|
1917
|
+
function Ta(e, t, n) {
|
|
1918
1918
|
let r = ee(t.messages) ? t.messages : se();
|
|
1919
1919
|
"__i18nGlobal" in n && (r = sr(e.locale.value, {
|
|
1920
1920
|
messages: r,
|
|
@@ -1942,13 +1942,13 @@ function Na(e, t, n) {
|
|
|
1942
1942
|
function On(e) {
|
|
1943
1943
|
return oe(fr, null, e, 0);
|
|
1944
1944
|
}
|
|
1945
|
-
const Sn = "__INTLIFY_META__", Ln = () => [],
|
|
1946
|
-
let
|
|
1947
|
-
function
|
|
1948
|
-
return (t, n, r, a) => e(n, r,
|
|
1945
|
+
const Sn = "__INTLIFY_META__", Ln = () => [], Na = () => !1;
|
|
1946
|
+
let kn = 0;
|
|
1947
|
+
function An(e) {
|
|
1948
|
+
return (t, n, r, a) => e(n, r, Yt() || void 0, a);
|
|
1949
1949
|
}
|
|
1950
|
-
const
|
|
1951
|
-
const e =
|
|
1950
|
+
const Ca = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1951
|
+
const e = Yt();
|
|
1952
1952
|
let t = null;
|
|
1953
1953
|
return e && (t = ar(e)[Sn]) ? { [Sn]: t } : null;
|
|
1954
1954
|
};
|
|
@@ -1961,8 +1961,8 @@ function Oa(e = {}) {
|
|
|
1961
1961
|
), i = o(
|
|
1962
1962
|
// prettier-ignore
|
|
1963
1963
|
t && f ? t.fallbackLocale.value : W(e.fallbackLocale) || pe(e.fallbackLocale) || q(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : m.value
|
|
1964
|
-
), b = o(sr(m.value, e)), E = o(q(e.datetimeFormats) ? e.datetimeFormats : { [m.value]: {} }),
|
|
1965
|
-
let
|
|
1964
|
+
), b = o(sr(m.value, e)), E = o(q(e.datetimeFormats) ? e.datetimeFormats : { [m.value]: {} }), N = o(q(e.numberFormats) ? e.numberFormats : { [m.value]: {} });
|
|
1965
|
+
let C = t ? t.missingWarn : _e(e.missingWarn) || yt(e.missingWarn) ? e.missingWarn : !0, D = t ? t.fallbackWarn : _e(e.fallbackWarn) || yt(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, p = ue(e.missing) ? An(e.missing) : null, h = ue(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : _e(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, d = !!e.escapeParameter;
|
|
1966
1966
|
const g = t ? t.modifiers : q(e.modifiers) ? e.modifiers : {};
|
|
1967
1967
|
let y = e.pluralRules || t && t.pluralRules, v;
|
|
1968
1968
|
v = (() => {
|
|
@@ -1975,9 +1975,9 @@ function Oa(e = {}) {
|
|
|
1975
1975
|
modifiers: g,
|
|
1976
1976
|
pluralRules: y,
|
|
1977
1977
|
missing: p === null ? void 0 : p,
|
|
1978
|
-
missingWarn:
|
|
1979
|
-
fallbackWarn:
|
|
1980
|
-
fallbackFormat:
|
|
1978
|
+
missingWarn: C,
|
|
1979
|
+
fallbackWarn: D,
|
|
1980
|
+
fallbackFormat: k,
|
|
1981
1981
|
unresolving: !0,
|
|
1982
1982
|
postTranslation: h === null ? void 0 : h,
|
|
1983
1983
|
warnHtmlMessage: S,
|
|
@@ -1986,9 +1986,9 @@ function Oa(e = {}) {
|
|
|
1986
1986
|
messageCompiler: e.messageCompiler,
|
|
1987
1987
|
__meta: { framework: "vue" }
|
|
1988
1988
|
};
|
|
1989
|
-
u.datetimeFormats = E.value, u.numberFormats =
|
|
1990
|
-
const
|
|
1991
|
-
return r && hn(
|
|
1989
|
+
u.datetimeFormats = E.value, u.numberFormats = N.value, u.__datetimeFormatters = q(v) ? v.__datetimeFormatters : void 0, u.__numberFormatters = q(v) ? v.__numberFormatters : void 0;
|
|
1990
|
+
const T = sa(u);
|
|
1991
|
+
return r && hn(T), T;
|
|
1992
1992
|
})(), it(v, m.value, i.value);
|
|
1993
1993
|
function L() {
|
|
1994
1994
|
return [
|
|
@@ -1996,7 +1996,7 @@ function Oa(e = {}) {
|
|
|
1996
1996
|
i.value,
|
|
1997
1997
|
b.value,
|
|
1998
1998
|
E.value,
|
|
1999
|
-
|
|
1999
|
+
N.value
|
|
2000
2000
|
];
|
|
2001
2001
|
}
|
|
2002
2002
|
const H = K({
|
|
@@ -2004,25 +2004,25 @@ function Oa(e = {}) {
|
|
|
2004
2004
|
set: (u) => {
|
|
2005
2005
|
m.value = u, v.locale = m.value;
|
|
2006
2006
|
}
|
|
2007
|
-
}),
|
|
2007
|
+
}), U = K({
|
|
2008
2008
|
get: () => i.value,
|
|
2009
2009
|
set: (u) => {
|
|
2010
2010
|
i.value = u, v.fallbackLocale = i.value, it(v, m.value, u);
|
|
2011
2011
|
}
|
|
2012
|
-
}), _ = K(() => b.value), O = /* @__PURE__ */ K(() => E.value), P = /* @__PURE__ */ K(() =>
|
|
2012
|
+
}), _ = K(() => b.value), O = /* @__PURE__ */ K(() => E.value), P = /* @__PURE__ */ K(() => N.value);
|
|
2013
2013
|
function F() {
|
|
2014
2014
|
return ue(h) ? h : null;
|
|
2015
2015
|
}
|
|
2016
|
-
function
|
|
2016
|
+
function w(u) {
|
|
2017
2017
|
h = u, v.postTranslation = u;
|
|
2018
2018
|
}
|
|
2019
2019
|
function V() {
|
|
2020
2020
|
return M;
|
|
2021
2021
|
}
|
|
2022
2022
|
function j(u) {
|
|
2023
|
-
u !== null && (p =
|
|
2023
|
+
u !== null && (p = An(u)), M = u, v.missing = p;
|
|
2024
2024
|
}
|
|
2025
|
-
const
|
|
2025
|
+
const Z = (u, T, Q, $, de, Ge) => {
|
|
2026
2026
|
L();
|
|
2027
2027
|
let qe;
|
|
2028
2028
|
try {
|
|
@@ -2031,8 +2031,8 @@ function Oa(e = {}) {
|
|
|
2031
2031
|
__INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = void 0);
|
|
2032
2032
|
}
|
|
2033
2033
|
if (Q !== "translate exists" && // for not `te` (e.g `t`)
|
|
2034
|
-
be(qe) && qe ===
|
|
2035
|
-
const [cr, po] =
|
|
2034
|
+
be(qe) && qe === Ct || Q === "translate exists" && !qe) {
|
|
2035
|
+
const [cr, po] = T();
|
|
2036
2036
|
return t && R ? $(t) : de(cr);
|
|
2037
2037
|
} else {
|
|
2038
2038
|
if (Ge(qe))
|
|
@@ -2040,23 +2040,23 @@ function Oa(e = {}) {
|
|
|
2040
2040
|
throw dt(lt.UNEXPECTED_RETURN_TYPE);
|
|
2041
2041
|
}
|
|
2042
2042
|
};
|
|
2043
|
-
function
|
|
2044
|
-
return
|
|
2043
|
+
function B(...u) {
|
|
2044
|
+
return Z((T) => Reflect.apply(Cn, null, [T, ...u]), () => xt(...u), "translate", (T) => Reflect.apply(T.t, T, [...u]), (T) => T, (T) => W(T));
|
|
2045
2045
|
}
|
|
2046
2046
|
function te(...u) {
|
|
2047
|
-
const [
|
|
2047
|
+
const [T, Q, $] = u;
|
|
2048
2048
|
if ($ && !ee($))
|
|
2049
2049
|
throw dt(lt.INVALID_ARGUMENT);
|
|
2050
|
-
return
|
|
2050
|
+
return B(T, Q, ge({ resolvedMessage: !0 }, $ || {}));
|
|
2051
2051
|
}
|
|
2052
2052
|
function z(...u) {
|
|
2053
|
-
return
|
|
2053
|
+
return Z((T) => Reflect.apply(gn, null, [T, ...u]), () => Pt(...u), "datetime format", (T) => Reflect.apply(T.d, T, [...u]), () => pn, (T) => W(T));
|
|
2054
2054
|
}
|
|
2055
2055
|
function me(...u) {
|
|
2056
|
-
return
|
|
2056
|
+
return Z((T) => Reflect.apply(yn, null, [T, ...u]), () => jt(...u), "number format", (T) => Reflect.apply(T.n, T, [...u]), () => pn, (T) => W(T));
|
|
2057
2057
|
}
|
|
2058
2058
|
function ve(u) {
|
|
2059
|
-
return u.map((
|
|
2059
|
+
return u.map((T) => W(T) || be(T) || _e(T) ? On(String(T)) : T);
|
|
2060
2060
|
}
|
|
2061
2061
|
const ae = {
|
|
2062
2062
|
normalize: ve,
|
|
@@ -2064,97 +2064,97 @@ function Oa(e = {}) {
|
|
|
2064
2064
|
type: "vnode"
|
|
2065
2065
|
};
|
|
2066
2066
|
function le(...u) {
|
|
2067
|
-
return
|
|
2067
|
+
return Z((T) => {
|
|
2068
2068
|
let Q;
|
|
2069
|
-
const $ =
|
|
2069
|
+
const $ = T;
|
|
2070
2070
|
try {
|
|
2071
|
-
$.processor = ae, Q = Reflect.apply(
|
|
2071
|
+
$.processor = ae, Q = Reflect.apply(Cn, null, [$, ...u]);
|
|
2072
2072
|
} finally {
|
|
2073
2073
|
$.processor = null;
|
|
2074
2074
|
}
|
|
2075
2075
|
return Q;
|
|
2076
|
-
}, () =>
|
|
2076
|
+
}, () => xt(...u), "translate", (T) => T[Ut](...u), (T) => [On(T)], (T) => pe(T));
|
|
2077
2077
|
}
|
|
2078
|
-
function
|
|
2079
|
-
return
|
|
2078
|
+
function Ae(...u) {
|
|
2079
|
+
return Z((T) => Reflect.apply(yn, null, [T, ...u]), () => jt(...u), "number format", (T) => T[Wt](...u), Ln, (T) => W(T) || pe(T));
|
|
2080
2080
|
}
|
|
2081
|
-
function
|
|
2082
|
-
return
|
|
2081
|
+
function Y(...u) {
|
|
2082
|
+
return Z((T) => Reflect.apply(gn, null, [T, ...u]), () => Pt(...u), "datetime format", (T) => T[Vt](...u), Ln, (T) => W(T) || pe(T));
|
|
2083
2083
|
}
|
|
2084
2084
|
function fe(u) {
|
|
2085
2085
|
y = u, v.pluralRules = y;
|
|
2086
2086
|
}
|
|
2087
|
-
function Je(u,
|
|
2088
|
-
return
|
|
2087
|
+
function Je(u, T) {
|
|
2088
|
+
return Z(() => {
|
|
2089
2089
|
if (!u)
|
|
2090
2090
|
return !1;
|
|
2091
|
-
const Q = W(
|
|
2092
|
-
return ot(de) ||
|
|
2093
|
-
}, () => [u], "translate exists", (Q) => Reflect.apply(Q.te, Q, [u,
|
|
2091
|
+
const Q = W(T) ? T : m.value, $ = we(Q), de = v.messageResolver($, u);
|
|
2092
|
+
return ot(de) || Ce(de) || W(de);
|
|
2093
|
+
}, () => [u], "translate exists", (Q) => Reflect.apply(Q.te, Q, [u, T]), Na, (Q) => _e(Q));
|
|
2094
2094
|
}
|
|
2095
2095
|
function Qe(u) {
|
|
2096
|
-
let
|
|
2096
|
+
let T = null;
|
|
2097
2097
|
const Q = Hn(v, i.value, m.value);
|
|
2098
2098
|
for (let $ = 0; $ < Q.length; $++) {
|
|
2099
2099
|
const de = b.value[Q[$]] || {}, Ge = v.messageResolver(de, u);
|
|
2100
2100
|
if (Ge != null) {
|
|
2101
|
-
|
|
2101
|
+
T = Ge;
|
|
2102
2102
|
break;
|
|
2103
2103
|
}
|
|
2104
2104
|
}
|
|
2105
|
-
return
|
|
2105
|
+
return T;
|
|
2106
2106
|
}
|
|
2107
2107
|
function Ve(u) {
|
|
2108
|
-
const
|
|
2109
|
-
return
|
|
2108
|
+
const T = Qe(u);
|
|
2109
|
+
return T ?? (t ? t.tm(u) || {} : {});
|
|
2110
2110
|
}
|
|
2111
|
-
function
|
|
2111
|
+
function we(u) {
|
|
2112
2112
|
return b.value[u] || {};
|
|
2113
2113
|
}
|
|
2114
|
-
function Fe(u,
|
|
2114
|
+
function Fe(u, T) {
|
|
2115
2115
|
if (a) {
|
|
2116
|
-
const Q = { [u]:
|
|
2116
|
+
const Q = { [u]: T };
|
|
2117
2117
|
for (const $ in Q)
|
|
2118
2118
|
Le(Q, $) && mt(Q[$]);
|
|
2119
|
-
|
|
2119
|
+
T = Q[u];
|
|
2120
2120
|
}
|
|
2121
|
-
b.value[u] =
|
|
2121
|
+
b.value[u] = T, v.messages = b.value;
|
|
2122
2122
|
}
|
|
2123
|
-
function We(u,
|
|
2123
|
+
function We(u, T) {
|
|
2124
2124
|
b.value[u] = b.value[u] || {};
|
|
2125
|
-
const Q = { [u]:
|
|
2125
|
+
const Q = { [u]: T };
|
|
2126
2126
|
if (a)
|
|
2127
2127
|
for (const $ in Q)
|
|
2128
2128
|
Le(Q, $) && mt(Q[$]);
|
|
2129
|
-
|
|
2129
|
+
T = Q[u], It(T, b.value[u]), v.messages = b.value;
|
|
2130
2130
|
}
|
|
2131
2131
|
function Pe(u) {
|
|
2132
2132
|
return E.value[u] || {};
|
|
2133
2133
|
}
|
|
2134
|
-
function l(u,
|
|
2135
|
-
E.value[u] =
|
|
2134
|
+
function l(u, T) {
|
|
2135
|
+
E.value[u] = T, v.datetimeFormats = E.value, In(v, u, T);
|
|
2136
2136
|
}
|
|
2137
|
-
function s(u,
|
|
2138
|
-
E.value[u] = ge(E.value[u] || {},
|
|
2137
|
+
function s(u, T) {
|
|
2138
|
+
E.value[u] = ge(E.value[u] || {}, T), v.datetimeFormats = E.value, In(v, u, T);
|
|
2139
2139
|
}
|
|
2140
2140
|
function c(u) {
|
|
2141
|
-
return
|
|
2141
|
+
return N.value[u] || {};
|
|
2142
2142
|
}
|
|
2143
|
-
function I(u,
|
|
2144
|
-
|
|
2143
|
+
function I(u, T) {
|
|
2144
|
+
N.value[u] = T, v.numberFormats = N.value, En(v, u, T);
|
|
2145
2145
|
}
|
|
2146
|
-
function
|
|
2147
|
-
|
|
2146
|
+
function x(u, T) {
|
|
2147
|
+
N.value[u] = ge(N.value[u] || {}, T), v.numberFormats = N.value, En(v, u, T);
|
|
2148
2148
|
}
|
|
2149
|
-
|
|
2149
|
+
kn++, t && sn && (Mt(t.locale, (u) => {
|
|
2150
2150
|
f && (m.value = u, v.locale = u, it(v, m.value, i.value));
|
|
2151
2151
|
}), Mt(t.fallbackLocale, (u) => {
|
|
2152
2152
|
f && (i.value = u, v.fallbackLocale = u, it(v, m.value, i.value));
|
|
2153
2153
|
}));
|
|
2154
2154
|
const G = {
|
|
2155
|
-
id:
|
|
2155
|
+
id: kn,
|
|
2156
2156
|
locale: H,
|
|
2157
|
-
fallbackLocale:
|
|
2157
|
+
fallbackLocale: U,
|
|
2158
2158
|
get inheritLocale() {
|
|
2159
2159
|
return f;
|
|
2160
2160
|
},
|
|
@@ -2175,16 +2175,16 @@ function Oa(e = {}) {
|
|
|
2175
2175
|
return r;
|
|
2176
2176
|
},
|
|
2177
2177
|
get missingWarn() {
|
|
2178
|
-
return
|
|
2178
|
+
return C;
|
|
2179
2179
|
},
|
|
2180
2180
|
set missingWarn(u) {
|
|
2181
|
-
|
|
2181
|
+
C = u, v.missingWarn = C;
|
|
2182
2182
|
},
|
|
2183
2183
|
get fallbackWarn() {
|
|
2184
|
-
return
|
|
2184
|
+
return D;
|
|
2185
2185
|
},
|
|
2186
2186
|
set fallbackWarn(u) {
|
|
2187
|
-
|
|
2187
|
+
D = u, v.fallbackWarn = D;
|
|
2188
2188
|
},
|
|
2189
2189
|
get fallbackRoot() {
|
|
2190
2190
|
return R;
|
|
@@ -2193,10 +2193,10 @@ function Oa(e = {}) {
|
|
|
2193
2193
|
R = u;
|
|
2194
2194
|
},
|
|
2195
2195
|
get fallbackFormat() {
|
|
2196
|
-
return
|
|
2196
|
+
return k;
|
|
2197
2197
|
},
|
|
2198
2198
|
set fallbackFormat(u) {
|
|
2199
|
-
|
|
2199
|
+
k = u, v.fallbackFormat = k;
|
|
2200
2200
|
},
|
|
2201
2201
|
get warnHtmlMessage() {
|
|
2202
2202
|
return S;
|
|
@@ -2210,17 +2210,17 @@ function Oa(e = {}) {
|
|
|
2210
2210
|
set escapeParameter(u) {
|
|
2211
2211
|
d = u, v.escapeParameter = u;
|
|
2212
2212
|
},
|
|
2213
|
-
t:
|
|
2214
|
-
getLocaleMessage:
|
|
2213
|
+
t: B,
|
|
2214
|
+
getLocaleMessage: we,
|
|
2215
2215
|
setLocaleMessage: Fe,
|
|
2216
2216
|
mergeLocaleMessage: We,
|
|
2217
2217
|
getPostTranslationHandler: F,
|
|
2218
|
-
setPostTranslationHandler:
|
|
2218
|
+
setPostTranslationHandler: w,
|
|
2219
2219
|
getMissingHandler: V,
|
|
2220
2220
|
setMissingHandler: j,
|
|
2221
2221
|
[Ea]: fe
|
|
2222
2222
|
};
|
|
2223
|
-
return G.datetimeFormats = O, G.numberFormats = P, G.rt = te, G.te = Je, G.tm = Ve, G.d = z, G.n = me, G.getDateTimeFormat = Pe, G.setDateTimeFormat = l, G.mergeDateTimeFormat = s, G.getNumberFormat = c, G.setNumberFormat = I, G.mergeNumberFormat =
|
|
2223
|
+
return G.datetimeFormats = O, G.numberFormats = P, G.rt = te, G.te = Je, G.tm = Ve, G.d = z, G.n = me, G.getDateTimeFormat = Pe, G.setDateTimeFormat = l, G.mergeDateTimeFormat = s, G.getNumberFormat = c, G.setNumberFormat = I, G.mergeNumberFormat = x, G[rr] = n, G[Ut] = le, G[Vt] = Y, G[Wt] = Ae, G;
|
|
2224
2224
|
}
|
|
2225
2225
|
const Qt = {
|
|
2226
2226
|
tag: {
|
|
@@ -2271,15 +2271,15 @@ function lr(e, t, n, r) {
|
|
|
2271
2271
|
return () => {
|
|
2272
2272
|
const f = { part: !0 };
|
|
2273
2273
|
let m = se();
|
|
2274
|
-
e.locale && (f.locale = e.locale), W(e.format) ? f.key = e.format : ee(e.format) && (W(e.format.key) && (f.key = e.format.key), m = Object.keys(e.format).reduce((
|
|
2274
|
+
e.locale && (f.locale = e.locale), W(e.format) ? f.key = e.format : ee(e.format) && (W(e.format.key) && (f.key = e.format.key), m = Object.keys(e.format).reduce((C, D) => n.includes(D) ? ge(se(), C, { [D]: e.format[D] }) : C, se()));
|
|
2275
2275
|
const i = r(e.value, f, m);
|
|
2276
2276
|
let b = [f.key];
|
|
2277
|
-
pe(i) ? b = i.map((
|
|
2278
|
-
const R = a[
|
|
2279
|
-
return La(
|
|
2277
|
+
pe(i) ? b = i.map((C, D) => {
|
|
2278
|
+
const R = a[C.type], k = R ? R({ [C.type]: C.value, index: D, parts: i }) : [C.value];
|
|
2279
|
+
return La(k) && (k[0].key = `${C.type}-${D}`), k;
|
|
2280
2280
|
}) : W(i) && (b = [i]);
|
|
2281
|
-
const E = ge(se(), o),
|
|
2282
|
-
return Vn(
|
|
2281
|
+
const E = ge(se(), o), N = W(e.tag) || ee(e.tag) ? e.tag : or();
|
|
2282
|
+
return Vn(N, E, b);
|
|
2283
2283
|
};
|
|
2284
2284
|
}
|
|
2285
2285
|
ge({
|
|
@@ -2300,18 +2300,18 @@ ge({
|
|
|
2300
2300
|
type: [String, Object]
|
|
2301
2301
|
}
|
|
2302
2302
|
}, Qt);
|
|
2303
|
-
const
|
|
2303
|
+
const ka = /* @__PURE__ */ ze("global-vue-i18n");
|
|
2304
2304
|
function Ot(e = {}) {
|
|
2305
|
-
const t =
|
|
2305
|
+
const t = Yt();
|
|
2306
2306
|
if (t == null)
|
|
2307
2307
|
throw dt(lt.MUST_BE_CALL_SETUP_TOP);
|
|
2308
2308
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2309
2309
|
throw dt(lt.NOT_INSTALLED);
|
|
2310
|
-
const n =
|
|
2310
|
+
const n = Aa(t), r = Ma(n), a = ar(t), o = Ra(e, a);
|
|
2311
2311
|
if (o === "global")
|
|
2312
|
-
return
|
|
2312
|
+
return Ta(r, e, a), r;
|
|
2313
2313
|
if (o === "parent") {
|
|
2314
|
-
let i =
|
|
2314
|
+
let i = Da(n, t, e.__useComponent);
|
|
2315
2315
|
return i == null && (i = r), i;
|
|
2316
2316
|
}
|
|
2317
2317
|
const f = n;
|
|
@@ -2322,22 +2322,22 @@ function Ot(e = {}) {
|
|
|
2322
2322
|
}
|
|
2323
2323
|
return m;
|
|
2324
2324
|
}
|
|
2325
|
-
function
|
|
2326
|
-
const t = ur(e.isCE ?
|
|
2325
|
+
function Aa(e) {
|
|
2326
|
+
const t = ur(e.isCE ? ka : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2327
2327
|
if (!t)
|
|
2328
2328
|
throw dt(e.isCE ? lt.NOT_INSTALLED_WITH_PROVIDE : lt.UNEXPECTED_ERROR);
|
|
2329
2329
|
return t;
|
|
2330
2330
|
}
|
|
2331
2331
|
function Ra(e, t) {
|
|
2332
|
-
return
|
|
2332
|
+
return Tt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2333
2333
|
}
|
|
2334
2334
|
function Ma(e) {
|
|
2335
2335
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2336
2336
|
}
|
|
2337
|
-
function
|
|
2337
|
+
function Da(e, t, n = !1) {
|
|
2338
2338
|
let r = null;
|
|
2339
2339
|
const a = t.root;
|
|
2340
|
-
let o =
|
|
2340
|
+
let o = wa(t, n);
|
|
2341
2341
|
for (; o != null; ) {
|
|
2342
2342
|
const f = e;
|
|
2343
2343
|
if (e.mode === "composition")
|
|
@@ -2352,11 +2352,11 @@ function wa(e, t, n = !1) {
|
|
|
2352
2352
|
}
|
|
2353
2353
|
return r;
|
|
2354
2354
|
}
|
|
2355
|
-
function
|
|
2355
|
+
function wa(e, t = !1) {
|
|
2356
2356
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2357
2357
|
}
|
|
2358
2358
|
function Fa(e, t, n) {
|
|
2359
|
-
|
|
2359
|
+
Un(() => {
|
|
2360
2360
|
}, t), mr(() => {
|
|
2361
2361
|
const r = n;
|
|
2362
2362
|
e.__deleteInstance(t);
|
|
@@ -2365,14 +2365,14 @@ function Fa(e, t, n) {
|
|
|
2365
2365
|
}, t);
|
|
2366
2366
|
}
|
|
2367
2367
|
ya();
|
|
2368
|
-
Qs(
|
|
2368
|
+
Qs(Ds);
|
|
2369
2369
|
qs($s);
|
|
2370
2370
|
ea(Hn);
|
|
2371
2371
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2372
2372
|
const e = $e();
|
|
2373
|
-
e.__INTLIFY__ = !0,
|
|
2373
|
+
e.__INTLIFY__ = !0, ws(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2374
2374
|
}
|
|
2375
|
-
const vt = /* @__PURE__ */
|
|
2375
|
+
const vt = /* @__PURE__ */ ke({
|
|
2376
2376
|
__name: "InheritPermissionTooltip",
|
|
2377
2377
|
props: {
|
|
2378
2378
|
item: {
|
|
@@ -2383,8 +2383,8 @@ const vt = /* @__PURE__ */ Ae({
|
|
|
2383
2383
|
setup(e) {
|
|
2384
2384
|
const { t } = Ot();
|
|
2385
2385
|
return (n, r) => {
|
|
2386
|
-
const a =
|
|
2387
|
-
return J(),
|
|
2386
|
+
const a = De("FmIcon"), o = De("FmTooltip");
|
|
2387
|
+
return J(), Ne(o, {
|
|
2388
2388
|
variant: "plain",
|
|
2389
2389
|
placement: "right",
|
|
2390
2390
|
"z-index": 50
|
|
@@ -2421,115 +2421,115 @@ function Rn(e, t, n) {
|
|
|
2421
2421
|
actions: Array.from(o)
|
|
2422
2422
|
});
|
|
2423
2423
|
}
|
|
2424
|
-
const Mn = Object.values(
|
|
2424
|
+
const Mn = Object.values(Ar), Pa = {
|
|
2425
2425
|
read: "View",
|
|
2426
2426
|
create: "Duplicate",
|
|
2427
2427
|
update: "Edit"
|
|
2428
2428
|
};
|
|
2429
2429
|
function ja(e, t, n, r) {
|
|
2430
|
-
const { t: a } = Ke(), { getFlagValue: o, getFlag: f } =
|
|
2431
|
-
var
|
|
2430
|
+
const { t: a } = Ke(), { getFlagValue: o, getFlag: f } = kr(), m = K(() => {
|
|
2431
|
+
var w;
|
|
2432
2432
|
const _ = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map();
|
|
2433
2433
|
for (const V of t.value) {
|
|
2434
2434
|
const j = V.category;
|
|
2435
2435
|
if (!j) continue;
|
|
2436
|
-
const
|
|
2437
|
-
if (n.value.includes(V.subject) || V.showByFeatureFlag && ((
|
|
2436
|
+
const Z = V.subject;
|
|
2437
|
+
if (n.value.includes(V.subject) || V.showByFeatureFlag && ((w = f(V.showByFeatureFlag)) == null ? void 0 : w.enabled) === !1 && o(V.showByFeatureFlag) === "true")
|
|
2438
2438
|
continue;
|
|
2439
2439
|
_.has(j) || _.set(j, []);
|
|
2440
|
-
const
|
|
2441
|
-
P.set(
|
|
2442
|
-
label: a(`permissionSet.permissionLabels.${
|
|
2443
|
-
value:
|
|
2444
|
-
optionKey: `${
|
|
2445
|
-
}), O.has(
|
|
2440
|
+
const B = P.get(Z) ?? 0;
|
|
2441
|
+
P.set(Z, B + 1), _.get(j).push({
|
|
2442
|
+
label: a(`permissionSet.permissionLabels.${Z}`, V.label),
|
|
2443
|
+
value: Z,
|
|
2444
|
+
optionKey: `${Z}::${B}`
|
|
2445
|
+
}), O.has(Z) || O.set(Z, V);
|
|
2446
2446
|
}
|
|
2447
2447
|
return [..._.keys()].sort((V, j) => {
|
|
2448
|
-
const
|
|
2449
|
-
return
|
|
2448
|
+
const Z = Mn.indexOf(V), B = Mn.indexOf(j);
|
|
2449
|
+
return Z === -1 && B === -1 ? V.localeCompare(j) : Z === -1 ? 1 : B === -1 ? -1 : Z - B;
|
|
2450
2450
|
}).map((V) => {
|
|
2451
|
-
const j = _.get(V),
|
|
2452
|
-
for (const
|
|
2453
|
-
const fe = O.get(
|
|
2454
|
-
fe &&
|
|
2451
|
+
const j = _.get(V), Z = a(`permissionSet.categoryLabels.${V}`, V), B = /* @__PURE__ */ new Map();
|
|
2452
|
+
for (const Y of j) {
|
|
2453
|
+
const fe = O.get(Y.value);
|
|
2454
|
+
fe && B.set(Y.value, fe.actions);
|
|
2455
2455
|
}
|
|
2456
|
-
const te = j.some((
|
|
2457
|
-
const fe =
|
|
2456
|
+
const te = j.some((Y) => {
|
|
2457
|
+
const fe = B.get(Y.value);
|
|
2458
2458
|
return fe && fe.length > 1;
|
|
2459
2459
|
}), z = te ? [
|
|
2460
2460
|
...new Set(
|
|
2461
|
-
j.flatMap((
|
|
2461
|
+
j.flatMap((Y) => B.get(Y.value) ?? []).filter((Y) => Y !== "manage")
|
|
2462
2462
|
)
|
|
2463
2463
|
] : [], me = /* @__PURE__ */ new Map();
|
|
2464
|
-
for (const
|
|
2465
|
-
j.some((fe) => fe.value ===
|
|
2464
|
+
for (const Y of e.value)
|
|
2465
|
+
j.some((fe) => fe.value === Y.subject) && !Y.inverted && me.set(Y.subject, new Set(Y.actions));
|
|
2466
2466
|
const ve = te ? e.value.filter(
|
|
2467
|
-
(
|
|
2468
|
-
).map((
|
|
2467
|
+
(Y) => j.some((fe) => fe.value === Y.subject) && !Y.inverted && Y.actions.includes("manage")
|
|
2468
|
+
).map((Y) => Y.subject) : e.value.filter((Y) => j.some((fe) => fe.value === Y.subject) && !Y.inverted).map((Y) => Y.subject), he = j.find((Y) => {
|
|
2469
2469
|
var fe;
|
|
2470
|
-
return (fe = O.get(
|
|
2471
|
-
}), ae = (he == null ? void 0 : he.value) ?? null, le = ae ? me.get(ae) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(),
|
|
2470
|
+
return (fe = O.get(Y.value)) == null ? void 0 : fe.isCategoryCover;
|
|
2471
|
+
}), ae = (he == null ? void 0 : he.value) ?? null, le = ae ? me.get(ae) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), Ae = le.has("manage");
|
|
2472
2472
|
return {
|
|
2473
2473
|
category: V,
|
|
2474
|
-
label:
|
|
2474
|
+
label: Z,
|
|
2475
2475
|
options: j,
|
|
2476
2476
|
selectedSubjects: ve,
|
|
2477
2477
|
isMultiAction: te,
|
|
2478
2478
|
actionColumns: z,
|
|
2479
|
-
permissionActionsMap:
|
|
2479
|
+
permissionActionsMap: B,
|
|
2480
2480
|
selectedActionsMap: me,
|
|
2481
2481
|
coverSubject: ae,
|
|
2482
2482
|
coverSelectedActions: le,
|
|
2483
|
-
coverCoversAll:
|
|
2483
|
+
coverCoversAll: Ae
|
|
2484
2484
|
};
|
|
2485
2485
|
});
|
|
2486
2486
|
});
|
|
2487
2487
|
function i(_, O) {
|
|
2488
|
-
const P = m.value.find((z) => z.category === _), F = (P == null ? void 0 : P.options) ?? [],
|
|
2488
|
+
const P = m.value.find((z) => z.category === _), F = (P == null ? void 0 : P.options) ?? [], w = new Set(F.map((z) => z.value)), V = new Set(O), j = /* @__PURE__ */ new Map();
|
|
2489
2489
|
for (const z of e.value)
|
|
2490
|
-
|
|
2491
|
-
const
|
|
2490
|
+
w.has(z.subject) && !z.inverted && j.set(z.subject, z.conditions);
|
|
2491
|
+
const Z = P != null && P.coverSubject ? j.get(P.coverSubject) : void 0, B = /* @__PURE__ */ new Set(), te = t.value.flatMap(
|
|
2492
2492
|
({ category: z, showByFeatureFlag: me, isCategoryCover: ve, ...he }) => {
|
|
2493
2493
|
const ae = he.subject;
|
|
2494
|
-
if (!V.has(ae) ||
|
|
2495
|
-
|
|
2494
|
+
if (!V.has(ae) || B.has(ae)) return [];
|
|
2495
|
+
B.add(ae);
|
|
2496
2496
|
let le;
|
|
2497
|
-
return j.has(ae) ? le = j.get(ae) : P != null && P.coverSubject && ae !== P.coverSubject && (le =
|
|
2497
|
+
return j.has(ae) ? le = j.get(ae) : P != null && P.coverSubject && ae !== P.coverSubject && (le = Z), [
|
|
2498
2498
|
{ ...he, ...le !== void 0 && { conditions: le } }
|
|
2499
2499
|
];
|
|
2500
2500
|
}
|
|
2501
2501
|
);
|
|
2502
2502
|
r("update:model-value", [
|
|
2503
|
-
...e.value.filter((z) => !
|
|
2503
|
+
...e.value.filter((z) => !w.has(z.subject)),
|
|
2504
2504
|
...te
|
|
2505
2505
|
]);
|
|
2506
2506
|
}
|
|
2507
2507
|
function b(_, O) {
|
|
2508
|
-
return
|
|
2508
|
+
return D(_, O) || d(_, O);
|
|
2509
2509
|
}
|
|
2510
2510
|
function E(_) {
|
|
2511
2511
|
return _.options.length > 0 && _.options.every((O) => b(_, O.value));
|
|
2512
2512
|
}
|
|
2513
|
-
function
|
|
2513
|
+
function N(_) {
|
|
2514
2514
|
return _.options.length === 0 || E(_) ? !1 : _.options.some(
|
|
2515
2515
|
(O) => b(_, O.value) || R(_, O.value).length > 0
|
|
2516
2516
|
);
|
|
2517
2517
|
}
|
|
2518
|
-
function
|
|
2518
|
+
function C(_) {
|
|
2519
2519
|
const O = new Set(_.options.map((F) => F.value)), P = e.value.filter((F) => !O.has(F.subject));
|
|
2520
2520
|
if (E(_))
|
|
2521
2521
|
r("update:model-value", P);
|
|
2522
2522
|
else {
|
|
2523
2523
|
const F = /* @__PURE__ */ new Map();
|
|
2524
|
-
for (const
|
|
2525
|
-
O.has(
|
|
2526
|
-
const
|
|
2527
|
-
({ category:
|
|
2524
|
+
for (const Z of e.value)
|
|
2525
|
+
O.has(Z.subject) && !Z.inverted && F.set(Z.subject, Z.conditions);
|
|
2526
|
+
const w = _.coverSubject ? F.get(_.coverSubject) : void 0, V = /* @__PURE__ */ new Set(), j = t.value.flatMap(
|
|
2527
|
+
({ category: Z, showByFeatureFlag: B, isCategoryCover: te, ...z }) => {
|
|
2528
2528
|
const me = z.subject;
|
|
2529
2529
|
if (!O.has(me) || V.has(me)) return [];
|
|
2530
2530
|
V.add(me);
|
|
2531
2531
|
let ve;
|
|
2532
|
-
return F.has(me) ? ve = F.get(me) : _.coverSubject && me !== _.coverSubject && (ve =
|
|
2532
|
+
return F.has(me) ? ve = F.get(me) : _.coverSubject && me !== _.coverSubject && (ve = w), [
|
|
2533
2533
|
{ ...z, ...ve !== void 0 && { conditions: ve } }
|
|
2534
2534
|
];
|
|
2535
2535
|
}
|
|
@@ -2537,18 +2537,18 @@ function ja(e, t, n, r) {
|
|
|
2537
2537
|
r("update:model-value", [...P, ...j]);
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
|
-
function
|
|
2540
|
+
function D(_, O) {
|
|
2541
2541
|
const P = _.selectedActionsMap.get(O);
|
|
2542
2542
|
return P ? P.has("manage") : !1;
|
|
2543
2543
|
}
|
|
2544
2544
|
function R(_, O) {
|
|
2545
2545
|
const P = _.permissionActionsMap.get(O);
|
|
2546
|
-
return P ? P.filter((
|
|
2547
|
-
(
|
|
2546
|
+
return P ? P.filter((w) => w !== "manage").filter(
|
|
2547
|
+
(w) => S(_, O, w) || g(_, O, w)
|
|
2548
2548
|
) : [];
|
|
2549
2549
|
}
|
|
2550
|
-
function
|
|
2551
|
-
return d(_, O) ? !1 : !
|
|
2550
|
+
function k(_, O) {
|
|
2551
|
+
return d(_, O) ? !1 : !D(_, O) && R(_, O).length > 0;
|
|
2552
2552
|
}
|
|
2553
2553
|
function M(_, O) {
|
|
2554
2554
|
if (!_.coverSubject || O === _.coverSubject) return;
|
|
@@ -2562,14 +2562,14 @@ function ja(e, t, n, r) {
|
|
|
2562
2562
|
const F = t.value.find((z) => z.subject === O);
|
|
2563
2563
|
if (!F) return;
|
|
2564
2564
|
const {
|
|
2565
|
-
category:
|
|
2565
|
+
category: w,
|
|
2566
2566
|
showByFeatureFlag: V,
|
|
2567
2567
|
isCategoryCover: j,
|
|
2568
|
-
...
|
|
2569
|
-
} = F,
|
|
2568
|
+
...Z
|
|
2569
|
+
} = F, B = M(_, O), te = e.value.filter((z) => z.subject !== O);
|
|
2570
2570
|
te.push({
|
|
2571
|
-
...
|
|
2572
|
-
...
|
|
2571
|
+
...Z,
|
|
2572
|
+
...B !== void 0 && { conditions: B }
|
|
2573
2573
|
}), r("update:model-value", te);
|
|
2574
2574
|
} else
|
|
2575
2575
|
r(
|
|
@@ -2596,17 +2596,17 @@ function ja(e, t, n, r) {
|
|
|
2596
2596
|
return F ? F.includes(P) : !1;
|
|
2597
2597
|
}
|
|
2598
2598
|
function v(_, O, P) {
|
|
2599
|
-
const F = [...e.value],
|
|
2599
|
+
const F = [...e.value], w = F.findIndex((j) => j.subject === _ && !j.inverted);
|
|
2600
2600
|
if (P)
|
|
2601
|
-
if (
|
|
2602
|
-
const j = { ...F[
|
|
2603
|
-
|
|
2601
|
+
if (w >= 0) {
|
|
2602
|
+
const j = { ...F[w] }, Z = new Set(j.actions);
|
|
2603
|
+
Z.add(O), j.actions = Array.from(Z), F[w] = j;
|
|
2604
2604
|
} else {
|
|
2605
2605
|
const j = t.value.find((he) => he.subject === _);
|
|
2606
2606
|
if (!j) return;
|
|
2607
2607
|
const {
|
|
2608
|
-
category:
|
|
2609
|
-
showByFeatureFlag:
|
|
2608
|
+
category: Z,
|
|
2609
|
+
showByFeatureFlag: B,
|
|
2610
2610
|
isCategoryCover: te,
|
|
2611
2611
|
...z
|
|
2612
2612
|
} = j, me = m.value.find(
|
|
@@ -2618,14 +2618,14 @@ function ja(e, t, n, r) {
|
|
|
2618
2618
|
...ve !== void 0 && { conditions: ve }
|
|
2619
2619
|
});
|
|
2620
2620
|
}
|
|
2621
|
-
else if (
|
|
2622
|
-
const j = { ...F[
|
|
2623
|
-
|
|
2621
|
+
else if (w >= 0) {
|
|
2622
|
+
const j = { ...F[w] }, Z = j.actions.filter((B) => B !== O);
|
|
2623
|
+
Z.length === 0 ? F.splice(w, 1) : (j.actions = Z, F[w] = j);
|
|
2624
2624
|
}
|
|
2625
2625
|
const V = t.value.find((j) => j.subject === _);
|
|
2626
2626
|
V && Rn(F, _, V.actions), r("update:model-value", F);
|
|
2627
2627
|
}
|
|
2628
|
-
function
|
|
2628
|
+
function A(_, O) {
|
|
2629
2629
|
const P = _.options.filter(
|
|
2630
2630
|
(F) => y(_, F.value, O)
|
|
2631
2631
|
);
|
|
@@ -2635,34 +2635,34 @@ function ja(e, t, n, r) {
|
|
|
2635
2635
|
}
|
|
2636
2636
|
function L(_, O) {
|
|
2637
2637
|
const P = _.options.filter(
|
|
2638
|
-
(
|
|
2638
|
+
(w) => y(_, w.value, O)
|
|
2639
2639
|
);
|
|
2640
2640
|
if (P.length === 0) return !1;
|
|
2641
2641
|
const F = P.filter(
|
|
2642
|
-
(
|
|
2642
|
+
(w) => S(_, w.value, O) || g(_, w.value, O)
|
|
2643
2643
|
).length;
|
|
2644
2644
|
return F > 0 && F < P.length;
|
|
2645
2645
|
}
|
|
2646
2646
|
function H(_, O, P) {
|
|
2647
2647
|
const F = [...e.value];
|
|
2648
|
-
for (const
|
|
2649
|
-
if (!y(_,
|
|
2650
|
-
const V =
|
|
2651
|
-
(
|
|
2648
|
+
for (const w of _.options) {
|
|
2649
|
+
if (!y(_, w.value, O)) continue;
|
|
2650
|
+
const V = w.value, j = F.findIndex(
|
|
2651
|
+
(B) => B.subject === V && !B.inverted
|
|
2652
2652
|
);
|
|
2653
2653
|
if (P)
|
|
2654
2654
|
if (j >= 0) {
|
|
2655
|
-
const
|
|
2656
|
-
te.add(O),
|
|
2655
|
+
const B = { ...F[j] }, te = new Set(B.actions);
|
|
2656
|
+
te.add(O), B.actions = Array.from(te), F[j] = B;
|
|
2657
2657
|
} else {
|
|
2658
|
-
const
|
|
2659
|
-
if (!
|
|
2658
|
+
const B = t.value.find((ae) => ae.subject === V);
|
|
2659
|
+
if (!B) continue;
|
|
2660
2660
|
const {
|
|
2661
2661
|
category: te,
|
|
2662
2662
|
showByFeatureFlag: z,
|
|
2663
2663
|
isCategoryCover: me,
|
|
2664
2664
|
...ve
|
|
2665
|
-
} =
|
|
2665
|
+
} = B, he = M(_, V);
|
|
2666
2666
|
F.push({
|
|
2667
2667
|
...ve,
|
|
2668
2668
|
actions: [O],
|
|
@@ -2670,15 +2670,15 @@ function ja(e, t, n, r) {
|
|
|
2670
2670
|
});
|
|
2671
2671
|
}
|
|
2672
2672
|
else if (j >= 0) {
|
|
2673
|
-
const
|
|
2674
|
-
te.length === 0 ? F.splice(j, 1) : (
|
|
2673
|
+
const B = { ...F[j] }, te = B.actions.filter((z) => z !== O);
|
|
2674
|
+
te.length === 0 ? F.splice(j, 1) : (B.actions = te, F[j] = B);
|
|
2675
2675
|
}
|
|
2676
|
-
const
|
|
2677
|
-
|
|
2676
|
+
const Z = t.value.find((B) => B.subject === V);
|
|
2677
|
+
Z && Rn(F, V, Z.actions);
|
|
2678
2678
|
}
|
|
2679
2679
|
r("update:model-value", F);
|
|
2680
2680
|
}
|
|
2681
|
-
function
|
|
2681
|
+
function U(_) {
|
|
2682
2682
|
const O = `permissionSet.actionLabels.${_}`, P = Pa[_] ?? _.charAt(0).toUpperCase() + _.slice(1);
|
|
2683
2683
|
return a(O, P);
|
|
2684
2684
|
}
|
|
@@ -2686,10 +2686,10 @@ function ja(e, t, n, r) {
|
|
|
2686
2686
|
categoryGroups: m,
|
|
2687
2687
|
toggleCategory: i,
|
|
2688
2688
|
isAllManageChecked: E,
|
|
2689
|
-
isAllManageIndeterminate:
|
|
2690
|
-
toggleAllManage:
|
|
2691
|
-
isManageChecked:
|
|
2692
|
-
isManageIndeterminate:
|
|
2689
|
+
isAllManageIndeterminate: N,
|
|
2690
|
+
toggleAllManage: C,
|
|
2691
|
+
isManageChecked: D,
|
|
2692
|
+
isManageIndeterminate: k,
|
|
2693
2693
|
toggleManage: p,
|
|
2694
2694
|
hasNonManageActions: h,
|
|
2695
2695
|
isActionChecked: S,
|
|
@@ -2697,13 +2697,13 @@ function ja(e, t, n, r) {
|
|
|
2697
2697
|
isActionCoveredByCover: g,
|
|
2698
2698
|
permissionDefinesAction: y,
|
|
2699
2699
|
toggleAction: v,
|
|
2700
|
-
isAllActionChecked:
|
|
2700
|
+
isAllActionChecked: A,
|
|
2701
2701
|
isAllActionIndeterminate: L,
|
|
2702
2702
|
toggleAllAction: H,
|
|
2703
|
-
actionLabel:
|
|
2703
|
+
actionLabel: U
|
|
2704
2704
|
};
|
|
2705
2705
|
}
|
|
2706
|
-
const
|
|
2706
|
+
const xa = { class: "flex flex-col gap-16" }, Ua = { class: "mt-16" }, Va = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Wa = ["onClick"], Ga = { class: "flex justify-center" }, Za = { class: "flex items-center min-w-0 gap-8" }, Ya = ["title", "onClick"], Ba = { class: "flex justify-center" }, Xa = /* @__PURE__ */ ke({
|
|
2707
2707
|
__name: "BasePermission",
|
|
2708
2708
|
props: {
|
|
2709
2709
|
modelValue: {
|
|
@@ -2736,11 +2736,11 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
2736
2736
|
isAllManageIndeterminate: i,
|
|
2737
2737
|
toggleAllManage: b,
|
|
2738
2738
|
isManageChecked: E,
|
|
2739
|
-
isManageIndeterminate:
|
|
2740
|
-
toggleManage:
|
|
2741
|
-
isActionChecked:
|
|
2739
|
+
isManageIndeterminate: N,
|
|
2740
|
+
toggleManage: C,
|
|
2741
|
+
isActionChecked: D,
|
|
2742
2742
|
isRowFullyCoveredByCover: R,
|
|
2743
|
-
isActionCoveredByCover:
|
|
2743
|
+
isActionCoveredByCover: k,
|
|
2744
2744
|
permissionDefinesAction: M,
|
|
2745
2745
|
toggleAction: p,
|
|
2746
2746
|
isAllActionChecked: h,
|
|
@@ -2751,42 +2751,42 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
2751
2751
|
qt(n, "modelValue"),
|
|
2752
2752
|
o,
|
|
2753
2753
|
qt(n, "excludedSubjects"),
|
|
2754
|
-
(
|
|
2754
|
+
(A, L) => r("update:model-value", L)
|
|
2755
2755
|
);
|
|
2756
|
-
function y(
|
|
2757
|
-
const L =
|
|
2756
|
+
function y(A) {
|
|
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 v(
|
|
2761
|
-
return E(
|
|
2762
|
-
(H) => M(
|
|
2760
|
+
function v(A, L) {
|
|
2761
|
+
return E(A, L) || R(A, L) ? !0 : A.actionColumns.some(
|
|
2762
|
+
(H) => M(A, L, H) && (D(A, L, H) || k(A, L, H))
|
|
2763
2763
|
);
|
|
2764
2764
|
}
|
|
2765
|
-
return (
|
|
2766
|
-
const H =
|
|
2767
|
-
return J(), re("div",
|
|
2768
|
-
(J(!0), re(Me, null, Ee(X(f), (
|
|
2769
|
-
key:
|
|
2770
|
-
subtitle: y(
|
|
2765
|
+
return (A, L) => {
|
|
2766
|
+
const H = De("FmCheckbox");
|
|
2767
|
+
return J(), re("div", xa, [
|
|
2768
|
+
(J(!0), re(Me, null, Ee(X(f), (U) => (J(), Ne(Bt, {
|
|
2769
|
+
key: U.category,
|
|
2770
|
+
subtitle: y(U),
|
|
2771
2771
|
layout: e.layout,
|
|
2772
2772
|
"initially-collapsed": e.layout === "leading"
|
|
2773
2773
|
}, {
|
|
2774
2774
|
title: ce(() => [
|
|
2775
2775
|
ie("p", {
|
|
2776
2776
|
class: ye(e.layout === "leading" ? "text-[18px] font-semibold leading-[24px] tracking-[-0.27px]" : "fm-typo-en-title-sm-600")
|
|
2777
|
-
}, Oe(
|
|
2777
|
+
}, Oe(U.label), 3)
|
|
2778
2778
|
]),
|
|
2779
2779
|
default: ce(() => [
|
|
2780
|
-
ie("div",
|
|
2780
|
+
ie("div", Ua, [
|
|
2781
2781
|
ie("div", {
|
|
2782
2782
|
class: "grid items-center px-12 py-8",
|
|
2783
2783
|
style: rt({
|
|
2784
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2784
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${U.actionColumns.length + 1}, 80px)`
|
|
2785
2785
|
})
|
|
2786
2786
|
}, [
|
|
2787
2787
|
L[0] || (L[0] = ie("div", null, null, -1)),
|
|
2788
2788
|
ie("div", Va, Oe(X(a)("team.memberForm.permissions.columnManage")), 1),
|
|
2789
|
-
(J(!0), re(Me, null, Ee(
|
|
2789
|
+
(J(!0), re(Me, null, Ee(U.actionColumns, (_) => (J(), re("div", {
|
|
2790
2790
|
key: `header-${_}`,
|
|
2791
2791
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2792
2792
|
}, Oe(X(g)(_)), 1))), 128))
|
|
@@ -2794,86 +2794,86 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
2794
2794
|
ie("div", {
|
|
2795
2795
|
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
2796
2796
|
style: rt({
|
|
2797
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2797
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${U.actionColumns.length + 1}, 80px)`
|
|
2798
2798
|
})
|
|
2799
2799
|
}, [
|
|
2800
2800
|
ie("div", {
|
|
2801
2801
|
class: "cursor-pointer font-semibold",
|
|
2802
|
-
onClick: (_) => !e.disable && X(b)(
|
|
2802
|
+
onClick: (_) => !e.disable && X(b)(U)
|
|
2803
2803
|
}, Oe(X(a)("team.labels.all")), 9, Wa),
|
|
2804
2804
|
ie("div", Ga, [
|
|
2805
2805
|
oe(H, {
|
|
2806
|
-
"model-value": X(m)(
|
|
2807
|
-
indeterminate: X(i)(
|
|
2806
|
+
"model-value": X(m)(U),
|
|
2807
|
+
indeterminate: X(i)(U),
|
|
2808
2808
|
value: !0,
|
|
2809
2809
|
disabled: e.disable,
|
|
2810
2810
|
size: "sm",
|
|
2811
2811
|
dense: "",
|
|
2812
|
-
"onUpdate:modelValue": (_) => X(b)(
|
|
2812
|
+
"onUpdate:modelValue": (_) => X(b)(U)
|
|
2813
2813
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2814
2814
|
]),
|
|
2815
|
-
(J(!0), re(Me, null, Ee(
|
|
2815
|
+
(J(!0), re(Me, null, Ee(U.actionColumns, (_) => (J(), re("div", {
|
|
2816
2816
|
key: `all-${_}`,
|
|
2817
2817
|
class: "flex justify-center"
|
|
2818
2818
|
}, [
|
|
2819
2819
|
oe(H, {
|
|
2820
|
-
"model-value": X(h)(
|
|
2821
|
-
indeterminate: X(S)(
|
|
2820
|
+
"model-value": X(h)(U, _),
|
|
2821
|
+
indeterminate: X(S)(U, _),
|
|
2822
2822
|
value: _,
|
|
2823
2823
|
disabled: e.disable,
|
|
2824
2824
|
size: "sm",
|
|
2825
2825
|
dense: "",
|
|
2826
|
-
"onUpdate:modelValue": (O) => X(d)(
|
|
2826
|
+
"onUpdate:modelValue": (O) => X(d)(U, _, O)
|
|
2827
2827
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2828
2828
|
]))), 128))
|
|
2829
2829
|
], 4),
|
|
2830
2830
|
L[1] || (L[1] = ie("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2831
|
-
(J(!0), re(Me, null, Ee(
|
|
2831
|
+
(J(!0), re(Me, null, Ee(U.options, (_) => (J(), re("div", {
|
|
2832
2832
|
key: _.optionKey,
|
|
2833
2833
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2834
2834
|
style: rt({
|
|
2835
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2835
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${U.actionColumns.length + 1}, 80px)`
|
|
2836
2836
|
})
|
|
2837
2837
|
}, [
|
|
2838
|
-
ie("div",
|
|
2838
|
+
ie("div", Za, [
|
|
2839
2839
|
ie("span", {
|
|
2840
2840
|
class: "block truncate cursor-pointer",
|
|
2841
2841
|
title: _.label,
|
|
2842
|
-
onClick: (O) => !e.disable && !X(R)(
|
|
2843
|
-
}, Oe(_.label), 9,
|
|
2844
|
-
Se(
|
|
2842
|
+
onClick: (O) => !e.disable && !X(R)(U, _.value) && X(C)(U, _.value, !X(E)(U, _.value))
|
|
2843
|
+
}, Oe(_.label), 9, Ya),
|
|
2844
|
+
Se(A.$slots, `checkbox-${_.value}-append`, {
|
|
2845
2845
|
option: _,
|
|
2846
|
-
isEffectiveSelected: v(
|
|
2847
|
-
isCoveredByCover: X(R)(
|
|
2846
|
+
isEffectiveSelected: v(U, _.value),
|
|
2847
|
+
isCoveredByCover: X(R)(U, _.value) || U.actionColumns.some((O) => X(k)(U, _.value, O))
|
|
2848
2848
|
}),
|
|
2849
|
-
Se(
|
|
2849
|
+
Se(A.$slots, `checkbox-${_.value}-icon`, {
|
|
2850
2850
|
option: _,
|
|
2851
|
-
isEffectiveSelected: v(
|
|
2852
|
-
isCoveredByCover: X(R)(
|
|
2851
|
+
isEffectiveSelected: v(U, _.value),
|
|
2852
|
+
isCoveredByCover: X(R)(U, _.value) || U.actionColumns.some((O) => X(k)(U, _.value, O))
|
|
2853
2853
|
})
|
|
2854
2854
|
]),
|
|
2855
|
-
ie("div",
|
|
2855
|
+
ie("div", Ba, [
|
|
2856
2856
|
oe(H, {
|
|
2857
|
-
"model-value": X(E)(
|
|
2857
|
+
"model-value": X(E)(U, _.value) || X(R)(U, _.value),
|
|
2858
2858
|
value: _.value,
|
|
2859
|
-
disabled: e.disable || X(R)(
|
|
2860
|
-
indeterminate: X(
|
|
2859
|
+
disabled: e.disable || X(R)(U, _.value),
|
|
2860
|
+
indeterminate: X(N)(U, _.value),
|
|
2861
2861
|
size: "sm",
|
|
2862
|
-
"onUpdate:modelValue": (O) => X(
|
|
2862
|
+
"onUpdate:modelValue": (O) => X(C)(U, _.value, O)
|
|
2863
2863
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2864
2864
|
]),
|
|
2865
|
-
(J(!0), re(Me, null, Ee(
|
|
2865
|
+
(J(!0), re(Me, null, Ee(U.actionColumns, (O) => (J(), re("div", {
|
|
2866
2866
|
key: `${_.optionKey}-${O}`,
|
|
2867
2867
|
class: "flex justify-center"
|
|
2868
2868
|
}, [
|
|
2869
|
-
X(M)(
|
|
2869
|
+
X(M)(U, _.value, O) ? (J(), Ne(H, {
|
|
2870
2870
|
key: 0,
|
|
2871
|
-
"model-value": X(
|
|
2871
|
+
"model-value": X(D)(U, _.value, O) || X(k)(U, _.value, O),
|
|
2872
2872
|
value: O,
|
|
2873
|
-
disabled: e.disable || X(
|
|
2873
|
+
disabled: e.disable || X(k)(U, _.value, O),
|
|
2874
2874
|
size: "sm",
|
|
2875
2875
|
"onUpdate:modelValue": (P) => X(p)(_.value, O, P)
|
|
2876
|
-
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) :
|
|
2876
|
+
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Te("", !0)
|
|
2877
2877
|
]))), 128))
|
|
2878
2878
|
], 4))), 128))
|
|
2879
2879
|
])
|
|
@@ -2889,7 +2889,7 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
2889
2889
|
}, $a = {
|
|
2890
2890
|
key: 0,
|
|
2891
2891
|
class: "q-mr-xs text-red col"
|
|
2892
|
-
}, Ka = { class: "form-input" }, za = /* @__PURE__ */
|
|
2892
|
+
}, Ka = { class: "form-input" }, za = /* @__PURE__ */ ke({
|
|
2893
2893
|
__name: "AppForm",
|
|
2894
2894
|
props: {
|
|
2895
2895
|
title: {
|
|
@@ -2911,11 +2911,11 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
2911
2911
|
Se(n.$slots, "top", {}, () => [
|
|
2912
2912
|
t.title ? (J(), re("div", Ja, [
|
|
2913
2913
|
ie("div", null, [
|
|
2914
|
-
t.required ? (J(), re("span", $a, "*")) :
|
|
2914
|
+
t.required ? (J(), re("span", $a, "*")) : Te("", !0),
|
|
2915
2915
|
_r(Oe(t.title), 1)
|
|
2916
2916
|
]),
|
|
2917
2917
|
Se(n.$slots, "title-right")
|
|
2918
|
-
])) :
|
|
2918
|
+
])) : Te("", !0)
|
|
2919
2919
|
]),
|
|
2920
2920
|
ie("div", Ka, [
|
|
2921
2921
|
Se(n.$slots, "default")
|
|
@@ -2925,7 +2925,7 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
2925
2925
|
}), Qa = { class: "col flex items-center" }, qa = {
|
|
2926
2926
|
key: 1,
|
|
2927
2927
|
class: "q-pa-sm form-error-message text-error"
|
|
2928
|
-
}, ir = /* @__PURE__ */
|
|
2928
|
+
}, ir = /* @__PURE__ */ ke({
|
|
2929
2929
|
__name: "CheckboxInput",
|
|
2930
2930
|
props: {
|
|
2931
2931
|
options: {
|
|
@@ -2983,46 +2983,46 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
2983
2983
|
},
|
|
2984
2984
|
emits: ["update:model-value"],
|
|
2985
2985
|
setup(e, { emit: t }) {
|
|
2986
|
-
const n = e, r = t, { t: a } = Ke(), o = st(!1), f = pr(), m = K(() => 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-${
|
|
2987
|
-
() => n.modelValue.filter((
|
|
2988
|
-
),
|
|
2986
|
+
const n = e, r = t, { t: a } = Ke(), o = st(!1), f = pr(), m = K(() => 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-${Dr(6)}`, b = K(() => m.value !== !0), E = K(
|
|
2987
|
+
() => n.modelValue.filter((k) => n.options.some((M) => M.value === k))
|
|
2988
|
+
), N = K(
|
|
2989
2989
|
() => typeof n.showAllToggle == "boolean" ? a("team.labels.all") : n.showAllToggle
|
|
2990
|
-
),
|
|
2991
|
-
function
|
|
2992
|
-
const
|
|
2993
|
-
if (
|
|
2994
|
-
r("update:model-value",
|
|
2990
|
+
), C = K(() => n.options.length > 0 && n.options.length === E.value.length);
|
|
2991
|
+
function D() {
|
|
2992
|
+
const k = n.modelValue.filter((M) => !E.value.includes(M));
|
|
2993
|
+
if (C.value === !0)
|
|
2994
|
+
r("update:model-value", k);
|
|
2995
2995
|
else {
|
|
2996
2996
|
const M = n.includeDisabledOptionsWhenSelectAll ? n.options.map((p) => p.value) : n.options.filter((p) => !p.disabled).map((p) => p.value);
|
|
2997
|
-
r("update:model-value", [...
|
|
2997
|
+
r("update:model-value", [...k, ...M]);
|
|
2998
2998
|
}
|
|
2999
2999
|
}
|
|
3000
|
-
function R(
|
|
3001
|
-
let p =
|
|
3002
|
-
M ? p.every((h) => h !==
|
|
3000
|
+
function R(k, M) {
|
|
3001
|
+
let p = Yn(n.modelValue);
|
|
3002
|
+
M ? p.every((h) => h !== k) && p.push(k) : p = p.filter((h) => h !== k), r("update:model-value", p);
|
|
3003
3003
|
}
|
|
3004
|
-
return (
|
|
3005
|
-
const p =
|
|
3006
|
-
return J(),
|
|
3004
|
+
return (k, M) => {
|
|
3005
|
+
const p = De("FmCheckbox");
|
|
3006
|
+
return J(), Ne(za, {
|
|
3007
3007
|
id: i,
|
|
3008
3008
|
title: e.title,
|
|
3009
3009
|
required: !1
|
|
3010
3010
|
}, {
|
|
3011
3011
|
top: ce(() => [
|
|
3012
|
-
Se(
|
|
3012
|
+
Se(k.$slots, "top")
|
|
3013
3013
|
]),
|
|
3014
3014
|
default: ce(() => [
|
|
3015
|
-
n.showAllToggle ? (J(),
|
|
3015
|
+
n.showAllToggle ? (J(), Ne(p, {
|
|
3016
3016
|
key: 0,
|
|
3017
|
-
"model-value":
|
|
3017
|
+
"model-value": C.value,
|
|
3018
3018
|
disabled: e.disable,
|
|
3019
|
-
label:
|
|
3019
|
+
label: N.value,
|
|
3020
3020
|
style: rt(`margin-bottom: ${n.gutter}px`),
|
|
3021
3021
|
size: "sm",
|
|
3022
3022
|
dense: "",
|
|
3023
|
-
value:
|
|
3024
|
-
"onUpdate:modelValue":
|
|
3025
|
-
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) :
|
|
3023
|
+
value: N.value,
|
|
3024
|
+
"onUpdate:modelValue": D
|
|
3025
|
+
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Te("", !0),
|
|
3026
3026
|
(J(!0), re(Me, null, Ee(e.options, (h, S) => (J(), re("div", {
|
|
3027
3027
|
key: h.value,
|
|
3028
3028
|
style: rt(`margin-bottom: ${S < e.options.length - 1 ? n.gutter : 0}px`),
|
|
@@ -3040,7 +3040,7 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3040
3040
|
value: h.label,
|
|
3041
3041
|
"onUpdate:modelValue": (d) => R(h.value, d)
|
|
3042
3042
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
3043
|
-
Se(
|
|
3043
|
+
Se(k.$slots, `checkbox-${h.key || h.value}-append`, {
|
|
3044
3044
|
option: h,
|
|
3045
3045
|
selected: e.modelValue.includes(h.value)
|
|
3046
3046
|
})
|
|
@@ -3049,32 +3049,32 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3049
3049
|
key: 0,
|
|
3050
3050
|
class: ye([{ "q-checkbox disabled": e.disable || h.disabled }, "col"])
|
|
3051
3051
|
}, [
|
|
3052
|
-
Se(
|
|
3052
|
+
Se(k.$slots, `checkbox-${h.key || h.value}-end`, {
|
|
3053
3053
|
option: h,
|
|
3054
3054
|
value: e.modelValue.includes(h.value),
|
|
3055
3055
|
disable: e.disable || h.disabled
|
|
3056
3056
|
})
|
|
3057
|
-
], 2)) :
|
|
3057
|
+
], 2)) : Te("", !0)
|
|
3058
3058
|
], 2),
|
|
3059
3059
|
X(f)[`checkbox-${h.key || h.value}-bottom`] && (e.modelValue.includes(h.value) || e.falsyShowSlot) ? (J(), re("div", {
|
|
3060
3060
|
key: 0,
|
|
3061
3061
|
class: ye(["q-mt-sm", { "q-checkbox disabled": e.disable || h.disabled }]),
|
|
3062
3062
|
style: rt(`margin-left: ${e.bottomSlotIndent}`)
|
|
3063
3063
|
}, [
|
|
3064
|
-
Se(
|
|
3064
|
+
Se(k.$slots, `checkbox-${h.key || h.value}-bottom`, {
|
|
3065
3065
|
option: h,
|
|
3066
3066
|
disable: e.disable || h.disabled,
|
|
3067
3067
|
value: e.modelValue.includes(h.value)
|
|
3068
3068
|
})
|
|
3069
|
-
], 6)) :
|
|
3069
|
+
], 6)) : Te("", !0)
|
|
3070
3070
|
], 6))), 128)),
|
|
3071
|
-
o.value && b.value ? (J(), re("div", qa, Oe(m.value), 1)) :
|
|
3071
|
+
o.value && b.value ? (J(), re("div", qa, Oe(m.value), 1)) : Te("", !0)
|
|
3072
3072
|
]),
|
|
3073
3073
|
_: 3
|
|
3074
3074
|
}, 8, ["title"]);
|
|
3075
3075
|
};
|
|
3076
3076
|
}
|
|
3077
|
-
}), ht = "includedFuture",
|
|
3077
|
+
}), ht = "includedFuture", Dn = /* @__PURE__ */ ke({
|
|
3078
3078
|
__name: "ConditionPermission",
|
|
3079
3079
|
props: {
|
|
3080
3080
|
modelValue: {
|
|
@@ -3113,24 +3113,24 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3113
3113
|
)
|
|
3114
3114
|
]), f = K(() => n.modelValue ? n.modelValue : [ht, ...n.options.map((E) => E.value)]), m = K(() => {
|
|
3115
3115
|
if (n.layout === "leading") {
|
|
3116
|
-
const
|
|
3117
|
-
return
|
|
3116
|
+
const N = n.modelValue ? n.options.filter((C) => n.modelValue.includes(C.value)).map((C) => C.label) : null;
|
|
3117
|
+
return Bn(N, {
|
|
3118
3118
|
all: a("team.labels.all"),
|
|
3119
3119
|
none: a("team.labels.none"),
|
|
3120
|
-
more: (
|
|
3120
|
+
more: (C) => a("team.labels.more", { count: C })
|
|
3121
3121
|
});
|
|
3122
3122
|
}
|
|
3123
|
-
const E = f.value.filter((
|
|
3123
|
+
const E = f.value.filter((N) => N !== ht).length;
|
|
3124
3124
|
return E === 0 ? "" : a("team.memberForm.permissions.allowedCount", { count: E });
|
|
3125
3125
|
});
|
|
3126
3126
|
function i(E) {
|
|
3127
|
-
const
|
|
3128
|
-
r("update:model-value",
|
|
3127
|
+
const N = E.length === o.value.length;
|
|
3128
|
+
r("update:model-value", N ? null : E.filter((C) => C !== ht));
|
|
3129
3129
|
}
|
|
3130
3130
|
const b = st("");
|
|
3131
|
-
return (E,
|
|
3132
|
-
const
|
|
3133
|
-
return J(),
|
|
3131
|
+
return (E, N) => {
|
|
3132
|
+
const C = De("fm-search");
|
|
3133
|
+
return J(), Ne(Bt, {
|
|
3134
3134
|
subtitle: m.value,
|
|
3135
3135
|
layout: e.layout,
|
|
3136
3136
|
"initially-collapsed": e.layout === "leading"
|
|
@@ -3143,13 +3143,13 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3143
3143
|
}, Oe(X(a)("team.memberForm.permissions.manageable", { context: e.context })), 3)
|
|
3144
3144
|
]),
|
|
3145
3145
|
default: ce(() => [
|
|
3146
|
-
e.options.length > 1 ? (J(),
|
|
3146
|
+
e.options.length > 1 ? (J(), Ne(C, {
|
|
3147
3147
|
key: 0,
|
|
3148
3148
|
modelValue: b.value,
|
|
3149
|
-
"onUpdate:modelValue":
|
|
3149
|
+
"onUpdate:modelValue": N[0] || (N[0] = (D) => b.value = D),
|
|
3150
3150
|
class: "mt-16",
|
|
3151
3151
|
placeholder: X(a)("team.memberForm.permissions.search", { context: e.context })
|
|
3152
|
-
}, null, 8, ["modelValue", "placeholder"])) :
|
|
3152
|
+
}, null, 8, ["modelValue", "placeholder"])) : Te("", !0),
|
|
3153
3153
|
oe(ir, {
|
|
3154
3154
|
"model-value": f.value,
|
|
3155
3155
|
options: o.value,
|
|
@@ -3161,10 +3161,10 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3161
3161
|
class: "mt-16",
|
|
3162
3162
|
"onUpdate:modelValue": i
|
|
3163
3163
|
}, tt({ _: 2 }, [
|
|
3164
|
-
Ee(o.value, (
|
|
3165
|
-
name: `checkbox-${
|
|
3164
|
+
Ee(o.value, (D) => ({
|
|
3165
|
+
name: `checkbox-${D.value}-append`,
|
|
3166
3166
|
fn: ce(({ option: R }) => [
|
|
3167
|
-
Se(E.$slots, `checkbox-${
|
|
3167
|
+
Se(E.$slots, `checkbox-${D.value}-append`, { option: R })
|
|
3168
3168
|
])
|
|
3169
3169
|
}))
|
|
3170
3170
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3173,7 +3173,7 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3173
3173
|
}, 8, ["subtitle", "layout", "initially-collapsed"]);
|
|
3174
3174
|
};
|
|
3175
3175
|
}
|
|
3176
|
-
}), bt = "includedNewRole", eo = /* @__PURE__ */
|
|
3176
|
+
}), bt = "includedNewRole", eo = /* @__PURE__ */ ke({
|
|
3177
3177
|
__name: "PosRolePermission",
|
|
3178
3178
|
props: {
|
|
3179
3179
|
modelValue: {
|
|
@@ -3211,16 +3211,16 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3211
3211
|
...n.roles.map((E) => ({
|
|
3212
3212
|
label: E.name,
|
|
3213
3213
|
value: E._id,
|
|
3214
|
-
disabled: !!b && E.restaurants.every(({ id:
|
|
3214
|
+
disabled: !!b && E.restaurants.every(({ id: N }) => !b.includes(N))
|
|
3215
3215
|
}))
|
|
3216
3216
|
];
|
|
3217
3217
|
}), f = K(() => n.modelValue ? n.modelValue : [bt, ...n.roles.map((b) => b._id)]), m = K(() => {
|
|
3218
3218
|
if (n.layout === "leading") {
|
|
3219
|
-
const E = n.modelValue ? n.roles.filter((
|
|
3220
|
-
return
|
|
3219
|
+
const E = n.modelValue ? n.roles.filter((N) => n.modelValue.includes(N._id)).map((N) => N.name) : null;
|
|
3220
|
+
return Bn(E, {
|
|
3221
3221
|
all: a("team.labels.all"),
|
|
3222
3222
|
none: a("team.labels.none"),
|
|
3223
|
-
more: (
|
|
3223
|
+
more: (N) => a("team.labels.more", { count: N })
|
|
3224
3224
|
});
|
|
3225
3225
|
}
|
|
3226
3226
|
const b = f.value.filter((E) => E !== bt).length;
|
|
@@ -3228,9 +3228,9 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3228
3228
|
});
|
|
3229
3229
|
function i(b) {
|
|
3230
3230
|
const E = b.length === o.value.length;
|
|
3231
|
-
r("update:model-value", E ? null : b.filter((
|
|
3231
|
+
r("update:model-value", E ? null : b.filter((N) => N !== bt));
|
|
3232
3232
|
}
|
|
3233
|
-
return (b, E) => (J(),
|
|
3233
|
+
return (b, E) => (J(), Ne(Bt, {
|
|
3234
3234
|
subtitle: m.value,
|
|
3235
3235
|
layout: e.layout,
|
|
3236
3236
|
"initially-collapsed": e.layout === "leading"
|
|
@@ -3253,10 +3253,10 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3253
3253
|
class: "mt-16",
|
|
3254
3254
|
"onUpdate:modelValue": i
|
|
3255
3255
|
}, tt({ _: 2 }, [
|
|
3256
|
-
Ee(o.value, (
|
|
3257
|
-
name: `checkbox-${
|
|
3258
|
-
fn: ce(({ option:
|
|
3259
|
-
Se(b.$slots, `checkbox-${
|
|
3256
|
+
Ee(o.value, (N) => ({
|
|
3257
|
+
name: `checkbox-${N.value}-append`,
|
|
3258
|
+
fn: ce(({ option: C }) => [
|
|
3259
|
+
Se(b.$slots, `checkbox-${N.value}-append`, { option: C })
|
|
3260
3260
|
])
|
|
3261
3261
|
}))
|
|
3262
3262
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3274,7 +3274,7 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3274
3274
|
}, ro = {
|
|
3275
3275
|
key: 0,
|
|
3276
3276
|
class: "ml-32"
|
|
3277
|
-
},
|
|
3277
|
+
}, wn = /* @__PURE__ */ ke({
|
|
3278
3278
|
__name: "PortalConditionForm",
|
|
3279
3279
|
props: {
|
|
3280
3280
|
entry: {},
|
|
@@ -3293,8 +3293,8 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3293
3293
|
setup(e, { emit: t }) {
|
|
3294
3294
|
const n = t, { t: r } = Ke();
|
|
3295
3295
|
return (a, o) => {
|
|
3296
|
-
const f =
|
|
3297
|
-
return J(),
|
|
3296
|
+
const f = De("FmRadio"), m = De("FmRadioGroup");
|
|
3297
|
+
return J(), Ne(Sr, {
|
|
3298
3298
|
title: e.title,
|
|
3299
3299
|
builders: e.builders,
|
|
3300
3300
|
"form-value-for": e.formValueFor,
|
|
@@ -3322,7 +3322,7 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3322
3322
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? (J(), re("p", no, " (" + Oe(X(r)(
|
|
3323
3323
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).labelKey,
|
|
3324
3324
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).params ?? {}
|
|
3325
|
-
)) + ") ", 1)) :
|
|
3325
|
+
)) + ") ", 1)) : Te("", !0)
|
|
3326
3326
|
]),
|
|
3327
3327
|
oe(f, {
|
|
3328
3328
|
value: "custom",
|
|
@@ -3338,8 +3338,8 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3338
3338
|
disable: e.disable,
|
|
3339
3339
|
"onUpdate:modelValue": (b) => n("update-form", { builder: i, form: b })
|
|
3340
3340
|
}, null, 8, ["builder", "model-value", "disable", "onUpdate:modelValue"])
|
|
3341
|
-
])) :
|
|
3342
|
-
])) : (J(),
|
|
3341
|
+
])) : Te("", !0)
|
|
3342
|
+
])) : (J(), Ne(nn, {
|
|
3343
3343
|
key: 1,
|
|
3344
3344
|
builder: i,
|
|
3345
3345
|
"model-value": e.formValueFor(i),
|
|
@@ -3357,7 +3357,7 @@ const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { cl
|
|
|
3357
3357
|
}
|
|
3358
3358
|
};
|
|
3359
3359
|
function Fn(e, t) {
|
|
3360
|
-
return Gn(e,
|
|
3360
|
+
return Gn(e, Zn).some(
|
|
3361
3361
|
(n) => n.subject === t && !n.inverted && n.actions.includes("manage")
|
|
3362
3362
|
);
|
|
3363
3363
|
}
|
|
@@ -3388,29 +3388,29 @@ function ao(e, t, n, r) {
|
|
|
3388
3388
|
const b = m.some((E) => E.subject === i && E.inverted);
|
|
3389
3389
|
if (m = m.filter((E) => !(E.subject === i && E.inverted)), !b && !f.has(i)) {
|
|
3390
3390
|
const E = t.find(
|
|
3391
|
-
(
|
|
3392
|
-
),
|
|
3393
|
-
|
|
3391
|
+
(C) => C.subject === i && !C.inverted
|
|
3392
|
+
), N = r(i);
|
|
3393
|
+
N && E && m.push(jn(N, E.actions, E.conditions));
|
|
3394
3394
|
}
|
|
3395
3395
|
}
|
|
3396
3396
|
for (const i of o) {
|
|
3397
3397
|
if (!a.has(i)) continue;
|
|
3398
3398
|
const b = e.find((R) => R.subject === i && !R.inverted), E = t.find((R) => R.subject === i && !R.inverted);
|
|
3399
3399
|
if (!b || !E) continue;
|
|
3400
|
-
const
|
|
3401
|
-
if (
|
|
3400
|
+
const N = new Set(b.actions), C = new Set(E.actions);
|
|
3401
|
+
if (N.size === C.size && [...N].every((R) => C.has(R)))
|
|
3402
3402
|
continue;
|
|
3403
|
-
const
|
|
3404
|
-
if (
|
|
3405
|
-
m[
|
|
3406
|
-
...m[
|
|
3407
|
-
actions: Array.from(
|
|
3403
|
+
const D = m.findIndex((R) => R.subject === i && !R.inverted);
|
|
3404
|
+
if (D >= 0)
|
|
3405
|
+
m[D] = {
|
|
3406
|
+
...m[D],
|
|
3407
|
+
actions: Array.from(C)
|
|
3408
3408
|
};
|
|
3409
3409
|
else {
|
|
3410
3410
|
const R = r(i);
|
|
3411
|
-
R && m.push(jn(R, Array.from(
|
|
3411
|
+
R && m.push(jn(R, Array.from(C)));
|
|
3412
3412
|
}
|
|
3413
|
-
|
|
3413
|
+
N.has("manage") && !C.has("manage") && Fn(m, i) && (m = Pn(m, i)), !N.has("manage") && C.has("manage") && (m = m.filter((R) => !(R.subject === i && R.inverted)));
|
|
3414
3414
|
}
|
|
3415
3415
|
return m;
|
|
3416
3416
|
}
|
|
@@ -3439,7 +3439,7 @@ function io(e, t) {
|
|
|
3439
3439
|
function gt(e, t) {
|
|
3440
3440
|
return `${e}::${t.builderKey}`;
|
|
3441
3441
|
}
|
|
3442
|
-
function
|
|
3442
|
+
function Be(e) {
|
|
3443
3443
|
try {
|
|
3444
3444
|
return e.conditions ? JSON.parse(e.conditions) : void 0;
|
|
3445
3445
|
} catch {
|
|
@@ -3451,16 +3451,16 @@ function co(e, t) {
|
|
|
3451
3451
|
}
|
|
3452
3452
|
function Rt(e, t) {
|
|
3453
3453
|
const n = new Set(e.actions);
|
|
3454
|
-
return n.has(
|
|
3454
|
+
return n.has(Ye.Action.manage) ? !0 : t.actions.every((r) => n.has(r));
|
|
3455
3455
|
}
|
|
3456
|
-
function
|
|
3457
|
-
const n =
|
|
3458
|
-
return
|
|
3456
|
+
function Zt(e, t) {
|
|
3457
|
+
const n = Be(e);
|
|
3458
|
+
return Dt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3459
3459
|
}
|
|
3460
|
-
function
|
|
3460
|
+
function xn(e, t, n) {
|
|
3461
3461
|
return {
|
|
3462
|
-
...
|
|
3463
|
-
...nt(
|
|
3462
|
+
...Zt(e, n),
|
|
3463
|
+
...nt(Be(t), n)
|
|
3464
3464
|
};
|
|
3465
3465
|
}
|
|
3466
3466
|
function uo(e, t, n) {
|
|
@@ -3480,11 +3480,11 @@ function uo(e, t, n) {
|
|
|
3480
3480
|
return co(e.value, d);
|
|
3481
3481
|
}
|
|
3482
3482
|
function i(d, g) {
|
|
3483
|
-
return nt(
|
|
3483
|
+
return nt(Be(d), g);
|
|
3484
3484
|
}
|
|
3485
3485
|
function b(d, g) {
|
|
3486
|
-
var
|
|
3487
|
-
if (!(((
|
|
3486
|
+
var A;
|
|
3487
|
+
if (!(((A = g.appliesToActions) == null ? void 0 : A.call(g, d.actions)) ?? !0)) return !1;
|
|
3488
3488
|
const y = a(d.subject);
|
|
3489
3489
|
if (!y) return !1;
|
|
3490
3490
|
const v = m(y);
|
|
@@ -3493,43 +3493,43 @@ function uo(e, t, n) {
|
|
|
3493
3493
|
function E(d, g) {
|
|
3494
3494
|
if (!b(d, g) || r.value.has(gt(d.subject, g))) return "custom";
|
|
3495
3495
|
if (d.index === null) return "inherit";
|
|
3496
|
-
const y = e.value[d.index], v = a(d.subject),
|
|
3497
|
-
if (y &&
|
|
3498
|
-
const L = nt(
|
|
3496
|
+
const y = e.value[d.index], v = a(d.subject), A = v ? m(v) : void 0;
|
|
3497
|
+
if (y && A) {
|
|
3498
|
+
const L = nt(Be(y), g), H = i(A, g);
|
|
3499
3499
|
if (JSON.stringify(L) === JSON.stringify(H)) return "inherit";
|
|
3500
3500
|
}
|
|
3501
3501
|
return "custom";
|
|
3502
3502
|
}
|
|
3503
|
-
function
|
|
3503
|
+
function N(d, g, y) {
|
|
3504
3504
|
if (!g.summarizeForm) return;
|
|
3505
3505
|
const v = a(d.subject);
|
|
3506
3506
|
if (!v) return;
|
|
3507
|
-
const
|
|
3508
|
-
if (!
|
|
3509
|
-
const L = g.fromCondition(i(
|
|
3507
|
+
const A = m(v);
|
|
3508
|
+
if (!A) return;
|
|
3509
|
+
const L = g.fromCondition(i(A, g));
|
|
3510
3510
|
return g.summarizeForm(L, { timeZone: y });
|
|
3511
3511
|
}
|
|
3512
|
-
function
|
|
3512
|
+
function C(d, g) {
|
|
3513
3513
|
if (d.index === null) return;
|
|
3514
|
-
const y = [...e.value], v = { ...y[d.index] },
|
|
3514
|
+
const y = [...e.value], v = { ...y[d.index] }, A = Zt(v, g), L = Object.keys(A).length === 0, H = a(d.subject), U = H ? m(H) : void 0, _ = U ? Rt(U, v) : !1;
|
|
3515
3515
|
if (L && _)
|
|
3516
3516
|
y.splice(d.index, 1);
|
|
3517
|
-
else if (
|
|
3518
|
-
const O =
|
|
3517
|
+
else if (U) {
|
|
3518
|
+
const O = xn(v, U, g);
|
|
3519
3519
|
Object.keys(O).length === 0 ? delete v.conditions : v.conditions = JSON.stringify(O), y[d.index] = v;
|
|
3520
3520
|
} else
|
|
3521
|
-
L ? delete v.conditions : v.conditions = JSON.stringify(
|
|
3521
|
+
L ? delete v.conditions : v.conditions = JSON.stringify(A), y[d.index] = v;
|
|
3522
3522
|
n(y);
|
|
3523
3523
|
}
|
|
3524
|
-
function
|
|
3524
|
+
function D(d, g, y) {
|
|
3525
3525
|
const v = gt(d.subject, g);
|
|
3526
3526
|
if (y === "inherit") {
|
|
3527
3527
|
const L = new Set(r.value);
|
|
3528
|
-
L.delete(v), r.value = L,
|
|
3528
|
+
L.delete(v), r.value = L, C(d, g);
|
|
3529
3529
|
return;
|
|
3530
3530
|
}
|
|
3531
|
-
const
|
|
3532
|
-
|
|
3531
|
+
const A = new Set(r.value);
|
|
3532
|
+
A.add(v), r.value = A, d.index === null && h(d, g, g.fromCondition(void 0), {
|
|
3533
3533
|
forceCreateRule: !0
|
|
3534
3534
|
});
|
|
3535
3535
|
}
|
|
@@ -3539,147 +3539,147 @@ function uo(e, t, n) {
|
|
|
3539
3539
|
const y = m(g);
|
|
3540
3540
|
return (y == null ? void 0 : y.actions) ?? [];
|
|
3541
3541
|
}
|
|
3542
|
-
function
|
|
3542
|
+
function k(d, g) {
|
|
3543
3543
|
return e.value.filter((y) => {
|
|
3544
3544
|
if (y.inverted) return !1;
|
|
3545
3545
|
const v = y.subject;
|
|
3546
|
-
return v === d || a(v) !== d ? !1 : r.value.has(gt(v, g)) ? !0 : Object.keys(nt(
|
|
3546
|
+
return v === d || a(v) !== d ? !1 : r.value.has(gt(v, g)) ? !0 : Object.keys(nt(Be(y), g)).length > 0;
|
|
3547
3547
|
});
|
|
3548
3548
|
}
|
|
3549
3549
|
function M(d, g) {
|
|
3550
3550
|
const y = `::${g.builderKey}`, v = new Set(r.value);
|
|
3551
|
-
for (const
|
|
3552
|
-
if (!
|
|
3553
|
-
const L =
|
|
3554
|
-
a(L) === d && v.delete(
|
|
3551
|
+
for (const A of v) {
|
|
3552
|
+
if (!A.endsWith(y)) continue;
|
|
3553
|
+
const L = A.slice(0, -y.length);
|
|
3554
|
+
a(L) === d && v.delete(A);
|
|
3555
3555
|
}
|
|
3556
3556
|
r.value = v;
|
|
3557
3557
|
}
|
|
3558
3558
|
function p(d, g, y) {
|
|
3559
3559
|
const v = g.subject;
|
|
3560
|
-
return d.reduce((
|
|
3560
|
+
return d.reduce((A, L) => {
|
|
3561
3561
|
if (L.inverted)
|
|
3562
|
-
return
|
|
3562
|
+
return A.push(L), A;
|
|
3563
3563
|
const H = L.subject;
|
|
3564
3564
|
if (H === v || a(H) !== v)
|
|
3565
|
-
return
|
|
3566
|
-
if (Rt(g, L) && Object.keys(
|
|
3567
|
-
return
|
|
3568
|
-
const _ =
|
|
3565
|
+
return A.push(L), A;
|
|
3566
|
+
if (Rt(g, L) && Object.keys(Zt(L, y)).length === 0)
|
|
3567
|
+
return A;
|
|
3568
|
+
const _ = xn(L, g, y);
|
|
3569
3569
|
if (Object.keys(_).length === 0) {
|
|
3570
3570
|
const { conditions: O, ...P } = L;
|
|
3571
|
-
|
|
3571
|
+
A.push(P);
|
|
3572
3572
|
} else
|
|
3573
|
-
|
|
3574
|
-
return
|
|
3573
|
+
A.push({ ...L, conditions: JSON.stringify(_) });
|
|
3574
|
+
return A;
|
|
3575
3575
|
}, []);
|
|
3576
3576
|
}
|
|
3577
3577
|
function h(d, g, y, v = {}) {
|
|
3578
3578
|
var F;
|
|
3579
|
-
const
|
|
3579
|
+
const A = [...e.value];
|
|
3580
3580
|
let L = d.index;
|
|
3581
|
-
const H = g.toCondition(y),
|
|
3582
|
-
if (L === null && !
|
|
3581
|
+
const H = g.toCondition(y), U = Object.keys(H).length > 0;
|
|
3582
|
+
if (L === null && !U && !v.forceCreateRule) return;
|
|
3583
3583
|
if (L === null) {
|
|
3584
|
-
const
|
|
3585
|
-
if (
|
|
3586
|
-
L =
|
|
3584
|
+
const w = A.findIndex((V) => !V.inverted && V.subject === d.subject);
|
|
3585
|
+
if (w !== -1)
|
|
3586
|
+
L = w;
|
|
3587
3587
|
else {
|
|
3588
3588
|
const V = t.value.find((z) => z.subject === d.subject);
|
|
3589
3589
|
if (!V) return;
|
|
3590
3590
|
const {
|
|
3591
3591
|
category: j,
|
|
3592
|
-
showByFeatureFlag:
|
|
3593
|
-
isCategoryCover:
|
|
3592
|
+
showByFeatureFlag: Z,
|
|
3593
|
+
isCategoryCover: B,
|
|
3594
3594
|
...te
|
|
3595
3595
|
} = V;
|
|
3596
|
-
|
|
3596
|
+
A.push({
|
|
3597
3597
|
...te,
|
|
3598
3598
|
actions: d.actions.length > 0 ? d.actions : te.actions
|
|
3599
|
-
}), L =
|
|
3599
|
+
}), L = A.length - 1;
|
|
3600
3600
|
}
|
|
3601
3601
|
}
|
|
3602
|
-
const _ = { ...
|
|
3602
|
+
const _ = { ...A[L] };
|
|
3603
3603
|
_.actions = [
|
|
3604
3604
|
.../* @__PURE__ */ new Set([..._.actions, ...d.actions])
|
|
3605
3605
|
];
|
|
3606
|
-
const O =
|
|
3607
|
-
if (Object.keys(P).length === 0 ? delete _.conditions : _.conditions = JSON.stringify(P),
|
|
3608
|
-
const
|
|
3609
|
-
var
|
|
3610
|
-
M(d.subject, g), n(p(
|
|
3606
|
+
const O = Be(_), P = Dt(O, [{ builder: g, formValue: y }]);
|
|
3607
|
+
if (Object.keys(P).length === 0 ? delete _.conditions : _.conditions = JSON.stringify(P), A[L] = _, tn(d.subject, t.value)) {
|
|
3608
|
+
const w = k(d.subject, g), V = () => {
|
|
3609
|
+
var Z;
|
|
3610
|
+
M(d.subject, g), n(p(A, _, g)), (Z = v.afterCommit) == null || Z.call(v);
|
|
3611
3611
|
}, j = () => {
|
|
3612
|
-
var
|
|
3613
|
-
n(
|
|
3612
|
+
var Z;
|
|
3613
|
+
n(A), (Z = v.afterCommit) == null || Z.call(v);
|
|
3614
3614
|
};
|
|
3615
|
-
if (
|
|
3615
|
+
if (w.length === 0) {
|
|
3616
3616
|
V();
|
|
3617
3617
|
return;
|
|
3618
3618
|
}
|
|
3619
3619
|
v.onOverridesConflict ? v.onOverridesConflict({ override: V, keep: j }) : j();
|
|
3620
3620
|
return;
|
|
3621
3621
|
}
|
|
3622
|
-
n(
|
|
3622
|
+
n(A), (F = v.afterCommit) == null || F.call(v);
|
|
3623
3623
|
}
|
|
3624
3624
|
function S(d, g, y = {}) {
|
|
3625
3625
|
if (g.length === 0) return;
|
|
3626
3626
|
const v = [...e.value];
|
|
3627
|
-
let
|
|
3628
|
-
for (const
|
|
3629
|
-
const V =
|
|
3630
|
-
H =
|
|
3627
|
+
let A = v.findIndex((w) => !w.inverted && w.subject === d.subject), L = A === -1 ? void 0 : { ...v[A] }, H = Be(L ?? {}) ?? {};
|
|
3628
|
+
for (const w of g) {
|
|
3629
|
+
const V = w.mode === "inherit" ? w.builder.fromCondition(void 0) : w.form;
|
|
3630
|
+
H = Dt(H, [{ builder: w.builder, formValue: V }]);
|
|
3631
3631
|
}
|
|
3632
|
-
const
|
|
3633
|
-
if (!L && (Object.keys(H).length > 0 ||
|
|
3634
|
-
const
|
|
3635
|
-
if (!
|
|
3632
|
+
const U = g.some((w) => w.mode === "custom");
|
|
3633
|
+
if (!L && (Object.keys(H).length > 0 || U)) {
|
|
3634
|
+
const w = t.value.find((te) => te.subject === d.subject);
|
|
3635
|
+
if (!w) return;
|
|
3636
3636
|
const {
|
|
3637
3637
|
category: V,
|
|
3638
3638
|
showByFeatureFlag: j,
|
|
3639
|
-
isCategoryCover:
|
|
3640
|
-
...
|
|
3641
|
-
} =
|
|
3639
|
+
isCategoryCover: Z,
|
|
3640
|
+
...B
|
|
3641
|
+
} = w;
|
|
3642
3642
|
L = {
|
|
3643
|
-
...
|
|
3644
|
-
actions: d.actions.length > 0 ? d.actions :
|
|
3645
|
-
}, v.push(L),
|
|
3643
|
+
...B,
|
|
3644
|
+
actions: d.actions.length > 0 ? d.actions : B.actions
|
|
3645
|
+
}, v.push(L), A = v.length - 1;
|
|
3646
3646
|
}
|
|
3647
3647
|
if (L) {
|
|
3648
|
-
const
|
|
3649
|
-
if (!
|
|
3650
|
-
v.splice(
|
|
3648
|
+
const w = a(d.subject), V = w ? m(w) : void 0;
|
|
3649
|
+
if (!U && Object.keys(H).length === 0 && !!V && Rt(V, L))
|
|
3650
|
+
v.splice(A, 1), L = void 0;
|
|
3651
3651
|
else {
|
|
3652
3652
|
if (L.actions = [
|
|
3653
3653
|
.../* @__PURE__ */ new Set([...L.actions, ...d.actions])
|
|
3654
3654
|
], V)
|
|
3655
|
-
for (const
|
|
3656
|
-
|
|
3655
|
+
for (const Z of g)
|
|
3656
|
+
Z.mode === "inherit" && (H = {
|
|
3657
3657
|
...H,
|
|
3658
|
-
...nt(
|
|
3658
|
+
...nt(Be(V), Z.builder)
|
|
3659
3659
|
});
|
|
3660
|
-
Object.keys(H).length === 0 ? delete L.conditions : L.conditions = JSON.stringify(H), v[
|
|
3660
|
+
Object.keys(H).length === 0 ? delete L.conditions : L.conditions = JSON.stringify(H), v[A] = L;
|
|
3661
3661
|
}
|
|
3662
3662
|
}
|
|
3663
3663
|
const _ = () => {
|
|
3664
|
-
const
|
|
3664
|
+
const w = new Set(r.value);
|
|
3665
3665
|
for (const V of g) {
|
|
3666
3666
|
const j = gt(d.subject, V.builder);
|
|
3667
|
-
V.mode === "custom" ?
|
|
3667
|
+
V.mode === "custom" ? w.add(j) : w.delete(j);
|
|
3668
3668
|
}
|
|
3669
|
-
r.value =
|
|
3670
|
-
}, O = (
|
|
3669
|
+
r.value = w;
|
|
3670
|
+
}, O = (w) => {
|
|
3671
3671
|
var V;
|
|
3672
|
-
_(), n(
|
|
3672
|
+
_(), n(w), (V = y.afterCommit) == null || V.call(y);
|
|
3673
3673
|
};
|
|
3674
3674
|
if (!tn(d.subject, t.value) || !L) {
|
|
3675
3675
|
O(v);
|
|
3676
3676
|
return;
|
|
3677
3677
|
}
|
|
3678
|
-
const P = g.map((
|
|
3679
|
-
let
|
|
3678
|
+
const P = g.map((w) => w.builder).filter((w) => k(d.subject, w).length > 0), F = () => {
|
|
3679
|
+
let w = v;
|
|
3680
3680
|
for (const V of g.map((j) => j.builder))
|
|
3681
|
-
M(d.subject, V),
|
|
3682
|
-
O(
|
|
3681
|
+
M(d.subject, V), w = p(w, L, V);
|
|
3682
|
+
O(w);
|
|
3683
3683
|
};
|
|
3684
3684
|
if (P.length > 0 && y.onOverridesConflict) {
|
|
3685
3685
|
y.onOverridesConflict({ override: F, keep: () => O(v) });
|
|
@@ -3692,14 +3692,14 @@ function uo(e, t, n) {
|
|
|
3692
3692
|
coverLabel: f,
|
|
3693
3693
|
shouldShowInheritToggle: b,
|
|
3694
3694
|
inheritMode: E,
|
|
3695
|
-
setInheritMode:
|
|
3696
|
-
inheritedSummary:
|
|
3695
|
+
setInheritMode: D,
|
|
3696
|
+
inheritedSummary: N,
|
|
3697
3697
|
getEffectiveActions: R,
|
|
3698
3698
|
updateBuilderCondition: h,
|
|
3699
3699
|
applyConditionDrafts: S
|
|
3700
3700
|
};
|
|
3701
3701
|
}
|
|
3702
|
-
const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, _o = "condition-form-select-menu", So = /* @__PURE__ */
|
|
3702
|
+
const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, _o = "condition-form-select-menu", So = /* @__PURE__ */ ke({
|
|
3703
3703
|
__name: "PortalPermissionEditor",
|
|
3704
3704
|
props: /* @__PURE__ */ en({
|
|
3705
3705
|
disable: {
|
|
@@ -3728,13 +3728,13 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3728
3728
|
setup(e, { emit: t }) {
|
|
3729
3729
|
const n = vr(e, "modelValue"), r = e, a = K(() => r.part === "all" ? "trailing" : "leading"), o = K(
|
|
3730
3730
|
() => r.part === "all" ? "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" : ""
|
|
3731
|
-
), f = t, { t: m } = Ke(), i = hr(), b = br(), { breakpoints: E } = gr(),
|
|
3732
|
-
fetchCustomReportPermissions:
|
|
3733
|
-
customReportPermissions:
|
|
3731
|
+
), f = t, { t: m } = Ke(), i = hr(), b = br(), { breakpoints: E } = gr(), N = K(() => E.value.xs || E.value.sm), {
|
|
3732
|
+
fetchCustomReportPermissions: C,
|
|
3733
|
+
customReportPermissions: D
|
|
3734
3734
|
} = yr(), R = K(() => [
|
|
3735
3735
|
...Wn,
|
|
3736
|
-
...
|
|
3737
|
-
]),
|
|
3736
|
+
...D.value
|
|
3737
|
+
]), k = K(() => {
|
|
3738
3738
|
const s = i.currentBusiness.value, c = i.currentCountry.value, I = c instanceof Object ? c.code : c;
|
|
3739
3739
|
return io(s, I);
|
|
3740
3740
|
});
|
|
@@ -3744,8 +3744,8 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3744
3744
|
function p(s, c) {
|
|
3745
3745
|
return rn(s).filter(
|
|
3746
3746
|
(I) => {
|
|
3747
|
-
var
|
|
3748
|
-
return ((
|
|
3747
|
+
var x;
|
|
3748
|
+
return ((x = I.appliesToActions) == null ? void 0 : x.call(I, c)) ?? !0;
|
|
3749
3749
|
}
|
|
3750
3750
|
);
|
|
3751
3751
|
}
|
|
@@ -3754,7 +3754,7 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3754
3754
|
return Er(
|
|
3755
3755
|
r.inheritPermissions.map((I) => ({
|
|
3756
3756
|
...I,
|
|
3757
|
-
permissions: I.permissions.filter((
|
|
3757
|
+
permissions: I.permissions.filter((x) => s.includes(x.subject))
|
|
3758
3758
|
}))
|
|
3759
3759
|
).map((I) => ({
|
|
3760
3760
|
id: I.subject,
|
|
@@ -3764,19 +3764,19 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3764
3764
|
const s = r.inheritPermissions.map((c) => ({
|
|
3765
3765
|
...c,
|
|
3766
3766
|
permissions: c.permissions.filter(
|
|
3767
|
-
(I) => I.subject ===
|
|
3767
|
+
(I) => I.subject === Ye.Subject.Business.inventory_stock
|
|
3768
3768
|
)
|
|
3769
3769
|
}));
|
|
3770
3770
|
return St(
|
|
3771
3771
|
s,
|
|
3772
3772
|
"warehouseId",
|
|
3773
|
-
|
|
3773
|
+
A.value.map((c) => c._id)
|
|
3774
3774
|
);
|
|
3775
3775
|
}), d = K(() => {
|
|
3776
3776
|
const s = r.inheritPermissions.map((c) => ({
|
|
3777
3777
|
...c,
|
|
3778
3778
|
permissions: c.permissions.filter(
|
|
3779
|
-
(I) => I.subject ===
|
|
3779
|
+
(I) => I.subject === Ye.Subject.Restaurant.restaurant
|
|
3780
3780
|
)
|
|
3781
3781
|
}));
|
|
3782
3782
|
return St(
|
|
@@ -3787,82 +3787,82 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3787
3787
|
}), g = K(() => {
|
|
3788
3788
|
const s = r.inheritPermissions.map((c) => ({
|
|
3789
3789
|
...c,
|
|
3790
|
-
permissions: c.permissions.filter((I) => I.subject ===
|
|
3790
|
+
permissions: c.permissions.filter((I) => I.subject === Ye.Subject.Business.role)
|
|
3791
3791
|
}));
|
|
3792
3792
|
return St(
|
|
3793
3793
|
s,
|
|
3794
3794
|
"roleId",
|
|
3795
3795
|
O.value.map((c) => c._id)
|
|
3796
3796
|
);
|
|
3797
|
-
}), y = [...
|
|
3797
|
+
}), y = [...wr], v = K(() => {
|
|
3798
3798
|
var c;
|
|
3799
3799
|
const s = (c = n.value) == null ? void 0 : c.find(
|
|
3800
|
-
(I) => I.subject ===
|
|
3800
|
+
(I) => I.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 = K(() => A.value.map((s) => ({
|
|
3804
3804
|
label: s.profile.name,
|
|
3805
3805
|
value: s._id
|
|
3806
3806
|
})));
|
|
3807
3807
|
function H(s) {
|
|
3808
|
-
const c =
|
|
3808
|
+
const c = U(n.value, s);
|
|
3809
3809
|
n.value = c;
|
|
3810
3810
|
}
|
|
3811
|
-
function
|
|
3812
|
-
let I =
|
|
3813
|
-
s.filter((
|
|
3811
|
+
function U(s, c) {
|
|
3812
|
+
let I = Yn(
|
|
3813
|
+
s.filter((x) => x.subject !== Ye.Subject.Business.inventory_stock)
|
|
3814
3814
|
);
|
|
3815
3815
|
if (!c || c.length > 0) {
|
|
3816
|
-
const
|
|
3817
|
-
actions: [
|
|
3818
|
-
subject:
|
|
3816
|
+
const x = {
|
|
3817
|
+
actions: [Ye.Action.manage],
|
|
3818
|
+
subject: Ye.Subject.Business.inventory_stock
|
|
3819
3819
|
};
|
|
3820
|
-
c && (
|
|
3820
|
+
c && (x.conditions = JSON.stringify({ warehouseId: { $in: c } })), I.push(x);
|
|
3821
3821
|
}
|
|
3822
3822
|
return I;
|
|
3823
3823
|
}
|
|
3824
3824
|
const { restaurants: _ } = i, O = Fr().roles, P = K(() => _.value.map((s) => ({
|
|
3825
3825
|
label: `${s.profile.code ? s.profile.code + "-" : ""}${s.profile.name}`,
|
|
3826
3826
|
value: s._id
|
|
3827
|
-
}))), F = K(() => _.value.reduce((s, c) => (s[c._id] = O.value.filter((I) => I.restaurants.some((
|
|
3827
|
+
}))), F = K(() => _.value.reduce((s, c) => (s[c._id] = O.value.filter((I) => I.restaurants.some((x) => x.id === c._id)).map((I) => I._id), s), {})), w = K(() => Tr(n.value));
|
|
3828
3828
|
function V(s) {
|
|
3829
|
-
const c =
|
|
3829
|
+
const c = Z(n.value, s);
|
|
3830
3830
|
n.value = c;
|
|
3831
3831
|
}
|
|
3832
|
-
const j = K(() =>
|
|
3833
|
-
function
|
|
3834
|
-
return
|
|
3832
|
+
const j = K(() => Nr(n.value));
|
|
3833
|
+
function Z(s, c) {
|
|
3834
|
+
return Cr(s, c, {
|
|
3835
3835
|
restaurantRoles: F.value,
|
|
3836
3836
|
allRoleIds: O.value.map((I) => I._id)
|
|
3837
3837
|
});
|
|
3838
3838
|
}
|
|
3839
|
-
function
|
|
3839
|
+
function B(s) {
|
|
3840
3840
|
const c = te(n.value, s);
|
|
3841
3841
|
n.value = c;
|
|
3842
3842
|
}
|
|
3843
3843
|
function te(s, c) {
|
|
3844
3844
|
return Or(s, c);
|
|
3845
3845
|
}
|
|
3846
|
-
|
|
3846
|
+
Un(async () => {
|
|
3847
3847
|
await Promise.all([
|
|
3848
|
-
r.part !== "portal" && so.readWarehouses().then((s) =>
|
|
3849
|
-
|
|
3848
|
+
r.part !== "portal" && so.readWarehouses().then((s) => A.value = s),
|
|
3849
|
+
C()
|
|
3850
3850
|
]);
|
|
3851
3851
|
});
|
|
3852
3852
|
const z = K(() => Gn(
|
|
3853
3853
|
n.value,
|
|
3854
|
-
|
|
3854
|
+
Zn
|
|
3855
3855
|
).filter((I) => {
|
|
3856
|
-
const
|
|
3857
|
-
return (
|
|
3856
|
+
const x = I.source;
|
|
3857
|
+
return (x == null ? void 0 : x.type) !== "systemPermissionSet" ? !0 : I.actions.includes("manage");
|
|
3858
3858
|
}).map((I) => {
|
|
3859
3859
|
if (I.inverted) return I;
|
|
3860
|
-
const
|
|
3861
|
-
if (!
|
|
3860
|
+
const x = I.actions;
|
|
3861
|
+
if (!x.includes("manage")) return I;
|
|
3862
3862
|
const G = M(I.subject);
|
|
3863
3863
|
if (!G) return I;
|
|
3864
3864
|
const u = G.actions;
|
|
3865
|
-
return u.length <= 1 || u.filter((Q) => !
|
|
3865
|
+
return u.length <= 1 || u.filter((Q) => !x.includes(Q)).length === 0 ? I : { ...I, actions: [...u] };
|
|
3866
3866
|
}));
|
|
3867
3867
|
function me(s) {
|
|
3868
3868
|
n.value = ao(
|
|
@@ -3882,8 +3882,8 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3882
3882
|
(I) => !I.inverted && I.subject === c.subject
|
|
3883
3883
|
)
|
|
3884
3884
|
})).filter(({ rule: c }) => !c.inverted).forEach(({ rule: c, index: I }) => {
|
|
3885
|
-
var
|
|
3886
|
-
const
|
|
3885
|
+
var T;
|
|
3886
|
+
const x = c.actions, G = p(c.subject, x);
|
|
3887
3887
|
if (G.length === 0) return;
|
|
3888
3888
|
let u;
|
|
3889
3889
|
try {
|
|
@@ -3894,8 +3894,8 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3894
3894
|
s.set(c.subject, {
|
|
3895
3895
|
index: I >= 0 ? I : null,
|
|
3896
3896
|
subject: c.subject,
|
|
3897
|
-
label: ((
|
|
3898
|
-
actions:
|
|
3897
|
+
label: ((T = M(c.subject)) == null ? void 0 : T.label) ?? c.subject,
|
|
3898
|
+
actions: x,
|
|
3899
3899
|
// Each builder only ever sees its own slice of the stored condition.
|
|
3900
3900
|
sections: G.map((Q) => ({
|
|
3901
3901
|
builder: Q,
|
|
@@ -3905,17 +3905,17 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3905
3905
|
}), s;
|
|
3906
3906
|
}), ae = uo(n, R, (s) => {
|
|
3907
3907
|
n.value = s;
|
|
3908
|
-
}), le = Lr(n),
|
|
3909
|
-
function
|
|
3908
|
+
}), le = Lr(n), Ae = st(null);
|
|
3909
|
+
function Y(s, c) {
|
|
3910
3910
|
const I = he.value.get(s);
|
|
3911
3911
|
if (I) return I;
|
|
3912
|
-
const
|
|
3912
|
+
const x = ae.getEffectiveActions(s), G = p(s, x);
|
|
3913
3913
|
if (G.length !== 0)
|
|
3914
3914
|
return {
|
|
3915
3915
|
index: null,
|
|
3916
3916
|
subject: s,
|
|
3917
3917
|
label: c,
|
|
3918
|
-
actions:
|
|
3918
|
+
actions: x,
|
|
3919
3919
|
sections: G.map((u) => ({
|
|
3920
3920
|
builder: u,
|
|
3921
3921
|
formValue: u.fromCondition(void 0)
|
|
@@ -3925,15 +3925,15 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3925
3925
|
function fe(s, c) {
|
|
3926
3926
|
const I = le.getDraft({ subject: s.subject, builderKey: c.builderKey });
|
|
3927
3927
|
if (I) return I.formValue;
|
|
3928
|
-
const
|
|
3929
|
-
return
|
|
3928
|
+
const x = s.sections.find((G) => G.builder.builderKey === c.builderKey);
|
|
3929
|
+
return x == null ? void 0 : x.formValue;
|
|
3930
3930
|
}
|
|
3931
3931
|
function Je(s, c) {
|
|
3932
3932
|
const I = le.getDraft({ subject: s.subject, builderKey: c.builderKey });
|
|
3933
3933
|
return I != null && I.inheritMode ? I.inheritMode : ae.inheritMode(s, c);
|
|
3934
3934
|
}
|
|
3935
3935
|
function Qe(s, c, I) {
|
|
3936
|
-
const
|
|
3936
|
+
const x = le.getDraft({
|
|
3937
3937
|
subject: s.subject,
|
|
3938
3938
|
builderKey: c.builderKey
|
|
3939
3939
|
});
|
|
@@ -3941,33 +3941,33 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3941
3941
|
{ subject: s.subject, builderKey: c.builderKey },
|
|
3942
3942
|
{
|
|
3943
3943
|
formValue: I,
|
|
3944
|
-
inheritMode: (
|
|
3944
|
+
inheritMode: (x == null ? void 0 : x.inheritMode) ?? Je(s, c)
|
|
3945
3945
|
}
|
|
3946
3946
|
);
|
|
3947
3947
|
}
|
|
3948
3948
|
function Ve(s, c, I) {
|
|
3949
|
-
const
|
|
3949
|
+
const x = le.getDraft({
|
|
3950
3950
|
subject: s.subject,
|
|
3951
3951
|
builderKey: c.builderKey
|
|
3952
3952
|
}), G = s.sections.find((u) => u.builder.builderKey === c.builderKey);
|
|
3953
3953
|
le.setDraft(
|
|
3954
3954
|
{ subject: s.subject, builderKey: c.builderKey },
|
|
3955
3955
|
{
|
|
3956
|
-
formValue: (
|
|
3956
|
+
formValue: (x == null ? void 0 : x.formValue) ?? (G == null ? void 0 : G.formValue),
|
|
3957
3957
|
inheritMode: I
|
|
3958
3958
|
}
|
|
3959
3959
|
);
|
|
3960
3960
|
}
|
|
3961
|
-
function
|
|
3961
|
+
function we(s) {
|
|
3962
3962
|
return le.hasDraftsForSubject(s);
|
|
3963
3963
|
}
|
|
3964
3964
|
function Fe(s, c) {
|
|
3965
|
-
const I = s.sections.flatMap((
|
|
3965
|
+
const I = s.sections.flatMap((x) => {
|
|
3966
3966
|
const G = le.getDraft({
|
|
3967
3967
|
subject: s.subject,
|
|
3968
|
-
builderKey:
|
|
3968
|
+
builderKey: x.builder.builderKey
|
|
3969
3969
|
});
|
|
3970
|
-
return G ? [{ builder:
|
|
3970
|
+
return G ? [{ builder: x.builder, form: G.formValue, mode: G.inheritMode ?? "custom" }] : [];
|
|
3971
3971
|
});
|
|
3972
3972
|
ae.applyConditionDrafts(s, I, {
|
|
3973
3973
|
afterCommit: () => {
|
|
@@ -3983,7 +3983,7 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3983
3983
|
function l(s, c = {}) {
|
|
3984
3984
|
return {
|
|
3985
3985
|
...c,
|
|
3986
|
-
onOverridesConflict: ({ override: I, keep:
|
|
3986
|
+
onOverridesConflict: ({ override: I, keep: x }) => {
|
|
3987
3987
|
Pe || (Pe = !0, b.open({
|
|
3988
3988
|
title: m("team.memberForm.permissions.conditionCover.confirmTitle"),
|
|
3989
3989
|
message: m("team.memberForm.permissions.conditionCover.confirmMessage", {
|
|
@@ -4002,7 +4002,7 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
4002
4002
|
}).onPrimary(() => {
|
|
4003
4003
|
I(), Pe = !1, b.close();
|
|
4004
4004
|
}).onSecondary(() => {
|
|
4005
|
-
|
|
4005
|
+
x(), Pe = !1, b.close();
|
|
4006
4006
|
}).onClose(() => {
|
|
4007
4007
|
Pe = !1;
|
|
4008
4008
|
}));
|
|
@@ -4016,7 +4016,7 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
4016
4016
|
},
|
|
4017
4017
|
{ deep: !0 }
|
|
4018
4018
|
), (s, c) => {
|
|
4019
|
-
const I =
|
|
4019
|
+
const I = De("FmIcon"), x = De("FmBottomSheet"), G = De("FmPopover");
|
|
4020
4020
|
return J(), re("div", {
|
|
4021
4021
|
class: ye(["flex flex-col", e.part === "all" ? "gap-32" : "gap-16"])
|
|
4022
4022
|
}, [
|
|
@@ -4027,7 +4027,7 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
4027
4027
|
oe(Xa, {
|
|
4028
4028
|
"model-value": z.value,
|
|
4029
4029
|
"excluded-subjects": y,
|
|
4030
|
-
"additional-permissions": X(
|
|
4030
|
+
"additional-permissions": X(D),
|
|
4031
4031
|
layout: a.value,
|
|
4032
4032
|
"onUpdate:modelValue": me
|
|
4033
4033
|
}, tt({ _: 2 }, [
|
|
@@ -4039,19 +4039,19 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
4039
4039
|
})),
|
|
4040
4040
|
Ee(ve.value, (u) => ({
|
|
4041
4041
|
name: `checkbox-${u}-icon`,
|
|
4042
|
-
fn: ce(({ option:
|
|
4043
|
-
Q &&
|
|
4044
|
-
|
|
4042
|
+
fn: ce(({ option: T, isEffectiveSelected: Q }) => [
|
|
4043
|
+
Q && Y(u, T.label) ? (J(), re(Me, { key: 0 }, [
|
|
4044
|
+
N.value ? (J(), Ne(x, {
|
|
4045
4045
|
key: 0,
|
|
4046
|
-
"model-value":
|
|
4046
|
+
"model-value": Ae.value === u,
|
|
4047
4047
|
header: X(m)("team.memberForm.permissions.conditionTitle", {
|
|
4048
|
-
context:
|
|
4048
|
+
context: Y(u, T.label).label
|
|
4049
4049
|
}),
|
|
4050
4050
|
"dismiss-away": "",
|
|
4051
4051
|
"z-index": 100,
|
|
4052
4052
|
class: "h-5 flex items-center",
|
|
4053
4053
|
"onUpdate:modelValue": ($) => {
|
|
4054
|
-
|
|
4054
|
+
Ae.value = $ ? u : null, $ || X(le).clearDraftsForSubject(u);
|
|
4055
4055
|
}
|
|
4056
4056
|
}, {
|
|
4057
4057
|
"bottom-sheet-button": ce(() => [
|
|
@@ -4061,30 +4061,30 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
4061
4061
|
size: "sm",
|
|
4062
4062
|
class: ye([
|
|
4063
4063
|
"cursor-pointer transition-colors",
|
|
4064
|
-
We(
|
|
4064
|
+
We(Y(u, T.label)) ? "text-fm-color-primary-main" : "text-fm-color-neutral-gray-400 hover:text-fm-color-neutral-gray-600"
|
|
4065
4065
|
])
|
|
4066
4066
|
}, null, 8, ["class"])
|
|
4067
4067
|
])
|
|
4068
4068
|
]),
|
|
4069
4069
|
default: ce(() => [
|
|
4070
|
-
oe(
|
|
4071
|
-
entry:
|
|
4072
|
-
builders:
|
|
4070
|
+
oe(wn, {
|
|
4071
|
+
entry: Y(u, T.label),
|
|
4072
|
+
builders: Y(u, T.label).sections.map(($) => $.builder),
|
|
4073
4073
|
subject: u,
|
|
4074
|
-
"time-zone":
|
|
4074
|
+
"time-zone": k.value,
|
|
4075
4075
|
"cover-override": X(ae),
|
|
4076
|
-
"inherit-mode-for": ($) => Je(
|
|
4077
|
-
"form-value-for": ($) => fe(
|
|
4078
|
-
"has-changes":
|
|
4076
|
+
"inherit-mode-for": ($) => Je(Y(u, T.label), $),
|
|
4077
|
+
"form-value-for": ($) => fe(Y(u, T.label), $),
|
|
4078
|
+
"has-changes": we(u),
|
|
4079
4079
|
disable: e.disable,
|
|
4080
4080
|
"full-width": !0,
|
|
4081
|
-
onUpdateInheritMode: ({ builder: $, mode: de }) => Ve(
|
|
4082
|
-
onUpdateForm: ({ builder: $, form: de }) => Qe(
|
|
4083
|
-
onApply: ($) => Fe(
|
|
4081
|
+
onUpdateInheritMode: ({ builder: $, mode: de }) => Ve(Y(u, T.label), $, de),
|
|
4082
|
+
onUpdateForm: ({ builder: $, form: de }) => Qe(Y(u, T.label), $, de),
|
|
4083
|
+
onApply: ($) => Fe(Y(u, T.label), () => Ae.value = null)
|
|
4084
4084
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4085
4085
|
]),
|
|
4086
4086
|
_: 2
|
|
4087
|
-
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (J(),
|
|
4087
|
+
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (J(), Ne(G, {
|
|
4088
4088
|
key: 1,
|
|
4089
4089
|
disabled: e.disable,
|
|
4090
4090
|
"z-index": 100,
|
|
@@ -4101,37 +4101,37 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
4101
4101
|
size: "sm",
|
|
4102
4102
|
class: ye([
|
|
4103
4103
|
"cursor-pointer transition-colors",
|
|
4104
|
-
We(
|
|
4104
|
+
We(Y(u, T.label)) ? "text-fm-color-primary-main" : "text-fm-color-neutral-gray-400 hover:text-fm-color-neutral-gray-600"
|
|
4105
4105
|
])
|
|
4106
4106
|
}, null, 8, ["class"])
|
|
4107
4107
|
])
|
|
4108
4108
|
]),
|
|
4109
4109
|
default: ce(({ hide: $ }) => [
|
|
4110
|
-
oe(
|
|
4111
|
-
entry:
|
|
4112
|
-
builders:
|
|
4110
|
+
oe(wn, {
|
|
4111
|
+
entry: Y(u, T.label),
|
|
4112
|
+
builders: Y(u, T.label).sections.map((de) => de.builder),
|
|
4113
4113
|
subject: u,
|
|
4114
|
-
"time-zone":
|
|
4114
|
+
"time-zone": k.value,
|
|
4115
4115
|
"cover-override": X(ae),
|
|
4116
4116
|
title: X(m)("team.memberForm.permissions.conditionTitle", {
|
|
4117
|
-
context:
|
|
4117
|
+
context: Y(u, T.label).label
|
|
4118
4118
|
}),
|
|
4119
|
-
"inherit-mode-for": (de) => Je(
|
|
4120
|
-
"form-value-for": (de) => fe(
|
|
4121
|
-
"has-changes":
|
|
4119
|
+
"inherit-mode-for": (de) => Je(Y(u, T.label), de),
|
|
4120
|
+
"form-value-for": (de) => fe(Y(u, T.label), de),
|
|
4121
|
+
"has-changes": we(u),
|
|
4122
4122
|
disable: e.disable,
|
|
4123
4123
|
onUpdateInheritMode: ({ builder: de, mode: Ge }) => Ve(
|
|
4124
|
-
|
|
4124
|
+
Y(u, T.label),
|
|
4125
4125
|
de,
|
|
4126
4126
|
Ge
|
|
4127
4127
|
),
|
|
4128
|
-
onUpdateForm: ({ builder: de, form: Ge }) => Qe(
|
|
4129
|
-
onApply: (de) => Fe(
|
|
4128
|
+
onUpdateForm: ({ builder: de, form: Ge }) => Qe(Y(u, T.label), de, Ge),
|
|
4129
|
+
onApply: (de) => Fe(Y(u, T.label), $)
|
|
4130
4130
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "title", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4131
4131
|
]),
|
|
4132
4132
|
_: 2
|
|
4133
4133
|
}, 1032, ["disabled", "exclude-el-from-click-outside", "onPopoverChanged"]))
|
|
4134
|
-
], 64)) : (J(),
|
|
4134
|
+
], 64)) : (J(), Ne(I, {
|
|
4135
4135
|
key: 1,
|
|
4136
4136
|
name: "settings",
|
|
4137
4137
|
size: "sm",
|
|
@@ -4140,12 +4140,12 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
4140
4140
|
])
|
|
4141
4141
|
}))
|
|
4142
4142
|
]), 1032, ["model-value", "additional-permissions", "layout"])
|
|
4143
|
-
], 2)) :
|
|
4143
|
+
], 2)) : Te("", !0),
|
|
4144
4144
|
e.part !== "portal" ? (J(), re("div", {
|
|
4145
4145
|
key: 1,
|
|
4146
4146
|
class: ye(o.value)
|
|
4147
4147
|
}, [
|
|
4148
|
-
oe(
|
|
4148
|
+
oe(Dn, {
|
|
4149
4149
|
"model-value": v.value,
|
|
4150
4150
|
options: L.value,
|
|
4151
4151
|
context: X(m)("team.labels.warehouse"),
|
|
@@ -4159,13 +4159,13 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
4159
4159
|
])
|
|
4160
4160
|
}))
|
|
4161
4161
|
]), 1032, ["model-value", "options", "context", "layout"])
|
|
4162
|
-
], 2)) :
|
|
4162
|
+
], 2)) : Te("", !0),
|
|
4163
4163
|
e.part !== "portal" ? (J(), re("div", {
|
|
4164
4164
|
key: 2,
|
|
4165
4165
|
class: ye([o.value, { "order-first": e.part === "workplace" }])
|
|
4166
4166
|
}, [
|
|
4167
|
-
oe(
|
|
4168
|
-
"model-value":
|
|
4167
|
+
oe(Dn, {
|
|
4168
|
+
"model-value": w.value,
|
|
4169
4169
|
options: P.value,
|
|
4170
4170
|
context: X(m)("team.labels.restaurant"),
|
|
4171
4171
|
layout: a.value,
|
|
@@ -4178,7 +4178,7 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
4178
4178
|
])
|
|
4179
4179
|
}))
|
|
4180
4180
|
]), 1032, ["model-value", "options", "context", "layout"])
|
|
4181
|
-
], 2)) :
|
|
4181
|
+
], 2)) : Te("", !0),
|
|
4182
4182
|
e.part !== "portal" ? (J(), re("div", {
|
|
4183
4183
|
key: 3,
|
|
4184
4184
|
class: ye(o.value)
|
|
@@ -4186,9 +4186,9 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
4186
4186
|
oe(eo, {
|
|
4187
4187
|
roles: X(O),
|
|
4188
4188
|
"model-value": j.value,
|
|
4189
|
-
"restaurant-ids":
|
|
4189
|
+
"restaurant-ids": w.value,
|
|
4190
4190
|
layout: a.value,
|
|
4191
|
-
"onUpdate:modelValue":
|
|
4191
|
+
"onUpdate:modelValue": B
|
|
4192
4192
|
}, tt({ _: 2 }, [
|
|
4193
4193
|
Ee(g.value, (u) => ({
|
|
4194
4194
|
name: `checkbox-${u.id}-append`,
|
|
@@ -4197,7 +4197,7 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
4197
4197
|
])
|
|
4198
4198
|
}))
|
|
4199
4199
|
]), 1032, ["roles", "model-value", "restaurant-ids", "layout"])
|
|
4200
|
-
], 2)) :
|
|
4200
|
+
], 2)) : Te("", !0)
|
|
4201
4201
|
], 2);
|
|
4202
4202
|
};
|
|
4203
4203
|
}
|