@feedmepos/mf-hrm-portal 2.3.0-dev.2 → 2.3.0-dev.20
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-CJaNPHZC.js → ApprovalCodeList-ChZm8Cqn.js} +7 -7
- package/dist/{AuditLogList-CHA98ZqW.js → AuditLogList-DNb_HY2b.js} +18 -19
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C7rvthEI.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C1FZLRtw.js} +2 -2
- package/dist/{EmployeeList-CVmMKt71.js → EmployeeList-D0_eAXnx.js} +255 -266
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js → FormItem.vue_vue_type_script_setup_true_lang-DZEUOnX-.js} +6 -6
- package/dist/{GrantUserList-MYjgt5-F.js → GrantUserList-HHl1a4dz.js} +8 -8
- package/dist/{Main-BgB9lD4K.js → Main-B35_MSKW.js} +11 -11
- package/dist/{Main-C0cnqQ3B.js → Main-DFk9nc3J.js} +8 -8
- package/dist/{Main-hlcHtrsc.js → Main-DMsmgQyL.js} +5 -5
- package/dist/{PermissionSetList-5f1WIaVa.js → PermissionSetList-CglEdefD.js} +19 -18
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CFoTAGIX.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-9tG8k0mR.js} +1011 -1011
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-fe-Rdwn4.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DQcgZ0nF.js} +1 -1
- package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +132 -0
- package/dist/{RoleList-DNR4miXr.js → RoleList-_UsStsN7.js} +21 -20
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DYhMssqd.js +530 -0
- package/dist/ScheduleGeneralPage-CP3Vb4XJ.js +776 -0
- package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-B_OqKDw_.js +2439 -0
- package/dist/SchedulePage-5cbZyAow.js +19250 -0
- package/dist/{SchedulePositionPage-DyRckyUx.js → SchedulePositionPage-DwgNOVe8.js} +78 -80
- package/dist/{SelectFilter-CG13h83-.js → SelectFilter-BWM2fbe4.js} +1 -1
- package/dist/{TeamMemberList-mw5OveZG.js → TeamMemberList-CiYROtup.js} +27 -27
- package/dist/{TimesheetList-BzXarZbM.js → TimesheetList-ohxQpGBt.js} +52 -53
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Dq5i4poN.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CHgKOFjZ.js} +3 -3
- package/dist/{app-DSsdRLHg.js → app-hqb3iLmH.js} +2891 -2474
- package/dist/app.js +1 -1
- package/dist/{approval-code-C9DmR4Md.js → approval-code-BXUiojPH.js} +1 -1
- package/dist/{dayjs.min-B6xBXQtU.js → dayjs.min-jdSYngTL.js} +1 -1
- package/dist/{employee-hMhzuqk1.js → employee-DQksdva7.js} +4 -4
- package/dist/{grant-user-Bv-pJ9Wt.js → grant-user-CBJ3gEgW.js} +1 -1
- package/dist/{iteration-B34AvpNC.js → iteration-Ws9RBh0x.js} +1 -1
- package/dist/{lodash-1Vyuy7Mu.js → lodash-Db0CBH2I.js} +1 -1
- package/dist/object-Dwyg2LgX.js +16 -0
- package/dist/{restaurant-D7PEQjPY.js → restaurant-D2mfKHaH.js} +48 -48
- package/dist/{role-DKOrgO6f.js → role-C5BIFEPz.js} +2 -2
- package/dist/{rule-CBzQ3GeV.js → rule-CU0v7pCG.js} +3 -3
- package/dist/src/api/schedule/index.d.ts +9 -1
- package/dist/src/components/layout/SchedulePromoBanner.vue.d.ts +2 -0
- package/dist/src/composables/useDiscardConfirm.d.ts +3 -1
- package/dist/src/types/schedule.d.ts +3 -4
- package/dist/src/views/audit-log/locales/index.d.ts +252 -0
- package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +4 -8
- package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +1 -4
- package/dist/src/views/scheduling/components/ScheduleBoardEditOverlays.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleBoardEmployeeRows.vue.d.ts +0 -7
- package/dist/src/views/scheduling/components/ScheduleBoardGridHeader.vue.d.ts +5 -0
- package/dist/src/views/scheduling/components/ScheduleBoardInteractionOverlays.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleBoardOnboardingOverlays.vue.d.ts +1 -0
- package/dist/src/views/scheduling/components/ScheduleBoardToolbar.vue.d.ts +0 -1
- package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +4 -1
- package/dist/src/views/scheduling/components/ScheduleContextMenu.vue.d.ts +1 -5
- package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +5 -0
- package/dist/src/views/scheduling/components/ScheduleLoadState.vue.d.ts +0 -1
- package/dist/src/views/scheduling/components/{ScheduleAssignEmployeePopover.vue.d.ts → ScheduleOnboardingAssignPositionModal.vue.d.ts} +2 -2
- package/dist/src/views/scheduling/components/ScheduleOnboardingSettings.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/SchedulePublishShareArt.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +0 -10
- package/dist/src/views/scheduling/composables/onboarding-types.d.ts +2 -1
- package/dist/src/views/scheduling/composables/remyPrompt.d.ts +4 -2
- package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +12 -8
- package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +4 -0
- package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +1 -3
- package/dist/src/views/scheduling/composables/schedule-demand-domain.d.ts +13 -1
- package/dist/src/views/scheduling/composables/schedule-error.d.ts +3 -0
- package/dist/src/views/scheduling/composables/schedule-quick-pick.d.ts +22 -0
- package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +3 -0
- package/dist/src/views/scheduling/composables/useRemyAppStore.d.ts +6 -0
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +29 -11
- package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +3 -11
- package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +0 -13
- package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +2 -9
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +11 -3
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +84 -11
- package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +3 -10
- package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +13 -1
- package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +0 -1
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +16 -5
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +3 -5
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +13 -3
- package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +20 -7
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAvailability.d.ts +1 -1
- package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +5 -1
- package/dist/src/views/scheduling/composables/useScheduleEmployeePersistence.d.ts +5 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeValidation.d.ts +2 -2
- package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +2 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingDemand.d.ts +1 -1
- package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +47 -3
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +406 -29
- package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +11 -8
- package/dist/src/views/scheduling/composables/useSchedulePageCellDrop.d.ts +3 -1
- package/dist/src/views/scheduling/composables/useSchedulePageClearActions.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useSchedulePageOverlays.d.ts +0 -4
- package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +7 -1
- package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +2 -0
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +70 -4
- package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +7 -2
- package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +2 -2
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +41 -3
- package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +47 -6
- package/dist/src/views/scheduling/country-rules/index.d.ts +9 -4
- package/dist/src/views/scheduling/data.d.ts +22 -1
- package/dist/src/views/scheduling/locales/index.d.ts +28 -0
- package/dist/src/views/scheduling/schedule-state.d.ts +272 -208
- package/dist/src/views/scheduling/schedule-store.d.ts +36 -11
- package/dist/src/views/scheduling/types.d.ts +29 -5
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-d_nHyK5u.js → useAppStore-DZCdxlCd.js} +1 -1
- package/dist/useDiscardConfirm-CzZSPyvh.js +28 -0
- package/dist/{useLoading-JFoghhRz.js → useLoading-Nygx2zn8.js} +1 -1
- package/dist/{useReportPermissions-B2ev0j4w.js → useReportPermissions-DeJMpuw7.js} +3 -3
- package/package.json +1 -1
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-B4VUyKW3.js +0 -470
- package/dist/ScheduleGeneralPage-Cd5AlY4z.js +0 -666
- package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-Cf0l2MRg.js +0 -2188
- package/dist/SchedulePage-C8m0-m3l.js +0 -18257
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/src/views/scheduling/components/ScheduleAllShiftsRow.vue.d.ts +0 -22
- package/dist/src/views/scheduling/components/ScheduleStackPopover.vue.d.ts +0 -14
- package/dist/src/views/scheduling/composables/useScheduleAllShiftsRow.d.ts +0 -77
- package/dist/src/views/scheduling/composables/useScheduleAssign.d.ts +0 -124
- package/dist/src/views/scheduling/composables/useScheduleOpenShiftCard.d.ts +0 -23
- package/dist/useDiscardConfirm-DPhEV6v0.js +0 -157
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
2
|
-
import { useI18n as He, useCoreStore as
|
|
3
|
-
import { useDialog as
|
|
1
|
+
import { getCurrentInstance as Bt, inject as ur, ref as rt, shallowRef as dr, computed as K, watch as Dt, onMounted as Vn, onUnmounted as mr, defineComponent as Ae, h as Wn, createVNode as ue, Text as fr, Fragment as ke, resolveComponent as De, createBlock as Ne, openBlock as J, withCtx as de, 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
|
+
import { useDialog as br, useBreakpoints as gr } from "@feedmepos/ui-library";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { p as Gn, N as Zn, d as
|
|
6
|
-
import { _ as Xt, a as
|
|
7
|
-
import { u as
|
|
8
|
-
import { c as It } from "./iteration-
|
|
9
|
-
import { r as
|
|
10
|
-
import { g as
|
|
11
|
-
import { u as
|
|
12
|
-
function
|
|
5
|
+
import { p as Gn, N as Zn, d as Ir, P as Er, w as Lt, x as yr, y as Nr } from "./rule-CU0v7pCG.js";
|
|
6
|
+
import { _ as Xt, a as Cr, b as nn, u as Tr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C1FZLRtw.js";
|
|
7
|
+
import { u as Or, v as Sr, c as Yn, S as wt, A as tt, d as he, k as rn, O as Lr } from "./app-hqb3iLmH.js";
|
|
8
|
+
import { c as It } from "./iteration-Ws9RBh0x.js";
|
|
9
|
+
import { r as Ar } from "./string-VNuQNweN.js";
|
|
10
|
+
import { g as Rr, b as kr } from "./restaurant-D2mfKHaH.js";
|
|
11
|
+
import { u as Mr } from "./role-C5BIFEPz.js";
|
|
12
|
+
function Bn(e, t) {
|
|
13
13
|
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Dr(e) {
|
|
16
16
|
return Array.isArray(e) ? e[0] : e;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
const n = t.find((l) =>
|
|
18
|
+
function wr(e, t) {
|
|
19
|
+
const n = t.find((l) => Bn(l.subject, e));
|
|
20
20
|
if (!(n != null && n.category) || n.isCategoryCover) return;
|
|
21
|
-
const
|
|
22
|
-
if (
|
|
23
|
-
return
|
|
21
|
+
const r = t.find((l) => l.category === n.category && l.isCategoryCover);
|
|
22
|
+
if (r)
|
|
23
|
+
return Dr(r.subject);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
const n = t.find((
|
|
25
|
+
function sn(e, t) {
|
|
26
|
+
const n = t.find((r) => Bn(r.subject, e));
|
|
27
27
|
return !!(n != null && n.isCategoryCover);
|
|
28
28
|
}
|
|
29
29
|
/*!
|
|
@@ -31,42 +31,42 @@ function rn(e, t) {
|
|
|
31
31
|
* (c) 2024 kazuya kawaguchi
|
|
32
32
|
* Released under the MIT License.
|
|
33
33
|
*/
|
|
34
|
-
const on = typeof window < "u", $e = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
34
|
+
const on = typeof window < "u", $e = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Fr = (e, t, n) => Pr({ l: e, k: t, s: n }), Pr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ge = (e) => typeof e == "number" && isFinite(e), jr = (e) => Ht(e) === "[object Date]", yt = (e) => Ht(e) === "[object RegExp]", Ct = (e) => ee(e) && Object.keys(e).length === 0, Ie = Object.assign, Ur = Object.create, oe = (e = null) => Ur(e);
|
|
35
35
|
let an;
|
|
36
36
|
const Xe = () => an || (an = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : oe());
|
|
37
37
|
function ln(e) {
|
|
38
38
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
39
39
|
}
|
|
40
|
-
const
|
|
40
|
+
const xr = Object.prototype.hasOwnProperty;
|
|
41
41
|
function Le(e, t) {
|
|
42
|
-
return
|
|
42
|
+
return xr.call(e, t);
|
|
43
43
|
}
|
|
44
|
-
const be = Array.isArray, me = (e) => typeof e == "function", Z = (e) => typeof e == "string", ve = (e) => typeof e == "boolean", te = (e) => e !== null && typeof e == "object",
|
|
44
|
+
const be = Array.isArray, me = (e) => typeof e == "function", Z = (e) => typeof e == "string", ve = (e) => typeof e == "boolean", te = (e) => e !== null && typeof e == "object", Vr = (e) => te(e) && me(e.then) && me(e.catch), Xn = Object.prototype.toString, Ht = (e) => Xn.call(e), ee = (e) => Ht(e) === "[object Object]", Wr = (e) => e == null ? "" : be(e) || ee(e) && e.toString === Xn ? JSON.stringify(e, null, 2) : String(e);
|
|
45
45
|
function $t(e, t = "") {
|
|
46
|
-
return e.reduce((n,
|
|
46
|
+
return e.reduce((n, r, l) => l === 0 ? n + r : n + t + r, "");
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Gr(e, t) {
|
|
49
49
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
50
50
|
}
|
|
51
51
|
const ft = (e) => !te(e) || be(e);
|
|
52
|
-
function
|
|
52
|
+
function Et(e, t) {
|
|
53
53
|
if (ft(e) || ft(t))
|
|
54
54
|
throw new Error("Invalid value");
|
|
55
55
|
const n = [{ src: e, des: t }];
|
|
56
56
|
for (; n.length; ) {
|
|
57
|
-
const { src:
|
|
58
|
-
Object.keys(
|
|
59
|
-
a !== "__proto__" && (te(
|
|
57
|
+
const { src: r, des: l } = n.pop();
|
|
58
|
+
Object.keys(r).forEach((a) => {
|
|
59
|
+
a !== "__proto__" && (te(r[a]) && !te(l[a]) && (l[a] = Array.isArray(r[a]) ? [] : oe()), ft(l[a]) || ft(r[a]) ? l[a] = r[a] : n.push({ src: r[a], des: l[a] }));
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Zr(e, t, n) {
|
|
64
64
|
return { line: e, column: t, offset: n };
|
|
65
65
|
}
|
|
66
66
|
function Ft(e, t, n) {
|
|
67
67
|
return { start: e, end: t };
|
|
68
68
|
}
|
|
69
|
-
const
|
|
69
|
+
const re = {
|
|
70
70
|
// tokenizer error codes
|
|
71
71
|
EXPECTED_TOKEN: 1,
|
|
72
72
|
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
|
@@ -83,28 +83,28 @@ const se = {
|
|
|
83
83
|
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
84
84
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
85
85
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
86
|
-
},
|
|
86
|
+
}, Yr = 17;
|
|
87
87
|
function Tt(e, t, n = {}) {
|
|
88
|
-
const { domain:
|
|
89
|
-
return u.code = e, t && (u.location = t), u.domain =
|
|
88
|
+
const { domain: r, messages: l, args: a } = n, d = e, u = new SyntaxError(String(d));
|
|
89
|
+
return u.code = e, t && (u.location = t), u.domain = r, u;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Br(e) {
|
|
92
92
|
throw e;
|
|
93
93
|
}
|
|
94
|
-
const Pe = " ",
|
|
95
|
-
`,
|
|
96
|
-
function
|
|
94
|
+
const Pe = " ", Xr = "\r", Ee = `
|
|
95
|
+
`, Hr = "\u2028", $r = "\u2029";
|
|
96
|
+
function Jr(e) {
|
|
97
97
|
const t = e;
|
|
98
|
-
let n = 0,
|
|
99
|
-
const d = (p) => t[p] ===
|
|
98
|
+
let n = 0, r = 1, l = 1, a = 0;
|
|
99
|
+
const d = (p) => t[p] === Xr && t[p + 1] === Ee, u = (p) => t[p] === Ee, i = (p) => t[p] === $r, g = (p) => t[p] === Hr, E = (p) => d(p) || u(p) || i(p) || g(p), T = () => n, N = () => r, F = () => l, D = () => a, A = (p) => d(p) || i(p) || g(p) ? Ee : t[p], w = () => A(n), f = () => A(n + a);
|
|
100
100
|
function h() {
|
|
101
|
-
return a = 0,
|
|
101
|
+
return a = 0, E(n) && (r++, l = 0), d(n) && n++, n++, l++, t[n];
|
|
102
102
|
}
|
|
103
103
|
function S() {
|
|
104
104
|
return d(n + a) && a++, a++, t[n + a];
|
|
105
105
|
}
|
|
106
106
|
function c() {
|
|
107
|
-
n = 0,
|
|
107
|
+
n = 0, r = 1, l = 1, a = 0;
|
|
108
108
|
}
|
|
109
109
|
function b(p = 0) {
|
|
110
110
|
a = p;
|
|
@@ -120,7 +120,7 @@ function Js(e) {
|
|
|
120
120
|
line: N,
|
|
121
121
|
column: F,
|
|
122
122
|
peekOffset: D,
|
|
123
|
-
charAt:
|
|
123
|
+
charAt: A,
|
|
124
124
|
currentChar: w,
|
|
125
125
|
currentPeek: f,
|
|
126
126
|
next: h,
|
|
@@ -130,9 +130,9 @@ function Js(e) {
|
|
|
130
130
|
skipToPeek: I
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
const Ve = void 0,
|
|
134
|
-
function
|
|
135
|
-
const n = t.location !== !1,
|
|
133
|
+
const Ve = void 0, zr = ".", cn = "'", Kr = "tokenizer";
|
|
134
|
+
function Qr(e, t = {}) {
|
|
135
|
+
const n = t.location !== !1, r = Jr(e), l = () => r.index(), a = () => Zr(r.line(), r.column(), r.index()), d = a(), u = l(), i = {
|
|
136
136
|
currentType: 13,
|
|
137
137
|
offset: u,
|
|
138
138
|
startLoc: d,
|
|
@@ -144,141 +144,141 @@ function Qs(e, t = {}) {
|
|
|
144
144
|
braceNest: 0,
|
|
145
145
|
inLinked: !1,
|
|
146
146
|
text: ""
|
|
147
|
-
}, g = () => i, { onError:
|
|
148
|
-
function T(
|
|
147
|
+
}, g = () => i, { onError: E } = t;
|
|
148
|
+
function T(s, o, _, ...R) {
|
|
149
149
|
const M = g();
|
|
150
|
-
if (o.column += _, o.offset += _,
|
|
151
|
-
const P = n ? Ft(M.startLoc, o) : null, v = Tt(
|
|
152
|
-
domain:
|
|
153
|
-
args:
|
|
150
|
+
if (o.column += _, o.offset += _, E) {
|
|
151
|
+
const P = n ? Ft(M.startLoc, o) : null, v = Tt(s, P, {
|
|
152
|
+
domain: Kr,
|
|
153
|
+
args: R
|
|
154
154
|
});
|
|
155
|
-
|
|
155
|
+
E(v);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
function N(
|
|
159
|
-
|
|
160
|
-
const
|
|
161
|
-
return n && (
|
|
158
|
+
function N(s, o, _) {
|
|
159
|
+
s.endLoc = a(), s.currentType = o;
|
|
160
|
+
const R = { type: o };
|
|
161
|
+
return n && (R.loc = Ft(s.startLoc, s.endLoc)), _ != null && (R.value = _), R;
|
|
162
162
|
}
|
|
163
|
-
const F = (
|
|
164
|
-
|
|
163
|
+
const F = (s) => N(
|
|
164
|
+
s,
|
|
165
165
|
13
|
|
166
166
|
/* TokenTypes.EOF */
|
|
167
167
|
);
|
|
168
|
-
function D(
|
|
169
|
-
return
|
|
168
|
+
function D(s, o) {
|
|
169
|
+
return s.currentChar() === o ? (s.next(), o) : (T(re.EXPECTED_TOKEN, a(), 0, o), "");
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function A(s) {
|
|
172
172
|
let o = "";
|
|
173
|
-
for (;
|
|
174
|
-
o +=
|
|
173
|
+
for (; s.currentPeek() === Pe || s.currentPeek() === Ee; )
|
|
174
|
+
o += s.currentPeek(), s.peek();
|
|
175
175
|
return o;
|
|
176
176
|
}
|
|
177
|
-
function w(
|
|
178
|
-
const o =
|
|
179
|
-
return
|
|
177
|
+
function w(s) {
|
|
178
|
+
const o = A(s);
|
|
179
|
+
return s.skipToPeek(), o;
|
|
180
180
|
}
|
|
181
|
-
function f(
|
|
182
|
-
if (
|
|
181
|
+
function f(s) {
|
|
182
|
+
if (s === Ve)
|
|
183
183
|
return !1;
|
|
184
|
-
const o =
|
|
184
|
+
const o = s.charCodeAt(0);
|
|
185
185
|
return o >= 97 && o <= 122 || // a-z
|
|
186
186
|
o >= 65 && o <= 90 || // A-Z
|
|
187
187
|
o === 95;
|
|
188
188
|
}
|
|
189
|
-
function h(
|
|
190
|
-
if (
|
|
189
|
+
function h(s) {
|
|
190
|
+
if (s === Ve)
|
|
191
191
|
return !1;
|
|
192
|
-
const o =
|
|
192
|
+
const o = s.charCodeAt(0);
|
|
193
193
|
return o >= 48 && o <= 57;
|
|
194
194
|
}
|
|
195
|
-
function S(
|
|
195
|
+
function S(s, o) {
|
|
196
196
|
const { currentType: _ } = o;
|
|
197
197
|
if (_ !== 2)
|
|
198
198
|
return !1;
|
|
199
|
-
|
|
200
|
-
const
|
|
201
|
-
return
|
|
199
|
+
A(s);
|
|
200
|
+
const R = f(s.currentPeek());
|
|
201
|
+
return s.resetPeek(), R;
|
|
202
202
|
}
|
|
203
|
-
function c(
|
|
203
|
+
function c(s, o) {
|
|
204
204
|
const { currentType: _ } = o;
|
|
205
205
|
if (_ !== 2)
|
|
206
206
|
return !1;
|
|
207
|
-
|
|
208
|
-
const
|
|
209
|
-
return
|
|
207
|
+
A(s);
|
|
208
|
+
const R = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), M = h(R);
|
|
209
|
+
return s.resetPeek(), M;
|
|
210
210
|
}
|
|
211
|
-
function b(
|
|
211
|
+
function b(s, o) {
|
|
212
212
|
const { currentType: _ } = o;
|
|
213
213
|
if (_ !== 2)
|
|
214
214
|
return !1;
|
|
215
|
-
|
|
216
|
-
const
|
|
217
|
-
return
|
|
215
|
+
A(s);
|
|
216
|
+
const R = s.currentPeek() === cn;
|
|
217
|
+
return s.resetPeek(), R;
|
|
218
218
|
}
|
|
219
|
-
function I(
|
|
219
|
+
function I(s, o) {
|
|
220
220
|
const { currentType: _ } = o;
|
|
221
221
|
if (_ !== 7)
|
|
222
222
|
return !1;
|
|
223
|
-
|
|
224
|
-
const
|
|
225
|
-
return
|
|
223
|
+
A(s);
|
|
224
|
+
const R = s.currentPeek() === ".";
|
|
225
|
+
return s.resetPeek(), R;
|
|
226
226
|
}
|
|
227
|
-
function p(
|
|
227
|
+
function p(s, o) {
|
|
228
228
|
const { currentType: _ } = o;
|
|
229
229
|
if (_ !== 8)
|
|
230
230
|
return !1;
|
|
231
|
-
|
|
232
|
-
const
|
|
233
|
-
return
|
|
231
|
+
A(s);
|
|
232
|
+
const R = f(s.currentPeek());
|
|
233
|
+
return s.resetPeek(), R;
|
|
234
234
|
}
|
|
235
|
-
function k(
|
|
235
|
+
function k(s, o) {
|
|
236
236
|
const { currentType: _ } = o;
|
|
237
237
|
if (!(_ === 7 || _ === 11))
|
|
238
238
|
return !1;
|
|
239
|
-
|
|
240
|
-
const
|
|
241
|
-
return
|
|
239
|
+
A(s);
|
|
240
|
+
const R = s.currentPeek() === ":";
|
|
241
|
+
return s.resetPeek(), R;
|
|
242
242
|
}
|
|
243
|
-
function L(
|
|
243
|
+
function L(s, o) {
|
|
244
244
|
const { currentType: _ } = o;
|
|
245
245
|
if (_ !== 9)
|
|
246
246
|
return !1;
|
|
247
|
-
const
|
|
248
|
-
const P =
|
|
249
|
-
return P === "{" ? f(
|
|
250
|
-
}, M =
|
|
251
|
-
return
|
|
252
|
-
}
|
|
253
|
-
function X(
|
|
254
|
-
|
|
255
|
-
const o =
|
|
256
|
-
return
|
|
257
|
-
}
|
|
258
|
-
function V(
|
|
247
|
+
const R = () => {
|
|
248
|
+
const P = s.currentPeek();
|
|
249
|
+
return P === "{" ? f(s.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P === Ee ? (s.peek(), R()) : V(s, !1);
|
|
250
|
+
}, M = R();
|
|
251
|
+
return s.resetPeek(), M;
|
|
252
|
+
}
|
|
253
|
+
function X(s) {
|
|
254
|
+
A(s);
|
|
255
|
+
const o = s.currentPeek() === "|";
|
|
256
|
+
return s.resetPeek(), o;
|
|
257
|
+
}
|
|
258
|
+
function V(s, o = !0) {
|
|
259
259
|
const _ = (M = !1, P = "") => {
|
|
260
|
-
const v =
|
|
261
|
-
return v === "{" || v === "@" || !v ? M : v === "|" ? !(P === Pe || P ===
|
|
262
|
-
},
|
|
263
|
-
return o &&
|
|
260
|
+
const v = s.currentPeek();
|
|
261
|
+
return v === "{" || v === "@" || !v ? M : v === "|" ? !(P === Pe || P === Ee) : v === Pe ? (s.peek(), _(!0, Pe)) : v === Ee ? (s.peek(), _(!0, Ee)) : !0;
|
|
262
|
+
}, R = _();
|
|
263
|
+
return o && s.resetPeek(), R;
|
|
264
264
|
}
|
|
265
|
-
function m(
|
|
266
|
-
const _ =
|
|
267
|
-
return _ === Ve ? Ve : o(_) ? (
|
|
265
|
+
function m(s, o) {
|
|
266
|
+
const _ = s.currentChar();
|
|
267
|
+
return _ === Ve ? Ve : o(_) ? (s.next(), _) : null;
|
|
268
268
|
}
|
|
269
|
-
function C(
|
|
270
|
-
const o =
|
|
269
|
+
function C(s) {
|
|
270
|
+
const o = s.charCodeAt(0);
|
|
271
271
|
return o >= 97 && o <= 122 || // a-z
|
|
272
272
|
o >= 65 && o <= 90 || // A-Z
|
|
273
273
|
o >= 48 && o <= 57 || // 0-9
|
|
274
274
|
o === 95 || // _
|
|
275
275
|
o === 36;
|
|
276
276
|
}
|
|
277
|
-
function U(
|
|
278
|
-
return m(
|
|
277
|
+
function U(s) {
|
|
278
|
+
return m(s, C);
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
const o =
|
|
280
|
+
function x(s) {
|
|
281
|
+
const o = s.charCodeAt(0);
|
|
282
282
|
return o >= 97 && o <= 122 || // a-z
|
|
283
283
|
o >= 65 && o <= 90 || // A-Z
|
|
284
284
|
o >= 48 && o <= 57 || // 0-9
|
|
@@ -286,238 +286,238 @@ function Qs(e, t = {}) {
|
|
|
286
286
|
o === 36 || // $
|
|
287
287
|
o === 45;
|
|
288
288
|
}
|
|
289
|
-
function j(
|
|
290
|
-
return m(
|
|
289
|
+
function j(s) {
|
|
290
|
+
return m(s, x);
|
|
291
291
|
}
|
|
292
|
-
function G(
|
|
293
|
-
const o =
|
|
292
|
+
function G(s) {
|
|
293
|
+
const o = s.charCodeAt(0);
|
|
294
294
|
return o >= 48 && o <= 57;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
297
|
-
return m(
|
|
296
|
+
function W(s) {
|
|
297
|
+
return m(s, G);
|
|
298
298
|
}
|
|
299
|
-
function
|
|
300
|
-
const o =
|
|
299
|
+
function Y(s) {
|
|
300
|
+
const o = s.charCodeAt(0);
|
|
301
301
|
return o >= 48 && o <= 57 || // 0-9
|
|
302
302
|
o >= 65 && o <= 70 || // A-F
|
|
303
303
|
o >= 97 && o <= 102;
|
|
304
304
|
}
|
|
305
|
-
function
|
|
306
|
-
return m(
|
|
305
|
+
function B(s) {
|
|
306
|
+
return m(s, Y);
|
|
307
307
|
}
|
|
308
|
-
function ne(
|
|
308
|
+
function ne(s) {
|
|
309
309
|
let o = "", _ = "";
|
|
310
|
-
for (; o =
|
|
310
|
+
for (; o = W(s); )
|
|
311
311
|
_ += o;
|
|
312
312
|
return _;
|
|
313
313
|
}
|
|
314
|
-
function Q(
|
|
314
|
+
function Q(s) {
|
|
315
315
|
let o = "";
|
|
316
316
|
for (; ; ) {
|
|
317
|
-
const _ =
|
|
317
|
+
const _ = s.currentChar();
|
|
318
318
|
if (_ === "{" || _ === "}" || _ === "@" || _ === "|" || !_)
|
|
319
319
|
break;
|
|
320
|
-
if (_ === Pe || _ ===
|
|
321
|
-
if (V(
|
|
322
|
-
o += _,
|
|
320
|
+
if (_ === Pe || _ === Ee)
|
|
321
|
+
if (V(s))
|
|
322
|
+
o += _, s.next();
|
|
323
323
|
else {
|
|
324
|
-
if (X(
|
|
324
|
+
if (X(s))
|
|
325
325
|
break;
|
|
326
|
-
o += _,
|
|
326
|
+
o += _, s.next();
|
|
327
327
|
}
|
|
328
328
|
else
|
|
329
|
-
o += _,
|
|
329
|
+
o += _, s.next();
|
|
330
330
|
}
|
|
331
331
|
return o;
|
|
332
332
|
}
|
|
333
|
-
function _e(
|
|
334
|
-
w(
|
|
333
|
+
function _e(s) {
|
|
334
|
+
w(s);
|
|
335
335
|
let o = "", _ = "";
|
|
336
|
-
for (; o = j(
|
|
336
|
+
for (; o = j(s); )
|
|
337
337
|
_ += o;
|
|
338
|
-
return
|
|
338
|
+
return s.currentChar() === Ve && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _;
|
|
339
339
|
}
|
|
340
|
-
function ce(
|
|
341
|
-
w(
|
|
340
|
+
function ce(s) {
|
|
341
|
+
w(s);
|
|
342
342
|
let o = "";
|
|
343
|
-
return
|
|
343
|
+
return s.currentChar() === "-" ? (s.next(), o += `-${ne(s)}`) : o += ne(s), s.currentChar() === Ve && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
344
344
|
}
|
|
345
|
-
function
|
|
346
|
-
return
|
|
345
|
+
function se(s) {
|
|
346
|
+
return s !== cn && s !== Ee;
|
|
347
347
|
}
|
|
348
|
-
function fe(
|
|
349
|
-
w(
|
|
348
|
+
function fe(s) {
|
|
349
|
+
w(s), D(s, "'");
|
|
350
350
|
let o = "", _ = "";
|
|
351
|
-
for (; o = m(
|
|
352
|
-
o === "\\" ? _ += q(
|
|
353
|
-
const
|
|
354
|
-
return
|
|
351
|
+
for (; o = m(s, se); )
|
|
352
|
+
o === "\\" ? _ += q(s) : _ += o;
|
|
353
|
+
const R = s.currentChar();
|
|
354
|
+
return R === Ee || R === Ve ? (T(re.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), R === Ee && (s.next(), D(s, "'")), _) : (D(s, "'"), _);
|
|
355
355
|
}
|
|
356
|
-
function q(
|
|
357
|
-
const o =
|
|
356
|
+
function q(s) {
|
|
357
|
+
const o = s.currentChar();
|
|
358
358
|
switch (o) {
|
|
359
359
|
case "\\":
|
|
360
360
|
case "'":
|
|
361
|
-
return
|
|
361
|
+
return s.next(), `\\${o}`;
|
|
362
362
|
case "u":
|
|
363
|
-
return we(
|
|
363
|
+
return we(s, o, 4);
|
|
364
364
|
case "U":
|
|
365
|
-
return we(
|
|
365
|
+
return we(s, o, 6);
|
|
366
366
|
default:
|
|
367
|
-
return T(
|
|
367
|
+
return T(re.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
function we(
|
|
371
|
-
D(
|
|
372
|
-
let
|
|
370
|
+
function we(s, o, _) {
|
|
371
|
+
D(s, o);
|
|
372
|
+
let R = "";
|
|
373
373
|
for (let M = 0; M < _; M++) {
|
|
374
|
-
const P =
|
|
374
|
+
const P = B(s);
|
|
375
375
|
if (!P) {
|
|
376
|
-
T(
|
|
376
|
+
T(re.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${R}${s.currentChar()}`);
|
|
377
377
|
break;
|
|
378
378
|
}
|
|
379
|
-
|
|
379
|
+
R += P;
|
|
380
380
|
}
|
|
381
|
-
return `\\${o}${
|
|
381
|
+
return `\\${o}${R}`;
|
|
382
382
|
}
|
|
383
|
-
function z(
|
|
384
|
-
return
|
|
383
|
+
function z(s) {
|
|
384
|
+
return s !== "{" && s !== "}" && s !== Pe && s !== Ee;
|
|
385
385
|
}
|
|
386
|
-
function pe(
|
|
387
|
-
w(
|
|
386
|
+
function pe(s) {
|
|
387
|
+
w(s);
|
|
388
388
|
let o = "", _ = "";
|
|
389
|
-
for (; o = m(
|
|
389
|
+
for (; o = m(s, z); )
|
|
390
390
|
_ += o;
|
|
391
391
|
return _;
|
|
392
392
|
}
|
|
393
|
-
function Je(
|
|
393
|
+
function Je(s) {
|
|
394
394
|
let o = "", _ = "";
|
|
395
|
-
for (; o = U(
|
|
395
|
+
for (; o = U(s); )
|
|
396
396
|
_ += o;
|
|
397
397
|
return _;
|
|
398
398
|
}
|
|
399
|
-
function ze(
|
|
399
|
+
function ze(s) {
|
|
400
400
|
const o = (_) => {
|
|
401
|
-
const
|
|
402
|
-
return
|
|
401
|
+
const R = s.currentChar();
|
|
402
|
+
return R === "{" || R === "@" || R === "|" || R === "(" || R === ")" || !R || R === Pe ? _ : (_ += R, s.next(), o(_));
|
|
403
403
|
};
|
|
404
404
|
return o("");
|
|
405
405
|
}
|
|
406
|
-
function
|
|
407
|
-
w(
|
|
406
|
+
function xe(s) {
|
|
407
|
+
w(s);
|
|
408
408
|
const o = D(
|
|
409
|
-
|
|
409
|
+
s,
|
|
410
410
|
"|"
|
|
411
411
|
/* TokenChars.Pipe */
|
|
412
412
|
);
|
|
413
|
-
return w(
|
|
413
|
+
return w(s), o;
|
|
414
414
|
}
|
|
415
|
-
function Fe(
|
|
415
|
+
function Fe(s, o) {
|
|
416
416
|
let _ = null;
|
|
417
|
-
switch (
|
|
417
|
+
switch (s.currentChar()) {
|
|
418
418
|
case "{":
|
|
419
|
-
return o.braceNest >= 1 && T(
|
|
419
|
+
return o.braceNest >= 1 && T(re.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), s.next(), _ = N(
|
|
420
420
|
o,
|
|
421
421
|
2,
|
|
422
422
|
"{"
|
|
423
423
|
/* TokenChars.BraceLeft */
|
|
424
|
-
), w(
|
|
424
|
+
), w(s), o.braceNest++, _;
|
|
425
425
|
case "}":
|
|
426
|
-
return o.braceNest > 0 && o.currentType === 2 && T(
|
|
426
|
+
return o.braceNest > 0 && o.currentType === 2 && T(re.EMPTY_PLACEHOLDER, a(), 0), s.next(), _ = N(
|
|
427
427
|
o,
|
|
428
428
|
3,
|
|
429
429
|
"}"
|
|
430
430
|
/* TokenChars.BraceRight */
|
|
431
|
-
), o.braceNest--, o.braceNest > 0 && w(
|
|
431
|
+
), o.braceNest--, o.braceNest > 0 && w(s), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), _;
|
|
432
432
|
case "@":
|
|
433
|
-
return o.braceNest > 0 && T(
|
|
433
|
+
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = Ce(s, o) || F(o), o.braceNest = 0, _;
|
|
434
434
|
default: {
|
|
435
435
|
let M = !0, P = !0, v = !0;
|
|
436
|
-
if (X(
|
|
437
|
-
return o.braceNest > 0 && T(
|
|
436
|
+
if (X(s))
|
|
437
|
+
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = N(o, 1, xe(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
438
438
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
439
|
-
return T(
|
|
440
|
-
if (M = S(
|
|
441
|
-
return _ = N(o, 4, _e(
|
|
442
|
-
if (P = c(
|
|
443
|
-
return _ = N(o, 5, ce(
|
|
444
|
-
if (v = b(
|
|
445
|
-
return _ = N(o, 6, fe(
|
|
439
|
+
return T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, Ye(s, o);
|
|
440
|
+
if (M = S(s, o))
|
|
441
|
+
return _ = N(o, 4, _e(s)), w(s), _;
|
|
442
|
+
if (P = c(s, o))
|
|
443
|
+
return _ = N(o, 5, ce(s)), w(s), _;
|
|
444
|
+
if (v = b(s, o))
|
|
445
|
+
return _ = N(o, 6, fe(s)), w(s), _;
|
|
446
446
|
if (!M && !P && !v)
|
|
447
|
-
return _ = N(o, 12, pe(
|
|
447
|
+
return _ = N(o, 12, pe(s)), T(re.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, _.value), w(s), _;
|
|
448
448
|
break;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
return _;
|
|
452
452
|
}
|
|
453
|
-
function Ce(
|
|
453
|
+
function Ce(s, o) {
|
|
454
454
|
const { currentType: _ } = o;
|
|
455
|
-
let
|
|
456
|
-
const M =
|
|
457
|
-
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M ===
|
|
455
|
+
let R = null;
|
|
456
|
+
const M = s.currentChar();
|
|
457
|
+
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M === Ee || M === Pe) && T(re.INVALID_LINKED_FORMAT, a(), 0), M) {
|
|
458
458
|
case "@":
|
|
459
|
-
return
|
|
459
|
+
return s.next(), R = N(
|
|
460
460
|
o,
|
|
461
461
|
7,
|
|
462
462
|
"@"
|
|
463
463
|
/* TokenChars.LinkedAlias */
|
|
464
|
-
), o.inLinked = !0,
|
|
464
|
+
), o.inLinked = !0, R;
|
|
465
465
|
case ".":
|
|
466
|
-
return w(
|
|
466
|
+
return w(s), s.next(), N(
|
|
467
467
|
o,
|
|
468
468
|
8,
|
|
469
469
|
"."
|
|
470
470
|
/* TokenChars.LinkedDot */
|
|
471
471
|
);
|
|
472
472
|
case ":":
|
|
473
|
-
return w(
|
|
473
|
+
return w(s), s.next(), N(
|
|
474
474
|
o,
|
|
475
475
|
9,
|
|
476
476
|
":"
|
|
477
477
|
/* TokenChars.LinkedDelimiter */
|
|
478
478
|
);
|
|
479
479
|
default:
|
|
480
|
-
return X(
|
|
480
|
+
return X(s) ? (R = N(o, 1, xe(s)), o.braceNest = 0, o.inLinked = !1, R) : I(s, o) || k(s, o) ? (w(s), Ce(s, o)) : p(s, o) ? (w(s), N(o, 11, Je(s))) : L(s, o) ? (w(s), M === "{" ? Fe(s, o) || R : N(o, 10, ze(s))) : (_ === 7 && T(re.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, Ye(s, o));
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function Ye(s, o) {
|
|
484
484
|
let _ = {
|
|
485
485
|
type: 13
|
|
486
486
|
/* TokenTypes.EOF */
|
|
487
487
|
};
|
|
488
488
|
if (o.braceNest > 0)
|
|
489
|
-
return Fe(
|
|
489
|
+
return Fe(s, o) || F(o);
|
|
490
490
|
if (o.inLinked)
|
|
491
|
-
return Ce(
|
|
492
|
-
switch (
|
|
491
|
+
return Ce(s, o) || F(o);
|
|
492
|
+
switch (s.currentChar()) {
|
|
493
493
|
case "{":
|
|
494
|
-
return Fe(
|
|
494
|
+
return Fe(s, o) || F(o);
|
|
495
495
|
case "}":
|
|
496
|
-
return T(
|
|
496
|
+
return T(re.UNBALANCED_CLOSING_BRACE, a(), 0), s.next(), N(
|
|
497
497
|
o,
|
|
498
498
|
3,
|
|
499
499
|
"}"
|
|
500
500
|
/* TokenChars.BraceRight */
|
|
501
501
|
);
|
|
502
502
|
case "@":
|
|
503
|
-
return Ce(
|
|
503
|
+
return Ce(s, o) || F(o);
|
|
504
504
|
default: {
|
|
505
|
-
if (X(
|
|
506
|
-
return _ = N(o, 1,
|
|
507
|
-
if (V(
|
|
508
|
-
return N(o, 0, Q(
|
|
505
|
+
if (X(s))
|
|
506
|
+
return _ = N(o, 1, xe(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
507
|
+
if (V(s))
|
|
508
|
+
return N(o, 0, Q(s));
|
|
509
509
|
break;
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
512
|
return _;
|
|
513
513
|
}
|
|
514
514
|
function O() {
|
|
515
|
-
const { currentType:
|
|
516
|
-
return i.lastType =
|
|
515
|
+
const { currentType: s, offset: o, startLoc: _, endLoc: R } = i;
|
|
516
|
+
return i.lastType = s, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc = R, i.offset = l(), i.startLoc = a(), r.currentChar() === Ve ? N(
|
|
517
517
|
i,
|
|
518
518
|
13
|
|
519
519
|
/* TokenTypes.EOF */
|
|
520
|
-
) :
|
|
520
|
+
) : Ye(r, i);
|
|
521
521
|
}
|
|
522
522
|
return {
|
|
523
523
|
nextToken: O,
|
|
@@ -526,26 +526,26 @@ function Qs(e, t = {}) {
|
|
|
526
526
|
context: g
|
|
527
527
|
};
|
|
528
528
|
}
|
|
529
|
-
const
|
|
530
|
-
function
|
|
529
|
+
const qr = "parser", es = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
530
|
+
function ts(e, t, n) {
|
|
531
531
|
switch (e) {
|
|
532
532
|
case "\\\\":
|
|
533
533
|
return "\\";
|
|
534
534
|
case "\\'":
|
|
535
535
|
return "'";
|
|
536
536
|
default: {
|
|
537
|
-
const
|
|
538
|
-
return
|
|
537
|
+
const r = parseInt(t || n, 16);
|
|
538
|
+
return r <= 55295 || r >= 57344 ? String.fromCodePoint(r) : "�";
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function ns(e = {}) {
|
|
543
543
|
const t = e.location !== !1, { onError: n } = e;
|
|
544
|
-
function
|
|
544
|
+
function r(f, h, S, c, ...b) {
|
|
545
545
|
const I = f.currentPosition();
|
|
546
546
|
if (I.offset += c, I.column += c, n) {
|
|
547
547
|
const p = t ? Ft(S, I) : null, k = Tt(h, p, {
|
|
548
|
-
domain:
|
|
548
|
+
domain: qr,
|
|
549
549
|
args: b
|
|
550
550
|
});
|
|
551
551
|
n(k);
|
|
@@ -572,14 +572,14 @@ function nr(e = {}) {
|
|
|
572
572
|
}
|
|
573
573
|
function g(f, h) {
|
|
574
574
|
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(9, c, b);
|
|
575
|
-
return I.value = h.replace(
|
|
575
|
+
return I.value = h.replace(es, ts), f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function E(f) {
|
|
578
578
|
const h = f.nextToken(), S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(8, c, b);
|
|
579
|
-
return h.type !== 11 ? (
|
|
579
|
+
return h.type !== 11 ? (r(f, re.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), I.value = "", a(I, c, b), {
|
|
580
580
|
nextConsumeToken: h,
|
|
581
581
|
node: I
|
|
582
|
-
}) : (h.value == null &&
|
|
582
|
+
}) : (h.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, Re(h)), I.value = h.value || "", a(I, f.currentOffset(), f.currentPosition()), {
|
|
583
583
|
node: I
|
|
584
584
|
});
|
|
585
585
|
}
|
|
@@ -591,24 +591,24 @@ function nr(e = {}) {
|
|
|
591
591
|
const h = f.context(), S = l(6, h.offset, h.startLoc);
|
|
592
592
|
let c = f.nextToken();
|
|
593
593
|
if (c.type === 8) {
|
|
594
|
-
const b =
|
|
594
|
+
const b = E(f);
|
|
595
595
|
S.modifier = b.node, c = b.nextConsumeToken || f.nextToken();
|
|
596
596
|
}
|
|
597
|
-
switch (c.type !== 9 &&
|
|
597
|
+
switch (c.type !== 9 && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), c = f.nextToken(), c.type === 2 && (c = f.nextToken()), c.type) {
|
|
598
598
|
case 10:
|
|
599
|
-
c.value == null &&
|
|
599
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), S.key = T(f, c.value || "");
|
|
600
600
|
break;
|
|
601
601
|
case 4:
|
|
602
|
-
c.value == null &&
|
|
602
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), S.key = i(f, c.value || "");
|
|
603
603
|
break;
|
|
604
604
|
case 5:
|
|
605
|
-
c.value == null &&
|
|
605
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), S.key = u(f, c.value || "");
|
|
606
606
|
break;
|
|
607
607
|
case 6:
|
|
608
|
-
c.value == null &&
|
|
608
|
+
c.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(c)), S.key = g(f, c.value || "");
|
|
609
609
|
break;
|
|
610
610
|
default: {
|
|
611
|
-
|
|
611
|
+
r(f, re.UNEXPECTED_EMPTY_LINKED_KEY, h.lastStartLoc, 0);
|
|
612
612
|
const b = f.context(), I = l(7, b.offset, b.startLoc);
|
|
613
613
|
return I.value = "", a(I, b.offset, b.startLoc), S.key = I, a(S, b.offset, b.startLoc), {
|
|
614
614
|
nextConsumeToken: c,
|
|
@@ -628,16 +628,16 @@ function nr(e = {}) {
|
|
|
628
628
|
const L = I || f.nextToken();
|
|
629
629
|
switch (I = null, L.type) {
|
|
630
630
|
case 0:
|
|
631
|
-
L.value == null &&
|
|
631
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(L)), b.items.push(d(f, L.value || ""));
|
|
632
632
|
break;
|
|
633
633
|
case 5:
|
|
634
|
-
L.value == null &&
|
|
634
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(L)), b.items.push(u(f, L.value || ""));
|
|
635
635
|
break;
|
|
636
636
|
case 4:
|
|
637
|
-
L.value == null &&
|
|
637
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(L)), b.items.push(i(f, L.value || ""));
|
|
638
638
|
break;
|
|
639
639
|
case 6:
|
|
640
|
-
L.value == null &&
|
|
640
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Re(L)), b.items.push(g(f, L.value || ""));
|
|
641
641
|
break;
|
|
642
642
|
case 7: {
|
|
643
643
|
const X = N(f);
|
|
@@ -658,25 +658,25 @@ function nr(e = {}) {
|
|
|
658
658
|
const k = F(f);
|
|
659
659
|
I || (I = k.items.length === 0), p.cases.push(k);
|
|
660
660
|
} while (b.currentType !== 13);
|
|
661
|
-
return I &&
|
|
661
|
+
return I && r(f, re.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), a(p, f.currentOffset(), f.currentPosition()), p;
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function A(f) {
|
|
664
664
|
const h = f.context(), { offset: S, startLoc: c } = h, b = F(f);
|
|
665
665
|
return h.currentType === 13 ? b : D(f, S, c, b);
|
|
666
666
|
}
|
|
667
667
|
function w(f) {
|
|
668
|
-
const h =
|
|
669
|
-
return t && c.loc && (c.loc.source = f), c.body =
|
|
668
|
+
const h = Qr(f, Ie({}, e)), S = h.context(), c = l(0, S.offset, S.startLoc);
|
|
669
|
+
return t && c.loc && (c.loc.source = f), c.body = A(h), e.onCacheKey && (c.cacheKey = e.onCacheKey(f)), S.currentType !== 13 && r(h, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, f[S.offset] || ""), a(c, h.currentOffset(), h.currentPosition()), c;
|
|
670
670
|
}
|
|
671
671
|
return { parse: w };
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function Re(e) {
|
|
674
674
|
if (e.type === 13)
|
|
675
675
|
return "EOF";
|
|
676
676
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
677
677
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
678
678
|
}
|
|
679
|
-
function
|
|
679
|
+
function rs(e, t = {}) {
|
|
680
680
|
const n = {
|
|
681
681
|
ast: e,
|
|
682
682
|
helpers: /* @__PURE__ */ new Set()
|
|
@@ -728,16 +728,16 @@ function Jt(e, t) {
|
|
|
728
728
|
break;
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
|
-
function
|
|
732
|
-
const n =
|
|
731
|
+
function ss(e, t = {}) {
|
|
732
|
+
const n = rs(e);
|
|
733
733
|
n.helper(
|
|
734
734
|
"normalize"
|
|
735
735
|
/* HelperNameMap.NORMALIZE */
|
|
736
736
|
), e.body && Jt(e.body, n);
|
|
737
|
-
const
|
|
738
|
-
e.helpers = Array.from(
|
|
737
|
+
const r = n.context();
|
|
738
|
+
e.helpers = Array.from(r.helpers);
|
|
739
739
|
}
|
|
740
|
-
function
|
|
740
|
+
function os(e) {
|
|
741
741
|
const t = e.body;
|
|
742
742
|
return t.type === 2 ? dn(t) : t.cases.forEach((n) => dn(n)), e;
|
|
743
743
|
}
|
|
@@ -748,16 +748,16 @@ function dn(e) {
|
|
|
748
748
|
} else {
|
|
749
749
|
const t = [];
|
|
750
750
|
for (let n = 0; n < e.items.length; n++) {
|
|
751
|
-
const
|
|
752
|
-
if (!(
|
|
751
|
+
const r = e.items[n];
|
|
752
|
+
if (!(r.type === 3 || r.type === 9) || r.value == null)
|
|
753
753
|
break;
|
|
754
|
-
t.push(
|
|
754
|
+
t.push(r.value);
|
|
755
755
|
}
|
|
756
756
|
if (t.length === e.items.length) {
|
|
757
757
|
e.static = $t(t);
|
|
758
758
|
for (let n = 0; n < e.items.length; n++) {
|
|
759
|
-
const
|
|
760
|
-
(
|
|
759
|
+
const r = e.items[n];
|
|
760
|
+
(r.type === 3 || r.type === 9) && delete r.value;
|
|
761
761
|
}
|
|
762
762
|
}
|
|
763
763
|
}
|
|
@@ -771,15 +771,15 @@ function Qe(e) {
|
|
|
771
771
|
}
|
|
772
772
|
case 1: {
|
|
773
773
|
const t = e, n = t.cases;
|
|
774
|
-
for (let
|
|
775
|
-
Qe(n[
|
|
774
|
+
for (let r = 0; r < n.length; r++)
|
|
775
|
+
Qe(n[r]);
|
|
776
776
|
t.c = n, delete t.cases;
|
|
777
777
|
break;
|
|
778
778
|
}
|
|
779
779
|
case 2: {
|
|
780
780
|
const t = e, n = t.items;
|
|
781
|
-
for (let
|
|
782
|
-
Qe(n[
|
|
781
|
+
for (let r = 0; r < n.length; r++)
|
|
782
|
+
Qe(n[r]);
|
|
783
783
|
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
784
784
|
break;
|
|
785
785
|
}
|
|
@@ -809,34 +809,34 @@ function Qe(e) {
|
|
|
809
809
|
}
|
|
810
810
|
delete e.type;
|
|
811
811
|
}
|
|
812
|
-
function
|
|
813
|
-
const { filename: n, breakLineCode:
|
|
812
|
+
function as(e, t) {
|
|
813
|
+
const { filename: n, breakLineCode: r, needIndent: l } = t, a = t.location !== !1, d = {
|
|
814
814
|
filename: n,
|
|
815
815
|
code: "",
|
|
816
816
|
column: 1,
|
|
817
817
|
line: 1,
|
|
818
818
|
offset: 0,
|
|
819
819
|
map: void 0,
|
|
820
|
-
breakLineCode:
|
|
820
|
+
breakLineCode: r,
|
|
821
821
|
needIndent: l,
|
|
822
822
|
indentLevel: 0
|
|
823
823
|
};
|
|
824
824
|
a && e.loc && (d.source = e.loc.source);
|
|
825
825
|
const u = () => d;
|
|
826
|
-
function i(
|
|
827
|
-
d.code +=
|
|
826
|
+
function i(A, w) {
|
|
827
|
+
d.code += A;
|
|
828
828
|
}
|
|
829
|
-
function g(
|
|
830
|
-
const f = w ?
|
|
831
|
-
i(l ? f + " ".repeat(
|
|
829
|
+
function g(A, w = !0) {
|
|
830
|
+
const f = w ? r : "";
|
|
831
|
+
i(l ? f + " ".repeat(A) : f);
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function E(A = !0) {
|
|
834
834
|
const w = ++d.indentLevel;
|
|
835
|
-
|
|
835
|
+
A && g(w);
|
|
836
836
|
}
|
|
837
|
-
function T(
|
|
837
|
+
function T(A = !0) {
|
|
838
838
|
const w = --d.indentLevel;
|
|
839
|
-
|
|
839
|
+
A && g(w);
|
|
840
840
|
}
|
|
841
841
|
function N() {
|
|
842
842
|
g(d.indentLevel);
|
|
@@ -844,61 +844,61 @@ function ar(e, t) {
|
|
|
844
844
|
return {
|
|
845
845
|
context: u,
|
|
846
846
|
push: i,
|
|
847
|
-
indent:
|
|
847
|
+
indent: E,
|
|
848
848
|
deindent: T,
|
|
849
849
|
newline: N,
|
|
850
|
-
helper: (
|
|
850
|
+
helper: (A) => `_${A}`,
|
|
851
851
|
needIndent: () => d.needIndent
|
|
852
852
|
};
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function ls(e, t) {
|
|
855
855
|
const { helper: n } = e;
|
|
856
856
|
e.push(`${n(
|
|
857
857
|
"linked"
|
|
858
858
|
/* HelperNameMap.LINKED */
|
|
859
|
-
)}(`),
|
|
859
|
+
)}(`), st(e, t.key), t.modifier ? (e.push(", "), st(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
860
860
|
}
|
|
861
|
-
function
|
|
862
|
-
const { helper: n, needIndent:
|
|
861
|
+
function is(e, t) {
|
|
862
|
+
const { helper: n, needIndent: r } = e;
|
|
863
863
|
e.push(`${n(
|
|
864
864
|
"normalize"
|
|
865
865
|
/* HelperNameMap.NORMALIZE */
|
|
866
|
-
)}([`), e.indent(
|
|
866
|
+
)}([`), e.indent(r());
|
|
867
867
|
const l = t.items.length;
|
|
868
|
-
for (let a = 0; a < l && (
|
|
868
|
+
for (let a = 0; a < l && (st(e, t.items[a]), a !== l - 1); a++)
|
|
869
869
|
e.push(", ");
|
|
870
|
-
e.deindent(
|
|
870
|
+
e.deindent(r()), e.push("])");
|
|
871
871
|
}
|
|
872
|
-
function
|
|
873
|
-
const { helper: n, needIndent:
|
|
872
|
+
function cs(e, t) {
|
|
873
|
+
const { helper: n, needIndent: r } = e;
|
|
874
874
|
if (t.cases.length > 1) {
|
|
875
875
|
e.push(`${n(
|
|
876
876
|
"plural"
|
|
877
877
|
/* HelperNameMap.PLURAL */
|
|
878
|
-
)}([`), e.indent(
|
|
878
|
+
)}([`), e.indent(r());
|
|
879
879
|
const l = t.cases.length;
|
|
880
|
-
for (let a = 0; a < l && (
|
|
880
|
+
for (let a = 0; a < l && (st(e, t.cases[a]), a !== l - 1); a++)
|
|
881
881
|
e.push(", ");
|
|
882
|
-
e.deindent(
|
|
882
|
+
e.deindent(r()), e.push("])");
|
|
883
883
|
}
|
|
884
884
|
}
|
|
885
|
-
function
|
|
886
|
-
t.body ?
|
|
885
|
+
function us(e, t) {
|
|
886
|
+
t.body ? st(e, t.body) : e.push("null");
|
|
887
887
|
}
|
|
888
|
-
function
|
|
888
|
+
function st(e, t) {
|
|
889
889
|
const { helper: n } = e;
|
|
890
890
|
switch (t.type) {
|
|
891
891
|
case 0:
|
|
892
|
-
|
|
892
|
+
us(e, t);
|
|
893
893
|
break;
|
|
894
894
|
case 1:
|
|
895
|
-
|
|
895
|
+
cs(e, t);
|
|
896
896
|
break;
|
|
897
897
|
case 2:
|
|
898
|
-
|
|
898
|
+
is(e, t);
|
|
899
899
|
break;
|
|
900
900
|
case 6:
|
|
901
|
-
|
|
901
|
+
ls(e, t);
|
|
902
902
|
break;
|
|
903
903
|
case 8:
|
|
904
904
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -932,16 +932,16 @@ function rt(e, t) {
|
|
|
932
932
|
break;
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
|
-
const
|
|
936
|
-
const n = Z(t.mode) ? t.mode : "normal",
|
|
935
|
+
const ds = (e, t = {}) => {
|
|
936
|
+
const n = Z(t.mode) ? t.mode : "normal", r = Z(t.filename) ? t.filename : "message.intl";
|
|
937
937
|
t.sourceMap;
|
|
938
938
|
const l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
939
|
-
`, a = t.needIndent ? t.needIndent : n !== "arrow", d = e.helpers || [], u =
|
|
940
|
-
filename:
|
|
939
|
+
`, a = t.needIndent ? t.needIndent : n !== "arrow", d = e.helpers || [], u = as(e, {
|
|
940
|
+
filename: r,
|
|
941
941
|
breakLineCode: l,
|
|
942
942
|
needIndent: a
|
|
943
943
|
});
|
|
944
|
-
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), d.length > 0 && (u.push(`const { ${$t(d.map((
|
|
944
|
+
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), d.length > 0 && (u.push(`const { ${$t(d.map((E) => `${E}: _${E}`), ", ")} } = ctx`), u.newline()), u.push("return "), st(u, e), u.deindent(a), u.push("}"), delete e.helpers;
|
|
945
945
|
const { code: i, map: g } = u.context();
|
|
946
946
|
return {
|
|
947
947
|
ast: e,
|
|
@@ -950,26 +950,26 @@ const dr = (e, t = {}) => {
|
|
|
950
950
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
951
951
|
};
|
|
952
952
|
};
|
|
953
|
-
function
|
|
954
|
-
const n = Ie({}, t),
|
|
955
|
-
return
|
|
953
|
+
function ms(e, t = {}) {
|
|
954
|
+
const n = Ie({}, t), r = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize, u = ns(n).parse(e);
|
|
955
|
+
return r ? (a && os(u), l && Qe(u), { ast: u, code: "" }) : (ss(u, n), ds(u, n));
|
|
956
956
|
}
|
|
957
|
-
var
|
|
958
|
-
function
|
|
957
|
+
var fs = { env: { NODE_ENV: "production" } };
|
|
958
|
+
function _s() {
|
|
959
959
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Xe().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Xe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
960
960
|
}
|
|
961
|
-
function
|
|
962
|
-
return (n) =>
|
|
961
|
+
function At(e) {
|
|
962
|
+
return (n) => ps(n, e);
|
|
963
963
|
}
|
|
964
|
-
function
|
|
965
|
-
const n =
|
|
964
|
+
function ps(e, t) {
|
|
965
|
+
const n = hs(t);
|
|
966
966
|
if (n == null)
|
|
967
967
|
throw it(
|
|
968
968
|
0
|
|
969
969
|
/* NodeTypes.Resource */
|
|
970
970
|
);
|
|
971
971
|
if (zt(n) === 1) {
|
|
972
|
-
const a =
|
|
972
|
+
const a = gs(n);
|
|
973
973
|
return e.plural(a.reduce((d, u) => [
|
|
974
974
|
...d,
|
|
975
975
|
mn(e, u)
|
|
@@ -977,30 +977,30 @@ function pr(e, t) {
|
|
|
977
977
|
} else
|
|
978
978
|
return mn(e, n);
|
|
979
979
|
}
|
|
980
|
-
const
|
|
981
|
-
function
|
|
982
|
-
return Ge(e,
|
|
980
|
+
const vs = ["b", "body"];
|
|
981
|
+
function hs(e) {
|
|
982
|
+
return Ge(e, vs);
|
|
983
983
|
}
|
|
984
|
-
const
|
|
985
|
-
function
|
|
986
|
-
return Ge(e,
|
|
984
|
+
const bs = ["c", "cases"];
|
|
985
|
+
function gs(e) {
|
|
986
|
+
return Ge(e, bs, []);
|
|
987
987
|
}
|
|
988
988
|
function mn(e, t) {
|
|
989
|
-
const n =
|
|
989
|
+
const n = Es(t);
|
|
990
990
|
if (n != null)
|
|
991
991
|
return e.type === "text" ? n : e.normalize([n]);
|
|
992
992
|
{
|
|
993
|
-
const
|
|
994
|
-
return e.normalize(
|
|
993
|
+
const r = Ns(t).reduce((l, a) => [...l, Pt(e, a)], []);
|
|
994
|
+
return e.normalize(r);
|
|
995
995
|
}
|
|
996
996
|
}
|
|
997
|
-
const
|
|
998
|
-
function
|
|
999
|
-
return Ge(e,
|
|
997
|
+
const Is = ["s", "static"];
|
|
998
|
+
function Es(e) {
|
|
999
|
+
return Ge(e, Is);
|
|
1000
1000
|
}
|
|
1001
|
-
const
|
|
1002
|
-
function
|
|
1003
|
-
return Ge(e,
|
|
1001
|
+
const ys = ["i", "items"];
|
|
1002
|
+
function Ns(e) {
|
|
1003
|
+
return Ge(e, ys, []);
|
|
1004
1004
|
}
|
|
1005
1005
|
function Pt(e, t) {
|
|
1006
1006
|
const n = zt(t);
|
|
@@ -1010,23 +1010,23 @@ function Pt(e, t) {
|
|
|
1010
1010
|
case 9:
|
|
1011
1011
|
return _t(t, n);
|
|
1012
1012
|
case 4: {
|
|
1013
|
-
const
|
|
1014
|
-
if (Le(
|
|
1015
|
-
return e.interpolate(e.named(
|
|
1016
|
-
if (Le(
|
|
1017
|
-
return e.interpolate(e.named(
|
|
1013
|
+
const r = t;
|
|
1014
|
+
if (Le(r, "k") && r.k)
|
|
1015
|
+
return e.interpolate(e.named(r.k));
|
|
1016
|
+
if (Le(r, "key") && r.key)
|
|
1017
|
+
return e.interpolate(e.named(r.key));
|
|
1018
1018
|
throw it(n);
|
|
1019
1019
|
}
|
|
1020
1020
|
case 5: {
|
|
1021
|
-
const
|
|
1022
|
-
if (Le(
|
|
1023
|
-
return e.interpolate(e.list(
|
|
1024
|
-
if (Le(
|
|
1025
|
-
return e.interpolate(e.list(
|
|
1021
|
+
const r = t;
|
|
1022
|
+
if (Le(r, "i") && ge(r.i))
|
|
1023
|
+
return e.interpolate(e.list(r.i));
|
|
1024
|
+
if (Le(r, "index") && ge(r.index))
|
|
1025
|
+
return e.interpolate(e.list(r.index));
|
|
1026
1026
|
throw it(n);
|
|
1027
1027
|
}
|
|
1028
1028
|
case 6: {
|
|
1029
|
-
const
|
|
1029
|
+
const r = t, l = Ss(r), a = As(r);
|
|
1030
1030
|
return e.linked(Pt(e, a), l ? Pt(e, l) : void 0, e.type);
|
|
1031
1031
|
}
|
|
1032
1032
|
case 7:
|
|
@@ -1037,24 +1037,24 @@ function Pt(e, t) {
|
|
|
1037
1037
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
|
-
const
|
|
1040
|
+
const Cs = ["t", "type"];
|
|
1041
1041
|
function zt(e) {
|
|
1042
|
-
return Ge(e,
|
|
1042
|
+
return Ge(e, Cs);
|
|
1043
1043
|
}
|
|
1044
|
-
const
|
|
1044
|
+
const Ts = ["v", "value"];
|
|
1045
1045
|
function _t(e, t) {
|
|
1046
|
-
const n = Ge(e,
|
|
1046
|
+
const n = Ge(e, Ts);
|
|
1047
1047
|
if (n)
|
|
1048
1048
|
return n;
|
|
1049
1049
|
throw it(t);
|
|
1050
1050
|
}
|
|
1051
|
-
const
|
|
1052
|
-
function
|
|
1053
|
-
return Ge(e,
|
|
1051
|
+
const Os = ["m", "modifier"];
|
|
1052
|
+
function Ss(e) {
|
|
1053
|
+
return Ge(e, Os);
|
|
1054
1054
|
}
|
|
1055
|
-
const
|
|
1056
|
-
function
|
|
1057
|
-
const t = Ge(e,
|
|
1055
|
+
const Ls = ["k", "key"];
|
|
1056
|
+
function As(e) {
|
|
1057
|
+
const t = Ge(e, Ls);
|
|
1058
1058
|
if (t)
|
|
1059
1059
|
return t;
|
|
1060
1060
|
throw it(
|
|
@@ -1063,8 +1063,8 @@ function Rr(e) {
|
|
|
1063
1063
|
);
|
|
1064
1064
|
}
|
|
1065
1065
|
function Ge(e, t, n) {
|
|
1066
|
-
for (let
|
|
1067
|
-
const l = t[
|
|
1066
|
+
for (let r = 0; r < t.length; r++) {
|
|
1067
|
+
const l = t[r];
|
|
1068
1068
|
if (Le(e, l) && e[l] != null)
|
|
1069
1069
|
return e[l];
|
|
1070
1070
|
}
|
|
@@ -1073,45 +1073,45 @@ function Ge(e, t, n) {
|
|
|
1073
1073
|
function it(e) {
|
|
1074
1074
|
return new Error(`unhandled node type: ${e}`);
|
|
1075
1075
|
}
|
|
1076
|
-
const
|
|
1076
|
+
const Rs = (e) => e;
|
|
1077
1077
|
let pt = oe();
|
|
1078
1078
|
function ot(e) {
|
|
1079
1079
|
return te(e) && zt(e) === 0 && (Le(e, "b") || Le(e, "body"));
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1081
|
+
function ks(e, t = {}) {
|
|
1082
1082
|
let n = !1;
|
|
1083
|
-
const
|
|
1083
|
+
const r = t.onError || Br;
|
|
1084
1084
|
return t.onError = (l) => {
|
|
1085
|
-
n = !0,
|
|
1086
|
-
}, { ...
|
|
1085
|
+
n = !0, r(l);
|
|
1086
|
+
}, { ...ms(e, t), detectError: n };
|
|
1087
1087
|
}
|
|
1088
1088
|
// @__NO_SIDE_EFFECTS__
|
|
1089
|
-
function
|
|
1089
|
+
function Ms(e, t) {
|
|
1090
1090
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && Z(e)) {
|
|
1091
1091
|
ve(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1092
|
-
const
|
|
1092
|
+
const r = (t.onCacheKey || Rs)(e), l = pt[r];
|
|
1093
1093
|
if (l)
|
|
1094
1094
|
return l;
|
|
1095
|
-
const { ast: a, detectError: d } =
|
|
1095
|
+
const { ast: a, detectError: d } = ks(e, {
|
|
1096
1096
|
...t,
|
|
1097
|
-
location:
|
|
1097
|
+
location: fs.env.NODE_ENV !== "production",
|
|
1098
1098
|
jit: !0
|
|
1099
|
-
}), u =
|
|
1100
|
-
return d ? u : pt[
|
|
1099
|
+
}), u = At(a);
|
|
1100
|
+
return d ? u : pt[r] = u;
|
|
1101
1101
|
} else {
|
|
1102
1102
|
const n = e.cacheKey;
|
|
1103
1103
|
if (n) {
|
|
1104
|
-
const
|
|
1105
|
-
return
|
|
1104
|
+
const r = pt[n];
|
|
1105
|
+
return r || (pt[n] = At(e));
|
|
1106
1106
|
} else
|
|
1107
|
-
return
|
|
1107
|
+
return At(e);
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
1110
|
let ct = null;
|
|
1111
|
-
function
|
|
1111
|
+
function Ds(e) {
|
|
1112
1112
|
ct = e;
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1114
|
+
function ws(e, t, n) {
|
|
1115
1115
|
ct && ct.emit("i18n:init", {
|
|
1116
1116
|
timestamp: Date.now(),
|
|
1117
1117
|
i18n: e,
|
|
@@ -1119,87 +1119,87 @@ function wr(e, t, n) {
|
|
|
1119
1119
|
meta: n
|
|
1120
1120
|
});
|
|
1121
1121
|
}
|
|
1122
|
-
const
|
|
1123
|
-
function
|
|
1122
|
+
const Fs = /* @__PURE__ */ Ps("function:translate");
|
|
1123
|
+
function Ps(e) {
|
|
1124
1124
|
return (t) => ct && ct.emit(e, t);
|
|
1125
1125
|
}
|
|
1126
1126
|
const je = {
|
|
1127
|
-
INVALID_ARGUMENT:
|
|
1127
|
+
INVALID_ARGUMENT: Yr,
|
|
1128
1128
|
// 17
|
|
1129
1129
|
INVALID_DATE_ARGUMENT: 18,
|
|
1130
1130
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
1131
1131
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1132
1132
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1133
1133
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1134
|
-
},
|
|
1134
|
+
}, js = 24;
|
|
1135
1135
|
function Ue(e) {
|
|
1136
1136
|
return Tt(e, null, void 0);
|
|
1137
1137
|
}
|
|
1138
1138
|
function Kt(e, t) {
|
|
1139
1139
|
return t.locale != null ? fn(t.locale) : fn(e.locale);
|
|
1140
1140
|
}
|
|
1141
|
-
let
|
|
1141
|
+
let Rt;
|
|
1142
1142
|
function fn(e) {
|
|
1143
1143
|
if (Z(e))
|
|
1144
1144
|
return e;
|
|
1145
1145
|
if (me(e)) {
|
|
1146
|
-
if (e.resolvedOnce &&
|
|
1147
|
-
return
|
|
1146
|
+
if (e.resolvedOnce && Rt != null)
|
|
1147
|
+
return Rt;
|
|
1148
1148
|
if (e.constructor.name === "Function") {
|
|
1149
1149
|
const t = e();
|
|
1150
|
-
if (
|
|
1150
|
+
if (Vr(t))
|
|
1151
1151
|
throw Ue(je.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1152
|
-
return
|
|
1152
|
+
return Rt = t;
|
|
1153
1153
|
} else
|
|
1154
1154
|
throw Ue(je.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1155
1155
|
} else
|
|
1156
1156
|
throw Ue(je.NOT_SUPPORT_LOCALE_TYPE);
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1158
|
+
function Us(e, t, n) {
|
|
1159
1159
|
return [.../* @__PURE__ */ new Set([
|
|
1160
1160
|
n,
|
|
1161
1161
|
...be(t) ? t : te(t) ? Object.keys(t) : Z(t) ? [t] : [n]
|
|
1162
1162
|
])];
|
|
1163
1163
|
}
|
|
1164
1164
|
function Hn(e, t, n) {
|
|
1165
|
-
const
|
|
1165
|
+
const r = Z(n) ? n : Nt, l = e;
|
|
1166
1166
|
l.__localeChainCache || (l.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1167
|
-
let a = l.__localeChainCache.get(
|
|
1167
|
+
let a = l.__localeChainCache.get(r);
|
|
1168
1168
|
if (!a) {
|
|
1169
1169
|
a = [];
|
|
1170
1170
|
let d = [n];
|
|
1171
1171
|
for (; be(d); )
|
|
1172
1172
|
d = _n(a, d, t);
|
|
1173
1173
|
const u = be(t) || !ee(t) ? t : t.default ? t.default : null;
|
|
1174
|
-
d = Z(u) ? [u] : u, be(d) && _n(a, d, !1), l.__localeChainCache.set(
|
|
1174
|
+
d = Z(u) ? [u] : u, be(d) && _n(a, d, !1), l.__localeChainCache.set(r, a);
|
|
1175
1175
|
}
|
|
1176
1176
|
return a;
|
|
1177
1177
|
}
|
|
1178
1178
|
function _n(e, t, n) {
|
|
1179
|
-
let
|
|
1180
|
-
for (let l = 0; l < t.length && ve(
|
|
1179
|
+
let r = !0;
|
|
1180
|
+
for (let l = 0; l < t.length && ve(r); l++) {
|
|
1181
1181
|
const a = t[l];
|
|
1182
|
-
Z(a) && (
|
|
1182
|
+
Z(a) && (r = xs(e, t[l], n));
|
|
1183
1183
|
}
|
|
1184
|
-
return
|
|
1184
|
+
return r;
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1187
|
-
let
|
|
1186
|
+
function xs(e, t, n) {
|
|
1187
|
+
let r;
|
|
1188
1188
|
const l = t.split("-");
|
|
1189
1189
|
do {
|
|
1190
1190
|
const a = l.join("-");
|
|
1191
|
-
|
|
1192
|
-
} while (l.length &&
|
|
1193
|
-
return
|
|
1194
|
-
}
|
|
1195
|
-
function
|
|
1196
|
-
let
|
|
1197
|
-
if (!e.includes(t) && (
|
|
1198
|
-
|
|
1191
|
+
r = Vs(e, a, n), l.splice(-1, 1);
|
|
1192
|
+
} while (l.length && r === !0);
|
|
1193
|
+
return r;
|
|
1194
|
+
}
|
|
1195
|
+
function Vs(e, t, n) {
|
|
1196
|
+
let r = !1;
|
|
1197
|
+
if (!e.includes(t) && (r = !0, t)) {
|
|
1198
|
+
r = t[t.length - 1] !== "!";
|
|
1199
1199
|
const l = t.replace(/!/g, "");
|
|
1200
|
-
e.push(l), (be(n) || ee(n)) && n[l] && (
|
|
1200
|
+
e.push(l), (be(n) || ee(n)) && n[l] && (r = n[l]);
|
|
1201
1201
|
}
|
|
1202
|
-
return
|
|
1202
|
+
return r;
|
|
1203
1203
|
}
|
|
1204
1204
|
const Ze = [];
|
|
1205
1205
|
Ze[
|
|
@@ -1362,15 +1362,15 @@ Ze[
|
|
|
1362
1362
|
/* Actions.APPEND */
|
|
1363
1363
|
]
|
|
1364
1364
|
};
|
|
1365
|
-
const
|
|
1366
|
-
function
|
|
1367
|
-
return
|
|
1365
|
+
const Ws = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1366
|
+
function Gs(e) {
|
|
1367
|
+
return Ws.test(e);
|
|
1368
1368
|
}
|
|
1369
|
-
function
|
|
1369
|
+
function Zs(e) {
|
|
1370
1370
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1371
1371
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function Ys(e) {
|
|
1374
1374
|
if (e == null)
|
|
1375
1375
|
return "o";
|
|
1376
1376
|
switch (e.charCodeAt(0)) {
|
|
@@ -1395,13 +1395,13 @@ function Br(e) {
|
|
|
1395
1395
|
}
|
|
1396
1396
|
return "i";
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1398
|
+
function Bs(e) {
|
|
1399
1399
|
const t = e.trim();
|
|
1400
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1400
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Gs(t) ? Zs(t) : "*" + t;
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1402
|
+
function Xs(e) {
|
|
1403
1403
|
const t = [];
|
|
1404
|
-
let n = -1,
|
|
1404
|
+
let n = -1, r = 0, l = 0, a, d, u, i, g, E, T;
|
|
1405
1405
|
const N = [];
|
|
1406
1406
|
N[
|
|
1407
1407
|
0
|
|
@@ -1426,12 +1426,12 @@ function Xr(e) {
|
|
|
1426
1426
|
/* Actions.PUSH_SUB_PATH */
|
|
1427
1427
|
] = () => {
|
|
1428
1428
|
if (l > 0)
|
|
1429
|
-
l--,
|
|
1429
|
+
l--, r = 4, N[
|
|
1430
1430
|
0
|
|
1431
1431
|
/* Actions.APPEND */
|
|
1432
1432
|
]();
|
|
1433
1433
|
else {
|
|
1434
|
-
if (l = 0, d === void 0 || (d =
|
|
1434
|
+
if (l = 0, d === void 0 || (d = Bs(d), d === !1))
|
|
1435
1435
|
return !1;
|
|
1436
1436
|
N[
|
|
1437
1437
|
1
|
|
@@ -1441,33 +1441,33 @@ function Xr(e) {
|
|
|
1441
1441
|
};
|
|
1442
1442
|
function F() {
|
|
1443
1443
|
const D = e[n + 1];
|
|
1444
|
-
if (
|
|
1444
|
+
if (r === 5 && D === "'" || r === 6 && D === '"')
|
|
1445
1445
|
return n++, u = "\\" + D, N[
|
|
1446
1446
|
0
|
|
1447
1447
|
/* Actions.APPEND */
|
|
1448
1448
|
](), !0;
|
|
1449
1449
|
}
|
|
1450
|
-
for (;
|
|
1450
|
+
for (; r !== null; )
|
|
1451
1451
|
if (n++, a = e[n], !(a === "\\" && F())) {
|
|
1452
|
-
if (i =
|
|
1452
|
+
if (i = Ys(a), T = Ze[r], g = T[i] || T.l || 8, g === 8 || (r = g[0], g[1] !== void 0 && (E = N[g[1]], E && (u = a, E() === !1))))
|
|
1453
1453
|
return;
|
|
1454
|
-
if (
|
|
1454
|
+
if (r === 7)
|
|
1455
1455
|
return t;
|
|
1456
1456
|
}
|
|
1457
1457
|
}
|
|
1458
1458
|
const pn = /* @__PURE__ */ new Map();
|
|
1459
|
-
function
|
|
1459
|
+
function Hs(e, t) {
|
|
1460
1460
|
return te(e) ? e[t] : null;
|
|
1461
1461
|
}
|
|
1462
|
-
function $
|
|
1462
|
+
function $s(e, t) {
|
|
1463
1463
|
if (!te(e))
|
|
1464
1464
|
return null;
|
|
1465
1465
|
let n = pn.get(t);
|
|
1466
|
-
if (n || (n =
|
|
1466
|
+
if (n || (n = Xs(t), n && pn.set(t, n)), !n)
|
|
1467
1467
|
return null;
|
|
1468
|
-
const
|
|
1468
|
+
const r = n.length;
|
|
1469
1469
|
let l = e, a = 0;
|
|
1470
|
-
for (; a <
|
|
1470
|
+
for (; a < r; ) {
|
|
1471
1471
|
const d = l[n[a]];
|
|
1472
1472
|
if (d === void 0 || me(l))
|
|
1473
1473
|
return null;
|
|
@@ -1475,8 +1475,8 @@ function $r(e, t) {
|
|
|
1475
1475
|
}
|
|
1476
1476
|
return l;
|
|
1477
1477
|
}
|
|
1478
|
-
const
|
|
1479
|
-
function
|
|
1478
|
+
const Js = "10.0.5", Ot = -1, Nt = "en-US", vn = "", hn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1479
|
+
function zs() {
|
|
1480
1480
|
return {
|
|
1481
1481
|
upper: (e, t) => t === "text" && Z(e) ? e.toUpperCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1482
1482
|
lower: (e, t) => t === "text" && Z(e) ? e.toLowerCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
@@ -1484,15 +1484,15 @@ function zr() {
|
|
|
1484
1484
|
};
|
|
1485
1485
|
}
|
|
1486
1486
|
let $n;
|
|
1487
|
-
function
|
|
1487
|
+
function Ks(e) {
|
|
1488
1488
|
$n = e;
|
|
1489
1489
|
}
|
|
1490
1490
|
let Jn;
|
|
1491
|
-
function
|
|
1491
|
+
function Qs(e) {
|
|
1492
1492
|
Jn = e;
|
|
1493
1493
|
}
|
|
1494
1494
|
let zn;
|
|
1495
|
-
function
|
|
1495
|
+
function qs(e) {
|
|
1496
1496
|
zn = e;
|
|
1497
1497
|
}
|
|
1498
1498
|
let Kn = null;
|
|
@@ -1504,22 +1504,22 @@ const bn = (e) => {
|
|
|
1504
1504
|
Qn = e;
|
|
1505
1505
|
}, no = () => Qn;
|
|
1506
1506
|
let gn = 0;
|
|
1507
|
-
function
|
|
1508
|
-
const t = me(e.onWarn) ? e.onWarn :
|
|
1507
|
+
function ro(e = {}) {
|
|
1508
|
+
const t = me(e.onWarn) ? e.onWarn : Gr, n = Z(e.version) ? e.version : Js, r = Z(e.locale) || me(e.locale) ? e.locale : Nt, l = me(r) ? Nt : r, a = be(e.fallbackLocale) || ee(e.fallbackLocale) || Z(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, d = ee(e.messages) ? e.messages : kt(l), u = ee(e.datetimeFormats) ? e.datetimeFormats : kt(l), i = ee(e.numberFormats) ? e.numberFormats : kt(l), g = Ie(oe(), e.modifiers, zs()), E = e.pluralRules || oe(), T = me(e.missing) ? e.missing : null, N = ve(e.missingWarn) || yt(e.missingWarn) ? e.missingWarn : !0, F = ve(e.fallbackWarn) || yt(e.fallbackWarn) ? e.fallbackWarn : !0, D = !!e.fallbackFormat, A = !!e.unresolving, w = me(e.postTranslation) ? e.postTranslation : null, f = ee(e.processor) ? e.processor : null, h = ve(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, c = me(e.messageCompiler) ? e.messageCompiler : $n, b = me(e.messageResolver) ? e.messageResolver : Jn || Hs, I = me(e.localeFallbacker) ? e.localeFallbacker : zn || Us, p = te(e.fallbackContext) ? e.fallbackContext : void 0, k = e, L = te(k.__datetimeFormatters) ? k.__datetimeFormatters : /* @__PURE__ */ new Map(), X = te(k.__numberFormatters) ? k.__numberFormatters : /* @__PURE__ */ new Map(), V = te(k.__meta) ? k.__meta : {};
|
|
1509
1509
|
gn++;
|
|
1510
1510
|
const m = {
|
|
1511
1511
|
version: n,
|
|
1512
1512
|
cid: gn,
|
|
1513
|
-
locale:
|
|
1513
|
+
locale: r,
|
|
1514
1514
|
fallbackLocale: a,
|
|
1515
1515
|
messages: d,
|
|
1516
1516
|
modifiers: g,
|
|
1517
|
-
pluralRules:
|
|
1517
|
+
pluralRules: E,
|
|
1518
1518
|
missing: T,
|
|
1519
1519
|
missingWarn: N,
|
|
1520
1520
|
fallbackWarn: F,
|
|
1521
1521
|
fallbackFormat: D,
|
|
1522
|
-
unresolving:
|
|
1522
|
+
unresolving: A,
|
|
1523
1523
|
postTranslation: w,
|
|
1524
1524
|
processor: f,
|
|
1525
1525
|
warnHtmlMessage: h,
|
|
@@ -1531,10 +1531,10 @@ function so(e = {}) {
|
|
|
1531
1531
|
onWarn: t,
|
|
1532
1532
|
__meta: V
|
|
1533
1533
|
};
|
|
1534
|
-
return m.datetimeFormats = u, m.numberFormats = i, m.__datetimeFormatters = L, m.__numberFormatters = X, __INTLIFY_PROD_DEVTOOLS__ &&
|
|
1534
|
+
return m.datetimeFormats = u, m.numberFormats = i, m.__datetimeFormatters = L, m.__numberFormatters = X, __INTLIFY_PROD_DEVTOOLS__ && ws(m, n, V), m;
|
|
1535
1535
|
}
|
|
1536
1536
|
const kt = (e) => ({ [e]: oe() });
|
|
1537
|
-
function Qt(e, t, n,
|
|
1537
|
+
function Qt(e, t, n, r, l) {
|
|
1538
1538
|
const { missing: a, onWarn: d } = e;
|
|
1539
1539
|
if (a !== null) {
|
|
1540
1540
|
const u = a(e, n, t, l);
|
|
@@ -1543,25 +1543,25 @@ function Qt(e, t, n, s, l) {
|
|
|
1543
1543
|
return t;
|
|
1544
1544
|
}
|
|
1545
1545
|
function lt(e, t, n) {
|
|
1546
|
-
const
|
|
1547
|
-
|
|
1546
|
+
const r = e;
|
|
1547
|
+
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1548
1548
|
}
|
|
1549
|
-
function
|
|
1549
|
+
function so(e, t) {
|
|
1550
1550
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1551
1551
|
}
|
|
1552
1552
|
function oo(e, t) {
|
|
1553
1553
|
const n = t.indexOf(e);
|
|
1554
1554
|
if (n === -1)
|
|
1555
1555
|
return !1;
|
|
1556
|
-
for (let
|
|
1557
|
-
if (
|
|
1556
|
+
for (let r = n + 1; r < t.length; r++)
|
|
1557
|
+
if (so(e, t[r]))
|
|
1558
1558
|
return !0;
|
|
1559
1559
|
return !1;
|
|
1560
1560
|
}
|
|
1561
1561
|
function In(e, ...t) {
|
|
1562
|
-
const { datetimeFormats: n, unresolving:
|
|
1563
|
-
ve(
|
|
1564
|
-
const F = !!
|
|
1562
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __datetimeFormatters: u } = e, [i, g, E, T] = jt(...t), N = ve(E.missingWarn) ? E.missingWarn : e.missingWarn;
|
|
1563
|
+
ve(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn;
|
|
1564
|
+
const F = !!E.part, D = Kt(e, E), A = d(
|
|
1565
1565
|
e,
|
|
1566
1566
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1567
1567
|
l,
|
|
@@ -1571,10 +1571,10 @@ function In(e, ...t) {
|
|
|
1571
1571
|
return new Intl.DateTimeFormat(D, T).format(g);
|
|
1572
1572
|
let w = {}, f, h = null;
|
|
1573
1573
|
const S = "datetime format";
|
|
1574
|
-
for (let I = 0; I <
|
|
1574
|
+
for (let I = 0; I < A.length && (f = A[I], w = n[f] || {}, h = w[i], !ee(h)); I++)
|
|
1575
1575
|
Qt(e, i, f, N, S);
|
|
1576
1576
|
if (!ee(h) || !Z(f))
|
|
1577
|
-
return
|
|
1577
|
+
return r ? Ot : i;
|
|
1578
1578
|
let c = `${f}__${i}`;
|
|
1579
1579
|
Ct(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
1580
1580
|
let b = u.get(c);
|
|
@@ -1603,7 +1603,7 @@ const qn = [
|
|
|
1603
1603
|
"fractionalSecondDigits"
|
|
1604
1604
|
];
|
|
1605
1605
|
function jt(...e) {
|
|
1606
|
-
const [t, n,
|
|
1606
|
+
const [t, n, r, l] = e, a = oe();
|
|
1607
1607
|
let d = oe(), u;
|
|
1608
1608
|
if (Z(t)) {
|
|
1609
1609
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
@@ -1616,7 +1616,7 @@ function jt(...e) {
|
|
|
1616
1616
|
} catch {
|
|
1617
1617
|
throw Ue(je.INVALID_ISO_DATE_ARGUMENT);
|
|
1618
1618
|
}
|
|
1619
|
-
} else if (
|
|
1619
|
+
} else if (jr(t)) {
|
|
1620
1620
|
if (isNaN(t.getTime()))
|
|
1621
1621
|
throw Ue(je.INVALID_DATE_ARGUMENT);
|
|
1622
1622
|
u = t;
|
|
@@ -1626,19 +1626,19 @@ function jt(...e) {
|
|
|
1626
1626
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1627
1627
|
return Z(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1628
1628
|
qn.includes(i) ? d[i] = n[i] : a[i] = n[i];
|
|
1629
|
-
}), Z(
|
|
1629
|
+
}), Z(r) ? a.locale = r : ee(r) && (d = r), ee(l) && (d = l), [a.key || "", u, a, d];
|
|
1630
1630
|
}
|
|
1631
|
-
function
|
|
1632
|
-
const
|
|
1631
|
+
function En(e, t, n) {
|
|
1632
|
+
const r = e;
|
|
1633
1633
|
for (const l in n) {
|
|
1634
1634
|
const a = `${t}__${l}`;
|
|
1635
|
-
|
|
1635
|
+
r.__datetimeFormatters.has(a) && r.__datetimeFormatters.delete(a);
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
1638
|
-
function
|
|
1639
|
-
const { numberFormats: n, unresolving:
|
|
1640
|
-
ve(
|
|
1641
|
-
const F = !!
|
|
1638
|
+
function yn(e, ...t) {
|
|
1639
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __numberFormatters: u } = e, [i, g, E, T] = Ut(...t), N = ve(E.missingWarn) ? E.missingWarn : e.missingWarn;
|
|
1640
|
+
ve(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn;
|
|
1641
|
+
const F = !!E.part, D = Kt(e, E), A = d(
|
|
1642
1642
|
e,
|
|
1643
1643
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1644
1644
|
l,
|
|
@@ -1648,16 +1648,16 @@ function En(e, ...t) {
|
|
|
1648
1648
|
return new Intl.NumberFormat(D, T).format(g);
|
|
1649
1649
|
let w = {}, f, h = null;
|
|
1650
1650
|
const S = "number format";
|
|
1651
|
-
for (let I = 0; I <
|
|
1651
|
+
for (let I = 0; I < A.length && (f = A[I], w = n[f] || {}, h = w[i], !ee(h)); I++)
|
|
1652
1652
|
Qt(e, i, f, N, S);
|
|
1653
1653
|
if (!ee(h) || !Z(f))
|
|
1654
|
-
return
|
|
1654
|
+
return r ? Ot : i;
|
|
1655
1655
|
let c = `${f}__${i}`;
|
|
1656
1656
|
Ct(T) || (c = `${c}__${JSON.stringify(T)}`);
|
|
1657
1657
|
let b = u.get(c);
|
|
1658
1658
|
return b || (b = new Intl.NumberFormat(f, Ie({}, h, T)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1659
1659
|
}
|
|
1660
|
-
const
|
|
1660
|
+
const er = [
|
|
1661
1661
|
"localeMatcher",
|
|
1662
1662
|
"style",
|
|
1663
1663
|
"currency",
|
|
@@ -1680,23 +1680,23 @@ const es = [
|
|
|
1680
1680
|
"trailingZeroDisplay"
|
|
1681
1681
|
];
|
|
1682
1682
|
function Ut(...e) {
|
|
1683
|
-
const [t, n,
|
|
1683
|
+
const [t, n, r, l] = e, a = oe();
|
|
1684
1684
|
let d = oe();
|
|
1685
1685
|
if (!ge(t))
|
|
1686
1686
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1687
1687
|
const u = t;
|
|
1688
1688
|
return Z(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1689
|
-
|
|
1690
|
-
}), Z(
|
|
1689
|
+
er.includes(i) ? d[i] = n[i] : a[i] = n[i];
|
|
1690
|
+
}), Z(r) ? a.locale = r : ee(r) && (d = r), ee(l) && (d = l), [a.key || "", u, a, d];
|
|
1691
1691
|
}
|
|
1692
1692
|
function Nn(e, t, n) {
|
|
1693
|
-
const
|
|
1693
|
+
const r = e;
|
|
1694
1694
|
for (const l in n) {
|
|
1695
1695
|
const a = `${t}__${l}`;
|
|
1696
|
-
|
|
1696
|
+
r.__numberFormatters.has(a) && r.__numberFormatters.delete(a);
|
|
1697
1697
|
}
|
|
1698
1698
|
}
|
|
1699
|
-
const ao = (e) => e, lo = (e) => "", io = "text", co = (e) => e.length === 0 ? "" : $t(e), uo =
|
|
1699
|
+
const ao = (e) => e, lo = (e) => "", io = "text", co = (e) => e.length === 0 ? "" : $t(e), uo = Wr;
|
|
1700
1700
|
function Cn(e, t) {
|
|
1701
1701
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1702
1702
|
}
|
|
@@ -1708,10 +1708,10 @@ function fo(e, t) {
|
|
|
1708
1708
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1709
1709
|
}
|
|
1710
1710
|
function _o(e = {}) {
|
|
1711
|
-
const t = e.locale, n = mo(e),
|
|
1711
|
+
const t = e.locale, n = mo(e), r = te(e.pluralRules) && Z(t) && me(e.pluralRules[t]) ? e.pluralRules[t] : Cn, l = te(e.pluralRules) && Z(t) && me(e.pluralRules[t]) ? Cn : void 0, a = (f) => f[r(n, f.length, l)], d = e.list || [], u = (f) => d[f], i = e.named || oe();
|
|
1712
1712
|
ge(e.pluralIndex) && fo(n, i);
|
|
1713
1713
|
const g = (f) => i[f];
|
|
1714
|
-
function
|
|
1714
|
+
function E(f, h) {
|
|
1715
1715
|
const S = me(e.messages) ? e.messages(f, !!h) : te(e.messages) ? e.messages[f] : !1;
|
|
1716
1716
|
return S || (e.parent ? e.parent.message(f) : lo);
|
|
1717
1717
|
}
|
|
@@ -1723,13 +1723,13 @@ function _o(e = {}) {
|
|
|
1723
1723
|
const [S, c] = h;
|
|
1724
1724
|
let b = "text", I = "";
|
|
1725
1725
|
h.length === 1 ? te(S) ? (I = S.modifier || I, b = S.type || b) : Z(S) && (I = S || I) : h.length === 2 && (Z(S) && (I = S || I), Z(c) && (b = c || b));
|
|
1726
|
-
const p =
|
|
1726
|
+
const p = E(f, !0)(w), k = (
|
|
1727
1727
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1728
1728
|
b === "vnode" && be(p) && I ? p[0] : p
|
|
1729
1729
|
);
|
|
1730
1730
|
return I ? T(I)(k, b) : k;
|
|
1731
1731
|
},
|
|
1732
|
-
message:
|
|
1732
|
+
message: E,
|
|
1733
1733
|
type: D,
|
|
1734
1734
|
interpolate: F,
|
|
1735
1735
|
normalize: N,
|
|
@@ -1739,22 +1739,22 @@ function _o(e = {}) {
|
|
|
1739
1739
|
}
|
|
1740
1740
|
const Tn = () => "", Te = (e) => me(e);
|
|
1741
1741
|
function On(e, ...t) {
|
|
1742
|
-
const { fallbackFormat: n, postTranslation:
|
|
1742
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale: d, messages: u } = e, [i, g] = xt(...t), E = ve(g.missingWarn) ? g.missingWarn : e.missingWarn, T = ve(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, N = ve(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, F = !!g.resolvedMessage, D = Z(g.default) || ve(g.default) ? ve(g.default) ? a ? i : () => i : g.default : n ? a ? i : () => i : null, A = n || D != null && (Z(D) || me(D)), w = Kt(e, g);
|
|
1743
1743
|
N && po(g);
|
|
1744
1744
|
let [f, h, S] = F ? [
|
|
1745
1745
|
i,
|
|
1746
1746
|
w,
|
|
1747
1747
|
u[w] || oe()
|
|
1748
|
-
] :
|
|
1749
|
-
if (!F && !(Z(c) || ot(c) || Te(c)) &&
|
|
1748
|
+
] : tr(e, i, w, d, T, E), c = f, b = i;
|
|
1749
|
+
if (!F && !(Z(c) || ot(c) || Te(c)) && A && (c = D, b = c), !F && (!(Z(c) || ot(c) || Te(c)) || !Z(h)))
|
|
1750
1750
|
return l ? Ot : i;
|
|
1751
1751
|
let I = !1;
|
|
1752
1752
|
const p = () => {
|
|
1753
1753
|
I = !0;
|
|
1754
|
-
}, k = Te(c) ? c :
|
|
1754
|
+
}, k = Te(c) ? c : nr(e, i, h, c, b, p);
|
|
1755
1755
|
if (I)
|
|
1756
1756
|
return c;
|
|
1757
|
-
const L = bo(e, h, S, g), X = _o(L), V = vo(e, k, X), m =
|
|
1757
|
+
const L = bo(e, h, S, g), X = _o(L), V = vo(e, k, X), m = r ? r(V, i) : V;
|
|
1758
1758
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1759
1759
|
const C = {
|
|
1760
1760
|
timestamp: Date.now(),
|
|
@@ -1763,7 +1763,7 @@ function On(e, ...t) {
|
|
|
1763
1763
|
format: Z(c) ? c : Te(c) ? c.source : "",
|
|
1764
1764
|
message: m
|
|
1765
1765
|
};
|
|
1766
|
-
C.meta = Ie({}, e.__meta, /* @__PURE__ */ to() || {}),
|
|
1766
|
+
C.meta = Ie({}, e.__meta, /* @__PURE__ */ to() || {}), Fs(C);
|
|
1767
1767
|
}
|
|
1768
1768
|
return m;
|
|
1769
1769
|
}
|
|
@@ -1772,12 +1772,12 @@ function po(e) {
|
|
|
1772
1772
|
Z(e.named[t]) && (e.named[t] = ln(e.named[t]));
|
|
1773
1773
|
});
|
|
1774
1774
|
}
|
|
1775
|
-
function
|
|
1776
|
-
const { messages: d, onWarn: u, messageResolver: i, localeFallbacker: g } = e,
|
|
1775
|
+
function tr(e, t, n, r, l, a) {
|
|
1776
|
+
const { messages: d, onWarn: u, messageResolver: i, localeFallbacker: g } = e, E = g(e, r, n);
|
|
1777
1777
|
let T = oe(), N, F = null;
|
|
1778
1778
|
const D = "translate";
|
|
1779
|
-
for (let
|
|
1780
|
-
if (!oo(N,
|
|
1779
|
+
for (let A = 0; A < E.length && (N = E[A], T = d[N] || oe(), (F = i(T, t)) === null && (F = T[t]), !(Z(F) || ot(F) || Te(F))); A++)
|
|
1780
|
+
if (!oo(N, E)) {
|
|
1781
1781
|
const w = Qt(
|
|
1782
1782
|
e,
|
|
1783
1783
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -1790,30 +1790,30 @@ function ts(e, t, n, s, l, a) {
|
|
|
1790
1790
|
}
|
|
1791
1791
|
return [F, N, T];
|
|
1792
1792
|
}
|
|
1793
|
-
function
|
|
1793
|
+
function nr(e, t, n, r, l, a) {
|
|
1794
1794
|
const { messageCompiler: d, warnHtmlMessage: u } = e;
|
|
1795
|
-
if (Te(
|
|
1796
|
-
const g =
|
|
1795
|
+
if (Te(r)) {
|
|
1796
|
+
const g = r;
|
|
1797
1797
|
return g.locale = g.locale || n, g.key = g.key || t, g;
|
|
1798
1798
|
}
|
|
1799
1799
|
if (d == null) {
|
|
1800
|
-
const g = () =>
|
|
1800
|
+
const g = () => r;
|
|
1801
1801
|
return g.locale = n, g.key = t, g;
|
|
1802
1802
|
}
|
|
1803
|
-
const i = d(
|
|
1804
|
-
return i.locale = n, i.key = t, i.source =
|
|
1803
|
+
const i = d(r, ho(e, n, l, r, u, a));
|
|
1804
|
+
return i.locale = n, i.key = t, i.source = r, i;
|
|
1805
1805
|
}
|
|
1806
1806
|
function vo(e, t, n) {
|
|
1807
1807
|
return t(n);
|
|
1808
1808
|
}
|
|
1809
|
-
function
|
|
1810
|
-
const [t, n,
|
|
1809
|
+
function xt(...e) {
|
|
1810
|
+
const [t, n, r] = e, l = oe();
|
|
1811
1811
|
if (!Z(t) && !ge(t) && !Te(t) && !ot(t))
|
|
1812
1812
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1813
1813
|
const a = ge(t) ? String(t) : (Te(t), t);
|
|
1814
|
-
return ge(n) ? l.plural = n : Z(n) ? l.default = n : ee(n) && !Ct(n) ? l.named = n : be(n) && (l.list = n), ge(
|
|
1814
|
+
return ge(n) ? l.plural = n : Z(n) ? l.default = n : ee(n) && !Ct(n) ? l.named = n : be(n) && (l.list = n), ge(r) ? l.plural = r : Z(r) ? l.default = r : ee(r) && Ie(l, r), [a, l];
|
|
1815
1815
|
}
|
|
1816
|
-
function ho(e, t, n,
|
|
1816
|
+
function ho(e, t, n, r, l, a) {
|
|
1817
1817
|
return {
|
|
1818
1818
|
locale: t,
|
|
1819
1819
|
key: n,
|
|
@@ -1821,19 +1821,19 @@ function ho(e, t, n, s, l, a) {
|
|
|
1821
1821
|
onError: (d) => {
|
|
1822
1822
|
throw a && a(d), d;
|
|
1823
1823
|
},
|
|
1824
|
-
onCacheKey: (d) =>
|
|
1824
|
+
onCacheKey: (d) => Fr(t, n, d)
|
|
1825
1825
|
};
|
|
1826
1826
|
}
|
|
1827
|
-
function bo(e, t, n,
|
|
1828
|
-
const { modifiers: l, pluralRules: a, messageResolver: d, fallbackLocale: u, fallbackWarn: i, missingWarn: g, fallbackContext:
|
|
1827
|
+
function bo(e, t, n, r) {
|
|
1828
|
+
const { modifiers: l, pluralRules: a, messageResolver: d, fallbackLocale: u, fallbackWarn: i, missingWarn: g, fallbackContext: E } = e, N = {
|
|
1829
1829
|
locale: t,
|
|
1830
1830
|
modifiers: l,
|
|
1831
1831
|
pluralRules: a,
|
|
1832
1832
|
messages: (F, D) => {
|
|
1833
|
-
let
|
|
1834
|
-
if (
|
|
1835
|
-
const [, , w] =
|
|
1836
|
-
|
|
1833
|
+
let A = d(n, F);
|
|
1834
|
+
if (A == null && (E || D)) {
|
|
1835
|
+
const [, , w] = tr(
|
|
1836
|
+
E || e,
|
|
1837
1837
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1838
1838
|
F,
|
|
1839
1839
|
t,
|
|
@@ -1841,28 +1841,28 @@ function bo(e, t, n, s) {
|
|
|
1841
1841
|
i,
|
|
1842
1842
|
g
|
|
1843
1843
|
);
|
|
1844
|
-
|
|
1844
|
+
A = d(w, F);
|
|
1845
1845
|
}
|
|
1846
|
-
if (Z(
|
|
1846
|
+
if (Z(A) || ot(A)) {
|
|
1847
1847
|
let w = !1;
|
|
1848
|
-
const h =
|
|
1848
|
+
const h = nr(e, F, t, A, F, () => {
|
|
1849
1849
|
w = !0;
|
|
1850
1850
|
});
|
|
1851
1851
|
return w ? Tn : h;
|
|
1852
|
-
} else return Te(
|
|
1852
|
+
} else return Te(A) ? A : Tn;
|
|
1853
1853
|
}
|
|
1854
1854
|
};
|
|
1855
|
-
return e.processor && (N.processor = e.processor),
|
|
1855
|
+
return e.processor && (N.processor = e.processor), r.list && (N.list = r.list), r.named && (N.named = r.named), ge(r.plural) && (N.pluralIndex = r.plural), N;
|
|
1856
1856
|
}
|
|
1857
|
-
|
|
1858
|
-
var go = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_af42e9e1-d991-464b-8e92-0287ae6456be", 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_af42e9e1-d991-464b-8e92-0287ae6456be", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.8.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/30.0.16248370", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1832", ACTIONS_ORCHESTRATION_ID: "97260825-774f-4027-bfda-718eb375615c.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: "20261004.327.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_af42e9e1-d991-464b-8e92-0287ae6456be", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:10808", 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: "37929458565", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "6e9305dadfdefc45ec6d67a63afe2e271865dad0", 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/feat/schedule-auto-schedule", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9mZWF0L3NjaGVkdWxlLWF1dG8tc2NoZWR1bGVcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTE1NzA2NzYsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MTU0ODQ3NiwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImFiMjUxMGRjLTYxMmUtNTI0Zi04MDNmLTJjZjQzNWMzYjdkYyIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiMDlmNzZkOGFjNWU2YTA3MDc1NDI3NDllMWQ1Njg3YmYxZWFkNWYyYyIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MTU0ODE3Niwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCIxMTM4MTYzMjE5MDZcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjA5Zjc2ZDhhYzVlNmEwNzA3NTQyNzQ5ZTFkNTY4N2JmMWVhZDVmMmNcIixcInJlZlwiOlwicmVmcy9oZWFkcy9mZWF0L3NjaGVkdWxlLWF1dG8tc2NoZWR1bGVcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJyZXBvc2l0b3J5XCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2VcIixcInJlcG9zaXRvcnlfaWRcIjpcIjExMjQ2NzIyMzVcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJ1bl9pZFwiOlwiMzc5Mjk0NTg1NjVcIixcInJ1bl9udW1iZXJcIjpcIjE4M1wiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcIjZlOTMwNWRhZGZkZWZjNDVlYzZkNjdhNjNhZmUyZTI3MTg2NWRhZDBcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIGhybS1wb3J0YWxcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtaHJtLXBvcnRhbC10cnVzdGVkLnltbEByZWZzL2hlYWRzL2ZlYXQvc2NoZWR1bGUtYXV0by1zY2hlZHVsZVwiLFwid29ya2Zsb3dfc2hhXCI6XCI2ZTkzMDVkYWRmZGVmYzQ1ZWM2ZDY3YTYzYWZlMmUyNzE4NjVkYWQwXCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9mZWF0L3NjaGVkdWxlLWF1dG8tc2NoZWR1bGUiLCJvcmNoX2lkIjoiOTcyNjA4MjUtNzc0Zi00MDI3LWJmZGEtNzE4ZWIzNzU2MTVjLnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiI5NzI2MDgyNS03NzRmLTQwMjctYmZkYS03MThlYjM3NTYxNWMiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiIzNzkyOTQ1ODU2NSIsInJ1bl9udW1iZXIiOiIxODMiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMTg4MjAwIiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6OTcyNjA4MjUtNzc0Zi00MDI3LWJmZGEtNzE4ZWIzNzU2MTVjOmFiMjUxMGRjLTYxMmUtNTI0Zi04MDNmLTJjZjQzNWMzYjdkYyBBY3Rpb25zLlJ1bm5lcjo5NzI2MDgyNS03NzRmLTQwMjctYmZkYS03MThlYjM3NTYxNWM6YWIyNTEwZGMtNjEyZS01MjRmLTgwM2YtMmNmNDM1YzNiN2RjIEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOjk3MjYwODI1LTc3NGYtNDAyNy1iZmRhLTcxOGViMzc1NjE1YzphYjI1MTBkYy02MTJlLTUyNGYtODAzZi0yY2Y0MzVjM2I3ZGMgZ2VuZXJhdGVfaWRfdG9rZW46OTcyNjA4MjUtNzc0Zi00MDI3LWJmZGEtNzE4ZWIzNzU2MTVjOmFiMjUxMGRjLTYxMmUtNTI0Zi04MDNmLTJjZjQzNWMzYjdkYyBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6IjZlOTMwNWRhZGZkZWZjNDVlYzZkNjdhNjNhZmUyZTI3MTg2NWRhZDAiLCJ0cnVzdF90aWVyIjoiMSJ9.OBKF-IYJWnfg3SFue3tZalaw6ZOGTzXPkCTUw5NtK7vZspXG0u9hq07D2GjAMOsR97sQW477FlTGAX7lfw91589jOQIbfjYyuxd0x546IzXoPE1I-LHc0LOlSxSisyJ7jhduBcR_XT9A-qU02EM_g3WEdaZ6aCrCiI29Ymx0kDJyCS5jn1mmIaZ0yjXHX_yWoLMEAO3Ir8gxbqeye4vI-d3LLK0zxb8l_Octl6kWY08L9c5gjHNZEQg7hbetMQWQds2uHSxh_p4EpUMqUkTu9SBbddxcrRkiabS9BTCXvrW9uqM2gtv4VExmuP10GM9gDP9phaSXMWxiY-rOD6SQ6A", 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_d3939614-d380-454f-9824-0fdec976b57d", INVOCATION_ID: "101beed0ff2d496e80c47fb0ffcf306c", 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: "183", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000188200", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "feat/schedule-auto-schedule", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.3.0-dev.2", 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: "6e9305dadfdefc45ec6d67a63afe2e271865dad0", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/feat/schedule-auto-schedule", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_af42e9e1-d991-464b-8e92-0287ae6456be", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-3-azure-eastus.actions.githubusercontent.com/162//idtoken/97260825-774f-4027-bfda-718eb375615c/ab2510dc-612e-524f-803f-2cf435c3b7dc?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_af42e9e1-d991-464b-8e92-0287ae6456be", 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_af42e9e1-d991-464b-8e92-0287ae6456be", 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_af42e9e1-d991-464b-8e92-0287ae6456be", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1857
|
+
_s();
|
|
1858
|
+
var go = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_664a6e37-e16c-4795-b741-61805e8e61d5", 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_664a6e37-e16c-4795-b741-61805e8e61d5", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.8.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/30.0.16248370", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1784", ACTIONS_ORCHESTRATION_ID: "b530d6c6-f3d6-41e5-9093-3bdf1c76f0a3.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: "20261004.327.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_664a6e37-e16c-4795-b741-61805e8e61d5", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:12736", 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: "38689982573", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "e13507631798b448126d007fc17d9924abef52b4", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.8/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/KDI-5086-hrm-schedule", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9LREktNTA4Ni1ocm0tc2NoZWR1bGVcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTIwNjYyODQsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MjA0NDA4NCwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6ImQ3MGQ4YzY4LTY0MTYtNWQ1YS1hNjczLTZhZjIzMjExNDUzMSIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiMDlmNzZkOGFjNWU2YTA3MDc1NDI3NDllMWQ1Njg3YmYxZWFkNWYyYyIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MjA0Mzc4NCwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCIxMTYyNzM0MDQ0MDhcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjA5Zjc2ZDhhYzVlNmEwNzA3NTQyNzQ5ZTFkNTY4N2JmMWVhZDVmMmNcIixcInJlZlwiOlwicmVmcy9oZWFkcy9LREktNTA4Ni1ocm0tc2NoZWR1bGVcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJyZXBvc2l0b3J5XCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2VcIixcInJlcG9zaXRvcnlfaWRcIjpcIjExMjQ2NzIyMzVcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJ1bl9pZFwiOlwiMzg2ODk5ODI1NzNcIixcInJ1bl9udW1iZXJcIjpcIjIwNFwiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcImUxMzUwNzYzMTc5OGI0NDgxMjZkMDA3ZmMxN2Q5OTI0YWJlZjUyYjRcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIGhybS1wb3J0YWxcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtaHJtLXBvcnRhbC10cnVzdGVkLnltbEByZWZzL2hlYWRzL0tESS01MDg2LWhybS1zY2hlZHVsZVwiLFwid29ya2Zsb3dfc2hhXCI6XCJlMTM1MDc2MzE3OThiNDQ4MTI2ZDAwN2ZjMTdkOTkyNGFiZWY1MmI0XCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9LREktNTA4Ni1ocm0tc2NoZWR1bGUiLCJvcmNoX2lkIjoiYjUzMGQ2YzYtZjNkNi00MWU1LTkwOTMtM2JkZjFjNzZmMGEzLnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiJiNTMwZDZjNi1mM2Q2LTQxZTUtOTA5My0zYmRmMWM3NmYwYTMiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiIzODY4OTk4MjU3MyIsInJ1bl9udW1iZXIiOiIyMDQiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMTk4OTE1IiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6YjUzMGQ2YzYtZjNkNi00MWU1LTkwOTMtM2JkZjFjNzZmMGEzOmQ3MGQ4YzY4LTY0MTYtNWQ1YS1hNjczLTZhZjIzMjExNDUzMSBBY3Rpb25zLlJ1bm5lcjpiNTMwZDZjNi1mM2Q2LTQxZTUtOTA5My0zYmRmMWM3NmYwYTM6ZDcwZDhjNjgtNjQxNi01ZDVhLWE2NzMtNmFmMjMyMTE0NTMxIEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOmI1MzBkNmM2LWYzZDYtNDFlNS05MDkzLTNiZGYxYzc2ZjBhMzpkNzBkOGM2OC02NDE2LTVkNWEtYTY3My02YWYyMzIxMTQ1MzEgZ2VuZXJhdGVfaWRfdG9rZW46YjUzMGQ2YzYtZjNkNi00MWU1LTkwOTMtM2JkZjFjNzZmMGEzOmQ3MGQ4YzY4LTY0MTYtNWQ1YS1hNjczLTZhZjIzMjExNDUzMSBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6ImUxMzUwNzYzMTc5OGI0NDgxMjZkMDA3ZmMxN2Q5OTI0YWJlZjUyYjQiLCJ0cnVzdF90aWVyIjoiMSJ9.uPfHo4DbnvInswhF_J7T3vLrU47N5Kj04v93ZzX-GQks7n1AiXfNHVcgQshbQ7f70UvJhq_5Q-3Bdxuf9qSwADhJBLrSolK1JwR9qvdgyvVVGNtfIPA9xJiMwoYWAjnQ4NiZTm-A5idjJFlCAL4DtWQ67RM5nfQyjPE4nuouAC-HJ2eeT0mvzN6sNpmT_spdTWG3YtJUw7eo4tzUg2M4yR0V7ZeRQLZpFByU_r_dUF9OjnsZd2gyNZSc0wlaqmcx2pQWDdlEWS9u3Yzgfa2UmSE34e6tcIHmLCCUK77VKs8-HqRlnp0ED8bjiHdNUIpTEawTcfcX-S578VS_YOE2xg", 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_538b3be4-c55a-4321-a97d-baf28882d420", INVOCATION_ID: "93068880477d45fa8dd07f2462555459", 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: "204", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000198915", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "KDI-5086-hrm-schedule", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.3.0-dev.20", 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: "e13507631798b448126d007fc17d9924abef52b4", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/KDI-5086-hrm-schedule", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_664a6e37-e16c-4795-b741-61805e8e61d5", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-2-azure-eastus.actions.githubusercontent.com/121//idtoken/b530d6c6-f3d6-41e5-9093-3bdf1c76f0a3/d70d8c68-6416-5d5a-a673-6af232114531?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_664a6e37-e16c-4795-b741-61805e8e61d5", 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_664a6e37-e16c-4795-b741-61805e8e61d5", 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_664a6e37-e16c-4795-b741-61805e8e61d5", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1859
1859
|
const Io = "10.0.5";
|
|
1860
|
-
function
|
|
1860
|
+
function Eo() {
|
|
1861
1861
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Xe().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Xe().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Xe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Xe().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1862
1862
|
}
|
|
1863
1863
|
const at = {
|
|
1864
1864
|
// composer module errors
|
|
1865
|
-
UNEXPECTED_RETURN_TYPE:
|
|
1865
|
+
UNEXPECTED_RETURN_TYPE: js,
|
|
1866
1866
|
// 24
|
|
1867
1867
|
// legacy module errors
|
|
1868
1868
|
INVALID_ARGUMENT: 25,
|
|
@@ -1876,7 +1876,7 @@ const at = {
|
|
|
1876
1876
|
function ut(e, ...t) {
|
|
1877
1877
|
return Tt(e, null, void 0);
|
|
1878
1878
|
}
|
|
1879
|
-
const Vt = /* @__PURE__ */ $e("__translateVNode"),
|
|
1879
|
+
const Vt = /* @__PURE__ */ $e("__translateVNode"), Wt = /* @__PURE__ */ $e("__datetimeParts"), Gt = /* @__PURE__ */ $e("__numberParts"), yo = $e("__setPluralRules"), rr = /* @__PURE__ */ $e("__injectWithOption"), Zt = /* @__PURE__ */ $e("__dispose");
|
|
1880
1880
|
function dt(e) {
|
|
1881
1881
|
if (!te(e))
|
|
1882
1882
|
return e;
|
|
@@ -1885,44 +1885,44 @@ function dt(e) {
|
|
|
1885
1885
|
if (!t.includes("."))
|
|
1886
1886
|
te(e[t]) && dt(e[t]);
|
|
1887
1887
|
else {
|
|
1888
|
-
const n = t.split("."),
|
|
1888
|
+
const n = t.split("."), r = n.length - 1;
|
|
1889
1889
|
let l = e, a = !1;
|
|
1890
|
-
for (let d = 0; d <
|
|
1890
|
+
for (let d = 0; d < r; d++) {
|
|
1891
1891
|
if (n[d] in l || (l[n[d]] = oe()), !te(l[n[d]])) {
|
|
1892
1892
|
a = !0;
|
|
1893
1893
|
break;
|
|
1894
1894
|
}
|
|
1895
1895
|
l = l[n[d]];
|
|
1896
1896
|
}
|
|
1897
|
-
a || (l[n[
|
|
1897
|
+
a || (l[n[r]] = e[t], delete e[t]), te(l[n[r]]) && dt(l[n[r]]);
|
|
1898
1898
|
}
|
|
1899
1899
|
return e;
|
|
1900
1900
|
}
|
|
1901
|
-
function
|
|
1902
|
-
const { messages: n, __i18n:
|
|
1903
|
-
if (be(
|
|
1901
|
+
function sr(e, t) {
|
|
1902
|
+
const { messages: n, __i18n: r, messageResolver: l, flatJson: a } = t, d = ee(n) ? n : be(r) ? oe() : { [e]: oe() };
|
|
1903
|
+
if (be(r) && r.forEach((u) => {
|
|
1904
1904
|
if ("locale" in u && "resource" in u) {
|
|
1905
1905
|
const { locale: i, resource: g } = u;
|
|
1906
|
-
i ? (d[i] = d[i] || oe(),
|
|
1906
|
+
i ? (d[i] = d[i] || oe(), Et(g, d[i])) : Et(g, d);
|
|
1907
1907
|
} else
|
|
1908
|
-
Z(u) &&
|
|
1908
|
+
Z(u) && Et(JSON.parse(u), d);
|
|
1909
1909
|
}), l == null && a)
|
|
1910
1910
|
for (const u in d)
|
|
1911
1911
|
Le(d, u) && dt(d[u]);
|
|
1912
1912
|
return d;
|
|
1913
1913
|
}
|
|
1914
|
-
function
|
|
1914
|
+
function or(e) {
|
|
1915
1915
|
return e.type;
|
|
1916
1916
|
}
|
|
1917
1917
|
function No(e, t, n) {
|
|
1918
|
-
let
|
|
1919
|
-
"__i18nGlobal" in n && (
|
|
1920
|
-
messages:
|
|
1918
|
+
let r = te(t.messages) ? t.messages : oe();
|
|
1919
|
+
"__i18nGlobal" in n && (r = sr(e.locale.value, {
|
|
1920
|
+
messages: r,
|
|
1921
1921
|
__i18n: n.__i18nGlobal
|
|
1922
1922
|
}));
|
|
1923
|
-
const l = Object.keys(
|
|
1923
|
+
const l = Object.keys(r);
|
|
1924
1924
|
l.length && l.forEach((a) => {
|
|
1925
|
-
e.mergeLocaleMessage(a,
|
|
1925
|
+
e.mergeLocaleMessage(a, r[a]);
|
|
1926
1926
|
});
|
|
1927
1927
|
{
|
|
1928
1928
|
if (te(t.datetimeFormats)) {
|
|
@@ -1940,20 +1940,20 @@ function No(e, t, n) {
|
|
|
1940
1940
|
}
|
|
1941
1941
|
}
|
|
1942
1942
|
function Sn(e) {
|
|
1943
|
-
return ue(
|
|
1943
|
+
return ue(fr, null, e, 0);
|
|
1944
1944
|
}
|
|
1945
|
-
const Ln = "__INTLIFY_META__",
|
|
1946
|
-
let
|
|
1945
|
+
const Ln = "__INTLIFY_META__", An = () => [], Co = () => !1;
|
|
1946
|
+
let Rn = 0;
|
|
1947
1947
|
function kn(e) {
|
|
1948
|
-
return (t, n,
|
|
1948
|
+
return (t, n, r, l) => e(n, r, Bt() || void 0, l);
|
|
1949
1949
|
}
|
|
1950
1950
|
const To = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1951
|
-
const e =
|
|
1951
|
+
const e = Bt();
|
|
1952
1952
|
let t = null;
|
|
1953
|
-
return e && (t =
|
|
1953
|
+
return e && (t = or(e)[Ln]) ? { [Ln]: t } : null;
|
|
1954
1954
|
};
|
|
1955
1955
|
function Oo(e = {}) {
|
|
1956
|
-
const { __root: t, __injectWithOption: n } = e,
|
|
1956
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, l = e.flatJson, a = on ? rt : dr;
|
|
1957
1957
|
let d = ve(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1958
1958
|
const u = a(
|
|
1959
1959
|
// prettier-ignore
|
|
@@ -1961,12 +1961,12 @@ function Oo(e = {}) {
|
|
|
1961
1961
|
), i = a(
|
|
1962
1962
|
// prettier-ignore
|
|
1963
1963
|
t && d ? t.fallbackLocale.value : Z(e.fallbackLocale) || be(e.fallbackLocale) || ee(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
1964
|
-
), g = a(
|
|
1965
|
-
let N = t ? t.missingWarn : ve(e.missingWarn) ||
|
|
1964
|
+
), g = a(sr(u.value, e)), E = a(ee(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), T = a(ee(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
|
|
1965
|
+
let N = t ? t.missingWarn : ve(e.missingWarn) || yt(e.missingWarn) ? e.missingWarn : !0, F = t ? t.fallbackWarn : ve(e.fallbackWarn) || yt(e.fallbackWarn) ? e.fallbackWarn : !0, D = t ? t.fallbackRoot : ve(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.fallbackFormat, w = me(e.missing) ? e.missing : null, f = me(e.missing) ? kn(e.missing) : null, h = me(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : ve(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, c = !!e.escapeParameter;
|
|
1966
1966
|
const b = t ? t.modifiers : ee(e.modifiers) ? e.modifiers : {};
|
|
1967
1967
|
let I = e.pluralRules || t && t.pluralRules, p;
|
|
1968
1968
|
p = (() => {
|
|
1969
|
-
|
|
1969
|
+
r && bn(null);
|
|
1970
1970
|
const v = {
|
|
1971
1971
|
version: Io,
|
|
1972
1972
|
locale: u.value,
|
|
@@ -1977,7 +1977,7 @@ function Oo(e = {}) {
|
|
|
1977
1977
|
missing: f === null ? void 0 : f,
|
|
1978
1978
|
missingWarn: N,
|
|
1979
1979
|
fallbackWarn: F,
|
|
1980
|
-
fallbackFormat:
|
|
1980
|
+
fallbackFormat: A,
|
|
1981
1981
|
unresolving: !0,
|
|
1982
1982
|
postTranslation: h === null ? void 0 : h,
|
|
1983
1983
|
warnHtmlMessage: S,
|
|
@@ -1986,16 +1986,16 @@ function Oo(e = {}) {
|
|
|
1986
1986
|
messageCompiler: e.messageCompiler,
|
|
1987
1987
|
__meta: { framework: "vue" }
|
|
1988
1988
|
};
|
|
1989
|
-
v.datetimeFormats =
|
|
1990
|
-
const
|
|
1991
|
-
return
|
|
1989
|
+
v.datetimeFormats = E.value, v.numberFormats = T.value, v.__datetimeFormatters = ee(p) ? p.__datetimeFormatters : void 0, v.__numberFormatters = ee(p) ? p.__numberFormatters : void 0;
|
|
1990
|
+
const y = ro(v);
|
|
1991
|
+
return r && bn(y), y;
|
|
1992
1992
|
})(), lt(p, u.value, i.value);
|
|
1993
1993
|
function L() {
|
|
1994
1994
|
return [
|
|
1995
1995
|
u.value,
|
|
1996
1996
|
i.value,
|
|
1997
1997
|
g.value,
|
|
1998
|
-
|
|
1998
|
+
E.value,
|
|
1999
1999
|
T.value
|
|
2000
2000
|
];
|
|
2001
2001
|
}
|
|
@@ -2009,8 +2009,8 @@ function Oo(e = {}) {
|
|
|
2009
2009
|
set: (v) => {
|
|
2010
2010
|
i.value = v, p.fallbackLocale = i.value, lt(p, u.value, v);
|
|
2011
2011
|
}
|
|
2012
|
-
}), m = K(() => g.value), C = /* @__PURE__ */ K(() =>
|
|
2013
|
-
function
|
|
2012
|
+
}), m = K(() => g.value), C = /* @__PURE__ */ K(() => E.value), U = /* @__PURE__ */ K(() => T.value);
|
|
2013
|
+
function x() {
|
|
2014
2014
|
return me(h) ? h : null;
|
|
2015
2015
|
}
|
|
2016
2016
|
function j(v) {
|
|
@@ -2019,44 +2019,44 @@ function Oo(e = {}) {
|
|
|
2019
2019
|
function G() {
|
|
2020
2020
|
return w;
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2022
|
+
function W(v) {
|
|
2023
2023
|
v !== null && (f = kn(v)), w = v, p.missing = f;
|
|
2024
2024
|
}
|
|
2025
|
-
const
|
|
2025
|
+
const Y = (v, y, $, le, Be, mt) => {
|
|
2026
2026
|
L();
|
|
2027
2027
|
let Ke;
|
|
2028
2028
|
try {
|
|
2029
|
-
go.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__,
|
|
2029
|
+
go.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = t ? no() : void 0), Ke = v(p);
|
|
2030
2030
|
} finally {
|
|
2031
|
-
__INTLIFY_PROD_DEVTOOLS__,
|
|
2031
|
+
__INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = void 0);
|
|
2032
2032
|
}
|
|
2033
2033
|
if ($ !== "translate exists" && // for not `te` (e.g `t`)
|
|
2034
2034
|
ge(Ke) && Ke === Ot || $ === "translate exists" && !Ke) {
|
|
2035
|
-
const [
|
|
2036
|
-
return t && D ? le(t) :
|
|
2035
|
+
const [cr, ya] = y();
|
|
2036
|
+
return t && D ? le(t) : Be(cr);
|
|
2037
2037
|
} else {
|
|
2038
2038
|
if (mt(Ke))
|
|
2039
2039
|
return Ke;
|
|
2040
2040
|
throw ut(at.UNEXPECTED_RETURN_TYPE);
|
|
2041
2041
|
}
|
|
2042
2042
|
};
|
|
2043
|
-
function
|
|
2044
|
-
return
|
|
2043
|
+
function B(...v) {
|
|
2044
|
+
return Y((y) => Reflect.apply(On, null, [y, ...v]), () => xt(...v), "translate", (y) => Reflect.apply(y.t, y, [...v]), (y) => y, (y) => Z(y));
|
|
2045
2045
|
}
|
|
2046
2046
|
function ne(...v) {
|
|
2047
|
-
const [
|
|
2047
|
+
const [y, $, le] = v;
|
|
2048
2048
|
if (le && !te(le))
|
|
2049
2049
|
throw ut(at.INVALID_ARGUMENT);
|
|
2050
|
-
return
|
|
2050
|
+
return B(y, $, Ie({ resolvedMessage: !0 }, le || {}));
|
|
2051
2051
|
}
|
|
2052
2052
|
function Q(...v) {
|
|
2053
|
-
return
|
|
2053
|
+
return Y((y) => Reflect.apply(In, null, [y, ...v]), () => jt(...v), "datetime format", (y) => Reflect.apply(y.d, y, [...v]), () => vn, (y) => Z(y));
|
|
2054
2054
|
}
|
|
2055
2055
|
function _e(...v) {
|
|
2056
|
-
return
|
|
2056
|
+
return Y((y) => Reflect.apply(yn, null, [y, ...v]), () => Ut(...v), "number format", (y) => Reflect.apply(y.n, y, [...v]), () => vn, (y) => Z(y));
|
|
2057
2057
|
}
|
|
2058
2058
|
function ce(v) {
|
|
2059
|
-
return v.map((
|
|
2059
|
+
return v.map((y) => Z(y) || ge(y) || ve(y) ? Sn(String(y)) : y);
|
|
2060
2060
|
}
|
|
2061
2061
|
const fe = {
|
|
2062
2062
|
normalize: ce,
|
|
@@ -2064,95 +2064,95 @@ function Oo(e = {}) {
|
|
|
2064
2064
|
type: "vnode"
|
|
2065
2065
|
};
|
|
2066
2066
|
function q(...v) {
|
|
2067
|
-
return
|
|
2067
|
+
return Y((y) => {
|
|
2068
2068
|
let $;
|
|
2069
|
-
const le =
|
|
2069
|
+
const le = y;
|
|
2070
2070
|
try {
|
|
2071
2071
|
le.processor = fe, $ = Reflect.apply(On, null, [le, ...v]);
|
|
2072
2072
|
} finally {
|
|
2073
2073
|
le.processor = null;
|
|
2074
2074
|
}
|
|
2075
2075
|
return $;
|
|
2076
|
-
}, () =>
|
|
2076
|
+
}, () => xt(...v), "translate", (y) => y[Vt](...v), (y) => [Sn(y)], (y) => be(y));
|
|
2077
2077
|
}
|
|
2078
2078
|
function we(...v) {
|
|
2079
|
-
return
|
|
2079
|
+
return Y((y) => Reflect.apply(yn, null, [y, ...v]), () => Ut(...v), "number format", (y) => y[Gt](...v), An, (y) => Z(y) || be(y));
|
|
2080
2080
|
}
|
|
2081
2081
|
function z(...v) {
|
|
2082
|
-
return
|
|
2082
|
+
return Y((y) => Reflect.apply(In, null, [y, ...v]), () => jt(...v), "datetime format", (y) => y[Wt](...v), An, (y) => Z(y) || be(y));
|
|
2083
2083
|
}
|
|
2084
2084
|
function pe(v) {
|
|
2085
2085
|
I = v, p.pluralRules = I;
|
|
2086
2086
|
}
|
|
2087
|
-
function Je(v,
|
|
2088
|
-
return
|
|
2087
|
+
function Je(v, y) {
|
|
2088
|
+
return Y(() => {
|
|
2089
2089
|
if (!v)
|
|
2090
2090
|
return !1;
|
|
2091
|
-
const $ = Z(
|
|
2092
|
-
return ot(
|
|
2093
|
-
}, () => [v], "translate exists", ($) => Reflect.apply($.te, $, [v,
|
|
2091
|
+
const $ = Z(y) ? y : u.value, le = Fe($), Be = p.messageResolver(le, v);
|
|
2092
|
+
return ot(Be) || Te(Be) || Z(Be);
|
|
2093
|
+
}, () => [v], "translate exists", ($) => Reflect.apply($.te, $, [v, y]), Co, ($) => ve($));
|
|
2094
2094
|
}
|
|
2095
2095
|
function ze(v) {
|
|
2096
|
-
let
|
|
2096
|
+
let y = null;
|
|
2097
2097
|
const $ = Hn(p, i.value, u.value);
|
|
2098
2098
|
for (let le = 0; le < $.length; le++) {
|
|
2099
|
-
const
|
|
2099
|
+
const Be = g.value[$[le]] || {}, mt = p.messageResolver(Be, v);
|
|
2100
2100
|
if (mt != null) {
|
|
2101
|
-
|
|
2101
|
+
y = mt;
|
|
2102
2102
|
break;
|
|
2103
2103
|
}
|
|
2104
2104
|
}
|
|
2105
|
-
return
|
|
2105
|
+
return y;
|
|
2106
2106
|
}
|
|
2107
|
-
function
|
|
2108
|
-
const
|
|
2109
|
-
return
|
|
2107
|
+
function xe(v) {
|
|
2108
|
+
const y = ze(v);
|
|
2109
|
+
return y ?? (t ? t.tm(v) || {} : {});
|
|
2110
2110
|
}
|
|
2111
2111
|
function Fe(v) {
|
|
2112
2112
|
return g.value[v] || {};
|
|
2113
2113
|
}
|
|
2114
|
-
function Ce(v,
|
|
2114
|
+
function Ce(v, y) {
|
|
2115
2115
|
if (l) {
|
|
2116
|
-
const $ = { [v]:
|
|
2116
|
+
const $ = { [v]: y };
|
|
2117
2117
|
for (const le in $)
|
|
2118
2118
|
Le($, le) && dt($[le]);
|
|
2119
|
-
|
|
2119
|
+
y = $[v];
|
|
2120
2120
|
}
|
|
2121
|
-
g.value[v] =
|
|
2121
|
+
g.value[v] = y, p.messages = g.value;
|
|
2122
2122
|
}
|
|
2123
|
-
function
|
|
2123
|
+
function Ye(v, y) {
|
|
2124
2124
|
g.value[v] = g.value[v] || {};
|
|
2125
|
-
const $ = { [v]:
|
|
2125
|
+
const $ = { [v]: y };
|
|
2126
2126
|
if (l)
|
|
2127
2127
|
for (const le in $)
|
|
2128
2128
|
Le($, le) && dt($[le]);
|
|
2129
|
-
|
|
2129
|
+
y = $[v], Et(y, g.value[v]), p.messages = g.value;
|
|
2130
2130
|
}
|
|
2131
2131
|
function O(v) {
|
|
2132
|
-
return
|
|
2132
|
+
return E.value[v] || {};
|
|
2133
2133
|
}
|
|
2134
|
-
function
|
|
2135
|
-
|
|
2134
|
+
function s(v, y) {
|
|
2135
|
+
E.value[v] = y, p.datetimeFormats = E.value, En(p, v, y);
|
|
2136
2136
|
}
|
|
2137
|
-
function o(v,
|
|
2138
|
-
|
|
2137
|
+
function o(v, y) {
|
|
2138
|
+
E.value[v] = Ie(E.value[v] || {}, y), p.datetimeFormats = E.value, En(p, v, y);
|
|
2139
2139
|
}
|
|
2140
2140
|
function _(v) {
|
|
2141
2141
|
return T.value[v] || {};
|
|
2142
2142
|
}
|
|
2143
|
-
function
|
|
2144
|
-
T.value[v] =
|
|
2143
|
+
function R(v, y) {
|
|
2144
|
+
T.value[v] = y, p.numberFormats = T.value, Nn(p, v, y);
|
|
2145
2145
|
}
|
|
2146
|
-
function M(v,
|
|
2147
|
-
T.value[v] = Ie(T.value[v] || {},
|
|
2146
|
+
function M(v, y) {
|
|
2147
|
+
T.value[v] = Ie(T.value[v] || {}, y), p.numberFormats = T.value, Nn(p, v, y);
|
|
2148
2148
|
}
|
|
2149
|
-
|
|
2149
|
+
Rn++, t && on && (Dt(t.locale, (v) => {
|
|
2150
2150
|
d && (u.value = v, p.locale = v, lt(p, u.value, i.value));
|
|
2151
2151
|
}), Dt(t.fallbackLocale, (v) => {
|
|
2152
2152
|
d && (i.value = v, p.fallbackLocale = v, lt(p, u.value, i.value));
|
|
2153
2153
|
}));
|
|
2154
2154
|
const P = {
|
|
2155
|
-
id:
|
|
2155
|
+
id: Rn,
|
|
2156
2156
|
locale: X,
|
|
2157
2157
|
fallbackLocale: V,
|
|
2158
2158
|
get inheritLocale() {
|
|
@@ -2172,7 +2172,7 @@ function Oo(e = {}) {
|
|
|
2172
2172
|
return I || {};
|
|
2173
2173
|
},
|
|
2174
2174
|
get isGlobal() {
|
|
2175
|
-
return
|
|
2175
|
+
return r;
|
|
2176
2176
|
},
|
|
2177
2177
|
get missingWarn() {
|
|
2178
2178
|
return N;
|
|
@@ -2193,10 +2193,10 @@ function Oo(e = {}) {
|
|
|
2193
2193
|
D = v;
|
|
2194
2194
|
},
|
|
2195
2195
|
get fallbackFormat() {
|
|
2196
|
-
return
|
|
2196
|
+
return A;
|
|
2197
2197
|
},
|
|
2198
2198
|
set fallbackFormat(v) {
|
|
2199
|
-
|
|
2199
|
+
A = v, p.fallbackFormat = A;
|
|
2200
2200
|
},
|
|
2201
2201
|
get warnHtmlMessage() {
|
|
2202
2202
|
return S;
|
|
@@ -2210,17 +2210,17 @@ function Oo(e = {}) {
|
|
|
2210
2210
|
set escapeParameter(v) {
|
|
2211
2211
|
c = v, p.escapeParameter = v;
|
|
2212
2212
|
},
|
|
2213
|
-
t:
|
|
2213
|
+
t: B,
|
|
2214
2214
|
getLocaleMessage: Fe,
|
|
2215
2215
|
setLocaleMessage: Ce,
|
|
2216
|
-
mergeLocaleMessage:
|
|
2217
|
-
getPostTranslationHandler:
|
|
2216
|
+
mergeLocaleMessage: Ye,
|
|
2217
|
+
getPostTranslationHandler: x,
|
|
2218
2218
|
setPostTranslationHandler: j,
|
|
2219
2219
|
getMissingHandler: G,
|
|
2220
|
-
setMissingHandler:
|
|
2221
|
-
[
|
|
2220
|
+
setMissingHandler: W,
|
|
2221
|
+
[yo]: pe
|
|
2222
2222
|
};
|
|
2223
|
-
return P.datetimeFormats = C, P.numberFormats = U, P.rt = ne, P.te = Je, P.tm =
|
|
2223
|
+
return P.datetimeFormats = C, P.numberFormats = U, P.rt = ne, P.te = Je, P.tm = xe, P.d = Q, P.n = _e, P.getDateTimeFormat = O, P.setDateTimeFormat = s, P.mergeDateTimeFormat = o, P.getNumberFormat = _, P.setNumberFormat = R, P.mergeNumberFormat = M, P[rr] = n, P[Vt] = q, P[Wt] = z, P[Gt] = we, P;
|
|
2224
2224
|
}
|
|
2225
2225
|
const qt = {
|
|
2226
2226
|
tag: {
|
|
@@ -2241,16 +2241,16 @@ const qt = {
|
|
|
2241
2241
|
}
|
|
2242
2242
|
};
|
|
2243
2243
|
function So({ slots: e }, t) {
|
|
2244
|
-
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((
|
|
2245
|
-
...
|
|
2244
|
+
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, l) => [
|
|
2245
|
+
...r,
|
|
2246
2246
|
// prettier-ignore
|
|
2247
2247
|
...l.type === ke ? l.children : [l]
|
|
2248
|
-
], []) : t.reduce((n,
|
|
2249
|
-
const l = e[
|
|
2250
|
-
return l && (n[
|
|
2248
|
+
], []) : t.reduce((n, r) => {
|
|
2249
|
+
const l = e[r];
|
|
2250
|
+
return l && (n[r] = l()), n;
|
|
2251
2251
|
}, oe());
|
|
2252
2252
|
}
|
|
2253
|
-
function
|
|
2253
|
+
function ar() {
|
|
2254
2254
|
return ke;
|
|
2255
2255
|
}
|
|
2256
2256
|
Ie({
|
|
@@ -2266,20 +2266,20 @@ Ie({
|
|
|
2266
2266
|
function Lo(e) {
|
|
2267
2267
|
return be(e) && !Z(e[0]);
|
|
2268
2268
|
}
|
|
2269
|
-
function
|
|
2269
|
+
function lr(e, t, n, r) {
|
|
2270
2270
|
const { slots: l, attrs: a } = t;
|
|
2271
2271
|
return () => {
|
|
2272
2272
|
const d = { part: !0 };
|
|
2273
2273
|
let u = oe();
|
|
2274
2274
|
e.locale && (d.locale = e.locale), Z(e.format) ? d.key = e.format : te(e.format) && (Z(e.format.key) && (d.key = e.format.key), u = Object.keys(e.format).reduce((N, F) => n.includes(F) ? Ie(oe(), N, { [F]: e.format[F] }) : N, oe()));
|
|
2275
|
-
const i =
|
|
2275
|
+
const i = r(e.value, d, u);
|
|
2276
2276
|
let g = [d.key];
|
|
2277
2277
|
be(i) ? g = i.map((N, F) => {
|
|
2278
|
-
const D = l[N.type],
|
|
2279
|
-
return Lo(
|
|
2278
|
+
const D = l[N.type], A = D ? D({ [N.type]: N.value, index: F, parts: i }) : [N.value];
|
|
2279
|
+
return Lo(A) && (A[0].key = `${N.type}-${F}`), A;
|
|
2280
2280
|
}) : Z(i) && (g = [i]);
|
|
2281
|
-
const
|
|
2282
|
-
return
|
|
2281
|
+
const E = Ie(oe(), a), T = Z(e.tag) || te(e.tag) ? e.tag : ar();
|
|
2282
|
+
return Wn(T, E, g);
|
|
2283
2283
|
};
|
|
2284
2284
|
}
|
|
2285
2285
|
Ie({
|
|
@@ -2300,30 +2300,30 @@ Ie({
|
|
|
2300
2300
|
type: [String, Object]
|
|
2301
2301
|
}
|
|
2302
2302
|
}, qt);
|
|
2303
|
-
const
|
|
2303
|
+
const Ao = /* @__PURE__ */ $e("global-vue-i18n");
|
|
2304
2304
|
function St(e = {}) {
|
|
2305
|
-
const t =
|
|
2305
|
+
const t = Bt();
|
|
2306
2306
|
if (t == null)
|
|
2307
2307
|
throw ut(at.MUST_BE_CALL_SETUP_TOP);
|
|
2308
2308
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2309
2309
|
throw ut(at.NOT_INSTALLED);
|
|
2310
|
-
const n =
|
|
2310
|
+
const n = Ro(t), r = Mo(n), l = or(t), a = ko(e, l);
|
|
2311
2311
|
if (a === "global")
|
|
2312
|
-
return No(
|
|
2312
|
+
return No(r, e, l), r;
|
|
2313
2313
|
if (a === "parent") {
|
|
2314
2314
|
let i = Do(n, t, e.__useComponent);
|
|
2315
|
-
return i == null && (i =
|
|
2315
|
+
return i == null && (i = r), i;
|
|
2316
2316
|
}
|
|
2317
2317
|
const d = n;
|
|
2318
2318
|
let u = d.__getInstance(t);
|
|
2319
2319
|
if (u == null) {
|
|
2320
2320
|
const i = Ie({}, e);
|
|
2321
|
-
"__i18n" in l && (i.__i18n = l.__i18n),
|
|
2321
|
+
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u = Oo(i), d.__composerExtend && (u[Zt] = d.__composerExtend(u)), Fo(d, t, u), d.__setInstance(t, u);
|
|
2322
2322
|
}
|
|
2323
2323
|
return u;
|
|
2324
2324
|
}
|
|
2325
|
-
function
|
|
2326
|
-
const t =
|
|
2325
|
+
function Ro(e) {
|
|
2326
|
+
const t = ur(e.isCE ? Ao : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2327
2327
|
if (!t)
|
|
2328
2328
|
throw ut(e.isCE ? at.NOT_INSTALLED_WITH_PROVIDE : at.UNEXPECTED_ERROR);
|
|
2329
2329
|
return t;
|
|
@@ -2335,44 +2335,44 @@ function Mo(e) {
|
|
|
2335
2335
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2336
2336
|
}
|
|
2337
2337
|
function Do(e, t, n = !1) {
|
|
2338
|
-
let
|
|
2338
|
+
let r = null;
|
|
2339
2339
|
const l = t.root;
|
|
2340
2340
|
let a = wo(t, n);
|
|
2341
2341
|
for (; a != null; ) {
|
|
2342
2342
|
const d = e;
|
|
2343
2343
|
if (e.mode === "composition")
|
|
2344
|
-
|
|
2344
|
+
r = d.__getInstance(a);
|
|
2345
2345
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
2346
2346
|
const u = d.__getInstance(a);
|
|
2347
|
-
u != null && (
|
|
2347
|
+
u != null && (r = u.__composer, n && r && !r[rr] && (r = null));
|
|
2348
2348
|
}
|
|
2349
|
-
if (
|
|
2349
|
+
if (r != null || l === a)
|
|
2350
2350
|
break;
|
|
2351
2351
|
a = a.parent;
|
|
2352
2352
|
}
|
|
2353
|
-
return
|
|
2353
|
+
return r;
|
|
2354
2354
|
}
|
|
2355
2355
|
function wo(e, t = !1) {
|
|
2356
2356
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2357
2357
|
}
|
|
2358
2358
|
function Fo(e, t, n) {
|
|
2359
2359
|
Vn(() => {
|
|
2360
|
-
}, t),
|
|
2361
|
-
const
|
|
2360
|
+
}, t), mr(() => {
|
|
2361
|
+
const r = n;
|
|
2362
2362
|
e.__deleteInstance(t);
|
|
2363
|
-
const l =
|
|
2364
|
-
l && (l(), delete
|
|
2363
|
+
const l = r[Zt];
|
|
2364
|
+
l && (l(), delete r[Zt]);
|
|
2365
2365
|
}, t);
|
|
2366
2366
|
}
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2367
|
+
Eo();
|
|
2368
|
+
Ks(Ms);
|
|
2369
|
+
Qs($s);
|
|
2370
|
+
qs(Hn);
|
|
2371
2371
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2372
2372
|
const e = Xe();
|
|
2373
|
-
e.__INTLIFY__ = !0,
|
|
2373
|
+
e.__INTLIFY__ = !0, Ds(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2374
2374
|
}
|
|
2375
|
-
const vt = /* @__PURE__ */
|
|
2375
|
+
const vt = /* @__PURE__ */ Ae({
|
|
2376
2376
|
__name: "InheritPermissionTooltip",
|
|
2377
2377
|
props: {
|
|
2378
2378
|
item: {
|
|
@@ -2382,7 +2382,7 @@ const vt = /* @__PURE__ */ Re({
|
|
|
2382
2382
|
},
|
|
2383
2383
|
setup(e) {
|
|
2384
2384
|
const { t } = St();
|
|
2385
|
-
return (n,
|
|
2385
|
+
return (n, r) => {
|
|
2386
2386
|
const l = De("FmIcon"), a = De("FmTooltip");
|
|
2387
2387
|
return J(), Ne(a, {
|
|
2388
2388
|
variant: "plain",
|
|
@@ -2391,7 +2391,7 @@ const vt = /* @__PURE__ */ Re({
|
|
|
2391
2391
|
}, {
|
|
2392
2392
|
content: de(() => [
|
|
2393
2393
|
ae("div", null, Oe(H(t)("team.memberForm.permissions.inherited")), 1),
|
|
2394
|
-
(J(!0), ie(ke, null,
|
|
2394
|
+
(J(!0), ie(ke, null, ye(e.item.setNames, (d) => (J(), ie("div", { key: d }, [
|
|
2395
2395
|
ae("div", null, "- " + Oe(d), 1)
|
|
2396
2396
|
]))), 128))
|
|
2397
2397
|
]),
|
|
@@ -2408,11 +2408,11 @@ const vt = /* @__PURE__ */ Re({
|
|
|
2408
2408
|
}
|
|
2409
2409
|
});
|
|
2410
2410
|
function Mn(e, t, n) {
|
|
2411
|
-
const
|
|
2412
|
-
if (
|
|
2411
|
+
const r = n.filter((u) => u !== "manage");
|
|
2412
|
+
if (r.length === 0) return;
|
|
2413
2413
|
const l = e.findIndex((u) => u.subject === t && !u.inverted);
|
|
2414
2414
|
if (l < 0) return;
|
|
2415
|
-
const a = new Set(e[l].actions), d =
|
|
2415
|
+
const a = new Set(e[l].actions), d = r.every((u) => a.has(u));
|
|
2416
2416
|
d && !a.has("manage") ? (a.add("manage"), e[l] = {
|
|
2417
2417
|
...e[l],
|
|
2418
2418
|
actions: Array.from(a)
|
|
@@ -2421,62 +2421,62 @@ function Mn(e, t, n) {
|
|
|
2421
2421
|
actions: Array.from(a)
|
|
2422
2422
|
});
|
|
2423
2423
|
}
|
|
2424
|
-
const Dn = Object.values(
|
|
2424
|
+
const Dn = Object.values(Sr), Po = {
|
|
2425
2425
|
read: "View",
|
|
2426
2426
|
create: "Duplicate",
|
|
2427
2427
|
update: "Edit"
|
|
2428
2428
|
};
|
|
2429
|
-
function jo(e, t, n,
|
|
2430
|
-
const { t: l } = He(), { getFlagValue: a, getFlag: d } =
|
|
2429
|
+
function jo(e, t, n, r) {
|
|
2430
|
+
const { t: l } = He(), { getFlagValue: a, getFlag: d } = Or(), u = K(() => {
|
|
2431
2431
|
var j;
|
|
2432
2432
|
const m = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map();
|
|
2433
2433
|
for (const G of t.value) {
|
|
2434
|
-
const
|
|
2435
|
-
if (!
|
|
2436
|
-
const
|
|
2434
|
+
const W = G.category;
|
|
2435
|
+
if (!W) continue;
|
|
2436
|
+
const Y = G.subject;
|
|
2437
2437
|
if (n.value.includes(G.subject) || G.showByFeatureFlag && ((j = d(G.showByFeatureFlag)) == null ? void 0 : j.enabled) === !1 && a(G.showByFeatureFlag) === "true")
|
|
2438
2438
|
continue;
|
|
2439
|
-
m.has(
|
|
2440
|
-
const
|
|
2441
|
-
U.set(
|
|
2442
|
-
label: l(`permissionSet.permissionLabels.${
|
|
2443
|
-
value:
|
|
2444
|
-
optionKey: `${
|
|
2445
|
-
}), C.has(
|
|
2439
|
+
m.has(W) || m.set(W, []);
|
|
2440
|
+
const B = U.get(Y) ?? 0;
|
|
2441
|
+
U.set(Y, B + 1), m.get(W).push({
|
|
2442
|
+
label: l(`permissionSet.permissionLabels.${Y}`, G.label),
|
|
2443
|
+
value: Y,
|
|
2444
|
+
optionKey: `${Y}::${B}`
|
|
2445
|
+
}), C.has(Y) || C.set(Y, G);
|
|
2446
2446
|
}
|
|
2447
|
-
return [...m.keys()].sort((G,
|
|
2448
|
-
const
|
|
2449
|
-
return
|
|
2447
|
+
return [...m.keys()].sort((G, W) => {
|
|
2448
|
+
const Y = Dn.indexOf(G), B = Dn.indexOf(W);
|
|
2449
|
+
return Y === -1 && B === -1 ? G.localeCompare(W) : Y === -1 ? 1 : B === -1 ? -1 : Y - B;
|
|
2450
2450
|
}).map((G) => {
|
|
2451
|
-
const
|
|
2452
|
-
for (const z of
|
|
2451
|
+
const W = m.get(G), Y = l(`permissionSet.categoryLabels.${G}`, G), B = /* @__PURE__ */ new Map();
|
|
2452
|
+
for (const z of W) {
|
|
2453
2453
|
const pe = C.get(z.value);
|
|
2454
|
-
pe &&
|
|
2454
|
+
pe && B.set(z.value, pe.actions);
|
|
2455
2455
|
}
|
|
2456
|
-
const ne =
|
|
2457
|
-
const pe =
|
|
2456
|
+
const ne = W.some((z) => {
|
|
2457
|
+
const pe = B.get(z.value);
|
|
2458
2458
|
return pe && pe.length > 1;
|
|
2459
2459
|
}), Q = ne ? [
|
|
2460
2460
|
...new Set(
|
|
2461
|
-
|
|
2461
|
+
W.flatMap((z) => B.get(z.value) ?? []).filter((z) => z !== "manage")
|
|
2462
2462
|
)
|
|
2463
2463
|
] : [], _e = /* @__PURE__ */ new Map();
|
|
2464
2464
|
for (const z of e.value)
|
|
2465
|
-
|
|
2465
|
+
W.some((pe) => pe.value === z.subject) && !z.inverted && _e.set(z.subject, new Set(z.actions));
|
|
2466
2466
|
const ce = ne ? e.value.filter(
|
|
2467
|
-
(z) =>
|
|
2468
|
-
).map((z) => z.subject) : e.value.filter((z) =>
|
|
2467
|
+
(z) => W.some((pe) => pe.value === z.subject) && !z.inverted && z.actions.includes("manage")
|
|
2468
|
+
).map((z) => z.subject) : e.value.filter((z) => W.some((pe) => pe.value === z.subject) && !z.inverted).map((z) => z.subject), se = W.find((z) => {
|
|
2469
2469
|
var pe;
|
|
2470
2470
|
return (pe = C.get(z.value)) == null ? void 0 : pe.isCategoryCover;
|
|
2471
|
-
}), fe = (
|
|
2471
|
+
}), fe = (se == null ? void 0 : se.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), we = q.has("manage");
|
|
2472
2472
|
return {
|
|
2473
2473
|
category: G,
|
|
2474
|
-
label:
|
|
2475
|
-
options:
|
|
2474
|
+
label: Y,
|
|
2475
|
+
options: W,
|
|
2476
2476
|
selectedSubjects: ce,
|
|
2477
2477
|
isMultiAction: ne,
|
|
2478
2478
|
actionColumns: Q,
|
|
2479
|
-
permissionActionsMap:
|
|
2479
|
+
permissionActionsMap: B,
|
|
2480
2480
|
selectedActionsMap: _e,
|
|
2481
2481
|
coverSubject: fe,
|
|
2482
2482
|
coverSelectedActions: q,
|
|
@@ -2485,21 +2485,21 @@ function jo(e, t, n, s) {
|
|
|
2485
2485
|
});
|
|
2486
2486
|
});
|
|
2487
2487
|
function i(m, C) {
|
|
2488
|
-
const U = u.value.find((Q) => Q.category === m),
|
|
2488
|
+
const U = u.value.find((Q) => Q.category === m), x = (U == null ? void 0 : U.options) ?? [], j = new Set(x.map((Q) => Q.value)), G = new Set(C), W = /* @__PURE__ */ new Map();
|
|
2489
2489
|
for (const Q of e.value)
|
|
2490
|
-
j.has(Q.subject) && !Q.inverted &&
|
|
2491
|
-
const
|
|
2492
|
-
({ category: Q, showByFeatureFlag: _e, isCategoryCover: ce, ...
|
|
2493
|
-
const fe =
|
|
2494
|
-
if (!G.has(fe) ||
|
|
2495
|
-
|
|
2490
|
+
j.has(Q.subject) && !Q.inverted && W.set(Q.subject, Q.conditions);
|
|
2491
|
+
const Y = U != null && U.coverSubject ? W.get(U.coverSubject) : void 0, B = /* @__PURE__ */ new Set(), ne = t.value.flatMap(
|
|
2492
|
+
({ category: Q, showByFeatureFlag: _e, isCategoryCover: ce, ...se }) => {
|
|
2493
|
+
const fe = se.subject;
|
|
2494
|
+
if (!G.has(fe) || B.has(fe)) return [];
|
|
2495
|
+
B.add(fe);
|
|
2496
2496
|
let q;
|
|
2497
|
-
return
|
|
2498
|
-
{ ...
|
|
2497
|
+
return W.has(fe) ? q = W.get(fe) : U != null && U.coverSubject && fe !== U.coverSubject && (q = Y), [
|
|
2498
|
+
{ ...se, ...q !== void 0 && { conditions: q } }
|
|
2499
2499
|
];
|
|
2500
2500
|
}
|
|
2501
2501
|
);
|
|
2502
|
-
|
|
2502
|
+
r("update:model-value", [
|
|
2503
2503
|
...e.value.filter((Q) => !j.has(Q.subject)),
|
|
2504
2504
|
...ne
|
|
2505
2505
|
]);
|
|
@@ -2507,34 +2507,34 @@ function jo(e, t, n, s) {
|
|
|
2507
2507
|
function g(m, C) {
|
|
2508
2508
|
return F(m, C) || c(m, C);
|
|
2509
2509
|
}
|
|
2510
|
-
function
|
|
2510
|
+
function E(m) {
|
|
2511
2511
|
return m.options.length > 0 && m.options.every((C) => g(m, C.value));
|
|
2512
2512
|
}
|
|
2513
2513
|
function T(m) {
|
|
2514
|
-
return m.options.length === 0 ||
|
|
2514
|
+
return m.options.length === 0 || E(m) ? !1 : m.options.some(
|
|
2515
2515
|
(C) => g(m, C.value) || D(m, C.value).length > 0
|
|
2516
2516
|
);
|
|
2517
2517
|
}
|
|
2518
2518
|
function N(m) {
|
|
2519
|
-
const C = new Set(m.options.map((
|
|
2520
|
-
if (
|
|
2521
|
-
|
|
2519
|
+
const C = new Set(m.options.map((x) => x.value)), U = e.value.filter((x) => !C.has(x.subject));
|
|
2520
|
+
if (E(m))
|
|
2521
|
+
r("update:model-value", U);
|
|
2522
2522
|
else {
|
|
2523
|
-
const
|
|
2524
|
-
for (const
|
|
2525
|
-
C.has(
|
|
2526
|
-
const j = m.coverSubject ?
|
|
2527
|
-
({ category:
|
|
2523
|
+
const x = /* @__PURE__ */ new Map();
|
|
2524
|
+
for (const Y of e.value)
|
|
2525
|
+
C.has(Y.subject) && !Y.inverted && x.set(Y.subject, Y.conditions);
|
|
2526
|
+
const j = m.coverSubject ? x.get(m.coverSubject) : void 0, G = /* @__PURE__ */ new Set(), W = t.value.flatMap(
|
|
2527
|
+
({ category: Y, showByFeatureFlag: B, isCategoryCover: ne, ...Q }) => {
|
|
2528
2528
|
const _e = Q.subject;
|
|
2529
2529
|
if (!C.has(_e) || G.has(_e)) return [];
|
|
2530
2530
|
G.add(_e);
|
|
2531
2531
|
let ce;
|
|
2532
|
-
return
|
|
2532
|
+
return x.has(_e) ? ce = x.get(_e) : m.coverSubject && _e !== m.coverSubject && (ce = j), [
|
|
2533
2533
|
{ ...Q, ...ce !== void 0 && { conditions: ce } }
|
|
2534
2534
|
];
|
|
2535
2535
|
}
|
|
2536
2536
|
);
|
|
2537
|
-
|
|
2537
|
+
r("update:model-value", [...U, ...W]);
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
2540
|
function F(m, C) {
|
|
@@ -2547,43 +2547,43 @@ function jo(e, t, n, s) {
|
|
|
2547
2547
|
(j) => S(m, C, j) || b(m, C, j)
|
|
2548
2548
|
) : [];
|
|
2549
2549
|
}
|
|
2550
|
-
function
|
|
2550
|
+
function A(m, C) {
|
|
2551
2551
|
return c(m, C) ? !1 : !F(m, C) && D(m, C).length > 0;
|
|
2552
2552
|
}
|
|
2553
2553
|
function w(m, C) {
|
|
2554
2554
|
if (!m.coverSubject || C === m.coverSubject) return;
|
|
2555
2555
|
const U = e.value.find(
|
|
2556
|
-
(
|
|
2556
|
+
(x) => !x.inverted && x.subject === m.coverSubject
|
|
2557
2557
|
);
|
|
2558
2558
|
return (U == null ? void 0 : U.conditions) || void 0;
|
|
2559
2559
|
}
|
|
2560
2560
|
function f(m, C, U) {
|
|
2561
2561
|
if (U) {
|
|
2562
|
-
const
|
|
2563
|
-
if (!
|
|
2562
|
+
const x = t.value.find((Q) => Q.subject === C);
|
|
2563
|
+
if (!x) return;
|
|
2564
2564
|
const {
|
|
2565
2565
|
category: j,
|
|
2566
2566
|
showByFeatureFlag: G,
|
|
2567
|
-
isCategoryCover:
|
|
2568
|
-
...
|
|
2569
|
-
} =
|
|
2567
|
+
isCategoryCover: W,
|
|
2568
|
+
...Y
|
|
2569
|
+
} = x, B = w(m, C), ne = e.value.filter((Q) => Q.subject !== C);
|
|
2570
2570
|
ne.push({
|
|
2571
|
-
...
|
|
2572
|
-
...
|
|
2573
|
-
}),
|
|
2571
|
+
...Y,
|
|
2572
|
+
...B !== void 0 && { conditions: B }
|
|
2573
|
+
}), r("update:model-value", ne);
|
|
2574
2574
|
} else
|
|
2575
|
-
|
|
2575
|
+
r(
|
|
2576
2576
|
"update:model-value",
|
|
2577
|
-
e.value.filter((
|
|
2577
|
+
e.value.filter((x) => x.subject !== C)
|
|
2578
2578
|
);
|
|
2579
2579
|
}
|
|
2580
2580
|
function h(m, C) {
|
|
2581
2581
|
const U = m.permissionActionsMap.get(C);
|
|
2582
|
-
return U ? U.some((
|
|
2582
|
+
return U ? U.some((x) => x !== "manage") : !1;
|
|
2583
2583
|
}
|
|
2584
2584
|
function S(m, C, U) {
|
|
2585
|
-
const
|
|
2586
|
-
return
|
|
2585
|
+
const x = m.selectedActionsMap.get(C);
|
|
2586
|
+
return x ? x.has(U) : !1;
|
|
2587
2587
|
}
|
|
2588
2588
|
function c(m, C) {
|
|
2589
2589
|
return !m.coverSubject || C === m.coverSubject ? !1 : m.coverCoversAll;
|
|
@@ -2592,45 +2592,45 @@ function jo(e, t, n, s) {
|
|
|
2592
2592
|
return !m.coverSubject || C === m.coverSubject ? !1 : m.coverCoversAll ? !0 : m.coverSelectedActions.has(U);
|
|
2593
2593
|
}
|
|
2594
2594
|
function I(m, C, U) {
|
|
2595
|
-
const
|
|
2596
|
-
return
|
|
2595
|
+
const x = m.permissionActionsMap.get(C);
|
|
2596
|
+
return x ? x.includes(U) : !1;
|
|
2597
2597
|
}
|
|
2598
2598
|
function p(m, C, U) {
|
|
2599
|
-
const
|
|
2599
|
+
const x = [...e.value], j = x.findIndex((W) => W.subject === m && !W.inverted);
|
|
2600
2600
|
if (U)
|
|
2601
2601
|
if (j >= 0) {
|
|
2602
|
-
const
|
|
2603
|
-
|
|
2602
|
+
const W = { ...x[j] }, Y = new Set(W.actions);
|
|
2603
|
+
Y.add(C), W.actions = Array.from(Y), x[j] = W;
|
|
2604
2604
|
} else {
|
|
2605
|
-
const
|
|
2606
|
-
if (!
|
|
2605
|
+
const W = t.value.find((se) => se.subject === m);
|
|
2606
|
+
if (!W) return;
|
|
2607
2607
|
const {
|
|
2608
|
-
category:
|
|
2609
|
-
showByFeatureFlag:
|
|
2608
|
+
category: Y,
|
|
2609
|
+
showByFeatureFlag: B,
|
|
2610
2610
|
isCategoryCover: ne,
|
|
2611
2611
|
...Q
|
|
2612
|
-
} =
|
|
2613
|
-
(
|
|
2612
|
+
} = W, _e = u.value.find(
|
|
2613
|
+
(se) => se.options.some((fe) => fe.value === m)
|
|
2614
2614
|
), ce = _e ? w(_e, m) : void 0;
|
|
2615
|
-
|
|
2615
|
+
x.push({
|
|
2616
2616
|
...Q,
|
|
2617
2617
|
actions: [C],
|
|
2618
2618
|
...ce !== void 0 && { conditions: ce }
|
|
2619
2619
|
});
|
|
2620
2620
|
}
|
|
2621
2621
|
else if (j >= 0) {
|
|
2622
|
-
const
|
|
2623
|
-
|
|
2622
|
+
const W = { ...x[j] }, Y = W.actions.filter((B) => B !== C);
|
|
2623
|
+
Y.length === 0 ? x.splice(j, 1) : (W.actions = Y, x[j] = W);
|
|
2624
2624
|
}
|
|
2625
|
-
const G = t.value.find((
|
|
2626
|
-
G && Mn(
|
|
2625
|
+
const G = t.value.find((W) => W.subject === m);
|
|
2626
|
+
G && Mn(x, m, G.actions), r("update:model-value", x);
|
|
2627
2627
|
}
|
|
2628
2628
|
function k(m, C) {
|
|
2629
2629
|
const U = m.options.filter(
|
|
2630
|
-
(
|
|
2630
|
+
(x) => I(m, x.value, C)
|
|
2631
2631
|
);
|
|
2632
2632
|
return U.length === 0 ? !1 : U.every(
|
|
2633
|
-
(
|
|
2633
|
+
(x) => S(m, x.value, C) || b(m, x.value, C)
|
|
2634
2634
|
);
|
|
2635
2635
|
}
|
|
2636
2636
|
function L(m, C) {
|
|
@@ -2638,45 +2638,45 @@ function jo(e, t, n, s) {
|
|
|
2638
2638
|
(j) => I(m, j.value, C)
|
|
2639
2639
|
);
|
|
2640
2640
|
if (U.length === 0) return !1;
|
|
2641
|
-
const
|
|
2641
|
+
const x = U.filter(
|
|
2642
2642
|
(j) => S(m, j.value, C) || b(m, j.value, C)
|
|
2643
2643
|
).length;
|
|
2644
|
-
return
|
|
2644
|
+
return x > 0 && x < U.length;
|
|
2645
2645
|
}
|
|
2646
2646
|
function X(m, C, U) {
|
|
2647
|
-
const
|
|
2647
|
+
const x = [...e.value];
|
|
2648
2648
|
for (const j of m.options) {
|
|
2649
2649
|
if (!I(m, j.value, C)) continue;
|
|
2650
|
-
const G = j.value,
|
|
2651
|
-
(
|
|
2650
|
+
const G = j.value, W = x.findIndex(
|
|
2651
|
+
(B) => B.subject === G && !B.inverted
|
|
2652
2652
|
);
|
|
2653
2653
|
if (U)
|
|
2654
|
-
if (
|
|
2655
|
-
const
|
|
2656
|
-
ne.add(C),
|
|
2654
|
+
if (W >= 0) {
|
|
2655
|
+
const B = { ...x[W] }, ne = new Set(B.actions);
|
|
2656
|
+
ne.add(C), B.actions = Array.from(ne), x[W] = B;
|
|
2657
2657
|
} else {
|
|
2658
|
-
const
|
|
2659
|
-
if (!
|
|
2658
|
+
const B = t.value.find((fe) => fe.subject === G);
|
|
2659
|
+
if (!B) continue;
|
|
2660
2660
|
const {
|
|
2661
2661
|
category: ne,
|
|
2662
2662
|
showByFeatureFlag: Q,
|
|
2663
2663
|
isCategoryCover: _e,
|
|
2664
2664
|
...ce
|
|
2665
|
-
} =
|
|
2666
|
-
|
|
2665
|
+
} = B, se = w(m, G);
|
|
2666
|
+
x.push({
|
|
2667
2667
|
...ce,
|
|
2668
2668
|
actions: [C],
|
|
2669
|
-
...
|
|
2669
|
+
...se !== void 0 && { conditions: se }
|
|
2670
2670
|
});
|
|
2671
2671
|
}
|
|
2672
|
-
else if (
|
|
2673
|
-
const
|
|
2674
|
-
ne.length === 0 ?
|
|
2672
|
+
else if (W >= 0) {
|
|
2673
|
+
const B = { ...x[W] }, ne = B.actions.filter((Q) => Q !== C);
|
|
2674
|
+
ne.length === 0 ? x.splice(W, 1) : (B.actions = ne, x[W] = B);
|
|
2675
2675
|
}
|
|
2676
|
-
const
|
|
2677
|
-
|
|
2676
|
+
const Y = t.value.find((B) => B.subject === G);
|
|
2677
|
+
Y && Mn(x, G, Y.actions);
|
|
2678
2678
|
}
|
|
2679
|
-
|
|
2679
|
+
r("update:model-value", x);
|
|
2680
2680
|
}
|
|
2681
2681
|
function V(m) {
|
|
2682
2682
|
const C = `permissionSet.actionLabels.${m}`, U = Po[m] ?? m.charAt(0).toUpperCase() + m.slice(1);
|
|
@@ -2685,11 +2685,11 @@ function jo(e, t, n, s) {
|
|
|
2685
2685
|
return {
|
|
2686
2686
|
categoryGroups: u,
|
|
2687
2687
|
toggleCategory: i,
|
|
2688
|
-
isAllManageChecked:
|
|
2688
|
+
isAllManageChecked: E,
|
|
2689
2689
|
isAllManageIndeterminate: T,
|
|
2690
2690
|
toggleAllManage: N,
|
|
2691
2691
|
isManageChecked: F,
|
|
2692
|
-
isManageIndeterminate:
|
|
2692
|
+
isManageIndeterminate: A,
|
|
2693
2693
|
toggleManage: f,
|
|
2694
2694
|
hasNonManageActions: h,
|
|
2695
2695
|
isActionChecked: S,
|
|
@@ -2703,7 +2703,7 @@ function jo(e, t, n, s) {
|
|
|
2703
2703
|
actionLabel: V
|
|
2704
2704
|
};
|
|
2705
2705
|
}
|
|
2706
|
-
const Uo = { class: "flex flex-col gap-16" },
|
|
2706
|
+
const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm-600" }, Vo = { class: "mt-16" }, Wo = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Go = ["onClick"], Zo = { class: "flex justify-center" }, Yo = { class: "flex items-center min-w-0 gap-8" }, Bo = ["title", "onClick"], Xo = { class: "flex justify-center" }, Ho = /* @__PURE__ */ Ae({
|
|
2707
2707
|
__name: "BasePermission",
|
|
2708
2708
|
props: {
|
|
2709
2709
|
modelValue: {
|
|
@@ -2725,17 +2725,17 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2725
2725
|
},
|
|
2726
2726
|
emits: ["update:model-value"],
|
|
2727
2727
|
setup(e, { emit: t }) {
|
|
2728
|
-
const n = e,
|
|
2728
|
+
const n = e, r = t, { t: l } = He(), a = K(() => [...Gn, ...n.additionalPermissions]), {
|
|
2729
2729
|
categoryGroups: d,
|
|
2730
2730
|
isAllManageChecked: u,
|
|
2731
2731
|
isAllManageIndeterminate: i,
|
|
2732
2732
|
toggleAllManage: g,
|
|
2733
|
-
isManageChecked:
|
|
2733
|
+
isManageChecked: E,
|
|
2734
2734
|
isManageIndeterminate: T,
|
|
2735
2735
|
toggleManage: N,
|
|
2736
2736
|
isActionChecked: F,
|
|
2737
2737
|
isRowFullyCoveredByCover: D,
|
|
2738
|
-
isActionCoveredByCover:
|
|
2738
|
+
isActionCoveredByCover: A,
|
|
2739
2739
|
permissionDefinesAction: w,
|
|
2740
2740
|
toggleAction: f,
|
|
2741
2741
|
isAllActionChecked: h,
|
|
@@ -2746,26 +2746,26 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2746
2746
|
en(n, "modelValue"),
|
|
2747
2747
|
a,
|
|
2748
2748
|
en(n, "excludedSubjects"),
|
|
2749
|
-
(k, L) =>
|
|
2749
|
+
(k, L) => r("update:model-value", L)
|
|
2750
2750
|
);
|
|
2751
2751
|
function I(k) {
|
|
2752
2752
|
const L = k.selectedSubjects.length;
|
|
2753
2753
|
return L === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: L });
|
|
2754
2754
|
}
|
|
2755
2755
|
function p(k, L) {
|
|
2756
|
-
return
|
|
2757
|
-
(X) => w(k, L, X) && (F(k, L, X) ||
|
|
2756
|
+
return E(k, L) || D(k, L) ? !0 : k.actionColumns.some(
|
|
2757
|
+
(X) => w(k, L, X) && (F(k, L, X) || A(k, L, X))
|
|
2758
2758
|
);
|
|
2759
2759
|
}
|
|
2760
2760
|
return (k, L) => {
|
|
2761
2761
|
const X = De("FmCheckbox");
|
|
2762
2762
|
return J(), ie("div", Uo, [
|
|
2763
|
-
(J(!0), ie(ke, null,
|
|
2763
|
+
(J(!0), ie(ke, null, ye(H(d), (V) => (J(), Ne(Xt, {
|
|
2764
2764
|
key: V.category,
|
|
2765
2765
|
subtitle: I(V)
|
|
2766
2766
|
}, {
|
|
2767
2767
|
title: de(() => [
|
|
2768
|
-
ae("p",
|
|
2768
|
+
ae("p", xo, Oe(V.label), 1)
|
|
2769
2769
|
]),
|
|
2770
2770
|
default: de(() => [
|
|
2771
2771
|
ae("div", Vo, [
|
|
@@ -2776,8 +2776,8 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2776
2776
|
})
|
|
2777
2777
|
}, [
|
|
2778
2778
|
L[0] || (L[0] = ae("div", null, null, -1)),
|
|
2779
|
-
ae("div",
|
|
2780
|
-
(J(!0), ie(ke, null,
|
|
2779
|
+
ae("div", Wo, Oe(H(l)("team.memberForm.permissions.columnManage")), 1),
|
|
2780
|
+
(J(!0), ie(ke, null, ye(V.actionColumns, (m) => (J(), ie("div", {
|
|
2781
2781
|
key: `header-${m}`,
|
|
2782
2782
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2783
2783
|
}, Oe(H(b)(m)), 1))), 128))
|
|
@@ -2803,7 +2803,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2803
2803
|
"onUpdate:modelValue": (m) => H(g)(V)
|
|
2804
2804
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2805
2805
|
]),
|
|
2806
|
-
(J(!0), ie(ke, null,
|
|
2806
|
+
(J(!0), ie(ke, null, ye(V.actionColumns, (m) => (J(), ie("div", {
|
|
2807
2807
|
key: `all-${m}`,
|
|
2808
2808
|
class: "flex justify-center"
|
|
2809
2809
|
}, [
|
|
@@ -2819,33 +2819,33 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2819
2819
|
]))), 128))
|
|
2820
2820
|
], 4),
|
|
2821
2821
|
L[1] || (L[1] = ae("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2822
|
-
(J(!0), ie(ke, null,
|
|
2822
|
+
(J(!0), ie(ke, null, ye(V.options, (m) => (J(), ie("div", {
|
|
2823
2823
|
key: m.optionKey,
|
|
2824
2824
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2825
2825
|
style: nt({
|
|
2826
2826
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${V.actionColumns.length + 1}, 80px)`
|
|
2827
2827
|
})
|
|
2828
2828
|
}, [
|
|
2829
|
-
ae("div",
|
|
2829
|
+
ae("div", Yo, [
|
|
2830
2830
|
ae("span", {
|
|
2831
2831
|
class: "block truncate cursor-pointer",
|
|
2832
2832
|
title: m.label,
|
|
2833
|
-
onClick: (C) => !e.disable && !H(D)(V, m.value) && H(N)(V, m.value, !H(
|
|
2834
|
-
}, Oe(m.label), 9,
|
|
2833
|
+
onClick: (C) => !e.disable && !H(D)(V, m.value) && H(N)(V, m.value, !H(E)(V, m.value))
|
|
2834
|
+
}, Oe(m.label), 9, Bo),
|
|
2835
2835
|
Se(k.$slots, `checkbox-${m.value}-append`, {
|
|
2836
2836
|
option: m,
|
|
2837
2837
|
isEffectiveSelected: p(V, m.value),
|
|
2838
|
-
isCoveredByCover: H(D)(V, m.value) || V.actionColumns.some((C) => H(
|
|
2838
|
+
isCoveredByCover: H(D)(V, m.value) || V.actionColumns.some((C) => H(A)(V, m.value, C))
|
|
2839
2839
|
}),
|
|
2840
2840
|
Se(k.$slots, `checkbox-${m.value}-icon`, {
|
|
2841
2841
|
option: m,
|
|
2842
2842
|
isEffectiveSelected: p(V, m.value),
|
|
2843
|
-
isCoveredByCover: H(D)(V, m.value) || V.actionColumns.some((C) => H(
|
|
2843
|
+
isCoveredByCover: H(D)(V, m.value) || V.actionColumns.some((C) => H(A)(V, m.value, C))
|
|
2844
2844
|
})
|
|
2845
2845
|
]),
|
|
2846
2846
|
ae("div", Xo, [
|
|
2847
2847
|
ue(X, {
|
|
2848
|
-
"model-value": H(
|
|
2848
|
+
"model-value": H(E)(V, m.value) || H(D)(V, m.value),
|
|
2849
2849
|
value: m.value,
|
|
2850
2850
|
disabled: e.disable || H(D)(V, m.value),
|
|
2851
2851
|
indeterminate: H(T)(V, m.value),
|
|
@@ -2853,15 +2853,15 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2853
2853
|
"onUpdate:modelValue": (C) => H(N)(V, m.value, C)
|
|
2854
2854
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2855
2855
|
]),
|
|
2856
|
-
(J(!0), ie(ke, null,
|
|
2856
|
+
(J(!0), ie(ke, null, ye(V.actionColumns, (C) => (J(), ie("div", {
|
|
2857
2857
|
key: `${m.optionKey}-${C}`,
|
|
2858
2858
|
class: "flex justify-center"
|
|
2859
2859
|
}, [
|
|
2860
2860
|
H(w)(V, m.value, C) ? (J(), Ne(X, {
|
|
2861
2861
|
key: 0,
|
|
2862
|
-
"model-value": H(F)(V, m.value, C) || H(
|
|
2862
|
+
"model-value": H(F)(V, m.value, C) || H(A)(V, m.value, C),
|
|
2863
2863
|
value: C,
|
|
2864
|
-
disabled: e.disable || H(
|
|
2864
|
+
disabled: e.disable || H(A)(V, m.value, C),
|
|
2865
2865
|
size: "sm",
|
|
2866
2866
|
"onUpdate:modelValue": (U) => H(f)(m.value, C, U)
|
|
2867
2867
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Me("", !0)
|
|
@@ -2880,7 +2880,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2880
2880
|
}, zo = {
|
|
2881
2881
|
key: 0,
|
|
2882
2882
|
class: "q-mr-xs text-red col"
|
|
2883
|
-
}, Ko = { class: "form-input" }, Qo = /* @__PURE__ */
|
|
2883
|
+
}, Ko = { class: "form-input" }, Qo = /* @__PURE__ */ Ae({
|
|
2884
2884
|
__name: "AppForm",
|
|
2885
2885
|
props: {
|
|
2886
2886
|
title: {
|
|
@@ -2898,12 +2898,12 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2898
2898
|
},
|
|
2899
2899
|
setup(e) {
|
|
2900
2900
|
const t = e;
|
|
2901
|
-
return (n,
|
|
2901
|
+
return (n, r) => (J(), ie("div", $o, [
|
|
2902
2902
|
Se(n.$slots, "top", {}, () => [
|
|
2903
2903
|
t.title ? (J(), ie("div", Jo, [
|
|
2904
2904
|
ae("div", null, [
|
|
2905
2905
|
t.required ? (J(), ie("span", zo, "*")) : Me("", !0),
|
|
2906
|
-
|
|
2906
|
+
_r(Oe(t.title), 1)
|
|
2907
2907
|
]),
|
|
2908
2908
|
Se(n.$slots, "title-right")
|
|
2909
2909
|
])) : Me("", !0)
|
|
@@ -2916,7 +2916,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2916
2916
|
}), qo = { class: "col flex items-center" }, ea = {
|
|
2917
2917
|
key: 1,
|
|
2918
2918
|
class: "q-pa-sm form-error-message text-error"
|
|
2919
|
-
},
|
|
2919
|
+
}, ir = /* @__PURE__ */ Ae({
|
|
2920
2920
|
__name: "CheckboxInput",
|
|
2921
2921
|
props: {
|
|
2922
2922
|
options: {
|
|
@@ -2974,25 +2974,25 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
2974
2974
|
},
|
|
2975
2975
|
emits: ["update:model-value"],
|
|
2976
2976
|
setup(e, { emit: t }) {
|
|
2977
|
-
const n = e,
|
|
2978
|
-
() => n.modelValue.filter((
|
|
2977
|
+
const n = e, r = t, { t: l } = He(), a = rt(!1), d = pr(), u = K(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), i = `checkbox-${Ar(6)}`, g = K(() => u.value !== !0), E = K(
|
|
2978
|
+
() => n.modelValue.filter((A) => n.options.some((w) => w.value === A))
|
|
2979
2979
|
), T = K(
|
|
2980
2980
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2981
|
-
), N = K(() => n.options.length > 0 && n.options.length ===
|
|
2981
|
+
), N = K(() => n.options.length > 0 && n.options.length === E.value.length);
|
|
2982
2982
|
function F() {
|
|
2983
|
-
const
|
|
2983
|
+
const A = n.modelValue.filter((w) => !E.value.includes(w));
|
|
2984
2984
|
if (N.value === !0)
|
|
2985
|
-
|
|
2985
|
+
r("update:model-value", A);
|
|
2986
2986
|
else {
|
|
2987
2987
|
const w = n.includeDisabledOptionsWhenSelectAll ? n.options.map((f) => f.value) : n.options.filter((f) => !f.disabled).map((f) => f.value);
|
|
2988
|
-
|
|
2988
|
+
r("update:model-value", [...A, ...w]);
|
|
2989
2989
|
}
|
|
2990
2990
|
}
|
|
2991
|
-
function D(
|
|
2991
|
+
function D(A, w) {
|
|
2992
2992
|
let f = It(n.modelValue);
|
|
2993
|
-
w ? f.every((h) => h !==
|
|
2993
|
+
w ? f.every((h) => h !== A) && f.push(A) : f = f.filter((h) => h !== A), r("update:model-value", f);
|
|
2994
2994
|
}
|
|
2995
|
-
return (
|
|
2995
|
+
return (A, w) => {
|
|
2996
2996
|
const f = De("FmCheckbox");
|
|
2997
2997
|
return J(), Ne(Qo, {
|
|
2998
2998
|
id: i,
|
|
@@ -3000,7 +3000,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3000
3000
|
required: !1
|
|
3001
3001
|
}, {
|
|
3002
3002
|
top: de(() => [
|
|
3003
|
-
Se(
|
|
3003
|
+
Se(A.$slots, "top")
|
|
3004
3004
|
]),
|
|
3005
3005
|
default: de(() => [
|
|
3006
3006
|
n.showAllToggle ? (J(), Ne(f, {
|
|
@@ -3014,7 +3014,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3014
3014
|
value: T.value,
|
|
3015
3015
|
"onUpdate:modelValue": F
|
|
3016
3016
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Me("", !0),
|
|
3017
|
-
(J(!0), ie(ke, null,
|
|
3017
|
+
(J(!0), ie(ke, null, ye(e.options, (h, S) => (J(), ie("div", {
|
|
3018
3018
|
key: h.value,
|
|
3019
3019
|
style: nt(`margin-bottom: ${S < e.options.length - 1 ? n.gutter : 0}px`),
|
|
3020
3020
|
class: qe(S < e.options.length - 1 ? "q-mb-sm" : "")
|
|
@@ -3031,7 +3031,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3031
3031
|
value: h.label,
|
|
3032
3032
|
"onUpdate:modelValue": (c) => D(h.value, c)
|
|
3033
3033
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
3034
|
-
Se(
|
|
3034
|
+
Se(A.$slots, `checkbox-${h.key || h.value}-append`, {
|
|
3035
3035
|
option: h,
|
|
3036
3036
|
selected: e.modelValue.includes(h.value)
|
|
3037
3037
|
})
|
|
@@ -3040,7 +3040,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3040
3040
|
key: 0,
|
|
3041
3041
|
class: qe([{ "q-checkbox disabled": e.disable || h.disabled }, "col"])
|
|
3042
3042
|
}, [
|
|
3043
|
-
Se(
|
|
3043
|
+
Se(A.$slots, `checkbox-${h.key || h.value}-end`, {
|
|
3044
3044
|
option: h,
|
|
3045
3045
|
value: e.modelValue.includes(h.value),
|
|
3046
3046
|
disable: e.disable || h.disabled
|
|
@@ -3052,7 +3052,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3052
3052
|
class: qe(["q-mt-sm", { "q-checkbox disabled": e.disable || h.disabled }]),
|
|
3053
3053
|
style: nt(`margin-left: ${e.bottomSlotIndent}`)
|
|
3054
3054
|
}, [
|
|
3055
|
-
Se(
|
|
3055
|
+
Se(A.$slots, `checkbox-${h.key || h.value}-bottom`, {
|
|
3056
3056
|
option: h,
|
|
3057
3057
|
disable: e.disable || h.disabled,
|
|
3058
3058
|
value: e.modelValue.includes(h.value)
|
|
@@ -3065,7 +3065,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3065
3065
|
}, 8, ["title"]);
|
|
3066
3066
|
};
|
|
3067
3067
|
}
|
|
3068
|
-
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture", wn = /* @__PURE__ */
|
|
3068
|
+
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture", wn = /* @__PURE__ */ Ae({
|
|
3069
3069
|
__name: "ConditionPermission",
|
|
3070
3070
|
props: {
|
|
3071
3071
|
modelValue: {
|
|
@@ -3087,7 +3087,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3087
3087
|
},
|
|
3088
3088
|
emits: ["update:model-value"],
|
|
3089
3089
|
setup(e, { emit: t }) {
|
|
3090
|
-
const n = e,
|
|
3090
|
+
const n = e, r = t, { t: l } = He(), a = K(() => [
|
|
3091
3091
|
{
|
|
3092
3092
|
label: l("team.memberForm.permissions.includedFuture", { context: n.context }),
|
|
3093
3093
|
value: ht,
|
|
@@ -3095,18 +3095,18 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3095
3095
|
disabled: !!n.modelValue && n.options.length > n.modelValue.length
|
|
3096
3096
|
},
|
|
3097
3097
|
...n.options.filter(
|
|
3098
|
-
(
|
|
3098
|
+
(E) => E.label.toLocaleLowerCase().includes(g.value.toLocaleLowerCase())
|
|
3099
3099
|
)
|
|
3100
|
-
]), d = K(() => n.modelValue ? n.modelValue : [ht, ...n.options.map((
|
|
3101
|
-
const
|
|
3102
|
-
return
|
|
3100
|
+
]), d = K(() => n.modelValue ? n.modelValue : [ht, ...n.options.map((E) => E.value)]), u = K(() => {
|
|
3101
|
+
const E = d.value.filter((T) => T !== ht).length;
|
|
3102
|
+
return E === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: E });
|
|
3103
3103
|
});
|
|
3104
|
-
function i(
|
|
3105
|
-
const T =
|
|
3106
|
-
|
|
3104
|
+
function i(E) {
|
|
3105
|
+
const T = E.length === a.value.length;
|
|
3106
|
+
r("update:model-value", T ? null : E.filter((N) => N !== ht));
|
|
3107
3107
|
}
|
|
3108
|
-
const g =
|
|
3109
|
-
return (
|
|
3108
|
+
const g = rt("");
|
|
3109
|
+
return (E, T) => {
|
|
3110
3110
|
const N = De("fm-search");
|
|
3111
3111
|
return J(), Ne(Xt, { subtitle: u.value }, {
|
|
3112
3112
|
title: de(() => [
|
|
@@ -3120,7 +3120,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3120
3120
|
class: "mt-16",
|
|
3121
3121
|
placeholder: H(l)("team.memberForm.permissions.search", { context: e.context })
|
|
3122
3122
|
}, null, 8, ["modelValue", "placeholder"])) : Me("", !0),
|
|
3123
|
-
ue(
|
|
3123
|
+
ue(ir, {
|
|
3124
3124
|
"model-value": d.value,
|
|
3125
3125
|
options: a.value,
|
|
3126
3126
|
"show-intermediate": !1,
|
|
@@ -3131,10 +3131,10 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3131
3131
|
class: "mt-16",
|
|
3132
3132
|
"onUpdate:modelValue": i
|
|
3133
3133
|
}, et({ _: 2 }, [
|
|
3134
|
-
|
|
3134
|
+
ye(a.value, (F) => ({
|
|
3135
3135
|
name: `checkbox-${F.value}-append`,
|
|
3136
3136
|
fn: de(({ option: D }) => [
|
|
3137
|
-
Se(
|
|
3137
|
+
Se(E.$slots, `checkbox-${F.value}-append`, { option: D })
|
|
3138
3138
|
])
|
|
3139
3139
|
}))
|
|
3140
3140
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3143,7 +3143,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3143
3143
|
}, 8, ["subtitle"]);
|
|
3144
3144
|
};
|
|
3145
3145
|
}
|
|
3146
|
-
}), na = { class: "fm-typo-en-title-sm-600" }, bt = "includedNewRole",
|
|
3146
|
+
}), na = { class: "fm-typo-en-title-sm-600" }, bt = "includedNewRole", ra = /* @__PURE__ */ Ae({
|
|
3147
3147
|
__name: "PosRolePermission",
|
|
3148
3148
|
props: {
|
|
3149
3149
|
modelValue: {
|
|
@@ -3165,7 +3165,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3165
3165
|
},
|
|
3166
3166
|
emits: ["update:model-value"],
|
|
3167
3167
|
setup(e, { emit: t }) {
|
|
3168
|
-
const n = e,
|
|
3168
|
+
const n = e, r = t, { t: l } = He(), a = K(() => {
|
|
3169
3169
|
const g = n.restaurantIds;
|
|
3170
3170
|
return [
|
|
3171
3171
|
{
|
|
@@ -3173,26 +3173,26 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3173
3173
|
value: bt,
|
|
3174
3174
|
disabled: !!n.modelValue && n.roles.length > n.modelValue.length
|
|
3175
3175
|
},
|
|
3176
|
-
...n.roles.map((
|
|
3177
|
-
label:
|
|
3178
|
-
value:
|
|
3179
|
-
disabled: !!g &&
|
|
3176
|
+
...n.roles.map((E) => ({
|
|
3177
|
+
label: E.name,
|
|
3178
|
+
value: E._id,
|
|
3179
|
+
disabled: !!g && E.restaurants.every(({ id: T }) => !g.includes(T))
|
|
3180
3180
|
}))
|
|
3181
3181
|
];
|
|
3182
3182
|
}), d = K(() => n.modelValue ? n.modelValue : [bt, ...n.roles.map((g) => g._id)]), u = K(() => {
|
|
3183
|
-
const g = d.value.filter((
|
|
3183
|
+
const g = d.value.filter((E) => E !== bt).length;
|
|
3184
3184
|
return g === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: g });
|
|
3185
3185
|
});
|
|
3186
3186
|
function i(g) {
|
|
3187
|
-
const
|
|
3188
|
-
|
|
3187
|
+
const E = g.length === a.value.length;
|
|
3188
|
+
r("update:model-value", E ? null : g.filter((T) => T !== bt));
|
|
3189
3189
|
}
|
|
3190
|
-
return (g,
|
|
3190
|
+
return (g, E) => (J(), Ne(Xt, { subtitle: u.value }, {
|
|
3191
3191
|
title: de(() => [
|
|
3192
3192
|
ae("p", na, Oe(H(l)("team.memberForm.permissions.roles")), 1)
|
|
3193
3193
|
]),
|
|
3194
3194
|
default: de(() => [
|
|
3195
|
-
ue(
|
|
3195
|
+
ue(ir, {
|
|
3196
3196
|
"model-value": d.value,
|
|
3197
3197
|
options: a.value,
|
|
3198
3198
|
"show-intermediate": !1,
|
|
@@ -3202,7 +3202,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3202
3202
|
class: "mt-16",
|
|
3203
3203
|
"onUpdate:modelValue": i
|
|
3204
3204
|
}, et({ _: 2 }, [
|
|
3205
|
-
|
|
3205
|
+
ye(a.value, (T) => ({
|
|
3206
3206
|
name: `checkbox-${T.value}-append`,
|
|
3207
3207
|
fn: de(({ option: N }) => [
|
|
3208
3208
|
Se(g.$slots, `checkbox-${T.value}-append`, { option: N })
|
|
@@ -3213,7 +3213,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3213
3213
|
_: 3
|
|
3214
3214
|
}, 8, ["subtitle"]));
|
|
3215
3215
|
}
|
|
3216
|
-
}),
|
|
3216
|
+
}), sa = {
|
|
3217
3217
|
key: 0,
|
|
3218
3218
|
class: "flex flex-col gap-8"
|
|
3219
3219
|
}, oa = {
|
|
@@ -3223,7 +3223,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3223
3223
|
}, aa = {
|
|
3224
3224
|
key: 0,
|
|
3225
3225
|
class: "ml-32"
|
|
3226
|
-
}, Fn = /* @__PURE__ */
|
|
3226
|
+
}, Fn = /* @__PURE__ */ Ae({
|
|
3227
3227
|
__name: "PortalConditionForm",
|
|
3228
3228
|
props: {
|
|
3229
3229
|
entry: {},
|
|
@@ -3240,10 +3240,10 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3240
3240
|
},
|
|
3241
3241
|
emits: ["update-inherit-mode", "update-form", "apply"],
|
|
3242
3242
|
setup(e, { emit: t }) {
|
|
3243
|
-
const n = t, { t:
|
|
3243
|
+
const n = t, { t: r } = He();
|
|
3244
3244
|
return (l, a) => {
|
|
3245
3245
|
const d = De("FmRadio"), u = De("FmRadioGroup");
|
|
3246
|
-
return J(), Ne(
|
|
3246
|
+
return J(), Ne(Cr, {
|
|
3247
3247
|
title: e.title,
|
|
3248
3248
|
builders: e.builders,
|
|
3249
3249
|
"form-value-for": e.formValueFor,
|
|
@@ -3254,7 +3254,7 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3254
3254
|
onApply: a[1] || (a[1] = (i) => n("apply"))
|
|
3255
3255
|
}, {
|
|
3256
3256
|
section: de(({ builder: i }) => [
|
|
3257
|
-
e.coverOverride.shouldShowInheritToggle(e.entry, i) ? (J(), ie("div",
|
|
3257
|
+
e.coverOverride.shouldShowInheritToggle(e.entry, i) ? (J(), ie("div", sa, [
|
|
3258
3258
|
ue(u, {
|
|
3259
3259
|
"model-value": e.inheritModeFor(i),
|
|
3260
3260
|
disabled: e.disable,
|
|
@@ -3264,18 +3264,18 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3264
3264
|
ae("div", null, [
|
|
3265
3265
|
ue(d, {
|
|
3266
3266
|
value: "inherit",
|
|
3267
|
-
label: H(
|
|
3267
|
+
label: H(r)("team.memberForm.permissions.conditionCover.inherit", {
|
|
3268
3268
|
cover: e.coverOverride.coverLabel(e.subject)
|
|
3269
3269
|
})
|
|
3270
3270
|
}, null, 8, ["label"]),
|
|
3271
|
-
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? (J(), ie("p", oa, " (" + Oe(H(
|
|
3271
|
+
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? (J(), ie("p", oa, " (" + Oe(H(r)(
|
|
3272
3272
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).labelKey,
|
|
3273
3273
|
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).params ?? {}
|
|
3274
3274
|
)) + ") ", 1)) : Me("", !0)
|
|
3275
3275
|
]),
|
|
3276
3276
|
ue(d, {
|
|
3277
3277
|
value: "custom",
|
|
3278
|
-
label: H(
|
|
3278
|
+
label: H(r)("team.memberForm.permissions.conditionCover.custom")
|
|
3279
3279
|
}, null, 8, ["label"])
|
|
3280
3280
|
]),
|
|
3281
3281
|
_: 2
|
|
@@ -3302,11 +3302,11 @@ const Uo = { class: "flex flex-col gap-16" }, Wo = { class: "fm-typo-en-title-sm
|
|
|
3302
3302
|
}
|
|
3303
3303
|
}), la = {
|
|
3304
3304
|
async readWarehouses() {
|
|
3305
|
-
return
|
|
3305
|
+
return Rr(await kr().get("/warehouses"));
|
|
3306
3306
|
}
|
|
3307
3307
|
};
|
|
3308
3308
|
function Pn(e, t) {
|
|
3309
|
-
return Zn(e,
|
|
3309
|
+
return Zn(e, Yn).some(
|
|
3310
3310
|
(n) => n.subject === t && !n.inverted && n.actions.includes("manage")
|
|
3311
3311
|
);
|
|
3312
3312
|
}
|
|
@@ -3314,14 +3314,14 @@ function jn(e, t) {
|
|
|
3314
3314
|
return e.some((n) => n.subject === t && n.inverted) ? e : [...e, { subject: t, actions: ["manage"], inverted: !0 }];
|
|
3315
3315
|
}
|
|
3316
3316
|
function Un(e, t, n) {
|
|
3317
|
-
const { category:
|
|
3317
|
+
const { category: r, showByFeatureFlag: l, isCategoryCover: a, ...d } = e;
|
|
3318
3318
|
return {
|
|
3319
3319
|
...d,
|
|
3320
3320
|
actions: t,
|
|
3321
3321
|
...n !== void 0 && { conditions: n }
|
|
3322
3322
|
};
|
|
3323
3323
|
}
|
|
3324
|
-
function ia(e, t, n,
|
|
3324
|
+
function ia(e, t, n, r) {
|
|
3325
3325
|
const l = new Set(
|
|
3326
3326
|
e.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3327
3327
|
), a = new Set(
|
|
@@ -3331,22 +3331,22 @@ function ia(e, t, n, s) {
|
|
|
3331
3331
|
);
|
|
3332
3332
|
let u = [...n];
|
|
3333
3333
|
for (const i of l)
|
|
3334
|
-
a.has(i) || (d.has(i) && (u = u.filter((
|
|
3334
|
+
a.has(i) || (d.has(i) && (u = u.filter((E) => E.subject !== i)), (!d.has(i) || Pn(u, i)) && (u = jn(u, i)));
|
|
3335
3335
|
for (const i of a)
|
|
3336
3336
|
if (!l.has(i)) {
|
|
3337
|
-
const g = u.some((
|
|
3338
|
-
if (u = u.filter((
|
|
3339
|
-
const
|
|
3337
|
+
const g = u.some((E) => E.subject === i && E.inverted);
|
|
3338
|
+
if (u = u.filter((E) => !(E.subject === i && E.inverted)), !g && !d.has(i)) {
|
|
3339
|
+
const E = t.find(
|
|
3340
3340
|
(N) => N.subject === i && !N.inverted
|
|
3341
|
-
), T =
|
|
3342
|
-
T &&
|
|
3341
|
+
), T = r(i);
|
|
3342
|
+
T && E && u.push(Un(T, E.actions, E.conditions));
|
|
3343
3343
|
}
|
|
3344
3344
|
}
|
|
3345
3345
|
for (const i of a) {
|
|
3346
3346
|
if (!l.has(i)) continue;
|
|
3347
|
-
const g = e.find((D) => D.subject === i && !D.inverted),
|
|
3348
|
-
if (!g || !
|
|
3349
|
-
const T = new Set(g.actions), N = new Set(
|
|
3347
|
+
const g = e.find((D) => D.subject === i && !D.inverted), E = t.find((D) => D.subject === i && !D.inverted);
|
|
3348
|
+
if (!g || !E) continue;
|
|
3349
|
+
const T = new Set(g.actions), N = new Set(E.actions);
|
|
3350
3350
|
if (T.size === N.size && [...T].every((D) => N.has(D)))
|
|
3351
3351
|
continue;
|
|
3352
3352
|
const F = u.findIndex((D) => D.subject === i && !D.inverted);
|
|
@@ -3356,7 +3356,7 @@ function ia(e, t, n, s) {
|
|
|
3356
3356
|
actions: Array.from(N)
|
|
3357
3357
|
};
|
|
3358
3358
|
else {
|
|
3359
|
-
const D =
|
|
3359
|
+
const D = r(i);
|
|
3360
3360
|
D && u.push(Un(D, Array.from(N)));
|
|
3361
3361
|
}
|
|
3362
3362
|
T.has("manage") && !N.has("manage") && Pn(u, i) && (u = jn(u, i)), !T.has("manage") && N.has("manage") && (u = u.filter((D) => !(D.subject === i && D.inverted)));
|
|
@@ -3388,7 +3388,7 @@ function da(e, t) {
|
|
|
3388
3388
|
function gt(e, t) {
|
|
3389
3389
|
return `${e}::${t.builderKey}`;
|
|
3390
3390
|
}
|
|
3391
|
-
function
|
|
3391
|
+
function We(e) {
|
|
3392
3392
|
try {
|
|
3393
3393
|
return e.conditions ? JSON.parse(e.conditions) : void 0;
|
|
3394
3394
|
} catch {
|
|
@@ -3400,22 +3400,22 @@ function ma(e, t) {
|
|
|
3400
3400
|
}
|
|
3401
3401
|
function Mt(e, t) {
|
|
3402
3402
|
const n = new Set(e.actions);
|
|
3403
|
-
return n.has(he.Action.manage) ? !0 : t.actions.every((
|
|
3403
|
+
return n.has(he.Action.manage) ? !0 : t.actions.every((r) => n.has(r));
|
|
3404
3404
|
}
|
|
3405
|
-
function
|
|
3406
|
-
const n =
|
|
3405
|
+
function Yt(e, t) {
|
|
3406
|
+
const n = We(e);
|
|
3407
3407
|
return wt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3408
3408
|
}
|
|
3409
|
-
function
|
|
3409
|
+
function xn(e, t, n) {
|
|
3410
3410
|
return {
|
|
3411
|
-
...
|
|
3412
|
-
...tt(
|
|
3411
|
+
...Yt(e, n),
|
|
3412
|
+
...tt(We(t), n)
|
|
3413
3413
|
};
|
|
3414
3414
|
}
|
|
3415
3415
|
function fa(e, t, n) {
|
|
3416
|
-
const
|
|
3416
|
+
const r = rt(/* @__PURE__ */ new Set());
|
|
3417
3417
|
function l(c) {
|
|
3418
|
-
return
|
|
3418
|
+
return wr(c, t.value);
|
|
3419
3419
|
}
|
|
3420
3420
|
function a(c) {
|
|
3421
3421
|
return t.value.find((b) => b.subject === c);
|
|
@@ -3429,7 +3429,7 @@ function fa(e, t, n) {
|
|
|
3429
3429
|
return ma(e.value, c);
|
|
3430
3430
|
}
|
|
3431
3431
|
function i(c, b) {
|
|
3432
|
-
return tt(
|
|
3432
|
+
return tt(We(c), b);
|
|
3433
3433
|
}
|
|
3434
3434
|
function g(c, b) {
|
|
3435
3435
|
var k;
|
|
@@ -3439,12 +3439,12 @@ function fa(e, t, n) {
|
|
|
3439
3439
|
const p = u(I);
|
|
3440
3440
|
return p ? Object.keys(i(p, b)).length > 0 : !1;
|
|
3441
3441
|
}
|
|
3442
|
-
function
|
|
3443
|
-
if (!g(c, b) ||
|
|
3442
|
+
function E(c, b) {
|
|
3443
|
+
if (!g(c, b) || r.value.has(gt(c.subject, b))) return "custom";
|
|
3444
3444
|
if (c.index === null) return "inherit";
|
|
3445
3445
|
const I = e.value[c.index], p = l(c.subject), k = p ? u(p) : void 0;
|
|
3446
3446
|
if (I && k) {
|
|
3447
|
-
const L = tt(
|
|
3447
|
+
const L = tt(We(I), b), X = i(k, b);
|
|
3448
3448
|
if (JSON.stringify(L) === JSON.stringify(X)) return "inherit";
|
|
3449
3449
|
}
|
|
3450
3450
|
return "custom";
|
|
@@ -3460,11 +3460,11 @@ function fa(e, t, n) {
|
|
|
3460
3460
|
}
|
|
3461
3461
|
function N(c, b) {
|
|
3462
3462
|
if (c.index === null) return;
|
|
3463
|
-
const I = [...e.value], p = { ...I[c.index] }, k =
|
|
3463
|
+
const I = [...e.value], p = { ...I[c.index] }, k = Yt(p, b), L = Object.keys(k).length === 0, X = l(c.subject), V = X ? u(X) : void 0, m = V ? Mt(V, p) : !1;
|
|
3464
3464
|
if (L && m)
|
|
3465
3465
|
I.splice(c.index, 1);
|
|
3466
3466
|
else if (V) {
|
|
3467
|
-
const C =
|
|
3467
|
+
const C = xn(p, V, b);
|
|
3468
3468
|
Object.keys(C).length === 0 ? delete p.conditions : p.conditions = JSON.stringify(C), I[c.index] = p;
|
|
3469
3469
|
} else
|
|
3470
3470
|
L ? delete p.conditions : p.conditions = JSON.stringify(k), I[c.index] = p;
|
|
@@ -3473,12 +3473,12 @@ function fa(e, t, n) {
|
|
|
3473
3473
|
function F(c, b, I) {
|
|
3474
3474
|
const p = gt(c.subject, b);
|
|
3475
3475
|
if (I === "inherit") {
|
|
3476
|
-
const L = new Set(
|
|
3477
|
-
L.delete(p),
|
|
3476
|
+
const L = new Set(r.value);
|
|
3477
|
+
L.delete(p), r.value = L, N(c, b);
|
|
3478
3478
|
return;
|
|
3479
3479
|
}
|
|
3480
|
-
const k = new Set(
|
|
3481
|
-
k.add(p),
|
|
3480
|
+
const k = new Set(r.value);
|
|
3481
|
+
k.add(p), r.value = k, c.index === null && h(c, b, b.fromCondition(void 0), {
|
|
3482
3482
|
forceCreateRule: !0
|
|
3483
3483
|
});
|
|
3484
3484
|
}
|
|
@@ -3488,21 +3488,21 @@ function fa(e, t, n) {
|
|
|
3488
3488
|
const I = u(b);
|
|
3489
3489
|
return (I == null ? void 0 : I.actions) ?? [];
|
|
3490
3490
|
}
|
|
3491
|
-
function
|
|
3491
|
+
function A(c, b) {
|
|
3492
3492
|
return e.value.filter((I) => {
|
|
3493
3493
|
if (I.inverted) return !1;
|
|
3494
3494
|
const p = I.subject;
|
|
3495
|
-
return p === c || l(p) !== c ? !1 :
|
|
3495
|
+
return p === c || l(p) !== c ? !1 : r.value.has(gt(p, b)) ? !0 : Object.keys(tt(We(I), b)).length > 0;
|
|
3496
3496
|
});
|
|
3497
3497
|
}
|
|
3498
3498
|
function w(c, b) {
|
|
3499
|
-
const I = `::${b.builderKey}`, p = new Set(
|
|
3499
|
+
const I = `::${b.builderKey}`, p = new Set(r.value);
|
|
3500
3500
|
for (const k of p) {
|
|
3501
3501
|
if (!k.endsWith(I)) continue;
|
|
3502
3502
|
const L = k.slice(0, -I.length);
|
|
3503
3503
|
l(L) === c && p.delete(k);
|
|
3504
3504
|
}
|
|
3505
|
-
|
|
3505
|
+
r.value = p;
|
|
3506
3506
|
}
|
|
3507
3507
|
function f(c, b, I) {
|
|
3508
3508
|
const p = b.subject;
|
|
@@ -3512,9 +3512,9 @@ function fa(e, t, n) {
|
|
|
3512
3512
|
const X = L.subject;
|
|
3513
3513
|
if (X === p || l(X) !== p)
|
|
3514
3514
|
return k.push(L), k;
|
|
3515
|
-
if (Mt(b, L) && Object.keys(
|
|
3515
|
+
if (Mt(b, L) && Object.keys(Yt(L, I)).length === 0)
|
|
3516
3516
|
return k;
|
|
3517
|
-
const m =
|
|
3517
|
+
const m = xn(L, b, I);
|
|
3518
3518
|
if (Object.keys(m).length === 0) {
|
|
3519
3519
|
const { conditions: C, ...U } = L;
|
|
3520
3520
|
k.push(U);
|
|
@@ -3524,7 +3524,7 @@ function fa(e, t, n) {
|
|
|
3524
3524
|
}, []);
|
|
3525
3525
|
}
|
|
3526
3526
|
function h(c, b, I, p = {}) {
|
|
3527
|
-
var
|
|
3527
|
+
var x;
|
|
3528
3528
|
const k = [...e.value];
|
|
3529
3529
|
let L = c.index;
|
|
3530
3530
|
const X = b.toCondition(I), V = Object.keys(X).length > 0;
|
|
@@ -3537,9 +3537,9 @@ function fa(e, t, n) {
|
|
|
3537
3537
|
const G = t.value.find((Q) => Q.subject === c.subject);
|
|
3538
3538
|
if (!G) return;
|
|
3539
3539
|
const {
|
|
3540
|
-
category:
|
|
3541
|
-
showByFeatureFlag:
|
|
3542
|
-
isCategoryCover:
|
|
3540
|
+
category: W,
|
|
3541
|
+
showByFeatureFlag: Y,
|
|
3542
|
+
isCategoryCover: B,
|
|
3543
3543
|
...ne
|
|
3544
3544
|
} = G;
|
|
3545
3545
|
k.push({
|
|
@@ -3552,28 +3552,28 @@ function fa(e, t, n) {
|
|
|
3552
3552
|
m.actions = [
|
|
3553
3553
|
.../* @__PURE__ */ new Set([...m.actions, ...c.actions])
|
|
3554
3554
|
];
|
|
3555
|
-
const C =
|
|
3556
|
-
if (Object.keys(U).length === 0 ? delete m.conditions : m.conditions = JSON.stringify(U), k[L] = m,
|
|
3557
|
-
const j =
|
|
3558
|
-
var
|
|
3559
|
-
w(c.subject, b), n(f(k, m, b)), (
|
|
3560
|
-
},
|
|
3561
|
-
var
|
|
3562
|
-
n(k), (
|
|
3555
|
+
const C = We(m), U = wt(C, [{ builder: b, formValue: I }]);
|
|
3556
|
+
if (Object.keys(U).length === 0 ? delete m.conditions : m.conditions = JSON.stringify(U), k[L] = m, sn(c.subject, t.value)) {
|
|
3557
|
+
const j = A(c.subject, b), G = () => {
|
|
3558
|
+
var Y;
|
|
3559
|
+
w(c.subject, b), n(f(k, m, b)), (Y = p.afterCommit) == null || Y.call(p);
|
|
3560
|
+
}, W = () => {
|
|
3561
|
+
var Y;
|
|
3562
|
+
n(k), (Y = p.afterCommit) == null || Y.call(p);
|
|
3563
3563
|
};
|
|
3564
3564
|
if (j.length === 0) {
|
|
3565
3565
|
G();
|
|
3566
3566
|
return;
|
|
3567
3567
|
}
|
|
3568
|
-
p.onOverridesConflict ? p.onOverridesConflict({ override: G, keep:
|
|
3568
|
+
p.onOverridesConflict ? p.onOverridesConflict({ override: G, keep: W }) : W();
|
|
3569
3569
|
return;
|
|
3570
3570
|
}
|
|
3571
|
-
n(k), (
|
|
3571
|
+
n(k), (x = p.afterCommit) == null || x.call(p);
|
|
3572
3572
|
}
|
|
3573
3573
|
function S(c, b, I = {}) {
|
|
3574
3574
|
if (b.length === 0) return;
|
|
3575
3575
|
const p = [...e.value];
|
|
3576
|
-
let k = p.findIndex((j) => !j.inverted && j.subject === c.subject), L = k === -1 ? void 0 : { ...p[k] }, X =
|
|
3576
|
+
let k = p.findIndex((j) => !j.inverted && j.subject === c.subject), L = k === -1 ? void 0 : { ...p[k] }, X = We(L ?? {}) ?? {};
|
|
3577
3577
|
for (const j of b) {
|
|
3578
3578
|
const G = j.mode === "inherit" ? j.builder.fromCondition(void 0) : j.form;
|
|
3579
3579
|
X = wt(X, [{ builder: j.builder, formValue: G }]);
|
|
@@ -3584,13 +3584,13 @@ function fa(e, t, n) {
|
|
|
3584
3584
|
if (!j) return;
|
|
3585
3585
|
const {
|
|
3586
3586
|
category: G,
|
|
3587
|
-
showByFeatureFlag:
|
|
3588
|
-
isCategoryCover:
|
|
3589
|
-
...
|
|
3587
|
+
showByFeatureFlag: W,
|
|
3588
|
+
isCategoryCover: Y,
|
|
3589
|
+
...B
|
|
3590
3590
|
} = j;
|
|
3591
3591
|
L = {
|
|
3592
|
-
...
|
|
3593
|
-
actions: c.actions.length > 0 ? c.actions :
|
|
3592
|
+
...B,
|
|
3593
|
+
actions: c.actions.length > 0 ? c.actions : B.actions
|
|
3594
3594
|
}, p.push(L), k = p.length - 1;
|
|
3595
3595
|
}
|
|
3596
3596
|
if (L) {
|
|
@@ -3601,46 +3601,46 @@ function fa(e, t, n) {
|
|
|
3601
3601
|
if (L.actions = [
|
|
3602
3602
|
.../* @__PURE__ */ new Set([...L.actions, ...c.actions])
|
|
3603
3603
|
], G)
|
|
3604
|
-
for (const
|
|
3605
|
-
|
|
3604
|
+
for (const Y of b)
|
|
3605
|
+
Y.mode === "inherit" && (X = {
|
|
3606
3606
|
...X,
|
|
3607
|
-
...tt(
|
|
3607
|
+
...tt(We(G), Y.builder)
|
|
3608
3608
|
});
|
|
3609
3609
|
Object.keys(X).length === 0 ? delete L.conditions : L.conditions = JSON.stringify(X), p[k] = L;
|
|
3610
3610
|
}
|
|
3611
3611
|
}
|
|
3612
3612
|
const m = () => {
|
|
3613
|
-
const j = new Set(
|
|
3613
|
+
const j = new Set(r.value);
|
|
3614
3614
|
for (const G of b) {
|
|
3615
|
-
const
|
|
3616
|
-
G.mode === "custom" ? j.add(
|
|
3615
|
+
const W = gt(c.subject, G.builder);
|
|
3616
|
+
G.mode === "custom" ? j.add(W) : j.delete(W);
|
|
3617
3617
|
}
|
|
3618
|
-
|
|
3618
|
+
r.value = j;
|
|
3619
3619
|
}, C = (j) => {
|
|
3620
3620
|
var G;
|
|
3621
3621
|
m(), n(j), (G = I.afterCommit) == null || G.call(I);
|
|
3622
3622
|
};
|
|
3623
|
-
if (!
|
|
3623
|
+
if (!sn(c.subject, t.value) || !L) {
|
|
3624
3624
|
C(p);
|
|
3625
3625
|
return;
|
|
3626
3626
|
}
|
|
3627
|
-
const U = b.map((j) => j.builder).filter((j) =>
|
|
3627
|
+
const U = b.map((j) => j.builder).filter((j) => A(c.subject, j).length > 0), x = () => {
|
|
3628
3628
|
let j = p;
|
|
3629
|
-
for (const G of b.map((
|
|
3629
|
+
for (const G of b.map((W) => W.builder))
|
|
3630
3630
|
w(c.subject, G), j = f(j, L, G);
|
|
3631
3631
|
C(j);
|
|
3632
3632
|
};
|
|
3633
3633
|
if (U.length > 0 && I.onOverridesConflict) {
|
|
3634
|
-
I.onOverridesConflict({ override:
|
|
3634
|
+
I.onOverridesConflict({ override: x, keep: () => C(p) });
|
|
3635
3635
|
return;
|
|
3636
3636
|
}
|
|
3637
|
-
U.length > 0 ? C(p) :
|
|
3637
|
+
U.length > 0 ? C(p) : x();
|
|
3638
3638
|
}
|
|
3639
3639
|
return {
|
|
3640
3640
|
getCoverSubject: l,
|
|
3641
3641
|
coverLabel: d,
|
|
3642
3642
|
shouldShowInheritToggle: g,
|
|
3643
|
-
inheritMode:
|
|
3643
|
+
inheritMode: E,
|
|
3644
3644
|
setInheritMode: F,
|
|
3645
3645
|
inheritedSummary: T,
|
|
3646
3646
|
getEffectiveActions: D,
|
|
@@ -3648,7 +3648,7 @@ function fa(e, t, n) {
|
|
|
3648
3648
|
applyConditionDrafts: S
|
|
3649
3649
|
};
|
|
3650
3650
|
}
|
|
3651
|
-
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" },
|
|
3651
|
+
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", wa = /* @__PURE__ */ Ae({
|
|
3652
3652
|
__name: "PortalPermissionEditor",
|
|
3653
3653
|
props: /* @__PURE__ */ tn({
|
|
3654
3654
|
disable: {
|
|
@@ -3665,31 +3665,31 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3665
3665
|
}),
|
|
3666
3666
|
emits: /* @__PURE__ */ tn(["permissionChanged"], ["update:modelValue"]),
|
|
3667
3667
|
setup(e, { emit: t }) {
|
|
3668
|
-
const n =
|
|
3669
|
-
fetchCustomReportPermissions:
|
|
3668
|
+
const n = vr(e, "modelValue"), r = e, l = t, { t: a } = He(), d = hr(), u = br(), { breakpoints: i } = gr(), g = K(() => i.value.xs || i.value.sm), {
|
|
3669
|
+
fetchCustomReportPermissions: E,
|
|
3670
3670
|
customReportPermissions: T
|
|
3671
|
-
} =
|
|
3671
|
+
} = Ir(), N = K(() => [
|
|
3672
3672
|
...Gn,
|
|
3673
3673
|
...T.value
|
|
3674
3674
|
]), F = K(() => {
|
|
3675
|
-
const O = d.currentBusiness.value,
|
|
3675
|
+
const O = d.currentBusiness.value, s = d.currentCountry.value, o = s instanceof Object ? s.code : s;
|
|
3676
3676
|
return da(O, o);
|
|
3677
3677
|
});
|
|
3678
3678
|
function D(O) {
|
|
3679
|
-
return N.value.find((
|
|
3679
|
+
return N.value.find((s) => s.subject === O);
|
|
3680
3680
|
}
|
|
3681
|
-
function
|
|
3682
|
-
return
|
|
3681
|
+
function A(O, s) {
|
|
3682
|
+
return rn(O).filter(
|
|
3683
3683
|
(o) => {
|
|
3684
3684
|
var _;
|
|
3685
|
-
return ((_ = o.appliesToActions) == null ? void 0 : _.call(o,
|
|
3685
|
+
return ((_ = o.appliesToActions) == null ? void 0 : _.call(o, s)) ?? !0;
|
|
3686
3686
|
}
|
|
3687
3687
|
);
|
|
3688
3688
|
}
|
|
3689
3689
|
const w = K(() => {
|
|
3690
3690
|
const O = N.value.filter((o) => !c.includes(o.subject)).map((o) => o.subject);
|
|
3691
|
-
return
|
|
3692
|
-
|
|
3691
|
+
return Er(
|
|
3692
|
+
r.inheritPermissions.map((o) => ({
|
|
3693
3693
|
...o,
|
|
3694
3694
|
permissions: o.permissions.filter((_) => O.includes(_.subject))
|
|
3695
3695
|
}))
|
|
@@ -3698,38 +3698,38 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3698
3698
|
setNames: o.setNames
|
|
3699
3699
|
}));
|
|
3700
3700
|
}), f = K(() => {
|
|
3701
|
-
const O =
|
|
3702
|
-
...
|
|
3703
|
-
permissions:
|
|
3701
|
+
const O = r.inheritPermissions.map((s) => ({
|
|
3702
|
+
...s,
|
|
3703
|
+
permissions: s.permissions.filter(
|
|
3704
3704
|
(o) => o.subject === he.Subject.Business.inventory_stock
|
|
3705
3705
|
)
|
|
3706
3706
|
}));
|
|
3707
3707
|
return Lt(
|
|
3708
3708
|
O,
|
|
3709
3709
|
"warehouseId",
|
|
3710
|
-
I.value.map((
|
|
3710
|
+
I.value.map((s) => s._id)
|
|
3711
3711
|
);
|
|
3712
3712
|
}), h = K(() => {
|
|
3713
|
-
const O =
|
|
3714
|
-
...
|
|
3715
|
-
permissions:
|
|
3713
|
+
const O = r.inheritPermissions.map((s) => ({
|
|
3714
|
+
...s,
|
|
3715
|
+
permissions: s.permissions.filter(
|
|
3716
3716
|
(o) => o.subject === he.Subject.Restaurant.restaurant
|
|
3717
3717
|
)
|
|
3718
3718
|
}));
|
|
3719
3719
|
return Lt(
|
|
3720
3720
|
O,
|
|
3721
3721
|
"restaurantId",
|
|
3722
|
-
X.value.map((
|
|
3722
|
+
X.value.map((s) => s._id)
|
|
3723
3723
|
);
|
|
3724
3724
|
}), S = K(() => {
|
|
3725
|
-
const O =
|
|
3726
|
-
...
|
|
3727
|
-
permissions:
|
|
3725
|
+
const O = r.inheritPermissions.map((s) => ({
|
|
3726
|
+
...s,
|
|
3727
|
+
permissions: s.permissions.filter((o) => o.subject === he.Subject.Business.role)
|
|
3728
3728
|
}));
|
|
3729
3729
|
return Lt(
|
|
3730
3730
|
O,
|
|
3731
3731
|
"roleId",
|
|
3732
|
-
V.value.map((
|
|
3732
|
+
V.value.map((s) => s._id)
|
|
3733
3733
|
);
|
|
3734
3734
|
}), c = [
|
|
3735
3735
|
he.Subject.Business.restaurant,
|
|
@@ -3737,85 +3737,85 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3737
3737
|
he.Subject.Restaurant.restaurant,
|
|
3738
3738
|
he.Subject.Business.inventory_stock
|
|
3739
3739
|
], b = K(() => {
|
|
3740
|
-
var
|
|
3741
|
-
const O = (
|
|
3740
|
+
var s;
|
|
3741
|
+
const O = (s = n.value) == null ? void 0 : s.find(
|
|
3742
3742
|
(o) => o.subject === he.Subject.Business.inventory_stock
|
|
3743
3743
|
);
|
|
3744
3744
|
return O ? O.conditions ? JSON.parse(O.conditions).warehouseId.$in : null : [];
|
|
3745
|
-
}), I =
|
|
3745
|
+
}), I = rt([]), p = K(() => I.value.map((O) => ({
|
|
3746
3746
|
label: O.profile.name,
|
|
3747
3747
|
value: O._id
|
|
3748
3748
|
})));
|
|
3749
3749
|
function k(O) {
|
|
3750
|
-
const
|
|
3751
|
-
n.value =
|
|
3750
|
+
const s = L(n.value, O);
|
|
3751
|
+
n.value = s;
|
|
3752
3752
|
}
|
|
3753
|
-
function L(O,
|
|
3753
|
+
function L(O, s) {
|
|
3754
3754
|
let o = It(
|
|
3755
3755
|
O.filter((_) => _.subject !== he.Subject.Business.inventory_stock)
|
|
3756
3756
|
);
|
|
3757
|
-
if (!
|
|
3757
|
+
if (!s || s.length > 0) {
|
|
3758
3758
|
const _ = {
|
|
3759
3759
|
actions: [he.Action.manage],
|
|
3760
3760
|
subject: he.Subject.Business.inventory_stock
|
|
3761
3761
|
};
|
|
3762
|
-
|
|
3762
|
+
s && (_.conditions = JSON.stringify({ warehouseId: { $in: s } })), o.push(_);
|
|
3763
3763
|
}
|
|
3764
3764
|
return o;
|
|
3765
3765
|
}
|
|
3766
|
-
const { restaurants: X } = d, V =
|
|
3766
|
+
const { restaurants: X } = d, V = Mr().roles, m = K(() => X.value.map((O) => ({
|
|
3767
3767
|
label: `${O.profile.code ? O.profile.code + "-" : ""}${O.profile.name}`,
|
|
3768
3768
|
value: O._id
|
|
3769
|
-
}))), C = K(() => X.value.reduce((O,
|
|
3770
|
-
function
|
|
3771
|
-
const
|
|
3772
|
-
n.value =
|
|
3769
|
+
}))), C = K(() => X.value.reduce((O, s) => (O[s._id] = V.value.filter((o) => o.restaurants.some((_) => _.id === s._id)).map((o) => o._id), O), {})), U = K(() => yr(n.value));
|
|
3770
|
+
function x(O) {
|
|
3771
|
+
const s = G(n.value, O);
|
|
3772
|
+
n.value = s;
|
|
3773
3773
|
}
|
|
3774
|
-
const j = K(() =>
|
|
3775
|
-
function G(O,
|
|
3774
|
+
const j = K(() => Nr(n.value));
|
|
3775
|
+
function G(O, s) {
|
|
3776
3776
|
var _;
|
|
3777
3777
|
let o = It(
|
|
3778
3778
|
O.filter(
|
|
3779
|
-
(
|
|
3779
|
+
(R) => R.subject !== he.Subject.Business.restaurant && R.subject !== he.Subject.Restaurant.restaurant
|
|
3780
3780
|
)
|
|
3781
3781
|
);
|
|
3782
|
-
if (!
|
|
3782
|
+
if (!s || s.length > 0) {
|
|
3783
3783
|
const {
|
|
3784
|
-
category:
|
|
3784
|
+
category: R,
|
|
3785
3785
|
showByFeatureFlag: M,
|
|
3786
3786
|
...P
|
|
3787
|
-
} =
|
|
3787
|
+
} = Lr.restaurant;
|
|
3788
3788
|
o.push(P);
|
|
3789
3789
|
const v = {
|
|
3790
3790
|
actions: [he.Action.manage],
|
|
3791
3791
|
subject: he.Subject.Restaurant.restaurant
|
|
3792
3792
|
};
|
|
3793
|
-
|
|
3793
|
+
s && (v.conditions = JSON.stringify({ restaurantId: { $in: s } })), o.push(v);
|
|
3794
3794
|
}
|
|
3795
|
-
if (
|
|
3796
|
-
const
|
|
3797
|
-
...new Set(
|
|
3795
|
+
if (s) {
|
|
3796
|
+
const R = [
|
|
3797
|
+
...new Set(s.map((P) => C.value[P]).flatMap((P) => P))
|
|
3798
3798
|
], M = V.value.map((P) => P._id);
|
|
3799
|
-
|
|
3799
|
+
R.length !== M.length && (o = Y(
|
|
3800
3800
|
o,
|
|
3801
|
-
(_ = j.value || M) == null ? void 0 : _.filter((P) =>
|
|
3801
|
+
(_ = j.value || M) == null ? void 0 : _.filter((P) => R.includes(P))
|
|
3802
3802
|
));
|
|
3803
3803
|
}
|
|
3804
3804
|
return o;
|
|
3805
3805
|
}
|
|
3806
|
-
function
|
|
3807
|
-
const
|
|
3808
|
-
n.value =
|
|
3806
|
+
function W(O) {
|
|
3807
|
+
const s = Y(n.value, O);
|
|
3808
|
+
n.value = s;
|
|
3809
3809
|
}
|
|
3810
|
-
function
|
|
3810
|
+
function Y(O, s) {
|
|
3811
3811
|
let o = It(
|
|
3812
3812
|
O.filter((_) => _.subject !== he.Subject.Business.role)
|
|
3813
3813
|
);
|
|
3814
|
-
if (
|
|
3814
|
+
if (s && s.length > 0) {
|
|
3815
3815
|
const _ = {
|
|
3816
3816
|
actions: [he.Action.manage],
|
|
3817
3817
|
subject: he.Subject.Business.role,
|
|
3818
|
-
conditions: JSON.stringify({ roleId: { $in:
|
|
3818
|
+
conditions: JSON.stringify({ roleId: { $in: s } })
|
|
3819
3819
|
};
|
|
3820
3820
|
o.push(_);
|
|
3821
3821
|
}
|
|
@@ -3824,12 +3824,12 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3824
3824
|
Vn(async () => {
|
|
3825
3825
|
await Promise.all([
|
|
3826
3826
|
la.readWarehouses().then((O) => I.value = O),
|
|
3827
|
-
|
|
3827
|
+
E()
|
|
3828
3828
|
]);
|
|
3829
3829
|
});
|
|
3830
|
-
const
|
|
3830
|
+
const B = K(() => Zn(
|
|
3831
3831
|
n.value,
|
|
3832
|
-
|
|
3832
|
+
Yn
|
|
3833
3833
|
).filter((o) => {
|
|
3834
3834
|
const _ = o.source;
|
|
3835
3835
|
return (_ == null ? void 0 : _.type) !== "systemPermissionSet" ? !0 : o.actions.includes("manage");
|
|
@@ -3837,45 +3837,45 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3837
3837
|
if (o.inverted) return o;
|
|
3838
3838
|
const _ = o.actions;
|
|
3839
3839
|
if (!_.includes("manage")) return o;
|
|
3840
|
-
const
|
|
3841
|
-
if (!
|
|
3842
|
-
const M =
|
|
3840
|
+
const R = D(o.subject);
|
|
3841
|
+
if (!R) return o;
|
|
3842
|
+
const M = R.actions;
|
|
3843
3843
|
return M.length <= 1 || M.filter((v) => !_.includes(v)).length === 0 ? o : { ...o, actions: [...M] };
|
|
3844
3844
|
}));
|
|
3845
3845
|
function ne(O) {
|
|
3846
3846
|
n.value = ia(
|
|
3847
|
-
|
|
3847
|
+
B.value,
|
|
3848
3848
|
O,
|
|
3849
3849
|
n.value,
|
|
3850
3850
|
D
|
|
3851
3851
|
);
|
|
3852
3852
|
}
|
|
3853
3853
|
const Q = K(() => new Set(
|
|
3854
|
-
N.value.filter((O) =>
|
|
3854
|
+
N.value.filter((O) => rn(O.subject).length > 0).map((O) => O.subject)
|
|
3855
3855
|
)), _e = K(() => {
|
|
3856
3856
|
const O = /* @__PURE__ */ new Map();
|
|
3857
|
-
return
|
|
3858
|
-
rule:
|
|
3857
|
+
return B.value.map((s) => ({
|
|
3858
|
+
rule: s,
|
|
3859
3859
|
index: n.value.findIndex(
|
|
3860
|
-
(o) => !o.inverted && o.subject ===
|
|
3860
|
+
(o) => !o.inverted && o.subject === s.subject
|
|
3861
3861
|
)
|
|
3862
|
-
})).filter(({ rule:
|
|
3862
|
+
})).filter(({ rule: s }) => !s.inverted).forEach(({ rule: s, index: o }) => {
|
|
3863
3863
|
var P;
|
|
3864
|
-
const _ =
|
|
3865
|
-
if (
|
|
3864
|
+
const _ = s.actions, R = A(s.subject, _);
|
|
3865
|
+
if (R.length === 0) return;
|
|
3866
3866
|
let M;
|
|
3867
3867
|
try {
|
|
3868
|
-
M =
|
|
3868
|
+
M = s.conditions ? JSON.parse(s.conditions) : void 0;
|
|
3869
3869
|
} catch {
|
|
3870
3870
|
M = void 0;
|
|
3871
3871
|
}
|
|
3872
|
-
O.set(
|
|
3872
|
+
O.set(s.subject, {
|
|
3873
3873
|
index: o >= 0 ? o : null,
|
|
3874
|
-
subject:
|
|
3875
|
-
label: ((P = D(
|
|
3874
|
+
subject: s.subject,
|
|
3875
|
+
label: ((P = D(s.subject)) == null ? void 0 : P.label) ?? s.subject,
|
|
3876
3876
|
actions: _,
|
|
3877
3877
|
// Each builder only ever sees its own slice of the stored condition.
|
|
3878
|
-
sections:
|
|
3878
|
+
sections: R.map((v) => ({
|
|
3879
3879
|
builder: v,
|
|
3880
3880
|
formValue: v.fromCondition(tt(M, v))
|
|
3881
3881
|
}))
|
|
@@ -3883,84 +3883,84 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3883
3883
|
}), O;
|
|
3884
3884
|
}), ce = fa(n, N, (O) => {
|
|
3885
3885
|
n.value = O;
|
|
3886
|
-
}),
|
|
3887
|
-
function q(O,
|
|
3886
|
+
}), se = Tr(n), fe = rt(null);
|
|
3887
|
+
function q(O, s) {
|
|
3888
3888
|
const o = _e.value.get(O);
|
|
3889
3889
|
if (o) return o;
|
|
3890
|
-
const _ = ce.getEffectiveActions(O),
|
|
3891
|
-
if (
|
|
3890
|
+
const _ = ce.getEffectiveActions(O), R = A(O, _);
|
|
3891
|
+
if (R.length !== 0)
|
|
3892
3892
|
return {
|
|
3893
3893
|
index: null,
|
|
3894
3894
|
subject: O,
|
|
3895
|
-
label:
|
|
3895
|
+
label: s,
|
|
3896
3896
|
actions: _,
|
|
3897
|
-
sections:
|
|
3897
|
+
sections: R.map((M) => ({
|
|
3898
3898
|
builder: M,
|
|
3899
3899
|
formValue: M.fromCondition(void 0)
|
|
3900
3900
|
}))
|
|
3901
3901
|
};
|
|
3902
3902
|
}
|
|
3903
|
-
function we(O,
|
|
3904
|
-
const o =
|
|
3903
|
+
function we(O, s) {
|
|
3904
|
+
const o = se.getDraft({ subject: O.subject, builderKey: s.builderKey });
|
|
3905
3905
|
if (o) return o.formValue;
|
|
3906
|
-
const _ = O.sections.find((
|
|
3906
|
+
const _ = O.sections.find((R) => R.builder.builderKey === s.builderKey);
|
|
3907
3907
|
return _ == null ? void 0 : _.formValue;
|
|
3908
3908
|
}
|
|
3909
|
-
function z(O,
|
|
3910
|
-
const o =
|
|
3911
|
-
return o != null && o.inheritMode ? o.inheritMode : ce.inheritMode(O,
|
|
3909
|
+
function z(O, s) {
|
|
3910
|
+
const o = se.getDraft({ subject: O.subject, builderKey: s.builderKey });
|
|
3911
|
+
return o != null && o.inheritMode ? o.inheritMode : ce.inheritMode(O, s);
|
|
3912
3912
|
}
|
|
3913
|
-
function pe(O,
|
|
3914
|
-
const _ =
|
|
3913
|
+
function pe(O, s, o) {
|
|
3914
|
+
const _ = se.getDraft({
|
|
3915
3915
|
subject: O.subject,
|
|
3916
|
-
builderKey:
|
|
3916
|
+
builderKey: s.builderKey
|
|
3917
3917
|
});
|
|
3918
|
-
|
|
3919
|
-
{ subject: O.subject, builderKey:
|
|
3918
|
+
se.setDraft(
|
|
3919
|
+
{ subject: O.subject, builderKey: s.builderKey },
|
|
3920
3920
|
{
|
|
3921
3921
|
formValue: o,
|
|
3922
|
-
inheritMode: (_ == null ? void 0 : _.inheritMode) ?? z(O,
|
|
3922
|
+
inheritMode: (_ == null ? void 0 : _.inheritMode) ?? z(O, s)
|
|
3923
3923
|
}
|
|
3924
3924
|
);
|
|
3925
3925
|
}
|
|
3926
|
-
function Je(O,
|
|
3927
|
-
const _ =
|
|
3926
|
+
function Je(O, s, o) {
|
|
3927
|
+
const _ = se.getDraft({
|
|
3928
3928
|
subject: O.subject,
|
|
3929
|
-
builderKey:
|
|
3930
|
-
}),
|
|
3931
|
-
|
|
3932
|
-
{ subject: O.subject, builderKey:
|
|
3929
|
+
builderKey: s.builderKey
|
|
3930
|
+
}), R = O.sections.find((M) => M.builder.builderKey === s.builderKey);
|
|
3931
|
+
se.setDraft(
|
|
3932
|
+
{ subject: O.subject, builderKey: s.builderKey },
|
|
3933
3933
|
{
|
|
3934
|
-
formValue: (_ == null ? void 0 : _.formValue) ?? (
|
|
3934
|
+
formValue: (_ == null ? void 0 : _.formValue) ?? (R == null ? void 0 : R.formValue),
|
|
3935
3935
|
inheritMode: o
|
|
3936
3936
|
}
|
|
3937
3937
|
);
|
|
3938
3938
|
}
|
|
3939
3939
|
function ze(O) {
|
|
3940
|
-
return
|
|
3940
|
+
return se.hasDraftsForSubject(O);
|
|
3941
3941
|
}
|
|
3942
|
-
function
|
|
3942
|
+
function xe(O, s) {
|
|
3943
3943
|
const o = O.sections.flatMap((_) => {
|
|
3944
|
-
const
|
|
3944
|
+
const R = se.getDraft({
|
|
3945
3945
|
subject: O.subject,
|
|
3946
3946
|
builderKey: _.builder.builderKey
|
|
3947
3947
|
});
|
|
3948
|
-
return
|
|
3948
|
+
return R ? [{ builder: _.builder, form: R.formValue, mode: R.inheritMode ?? "custom" }] : [];
|
|
3949
3949
|
});
|
|
3950
3950
|
ce.applyConditionDrafts(O, o, {
|
|
3951
3951
|
afterCommit: () => {
|
|
3952
|
-
|
|
3952
|
+
se.clearDraftsForSubject(O.subject), s();
|
|
3953
3953
|
},
|
|
3954
|
-
onOverridesConflict:
|
|
3954
|
+
onOverridesConflict: Ye(O).onOverridesConflict
|
|
3955
3955
|
});
|
|
3956
3956
|
}
|
|
3957
3957
|
function Fe(O) {
|
|
3958
|
-
return O.sections.some((
|
|
3958
|
+
return O.sections.some((s) => ce.shouldShowInheritToggle(O, s.builder) ? ce.inheritMode(O, s.builder) === "custom" : Object.keys(s.builder.toCondition(s.formValue)).length > 0);
|
|
3959
3959
|
}
|
|
3960
3960
|
let Ce = !1;
|
|
3961
|
-
function
|
|
3961
|
+
function Ye(O, s = {}) {
|
|
3962
3962
|
return {
|
|
3963
|
-
...
|
|
3963
|
+
...s,
|
|
3964
3964
|
onOverridesConflict: ({ override: o, keep: _ }) => {
|
|
3965
3965
|
Ce || (Ce = !0, u.open({
|
|
3966
3966
|
title: a("team.memberForm.permissions.conditionCover.confirmTitle"),
|
|
@@ -3993,23 +3993,23 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3993
3993
|
l("permissionChanged", O);
|
|
3994
3994
|
},
|
|
3995
3995
|
{ deep: !0 }
|
|
3996
|
-
), (O,
|
|
3997
|
-
const o = De("FmIcon"), _ = De("FmBottomSheet"),
|
|
3996
|
+
), (O, s) => {
|
|
3997
|
+
const o = De("FmIcon"), _ = De("FmBottomSheet"), R = De("FmPopover");
|
|
3998
3998
|
return J(), ie("div", _a, [
|
|
3999
3999
|
ae("div", pa, [
|
|
4000
4000
|
ue(Ho, {
|
|
4001
|
-
"model-value":
|
|
4001
|
+
"model-value": B.value,
|
|
4002
4002
|
"excluded-subjects": c,
|
|
4003
4003
|
"additional-permissions": H(T),
|
|
4004
4004
|
"onUpdate:modelValue": ne
|
|
4005
4005
|
}, et({ _: 2 }, [
|
|
4006
|
-
|
|
4006
|
+
ye(w.value, (M) => ({
|
|
4007
4007
|
name: `checkbox-${M.id}-append`,
|
|
4008
4008
|
fn: de(() => [
|
|
4009
4009
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
4010
4010
|
])
|
|
4011
4011
|
})),
|
|
4012
|
-
|
|
4012
|
+
ye(Q.value, (M) => ({
|
|
4013
4013
|
name: `checkbox-${M}-icon`,
|
|
4014
4014
|
fn: de(({ option: P, isEffectiveSelected: v }) => [
|
|
4015
4015
|
v && q(M, P.label) ? (J(), ie(ke, { key: 0 }, [
|
|
@@ -4022,8 +4022,8 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4022
4022
|
"dismiss-away": "",
|
|
4023
4023
|
"z-index": 100,
|
|
4024
4024
|
class: "h-5 flex items-center",
|
|
4025
|
-
"onUpdate:modelValue": (
|
|
4026
|
-
fe.value =
|
|
4025
|
+
"onUpdate:modelValue": (y) => {
|
|
4026
|
+
fe.value = y ? M : null, y || H(se).clearDraftsForSubject(M);
|
|
4027
4027
|
}
|
|
4028
4028
|
}, {
|
|
4029
4029
|
"bottom-sheet-button": de(() => [
|
|
@@ -4041,29 +4041,29 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4041
4041
|
default: de(() => [
|
|
4042
4042
|
ue(Fn, {
|
|
4043
4043
|
entry: q(M, P.label),
|
|
4044
|
-
builders: q(M, P.label).sections.map((
|
|
4044
|
+
builders: q(M, P.label).sections.map((y) => y.builder),
|
|
4045
4045
|
subject: M,
|
|
4046
4046
|
"time-zone": F.value,
|
|
4047
4047
|
"cover-override": H(ce),
|
|
4048
|
-
"inherit-mode-for": (
|
|
4049
|
-
"form-value-for": (
|
|
4048
|
+
"inherit-mode-for": (y) => z(q(M, P.label), y),
|
|
4049
|
+
"form-value-for": (y) => we(q(M, P.label), y),
|
|
4050
4050
|
"has-changes": ze(M),
|
|
4051
4051
|
disable: e.disable,
|
|
4052
4052
|
"full-width": !0,
|
|
4053
|
-
onUpdateInheritMode: ({ builder:
|
|
4054
|
-
onUpdateForm: ({ builder:
|
|
4055
|
-
onApply: (
|
|
4053
|
+
onUpdateInheritMode: ({ builder: y, mode: $ }) => Je(q(M, P.label), y, $),
|
|
4054
|
+
onUpdateForm: ({ builder: y, form: $ }) => pe(q(M, P.label), y, $),
|
|
4055
|
+
onApply: (y) => xe(q(M, P.label), () => fe.value = null)
|
|
4056
4056
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4057
4057
|
]),
|
|
4058
4058
|
_: 2
|
|
4059
|
-
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (J(), Ne(
|
|
4059
|
+
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (J(), Ne(R, {
|
|
4060
4060
|
key: 1,
|
|
4061
4061
|
disabled: e.disable,
|
|
4062
4062
|
"z-index": 100,
|
|
4063
|
-
"exclude-el-from-click-outside": [
|
|
4063
|
+
"exclude-el-from-click-outside": [Ea],
|
|
4064
4064
|
class: "h-5 flex items-center",
|
|
4065
|
-
onPopoverChanged: (
|
|
4066
|
-
|
|
4065
|
+
onPopoverChanged: (y) => {
|
|
4066
|
+
y || H(se).clearDraftsForSubject(M);
|
|
4067
4067
|
}
|
|
4068
4068
|
}, {
|
|
4069
4069
|
"popover-button": de(() => [
|
|
@@ -4078,7 +4078,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4078
4078
|
}, null, 8, ["class"])
|
|
4079
4079
|
])
|
|
4080
4080
|
]),
|
|
4081
|
-
default: de(({ hide:
|
|
4081
|
+
default: de(({ hide: y }) => [
|
|
4082
4082
|
ue(Fn, {
|
|
4083
4083
|
entry: q(M, P.label),
|
|
4084
4084
|
builders: q(M, P.label).sections.map(($) => $.builder),
|
|
@@ -4098,7 +4098,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4098
4098
|
le
|
|
4099
4099
|
),
|
|
4100
4100
|
onUpdateForm: ({ builder: $, form: le }) => pe(q(M, P.label), $, le),
|
|
4101
|
-
onApply: ($) =>
|
|
4101
|
+
onApply: ($) => xe(q(M, P.label), y)
|
|
4102
4102
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "title", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4103
4103
|
]),
|
|
4104
4104
|
_: 2
|
|
@@ -4120,7 +4120,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4120
4120
|
context: H(a)("team.labels.warehouse"),
|
|
4121
4121
|
"onUpdate:modelValue": k
|
|
4122
4122
|
}, et({ _: 2 }, [
|
|
4123
|
-
|
|
4123
|
+
ye(f.value, (M) => ({
|
|
4124
4124
|
name: `checkbox-${M.id}-append`,
|
|
4125
4125
|
fn: de(() => [
|
|
4126
4126
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
@@ -4133,9 +4133,9 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4133
4133
|
"model-value": U.value,
|
|
4134
4134
|
options: m.value,
|
|
4135
4135
|
context: H(a)("team.labels.restaurant"),
|
|
4136
|
-
"onUpdate:modelValue":
|
|
4136
|
+
"onUpdate:modelValue": x
|
|
4137
4137
|
}, et({ _: 2 }, [
|
|
4138
|
-
|
|
4138
|
+
ye(h.value, (M) => ({
|
|
4139
4139
|
name: `checkbox-${M.id}-append`,
|
|
4140
4140
|
fn: de(() => [
|
|
4141
4141
|
ue(vt, { item: M }, null, 8, ["item"])
|
|
@@ -4144,13 +4144,13 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4144
4144
|
]), 1032, ["model-value", "options", "context"])
|
|
4145
4145
|
]),
|
|
4146
4146
|
ae("div", Ia, [
|
|
4147
|
-
ue(
|
|
4147
|
+
ue(ra, {
|
|
4148
4148
|
roles: H(V),
|
|
4149
4149
|
"model-value": j.value,
|
|
4150
4150
|
"restaurant-ids": U.value,
|
|
4151
|
-
"onUpdate:modelValue":
|
|
4151
|
+
"onUpdate:modelValue": W
|
|
4152
4152
|
}, et({ _: 2 }, [
|
|
4153
|
-
|
|
4153
|
+
ye(S.value, (M) => ({
|
|
4154
4154
|
name: `checkbox-${M.id}-append`,
|
|
4155
4155
|
fn: de(() => [
|
|
4156
4156
|
ue(vt, { item: M }, null, 8, ["item"])
|