@feedmepos/mf-hrm-portal 2.2.5-dev → 2.2.5-dev.3
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-DgcWZ3SZ.js → ApprovalCodeList-BuIPVwsl.js} +2 -2
- package/dist/{AuditLogList-vWKMMGvd.js → AuditLogList-l3fv_3jD.js} +3 -3
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DuhXogXK.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BYY9dMSQ.js} +2 -2
- package/dist/EmployeeList-HjNxPBcN.js +786 -0
- package/dist/{GrantUserList-BAW0C1bA.js → GrantUserList-B91EBl82.js} +3 -3
- package/dist/{Main-B7Nn8CLQ.js → Main-C_tQuQsU.js} +9 -9
- package/dist/{Main-Wr6cTqfM.js → Main-DeqJPnm7.js} +2 -2
- package/dist/{Main-NzpdRNB3.js → Main-TuG-h_qY.js} +5 -5
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +243 -0
- package/dist/{PermissionSetList-D6AFOleD.js → PermissionSetList-qVaYkiQ4.js} +18 -18
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bzq2_BMn.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DcpNr0M4.js} +784 -784
- package/dist/{RoleList-BuqpmXn_.js → RoleList-CM0m4nya.js} +7 -7
- package/dist/TeamMemberList-GkMQuyoE.js +1153 -0
- package/dist/{TimesheetList-B5FyVyCz.js → TimesheetList-Ci2r3AOF.js} +5 -5
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-C99Jr6Ax.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-QbQ7tbJP.js} +2 -2
- package/dist/{app-8samJY5z.js → app-MXDLzWd6.js} +1140 -1132
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-Ba4X_9nY.js → dayjs.min-DRqYbe11.js} +1 -1
- package/dist/{employee-BcFgm8Rt.js → employee-zsQMMIVM.js} +3 -3
- package/dist/{iteration-Dhdew1jW.js → iteration-CtN8sidV.js} +1 -1
- package/dist/{lodash-CJ3mHku0.js → lodash-BwY7earz.js} +1 -1
- package/dist/{role-BViYS7RK.js → role-Ds1yN3BN.js} +1 -1
- package/dist/{rule-Dxt1ZSQS.js → rule-DkG2eGGH.js} +257 -253
- package/dist/src/components/form/OutletRoleAssignment.vue.d.ts +16 -0
- package/dist/src/helpers/outlet-role-assignment.d.ts +40 -0
- package/dist/src/helpers/rule.d.ts +15 -0
- package/dist/src/views/team/member/TeamMemberMasterUser.vue.d.ts +12 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-BiyAfGvZ.js → useReportPermissions-B_YakoB-.js} +3 -3
- package/package.json +1 -1
- package/dist/EmployeeList-Cu4RxVQX.js +0 -889
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-BUI0Xsgc.js +0 -85
- package/dist/TeamMemberList-M6HA9BWu.js +0 -1248
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
1
|
+
import { getCurrentInstance as Yt, inject as ur, ref as rt, shallowRef as dr, computed as z, watch as wt, onMounted as xn, onUnmounted as mr, defineComponent as ke, h as Gn, createVNode as ue, Text as fr, Fragment as Re, resolveComponent as we, createBlock as Ne, openBlock as J, withCtx as de, createElementVNode as ae, createElementBlock as ie, toDisplayString as Te, unref as H, renderList as Ie, toRef as en, normalizeStyle as nt, renderSlot as Se, createCommentVNode as Me, createTextVNode as _r, useSlots as vr, normalizeClass as qe, createSlots as et, mergeModels as tn, useModel as pr } from "vue";
|
|
2
2
|
import { useI18n as He, 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
|
|
6
|
-
import { _ as Bt, a as Cr, b as nn, u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { c as yt } from "./iteration-
|
|
9
|
-
import { r as
|
|
5
|
+
import { p as Wn, N as Zn, d as yr, P as Er, w as Lt, x as Ir, y as Nr } from "./rule-DkG2eGGH.js";
|
|
6
|
+
import { _ as Bt, a as Cr, b as nn, u as Or } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BYY9dMSQ.js";
|
|
7
|
+
import { u as Tr, b as Sr, d as Xn, S as Dt, A as tt, e as he, k as rn, O as Lr } from "./app-MXDLzWd6.js";
|
|
8
|
+
import { c as yt } from "./iteration-CtN8sidV.js";
|
|
9
|
+
import { r as kr } from "./string-VNuQNweN.js";
|
|
10
10
|
import { g as Ar, b as Rr } from "./restaurant-BTpBmfBV.js";
|
|
11
|
-
import { u as Mr } from "./role-
|
|
12
|
-
function
|
|
11
|
+
import { u as Mr } from "./role-Ds1yN3BN.js";
|
|
12
|
+
function Yn(e, t) {
|
|
13
13
|
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
14
14
|
}
|
|
15
15
|
function wr(e) {
|
|
16
16
|
return Array.isArray(e) ? e[0] : e;
|
|
17
17
|
}
|
|
18
18
|
function Dr(e, t) {
|
|
19
|
-
const n = t.find((l) =>
|
|
19
|
+
const n = t.find((l) => Yn(l.subject, e));
|
|
20
20
|
if (!(n != null && n.category) || n.isCategoryCover) return;
|
|
21
21
|
const r = t.find((l) => l.category === n.category && l.isCategoryCover);
|
|
22
22
|
if (r)
|
|
23
23
|
return wr(r.subject);
|
|
24
24
|
}
|
|
25
25
|
function sn(e, t) {
|
|
26
|
-
const n = t.find((r) =>
|
|
26
|
+
const n = t.find((r) => Yn(r.subject, e));
|
|
27
27
|
return !!(n != null && n.isCategoryCover);
|
|
28
28
|
}
|
|
29
29
|
/*!
|
|
@@ -38,14 +38,14 @@ function ln(e) {
|
|
|
38
38
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
39
39
|
}
|
|
40
40
|
const Vr = Object.prototype.hasOwnProperty;
|
|
41
|
-
function
|
|
41
|
+
function Le(e, t) {
|
|
42
42
|
return Vr.call(e, t);
|
|
43
43
|
}
|
|
44
|
-
const be = Array.isArray,
|
|
44
|
+
const be = Array.isArray, me = (e) => typeof e == "function", Z = (e) => typeof e == "string", pe = (e) => typeof e == "boolean", te = (e) => e !== null && typeof e == "object", xr = (e) => te(e) && me(e.then) && me(e.catch), Bn = Object.prototype.toString, Ht = (e) => Bn.call(e), ee = (e) => Ht(e) === "[object Object]", Gr = (e) => e == null ? "" : be(e) || ee(e) && e.toString === Bn ? JSON.stringify(e, null, 2) : String(e);
|
|
45
45
|
function $t(e, t = "") {
|
|
46
46
|
return e.reduce((n, r, l) => l === 0 ? n + r : n + t + r, "");
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Wr(e, t) {
|
|
49
49
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
50
50
|
}
|
|
51
51
|
const ft = (e) => !te(e) || be(e);
|
|
@@ -83,12 +83,12 @@ const re = {
|
|
|
83
83
|
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
84
84
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
85
85
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
86
|
-
},
|
|
87
|
-
function
|
|
88
|
-
const { domain: r, messages: l, args: a } = n,
|
|
86
|
+
}, Xr = 17;
|
|
87
|
+
function Ot(e, t, n = {}) {
|
|
88
|
+
const { domain: r, messages: l, args: a } = n, d = e, u = new SyntaxError(String(d));
|
|
89
89
|
return u.code = e, t && (u.location = t), u.domain = r, u;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Yr(e) {
|
|
92
92
|
throw e;
|
|
93
93
|
}
|
|
94
94
|
const Pe = " ", Br = "\r", Ee = `
|
|
@@ -96,12 +96,12 @@ const Pe = " ", Br = "\r", Ee = `
|
|
|
96
96
|
function Jr(e) {
|
|
97
97
|
const t = e;
|
|
98
98
|
let n = 0, r = 1, l = 1, a = 0;
|
|
99
|
-
const
|
|
99
|
+
const d = (v) => t[v] === Br && t[v + 1] === Ee, u = (v) => t[v] === Ee, i = (v) => t[v] === $r, g = (v) => t[v] === Hr, E = (v) => d(v) || u(v) || i(v) || g(v), O = () => n, N = () => r, F = () => l, w = () => a, k = (v) => d(v) || i(v) || g(v) ? Ee : t[v], D = () => k(n), f = () => k(n + a);
|
|
100
100
|
function h() {
|
|
101
|
-
return a = 0, E(n) && (r++, l = 0),
|
|
101
|
+
return a = 0, E(n) && (r++, l = 0), d(n) && n++, n++, l++, t[n];
|
|
102
102
|
}
|
|
103
103
|
function S() {
|
|
104
|
-
return
|
|
104
|
+
return d(n + a) && a++, a++, t[n + a];
|
|
105
105
|
}
|
|
106
106
|
function c() {
|
|
107
107
|
n = 0, r = 1, l = 1, a = 0;
|
|
@@ -116,11 +116,11 @@ function Jr(e) {
|
|
|
116
116
|
a = 0;
|
|
117
117
|
}
|
|
118
118
|
return {
|
|
119
|
-
index:
|
|
119
|
+
index: O,
|
|
120
120
|
line: N,
|
|
121
121
|
column: F,
|
|
122
122
|
peekOffset: w,
|
|
123
|
-
charAt:
|
|
123
|
+
charAt: k,
|
|
124
124
|
currentChar: D,
|
|
125
125
|
currentPeek: f,
|
|
126
126
|
next: h,
|
|
@@ -132,23 +132,23 @@ function Jr(e) {
|
|
|
132
132
|
}
|
|
133
133
|
const xe = void 0, Kr = ".", cn = "'", zr = "tokenizer";
|
|
134
134
|
function Qr(e, t = {}) {
|
|
135
|
-
const n = t.location !== !1, r = Jr(e), l = () => r.index(), a = () => Zr(r.line(), r.column(), r.index()),
|
|
135
|
+
const n = t.location !== !1, r = Jr(e), l = () => r.index(), a = () => Zr(r.line(), r.column(), r.index()), d = a(), u = l(), i = {
|
|
136
136
|
currentType: 13,
|
|
137
137
|
offset: u,
|
|
138
|
-
startLoc:
|
|
139
|
-
endLoc:
|
|
138
|
+
startLoc: d,
|
|
139
|
+
endLoc: d,
|
|
140
140
|
lastType: 13,
|
|
141
141
|
lastOffset: u,
|
|
142
|
-
lastStartLoc:
|
|
143
|
-
lastEndLoc:
|
|
142
|
+
lastStartLoc: d,
|
|
143
|
+
lastEndLoc: d,
|
|
144
144
|
braceNest: 0,
|
|
145
145
|
inLinked: !1,
|
|
146
146
|
text: ""
|
|
147
147
|
}, g = () => i, { onError: E } = t;
|
|
148
|
-
function
|
|
148
|
+
function O(s, o, _, ...A) {
|
|
149
149
|
const M = g();
|
|
150
150
|
if (o.column += _, o.offset += _, E) {
|
|
151
|
-
const P = n ? Ft(M.startLoc, o) : null, p =
|
|
151
|
+
const P = n ? Ft(M.startLoc, o) : null, p = Ot(s, P, {
|
|
152
152
|
domain: zr,
|
|
153
153
|
args: A
|
|
154
154
|
});
|
|
@@ -166,16 +166,16 @@ function Qr(e, t = {}) {
|
|
|
166
166
|
/* TokenTypes.EOF */
|
|
167
167
|
);
|
|
168
168
|
function w(s, o) {
|
|
169
|
-
return s.currentChar() === o ? (s.next(), o) : (
|
|
169
|
+
return s.currentChar() === o ? (s.next(), o) : (O(re.EXPECTED_TOKEN, a(), 0, o), "");
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function k(s) {
|
|
172
172
|
let o = "";
|
|
173
173
|
for (; s.currentPeek() === Pe || s.currentPeek() === Ee; )
|
|
174
174
|
o += s.currentPeek(), s.peek();
|
|
175
175
|
return o;
|
|
176
176
|
}
|
|
177
177
|
function D(s) {
|
|
178
|
-
const o =
|
|
178
|
+
const o = k(s);
|
|
179
179
|
return s.skipToPeek(), o;
|
|
180
180
|
}
|
|
181
181
|
function f(s) {
|
|
@@ -196,7 +196,7 @@ function Qr(e, t = {}) {
|
|
|
196
196
|
const { currentType: _ } = o;
|
|
197
197
|
if (_ !== 2)
|
|
198
198
|
return !1;
|
|
199
|
-
|
|
199
|
+
k(s);
|
|
200
200
|
const A = f(s.currentPeek());
|
|
201
201
|
return s.resetPeek(), A;
|
|
202
202
|
}
|
|
@@ -204,7 +204,7 @@ function Qr(e, t = {}) {
|
|
|
204
204
|
const { currentType: _ } = o;
|
|
205
205
|
if (_ !== 2)
|
|
206
206
|
return !1;
|
|
207
|
-
|
|
207
|
+
k(s);
|
|
208
208
|
const A = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), M = h(A);
|
|
209
209
|
return s.resetPeek(), M;
|
|
210
210
|
}
|
|
@@ -212,7 +212,7 @@ function Qr(e, t = {}) {
|
|
|
212
212
|
const { currentType: _ } = o;
|
|
213
213
|
if (_ !== 2)
|
|
214
214
|
return !1;
|
|
215
|
-
|
|
215
|
+
k(s);
|
|
216
216
|
const A = s.currentPeek() === cn;
|
|
217
217
|
return s.resetPeek(), A;
|
|
218
218
|
}
|
|
@@ -220,7 +220,7 @@ function Qr(e, t = {}) {
|
|
|
220
220
|
const { currentType: _ } = o;
|
|
221
221
|
if (_ !== 7)
|
|
222
222
|
return !1;
|
|
223
|
-
|
|
223
|
+
k(s);
|
|
224
224
|
const A = s.currentPeek() === ".";
|
|
225
225
|
return s.resetPeek(), A;
|
|
226
226
|
}
|
|
@@ -228,7 +228,7 @@ function Qr(e, t = {}) {
|
|
|
228
228
|
const { currentType: _ } = o;
|
|
229
229
|
if (_ !== 8)
|
|
230
230
|
return !1;
|
|
231
|
-
|
|
231
|
+
k(s);
|
|
232
232
|
const A = f(s.currentPeek());
|
|
233
233
|
return s.resetPeek(), A;
|
|
234
234
|
}
|
|
@@ -236,11 +236,11 @@ function Qr(e, t = {}) {
|
|
|
236
236
|
const { currentType: _ } = o;
|
|
237
237
|
if (!(_ === 7 || _ === 11))
|
|
238
238
|
return !1;
|
|
239
|
-
|
|
239
|
+
k(s);
|
|
240
240
|
const A = s.currentPeek() === ":";
|
|
241
241
|
return s.resetPeek(), A;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function L(s, o) {
|
|
244
244
|
const { currentType: _ } = o;
|
|
245
245
|
if (_ !== 9)
|
|
246
246
|
return !1;
|
|
@@ -251,7 +251,7 @@ function Qr(e, t = {}) {
|
|
|
251
251
|
return s.resetPeek(), M;
|
|
252
252
|
}
|
|
253
253
|
function B(s) {
|
|
254
|
-
|
|
254
|
+
k(s);
|
|
255
255
|
const o = s.currentPeek() === "|";
|
|
256
256
|
return s.resetPeek(), o;
|
|
257
257
|
}
|
|
@@ -262,7 +262,7 @@ function Qr(e, t = {}) {
|
|
|
262
262
|
}, A = _();
|
|
263
263
|
return o && s.resetPeek(), A;
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function m(s, o) {
|
|
266
266
|
const _ = s.currentChar();
|
|
267
267
|
return _ === xe ? xe : o(_) ? (s.next(), _) : null;
|
|
268
268
|
}
|
|
@@ -275,7 +275,7 @@ function Qr(e, t = {}) {
|
|
|
275
275
|
o === 36;
|
|
276
276
|
}
|
|
277
277
|
function U(s) {
|
|
278
|
-
return
|
|
278
|
+
return m(s, C);
|
|
279
279
|
}
|
|
280
280
|
function V(s) {
|
|
281
281
|
const o = s.charCodeAt(0);
|
|
@@ -287,27 +287,27 @@ function Qr(e, t = {}) {
|
|
|
287
287
|
o === 45;
|
|
288
288
|
}
|
|
289
289
|
function j(s) {
|
|
290
|
-
return
|
|
290
|
+
return m(s, V);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function W(s) {
|
|
293
293
|
const o = s.charCodeAt(0);
|
|
294
294
|
return o >= 48 && o <= 57;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
297
|
-
return
|
|
296
|
+
function G(s) {
|
|
297
|
+
return m(s, W);
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function X(s) {
|
|
300
300
|
const o = s.charCodeAt(0);
|
|
301
301
|
return o >= 48 && o <= 57 || // 0-9
|
|
302
302
|
o >= 65 && o <= 70 || // A-F
|
|
303
303
|
o >= 97 && o <= 102;
|
|
304
304
|
}
|
|
305
|
-
function
|
|
306
|
-
return
|
|
305
|
+
function Y(s) {
|
|
306
|
+
return m(s, X);
|
|
307
307
|
}
|
|
308
308
|
function ne(s) {
|
|
309
309
|
let o = "", _ = "";
|
|
310
|
-
for (; o =
|
|
310
|
+
for (; o = G(s); )
|
|
311
311
|
_ += o;
|
|
312
312
|
return _;
|
|
313
313
|
}
|
|
@@ -335,12 +335,12 @@ function Qr(e, t = {}) {
|
|
|
335
335
|
let o = "", _ = "";
|
|
336
336
|
for (; o = j(s); )
|
|
337
337
|
_ += o;
|
|
338
|
-
return s.currentChar() === xe &&
|
|
338
|
+
return s.currentChar() === xe && O(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _;
|
|
339
339
|
}
|
|
340
340
|
function ce(s) {
|
|
341
341
|
D(s);
|
|
342
342
|
let o = "";
|
|
343
|
-
return s.currentChar() === "-" ? (s.next(), o += `-${ne(s)}`) : o += ne(s), s.currentChar() === xe &&
|
|
343
|
+
return s.currentChar() === "-" ? (s.next(), o += `-${ne(s)}`) : o += ne(s), s.currentChar() === xe && O(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
344
344
|
}
|
|
345
345
|
function se(s) {
|
|
346
346
|
return s !== cn && s !== Ee;
|
|
@@ -348,10 +348,10 @@ function Qr(e, t = {}) {
|
|
|
348
348
|
function fe(s) {
|
|
349
349
|
D(s), w(s, "'");
|
|
350
350
|
let o = "", _ = "";
|
|
351
|
-
for (; o =
|
|
351
|
+
for (; o = m(s, se); )
|
|
352
352
|
o === "\\" ? _ += q(s) : _ += o;
|
|
353
353
|
const A = s.currentChar();
|
|
354
|
-
return A === Ee || A === xe ? (
|
|
354
|
+
return A === Ee || A === xe ? (O(re.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), A === Ee && (s.next(), w(s, "'")), _) : (w(s, "'"), _);
|
|
355
355
|
}
|
|
356
356
|
function q(s) {
|
|
357
357
|
const o = s.currentChar();
|
|
@@ -364,16 +364,16 @@ function Qr(e, t = {}) {
|
|
|
364
364
|
case "U":
|
|
365
365
|
return De(s, o, 6);
|
|
366
366
|
default:
|
|
367
|
-
return
|
|
367
|
+
return O(re.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
function De(s, o, _) {
|
|
371
371
|
w(s, o);
|
|
372
372
|
let A = "";
|
|
373
373
|
for (let M = 0; M < _; M++) {
|
|
374
|
-
const P =
|
|
374
|
+
const P = Y(s);
|
|
375
375
|
if (!P) {
|
|
376
|
-
|
|
376
|
+
O(re.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${A}${s.currentChar()}`);
|
|
377
377
|
break;
|
|
378
378
|
}
|
|
379
379
|
A += P;
|
|
@@ -386,7 +386,7 @@ function Qr(e, t = {}) {
|
|
|
386
386
|
function ve(s) {
|
|
387
387
|
D(s);
|
|
388
388
|
let o = "", _ = "";
|
|
389
|
-
for (; o =
|
|
389
|
+
for (; o = m(s, K); )
|
|
390
390
|
_ += o;
|
|
391
391
|
return _;
|
|
392
392
|
}
|
|
@@ -416,27 +416,27 @@ function Qr(e, t = {}) {
|
|
|
416
416
|
let _ = null;
|
|
417
417
|
switch (s.currentChar()) {
|
|
418
418
|
case "{":
|
|
419
|
-
return o.braceNest >= 1 &&
|
|
419
|
+
return o.braceNest >= 1 && O(re.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), s.next(), _ = N(
|
|
420
420
|
o,
|
|
421
421
|
2,
|
|
422
422
|
"{"
|
|
423
423
|
/* TokenChars.BraceLeft */
|
|
424
424
|
), D(s), o.braceNest++, _;
|
|
425
425
|
case "}":
|
|
426
|
-
return o.braceNest > 0 && o.currentType === 2 &&
|
|
426
|
+
return o.braceNest > 0 && o.currentType === 2 && O(re.EMPTY_PLACEHOLDER, a(), 0), s.next(), _ = N(
|
|
427
427
|
o,
|
|
428
428
|
3,
|
|
429
429
|
"}"
|
|
430
430
|
/* TokenChars.BraceRight */
|
|
431
431
|
), o.braceNest--, o.braceNest > 0 && D(s), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), _;
|
|
432
432
|
case "@":
|
|
433
|
-
return o.braceNest > 0 &&
|
|
433
|
+
return o.braceNest > 0 && O(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = Ce(s, o) || F(o), o.braceNest = 0, _;
|
|
434
434
|
default: {
|
|
435
435
|
let M = !0, P = !0, p = !0;
|
|
436
436
|
if (B(s))
|
|
437
|
-
return o.braceNest > 0 &&
|
|
437
|
+
return o.braceNest > 0 && O(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = N(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
438
438
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
439
|
-
return
|
|
439
|
+
return O(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, Xe(s, o);
|
|
440
440
|
if (M = S(s, o))
|
|
441
441
|
return _ = N(o, 4, _e(s)), D(s), _;
|
|
442
442
|
if (P = c(s, o))
|
|
@@ -444,7 +444,7 @@ function Qr(e, t = {}) {
|
|
|
444
444
|
if (p = b(s, o))
|
|
445
445
|
return _ = N(o, 6, fe(s)), D(s), _;
|
|
446
446
|
if (!M && !P && !p)
|
|
447
|
-
return _ = N(o, 12, ve(s)),
|
|
447
|
+
return _ = N(o, 12, ve(s)), O(re.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, _.value), D(s), _;
|
|
448
448
|
break;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
@@ -454,7 +454,7 @@ function Qr(e, t = {}) {
|
|
|
454
454
|
const { currentType: _ } = o;
|
|
455
455
|
let A = null;
|
|
456
456
|
const M = s.currentChar();
|
|
457
|
-
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M === Ee || M === Pe) &&
|
|
457
|
+
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M === Ee || M === Pe) && O(re.INVALID_LINKED_FORMAT, a(), 0), M) {
|
|
458
458
|
case "@":
|
|
459
459
|
return s.next(), A = N(
|
|
460
460
|
o,
|
|
@@ -477,10 +477,10 @@ function Qr(e, t = {}) {
|
|
|
477
477
|
/* TokenChars.LinkedDelimiter */
|
|
478
478
|
);
|
|
479
479
|
default:
|
|
480
|
-
return B(s) ? (A = N(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, A) : y(s, o) || R(s, o) ? (D(s), Ce(s, o)) : v(s, o) ? (D(s), N(o, 11, Je(s))) :
|
|
480
|
+
return B(s) ? (A = N(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, A) : y(s, o) || R(s, o) ? (D(s), Ce(s, o)) : v(s, o) ? (D(s), N(o, 11, Je(s))) : L(s, o) ? (D(s), M === "{" ? Fe(s, o) || A : N(o, 10, Ke(s))) : (_ === 7 && O(re.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, Xe(s, o));
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function Xe(s, o) {
|
|
484
484
|
let _ = {
|
|
485
485
|
type: 13
|
|
486
486
|
/* TokenTypes.EOF */
|
|
@@ -493,7 +493,7 @@ function Qr(e, t = {}) {
|
|
|
493
493
|
case "{":
|
|
494
494
|
return Fe(s, o) || F(o);
|
|
495
495
|
case "}":
|
|
496
|
-
return
|
|
496
|
+
return O(re.UNBALANCED_CLOSING_BRACE, a(), 0), s.next(), N(
|
|
497
497
|
o,
|
|
498
498
|
3,
|
|
499
499
|
"}"
|
|
@@ -511,16 +511,16 @@ function Qr(e, t = {}) {
|
|
|
511
511
|
}
|
|
512
512
|
return _;
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function T() {
|
|
515
515
|
const { currentType: s, offset: o, startLoc: _, endLoc: A } = i;
|
|
516
516
|
return i.lastType = s, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc = A, i.offset = l(), i.startLoc = a(), r.currentChar() === xe ? N(
|
|
517
517
|
i,
|
|
518
518
|
13
|
|
519
519
|
/* TokenTypes.EOF */
|
|
520
|
-
) :
|
|
520
|
+
) : Xe(r, i);
|
|
521
521
|
}
|
|
522
522
|
return {
|
|
523
|
-
nextToken:
|
|
523
|
+
nextToken: T,
|
|
524
524
|
currentOffset: l,
|
|
525
525
|
currentPosition: a,
|
|
526
526
|
context: g
|
|
@@ -544,7 +544,7 @@ function ns(e = {}) {
|
|
|
544
544
|
function r(f, h, S, c, ...b) {
|
|
545
545
|
const y = f.currentPosition();
|
|
546
546
|
if (y.offset += c, y.column += c, n) {
|
|
547
|
-
const v = t ? Ft(S, y) : null, R =
|
|
547
|
+
const v = t ? Ft(S, y) : null, R = Ot(h, v, {
|
|
548
548
|
domain: qr,
|
|
549
549
|
args: b
|
|
550
550
|
});
|
|
@@ -558,7 +558,7 @@ function ns(e = {}) {
|
|
|
558
558
|
function a(f, h, S, c) {
|
|
559
559
|
t && (f.end = h, f.loc && (f.loc.end = S));
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function d(f, h) {
|
|
562
562
|
const S = f.context(), c = l(3, S.offset, S.startLoc);
|
|
563
563
|
return c.value = h, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
564
564
|
}
|
|
@@ -583,7 +583,7 @@ function ns(e = {}) {
|
|
|
583
583
|
node: y
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function O(f, h) {
|
|
587
587
|
const S = f.context(), c = l(7, S.offset, S.startLoc);
|
|
588
588
|
return c.value = h, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
589
589
|
}
|
|
@@ -596,7 +596,7 @@ function ns(e = {}) {
|
|
|
596
596
|
}
|
|
597
597
|
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(c)), c = f.nextToken(), c.type === 2 && (c = f.nextToken()), c.type) {
|
|
598
598
|
case 10:
|
|
599
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(c)), S.key =
|
|
599
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(c)), S.key = O(f, c.value || "");
|
|
600
600
|
break;
|
|
601
601
|
case 4:
|
|
602
602
|
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(c)), S.key = i(f, c.value || "");
|
|
@@ -625,19 +625,19 @@ function ns(e = {}) {
|
|
|
625
625
|
b.items = [];
|
|
626
626
|
let y = null;
|
|
627
627
|
do {
|
|
628
|
-
const
|
|
629
|
-
switch (y = null,
|
|
628
|
+
const L = y || f.nextToken();
|
|
629
|
+
switch (y = null, L.type) {
|
|
630
630
|
case 0:
|
|
631
|
-
|
|
631
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(L)), b.items.push(d(f, L.value || ""));
|
|
632
632
|
break;
|
|
633
633
|
case 5:
|
|
634
|
-
|
|
634
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(L)), b.items.push(u(f, L.value || ""));
|
|
635
635
|
break;
|
|
636
636
|
case 4:
|
|
637
|
-
|
|
637
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(L)), b.items.push(i(f, L.value || ""));
|
|
638
638
|
break;
|
|
639
639
|
case 6:
|
|
640
|
-
|
|
640
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(L)), b.items.push(g(f, L.value || ""));
|
|
641
641
|
break;
|
|
642
642
|
case 7: {
|
|
643
643
|
const B = N(f);
|
|
@@ -660,13 +660,13 @@ function ns(e = {}) {
|
|
|
660
660
|
} while (b.currentType !== 13);
|
|
661
661
|
return y && r(f, re.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), a(v, f.currentOffset(), f.currentPosition()), v;
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function k(f) {
|
|
664
664
|
const h = f.context(), { offset: S, startLoc: c } = h, b = F(f);
|
|
665
665
|
return h.currentType === 13 ? b : w(f, S, c, b);
|
|
666
666
|
}
|
|
667
667
|
function D(f) {
|
|
668
668
|
const h = Qr(f, ye({}, e)), S = h.context(), c = l(0, S.offset, S.startLoc);
|
|
669
|
-
return t && c.loc && (c.loc.source = f), c.body =
|
|
669
|
+
return t && c.loc && (c.loc.source = f), c.body = k(h), e.onCacheKey && (c.cacheKey = e.onCacheKey(f)), S.currentType !== 13 && r(h, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, f[S.offset] || ""), a(c, h.currentOffset(), h.currentPosition()), c;
|
|
670
670
|
}
|
|
671
671
|
return { parse: D };
|
|
672
672
|
}
|
|
@@ -739,9 +739,9 @@ function ss(e, t = {}) {
|
|
|
739
739
|
}
|
|
740
740
|
function os(e) {
|
|
741
741
|
const t = e.body;
|
|
742
|
-
return t.type === 2 ?
|
|
742
|
+
return t.type === 2 ? dn(t) : t.cases.forEach((n) => dn(n)), e;
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function dn(e) {
|
|
745
745
|
if (e.items.length === 1) {
|
|
746
746
|
const t = e.items[0];
|
|
747
747
|
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
@@ -810,7 +810,7 @@ function Qe(e) {
|
|
|
810
810
|
delete e.type;
|
|
811
811
|
}
|
|
812
812
|
function as(e, t) {
|
|
813
|
-
const { filename: n, breakLineCode: r, needIndent: l } = t, a = t.location !== !1,
|
|
813
|
+
const { filename: n, breakLineCode: r, needIndent: l } = t, a = t.location !== !1, d = {
|
|
814
814
|
filename: n,
|
|
815
815
|
code: "",
|
|
816
816
|
column: 1,
|
|
@@ -821,34 +821,34 @@ function as(e, t) {
|
|
|
821
821
|
needIndent: l,
|
|
822
822
|
indentLevel: 0
|
|
823
823
|
};
|
|
824
|
-
a && e.loc && (
|
|
825
|
-
const u = () =>
|
|
826
|
-
function i(
|
|
827
|
-
|
|
824
|
+
a && e.loc && (d.source = e.loc.source);
|
|
825
|
+
const u = () => d;
|
|
826
|
+
function i(k, D) {
|
|
827
|
+
d.code += k;
|
|
828
828
|
}
|
|
829
|
-
function g(
|
|
829
|
+
function g(k, D = !0) {
|
|
830
830
|
const f = D ? r : "";
|
|
831
|
-
i(l ? f + " ".repeat(
|
|
831
|
+
i(l ? f + " ".repeat(k) : f);
|
|
832
832
|
}
|
|
833
|
-
function E(
|
|
834
|
-
const D = ++
|
|
835
|
-
|
|
833
|
+
function E(k = !0) {
|
|
834
|
+
const D = ++d.indentLevel;
|
|
835
|
+
k && g(D);
|
|
836
836
|
}
|
|
837
|
-
function
|
|
838
|
-
const D = --
|
|
839
|
-
|
|
837
|
+
function O(k = !0) {
|
|
838
|
+
const D = --d.indentLevel;
|
|
839
|
+
k && g(D);
|
|
840
840
|
}
|
|
841
841
|
function N() {
|
|
842
|
-
g(
|
|
842
|
+
g(d.indentLevel);
|
|
843
843
|
}
|
|
844
844
|
return {
|
|
845
845
|
context: u,
|
|
846
846
|
push: i,
|
|
847
847
|
indent: E,
|
|
848
|
-
deindent:
|
|
848
|
+
deindent: O,
|
|
849
849
|
newline: N,
|
|
850
|
-
helper: (
|
|
851
|
-
needIndent: () =>
|
|
850
|
+
helper: (k) => `_${k}`,
|
|
851
|
+
needIndent: () => d.needIndent
|
|
852
852
|
};
|
|
853
853
|
}
|
|
854
854
|
function ls(e, t) {
|
|
@@ -932,16 +932,16 @@ function st(e, t) {
|
|
|
932
932
|
break;
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
|
-
const
|
|
935
|
+
const ds = (e, t = {}) => {
|
|
936
936
|
const n = Z(t.mode) ? t.mode : "normal", r = Z(t.filename) ? t.filename : "message.intl";
|
|
937
937
|
t.sourceMap;
|
|
938
938
|
const l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
939
|
-
`, a = t.needIndent ? t.needIndent : n !== "arrow",
|
|
939
|
+
`, a = t.needIndent ? t.needIndent : n !== "arrow", d = e.helpers || [], u = as(e, {
|
|
940
940
|
filename: r,
|
|
941
941
|
breakLineCode: l,
|
|
942
942
|
needIndent: a
|
|
943
943
|
});
|
|
944
|
-
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a),
|
|
944
|
+
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), d.length > 0 && (u.push(`const { ${$t(d.map((E) => `${E}: _${E}`), ", ")} } = ctx`), u.newline()), u.push("return "), st(u, e), u.deindent(a), u.push("}"), delete e.helpers;
|
|
945
945
|
const { code: i, map: g } = u.context();
|
|
946
946
|
return {
|
|
947
947
|
ast: e,
|
|
@@ -950,15 +950,15 @@ const ms = (e, t = {}) => {
|
|
|
950
950
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
951
951
|
};
|
|
952
952
|
};
|
|
953
|
-
function
|
|
953
|
+
function ms(e, t = {}) {
|
|
954
954
|
const n = ye({}, t), r = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize, u = ns(n).parse(e);
|
|
955
|
-
return r ? (a && os(u), l && Qe(u), { ast: u, code: "" }) : (ss(u, n),
|
|
955
|
+
return r ? (a && os(u), l && Qe(u), { ast: u, code: "" }) : (ss(u, n), ds(u, n));
|
|
956
956
|
}
|
|
957
957
|
var fs = { env: { NODE_ENV: "production" } };
|
|
958
958
|
function _s() {
|
|
959
959
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Be().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Be().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function kt(e) {
|
|
962
962
|
return (n) => vs(n, e);
|
|
963
963
|
}
|
|
964
964
|
function vs(e, t) {
|
|
@@ -970,22 +970,22 @@ function vs(e, t) {
|
|
|
970
970
|
);
|
|
971
971
|
if (Kt(n) === 1) {
|
|
972
972
|
const a = gs(n);
|
|
973
|
-
return e.plural(a.reduce((
|
|
974
|
-
...
|
|
975
|
-
|
|
973
|
+
return e.plural(a.reduce((d, u) => [
|
|
974
|
+
...d,
|
|
975
|
+
mn(e, u)
|
|
976
976
|
], []));
|
|
977
977
|
} else
|
|
978
|
-
return
|
|
978
|
+
return mn(e, n);
|
|
979
979
|
}
|
|
980
980
|
const ps = ["b", "body"];
|
|
981
981
|
function hs(e) {
|
|
982
|
-
return
|
|
982
|
+
return We(e, ps);
|
|
983
983
|
}
|
|
984
984
|
const bs = ["c", "cases"];
|
|
985
985
|
function gs(e) {
|
|
986
|
-
return
|
|
986
|
+
return We(e, bs, []);
|
|
987
987
|
}
|
|
988
|
-
function
|
|
988
|
+
function mn(e, t) {
|
|
989
989
|
const n = Es(t);
|
|
990
990
|
if (n != null)
|
|
991
991
|
return e.type === "text" ? n : e.normalize([n]);
|
|
@@ -996,11 +996,11 @@ function dn(e, t) {
|
|
|
996
996
|
}
|
|
997
997
|
const ys = ["s", "static"];
|
|
998
998
|
function Es(e) {
|
|
999
|
-
return
|
|
999
|
+
return We(e, ys);
|
|
1000
1000
|
}
|
|
1001
1001
|
const Is = ["i", "items"];
|
|
1002
1002
|
function Ns(e) {
|
|
1003
|
-
return
|
|
1003
|
+
return We(e, Is, []);
|
|
1004
1004
|
}
|
|
1005
1005
|
function Pt(e, t) {
|
|
1006
1006
|
const n = Kt(t);
|
|
@@ -1011,22 +1011,22 @@ function Pt(e, t) {
|
|
|
1011
1011
|
return _t(t, n);
|
|
1012
1012
|
case 4: {
|
|
1013
1013
|
const r = t;
|
|
1014
|
-
if (
|
|
1014
|
+
if (Le(r, "k") && r.k)
|
|
1015
1015
|
return e.interpolate(e.named(r.k));
|
|
1016
|
-
if (
|
|
1016
|
+
if (Le(r, "key") && r.key)
|
|
1017
1017
|
return e.interpolate(e.named(r.key));
|
|
1018
1018
|
throw it(n);
|
|
1019
1019
|
}
|
|
1020
1020
|
case 5: {
|
|
1021
1021
|
const r = t;
|
|
1022
|
-
if (
|
|
1022
|
+
if (Le(r, "i") && ge(r.i))
|
|
1023
1023
|
return e.interpolate(e.list(r.i));
|
|
1024
|
-
if (
|
|
1024
|
+
if (Le(r, "index") && ge(r.index))
|
|
1025
1025
|
return e.interpolate(e.list(r.index));
|
|
1026
1026
|
throw it(n);
|
|
1027
1027
|
}
|
|
1028
1028
|
case 6: {
|
|
1029
|
-
const r = t, l = Ss(r), a =
|
|
1029
|
+
const r = t, l = Ss(r), a = ks(r);
|
|
1030
1030
|
return e.linked(Pt(e, a), l ? Pt(e, l) : void 0, e.type);
|
|
1031
1031
|
}
|
|
1032
1032
|
case 7:
|
|
@@ -1039,22 +1039,22 @@ function Pt(e, t) {
|
|
|
1039
1039
|
}
|
|
1040
1040
|
const Cs = ["t", "type"];
|
|
1041
1041
|
function Kt(e) {
|
|
1042
|
-
return
|
|
1042
|
+
return We(e, Cs);
|
|
1043
1043
|
}
|
|
1044
|
-
const
|
|
1044
|
+
const Os = ["v", "value"];
|
|
1045
1045
|
function _t(e, t) {
|
|
1046
|
-
const n =
|
|
1046
|
+
const n = We(e, Os);
|
|
1047
1047
|
if (n)
|
|
1048
1048
|
return n;
|
|
1049
1049
|
throw it(t);
|
|
1050
1050
|
}
|
|
1051
|
-
const
|
|
1051
|
+
const Ts = ["m", "modifier"];
|
|
1052
1052
|
function Ss(e) {
|
|
1053
|
-
return
|
|
1053
|
+
return We(e, Ts);
|
|
1054
1054
|
}
|
|
1055
|
-
const
|
|
1056
|
-
function
|
|
1057
|
-
const t =
|
|
1055
|
+
const Ls = ["k", "key"];
|
|
1056
|
+
function ks(e) {
|
|
1057
|
+
const t = We(e, Ls);
|
|
1058
1058
|
if (t)
|
|
1059
1059
|
return t;
|
|
1060
1060
|
throw it(
|
|
@@ -1062,10 +1062,10 @@ function Ls(e) {
|
|
|
1062
1062
|
/* NodeTypes.Linked */
|
|
1063
1063
|
);
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1065
|
+
function We(e, t, n) {
|
|
1066
1066
|
for (let r = 0; r < t.length; r++) {
|
|
1067
1067
|
const l = t[r];
|
|
1068
|
-
if (
|
|
1068
|
+
if (Le(e, l) && e[l] != null)
|
|
1069
1069
|
return e[l];
|
|
1070
1070
|
}
|
|
1071
1071
|
return n;
|
|
@@ -1076,14 +1076,14 @@ function it(e) {
|
|
|
1076
1076
|
const As = (e) => e;
|
|
1077
1077
|
let vt = oe();
|
|
1078
1078
|
function ot(e) {
|
|
1079
|
-
return te(e) && Kt(e) === 0 && (
|
|
1079
|
+
return te(e) && Kt(e) === 0 && (Le(e, "b") || Le(e, "body"));
|
|
1080
1080
|
}
|
|
1081
1081
|
function Rs(e, t = {}) {
|
|
1082
1082
|
let n = !1;
|
|
1083
|
-
const r = t.onError ||
|
|
1083
|
+
const r = t.onError || Yr;
|
|
1084
1084
|
return t.onError = (l) => {
|
|
1085
1085
|
n = !0, r(l);
|
|
1086
|
-
}, { ...
|
|
1086
|
+
}, { ...ms(e, t), detectError: n };
|
|
1087
1087
|
}
|
|
1088
1088
|
// @__NO_SIDE_EFFECTS__
|
|
1089
1089
|
function Ms(e, t) {
|
|
@@ -1092,19 +1092,19 @@ function Ms(e, t) {
|
|
|
1092
1092
|
const r = (t.onCacheKey || As)(e), l = vt[r];
|
|
1093
1093
|
if (l)
|
|
1094
1094
|
return l;
|
|
1095
|
-
const { ast: a, detectError:
|
|
1095
|
+
const { ast: a, detectError: d } = Rs(e, {
|
|
1096
1096
|
...t,
|
|
1097
1097
|
location: fs.env.NODE_ENV !== "production",
|
|
1098
1098
|
jit: !0
|
|
1099
|
-
}), u =
|
|
1100
|
-
return
|
|
1099
|
+
}), u = kt(a);
|
|
1100
|
+
return d ? u : vt[r] = u;
|
|
1101
1101
|
} else {
|
|
1102
1102
|
const n = e.cacheKey;
|
|
1103
1103
|
if (n) {
|
|
1104
1104
|
const r = vt[n];
|
|
1105
|
-
return r || (vt[n] =
|
|
1105
|
+
return r || (vt[n] = kt(e));
|
|
1106
1106
|
} else
|
|
1107
|
-
return
|
|
1107
|
+
return kt(e);
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
1110
|
let ct = null;
|
|
@@ -1124,7 +1124,7 @@ function Ps(e) {
|
|
|
1124
1124
|
return (t) => ct && ct.emit(e, t);
|
|
1125
1125
|
}
|
|
1126
1126
|
const je = {
|
|
1127
|
-
INVALID_ARGUMENT:
|
|
1127
|
+
INVALID_ARGUMENT: Xr,
|
|
1128
1128
|
// 17
|
|
1129
1129
|
INVALID_DATE_ARGUMENT: 18,
|
|
1130
1130
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1133,7 +1133,7 @@ const je = {
|
|
|
1133
1133
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1134
1134
|
}, js = 24;
|
|
1135
1135
|
function Ue(e) {
|
|
1136
|
-
return
|
|
1136
|
+
return Ot(e, null, void 0);
|
|
1137
1137
|
}
|
|
1138
1138
|
function zt(e, t) {
|
|
1139
1139
|
return t.locale != null ? fn(t.locale) : fn(e.locale);
|
|
@@ -1142,7 +1142,7 @@ let At;
|
|
|
1142
1142
|
function fn(e) {
|
|
1143
1143
|
if (Z(e))
|
|
1144
1144
|
return e;
|
|
1145
|
-
if (
|
|
1145
|
+
if (me(e)) {
|
|
1146
1146
|
if (e.resolvedOnce && At != null)
|
|
1147
1147
|
return At;
|
|
1148
1148
|
if (e.constructor.name === "Function") {
|
|
@@ -1167,11 +1167,11 @@ function Hn(e, t, n) {
|
|
|
1167
1167
|
let a = l.__localeChainCache.get(r);
|
|
1168
1168
|
if (!a) {
|
|
1169
1169
|
a = [];
|
|
1170
|
-
let
|
|
1171
|
-
for (; be(
|
|
1172
|
-
|
|
1170
|
+
let d = [n];
|
|
1171
|
+
for (; be(d); )
|
|
1172
|
+
d = _n(a, d, t);
|
|
1173
1173
|
const u = be(t) || !ee(t) ? t : t.default ? t.default : null;
|
|
1174
|
-
|
|
1174
|
+
d = Z(u) ? [u] : u, be(d) && _n(a, d, !1), l.__localeChainCache.set(r, a);
|
|
1175
1175
|
}
|
|
1176
1176
|
return a;
|
|
1177
1177
|
}
|
|
@@ -1362,15 +1362,15 @@ Ze[
|
|
|
1362
1362
|
/* Actions.APPEND */
|
|
1363
1363
|
]
|
|
1364
1364
|
};
|
|
1365
|
-
const
|
|
1366
|
-
function
|
|
1367
|
-
return
|
|
1365
|
+
const Gs = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1366
|
+
function Ws(e) {
|
|
1367
|
+
return Gs.test(e);
|
|
1368
1368
|
}
|
|
1369
1369
|
function Zs(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 Xs(e) {
|
|
1374
1374
|
if (e == null)
|
|
1375
1375
|
return "o";
|
|
1376
1376
|
switch (e.charCodeAt(0)) {
|
|
@@ -1395,24 +1395,24 @@ function Ys(e) {
|
|
|
1395
1395
|
}
|
|
1396
1396
|
return "i";
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1398
|
+
function Ys(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 : Ws(t) ? Zs(t) : "*" + t;
|
|
1401
1401
|
}
|
|
1402
1402
|
function Bs(e) {
|
|
1403
1403
|
const t = [];
|
|
1404
|
-
let n = -1, r = 0, l = 0, a,
|
|
1404
|
+
let n = -1, r = 0, l = 0, a, d, u, i, g, E, O;
|
|
1405
1405
|
const N = [];
|
|
1406
1406
|
N[
|
|
1407
1407
|
0
|
|
1408
1408
|
/* Actions.APPEND */
|
|
1409
1409
|
] = () => {
|
|
1410
|
-
|
|
1410
|
+
d === void 0 ? d = u : d += u;
|
|
1411
1411
|
}, N[
|
|
1412
1412
|
1
|
|
1413
1413
|
/* Actions.PUSH */
|
|
1414
1414
|
] = () => {
|
|
1415
|
-
|
|
1415
|
+
d !== void 0 && (t.push(d), d = void 0);
|
|
1416
1416
|
}, N[
|
|
1417
1417
|
2
|
|
1418
1418
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
@@ -1431,7 +1431,7 @@ function Bs(e) {
|
|
|
1431
1431
|
/* Actions.APPEND */
|
|
1432
1432
|
]();
|
|
1433
1433
|
else {
|
|
1434
|
-
if (l = 0,
|
|
1434
|
+
if (l = 0, d === void 0 || (d = Ys(d), d === !1))
|
|
1435
1435
|
return !1;
|
|
1436
1436
|
N[
|
|
1437
1437
|
1
|
|
@@ -1449,7 +1449,7 @@ function Bs(e) {
|
|
|
1449
1449
|
}
|
|
1450
1450
|
for (; r !== null; )
|
|
1451
1451
|
if (n++, a = e[n], !(a === "\\" && F())) {
|
|
1452
|
-
if (i =
|
|
1452
|
+
if (i = Xs(a), O = Ze[r], g = O[i] || O.l || 8, g === 8 || (r = g[0], g[1] !== void 0 && (E = N[g[1]], E && (u = a, E() === !1))))
|
|
1453
1453
|
return;
|
|
1454
1454
|
if (r === 7)
|
|
1455
1455
|
return t;
|
|
@@ -1468,14 +1468,14 @@ function $s(e, t) {
|
|
|
1468
1468
|
const r = n.length;
|
|
1469
1469
|
let l = e, a = 0;
|
|
1470
1470
|
for (; a < r; ) {
|
|
1471
|
-
const
|
|
1472
|
-
if (
|
|
1471
|
+
const d = l[n[a]];
|
|
1472
|
+
if (d === void 0 || me(l))
|
|
1473
1473
|
return null;
|
|
1474
|
-
l =
|
|
1474
|
+
l = d, a++;
|
|
1475
1475
|
}
|
|
1476
1476
|
return l;
|
|
1477
1477
|
}
|
|
1478
|
-
const Js = "10.0.5",
|
|
1478
|
+
const Js = "10.0.5", Tt = -1, Nt = "en-US", pn = "", hn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1479
1479
|
function Ks() {
|
|
1480
1480
|
return {
|
|
1481
1481
|
upper: (e, t) => t === "text" && Z(e) ? e.toUpperCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
@@ -1505,21 +1505,21 @@ const bn = (e) => {
|
|
|
1505
1505
|
}, no = () => Qn;
|
|
1506
1506
|
let gn = 0;
|
|
1507
1507
|
function ro(e = {}) {
|
|
1508
|
-
const t =
|
|
1508
|
+
const t = me(e.onWarn) ? e.onWarn : Wr, n = Z(e.version) ? e.version : Js, r = Z(e.locale) || me(e.locale) ? e.locale : Nt, l = me(r) ? Nt : r, a = be(e.fallbackLocale) || ee(e.fallbackLocale) || Z(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, d = ee(e.messages) ? e.messages : Rt(l), u = ee(e.datetimeFormats) ? e.datetimeFormats : Rt(l), i = ee(e.numberFormats) ? e.numberFormats : Rt(l), g = ye(oe(), e.modifiers, Ks()), E = e.pluralRules || oe(), O = me(e.missing) ? e.missing : null, N = pe(e.missingWarn) || It(e.missingWarn) ? e.missingWarn : !0, F = pe(e.fallbackWarn) || It(e.fallbackWarn) ? e.fallbackWarn : !0, w = !!e.fallbackFormat, k = !!e.unresolving, D = me(e.postTranslation) ? e.postTranslation : null, f = ee(e.processor) ? e.processor : null, h = pe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, c = me(e.messageCompiler) ? e.messageCompiler : $n, b = me(e.messageResolver) ? e.messageResolver : Jn || Hs, y = me(e.localeFallbacker) ? e.localeFallbacker : Kn || Us, v = te(e.fallbackContext) ? e.fallbackContext : void 0, R = e, L = te(R.__datetimeFormatters) ? R.__datetimeFormatters : /* @__PURE__ */ new Map(), B = te(R.__numberFormatters) ? R.__numberFormatters : /* @__PURE__ */ new Map(), x = te(R.__meta) ? R.__meta : {};
|
|
1509
1509
|
gn++;
|
|
1510
|
-
const
|
|
1510
|
+
const m = {
|
|
1511
1511
|
version: n,
|
|
1512
1512
|
cid: gn,
|
|
1513
1513
|
locale: r,
|
|
1514
1514
|
fallbackLocale: a,
|
|
1515
|
-
messages:
|
|
1515
|
+
messages: d,
|
|
1516
1516
|
modifiers: g,
|
|
1517
1517
|
pluralRules: E,
|
|
1518
|
-
missing:
|
|
1518
|
+
missing: O,
|
|
1519
1519
|
missingWarn: N,
|
|
1520
1520
|
fallbackWarn: F,
|
|
1521
1521
|
fallbackFormat: w,
|
|
1522
|
-
unresolving:
|
|
1522
|
+
unresolving: k,
|
|
1523
1523
|
postTranslation: D,
|
|
1524
1524
|
processor: f,
|
|
1525
1525
|
warnHtmlMessage: h,
|
|
@@ -1531,11 +1531,11 @@ function ro(e = {}) {
|
|
|
1531
1531
|
onWarn: t,
|
|
1532
1532
|
__meta: x
|
|
1533
1533
|
};
|
|
1534
|
-
return
|
|
1534
|
+
return m.datetimeFormats = u, m.numberFormats = i, m.__datetimeFormatters = L, m.__numberFormatters = B, __INTLIFY_PROD_DEVTOOLS__ && Ds(m, n, x), m;
|
|
1535
1535
|
}
|
|
1536
1536
|
const Rt = (e) => ({ [e]: oe() });
|
|
1537
1537
|
function Qt(e, t, n, r, l) {
|
|
1538
|
-
const { missing: a, onWarn:
|
|
1538
|
+
const { missing: a, onWarn: d } = e;
|
|
1539
1539
|
if (a !== null) {
|
|
1540
1540
|
const u = a(e, n, t, l);
|
|
1541
1541
|
return Z(u) ? u : t;
|
|
@@ -1559,26 +1559,26 @@ function oo(e, t) {
|
|
|
1559
1559
|
return !1;
|
|
1560
1560
|
}
|
|
1561
1561
|
function yn(e, ...t) {
|
|
1562
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker:
|
|
1562
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __datetimeFormatters: u } = e, [i, g, E, O] = jt(...t), N = pe(E.missingWarn) ? E.missingWarn : e.missingWarn;
|
|
1563
1563
|
pe(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn;
|
|
1564
|
-
const F = !!E.part, w = zt(e, E),
|
|
1564
|
+
const F = !!E.part, w = zt(e, E), k = d(
|
|
1565
1565
|
e,
|
|
1566
1566
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1567
1567
|
l,
|
|
1568
1568
|
w
|
|
1569
1569
|
);
|
|
1570
1570
|
if (!Z(i) || i === "")
|
|
1571
|
-
return new Intl.DateTimeFormat(w,
|
|
1571
|
+
return new Intl.DateTimeFormat(w, O).format(g);
|
|
1572
1572
|
let D = {}, f, h = null;
|
|
1573
1573
|
const S = "datetime format";
|
|
1574
|
-
for (let y = 0; y <
|
|
1574
|
+
for (let y = 0; y < k.length && (f = k[y], D = n[f] || {}, h = D[i], !ee(h)); y++)
|
|
1575
1575
|
Qt(e, i, f, N, S);
|
|
1576
1576
|
if (!ee(h) || !Z(f))
|
|
1577
|
-
return r ?
|
|
1577
|
+
return r ? Tt : i;
|
|
1578
1578
|
let c = `${f}__${i}`;
|
|
1579
|
-
Ct(
|
|
1579
|
+
Ct(O) || (c = `${c}__${JSON.stringify(O)}`);
|
|
1580
1580
|
let b = u.get(c);
|
|
1581
|
-
return b || (b = new Intl.DateTimeFormat(f, ye({}, h,
|
|
1581
|
+
return b || (b = new Intl.DateTimeFormat(f, ye({}, h, O)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1582
1582
|
}
|
|
1583
1583
|
const qn = [
|
|
1584
1584
|
"localeMatcher",
|
|
@@ -1604,7 +1604,7 @@ const qn = [
|
|
|
1604
1604
|
];
|
|
1605
1605
|
function jt(...e) {
|
|
1606
1606
|
const [t, n, r, l] = e, a = oe();
|
|
1607
|
-
let
|
|
1607
|
+
let d = oe(), u;
|
|
1608
1608
|
if (Z(t)) {
|
|
1609
1609
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1610
1610
|
if (!i)
|
|
@@ -1625,8 +1625,8 @@ function jt(...e) {
|
|
|
1625
1625
|
else
|
|
1626
1626
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1627
1627
|
return Z(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1628
|
-
qn.includes(i) ?
|
|
1629
|
-
}), Z(r) ? a.locale = r : ee(r) && (
|
|
1628
|
+
qn.includes(i) ? d[i] = n[i] : a[i] = n[i];
|
|
1629
|
+
}), Z(r) ? a.locale = r : ee(r) && (d = r), ee(l) && (d = l), [a.key || "", u, a, d];
|
|
1630
1630
|
}
|
|
1631
1631
|
function En(e, t, n) {
|
|
1632
1632
|
const r = e;
|
|
@@ -1636,26 +1636,26 @@ function En(e, t, n) {
|
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
1638
1638
|
function In(e, ...t) {
|
|
1639
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker:
|
|
1639
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __numberFormatters: u } = e, [i, g, E, O] = Ut(...t), N = pe(E.missingWarn) ? E.missingWarn : e.missingWarn;
|
|
1640
1640
|
pe(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn;
|
|
1641
|
-
const F = !!E.part, w = zt(e, E),
|
|
1641
|
+
const F = !!E.part, w = zt(e, E), k = d(
|
|
1642
1642
|
e,
|
|
1643
1643
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1644
1644
|
l,
|
|
1645
1645
|
w
|
|
1646
1646
|
);
|
|
1647
1647
|
if (!Z(i) || i === "")
|
|
1648
|
-
return new Intl.NumberFormat(w,
|
|
1648
|
+
return new Intl.NumberFormat(w, O).format(g);
|
|
1649
1649
|
let D = {}, f, h = null;
|
|
1650
1650
|
const S = "number format";
|
|
1651
|
-
for (let y = 0; y <
|
|
1651
|
+
for (let y = 0; y < k.length && (f = k[y], D = n[f] || {}, h = D[i], !ee(h)); y++)
|
|
1652
1652
|
Qt(e, i, f, N, S);
|
|
1653
1653
|
if (!ee(h) || !Z(f))
|
|
1654
|
-
return r ?
|
|
1654
|
+
return r ? Tt : i;
|
|
1655
1655
|
let c = `${f}__${i}`;
|
|
1656
|
-
Ct(
|
|
1656
|
+
Ct(O) || (c = `${c}__${JSON.stringify(O)}`);
|
|
1657
1657
|
let b = u.get(c);
|
|
1658
|
-
return b || (b = new Intl.NumberFormat(f, ye({}, h,
|
|
1658
|
+
return b || (b = new Intl.NumberFormat(f, ye({}, h, O)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1659
1659
|
}
|
|
1660
1660
|
const er = [
|
|
1661
1661
|
"localeMatcher",
|
|
@@ -1681,13 +1681,13 @@ const er = [
|
|
|
1681
1681
|
];
|
|
1682
1682
|
function Ut(...e) {
|
|
1683
1683
|
const [t, n, r, l] = e, a = oe();
|
|
1684
|
-
let
|
|
1684
|
+
let d = oe();
|
|
1685
1685
|
if (!ge(t))
|
|
1686
1686
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1687
1687
|
const u = t;
|
|
1688
1688
|
return Z(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1689
|
-
er.includes(i) ?
|
|
1690
|
-
}), Z(r) ? a.locale = r : ee(r) && (
|
|
1689
|
+
er.includes(i) ? d[i] = n[i] : a[i] = n[i];
|
|
1690
|
+
}), Z(r) ? a.locale = r : ee(r) && (d = r), ee(l) && (d = l), [a.key || "", u, a, d];
|
|
1691
1691
|
}
|
|
1692
1692
|
function Nn(e, t, n) {
|
|
1693
1693
|
const r = e;
|
|
@@ -1696,7 +1696,7 @@ function Nn(e, t, n) {
|
|
|
1696
1696
|
r.__numberFormatters.has(a) && r.__numberFormatters.delete(a);
|
|
1697
1697
|
}
|
|
1698
1698
|
}
|
|
1699
|
-
const ao = (e) => e, lo = (e) => "", io = "text", co = (e) => e.length === 0 ? "" : $t(e), uo =
|
|
1699
|
+
const ao = (e) => e, lo = (e) => "", io = "text", co = (e) => e.length === 0 ? "" : $t(e), uo = Gr;
|
|
1700
1700
|
function Cn(e, t) {
|
|
1701
1701
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1702
1702
|
}
|
|
@@ -1708,14 +1708,14 @@ function fo(e, t) {
|
|
|
1708
1708
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1709
1709
|
}
|
|
1710
1710
|
function _o(e = {}) {
|
|
1711
|
-
const t = e.locale, n = mo(e), r = te(e.pluralRules) && Z(t) &&
|
|
1711
|
+
const t = e.locale, n = mo(e), r = te(e.pluralRules) && Z(t) && me(e.pluralRules[t]) ? e.pluralRules[t] : Cn, l = te(e.pluralRules) && Z(t) && me(e.pluralRules[t]) ? Cn : void 0, a = (f) => f[r(n, f.length, l)], d = e.list || [], u = (f) => d[f], i = e.named || oe();
|
|
1712
1712
|
ge(e.pluralIndex) && fo(n, i);
|
|
1713
1713
|
const g = (f) => i[f];
|
|
1714
1714
|
function E(f, h) {
|
|
1715
|
-
const S =
|
|
1715
|
+
const S = me(e.messages) ? e.messages(f, !!h) : te(e.messages) ? e.messages[f] : !1;
|
|
1716
1716
|
return S || (e.parent ? e.parent.message(f) : lo);
|
|
1717
1717
|
}
|
|
1718
|
-
const
|
|
1718
|
+
const O = (f) => e.modifiers ? e.modifiers[f] : ao, N = ee(e.processor) && me(e.processor.normalize) ? e.processor.normalize : co, F = ee(e.processor) && me(e.processor.interpolate) ? e.processor.interpolate : uo, w = ee(e.processor) && Z(e.processor.type) ? e.processor.type : io, D = {
|
|
1719
1719
|
list: u,
|
|
1720
1720
|
named: g,
|
|
1721
1721
|
plural: a,
|
|
@@ -1727,45 +1727,45 @@ function _o(e = {}) {
|
|
|
1727
1727
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1728
1728
|
b === "vnode" && be(v) && y ? v[0] : v
|
|
1729
1729
|
);
|
|
1730
|
-
return y ?
|
|
1730
|
+
return y ? O(y)(R, b) : R;
|
|
1731
1731
|
},
|
|
1732
1732
|
message: E,
|
|
1733
1733
|
type: w,
|
|
1734
1734
|
interpolate: F,
|
|
1735
1735
|
normalize: N,
|
|
1736
|
-
values: ye(oe(),
|
|
1736
|
+
values: ye(oe(), d, i)
|
|
1737
1737
|
};
|
|
1738
1738
|
return D;
|
|
1739
1739
|
}
|
|
1740
|
-
const
|
|
1741
|
-
function
|
|
1742
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale:
|
|
1740
|
+
const On = () => "", Oe = (e) => me(e);
|
|
1741
|
+
function Tn(e, ...t) {
|
|
1742
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale: d, messages: u } = e, [i, g] = Vt(...t), E = pe(g.missingWarn) ? g.missingWarn : e.missingWarn, O = pe(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, N = pe(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, F = !!g.resolvedMessage, w = Z(g.default) || pe(g.default) ? pe(g.default) ? a ? i : () => i : g.default : n ? a ? i : () => i : null, k = n || w != null && (Z(w) || me(w)), D = zt(e, g);
|
|
1743
1743
|
N && vo(g);
|
|
1744
1744
|
let [f, h, S] = F ? [
|
|
1745
1745
|
i,
|
|
1746
1746
|
D,
|
|
1747
1747
|
u[D] || oe()
|
|
1748
|
-
] : tr(e, i, D,
|
|
1749
|
-
if (!F && !(Z(c) || ot(c) ||
|
|
1750
|
-
return l ?
|
|
1748
|
+
] : tr(e, i, D, d, O, E), c = f, b = i;
|
|
1749
|
+
if (!F && !(Z(c) || ot(c) || Oe(c)) && k && (c = w, b = c), !F && (!(Z(c) || ot(c) || Oe(c)) || !Z(h)))
|
|
1750
|
+
return l ? Tt : i;
|
|
1751
1751
|
let y = !1;
|
|
1752
1752
|
const v = () => {
|
|
1753
1753
|
y = !0;
|
|
1754
|
-
}, R =
|
|
1754
|
+
}, R = Oe(c) ? c : nr(e, i, h, c, b, v);
|
|
1755
1755
|
if (y)
|
|
1756
1756
|
return c;
|
|
1757
|
-
const
|
|
1757
|
+
const L = bo(e, h, S, g), B = _o(L), x = po(e, R, B), m = r ? r(x, i) : x;
|
|
1758
1758
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1759
1759
|
const C = {
|
|
1760
1760
|
timestamp: Date.now(),
|
|
1761
|
-
key: Z(i) ? i :
|
|
1762
|
-
locale: h || (
|
|
1763
|
-
format: Z(c) ? c :
|
|
1764
|
-
message:
|
|
1761
|
+
key: Z(i) ? i : Oe(c) ? c.key : "",
|
|
1762
|
+
locale: h || (Oe(c) ? c.locale : ""),
|
|
1763
|
+
format: Z(c) ? c : Oe(c) ? c.source : "",
|
|
1764
|
+
message: m
|
|
1765
1765
|
};
|
|
1766
1766
|
C.meta = ye({}, e.__meta, /* @__PURE__ */ to() || {}), Fs(C);
|
|
1767
1767
|
}
|
|
1768
|
-
return
|
|
1768
|
+
return m;
|
|
1769
1769
|
}
|
|
1770
1770
|
function vo(e) {
|
|
1771
1771
|
be(e.list) ? e.list = e.list.map((t) => Z(t) ? ln(t) : t) : te(e.named) && Object.keys(e.named).forEach((t) => {
|
|
@@ -1773,10 +1773,10 @@ function vo(e) {
|
|
|
1773
1773
|
});
|
|
1774
1774
|
}
|
|
1775
1775
|
function tr(e, t, n, r, l, a) {
|
|
1776
|
-
const { messages:
|
|
1777
|
-
let
|
|
1776
|
+
const { messages: d, onWarn: u, messageResolver: i, localeFallbacker: g } = e, E = g(e, r, n);
|
|
1777
|
+
let O = oe(), N, F = null;
|
|
1778
1778
|
const w = "translate";
|
|
1779
|
-
for (let
|
|
1779
|
+
for (let k = 0; k < E.length && (N = E[k], O = d[N] || oe(), (F = i(O, t)) === null && (F = O[t]), !(Z(F) || ot(F) || Oe(F))); k++)
|
|
1780
1780
|
if (!oo(N, E)) {
|
|
1781
1781
|
const D = Qt(
|
|
1782
1782
|
e,
|
|
@@ -1788,19 +1788,19 @@ function tr(e, t, n, r, l, a) {
|
|
|
1788
1788
|
);
|
|
1789
1789
|
D !== t && (F = D);
|
|
1790
1790
|
}
|
|
1791
|
-
return [F, N,
|
|
1791
|
+
return [F, N, O];
|
|
1792
1792
|
}
|
|
1793
1793
|
function nr(e, t, n, r, l, a) {
|
|
1794
|
-
const { messageCompiler:
|
|
1795
|
-
if (
|
|
1794
|
+
const { messageCompiler: d, warnHtmlMessage: u } = e;
|
|
1795
|
+
if (Oe(r)) {
|
|
1796
1796
|
const g = r;
|
|
1797
1797
|
return g.locale = g.locale || n, g.key = g.key || t, g;
|
|
1798
1798
|
}
|
|
1799
|
-
if (
|
|
1799
|
+
if (d == null) {
|
|
1800
1800
|
const g = () => r;
|
|
1801
1801
|
return g.locale = n, g.key = t, g;
|
|
1802
1802
|
}
|
|
1803
|
-
const i =
|
|
1803
|
+
const i = d(r, ho(e, n, l, r, u, a));
|
|
1804
1804
|
return i.locale = n, i.key = t, i.source = r, i;
|
|
1805
1805
|
}
|
|
1806
1806
|
function po(e, t, n) {
|
|
@@ -1808,9 +1808,9 @@ function po(e, t, n) {
|
|
|
1808
1808
|
}
|
|
1809
1809
|
function Vt(...e) {
|
|
1810
1810
|
const [t, n, r] = e, l = oe();
|
|
1811
|
-
if (!Z(t) && !ge(t) && !
|
|
1811
|
+
if (!Z(t) && !ge(t) && !Oe(t) && !ot(t))
|
|
1812
1812
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1813
|
-
const a = ge(t) ? String(t) : (
|
|
1813
|
+
const a = ge(t) ? String(t) : (Oe(t), t);
|
|
1814
1814
|
return ge(n) ? l.plural = n : Z(n) ? l.default = n : ee(n) && !Ct(n) ? l.named = n : be(n) && (l.list = n), ge(r) ? l.plural = r : Z(r) ? l.default = r : ee(r) && ye(l, r), [a, l];
|
|
1815
1815
|
}
|
|
1816
1816
|
function ho(e, t, n, r, l, a) {
|
|
@@ -1818,20 +1818,20 @@ function ho(e, t, n, r, l, a) {
|
|
|
1818
1818
|
locale: t,
|
|
1819
1819
|
key: n,
|
|
1820
1820
|
warnHtmlMessage: l,
|
|
1821
|
-
onError: (
|
|
1822
|
-
throw a && a(
|
|
1821
|
+
onError: (d) => {
|
|
1822
|
+
throw a && a(d), d;
|
|
1823
1823
|
},
|
|
1824
|
-
onCacheKey: (
|
|
1824
|
+
onCacheKey: (d) => Fr(t, n, d)
|
|
1825
1825
|
};
|
|
1826
1826
|
}
|
|
1827
1827
|
function bo(e, t, n, r) {
|
|
1828
|
-
const { modifiers: l, pluralRules: a, messageResolver:
|
|
1828
|
+
const { modifiers: l, pluralRules: a, messageResolver: d, fallbackLocale: u, fallbackWarn: i, missingWarn: g, fallbackContext: E } = e, N = {
|
|
1829
1829
|
locale: t,
|
|
1830
1830
|
modifiers: l,
|
|
1831
1831
|
pluralRules: a,
|
|
1832
1832
|
messages: (F, w) => {
|
|
1833
|
-
let
|
|
1834
|
-
if (
|
|
1833
|
+
let k = d(n, F);
|
|
1834
|
+
if (k == null && (E || w)) {
|
|
1835
1835
|
const [, , D] = tr(
|
|
1836
1836
|
E || e,
|
|
1837
1837
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
@@ -1841,21 +1841,21 @@ function bo(e, t, n, r) {
|
|
|
1841
1841
|
i,
|
|
1842
1842
|
g
|
|
1843
1843
|
);
|
|
1844
|
-
|
|
1844
|
+
k = d(D, F);
|
|
1845
1845
|
}
|
|
1846
|
-
if (Z(
|
|
1846
|
+
if (Z(k) || ot(k)) {
|
|
1847
1847
|
let D = !1;
|
|
1848
|
-
const h = nr(e, F, t,
|
|
1848
|
+
const h = nr(e, F, t, k, F, () => {
|
|
1849
1849
|
D = !0;
|
|
1850
1850
|
});
|
|
1851
|
-
return D ?
|
|
1852
|
-
} else return
|
|
1851
|
+
return D ? On : h;
|
|
1852
|
+
} else return Oe(k) ? k : On;
|
|
1853
1853
|
}
|
|
1854
1854
|
};
|
|
1855
1855
|
return e.processor && (N.processor = e.processor), r.list && (N.list = r.list), r.named && (N.named = r.named), ge(r.plural) && (N.pluralIndex = r.plural), N;
|
|
1856
1856
|
}
|
|
1857
1857
|
_s();
|
|
1858
|
-
var go = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_63ffe169-ee2f-4882-988c-52ecb5b097c6", 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_63ffe169-ee2f-4882-988c-52ecb5b097c6", 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.7.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", 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: "1791", ACTIONS_ORCHESTRATION_ID: "0ae4973a-a757-4161-8e3e-d9261fd99bec.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: "20260907.300.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_63ffe169-ee2f-4882-988c-52ecb5b097c6", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:10125", 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: "35853392423", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "f1a40b6f9d833e49c2dfddb62e39edb772fef34a", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.8/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/KDI-5147-passcode-uniqueness", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9LREktNTE0Ny1wYXNzY29kZS11bmlxdWVuZXNzXCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsImF1ZCI6InZzbzo2Zjk2ZmE4OS1iN2JmLTQ4NzgtYmFkMy04OTgwMDY1NjZiNmUiLCJiaWxsaW5nX293bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwiZXhwIjoxNzkwMTg0Mjc5LCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3ByaW1hcnlzaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJpYXQiOjE3OTAxNjIwNzksImlzcyI6Imh0dHBzOi8vdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJqb2JfaWQiOiI0MjAwYzQ2Ni1kY2MyLTVhZDAtOGJkMi1lNWIzMmY1YWJkMjEiLCJqb2Jfd29ya2Zsb3dfcmVmIjoiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluIiwiam9iX3dvcmtmbG93X3NoYSI6IjEyODQ0NGZhODJhNDFhZWYwMjA3OGY2Yjc2OTJmZTBmYTc2NTlhNWIiLCJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJuYmYiOjE3OTAxNjE3NzksIm9pZGNfZXh0cmEiOiJ7XCJhY3RvclwiOlwianVuLWxlZS1mZWVkbWVcIixcImFjdG9yX2lkXCI6XCIyMzkyODI4NjJcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiMTA3MTU2MTI0ODYzXCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluXCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCIxMjg0NDRmYTgyYTQxYWVmMDIwNzhmNmI3NjkyZmUwZmE3NjU5YTViXCIsXCJyZWZcIjpcInJlZnMvaGVhZHMvS0RJLTUxNDctcGFzc2NvZGUtdW5pcXVlbmVzc1wiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIzNTg1MzM5MjQyM1wiLFwicnVuX251bWJlclwiOlwiMTY3XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiZjFhNDBiNmY5ZDgzM2U0OWMyZGZkZGI2MmUzOWVkYjc3MmZlZjM0YVwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvS0RJLTUxNDctcGFzc2NvZGUtdW5pcXVlbmVzc1wiLFwid29ya2Zsb3dfc2hhXCI6XCJmMWE0MGI2ZjlkODMzZTQ5YzJkZmRkYjYyZTM5ZWRiNzcyZmVmMzRhXCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9LREktNTE0Ny1wYXNzY29kZS11bmlxdWVuZXNzIiwib3JjaF9pZCI6IjBhZTQ5NzNhLWE3NTctNDE2MS04ZTNlLWQ5MjYxZmQ5OWJlYy5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiMGFlNDk3M2EtYTc1Ny00MTYxLThlM2UtZDkyNjFmZDk5YmVjIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMzU4NTMzOTI0MjMiLCJydW5fbnVtYmVyIjoiMTY3IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDE1ODU3MiIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjBhZTQ5NzNhLWE3NTctNDE2MS04ZTNlLWQ5MjYxZmQ5OWJlYzo0MjAwYzQ2Ni1kY2MyLTVhZDAtOGJkMi1lNWIzMmY1YWJkMjEgQWN0aW9ucy5SdW5uZXI6MGFlNDk3M2EtYTc1Ny00MTYxLThlM2UtZDkyNjFmZDk5YmVjOjQyMDBjNDY2LWRjYzItNWFkMC04YmQyLWU1YjMyZjVhYmQyMSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowYWU0OTczYS1hNzU3LTQxNjEtOGUzZS1kOTI2MWZkOTliZWM6NDIwMGM0NjYtZGNjMi01YWQwLThiZDItZTViMzJmNWFiZDIxIGdlbmVyYXRlX2lkX3Rva2VuOjBhZTQ5NzNhLWE3NTctNDE2MS04ZTNlLWQ5MjYxZmQ5OWJlYzo0MjAwYzQ2Ni1kY2MyLTVhZDAtOGJkMi1lNWIzMmY1YWJkMjEgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiJmMWE0MGI2ZjlkODMzZTQ5YzJkZmRkYjYyZTM5ZWRiNzcyZmVmMzRhIiwidHJ1c3RfdGllciI6IjEifQ.Nfzc_rLVznDJMuxWM1d5pASDssyQf5L9AkpdHvFMmtTq0C2n7-T7LLT6B3IBLQlJ81KyBrM6va1_riuiIoZcMyEqg-VsNOD3mtLPabWYhI04RrjpnzfepM91cc2S2ca8F50rzd9ZC0zk_uAXvpvkOSYUfG0QrEPaRslSITY3oND7xuiWbwrtRYtKNtq5tjVFFYxnK2oFelxwFEQ8b1UT9HzuBXEQYmf9LA5h82vyyeI0jPsNY9edXX2HD6U-hzYAy6Aav9OGbqP_QUqs4ubqqqd4vcJEVTjNKowD2GOP6cuVWY9sIgh5nUCkmj5QhkO22Alh_PJS9FPvp8QNTbDA2g", 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_0232549f-2730-4595-8b65-f422ec63b1eb", INVOCATION_ID: "f6c5dcc3f522400f9eb965a7f5c511be", 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: "167", 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 1000158572", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "KDI-5147-passcode-uniqueness", 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.2.5-dev", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", GITHUB_SHA: "f1a40b6f9d833e49c2dfddb62e39edb772fef34a", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/KDI-5147-passcode-uniqueness", 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_63ffe169-ee2f-4882-988c-52ecb5b097c6", 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/73//idtoken/0ae4973a-a757-4161-8e3e-d9261fd99bec/4200c466-dcc2-5ad0-8bd2-e5b32f5abd21?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_63ffe169-ee2f-4882-988c-52ecb5b097c6", 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_63ffe169-ee2f-4882-988c-52ecb5b097c6", 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_63ffe169-ee2f-4882-988c-52ecb5b097c6", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1858
|
+
var go = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_efb8d97d-fd83-430d-9111-6463bad93060", 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_efb8d97d-fd83-430d-9111-6463bad93060", 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.7.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", 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: "1789", ACTIONS_ORCHESTRATION_ID: "54f09bee-6e4f-4d1a-ad0b-cbec1c5a4598.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: "20260920.314.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_efb8d97d-fd83-430d-9111-6463bad93060", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:10811", 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: "36384533078", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "87fbbe6ab7e18854afd224693c582438ce7d0cd7", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.8/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/KDI-5147-passcode-uniqueness", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9LREktNTE0Ny1wYXNzY29kZS11bmlxdWVuZXNzXCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsImF1ZCI6InZzbzo2Zjk2ZmE4OS1iN2JmLTQ4NzgtYmFkMy04OTgwMDY1NjZiNmUiLCJiaWxsaW5nX293bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwiZXhwIjoxNzkwNTk3NTYwLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3ByaW1hcnlzaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJpYXQiOjE3OTA1NzUzNjAsImlzcyI6Imh0dHBzOi8vdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJqb2JfaWQiOiI5ODIxNjcwYy00OGY0LTU2ODgtYTU2Ny1jNDVkOGVhNTI0ZDEiLCJqb2Jfd29ya2Zsb3dfcmVmIjoiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluIiwiam9iX3dvcmtmbG93X3NoYSI6ImU2NzkzMTg0MTJjNWFiYzEwZmNlMzcyYzhhNDZmMTZhOGVkMWQ2OTIiLCJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJuYmYiOjE3OTA1NzUwNjAsIm9pZGNfZXh0cmEiOiJ7XCJhY3RvclwiOlwianVuLWxlZS1mZWVkbWVcIixcImFjdG9yX2lkXCI6XCIyMzkyODI4NjJcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiMTA4ODA3MDQwODk5XCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluXCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCJlNjc5MzE4NDEyYzVhYmMxMGZjZTM3MmM4YTQ2ZjE2YThlZDFkNjkyXCIsXCJyZWZcIjpcInJlZnMvaGVhZHMvS0RJLTUxNDctcGFzc2NvZGUtdW5pcXVlbmVzc1wiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIzNjM4NDUzMzA3OFwiLFwicnVuX251bWJlclwiOlwiMTY5XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiODdmYmJlNmFiN2UxODg1NGFmZDIyNDY5M2M1ODI0MzhjZTdkMGNkN1wiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvS0RJLTUxNDctcGFzc2NvZGUtdW5pcXVlbmVzc1wiLFwid29ya2Zsb3dfc2hhXCI6XCI4N2ZiYmU2YWI3ZTE4ODU0YWZkMjI0NjkzYzU4MjQzOGNlN2QwY2Q3XCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9LREktNTE0Ny1wYXNzY29kZS11bmlxdWVuZXNzIiwib3JjaF9pZCI6IjU0ZjA5YmVlLTZlNGYtNGQxYS1hZDBiLWNiZWMxYzVhNDU5OC5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiNTRmMDliZWUtNmU0Zi00ZDFhLWFkMGItY2JlYzFjNWE0NTk4IiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMzYzODQ1MzMwNzgiLCJydW5fbnVtYmVyIjoiMTY5IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDE2NjQ2NyIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjU0ZjA5YmVlLTZlNGYtNGQxYS1hZDBiLWNiZWMxYzVhNDU5ODo5ODIxNjcwYy00OGY0LTU2ODgtYTU2Ny1jNDVkOGVhNTI0ZDEgQWN0aW9ucy5SdW5uZXI6NTRmMDliZWUtNmU0Zi00ZDFhLWFkMGItY2JlYzFjNWE0NTk4Ojk4MjE2NzBjLTQ4ZjQtNTY4OC1hNTY3LWM0NWQ4ZWE1MjRkMSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czo1NGYwOWJlZS02ZTRmLTRkMWEtYWQwYi1jYmVjMWM1YTQ1OTg6OTgyMTY3MGMtNDhmNC01Njg4LWE1NjctYzQ1ZDhlYTUyNGQxIGdlbmVyYXRlX2lkX3Rva2VuOjU0ZjA5YmVlLTZlNGYtNGQxYS1hZDBiLWNiZWMxYzVhNDU5ODo5ODIxNjcwYy00OGY0LTU2ODgtYTU2Ny1jNDVkOGVhNTI0ZDEgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiI4N2ZiYmU2YWI3ZTE4ODU0YWZkMjI0NjkzYzU4MjQzOGNlN2QwY2Q3IiwidHJ1c3RfdGllciI6IjEifQ.QhYCV7vTge5jwGeJqb8JuTLZzI281CMJANLZELGlNOgUVO3VOAtvMPALVTViF5sDBt4PNB46IJKShZdyS3FiqekHA8XGNdVh9j_n89PfSLiCK40oEj-X2PpqHElHG7gLyhXgRKmwVGT4SkfUcfc9mC_jeIc9o7XQqjZIoInXOqJ6W5wWN72_ago1Pc45aqOjlpurFJGgRPU3bLDudGKFZfMMWzIqNzd5zERYt8ctvV-ewxH69nVqtbI3GS0yoLsXiPPi6HLEyk0qDjnWAhQuyhS5iYU_ZybdonSEStAdx0W5xZEupTPUfzWouem20dIOx1m4if9KUVa0Ic7ecX7rlg", 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_096884f2-066a-44be-853a-f6a0f4b1fc3d", INVOCATION_ID: "99d531d7826c4e53b9df969c4933b391", 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: "169", 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 1000166467", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "KDI-5147-passcode-uniqueness", 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.2.5-dev.3", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", GITHUB_SHA: "87fbbe6ab7e18854afd224693c582438ce7d0cd7", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/KDI-5147-passcode-uniqueness", 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_efb8d97d-fd83-430d-9111-6463bad93060", 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/236//idtoken/54f09bee-6e4f-4d1a-ad0b-cbec1c5a4598/9821670c-48f4-5688-a567-c45d8ea524d1?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_efb8d97d-fd83-430d-9111-6463bad93060", 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_efb8d97d-fd83-430d-9111-6463bad93060", 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_efb8d97d-fd83-430d-9111-6463bad93060", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1859
1859
|
const yo = "10.0.5";
|
|
1860
1860
|
function Eo() {
|
|
1861
1861
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Be().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Be().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Be().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Be().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
@@ -1874,42 +1874,42 @@ const at = {
|
|
|
1874
1874
|
UNEXPECTED_ERROR: 32
|
|
1875
1875
|
};
|
|
1876
1876
|
function ut(e, ...t) {
|
|
1877
|
-
return
|
|
1877
|
+
return Ot(e, null, void 0);
|
|
1878
1878
|
}
|
|
1879
|
-
const xt = /* @__PURE__ */ $e("__translateVNode"),
|
|
1880
|
-
function
|
|
1879
|
+
const xt = /* @__PURE__ */ $e("__translateVNode"), Gt = /* @__PURE__ */ $e("__datetimeParts"), Wt = /* @__PURE__ */ $e("__numberParts"), Io = $e("__setPluralRules"), rr = /* @__PURE__ */ $e("__injectWithOption"), Zt = /* @__PURE__ */ $e("__dispose");
|
|
1880
|
+
function dt(e) {
|
|
1881
1881
|
if (!te(e))
|
|
1882
1882
|
return e;
|
|
1883
1883
|
for (const t in e)
|
|
1884
|
-
if (
|
|
1884
|
+
if (Le(e, t))
|
|
1885
1885
|
if (!t.includes("."))
|
|
1886
|
-
te(e[t]) &&
|
|
1886
|
+
te(e[t]) && dt(e[t]);
|
|
1887
1887
|
else {
|
|
1888
1888
|
const n = t.split("."), r = n.length - 1;
|
|
1889
1889
|
let l = e, a = !1;
|
|
1890
|
-
for (let
|
|
1891
|
-
if (n[
|
|
1890
|
+
for (let d = 0; d < r; d++) {
|
|
1891
|
+
if (n[d] in l || (l[n[d]] = oe()), !te(l[n[d]])) {
|
|
1892
1892
|
a = !0;
|
|
1893
1893
|
break;
|
|
1894
1894
|
}
|
|
1895
|
-
l = l[n[
|
|
1895
|
+
l = l[n[d]];
|
|
1896
1896
|
}
|
|
1897
|
-
a || (l[n[r]] = e[t], delete e[t]), te(l[n[r]]) &&
|
|
1897
|
+
a || (l[n[r]] = e[t], delete e[t]), te(l[n[r]]) && dt(l[n[r]]);
|
|
1898
1898
|
}
|
|
1899
1899
|
return e;
|
|
1900
1900
|
}
|
|
1901
1901
|
function sr(e, t) {
|
|
1902
|
-
const { messages: n, __i18n: r, messageResolver: l, flatJson: a } = t,
|
|
1902
|
+
const { messages: n, __i18n: r, messageResolver: l, flatJson: a } = t, d = ee(n) ? n : be(r) ? oe() : { [e]: oe() };
|
|
1903
1903
|
if (be(r) && r.forEach((u) => {
|
|
1904
1904
|
if ("locale" in u && "resource" in u) {
|
|
1905
1905
|
const { locale: i, resource: g } = u;
|
|
1906
|
-
i ? (
|
|
1906
|
+
i ? (d[i] = d[i] || oe(), Et(g, d[i])) : Et(g, d);
|
|
1907
1907
|
} else
|
|
1908
|
-
Z(u) && Et(JSON.parse(u),
|
|
1908
|
+
Z(u) && Et(JSON.parse(u), d);
|
|
1909
1909
|
}), l == null && a)
|
|
1910
|
-
for (const u in
|
|
1911
|
-
|
|
1912
|
-
return
|
|
1910
|
+
for (const u in d)
|
|
1911
|
+
Le(d, u) && dt(d[u]);
|
|
1912
|
+
return d;
|
|
1913
1913
|
}
|
|
1914
1914
|
function or(e) {
|
|
1915
1915
|
return e.type;
|
|
@@ -1927,14 +1927,14 @@ function No(e, t, n) {
|
|
|
1927
1927
|
{
|
|
1928
1928
|
if (te(t.datetimeFormats)) {
|
|
1929
1929
|
const a = Object.keys(t.datetimeFormats);
|
|
1930
|
-
a.length && a.forEach((
|
|
1931
|
-
e.mergeDateTimeFormat(
|
|
1930
|
+
a.length && a.forEach((d) => {
|
|
1931
|
+
e.mergeDateTimeFormat(d, t.datetimeFormats[d]);
|
|
1932
1932
|
});
|
|
1933
1933
|
}
|
|
1934
1934
|
if (te(t.numberFormats)) {
|
|
1935
1935
|
const a = Object.keys(t.numberFormats);
|
|
1936
|
-
a.length && a.forEach((
|
|
1937
|
-
e.mergeNumberFormat(
|
|
1936
|
+
a.length && a.forEach((d) => {
|
|
1937
|
+
e.mergeNumberFormat(d, t.numberFormats[d]);
|
|
1938
1938
|
});
|
|
1939
1939
|
}
|
|
1940
1940
|
}
|
|
@@ -1942,27 +1942,27 @@ function No(e, t, n) {
|
|
|
1942
1942
|
function Sn(e) {
|
|
1943
1943
|
return ue(fr, null, e, 0);
|
|
1944
1944
|
}
|
|
1945
|
-
const
|
|
1945
|
+
const Ln = "__INTLIFY_META__", kn = () => [], Co = () => !1;
|
|
1946
1946
|
let An = 0;
|
|
1947
1947
|
function Rn(e) {
|
|
1948
|
-
return (t, n, r, l) => e(n, r,
|
|
1948
|
+
return (t, n, r, l) => e(n, r, Yt() || void 0, l);
|
|
1949
1949
|
}
|
|
1950
|
-
const
|
|
1951
|
-
const e =
|
|
1950
|
+
const Oo = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1951
|
+
const e = Yt();
|
|
1952
1952
|
let t = null;
|
|
1953
|
-
return e && (t = or(e)[
|
|
1953
|
+
return e && (t = or(e)[Ln]) ? { [Ln]: t } : null;
|
|
1954
1954
|
};
|
|
1955
|
-
function
|
|
1956
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, l = e.flatJson, a = on ? rt :
|
|
1957
|
-
let
|
|
1955
|
+
function To(e = {}) {
|
|
1956
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, l = e.flatJson, a = on ? rt : dr;
|
|
1957
|
+
let d = pe(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1958
1958
|
const u = a(
|
|
1959
1959
|
// prettier-ignore
|
|
1960
|
-
t &&
|
|
1960
|
+
t && d ? t.locale.value : Z(e.locale) ? e.locale : Nt
|
|
1961
1961
|
), i = a(
|
|
1962
1962
|
// prettier-ignore
|
|
1963
|
-
t &&
|
|
1964
|
-
), g = a(sr(u.value, e)), E = a(ee(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }),
|
|
1965
|
-
let N = t ? t.missingWarn : pe(e.missingWarn) || It(e.missingWarn) ? e.missingWarn : !0, F = t ? t.fallbackWarn : pe(e.fallbackWarn) || It(e.fallbackWarn) ? e.fallbackWarn : !0, w = t ? t.fallbackRoot : pe(e.fallbackRoot) ? e.fallbackRoot : !0,
|
|
1963
|
+
t && d ? t.fallbackLocale.value : Z(e.fallbackLocale) || be(e.fallbackLocale) || ee(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
1964
|
+
), g = a(sr(u.value, e)), E = a(ee(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), O = a(ee(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
|
|
1965
|
+
let N = t ? t.missingWarn : pe(e.missingWarn) || It(e.missingWarn) ? e.missingWarn : !0, F = t ? t.fallbackWarn : pe(e.fallbackWarn) || It(e.fallbackWarn) ? e.fallbackWarn : !0, w = t ? t.fallbackRoot : pe(e.fallbackRoot) ? e.fallbackRoot : !0, k = !!e.fallbackFormat, D = me(e.missing) ? e.missing : null, f = me(e.missing) ? Rn(e.missing) : null, h = me(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : pe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, c = !!e.escapeParameter;
|
|
1966
1966
|
const b = t ? t.modifiers : ee(e.modifiers) ? e.modifiers : {};
|
|
1967
1967
|
let y = e.pluralRules || t && t.pluralRules, v;
|
|
1968
1968
|
v = (() => {
|
|
@@ -1977,7 +1977,7 @@ function Oo(e = {}) {
|
|
|
1977
1977
|
missing: f === null ? void 0 : f,
|
|
1978
1978
|
missingWarn: N,
|
|
1979
1979
|
fallbackWarn: F,
|
|
1980
|
-
fallbackFormat:
|
|
1980
|
+
fallbackFormat: k,
|
|
1981
1981
|
unresolving: !0,
|
|
1982
1982
|
postTranslation: h === null ? void 0 : h,
|
|
1983
1983
|
warnHtmlMessage: S,
|
|
@@ -1986,17 +1986,17 @@ function Oo(e = {}) {
|
|
|
1986
1986
|
messageCompiler: e.messageCompiler,
|
|
1987
1987
|
__meta: { framework: "vue" }
|
|
1988
1988
|
};
|
|
1989
|
-
p.datetimeFormats = E.value, p.numberFormats =
|
|
1989
|
+
p.datetimeFormats = E.value, p.numberFormats = O.value, p.__datetimeFormatters = ee(v) ? v.__datetimeFormatters : void 0, p.__numberFormatters = ee(v) ? v.__numberFormatters : void 0;
|
|
1990
1990
|
const I = ro(p);
|
|
1991
1991
|
return r && bn(I), I;
|
|
1992
1992
|
})(), lt(v, u.value, i.value);
|
|
1993
|
-
function
|
|
1993
|
+
function L() {
|
|
1994
1994
|
return [
|
|
1995
1995
|
u.value,
|
|
1996
1996
|
i.value,
|
|
1997
1997
|
g.value,
|
|
1998
1998
|
E.value,
|
|
1999
|
-
|
|
1999
|
+
O.value
|
|
2000
2000
|
];
|
|
2001
2001
|
}
|
|
2002
2002
|
const B = z({
|
|
@@ -2009,21 +2009,21 @@ function Oo(e = {}) {
|
|
|
2009
2009
|
set: (p) => {
|
|
2010
2010
|
i.value = p, v.fallbackLocale = i.value, lt(v, u.value, p);
|
|
2011
2011
|
}
|
|
2012
|
-
}),
|
|
2012
|
+
}), m = z(() => g.value), C = /* @__PURE__ */ z(() => E.value), U = /* @__PURE__ */ z(() => O.value);
|
|
2013
2013
|
function V() {
|
|
2014
|
-
return
|
|
2014
|
+
return me(h) ? h : null;
|
|
2015
2015
|
}
|
|
2016
2016
|
function j(p) {
|
|
2017
2017
|
h = p, v.postTranslation = p;
|
|
2018
2018
|
}
|
|
2019
|
-
function
|
|
2019
|
+
function W() {
|
|
2020
2020
|
return D;
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2022
|
+
function G(p) {
|
|
2023
2023
|
p !== null && (f = Rn(p)), D = p, v.missing = f;
|
|
2024
2024
|
}
|
|
2025
|
-
const
|
|
2026
|
-
|
|
2025
|
+
const X = (p, I, $, le, Ye, mt) => {
|
|
2026
|
+
L();
|
|
2027
2027
|
let ze;
|
|
2028
2028
|
try {
|
|
2029
2029
|
go.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = t ? no() : void 0), ze = p(v);
|
|
@@ -2031,29 +2031,29 @@ function Oo(e = {}) {
|
|
|
2031
2031
|
__INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = void 0);
|
|
2032
2032
|
}
|
|
2033
2033
|
if ($ !== "translate exists" && // for not `te` (e.g `t`)
|
|
2034
|
-
ge(ze) && ze ===
|
|
2034
|
+
ge(ze) && ze === Tt || $ === "translate exists" && !ze) {
|
|
2035
2035
|
const [cr, Ia] = I();
|
|
2036
|
-
return t && w ? le(t) :
|
|
2036
|
+
return t && w ? le(t) : Ye(cr);
|
|
2037
2037
|
} else {
|
|
2038
|
-
if (
|
|
2038
|
+
if (mt(ze))
|
|
2039
2039
|
return ze;
|
|
2040
2040
|
throw ut(at.UNEXPECTED_RETURN_TYPE);
|
|
2041
2041
|
}
|
|
2042
2042
|
};
|
|
2043
|
-
function
|
|
2044
|
-
return
|
|
2043
|
+
function Y(...p) {
|
|
2044
|
+
return X((I) => Reflect.apply(Tn, null, [I, ...p]), () => Vt(...p), "translate", (I) => Reflect.apply(I.t, I, [...p]), (I) => I, (I) => Z(I));
|
|
2045
2045
|
}
|
|
2046
2046
|
function ne(...p) {
|
|
2047
2047
|
const [I, $, le] = p;
|
|
2048
2048
|
if (le && !te(le))
|
|
2049
2049
|
throw ut(at.INVALID_ARGUMENT);
|
|
2050
|
-
return
|
|
2050
|
+
return Y(I, $, ye({ resolvedMessage: !0 }, le || {}));
|
|
2051
2051
|
}
|
|
2052
2052
|
function Q(...p) {
|
|
2053
|
-
return
|
|
2053
|
+
return X((I) => Reflect.apply(yn, null, [I, ...p]), () => jt(...p), "datetime format", (I) => Reflect.apply(I.d, I, [...p]), () => pn, (I) => Z(I));
|
|
2054
2054
|
}
|
|
2055
2055
|
function _e(...p) {
|
|
2056
|
-
return
|
|
2056
|
+
return X((I) => Reflect.apply(In, null, [I, ...p]), () => Ut(...p), "number format", (I) => Reflect.apply(I.n, I, [...p]), () => pn, (I) => Z(I));
|
|
2057
2057
|
}
|
|
2058
2058
|
function ce(p) {
|
|
2059
2059
|
return p.map((I) => Z(I) || ge(I) || pe(I) ? Sn(String(I)) : I);
|
|
@@ -2064,11 +2064,11 @@ function Oo(e = {}) {
|
|
|
2064
2064
|
type: "vnode"
|
|
2065
2065
|
};
|
|
2066
2066
|
function q(...p) {
|
|
2067
|
-
return
|
|
2067
|
+
return X((I) => {
|
|
2068
2068
|
let $;
|
|
2069
2069
|
const le = I;
|
|
2070
2070
|
try {
|
|
2071
|
-
le.processor = fe, $ = Reflect.apply(
|
|
2071
|
+
le.processor = fe, $ = Reflect.apply(Tn, null, [le, ...p]);
|
|
2072
2072
|
} finally {
|
|
2073
2073
|
le.processor = null;
|
|
2074
2074
|
}
|
|
@@ -2076,29 +2076,29 @@ function Oo(e = {}) {
|
|
|
2076
2076
|
}, () => Vt(...p), "translate", (I) => I[xt](...p), (I) => [Sn(I)], (I) => be(I));
|
|
2077
2077
|
}
|
|
2078
2078
|
function De(...p) {
|
|
2079
|
-
return
|
|
2079
|
+
return X((I) => Reflect.apply(In, null, [I, ...p]), () => Ut(...p), "number format", (I) => I[Wt](...p), kn, (I) => Z(I) || be(I));
|
|
2080
2080
|
}
|
|
2081
2081
|
function K(...p) {
|
|
2082
|
-
return
|
|
2082
|
+
return X((I) => Reflect.apply(yn, null, [I, ...p]), () => jt(...p), "datetime format", (I) => I[Gt](...p), kn, (I) => Z(I) || be(I));
|
|
2083
2083
|
}
|
|
2084
2084
|
function ve(p) {
|
|
2085
2085
|
y = p, v.pluralRules = y;
|
|
2086
2086
|
}
|
|
2087
2087
|
function Je(p, I) {
|
|
2088
|
-
return
|
|
2088
|
+
return X(() => {
|
|
2089
2089
|
if (!p)
|
|
2090
2090
|
return !1;
|
|
2091
|
-
const $ = Z(I) ? I : u.value, le = Fe($),
|
|
2092
|
-
return ot(
|
|
2091
|
+
const $ = Z(I) ? I : u.value, le = Fe($), Ye = v.messageResolver(le, p);
|
|
2092
|
+
return ot(Ye) || Oe(Ye) || Z(Ye);
|
|
2093
2093
|
}, () => [p], "translate exists", ($) => Reflect.apply($.te, $, [p, I]), Co, ($) => pe($));
|
|
2094
2094
|
}
|
|
2095
2095
|
function Ke(p) {
|
|
2096
2096
|
let I = null;
|
|
2097
2097
|
const $ = Hn(v, i.value, u.value);
|
|
2098
2098
|
for (let le = 0; le < $.length; le++) {
|
|
2099
|
-
const
|
|
2100
|
-
if (
|
|
2101
|
-
I =
|
|
2099
|
+
const Ye = g.value[$[le]] || {}, mt = v.messageResolver(Ye, p);
|
|
2100
|
+
if (mt != null) {
|
|
2101
|
+
I = mt;
|
|
2102
2102
|
break;
|
|
2103
2103
|
}
|
|
2104
2104
|
}
|
|
@@ -2115,20 +2115,20 @@ function Oo(e = {}) {
|
|
|
2115
2115
|
if (l) {
|
|
2116
2116
|
const $ = { [p]: I };
|
|
2117
2117
|
for (const le in $)
|
|
2118
|
-
|
|
2118
|
+
Le($, le) && dt($[le]);
|
|
2119
2119
|
I = $[p];
|
|
2120
2120
|
}
|
|
2121
2121
|
g.value[p] = I, v.messages = g.value;
|
|
2122
2122
|
}
|
|
2123
|
-
function
|
|
2123
|
+
function Xe(p, I) {
|
|
2124
2124
|
g.value[p] = g.value[p] || {};
|
|
2125
2125
|
const $ = { [p]: I };
|
|
2126
2126
|
if (l)
|
|
2127
2127
|
for (const le in $)
|
|
2128
|
-
|
|
2128
|
+
Le($, le) && dt($[le]);
|
|
2129
2129
|
I = $[p], Et(I, g.value[p]), v.messages = g.value;
|
|
2130
2130
|
}
|
|
2131
|
-
function
|
|
2131
|
+
function T(p) {
|
|
2132
2132
|
return E.value[p] || {};
|
|
2133
2133
|
}
|
|
2134
2134
|
function s(p, I) {
|
|
@@ -2138,33 +2138,33 @@ function Oo(e = {}) {
|
|
|
2138
2138
|
E.value[p] = ye(E.value[p] || {}, I), v.datetimeFormats = E.value, En(v, p, I);
|
|
2139
2139
|
}
|
|
2140
2140
|
function _(p) {
|
|
2141
|
-
return
|
|
2141
|
+
return O.value[p] || {};
|
|
2142
2142
|
}
|
|
2143
2143
|
function A(p, I) {
|
|
2144
|
-
|
|
2144
|
+
O.value[p] = I, v.numberFormats = O.value, Nn(v, p, I);
|
|
2145
2145
|
}
|
|
2146
2146
|
function M(p, I) {
|
|
2147
|
-
|
|
2147
|
+
O.value[p] = ye(O.value[p] || {}, I), v.numberFormats = O.value, Nn(v, p, I);
|
|
2148
2148
|
}
|
|
2149
2149
|
An++, t && on && (wt(t.locale, (p) => {
|
|
2150
|
-
|
|
2150
|
+
d && (u.value = p, v.locale = p, lt(v, u.value, i.value));
|
|
2151
2151
|
}), wt(t.fallbackLocale, (p) => {
|
|
2152
|
-
|
|
2152
|
+
d && (i.value = p, v.fallbackLocale = p, lt(v, u.value, i.value));
|
|
2153
2153
|
}));
|
|
2154
2154
|
const P = {
|
|
2155
2155
|
id: An,
|
|
2156
2156
|
locale: B,
|
|
2157
2157
|
fallbackLocale: x,
|
|
2158
2158
|
get inheritLocale() {
|
|
2159
|
-
return
|
|
2159
|
+
return d;
|
|
2160
2160
|
},
|
|
2161
2161
|
set inheritLocale(p) {
|
|
2162
|
-
|
|
2162
|
+
d = p, p && t && (u.value = t.locale.value, i.value = t.fallbackLocale.value, lt(v, u.value, i.value));
|
|
2163
2163
|
},
|
|
2164
2164
|
get availableLocales() {
|
|
2165
2165
|
return Object.keys(g.value).sort();
|
|
2166
2166
|
},
|
|
2167
|
-
messages:
|
|
2167
|
+
messages: m,
|
|
2168
2168
|
get modifiers() {
|
|
2169
2169
|
return b;
|
|
2170
2170
|
},
|
|
@@ -2193,10 +2193,10 @@ function Oo(e = {}) {
|
|
|
2193
2193
|
w = p;
|
|
2194
2194
|
},
|
|
2195
2195
|
get fallbackFormat() {
|
|
2196
|
-
return
|
|
2196
|
+
return k;
|
|
2197
2197
|
},
|
|
2198
2198
|
set fallbackFormat(p) {
|
|
2199
|
-
|
|
2199
|
+
k = p, v.fallbackFormat = k;
|
|
2200
2200
|
},
|
|
2201
2201
|
get warnHtmlMessage() {
|
|
2202
2202
|
return S;
|
|
@@ -2210,17 +2210,17 @@ function Oo(e = {}) {
|
|
|
2210
2210
|
set escapeParameter(p) {
|
|
2211
2211
|
c = p, v.escapeParameter = p;
|
|
2212
2212
|
},
|
|
2213
|
-
t:
|
|
2213
|
+
t: Y,
|
|
2214
2214
|
getLocaleMessage: Fe,
|
|
2215
2215
|
setLocaleMessage: Ce,
|
|
2216
|
-
mergeLocaleMessage:
|
|
2216
|
+
mergeLocaleMessage: Xe,
|
|
2217
2217
|
getPostTranslationHandler: V,
|
|
2218
2218
|
setPostTranslationHandler: j,
|
|
2219
|
-
getMissingHandler:
|
|
2220
|
-
setMissingHandler:
|
|
2219
|
+
getMissingHandler: W,
|
|
2220
|
+
setMissingHandler: G,
|
|
2221
2221
|
[Io]: ve
|
|
2222
2222
|
};
|
|
2223
|
-
return P.datetimeFormats = C, P.numberFormats = U, P.rt = ne, P.te = Je, P.tm = Ve, P.d = Q, P.n = _e, P.getDateTimeFormat =
|
|
2223
|
+
return P.datetimeFormats = C, P.numberFormats = U, P.rt = ne, P.te = Je, P.tm = Ve, P.d = Q, P.n = _e, P.getDateTimeFormat = T, P.setDateTimeFormat = s, P.mergeDateTimeFormat = o, P.getNumberFormat = _, P.setNumberFormat = A, P.mergeNumberFormat = M, P[rr] = n, P[xt] = q, P[Gt] = K, P[Wt] = De, P;
|
|
2224
2224
|
}
|
|
2225
2225
|
const qt = {
|
|
2226
2226
|
tag: {
|
|
@@ -2263,23 +2263,23 @@ ye({
|
|
|
2263
2263
|
validator: (e) => ge(e) || !isNaN(e)
|
|
2264
2264
|
}
|
|
2265
2265
|
}, qt);
|
|
2266
|
-
function
|
|
2266
|
+
function Lo(e) {
|
|
2267
2267
|
return be(e) && !Z(e[0]);
|
|
2268
2268
|
}
|
|
2269
2269
|
function lr(e, t, n, r) {
|
|
2270
2270
|
const { slots: l, attrs: a } = t;
|
|
2271
2271
|
return () => {
|
|
2272
|
-
const
|
|
2272
|
+
const d = { part: !0 };
|
|
2273
2273
|
let u = oe();
|
|
2274
|
-
e.locale && (
|
|
2275
|
-
const i = r(e.value,
|
|
2276
|
-
let g = [
|
|
2274
|
+
e.locale && (d.locale = e.locale), Z(e.format) ? d.key = e.format : te(e.format) && (Z(e.format.key) && (d.key = e.format.key), u = Object.keys(e.format).reduce((N, F) => n.includes(F) ? ye(oe(), N, { [F]: e.format[F] }) : N, oe()));
|
|
2275
|
+
const i = r(e.value, d, u);
|
|
2276
|
+
let g = [d.key];
|
|
2277
2277
|
be(i) ? g = i.map((N, F) => {
|
|
2278
|
-
const w = l[N.type],
|
|
2279
|
-
return
|
|
2278
|
+
const w = l[N.type], k = w ? w({ [N.type]: N.value, index: F, parts: i }) : [N.value];
|
|
2279
|
+
return Lo(k) && (k[0].key = `${N.type}-${F}`), k;
|
|
2280
2280
|
}) : Z(i) && (g = [i]);
|
|
2281
|
-
const E = ye(oe(), a),
|
|
2282
|
-
return
|
|
2281
|
+
const E = ye(oe(), a), O = Z(e.tag) || te(e.tag) ? e.tag : ar();
|
|
2282
|
+
return Gn(O, E, g);
|
|
2283
2283
|
};
|
|
2284
2284
|
}
|
|
2285
2285
|
ye({
|
|
@@ -2300,9 +2300,9 @@ ye({
|
|
|
2300
2300
|
type: [String, Object]
|
|
2301
2301
|
}
|
|
2302
2302
|
}, qt);
|
|
2303
|
-
const
|
|
2303
|
+
const ko = /* @__PURE__ */ $e("global-vue-i18n");
|
|
2304
2304
|
function St(e = {}) {
|
|
2305
|
-
const t =
|
|
2305
|
+
const t = Yt();
|
|
2306
2306
|
if (t == null)
|
|
2307
2307
|
throw ut(at.MUST_BE_CALL_SETUP_TOP);
|
|
2308
2308
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
@@ -2314,16 +2314,16 @@ function St(e = {}) {
|
|
|
2314
2314
|
let i = wo(n, t, e.__useComponent);
|
|
2315
2315
|
return i == null && (i = r), i;
|
|
2316
2316
|
}
|
|
2317
|
-
const
|
|
2318
|
-
let u =
|
|
2317
|
+
const d = n;
|
|
2318
|
+
let u = d.__getInstance(t);
|
|
2319
2319
|
if (u == null) {
|
|
2320
2320
|
const i = ye({}, e);
|
|
2321
|
-
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u =
|
|
2321
|
+
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u = To(i), d.__composerExtend && (u[Zt] = d.__composerExtend(u)), Fo(d, t, u), d.__setInstance(t, u);
|
|
2322
2322
|
}
|
|
2323
2323
|
return u;
|
|
2324
2324
|
}
|
|
2325
2325
|
function Ao(e) {
|
|
2326
|
-
const t = ur(e.isCE ?
|
|
2326
|
+
const t = ur(e.isCE ? ko : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2327
2327
|
if (!t)
|
|
2328
2328
|
throw ut(e.isCE ? at.NOT_INSTALLED_WITH_PROVIDE : at.UNEXPECTED_ERROR);
|
|
2329
2329
|
return t;
|
|
@@ -2339,11 +2339,11 @@ function wo(e, t, n = !1) {
|
|
|
2339
2339
|
const l = t.root;
|
|
2340
2340
|
let a = Do(t, n);
|
|
2341
2341
|
for (; a != null; ) {
|
|
2342
|
-
const
|
|
2342
|
+
const d = e;
|
|
2343
2343
|
if (e.mode === "composition")
|
|
2344
|
-
r =
|
|
2344
|
+
r = d.__getInstance(a);
|
|
2345
2345
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
2346
|
-
const u =
|
|
2346
|
+
const u = d.__getInstance(a);
|
|
2347
2347
|
u != null && (r = u.__composer, n && r && !r[rr] && (r = null));
|
|
2348
2348
|
}
|
|
2349
2349
|
if (r != null || l === a)
|
|
@@ -2357,7 +2357,7 @@ function Do(e, t = !1) {
|
|
|
2357
2357
|
}
|
|
2358
2358
|
function Fo(e, t, n) {
|
|
2359
2359
|
xn(() => {
|
|
2360
|
-
}, t),
|
|
2360
|
+
}, t), mr(() => {
|
|
2361
2361
|
const r = n;
|
|
2362
2362
|
e.__deleteInstance(t);
|
|
2363
2363
|
const l = r[Zt];
|
|
@@ -2372,7 +2372,7 @@ if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
|
2372
2372
|
const e = Be();
|
|
2373
2373
|
e.__INTLIFY__ = !0, ws(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2374
2374
|
}
|
|
2375
|
-
const pt = /* @__PURE__ */
|
|
2375
|
+
const pt = /* @__PURE__ */ ke({
|
|
2376
2376
|
__name: "InheritPermissionTooltip",
|
|
2377
2377
|
props: {
|
|
2378
2378
|
item: {
|
|
@@ -2389,13 +2389,13 @@ const pt = /* @__PURE__ */ Le({
|
|
|
2389
2389
|
placement: "right",
|
|
2390
2390
|
"z-index": 50
|
|
2391
2391
|
}, {
|
|
2392
|
-
content:
|
|
2393
|
-
ae("div", null,
|
|
2394
|
-
(J(!0), ie(Re, null, Ie(e.item.setNames, (
|
|
2395
|
-
ae("div", null, "- " +
|
|
2392
|
+
content: de(() => [
|
|
2393
|
+
ae("div", null, Te(H(t)("team.memberForm.permissions.inherited")), 1),
|
|
2394
|
+
(J(!0), ie(Re, null, Ie(e.item.setNames, (d) => (J(), ie("div", { key: d }, [
|
|
2395
|
+
ae("div", null, "- " + Te(d), 1)
|
|
2396
2396
|
]))), 128))
|
|
2397
2397
|
]),
|
|
2398
|
-
default:
|
|
2398
|
+
default: de(() => [
|
|
2399
2399
|
ue(l, {
|
|
2400
2400
|
name: "admin_panel_settings",
|
|
2401
2401
|
size: "sm",
|
|
@@ -2412,11 +2412,11 @@ function Mn(e, t, n) {
|
|
|
2412
2412
|
if (r.length === 0) return;
|
|
2413
2413
|
const l = e.findIndex((u) => u.subject === t && !u.inverted);
|
|
2414
2414
|
if (l < 0) return;
|
|
2415
|
-
const a = new Set(e[l].actions),
|
|
2416
|
-
|
|
2415
|
+
const a = new Set(e[l].actions), d = r.every((u) => a.has(u));
|
|
2416
|
+
d && !a.has("manage") ? (a.add("manage"), e[l] = {
|
|
2417
2417
|
...e[l],
|
|
2418
2418
|
actions: Array.from(a)
|
|
2419
|
-
}) : !
|
|
2419
|
+
}) : !d && a.has("manage") && (a.delete("manage"), a.size === 0 ? e.splice(l, 1) : e[l] = {
|
|
2420
2420
|
...e[l],
|
|
2421
2421
|
actions: Array.from(a)
|
|
2422
2422
|
});
|
|
@@ -2427,56 +2427,56 @@ const wn = Object.values(Sr), Po = {
|
|
|
2427
2427
|
update: "Edit"
|
|
2428
2428
|
};
|
|
2429
2429
|
function jo(e, t, n, r) {
|
|
2430
|
-
const { t: l } = He(), { getFlagValue: a, getFlag:
|
|
2430
|
+
const { t: l } = He(), { getFlagValue: a, getFlag: d } = Tr(), u = z(() => {
|
|
2431
2431
|
var j;
|
|
2432
|
-
const
|
|
2433
|
-
for (const
|
|
2434
|
-
const
|
|
2435
|
-
if (!
|
|
2436
|
-
const
|
|
2437
|
-
if (n.value.includes(
|
|
2432
|
+
const m = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map();
|
|
2433
|
+
for (const W of t.value) {
|
|
2434
|
+
const G = W.category;
|
|
2435
|
+
if (!G) continue;
|
|
2436
|
+
const X = W.subject;
|
|
2437
|
+
if (n.value.includes(W.subject) || W.showByFeatureFlag && ((j = d(W.showByFeatureFlag)) == null ? void 0 : j.enabled) === !1 && a(W.showByFeatureFlag) === "true")
|
|
2438
2438
|
continue;
|
|
2439
|
-
|
|
2440
|
-
const
|
|
2441
|
-
U.set(
|
|
2442
|
-
label: l(`permissionSet.permissionLabels.${
|
|
2443
|
-
value:
|
|
2444
|
-
optionKey: `${
|
|
2445
|
-
}), C.has(
|
|
2439
|
+
m.has(G) || m.set(G, []);
|
|
2440
|
+
const Y = U.get(X) ?? 0;
|
|
2441
|
+
U.set(X, Y + 1), m.get(G).push({
|
|
2442
|
+
label: l(`permissionSet.permissionLabels.${X}`, W.label),
|
|
2443
|
+
value: X,
|
|
2444
|
+
optionKey: `${X}::${Y}`
|
|
2445
|
+
}), C.has(X) || C.set(X, W);
|
|
2446
2446
|
}
|
|
2447
|
-
return [...
|
|
2448
|
-
const
|
|
2449
|
-
return
|
|
2450
|
-
}).map((
|
|
2451
|
-
const
|
|
2452
|
-
for (const K of
|
|
2447
|
+
return [...m.keys()].sort((W, G) => {
|
|
2448
|
+
const X = wn.indexOf(W), Y = wn.indexOf(G);
|
|
2449
|
+
return X === -1 && Y === -1 ? W.localeCompare(G) : X === -1 ? 1 : Y === -1 ? -1 : X - Y;
|
|
2450
|
+
}).map((W) => {
|
|
2451
|
+
const G = m.get(W), X = l(`permissionSet.categoryLabels.${W}`, W), Y = /* @__PURE__ */ new Map();
|
|
2452
|
+
for (const K of G) {
|
|
2453
2453
|
const ve = C.get(K.value);
|
|
2454
|
-
ve &&
|
|
2454
|
+
ve && Y.set(K.value, ve.actions);
|
|
2455
2455
|
}
|
|
2456
|
-
const ne =
|
|
2457
|
-
const ve =
|
|
2456
|
+
const ne = G.some((K) => {
|
|
2457
|
+
const ve = Y.get(K.value);
|
|
2458
2458
|
return ve && ve.length > 1;
|
|
2459
2459
|
}), Q = ne ? [
|
|
2460
2460
|
...new Set(
|
|
2461
|
-
|
|
2461
|
+
G.flatMap((K) => Y.get(K.value) ?? []).filter((K) => K !== "manage")
|
|
2462
2462
|
)
|
|
2463
2463
|
] : [], _e = /* @__PURE__ */ new Map();
|
|
2464
2464
|
for (const K of e.value)
|
|
2465
|
-
|
|
2465
|
+
G.some((ve) => ve.value === K.subject) && !K.inverted && _e.set(K.subject, new Set(K.actions));
|
|
2466
2466
|
const ce = ne ? e.value.filter(
|
|
2467
|
-
(K) =>
|
|
2468
|
-
).map((K) => K.subject) : e.value.filter((K) =>
|
|
2467
|
+
(K) => G.some((ve) => ve.value === K.subject) && !K.inverted && K.actions.includes("manage")
|
|
2468
|
+
).map((K) => K.subject) : e.value.filter((K) => G.some((ve) => ve.value === K.subject) && !K.inverted).map((K) => K.subject), se = G.find((K) => {
|
|
2469
2469
|
var ve;
|
|
2470
2470
|
return (ve = C.get(K.value)) == null ? void 0 : ve.isCategoryCover;
|
|
2471
2471
|
}), fe = (se == null ? void 0 : se.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), De = q.has("manage");
|
|
2472
2472
|
return {
|
|
2473
|
-
category:
|
|
2474
|
-
label:
|
|
2475
|
-
options:
|
|
2473
|
+
category: W,
|
|
2474
|
+
label: X,
|
|
2475
|
+
options: G,
|
|
2476
2476
|
selectedSubjects: ce,
|
|
2477
2477
|
isMultiAction: ne,
|
|
2478
2478
|
actionColumns: Q,
|
|
2479
|
-
permissionActionsMap:
|
|
2479
|
+
permissionActionsMap: Y,
|
|
2480
2480
|
selectedActionsMap: _e,
|
|
2481
2481
|
coverSubject: fe,
|
|
2482
2482
|
coverSelectedActions: q,
|
|
@@ -2484,17 +2484,17 @@ function jo(e, t, n, r) {
|
|
|
2484
2484
|
};
|
|
2485
2485
|
});
|
|
2486
2486
|
});
|
|
2487
|
-
function i(
|
|
2488
|
-
const U = u.value.find((Q) => Q.category ===
|
|
2487
|
+
function i(m, C) {
|
|
2488
|
+
const U = u.value.find((Q) => Q.category === m), V = (U == null ? void 0 : U.options) ?? [], j = new Set(V.map((Q) => Q.value)), W = new Set(C), G = /* @__PURE__ */ new Map();
|
|
2489
2489
|
for (const Q of e.value)
|
|
2490
|
-
j.has(Q.subject) && !Q.inverted &&
|
|
2491
|
-
const
|
|
2490
|
+
j.has(Q.subject) && !Q.inverted && G.set(Q.subject, Q.conditions);
|
|
2491
|
+
const X = U != null && U.coverSubject ? G.get(U.coverSubject) : void 0, Y = /* @__PURE__ */ new Set(), ne = t.value.flatMap(
|
|
2492
2492
|
({ category: Q, showByFeatureFlag: _e, isCategoryCover: ce, ...se }) => {
|
|
2493
2493
|
const fe = se.subject;
|
|
2494
|
-
if (!
|
|
2495
|
-
|
|
2494
|
+
if (!W.has(fe) || Y.has(fe)) return [];
|
|
2495
|
+
Y.add(fe);
|
|
2496
2496
|
let q;
|
|
2497
|
-
return
|
|
2497
|
+
return G.has(fe) ? q = G.get(fe) : U != null && U.coverSubject && fe !== U.coverSubject && (q = X), [
|
|
2498
2498
|
{ ...se, ...q !== void 0 && { conditions: q } }
|
|
2499
2499
|
];
|
|
2500
2500
|
}
|
|
@@ -2504,72 +2504,72 @@ function jo(e, t, n, r) {
|
|
|
2504
2504
|
...ne
|
|
2505
2505
|
]);
|
|
2506
2506
|
}
|
|
2507
|
-
function g(
|
|
2508
|
-
return F(
|
|
2507
|
+
function g(m, C) {
|
|
2508
|
+
return F(m, C) || c(m, C);
|
|
2509
2509
|
}
|
|
2510
|
-
function E(
|
|
2511
|
-
return
|
|
2510
|
+
function E(m) {
|
|
2511
|
+
return m.options.length > 0 && m.options.every((C) => g(m, C.value));
|
|
2512
2512
|
}
|
|
2513
|
-
function
|
|
2514
|
-
return
|
|
2515
|
-
(C) => g(
|
|
2513
|
+
function O(m) {
|
|
2514
|
+
return m.options.length === 0 || E(m) ? !1 : m.options.some(
|
|
2515
|
+
(C) => g(m, C.value) || w(m, C.value).length > 0
|
|
2516
2516
|
);
|
|
2517
2517
|
}
|
|
2518
|
-
function N(
|
|
2519
|
-
const C = new Set(
|
|
2520
|
-
if (E(
|
|
2518
|
+
function N(m) {
|
|
2519
|
+
const C = new Set(m.options.map((V) => V.value)), U = e.value.filter((V) => !C.has(V.subject));
|
|
2520
|
+
if (E(m))
|
|
2521
2521
|
r("update:model-value", U);
|
|
2522
2522
|
else {
|
|
2523
2523
|
const V = /* @__PURE__ */ new Map();
|
|
2524
|
-
for (const
|
|
2525
|
-
C.has(
|
|
2526
|
-
const j =
|
|
2527
|
-
({ category:
|
|
2524
|
+
for (const X of e.value)
|
|
2525
|
+
C.has(X.subject) && !X.inverted && V.set(X.subject, X.conditions);
|
|
2526
|
+
const j = m.coverSubject ? V.get(m.coverSubject) : void 0, W = /* @__PURE__ */ new Set(), G = t.value.flatMap(
|
|
2527
|
+
({ category: X, showByFeatureFlag: Y, isCategoryCover: ne, ...Q }) => {
|
|
2528
2528
|
const _e = Q.subject;
|
|
2529
|
-
if (!C.has(_e) ||
|
|
2530
|
-
|
|
2529
|
+
if (!C.has(_e) || W.has(_e)) return [];
|
|
2530
|
+
W.add(_e);
|
|
2531
2531
|
let ce;
|
|
2532
|
-
return V.has(_e) ? ce = V.get(_e) :
|
|
2532
|
+
return V.has(_e) ? ce = V.get(_e) : m.coverSubject && _e !== m.coverSubject && (ce = j), [
|
|
2533
2533
|
{ ...Q, ...ce !== void 0 && { conditions: ce } }
|
|
2534
2534
|
];
|
|
2535
2535
|
}
|
|
2536
2536
|
);
|
|
2537
|
-
r("update:model-value", [...U, ...
|
|
2537
|
+
r("update:model-value", [...U, ...G]);
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
|
-
function F(
|
|
2541
|
-
const U =
|
|
2540
|
+
function F(m, C) {
|
|
2541
|
+
const U = m.selectedActionsMap.get(C);
|
|
2542
2542
|
return U ? U.has("manage") : !1;
|
|
2543
2543
|
}
|
|
2544
|
-
function w(
|
|
2545
|
-
const U =
|
|
2544
|
+
function w(m, C) {
|
|
2545
|
+
const U = m.permissionActionsMap.get(C);
|
|
2546
2546
|
return U ? U.filter((j) => j !== "manage").filter(
|
|
2547
|
-
(j) => S(
|
|
2547
|
+
(j) => S(m, C, j) || b(m, C, j)
|
|
2548
2548
|
) : [];
|
|
2549
2549
|
}
|
|
2550
|
-
function
|
|
2551
|
-
return c(
|
|
2550
|
+
function k(m, C) {
|
|
2551
|
+
return c(m, C) ? !1 : !F(m, C) && w(m, C).length > 0;
|
|
2552
2552
|
}
|
|
2553
|
-
function D(
|
|
2554
|
-
if (!
|
|
2553
|
+
function D(m, C) {
|
|
2554
|
+
if (!m.coverSubject || C === m.coverSubject) return;
|
|
2555
2555
|
const U = e.value.find(
|
|
2556
|
-
(V) => !V.inverted && V.subject ===
|
|
2556
|
+
(V) => !V.inverted && V.subject === m.coverSubject
|
|
2557
2557
|
);
|
|
2558
2558
|
return (U == null ? void 0 : U.conditions) || void 0;
|
|
2559
2559
|
}
|
|
2560
|
-
function f(
|
|
2560
|
+
function f(m, C, U) {
|
|
2561
2561
|
if (U) {
|
|
2562
2562
|
const V = t.value.find((Q) => Q.subject === C);
|
|
2563
2563
|
if (!V) return;
|
|
2564
2564
|
const {
|
|
2565
2565
|
category: j,
|
|
2566
|
-
showByFeatureFlag:
|
|
2567
|
-
isCategoryCover:
|
|
2568
|
-
...
|
|
2569
|
-
} = V,
|
|
2566
|
+
showByFeatureFlag: W,
|
|
2567
|
+
isCategoryCover: G,
|
|
2568
|
+
...X
|
|
2569
|
+
} = V, Y = D(m, C), ne = e.value.filter((Q) => Q.subject !== C);
|
|
2570
2570
|
ne.push({
|
|
2571
|
-
...
|
|
2572
|
-
...
|
|
2571
|
+
...X,
|
|
2572
|
+
...Y !== void 0 && { conditions: Y }
|
|
2573
2573
|
}), r("update:model-value", ne);
|
|
2574
2574
|
} else
|
|
2575
2575
|
r(
|
|
@@ -2577,41 +2577,41 @@ function jo(e, t, n, r) {
|
|
|
2577
2577
|
e.value.filter((V) => V.subject !== C)
|
|
2578
2578
|
);
|
|
2579
2579
|
}
|
|
2580
|
-
function h(
|
|
2581
|
-
const U =
|
|
2580
|
+
function h(m, C) {
|
|
2581
|
+
const U = m.permissionActionsMap.get(C);
|
|
2582
2582
|
return U ? U.some((V) => V !== "manage") : !1;
|
|
2583
2583
|
}
|
|
2584
|
-
function S(
|
|
2585
|
-
const V =
|
|
2584
|
+
function S(m, C, U) {
|
|
2585
|
+
const V = m.selectedActionsMap.get(C);
|
|
2586
2586
|
return V ? V.has(U) : !1;
|
|
2587
2587
|
}
|
|
2588
|
-
function c(
|
|
2589
|
-
return !
|
|
2588
|
+
function c(m, C) {
|
|
2589
|
+
return !m.coverSubject || C === m.coverSubject ? !1 : m.coverCoversAll;
|
|
2590
2590
|
}
|
|
2591
|
-
function b(
|
|
2592
|
-
return !
|
|
2591
|
+
function b(m, C, U) {
|
|
2592
|
+
return !m.coverSubject || C === m.coverSubject ? !1 : m.coverCoversAll ? !0 : m.coverSelectedActions.has(U);
|
|
2593
2593
|
}
|
|
2594
|
-
function y(
|
|
2595
|
-
const V =
|
|
2594
|
+
function y(m, C, U) {
|
|
2595
|
+
const V = m.permissionActionsMap.get(C);
|
|
2596
2596
|
return V ? V.includes(U) : !1;
|
|
2597
2597
|
}
|
|
2598
|
-
function v(
|
|
2599
|
-
const V = [...e.value], j = V.findIndex((
|
|
2598
|
+
function v(m, C, U) {
|
|
2599
|
+
const V = [...e.value], j = V.findIndex((G) => G.subject === m && !G.inverted);
|
|
2600
2600
|
if (U)
|
|
2601
2601
|
if (j >= 0) {
|
|
2602
|
-
const
|
|
2603
|
-
|
|
2602
|
+
const G = { ...V[j] }, X = new Set(G.actions);
|
|
2603
|
+
X.add(C), G.actions = Array.from(X), V[j] = G;
|
|
2604
2604
|
} else {
|
|
2605
|
-
const
|
|
2606
|
-
if (!
|
|
2605
|
+
const G = t.value.find((se) => se.subject === m);
|
|
2606
|
+
if (!G) return;
|
|
2607
2607
|
const {
|
|
2608
|
-
category:
|
|
2609
|
-
showByFeatureFlag:
|
|
2608
|
+
category: X,
|
|
2609
|
+
showByFeatureFlag: Y,
|
|
2610
2610
|
isCategoryCover: ne,
|
|
2611
2611
|
...Q
|
|
2612
|
-
} =
|
|
2613
|
-
(se) => se.options.some((fe) => fe.value ===
|
|
2614
|
-
), ce = _e ? D(_e,
|
|
2612
|
+
} = G, _e = u.value.find(
|
|
2613
|
+
(se) => se.options.some((fe) => fe.value === m)
|
|
2614
|
+
), ce = _e ? D(_e, m) : void 0;
|
|
2615
2615
|
V.push({
|
|
2616
2616
|
...Q,
|
|
2617
2617
|
actions: [C],
|
|
@@ -2619,77 +2619,77 @@ function jo(e, t, n, r) {
|
|
|
2619
2619
|
});
|
|
2620
2620
|
}
|
|
2621
2621
|
else if (j >= 0) {
|
|
2622
|
-
const
|
|
2623
|
-
|
|
2622
|
+
const G = { ...V[j] }, X = G.actions.filter((Y) => Y !== C);
|
|
2623
|
+
X.length === 0 ? V.splice(j, 1) : (G.actions = X, V[j] = G);
|
|
2624
2624
|
}
|
|
2625
|
-
const
|
|
2626
|
-
|
|
2625
|
+
const W = t.value.find((G) => G.subject === m);
|
|
2626
|
+
W && Mn(V, m, W.actions), r("update:model-value", V);
|
|
2627
2627
|
}
|
|
2628
|
-
function R(
|
|
2629
|
-
const U =
|
|
2630
|
-
(V) => y(
|
|
2628
|
+
function R(m, C) {
|
|
2629
|
+
const U = m.options.filter(
|
|
2630
|
+
(V) => y(m, V.value, C)
|
|
2631
2631
|
);
|
|
2632
2632
|
return U.length === 0 ? !1 : U.every(
|
|
2633
|
-
(V) => S(
|
|
2633
|
+
(V) => S(m, V.value, C) || b(m, V.value, C)
|
|
2634
2634
|
);
|
|
2635
2635
|
}
|
|
2636
|
-
function
|
|
2637
|
-
const U =
|
|
2638
|
-
(j) => y(
|
|
2636
|
+
function L(m, C) {
|
|
2637
|
+
const U = m.options.filter(
|
|
2638
|
+
(j) => y(m, j.value, C)
|
|
2639
2639
|
);
|
|
2640
2640
|
if (U.length === 0) return !1;
|
|
2641
2641
|
const V = U.filter(
|
|
2642
|
-
(j) => S(
|
|
2642
|
+
(j) => S(m, j.value, C) || b(m, j.value, C)
|
|
2643
2643
|
).length;
|
|
2644
2644
|
return V > 0 && V < U.length;
|
|
2645
2645
|
}
|
|
2646
|
-
function B(
|
|
2646
|
+
function B(m, C, U) {
|
|
2647
2647
|
const V = [...e.value];
|
|
2648
|
-
for (const j of
|
|
2649
|
-
if (!y(
|
|
2650
|
-
const
|
|
2651
|
-
(
|
|
2648
|
+
for (const j of m.options) {
|
|
2649
|
+
if (!y(m, j.value, C)) continue;
|
|
2650
|
+
const W = j.value, G = V.findIndex(
|
|
2651
|
+
(Y) => Y.subject === W && !Y.inverted
|
|
2652
2652
|
);
|
|
2653
2653
|
if (U)
|
|
2654
|
-
if (
|
|
2655
|
-
const
|
|
2656
|
-
ne.add(C),
|
|
2654
|
+
if (G >= 0) {
|
|
2655
|
+
const Y = { ...V[G] }, ne = new Set(Y.actions);
|
|
2656
|
+
ne.add(C), Y.actions = Array.from(ne), V[G] = Y;
|
|
2657
2657
|
} else {
|
|
2658
|
-
const
|
|
2659
|
-
if (!
|
|
2658
|
+
const Y = t.value.find((fe) => fe.subject === W);
|
|
2659
|
+
if (!Y) continue;
|
|
2660
2660
|
const {
|
|
2661
2661
|
category: ne,
|
|
2662
2662
|
showByFeatureFlag: Q,
|
|
2663
2663
|
isCategoryCover: _e,
|
|
2664
2664
|
...ce
|
|
2665
|
-
} =
|
|
2665
|
+
} = Y, se = D(m, W);
|
|
2666
2666
|
V.push({
|
|
2667
2667
|
...ce,
|
|
2668
2668
|
actions: [C],
|
|
2669
2669
|
...se !== void 0 && { conditions: se }
|
|
2670
2670
|
});
|
|
2671
2671
|
}
|
|
2672
|
-
else if (
|
|
2673
|
-
const
|
|
2674
|
-
ne.length === 0 ? V.splice(
|
|
2672
|
+
else if (G >= 0) {
|
|
2673
|
+
const Y = { ...V[G] }, ne = Y.actions.filter((Q) => Q !== C);
|
|
2674
|
+
ne.length === 0 ? V.splice(G, 1) : (Y.actions = ne, V[G] = Y);
|
|
2675
2675
|
}
|
|
2676
|
-
const
|
|
2677
|
-
|
|
2676
|
+
const X = t.value.find((Y) => Y.subject === W);
|
|
2677
|
+
X && Mn(V, W, X.actions);
|
|
2678
2678
|
}
|
|
2679
2679
|
r("update:model-value", V);
|
|
2680
2680
|
}
|
|
2681
|
-
function x(
|
|
2682
|
-
const C = `permissionSet.actionLabels.${
|
|
2681
|
+
function x(m) {
|
|
2682
|
+
const C = `permissionSet.actionLabels.${m}`, U = Po[m] ?? m.charAt(0).toUpperCase() + m.slice(1);
|
|
2683
2683
|
return l(C, U);
|
|
2684
2684
|
}
|
|
2685
2685
|
return {
|
|
2686
2686
|
categoryGroups: u,
|
|
2687
2687
|
toggleCategory: i,
|
|
2688
2688
|
isAllManageChecked: E,
|
|
2689
|
-
isAllManageIndeterminate:
|
|
2689
|
+
isAllManageIndeterminate: O,
|
|
2690
2690
|
toggleAllManage: N,
|
|
2691
2691
|
isManageChecked: F,
|
|
2692
|
-
isManageIndeterminate:
|
|
2692
|
+
isManageIndeterminate: k,
|
|
2693
2693
|
toggleManage: f,
|
|
2694
2694
|
hasNonManageActions: h,
|
|
2695
2695
|
isActionChecked: S,
|
|
@@ -2698,12 +2698,12 @@ function jo(e, t, n, r) {
|
|
|
2698
2698
|
permissionDefinesAction: y,
|
|
2699
2699
|
toggleAction: v,
|
|
2700
2700
|
isAllActionChecked: R,
|
|
2701
|
-
isAllActionIndeterminate:
|
|
2701
|
+
isAllActionIndeterminate: L,
|
|
2702
2702
|
toggleAllAction: B,
|
|
2703
2703
|
actionLabel: x
|
|
2704
2704
|
};
|
|
2705
2705
|
}
|
|
2706
|
-
const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm-600" }, xo = { class: "mt-16" },
|
|
2706
|
+
const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm-600" }, xo = { class: "mt-16" }, Go = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Wo = ["onClick"], Zo = { class: "flex justify-center" }, Xo = { class: "flex items-center min-w-0 gap-8" }, Yo = ["title", "onClick"], Bo = { class: "flex justify-center" }, Ho = /* @__PURE__ */ ke({
|
|
2707
2707
|
__name: "BasePermission",
|
|
2708
2708
|
props: {
|
|
2709
2709
|
modelValue: {
|
|
@@ -2725,17 +2725,17 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2725
2725
|
},
|
|
2726
2726
|
emits: ["update:model-value"],
|
|
2727
2727
|
setup(e, { emit: t }) {
|
|
2728
|
-
const n = e, r = t, { t: l } = He(), a = z(() => [...
|
|
2729
|
-
categoryGroups:
|
|
2728
|
+
const n = e, r = t, { t: l } = He(), a = z(() => [...Wn, ...n.additionalPermissions]), {
|
|
2729
|
+
categoryGroups: d,
|
|
2730
2730
|
isAllManageChecked: u,
|
|
2731
2731
|
isAllManageIndeterminate: i,
|
|
2732
2732
|
toggleAllManage: g,
|
|
2733
2733
|
isManageChecked: E,
|
|
2734
|
-
isManageIndeterminate:
|
|
2734
|
+
isManageIndeterminate: O,
|
|
2735
2735
|
toggleManage: N,
|
|
2736
2736
|
isActionChecked: F,
|
|
2737
2737
|
isRowFullyCoveredByCover: w,
|
|
2738
|
-
isActionCoveredByCover:
|
|
2738
|
+
isActionCoveredByCover: k,
|
|
2739
2739
|
permissionDefinesAction: D,
|
|
2740
2740
|
toggleAction: f,
|
|
2741
2741
|
isAllActionChecked: h,
|
|
@@ -2746,28 +2746,28 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2746
2746
|
en(n, "modelValue"),
|
|
2747
2747
|
a,
|
|
2748
2748
|
en(n, "excludedSubjects"),
|
|
2749
|
-
(R,
|
|
2749
|
+
(R, L) => r("update:model-value", L)
|
|
2750
2750
|
);
|
|
2751
2751
|
function y(R) {
|
|
2752
|
-
const
|
|
2753
|
-
return
|
|
2752
|
+
const L = R.selectedSubjects.length;
|
|
2753
|
+
return L === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: L });
|
|
2754
2754
|
}
|
|
2755
|
-
function v(R,
|
|
2756
|
-
return E(R,
|
|
2757
|
-
(B) => D(R,
|
|
2755
|
+
function v(R, L) {
|
|
2756
|
+
return E(R, L) || w(R, L) ? !0 : R.actionColumns.some(
|
|
2757
|
+
(B) => D(R, L, B) && (F(R, L, B) || k(R, L, B))
|
|
2758
2758
|
);
|
|
2759
2759
|
}
|
|
2760
|
-
return (R,
|
|
2760
|
+
return (R, L) => {
|
|
2761
2761
|
const B = we("FmCheckbox");
|
|
2762
2762
|
return J(), ie("div", Uo, [
|
|
2763
|
-
(J(!0), ie(Re, null, Ie(H(
|
|
2763
|
+
(J(!0), ie(Re, null, Ie(H(d), (x) => (J(), Ne(Bt, {
|
|
2764
2764
|
key: x.category,
|
|
2765
2765
|
subtitle: y(x)
|
|
2766
2766
|
}, {
|
|
2767
|
-
title:
|
|
2768
|
-
ae("p", Vo,
|
|
2767
|
+
title: de(() => [
|
|
2768
|
+
ae("p", Vo, Te(x.label), 1)
|
|
2769
2769
|
]),
|
|
2770
|
-
default:
|
|
2770
|
+
default: de(() => [
|
|
2771
2771
|
ae("div", xo, [
|
|
2772
2772
|
ae("div", {
|
|
2773
2773
|
class: "grid items-center px-12 py-8",
|
|
@@ -2775,12 +2775,12 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2775
2775
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2776
2776
|
})
|
|
2777
2777
|
}, [
|
|
2778
|
-
|
|
2779
|
-
ae("div",
|
|
2780
|
-
(J(!0), ie(Re, null, Ie(x.actionColumns, (
|
|
2781
|
-
key: `header-${
|
|
2778
|
+
L[0] || (L[0] = ae("div", null, null, -1)),
|
|
2779
|
+
ae("div", Go, Te(H(l)("team.memberForm.permissions.columnManage")), 1),
|
|
2780
|
+
(J(!0), ie(Re, null, Ie(x.actionColumns, (m) => (J(), ie("div", {
|
|
2781
|
+
key: `header-${m}`,
|
|
2782
2782
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2783
|
-
},
|
|
2783
|
+
}, Te(H(b)(m)), 1))), 128))
|
|
2784
2784
|
], 4),
|
|
2785
2785
|
ae("div", {
|
|
2786
2786
|
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
@@ -2790,8 +2790,8 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2790
2790
|
}, [
|
|
2791
2791
|
ae("div", {
|
|
2792
2792
|
class: "cursor-pointer font-semibold",
|
|
2793
|
-
onClick: (
|
|
2794
|
-
},
|
|
2793
|
+
onClick: (m) => !e.disable && H(g)(x)
|
|
2794
|
+
}, Te(H(l)("team.labels.all")), 9, Wo),
|
|
2795
2795
|
ae("div", Zo, [
|
|
2796
2796
|
ue(B, {
|
|
2797
2797
|
"model-value": H(u)(x),
|
|
@@ -2800,70 +2800,70 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2800
2800
|
disabled: e.disable,
|
|
2801
2801
|
size: "sm",
|
|
2802
2802
|
dense: "",
|
|
2803
|
-
"onUpdate:modelValue": (
|
|
2803
|
+
"onUpdate:modelValue": (m) => H(g)(x)
|
|
2804
2804
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2805
2805
|
]),
|
|
2806
|
-
(J(!0), ie(Re, null, Ie(x.actionColumns, (
|
|
2807
|
-
key: `all-${
|
|
2806
|
+
(J(!0), ie(Re, null, Ie(x.actionColumns, (m) => (J(), ie("div", {
|
|
2807
|
+
key: `all-${m}`,
|
|
2808
2808
|
class: "flex justify-center"
|
|
2809
2809
|
}, [
|
|
2810
2810
|
ue(B, {
|
|
2811
|
-
"model-value": H(h)(x,
|
|
2812
|
-
indeterminate: H(S)(x,
|
|
2813
|
-
value:
|
|
2811
|
+
"model-value": H(h)(x, m),
|
|
2812
|
+
indeterminate: H(S)(x, m),
|
|
2813
|
+
value: m,
|
|
2814
2814
|
disabled: e.disable,
|
|
2815
2815
|
size: "sm",
|
|
2816
2816
|
dense: "",
|
|
2817
|
-
"onUpdate:modelValue": (C) => H(c)(x,
|
|
2817
|
+
"onUpdate:modelValue": (C) => H(c)(x, m, C)
|
|
2818
2818
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2819
2819
|
]))), 128))
|
|
2820
2820
|
], 4),
|
|
2821
|
-
|
|
2822
|
-
(J(!0), ie(Re, null, Ie(x.options, (
|
|
2823
|
-
key:
|
|
2821
|
+
L[1] || (L[1] = ae("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2822
|
+
(J(!0), ie(Re, null, Ie(x.options, (m) => (J(), ie("div", {
|
|
2823
|
+
key: m.optionKey,
|
|
2824
2824
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2825
2825
|
style: nt({
|
|
2826
2826
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2827
2827
|
})
|
|
2828
2828
|
}, [
|
|
2829
|
-
ae("div",
|
|
2829
|
+
ae("div", Xo, [
|
|
2830
2830
|
ae("span", {
|
|
2831
2831
|
class: "block truncate cursor-pointer",
|
|
2832
|
-
title:
|
|
2833
|
-
onClick: (C) => !e.disable && !H(w)(x,
|
|
2834
|
-
},
|
|
2835
|
-
Se(R.$slots, `checkbox-${
|
|
2836
|
-
option:
|
|
2837
|
-
isEffectiveSelected: v(x,
|
|
2838
|
-
isCoveredByCover: H(w)(x,
|
|
2832
|
+
title: m.label,
|
|
2833
|
+
onClick: (C) => !e.disable && !H(w)(x, m.value) && H(N)(x, m.value, !H(E)(x, m.value))
|
|
2834
|
+
}, Te(m.label), 9, Yo),
|
|
2835
|
+
Se(R.$slots, `checkbox-${m.value}-append`, {
|
|
2836
|
+
option: m,
|
|
2837
|
+
isEffectiveSelected: v(x, m.value),
|
|
2838
|
+
isCoveredByCover: H(w)(x, m.value) || x.actionColumns.some((C) => H(k)(x, m.value, C))
|
|
2839
2839
|
}),
|
|
2840
|
-
Se(R.$slots, `checkbox-${
|
|
2841
|
-
option:
|
|
2842
|
-
isEffectiveSelected: v(x,
|
|
2843
|
-
isCoveredByCover: H(w)(x,
|
|
2840
|
+
Se(R.$slots, `checkbox-${m.value}-icon`, {
|
|
2841
|
+
option: m,
|
|
2842
|
+
isEffectiveSelected: v(x, m.value),
|
|
2843
|
+
isCoveredByCover: H(w)(x, m.value) || x.actionColumns.some((C) => H(k)(x, m.value, C))
|
|
2844
2844
|
})
|
|
2845
2845
|
]),
|
|
2846
2846
|
ae("div", Bo, [
|
|
2847
2847
|
ue(B, {
|
|
2848
|
-
"model-value": H(E)(x,
|
|
2849
|
-
value:
|
|
2850
|
-
disabled: e.disable || H(w)(x,
|
|
2851
|
-
indeterminate: H(
|
|
2848
|
+
"model-value": H(E)(x, m.value) || H(w)(x, m.value),
|
|
2849
|
+
value: m.value,
|
|
2850
|
+
disabled: e.disable || H(w)(x, m.value),
|
|
2851
|
+
indeterminate: H(O)(x, m.value),
|
|
2852
2852
|
size: "sm",
|
|
2853
|
-
"onUpdate:modelValue": (C) => H(N)(x,
|
|
2853
|
+
"onUpdate:modelValue": (C) => H(N)(x, m.value, C)
|
|
2854
2854
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2855
2855
|
]),
|
|
2856
2856
|
(J(!0), ie(Re, null, Ie(x.actionColumns, (C) => (J(), ie("div", {
|
|
2857
|
-
key: `${
|
|
2857
|
+
key: `${m.optionKey}-${C}`,
|
|
2858
2858
|
class: "flex justify-center"
|
|
2859
2859
|
}, [
|
|
2860
|
-
H(D)(x,
|
|
2860
|
+
H(D)(x, m.value, C) ? (J(), Ne(B, {
|
|
2861
2861
|
key: 0,
|
|
2862
|
-
"model-value": H(F)(x,
|
|
2862
|
+
"model-value": H(F)(x, m.value, C) || H(k)(x, m.value, C),
|
|
2863
2863
|
value: C,
|
|
2864
|
-
disabled: e.disable || H(
|
|
2864
|
+
disabled: e.disable || H(k)(x, m.value, C),
|
|
2865
2865
|
size: "sm",
|
|
2866
|
-
"onUpdate:modelValue": (U) => H(f)(
|
|
2866
|
+
"onUpdate:modelValue": (U) => H(f)(m.value, C, U)
|
|
2867
2867
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Me("", !0)
|
|
2868
2868
|
]))), 128))
|
|
2869
2869
|
], 4))), 128))
|
|
@@ -2880,7 +2880,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2880
2880
|
}, Ko = {
|
|
2881
2881
|
key: 0,
|
|
2882
2882
|
class: "q-mr-xs text-red col"
|
|
2883
|
-
}, zo = { class: "form-input" }, Qo = /* @__PURE__ */
|
|
2883
|
+
}, zo = { class: "form-input" }, Qo = /* @__PURE__ */ ke({
|
|
2884
2884
|
__name: "AppForm",
|
|
2885
2885
|
props: {
|
|
2886
2886
|
title: {
|
|
@@ -2903,7 +2903,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2903
2903
|
t.title ? (J(), ie("div", Jo, [
|
|
2904
2904
|
ae("div", null, [
|
|
2905
2905
|
t.required ? (J(), ie("span", Ko, "*")) : Me("", !0),
|
|
2906
|
-
_r(
|
|
2906
|
+
_r(Te(t.title), 1)
|
|
2907
2907
|
]),
|
|
2908
2908
|
Se(n.$slots, "title-right")
|
|
2909
2909
|
])) : Me("", !0)
|
|
@@ -2916,7 +2916,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2916
2916
|
}), qo = { class: "col flex items-center" }, ea = {
|
|
2917
2917
|
key: 1,
|
|
2918
2918
|
class: "q-pa-sm form-error-message text-error"
|
|
2919
|
-
}, ir = /* @__PURE__ */
|
|
2919
|
+
}, ir = /* @__PURE__ */ ke({
|
|
2920
2920
|
__name: "CheckboxInput",
|
|
2921
2921
|
props: {
|
|
2922
2922
|
options: {
|
|
@@ -2974,44 +2974,44 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2974
2974
|
},
|
|
2975
2975
|
emits: ["update:model-value"],
|
|
2976
2976
|
setup(e, { emit: t }) {
|
|
2977
|
-
const n = e, r = t, { t: l } = He(), a = rt(!1),
|
|
2978
|
-
() => n.modelValue.filter((
|
|
2979
|
-
),
|
|
2977
|
+
const n = e, r = t, { t: l } = He(), a = rt(!1), d = vr(), u = z(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), i = `checkbox-${kr(6)}`, g = z(() => u.value !== !0), E = z(
|
|
2978
|
+
() => n.modelValue.filter((k) => n.options.some((D) => D.value === k))
|
|
2979
|
+
), O = z(
|
|
2980
2980
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2981
2981
|
), N = z(() => n.options.length > 0 && n.options.length === E.value.length);
|
|
2982
2982
|
function F() {
|
|
2983
|
-
const
|
|
2983
|
+
const k = n.modelValue.filter((D) => !E.value.includes(D));
|
|
2984
2984
|
if (N.value === !0)
|
|
2985
|
-
r("update:model-value",
|
|
2985
|
+
r("update:model-value", k);
|
|
2986
2986
|
else {
|
|
2987
2987
|
const D = n.includeDisabledOptionsWhenSelectAll ? n.options.map((f) => f.value) : n.options.filter((f) => !f.disabled).map((f) => f.value);
|
|
2988
|
-
r("update:model-value", [...
|
|
2988
|
+
r("update:model-value", [...k, ...D]);
|
|
2989
2989
|
}
|
|
2990
2990
|
}
|
|
2991
|
-
function w(
|
|
2991
|
+
function w(k, D) {
|
|
2992
2992
|
let f = yt(n.modelValue);
|
|
2993
|
-
D ? f.every((h) => h !==
|
|
2993
|
+
D ? f.every((h) => h !== k) && f.push(k) : f = f.filter((h) => h !== k), r("update:model-value", f);
|
|
2994
2994
|
}
|
|
2995
|
-
return (
|
|
2995
|
+
return (k, D) => {
|
|
2996
2996
|
const f = we("FmCheckbox");
|
|
2997
2997
|
return J(), Ne(Qo, {
|
|
2998
2998
|
id: i,
|
|
2999
2999
|
title: e.title,
|
|
3000
3000
|
required: !1
|
|
3001
3001
|
}, {
|
|
3002
|
-
top:
|
|
3003
|
-
Se(
|
|
3002
|
+
top: de(() => [
|
|
3003
|
+
Se(k.$slots, "top")
|
|
3004
3004
|
]),
|
|
3005
|
-
default:
|
|
3005
|
+
default: de(() => [
|
|
3006
3006
|
n.showAllToggle ? (J(), Ne(f, {
|
|
3007
3007
|
key: 0,
|
|
3008
3008
|
"model-value": N.value,
|
|
3009
3009
|
disabled: e.disable,
|
|
3010
|
-
label:
|
|
3010
|
+
label: O.value,
|
|
3011
3011
|
style: nt(`margin-bottom: ${n.gutter}px`),
|
|
3012
3012
|
size: "sm",
|
|
3013
3013
|
dense: "",
|
|
3014
|
-
value:
|
|
3014
|
+
value: O.value,
|
|
3015
3015
|
"onUpdate:modelValue": F
|
|
3016
3016
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Me("", !0),
|
|
3017
3017
|
(J(!0), ie(Re, null, Ie(e.options, (h, S) => (J(), ie("div", {
|
|
@@ -3031,41 +3031,41 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3031
3031
|
value: h.label,
|
|
3032
3032
|
"onUpdate:modelValue": (c) => w(h.value, c)
|
|
3033
3033
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
3034
|
-
Se(
|
|
3034
|
+
Se(k.$slots, `checkbox-${h.key || h.value}-append`, {
|
|
3035
3035
|
option: h,
|
|
3036
3036
|
selected: e.modelValue.includes(h.value)
|
|
3037
3037
|
})
|
|
3038
3038
|
]),
|
|
3039
|
-
H(
|
|
3039
|
+
H(d)[`checkbox-${h.key || h.value}-end`] && (e.modelValue.includes(h.value) || e.falsyShowSlot) ? (J(), ie("div", {
|
|
3040
3040
|
key: 0,
|
|
3041
3041
|
class: qe([{ "q-checkbox disabled": e.disable || h.disabled }, "col"])
|
|
3042
3042
|
}, [
|
|
3043
|
-
Se(
|
|
3043
|
+
Se(k.$slots, `checkbox-${h.key || h.value}-end`, {
|
|
3044
3044
|
option: h,
|
|
3045
3045
|
value: e.modelValue.includes(h.value),
|
|
3046
3046
|
disable: e.disable || h.disabled
|
|
3047
3047
|
})
|
|
3048
3048
|
], 2)) : Me("", !0)
|
|
3049
3049
|
], 2),
|
|
3050
|
-
H(
|
|
3050
|
+
H(d)[`checkbox-${h.key || h.value}-bottom`] && (e.modelValue.includes(h.value) || e.falsyShowSlot) ? (J(), ie("div", {
|
|
3051
3051
|
key: 0,
|
|
3052
3052
|
class: qe(["q-mt-sm", { "q-checkbox disabled": e.disable || h.disabled }]),
|
|
3053
3053
|
style: nt(`margin-left: ${e.bottomSlotIndent}`)
|
|
3054
3054
|
}, [
|
|
3055
|
-
Se(
|
|
3055
|
+
Se(k.$slots, `checkbox-${h.key || h.value}-bottom`, {
|
|
3056
3056
|
option: h,
|
|
3057
3057
|
disable: e.disable || h.disabled,
|
|
3058
3058
|
value: e.modelValue.includes(h.value)
|
|
3059
3059
|
})
|
|
3060
3060
|
], 6)) : Me("", !0)
|
|
3061
3061
|
], 6))), 128)),
|
|
3062
|
-
a.value && g.value ? (J(), ie("div", ea,
|
|
3062
|
+
a.value && g.value ? (J(), ie("div", ea, Te(u.value), 1)) : Me("", !0)
|
|
3063
3063
|
]),
|
|
3064
3064
|
_: 3
|
|
3065
3065
|
}, 8, ["title"]);
|
|
3066
3066
|
};
|
|
3067
3067
|
}
|
|
3068
|
-
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture", Dn = /* @__PURE__ */
|
|
3068
|
+
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture", Dn = /* @__PURE__ */ ke({
|
|
3069
3069
|
__name: "ConditionPermission",
|
|
3070
3070
|
props: {
|
|
3071
3071
|
modelValue: {
|
|
@@ -3097,31 +3097,31 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3097
3097
|
...n.options.filter(
|
|
3098
3098
|
(E) => E.label.toLocaleLowerCase().includes(g.value.toLocaleLowerCase())
|
|
3099
3099
|
)
|
|
3100
|
-
]),
|
|
3101
|
-
const E =
|
|
3100
|
+
]), d = z(() => n.modelValue ? n.modelValue : [ht, ...n.options.map((E) => E.value)]), u = z(() => {
|
|
3101
|
+
const E = d.value.filter((O) => O !== ht).length;
|
|
3102
3102
|
return E === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: E });
|
|
3103
3103
|
});
|
|
3104
3104
|
function i(E) {
|
|
3105
|
-
const
|
|
3106
|
-
r("update:model-value",
|
|
3105
|
+
const O = E.length === a.value.length;
|
|
3106
|
+
r("update:model-value", O ? null : E.filter((N) => N !== ht));
|
|
3107
3107
|
}
|
|
3108
3108
|
const g = rt("");
|
|
3109
|
-
return (E,
|
|
3109
|
+
return (E, O) => {
|
|
3110
3110
|
const N = we("fm-search");
|
|
3111
3111
|
return J(), Ne(Bt, { subtitle: u.value }, {
|
|
3112
|
-
title:
|
|
3113
|
-
ae("p", ta,
|
|
3112
|
+
title: de(() => [
|
|
3113
|
+
ae("p", ta, Te(H(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3114
3114
|
]),
|
|
3115
|
-
default:
|
|
3115
|
+
default: de(() => [
|
|
3116
3116
|
e.options.length > 1 ? (J(), Ne(N, {
|
|
3117
3117
|
key: 0,
|
|
3118
3118
|
modelValue: g.value,
|
|
3119
|
-
"onUpdate:modelValue":
|
|
3119
|
+
"onUpdate:modelValue": O[0] || (O[0] = (F) => g.value = F),
|
|
3120
3120
|
class: "mt-16",
|
|
3121
3121
|
placeholder: H(l)("team.memberForm.permissions.search", { context: e.context })
|
|
3122
3122
|
}, null, 8, ["modelValue", "placeholder"])) : Me("", !0),
|
|
3123
3123
|
ue(ir, {
|
|
3124
|
-
"model-value":
|
|
3124
|
+
"model-value": d.value,
|
|
3125
3125
|
options: a.value,
|
|
3126
3126
|
"show-intermediate": !1,
|
|
3127
3127
|
"show-all-toggle": !0,
|
|
@@ -3133,7 +3133,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3133
3133
|
}, et({ _: 2 }, [
|
|
3134
3134
|
Ie(a.value, (F) => ({
|
|
3135
3135
|
name: `checkbox-${F.value}-append`,
|
|
3136
|
-
fn:
|
|
3136
|
+
fn: de(({ option: w }) => [
|
|
3137
3137
|
Se(E.$slots, `checkbox-${F.value}-append`, { option: w })
|
|
3138
3138
|
])
|
|
3139
3139
|
}))
|
|
@@ -3143,7 +3143,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3143
3143
|
}, 8, ["subtitle"]);
|
|
3144
3144
|
};
|
|
3145
3145
|
}
|
|
3146
|
-
}), na = { class: "fm-typo-en-title-sm-600" }, bt = "includedNewRole", ra = /* @__PURE__ */
|
|
3146
|
+
}), na = { class: "fm-typo-en-title-sm-600" }, bt = "includedNewRole", ra = /* @__PURE__ */ ke({
|
|
3147
3147
|
__name: "PosRolePermission",
|
|
3148
3148
|
props: {
|
|
3149
3149
|
modelValue: {
|
|
@@ -3176,24 +3176,24 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3176
3176
|
...n.roles.map((E) => ({
|
|
3177
3177
|
label: E.name,
|
|
3178
3178
|
value: E._id,
|
|
3179
|
-
disabled: !!g && E.restaurants.every(({ id:
|
|
3179
|
+
disabled: !!g && E.restaurants.every(({ id: O }) => !g.includes(O))
|
|
3180
3180
|
}))
|
|
3181
3181
|
];
|
|
3182
|
-
}),
|
|
3183
|
-
const g =
|
|
3182
|
+
}), d = z(() => n.modelValue ? n.modelValue : [bt, ...n.roles.map((g) => g._id)]), u = z(() => {
|
|
3183
|
+
const g = d.value.filter((E) => E !== bt).length;
|
|
3184
3184
|
return g === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: g });
|
|
3185
3185
|
});
|
|
3186
3186
|
function i(g) {
|
|
3187
3187
|
const E = g.length === a.value.length;
|
|
3188
|
-
r("update:model-value", E ? null : g.filter((
|
|
3188
|
+
r("update:model-value", E ? null : g.filter((O) => O !== bt));
|
|
3189
3189
|
}
|
|
3190
3190
|
return (g, E) => (J(), Ne(Bt, { subtitle: u.value }, {
|
|
3191
|
-
title:
|
|
3192
|
-
ae("p", na,
|
|
3191
|
+
title: de(() => [
|
|
3192
|
+
ae("p", na, Te(H(l)("team.memberForm.permissions.roles")), 1)
|
|
3193
3193
|
]),
|
|
3194
|
-
default:
|
|
3194
|
+
default: de(() => [
|
|
3195
3195
|
ue(ir, {
|
|
3196
|
-
"model-value":
|
|
3196
|
+
"model-value": d.value,
|
|
3197
3197
|
options: a.value,
|
|
3198
3198
|
"show-intermediate": !1,
|
|
3199
3199
|
"show-all-toggle": !1,
|
|
@@ -3202,10 +3202,10 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3202
3202
|
class: "mt-16",
|
|
3203
3203
|
"onUpdate:modelValue": i
|
|
3204
3204
|
}, et({ _: 2 }, [
|
|
3205
|
-
Ie(a.value, (
|
|
3206
|
-
name: `checkbox-${
|
|
3207
|
-
fn:
|
|
3208
|
-
Se(g.$slots, `checkbox-${
|
|
3205
|
+
Ie(a.value, (O) => ({
|
|
3206
|
+
name: `checkbox-${O.value}-append`,
|
|
3207
|
+
fn: de(({ option: N }) => [
|
|
3208
|
+
Se(g.$slots, `checkbox-${O.value}-append`, { option: N })
|
|
3209
3209
|
])
|
|
3210
3210
|
}))
|
|
3211
3211
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3223,7 +3223,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3223
3223
|
}, aa = {
|
|
3224
3224
|
key: 0,
|
|
3225
3225
|
class: "ml-32"
|
|
3226
|
-
}, Fn = /* @__PURE__ */
|
|
3226
|
+
}, Fn = /* @__PURE__ */ ke({
|
|
3227
3227
|
__name: "PortalConditionForm",
|
|
3228
3228
|
props: {
|
|
3229
3229
|
entry: {},
|
|
@@ -3242,7 +3242,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3242
3242
|
setup(e, { emit: t }) {
|
|
3243
3243
|
const n = t, { t: r } = He();
|
|
3244
3244
|
return (l, a) => {
|
|
3245
|
-
const
|
|
3245
|
+
const d = we("FmRadio"), u = we("FmRadioGroup");
|
|
3246
3246
|
return J(), Ne(Cr, {
|
|
3247
3247
|
title: e.title,
|
|
3248
3248
|
builders: e.builders,
|
|
@@ -3253,27 +3253,27 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3253
3253
|
onUpdateForm: a[0] || (a[0] = (i) => n("update-form", i)),
|
|
3254
3254
|
onApply: a[1] || (a[1] = (i) => n("apply"))
|
|
3255
3255
|
}, {
|
|
3256
|
-
section:
|
|
3256
|
+
section: de(({ builder: i }) => [
|
|
3257
3257
|
e.coverOverride.shouldShowInheritToggle(e.entry, i) ? (J(), ie("div", sa, [
|
|
3258
3258
|
ue(u, {
|
|
3259
3259
|
"model-value": e.inheritModeFor(i),
|
|
3260
3260
|
disabled: e.disable,
|
|
3261
3261
|
"onUpdate:modelValue": (g) => n("update-inherit-mode", { builder: i, mode: g })
|
|
3262
3262
|
}, {
|
|
3263
|
-
default:
|
|
3263
|
+
default: de(() => [
|
|
3264
3264
|
ae("div", null, [
|
|
3265
|
-
ue(
|
|
3265
|
+
ue(d, {
|
|
3266
3266
|
value: "inherit",
|
|
3267
3267
|
label: H(r)("team.memberForm.permissions.conditionCover.inherit", {
|
|
3268
3268
|
cover: e.coverOverride.coverLabel(e.subject)
|
|
3269
3269
|
})
|
|
3270
3270
|
}, null, 8, ["label"]),
|
|
3271
|
-
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? (J(), ie("p", oa, " (" +
|
|
3271
|
+
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? (J(), ie("p", oa, " (" + Te(H(r)(
|
|
3272
3272
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).labelKey,
|
|
3273
3273
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).params ?? {}
|
|
3274
3274
|
)) + ") ", 1)) : Me("", !0)
|
|
3275
3275
|
]),
|
|
3276
|
-
ue(
|
|
3276
|
+
ue(d, {
|
|
3277
3277
|
value: "custom",
|
|
3278
3278
|
label: H(r)("team.memberForm.permissions.conditionCover.custom")
|
|
3279
3279
|
}, null, 8, ["label"])
|
|
@@ -3306,7 +3306,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3306
3306
|
}
|
|
3307
3307
|
};
|
|
3308
3308
|
function Pn(e, t) {
|
|
3309
|
-
return Zn(e,
|
|
3309
|
+
return Zn(e, Xn).some(
|
|
3310
3310
|
(n) => n.subject === t && !n.inverted && n.actions.includes("manage")
|
|
3311
3311
|
);
|
|
3312
3312
|
}
|
|
@@ -3314,9 +3314,9 @@ function jn(e, t) {
|
|
|
3314
3314
|
return e.some((n) => n.subject === t && n.inverted) ? e : [...e, { subject: t, actions: ["manage"], inverted: !0 }];
|
|
3315
3315
|
}
|
|
3316
3316
|
function Un(e, t, n) {
|
|
3317
|
-
const { category: r, showByFeatureFlag: l, isCategoryCover: a, ...
|
|
3317
|
+
const { category: r, showByFeatureFlag: l, isCategoryCover: a, ...d } = e;
|
|
3318
3318
|
return {
|
|
3319
|
-
...
|
|
3319
|
+
...d,
|
|
3320
3320
|
actions: t,
|
|
3321
3321
|
...n !== void 0 && { conditions: n }
|
|
3322
3322
|
};
|
|
@@ -3326,28 +3326,28 @@ function ia(e, t, n, r) {
|
|
|
3326
3326
|
e.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3327
3327
|
), a = new Set(
|
|
3328
3328
|
t.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3329
|
-
),
|
|
3329
|
+
), d = new Set(
|
|
3330
3330
|
n.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3331
3331
|
);
|
|
3332
3332
|
let u = [...n];
|
|
3333
3333
|
for (const i of l)
|
|
3334
|
-
a.has(i) || (
|
|
3334
|
+
a.has(i) || (d.has(i) && (u = u.filter((E) => E.subject !== i)), (!d.has(i) || Pn(u, i)) && (u = jn(u, i)));
|
|
3335
3335
|
for (const i of a)
|
|
3336
3336
|
if (!l.has(i)) {
|
|
3337
3337
|
const g = u.some((E) => E.subject === i && E.inverted);
|
|
3338
|
-
if (u = u.filter((E) => !(E.subject === i && E.inverted)), !g && !
|
|
3338
|
+
if (u = u.filter((E) => !(E.subject === i && E.inverted)), !g && !d.has(i)) {
|
|
3339
3339
|
const E = t.find(
|
|
3340
3340
|
(N) => N.subject === i && !N.inverted
|
|
3341
|
-
),
|
|
3342
|
-
|
|
3341
|
+
), O = r(i);
|
|
3342
|
+
O && E && u.push(Un(O, E.actions, E.conditions));
|
|
3343
3343
|
}
|
|
3344
3344
|
}
|
|
3345
3345
|
for (const i of a) {
|
|
3346
3346
|
if (!l.has(i)) continue;
|
|
3347
3347
|
const g = e.find((w) => w.subject === i && !w.inverted), E = t.find((w) => w.subject === i && !w.inverted);
|
|
3348
3348
|
if (!g || !E) continue;
|
|
3349
|
-
const
|
|
3350
|
-
if (
|
|
3349
|
+
const O = new Set(g.actions), N = new Set(E.actions);
|
|
3350
|
+
if (O.size === N.size && [...O].every((w) => N.has(w)))
|
|
3351
3351
|
continue;
|
|
3352
3352
|
const F = u.findIndex((w) => w.subject === i && !w.inverted);
|
|
3353
3353
|
if (F >= 0)
|
|
@@ -3359,7 +3359,7 @@ function ia(e, t, n, r) {
|
|
|
3359
3359
|
const w = r(i);
|
|
3360
3360
|
w && u.push(Un(w, Array.from(N)));
|
|
3361
3361
|
}
|
|
3362
|
-
|
|
3362
|
+
O.has("manage") && !N.has("manage") && Pn(u, i) && (u = jn(u, i)), !O.has("manage") && N.has("manage") && (u = u.filter((w) => !(w.subject === i && w.inverted)));
|
|
3363
3363
|
}
|
|
3364
3364
|
return u;
|
|
3365
3365
|
}
|
|
@@ -3382,34 +3382,34 @@ function ua(e) {
|
|
|
3382
3382
|
const t = (e || "").toUpperCase();
|
|
3383
3383
|
return ca[t] ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
3384
3384
|
}
|
|
3385
|
-
function
|
|
3385
|
+
function da(e, t) {
|
|
3386
3386
|
return e != null && e.timezone ? e.timezone : e != null && e.timeZone ? e.timeZone : ua((e == null ? void 0 : e.country) ?? t);
|
|
3387
3387
|
}
|
|
3388
3388
|
function gt(e, t) {
|
|
3389
3389
|
return `${e}::${t.builderKey}`;
|
|
3390
3390
|
}
|
|
3391
|
-
function
|
|
3391
|
+
function Ge(e) {
|
|
3392
3392
|
try {
|
|
3393
3393
|
return e.conditions ? JSON.parse(e.conditions) : void 0;
|
|
3394
3394
|
} catch {
|
|
3395
3395
|
return;
|
|
3396
3396
|
}
|
|
3397
3397
|
}
|
|
3398
|
-
function
|
|
3398
|
+
function ma(e, t) {
|
|
3399
3399
|
return e.find((n) => !n.inverted && n.subject === t);
|
|
3400
3400
|
}
|
|
3401
3401
|
function Mt(e, t) {
|
|
3402
3402
|
const n = new Set(e.actions);
|
|
3403
3403
|
return n.has(he.Action.manage) ? !0 : t.actions.every((r) => n.has(r));
|
|
3404
3404
|
}
|
|
3405
|
-
function
|
|
3406
|
-
const n =
|
|
3405
|
+
function Xt(e, t) {
|
|
3406
|
+
const n = Ge(e);
|
|
3407
3407
|
return Dt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3408
3408
|
}
|
|
3409
3409
|
function Vn(e, t, n) {
|
|
3410
3410
|
return {
|
|
3411
|
-
...
|
|
3412
|
-
...tt(
|
|
3411
|
+
...Xt(e, n),
|
|
3412
|
+
...tt(Ge(t), n)
|
|
3413
3413
|
};
|
|
3414
3414
|
}
|
|
3415
3415
|
function fa(e, t, n) {
|
|
@@ -3420,16 +3420,16 @@ function fa(e, t, n) {
|
|
|
3420
3420
|
function a(c) {
|
|
3421
3421
|
return t.value.find((b) => b.subject === c);
|
|
3422
3422
|
}
|
|
3423
|
-
function
|
|
3423
|
+
function d(c) {
|
|
3424
3424
|
var y;
|
|
3425
3425
|
const b = l(c);
|
|
3426
3426
|
return b ? (y = a(b)) == null ? void 0 : y.label : void 0;
|
|
3427
3427
|
}
|
|
3428
3428
|
function u(c) {
|
|
3429
|
-
return
|
|
3429
|
+
return ma(e.value, c);
|
|
3430
3430
|
}
|
|
3431
3431
|
function i(c, b) {
|
|
3432
|
-
return tt(
|
|
3432
|
+
return tt(Ge(c), b);
|
|
3433
3433
|
}
|
|
3434
3434
|
function g(c, b) {
|
|
3435
3435
|
var R;
|
|
@@ -3444,37 +3444,37 @@ function fa(e, t, n) {
|
|
|
3444
3444
|
if (c.index === null) return "inherit";
|
|
3445
3445
|
const y = e.value[c.index], v = l(c.subject), R = v ? u(v) : void 0;
|
|
3446
3446
|
if (y && R) {
|
|
3447
|
-
const
|
|
3448
|
-
if (JSON.stringify(
|
|
3447
|
+
const L = tt(Ge(y), b), B = i(R, b);
|
|
3448
|
+
if (JSON.stringify(L) === JSON.stringify(B)) return "inherit";
|
|
3449
3449
|
}
|
|
3450
3450
|
return "custom";
|
|
3451
3451
|
}
|
|
3452
|
-
function
|
|
3452
|
+
function O(c, b, y) {
|
|
3453
3453
|
if (!b.summarizeForm) return;
|
|
3454
3454
|
const v = l(c.subject);
|
|
3455
3455
|
if (!v) return;
|
|
3456
3456
|
const R = u(v);
|
|
3457
3457
|
if (!R) return;
|
|
3458
|
-
const
|
|
3459
|
-
return b.summarizeForm(
|
|
3458
|
+
const L = b.fromCondition(i(R, b));
|
|
3459
|
+
return b.summarizeForm(L, { timeZone: y });
|
|
3460
3460
|
}
|
|
3461
3461
|
function N(c, b) {
|
|
3462
3462
|
if (c.index === null) return;
|
|
3463
|
-
const y = [...e.value], v = { ...y[c.index] }, R =
|
|
3464
|
-
if (
|
|
3463
|
+
const y = [...e.value], v = { ...y[c.index] }, R = Xt(v, b), L = Object.keys(R).length === 0, B = l(c.subject), x = B ? u(B) : void 0, m = x ? Mt(x, v) : !1;
|
|
3464
|
+
if (L && m)
|
|
3465
3465
|
y.splice(c.index, 1);
|
|
3466
3466
|
else if (x) {
|
|
3467
3467
|
const C = Vn(v, x, b);
|
|
3468
3468
|
Object.keys(C).length === 0 ? delete v.conditions : v.conditions = JSON.stringify(C), y[c.index] = v;
|
|
3469
3469
|
} else
|
|
3470
|
-
|
|
3470
|
+
L ? delete v.conditions : v.conditions = JSON.stringify(R), y[c.index] = v;
|
|
3471
3471
|
n(y);
|
|
3472
3472
|
}
|
|
3473
3473
|
function F(c, b, y) {
|
|
3474
3474
|
const v = gt(c.subject, b);
|
|
3475
3475
|
if (y === "inherit") {
|
|
3476
|
-
const
|
|
3477
|
-
|
|
3476
|
+
const L = new Set(r.value);
|
|
3477
|
+
L.delete(v), r.value = L, N(c, b);
|
|
3478
3478
|
return;
|
|
3479
3479
|
}
|
|
3480
3480
|
const R = new Set(r.value);
|
|
@@ -3488,84 +3488,84 @@ function fa(e, t, n) {
|
|
|
3488
3488
|
const y = u(b);
|
|
3489
3489
|
return (y == null ? void 0 : y.actions) ?? [];
|
|
3490
3490
|
}
|
|
3491
|
-
function
|
|
3491
|
+
function k(c, b) {
|
|
3492
3492
|
return e.value.filter((y) => {
|
|
3493
3493
|
if (y.inverted) return !1;
|
|
3494
3494
|
const v = y.subject;
|
|
3495
|
-
return v === c || l(v) !== c ? !1 : r.value.has(gt(v, b)) ? !0 : Object.keys(tt(
|
|
3495
|
+
return v === c || l(v) !== c ? !1 : r.value.has(gt(v, b)) ? !0 : Object.keys(tt(Ge(y), b)).length > 0;
|
|
3496
3496
|
});
|
|
3497
3497
|
}
|
|
3498
3498
|
function D(c, b) {
|
|
3499
3499
|
const y = `::${b.builderKey}`, v = new Set(r.value);
|
|
3500
3500
|
for (const R of v) {
|
|
3501
3501
|
if (!R.endsWith(y)) continue;
|
|
3502
|
-
const
|
|
3503
|
-
l(
|
|
3502
|
+
const L = R.slice(0, -y.length);
|
|
3503
|
+
l(L) === c && v.delete(R);
|
|
3504
3504
|
}
|
|
3505
3505
|
r.value = v;
|
|
3506
3506
|
}
|
|
3507
3507
|
function f(c, b, y) {
|
|
3508
3508
|
const v = b.subject;
|
|
3509
|
-
return c.reduce((R,
|
|
3510
|
-
if (
|
|
3511
|
-
return R.push(
|
|
3512
|
-
const B =
|
|
3509
|
+
return c.reduce((R, L) => {
|
|
3510
|
+
if (L.inverted)
|
|
3511
|
+
return R.push(L), R;
|
|
3512
|
+
const B = L.subject;
|
|
3513
3513
|
if (B === v || l(B) !== v)
|
|
3514
|
-
return R.push(
|
|
3515
|
-
if (Mt(b,
|
|
3514
|
+
return R.push(L), R;
|
|
3515
|
+
if (Mt(b, L) && Object.keys(Xt(L, y)).length === 0)
|
|
3516
3516
|
return R;
|
|
3517
|
-
const
|
|
3518
|
-
if (Object.keys(
|
|
3519
|
-
const { conditions: C, ...U } =
|
|
3517
|
+
const m = Vn(L, b, y);
|
|
3518
|
+
if (Object.keys(m).length === 0) {
|
|
3519
|
+
const { conditions: C, ...U } = L;
|
|
3520
3520
|
R.push(U);
|
|
3521
3521
|
} else
|
|
3522
|
-
R.push({ ...
|
|
3522
|
+
R.push({ ...L, conditions: JSON.stringify(m) });
|
|
3523
3523
|
return R;
|
|
3524
3524
|
}, []);
|
|
3525
3525
|
}
|
|
3526
3526
|
function h(c, b, y, v = {}) {
|
|
3527
3527
|
var V;
|
|
3528
3528
|
const R = [...e.value];
|
|
3529
|
-
let
|
|
3529
|
+
let L = c.index;
|
|
3530
3530
|
const B = b.toCondition(y), x = Object.keys(B).length > 0;
|
|
3531
|
-
if (
|
|
3532
|
-
if (
|
|
3533
|
-
const j = R.findIndex((
|
|
3531
|
+
if (L === null && !x && !v.forceCreateRule) return;
|
|
3532
|
+
if (L === null) {
|
|
3533
|
+
const j = R.findIndex((W) => !W.inverted && W.subject === c.subject);
|
|
3534
3534
|
if (j !== -1)
|
|
3535
|
-
|
|
3535
|
+
L = j;
|
|
3536
3536
|
else {
|
|
3537
|
-
const
|
|
3538
|
-
if (!
|
|
3537
|
+
const W = t.value.find((Q) => Q.subject === c.subject);
|
|
3538
|
+
if (!W) return;
|
|
3539
3539
|
const {
|
|
3540
|
-
category:
|
|
3541
|
-
showByFeatureFlag:
|
|
3542
|
-
isCategoryCover:
|
|
3540
|
+
category: G,
|
|
3541
|
+
showByFeatureFlag: X,
|
|
3542
|
+
isCategoryCover: Y,
|
|
3543
3543
|
...ne
|
|
3544
|
-
} =
|
|
3544
|
+
} = W;
|
|
3545
3545
|
R.push({
|
|
3546
3546
|
...ne,
|
|
3547
3547
|
actions: c.actions.length > 0 ? c.actions : ne.actions
|
|
3548
|
-
}),
|
|
3548
|
+
}), L = R.length - 1;
|
|
3549
3549
|
}
|
|
3550
3550
|
}
|
|
3551
|
-
const
|
|
3552
|
-
|
|
3553
|
-
.../* @__PURE__ */ new Set([...
|
|
3551
|
+
const m = { ...R[L] };
|
|
3552
|
+
m.actions = [
|
|
3553
|
+
.../* @__PURE__ */ new Set([...m.actions, ...c.actions])
|
|
3554
3554
|
];
|
|
3555
|
-
const C =
|
|
3556
|
-
if (Object.keys(U).length === 0 ? delete
|
|
3557
|
-
const j =
|
|
3558
|
-
var
|
|
3559
|
-
D(c.subject, b), n(f(R,
|
|
3560
|
-
},
|
|
3561
|
-
var
|
|
3562
|
-
n(R), (
|
|
3555
|
+
const C = Ge(m), U = Dt(C, [{ builder: b, formValue: y }]);
|
|
3556
|
+
if (Object.keys(U).length === 0 ? delete m.conditions : m.conditions = JSON.stringify(U), R[L] = m, sn(c.subject, t.value)) {
|
|
3557
|
+
const j = k(c.subject, b), W = () => {
|
|
3558
|
+
var X;
|
|
3559
|
+
D(c.subject, b), n(f(R, m, b)), (X = v.afterCommit) == null || X.call(v);
|
|
3560
|
+
}, G = () => {
|
|
3561
|
+
var X;
|
|
3562
|
+
n(R), (X = v.afterCommit) == null || X.call(v);
|
|
3563
3563
|
};
|
|
3564
3564
|
if (j.length === 0) {
|
|
3565
|
-
|
|
3565
|
+
W();
|
|
3566
3566
|
return;
|
|
3567
3567
|
}
|
|
3568
|
-
v.onOverridesConflict ? v.onOverridesConflict({ override:
|
|
3568
|
+
v.onOverridesConflict ? v.onOverridesConflict({ override: W, keep: G }) : G();
|
|
3569
3569
|
return;
|
|
3570
3570
|
}
|
|
3571
3571
|
n(R), (V = v.afterCommit) == null || V.call(v);
|
|
@@ -3573,61 +3573,61 @@ function fa(e, t, n) {
|
|
|
3573
3573
|
function S(c, b, y = {}) {
|
|
3574
3574
|
if (b.length === 0) return;
|
|
3575
3575
|
const v = [...e.value];
|
|
3576
|
-
let R = v.findIndex((j) => !j.inverted && j.subject === c.subject),
|
|
3576
|
+
let R = v.findIndex((j) => !j.inverted && j.subject === c.subject), L = R === -1 ? void 0 : { ...v[R] }, B = Ge(L ?? {}) ?? {};
|
|
3577
3577
|
for (const j of b) {
|
|
3578
|
-
const
|
|
3579
|
-
B = Dt(B, [{ builder: j.builder, formValue:
|
|
3578
|
+
const W = j.mode === "inherit" ? j.builder.fromCondition(void 0) : j.form;
|
|
3579
|
+
B = Dt(B, [{ builder: j.builder, formValue: W }]);
|
|
3580
3580
|
}
|
|
3581
3581
|
const x = b.some((j) => j.mode === "custom");
|
|
3582
|
-
if (!
|
|
3582
|
+
if (!L && (Object.keys(B).length > 0 || x)) {
|
|
3583
3583
|
const j = t.value.find((ne) => ne.subject === c.subject);
|
|
3584
3584
|
if (!j) return;
|
|
3585
3585
|
const {
|
|
3586
|
-
category:
|
|
3587
|
-
showByFeatureFlag:
|
|
3588
|
-
isCategoryCover:
|
|
3589
|
-
...
|
|
3586
|
+
category: W,
|
|
3587
|
+
showByFeatureFlag: G,
|
|
3588
|
+
isCategoryCover: X,
|
|
3589
|
+
...Y
|
|
3590
3590
|
} = j;
|
|
3591
|
-
|
|
3592
|
-
...
|
|
3593
|
-
actions: c.actions.length > 0 ? c.actions :
|
|
3594
|
-
}, v.push(
|
|
3591
|
+
L = {
|
|
3592
|
+
...Y,
|
|
3593
|
+
actions: c.actions.length > 0 ? c.actions : Y.actions
|
|
3594
|
+
}, v.push(L), R = v.length - 1;
|
|
3595
3595
|
}
|
|
3596
|
-
if (
|
|
3597
|
-
const j = l(c.subject),
|
|
3598
|
-
if (!x && Object.keys(B).length === 0 && !!
|
|
3599
|
-
v.splice(R, 1),
|
|
3596
|
+
if (L) {
|
|
3597
|
+
const j = l(c.subject), W = j ? u(j) : void 0;
|
|
3598
|
+
if (!x && Object.keys(B).length === 0 && !!W && Mt(W, L))
|
|
3599
|
+
v.splice(R, 1), L = void 0;
|
|
3600
3600
|
else {
|
|
3601
|
-
if (
|
|
3602
|
-
.../* @__PURE__ */ new Set([...
|
|
3603
|
-
],
|
|
3604
|
-
for (const
|
|
3605
|
-
|
|
3601
|
+
if (L.actions = [
|
|
3602
|
+
.../* @__PURE__ */ new Set([...L.actions, ...c.actions])
|
|
3603
|
+
], W)
|
|
3604
|
+
for (const X of b)
|
|
3605
|
+
X.mode === "inherit" && (B = {
|
|
3606
3606
|
...B,
|
|
3607
|
-
...tt(
|
|
3607
|
+
...tt(Ge(W), X.builder)
|
|
3608
3608
|
});
|
|
3609
|
-
Object.keys(B).length === 0 ? delete
|
|
3609
|
+
Object.keys(B).length === 0 ? delete L.conditions : L.conditions = JSON.stringify(B), v[R] = L;
|
|
3610
3610
|
}
|
|
3611
3611
|
}
|
|
3612
|
-
const
|
|
3612
|
+
const m = () => {
|
|
3613
3613
|
const j = new Set(r.value);
|
|
3614
|
-
for (const
|
|
3615
|
-
const
|
|
3616
|
-
|
|
3614
|
+
for (const W of b) {
|
|
3615
|
+
const G = gt(c.subject, W.builder);
|
|
3616
|
+
W.mode === "custom" ? j.add(G) : j.delete(G);
|
|
3617
3617
|
}
|
|
3618
3618
|
r.value = j;
|
|
3619
3619
|
}, C = (j) => {
|
|
3620
|
-
var
|
|
3621
|
-
|
|
3620
|
+
var W;
|
|
3621
|
+
m(), n(j), (W = y.afterCommit) == null || W.call(y);
|
|
3622
3622
|
};
|
|
3623
|
-
if (!sn(c.subject, t.value) || !
|
|
3623
|
+
if (!sn(c.subject, t.value) || !L) {
|
|
3624
3624
|
C(v);
|
|
3625
3625
|
return;
|
|
3626
3626
|
}
|
|
3627
|
-
const U = b.map((j) => j.builder).filter((j) =>
|
|
3627
|
+
const U = b.map((j) => j.builder).filter((j) => k(c.subject, j).length > 0), V = () => {
|
|
3628
3628
|
let j = v;
|
|
3629
|
-
for (const
|
|
3630
|
-
D(c.subject,
|
|
3629
|
+
for (const W of b.map((G) => G.builder))
|
|
3630
|
+
D(c.subject, W), j = f(j, L, W);
|
|
3631
3631
|
C(j);
|
|
3632
3632
|
};
|
|
3633
3633
|
if (U.length > 0 && y.onOverridesConflict) {
|
|
@@ -3638,17 +3638,17 @@ function fa(e, t, n) {
|
|
|
3638
3638
|
}
|
|
3639
3639
|
return {
|
|
3640
3640
|
getCoverSubject: l,
|
|
3641
|
-
coverLabel:
|
|
3641
|
+
coverLabel: d,
|
|
3642
3642
|
shouldShowInheritToggle: g,
|
|
3643
3643
|
inheritMode: E,
|
|
3644
3644
|
setInheritMode: F,
|
|
3645
|
-
inheritedSummary:
|
|
3645
|
+
inheritedSummary: O,
|
|
3646
3646
|
getEffectiveActions: w,
|
|
3647
3647
|
updateBuilderCondition: h,
|
|
3648
3648
|
applyConditionDrafts: S
|
|
3649
3649
|
};
|
|
3650
3650
|
}
|
|
3651
|
-
const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, pa = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ha = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ba = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ga = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ya = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Ea = "condition-form-select-menu", Da = /* @__PURE__ */
|
|
3651
|
+
const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, pa = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ha = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ba = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ga = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ya = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Ea = "condition-form-select-menu", Da = /* @__PURE__ */ ke({
|
|
3652
3652
|
__name: "PortalPermissionEditor",
|
|
3653
3653
|
props: /* @__PURE__ */ tn({
|
|
3654
3654
|
disable: {
|
|
@@ -3665,21 +3665,21 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3665
3665
|
}),
|
|
3666
3666
|
emits: /* @__PURE__ */ tn(["permissionChanged"], ["update:modelValue"]),
|
|
3667
3667
|
setup(e, { emit: t }) {
|
|
3668
|
-
const n = pr(e, "modelValue"), r = e, l = t, { t: a } = He(),
|
|
3668
|
+
const n = pr(e, "modelValue"), r = e, l = t, { t: a } = He(), d = hr(), u = br(), { breakpoints: i } = gr(), g = z(() => i.value.xs || i.value.sm), {
|
|
3669
3669
|
fetchCustomReportPermissions: E,
|
|
3670
|
-
customReportPermissions:
|
|
3670
|
+
customReportPermissions: O
|
|
3671
3671
|
} = yr(), N = z(() => [
|
|
3672
|
-
...
|
|
3673
|
-
...
|
|
3672
|
+
...Wn,
|
|
3673
|
+
...O.value
|
|
3674
3674
|
]), F = z(() => {
|
|
3675
|
-
const
|
|
3676
|
-
return
|
|
3675
|
+
const T = d.currentBusiness.value, s = d.currentCountry.value, o = s instanceof Object ? s.code : s;
|
|
3676
|
+
return da(T, o);
|
|
3677
3677
|
});
|
|
3678
|
-
function w(
|
|
3679
|
-
return N.value.find((s) => s.subject ===
|
|
3678
|
+
function w(T) {
|
|
3679
|
+
return N.value.find((s) => s.subject === T);
|
|
3680
3680
|
}
|
|
3681
|
-
function
|
|
3682
|
-
return rn(
|
|
3681
|
+
function k(T, s) {
|
|
3682
|
+
return rn(T).filter(
|
|
3683
3683
|
(o) => {
|
|
3684
3684
|
var _;
|
|
3685
3685
|
return ((_ = o.appliesToActions) == null ? void 0 : _.call(o, s)) ?? !0;
|
|
@@ -3687,47 +3687,47 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3687
3687
|
);
|
|
3688
3688
|
}
|
|
3689
3689
|
const D = z(() => {
|
|
3690
|
-
const
|
|
3690
|
+
const T = N.value.filter((o) => !c.includes(o.subject)).map((o) => o.subject);
|
|
3691
3691
|
return Er(
|
|
3692
3692
|
r.inheritPermissions.map((o) => ({
|
|
3693
3693
|
...o,
|
|
3694
|
-
permissions: o.permissions.filter((_) =>
|
|
3694
|
+
permissions: o.permissions.filter((_) => T.includes(_.subject))
|
|
3695
3695
|
}))
|
|
3696
3696
|
).map((o) => ({
|
|
3697
3697
|
id: o.subject,
|
|
3698
3698
|
setNames: o.setNames
|
|
3699
3699
|
}));
|
|
3700
3700
|
}), f = z(() => {
|
|
3701
|
-
const
|
|
3701
|
+
const T = r.inheritPermissions.map((s) => ({
|
|
3702
3702
|
...s,
|
|
3703
3703
|
permissions: s.permissions.filter(
|
|
3704
3704
|
(o) => o.subject === he.Subject.Business.inventory_stock
|
|
3705
3705
|
)
|
|
3706
3706
|
}));
|
|
3707
|
-
return
|
|
3708
|
-
|
|
3707
|
+
return Lt(
|
|
3708
|
+
T,
|
|
3709
3709
|
"warehouseId",
|
|
3710
3710
|
y.value.map((s) => s._id)
|
|
3711
3711
|
);
|
|
3712
3712
|
}), h = z(() => {
|
|
3713
|
-
const
|
|
3713
|
+
const T = r.inheritPermissions.map((s) => ({
|
|
3714
3714
|
...s,
|
|
3715
3715
|
permissions: s.permissions.filter(
|
|
3716
3716
|
(o) => o.subject === he.Subject.Restaurant.restaurant
|
|
3717
3717
|
)
|
|
3718
3718
|
}));
|
|
3719
|
-
return
|
|
3720
|
-
|
|
3719
|
+
return Lt(
|
|
3720
|
+
T,
|
|
3721
3721
|
"restaurantId",
|
|
3722
3722
|
B.value.map((s) => s._id)
|
|
3723
3723
|
);
|
|
3724
3724
|
}), S = z(() => {
|
|
3725
|
-
const
|
|
3725
|
+
const T = r.inheritPermissions.map((s) => ({
|
|
3726
3726
|
...s,
|
|
3727
3727
|
permissions: s.permissions.filter((o) => o.subject === he.Subject.Business.role)
|
|
3728
3728
|
}));
|
|
3729
|
-
return
|
|
3730
|
-
|
|
3729
|
+
return Lt(
|
|
3730
|
+
T,
|
|
3731
3731
|
"roleId",
|
|
3732
3732
|
x.value.map((s) => s._id)
|
|
3733
3733
|
);
|
|
@@ -3738,21 +3738,21 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3738
3738
|
he.Subject.Business.inventory_stock
|
|
3739
3739
|
], b = z(() => {
|
|
3740
3740
|
var s;
|
|
3741
|
-
const
|
|
3741
|
+
const T = (s = n.value) == null ? void 0 : s.find(
|
|
3742
3742
|
(o) => o.subject === he.Subject.Business.inventory_stock
|
|
3743
3743
|
);
|
|
3744
|
-
return
|
|
3745
|
-
}), y = rt([]), v = z(() => y.value.map((
|
|
3746
|
-
label:
|
|
3747
|
-
value:
|
|
3744
|
+
return T ? T.conditions ? JSON.parse(T.conditions).warehouseId.$in : null : [];
|
|
3745
|
+
}), y = rt([]), v = z(() => y.value.map((T) => ({
|
|
3746
|
+
label: T.profile.name,
|
|
3747
|
+
value: T._id
|
|
3748
3748
|
})));
|
|
3749
|
-
function R(
|
|
3750
|
-
const s =
|
|
3749
|
+
function R(T) {
|
|
3750
|
+
const s = L(n.value, T);
|
|
3751
3751
|
n.value = s;
|
|
3752
3752
|
}
|
|
3753
|
-
function
|
|
3753
|
+
function L(T, s) {
|
|
3754
3754
|
let o = yt(
|
|
3755
|
-
|
|
3755
|
+
T.filter((_) => _.subject !== he.Subject.Business.inventory_stock)
|
|
3756
3756
|
);
|
|
3757
3757
|
if (!s || s.length > 0) {
|
|
3758
3758
|
const _ = {
|
|
@@ -3763,19 +3763,19 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3763
3763
|
}
|
|
3764
3764
|
return o;
|
|
3765
3765
|
}
|
|
3766
|
-
const { restaurants: B } =
|
|
3767
|
-
label: `${
|
|
3768
|
-
value:
|
|
3769
|
-
}))), C = z(() => B.value.reduce((
|
|
3770
|
-
function V(
|
|
3771
|
-
const s =
|
|
3766
|
+
const { restaurants: B } = d, x = Mr().roles, m = z(() => B.value.map((T) => ({
|
|
3767
|
+
label: `${T.profile.code ? T.profile.code + "-" : ""}${T.profile.name}`,
|
|
3768
|
+
value: T._id
|
|
3769
|
+
}))), C = z(() => B.value.reduce((T, s) => (T[s._id] = x.value.filter((o) => o.restaurants.some((_) => _.id === s._id)).map((o) => o._id), T), {})), U = z(() => Ir(n.value));
|
|
3770
|
+
function V(T) {
|
|
3771
|
+
const s = W(n.value, T);
|
|
3772
3772
|
n.value = s;
|
|
3773
3773
|
}
|
|
3774
3774
|
const j = z(() => Nr(n.value));
|
|
3775
|
-
function
|
|
3775
|
+
function W(T, s) {
|
|
3776
3776
|
var _;
|
|
3777
3777
|
let o = yt(
|
|
3778
|
-
|
|
3778
|
+
T.filter(
|
|
3779
3779
|
(A) => A.subject !== he.Subject.Business.restaurant && A.subject !== he.Subject.Restaurant.restaurant
|
|
3780
3780
|
)
|
|
3781
3781
|
);
|
|
@@ -3784,7 +3784,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3784
3784
|
category: A,
|
|
3785
3785
|
showByFeatureFlag: M,
|
|
3786
3786
|
...P
|
|
3787
|
-
} =
|
|
3787
|
+
} = Lr.restaurant;
|
|
3788
3788
|
o.push(P);
|
|
3789
3789
|
const p = {
|
|
3790
3790
|
actions: [he.Action.manage],
|
|
@@ -3796,20 +3796,20 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3796
3796
|
const A = [
|
|
3797
3797
|
...new Set(s.map((P) => C.value[P]).flatMap((P) => P))
|
|
3798
3798
|
], M = x.value.map((P) => P._id);
|
|
3799
|
-
A.length !== M.length && (o =
|
|
3799
|
+
A.length !== M.length && (o = X(
|
|
3800
3800
|
o,
|
|
3801
3801
|
(_ = j.value || M) == null ? void 0 : _.filter((P) => A.includes(P))
|
|
3802
3802
|
));
|
|
3803
3803
|
}
|
|
3804
3804
|
return o;
|
|
3805
3805
|
}
|
|
3806
|
-
function
|
|
3807
|
-
const s =
|
|
3806
|
+
function G(T) {
|
|
3807
|
+
const s = X(n.value, T);
|
|
3808
3808
|
n.value = s;
|
|
3809
3809
|
}
|
|
3810
|
-
function
|
|
3810
|
+
function X(T, s) {
|
|
3811
3811
|
let o = yt(
|
|
3812
|
-
|
|
3812
|
+
T.filter((_) => _.subject !== he.Subject.Business.role)
|
|
3813
3813
|
);
|
|
3814
3814
|
if (s && s.length > 0) {
|
|
3815
3815
|
const _ = {
|
|
@@ -3823,13 +3823,13 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3823
3823
|
}
|
|
3824
3824
|
xn(async () => {
|
|
3825
3825
|
await Promise.all([
|
|
3826
|
-
la.readWarehouses().then((
|
|
3826
|
+
la.readWarehouses().then((T) => y.value = T),
|
|
3827
3827
|
E()
|
|
3828
3828
|
]);
|
|
3829
3829
|
});
|
|
3830
|
-
const
|
|
3830
|
+
const Y = z(() => Zn(
|
|
3831
3831
|
n.value,
|
|
3832
|
-
|
|
3832
|
+
Xn
|
|
3833
3833
|
).filter((o) => {
|
|
3834
3834
|
const _ = o.source;
|
|
3835
3835
|
return (_ == null ? void 0 : _.type) !== "systemPermissionSet" ? !0 : o.actions.includes("manage");
|
|
@@ -3842,26 +3842,26 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3842
3842
|
const M = A.actions;
|
|
3843
3843
|
return M.length <= 1 || M.filter((p) => !_.includes(p)).length === 0 ? o : { ...o, actions: [...M] };
|
|
3844
3844
|
}));
|
|
3845
|
-
function ne(
|
|
3845
|
+
function ne(T) {
|
|
3846
3846
|
n.value = ia(
|
|
3847
|
-
|
|
3848
|
-
|
|
3847
|
+
Y.value,
|
|
3848
|
+
T,
|
|
3849
3849
|
n.value,
|
|
3850
3850
|
w
|
|
3851
3851
|
);
|
|
3852
3852
|
}
|
|
3853
3853
|
const Q = z(() => new Set(
|
|
3854
|
-
N.value.filter((
|
|
3854
|
+
N.value.filter((T) => rn(T.subject).length > 0).map((T) => T.subject)
|
|
3855
3855
|
)), _e = z(() => {
|
|
3856
|
-
const
|
|
3857
|
-
return
|
|
3856
|
+
const T = /* @__PURE__ */ new Map();
|
|
3857
|
+
return Y.value.map((s) => ({
|
|
3858
3858
|
rule: s,
|
|
3859
3859
|
index: n.value.findIndex(
|
|
3860
3860
|
(o) => !o.inverted && o.subject === s.subject
|
|
3861
3861
|
)
|
|
3862
3862
|
})).filter(({ rule: s }) => !s.inverted).forEach(({ rule: s, index: o }) => {
|
|
3863
3863
|
var P;
|
|
3864
|
-
const _ = s.actions, A =
|
|
3864
|
+
const _ = s.actions, A = k(s.subject, _);
|
|
3865
3865
|
if (A.length === 0) return;
|
|
3866
3866
|
let M;
|
|
3867
3867
|
try {
|
|
@@ -3869,7 +3869,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3869
3869
|
} catch {
|
|
3870
3870
|
M = void 0;
|
|
3871
3871
|
}
|
|
3872
|
-
|
|
3872
|
+
T.set(s.subject, {
|
|
3873
3873
|
index: o >= 0 ? o : null,
|
|
3874
3874
|
subject: s.subject,
|
|
3875
3875
|
label: ((P = w(s.subject)) == null ? void 0 : P.label) ?? s.subject,
|
|
@@ -3880,18 +3880,18 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3880
3880
|
formValue: p.fromCondition(tt(M, p))
|
|
3881
3881
|
}))
|
|
3882
3882
|
});
|
|
3883
|
-
}),
|
|
3884
|
-
}), ce = fa(n, N, (
|
|
3885
|
-
n.value =
|
|
3886
|
-
}), se =
|
|
3887
|
-
function q(
|
|
3888
|
-
const o = _e.value.get(
|
|
3883
|
+
}), T;
|
|
3884
|
+
}), ce = fa(n, N, (T) => {
|
|
3885
|
+
n.value = T;
|
|
3886
|
+
}), se = Or(n), fe = rt(null);
|
|
3887
|
+
function q(T, s) {
|
|
3888
|
+
const o = _e.value.get(T);
|
|
3889
3889
|
if (o) return o;
|
|
3890
|
-
const _ = ce.getEffectiveActions(
|
|
3890
|
+
const _ = ce.getEffectiveActions(T), A = k(T, _);
|
|
3891
3891
|
if (A.length !== 0)
|
|
3892
3892
|
return {
|
|
3893
3893
|
index: null,
|
|
3894
|
-
subject:
|
|
3894
|
+
subject: T,
|
|
3895
3895
|
label: s,
|
|
3896
3896
|
actions: _,
|
|
3897
3897
|
sections: A.map((M) => ({
|
|
@@ -3900,72 +3900,72 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3900
3900
|
}))
|
|
3901
3901
|
};
|
|
3902
3902
|
}
|
|
3903
|
-
function De(
|
|
3904
|
-
const o = se.getDraft({ subject:
|
|
3903
|
+
function De(T, s) {
|
|
3904
|
+
const o = se.getDraft({ subject: T.subject, builderKey: s.builderKey });
|
|
3905
3905
|
if (o) return o.formValue;
|
|
3906
|
-
const _ =
|
|
3906
|
+
const _ = T.sections.find((A) => A.builder.builderKey === s.builderKey);
|
|
3907
3907
|
return _ == null ? void 0 : _.formValue;
|
|
3908
3908
|
}
|
|
3909
|
-
function K(
|
|
3910
|
-
const o = se.getDraft({ subject:
|
|
3911
|
-
return o != null && o.inheritMode ? o.inheritMode : ce.inheritMode(
|
|
3909
|
+
function K(T, s) {
|
|
3910
|
+
const o = se.getDraft({ subject: T.subject, builderKey: s.builderKey });
|
|
3911
|
+
return o != null && o.inheritMode ? o.inheritMode : ce.inheritMode(T, s);
|
|
3912
3912
|
}
|
|
3913
|
-
function ve(
|
|
3913
|
+
function ve(T, s, o) {
|
|
3914
3914
|
const _ = se.getDraft({
|
|
3915
|
-
subject:
|
|
3915
|
+
subject: T.subject,
|
|
3916
3916
|
builderKey: s.builderKey
|
|
3917
3917
|
});
|
|
3918
3918
|
se.setDraft(
|
|
3919
|
-
{ subject:
|
|
3919
|
+
{ subject: T.subject, builderKey: s.builderKey },
|
|
3920
3920
|
{
|
|
3921
3921
|
formValue: o,
|
|
3922
|
-
inheritMode: (_ == null ? void 0 : _.inheritMode) ?? K(
|
|
3922
|
+
inheritMode: (_ == null ? void 0 : _.inheritMode) ?? K(T, s)
|
|
3923
3923
|
}
|
|
3924
3924
|
);
|
|
3925
3925
|
}
|
|
3926
|
-
function Je(
|
|
3926
|
+
function Je(T, s, o) {
|
|
3927
3927
|
const _ = se.getDraft({
|
|
3928
|
-
subject:
|
|
3928
|
+
subject: T.subject,
|
|
3929
3929
|
builderKey: s.builderKey
|
|
3930
|
-
}), A =
|
|
3930
|
+
}), A = T.sections.find((M) => M.builder.builderKey === s.builderKey);
|
|
3931
3931
|
se.setDraft(
|
|
3932
|
-
{ subject:
|
|
3932
|
+
{ subject: T.subject, builderKey: s.builderKey },
|
|
3933
3933
|
{
|
|
3934
3934
|
formValue: (_ == null ? void 0 : _.formValue) ?? (A == null ? void 0 : A.formValue),
|
|
3935
3935
|
inheritMode: o
|
|
3936
3936
|
}
|
|
3937
3937
|
);
|
|
3938
3938
|
}
|
|
3939
|
-
function Ke(
|
|
3940
|
-
return se.hasDraftsForSubject(
|
|
3939
|
+
function Ke(T) {
|
|
3940
|
+
return se.hasDraftsForSubject(T);
|
|
3941
3941
|
}
|
|
3942
|
-
function Ve(
|
|
3943
|
-
const o =
|
|
3942
|
+
function Ve(T, s) {
|
|
3943
|
+
const o = T.sections.flatMap((_) => {
|
|
3944
3944
|
const A = se.getDraft({
|
|
3945
|
-
subject:
|
|
3945
|
+
subject: T.subject,
|
|
3946
3946
|
builderKey: _.builder.builderKey
|
|
3947
3947
|
});
|
|
3948
3948
|
return A ? [{ builder: _.builder, form: A.formValue, mode: A.inheritMode ?? "custom" }] : [];
|
|
3949
3949
|
});
|
|
3950
|
-
ce.applyConditionDrafts(
|
|
3950
|
+
ce.applyConditionDrafts(T, o, {
|
|
3951
3951
|
afterCommit: () => {
|
|
3952
|
-
se.clearDraftsForSubject(
|
|
3952
|
+
se.clearDraftsForSubject(T.subject), s();
|
|
3953
3953
|
},
|
|
3954
|
-
onOverridesConflict:
|
|
3954
|
+
onOverridesConflict: Xe(T).onOverridesConflict
|
|
3955
3955
|
});
|
|
3956
3956
|
}
|
|
3957
|
-
function Fe(
|
|
3958
|
-
return
|
|
3957
|
+
function Fe(T) {
|
|
3958
|
+
return T.sections.some((s) => ce.shouldShowInheritToggle(T, s.builder) ? ce.inheritMode(T, s.builder) === "custom" : Object.keys(s.builder.toCondition(s.formValue)).length > 0);
|
|
3959
3959
|
}
|
|
3960
3960
|
let Ce = !1;
|
|
3961
|
-
function
|
|
3961
|
+
function Xe(T, s = {}) {
|
|
3962
3962
|
return {
|
|
3963
3963
|
...s,
|
|
3964
3964
|
onOverridesConflict: ({ override: o, keep: _ }) => {
|
|
3965
3965
|
Ce || (Ce = !0, u.open({
|
|
3966
3966
|
title: a("team.memberForm.permissions.conditionCover.confirmTitle"),
|
|
3967
3967
|
message: a("team.memberForm.permissions.conditionCover.confirmMessage", {
|
|
3968
|
-
cover:
|
|
3968
|
+
cover: T.label
|
|
3969
3969
|
}),
|
|
3970
3970
|
minWidth: i.value.lg ? 588 : 0,
|
|
3971
3971
|
zIndex: 200,
|
|
@@ -3989,29 +3989,29 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3989
3989
|
}
|
|
3990
3990
|
return wt(
|
|
3991
3991
|
n,
|
|
3992
|
-
(
|
|
3993
|
-
l("permissionChanged",
|
|
3992
|
+
(T) => {
|
|
3993
|
+
l("permissionChanged", T);
|
|
3994
3994
|
},
|
|
3995
3995
|
{ deep: !0 }
|
|
3996
|
-
), (
|
|
3996
|
+
), (T, s) => {
|
|
3997
3997
|
const o = we("FmIcon"), _ = we("FmBottomSheet"), A = we("FmPopover");
|
|
3998
3998
|
return J(), ie("div", _a, [
|
|
3999
3999
|
ae("div", va, [
|
|
4000
4000
|
ue(Ho, {
|
|
4001
|
-
"model-value":
|
|
4001
|
+
"model-value": Y.value,
|
|
4002
4002
|
"excluded-subjects": c,
|
|
4003
|
-
"additional-permissions": H(
|
|
4003
|
+
"additional-permissions": H(O),
|
|
4004
4004
|
"onUpdate:modelValue": ne
|
|
4005
4005
|
}, et({ _: 2 }, [
|
|
4006
4006
|
Ie(D.value, (M) => ({
|
|
4007
4007
|
name: `checkbox-${M.id}-append`,
|
|
4008
|
-
fn:
|
|
4008
|
+
fn: de(() => [
|
|
4009
4009
|
ue(pt, { item: M }, null, 8, ["item"])
|
|
4010
4010
|
])
|
|
4011
4011
|
})),
|
|
4012
4012
|
Ie(Q.value, (M) => ({
|
|
4013
4013
|
name: `checkbox-${M}-icon`,
|
|
4014
|
-
fn:
|
|
4014
|
+
fn: de(({ option: P, isEffectiveSelected: p }) => [
|
|
4015
4015
|
p && q(M, P.label) ? (J(), ie(Re, { key: 0 }, [
|
|
4016
4016
|
g.value ? (J(), Ne(_, {
|
|
4017
4017
|
key: 0,
|
|
@@ -4026,7 +4026,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4026
4026
|
fe.value = I ? M : null, I || H(se).clearDraftsForSubject(M);
|
|
4027
4027
|
}
|
|
4028
4028
|
}, {
|
|
4029
|
-
"bottom-sheet-button":
|
|
4029
|
+
"bottom-sheet-button": de(() => [
|
|
4030
4030
|
ae("div", pa, [
|
|
4031
4031
|
ue(o, {
|
|
4032
4032
|
name: "settings",
|
|
@@ -4038,7 +4038,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4038
4038
|
}, null, 8, ["class"])
|
|
4039
4039
|
])
|
|
4040
4040
|
]),
|
|
4041
|
-
default:
|
|
4041
|
+
default: de(() => [
|
|
4042
4042
|
ue(Fn, {
|
|
4043
4043
|
entry: q(M, P.label),
|
|
4044
4044
|
builders: q(M, P.label).sections.map((I) => I.builder),
|
|
@@ -4066,7 +4066,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4066
4066
|
I || H(se).clearDraftsForSubject(M);
|
|
4067
4067
|
}
|
|
4068
4068
|
}, {
|
|
4069
|
-
"popover-button":
|
|
4069
|
+
"popover-button": de(() => [
|
|
4070
4070
|
ae("div", ha, [
|
|
4071
4071
|
ue(o, {
|
|
4072
4072
|
name: "settings",
|
|
@@ -4078,7 +4078,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4078
4078
|
}, null, 8, ["class"])
|
|
4079
4079
|
])
|
|
4080
4080
|
]),
|
|
4081
|
-
default:
|
|
4081
|
+
default: de(({ hide: I }) => [
|
|
4082
4082
|
ue(Fn, {
|
|
4083
4083
|
entry: q(M, P.label),
|
|
4084
4084
|
builders: q(M, P.label).sections.map(($) => $.builder),
|
|
@@ -4122,7 +4122,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4122
4122
|
}, et({ _: 2 }, [
|
|
4123
4123
|
Ie(f.value, (M) => ({
|
|
4124
4124
|
name: `checkbox-${M.id}-append`,
|
|
4125
|
-
fn:
|
|
4125
|
+
fn: de(() => [
|
|
4126
4126
|
ue(pt, { item: M }, null, 8, ["item"])
|
|
4127
4127
|
])
|
|
4128
4128
|
}))
|
|
@@ -4131,13 +4131,13 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4131
4131
|
ae("div", ga, [
|
|
4132
4132
|
ue(Dn, {
|
|
4133
4133
|
"model-value": U.value,
|
|
4134
|
-
options:
|
|
4134
|
+
options: m.value,
|
|
4135
4135
|
context: H(a)("team.labels.restaurant"),
|
|
4136
4136
|
"onUpdate:modelValue": V
|
|
4137
4137
|
}, et({ _: 2 }, [
|
|
4138
4138
|
Ie(h.value, (M) => ({
|
|
4139
4139
|
name: `checkbox-${M.id}-append`,
|
|
4140
|
-
fn:
|
|
4140
|
+
fn: de(() => [
|
|
4141
4141
|
ue(pt, { item: M }, null, 8, ["item"])
|
|
4142
4142
|
])
|
|
4143
4143
|
}))
|
|
@@ -4148,11 +4148,11 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4148
4148
|
roles: H(x),
|
|
4149
4149
|
"model-value": j.value,
|
|
4150
4150
|
"restaurant-ids": U.value,
|
|
4151
|
-
"onUpdate:modelValue":
|
|
4151
|
+
"onUpdate:modelValue": G
|
|
4152
4152
|
}, et({ _: 2 }, [
|
|
4153
4153
|
Ie(S.value, (M) => ({
|
|
4154
4154
|
name: `checkbox-${M.id}-append`,
|
|
4155
|
-
fn:
|
|
4155
|
+
fn: de(() => [
|
|
4156
4156
|
ue(pt, { item: M }, null, 8, ["item"])
|
|
4157
4157
|
])
|
|
4158
4158
|
}))
|