@feedmepos/mf-hrm-portal 2.2.5-dev.6 → 2.2.5-dev.8
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-CtCpcbAC.js → ApprovalCodeList-BzL73nqc.js} +2 -2
- package/dist/{AuditLogList-BYOvk3l4.js → AuditLogList-BEZoHLsX.js} +3 -3
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DS4_vkTG.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DDrP7ywR.js} +2 -2
- package/dist/{EmployeeList-B_sTjkdO.js → EmployeeList-s4FYw1ZF.js} +5 -5
- package/dist/{GrantUserList-_nRUyHYM.js → GrantUserList-Ci_ElhHZ.js} +3 -3
- package/dist/{Main-CloHiemF.js → Main-BojQuzZI.js} +5 -5
- package/dist/{Main-DoLU6s-8.js → Main-CKr3RGvf.js} +2 -2
- package/dist/{Main-DqY2oGAM.js → Main-N1CNGDAy.js} +9 -9
- package/dist/{PermissionSetList-uL-0fN9H.js → PermissionSetList-DLknSOzA.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-dCgJ2s08.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DK2Bx8Aw.js} +1066 -1066
- package/dist/{RoleList-CwrDYFXz.js → RoleList-Cm7_q5l9.js} +7 -7
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DrJ1vA88.js +426 -0
- package/dist/ScheduleButton.vue_vue_type_script_setup_true_lang-DX5JR7bi.js +600 -0
- package/dist/ScheduleGeneralPage-CmR4BZAp.js +323 -0
- package/dist/SchedulePage-CN3ZsQ9E.js +13905 -0
- package/dist/SchedulePositionPage-Bv3zraaF.js +293 -0
- package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-Buu8NEQf.js +221 -0
- package/dist/{TeamMemberList-qyKCeSsW.js → TeamMemberList-D2OfkfJP.js} +6 -6
- package/dist/{TimesheetList-D1EJG90Z.js → TimesheetList-DEdLpYuM.js} +4 -4
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Car-HXjq.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-BfMkNvCz.js} +1 -1
- package/dist/{app-By1O6mq8.js → app-Dmmpy4k-.js} +127 -127
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-_ZoZF_Ra.js → dayjs.min-DcfKURXN.js} +1 -1
- package/dist/{employee-BC7QM1dX.js → employee-D3ZpYH4j.js} +3 -3
- package/dist/{index-u10uXqFM.js → index-BxkisKEs.js} +1 -1
- package/dist/{index-CHf8MAN1.js → index-D-VlxJu9.js} +1 -1
- package/dist/{lodash-BsAtPIfh.js → lodash-p40sRkqQ.js} +1 -1
- package/dist/{role-PShfEEXE.js → role-CM1urkJZ.js} +1 -1
- package/dist/{rule-RU8uWecT.js → rule-BPApyMJY.js} +2 -2
- package/dist/src/api/schedule/index.d.ts +0 -3
- package/dist/src/views/scheduling/ScheduleGeneralPage.vue.d.ts +1 -2
- package/dist/src/views/scheduling/SchedulePage.vue.d.ts +1 -2
- package/dist/src/views/scheduling/SchedulePositionPage.vue.d.ts +1 -2
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModal.vue.d.ts +5 -1
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePositionsSection.vue.d.ts +5 -1
- package/dist/src/views/scheduling/components/ScheduleAddPositionModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleButton.vue.d.ts +23 -0
- package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +1 -1
- package/dist/src/views/scheduling/components/ScheduleEmployeeMenu.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleLeaveEditModal.vue.d.ts +4 -2
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizard.vue.d.ts +3 -0
- package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +14 -0
- package/dist/src/views/scheduling/components/ScheduleShiftHeadcountEditor.vue.d.ts +5 -1
- package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +4 -2
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +4 -2
- package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +2 -4
- package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +1 -0
- package/dist/src/views/scheduling/composables/schedule-popover-position.d.ts +16 -0
- package/dist/src/views/scheduling/composables/useCollapsedList.d.ts +9 -0
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +14 -7
- package/dist/src/views/scheduling/composables/useScheduleAssign.d.ts +11 -2
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +8 -0
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +11 -0
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +0 -5
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +5 -3
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +7 -1
- package/dist/src/views/scheduling/composables/useScheduleEmployeeMenu.d.ts +35 -0
- package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +53 -3
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +1181 -55
- package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +50 -0
- package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +2 -0
- package/dist/src/views/scheduling/composables/useScheduleRangeCalendar.d.ts +10 -1
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +6 -0
- package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +5 -5
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +6 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +7 -0
- package/dist/src/views/scheduling/composables/useScheduleTimePicker.d.ts +6 -1
- package/dist/src/views/scheduling/composables/useScheduleViewportFit.d.ts +9 -0
- package/dist/src/views/scheduling/data.d.ts +6 -1
- package/dist/src/views/scheduling/schedule-store.d.ts +11 -1
- package/dist/src/views/scheduling/types.d.ts +9 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-Bu-l3ebR.js → useReportPermissions-5EhPvVT9.js} +3 -3
- package/package.json +1 -1
- package/dist/ScheduleGeneralPage-CgQOHHb8.js +0 -242
- package/dist/SchedulePage-C7q1IL70.js +0 -10761
- package/dist/SchedulePositionPage-Dys7X035.js +0 -220
- package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-Cm2VWp8s.js +0 -201
- package/dist/useScheduleOutlet-BOmEn1hr.js +0 -546
- package/dist/useSchedulePositions-upgaNffa.js +0 -103
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
2
|
-
import { useI18n 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 Ce, openBlock as $, withCtx as me, createElementVNode as ae, createElementBlock as ie, toDisplayString as Oe, unref as H, renderList as ye, toRef as en, normalizeStyle as nt, renderSlot as Se, createCommentVNode as Me, createTextVNode as _r, useSlots as pr, normalizeClass as qe, createSlots as et, mergeModels as tn, useModel as vr } from "vue";
|
|
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
|
|
6
|
-
import { _ as
|
|
7
|
-
import { u as Or, v as Sr, b as
|
|
5
|
+
import { p as Gn, N as Yn, d as Ir, P as Er, w as At, x as yr, y as Cr } from "./rule-BPApyMJY.js";
|
|
6
|
+
import { _ as Bt, a as Nr, b as nn, u as Tr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DDrP7ywR.js";
|
|
7
|
+
import { u as Or, v as Sr, b as Zn, S as Dt, A as tt, c as he, k as rn, O as Ar } from "./app-Dmmpy4k-.js";
|
|
8
8
|
import { c as It } from "./iteration-CcXrOMQe.js";
|
|
9
|
-
import { r as
|
|
10
|
-
import "./index-
|
|
11
|
-
import { g as
|
|
12
|
-
import { u as Mr } from "./role-
|
|
13
|
-
function
|
|
9
|
+
import { r as Lr } from "./string-VNuQNweN.js";
|
|
10
|
+
import "./index-BxkisKEs.js";
|
|
11
|
+
import { g as kr, b as Rr } from "./restaurant-BTpBmfBV.js";
|
|
12
|
+
import { u as Mr } from "./role-CM1urkJZ.js";
|
|
13
|
+
function Xn(e, t) {
|
|
14
14
|
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function wr(e) {
|
|
17
17
|
return Array.isArray(e) ? e[0] : e;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
const n = t.find((l) =>
|
|
19
|
+
function Dr(e, t) {
|
|
20
|
+
const n = t.find((l) => Xn(l.subject, e));
|
|
21
21
|
if (!(n != null && n.category) || n.isCategoryCover) return;
|
|
22
22
|
const r = t.find((l) => l.category === n.category && l.isCategoryCover);
|
|
23
23
|
if (r)
|
|
24
|
-
return
|
|
24
|
+
return wr(r.subject);
|
|
25
25
|
}
|
|
26
26
|
function sn(e, t) {
|
|
27
|
-
const n = t.find((r) =>
|
|
27
|
+
const n = t.find((r) => Xn(r.subject, e));
|
|
28
28
|
return !!(n != null && n.isCategoryCover);
|
|
29
29
|
}
|
|
30
30
|
/*!
|
|
@@ -32,25 +32,25 @@ function sn(e, t) {
|
|
|
32
32
|
* (c) 2024 kazuya kawaguchi
|
|
33
33
|
* Released under the MIT License.
|
|
34
34
|
*/
|
|
35
|
-
const on = typeof window < "u",
|
|
35
|
+
const on = typeof window < "u", Je = (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]", yt = (e) => Ht(e) === "[object RegExp]", Nt = (e) => ee(e) && Object.keys(e).length === 0, Ie = Object.assign, Ur = Object.create, oe = (e = null) => Ur(e);
|
|
36
36
|
let an;
|
|
37
|
-
const
|
|
37
|
+
const Be = () => an || (an = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : oe());
|
|
38
38
|
function ln(e) {
|
|
39
39
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
40
40
|
}
|
|
41
41
|
const Vr = Object.prototype.hasOwnProperty;
|
|
42
|
-
function
|
|
42
|
+
function Ae(e, t) {
|
|
43
43
|
return Vr.call(e, t);
|
|
44
44
|
}
|
|
45
|
-
const be = Array.isArray,
|
|
46
|
-
function
|
|
45
|
+
const be = Array.isArray, de = (e) => typeof e == "function", Y = (e) => typeof e == "string", ve = (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);
|
|
46
|
+
function Jt(e, t = "") {
|
|
47
47
|
return e.reduce((n, r, l) => l === 0 ? n + r : n + t + r, "");
|
|
48
48
|
}
|
|
49
49
|
function Gr(e, t) {
|
|
50
50
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
51
51
|
}
|
|
52
52
|
const ft = (e) => !te(e) || be(e);
|
|
53
|
-
function
|
|
53
|
+
function Et(e, t) {
|
|
54
54
|
if (ft(e) || ft(t))
|
|
55
55
|
throw new Error("Invalid value");
|
|
56
56
|
const n = [{ src: e, des: t }];
|
|
@@ -61,7 +61,7 @@ function yt(e, t) {
|
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function Yr(e, t, n) {
|
|
65
65
|
return { line: e, column: t, offset: n };
|
|
66
66
|
}
|
|
67
67
|
function Ft(e, t, n) {
|
|
@@ -84,25 +84,25 @@ const re = {
|
|
|
84
84
|
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
85
85
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
86
86
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
87
|
-
},
|
|
87
|
+
}, Zr = 17;
|
|
88
88
|
function Tt(e, t, n = {}) {
|
|
89
|
-
const { domain: r, messages: l, args: a } = n,
|
|
89
|
+
const { domain: r, messages: l, args: a } = n, m = e, u = new SyntaxError(String(m));
|
|
90
90
|
return u.code = e, t && (u.location = t), u.domain = r, u;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Xr(e) {
|
|
93
93
|
throw e;
|
|
94
94
|
}
|
|
95
|
-
const Pe = " ",
|
|
96
|
-
`,
|
|
97
|
-
function
|
|
95
|
+
const Pe = " ", Br = "\r", Ee = `
|
|
96
|
+
`, Hr = "\u2028", Jr = "\u2029";
|
|
97
|
+
function $r(e) {
|
|
98
98
|
const t = e;
|
|
99
99
|
let n = 0, r = 1, l = 1, a = 0;
|
|
100
|
-
const
|
|
100
|
+
const m = (p) => t[p] === Br && t[p + 1] === Ee, u = (p) => t[p] === Ee, i = (p) => t[p] === Jr, g = (p) => t[p] === Hr, E = (p) => m(p) || u(p) || i(p) || g(p), T = () => n, C = () => r, F = () => l, w = () => a, L = (p) => m(p) || i(p) || g(p) ? Ee : t[p], D = () => L(n), f = () => L(n + a);
|
|
101
101
|
function h() {
|
|
102
|
-
return a = 0,
|
|
102
|
+
return a = 0, E(n) && (r++, l = 0), m(n) && n++, n++, l++, t[n];
|
|
103
103
|
}
|
|
104
104
|
function S() {
|
|
105
|
-
return
|
|
105
|
+
return m(n + a) && a++, a++, t[n + a];
|
|
106
106
|
}
|
|
107
107
|
function c() {
|
|
108
108
|
n = 0, r = 1, l = 1, a = 0;
|
|
@@ -118,11 +118,11 @@ function Jr(e) {
|
|
|
118
118
|
}
|
|
119
119
|
return {
|
|
120
120
|
index: T,
|
|
121
|
-
line:
|
|
121
|
+
line: C,
|
|
122
122
|
column: F,
|
|
123
|
-
peekOffset:
|
|
124
|
-
charAt:
|
|
125
|
-
currentChar:
|
|
123
|
+
peekOffset: w,
|
|
124
|
+
charAt: L,
|
|
125
|
+
currentChar: D,
|
|
126
126
|
currentPeek: f,
|
|
127
127
|
next: h,
|
|
128
128
|
peek: S,
|
|
@@ -133,50 +133,50 @@ function Jr(e) {
|
|
|
133
133
|
}
|
|
134
134
|
const xe = void 0, Kr = ".", cn = "'", zr = "tokenizer";
|
|
135
135
|
function Qr(e, t = {}) {
|
|
136
|
-
const n = t.location !== !1, r =
|
|
136
|
+
const n = t.location !== !1, r = $r(e), l = () => r.index(), a = () => Yr(r.line(), r.column(), r.index()), m = a(), u = l(), i = {
|
|
137
137
|
currentType: 13,
|
|
138
138
|
offset: u,
|
|
139
|
-
startLoc:
|
|
140
|
-
endLoc:
|
|
139
|
+
startLoc: m,
|
|
140
|
+
endLoc: m,
|
|
141
141
|
lastType: 13,
|
|
142
142
|
lastOffset: u,
|
|
143
|
-
lastStartLoc:
|
|
144
|
-
lastEndLoc:
|
|
143
|
+
lastStartLoc: m,
|
|
144
|
+
lastEndLoc: m,
|
|
145
145
|
braceNest: 0,
|
|
146
146
|
inLinked: !1,
|
|
147
147
|
text: ""
|
|
148
|
-
}, g = () => i, { onError:
|
|
149
|
-
function T(s, o, _, ...
|
|
148
|
+
}, g = () => i, { onError: E } = t;
|
|
149
|
+
function T(s, o, _, ...k) {
|
|
150
150
|
const M = g();
|
|
151
|
-
if (o.column += _, o.offset += _,
|
|
151
|
+
if (o.column += _, o.offset += _, E) {
|
|
152
152
|
const P = n ? Ft(M.startLoc, o) : null, v = Tt(s, P, {
|
|
153
153
|
domain: zr,
|
|
154
|
-
args:
|
|
154
|
+
args: k
|
|
155
155
|
});
|
|
156
|
-
|
|
156
|
+
E(v);
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function C(s, o, _) {
|
|
160
160
|
s.endLoc = a(), s.currentType = o;
|
|
161
|
-
const
|
|
162
|
-
return n && (
|
|
161
|
+
const k = { type: o };
|
|
162
|
+
return n && (k.loc = Ft(s.startLoc, s.endLoc)), _ != null && (k.value = _), k;
|
|
163
163
|
}
|
|
164
|
-
const F = (s) =>
|
|
164
|
+
const F = (s) => C(
|
|
165
165
|
s,
|
|
166
166
|
13
|
|
167
167
|
/* TokenTypes.EOF */
|
|
168
168
|
);
|
|
169
|
-
function
|
|
169
|
+
function w(s, o) {
|
|
170
170
|
return s.currentChar() === o ? (s.next(), o) : (T(re.EXPECTED_TOKEN, a(), 0, o), "");
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function L(s) {
|
|
173
173
|
let o = "";
|
|
174
|
-
for (; s.currentPeek() === Pe || s.currentPeek() ===
|
|
174
|
+
for (; s.currentPeek() === Pe || s.currentPeek() === Ee; )
|
|
175
175
|
o += s.currentPeek(), s.peek();
|
|
176
176
|
return o;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
const o =
|
|
178
|
+
function D(s) {
|
|
179
|
+
const o = L(s);
|
|
180
180
|
return s.skipToPeek(), o;
|
|
181
181
|
}
|
|
182
182
|
function f(s) {
|
|
@@ -197,77 +197,77 @@ function Qr(e, t = {}) {
|
|
|
197
197
|
const { currentType: _ } = o;
|
|
198
198
|
if (_ !== 2)
|
|
199
199
|
return !1;
|
|
200
|
-
|
|
201
|
-
const
|
|
202
|
-
return s.resetPeek(),
|
|
200
|
+
L(s);
|
|
201
|
+
const k = f(s.currentPeek());
|
|
202
|
+
return s.resetPeek(), k;
|
|
203
203
|
}
|
|
204
204
|
function c(s, o) {
|
|
205
205
|
const { currentType: _ } = o;
|
|
206
206
|
if (_ !== 2)
|
|
207
207
|
return !1;
|
|
208
|
-
|
|
209
|
-
const
|
|
208
|
+
L(s);
|
|
209
|
+
const k = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), M = h(k);
|
|
210
210
|
return s.resetPeek(), M;
|
|
211
211
|
}
|
|
212
212
|
function b(s, o) {
|
|
213
213
|
const { currentType: _ } = o;
|
|
214
214
|
if (_ !== 2)
|
|
215
215
|
return !1;
|
|
216
|
-
|
|
217
|
-
const
|
|
218
|
-
return s.resetPeek(),
|
|
216
|
+
L(s);
|
|
217
|
+
const k = s.currentPeek() === cn;
|
|
218
|
+
return s.resetPeek(), k;
|
|
219
219
|
}
|
|
220
220
|
function I(s, o) {
|
|
221
221
|
const { currentType: _ } = o;
|
|
222
222
|
if (_ !== 7)
|
|
223
223
|
return !1;
|
|
224
|
-
|
|
225
|
-
const
|
|
226
|
-
return s.resetPeek(),
|
|
224
|
+
L(s);
|
|
225
|
+
const k = s.currentPeek() === ".";
|
|
226
|
+
return s.resetPeek(), k;
|
|
227
227
|
}
|
|
228
228
|
function p(s, o) {
|
|
229
229
|
const { currentType: _ } = o;
|
|
230
230
|
if (_ !== 8)
|
|
231
231
|
return !1;
|
|
232
|
-
|
|
233
|
-
const
|
|
234
|
-
return s.resetPeek(),
|
|
232
|
+
L(s);
|
|
233
|
+
const k = f(s.currentPeek());
|
|
234
|
+
return s.resetPeek(), k;
|
|
235
235
|
}
|
|
236
236
|
function R(s, o) {
|
|
237
237
|
const { currentType: _ } = o;
|
|
238
238
|
if (!(_ === 7 || _ === 11))
|
|
239
239
|
return !1;
|
|
240
|
-
|
|
241
|
-
const
|
|
242
|
-
return s.resetPeek(),
|
|
240
|
+
L(s);
|
|
241
|
+
const k = s.currentPeek() === ":";
|
|
242
|
+
return s.resetPeek(), k;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function A(s, o) {
|
|
245
245
|
const { currentType: _ } = o;
|
|
246
246
|
if (_ !== 9)
|
|
247
247
|
return !1;
|
|
248
|
-
const
|
|
248
|
+
const k = () => {
|
|
249
249
|
const P = s.currentPeek();
|
|
250
|
-
return P === "{" ? f(s.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P ===
|
|
251
|
-
}, M =
|
|
250
|
+
return P === "{" ? f(s.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P === Ee ? (s.peek(), k()) : x(s, !1);
|
|
251
|
+
}, M = k();
|
|
252
252
|
return s.resetPeek(), M;
|
|
253
253
|
}
|
|
254
|
-
function
|
|
255
|
-
|
|
254
|
+
function B(s) {
|
|
255
|
+
L(s);
|
|
256
256
|
const o = s.currentPeek() === "|";
|
|
257
257
|
return s.resetPeek(), o;
|
|
258
258
|
}
|
|
259
259
|
function x(s, o = !0) {
|
|
260
260
|
const _ = (M = !1, P = "") => {
|
|
261
261
|
const v = s.currentPeek();
|
|
262
|
-
return v === "{" || v === "@" || !v ? M : v === "|" ? !(P === Pe || P ===
|
|
263
|
-
},
|
|
264
|
-
return o && s.resetPeek(),
|
|
262
|
+
return v === "{" || v === "@" || !v ? M : v === "|" ? !(P === Pe || P === Ee) : v === Pe ? (s.peek(), _(!0, Pe)) : v === Ee ? (s.peek(), _(!0, Ee)) : !0;
|
|
263
|
+
}, k = _();
|
|
264
|
+
return o && s.resetPeek(), k;
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function d(s, o) {
|
|
267
267
|
const _ = s.currentChar();
|
|
268
268
|
return _ === xe ? xe : o(_) ? (s.next(), _) : null;
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function N(s) {
|
|
271
271
|
const o = s.charCodeAt(0);
|
|
272
272
|
return o >= 97 && o <= 122 || // a-z
|
|
273
273
|
o >= 65 && o <= 90 || // A-Z
|
|
@@ -276,7 +276,7 @@ function Qr(e, t = {}) {
|
|
|
276
276
|
o === 36;
|
|
277
277
|
}
|
|
278
278
|
function U(s) {
|
|
279
|
-
return
|
|
279
|
+
return d(s, N);
|
|
280
280
|
}
|
|
281
281
|
function V(s) {
|
|
282
282
|
const o = s.charCodeAt(0);
|
|
@@ -288,23 +288,23 @@ function Qr(e, t = {}) {
|
|
|
288
288
|
o === 45;
|
|
289
289
|
}
|
|
290
290
|
function j(s) {
|
|
291
|
-
return
|
|
291
|
+
return d(s, V);
|
|
292
292
|
}
|
|
293
293
|
function G(s) {
|
|
294
294
|
const o = s.charCodeAt(0);
|
|
295
295
|
return o >= 48 && o <= 57;
|
|
296
296
|
}
|
|
297
297
|
function W(s) {
|
|
298
|
-
return
|
|
298
|
+
return d(s, G);
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function Z(s) {
|
|
301
301
|
const o = s.charCodeAt(0);
|
|
302
302
|
return o >= 48 && o <= 57 || // 0-9
|
|
303
303
|
o >= 65 && o <= 70 || // A-F
|
|
304
304
|
o >= 97 && o <= 102;
|
|
305
305
|
}
|
|
306
|
-
function
|
|
307
|
-
return
|
|
306
|
+
function X(s) {
|
|
307
|
+
return d(s, Z);
|
|
308
308
|
}
|
|
309
309
|
function ne(s) {
|
|
310
310
|
let o = "", _ = "";
|
|
@@ -318,11 +318,11 @@ function Qr(e, t = {}) {
|
|
|
318
318
|
const _ = s.currentChar();
|
|
319
319
|
if (_ === "{" || _ === "}" || _ === "@" || _ === "|" || !_)
|
|
320
320
|
break;
|
|
321
|
-
if (_ === Pe || _ ===
|
|
321
|
+
if (_ === Pe || _ === Ee)
|
|
322
322
|
if (x(s))
|
|
323
323
|
o += _, s.next();
|
|
324
324
|
else {
|
|
325
|
-
if (
|
|
325
|
+
if (B(s))
|
|
326
326
|
break;
|
|
327
327
|
o += _, s.next();
|
|
328
328
|
}
|
|
@@ -332,27 +332,27 @@ function Qr(e, t = {}) {
|
|
|
332
332
|
return o;
|
|
333
333
|
}
|
|
334
334
|
function _e(s) {
|
|
335
|
-
|
|
335
|
+
D(s);
|
|
336
336
|
let o = "", _ = "";
|
|
337
337
|
for (; o = j(s); )
|
|
338
338
|
_ += o;
|
|
339
339
|
return s.currentChar() === xe && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _;
|
|
340
340
|
}
|
|
341
341
|
function ce(s) {
|
|
342
|
-
|
|
342
|
+
D(s);
|
|
343
343
|
let o = "";
|
|
344
344
|
return s.currentChar() === "-" ? (s.next(), o += `-${ne(s)}`) : o += ne(s), s.currentChar() === xe && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
345
345
|
}
|
|
346
346
|
function se(s) {
|
|
347
|
-
return s !== cn && s !==
|
|
347
|
+
return s !== cn && s !== Ee;
|
|
348
348
|
}
|
|
349
349
|
function fe(s) {
|
|
350
|
-
|
|
350
|
+
D(s), w(s, "'");
|
|
351
351
|
let o = "", _ = "";
|
|
352
|
-
for (; o =
|
|
352
|
+
for (; o = d(s, se); )
|
|
353
353
|
o === "\\" ? _ += q(s) : _ += o;
|
|
354
|
-
const
|
|
355
|
-
return
|
|
354
|
+
const k = s.currentChar();
|
|
355
|
+
return k === Ee || k === xe ? (T(re.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), k === Ee && (s.next(), w(s, "'")), _) : (w(s, "'"), _);
|
|
356
356
|
}
|
|
357
357
|
function q(s) {
|
|
358
358
|
const o = s.currentChar();
|
|
@@ -361,37 +361,37 @@ function Qr(e, t = {}) {
|
|
|
361
361
|
case "'":
|
|
362
362
|
return s.next(), `\\${o}`;
|
|
363
363
|
case "u":
|
|
364
|
-
return
|
|
364
|
+
return De(s, o, 4);
|
|
365
365
|
case "U":
|
|
366
|
-
return
|
|
366
|
+
return De(s, o, 6);
|
|
367
367
|
default:
|
|
368
368
|
return T(re.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
|
|
373
|
-
let
|
|
371
|
+
function De(s, o, _) {
|
|
372
|
+
w(s, o);
|
|
373
|
+
let k = "";
|
|
374
374
|
for (let M = 0; M < _; M++) {
|
|
375
|
-
const P =
|
|
375
|
+
const P = X(s);
|
|
376
376
|
if (!P) {
|
|
377
|
-
T(re.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${
|
|
377
|
+
T(re.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${k}${s.currentChar()}`);
|
|
378
378
|
break;
|
|
379
379
|
}
|
|
380
|
-
|
|
380
|
+
k += P;
|
|
381
381
|
}
|
|
382
|
-
return `\\${o}${
|
|
382
|
+
return `\\${o}${k}`;
|
|
383
383
|
}
|
|
384
384
|
function K(s) {
|
|
385
|
-
return s !== "{" && s !== "}" && s !== Pe && s !==
|
|
385
|
+
return s !== "{" && s !== "}" && s !== Pe && s !== Ee;
|
|
386
386
|
}
|
|
387
387
|
function pe(s) {
|
|
388
|
-
|
|
388
|
+
D(s);
|
|
389
389
|
let o = "", _ = "";
|
|
390
|
-
for (; o =
|
|
390
|
+
for (; o = d(s, K); )
|
|
391
391
|
_ += o;
|
|
392
392
|
return _;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function $e(s) {
|
|
395
395
|
let o = "", _ = "";
|
|
396
396
|
for (; o = U(s); )
|
|
397
397
|
_ += o;
|
|
@@ -399,89 +399,89 @@ function Qr(e, t = {}) {
|
|
|
399
399
|
}
|
|
400
400
|
function Ke(s) {
|
|
401
401
|
const o = (_) => {
|
|
402
|
-
const
|
|
403
|
-
return
|
|
402
|
+
const k = s.currentChar();
|
|
403
|
+
return k === "{" || k === "@" || k === "|" || k === "(" || k === ")" || !k || k === Pe ? _ : (_ += k, s.next(), o(_));
|
|
404
404
|
};
|
|
405
405
|
return o("");
|
|
406
406
|
}
|
|
407
407
|
function Ve(s) {
|
|
408
|
-
|
|
409
|
-
const o =
|
|
408
|
+
D(s);
|
|
409
|
+
const o = w(
|
|
410
410
|
s,
|
|
411
411
|
"|"
|
|
412
412
|
/* TokenChars.Pipe */
|
|
413
413
|
);
|
|
414
|
-
return
|
|
414
|
+
return D(s), o;
|
|
415
415
|
}
|
|
416
416
|
function Fe(s, o) {
|
|
417
417
|
let _ = null;
|
|
418
418
|
switch (s.currentChar()) {
|
|
419
419
|
case "{":
|
|
420
|
-
return o.braceNest >= 1 && T(re.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), s.next(), _ =
|
|
420
|
+
return o.braceNest >= 1 && T(re.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), s.next(), _ = C(
|
|
421
421
|
o,
|
|
422
422
|
2,
|
|
423
423
|
"{"
|
|
424
424
|
/* TokenChars.BraceLeft */
|
|
425
|
-
),
|
|
425
|
+
), D(s), o.braceNest++, _;
|
|
426
426
|
case "}":
|
|
427
|
-
return o.braceNest > 0 && o.currentType === 2 && T(re.EMPTY_PLACEHOLDER, a(), 0), s.next(), _ =
|
|
427
|
+
return o.braceNest > 0 && o.currentType === 2 && T(re.EMPTY_PLACEHOLDER, a(), 0), s.next(), _ = C(
|
|
428
428
|
o,
|
|
429
429
|
3,
|
|
430
430
|
"}"
|
|
431
431
|
/* TokenChars.BraceRight */
|
|
432
|
-
), o.braceNest--, o.braceNest > 0 &&
|
|
432
|
+
), o.braceNest--, o.braceNest > 0 && D(s), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), _;
|
|
433
433
|
case "@":
|
|
434
|
-
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ =
|
|
434
|
+
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = Ne(s, o) || F(o), o.braceNest = 0, _;
|
|
435
435
|
default: {
|
|
436
436
|
let M = !0, P = !0, v = !0;
|
|
437
|
-
if (
|
|
438
|
-
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ =
|
|
437
|
+
if (B(s))
|
|
438
|
+
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = C(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
439
439
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
440
|
-
return T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0,
|
|
440
|
+
return T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, Ze(s, o);
|
|
441
441
|
if (M = S(s, o))
|
|
442
|
-
return _ =
|
|
442
|
+
return _ = C(o, 4, _e(s)), D(s), _;
|
|
443
443
|
if (P = c(s, o))
|
|
444
|
-
return _ =
|
|
444
|
+
return _ = C(o, 5, ce(s)), D(s), _;
|
|
445
445
|
if (v = b(s, o))
|
|
446
|
-
return _ =
|
|
446
|
+
return _ = C(o, 6, fe(s)), D(s), _;
|
|
447
447
|
if (!M && !P && !v)
|
|
448
|
-
return _ =
|
|
448
|
+
return _ = C(o, 12, pe(s)), T(re.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, _.value), D(s), _;
|
|
449
449
|
break;
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
452
|
return _;
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function Ne(s, o) {
|
|
455
455
|
const { currentType: _ } = o;
|
|
456
|
-
let
|
|
456
|
+
let k = null;
|
|
457
457
|
const M = s.currentChar();
|
|
458
|
-
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M ===
|
|
458
|
+
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M === Ee || M === Pe) && T(re.INVALID_LINKED_FORMAT, a(), 0), M) {
|
|
459
459
|
case "@":
|
|
460
|
-
return s.next(),
|
|
460
|
+
return s.next(), k = C(
|
|
461
461
|
o,
|
|
462
462
|
7,
|
|
463
463
|
"@"
|
|
464
464
|
/* TokenChars.LinkedAlias */
|
|
465
|
-
), o.inLinked = !0,
|
|
465
|
+
), o.inLinked = !0, k;
|
|
466
466
|
case ".":
|
|
467
|
-
return
|
|
467
|
+
return D(s), s.next(), C(
|
|
468
468
|
o,
|
|
469
469
|
8,
|
|
470
470
|
"."
|
|
471
471
|
/* TokenChars.LinkedDot */
|
|
472
472
|
);
|
|
473
473
|
case ":":
|
|
474
|
-
return
|
|
474
|
+
return D(s), s.next(), C(
|
|
475
475
|
o,
|
|
476
476
|
9,
|
|
477
477
|
":"
|
|
478
478
|
/* TokenChars.LinkedDelimiter */
|
|
479
479
|
);
|
|
480
480
|
default:
|
|
481
|
-
return
|
|
481
|
+
return B(s) ? (k = C(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, k) : I(s, o) || R(s, o) ? (D(s), Ne(s, o)) : p(s, o) ? (D(s), C(o, 11, $e(s))) : A(s, o) ? (D(s), M === "{" ? Fe(s, o) || k : C(o, 10, Ke(s))) : (_ === 7 && T(re.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, Ze(s, o));
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function Ze(s, o) {
|
|
485
485
|
let _ = {
|
|
486
486
|
type: 13
|
|
487
487
|
/* TokenTypes.EOF */
|
|
@@ -489,36 +489,36 @@ function Qr(e, t = {}) {
|
|
|
489
489
|
if (o.braceNest > 0)
|
|
490
490
|
return Fe(s, o) || F(o);
|
|
491
491
|
if (o.inLinked)
|
|
492
|
-
return
|
|
492
|
+
return Ne(s, o) || F(o);
|
|
493
493
|
switch (s.currentChar()) {
|
|
494
494
|
case "{":
|
|
495
495
|
return Fe(s, o) || F(o);
|
|
496
496
|
case "}":
|
|
497
|
-
return T(re.UNBALANCED_CLOSING_BRACE, a(), 0), s.next(),
|
|
497
|
+
return T(re.UNBALANCED_CLOSING_BRACE, a(), 0), s.next(), C(
|
|
498
498
|
o,
|
|
499
499
|
3,
|
|
500
500
|
"}"
|
|
501
501
|
/* TokenChars.BraceRight */
|
|
502
502
|
);
|
|
503
503
|
case "@":
|
|
504
|
-
return
|
|
504
|
+
return Ne(s, o) || F(o);
|
|
505
505
|
default: {
|
|
506
|
-
if (
|
|
507
|
-
return _ =
|
|
506
|
+
if (B(s))
|
|
507
|
+
return _ = C(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
508
508
|
if (x(s))
|
|
509
|
-
return
|
|
509
|
+
return C(o, 0, Q(s));
|
|
510
510
|
break;
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
513
|
return _;
|
|
514
514
|
}
|
|
515
515
|
function O() {
|
|
516
|
-
const { currentType: s, offset: o, startLoc: _, endLoc:
|
|
517
|
-
return i.lastType = s, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc =
|
|
516
|
+
const { currentType: s, offset: o, startLoc: _, endLoc: k } = i;
|
|
517
|
+
return i.lastType = s, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc = k, i.offset = l(), i.startLoc = a(), r.currentChar() === xe ? C(
|
|
518
518
|
i,
|
|
519
519
|
13
|
|
520
520
|
/* TokenTypes.EOF */
|
|
521
|
-
) :
|
|
521
|
+
) : Ze(r, i);
|
|
522
522
|
}
|
|
523
523
|
return {
|
|
524
524
|
nextToken: O,
|
|
@@ -559,7 +559,7 @@ function ns(e = {}) {
|
|
|
559
559
|
function a(f, h, S, c) {
|
|
560
560
|
t && (f.end = h, f.loc && (f.loc.end = S));
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function m(f, h) {
|
|
563
563
|
const S = f.context(), c = l(3, S.offset, S.startLoc);
|
|
564
564
|
return c.value = h, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
565
565
|
}
|
|
@@ -575,12 +575,12 @@ function ns(e = {}) {
|
|
|
575
575
|
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(9, c, b);
|
|
576
576
|
return I.value = h.replace(es, ts), f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function E(f) {
|
|
579
579
|
const h = f.nextToken(), S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(8, c, b);
|
|
580
580
|
return h.type !== 11 ? (r(f, re.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), I.value = "", a(I, c, b), {
|
|
581
581
|
nextConsumeToken: h,
|
|
582
582
|
node: I
|
|
583
|
-
}) : (h.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0,
|
|
583
|
+
}) : (h.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, ke(h)), I.value = h.value || "", a(I, f.currentOffset(), f.currentPosition()), {
|
|
584
584
|
node: I
|
|
585
585
|
});
|
|
586
586
|
}
|
|
@@ -588,25 +588,25 @@ function ns(e = {}) {
|
|
|
588
588
|
const S = f.context(), c = l(7, S.offset, S.startLoc);
|
|
589
589
|
return c.value = h, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
590
590
|
}
|
|
591
|
-
function
|
|
591
|
+
function C(f) {
|
|
592
592
|
const h = f.context(), S = l(6, h.offset, h.startLoc);
|
|
593
593
|
let c = f.nextToken();
|
|
594
594
|
if (c.type === 8) {
|
|
595
|
-
const b =
|
|
595
|
+
const b = E(f);
|
|
596
596
|
S.modifier = b.node, c = b.nextConsumeToken || f.nextToken();
|
|
597
597
|
}
|
|
598
|
-
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
598
|
+
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(c)), c = f.nextToken(), c.type === 2 && (c = f.nextToken()), c.type) {
|
|
599
599
|
case 10:
|
|
600
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
600
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(c)), S.key = T(f, c.value || "");
|
|
601
601
|
break;
|
|
602
602
|
case 4:
|
|
603
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
603
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(c)), S.key = i(f, c.value || "");
|
|
604
604
|
break;
|
|
605
605
|
case 5:
|
|
606
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
606
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(c)), S.key = u(f, c.value || "");
|
|
607
607
|
break;
|
|
608
608
|
case 6:
|
|
609
|
-
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0,
|
|
609
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(c)), S.key = g(f, c.value || "");
|
|
610
610
|
break;
|
|
611
611
|
default: {
|
|
612
612
|
r(f, re.UNEXPECTED_EMPTY_LINKED_KEY, h.lastStartLoc, 0);
|
|
@@ -626,23 +626,23 @@ function ns(e = {}) {
|
|
|
626
626
|
b.items = [];
|
|
627
627
|
let I = null;
|
|
628
628
|
do {
|
|
629
|
-
const
|
|
630
|
-
switch (I = null,
|
|
629
|
+
const A = I || f.nextToken();
|
|
630
|
+
switch (I = null, A.type) {
|
|
631
631
|
case 0:
|
|
632
|
-
|
|
632
|
+
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(A)), b.items.push(m(f, A.value || ""));
|
|
633
633
|
break;
|
|
634
634
|
case 5:
|
|
635
|
-
|
|
635
|
+
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(A)), b.items.push(u(f, A.value || ""));
|
|
636
636
|
break;
|
|
637
637
|
case 4:
|
|
638
|
-
|
|
638
|
+
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(A)), b.items.push(i(f, A.value || ""));
|
|
639
639
|
break;
|
|
640
640
|
case 6:
|
|
641
|
-
|
|
641
|
+
A.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(A)), b.items.push(g(f, A.value || ""));
|
|
642
642
|
break;
|
|
643
643
|
case 7: {
|
|
644
|
-
const
|
|
645
|
-
b.items.push(
|
|
644
|
+
const B = C(f);
|
|
645
|
+
b.items.push(B.node), I = B.nextConsumeToken || null;
|
|
646
646
|
break;
|
|
647
647
|
}
|
|
648
648
|
}
|
|
@@ -650,7 +650,7 @@ function ns(e = {}) {
|
|
|
650
650
|
const p = h.currentType === 1 ? h.lastOffset : f.currentOffset(), R = h.currentType === 1 ? h.lastEndLoc : f.currentPosition();
|
|
651
651
|
return a(b, p, R), b;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function w(f, h, S, c) {
|
|
654
654
|
const b = f.context();
|
|
655
655
|
let I = c.items.length === 0;
|
|
656
656
|
const p = l(1, h, S);
|
|
@@ -661,17 +661,17 @@ function ns(e = {}) {
|
|
|
661
661
|
} while (b.currentType !== 13);
|
|
662
662
|
return I && r(f, re.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), a(p, f.currentOffset(), f.currentPosition()), p;
|
|
663
663
|
}
|
|
664
|
-
function
|
|
664
|
+
function L(f) {
|
|
665
665
|
const h = f.context(), { offset: S, startLoc: c } = h, b = F(f);
|
|
666
|
-
return h.currentType === 13 ? b :
|
|
666
|
+
return h.currentType === 13 ? b : w(f, S, c, b);
|
|
667
667
|
}
|
|
668
|
-
function
|
|
668
|
+
function D(f) {
|
|
669
669
|
const h = Qr(f, Ie({}, e)), S = h.context(), c = l(0, S.offset, S.startLoc);
|
|
670
|
-
return t && c.loc && (c.loc.source = f), c.body =
|
|
670
|
+
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;
|
|
671
671
|
}
|
|
672
|
-
return { parse:
|
|
672
|
+
return { parse: D };
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function ke(e) {
|
|
675
675
|
if (e.type === 13)
|
|
676
676
|
return "EOF";
|
|
677
677
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
@@ -686,9 +686,9 @@ function rs(e, t = {}) {
|
|
|
686
686
|
}
|
|
687
687
|
function un(e, t) {
|
|
688
688
|
for (let n = 0; n < e.length; n++)
|
|
689
|
-
|
|
689
|
+
$t(e[n], t);
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function $t(e, t) {
|
|
692
692
|
switch (e.type) {
|
|
693
693
|
case 1:
|
|
694
694
|
un(e.cases, t), t.helper(
|
|
@@ -700,7 +700,7 @@ function Jt(e, t) {
|
|
|
700
700
|
un(e.items, t);
|
|
701
701
|
break;
|
|
702
702
|
case 6: {
|
|
703
|
-
|
|
703
|
+
$t(e.key, t), t.helper(
|
|
704
704
|
"linked"
|
|
705
705
|
/* HelperNameMap.LINKED */
|
|
706
706
|
), t.helper(
|
|
@@ -734,15 +734,15 @@ function ss(e, t = {}) {
|
|
|
734
734
|
n.helper(
|
|
735
735
|
"normalize"
|
|
736
736
|
/* HelperNameMap.NORMALIZE */
|
|
737
|
-
), e.body &&
|
|
737
|
+
), e.body && $t(e.body, n);
|
|
738
738
|
const r = n.context();
|
|
739
739
|
e.helpers = Array.from(r.helpers);
|
|
740
740
|
}
|
|
741
741
|
function os(e) {
|
|
742
742
|
const t = e.body;
|
|
743
|
-
return t.type === 2 ?
|
|
743
|
+
return t.type === 2 ? mn(t) : t.cases.forEach((n) => mn(n)), e;
|
|
744
744
|
}
|
|
745
|
-
function
|
|
745
|
+
function mn(e) {
|
|
746
746
|
if (e.items.length === 1) {
|
|
747
747
|
const t = e.items[0];
|
|
748
748
|
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
@@ -755,7 +755,7 @@ function dn(e) {
|
|
|
755
755
|
t.push(r.value);
|
|
756
756
|
}
|
|
757
757
|
if (t.length === e.items.length) {
|
|
758
|
-
e.static =
|
|
758
|
+
e.static = Jt(t);
|
|
759
759
|
for (let n = 0; n < e.items.length; n++) {
|
|
760
760
|
const r = e.items[n];
|
|
761
761
|
(r.type === 3 || r.type === 9) && delete r.value;
|
|
@@ -811,7 +811,7 @@ function Qe(e) {
|
|
|
811
811
|
delete e.type;
|
|
812
812
|
}
|
|
813
813
|
function as(e, t) {
|
|
814
|
-
const { filename: n, breakLineCode: r, needIndent: l } = t, a = t.location !== !1,
|
|
814
|
+
const { filename: n, breakLineCode: r, needIndent: l } = t, a = t.location !== !1, m = {
|
|
815
815
|
filename: n,
|
|
816
816
|
code: "",
|
|
817
817
|
column: 1,
|
|
@@ -822,34 +822,34 @@ function as(e, t) {
|
|
|
822
822
|
needIndent: l,
|
|
823
823
|
indentLevel: 0
|
|
824
824
|
};
|
|
825
|
-
a && e.loc && (
|
|
826
|
-
const u = () =>
|
|
827
|
-
function i(
|
|
828
|
-
|
|
825
|
+
a && e.loc && (m.source = e.loc.source);
|
|
826
|
+
const u = () => m;
|
|
827
|
+
function i(L, D) {
|
|
828
|
+
m.code += L;
|
|
829
829
|
}
|
|
830
|
-
function g(
|
|
831
|
-
const f =
|
|
832
|
-
i(l ? f + " ".repeat(
|
|
830
|
+
function g(L, D = !0) {
|
|
831
|
+
const f = D ? r : "";
|
|
832
|
+
i(l ? f + " ".repeat(L) : f);
|
|
833
833
|
}
|
|
834
|
-
function
|
|
835
|
-
const
|
|
836
|
-
|
|
834
|
+
function E(L = !0) {
|
|
835
|
+
const D = ++m.indentLevel;
|
|
836
|
+
L && g(D);
|
|
837
837
|
}
|
|
838
|
-
function T(
|
|
839
|
-
const
|
|
840
|
-
|
|
838
|
+
function T(L = !0) {
|
|
839
|
+
const D = --m.indentLevel;
|
|
840
|
+
L && g(D);
|
|
841
841
|
}
|
|
842
|
-
function
|
|
843
|
-
g(
|
|
842
|
+
function C() {
|
|
843
|
+
g(m.indentLevel);
|
|
844
844
|
}
|
|
845
845
|
return {
|
|
846
846
|
context: u,
|
|
847
847
|
push: i,
|
|
848
|
-
indent:
|
|
848
|
+
indent: E,
|
|
849
849
|
deindent: T,
|
|
850
|
-
newline:
|
|
851
|
-
helper: (
|
|
852
|
-
needIndent: () =>
|
|
850
|
+
newline: C,
|
|
851
|
+
helper: (L) => `_${L}`,
|
|
852
|
+
needIndent: () => m.needIndent
|
|
853
853
|
};
|
|
854
854
|
}
|
|
855
855
|
function ls(e, t) {
|
|
@@ -933,16 +933,16 @@ function st(e, t) {
|
|
|
933
933
|
break;
|
|
934
934
|
}
|
|
935
935
|
}
|
|
936
|
-
const
|
|
937
|
-
const n =
|
|
936
|
+
const ms = (e, t = {}) => {
|
|
937
|
+
const n = Y(t.mode) ? t.mode : "normal", r = Y(t.filename) ? t.filename : "message.intl";
|
|
938
938
|
t.sourceMap;
|
|
939
939
|
const l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
940
|
-
`, a = t.needIndent ? t.needIndent : n !== "arrow",
|
|
940
|
+
`, a = t.needIndent ? t.needIndent : n !== "arrow", m = e.helpers || [], u = as(e, {
|
|
941
941
|
filename: r,
|
|
942
942
|
breakLineCode: l,
|
|
943
943
|
needIndent: a
|
|
944
944
|
});
|
|
945
|
-
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a),
|
|
945
|
+
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), m.length > 0 && (u.push(`const { ${Jt(m.map((E) => `${E}: _${E}`), ", ")} } = ctx`), u.newline()), u.push("return "), st(u, e), u.deindent(a), u.push("}"), delete e.helpers;
|
|
946
946
|
const { code: i, map: g } = u.context();
|
|
947
947
|
return {
|
|
948
948
|
ast: e,
|
|
@@ -951,15 +951,15 @@ const ds = (e, t = {}) => {
|
|
|
951
951
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
952
952
|
};
|
|
953
953
|
};
|
|
954
|
-
function
|
|
954
|
+
function ds(e, t = {}) {
|
|
955
955
|
const n = Ie({}, t), r = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize, u = ns(n).parse(e);
|
|
956
|
-
return r ? (a && os(u), l && Qe(u), { ast: u, code: "" }) : (ss(u, n),
|
|
956
|
+
return r ? (a && os(u), l && Qe(u), { ast: u, code: "" }) : (ss(u, n), ms(u, n));
|
|
957
957
|
}
|
|
958
958
|
var fs = { env: { NODE_ENV: "production" } };
|
|
959
959
|
function _s() {
|
|
960
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
960
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Be().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Be().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
961
961
|
}
|
|
962
|
-
function
|
|
962
|
+
function Lt(e) {
|
|
963
963
|
return (n) => ps(n, e);
|
|
964
964
|
}
|
|
965
965
|
function ps(e, t) {
|
|
@@ -971,12 +971,12 @@ function ps(e, t) {
|
|
|
971
971
|
);
|
|
972
972
|
if (Kt(n) === 1) {
|
|
973
973
|
const a = gs(n);
|
|
974
|
-
return e.plural(a.reduce((
|
|
975
|
-
...
|
|
976
|
-
|
|
974
|
+
return e.plural(a.reduce((m, u) => [
|
|
975
|
+
...m,
|
|
976
|
+
dn(e, u)
|
|
977
977
|
], []));
|
|
978
978
|
} else
|
|
979
|
-
return
|
|
979
|
+
return dn(e, n);
|
|
980
980
|
}
|
|
981
981
|
const vs = ["b", "body"];
|
|
982
982
|
function hs(e) {
|
|
@@ -986,22 +986,22 @@ const bs = ["c", "cases"];
|
|
|
986
986
|
function gs(e) {
|
|
987
987
|
return Ge(e, bs, []);
|
|
988
988
|
}
|
|
989
|
-
function
|
|
990
|
-
const n =
|
|
989
|
+
function dn(e, t) {
|
|
990
|
+
const n = Es(t);
|
|
991
991
|
if (n != null)
|
|
992
992
|
return e.type === "text" ? n : e.normalize([n]);
|
|
993
993
|
{
|
|
994
|
-
const r =
|
|
994
|
+
const r = Cs(t).reduce((l, a) => [...l, Pt(e, a)], []);
|
|
995
995
|
return e.normalize(r);
|
|
996
996
|
}
|
|
997
997
|
}
|
|
998
998
|
const Is = ["s", "static"];
|
|
999
|
-
function
|
|
999
|
+
function Es(e) {
|
|
1000
1000
|
return Ge(e, Is);
|
|
1001
1001
|
}
|
|
1002
|
-
const
|
|
1003
|
-
function
|
|
1004
|
-
return Ge(e,
|
|
1002
|
+
const ys = ["i", "items"];
|
|
1003
|
+
function Cs(e) {
|
|
1004
|
+
return Ge(e, ys, []);
|
|
1005
1005
|
}
|
|
1006
1006
|
function Pt(e, t) {
|
|
1007
1007
|
const n = Kt(t);
|
|
@@ -1012,22 +1012,22 @@ function Pt(e, t) {
|
|
|
1012
1012
|
return _t(t, n);
|
|
1013
1013
|
case 4: {
|
|
1014
1014
|
const r = t;
|
|
1015
|
-
if (
|
|
1015
|
+
if (Ae(r, "k") && r.k)
|
|
1016
1016
|
return e.interpolate(e.named(r.k));
|
|
1017
|
-
if (
|
|
1017
|
+
if (Ae(r, "key") && r.key)
|
|
1018
1018
|
return e.interpolate(e.named(r.key));
|
|
1019
1019
|
throw it(n);
|
|
1020
1020
|
}
|
|
1021
1021
|
case 5: {
|
|
1022
1022
|
const r = t;
|
|
1023
|
-
if (
|
|
1023
|
+
if (Ae(r, "i") && ge(r.i))
|
|
1024
1024
|
return e.interpolate(e.list(r.i));
|
|
1025
|
-
if (
|
|
1025
|
+
if (Ae(r, "index") && ge(r.index))
|
|
1026
1026
|
return e.interpolate(e.list(r.index));
|
|
1027
1027
|
throw it(n);
|
|
1028
1028
|
}
|
|
1029
1029
|
case 6: {
|
|
1030
|
-
const r = t, l = Ss(r), a =
|
|
1030
|
+
const r = t, l = Ss(r), a = Ls(r);
|
|
1031
1031
|
return e.linked(Pt(e, a), l ? Pt(e, l) : void 0, e.type);
|
|
1032
1032
|
}
|
|
1033
1033
|
case 7:
|
|
@@ -1038,9 +1038,9 @@ function Pt(e, t) {
|
|
|
1038
1038
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1039
1039
|
}
|
|
1040
1040
|
}
|
|
1041
|
-
const
|
|
1041
|
+
const Ns = ["t", "type"];
|
|
1042
1042
|
function Kt(e) {
|
|
1043
|
-
return Ge(e,
|
|
1043
|
+
return Ge(e, Ns);
|
|
1044
1044
|
}
|
|
1045
1045
|
const Ts = ["v", "value"];
|
|
1046
1046
|
function _t(e, t) {
|
|
@@ -1053,9 +1053,9 @@ const Os = ["m", "modifier"];
|
|
|
1053
1053
|
function Ss(e) {
|
|
1054
1054
|
return Ge(e, Os);
|
|
1055
1055
|
}
|
|
1056
|
-
const
|
|
1057
|
-
function
|
|
1058
|
-
const t = Ge(e,
|
|
1056
|
+
const As = ["k", "key"];
|
|
1057
|
+
function Ls(e) {
|
|
1058
|
+
const t = Ge(e, As);
|
|
1059
1059
|
if (t)
|
|
1060
1060
|
return t;
|
|
1061
1061
|
throw it(
|
|
@@ -1066,7 +1066,7 @@ function As(e) {
|
|
|
1066
1066
|
function Ge(e, t, n) {
|
|
1067
1067
|
for (let r = 0; r < t.length; r++) {
|
|
1068
1068
|
const l = t[r];
|
|
1069
|
-
if (
|
|
1069
|
+
if (Ae(e, l) && e[l] != null)
|
|
1070
1070
|
return e[l];
|
|
1071
1071
|
}
|
|
1072
1072
|
return n;
|
|
@@ -1074,45 +1074,45 @@ function Ge(e, t, n) {
|
|
|
1074
1074
|
function it(e) {
|
|
1075
1075
|
return new Error(`unhandled node type: ${e}`);
|
|
1076
1076
|
}
|
|
1077
|
-
const
|
|
1077
|
+
const ks = (e) => e;
|
|
1078
1078
|
let pt = oe();
|
|
1079
1079
|
function ot(e) {
|
|
1080
|
-
return te(e) && Kt(e) === 0 && (
|
|
1080
|
+
return te(e) && Kt(e) === 0 && (Ae(e, "b") || Ae(e, "body"));
|
|
1081
1081
|
}
|
|
1082
1082
|
function Rs(e, t = {}) {
|
|
1083
1083
|
let n = !1;
|
|
1084
|
-
const r = t.onError ||
|
|
1084
|
+
const r = t.onError || Xr;
|
|
1085
1085
|
return t.onError = (l) => {
|
|
1086
1086
|
n = !0, r(l);
|
|
1087
|
-
}, { ...
|
|
1087
|
+
}, { ...ds(e, t), detectError: n };
|
|
1088
1088
|
}
|
|
1089
1089
|
// @__NO_SIDE_EFFECTS__
|
|
1090
1090
|
function Ms(e, t) {
|
|
1091
|
-
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ &&
|
|
1091
|
+
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && Y(e)) {
|
|
1092
1092
|
ve(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1093
|
-
const r = (t.onCacheKey ||
|
|
1093
|
+
const r = (t.onCacheKey || ks)(e), l = pt[r];
|
|
1094
1094
|
if (l)
|
|
1095
1095
|
return l;
|
|
1096
|
-
const { ast: a, detectError:
|
|
1096
|
+
const { ast: a, detectError: m } = Rs(e, {
|
|
1097
1097
|
...t,
|
|
1098
1098
|
location: fs.env.NODE_ENV !== "production",
|
|
1099
1099
|
jit: !0
|
|
1100
|
-
}), u =
|
|
1101
|
-
return
|
|
1100
|
+
}), u = Lt(a);
|
|
1101
|
+
return m ? u : pt[r] = u;
|
|
1102
1102
|
} else {
|
|
1103
1103
|
const n = e.cacheKey;
|
|
1104
1104
|
if (n) {
|
|
1105
1105
|
const r = pt[n];
|
|
1106
|
-
return r || (pt[n] =
|
|
1106
|
+
return r || (pt[n] = Lt(e));
|
|
1107
1107
|
} else
|
|
1108
|
-
return
|
|
1108
|
+
return Lt(e);
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
1111
|
let ct = null;
|
|
1112
|
-
function
|
|
1112
|
+
function ws(e) {
|
|
1113
1113
|
ct = e;
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1115
|
+
function Ds(e, t, n) {
|
|
1116
1116
|
ct && ct.emit("i18n:init", {
|
|
1117
1117
|
timestamp: Date.now(),
|
|
1118
1118
|
i18n: e,
|
|
@@ -1125,7 +1125,7 @@ function Ps(e) {
|
|
|
1125
1125
|
return (t) => ct && ct.emit(e, t);
|
|
1126
1126
|
}
|
|
1127
1127
|
const je = {
|
|
1128
|
-
INVALID_ARGUMENT:
|
|
1128
|
+
INVALID_ARGUMENT: Zr,
|
|
1129
1129
|
// 17
|
|
1130
1130
|
INVALID_DATE_ARGUMENT: 18,
|
|
1131
1131
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1139,18 +1139,18 @@ function Ue(e) {
|
|
|
1139
1139
|
function zt(e, t) {
|
|
1140
1140
|
return t.locale != null ? fn(t.locale) : fn(e.locale);
|
|
1141
1141
|
}
|
|
1142
|
-
let
|
|
1142
|
+
let kt;
|
|
1143
1143
|
function fn(e) {
|
|
1144
|
-
if (
|
|
1144
|
+
if (Y(e))
|
|
1145
1145
|
return e;
|
|
1146
|
-
if (
|
|
1147
|
-
if (e.resolvedOnce &&
|
|
1148
|
-
return
|
|
1146
|
+
if (de(e)) {
|
|
1147
|
+
if (e.resolvedOnce && kt != null)
|
|
1148
|
+
return kt;
|
|
1149
1149
|
if (e.constructor.name === "Function") {
|
|
1150
1150
|
const t = e();
|
|
1151
1151
|
if (xr(t))
|
|
1152
1152
|
throw Ue(je.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1153
|
-
return
|
|
1153
|
+
return kt = t;
|
|
1154
1154
|
} else
|
|
1155
1155
|
throw Ue(je.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1156
1156
|
} else
|
|
@@ -1159,20 +1159,20 @@ function fn(e) {
|
|
|
1159
1159
|
function Us(e, t, n) {
|
|
1160
1160
|
return [.../* @__PURE__ */ new Set([
|
|
1161
1161
|
n,
|
|
1162
|
-
...be(t) ? t : te(t) ? Object.keys(t) :
|
|
1162
|
+
...be(t) ? t : te(t) ? Object.keys(t) : Y(t) ? [t] : [n]
|
|
1163
1163
|
])];
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1166
|
-
const r =
|
|
1165
|
+
function Hn(e, t, n) {
|
|
1166
|
+
const r = Y(n) ? n : Ct, l = e;
|
|
1167
1167
|
l.__localeChainCache || (l.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1168
1168
|
let a = l.__localeChainCache.get(r);
|
|
1169
1169
|
if (!a) {
|
|
1170
1170
|
a = [];
|
|
1171
|
-
let
|
|
1172
|
-
for (; be(
|
|
1173
|
-
|
|
1171
|
+
let m = [n];
|
|
1172
|
+
for (; be(m); )
|
|
1173
|
+
m = _n(a, m, t);
|
|
1174
1174
|
const u = be(t) || !ee(t) ? t : t.default ? t.default : null;
|
|
1175
|
-
|
|
1175
|
+
m = Y(u) ? [u] : u, be(m) && _n(a, m, !1), l.__localeChainCache.set(r, a);
|
|
1176
1176
|
}
|
|
1177
1177
|
return a;
|
|
1178
1178
|
}
|
|
@@ -1180,7 +1180,7 @@ function _n(e, t, n) {
|
|
|
1180
1180
|
let r = !0;
|
|
1181
1181
|
for (let l = 0; l < t.length && ve(r); l++) {
|
|
1182
1182
|
const a = t[l];
|
|
1183
|
-
|
|
1183
|
+
Y(a) && (r = Vs(e, t[l], n));
|
|
1184
1184
|
}
|
|
1185
1185
|
return r;
|
|
1186
1186
|
}
|
|
@@ -1202,8 +1202,8 @@ function xs(e, t, n) {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
return r;
|
|
1204
1204
|
}
|
|
1205
|
-
const
|
|
1206
|
-
|
|
1205
|
+
const Ye = [];
|
|
1206
|
+
Ye[
|
|
1207
1207
|
0
|
|
1208
1208
|
/* States.BEFORE_PATH */
|
|
1209
1209
|
] = {
|
|
@@ -1225,7 +1225,7 @@ Ze[
|
|
|
1225
1225
|
/* States.AFTER_PATH */
|
|
1226
1226
|
]
|
|
1227
1227
|
};
|
|
1228
|
-
|
|
1228
|
+
Ye[
|
|
1229
1229
|
1
|
|
1230
1230
|
/* States.IN_PATH */
|
|
1231
1231
|
] = {
|
|
@@ -1246,7 +1246,7 @@ Ze[
|
|
|
1246
1246
|
/* States.AFTER_PATH */
|
|
1247
1247
|
]
|
|
1248
1248
|
};
|
|
1249
|
-
|
|
1249
|
+
Ye[
|
|
1250
1250
|
2
|
|
1251
1251
|
/* States.BEFORE_IDENT */
|
|
1252
1252
|
] = {
|
|
@@ -1265,7 +1265,7 @@ Ze[
|
|
|
1265
1265
|
/* Actions.APPEND */
|
|
1266
1266
|
]
|
|
1267
1267
|
};
|
|
1268
|
-
|
|
1268
|
+
Ye[
|
|
1269
1269
|
3
|
|
1270
1270
|
/* States.IN_IDENT */
|
|
1271
1271
|
] = {
|
|
@@ -1300,7 +1300,7 @@ Ze[
|
|
|
1300
1300
|
/* Actions.PUSH */
|
|
1301
1301
|
]
|
|
1302
1302
|
};
|
|
1303
|
-
|
|
1303
|
+
Ye[
|
|
1304
1304
|
4
|
|
1305
1305
|
/* States.IN_SUB_PATH */
|
|
1306
1306
|
] = {
|
|
@@ -1331,7 +1331,7 @@ Ze[
|
|
|
1331
1331
|
/* Actions.APPEND */
|
|
1332
1332
|
]
|
|
1333
1333
|
};
|
|
1334
|
-
|
|
1334
|
+
Ye[
|
|
1335
1335
|
5
|
|
1336
1336
|
/* States.IN_SINGLE_QUOTE */
|
|
1337
1337
|
] = {
|
|
@@ -1347,7 +1347,7 @@ Ze[
|
|
|
1347
1347
|
/* Actions.APPEND */
|
|
1348
1348
|
]
|
|
1349
1349
|
};
|
|
1350
|
-
|
|
1350
|
+
Ye[
|
|
1351
1351
|
6
|
|
1352
1352
|
/* States.IN_DOUBLE_QUOTE */
|
|
1353
1353
|
] = {
|
|
@@ -1367,11 +1367,11 @@ const Ws = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
|
1367
1367
|
function Gs(e) {
|
|
1368
1368
|
return Ws.test(e);
|
|
1369
1369
|
}
|
|
1370
|
-
function
|
|
1370
|
+
function Ys(e) {
|
|
1371
1371
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1372
1372
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1373
1373
|
}
|
|
1374
|
-
function
|
|
1374
|
+
function Zs(e) {
|
|
1375
1375
|
if (e == null)
|
|
1376
1376
|
return "o";
|
|
1377
1377
|
switch (e.charCodeAt(0)) {
|
|
@@ -1396,101 +1396,101 @@ function Xs(e) {
|
|
|
1396
1396
|
}
|
|
1397
1397
|
return "i";
|
|
1398
1398
|
}
|
|
1399
|
-
function
|
|
1399
|
+
function Xs(e) {
|
|
1400
1400
|
const t = e.trim();
|
|
1401
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Gs(t) ?
|
|
1401
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Gs(t) ? Ys(t) : "*" + t;
|
|
1402
1402
|
}
|
|
1403
|
-
function
|
|
1403
|
+
function Bs(e) {
|
|
1404
1404
|
const t = [];
|
|
1405
|
-
let n = -1, r = 0, l = 0, a,
|
|
1406
|
-
const
|
|
1407
|
-
|
|
1405
|
+
let n = -1, r = 0, l = 0, a, m, u, i, g, E, T;
|
|
1406
|
+
const C = [];
|
|
1407
|
+
C[
|
|
1408
1408
|
0
|
|
1409
1409
|
/* Actions.APPEND */
|
|
1410
1410
|
] = () => {
|
|
1411
|
-
|
|
1412
|
-
},
|
|
1411
|
+
m === void 0 ? m = u : m += u;
|
|
1412
|
+
}, C[
|
|
1413
1413
|
1
|
|
1414
1414
|
/* Actions.PUSH */
|
|
1415
1415
|
] = () => {
|
|
1416
|
-
|
|
1417
|
-
},
|
|
1416
|
+
m !== void 0 && (t.push(m), m = void 0);
|
|
1417
|
+
}, C[
|
|
1418
1418
|
2
|
|
1419
1419
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1420
1420
|
] = () => {
|
|
1421
|
-
|
|
1421
|
+
C[
|
|
1422
1422
|
0
|
|
1423
1423
|
/* Actions.APPEND */
|
|
1424
1424
|
](), l++;
|
|
1425
|
-
},
|
|
1425
|
+
}, C[
|
|
1426
1426
|
3
|
|
1427
1427
|
/* Actions.PUSH_SUB_PATH */
|
|
1428
1428
|
] = () => {
|
|
1429
1429
|
if (l > 0)
|
|
1430
|
-
l--, r = 4,
|
|
1430
|
+
l--, r = 4, C[
|
|
1431
1431
|
0
|
|
1432
1432
|
/* Actions.APPEND */
|
|
1433
1433
|
]();
|
|
1434
1434
|
else {
|
|
1435
|
-
if (l = 0,
|
|
1435
|
+
if (l = 0, m === void 0 || (m = Xs(m), m === !1))
|
|
1436
1436
|
return !1;
|
|
1437
|
-
|
|
1437
|
+
C[
|
|
1438
1438
|
1
|
|
1439
1439
|
/* Actions.PUSH */
|
|
1440
1440
|
]();
|
|
1441
1441
|
}
|
|
1442
1442
|
};
|
|
1443
1443
|
function F() {
|
|
1444
|
-
const
|
|
1445
|
-
if (r === 5 &&
|
|
1446
|
-
return n++, u = "\\" +
|
|
1444
|
+
const w = e[n + 1];
|
|
1445
|
+
if (r === 5 && w === "'" || r === 6 && w === '"')
|
|
1446
|
+
return n++, u = "\\" + w, C[
|
|
1447
1447
|
0
|
|
1448
1448
|
/* Actions.APPEND */
|
|
1449
1449
|
](), !0;
|
|
1450
1450
|
}
|
|
1451
1451
|
for (; r !== null; )
|
|
1452
1452
|
if (n++, a = e[n], !(a === "\\" && F())) {
|
|
1453
|
-
if (i =
|
|
1453
|
+
if (i = Zs(a), T = Ye[r], g = T[i] || T.l || 8, g === 8 || (r = g[0], g[1] !== void 0 && (E = C[g[1]], E && (u = a, E() === !1))))
|
|
1454
1454
|
return;
|
|
1455
1455
|
if (r === 7)
|
|
1456
1456
|
return t;
|
|
1457
1457
|
}
|
|
1458
1458
|
}
|
|
1459
1459
|
const pn = /* @__PURE__ */ new Map();
|
|
1460
|
-
function
|
|
1460
|
+
function Hs(e, t) {
|
|
1461
1461
|
return te(e) ? e[t] : null;
|
|
1462
1462
|
}
|
|
1463
|
-
function
|
|
1463
|
+
function Js(e, t) {
|
|
1464
1464
|
if (!te(e))
|
|
1465
1465
|
return null;
|
|
1466
1466
|
let n = pn.get(t);
|
|
1467
|
-
if (n || (n =
|
|
1467
|
+
if (n || (n = Bs(t), n && pn.set(t, n)), !n)
|
|
1468
1468
|
return null;
|
|
1469
1469
|
const r = n.length;
|
|
1470
1470
|
let l = e, a = 0;
|
|
1471
1471
|
for (; a < r; ) {
|
|
1472
|
-
const
|
|
1473
|
-
if (
|
|
1472
|
+
const m = l[n[a]];
|
|
1473
|
+
if (m === void 0 || de(l))
|
|
1474
1474
|
return null;
|
|
1475
|
-
l =
|
|
1475
|
+
l = m, a++;
|
|
1476
1476
|
}
|
|
1477
1477
|
return l;
|
|
1478
1478
|
}
|
|
1479
|
-
const
|
|
1479
|
+
const $s = "10.0.5", Ot = -1, Ct = "en-US", vn = "", hn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1480
1480
|
function Ks() {
|
|
1481
1481
|
return {
|
|
1482
|
-
upper: (e, t) => t === "text" &&
|
|
1483
|
-
lower: (e, t) => t === "text" &&
|
|
1484
|
-
capitalize: (e, t) => t === "text" &&
|
|
1482
|
+
upper: (e, t) => t === "text" && Y(e) ? e.toUpperCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1483
|
+
lower: (e, t) => t === "text" && Y(e) ? e.toLowerCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1484
|
+
capitalize: (e, t) => t === "text" && Y(e) ? hn(e) : t === "vnode" && te(e) && "__v_isVNode" in e ? hn(e.children) : e
|
|
1485
1485
|
};
|
|
1486
1486
|
}
|
|
1487
|
-
let
|
|
1487
|
+
let Jn;
|
|
1488
1488
|
function zs(e) {
|
|
1489
|
-
|
|
1489
|
+
Jn = e;
|
|
1490
1490
|
}
|
|
1491
|
-
let
|
|
1491
|
+
let $n;
|
|
1492
1492
|
function Qs(e) {
|
|
1493
|
-
|
|
1493
|
+
$n = e;
|
|
1494
1494
|
}
|
|
1495
1495
|
let Kn;
|
|
1496
1496
|
function qs(e) {
|
|
@@ -1506,22 +1506,22 @@ const bn = (e) => {
|
|
|
1506
1506
|
}, no = () => Qn;
|
|
1507
1507
|
let gn = 0;
|
|
1508
1508
|
function ro(e = {}) {
|
|
1509
|
-
const t =
|
|
1509
|
+
const t = de(e.onWarn) ? e.onWarn : Gr, n = Y(e.version) ? e.version : $s, r = Y(e.locale) || de(e.locale) ? e.locale : Ct, l = de(r) ? Ct : r, a = be(e.fallbackLocale) || ee(e.fallbackLocale) || Y(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 = Ie(oe(), e.modifiers, Ks()), E = e.pluralRules || oe(), T = de(e.missing) ? e.missing : null, C = ve(e.missingWarn) || yt(e.missingWarn) ? e.missingWarn : !0, F = ve(e.fallbackWarn) || yt(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 = ve(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, c = de(e.messageCompiler) ? e.messageCompiler : Jn, b = de(e.messageResolver) ? e.messageResolver : $n || Hs, I = de(e.localeFallbacker) ? e.localeFallbacker : Kn || Us, p = te(e.fallbackContext) ? e.fallbackContext : void 0, R = e, A = te(R.__datetimeFormatters) ? R.__datetimeFormatters : /* @__PURE__ */ new Map(), B = te(R.__numberFormatters) ? R.__numberFormatters : /* @__PURE__ */ new Map(), x = te(R.__meta) ? R.__meta : {};
|
|
1510
1510
|
gn++;
|
|
1511
|
-
const
|
|
1511
|
+
const d = {
|
|
1512
1512
|
version: n,
|
|
1513
1513
|
cid: gn,
|
|
1514
1514
|
locale: r,
|
|
1515
1515
|
fallbackLocale: a,
|
|
1516
|
-
messages:
|
|
1516
|
+
messages: m,
|
|
1517
1517
|
modifiers: g,
|
|
1518
|
-
pluralRules:
|
|
1518
|
+
pluralRules: E,
|
|
1519
1519
|
missing: T,
|
|
1520
|
-
missingWarn:
|
|
1520
|
+
missingWarn: C,
|
|
1521
1521
|
fallbackWarn: F,
|
|
1522
|
-
fallbackFormat:
|
|
1523
|
-
unresolving:
|
|
1524
|
-
postTranslation:
|
|
1522
|
+
fallbackFormat: w,
|
|
1523
|
+
unresolving: L,
|
|
1524
|
+
postTranslation: D,
|
|
1525
1525
|
processor: f,
|
|
1526
1526
|
warnHtmlMessage: h,
|
|
1527
1527
|
escapeParameter: S,
|
|
@@ -1532,14 +1532,14 @@ function ro(e = {}) {
|
|
|
1532
1532
|
onWarn: t,
|
|
1533
1533
|
__meta: x
|
|
1534
1534
|
};
|
|
1535
|
-
return
|
|
1535
|
+
return d.datetimeFormats = u, d.numberFormats = i, d.__datetimeFormatters = A, d.__numberFormatters = B, __INTLIFY_PROD_DEVTOOLS__ && Ds(d, n, x), d;
|
|
1536
1536
|
}
|
|
1537
1537
|
const Rt = (e) => ({ [e]: oe() });
|
|
1538
1538
|
function Qt(e, t, n, r, l) {
|
|
1539
|
-
const { missing: a, onWarn:
|
|
1539
|
+
const { missing: a, onWarn: m } = e;
|
|
1540
1540
|
if (a !== null) {
|
|
1541
1541
|
const u = a(e, n, t, l);
|
|
1542
|
-
return
|
|
1542
|
+
return Y(u) ? u : t;
|
|
1543
1543
|
} else
|
|
1544
1544
|
return t;
|
|
1545
1545
|
}
|
|
@@ -1560,24 +1560,24 @@ function oo(e, t) {
|
|
|
1560
1560
|
return !1;
|
|
1561
1561
|
}
|
|
1562
1562
|
function In(e, ...t) {
|
|
1563
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker:
|
|
1564
|
-
ve(
|
|
1565
|
-
const F = !!
|
|
1563
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: m } = e, { __datetimeFormatters: u } = e, [i, g, E, T] = jt(...t), C = ve(E.missingWarn) ? E.missingWarn : e.missingWarn;
|
|
1564
|
+
ve(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn;
|
|
1565
|
+
const F = !!E.part, w = zt(e, E), L = m(
|
|
1566
1566
|
e,
|
|
1567
1567
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1568
1568
|
l,
|
|
1569
|
-
|
|
1569
|
+
w
|
|
1570
1570
|
);
|
|
1571
|
-
if (!
|
|
1572
|
-
return new Intl.DateTimeFormat(
|
|
1573
|
-
let
|
|
1571
|
+
if (!Y(i) || i === "")
|
|
1572
|
+
return new Intl.DateTimeFormat(w, T).format(g);
|
|
1573
|
+
let D = {}, f, h = null;
|
|
1574
1574
|
const S = "datetime format";
|
|
1575
|
-
for (let I = 0; I <
|
|
1576
|
-
Qt(e, i, f,
|
|
1577
|
-
if (!ee(h) || !
|
|
1575
|
+
for (let I = 0; I < L.length && (f = L[I], D = n[f] || {}, h = D[i], !ee(h)); I++)
|
|
1576
|
+
Qt(e, i, f, C, S);
|
|
1577
|
+
if (!ee(h) || !Y(f))
|
|
1578
1578
|
return r ? Ot : i;
|
|
1579
1579
|
let c = `${f}__${i}`;
|
|
1580
|
-
|
|
1580
|
+
Nt(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
1581
1581
|
let b = u.get(c);
|
|
1582
1582
|
return b || (b = new Intl.DateTimeFormat(f, Ie({}, h, T)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1583
1583
|
}
|
|
@@ -1605,8 +1605,8 @@ const qn = [
|
|
|
1605
1605
|
];
|
|
1606
1606
|
function jt(...e) {
|
|
1607
1607
|
const [t, n, r, l] = e, a = oe();
|
|
1608
|
-
let
|
|
1609
|
-
if (
|
|
1608
|
+
let m = oe(), u;
|
|
1609
|
+
if (Y(t)) {
|
|
1610
1610
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1611
1611
|
if (!i)
|
|
1612
1612
|
throw Ue(je.INVALID_ISO_DATE_ARGUMENT);
|
|
@@ -1625,36 +1625,36 @@ function jt(...e) {
|
|
|
1625
1625
|
u = t;
|
|
1626
1626
|
else
|
|
1627
1627
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1628
|
-
return
|
|
1629
|
-
qn.includes(i) ?
|
|
1630
|
-
}),
|
|
1628
|
+
return Y(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1629
|
+
qn.includes(i) ? m[i] = n[i] : a[i] = n[i];
|
|
1630
|
+
}), Y(r) ? a.locale = r : ee(r) && (m = r), ee(l) && (m = l), [a.key || "", u, a, m];
|
|
1631
1631
|
}
|
|
1632
|
-
function
|
|
1632
|
+
function En(e, t, n) {
|
|
1633
1633
|
const r = e;
|
|
1634
1634
|
for (const l in n) {
|
|
1635
1635
|
const a = `${t}__${l}`;
|
|
1636
1636
|
r.__datetimeFormatters.has(a) && r.__datetimeFormatters.delete(a);
|
|
1637
1637
|
}
|
|
1638
1638
|
}
|
|
1639
|
-
function
|
|
1640
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker:
|
|
1641
|
-
ve(
|
|
1642
|
-
const F = !!
|
|
1639
|
+
function yn(e, ...t) {
|
|
1640
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: m } = e, { __numberFormatters: u } = e, [i, g, E, T] = Ut(...t), C = ve(E.missingWarn) ? E.missingWarn : e.missingWarn;
|
|
1641
|
+
ve(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn;
|
|
1642
|
+
const F = !!E.part, w = zt(e, E), L = m(
|
|
1643
1643
|
e,
|
|
1644
1644
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1645
1645
|
l,
|
|
1646
|
-
|
|
1646
|
+
w
|
|
1647
1647
|
);
|
|
1648
|
-
if (!
|
|
1649
|
-
return new Intl.NumberFormat(
|
|
1650
|
-
let
|
|
1648
|
+
if (!Y(i) || i === "")
|
|
1649
|
+
return new Intl.NumberFormat(w, T).format(g);
|
|
1650
|
+
let D = {}, f, h = null;
|
|
1651
1651
|
const S = "number format";
|
|
1652
|
-
for (let I = 0; I <
|
|
1653
|
-
Qt(e, i, f,
|
|
1654
|
-
if (!ee(h) || !
|
|
1652
|
+
for (let I = 0; I < L.length && (f = L[I], D = n[f] || {}, h = D[i], !ee(h)); I++)
|
|
1653
|
+
Qt(e, i, f, C, S);
|
|
1654
|
+
if (!ee(h) || !Y(f))
|
|
1655
1655
|
return r ? Ot : i;
|
|
1656
1656
|
let c = `${f}__${i}`;
|
|
1657
|
-
|
|
1657
|
+
Nt(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
1658
1658
|
let b = u.get(c);
|
|
1659
1659
|
return b || (b = new Intl.NumberFormat(f, Ie({}, h, T)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1660
1660
|
}
|
|
@@ -1682,23 +1682,23 @@ const er = [
|
|
|
1682
1682
|
];
|
|
1683
1683
|
function Ut(...e) {
|
|
1684
1684
|
const [t, n, r, l] = e, a = oe();
|
|
1685
|
-
let
|
|
1685
|
+
let m = oe();
|
|
1686
1686
|
if (!ge(t))
|
|
1687
1687
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1688
1688
|
const u = t;
|
|
1689
|
-
return
|
|
1690
|
-
er.includes(i) ?
|
|
1691
|
-
}),
|
|
1689
|
+
return Y(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1690
|
+
er.includes(i) ? m[i] = n[i] : a[i] = n[i];
|
|
1691
|
+
}), Y(r) ? a.locale = r : ee(r) && (m = r), ee(l) && (m = l), [a.key || "", u, a, m];
|
|
1692
1692
|
}
|
|
1693
|
-
function
|
|
1693
|
+
function Cn(e, t, n) {
|
|
1694
1694
|
const r = e;
|
|
1695
1695
|
for (const l in n) {
|
|
1696
1696
|
const a = `${t}__${l}`;
|
|
1697
1697
|
r.__numberFormatters.has(a) && r.__numberFormatters.delete(a);
|
|
1698
1698
|
}
|
|
1699
1699
|
}
|
|
1700
|
-
const ao = (e) => e, lo = (e) => "", io = "text", co = (e) => e.length === 0 ? "" :
|
|
1701
|
-
function
|
|
1700
|
+
const ao = (e) => e, lo = (e) => "", io = "text", co = (e) => e.length === 0 ? "" : Jt(e), uo = Wr;
|
|
1701
|
+
function Nn(e, t) {
|
|
1702
1702
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1703
1703
|
}
|
|
1704
1704
|
function mo(e) {
|
|
@@ -1709,45 +1709,45 @@ function fo(e, t) {
|
|
|
1709
1709
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1710
1710
|
}
|
|
1711
1711
|
function _o(e = {}) {
|
|
1712
|
-
const t = e.locale, n = mo(e), r = te(e.pluralRules) &&
|
|
1712
|
+
const t = e.locale, n = mo(e), r = te(e.pluralRules) && Y(t) && de(e.pluralRules[t]) ? e.pluralRules[t] : Nn, l = te(e.pluralRules) && Y(t) && de(e.pluralRules[t]) ? Nn : void 0, a = (f) => f[r(n, f.length, l)], m = e.list || [], u = (f) => m[f], i = e.named || oe();
|
|
1713
1713
|
ge(e.pluralIndex) && fo(n, i);
|
|
1714
1714
|
const g = (f) => i[f];
|
|
1715
|
-
function
|
|
1716
|
-
const S =
|
|
1715
|
+
function E(f, h) {
|
|
1716
|
+
const S = de(e.messages) ? e.messages(f, !!h) : te(e.messages) ? e.messages[f] : !1;
|
|
1717
1717
|
return S || (e.parent ? e.parent.message(f) : lo);
|
|
1718
1718
|
}
|
|
1719
|
-
const T = (f) => e.modifiers ? e.modifiers[f] : ao,
|
|
1719
|
+
const T = (f) => e.modifiers ? e.modifiers[f] : ao, C = 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) && Y(e.processor.type) ? e.processor.type : io, D = {
|
|
1720
1720
|
list: u,
|
|
1721
1721
|
named: g,
|
|
1722
1722
|
plural: a,
|
|
1723
1723
|
linked: (f, ...h) => {
|
|
1724
1724
|
const [S, c] = h;
|
|
1725
1725
|
let b = "text", I = "";
|
|
1726
|
-
h.length === 1 ? te(S) ? (I = S.modifier || I, b = S.type || b) :
|
|
1727
|
-
const p =
|
|
1726
|
+
h.length === 1 ? te(S) ? (I = S.modifier || I, b = S.type || b) : Y(S) && (I = S || I) : h.length === 2 && (Y(S) && (I = S || I), Y(c) && (b = c || b));
|
|
1727
|
+
const p = E(f, !0)(D), R = (
|
|
1728
1728
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1729
1729
|
b === "vnode" && be(p) && I ? p[0] : p
|
|
1730
1730
|
);
|
|
1731
1731
|
return I ? T(I)(R, b) : R;
|
|
1732
1732
|
},
|
|
1733
|
-
message:
|
|
1734
|
-
type:
|
|
1733
|
+
message: E,
|
|
1734
|
+
type: w,
|
|
1735
1735
|
interpolate: F,
|
|
1736
|
-
normalize:
|
|
1737
|
-
values: Ie(oe(),
|
|
1736
|
+
normalize: C,
|
|
1737
|
+
values: Ie(oe(), m, i)
|
|
1738
1738
|
};
|
|
1739
|
-
return
|
|
1739
|
+
return D;
|
|
1740
1740
|
}
|
|
1741
|
-
const Tn = () => "", Te = (e) =>
|
|
1741
|
+
const Tn = () => "", Te = (e) => de(e);
|
|
1742
1742
|
function On(e, ...t) {
|
|
1743
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale:
|
|
1744
|
-
|
|
1743
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale: m, messages: u } = e, [i, g] = Vt(...t), E = ve(g.missingWarn) ? g.missingWarn : e.missingWarn, T = ve(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, C = ve(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, F = !!g.resolvedMessage, w = Y(g.default) || ve(g.default) ? ve(g.default) ? a ? i : () => i : g.default : n ? a ? i : () => i : null, L = n || w != null && (Y(w) || de(w)), D = zt(e, g);
|
|
1744
|
+
C && po(g);
|
|
1745
1745
|
let [f, h, S] = F ? [
|
|
1746
1746
|
i,
|
|
1747
|
-
|
|
1748
|
-
u[
|
|
1749
|
-
] : tr(e, i,
|
|
1750
|
-
if (!F && !(
|
|
1747
|
+
D,
|
|
1748
|
+
u[D] || oe()
|
|
1749
|
+
] : tr(e, i, D, m, T, E), c = f, b = i;
|
|
1750
|
+
if (!F && !(Y(c) || ot(c) || Te(c)) && L && (c = w, b = c), !F && (!(Y(c) || ot(c) || Te(c)) || !Y(h)))
|
|
1751
1751
|
return l ? Ot : i;
|
|
1752
1752
|
let I = !1;
|
|
1753
1753
|
const p = () => {
|
|
@@ -1755,53 +1755,53 @@ function On(e, ...t) {
|
|
|
1755
1755
|
}, R = Te(c) ? c : nr(e, i, h, c, b, p);
|
|
1756
1756
|
if (I)
|
|
1757
1757
|
return c;
|
|
1758
|
-
const
|
|
1758
|
+
const A = bo(e, h, S, g), B = _o(A), x = vo(e, R, B), d = r ? r(x, i) : x;
|
|
1759
1759
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1760
|
-
const
|
|
1760
|
+
const N = {
|
|
1761
1761
|
timestamp: Date.now(),
|
|
1762
|
-
key:
|
|
1762
|
+
key: Y(i) ? i : Te(c) ? c.key : "",
|
|
1763
1763
|
locale: h || (Te(c) ? c.locale : ""),
|
|
1764
|
-
format:
|
|
1765
|
-
message:
|
|
1764
|
+
format: Y(c) ? c : Te(c) ? c.source : "",
|
|
1765
|
+
message: d
|
|
1766
1766
|
};
|
|
1767
|
-
|
|
1767
|
+
N.meta = Ie({}, e.__meta, /* @__PURE__ */ to() || {}), Fs(N);
|
|
1768
1768
|
}
|
|
1769
|
-
return
|
|
1769
|
+
return d;
|
|
1770
1770
|
}
|
|
1771
1771
|
function po(e) {
|
|
1772
|
-
be(e.list) ? e.list = e.list.map((t) =>
|
|
1773
|
-
|
|
1772
|
+
be(e.list) ? e.list = e.list.map((t) => Y(t) ? ln(t) : t) : te(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1773
|
+
Y(e.named[t]) && (e.named[t] = ln(e.named[t]));
|
|
1774
1774
|
});
|
|
1775
1775
|
}
|
|
1776
1776
|
function tr(e, t, n, r, l, a) {
|
|
1777
|
-
const { messages:
|
|
1778
|
-
let T = oe(),
|
|
1779
|
-
const
|
|
1780
|
-
for (let
|
|
1781
|
-
if (!oo(
|
|
1782
|
-
const
|
|
1777
|
+
const { messages: m, onWarn: u, messageResolver: i, localeFallbacker: g } = e, E = g(e, r, n);
|
|
1778
|
+
let T = oe(), C, F = null;
|
|
1779
|
+
const w = "translate";
|
|
1780
|
+
for (let L = 0; L < E.length && (C = E[L], T = m[C] || oe(), (F = i(T, t)) === null && (F = T[t]), !(Y(F) || ot(F) || Te(F))); L++)
|
|
1781
|
+
if (!oo(C, E)) {
|
|
1782
|
+
const D = Qt(
|
|
1783
1783
|
e,
|
|
1784
1784
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1785
1785
|
t,
|
|
1786
|
-
|
|
1786
|
+
C,
|
|
1787
1787
|
a,
|
|
1788
|
-
|
|
1788
|
+
w
|
|
1789
1789
|
);
|
|
1790
|
-
|
|
1790
|
+
D !== t && (F = D);
|
|
1791
1791
|
}
|
|
1792
|
-
return [F,
|
|
1792
|
+
return [F, C, T];
|
|
1793
1793
|
}
|
|
1794
1794
|
function nr(e, t, n, r, l, a) {
|
|
1795
|
-
const { messageCompiler:
|
|
1795
|
+
const { messageCompiler: m, warnHtmlMessage: u } = e;
|
|
1796
1796
|
if (Te(r)) {
|
|
1797
1797
|
const g = r;
|
|
1798
1798
|
return g.locale = g.locale || n, g.key = g.key || t, g;
|
|
1799
1799
|
}
|
|
1800
|
-
if (
|
|
1800
|
+
if (m == null) {
|
|
1801
1801
|
const g = () => r;
|
|
1802
1802
|
return g.locale = n, g.key = t, g;
|
|
1803
1803
|
}
|
|
1804
|
-
const i =
|
|
1804
|
+
const i = m(r, ho(e, n, l, r, u, a));
|
|
1805
1805
|
return i.locale = n, i.key = t, i.source = r, i;
|
|
1806
1806
|
}
|
|
1807
1807
|
function vo(e, t, n) {
|
|
@@ -1809,32 +1809,32 @@ function vo(e, t, n) {
|
|
|
1809
1809
|
}
|
|
1810
1810
|
function Vt(...e) {
|
|
1811
1811
|
const [t, n, r] = e, l = oe();
|
|
1812
|
-
if (!
|
|
1812
|
+
if (!Y(t) && !ge(t) && !Te(t) && !ot(t))
|
|
1813
1813
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1814
1814
|
const a = ge(t) ? String(t) : (Te(t), t);
|
|
1815
|
-
return ge(n) ? l.plural = n :
|
|
1815
|
+
return ge(n) ? l.plural = n : Y(n) ? l.default = n : ee(n) && !Nt(n) ? l.named = n : be(n) && (l.list = n), ge(r) ? l.plural = r : Y(r) ? l.default = r : ee(r) && Ie(l, r), [a, l];
|
|
1816
1816
|
}
|
|
1817
1817
|
function ho(e, t, n, r, l, a) {
|
|
1818
1818
|
return {
|
|
1819
1819
|
locale: t,
|
|
1820
1820
|
key: n,
|
|
1821
1821
|
warnHtmlMessage: l,
|
|
1822
|
-
onError: (
|
|
1823
|
-
throw a && a(
|
|
1822
|
+
onError: (m) => {
|
|
1823
|
+
throw a && a(m), m;
|
|
1824
1824
|
},
|
|
1825
|
-
onCacheKey: (
|
|
1825
|
+
onCacheKey: (m) => Fr(t, n, m)
|
|
1826
1826
|
};
|
|
1827
1827
|
}
|
|
1828
1828
|
function bo(e, t, n, r) {
|
|
1829
|
-
const { modifiers: l, pluralRules: a, messageResolver:
|
|
1829
|
+
const { modifiers: l, pluralRules: a, messageResolver: m, fallbackLocale: u, fallbackWarn: i, missingWarn: g, fallbackContext: E } = e, C = {
|
|
1830
1830
|
locale: t,
|
|
1831
1831
|
modifiers: l,
|
|
1832
1832
|
pluralRules: a,
|
|
1833
|
-
messages: (F,
|
|
1834
|
-
let
|
|
1835
|
-
if (
|
|
1836
|
-
const [, ,
|
|
1837
|
-
|
|
1833
|
+
messages: (F, w) => {
|
|
1834
|
+
let L = m(n, F);
|
|
1835
|
+
if (L == null && (E || w)) {
|
|
1836
|
+
const [, , D] = tr(
|
|
1837
|
+
E || e,
|
|
1838
1838
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1839
1839
|
F,
|
|
1840
1840
|
t,
|
|
@@ -1842,24 +1842,24 @@ function bo(e, t, n, r) {
|
|
|
1842
1842
|
i,
|
|
1843
1843
|
g
|
|
1844
1844
|
);
|
|
1845
|
-
|
|
1845
|
+
L = m(D, F);
|
|
1846
1846
|
}
|
|
1847
|
-
if (
|
|
1848
|
-
let
|
|
1849
|
-
const h = nr(e, F, t,
|
|
1850
|
-
|
|
1847
|
+
if (Y(L) || ot(L)) {
|
|
1848
|
+
let D = !1;
|
|
1849
|
+
const h = nr(e, F, t, L, F, () => {
|
|
1850
|
+
D = !0;
|
|
1851
1851
|
});
|
|
1852
|
-
return
|
|
1853
|
-
} else return Te(
|
|
1852
|
+
return D ? Tn : h;
|
|
1853
|
+
} else return Te(L) ? L : Tn;
|
|
1854
1854
|
}
|
|
1855
1855
|
};
|
|
1856
|
-
return e.processor && (
|
|
1856
|
+
return e.processor && (C.processor = e.processor), r.list && (C.list = r.list), r.named && (C.named = r.named), ge(r.plural) && (C.pluralIndex = r.plural), C;
|
|
1857
1857
|
}
|
|
1858
1858
|
_s();
|
|
1859
|
-
var go = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_9b00ab19-1b23-4c32-b522-1c935903a10d", 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_9b00ab19-1b23-4c32-b522-1c935903a10d", 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: "1718", ACTIONS_ORCHESTRATION_ID: "d2094dde-e950-47e8-ad25-8cd02796f853.publish.publish.__default", npm_config_engine_strict: "true", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260920.314.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_9b00ab19-1b23-4c32-b522-1c935903a10d", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:11413", 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: "36611536805", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "56241aa3843554e06341a36ad13b925a8c555d78", 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/test/schedule-backend", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy90ZXN0L3NjaGVkdWxlLWJhY2tlbmRcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTA3MjgzMjksImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MDcwNjEyOSwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImQxMjY0N2NhLTFkZmUtNTZmYi05OGVhLWVkZmMyZGE0NDIzOCIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiN2I1NGJjNjY5MWViYzMxNjZjZDE2NDIzMDQyM2RjZThiNzVlNzIyNiIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MDcwNTgyOSwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJZeVQ3Nzg2XCIsXCJhY3Rvcl9pZFwiOlwiOTcwMDMxMjVcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiMTA5NTUzOTMyMTg1XCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluXCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCI3YjU0YmM2NjkxZWJjMzE2NmNkMTY0MjMwNDIzZGNlOGI3NWU3MjI2XCIsXCJyZWZcIjpcInJlZnMvaGVhZHMvdGVzdC9zY2hlZHVsZS1iYWNrZW5kXCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjM2NjExNTM2ODA1XCIsXCJydW5fbnVtYmVyXCI6XCIxNzRcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCI1NjI0MWFhMzg0MzU1NGUwNjM0MWEzNmFkMTNiOTI1YThjNTU1ZDc4XCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy90ZXN0L3NjaGVkdWxlLWJhY2tlbmRcIixcIndvcmtmbG93X3NoYVwiOlwiNTYyNDFhYTM4NDM1NTRlMDYzNDFhMzZhZDEzYjkyNWE4YzU1NWQ3OFwifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvaHJtLXNlcnZpY2U6cmVmOnJlZnMvaGVhZHMvdGVzdC9zY2hlZHVsZS1iYWNrZW5kIiwib3JjaF9pZCI6ImQyMDk0ZGRlLWU5NTAtNDdlOC1hZDI1LThjZDAyNzk2Zjg1My5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiZDIwOTRkZGUtZTk1MC00N2U4LWFkMjUtOGNkMDI3OTZmODUzIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMzY2MTE1MzY4MDUiLCJydW5fbnVtYmVyIjoiMTc0IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDE3MDMwNiIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOmQyMDk0ZGRlLWU5NTAtNDdlOC1hZDI1LThjZDAyNzk2Zjg1MzpkMTI2NDdjYS0xZGZlLTU2ZmItOThlYS1lZGZjMmRhNDQyMzggQWN0aW9ucy5SdW5uZXI6ZDIwOTRkZGUtZTk1MC00N2U4LWFkMjUtOGNkMDI3OTZmODUzOmQxMjY0N2NhLTFkZmUtNTZmYi05OGVhLWVkZmMyZGE0NDIzOCBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czpkMjA5NGRkZS1lOTUwLTQ3ZTgtYWQyNS04Y2QwMjc5NmY4NTM6ZDEyNjQ3Y2EtMWRmZS01NmZiLTk4ZWEtZWRmYzJkYTQ0MjM4IGdlbmVyYXRlX2lkX3Rva2VuOmQyMDk0ZGRlLWU5NTAtNDdlOC1hZDI1LThjZDAyNzk2Zjg1MzpkMTI2NDdjYS0xZGZlLTU2ZmItOThlYS1lZGZjMmRhNDQyMzggQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiI1NjI0MWFhMzg0MzU1NGUwNjM0MWEzNmFkMTNiOTI1YThjNTU1ZDc4IiwidHJ1c3RfdGllciI6IjEifQ.rWKRIUqDoOrqORzIXocMTdB1d-TFNNvcuDR8TmaoNe4qrVdzMDGa6n1X13X-8_Df0RhWq8tY5NAiM4LJ3QhrGD2eF7kAfooXeLNQCheiUvrVvWfqpda3XRihg12zUELjNNtabXfntgbG-o51Zteb2g6411xKbi1qvyGmA4fmljdKxrRyYwmPCAkem5ErLGrYE7Ec3X2at09WWC2B1Dp0NTzVHDqroG3j2JnoraBVGc-qvXZtG52PsPZfBxRggdsc1_REnb47JwvAu4Duo5A2aypt9eft50pY7Jp5X2nMS8fPKrIrDqQ8ONogG0bX64LKpB6-qp4BfesVZIK8uVKS7g", 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_df531ef7-1884-496c-917a-24a136ddd2d2", INVOCATION_ID: "6a7eb9a3cc2f46d98960314f9759cca0", 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: "174", GITHUB_TRIGGERING_ACTOR: "YyT7786", 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 1000170306", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "test/schedule-backend", 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.6", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", GITHUB_SHA: "56241aa3843554e06341a36ad13b925a8c555d78", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/test/schedule-backend", GITHUB_ACTOR: "YyT7786", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_9b00ab19-1b23-4c32-b522-1c935903a10d", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "97003125", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-3-azure-eastus.actions.githubusercontent.com/229//idtoken/d2094dde-e950-47e8-ad25-8cd02796f853/d12647ca-1dfe-56fb-98ea-edfc2da44238?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_9b00ab19-1b23-4c32-b522-1c935903a10d", 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_9b00ab19-1b23-4c32-b522-1c935903a10d", 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_9b00ab19-1b23-4c32-b522-1c935903a10d", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1859
|
+
var go = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_73d89cb0-b217-47d0-ba37-616767ed8463", 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_73d89cb0-b217-47d0-ba37-616767ed8463", 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: "1724", ACTIONS_ORCHESTRATION_ID: "932aa408-2bce-4a3d-85f6-1f84f56c8979.publish.publish.__default", npm_config_engine_strict: "true", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260920.314.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_73d89cb0-b217-47d0-ba37-616767ed8463", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:13443", 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: "36758904781", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "88c78fc3b80e7a38ef7a092a3c1b14505dcf99ac", 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/test/schedule-backend", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy90ZXN0L3NjaGVkdWxlLWJhY2tlbmRcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTA4MTUxNTMsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MDc5Mjk1MywiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6IjhmYWVjYjc0LWJlZmItNTY3OS1hMTVlLTg4YmFhYWYwNDAzOSIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiN2I1NGJjNjY5MWViYzMxNjZjZDE2NDIzMDQyM2RjZThiNzVlNzIyNiIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MDc5MjY1Mywib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJZeVQ3Nzg2XCIsXCJhY3Rvcl9pZFwiOlwiOTcwMDMxMjVcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiMTEwMDM2MTE0OTczXCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluXCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCI3YjU0YmM2NjkxZWJjMzE2NmNkMTY0MjMwNDIzZGNlOGI3NWU3MjI2XCIsXCJyZWZcIjpcInJlZnMvaGVhZHMvdGVzdC9zY2hlZHVsZS1iYWNrZW5kXCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjM2NzU4OTA0NzgxXCIsXCJydW5fbnVtYmVyXCI6XCIxNzdcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCI4OGM3OGZjM2I4MGU3YTM4ZWY3YTA5MmEzYzFiMTQ1MDVkY2Y5OWFjXCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy90ZXN0L3NjaGVkdWxlLWJhY2tlbmRcIixcIndvcmtmbG93X3NoYVwiOlwiODhjNzhmYzNiODBlN2EzOGVmN2EwOTJhM2MxYjE0NTA1ZGNmOTlhY1wifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvaHJtLXNlcnZpY2U6cmVmOnJlZnMvaGVhZHMvdGVzdC9zY2hlZHVsZS1iYWNrZW5kIiwib3JjaF9pZCI6IjkzMmFhNDA4LTJiY2UtNGEzZC04NWY2LTFmODRmNTZjODk3OS5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiOTMyYWE0MDgtMmJjZS00YTNkLTg1ZjYtMWY4NGY1NmM4OTc5IiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMzY3NTg5MDQ3ODEiLCJydW5fbnVtYmVyIjoiMTc3IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDE3MTg4OSIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjkzMmFhNDA4LTJiY2UtNGEzZC04NWY2LTFmODRmNTZjODk3OTo4ZmFlY2I3NC1iZWZiLTU2NzktYTE1ZS04OGJhYWFmMDQwMzkgQWN0aW9ucy5SdW5uZXI6OTMyYWE0MDgtMmJjZS00YTNkLTg1ZjYtMWY4NGY1NmM4OTc5OjhmYWVjYjc0LWJlZmItNTY3OS1hMTVlLTg4YmFhYWYwNDAzOSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czo5MzJhYTQwOC0yYmNlLTRhM2QtODVmNi0xZjg0ZjU2Yzg5Nzk6OGZhZWNiNzQtYmVmYi01Njc5LWExNWUtODhiYWFhZjA0MDM5IGdlbmVyYXRlX2lkX3Rva2VuOjkzMmFhNDA4LTJiY2UtNGEzZC04NWY2LTFmODRmNTZjODk3OTo4ZmFlY2I3NC1iZWZiLTU2NzktYTE1ZS04OGJhYWFmMDQwMzkgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiI4OGM3OGZjM2I4MGU3YTM4ZWY3YTA5MmEzYzFiMTQ1MDVkY2Y5OWFjIiwidHJ1c3RfdGllciI6IjEifQ.Nbn1aJ3r9ekOHUhdcE4lhOnZ_7U3s1bqTfQeipdBNLPqoWFsUa3ccFmLvQ5H59m2PbmfUJJU9CwSUjvaqeSZBUsz2CHd_5R9AGJ12L5WUTUgMxuZn0BbsYyJPoxn3cF-AVKw9Hrme2HxxsSLpcrQBWqphIjTIj_4ElewodsoP2kQS8FmbpN3Q23nkHo3kPXG2-B6zPNUA3vydOwpg5iP23t2AACXt6a1PD33b1fkc-ul0TeV4HWCDBiMsGaWMLCoKryYfA2YnGgmJ3yEprUlNqySEDWSVg_IAFKFi6fMIRIfpKfWNqmQqJMqq1-TQVn8ON-Wzsrj4Fo76jqUcS7dtw", 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_ce68c118-bafd-4521-992d-311f87fbc834", INVOCATION_ID: "946fdd9499ed426cb9b68d754d6eb997", 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: "177", GITHUB_TRIGGERING_ACTOR: "YyT7786", 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 1000171889", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "test/schedule-backend", 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.8", 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: "88c78fc3b80e7a38ef7a092a3c1b14505dcf99ac", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/test/schedule-backend", GITHUB_ACTOR: "YyT7786", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_73d89cb0-b217-47d0-ba37-616767ed8463", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "97003125", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-1-azure-eastus.actions.githubusercontent.com/215//idtoken/932aa408-2bce-4a3d-85f6-1f84f56c8979/8faecb74-befb-5679-a15e-88baaaf04039?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_73d89cb0-b217-47d0-ba37-616767ed8463", 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_73d89cb0-b217-47d0-ba37-616767ed8463", 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_73d89cb0-b217-47d0-ba37-616767ed8463", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1860
1860
|
const Io = "10.0.5";
|
|
1861
|
-
function
|
|
1862
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
1861
|
+
function Eo() {
|
|
1862
|
+
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);
|
|
1863
1863
|
}
|
|
1864
1864
|
const at = {
|
|
1865
1865
|
// composer module errors
|
|
@@ -1877,45 +1877,45 @@ const at = {
|
|
|
1877
1877
|
function ut(e, ...t) {
|
|
1878
1878
|
return Tt(e, null, void 0);
|
|
1879
1879
|
}
|
|
1880
|
-
const xt = /* @__PURE__ */
|
|
1881
|
-
function
|
|
1880
|
+
const xt = /* @__PURE__ */ Je("__translateVNode"), Wt = /* @__PURE__ */ Je("__datetimeParts"), Gt = /* @__PURE__ */ Je("__numberParts"), yo = Je("__setPluralRules"), rr = /* @__PURE__ */ Je("__injectWithOption"), Yt = /* @__PURE__ */ Je("__dispose");
|
|
1881
|
+
function mt(e) {
|
|
1882
1882
|
if (!te(e))
|
|
1883
1883
|
return e;
|
|
1884
1884
|
for (const t in e)
|
|
1885
|
-
if (
|
|
1885
|
+
if (Ae(e, t))
|
|
1886
1886
|
if (!t.includes("."))
|
|
1887
|
-
te(e[t]) &&
|
|
1887
|
+
te(e[t]) && mt(e[t]);
|
|
1888
1888
|
else {
|
|
1889
1889
|
const n = t.split("."), r = n.length - 1;
|
|
1890
1890
|
let l = e, a = !1;
|
|
1891
|
-
for (let
|
|
1892
|
-
if (n[
|
|
1891
|
+
for (let m = 0; m < r; m++) {
|
|
1892
|
+
if (n[m] in l || (l[n[m]] = oe()), !te(l[n[m]])) {
|
|
1893
1893
|
a = !0;
|
|
1894
1894
|
break;
|
|
1895
1895
|
}
|
|
1896
|
-
l = l[n[
|
|
1896
|
+
l = l[n[m]];
|
|
1897
1897
|
}
|
|
1898
|
-
a || (l[n[r]] = e[t], delete e[t]), te(l[n[r]]) &&
|
|
1898
|
+
a || (l[n[r]] = e[t], delete e[t]), te(l[n[r]]) && mt(l[n[r]]);
|
|
1899
1899
|
}
|
|
1900
1900
|
return e;
|
|
1901
1901
|
}
|
|
1902
1902
|
function sr(e, t) {
|
|
1903
|
-
const { messages: n, __i18n: r, messageResolver: l, flatJson: a } = t,
|
|
1903
|
+
const { messages: n, __i18n: r, messageResolver: l, flatJson: a } = t, m = ee(n) ? n : be(r) ? oe() : { [e]: oe() };
|
|
1904
1904
|
if (be(r) && r.forEach((u) => {
|
|
1905
1905
|
if ("locale" in u && "resource" in u) {
|
|
1906
1906
|
const { locale: i, resource: g } = u;
|
|
1907
|
-
i ? (
|
|
1907
|
+
i ? (m[i] = m[i] || oe(), Et(g, m[i])) : Et(g, m);
|
|
1908
1908
|
} else
|
|
1909
|
-
|
|
1909
|
+
Y(u) && Et(JSON.parse(u), m);
|
|
1910
1910
|
}), l == null && a)
|
|
1911
|
-
for (const u in
|
|
1912
|
-
|
|
1913
|
-
return
|
|
1911
|
+
for (const u in m)
|
|
1912
|
+
Ae(m, u) && mt(m[u]);
|
|
1913
|
+
return m;
|
|
1914
1914
|
}
|
|
1915
1915
|
function or(e) {
|
|
1916
1916
|
return e.type;
|
|
1917
1917
|
}
|
|
1918
|
-
function
|
|
1918
|
+
function Co(e, t, n) {
|
|
1919
1919
|
let r = te(t.messages) ? t.messages : oe();
|
|
1920
1920
|
"__i18nGlobal" in n && (r = sr(e.locale.value, {
|
|
1921
1921
|
messages: r,
|
|
@@ -1928,14 +1928,14 @@ function No(e, t, n) {
|
|
|
1928
1928
|
{
|
|
1929
1929
|
if (te(t.datetimeFormats)) {
|
|
1930
1930
|
const a = Object.keys(t.datetimeFormats);
|
|
1931
|
-
a.length && a.forEach((
|
|
1932
|
-
e.mergeDateTimeFormat(
|
|
1931
|
+
a.length && a.forEach((m) => {
|
|
1932
|
+
e.mergeDateTimeFormat(m, t.datetimeFormats[m]);
|
|
1933
1933
|
});
|
|
1934
1934
|
}
|
|
1935
1935
|
if (te(t.numberFormats)) {
|
|
1936
1936
|
const a = Object.keys(t.numberFormats);
|
|
1937
|
-
a.length && a.forEach((
|
|
1938
|
-
e.mergeNumberFormat(
|
|
1937
|
+
a.length && a.forEach((m) => {
|
|
1938
|
+
e.mergeNumberFormat(m, t.numberFormats[m]);
|
|
1939
1939
|
});
|
|
1940
1940
|
}
|
|
1941
1941
|
}
|
|
@@ -1943,27 +1943,27 @@ function No(e, t, n) {
|
|
|
1943
1943
|
function Sn(e) {
|
|
1944
1944
|
return ue(fr, null, e, 0);
|
|
1945
1945
|
}
|
|
1946
|
-
const
|
|
1947
|
-
let
|
|
1946
|
+
const An = "__INTLIFY_META__", Ln = () => [], No = () => !1;
|
|
1947
|
+
let kn = 0;
|
|
1948
1948
|
function Rn(e) {
|
|
1949
|
-
return (t, n, r, l) => e(n, r,
|
|
1949
|
+
return (t, n, r, l) => e(n, r, Xt() || void 0, l);
|
|
1950
1950
|
}
|
|
1951
1951
|
const To = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1952
|
-
const e =
|
|
1952
|
+
const e = Xt();
|
|
1953
1953
|
let t = null;
|
|
1954
|
-
return e && (t = or(e)[
|
|
1954
|
+
return e && (t = or(e)[An]) ? { [An]: t } : null;
|
|
1955
1955
|
};
|
|
1956
1956
|
function Oo(e = {}) {
|
|
1957
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, l = e.flatJson, a = on ? rt :
|
|
1958
|
-
let
|
|
1957
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, l = e.flatJson, a = on ? rt : mr;
|
|
1958
|
+
let m = ve(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1959
1959
|
const u = a(
|
|
1960
1960
|
// prettier-ignore
|
|
1961
|
-
t &&
|
|
1961
|
+
t && m ? t.locale.value : Y(e.locale) ? e.locale : Ct
|
|
1962
1962
|
), i = a(
|
|
1963
1963
|
// prettier-ignore
|
|
1964
|
-
t &&
|
|
1965
|
-
), g = a(sr(u.value, e)),
|
|
1966
|
-
let
|
|
1964
|
+
t && m ? t.fallbackLocale.value : Y(e.fallbackLocale) || be(e.fallbackLocale) || ee(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
1965
|
+
), g = a(sr(u.value, e)), E = a(ee(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), T = a(ee(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
|
|
1966
|
+
let C = t ? t.missingWarn : ve(e.missingWarn) || yt(e.missingWarn) ? e.missingWarn : !0, F = t ? t.fallbackWarn : ve(e.fallbackWarn) || yt(e.fallbackWarn) ? e.fallbackWarn : !0, w = t ? t.fallbackRoot : ve(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 : ve(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, c = !!e.escapeParameter;
|
|
1967
1967
|
const b = t ? t.modifiers : ee(e.modifiers) ? e.modifiers : {};
|
|
1968
1968
|
let I = e.pluralRules || t && t.pluralRules, p;
|
|
1969
1969
|
p = (() => {
|
|
@@ -1976,9 +1976,9 @@ function Oo(e = {}) {
|
|
|
1976
1976
|
modifiers: b,
|
|
1977
1977
|
pluralRules: I,
|
|
1978
1978
|
missing: f === null ? void 0 : f,
|
|
1979
|
-
missingWarn:
|
|
1979
|
+
missingWarn: C,
|
|
1980
1980
|
fallbackWarn: F,
|
|
1981
|
-
fallbackFormat:
|
|
1981
|
+
fallbackFormat: L,
|
|
1982
1982
|
unresolving: !0,
|
|
1983
1983
|
postTranslation: h === null ? void 0 : h,
|
|
1984
1984
|
warnHtmlMessage: S,
|
|
@@ -1987,20 +1987,20 @@ function Oo(e = {}) {
|
|
|
1987
1987
|
messageCompiler: e.messageCompiler,
|
|
1988
1988
|
__meta: { framework: "vue" }
|
|
1989
1989
|
};
|
|
1990
|
-
v.datetimeFormats =
|
|
1991
|
-
const
|
|
1992
|
-
return r && bn(
|
|
1990
|
+
v.datetimeFormats = E.value, v.numberFormats = T.value, v.__datetimeFormatters = ee(p) ? p.__datetimeFormatters : void 0, v.__numberFormatters = ee(p) ? p.__numberFormatters : void 0;
|
|
1991
|
+
const y = ro(v);
|
|
1992
|
+
return r && bn(y), y;
|
|
1993
1993
|
})(), lt(p, u.value, i.value);
|
|
1994
|
-
function
|
|
1994
|
+
function A() {
|
|
1995
1995
|
return [
|
|
1996
1996
|
u.value,
|
|
1997
1997
|
i.value,
|
|
1998
1998
|
g.value,
|
|
1999
|
-
|
|
1999
|
+
E.value,
|
|
2000
2000
|
T.value
|
|
2001
2001
|
];
|
|
2002
2002
|
}
|
|
2003
|
-
const
|
|
2003
|
+
const B = z({
|
|
2004
2004
|
get: () => u.value,
|
|
2005
2005
|
set: (v) => {
|
|
2006
2006
|
u.value = v, p.locale = u.value;
|
|
@@ -2010,54 +2010,54 @@ function Oo(e = {}) {
|
|
|
2010
2010
|
set: (v) => {
|
|
2011
2011
|
i.value = v, p.fallbackLocale = i.value, lt(p, u.value, v);
|
|
2012
2012
|
}
|
|
2013
|
-
}),
|
|
2013
|
+
}), d = z(() => g.value), N = /* @__PURE__ */ z(() => E.value), U = /* @__PURE__ */ z(() => T.value);
|
|
2014
2014
|
function V() {
|
|
2015
|
-
return
|
|
2015
|
+
return de(h) ? h : null;
|
|
2016
2016
|
}
|
|
2017
2017
|
function j(v) {
|
|
2018
2018
|
h = v, p.postTranslation = v;
|
|
2019
2019
|
}
|
|
2020
2020
|
function G() {
|
|
2021
|
-
return
|
|
2021
|
+
return D;
|
|
2022
2022
|
}
|
|
2023
2023
|
function W(v) {
|
|
2024
|
-
v !== null && (f = Rn(v)),
|
|
2024
|
+
v !== null && (f = Rn(v)), D = v, p.missing = f;
|
|
2025
2025
|
}
|
|
2026
|
-
const
|
|
2027
|
-
|
|
2026
|
+
const Z = (v, y, J, le, Xe, dt) => {
|
|
2027
|
+
A();
|
|
2028
2028
|
let ze;
|
|
2029
2029
|
try {
|
|
2030
2030
|
go.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = t ? no() : void 0), ze = v(p);
|
|
2031
2031
|
} finally {
|
|
2032
2032
|
__INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = void 0);
|
|
2033
2033
|
}
|
|
2034
|
-
if (
|
|
2035
|
-
ge(ze) && ze === Ot ||
|
|
2036
|
-
const [cr,
|
|
2037
|
-
return t &&
|
|
2034
|
+
if (J !== "translate exists" && // for not `te` (e.g `t`)
|
|
2035
|
+
ge(ze) && ze === Ot || J === "translate exists" && !ze) {
|
|
2036
|
+
const [cr, ya] = y();
|
|
2037
|
+
return t && w ? le(t) : Xe(cr);
|
|
2038
2038
|
} else {
|
|
2039
|
-
if (
|
|
2039
|
+
if (dt(ze))
|
|
2040
2040
|
return ze;
|
|
2041
2041
|
throw ut(at.UNEXPECTED_RETURN_TYPE);
|
|
2042
2042
|
}
|
|
2043
2043
|
};
|
|
2044
|
-
function
|
|
2045
|
-
return
|
|
2044
|
+
function X(...v) {
|
|
2045
|
+
return Z((y) => Reflect.apply(On, null, [y, ...v]), () => Vt(...v), "translate", (y) => Reflect.apply(y.t, y, [...v]), (y) => y, (y) => Y(y));
|
|
2046
2046
|
}
|
|
2047
2047
|
function ne(...v) {
|
|
2048
|
-
const [
|
|
2048
|
+
const [y, J, le] = v;
|
|
2049
2049
|
if (le && !te(le))
|
|
2050
2050
|
throw ut(at.INVALID_ARGUMENT);
|
|
2051
|
-
return
|
|
2051
|
+
return X(y, J, Ie({ resolvedMessage: !0 }, le || {}));
|
|
2052
2052
|
}
|
|
2053
2053
|
function Q(...v) {
|
|
2054
|
-
return
|
|
2054
|
+
return Z((y) => Reflect.apply(In, null, [y, ...v]), () => jt(...v), "datetime format", (y) => Reflect.apply(y.d, y, [...v]), () => vn, (y) => Y(y));
|
|
2055
2055
|
}
|
|
2056
2056
|
function _e(...v) {
|
|
2057
|
-
return
|
|
2057
|
+
return Z((y) => Reflect.apply(yn, null, [y, ...v]), () => Ut(...v), "number format", (y) => Reflect.apply(y.n, y, [...v]), () => vn, (y) => Y(y));
|
|
2058
2058
|
}
|
|
2059
2059
|
function ce(v) {
|
|
2060
|
-
return v.map((
|
|
2060
|
+
return v.map((y) => Y(y) || ge(y) || ve(y) ? Sn(String(y)) : y);
|
|
2061
2061
|
}
|
|
2062
2062
|
const fe = {
|
|
2063
2063
|
normalize: ce,
|
|
@@ -2065,107 +2065,107 @@ function Oo(e = {}) {
|
|
|
2065
2065
|
type: "vnode"
|
|
2066
2066
|
};
|
|
2067
2067
|
function q(...v) {
|
|
2068
|
-
return
|
|
2069
|
-
let
|
|
2070
|
-
const le =
|
|
2068
|
+
return Z((y) => {
|
|
2069
|
+
let J;
|
|
2070
|
+
const le = y;
|
|
2071
2071
|
try {
|
|
2072
|
-
le.processor = fe,
|
|
2072
|
+
le.processor = fe, J = Reflect.apply(On, null, [le, ...v]);
|
|
2073
2073
|
} finally {
|
|
2074
2074
|
le.processor = null;
|
|
2075
2075
|
}
|
|
2076
|
-
return
|
|
2077
|
-
}, () => Vt(...v), "translate", (
|
|
2076
|
+
return J;
|
|
2077
|
+
}, () => Vt(...v), "translate", (y) => y[xt](...v), (y) => [Sn(y)], (y) => be(y));
|
|
2078
2078
|
}
|
|
2079
|
-
function
|
|
2080
|
-
return
|
|
2079
|
+
function De(...v) {
|
|
2080
|
+
return Z((y) => Reflect.apply(yn, null, [y, ...v]), () => Ut(...v), "number format", (y) => y[Gt](...v), Ln, (y) => Y(y) || be(y));
|
|
2081
2081
|
}
|
|
2082
2082
|
function K(...v) {
|
|
2083
|
-
return
|
|
2083
|
+
return Z((y) => Reflect.apply(In, null, [y, ...v]), () => jt(...v), "datetime format", (y) => y[Wt](...v), Ln, (y) => Y(y) || be(y));
|
|
2084
2084
|
}
|
|
2085
2085
|
function pe(v) {
|
|
2086
2086
|
I = v, p.pluralRules = I;
|
|
2087
2087
|
}
|
|
2088
|
-
function
|
|
2089
|
-
return
|
|
2088
|
+
function $e(v, y) {
|
|
2089
|
+
return Z(() => {
|
|
2090
2090
|
if (!v)
|
|
2091
2091
|
return !1;
|
|
2092
|
-
const
|
|
2093
|
-
return ot(
|
|
2094
|
-
}, () => [v], "translate exists", (
|
|
2092
|
+
const J = Y(y) ? y : u.value, le = Fe(J), Xe = p.messageResolver(le, v);
|
|
2093
|
+
return ot(Xe) || Te(Xe) || Y(Xe);
|
|
2094
|
+
}, () => [v], "translate exists", (J) => Reflect.apply(J.te, J, [v, y]), No, (J) => ve(J));
|
|
2095
2095
|
}
|
|
2096
2096
|
function Ke(v) {
|
|
2097
|
-
let
|
|
2098
|
-
const
|
|
2099
|
-
for (let le = 0; le <
|
|
2100
|
-
const
|
|
2101
|
-
if (
|
|
2102
|
-
|
|
2097
|
+
let y = null;
|
|
2098
|
+
const J = Hn(p, i.value, u.value);
|
|
2099
|
+
for (let le = 0; le < J.length; le++) {
|
|
2100
|
+
const Xe = g.value[J[le]] || {}, dt = p.messageResolver(Xe, v);
|
|
2101
|
+
if (dt != null) {
|
|
2102
|
+
y = dt;
|
|
2103
2103
|
break;
|
|
2104
2104
|
}
|
|
2105
2105
|
}
|
|
2106
|
-
return
|
|
2106
|
+
return y;
|
|
2107
2107
|
}
|
|
2108
2108
|
function Ve(v) {
|
|
2109
|
-
const
|
|
2110
|
-
return
|
|
2109
|
+
const y = Ke(v);
|
|
2110
|
+
return y ?? (t ? t.tm(v) || {} : {});
|
|
2111
2111
|
}
|
|
2112
2112
|
function Fe(v) {
|
|
2113
2113
|
return g.value[v] || {};
|
|
2114
2114
|
}
|
|
2115
|
-
function
|
|
2115
|
+
function Ne(v, y) {
|
|
2116
2116
|
if (l) {
|
|
2117
|
-
const
|
|
2118
|
-
for (const le in
|
|
2119
|
-
|
|
2120
|
-
|
|
2117
|
+
const J = { [v]: y };
|
|
2118
|
+
for (const le in J)
|
|
2119
|
+
Ae(J, le) && mt(J[le]);
|
|
2120
|
+
y = J[v];
|
|
2121
2121
|
}
|
|
2122
|
-
g.value[v] =
|
|
2122
|
+
g.value[v] = y, p.messages = g.value;
|
|
2123
2123
|
}
|
|
2124
|
-
function
|
|
2124
|
+
function Ze(v, y) {
|
|
2125
2125
|
g.value[v] = g.value[v] || {};
|
|
2126
|
-
const
|
|
2126
|
+
const J = { [v]: y };
|
|
2127
2127
|
if (l)
|
|
2128
|
-
for (const le in
|
|
2129
|
-
|
|
2130
|
-
|
|
2128
|
+
for (const le in J)
|
|
2129
|
+
Ae(J, le) && mt(J[le]);
|
|
2130
|
+
y = J[v], Et(y, g.value[v]), p.messages = g.value;
|
|
2131
2131
|
}
|
|
2132
2132
|
function O(v) {
|
|
2133
|
-
return
|
|
2133
|
+
return E.value[v] || {};
|
|
2134
2134
|
}
|
|
2135
|
-
function s(v,
|
|
2136
|
-
|
|
2135
|
+
function s(v, y) {
|
|
2136
|
+
E.value[v] = y, p.datetimeFormats = E.value, En(p, v, y);
|
|
2137
2137
|
}
|
|
2138
|
-
function o(v,
|
|
2139
|
-
|
|
2138
|
+
function o(v, y) {
|
|
2139
|
+
E.value[v] = Ie(E.value[v] || {}, y), p.datetimeFormats = E.value, En(p, v, y);
|
|
2140
2140
|
}
|
|
2141
2141
|
function _(v) {
|
|
2142
2142
|
return T.value[v] || {};
|
|
2143
2143
|
}
|
|
2144
|
-
function
|
|
2145
|
-
T.value[v] =
|
|
2144
|
+
function k(v, y) {
|
|
2145
|
+
T.value[v] = y, p.numberFormats = T.value, Cn(p, v, y);
|
|
2146
2146
|
}
|
|
2147
|
-
function M(v,
|
|
2148
|
-
T.value[v] = Ie(T.value[v] || {},
|
|
2147
|
+
function M(v, y) {
|
|
2148
|
+
T.value[v] = Ie(T.value[v] || {}, y), p.numberFormats = T.value, Cn(p, v, y);
|
|
2149
2149
|
}
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
}),
|
|
2153
|
-
|
|
2150
|
+
kn++, t && on && (wt(t.locale, (v) => {
|
|
2151
|
+
m && (u.value = v, p.locale = v, lt(p, u.value, i.value));
|
|
2152
|
+
}), wt(t.fallbackLocale, (v) => {
|
|
2153
|
+
m && (i.value = v, p.fallbackLocale = v, lt(p, u.value, i.value));
|
|
2154
2154
|
}));
|
|
2155
2155
|
const P = {
|
|
2156
|
-
id:
|
|
2157
|
-
locale:
|
|
2156
|
+
id: kn,
|
|
2157
|
+
locale: B,
|
|
2158
2158
|
fallbackLocale: x,
|
|
2159
2159
|
get inheritLocale() {
|
|
2160
|
-
return
|
|
2160
|
+
return m;
|
|
2161
2161
|
},
|
|
2162
2162
|
set inheritLocale(v) {
|
|
2163
|
-
|
|
2163
|
+
m = v, v && t && (u.value = t.locale.value, i.value = t.fallbackLocale.value, lt(p, u.value, i.value));
|
|
2164
2164
|
},
|
|
2165
2165
|
get availableLocales() {
|
|
2166
2166
|
return Object.keys(g.value).sort();
|
|
2167
2167
|
},
|
|
2168
|
-
messages:
|
|
2168
|
+
messages: d,
|
|
2169
2169
|
get modifiers() {
|
|
2170
2170
|
return b;
|
|
2171
2171
|
},
|
|
@@ -2176,10 +2176,10 @@ function Oo(e = {}) {
|
|
|
2176
2176
|
return r;
|
|
2177
2177
|
},
|
|
2178
2178
|
get missingWarn() {
|
|
2179
|
-
return
|
|
2179
|
+
return C;
|
|
2180
2180
|
},
|
|
2181
2181
|
set missingWarn(v) {
|
|
2182
|
-
|
|
2182
|
+
C = v, p.missingWarn = C;
|
|
2183
2183
|
},
|
|
2184
2184
|
get fallbackWarn() {
|
|
2185
2185
|
return F;
|
|
@@ -2188,16 +2188,16 @@ function Oo(e = {}) {
|
|
|
2188
2188
|
F = v, p.fallbackWarn = F;
|
|
2189
2189
|
},
|
|
2190
2190
|
get fallbackRoot() {
|
|
2191
|
-
return
|
|
2191
|
+
return w;
|
|
2192
2192
|
},
|
|
2193
2193
|
set fallbackRoot(v) {
|
|
2194
|
-
|
|
2194
|
+
w = v;
|
|
2195
2195
|
},
|
|
2196
2196
|
get fallbackFormat() {
|
|
2197
|
-
return
|
|
2197
|
+
return L;
|
|
2198
2198
|
},
|
|
2199
2199
|
set fallbackFormat(v) {
|
|
2200
|
-
|
|
2200
|
+
L = v, p.fallbackFormat = L;
|
|
2201
2201
|
},
|
|
2202
2202
|
get warnHtmlMessage() {
|
|
2203
2203
|
return S;
|
|
@@ -2211,17 +2211,17 @@ function Oo(e = {}) {
|
|
|
2211
2211
|
set escapeParameter(v) {
|
|
2212
2212
|
c = v, p.escapeParameter = v;
|
|
2213
2213
|
},
|
|
2214
|
-
t:
|
|
2214
|
+
t: X,
|
|
2215
2215
|
getLocaleMessage: Fe,
|
|
2216
|
-
setLocaleMessage:
|
|
2217
|
-
mergeLocaleMessage:
|
|
2216
|
+
setLocaleMessage: Ne,
|
|
2217
|
+
mergeLocaleMessage: Ze,
|
|
2218
2218
|
getPostTranslationHandler: V,
|
|
2219
2219
|
setPostTranslationHandler: j,
|
|
2220
2220
|
getMissingHandler: G,
|
|
2221
2221
|
setMissingHandler: W,
|
|
2222
|
-
[
|
|
2222
|
+
[yo]: pe
|
|
2223
2223
|
};
|
|
2224
|
-
return P.datetimeFormats =
|
|
2224
|
+
return P.datetimeFormats = N, P.numberFormats = U, P.rt = ne, P.te = $e, P.tm = Ve, P.d = Q, P.n = _e, P.getDateTimeFormat = O, P.setDateTimeFormat = s, P.mergeDateTimeFormat = o, P.getNumberFormat = _, P.setNumberFormat = k, P.mergeNumberFormat = M, P[rr] = n, P[xt] = q, P[Wt] = K, P[Gt] = De, P;
|
|
2225
2225
|
}
|
|
2226
2226
|
const qt = {
|
|
2227
2227
|
tag: {
|
|
@@ -2264,23 +2264,23 @@ Ie({
|
|
|
2264
2264
|
validator: (e) => ge(e) || !isNaN(e)
|
|
2265
2265
|
}
|
|
2266
2266
|
}, qt);
|
|
2267
|
-
function
|
|
2268
|
-
return be(e) && !
|
|
2267
|
+
function Ao(e) {
|
|
2268
|
+
return be(e) && !Y(e[0]);
|
|
2269
2269
|
}
|
|
2270
2270
|
function lr(e, t, n, r) {
|
|
2271
2271
|
const { slots: l, attrs: a } = t;
|
|
2272
2272
|
return () => {
|
|
2273
|
-
const
|
|
2273
|
+
const m = { part: !0 };
|
|
2274
2274
|
let u = oe();
|
|
2275
|
-
e.locale && (
|
|
2276
|
-
const i = r(e.value,
|
|
2277
|
-
let g = [
|
|
2278
|
-
be(i) ? g = i.map((
|
|
2279
|
-
const
|
|
2280
|
-
return
|
|
2281
|
-
}) :
|
|
2282
|
-
const
|
|
2283
|
-
return Wn(T,
|
|
2275
|
+
e.locale && (m.locale = e.locale), Y(e.format) ? m.key = e.format : te(e.format) && (Y(e.format.key) && (m.key = e.format.key), u = Object.keys(e.format).reduce((C, F) => n.includes(F) ? Ie(oe(), C, { [F]: e.format[F] }) : C, oe()));
|
|
2276
|
+
const i = r(e.value, m, u);
|
|
2277
|
+
let g = [m.key];
|
|
2278
|
+
be(i) ? g = i.map((C, F) => {
|
|
2279
|
+
const w = l[C.type], L = w ? w({ [C.type]: C.value, index: F, parts: i }) : [C.value];
|
|
2280
|
+
return Ao(L) && (L[0].key = `${C.type}-${F}`), L;
|
|
2281
|
+
}) : Y(i) && (g = [i]);
|
|
2282
|
+
const E = Ie(oe(), a), T = Y(e.tag) || te(e.tag) ? e.tag : ar();
|
|
2283
|
+
return Wn(T, E, g);
|
|
2284
2284
|
};
|
|
2285
2285
|
}
|
|
2286
2286
|
Ie({
|
|
@@ -2301,50 +2301,50 @@ Ie({
|
|
|
2301
2301
|
type: [String, Object]
|
|
2302
2302
|
}
|
|
2303
2303
|
}, qt);
|
|
2304
|
-
const
|
|
2304
|
+
const Lo = /* @__PURE__ */ Je("global-vue-i18n");
|
|
2305
2305
|
function St(e = {}) {
|
|
2306
|
-
const t =
|
|
2306
|
+
const t = Xt();
|
|
2307
2307
|
if (t == null)
|
|
2308
2308
|
throw ut(at.MUST_BE_CALL_SETUP_TOP);
|
|
2309
2309
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2310
2310
|
throw ut(at.NOT_INSTALLED);
|
|
2311
|
-
const n =
|
|
2311
|
+
const n = ko(t), r = Mo(n), l = or(t), a = Ro(e, l);
|
|
2312
2312
|
if (a === "global")
|
|
2313
|
-
return
|
|
2313
|
+
return Co(r, e, l), r;
|
|
2314
2314
|
if (a === "parent") {
|
|
2315
|
-
let i =
|
|
2315
|
+
let i = wo(n, t, e.__useComponent);
|
|
2316
2316
|
return i == null && (i = r), i;
|
|
2317
2317
|
}
|
|
2318
|
-
const
|
|
2319
|
-
let u =
|
|
2318
|
+
const m = n;
|
|
2319
|
+
let u = m.__getInstance(t);
|
|
2320
2320
|
if (u == null) {
|
|
2321
2321
|
const i = Ie({}, e);
|
|
2322
|
-
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u = Oo(i),
|
|
2322
|
+
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u = Oo(i), m.__composerExtend && (u[Yt] = m.__composerExtend(u)), Fo(m, t, u), m.__setInstance(t, u);
|
|
2323
2323
|
}
|
|
2324
2324
|
return u;
|
|
2325
2325
|
}
|
|
2326
|
-
function
|
|
2327
|
-
const t = ur(e.isCE ?
|
|
2326
|
+
function ko(e) {
|
|
2327
|
+
const t = ur(e.isCE ? Lo : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2328
2328
|
if (!t)
|
|
2329
2329
|
throw ut(e.isCE ? at.NOT_INSTALLED_WITH_PROVIDE : at.UNEXPECTED_ERROR);
|
|
2330
2330
|
return t;
|
|
2331
2331
|
}
|
|
2332
2332
|
function Ro(e, t) {
|
|
2333
|
-
return
|
|
2333
|
+
return Nt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2334
2334
|
}
|
|
2335
2335
|
function Mo(e) {
|
|
2336
2336
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2337
2337
|
}
|
|
2338
|
-
function
|
|
2338
|
+
function wo(e, t, n = !1) {
|
|
2339
2339
|
let r = null;
|
|
2340
2340
|
const l = t.root;
|
|
2341
|
-
let a =
|
|
2341
|
+
let a = Do(t, n);
|
|
2342
2342
|
for (; a != null; ) {
|
|
2343
|
-
const
|
|
2343
|
+
const m = e;
|
|
2344
2344
|
if (e.mode === "composition")
|
|
2345
|
-
r =
|
|
2345
|
+
r = m.__getInstance(a);
|
|
2346
2346
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
2347
|
-
const u =
|
|
2347
|
+
const u = m.__getInstance(a);
|
|
2348
2348
|
u != null && (r = u.__composer, n && r && !r[rr] && (r = null));
|
|
2349
2349
|
}
|
|
2350
2350
|
if (r != null || l === a)
|
|
@@ -2353,27 +2353,27 @@ function Do(e, t, n = !1) {
|
|
|
2353
2353
|
}
|
|
2354
2354
|
return r;
|
|
2355
2355
|
}
|
|
2356
|
-
function
|
|
2356
|
+
function Do(e, t = !1) {
|
|
2357
2357
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2358
2358
|
}
|
|
2359
2359
|
function Fo(e, t, n) {
|
|
2360
2360
|
xn(() => {
|
|
2361
|
-
}, t),
|
|
2361
|
+
}, t), dr(() => {
|
|
2362
2362
|
const r = n;
|
|
2363
2363
|
e.__deleteInstance(t);
|
|
2364
|
-
const l = r[
|
|
2365
|
-
l && (l(), delete r[
|
|
2364
|
+
const l = r[Yt];
|
|
2365
|
+
l && (l(), delete r[Yt]);
|
|
2366
2366
|
}, t);
|
|
2367
2367
|
}
|
|
2368
|
-
|
|
2368
|
+
Eo();
|
|
2369
2369
|
zs(Ms);
|
|
2370
|
-
Qs(
|
|
2371
|
-
qs(
|
|
2370
|
+
Qs(Js);
|
|
2371
|
+
qs(Hn);
|
|
2372
2372
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2373
|
-
const e =
|
|
2374
|
-
e.__INTLIFY__ = !0,
|
|
2373
|
+
const e = Be();
|
|
2374
|
+
e.__INTLIFY__ = !0, ws(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2375
2375
|
}
|
|
2376
|
-
const vt = /* @__PURE__ */
|
|
2376
|
+
const vt = /* @__PURE__ */ Le({
|
|
2377
2377
|
__name: "InheritPermissionTooltip",
|
|
2378
2378
|
props: {
|
|
2379
2379
|
item: {
|
|
@@ -2384,19 +2384,19 @@ const vt = /* @__PURE__ */ Ae({
|
|
|
2384
2384
|
setup(e) {
|
|
2385
2385
|
const { t } = St();
|
|
2386
2386
|
return (n, r) => {
|
|
2387
|
-
const l =
|
|
2388
|
-
return
|
|
2387
|
+
const l = we("FmIcon"), a = we("FmTooltip");
|
|
2388
|
+
return $(), Ce(a, {
|
|
2389
2389
|
variant: "plain",
|
|
2390
2390
|
placement: "right",
|
|
2391
2391
|
"z-index": 50
|
|
2392
2392
|
}, {
|
|
2393
|
-
content:
|
|
2394
|
-
ae("div", null, Oe(
|
|
2395
|
-
(
|
|
2396
|
-
ae("div", null, "- " + Oe(
|
|
2393
|
+
content: me(() => [
|
|
2394
|
+
ae("div", null, Oe(H(t)("team.memberForm.permissions.inherited")), 1),
|
|
2395
|
+
($(!0), ie(Re, null, ye(e.item.setNames, (m) => ($(), ie("div", { key: m }, [
|
|
2396
|
+
ae("div", null, "- " + Oe(m), 1)
|
|
2397
2397
|
]))), 128))
|
|
2398
2398
|
]),
|
|
2399
|
-
default:
|
|
2399
|
+
default: me(() => [
|
|
2400
2400
|
ue(l, {
|
|
2401
2401
|
name: "admin_panel_settings",
|
|
2402
2402
|
size: "sm",
|
|
@@ -2413,53 +2413,53 @@ function Mn(e, t, n) {
|
|
|
2413
2413
|
if (r.length === 0) return;
|
|
2414
2414
|
const l = e.findIndex((u) => u.subject === t && !u.inverted);
|
|
2415
2415
|
if (l < 0) return;
|
|
2416
|
-
const a = new Set(e[l].actions),
|
|
2417
|
-
|
|
2416
|
+
const a = new Set(e[l].actions), m = r.every((u) => a.has(u));
|
|
2417
|
+
m && !a.has("manage") ? (a.add("manage"), e[l] = {
|
|
2418
2418
|
...e[l],
|
|
2419
2419
|
actions: Array.from(a)
|
|
2420
|
-
}) : !
|
|
2420
|
+
}) : !m && a.has("manage") && (a.delete("manage"), a.size === 0 ? e.splice(l, 1) : e[l] = {
|
|
2421
2421
|
...e[l],
|
|
2422
2422
|
actions: Array.from(a)
|
|
2423
2423
|
});
|
|
2424
2424
|
}
|
|
2425
|
-
const
|
|
2425
|
+
const wn = Object.values(Sr), Po = {
|
|
2426
2426
|
read: "View",
|
|
2427
2427
|
create: "Duplicate",
|
|
2428
2428
|
update: "Edit"
|
|
2429
2429
|
};
|
|
2430
2430
|
function jo(e, t, n, r) {
|
|
2431
|
-
const { t: l } =
|
|
2431
|
+
const { t: l } = He(), { getFlagValue: a, getFlag: m } = Or(), u = z(() => {
|
|
2432
2432
|
var j;
|
|
2433
|
-
const
|
|
2433
|
+
const d = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map();
|
|
2434
2434
|
for (const G of t.value) {
|
|
2435
2435
|
const W = G.category;
|
|
2436
2436
|
if (!W) continue;
|
|
2437
|
-
const
|
|
2438
|
-
if (n.value.includes(G.subject) || G.showByFeatureFlag && ((j =
|
|
2437
|
+
const Z = G.subject;
|
|
2438
|
+
if (n.value.includes(G.subject) || G.showByFeatureFlag && ((j = m(G.showByFeatureFlag)) == null ? void 0 : j.enabled) === !1 && a(G.showByFeatureFlag) === "true")
|
|
2439
2439
|
continue;
|
|
2440
|
-
|
|
2441
|
-
const
|
|
2442
|
-
U.set(
|
|
2443
|
-
label: l(`permissionSet.permissionLabels.${
|
|
2444
|
-
value:
|
|
2445
|
-
optionKey: `${
|
|
2446
|
-
}),
|
|
2440
|
+
d.has(W) || d.set(W, []);
|
|
2441
|
+
const X = U.get(Z) ?? 0;
|
|
2442
|
+
U.set(Z, X + 1), d.get(W).push({
|
|
2443
|
+
label: l(`permissionSet.permissionLabels.${Z}`, G.label),
|
|
2444
|
+
value: Z,
|
|
2445
|
+
optionKey: `${Z}::${X}`
|
|
2446
|
+
}), N.has(Z) || N.set(Z, G);
|
|
2447
2447
|
}
|
|
2448
|
-
return [...
|
|
2449
|
-
const
|
|
2450
|
-
return
|
|
2448
|
+
return [...d.keys()].sort((G, W) => {
|
|
2449
|
+
const Z = wn.indexOf(G), X = wn.indexOf(W);
|
|
2450
|
+
return Z === -1 && X === -1 ? G.localeCompare(W) : Z === -1 ? 1 : X === -1 ? -1 : Z - X;
|
|
2451
2451
|
}).map((G) => {
|
|
2452
|
-
const W =
|
|
2452
|
+
const W = d.get(G), Z = l(`permissionSet.categoryLabels.${G}`, G), X = /* @__PURE__ */ new Map();
|
|
2453
2453
|
for (const K of W) {
|
|
2454
|
-
const pe =
|
|
2455
|
-
pe &&
|
|
2454
|
+
const pe = N.get(K.value);
|
|
2455
|
+
pe && X.set(K.value, pe.actions);
|
|
2456
2456
|
}
|
|
2457
2457
|
const ne = W.some((K) => {
|
|
2458
|
-
const pe =
|
|
2458
|
+
const pe = X.get(K.value);
|
|
2459
2459
|
return pe && pe.length > 1;
|
|
2460
2460
|
}), Q = ne ? [
|
|
2461
2461
|
...new Set(
|
|
2462
|
-
W.flatMap((K) =>
|
|
2462
|
+
W.flatMap((K) => X.get(K.value) ?? []).filter((K) => K !== "manage")
|
|
2463
2463
|
)
|
|
2464
2464
|
] : [], _e = /* @__PURE__ */ new Map();
|
|
2465
2465
|
for (const K of e.value)
|
|
@@ -2468,34 +2468,34 @@ function jo(e, t, n, r) {
|
|
|
2468
2468
|
(K) => W.some((pe) => pe.value === K.subject) && !K.inverted && K.actions.includes("manage")
|
|
2469
2469
|
).map((K) => K.subject) : e.value.filter((K) => W.some((pe) => pe.value === K.subject) && !K.inverted).map((K) => K.subject), se = W.find((K) => {
|
|
2470
2470
|
var pe;
|
|
2471
|
-
return (pe =
|
|
2472
|
-
}), fe = (se == null ? void 0 : se.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(),
|
|
2471
|
+
return (pe = N.get(K.value)) == null ? void 0 : pe.isCategoryCover;
|
|
2472
|
+
}), fe = (se == null ? void 0 : se.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), De = q.has("manage");
|
|
2473
2473
|
return {
|
|
2474
2474
|
category: G,
|
|
2475
|
-
label:
|
|
2475
|
+
label: Z,
|
|
2476
2476
|
options: W,
|
|
2477
2477
|
selectedSubjects: ce,
|
|
2478
2478
|
isMultiAction: ne,
|
|
2479
2479
|
actionColumns: Q,
|
|
2480
|
-
permissionActionsMap:
|
|
2480
|
+
permissionActionsMap: X,
|
|
2481
2481
|
selectedActionsMap: _e,
|
|
2482
2482
|
coverSubject: fe,
|
|
2483
2483
|
coverSelectedActions: q,
|
|
2484
|
-
coverCoversAll:
|
|
2484
|
+
coverCoversAll: De
|
|
2485
2485
|
};
|
|
2486
2486
|
});
|
|
2487
2487
|
});
|
|
2488
|
-
function i(
|
|
2489
|
-
const U = u.value.find((Q) => Q.category ===
|
|
2488
|
+
function i(d, N) {
|
|
2489
|
+
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(N), W = /* @__PURE__ */ new Map();
|
|
2490
2490
|
for (const Q of e.value)
|
|
2491
2491
|
j.has(Q.subject) && !Q.inverted && W.set(Q.subject, Q.conditions);
|
|
2492
|
-
const
|
|
2492
|
+
const Z = U != null && U.coverSubject ? W.get(U.coverSubject) : void 0, X = /* @__PURE__ */ new Set(), ne = t.value.flatMap(
|
|
2493
2493
|
({ category: Q, showByFeatureFlag: _e, isCategoryCover: ce, ...se }) => {
|
|
2494
2494
|
const fe = se.subject;
|
|
2495
|
-
if (!G.has(fe) ||
|
|
2496
|
-
|
|
2495
|
+
if (!G.has(fe) || X.has(fe)) return [];
|
|
2496
|
+
X.add(fe);
|
|
2497
2497
|
let q;
|
|
2498
|
-
return W.has(fe) ? q = W.get(fe) : U != null && U.coverSubject && fe !== U.coverSubject && (q =
|
|
2498
|
+
return W.has(fe) ? q = W.get(fe) : U != null && U.coverSubject && fe !== U.coverSubject && (q = Z), [
|
|
2499
2499
|
{ ...se, ...q !== void 0 && { conditions: q } }
|
|
2500
2500
|
];
|
|
2501
2501
|
}
|
|
@@ -2505,32 +2505,32 @@ function jo(e, t, n, r) {
|
|
|
2505
2505
|
...ne
|
|
2506
2506
|
]);
|
|
2507
2507
|
}
|
|
2508
|
-
function g(
|
|
2509
|
-
return F(
|
|
2508
|
+
function g(d, N) {
|
|
2509
|
+
return F(d, N) || c(d, N);
|
|
2510
2510
|
}
|
|
2511
|
-
function
|
|
2512
|
-
return
|
|
2511
|
+
function E(d) {
|
|
2512
|
+
return d.options.length > 0 && d.options.every((N) => g(d, N.value));
|
|
2513
2513
|
}
|
|
2514
|
-
function T(
|
|
2515
|
-
return
|
|
2516
|
-
(
|
|
2514
|
+
function T(d) {
|
|
2515
|
+
return d.options.length === 0 || E(d) ? !1 : d.options.some(
|
|
2516
|
+
(N) => g(d, N.value) || w(d, N.value).length > 0
|
|
2517
2517
|
);
|
|
2518
2518
|
}
|
|
2519
|
-
function
|
|
2520
|
-
const
|
|
2521
|
-
if (
|
|
2519
|
+
function C(d) {
|
|
2520
|
+
const N = new Set(d.options.map((V) => V.value)), U = e.value.filter((V) => !N.has(V.subject));
|
|
2521
|
+
if (E(d))
|
|
2522
2522
|
r("update:model-value", U);
|
|
2523
2523
|
else {
|
|
2524
2524
|
const V = /* @__PURE__ */ new Map();
|
|
2525
|
-
for (const
|
|
2526
|
-
|
|
2527
|
-
const j =
|
|
2528
|
-
({ category:
|
|
2525
|
+
for (const Z of e.value)
|
|
2526
|
+
N.has(Z.subject) && !Z.inverted && V.set(Z.subject, Z.conditions);
|
|
2527
|
+
const j = d.coverSubject ? V.get(d.coverSubject) : void 0, G = /* @__PURE__ */ new Set(), W = t.value.flatMap(
|
|
2528
|
+
({ category: Z, showByFeatureFlag: X, isCategoryCover: ne, ...Q }) => {
|
|
2529
2529
|
const _e = Q.subject;
|
|
2530
|
-
if (!
|
|
2530
|
+
if (!N.has(_e) || G.has(_e)) return [];
|
|
2531
2531
|
G.add(_e);
|
|
2532
2532
|
let ce;
|
|
2533
|
-
return V.has(_e) ? ce = V.get(_e) :
|
|
2533
|
+
return V.has(_e) ? ce = V.get(_e) : d.coverSubject && _e !== d.coverSubject && (ce = j), [
|
|
2534
2534
|
{ ...Q, ...ce !== void 0 && { conditions: ce } }
|
|
2535
2535
|
];
|
|
2536
2536
|
}
|
|
@@ -2538,159 +2538,159 @@ function jo(e, t, n, r) {
|
|
|
2538
2538
|
r("update:model-value", [...U, ...W]);
|
|
2539
2539
|
}
|
|
2540
2540
|
}
|
|
2541
|
-
function F(
|
|
2542
|
-
const U =
|
|
2541
|
+
function F(d, N) {
|
|
2542
|
+
const U = d.selectedActionsMap.get(N);
|
|
2543
2543
|
return U ? U.has("manage") : !1;
|
|
2544
2544
|
}
|
|
2545
|
-
function
|
|
2546
|
-
const U =
|
|
2545
|
+
function w(d, N) {
|
|
2546
|
+
const U = d.permissionActionsMap.get(N);
|
|
2547
2547
|
return U ? U.filter((j) => j !== "manage").filter(
|
|
2548
|
-
(j) => S(
|
|
2548
|
+
(j) => S(d, N, j) || b(d, N, j)
|
|
2549
2549
|
) : [];
|
|
2550
2550
|
}
|
|
2551
|
-
function
|
|
2552
|
-
return c(
|
|
2551
|
+
function L(d, N) {
|
|
2552
|
+
return c(d, N) ? !1 : !F(d, N) && w(d, N).length > 0;
|
|
2553
2553
|
}
|
|
2554
|
-
function
|
|
2555
|
-
if (!
|
|
2554
|
+
function D(d, N) {
|
|
2555
|
+
if (!d.coverSubject || N === d.coverSubject) return;
|
|
2556
2556
|
const U = e.value.find(
|
|
2557
|
-
(V) => !V.inverted && V.subject ===
|
|
2557
|
+
(V) => !V.inverted && V.subject === d.coverSubject
|
|
2558
2558
|
);
|
|
2559
2559
|
return (U == null ? void 0 : U.conditions) || void 0;
|
|
2560
2560
|
}
|
|
2561
|
-
function f(
|
|
2561
|
+
function f(d, N, U) {
|
|
2562
2562
|
if (U) {
|
|
2563
|
-
const V = t.value.find((Q) => Q.subject ===
|
|
2563
|
+
const V = t.value.find((Q) => Q.subject === N);
|
|
2564
2564
|
if (!V) return;
|
|
2565
2565
|
const {
|
|
2566
2566
|
category: j,
|
|
2567
2567
|
showByFeatureFlag: G,
|
|
2568
2568
|
isCategoryCover: W,
|
|
2569
|
-
...
|
|
2570
|
-
} = V,
|
|
2569
|
+
...Z
|
|
2570
|
+
} = V, X = D(d, N), ne = e.value.filter((Q) => Q.subject !== N);
|
|
2571
2571
|
ne.push({
|
|
2572
|
-
...
|
|
2573
|
-
...
|
|
2572
|
+
...Z,
|
|
2573
|
+
...X !== void 0 && { conditions: X }
|
|
2574
2574
|
}), r("update:model-value", ne);
|
|
2575
2575
|
} else
|
|
2576
2576
|
r(
|
|
2577
2577
|
"update:model-value",
|
|
2578
|
-
e.value.filter((V) => V.subject !==
|
|
2578
|
+
e.value.filter((V) => V.subject !== N)
|
|
2579
2579
|
);
|
|
2580
2580
|
}
|
|
2581
|
-
function h(
|
|
2582
|
-
const U =
|
|
2581
|
+
function h(d, N) {
|
|
2582
|
+
const U = d.permissionActionsMap.get(N);
|
|
2583
2583
|
return U ? U.some((V) => V !== "manage") : !1;
|
|
2584
2584
|
}
|
|
2585
|
-
function S(
|
|
2586
|
-
const V =
|
|
2585
|
+
function S(d, N, U) {
|
|
2586
|
+
const V = d.selectedActionsMap.get(N);
|
|
2587
2587
|
return V ? V.has(U) : !1;
|
|
2588
2588
|
}
|
|
2589
|
-
function c(
|
|
2590
|
-
return !
|
|
2589
|
+
function c(d, N) {
|
|
2590
|
+
return !d.coverSubject || N === d.coverSubject ? !1 : d.coverCoversAll;
|
|
2591
2591
|
}
|
|
2592
|
-
function b(
|
|
2593
|
-
return !
|
|
2592
|
+
function b(d, N, U) {
|
|
2593
|
+
return !d.coverSubject || N === d.coverSubject ? !1 : d.coverCoversAll ? !0 : d.coverSelectedActions.has(U);
|
|
2594
2594
|
}
|
|
2595
|
-
function I(
|
|
2596
|
-
const V =
|
|
2595
|
+
function I(d, N, U) {
|
|
2596
|
+
const V = d.permissionActionsMap.get(N);
|
|
2597
2597
|
return V ? V.includes(U) : !1;
|
|
2598
2598
|
}
|
|
2599
|
-
function p(
|
|
2600
|
-
const V = [...e.value], j = V.findIndex((W) => W.subject ===
|
|
2599
|
+
function p(d, N, U) {
|
|
2600
|
+
const V = [...e.value], j = V.findIndex((W) => W.subject === d && !W.inverted);
|
|
2601
2601
|
if (U)
|
|
2602
2602
|
if (j >= 0) {
|
|
2603
|
-
const W = { ...V[j] },
|
|
2604
|
-
|
|
2603
|
+
const W = { ...V[j] }, Z = new Set(W.actions);
|
|
2604
|
+
Z.add(N), W.actions = Array.from(Z), V[j] = W;
|
|
2605
2605
|
} else {
|
|
2606
|
-
const W = t.value.find((se) => se.subject ===
|
|
2606
|
+
const W = t.value.find((se) => se.subject === d);
|
|
2607
2607
|
if (!W) return;
|
|
2608
2608
|
const {
|
|
2609
|
-
category:
|
|
2610
|
-
showByFeatureFlag:
|
|
2609
|
+
category: Z,
|
|
2610
|
+
showByFeatureFlag: X,
|
|
2611
2611
|
isCategoryCover: ne,
|
|
2612
2612
|
...Q
|
|
2613
2613
|
} = W, _e = u.value.find(
|
|
2614
|
-
(se) => se.options.some((fe) => fe.value ===
|
|
2615
|
-
), ce = _e ?
|
|
2614
|
+
(se) => se.options.some((fe) => fe.value === d)
|
|
2615
|
+
), ce = _e ? D(_e, d) : void 0;
|
|
2616
2616
|
V.push({
|
|
2617
2617
|
...Q,
|
|
2618
|
-
actions: [
|
|
2618
|
+
actions: [N],
|
|
2619
2619
|
...ce !== void 0 && { conditions: ce }
|
|
2620
2620
|
});
|
|
2621
2621
|
}
|
|
2622
2622
|
else if (j >= 0) {
|
|
2623
|
-
const W = { ...V[j] },
|
|
2624
|
-
|
|
2623
|
+
const W = { ...V[j] }, Z = W.actions.filter((X) => X !== N);
|
|
2624
|
+
Z.length === 0 ? V.splice(j, 1) : (W.actions = Z, V[j] = W);
|
|
2625
2625
|
}
|
|
2626
|
-
const G = t.value.find((W) => W.subject ===
|
|
2627
|
-
G && Mn(V,
|
|
2626
|
+
const G = t.value.find((W) => W.subject === d);
|
|
2627
|
+
G && Mn(V, d, G.actions), r("update:model-value", V);
|
|
2628
2628
|
}
|
|
2629
|
-
function R(
|
|
2630
|
-
const U =
|
|
2631
|
-
(V) => I(
|
|
2629
|
+
function R(d, N) {
|
|
2630
|
+
const U = d.options.filter(
|
|
2631
|
+
(V) => I(d, V.value, N)
|
|
2632
2632
|
);
|
|
2633
2633
|
return U.length === 0 ? !1 : U.every(
|
|
2634
|
-
(V) => S(
|
|
2634
|
+
(V) => S(d, V.value, N) || b(d, V.value, N)
|
|
2635
2635
|
);
|
|
2636
2636
|
}
|
|
2637
|
-
function
|
|
2638
|
-
const U =
|
|
2639
|
-
(j) => I(
|
|
2637
|
+
function A(d, N) {
|
|
2638
|
+
const U = d.options.filter(
|
|
2639
|
+
(j) => I(d, j.value, N)
|
|
2640
2640
|
);
|
|
2641
2641
|
if (U.length === 0) return !1;
|
|
2642
2642
|
const V = U.filter(
|
|
2643
|
-
(j) => S(
|
|
2643
|
+
(j) => S(d, j.value, N) || b(d, j.value, N)
|
|
2644
2644
|
).length;
|
|
2645
2645
|
return V > 0 && V < U.length;
|
|
2646
2646
|
}
|
|
2647
|
-
function
|
|
2647
|
+
function B(d, N, U) {
|
|
2648
2648
|
const V = [...e.value];
|
|
2649
|
-
for (const j of
|
|
2650
|
-
if (!I(
|
|
2649
|
+
for (const j of d.options) {
|
|
2650
|
+
if (!I(d, j.value, N)) continue;
|
|
2651
2651
|
const G = j.value, W = V.findIndex(
|
|
2652
|
-
(
|
|
2652
|
+
(X) => X.subject === G && !X.inverted
|
|
2653
2653
|
);
|
|
2654
2654
|
if (U)
|
|
2655
2655
|
if (W >= 0) {
|
|
2656
|
-
const
|
|
2657
|
-
ne.add(
|
|
2656
|
+
const X = { ...V[W] }, ne = new Set(X.actions);
|
|
2657
|
+
ne.add(N), X.actions = Array.from(ne), V[W] = X;
|
|
2658
2658
|
} else {
|
|
2659
|
-
const
|
|
2660
|
-
if (!
|
|
2659
|
+
const X = t.value.find((fe) => fe.subject === G);
|
|
2660
|
+
if (!X) continue;
|
|
2661
2661
|
const {
|
|
2662
2662
|
category: ne,
|
|
2663
2663
|
showByFeatureFlag: Q,
|
|
2664
2664
|
isCategoryCover: _e,
|
|
2665
2665
|
...ce
|
|
2666
|
-
} =
|
|
2666
|
+
} = X, se = D(d, G);
|
|
2667
2667
|
V.push({
|
|
2668
2668
|
...ce,
|
|
2669
|
-
actions: [
|
|
2669
|
+
actions: [N],
|
|
2670
2670
|
...se !== void 0 && { conditions: se }
|
|
2671
2671
|
});
|
|
2672
2672
|
}
|
|
2673
2673
|
else if (W >= 0) {
|
|
2674
|
-
const
|
|
2675
|
-
ne.length === 0 ? V.splice(W, 1) : (
|
|
2674
|
+
const X = { ...V[W] }, ne = X.actions.filter((Q) => Q !== N);
|
|
2675
|
+
ne.length === 0 ? V.splice(W, 1) : (X.actions = ne, V[W] = X);
|
|
2676
2676
|
}
|
|
2677
|
-
const
|
|
2678
|
-
|
|
2677
|
+
const Z = t.value.find((X) => X.subject === G);
|
|
2678
|
+
Z && Mn(V, G, Z.actions);
|
|
2679
2679
|
}
|
|
2680
2680
|
r("update:model-value", V);
|
|
2681
2681
|
}
|
|
2682
|
-
function x(
|
|
2683
|
-
const
|
|
2684
|
-
return l(
|
|
2682
|
+
function x(d) {
|
|
2683
|
+
const N = `permissionSet.actionLabels.${d}`, U = Po[d] ?? d.charAt(0).toUpperCase() + d.slice(1);
|
|
2684
|
+
return l(N, U);
|
|
2685
2685
|
}
|
|
2686
2686
|
return {
|
|
2687
2687
|
categoryGroups: u,
|
|
2688
2688
|
toggleCategory: i,
|
|
2689
|
-
isAllManageChecked:
|
|
2689
|
+
isAllManageChecked: E,
|
|
2690
2690
|
isAllManageIndeterminate: T,
|
|
2691
|
-
toggleAllManage:
|
|
2691
|
+
toggleAllManage: C,
|
|
2692
2692
|
isManageChecked: F,
|
|
2693
|
-
isManageIndeterminate:
|
|
2693
|
+
isManageIndeterminate: L,
|
|
2694
2694
|
toggleManage: f,
|
|
2695
2695
|
hasNonManageActions: h,
|
|
2696
2696
|
isActionChecked: S,
|
|
@@ -2699,12 +2699,12 @@ function jo(e, t, n, r) {
|
|
|
2699
2699
|
permissionDefinesAction: I,
|
|
2700
2700
|
toggleAction: p,
|
|
2701
2701
|
isAllActionChecked: R,
|
|
2702
|
-
isAllActionIndeterminate:
|
|
2703
|
-
toggleAllAction:
|
|
2702
|
+
isAllActionIndeterminate: A,
|
|
2703
|
+
toggleAllAction: B,
|
|
2704
2704
|
actionLabel: x
|
|
2705
2705
|
};
|
|
2706
2706
|
}
|
|
2707
|
-
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"],
|
|
2707
|
+
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"], Yo = { class: "flex justify-center" }, Zo = { class: "flex items-center min-w-0 gap-8" }, Xo = ["title", "onClick"], Bo = { class: "flex justify-center" }, Ho = /* @__PURE__ */ Le({
|
|
2708
2708
|
__name: "BasePermission",
|
|
2709
2709
|
props: {
|
|
2710
2710
|
modelValue: {
|
|
@@ -2726,18 +2726,18 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2726
2726
|
},
|
|
2727
2727
|
emits: ["update:model-value"],
|
|
2728
2728
|
setup(e, { emit: t }) {
|
|
2729
|
-
const n = e, r = t, { t: l } =
|
|
2730
|
-
categoryGroups:
|
|
2729
|
+
const n = e, r = t, { t: l } = He(), a = z(() => [...Gn, ...n.additionalPermissions]), {
|
|
2730
|
+
categoryGroups: m,
|
|
2731
2731
|
isAllManageChecked: u,
|
|
2732
2732
|
isAllManageIndeterminate: i,
|
|
2733
2733
|
toggleAllManage: g,
|
|
2734
|
-
isManageChecked:
|
|
2734
|
+
isManageChecked: E,
|
|
2735
2735
|
isManageIndeterminate: T,
|
|
2736
|
-
toggleManage:
|
|
2736
|
+
toggleManage: C,
|
|
2737
2737
|
isActionChecked: F,
|
|
2738
|
-
isRowFullyCoveredByCover:
|
|
2739
|
-
isActionCoveredByCover:
|
|
2740
|
-
permissionDefinesAction:
|
|
2738
|
+
isRowFullyCoveredByCover: w,
|
|
2739
|
+
isActionCoveredByCover: L,
|
|
2740
|
+
permissionDefinesAction: D,
|
|
2741
2741
|
toggleAction: f,
|
|
2742
2742
|
isAllActionChecked: h,
|
|
2743
2743
|
isAllActionIndeterminate: S,
|
|
@@ -2747,28 +2747,28 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2747
2747
|
en(n, "modelValue"),
|
|
2748
2748
|
a,
|
|
2749
2749
|
en(n, "excludedSubjects"),
|
|
2750
|
-
(R,
|
|
2750
|
+
(R, A) => r("update:model-value", A)
|
|
2751
2751
|
);
|
|
2752
2752
|
function I(R) {
|
|
2753
|
-
const
|
|
2754
|
-
return
|
|
2753
|
+
const A = R.selectedSubjects.length;
|
|
2754
|
+
return A === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: A });
|
|
2755
2755
|
}
|
|
2756
|
-
function p(R,
|
|
2757
|
-
return
|
|
2758
|
-
(
|
|
2756
|
+
function p(R, A) {
|
|
2757
|
+
return E(R, A) || w(R, A) ? !0 : R.actionColumns.some(
|
|
2758
|
+
(B) => D(R, A, B) && (F(R, A, B) || L(R, A, B))
|
|
2759
2759
|
);
|
|
2760
2760
|
}
|
|
2761
|
-
return (R,
|
|
2762
|
-
const
|
|
2763
|
-
return
|
|
2764
|
-
(
|
|
2761
|
+
return (R, A) => {
|
|
2762
|
+
const B = we("FmCheckbox");
|
|
2763
|
+
return $(), ie("div", Uo, [
|
|
2764
|
+
($(!0), ie(Re, null, ye(H(m), (x) => ($(), Ce(Bt, {
|
|
2765
2765
|
key: x.category,
|
|
2766
2766
|
subtitle: I(x)
|
|
2767
2767
|
}, {
|
|
2768
|
-
title:
|
|
2768
|
+
title: me(() => [
|
|
2769
2769
|
ae("p", Vo, Oe(x.label), 1)
|
|
2770
2770
|
]),
|
|
2771
|
-
default:
|
|
2771
|
+
default: me(() => [
|
|
2772
2772
|
ae("div", xo, [
|
|
2773
2773
|
ae("div", {
|
|
2774
2774
|
class: "grid items-center px-12 py-8",
|
|
@@ -2776,12 +2776,12 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2776
2776
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2777
2777
|
})
|
|
2778
2778
|
}, [
|
|
2779
|
-
|
|
2780
|
-
ae("div", Wo, Oe(
|
|
2781
|
-
(
|
|
2782
|
-
key: `header-${
|
|
2779
|
+
A[0] || (A[0] = ae("div", null, null, -1)),
|
|
2780
|
+
ae("div", Wo, Oe(H(l)("team.memberForm.permissions.columnManage")), 1),
|
|
2781
|
+
($(!0), ie(Re, null, ye(x.actionColumns, (d) => ($(), ie("div", {
|
|
2782
|
+
key: `header-${d}`,
|
|
2783
2783
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2784
|
-
}, Oe(
|
|
2784
|
+
}, Oe(H(b)(d)), 1))), 128))
|
|
2785
2785
|
], 4),
|
|
2786
2786
|
ae("div", {
|
|
2787
2787
|
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
@@ -2791,80 +2791,80 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2791
2791
|
}, [
|
|
2792
2792
|
ae("div", {
|
|
2793
2793
|
class: "cursor-pointer font-semibold",
|
|
2794
|
-
onClick: (
|
|
2795
|
-
}, Oe(
|
|
2796
|
-
ae("div",
|
|
2797
|
-
ue(
|
|
2798
|
-
"model-value":
|
|
2799
|
-
indeterminate:
|
|
2794
|
+
onClick: (d) => !e.disable && H(g)(x)
|
|
2795
|
+
}, Oe(H(l)("team.labels.all")), 9, Go),
|
|
2796
|
+
ae("div", Yo, [
|
|
2797
|
+
ue(B, {
|
|
2798
|
+
"model-value": H(u)(x),
|
|
2799
|
+
indeterminate: H(i)(x),
|
|
2800
2800
|
value: !0,
|
|
2801
2801
|
disabled: e.disable,
|
|
2802
2802
|
size: "sm",
|
|
2803
2803
|
dense: "",
|
|
2804
|
-
"onUpdate:modelValue": (
|
|
2804
|
+
"onUpdate:modelValue": (d) => H(g)(x)
|
|
2805
2805
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2806
2806
|
]),
|
|
2807
|
-
(
|
|
2808
|
-
key: `all-${
|
|
2807
|
+
($(!0), ie(Re, null, ye(x.actionColumns, (d) => ($(), ie("div", {
|
|
2808
|
+
key: `all-${d}`,
|
|
2809
2809
|
class: "flex justify-center"
|
|
2810
2810
|
}, [
|
|
2811
|
-
ue(
|
|
2812
|
-
"model-value":
|
|
2813
|
-
indeterminate:
|
|
2814
|
-
value:
|
|
2811
|
+
ue(B, {
|
|
2812
|
+
"model-value": H(h)(x, d),
|
|
2813
|
+
indeterminate: H(S)(x, d),
|
|
2814
|
+
value: d,
|
|
2815
2815
|
disabled: e.disable,
|
|
2816
2816
|
size: "sm",
|
|
2817
2817
|
dense: "",
|
|
2818
|
-
"onUpdate:modelValue": (
|
|
2818
|
+
"onUpdate:modelValue": (N) => H(c)(x, d, N)
|
|
2819
2819
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2820
2820
|
]))), 128))
|
|
2821
2821
|
], 4),
|
|
2822
|
-
|
|
2823
|
-
(
|
|
2824
|
-
key:
|
|
2822
|
+
A[1] || (A[1] = ae("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2823
|
+
($(!0), ie(Re, null, ye(x.options, (d) => ($(), ie("div", {
|
|
2824
|
+
key: d.optionKey,
|
|
2825
2825
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2826
2826
|
style: nt({
|
|
2827
2827
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2828
2828
|
})
|
|
2829
2829
|
}, [
|
|
2830
|
-
ae("div",
|
|
2830
|
+
ae("div", Zo, [
|
|
2831
2831
|
ae("span", {
|
|
2832
2832
|
class: "block truncate cursor-pointer",
|
|
2833
|
-
title:
|
|
2834
|
-
onClick: (
|
|
2835
|
-
}, Oe(
|
|
2836
|
-
Se(R.$slots, `checkbox-${
|
|
2837
|
-
option:
|
|
2838
|
-
isEffectiveSelected: p(x,
|
|
2839
|
-
isCoveredByCover:
|
|
2833
|
+
title: d.label,
|
|
2834
|
+
onClick: (N) => !e.disable && !H(w)(x, d.value) && H(C)(x, d.value, !H(E)(x, d.value))
|
|
2835
|
+
}, Oe(d.label), 9, Xo),
|
|
2836
|
+
Se(R.$slots, `checkbox-${d.value}-append`, {
|
|
2837
|
+
option: d,
|
|
2838
|
+
isEffectiveSelected: p(x, d.value),
|
|
2839
|
+
isCoveredByCover: H(w)(x, d.value) || x.actionColumns.some((N) => H(L)(x, d.value, N))
|
|
2840
2840
|
}),
|
|
2841
|
-
Se(R.$slots, `checkbox-${
|
|
2842
|
-
option:
|
|
2843
|
-
isEffectiveSelected: p(x,
|
|
2844
|
-
isCoveredByCover:
|
|
2841
|
+
Se(R.$slots, `checkbox-${d.value}-icon`, {
|
|
2842
|
+
option: d,
|
|
2843
|
+
isEffectiveSelected: p(x, d.value),
|
|
2844
|
+
isCoveredByCover: H(w)(x, d.value) || x.actionColumns.some((N) => H(L)(x, d.value, N))
|
|
2845
2845
|
})
|
|
2846
2846
|
]),
|
|
2847
|
-
ae("div",
|
|
2848
|
-
ue(
|
|
2849
|
-
"model-value":
|
|
2850
|
-
value:
|
|
2851
|
-
disabled: e.disable ||
|
|
2852
|
-
indeterminate:
|
|
2847
|
+
ae("div", Bo, [
|
|
2848
|
+
ue(B, {
|
|
2849
|
+
"model-value": H(E)(x, d.value) || H(w)(x, d.value),
|
|
2850
|
+
value: d.value,
|
|
2851
|
+
disabled: e.disable || H(w)(x, d.value),
|
|
2852
|
+
indeterminate: H(T)(x, d.value),
|
|
2853
2853
|
size: "sm",
|
|
2854
|
-
"onUpdate:modelValue": (
|
|
2854
|
+
"onUpdate:modelValue": (N) => H(C)(x, d.value, N)
|
|
2855
2855
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2856
2856
|
]),
|
|
2857
|
-
(
|
|
2858
|
-
key: `${
|
|
2857
|
+
($(!0), ie(Re, null, ye(x.actionColumns, (N) => ($(), ie("div", {
|
|
2858
|
+
key: `${d.optionKey}-${N}`,
|
|
2859
2859
|
class: "flex justify-center"
|
|
2860
2860
|
}, [
|
|
2861
|
-
|
|
2861
|
+
H(D)(x, d.value, N) ? ($(), Ce(B, {
|
|
2862
2862
|
key: 0,
|
|
2863
|
-
"model-value":
|
|
2864
|
-
value:
|
|
2865
|
-
disabled: e.disable ||
|
|
2863
|
+
"model-value": H(F)(x, d.value, N) || H(L)(x, d.value, N),
|
|
2864
|
+
value: N,
|
|
2865
|
+
disabled: e.disable || H(L)(x, d.value, N),
|
|
2866
2866
|
size: "sm",
|
|
2867
|
-
"onUpdate:modelValue": (U) =>
|
|
2867
|
+
"onUpdate:modelValue": (U) => H(f)(d.value, N, U)
|
|
2868
2868
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Me("", !0)
|
|
2869
2869
|
]))), 128))
|
|
2870
2870
|
], 4))), 128))
|
|
@@ -2875,13 +2875,13 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2875
2875
|
]);
|
|
2876
2876
|
};
|
|
2877
2877
|
}
|
|
2878
|
-
}),
|
|
2878
|
+
}), Jo = { class: "space-y-16" }, $o = {
|
|
2879
2879
|
key: 0,
|
|
2880
2880
|
class: "flex fm-typo-en-title-sm-600"
|
|
2881
2881
|
}, Ko = {
|
|
2882
2882
|
key: 0,
|
|
2883
2883
|
class: "q-mr-xs text-red col"
|
|
2884
|
-
}, zo = { class: "form-input" }, Qo = /* @__PURE__ */
|
|
2884
|
+
}, zo = { class: "form-input" }, Qo = /* @__PURE__ */ Le({
|
|
2885
2885
|
__name: "AppForm",
|
|
2886
2886
|
props: {
|
|
2887
2887
|
title: {
|
|
@@ -2899,11 +2899,11 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2899
2899
|
},
|
|
2900
2900
|
setup(e) {
|
|
2901
2901
|
const t = e;
|
|
2902
|
-
return (n, r) => (
|
|
2902
|
+
return (n, r) => ($(), ie("div", Jo, [
|
|
2903
2903
|
Se(n.$slots, "top", {}, () => [
|
|
2904
|
-
t.title ? (
|
|
2904
|
+
t.title ? ($(), ie("div", $o, [
|
|
2905
2905
|
ae("div", null, [
|
|
2906
|
-
t.required ? (
|
|
2906
|
+
t.required ? ($(), ie("span", Ko, "*")) : Me("", !0),
|
|
2907
2907
|
_r(Oe(t.title), 1)
|
|
2908
2908
|
]),
|
|
2909
2909
|
Se(n.$slots, "title-right")
|
|
@@ -2917,7 +2917,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2917
2917
|
}), qo = { class: "col flex items-center" }, ea = {
|
|
2918
2918
|
key: 1,
|
|
2919
2919
|
class: "q-pa-sm form-error-message text-error"
|
|
2920
|
-
}, ir = /* @__PURE__ */
|
|
2920
|
+
}, ir = /* @__PURE__ */ Le({
|
|
2921
2921
|
__name: "CheckboxInput",
|
|
2922
2922
|
props: {
|
|
2923
2923
|
options: {
|
|
@@ -2975,38 +2975,38 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2975
2975
|
},
|
|
2976
2976
|
emits: ["update:model-value"],
|
|
2977
2977
|
setup(e, { emit: t }) {
|
|
2978
|
-
const n = e, r = t, { t: l } =
|
|
2979
|
-
() => n.modelValue.filter((
|
|
2978
|
+
const n = e, r = t, { t: l } = He(), a = rt(!1), m = pr(), 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(
|
|
2979
|
+
() => n.modelValue.filter((L) => n.options.some((D) => D.value === L))
|
|
2980
2980
|
), T = z(
|
|
2981
2981
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2982
|
-
),
|
|
2982
|
+
), C = z(() => n.options.length > 0 && n.options.length === E.value.length);
|
|
2983
2983
|
function F() {
|
|
2984
|
-
const
|
|
2985
|
-
if (
|
|
2986
|
-
r("update:model-value",
|
|
2984
|
+
const L = n.modelValue.filter((D) => !E.value.includes(D));
|
|
2985
|
+
if (C.value === !0)
|
|
2986
|
+
r("update:model-value", L);
|
|
2987
2987
|
else {
|
|
2988
|
-
const
|
|
2989
|
-
r("update:model-value", [...
|
|
2988
|
+
const D = n.includeDisabledOptionsWhenSelectAll ? n.options.map((f) => f.value) : n.options.filter((f) => !f.disabled).map((f) => f.value);
|
|
2989
|
+
r("update:model-value", [...L, ...D]);
|
|
2990
2990
|
}
|
|
2991
2991
|
}
|
|
2992
|
-
function
|
|
2992
|
+
function w(L, D) {
|
|
2993
2993
|
let f = It(n.modelValue);
|
|
2994
|
-
|
|
2994
|
+
D ? f.every((h) => h !== L) && f.push(L) : f = f.filter((h) => h !== L), r("update:model-value", f);
|
|
2995
2995
|
}
|
|
2996
|
-
return (
|
|
2997
|
-
const f =
|
|
2998
|
-
return
|
|
2996
|
+
return (L, D) => {
|
|
2997
|
+
const f = we("FmCheckbox");
|
|
2998
|
+
return $(), Ce(Qo, {
|
|
2999
2999
|
id: i,
|
|
3000
3000
|
title: e.title,
|
|
3001
3001
|
required: !1
|
|
3002
3002
|
}, {
|
|
3003
|
-
top:
|
|
3004
|
-
Se(
|
|
3003
|
+
top: me(() => [
|
|
3004
|
+
Se(L.$slots, "top")
|
|
3005
3005
|
]),
|
|
3006
|
-
default:
|
|
3007
|
-
n.showAllToggle ? (
|
|
3006
|
+
default: me(() => [
|
|
3007
|
+
n.showAllToggle ? ($(), Ce(f, {
|
|
3008
3008
|
key: 0,
|
|
3009
|
-
"model-value":
|
|
3009
|
+
"model-value": C.value,
|
|
3010
3010
|
disabled: e.disable,
|
|
3011
3011
|
label: T.value,
|
|
3012
3012
|
style: nt(`margin-bottom: ${n.gutter}px`),
|
|
@@ -3015,7 +3015,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3015
3015
|
value: T.value,
|
|
3016
3016
|
"onUpdate:modelValue": F
|
|
3017
3017
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Me("", !0),
|
|
3018
|
-
(
|
|
3018
|
+
($(!0), ie(Re, null, ye(e.options, (h, S) => ($(), ie("div", {
|
|
3019
3019
|
key: h.value,
|
|
3020
3020
|
style: nt(`margin-bottom: ${S < e.options.length - 1 ? n.gutter : 0}px`),
|
|
3021
3021
|
class: qe(S < e.options.length - 1 ? "q-mb-sm" : "")
|
|
@@ -3030,43 +3030,43 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3030
3030
|
size: "sm",
|
|
3031
3031
|
label: h.label,
|
|
3032
3032
|
value: h.label,
|
|
3033
|
-
"onUpdate:modelValue": (c) =>
|
|
3033
|
+
"onUpdate:modelValue": (c) => w(h.value, c)
|
|
3034
3034
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
3035
|
-
Se(
|
|
3035
|
+
Se(L.$slots, `checkbox-${h.key || h.value}-append`, {
|
|
3036
3036
|
option: h,
|
|
3037
3037
|
selected: e.modelValue.includes(h.value)
|
|
3038
3038
|
})
|
|
3039
3039
|
]),
|
|
3040
|
-
|
|
3040
|
+
H(m)[`checkbox-${h.key || h.value}-end`] && (e.modelValue.includes(h.value) || e.falsyShowSlot) ? ($(), ie("div", {
|
|
3041
3041
|
key: 0,
|
|
3042
3042
|
class: qe([{ "q-checkbox disabled": e.disable || h.disabled }, "col"])
|
|
3043
3043
|
}, [
|
|
3044
|
-
Se(
|
|
3044
|
+
Se(L.$slots, `checkbox-${h.key || h.value}-end`, {
|
|
3045
3045
|
option: h,
|
|
3046
3046
|
value: e.modelValue.includes(h.value),
|
|
3047
3047
|
disable: e.disable || h.disabled
|
|
3048
3048
|
})
|
|
3049
3049
|
], 2)) : Me("", !0)
|
|
3050
3050
|
], 2),
|
|
3051
|
-
|
|
3051
|
+
H(m)[`checkbox-${h.key || h.value}-bottom`] && (e.modelValue.includes(h.value) || e.falsyShowSlot) ? ($(), ie("div", {
|
|
3052
3052
|
key: 0,
|
|
3053
3053
|
class: qe(["q-mt-sm", { "q-checkbox disabled": e.disable || h.disabled }]),
|
|
3054
3054
|
style: nt(`margin-left: ${e.bottomSlotIndent}`)
|
|
3055
3055
|
}, [
|
|
3056
|
-
Se(
|
|
3056
|
+
Se(L.$slots, `checkbox-${h.key || h.value}-bottom`, {
|
|
3057
3057
|
option: h,
|
|
3058
3058
|
disable: e.disable || h.disabled,
|
|
3059
3059
|
value: e.modelValue.includes(h.value)
|
|
3060
3060
|
})
|
|
3061
3061
|
], 6)) : Me("", !0)
|
|
3062
3062
|
], 6))), 128)),
|
|
3063
|
-
a.value && g.value ? (
|
|
3063
|
+
a.value && g.value ? ($(), ie("div", ea, Oe(u.value), 1)) : Me("", !0)
|
|
3064
3064
|
]),
|
|
3065
3065
|
_: 3
|
|
3066
3066
|
}, 8, ["title"]);
|
|
3067
3067
|
};
|
|
3068
3068
|
}
|
|
3069
|
-
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture",
|
|
3069
|
+
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture", Dn = /* @__PURE__ */ Le({
|
|
3070
3070
|
__name: "ConditionPermission",
|
|
3071
3071
|
props: {
|
|
3072
3072
|
modelValue: {
|
|
@@ -3088,7 +3088,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3088
3088
|
},
|
|
3089
3089
|
emits: ["update:model-value"],
|
|
3090
3090
|
setup(e, { emit: t }) {
|
|
3091
|
-
const n = e, r = t, { t: l } =
|
|
3091
|
+
const n = e, r = t, { t: l } = He(), a = z(() => [
|
|
3092
3092
|
{
|
|
3093
3093
|
label: l("team.memberForm.permissions.includedFuture", { context: n.context }),
|
|
3094
3094
|
value: ht,
|
|
@@ -3096,33 +3096,33 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3096
3096
|
disabled: !!n.modelValue && n.options.length > n.modelValue.length
|
|
3097
3097
|
},
|
|
3098
3098
|
...n.options.filter(
|
|
3099
|
-
(
|
|
3099
|
+
(E) => E.label.toLocaleLowerCase().includes(g.value.toLocaleLowerCase())
|
|
3100
3100
|
)
|
|
3101
|
-
]),
|
|
3102
|
-
const
|
|
3103
|
-
return
|
|
3101
|
+
]), m = z(() => n.modelValue ? n.modelValue : [ht, ...n.options.map((E) => E.value)]), u = z(() => {
|
|
3102
|
+
const E = m.value.filter((T) => T !== ht).length;
|
|
3103
|
+
return E === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: E });
|
|
3104
3104
|
});
|
|
3105
|
-
function i(
|
|
3106
|
-
const T =
|
|
3107
|
-
r("update:model-value", T ? null :
|
|
3105
|
+
function i(E) {
|
|
3106
|
+
const T = E.length === a.value.length;
|
|
3107
|
+
r("update:model-value", T ? null : E.filter((C) => C !== ht));
|
|
3108
3108
|
}
|
|
3109
3109
|
const g = rt("");
|
|
3110
|
-
return (
|
|
3111
|
-
const
|
|
3112
|
-
return
|
|
3113
|
-
title:
|
|
3114
|
-
ae("p", ta, Oe(
|
|
3110
|
+
return (E, T) => {
|
|
3111
|
+
const C = we("fm-search");
|
|
3112
|
+
return $(), Ce(Bt, { subtitle: u.value }, {
|
|
3113
|
+
title: me(() => [
|
|
3114
|
+
ae("p", ta, Oe(H(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3115
3115
|
]),
|
|
3116
|
-
default:
|
|
3117
|
-
e.options.length > 1 ? (
|
|
3116
|
+
default: me(() => [
|
|
3117
|
+
e.options.length > 1 ? ($(), Ce(C, {
|
|
3118
3118
|
key: 0,
|
|
3119
3119
|
modelValue: g.value,
|
|
3120
3120
|
"onUpdate:modelValue": T[0] || (T[0] = (F) => g.value = F),
|
|
3121
3121
|
class: "mt-16",
|
|
3122
|
-
placeholder:
|
|
3122
|
+
placeholder: H(l)("team.memberForm.permissions.search", { context: e.context })
|
|
3123
3123
|
}, null, 8, ["modelValue", "placeholder"])) : Me("", !0),
|
|
3124
3124
|
ue(ir, {
|
|
3125
|
-
"model-value":
|
|
3125
|
+
"model-value": m.value,
|
|
3126
3126
|
options: a.value,
|
|
3127
3127
|
"show-intermediate": !1,
|
|
3128
3128
|
"show-all-toggle": !0,
|
|
@@ -3132,10 +3132,10 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3132
3132
|
class: "mt-16",
|
|
3133
3133
|
"onUpdate:modelValue": i
|
|
3134
3134
|
}, et({ _: 2 }, [
|
|
3135
|
-
|
|
3135
|
+
ye(a.value, (F) => ({
|
|
3136
3136
|
name: `checkbox-${F.value}-append`,
|
|
3137
|
-
fn:
|
|
3138
|
-
Se(
|
|
3137
|
+
fn: me(({ option: w }) => [
|
|
3138
|
+
Se(E.$slots, `checkbox-${F.value}-append`, { option: w })
|
|
3139
3139
|
])
|
|
3140
3140
|
}))
|
|
3141
3141
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3144,7 +3144,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3144
3144
|
}, 8, ["subtitle"]);
|
|
3145
3145
|
};
|
|
3146
3146
|
}
|
|
3147
|
-
}), na = { class: "fm-typo-en-title-sm-600" }, bt = "includedNewRole", ra = /* @__PURE__ */
|
|
3147
|
+
}), na = { class: "fm-typo-en-title-sm-600" }, bt = "includedNewRole", ra = /* @__PURE__ */ Le({
|
|
3148
3148
|
__name: "PosRolePermission",
|
|
3149
3149
|
props: {
|
|
3150
3150
|
modelValue: {
|
|
@@ -3166,7 +3166,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3166
3166
|
},
|
|
3167
3167
|
emits: ["update:model-value"],
|
|
3168
3168
|
setup(e, { emit: t }) {
|
|
3169
|
-
const n = e, r = t, { t: l } =
|
|
3169
|
+
const n = e, r = t, { t: l } = He(), a = z(() => {
|
|
3170
3170
|
const g = n.restaurantIds;
|
|
3171
3171
|
return [
|
|
3172
3172
|
{
|
|
@@ -3174,27 +3174,27 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3174
3174
|
value: bt,
|
|
3175
3175
|
disabled: !!n.modelValue && n.roles.length > n.modelValue.length
|
|
3176
3176
|
},
|
|
3177
|
-
...n.roles.map((
|
|
3178
|
-
label:
|
|
3179
|
-
value:
|
|
3180
|
-
disabled: !!g &&
|
|
3177
|
+
...n.roles.map((E) => ({
|
|
3178
|
+
label: E.name,
|
|
3179
|
+
value: E._id,
|
|
3180
|
+
disabled: !!g && E.restaurants.every(({ id: T }) => !g.includes(T))
|
|
3181
3181
|
}))
|
|
3182
3182
|
];
|
|
3183
|
-
}),
|
|
3184
|
-
const g =
|
|
3183
|
+
}), m = z(() => n.modelValue ? n.modelValue : [bt, ...n.roles.map((g) => g._id)]), u = z(() => {
|
|
3184
|
+
const g = m.value.filter((E) => E !== bt).length;
|
|
3185
3185
|
return g === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: g });
|
|
3186
3186
|
});
|
|
3187
3187
|
function i(g) {
|
|
3188
|
-
const
|
|
3189
|
-
r("update:model-value",
|
|
3188
|
+
const E = g.length === a.value.length;
|
|
3189
|
+
r("update:model-value", E ? null : g.filter((T) => T !== bt));
|
|
3190
3190
|
}
|
|
3191
|
-
return (g,
|
|
3192
|
-
title:
|
|
3193
|
-
ae("p", na, Oe(
|
|
3191
|
+
return (g, E) => ($(), Ce(Bt, { subtitle: u.value }, {
|
|
3192
|
+
title: me(() => [
|
|
3193
|
+
ae("p", na, Oe(H(l)("team.memberForm.permissions.roles")), 1)
|
|
3194
3194
|
]),
|
|
3195
|
-
default:
|
|
3195
|
+
default: me(() => [
|
|
3196
3196
|
ue(ir, {
|
|
3197
|
-
"model-value":
|
|
3197
|
+
"model-value": m.value,
|
|
3198
3198
|
options: a.value,
|
|
3199
3199
|
"show-intermediate": !1,
|
|
3200
3200
|
"show-all-toggle": !1,
|
|
@@ -3203,10 +3203,10 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3203
3203
|
class: "mt-16",
|
|
3204
3204
|
"onUpdate:modelValue": i
|
|
3205
3205
|
}, et({ _: 2 }, [
|
|
3206
|
-
|
|
3206
|
+
ye(a.value, (T) => ({
|
|
3207
3207
|
name: `checkbox-${T.value}-append`,
|
|
3208
|
-
fn:
|
|
3209
|
-
Se(g.$slots, `checkbox-${T.value}-append`, { option:
|
|
3208
|
+
fn: me(({ option: C }) => [
|
|
3209
|
+
Se(g.$slots, `checkbox-${T.value}-append`, { option: C })
|
|
3210
3210
|
])
|
|
3211
3211
|
}))
|
|
3212
3212
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3224,7 +3224,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3224
3224
|
}, aa = {
|
|
3225
3225
|
key: 0,
|
|
3226
3226
|
class: "ml-32"
|
|
3227
|
-
}, Fn = /* @__PURE__ */
|
|
3227
|
+
}, Fn = /* @__PURE__ */ Le({
|
|
3228
3228
|
__name: "PortalConditionForm",
|
|
3229
3229
|
props: {
|
|
3230
3230
|
entry: {},
|
|
@@ -3241,10 +3241,10 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3241
3241
|
},
|
|
3242
3242
|
emits: ["update-inherit-mode", "update-form", "apply"],
|
|
3243
3243
|
setup(e, { emit: t }) {
|
|
3244
|
-
const n = t, { t: r } =
|
|
3244
|
+
const n = t, { t: r } = He();
|
|
3245
3245
|
return (l, a) => {
|
|
3246
|
-
const
|
|
3247
|
-
return
|
|
3246
|
+
const m = we("FmRadio"), u = we("FmRadioGroup");
|
|
3247
|
+
return $(), Ce(Nr, {
|
|
3248
3248
|
title: e.title,
|
|
3249
3249
|
builders: e.builders,
|
|
3250
3250
|
"form-value-for": e.formValueFor,
|
|
@@ -3254,34 +3254,34 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3254
3254
|
onUpdateForm: a[0] || (a[0] = (i) => n("update-form", i)),
|
|
3255
3255
|
onApply: a[1] || (a[1] = (i) => n("apply"))
|
|
3256
3256
|
}, {
|
|
3257
|
-
section:
|
|
3258
|
-
e.coverOverride.shouldShowInheritToggle(e.entry, i) ? (
|
|
3257
|
+
section: me(({ builder: i }) => [
|
|
3258
|
+
e.coverOverride.shouldShowInheritToggle(e.entry, i) ? ($(), ie("div", sa, [
|
|
3259
3259
|
ue(u, {
|
|
3260
3260
|
"model-value": e.inheritModeFor(i),
|
|
3261
3261
|
disabled: e.disable,
|
|
3262
3262
|
"onUpdate:modelValue": (g) => n("update-inherit-mode", { builder: i, mode: g })
|
|
3263
3263
|
}, {
|
|
3264
|
-
default:
|
|
3264
|
+
default: me(() => [
|
|
3265
3265
|
ae("div", null, [
|
|
3266
|
-
ue(
|
|
3266
|
+
ue(m, {
|
|
3267
3267
|
value: "inherit",
|
|
3268
|
-
label:
|
|
3268
|
+
label: H(r)("team.memberForm.permissions.conditionCover.inherit", {
|
|
3269
3269
|
cover: e.coverOverride.coverLabel(e.subject)
|
|
3270
3270
|
})
|
|
3271
3271
|
}, null, 8, ["label"]),
|
|
3272
|
-
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? (
|
|
3272
|
+
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? ($(), ie("p", oa, " (" + Oe(H(r)(
|
|
3273
3273
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).labelKey,
|
|
3274
3274
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).params ?? {}
|
|
3275
3275
|
)) + ") ", 1)) : Me("", !0)
|
|
3276
3276
|
]),
|
|
3277
|
-
ue(
|
|
3277
|
+
ue(m, {
|
|
3278
3278
|
value: "custom",
|
|
3279
|
-
label:
|
|
3279
|
+
label: H(r)("team.memberForm.permissions.conditionCover.custom")
|
|
3280
3280
|
}, null, 8, ["label"])
|
|
3281
3281
|
]),
|
|
3282
3282
|
_: 2
|
|
3283
3283
|
}, 1032, ["model-value", "disabled", "onUpdate:modelValue"]),
|
|
3284
|
-
e.inheritModeFor(i) === "custom" ? (
|
|
3284
|
+
e.inheritModeFor(i) === "custom" ? ($(), ie("div", aa, [
|
|
3285
3285
|
ue(nn, {
|
|
3286
3286
|
builder: i,
|
|
3287
3287
|
"model-value": e.formValueFor(i),
|
|
@@ -3289,7 +3289,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3289
3289
|
"onUpdate:modelValue": (g) => n("update-form", { builder: i, form: g })
|
|
3290
3290
|
}, null, 8, ["builder", "model-value", "disable", "onUpdate:modelValue"])
|
|
3291
3291
|
])) : Me("", !0)
|
|
3292
|
-
])) : (
|
|
3292
|
+
])) : ($(), Ce(nn, {
|
|
3293
3293
|
key: 1,
|
|
3294
3294
|
builder: i,
|
|
3295
3295
|
"model-value": e.formValueFor(i),
|
|
@@ -3303,11 +3303,11 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3303
3303
|
}
|
|
3304
3304
|
}), la = {
|
|
3305
3305
|
async readWarehouses() {
|
|
3306
|
-
return
|
|
3306
|
+
return kr(await Rr().get("/warehouses"));
|
|
3307
3307
|
}
|
|
3308
3308
|
};
|
|
3309
3309
|
function Pn(e, t) {
|
|
3310
|
-
return
|
|
3310
|
+
return Yn(e, Zn).some(
|
|
3311
3311
|
(n) => n.subject === t && !n.inverted && n.actions.includes("manage")
|
|
3312
3312
|
);
|
|
3313
3313
|
}
|
|
@@ -3315,9 +3315,9 @@ function jn(e, t) {
|
|
|
3315
3315
|
return e.some((n) => n.subject === t && n.inverted) ? e : [...e, { subject: t, actions: ["manage"], inverted: !0 }];
|
|
3316
3316
|
}
|
|
3317
3317
|
function Un(e, t, n) {
|
|
3318
|
-
const { category: r, showByFeatureFlag: l, isCategoryCover: a, ...
|
|
3318
|
+
const { category: r, showByFeatureFlag: l, isCategoryCover: a, ...m } = e;
|
|
3319
3319
|
return {
|
|
3320
|
-
...
|
|
3320
|
+
...m,
|
|
3321
3321
|
actions: t,
|
|
3322
3322
|
...n !== void 0 && { conditions: n }
|
|
3323
3323
|
};
|
|
@@ -3327,40 +3327,40 @@ function ia(e, t, n, r) {
|
|
|
3327
3327
|
e.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3328
3328
|
), a = new Set(
|
|
3329
3329
|
t.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3330
|
-
),
|
|
3330
|
+
), m = new Set(
|
|
3331
3331
|
n.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3332
3332
|
);
|
|
3333
3333
|
let u = [...n];
|
|
3334
3334
|
for (const i of l)
|
|
3335
|
-
a.has(i) || (
|
|
3335
|
+
a.has(i) || (m.has(i) && (u = u.filter((E) => E.subject !== i)), (!m.has(i) || Pn(u, i)) && (u = jn(u, i)));
|
|
3336
3336
|
for (const i of a)
|
|
3337
3337
|
if (!l.has(i)) {
|
|
3338
|
-
const g = u.some((
|
|
3339
|
-
if (u = u.filter((
|
|
3340
|
-
const
|
|
3341
|
-
(
|
|
3338
|
+
const g = u.some((E) => E.subject === i && E.inverted);
|
|
3339
|
+
if (u = u.filter((E) => !(E.subject === i && E.inverted)), !g && !m.has(i)) {
|
|
3340
|
+
const E = t.find(
|
|
3341
|
+
(C) => C.subject === i && !C.inverted
|
|
3342
3342
|
), T = r(i);
|
|
3343
|
-
T &&
|
|
3343
|
+
T && E && u.push(Un(T, E.actions, E.conditions));
|
|
3344
3344
|
}
|
|
3345
3345
|
}
|
|
3346
3346
|
for (const i of a) {
|
|
3347
3347
|
if (!l.has(i)) continue;
|
|
3348
|
-
const g = e.find((
|
|
3349
|
-
if (!g || !
|
|
3350
|
-
const T = new Set(g.actions),
|
|
3351
|
-
if (T.size ===
|
|
3348
|
+
const g = e.find((w) => w.subject === i && !w.inverted), E = t.find((w) => w.subject === i && !w.inverted);
|
|
3349
|
+
if (!g || !E) continue;
|
|
3350
|
+
const T = new Set(g.actions), C = new Set(E.actions);
|
|
3351
|
+
if (T.size === C.size && [...T].every((w) => C.has(w)))
|
|
3352
3352
|
continue;
|
|
3353
|
-
const F = u.findIndex((
|
|
3353
|
+
const F = u.findIndex((w) => w.subject === i && !w.inverted);
|
|
3354
3354
|
if (F >= 0)
|
|
3355
3355
|
u[F] = {
|
|
3356
3356
|
...u[F],
|
|
3357
|
-
actions: Array.from(
|
|
3357
|
+
actions: Array.from(C)
|
|
3358
3358
|
};
|
|
3359
3359
|
else {
|
|
3360
|
-
const
|
|
3361
|
-
|
|
3360
|
+
const w = r(i);
|
|
3361
|
+
w && u.push(Un(w, Array.from(C)));
|
|
3362
3362
|
}
|
|
3363
|
-
T.has("manage") && !
|
|
3363
|
+
T.has("manage") && !C.has("manage") && Pn(u, i) && (u = jn(u, i)), !T.has("manage") && C.has("manage") && (u = u.filter((w) => !(w.subject === i && w.inverted)));
|
|
3364
3364
|
}
|
|
3365
3365
|
return u;
|
|
3366
3366
|
}
|
|
@@ -3383,7 +3383,7 @@ function ua(e) {
|
|
|
3383
3383
|
const t = (e || "").toUpperCase();
|
|
3384
3384
|
return ca[t] ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
3385
3385
|
}
|
|
3386
|
-
function
|
|
3386
|
+
function ma(e, t) {
|
|
3387
3387
|
return e != null && e.timezone ? e.timezone : e != null && e.timeZone ? e.timeZone : ua((e == null ? void 0 : e.country) ?? t);
|
|
3388
3388
|
}
|
|
3389
3389
|
function gt(e, t) {
|
|
@@ -3396,38 +3396,38 @@ function We(e) {
|
|
|
3396
3396
|
return;
|
|
3397
3397
|
}
|
|
3398
3398
|
}
|
|
3399
|
-
function
|
|
3399
|
+
function da(e, t) {
|
|
3400
3400
|
return e.find((n) => !n.inverted && n.subject === t);
|
|
3401
3401
|
}
|
|
3402
3402
|
function Mt(e, t) {
|
|
3403
3403
|
const n = new Set(e.actions);
|
|
3404
3404
|
return n.has(he.Action.manage) ? !0 : t.actions.every((r) => n.has(r));
|
|
3405
3405
|
}
|
|
3406
|
-
function
|
|
3406
|
+
function Zt(e, t) {
|
|
3407
3407
|
const n = We(e);
|
|
3408
|
-
return
|
|
3408
|
+
return Dt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3409
3409
|
}
|
|
3410
3410
|
function Vn(e, t, n) {
|
|
3411
3411
|
return {
|
|
3412
|
-
...
|
|
3412
|
+
...Zt(e, n),
|
|
3413
3413
|
...tt(We(t), n)
|
|
3414
3414
|
};
|
|
3415
3415
|
}
|
|
3416
3416
|
function fa(e, t, n) {
|
|
3417
3417
|
const r = rt(/* @__PURE__ */ new Set());
|
|
3418
3418
|
function l(c) {
|
|
3419
|
-
return
|
|
3419
|
+
return Dr(c, t.value);
|
|
3420
3420
|
}
|
|
3421
3421
|
function a(c) {
|
|
3422
3422
|
return t.value.find((b) => b.subject === c);
|
|
3423
3423
|
}
|
|
3424
|
-
function
|
|
3424
|
+
function m(c) {
|
|
3425
3425
|
var I;
|
|
3426
3426
|
const b = l(c);
|
|
3427
3427
|
return b ? (I = a(b)) == null ? void 0 : I.label : void 0;
|
|
3428
3428
|
}
|
|
3429
3429
|
function u(c) {
|
|
3430
|
-
return
|
|
3430
|
+
return da(e.value, c);
|
|
3431
3431
|
}
|
|
3432
3432
|
function i(c, b) {
|
|
3433
3433
|
return tt(We(c), b);
|
|
@@ -3440,13 +3440,13 @@ function fa(e, t, n) {
|
|
|
3440
3440
|
const p = u(I);
|
|
3441
3441
|
return p ? Object.keys(i(p, b)).length > 0 : !1;
|
|
3442
3442
|
}
|
|
3443
|
-
function
|
|
3443
|
+
function E(c, b) {
|
|
3444
3444
|
if (!g(c, b) || r.value.has(gt(c.subject, b))) return "custom";
|
|
3445
3445
|
if (c.index === null) return "inherit";
|
|
3446
3446
|
const I = e.value[c.index], p = l(c.subject), R = p ? u(p) : void 0;
|
|
3447
3447
|
if (I && R) {
|
|
3448
|
-
const
|
|
3449
|
-
if (JSON.stringify(
|
|
3448
|
+
const A = tt(We(I), b), B = i(R, b);
|
|
3449
|
+
if (JSON.stringify(A) === JSON.stringify(B)) return "inherit";
|
|
3450
3450
|
}
|
|
3451
3451
|
return "custom";
|
|
3452
3452
|
}
|
|
@@ -3456,26 +3456,26 @@ function fa(e, t, n) {
|
|
|
3456
3456
|
if (!p) return;
|
|
3457
3457
|
const R = u(p);
|
|
3458
3458
|
if (!R) return;
|
|
3459
|
-
const
|
|
3460
|
-
return b.summarizeForm(
|
|
3459
|
+
const A = b.fromCondition(i(R, b));
|
|
3460
|
+
return b.summarizeForm(A, { timeZone: I });
|
|
3461
3461
|
}
|
|
3462
|
-
function
|
|
3462
|
+
function C(c, b) {
|
|
3463
3463
|
if (c.index === null) return;
|
|
3464
|
-
const I = [...e.value], p = { ...I[c.index] }, R =
|
|
3465
|
-
if (
|
|
3464
|
+
const I = [...e.value], p = { ...I[c.index] }, R = Zt(p, b), A = Object.keys(R).length === 0, B = l(c.subject), x = B ? u(B) : void 0, d = x ? Mt(x, p) : !1;
|
|
3465
|
+
if (A && d)
|
|
3466
3466
|
I.splice(c.index, 1);
|
|
3467
3467
|
else if (x) {
|
|
3468
|
-
const
|
|
3469
|
-
Object.keys(
|
|
3468
|
+
const N = Vn(p, x, b);
|
|
3469
|
+
Object.keys(N).length === 0 ? delete p.conditions : p.conditions = JSON.stringify(N), I[c.index] = p;
|
|
3470
3470
|
} else
|
|
3471
|
-
|
|
3471
|
+
A ? delete p.conditions : p.conditions = JSON.stringify(R), I[c.index] = p;
|
|
3472
3472
|
n(I);
|
|
3473
3473
|
}
|
|
3474
3474
|
function F(c, b, I) {
|
|
3475
3475
|
const p = gt(c.subject, b);
|
|
3476
3476
|
if (I === "inherit") {
|
|
3477
|
-
const
|
|
3478
|
-
|
|
3477
|
+
const A = new Set(r.value);
|
|
3478
|
+
A.delete(p), r.value = A, C(c, b);
|
|
3479
3479
|
return;
|
|
3480
3480
|
}
|
|
3481
3481
|
const R = new Set(r.value);
|
|
@@ -3483,84 +3483,84 @@ function fa(e, t, n) {
|
|
|
3483
3483
|
forceCreateRule: !0
|
|
3484
3484
|
});
|
|
3485
3485
|
}
|
|
3486
|
-
function
|
|
3486
|
+
function w(c) {
|
|
3487
3487
|
const b = l(c);
|
|
3488
3488
|
if (!b) return [];
|
|
3489
3489
|
const I = u(b);
|
|
3490
3490
|
return (I == null ? void 0 : I.actions) ?? [];
|
|
3491
3491
|
}
|
|
3492
|
-
function
|
|
3492
|
+
function L(c, b) {
|
|
3493
3493
|
return e.value.filter((I) => {
|
|
3494
3494
|
if (I.inverted) return !1;
|
|
3495
3495
|
const p = I.subject;
|
|
3496
3496
|
return p === c || l(p) !== c ? !1 : r.value.has(gt(p, b)) ? !0 : Object.keys(tt(We(I), b)).length > 0;
|
|
3497
3497
|
});
|
|
3498
3498
|
}
|
|
3499
|
-
function
|
|
3499
|
+
function D(c, b) {
|
|
3500
3500
|
const I = `::${b.builderKey}`, p = new Set(r.value);
|
|
3501
3501
|
for (const R of p) {
|
|
3502
3502
|
if (!R.endsWith(I)) continue;
|
|
3503
|
-
const
|
|
3504
|
-
l(
|
|
3503
|
+
const A = R.slice(0, -I.length);
|
|
3504
|
+
l(A) === c && p.delete(R);
|
|
3505
3505
|
}
|
|
3506
3506
|
r.value = p;
|
|
3507
3507
|
}
|
|
3508
3508
|
function f(c, b, I) {
|
|
3509
3509
|
const p = b.subject;
|
|
3510
|
-
return c.reduce((R,
|
|
3511
|
-
if (
|
|
3512
|
-
return R.push(
|
|
3513
|
-
const
|
|
3514
|
-
if (
|
|
3515
|
-
return R.push(
|
|
3516
|
-
if (Mt(b,
|
|
3510
|
+
return c.reduce((R, A) => {
|
|
3511
|
+
if (A.inverted)
|
|
3512
|
+
return R.push(A), R;
|
|
3513
|
+
const B = A.subject;
|
|
3514
|
+
if (B === p || l(B) !== p)
|
|
3515
|
+
return R.push(A), R;
|
|
3516
|
+
if (Mt(b, A) && Object.keys(Zt(A, I)).length === 0)
|
|
3517
3517
|
return R;
|
|
3518
|
-
const
|
|
3519
|
-
if (Object.keys(
|
|
3520
|
-
const { conditions:
|
|
3518
|
+
const d = Vn(A, b, I);
|
|
3519
|
+
if (Object.keys(d).length === 0) {
|
|
3520
|
+
const { conditions: N, ...U } = A;
|
|
3521
3521
|
R.push(U);
|
|
3522
3522
|
} else
|
|
3523
|
-
R.push({ ...
|
|
3523
|
+
R.push({ ...A, conditions: JSON.stringify(d) });
|
|
3524
3524
|
return R;
|
|
3525
3525
|
}, []);
|
|
3526
3526
|
}
|
|
3527
3527
|
function h(c, b, I, p = {}) {
|
|
3528
3528
|
var V;
|
|
3529
3529
|
const R = [...e.value];
|
|
3530
|
-
let
|
|
3531
|
-
const
|
|
3532
|
-
if (
|
|
3533
|
-
if (
|
|
3530
|
+
let A = c.index;
|
|
3531
|
+
const B = b.toCondition(I), x = Object.keys(B).length > 0;
|
|
3532
|
+
if (A === null && !x && !p.forceCreateRule) return;
|
|
3533
|
+
if (A === null) {
|
|
3534
3534
|
const j = R.findIndex((G) => !G.inverted && G.subject === c.subject);
|
|
3535
3535
|
if (j !== -1)
|
|
3536
|
-
|
|
3536
|
+
A = j;
|
|
3537
3537
|
else {
|
|
3538
3538
|
const G = t.value.find((Q) => Q.subject === c.subject);
|
|
3539
3539
|
if (!G) return;
|
|
3540
3540
|
const {
|
|
3541
3541
|
category: W,
|
|
3542
|
-
showByFeatureFlag:
|
|
3543
|
-
isCategoryCover:
|
|
3542
|
+
showByFeatureFlag: Z,
|
|
3543
|
+
isCategoryCover: X,
|
|
3544
3544
|
...ne
|
|
3545
3545
|
} = G;
|
|
3546
3546
|
R.push({
|
|
3547
3547
|
...ne,
|
|
3548
3548
|
actions: c.actions.length > 0 ? c.actions : ne.actions
|
|
3549
|
-
}),
|
|
3549
|
+
}), A = R.length - 1;
|
|
3550
3550
|
}
|
|
3551
3551
|
}
|
|
3552
|
-
const
|
|
3553
|
-
|
|
3554
|
-
.../* @__PURE__ */ new Set([...
|
|
3552
|
+
const d = { ...R[A] };
|
|
3553
|
+
d.actions = [
|
|
3554
|
+
.../* @__PURE__ */ new Set([...d.actions, ...c.actions])
|
|
3555
3555
|
];
|
|
3556
|
-
const
|
|
3557
|
-
if (Object.keys(U).length === 0 ? delete
|
|
3558
|
-
const j =
|
|
3559
|
-
var
|
|
3560
|
-
|
|
3556
|
+
const N = We(d), U = Dt(N, [{ builder: b, formValue: I }]);
|
|
3557
|
+
if (Object.keys(U).length === 0 ? delete d.conditions : d.conditions = JSON.stringify(U), R[A] = d, sn(c.subject, t.value)) {
|
|
3558
|
+
const j = L(c.subject, b), G = () => {
|
|
3559
|
+
var Z;
|
|
3560
|
+
D(c.subject, b), n(f(R, d, b)), (Z = p.afterCommit) == null || Z.call(p);
|
|
3561
3561
|
}, W = () => {
|
|
3562
|
-
var
|
|
3563
|
-
n(R), (
|
|
3562
|
+
var Z;
|
|
3563
|
+
n(R), (Z = p.afterCommit) == null || Z.call(p);
|
|
3564
3564
|
};
|
|
3565
3565
|
if (j.length === 0) {
|
|
3566
3566
|
G();
|
|
@@ -3574,82 +3574,82 @@ function fa(e, t, n) {
|
|
|
3574
3574
|
function S(c, b, I = {}) {
|
|
3575
3575
|
if (b.length === 0) return;
|
|
3576
3576
|
const p = [...e.value];
|
|
3577
|
-
let R = p.findIndex((j) => !j.inverted && j.subject === c.subject),
|
|
3577
|
+
let R = p.findIndex((j) => !j.inverted && j.subject === c.subject), A = R === -1 ? void 0 : { ...p[R] }, B = We(A ?? {}) ?? {};
|
|
3578
3578
|
for (const j of b) {
|
|
3579
3579
|
const G = j.mode === "inherit" ? j.builder.fromCondition(void 0) : j.form;
|
|
3580
|
-
|
|
3580
|
+
B = Dt(B, [{ builder: j.builder, formValue: G }]);
|
|
3581
3581
|
}
|
|
3582
3582
|
const x = b.some((j) => j.mode === "custom");
|
|
3583
|
-
if (!
|
|
3583
|
+
if (!A && (Object.keys(B).length > 0 || x)) {
|
|
3584
3584
|
const j = t.value.find((ne) => ne.subject === c.subject);
|
|
3585
3585
|
if (!j) return;
|
|
3586
3586
|
const {
|
|
3587
3587
|
category: G,
|
|
3588
3588
|
showByFeatureFlag: W,
|
|
3589
|
-
isCategoryCover:
|
|
3590
|
-
...
|
|
3589
|
+
isCategoryCover: Z,
|
|
3590
|
+
...X
|
|
3591
3591
|
} = j;
|
|
3592
|
-
|
|
3593
|
-
...
|
|
3594
|
-
actions: c.actions.length > 0 ? c.actions :
|
|
3595
|
-
}, p.push(
|
|
3592
|
+
A = {
|
|
3593
|
+
...X,
|
|
3594
|
+
actions: c.actions.length > 0 ? c.actions : X.actions
|
|
3595
|
+
}, p.push(A), R = p.length - 1;
|
|
3596
3596
|
}
|
|
3597
|
-
if (
|
|
3597
|
+
if (A) {
|
|
3598
3598
|
const j = l(c.subject), G = j ? u(j) : void 0;
|
|
3599
|
-
if (!x && Object.keys(
|
|
3600
|
-
p.splice(R, 1),
|
|
3599
|
+
if (!x && Object.keys(B).length === 0 && !!G && Mt(G, A))
|
|
3600
|
+
p.splice(R, 1), A = void 0;
|
|
3601
3601
|
else {
|
|
3602
|
-
if (
|
|
3603
|
-
.../* @__PURE__ */ new Set([...
|
|
3602
|
+
if (A.actions = [
|
|
3603
|
+
.../* @__PURE__ */ new Set([...A.actions, ...c.actions])
|
|
3604
3604
|
], G)
|
|
3605
|
-
for (const
|
|
3606
|
-
|
|
3607
|
-
...
|
|
3608
|
-
...tt(We(G),
|
|
3605
|
+
for (const Z of b)
|
|
3606
|
+
Z.mode === "inherit" && (B = {
|
|
3607
|
+
...B,
|
|
3608
|
+
...tt(We(G), Z.builder)
|
|
3609
3609
|
});
|
|
3610
|
-
Object.keys(
|
|
3610
|
+
Object.keys(B).length === 0 ? delete A.conditions : A.conditions = JSON.stringify(B), p[R] = A;
|
|
3611
3611
|
}
|
|
3612
3612
|
}
|
|
3613
|
-
const
|
|
3613
|
+
const d = () => {
|
|
3614
3614
|
const j = new Set(r.value);
|
|
3615
3615
|
for (const G of b) {
|
|
3616
3616
|
const W = gt(c.subject, G.builder);
|
|
3617
3617
|
G.mode === "custom" ? j.add(W) : j.delete(W);
|
|
3618
3618
|
}
|
|
3619
3619
|
r.value = j;
|
|
3620
|
-
},
|
|
3620
|
+
}, N = (j) => {
|
|
3621
3621
|
var G;
|
|
3622
|
-
|
|
3622
|
+
d(), n(j), (G = I.afterCommit) == null || G.call(I);
|
|
3623
3623
|
};
|
|
3624
|
-
if (!sn(c.subject, t.value) || !
|
|
3625
|
-
|
|
3624
|
+
if (!sn(c.subject, t.value) || !A) {
|
|
3625
|
+
N(p);
|
|
3626
3626
|
return;
|
|
3627
3627
|
}
|
|
3628
|
-
const U = b.map((j) => j.builder).filter((j) =>
|
|
3628
|
+
const U = b.map((j) => j.builder).filter((j) => L(c.subject, j).length > 0), V = () => {
|
|
3629
3629
|
let j = p;
|
|
3630
3630
|
for (const G of b.map((W) => W.builder))
|
|
3631
|
-
|
|
3632
|
-
|
|
3631
|
+
D(c.subject, G), j = f(j, A, G);
|
|
3632
|
+
N(j);
|
|
3633
3633
|
};
|
|
3634
3634
|
if (U.length > 0 && I.onOverridesConflict) {
|
|
3635
|
-
I.onOverridesConflict({ override: V, keep: () =>
|
|
3635
|
+
I.onOverridesConflict({ override: V, keep: () => N(p) });
|
|
3636
3636
|
return;
|
|
3637
3637
|
}
|
|
3638
|
-
U.length > 0 ?
|
|
3638
|
+
U.length > 0 ? N(p) : V();
|
|
3639
3639
|
}
|
|
3640
3640
|
return {
|
|
3641
3641
|
getCoverSubject: l,
|
|
3642
|
-
coverLabel:
|
|
3642
|
+
coverLabel: m,
|
|
3643
3643
|
shouldShowInheritToggle: g,
|
|
3644
|
-
inheritMode:
|
|
3644
|
+
inheritMode: E,
|
|
3645
3645
|
setInheritMode: F,
|
|
3646
3646
|
inheritedSummary: T,
|
|
3647
|
-
getEffectiveActions:
|
|
3647
|
+
getEffectiveActions: w,
|
|
3648
3648
|
updateBuilderCondition: h,
|
|
3649
3649
|
applyConditionDrafts: S
|
|
3650
3650
|
};
|
|
3651
3651
|
}
|
|
3652
|
-
const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, va = { 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" }, Ia = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" },
|
|
3652
|
+
const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, va = { 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" }, Ia = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Ea = "condition-form-select-menu", Fa = /* @__PURE__ */ Le({
|
|
3653
3653
|
__name: "PortalPermissionEditor",
|
|
3654
3654
|
props: /* @__PURE__ */ tn({
|
|
3655
3655
|
disable: {
|
|
@@ -3666,20 +3666,20 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3666
3666
|
}),
|
|
3667
3667
|
emits: /* @__PURE__ */ tn(["permissionChanged"], ["update:modelValue"]),
|
|
3668
3668
|
setup(e, { emit: t }) {
|
|
3669
|
-
const n = vr(e, "modelValue"), r = e, l = t, { t: a } =
|
|
3670
|
-
fetchCustomReportPermissions:
|
|
3669
|
+
const n = vr(e, "modelValue"), r = e, l = t, { t: a } = He(), m = hr(), u = br(), { breakpoints: i } = gr(), g = z(() => i.value.xs || i.value.sm), {
|
|
3670
|
+
fetchCustomReportPermissions: E,
|
|
3671
3671
|
customReportPermissions: T
|
|
3672
|
-
} = Ir(),
|
|
3672
|
+
} = Ir(), C = z(() => [
|
|
3673
3673
|
...Gn,
|
|
3674
3674
|
...T.value
|
|
3675
3675
|
]), F = z(() => {
|
|
3676
|
-
const O =
|
|
3677
|
-
return
|
|
3676
|
+
const O = m.currentBusiness.value, s = m.currentCountry.value, o = s instanceof Object ? s.code : s;
|
|
3677
|
+
return ma(O, o);
|
|
3678
3678
|
});
|
|
3679
|
-
function
|
|
3680
|
-
return
|
|
3679
|
+
function w(O) {
|
|
3680
|
+
return C.value.find((s) => s.subject === O);
|
|
3681
3681
|
}
|
|
3682
|
-
function
|
|
3682
|
+
function L(O, s) {
|
|
3683
3683
|
return rn(O).filter(
|
|
3684
3684
|
(o) => {
|
|
3685
3685
|
var _;
|
|
@@ -3687,9 +3687,9 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3687
3687
|
}
|
|
3688
3688
|
);
|
|
3689
3689
|
}
|
|
3690
|
-
const
|
|
3691
|
-
const O =
|
|
3692
|
-
return
|
|
3690
|
+
const D = z(() => {
|
|
3691
|
+
const O = C.value.filter((o) => !c.includes(o.subject)).map((o) => o.subject);
|
|
3692
|
+
return Er(
|
|
3693
3693
|
r.inheritPermissions.map((o) => ({
|
|
3694
3694
|
...o,
|
|
3695
3695
|
permissions: o.permissions.filter((_) => O.includes(_.subject))
|
|
@@ -3705,7 +3705,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3705
3705
|
(o) => o.subject === he.Subject.Business.inventory_stock
|
|
3706
3706
|
)
|
|
3707
3707
|
}));
|
|
3708
|
-
return
|
|
3708
|
+
return At(
|
|
3709
3709
|
O,
|
|
3710
3710
|
"warehouseId",
|
|
3711
3711
|
I.value.map((s) => s._id)
|
|
@@ -3717,17 +3717,17 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3717
3717
|
(o) => o.subject === he.Subject.Restaurant.restaurant
|
|
3718
3718
|
)
|
|
3719
3719
|
}));
|
|
3720
|
-
return
|
|
3720
|
+
return At(
|
|
3721
3721
|
O,
|
|
3722
3722
|
"restaurantId",
|
|
3723
|
-
|
|
3723
|
+
B.value.map((s) => s._id)
|
|
3724
3724
|
);
|
|
3725
3725
|
}), S = z(() => {
|
|
3726
3726
|
const O = r.inheritPermissions.map((s) => ({
|
|
3727
3727
|
...s,
|
|
3728
3728
|
permissions: s.permissions.filter((o) => o.subject === he.Subject.Business.role)
|
|
3729
3729
|
}));
|
|
3730
|
-
return
|
|
3730
|
+
return At(
|
|
3731
3731
|
O,
|
|
3732
3732
|
"roleId",
|
|
3733
3733
|
x.value.map((s) => s._id)
|
|
@@ -3748,10 +3748,10 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3748
3748
|
value: O._id
|
|
3749
3749
|
})));
|
|
3750
3750
|
function R(O) {
|
|
3751
|
-
const s =
|
|
3751
|
+
const s = A(n.value, O);
|
|
3752
3752
|
n.value = s;
|
|
3753
3753
|
}
|
|
3754
|
-
function
|
|
3754
|
+
function A(O, s) {
|
|
3755
3755
|
let o = It(
|
|
3756
3756
|
O.filter((_) => _.subject !== he.Subject.Business.inventory_stock)
|
|
3757
3757
|
);
|
|
@@ -3764,28 +3764,28 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3764
3764
|
}
|
|
3765
3765
|
return o;
|
|
3766
3766
|
}
|
|
3767
|
-
const { restaurants:
|
|
3767
|
+
const { restaurants: B } = m, x = Mr().roles, d = z(() => B.value.map((O) => ({
|
|
3768
3768
|
label: `${O.profile.code ? O.profile.code + "-" : ""}${O.profile.name}`,
|
|
3769
3769
|
value: O._id
|
|
3770
|
-
}))),
|
|
3770
|
+
}))), N = 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(() => yr(n.value));
|
|
3771
3771
|
function V(O) {
|
|
3772
3772
|
const s = G(n.value, O);
|
|
3773
3773
|
n.value = s;
|
|
3774
3774
|
}
|
|
3775
|
-
const j = z(() =>
|
|
3775
|
+
const j = z(() => Cr(n.value));
|
|
3776
3776
|
function G(O, s) {
|
|
3777
3777
|
var _;
|
|
3778
3778
|
let o = It(
|
|
3779
3779
|
O.filter(
|
|
3780
|
-
(
|
|
3780
|
+
(k) => k.subject !== he.Subject.Business.restaurant && k.subject !== he.Subject.Restaurant.restaurant
|
|
3781
3781
|
)
|
|
3782
3782
|
);
|
|
3783
3783
|
if (!s || s.length > 0) {
|
|
3784
3784
|
const {
|
|
3785
|
-
category:
|
|
3785
|
+
category: k,
|
|
3786
3786
|
showByFeatureFlag: M,
|
|
3787
3787
|
...P
|
|
3788
|
-
} =
|
|
3788
|
+
} = Ar.restaurant;
|
|
3789
3789
|
o.push(P);
|
|
3790
3790
|
const v = {
|
|
3791
3791
|
actions: [he.Action.manage],
|
|
@@ -3794,21 +3794,21 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3794
3794
|
s && (v.conditions = JSON.stringify({ restaurantId: { $in: s } })), o.push(v);
|
|
3795
3795
|
}
|
|
3796
3796
|
if (s) {
|
|
3797
|
-
const
|
|
3798
|
-
...new Set(s.map((P) =>
|
|
3797
|
+
const k = [
|
|
3798
|
+
...new Set(s.map((P) => N.value[P]).flatMap((P) => P))
|
|
3799
3799
|
], M = x.value.map((P) => P._id);
|
|
3800
|
-
|
|
3800
|
+
k.length !== M.length && (o = Z(
|
|
3801
3801
|
o,
|
|
3802
|
-
(_ = j.value || M) == null ? void 0 : _.filter((P) =>
|
|
3802
|
+
(_ = j.value || M) == null ? void 0 : _.filter((P) => k.includes(P))
|
|
3803
3803
|
));
|
|
3804
3804
|
}
|
|
3805
3805
|
return o;
|
|
3806
3806
|
}
|
|
3807
3807
|
function W(O) {
|
|
3808
|
-
const s =
|
|
3808
|
+
const s = Z(n.value, O);
|
|
3809
3809
|
n.value = s;
|
|
3810
3810
|
}
|
|
3811
|
-
function
|
|
3811
|
+
function Z(O, s) {
|
|
3812
3812
|
let o = It(
|
|
3813
3813
|
O.filter((_) => _.subject !== he.Subject.Business.role)
|
|
3814
3814
|
);
|
|
@@ -3825,12 +3825,12 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3825
3825
|
xn(async () => {
|
|
3826
3826
|
await Promise.all([
|
|
3827
3827
|
la.readWarehouses().then((O) => I.value = O),
|
|
3828
|
-
|
|
3828
|
+
E()
|
|
3829
3829
|
]);
|
|
3830
3830
|
});
|
|
3831
|
-
const
|
|
3831
|
+
const X = z(() => Yn(
|
|
3832
3832
|
n.value,
|
|
3833
|
-
|
|
3833
|
+
Zn
|
|
3834
3834
|
).filter((o) => {
|
|
3835
3835
|
const _ = o.source;
|
|
3836
3836
|
return (_ == null ? void 0 : _.type) !== "systemPermissionSet" ? !0 : o.actions.includes("manage");
|
|
@@ -3838,32 +3838,32 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3838
3838
|
if (o.inverted) return o;
|
|
3839
3839
|
const _ = o.actions;
|
|
3840
3840
|
if (!_.includes("manage")) return o;
|
|
3841
|
-
const
|
|
3842
|
-
if (!
|
|
3843
|
-
const M =
|
|
3841
|
+
const k = w(o.subject);
|
|
3842
|
+
if (!k) return o;
|
|
3843
|
+
const M = k.actions;
|
|
3844
3844
|
return M.length <= 1 || M.filter((v) => !_.includes(v)).length === 0 ? o : { ...o, actions: [...M] };
|
|
3845
3845
|
}));
|
|
3846
3846
|
function ne(O) {
|
|
3847
3847
|
n.value = ia(
|
|
3848
|
-
|
|
3848
|
+
X.value,
|
|
3849
3849
|
O,
|
|
3850
3850
|
n.value,
|
|
3851
|
-
|
|
3851
|
+
w
|
|
3852
3852
|
);
|
|
3853
3853
|
}
|
|
3854
3854
|
const Q = z(() => new Set(
|
|
3855
|
-
|
|
3855
|
+
C.value.filter((O) => rn(O.subject).length > 0).map((O) => O.subject)
|
|
3856
3856
|
)), _e = z(() => {
|
|
3857
3857
|
const O = /* @__PURE__ */ new Map();
|
|
3858
|
-
return
|
|
3858
|
+
return X.value.map((s) => ({
|
|
3859
3859
|
rule: s,
|
|
3860
3860
|
index: n.value.findIndex(
|
|
3861
3861
|
(o) => !o.inverted && o.subject === s.subject
|
|
3862
3862
|
)
|
|
3863
3863
|
})).filter(({ rule: s }) => !s.inverted).forEach(({ rule: s, index: o }) => {
|
|
3864
3864
|
var P;
|
|
3865
|
-
const _ = s.actions,
|
|
3866
|
-
if (
|
|
3865
|
+
const _ = s.actions, k = L(s.subject, _);
|
|
3866
|
+
if (k.length === 0) return;
|
|
3867
3867
|
let M;
|
|
3868
3868
|
try {
|
|
3869
3869
|
M = s.conditions ? JSON.parse(s.conditions) : void 0;
|
|
@@ -3873,38 +3873,38 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3873
3873
|
O.set(s.subject, {
|
|
3874
3874
|
index: o >= 0 ? o : null,
|
|
3875
3875
|
subject: s.subject,
|
|
3876
|
-
label: ((P =
|
|
3876
|
+
label: ((P = w(s.subject)) == null ? void 0 : P.label) ?? s.subject,
|
|
3877
3877
|
actions: _,
|
|
3878
3878
|
// Each builder only ever sees its own slice of the stored condition.
|
|
3879
|
-
sections:
|
|
3879
|
+
sections: k.map((v) => ({
|
|
3880
3880
|
builder: v,
|
|
3881
3881
|
formValue: v.fromCondition(tt(M, v))
|
|
3882
3882
|
}))
|
|
3883
3883
|
});
|
|
3884
3884
|
}), O;
|
|
3885
|
-
}), ce = fa(n,
|
|
3885
|
+
}), ce = fa(n, C, (O) => {
|
|
3886
3886
|
n.value = O;
|
|
3887
3887
|
}), se = Tr(n), fe = rt(null);
|
|
3888
3888
|
function q(O, s) {
|
|
3889
3889
|
const o = _e.value.get(O);
|
|
3890
3890
|
if (o) return o;
|
|
3891
|
-
const _ = ce.getEffectiveActions(O),
|
|
3892
|
-
if (
|
|
3891
|
+
const _ = ce.getEffectiveActions(O), k = L(O, _);
|
|
3892
|
+
if (k.length !== 0)
|
|
3893
3893
|
return {
|
|
3894
3894
|
index: null,
|
|
3895
3895
|
subject: O,
|
|
3896
3896
|
label: s,
|
|
3897
3897
|
actions: _,
|
|
3898
|
-
sections:
|
|
3898
|
+
sections: k.map((M) => ({
|
|
3899
3899
|
builder: M,
|
|
3900
3900
|
formValue: M.fromCondition(void 0)
|
|
3901
3901
|
}))
|
|
3902
3902
|
};
|
|
3903
3903
|
}
|
|
3904
|
-
function
|
|
3904
|
+
function De(O, s) {
|
|
3905
3905
|
const o = se.getDraft({ subject: O.subject, builderKey: s.builderKey });
|
|
3906
3906
|
if (o) return o.formValue;
|
|
3907
|
-
const _ = O.sections.find((
|
|
3907
|
+
const _ = O.sections.find((k) => k.builder.builderKey === s.builderKey);
|
|
3908
3908
|
return _ == null ? void 0 : _.formValue;
|
|
3909
3909
|
}
|
|
3910
3910
|
function K(O, s) {
|
|
@@ -3924,15 +3924,15 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3924
3924
|
}
|
|
3925
3925
|
);
|
|
3926
3926
|
}
|
|
3927
|
-
function
|
|
3927
|
+
function $e(O, s, o) {
|
|
3928
3928
|
const _ = se.getDraft({
|
|
3929
3929
|
subject: O.subject,
|
|
3930
3930
|
builderKey: s.builderKey
|
|
3931
|
-
}),
|
|
3931
|
+
}), k = O.sections.find((M) => M.builder.builderKey === s.builderKey);
|
|
3932
3932
|
se.setDraft(
|
|
3933
3933
|
{ subject: O.subject, builderKey: s.builderKey },
|
|
3934
3934
|
{
|
|
3935
|
-
formValue: (_ == null ? void 0 : _.formValue) ?? (
|
|
3935
|
+
formValue: (_ == null ? void 0 : _.formValue) ?? (k == null ? void 0 : k.formValue),
|
|
3936
3936
|
inheritMode: o
|
|
3937
3937
|
}
|
|
3938
3938
|
);
|
|
@@ -3942,28 +3942,28 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3942
3942
|
}
|
|
3943
3943
|
function Ve(O, s) {
|
|
3944
3944
|
const o = O.sections.flatMap((_) => {
|
|
3945
|
-
const
|
|
3945
|
+
const k = se.getDraft({
|
|
3946
3946
|
subject: O.subject,
|
|
3947
3947
|
builderKey: _.builder.builderKey
|
|
3948
3948
|
});
|
|
3949
|
-
return
|
|
3949
|
+
return k ? [{ builder: _.builder, form: k.formValue, mode: k.inheritMode ?? "custom" }] : [];
|
|
3950
3950
|
});
|
|
3951
3951
|
ce.applyConditionDrafts(O, o, {
|
|
3952
3952
|
afterCommit: () => {
|
|
3953
3953
|
se.clearDraftsForSubject(O.subject), s();
|
|
3954
3954
|
},
|
|
3955
|
-
onOverridesConflict:
|
|
3955
|
+
onOverridesConflict: Ze(O).onOverridesConflict
|
|
3956
3956
|
});
|
|
3957
3957
|
}
|
|
3958
3958
|
function Fe(O) {
|
|
3959
3959
|
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);
|
|
3960
3960
|
}
|
|
3961
|
-
let
|
|
3962
|
-
function
|
|
3961
|
+
let Ne = !1;
|
|
3962
|
+
function Ze(O, s = {}) {
|
|
3963
3963
|
return {
|
|
3964
3964
|
...s,
|
|
3965
3965
|
onOverridesConflict: ({ override: o, keep: _ }) => {
|
|
3966
|
-
|
|
3966
|
+
Ne || (Ne = !0, u.open({
|
|
3967
3967
|
title: a("team.memberForm.permissions.conditionCover.confirmTitle"),
|
|
3968
3968
|
message: a("team.memberForm.permissions.conditionCover.confirmMessage", {
|
|
3969
3969
|
cover: O.label
|
|
@@ -3979,55 +3979,55 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3979
3979
|
close: !1
|
|
3980
3980
|
}
|
|
3981
3981
|
}).onPrimary(() => {
|
|
3982
|
-
o(),
|
|
3982
|
+
o(), Ne = !1, u.close();
|
|
3983
3983
|
}).onSecondary(() => {
|
|
3984
|
-
_(),
|
|
3984
|
+
_(), Ne = !1, u.close();
|
|
3985
3985
|
}).onClose(() => {
|
|
3986
|
-
|
|
3986
|
+
Ne = !1;
|
|
3987
3987
|
}));
|
|
3988
3988
|
}
|
|
3989
3989
|
};
|
|
3990
3990
|
}
|
|
3991
|
-
return
|
|
3991
|
+
return wt(
|
|
3992
3992
|
n,
|
|
3993
3993
|
(O) => {
|
|
3994
3994
|
l("permissionChanged", O);
|
|
3995
3995
|
},
|
|
3996
3996
|
{ deep: !0 }
|
|
3997
3997
|
), (O, s) => {
|
|
3998
|
-
const o =
|
|
3999
|
-
return
|
|
3998
|
+
const o = we("FmIcon"), _ = we("FmBottomSheet"), k = we("FmPopover");
|
|
3999
|
+
return $(), ie("div", _a, [
|
|
4000
4000
|
ae("div", pa, [
|
|
4001
|
-
ue(
|
|
4002
|
-
"model-value":
|
|
4001
|
+
ue(Ho, {
|
|
4002
|
+
"model-value": X.value,
|
|
4003
4003
|
"excluded-subjects": c,
|
|
4004
|
-
"additional-permissions":
|
|
4004
|
+
"additional-permissions": H(T),
|
|
4005
4005
|
"onUpdate:modelValue": ne
|
|
4006
4006
|
}, et({ _: 2 }, [
|
|
4007
|
-
|
|
4007
|
+
ye(D.value, (M) => ({
|
|
4008
4008
|
name: `checkbox-${M.id}-append`,
|
|
4009
|
-
fn:
|
|
4009
|
+
fn: me(() => [
|
|
4010
4010
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
4011
4011
|
])
|
|
4012
4012
|
})),
|
|
4013
|
-
|
|
4013
|
+
ye(Q.value, (M) => ({
|
|
4014
4014
|
name: `checkbox-${M}-icon`,
|
|
4015
|
-
fn:
|
|
4016
|
-
v && q(M, P.label) ? (
|
|
4017
|
-
g.value ? (
|
|
4015
|
+
fn: me(({ option: P, isEffectiveSelected: v }) => [
|
|
4016
|
+
v && q(M, P.label) ? ($(), ie(Re, { key: 0 }, [
|
|
4017
|
+
g.value ? ($(), Ce(_, {
|
|
4018
4018
|
key: 0,
|
|
4019
4019
|
"model-value": fe.value === M,
|
|
4020
|
-
header:
|
|
4020
|
+
header: H(a)("team.memberForm.permissions.conditionTitle", {
|
|
4021
4021
|
context: q(M, P.label).label
|
|
4022
4022
|
}),
|
|
4023
4023
|
"dismiss-away": "",
|
|
4024
4024
|
"z-index": 100,
|
|
4025
4025
|
class: "h-5 flex items-center",
|
|
4026
|
-
"onUpdate:modelValue": (
|
|
4027
|
-
fe.value =
|
|
4026
|
+
"onUpdate:modelValue": (y) => {
|
|
4027
|
+
fe.value = y ? M : null, y || H(se).clearDraftsForSubject(M);
|
|
4028
4028
|
}
|
|
4029
4029
|
}, {
|
|
4030
|
-
"bottom-sheet-button":
|
|
4030
|
+
"bottom-sheet-button": me(() => [
|
|
4031
4031
|
ae("div", va, [
|
|
4032
4032
|
ue(o, {
|
|
4033
4033
|
name: "settings",
|
|
@@ -4039,35 +4039,35 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4039
4039
|
}, null, 8, ["class"])
|
|
4040
4040
|
])
|
|
4041
4041
|
]),
|
|
4042
|
-
default:
|
|
4042
|
+
default: me(() => [
|
|
4043
4043
|
ue(Fn, {
|
|
4044
4044
|
entry: q(M, P.label),
|
|
4045
|
-
builders: q(M, P.label).sections.map((
|
|
4045
|
+
builders: q(M, P.label).sections.map((y) => y.builder),
|
|
4046
4046
|
subject: M,
|
|
4047
4047
|
"time-zone": F.value,
|
|
4048
|
-
"cover-override":
|
|
4049
|
-
"inherit-mode-for": (
|
|
4050
|
-
"form-value-for": (
|
|
4048
|
+
"cover-override": H(ce),
|
|
4049
|
+
"inherit-mode-for": (y) => K(q(M, P.label), y),
|
|
4050
|
+
"form-value-for": (y) => De(q(M, P.label), y),
|
|
4051
4051
|
"has-changes": Ke(M),
|
|
4052
4052
|
disable: e.disable,
|
|
4053
4053
|
"full-width": !0,
|
|
4054
|
-
onUpdateInheritMode: ({ builder:
|
|
4055
|
-
onUpdateForm: ({ builder:
|
|
4056
|
-
onApply: (
|
|
4054
|
+
onUpdateInheritMode: ({ builder: y, mode: J }) => $e(q(M, P.label), y, J),
|
|
4055
|
+
onUpdateForm: ({ builder: y, form: J }) => pe(q(M, P.label), y, J),
|
|
4056
|
+
onApply: (y) => Ve(q(M, P.label), () => fe.value = null)
|
|
4057
4057
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4058
4058
|
]),
|
|
4059
4059
|
_: 2
|
|
4060
|
-
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (
|
|
4060
|
+
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : ($(), Ce(k, {
|
|
4061
4061
|
key: 1,
|
|
4062
4062
|
disabled: e.disable,
|
|
4063
4063
|
"z-index": 100,
|
|
4064
|
-
"exclude-el-from-click-outside": [
|
|
4064
|
+
"exclude-el-from-click-outside": [Ea],
|
|
4065
4065
|
class: "h-5 flex items-center",
|
|
4066
|
-
onPopoverChanged: (
|
|
4067
|
-
|
|
4066
|
+
onPopoverChanged: (y) => {
|
|
4067
|
+
y || H(se).clearDraftsForSubject(M);
|
|
4068
4068
|
}
|
|
4069
4069
|
}, {
|
|
4070
|
-
"popover-button":
|
|
4070
|
+
"popover-button": me(() => [
|
|
4071
4071
|
ae("div", ha, [
|
|
4072
4072
|
ue(o, {
|
|
4073
4073
|
name: "settings",
|
|
@@ -4079,32 +4079,32 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4079
4079
|
}, null, 8, ["class"])
|
|
4080
4080
|
])
|
|
4081
4081
|
]),
|
|
4082
|
-
default:
|
|
4082
|
+
default: me(({ hide: y }) => [
|
|
4083
4083
|
ue(Fn, {
|
|
4084
4084
|
entry: q(M, P.label),
|
|
4085
|
-
builders: q(M, P.label).sections.map((
|
|
4085
|
+
builders: q(M, P.label).sections.map((J) => J.builder),
|
|
4086
4086
|
subject: M,
|
|
4087
4087
|
"time-zone": F.value,
|
|
4088
|
-
"cover-override":
|
|
4089
|
-
title:
|
|
4088
|
+
"cover-override": H(ce),
|
|
4089
|
+
title: H(a)("team.memberForm.permissions.conditionTitle", {
|
|
4090
4090
|
context: q(M, P.label).label
|
|
4091
4091
|
}),
|
|
4092
|
-
"inherit-mode-for": (
|
|
4093
|
-
"form-value-for": (
|
|
4092
|
+
"inherit-mode-for": (J) => K(q(M, P.label), J),
|
|
4093
|
+
"form-value-for": (J) => De(q(M, P.label), J),
|
|
4094
4094
|
"has-changes": Ke(M),
|
|
4095
4095
|
disable: e.disable,
|
|
4096
|
-
onUpdateInheritMode: ({ builder:
|
|
4096
|
+
onUpdateInheritMode: ({ builder: J, mode: le }) => $e(
|
|
4097
4097
|
q(M, P.label),
|
|
4098
|
-
|
|
4098
|
+
J,
|
|
4099
4099
|
le
|
|
4100
4100
|
),
|
|
4101
|
-
onUpdateForm: ({ builder:
|
|
4102
|
-
onApply: (
|
|
4101
|
+
onUpdateForm: ({ builder: J, form: le }) => pe(q(M, P.label), J, le),
|
|
4102
|
+
onApply: (J) => Ve(q(M, P.label), y)
|
|
4103
4103
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "title", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4104
4104
|
]),
|
|
4105
4105
|
_: 2
|
|
4106
4106
|
}, 1032, ["disabled", "exclude-el-from-click-outside", "onPopoverChanged"]))
|
|
4107
|
-
], 64)) : (
|
|
4107
|
+
], 64)) : ($(), Ce(o, {
|
|
4108
4108
|
key: 1,
|
|
4109
4109
|
name: "settings",
|
|
4110
4110
|
size: "sm",
|
|
@@ -4115,30 +4115,30 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4115
4115
|
]), 1032, ["model-value", "additional-permissions"])
|
|
4116
4116
|
]),
|
|
4117
4117
|
ae("div", ba, [
|
|
4118
|
-
ue(
|
|
4118
|
+
ue(Dn, {
|
|
4119
4119
|
"model-value": b.value,
|
|
4120
4120
|
options: p.value,
|
|
4121
|
-
context:
|
|
4121
|
+
context: H(a)("team.labels.warehouse"),
|
|
4122
4122
|
"onUpdate:modelValue": R
|
|
4123
4123
|
}, et({ _: 2 }, [
|
|
4124
|
-
|
|
4124
|
+
ye(f.value, (M) => ({
|
|
4125
4125
|
name: `checkbox-${M.id}-append`,
|
|
4126
|
-
fn:
|
|
4126
|
+
fn: me(() => [
|
|
4127
4127
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
4128
4128
|
])
|
|
4129
4129
|
}))
|
|
4130
4130
|
]), 1032, ["model-value", "options", "context"])
|
|
4131
4131
|
]),
|
|
4132
4132
|
ae("div", ga, [
|
|
4133
|
-
ue(
|
|
4133
|
+
ue(Dn, {
|
|
4134
4134
|
"model-value": U.value,
|
|
4135
|
-
options:
|
|
4136
|
-
context:
|
|
4135
|
+
options: d.value,
|
|
4136
|
+
context: H(a)("team.labels.restaurant"),
|
|
4137
4137
|
"onUpdate:modelValue": V
|
|
4138
4138
|
}, et({ _: 2 }, [
|
|
4139
|
-
|
|
4139
|
+
ye(h.value, (M) => ({
|
|
4140
4140
|
name: `checkbox-${M.id}-append`,
|
|
4141
|
-
fn:
|
|
4141
|
+
fn: me(() => [
|
|
4142
4142
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
4143
4143
|
])
|
|
4144
4144
|
}))
|
|
@@ -4146,14 +4146,14 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4146
4146
|
]),
|
|
4147
4147
|
ae("div", Ia, [
|
|
4148
4148
|
ue(ra, {
|
|
4149
|
-
roles:
|
|
4149
|
+
roles: H(x),
|
|
4150
4150
|
"model-value": j.value,
|
|
4151
4151
|
"restaurant-ids": U.value,
|
|
4152
4152
|
"onUpdate:modelValue": W
|
|
4153
4153
|
}, et({ _: 2 }, [
|
|
4154
|
-
|
|
4154
|
+
ye(S.value, (M) => ({
|
|
4155
4155
|
name: `checkbox-${M.id}-append`,
|
|
4156
|
-
fn:
|
|
4156
|
+
fn: me(() => [
|
|
4157
4157
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
4158
4158
|
])
|
|
4159
4159
|
}))
|