@feedmepos/mf-hrm-portal 2.2.5-dev → 2.2.5-dev.4
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-DgcWZ3SZ.js → ApprovalCodeList-D0B_X3Sf.js} +4 -4
- package/dist/{AuditLogList-vWKMMGvd.js → AuditLogList-D9anf4YQ.js} +18 -17
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DuhXogXK.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-4oENMRO3.js} +2 -2
- package/dist/EmployeeList-DREDu3Ou.js +788 -0
- 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-BAW0C1bA.js → GrantUserList-CLDshEN9.js} +5 -5
- package/dist/{Main-Wr6cTqfM.js → Main-DtMaG42L.js} +2 -2
- package/dist/{Main-NzpdRNB3.js → Main-QhQxU593.js} +5 -5
- package/dist/{Main-B7Nn8CLQ.js → Main-lqlb8tPw.js} +9 -9
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +243 -0
- package/dist/{PermissionSetList-D6AFOleD.js → PermissionSetList-BK8yBpJJ.js} +22 -21
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Bzq2_BMn.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-uSdvH81B.js} +924 -923
- package/dist/{RoleList-BuqpmXn_.js → RoleList-D6AX6BqB.js} +7 -7
- package/dist/ScheduleGeneralPage-DAECTCDu.js +242 -0
- package/dist/SchedulePage-CdFR7JuO.js +10751 -0
- package/dist/SchedulePositionPage-DTtKg0sx.js +220 -0
- package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-BiuUrr50.js +199 -0
- package/dist/SelectFilter-CG13h83-.js +264 -0
- package/dist/TeamMemberList-BM5JoR6J.js +1155 -0
- package/dist/{TimesheetList-B5FyVyCz.js → TimesheetList-Ch_f_PD5.js} +54 -53
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-C99Jr6Ax.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CxqxqwyD.js} +2 -2
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/{app-8samJY5z.js → app-tDHL6k4G.js} +3092 -2499
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-Ba4X_9nY.js → dayjs.min-B_XWc0Hu.js} +1 -1
- package/dist/employee-Bs_2vqBY.js +139 -0
- package/dist/index-Cz2b95YF.js +70 -0
- package/dist/{iteration-Dhdew1jW.js → index-jxRluZiW.js} +698 -726
- package/dist/iteration-CcXrOMQe.js +30 -0
- package/dist/{lodash-CJ3mHku0.js → lodash-D5vM3paU.js} +1 -1
- package/dist/{role-BViYS7RK.js → role-7ccipEEe.js} +4 -3
- package/dist/{rule-Dxt1ZSQS.js → rule-7faruCdz.js} +282 -277
- package/dist/src/api/schedule/index.d.ts +44 -0
- package/dist/src/components/form/OutletRoleAssignment.vue.d.ts +16 -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/helpers/outlet-role-assignment.d.ts +40 -0
- package/dist/src/helpers/rule.d.ts +15 -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/src/views/team/member/TeamMemberMasterUser.vue.d.ts +12 -3
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-BiyAfGvZ.js → useReportPermissions-FieO4EAD.js} +3 -3
- package/dist/useScheduleOutlet-CmIG5dwQ.js +557 -0
- package/dist/useSchedulePositions-DPVAgdB2.js +103 -0
- package/package.json +1 -1
- package/dist/EmployeeList-Cu4RxVQX.js +0 -889
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-BUI0Xsgc.js +0 -85
- package/dist/SelectFilter-ATOm0hdn.js +0 -269
- package/dist/TeamMemberList-M6HA9BWu.js +0 -1248
- package/dist/employee-BcFgm8Rt.js +0 -204
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
1
|
+
import { getCurrentInstance as Yt, inject as ur, ref as rt, shallowRef as dr, computed as z, watch as wt, onMounted as xn, onUnmounted as mr, defineComponent as Ae, h as Gn, createVNode as ue, Text as fr, Fragment as Re, resolveComponent as we, createBlock as Ne, openBlock as J, withCtx as de, createElementVNode as ae, createElementBlock as ie, toDisplayString as Oe, unref as H, renderList as Ee, toRef as en, normalizeStyle as nt, renderSlot as Se, createCommentVNode as Me, createTextVNode as _r, useSlots as vr, normalizeClass as qe, createSlots as et, mergeModels as tn, useModel as pr } from "vue";
|
|
2
2
|
import { useI18n as He, useCoreStore as hr } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialog as br, useBreakpoints as gr } from "@feedmepos/ui-library";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { p as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { u as Or,
|
|
8
|
-
import { c as
|
|
9
|
-
import { r as
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
|
|
5
|
+
import { p as Wn, N as Zn, d as Ir, P as yr, w as Lt, x as Er, y as Nr } from "./rule-7faruCdz.js";
|
|
6
|
+
import { _ as Xt, a as Cr, b as nn, u as Tr } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-4oENMRO3.js";
|
|
7
|
+
import { u as Or, v as Sr, b as Bn, S as Dt, A as tt, c as he, k as rn, O as Lr } from "./app-tDHL6k4G.js";
|
|
8
|
+
import { c as It } from "./iteration-CcXrOMQe.js";
|
|
9
|
+
import { r as Ar } from "./string-VNuQNweN.js";
|
|
10
|
+
import "./index-jxRluZiW.js";
|
|
11
|
+
import { g as kr, b as Rr } from "./restaurant-BTpBmfBV.js";
|
|
12
|
+
import { u as Mr } from "./role-7ccipEEe.js";
|
|
13
|
+
function Yn(e, t) {
|
|
13
14
|
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
14
15
|
}
|
|
15
16
|
function wr(e) {
|
|
16
17
|
return Array.isArray(e) ? e[0] : e;
|
|
17
18
|
}
|
|
18
19
|
function Dr(e, t) {
|
|
19
|
-
const n = t.find((l) =>
|
|
20
|
+
const n = t.find((l) => Yn(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 wr(r.subject);
|
|
24
25
|
}
|
|
25
26
|
function sn(e, t) {
|
|
26
|
-
const n = t.find((r) =>
|
|
27
|
+
const n = t.find((r) => Yn(r.subject, e));
|
|
27
28
|
return !!(n != null && n.isCategoryCover);
|
|
28
29
|
}
|
|
29
30
|
/*!
|
|
@@ -31,25 +32,25 @@ 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", $e = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Fr = (e, t, n) => Pr({ l: e, k: t, s: n }), Pr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ge = (e) => typeof e == "number" && isFinite(e), jr = (e) => Ht(e) === "[object Date]",
|
|
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) => Ht(e) === "[object Date]", Et = (e) => Ht(e) === "[object RegExp]", Ct = (e) => ee(e) && Object.keys(e).length === 0, Ie = Object.assign, Ur = Object.create, oe = (e = null) => Ur(e);
|
|
35
36
|
let an;
|
|
36
|
-
const
|
|
37
|
+
const Xe = () => 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
41
|
const Vr = Object.prototype.hasOwnProperty;
|
|
41
|
-
function
|
|
42
|
+
function Le(e, t) {
|
|
42
43
|
return Vr.call(e, t);
|
|
43
44
|
}
|
|
44
|
-
const be = Array.isArray,
|
|
45
|
+
const be = Array.isArray, me = (e) => typeof e == "function", Z = (e) => typeof e == "string", pe = (e) => typeof e == "boolean", te = (e) => e !== null && typeof e == "object", xr = (e) => te(e) && me(e.then) && me(e.catch), Xn = Object.prototype.toString, Ht = (e) => Xn.call(e), ee = (e) => Ht(e) === "[object Object]", Gr = (e) => e == null ? "" : be(e) || ee(e) && e.toString === Xn ? JSON.stringify(e, null, 2) : String(e);
|
|
45
46
|
function $t(e, t = "") {
|
|
46
47
|
return e.reduce((n, r, l) => l === 0 ? n + r : n + t + r, "");
|
|
47
48
|
}
|
|
48
|
-
function
|
|
49
|
+
function Wr(e, t) {
|
|
49
50
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
50
51
|
}
|
|
51
52
|
const ft = (e) => !te(e) || be(e);
|
|
52
|
-
function
|
|
53
|
+
function yt(e, t) {
|
|
53
54
|
if (ft(e) || ft(t))
|
|
54
55
|
throw new Error("Invalid value");
|
|
55
56
|
const n = [{ src: e, des: t }];
|
|
@@ -83,25 +84,25 @@ const re = {
|
|
|
83
84
|
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
84
85
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
85
86
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
86
|
-
},
|
|
87
|
+
}, Br = 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 Yr(e) {
|
|
92
93
|
throw e;
|
|
93
94
|
}
|
|
94
|
-
const Pe = " ",
|
|
95
|
+
const Pe = " ", Xr = "\r", ye = `
|
|
95
96
|
`, Hr = "\u2028", $r = "\u2029";
|
|
96
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 = (v) => t[v] === Xr && t[v + 1] === ye, u = (v) => t[v] === ye, i = (v) => t[v] === $r, g = (v) => t[v] === Hr, y = (v) => d(v) || u(v) || i(v) || g(v), T = () => n, N = () => r, F = () => l, w = () => a, A = (v) => d(v) || i(v) || g(v) ? ye : t[v], D = () => A(n), f = () => A(n + a);
|
|
100
101
|
function h() {
|
|
101
|
-
return a = 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;
|
|
@@ -109,7 +110,7 @@ function Jr(e) {
|
|
|
109
110
|
function b(v = 0) {
|
|
110
111
|
a = v;
|
|
111
112
|
}
|
|
112
|
-
function
|
|
113
|
+
function I() {
|
|
113
114
|
const v = n + a;
|
|
114
115
|
for (; v !== n; )
|
|
115
116
|
h();
|
|
@@ -120,45 +121,45 @@ function Jr(e) {
|
|
|
120
121
|
line: N,
|
|
121
122
|
column: F,
|
|
122
123
|
peekOffset: w,
|
|
123
|
-
charAt:
|
|
124
|
+
charAt: A,
|
|
124
125
|
currentChar: D,
|
|
125
126
|
currentPeek: f,
|
|
126
127
|
next: h,
|
|
127
128
|
peek: S,
|
|
128
129
|
reset: c,
|
|
129
130
|
resetPeek: b,
|
|
130
|
-
skipToPeek:
|
|
131
|
+
skipToPeek: I
|
|
131
132
|
};
|
|
132
133
|
}
|
|
133
134
|
const xe = void 0, Kr = ".", cn = "'", zr = "tokenizer";
|
|
134
135
|
function Qr(e, t = {}) {
|
|
135
|
-
const n = t.location !== !1, r = Jr(e), l = () => r.index(), a = () => Zr(r.line(), r.column(), r.index()),
|
|
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
|
-
}, g = () => i, { onError:
|
|
148
|
-
function T(s, o, _, ...
|
|
148
|
+
}, g = () => i, { onError: y } = t;
|
|
149
|
+
function T(s, o, _, ...k) {
|
|
149
150
|
const M = g();
|
|
150
|
-
if (o.column += _, o.offset += _,
|
|
151
|
+
if (o.column += _, o.offset += _, y) {
|
|
151
152
|
const P = n ? Ft(M.startLoc, o) : null, p = Tt(s, P, {
|
|
152
153
|
domain: zr,
|
|
153
|
-
args:
|
|
154
|
+
args: k
|
|
154
155
|
});
|
|
155
|
-
|
|
156
|
+
y(p);
|
|
156
157
|
}
|
|
157
158
|
}
|
|
158
159
|
function N(s, o, _) {
|
|
159
160
|
s.endLoc = a(), s.currentType = o;
|
|
160
|
-
const
|
|
161
|
-
return n && (
|
|
161
|
+
const k = { type: o };
|
|
162
|
+
return n && (k.loc = Ft(s.startLoc, s.endLoc)), _ != null && (k.value = _), k;
|
|
162
163
|
}
|
|
163
164
|
const F = (s) => N(
|
|
164
165
|
s,
|
|
@@ -168,14 +169,14 @@ function Qr(e, t = {}) {
|
|
|
168
169
|
function w(s, o) {
|
|
169
170
|
return s.currentChar() === o ? (s.next(), o) : (T(re.EXPECTED_TOKEN, a(), 0, o), "");
|
|
170
171
|
}
|
|
171
|
-
function
|
|
172
|
+
function A(s) {
|
|
172
173
|
let o = "";
|
|
173
|
-
for (; s.currentPeek() === Pe || s.currentPeek() ===
|
|
174
|
+
for (; s.currentPeek() === Pe || s.currentPeek() === ye; )
|
|
174
175
|
o += s.currentPeek(), s.peek();
|
|
175
176
|
return o;
|
|
176
177
|
}
|
|
177
178
|
function D(s) {
|
|
178
|
-
const o =
|
|
179
|
+
const o = A(s);
|
|
179
180
|
return s.skipToPeek(), o;
|
|
180
181
|
}
|
|
181
182
|
function f(s) {
|
|
@@ -196,73 +197,73 @@ function Qr(e, t = {}) {
|
|
|
196
197
|
const { currentType: _ } = o;
|
|
197
198
|
if (_ !== 2)
|
|
198
199
|
return !1;
|
|
199
|
-
|
|
200
|
-
const
|
|
201
|
-
return s.resetPeek(),
|
|
200
|
+
A(s);
|
|
201
|
+
const k = f(s.currentPeek());
|
|
202
|
+
return s.resetPeek(), k;
|
|
202
203
|
}
|
|
203
204
|
function c(s, o) {
|
|
204
205
|
const { currentType: _ } = o;
|
|
205
206
|
if (_ !== 2)
|
|
206
207
|
return !1;
|
|
207
|
-
|
|
208
|
-
const
|
|
208
|
+
A(s);
|
|
209
|
+
const k = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), M = h(k);
|
|
209
210
|
return s.resetPeek(), M;
|
|
210
211
|
}
|
|
211
212
|
function b(s, o) {
|
|
212
213
|
const { currentType: _ } = o;
|
|
213
214
|
if (_ !== 2)
|
|
214
215
|
return !1;
|
|
215
|
-
|
|
216
|
-
const
|
|
217
|
-
return s.resetPeek(),
|
|
216
|
+
A(s);
|
|
217
|
+
const k = s.currentPeek() === cn;
|
|
218
|
+
return s.resetPeek(), k;
|
|
218
219
|
}
|
|
219
|
-
function
|
|
220
|
+
function I(s, o) {
|
|
220
221
|
const { currentType: _ } = o;
|
|
221
222
|
if (_ !== 7)
|
|
222
223
|
return !1;
|
|
223
|
-
|
|
224
|
-
const
|
|
225
|
-
return s.resetPeek(),
|
|
224
|
+
A(s);
|
|
225
|
+
const k = s.currentPeek() === ".";
|
|
226
|
+
return s.resetPeek(), k;
|
|
226
227
|
}
|
|
227
228
|
function v(s, o) {
|
|
228
229
|
const { currentType: _ } = o;
|
|
229
230
|
if (_ !== 8)
|
|
230
231
|
return !1;
|
|
231
|
-
|
|
232
|
-
const
|
|
233
|
-
return s.resetPeek(),
|
|
232
|
+
A(s);
|
|
233
|
+
const k = f(s.currentPeek());
|
|
234
|
+
return s.resetPeek(), k;
|
|
234
235
|
}
|
|
235
236
|
function R(s, o) {
|
|
236
237
|
const { currentType: _ } = o;
|
|
237
238
|
if (!(_ === 7 || _ === 11))
|
|
238
239
|
return !1;
|
|
239
|
-
|
|
240
|
-
const
|
|
241
|
-
return s.resetPeek(),
|
|
240
|
+
A(s);
|
|
241
|
+
const k = s.currentPeek() === ":";
|
|
242
|
+
return s.resetPeek(), k;
|
|
242
243
|
}
|
|
243
|
-
function
|
|
244
|
+
function L(s, o) {
|
|
244
245
|
const { currentType: _ } = o;
|
|
245
246
|
if (_ !== 9)
|
|
246
247
|
return !1;
|
|
247
|
-
const
|
|
248
|
+
const k = () => {
|
|
248
249
|
const P = s.currentPeek();
|
|
249
|
-
return P === "{" ? f(s.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P ===
|
|
250
|
-
}, M =
|
|
250
|
+
return P === "{" ? f(s.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P === ye ? (s.peek(), k()) : x(s, !1);
|
|
251
|
+
}, M = k();
|
|
251
252
|
return s.resetPeek(), M;
|
|
252
253
|
}
|
|
253
|
-
function
|
|
254
|
-
|
|
254
|
+
function X(s) {
|
|
255
|
+
A(s);
|
|
255
256
|
const o = s.currentPeek() === "|";
|
|
256
257
|
return s.resetPeek(), o;
|
|
257
258
|
}
|
|
258
259
|
function x(s, o = !0) {
|
|
259
260
|
const _ = (M = !1, P = "") => {
|
|
260
261
|
const p = s.currentPeek();
|
|
261
|
-
return p === "{" || p === "@" || !p ? M : p === "|" ? !(P === Pe || P ===
|
|
262
|
-
},
|
|
263
|
-
return o && s.resetPeek(),
|
|
262
|
+
return p === "{" || p === "@" || !p ? M : p === "|" ? !(P === Pe || P === ye) : p === Pe ? (s.peek(), _(!0, Pe)) : p === ye ? (s.peek(), _(!0, ye)) : !0;
|
|
263
|
+
}, k = _();
|
|
264
|
+
return o && s.resetPeek(), k;
|
|
264
265
|
}
|
|
265
|
-
function
|
|
266
|
+
function m(s, o) {
|
|
266
267
|
const _ = s.currentChar();
|
|
267
268
|
return _ === xe ? xe : o(_) ? (s.next(), _) : null;
|
|
268
269
|
}
|
|
@@ -275,7 +276,7 @@ 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
281
|
function V(s) {
|
|
281
282
|
const o = s.charCodeAt(0);
|
|
@@ -287,27 +288,27 @@ 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
|
-
function
|
|
293
|
+
function W(s) {
|
|
293
294
|
const o = s.charCodeAt(0);
|
|
294
295
|
return o >= 48 && o <= 57;
|
|
295
296
|
}
|
|
296
|
-
function
|
|
297
|
-
return
|
|
297
|
+
function G(s) {
|
|
298
|
+
return m(s, W);
|
|
298
299
|
}
|
|
299
|
-
function
|
|
300
|
+
function B(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 Y(s) {
|
|
307
|
+
return m(s, B);
|
|
307
308
|
}
|
|
308
309
|
function ne(s) {
|
|
309
310
|
let o = "", _ = "";
|
|
310
|
-
for (; o =
|
|
311
|
+
for (; o = G(s); )
|
|
311
312
|
_ += o;
|
|
312
313
|
return _;
|
|
313
314
|
}
|
|
@@ -317,11 +318,11 @@ function Qr(e, t = {}) {
|
|
|
317
318
|
const _ = s.currentChar();
|
|
318
319
|
if (_ === "{" || _ === "}" || _ === "@" || _ === "|" || !_)
|
|
319
320
|
break;
|
|
320
|
-
if (_ === Pe || _ ===
|
|
321
|
+
if (_ === Pe || _ === ye)
|
|
321
322
|
if (x(s))
|
|
322
323
|
o += _, s.next();
|
|
323
324
|
else {
|
|
324
|
-
if (
|
|
325
|
+
if (X(s))
|
|
325
326
|
break;
|
|
326
327
|
o += _, s.next();
|
|
327
328
|
}
|
|
@@ -343,15 +344,15 @@ function Qr(e, t = {}) {
|
|
|
343
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
|
-
return s !== cn && s !==
|
|
347
|
+
return s !== cn && s !== ye;
|
|
347
348
|
}
|
|
348
349
|
function fe(s) {
|
|
349
350
|
D(s), w(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 k = s.currentChar();
|
|
355
|
+
return k === ye || k === xe ? (T(re.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), k === ye && (s.next(), w(s, "'")), _) : (w(s, "'"), _);
|
|
355
356
|
}
|
|
356
357
|
function q(s) {
|
|
357
358
|
const o = s.currentChar();
|
|
@@ -369,24 +370,24 @@ function Qr(e, t = {}) {
|
|
|
369
370
|
}
|
|
370
371
|
function De(s, o, _) {
|
|
371
372
|
w(s, o);
|
|
372
|
-
let
|
|
373
|
+
let k = "";
|
|
373
374
|
for (let M = 0; M < _; M++) {
|
|
374
|
-
const P =
|
|
375
|
+
const P = Y(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}${k}${s.currentChar()}`);
|
|
377
378
|
break;
|
|
378
379
|
}
|
|
379
|
-
|
|
380
|
+
k += P;
|
|
380
381
|
}
|
|
381
|
-
return `\\${o}${
|
|
382
|
+
return `\\${o}${k}`;
|
|
382
383
|
}
|
|
383
384
|
function K(s) {
|
|
384
|
-
return s !== "{" && s !== "}" && s !== Pe && s !==
|
|
385
|
+
return s !== "{" && s !== "}" && s !== Pe && s !== ye;
|
|
385
386
|
}
|
|
386
387
|
function ve(s) {
|
|
387
388
|
D(s);
|
|
388
389
|
let o = "", _ = "";
|
|
389
|
-
for (; o =
|
|
390
|
+
for (; o = m(s, K); )
|
|
390
391
|
_ += o;
|
|
391
392
|
return _;
|
|
392
393
|
}
|
|
@@ -398,8 +399,8 @@ function Qr(e, t = {}) {
|
|
|
398
399
|
}
|
|
399
400
|
function Ke(s) {
|
|
400
401
|
const o = (_) => {
|
|
401
|
-
const
|
|
402
|
-
return
|
|
402
|
+
const k = s.currentChar();
|
|
403
|
+
return k === "{" || k === "@" || k === "|" || k === "(" || k === ")" || !k || k === Pe ? _ : (_ += k, s.next(), o(_));
|
|
403
404
|
};
|
|
404
405
|
return o("");
|
|
405
406
|
}
|
|
@@ -433,10 +434,10 @@ function Qr(e, t = {}) {
|
|
|
433
434
|
return o.braceNest > 0 && T(re.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = Ce(s, o) || F(o), o.braceNest = 0, _;
|
|
434
435
|
default: {
|
|
435
436
|
let M = !0, P = !0, p = !0;
|
|
436
|
-
if (
|
|
437
|
+
if (X(s))
|
|
437
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, Be(s, o);
|
|
440
441
|
if (M = S(s, o))
|
|
441
442
|
return _ = N(o, 4, _e(s)), D(s), _;
|
|
442
443
|
if (P = c(s, o))
|
|
@@ -452,16 +453,16 @@ function Qr(e, t = {}) {
|
|
|
452
453
|
}
|
|
453
454
|
function Ce(s, o) {
|
|
454
455
|
const { currentType: _ } = o;
|
|
455
|
-
let
|
|
456
|
+
let k = null;
|
|
456
457
|
const M = s.currentChar();
|
|
457
|
-
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M ===
|
|
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(), k = N(
|
|
460
461
|
o,
|
|
461
462
|
7,
|
|
462
463
|
"@"
|
|
463
464
|
/* TokenChars.LinkedAlias */
|
|
464
|
-
), o.inLinked = !0,
|
|
465
|
+
), o.inLinked = !0, k;
|
|
465
466
|
case ".":
|
|
466
467
|
return D(s), s.next(), N(
|
|
467
468
|
o,
|
|
@@ -477,10 +478,10 @@ function Qr(e, t = {}) {
|
|
|
477
478
|
/* TokenChars.LinkedDelimiter */
|
|
478
479
|
);
|
|
479
480
|
default:
|
|
480
|
-
return
|
|
481
|
+
return X(s) ? (k = N(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, k) : I(s, o) || R(s, o) ? (D(s), Ce(s, o)) : v(s, o) ? (D(s), N(o, 11, Je(s))) : L(s, o) ? (D(s), M === "{" ? Fe(s, o) || k : N(o, 10, Ke(s))) : (_ === 7 && T(re.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, Be(s, o));
|
|
481
482
|
}
|
|
482
483
|
}
|
|
483
|
-
function
|
|
484
|
+
function Be(s, o) {
|
|
484
485
|
let _ = {
|
|
485
486
|
type: 13
|
|
486
487
|
/* TokenTypes.EOF */
|
|
@@ -502,7 +503,7 @@ function Qr(e, t = {}) {
|
|
|
502
503
|
case "@":
|
|
503
504
|
return Ce(s, o) || F(o);
|
|
504
505
|
default: {
|
|
505
|
-
if (
|
|
506
|
+
if (X(s))
|
|
506
507
|
return _ = N(o, 1, Ve(s)), o.braceNest = 0, o.inLinked = !1, _;
|
|
507
508
|
if (x(s))
|
|
508
509
|
return N(o, 0, Q(s));
|
|
@@ -512,12 +513,12 @@ function Qr(e, t = {}) {
|
|
|
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: k } = i;
|
|
517
|
+
return i.lastType = s, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc = k, i.offset = l(), i.startLoc = a(), r.currentChar() === xe ? N(
|
|
517
518
|
i,
|
|
518
519
|
13
|
|
519
520
|
/* TokenTypes.EOF */
|
|
520
|
-
) :
|
|
521
|
+
) : Be(r, i);
|
|
521
522
|
}
|
|
522
523
|
return {
|
|
523
524
|
nextToken: O,
|
|
@@ -542,9 +543,9 @@ function ts(e, t, n) {
|
|
|
542
543
|
function ns(e = {}) {
|
|
543
544
|
const t = e.location !== !1, { onError: n } = e;
|
|
544
545
|
function r(f, h, S, c, ...b) {
|
|
545
|
-
const
|
|
546
|
-
if (
|
|
547
|
-
const v = t ? Ft(S,
|
|
546
|
+
const I = f.currentPosition();
|
|
547
|
+
if (I.offset += c, I.column += c, n) {
|
|
548
|
+
const v = t ? Ft(S, I) : null, R = Tt(h, v, {
|
|
548
549
|
domain: qr,
|
|
549
550
|
args: b
|
|
550
551
|
});
|
|
@@ -558,29 +559,29 @@ 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
|
}
|
|
565
566
|
function u(f, h) {
|
|
566
|
-
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S,
|
|
567
|
-
return
|
|
567
|
+
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(5, c, b);
|
|
568
|
+
return I.index = parseInt(h, 10), f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
568
569
|
}
|
|
569
570
|
function i(f, h) {
|
|
570
|
-
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S,
|
|
571
|
-
return
|
|
571
|
+
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(4, c, b);
|
|
572
|
+
return I.key = h, f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
572
573
|
}
|
|
573
574
|
function g(f, h) {
|
|
574
|
-
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S,
|
|
575
|
-
return
|
|
575
|
+
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(9, c, b);
|
|
576
|
+
return I.value = h.replace(es, ts), f.nextToken(), a(I, f.currentOffset(), f.currentPosition()), I;
|
|
576
577
|
}
|
|
577
|
-
function
|
|
578
|
-
const h = f.nextToken(), S = f.context(), { lastOffset: c, lastStartLoc: b } = S,
|
|
579
|
-
return h.type !== 11 ? (r(f, re.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0),
|
|
578
|
+
function y(f) {
|
|
579
|
+
const h = f.nextToken(), S = f.context(), { lastOffset: c, lastStartLoc: b } = S, I = l(8, c, b);
|
|
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
|
-
node:
|
|
582
|
-
}) : (h.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0,
|
|
583
|
-
node:
|
|
582
|
+
node: I
|
|
583
|
+
}) : (h.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, ke(h)), I.value = h.value || "", a(I, f.currentOffset(), f.currentPosition()), {
|
|
584
|
+
node: I
|
|
584
585
|
});
|
|
585
586
|
}
|
|
586
587
|
function T(f, h) {
|
|
@@ -591,26 +592,26 @@ function ns(e = {}) {
|
|
|
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
|
-
const b =
|
|
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, ke(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, ke(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, ke(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, ke(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, ke(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);
|
|
612
|
-
const b = f.context(),
|
|
613
|
-
return
|
|
613
|
+
const b = f.context(), I = l(7, b.offset, b.startLoc);
|
|
614
|
+
return I.value = "", a(I, b.offset, b.startLoc), S.key = I, a(S, b.offset, b.startLoc), {
|
|
614
615
|
nextConsumeToken: c,
|
|
615
616
|
node: S
|
|
616
617
|
};
|
|
@@ -623,25 +624,25 @@ function ns(e = {}) {
|
|
|
623
624
|
function F(f) {
|
|
624
625
|
const h = f.context(), S = h.currentType === 1 ? f.currentOffset() : h.offset, c = h.currentType === 1 ? h.endLoc : h.startLoc, b = l(2, S, c);
|
|
625
626
|
b.items = [];
|
|
626
|
-
let
|
|
627
|
+
let I = null;
|
|
627
628
|
do {
|
|
628
|
-
const
|
|
629
|
-
switch (
|
|
629
|
+
const L = I || f.nextToken();
|
|
630
|
+
switch (I = null, L.type) {
|
|
630
631
|
case 0:
|
|
631
|
-
|
|
632
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(L)), b.items.push(d(f, L.value || ""));
|
|
632
633
|
break;
|
|
633
634
|
case 5:
|
|
634
|
-
|
|
635
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(L)), b.items.push(u(f, L.value || ""));
|
|
635
636
|
break;
|
|
636
637
|
case 4:
|
|
637
|
-
|
|
638
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(L)), b.items.push(i(f, L.value || ""));
|
|
638
639
|
break;
|
|
639
640
|
case 6:
|
|
640
|
-
|
|
641
|
+
L.value == null && r(f, re.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, ke(L)), b.items.push(g(f, L.value || ""));
|
|
641
642
|
break;
|
|
642
643
|
case 7: {
|
|
643
|
-
const
|
|
644
|
-
b.items.push(
|
|
644
|
+
const X = N(f);
|
|
645
|
+
b.items.push(X.node), I = X.nextConsumeToken || null;
|
|
645
646
|
break;
|
|
646
647
|
}
|
|
647
648
|
}
|
|
@@ -651,26 +652,26 @@ function ns(e = {}) {
|
|
|
651
652
|
}
|
|
652
653
|
function w(f, h, S, c) {
|
|
653
654
|
const b = f.context();
|
|
654
|
-
let
|
|
655
|
+
let I = c.items.length === 0;
|
|
655
656
|
const v = l(1, h, S);
|
|
656
657
|
v.cases = [], v.cases.push(c);
|
|
657
658
|
do {
|
|
658
659
|
const R = F(f);
|
|
659
|
-
|
|
660
|
+
I || (I = R.items.length === 0), v.cases.push(R);
|
|
660
661
|
} while (b.currentType !== 13);
|
|
661
|
-
return
|
|
662
|
+
return I && r(f, re.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), a(v, f.currentOffset(), f.currentPosition()), v;
|
|
662
663
|
}
|
|
663
|
-
function
|
|
664
|
+
function A(f) {
|
|
664
665
|
const h = f.context(), { offset: S, startLoc: c } = h, b = F(f);
|
|
665
666
|
return h.currentType === 13 ? b : w(f, S, c, b);
|
|
666
667
|
}
|
|
667
668
|
function D(f) {
|
|
668
|
-
const h = Qr(f,
|
|
669
|
-
return t && c.loc && (c.loc.source = f), c.body =
|
|
669
|
+
const h = Qr(f, Ie({}, e)), S = h.context(), c = l(0, S.offset, S.startLoc);
|
|
670
|
+
return t && c.loc && (c.loc.source = f), c.body = A(h), e.onCacheKey && (c.cacheKey = e.onCacheKey(f)), S.currentType !== 13 && r(h, re.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, f[S.offset] || ""), a(c, h.currentOffset(), h.currentPosition()), c;
|
|
670
671
|
}
|
|
671
672
|
return { parse: D };
|
|
672
673
|
}
|
|
673
|
-
function
|
|
674
|
+
function ke(e) {
|
|
674
675
|
if (e.type === 13)
|
|
675
676
|
return "EOF";
|
|
676
677
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
@@ -739,9 +740,9 @@ function ss(e, t = {}) {
|
|
|
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);
|
|
@@ -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 = () =>
|
|
826
|
-
function i(
|
|
827
|
-
|
|
825
|
+
a && e.loc && (d.source = e.loc.source);
|
|
826
|
+
const u = () => d;
|
|
827
|
+
function i(A, D) {
|
|
828
|
+
d.code += A;
|
|
828
829
|
}
|
|
829
|
-
function g(
|
|
830
|
+
function g(A, D = !0) {
|
|
830
831
|
const f = D ? r : "";
|
|
831
|
-
i(l ? f + " ".repeat(
|
|
832
|
+
i(l ? f + " ".repeat(A) : f);
|
|
832
833
|
}
|
|
833
|
-
function
|
|
834
|
-
const D = ++
|
|
835
|
-
|
|
834
|
+
function y(A = !0) {
|
|
835
|
+
const D = ++d.indentLevel;
|
|
836
|
+
A && g(D);
|
|
836
837
|
}
|
|
837
|
-
function T(
|
|
838
|
-
const D = --
|
|
839
|
-
|
|
838
|
+
function T(A = !0) {
|
|
839
|
+
const D = --d.indentLevel;
|
|
840
|
+
A && g(D);
|
|
840
841
|
}
|
|
841
842
|
function N() {
|
|
842
|
-
g(
|
|
843
|
+
g(d.indentLevel);
|
|
843
844
|
}
|
|
844
845
|
return {
|
|
845
846
|
context: u,
|
|
846
847
|
push: i,
|
|
847
|
-
indent:
|
|
848
|
+
indent: y,
|
|
848
849
|
deindent: T,
|
|
849
850
|
newline: N,
|
|
850
|
-
helper: (
|
|
851
|
-
needIndent: () =>
|
|
851
|
+
helper: (A) => `_${A}`,
|
|
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,15 +951,15 @@ const ms = (e, t = {}) => {
|
|
|
950
951
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
951
952
|
};
|
|
952
953
|
};
|
|
953
|
-
function
|
|
954
|
-
const n =
|
|
955
|
-
return r ? (a && os(u), l && Qe(u), { ast: u, code: "" }) : (ss(u, n),
|
|
954
|
+
function ms(e, t = {}) {
|
|
955
|
+
const n = Ie({}, t), r = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize, u = ns(n).parse(e);
|
|
956
|
+
return r ? (a && os(u), l && Qe(u), { ast: u, code: "" }) : (ss(u, n), 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" && (Xe().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Xe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
960
961
|
}
|
|
961
|
-
function
|
|
962
|
+
function At(e) {
|
|
962
963
|
return (n) => vs(n, e);
|
|
963
964
|
}
|
|
964
965
|
function vs(e, t) {
|
|
@@ -970,23 +971,23 @@ 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
981
|
const ps = ["b", "body"];
|
|
981
982
|
function hs(e) {
|
|
982
|
-
return
|
|
983
|
+
return We(e, ps);
|
|
983
984
|
}
|
|
984
985
|
const bs = ["c", "cases"];
|
|
985
986
|
function gs(e) {
|
|
986
|
-
return
|
|
987
|
+
return We(e, bs, []);
|
|
987
988
|
}
|
|
988
|
-
function
|
|
989
|
-
const n =
|
|
989
|
+
function mn(e, t) {
|
|
990
|
+
const n = ys(t);
|
|
990
991
|
if (n != null)
|
|
991
992
|
return e.type === "text" ? n : e.normalize([n]);
|
|
992
993
|
{
|
|
@@ -994,13 +995,13 @@ function dn(e, t) {
|
|
|
994
995
|
return e.normalize(r);
|
|
995
996
|
}
|
|
996
997
|
}
|
|
997
|
-
const
|
|
998
|
-
function
|
|
999
|
-
return
|
|
998
|
+
const Is = ["s", "static"];
|
|
999
|
+
function ys(e) {
|
|
1000
|
+
return We(e, Is);
|
|
1000
1001
|
}
|
|
1001
|
-
const
|
|
1002
|
+
const Es = ["i", "items"];
|
|
1002
1003
|
function Ns(e) {
|
|
1003
|
-
return
|
|
1004
|
+
return We(e, Es, []);
|
|
1004
1005
|
}
|
|
1005
1006
|
function Pt(e, t) {
|
|
1006
1007
|
const n = Kt(t);
|
|
@@ -1011,22 +1012,22 @@ function Pt(e, t) {
|
|
|
1011
1012
|
return _t(t, n);
|
|
1012
1013
|
case 4: {
|
|
1013
1014
|
const r = t;
|
|
1014
|
-
if (
|
|
1015
|
+
if (Le(r, "k") && r.k)
|
|
1015
1016
|
return e.interpolate(e.named(r.k));
|
|
1016
|
-
if (
|
|
1017
|
+
if (Le(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 (Le(r, "i") && ge(r.i))
|
|
1023
1024
|
return e.interpolate(e.list(r.i));
|
|
1024
|
-
if (
|
|
1025
|
+
if (Le(r, "index") && ge(r.index))
|
|
1025
1026
|
return e.interpolate(e.list(r.index));
|
|
1026
1027
|
throw it(n);
|
|
1027
1028
|
}
|
|
1028
1029
|
case 6: {
|
|
1029
|
-
const r = t, l = Ss(r), a =
|
|
1030
|
+
const r = t, l = Ss(r), a = As(r);
|
|
1030
1031
|
return e.linked(Pt(e, a), l ? Pt(e, l) : void 0, e.type);
|
|
1031
1032
|
}
|
|
1032
1033
|
case 7:
|
|
@@ -1039,22 +1040,22 @@ function Pt(e, t) {
|
|
|
1039
1040
|
}
|
|
1040
1041
|
const Cs = ["t", "type"];
|
|
1041
1042
|
function Kt(e) {
|
|
1042
|
-
return
|
|
1043
|
+
return We(e, Cs);
|
|
1043
1044
|
}
|
|
1044
1045
|
const Ts = ["v", "value"];
|
|
1045
1046
|
function _t(e, t) {
|
|
1046
|
-
const n =
|
|
1047
|
+
const n = We(e, Ts);
|
|
1047
1048
|
if (n)
|
|
1048
1049
|
return n;
|
|
1049
1050
|
throw it(t);
|
|
1050
1051
|
}
|
|
1051
1052
|
const Os = ["m", "modifier"];
|
|
1052
1053
|
function Ss(e) {
|
|
1053
|
-
return
|
|
1054
|
+
return We(e, Os);
|
|
1054
1055
|
}
|
|
1055
|
-
const
|
|
1056
|
-
function
|
|
1057
|
-
const t =
|
|
1056
|
+
const Ls = ["k", "key"];
|
|
1057
|
+
function As(e) {
|
|
1058
|
+
const t = We(e, Ls);
|
|
1058
1059
|
if (t)
|
|
1059
1060
|
return t;
|
|
1060
1061
|
throw it(
|
|
@@ -1062,10 +1063,10 @@ function Ls(e) {
|
|
|
1062
1063
|
/* NodeTypes.Linked */
|
|
1063
1064
|
);
|
|
1064
1065
|
}
|
|
1065
|
-
function
|
|
1066
|
+
function We(e, t, n) {
|
|
1066
1067
|
for (let r = 0; r < t.length; r++) {
|
|
1067
1068
|
const l = t[r];
|
|
1068
|
-
if (
|
|
1069
|
+
if (Le(e, l) && e[l] != null)
|
|
1069
1070
|
return e[l];
|
|
1070
1071
|
}
|
|
1071
1072
|
return n;
|
|
@@ -1073,38 +1074,38 @@ function Ge(e, t, n) {
|
|
|
1073
1074
|
function it(e) {
|
|
1074
1075
|
return new Error(`unhandled node type: ${e}`);
|
|
1075
1076
|
}
|
|
1076
|
-
const
|
|
1077
|
+
const ks = (e) => e;
|
|
1077
1078
|
let vt = oe();
|
|
1078
1079
|
function ot(e) {
|
|
1079
|
-
return te(e) && Kt(e) === 0 && (
|
|
1080
|
+
return te(e) && Kt(e) === 0 && (Le(e, "b") || Le(e, "body"));
|
|
1080
1081
|
}
|
|
1081
1082
|
function Rs(e, t = {}) {
|
|
1082
1083
|
let n = !1;
|
|
1083
|
-
const r = t.onError ||
|
|
1084
|
+
const r = t.onError || Yr;
|
|
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
|
pe(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1092
|
-
const r = (t.onCacheKey ||
|
|
1093
|
+
const r = (t.onCacheKey || ks)(e), l = vt[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
|
-
}), u =
|
|
1100
|
-
return
|
|
1100
|
+
}), u = At(a);
|
|
1101
|
+
return d ? u : vt[r] = u;
|
|
1101
1102
|
} else {
|
|
1102
1103
|
const n = e.cacheKey;
|
|
1103
1104
|
if (n) {
|
|
1104
1105
|
const r = vt[n];
|
|
1105
|
-
return r || (vt[n] =
|
|
1106
|
+
return r || (vt[n] = At(e));
|
|
1106
1107
|
} else
|
|
1107
|
-
return
|
|
1108
|
+
return At(e);
|
|
1108
1109
|
}
|
|
1109
1110
|
}
|
|
1110
1111
|
let ct = null;
|
|
@@ -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: Br,
|
|
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 kt;
|
|
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 && kt != null)
|
|
1148
|
+
return kt;
|
|
1148
1149
|
if (e.constructor.name === "Function") {
|
|
1149
1150
|
const t = e();
|
|
1150
1151
|
if (xr(t))
|
|
1151
1152
|
throw Ue(je.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1152
|
-
return
|
|
1153
|
+
return kt = t;
|
|
1153
1154
|
} else
|
|
1154
1155
|
throw Ue(je.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1155
1156
|
} else
|
|
@@ -1167,11 +1168,11 @@ function Hn(e, t, n) {
|
|
|
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
|
}
|
|
@@ -1362,15 +1363,15 @@ Ze[
|
|
|
1362
1363
|
/* Actions.APPEND */
|
|
1363
1364
|
]
|
|
1364
1365
|
};
|
|
1365
|
-
const
|
|
1366
|
-
function
|
|
1367
|
-
return
|
|
1366
|
+
const Gs = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1367
|
+
function Ws(e) {
|
|
1368
|
+
return Gs.test(e);
|
|
1368
1369
|
}
|
|
1369
1370
|
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 Bs(e) {
|
|
1374
1375
|
if (e == null)
|
|
1375
1376
|
return "o";
|
|
1376
1377
|
switch (e.charCodeAt(0)) {
|
|
@@ -1395,24 +1396,24 @@ function Ys(e) {
|
|
|
1395
1396
|
}
|
|
1396
1397
|
return "i";
|
|
1397
1398
|
}
|
|
1398
|
-
function
|
|
1399
|
+
function Ys(e) {
|
|
1399
1400
|
const t = e.trim();
|
|
1400
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1401
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Ws(t) ? Zs(t) : "*" + t;
|
|
1401
1402
|
}
|
|
1402
|
-
function
|
|
1403
|
+
function Xs(e) {
|
|
1403
1404
|
const t = [];
|
|
1404
|
-
let n = -1, r = 0, l = 0, a,
|
|
1405
|
+
let n = -1, r = 0, l = 0, a, d, u, i, g, y, T;
|
|
1405
1406
|
const N = [];
|
|
1406
1407
|
N[
|
|
1407
1408
|
0
|
|
1408
1409
|
/* Actions.APPEND */
|
|
1409
1410
|
] = () => {
|
|
1410
|
-
|
|
1411
|
+
d === void 0 ? d = u : d += u;
|
|
1411
1412
|
}, N[
|
|
1412
1413
|
1
|
|
1413
1414
|
/* Actions.PUSH */
|
|
1414
1415
|
] = () => {
|
|
1415
|
-
|
|
1416
|
+
d !== void 0 && (t.push(d), d = void 0);
|
|
1416
1417
|
}, N[
|
|
1417
1418
|
2
|
|
1418
1419
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
@@ -1431,7 +1432,7 @@ function Bs(e) {
|
|
|
1431
1432
|
/* Actions.APPEND */
|
|
1432
1433
|
]();
|
|
1433
1434
|
else {
|
|
1434
|
-
if (l = 0,
|
|
1435
|
+
if (l = 0, d === void 0 || (d = Ys(d), d === !1))
|
|
1435
1436
|
return !1;
|
|
1436
1437
|
N[
|
|
1437
1438
|
1
|
|
@@ -1449,7 +1450,7 @@ function Bs(e) {
|
|
|
1449
1450
|
}
|
|
1450
1451
|
for (; r !== null; )
|
|
1451
1452
|
if (n++, a = e[n], !(a === "\\" && F())) {
|
|
1452
|
-
if (i =
|
|
1453
|
+
if (i = Bs(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;
|
|
@@ -1463,15 +1464,15 @@ function $s(e, t) {
|
|
|
1463
1464
|
if (!te(e))
|
|
1464
1465
|
return null;
|
|
1465
1466
|
let n = vn.get(t);
|
|
1466
|
-
if (n || (n =
|
|
1467
|
+
if (n || (n = Xs(t), n && vn.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
|
}
|
|
@@ -1505,37 +1506,37 @@ 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 : Wr, 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 = pe(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, F = pe(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, w = !!e.fallbackFormat, A = !!e.unresolving, D = me(e.postTranslation) ? e.postTranslation : null, f = ee(e.processor) ? e.processor : null, h = pe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, c = me(e.messageCompiler) ? e.messageCompiler : $n, b = me(e.messageResolver) ? e.messageResolver : Jn || Hs, I = me(e.localeFallbacker) ? e.localeFallbacker : Kn || Us, v = te(e.fallbackContext) ? e.fallbackContext : void 0, R = e, L = te(R.__datetimeFormatters) ? R.__datetimeFormatters : /* @__PURE__ */ new Map(), X = 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
|
-
pluralRules:
|
|
1518
|
+
pluralRules: y,
|
|
1518
1519
|
missing: T,
|
|
1519
1520
|
missingWarn: N,
|
|
1520
1521
|
fallbackWarn: F,
|
|
1521
1522
|
fallbackFormat: w,
|
|
1522
|
-
unresolving:
|
|
1523
|
+
unresolving: A,
|
|
1523
1524
|
postTranslation: D,
|
|
1524
1525
|
processor: f,
|
|
1525
1526
|
warnHtmlMessage: h,
|
|
1526
1527
|
escapeParameter: S,
|
|
1527
1528
|
messageCompiler: c,
|
|
1528
1529
|
messageResolver: b,
|
|
1529
|
-
localeFallbacker:
|
|
1530
|
+
localeFallbacker: I,
|
|
1530
1531
|
fallbackContext: v,
|
|
1531
1532
|
onWarn: t,
|
|
1532
1533
|
__meta: x
|
|
1533
1534
|
};
|
|
1534
|
-
return
|
|
1535
|
+
return m.datetimeFormats = u, m.numberFormats = i, m.__datetimeFormatters = L, m.__numberFormatters = X, __INTLIFY_PROD_DEVTOOLS__ && Ds(m, n, x), m;
|
|
1535
1536
|
}
|
|
1536
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;
|
|
@@ -1558,10 +1559,10 @@ function oo(e, t) {
|
|
|
1558
1559
|
return !0;
|
|
1559
1560
|
return !1;
|
|
1560
1561
|
}
|
|
1561
|
-
function
|
|
1562
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker:
|
|
1563
|
-
pe(
|
|
1564
|
-
const F = !!
|
|
1562
|
+
function In(e, ...t) {
|
|
1563
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __datetimeFormatters: u } = e, [i, g, y, T] = jt(...t), N = pe(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1564
|
+
pe(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1565
|
+
const F = !!y.part, w = zt(e, y), A = d(
|
|
1565
1566
|
e,
|
|
1566
1567
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1567
1568
|
l,
|
|
@@ -1571,14 +1572,14 @@ function yn(e, ...t) {
|
|
|
1571
1572
|
return new Intl.DateTimeFormat(w, T).format(g);
|
|
1572
1573
|
let D = {}, f, h = null;
|
|
1573
1574
|
const S = "datetime format";
|
|
1574
|
-
for (let
|
|
1575
|
+
for (let I = 0; I < A.length && (f = A[I], D = n[f] || {}, h = D[i], !ee(h)); I++)
|
|
1575
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
|
-
return b || (b = new Intl.DateTimeFormat(f,
|
|
1582
|
+
return b || (b = new Intl.DateTimeFormat(f, Ie({}, h, T)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1582
1583
|
}
|
|
1583
1584
|
const qn = [
|
|
1584
1585
|
"localeMatcher",
|
|
@@ -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,20 +1626,20 @@ 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
|
-
function
|
|
1632
|
+
function yn(e, t, n) {
|
|
1632
1633
|
const r = e;
|
|
1633
1634
|
for (const l in n) {
|
|
1634
1635
|
const a = `${t}__${l}`;
|
|
1635
1636
|
r.__datetimeFormatters.has(a) && r.__datetimeFormatters.delete(a);
|
|
1636
1637
|
}
|
|
1637
1638
|
}
|
|
1638
|
-
function
|
|
1639
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker:
|
|
1640
|
-
pe(
|
|
1641
|
-
const F = !!
|
|
1639
|
+
function En(e, ...t) {
|
|
1640
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __numberFormatters: u } = e, [i, g, y, T] = Ut(...t), N = pe(y.missingWarn) ? y.missingWarn : e.missingWarn;
|
|
1641
|
+
pe(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn;
|
|
1642
|
+
const F = !!y.part, w = zt(e, y), A = d(
|
|
1642
1643
|
e,
|
|
1643
1644
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1644
1645
|
l,
|
|
@@ -1648,14 +1649,14 @@ function In(e, ...t) {
|
|
|
1648
1649
|
return new Intl.NumberFormat(w, T).format(g);
|
|
1649
1650
|
let D = {}, f, h = null;
|
|
1650
1651
|
const S = "number format";
|
|
1651
|
-
for (let
|
|
1652
|
+
for (let I = 0; I < A.length && (f = A[I], D = n[f] || {}, h = D[i], !ee(h)); I++)
|
|
1652
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
|
-
return b || (b = new Intl.NumberFormat(f,
|
|
1659
|
+
return b || (b = new Intl.NumberFormat(f, Ie({}, h, T)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1659
1660
|
}
|
|
1660
1661
|
const er = [
|
|
1661
1662
|
"localeMatcher",
|
|
@@ -1681,13 +1682,13 @@ 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
1693
|
function Nn(e, t, n) {
|
|
1693
1694
|
const r = e;
|
|
@@ -1696,7 +1697,7 @@ function Nn(e, t, n) {
|
|
|
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 ? "" : $t(e), uo =
|
|
1700
|
+
const ao = (e) => e, lo = (e) => "", io = "text", co = (e) => e.length === 0 ? "" : $t(e), uo = Gr;
|
|
1700
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
|
}
|
|
@@ -1708,64 +1709,64 @@ 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
|
-
function
|
|
1715
|
-
const S =
|
|
1715
|
+
function y(f, h) {
|
|
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, N = ee(e.processor) &&
|
|
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, w = ee(e.processor) && Z(e.processor.type) ? e.processor.type : io, D = {
|
|
1719
1720
|
list: u,
|
|
1720
1721
|
named: g,
|
|
1721
1722
|
plural: a,
|
|
1722
1723
|
linked: (f, ...h) => {
|
|
1723
1724
|
const [S, c] = h;
|
|
1724
|
-
let b = "text",
|
|
1725
|
-
h.length === 1 ? te(S) ? (
|
|
1726
|
-
const v =
|
|
1725
|
+
let b = "text", I = "";
|
|
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));
|
|
1727
|
+
const v = y(f, !0)(D), R = (
|
|
1727
1728
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1728
|
-
b === "vnode" && be(v) &&
|
|
1729
|
+
b === "vnode" && be(v) && I ? v[0] : v
|
|
1729
1730
|
);
|
|
1730
|
-
return
|
|
1731
|
+
return I ? T(I)(R, b) : R;
|
|
1731
1732
|
},
|
|
1732
|
-
message:
|
|
1733
|
+
message: y,
|
|
1733
1734
|
type: w,
|
|
1734
1735
|
interpolate: F,
|
|
1735
1736
|
normalize: N,
|
|
1736
|
-
values:
|
|
1737
|
+
values: Ie(oe(), d, i)
|
|
1737
1738
|
};
|
|
1738
1739
|
return D;
|
|
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
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale: d, messages: u } = e, [i, g] = Vt(...t), y = pe(g.missingWarn) ? g.missingWarn : e.missingWarn, T = pe(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, N = pe(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, F = !!g.resolvedMessage, w = Z(g.default) || pe(g.default) ? pe(g.default) ? a ? i : () => i : g.default : n ? a ? i : () => i : null, A = n || w != null && (Z(w) || me(w)), D = zt(e, g);
|
|
1743
1744
|
N && vo(g);
|
|
1744
1745
|
let [f, h, S] = F ? [
|
|
1745
1746
|
i,
|
|
1746
1747
|
D,
|
|
1747
1748
|
u[D] || oe()
|
|
1748
|
-
] : tr(e, i, D,
|
|
1749
|
-
if (!F && !(Z(c) || ot(c) || Te(c)) &&
|
|
1749
|
+
] : tr(e, i, D, d, T, y), c = f, b = i;
|
|
1750
|
+
if (!F && !(Z(c) || ot(c) || Te(c)) && A && (c = w, b = c), !F && (!(Z(c) || ot(c) || Te(c)) || !Z(h)))
|
|
1750
1751
|
return l ? Ot : i;
|
|
1751
|
-
let
|
|
1752
|
+
let I = !1;
|
|
1752
1753
|
const v = () => {
|
|
1753
|
-
|
|
1754
|
+
I = !0;
|
|
1754
1755
|
}, R = Te(c) ? c : nr(e, i, h, c, b, v);
|
|
1755
|
-
if (
|
|
1756
|
+
if (I)
|
|
1756
1757
|
return c;
|
|
1757
|
-
const
|
|
1758
|
+
const L = bo(e, h, S, g), X = _o(L), x = po(e, R, X), m = r ? r(x, i) : x;
|
|
1758
1759
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1759
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
|
-
C.meta =
|
|
1767
|
+
C.meta = Ie({}, e.__meta, /* @__PURE__ */ to() || {}), Fs(C);
|
|
1767
1768
|
}
|
|
1768
|
-
return
|
|
1769
|
+
return m;
|
|
1769
1770
|
}
|
|
1770
1771
|
function vo(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) => {
|
|
@@ -1773,11 +1774,11 @@ function vo(e) {
|
|
|
1773
1774
|
});
|
|
1774
1775
|
}
|
|
1775
1776
|
function tr(e, t, n, r, l, a) {
|
|
1776
|
-
const { messages:
|
|
1777
|
+
const { messages: d, onWarn: u, messageResolver: i, localeFallbacker: g } = e, y = g(e, r, n);
|
|
1777
1778
|
let T = oe(), N, F = null;
|
|
1778
1779
|
const w = "translate";
|
|
1779
|
-
for (let
|
|
1780
|
-
if (!oo(N,
|
|
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 D = Qt(
|
|
1782
1783
|
e,
|
|
1783
1784
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -1791,16 +1792,16 @@ function tr(e, t, n, r, l, a) {
|
|
|
1791
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
1807
|
function po(e, t, n) {
|
|
@@ -1811,29 +1812,29 @@ function Vt(...e) {
|
|
|
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) && !Ct(n) ? l.named = n : be(n) && (l.list = n), ge(r) ? l.plural = r : Z(r) ? l.default = r : ee(r) &&
|
|
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, w) => {
|
|
1833
|
-
let
|
|
1834
|
-
if (
|
|
1834
|
+
let A = d(n, F);
|
|
1835
|
+
if (A == null && (y || w)) {
|
|
1835
1836
|
const [, , D] = tr(
|
|
1836
|
-
|
|
1837
|
+
y || e,
|
|
1837
1838
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1838
1839
|
F,
|
|
1839
1840
|
t,
|
|
@@ -1841,24 +1842,24 @@ function bo(e, t, n, r) {
|
|
|
1841
1842
|
i,
|
|
1842
1843
|
g
|
|
1843
1844
|
);
|
|
1844
|
-
|
|
1845
|
+
A = d(D, F);
|
|
1845
1846
|
}
|
|
1846
|
-
if (Z(
|
|
1847
|
+
if (Z(A) || ot(A)) {
|
|
1847
1848
|
let D = !1;
|
|
1848
|
-
const h = nr(e, F, t,
|
|
1849
|
+
const h = nr(e, F, t, A, F, () => {
|
|
1849
1850
|
D = !0;
|
|
1850
1851
|
});
|
|
1851
1852
|
return D ? Tn : h;
|
|
1852
|
-
} else return Te(
|
|
1853
|
+
} else return Te(A) ? A : Tn;
|
|
1853
1854
|
}
|
|
1854
1855
|
};
|
|
1855
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_63ffe169-ee2f-4882-988c-52ecb5b097c6", DOTNET_NOLOGO: "1", USER: "runner", npm_config_always_auth: "", npm_config_user_agent: "pnpm/10.8.0 npm/? node/v24.5.0 linux x64", CI: "true", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_63ffe169-ee2f-4882-988c-52ecb5b097c6", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.7.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1791", ACTIONS_ORCHESTRATION_ID: "0ae4973a-a757-4161-8e3e-d9261fd99bec.publish.publish.__default", npm_config_engine_strict: "true", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260907.300.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_63ffe169-ee2f-4882-988c-52ecb5b097c6", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:10125", GITHUB_WORKFLOW: "Publish hrm-portal", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.14/x64", GITHUB_RUN_ID: "35853392423", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "f1a40b6f9d833e49c2dfddb62e39edb772fef34a", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.8/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/KDI-5147-passcode-uniqueness", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9LREktNTE0Ny1wYXNzY29kZS11bmlxdWVuZXNzXCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsImF1ZCI6InZzbzo2Zjk2ZmE4OS1iN2JmLTQ4NzgtYmFkMy04OTgwMDY1NjZiNmUiLCJiaWxsaW5nX293bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwiZXhwIjoxNzkwMTg0Mjc5LCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3ByaW1hcnlzaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJpYXQiOjE3OTAxNjIwNzksImlzcyI6Imh0dHBzOi8vdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJqb2JfaWQiOiI0MjAwYzQ2Ni1kY2MyLTVhZDAtOGJkMi1lNWIzMmY1YWJkMjEiLCJqb2Jfd29ya2Zsb3dfcmVmIjoiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluIiwiam9iX3dvcmtmbG93X3NoYSI6IjEyODQ0NGZhODJhNDFhZWYwMjA3OGY2Yjc2OTJmZTBmYTc2NTlhNWIiLCJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJuYmYiOjE3OTAxNjE3NzksIm9pZGNfZXh0cmEiOiJ7XCJhY3RvclwiOlwianVuLWxlZS1mZWVkbWVcIixcImFjdG9yX2lkXCI6XCIyMzkyODI4NjJcIixcImJhc2VfcmVmXCI6XCJcIixcImNoZWNrX3J1bl9pZFwiOlwiMTA3MTU2MTI0ODYzXCIsXCJldmVudF9uYW1lXCI6XCJ3b3JrZmxvd19kaXNwYXRjaFwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiam9iX3dvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluXCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCIxMjg0NDRmYTgyYTQxYWVmMDIwNzhmNmI3NjkyZmUwZmE3NjU5YTViXCIsXCJyZWZcIjpcInJlZnMvaGVhZHMvS0RJLTUxNDctcGFzc2NvZGUtdW5pcXVlbmVzc1wiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIzNTg1MzM5MjQyM1wiLFwicnVuX251bWJlclwiOlwiMTY3XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiZjFhNDBiNmY5ZDgzM2U0OWMyZGZkZGI2MmUzOWVkYjc3MmZlZjM0YVwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvS0RJLTUxNDctcGFzc2NvZGUtdW5pcXVlbmVzc1wiLFwid29ya2Zsb3dfc2hhXCI6XCJmMWE0MGI2ZjlkODMzZTQ5YzJkZmRkYjYyZTM5ZWRiNzcyZmVmMzRhXCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9LREktNTE0Ny1wYXNzY29kZS11bmlxdWVuZXNzIiwib3JjaF9pZCI6IjBhZTQ5NzNhLWE3NTctNDE2MS04ZTNlLWQ5MjYxZmQ5OWJlYy5wdWJsaXNoLnB1Ymxpc2guX19kZWZhdWx0Iiwib3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJwbGFuX2lkIjoiMGFlNDk3M2EtYTc1Ny00MTYxLThlM2UtZDkyNjFmZDk5YmVjIiwicmVwb3NpdG9yeV9pZCI6IjExMjQ2NzIyMzUiLCJyZXBvc2l0b3J5X293bmVyX2lkIjoiNTQ4MzE1MTUiLCJyZXBvc2l0b3J5X3Zpc2liaWxpdHkiOiJwcml2YXRlIiwicnVuX2lkIjoiMzU4NTMzOTI0MjMiLCJydW5fbnVtYmVyIjoiMTY3IiwicnVuX3R5cGUiOiJmdWxsIiwicnVubmVyX2lkIjoiMTAwMDE1ODU3MiIsInJ1bm5lcl90eXBlIjoiaG9zdGVkIiwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjBhZTQ5NzNhLWE3NTctNDE2MS04ZTNlLWQ5MjYxZmQ5OWJlYzo0MjAwYzQ2Ni1kY2MyLTVhZDAtOGJkMi1lNWIzMmY1YWJkMjEgQWN0aW9ucy5SdW5uZXI6MGFlNDk3M2EtYTc1Ny00MTYxLThlM2UtZDkyNjFmZDk5YmVjOjQyMDBjNDY2LWRjYzItNWFkMC04YmQyLWU1YjMyZjVhYmQyMSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowYWU0OTczYS1hNzU3LTQxNjEtOGUzZS1kOTI2MWZkOTliZWM6NDIwMGM0NjYtZGNjMi01YWQwLThiZDItZTViMzJmNWFiZDIxIGdlbmVyYXRlX2lkX3Rva2VuOjBhZTQ5NzNhLWE3NTctNDE2MS04ZTNlLWQ5MjYxZmQ5OWJlYzo0MjAwYzQ2Ni1kY2MyLTVhZDAtOGJkMi1lNWIzMmY1YWJkMjEgQWN0aW9ucy5HZW5lcmljUmVhZDowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJzaGEiOiJmMWE0MGI2ZjlkODMzZTQ5YzJkZmRkYjYyZTM5ZWRiNzcyZmVmMzRhIiwidHJ1c3RfdGllciI6IjEifQ.Nfzc_rLVznDJMuxWM1d5pASDssyQf5L9AkpdHvFMmtTq0C2n7-T7LLT6B3IBLQlJ81KyBrM6va1_riuiIoZcMyEqg-VsNOD3mtLPabWYhI04RrjpnzfepM91cc2S2ca8F50rzd9ZC0zk_uAXvpvkOSYUfG0QrEPaRslSITY3oND7xuiWbwrtRYtKNtq5tjVFFYxnK2oFelxwFEQ8b1UT9HzuBXEQYmf9LA5h82vyyeI0jPsNY9edXX2HD6U-hzYAy6Aav9OGbqP_QUqs4ubqqqd4vcJEVTjNKowD2GOP6cuVWY9sIgh5nUCkmj5QhkO22Alh_PJS9FPvp8QNTbDA2g", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/work/hrm-service/hrm-service/apps/hrm-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/hrm-service/hrm-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/24.5.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_0232549f-2730-4595-8b65-f422ec63b1eb", INVOCATION_ID: "f6c5dcc3f522400f9eb965a7f5c511be", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", npm_package_name: "@feedmepos/mf-hrm-portal", GITHUB_ACTION: "__run_5", GITHUB_RUN_NUMBER: "167", GITHUB_TRIGGERING_ACTOR: "jun-lee-feedme", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000158572", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "KDI-5147-passcode-uniqueness", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.2.5-dev", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GITHUB_WORKSPACE: "/home/runner/work/hrm-service/hrm-service", ACCEPT_EULA: "Y", GITHUB_JOB: "publish", GITHUB_SHA: "f1a40b6f9d833e49c2dfddb62e39edb772fef34a", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/KDI-5147-passcode-uniqueness", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_63ffe169-ee2f-4882-988c-52ecb5b097c6", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "239282862", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-2-azure-eastus.actions.githubusercontent.com/73//idtoken/0ae4973a-a757-4161-8e3e-d9261fd99bec/4200c466-dcc2-5ad0-8bd2-e5b32f5abd21?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_63ffe169-ee2f-4882-988c-52ecb5b097c6", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_63ffe169-ee2f-4882-988c-52ecb5b097c6", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.1", CHROME_BIN: "/usr/bin/google-chrome", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_63ffe169-ee2f-4882-988c-52ecb5b097c6", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1859
|
-
const
|
|
1860
|
-
function
|
|
1861
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
1859
|
+
var go = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_dfc94322-2083-4ed0-b063-00620d088a7d", 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_dfc94322-2083-4ed0-b063-00620d088a7d", 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: "1721", ACTIONS_ORCHESTRATION_ID: "fd2178ed-6448-4b33-a92b-e98317a539c1.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_dfc94322-2083-4ed0-b063-00620d088a7d", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:12489", 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: "36559855228", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "4b8244b841510557f964ab8eccdd10e5c598184f", 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-dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy90ZXN0L3NjaGVkdWxlLWRldlwiLFwiUGVybWlzc2lvblwiOjN9LHtcIlNjb3BlXCI6XCJyZWZzL2hlYWRzL21haW5cIixcIlBlcm1pc3Npb25cIjoxfV0iLCJhY3NsIjoiMTAiLCJhdWQiOiJ2c286NmY5NmZhODktYjdiZi00ODc4LWJhZDMtODk4MDA2NTY2YjZlIiwiYmlsbGluZ19vd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsImV4cCI6MTc5MDcwMjI5MiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiaWF0IjoxNzkwNjgwMDkyLCJpc3MiOiJodHRwczovL3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tIiwiam9iX2lkIjoiMTk3ZjEyNTAtOWZhNC01NmRmLWIyMDMtNzMxMzQ2MjAwN2FkIiwiam9iX3dvcmtmbG93X3JlZiI6ImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpbiIsImpvYl93b3JrZmxvd19zaGEiOiI3YjU0YmM2NjkxZWJjMzE2NmNkMTY0MjMwNDIzZGNlOGI3NWU3MjI2IiwibmFtZWlkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwibmJmIjoxNzkwNjc5NzkyLCJvaWRjX2V4dHJhIjoie1wiYWN0b3JcIjpcIll5VDc3ODZcIixcImFjdG9yX2lkXCI6XCI5NzAwMzEyNVwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCIxMDkzNzc4Mjk5NDZcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjdiNTRiYzY2OTFlYmMzMTY2Y2QxNjQyMzA0MjNkY2U4Yjc1ZTcyMjZcIixcInJlZlwiOlwicmVmcy9oZWFkcy90ZXN0L3NjaGVkdWxlLWRldlwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIzNjU1OTg1NTIyOFwiLFwicnVuX251bWJlclwiOlwiMTcyXCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiNGI4MjQ0Yjg0MTUxMDU1N2Y5NjRhYjhlY2NkZDEwZTVjNTk4MTg0ZlwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvdGVzdC9zY2hlZHVsZS1kZXZcIixcIndvcmtmbG93X3NoYVwiOlwiNGI4MjQ0Yjg0MTUxMDU1N2Y5NjRhYjhlY2NkZDEwZTVjNTk4MTg0ZlwifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvaHJtLXNlcnZpY2U6cmVmOnJlZnMvaGVhZHMvdGVzdC9zY2hlZHVsZS1kZXYiLCJvcmNoX2lkIjoiZmQyMTc4ZWQtNjQ0OC00YjMzLWE5MmItZTk4MzE3YTUzOWMxLnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiJmZDIxNzhlZC02NDQ4LTRiMzMtYTkyYi1lOTgzMTdhNTM5YzEiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiIzNjU1OTg1NTIyOCIsInJ1bl9udW1iZXIiOiIxNzIiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMTY5NzY1IiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6ZmQyMTc4ZWQtNjQ0OC00YjMzLWE5MmItZTk4MzE3YTUzOWMxOjE5N2YxMjUwLTlmYTQtNTZkZi1iMjAzLTczMTM0NjIwMDdhZCBBY3Rpb25zLlJ1bm5lcjpmZDIxNzhlZC02NDQ4LTRiMzMtYTkyYi1lOTgzMTdhNTM5YzE6MTk3ZjEyNTAtOWZhNC01NmRmLWIyMDMtNzMxMzQ2MjAwN2FkIEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOmZkMjE3OGVkLTY0NDgtNGIzMy1hOTJiLWU5ODMxN2E1MzljMToxOTdmMTI1MC05ZmE0LTU2ZGYtYjIwMy03MzEzNDYyMDA3YWQgZ2VuZXJhdGVfaWRfdG9rZW46ZmQyMTc4ZWQtNjQ0OC00YjMzLWE5MmItZTk4MzE3YTUzOWMxOjE5N2YxMjUwLTlmYTQtNTZkZi1iMjAzLTczMTM0NjIwMDdhZCBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6IjRiODI0NGI4NDE1MTA1NTdmOTY0YWI4ZWNjZGQxMGU1YzU5ODE4NGYiLCJ0cnVzdF90aWVyIjoiMSJ9.aP3gMSm3AK-5b-F0t-S3JUljKEnO1oUe2KdWN6jb7KKP4yDNARNkfhV2lI3TkNZzNoc22x8zDToaGkBa5UfdiuFvRLO_K24iHYkFJXWKE7Q6DrnnaiGpk1deCaIoYBtj2lC9d3S8MgJLfi2S4OTJ-ocXgrReT-Y9enXi2kUATf6VAdYa0O56dAV18vTkZXmlAX204qWc-Q3XZeiZiUKRuTCi7MNc47I_TjfMy-0VWYnXJ88a_yQKuDNZPS9acbYSrz2AOQGgVFyEojD5htBJiUMindPjCefKwSWj5Wq5FdjFZjfcr3oqfxlWGLy-323nvtIRjbKHH-C-t9bqJjZOvA", 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_5fe50289-2e9d-40ba-894a-f7d5341eafda", INVOCATION_ID: "fa4515c775ed4a9c8e6bc2a9e05472dc", 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: "172", 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 1000169765", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "test/schedule-dev", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.2.5-dev.4", 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: "4b8244b841510557f964ab8eccdd10e5c598184f", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/test/schedule-dev", 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_dfc94322-2083-4ed0-b063-00620d088a7d", 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/23//idtoken/fd2178ed-6448-4b33-a92b-e98317a539c1/197f1250-9fa4-56df-b203-7313462007ad?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_dfc94322-2083-4ed0-b063-00620d088a7d", 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_dfc94322-2083-4ed0-b063-00620d088a7d", 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_dfc94322-2083-4ed0-b063-00620d088a7d", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1860
|
+
const Io = "10.0.5";
|
|
1861
|
+
function yo() {
|
|
1862
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Xe().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Xe().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Xe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Xe().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1862
1863
|
}
|
|
1863
1864
|
const at = {
|
|
1864
1865
|
// composer module errors
|
|
@@ -1876,40 +1877,40 @@ const at = {
|
|
|
1876
1877
|
function ut(e, ...t) {
|
|
1877
1878
|
return Tt(e, null, void 0);
|
|
1878
1879
|
}
|
|
1879
|
-
const xt = /* @__PURE__ */ $e("__translateVNode"),
|
|
1880
|
-
function
|
|
1880
|
+
const xt = /* @__PURE__ */ $e("__translateVNode"), Gt = /* @__PURE__ */ $e("__datetimeParts"), Wt = /* @__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 (Le(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) &&
|
|
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
|
+
Le(d, u) && dt(d[u]);
|
|
1913
|
+
return d;
|
|
1913
1914
|
}
|
|
1914
1915
|
function or(e) {
|
|
1915
1916
|
return e.type;
|
|
@@ -1927,14 +1928,14 @@ function No(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,42 +1943,42 @@ function No(e, t, n) {
|
|
|
1942
1943
|
function Sn(e) {
|
|
1943
1944
|
return ue(fr, null, e, 0);
|
|
1944
1945
|
}
|
|
1945
|
-
const
|
|
1946
|
-
let
|
|
1946
|
+
const Ln = "__INTLIFY_META__", An = () => [], Co = () => !1;
|
|
1947
|
+
let kn = 0;
|
|
1947
1948
|
function Rn(e) {
|
|
1948
|
-
return (t, n, r, l) => e(n, r,
|
|
1949
|
+
return (t, n, r, l) => e(n, r, Yt() || void 0, l);
|
|
1949
1950
|
}
|
|
1950
1951
|
const To = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1951
|
-
const e =
|
|
1952
|
+
const e = Yt();
|
|
1952
1953
|
let t = null;
|
|
1953
|
-
return e && (t = or(e)[
|
|
1954
|
+
return e && (t = or(e)[Ln]) ? { [Ln]: 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 = pe(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
|
-
), g = a(sr(u.value, e)),
|
|
1965
|
-
let N = t ? t.missingWarn : pe(e.missingWarn) ||
|
|
1964
|
+
t && d ? t.fallbackLocale.value : Z(e.fallbackLocale) || be(e.fallbackLocale) || ee(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
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]: {} });
|
|
1966
|
+
let N = t ? t.missingWarn : pe(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, F = t ? t.fallbackWarn : pe(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, w = t ? t.fallbackRoot : pe(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.fallbackFormat, D = 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 : pe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, c = !!e.escapeParameter;
|
|
1966
1967
|
const b = t ? t.modifiers : ee(e.modifiers) ? e.modifiers : {};
|
|
1967
|
-
let
|
|
1968
|
+
let I = e.pluralRules || t && t.pluralRules, v;
|
|
1968
1969
|
v = (() => {
|
|
1969
1970
|
r && bn(null);
|
|
1970
1971
|
const p = {
|
|
1971
|
-
version:
|
|
1972
|
+
version: Io,
|
|
1972
1973
|
locale: u.value,
|
|
1973
1974
|
fallbackLocale: i.value,
|
|
1974
1975
|
messages: g.value,
|
|
1975
1976
|
modifiers: b,
|
|
1976
|
-
pluralRules:
|
|
1977
|
+
pluralRules: I,
|
|
1977
1978
|
missing: f === null ? void 0 : f,
|
|
1978
1979
|
missingWarn: N,
|
|
1979
1980
|
fallbackWarn: F,
|
|
1980
|
-
fallbackFormat:
|
|
1981
|
+
fallbackFormat: A,
|
|
1981
1982
|
unresolving: !0,
|
|
1982
1983
|
postTranslation: h === null ? void 0 : h,
|
|
1983
1984
|
warnHtmlMessage: S,
|
|
@@ -1986,20 +1987,20 @@ function Oo(e = {}) {
|
|
|
1986
1987
|
messageCompiler: e.messageCompiler,
|
|
1987
1988
|
__meta: { framework: "vue" }
|
|
1988
1989
|
};
|
|
1989
|
-
p.datetimeFormats =
|
|
1990
|
-
const
|
|
1991
|
-
return r && bn(
|
|
1990
|
+
p.datetimeFormats = y.value, p.numberFormats = T.value, p.__datetimeFormatters = ee(v) ? v.__datetimeFormatters : void 0, p.__numberFormatters = ee(v) ? v.__numberFormatters : void 0;
|
|
1991
|
+
const E = ro(p);
|
|
1992
|
+
return r && bn(E), E;
|
|
1992
1993
|
})(), lt(v, u.value, i.value);
|
|
1993
|
-
function
|
|
1994
|
+
function L() {
|
|
1994
1995
|
return [
|
|
1995
1996
|
u.value,
|
|
1996
1997
|
i.value,
|
|
1997
1998
|
g.value,
|
|
1998
|
-
|
|
1999
|
+
y.value,
|
|
1999
2000
|
T.value
|
|
2000
2001
|
];
|
|
2001
2002
|
}
|
|
2002
|
-
const
|
|
2003
|
+
const X = z({
|
|
2003
2004
|
get: () => u.value,
|
|
2004
2005
|
set: (p) => {
|
|
2005
2006
|
u.value = p, v.locale = u.value;
|
|
@@ -2009,21 +2010,21 @@ function Oo(e = {}) {
|
|
|
2009
2010
|
set: (p) => {
|
|
2010
2011
|
i.value = p, v.fallbackLocale = i.value, lt(v, u.value, p);
|
|
2011
2012
|
}
|
|
2012
|
-
}),
|
|
2013
|
+
}), m = z(() => g.value), C = /* @__PURE__ */ z(() => y.value), U = /* @__PURE__ */ z(() => T.value);
|
|
2013
2014
|
function V() {
|
|
2014
|
-
return
|
|
2015
|
+
return me(h) ? h : null;
|
|
2015
2016
|
}
|
|
2016
2017
|
function j(p) {
|
|
2017
2018
|
h = p, v.postTranslation = p;
|
|
2018
2019
|
}
|
|
2019
|
-
function
|
|
2020
|
+
function W() {
|
|
2020
2021
|
return D;
|
|
2021
2022
|
}
|
|
2022
|
-
function
|
|
2023
|
+
function G(p) {
|
|
2023
2024
|
p !== null && (f = Rn(p)), D = p, v.missing = f;
|
|
2024
2025
|
}
|
|
2025
|
-
const
|
|
2026
|
-
|
|
2026
|
+
const B = (p, E, $, le, Ye, mt) => {
|
|
2027
|
+
L();
|
|
2027
2028
|
let ze;
|
|
2028
2029
|
try {
|
|
2029
2030
|
go.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = t ? no() : void 0), ze = p(v);
|
|
@@ -2032,31 +2033,31 @@ function Oo(e = {}) {
|
|
|
2032
2033
|
}
|
|
2033
2034
|
if ($ !== "translate exists" && // for not `te` (e.g `t`)
|
|
2034
2035
|
ge(ze) && ze === Ot || $ === "translate exists" && !ze) {
|
|
2035
|
-
const [cr,
|
|
2036
|
-
return t && w ? le(t) :
|
|
2036
|
+
const [cr, Ea] = E();
|
|
2037
|
+
return t && w ? le(t) : Ye(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 Y(...p) {
|
|
2045
|
+
return B((E) => Reflect.apply(On, null, [E, ...p]), () => Vt(...p), "translate", (E) => Reflect.apply(E.t, E, [...p]), (E) => E, (E) => Z(E));
|
|
2045
2046
|
}
|
|
2046
2047
|
function ne(...p) {
|
|
2047
|
-
const [
|
|
2048
|
+
const [E, $, le] = p;
|
|
2048
2049
|
if (le && !te(le))
|
|
2049
2050
|
throw ut(at.INVALID_ARGUMENT);
|
|
2050
|
-
return
|
|
2051
|
+
return Y(E, $, Ie({ resolvedMessage: !0 }, le || {}));
|
|
2051
2052
|
}
|
|
2052
2053
|
function Q(...p) {
|
|
2053
|
-
return
|
|
2054
|
+
return B((E) => Reflect.apply(In, null, [E, ...p]), () => jt(...p), "datetime format", (E) => Reflect.apply(E.d, E, [...p]), () => pn, (E) => Z(E));
|
|
2054
2055
|
}
|
|
2055
2056
|
function _e(...p) {
|
|
2056
|
-
return
|
|
2057
|
+
return B((E) => Reflect.apply(En, null, [E, ...p]), () => Ut(...p), "number format", (E) => Reflect.apply(E.n, E, [...p]), () => pn, (E) => Z(E));
|
|
2057
2058
|
}
|
|
2058
2059
|
function ce(p) {
|
|
2059
|
-
return p.map((
|
|
2060
|
+
return p.map((E) => Z(E) || ge(E) || pe(E) ? Sn(String(E)) : E);
|
|
2060
2061
|
}
|
|
2061
2062
|
const fe = {
|
|
2062
2063
|
normalize: ce,
|
|
@@ -2064,112 +2065,112 @@ function Oo(e = {}) {
|
|
|
2064
2065
|
type: "vnode"
|
|
2065
2066
|
};
|
|
2066
2067
|
function q(...p) {
|
|
2067
|
-
return
|
|
2068
|
+
return B((E) => {
|
|
2068
2069
|
let $;
|
|
2069
|
-
const le =
|
|
2070
|
+
const le = E;
|
|
2070
2071
|
try {
|
|
2071
2072
|
le.processor = fe, $ = Reflect.apply(On, null, [le, ...p]);
|
|
2072
2073
|
} finally {
|
|
2073
2074
|
le.processor = null;
|
|
2074
2075
|
}
|
|
2075
2076
|
return $;
|
|
2076
|
-
}, () => Vt(...p), "translate", (
|
|
2077
|
+
}, () => Vt(...p), "translate", (E) => E[xt](...p), (E) => [Sn(E)], (E) => be(E));
|
|
2077
2078
|
}
|
|
2078
2079
|
function De(...p) {
|
|
2079
|
-
return
|
|
2080
|
+
return B((E) => Reflect.apply(En, null, [E, ...p]), () => Ut(...p), "number format", (E) => E[Wt](...p), An, (E) => Z(E) || be(E));
|
|
2080
2081
|
}
|
|
2081
2082
|
function K(...p) {
|
|
2082
|
-
return
|
|
2083
|
+
return B((E) => Reflect.apply(In, null, [E, ...p]), () => jt(...p), "datetime format", (E) => E[Gt](...p), An, (E) => Z(E) || be(E));
|
|
2083
2084
|
}
|
|
2084
2085
|
function ve(p) {
|
|
2085
|
-
|
|
2086
|
+
I = p, v.pluralRules = I;
|
|
2086
2087
|
}
|
|
2087
|
-
function Je(p,
|
|
2088
|
-
return
|
|
2088
|
+
function Je(p, E) {
|
|
2089
|
+
return B(() => {
|
|
2089
2090
|
if (!p)
|
|
2090
2091
|
return !1;
|
|
2091
|
-
const $ = Z(
|
|
2092
|
-
return ot(
|
|
2093
|
-
}, () => [p], "translate exists", ($) => Reflect.apply($.te, $, [p,
|
|
2092
|
+
const $ = Z(E) ? E : u.value, le = Fe($), Ye = v.messageResolver(le, p);
|
|
2093
|
+
return ot(Ye) || Te(Ye) || Z(Ye);
|
|
2094
|
+
}, () => [p], "translate exists", ($) => Reflect.apply($.te, $, [p, E]), Co, ($) => pe($));
|
|
2094
2095
|
}
|
|
2095
2096
|
function Ke(p) {
|
|
2096
|
-
let
|
|
2097
|
+
let E = null;
|
|
2097
2098
|
const $ = Hn(v, i.value, u.value);
|
|
2098
2099
|
for (let le = 0; le < $.length; le++) {
|
|
2099
|
-
const
|
|
2100
|
-
if (
|
|
2101
|
-
|
|
2100
|
+
const Ye = g.value[$[le]] || {}, mt = v.messageResolver(Ye, p);
|
|
2101
|
+
if (mt != null) {
|
|
2102
|
+
E = mt;
|
|
2102
2103
|
break;
|
|
2103
2104
|
}
|
|
2104
2105
|
}
|
|
2105
|
-
return
|
|
2106
|
+
return E;
|
|
2106
2107
|
}
|
|
2107
2108
|
function Ve(p) {
|
|
2108
|
-
const
|
|
2109
|
-
return
|
|
2109
|
+
const E = Ke(p);
|
|
2110
|
+
return E ?? (t ? t.tm(p) || {} : {});
|
|
2110
2111
|
}
|
|
2111
2112
|
function Fe(p) {
|
|
2112
2113
|
return g.value[p] || {};
|
|
2113
2114
|
}
|
|
2114
|
-
function Ce(p,
|
|
2115
|
+
function Ce(p, E) {
|
|
2115
2116
|
if (l) {
|
|
2116
|
-
const $ = { [p]:
|
|
2117
|
+
const $ = { [p]: E };
|
|
2117
2118
|
for (const le in $)
|
|
2118
|
-
|
|
2119
|
-
|
|
2119
|
+
Le($, le) && dt($[le]);
|
|
2120
|
+
E = $[p];
|
|
2120
2121
|
}
|
|
2121
|
-
g.value[p] =
|
|
2122
|
+
g.value[p] = E, v.messages = g.value;
|
|
2122
2123
|
}
|
|
2123
|
-
function
|
|
2124
|
+
function Be(p, E) {
|
|
2124
2125
|
g.value[p] = g.value[p] || {};
|
|
2125
|
-
const $ = { [p]:
|
|
2126
|
+
const $ = { [p]: E };
|
|
2126
2127
|
if (l)
|
|
2127
2128
|
for (const le in $)
|
|
2128
|
-
|
|
2129
|
-
|
|
2129
|
+
Le($, le) && dt($[le]);
|
|
2130
|
+
E = $[p], yt(E, g.value[p]), v.messages = g.value;
|
|
2130
2131
|
}
|
|
2131
2132
|
function O(p) {
|
|
2132
|
-
return
|
|
2133
|
+
return y.value[p] || {};
|
|
2133
2134
|
}
|
|
2134
|
-
function s(p,
|
|
2135
|
-
|
|
2135
|
+
function s(p, E) {
|
|
2136
|
+
y.value[p] = E, v.datetimeFormats = y.value, yn(v, p, E);
|
|
2136
2137
|
}
|
|
2137
|
-
function o(p,
|
|
2138
|
-
|
|
2138
|
+
function o(p, E) {
|
|
2139
|
+
y.value[p] = Ie(y.value[p] || {}, E), v.datetimeFormats = y.value, yn(v, p, E);
|
|
2139
2140
|
}
|
|
2140
2141
|
function _(p) {
|
|
2141
2142
|
return T.value[p] || {};
|
|
2142
2143
|
}
|
|
2143
|
-
function
|
|
2144
|
-
T.value[p] =
|
|
2144
|
+
function k(p, E) {
|
|
2145
|
+
T.value[p] = E, v.numberFormats = T.value, Nn(v, p, E);
|
|
2145
2146
|
}
|
|
2146
|
-
function M(p,
|
|
2147
|
-
T.value[p] =
|
|
2147
|
+
function M(p, E) {
|
|
2148
|
+
T.value[p] = Ie(T.value[p] || {}, E), v.numberFormats = T.value, Nn(v, p, E);
|
|
2148
2149
|
}
|
|
2149
|
-
|
|
2150
|
-
|
|
2150
|
+
kn++, t && on && (wt(t.locale, (p) => {
|
|
2151
|
+
d && (u.value = p, v.locale = p, lt(v, u.value, i.value));
|
|
2151
2152
|
}), wt(t.fallbackLocale, (p) => {
|
|
2152
|
-
|
|
2153
|
+
d && (i.value = p, v.fallbackLocale = p, lt(v, u.value, i.value));
|
|
2153
2154
|
}));
|
|
2154
2155
|
const P = {
|
|
2155
|
-
id:
|
|
2156
|
-
locale:
|
|
2156
|
+
id: kn,
|
|
2157
|
+
locale: X,
|
|
2157
2158
|
fallbackLocale: x,
|
|
2158
2159
|
get inheritLocale() {
|
|
2159
|
-
return
|
|
2160
|
+
return d;
|
|
2160
2161
|
},
|
|
2161
2162
|
set inheritLocale(p) {
|
|
2162
|
-
|
|
2163
|
+
d = p, p && t && (u.value = t.locale.value, i.value = t.fallbackLocale.value, lt(v, 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
|
},
|
|
2171
2172
|
get pluralRules() {
|
|
2172
|
-
return
|
|
2173
|
+
return I || {};
|
|
2173
2174
|
},
|
|
2174
2175
|
get isGlobal() {
|
|
2175
2176
|
return r;
|
|
@@ -2193,10 +2194,10 @@ function Oo(e = {}) {
|
|
|
2193
2194
|
w = p;
|
|
2194
2195
|
},
|
|
2195
2196
|
get fallbackFormat() {
|
|
2196
|
-
return
|
|
2197
|
+
return A;
|
|
2197
2198
|
},
|
|
2198
2199
|
set fallbackFormat(p) {
|
|
2199
|
-
|
|
2200
|
+
A = p, v.fallbackFormat = A;
|
|
2200
2201
|
},
|
|
2201
2202
|
get warnHtmlMessage() {
|
|
2202
2203
|
return S;
|
|
@@ -2210,17 +2211,17 @@ function Oo(e = {}) {
|
|
|
2210
2211
|
set escapeParameter(p) {
|
|
2211
2212
|
c = p, v.escapeParameter = p;
|
|
2212
2213
|
},
|
|
2213
|
-
t:
|
|
2214
|
+
t: Y,
|
|
2214
2215
|
getLocaleMessage: Fe,
|
|
2215
2216
|
setLocaleMessage: Ce,
|
|
2216
|
-
mergeLocaleMessage:
|
|
2217
|
+
mergeLocaleMessage: Be,
|
|
2217
2218
|
getPostTranslationHandler: V,
|
|
2218
2219
|
setPostTranslationHandler: j,
|
|
2219
|
-
getMissingHandler:
|
|
2220
|
-
setMissingHandler:
|
|
2221
|
-
[
|
|
2220
|
+
getMissingHandler: W,
|
|
2221
|
+
setMissingHandler: G,
|
|
2222
|
+
[Eo]: ve
|
|
2222
2223
|
};
|
|
2223
|
-
return P.datetimeFormats = C, P.numberFormats = U, P.rt = ne, P.te = Je, P.tm = Ve, P.d = Q, P.n = _e, P.getDateTimeFormat = O, P.setDateTimeFormat = s, P.mergeDateTimeFormat = o, P.getNumberFormat = _, P.setNumberFormat =
|
|
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 = k, P.mergeNumberFormat = M, P[rr] = n, P[xt] = q, P[Gt] = K, P[Wt] = De, P;
|
|
2224
2225
|
}
|
|
2225
2226
|
const qt = {
|
|
2226
2227
|
tag: {
|
|
@@ -2253,7 +2254,7 @@ function So({ slots: e }, t) {
|
|
|
2253
2254
|
function ar() {
|
|
2254
2255
|
return Re;
|
|
2255
2256
|
}
|
|
2256
|
-
|
|
2257
|
+
Ie({
|
|
2257
2258
|
keypath: {
|
|
2258
2259
|
type: String,
|
|
2259
2260
|
required: !0
|
|
@@ -2263,26 +2264,26 @@ ye({
|
|
|
2263
2264
|
validator: (e) => ge(e) || !isNaN(e)
|
|
2264
2265
|
}
|
|
2265
2266
|
}, qt);
|
|
2266
|
-
function
|
|
2267
|
+
function Lo(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 = [
|
|
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];
|
|
2277
2278
|
be(i) ? g = i.map((N, F) => {
|
|
2278
|
-
const w = l[N.type],
|
|
2279
|
-
return
|
|
2279
|
+
const w = l[N.type], A = w ? w({ [N.type]: N.value, index: F, parts: i }) : [N.value];
|
|
2280
|
+
return Lo(A) && (A[0].key = `${N.type}-${F}`), A;
|
|
2280
2281
|
}) : Z(i) && (g = [i]);
|
|
2281
|
-
const
|
|
2282
|
-
return
|
|
2282
|
+
const y = Ie(oe(), a), T = Z(e.tag) || te(e.tag) ? e.tag : ar();
|
|
2283
|
+
return Gn(T, y, g);
|
|
2283
2284
|
};
|
|
2284
2285
|
}
|
|
2285
|
-
|
|
2286
|
+
Ie({
|
|
2286
2287
|
value: {
|
|
2287
2288
|
type: Number,
|
|
2288
2289
|
required: !0
|
|
@@ -2291,7 +2292,7 @@ ye({
|
|
|
2291
2292
|
type: [String, Object]
|
|
2292
2293
|
}
|
|
2293
2294
|
}, qt);
|
|
2294
|
-
|
|
2295
|
+
Ie({
|
|
2295
2296
|
value: {
|
|
2296
2297
|
type: [Number, Date],
|
|
2297
2298
|
required: !0
|
|
@@ -2300,30 +2301,30 @@ ye({
|
|
|
2300
2301
|
type: [String, Object]
|
|
2301
2302
|
}
|
|
2302
2303
|
}, qt);
|
|
2303
|
-
const
|
|
2304
|
+
const Ao = /* @__PURE__ */ $e("global-vue-i18n");
|
|
2304
2305
|
function St(e = {}) {
|
|
2305
|
-
const t =
|
|
2306
|
+
const t = Yt();
|
|
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 = ko(t), r = Mo(n), l = or(t), a = Ro(e, l);
|
|
2311
2312
|
if (a === "global")
|
|
2312
2313
|
return No(r, e, l), r;
|
|
2313
2314
|
if (a === "parent") {
|
|
2314
2315
|
let i = wo(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
|
-
const i =
|
|
2321
|
-
"__i18n" in l && (i.__i18n = l.__i18n), r && (i.__root = r), u = Oo(i),
|
|
2321
|
+
const i = Ie({}, e);
|
|
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
|
-
const t = ur(e.isCE ?
|
|
2326
|
+
function ko(e) {
|
|
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;
|
|
@@ -2339,11 +2340,11 @@ function wo(e, t, n = !1) {
|
|
|
2339
2340
|
const l = t.root;
|
|
2340
2341
|
let a = Do(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)
|
|
@@ -2357,22 +2358,22 @@ function Do(e, t = !1) {
|
|
|
2357
2358
|
}
|
|
2358
2359
|
function Fo(e, t, n) {
|
|
2359
2360
|
xn(() => {
|
|
2360
|
-
}, t),
|
|
2361
|
+
}, t), mr(() => {
|
|
2361
2362
|
const r = n;
|
|
2362
2363
|
e.__deleteInstance(t);
|
|
2363
2364
|
const l = r[Zt];
|
|
2364
2365
|
l && (l(), delete r[Zt]);
|
|
2365
2366
|
}, t);
|
|
2366
2367
|
}
|
|
2367
|
-
|
|
2368
|
+
yo();
|
|
2368
2369
|
zs(Ms);
|
|
2369
2370
|
Qs($s);
|
|
2370
2371
|
qs(Hn);
|
|
2371
2372
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2372
|
-
const e =
|
|
2373
|
+
const e = Xe();
|
|
2373
2374
|
e.__INTLIFY__ = !0, ws(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2374
2375
|
}
|
|
2375
|
-
const pt = /* @__PURE__ */
|
|
2376
|
+
const pt = /* @__PURE__ */ Ae({
|
|
2376
2377
|
__name: "InheritPermissionTooltip",
|
|
2377
2378
|
props: {
|
|
2378
2379
|
item: {
|
|
@@ -2389,13 +2390,13 @@ const pt = /* @__PURE__ */ Le({
|
|
|
2389
2390
|
placement: "right",
|
|
2390
2391
|
"z-index": 50
|
|
2391
2392
|
}, {
|
|
2392
|
-
content:
|
|
2393
|
+
content: de(() => [
|
|
2393
2394
|
ae("div", null, Oe(H(t)("team.memberForm.permissions.inherited")), 1),
|
|
2394
|
-
(J(!0), ie(Re, null,
|
|
2395
|
-
ae("div", null, "- " + Oe(
|
|
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 wn = Object.values(Sr), Po = {
|
|
|
2427
2428
|
update: "Edit"
|
|
2428
2429
|
};
|
|
2429
2430
|
function jo(e, t, n, r) {
|
|
2430
|
-
const { t: l } = He(), { getFlagValue: a, getFlag:
|
|
2431
|
+
const { t: l } = He(), { getFlagValue: a, getFlag: d } = Or(), u = z(() => {
|
|
2431
2432
|
var j;
|
|
2432
|
-
const
|
|
2433
|
-
for (const
|
|
2434
|
-
const
|
|
2435
|
-
if (!
|
|
2436
|
-
const
|
|
2437
|
-
if (n.value.includes(
|
|
2433
|
+
const m = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map();
|
|
2434
|
+
for (const W of t.value) {
|
|
2435
|
+
const G = W.category;
|
|
2436
|
+
if (!G) continue;
|
|
2437
|
+
const B = W.subject;
|
|
2438
|
+
if (n.value.includes(W.subject) || W.showByFeatureFlag && ((j = d(W.showByFeatureFlag)) == null ? void 0 : j.enabled) === !1 && a(W.showByFeatureFlag) === "true")
|
|
2438
2439
|
continue;
|
|
2439
|
-
|
|
2440
|
-
const
|
|
2441
|
-
U.set(
|
|
2442
|
-
label: l(`permissionSet.permissionLabels.${
|
|
2443
|
-
value:
|
|
2444
|
-
optionKey: `${
|
|
2445
|
-
}), C.has(
|
|
2440
|
+
m.has(G) || m.set(G, []);
|
|
2441
|
+
const Y = U.get(B) ?? 0;
|
|
2442
|
+
U.set(B, Y + 1), m.get(G).push({
|
|
2443
|
+
label: l(`permissionSet.permissionLabels.${B}`, W.label),
|
|
2444
|
+
value: B,
|
|
2445
|
+
optionKey: `${B}::${Y}`
|
|
2446
|
+
}), C.has(B) || C.set(B, W);
|
|
2446
2447
|
}
|
|
2447
|
-
return [...
|
|
2448
|
-
const
|
|
2449
|
-
return
|
|
2450
|
-
}).map((
|
|
2451
|
-
const
|
|
2452
|
-
for (const K of
|
|
2448
|
+
return [...m.keys()].sort((W, G) => {
|
|
2449
|
+
const B = wn.indexOf(W), Y = wn.indexOf(G);
|
|
2450
|
+
return B === -1 && Y === -1 ? W.localeCompare(G) : B === -1 ? 1 : Y === -1 ? -1 : B - Y;
|
|
2451
|
+
}).map((W) => {
|
|
2452
|
+
const G = m.get(W), B = l(`permissionSet.categoryLabels.${W}`, W), Y = /* @__PURE__ */ new Map();
|
|
2453
|
+
for (const K of G) {
|
|
2453
2454
|
const ve = C.get(K.value);
|
|
2454
|
-
ve &&
|
|
2455
|
+
ve && Y.set(K.value, ve.actions);
|
|
2455
2456
|
}
|
|
2456
|
-
const ne =
|
|
2457
|
-
const ve =
|
|
2457
|
+
const ne = G.some((K) => {
|
|
2458
|
+
const ve = Y.get(K.value);
|
|
2458
2459
|
return ve && ve.length > 1;
|
|
2459
2460
|
}), Q = ne ? [
|
|
2460
2461
|
...new Set(
|
|
2461
|
-
|
|
2462
|
+
G.flatMap((K) => Y.get(K.value) ?? []).filter((K) => K !== "manage")
|
|
2462
2463
|
)
|
|
2463
2464
|
] : [], _e = /* @__PURE__ */ new Map();
|
|
2464
2465
|
for (const K of e.value)
|
|
2465
|
-
|
|
2466
|
+
G.some((ve) => ve.value === K.subject) && !K.inverted && _e.set(K.subject, new Set(K.actions));
|
|
2466
2467
|
const ce = ne ? e.value.filter(
|
|
2467
|
-
(K) =>
|
|
2468
|
-
).map((K) => K.subject) : e.value.filter((K) =>
|
|
2468
|
+
(K) => G.some((ve) => ve.value === K.subject) && !K.inverted && K.actions.includes("manage")
|
|
2469
|
+
).map((K) => K.subject) : e.value.filter((K) => G.some((ve) => ve.value === K.subject) && !K.inverted).map((K) => K.subject), se = G.find((K) => {
|
|
2469
2470
|
var ve;
|
|
2470
2471
|
return (ve = C.get(K.value)) == null ? void 0 : ve.isCategoryCover;
|
|
2471
2472
|
}), fe = (se == null ? void 0 : se.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), De = q.has("manage");
|
|
2472
2473
|
return {
|
|
2473
|
-
category:
|
|
2474
|
-
label:
|
|
2475
|
-
options:
|
|
2474
|
+
category: W,
|
|
2475
|
+
label: B,
|
|
2476
|
+
options: G,
|
|
2476
2477
|
selectedSubjects: ce,
|
|
2477
2478
|
isMultiAction: ne,
|
|
2478
2479
|
actionColumns: Q,
|
|
2479
|
-
permissionActionsMap:
|
|
2480
|
+
permissionActionsMap: Y,
|
|
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)), W = new Set(C), G = /* @__PURE__ */ new Map();
|
|
2489
2490
|
for (const Q of e.value)
|
|
2490
|
-
j.has(Q.subject) && !Q.inverted &&
|
|
2491
|
-
const
|
|
2491
|
+
j.has(Q.subject) && !Q.inverted && G.set(Q.subject, Q.conditions);
|
|
2492
|
+
const B = U != null && U.coverSubject ? G.get(U.coverSubject) : void 0, Y = /* @__PURE__ */ new Set(), ne = t.value.flatMap(
|
|
2492
2493
|
({ category: Q, showByFeatureFlag: _e, isCategoryCover: ce, ...se }) => {
|
|
2493
2494
|
const fe = se.subject;
|
|
2494
|
-
if (!
|
|
2495
|
-
|
|
2495
|
+
if (!W.has(fe) || Y.has(fe)) return [];
|
|
2496
|
+
Y.add(fe);
|
|
2496
2497
|
let q;
|
|
2497
|
-
return
|
|
2498
|
+
return G.has(fe) ? q = G.get(fe) : U != null && U.coverSubject && fe !== U.coverSubject && (q = B), [
|
|
2498
2499
|
{ ...se, ...q !== void 0 && { conditions: q } }
|
|
2499
2500
|
];
|
|
2500
2501
|
}
|
|
@@ -2504,72 +2505,72 @@ 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
|
|
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
|
-
(C) => g(
|
|
2514
|
+
function T(m) {
|
|
2515
|
+
return m.options.length === 0 || y(m) ? !1 : m.options.some(
|
|
2516
|
+
(C) => g(m, C.value) || w(m, C.value).length > 0
|
|
2516
2517
|
);
|
|
2517
2518
|
}
|
|
2518
|
-
function N(
|
|
2519
|
-
const C = new Set(
|
|
2520
|
-
if (
|
|
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
2524
|
const V = /* @__PURE__ */ new Map();
|
|
2524
|
-
for (const
|
|
2525
|
-
C.has(
|
|
2526
|
-
const j =
|
|
2527
|
-
({ category:
|
|
2525
|
+
for (const B of e.value)
|
|
2526
|
+
C.has(B.subject) && !B.inverted && V.set(B.subject, B.conditions);
|
|
2527
|
+
const j = m.coverSubject ? V.get(m.coverSubject) : void 0, W = /* @__PURE__ */ new Set(), G = t.value.flatMap(
|
|
2528
|
+
({ category: B, showByFeatureFlag: Y, isCategoryCover: ne, ...Q }) => {
|
|
2528
2529
|
const _e = Q.subject;
|
|
2529
|
-
if (!C.has(_e) ||
|
|
2530
|
-
|
|
2530
|
+
if (!C.has(_e) || W.has(_e)) return [];
|
|
2531
|
+
W.add(_e);
|
|
2531
2532
|
let ce;
|
|
2532
|
-
return V.has(_e) ? ce = V.get(_e) :
|
|
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
|
}
|
|
2536
2537
|
);
|
|
2537
|
-
r("update:model-value", [...U, ...
|
|
2538
|
+
r("update:model-value", [...U, ...G]);
|
|
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 w(
|
|
2545
|
-
const U =
|
|
2545
|
+
function w(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
|
|
2551
|
-
return c(
|
|
2551
|
+
function A(m, C) {
|
|
2552
|
+
return c(m, C) ? !1 : !F(m, C) && w(m, C).length > 0;
|
|
2552
2553
|
}
|
|
2553
|
-
function D(
|
|
2554
|
-
if (!
|
|
2554
|
+
function D(m, C) {
|
|
2555
|
+
if (!m.coverSubject || C === m.coverSubject) return;
|
|
2555
2556
|
const U = e.value.find(
|
|
2556
|
-
(V) => !V.inverted && V.subject ===
|
|
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
2563
|
const V = t.value.find((Q) => Q.subject === C);
|
|
2563
2564
|
if (!V) return;
|
|
2564
2565
|
const {
|
|
2565
2566
|
category: j,
|
|
2566
|
-
showByFeatureFlag:
|
|
2567
|
-
isCategoryCover:
|
|
2568
|
-
...
|
|
2569
|
-
} = V,
|
|
2567
|
+
showByFeatureFlag: W,
|
|
2568
|
+
isCategoryCover: G,
|
|
2569
|
+
...B
|
|
2570
|
+
} = V, Y = D(m, C), ne = e.value.filter((Q) => Q.subject !== C);
|
|
2570
2571
|
ne.push({
|
|
2571
|
-
...
|
|
2572
|
-
...
|
|
2572
|
+
...B,
|
|
2573
|
+
...Y !== void 0 && { conditions: Y }
|
|
2573
2574
|
}), r("update:model-value", ne);
|
|
2574
2575
|
} else
|
|
2575
2576
|
r(
|
|
@@ -2577,41 +2578,41 @@ function jo(e, t, n, r) {
|
|
|
2577
2578
|
e.value.filter((V) => V.subject !== C)
|
|
2578
2579
|
);
|
|
2579
2580
|
}
|
|
2580
|
-
function h(
|
|
2581
|
-
const U =
|
|
2581
|
+
function h(m, C) {
|
|
2582
|
+
const U = m.permissionActionsMap.get(C);
|
|
2582
2583
|
return U ? U.some((V) => V !== "manage") : !1;
|
|
2583
2584
|
}
|
|
2584
|
-
function S(
|
|
2585
|
-
const V =
|
|
2585
|
+
function S(m, C, U) {
|
|
2586
|
+
const V = m.selectedActionsMap.get(C);
|
|
2586
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
|
|
2595
|
-
const V =
|
|
2595
|
+
function I(m, C, U) {
|
|
2596
|
+
const V = m.permissionActionsMap.get(C);
|
|
2596
2597
|
return V ? V.includes(U) : !1;
|
|
2597
2598
|
}
|
|
2598
|
-
function v(
|
|
2599
|
-
const V = [...e.value], j = V.findIndex((
|
|
2599
|
+
function v(m, C, U) {
|
|
2600
|
+
const V = [...e.value], j = V.findIndex((G) => G.subject === m && !G.inverted);
|
|
2600
2601
|
if (U)
|
|
2601
2602
|
if (j >= 0) {
|
|
2602
|
-
const
|
|
2603
|
-
|
|
2603
|
+
const G = { ...V[j] }, B = new Set(G.actions);
|
|
2604
|
+
B.add(C), G.actions = Array.from(B), V[j] = G;
|
|
2604
2605
|
} else {
|
|
2605
|
-
const
|
|
2606
|
-
if (!
|
|
2606
|
+
const G = t.value.find((se) => se.subject === m);
|
|
2607
|
+
if (!G) return;
|
|
2607
2608
|
const {
|
|
2608
|
-
category:
|
|
2609
|
-
showByFeatureFlag:
|
|
2609
|
+
category: B,
|
|
2610
|
+
showByFeatureFlag: Y,
|
|
2610
2611
|
isCategoryCover: ne,
|
|
2611
2612
|
...Q
|
|
2612
|
-
} =
|
|
2613
|
-
(se) => se.options.some((fe) => fe.value ===
|
|
2614
|
-
), ce = _e ? D(_e,
|
|
2613
|
+
} = G, _e = u.value.find(
|
|
2614
|
+
(se) => se.options.some((fe) => fe.value === m)
|
|
2615
|
+
), ce = _e ? D(_e, m) : void 0;
|
|
2615
2616
|
V.push({
|
|
2616
2617
|
...Q,
|
|
2617
2618
|
actions: [C],
|
|
@@ -2619,91 +2620,91 @@ function jo(e, t, n, r) {
|
|
|
2619
2620
|
});
|
|
2620
2621
|
}
|
|
2621
2622
|
else if (j >= 0) {
|
|
2622
|
-
const
|
|
2623
|
-
|
|
2623
|
+
const G = { ...V[j] }, B = G.actions.filter((Y) => Y !== C);
|
|
2624
|
+
B.length === 0 ? V.splice(j, 1) : (G.actions = B, V[j] = G);
|
|
2624
2625
|
}
|
|
2625
|
-
const
|
|
2626
|
-
|
|
2626
|
+
const W = t.value.find((G) => G.subject === m);
|
|
2627
|
+
W && Mn(V, m, W.actions), r("update:model-value", V);
|
|
2627
2628
|
}
|
|
2628
|
-
function R(
|
|
2629
|
-
const U =
|
|
2630
|
-
(V) =>
|
|
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
|
-
(V) => S(
|
|
2634
|
+
(V) => S(m, V.value, C) || b(m, V.value, C)
|
|
2634
2635
|
);
|
|
2635
2636
|
}
|
|
2636
|
-
function
|
|
2637
|
-
const U =
|
|
2638
|
-
(j) =>
|
|
2637
|
+
function L(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
2642
|
const V = U.filter(
|
|
2642
|
-
(j) => S(
|
|
2643
|
+
(j) => S(m, j.value, C) || b(m, j.value, C)
|
|
2643
2644
|
).length;
|
|
2644
2645
|
return V > 0 && V < U.length;
|
|
2645
2646
|
}
|
|
2646
|
-
function
|
|
2647
|
+
function X(m, C, U) {
|
|
2647
2648
|
const V = [...e.value];
|
|
2648
|
-
for (const j of
|
|
2649
|
-
if (!
|
|
2650
|
-
const
|
|
2651
|
-
(
|
|
2649
|
+
for (const j of m.options) {
|
|
2650
|
+
if (!I(m, j.value, C)) continue;
|
|
2651
|
+
const W = j.value, G = V.findIndex(
|
|
2652
|
+
(Y) => Y.subject === W && !Y.inverted
|
|
2652
2653
|
);
|
|
2653
2654
|
if (U)
|
|
2654
|
-
if (
|
|
2655
|
-
const
|
|
2656
|
-
ne.add(C),
|
|
2655
|
+
if (G >= 0) {
|
|
2656
|
+
const Y = { ...V[G] }, ne = new Set(Y.actions);
|
|
2657
|
+
ne.add(C), Y.actions = Array.from(ne), V[G] = Y;
|
|
2657
2658
|
} else {
|
|
2658
|
-
const
|
|
2659
|
-
if (!
|
|
2659
|
+
const Y = t.value.find((fe) => fe.subject === W);
|
|
2660
|
+
if (!Y) continue;
|
|
2660
2661
|
const {
|
|
2661
2662
|
category: ne,
|
|
2662
2663
|
showByFeatureFlag: Q,
|
|
2663
2664
|
isCategoryCover: _e,
|
|
2664
2665
|
...ce
|
|
2665
|
-
} =
|
|
2666
|
+
} = Y, se = D(m, W);
|
|
2666
2667
|
V.push({
|
|
2667
2668
|
...ce,
|
|
2668
2669
|
actions: [C],
|
|
2669
2670
|
...se !== void 0 && { conditions: se }
|
|
2670
2671
|
});
|
|
2671
2672
|
}
|
|
2672
|
-
else if (
|
|
2673
|
-
const
|
|
2674
|
-
ne.length === 0 ? V.splice(
|
|
2673
|
+
else if (G >= 0) {
|
|
2674
|
+
const Y = { ...V[G] }, ne = Y.actions.filter((Q) => Q !== C);
|
|
2675
|
+
ne.length === 0 ? V.splice(G, 1) : (Y.actions = ne, V[G] = Y);
|
|
2675
2676
|
}
|
|
2676
|
-
const
|
|
2677
|
-
|
|
2677
|
+
const B = t.value.find((Y) => Y.subject === W);
|
|
2678
|
+
B && Mn(V, W, B.actions);
|
|
2678
2679
|
}
|
|
2679
2680
|
r("update:model-value", V);
|
|
2680
2681
|
}
|
|
2681
|
-
function x(
|
|
2682
|
-
const C = `permissionSet.actionLabels.${
|
|
2682
|
+
function x(m) {
|
|
2683
|
+
const C = `permissionSet.actionLabels.${m}`, U = Po[m] ?? m.charAt(0).toUpperCase() + m.slice(1);
|
|
2683
2684
|
return l(C, U);
|
|
2684
2685
|
}
|
|
2685
2686
|
return {
|
|
2686
2687
|
categoryGroups: u,
|
|
2687
2688
|
toggleCategory: i,
|
|
2688
|
-
isAllManageChecked:
|
|
2689
|
+
isAllManageChecked: y,
|
|
2689
2690
|
isAllManageIndeterminate: T,
|
|
2690
2691
|
toggleAllManage: N,
|
|
2691
2692
|
isManageChecked: F,
|
|
2692
|
-
isManageIndeterminate:
|
|
2693
|
+
isManageIndeterminate: A,
|
|
2693
2694
|
toggleManage: f,
|
|
2694
2695
|
hasNonManageActions: h,
|
|
2695
2696
|
isActionChecked: S,
|
|
2696
2697
|
isRowFullyCoveredByCover: c,
|
|
2697
2698
|
isActionCoveredByCover: b,
|
|
2698
|
-
permissionDefinesAction:
|
|
2699
|
+
permissionDefinesAction: I,
|
|
2699
2700
|
toggleAction: v,
|
|
2700
2701
|
isAllActionChecked: R,
|
|
2701
|
-
isAllActionIndeterminate:
|
|
2702
|
-
toggleAllAction:
|
|
2702
|
+
isAllActionIndeterminate: L,
|
|
2703
|
+
toggleAllAction: X,
|
|
2703
2704
|
actionLabel: x
|
|
2704
2705
|
};
|
|
2705
2706
|
}
|
|
2706
|
-
const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm-600" }, xo = { class: "mt-16" },
|
|
2707
|
+
const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm-600" }, xo = { class: "mt-16" }, Go = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Wo = ["onClick"], Zo = { class: "flex justify-center" }, Bo = { class: "flex items-center min-w-0 gap-8" }, Yo = ["title", "onClick"], Xo = { class: "flex justify-center" }, Ho = /* @__PURE__ */ Ae({
|
|
2707
2708
|
__name: "BasePermission",
|
|
2708
2709
|
props: {
|
|
2709
2710
|
modelValue: {
|
|
@@ -2725,17 +2726,17 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { 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 } = He(), a = z(() => [...
|
|
2729
|
-
categoryGroups:
|
|
2729
|
+
const n = e, r = t, { t: l } = He(), a = z(() => [...Wn, ...n.additionalPermissions]), {
|
|
2730
|
+
categoryGroups: d,
|
|
2730
2731
|
isAllManageChecked: u,
|
|
2731
2732
|
isAllManageIndeterminate: i,
|
|
2732
2733
|
toggleAllManage: g,
|
|
2733
|
-
isManageChecked:
|
|
2734
|
+
isManageChecked: y,
|
|
2734
2735
|
isManageIndeterminate: T,
|
|
2735
2736
|
toggleManage: N,
|
|
2736
2737
|
isActionChecked: F,
|
|
2737
2738
|
isRowFullyCoveredByCover: w,
|
|
2738
|
-
isActionCoveredByCover:
|
|
2739
|
+
isActionCoveredByCover: A,
|
|
2739
2740
|
permissionDefinesAction: D,
|
|
2740
2741
|
toggleAction: f,
|
|
2741
2742
|
isAllActionChecked: h,
|
|
@@ -2746,28 +2747,28 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2746
2747
|
en(n, "modelValue"),
|
|
2747
2748
|
a,
|
|
2748
2749
|
en(n, "excludedSubjects"),
|
|
2749
|
-
(R,
|
|
2750
|
+
(R, L) => r("update:model-value", L)
|
|
2750
2751
|
);
|
|
2751
|
-
function
|
|
2752
|
-
const
|
|
2753
|
-
return
|
|
2752
|
+
function I(R) {
|
|
2753
|
+
const L = R.selectedSubjects.length;
|
|
2754
|
+
return L === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: L });
|
|
2754
2755
|
}
|
|
2755
|
-
function v(R,
|
|
2756
|
-
return
|
|
2757
|
-
(
|
|
2756
|
+
function v(R, L) {
|
|
2757
|
+
return y(R, L) || w(R, L) ? !0 : R.actionColumns.some(
|
|
2758
|
+
(X) => D(R, L, X) && (F(R, L, X) || A(R, L, X))
|
|
2758
2759
|
);
|
|
2759
2760
|
}
|
|
2760
|
-
return (R,
|
|
2761
|
-
const
|
|
2761
|
+
return (R, L) => {
|
|
2762
|
+
const X = we("FmCheckbox");
|
|
2762
2763
|
return J(), ie("div", Uo, [
|
|
2763
|
-
(J(!0), ie(Re, null,
|
|
2764
|
+
(J(!0), ie(Re, null, Ee(H(d), (x) => (J(), Ne(Xt, {
|
|
2764
2765
|
key: x.category,
|
|
2765
|
-
subtitle:
|
|
2766
|
+
subtitle: I(x)
|
|
2766
2767
|
}, {
|
|
2767
|
-
title:
|
|
2768
|
+
title: de(() => [
|
|
2768
2769
|
ae("p", Vo, Oe(x.label), 1)
|
|
2769
2770
|
]),
|
|
2770
|
-
default:
|
|
2771
|
+
default: de(() => [
|
|
2771
2772
|
ae("div", xo, [
|
|
2772
2773
|
ae("div", {
|
|
2773
2774
|
class: "grid items-center px-12 py-8",
|
|
@@ -2775,12 +2776,12 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2775
2776
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2776
2777
|
})
|
|
2777
2778
|
}, [
|
|
2778
|
-
|
|
2779
|
-
ae("div",
|
|
2780
|
-
(J(!0), ie(Re, null,
|
|
2781
|
-
key: `header-${
|
|
2779
|
+
L[0] || (L[0] = ae("div", null, null, -1)),
|
|
2780
|
+
ae("div", Go, Oe(H(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(H(b)(
|
|
2784
|
+
}, Oe(H(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",
|
|
@@ -2790,80 +2791,80 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2790
2791
|
}, [
|
|
2791
2792
|
ae("div", {
|
|
2792
2793
|
class: "cursor-pointer font-semibold",
|
|
2793
|
-
onClick: (
|
|
2794
|
-
}, Oe(H(l)("team.labels.all")), 9,
|
|
2794
|
+
onClick: (m) => !e.disable && H(g)(x)
|
|
2795
|
+
}, Oe(H(l)("team.labels.all")), 9, Wo),
|
|
2795
2796
|
ae("div", Zo, [
|
|
2796
|
-
ue(
|
|
2797
|
+
ue(X, {
|
|
2797
2798
|
"model-value": H(u)(x),
|
|
2798
2799
|
indeterminate: H(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) => H(g)(x)
|
|
2804
2805
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2805
2806
|
]),
|
|
2806
|
-
(J(!0), ie(Re, null,
|
|
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": H(h)(x,
|
|
2812
|
-
indeterminate: H(S)(x,
|
|
2813
|
-
value:
|
|
2811
|
+
ue(X, {
|
|
2812
|
+
"model-value": H(h)(x, m),
|
|
2813
|
+
indeterminate: H(S)(x, m),
|
|
2814
|
+
value: m,
|
|
2814
2815
|
disabled: e.disable,
|
|
2815
2816
|
size: "sm",
|
|
2816
2817
|
dense: "",
|
|
2817
|
-
"onUpdate:modelValue": (C) => H(c)(x,
|
|
2818
|
+
"onUpdate:modelValue": (C) => H(c)(x, m, C)
|
|
2818
2819
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2819
2820
|
]))), 128))
|
|
2820
2821
|
], 4),
|
|
2821
|
-
|
|
2822
|
-
(J(!0), ie(Re, null,
|
|
2823
|
-
key:
|
|
2822
|
+
L[1] || (L[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
2827
|
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2827
2828
|
})
|
|
2828
2829
|
}, [
|
|
2829
|
-
ae("div",
|
|
2830
|
+
ae("div", Bo, [
|
|
2830
2831
|
ae("span", {
|
|
2831
2832
|
class: "block truncate cursor-pointer",
|
|
2832
|
-
title:
|
|
2833
|
-
onClick: (C) => !e.disable && !H(w)(x,
|
|
2834
|
-
}, Oe(
|
|
2835
|
-
Se(R.$slots, `checkbox-${
|
|
2836
|
-
option:
|
|
2837
|
-
isEffectiveSelected: v(x,
|
|
2838
|
-
isCoveredByCover: H(w)(x,
|
|
2833
|
+
title: m.label,
|
|
2834
|
+
onClick: (C) => !e.disable && !H(w)(x, m.value) && H(N)(x, m.value, !H(y)(x, m.value))
|
|
2835
|
+
}, Oe(m.label), 9, Yo),
|
|
2836
|
+
Se(R.$slots, `checkbox-${m.value}-append`, {
|
|
2837
|
+
option: m,
|
|
2838
|
+
isEffectiveSelected: v(x, m.value),
|
|
2839
|
+
isCoveredByCover: H(w)(x, m.value) || x.actionColumns.some((C) => H(A)(x, m.value, C))
|
|
2839
2840
|
}),
|
|
2840
|
-
Se(R.$slots, `checkbox-${
|
|
2841
|
-
option:
|
|
2842
|
-
isEffectiveSelected: v(x,
|
|
2843
|
-
isCoveredByCover: H(w)(x,
|
|
2841
|
+
Se(R.$slots, `checkbox-${m.value}-icon`, {
|
|
2842
|
+
option: m,
|
|
2843
|
+
isEffectiveSelected: v(x, m.value),
|
|
2844
|
+
isCoveredByCover: H(w)(x, m.value) || x.actionColumns.some((C) => H(A)(x, m.value, C))
|
|
2844
2845
|
})
|
|
2845
2846
|
]),
|
|
2846
|
-
ae("div",
|
|
2847
|
-
ue(
|
|
2848
|
-
"model-value": H(
|
|
2849
|
-
value:
|
|
2850
|
-
disabled: e.disable || H(w)(x,
|
|
2851
|
-
indeterminate: H(T)(x,
|
|
2847
|
+
ae("div", Xo, [
|
|
2848
|
+
ue(X, {
|
|
2849
|
+
"model-value": H(y)(x, m.value) || H(w)(x, m.value),
|
|
2850
|
+
value: m.value,
|
|
2851
|
+
disabled: e.disable || H(w)(x, m.value),
|
|
2852
|
+
indeterminate: H(T)(x, m.value),
|
|
2852
2853
|
size: "sm",
|
|
2853
|
-
"onUpdate:modelValue": (C) => H(N)(x,
|
|
2854
|
+
"onUpdate:modelValue": (C) => H(N)(x, m.value, C)
|
|
2854
2855
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2855
2856
|
]),
|
|
2856
|
-
(J(!0), ie(Re, null,
|
|
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
|
-
H(D)(x,
|
|
2861
|
+
H(D)(x, m.value, C) ? (J(), Ne(X, {
|
|
2861
2862
|
key: 0,
|
|
2862
|
-
"model-value": H(F)(x,
|
|
2863
|
+
"model-value": H(F)(x, m.value, C) || H(A)(x, m.value, C),
|
|
2863
2864
|
value: C,
|
|
2864
|
-
disabled: e.disable || H(
|
|
2865
|
+
disabled: e.disable || H(A)(x, m.value, C),
|
|
2865
2866
|
size: "sm",
|
|
2866
|
-
"onUpdate:modelValue": (U) => H(f)(
|
|
2867
|
+
"onUpdate:modelValue": (U) => H(f)(m.value, C, U)
|
|
2867
2868
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Me("", !0)
|
|
2868
2869
|
]))), 128))
|
|
2869
2870
|
], 4))), 128))
|
|
@@ -2880,7 +2881,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2880
2881
|
}, Ko = {
|
|
2881
2882
|
key: 0,
|
|
2882
2883
|
class: "q-mr-xs text-red col"
|
|
2883
|
-
}, zo = { class: "form-input" }, Qo = /* @__PURE__ */
|
|
2884
|
+
}, zo = { class: "form-input" }, Qo = /* @__PURE__ */ Ae({
|
|
2884
2885
|
__name: "AppForm",
|
|
2885
2886
|
props: {
|
|
2886
2887
|
title: {
|
|
@@ -2916,7 +2917,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2916
2917
|
}), qo = { class: "col flex items-center" }, ea = {
|
|
2917
2918
|
key: 1,
|
|
2918
2919
|
class: "q-pa-sm form-error-message text-error"
|
|
2919
|
-
}, ir = /* @__PURE__ */
|
|
2920
|
+
}, ir = /* @__PURE__ */ Ae({
|
|
2920
2921
|
__name: "CheckboxInput",
|
|
2921
2922
|
props: {
|
|
2922
2923
|
options: {
|
|
@@ -2974,35 +2975,35 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { 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 } = He(), a = rt(!1),
|
|
2978
|
-
() => n.modelValue.filter((
|
|
2978
|
+
const n = e, r = t, { t: l } = He(), a = rt(!1), d = vr(), u = z(() => n.modelValue.length < n.min ? `Min selection ${n.min}` : n.max !== void 0 && n.modelValue.length > n.max ? `Max selection ${n.max}` : !0), i = `checkbox-${Ar(6)}`, g = z(() => u.value !== !0), y = z(
|
|
2979
|
+
() => n.modelValue.filter((A) => n.options.some((D) => D.value === A))
|
|
2979
2980
|
), T = z(
|
|
2980
2981
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2981
|
-
), N = z(() => n.options.length > 0 && n.options.length ===
|
|
2982
|
+
), N = z(() => n.options.length > 0 && n.options.length === y.value.length);
|
|
2982
2983
|
function F() {
|
|
2983
|
-
const
|
|
2984
|
+
const A = n.modelValue.filter((D) => !y.value.includes(D));
|
|
2984
2985
|
if (N.value === !0)
|
|
2985
|
-
r("update:model-value",
|
|
2986
|
+
r("update:model-value", A);
|
|
2986
2987
|
else {
|
|
2987
2988
|
const D = n.includeDisabledOptionsWhenSelectAll ? n.options.map((f) => f.value) : n.options.filter((f) => !f.disabled).map((f) => f.value);
|
|
2988
|
-
r("update:model-value", [...
|
|
2989
|
+
r("update:model-value", [...A, ...D]);
|
|
2989
2990
|
}
|
|
2990
2991
|
}
|
|
2991
|
-
function w(
|
|
2992
|
-
let f =
|
|
2993
|
-
D ? f.every((h) => h !==
|
|
2992
|
+
function w(A, D) {
|
|
2993
|
+
let f = It(n.modelValue);
|
|
2994
|
+
D ? f.every((h) => h !== A) && f.push(A) : f = f.filter((h) => h !== A), r("update:model-value", f);
|
|
2994
2995
|
}
|
|
2995
|
-
return (
|
|
2996
|
+
return (A, D) => {
|
|
2996
2997
|
const f = we("FmCheckbox");
|
|
2997
2998
|
return J(), Ne(Qo, {
|
|
2998
2999
|
id: i,
|
|
2999
3000
|
title: e.title,
|
|
3000
3001
|
required: !1
|
|
3001
3002
|
}, {
|
|
3002
|
-
top:
|
|
3003
|
-
Se(
|
|
3003
|
+
top: de(() => [
|
|
3004
|
+
Se(A.$slots, "top")
|
|
3004
3005
|
]),
|
|
3005
|
-
default:
|
|
3006
|
+
default: de(() => [
|
|
3006
3007
|
n.showAllToggle ? (J(), Ne(f, {
|
|
3007
3008
|
key: 0,
|
|
3008
3009
|
"model-value": N.value,
|
|
@@ -3014,7 +3015,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { 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
|
-
(J(!0), ie(Re, null,
|
|
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" : "")
|
|
@@ -3031,28 +3032,28 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3031
3032
|
value: h.label,
|
|
3032
3033
|
"onUpdate:modelValue": (c) => w(h.value, c)
|
|
3033
3034
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
3034
|
-
Se(
|
|
3035
|
+
Se(A.$slots, `checkbox-${h.key || h.value}-append`, {
|
|
3035
3036
|
option: h,
|
|
3036
3037
|
selected: e.modelValue.includes(h.value)
|
|
3037
3038
|
})
|
|
3038
3039
|
]),
|
|
3039
|
-
H(
|
|
3040
|
+
H(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
|
}, [
|
|
3043
|
-
Se(
|
|
3044
|
+
Se(A.$slots, `checkbox-${h.key || h.value}-end`, {
|
|
3044
3045
|
option: h,
|
|
3045
3046
|
value: e.modelValue.includes(h.value),
|
|
3046
3047
|
disable: e.disable || h.disabled
|
|
3047
3048
|
})
|
|
3048
3049
|
], 2)) : Me("", !0)
|
|
3049
3050
|
], 2),
|
|
3050
|
-
H(
|
|
3051
|
+
H(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}`)
|
|
3054
3055
|
}, [
|
|
3055
|
-
Se(
|
|
3056
|
+
Se(A.$slots, `checkbox-${h.key || h.value}-bottom`, {
|
|
3056
3057
|
option: h,
|
|
3057
3058
|
disable: e.disable || h.disabled,
|
|
3058
3059
|
value: e.modelValue.includes(h.value)
|
|
@@ -3065,7 +3066,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3065
3066
|
}, 8, ["title"]);
|
|
3066
3067
|
};
|
|
3067
3068
|
}
|
|
3068
|
-
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture", Dn = /* @__PURE__ */
|
|
3069
|
+
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture", Dn = /* @__PURE__ */ Ae({
|
|
3069
3070
|
__name: "ConditionPermission",
|
|
3070
3071
|
props: {
|
|
3071
3072
|
modelValue: {
|
|
@@ -3095,24 +3096,24 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3095
3096
|
disabled: !!n.modelValue && n.options.length > n.modelValue.length
|
|
3096
3097
|
},
|
|
3097
3098
|
...n.options.filter(
|
|
3098
|
-
(
|
|
3099
|
+
(y) => y.label.toLocaleLowerCase().includes(g.value.toLocaleLowerCase())
|
|
3099
3100
|
)
|
|
3100
|
-
]),
|
|
3101
|
-
const
|
|
3102
|
-
return
|
|
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;
|
|
3103
|
+
return y === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: y });
|
|
3103
3104
|
});
|
|
3104
|
-
function i(
|
|
3105
|
-
const T =
|
|
3106
|
-
r("update:model-value", T ? null :
|
|
3105
|
+
function i(y) {
|
|
3106
|
+
const T = y.length === a.value.length;
|
|
3107
|
+
r("update:model-value", T ? null : y.filter((N) => N !== ht));
|
|
3107
3108
|
}
|
|
3108
3109
|
const g = rt("");
|
|
3109
|
-
return (
|
|
3110
|
+
return (y, T) => {
|
|
3110
3111
|
const N = we("fm-search");
|
|
3111
|
-
return J(), Ne(
|
|
3112
|
-
title:
|
|
3112
|
+
return J(), Ne(Xt, { subtitle: u.value }, {
|
|
3113
|
+
title: de(() => [
|
|
3113
3114
|
ae("p", ta, Oe(H(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
3114
3115
|
]),
|
|
3115
|
-
default:
|
|
3116
|
+
default: de(() => [
|
|
3116
3117
|
e.options.length > 1 ? (J(), Ne(N, {
|
|
3117
3118
|
key: 0,
|
|
3118
3119
|
modelValue: g.value,
|
|
@@ -3121,7 +3122,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3121
3122
|
placeholder: H(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,
|
|
@@ -3131,10 +3132,10 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3131
3132
|
class: "mt-16",
|
|
3132
3133
|
"onUpdate:modelValue": i
|
|
3133
3134
|
}, et({ _: 2 }, [
|
|
3134
|
-
|
|
3135
|
+
Ee(a.value, (F) => ({
|
|
3135
3136
|
name: `checkbox-${F.value}-append`,
|
|
3136
|
-
fn:
|
|
3137
|
-
Se(
|
|
3137
|
+
fn: de(({ option: w }) => [
|
|
3138
|
+
Se(y.$slots, `checkbox-${F.value}-append`, { option: w })
|
|
3138
3139
|
])
|
|
3139
3140
|
}))
|
|
3140
3141
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3143,7 +3144,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3143
3144
|
}, 8, ["subtitle"]);
|
|
3144
3145
|
};
|
|
3145
3146
|
}
|
|
3146
|
-
}), na = { class: "fm-typo-en-title-sm-600" }, bt = "includedNewRole", ra = /* @__PURE__ */
|
|
3147
|
+
}), na = { class: "fm-typo-en-title-sm-600" }, bt = "includedNewRole", ra = /* @__PURE__ */ Ae({
|
|
3147
3148
|
__name: "PosRolePermission",
|
|
3148
3149
|
props: {
|
|
3149
3150
|
modelValue: {
|
|
@@ -3173,27 +3174,27 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3173
3174
|
value: bt,
|
|
3174
3175
|
disabled: !!n.modelValue && n.roles.length > n.modelValue.length
|
|
3175
3176
|
},
|
|
3176
|
-
...n.roles.map((
|
|
3177
|
-
label:
|
|
3178
|
-
value:
|
|
3179
|
-
disabled: !!g &&
|
|
3177
|
+
...n.roles.map((y) => ({
|
|
3178
|
+
label: y.name,
|
|
3179
|
+
value: y._id,
|
|
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
|
-
const
|
|
3188
|
-
r("update:model-value",
|
|
3188
|
+
const y = g.length === a.value.length;
|
|
3189
|
+
r("update:model-value", y ? null : g.filter((T) => T !== bt));
|
|
3189
3190
|
}
|
|
3190
|
-
return (g,
|
|
3191
|
-
title:
|
|
3191
|
+
return (g, y) => (J(), Ne(Xt, { subtitle: u.value }, {
|
|
3192
|
+
title: de(() => [
|
|
3192
3193
|
ae("p", na, Oe(H(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,
|
|
@@ -3202,9 +3203,9 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3202
3203
|
class: "mt-16",
|
|
3203
3204
|
"onUpdate:modelValue": i
|
|
3204
3205
|
}, et({ _: 2 }, [
|
|
3205
|
-
|
|
3206
|
+
Ee(a.value, (T) => ({
|
|
3206
3207
|
name: `checkbox-${T.value}-append`,
|
|
3207
|
-
fn:
|
|
3208
|
+
fn: de(({ option: N }) => [
|
|
3208
3209
|
Se(g.$slots, `checkbox-${T.value}-append`, { option: N })
|
|
3209
3210
|
])
|
|
3210
3211
|
}))
|
|
@@ -3223,7 +3224,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3223
3224
|
}, aa = {
|
|
3224
3225
|
key: 0,
|
|
3225
3226
|
class: "ml-32"
|
|
3226
|
-
}, Fn = /* @__PURE__ */
|
|
3227
|
+
}, Fn = /* @__PURE__ */ Ae({
|
|
3227
3228
|
__name: "PortalConditionForm",
|
|
3228
3229
|
props: {
|
|
3229
3230
|
entry: {},
|
|
@@ -3242,7 +3243,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3242
3243
|
setup(e, { emit: t }) {
|
|
3243
3244
|
const n = t, { t: r } = He();
|
|
3244
3245
|
return (l, a) => {
|
|
3245
|
-
const
|
|
3246
|
+
const d = we("FmRadio"), u = we("FmRadioGroup");
|
|
3246
3247
|
return J(), Ne(Cr, {
|
|
3247
3248
|
title: e.title,
|
|
3248
3249
|
builders: e.builders,
|
|
@@ -3253,16 +3254,16 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { 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
|
+
section: de(({ builder: i }) => [
|
|
3257
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
3268
|
label: H(r)("team.memberForm.permissions.conditionCover.inherit", {
|
|
3268
3269
|
cover: e.coverOverride.coverLabel(e.subject)
|
|
@@ -3273,7 +3274,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
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
3279
|
label: H(r)("team.memberForm.permissions.conditionCover.custom")
|
|
3279
3280
|
}, null, 8, ["label"])
|
|
@@ -3302,11 +3303,11 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3302
3303
|
}
|
|
3303
3304
|
}), la = {
|
|
3304
3305
|
async readWarehouses() {
|
|
3305
|
-
return
|
|
3306
|
+
return kr(await Rr().get("/warehouses"));
|
|
3306
3307
|
}
|
|
3307
3308
|
};
|
|
3308
3309
|
function Pn(e, t) {
|
|
3309
|
-
return Zn(e,
|
|
3310
|
+
return Zn(e, Bn).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,27 +3327,27 @@ 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
|
-
const g = u.some((
|
|
3338
|
-
if (u = u.filter((
|
|
3339
|
-
const
|
|
3338
|
+
const g = u.some((y) => y.subject === i && y.inverted);
|
|
3339
|
+
if (u = u.filter((y) => !(y.subject === i && y.inverted)), !g && !d.has(i)) {
|
|
3340
|
+
const y = t.find(
|
|
3340
3341
|
(N) => N.subject === i && !N.inverted
|
|
3341
3342
|
), T = r(i);
|
|
3342
|
-
T &&
|
|
3343
|
+
T && y && u.push(Un(T, y.actions, y.conditions));
|
|
3343
3344
|
}
|
|
3344
3345
|
}
|
|
3345
3346
|
for (const i of a) {
|
|
3346
3347
|
if (!l.has(i)) continue;
|
|
3347
|
-
const g = e.find((w) => w.subject === i && !w.inverted),
|
|
3348
|
-
if (!g || !
|
|
3349
|
-
const T = new Set(g.actions), N = new Set(
|
|
3348
|
+
const g = e.find((w) => w.subject === i && !w.inverted), y = t.find((w) => w.subject === i && !w.inverted);
|
|
3349
|
+
if (!g || !y) continue;
|
|
3350
|
+
const T = new Set(g.actions), N = new Set(y.actions);
|
|
3350
3351
|
if (T.size === N.size && [...T].every((w) => N.has(w)))
|
|
3351
3352
|
continue;
|
|
3352
3353
|
const F = u.findIndex((w) => w.subject === i && !w.inverted);
|
|
@@ -3382,34 +3383,34 @@ 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) {
|
|
3389
3390
|
return `${e}::${t.builderKey}`;
|
|
3390
3391
|
}
|
|
3391
|
-
function
|
|
3392
|
+
function Ge(e) {
|
|
3392
3393
|
try {
|
|
3393
3394
|
return e.conditions ? JSON.parse(e.conditions) : void 0;
|
|
3394
3395
|
} catch {
|
|
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
|
-
const n =
|
|
3406
|
+
function Bt(e, t) {
|
|
3407
|
+
const n = Ge(e);
|
|
3407
3408
|
return Dt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3408
3409
|
}
|
|
3409
3410
|
function Vn(e, t, n) {
|
|
3410
3411
|
return {
|
|
3411
|
-
...
|
|
3412
|
-
...tt(
|
|
3412
|
+
...Bt(e, n),
|
|
3413
|
+
...tt(Ge(t), n)
|
|
3413
3414
|
};
|
|
3414
3415
|
}
|
|
3415
3416
|
function fa(e, t, n) {
|
|
@@ -3420,61 +3421,61 @@ 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
|
-
var
|
|
3424
|
+
function d(c) {
|
|
3425
|
+
var I;
|
|
3425
3426
|
const b = l(c);
|
|
3426
|
-
return b ? (
|
|
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
|
-
return tt(
|
|
3433
|
+
return tt(Ge(c), b);
|
|
3433
3434
|
}
|
|
3434
3435
|
function g(c, b) {
|
|
3435
3436
|
var R;
|
|
3436
3437
|
if (!(((R = b.appliesToActions) == null ? void 0 : R.call(b, c.actions)) ?? !0)) return !1;
|
|
3437
|
-
const
|
|
3438
|
-
if (!
|
|
3439
|
-
const v = u(
|
|
3438
|
+
const I = l(c.subject);
|
|
3439
|
+
if (!I) return !1;
|
|
3440
|
+
const v = u(I);
|
|
3440
3441
|
return v ? Object.keys(i(v, b)).length > 0 : !1;
|
|
3441
3442
|
}
|
|
3442
|
-
function
|
|
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
|
|
3446
|
-
if (
|
|
3447
|
-
const
|
|
3448
|
-
if (JSON.stringify(
|
|
3446
|
+
const I = e.value[c.index], v = l(c.subject), R = v ? u(v) : void 0;
|
|
3447
|
+
if (I && R) {
|
|
3448
|
+
const L = tt(Ge(I), b), X = i(R, b);
|
|
3449
|
+
if (JSON.stringify(L) === JSON.stringify(X)) return "inherit";
|
|
3449
3450
|
}
|
|
3450
3451
|
return "custom";
|
|
3451
3452
|
}
|
|
3452
|
-
function T(c, b,
|
|
3453
|
+
function T(c, b, I) {
|
|
3453
3454
|
if (!b.summarizeForm) return;
|
|
3454
3455
|
const v = l(c.subject);
|
|
3455
3456
|
if (!v) return;
|
|
3456
3457
|
const R = u(v);
|
|
3457
3458
|
if (!R) return;
|
|
3458
|
-
const
|
|
3459
|
-
return b.summarizeForm(
|
|
3459
|
+
const L = b.fromCondition(i(R, b));
|
|
3460
|
+
return b.summarizeForm(L, { timeZone: I });
|
|
3460
3461
|
}
|
|
3461
3462
|
function N(c, b) {
|
|
3462
3463
|
if (c.index === null) return;
|
|
3463
|
-
const
|
|
3464
|
-
if (
|
|
3465
|
-
|
|
3464
|
+
const I = [...e.value], v = { ...I[c.index] }, R = Bt(v, b), L = Object.keys(R).length === 0, X = l(c.subject), x = X ? u(X) : void 0, m = x ? Mt(x, v) : !1;
|
|
3465
|
+
if (L && m)
|
|
3466
|
+
I.splice(c.index, 1);
|
|
3466
3467
|
else if (x) {
|
|
3467
3468
|
const C = Vn(v, x, b);
|
|
3468
|
-
Object.keys(C).length === 0 ? delete v.conditions : v.conditions = JSON.stringify(C),
|
|
3469
|
+
Object.keys(C).length === 0 ? delete v.conditions : v.conditions = JSON.stringify(C), I[c.index] = v;
|
|
3469
3470
|
} else
|
|
3470
|
-
|
|
3471
|
-
n(
|
|
3471
|
+
L ? delete v.conditions : v.conditions = JSON.stringify(R), I[c.index] = v;
|
|
3472
|
+
n(I);
|
|
3472
3473
|
}
|
|
3473
|
-
function F(c, b,
|
|
3474
|
+
function F(c, b, I) {
|
|
3474
3475
|
const v = gt(c.subject, b);
|
|
3475
|
-
if (
|
|
3476
|
-
const
|
|
3477
|
-
|
|
3476
|
+
if (I === "inherit") {
|
|
3477
|
+
const L = new Set(r.value);
|
|
3478
|
+
L.delete(v), r.value = L, N(c, b);
|
|
3478
3479
|
return;
|
|
3479
3480
|
}
|
|
3480
3481
|
const R = new Set(r.value);
|
|
@@ -3485,162 +3486,162 @@ function fa(e, t, n) {
|
|
|
3485
3486
|
function w(c) {
|
|
3486
3487
|
const b = l(c);
|
|
3487
3488
|
if (!b) return [];
|
|
3488
|
-
const
|
|
3489
|
-
return (
|
|
3490
|
-
}
|
|
3491
|
-
function
|
|
3492
|
-
return e.value.filter((
|
|
3493
|
-
if (
|
|
3494
|
-
const v =
|
|
3495
|
-
return v === c || l(v) !== c ? !1 : r.value.has(gt(v, b)) ? !0 : Object.keys(tt(
|
|
3489
|
+
const I = u(b);
|
|
3490
|
+
return (I == null ? void 0 : I.actions) ?? [];
|
|
3491
|
+
}
|
|
3492
|
+
function A(c, b) {
|
|
3493
|
+
return e.value.filter((I) => {
|
|
3494
|
+
if (I.inverted) return !1;
|
|
3495
|
+
const v = I.subject;
|
|
3496
|
+
return v === c || l(v) !== c ? !1 : r.value.has(gt(v, b)) ? !0 : Object.keys(tt(Ge(I), b)).length > 0;
|
|
3496
3497
|
});
|
|
3497
3498
|
}
|
|
3498
3499
|
function D(c, b) {
|
|
3499
|
-
const
|
|
3500
|
+
const I = `::${b.builderKey}`, v = new Set(r.value);
|
|
3500
3501
|
for (const R of v) {
|
|
3501
|
-
if (!R.endsWith(
|
|
3502
|
-
const
|
|
3503
|
-
l(
|
|
3502
|
+
if (!R.endsWith(I)) continue;
|
|
3503
|
+
const L = R.slice(0, -I.length);
|
|
3504
|
+
l(L) === c && v.delete(R);
|
|
3504
3505
|
}
|
|
3505
3506
|
r.value = v;
|
|
3506
3507
|
}
|
|
3507
|
-
function f(c, b,
|
|
3508
|
+
function f(c, b, I) {
|
|
3508
3509
|
const v = b.subject;
|
|
3509
|
-
return c.reduce((R,
|
|
3510
|
-
if (
|
|
3511
|
-
return R.push(
|
|
3512
|
-
const
|
|
3513
|
-
if (
|
|
3514
|
-
return R.push(
|
|
3515
|
-
if (Mt(b,
|
|
3510
|
+
return c.reduce((R, L) => {
|
|
3511
|
+
if (L.inverted)
|
|
3512
|
+
return R.push(L), R;
|
|
3513
|
+
const X = L.subject;
|
|
3514
|
+
if (X === v || l(X) !== v)
|
|
3515
|
+
return R.push(L), R;
|
|
3516
|
+
if (Mt(b, L) && Object.keys(Bt(L, I)).length === 0)
|
|
3516
3517
|
return R;
|
|
3517
|
-
const
|
|
3518
|
-
if (Object.keys(
|
|
3519
|
-
const { conditions: C, ...U } =
|
|
3518
|
+
const m = Vn(L, b, I);
|
|
3519
|
+
if (Object.keys(m).length === 0) {
|
|
3520
|
+
const { conditions: C, ...U } = L;
|
|
3520
3521
|
R.push(U);
|
|
3521
3522
|
} else
|
|
3522
|
-
R.push({ ...
|
|
3523
|
+
R.push({ ...L, conditions: JSON.stringify(m) });
|
|
3523
3524
|
return R;
|
|
3524
3525
|
}, []);
|
|
3525
3526
|
}
|
|
3526
|
-
function h(c, b,
|
|
3527
|
+
function h(c, b, I, v = {}) {
|
|
3527
3528
|
var V;
|
|
3528
3529
|
const R = [...e.value];
|
|
3529
|
-
let
|
|
3530
|
-
const
|
|
3531
|
-
if (
|
|
3532
|
-
if (
|
|
3533
|
-
const j = R.findIndex((
|
|
3530
|
+
let L = c.index;
|
|
3531
|
+
const X = b.toCondition(I), x = Object.keys(X).length > 0;
|
|
3532
|
+
if (L === null && !x && !v.forceCreateRule) return;
|
|
3533
|
+
if (L === null) {
|
|
3534
|
+
const j = R.findIndex((W) => !W.inverted && W.subject === c.subject);
|
|
3534
3535
|
if (j !== -1)
|
|
3535
|
-
|
|
3536
|
+
L = j;
|
|
3536
3537
|
else {
|
|
3537
|
-
const
|
|
3538
|
-
if (!
|
|
3538
|
+
const W = t.value.find((Q) => Q.subject === c.subject);
|
|
3539
|
+
if (!W) return;
|
|
3539
3540
|
const {
|
|
3540
|
-
category:
|
|
3541
|
-
showByFeatureFlag:
|
|
3542
|
-
isCategoryCover:
|
|
3541
|
+
category: G,
|
|
3542
|
+
showByFeatureFlag: B,
|
|
3543
|
+
isCategoryCover: Y,
|
|
3543
3544
|
...ne
|
|
3544
|
-
} =
|
|
3545
|
+
} = W;
|
|
3545
3546
|
R.push({
|
|
3546
3547
|
...ne,
|
|
3547
3548
|
actions: c.actions.length > 0 ? c.actions : ne.actions
|
|
3548
|
-
}),
|
|
3549
|
+
}), L = R.length - 1;
|
|
3549
3550
|
}
|
|
3550
3551
|
}
|
|
3551
|
-
const
|
|
3552
|
-
|
|
3553
|
-
.../* @__PURE__ */ new Set([...
|
|
3552
|
+
const m = { ...R[L] };
|
|
3553
|
+
m.actions = [
|
|
3554
|
+
.../* @__PURE__ */ new Set([...m.actions, ...c.actions])
|
|
3554
3555
|
];
|
|
3555
|
-
const C =
|
|
3556
|
-
if (Object.keys(U).length === 0 ? delete
|
|
3557
|
-
const j =
|
|
3558
|
-
var
|
|
3559
|
-
D(c.subject, b), n(f(R,
|
|
3560
|
-
},
|
|
3561
|
-
var
|
|
3562
|
-
n(R), (
|
|
3556
|
+
const C = Ge(m), U = Dt(C, [{ builder: b, formValue: I }]);
|
|
3557
|
+
if (Object.keys(U).length === 0 ? delete m.conditions : m.conditions = JSON.stringify(U), R[L] = m, sn(c.subject, t.value)) {
|
|
3558
|
+
const j = A(c.subject, b), W = () => {
|
|
3559
|
+
var B;
|
|
3560
|
+
D(c.subject, b), n(f(R, m, b)), (B = v.afterCommit) == null || B.call(v);
|
|
3561
|
+
}, G = () => {
|
|
3562
|
+
var B;
|
|
3563
|
+
n(R), (B = v.afterCommit) == null || B.call(v);
|
|
3563
3564
|
};
|
|
3564
3565
|
if (j.length === 0) {
|
|
3565
|
-
|
|
3566
|
+
W();
|
|
3566
3567
|
return;
|
|
3567
3568
|
}
|
|
3568
|
-
v.onOverridesConflict ? v.onOverridesConflict({ override:
|
|
3569
|
+
v.onOverridesConflict ? v.onOverridesConflict({ override: W, keep: G }) : G();
|
|
3569
3570
|
return;
|
|
3570
3571
|
}
|
|
3571
3572
|
n(R), (V = v.afterCommit) == null || V.call(v);
|
|
3572
3573
|
}
|
|
3573
|
-
function S(c, b,
|
|
3574
|
+
function S(c, b, I = {}) {
|
|
3574
3575
|
if (b.length === 0) return;
|
|
3575
3576
|
const v = [...e.value];
|
|
3576
|
-
let R = v.findIndex((j) => !j.inverted && j.subject === c.subject),
|
|
3577
|
+
let R = v.findIndex((j) => !j.inverted && j.subject === c.subject), L = R === -1 ? void 0 : { ...v[R] }, X = Ge(L ?? {}) ?? {};
|
|
3577
3578
|
for (const j of b) {
|
|
3578
|
-
const
|
|
3579
|
-
|
|
3579
|
+
const W = j.mode === "inherit" ? j.builder.fromCondition(void 0) : j.form;
|
|
3580
|
+
X = Dt(X, [{ builder: j.builder, formValue: W }]);
|
|
3580
3581
|
}
|
|
3581
3582
|
const x = b.some((j) => j.mode === "custom");
|
|
3582
|
-
if (!
|
|
3583
|
+
if (!L && (Object.keys(X).length > 0 || x)) {
|
|
3583
3584
|
const j = t.value.find((ne) => ne.subject === c.subject);
|
|
3584
3585
|
if (!j) return;
|
|
3585
3586
|
const {
|
|
3586
|
-
category:
|
|
3587
|
-
showByFeatureFlag:
|
|
3588
|
-
isCategoryCover:
|
|
3589
|
-
...
|
|
3587
|
+
category: W,
|
|
3588
|
+
showByFeatureFlag: G,
|
|
3589
|
+
isCategoryCover: B,
|
|
3590
|
+
...Y
|
|
3590
3591
|
} = j;
|
|
3591
|
-
|
|
3592
|
-
...
|
|
3593
|
-
actions: c.actions.length > 0 ? c.actions :
|
|
3594
|
-
}, v.push(
|
|
3592
|
+
L = {
|
|
3593
|
+
...Y,
|
|
3594
|
+
actions: c.actions.length > 0 ? c.actions : Y.actions
|
|
3595
|
+
}, v.push(L), R = v.length - 1;
|
|
3595
3596
|
}
|
|
3596
|
-
if (
|
|
3597
|
-
const j = l(c.subject),
|
|
3598
|
-
if (!x && Object.keys(
|
|
3599
|
-
v.splice(R, 1),
|
|
3597
|
+
if (L) {
|
|
3598
|
+
const j = l(c.subject), W = j ? u(j) : void 0;
|
|
3599
|
+
if (!x && Object.keys(X).length === 0 && !!W && Mt(W, L))
|
|
3600
|
+
v.splice(R, 1), L = void 0;
|
|
3600
3601
|
else {
|
|
3601
|
-
if (
|
|
3602
|
-
.../* @__PURE__ */ new Set([...
|
|
3603
|
-
],
|
|
3604
|
-
for (const
|
|
3605
|
-
|
|
3606
|
-
...
|
|
3607
|
-
...tt(
|
|
3602
|
+
if (L.actions = [
|
|
3603
|
+
.../* @__PURE__ */ new Set([...L.actions, ...c.actions])
|
|
3604
|
+
], W)
|
|
3605
|
+
for (const B of b)
|
|
3606
|
+
B.mode === "inherit" && (X = {
|
|
3607
|
+
...X,
|
|
3608
|
+
...tt(Ge(W), B.builder)
|
|
3608
3609
|
});
|
|
3609
|
-
Object.keys(
|
|
3610
|
+
Object.keys(X).length === 0 ? delete L.conditions : L.conditions = JSON.stringify(X), v[R] = L;
|
|
3610
3611
|
}
|
|
3611
3612
|
}
|
|
3612
|
-
const
|
|
3613
|
+
const m = () => {
|
|
3613
3614
|
const j = new Set(r.value);
|
|
3614
|
-
for (const
|
|
3615
|
-
const
|
|
3616
|
-
|
|
3615
|
+
for (const W of b) {
|
|
3616
|
+
const G = gt(c.subject, W.builder);
|
|
3617
|
+
W.mode === "custom" ? j.add(G) : j.delete(G);
|
|
3617
3618
|
}
|
|
3618
3619
|
r.value = j;
|
|
3619
3620
|
}, C = (j) => {
|
|
3620
|
-
var
|
|
3621
|
-
|
|
3621
|
+
var W;
|
|
3622
|
+
m(), n(j), (W = I.afterCommit) == null || W.call(I);
|
|
3622
3623
|
};
|
|
3623
|
-
if (!sn(c.subject, t.value) || !
|
|
3624
|
+
if (!sn(c.subject, t.value) || !L) {
|
|
3624
3625
|
C(v);
|
|
3625
3626
|
return;
|
|
3626
3627
|
}
|
|
3627
|
-
const U = b.map((j) => j.builder).filter((j) =>
|
|
3628
|
+
const U = b.map((j) => j.builder).filter((j) => A(c.subject, j).length > 0), V = () => {
|
|
3628
3629
|
let j = v;
|
|
3629
|
-
for (const
|
|
3630
|
-
D(c.subject,
|
|
3630
|
+
for (const W of b.map((G) => G.builder))
|
|
3631
|
+
D(c.subject, W), j = f(j, L, W);
|
|
3631
3632
|
C(j);
|
|
3632
3633
|
};
|
|
3633
|
-
if (U.length > 0 &&
|
|
3634
|
-
|
|
3634
|
+
if (U.length > 0 && I.onOverridesConflict) {
|
|
3635
|
+
I.onOverridesConflict({ override: V, keep: () => C(v) });
|
|
3635
3636
|
return;
|
|
3636
3637
|
}
|
|
3637
3638
|
U.length > 0 ? C(v) : V();
|
|
3638
3639
|
}
|
|
3639
3640
|
return {
|
|
3640
3641
|
getCoverSubject: l,
|
|
3641
|
-
coverLabel:
|
|
3642
|
+
coverLabel: d,
|
|
3642
3643
|
shouldShowInheritToggle: g,
|
|
3643
|
-
inheritMode:
|
|
3644
|
+
inheritMode: y,
|
|
3644
3645
|
setInheritMode: F,
|
|
3645
3646
|
inheritedSummary: T,
|
|
3646
3647
|
getEffectiveActions: w,
|
|
@@ -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" }, va = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, pa = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ha = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ba = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ga = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" },
|
|
3652
|
+
const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, pa = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ha = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ba = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ga = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, 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,20 +3666,20 @@ 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 = pr(e, "modelValue"), r = e, l = t, { t: a } = He(),
|
|
3669
|
-
fetchCustomReportPermissions:
|
|
3669
|
+
const n = pr(e, "modelValue"), r = e, l = t, { t: a } = He(), d = hr(), u = br(), { breakpoints: i } = gr(), g = z(() => i.value.xs || i.value.sm), {
|
|
3670
|
+
fetchCustomReportPermissions: y,
|
|
3670
3671
|
customReportPermissions: T
|
|
3671
|
-
} =
|
|
3672
|
-
...
|
|
3672
|
+
} = Ir(), N = z(() => [
|
|
3673
|
+
...Wn,
|
|
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 w(O) {
|
|
3679
3680
|
return N.value.find((s) => s.subject === O);
|
|
3680
3681
|
}
|
|
3681
|
-
function
|
|
3682
|
+
function A(O, s) {
|
|
3682
3683
|
return rn(O).filter(
|
|
3683
3684
|
(o) => {
|
|
3684
3685
|
var _;
|
|
@@ -3688,7 +3689,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3688
3689
|
}
|
|
3689
3690
|
const D = z(() => {
|
|
3690
3691
|
const O = N.value.filter((o) => !c.includes(o.subject)).map((o) => o.subject);
|
|
3691
|
-
return
|
|
3692
|
+
return yr(
|
|
3692
3693
|
r.inheritPermissions.map((o) => ({
|
|
3693
3694
|
...o,
|
|
3694
3695
|
permissions: o.permissions.filter((_) => O.includes(_.subject))
|
|
@@ -3704,10 +3705,10 @@ 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 Lt(
|
|
3708
3709
|
O,
|
|
3709
3710
|
"warehouseId",
|
|
3710
|
-
|
|
3711
|
+
I.value.map((s) => s._id)
|
|
3711
3712
|
);
|
|
3712
3713
|
}), h = z(() => {
|
|
3713
3714
|
const O = r.inheritPermissions.map((s) => ({
|
|
@@ -3716,17 +3717,17 @@ 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 Lt(
|
|
3720
3721
|
O,
|
|
3721
3722
|
"restaurantId",
|
|
3722
|
-
|
|
3723
|
+
X.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 Lt(
|
|
3730
3731
|
O,
|
|
3731
3732
|
"roleId",
|
|
3732
3733
|
x.value.map((s) => s._id)
|
|
@@ -3742,16 +3743,16 @@ 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
|
-
}),
|
|
3746
|
+
}), I = rt([]), v = z(() => I.value.map((O) => ({
|
|
3746
3747
|
label: O.profile.name,
|
|
3747
3748
|
value: O._id
|
|
3748
3749
|
})));
|
|
3749
3750
|
function R(O) {
|
|
3750
|
-
const s =
|
|
3751
|
+
const s = L(n.value, O);
|
|
3751
3752
|
n.value = s;
|
|
3752
3753
|
}
|
|
3753
|
-
function
|
|
3754
|
-
let o =
|
|
3754
|
+
function L(O, s) {
|
|
3755
|
+
let o = It(
|
|
3755
3756
|
O.filter((_) => _.subject !== he.Subject.Business.inventory_stock)
|
|
3756
3757
|
);
|
|
3757
3758
|
if (!s || s.length > 0) {
|
|
@@ -3763,28 +3764,28 @@ 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: X } = d, x = Mr().roles, m = z(() => X.value.map((O) => ({
|
|
3767
3768
|
label: `${O.profile.code ? O.profile.code + "-" : ""}${O.profile.name}`,
|
|
3768
3769
|
value: O._id
|
|
3769
|
-
}))), C = z(() =>
|
|
3770
|
+
}))), C = z(() => X.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));
|
|
3770
3771
|
function V(O) {
|
|
3771
|
-
const s =
|
|
3772
|
+
const s = W(n.value, O);
|
|
3772
3773
|
n.value = s;
|
|
3773
3774
|
}
|
|
3774
3775
|
const j = z(() => Nr(n.value));
|
|
3775
|
-
function
|
|
3776
|
+
function W(O, s) {
|
|
3776
3777
|
var _;
|
|
3777
|
-
let o =
|
|
3778
|
+
let o = It(
|
|
3778
3779
|
O.filter(
|
|
3779
|
-
(
|
|
3780
|
+
(k) => k.subject !== he.Subject.Business.restaurant && k.subject !== he.Subject.Restaurant.restaurant
|
|
3780
3781
|
)
|
|
3781
3782
|
);
|
|
3782
3783
|
if (!s || s.length > 0) {
|
|
3783
3784
|
const {
|
|
3784
|
-
category:
|
|
3785
|
+
category: k,
|
|
3785
3786
|
showByFeatureFlag: M,
|
|
3786
3787
|
...P
|
|
3787
|
-
} =
|
|
3788
|
+
} = Lr.restaurant;
|
|
3788
3789
|
o.push(P);
|
|
3789
3790
|
const p = {
|
|
3790
3791
|
actions: [he.Action.manage],
|
|
@@ -3793,22 +3794,22 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3793
3794
|
s && (p.conditions = JSON.stringify({ restaurantId: { $in: s } })), o.push(p);
|
|
3794
3795
|
}
|
|
3795
3796
|
if (s) {
|
|
3796
|
-
const
|
|
3797
|
+
const k = [
|
|
3797
3798
|
...new Set(s.map((P) => C.value[P]).flatMap((P) => P))
|
|
3798
3799
|
], M = x.value.map((P) => P._id);
|
|
3799
|
-
|
|
3800
|
+
k.length !== M.length && (o = B(
|
|
3800
3801
|
o,
|
|
3801
|
-
(_ = j.value || M) == null ? void 0 : _.filter((P) =>
|
|
3802
|
+
(_ = j.value || M) == null ? void 0 : _.filter((P) => k.includes(P))
|
|
3802
3803
|
));
|
|
3803
3804
|
}
|
|
3804
3805
|
return o;
|
|
3805
3806
|
}
|
|
3806
|
-
function
|
|
3807
|
-
const s =
|
|
3807
|
+
function G(O) {
|
|
3808
|
+
const s = B(n.value, O);
|
|
3808
3809
|
n.value = s;
|
|
3809
3810
|
}
|
|
3810
|
-
function
|
|
3811
|
-
let o =
|
|
3811
|
+
function B(O, s) {
|
|
3812
|
+
let o = It(
|
|
3812
3813
|
O.filter((_) => _.subject !== he.Subject.Business.role)
|
|
3813
3814
|
);
|
|
3814
3815
|
if (s && s.length > 0) {
|
|
@@ -3823,13 +3824,13 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3823
3824
|
}
|
|
3824
3825
|
xn(async () => {
|
|
3825
3826
|
await Promise.all([
|
|
3826
|
-
la.readWarehouses().then((O) =>
|
|
3827
|
-
|
|
3827
|
+
la.readWarehouses().then((O) => I.value = O),
|
|
3828
|
+
y()
|
|
3828
3829
|
]);
|
|
3829
3830
|
});
|
|
3830
|
-
const
|
|
3831
|
+
const Y = z(() => Zn(
|
|
3831
3832
|
n.value,
|
|
3832
|
-
|
|
3833
|
+
Bn
|
|
3833
3834
|
).filter((o) => {
|
|
3834
3835
|
const _ = o.source;
|
|
3835
3836
|
return (_ == null ? void 0 : _.type) !== "systemPermissionSet" ? !0 : o.actions.includes("manage");
|
|
@@ -3837,14 +3838,14 @@ 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 =
|
|
3841
|
+
const k = w(o.subject);
|
|
3842
|
+
if (!k) return o;
|
|
3843
|
+
const M = k.actions;
|
|
3843
3844
|
return M.length <= 1 || M.filter((p) => !_.includes(p)).length === 0 ? o : { ...o, actions: [...M] };
|
|
3844
3845
|
}));
|
|
3845
3846
|
function ne(O) {
|
|
3846
3847
|
n.value = ia(
|
|
3847
|
-
|
|
3848
|
+
Y.value,
|
|
3848
3849
|
O,
|
|
3849
3850
|
n.value,
|
|
3850
3851
|
w
|
|
@@ -3854,15 +3855,15 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
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 Y.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, k = A(s.subject, _);
|
|
3866
|
+
if (k.length === 0) return;
|
|
3866
3867
|
let M;
|
|
3867
3868
|
try {
|
|
3868
3869
|
M = s.conditions ? JSON.parse(s.conditions) : void 0;
|
|
@@ -3875,7 +3876,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3875
3876
|
label: ((P = w(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
|
+
sections: k.map((p) => ({
|
|
3879
3880
|
builder: p,
|
|
3880
3881
|
formValue: p.fromCondition(tt(M, p))
|
|
3881
3882
|
}))
|
|
@@ -3887,14 +3888,14 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
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), k = A(O, _);
|
|
3892
|
+
if (k.length !== 0)
|
|
3892
3893
|
return {
|
|
3893
3894
|
index: null,
|
|
3894
3895
|
subject: O,
|
|
3895
3896
|
label: s,
|
|
3896
3897
|
actions: _,
|
|
3897
|
-
sections:
|
|
3898
|
+
sections: k.map((M) => ({
|
|
3898
3899
|
builder: M,
|
|
3899
3900
|
formValue: M.fromCondition(void 0)
|
|
3900
3901
|
}))
|
|
@@ -3903,7 +3904,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3903
3904
|
function De(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((k) => k.builder.builderKey === s.builderKey);
|
|
3907
3908
|
return _ == null ? void 0 : _.formValue;
|
|
3908
3909
|
}
|
|
3909
3910
|
function K(O, s) {
|
|
@@ -3927,11 +3928,11 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3927
3928
|
const _ = se.getDraft({
|
|
3928
3929
|
subject: O.subject,
|
|
3929
3930
|
builderKey: s.builderKey
|
|
3930
|
-
}),
|
|
3931
|
+
}), k = 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) ?? (k == null ? void 0 : k.formValue),
|
|
3935
3936
|
inheritMode: o
|
|
3936
3937
|
}
|
|
3937
3938
|
);
|
|
@@ -3941,24 +3942,24 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
3941
3942
|
}
|
|
3942
3943
|
function Ve(O, s) {
|
|
3943
3944
|
const o = O.sections.flatMap((_) => {
|
|
3944
|
-
const
|
|
3945
|
+
const k = se.getDraft({
|
|
3945
3946
|
subject: O.subject,
|
|
3946
3947
|
builderKey: _.builder.builderKey
|
|
3947
3948
|
});
|
|
3948
|
-
return
|
|
3949
|
+
return k ? [{ builder: _.builder, form: k.formValue, mode: k.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: Be(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
3961
|
let Ce = !1;
|
|
3961
|
-
function
|
|
3962
|
+
function Be(O, s = {}) {
|
|
3962
3963
|
return {
|
|
3963
3964
|
...s,
|
|
3964
3965
|
onOverridesConflict: ({ override: o, keep: _ }) => {
|
|
@@ -3994,24 +3995,24 @@ 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 = we("FmIcon"), _ = we("FmBottomSheet"),
|
|
3998
|
+
const o = we("FmIcon"), _ = we("FmBottomSheet"), k = we("FmPopover");
|
|
3998
3999
|
return J(), ie("div", _a, [
|
|
3999
4000
|
ae("div", va, [
|
|
4000
4001
|
ue(Ho, {
|
|
4001
|
-
"model-value":
|
|
4002
|
+
"model-value": Y.value,
|
|
4002
4003
|
"excluded-subjects": c,
|
|
4003
4004
|
"additional-permissions": H(T),
|
|
4004
4005
|
"onUpdate:modelValue": ne
|
|
4005
4006
|
}, et({ _: 2 }, [
|
|
4006
|
-
|
|
4007
|
+
Ee(D.value, (M) => ({
|
|
4007
4008
|
name: `checkbox-${M.id}-append`,
|
|
4008
|
-
fn:
|
|
4009
|
+
fn: de(() => [
|
|
4009
4010
|
ue(pt, { item: M }, null, 8, ["item"])
|
|
4010
4011
|
])
|
|
4011
4012
|
})),
|
|
4012
|
-
|
|
4013
|
+
Ee(Q.value, (M) => ({
|
|
4013
4014
|
name: `checkbox-${M}-icon`,
|
|
4014
|
-
fn:
|
|
4015
|
+
fn: de(({ option: P, isEffectiveSelected: p }) => [
|
|
4015
4016
|
p && q(M, P.label) ? (J(), ie(Re, { key: 0 }, [
|
|
4016
4017
|
g.value ? (J(), Ne(_, {
|
|
4017
4018
|
key: 0,
|
|
@@ -4022,11 +4023,11 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4022
4023
|
"dismiss-away": "",
|
|
4023
4024
|
"z-index": 100,
|
|
4024
4025
|
class: "h-5 flex items-center",
|
|
4025
|
-
"onUpdate:modelValue": (
|
|
4026
|
-
fe.value =
|
|
4026
|
+
"onUpdate:modelValue": (E) => {
|
|
4027
|
+
fe.value = E ? M : null, E || H(se).clearDraftsForSubject(M);
|
|
4027
4028
|
}
|
|
4028
4029
|
}, {
|
|
4029
|
-
"bottom-sheet-button":
|
|
4030
|
+
"bottom-sheet-button": de(() => [
|
|
4030
4031
|
ae("div", pa, [
|
|
4031
4032
|
ue(o, {
|
|
4032
4033
|
name: "settings",
|
|
@@ -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
|
-
builders: q(M, P.label).sections.map((
|
|
4045
|
+
builders: q(M, P.label).sections.map((E) => E.builder),
|
|
4045
4046
|
subject: M,
|
|
4046
4047
|
"time-zone": F.value,
|
|
4047
4048
|
"cover-override": H(ce),
|
|
4048
|
-
"inherit-mode-for": (
|
|
4049
|
-
"form-value-for": (
|
|
4049
|
+
"inherit-mode-for": (E) => K(q(M, P.label), E),
|
|
4050
|
+
"form-value-for": (E) => De(q(M, P.label), E),
|
|
4050
4051
|
"has-changes": Ke(M),
|
|
4051
4052
|
disable: e.disable,
|
|
4052
4053
|
"full-width": !0,
|
|
4053
|
-
onUpdateInheritMode: ({ builder:
|
|
4054
|
-
onUpdateForm: ({ builder:
|
|
4055
|
-
onApply: (
|
|
4054
|
+
onUpdateInheritMode: ({ builder: E, mode: $ }) => Je(q(M, P.label), E, $),
|
|
4055
|
+
onUpdateForm: ({ builder: E, form: $ }) => ve(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"])) : (J(), Ne(
|
|
4060
|
+
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (J(), Ne(k, {
|
|
4060
4061
|
key: 1,
|
|
4061
4062
|
disabled: e.disable,
|
|
4062
4063
|
"z-index": 100,
|
|
4063
|
-
"exclude-el-from-click-outside": [
|
|
4064
|
+
"exclude-el-from-click-outside": [ya],
|
|
4064
4065
|
class: "h-5 flex items-center",
|
|
4065
|
-
onPopoverChanged: (
|
|
4066
|
-
|
|
4066
|
+
onPopoverChanged: (E) => {
|
|
4067
|
+
E || H(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,7 +4079,7 @@ 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
4085
|
builders: q(M, P.label).sections.map(($) => $.builder),
|
|
@@ -4098,7 +4099,7 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4098
4099
|
le
|
|
4099
4100
|
),
|
|
4100
4101
|
onUpdateForm: ({ builder: $, form: le }) => ve(q(M, P.label), $, le),
|
|
4101
|
-
onApply: ($) => Ve(q(M, P.label),
|
|
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
|
|
@@ -4120,9 +4121,9 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4120
4121
|
context: H(a)("team.labels.warehouse"),
|
|
4121
4122
|
"onUpdate:modelValue": R
|
|
4122
4123
|
}, et({ _: 2 }, [
|
|
4123
|
-
|
|
4124
|
+
Ee(f.value, (M) => ({
|
|
4124
4125
|
name: `checkbox-${M.id}-append`,
|
|
4125
|
-
fn:
|
|
4126
|
+
fn: de(() => [
|
|
4126
4127
|
ue(pt, { item: M }, null, 8, ["item"])
|
|
4127
4128
|
])
|
|
4128
4129
|
}))
|
|
@@ -4131,28 +4132,28 @@ const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radi
|
|
|
4131
4132
|
ae("div", ga, [
|
|
4132
4133
|
ue(Dn, {
|
|
4133
4134
|
"model-value": U.value,
|
|
4134
|
-
options:
|
|
4135
|
+
options: m.value,
|
|
4135
4136
|
context: H(a)("team.labels.restaurant"),
|
|
4136
4137
|
"onUpdate:modelValue": V
|
|
4137
4138
|
}, et({ _: 2 }, [
|
|
4138
|
-
|
|
4139
|
+
Ee(h.value, (M) => ({
|
|
4139
4140
|
name: `checkbox-${M.id}-append`,
|
|
4140
|
-
fn:
|
|
4141
|
+
fn: de(() => [
|
|
4141
4142
|
ue(pt, { item: M }, null, 8, ["item"])
|
|
4142
4143
|
])
|
|
4143
4144
|
}))
|
|
4144
4145
|
]), 1032, ["model-value", "options", "context"])
|
|
4145
4146
|
]),
|
|
4146
|
-
ae("div",
|
|
4147
|
+
ae("div", Ia, [
|
|
4147
4148
|
ue(ra, {
|
|
4148
4149
|
roles: H(x),
|
|
4149
4150
|
"model-value": j.value,
|
|
4150
4151
|
"restaurant-ids": U.value,
|
|
4151
|
-
"onUpdate:modelValue":
|
|
4152
|
+
"onUpdate:modelValue": G
|
|
4152
4153
|
}, et({ _: 2 }, [
|
|
4153
|
-
|
|
4154
|
+
Ee(S.value, (M) => ({
|
|
4154
4155
|
name: `checkbox-${M.id}-append`,
|
|
4155
|
-
fn:
|
|
4156
|
+
fn: de(() => [
|
|
4156
4157
|
ue(pt, { item: M }, null, 8, ["item"])
|
|
4157
4158
|
])
|
|
4158
4159
|
}))
|
|
@@ -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
|
};
|