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