@feedmepos/mf-hrm-portal 2.3.2-dev.7 → 2.3.2-dev.9
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-Bw0E-hZl.js → ApprovalCodeList-gb0bre9J.js} +7 -7
- package/dist/{AuditLogList-CA-_t77n.js → AuditLogList-9cwS6bL7.js} +795 -719
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-LtjNCAFN.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DR-c15gr.js} +2 -2
- package/dist/{EmployeeList-D_bX0EhQ.js → EmployeeList-DjyoW1we.js} +8 -8
- package/dist/{FormSection.vue_vue_type_script_setup_true_lang-CyZxQa-b.js → FormSection.vue_vue_type_script_setup_true_lang-BBWlADve.js} +1 -1
- package/dist/{GrantUserList-Cg7ITk_M.js → GrantUserList-yU2NqFVO.js} +8 -8
- package/dist/{Main-Bl-Ocx1G.js → Main-4KwMqF3h.js} +5 -5
- package/dist/{Main-BaB4vgI5.js → Main-BS_Lk_eB.js} +1005 -999
- package/dist/{Main-D5wi42fp.js → Main-BuG7SPnC.js} +10 -10
- package/dist/MyPosProfile-CuDzRaRS.js +360 -0
- package/dist/{PermissionSetList-kgG9H3DX.js → PermissionSetList-D7SS1iAr.js} +30 -29
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-y1YcZpGA.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-u1UlV2Aw.js} +902 -901
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-fQyCtDXM.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CYkv2x_y.js} +1 -1
- package/dist/{RoleForm.vue_vue_type_script_setup_true_lang-3Q8udk43.js → RoleForm.vue_vue_type_script_setup_true_lang-hiMgwiya.js} +9 -9
- package/dist/{RoleList-Cmz97HHP.js → RoleList-B3P-LQYV.js} +7 -7
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CggEy3OI.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang--dsZOhnv.js} +1 -1
- package/dist/{ScheduleGeneralPage-B39k3SQH.js → ScheduleGeneralPage-Pq6ufiDu.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-C5j3D4eF.js → ScheduleModal.vue_vue_type_script_setup_true_lang-DKFJLsTW.js} +4 -4
- package/dist/{SchedulePage-AVmRkFi1.js → SchedulePage-8EAOfiJx.js} +189 -201
- package/dist/{SchedulePositionPage-3rE-O8CG.js → SchedulePositionPage-CGXeUnju.js} +3 -3
- package/dist/{SelectFilter-R7ry_GEg.js → SelectFilter-C-UEVLla.js} +1 -1
- package/dist/{TeamMemberList-CvDnIILn.js → TeamMemberList-Bd1O44Ur.js} +102 -101
- package/dist/TimesheetList-CSCmigCM.js +437 -0
- package/dist/{app-DKUCzcrc.js → app-BohKQtlz.js} +82 -14
- package/dist/app.js +1 -1
- package/dist/{approval-code-nsETgIry.js → approval-code-Bfvxsg8h.js} +4 -4
- package/dist/{dayjs.min-CtULWW1N.js → dayjs.min-C0MqTPg1.js} +1 -1
- package/dist/employee-DWxT78W2.js +172 -0
- package/dist/{grant-user-Dpa_Rl6j.js → grant-user-LZ3b6siI.js} +2 -2
- package/dist/{iteration-DpHBtiyr.js → index-DDDG-LHm.js} +698 -726
- package/dist/iteration-CcXrOMQe.js +30 -0
- package/dist/{lodash-YaHCUo_F.js → lodash-BRqMda7F.js} +1 -1
- package/dist/{member-grant-CEokFI3_.js → member-grant-a3AGCWfT.js} +2 -2
- package/dist/{restaurant-CDFKqEFm.js → restaurant-pL7vHt-H.js} +2 -2
- package/dist/{role-DyBVVlEA.js → role--EKCVqho.js} +8 -7
- package/dist/{rule-xErZqYmH.js → rule-Db3gFVHx.js} +83 -82
- package/dist/src/api/audit-log/index.d.ts +2 -0
- package/dist/src/api/employee/index.d.ts +1 -2
- package/dist/src/stores/approval-code.d.ts +1 -1
- package/dist/src/stores/employee.d.ts +3 -9
- package/dist/src/stores/grant-user.d.ts +1 -1
- package/dist/src/stores/permission-assignment.d.ts +2 -2
- package/dist/src/stores/permission-set.d.ts +2 -2
- package/dist/src/stores/restaurant.d.ts +2 -2
- package/dist/src/stores/role.d.ts +2 -2
- package/dist/src/stores/team.d.ts +1 -1
- package/dist/src/stores/timesheet.d.ts +62 -47
- package/dist/src/types/timesheet.d.ts +3 -0
- package/dist/src/views/audit-log/locales/index.d.ts +28 -0
- package/dist/src/views/audit-log/useTraceIdDeepLink.d.ts +19 -0
- package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +1 -1
- package/dist/src/views/my-pos-profile/locales/index.d.ts +40 -0
- package/dist/style.css +1 -1
- package/dist/timesheet-NYW1P4rf.js +76 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-BqsvPsPB.js → useAppStore-DV13z6oc.js} +1 -1
- package/dist/{useLoading-BS1bnZg1.js → useLoading-Fcnnfywt.js} +1 -1
- package/dist/useMessage-_ywT_N9X.js +17 -0
- package/dist/{useReportPermissions-DJEhkyGc.js → useReportPermissions-BcyVoKVq.js} +13 -13
- package/package.json +3 -3
- package/dist/MyPosProfile-CUG_201f.js +0 -290
- package/dist/TimesheetList-DYoglTi8.js +0 -401
- package/dist/TimesheetList.vue_vue_type_style_index_0_scoped_d0c6fd51_lang-DBpzyQ17.js +0 -63
- package/dist/employee-DlsSqR3i.js +0 -210
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { getCurrentInstance as Yt, inject as ur, ref as st, shallowRef as dr, computed as K, watch as Mt, onMounted as
|
|
1
|
+
import { getCurrentInstance as Yt, inject as ur, ref as st, shallowRef as dr, computed as K, watch as Mt, onMounted as xn, onUnmounted as mr, defineComponent as Re, h as Vn, createVNode as oe, Text as fr, Fragment as Me, resolveComponent as we, createBlock as Ce, openBlock as $, withCtx as ce, createElementVNode as ie, createElementBlock as re, toDisplayString as Oe, unref as X, renderList as Ee, toRef as qt, normalizeStyle as rt, renderSlot as Se, createCommentVNode as Ne, normalizeClass as Ie, createTextVNode as _r, useSlots as pr, createSlots as tt, mergeModels as en, useModel as vr } from "vue";
|
|
2
2
|
import { useI18n as Ke, useCoreStore as hr } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialog as br, useBreakpoints as gr } from "@feedmepos/ui-library";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { p as Wn,
|
|
6
|
-
import { _ as Bt, a as Sr, b as nn, u as Lr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { u as
|
|
8
|
-
import { c as Yn } from "./iteration-
|
|
9
|
-
import { r as
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
5
|
+
import { p as Wn, N as Gn, Y as tn, V as yr, a as Ir, j as Er, Q as Nr, A as Cr, D as Tr, C as Or } from "./rule-Db3gFVHx.js";
|
|
6
|
+
import { _ as Bt, a as Sr, b as nn, u as Lr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DR-c15gr.js";
|
|
7
|
+
import { u as Rr, v as kr, g as Ar, b as Mr, P as Zn, S as wt, A as nt, m as Ye, j as rn } from "./app-BohKQtlz.js";
|
|
8
|
+
import { c as Yn } from "./iteration-CcXrOMQe.js";
|
|
9
|
+
import { r as wr, s as Bn } from "./string-DZQ1uNjn.js";
|
|
10
|
+
import "./index-DDDG-LHm.js";
|
|
11
|
+
import { W as Dr } from "./member-grant-a3AGCWfT.js";
|
|
12
|
+
import { u as Fr } from "./role--EKCVqho.js";
|
|
12
13
|
function St(e, t, n) {
|
|
13
14
|
const r = /* @__PURE__ */ new Map();
|
|
14
15
|
return e.forEach(
|
|
@@ -16,9 +17,9 @@ function St(e, t, n) {
|
|
|
16
17
|
var b, E;
|
|
17
18
|
const i = JSON.parse(f || "{}");
|
|
18
19
|
(b = i[t]) != null && b.$in ? (E = i[t]) == null || E.$in.forEach(
|
|
19
|
-
(
|
|
20
|
-
) : m[0] === "manage" && n.forEach((
|
|
21
|
-
(r.get(
|
|
20
|
+
(C) => (r.get(C) ?? r.set(C, /* @__PURE__ */ new Set()).get(C)).add(a)
|
|
21
|
+
) : m[0] === "manage" && n.forEach((C) => {
|
|
22
|
+
(r.get(C) ?? r.set(C, /* @__PURE__ */ new Set()).get(C)).add(a);
|
|
22
23
|
});
|
|
23
24
|
})
|
|
24
25
|
), [...r].map(([a, o]) => ({
|
|
@@ -31,9 +32,9 @@ function St(e, t, n) {
|
|
|
31
32
|
* (c) 2024 kazuya kawaguchi
|
|
32
33
|
* Released under the MIT License.
|
|
33
34
|
*/
|
|
34
|
-
const sn = typeof window < "u", ze = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Pr = (e, t, n) => jr({ l: e, k: t, s: n }), jr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), be = (e) => typeof e == "number" && isFinite(e),
|
|
35
|
+
const sn = typeof window < "u", ze = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Pr = (e, t, n) => jr({ l: e, k: t, s: n }), jr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), be = (e) => typeof e == "number" && isFinite(e), Ur = (e) => Xt(e) === "[object Date]", It = (e) => Xt(e) === "[object RegExp]", Nt = (e) => q(e) && Object.keys(e).length === 0, ge = Object.assign, xr = Object.create, se = (e = null) => xr(e);
|
|
35
36
|
let an;
|
|
36
|
-
const
|
|
37
|
+
const Je = () => an || (an = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : se());
|
|
37
38
|
function on(e) {
|
|
38
39
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
39
40
|
}
|
|
@@ -49,7 +50,7 @@ function Zr(e, t) {
|
|
|
49
50
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
50
51
|
}
|
|
51
52
|
const ft = (e) => !ee(e) || pe(e);
|
|
52
|
-
function
|
|
53
|
+
function yt(e, t) {
|
|
53
54
|
if (ft(e) || ft(t))
|
|
54
55
|
throw new Error("Invalid value");
|
|
55
56
|
const n = [{ src: e, des: t }];
|
|
@@ -63,7 +64,7 @@ function It(e, t) {
|
|
|
63
64
|
function Yr(e, t, n) {
|
|
64
65
|
return { line: e, column: t, offset: n };
|
|
65
66
|
}
|
|
66
|
-
function
|
|
67
|
+
function Dt(e, t, n) {
|
|
67
68
|
return { start: e, end: t };
|
|
68
69
|
}
|
|
69
70
|
const ne = {
|
|
@@ -84,19 +85,19 @@ const ne = {
|
|
|
84
85
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
85
86
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
86
87
|
}, Br = 17;
|
|
87
|
-
function
|
|
88
|
+
function Ct(e, t, n = {}) {
|
|
88
89
|
const { domain: r, messages: a, args: o } = n, f = e, m = new SyntaxError(String(f));
|
|
89
90
|
return m.code = e, t && (m.location = t), m.domain = r, m;
|
|
90
91
|
}
|
|
91
92
|
function Xr(e) {
|
|
92
93
|
throw e;
|
|
93
94
|
}
|
|
94
|
-
const je = " ", Hr = "\r",
|
|
95
|
-
`,
|
|
95
|
+
const je = " ", Hr = "\r", ye = `
|
|
96
|
+
`, $r = "\u2028", Jr = "\u2029";
|
|
96
97
|
function Kr(e) {
|
|
97
98
|
const t = e;
|
|
98
99
|
let n = 0, r = 1, a = 1, o = 0;
|
|
99
|
-
const f = (v) => t[v] === Hr && t[v + 1] ===
|
|
100
|
+
const f = (v) => t[v] === Hr && t[v + 1] === ye, m = (v) => t[v] === ye, i = (v) => t[v] === Jr, b = (v) => t[v] === $r, E = (v) => f(v) || m(v) || i(v) || b(v), C = () => n, T = () => r, w = () => a, A = () => o, R = (v) => f(v) || i(v) || b(v) ? ye : t[v], M = () => R(n), p = () => R(n + o);
|
|
100
101
|
function h() {
|
|
101
102
|
return o = 0, E(n) && (r++, a = 0), f(n) && n++, n++, a++, t[n];
|
|
102
103
|
}
|
|
@@ -109,25 +110,25 @@ function Kr(e) {
|
|
|
109
110
|
function g(v = 0) {
|
|
110
111
|
o = v;
|
|
111
112
|
}
|
|
112
|
-
function
|
|
113
|
+
function I() {
|
|
113
114
|
const v = n + o;
|
|
114
115
|
for (; v !== n; )
|
|
115
116
|
h();
|
|
116
117
|
o = 0;
|
|
117
118
|
}
|
|
118
119
|
return {
|
|
119
|
-
index:
|
|
120
|
-
line:
|
|
121
|
-
column:
|
|
122
|
-
peekOffset:
|
|
123
|
-
charAt:
|
|
120
|
+
index: C,
|
|
121
|
+
line: T,
|
|
122
|
+
column: w,
|
|
123
|
+
peekOffset: A,
|
|
124
|
+
charAt: R,
|
|
124
125
|
currentChar: M,
|
|
125
126
|
currentPeek: p,
|
|
126
127
|
next: h,
|
|
127
128
|
peek: S,
|
|
128
129
|
reset: d,
|
|
129
130
|
resetPeek: g,
|
|
130
|
-
skipToPeek:
|
|
131
|
+
skipToPeek: I
|
|
131
132
|
};
|
|
132
133
|
}
|
|
133
134
|
const Ze = void 0, zr = ".", ln = "'", Qr = "tokenizer";
|
|
@@ -145,37 +146,37 @@ function qr(e, t = {}) {
|
|
|
145
146
|
inLinked: !1,
|
|
146
147
|
text: ""
|
|
147
148
|
}, b = () => i, { onError: E } = t;
|
|
148
|
-
function
|
|
149
|
-
const
|
|
149
|
+
function C(l, s, c, ...y) {
|
|
150
|
+
const U = b();
|
|
150
151
|
if (s.column += c, s.offset += c, E) {
|
|
151
|
-
const G = n ?
|
|
152
|
+
const G = n ? Dt(U.startLoc, s) : null, u = Ct(l, G, {
|
|
152
153
|
domain: Qr,
|
|
153
|
-
args:
|
|
154
|
+
args: y
|
|
154
155
|
});
|
|
155
156
|
E(u);
|
|
156
157
|
}
|
|
157
158
|
}
|
|
158
|
-
function
|
|
159
|
+
function T(l, s, c) {
|
|
159
160
|
l.endLoc = o(), l.currentType = s;
|
|
160
|
-
const
|
|
161
|
-
return n && (
|
|
161
|
+
const y = { type: s };
|
|
162
|
+
return n && (y.loc = Dt(l.startLoc, l.endLoc)), c != null && (y.value = c), y;
|
|
162
163
|
}
|
|
163
|
-
const
|
|
164
|
+
const w = (l) => T(
|
|
164
165
|
l,
|
|
165
166
|
13
|
|
166
167
|
/* TokenTypes.EOF */
|
|
167
168
|
);
|
|
168
|
-
function
|
|
169
|
-
return l.currentChar() === s ? (l.next(), s) : (
|
|
169
|
+
function A(l, s) {
|
|
170
|
+
return l.currentChar() === s ? (l.next(), s) : (C(ne.EXPECTED_TOKEN, o(), 0, s), "");
|
|
170
171
|
}
|
|
171
|
-
function
|
|
172
|
+
function R(l) {
|
|
172
173
|
let s = "";
|
|
173
|
-
for (; l.currentPeek() === je || l.currentPeek() ===
|
|
174
|
+
for (; l.currentPeek() === je || l.currentPeek() === ye; )
|
|
174
175
|
s += l.currentPeek(), l.peek();
|
|
175
176
|
return s;
|
|
176
177
|
}
|
|
177
178
|
function M(l) {
|
|
178
|
-
const s =
|
|
179
|
+
const s = R(l);
|
|
179
180
|
return l.skipToPeek(), s;
|
|
180
181
|
}
|
|
181
182
|
function p(l) {
|
|
@@ -196,71 +197,71 @@ function qr(e, t = {}) {
|
|
|
196
197
|
const { currentType: c } = s;
|
|
197
198
|
if (c !== 2)
|
|
198
199
|
return !1;
|
|
199
|
-
|
|
200
|
-
const
|
|
201
|
-
return l.resetPeek(),
|
|
200
|
+
R(l);
|
|
201
|
+
const y = p(l.currentPeek());
|
|
202
|
+
return l.resetPeek(), y;
|
|
202
203
|
}
|
|
203
204
|
function d(l, s) {
|
|
204
205
|
const { currentType: c } = s;
|
|
205
206
|
if (c !== 2)
|
|
206
207
|
return !1;
|
|
207
|
-
|
|
208
|
-
const
|
|
209
|
-
return l.resetPeek(),
|
|
208
|
+
R(l);
|
|
209
|
+
const y = l.currentPeek() === "-" ? l.peek() : l.currentPeek(), U = h(y);
|
|
210
|
+
return l.resetPeek(), U;
|
|
210
211
|
}
|
|
211
212
|
function g(l, s) {
|
|
212
213
|
const { currentType: c } = s;
|
|
213
214
|
if (c !== 2)
|
|
214
215
|
return !1;
|
|
215
|
-
|
|
216
|
-
const
|
|
217
|
-
return l.resetPeek(),
|
|
216
|
+
R(l);
|
|
217
|
+
const y = l.currentPeek() === ln;
|
|
218
|
+
return l.resetPeek(), y;
|
|
218
219
|
}
|
|
219
|
-
function
|
|
220
|
+
function I(l, s) {
|
|
220
221
|
const { currentType: c } = s;
|
|
221
222
|
if (c !== 7)
|
|
222
223
|
return !1;
|
|
223
|
-
|
|
224
|
-
const
|
|
225
|
-
return l.resetPeek(),
|
|
224
|
+
R(l);
|
|
225
|
+
const y = l.currentPeek() === ".";
|
|
226
|
+
return l.resetPeek(), y;
|
|
226
227
|
}
|
|
227
228
|
function v(l, s) {
|
|
228
229
|
const { currentType: c } = s;
|
|
229
230
|
if (c !== 8)
|
|
230
231
|
return !1;
|
|
231
|
-
|
|
232
|
-
const
|
|
233
|
-
return l.resetPeek(),
|
|
232
|
+
R(l);
|
|
233
|
+
const y = p(l.currentPeek());
|
|
234
|
+
return l.resetPeek(), y;
|
|
234
235
|
}
|
|
235
|
-
function
|
|
236
|
+
function k(l, s) {
|
|
236
237
|
const { currentType: c } = s;
|
|
237
238
|
if (!(c === 7 || c === 11))
|
|
238
239
|
return !1;
|
|
239
|
-
|
|
240
|
-
const
|
|
241
|
-
return l.resetPeek(),
|
|
240
|
+
R(l);
|
|
241
|
+
const y = l.currentPeek() === ":";
|
|
242
|
+
return l.resetPeek(), y;
|
|
242
243
|
}
|
|
243
244
|
function L(l, s) {
|
|
244
245
|
const { currentType: c } = s;
|
|
245
246
|
if (c !== 9)
|
|
246
247
|
return !1;
|
|
247
|
-
const
|
|
248
|
+
const y = () => {
|
|
248
249
|
const G = l.currentPeek();
|
|
249
|
-
return G === "{" ? p(l.peek()) : G === "@" || G === "|" || G === ":" || G === "." || G === je || !G ? !1 : G ===
|
|
250
|
-
},
|
|
251
|
-
return l.resetPeek(),
|
|
250
|
+
return G === "{" ? p(l.peek()) : G === "@" || G === "|" || G === ":" || G === "." || G === je || !G ? !1 : G === ye ? (l.peek(), y()) : x(l, !1);
|
|
251
|
+
}, U = y();
|
|
252
|
+
return l.resetPeek(), U;
|
|
252
253
|
}
|
|
253
254
|
function H(l) {
|
|
254
|
-
|
|
255
|
+
R(l);
|
|
255
256
|
const s = l.currentPeek() === "|";
|
|
256
257
|
return l.resetPeek(), s;
|
|
257
258
|
}
|
|
258
|
-
function
|
|
259
|
-
const c = (
|
|
259
|
+
function x(l, s = !0) {
|
|
260
|
+
const c = (U = !1, G = "") => {
|
|
260
261
|
const u = l.currentPeek();
|
|
261
|
-
return u === "{" || u === "@" || !u ?
|
|
262
|
-
},
|
|
263
|
-
return s && l.resetPeek(),
|
|
262
|
+
return u === "{" || u === "@" || !u ? U : u === "|" ? !(G === je || G === ye) : u === je ? (l.peek(), c(!0, je)) : u === ye ? (l.peek(), c(!0, ye)) : !0;
|
|
263
|
+
}, y = c();
|
|
264
|
+
return s && l.resetPeek(), y;
|
|
264
265
|
}
|
|
265
266
|
function _(l, s) {
|
|
266
267
|
const c = l.currentChar();
|
|
@@ -286,7 +287,7 @@ function qr(e, t = {}) {
|
|
|
286
287
|
s === 36 || // $
|
|
287
288
|
s === 45;
|
|
288
289
|
}
|
|
289
|
-
function
|
|
290
|
+
function D(l) {
|
|
290
291
|
return _(l, F);
|
|
291
292
|
}
|
|
292
293
|
function V(l) {
|
|
@@ -317,8 +318,8 @@ function qr(e, t = {}) {
|
|
|
317
318
|
const c = l.currentChar();
|
|
318
319
|
if (c === "{" || c === "}" || c === "@" || c === "|" || !c)
|
|
319
320
|
break;
|
|
320
|
-
if (c === je || c ===
|
|
321
|
-
if (
|
|
321
|
+
if (c === je || c === ye)
|
|
322
|
+
if (x(l))
|
|
322
323
|
s += c, l.next();
|
|
323
324
|
else {
|
|
324
325
|
if (H(l))
|
|
@@ -333,25 +334,25 @@ function qr(e, t = {}) {
|
|
|
333
334
|
function me(l) {
|
|
334
335
|
M(l);
|
|
335
336
|
let s = "", c = "";
|
|
336
|
-
for (; s =
|
|
337
|
+
for (; s = D(l); )
|
|
337
338
|
c += s;
|
|
338
|
-
return l.currentChar() === Ze &&
|
|
339
|
+
return l.currentChar() === Ze && C(ne.UNTERMINATED_CLOSING_BRACE, o(), 0), c;
|
|
339
340
|
}
|
|
340
341
|
function ve(l) {
|
|
341
342
|
M(l);
|
|
342
343
|
let s = "";
|
|
343
|
-
return l.currentChar() === "-" ? (l.next(), s += `-${te(l)}`) : s += te(l), l.currentChar() === Ze &&
|
|
344
|
+
return l.currentChar() === "-" ? (l.next(), s += `-${te(l)}`) : s += te(l), l.currentChar() === Ze && C(ne.UNTERMINATED_CLOSING_BRACE, o(), 0), s;
|
|
344
345
|
}
|
|
345
346
|
function he(l) {
|
|
346
|
-
return l !== ln && l !==
|
|
347
|
+
return l !== ln && l !== ye;
|
|
347
348
|
}
|
|
348
349
|
function ae(l) {
|
|
349
|
-
M(l),
|
|
350
|
+
M(l), A(l, "'");
|
|
350
351
|
let s = "", c = "";
|
|
351
352
|
for (; s = _(l, he); )
|
|
352
353
|
s === "\\" ? c += le(l) : c += s;
|
|
353
|
-
const
|
|
354
|
-
return
|
|
354
|
+
const y = l.currentChar();
|
|
355
|
+
return y === ye || y === Ze ? (C(ne.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), y === ye && (l.next(), A(l, "'")), c) : (A(l, "'"), c);
|
|
355
356
|
}
|
|
356
357
|
function le(l) {
|
|
357
358
|
const s = l.currentChar();
|
|
@@ -360,28 +361,28 @@ function qr(e, t = {}) {
|
|
|
360
361
|
case "'":
|
|
361
362
|
return l.next(), `\\${s}`;
|
|
362
363
|
case "u":
|
|
363
|
-
return
|
|
364
|
+
return ke(l, s, 4);
|
|
364
365
|
case "U":
|
|
365
|
-
return
|
|
366
|
+
return ke(l, s, 6);
|
|
366
367
|
default:
|
|
367
|
-
return
|
|
368
|
+
return C(ne.UNKNOWN_ESCAPE_SEQUENCE, o(), 0, s), "";
|
|
368
369
|
}
|
|
369
370
|
}
|
|
370
|
-
function
|
|
371
|
-
|
|
372
|
-
let
|
|
373
|
-
for (let
|
|
371
|
+
function ke(l, s, c) {
|
|
372
|
+
A(l, s);
|
|
373
|
+
let y = "";
|
|
374
|
+
for (let U = 0; U < c; U++) {
|
|
374
375
|
const G = B(l);
|
|
375
376
|
if (!G) {
|
|
376
|
-
|
|
377
|
+
C(ne.INVALID_UNICODE_ESCAPE_SEQUENCE, o(), 0, `\\${s}${y}${l.currentChar()}`);
|
|
377
378
|
break;
|
|
378
379
|
}
|
|
379
|
-
|
|
380
|
+
y += G;
|
|
380
381
|
}
|
|
381
|
-
return `\\${s}${
|
|
382
|
+
return `\\${s}${y}`;
|
|
382
383
|
}
|
|
383
384
|
function Y(l) {
|
|
384
|
-
return l !== "{" && l !== "}" && l !== je && l !==
|
|
385
|
+
return l !== "{" && l !== "}" && l !== je && l !== ye;
|
|
385
386
|
}
|
|
386
387
|
function fe(l) {
|
|
387
388
|
M(l);
|
|
@@ -390,7 +391,7 @@ function qr(e, t = {}) {
|
|
|
390
391
|
c += s;
|
|
391
392
|
return c;
|
|
392
393
|
}
|
|
393
|
-
function
|
|
394
|
+
function $e(l) {
|
|
394
395
|
let s = "", c = "";
|
|
395
396
|
for (; s = P(l); )
|
|
396
397
|
c += s;
|
|
@@ -398,53 +399,53 @@ function qr(e, t = {}) {
|
|
|
398
399
|
}
|
|
399
400
|
function Qe(l) {
|
|
400
401
|
const s = (c) => {
|
|
401
|
-
const
|
|
402
|
-
return
|
|
402
|
+
const y = l.currentChar();
|
|
403
|
+
return y === "{" || y === "@" || y === "|" || y === "(" || y === ")" || !y || y === je ? c : (c += y, l.next(), s(c));
|
|
403
404
|
};
|
|
404
405
|
return s("");
|
|
405
406
|
}
|
|
406
407
|
function Ve(l) {
|
|
407
408
|
M(l);
|
|
408
|
-
const s =
|
|
409
|
+
const s = A(
|
|
409
410
|
l,
|
|
410
411
|
"|"
|
|
411
412
|
/* TokenChars.Pipe */
|
|
412
413
|
);
|
|
413
414
|
return M(l), s;
|
|
414
415
|
}
|
|
415
|
-
function
|
|
416
|
+
function De(l, s) {
|
|
416
417
|
let c = null;
|
|
417
418
|
switch (l.currentChar()) {
|
|
418
419
|
case "{":
|
|
419
|
-
return s.braceNest >= 1 &&
|
|
420
|
+
return s.braceNest >= 1 && C(ne.NOT_ALLOW_NEST_PLACEHOLDER, o(), 0), l.next(), c = T(
|
|
420
421
|
s,
|
|
421
422
|
2,
|
|
422
423
|
"{"
|
|
423
424
|
/* TokenChars.BraceLeft */
|
|
424
425
|
), M(l), s.braceNest++, c;
|
|
425
426
|
case "}":
|
|
426
|
-
return s.braceNest > 0 && s.currentType === 2 &&
|
|
427
|
+
return s.braceNest > 0 && s.currentType === 2 && C(ne.EMPTY_PLACEHOLDER, o(), 0), l.next(), c = T(
|
|
427
428
|
s,
|
|
428
429
|
3,
|
|
429
430
|
"}"
|
|
430
431
|
/* TokenChars.BraceRight */
|
|
431
432
|
), s.braceNest--, s.braceNest > 0 && M(l), s.inLinked && s.braceNest === 0 && (s.inLinked = !1), c;
|
|
432
433
|
case "@":
|
|
433
|
-
return s.braceNest > 0 &&
|
|
434
|
+
return s.braceNest > 0 && C(ne.UNTERMINATED_CLOSING_BRACE, o(), 0), c = Fe(l, s) || w(s), s.braceNest = 0, c;
|
|
434
435
|
default: {
|
|
435
|
-
let
|
|
436
|
+
let U = !0, G = !0, u = !0;
|
|
436
437
|
if (H(l))
|
|
437
|
-
return s.braceNest > 0 &&
|
|
438
|
+
return s.braceNest > 0 && C(ne.UNTERMINATED_CLOSING_BRACE, o(), 0), c = T(s, 1, Ve(l)), s.braceNest = 0, s.inLinked = !1, c;
|
|
438
439
|
if (s.braceNest > 0 && (s.currentType === 4 || s.currentType === 5 || s.currentType === 6))
|
|
439
|
-
return
|
|
440
|
-
if (
|
|
441
|
-
return c =
|
|
440
|
+
return C(ne.UNTERMINATED_CLOSING_BRACE, o(), 0), s.braceNest = 0, We(l, s);
|
|
441
|
+
if (U = S(l, s))
|
|
442
|
+
return c = T(s, 4, me(l)), M(l), c;
|
|
442
443
|
if (G = d(l, s))
|
|
443
|
-
return c =
|
|
444
|
+
return c = T(s, 5, ve(l)), M(l), c;
|
|
444
445
|
if (u = g(l, s))
|
|
445
|
-
return c =
|
|
446
|
-
if (!
|
|
447
|
-
return c =
|
|
446
|
+
return c = T(s, 6, ae(l)), M(l), c;
|
|
447
|
+
if (!U && !G && !u)
|
|
448
|
+
return c = T(s, 12, fe(l)), C(ne.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, c.value), M(l), c;
|
|
448
449
|
break;
|
|
449
450
|
}
|
|
450
451
|
}
|
|
@@ -452,32 +453,32 @@ function qr(e, t = {}) {
|
|
|
452
453
|
}
|
|
453
454
|
function Fe(l, s) {
|
|
454
455
|
const { currentType: c } = s;
|
|
455
|
-
let
|
|
456
|
-
const
|
|
457
|
-
switch ((c === 7 || c === 8 || c === 11 || c === 9) && (
|
|
456
|
+
let y = null;
|
|
457
|
+
const U = l.currentChar();
|
|
458
|
+
switch ((c === 7 || c === 8 || c === 11 || c === 9) && (U === ye || U === je) && C(ne.INVALID_LINKED_FORMAT, o(), 0), U) {
|
|
458
459
|
case "@":
|
|
459
|
-
return l.next(),
|
|
460
|
+
return l.next(), y = T(
|
|
460
461
|
s,
|
|
461
462
|
7,
|
|
462
463
|
"@"
|
|
463
464
|
/* TokenChars.LinkedAlias */
|
|
464
|
-
), s.inLinked = !0,
|
|
465
|
+
), s.inLinked = !0, y;
|
|
465
466
|
case ".":
|
|
466
|
-
return M(l), l.next(),
|
|
467
|
+
return M(l), l.next(), T(
|
|
467
468
|
s,
|
|
468
469
|
8,
|
|
469
470
|
"."
|
|
470
471
|
/* TokenChars.LinkedDot */
|
|
471
472
|
);
|
|
472
473
|
case ":":
|
|
473
|
-
return M(l), l.next(),
|
|
474
|
+
return M(l), l.next(), T(
|
|
474
475
|
s,
|
|
475
476
|
9,
|
|
476
477
|
":"
|
|
477
478
|
/* TokenChars.LinkedDelimiter */
|
|
478
479
|
);
|
|
479
480
|
default:
|
|
480
|
-
return H(l) ? (
|
|
481
|
+
return H(l) ? (y = T(s, 1, Ve(l)), s.braceNest = 0, s.inLinked = !1, y) : I(l, s) || k(l, s) ? (M(l), Fe(l, s)) : v(l, s) ? (M(l), T(s, 11, $e(l))) : L(l, s) ? (M(l), U === "{" ? De(l, s) || y : T(s, 10, Qe(l))) : (c === 7 && C(ne.INVALID_LINKED_FORMAT, o(), 0), s.braceNest = 0, s.inLinked = !1, We(l, s));
|
|
481
482
|
}
|
|
482
483
|
}
|
|
483
484
|
function We(l, s) {
|
|
@@ -486,34 +487,34 @@ function qr(e, t = {}) {
|
|
|
486
487
|
/* TokenTypes.EOF */
|
|
487
488
|
};
|
|
488
489
|
if (s.braceNest > 0)
|
|
489
|
-
return
|
|
490
|
+
return De(l, s) || w(s);
|
|
490
491
|
if (s.inLinked)
|
|
491
|
-
return Fe(l, s) ||
|
|
492
|
+
return Fe(l, s) || w(s);
|
|
492
493
|
switch (l.currentChar()) {
|
|
493
494
|
case "{":
|
|
494
|
-
return
|
|
495
|
+
return De(l, s) || w(s);
|
|
495
496
|
case "}":
|
|
496
|
-
return
|
|
497
|
+
return C(ne.UNBALANCED_CLOSING_BRACE, o(), 0), l.next(), T(
|
|
497
498
|
s,
|
|
498
499
|
3,
|
|
499
500
|
"}"
|
|
500
501
|
/* TokenChars.BraceRight */
|
|
501
502
|
);
|
|
502
503
|
case "@":
|
|
503
|
-
return Fe(l, s) ||
|
|
504
|
+
return Fe(l, s) || w(s);
|
|
504
505
|
default: {
|
|
505
506
|
if (H(l))
|
|
506
|
-
return c =
|
|
507
|
-
if (
|
|
508
|
-
return
|
|
507
|
+
return c = T(s, 1, Ve(l)), s.braceNest = 0, s.inLinked = !1, c;
|
|
508
|
+
if (x(l))
|
|
509
|
+
return T(s, 0, z(l));
|
|
509
510
|
break;
|
|
510
511
|
}
|
|
511
512
|
}
|
|
512
513
|
return c;
|
|
513
514
|
}
|
|
514
515
|
function Pe() {
|
|
515
|
-
const { currentType: l, offset: s, startLoc: c, endLoc:
|
|
516
|
-
return i.lastType = l, i.lastOffset = s, i.lastStartLoc = c, i.lastEndLoc =
|
|
516
|
+
const { currentType: l, offset: s, startLoc: c, endLoc: y } = i;
|
|
517
|
+
return i.lastType = l, i.lastOffset = s, i.lastStartLoc = c, i.lastEndLoc = y, i.offset = a(), i.startLoc = o(), r.currentChar() === Ze ? T(
|
|
517
518
|
i,
|
|
518
519
|
13
|
|
519
520
|
/* TokenTypes.EOF */
|
|
@@ -542,13 +543,13 @@ function ns(e, t, n) {
|
|
|
542
543
|
function rs(e = {}) {
|
|
543
544
|
const t = e.location !== !1, { onError: n } = e;
|
|
544
545
|
function r(p, h, S, d, ...g) {
|
|
545
|
-
const
|
|
546
|
-
if (
|
|
547
|
-
const v = t ?
|
|
546
|
+
const I = p.currentPosition();
|
|
547
|
+
if (I.offset += d, I.column += d, n) {
|
|
548
|
+
const v = t ? Dt(S, I) : null, k = Ct(h, v, {
|
|
548
549
|
domain: es,
|
|
549
550
|
args: g
|
|
550
551
|
});
|
|
551
|
-
n(
|
|
552
|
+
n(k);
|
|
552
553
|
}
|
|
553
554
|
}
|
|
554
555
|
function a(p, h, S) {
|
|
@@ -563,54 +564,54 @@ function rs(e = {}) {
|
|
|
563
564
|
return d.value = h, o(d, p.currentOffset(), p.currentPosition()), d;
|
|
564
565
|
}
|
|
565
566
|
function m(p, h) {
|
|
566
|
-
const S = p.context(), { lastOffset: d, lastStartLoc: g } = S,
|
|
567
|
-
return
|
|
567
|
+
const S = p.context(), { lastOffset: d, lastStartLoc: g } = S, I = a(5, d, g);
|
|
568
|
+
return I.index = parseInt(h, 10), p.nextToken(), o(I, p.currentOffset(), p.currentPosition()), I;
|
|
568
569
|
}
|
|
569
570
|
function i(p, h) {
|
|
570
|
-
const S = p.context(), { lastOffset: d, lastStartLoc: g } = S,
|
|
571
|
-
return
|
|
571
|
+
const S = p.context(), { lastOffset: d, lastStartLoc: g } = S, I = a(4, d, g);
|
|
572
|
+
return I.key = h, p.nextToken(), o(I, p.currentOffset(), p.currentPosition()), I;
|
|
572
573
|
}
|
|
573
574
|
function b(p, h) {
|
|
574
|
-
const S = p.context(), { lastOffset: d, lastStartLoc: g } = S,
|
|
575
|
-
return
|
|
575
|
+
const S = p.context(), { lastOffset: d, lastStartLoc: g } = S, I = a(9, d, g);
|
|
576
|
+
return I.value = h.replace(ts, ns), p.nextToken(), o(I, p.currentOffset(), p.currentPosition()), I;
|
|
576
577
|
}
|
|
577
578
|
function E(p) {
|
|
578
|
-
const h = p.nextToken(), S = p.context(), { lastOffset: d, lastStartLoc: g } = S,
|
|
579
|
-
return h.type !== 11 ? (r(p, ne.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0),
|
|
579
|
+
const h = p.nextToken(), S = p.context(), { lastOffset: d, lastStartLoc: g } = S, I = a(8, d, g);
|
|
580
|
+
return h.type !== 11 ? (r(p, ne.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), I.value = "", o(I, d, g), {
|
|
580
581
|
nextConsumeToken: h,
|
|
581
|
-
node:
|
|
582
|
-
}) : (h.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0,
|
|
583
|
-
node:
|
|
582
|
+
node: I
|
|
583
|
+
}) : (h.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, Ae(h)), I.value = h.value || "", o(I, p.currentOffset(), p.currentPosition()), {
|
|
584
|
+
node: I
|
|
584
585
|
});
|
|
585
586
|
}
|
|
586
|
-
function
|
|
587
|
+
function C(p, h) {
|
|
587
588
|
const S = p.context(), d = a(7, S.offset, S.startLoc);
|
|
588
589
|
return d.value = h, o(d, p.currentOffset(), p.currentPosition()), d;
|
|
589
590
|
}
|
|
590
|
-
function
|
|
591
|
+
function T(p) {
|
|
591
592
|
const h = p.context(), S = a(6, h.offset, h.startLoc);
|
|
592
593
|
let d = p.nextToken();
|
|
593
594
|
if (d.type === 8) {
|
|
594
595
|
const g = E(p);
|
|
595
596
|
S.modifier = g.node, d = g.nextConsumeToken || p.nextToken();
|
|
596
597
|
}
|
|
597
|
-
switch (d.type !== 9 && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
598
|
+
switch (d.type !== 9 && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(d)), d = p.nextToken(), d.type === 2 && (d = p.nextToken()), d.type) {
|
|
598
599
|
case 10:
|
|
599
|
-
d.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
600
|
+
d.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(d)), S.key = C(p, d.value || "");
|
|
600
601
|
break;
|
|
601
602
|
case 4:
|
|
602
|
-
d.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
603
|
+
d.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(d)), S.key = i(p, d.value || "");
|
|
603
604
|
break;
|
|
604
605
|
case 5:
|
|
605
|
-
d.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
606
|
+
d.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(d)), S.key = m(p, d.value || "");
|
|
606
607
|
break;
|
|
607
608
|
case 6:
|
|
608
|
-
d.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
609
|
+
d.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(d)), S.key = b(p, d.value || "");
|
|
609
610
|
break;
|
|
610
611
|
default: {
|
|
611
612
|
r(p, ne.UNEXPECTED_EMPTY_LINKED_KEY, h.lastStartLoc, 0);
|
|
612
|
-
const g = p.context(),
|
|
613
|
-
return
|
|
613
|
+
const g = p.context(), I = a(7, g.offset, g.startLoc);
|
|
614
|
+
return I.value = "", o(I, g.offset, g.startLoc), S.key = I, o(S, g.offset, g.startLoc), {
|
|
614
615
|
nextConsumeToken: d,
|
|
615
616
|
node: S
|
|
616
617
|
};
|
|
@@ -620,57 +621,57 @@ function rs(e = {}) {
|
|
|
620
621
|
node: S
|
|
621
622
|
};
|
|
622
623
|
}
|
|
623
|
-
function
|
|
624
|
+
function w(p) {
|
|
624
625
|
const h = p.context(), S = h.currentType === 1 ? p.currentOffset() : h.offset, d = h.currentType === 1 ? h.endLoc : h.startLoc, g = a(2, S, d);
|
|
625
626
|
g.items = [];
|
|
626
|
-
let
|
|
627
|
+
let I = null;
|
|
627
628
|
do {
|
|
628
|
-
const L =
|
|
629
|
-
switch (
|
|
629
|
+
const L = I || p.nextToken();
|
|
630
|
+
switch (I = null, L.type) {
|
|
630
631
|
case 0:
|
|
631
|
-
L.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
632
|
+
L.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(L)), g.items.push(f(p, L.value || ""));
|
|
632
633
|
break;
|
|
633
634
|
case 5:
|
|
634
|
-
L.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
635
|
+
L.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(L)), g.items.push(m(p, L.value || ""));
|
|
635
636
|
break;
|
|
636
637
|
case 4:
|
|
637
|
-
L.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
638
|
+
L.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(L)), g.items.push(i(p, L.value || ""));
|
|
638
639
|
break;
|
|
639
640
|
case 6:
|
|
640
|
-
L.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
641
|
+
L.value == null && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(L)), g.items.push(b(p, L.value || ""));
|
|
641
642
|
break;
|
|
642
643
|
case 7: {
|
|
643
|
-
const H =
|
|
644
|
-
g.items.push(H.node),
|
|
644
|
+
const H = T(p);
|
|
645
|
+
g.items.push(H.node), I = H.nextConsumeToken || null;
|
|
645
646
|
break;
|
|
646
647
|
}
|
|
647
648
|
}
|
|
648
649
|
} while (h.currentType !== 13 && h.currentType !== 1);
|
|
649
|
-
const v = h.currentType === 1 ? h.lastOffset : p.currentOffset(),
|
|
650
|
-
return o(g, v,
|
|
650
|
+
const v = h.currentType === 1 ? h.lastOffset : p.currentOffset(), k = h.currentType === 1 ? h.lastEndLoc : p.currentPosition();
|
|
651
|
+
return o(g, v, k), g;
|
|
651
652
|
}
|
|
652
|
-
function
|
|
653
|
+
function A(p, h, S, d) {
|
|
653
654
|
const g = p.context();
|
|
654
|
-
let
|
|
655
|
+
let I = d.items.length === 0;
|
|
655
656
|
const v = a(1, h, S);
|
|
656
657
|
v.cases = [], v.cases.push(d);
|
|
657
658
|
do {
|
|
658
|
-
const
|
|
659
|
-
|
|
659
|
+
const k = w(p);
|
|
660
|
+
I || (I = k.items.length === 0), v.cases.push(k);
|
|
660
661
|
} while (g.currentType !== 13);
|
|
661
|
-
return
|
|
662
|
+
return I && r(p, ne.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), o(v, p.currentOffset(), p.currentPosition()), v;
|
|
662
663
|
}
|
|
663
|
-
function
|
|
664
|
-
const h = p.context(), { offset: S, startLoc: d } = h, g =
|
|
665
|
-
return h.currentType === 13 ? g :
|
|
664
|
+
function R(p) {
|
|
665
|
+
const h = p.context(), { offset: S, startLoc: d } = h, g = w(p);
|
|
666
|
+
return h.currentType === 13 ? g : A(p, S, d, g);
|
|
666
667
|
}
|
|
667
668
|
function M(p) {
|
|
668
669
|
const h = qr(p, ge({}, e)), S = h.context(), d = a(0, S.offset, S.startLoc);
|
|
669
|
-
return t && d.loc && (d.loc.source = p), d.body =
|
|
670
|
+
return t && d.loc && (d.loc.source = p), d.body = R(h), e.onCacheKey && (d.cacheKey = e.onCacheKey(p)), S.currentType !== 13 && r(h, ne.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, p[S.offset] || ""), o(d, h.currentOffset(), h.currentPosition()), d;
|
|
670
671
|
}
|
|
671
672
|
return { parse: M };
|
|
672
673
|
}
|
|
673
|
-
function
|
|
674
|
+
function Ae(e) {
|
|
674
675
|
if (e.type === 13)
|
|
675
676
|
return "EOF";
|
|
676
677
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
@@ -685,9 +686,9 @@ function ss(e, t = {}) {
|
|
|
685
686
|
}
|
|
686
687
|
function cn(e, t) {
|
|
687
688
|
for (let n = 0; n < e.length; n++)
|
|
688
|
-
|
|
689
|
+
$t(e[n], t);
|
|
689
690
|
}
|
|
690
|
-
function
|
|
691
|
+
function $t(e, t) {
|
|
691
692
|
switch (e.type) {
|
|
692
693
|
case 1:
|
|
693
694
|
cn(e.cases, t), t.helper(
|
|
@@ -699,7 +700,7 @@ function Jt(e, t) {
|
|
|
699
700
|
cn(e.items, t);
|
|
700
701
|
break;
|
|
701
702
|
case 6: {
|
|
702
|
-
|
|
703
|
+
$t(e.key, t), t.helper(
|
|
703
704
|
"linked"
|
|
704
705
|
/* HelperNameMap.LINKED */
|
|
705
706
|
), t.helper(
|
|
@@ -733,7 +734,7 @@ function as(e, t = {}) {
|
|
|
733
734
|
n.helper(
|
|
734
735
|
"normalize"
|
|
735
736
|
/* HelperNameMap.NORMALIZE */
|
|
736
|
-
), e.body &&
|
|
737
|
+
), e.body && $t(e.body, n);
|
|
737
738
|
const r = n.context();
|
|
738
739
|
e.helpers = Array.from(r.helpers);
|
|
739
740
|
}
|
|
@@ -823,31 +824,31 @@ function ls(e, t) {
|
|
|
823
824
|
};
|
|
824
825
|
o && e.loc && (f.source = e.loc.source);
|
|
825
826
|
const m = () => f;
|
|
826
|
-
function i(
|
|
827
|
-
f.code +=
|
|
827
|
+
function i(R, M) {
|
|
828
|
+
f.code += R;
|
|
828
829
|
}
|
|
829
|
-
function b(
|
|
830
|
+
function b(R, M = !0) {
|
|
830
831
|
const p = M ? r : "";
|
|
831
|
-
i(a ? p + " ".repeat(
|
|
832
|
+
i(a ? p + " ".repeat(R) : p);
|
|
832
833
|
}
|
|
833
|
-
function E(
|
|
834
|
+
function E(R = !0) {
|
|
834
835
|
const M = ++f.indentLevel;
|
|
835
|
-
|
|
836
|
+
R && b(M);
|
|
836
837
|
}
|
|
837
|
-
function
|
|
838
|
+
function C(R = !0) {
|
|
838
839
|
const M = --f.indentLevel;
|
|
839
|
-
|
|
840
|
+
R && b(M);
|
|
840
841
|
}
|
|
841
|
-
function
|
|
842
|
+
function T() {
|
|
842
843
|
b(f.indentLevel);
|
|
843
844
|
}
|
|
844
845
|
return {
|
|
845
846
|
context: m,
|
|
846
847
|
push: i,
|
|
847
848
|
indent: E,
|
|
848
|
-
deindent:
|
|
849
|
-
newline:
|
|
850
|
-
helper: (
|
|
849
|
+
deindent: C,
|
|
850
|
+
newline: T,
|
|
851
|
+
helper: (R) => `_${R}`,
|
|
851
852
|
needIndent: () => f.needIndent
|
|
852
853
|
};
|
|
853
854
|
}
|
|
@@ -956,7 +957,7 @@ function fs(e, t = {}) {
|
|
|
956
957
|
}
|
|
957
958
|
var _s = { env: { NODE_ENV: "production" } };
|
|
958
959
|
function ps() {
|
|
959
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
960
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Je().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Je().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
960
961
|
}
|
|
961
962
|
function Lt(e) {
|
|
962
963
|
return (n) => vs(n, e);
|
|
@@ -968,8 +969,8 @@ function vs(e, t) {
|
|
|
968
969
|
0
|
|
969
970
|
/* NodeTypes.Resource */
|
|
970
971
|
);
|
|
971
|
-
if (
|
|
972
|
-
const o =
|
|
972
|
+
if (Jt(n) === 1) {
|
|
973
|
+
const o = ys(n);
|
|
973
974
|
return e.plural(o.reduce((f, m) => [
|
|
974
975
|
...f,
|
|
975
976
|
dn(e, m)
|
|
@@ -982,7 +983,7 @@ function bs(e) {
|
|
|
982
983
|
return Xe(e, hs);
|
|
983
984
|
}
|
|
984
985
|
const gs = ["c", "cases"];
|
|
985
|
-
function
|
|
986
|
+
function ys(e) {
|
|
986
987
|
return Xe(e, gs, []);
|
|
987
988
|
}
|
|
988
989
|
function dn(e, t) {
|
|
@@ -990,20 +991,20 @@ function dn(e, t) {
|
|
|
990
991
|
if (n != null)
|
|
991
992
|
return e.type === "text" ? n : e.normalize([n]);
|
|
992
993
|
{
|
|
993
|
-
const r =
|
|
994
|
+
const r = Cs(t).reduce((a, o) => [...a, Ft(e, o)], []);
|
|
994
995
|
return e.normalize(r);
|
|
995
996
|
}
|
|
996
997
|
}
|
|
997
|
-
const
|
|
998
|
+
const Is = ["s", "static"];
|
|
998
999
|
function Es(e) {
|
|
999
|
-
return Xe(e,
|
|
1000
|
+
return Xe(e, Is);
|
|
1000
1001
|
}
|
|
1001
|
-
const
|
|
1002
|
-
function
|
|
1003
|
-
return Xe(e,
|
|
1002
|
+
const Ns = ["i", "items"];
|
|
1003
|
+
function Cs(e) {
|
|
1004
|
+
return Xe(e, Ns, []);
|
|
1004
1005
|
}
|
|
1005
1006
|
function Ft(e, t) {
|
|
1006
|
-
const n =
|
|
1007
|
+
const n = Jt(t);
|
|
1007
1008
|
switch (n) {
|
|
1008
1009
|
case 3:
|
|
1009
1010
|
return _t(t, n);
|
|
@@ -1026,7 +1027,7 @@ function Ft(e, t) {
|
|
|
1026
1027
|
throw ct(n);
|
|
1027
1028
|
}
|
|
1028
1029
|
case 6: {
|
|
1029
|
-
const r = t, a = Ls(r), o =
|
|
1030
|
+
const r = t, a = Ls(r), o = ks(r);
|
|
1030
1031
|
return e.linked(Ft(e, o), a ? Ft(e, a) : void 0, e.type);
|
|
1031
1032
|
}
|
|
1032
1033
|
case 7:
|
|
@@ -1037,9 +1038,9 @@ function Ft(e, t) {
|
|
|
1037
1038
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1038
1039
|
}
|
|
1039
1040
|
}
|
|
1040
|
-
const
|
|
1041
|
-
function
|
|
1042
|
-
return Xe(e,
|
|
1041
|
+
const Ts = ["t", "type"];
|
|
1042
|
+
function Jt(e) {
|
|
1043
|
+
return Xe(e, Ts);
|
|
1043
1044
|
}
|
|
1044
1045
|
const Os = ["v", "value"];
|
|
1045
1046
|
function _t(e, t) {
|
|
@@ -1052,9 +1053,9 @@ const Ss = ["m", "modifier"];
|
|
|
1052
1053
|
function Ls(e) {
|
|
1053
1054
|
return Xe(e, Ss);
|
|
1054
1055
|
}
|
|
1055
|
-
const
|
|
1056
|
-
function
|
|
1057
|
-
const t = Xe(e,
|
|
1056
|
+
const Rs = ["k", "key"];
|
|
1057
|
+
function ks(e) {
|
|
1058
|
+
const t = Xe(e, Rs);
|
|
1058
1059
|
if (t)
|
|
1059
1060
|
return t;
|
|
1060
1061
|
throw ct(
|
|
@@ -1073,10 +1074,10 @@ function Xe(e, t, n) {
|
|
|
1073
1074
|
function ct(e) {
|
|
1074
1075
|
return new Error(`unhandled node type: ${e}`);
|
|
1075
1076
|
}
|
|
1076
|
-
const
|
|
1077
|
+
const As = (e) => e;
|
|
1077
1078
|
let pt = se();
|
|
1078
1079
|
function ot(e) {
|
|
1079
|
-
return ee(e) &&
|
|
1080
|
+
return ee(e) && Jt(e) === 0 && (Le(e, "b") || Le(e, "body"));
|
|
1080
1081
|
}
|
|
1081
1082
|
function Ms(e, t = {}) {
|
|
1082
1083
|
let n = !1;
|
|
@@ -1086,10 +1087,10 @@ function Ms(e, t = {}) {
|
|
|
1086
1087
|
}, { ...fs(e, t), detectError: n };
|
|
1087
1088
|
}
|
|
1088
1089
|
// @__NO_SIDE_EFFECTS__
|
|
1089
|
-
function
|
|
1090
|
+
function ws(e, t) {
|
|
1090
1091
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && W(e)) {
|
|
1091
1092
|
_e(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1092
|
-
const r = (t.onCacheKey ||
|
|
1093
|
+
const r = (t.onCacheKey || As)(e), a = pt[r];
|
|
1093
1094
|
if (a)
|
|
1094
1095
|
return a;
|
|
1095
1096
|
const { ast: o, detectError: f } = Ms(e, {
|
|
@@ -1108,7 +1109,7 @@ function Ds(e, t) {
|
|
|
1108
1109
|
}
|
|
1109
1110
|
}
|
|
1110
1111
|
let ut = null;
|
|
1111
|
-
function
|
|
1112
|
+
function Ds(e) {
|
|
1112
1113
|
ut = e;
|
|
1113
1114
|
}
|
|
1114
1115
|
function Fs(e, t, n) {
|
|
@@ -1123,7 +1124,7 @@ const Ps = /* @__PURE__ */ js("function:translate");
|
|
|
1123
1124
|
function js(e) {
|
|
1124
1125
|
return (t) => ut && ut.emit(e, t);
|
|
1125
1126
|
}
|
|
1126
|
-
const
|
|
1127
|
+
const Ue = {
|
|
1127
1128
|
INVALID_ARGUMENT: Br,
|
|
1128
1129
|
// 17
|
|
1129
1130
|
INVALID_DATE_ARGUMENT: 18,
|
|
@@ -1131,31 +1132,31 @@ const xe = {
|
|
|
1131
1132
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1132
1133
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1133
1134
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1134
|
-
},
|
|
1135
|
-
function
|
|
1136
|
-
return
|
|
1135
|
+
}, Us = 24;
|
|
1136
|
+
function xe(e) {
|
|
1137
|
+
return Ct(e, null, void 0);
|
|
1137
1138
|
}
|
|
1138
1139
|
function Kt(e, t) {
|
|
1139
1140
|
return t.locale != null ? mn(t.locale) : mn(e.locale);
|
|
1140
1141
|
}
|
|
1141
|
-
let
|
|
1142
|
+
let Rt;
|
|
1142
1143
|
function mn(e) {
|
|
1143
1144
|
if (W(e))
|
|
1144
1145
|
return e;
|
|
1145
1146
|
if (ue(e)) {
|
|
1146
|
-
if (e.resolvedOnce &&
|
|
1147
|
-
return
|
|
1147
|
+
if (e.resolvedOnce && Rt != null)
|
|
1148
|
+
return Rt;
|
|
1148
1149
|
if (e.constructor.name === "Function") {
|
|
1149
1150
|
const t = e();
|
|
1150
1151
|
if (Wr(t))
|
|
1151
|
-
throw Ue
|
|
1152
|
-
return
|
|
1152
|
+
throw xe(Ue.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1153
|
+
return Rt = t;
|
|
1153
1154
|
} else
|
|
1154
|
-
throw Ue
|
|
1155
|
+
throw xe(Ue.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1155
1156
|
} else
|
|
1156
|
-
throw Ue
|
|
1157
|
+
throw xe(Ue.NOT_SUPPORT_LOCALE_TYPE);
|
|
1157
1158
|
}
|
|
1158
|
-
function
|
|
1159
|
+
function xs(e, t, n) {
|
|
1159
1160
|
return [.../* @__PURE__ */ new Set([
|
|
1160
1161
|
n,
|
|
1161
1162
|
...pe(t) ? t : ee(t) ? Object.keys(t) : W(t) ? [t] : [n]
|
|
@@ -1401,65 +1402,65 @@ function Xs(e) {
|
|
|
1401
1402
|
}
|
|
1402
1403
|
function Hs(e) {
|
|
1403
1404
|
const t = [];
|
|
1404
|
-
let n = -1, r = 0, a = 0, o, f, m, i, b, E,
|
|
1405
|
-
const
|
|
1406
|
-
|
|
1405
|
+
let n = -1, r = 0, a = 0, o, f, m, i, b, E, C;
|
|
1406
|
+
const T = [];
|
|
1407
|
+
T[
|
|
1407
1408
|
0
|
|
1408
1409
|
/* Actions.APPEND */
|
|
1409
1410
|
] = () => {
|
|
1410
1411
|
f === void 0 ? f = m : f += m;
|
|
1411
|
-
},
|
|
1412
|
+
}, T[
|
|
1412
1413
|
1
|
|
1413
1414
|
/* Actions.PUSH */
|
|
1414
1415
|
] = () => {
|
|
1415
1416
|
f !== void 0 && (t.push(f), f = void 0);
|
|
1416
|
-
},
|
|
1417
|
+
}, T[
|
|
1417
1418
|
2
|
|
1418
1419
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1419
1420
|
] = () => {
|
|
1420
|
-
|
|
1421
|
+
T[
|
|
1421
1422
|
0
|
|
1422
1423
|
/* Actions.APPEND */
|
|
1423
1424
|
](), a++;
|
|
1424
|
-
},
|
|
1425
|
+
}, T[
|
|
1425
1426
|
3
|
|
1426
1427
|
/* Actions.PUSH_SUB_PATH */
|
|
1427
1428
|
] = () => {
|
|
1428
1429
|
if (a > 0)
|
|
1429
|
-
a--, r = 4,
|
|
1430
|
+
a--, r = 4, T[
|
|
1430
1431
|
0
|
|
1431
1432
|
/* Actions.APPEND */
|
|
1432
1433
|
]();
|
|
1433
1434
|
else {
|
|
1434
1435
|
if (a = 0, f === void 0 || (f = Xs(f), f === !1))
|
|
1435
1436
|
return !1;
|
|
1436
|
-
|
|
1437
|
+
T[
|
|
1437
1438
|
1
|
|
1438
1439
|
/* Actions.PUSH */
|
|
1439
1440
|
]();
|
|
1440
1441
|
}
|
|
1441
1442
|
};
|
|
1442
|
-
function
|
|
1443
|
-
const
|
|
1444
|
-
if (r === 5 &&
|
|
1445
|
-
return n++, m = "\\" +
|
|
1443
|
+
function w() {
|
|
1444
|
+
const A = e[n + 1];
|
|
1445
|
+
if (r === 5 && A === "'" || r === 6 && A === '"')
|
|
1446
|
+
return n++, m = "\\" + A, T[
|
|
1446
1447
|
0
|
|
1447
1448
|
/* Actions.APPEND */
|
|
1448
1449
|
](), !0;
|
|
1449
1450
|
}
|
|
1450
1451
|
for (; r !== null; )
|
|
1451
|
-
if (n++, o = e[n], !(o === "\\" &&
|
|
1452
|
-
if (i = Bs(o),
|
|
1452
|
+
if (n++, o = e[n], !(o === "\\" && w())) {
|
|
1453
|
+
if (i = Bs(o), C = He[r], b = C[i] || C.l || 8, b === 8 || (r = b[0], b[1] !== void 0 && (E = T[b[1]], E && (m = o, E() === !1))))
|
|
1453
1454
|
return;
|
|
1454
1455
|
if (r === 7)
|
|
1455
1456
|
return t;
|
|
1456
1457
|
}
|
|
1457
1458
|
}
|
|
1458
1459
|
const _n = /* @__PURE__ */ new Map();
|
|
1459
|
-
function
|
|
1460
|
+
function $s(e, t) {
|
|
1460
1461
|
return ee(e) ? e[t] : null;
|
|
1461
1462
|
}
|
|
1462
|
-
function
|
|
1463
|
+
function Js(e, t) {
|
|
1463
1464
|
if (!ee(e))
|
|
1464
1465
|
return null;
|
|
1465
1466
|
let n = _n.get(t);
|
|
@@ -1475,7 +1476,7 @@ function $s(e, t) {
|
|
|
1475
1476
|
}
|
|
1476
1477
|
return a;
|
|
1477
1478
|
}
|
|
1478
|
-
const Ks = "10.0.5",
|
|
1479
|
+
const Ks = "10.0.5", Tt = -1, Et = "en-US", pn = "", vn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1479
1480
|
function zs() {
|
|
1480
1481
|
return {
|
|
1481
1482
|
upper: (e, t) => t === "text" && W(e) ? e.toUpperCase() : t === "vnode" && ee(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
@@ -1483,13 +1484,13 @@ function zs() {
|
|
|
1483
1484
|
capitalize: (e, t) => t === "text" && W(e) ? vn(e) : t === "vnode" && ee(e) && "__v_isVNode" in e ? vn(e.children) : e
|
|
1484
1485
|
};
|
|
1485
1486
|
}
|
|
1486
|
-
let
|
|
1487
|
+
let $n;
|
|
1487
1488
|
function Qs(e) {
|
|
1488
|
-
|
|
1489
|
+
$n = e;
|
|
1489
1490
|
}
|
|
1490
|
-
let
|
|
1491
|
+
let Jn;
|
|
1491
1492
|
function qs(e) {
|
|
1492
|
-
|
|
1493
|
+
Jn = e;
|
|
1493
1494
|
}
|
|
1494
1495
|
let Kn;
|
|
1495
1496
|
function ea(e) {
|
|
@@ -1505,7 +1506,7 @@ const hn = (e) => {
|
|
|
1505
1506
|
}, ra = () => Qn;
|
|
1506
1507
|
let bn = 0;
|
|
1507
1508
|
function sa(e = {}) {
|
|
1508
|
-
const t = ue(e.onWarn) ? e.onWarn : Zr, n = W(e.version) ? e.version : Ks, r = W(e.locale) || ue(e.locale) ? e.locale : Et, a = ue(r) ? Et : r, o = pe(e.fallbackLocale) || q(e.fallbackLocale) || W(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, f = q(e.messages) ? e.messages :
|
|
1509
|
+
const t = ue(e.onWarn) ? e.onWarn : Zr, n = W(e.version) ? e.version : Ks, r = W(e.locale) || ue(e.locale) ? e.locale : Et, a = ue(r) ? Et : r, o = pe(e.fallbackLocale) || q(e.fallbackLocale) || W(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, f = q(e.messages) ? e.messages : kt(a), m = q(e.datetimeFormats) ? e.datetimeFormats : kt(a), i = q(e.numberFormats) ? e.numberFormats : kt(a), b = ge(se(), e.modifiers, zs()), E = e.pluralRules || se(), C = ue(e.missing) ? e.missing : null, T = _e(e.missingWarn) || It(e.missingWarn) ? e.missingWarn : !0, w = _e(e.fallbackWarn) || It(e.fallbackWarn) ? e.fallbackWarn : !0, A = !!e.fallbackFormat, R = !!e.unresolving, M = ue(e.postTranslation) ? e.postTranslation : null, p = q(e.processor) ? e.processor : null, h = _e(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, d = ue(e.messageCompiler) ? e.messageCompiler : $n, g = ue(e.messageResolver) ? e.messageResolver : Jn || $s, I = ue(e.localeFallbacker) ? e.localeFallbacker : Kn || xs, v = ee(e.fallbackContext) ? e.fallbackContext : void 0, k = e, L = ee(k.__datetimeFormatters) ? k.__datetimeFormatters : /* @__PURE__ */ new Map(), H = ee(k.__numberFormatters) ? k.__numberFormatters : /* @__PURE__ */ new Map(), x = ee(k.__meta) ? k.__meta : {};
|
|
1509
1510
|
bn++;
|
|
1510
1511
|
const _ = {
|
|
1511
1512
|
version: n,
|
|
@@ -1515,25 +1516,25 @@ function sa(e = {}) {
|
|
|
1515
1516
|
messages: f,
|
|
1516
1517
|
modifiers: b,
|
|
1517
1518
|
pluralRules: E,
|
|
1518
|
-
missing:
|
|
1519
|
-
missingWarn:
|
|
1520
|
-
fallbackWarn:
|
|
1521
|
-
fallbackFormat:
|
|
1522
|
-
unresolving:
|
|
1519
|
+
missing: C,
|
|
1520
|
+
missingWarn: T,
|
|
1521
|
+
fallbackWarn: w,
|
|
1522
|
+
fallbackFormat: A,
|
|
1523
|
+
unresolving: R,
|
|
1523
1524
|
postTranslation: M,
|
|
1524
1525
|
processor: p,
|
|
1525
1526
|
warnHtmlMessage: h,
|
|
1526
1527
|
escapeParameter: S,
|
|
1527
1528
|
messageCompiler: d,
|
|
1528
1529
|
messageResolver: g,
|
|
1529
|
-
localeFallbacker:
|
|
1530
|
+
localeFallbacker: I,
|
|
1530
1531
|
fallbackContext: v,
|
|
1531
1532
|
onWarn: t,
|
|
1532
|
-
__meta:
|
|
1533
|
+
__meta: x
|
|
1533
1534
|
};
|
|
1534
|
-
return _.datetimeFormats = m, _.numberFormats = i, _.__datetimeFormatters = L, _.__numberFormatters = H, __INTLIFY_PROD_DEVTOOLS__ && Fs(_, n,
|
|
1535
|
+
return _.datetimeFormats = m, _.numberFormats = i, _.__datetimeFormatters = L, _.__numberFormatters = H, __INTLIFY_PROD_DEVTOOLS__ && Fs(_, n, x), _;
|
|
1535
1536
|
}
|
|
1536
|
-
const
|
|
1537
|
+
const kt = (e) => ({ [e]: se() });
|
|
1537
1538
|
function zt(e, t, n, r, a) {
|
|
1538
1539
|
const { missing: o, onWarn: f } = e;
|
|
1539
1540
|
if (o !== null) {
|
|
@@ -1559,26 +1560,26 @@ function oa(e, t) {
|
|
|
1559
1560
|
return !1;
|
|
1560
1561
|
}
|
|
1561
1562
|
function gn(e, ...t) {
|
|
1562
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: o, localeFallbacker: f } = e, { __datetimeFormatters: m } = e, [i, b, E,
|
|
1563
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: o, localeFallbacker: f } = e, { __datetimeFormatters: m } = e, [i, b, E, C] = Pt(...t), T = _e(E.missingWarn) ? E.missingWarn : e.missingWarn;
|
|
1563
1564
|
_e(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn;
|
|
1564
|
-
const
|
|
1565
|
+
const w = !!E.part, A = Kt(e, E), R = f(
|
|
1565
1566
|
e,
|
|
1566
1567
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1567
1568
|
a,
|
|
1568
|
-
|
|
1569
|
+
A
|
|
1569
1570
|
);
|
|
1570
1571
|
if (!W(i) || i === "")
|
|
1571
|
-
return new Intl.DateTimeFormat(
|
|
1572
|
+
return new Intl.DateTimeFormat(A, C).format(b);
|
|
1572
1573
|
let M = {}, p, h = null;
|
|
1573
1574
|
const S = "datetime format";
|
|
1574
|
-
for (let
|
|
1575
|
-
zt(e, i, p,
|
|
1575
|
+
for (let I = 0; I < R.length && (p = R[I], M = n[p] || {}, h = M[i], !q(h)); I++)
|
|
1576
|
+
zt(e, i, p, T, S);
|
|
1576
1577
|
if (!q(h) || !W(p))
|
|
1577
|
-
return r ?
|
|
1578
|
+
return r ? Tt : i;
|
|
1578
1579
|
let d = `${p}__${i}`;
|
|
1579
|
-
|
|
1580
|
+
Nt(C) || (d = `${d}__${JSON.stringify(C)}`);
|
|
1580
1581
|
let g = m.get(d);
|
|
1581
|
-
return g || (g = new Intl.DateTimeFormat(p, ge({}, h,
|
|
1582
|
+
return g || (g = new Intl.DateTimeFormat(p, ge({}, h, C)), m.set(d, g)), w ? g.formatToParts(b) : g.format(b);
|
|
1582
1583
|
}
|
|
1583
1584
|
const qn = [
|
|
1584
1585
|
"localeMatcher",
|
|
@@ -1608,54 +1609,54 @@ function Pt(...e) {
|
|
|
1608
1609
|
if (W(t)) {
|
|
1609
1610
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1610
1611
|
if (!i)
|
|
1611
|
-
throw Ue
|
|
1612
|
+
throw xe(Ue.INVALID_ISO_DATE_ARGUMENT);
|
|
1612
1613
|
const b = i[3] ? i[3].trim().startsWith("T") ? `${i[1].trim()}${i[3].trim()}` : `${i[1].trim()}T${i[3].trim()}` : i[1].trim();
|
|
1613
1614
|
m = new Date(b);
|
|
1614
1615
|
try {
|
|
1615
1616
|
m.toISOString();
|
|
1616
1617
|
} catch {
|
|
1617
|
-
throw Ue
|
|
1618
|
+
throw xe(Ue.INVALID_ISO_DATE_ARGUMENT);
|
|
1618
1619
|
}
|
|
1619
|
-
} else if (
|
|
1620
|
+
} else if (Ur(t)) {
|
|
1620
1621
|
if (isNaN(t.getTime()))
|
|
1621
|
-
throw Ue
|
|
1622
|
+
throw xe(Ue.INVALID_DATE_ARGUMENT);
|
|
1622
1623
|
m = t;
|
|
1623
1624
|
} else if (be(t))
|
|
1624
1625
|
m = t;
|
|
1625
1626
|
else
|
|
1626
|
-
throw Ue
|
|
1627
|
+
throw xe(Ue.INVALID_ARGUMENT);
|
|
1627
1628
|
return W(n) ? o.key = n : q(n) && Object.keys(n).forEach((i) => {
|
|
1628
1629
|
qn.includes(i) ? f[i] = n[i] : o[i] = n[i];
|
|
1629
1630
|
}), W(r) ? o.locale = r : q(r) && (f = r), q(a) && (f = a), [o.key || "", m, o, f];
|
|
1630
1631
|
}
|
|
1631
|
-
function
|
|
1632
|
+
function yn(e, t, n) {
|
|
1632
1633
|
const r = e;
|
|
1633
1634
|
for (const a in n) {
|
|
1634
1635
|
const o = `${t}__${a}`;
|
|
1635
1636
|
r.__datetimeFormatters.has(o) && r.__datetimeFormatters.delete(o);
|
|
1636
1637
|
}
|
|
1637
1638
|
}
|
|
1638
|
-
function
|
|
1639
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: o, localeFallbacker: f } = e, { __numberFormatters: m } = e, [i, b, E,
|
|
1639
|
+
function In(e, ...t) {
|
|
1640
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: o, localeFallbacker: f } = e, { __numberFormatters: m } = e, [i, b, E, C] = jt(...t), T = _e(E.missingWarn) ? E.missingWarn : e.missingWarn;
|
|
1640
1641
|
_e(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn;
|
|
1641
|
-
const
|
|
1642
|
+
const w = !!E.part, A = Kt(e, E), R = f(
|
|
1642
1643
|
e,
|
|
1643
1644
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1644
1645
|
a,
|
|
1645
|
-
|
|
1646
|
+
A
|
|
1646
1647
|
);
|
|
1647
1648
|
if (!W(i) || i === "")
|
|
1648
|
-
return new Intl.NumberFormat(
|
|
1649
|
+
return new Intl.NumberFormat(A, C).format(b);
|
|
1649
1650
|
let M = {}, p, h = null;
|
|
1650
1651
|
const S = "number format";
|
|
1651
|
-
for (let
|
|
1652
|
-
zt(e, i, p,
|
|
1652
|
+
for (let I = 0; I < R.length && (p = R[I], M = n[p] || {}, h = M[i], !q(h)); I++)
|
|
1653
|
+
zt(e, i, p, T, S);
|
|
1653
1654
|
if (!q(h) || !W(p))
|
|
1654
|
-
return r ?
|
|
1655
|
+
return r ? Tt : i;
|
|
1655
1656
|
let d = `${p}__${i}`;
|
|
1656
|
-
|
|
1657
|
+
Nt(C) || (d = `${d}__${JSON.stringify(C)}`);
|
|
1657
1658
|
let g = m.get(d);
|
|
1658
|
-
return g || (g = new Intl.NumberFormat(p, ge({}, h,
|
|
1659
|
+
return g || (g = new Intl.NumberFormat(p, ge({}, h, C)), m.set(d, g)), w ? g.formatToParts(b) : g.format(b);
|
|
1659
1660
|
}
|
|
1660
1661
|
const er = [
|
|
1661
1662
|
"localeMatcher",
|
|
@@ -1683,7 +1684,7 @@ function jt(...e) {
|
|
|
1683
1684
|
const [t, n, r, a] = e, o = se();
|
|
1684
1685
|
let f = se();
|
|
1685
1686
|
if (!be(t))
|
|
1686
|
-
throw Ue
|
|
1687
|
+
throw xe(Ue.INVALID_ARGUMENT);
|
|
1687
1688
|
const m = t;
|
|
1688
1689
|
return W(n) ? o.key = n : q(n) && Object.keys(n).forEach((i) => {
|
|
1689
1690
|
er.includes(i) ? f[i] = n[i] : o[i] = n[i];
|
|
@@ -1697,7 +1698,7 @@ function En(e, t, n) {
|
|
|
1697
1698
|
}
|
|
1698
1699
|
}
|
|
1699
1700
|
const la = (e) => e, ia = (e) => "", ca = "text", ua = (e) => e.length === 0 ? "" : Ht(e), da = Gr;
|
|
1700
|
-
function
|
|
1701
|
+
function Nn(e, t) {
|
|
1701
1702
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1702
1703
|
}
|
|
1703
1704
|
function ma(e) {
|
|
@@ -1708,59 +1709,59 @@ function fa(e, t) {
|
|
|
1708
1709
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1709
1710
|
}
|
|
1710
1711
|
function _a(e = {}) {
|
|
1711
|
-
const t = e.locale, n = ma(e), r = ee(e.pluralRules) && W(t) && ue(e.pluralRules[t]) ? e.pluralRules[t] :
|
|
1712
|
+
const t = e.locale, n = ma(e), r = ee(e.pluralRules) && W(t) && ue(e.pluralRules[t]) ? e.pluralRules[t] : Nn, a = ee(e.pluralRules) && W(t) && ue(e.pluralRules[t]) ? Nn : void 0, o = (p) => p[r(n, p.length, a)], f = e.list || [], m = (p) => f[p], i = e.named || se();
|
|
1712
1713
|
be(e.pluralIndex) && fa(n, i);
|
|
1713
1714
|
const b = (p) => i[p];
|
|
1714
1715
|
function E(p, h) {
|
|
1715
1716
|
const S = ue(e.messages) ? e.messages(p, !!h) : ee(e.messages) ? e.messages[p] : !1;
|
|
1716
1717
|
return S || (e.parent ? e.parent.message(p) : ia);
|
|
1717
1718
|
}
|
|
1718
|
-
const
|
|
1719
|
+
const C = (p) => e.modifiers ? e.modifiers[p] : la, T = q(e.processor) && ue(e.processor.normalize) ? e.processor.normalize : ua, w = q(e.processor) && ue(e.processor.interpolate) ? e.processor.interpolate : da, A = q(e.processor) && W(e.processor.type) ? e.processor.type : ca, M = {
|
|
1719
1720
|
list: m,
|
|
1720
1721
|
named: b,
|
|
1721
1722
|
plural: o,
|
|
1722
1723
|
linked: (p, ...h) => {
|
|
1723
1724
|
const [S, d] = h;
|
|
1724
|
-
let g = "text",
|
|
1725
|
-
h.length === 1 ? ee(S) ? (
|
|
1726
|
-
const v = E(p, !0)(M),
|
|
1725
|
+
let g = "text", I = "";
|
|
1726
|
+
h.length === 1 ? ee(S) ? (I = S.modifier || I, g = S.type || g) : W(S) && (I = S || I) : h.length === 2 && (W(S) && (I = S || I), W(d) && (g = d || g));
|
|
1727
|
+
const v = E(p, !0)(M), k = (
|
|
1727
1728
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1728
|
-
g === "vnode" && pe(v) &&
|
|
1729
|
+
g === "vnode" && pe(v) && I ? v[0] : v
|
|
1729
1730
|
);
|
|
1730
|
-
return
|
|
1731
|
+
return I ? C(I)(k, g) : k;
|
|
1731
1732
|
},
|
|
1732
1733
|
message: E,
|
|
1733
|
-
type:
|
|
1734
|
-
interpolate:
|
|
1735
|
-
normalize:
|
|
1734
|
+
type: A,
|
|
1735
|
+
interpolate: w,
|
|
1736
|
+
normalize: T,
|
|
1736
1737
|
values: ge(se(), f, i)
|
|
1737
1738
|
};
|
|
1738
1739
|
return M;
|
|
1739
1740
|
}
|
|
1740
|
-
const
|
|
1741
|
-
function
|
|
1742
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: o, fallbackLocale: f, messages: m } = e, [i, b] =
|
|
1743
|
-
|
|
1744
|
-
let [p, h, S] =
|
|
1741
|
+
const Cn = () => "", Te = (e) => ue(e);
|
|
1742
|
+
function Tn(e, ...t) {
|
|
1743
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: o, fallbackLocale: f, messages: m } = e, [i, b] = Ut(...t), E = _e(b.missingWarn) ? b.missingWarn : e.missingWarn, C = _e(b.fallbackWarn) ? b.fallbackWarn : e.fallbackWarn, T = _e(b.escapeParameter) ? b.escapeParameter : e.escapeParameter, w = !!b.resolvedMessage, A = W(b.default) || _e(b.default) ? _e(b.default) ? o ? i : () => i : b.default : n ? o ? i : () => i : null, R = n || A != null && (W(A) || ue(A)), M = Kt(e, b);
|
|
1744
|
+
T && pa(b);
|
|
1745
|
+
let [p, h, S] = w ? [
|
|
1745
1746
|
i,
|
|
1746
1747
|
M,
|
|
1747
1748
|
m[M] || se()
|
|
1748
|
-
] : tr(e, i, M, f,
|
|
1749
|
-
if (!
|
|
1750
|
-
return a ?
|
|
1751
|
-
let
|
|
1749
|
+
] : tr(e, i, M, f, C, E), d = p, g = i;
|
|
1750
|
+
if (!w && !(W(d) || ot(d) || Te(d)) && R && (d = A, g = d), !w && (!(W(d) || ot(d) || Te(d)) || !W(h)))
|
|
1751
|
+
return a ? Tt : i;
|
|
1752
|
+
let I = !1;
|
|
1752
1753
|
const v = () => {
|
|
1753
|
-
|
|
1754
|
-
},
|
|
1755
|
-
if (
|
|
1754
|
+
I = !0;
|
|
1755
|
+
}, k = Te(d) ? d : nr(e, i, h, d, g, v);
|
|
1756
|
+
if (I)
|
|
1756
1757
|
return d;
|
|
1757
|
-
const L = ba(e, h, S, b), H = _a(L),
|
|
1758
|
+
const L = ba(e, h, S, b), H = _a(L), x = va(e, k, H), _ = r ? r(x, i) : x;
|
|
1758
1759
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1759
1760
|
const O = {
|
|
1760
1761
|
timestamp: Date.now(),
|
|
1761
|
-
key: W(i) ? i :
|
|
1762
|
-
locale: h || (
|
|
1763
|
-
format: W(d) ? d :
|
|
1762
|
+
key: W(i) ? i : Te(d) ? d.key : "",
|
|
1763
|
+
locale: h || (Te(d) ? d.locale : ""),
|
|
1764
|
+
format: W(d) ? d : Te(d) ? d.source : "",
|
|
1764
1765
|
message: _
|
|
1765
1766
|
};
|
|
1766
1767
|
O.meta = ge({}, e.__meta, /* @__PURE__ */ na() || {}), Ps(O);
|
|
@@ -1774,25 +1775,25 @@ function pa(e) {
|
|
|
1774
1775
|
}
|
|
1775
1776
|
function tr(e, t, n, r, a, o) {
|
|
1776
1777
|
const { messages: f, onWarn: m, messageResolver: i, localeFallbacker: b } = e, E = b(e, r, n);
|
|
1777
|
-
let
|
|
1778
|
-
const
|
|
1779
|
-
for (let
|
|
1780
|
-
if (!oa(
|
|
1778
|
+
let C = se(), T, w = null;
|
|
1779
|
+
const A = "translate";
|
|
1780
|
+
for (let R = 0; R < E.length && (T = E[R], C = f[T] || se(), (w = i(C, t)) === null && (w = C[t]), !(W(w) || ot(w) || Te(w))); R++)
|
|
1781
|
+
if (!oa(T, E)) {
|
|
1781
1782
|
const M = zt(
|
|
1782
1783
|
e,
|
|
1783
1784
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1784
1785
|
t,
|
|
1785
|
-
|
|
1786
|
+
T,
|
|
1786
1787
|
o,
|
|
1787
|
-
|
|
1788
|
+
A
|
|
1788
1789
|
);
|
|
1789
|
-
M !== t && (
|
|
1790
|
+
M !== t && (w = M);
|
|
1790
1791
|
}
|
|
1791
|
-
return [
|
|
1792
|
+
return [w, T, C];
|
|
1792
1793
|
}
|
|
1793
1794
|
function nr(e, t, n, r, a, o) {
|
|
1794
1795
|
const { messageCompiler: f, warnHtmlMessage: m } = e;
|
|
1795
|
-
if (
|
|
1796
|
+
if (Te(r)) {
|
|
1796
1797
|
const b = r;
|
|
1797
1798
|
return b.locale = b.locale || n, b.key = b.key || t, b;
|
|
1798
1799
|
}
|
|
@@ -1806,12 +1807,12 @@ function nr(e, t, n, r, a, o) {
|
|
|
1806
1807
|
function va(e, t, n) {
|
|
1807
1808
|
return t(n);
|
|
1808
1809
|
}
|
|
1809
|
-
function
|
|
1810
|
+
function Ut(...e) {
|
|
1810
1811
|
const [t, n, r] = e, a = se();
|
|
1811
|
-
if (!W(t) && !be(t) && !
|
|
1812
|
-
throw Ue
|
|
1813
|
-
const o = be(t) ? String(t) : (
|
|
1814
|
-
return be(n) ? a.plural = n : W(n) ? a.default = n : q(n) && !
|
|
1812
|
+
if (!W(t) && !be(t) && !Te(t) && !ot(t))
|
|
1813
|
+
throw xe(Ue.INVALID_ARGUMENT);
|
|
1814
|
+
const o = be(t) ? String(t) : (Te(t), t);
|
|
1815
|
+
return be(n) ? a.plural = n : W(n) ? a.default = n : q(n) && !Nt(n) ? a.named = n : pe(n) && (a.list = n), be(r) ? a.plural = r : W(r) ? a.default = r : q(r) && ge(a, r), [o, a];
|
|
1815
1816
|
}
|
|
1816
1817
|
function ha(e, t, n, r, a, o) {
|
|
1817
1818
|
return {
|
|
@@ -1825,44 +1826,44 @@ function ha(e, t, n, r, a, o) {
|
|
|
1825
1826
|
};
|
|
1826
1827
|
}
|
|
1827
1828
|
function ba(e, t, n, r) {
|
|
1828
|
-
const { modifiers: a, pluralRules: o, messageResolver: f, fallbackLocale: m, fallbackWarn: i, missingWarn: b, fallbackContext: E } = e,
|
|
1829
|
+
const { modifiers: a, pluralRules: o, messageResolver: f, fallbackLocale: m, fallbackWarn: i, missingWarn: b, fallbackContext: E } = e, T = {
|
|
1829
1830
|
locale: t,
|
|
1830
1831
|
modifiers: a,
|
|
1831
1832
|
pluralRules: o,
|
|
1832
|
-
messages: (
|
|
1833
|
-
let
|
|
1834
|
-
if (
|
|
1833
|
+
messages: (w, A) => {
|
|
1834
|
+
let R = f(n, w);
|
|
1835
|
+
if (R == null && (E || A)) {
|
|
1835
1836
|
const [, , M] = tr(
|
|
1836
1837
|
E || e,
|
|
1837
1838
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1838
|
-
|
|
1839
|
+
w,
|
|
1839
1840
|
t,
|
|
1840
1841
|
m,
|
|
1841
1842
|
i,
|
|
1842
1843
|
b
|
|
1843
1844
|
);
|
|
1844
|
-
|
|
1845
|
+
R = f(M, w);
|
|
1845
1846
|
}
|
|
1846
|
-
if (W(
|
|
1847
|
+
if (W(R) || ot(R)) {
|
|
1847
1848
|
let M = !1;
|
|
1848
|
-
const h = nr(e,
|
|
1849
|
+
const h = nr(e, w, t, R, w, () => {
|
|
1849
1850
|
M = !0;
|
|
1850
1851
|
});
|
|
1851
|
-
return M ?
|
|
1852
|
-
} else return
|
|
1852
|
+
return M ? Cn : h;
|
|
1853
|
+
} else return Te(R) ? R : Cn;
|
|
1853
1854
|
}
|
|
1854
1855
|
};
|
|
1855
|
-
return e.processor && (
|
|
1856
|
+
return e.processor && (T.processor = e.processor), r.list && (T.list = r.list), r.named && (T.named = r.named), be(r.plural) && (T.pluralIndex = r.plural), T;
|
|
1856
1857
|
}
|
|
1857
1858
|
ps();
|
|
1858
|
-
var ga = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_82a1800f-1c3a-471d-8a76-ce72983b83d3", DOTNET_NOLOGO: "1", USER: "runner", npm_config_always_auth: "", npm_config_user_agent: "pnpm/10.8.0 npm/? node/v24.5.0 linux x64", CI: "true", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_82a1800f-1c3a-471d-8a76-ce72983b83d3", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.8.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/30.0.16248370", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1759", ACTIONS_ORCHESTRATION_ID: "92f99de7-1aab-4019-8cba-fbbb23a8988e.publish.publish.__default", npm_config_engine_strict: "true", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20261012.334.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_82a1800f-1c3a-471d-8a76-ce72983b83d3", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:10903", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.14/x64", GITHUB_RUN_ID: "39940300329", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "aa7a43b6a51d2021e47de99e4f1a39108c840d4b", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.9/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9kZXZcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTI3NzM5OTYsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5Mjc1MTc5NiwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImYwNzY1OWRjLTgzNDYtNWVkYy1iNTQ3LWYxYjAxOTIyMjkxOCIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiNzA2NmVkNTQ1MjAxY2IyNzc2YTdiNjIxZWNmMGU1OTg1ZWNlMjkwMyIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5Mjc1MTQ5Niwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCIxMjAzNjk4NDE0OTdcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjcwNjZlZDU0NTIwMWNiMjc3NmE3YjYyMWVjZjBlNTk4NWVjZTI5MDNcIixcInJlZlwiOlwicmVmcy9oZWFkcy9kZXZcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJyZXBvc2l0b3J5XCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2VcIixcInJlcG9zaXRvcnlfaWRcIjpcIjExMjQ2NzIyMzVcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJ1bl9pZFwiOlwiMzk5NDAzMDAzMjlcIixcInJ1bl9udW1iZXJcIjpcIjIzMVwiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcImFhN2E0M2I2YTUxZDIwMjFlNDdkZTk5ZTRmMWEzOTEwOGM4NDBkNGJcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIGhybS1wb3J0YWxcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtaHJtLXBvcnRhbC10cnVzdGVkLnltbEByZWZzL2hlYWRzL2RldlwiLFwid29ya2Zsb3dfc2hhXCI6XCJhYTdhNDNiNmE1MWQyMDIxZTQ3ZGU5OWU0ZjFhMzkxMDhjODQwZDRiXCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9kZXYiLCJvcmNoX2lkIjoiOTJmOTlkZTctMWFhYi00MDE5LThjYmEtZmJiYjIzYTg5ODhlLnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiI5MmY5OWRlNy0xYWFiLTQwMTktOGNiYS1mYmJiMjNhODk4OGUiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiIzOTk0MDMwMDMyOSIsInJ1bl9udW1iZXIiOiIyMzEiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMjIwMDc2IiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6OTJmOTlkZTctMWFhYi00MDE5LThjYmEtZmJiYjIzYTg5ODhlOmYwNzY1OWRjLTgzNDYtNWVkYy1iNTQ3LWYxYjAxOTIyMjkxOCBBY3Rpb25zLlJ1bm5lcjo5MmY5OWRlNy0xYWFiLTQwMTktOGNiYS1mYmJiMjNhODk4OGU6ZjA3NjU5ZGMtODM0Ni01ZWRjLWI1NDctZjFiMDE5MjIyOTE4IEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOjkyZjk5ZGU3LTFhYWItNDAxOS04Y2JhLWZiYmIyM2E4OTg4ZTpmMDc2NTlkYy04MzQ2LTVlZGMtYjU0Ny1mMWIwMTkyMjI5MTggZ2VuZXJhdGVfaWRfdG9rZW46OTJmOTlkZTctMWFhYi00MDE5LThjYmEtZmJiYjIzYTg5ODhlOmYwNzY1OWRjLTgzNDYtNWVkYy1iNTQ3LWYxYjAxOTIyMjkxOCBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6ImFhN2E0M2I2YTUxZDIwMjFlNDdkZTk5ZTRmMWEzOTEwOGM4NDBkNGIiLCJ0cnVzdF90aWVyIjoiMSJ9.M7v3cWmMcWJDxfHmoavxizi7xgwwq5TCpPTjn0u7d4YpTOcP8rYqJ53nzL1DALAJuPKllGU9aO4yh3POGbfHEPP_xJh8vfeZdWdCxnlBuwyXrrbtyngMH858XfLFaFhN1lipDJuO04Bl0SvKBBJQjbM9UkvygT75Xeu0AODL5NitjMUAQBeU3_T9KYkb4GQ8uPXPu9t0P3SS2o7ekKzmKgvCekJTjOLbwoGFbIpZKWgVIfR3zR-RzZ-PYDVcaj6ULGMnLwJNRnRy7ixLzHq76TXACxYZF_5hdA5BArnYWo9TXQcyKZbvNvHep5yDU4DhpQtFIuIy78TYXVerjNNtIg", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/24.5.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_fc7e9965-db6f-4f9d-b97b-97fcf76fd562", INVOCATION_ID: "b92fc5aba89247c2804e131ee8082bd1", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", npm_package_name: "@feedmepos/mf-hrm-portal", GITHUB_ACTION: "__run_5", GITHUB_RUN_NUMBER: "231", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000220076", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.3.2-dev.7", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", npm_config_overrides: '{"proxy-addr":">=2.0.8 <3","@fastify/busboy":">=3.2.1 <4","@grpc/grpc-js":">=1.14.5 <2","brace-expansion@^2":"^2.1.6","js-yaml@^4":"^4.3.2","source-map-js":"^1.2.2","dompurify":">=3.4.17 <4","undici@^6":">=6.28.1 <7"}', npm_config_package_extensions: '{"@feedmepos/entity":{"dependencies":{"@feedmepos/core":"2.14.52"}}}', GITHUB_SHA: "aa7a43b6a51d2021e47de99e4f1a39108c840d4b", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/dev", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_82a1800f-1c3a-471d-8a76-ce72983b83d3", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-2-azure-eastus.actions.githubusercontent.com/142//idtoken/92f99de7-1aab-4019-8cba-fbbb23a8988e/f07659dc-8346-5edc-b547-f1b019222918?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_82a1800f-1c3a-471d-8a76-ce72983b83d3", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_82a1800f-1c3a-471d-8a76-ce72983b83d3", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.1", CHROME_BIN: "/usr/bin/google-chrome", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_82a1800f-1c3a-471d-8a76-ce72983b83d3", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1859
|
-
const
|
|
1860
|
-
function
|
|
1861
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
1859
|
+
var ga = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_cb57f81e-7b9d-4e47-b29f-d7c8008c3c5a", 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_cb57f81e-7b9d-4e47-b29f-d7c8008c3c5a", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.8.2", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/30.0.16248370", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1847", ACTIONS_ORCHESTRATION_ID: "beb44554-0659-4177-875c-2aeacadb9e2c.publish.publish.__default", npm_config_engine_strict: "true", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20261026.354.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_cb57f81e-7b9d-4e47-b29f-d7c8008c3c5a", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "10:10735", 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: "40629647178", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "db288a7d2f58b225808ca2ddd3ac63d990218b16", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.10/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9kZXZcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTMxODIxMDQsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MzE1OTkwNCwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6Ijk5MTI3MTVkLWZmZDMtNTdmZS05MWM3LWU4Y2Q1NDc4ZWI1YiIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiNTBmOTYzNDk4MWZjYjJjYTcwZjRlMTFkODNhMzM2Y2VhYmZjOGI3YSIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MzE1OTYwNCwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJNaXJvb245OVwiLFwiYWN0b3JfaWRcIjpcIjY1NjM3NDIxXCIsXCJiYXNlX3JlZlwiOlwiXCIsXCJjaGVja19ydW5faWRcIjpcIjEyMjYyMjgxOTgwNVwiLFwiZXZlbnRfbmFtZVwiOlwid29ya2Zsb3dfZGlzcGF0Y2hcIixcImhlYWRfcmVmXCI6XCJcIixcImpvYl93b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwiam9iX3dvcmtmbG93X3NoYVwiOlwiNTBmOTYzNDk4MWZjYjJjYTcwZjRlMTFkODNhMzM2Y2VhYmZjOGI3YVwiLFwicmVmXCI6XCJyZWZzL2hlYWRzL2RldlwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCI0MDYyOTY0NzE3OFwiLFwicnVuX251bWJlclwiOlwiMjMzXCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiZGIyODhhN2QyZjU4YjIyNTgwOGNhMmRkZDNhYzYzZDk5MDIxOGIxNlwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJ3b3JrZmxvd19zaGFcIjpcImRiMjg4YTdkMmY1OGIyMjU4MDhjYTJkZGQzYWM2M2Q5OTAyMThiMTZcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL2hybS1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL2RldiIsIm9yY2hfaWQiOiJiZWI0NDU1NC0wNjU5LTQxNzctODc1Yy0yYWVhY2FkYjllMmMucHVibGlzaC5wdWJsaXNoLl9fZGVmYXVsdCIsIm93bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwicGxhbl9pZCI6ImJlYjQ0NTU0LTA2NTktNDE3Ny04NzVjLTJhZWFjYWRiOWUyYyIsInJlcG9zaXRvcnlfaWQiOiIxMTI0NjcyMjM1IiwicmVwb3NpdG9yeV9vd25lcl9pZCI6IjU0ODMxNTE1IiwicmVwb3NpdG9yeV92aXNpYmlsaXR5IjoicHJpdmF0ZSIsInJ1bl9pZCI6IjQwNjI5NjQ3MTc4IiwicnVuX251bWJlciI6IjIzMyIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDAyMzI5MDAiLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czpiZWI0NDU1NC0wNjU5LTQxNzctODc1Yy0yYWVhY2FkYjllMmM6OTkxMjcxNWQtZmZkMy01N2ZlLTkxYzctZThjZDU0NzhlYjViIEFjdGlvbnMuUnVubmVyOmJlYjQ0NTU0LTA2NTktNDE3Ny04NzVjLTJhZWFjYWRiOWUyYzo5OTEyNzE1ZC1mZmQzLTU3ZmUtOTFjNy1lOGNkNTQ3OGViNWIgQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6YmViNDQ1NTQtMDY1OS00MTc3LTg3NWMtMmFlYWNhZGI5ZTJjOjk5MTI3MTVkLWZmZDMtNTdmZS05MWM3LWU4Y2Q1NDc4ZWI1YiBnZW5lcmF0ZV9pZF90b2tlbjpiZWI0NDU1NC0wNjU5LTQxNzctODc1Yy0yYWVhY2FkYjllMmM6OTkxMjcxNWQtZmZkMy01N2ZlLTkxYzctZThjZDU0NzhlYjViIEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiZGIyODhhN2QyZjU4YjIyNTgwOGNhMmRkZDNhYzYzZDk5MDIxOGIxNiIsInRydXN0X3RpZXIiOiIxIn0.RS-fD9YcW6gMd9W0SBmMPEHQcm17lT2ZBPZBM3wQAlDIkI_13yNV6q8TbF17pqF3XpiTNkqr_o_Rt_-1amHGmidIjv8kKSJzkEUhcvXP9CTNo67GrBy6eKHRFUaxCYwesoLCevUWLLSxB-cMq6cip87JwfuDij70fwU13q6SA8XM-dzw8YiQaMgn-Dz25fPgb5E6V36_rQewxwfWoemWMrcFvKlKb3qedbRRJdDqm4kE1Jhka0Z7Ae1t56uI_4iu_7392U0FSSoY-Uwr3geZtB_uZwy57cl1qetXsE4V7ham6JX1_G3gF4tqjwt54i3Wff67AqDZO8pG5yudBfU57g", 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_48c6f9d1-eea6-4bb7-9714-07fb37574f85", INVOCATION_ID: "db408c8ac9264c03a4bcbdaea7d3f590", 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: "233", GITHUB_TRIGGERING_ACTOR: "Miroon99", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000232900", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.3.2-dev.9", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", npm_config_overrides: '{"proxy-addr":">=2.0.8 <3","@fastify/busboy":">=3.2.1 <4","@grpc/grpc-js":">=1.14.5 <2","brace-expansion@^2":"^2.1.6","js-yaml@^4":"^4.3.2","source-map-js":"^1.2.2","dompurify":">=3.4.17 <4","undici@^6":">=6.29.1 <7","body-parser@^1":">=1.20.9 <2","multer":">=2.5.0 <3"}', npm_config_package_extensions: '{"@feedmepos/entity":{"dependencies":{"@feedmepos/core":"2.14.52"}}}', GITHUB_SHA: "db288a7d2f58b225808ca2ddd3ac63d990218b16", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/dev", GITHUB_ACTOR: "Miroon99", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_cb57f81e-7b9d-4e47-b29f-d7c8008c3c5a", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "65637421", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-3-azure-eastus.actions.githubusercontent.com/18//idtoken/beb44554-0659-4177-875c-2aeacadb9e2c/9912715d-ffd3-57fe-91c7-e8cd5478eb5b?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_cb57f81e-7b9d-4e47-b29f-d7c8008c3c5a", 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_cb57f81e-7b9d-4e47-b29f-d7c8008c3c5a", 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_cb57f81e-7b9d-4e47-b29f-d7c8008c3c5a", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1860
|
+
const ya = "10.0.5";
|
|
1861
|
+
function Ia() {
|
|
1862
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Je().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Je().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Je().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Je().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1862
1863
|
}
|
|
1863
1864
|
const lt = {
|
|
1864
1865
|
// composer module errors
|
|
1865
|
-
UNEXPECTED_RETURN_TYPE:
|
|
1866
|
+
UNEXPECTED_RETURN_TYPE: Us,
|
|
1866
1867
|
// 24
|
|
1867
1868
|
// legacy module errors
|
|
1868
1869
|
INVALID_ARGUMENT: 25,
|
|
@@ -1874,9 +1875,9 @@ const lt = {
|
|
|
1874
1875
|
UNEXPECTED_ERROR: 32
|
|
1875
1876
|
};
|
|
1876
1877
|
function dt(e, ...t) {
|
|
1877
|
-
return
|
|
1878
|
+
return Ct(e, null, void 0);
|
|
1878
1879
|
}
|
|
1879
|
-
const
|
|
1880
|
+
const xt = /* @__PURE__ */ ze("__translateVNode"), Vt = /* @__PURE__ */ ze("__datetimeParts"), Wt = /* @__PURE__ */ ze("__numberParts"), Ea = ze("__setPluralRules"), rr = /* @__PURE__ */ ze("__injectWithOption"), Gt = /* @__PURE__ */ ze("__dispose");
|
|
1880
1881
|
function mt(e) {
|
|
1881
1882
|
if (!ee(e))
|
|
1882
1883
|
return e;
|
|
@@ -1903,9 +1904,9 @@ function sr(e, t) {
|
|
|
1903
1904
|
if (pe(r) && r.forEach((m) => {
|
|
1904
1905
|
if ("locale" in m && "resource" in m) {
|
|
1905
1906
|
const { locale: i, resource: b } = m;
|
|
1906
|
-
i ? (f[i] = f[i] || se(),
|
|
1907
|
+
i ? (f[i] = f[i] || se(), yt(b, f[i])) : yt(b, f);
|
|
1907
1908
|
} else
|
|
1908
|
-
W(m) &&
|
|
1909
|
+
W(m) && yt(JSON.parse(m), f);
|
|
1909
1910
|
}), a == null && o)
|
|
1910
1911
|
for (const m in f)
|
|
1911
1912
|
Le(f, m) && mt(f[m]);
|
|
@@ -1914,7 +1915,7 @@ function sr(e, t) {
|
|
|
1914
1915
|
function ar(e) {
|
|
1915
1916
|
return e.type;
|
|
1916
1917
|
}
|
|
1917
|
-
function
|
|
1918
|
+
function Na(e, t, n) {
|
|
1918
1919
|
let r = ee(t.messages) ? t.messages : se();
|
|
1919
1920
|
"__i18nGlobal" in n && (r = sr(e.locale.value, {
|
|
1920
1921
|
messages: r,
|
|
@@ -1942,12 +1943,12 @@ function Ta(e, t, n) {
|
|
|
1942
1943
|
function On(e) {
|
|
1943
1944
|
return oe(fr, null, e, 0);
|
|
1944
1945
|
}
|
|
1945
|
-
const Sn = "__INTLIFY_META__", Ln = () => [],
|
|
1946
|
-
let
|
|
1947
|
-
function
|
|
1946
|
+
const Sn = "__INTLIFY_META__", Ln = () => [], Ca = () => !1;
|
|
1947
|
+
let Rn = 0;
|
|
1948
|
+
function kn(e) {
|
|
1948
1949
|
return (t, n, r, a) => e(n, r, Yt() || void 0, a);
|
|
1949
1950
|
}
|
|
1950
|
-
const
|
|
1951
|
+
const Ta = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1951
1952
|
const e = Yt();
|
|
1952
1953
|
let t = null;
|
|
1953
1954
|
return e && (t = ar(e)[Sn]) ? { [Sn]: t } : null;
|
|
@@ -1961,23 +1962,23 @@ function Oa(e = {}) {
|
|
|
1961
1962
|
), i = o(
|
|
1962
1963
|
// prettier-ignore
|
|
1963
1964
|
t && f ? t.fallbackLocale.value : W(e.fallbackLocale) || pe(e.fallbackLocale) || q(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : m.value
|
|
1964
|
-
), b = o(sr(m.value, e)), E = o(q(e.datetimeFormats) ? e.datetimeFormats : { [m.value]: {} }),
|
|
1965
|
-
let
|
|
1965
|
+
), b = o(sr(m.value, e)), E = o(q(e.datetimeFormats) ? e.datetimeFormats : { [m.value]: {} }), C = o(q(e.numberFormats) ? e.numberFormats : { [m.value]: {} });
|
|
1966
|
+
let T = t ? t.missingWarn : _e(e.missingWarn) || It(e.missingWarn) ? e.missingWarn : !0, w = t ? t.fallbackWarn : _e(e.fallbackWarn) || It(e.fallbackWarn) ? e.fallbackWarn : !0, A = t ? t.fallbackRoot : _e(e.fallbackRoot) ? e.fallbackRoot : !0, R = !!e.fallbackFormat, M = ue(e.missing) ? e.missing : null, p = ue(e.missing) ? kn(e.missing) : null, h = ue(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : _e(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, d = !!e.escapeParameter;
|
|
1966
1967
|
const g = t ? t.modifiers : q(e.modifiers) ? e.modifiers : {};
|
|
1967
|
-
let
|
|
1968
|
+
let I = e.pluralRules || t && t.pluralRules, v;
|
|
1968
1969
|
v = (() => {
|
|
1969
1970
|
r && hn(null);
|
|
1970
1971
|
const u = {
|
|
1971
|
-
version:
|
|
1972
|
+
version: ya,
|
|
1972
1973
|
locale: m.value,
|
|
1973
1974
|
fallbackLocale: i.value,
|
|
1974
1975
|
messages: b.value,
|
|
1975
1976
|
modifiers: g,
|
|
1976
|
-
pluralRules:
|
|
1977
|
+
pluralRules: I,
|
|
1977
1978
|
missing: p === null ? void 0 : p,
|
|
1978
|
-
missingWarn:
|
|
1979
|
-
fallbackWarn:
|
|
1980
|
-
fallbackFormat:
|
|
1979
|
+
missingWarn: T,
|
|
1980
|
+
fallbackWarn: w,
|
|
1981
|
+
fallbackFormat: R,
|
|
1981
1982
|
unresolving: !0,
|
|
1982
1983
|
postTranslation: h === null ? void 0 : h,
|
|
1983
1984
|
warnHtmlMessage: S,
|
|
@@ -1986,9 +1987,9 @@ function Oa(e = {}) {
|
|
|
1986
1987
|
messageCompiler: e.messageCompiler,
|
|
1987
1988
|
__meta: { framework: "vue" }
|
|
1988
1989
|
};
|
|
1989
|
-
u.datetimeFormats = E.value, u.numberFormats =
|
|
1990
|
-
const
|
|
1991
|
-
return r && hn(
|
|
1990
|
+
u.datetimeFormats = E.value, u.numberFormats = C.value, u.__datetimeFormatters = q(v) ? v.__datetimeFormatters : void 0, u.__numberFormatters = q(v) ? v.__numberFormatters : void 0;
|
|
1991
|
+
const N = sa(u);
|
|
1992
|
+
return r && hn(N), N;
|
|
1992
1993
|
})(), it(v, m.value, i.value);
|
|
1993
1994
|
function L() {
|
|
1994
1995
|
return [
|
|
@@ -1996,7 +1997,7 @@ function Oa(e = {}) {
|
|
|
1996
1997
|
i.value,
|
|
1997
1998
|
b.value,
|
|
1998
1999
|
E.value,
|
|
1999
|
-
|
|
2000
|
+
C.value
|
|
2000
2001
|
];
|
|
2001
2002
|
}
|
|
2002
2003
|
const H = K({
|
|
@@ -2004,25 +2005,25 @@ function Oa(e = {}) {
|
|
|
2004
2005
|
set: (u) => {
|
|
2005
2006
|
m.value = u, v.locale = m.value;
|
|
2006
2007
|
}
|
|
2007
|
-
}),
|
|
2008
|
+
}), x = K({
|
|
2008
2009
|
get: () => i.value,
|
|
2009
2010
|
set: (u) => {
|
|
2010
2011
|
i.value = u, v.fallbackLocale = i.value, it(v, m.value, u);
|
|
2011
2012
|
}
|
|
2012
|
-
}), _ = K(() => b.value), O = /* @__PURE__ */ K(() => E.value), P = /* @__PURE__ */ K(() =>
|
|
2013
|
+
}), _ = K(() => b.value), O = /* @__PURE__ */ K(() => E.value), P = /* @__PURE__ */ K(() => C.value);
|
|
2013
2014
|
function F() {
|
|
2014
2015
|
return ue(h) ? h : null;
|
|
2015
2016
|
}
|
|
2016
|
-
function
|
|
2017
|
+
function D(u) {
|
|
2017
2018
|
h = u, v.postTranslation = u;
|
|
2018
2019
|
}
|
|
2019
2020
|
function V() {
|
|
2020
2021
|
return M;
|
|
2021
2022
|
}
|
|
2022
2023
|
function j(u) {
|
|
2023
|
-
u !== null && (p =
|
|
2024
|
+
u !== null && (p = kn(u)), M = u, v.missing = p;
|
|
2024
2025
|
}
|
|
2025
|
-
const Z = (u,
|
|
2026
|
+
const Z = (u, N, Q, J, de, Ge) => {
|
|
2026
2027
|
L();
|
|
2027
2028
|
let qe;
|
|
2028
2029
|
try {
|
|
@@ -2031,9 +2032,9 @@ function Oa(e = {}) {
|
|
|
2031
2032
|
__INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = void 0);
|
|
2032
2033
|
}
|
|
2033
2034
|
if (Q !== "translate exists" && // for not `te` (e.g `t`)
|
|
2034
|
-
be(qe) && qe ===
|
|
2035
|
-
const [cr, po] =
|
|
2036
|
-
return t &&
|
|
2035
|
+
be(qe) && qe === Tt || Q === "translate exists" && !qe) {
|
|
2036
|
+
const [cr, po] = N();
|
|
2037
|
+
return t && A ? J(t) : de(cr);
|
|
2037
2038
|
} else {
|
|
2038
2039
|
if (Ge(qe))
|
|
2039
2040
|
return qe;
|
|
@@ -2041,22 +2042,22 @@ function Oa(e = {}) {
|
|
|
2041
2042
|
}
|
|
2042
2043
|
};
|
|
2043
2044
|
function B(...u) {
|
|
2044
|
-
return Z((
|
|
2045
|
+
return Z((N) => Reflect.apply(Tn, null, [N, ...u]), () => Ut(...u), "translate", (N) => Reflect.apply(N.t, N, [...u]), (N) => N, (N) => W(N));
|
|
2045
2046
|
}
|
|
2046
2047
|
function te(...u) {
|
|
2047
|
-
const [
|
|
2048
|
-
if (
|
|
2048
|
+
const [N, Q, J] = u;
|
|
2049
|
+
if (J && !ee(J))
|
|
2049
2050
|
throw dt(lt.INVALID_ARGUMENT);
|
|
2050
|
-
return B(
|
|
2051
|
+
return B(N, Q, ge({ resolvedMessage: !0 }, J || {}));
|
|
2051
2052
|
}
|
|
2052
2053
|
function z(...u) {
|
|
2053
|
-
return Z((
|
|
2054
|
+
return Z((N) => Reflect.apply(gn, null, [N, ...u]), () => Pt(...u), "datetime format", (N) => Reflect.apply(N.d, N, [...u]), () => pn, (N) => W(N));
|
|
2054
2055
|
}
|
|
2055
2056
|
function me(...u) {
|
|
2056
|
-
return Z((
|
|
2057
|
+
return Z((N) => Reflect.apply(In, null, [N, ...u]), () => jt(...u), "number format", (N) => Reflect.apply(N.n, N, [...u]), () => pn, (N) => W(N));
|
|
2057
2058
|
}
|
|
2058
2059
|
function ve(u) {
|
|
2059
|
-
return u.map((
|
|
2060
|
+
return u.map((N) => W(N) || be(N) || _e(N) ? On(String(N)) : N);
|
|
2060
2061
|
}
|
|
2061
2062
|
const ae = {
|
|
2062
2063
|
normalize: ve,
|
|
@@ -2064,97 +2065,97 @@ function Oa(e = {}) {
|
|
|
2064
2065
|
type: "vnode"
|
|
2065
2066
|
};
|
|
2066
2067
|
function le(...u) {
|
|
2067
|
-
return Z((
|
|
2068
|
+
return Z((N) => {
|
|
2068
2069
|
let Q;
|
|
2069
|
-
const
|
|
2070
|
+
const J = N;
|
|
2070
2071
|
try {
|
|
2071
|
-
|
|
2072
|
+
J.processor = ae, Q = Reflect.apply(Tn, null, [J, ...u]);
|
|
2072
2073
|
} finally {
|
|
2073
|
-
|
|
2074
|
+
J.processor = null;
|
|
2074
2075
|
}
|
|
2075
2076
|
return Q;
|
|
2076
|
-
}, () =>
|
|
2077
|
+
}, () => Ut(...u), "translate", (N) => N[xt](...u), (N) => [On(N)], (N) => pe(N));
|
|
2077
2078
|
}
|
|
2078
|
-
function
|
|
2079
|
-
return Z((
|
|
2079
|
+
function ke(...u) {
|
|
2080
|
+
return Z((N) => Reflect.apply(In, null, [N, ...u]), () => jt(...u), "number format", (N) => N[Wt](...u), Ln, (N) => W(N) || pe(N));
|
|
2080
2081
|
}
|
|
2081
2082
|
function Y(...u) {
|
|
2082
|
-
return Z((
|
|
2083
|
+
return Z((N) => Reflect.apply(gn, null, [N, ...u]), () => Pt(...u), "datetime format", (N) => N[Vt](...u), Ln, (N) => W(N) || pe(N));
|
|
2083
2084
|
}
|
|
2084
2085
|
function fe(u) {
|
|
2085
|
-
|
|
2086
|
+
I = u, v.pluralRules = I;
|
|
2086
2087
|
}
|
|
2087
|
-
function
|
|
2088
|
+
function $e(u, N) {
|
|
2088
2089
|
return Z(() => {
|
|
2089
2090
|
if (!u)
|
|
2090
2091
|
return !1;
|
|
2091
|
-
const Q = W(
|
|
2092
|
-
return ot(de) ||
|
|
2093
|
-
}, () => [u], "translate exists", (Q) => Reflect.apply(Q.te, Q, [u,
|
|
2092
|
+
const Q = W(N) ? N : m.value, J = De(Q), de = v.messageResolver(J, u);
|
|
2093
|
+
return ot(de) || Te(de) || W(de);
|
|
2094
|
+
}, () => [u], "translate exists", (Q) => Reflect.apply(Q.te, Q, [u, N]), Ca, (Q) => _e(Q));
|
|
2094
2095
|
}
|
|
2095
2096
|
function Qe(u) {
|
|
2096
|
-
let
|
|
2097
|
+
let N = null;
|
|
2097
2098
|
const Q = Hn(v, i.value, m.value);
|
|
2098
|
-
for (let
|
|
2099
|
-
const de = b.value[Q[
|
|
2099
|
+
for (let J = 0; J < Q.length; J++) {
|
|
2100
|
+
const de = b.value[Q[J]] || {}, Ge = v.messageResolver(de, u);
|
|
2100
2101
|
if (Ge != null) {
|
|
2101
|
-
|
|
2102
|
+
N = Ge;
|
|
2102
2103
|
break;
|
|
2103
2104
|
}
|
|
2104
2105
|
}
|
|
2105
|
-
return
|
|
2106
|
+
return N;
|
|
2106
2107
|
}
|
|
2107
2108
|
function Ve(u) {
|
|
2108
|
-
const
|
|
2109
|
-
return
|
|
2109
|
+
const N = Qe(u);
|
|
2110
|
+
return N ?? (t ? t.tm(u) || {} : {});
|
|
2110
2111
|
}
|
|
2111
|
-
function
|
|
2112
|
+
function De(u) {
|
|
2112
2113
|
return b.value[u] || {};
|
|
2113
2114
|
}
|
|
2114
|
-
function Fe(u,
|
|
2115
|
+
function Fe(u, N) {
|
|
2115
2116
|
if (a) {
|
|
2116
|
-
const Q = { [u]:
|
|
2117
|
-
for (const
|
|
2118
|
-
Le(Q,
|
|
2119
|
-
|
|
2117
|
+
const Q = { [u]: N };
|
|
2118
|
+
for (const J in Q)
|
|
2119
|
+
Le(Q, J) && mt(Q[J]);
|
|
2120
|
+
N = Q[u];
|
|
2120
2121
|
}
|
|
2121
|
-
b.value[u] =
|
|
2122
|
+
b.value[u] = N, v.messages = b.value;
|
|
2122
2123
|
}
|
|
2123
|
-
function We(u,
|
|
2124
|
+
function We(u, N) {
|
|
2124
2125
|
b.value[u] = b.value[u] || {};
|
|
2125
|
-
const Q = { [u]:
|
|
2126
|
+
const Q = { [u]: N };
|
|
2126
2127
|
if (a)
|
|
2127
|
-
for (const
|
|
2128
|
-
Le(Q,
|
|
2129
|
-
|
|
2128
|
+
for (const J in Q)
|
|
2129
|
+
Le(Q, J) && mt(Q[J]);
|
|
2130
|
+
N = Q[u], yt(N, b.value[u]), v.messages = b.value;
|
|
2130
2131
|
}
|
|
2131
2132
|
function Pe(u) {
|
|
2132
2133
|
return E.value[u] || {};
|
|
2133
2134
|
}
|
|
2134
|
-
function l(u,
|
|
2135
|
-
E.value[u] =
|
|
2135
|
+
function l(u, N) {
|
|
2136
|
+
E.value[u] = N, v.datetimeFormats = E.value, yn(v, u, N);
|
|
2136
2137
|
}
|
|
2137
|
-
function s(u,
|
|
2138
|
-
E.value[u] = ge(E.value[u] || {},
|
|
2138
|
+
function s(u, N) {
|
|
2139
|
+
E.value[u] = ge(E.value[u] || {}, N), v.datetimeFormats = E.value, yn(v, u, N);
|
|
2139
2140
|
}
|
|
2140
2141
|
function c(u) {
|
|
2141
|
-
return
|
|
2142
|
+
return C.value[u] || {};
|
|
2142
2143
|
}
|
|
2143
|
-
function
|
|
2144
|
-
|
|
2144
|
+
function y(u, N) {
|
|
2145
|
+
C.value[u] = N, v.numberFormats = C.value, En(v, u, N);
|
|
2145
2146
|
}
|
|
2146
|
-
function
|
|
2147
|
-
|
|
2147
|
+
function U(u, N) {
|
|
2148
|
+
C.value[u] = ge(C.value[u] || {}, N), v.numberFormats = C.value, En(v, u, N);
|
|
2148
2149
|
}
|
|
2149
|
-
|
|
2150
|
+
Rn++, t && sn && (Mt(t.locale, (u) => {
|
|
2150
2151
|
f && (m.value = u, v.locale = u, it(v, m.value, i.value));
|
|
2151
2152
|
}), Mt(t.fallbackLocale, (u) => {
|
|
2152
2153
|
f && (i.value = u, v.fallbackLocale = u, it(v, m.value, i.value));
|
|
2153
2154
|
}));
|
|
2154
2155
|
const G = {
|
|
2155
|
-
id:
|
|
2156
|
+
id: Rn,
|
|
2156
2157
|
locale: H,
|
|
2157
|
-
fallbackLocale:
|
|
2158
|
+
fallbackLocale: x,
|
|
2158
2159
|
get inheritLocale() {
|
|
2159
2160
|
return f;
|
|
2160
2161
|
},
|
|
@@ -2169,34 +2170,34 @@ function Oa(e = {}) {
|
|
|
2169
2170
|
return g;
|
|
2170
2171
|
},
|
|
2171
2172
|
get pluralRules() {
|
|
2172
|
-
return
|
|
2173
|
+
return I || {};
|
|
2173
2174
|
},
|
|
2174
2175
|
get isGlobal() {
|
|
2175
2176
|
return r;
|
|
2176
2177
|
},
|
|
2177
2178
|
get missingWarn() {
|
|
2178
|
-
return
|
|
2179
|
+
return T;
|
|
2179
2180
|
},
|
|
2180
2181
|
set missingWarn(u) {
|
|
2181
|
-
|
|
2182
|
+
T = u, v.missingWarn = T;
|
|
2182
2183
|
},
|
|
2183
2184
|
get fallbackWarn() {
|
|
2184
|
-
return
|
|
2185
|
+
return w;
|
|
2185
2186
|
},
|
|
2186
2187
|
set fallbackWarn(u) {
|
|
2187
|
-
|
|
2188
|
+
w = u, v.fallbackWarn = w;
|
|
2188
2189
|
},
|
|
2189
2190
|
get fallbackRoot() {
|
|
2190
|
-
return
|
|
2191
|
+
return A;
|
|
2191
2192
|
},
|
|
2192
2193
|
set fallbackRoot(u) {
|
|
2193
|
-
|
|
2194
|
+
A = u;
|
|
2194
2195
|
},
|
|
2195
2196
|
get fallbackFormat() {
|
|
2196
|
-
return
|
|
2197
|
+
return R;
|
|
2197
2198
|
},
|
|
2198
2199
|
set fallbackFormat(u) {
|
|
2199
|
-
|
|
2200
|
+
R = u, v.fallbackFormat = R;
|
|
2200
2201
|
},
|
|
2201
2202
|
get warnHtmlMessage() {
|
|
2202
2203
|
return S;
|
|
@@ -2211,16 +2212,16 @@ function Oa(e = {}) {
|
|
|
2211
2212
|
d = u, v.escapeParameter = u;
|
|
2212
2213
|
},
|
|
2213
2214
|
t: B,
|
|
2214
|
-
getLocaleMessage:
|
|
2215
|
+
getLocaleMessage: De,
|
|
2215
2216
|
setLocaleMessage: Fe,
|
|
2216
2217
|
mergeLocaleMessage: We,
|
|
2217
2218
|
getPostTranslationHandler: F,
|
|
2218
|
-
setPostTranslationHandler:
|
|
2219
|
+
setPostTranslationHandler: D,
|
|
2219
2220
|
getMissingHandler: V,
|
|
2220
2221
|
setMissingHandler: j,
|
|
2221
2222
|
[Ea]: fe
|
|
2222
2223
|
};
|
|
2223
|
-
return G.datetimeFormats = O, G.numberFormats = P, G.rt = te, G.te =
|
|
2224
|
+
return G.datetimeFormats = O, G.numberFormats = P, G.rt = te, G.te = $e, G.tm = Ve, G.d = z, G.n = me, G.getDateTimeFormat = Pe, G.setDateTimeFormat = l, G.mergeDateTimeFormat = s, G.getNumberFormat = c, G.setNumberFormat = y, G.mergeNumberFormat = U, G[rr] = n, G[xt] = le, G[Vt] = Y, G[Wt] = ke, G;
|
|
2224
2225
|
}
|
|
2225
2226
|
const Qt = {
|
|
2226
2227
|
tag: {
|
|
@@ -2271,15 +2272,15 @@ function lr(e, t, n, r) {
|
|
|
2271
2272
|
return () => {
|
|
2272
2273
|
const f = { part: !0 };
|
|
2273
2274
|
let m = se();
|
|
2274
|
-
e.locale && (f.locale = e.locale), W(e.format) ? f.key = e.format : ee(e.format) && (W(e.format.key) && (f.key = e.format.key), m = Object.keys(e.format).reduce((
|
|
2275
|
+
e.locale && (f.locale = e.locale), W(e.format) ? f.key = e.format : ee(e.format) && (W(e.format.key) && (f.key = e.format.key), m = Object.keys(e.format).reduce((T, w) => n.includes(w) ? ge(se(), T, { [w]: e.format[w] }) : T, se()));
|
|
2275
2276
|
const i = r(e.value, f, m);
|
|
2276
2277
|
let b = [f.key];
|
|
2277
|
-
pe(i) ? b = i.map((
|
|
2278
|
-
const
|
|
2279
|
-
return La(
|
|
2278
|
+
pe(i) ? b = i.map((T, w) => {
|
|
2279
|
+
const A = a[T.type], R = A ? A({ [T.type]: T.value, index: w, parts: i }) : [T.value];
|
|
2280
|
+
return La(R) && (R[0].key = `${T.type}-${w}`), R;
|
|
2280
2281
|
}) : W(i) && (b = [i]);
|
|
2281
|
-
const E = ge(se(), o),
|
|
2282
|
-
return Vn(
|
|
2282
|
+
const E = ge(se(), o), C = W(e.tag) || ee(e.tag) ? e.tag : or();
|
|
2283
|
+
return Vn(C, E, b);
|
|
2283
2284
|
};
|
|
2284
2285
|
}
|
|
2285
2286
|
ge({
|
|
@@ -2300,18 +2301,18 @@ ge({
|
|
|
2300
2301
|
type: [String, Object]
|
|
2301
2302
|
}
|
|
2302
2303
|
}, Qt);
|
|
2303
|
-
const
|
|
2304
|
+
const Ra = /* @__PURE__ */ ze("global-vue-i18n");
|
|
2304
2305
|
function Ot(e = {}) {
|
|
2305
2306
|
const t = Yt();
|
|
2306
2307
|
if (t == null)
|
|
2307
2308
|
throw dt(lt.MUST_BE_CALL_SETUP_TOP);
|
|
2308
2309
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2309
2310
|
throw dt(lt.NOT_INSTALLED);
|
|
2310
|
-
const n =
|
|
2311
|
+
const n = ka(t), r = Ma(n), a = ar(t), o = Aa(e, a);
|
|
2311
2312
|
if (o === "global")
|
|
2312
|
-
return
|
|
2313
|
+
return Na(r, e, a), r;
|
|
2313
2314
|
if (o === "parent") {
|
|
2314
|
-
let i =
|
|
2315
|
+
let i = wa(n, t, e.__useComponent);
|
|
2315
2316
|
return i == null && (i = r), i;
|
|
2316
2317
|
}
|
|
2317
2318
|
const f = n;
|
|
@@ -2322,22 +2323,22 @@ function Ot(e = {}) {
|
|
|
2322
2323
|
}
|
|
2323
2324
|
return m;
|
|
2324
2325
|
}
|
|
2325
|
-
function
|
|
2326
|
-
const t = ur(e.isCE ?
|
|
2326
|
+
function ka(e) {
|
|
2327
|
+
const t = ur(e.isCE ? Ra : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2327
2328
|
if (!t)
|
|
2328
2329
|
throw dt(e.isCE ? lt.NOT_INSTALLED_WITH_PROVIDE : lt.UNEXPECTED_ERROR);
|
|
2329
2330
|
return t;
|
|
2330
2331
|
}
|
|
2331
|
-
function
|
|
2332
|
-
return
|
|
2332
|
+
function Aa(e, t) {
|
|
2333
|
+
return Nt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2333
2334
|
}
|
|
2334
2335
|
function Ma(e) {
|
|
2335
2336
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2336
2337
|
}
|
|
2337
|
-
function
|
|
2338
|
+
function wa(e, t, n = !1) {
|
|
2338
2339
|
let r = null;
|
|
2339
2340
|
const a = t.root;
|
|
2340
|
-
let o =
|
|
2341
|
+
let o = Da(t, n);
|
|
2341
2342
|
for (; o != null; ) {
|
|
2342
2343
|
const f = e;
|
|
2343
2344
|
if (e.mode === "composition")
|
|
@@ -2352,11 +2353,11 @@ function Da(e, t, n = !1) {
|
|
|
2352
2353
|
}
|
|
2353
2354
|
return r;
|
|
2354
2355
|
}
|
|
2355
|
-
function
|
|
2356
|
+
function Da(e, t = !1) {
|
|
2356
2357
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2357
2358
|
}
|
|
2358
2359
|
function Fa(e, t, n) {
|
|
2359
|
-
|
|
2360
|
+
xn(() => {
|
|
2360
2361
|
}, t), mr(() => {
|
|
2361
2362
|
const r = n;
|
|
2362
2363
|
e.__deleteInstance(t);
|
|
@@ -2364,15 +2365,15 @@ function Fa(e, t, n) {
|
|
|
2364
2365
|
a && (a(), delete r[Gt]);
|
|
2365
2366
|
}, t);
|
|
2366
2367
|
}
|
|
2367
|
-
|
|
2368
|
-
Qs(
|
|
2369
|
-
qs(
|
|
2368
|
+
Ia();
|
|
2369
|
+
Qs(ws);
|
|
2370
|
+
qs(Js);
|
|
2370
2371
|
ea(Hn);
|
|
2371
2372
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2372
|
-
const e =
|
|
2373
|
-
e.__INTLIFY__ = !0,
|
|
2373
|
+
const e = Je();
|
|
2374
|
+
e.__INTLIFY__ = !0, Ds(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2374
2375
|
}
|
|
2375
|
-
const vt = /* @__PURE__ */
|
|
2376
|
+
const vt = /* @__PURE__ */ Re({
|
|
2376
2377
|
__name: "InheritPermissionTooltip",
|
|
2377
2378
|
props: {
|
|
2378
2379
|
item: {
|
|
@@ -2383,15 +2384,15 @@ const vt = /* @__PURE__ */ ke({
|
|
|
2383
2384
|
setup(e) {
|
|
2384
2385
|
const { t } = Ot();
|
|
2385
2386
|
return (n, r) => {
|
|
2386
|
-
const a =
|
|
2387
|
-
return
|
|
2387
|
+
const a = we("FmIcon"), o = we("FmTooltip");
|
|
2388
|
+
return $(), Ce(o, {
|
|
2388
2389
|
variant: "plain",
|
|
2389
2390
|
placement: "right",
|
|
2390
2391
|
"z-index": 50
|
|
2391
2392
|
}, {
|
|
2392
2393
|
content: ce(() => [
|
|
2393
2394
|
ie("div", null, Oe(X(t)("team.memberForm.permissions.inherited")), 1),
|
|
2394
|
-
(
|
|
2395
|
+
($(!0), re(Me, null, Ee(e.item.setNames, (f) => ($(), re("div", { key: f }, [
|
|
2395
2396
|
ie("div", null, "- " + Oe(f), 1)
|
|
2396
2397
|
]))), 128))
|
|
2397
2398
|
]),
|
|
@@ -2407,7 +2408,7 @@ const vt = /* @__PURE__ */ ke({
|
|
|
2407
2408
|
};
|
|
2408
2409
|
}
|
|
2409
2410
|
});
|
|
2410
|
-
function
|
|
2411
|
+
function An(e, t, n) {
|
|
2411
2412
|
const r = n.filter((m) => m !== "manage");
|
|
2412
2413
|
if (r.length === 0) return;
|
|
2413
2414
|
const a = e.findIndex((m) => m.subject === t && !m.inverted);
|
|
@@ -2421,20 +2422,20 @@ function Rn(e, t, n) {
|
|
|
2421
2422
|
actions: Array.from(o)
|
|
2422
2423
|
});
|
|
2423
2424
|
}
|
|
2424
|
-
const Mn = Object.values(
|
|
2425
|
+
const Mn = Object.values(kr), Pa = {
|
|
2425
2426
|
read: "View",
|
|
2426
2427
|
create: "Duplicate",
|
|
2427
2428
|
update: "Edit"
|
|
2428
2429
|
};
|
|
2429
2430
|
function ja(e, t, n, r) {
|
|
2430
|
-
const { t: a } = Ke(), { getFlagValue: o, getFlag: f } =
|
|
2431
|
-
var
|
|
2431
|
+
const { t: a } = Ke(), { getFlagValue: o, getFlag: f } = Rr(), m = K(() => {
|
|
2432
|
+
var D;
|
|
2432
2433
|
const _ = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map();
|
|
2433
2434
|
for (const V of t.value) {
|
|
2434
2435
|
const j = V.category;
|
|
2435
2436
|
if (!j) continue;
|
|
2436
2437
|
const Z = V.subject;
|
|
2437
|
-
if (n.value.includes(V.subject) || V.showByFeatureFlag && ((
|
|
2438
|
+
if (n.value.includes(V.subject) || V.showByFeatureFlag && ((D = f(V.showByFeatureFlag)) == null ? void 0 : D.enabled) === !1 && o(V.showByFeatureFlag) === "true")
|
|
2438
2439
|
continue;
|
|
2439
2440
|
_.has(j) || _.set(j, []);
|
|
2440
2441
|
const B = P.get(Z) ?? 0;
|
|
@@ -2468,7 +2469,7 @@ function ja(e, t, n, r) {
|
|
|
2468
2469
|
).map((Y) => Y.subject) : e.value.filter((Y) => j.some((fe) => fe.value === Y.subject) && !Y.inverted).map((Y) => Y.subject), he = j.find((Y) => {
|
|
2469
2470
|
var fe;
|
|
2470
2471
|
return (fe = O.get(Y.value)) == null ? void 0 : fe.isCategoryCover;
|
|
2471
|
-
}), ae = (he == null ? void 0 : he.value) ?? null, le = ae ? me.get(ae) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(),
|
|
2472
|
+
}), ae = (he == null ? void 0 : he.value) ?? null, le = ae ? me.get(ae) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), ke = le.has("manage");
|
|
2472
2473
|
return {
|
|
2473
2474
|
category: V,
|
|
2474
2475
|
label: Z,
|
|
@@ -2480,14 +2481,14 @@ function ja(e, t, n, r) {
|
|
|
2480
2481
|
selectedActionsMap: me,
|
|
2481
2482
|
coverSubject: ae,
|
|
2482
2483
|
coverSelectedActions: le,
|
|
2483
|
-
coverCoversAll:
|
|
2484
|
+
coverCoversAll: ke
|
|
2484
2485
|
};
|
|
2485
2486
|
});
|
|
2486
2487
|
});
|
|
2487
2488
|
function i(_, O) {
|
|
2488
|
-
const P = m.value.find((z) => z.category === _), F = (P == null ? void 0 : P.options) ?? [],
|
|
2489
|
+
const P = m.value.find((z) => z.category === _), F = (P == null ? void 0 : P.options) ?? [], D = new Set(F.map((z) => z.value)), V = new Set(O), j = /* @__PURE__ */ new Map();
|
|
2489
2490
|
for (const z of e.value)
|
|
2490
|
-
|
|
2491
|
+
D.has(z.subject) && !z.inverted && j.set(z.subject, z.conditions);
|
|
2491
2492
|
const Z = P != null && P.coverSubject ? j.get(P.coverSubject) : void 0, B = /* @__PURE__ */ new Set(), te = t.value.flatMap(
|
|
2492
2493
|
({ category: z, showByFeatureFlag: me, isCategoryCover: ve, ...he }) => {
|
|
2493
2494
|
const ae = he.subject;
|
|
@@ -2500,22 +2501,22 @@ function ja(e, t, n, r) {
|
|
|
2500
2501
|
}
|
|
2501
2502
|
);
|
|
2502
2503
|
r("update:model-value", [
|
|
2503
|
-
...e.value.filter((z) => !
|
|
2504
|
+
...e.value.filter((z) => !D.has(z.subject)),
|
|
2504
2505
|
...te
|
|
2505
2506
|
]);
|
|
2506
2507
|
}
|
|
2507
2508
|
function b(_, O) {
|
|
2508
|
-
return
|
|
2509
|
+
return w(_, O) || d(_, O);
|
|
2509
2510
|
}
|
|
2510
2511
|
function E(_) {
|
|
2511
2512
|
return _.options.length > 0 && _.options.every((O) => b(_, O.value));
|
|
2512
2513
|
}
|
|
2513
|
-
function
|
|
2514
|
+
function C(_) {
|
|
2514
2515
|
return _.options.length === 0 || E(_) ? !1 : _.options.some(
|
|
2515
|
-
(O) => b(_, O.value) ||
|
|
2516
|
+
(O) => b(_, O.value) || A(_, O.value).length > 0
|
|
2516
2517
|
);
|
|
2517
2518
|
}
|
|
2518
|
-
function
|
|
2519
|
+
function T(_) {
|
|
2519
2520
|
const O = new Set(_.options.map((F) => F.value)), P = e.value.filter((F) => !O.has(F.subject));
|
|
2520
2521
|
if (E(_))
|
|
2521
2522
|
r("update:model-value", P);
|
|
@@ -2523,13 +2524,13 @@ function ja(e, t, n, r) {
|
|
|
2523
2524
|
const F = /* @__PURE__ */ new Map();
|
|
2524
2525
|
for (const Z of e.value)
|
|
2525
2526
|
O.has(Z.subject) && !Z.inverted && F.set(Z.subject, Z.conditions);
|
|
2526
|
-
const
|
|
2527
|
+
const D = _.coverSubject ? F.get(_.coverSubject) : void 0, V = /* @__PURE__ */ new Set(), j = t.value.flatMap(
|
|
2527
2528
|
({ category: Z, showByFeatureFlag: B, isCategoryCover: te, ...z }) => {
|
|
2528
2529
|
const me = z.subject;
|
|
2529
2530
|
if (!O.has(me) || V.has(me)) return [];
|
|
2530
2531
|
V.add(me);
|
|
2531
2532
|
let ve;
|
|
2532
|
-
return F.has(me) ? ve = F.get(me) : _.coverSubject && me !== _.coverSubject && (ve =
|
|
2533
|
+
return F.has(me) ? ve = F.get(me) : _.coverSubject && me !== _.coverSubject && (ve = D), [
|
|
2533
2534
|
{ ...z, ...ve !== void 0 && { conditions: ve } }
|
|
2534
2535
|
];
|
|
2535
2536
|
}
|
|
@@ -2537,18 +2538,18 @@ function ja(e, t, n, r) {
|
|
|
2537
2538
|
r("update:model-value", [...P, ...j]);
|
|
2538
2539
|
}
|
|
2539
2540
|
}
|
|
2540
|
-
function
|
|
2541
|
+
function w(_, O) {
|
|
2541
2542
|
const P = _.selectedActionsMap.get(O);
|
|
2542
2543
|
return P ? P.has("manage") : !1;
|
|
2543
2544
|
}
|
|
2544
|
-
function
|
|
2545
|
+
function A(_, O) {
|
|
2545
2546
|
const P = _.permissionActionsMap.get(O);
|
|
2546
|
-
return P ? P.filter((
|
|
2547
|
-
(
|
|
2547
|
+
return P ? P.filter((D) => D !== "manage").filter(
|
|
2548
|
+
(D) => S(_, O, D) || g(_, O, D)
|
|
2548
2549
|
) : [];
|
|
2549
2550
|
}
|
|
2550
|
-
function
|
|
2551
|
-
return d(_, O) ? !1 : !
|
|
2551
|
+
function R(_, O) {
|
|
2552
|
+
return d(_, O) ? !1 : !w(_, O) && A(_, O).length > 0;
|
|
2552
2553
|
}
|
|
2553
2554
|
function M(_, O) {
|
|
2554
2555
|
if (!_.coverSubject || O === _.coverSubject) return;
|
|
@@ -2562,7 +2563,7 @@ function ja(e, t, n, r) {
|
|
|
2562
2563
|
const F = t.value.find((z) => z.subject === O);
|
|
2563
2564
|
if (!F) return;
|
|
2564
2565
|
const {
|
|
2565
|
-
category:
|
|
2566
|
+
category: D,
|
|
2566
2567
|
showByFeatureFlag: V,
|
|
2567
2568
|
isCategoryCover: j,
|
|
2568
2569
|
...Z
|
|
@@ -2591,16 +2592,16 @@ function ja(e, t, n, r) {
|
|
|
2591
2592
|
function g(_, O, P) {
|
|
2592
2593
|
return !_.coverSubject || O === _.coverSubject ? !1 : _.coverCoversAll ? !0 : _.coverSelectedActions.has(P);
|
|
2593
2594
|
}
|
|
2594
|
-
function
|
|
2595
|
+
function I(_, O, P) {
|
|
2595
2596
|
const F = _.permissionActionsMap.get(O);
|
|
2596
2597
|
return F ? F.includes(P) : !1;
|
|
2597
2598
|
}
|
|
2598
2599
|
function v(_, O, P) {
|
|
2599
|
-
const F = [...e.value],
|
|
2600
|
+
const F = [...e.value], D = F.findIndex((j) => j.subject === _ && !j.inverted);
|
|
2600
2601
|
if (P)
|
|
2601
|
-
if (
|
|
2602
|
-
const j = { ...F[
|
|
2603
|
-
Z.add(O), j.actions = Array.from(Z), F[
|
|
2602
|
+
if (D >= 0) {
|
|
2603
|
+
const j = { ...F[D] }, Z = new Set(j.actions);
|
|
2604
|
+
Z.add(O), j.actions = Array.from(Z), F[D] = j;
|
|
2604
2605
|
} else {
|
|
2605
2606
|
const j = t.value.find((he) => he.subject === _);
|
|
2606
2607
|
if (!j) return;
|
|
@@ -2618,16 +2619,16 @@ function ja(e, t, n, r) {
|
|
|
2618
2619
|
...ve !== void 0 && { conditions: ve }
|
|
2619
2620
|
});
|
|
2620
2621
|
}
|
|
2621
|
-
else if (
|
|
2622
|
-
const j = { ...F[
|
|
2623
|
-
Z.length === 0 ? F.splice(
|
|
2622
|
+
else if (D >= 0) {
|
|
2623
|
+
const j = { ...F[D] }, Z = j.actions.filter((B) => B !== O);
|
|
2624
|
+
Z.length === 0 ? F.splice(D, 1) : (j.actions = Z, F[D] = j);
|
|
2624
2625
|
}
|
|
2625
2626
|
const V = t.value.find((j) => j.subject === _);
|
|
2626
|
-
V &&
|
|
2627
|
+
V && An(F, _, V.actions), r("update:model-value", F);
|
|
2627
2628
|
}
|
|
2628
|
-
function
|
|
2629
|
+
function k(_, O) {
|
|
2629
2630
|
const P = _.options.filter(
|
|
2630
|
-
(F) =>
|
|
2631
|
+
(F) => I(_, F.value, O)
|
|
2631
2632
|
);
|
|
2632
2633
|
return P.length === 0 ? !1 : P.every(
|
|
2633
2634
|
(F) => S(_, F.value, O) || g(_, F.value, O)
|
|
@@ -2635,19 +2636,19 @@ function ja(e, t, n, r) {
|
|
|
2635
2636
|
}
|
|
2636
2637
|
function L(_, O) {
|
|
2637
2638
|
const P = _.options.filter(
|
|
2638
|
-
(
|
|
2639
|
+
(D) => I(_, D.value, O)
|
|
2639
2640
|
);
|
|
2640
2641
|
if (P.length === 0) return !1;
|
|
2641
2642
|
const F = P.filter(
|
|
2642
|
-
(
|
|
2643
|
+
(D) => S(_, D.value, O) || g(_, D.value, O)
|
|
2643
2644
|
).length;
|
|
2644
2645
|
return F > 0 && F < P.length;
|
|
2645
2646
|
}
|
|
2646
2647
|
function H(_, O, P) {
|
|
2647
2648
|
const F = [...e.value];
|
|
2648
|
-
for (const
|
|
2649
|
-
if (!
|
|
2650
|
-
const V =
|
|
2649
|
+
for (const D of _.options) {
|
|
2650
|
+
if (!I(_, D.value, O)) continue;
|
|
2651
|
+
const V = D.value, j = F.findIndex(
|
|
2651
2652
|
(B) => B.subject === V && !B.inverted
|
|
2652
2653
|
);
|
|
2653
2654
|
if (P)
|
|
@@ -2674,11 +2675,11 @@ function ja(e, t, n, r) {
|
|
|
2674
2675
|
te.length === 0 ? F.splice(j, 1) : (B.actions = te, F[j] = B);
|
|
2675
2676
|
}
|
|
2676
2677
|
const Z = t.value.find((B) => B.subject === V);
|
|
2677
|
-
Z &&
|
|
2678
|
+
Z && An(F, V, Z.actions);
|
|
2678
2679
|
}
|
|
2679
2680
|
r("update:model-value", F);
|
|
2680
2681
|
}
|
|
2681
|
-
function
|
|
2682
|
+
function x(_) {
|
|
2682
2683
|
const O = `permissionSet.actionLabels.${_}`, P = Pa[_] ?? _.charAt(0).toUpperCase() + _.slice(1);
|
|
2683
2684
|
return a(O, P);
|
|
2684
2685
|
}
|
|
@@ -2686,24 +2687,24 @@ function ja(e, t, n, r) {
|
|
|
2686
2687
|
categoryGroups: m,
|
|
2687
2688
|
toggleCategory: i,
|
|
2688
2689
|
isAllManageChecked: E,
|
|
2689
|
-
isAllManageIndeterminate:
|
|
2690
|
-
toggleAllManage:
|
|
2691
|
-
isManageChecked:
|
|
2692
|
-
isManageIndeterminate:
|
|
2690
|
+
isAllManageIndeterminate: C,
|
|
2691
|
+
toggleAllManage: T,
|
|
2692
|
+
isManageChecked: w,
|
|
2693
|
+
isManageIndeterminate: R,
|
|
2693
2694
|
toggleManage: p,
|
|
2694
2695
|
hasNonManageActions: h,
|
|
2695
2696
|
isActionChecked: S,
|
|
2696
2697
|
isRowFullyCoveredByCover: d,
|
|
2697
2698
|
isActionCoveredByCover: g,
|
|
2698
|
-
permissionDefinesAction:
|
|
2699
|
+
permissionDefinesAction: I,
|
|
2699
2700
|
toggleAction: v,
|
|
2700
|
-
isAllActionChecked:
|
|
2701
|
+
isAllActionChecked: k,
|
|
2701
2702
|
isAllActionIndeterminate: L,
|
|
2702
2703
|
toggleAllAction: H,
|
|
2703
|
-
actionLabel:
|
|
2704
|
+
actionLabel: x
|
|
2704
2705
|
};
|
|
2705
2706
|
}
|
|
2706
|
-
const
|
|
2707
|
+
const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Va = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Wa = ["onClick"], Ga = { class: "flex justify-center" }, Za = { class: "flex items-center min-w-0 gap-8" }, Ya = ["title", "onClick"], Ba = { class: "flex justify-center" }, Xa = /* @__PURE__ */ Re({
|
|
2707
2708
|
__name: "BasePermission",
|
|
2708
2709
|
props: {
|
|
2709
2710
|
modelValue: {
|
|
@@ -2736,11 +2737,11 @@ const xa = { class: "flex flex-col gap-16" }, Ua = { class: "mt-16" }, Va = { cl
|
|
|
2736
2737
|
isAllManageIndeterminate: i,
|
|
2737
2738
|
toggleAllManage: b,
|
|
2738
2739
|
isManageChecked: E,
|
|
2739
|
-
isManageIndeterminate:
|
|
2740
|
-
toggleManage:
|
|
2741
|
-
isActionChecked:
|
|
2742
|
-
isRowFullyCoveredByCover:
|
|
2743
|
-
isActionCoveredByCover:
|
|
2740
|
+
isManageIndeterminate: C,
|
|
2741
|
+
toggleManage: T,
|
|
2742
|
+
isActionChecked: w,
|
|
2743
|
+
isRowFullyCoveredByCover: A,
|
|
2744
|
+
isActionCoveredByCover: R,
|
|
2744
2745
|
permissionDefinesAction: M,
|
|
2745
2746
|
toggleAction: p,
|
|
2746
2747
|
isAllActionChecked: h,
|
|
@@ -2751,42 +2752,42 @@ const xa = { class: "flex flex-col gap-16" }, Ua = { class: "mt-16" }, Va = { cl
|
|
|
2751
2752
|
qt(n, "modelValue"),
|
|
2752
2753
|
o,
|
|
2753
2754
|
qt(n, "excludedSubjects"),
|
|
2754
|
-
(
|
|
2755
|
+
(k, L) => r("update:model-value", L)
|
|
2755
2756
|
);
|
|
2756
|
-
function
|
|
2757
|
-
const L =
|
|
2757
|
+
function I(k) {
|
|
2758
|
+
const L = k.selectedSubjects.length;
|
|
2758
2759
|
return L === 0 && n.layout !== "leading" ? "" : a("team.memberForm.permissions.allowedCount", { count: L });
|
|
2759
2760
|
}
|
|
2760
|
-
function v(
|
|
2761
|
-
return E(
|
|
2762
|
-
(H) => M(
|
|
2761
|
+
function v(k, L) {
|
|
2762
|
+
return E(k, L) || A(k, L) ? !0 : k.actionColumns.some(
|
|
2763
|
+
(H) => M(k, L, H) && (w(k, L, H) || R(k, L, H))
|
|
2763
2764
|
);
|
|
2764
2765
|
}
|
|
2765
|
-
return (
|
|
2766
|
-
const H =
|
|
2767
|
-
return
|
|
2768
|
-
(
|
|
2769
|
-
key:
|
|
2770
|
-
subtitle:
|
|
2766
|
+
return (k, L) => {
|
|
2767
|
+
const H = we("FmCheckbox");
|
|
2768
|
+
return $(), re("div", Ua, [
|
|
2769
|
+
($(!0), re(Me, null, Ee(X(f), (x) => ($(), Ce(Bt, {
|
|
2770
|
+
key: x.category,
|
|
2771
|
+
subtitle: I(x),
|
|
2771
2772
|
layout: e.layout,
|
|
2772
2773
|
"initially-collapsed": e.layout === "leading"
|
|
2773
2774
|
}, {
|
|
2774
2775
|
title: ce(() => [
|
|
2775
2776
|
ie("p", {
|
|
2776
|
-
class:
|
|
2777
|
-
}, Oe(
|
|
2777
|
+
class: Ie(e.layout === "leading" ? "text-[18px] font-semibold leading-[24px] tracking-[-0.27px]" : "fm-typo-en-title-sm-600")
|
|
2778
|
+
}, Oe(x.label), 3)
|
|
2778
2779
|
]),
|
|
2779
2780
|
default: ce(() => [
|
|
2780
|
-
ie("div",
|
|
2781
|
+
ie("div", xa, [
|
|
2781
2782
|
ie("div", {
|
|
2782
2783
|
class: "grid items-center px-12 py-8",
|
|
2783
2784
|
style: rt({
|
|
2784
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2785
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2785
2786
|
})
|
|
2786
2787
|
}, [
|
|
2787
2788
|
L[0] || (L[0] = ie("div", null, null, -1)),
|
|
2788
2789
|
ie("div", Va, Oe(X(a)("team.memberForm.permissions.columnManage")), 1),
|
|
2789
|
-
(
|
|
2790
|
+
($(!0), re(Me, null, Ee(x.actionColumns, (_) => ($(), re("div", {
|
|
2790
2791
|
key: `header-${_}`,
|
|
2791
2792
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2792
2793
|
}, Oe(X(g)(_)), 1))), 128))
|
|
@@ -2794,86 +2795,86 @@ const xa = { class: "flex flex-col gap-16" }, Ua = { class: "mt-16" }, Va = { cl
|
|
|
2794
2795
|
ie("div", {
|
|
2795
2796
|
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
2796
2797
|
style: rt({
|
|
2797
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2798
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2798
2799
|
})
|
|
2799
2800
|
}, [
|
|
2800
2801
|
ie("div", {
|
|
2801
2802
|
class: "cursor-pointer font-semibold",
|
|
2802
|
-
onClick: (_) => !e.disable && X(b)(
|
|
2803
|
+
onClick: (_) => !e.disable && X(b)(x)
|
|
2803
2804
|
}, Oe(X(a)("team.labels.all")), 9, Wa),
|
|
2804
2805
|
ie("div", Ga, [
|
|
2805
2806
|
oe(H, {
|
|
2806
|
-
"model-value": X(m)(
|
|
2807
|
-
indeterminate: X(i)(
|
|
2807
|
+
"model-value": X(m)(x),
|
|
2808
|
+
indeterminate: X(i)(x),
|
|
2808
2809
|
value: !0,
|
|
2809
2810
|
disabled: e.disable,
|
|
2810
2811
|
size: "sm",
|
|
2811
2812
|
dense: "",
|
|
2812
|
-
"onUpdate:modelValue": (_) => X(b)(
|
|
2813
|
+
"onUpdate:modelValue": (_) => X(b)(x)
|
|
2813
2814
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2814
2815
|
]),
|
|
2815
|
-
(
|
|
2816
|
+
($(!0), re(Me, null, Ee(x.actionColumns, (_) => ($(), re("div", {
|
|
2816
2817
|
key: `all-${_}`,
|
|
2817
2818
|
class: "flex justify-center"
|
|
2818
2819
|
}, [
|
|
2819
2820
|
oe(H, {
|
|
2820
|
-
"model-value": X(h)(
|
|
2821
|
-
indeterminate: X(S)(
|
|
2821
|
+
"model-value": X(h)(x, _),
|
|
2822
|
+
indeterminate: X(S)(x, _),
|
|
2822
2823
|
value: _,
|
|
2823
2824
|
disabled: e.disable,
|
|
2824
2825
|
size: "sm",
|
|
2825
2826
|
dense: "",
|
|
2826
|
-
"onUpdate:modelValue": (O) => X(d)(
|
|
2827
|
+
"onUpdate:modelValue": (O) => X(d)(x, _, O)
|
|
2827
2828
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2828
2829
|
]))), 128))
|
|
2829
2830
|
], 4),
|
|
2830
2831
|
L[1] || (L[1] = ie("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2831
|
-
(
|
|
2832
|
+
($(!0), re(Me, null, Ee(x.options, (_) => ($(), re("div", {
|
|
2832
2833
|
key: _.optionKey,
|
|
2833
2834
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2834
2835
|
style: rt({
|
|
2835
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2836
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2836
2837
|
})
|
|
2837
2838
|
}, [
|
|
2838
2839
|
ie("div", Za, [
|
|
2839
2840
|
ie("span", {
|
|
2840
2841
|
class: "block truncate cursor-pointer",
|
|
2841
2842
|
title: _.label,
|
|
2842
|
-
onClick: (O) => !e.disable && !X(
|
|
2843
|
+
onClick: (O) => !e.disable && !X(A)(x, _.value) && X(T)(x, _.value, !X(E)(x, _.value))
|
|
2843
2844
|
}, Oe(_.label), 9, Ya),
|
|
2844
|
-
Se(
|
|
2845
|
+
Se(k.$slots, `checkbox-${_.value}-append`, {
|
|
2845
2846
|
option: _,
|
|
2846
|
-
isEffectiveSelected: v(
|
|
2847
|
-
isCoveredByCover: X(
|
|
2847
|
+
isEffectiveSelected: v(x, _.value),
|
|
2848
|
+
isCoveredByCover: X(A)(x, _.value) || x.actionColumns.some((O) => X(R)(x, _.value, O))
|
|
2848
2849
|
}),
|
|
2849
|
-
Se(
|
|
2850
|
+
Se(k.$slots, `checkbox-${_.value}-icon`, {
|
|
2850
2851
|
option: _,
|
|
2851
|
-
isEffectiveSelected: v(
|
|
2852
|
-
isCoveredByCover: X(
|
|
2852
|
+
isEffectiveSelected: v(x, _.value),
|
|
2853
|
+
isCoveredByCover: X(A)(x, _.value) || x.actionColumns.some((O) => X(R)(x, _.value, O))
|
|
2853
2854
|
})
|
|
2854
2855
|
]),
|
|
2855
2856
|
ie("div", Ba, [
|
|
2856
2857
|
oe(H, {
|
|
2857
|
-
"model-value": X(E)(
|
|
2858
|
+
"model-value": X(E)(x, _.value) || X(A)(x, _.value),
|
|
2858
2859
|
value: _.value,
|
|
2859
|
-
disabled: e.disable || X(
|
|
2860
|
-
indeterminate: X(
|
|
2860
|
+
disabled: e.disable || X(A)(x, _.value),
|
|
2861
|
+
indeterminate: X(C)(x, _.value),
|
|
2861
2862
|
size: "sm",
|
|
2862
|
-
"onUpdate:modelValue": (O) => X(
|
|
2863
|
+
"onUpdate:modelValue": (O) => X(T)(x, _.value, O)
|
|
2863
2864
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2864
2865
|
]),
|
|
2865
|
-
(
|
|
2866
|
+
($(!0), re(Me, null, Ee(x.actionColumns, (O) => ($(), re("div", {
|
|
2866
2867
|
key: `${_.optionKey}-${O}`,
|
|
2867
2868
|
class: "flex justify-center"
|
|
2868
2869
|
}, [
|
|
2869
|
-
X(M)(
|
|
2870
|
+
X(M)(x, _.value, O) ? ($(), Ce(H, {
|
|
2870
2871
|
key: 0,
|
|
2871
|
-
"model-value": X(
|
|
2872
|
+
"model-value": X(w)(x, _.value, O) || X(R)(x, _.value, O),
|
|
2872
2873
|
value: O,
|
|
2873
|
-
disabled: e.disable || X(
|
|
2874
|
+
disabled: e.disable || X(R)(x, _.value, O),
|
|
2874
2875
|
size: "sm",
|
|
2875
2876
|
"onUpdate:modelValue": (P) => X(p)(_.value, O, P)
|
|
2876
|
-
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) :
|
|
2877
|
+
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Ne("", !0)
|
|
2877
2878
|
]))), 128))
|
|
2878
2879
|
], 4))), 128))
|
|
2879
2880
|
])
|
|
@@ -2883,13 +2884,13 @@ const xa = { class: "flex flex-col gap-16" }, Ua = { class: "mt-16" }, Va = { cl
|
|
|
2883
2884
|
]);
|
|
2884
2885
|
};
|
|
2885
2886
|
}
|
|
2886
|
-
}), Ha = { class: "space-y-16" },
|
|
2887
|
+
}), Ha = { class: "space-y-16" }, $a = {
|
|
2887
2888
|
key: 0,
|
|
2888
2889
|
class: "flex fm-typo-en-title-sm-600"
|
|
2889
|
-
},
|
|
2890
|
+
}, Ja = {
|
|
2890
2891
|
key: 0,
|
|
2891
2892
|
class: "q-mr-xs text-red col"
|
|
2892
|
-
}, Ka = { class: "form-input" }, za = /* @__PURE__ */
|
|
2893
|
+
}, Ka = { class: "form-input" }, za = /* @__PURE__ */ Re({
|
|
2893
2894
|
__name: "AppForm",
|
|
2894
2895
|
props: {
|
|
2895
2896
|
title: {
|
|
@@ -2907,15 +2908,15 @@ const xa = { class: "flex flex-col gap-16" }, Ua = { class: "mt-16" }, Va = { cl
|
|
|
2907
2908
|
},
|
|
2908
2909
|
setup(e) {
|
|
2909
2910
|
const t = e;
|
|
2910
|
-
return (n, r) => (
|
|
2911
|
+
return (n, r) => ($(), re("div", Ha, [
|
|
2911
2912
|
Se(n.$slots, "top", {}, () => [
|
|
2912
|
-
t.title ? (
|
|
2913
|
+
t.title ? ($(), re("div", $a, [
|
|
2913
2914
|
ie("div", null, [
|
|
2914
|
-
t.required ? (
|
|
2915
|
+
t.required ? ($(), re("span", Ja, "*")) : Ne("", !0),
|
|
2915
2916
|
_r(Oe(t.title), 1)
|
|
2916
2917
|
]),
|
|
2917
2918
|
Se(n.$slots, "title-right")
|
|
2918
|
-
])) :
|
|
2919
|
+
])) : Ne("", !0)
|
|
2919
2920
|
]),
|
|
2920
2921
|
ie("div", Ka, [
|
|
2921
2922
|
Se(n.$slots, "default")
|
|
@@ -2925,7 +2926,7 @@ const xa = { class: "flex flex-col gap-16" }, Ua = { class: "mt-16" }, Va = { cl
|
|
|
2925
2926
|
}), Qa = { class: "col flex items-center" }, qa = {
|
|
2926
2927
|
key: 1,
|
|
2927
2928
|
class: "q-pa-sm form-error-message text-error"
|
|
2928
|
-
}, ir = /* @__PURE__ */
|
|
2929
|
+
}, ir = /* @__PURE__ */ Re({
|
|
2929
2930
|
__name: "CheckboxInput",
|
|
2930
2931
|
props: {
|
|
2931
2932
|
options: {
|
|
@@ -2983,53 +2984,53 @@ const xa = { class: "flex flex-col gap-16" }, Ua = { class: "mt-16" }, Va = { cl
|
|
|
2983
2984
|
},
|
|
2984
2985
|
emits: ["update:model-value"],
|
|
2985
2986
|
setup(e, { emit: t }) {
|
|
2986
|
-
const n = e, r = t, { t: a } = Ke(), o = st(!1), f = pr(), m = K(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), i = `checkbox-${
|
|
2987
|
-
() => n.modelValue.filter((
|
|
2988
|
-
),
|
|
2987
|
+
const n = e, r = t, { t: a } = Ke(), o = st(!1), f = pr(), m = K(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), i = `checkbox-${wr(6)}`, b = K(() => m.value !== !0), E = K(
|
|
2988
|
+
() => n.modelValue.filter((R) => n.options.some((M) => M.value === R))
|
|
2989
|
+
), C = K(
|
|
2989
2990
|
() => typeof n.showAllToggle == "boolean" ? a("team.labels.all") : n.showAllToggle
|
|
2990
|
-
),
|
|
2991
|
-
function
|
|
2992
|
-
const
|
|
2993
|
-
if (
|
|
2994
|
-
r("update:model-value",
|
|
2991
|
+
), T = K(() => n.options.length > 0 && n.options.length === E.value.length);
|
|
2992
|
+
function w() {
|
|
2993
|
+
const R = n.modelValue.filter((M) => !E.value.includes(M));
|
|
2994
|
+
if (T.value === !0)
|
|
2995
|
+
r("update:model-value", R);
|
|
2995
2996
|
else {
|
|
2996
2997
|
const M = n.includeDisabledOptionsWhenSelectAll ? n.options.map((p) => p.value) : n.options.filter((p) => !p.disabled).map((p) => p.value);
|
|
2997
|
-
r("update:model-value", [...
|
|
2998
|
+
r("update:model-value", [...R, ...M]);
|
|
2998
2999
|
}
|
|
2999
3000
|
}
|
|
3000
|
-
function R
|
|
3001
|
+
function A(R, M) {
|
|
3001
3002
|
let p = Yn(n.modelValue);
|
|
3002
|
-
M ? p.every((h) => h !==
|
|
3003
|
+
M ? p.every((h) => h !== R) && p.push(R) : p = p.filter((h) => h !== R), r("update:model-value", p);
|
|
3003
3004
|
}
|
|
3004
|
-
return (
|
|
3005
|
-
const p =
|
|
3006
|
-
return
|
|
3005
|
+
return (R, M) => {
|
|
3006
|
+
const p = we("FmCheckbox");
|
|
3007
|
+
return $(), Ce(za, {
|
|
3007
3008
|
id: i,
|
|
3008
3009
|
title: e.title,
|
|
3009
3010
|
required: !1
|
|
3010
3011
|
}, {
|
|
3011
3012
|
top: ce(() => [
|
|
3012
|
-
Se(
|
|
3013
|
+
Se(R.$slots, "top")
|
|
3013
3014
|
]),
|
|
3014
3015
|
default: ce(() => [
|
|
3015
|
-
n.showAllToggle ? (
|
|
3016
|
+
n.showAllToggle ? ($(), Ce(p, {
|
|
3016
3017
|
key: 0,
|
|
3017
|
-
"model-value":
|
|
3018
|
+
"model-value": T.value,
|
|
3018
3019
|
disabled: e.disable,
|
|
3019
|
-
label:
|
|
3020
|
+
label: C.value,
|
|
3020
3021
|
style: rt(`margin-bottom: ${n.gutter}px`),
|
|
3021
3022
|
size: "sm",
|
|
3022
3023
|
dense: "",
|
|
3023
|
-
value:
|
|
3024
|
-
"onUpdate:modelValue":
|
|
3025
|
-
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) :
|
|
3026
|
-
(
|
|
3024
|
+
value: C.value,
|
|
3025
|
+
"onUpdate:modelValue": w
|
|
3026
|
+
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Ne("", !0),
|
|
3027
|
+
($(!0), re(Me, null, Ee(e.options, (h, S) => ($(), re("div", {
|
|
3027
3028
|
key: h.value,
|
|
3028
3029
|
style: rt(`margin-bottom: ${S < e.options.length - 1 ? n.gutter : 0}px`),
|
|
3029
|
-
class:
|
|
3030
|
+
class: Ie(S < e.options.length - 1 ? "q-mb-sm" : "")
|
|
3030
3031
|
}, [
|
|
3031
3032
|
ie("div", {
|
|
3032
|
-
class:
|
|
3033
|
+
class: Ie(["row justify-between", e.alignCenter ? "items-center" : "items-start"])
|
|
3033
3034
|
}, [
|
|
3034
3035
|
ie("div", Qa, [
|
|
3035
3036
|
oe(p, {
|
|
@@ -3038,43 +3039,43 @@ const xa = { class: "flex flex-col gap-16" }, Ua = { class: "mt-16" }, Va = { cl
|
|
|
3038
3039
|
size: "sm",
|
|
3039
3040
|
label: h.label,
|
|
3040
3041
|
value: h.label,
|
|
3041
|
-
"onUpdate:modelValue": (d) =>
|
|
3042
|
+
"onUpdate:modelValue": (d) => A(h.value, d)
|
|
3042
3043
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
3043
|
-
Se(
|
|
3044
|
+
Se(R.$slots, `checkbox-${h.key || h.value}-append`, {
|
|
3044
3045
|
option: h,
|
|
3045
3046
|
selected: e.modelValue.includes(h.value)
|
|
3046
3047
|
})
|
|
3047
3048
|
]),
|
|
3048
|
-
X(f)[`checkbox-${h.key || h.value}-end`] && (e.modelValue.includes(h.value) || e.falsyShowSlot) ? (
|
|
3049
|
+
X(f)[`checkbox-${h.key || h.value}-end`] && (e.modelValue.includes(h.value) || e.falsyShowSlot) ? ($(), re("div", {
|
|
3049
3050
|
key: 0,
|
|
3050
|
-
class:
|
|
3051
|
+
class: Ie([{ "q-checkbox disabled": e.disable || h.disabled }, "col"])
|
|
3051
3052
|
}, [
|
|
3052
|
-
Se(
|
|
3053
|
+
Se(R.$slots, `checkbox-${h.key || h.value}-end`, {
|
|
3053
3054
|
option: h,
|
|
3054
3055
|
value: e.modelValue.includes(h.value),
|
|
3055
3056
|
disable: e.disable || h.disabled
|
|
3056
3057
|
})
|
|
3057
|
-
], 2)) :
|
|
3058
|
+
], 2)) : Ne("", !0)
|
|
3058
3059
|
], 2),
|
|
3059
|
-
X(f)[`checkbox-${h.key || h.value}-bottom`] && (e.modelValue.includes(h.value) || e.falsyShowSlot) ? (
|
|
3060
|
+
X(f)[`checkbox-${h.key || h.value}-bottom`] && (e.modelValue.includes(h.value) || e.falsyShowSlot) ? ($(), re("div", {
|
|
3060
3061
|
key: 0,
|
|
3061
|
-
class:
|
|
3062
|
+
class: Ie(["q-mt-sm", { "q-checkbox disabled": e.disable || h.disabled }]),
|
|
3062
3063
|
style: rt(`margin-left: ${e.bottomSlotIndent}`)
|
|
3063
3064
|
}, [
|
|
3064
|
-
Se(
|
|
3065
|
+
Se(R.$slots, `checkbox-${h.key || h.value}-bottom`, {
|
|
3065
3066
|
option: h,
|
|
3066
3067
|
disable: e.disable || h.disabled,
|
|
3067
3068
|
value: e.modelValue.includes(h.value)
|
|
3068
3069
|
})
|
|
3069
|
-
], 6)) :
|
|
3070
|
+
], 6)) : Ne("", !0)
|
|
3070
3071
|
], 6))), 128)),
|
|
3071
|
-
o.value && b.value ? (
|
|
3072
|
+
o.value && b.value ? ($(), re("div", qa, Oe(m.value), 1)) : Ne("", !0)
|
|
3072
3073
|
]),
|
|
3073
3074
|
_: 3
|
|
3074
3075
|
}, 8, ["title"]);
|
|
3075
3076
|
};
|
|
3076
3077
|
}
|
|
3077
|
-
}), ht = "includedFuture",
|
|
3078
|
+
}), ht = "includedFuture", wn = /* @__PURE__ */ Re({
|
|
3078
3079
|
__name: "ConditionPermission",
|
|
3079
3080
|
props: {
|
|
3080
3081
|
modelValue: {
|
|
@@ -3113,43 +3114,43 @@ const xa = { class: "flex flex-col gap-16" }, Ua = { class: "mt-16" }, Va = { cl
|
|
|
3113
3114
|
)
|
|
3114
3115
|
]), f = K(() => n.modelValue ? n.modelValue : [ht, ...n.options.map((E) => E.value)]), m = K(() => {
|
|
3115
3116
|
if (n.layout === "leading") {
|
|
3116
|
-
const
|
|
3117
|
-
return Bn(
|
|
3117
|
+
const C = n.modelValue ? n.options.filter((T) => n.modelValue.includes(T.value)).map((T) => T.label) : null;
|
|
3118
|
+
return Bn(C, {
|
|
3118
3119
|
all: a("team.labels.all"),
|
|
3119
3120
|
none: a("team.labels.none"),
|
|
3120
|
-
more: (
|
|
3121
|
+
more: (T) => a("team.labels.more", { count: T })
|
|
3121
3122
|
});
|
|
3122
3123
|
}
|
|
3123
|
-
const E = f.value.filter((
|
|
3124
|
+
const E = f.value.filter((C) => C !== ht).length;
|
|
3124
3125
|
return E === 0 ? "" : a("team.memberForm.permissions.allowedCount", { count: E });
|
|
3125
3126
|
});
|
|
3126
3127
|
function i(E) {
|
|
3127
|
-
const
|
|
3128
|
-
r("update:model-value",
|
|
3128
|
+
const C = E.length === o.value.length;
|
|
3129
|
+
r("update:model-value", C ? null : E.filter((T) => T !== ht));
|
|
3129
3130
|
}
|
|
3130
3131
|
const b = st("");
|
|
3131
|
-
return (E,
|
|
3132
|
-
const
|
|
3133
|
-
return
|
|
3132
|
+
return (E, C) => {
|
|
3133
|
+
const T = we("fm-search");
|
|
3134
|
+
return $(), Ce(Bt, {
|
|
3134
3135
|
subtitle: m.value,
|
|
3135
3136
|
layout: e.layout,
|
|
3136
3137
|
"initially-collapsed": e.layout === "leading"
|
|
3137
3138
|
}, {
|
|
3138
3139
|
title: ce(() => [
|
|
3139
3140
|
ie("p", {
|
|
3140
|
-
class:
|
|
3141
|
+
class: Ie(
|
|
3141
3142
|
e.layout === "leading" ? "text-[18px] font-semibold leading-[24px] tracking-[-0.27px]" : "fm-typo-en-title-sm-600"
|
|
3142
3143
|
)
|
|
3143
3144
|
}, Oe(X(a)("team.memberForm.permissions.manageable", { context: e.context })), 3)
|
|
3144
3145
|
]),
|
|
3145
3146
|
default: ce(() => [
|
|
3146
|
-
e.options.length > 1 ? (
|
|
3147
|
+
e.options.length > 1 ? ($(), Ce(T, {
|
|
3147
3148
|
key: 0,
|
|
3148
3149
|
modelValue: b.value,
|
|
3149
|
-
"onUpdate:modelValue":
|
|
3150
|
+
"onUpdate:modelValue": C[0] || (C[0] = (w) => b.value = w),
|
|
3150
3151
|
class: "mt-16",
|
|
3151
3152
|
placeholder: X(a)("team.memberForm.permissions.search", { context: e.context })
|
|
3152
|
-
}, null, 8, ["modelValue", "placeholder"])) :
|
|
3153
|
+
}, null, 8, ["modelValue", "placeholder"])) : Ne("", !0),
|
|
3153
3154
|
oe(ir, {
|
|
3154
3155
|
"model-value": f.value,
|
|
3155
3156
|
options: o.value,
|
|
@@ -3161,10 +3162,10 @@ const xa = { class: "flex flex-col gap-16" }, Ua = { class: "mt-16" }, Va = { cl
|
|
|
3161
3162
|
class: "mt-16",
|
|
3162
3163
|
"onUpdate:modelValue": i
|
|
3163
3164
|
}, tt({ _: 2 }, [
|
|
3164
|
-
Ee(o.value, (
|
|
3165
|
-
name: `checkbox-${
|
|
3166
|
-
fn: ce(({ option:
|
|
3167
|
-
Se(E.$slots, `checkbox-${
|
|
3165
|
+
Ee(o.value, (w) => ({
|
|
3166
|
+
name: `checkbox-${w.value}-append`,
|
|
3167
|
+
fn: ce(({ option: A }) => [
|
|
3168
|
+
Se(E.$slots, `checkbox-${w.value}-append`, { option: A })
|
|
3168
3169
|
])
|
|
3169
3170
|
}))
|
|
3170
3171
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3173,7 +3174,7 @@ const xa = { class: "flex flex-col gap-16" }, Ua = { class: "mt-16" }, Va = { cl
|
|
|
3173
3174
|
}, 8, ["subtitle", "layout", "initially-collapsed"]);
|
|
3174
3175
|
};
|
|
3175
3176
|
}
|
|
3176
|
-
}), bt = "includedNewRole", eo = /* @__PURE__ */
|
|
3177
|
+
}), bt = "includedNewRole", eo = /* @__PURE__ */ Re({
|
|
3177
3178
|
__name: "PosRolePermission",
|
|
3178
3179
|
props: {
|
|
3179
3180
|
modelValue: {
|
|
@@ -3211,16 +3212,16 @@ const xa = { class: "flex flex-col gap-16" }, Ua = { class: "mt-16" }, Va = { cl
|
|
|
3211
3212
|
...n.roles.map((E) => ({
|
|
3212
3213
|
label: E.name,
|
|
3213
3214
|
value: E._id,
|
|
3214
|
-
disabled: !!b && E.restaurants.every(({ id:
|
|
3215
|
+
disabled: !!b && E.restaurants.every(({ id: C }) => !b.includes(C))
|
|
3215
3216
|
}))
|
|
3216
3217
|
];
|
|
3217
3218
|
}), f = K(() => n.modelValue ? n.modelValue : [bt, ...n.roles.map((b) => b._id)]), m = K(() => {
|
|
3218
3219
|
if (n.layout === "leading") {
|
|
3219
|
-
const E = n.modelValue ? n.roles.filter((
|
|
3220
|
+
const E = n.modelValue ? n.roles.filter((C) => n.modelValue.includes(C._id)).map((C) => C.name) : null;
|
|
3220
3221
|
return Bn(E, {
|
|
3221
3222
|
all: a("team.labels.all"),
|
|
3222
3223
|
none: a("team.labels.none"),
|
|
3223
|
-
more: (
|
|
3224
|
+
more: (C) => a("team.labels.more", { count: C })
|
|
3224
3225
|
});
|
|
3225
3226
|
}
|
|
3226
3227
|
const b = f.value.filter((E) => E !== bt).length;
|
|
@@ -3228,16 +3229,16 @@ const xa = { class: "flex flex-col gap-16" }, Ua = { class: "mt-16" }, Va = { cl
|
|
|
3228
3229
|
});
|
|
3229
3230
|
function i(b) {
|
|
3230
3231
|
const E = b.length === o.value.length;
|
|
3231
|
-
r("update:model-value", E ? null : b.filter((
|
|
3232
|
+
r("update:model-value", E ? null : b.filter((C) => C !== bt));
|
|
3232
3233
|
}
|
|
3233
|
-
return (b, E) => (
|
|
3234
|
+
return (b, E) => ($(), Ce(Bt, {
|
|
3234
3235
|
subtitle: m.value,
|
|
3235
3236
|
layout: e.layout,
|
|
3236
3237
|
"initially-collapsed": e.layout === "leading"
|
|
3237
3238
|
}, {
|
|
3238
3239
|
title: ce(() => [
|
|
3239
3240
|
ie("p", {
|
|
3240
|
-
class:
|
|
3241
|
+
class: Ie(
|
|
3241
3242
|
e.layout === "leading" ? "text-[18px] font-semibold leading-[24px] tracking-[-0.27px]" : "fm-typo-en-title-sm-600"
|
|
3242
3243
|
)
|
|
3243
3244
|
}, Oe(X(a)("team.memberForm.permissions.roles")), 3)
|
|
@@ -3253,10 +3254,10 @@ const xa = { class: "flex flex-col gap-16" }, Ua = { class: "mt-16" }, Va = { cl
|
|
|
3253
3254
|
class: "mt-16",
|
|
3254
3255
|
"onUpdate:modelValue": i
|
|
3255
3256
|
}, tt({ _: 2 }, [
|
|
3256
|
-
Ee(o.value, (
|
|
3257
|
-
name: `checkbox-${
|
|
3258
|
-
fn: ce(({ option:
|
|
3259
|
-
Se(b.$slots, `checkbox-${
|
|
3257
|
+
Ee(o.value, (C) => ({
|
|
3258
|
+
name: `checkbox-${C.value}-append`,
|
|
3259
|
+
fn: ce(({ option: T }) => [
|
|
3260
|
+
Se(b.$slots, `checkbox-${C.value}-append`, { option: T })
|
|
3260
3261
|
])
|
|
3261
3262
|
}))
|
|
3262
3263
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3274,7 +3275,7 @@ const xa = { class: "flex flex-col gap-16" }, Ua = { class: "mt-16" }, Va = { cl
|
|
|
3274
3275
|
}, ro = {
|
|
3275
3276
|
key: 0,
|
|
3276
3277
|
class: "ml-32"
|
|
3277
|
-
},
|
|
3278
|
+
}, Dn = /* @__PURE__ */ Re({
|
|
3278
3279
|
__name: "PortalConditionForm",
|
|
3279
3280
|
props: {
|
|
3280
3281
|
entry: {},
|
|
@@ -3293,8 +3294,8 @@ const xa = { class: "flex flex-col gap-16" }, Ua = { class: "mt-16" }, Va = { cl
|
|
|
3293
3294
|
setup(e, { emit: t }) {
|
|
3294
3295
|
const n = t, { t: r } = Ke();
|
|
3295
3296
|
return (a, o) => {
|
|
3296
|
-
const f =
|
|
3297
|
-
return
|
|
3297
|
+
const f = we("FmRadio"), m = we("FmRadioGroup");
|
|
3298
|
+
return $(), Ce(Sr, {
|
|
3298
3299
|
title: e.title,
|
|
3299
3300
|
builders: e.builders,
|
|
3300
3301
|
"form-value-for": e.formValueFor,
|
|
@@ -3305,7 +3306,7 @@ const xa = { class: "flex flex-col gap-16" }, Ua = { class: "mt-16" }, Va = { cl
|
|
|
3305
3306
|
onApply: o[1] || (o[1] = (i) => n("apply"))
|
|
3306
3307
|
}, {
|
|
3307
3308
|
section: ce(({ builder: i }) => [
|
|
3308
|
-
e.coverOverride.shouldShowInheritToggle(e.entry, i) ? (
|
|
3309
|
+
e.coverOverride.shouldShowInheritToggle(e.entry, i) ? ($(), re("div", to, [
|
|
3309
3310
|
oe(m, {
|
|
3310
3311
|
"model-value": e.inheritModeFor(i),
|
|
3311
3312
|
disabled: e.disable,
|
|
@@ -3319,10 +3320,10 @@ const xa = { class: "flex flex-col gap-16" }, Ua = { class: "mt-16" }, Va = { cl
|
|
|
3319
3320
|
cover: e.coverOverride.coverLabel(e.subject)
|
|
3320
3321
|
})
|
|
3321
3322
|
}, null, 8, ["label"]),
|
|
3322
|
-
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? (
|
|
3323
|
+
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? ($(), re("p", no, " (" + Oe(X(r)(
|
|
3323
3324
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).labelKey,
|
|
3324
3325
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).params ?? {}
|
|
3325
|
-
)) + ") ", 1)) :
|
|
3326
|
+
)) + ") ", 1)) : Ne("", !0)
|
|
3326
3327
|
]),
|
|
3327
3328
|
oe(f, {
|
|
3328
3329
|
value: "custom",
|
|
@@ -3331,15 +3332,15 @@ const xa = { class: "flex flex-col gap-16" }, Ua = { class: "mt-16" }, Va = { cl
|
|
|
3331
3332
|
]),
|
|
3332
3333
|
_: 2
|
|
3333
3334
|
}, 1032, ["model-value", "disabled", "onUpdate:modelValue"]),
|
|
3334
|
-
e.inheritModeFor(i) === "custom" ? (
|
|
3335
|
+
e.inheritModeFor(i) === "custom" ? ($(), re("div", ro, [
|
|
3335
3336
|
oe(nn, {
|
|
3336
3337
|
builder: i,
|
|
3337
3338
|
"model-value": e.formValueFor(i),
|
|
3338
3339
|
disable: e.disable,
|
|
3339
3340
|
"onUpdate:modelValue": (b) => n("update-form", { builder: i, form: b })
|
|
3340
3341
|
}, null, 8, ["builder", "model-value", "disable", "onUpdate:modelValue"])
|
|
3341
|
-
])) :
|
|
3342
|
-
])) : (
|
|
3342
|
+
])) : Ne("", !0)
|
|
3343
|
+
])) : ($(), Ce(nn, {
|
|
3343
3344
|
key: 1,
|
|
3344
3345
|
builder: i,
|
|
3345
3346
|
"model-value": e.formValueFor(i),
|
|
@@ -3353,7 +3354,7 @@ const xa = { class: "flex flex-col gap-16" }, Ua = { class: "mt-16" }, Va = { cl
|
|
|
3353
3354
|
}
|
|
3354
3355
|
}), so = {
|
|
3355
3356
|
async readWarehouses() {
|
|
3356
|
-
return
|
|
3357
|
+
return Ar(await Mr().get("/warehouses"));
|
|
3357
3358
|
}
|
|
3358
3359
|
};
|
|
3359
3360
|
function Fn(e, t) {
|
|
@@ -3388,29 +3389,29 @@ function ao(e, t, n, r) {
|
|
|
3388
3389
|
const b = m.some((E) => E.subject === i && E.inverted);
|
|
3389
3390
|
if (m = m.filter((E) => !(E.subject === i && E.inverted)), !b && !f.has(i)) {
|
|
3390
3391
|
const E = t.find(
|
|
3391
|
-
(
|
|
3392
|
-
),
|
|
3393
|
-
|
|
3392
|
+
(T) => T.subject === i && !T.inverted
|
|
3393
|
+
), C = r(i);
|
|
3394
|
+
C && E && m.push(jn(C, E.actions, E.conditions));
|
|
3394
3395
|
}
|
|
3395
3396
|
}
|
|
3396
3397
|
for (const i of o) {
|
|
3397
3398
|
if (!a.has(i)) continue;
|
|
3398
|
-
const b = e.find((
|
|
3399
|
+
const b = e.find((A) => A.subject === i && !A.inverted), E = t.find((A) => A.subject === i && !A.inverted);
|
|
3399
3400
|
if (!b || !E) continue;
|
|
3400
|
-
const
|
|
3401
|
-
if (
|
|
3401
|
+
const C = new Set(b.actions), T = new Set(E.actions);
|
|
3402
|
+
if (C.size === T.size && [...C].every((A) => T.has(A)))
|
|
3402
3403
|
continue;
|
|
3403
|
-
const
|
|
3404
|
-
if (
|
|
3405
|
-
m[
|
|
3406
|
-
...m[
|
|
3407
|
-
actions: Array.from(
|
|
3404
|
+
const w = m.findIndex((A) => A.subject === i && !A.inverted);
|
|
3405
|
+
if (w >= 0)
|
|
3406
|
+
m[w] = {
|
|
3407
|
+
...m[w],
|
|
3408
|
+
actions: Array.from(T)
|
|
3408
3409
|
};
|
|
3409
3410
|
else {
|
|
3410
|
-
const
|
|
3411
|
-
|
|
3411
|
+
const A = r(i);
|
|
3412
|
+
A && m.push(jn(A, Array.from(T)));
|
|
3412
3413
|
}
|
|
3413
|
-
|
|
3414
|
+
C.has("manage") && !T.has("manage") && Fn(m, i) && (m = Pn(m, i)), !C.has("manage") && T.has("manage") && (m = m.filter((A) => !(A.subject === i && A.inverted)));
|
|
3414
3415
|
}
|
|
3415
3416
|
return m;
|
|
3416
3417
|
}
|
|
@@ -3449,15 +3450,15 @@ function Be(e) {
|
|
|
3449
3450
|
function co(e, t) {
|
|
3450
3451
|
return e.find((n) => !n.inverted && n.subject === t);
|
|
3451
3452
|
}
|
|
3452
|
-
function
|
|
3453
|
+
function At(e, t) {
|
|
3453
3454
|
const n = new Set(e.actions);
|
|
3454
3455
|
return n.has(Ye.Action.manage) ? !0 : t.actions.every((r) => n.has(r));
|
|
3455
3456
|
}
|
|
3456
3457
|
function Zt(e, t) {
|
|
3457
3458
|
const n = Be(e);
|
|
3458
|
-
return
|
|
3459
|
+
return wt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3459
3460
|
}
|
|
3460
|
-
function
|
|
3461
|
+
function Un(e, t, n) {
|
|
3461
3462
|
return {
|
|
3462
3463
|
...Zt(e, n),
|
|
3463
3464
|
...nt(Be(t), n)
|
|
@@ -3466,15 +3467,15 @@ function xn(e, t, n) {
|
|
|
3466
3467
|
function uo(e, t, n) {
|
|
3467
3468
|
const r = st(/* @__PURE__ */ new Set());
|
|
3468
3469
|
function a(d) {
|
|
3469
|
-
return
|
|
3470
|
+
return yr(d, t.value);
|
|
3470
3471
|
}
|
|
3471
3472
|
function o(d) {
|
|
3472
3473
|
return t.value.find((g) => g.subject === d);
|
|
3473
3474
|
}
|
|
3474
3475
|
function f(d) {
|
|
3475
|
-
var
|
|
3476
|
+
var I;
|
|
3476
3477
|
const g = a(d);
|
|
3477
|
-
return g ? (
|
|
3478
|
+
return g ? (I = o(g)) == null ? void 0 : I.label : void 0;
|
|
3478
3479
|
}
|
|
3479
3480
|
function m(d) {
|
|
3480
3481
|
return co(e.value, d);
|
|
@@ -3483,107 +3484,107 @@ function uo(e, t, n) {
|
|
|
3483
3484
|
return nt(Be(d), g);
|
|
3484
3485
|
}
|
|
3485
3486
|
function b(d, g) {
|
|
3486
|
-
var
|
|
3487
|
-
if (!(((
|
|
3488
|
-
const
|
|
3489
|
-
if (!
|
|
3490
|
-
const v = m(
|
|
3487
|
+
var k;
|
|
3488
|
+
if (!(((k = g.appliesToActions) == null ? void 0 : k.call(g, d.actions)) ?? !0)) return !1;
|
|
3489
|
+
const I = a(d.subject);
|
|
3490
|
+
if (!I) return !1;
|
|
3491
|
+
const v = m(I);
|
|
3491
3492
|
return v ? Object.keys(i(v, g)).length > 0 : !1;
|
|
3492
3493
|
}
|
|
3493
3494
|
function E(d, g) {
|
|
3494
3495
|
if (!b(d, g) || r.value.has(gt(d.subject, g))) return "custom";
|
|
3495
3496
|
if (d.index === null) return "inherit";
|
|
3496
|
-
const
|
|
3497
|
-
if (
|
|
3498
|
-
const L = nt(Be(
|
|
3497
|
+
const I = e.value[d.index], v = a(d.subject), k = v ? m(v) : void 0;
|
|
3498
|
+
if (I && k) {
|
|
3499
|
+
const L = nt(Be(I), g), H = i(k, g);
|
|
3499
3500
|
if (JSON.stringify(L) === JSON.stringify(H)) return "inherit";
|
|
3500
3501
|
}
|
|
3501
3502
|
return "custom";
|
|
3502
3503
|
}
|
|
3503
|
-
function
|
|
3504
|
+
function C(d, g, I) {
|
|
3504
3505
|
if (!g.summarizeForm) return;
|
|
3505
3506
|
const v = a(d.subject);
|
|
3506
3507
|
if (!v) return;
|
|
3507
|
-
const
|
|
3508
|
-
if (!
|
|
3509
|
-
const L = g.fromCondition(i(
|
|
3510
|
-
return g.summarizeForm(L, { timeZone:
|
|
3508
|
+
const k = m(v);
|
|
3509
|
+
if (!k) return;
|
|
3510
|
+
const L = g.fromCondition(i(k, g));
|
|
3511
|
+
return g.summarizeForm(L, { timeZone: I });
|
|
3511
3512
|
}
|
|
3512
|
-
function
|
|
3513
|
+
function T(d, g) {
|
|
3513
3514
|
if (d.index === null) return;
|
|
3514
|
-
const
|
|
3515
|
+
const I = [...e.value], v = { ...I[d.index] }, k = Zt(v, g), L = Object.keys(k).length === 0, H = a(d.subject), x = H ? m(H) : void 0, _ = x ? At(x, v) : !1;
|
|
3515
3516
|
if (L && _)
|
|
3516
|
-
|
|
3517
|
-
else if (
|
|
3518
|
-
const O =
|
|
3519
|
-
Object.keys(O).length === 0 ? delete v.conditions : v.conditions = JSON.stringify(O),
|
|
3517
|
+
I.splice(d.index, 1);
|
|
3518
|
+
else if (x) {
|
|
3519
|
+
const O = Un(v, x, g);
|
|
3520
|
+
Object.keys(O).length === 0 ? delete v.conditions : v.conditions = JSON.stringify(O), I[d.index] = v;
|
|
3520
3521
|
} else
|
|
3521
|
-
L ? delete v.conditions : v.conditions = JSON.stringify(
|
|
3522
|
-
n(
|
|
3522
|
+
L ? delete v.conditions : v.conditions = JSON.stringify(k), I[d.index] = v;
|
|
3523
|
+
n(I);
|
|
3523
3524
|
}
|
|
3524
|
-
function
|
|
3525
|
+
function w(d, g, I) {
|
|
3525
3526
|
const v = gt(d.subject, g);
|
|
3526
|
-
if (
|
|
3527
|
+
if (I === "inherit") {
|
|
3527
3528
|
const L = new Set(r.value);
|
|
3528
|
-
L.delete(v), r.value = L,
|
|
3529
|
+
L.delete(v), r.value = L, T(d, g);
|
|
3529
3530
|
return;
|
|
3530
3531
|
}
|
|
3531
|
-
const
|
|
3532
|
-
|
|
3532
|
+
const k = new Set(r.value);
|
|
3533
|
+
k.add(v), r.value = k, d.index === null && h(d, g, g.fromCondition(void 0), {
|
|
3533
3534
|
forceCreateRule: !0
|
|
3534
3535
|
});
|
|
3535
3536
|
}
|
|
3536
|
-
function
|
|
3537
|
+
function A(d) {
|
|
3537
3538
|
const g = a(d);
|
|
3538
3539
|
if (!g) return [];
|
|
3539
|
-
const
|
|
3540
|
-
return (
|
|
3541
|
-
}
|
|
3542
|
-
function
|
|
3543
|
-
return e.value.filter((
|
|
3544
|
-
if (
|
|
3545
|
-
const v =
|
|
3546
|
-
return v === d || a(v) !== d ? !1 : r.value.has(gt(v, g)) ? !0 : Object.keys(nt(Be(
|
|
3540
|
+
const I = m(g);
|
|
3541
|
+
return (I == null ? void 0 : I.actions) ?? [];
|
|
3542
|
+
}
|
|
3543
|
+
function R(d, g) {
|
|
3544
|
+
return e.value.filter((I) => {
|
|
3545
|
+
if (I.inverted) return !1;
|
|
3546
|
+
const v = I.subject;
|
|
3547
|
+
return v === d || a(v) !== d ? !1 : r.value.has(gt(v, g)) ? !0 : Object.keys(nt(Be(I), g)).length > 0;
|
|
3547
3548
|
});
|
|
3548
3549
|
}
|
|
3549
3550
|
function M(d, g) {
|
|
3550
|
-
const
|
|
3551
|
-
for (const
|
|
3552
|
-
if (!
|
|
3553
|
-
const L =
|
|
3554
|
-
a(L) === d && v.delete(
|
|
3551
|
+
const I = `::${g.builderKey}`, v = new Set(r.value);
|
|
3552
|
+
for (const k of v) {
|
|
3553
|
+
if (!k.endsWith(I)) continue;
|
|
3554
|
+
const L = k.slice(0, -I.length);
|
|
3555
|
+
a(L) === d && v.delete(k);
|
|
3555
3556
|
}
|
|
3556
3557
|
r.value = v;
|
|
3557
3558
|
}
|
|
3558
|
-
function p(d, g,
|
|
3559
|
+
function p(d, g, I) {
|
|
3559
3560
|
const v = g.subject;
|
|
3560
|
-
return d.reduce((
|
|
3561
|
+
return d.reduce((k, L) => {
|
|
3561
3562
|
if (L.inverted)
|
|
3562
|
-
return
|
|
3563
|
+
return k.push(L), k;
|
|
3563
3564
|
const H = L.subject;
|
|
3564
3565
|
if (H === v || a(H) !== v)
|
|
3565
|
-
return
|
|
3566
|
-
if (
|
|
3567
|
-
return
|
|
3568
|
-
const _ =
|
|
3566
|
+
return k.push(L), k;
|
|
3567
|
+
if (At(g, L) && Object.keys(Zt(L, I)).length === 0)
|
|
3568
|
+
return k;
|
|
3569
|
+
const _ = Un(L, g, I);
|
|
3569
3570
|
if (Object.keys(_).length === 0) {
|
|
3570
3571
|
const { conditions: O, ...P } = L;
|
|
3571
|
-
|
|
3572
|
+
k.push(P);
|
|
3572
3573
|
} else
|
|
3573
|
-
|
|
3574
|
-
return
|
|
3574
|
+
k.push({ ...L, conditions: JSON.stringify(_) });
|
|
3575
|
+
return k;
|
|
3575
3576
|
}, []);
|
|
3576
3577
|
}
|
|
3577
|
-
function h(d, g,
|
|
3578
|
+
function h(d, g, I, v = {}) {
|
|
3578
3579
|
var F;
|
|
3579
|
-
const
|
|
3580
|
+
const k = [...e.value];
|
|
3580
3581
|
let L = d.index;
|
|
3581
|
-
const H = g.toCondition(
|
|
3582
|
-
if (L === null && !
|
|
3582
|
+
const H = g.toCondition(I), x = Object.keys(H).length > 0;
|
|
3583
|
+
if (L === null && !x && !v.forceCreateRule) return;
|
|
3583
3584
|
if (L === null) {
|
|
3584
|
-
const
|
|
3585
|
-
if (
|
|
3586
|
-
L =
|
|
3585
|
+
const D = k.findIndex((V) => !V.inverted && V.subject === d.subject);
|
|
3586
|
+
if (D !== -1)
|
|
3587
|
+
L = D;
|
|
3587
3588
|
else {
|
|
3588
3589
|
const V = t.value.find((z) => z.subject === d.subject);
|
|
3589
3590
|
if (!V) return;
|
|
@@ -3593,61 +3594,61 @@ function uo(e, t, n) {
|
|
|
3593
3594
|
isCategoryCover: B,
|
|
3594
3595
|
...te
|
|
3595
3596
|
} = V;
|
|
3596
|
-
|
|
3597
|
+
k.push({
|
|
3597
3598
|
...te,
|
|
3598
3599
|
actions: d.actions.length > 0 ? d.actions : te.actions
|
|
3599
|
-
}), L =
|
|
3600
|
+
}), L = k.length - 1;
|
|
3600
3601
|
}
|
|
3601
3602
|
}
|
|
3602
|
-
const _ = { ...
|
|
3603
|
+
const _ = { ...k[L] };
|
|
3603
3604
|
_.actions = [
|
|
3604
3605
|
.../* @__PURE__ */ new Set([..._.actions, ...d.actions])
|
|
3605
3606
|
];
|
|
3606
|
-
const O = Be(_), P =
|
|
3607
|
-
if (Object.keys(P).length === 0 ? delete _.conditions : _.conditions = JSON.stringify(P),
|
|
3608
|
-
const
|
|
3607
|
+
const O = Be(_), P = wt(O, [{ builder: g, formValue: I }]);
|
|
3608
|
+
if (Object.keys(P).length === 0 ? delete _.conditions : _.conditions = JSON.stringify(P), k[L] = _, tn(d.subject, t.value)) {
|
|
3609
|
+
const D = R(d.subject, g), V = () => {
|
|
3609
3610
|
var Z;
|
|
3610
|
-
M(d.subject, g), n(p(
|
|
3611
|
+
M(d.subject, g), n(p(k, _, g)), (Z = v.afterCommit) == null || Z.call(v);
|
|
3611
3612
|
}, j = () => {
|
|
3612
3613
|
var Z;
|
|
3613
|
-
n(
|
|
3614
|
+
n(k), (Z = v.afterCommit) == null || Z.call(v);
|
|
3614
3615
|
};
|
|
3615
|
-
if (
|
|
3616
|
+
if (D.length === 0) {
|
|
3616
3617
|
V();
|
|
3617
3618
|
return;
|
|
3618
3619
|
}
|
|
3619
3620
|
v.onOverridesConflict ? v.onOverridesConflict({ override: V, keep: j }) : j();
|
|
3620
3621
|
return;
|
|
3621
3622
|
}
|
|
3622
|
-
n(
|
|
3623
|
+
n(k), (F = v.afterCommit) == null || F.call(v);
|
|
3623
3624
|
}
|
|
3624
|
-
function S(d, g,
|
|
3625
|
+
function S(d, g, I = {}) {
|
|
3625
3626
|
if (g.length === 0) return;
|
|
3626
3627
|
const v = [...e.value];
|
|
3627
|
-
let
|
|
3628
|
-
for (const
|
|
3629
|
-
const V =
|
|
3630
|
-
H =
|
|
3628
|
+
let k = v.findIndex((D) => !D.inverted && D.subject === d.subject), L = k === -1 ? void 0 : { ...v[k] }, H = Be(L ?? {}) ?? {};
|
|
3629
|
+
for (const D of g) {
|
|
3630
|
+
const V = D.mode === "inherit" ? D.builder.fromCondition(void 0) : D.form;
|
|
3631
|
+
H = wt(H, [{ builder: D.builder, formValue: V }]);
|
|
3631
3632
|
}
|
|
3632
|
-
const
|
|
3633
|
-
if (!L && (Object.keys(H).length > 0 ||
|
|
3634
|
-
const
|
|
3635
|
-
if (!
|
|
3633
|
+
const x = g.some((D) => D.mode === "custom");
|
|
3634
|
+
if (!L && (Object.keys(H).length > 0 || x)) {
|
|
3635
|
+
const D = t.value.find((te) => te.subject === d.subject);
|
|
3636
|
+
if (!D) return;
|
|
3636
3637
|
const {
|
|
3637
3638
|
category: V,
|
|
3638
3639
|
showByFeatureFlag: j,
|
|
3639
3640
|
isCategoryCover: Z,
|
|
3640
3641
|
...B
|
|
3641
|
-
} =
|
|
3642
|
+
} = D;
|
|
3642
3643
|
L = {
|
|
3643
3644
|
...B,
|
|
3644
3645
|
actions: d.actions.length > 0 ? d.actions : B.actions
|
|
3645
|
-
}, v.push(L),
|
|
3646
|
+
}, v.push(L), k = v.length - 1;
|
|
3646
3647
|
}
|
|
3647
3648
|
if (L) {
|
|
3648
|
-
const
|
|
3649
|
-
if (!
|
|
3650
|
-
v.splice(
|
|
3649
|
+
const D = a(d.subject), V = D ? m(D) : void 0;
|
|
3650
|
+
if (!x && Object.keys(H).length === 0 && !!V && At(V, L))
|
|
3651
|
+
v.splice(k, 1), L = void 0;
|
|
3651
3652
|
else {
|
|
3652
3653
|
if (L.actions = [
|
|
3653
3654
|
.../* @__PURE__ */ new Set([...L.actions, ...d.actions])
|
|
@@ -3657,32 +3658,32 @@ function uo(e, t, n) {
|
|
|
3657
3658
|
...H,
|
|
3658
3659
|
...nt(Be(V), Z.builder)
|
|
3659
3660
|
});
|
|
3660
|
-
Object.keys(H).length === 0 ? delete L.conditions : L.conditions = JSON.stringify(H), v[
|
|
3661
|
+
Object.keys(H).length === 0 ? delete L.conditions : L.conditions = JSON.stringify(H), v[k] = L;
|
|
3661
3662
|
}
|
|
3662
3663
|
}
|
|
3663
3664
|
const _ = () => {
|
|
3664
|
-
const
|
|
3665
|
+
const D = new Set(r.value);
|
|
3665
3666
|
for (const V of g) {
|
|
3666
3667
|
const j = gt(d.subject, V.builder);
|
|
3667
|
-
V.mode === "custom" ?
|
|
3668
|
+
V.mode === "custom" ? D.add(j) : D.delete(j);
|
|
3668
3669
|
}
|
|
3669
|
-
r.value =
|
|
3670
|
-
}, O = (
|
|
3670
|
+
r.value = D;
|
|
3671
|
+
}, O = (D) => {
|
|
3671
3672
|
var V;
|
|
3672
|
-
_(), n(
|
|
3673
|
+
_(), n(D), (V = I.afterCommit) == null || V.call(I);
|
|
3673
3674
|
};
|
|
3674
3675
|
if (!tn(d.subject, t.value) || !L) {
|
|
3675
3676
|
O(v);
|
|
3676
3677
|
return;
|
|
3677
3678
|
}
|
|
3678
|
-
const P = g.map((
|
|
3679
|
-
let
|
|
3679
|
+
const P = g.map((D) => D.builder).filter((D) => R(d.subject, D).length > 0), F = () => {
|
|
3680
|
+
let D = v;
|
|
3680
3681
|
for (const V of g.map((j) => j.builder))
|
|
3681
|
-
M(d.subject, V),
|
|
3682
|
-
O(
|
|
3682
|
+
M(d.subject, V), D = p(D, L, V);
|
|
3683
|
+
O(D);
|
|
3683
3684
|
};
|
|
3684
|
-
if (P.length > 0 &&
|
|
3685
|
-
|
|
3685
|
+
if (P.length > 0 && I.onOverridesConflict) {
|
|
3686
|
+
I.onOverridesConflict({ override: F, keep: () => O(v) });
|
|
3686
3687
|
return;
|
|
3687
3688
|
}
|
|
3688
3689
|
P.length > 0 ? O(v) : F();
|
|
@@ -3692,14 +3693,14 @@ function uo(e, t, n) {
|
|
|
3692
3693
|
coverLabel: f,
|
|
3693
3694
|
shouldShowInheritToggle: b,
|
|
3694
3695
|
inheritMode: E,
|
|
3695
|
-
setInheritMode:
|
|
3696
|
-
inheritedSummary:
|
|
3697
|
-
getEffectiveActions:
|
|
3696
|
+
setInheritMode: w,
|
|
3697
|
+
inheritedSummary: C,
|
|
3698
|
+
getEffectiveActions: A,
|
|
3698
3699
|
updateBuilderCondition: h,
|
|
3699
3700
|
applyConditionDrafts: S
|
|
3700
3701
|
};
|
|
3701
3702
|
}
|
|
3702
|
-
const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, _o = "condition-form-select-menu",
|
|
3703
|
+
const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, _o = "condition-form-select-menu", Lo = /* @__PURE__ */ Re({
|
|
3703
3704
|
__name: "PortalPermissionEditor",
|
|
3704
3705
|
props: /* @__PURE__ */ en({
|
|
3705
3706
|
disable: {
|
|
@@ -3728,55 +3729,55 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3728
3729
|
setup(e, { emit: t }) {
|
|
3729
3730
|
const n = vr(e, "modelValue"), r = e, a = K(() => r.part === "all" ? "trailing" : "leading"), o = K(
|
|
3730
3731
|
() => r.part === "all" ? "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" : ""
|
|
3731
|
-
), f = t, { t: m } = Ke(), i = hr(), b = br(), { breakpoints: E } = gr(),
|
|
3732
|
-
fetchCustomReportPermissions:
|
|
3733
|
-
customReportPermissions:
|
|
3734
|
-
} =
|
|
3732
|
+
), f = t, { t: m } = Ke(), i = hr(), b = br(), { breakpoints: E } = gr(), C = K(() => E.value.xs || E.value.sm), {
|
|
3733
|
+
fetchCustomReportPermissions: T,
|
|
3734
|
+
customReportPermissions: w
|
|
3735
|
+
} = Ir(), A = K(() => [
|
|
3735
3736
|
...Wn,
|
|
3736
|
-
...
|
|
3737
|
-
]),
|
|
3738
|
-
const s = i.currentBusiness.value, c = i.currentCountry.value,
|
|
3739
|
-
return io(s,
|
|
3737
|
+
...w.value
|
|
3738
|
+
]), R = K(() => {
|
|
3739
|
+
const s = i.currentBusiness.value, c = i.currentCountry.value, y = c instanceof Object ? c.code : c;
|
|
3740
|
+
return io(s, y);
|
|
3740
3741
|
});
|
|
3741
3742
|
function M(s) {
|
|
3742
|
-
return
|
|
3743
|
+
return A.value.find((c) => c.subject === s);
|
|
3743
3744
|
}
|
|
3744
3745
|
function p(s, c) {
|
|
3745
3746
|
return rn(s).filter(
|
|
3746
|
-
(
|
|
3747
|
-
var
|
|
3748
|
-
return ((
|
|
3747
|
+
(y) => {
|
|
3748
|
+
var U;
|
|
3749
|
+
return ((U = y.appliesToActions) == null ? void 0 : U.call(y, c)) ?? !0;
|
|
3749
3750
|
}
|
|
3750
3751
|
);
|
|
3751
3752
|
}
|
|
3752
3753
|
const h = K(() => {
|
|
3753
|
-
const s =
|
|
3754
|
+
const s = A.value.filter((y) => !I.includes(y.subject)).map((y) => y.subject);
|
|
3754
3755
|
return Er(
|
|
3755
|
-
r.inheritPermissions.map((
|
|
3756
|
-
...
|
|
3757
|
-
permissions:
|
|
3756
|
+
r.inheritPermissions.map((y) => ({
|
|
3757
|
+
...y,
|
|
3758
|
+
permissions: y.permissions.filter((U) => s.includes(U.subject))
|
|
3758
3759
|
}))
|
|
3759
|
-
).map((
|
|
3760
|
-
id:
|
|
3761
|
-
setNames:
|
|
3760
|
+
).map((y) => ({
|
|
3761
|
+
id: y.subject,
|
|
3762
|
+
setNames: y.setNames
|
|
3762
3763
|
}));
|
|
3763
3764
|
}), S = K(() => {
|
|
3764
3765
|
const s = r.inheritPermissions.map((c) => ({
|
|
3765
3766
|
...c,
|
|
3766
3767
|
permissions: c.permissions.filter(
|
|
3767
|
-
(
|
|
3768
|
+
(y) => y.subject === Ye.Subject.Business.inventory_stock
|
|
3768
3769
|
)
|
|
3769
3770
|
}));
|
|
3770
3771
|
return St(
|
|
3771
3772
|
s,
|
|
3772
3773
|
"warehouseId",
|
|
3773
|
-
|
|
3774
|
+
k.value.map((c) => c._id)
|
|
3774
3775
|
);
|
|
3775
3776
|
}), d = K(() => {
|
|
3776
3777
|
const s = r.inheritPermissions.map((c) => ({
|
|
3777
3778
|
...c,
|
|
3778
3779
|
permissions: c.permissions.filter(
|
|
3779
|
-
(
|
|
3780
|
+
(y) => y.subject === Ye.Subject.Restaurant.restaurant
|
|
3780
3781
|
)
|
|
3781
3782
|
}));
|
|
3782
3783
|
return St(
|
|
@@ -3787,53 +3788,53 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3787
3788
|
}), g = K(() => {
|
|
3788
3789
|
const s = r.inheritPermissions.map((c) => ({
|
|
3789
3790
|
...c,
|
|
3790
|
-
permissions: c.permissions.filter((
|
|
3791
|
+
permissions: c.permissions.filter((y) => y.subject === Ye.Subject.Business.role)
|
|
3791
3792
|
}));
|
|
3792
3793
|
return St(
|
|
3793
3794
|
s,
|
|
3794
3795
|
"roleId",
|
|
3795
3796
|
O.value.map((c) => c._id)
|
|
3796
3797
|
);
|
|
3797
|
-
}),
|
|
3798
|
+
}), I = [...Dr], v = K(() => {
|
|
3798
3799
|
var c;
|
|
3799
3800
|
const s = (c = n.value) == null ? void 0 : c.find(
|
|
3800
|
-
(
|
|
3801
|
+
(y) => y.subject === Ye.Subject.Business.inventory_stock
|
|
3801
3802
|
);
|
|
3802
3803
|
return s ? s.conditions ? JSON.parse(s.conditions).warehouseId.$in : null : [];
|
|
3803
|
-
}),
|
|
3804
|
+
}), k = st([]), L = K(() => k.value.map((s) => ({
|
|
3804
3805
|
label: s.profile.name,
|
|
3805
3806
|
value: s._id
|
|
3806
3807
|
})));
|
|
3807
3808
|
function H(s) {
|
|
3808
|
-
const c =
|
|
3809
|
+
const c = x(n.value, s);
|
|
3809
3810
|
n.value = c;
|
|
3810
3811
|
}
|
|
3811
|
-
function
|
|
3812
|
-
let
|
|
3813
|
-
s.filter((
|
|
3812
|
+
function x(s, c) {
|
|
3813
|
+
let y = Yn(
|
|
3814
|
+
s.filter((U) => U.subject !== Ye.Subject.Business.inventory_stock)
|
|
3814
3815
|
);
|
|
3815
3816
|
if (!c || c.length > 0) {
|
|
3816
|
-
const
|
|
3817
|
+
const U = {
|
|
3817
3818
|
actions: [Ye.Action.manage],
|
|
3818
3819
|
subject: Ye.Subject.Business.inventory_stock
|
|
3819
3820
|
};
|
|
3820
|
-
c && (
|
|
3821
|
+
c && (U.conditions = JSON.stringify({ warehouseId: { $in: c } })), y.push(U);
|
|
3821
3822
|
}
|
|
3822
|
-
return
|
|
3823
|
+
return y;
|
|
3823
3824
|
}
|
|
3824
3825
|
const { restaurants: _ } = i, O = Fr().roles, P = K(() => _.value.map((s) => ({
|
|
3825
3826
|
label: `${s.profile.code ? s.profile.code + "-" : ""}${s.profile.name}`,
|
|
3826
3827
|
value: s._id
|
|
3827
|
-
}))), F = K(() => _.value.reduce((s, c) => (s[c._id] = O.value.filter((
|
|
3828
|
+
}))), F = K(() => _.value.reduce((s, c) => (s[c._id] = O.value.filter((y) => y.restaurants.some((U) => U.id === c._id)).map((y) => y._id), s), {})), D = K(() => Nr(n.value));
|
|
3828
3829
|
function V(s) {
|
|
3829
3830
|
const c = Z(n.value, s);
|
|
3830
3831
|
n.value = c;
|
|
3831
3832
|
}
|
|
3832
|
-
const j = K(() =>
|
|
3833
|
+
const j = K(() => Cr(n.value));
|
|
3833
3834
|
function Z(s, c) {
|
|
3834
|
-
return
|
|
3835
|
+
return Tr(s, c, {
|
|
3835
3836
|
restaurantRoles: F.value,
|
|
3836
|
-
allRoleIds: O.value.map((
|
|
3837
|
+
allRoleIds: O.value.map((y) => y._id)
|
|
3837
3838
|
});
|
|
3838
3839
|
}
|
|
3839
3840
|
function B(s) {
|
|
@@ -3843,26 +3844,26 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3843
3844
|
function te(s, c) {
|
|
3844
3845
|
return Or(s, c);
|
|
3845
3846
|
}
|
|
3846
|
-
|
|
3847
|
+
xn(async () => {
|
|
3847
3848
|
await Promise.all([
|
|
3848
|
-
r.part !== "portal" && so.readWarehouses().then((s) =>
|
|
3849
|
-
|
|
3849
|
+
r.part !== "portal" && so.readWarehouses().then((s) => k.value = s),
|
|
3850
|
+
T()
|
|
3850
3851
|
]);
|
|
3851
3852
|
});
|
|
3852
3853
|
const z = K(() => Gn(
|
|
3853
3854
|
n.value,
|
|
3854
3855
|
Zn
|
|
3855
|
-
).filter((
|
|
3856
|
-
const
|
|
3857
|
-
return (
|
|
3858
|
-
}).map((
|
|
3859
|
-
if (
|
|
3860
|
-
const
|
|
3861
|
-
if (!
|
|
3862
|
-
const G = M(
|
|
3863
|
-
if (!G) return
|
|
3856
|
+
).filter((y) => {
|
|
3857
|
+
const U = y.source;
|
|
3858
|
+
return (U == null ? void 0 : U.type) !== "systemPermissionSet" ? !0 : y.actions.includes("manage");
|
|
3859
|
+
}).map((y) => {
|
|
3860
|
+
if (y.inverted) return y;
|
|
3861
|
+
const U = y.actions;
|
|
3862
|
+
if (!U.includes("manage")) return y;
|
|
3863
|
+
const G = M(y.subject);
|
|
3864
|
+
if (!G) return y;
|
|
3864
3865
|
const u = G.actions;
|
|
3865
|
-
return u.length <= 1 || u.filter((Q) => !
|
|
3866
|
+
return u.length <= 1 || u.filter((Q) => !U.includes(Q)).length === 0 ? y : { ...y, actions: [...u] };
|
|
3866
3867
|
}));
|
|
3867
3868
|
function me(s) {
|
|
3868
3869
|
n.value = ao(
|
|
@@ -3873,17 +3874,17 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3873
3874
|
);
|
|
3874
3875
|
}
|
|
3875
3876
|
const ve = K(() => new Set(
|
|
3876
|
-
|
|
3877
|
+
A.value.filter((s) => rn(s.subject).length > 0).map((s) => s.subject)
|
|
3877
3878
|
)), he = K(() => {
|
|
3878
3879
|
const s = /* @__PURE__ */ new Map();
|
|
3879
3880
|
return z.value.map((c) => ({
|
|
3880
3881
|
rule: c,
|
|
3881
3882
|
index: n.value.findIndex(
|
|
3882
|
-
(
|
|
3883
|
+
(y) => !y.inverted && y.subject === c.subject
|
|
3883
3884
|
)
|
|
3884
|
-
})).filter(({ rule: c }) => !c.inverted).forEach(({ rule: c, index:
|
|
3885
|
-
var
|
|
3886
|
-
const
|
|
3885
|
+
})).filter(({ rule: c }) => !c.inverted).forEach(({ rule: c, index: y }) => {
|
|
3886
|
+
var N;
|
|
3887
|
+
const U = c.actions, G = p(c.subject, U);
|
|
3887
3888
|
if (G.length === 0) return;
|
|
3888
3889
|
let u;
|
|
3889
3890
|
try {
|
|
@@ -3892,10 +3893,10 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3892
3893
|
u = void 0;
|
|
3893
3894
|
}
|
|
3894
3895
|
s.set(c.subject, {
|
|
3895
|
-
index:
|
|
3896
|
+
index: y >= 0 ? y : null,
|
|
3896
3897
|
subject: c.subject,
|
|
3897
|
-
label: ((
|
|
3898
|
-
actions:
|
|
3898
|
+
label: ((N = M(c.subject)) == null ? void 0 : N.label) ?? c.subject,
|
|
3899
|
+
actions: U,
|
|
3899
3900
|
// Each builder only ever sees its own slice of the stored condition.
|
|
3900
3901
|
sections: G.map((Q) => ({
|
|
3901
3902
|
builder: Q,
|
|
@@ -3903,19 +3904,19 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3903
3904
|
}))
|
|
3904
3905
|
});
|
|
3905
3906
|
}), s;
|
|
3906
|
-
}), ae = uo(n,
|
|
3907
|
+
}), ae = uo(n, A, (s) => {
|
|
3907
3908
|
n.value = s;
|
|
3908
|
-
}), le = Lr(n),
|
|
3909
|
+
}), le = Lr(n), ke = st(null);
|
|
3909
3910
|
function Y(s, c) {
|
|
3910
|
-
const
|
|
3911
|
-
if (
|
|
3912
|
-
const
|
|
3911
|
+
const y = he.value.get(s);
|
|
3912
|
+
if (y) return y;
|
|
3913
|
+
const U = ae.getEffectiveActions(s), G = p(s, U);
|
|
3913
3914
|
if (G.length !== 0)
|
|
3914
3915
|
return {
|
|
3915
3916
|
index: null,
|
|
3916
3917
|
subject: s,
|
|
3917
3918
|
label: c,
|
|
3918
|
-
actions:
|
|
3919
|
+
actions: U,
|
|
3919
3920
|
sections: G.map((u) => ({
|
|
3920
3921
|
builder: u,
|
|
3921
3922
|
formValue: u.fromCondition(void 0)
|
|
@@ -3923,53 +3924,53 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3923
3924
|
};
|
|
3924
3925
|
}
|
|
3925
3926
|
function fe(s, c) {
|
|
3926
|
-
const
|
|
3927
|
-
if (
|
|
3928
|
-
const
|
|
3929
|
-
return
|
|
3927
|
+
const y = le.getDraft({ subject: s.subject, builderKey: c.builderKey });
|
|
3928
|
+
if (y) return y.formValue;
|
|
3929
|
+
const U = s.sections.find((G) => G.builder.builderKey === c.builderKey);
|
|
3930
|
+
return U == null ? void 0 : U.formValue;
|
|
3930
3931
|
}
|
|
3931
|
-
function
|
|
3932
|
-
const
|
|
3933
|
-
return
|
|
3932
|
+
function $e(s, c) {
|
|
3933
|
+
const y = le.getDraft({ subject: s.subject, builderKey: c.builderKey });
|
|
3934
|
+
return y != null && y.inheritMode ? y.inheritMode : ae.inheritMode(s, c);
|
|
3934
3935
|
}
|
|
3935
|
-
function Qe(s, c,
|
|
3936
|
-
const
|
|
3936
|
+
function Qe(s, c, y) {
|
|
3937
|
+
const U = le.getDraft({
|
|
3937
3938
|
subject: s.subject,
|
|
3938
3939
|
builderKey: c.builderKey
|
|
3939
3940
|
});
|
|
3940
3941
|
le.setDraft(
|
|
3941
3942
|
{ subject: s.subject, builderKey: c.builderKey },
|
|
3942
3943
|
{
|
|
3943
|
-
formValue:
|
|
3944
|
-
inheritMode: (
|
|
3944
|
+
formValue: y,
|
|
3945
|
+
inheritMode: (U == null ? void 0 : U.inheritMode) ?? $e(s, c)
|
|
3945
3946
|
}
|
|
3946
3947
|
);
|
|
3947
3948
|
}
|
|
3948
|
-
function Ve(s, c,
|
|
3949
|
-
const
|
|
3949
|
+
function Ve(s, c, y) {
|
|
3950
|
+
const U = le.getDraft({
|
|
3950
3951
|
subject: s.subject,
|
|
3951
3952
|
builderKey: c.builderKey
|
|
3952
3953
|
}), G = s.sections.find((u) => u.builder.builderKey === c.builderKey);
|
|
3953
3954
|
le.setDraft(
|
|
3954
3955
|
{ subject: s.subject, builderKey: c.builderKey },
|
|
3955
3956
|
{
|
|
3956
|
-
formValue: (
|
|
3957
|
-
inheritMode:
|
|
3957
|
+
formValue: (U == null ? void 0 : U.formValue) ?? (G == null ? void 0 : G.formValue),
|
|
3958
|
+
inheritMode: y
|
|
3958
3959
|
}
|
|
3959
3960
|
);
|
|
3960
3961
|
}
|
|
3961
|
-
function
|
|
3962
|
+
function De(s) {
|
|
3962
3963
|
return le.hasDraftsForSubject(s);
|
|
3963
3964
|
}
|
|
3964
3965
|
function Fe(s, c) {
|
|
3965
|
-
const
|
|
3966
|
+
const y = s.sections.flatMap((U) => {
|
|
3966
3967
|
const G = le.getDraft({
|
|
3967
3968
|
subject: s.subject,
|
|
3968
|
-
builderKey:
|
|
3969
|
+
builderKey: U.builder.builderKey
|
|
3969
3970
|
});
|
|
3970
|
-
return G ? [{ builder:
|
|
3971
|
+
return G ? [{ builder: U.builder, form: G.formValue, mode: G.inheritMode ?? "custom" }] : [];
|
|
3971
3972
|
});
|
|
3972
|
-
ae.applyConditionDrafts(s,
|
|
3973
|
+
ae.applyConditionDrafts(s, y, {
|
|
3973
3974
|
afterCommit: () => {
|
|
3974
3975
|
le.clearDraftsForSubject(s.subject), c();
|
|
3975
3976
|
},
|
|
@@ -3983,7 +3984,7 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
3983
3984
|
function l(s, c = {}) {
|
|
3984
3985
|
return {
|
|
3985
3986
|
...c,
|
|
3986
|
-
onOverridesConflict: ({ override:
|
|
3987
|
+
onOverridesConflict: ({ override: y, keep: U }) => {
|
|
3987
3988
|
Pe || (Pe = !0, b.open({
|
|
3988
3989
|
title: m("team.memberForm.permissions.conditionCover.confirmTitle"),
|
|
3989
3990
|
message: m("team.memberForm.permissions.conditionCover.confirmMessage", {
|
|
@@ -4000,9 +4001,9 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
4000
4001
|
close: !1
|
|
4001
4002
|
}
|
|
4002
4003
|
}).onPrimary(() => {
|
|
4003
|
-
|
|
4004
|
+
y(), Pe = !1, b.close();
|
|
4004
4005
|
}).onSecondary(() => {
|
|
4005
|
-
|
|
4006
|
+
U(), Pe = !1, b.close();
|
|
4006
4007
|
}).onClose(() => {
|
|
4007
4008
|
Pe = !1;
|
|
4008
4009
|
}));
|
|
@@ -4016,18 +4017,18 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
4016
4017
|
},
|
|
4017
4018
|
{ deep: !0 }
|
|
4018
4019
|
), (s, c) => {
|
|
4019
|
-
const
|
|
4020
|
-
return
|
|
4021
|
-
class:
|
|
4020
|
+
const y = we("FmIcon"), U = we("FmBottomSheet"), G = we("FmPopover");
|
|
4021
|
+
return $(), re("div", {
|
|
4022
|
+
class: Ie(["flex flex-col", e.part === "all" ? "gap-32" : "gap-16"])
|
|
4022
4023
|
}, [
|
|
4023
|
-
e.part !== "workplace" ? (
|
|
4024
|
+
e.part !== "workplace" ? ($(), re("div", {
|
|
4024
4025
|
key: 0,
|
|
4025
|
-
class:
|
|
4026
|
+
class: Ie(o.value)
|
|
4026
4027
|
}, [
|
|
4027
4028
|
oe(Xa, {
|
|
4028
4029
|
"model-value": z.value,
|
|
4029
|
-
"excluded-subjects":
|
|
4030
|
-
"additional-permissions": X(
|
|
4030
|
+
"excluded-subjects": I,
|
|
4031
|
+
"additional-permissions": X(w),
|
|
4031
4032
|
layout: a.value,
|
|
4032
4033
|
"onUpdate:modelValue": me
|
|
4033
4034
|
}, tt({ _: 2 }, [
|
|
@@ -4039,99 +4040,99 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
4039
4040
|
})),
|
|
4040
4041
|
Ee(ve.value, (u) => ({
|
|
4041
4042
|
name: `checkbox-${u}-icon`,
|
|
4042
|
-
fn: ce(({ option:
|
|
4043
|
-
Q && Y(u,
|
|
4044
|
-
|
|
4043
|
+
fn: ce(({ option: N, isEffectiveSelected: Q }) => [
|
|
4044
|
+
Q && Y(u, N.label) ? ($(), re(Me, { key: 0 }, [
|
|
4045
|
+
C.value ? ($(), Ce(U, {
|
|
4045
4046
|
key: 0,
|
|
4046
|
-
"model-value":
|
|
4047
|
+
"model-value": ke.value === u,
|
|
4047
4048
|
header: X(m)("team.memberForm.permissions.conditionTitle", {
|
|
4048
|
-
context: Y(u,
|
|
4049
|
+
context: Y(u, N.label).label
|
|
4049
4050
|
}),
|
|
4050
4051
|
"dismiss-away": "",
|
|
4051
4052
|
"z-index": 100,
|
|
4052
4053
|
class: "h-5 flex items-center",
|
|
4053
|
-
"onUpdate:modelValue": (
|
|
4054
|
-
|
|
4054
|
+
"onUpdate:modelValue": (J) => {
|
|
4055
|
+
ke.value = J ? u : null, J || X(le).clearDraftsForSubject(u);
|
|
4055
4056
|
}
|
|
4056
4057
|
}, {
|
|
4057
4058
|
"bottom-sheet-button": ce(() => [
|
|
4058
4059
|
ie("div", mo, [
|
|
4059
|
-
oe(
|
|
4060
|
+
oe(y, {
|
|
4060
4061
|
name: "settings",
|
|
4061
4062
|
size: "sm",
|
|
4062
|
-
class:
|
|
4063
|
+
class: Ie([
|
|
4063
4064
|
"cursor-pointer transition-colors",
|
|
4064
|
-
We(Y(u,
|
|
4065
|
+
We(Y(u, N.label)) ? "text-fm-color-primary-main" : "text-fm-color-neutral-gray-400 hover:text-fm-color-neutral-gray-600"
|
|
4065
4066
|
])
|
|
4066
4067
|
}, null, 8, ["class"])
|
|
4067
4068
|
])
|
|
4068
4069
|
]),
|
|
4069
4070
|
default: ce(() => [
|
|
4070
|
-
oe(
|
|
4071
|
-
entry: Y(u,
|
|
4072
|
-
builders: Y(u,
|
|
4071
|
+
oe(Dn, {
|
|
4072
|
+
entry: Y(u, N.label),
|
|
4073
|
+
builders: Y(u, N.label).sections.map((J) => J.builder),
|
|
4073
4074
|
subject: u,
|
|
4074
|
-
"time-zone":
|
|
4075
|
+
"time-zone": R.value,
|
|
4075
4076
|
"cover-override": X(ae),
|
|
4076
|
-
"inherit-mode-for": (
|
|
4077
|
-
"form-value-for": (
|
|
4078
|
-
"has-changes":
|
|
4077
|
+
"inherit-mode-for": (J) => $e(Y(u, N.label), J),
|
|
4078
|
+
"form-value-for": (J) => fe(Y(u, N.label), J),
|
|
4079
|
+
"has-changes": De(u),
|
|
4079
4080
|
disable: e.disable,
|
|
4080
4081
|
"full-width": !0,
|
|
4081
|
-
onUpdateInheritMode: ({ builder:
|
|
4082
|
-
onUpdateForm: ({ builder:
|
|
4083
|
-
onApply: (
|
|
4082
|
+
onUpdateInheritMode: ({ builder: J, mode: de }) => Ve(Y(u, N.label), J, de),
|
|
4083
|
+
onUpdateForm: ({ builder: J, form: de }) => Qe(Y(u, N.label), J, de),
|
|
4084
|
+
onApply: (J) => Fe(Y(u, N.label), () => ke.value = null)
|
|
4084
4085
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4085
4086
|
]),
|
|
4086
4087
|
_: 2
|
|
4087
|
-
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (
|
|
4088
|
+
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : ($(), Ce(G, {
|
|
4088
4089
|
key: 1,
|
|
4089
4090
|
disabled: e.disable,
|
|
4090
4091
|
"z-index": 100,
|
|
4091
4092
|
"exclude-el-from-click-outside": [_o],
|
|
4092
4093
|
class: "h-5 flex items-center",
|
|
4093
|
-
onPopoverChanged: (
|
|
4094
|
-
|
|
4094
|
+
onPopoverChanged: (J) => {
|
|
4095
|
+
J || X(le).clearDraftsForSubject(u);
|
|
4095
4096
|
}
|
|
4096
4097
|
}, {
|
|
4097
4098
|
"popover-button": ce(() => [
|
|
4098
4099
|
ie("div", fo, [
|
|
4099
|
-
oe(
|
|
4100
|
+
oe(y, {
|
|
4100
4101
|
name: "settings",
|
|
4101
4102
|
size: "sm",
|
|
4102
|
-
class:
|
|
4103
|
+
class: Ie([
|
|
4103
4104
|
"cursor-pointer transition-colors",
|
|
4104
|
-
We(Y(u,
|
|
4105
|
+
We(Y(u, N.label)) ? "text-fm-color-primary-main" : "text-fm-color-neutral-gray-400 hover:text-fm-color-neutral-gray-600"
|
|
4105
4106
|
])
|
|
4106
4107
|
}, null, 8, ["class"])
|
|
4107
4108
|
])
|
|
4108
4109
|
]),
|
|
4109
|
-
default: ce(({ hide:
|
|
4110
|
-
oe(
|
|
4111
|
-
entry: Y(u,
|
|
4112
|
-
builders: Y(u,
|
|
4110
|
+
default: ce(({ hide: J }) => [
|
|
4111
|
+
oe(Dn, {
|
|
4112
|
+
entry: Y(u, N.label),
|
|
4113
|
+
builders: Y(u, N.label).sections.map((de) => de.builder),
|
|
4113
4114
|
subject: u,
|
|
4114
|
-
"time-zone":
|
|
4115
|
+
"time-zone": R.value,
|
|
4115
4116
|
"cover-override": X(ae),
|
|
4116
4117
|
title: X(m)("team.memberForm.permissions.conditionTitle", {
|
|
4117
|
-
context: Y(u,
|
|
4118
|
+
context: Y(u, N.label).label
|
|
4118
4119
|
}),
|
|
4119
|
-
"inherit-mode-for": (de) =>
|
|
4120
|
-
"form-value-for": (de) => fe(Y(u,
|
|
4121
|
-
"has-changes":
|
|
4120
|
+
"inherit-mode-for": (de) => $e(Y(u, N.label), de),
|
|
4121
|
+
"form-value-for": (de) => fe(Y(u, N.label), de),
|
|
4122
|
+
"has-changes": De(u),
|
|
4122
4123
|
disable: e.disable,
|
|
4123
4124
|
onUpdateInheritMode: ({ builder: de, mode: Ge }) => Ve(
|
|
4124
|
-
Y(u,
|
|
4125
|
+
Y(u, N.label),
|
|
4125
4126
|
de,
|
|
4126
4127
|
Ge
|
|
4127
4128
|
),
|
|
4128
|
-
onUpdateForm: ({ builder: de, form: Ge }) => Qe(Y(u,
|
|
4129
|
-
onApply: (de) => Fe(Y(u,
|
|
4129
|
+
onUpdateForm: ({ builder: de, form: Ge }) => Qe(Y(u, N.label), de, Ge),
|
|
4130
|
+
onApply: (de) => Fe(Y(u, N.label), J)
|
|
4130
4131
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "title", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4131
4132
|
]),
|
|
4132
4133
|
_: 2
|
|
4133
4134
|
}, 1032, ["disabled", "exclude-el-from-click-outside", "onPopoverChanged"]))
|
|
4134
|
-
], 64)) : (
|
|
4135
|
+
], 64)) : ($(), Ce(y, {
|
|
4135
4136
|
key: 1,
|
|
4136
4137
|
name: "settings",
|
|
4137
4138
|
size: "sm",
|
|
@@ -4140,12 +4141,12 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
4140
4141
|
])
|
|
4141
4142
|
}))
|
|
4142
4143
|
]), 1032, ["model-value", "additional-permissions", "layout"])
|
|
4143
|
-
], 2)) :
|
|
4144
|
-
e.part !== "portal" ? (
|
|
4144
|
+
], 2)) : Ne("", !0),
|
|
4145
|
+
e.part !== "portal" ? ($(), re("div", {
|
|
4145
4146
|
key: 1,
|
|
4146
|
-
class:
|
|
4147
|
+
class: Ie(o.value)
|
|
4147
4148
|
}, [
|
|
4148
|
-
oe(
|
|
4149
|
+
oe(wn, {
|
|
4149
4150
|
"model-value": v.value,
|
|
4150
4151
|
options: L.value,
|
|
4151
4152
|
context: X(m)("team.labels.warehouse"),
|
|
@@ -4159,13 +4160,13 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
4159
4160
|
])
|
|
4160
4161
|
}))
|
|
4161
4162
|
]), 1032, ["model-value", "options", "context", "layout"])
|
|
4162
|
-
], 2)) :
|
|
4163
|
-
e.part !== "portal" ? (
|
|
4163
|
+
], 2)) : Ne("", !0),
|
|
4164
|
+
e.part !== "portal" ? ($(), re("div", {
|
|
4164
4165
|
key: 2,
|
|
4165
|
-
class:
|
|
4166
|
+
class: Ie([o.value, { "order-first": e.part === "workplace" }])
|
|
4166
4167
|
}, [
|
|
4167
|
-
oe(
|
|
4168
|
-
"model-value":
|
|
4168
|
+
oe(wn, {
|
|
4169
|
+
"model-value": D.value,
|
|
4169
4170
|
options: P.value,
|
|
4170
4171
|
context: X(m)("team.labels.restaurant"),
|
|
4171
4172
|
layout: a.value,
|
|
@@ -4178,15 +4179,15 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
4178
4179
|
])
|
|
4179
4180
|
}))
|
|
4180
4181
|
]), 1032, ["model-value", "options", "context", "layout"])
|
|
4181
|
-
], 2)) :
|
|
4182
|
-
e.part !== "portal" ? (
|
|
4182
|
+
], 2)) : Ne("", !0),
|
|
4183
|
+
e.part !== "portal" ? ($(), re("div", {
|
|
4183
4184
|
key: 3,
|
|
4184
|
-
class:
|
|
4185
|
+
class: Ie(o.value)
|
|
4185
4186
|
}, [
|
|
4186
4187
|
oe(eo, {
|
|
4187
4188
|
roles: X(O),
|
|
4188
4189
|
"model-value": j.value,
|
|
4189
|
-
"restaurant-ids":
|
|
4190
|
+
"restaurant-ids": D.value,
|
|
4190
4191
|
layout: a.value,
|
|
4191
4192
|
"onUpdate:modelValue": B
|
|
4192
4193
|
}, tt({ _: 2 }, [
|
|
@@ -4197,11 +4198,11 @@ const mo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, fo =
|
|
|
4197
4198
|
])
|
|
4198
4199
|
}))
|
|
4199
4200
|
]), 1032, ["roles", "model-value", "restaurant-ids", "layout"])
|
|
4200
|
-
], 2)) :
|
|
4201
|
+
], 2)) : Ne("", !0)
|
|
4201
4202
|
], 2);
|
|
4202
4203
|
};
|
|
4203
4204
|
}
|
|
4204
4205
|
});
|
|
4205
4206
|
export {
|
|
4206
|
-
|
|
4207
|
+
Lo as _
|
|
4207
4208
|
};
|