@feedmepos/mf-hrm-portal 2.2.3 → 2.2.5-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ApprovalCodeList-BnG3T_Lk.js → ApprovalCodeList-DgcWZ3SZ.js} +5 -5
- package/dist/{AuditLogList-CpK9-YkB.js → AuditLogList-vWKMMGvd.js} +235 -233
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CzKzq19d.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DuhXogXK.js} +2 -2
- package/dist/EmployeeList-Cu4RxVQX.js +889 -0
- package/dist/{GrantUserList-BJoj3ZcO.js → GrantUserList-BAW0C1bA.js} +6 -6
- package/dist/{Main-FPpK9B70.js → Main-B7Nn8CLQ.js} +11 -11
- package/dist/{Main-5QLhf80L.js → Main-NzpdRNB3.js} +8 -8
- package/dist/{Main-BEUu3Hba.js → Main-Wr6cTqfM.js} +5 -5
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-BUI0Xsgc.js +85 -0
- package/dist/{PermissionSetList-DZGZ0Pm_.js → PermissionSetList-D6AFOleD.js} +7 -7
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BHEW1_dv.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bzq2_BMn.js} +1268 -1275
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-Z-DH7ouY.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-XHuHin8t.js} +1 -1
- package/dist/{RoleList-D5yToard.js → RoleList-BuqpmXn_.js} +9 -9
- package/dist/TeamMemberList-M6HA9BWu.js +1248 -0
- package/dist/{TimesheetList-DMo8KXoU.js → TimesheetList-B5FyVyCz.js} +92 -90
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-2KHu-f8U.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-C99Jr6Ax.js} +3 -3
- package/dist/{app-DlSD8S9A.js → app-8samJY5z.js} +214 -190
- package/dist/app.js +1 -1
- package/dist/{approval-code-BRClD2HN.js → approval-code-jIjkeVEb.js} +1 -1
- package/dist/{dayjs.min-DcI2auGP.js → dayjs.min-Ba4X_9nY.js} +1 -1
- package/dist/employee-BcFgm8Rt.js +204 -0
- package/dist/{grant-user-Dhi3ilC_.js → grant-user-SNiDV22U.js} +1 -1
- package/dist/{iteration-DSzPQ0fZ.js → iteration-Dhdew1jW.js} +1 -1
- package/dist/{lodash-Ce0IJ8Y3.js → lodash-CJ3mHku0.js} +1 -1
- package/dist/{restaurant-DiYb0pCm.js → restaurant-BTpBmfBV.js} +2 -2
- package/dist/{role-DkTkfUgR.js → role-BViYS7RK.js} +2 -2
- package/dist/{rule-B-REsmVM.js → rule-Dxt1ZSQS.js} +48 -40
- package/dist/src/api/employee/index.d.ts +5 -1
- package/dist/src/api/team/index.d.ts +3 -0
- package/dist/src/components/form/PasscodeGenerateButton.vue.d.ts +15 -0
- package/dist/src/components/form/PasscodePinField.vue.d.ts +18 -0
- package/dist/src/helpers/string.d.ts +2 -1
- package/dist/src/views/audit-log/locales/index.d.ts +4 -0
- package/dist/src/views/hr/locales/index.d.ts +8 -0
- package/dist/src/views/team/locales/index.d.ts +12 -0
- package/dist/src/views/team/member/AddMemberForm.vue.d.ts +1 -0
- package/dist/src/views/team/member/TeamMemberMasterUser.vue.d.ts +9 -0
- package/dist/string-VNuQNweN.js +15 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-BGhlB1_1.js → useAppStore-DCwd8GWN.js} +1 -1
- package/dist/{useLoading-CvgqVDbF.js → useLoading-CXzTpIVv.js} +1 -1
- package/dist/{useReportPermissions-VCzAQXKz.js → useReportPermissions-BiyAfGvZ.js} +3 -3
- package/package.json +1 -1
- package/dist/EmployeeList-CUsRanu7.js +0 -887
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +0 -16
- package/dist/TeamMemberList-C4-AHxO4.js +0 -1216
- package/dist/employee-C_cvCoHM.js +0 -201
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
1
|
+
import { getCurrentInstance as Xt, inject as ur, ref as rt, shallowRef as mr, computed as z, watch as wt, onMounted as xn, onUnmounted as dr, defineComponent as Le, h as Wn, createVNode as ue, Text as fr, Fragment as Re, resolveComponent as we, createBlock as Ne, openBlock as J, withCtx as me, createElementVNode as ae, createElementBlock as ie, toDisplayString as Oe, unref as H, renderList as Ie, toRef as en, normalizeStyle as nt, renderSlot as Se, createCommentVNode as Me, createTextVNode as _r, useSlots as vr, normalizeClass as qe, createSlots as et, mergeModels as tn, useModel as pr } from "vue";
|
|
2
2
|
import { useI18n as He, useCoreStore as hr } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialog as br, useBreakpoints as gr } from "@feedmepos/ui-library";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { p as Gn, N as Zn, d as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { u as
|
|
8
|
-
import { c as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
5
|
+
import { p as Gn, N as Zn, d as yr, P as Er, x as kt, k as Ir, j as Nr } from "./rule-Dxt1ZSQS.js";
|
|
6
|
+
import { _ as Bt, a as Cr, b as nn, u as Tr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DuhXogXK.js";
|
|
7
|
+
import { u as Or, b as Sr, d as Yn, S as Dt, A as tt, e as he, k as rn, O as kr } from "./app-8samJY5z.js";
|
|
8
|
+
import { c as yt } from "./iteration-Dhdew1jW.js";
|
|
9
|
+
import { r as Lr } from "./string-VNuQNweN.js";
|
|
10
|
+
import { g as Ar, b as Rr } from "./restaurant-BTpBmfBV.js";
|
|
11
|
+
import { u as Mr } from "./role-BViYS7RK.js";
|
|
12
|
+
function Xn(e, t) {
|
|
12
13
|
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
13
14
|
}
|
|
14
|
-
function
|
|
15
|
+
function wr(e) {
|
|
15
16
|
return Array.isArray(e) ? e[0] : e;
|
|
16
17
|
}
|
|
17
18
|
function Dr(e, t) {
|
|
18
|
-
const n = t.find((l) =>
|
|
19
|
+
const n = t.find((l) => Xn(l.subject, e));
|
|
19
20
|
if (!(n != null && n.category) || n.isCategoryCover) return;
|
|
20
21
|
const r = t.find((l) => l.category === n.category && l.isCategoryCover);
|
|
21
22
|
if (r)
|
|
22
|
-
return
|
|
23
|
+
return wr(r.subject);
|
|
23
24
|
}
|
|
24
25
|
function sn(e, t) {
|
|
25
|
-
const n = t.find((r) =>
|
|
26
|
+
const n = t.find((r) => Xn(r.subject, e));
|
|
26
27
|
return !!(n != null && n.isCategoryCover);
|
|
27
28
|
}
|
|
28
29
|
/*!
|
|
@@ -30,21 +31,21 @@ function sn(e, t) {
|
|
|
30
31
|
* (c) 2024 kazuya kawaguchi
|
|
31
32
|
* Released under the MIT License.
|
|
32
33
|
*/
|
|
33
|
-
const on = typeof window < "u", $e = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
34
|
+
const on = typeof window < "u", $e = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Fr = (e, t, n) => Pr({ l: e, k: t, s: n }), Pr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ge = (e) => typeof e == "number" && isFinite(e), jr = (e) => Ht(e) === "[object Date]", It = (e) => Ht(e) === "[object RegExp]", Ct = (e) => ee(e) && Object.keys(e).length === 0, ye = Object.assign, Ur = Object.create, oe = (e = null) => Ur(e);
|
|
34
35
|
let an;
|
|
35
|
-
const
|
|
36
|
+
const Be = () => an || (an = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : oe());
|
|
36
37
|
function ln(e) {
|
|
37
38
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
38
39
|
}
|
|
39
|
-
const
|
|
40
|
-
function
|
|
41
|
-
return
|
|
40
|
+
const Vr = Object.prototype.hasOwnProperty;
|
|
41
|
+
function ke(e, t) {
|
|
42
|
+
return Vr.call(e, t);
|
|
42
43
|
}
|
|
43
|
-
const be = Array.isArray,
|
|
44
|
+
const be = Array.isArray, de = (e) => typeof e == "function", Z = (e) => typeof e == "string", pe = (e) => typeof e == "boolean", te = (e) => e !== null && typeof e == "object", xr = (e) => te(e) && de(e.then) && de(e.catch), Bn = Object.prototype.toString, Ht = (e) => Bn.call(e), ee = (e) => Ht(e) === "[object Object]", Wr = (e) => e == null ? "" : be(e) || ee(e) && e.toString === Bn ? JSON.stringify(e, null, 2) : String(e);
|
|
44
45
|
function $t(e, t = "") {
|
|
45
46
|
return e.reduce((n, r, l) => l === 0 ? n + r : n + t + r, "");
|
|
46
47
|
}
|
|
47
|
-
function
|
|
48
|
+
function Gr(e, t) {
|
|
48
49
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
49
50
|
}
|
|
50
51
|
const ft = (e) => !te(e) || be(e);
|
|
@@ -59,7 +60,7 @@ function Et(e, t) {
|
|
|
59
60
|
});
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
+
function Zr(e, t, n) {
|
|
63
64
|
return { line: e, column: t, offset: n };
|
|
64
65
|
}
|
|
65
66
|
function Ft(e, t, n) {
|
|
@@ -82,90 +83,90 @@ const re = {
|
|
|
82
83
|
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
83
84
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
84
85
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
85
|
-
},
|
|
86
|
-
function
|
|
87
|
-
const { domain: r, messages: l, args: a } = n,
|
|
86
|
+
}, Yr = 17;
|
|
87
|
+
function Tt(e, t, n = {}) {
|
|
88
|
+
const { domain: r, messages: l, args: a } = n, m = e, u = new SyntaxError(String(m));
|
|
88
89
|
return u.code = e, t && (u.location = t), u.domain = r, u;
|
|
89
90
|
}
|
|
90
|
-
function
|
|
91
|
+
function Xr(e) {
|
|
91
92
|
throw e;
|
|
92
93
|
}
|
|
93
94
|
const Pe = " ", Br = "\r", Ee = `
|
|
94
|
-
`,
|
|
95
|
-
function
|
|
95
|
+
`, Hr = "\u2028", $r = "\u2029";
|
|
96
|
+
function Jr(e) {
|
|
96
97
|
const t = e;
|
|
97
98
|
let n = 0, r = 1, l = 1, a = 0;
|
|
98
|
-
const
|
|
99
|
+
const m = (v) => t[v] === Br && t[v + 1] === Ee, u = (v) => t[v] === Ee, i = (v) => t[v] === $r, g = (v) => t[v] === Hr, E = (v) => m(v) || u(v) || i(v) || g(v), T = () => n, N = () => r, F = () => l, w = () => a, L = (v) => m(v) || i(v) || g(v) ? Ee : t[v], D = () => L(n), f = () => L(n + a);
|
|
99
100
|
function h() {
|
|
100
|
-
return a = 0, E(n) && (r++, l = 0),
|
|
101
|
+
return a = 0, E(n) && (r++, l = 0), m(n) && n++, n++, l++, t[n];
|
|
101
102
|
}
|
|
102
103
|
function S() {
|
|
103
|
-
return
|
|
104
|
+
return m(n + a) && a++, a++, t[n + a];
|
|
104
105
|
}
|
|
105
106
|
function c() {
|
|
106
107
|
n = 0, r = 1, l = 1, a = 0;
|
|
107
108
|
}
|
|
108
|
-
function b(
|
|
109
|
-
a =
|
|
109
|
+
function b(v = 0) {
|
|
110
|
+
a = v;
|
|
110
111
|
}
|
|
111
|
-
function
|
|
112
|
-
const
|
|
113
|
-
for (;
|
|
112
|
+
function y() {
|
|
113
|
+
const v = n + a;
|
|
114
|
+
for (; v !== n; )
|
|
114
115
|
h();
|
|
115
116
|
a = 0;
|
|
116
117
|
}
|
|
117
118
|
return {
|
|
118
|
-
index:
|
|
119
|
+
index: T,
|
|
119
120
|
line: N,
|
|
120
121
|
column: F,
|
|
121
|
-
peekOffset:
|
|
122
|
+
peekOffset: w,
|
|
122
123
|
charAt: L,
|
|
123
|
-
currentChar:
|
|
124
|
+
currentChar: D,
|
|
124
125
|
currentPeek: f,
|
|
125
126
|
next: h,
|
|
126
127
|
peek: S,
|
|
127
128
|
reset: c,
|
|
128
129
|
resetPeek: b,
|
|
129
|
-
skipToPeek:
|
|
130
|
+
skipToPeek: y
|
|
130
131
|
};
|
|
131
132
|
}
|
|
132
|
-
const
|
|
133
|
-
function
|
|
134
|
-
const n = t.location !== !1, r =
|
|
133
|
+
const xe = void 0, Kr = ".", cn = "'", zr = "tokenizer";
|
|
134
|
+
function Qr(e, t = {}) {
|
|
135
|
+
const n = t.location !== !1, r = Jr(e), l = () => r.index(), a = () => Zr(r.line(), r.column(), r.index()), m = a(), u = l(), i = {
|
|
135
136
|
currentType: 13,
|
|
136
137
|
offset: u,
|
|
137
|
-
startLoc:
|
|
138
|
-
endLoc:
|
|
138
|
+
startLoc: m,
|
|
139
|
+
endLoc: m,
|
|
139
140
|
lastType: 13,
|
|
140
141
|
lastOffset: u,
|
|
141
|
-
lastStartLoc:
|
|
142
|
-
lastEndLoc:
|
|
142
|
+
lastStartLoc: m,
|
|
143
|
+
lastEndLoc: m,
|
|
143
144
|
braceNest: 0,
|
|
144
145
|
inLinked: !1,
|
|
145
146
|
text: ""
|
|
146
147
|
}, g = () => i, { onError: E } = t;
|
|
147
|
-
function
|
|
148
|
+
function T(s, o, _, ...A) {
|
|
148
149
|
const M = g();
|
|
149
150
|
if (o.column += _, o.offset += _, E) {
|
|
150
|
-
const P = n ? Ft(M.startLoc, o) : null,
|
|
151
|
-
domain:
|
|
152
|
-
args:
|
|
151
|
+
const P = n ? Ft(M.startLoc, o) : null, p = Tt(s, P, {
|
|
152
|
+
domain: zr,
|
|
153
|
+
args: A
|
|
153
154
|
});
|
|
154
|
-
E(
|
|
155
|
+
E(p);
|
|
155
156
|
}
|
|
156
157
|
}
|
|
157
158
|
function N(s, o, _) {
|
|
158
159
|
s.endLoc = a(), s.currentType = o;
|
|
159
|
-
const
|
|
160
|
-
return n && (
|
|
160
|
+
const A = { type: o };
|
|
161
|
+
return n && (A.loc = Ft(s.startLoc, s.endLoc)), _ != null && (A.value = _), A;
|
|
161
162
|
}
|
|
162
163
|
const F = (s) => N(
|
|
163
164
|
s,
|
|
164
165
|
13
|
|
165
166
|
/* TokenTypes.EOF */
|
|
166
167
|
);
|
|
167
|
-
function
|
|
168
|
-
return s.currentChar() === o ? (s.next(), o) : (
|
|
168
|
+
function w(s, o) {
|
|
169
|
+
return s.currentChar() === o ? (s.next(), o) : (T(re.EXPECTED_TOKEN, a(), 0, o), "");
|
|
169
170
|
}
|
|
170
171
|
function L(s) {
|
|
171
172
|
let o = "";
|
|
@@ -173,12 +174,12 @@ function zr(e, t = {}) {
|
|
|
173
174
|
o += s.currentPeek(), s.peek();
|
|
174
175
|
return o;
|
|
175
176
|
}
|
|
176
|
-
function
|
|
177
|
+
function D(s) {
|
|
177
178
|
const o = L(s);
|
|
178
179
|
return s.skipToPeek(), o;
|
|
179
180
|
}
|
|
180
181
|
function f(s) {
|
|
181
|
-
if (s ===
|
|
182
|
+
if (s === xe)
|
|
182
183
|
return !1;
|
|
183
184
|
const o = s.charCodeAt(0);
|
|
184
185
|
return o >= 97 && o <= 122 || // a-z
|
|
@@ -186,7 +187,7 @@ function zr(e, t = {}) {
|
|
|
186
187
|
o === 95;
|
|
187
188
|
}
|
|
188
189
|
function h(s) {
|
|
189
|
-
if (s ===
|
|
190
|
+
if (s === xe)
|
|
190
191
|
return !1;
|
|
191
192
|
const o = s.charCodeAt(0);
|
|
192
193
|
return o >= 48 && o <= 57;
|
|
@@ -196,15 +197,15 @@ function zr(e, t = {}) {
|
|
|
196
197
|
if (_ !== 2)
|
|
197
198
|
return !1;
|
|
198
199
|
L(s);
|
|
199
|
-
const
|
|
200
|
-
return s.resetPeek(),
|
|
200
|
+
const A = f(s.currentPeek());
|
|
201
|
+
return s.resetPeek(), A;
|
|
201
202
|
}
|
|
202
203
|
function c(s, o) {
|
|
203
204
|
const { currentType: _ } = o;
|
|
204
205
|
if (_ !== 2)
|
|
205
206
|
return !1;
|
|
206
207
|
L(s);
|
|
207
|
-
const
|
|
208
|
+
const A = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), M = h(A);
|
|
208
209
|
return s.resetPeek(), M;
|
|
209
210
|
}
|
|
210
211
|
function b(s, o) {
|
|
@@ -212,58 +213,58 @@ function zr(e, t = {}) {
|
|
|
212
213
|
if (_ !== 2)
|
|
213
214
|
return !1;
|
|
214
215
|
L(s);
|
|
215
|
-
const
|
|
216
|
-
return s.resetPeek(),
|
|
216
|
+
const A = s.currentPeek() === cn;
|
|
217
|
+
return s.resetPeek(), A;
|
|
217
218
|
}
|
|
218
|
-
function
|
|
219
|
+
function y(s, o) {
|
|
219
220
|
const { currentType: _ } = o;
|
|
220
221
|
if (_ !== 7)
|
|
221
222
|
return !1;
|
|
222
223
|
L(s);
|
|
223
|
-
const
|
|
224
|
-
return s.resetPeek(),
|
|
224
|
+
const A = s.currentPeek() === ".";
|
|
225
|
+
return s.resetPeek(), A;
|
|
225
226
|
}
|
|
226
|
-
function
|
|
227
|
+
function v(s, o) {
|
|
227
228
|
const { currentType: _ } = o;
|
|
228
229
|
if (_ !== 8)
|
|
229
230
|
return !1;
|
|
230
231
|
L(s);
|
|
231
|
-
const
|
|
232
|
-
return s.resetPeek(),
|
|
232
|
+
const A = f(s.currentPeek());
|
|
233
|
+
return s.resetPeek(), A;
|
|
233
234
|
}
|
|
234
|
-
function
|
|
235
|
+
function R(s, o) {
|
|
235
236
|
const { currentType: _ } = o;
|
|
236
237
|
if (!(_ === 7 || _ === 11))
|
|
237
238
|
return !1;
|
|
238
239
|
L(s);
|
|
239
|
-
const
|
|
240
|
-
return s.resetPeek(),
|
|
240
|
+
const A = s.currentPeek() === ":";
|
|
241
|
+
return s.resetPeek(), A;
|
|
241
242
|
}
|
|
242
|
-
function
|
|
243
|
+
function k(s, o) {
|
|
243
244
|
const { currentType: _ } = o;
|
|
244
245
|
if (_ !== 9)
|
|
245
246
|
return !1;
|
|
246
|
-
const
|
|
247
|
+
const A = () => {
|
|
247
248
|
const P = s.currentPeek();
|
|
248
|
-
return P === "{" ? f(s.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P === Ee ? (s.peek(),
|
|
249
|
-
}, M =
|
|
249
|
+
return P === "{" ? f(s.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P === Ee ? (s.peek(), A()) : x(s, !1);
|
|
250
|
+
}, M = A();
|
|
250
251
|
return s.resetPeek(), M;
|
|
251
252
|
}
|
|
252
|
-
function
|
|
253
|
+
function B(s) {
|
|
253
254
|
L(s);
|
|
254
255
|
const o = s.currentPeek() === "|";
|
|
255
256
|
return s.resetPeek(), o;
|
|
256
257
|
}
|
|
257
|
-
function
|
|
258
|
+
function x(s, o = !0) {
|
|
258
259
|
const _ = (M = !1, P = "") => {
|
|
259
|
-
const
|
|
260
|
-
return
|
|
261
|
-
},
|
|
262
|
-
return o && s.resetPeek(),
|
|
260
|
+
const p = s.currentPeek();
|
|
261
|
+
return p === "{" || p === "@" || !p ? M : p === "|" ? !(P === Pe || P === Ee) : p === Pe ? (s.peek(), _(!0, Pe)) : p === Ee ? (s.peek(), _(!0, Ee)) : !0;
|
|
262
|
+
}, A = _();
|
|
263
|
+
return o && s.resetPeek(), A;
|
|
263
264
|
}
|
|
264
|
-
function
|
|
265
|
+
function d(s, o) {
|
|
265
266
|
const _ = s.currentChar();
|
|
266
|
-
return _ ===
|
|
267
|
+
return _ === xe ? xe : o(_) ? (s.next(), _) : null;
|
|
267
268
|
}
|
|
268
269
|
function C(s) {
|
|
269
270
|
const o = s.charCodeAt(0);
|
|
@@ -273,10 +274,10 @@ function zr(e, t = {}) {
|
|
|
273
274
|
o === 95 || // _
|
|
274
275
|
o === 36;
|
|
275
276
|
}
|
|
276
|
-
function x(s) {
|
|
277
|
-
return m(s, C);
|
|
278
|
-
}
|
|
279
277
|
function U(s) {
|
|
278
|
+
return d(s, C);
|
|
279
|
+
}
|
|
280
|
+
function V(s) {
|
|
280
281
|
const o = s.charCodeAt(0);
|
|
281
282
|
return o >= 97 && o <= 122 || // a-z
|
|
282
283
|
o >= 65 && o <= 90 || // A-Z
|
|
@@ -286,14 +287,14 @@ function zr(e, t = {}) {
|
|
|
286
287
|
o === 45;
|
|
287
288
|
}
|
|
288
289
|
function j(s) {
|
|
289
|
-
return
|
|
290
|
+
return d(s, V);
|
|
290
291
|
}
|
|
291
292
|
function G(s) {
|
|
292
293
|
const o = s.charCodeAt(0);
|
|
293
294
|
return o >= 48 && o <= 57;
|
|
294
295
|
}
|
|
295
296
|
function W(s) {
|
|
296
|
-
return
|
|
297
|
+
return d(s, G);
|
|
297
298
|
}
|
|
298
299
|
function Y(s) {
|
|
299
300
|
const o = s.charCodeAt(0);
|
|
@@ -301,8 +302,8 @@ function zr(e, t = {}) {
|
|
|
301
302
|
o >= 65 && o <= 70 || // A-F
|
|
302
303
|
o >= 97 && o <= 102;
|
|
303
304
|
}
|
|
304
|
-
function
|
|
305
|
-
return
|
|
305
|
+
function X(s) {
|
|
306
|
+
return d(s, Y);
|
|
306
307
|
}
|
|
307
308
|
function ne(s) {
|
|
308
309
|
let o = "", _ = "";
|
|
@@ -317,10 +318,10 @@ function zr(e, t = {}) {
|
|
|
317
318
|
if (_ === "{" || _ === "}" || _ === "@" || _ === "|" || !_)
|
|
318
319
|
break;
|
|
319
320
|
if (_ === Pe || _ === Ee)
|
|
320
|
-
if (
|
|
321
|
+
if (x(s))
|
|
321
322
|
o += _, s.next();
|
|
322
323
|
else {
|
|
323
|
-
if (
|
|
324
|
+
if (B(s))
|
|
324
325
|
break;
|
|
325
326
|
o += _, s.next();
|
|
326
327
|
}
|
|
@@ -330,27 +331,27 @@ function zr(e, t = {}) {
|
|
|
330
331
|
return o;
|
|
331
332
|
}
|
|
332
333
|
function _e(s) {
|
|
333
|
-
|
|
334
|
+
D(s);
|
|
334
335
|
let o = "", _ = "";
|
|
335
336
|
for (; o = j(s); )
|
|
336
337
|
_ += o;
|
|
337
|
-
return s.currentChar() ===
|
|
338
|
+
return s.currentChar() === xe && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _;
|
|
338
339
|
}
|
|
339
340
|
function ce(s) {
|
|
340
|
-
|
|
341
|
+
D(s);
|
|
341
342
|
let o = "";
|
|
342
|
-
return s.currentChar() === "-" ? (s.next(), o += `-${ne(s)}`) : o += ne(s), s.currentChar() ===
|
|
343
|
+
return s.currentChar() === "-" ? (s.next(), o += `-${ne(s)}`) : o += ne(s), s.currentChar() === xe && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
343
344
|
}
|
|
344
345
|
function se(s) {
|
|
345
346
|
return s !== cn && s !== Ee;
|
|
346
347
|
}
|
|
347
348
|
function fe(s) {
|
|
348
|
-
|
|
349
|
+
D(s), w(s, "'");
|
|
349
350
|
let o = "", _ = "";
|
|
350
|
-
for (; o =
|
|
351
|
+
for (; o = d(s, se); )
|
|
351
352
|
o === "\\" ? _ += q(s) : _ += o;
|
|
352
|
-
const
|
|
353
|
-
return
|
|
353
|
+
const A = s.currentChar();
|
|
354
|
+
return A === Ee || A === xe ? (T(re.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), A === Ee && (s.next(), w(s, "'")), _) : (w(s, "'"), _);
|
|
354
355
|
}
|
|
355
356
|
function q(s) {
|
|
356
357
|
const o = s.currentChar();
|
|
@@ -359,91 +360,91 @@ function zr(e, t = {}) {
|
|
|
359
360
|
case "'":
|
|
360
361
|
return s.next(), `\\${o}`;
|
|
361
362
|
case "u":
|
|
362
|
-
return
|
|
363
|
+
return De(s, o, 4);
|
|
363
364
|
case "U":
|
|
364
|
-
return
|
|
365
|
+
return De(s, o, 6);
|
|
365
366
|
default:
|
|
366
|
-
return
|
|
367
|
+
return T(re.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
|
|
367
368
|
}
|
|
368
369
|
}
|
|
369
|
-
function
|
|
370
|
-
|
|
371
|
-
let
|
|
370
|
+
function De(s, o, _) {
|
|
371
|
+
w(s, o);
|
|
372
|
+
let A = "";
|
|
372
373
|
for (let M = 0; M < _; M++) {
|
|
373
|
-
const P =
|
|
374
|
+
const P = X(s);
|
|
374
375
|
if (!P) {
|
|
375
|
-
|
|
376
|
+
T(re.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${A}${s.currentChar()}`);
|
|
376
377
|
break;
|
|
377
378
|
}
|
|
378
|
-
|
|
379
|
+
A += P;
|
|
379
380
|
}
|
|
380
|
-
return `\\${o}${
|
|
381
|
+
return `\\${o}${A}`;
|
|
381
382
|
}
|
|
382
383
|
function K(s) {
|
|
383
384
|
return s !== "{" && s !== "}" && s !== Pe && s !== Ee;
|
|
384
385
|
}
|
|
385
|
-
function
|
|
386
|
-
|
|
386
|
+
function ve(s) {
|
|
387
|
+
D(s);
|
|
387
388
|
let o = "", _ = "";
|
|
388
|
-
for (; o =
|
|
389
|
+
for (; o = d(s, K); )
|
|
389
390
|
_ += o;
|
|
390
391
|
return _;
|
|
391
392
|
}
|
|
392
393
|
function Je(s) {
|
|
393
394
|
let o = "", _ = "";
|
|
394
|
-
for (; o =
|
|
395
|
+
for (; o = U(s); )
|
|
395
396
|
_ += o;
|
|
396
397
|
return _;
|
|
397
398
|
}
|
|
398
399
|
function Ke(s) {
|
|
399
400
|
const o = (_) => {
|
|
400
|
-
const
|
|
401
|
-
return
|
|
401
|
+
const A = s.currentChar();
|
|
402
|
+
return A === "{" || A === "@" || A === "|" || A === "(" || A === ")" || !A || A === Pe ? _ : (_ += A, s.next(), o(_));
|
|
402
403
|
};
|
|
403
404
|
return o("");
|
|
404
405
|
}
|
|
405
|
-
function
|
|
406
|
-
|
|
407
|
-
const o =
|
|
406
|
+
function Ve(s) {
|
|
407
|
+
D(s);
|
|
408
|
+
const o = w(
|
|
408
409
|
s,
|
|
409
410
|
"|"
|
|
410
411
|
/* TokenChars.Pipe */
|
|
411
412
|
);
|
|
412
|
-
return
|
|
413
|
+
return D(s), o;
|
|
413
414
|
}
|
|
414
415
|
function Fe(s, o) {
|
|
415
416
|
let _ = null;
|
|
416
417
|
switch (s.currentChar()) {
|
|
417
418
|
case "{":
|
|
418
|
-
return o.braceNest >= 1 &&
|
|
419
|
+
return o.braceNest >= 1 && T(re.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), s.next(), _ = N(
|
|
419
420
|
o,
|
|
420
421
|
2,
|
|
421
422
|
"{"
|
|
422
423
|
/* TokenChars.BraceLeft */
|
|
423
|
-
),
|
|
424
|
+
), D(s), o.braceNest++, _;
|
|
424
425
|
case "}":
|
|
425
|
-
return o.braceNest > 0 && o.currentType === 2 &&
|
|
426
|
+
return o.braceNest > 0 && o.currentType === 2 && T(re.EMPTY_PLACEHOLDER, a(), 0), s.next(), _ = N(
|
|
426
427
|
o,
|
|
427
428
|
3,
|
|
428
429
|
"}"
|
|
429
430
|
/* TokenChars.BraceRight */
|
|
430
|
-
), o.braceNest--, o.braceNest > 0 &&
|
|
431
|
+
), o.braceNest--, o.braceNest > 0 && D(s), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), _;
|
|
431
432
|
case "@":
|
|
432
|
-
return o.braceNest > 0 &&
|
|
433
|
+
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = Ce(s, o) || F(o), o.braceNest = 0, _;
|
|
433
434
|
default: {
|
|
434
|
-
let M = !0, P = !0,
|
|
435
|
-
if (
|
|
436
|
-
return o.braceNest > 0 &&
|
|
435
|
+
let M = !0, P = !0, p = !0;
|
|
436
|
+
if (B(s))
|
|
437
|
+
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = N(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
437
438
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
438
|
-
return
|
|
439
|
+
return T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, Ye(s, o);
|
|
439
440
|
if (M = S(s, o))
|
|
440
|
-
return _ = N(o, 4, _e(s)),
|
|
441
|
+
return _ = N(o, 4, _e(s)), D(s), _;
|
|
441
442
|
if (P = c(s, o))
|
|
442
|
-
return _ = N(o, 5, ce(s)),
|
|
443
|
-
if (
|
|
444
|
-
return _ = N(o, 6, fe(s)),
|
|
445
|
-
if (!M && !P && !
|
|
446
|
-
return _ = N(o, 12,
|
|
443
|
+
return _ = N(o, 5, ce(s)), D(s), _;
|
|
444
|
+
if (p = b(s, o))
|
|
445
|
+
return _ = N(o, 6, fe(s)), D(s), _;
|
|
446
|
+
if (!M && !P && !p)
|
|
447
|
+
return _ = N(o, 12, ve(s)), T(re.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, _.value), D(s), _;
|
|
447
448
|
break;
|
|
448
449
|
}
|
|
449
450
|
}
|
|
@@ -451,32 +452,32 @@ function zr(e, t = {}) {
|
|
|
451
452
|
}
|
|
452
453
|
function Ce(s, o) {
|
|
453
454
|
const { currentType: _ } = o;
|
|
454
|
-
let
|
|
455
|
+
let A = null;
|
|
455
456
|
const M = s.currentChar();
|
|
456
|
-
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M === Ee || M === Pe) &&
|
|
457
|
+
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M === Ee || M === Pe) && T(re.INVALID_LINKED_FORMAT, a(), 0), M) {
|
|
457
458
|
case "@":
|
|
458
|
-
return s.next(),
|
|
459
|
+
return s.next(), A = N(
|
|
459
460
|
o,
|
|
460
461
|
7,
|
|
461
462
|
"@"
|
|
462
463
|
/* TokenChars.LinkedAlias */
|
|
463
|
-
), o.inLinked = !0,
|
|
464
|
+
), o.inLinked = !0, A;
|
|
464
465
|
case ".":
|
|
465
|
-
return
|
|
466
|
+
return D(s), s.next(), N(
|
|
466
467
|
o,
|
|
467
468
|
8,
|
|
468
469
|
"."
|
|
469
470
|
/* TokenChars.LinkedDot */
|
|
470
471
|
);
|
|
471
472
|
case ":":
|
|
472
|
-
return
|
|
473
|
+
return D(s), s.next(), N(
|
|
473
474
|
o,
|
|
474
475
|
9,
|
|
475
476
|
":"
|
|
476
477
|
/* TokenChars.LinkedDelimiter */
|
|
477
478
|
);
|
|
478
479
|
default:
|
|
479
|
-
return
|
|
480
|
+
return B(s) ? (A = N(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, A) : y(s, o) || R(s, o) ? (D(s), Ce(s, o)) : v(s, o) ? (D(s), N(o, 11, Je(s))) : k(s, o) ? (D(s), M === "{" ? Fe(s, o) || A : N(o, 10, Ke(s))) : (_ === 7 && T(re.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, Ye(s, o));
|
|
480
481
|
}
|
|
481
482
|
}
|
|
482
483
|
function Ye(s, o) {
|
|
@@ -492,7 +493,7 @@ function zr(e, t = {}) {
|
|
|
492
493
|
case "{":
|
|
493
494
|
return Fe(s, o) || F(o);
|
|
494
495
|
case "}":
|
|
495
|
-
return
|
|
496
|
+
return T(re.UNBALANCED_CLOSING_BRACE, a(), 0), s.next(), N(
|
|
496
497
|
o,
|
|
497
498
|
3,
|
|
498
499
|
"}"
|
|
@@ -501,32 +502,32 @@ function zr(e, t = {}) {
|
|
|
501
502
|
case "@":
|
|
502
503
|
return Ce(s, o) || F(o);
|
|
503
504
|
default: {
|
|
504
|
-
if (
|
|
505
|
-
return _ = N(o, 1,
|
|
506
|
-
if (
|
|
505
|
+
if (B(s))
|
|
506
|
+
return _ = N(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
507
|
+
if (x(s))
|
|
507
508
|
return N(o, 0, Q(s));
|
|
508
509
|
break;
|
|
509
510
|
}
|
|
510
511
|
}
|
|
511
512
|
return _;
|
|
512
513
|
}
|
|
513
|
-
function
|
|
514
|
-
const { currentType: s, offset: o, startLoc: _, endLoc:
|
|
515
|
-
return i.lastType = s, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc =
|
|
514
|
+
function O() {
|
|
515
|
+
const { currentType: s, offset: o, startLoc: _, endLoc: A } = i;
|
|
516
|
+
return i.lastType = s, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc = A, i.offset = l(), i.startLoc = a(), r.currentChar() === xe ? N(
|
|
516
517
|
i,
|
|
517
518
|
13
|
|
518
519
|
/* TokenTypes.EOF */
|
|
519
520
|
) : Ye(r, i);
|
|
520
521
|
}
|
|
521
522
|
return {
|
|
522
|
-
nextToken:
|
|
523
|
+
nextToken: O,
|
|
523
524
|
currentOffset: l,
|
|
524
525
|
currentPosition: a,
|
|
525
526
|
context: g
|
|
526
527
|
};
|
|
527
528
|
}
|
|
528
|
-
const
|
|
529
|
-
function
|
|
529
|
+
const qr = "parser", es = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
530
|
+
function ts(e, t, n) {
|
|
530
531
|
switch (e) {
|
|
531
532
|
case "\\\\":
|
|
532
533
|
return "\\";
|
|
@@ -538,16 +539,16 @@ function es(e, t, n) {
|
|
|
538
539
|
}
|
|
539
540
|
}
|
|
540
541
|
}
|
|
541
|
-
function
|
|
542
|
+
function ns(e = {}) {
|
|
542
543
|
const t = e.location !== !1, { onError: n } = e;
|
|
543
544
|
function r(f, h, S, c, ...b) {
|
|
544
|
-
const
|
|
545
|
-
if (
|
|
546
|
-
const
|
|
547
|
-
domain:
|
|
545
|
+
const y = f.currentPosition();
|
|
546
|
+
if (y.offset += c, y.column += c, n) {
|
|
547
|
+
const v = t ? Ft(S, y) : null, R = Tt(h, v, {
|
|
548
|
+
domain: qr,
|
|
548
549
|
args: b
|
|
549
550
|
});
|
|
550
|
-
n(
|
|
551
|
+
n(R);
|
|
551
552
|
}
|
|
552
553
|
}
|
|
553
554
|
function l(f, h, S) {
|
|
@@ -557,32 +558,32 @@ function ts(e = {}) {
|
|
|
557
558
|
function a(f, h, S, c) {
|
|
558
559
|
t && (f.end = h, f.loc && (f.loc.end = S));
|
|
559
560
|
}
|
|
560
|
-
function
|
|
561
|
+
function m(f, h) {
|
|
561
562
|
const S = f.context(), c = l(3, S.offset, S.startLoc);
|
|
562
563
|
return c.value = h, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
563
564
|
}
|
|
564
565
|
function u(f, h) {
|
|
565
|
-
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S,
|
|
566
|
-
return
|
|
566
|
+
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, y = l(5, c, b);
|
|
567
|
+
return y.index = parseInt(h, 10), f.nextToken(), a(y, f.currentOffset(), f.currentPosition()), y;
|
|
567
568
|
}
|
|
568
569
|
function i(f, h) {
|
|
569
|
-
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S,
|
|
570
|
-
return
|
|
570
|
+
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, y = l(4, c, b);
|
|
571
|
+
return y.key = h, f.nextToken(), a(y, f.currentOffset(), f.currentPosition()), y;
|
|
571
572
|
}
|
|
572
573
|
function g(f, h) {
|
|
573
|
-
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S,
|
|
574
|
-
return
|
|
574
|
+
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, y = l(9, c, b);
|
|
575
|
+
return y.value = h.replace(es, ts), f.nextToken(), a(y, f.currentOffset(), f.currentPosition()), y;
|
|
575
576
|
}
|
|
576
577
|
function E(f) {
|
|
577
|
-
const h = f.nextToken(), S = f.context(), { lastOffset: c, lastStartLoc: b } = S,
|
|
578
|
-
return h.type !== 11 ? (r(f, re.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0),
|
|
578
|
+
const h = f.nextToken(), S = f.context(), { lastOffset: c, lastStartLoc: b } = S, y = l(8, c, b);
|
|
579
|
+
return h.type !== 11 ? (r(f, re.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), y.value = "", a(y, c, b), {
|
|
579
580
|
nextConsumeToken: h,
|
|
580
|
-
node:
|
|
581
|
-
}) : (h.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0,
|
|
582
|
-
node:
|
|
581
|
+
node: y
|
|
582
|
+
}) : (h.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, Ae(h)), y.value = h.value || "", a(y, f.currentOffset(), f.currentPosition()), {
|
|
583
|
+
node: y
|
|
583
584
|
});
|
|
584
585
|
}
|
|
585
|
-
function
|
|
586
|
+
function T(f, h) {
|
|
586
587
|
const S = f.context(), c = l(7, S.offset, S.startLoc);
|
|
587
588
|
return c.value = h, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
588
589
|
}
|
|
@@ -593,23 +594,23 @@ function ts(e = {}) {
|
|
|
593
594
|
const b = E(f);
|
|
594
595
|
S.modifier = b.node, c = b.nextConsumeToken || f.nextToken();
|
|
595
596
|
}
|
|
596
|
-
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
597
|
+
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(c)), c = f.nextToken(), c.type === 2 && (c = f.nextToken()), c.type) {
|
|
597
598
|
case 10:
|
|
598
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
599
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(c)), S.key = T(f, c.value || "");
|
|
599
600
|
break;
|
|
600
601
|
case 4:
|
|
601
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
602
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(c)), S.key = i(f, c.value || "");
|
|
602
603
|
break;
|
|
603
604
|
case 5:
|
|
604
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
605
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(c)), S.key = u(f, c.value || "");
|
|
605
606
|
break;
|
|
606
607
|
case 6:
|
|
607
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
608
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(c)), S.key = g(f, c.value || "");
|
|
608
609
|
break;
|
|
609
610
|
default: {
|
|
610
611
|
r(f, re.UNEXPECTED_EMPTY_LINKED_KEY, h.lastStartLoc, 0);
|
|
611
|
-
const b = f.context(),
|
|
612
|
-
return
|
|
612
|
+
const b = f.context(), y = l(7, b.offset, b.startLoc);
|
|
613
|
+
return y.value = "", a(y, b.offset, b.startLoc), S.key = y, a(S, b.offset, b.startLoc), {
|
|
613
614
|
nextConsumeToken: c,
|
|
614
615
|
node: S
|
|
615
616
|
};
|
|
@@ -622,60 +623,60 @@ function ts(e = {}) {
|
|
|
622
623
|
function F(f) {
|
|
623
624
|
const h = f.context(), S = h.currentType === 1 ? f.currentOffset() : h.offset, c = h.currentType === 1 ? h.endLoc : h.startLoc, b = l(2, S, c);
|
|
624
625
|
b.items = [];
|
|
625
|
-
let
|
|
626
|
+
let y = null;
|
|
626
627
|
do {
|
|
627
|
-
const
|
|
628
|
-
switch (
|
|
628
|
+
const k = y || f.nextToken();
|
|
629
|
+
switch (y = null, k.type) {
|
|
629
630
|
case 0:
|
|
630
|
-
|
|
631
|
+
k.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(k)), b.items.push(m(f, k.value || ""));
|
|
631
632
|
break;
|
|
632
633
|
case 5:
|
|
633
|
-
|
|
634
|
+
k.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(k)), b.items.push(u(f, k.value || ""));
|
|
634
635
|
break;
|
|
635
636
|
case 4:
|
|
636
|
-
|
|
637
|
+
k.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(k)), b.items.push(i(f, k.value || ""));
|
|
637
638
|
break;
|
|
638
639
|
case 6:
|
|
639
|
-
|
|
640
|
+
k.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(k)), b.items.push(g(f, k.value || ""));
|
|
640
641
|
break;
|
|
641
642
|
case 7: {
|
|
642
|
-
const
|
|
643
|
-
b.items.push(
|
|
643
|
+
const B = N(f);
|
|
644
|
+
b.items.push(B.node), y = B.nextConsumeToken || null;
|
|
644
645
|
break;
|
|
645
646
|
}
|
|
646
647
|
}
|
|
647
648
|
} while (h.currentType !== 13 && h.currentType !== 1);
|
|
648
|
-
const
|
|
649
|
-
return a(b,
|
|
649
|
+
const v = h.currentType === 1 ? h.lastOffset : f.currentOffset(), R = h.currentType === 1 ? h.lastEndLoc : f.currentPosition();
|
|
650
|
+
return a(b, v, R), b;
|
|
650
651
|
}
|
|
651
|
-
function
|
|
652
|
+
function w(f, h, S, c) {
|
|
652
653
|
const b = f.context();
|
|
653
|
-
let
|
|
654
|
-
const
|
|
655
|
-
|
|
654
|
+
let y = c.items.length === 0;
|
|
655
|
+
const v = l(1, h, S);
|
|
656
|
+
v.cases = [], v.cases.push(c);
|
|
656
657
|
do {
|
|
657
|
-
const
|
|
658
|
-
|
|
658
|
+
const R = F(f);
|
|
659
|
+
y || (y = R.items.length === 0), v.cases.push(R);
|
|
659
660
|
} while (b.currentType !== 13);
|
|
660
|
-
return
|
|
661
|
+
return y && r(f, re.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), a(v, f.currentOffset(), f.currentPosition()), v;
|
|
661
662
|
}
|
|
662
663
|
function L(f) {
|
|
663
664
|
const h = f.context(), { offset: S, startLoc: c } = h, b = F(f);
|
|
664
|
-
return h.currentType === 13 ? b :
|
|
665
|
+
return h.currentType === 13 ? b : w(f, S, c, b);
|
|
665
666
|
}
|
|
666
|
-
function
|
|
667
|
-
const h =
|
|
667
|
+
function D(f) {
|
|
668
|
+
const h = Qr(f, ye({}, e)), S = h.context(), c = l(0, S.offset, S.startLoc);
|
|
668
669
|
return t && c.loc && (c.loc.source = f), c.body = L(h), e.onCacheKey && (c.cacheKey = e.onCacheKey(f)), S.currentType !== 13 && r(h, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, f[S.offset] || ""), a(c, h.currentOffset(), h.currentPosition()), c;
|
|
669
670
|
}
|
|
670
|
-
return { parse:
|
|
671
|
+
return { parse: D };
|
|
671
672
|
}
|
|
672
|
-
function
|
|
673
|
+
function Ae(e) {
|
|
673
674
|
if (e.type === 13)
|
|
674
675
|
return "EOF";
|
|
675
676
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
676
677
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
677
678
|
}
|
|
678
|
-
function
|
|
679
|
+
function rs(e, t = {}) {
|
|
679
680
|
const n = {
|
|
680
681
|
ast: e,
|
|
681
682
|
helpers: /* @__PURE__ */ new Set()
|
|
@@ -727,8 +728,8 @@ function Jt(e, t) {
|
|
|
727
728
|
break;
|
|
728
729
|
}
|
|
729
730
|
}
|
|
730
|
-
function
|
|
731
|
-
const n =
|
|
731
|
+
function ss(e, t = {}) {
|
|
732
|
+
const n = rs(e);
|
|
732
733
|
n.helper(
|
|
733
734
|
"normalize"
|
|
734
735
|
/* HelperNameMap.NORMALIZE */
|
|
@@ -736,11 +737,11 @@ function rs(e, t = {}) {
|
|
|
736
737
|
const r = n.context();
|
|
737
738
|
e.helpers = Array.from(r.helpers);
|
|
738
739
|
}
|
|
739
|
-
function
|
|
740
|
+
function os(e) {
|
|
740
741
|
const t = e.body;
|
|
741
|
-
return t.type === 2 ?
|
|
742
|
+
return t.type === 2 ? mn(t) : t.cases.forEach((n) => mn(n)), e;
|
|
742
743
|
}
|
|
743
|
-
function
|
|
744
|
+
function mn(e) {
|
|
744
745
|
if (e.items.length === 1) {
|
|
745
746
|
const t = e.items[0];
|
|
746
747
|
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
@@ -808,8 +809,8 @@ function Qe(e) {
|
|
|
808
809
|
}
|
|
809
810
|
delete e.type;
|
|
810
811
|
}
|
|
811
|
-
function
|
|
812
|
-
const { filename: n, breakLineCode: r, needIndent: l } = t, a = t.location !== !1,
|
|
812
|
+
function as(e, t) {
|
|
813
|
+
const { filename: n, breakLineCode: r, needIndent: l } = t, a = t.location !== !1, m = {
|
|
813
814
|
filename: n,
|
|
814
815
|
code: "",
|
|
815
816
|
column: 1,
|
|
@@ -820,44 +821,44 @@ function os(e, t) {
|
|
|
820
821
|
needIndent: l,
|
|
821
822
|
indentLevel: 0
|
|
822
823
|
};
|
|
823
|
-
a && e.loc && (
|
|
824
|
-
const u = () =>
|
|
825
|
-
function i(L,
|
|
826
|
-
|
|
824
|
+
a && e.loc && (m.source = e.loc.source);
|
|
825
|
+
const u = () => m;
|
|
826
|
+
function i(L, D) {
|
|
827
|
+
m.code += L;
|
|
827
828
|
}
|
|
828
|
-
function g(L,
|
|
829
|
-
const f =
|
|
829
|
+
function g(L, D = !0) {
|
|
830
|
+
const f = D ? r : "";
|
|
830
831
|
i(l ? f + " ".repeat(L) : f);
|
|
831
832
|
}
|
|
832
833
|
function E(L = !0) {
|
|
833
|
-
const
|
|
834
|
-
L && g(
|
|
834
|
+
const D = ++m.indentLevel;
|
|
835
|
+
L && g(D);
|
|
835
836
|
}
|
|
836
|
-
function
|
|
837
|
-
const
|
|
838
|
-
L && g(
|
|
837
|
+
function T(L = !0) {
|
|
838
|
+
const D = --m.indentLevel;
|
|
839
|
+
L && g(D);
|
|
839
840
|
}
|
|
840
841
|
function N() {
|
|
841
|
-
g(
|
|
842
|
+
g(m.indentLevel);
|
|
842
843
|
}
|
|
843
844
|
return {
|
|
844
845
|
context: u,
|
|
845
846
|
push: i,
|
|
846
847
|
indent: E,
|
|
847
|
-
deindent:
|
|
848
|
+
deindent: T,
|
|
848
849
|
newline: N,
|
|
849
850
|
helper: (L) => `_${L}`,
|
|
850
|
-
needIndent: () =>
|
|
851
|
+
needIndent: () => m.needIndent
|
|
851
852
|
};
|
|
852
853
|
}
|
|
853
|
-
function
|
|
854
|
+
function ls(e, t) {
|
|
854
855
|
const { helper: n } = e;
|
|
855
856
|
e.push(`${n(
|
|
856
857
|
"linked"
|
|
857
858
|
/* HelperNameMap.LINKED */
|
|
858
859
|
)}(`), st(e, t.key), t.modifier ? (e.push(", "), st(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
859
860
|
}
|
|
860
|
-
function
|
|
861
|
+
function is(e, t) {
|
|
861
862
|
const { helper: n, needIndent: r } = e;
|
|
862
863
|
e.push(`${n(
|
|
863
864
|
"normalize"
|
|
@@ -868,7 +869,7 @@ function ls(e, t) {
|
|
|
868
869
|
e.push(", ");
|
|
869
870
|
e.deindent(r()), e.push("])");
|
|
870
871
|
}
|
|
871
|
-
function
|
|
872
|
+
function cs(e, t) {
|
|
872
873
|
const { helper: n, needIndent: r } = e;
|
|
873
874
|
if (t.cases.length > 1) {
|
|
874
875
|
e.push(`${n(
|
|
@@ -881,23 +882,23 @@ function is(e, t) {
|
|
|
881
882
|
e.deindent(r()), e.push("])");
|
|
882
883
|
}
|
|
883
884
|
}
|
|
884
|
-
function
|
|
885
|
+
function us(e, t) {
|
|
885
886
|
t.body ? st(e, t.body) : e.push("null");
|
|
886
887
|
}
|
|
887
888
|
function st(e, t) {
|
|
888
889
|
const { helper: n } = e;
|
|
889
890
|
switch (t.type) {
|
|
890
891
|
case 0:
|
|
891
|
-
|
|
892
|
+
us(e, t);
|
|
892
893
|
break;
|
|
893
894
|
case 1:
|
|
894
|
-
|
|
895
|
+
cs(e, t);
|
|
895
896
|
break;
|
|
896
897
|
case 2:
|
|
897
|
-
|
|
898
|
+
is(e, t);
|
|
898
899
|
break;
|
|
899
900
|
case 6:
|
|
900
|
-
|
|
901
|
+
ls(e, t);
|
|
901
902
|
break;
|
|
902
903
|
case 8:
|
|
903
904
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -931,16 +932,16 @@ function st(e, t) {
|
|
|
931
932
|
break;
|
|
932
933
|
}
|
|
933
934
|
}
|
|
934
|
-
const
|
|
935
|
+
const ms = (e, t = {}) => {
|
|
935
936
|
const n = Z(t.mode) ? t.mode : "normal", r = Z(t.filename) ? t.filename : "message.intl";
|
|
936
937
|
t.sourceMap;
|
|
937
938
|
const l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
938
|
-
`, a = t.needIndent ? t.needIndent : n !== "arrow",
|
|
939
|
+
`, a = t.needIndent ? t.needIndent : n !== "arrow", m = e.helpers || [], u = as(e, {
|
|
939
940
|
filename: r,
|
|
940
941
|
breakLineCode: l,
|
|
941
942
|
needIndent: a
|
|
942
943
|
});
|
|
943
|
-
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a),
|
|
944
|
+
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), m.length > 0 && (u.push(`const { ${$t(m.map((E) => `${E}: _${E}`), ", ")} } = ctx`), u.newline()), u.push("return "), st(u, e), u.deindent(a), u.push("}"), delete e.helpers;
|
|
944
945
|
const { code: i, map: g } = u.context();
|
|
945
946
|
return {
|
|
946
947
|
ast: e,
|
|
@@ -950,56 +951,56 @@ const us = (e, t = {}) => {
|
|
|
950
951
|
};
|
|
951
952
|
};
|
|
952
953
|
function ds(e, t = {}) {
|
|
953
|
-
const n =
|
|
954
|
-
return r ? (a &&
|
|
954
|
+
const n = ye({}, t), r = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize, u = ns(n).parse(e);
|
|
955
|
+
return r ? (a && os(u), l && Qe(u), { ast: u, code: "" }) : (ss(u, n), ms(u, n));
|
|
955
956
|
}
|
|
956
|
-
var
|
|
957
|
-
function
|
|
958
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
957
|
+
var fs = { env: { NODE_ENV: "production" } };
|
|
958
|
+
function _s() {
|
|
959
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Be().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Be().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
959
960
|
}
|
|
960
961
|
function Lt(e) {
|
|
961
|
-
return (n) =>
|
|
962
|
+
return (n) => vs(n, e);
|
|
962
963
|
}
|
|
963
|
-
function
|
|
964
|
-
const n =
|
|
964
|
+
function vs(e, t) {
|
|
965
|
+
const n = hs(t);
|
|
965
966
|
if (n == null)
|
|
966
967
|
throw it(
|
|
967
968
|
0
|
|
968
969
|
/* NodeTypes.Resource */
|
|
969
970
|
);
|
|
970
971
|
if (Kt(n) === 1) {
|
|
971
|
-
const a =
|
|
972
|
-
return e.plural(a.reduce((
|
|
973
|
-
...
|
|
974
|
-
|
|
972
|
+
const a = gs(n);
|
|
973
|
+
return e.plural(a.reduce((m, u) => [
|
|
974
|
+
...m,
|
|
975
|
+
dn(e, u)
|
|
975
976
|
], []));
|
|
976
977
|
} else
|
|
977
|
-
return
|
|
978
|
+
return dn(e, n);
|
|
978
979
|
}
|
|
979
980
|
const ps = ["b", "body"];
|
|
980
|
-
function
|
|
981
|
+
function hs(e) {
|
|
981
982
|
return Ge(e, ps);
|
|
982
983
|
}
|
|
983
|
-
const
|
|
984
|
-
function
|
|
985
|
-
return Ge(e,
|
|
984
|
+
const bs = ["c", "cases"];
|
|
985
|
+
function gs(e) {
|
|
986
|
+
return Ge(e, bs, []);
|
|
986
987
|
}
|
|
987
|
-
function
|
|
988
|
-
const n =
|
|
988
|
+
function dn(e, t) {
|
|
989
|
+
const n = Es(t);
|
|
989
990
|
if (n != null)
|
|
990
991
|
return e.type === "text" ? n : e.normalize([n]);
|
|
991
992
|
{
|
|
992
|
-
const r =
|
|
993
|
+
const r = Ns(t).reduce((l, a) => [...l, Pt(e, a)], []);
|
|
993
994
|
return e.normalize(r);
|
|
994
995
|
}
|
|
995
996
|
}
|
|
996
|
-
const
|
|
997
|
-
function
|
|
998
|
-
return Ge(e,
|
|
997
|
+
const ys = ["s", "static"];
|
|
998
|
+
function Es(e) {
|
|
999
|
+
return Ge(e, ys);
|
|
999
1000
|
}
|
|
1000
|
-
const
|
|
1001
|
-
function
|
|
1002
|
-
return Ge(e,
|
|
1001
|
+
const Is = ["i", "items"];
|
|
1002
|
+
function Ns(e) {
|
|
1003
|
+
return Ge(e, Is, []);
|
|
1003
1004
|
}
|
|
1004
1005
|
function Pt(e, t) {
|
|
1005
1006
|
const n = Kt(t);
|
|
@@ -1010,22 +1011,22 @@ function Pt(e, t) {
|
|
|
1010
1011
|
return _t(t, n);
|
|
1011
1012
|
case 4: {
|
|
1012
1013
|
const r = t;
|
|
1013
|
-
if (
|
|
1014
|
+
if (ke(r, "k") && r.k)
|
|
1014
1015
|
return e.interpolate(e.named(r.k));
|
|
1015
|
-
if (
|
|
1016
|
+
if (ke(r, "key") && r.key)
|
|
1016
1017
|
return e.interpolate(e.named(r.key));
|
|
1017
1018
|
throw it(n);
|
|
1018
1019
|
}
|
|
1019
1020
|
case 5: {
|
|
1020
1021
|
const r = t;
|
|
1021
|
-
if (
|
|
1022
|
+
if (ke(r, "i") && ge(r.i))
|
|
1022
1023
|
return e.interpolate(e.list(r.i));
|
|
1023
|
-
if (
|
|
1024
|
+
if (ke(r, "index") && ge(r.index))
|
|
1024
1025
|
return e.interpolate(e.list(r.index));
|
|
1025
1026
|
throw it(n);
|
|
1026
1027
|
}
|
|
1027
1028
|
case 6: {
|
|
1028
|
-
const r = t, l =
|
|
1029
|
+
const r = t, l = Ss(r), a = Ls(r);
|
|
1029
1030
|
return e.linked(Pt(e, a), l ? Pt(e, l) : void 0, e.type);
|
|
1030
1031
|
}
|
|
1031
1032
|
case 7:
|
|
@@ -1036,24 +1037,24 @@ function Pt(e, t) {
|
|
|
1036
1037
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1037
1038
|
}
|
|
1038
1039
|
}
|
|
1039
|
-
const
|
|
1040
|
+
const Cs = ["t", "type"];
|
|
1040
1041
|
function Kt(e) {
|
|
1041
|
-
return Ge(e,
|
|
1042
|
+
return Ge(e, Cs);
|
|
1042
1043
|
}
|
|
1043
|
-
const
|
|
1044
|
+
const Ts = ["v", "value"];
|
|
1044
1045
|
function _t(e, t) {
|
|
1045
|
-
const n = Ge(e,
|
|
1046
|
+
const n = Ge(e, Ts);
|
|
1046
1047
|
if (n)
|
|
1047
1048
|
return n;
|
|
1048
1049
|
throw it(t);
|
|
1049
1050
|
}
|
|
1050
1051
|
const Os = ["m", "modifier"];
|
|
1051
|
-
function
|
|
1052
|
+
function Ss(e) {
|
|
1052
1053
|
return Ge(e, Os);
|
|
1053
1054
|
}
|
|
1054
|
-
const
|
|
1055
|
-
function
|
|
1056
|
-
const t = Ge(e,
|
|
1055
|
+
const ks = ["k", "key"];
|
|
1056
|
+
function Ls(e) {
|
|
1057
|
+
const t = Ge(e, ks);
|
|
1057
1058
|
if (t)
|
|
1058
1059
|
return t;
|
|
1059
1060
|
throw it(
|
|
@@ -1064,7 +1065,7 @@ function As(e) {
|
|
|
1064
1065
|
function Ge(e, t, n) {
|
|
1065
1066
|
for (let r = 0; r < t.length; r++) {
|
|
1066
1067
|
const l = t[r];
|
|
1067
|
-
if (
|
|
1068
|
+
if (ke(e, l) && e[l] != null)
|
|
1068
1069
|
return e[l];
|
|
1069
1070
|
}
|
|
1070
1071
|
return n;
|
|
@@ -1072,42 +1073,42 @@ function Ge(e, t, n) {
|
|
|
1072
1073
|
function it(e) {
|
|
1073
1074
|
return new Error(`unhandled node type: ${e}`);
|
|
1074
1075
|
}
|
|
1075
|
-
const
|
|
1076
|
-
let
|
|
1076
|
+
const As = (e) => e;
|
|
1077
|
+
let vt = oe();
|
|
1077
1078
|
function ot(e) {
|
|
1078
|
-
return te(e) && Kt(e) === 0 && (
|
|
1079
|
+
return te(e) && Kt(e) === 0 && (ke(e, "b") || ke(e, "body"));
|
|
1079
1080
|
}
|
|
1080
1081
|
function Rs(e, t = {}) {
|
|
1081
1082
|
let n = !1;
|
|
1082
|
-
const r = t.onError ||
|
|
1083
|
+
const r = t.onError || Xr;
|
|
1083
1084
|
return t.onError = (l) => {
|
|
1084
1085
|
n = !0, r(l);
|
|
1085
1086
|
}, { ...ds(e, t), detectError: n };
|
|
1086
1087
|
}
|
|
1087
1088
|
// @__NO_SIDE_EFFECTS__
|
|
1088
|
-
function
|
|
1089
|
+
function Ms(e, t) {
|
|
1089
1090
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && Z(e)) {
|
|
1090
|
-
|
|
1091
|
-
const r = (t.onCacheKey ||
|
|
1091
|
+
pe(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1092
|
+
const r = (t.onCacheKey || As)(e), l = vt[r];
|
|
1092
1093
|
if (l)
|
|
1093
1094
|
return l;
|
|
1094
|
-
const { ast: a, detectError:
|
|
1095
|
+
const { ast: a, detectError: m } = Rs(e, {
|
|
1095
1096
|
...t,
|
|
1096
|
-
location:
|
|
1097
|
+
location: fs.env.NODE_ENV !== "production",
|
|
1097
1098
|
jit: !0
|
|
1098
1099
|
}), u = Lt(a);
|
|
1099
|
-
return
|
|
1100
|
+
return m ? u : vt[r] = u;
|
|
1100
1101
|
} else {
|
|
1101
1102
|
const n = e.cacheKey;
|
|
1102
1103
|
if (n) {
|
|
1103
|
-
const r =
|
|
1104
|
-
return r || (
|
|
1104
|
+
const r = vt[n];
|
|
1105
|
+
return r || (vt[n] = Lt(e));
|
|
1105
1106
|
} else
|
|
1106
1107
|
return Lt(e);
|
|
1107
1108
|
}
|
|
1108
1109
|
}
|
|
1109
1110
|
let ct = null;
|
|
1110
|
-
function
|
|
1111
|
+
function ws(e) {
|
|
1111
1112
|
ct = e;
|
|
1112
1113
|
}
|
|
1113
1114
|
function Ds(e, t, n) {
|
|
@@ -1118,43 +1119,43 @@ function Ds(e, t, n) {
|
|
|
1118
1119
|
meta: n
|
|
1119
1120
|
});
|
|
1120
1121
|
}
|
|
1121
|
-
const
|
|
1122
|
-
function
|
|
1122
|
+
const Fs = /* @__PURE__ */ Ps("function:translate");
|
|
1123
|
+
function Ps(e) {
|
|
1123
1124
|
return (t) => ct && ct.emit(e, t);
|
|
1124
1125
|
}
|
|
1125
1126
|
const je = {
|
|
1126
|
-
INVALID_ARGUMENT:
|
|
1127
|
+
INVALID_ARGUMENT: Yr,
|
|
1127
1128
|
// 17
|
|
1128
1129
|
INVALID_DATE_ARGUMENT: 18,
|
|
1129
1130
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
1130
1131
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1131
1132
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1132
1133
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1133
|
-
},
|
|
1134
|
-
function
|
|
1135
|
-
return
|
|
1134
|
+
}, js = 24;
|
|
1135
|
+
function Ue(e) {
|
|
1136
|
+
return Tt(e, null, void 0);
|
|
1136
1137
|
}
|
|
1137
1138
|
function zt(e, t) {
|
|
1138
1139
|
return t.locale != null ? fn(t.locale) : fn(e.locale);
|
|
1139
1140
|
}
|
|
1140
|
-
let
|
|
1141
|
+
let At;
|
|
1141
1142
|
function fn(e) {
|
|
1142
1143
|
if (Z(e))
|
|
1143
1144
|
return e;
|
|
1144
|
-
if (
|
|
1145
|
-
if (e.resolvedOnce &&
|
|
1146
|
-
return
|
|
1145
|
+
if (de(e)) {
|
|
1146
|
+
if (e.resolvedOnce && At != null)
|
|
1147
|
+
return At;
|
|
1147
1148
|
if (e.constructor.name === "Function") {
|
|
1148
1149
|
const t = e();
|
|
1149
|
-
if (
|
|
1150
|
-
throw
|
|
1151
|
-
return
|
|
1150
|
+
if (xr(t))
|
|
1151
|
+
throw Ue(je.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1152
|
+
return At = t;
|
|
1152
1153
|
} else
|
|
1153
|
-
throw
|
|
1154
|
+
throw Ue(je.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1154
1155
|
} else
|
|
1155
|
-
throw
|
|
1156
|
+
throw Ue(je.NOT_SUPPORT_LOCALE_TYPE);
|
|
1156
1157
|
}
|
|
1157
|
-
function
|
|
1158
|
+
function Us(e, t, n) {
|
|
1158
1159
|
return [.../* @__PURE__ */ new Set([
|
|
1159
1160
|
n,
|
|
1160
1161
|
...be(t) ? t : te(t) ? Object.keys(t) : Z(t) ? [t] : [n]
|
|
@@ -1166,32 +1167,32 @@ function Hn(e, t, n) {
|
|
|
1166
1167
|
let a = l.__localeChainCache.get(r);
|
|
1167
1168
|
if (!a) {
|
|
1168
1169
|
a = [];
|
|
1169
|
-
let
|
|
1170
|
-
for (; be(
|
|
1171
|
-
|
|
1170
|
+
let m = [n];
|
|
1171
|
+
for (; be(m); )
|
|
1172
|
+
m = _n(a, m, t);
|
|
1172
1173
|
const u = be(t) || !ee(t) ? t : t.default ? t.default : null;
|
|
1173
|
-
|
|
1174
|
+
m = Z(u) ? [u] : u, be(m) && _n(a, m, !1), l.__localeChainCache.set(r, a);
|
|
1174
1175
|
}
|
|
1175
1176
|
return a;
|
|
1176
1177
|
}
|
|
1177
1178
|
function _n(e, t, n) {
|
|
1178
1179
|
let r = !0;
|
|
1179
|
-
for (let l = 0; l < t.length &&
|
|
1180
|
+
for (let l = 0; l < t.length && pe(r); l++) {
|
|
1180
1181
|
const a = t[l];
|
|
1181
|
-
Z(a) && (r =
|
|
1182
|
+
Z(a) && (r = Vs(e, t[l], n));
|
|
1182
1183
|
}
|
|
1183
1184
|
return r;
|
|
1184
1185
|
}
|
|
1185
|
-
function
|
|
1186
|
+
function Vs(e, t, n) {
|
|
1186
1187
|
let r;
|
|
1187
1188
|
const l = t.split("-");
|
|
1188
1189
|
do {
|
|
1189
1190
|
const a = l.join("-");
|
|
1190
|
-
r =
|
|
1191
|
+
r = xs(e, a, n), l.splice(-1, 1);
|
|
1191
1192
|
} while (l.length && r === !0);
|
|
1192
1193
|
return r;
|
|
1193
1194
|
}
|
|
1194
|
-
function
|
|
1195
|
+
function xs(e, t, n) {
|
|
1195
1196
|
let r = !1;
|
|
1196
1197
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1197
1198
|
r = t[t.length - 1] !== "!";
|
|
@@ -1361,15 +1362,15 @@ Ze[
|
|
|
1361
1362
|
/* Actions.APPEND */
|
|
1362
1363
|
]
|
|
1363
1364
|
};
|
|
1364
|
-
const
|
|
1365
|
-
function Ws(e) {
|
|
1366
|
-
return Vs.test(e);
|
|
1367
|
-
}
|
|
1365
|
+
const Ws = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1368
1366
|
function Gs(e) {
|
|
1367
|
+
return Ws.test(e);
|
|
1368
|
+
}
|
|
1369
|
+
function Zs(e) {
|
|
1369
1370
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1370
1371
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1371
1372
|
}
|
|
1372
|
-
function
|
|
1373
|
+
function Ys(e) {
|
|
1373
1374
|
if (e == null)
|
|
1374
1375
|
return "o";
|
|
1375
1376
|
switch (e.charCodeAt(0)) {
|
|
@@ -1394,24 +1395,24 @@ function Zs(e) {
|
|
|
1394
1395
|
}
|
|
1395
1396
|
return "i";
|
|
1396
1397
|
}
|
|
1397
|
-
function
|
|
1398
|
+
function Xs(e) {
|
|
1398
1399
|
const t = e.trim();
|
|
1399
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1400
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Gs(t) ? Zs(t) : "*" + t;
|
|
1400
1401
|
}
|
|
1401
1402
|
function Bs(e) {
|
|
1402
1403
|
const t = [];
|
|
1403
|
-
let n = -1, r = 0, l = 0, a,
|
|
1404
|
+
let n = -1, r = 0, l = 0, a, m, u, i, g, E, T;
|
|
1404
1405
|
const N = [];
|
|
1405
1406
|
N[
|
|
1406
1407
|
0
|
|
1407
1408
|
/* Actions.APPEND */
|
|
1408
1409
|
] = () => {
|
|
1409
|
-
|
|
1410
|
+
m === void 0 ? m = u : m += u;
|
|
1410
1411
|
}, N[
|
|
1411
1412
|
1
|
|
1412
1413
|
/* Actions.PUSH */
|
|
1413
1414
|
] = () => {
|
|
1414
|
-
|
|
1415
|
+
m !== void 0 && (t.push(m), m = void 0);
|
|
1415
1416
|
}, N[
|
|
1416
1417
|
2
|
|
1417
1418
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
@@ -1430,7 +1431,7 @@ function Bs(e) {
|
|
|
1430
1431
|
/* Actions.APPEND */
|
|
1431
1432
|
]();
|
|
1432
1433
|
else {
|
|
1433
|
-
if (l = 0,
|
|
1434
|
+
if (l = 0, m === void 0 || (m = Xs(m), m === !1))
|
|
1434
1435
|
return !1;
|
|
1435
1436
|
N[
|
|
1436
1437
|
1
|
|
@@ -1439,43 +1440,43 @@ function Bs(e) {
|
|
|
1439
1440
|
}
|
|
1440
1441
|
};
|
|
1441
1442
|
function F() {
|
|
1442
|
-
const
|
|
1443
|
-
if (r === 5 &&
|
|
1444
|
-
return n++, u = "\\" +
|
|
1443
|
+
const w = e[n + 1];
|
|
1444
|
+
if (r === 5 && w === "'" || r === 6 && w === '"')
|
|
1445
|
+
return n++, u = "\\" + w, N[
|
|
1445
1446
|
0
|
|
1446
1447
|
/* Actions.APPEND */
|
|
1447
1448
|
](), !0;
|
|
1448
1449
|
}
|
|
1449
1450
|
for (; r !== null; )
|
|
1450
1451
|
if (n++, a = e[n], !(a === "\\" && F())) {
|
|
1451
|
-
if (i =
|
|
1452
|
+
if (i = Ys(a), T = Ze[r], g = T[i] || T.l || 8, g === 8 || (r = g[0], g[1] !== void 0 && (E = N[g[1]], E && (u = a, E() === !1))))
|
|
1452
1453
|
return;
|
|
1453
1454
|
if (r === 7)
|
|
1454
1455
|
return t;
|
|
1455
1456
|
}
|
|
1456
1457
|
}
|
|
1457
|
-
const
|
|
1458
|
-
function
|
|
1458
|
+
const vn = /* @__PURE__ */ new Map();
|
|
1459
|
+
function Hs(e, t) {
|
|
1459
1460
|
return te(e) ? e[t] : null;
|
|
1460
1461
|
}
|
|
1461
|
-
function
|
|
1462
|
+
function $s(e, t) {
|
|
1462
1463
|
if (!te(e))
|
|
1463
1464
|
return null;
|
|
1464
|
-
let n =
|
|
1465
|
-
if (n || (n = Bs(t), n &&
|
|
1465
|
+
let n = vn.get(t);
|
|
1466
|
+
if (n || (n = Bs(t), n && vn.set(t, n)), !n)
|
|
1466
1467
|
return null;
|
|
1467
1468
|
const r = n.length;
|
|
1468
1469
|
let l = e, a = 0;
|
|
1469
1470
|
for (; a < r; ) {
|
|
1470
|
-
const
|
|
1471
|
-
if (
|
|
1471
|
+
const m = l[n[a]];
|
|
1472
|
+
if (m === void 0 || de(l))
|
|
1472
1473
|
return null;
|
|
1473
|
-
l =
|
|
1474
|
+
l = m, a++;
|
|
1474
1475
|
}
|
|
1475
1476
|
return l;
|
|
1476
1477
|
}
|
|
1477
|
-
const
|
|
1478
|
-
function
|
|
1478
|
+
const Js = "10.0.5", Ot = -1, Nt = "en-US", pn = "", hn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1479
|
+
function Ks() {
|
|
1479
1480
|
return {
|
|
1480
1481
|
upper: (e, t) => t === "text" && Z(e) ? e.toUpperCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1481
1482
|
lower: (e, t) => t === "text" && Z(e) ? e.toLowerCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
@@ -1483,58 +1484,58 @@ function Js() {
|
|
|
1483
1484
|
};
|
|
1484
1485
|
}
|
|
1485
1486
|
let $n;
|
|
1486
|
-
function
|
|
1487
|
+
function zs(e) {
|
|
1487
1488
|
$n = e;
|
|
1488
1489
|
}
|
|
1489
1490
|
let Jn;
|
|
1490
|
-
function
|
|
1491
|
+
function Qs(e) {
|
|
1491
1492
|
Jn = e;
|
|
1492
1493
|
}
|
|
1493
1494
|
let Kn;
|
|
1494
|
-
function
|
|
1495
|
+
function qs(e) {
|
|
1495
1496
|
Kn = e;
|
|
1496
1497
|
}
|
|
1497
1498
|
let zn = null;
|
|
1498
|
-
const
|
|
1499
|
+
const eo = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1499
1500
|
zn = e;
|
|
1500
|
-
},
|
|
1501
|
+
}, to = /* @__NO_SIDE_EFFECTS__ */ () => zn;
|
|
1501
1502
|
let Qn = null;
|
|
1502
1503
|
const bn = (e) => {
|
|
1503
1504
|
Qn = e;
|
|
1504
|
-
},
|
|
1505
|
+
}, no = () => Qn;
|
|
1505
1506
|
let gn = 0;
|
|
1506
|
-
function
|
|
1507
|
-
const t =
|
|
1507
|
+
function ro(e = {}) {
|
|
1508
|
+
const t = de(e.onWarn) ? e.onWarn : Gr, n = Z(e.version) ? e.version : Js, r = Z(e.locale) || de(e.locale) ? e.locale : Nt, l = de(r) ? Nt : r, a = be(e.fallbackLocale) || ee(e.fallbackLocale) || Z(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, m = ee(e.messages) ? e.messages : Rt(l), u = ee(e.datetimeFormats) ? e.datetimeFormats : Rt(l), i = ee(e.numberFormats) ? e.numberFormats : Rt(l), g = ye(oe(), e.modifiers, Ks()), E = e.pluralRules || oe(), T = de(e.missing) ? e.missing : null, N = pe(e.missingWarn) || It(e.missingWarn) ? e.missingWarn : !0, F = pe(e.fallbackWarn) || It(e.fallbackWarn) ? e.fallbackWarn : !0, w = !!e.fallbackFormat, L = !!e.unresolving, D = de(e.postTranslation) ? e.postTranslation : null, f = ee(e.processor) ? e.processor : null, h = pe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, c = de(e.messageCompiler) ? e.messageCompiler : $n, b = de(e.messageResolver) ? e.messageResolver : Jn || Hs, y = de(e.localeFallbacker) ? e.localeFallbacker : Kn || Us, v = te(e.fallbackContext) ? e.fallbackContext : void 0, R = e, k = te(R.__datetimeFormatters) ? R.__datetimeFormatters : /* @__PURE__ */ new Map(), B = te(R.__numberFormatters) ? R.__numberFormatters : /* @__PURE__ */ new Map(), x = te(R.__meta) ? R.__meta : {};
|
|
1508
1509
|
gn++;
|
|
1509
|
-
const
|
|
1510
|
+
const d = {
|
|
1510
1511
|
version: n,
|
|
1511
1512
|
cid: gn,
|
|
1512
1513
|
locale: r,
|
|
1513
1514
|
fallbackLocale: a,
|
|
1514
|
-
messages:
|
|
1515
|
+
messages: m,
|
|
1515
1516
|
modifiers: g,
|
|
1516
1517
|
pluralRules: E,
|
|
1517
|
-
missing:
|
|
1518
|
+
missing: T,
|
|
1518
1519
|
missingWarn: N,
|
|
1519
1520
|
fallbackWarn: F,
|
|
1520
|
-
fallbackFormat:
|
|
1521
|
+
fallbackFormat: w,
|
|
1521
1522
|
unresolving: L,
|
|
1522
|
-
postTranslation:
|
|
1523
|
+
postTranslation: D,
|
|
1523
1524
|
processor: f,
|
|
1524
1525
|
warnHtmlMessage: h,
|
|
1525
1526
|
escapeParameter: S,
|
|
1526
1527
|
messageCompiler: c,
|
|
1527
1528
|
messageResolver: b,
|
|
1528
|
-
localeFallbacker:
|
|
1529
|
-
fallbackContext:
|
|
1529
|
+
localeFallbacker: y,
|
|
1530
|
+
fallbackContext: v,
|
|
1530
1531
|
onWarn: t,
|
|
1531
|
-
__meta:
|
|
1532
|
+
__meta: x
|
|
1532
1533
|
};
|
|
1533
|
-
return
|
|
1534
|
+
return d.datetimeFormats = u, d.numberFormats = i, d.__datetimeFormatters = k, d.__numberFormatters = B, __INTLIFY_PROD_DEVTOOLS__ && Ds(d, n, x), d;
|
|
1534
1535
|
}
|
|
1535
|
-
const
|
|
1536
|
+
const Rt = (e) => ({ [e]: oe() });
|
|
1536
1537
|
function Qt(e, t, n, r, l) {
|
|
1537
|
-
const { missing: a, onWarn:
|
|
1538
|
+
const { missing: a, onWarn: m } = e;
|
|
1538
1539
|
if (a !== null) {
|
|
1539
1540
|
const u = a(e, n, t, l);
|
|
1540
1541
|
return Z(u) ? u : t;
|
|
@@ -1545,39 +1546,39 @@ function lt(e, t, n) {
|
|
|
1545
1546
|
const r = e;
|
|
1546
1547
|
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1547
1548
|
}
|
|
1548
|
-
function
|
|
1549
|
+
function so(e, t) {
|
|
1549
1550
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1550
1551
|
}
|
|
1551
|
-
function
|
|
1552
|
+
function oo(e, t) {
|
|
1552
1553
|
const n = t.indexOf(e);
|
|
1553
1554
|
if (n === -1)
|
|
1554
1555
|
return !1;
|
|
1555
1556
|
for (let r = n + 1; r < t.length; r++)
|
|
1556
|
-
if (
|
|
1557
|
+
if (so(e, t[r]))
|
|
1557
1558
|
return !0;
|
|
1558
1559
|
return !1;
|
|
1559
1560
|
}
|
|
1560
|
-
function
|
|
1561
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker:
|
|
1562
|
-
|
|
1563
|
-
const F = !!E.part,
|
|
1561
|
+
function yn(e, ...t) {
|
|
1562
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: m } = e, { __datetimeFormatters: u } = e, [i, g, E, T] = jt(...t), N = pe(E.missingWarn) ? E.missingWarn : e.missingWarn;
|
|
1563
|
+
pe(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn;
|
|
1564
|
+
const F = !!E.part, w = zt(e, E), L = m(
|
|
1564
1565
|
e,
|
|
1565
1566
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1566
1567
|
l,
|
|
1567
|
-
|
|
1568
|
+
w
|
|
1568
1569
|
);
|
|
1569
1570
|
if (!Z(i) || i === "")
|
|
1570
|
-
return new Intl.DateTimeFormat(
|
|
1571
|
-
let
|
|
1571
|
+
return new Intl.DateTimeFormat(w, T).format(g);
|
|
1572
|
+
let D = {}, f, h = null;
|
|
1572
1573
|
const S = "datetime format";
|
|
1573
|
-
for (let
|
|
1574
|
+
for (let y = 0; y < L.length && (f = L[y], D = n[f] || {}, h = D[i], !ee(h)); y++)
|
|
1574
1575
|
Qt(e, i, f, N, S);
|
|
1575
1576
|
if (!ee(h) || !Z(f))
|
|
1576
|
-
return r ?
|
|
1577
|
+
return r ? Ot : i;
|
|
1577
1578
|
let c = `${f}__${i}`;
|
|
1578
|
-
Ct(
|
|
1579
|
+
Ct(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
1579
1580
|
let b = u.get(c);
|
|
1580
|
-
return b || (b = new Intl.DateTimeFormat(f,
|
|
1581
|
+
return b || (b = new Intl.DateTimeFormat(f, ye({}, h, T)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1581
1582
|
}
|
|
1582
1583
|
const qn = [
|
|
1583
1584
|
"localeMatcher",
|
|
@@ -1603,29 +1604,29 @@ const qn = [
|
|
|
1603
1604
|
];
|
|
1604
1605
|
function jt(...e) {
|
|
1605
1606
|
const [t, n, r, l] = e, a = oe();
|
|
1606
|
-
let
|
|
1607
|
+
let m = oe(), u;
|
|
1607
1608
|
if (Z(t)) {
|
|
1608
1609
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1609
1610
|
if (!i)
|
|
1610
|
-
throw
|
|
1611
|
+
throw Ue(je.INVALID_ISO_DATE_ARGUMENT);
|
|
1611
1612
|
const g = i[3] ? i[3].trim().startsWith("T") ? `${i[1].trim()}${i[3].trim()}` : `${i[1].trim()}T${i[3].trim()}` : i[1].trim();
|
|
1612
1613
|
u = new Date(g);
|
|
1613
1614
|
try {
|
|
1614
1615
|
u.toISOString();
|
|
1615
1616
|
} catch {
|
|
1616
|
-
throw
|
|
1617
|
+
throw Ue(je.INVALID_ISO_DATE_ARGUMENT);
|
|
1617
1618
|
}
|
|
1618
|
-
} else if (
|
|
1619
|
+
} else if (jr(t)) {
|
|
1619
1620
|
if (isNaN(t.getTime()))
|
|
1620
|
-
throw
|
|
1621
|
+
throw Ue(je.INVALID_DATE_ARGUMENT);
|
|
1621
1622
|
u = t;
|
|
1622
1623
|
} else if (ge(t))
|
|
1623
1624
|
u = t;
|
|
1624
1625
|
else
|
|
1625
|
-
throw
|
|
1626
|
+
throw Ue(je.INVALID_ARGUMENT);
|
|
1626
1627
|
return Z(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1627
|
-
qn.includes(i) ?
|
|
1628
|
-
}), Z(r) ? a.locale = r : ee(r) && (
|
|
1628
|
+
qn.includes(i) ? m[i] = n[i] : a[i] = n[i];
|
|
1629
|
+
}), Z(r) ? a.locale = r : ee(r) && (m = r), ee(l) && (m = l), [a.key || "", u, a, m];
|
|
1629
1630
|
}
|
|
1630
1631
|
function En(e, t, n) {
|
|
1631
1632
|
const r = e;
|
|
@@ -1634,27 +1635,27 @@ function En(e, t, n) {
|
|
|
1634
1635
|
r.__datetimeFormatters.has(a) && r.__datetimeFormatters.delete(a);
|
|
1635
1636
|
}
|
|
1636
1637
|
}
|
|
1637
|
-
function
|
|
1638
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker:
|
|
1639
|
-
|
|
1640
|
-
const F = !!E.part,
|
|
1638
|
+
function In(e, ...t) {
|
|
1639
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: m } = e, { __numberFormatters: u } = e, [i, g, E, T] = Ut(...t), N = pe(E.missingWarn) ? E.missingWarn : e.missingWarn;
|
|
1640
|
+
pe(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn;
|
|
1641
|
+
const F = !!E.part, w = zt(e, E), L = m(
|
|
1641
1642
|
e,
|
|
1642
1643
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1643
1644
|
l,
|
|
1644
|
-
|
|
1645
|
+
w
|
|
1645
1646
|
);
|
|
1646
1647
|
if (!Z(i) || i === "")
|
|
1647
|
-
return new Intl.NumberFormat(
|
|
1648
|
-
let
|
|
1648
|
+
return new Intl.NumberFormat(w, T).format(g);
|
|
1649
|
+
let D = {}, f, h = null;
|
|
1649
1650
|
const S = "number format";
|
|
1650
|
-
for (let
|
|
1651
|
+
for (let y = 0; y < L.length && (f = L[y], D = n[f] || {}, h = D[i], !ee(h)); y++)
|
|
1651
1652
|
Qt(e, i, f, N, S);
|
|
1652
1653
|
if (!ee(h) || !Z(f))
|
|
1653
|
-
return r ?
|
|
1654
|
+
return r ? Ot : i;
|
|
1654
1655
|
let c = `${f}__${i}`;
|
|
1655
|
-
Ct(
|
|
1656
|
+
Ct(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
1656
1657
|
let b = u.get(c);
|
|
1657
|
-
return b || (b = new Intl.NumberFormat(f,
|
|
1658
|
+
return b || (b = new Intl.NumberFormat(f, ye({}, h, T)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1658
1659
|
}
|
|
1659
1660
|
const er = [
|
|
1660
1661
|
"localeMatcher",
|
|
@@ -1678,15 +1679,15 @@ const er = [
|
|
|
1678
1679
|
"roundingIncrement",
|
|
1679
1680
|
"trailingZeroDisplay"
|
|
1680
1681
|
];
|
|
1681
|
-
function
|
|
1682
|
+
function Ut(...e) {
|
|
1682
1683
|
const [t, n, r, l] = e, a = oe();
|
|
1683
|
-
let
|
|
1684
|
+
let m = oe();
|
|
1684
1685
|
if (!ge(t))
|
|
1685
|
-
throw
|
|
1686
|
+
throw Ue(je.INVALID_ARGUMENT);
|
|
1686
1687
|
const u = t;
|
|
1687
1688
|
return Z(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1688
|
-
er.includes(i) ?
|
|
1689
|
-
}), Z(r) ? a.locale = r : ee(r) && (
|
|
1689
|
+
er.includes(i) ? m[i] = n[i] : a[i] = n[i];
|
|
1690
|
+
}), Z(r) ? a.locale = r : ee(r) && (m = r), ee(l) && (m = l), [a.key || "", u, a, m];
|
|
1690
1691
|
}
|
|
1691
1692
|
function Nn(e, t, n) {
|
|
1692
1693
|
const r = e;
|
|
@@ -1695,143 +1696,143 @@ function Nn(e, t, n) {
|
|
|
1695
1696
|
r.__numberFormatters.has(a) && r.__numberFormatters.delete(a);
|
|
1696
1697
|
}
|
|
1697
1698
|
}
|
|
1698
|
-
const
|
|
1699
|
+
const ao = (e) => e, lo = (e) => "", io = "text", co = (e) => e.length === 0 ? "" : $t(e), uo = Wr;
|
|
1699
1700
|
function Cn(e, t) {
|
|
1700
1701
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1701
1702
|
}
|
|
1702
|
-
function
|
|
1703
|
+
function mo(e) {
|
|
1703
1704
|
const t = ge(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1704
1705
|
return e.named && (ge(e.named.count) || ge(e.named.n)) ? ge(e.named.count) ? e.named.count : ge(e.named.n) ? e.named.n : t : t;
|
|
1705
1706
|
}
|
|
1706
|
-
function
|
|
1707
|
+
function fo(e, t) {
|
|
1707
1708
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1708
1709
|
}
|
|
1709
|
-
function
|
|
1710
|
-
const t = e.locale, n =
|
|
1711
|
-
ge(e.pluralIndex) &&
|
|
1710
|
+
function _o(e = {}) {
|
|
1711
|
+
const t = e.locale, n = mo(e), r = te(e.pluralRules) && Z(t) && de(e.pluralRules[t]) ? e.pluralRules[t] : Cn, l = te(e.pluralRules) && Z(t) && de(e.pluralRules[t]) ? Cn : void 0, a = (f) => f[r(n, f.length, l)], m = e.list || [], u = (f) => m[f], i = e.named || oe();
|
|
1712
|
+
ge(e.pluralIndex) && fo(n, i);
|
|
1712
1713
|
const g = (f) => i[f];
|
|
1713
1714
|
function E(f, h) {
|
|
1714
|
-
const S =
|
|
1715
|
-
return S || (e.parent ? e.parent.message(f) :
|
|
1715
|
+
const S = de(e.messages) ? e.messages(f, !!h) : te(e.messages) ? e.messages[f] : !1;
|
|
1716
|
+
return S || (e.parent ? e.parent.message(f) : lo);
|
|
1716
1717
|
}
|
|
1717
|
-
const
|
|
1718
|
+
const T = (f) => e.modifiers ? e.modifiers[f] : ao, N = ee(e.processor) && de(e.processor.normalize) ? e.processor.normalize : co, F = ee(e.processor) && de(e.processor.interpolate) ? e.processor.interpolate : uo, w = ee(e.processor) && Z(e.processor.type) ? e.processor.type : io, D = {
|
|
1718
1719
|
list: u,
|
|
1719
1720
|
named: g,
|
|
1720
1721
|
plural: a,
|
|
1721
1722
|
linked: (f, ...h) => {
|
|
1722
1723
|
const [S, c] = h;
|
|
1723
|
-
let b = "text",
|
|
1724
|
-
h.length === 1 ? te(S) ? (
|
|
1725
|
-
const
|
|
1724
|
+
let b = "text", y = "";
|
|
1725
|
+
h.length === 1 ? te(S) ? (y = S.modifier || y, b = S.type || b) : Z(S) && (y = S || y) : h.length === 2 && (Z(S) && (y = S || y), Z(c) && (b = c || b));
|
|
1726
|
+
const v = E(f, !0)(D), R = (
|
|
1726
1727
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1727
|
-
b === "vnode" && be(
|
|
1728
|
+
b === "vnode" && be(v) && y ? v[0] : v
|
|
1728
1729
|
);
|
|
1729
|
-
return
|
|
1730
|
+
return y ? T(y)(R, b) : R;
|
|
1730
1731
|
},
|
|
1731
1732
|
message: E,
|
|
1732
|
-
type:
|
|
1733
|
+
type: w,
|
|
1733
1734
|
interpolate: F,
|
|
1734
1735
|
normalize: N,
|
|
1735
|
-
values:
|
|
1736
|
+
values: ye(oe(), m, i)
|
|
1736
1737
|
};
|
|
1737
|
-
return
|
|
1738
|
+
return D;
|
|
1738
1739
|
}
|
|
1739
|
-
const
|
|
1740
|
-
function
|
|
1741
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale:
|
|
1742
|
-
N &&
|
|
1740
|
+
const Tn = () => "", Te = (e) => de(e);
|
|
1741
|
+
function On(e, ...t) {
|
|
1742
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale: m, messages: u } = e, [i, g] = Vt(...t), E = pe(g.missingWarn) ? g.missingWarn : e.missingWarn, T = pe(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, N = pe(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, F = !!g.resolvedMessage, w = Z(g.default) || pe(g.default) ? pe(g.default) ? a ? i : () => i : g.default : n ? a ? i : () => i : null, L = n || w != null && (Z(w) || de(w)), D = zt(e, g);
|
|
1743
|
+
N && vo(g);
|
|
1743
1744
|
let [f, h, S] = F ? [
|
|
1744
1745
|
i,
|
|
1745
|
-
|
|
1746
|
-
u[
|
|
1747
|
-
] : tr(e, i,
|
|
1748
|
-
if (!F && !(Z(c) || ot(c) ||
|
|
1749
|
-
return l ?
|
|
1750
|
-
let
|
|
1751
|
-
const
|
|
1752
|
-
|
|
1753
|
-
},
|
|
1754
|
-
if (
|
|
1746
|
+
D,
|
|
1747
|
+
u[D] || oe()
|
|
1748
|
+
] : tr(e, i, D, m, T, E), c = f, b = i;
|
|
1749
|
+
if (!F && !(Z(c) || ot(c) || Te(c)) && L && (c = w, b = c), !F && (!(Z(c) || ot(c) || Te(c)) || !Z(h)))
|
|
1750
|
+
return l ? Ot : i;
|
|
1751
|
+
let y = !1;
|
|
1752
|
+
const v = () => {
|
|
1753
|
+
y = !0;
|
|
1754
|
+
}, R = Te(c) ? c : nr(e, i, h, c, b, v);
|
|
1755
|
+
if (y)
|
|
1755
1756
|
return c;
|
|
1756
|
-
const
|
|
1757
|
+
const k = bo(e, h, S, g), B = _o(k), x = po(e, R, B), d = r ? r(x, i) : x;
|
|
1757
1758
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1758
1759
|
const C = {
|
|
1759
1760
|
timestamp: Date.now(),
|
|
1760
|
-
key: Z(i) ? i :
|
|
1761
|
-
locale: h || (
|
|
1762
|
-
format: Z(c) ? c :
|
|
1763
|
-
message:
|
|
1761
|
+
key: Z(i) ? i : Te(c) ? c.key : "",
|
|
1762
|
+
locale: h || (Te(c) ? c.locale : ""),
|
|
1763
|
+
format: Z(c) ? c : Te(c) ? c.source : "",
|
|
1764
|
+
message: d
|
|
1764
1765
|
};
|
|
1765
|
-
C.meta =
|
|
1766
|
+
C.meta = ye({}, e.__meta, /* @__PURE__ */ to() || {}), Fs(C);
|
|
1766
1767
|
}
|
|
1767
|
-
return
|
|
1768
|
+
return d;
|
|
1768
1769
|
}
|
|
1769
|
-
function
|
|
1770
|
+
function vo(e) {
|
|
1770
1771
|
be(e.list) ? e.list = e.list.map((t) => Z(t) ? ln(t) : t) : te(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1771
1772
|
Z(e.named[t]) && (e.named[t] = ln(e.named[t]));
|
|
1772
1773
|
});
|
|
1773
1774
|
}
|
|
1774
1775
|
function tr(e, t, n, r, l, a) {
|
|
1775
|
-
const { messages:
|
|
1776
|
-
let
|
|
1777
|
-
const
|
|
1778
|
-
for (let L = 0; L < E.length && (N = E[L],
|
|
1779
|
-
if (!
|
|
1780
|
-
const
|
|
1776
|
+
const { messages: m, onWarn: u, messageResolver: i, localeFallbacker: g } = e, E = g(e, r, n);
|
|
1777
|
+
let T = oe(), N, F = null;
|
|
1778
|
+
const w = "translate";
|
|
1779
|
+
for (let L = 0; L < E.length && (N = E[L], T = m[N] || oe(), (F = i(T, t)) === null && (F = T[t]), !(Z(F) || ot(F) || Te(F))); L++)
|
|
1780
|
+
if (!oo(N, E)) {
|
|
1781
|
+
const D = Qt(
|
|
1781
1782
|
e,
|
|
1782
1783
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1783
1784
|
t,
|
|
1784
1785
|
N,
|
|
1785
1786
|
a,
|
|
1786
|
-
|
|
1787
|
+
w
|
|
1787
1788
|
);
|
|
1788
|
-
|
|
1789
|
+
D !== t && (F = D);
|
|
1789
1790
|
}
|
|
1790
|
-
return [F, N,
|
|
1791
|
+
return [F, N, T];
|
|
1791
1792
|
}
|
|
1792
1793
|
function nr(e, t, n, r, l, a) {
|
|
1793
|
-
const { messageCompiler:
|
|
1794
|
-
if (
|
|
1794
|
+
const { messageCompiler: m, warnHtmlMessage: u } = e;
|
|
1795
|
+
if (Te(r)) {
|
|
1795
1796
|
const g = r;
|
|
1796
1797
|
return g.locale = g.locale || n, g.key = g.key || t, g;
|
|
1797
1798
|
}
|
|
1798
|
-
if (
|
|
1799
|
+
if (m == null) {
|
|
1799
1800
|
const g = () => r;
|
|
1800
1801
|
return g.locale = n, g.key = t, g;
|
|
1801
1802
|
}
|
|
1802
|
-
const i =
|
|
1803
|
+
const i = m(r, ho(e, n, l, r, u, a));
|
|
1803
1804
|
return i.locale = n, i.key = t, i.source = r, i;
|
|
1804
1805
|
}
|
|
1805
1806
|
function po(e, t, n) {
|
|
1806
1807
|
return t(n);
|
|
1807
1808
|
}
|
|
1808
|
-
function
|
|
1809
|
+
function Vt(...e) {
|
|
1809
1810
|
const [t, n, r] = e, l = oe();
|
|
1810
|
-
if (!Z(t) && !ge(t) && !
|
|
1811
|
-
throw
|
|
1812
|
-
const a = ge(t) ? String(t) : (
|
|
1813
|
-
return ge(n) ? l.plural = n : Z(n) ? l.default = n : ee(n) && !Ct(n) ? l.named = n : be(n) && (l.list = n), ge(r) ? l.plural = r : Z(r) ? l.default = r : ee(r) &&
|
|
1811
|
+
if (!Z(t) && !ge(t) && !Te(t) && !ot(t))
|
|
1812
|
+
throw Ue(je.INVALID_ARGUMENT);
|
|
1813
|
+
const a = ge(t) ? String(t) : (Te(t), t);
|
|
1814
|
+
return ge(n) ? l.plural = n : Z(n) ? l.default = n : ee(n) && !Ct(n) ? l.named = n : be(n) && (l.list = n), ge(r) ? l.plural = r : Z(r) ? l.default = r : ee(r) && ye(l, r), [a, l];
|
|
1814
1815
|
}
|
|
1815
|
-
function
|
|
1816
|
+
function ho(e, t, n, r, l, a) {
|
|
1816
1817
|
return {
|
|
1817
1818
|
locale: t,
|
|
1818
1819
|
key: n,
|
|
1819
1820
|
warnHtmlMessage: l,
|
|
1820
|
-
onError: (
|
|
1821
|
-
throw a && a(
|
|
1821
|
+
onError: (m) => {
|
|
1822
|
+
throw a && a(m), m;
|
|
1822
1823
|
},
|
|
1823
|
-
onCacheKey: (
|
|
1824
|
+
onCacheKey: (m) => Fr(t, n, m)
|
|
1824
1825
|
};
|
|
1825
1826
|
}
|
|
1826
|
-
function
|
|
1827
|
-
const { modifiers: l, pluralRules: a, messageResolver:
|
|
1827
|
+
function bo(e, t, n, r) {
|
|
1828
|
+
const { modifiers: l, pluralRules: a, messageResolver: m, fallbackLocale: u, fallbackWarn: i, missingWarn: g, fallbackContext: E } = e, N = {
|
|
1828
1829
|
locale: t,
|
|
1829
1830
|
modifiers: l,
|
|
1830
1831
|
pluralRules: a,
|
|
1831
|
-
messages: (F,
|
|
1832
|
-
let L =
|
|
1833
|
-
if (L == null && (E ||
|
|
1834
|
-
const [, ,
|
|
1832
|
+
messages: (F, w) => {
|
|
1833
|
+
let L = m(n, F);
|
|
1834
|
+
if (L == null && (E || w)) {
|
|
1835
|
+
const [, , D] = tr(
|
|
1835
1836
|
E || e,
|
|
1836
1837
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1837
1838
|
F,
|
|
@@ -1840,28 +1841,28 @@ function ho(e, t, n, r) {
|
|
|
1840
1841
|
i,
|
|
1841
1842
|
g
|
|
1842
1843
|
);
|
|
1843
|
-
L =
|
|
1844
|
+
L = m(D, F);
|
|
1844
1845
|
}
|
|
1845
1846
|
if (Z(L) || ot(L)) {
|
|
1846
|
-
let
|
|
1847
|
+
let D = !1;
|
|
1847
1848
|
const h = nr(e, F, t, L, F, () => {
|
|
1848
|
-
|
|
1849
|
+
D = !0;
|
|
1849
1850
|
});
|
|
1850
|
-
return
|
|
1851
|
-
} else return
|
|
1851
|
+
return D ? Tn : h;
|
|
1852
|
+
} else return Te(L) ? L : Tn;
|
|
1852
1853
|
}
|
|
1853
1854
|
};
|
|
1854
1855
|
return e.processor && (N.processor = e.processor), r.list && (N.list = r.list), r.named && (N.named = r.named), ge(r.plural) && (N.pluralIndex = r.plural), N;
|
|
1855
1856
|
}
|
|
1856
|
-
|
|
1857
|
-
var bo = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_32d5c742-ab75-43dc-8903-fe92beb68df3", 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_32d5c742-ab75-43dc-8903-fe92beb68df3", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.7.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1803", ACTIONS_ORCHESTRATION_ID: "1f7d71f7-2a30-45f3-9bd6-0f6237918fce.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: "20260823.283.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_32d5c742-ab75-43dc-8903-fe92beb68df3", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:12914", 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: "33753060686", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "9b3076a4a2148b3847d2eb7c240b39fa349183a1", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.7/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/main", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6M31dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3ODg0NTkyMTcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc4ODQzNzAxNywiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjQyZTRkNWJhLWI4MGUtNWJiMi1hYTgyLWMxNmY2ZjFhODIwOCIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiMWZiZGE1YzVkMmFmMTJiM2M5NTNiZGZkNmUxZjA5ODI0ZmY2ODE1OSIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc4ODQzNjcxNywib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCIxMDA2NDA4NzEzOTlcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjFmYmRhNWM1ZDJhZjEyYjNjOTUzYmRmZDZlMWYwOTgyNGZmNjgxNTlcIixcInJlZlwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJ0cnVlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJyZXBvc2l0b3J5XCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2VcIixcInJlcG9zaXRvcnlfaWRcIjpcIjExMjQ2NzIyMzVcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJ1bl9pZFwiOlwiMzM3NTMwNjA2ODZcIixcInJ1bl9udW1iZXJcIjpcIjE2NVwiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcIjliMzA3NmE0YTIxNDhiMzg0N2QyZWI3YzI0MGIzOWZhMzQ5MTgzYTFcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIGhybS1wb3J0YWxcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtaHJtLXBvcnRhbC10cnVzdGVkLnltbEByZWZzL2hlYWRzL21haW5cIixcIndvcmtmbG93X3NoYVwiOlwiOWIzMDc2YTRhMjE0OGIzODQ3ZDJlYjdjMjQwYjM5ZmEzNDkxODNhMVwifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvaHJtLXNlcnZpY2U6cmVmOnJlZnMvaGVhZHMvbWFpbiIsIm9yY2hfaWQiOiIxZjdkNzFmNy0yYTMwLTQ1ZjMtOWJkNi0wZjYyMzc5MThmY2UucHVibGlzaC5wdWJsaXNoLl9fZGVmYXVsdCIsIm93bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwicGxhbl9pZCI6IjFmN2Q3MWY3LTJhMzAtNDVmMy05YmQ2LTBmNjIzNzkxOGZjZSIsInJlcG9zaXRvcnlfaWQiOiIxMTI0NjcyMjM1IiwicmVwb3NpdG9yeV9vd25lcl9pZCI6IjU0ODMxNTE1IiwicmVwb3NpdG9yeV92aXNpYmlsaXR5IjoicHJpdmF0ZSIsInJ1bl9pZCI6IjMzNzUzMDYwNjg2IiwicnVuX251bWJlciI6IjE2NSIsInJ1bl90eXBlIjoiZnVsbCIsInJ1bm5lcl9pZCI6IjEwMDAxMzQzMjYiLCJydW5uZXJfdHlwZSI6Imhvc3RlZCIsInNjcCI6IkFjdGlvbnMuUmVzdWx0czoxZjdkNzFmNy0yYTMwLTQ1ZjMtOWJkNi0wZjYyMzc5MThmY2U6NDJlNGQ1YmEtYjgwZS01YmIyLWFhODItYzE2ZjZmMWE4MjA4IEFjdGlvbnMuUnVubmVyOjFmN2Q3MWY3LTJhMzAtNDVmMy05YmQ2LTBmNjIzNzkxOGZjZTo0MmU0ZDViYS1iODBlLTViYjItYWE4Mi1jMTZmNmYxYTgyMDggQWN0aW9ucy5VcGxvYWRBcnRpZmFjdHM6MWY3ZDcxZjctMmEzMC00NWYzLTliZDYtMGY2MjM3OTE4ZmNlOjQyZTRkNWJhLWI4MGUtNWJiMi1hYTgyLWMxNmY2ZjFhODIwOCBnZW5lcmF0ZV9pZF90b2tlbjoxZjdkNzFmNy0yYTMwLTQ1ZjMtOWJkNi0wZjYyMzc5MThmY2U6NDJlNGQ1YmEtYjgwZS01YmIyLWFhODItYzE2ZjZmMWE4MjA4IEFjdGlvbnMuR2VuZXJpY1JlYWQ6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwic2hhIjoiOWIzMDc2YTRhMjE0OGIzODQ3ZDJlYjdjMjQwYjM5ZmEzNDkxODNhMSIsInRydXN0X3RpZXIiOiIxIn0.C7LbNZqT48WgPK4eTVut37s9SQHpXekFuVJhNhJOUTx-jqsEyYyrGNNs4QCuKjSDxBWmFzDYxi55Q5YVjAAa3l0jRXWfKngm-7omxz18vXBB0z2N28fSP7Vpgck-j0cZSW63q_vFRgRIaZcZwyMrztWuCvTyicZMKqDIFqj8q9cy8X-P6gsaIonp13-KaNv-dGdUj31F84NFPNa84ZWP2n8nuTLuHeTUaKKGDGf90wIw1rv8DP5ASgPm2QbbWoDhtshOSxhoyEFV6JvGz0IKJapJvsXa5lKuwDr3CNNfFbkxeTh9EpxWfxlfSJL2_GxOuFElckd4nfjEjNSeuqH9DQ", 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_6522bcbb-57cd-4bb8-a37c-56b98d6d1d22", INVOCATION_ID: "01fef4f25c4a44dd882db90addd53acb", 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: "165", 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 1000134326", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.2.3", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "true", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", GITHUB_SHA: "9b3076a4a2148b3847d2eb7c240b39fa349183a1", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_32d5c742-ab75-43dc-8903-fe92beb68df3", 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/127//idtoken/1f7d71f7-2a30-45f3-9bd6-0f6237918fce/42e4d5ba-b80e-5bb2-aa82-c16f6f1a8208?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_32d5c742-ab75-43dc-8903-fe92beb68df3", 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_32d5c742-ab75-43dc-8903-fe92beb68df3", 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_32d5c742-ab75-43dc-8903-fe92beb68df3", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1858
|
-
const
|
|
1859
|
-
function
|
|
1860
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
1857
|
+
_s();
|
|
1858
|
+
var go = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_63ffe169-ee2f-4882-988c-52ecb5b097c6", DOTNET_NOLOGO: "1", USER: "runner", npm_config_always_auth: "", npm_config_user_agent: "pnpm/10.8.0 npm/? node/v24.5.0 linux x64", CI: "true", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_63ffe169-ee2f-4882-988c-52ecb5b097c6", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.7.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1791", ACTIONS_ORCHESTRATION_ID: "0ae4973a-a757-4161-8e3e-d9261fd99bec.publish.publish.__default", npm_config_engine_strict: "true", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260907.300.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_63ffe169-ee2f-4882-988c-52ecb5b097c6", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:10125", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.14/x64", GITHUB_RUN_ID: "35853392423", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "f1a40b6f9d833e49c2dfddb62e39edb772fef34a", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.8/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/KDI-5147-passcode-uniqueness", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9LREktNTE0Ny1wYXNzY29kZS11bmlxdWVuZXNzXCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsImF1ZCI6InZzbzo2Zjk2ZmE4OS1iN2JmLTQ4NzgtYmFkMy04OTgwMDY1NjZiNmUiLCJiaWxsaW5nX293bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwiZXhwIjoxNzkwMTg0Mjc5LCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3ByaW1hcnlzaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJpYXQiOjE3OTAxNjIwNzksImlzcyI6Imh0dHBzOi8vdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJqb2JfaWQiOiI0MjAwYzQ2Ni1kY2MyLTVhZDAtOGJkMi1lNWIzMmY1YWJkMjEiLCJqb2Jfd29ya2Zsb3dfcmVmIjoiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluIiwiam9iX3dvcmtmbG93X3NoYSI6IjEyODQ0NGZhODJhNDFhZWYwMjA3OGY2Yjc2OTJmZTBmYTc2NTlhNWIiLCJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJuYmYiOjE3OTAxNjE3NzksIm9pZGNfZXh0cmEiOiJ7XCJhY3RvclwiOlwianVuLWxlZS1mZWVkbWVcIixcImFjdG9yX2lkXCI6XCIyMzkyODI4NjJcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiMTA3MTU2MTI0ODYzXCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluXCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCIxMjg0NDRmYTgyYTQxYWVmMDIwNzhmNmI3NjkyZmUwZmE3NjU5YTViXCIsXCJyZWZcIjpcInJlZnMvaGVhZHMvS0RJLTUxNDctcGFzc2NvZGUtdW5pcXVlbmVzc1wiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIzNTg1MzM5MjQyM1wiLFwicnVuX251bWJlclwiOlwiMTY3XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiZjFhNDBiNmY5ZDgzM2U0OWMyZGZkZGI2MmUzOWVkYjc3MmZlZjM0YVwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvS0RJLTUxNDctcGFzc2NvZGUtdW5pcXVlbmVzc1wiLFwid29ya2Zsb3dfc2hhXCI6XCJmMWE0MGI2ZjlkODMzZTQ5YzJkZmRkYjYyZTM5ZWRiNzcyZmVmMzRhXCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9LREktNTE0Ny1wYXNzY29kZS11bmlxdWVuZXNzIiwib3JjaF9pZCI6IjBhZTQ5NzNhLWE3NTctNDE2MS04ZTNlLWQ5MjYxZmQ5OWJlYy5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiMGFlNDk3M2EtYTc1Ny00MTYxLThlM2UtZDkyNjFmZDk5YmVjIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMzU4NTMzOTI0MjMiLCJydW5fbnVtYmVyIjoiMTY3IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDE1ODU3MiIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjBhZTQ5NzNhLWE3NTctNDE2MS04ZTNlLWQ5MjYxZmQ5OWJlYzo0MjAwYzQ2Ni1kY2MyLTVhZDAtOGJkMi1lNWIzMmY1YWJkMjEgQWN0aW9ucy5SdW5uZXI6MGFlNDk3M2EtYTc1Ny00MTYxLThlM2UtZDkyNjFmZDk5YmVjOjQyMDBjNDY2LWRjYzItNWFkMC04YmQyLWU1YjMyZjVhYmQyMSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowYWU0OTczYS1hNzU3LTQxNjEtOGUzZS1kOTI2MWZkOTliZWM6NDIwMGM0NjYtZGNjMi01YWQwLThiZDItZTViMzJmNWFiZDIxIGdlbmVyYXRlX2lkX3Rva2VuOjBhZTQ5NzNhLWE3NTctNDE2MS04ZTNlLWQ5MjYxZmQ5OWJlYzo0MjAwYzQ2Ni1kY2MyLTVhZDAtOGJkMi1lNWIzMmY1YWJkMjEgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiJmMWE0MGI2ZjlkODMzZTQ5YzJkZmRkYjYyZTM5ZWRiNzcyZmVmMzRhIiwidHJ1c3RfdGllciI6IjEifQ.Nfzc_rLVznDJMuxWM1d5pASDssyQf5L9AkpdHvFMmtTq0C2n7-T7LLT6B3IBLQlJ81KyBrM6va1_riuiIoZcMyEqg-VsNOD3mtLPabWYhI04RrjpnzfepM91cc2S2ca8F50rzd9ZC0zk_uAXvpvkOSYUfG0QrEPaRslSITY3oND7xuiWbwrtRYtKNtq5tjVFFYxnK2oFelxwFEQ8b1UT9HzuBXEQYmf9LA5h82vyyeI0jPsNY9edXX2HD6U-hzYAy6Aav9OGbqP_QUqs4ubqqqd4vcJEVTjNKowD2GOP6cuVWY9sIgh5nUCkmj5QhkO22Alh_PJS9FPvp8QNTbDA2g", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/24.5.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_0232549f-2730-4595-8b65-f422ec63b1eb", INVOCATION_ID: "f6c5dcc3f522400f9eb965a7f5c511be", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", npm_package_name: "@feedmepos/mf-hrm-portal", GITHUB_ACTION: "__run_5", GITHUB_RUN_NUMBER: "167", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000158572", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "KDI-5147-passcode-uniqueness", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.2.5-dev", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", GITHUB_SHA: "f1a40b6f9d833e49c2dfddb62e39edb772fef34a", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/KDI-5147-passcode-uniqueness", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_63ffe169-ee2f-4882-988c-52ecb5b097c6", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-2-azure-eastus.actions.githubusercontent.com/73//idtoken/0ae4973a-a757-4161-8e3e-d9261fd99bec/4200c466-dcc2-5ad0-8bd2-e5b32f5abd21?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_63ffe169-ee2f-4882-988c-52ecb5b097c6", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_63ffe169-ee2f-4882-988c-52ecb5b097c6", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.1", CHROME_BIN: "/usr/bin/google-chrome", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_63ffe169-ee2f-4882-988c-52ecb5b097c6", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1859
|
+
const yo = "10.0.5";
|
|
1860
|
+
function Eo() {
|
|
1861
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Be().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Be().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Be().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Be().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1861
1862
|
}
|
|
1862
1863
|
const at = {
|
|
1863
1864
|
// composer module errors
|
|
1864
|
-
UNEXPECTED_RETURN_TYPE:
|
|
1865
|
+
UNEXPECTED_RETURN_TYPE: js,
|
|
1865
1866
|
// 24
|
|
1866
1867
|
// legacy module errors
|
|
1867
1868
|
INVALID_ARGUMENT: 25,
|
|
@@ -1873,47 +1874,47 @@ const at = {
|
|
|
1873
1874
|
UNEXPECTED_ERROR: 32
|
|
1874
1875
|
};
|
|
1875
1876
|
function ut(e, ...t) {
|
|
1876
|
-
return
|
|
1877
|
+
return Tt(e, null, void 0);
|
|
1877
1878
|
}
|
|
1878
|
-
const
|
|
1879
|
-
function
|
|
1879
|
+
const xt = /* @__PURE__ */ $e("__translateVNode"), Wt = /* @__PURE__ */ $e("__datetimeParts"), Gt = /* @__PURE__ */ $e("__numberParts"), Io = $e("__setPluralRules"), rr = /* @__PURE__ */ $e("__injectWithOption"), Zt = /* @__PURE__ */ $e("__dispose");
|
|
1880
|
+
function mt(e) {
|
|
1880
1881
|
if (!te(e))
|
|
1881
1882
|
return e;
|
|
1882
1883
|
for (const t in e)
|
|
1883
|
-
if (
|
|
1884
|
+
if (ke(e, t))
|
|
1884
1885
|
if (!t.includes("."))
|
|
1885
|
-
te(e[t]) &&
|
|
1886
|
+
te(e[t]) && mt(e[t]);
|
|
1886
1887
|
else {
|
|
1887
1888
|
const n = t.split("."), r = n.length - 1;
|
|
1888
1889
|
let l = e, a = !1;
|
|
1889
|
-
for (let
|
|
1890
|
-
if (n[
|
|
1890
|
+
for (let m = 0; m < r; m++) {
|
|
1891
|
+
if (n[m] in l || (l[n[m]] = oe()), !te(l[n[m]])) {
|
|
1891
1892
|
a = !0;
|
|
1892
1893
|
break;
|
|
1893
1894
|
}
|
|
1894
|
-
l = l[n[
|
|
1895
|
+
l = l[n[m]];
|
|
1895
1896
|
}
|
|
1896
|
-
a || (l[n[r]] = e[t], delete e[t]), te(l[n[r]]) &&
|
|
1897
|
+
a || (l[n[r]] = e[t], delete e[t]), te(l[n[r]]) && mt(l[n[r]]);
|
|
1897
1898
|
}
|
|
1898
1899
|
return e;
|
|
1899
1900
|
}
|
|
1900
1901
|
function sr(e, t) {
|
|
1901
|
-
const { messages: n, __i18n: r, messageResolver: l, flatJson: a } = t,
|
|
1902
|
+
const { messages: n, __i18n: r, messageResolver: l, flatJson: a } = t, m = ee(n) ? n : be(r) ? oe() : { [e]: oe() };
|
|
1902
1903
|
if (be(r) && r.forEach((u) => {
|
|
1903
1904
|
if ("locale" in u && "resource" in u) {
|
|
1904
1905
|
const { locale: i, resource: g } = u;
|
|
1905
|
-
i ? (
|
|
1906
|
+
i ? (m[i] = m[i] || oe(), Et(g, m[i])) : Et(g, m);
|
|
1906
1907
|
} else
|
|
1907
|
-
Z(u) && Et(JSON.parse(u),
|
|
1908
|
+
Z(u) && Et(JSON.parse(u), m);
|
|
1908
1909
|
}), l == null && a)
|
|
1909
|
-
for (const u in
|
|
1910
|
-
|
|
1911
|
-
return
|
|
1910
|
+
for (const u in m)
|
|
1911
|
+
ke(m, u) && mt(m[u]);
|
|
1912
|
+
return m;
|
|
1912
1913
|
}
|
|
1913
1914
|
function or(e) {
|
|
1914
1915
|
return e.type;
|
|
1915
1916
|
}
|
|
1916
|
-
function
|
|
1917
|
+
function No(e, t, n) {
|
|
1917
1918
|
let r = te(t.messages) ? t.messages : oe();
|
|
1918
1919
|
"__i18nGlobal" in n && (r = sr(e.locale.value, {
|
|
1919
1920
|
messages: r,
|
|
@@ -1926,14 +1927,14 @@ function yo(e, t, n) {
|
|
|
1926
1927
|
{
|
|
1927
1928
|
if (te(t.datetimeFormats)) {
|
|
1928
1929
|
const a = Object.keys(t.datetimeFormats);
|
|
1929
|
-
a.length && a.forEach((
|
|
1930
|
-
e.mergeDateTimeFormat(
|
|
1930
|
+
a.length && a.forEach((m) => {
|
|
1931
|
+
e.mergeDateTimeFormat(m, t.datetimeFormats[m]);
|
|
1931
1932
|
});
|
|
1932
1933
|
}
|
|
1933
1934
|
if (te(t.numberFormats)) {
|
|
1934
1935
|
const a = Object.keys(t.numberFormats);
|
|
1935
|
-
a.length && a.forEach((
|
|
1936
|
-
e.mergeNumberFormat(
|
|
1936
|
+
a.length && a.forEach((m) => {
|
|
1937
|
+
e.mergeNumberFormat(m, t.numberFormats[m]);
|
|
1937
1938
|
});
|
|
1938
1939
|
}
|
|
1939
1940
|
}
|
|
@@ -1941,38 +1942,38 @@ function yo(e, t, n) {
|
|
|
1941
1942
|
function Sn(e) {
|
|
1942
1943
|
return ue(fr, null, e, 0);
|
|
1943
1944
|
}
|
|
1944
|
-
const
|
|
1945
|
-
let
|
|
1946
|
-
function
|
|
1947
|
-
return (t, n, r, l) => e(n, r,
|
|
1945
|
+
const kn = "__INTLIFY_META__", Ln = () => [], Co = () => !1;
|
|
1946
|
+
let An = 0;
|
|
1947
|
+
function Rn(e) {
|
|
1948
|
+
return (t, n, r, l) => e(n, r, Xt() || void 0, l);
|
|
1948
1949
|
}
|
|
1949
|
-
const
|
|
1950
|
-
const e =
|
|
1950
|
+
const To = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1951
|
+
const e = Xt();
|
|
1951
1952
|
let t = null;
|
|
1952
|
-
return e && (t = or(e)[
|
|
1953
|
+
return e && (t = or(e)[kn]) ? { [kn]: t } : null;
|
|
1953
1954
|
};
|
|
1954
1955
|
function Oo(e = {}) {
|
|
1955
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, l = e.flatJson, a = on ? rt :
|
|
1956
|
-
let
|
|
1956
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, l = e.flatJson, a = on ? rt : mr;
|
|
1957
|
+
let m = pe(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1957
1958
|
const u = a(
|
|
1958
1959
|
// prettier-ignore
|
|
1959
|
-
t &&
|
|
1960
|
+
t && m ? t.locale.value : Z(e.locale) ? e.locale : Nt
|
|
1960
1961
|
), i = a(
|
|
1961
1962
|
// prettier-ignore
|
|
1962
|
-
t &&
|
|
1963
|
-
), g = a(sr(u.value, e)), E = a(ee(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }),
|
|
1964
|
-
let N = t ? t.missingWarn :
|
|
1963
|
+
t && m ? t.fallbackLocale.value : Z(e.fallbackLocale) || be(e.fallbackLocale) || ee(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
1964
|
+
), g = a(sr(u.value, e)), E = a(ee(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), T = a(ee(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
|
|
1965
|
+
let N = t ? t.missingWarn : pe(e.missingWarn) || It(e.missingWarn) ? e.missingWarn : !0, F = t ? t.fallbackWarn : pe(e.fallbackWarn) || It(e.fallbackWarn) ? e.fallbackWarn : !0, w = t ? t.fallbackRoot : pe(e.fallbackRoot) ? e.fallbackRoot : !0, L = !!e.fallbackFormat, D = de(e.missing) ? e.missing : null, f = de(e.missing) ? Rn(e.missing) : null, h = de(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : pe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, c = !!e.escapeParameter;
|
|
1965
1966
|
const b = t ? t.modifiers : ee(e.modifiers) ? e.modifiers : {};
|
|
1966
|
-
let
|
|
1967
|
-
|
|
1967
|
+
let y = e.pluralRules || t && t.pluralRules, v;
|
|
1968
|
+
v = (() => {
|
|
1968
1969
|
r && bn(null);
|
|
1969
|
-
const
|
|
1970
|
-
version:
|
|
1970
|
+
const p = {
|
|
1971
|
+
version: yo,
|
|
1971
1972
|
locale: u.value,
|
|
1972
1973
|
fallbackLocale: i.value,
|
|
1973
1974
|
messages: g.value,
|
|
1974
1975
|
modifiers: b,
|
|
1975
|
-
pluralRules:
|
|
1976
|
+
pluralRules: y,
|
|
1976
1977
|
missing: f === null ? void 0 : f,
|
|
1977
1978
|
missingWarn: N,
|
|
1978
1979
|
fallbackWarn: F,
|
|
@@ -1985,190 +1986,190 @@ function Oo(e = {}) {
|
|
|
1985
1986
|
messageCompiler: e.messageCompiler,
|
|
1986
1987
|
__meta: { framework: "vue" }
|
|
1987
1988
|
};
|
|
1988
|
-
|
|
1989
|
-
const
|
|
1990
|
-
return r && bn(
|
|
1991
|
-
})(), lt(
|
|
1992
|
-
function
|
|
1989
|
+
p.datetimeFormats = E.value, p.numberFormats = T.value, p.__datetimeFormatters = ee(v) ? v.__datetimeFormatters : void 0, p.__numberFormatters = ee(v) ? v.__numberFormatters : void 0;
|
|
1990
|
+
const I = ro(p);
|
|
1991
|
+
return r && bn(I), I;
|
|
1992
|
+
})(), lt(v, u.value, i.value);
|
|
1993
|
+
function k() {
|
|
1993
1994
|
return [
|
|
1994
1995
|
u.value,
|
|
1995
1996
|
i.value,
|
|
1996
1997
|
g.value,
|
|
1997
1998
|
E.value,
|
|
1998
|
-
|
|
1999
|
+
T.value
|
|
1999
2000
|
];
|
|
2000
2001
|
}
|
|
2001
|
-
const
|
|
2002
|
+
const B = z({
|
|
2002
2003
|
get: () => u.value,
|
|
2003
|
-
set: (
|
|
2004
|
-
u.value =
|
|
2004
|
+
set: (p) => {
|
|
2005
|
+
u.value = p, v.locale = u.value;
|
|
2005
2006
|
}
|
|
2006
|
-
}),
|
|
2007
|
+
}), x = z({
|
|
2007
2008
|
get: () => i.value,
|
|
2008
|
-
set: (
|
|
2009
|
-
i.value =
|
|
2009
|
+
set: (p) => {
|
|
2010
|
+
i.value = p, v.fallbackLocale = i.value, lt(v, u.value, p);
|
|
2010
2011
|
}
|
|
2011
|
-
}),
|
|
2012
|
-
function
|
|
2013
|
-
return
|
|
2012
|
+
}), d = z(() => g.value), C = /* @__PURE__ */ z(() => E.value), U = /* @__PURE__ */ z(() => T.value);
|
|
2013
|
+
function V() {
|
|
2014
|
+
return de(h) ? h : null;
|
|
2014
2015
|
}
|
|
2015
|
-
function j(
|
|
2016
|
-
h =
|
|
2016
|
+
function j(p) {
|
|
2017
|
+
h = p, v.postTranslation = p;
|
|
2017
2018
|
}
|
|
2018
2019
|
function G() {
|
|
2019
|
-
return
|
|
2020
|
+
return D;
|
|
2020
2021
|
}
|
|
2021
|
-
function W(
|
|
2022
|
-
|
|
2022
|
+
function W(p) {
|
|
2023
|
+
p !== null && (f = Rn(p)), D = p, v.missing = f;
|
|
2023
2024
|
}
|
|
2024
|
-
const Y = (
|
|
2025
|
-
|
|
2025
|
+
const Y = (p, I, $, le, Xe, dt) => {
|
|
2026
|
+
k();
|
|
2026
2027
|
let ze;
|
|
2027
2028
|
try {
|
|
2028
|
-
|
|
2029
|
+
go.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = t ? no() : void 0), ze = p(v);
|
|
2029
2030
|
} finally {
|
|
2030
|
-
__INTLIFY_PROD_DEVTOOLS__, r || (
|
|
2031
|
+
__INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = void 0);
|
|
2031
2032
|
}
|
|
2032
2033
|
if ($ !== "translate exists" && // for not `te` (e.g `t`)
|
|
2033
|
-
ge(ze) && ze ===
|
|
2034
|
-
const [cr,
|
|
2035
|
-
return t &&
|
|
2034
|
+
ge(ze) && ze === Ot || $ === "translate exists" && !ze) {
|
|
2035
|
+
const [cr, Ia] = I();
|
|
2036
|
+
return t && w ? le(t) : Xe(cr);
|
|
2036
2037
|
} else {
|
|
2037
|
-
if (
|
|
2038
|
+
if (dt(ze))
|
|
2038
2039
|
return ze;
|
|
2039
2040
|
throw ut(at.UNEXPECTED_RETURN_TYPE);
|
|
2040
2041
|
}
|
|
2041
2042
|
};
|
|
2042
|
-
function
|
|
2043
|
-
return Y((
|
|
2043
|
+
function X(...p) {
|
|
2044
|
+
return Y((I) => Reflect.apply(On, null, [I, ...p]), () => Vt(...p), "translate", (I) => Reflect.apply(I.t, I, [...p]), (I) => I, (I) => Z(I));
|
|
2044
2045
|
}
|
|
2045
|
-
function ne(...
|
|
2046
|
-
const [
|
|
2046
|
+
function ne(...p) {
|
|
2047
|
+
const [I, $, le] = p;
|
|
2047
2048
|
if (le && !te(le))
|
|
2048
2049
|
throw ut(at.INVALID_ARGUMENT);
|
|
2049
|
-
return
|
|
2050
|
+
return X(I, $, ye({ resolvedMessage: !0 }, le || {}));
|
|
2050
2051
|
}
|
|
2051
|
-
function Q(...
|
|
2052
|
-
return Y((
|
|
2052
|
+
function Q(...p) {
|
|
2053
|
+
return Y((I) => Reflect.apply(yn, null, [I, ...p]), () => jt(...p), "datetime format", (I) => Reflect.apply(I.d, I, [...p]), () => pn, (I) => Z(I));
|
|
2053
2054
|
}
|
|
2054
|
-
function _e(...
|
|
2055
|
-
return Y((
|
|
2055
|
+
function _e(...p) {
|
|
2056
|
+
return Y((I) => Reflect.apply(In, null, [I, ...p]), () => Ut(...p), "number format", (I) => Reflect.apply(I.n, I, [...p]), () => pn, (I) => Z(I));
|
|
2056
2057
|
}
|
|
2057
|
-
function ce(
|
|
2058
|
-
return
|
|
2058
|
+
function ce(p) {
|
|
2059
|
+
return p.map((I) => Z(I) || ge(I) || pe(I) ? Sn(String(I)) : I);
|
|
2059
2060
|
}
|
|
2060
2061
|
const fe = {
|
|
2061
2062
|
normalize: ce,
|
|
2062
|
-
interpolate: (
|
|
2063
|
+
interpolate: (p) => p,
|
|
2063
2064
|
type: "vnode"
|
|
2064
2065
|
};
|
|
2065
|
-
function q(...
|
|
2066
|
-
return Y((
|
|
2066
|
+
function q(...p) {
|
|
2067
|
+
return Y((I) => {
|
|
2067
2068
|
let $;
|
|
2068
|
-
const le =
|
|
2069
|
+
const le = I;
|
|
2069
2070
|
try {
|
|
2070
|
-
le.processor = fe, $ = Reflect.apply(
|
|
2071
|
+
le.processor = fe, $ = Reflect.apply(On, null, [le, ...p]);
|
|
2071
2072
|
} finally {
|
|
2072
2073
|
le.processor = null;
|
|
2073
2074
|
}
|
|
2074
2075
|
return $;
|
|
2075
|
-
}, () =>
|
|
2076
|
+
}, () => Vt(...p), "translate", (I) => I[xt](...p), (I) => [Sn(I)], (I) => be(I));
|
|
2076
2077
|
}
|
|
2077
|
-
function
|
|
2078
|
-
return Y((
|
|
2078
|
+
function De(...p) {
|
|
2079
|
+
return Y((I) => Reflect.apply(In, null, [I, ...p]), () => Ut(...p), "number format", (I) => I[Gt](...p), Ln, (I) => Z(I) || be(I));
|
|
2079
2080
|
}
|
|
2080
|
-
function K(...
|
|
2081
|
-
return Y((
|
|
2081
|
+
function K(...p) {
|
|
2082
|
+
return Y((I) => Reflect.apply(yn, null, [I, ...p]), () => jt(...p), "datetime format", (I) => I[Wt](...p), Ln, (I) => Z(I) || be(I));
|
|
2082
2083
|
}
|
|
2083
|
-
function
|
|
2084
|
-
|
|
2084
|
+
function ve(p) {
|
|
2085
|
+
y = p, v.pluralRules = y;
|
|
2085
2086
|
}
|
|
2086
|
-
function Je(
|
|
2087
|
+
function Je(p, I) {
|
|
2087
2088
|
return Y(() => {
|
|
2088
|
-
if (!
|
|
2089
|
+
if (!p)
|
|
2089
2090
|
return !1;
|
|
2090
|
-
const $ = Z(
|
|
2091
|
-
return ot(
|
|
2092
|
-
}, () => [
|
|
2091
|
+
const $ = Z(I) ? I : u.value, le = Fe($), Xe = v.messageResolver(le, p);
|
|
2092
|
+
return ot(Xe) || Te(Xe) || Z(Xe);
|
|
2093
|
+
}, () => [p], "translate exists", ($) => Reflect.apply($.te, $, [p, I]), Co, ($) => pe($));
|
|
2093
2094
|
}
|
|
2094
|
-
function Ke(
|
|
2095
|
-
let
|
|
2096
|
-
const $ = Hn(
|
|
2095
|
+
function Ke(p) {
|
|
2096
|
+
let I = null;
|
|
2097
|
+
const $ = Hn(v, i.value, u.value);
|
|
2097
2098
|
for (let le = 0; le < $.length; le++) {
|
|
2098
|
-
const
|
|
2099
|
-
if (
|
|
2100
|
-
|
|
2099
|
+
const Xe = g.value[$[le]] || {}, dt = v.messageResolver(Xe, p);
|
|
2100
|
+
if (dt != null) {
|
|
2101
|
+
I = dt;
|
|
2101
2102
|
break;
|
|
2102
2103
|
}
|
|
2103
2104
|
}
|
|
2104
|
-
return
|
|
2105
|
+
return I;
|
|
2105
2106
|
}
|
|
2106
|
-
function
|
|
2107
|
-
const
|
|
2108
|
-
return
|
|
2107
|
+
function Ve(p) {
|
|
2108
|
+
const I = Ke(p);
|
|
2109
|
+
return I ?? (t ? t.tm(p) || {} : {});
|
|
2109
2110
|
}
|
|
2110
|
-
function Fe(
|
|
2111
|
-
return g.value[
|
|
2111
|
+
function Fe(p) {
|
|
2112
|
+
return g.value[p] || {};
|
|
2112
2113
|
}
|
|
2113
|
-
function Ce(
|
|
2114
|
+
function Ce(p, I) {
|
|
2114
2115
|
if (l) {
|
|
2115
|
-
const $ = { [
|
|
2116
|
+
const $ = { [p]: I };
|
|
2116
2117
|
for (const le in $)
|
|
2117
|
-
|
|
2118
|
-
|
|
2118
|
+
ke($, le) && mt($[le]);
|
|
2119
|
+
I = $[p];
|
|
2119
2120
|
}
|
|
2120
|
-
g.value[
|
|
2121
|
+
g.value[p] = I, v.messages = g.value;
|
|
2121
2122
|
}
|
|
2122
|
-
function Ye(
|
|
2123
|
-
g.value[
|
|
2124
|
-
const $ = { [
|
|
2123
|
+
function Ye(p, I) {
|
|
2124
|
+
g.value[p] = g.value[p] || {};
|
|
2125
|
+
const $ = { [p]: I };
|
|
2125
2126
|
if (l)
|
|
2126
2127
|
for (const le in $)
|
|
2127
|
-
|
|
2128
|
-
|
|
2128
|
+
ke($, le) && mt($[le]);
|
|
2129
|
+
I = $[p], Et(I, g.value[p]), v.messages = g.value;
|
|
2129
2130
|
}
|
|
2130
|
-
function
|
|
2131
|
-
return E.value[
|
|
2131
|
+
function O(p) {
|
|
2132
|
+
return E.value[p] || {};
|
|
2132
2133
|
}
|
|
2133
|
-
function s(
|
|
2134
|
-
E.value[
|
|
2134
|
+
function s(p, I) {
|
|
2135
|
+
E.value[p] = I, v.datetimeFormats = E.value, En(v, p, I);
|
|
2135
2136
|
}
|
|
2136
|
-
function o(
|
|
2137
|
-
E.value[
|
|
2137
|
+
function o(p, I) {
|
|
2138
|
+
E.value[p] = ye(E.value[p] || {}, I), v.datetimeFormats = E.value, En(v, p, I);
|
|
2138
2139
|
}
|
|
2139
|
-
function _(
|
|
2140
|
-
return
|
|
2140
|
+
function _(p) {
|
|
2141
|
+
return T.value[p] || {};
|
|
2141
2142
|
}
|
|
2142
|
-
function
|
|
2143
|
-
|
|
2143
|
+
function A(p, I) {
|
|
2144
|
+
T.value[p] = I, v.numberFormats = T.value, Nn(v, p, I);
|
|
2144
2145
|
}
|
|
2145
|
-
function M(
|
|
2146
|
-
|
|
2146
|
+
function M(p, I) {
|
|
2147
|
+
T.value[p] = ye(T.value[p] || {}, I), v.numberFormats = T.value, Nn(v, p, I);
|
|
2147
2148
|
}
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
}),
|
|
2151
|
-
|
|
2149
|
+
An++, t && on && (wt(t.locale, (p) => {
|
|
2150
|
+
m && (u.value = p, v.locale = p, lt(v, u.value, i.value));
|
|
2151
|
+
}), wt(t.fallbackLocale, (p) => {
|
|
2152
|
+
m && (i.value = p, v.fallbackLocale = p, lt(v, u.value, i.value));
|
|
2152
2153
|
}));
|
|
2153
2154
|
const P = {
|
|
2154
|
-
id:
|
|
2155
|
-
locale:
|
|
2156
|
-
fallbackLocale:
|
|
2155
|
+
id: An,
|
|
2156
|
+
locale: B,
|
|
2157
|
+
fallbackLocale: x,
|
|
2157
2158
|
get inheritLocale() {
|
|
2158
|
-
return
|
|
2159
|
+
return m;
|
|
2159
2160
|
},
|
|
2160
|
-
set inheritLocale(
|
|
2161
|
-
|
|
2161
|
+
set inheritLocale(p) {
|
|
2162
|
+
m = p, p && t && (u.value = t.locale.value, i.value = t.fallbackLocale.value, lt(v, u.value, i.value));
|
|
2162
2163
|
},
|
|
2163
2164
|
get availableLocales() {
|
|
2164
2165
|
return Object.keys(g.value).sort();
|
|
2165
2166
|
},
|
|
2166
|
-
messages:
|
|
2167
|
+
messages: d,
|
|
2167
2168
|
get modifiers() {
|
|
2168
2169
|
return b;
|
|
2169
2170
|
},
|
|
2170
2171
|
get pluralRules() {
|
|
2171
|
-
return
|
|
2172
|
+
return y || {};
|
|
2172
2173
|
},
|
|
2173
2174
|
get isGlobal() {
|
|
2174
2175
|
return r;
|
|
@@ -2176,50 +2177,50 @@ function Oo(e = {}) {
|
|
|
2176
2177
|
get missingWarn() {
|
|
2177
2178
|
return N;
|
|
2178
2179
|
},
|
|
2179
|
-
set missingWarn(
|
|
2180
|
-
N =
|
|
2180
|
+
set missingWarn(p) {
|
|
2181
|
+
N = p, v.missingWarn = N;
|
|
2181
2182
|
},
|
|
2182
2183
|
get fallbackWarn() {
|
|
2183
2184
|
return F;
|
|
2184
2185
|
},
|
|
2185
|
-
set fallbackWarn(
|
|
2186
|
-
F =
|
|
2186
|
+
set fallbackWarn(p) {
|
|
2187
|
+
F = p, v.fallbackWarn = F;
|
|
2187
2188
|
},
|
|
2188
2189
|
get fallbackRoot() {
|
|
2189
|
-
return
|
|
2190
|
+
return w;
|
|
2190
2191
|
},
|
|
2191
|
-
set fallbackRoot(
|
|
2192
|
-
|
|
2192
|
+
set fallbackRoot(p) {
|
|
2193
|
+
w = p;
|
|
2193
2194
|
},
|
|
2194
2195
|
get fallbackFormat() {
|
|
2195
2196
|
return L;
|
|
2196
2197
|
},
|
|
2197
|
-
set fallbackFormat(
|
|
2198
|
-
L =
|
|
2198
|
+
set fallbackFormat(p) {
|
|
2199
|
+
L = p, v.fallbackFormat = L;
|
|
2199
2200
|
},
|
|
2200
2201
|
get warnHtmlMessage() {
|
|
2201
2202
|
return S;
|
|
2202
2203
|
},
|
|
2203
|
-
set warnHtmlMessage(
|
|
2204
|
-
S =
|
|
2204
|
+
set warnHtmlMessage(p) {
|
|
2205
|
+
S = p, v.warnHtmlMessage = p;
|
|
2205
2206
|
},
|
|
2206
2207
|
get escapeParameter() {
|
|
2207
2208
|
return c;
|
|
2208
2209
|
},
|
|
2209
|
-
set escapeParameter(
|
|
2210
|
-
c =
|
|
2210
|
+
set escapeParameter(p) {
|
|
2211
|
+
c = p, v.escapeParameter = p;
|
|
2211
2212
|
},
|
|
2212
|
-
t:
|
|
2213
|
+
t: X,
|
|
2213
2214
|
getLocaleMessage: Fe,
|
|
2214
2215
|
setLocaleMessage: Ce,
|
|
2215
2216
|
mergeLocaleMessage: Ye,
|
|
2216
|
-
getPostTranslationHandler:
|
|
2217
|
+
getPostTranslationHandler: V,
|
|
2217
2218
|
setPostTranslationHandler: j,
|
|
2218
2219
|
getMissingHandler: G,
|
|
2219
2220
|
setMissingHandler: W,
|
|
2220
|
-
[
|
|
2221
|
+
[Io]: ve
|
|
2221
2222
|
};
|
|
2222
|
-
return P.datetimeFormats = C, P.numberFormats =
|
|
2223
|
+
return P.datetimeFormats = C, P.numberFormats = U, P.rt = ne, P.te = Je, P.tm = Ve, P.d = Q, P.n = _e, P.getDateTimeFormat = O, P.setDateTimeFormat = s, P.mergeDateTimeFormat = o, P.getNumberFormat = _, P.setNumberFormat = A, P.mergeNumberFormat = M, P[rr] = n, P[xt] = q, P[Wt] = K, P[Gt] = De, P;
|
|
2223
2224
|
}
|
|
2224
2225
|
const qt = {
|
|
2225
2226
|
tag: {
|
|
@@ -2239,20 +2240,20 @@ const qt = {
|
|
|
2239
2240
|
type: Object
|
|
2240
2241
|
}
|
|
2241
2242
|
};
|
|
2242
|
-
function
|
|
2243
|
+
function So({ slots: e }, t) {
|
|
2243
2244
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, l) => [
|
|
2244
2245
|
...r,
|
|
2245
2246
|
// prettier-ignore
|
|
2246
|
-
...l.type ===
|
|
2247
|
+
...l.type === Re ? l.children : [l]
|
|
2247
2248
|
], []) : t.reduce((n, r) => {
|
|
2248
2249
|
const l = e[r];
|
|
2249
2250
|
return l && (n[r] = l()), n;
|
|
2250
2251
|
}, oe());
|
|
2251
2252
|
}
|
|
2252
2253
|
function ar() {
|
|
2253
|
-
return
|
|
2254
|
+
return Re;
|
|
2254
2255
|
}
|
|
2255
|
-
|
|
2256
|
+
ye({
|
|
2256
2257
|
keypath: {
|
|
2257
2258
|
type: String,
|
|
2258
2259
|
required: !0
|
|
@@ -2262,26 +2263,26 @@ Ie({
|
|
|
2262
2263
|
validator: (e) => ge(e) || !isNaN(e)
|
|
2263
2264
|
}
|
|
2264
2265
|
}, qt);
|
|
2265
|
-
function
|
|
2266
|
+
function ko(e) {
|
|
2266
2267
|
return be(e) && !Z(e[0]);
|
|
2267
2268
|
}
|
|
2268
2269
|
function lr(e, t, n, r) {
|
|
2269
2270
|
const { slots: l, attrs: a } = t;
|
|
2270
2271
|
return () => {
|
|
2271
|
-
const
|
|
2272
|
+
const m = { part: !0 };
|
|
2272
2273
|
let u = oe();
|
|
2273
|
-
e.locale && (
|
|
2274
|
-
const i = r(e.value,
|
|
2275
|
-
let g = [
|
|
2274
|
+
e.locale && (m.locale = e.locale), Z(e.format) ? m.key = e.format : te(e.format) && (Z(e.format.key) && (m.key = e.format.key), u = Object.keys(e.format).reduce((N, F) => n.includes(F) ? ye(oe(), N, { [F]: e.format[F] }) : N, oe()));
|
|
2275
|
+
const i = r(e.value, m, u);
|
|
2276
|
+
let g = [m.key];
|
|
2276
2277
|
be(i) ? g = i.map((N, F) => {
|
|
2277
|
-
const
|
|
2278
|
-
return
|
|
2278
|
+
const w = l[N.type], L = w ? w({ [N.type]: N.value, index: F, parts: i }) : [N.value];
|
|
2279
|
+
return ko(L) && (L[0].key = `${N.type}-${F}`), L;
|
|
2279
2280
|
}) : Z(i) && (g = [i]);
|
|
2280
|
-
const E =
|
|
2281
|
-
return Wn(
|
|
2281
|
+
const E = ye(oe(), a), T = Z(e.tag) || te(e.tag) ? e.tag : ar();
|
|
2282
|
+
return Wn(T, E, g);
|
|
2282
2283
|
};
|
|
2283
2284
|
}
|
|
2284
|
-
|
|
2285
|
+
ye({
|
|
2285
2286
|
value: {
|
|
2286
2287
|
type: Number,
|
|
2287
2288
|
required: !0
|
|
@@ -2290,7 +2291,7 @@ Ie({
|
|
|
2290
2291
|
type: [String, Object]
|
|
2291
2292
|
}
|
|
2292
2293
|
}, qt);
|
|
2293
|
-
|
|
2294
|
+
ye({
|
|
2294
2295
|
value: {
|
|
2295
2296
|
type: [Number, Date],
|
|
2296
2297
|
required: !0
|
|
@@ -2299,30 +2300,30 @@ Ie({
|
|
|
2299
2300
|
type: [String, Object]
|
|
2300
2301
|
}
|
|
2301
2302
|
}, qt);
|
|
2302
|
-
const
|
|
2303
|
+
const Lo = /* @__PURE__ */ $e("global-vue-i18n");
|
|
2303
2304
|
function St(e = {}) {
|
|
2304
|
-
const t =
|
|
2305
|
+
const t = Xt();
|
|
2305
2306
|
if (t == null)
|
|
2306
2307
|
throw ut(at.MUST_BE_CALL_SETUP_TOP);
|
|
2307
2308
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2308
2309
|
throw ut(at.NOT_INSTALLED);
|
|
2309
|
-
const n =
|
|
2310
|
+
const n = Ao(t), r = Mo(n), l = or(t), a = Ro(e, l);
|
|
2310
2311
|
if (a === "global")
|
|
2311
|
-
return
|
|
2312
|
+
return No(r, e, l), r;
|
|
2312
2313
|
if (a === "parent") {
|
|
2313
|
-
let i =
|
|
2314
|
+
let i = wo(n, t, e.__useComponent);
|
|
2314
2315
|
return i == null && (i = r), i;
|
|
2315
2316
|
}
|
|
2316
|
-
const
|
|
2317
|
-
let u =
|
|
2317
|
+
const m = n;
|
|
2318
|
+
let u = m.__getInstance(t);
|
|
2318
2319
|
if (u == null) {
|
|
2319
|
-
const i =
|
|
2320
|
-
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u = Oo(i),
|
|
2320
|
+
const i = ye({}, e);
|
|
2321
|
+
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u = Oo(i), m.__composerExtend && (u[Zt] = m.__composerExtend(u)), Fo(m, t, u), m.__setInstance(t, u);
|
|
2321
2322
|
}
|
|
2322
2323
|
return u;
|
|
2323
2324
|
}
|
|
2324
|
-
function
|
|
2325
|
-
const t = ur(e.isCE ?
|
|
2325
|
+
function Ao(e) {
|
|
2326
|
+
const t = ur(e.isCE ? Lo : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2326
2327
|
if (!t)
|
|
2327
2328
|
throw ut(e.isCE ? at.NOT_INSTALLED_WITH_PROVIDE : at.UNEXPECTED_ERROR);
|
|
2328
2329
|
return t;
|
|
@@ -2330,19 +2331,19 @@ function Lo(e) {
|
|
|
2330
2331
|
function Ro(e, t) {
|
|
2331
2332
|
return Ct(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2332
2333
|
}
|
|
2333
|
-
function
|
|
2334
|
+
function Mo(e) {
|
|
2334
2335
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2335
2336
|
}
|
|
2336
|
-
function
|
|
2337
|
+
function wo(e, t, n = !1) {
|
|
2337
2338
|
let r = null;
|
|
2338
2339
|
const l = t.root;
|
|
2339
2340
|
let a = Do(t, n);
|
|
2340
2341
|
for (; a != null; ) {
|
|
2341
|
-
const
|
|
2342
|
+
const m = e;
|
|
2342
2343
|
if (e.mode === "composition")
|
|
2343
|
-
r =
|
|
2344
|
+
r = m.__getInstance(a);
|
|
2344
2345
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
2345
|
-
const u =
|
|
2346
|
+
const u = m.__getInstance(a);
|
|
2346
2347
|
u != null && (r = u.__composer, n && r && !r[rr] && (r = null));
|
|
2347
2348
|
}
|
|
2348
2349
|
if (r != null || l === a)
|
|
@@ -2354,24 +2355,24 @@ function Mo(e, t, n = !1) {
|
|
|
2354
2355
|
function Do(e, t = !1) {
|
|
2355
2356
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2356
2357
|
}
|
|
2357
|
-
function
|
|
2358
|
-
|
|
2359
|
-
}, t),
|
|
2358
|
+
function Fo(e, t, n) {
|
|
2359
|
+
xn(() => {
|
|
2360
|
+
}, t), dr(() => {
|
|
2360
2361
|
const r = n;
|
|
2361
2362
|
e.__deleteInstance(t);
|
|
2362
2363
|
const l = r[Zt];
|
|
2363
2364
|
l && (l(), delete r[Zt]);
|
|
2364
2365
|
}, t);
|
|
2365
2366
|
}
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2367
|
+
Eo();
|
|
2368
|
+
zs(Ms);
|
|
2369
|
+
Qs($s);
|
|
2370
|
+
qs(Hn);
|
|
2370
2371
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2371
|
-
const e =
|
|
2372
|
-
e.__INTLIFY__ = !0,
|
|
2372
|
+
const e = Be();
|
|
2373
|
+
e.__INTLIFY__ = !0, ws(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2373
2374
|
}
|
|
2374
|
-
const
|
|
2375
|
+
const pt = /* @__PURE__ */ Le({
|
|
2375
2376
|
__name: "InheritPermissionTooltip",
|
|
2376
2377
|
props: {
|
|
2377
2378
|
item: {
|
|
@@ -2382,19 +2383,19 @@ const vt = /* @__PURE__ */ Le({
|
|
|
2382
2383
|
setup(e) {
|
|
2383
2384
|
const { t } = St();
|
|
2384
2385
|
return (n, r) => {
|
|
2385
|
-
const l =
|
|
2386
|
+
const l = we("FmIcon"), a = we("FmTooltip");
|
|
2386
2387
|
return J(), Ne(a, {
|
|
2387
2388
|
variant: "plain",
|
|
2388
2389
|
placement: "right",
|
|
2389
2390
|
"z-index": 50
|
|
2390
2391
|
}, {
|
|
2391
|
-
content:
|
|
2392
|
-
ae("div", null,
|
|
2393
|
-
(J(!0), ie(
|
|
2394
|
-
ae("div", null, "- " +
|
|
2392
|
+
content: me(() => [
|
|
2393
|
+
ae("div", null, Oe(H(t)("team.memberForm.permissions.inherited")), 1),
|
|
2394
|
+
(J(!0), ie(Re, null, Ie(e.item.setNames, (m) => (J(), ie("div", { key: m }, [
|
|
2395
|
+
ae("div", null, "- " + Oe(m), 1)
|
|
2395
2396
|
]))), 128))
|
|
2396
2397
|
]),
|
|
2397
|
-
default:
|
|
2398
|
+
default: me(() => [
|
|
2398
2399
|
ue(l, {
|
|
2399
2400
|
name: "admin_panel_settings",
|
|
2400
2401
|
size: "sm",
|
|
@@ -2411,63 +2412,63 @@ function Mn(e, t, n) {
|
|
|
2411
2412
|
if (r.length === 0) return;
|
|
2412
2413
|
const l = e.findIndex((u) => u.subject === t && !u.inverted);
|
|
2413
2414
|
if (l < 0) return;
|
|
2414
|
-
const a = new Set(e[l].actions),
|
|
2415
|
-
|
|
2415
|
+
const a = new Set(e[l].actions), m = r.every((u) => a.has(u));
|
|
2416
|
+
m && !a.has("manage") ? (a.add("manage"), e[l] = {
|
|
2416
2417
|
...e[l],
|
|
2417
2418
|
actions: Array.from(a)
|
|
2418
|
-
}) : !
|
|
2419
|
+
}) : !m && a.has("manage") && (a.delete("manage"), a.size === 0 ? e.splice(l, 1) : e[l] = {
|
|
2419
2420
|
...e[l],
|
|
2420
2421
|
actions: Array.from(a)
|
|
2421
2422
|
});
|
|
2422
2423
|
}
|
|
2423
|
-
const
|
|
2424
|
+
const wn = Object.values(Sr), Po = {
|
|
2424
2425
|
read: "View",
|
|
2425
2426
|
create: "Duplicate",
|
|
2426
2427
|
update: "Edit"
|
|
2427
2428
|
};
|
|
2428
|
-
function
|
|
2429
|
-
const { t: l } = He(), { getFlagValue: a, getFlag:
|
|
2429
|
+
function jo(e, t, n, r) {
|
|
2430
|
+
const { t: l } = He(), { getFlagValue: a, getFlag: m } = Or(), u = z(() => {
|
|
2430
2431
|
var j;
|
|
2431
|
-
const
|
|
2432
|
+
const d = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map();
|
|
2432
2433
|
for (const G of t.value) {
|
|
2433
2434
|
const W = G.category;
|
|
2434
2435
|
if (!W) continue;
|
|
2435
2436
|
const Y = G.subject;
|
|
2436
|
-
if (n.value.includes(G.subject) || G.showByFeatureFlag && ((j =
|
|
2437
|
+
if (n.value.includes(G.subject) || G.showByFeatureFlag && ((j = m(G.showByFeatureFlag)) == null ? void 0 : j.enabled) === !1 && a(G.showByFeatureFlag) === "true")
|
|
2437
2438
|
continue;
|
|
2438
|
-
|
|
2439
|
-
const
|
|
2440
|
-
|
|
2439
|
+
d.has(W) || d.set(W, []);
|
|
2440
|
+
const X = U.get(Y) ?? 0;
|
|
2441
|
+
U.set(Y, X + 1), d.get(W).push({
|
|
2441
2442
|
label: l(`permissionSet.permissionLabels.${Y}`, G.label),
|
|
2442
2443
|
value: Y,
|
|
2443
|
-
optionKey: `${Y}::${
|
|
2444
|
+
optionKey: `${Y}::${X}`
|
|
2444
2445
|
}), C.has(Y) || C.set(Y, G);
|
|
2445
2446
|
}
|
|
2446
|
-
return [...
|
|
2447
|
-
const Y =
|
|
2448
|
-
return Y === -1 &&
|
|
2447
|
+
return [...d.keys()].sort((G, W) => {
|
|
2448
|
+
const Y = wn.indexOf(G), X = wn.indexOf(W);
|
|
2449
|
+
return Y === -1 && X === -1 ? G.localeCompare(W) : Y === -1 ? 1 : X === -1 ? -1 : Y - X;
|
|
2449
2450
|
}).map((G) => {
|
|
2450
|
-
const W =
|
|
2451
|
+
const W = d.get(G), Y = l(`permissionSet.categoryLabels.${G}`, G), X = /* @__PURE__ */ new Map();
|
|
2451
2452
|
for (const K of W) {
|
|
2452
|
-
const
|
|
2453
|
-
|
|
2453
|
+
const ve = C.get(K.value);
|
|
2454
|
+
ve && X.set(K.value, ve.actions);
|
|
2454
2455
|
}
|
|
2455
2456
|
const ne = W.some((K) => {
|
|
2456
|
-
const
|
|
2457
|
-
return
|
|
2457
|
+
const ve = X.get(K.value);
|
|
2458
|
+
return ve && ve.length > 1;
|
|
2458
2459
|
}), Q = ne ? [
|
|
2459
2460
|
...new Set(
|
|
2460
|
-
W.flatMap((K) =>
|
|
2461
|
+
W.flatMap((K) => X.get(K.value) ?? []).filter((K) => K !== "manage")
|
|
2461
2462
|
)
|
|
2462
2463
|
] : [], _e = /* @__PURE__ */ new Map();
|
|
2463
2464
|
for (const K of e.value)
|
|
2464
|
-
W.some((
|
|
2465
|
+
W.some((ve) => ve.value === K.subject) && !K.inverted && _e.set(K.subject, new Set(K.actions));
|
|
2465
2466
|
const ce = ne ? e.value.filter(
|
|
2466
|
-
(K) => W.some((
|
|
2467
|
-
).map((K) => K.subject) : e.value.filter((K) => W.some((
|
|
2468
|
-
var
|
|
2469
|
-
return (
|
|
2470
|
-
}), fe = (se == null ? void 0 : se.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(),
|
|
2467
|
+
(K) => W.some((ve) => ve.value === K.subject) && !K.inverted && K.actions.includes("manage")
|
|
2468
|
+
).map((K) => K.subject) : e.value.filter((K) => W.some((ve) => ve.value === K.subject) && !K.inverted).map((K) => K.subject), se = W.find((K) => {
|
|
2469
|
+
var ve;
|
|
2470
|
+
return (ve = C.get(K.value)) == null ? void 0 : ve.isCategoryCover;
|
|
2471
|
+
}), fe = (se == null ? void 0 : se.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), De = q.has("manage");
|
|
2471
2472
|
return {
|
|
2472
2473
|
category: G,
|
|
2473
2474
|
label: Y,
|
|
@@ -2475,25 +2476,25 @@ function Po(e, t, n, r) {
|
|
|
2475
2476
|
selectedSubjects: ce,
|
|
2476
2477
|
isMultiAction: ne,
|
|
2477
2478
|
actionColumns: Q,
|
|
2478
|
-
permissionActionsMap:
|
|
2479
|
+
permissionActionsMap: X,
|
|
2479
2480
|
selectedActionsMap: _e,
|
|
2480
2481
|
coverSubject: fe,
|
|
2481
2482
|
coverSelectedActions: q,
|
|
2482
|
-
coverCoversAll:
|
|
2483
|
+
coverCoversAll: De
|
|
2483
2484
|
};
|
|
2484
2485
|
});
|
|
2485
2486
|
});
|
|
2486
|
-
function i(
|
|
2487
|
-
const
|
|
2487
|
+
function i(d, C) {
|
|
2488
|
+
const U = u.value.find((Q) => Q.category === d), V = (U == null ? void 0 : U.options) ?? [], j = new Set(V.map((Q) => Q.value)), G = new Set(C), W = /* @__PURE__ */ new Map();
|
|
2488
2489
|
for (const Q of e.value)
|
|
2489
2490
|
j.has(Q.subject) && !Q.inverted && W.set(Q.subject, Q.conditions);
|
|
2490
|
-
const Y =
|
|
2491
|
+
const Y = U != null && U.coverSubject ? W.get(U.coverSubject) : void 0, X = /* @__PURE__ */ new Set(), ne = t.value.flatMap(
|
|
2491
2492
|
({ category: Q, showByFeatureFlag: _e, isCategoryCover: ce, ...se }) => {
|
|
2492
2493
|
const fe = se.subject;
|
|
2493
|
-
if (!G.has(fe) ||
|
|
2494
|
-
|
|
2494
|
+
if (!G.has(fe) || X.has(fe)) return [];
|
|
2495
|
+
X.add(fe);
|
|
2495
2496
|
let q;
|
|
2496
|
-
return W.has(fe) ? q = W.get(fe) :
|
|
2497
|
+
return W.has(fe) ? q = W.get(fe) : U != null && U.coverSubject && fe !== U.coverSubject && (q = Y), [
|
|
2497
2498
|
{ ...se, ...q !== void 0 && { conditions: q } }
|
|
2498
2499
|
];
|
|
2499
2500
|
}
|
|
@@ -2503,189 +2504,189 @@ function Po(e, t, n, r) {
|
|
|
2503
2504
|
...ne
|
|
2504
2505
|
]);
|
|
2505
2506
|
}
|
|
2506
|
-
function g(
|
|
2507
|
-
return F(
|
|
2507
|
+
function g(d, C) {
|
|
2508
|
+
return F(d, C) || c(d, C);
|
|
2508
2509
|
}
|
|
2509
|
-
function E(
|
|
2510
|
-
return
|
|
2510
|
+
function E(d) {
|
|
2511
|
+
return d.options.length > 0 && d.options.every((C) => g(d, C.value));
|
|
2511
2512
|
}
|
|
2512
|
-
function
|
|
2513
|
-
return
|
|
2514
|
-
(C) => g(
|
|
2513
|
+
function T(d) {
|
|
2514
|
+
return d.options.length === 0 || E(d) ? !1 : d.options.some(
|
|
2515
|
+
(C) => g(d, C.value) || w(d, C.value).length > 0
|
|
2515
2516
|
);
|
|
2516
2517
|
}
|
|
2517
|
-
function N(
|
|
2518
|
-
const C = new Set(
|
|
2519
|
-
if (E(
|
|
2520
|
-
r("update:model-value",
|
|
2518
|
+
function N(d) {
|
|
2519
|
+
const C = new Set(d.options.map((V) => V.value)), U = e.value.filter((V) => !C.has(V.subject));
|
|
2520
|
+
if (E(d))
|
|
2521
|
+
r("update:model-value", U);
|
|
2521
2522
|
else {
|
|
2522
|
-
const
|
|
2523
|
+
const V = /* @__PURE__ */ new Map();
|
|
2523
2524
|
for (const Y of e.value)
|
|
2524
|
-
C.has(Y.subject) && !Y.inverted &&
|
|
2525
|
-
const j =
|
|
2526
|
-
({ category: Y, showByFeatureFlag:
|
|
2525
|
+
C.has(Y.subject) && !Y.inverted && V.set(Y.subject, Y.conditions);
|
|
2526
|
+
const j = d.coverSubject ? V.get(d.coverSubject) : void 0, G = /* @__PURE__ */ new Set(), W = t.value.flatMap(
|
|
2527
|
+
({ category: Y, showByFeatureFlag: X, isCategoryCover: ne, ...Q }) => {
|
|
2527
2528
|
const _e = Q.subject;
|
|
2528
2529
|
if (!C.has(_e) || G.has(_e)) return [];
|
|
2529
2530
|
G.add(_e);
|
|
2530
2531
|
let ce;
|
|
2531
|
-
return
|
|
2532
|
+
return V.has(_e) ? ce = V.get(_e) : d.coverSubject && _e !== d.coverSubject && (ce = j), [
|
|
2532
2533
|
{ ...Q, ...ce !== void 0 && { conditions: ce } }
|
|
2533
2534
|
];
|
|
2534
2535
|
}
|
|
2535
2536
|
);
|
|
2536
|
-
r("update:model-value", [...
|
|
2537
|
+
r("update:model-value", [...U, ...W]);
|
|
2537
2538
|
}
|
|
2538
2539
|
}
|
|
2539
|
-
function F(
|
|
2540
|
-
const
|
|
2541
|
-
return
|
|
2540
|
+
function F(d, C) {
|
|
2541
|
+
const U = d.selectedActionsMap.get(C);
|
|
2542
|
+
return U ? U.has("manage") : !1;
|
|
2542
2543
|
}
|
|
2543
|
-
function
|
|
2544
|
-
const
|
|
2545
|
-
return
|
|
2546
|
-
(j) => S(
|
|
2544
|
+
function w(d, C) {
|
|
2545
|
+
const U = d.permissionActionsMap.get(C);
|
|
2546
|
+
return U ? U.filter((j) => j !== "manage").filter(
|
|
2547
|
+
(j) => S(d, C, j) || b(d, C, j)
|
|
2547
2548
|
) : [];
|
|
2548
2549
|
}
|
|
2549
|
-
function L(
|
|
2550
|
-
return c(
|
|
2550
|
+
function L(d, C) {
|
|
2551
|
+
return c(d, C) ? !1 : !F(d, C) && w(d, C).length > 0;
|
|
2551
2552
|
}
|
|
2552
|
-
function
|
|
2553
|
-
if (!
|
|
2554
|
-
const
|
|
2555
|
-
(
|
|
2553
|
+
function D(d, C) {
|
|
2554
|
+
if (!d.coverSubject || C === d.coverSubject) return;
|
|
2555
|
+
const U = e.value.find(
|
|
2556
|
+
(V) => !V.inverted && V.subject === d.coverSubject
|
|
2556
2557
|
);
|
|
2557
|
-
return (
|
|
2558
|
+
return (U == null ? void 0 : U.conditions) || void 0;
|
|
2558
2559
|
}
|
|
2559
|
-
function f(
|
|
2560
|
-
if (
|
|
2561
|
-
const
|
|
2562
|
-
if (!
|
|
2560
|
+
function f(d, C, U) {
|
|
2561
|
+
if (U) {
|
|
2562
|
+
const V = t.value.find((Q) => Q.subject === C);
|
|
2563
|
+
if (!V) return;
|
|
2563
2564
|
const {
|
|
2564
2565
|
category: j,
|
|
2565
2566
|
showByFeatureFlag: G,
|
|
2566
2567
|
isCategoryCover: W,
|
|
2567
2568
|
...Y
|
|
2568
|
-
} =
|
|
2569
|
+
} = V, X = D(d, C), ne = e.value.filter((Q) => Q.subject !== C);
|
|
2569
2570
|
ne.push({
|
|
2570
2571
|
...Y,
|
|
2571
|
-
...
|
|
2572
|
+
...X !== void 0 && { conditions: X }
|
|
2572
2573
|
}), r("update:model-value", ne);
|
|
2573
2574
|
} else
|
|
2574
2575
|
r(
|
|
2575
2576
|
"update:model-value",
|
|
2576
|
-
e.value.filter((
|
|
2577
|
+
e.value.filter((V) => V.subject !== C)
|
|
2577
2578
|
);
|
|
2578
2579
|
}
|
|
2579
|
-
function h(
|
|
2580
|
-
const
|
|
2581
|
-
return
|
|
2580
|
+
function h(d, C) {
|
|
2581
|
+
const U = d.permissionActionsMap.get(C);
|
|
2582
|
+
return U ? U.some((V) => V !== "manage") : !1;
|
|
2582
2583
|
}
|
|
2583
|
-
function S(
|
|
2584
|
-
const
|
|
2585
|
-
return
|
|
2584
|
+
function S(d, C, U) {
|
|
2585
|
+
const V = d.selectedActionsMap.get(C);
|
|
2586
|
+
return V ? V.has(U) : !1;
|
|
2586
2587
|
}
|
|
2587
|
-
function c(
|
|
2588
|
-
return !
|
|
2588
|
+
function c(d, C) {
|
|
2589
|
+
return !d.coverSubject || C === d.coverSubject ? !1 : d.coverCoversAll;
|
|
2589
2590
|
}
|
|
2590
|
-
function b(
|
|
2591
|
-
return !
|
|
2591
|
+
function b(d, C, U) {
|
|
2592
|
+
return !d.coverSubject || C === d.coverSubject ? !1 : d.coverCoversAll ? !0 : d.coverSelectedActions.has(U);
|
|
2592
2593
|
}
|
|
2593
|
-
function
|
|
2594
|
-
const
|
|
2595
|
-
return
|
|
2594
|
+
function y(d, C, U) {
|
|
2595
|
+
const V = d.permissionActionsMap.get(C);
|
|
2596
|
+
return V ? V.includes(U) : !1;
|
|
2596
2597
|
}
|
|
2597
|
-
function
|
|
2598
|
-
const
|
|
2599
|
-
if (
|
|
2598
|
+
function v(d, C, U) {
|
|
2599
|
+
const V = [...e.value], j = V.findIndex((W) => W.subject === d && !W.inverted);
|
|
2600
|
+
if (U)
|
|
2600
2601
|
if (j >= 0) {
|
|
2601
|
-
const W = { ...
|
|
2602
|
-
Y.add(C), W.actions = Array.from(Y),
|
|
2602
|
+
const W = { ...V[j] }, Y = new Set(W.actions);
|
|
2603
|
+
Y.add(C), W.actions = Array.from(Y), V[j] = W;
|
|
2603
2604
|
} else {
|
|
2604
|
-
const W = t.value.find((se) => se.subject ===
|
|
2605
|
+
const W = t.value.find((se) => se.subject === d);
|
|
2605
2606
|
if (!W) return;
|
|
2606
2607
|
const {
|
|
2607
2608
|
category: Y,
|
|
2608
|
-
showByFeatureFlag:
|
|
2609
|
+
showByFeatureFlag: X,
|
|
2609
2610
|
isCategoryCover: ne,
|
|
2610
2611
|
...Q
|
|
2611
2612
|
} = W, _e = u.value.find(
|
|
2612
|
-
(se) => se.options.some((fe) => fe.value ===
|
|
2613
|
-
), ce = _e ?
|
|
2614
|
-
|
|
2613
|
+
(se) => se.options.some((fe) => fe.value === d)
|
|
2614
|
+
), ce = _e ? D(_e, d) : void 0;
|
|
2615
|
+
V.push({
|
|
2615
2616
|
...Q,
|
|
2616
2617
|
actions: [C],
|
|
2617
2618
|
...ce !== void 0 && { conditions: ce }
|
|
2618
2619
|
});
|
|
2619
2620
|
}
|
|
2620
2621
|
else if (j >= 0) {
|
|
2621
|
-
const W = { ...
|
|
2622
|
-
Y.length === 0 ?
|
|
2622
|
+
const W = { ...V[j] }, Y = W.actions.filter((X) => X !== C);
|
|
2623
|
+
Y.length === 0 ? V.splice(j, 1) : (W.actions = Y, V[j] = W);
|
|
2623
2624
|
}
|
|
2624
|
-
const G = t.value.find((W) => W.subject ===
|
|
2625
|
-
G && Mn(
|
|
2625
|
+
const G = t.value.find((W) => W.subject === d);
|
|
2626
|
+
G && Mn(V, d, G.actions), r("update:model-value", V);
|
|
2626
2627
|
}
|
|
2627
|
-
function
|
|
2628
|
-
const
|
|
2629
|
-
(
|
|
2628
|
+
function R(d, C) {
|
|
2629
|
+
const U = d.options.filter(
|
|
2630
|
+
(V) => y(d, V.value, C)
|
|
2630
2631
|
);
|
|
2631
|
-
return
|
|
2632
|
-
(
|
|
2632
|
+
return U.length === 0 ? !1 : U.every(
|
|
2633
|
+
(V) => S(d, V.value, C) || b(d, V.value, C)
|
|
2633
2634
|
);
|
|
2634
2635
|
}
|
|
2635
|
-
function
|
|
2636
|
-
const
|
|
2637
|
-
(j) =>
|
|
2636
|
+
function k(d, C) {
|
|
2637
|
+
const U = d.options.filter(
|
|
2638
|
+
(j) => y(d, j.value, C)
|
|
2638
2639
|
);
|
|
2639
|
-
if (
|
|
2640
|
-
const
|
|
2641
|
-
(j) => S(
|
|
2640
|
+
if (U.length === 0) return !1;
|
|
2641
|
+
const V = U.filter(
|
|
2642
|
+
(j) => S(d, j.value, C) || b(d, j.value, C)
|
|
2642
2643
|
).length;
|
|
2643
|
-
return
|
|
2644
|
-
}
|
|
2645
|
-
function
|
|
2646
|
-
const
|
|
2647
|
-
for (const j of
|
|
2648
|
-
if (!
|
|
2649
|
-
const G = j.value, W =
|
|
2650
|
-
(
|
|
2644
|
+
return V > 0 && V < U.length;
|
|
2645
|
+
}
|
|
2646
|
+
function B(d, C, U) {
|
|
2647
|
+
const V = [...e.value];
|
|
2648
|
+
for (const j of d.options) {
|
|
2649
|
+
if (!y(d, j.value, C)) continue;
|
|
2650
|
+
const G = j.value, W = V.findIndex(
|
|
2651
|
+
(X) => X.subject === G && !X.inverted
|
|
2651
2652
|
);
|
|
2652
|
-
if (
|
|
2653
|
+
if (U)
|
|
2653
2654
|
if (W >= 0) {
|
|
2654
|
-
const
|
|
2655
|
-
ne.add(C),
|
|
2655
|
+
const X = { ...V[W] }, ne = new Set(X.actions);
|
|
2656
|
+
ne.add(C), X.actions = Array.from(ne), V[W] = X;
|
|
2656
2657
|
} else {
|
|
2657
|
-
const
|
|
2658
|
-
if (!
|
|
2658
|
+
const X = t.value.find((fe) => fe.subject === G);
|
|
2659
|
+
if (!X) continue;
|
|
2659
2660
|
const {
|
|
2660
2661
|
category: ne,
|
|
2661
2662
|
showByFeatureFlag: Q,
|
|
2662
2663
|
isCategoryCover: _e,
|
|
2663
2664
|
...ce
|
|
2664
|
-
} =
|
|
2665
|
-
|
|
2665
|
+
} = X, se = D(d, G);
|
|
2666
|
+
V.push({
|
|
2666
2667
|
...ce,
|
|
2667
2668
|
actions: [C],
|
|
2668
2669
|
...se !== void 0 && { conditions: se }
|
|
2669
2670
|
});
|
|
2670
2671
|
}
|
|
2671
2672
|
else if (W >= 0) {
|
|
2672
|
-
const
|
|
2673
|
-
ne.length === 0 ?
|
|
2673
|
+
const X = { ...V[W] }, ne = X.actions.filter((Q) => Q !== C);
|
|
2674
|
+
ne.length === 0 ? V.splice(W, 1) : (X.actions = ne, V[W] = X);
|
|
2674
2675
|
}
|
|
2675
|
-
const Y = t.value.find((
|
|
2676
|
-
Y && Mn(
|
|
2676
|
+
const Y = t.value.find((X) => X.subject === G);
|
|
2677
|
+
Y && Mn(V, G, Y.actions);
|
|
2677
2678
|
}
|
|
2678
|
-
r("update:model-value",
|
|
2679
|
+
r("update:model-value", V);
|
|
2679
2680
|
}
|
|
2680
|
-
function
|
|
2681
|
-
const C = `permissionSet.actionLabels.${
|
|
2682
|
-
return l(C,
|
|
2681
|
+
function x(d) {
|
|
2682
|
+
const C = `permissionSet.actionLabels.${d}`, U = Po[d] ?? d.charAt(0).toUpperCase() + d.slice(1);
|
|
2683
|
+
return l(C, U);
|
|
2683
2684
|
}
|
|
2684
2685
|
return {
|
|
2685
2686
|
categoryGroups: u,
|
|
2686
2687
|
toggleCategory: i,
|
|
2687
2688
|
isAllManageChecked: E,
|
|
2688
|
-
isAllManageIndeterminate:
|
|
2689
|
+
isAllManageIndeterminate: T,
|
|
2689
2690
|
toggleAllManage: N,
|
|
2690
2691
|
isManageChecked: F,
|
|
2691
2692
|
isManageIndeterminate: L,
|
|
@@ -2694,15 +2695,15 @@ function Po(e, t, n, r) {
|
|
|
2694
2695
|
isActionChecked: S,
|
|
2695
2696
|
isRowFullyCoveredByCover: c,
|
|
2696
2697
|
isActionCoveredByCover: b,
|
|
2697
|
-
permissionDefinesAction:
|
|
2698
|
-
toggleAction:
|
|
2699
|
-
isAllActionChecked:
|
|
2700
|
-
isAllActionIndeterminate:
|
|
2701
|
-
toggleAllAction:
|
|
2702
|
-
actionLabel:
|
|
2698
|
+
permissionDefinesAction: y,
|
|
2699
|
+
toggleAction: v,
|
|
2700
|
+
isAllActionChecked: R,
|
|
2701
|
+
isAllActionIndeterminate: k,
|
|
2702
|
+
toggleAllAction: B,
|
|
2703
|
+
actionLabel: x
|
|
2703
2704
|
};
|
|
2704
2705
|
}
|
|
2705
|
-
const
|
|
2706
|
+
const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm-600" }, xo = { class: "mt-16" }, Wo = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Go = ["onClick"], Zo = { class: "flex justify-center" }, Yo = { class: "flex items-center min-w-0 gap-8" }, Xo = ["title", "onClick"], Bo = { class: "flex justify-center" }, Ho = /* @__PURE__ */ Le({
|
|
2706
2707
|
__name: "BasePermission",
|
|
2707
2708
|
props: {
|
|
2708
2709
|
modelValue: {
|
|
@@ -2725,144 +2726,144 @@ const jo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
2725
2726
|
emits: ["update:model-value"],
|
|
2726
2727
|
setup(e, { emit: t }) {
|
|
2727
2728
|
const n = e, r = t, { t: l } = He(), a = z(() => [...Gn, ...n.additionalPermissions]), {
|
|
2728
|
-
categoryGroups:
|
|
2729
|
+
categoryGroups: m,
|
|
2729
2730
|
isAllManageChecked: u,
|
|
2730
2731
|
isAllManageIndeterminate: i,
|
|
2731
2732
|
toggleAllManage: g,
|
|
2732
2733
|
isManageChecked: E,
|
|
2733
|
-
isManageIndeterminate:
|
|
2734
|
+
isManageIndeterminate: T,
|
|
2734
2735
|
toggleManage: N,
|
|
2735
2736
|
isActionChecked: F,
|
|
2736
|
-
isRowFullyCoveredByCover:
|
|
2737
|
+
isRowFullyCoveredByCover: w,
|
|
2737
2738
|
isActionCoveredByCover: L,
|
|
2738
|
-
permissionDefinesAction:
|
|
2739
|
+
permissionDefinesAction: D,
|
|
2739
2740
|
toggleAction: f,
|
|
2740
2741
|
isAllActionChecked: h,
|
|
2741
2742
|
isAllActionIndeterminate: S,
|
|
2742
2743
|
toggleAllAction: c,
|
|
2743
2744
|
actionLabel: b
|
|
2744
|
-
} =
|
|
2745
|
+
} = jo(
|
|
2745
2746
|
en(n, "modelValue"),
|
|
2746
2747
|
a,
|
|
2747
2748
|
en(n, "excludedSubjects"),
|
|
2748
|
-
(
|
|
2749
|
+
(R, k) => r("update:model-value", k)
|
|
2749
2750
|
);
|
|
2750
|
-
function
|
|
2751
|
-
const
|
|
2752
|
-
return
|
|
2751
|
+
function y(R) {
|
|
2752
|
+
const k = R.selectedSubjects.length;
|
|
2753
|
+
return k === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: k });
|
|
2753
2754
|
}
|
|
2754
|
-
function
|
|
2755
|
-
return E(
|
|
2756
|
-
(
|
|
2755
|
+
function v(R, k) {
|
|
2756
|
+
return E(R, k) || w(R, k) ? !0 : R.actionColumns.some(
|
|
2757
|
+
(B) => D(R, k, B) && (F(R, k, B) || L(R, k, B))
|
|
2757
2758
|
);
|
|
2758
2759
|
}
|
|
2759
|
-
return (
|
|
2760
|
-
const
|
|
2761
|
-
return J(), ie("div",
|
|
2762
|
-
(J(!0), ie(
|
|
2763
|
-
key:
|
|
2764
|
-
subtitle:
|
|
2760
|
+
return (R, k) => {
|
|
2761
|
+
const B = we("FmCheckbox");
|
|
2762
|
+
return J(), ie("div", Uo, [
|
|
2763
|
+
(J(!0), ie(Re, null, Ie(H(m), (x) => (J(), Ne(Bt, {
|
|
2764
|
+
key: x.category,
|
|
2765
|
+
subtitle: y(x)
|
|
2765
2766
|
}, {
|
|
2766
|
-
title:
|
|
2767
|
-
ae("p",
|
|
2767
|
+
title: me(() => [
|
|
2768
|
+
ae("p", Vo, Oe(x.label), 1)
|
|
2768
2769
|
]),
|
|
2769
|
-
default:
|
|
2770
|
-
ae("div",
|
|
2770
|
+
default: me(() => [
|
|
2771
|
+
ae("div", xo, [
|
|
2771
2772
|
ae("div", {
|
|
2772
2773
|
class: "grid items-center px-12 py-8",
|
|
2773
2774
|
style: nt({
|
|
2774
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2775
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2775
2776
|
})
|
|
2776
2777
|
}, [
|
|
2777
|
-
|
|
2778
|
-
ae("div",
|
|
2779
|
-
(J(!0), ie(
|
|
2780
|
-
key: `header-${
|
|
2778
|
+
k[0] || (k[0] = ae("div", null, null, -1)),
|
|
2779
|
+
ae("div", Wo, Oe(H(l)("team.memberForm.permissions.columnManage")), 1),
|
|
2780
|
+
(J(!0), ie(Re, null, Ie(x.actionColumns, (d) => (J(), ie("div", {
|
|
2781
|
+
key: `header-${d}`,
|
|
2781
2782
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2782
|
-
},
|
|
2783
|
+
}, Oe(H(b)(d)), 1))), 128))
|
|
2783
2784
|
], 4),
|
|
2784
2785
|
ae("div", {
|
|
2785
2786
|
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
2786
2787
|
style: nt({
|
|
2787
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2788
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2788
2789
|
})
|
|
2789
2790
|
}, [
|
|
2790
2791
|
ae("div", {
|
|
2791
2792
|
class: "cursor-pointer font-semibold",
|
|
2792
|
-
onClick: (
|
|
2793
|
-
},
|
|
2794
|
-
ae("div",
|
|
2795
|
-
ue(
|
|
2796
|
-
"model-value": H(u)(
|
|
2797
|
-
indeterminate: H(i)(
|
|
2793
|
+
onClick: (d) => !e.disable && H(g)(x)
|
|
2794
|
+
}, Oe(H(l)("team.labels.all")), 9, Go),
|
|
2795
|
+
ae("div", Zo, [
|
|
2796
|
+
ue(B, {
|
|
2797
|
+
"model-value": H(u)(x),
|
|
2798
|
+
indeterminate: H(i)(x),
|
|
2798
2799
|
value: !0,
|
|
2799
2800
|
disabled: e.disable,
|
|
2800
2801
|
size: "sm",
|
|
2801
2802
|
dense: "",
|
|
2802
|
-
"onUpdate:modelValue": (
|
|
2803
|
+
"onUpdate:modelValue": (d) => H(g)(x)
|
|
2803
2804
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2804
2805
|
]),
|
|
2805
|
-
(J(!0), ie(
|
|
2806
|
-
key: `all-${
|
|
2806
|
+
(J(!0), ie(Re, null, Ie(x.actionColumns, (d) => (J(), ie("div", {
|
|
2807
|
+
key: `all-${d}`,
|
|
2807
2808
|
class: "flex justify-center"
|
|
2808
2809
|
}, [
|
|
2809
|
-
ue(
|
|
2810
|
-
"model-value": H(h)(
|
|
2811
|
-
indeterminate: H(S)(
|
|
2812
|
-
value:
|
|
2810
|
+
ue(B, {
|
|
2811
|
+
"model-value": H(h)(x, d),
|
|
2812
|
+
indeterminate: H(S)(x, d),
|
|
2813
|
+
value: d,
|
|
2813
2814
|
disabled: e.disable,
|
|
2814
2815
|
size: "sm",
|
|
2815
2816
|
dense: "",
|
|
2816
|
-
"onUpdate:modelValue": (C) => H(c)(
|
|
2817
|
+
"onUpdate:modelValue": (C) => H(c)(x, d, C)
|
|
2817
2818
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2818
2819
|
]))), 128))
|
|
2819
2820
|
], 4),
|
|
2820
|
-
|
|
2821
|
-
(J(!0), ie(
|
|
2822
|
-
key:
|
|
2821
|
+
k[1] || (k[1] = ae("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2822
|
+
(J(!0), ie(Re, null, Ie(x.options, (d) => (J(), ie("div", {
|
|
2823
|
+
key: d.optionKey,
|
|
2823
2824
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2824
2825
|
style: nt({
|
|
2825
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2826
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2826
2827
|
})
|
|
2827
2828
|
}, [
|
|
2828
|
-
ae("div",
|
|
2829
|
+
ae("div", Yo, [
|
|
2829
2830
|
ae("span", {
|
|
2830
2831
|
class: "block truncate cursor-pointer",
|
|
2831
|
-
title:
|
|
2832
|
-
onClick: (C) => !e.disable && !H(
|
|
2833
|
-
},
|
|
2834
|
-
Se(
|
|
2835
|
-
option:
|
|
2836
|
-
isEffectiveSelected:
|
|
2837
|
-
isCoveredByCover: H(
|
|
2832
|
+
title: d.label,
|
|
2833
|
+
onClick: (C) => !e.disable && !H(w)(x, d.value) && H(N)(x, d.value, !H(E)(x, d.value))
|
|
2834
|
+
}, Oe(d.label), 9, Xo),
|
|
2835
|
+
Se(R.$slots, `checkbox-${d.value}-append`, {
|
|
2836
|
+
option: d,
|
|
2837
|
+
isEffectiveSelected: v(x, d.value),
|
|
2838
|
+
isCoveredByCover: H(w)(x, d.value) || x.actionColumns.some((C) => H(L)(x, d.value, C))
|
|
2838
2839
|
}),
|
|
2839
|
-
Se(
|
|
2840
|
-
option:
|
|
2841
|
-
isEffectiveSelected:
|
|
2842
|
-
isCoveredByCover: H(
|
|
2840
|
+
Se(R.$slots, `checkbox-${d.value}-icon`, {
|
|
2841
|
+
option: d,
|
|
2842
|
+
isEffectiveSelected: v(x, d.value),
|
|
2843
|
+
isCoveredByCover: H(w)(x, d.value) || x.actionColumns.some((C) => H(L)(x, d.value, C))
|
|
2843
2844
|
})
|
|
2844
2845
|
]),
|
|
2845
2846
|
ae("div", Bo, [
|
|
2846
|
-
ue(
|
|
2847
|
-
"model-value": H(E)(
|
|
2848
|
-
value:
|
|
2849
|
-
disabled: e.disable || H(
|
|
2850
|
-
indeterminate: H(
|
|
2847
|
+
ue(B, {
|
|
2848
|
+
"model-value": H(E)(x, d.value) || H(w)(x, d.value),
|
|
2849
|
+
value: d.value,
|
|
2850
|
+
disabled: e.disable || H(w)(x, d.value),
|
|
2851
|
+
indeterminate: H(T)(x, d.value),
|
|
2851
2852
|
size: "sm",
|
|
2852
|
-
"onUpdate:modelValue": (C) => H(N)(
|
|
2853
|
+
"onUpdate:modelValue": (C) => H(N)(x, d.value, C)
|
|
2853
2854
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2854
2855
|
]),
|
|
2855
|
-
(J(!0), ie(
|
|
2856
|
-
key: `${
|
|
2856
|
+
(J(!0), ie(Re, null, Ie(x.actionColumns, (C) => (J(), ie("div", {
|
|
2857
|
+
key: `${d.optionKey}-${C}`,
|
|
2857
2858
|
class: "flex justify-center"
|
|
2858
2859
|
}, [
|
|
2859
|
-
H(
|
|
2860
|
+
H(D)(x, d.value, C) ? (J(), Ne(B, {
|
|
2860
2861
|
key: 0,
|
|
2861
|
-
"model-value": H(F)(
|
|
2862
|
+
"model-value": H(F)(x, d.value, C) || H(L)(x, d.value, C),
|
|
2862
2863
|
value: C,
|
|
2863
|
-
disabled: e.disable || H(L)(
|
|
2864
|
+
disabled: e.disable || H(L)(x, d.value, C),
|
|
2864
2865
|
size: "sm",
|
|
2865
|
-
"onUpdate:modelValue": (
|
|
2866
|
+
"onUpdate:modelValue": (U) => H(f)(d.value, C, U)
|
|
2866
2867
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Me("", !0)
|
|
2867
2868
|
]))), 128))
|
|
2868
2869
|
], 4))), 128))
|
|
@@ -2873,13 +2874,13 @@ const jo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
2873
2874
|
]);
|
|
2874
2875
|
};
|
|
2875
2876
|
}
|
|
2876
|
-
}),
|
|
2877
|
+
}), $o = { class: "space-y-16" }, Jo = {
|
|
2877
2878
|
key: 0,
|
|
2878
2879
|
class: "flex fm-typo-en-title-sm-600"
|
|
2879
|
-
},
|
|
2880
|
+
}, Ko = {
|
|
2880
2881
|
key: 0,
|
|
2881
2882
|
class: "q-mr-xs text-red col"
|
|
2882
|
-
},
|
|
2883
|
+
}, zo = { class: "form-input" }, Qo = /* @__PURE__ */ Le({
|
|
2883
2884
|
__name: "AppForm",
|
|
2884
2885
|
props: {
|
|
2885
2886
|
title: {
|
|
@@ -2897,30 +2898,22 @@ const jo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm
|
|
|
2897
2898
|
},
|
|
2898
2899
|
setup(e) {
|
|
2899
2900
|
const t = e;
|
|
2900
|
-
return (n, r) => (J(), ie("div",
|
|
2901
|
+
return (n, r) => (J(), ie("div", $o, [
|
|
2901
2902
|
Se(n.$slots, "top", {}, () => [
|
|
2902
|
-
t.title ? (J(), ie("div",
|
|
2903
|
+
t.title ? (J(), ie("div", Jo, [
|
|
2903
2904
|
ae("div", null, [
|
|
2904
|
-
t.required ? (J(), ie("span",
|
|
2905
|
-
_r(
|
|
2905
|
+
t.required ? (J(), ie("span", Ko, "*")) : Me("", !0),
|
|
2906
|
+
_r(Oe(t.title), 1)
|
|
2906
2907
|
]),
|
|
2907
2908
|
Se(n.$slots, "title-right")
|
|
2908
2909
|
])) : Me("", !0)
|
|
2909
2910
|
]),
|
|
2910
|
-
ae("div",
|
|
2911
|
+
ae("div", zo, [
|
|
2911
2912
|
Se(n.$slots, "default")
|
|
2912
2913
|
])
|
|
2913
2914
|
]));
|
|
2914
2915
|
}
|
|
2915
|
-
})
|
|
2916
|
-
function Qo(e, t) {
|
|
2917
|
-
let n = "", r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
2918
|
-
const l = r.length;
|
|
2919
|
-
for (let a = 0; a < e; a++)
|
|
2920
|
-
n += r.charAt(Math.floor(Math.random() * l));
|
|
2921
|
-
return n;
|
|
2922
|
-
}
|
|
2923
|
-
const qo = { class: "col flex items-center" }, ea = {
|
|
2916
|
+
}), qo = { class: "col flex items-center" }, ea = {
|
|
2924
2917
|
key: 1,
|
|
2925
2918
|
class: "q-pa-sm form-error-message text-error"
|
|
2926
2919
|
}, ir = /* @__PURE__ */ Le({
|
|
@@ -2981,47 +2974,47 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
2981
2974
|
},
|
|
2982
2975
|
emits: ["update:model-value"],
|
|
2983
2976
|
setup(e, { emit: t }) {
|
|
2984
|
-
const n = e, r = t, { t: l } = He(), a = rt(!1),
|
|
2985
|
-
() => n.modelValue.filter((L) => n.options.some((
|
|
2986
|
-
),
|
|
2977
|
+
const n = e, r = t, { t: l } = He(), a = rt(!1), m = vr(), u = z(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), i = `checkbox-${Lr(6)}`, g = z(() => u.value !== !0), E = z(
|
|
2978
|
+
() => n.modelValue.filter((L) => n.options.some((D) => D.value === L))
|
|
2979
|
+
), T = z(
|
|
2987
2980
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2988
2981
|
), N = z(() => n.options.length > 0 && n.options.length === E.value.length);
|
|
2989
2982
|
function F() {
|
|
2990
|
-
const L = n.modelValue.filter((
|
|
2983
|
+
const L = n.modelValue.filter((D) => !E.value.includes(D));
|
|
2991
2984
|
if (N.value === !0)
|
|
2992
2985
|
r("update:model-value", L);
|
|
2993
2986
|
else {
|
|
2994
|
-
const
|
|
2995
|
-
r("update:model-value", [...L, ...
|
|
2987
|
+
const D = n.includeDisabledOptionsWhenSelectAll ? n.options.map((f) => f.value) : n.options.filter((f) => !f.disabled).map((f) => f.value);
|
|
2988
|
+
r("update:model-value", [...L, ...D]);
|
|
2996
2989
|
}
|
|
2997
2990
|
}
|
|
2998
|
-
function
|
|
2999
|
-
let f =
|
|
3000
|
-
|
|
2991
|
+
function w(L, D) {
|
|
2992
|
+
let f = yt(n.modelValue);
|
|
2993
|
+
D ? f.every((h) => h !== L) && f.push(L) : f = f.filter((h) => h !== L), r("update:model-value", f);
|
|
3001
2994
|
}
|
|
3002
|
-
return (L,
|
|
3003
|
-
const f =
|
|
3004
|
-
return J(), Ne(
|
|
2995
|
+
return (L, D) => {
|
|
2996
|
+
const f = we("FmCheckbox");
|
|
2997
|
+
return J(), Ne(Qo, {
|
|
3005
2998
|
id: i,
|
|
3006
2999
|
title: e.title,
|
|
3007
3000
|
required: !1
|
|
3008
3001
|
}, {
|
|
3009
|
-
top:
|
|
3002
|
+
top: me(() => [
|
|
3010
3003
|
Se(L.$slots, "top")
|
|
3011
3004
|
]),
|
|
3012
|
-
default:
|
|
3005
|
+
default: me(() => [
|
|
3013
3006
|
n.showAllToggle ? (J(), Ne(f, {
|
|
3014
3007
|
key: 0,
|
|
3015
3008
|
"model-value": N.value,
|
|
3016
3009
|
disabled: e.disable,
|
|
3017
|
-
label:
|
|
3010
|
+
label: T.value,
|
|
3018
3011
|
style: nt(`margin-bottom: ${n.gutter}px`),
|
|
3019
3012
|
size: "sm",
|
|
3020
3013
|
dense: "",
|
|
3021
|
-
value:
|
|
3014
|
+
value: T.value,
|
|
3022
3015
|
"onUpdate:modelValue": F
|
|
3023
3016
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Me("", !0),
|
|
3024
|
-
(J(!0), ie(
|
|
3017
|
+
(J(!0), ie(Re, null, Ie(e.options, (h, S) => (J(), ie("div", {
|
|
3025
3018
|
key: h.value,
|
|
3026
3019
|
style: nt(`margin-bottom: ${S < e.options.length - 1 ? n.gutter : 0}px`),
|
|
3027
3020
|
class: qe(S < e.options.length - 1 ? "q-mb-sm" : "")
|
|
@@ -3036,14 +3029,14 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3036
3029
|
size: "sm",
|
|
3037
3030
|
label: h.label,
|
|
3038
3031
|
value: h.label,
|
|
3039
|
-
"onUpdate:modelValue": (c) =>
|
|
3032
|
+
"onUpdate:modelValue": (c) => w(h.value, c)
|
|
3040
3033
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
3041
3034
|
Se(L.$slots, `checkbox-${h.key || h.value}-append`, {
|
|
3042
3035
|
option: h,
|
|
3043
3036
|
selected: e.modelValue.includes(h.value)
|
|
3044
3037
|
})
|
|
3045
3038
|
]),
|
|
3046
|
-
H(
|
|
3039
|
+
H(m)[`checkbox-${h.key || h.value}-end`] && (e.modelValue.includes(h.value) || e.falsyShowSlot) ? (J(), ie("div", {
|
|
3047
3040
|
key: 0,
|
|
3048
3041
|
class: qe([{ "q-checkbox disabled": e.disable || h.disabled }, "col"])
|
|
3049
3042
|
}, [
|
|
@@ -3054,7 +3047,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3054
3047
|
})
|
|
3055
3048
|
], 2)) : Me("", !0)
|
|
3056
3049
|
], 2),
|
|
3057
|
-
H(
|
|
3050
|
+
H(m)[`checkbox-${h.key || h.value}-bottom`] && (e.modelValue.includes(h.value) || e.falsyShowSlot) ? (J(), ie("div", {
|
|
3058
3051
|
key: 0,
|
|
3059
3052
|
class: qe(["q-mt-sm", { "q-checkbox disabled": e.disable || h.disabled }]),
|
|
3060
3053
|
style: nt(`margin-left: ${e.bottomSlotIndent}`)
|
|
@@ -3066,13 +3059,13 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3066
3059
|
})
|
|
3067
3060
|
], 6)) : Me("", !0)
|
|
3068
3061
|
], 6))), 128)),
|
|
3069
|
-
a.value && g.value ? (J(), ie("div", ea,
|
|
3062
|
+
a.value && g.value ? (J(), ie("div", ea, Oe(u.value), 1)) : Me("", !0)
|
|
3070
3063
|
]),
|
|
3071
3064
|
_: 3
|
|
3072
3065
|
}, 8, ["title"]);
|
|
3073
3066
|
};
|
|
3074
3067
|
}
|
|
3075
|
-
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture",
|
|
3068
|
+
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture", Dn = /* @__PURE__ */ Le({
|
|
3076
3069
|
__name: "ConditionPermission",
|
|
3077
3070
|
props: {
|
|
3078
3071
|
modelValue: {
|
|
@@ -3104,31 +3097,31 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3104
3097
|
...n.options.filter(
|
|
3105
3098
|
(E) => E.label.toLocaleLowerCase().includes(g.value.toLocaleLowerCase())
|
|
3106
3099
|
)
|
|
3107
|
-
]),
|
|
3108
|
-
const E =
|
|
3100
|
+
]), m = z(() => n.modelValue ? n.modelValue : [ht, ...n.options.map((E) => E.value)]), u = z(() => {
|
|
3101
|
+
const E = m.value.filter((T) => T !== ht).length;
|
|
3109
3102
|
return E === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: E });
|
|
3110
3103
|
});
|
|
3111
3104
|
function i(E) {
|
|
3112
|
-
const
|
|
3113
|
-
r("update:model-value",
|
|
3105
|
+
const T = E.length === a.value.length;
|
|
3106
|
+
r("update:model-value", T ? null : E.filter((N) => N !== ht));
|
|
3114
3107
|
}
|
|
3115
3108
|
const g = rt("");
|
|
3116
|
-
return (E,
|
|
3117
|
-
const N =
|
|
3118
|
-
return J(), Ne(
|
|
3119
|
-
title:
|
|
3120
|
-
ae("p", ta,
|
|
3109
|
+
return (E, T) => {
|
|
3110
|
+
const N = we("fm-search");
|
|
3111
|
+
return J(), Ne(Bt, { subtitle: u.value }, {
|
|
3112
|
+
title: me(() => [
|
|
3113
|
+
ae("p", ta, Oe(H(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3121
3114
|
]),
|
|
3122
|
-
default:
|
|
3115
|
+
default: me(() => [
|
|
3123
3116
|
e.options.length > 1 ? (J(), Ne(N, {
|
|
3124
3117
|
key: 0,
|
|
3125
3118
|
modelValue: g.value,
|
|
3126
|
-
"onUpdate:modelValue":
|
|
3119
|
+
"onUpdate:modelValue": T[0] || (T[0] = (F) => g.value = F),
|
|
3127
3120
|
class: "mt-16",
|
|
3128
3121
|
placeholder: H(l)("team.memberForm.permissions.search", { context: e.context })
|
|
3129
3122
|
}, null, 8, ["modelValue", "placeholder"])) : Me("", !0),
|
|
3130
3123
|
ue(ir, {
|
|
3131
|
-
"model-value":
|
|
3124
|
+
"model-value": m.value,
|
|
3132
3125
|
options: a.value,
|
|
3133
3126
|
"show-intermediate": !1,
|
|
3134
3127
|
"show-all-toggle": !0,
|
|
@@ -3138,10 +3131,10 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3138
3131
|
class: "mt-16",
|
|
3139
3132
|
"onUpdate:modelValue": i
|
|
3140
3133
|
}, et({ _: 2 }, [
|
|
3141
|
-
|
|
3134
|
+
Ie(a.value, (F) => ({
|
|
3142
3135
|
name: `checkbox-${F.value}-append`,
|
|
3143
|
-
fn:
|
|
3144
|
-
Se(E.$slots, `checkbox-${F.value}-append`, { option:
|
|
3136
|
+
fn: me(({ option: w }) => [
|
|
3137
|
+
Se(E.$slots, `checkbox-${F.value}-append`, { option: w })
|
|
3145
3138
|
])
|
|
3146
3139
|
}))
|
|
3147
3140
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3183,24 +3176,24 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3183
3176
|
...n.roles.map((E) => ({
|
|
3184
3177
|
label: E.name,
|
|
3185
3178
|
value: E._id,
|
|
3186
|
-
disabled: !!g && E.restaurants.every(({ id:
|
|
3179
|
+
disabled: !!g && E.restaurants.every(({ id: T }) => !g.includes(T))
|
|
3187
3180
|
}))
|
|
3188
3181
|
];
|
|
3189
|
-
}),
|
|
3190
|
-
const g =
|
|
3182
|
+
}), m = z(() => n.modelValue ? n.modelValue : [bt, ...n.roles.map((g) => g._id)]), u = z(() => {
|
|
3183
|
+
const g = m.value.filter((E) => E !== bt).length;
|
|
3191
3184
|
return g === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: g });
|
|
3192
3185
|
});
|
|
3193
3186
|
function i(g) {
|
|
3194
3187
|
const E = g.length === a.value.length;
|
|
3195
|
-
r("update:model-value", E ? null : g.filter((
|
|
3188
|
+
r("update:model-value", E ? null : g.filter((T) => T !== bt));
|
|
3196
3189
|
}
|
|
3197
|
-
return (g, E) => (J(), Ne(
|
|
3198
|
-
title:
|
|
3199
|
-
ae("p", na,
|
|
3190
|
+
return (g, E) => (J(), Ne(Bt, { subtitle: u.value }, {
|
|
3191
|
+
title: me(() => [
|
|
3192
|
+
ae("p", na, Oe(H(l)("team.memberForm.permissions.roles")), 1)
|
|
3200
3193
|
]),
|
|
3201
|
-
default:
|
|
3194
|
+
default: me(() => [
|
|
3202
3195
|
ue(ir, {
|
|
3203
|
-
"model-value":
|
|
3196
|
+
"model-value": m.value,
|
|
3204
3197
|
options: a.value,
|
|
3205
3198
|
"show-intermediate": !1,
|
|
3206
3199
|
"show-all-toggle": !1,
|
|
@@ -3209,10 +3202,10 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3209
3202
|
class: "mt-16",
|
|
3210
3203
|
"onUpdate:modelValue": i
|
|
3211
3204
|
}, et({ _: 2 }, [
|
|
3212
|
-
|
|
3213
|
-
name: `checkbox-${
|
|
3214
|
-
fn:
|
|
3215
|
-
Se(g.$slots, `checkbox-${
|
|
3205
|
+
Ie(a.value, (T) => ({
|
|
3206
|
+
name: `checkbox-${T.value}-append`,
|
|
3207
|
+
fn: me(({ option: N }) => [
|
|
3208
|
+
Se(g.$slots, `checkbox-${T.value}-append`, { option: N })
|
|
3216
3209
|
])
|
|
3217
3210
|
}))
|
|
3218
3211
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3249,7 +3242,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3249
3242
|
setup(e, { emit: t }) {
|
|
3250
3243
|
const n = t, { t: r } = He();
|
|
3251
3244
|
return (l, a) => {
|
|
3252
|
-
const
|
|
3245
|
+
const m = we("FmRadio"), u = we("FmRadioGroup");
|
|
3253
3246
|
return J(), Ne(Cr, {
|
|
3254
3247
|
title: e.title,
|
|
3255
3248
|
builders: e.builders,
|
|
@@ -3260,27 +3253,27 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3260
3253
|
onUpdateForm: a[0] || (a[0] = (i) => n("update-form", i)),
|
|
3261
3254
|
onApply: a[1] || (a[1] = (i) => n("apply"))
|
|
3262
3255
|
}, {
|
|
3263
|
-
section:
|
|
3256
|
+
section: me(({ builder: i }) => [
|
|
3264
3257
|
e.coverOverride.shouldShowInheritToggle(e.entry, i) ? (J(), ie("div", sa, [
|
|
3265
3258
|
ue(u, {
|
|
3266
3259
|
"model-value": e.inheritModeFor(i),
|
|
3267
3260
|
disabled: e.disable,
|
|
3268
3261
|
"onUpdate:modelValue": (g) => n("update-inherit-mode", { builder: i, mode: g })
|
|
3269
3262
|
}, {
|
|
3270
|
-
default:
|
|
3263
|
+
default: me(() => [
|
|
3271
3264
|
ae("div", null, [
|
|
3272
|
-
ue(
|
|
3265
|
+
ue(m, {
|
|
3273
3266
|
value: "inherit",
|
|
3274
3267
|
label: H(r)("team.memberForm.permissions.conditionCover.inherit", {
|
|
3275
3268
|
cover: e.coverOverride.coverLabel(e.subject)
|
|
3276
3269
|
})
|
|
3277
3270
|
}, null, 8, ["label"]),
|
|
3278
|
-
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? (J(), ie("p", oa, " (" +
|
|
3271
|
+
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? (J(), ie("p", oa, " (" + Oe(H(r)(
|
|
3279
3272
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).labelKey,
|
|
3280
3273
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).params ?? {}
|
|
3281
3274
|
)) + ") ", 1)) : Me("", !0)
|
|
3282
3275
|
]),
|
|
3283
|
-
ue(
|
|
3276
|
+
ue(m, {
|
|
3284
3277
|
value: "custom",
|
|
3285
3278
|
label: H(r)("team.memberForm.permissions.conditionCover.custom")
|
|
3286
3279
|
}, null, 8, ["label"])
|
|
@@ -3309,7 +3302,7 @@ const qo = { class: "col flex items-center" }, ea = {
|
|
|
3309
3302
|
}
|
|
3310
3303
|
}), la = {
|
|
3311
3304
|
async readWarehouses() {
|
|
3312
|
-
return
|
|
3305
|
+
return Ar(await Rr().get("/warehouses"));
|
|
3313
3306
|
}
|
|
3314
3307
|
};
|
|
3315
3308
|
function Pn(e, t) {
|
|
@@ -3320,10 +3313,10 @@ function Pn(e, t) {
|
|
|
3320
3313
|
function jn(e, t) {
|
|
3321
3314
|
return e.some((n) => n.subject === t && n.inverted) ? e : [...e, { subject: t, actions: ["manage"], inverted: !0 }];
|
|
3322
3315
|
}
|
|
3323
|
-
function
|
|
3324
|
-
const { category: r, showByFeatureFlag: l, isCategoryCover: a, ...
|
|
3316
|
+
function Un(e, t, n) {
|
|
3317
|
+
const { category: r, showByFeatureFlag: l, isCategoryCover: a, ...m } = e;
|
|
3325
3318
|
return {
|
|
3326
|
-
...
|
|
3319
|
+
...m,
|
|
3327
3320
|
actions: t,
|
|
3328
3321
|
...n !== void 0 && { conditions: n }
|
|
3329
3322
|
};
|
|
@@ -3333,40 +3326,40 @@ function ia(e, t, n, r) {
|
|
|
3333
3326
|
e.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3334
3327
|
), a = new Set(
|
|
3335
3328
|
t.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3336
|
-
),
|
|
3329
|
+
), m = new Set(
|
|
3337
3330
|
n.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3338
3331
|
);
|
|
3339
3332
|
let u = [...n];
|
|
3340
3333
|
for (const i of l)
|
|
3341
|
-
a.has(i) || (
|
|
3334
|
+
a.has(i) || (m.has(i) && (u = u.filter((E) => E.subject !== i)), (!m.has(i) || Pn(u, i)) && (u = jn(u, i)));
|
|
3342
3335
|
for (const i of a)
|
|
3343
3336
|
if (!l.has(i)) {
|
|
3344
3337
|
const g = u.some((E) => E.subject === i && E.inverted);
|
|
3345
|
-
if (u = u.filter((E) => !(E.subject === i && E.inverted)), !g && !
|
|
3338
|
+
if (u = u.filter((E) => !(E.subject === i && E.inverted)), !g && !m.has(i)) {
|
|
3346
3339
|
const E = t.find(
|
|
3347
3340
|
(N) => N.subject === i && !N.inverted
|
|
3348
|
-
),
|
|
3349
|
-
|
|
3341
|
+
), T = r(i);
|
|
3342
|
+
T && E && u.push(Un(T, E.actions, E.conditions));
|
|
3350
3343
|
}
|
|
3351
3344
|
}
|
|
3352
3345
|
for (const i of a) {
|
|
3353
3346
|
if (!l.has(i)) continue;
|
|
3354
|
-
const g = e.find((
|
|
3347
|
+
const g = e.find((w) => w.subject === i && !w.inverted), E = t.find((w) => w.subject === i && !w.inverted);
|
|
3355
3348
|
if (!g || !E) continue;
|
|
3356
|
-
const
|
|
3357
|
-
if (
|
|
3349
|
+
const T = new Set(g.actions), N = new Set(E.actions);
|
|
3350
|
+
if (T.size === N.size && [...T].every((w) => N.has(w)))
|
|
3358
3351
|
continue;
|
|
3359
|
-
const F = u.findIndex((
|
|
3352
|
+
const F = u.findIndex((w) => w.subject === i && !w.inverted);
|
|
3360
3353
|
if (F >= 0)
|
|
3361
3354
|
u[F] = {
|
|
3362
3355
|
...u[F],
|
|
3363
3356
|
actions: Array.from(N)
|
|
3364
3357
|
};
|
|
3365
3358
|
else {
|
|
3366
|
-
const
|
|
3367
|
-
|
|
3359
|
+
const w = r(i);
|
|
3360
|
+
w && u.push(Un(w, Array.from(N)));
|
|
3368
3361
|
}
|
|
3369
|
-
|
|
3362
|
+
T.has("manage") && !N.has("manage") && Pn(u, i) && (u = jn(u, i)), !T.has("manage") && N.has("manage") && (u = u.filter((w) => !(w.subject === i && w.inverted)));
|
|
3370
3363
|
}
|
|
3371
3364
|
return u;
|
|
3372
3365
|
}
|
|
@@ -3389,7 +3382,7 @@ function ua(e) {
|
|
|
3389
3382
|
const t = (e || "").toUpperCase();
|
|
3390
3383
|
return ca[t] ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
3391
3384
|
}
|
|
3392
|
-
function
|
|
3385
|
+
function ma(e, t) {
|
|
3393
3386
|
return e != null && e.timezone ? e.timezone : e != null && e.timeZone ? e.timeZone : ua((e == null ? void 0 : e.country) ?? t);
|
|
3394
3387
|
}
|
|
3395
3388
|
function gt(e, t) {
|
|
@@ -3402,7 +3395,7 @@ function We(e) {
|
|
|
3402
3395
|
return;
|
|
3403
3396
|
}
|
|
3404
3397
|
}
|
|
3405
|
-
function
|
|
3398
|
+
function da(e, t) {
|
|
3406
3399
|
return e.find((n) => !n.inverted && n.subject === t);
|
|
3407
3400
|
}
|
|
3408
3401
|
function Mt(e, t) {
|
|
@@ -3411,9 +3404,9 @@ function Mt(e, t) {
|
|
|
3411
3404
|
}
|
|
3412
3405
|
function Yt(e, t) {
|
|
3413
3406
|
const n = We(e);
|
|
3414
|
-
return
|
|
3407
|
+
return Dt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3415
3408
|
}
|
|
3416
|
-
function
|
|
3409
|
+
function Vn(e, t, n) {
|
|
3417
3410
|
return {
|
|
3418
3411
|
...Yt(e, n),
|
|
3419
3412
|
...tt(We(t), n)
|
|
@@ -3427,196 +3420,196 @@ function fa(e, t, n) {
|
|
|
3427
3420
|
function a(c) {
|
|
3428
3421
|
return t.value.find((b) => b.subject === c);
|
|
3429
3422
|
}
|
|
3430
|
-
function
|
|
3431
|
-
var
|
|
3423
|
+
function m(c) {
|
|
3424
|
+
var y;
|
|
3432
3425
|
const b = l(c);
|
|
3433
|
-
return b ? (
|
|
3426
|
+
return b ? (y = a(b)) == null ? void 0 : y.label : void 0;
|
|
3434
3427
|
}
|
|
3435
3428
|
function u(c) {
|
|
3436
|
-
return
|
|
3429
|
+
return da(e.value, c);
|
|
3437
3430
|
}
|
|
3438
3431
|
function i(c, b) {
|
|
3439
3432
|
return tt(We(c), b);
|
|
3440
3433
|
}
|
|
3441
3434
|
function g(c, b) {
|
|
3442
|
-
var
|
|
3443
|
-
if (!(((
|
|
3444
|
-
const
|
|
3445
|
-
if (!
|
|
3446
|
-
const
|
|
3447
|
-
return
|
|
3435
|
+
var R;
|
|
3436
|
+
if (!(((R = b.appliesToActions) == null ? void 0 : R.call(b, c.actions)) ?? !0)) return !1;
|
|
3437
|
+
const y = l(c.subject);
|
|
3438
|
+
if (!y) return !1;
|
|
3439
|
+
const v = u(y);
|
|
3440
|
+
return v ? Object.keys(i(v, b)).length > 0 : !1;
|
|
3448
3441
|
}
|
|
3449
3442
|
function E(c, b) {
|
|
3450
3443
|
if (!g(c, b) || r.value.has(gt(c.subject, b))) return "custom";
|
|
3451
3444
|
if (c.index === null) return "inherit";
|
|
3452
|
-
const
|
|
3453
|
-
if (
|
|
3454
|
-
const
|
|
3455
|
-
if (JSON.stringify(
|
|
3445
|
+
const y = e.value[c.index], v = l(c.subject), R = v ? u(v) : void 0;
|
|
3446
|
+
if (y && R) {
|
|
3447
|
+
const k = tt(We(y), b), B = i(R, b);
|
|
3448
|
+
if (JSON.stringify(k) === JSON.stringify(B)) return "inherit";
|
|
3456
3449
|
}
|
|
3457
3450
|
return "custom";
|
|
3458
3451
|
}
|
|
3459
|
-
function
|
|
3452
|
+
function T(c, b, y) {
|
|
3460
3453
|
if (!b.summarizeForm) return;
|
|
3461
|
-
const
|
|
3462
|
-
if (!
|
|
3463
|
-
const
|
|
3464
|
-
if (!
|
|
3465
|
-
const
|
|
3466
|
-
return b.summarizeForm(
|
|
3454
|
+
const v = l(c.subject);
|
|
3455
|
+
if (!v) return;
|
|
3456
|
+
const R = u(v);
|
|
3457
|
+
if (!R) return;
|
|
3458
|
+
const k = b.fromCondition(i(R, b));
|
|
3459
|
+
return b.summarizeForm(k, { timeZone: y });
|
|
3467
3460
|
}
|
|
3468
3461
|
function N(c, b) {
|
|
3469
3462
|
if (c.index === null) return;
|
|
3470
|
-
const
|
|
3471
|
-
if (
|
|
3472
|
-
|
|
3473
|
-
else if (
|
|
3474
|
-
const C =
|
|
3475
|
-
Object.keys(C).length === 0 ? delete
|
|
3463
|
+
const y = [...e.value], v = { ...y[c.index] }, R = Yt(v, b), k = Object.keys(R).length === 0, B = l(c.subject), x = B ? u(B) : void 0, d = x ? Mt(x, v) : !1;
|
|
3464
|
+
if (k && d)
|
|
3465
|
+
y.splice(c.index, 1);
|
|
3466
|
+
else if (x) {
|
|
3467
|
+
const C = Vn(v, x, b);
|
|
3468
|
+
Object.keys(C).length === 0 ? delete v.conditions : v.conditions = JSON.stringify(C), y[c.index] = v;
|
|
3476
3469
|
} else
|
|
3477
|
-
|
|
3478
|
-
n(
|
|
3479
|
-
}
|
|
3480
|
-
function F(c, b,
|
|
3481
|
-
const
|
|
3482
|
-
if (
|
|
3483
|
-
const
|
|
3484
|
-
|
|
3470
|
+
k ? delete v.conditions : v.conditions = JSON.stringify(R), y[c.index] = v;
|
|
3471
|
+
n(y);
|
|
3472
|
+
}
|
|
3473
|
+
function F(c, b, y) {
|
|
3474
|
+
const v = gt(c.subject, b);
|
|
3475
|
+
if (y === "inherit") {
|
|
3476
|
+
const k = new Set(r.value);
|
|
3477
|
+
k.delete(v), r.value = k, N(c, b);
|
|
3485
3478
|
return;
|
|
3486
3479
|
}
|
|
3487
|
-
const
|
|
3488
|
-
|
|
3480
|
+
const R = new Set(r.value);
|
|
3481
|
+
R.add(v), r.value = R, c.index === null && h(c, b, b.fromCondition(void 0), {
|
|
3489
3482
|
forceCreateRule: !0
|
|
3490
3483
|
});
|
|
3491
3484
|
}
|
|
3492
|
-
function
|
|
3485
|
+
function w(c) {
|
|
3493
3486
|
const b = l(c);
|
|
3494
3487
|
if (!b) return [];
|
|
3495
|
-
const
|
|
3496
|
-
return (
|
|
3488
|
+
const y = u(b);
|
|
3489
|
+
return (y == null ? void 0 : y.actions) ?? [];
|
|
3497
3490
|
}
|
|
3498
3491
|
function L(c, b) {
|
|
3499
|
-
return e.value.filter((
|
|
3500
|
-
if (
|
|
3501
|
-
const
|
|
3502
|
-
return
|
|
3492
|
+
return e.value.filter((y) => {
|
|
3493
|
+
if (y.inverted) return !1;
|
|
3494
|
+
const v = y.subject;
|
|
3495
|
+
return v === c || l(v) !== c ? !1 : r.value.has(gt(v, b)) ? !0 : Object.keys(tt(We(y), b)).length > 0;
|
|
3503
3496
|
});
|
|
3504
3497
|
}
|
|
3505
|
-
function
|
|
3506
|
-
const
|
|
3507
|
-
for (const
|
|
3508
|
-
if (!
|
|
3509
|
-
const
|
|
3510
|
-
l(
|
|
3498
|
+
function D(c, b) {
|
|
3499
|
+
const y = `::${b.builderKey}`, v = new Set(r.value);
|
|
3500
|
+
for (const R of v) {
|
|
3501
|
+
if (!R.endsWith(y)) continue;
|
|
3502
|
+
const k = R.slice(0, -y.length);
|
|
3503
|
+
l(k) === c && v.delete(R);
|
|
3511
3504
|
}
|
|
3512
|
-
r.value =
|
|
3513
|
-
}
|
|
3514
|
-
function f(c, b,
|
|
3515
|
-
const
|
|
3516
|
-
return c.reduce((
|
|
3517
|
-
if (
|
|
3518
|
-
return
|
|
3519
|
-
const
|
|
3520
|
-
if (
|
|
3521
|
-
return
|
|
3522
|
-
if (Mt(b,
|
|
3523
|
-
return
|
|
3524
|
-
const
|
|
3525
|
-
if (Object.keys(
|
|
3526
|
-
const { conditions: C, ...
|
|
3527
|
-
|
|
3505
|
+
r.value = v;
|
|
3506
|
+
}
|
|
3507
|
+
function f(c, b, y) {
|
|
3508
|
+
const v = b.subject;
|
|
3509
|
+
return c.reduce((R, k) => {
|
|
3510
|
+
if (k.inverted)
|
|
3511
|
+
return R.push(k), R;
|
|
3512
|
+
const B = k.subject;
|
|
3513
|
+
if (B === v || l(B) !== v)
|
|
3514
|
+
return R.push(k), R;
|
|
3515
|
+
if (Mt(b, k) && Object.keys(Yt(k, y)).length === 0)
|
|
3516
|
+
return R;
|
|
3517
|
+
const d = Vn(k, b, y);
|
|
3518
|
+
if (Object.keys(d).length === 0) {
|
|
3519
|
+
const { conditions: C, ...U } = k;
|
|
3520
|
+
R.push(U);
|
|
3528
3521
|
} else
|
|
3529
|
-
|
|
3530
|
-
return
|
|
3522
|
+
R.push({ ...k, conditions: JSON.stringify(d) });
|
|
3523
|
+
return R;
|
|
3531
3524
|
}, []);
|
|
3532
3525
|
}
|
|
3533
|
-
function h(c, b,
|
|
3534
|
-
var
|
|
3535
|
-
const
|
|
3536
|
-
let
|
|
3537
|
-
const
|
|
3538
|
-
if (
|
|
3539
|
-
if (
|
|
3540
|
-
const j =
|
|
3526
|
+
function h(c, b, y, v = {}) {
|
|
3527
|
+
var V;
|
|
3528
|
+
const R = [...e.value];
|
|
3529
|
+
let k = c.index;
|
|
3530
|
+
const B = b.toCondition(y), x = Object.keys(B).length > 0;
|
|
3531
|
+
if (k === null && !x && !v.forceCreateRule) return;
|
|
3532
|
+
if (k === null) {
|
|
3533
|
+
const j = R.findIndex((G) => !G.inverted && G.subject === c.subject);
|
|
3541
3534
|
if (j !== -1)
|
|
3542
|
-
|
|
3535
|
+
k = j;
|
|
3543
3536
|
else {
|
|
3544
3537
|
const G = t.value.find((Q) => Q.subject === c.subject);
|
|
3545
3538
|
if (!G) return;
|
|
3546
3539
|
const {
|
|
3547
3540
|
category: W,
|
|
3548
3541
|
showByFeatureFlag: Y,
|
|
3549
|
-
isCategoryCover:
|
|
3542
|
+
isCategoryCover: X,
|
|
3550
3543
|
...ne
|
|
3551
3544
|
} = G;
|
|
3552
|
-
|
|
3545
|
+
R.push({
|
|
3553
3546
|
...ne,
|
|
3554
3547
|
actions: c.actions.length > 0 ? c.actions : ne.actions
|
|
3555
|
-
}),
|
|
3548
|
+
}), k = R.length - 1;
|
|
3556
3549
|
}
|
|
3557
3550
|
}
|
|
3558
|
-
const
|
|
3559
|
-
|
|
3560
|
-
.../* @__PURE__ */ new Set([...
|
|
3551
|
+
const d = { ...R[k] };
|
|
3552
|
+
d.actions = [
|
|
3553
|
+
.../* @__PURE__ */ new Set([...d.actions, ...c.actions])
|
|
3561
3554
|
];
|
|
3562
|
-
const C = We(
|
|
3563
|
-
if (Object.keys(
|
|
3555
|
+
const C = We(d), U = Dt(C, [{ builder: b, formValue: y }]);
|
|
3556
|
+
if (Object.keys(U).length === 0 ? delete d.conditions : d.conditions = JSON.stringify(U), R[k] = d, sn(c.subject, t.value)) {
|
|
3564
3557
|
const j = L(c.subject, b), G = () => {
|
|
3565
3558
|
var Y;
|
|
3566
|
-
|
|
3559
|
+
D(c.subject, b), n(f(R, d, b)), (Y = v.afterCommit) == null || Y.call(v);
|
|
3567
3560
|
}, W = () => {
|
|
3568
3561
|
var Y;
|
|
3569
|
-
n(
|
|
3562
|
+
n(R), (Y = v.afterCommit) == null || Y.call(v);
|
|
3570
3563
|
};
|
|
3571
3564
|
if (j.length === 0) {
|
|
3572
3565
|
G();
|
|
3573
3566
|
return;
|
|
3574
3567
|
}
|
|
3575
|
-
|
|
3568
|
+
v.onOverridesConflict ? v.onOverridesConflict({ override: G, keep: W }) : W();
|
|
3576
3569
|
return;
|
|
3577
3570
|
}
|
|
3578
|
-
n(
|
|
3571
|
+
n(R), (V = v.afterCommit) == null || V.call(v);
|
|
3579
3572
|
}
|
|
3580
|
-
function S(c, b,
|
|
3573
|
+
function S(c, b, y = {}) {
|
|
3581
3574
|
if (b.length === 0) return;
|
|
3582
|
-
const
|
|
3583
|
-
let
|
|
3575
|
+
const v = [...e.value];
|
|
3576
|
+
let R = v.findIndex((j) => !j.inverted && j.subject === c.subject), k = R === -1 ? void 0 : { ...v[R] }, B = We(k ?? {}) ?? {};
|
|
3584
3577
|
for (const j of b) {
|
|
3585
3578
|
const G = j.mode === "inherit" ? j.builder.fromCondition(void 0) : j.form;
|
|
3586
|
-
|
|
3579
|
+
B = Dt(B, [{ builder: j.builder, formValue: G }]);
|
|
3587
3580
|
}
|
|
3588
|
-
const
|
|
3589
|
-
if (!
|
|
3581
|
+
const x = b.some((j) => j.mode === "custom");
|
|
3582
|
+
if (!k && (Object.keys(B).length > 0 || x)) {
|
|
3590
3583
|
const j = t.value.find((ne) => ne.subject === c.subject);
|
|
3591
3584
|
if (!j) return;
|
|
3592
3585
|
const {
|
|
3593
3586
|
category: G,
|
|
3594
3587
|
showByFeatureFlag: W,
|
|
3595
3588
|
isCategoryCover: Y,
|
|
3596
|
-
...
|
|
3589
|
+
...X
|
|
3597
3590
|
} = j;
|
|
3598
|
-
|
|
3599
|
-
...
|
|
3600
|
-
actions: c.actions.length > 0 ? c.actions :
|
|
3601
|
-
},
|
|
3591
|
+
k = {
|
|
3592
|
+
...X,
|
|
3593
|
+
actions: c.actions.length > 0 ? c.actions : X.actions
|
|
3594
|
+
}, v.push(k), R = v.length - 1;
|
|
3602
3595
|
}
|
|
3603
|
-
if (
|
|
3596
|
+
if (k) {
|
|
3604
3597
|
const j = l(c.subject), G = j ? u(j) : void 0;
|
|
3605
|
-
if (!
|
|
3606
|
-
|
|
3598
|
+
if (!x && Object.keys(B).length === 0 && !!G && Mt(G, k))
|
|
3599
|
+
v.splice(R, 1), k = void 0;
|
|
3607
3600
|
else {
|
|
3608
|
-
if (
|
|
3609
|
-
.../* @__PURE__ */ new Set([...
|
|
3601
|
+
if (k.actions = [
|
|
3602
|
+
.../* @__PURE__ */ new Set([...k.actions, ...c.actions])
|
|
3610
3603
|
], G)
|
|
3611
3604
|
for (const Y of b)
|
|
3612
|
-
Y.mode === "inherit" && (
|
|
3613
|
-
...
|
|
3605
|
+
Y.mode === "inherit" && (B = {
|
|
3606
|
+
...B,
|
|
3614
3607
|
...tt(We(G), Y.builder)
|
|
3615
3608
|
});
|
|
3616
|
-
Object.keys(
|
|
3609
|
+
Object.keys(B).length === 0 ? delete k.conditions : k.conditions = JSON.stringify(B), v[R] = k;
|
|
3617
3610
|
}
|
|
3618
3611
|
}
|
|
3619
|
-
const
|
|
3612
|
+
const d = () => {
|
|
3620
3613
|
const j = new Set(r.value);
|
|
3621
3614
|
for (const G of b) {
|
|
3622
3615
|
const W = gt(c.subject, G.builder);
|
|
@@ -3625,37 +3618,37 @@ function fa(e, t, n) {
|
|
|
3625
3618
|
r.value = j;
|
|
3626
3619
|
}, C = (j) => {
|
|
3627
3620
|
var G;
|
|
3628
|
-
|
|
3621
|
+
d(), n(j), (G = y.afterCommit) == null || G.call(y);
|
|
3629
3622
|
};
|
|
3630
|
-
if (!sn(c.subject, t.value) || !
|
|
3631
|
-
C(
|
|
3623
|
+
if (!sn(c.subject, t.value) || !k) {
|
|
3624
|
+
C(v);
|
|
3632
3625
|
return;
|
|
3633
3626
|
}
|
|
3634
|
-
const
|
|
3635
|
-
let j =
|
|
3627
|
+
const U = b.map((j) => j.builder).filter((j) => L(c.subject, j).length > 0), V = () => {
|
|
3628
|
+
let j = v;
|
|
3636
3629
|
for (const G of b.map((W) => W.builder))
|
|
3637
|
-
|
|
3630
|
+
D(c.subject, G), j = f(j, k, G);
|
|
3638
3631
|
C(j);
|
|
3639
3632
|
};
|
|
3640
|
-
if (
|
|
3641
|
-
|
|
3633
|
+
if (U.length > 0 && y.onOverridesConflict) {
|
|
3634
|
+
y.onOverridesConflict({ override: V, keep: () => C(v) });
|
|
3642
3635
|
return;
|
|
3643
3636
|
}
|
|
3644
|
-
|
|
3637
|
+
U.length > 0 ? C(v) : V();
|
|
3645
3638
|
}
|
|
3646
3639
|
return {
|
|
3647
3640
|
getCoverSubject: l,
|
|
3648
|
-
coverLabel:
|
|
3641
|
+
coverLabel: m,
|
|
3649
3642
|
shouldShowInheritToggle: g,
|
|
3650
3643
|
inheritMode: E,
|
|
3651
3644
|
setInheritMode: F,
|
|
3652
|
-
inheritedSummary:
|
|
3653
|
-
getEffectiveActions:
|
|
3645
|
+
inheritedSummary: T,
|
|
3646
|
+
getEffectiveActions: w,
|
|
3654
3647
|
updateBuilderCondition: h,
|
|
3655
3648
|
applyConditionDrafts: S
|
|
3656
3649
|
};
|
|
3657
3650
|
}
|
|
3658
|
-
const _a = { class: "flex flex-col gap-32" },
|
|
3651
|
+
const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, pa = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ha = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ba = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ga = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ya = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Ea = "condition-form-select-menu", Da = /* @__PURE__ */ Le({
|
|
3659
3652
|
__name: "PortalPermissionEditor",
|
|
3660
3653
|
props: /* @__PURE__ */ tn({
|
|
3661
3654
|
disable: {
|
|
@@ -3672,71 +3665,71 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3672
3665
|
}),
|
|
3673
3666
|
emits: /* @__PURE__ */ tn(["permissionChanged"], ["update:modelValue"]),
|
|
3674
3667
|
setup(e, { emit: t }) {
|
|
3675
|
-
const n =
|
|
3668
|
+
const n = pr(e, "modelValue"), r = e, l = t, { t: a } = He(), m = hr(), u = br(), { breakpoints: i } = gr(), g = z(() => i.value.xs || i.value.sm), {
|
|
3676
3669
|
fetchCustomReportPermissions: E,
|
|
3677
|
-
customReportPermissions:
|
|
3678
|
-
} =
|
|
3670
|
+
customReportPermissions: T
|
|
3671
|
+
} = yr(), N = z(() => [
|
|
3679
3672
|
...Gn,
|
|
3680
|
-
...
|
|
3673
|
+
...T.value
|
|
3681
3674
|
]), F = z(() => {
|
|
3682
|
-
const
|
|
3683
|
-
return
|
|
3675
|
+
const O = m.currentBusiness.value, s = m.currentCountry.value, o = s instanceof Object ? s.code : s;
|
|
3676
|
+
return ma(O, o);
|
|
3684
3677
|
});
|
|
3685
|
-
function
|
|
3686
|
-
return N.value.find((s) => s.subject ===
|
|
3678
|
+
function w(O) {
|
|
3679
|
+
return N.value.find((s) => s.subject === O);
|
|
3687
3680
|
}
|
|
3688
|
-
function L(
|
|
3689
|
-
return rn(
|
|
3681
|
+
function L(O, s) {
|
|
3682
|
+
return rn(O).filter(
|
|
3690
3683
|
(o) => {
|
|
3691
3684
|
var _;
|
|
3692
3685
|
return ((_ = o.appliesToActions) == null ? void 0 : _.call(o, s)) ?? !0;
|
|
3693
3686
|
}
|
|
3694
3687
|
);
|
|
3695
3688
|
}
|
|
3696
|
-
const
|
|
3697
|
-
const
|
|
3689
|
+
const D = z(() => {
|
|
3690
|
+
const O = N.value.filter((o) => !c.includes(o.subject)).map((o) => o.subject);
|
|
3698
3691
|
return Er(
|
|
3699
3692
|
r.inheritPermissions.map((o) => ({
|
|
3700
3693
|
...o,
|
|
3701
|
-
permissions: o.permissions.filter((_) =>
|
|
3694
|
+
permissions: o.permissions.filter((_) => O.includes(_.subject))
|
|
3702
3695
|
}))
|
|
3703
3696
|
).map((o) => ({
|
|
3704
3697
|
id: o.subject,
|
|
3705
3698
|
setNames: o.setNames
|
|
3706
3699
|
}));
|
|
3707
3700
|
}), f = z(() => {
|
|
3708
|
-
const
|
|
3701
|
+
const O = r.inheritPermissions.map((s) => ({
|
|
3709
3702
|
...s,
|
|
3710
3703
|
permissions: s.permissions.filter(
|
|
3711
3704
|
(o) => o.subject === he.Subject.Business.inventory_stock
|
|
3712
3705
|
)
|
|
3713
3706
|
}));
|
|
3714
|
-
return
|
|
3715
|
-
|
|
3707
|
+
return kt(
|
|
3708
|
+
O,
|
|
3716
3709
|
"warehouseId",
|
|
3717
|
-
|
|
3710
|
+
y.value.map((s) => s._id)
|
|
3718
3711
|
);
|
|
3719
3712
|
}), h = z(() => {
|
|
3720
|
-
const
|
|
3713
|
+
const O = r.inheritPermissions.map((s) => ({
|
|
3721
3714
|
...s,
|
|
3722
3715
|
permissions: s.permissions.filter(
|
|
3723
3716
|
(o) => o.subject === he.Subject.Restaurant.restaurant
|
|
3724
3717
|
)
|
|
3725
3718
|
}));
|
|
3726
|
-
return
|
|
3727
|
-
|
|
3719
|
+
return kt(
|
|
3720
|
+
O,
|
|
3728
3721
|
"restaurantId",
|
|
3729
|
-
|
|
3722
|
+
B.value.map((s) => s._id)
|
|
3730
3723
|
);
|
|
3731
3724
|
}), S = z(() => {
|
|
3732
|
-
const
|
|
3725
|
+
const O = r.inheritPermissions.map((s) => ({
|
|
3733
3726
|
...s,
|
|
3734
3727
|
permissions: s.permissions.filter((o) => o.subject === he.Subject.Business.role)
|
|
3735
3728
|
}));
|
|
3736
|
-
return
|
|
3737
|
-
|
|
3729
|
+
return kt(
|
|
3730
|
+
O,
|
|
3738
3731
|
"roleId",
|
|
3739
|
-
|
|
3732
|
+
x.value.map((s) => s._id)
|
|
3740
3733
|
);
|
|
3741
3734
|
}), c = [
|
|
3742
3735
|
he.Subject.Business.restaurant,
|
|
@@ -3745,21 +3738,21 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3745
3738
|
he.Subject.Business.inventory_stock
|
|
3746
3739
|
], b = z(() => {
|
|
3747
3740
|
var s;
|
|
3748
|
-
const
|
|
3741
|
+
const O = (s = n.value) == null ? void 0 : s.find(
|
|
3749
3742
|
(o) => o.subject === he.Subject.Business.inventory_stock
|
|
3750
3743
|
);
|
|
3751
|
-
return
|
|
3752
|
-
}),
|
|
3753
|
-
label:
|
|
3754
|
-
value:
|
|
3744
|
+
return O ? O.conditions ? JSON.parse(O.conditions).warehouseId.$in : null : [];
|
|
3745
|
+
}), y = rt([]), v = z(() => y.value.map((O) => ({
|
|
3746
|
+
label: O.profile.name,
|
|
3747
|
+
value: O._id
|
|
3755
3748
|
})));
|
|
3756
|
-
function
|
|
3757
|
-
const s =
|
|
3749
|
+
function R(O) {
|
|
3750
|
+
const s = k(n.value, O);
|
|
3758
3751
|
n.value = s;
|
|
3759
3752
|
}
|
|
3760
|
-
function
|
|
3761
|
-
let o =
|
|
3762
|
-
|
|
3753
|
+
function k(O, s) {
|
|
3754
|
+
let o = yt(
|
|
3755
|
+
O.filter((_) => _.subject !== he.Subject.Business.inventory_stock)
|
|
3763
3756
|
);
|
|
3764
3757
|
if (!s || s.length > 0) {
|
|
3765
3758
|
const _ = {
|
|
@@ -3770,53 +3763,53 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3770
3763
|
}
|
|
3771
3764
|
return o;
|
|
3772
3765
|
}
|
|
3773
|
-
const { restaurants:
|
|
3774
|
-
label: `${
|
|
3775
|
-
value:
|
|
3776
|
-
}))), C = z(() =>
|
|
3777
|
-
function
|
|
3778
|
-
const s = G(n.value,
|
|
3766
|
+
const { restaurants: B } = m, x = Mr().roles, d = z(() => B.value.map((O) => ({
|
|
3767
|
+
label: `${O.profile.code ? O.profile.code + "-" : ""}${O.profile.name}`,
|
|
3768
|
+
value: O._id
|
|
3769
|
+
}))), C = z(() => B.value.reduce((O, s) => (O[s._id] = x.value.filter((o) => o.restaurants.some((_) => _.id === s._id)).map((o) => o._id), O), {})), U = z(() => Ir(n.value));
|
|
3770
|
+
function V(O) {
|
|
3771
|
+
const s = G(n.value, O);
|
|
3779
3772
|
n.value = s;
|
|
3780
3773
|
}
|
|
3781
3774
|
const j = z(() => Nr(n.value));
|
|
3782
|
-
function G(
|
|
3775
|
+
function G(O, s) {
|
|
3783
3776
|
var _;
|
|
3784
|
-
let o =
|
|
3785
|
-
|
|
3786
|
-
(
|
|
3777
|
+
let o = yt(
|
|
3778
|
+
O.filter(
|
|
3779
|
+
(A) => A.subject !== he.Subject.Business.restaurant && A.subject !== he.Subject.Restaurant.restaurant
|
|
3787
3780
|
)
|
|
3788
3781
|
);
|
|
3789
3782
|
if (!s || s.length > 0) {
|
|
3790
3783
|
const {
|
|
3791
|
-
category:
|
|
3784
|
+
category: A,
|
|
3792
3785
|
showByFeatureFlag: M,
|
|
3793
3786
|
...P
|
|
3794
|
-
} =
|
|
3787
|
+
} = kr.restaurant;
|
|
3795
3788
|
o.push(P);
|
|
3796
|
-
const
|
|
3789
|
+
const p = {
|
|
3797
3790
|
actions: [he.Action.manage],
|
|
3798
3791
|
subject: he.Subject.Restaurant.restaurant
|
|
3799
3792
|
};
|
|
3800
|
-
s && (
|
|
3793
|
+
s && (p.conditions = JSON.stringify({ restaurantId: { $in: s } })), o.push(p);
|
|
3801
3794
|
}
|
|
3802
3795
|
if (s) {
|
|
3803
|
-
const
|
|
3796
|
+
const A = [
|
|
3804
3797
|
...new Set(s.map((P) => C.value[P]).flatMap((P) => P))
|
|
3805
|
-
], M =
|
|
3806
|
-
|
|
3798
|
+
], M = x.value.map((P) => P._id);
|
|
3799
|
+
A.length !== M.length && (o = Y(
|
|
3807
3800
|
o,
|
|
3808
|
-
(_ = j.value || M) == null ? void 0 : _.filter((P) =>
|
|
3801
|
+
(_ = j.value || M) == null ? void 0 : _.filter((P) => A.includes(P))
|
|
3809
3802
|
));
|
|
3810
3803
|
}
|
|
3811
3804
|
return o;
|
|
3812
3805
|
}
|
|
3813
|
-
function W(
|
|
3814
|
-
const s = Y(n.value,
|
|
3806
|
+
function W(O) {
|
|
3807
|
+
const s = Y(n.value, O);
|
|
3815
3808
|
n.value = s;
|
|
3816
3809
|
}
|
|
3817
|
-
function Y(
|
|
3818
|
-
let o =
|
|
3819
|
-
|
|
3810
|
+
function Y(O, s) {
|
|
3811
|
+
let o = yt(
|
|
3812
|
+
O.filter((_) => _.subject !== he.Subject.Business.role)
|
|
3820
3813
|
);
|
|
3821
3814
|
if (s && s.length > 0) {
|
|
3822
3815
|
const _ = {
|
|
@@ -3828,13 +3821,13 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3828
3821
|
}
|
|
3829
3822
|
return o;
|
|
3830
3823
|
}
|
|
3831
|
-
|
|
3824
|
+
xn(async () => {
|
|
3832
3825
|
await Promise.all([
|
|
3833
|
-
la.readWarehouses().then((
|
|
3826
|
+
la.readWarehouses().then((O) => y.value = O),
|
|
3834
3827
|
E()
|
|
3835
3828
|
]);
|
|
3836
3829
|
});
|
|
3837
|
-
const
|
|
3830
|
+
const X = z(() => Zn(
|
|
3838
3831
|
n.value,
|
|
3839
3832
|
Yn
|
|
3840
3833
|
).filter((o) => {
|
|
@@ -3844,135 +3837,135 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3844
3837
|
if (o.inverted) return o;
|
|
3845
3838
|
const _ = o.actions;
|
|
3846
3839
|
if (!_.includes("manage")) return o;
|
|
3847
|
-
const
|
|
3848
|
-
if (!
|
|
3849
|
-
const M =
|
|
3850
|
-
return M.length <= 1 || M.filter((
|
|
3840
|
+
const A = w(o.subject);
|
|
3841
|
+
if (!A) return o;
|
|
3842
|
+
const M = A.actions;
|
|
3843
|
+
return M.length <= 1 || M.filter((p) => !_.includes(p)).length === 0 ? o : { ...o, actions: [...M] };
|
|
3851
3844
|
}));
|
|
3852
|
-
function ne(
|
|
3845
|
+
function ne(O) {
|
|
3853
3846
|
n.value = ia(
|
|
3854
|
-
|
|
3855
|
-
|
|
3847
|
+
X.value,
|
|
3848
|
+
O,
|
|
3856
3849
|
n.value,
|
|
3857
|
-
|
|
3850
|
+
w
|
|
3858
3851
|
);
|
|
3859
3852
|
}
|
|
3860
3853
|
const Q = z(() => new Set(
|
|
3861
|
-
N.value.filter((
|
|
3854
|
+
N.value.filter((O) => rn(O.subject).length > 0).map((O) => O.subject)
|
|
3862
3855
|
)), _e = z(() => {
|
|
3863
|
-
const
|
|
3864
|
-
return
|
|
3856
|
+
const O = /* @__PURE__ */ new Map();
|
|
3857
|
+
return X.value.map((s) => ({
|
|
3865
3858
|
rule: s,
|
|
3866
3859
|
index: n.value.findIndex(
|
|
3867
3860
|
(o) => !o.inverted && o.subject === s.subject
|
|
3868
3861
|
)
|
|
3869
3862
|
})).filter(({ rule: s }) => !s.inverted).forEach(({ rule: s, index: o }) => {
|
|
3870
3863
|
var P;
|
|
3871
|
-
const _ = s.actions,
|
|
3872
|
-
if (
|
|
3864
|
+
const _ = s.actions, A = L(s.subject, _);
|
|
3865
|
+
if (A.length === 0) return;
|
|
3873
3866
|
let M;
|
|
3874
3867
|
try {
|
|
3875
3868
|
M = s.conditions ? JSON.parse(s.conditions) : void 0;
|
|
3876
3869
|
} catch {
|
|
3877
3870
|
M = void 0;
|
|
3878
3871
|
}
|
|
3879
|
-
|
|
3872
|
+
O.set(s.subject, {
|
|
3880
3873
|
index: o >= 0 ? o : null,
|
|
3881
3874
|
subject: s.subject,
|
|
3882
|
-
label: ((P =
|
|
3875
|
+
label: ((P = w(s.subject)) == null ? void 0 : P.label) ?? s.subject,
|
|
3883
3876
|
actions: _,
|
|
3884
3877
|
// Each builder only ever sees its own slice of the stored condition.
|
|
3885
|
-
sections:
|
|
3886
|
-
builder:
|
|
3887
|
-
formValue:
|
|
3878
|
+
sections: A.map((p) => ({
|
|
3879
|
+
builder: p,
|
|
3880
|
+
formValue: p.fromCondition(tt(M, p))
|
|
3888
3881
|
}))
|
|
3889
3882
|
});
|
|
3890
|
-
}),
|
|
3891
|
-
}), ce = fa(n, N, (
|
|
3892
|
-
n.value =
|
|
3893
|
-
}), se =
|
|
3894
|
-
function q(
|
|
3895
|
-
const o = _e.value.get(
|
|
3883
|
+
}), O;
|
|
3884
|
+
}), ce = fa(n, N, (O) => {
|
|
3885
|
+
n.value = O;
|
|
3886
|
+
}), se = Tr(n), fe = rt(null);
|
|
3887
|
+
function q(O, s) {
|
|
3888
|
+
const o = _e.value.get(O);
|
|
3896
3889
|
if (o) return o;
|
|
3897
|
-
const _ = ce.getEffectiveActions(
|
|
3898
|
-
if (
|
|
3890
|
+
const _ = ce.getEffectiveActions(O), A = L(O, _);
|
|
3891
|
+
if (A.length !== 0)
|
|
3899
3892
|
return {
|
|
3900
3893
|
index: null,
|
|
3901
|
-
subject:
|
|
3894
|
+
subject: O,
|
|
3902
3895
|
label: s,
|
|
3903
3896
|
actions: _,
|
|
3904
|
-
sections:
|
|
3897
|
+
sections: A.map((M) => ({
|
|
3905
3898
|
builder: M,
|
|
3906
3899
|
formValue: M.fromCondition(void 0)
|
|
3907
3900
|
}))
|
|
3908
3901
|
};
|
|
3909
3902
|
}
|
|
3910
|
-
function
|
|
3911
|
-
const o = se.getDraft({ subject:
|
|
3903
|
+
function De(O, s) {
|
|
3904
|
+
const o = se.getDraft({ subject: O.subject, builderKey: s.builderKey });
|
|
3912
3905
|
if (o) return o.formValue;
|
|
3913
|
-
const _ =
|
|
3906
|
+
const _ = O.sections.find((A) => A.builder.builderKey === s.builderKey);
|
|
3914
3907
|
return _ == null ? void 0 : _.formValue;
|
|
3915
3908
|
}
|
|
3916
|
-
function K(
|
|
3917
|
-
const o = se.getDraft({ subject:
|
|
3918
|
-
return o != null && o.inheritMode ? o.inheritMode : ce.inheritMode(
|
|
3909
|
+
function K(O, s) {
|
|
3910
|
+
const o = se.getDraft({ subject: O.subject, builderKey: s.builderKey });
|
|
3911
|
+
return o != null && o.inheritMode ? o.inheritMode : ce.inheritMode(O, s);
|
|
3919
3912
|
}
|
|
3920
|
-
function
|
|
3913
|
+
function ve(O, s, o) {
|
|
3921
3914
|
const _ = se.getDraft({
|
|
3922
|
-
subject:
|
|
3915
|
+
subject: O.subject,
|
|
3923
3916
|
builderKey: s.builderKey
|
|
3924
3917
|
});
|
|
3925
3918
|
se.setDraft(
|
|
3926
|
-
{ subject:
|
|
3919
|
+
{ subject: O.subject, builderKey: s.builderKey },
|
|
3927
3920
|
{
|
|
3928
3921
|
formValue: o,
|
|
3929
|
-
inheritMode: (_ == null ? void 0 : _.inheritMode) ?? K(
|
|
3922
|
+
inheritMode: (_ == null ? void 0 : _.inheritMode) ?? K(O, s)
|
|
3930
3923
|
}
|
|
3931
3924
|
);
|
|
3932
3925
|
}
|
|
3933
|
-
function Je(
|
|
3926
|
+
function Je(O, s, o) {
|
|
3934
3927
|
const _ = se.getDraft({
|
|
3935
|
-
subject:
|
|
3928
|
+
subject: O.subject,
|
|
3936
3929
|
builderKey: s.builderKey
|
|
3937
|
-
}),
|
|
3930
|
+
}), A = O.sections.find((M) => M.builder.builderKey === s.builderKey);
|
|
3938
3931
|
se.setDraft(
|
|
3939
|
-
{ subject:
|
|
3932
|
+
{ subject: O.subject, builderKey: s.builderKey },
|
|
3940
3933
|
{
|
|
3941
|
-
formValue: (_ == null ? void 0 : _.formValue) ?? (
|
|
3934
|
+
formValue: (_ == null ? void 0 : _.formValue) ?? (A == null ? void 0 : A.formValue),
|
|
3942
3935
|
inheritMode: o
|
|
3943
3936
|
}
|
|
3944
3937
|
);
|
|
3945
3938
|
}
|
|
3946
|
-
function Ke(
|
|
3947
|
-
return se.hasDraftsForSubject(
|
|
3939
|
+
function Ke(O) {
|
|
3940
|
+
return se.hasDraftsForSubject(O);
|
|
3948
3941
|
}
|
|
3949
|
-
function
|
|
3950
|
-
const o =
|
|
3951
|
-
const
|
|
3952
|
-
subject:
|
|
3942
|
+
function Ve(O, s) {
|
|
3943
|
+
const o = O.sections.flatMap((_) => {
|
|
3944
|
+
const A = se.getDraft({
|
|
3945
|
+
subject: O.subject,
|
|
3953
3946
|
builderKey: _.builder.builderKey
|
|
3954
3947
|
});
|
|
3955
|
-
return
|
|
3948
|
+
return A ? [{ builder: _.builder, form: A.formValue, mode: A.inheritMode ?? "custom" }] : [];
|
|
3956
3949
|
});
|
|
3957
|
-
ce.applyConditionDrafts(
|
|
3950
|
+
ce.applyConditionDrafts(O, o, {
|
|
3958
3951
|
afterCommit: () => {
|
|
3959
|
-
se.clearDraftsForSubject(
|
|
3952
|
+
se.clearDraftsForSubject(O.subject), s();
|
|
3960
3953
|
},
|
|
3961
|
-
onOverridesConflict: Ye(
|
|
3954
|
+
onOverridesConflict: Ye(O).onOverridesConflict
|
|
3962
3955
|
});
|
|
3963
3956
|
}
|
|
3964
|
-
function Fe(
|
|
3965
|
-
return
|
|
3957
|
+
function Fe(O) {
|
|
3958
|
+
return O.sections.some((s) => ce.shouldShowInheritToggle(O, s.builder) ? ce.inheritMode(O, s.builder) === "custom" : Object.keys(s.builder.toCondition(s.formValue)).length > 0);
|
|
3966
3959
|
}
|
|
3967
3960
|
let Ce = !1;
|
|
3968
|
-
function Ye(
|
|
3961
|
+
function Ye(O, s = {}) {
|
|
3969
3962
|
return {
|
|
3970
3963
|
...s,
|
|
3971
3964
|
onOverridesConflict: ({ override: o, keep: _ }) => {
|
|
3972
3965
|
Ce || (Ce = !0, u.open({
|
|
3973
3966
|
title: a("team.memberForm.permissions.conditionCover.confirmTitle"),
|
|
3974
3967
|
message: a("team.memberForm.permissions.conditionCover.confirmMessage", {
|
|
3975
|
-
cover:
|
|
3968
|
+
cover: O.label
|
|
3976
3969
|
}),
|
|
3977
3970
|
minWidth: i.value.lg ? 588 : 0,
|
|
3978
3971
|
zIndex: 200,
|
|
@@ -3994,32 +3987,32 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3994
3987
|
}
|
|
3995
3988
|
};
|
|
3996
3989
|
}
|
|
3997
|
-
return
|
|
3990
|
+
return wt(
|
|
3998
3991
|
n,
|
|
3999
|
-
(
|
|
4000
|
-
l("permissionChanged",
|
|
3992
|
+
(O) => {
|
|
3993
|
+
l("permissionChanged", O);
|
|
4001
3994
|
},
|
|
4002
3995
|
{ deep: !0 }
|
|
4003
|
-
), (
|
|
4004
|
-
const o =
|
|
3996
|
+
), (O, s) => {
|
|
3997
|
+
const o = we("FmIcon"), _ = we("FmBottomSheet"), A = we("FmPopover");
|
|
4005
3998
|
return J(), ie("div", _a, [
|
|
4006
|
-
ae("div",
|
|
4007
|
-
ue(
|
|
4008
|
-
"model-value":
|
|
3999
|
+
ae("div", va, [
|
|
4000
|
+
ue(Ho, {
|
|
4001
|
+
"model-value": X.value,
|
|
4009
4002
|
"excluded-subjects": c,
|
|
4010
|
-
"additional-permissions": H(
|
|
4003
|
+
"additional-permissions": H(T),
|
|
4011
4004
|
"onUpdate:modelValue": ne
|
|
4012
4005
|
}, et({ _: 2 }, [
|
|
4013
|
-
|
|
4006
|
+
Ie(D.value, (M) => ({
|
|
4014
4007
|
name: `checkbox-${M.id}-append`,
|
|
4015
|
-
fn:
|
|
4016
|
-
ue(
|
|
4008
|
+
fn: me(() => [
|
|
4009
|
+
ue(pt, { item: M }, null, 8, ["item"])
|
|
4017
4010
|
])
|
|
4018
4011
|
})),
|
|
4019
|
-
|
|
4012
|
+
Ie(Q.value, (M) => ({
|
|
4020
4013
|
name: `checkbox-${M}-icon`,
|
|
4021
|
-
fn:
|
|
4022
|
-
|
|
4014
|
+
fn: me(({ option: P, isEffectiveSelected: p }) => [
|
|
4015
|
+
p && q(M, P.label) ? (J(), ie(Re, { key: 0 }, [
|
|
4023
4016
|
g.value ? (J(), Ne(_, {
|
|
4024
4017
|
key: 0,
|
|
4025
4018
|
"model-value": fe.value === M,
|
|
@@ -4029,12 +4022,12 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4029
4022
|
"dismiss-away": "",
|
|
4030
4023
|
"z-index": 100,
|
|
4031
4024
|
class: "h-5 flex items-center",
|
|
4032
|
-
"onUpdate:modelValue": (
|
|
4033
|
-
fe.value =
|
|
4025
|
+
"onUpdate:modelValue": (I) => {
|
|
4026
|
+
fe.value = I ? M : null, I || H(se).clearDraftsForSubject(M);
|
|
4034
4027
|
}
|
|
4035
4028
|
}, {
|
|
4036
|
-
"bottom-sheet-button":
|
|
4037
|
-
ae("div",
|
|
4029
|
+
"bottom-sheet-button": me(() => [
|
|
4030
|
+
ae("div", pa, [
|
|
4038
4031
|
ue(o, {
|
|
4039
4032
|
name: "settings",
|
|
4040
4033
|
size: "sm",
|
|
@@ -4045,35 +4038,35 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4045
4038
|
}, null, 8, ["class"])
|
|
4046
4039
|
])
|
|
4047
4040
|
]),
|
|
4048
|
-
default:
|
|
4041
|
+
default: me(() => [
|
|
4049
4042
|
ue(Fn, {
|
|
4050
4043
|
entry: q(M, P.label),
|
|
4051
|
-
builders: q(M, P.label).sections.map((
|
|
4044
|
+
builders: q(M, P.label).sections.map((I) => I.builder),
|
|
4052
4045
|
subject: M,
|
|
4053
4046
|
"time-zone": F.value,
|
|
4054
4047
|
"cover-override": H(ce),
|
|
4055
|
-
"inherit-mode-for": (
|
|
4056
|
-
"form-value-for": (
|
|
4048
|
+
"inherit-mode-for": (I) => K(q(M, P.label), I),
|
|
4049
|
+
"form-value-for": (I) => De(q(M, P.label), I),
|
|
4057
4050
|
"has-changes": Ke(M),
|
|
4058
4051
|
disable: e.disable,
|
|
4059
4052
|
"full-width": !0,
|
|
4060
|
-
onUpdateInheritMode: ({ builder:
|
|
4061
|
-
onUpdateForm: ({ builder:
|
|
4062
|
-
onApply: (
|
|
4053
|
+
onUpdateInheritMode: ({ builder: I, mode: $ }) => Je(q(M, P.label), I, $),
|
|
4054
|
+
onUpdateForm: ({ builder: I, form: $ }) => ve(q(M, P.label), I, $),
|
|
4055
|
+
onApply: (I) => Ve(q(M, P.label), () => fe.value = null)
|
|
4063
4056
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4064
4057
|
]),
|
|
4065
4058
|
_: 2
|
|
4066
|
-
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (J(), Ne(
|
|
4059
|
+
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (J(), Ne(A, {
|
|
4067
4060
|
key: 1,
|
|
4068
4061
|
disabled: e.disable,
|
|
4069
4062
|
"z-index": 100,
|
|
4070
4063
|
"exclude-el-from-click-outside": [Ea],
|
|
4071
4064
|
class: "h-5 flex items-center",
|
|
4072
|
-
onPopoverChanged: (
|
|
4073
|
-
|
|
4065
|
+
onPopoverChanged: (I) => {
|
|
4066
|
+
I || H(se).clearDraftsForSubject(M);
|
|
4074
4067
|
}
|
|
4075
4068
|
}, {
|
|
4076
|
-
"popover-button":
|
|
4069
|
+
"popover-button": me(() => [
|
|
4077
4070
|
ae("div", ha, [
|
|
4078
4071
|
ue(o, {
|
|
4079
4072
|
name: "settings",
|
|
@@ -4085,7 +4078,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4085
4078
|
}, null, 8, ["class"])
|
|
4086
4079
|
])
|
|
4087
4080
|
]),
|
|
4088
|
-
default:
|
|
4081
|
+
default: me(({ hide: I }) => [
|
|
4089
4082
|
ue(Fn, {
|
|
4090
4083
|
entry: q(M, P.label),
|
|
4091
4084
|
builders: q(M, P.label).sections.map(($) => $.builder),
|
|
@@ -4096,7 +4089,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4096
4089
|
context: q(M, P.label).label
|
|
4097
4090
|
}),
|
|
4098
4091
|
"inherit-mode-for": ($) => K(q(M, P.label), $),
|
|
4099
|
-
"form-value-for": ($) =>
|
|
4092
|
+
"form-value-for": ($) => De(q(M, P.label), $),
|
|
4100
4093
|
"has-changes": Ke(M),
|
|
4101
4094
|
disable: e.disable,
|
|
4102
4095
|
onUpdateInheritMode: ({ builder: $, mode: le }) => Je(
|
|
@@ -4104,8 +4097,8 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4104
4097
|
$,
|
|
4105
4098
|
le
|
|
4106
4099
|
),
|
|
4107
|
-
onUpdateForm: ({ builder: $, form: le }) =>
|
|
4108
|
-
onApply: ($) =>
|
|
4100
|
+
onUpdateForm: ({ builder: $, form: le }) => ve(q(M, P.label), $, le),
|
|
4101
|
+
onApply: ($) => Ve(q(M, P.label), I)
|
|
4109
4102
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "title", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4110
4103
|
]),
|
|
4111
4104
|
_: 2
|
|
@@ -4121,46 +4114,46 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4121
4114
|
]), 1032, ["model-value", "additional-permissions"])
|
|
4122
4115
|
]),
|
|
4123
4116
|
ae("div", ba, [
|
|
4124
|
-
ue(
|
|
4117
|
+
ue(Dn, {
|
|
4125
4118
|
"model-value": b.value,
|
|
4126
|
-
options:
|
|
4119
|
+
options: v.value,
|
|
4127
4120
|
context: H(a)("team.labels.warehouse"),
|
|
4128
|
-
"onUpdate:modelValue":
|
|
4121
|
+
"onUpdate:modelValue": R
|
|
4129
4122
|
}, et({ _: 2 }, [
|
|
4130
|
-
|
|
4123
|
+
Ie(f.value, (M) => ({
|
|
4131
4124
|
name: `checkbox-${M.id}-append`,
|
|
4132
|
-
fn:
|
|
4133
|
-
ue(
|
|
4125
|
+
fn: me(() => [
|
|
4126
|
+
ue(pt, { item: M }, null, 8, ["item"])
|
|
4134
4127
|
])
|
|
4135
4128
|
}))
|
|
4136
4129
|
]), 1032, ["model-value", "options", "context"])
|
|
4137
4130
|
]),
|
|
4138
4131
|
ae("div", ga, [
|
|
4139
|
-
ue(
|
|
4140
|
-
"model-value":
|
|
4141
|
-
options:
|
|
4132
|
+
ue(Dn, {
|
|
4133
|
+
"model-value": U.value,
|
|
4134
|
+
options: d.value,
|
|
4142
4135
|
context: H(a)("team.labels.restaurant"),
|
|
4143
|
-
"onUpdate:modelValue":
|
|
4136
|
+
"onUpdate:modelValue": V
|
|
4144
4137
|
}, et({ _: 2 }, [
|
|
4145
|
-
|
|
4138
|
+
Ie(h.value, (M) => ({
|
|
4146
4139
|
name: `checkbox-${M.id}-append`,
|
|
4147
|
-
fn:
|
|
4148
|
-
ue(
|
|
4140
|
+
fn: me(() => [
|
|
4141
|
+
ue(pt, { item: M }, null, 8, ["item"])
|
|
4149
4142
|
])
|
|
4150
4143
|
}))
|
|
4151
4144
|
]), 1032, ["model-value", "options", "context"])
|
|
4152
4145
|
]),
|
|
4153
|
-
ae("div",
|
|
4146
|
+
ae("div", ya, [
|
|
4154
4147
|
ue(ra, {
|
|
4155
|
-
roles: H(
|
|
4148
|
+
roles: H(x),
|
|
4156
4149
|
"model-value": j.value,
|
|
4157
|
-
"restaurant-ids":
|
|
4150
|
+
"restaurant-ids": U.value,
|
|
4158
4151
|
"onUpdate:modelValue": W
|
|
4159
4152
|
}, et({ _: 2 }, [
|
|
4160
|
-
|
|
4153
|
+
Ie(S.value, (M) => ({
|
|
4161
4154
|
name: `checkbox-${M.id}-append`,
|
|
4162
|
-
fn:
|
|
4163
|
-
ue(
|
|
4155
|
+
fn: me(() => [
|
|
4156
|
+
ue(pt, { item: M }, null, 8, ["item"])
|
|
4164
4157
|
])
|
|
4165
4158
|
}))
|
|
4166
4159
|
]), 1032, ["roles", "model-value", "restaurant-ids"])
|