@feedmepos/mf-hrm-portal 2.3.0-dev → 2.3.0-dev.3
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-cG0zmQVJ.js → ApprovalCodeList-SjyWZghY.js} +2 -2
- package/dist/{AuditLogList-BTifJhO1.js → AuditLogList-aTI3QeO0.js} +3 -3
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-qr5TwLTK.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang--JTV7non.js} +2 -2
- package/dist/{EmployeeList-DzcMtxJ3.js → EmployeeList-D2Q_2ZE0.js} +4 -4
- package/dist/{GrantUserList-D5b7tJ8Y.js → GrantUserList-6YXLPuHR.js} +3 -3
- package/dist/{Main-DFwdAWqn.js → Main-B-a6F9g8.js} +5 -5
- package/dist/{Main-B2r59IOW.js → Main-CFIWlIaC.js} +2 -2
- package/dist/{Main-DkLBemi7.js → Main-dSqOeBRJ.js} +9 -9
- package/dist/{PermissionSetList-B80hrfMW.js → PermissionSetList-DxkaPCMs.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DjNcJQM9.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DnKckKZ0.js} +1165 -1165
- package/dist/{RoleList-DHO4JRKF.js → RoleList-DQZ_w5uM.js} +7 -7
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Dr6QruG6.js +470 -0
- package/dist/{ScheduleGeneralPage-WlBM8bxV.js → ScheduleGeneralPage-CvskrXcV.js} +273 -236
- package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-C4On5sVD.js +2157 -0
- package/dist/SchedulePage-CW-K836l.js +18248 -0
- package/dist/{SchedulePositionPage-C0hrO11d.js → SchedulePositionPage-BGrZBU3g.js} +67 -66
- package/dist/{TeamMemberList-CgFWLRBM.js → TeamMemberList-BiTHVJwE.js} +6 -6
- package/dist/{TimesheetList-Dp40G-0I.js → TimesheetList-CUkYacGW.js} +5 -5
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-BFjrMhUG.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-B1Y587O-.js} +2 -2
- package/dist/{app-CmBSTvaI.js → app-CAKCDrbJ.js} +657 -577
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-CfL2DQ3d.js → dayjs.min-CZ8QYRoc.js} +1 -1
- package/dist/{employee-DQcHjoij.js → employee-D56eWEFe.js} +28 -27
- package/dist/{iteration-BlavheWG.js → iteration-BVJdyLNq.js} +1 -1
- package/dist/{lodash-QerqayrJ.js → lodash-BcIRkQPW.js} +1 -1
- package/dist/{role-RM2YLO7n.js → role-B-eZDaBX.js} +1 -1
- package/dist/{rule-DjlvYIuP.js → rule-D6AIfx8b.js} +2 -2
- package/dist/src/api/schedule/index.d.ts +6 -4
- package/dist/src/components/layout/withScheduleShell.d.ts +10 -0
- package/dist/src/composables/useMessage.d.ts +2 -8
- package/dist/src/types/employee.d.ts +1 -0
- package/dist/src/types/schedule.d.ts +1 -1
- package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +28 -0
- package/dist/src/views/scheduling/components/ScheduleBoardEditOverlays.vue.d.ts +19 -0
- package/dist/src/views/scheduling/components/ScheduleBoardEmployeeRows.vue.d.ts +38 -0
- package/dist/src/views/scheduling/components/ScheduleBoardGridHeader.vue.d.ts +24 -0
- package/dist/src/views/scheduling/components/ScheduleBoardInteractionOverlays.vue.d.ts +38 -0
- package/dist/src/views/scheduling/components/ScheduleBoardOnboardingOverlays.vue.d.ts +25 -0
- package/dist/src/views/scheduling/components/ScheduleBoardRails.vue.d.ts +17 -0
- package/dist/src/views/scheduling/components/ScheduleBoardToolbar.vue.d.ts +39 -0
- package/dist/src/views/scheduling/components/ScheduleBoardUtilityOverlays.vue.d.ts +22 -0
- package/dist/src/views/scheduling/components/{ScheduleOnboardingComplete.vue.d.ts → ScheduleCompletionDialog.vue.d.ts} +8 -3
- package/dist/src/views/scheduling/components/{ScheduleOpenShiftCardMenu.vue.d.ts → ScheduleContextMenu.vue.d.ts} +10 -3
- package/dist/src/views/scheduling/components/{SchedulePdfPreview.vue.d.ts → ScheduleExportPreview.vue.d.ts} +1 -0
- package/dist/src/views/scheduling/components/ScheduleLoadState.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleModal.vue.d.ts +26 -0
- package/dist/src/views/scheduling/components/{ScheduleExportDoneDialog.vue.d.ts → ScheduleOnboardingClosedDayConfirm.vue.d.ts} +2 -2
- package/dist/src/views/scheduling/components/{ScheduleAutoScheduleDetailsModal.vue.d.ts → ScheduleOnboardingDemandDays.vue.d.ts} +2 -2
- package/dist/src/views/scheduling/components/{ScheduleEmployeeMenu.vue.d.ts → ScheduleOnboardingDemandFooter.vue.d.ts} +2 -2
- package/dist/src/views/scheduling/components/ScheduleOnboardingDemandHeader.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingHoursProfileNotice.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingPositions.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingReview.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizardFooter.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizardHeader.vue.d.ts +11 -0
- package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +7 -1
- package/dist/src/views/scheduling/components/ScheduleSetupBanner.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +2 -2
- package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +4 -4
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +2 -2
- package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +3 -3
- package/dist/src/views/scheduling/composables/onboarding-types.d.ts +1 -1
- package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +1 -1
- package/dist/src/views/scheduling/composables/schedule-breaks.d.ts +7 -1
- package/dist/src/views/scheduling/composables/schedule-calendar.d.ts +7 -0
- package/dist/src/views/scheduling/composables/schedule-cost.d.ts +19 -0
- package/dist/src/views/scheduling/composables/schedule-demand-domain.d.ts +11 -0
- package/dist/src/views/scheduling/composables/schedule-export-matrix.d.ts +14 -0
- package/dist/src/views/scheduling/composables/schedule-time.d.ts +8 -0
- package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +1 -4
- package/dist/src/views/scheduling/composables/scheduleAutoSolver.d.ts +23 -0
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +14 -13
- package/dist/src/views/scheduling/composables/useScheduleAssign.d.ts +3 -1
- package/dist/src/views/scheduling/composables/useScheduleAssignmentMutations.d.ts +13 -0
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +4 -114
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +18 -2
- package/dist/src/views/scheduling/composables/useScheduleCloneOutletModal.d.ts +3 -1
- package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +6 -1
- package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +1 -1
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +4 -19
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +12 -2
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +11 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAvailability.d.ts +13 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +26 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeCompensation.d.ts +7 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeForm.d.ts +22 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +9 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeMenu.d.ts +6 -3
- package/dist/src/views/scheduling/composables/useScheduleEmployeePersistence.d.ts +25 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeValidation.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +19 -11
- package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +3 -6
- package/dist/src/views/scheduling/composables/useScheduleOnboardingAvailability.d.ts +58 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingDemand.d.ts +45 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +187 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingHours.d.ts +15 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingNavigation.d.ts +11 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +64 -487
- package/dist/src/views/scheduling/composables/useSchedulePageActions.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useSchedulePageCellActions.d.ts +21 -0
- package/dist/src/views/scheduling/composables/useSchedulePageCellDrop.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useSchedulePageEmployeeActions.d.ts +22 -0
- package/dist/src/views/scheduling/composables/useSchedulePageOverlays.d.ts +10 -3
- package/dist/src/views/scheduling/composables/useSchedulePdfExport.d.ts +19 -0
- package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +3 -1
- package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +3 -1
- package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +7 -1
- package/dist/src/views/scheduling/composables/useSchedulePublishPersistence.d.ts +11 -0
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +6 -0
- package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +2 -24
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +6 -1
- package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +62 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPersistence.d.ts +17 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +10 -5
- package/dist/src/views/scheduling/composables/useScheduleStatsRow.d.ts +4 -1
- package/dist/src/views/scheduling/composables/useScheduleTour.d.ts +6 -4
- package/dist/src/views/scheduling/country-rules/index.d.ts +24 -0
- package/dist/src/views/scheduling/data.d.ts +11 -6
- package/dist/src/views/scheduling/locales/index.d.ts +80 -0
- package/dist/src/views/scheduling/schedule-constants.d.ts +7 -0
- package/dist/src/views/scheduling/schedule-state.d.ts +134 -110
- package/dist/src/views/scheduling/schedule-store.d.ts +6 -5
- package/dist/src/views/scheduling/types.d.ts +5 -3
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-Bl6Br79r.js → useReportPermissions-DHA0jrIr.js} +3 -3
- package/package.json +1 -1
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-B-XtB64L.js +0 -452
- package/dist/SchedulePage-Nm0krGVU.js +0 -17056
- package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-DTDXir_7.js +0 -1150
- package/dist/src/components/layout/AppSidebar.vue.d.ts +0 -2
- package/dist/src/components/layout/withShell.d.ts +0 -14
- package/dist/src/views/scheduling/components/ScheduleShiftCardMenu.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleTourAllSet.vue.d.ts +0 -6
- package/dist/src/views/scheduling/composables/auto-schedule-mapping.d.ts +0 -33
- package/dist/src/views/scheduling/composables/useScheduleStaffRail.d.ts +0 -17
- package/dist/src/views/scheduling/composables/useScheduleTopbar.d.ts +0 -10
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { getCurrentInstance as Yt, inject as us, ref as st, shallowRef as ds, computed as z, watch as
|
|
1
|
+
import { getCurrentInstance as Yt, inject as us, ref as st, shallowRef as ds, computed as z, watch as wt, onMounted as Vn, onUnmounted as ms, defineComponent as Le, h as Gn, createVNode as ue, Text as fs, 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 ye, toRef as en, normalizeStyle as nt, renderSlot as Se, createCommentVNode as Me, createTextVNode as _s, useSlots as vs, normalizeClass as qe, createSlots as et, mergeModels as tn, useModel as ps } from "vue";
|
|
2
2
|
import { useI18n as He, useCoreStore as hs } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialog as bs, useBreakpoints as gs } from "@feedmepos/ui-library";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { p as
|
|
6
|
-
import { _ as Xt, a as Ts, b as nn, u as Cs } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang
|
|
7
|
-
import { u as Os, v as Ss, b as
|
|
8
|
-
import { c as
|
|
9
|
-
import { r as
|
|
10
|
-
import { g as
|
|
11
|
-
import { u as Ms } from "./role-
|
|
5
|
+
import { p as Wn, N as Zn, d as Es, P as Is, w as kt, x as ys, y as Ns } from "./rule-D6AIfx8b.js";
|
|
6
|
+
import { _ as Xt, a as Ts, b as nn, u as Cs } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang--JTV7non.js";
|
|
7
|
+
import { u as Os, v as Ss, b as Bn, S as Dt, A as tt, c as he, k as sn, O as ks } from "./app-CAKCDrbJ.js";
|
|
8
|
+
import { c as Et } from "./iteration-BVJdyLNq.js";
|
|
9
|
+
import { r as Ls } from "./string-VNuQNweN.js";
|
|
10
|
+
import { g as As, b as Rs } from "./restaurant-D7PEQjPY.js";
|
|
11
|
+
import { u as Ms } from "./role-B-eZDaBX.js";
|
|
12
12
|
function Yn(e, t) {
|
|
13
13
|
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function ws(e) {
|
|
16
16
|
return Array.isArray(e) ? e[0] : e;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Ds(e, t) {
|
|
19
19
|
const n = t.find((l) => Yn(l.subject, e));
|
|
20
20
|
if (!(n != null && n.category) || n.isCategoryCover) return;
|
|
21
21
|
const s = t.find((l) => l.category === n.category && l.isCategoryCover);
|
|
22
22
|
if (s)
|
|
23
|
-
return
|
|
23
|
+
return ws(s.subject);
|
|
24
24
|
}
|
|
25
25
|
function rn(e, t) {
|
|
26
26
|
const n = t.find((s) => Yn(s.subject, e));
|
|
@@ -31,36 +31,36 @@ function rn(e, t) {
|
|
|
31
31
|
* (c) 2024 kazuya kawaguchi
|
|
32
32
|
* Released under the MIT License.
|
|
33
33
|
*/
|
|
34
|
-
const on = typeof window < "u", $e = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Fs = (e, t, n) => Ps({ l: e, k: t, s: n }), Ps = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ge = (e) => typeof e == "number" && isFinite(e), js = (e) => Ht(e) === "[object Date]",
|
|
34
|
+
const on = typeof window < "u", $e = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Fs = (e, t, n) => Ps({ l: e, k: t, s: n }), Ps = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ge = (e) => typeof e == "number" && isFinite(e), js = (e) => Ht(e) === "[object Date]", yt = (e) => Ht(e) === "[object RegExp]", Tt = (e) => ee(e) && Object.keys(e).length === 0, Ee = Object.assign, Us = Object.create, oe = (e = null) => Us(e);
|
|
35
35
|
let an;
|
|
36
36
|
const Xe = () => an || (an = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : oe());
|
|
37
37
|
function ln(e) {
|
|
38
38
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
39
39
|
}
|
|
40
|
-
const
|
|
41
|
-
function
|
|
42
|
-
return
|
|
40
|
+
const xs = Object.prototype.hasOwnProperty;
|
|
41
|
+
function ke(e, t) {
|
|
42
|
+
return xs.call(e, t);
|
|
43
43
|
}
|
|
44
|
-
const be = Array.isArray,
|
|
44
|
+
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", Vs = (e) => te(e) && me(e.then) && me(e.catch), Xn = Object.prototype.toString, Ht = (e) => Xn.call(e), ee = (e) => Ht(e) === "[object Object]", Gs = (e) => e == null ? "" : be(e) || ee(e) && e.toString === Xn ? JSON.stringify(e, null, 2) : String(e);
|
|
45
45
|
function $t(e, t = "") {
|
|
46
46
|
return e.reduce((n, s, l) => l === 0 ? n + s : n + t + s, "");
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Ws(e, t) {
|
|
49
49
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
50
50
|
}
|
|
51
|
-
const
|
|
52
|
-
function
|
|
53
|
-
if (
|
|
51
|
+
const ft = (e) => !te(e) || be(e);
|
|
52
|
+
function It(e, t) {
|
|
53
|
+
if (ft(e) || ft(t))
|
|
54
54
|
throw new Error("Invalid value");
|
|
55
55
|
const n = [{ src: e, des: t }];
|
|
56
56
|
for (; n.length; ) {
|
|
57
57
|
const { src: s, des: l } = n.pop();
|
|
58
58
|
Object.keys(s).forEach((a) => {
|
|
59
|
-
a !== "__proto__" && (te(s[a]) && !te(l[a]) && (l[a] = Array.isArray(s[a]) ? [] : oe()),
|
|
59
|
+
a !== "__proto__" && (te(s[a]) && !te(l[a]) && (l[a] = Array.isArray(s[a]) ? [] : oe()), ft(l[a]) || ft(s[a]) ? l[a] = s[a] : n.push({ src: s[a], des: l[a] }));
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Zs(e, t, n) {
|
|
64
64
|
return { line: e, column: t, offset: n };
|
|
65
65
|
}
|
|
66
66
|
function Ft(e, t, n) {
|
|
@@ -83,7 +83,7 @@ const se = {
|
|
|
83
83
|
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
84
84
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
85
85
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
86
|
-
},
|
|
86
|
+
}, Bs = 17;
|
|
87
87
|
function Ct(e, t, n = {}) {
|
|
88
88
|
const { domain: s, messages: l, args: a } = n, d = e, u = new SyntaxError(String(d));
|
|
89
89
|
return u.code = e, t && (u.location = t), u.domain = s, u;
|
|
@@ -91,14 +91,14 @@ function Ct(e, t, n = {}) {
|
|
|
91
91
|
function Ys(e) {
|
|
92
92
|
throw e;
|
|
93
93
|
}
|
|
94
|
-
const Pe = " ", Xs = "\r",
|
|
94
|
+
const Pe = " ", Xs = "\r", Ie = `
|
|
95
95
|
`, Hs = "\u2028", $s = "\u2029";
|
|
96
96
|
function Js(e) {
|
|
97
97
|
const t = e;
|
|
98
98
|
let n = 0, s = 1, l = 1, a = 0;
|
|
99
|
-
const d = (
|
|
99
|
+
const d = (v) => t[v] === Xs && t[v + 1] === Ie, u = (v) => t[v] === Ie, i = (v) => t[v] === $s, g = (v) => t[v] === Hs, I = (v) => d(v) || u(v) || i(v) || g(v), C = () => n, N = () => s, F = () => l, w = () => a, L = (v) => d(v) || i(v) || g(v) ? Ie : t[v], D = () => L(n), f = () => L(n + a);
|
|
100
100
|
function h() {
|
|
101
|
-
return a = 0,
|
|
101
|
+
return a = 0, I(n) && (s++, l = 0), d(n) && n++, n++, l++, t[n];
|
|
102
102
|
}
|
|
103
103
|
function S() {
|
|
104
104
|
return d(n + a) && a++, a++, t[n + a];
|
|
@@ -106,12 +106,12 @@ function Js(e) {
|
|
|
106
106
|
function c() {
|
|
107
107
|
n = 0, s = 1, l = 1, a = 0;
|
|
108
108
|
}
|
|
109
|
-
function b(
|
|
110
|
-
a =
|
|
109
|
+
function b(v = 0) {
|
|
110
|
+
a = v;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
const
|
|
114
|
-
for (;
|
|
112
|
+
function E() {
|
|
113
|
+
const v = n + a;
|
|
114
|
+
for (; v !== n; )
|
|
115
115
|
h();
|
|
116
116
|
a = 0;
|
|
117
117
|
}
|
|
@@ -119,20 +119,20 @@ function Js(e) {
|
|
|
119
119
|
index: C,
|
|
120
120
|
line: N,
|
|
121
121
|
column: F,
|
|
122
|
-
peekOffset:
|
|
123
|
-
charAt:
|
|
124
|
-
currentChar:
|
|
125
|
-
currentPeek:
|
|
122
|
+
peekOffset: w,
|
|
123
|
+
charAt: L,
|
|
124
|
+
currentChar: D,
|
|
125
|
+
currentPeek: f,
|
|
126
126
|
next: h,
|
|
127
127
|
peek: S,
|
|
128
128
|
reset: c,
|
|
129
129
|
resetPeek: b,
|
|
130
|
-
skipToPeek:
|
|
130
|
+
skipToPeek: E
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
const
|
|
133
|
+
const Ve = void 0, Ks = ".", cn = "'", zs = "tokenizer";
|
|
134
134
|
function Qs(e, t = {}) {
|
|
135
|
-
const n = t.location !== !1, s = Js(e), l = () => s.index(), a = () =>
|
|
135
|
+
const n = t.location !== !1, s = Js(e), l = () => s.index(), a = () => Zs(s.line(), s.column(), s.index()), d = a(), u = l(), i = {
|
|
136
136
|
currentType: 13,
|
|
137
137
|
offset: u,
|
|
138
138
|
startLoc: d,
|
|
@@ -144,42 +144,42 @@ function Qs(e, t = {}) {
|
|
|
144
144
|
braceNest: 0,
|
|
145
145
|
inLinked: !1,
|
|
146
146
|
text: ""
|
|
147
|
-
}, g = () => i, { onError:
|
|
148
|
-
function C(r, o, _, ...
|
|
147
|
+
}, g = () => i, { onError: I } = t;
|
|
148
|
+
function C(r, o, _, ...A) {
|
|
149
149
|
const M = g();
|
|
150
|
-
if (o.column += _, o.offset += _,
|
|
151
|
-
const P = n ? Ft(M.startLoc, o) : null,
|
|
150
|
+
if (o.column += _, o.offset += _, I) {
|
|
151
|
+
const P = n ? Ft(M.startLoc, o) : null, p = Ct(r, P, {
|
|
152
152
|
domain: zs,
|
|
153
|
-
args:
|
|
153
|
+
args: A
|
|
154
154
|
});
|
|
155
|
-
|
|
155
|
+
I(p);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
function N(r, o, _) {
|
|
159
159
|
r.endLoc = a(), r.currentType = o;
|
|
160
|
-
const
|
|
161
|
-
return n && (
|
|
160
|
+
const A = { type: o };
|
|
161
|
+
return n && (A.loc = Ft(r.startLoc, r.endLoc)), _ != null && (A.value = _), A;
|
|
162
162
|
}
|
|
163
163
|
const F = (r) => N(
|
|
164
164
|
r,
|
|
165
165
|
13
|
|
166
166
|
/* TokenTypes.EOF */
|
|
167
167
|
);
|
|
168
|
-
function
|
|
168
|
+
function w(r, o) {
|
|
169
169
|
return r.currentChar() === o ? (r.next(), o) : (C(se.EXPECTED_TOKEN, a(), 0, o), "");
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function L(r) {
|
|
172
172
|
let o = "";
|
|
173
|
-
for (; r.currentPeek() === Pe || r.currentPeek() ===
|
|
173
|
+
for (; r.currentPeek() === Pe || r.currentPeek() === Ie; )
|
|
174
174
|
o += r.currentPeek(), r.peek();
|
|
175
175
|
return o;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
const o =
|
|
177
|
+
function D(r) {
|
|
178
|
+
const o = L(r);
|
|
179
179
|
return r.skipToPeek(), o;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
if (r ===
|
|
181
|
+
function f(r) {
|
|
182
|
+
if (r === Ve)
|
|
183
183
|
return !1;
|
|
184
184
|
const o = r.charCodeAt(0);
|
|
185
185
|
return o >= 97 && o <= 122 || // a-z
|
|
@@ -187,7 +187,7 @@ function Qs(e, t = {}) {
|
|
|
187
187
|
o === 95;
|
|
188
188
|
}
|
|
189
189
|
function h(r) {
|
|
190
|
-
if (r ===
|
|
190
|
+
if (r === Ve)
|
|
191
191
|
return !1;
|
|
192
192
|
const o = r.charCodeAt(0);
|
|
193
193
|
return o >= 48 && o <= 57;
|
|
@@ -196,75 +196,75 @@ function Qs(e, t = {}) {
|
|
|
196
196
|
const { currentType: _ } = o;
|
|
197
197
|
if (_ !== 2)
|
|
198
198
|
return !1;
|
|
199
|
-
|
|
200
|
-
const
|
|
201
|
-
return r.resetPeek(),
|
|
199
|
+
L(r);
|
|
200
|
+
const A = f(r.currentPeek());
|
|
201
|
+
return r.resetPeek(), A;
|
|
202
202
|
}
|
|
203
203
|
function c(r, o) {
|
|
204
204
|
const { currentType: _ } = o;
|
|
205
205
|
if (_ !== 2)
|
|
206
206
|
return !1;
|
|
207
|
-
|
|
208
|
-
const
|
|
207
|
+
L(r);
|
|
208
|
+
const A = r.currentPeek() === "-" ? r.peek() : r.currentPeek(), M = h(A);
|
|
209
209
|
return r.resetPeek(), M;
|
|
210
210
|
}
|
|
211
211
|
function b(r, o) {
|
|
212
212
|
const { currentType: _ } = o;
|
|
213
213
|
if (_ !== 2)
|
|
214
214
|
return !1;
|
|
215
|
-
|
|
216
|
-
const
|
|
217
|
-
return r.resetPeek(),
|
|
215
|
+
L(r);
|
|
216
|
+
const A = r.currentPeek() === cn;
|
|
217
|
+
return r.resetPeek(), A;
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function E(r, o) {
|
|
220
220
|
const { currentType: _ } = o;
|
|
221
221
|
if (_ !== 7)
|
|
222
222
|
return !1;
|
|
223
|
-
|
|
224
|
-
const
|
|
225
|
-
return r.resetPeek(),
|
|
223
|
+
L(r);
|
|
224
|
+
const A = r.currentPeek() === ".";
|
|
225
|
+
return r.resetPeek(), A;
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function v(r, o) {
|
|
228
228
|
const { currentType: _ } = o;
|
|
229
229
|
if (_ !== 8)
|
|
230
230
|
return !1;
|
|
231
|
-
|
|
232
|
-
const
|
|
233
|
-
return r.resetPeek(),
|
|
231
|
+
L(r);
|
|
232
|
+
const A = f(r.currentPeek());
|
|
233
|
+
return r.resetPeek(), A;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function R(r, o) {
|
|
236
236
|
const { currentType: _ } = o;
|
|
237
237
|
if (!(_ === 7 || _ === 11))
|
|
238
238
|
return !1;
|
|
239
|
-
|
|
240
|
-
const
|
|
241
|
-
return r.resetPeek(),
|
|
239
|
+
L(r);
|
|
240
|
+
const A = r.currentPeek() === ":";
|
|
241
|
+
return r.resetPeek(), A;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function k(r, o) {
|
|
244
244
|
const { currentType: _ } = o;
|
|
245
245
|
if (_ !== 9)
|
|
246
246
|
return !1;
|
|
247
|
-
const
|
|
247
|
+
const A = () => {
|
|
248
248
|
const P = r.currentPeek();
|
|
249
|
-
return P === "{" ?
|
|
250
|
-
}, M =
|
|
249
|
+
return P === "{" ? f(r.peek()) : P === "@" || P === "|" || P === ":" || P === "." || P === Pe || !P ? !1 : P === Ie ? (r.peek(), A()) : V(r, !1);
|
|
250
|
+
}, M = A();
|
|
251
251
|
return r.resetPeek(), M;
|
|
252
252
|
}
|
|
253
253
|
function X(r) {
|
|
254
|
-
|
|
254
|
+
L(r);
|
|
255
255
|
const o = r.currentPeek() === "|";
|
|
256
256
|
return r.resetPeek(), o;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function V(r, o = !0) {
|
|
259
259
|
const _ = (M = !1, P = "") => {
|
|
260
|
-
const
|
|
261
|
-
return
|
|
262
|
-
},
|
|
263
|
-
return o && r.resetPeek(),
|
|
260
|
+
const p = r.currentPeek();
|
|
261
|
+
return p === "{" || p === "@" || !p ? M : p === "|" ? !(P === Pe || P === Ie) : p === Pe ? (r.peek(), _(!0, Pe)) : p === Ie ? (r.peek(), _(!0, Ie)) : !0;
|
|
262
|
+
}, A = _();
|
|
263
|
+
return o && r.resetPeek(), A;
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function m(r, o) {
|
|
266
266
|
const _ = r.currentChar();
|
|
267
|
-
return _ ===
|
|
267
|
+
return _ === Ve ? Ve : o(_) ? (r.next(), _) : null;
|
|
268
268
|
}
|
|
269
269
|
function T(r) {
|
|
270
270
|
const o = r.charCodeAt(0);
|
|
@@ -275,9 +275,9 @@ function Qs(e, t = {}) {
|
|
|
275
275
|
o === 36;
|
|
276
276
|
}
|
|
277
277
|
function U(r) {
|
|
278
|
-
return
|
|
278
|
+
return m(r, T);
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function x(r) {
|
|
281
281
|
const o = r.charCodeAt(0);
|
|
282
282
|
return o >= 97 && o <= 122 || // a-z
|
|
283
283
|
o >= 65 && o <= 90 || // A-Z
|
|
@@ -287,27 +287,27 @@ function Qs(e, t = {}) {
|
|
|
287
287
|
o === 45;
|
|
288
288
|
}
|
|
289
289
|
function j(r) {
|
|
290
|
-
return
|
|
290
|
+
return m(r, x);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function W(r) {
|
|
293
293
|
const o = r.charCodeAt(0);
|
|
294
294
|
return o >= 48 && o <= 57;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
297
|
-
return
|
|
296
|
+
function G(r) {
|
|
297
|
+
return m(r, W);
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function B(r) {
|
|
300
300
|
const o = r.charCodeAt(0);
|
|
301
301
|
return o >= 48 && o <= 57 || // 0-9
|
|
302
302
|
o >= 65 && o <= 70 || // A-F
|
|
303
303
|
o >= 97 && o <= 102;
|
|
304
304
|
}
|
|
305
305
|
function Y(r) {
|
|
306
|
-
return
|
|
306
|
+
return m(r, B);
|
|
307
307
|
}
|
|
308
308
|
function ne(r) {
|
|
309
309
|
let o = "", _ = "";
|
|
310
|
-
for (; o =
|
|
310
|
+
for (; o = G(r); )
|
|
311
311
|
_ += o;
|
|
312
312
|
return _;
|
|
313
313
|
}
|
|
@@ -317,8 +317,8 @@ function Qs(e, t = {}) {
|
|
|
317
317
|
const _ = r.currentChar();
|
|
318
318
|
if (_ === "{" || _ === "}" || _ === "@" || _ === "|" || !_)
|
|
319
319
|
break;
|
|
320
|
-
if (_ === Pe || _ ===
|
|
321
|
-
if (
|
|
320
|
+
if (_ === Pe || _ === Ie)
|
|
321
|
+
if (V(r))
|
|
322
322
|
o += _, r.next();
|
|
323
323
|
else {
|
|
324
324
|
if (X(r))
|
|
@@ -331,27 +331,27 @@ function Qs(e, t = {}) {
|
|
|
331
331
|
return o;
|
|
332
332
|
}
|
|
333
333
|
function _e(r) {
|
|
334
|
-
|
|
334
|
+
D(r);
|
|
335
335
|
let o = "", _ = "";
|
|
336
336
|
for (; o = j(r); )
|
|
337
337
|
_ += o;
|
|
338
|
-
return r.currentChar() ===
|
|
338
|
+
return r.currentChar() === Ve && C(se.UNTERMINATED_CLOSING_BRACE, a(), 0), _;
|
|
339
339
|
}
|
|
340
340
|
function ce(r) {
|
|
341
|
-
|
|
341
|
+
D(r);
|
|
342
342
|
let o = "";
|
|
343
|
-
return r.currentChar() === "-" ? (r.next(), o += `-${ne(r)}`) : o += ne(r), r.currentChar() ===
|
|
343
|
+
return r.currentChar() === "-" ? (r.next(), o += `-${ne(r)}`) : o += ne(r), r.currentChar() === Ve && C(se.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
|
|
344
344
|
}
|
|
345
345
|
function re(r) {
|
|
346
|
-
return r !== cn && r !==
|
|
346
|
+
return r !== cn && r !== Ie;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
|
|
348
|
+
function fe(r) {
|
|
349
|
+
D(r), w(r, "'");
|
|
350
350
|
let o = "", _ = "";
|
|
351
|
-
for (; o =
|
|
351
|
+
for (; o = m(r, re); )
|
|
352
352
|
o === "\\" ? _ += q(r) : _ += o;
|
|
353
|
-
const
|
|
354
|
-
return
|
|
353
|
+
const A = r.currentChar();
|
|
354
|
+
return A === Ie || A === Ve ? (C(se.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), A === Ie && (r.next(), w(r, "'")), _) : (w(r, "'"), _);
|
|
355
355
|
}
|
|
356
356
|
function q(r) {
|
|
357
357
|
const o = r.currentChar();
|
|
@@ -360,33 +360,33 @@ function Qs(e, t = {}) {
|
|
|
360
360
|
case "'":
|
|
361
361
|
return r.next(), `\\${o}`;
|
|
362
362
|
case "u":
|
|
363
|
-
return
|
|
363
|
+
return De(r, o, 4);
|
|
364
364
|
case "U":
|
|
365
|
-
return
|
|
365
|
+
return De(r, o, 6);
|
|
366
366
|
default:
|
|
367
367
|
return C(se.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
|
|
372
|
-
let
|
|
370
|
+
function De(r, o, _) {
|
|
371
|
+
w(r, o);
|
|
372
|
+
let A = "";
|
|
373
373
|
for (let M = 0; M < _; M++) {
|
|
374
374
|
const P = Y(r);
|
|
375
375
|
if (!P) {
|
|
376
|
-
C(se.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${
|
|
376
|
+
C(se.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${A}${r.currentChar()}`);
|
|
377
377
|
break;
|
|
378
378
|
}
|
|
379
|
-
|
|
379
|
+
A += P;
|
|
380
380
|
}
|
|
381
|
-
return `\\${o}${
|
|
381
|
+
return `\\${o}${A}`;
|
|
382
382
|
}
|
|
383
383
|
function K(r) {
|
|
384
|
-
return r !== "{" && r !== "}" && r !== Pe && r !==
|
|
384
|
+
return r !== "{" && r !== "}" && r !== Pe && r !== Ie;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
|
|
386
|
+
function ve(r) {
|
|
387
|
+
D(r);
|
|
388
388
|
let o = "", _ = "";
|
|
389
|
-
for (; o =
|
|
389
|
+
for (; o = m(r, K); )
|
|
390
390
|
_ += o;
|
|
391
391
|
return _;
|
|
392
392
|
}
|
|
@@ -398,19 +398,19 @@ function Qs(e, t = {}) {
|
|
|
398
398
|
}
|
|
399
399
|
function Ke(r) {
|
|
400
400
|
const o = (_) => {
|
|
401
|
-
const
|
|
402
|
-
return
|
|
401
|
+
const A = r.currentChar();
|
|
402
|
+
return A === "{" || A === "@" || A === "|" || A === "(" || A === ")" || !A || A === Pe ? _ : (_ += A, r.next(), o(_));
|
|
403
403
|
};
|
|
404
404
|
return o("");
|
|
405
405
|
}
|
|
406
|
-
function
|
|
407
|
-
|
|
408
|
-
const o =
|
|
406
|
+
function xe(r) {
|
|
407
|
+
D(r);
|
|
408
|
+
const o = w(
|
|
409
409
|
r,
|
|
410
410
|
"|"
|
|
411
411
|
/* TokenChars.Pipe */
|
|
412
412
|
);
|
|
413
|
-
return
|
|
413
|
+
return D(r), o;
|
|
414
414
|
}
|
|
415
415
|
function Fe(r, o) {
|
|
416
416
|
let _ = null;
|
|
@@ -421,30 +421,30 @@ function Qs(e, t = {}) {
|
|
|
421
421
|
2,
|
|
422
422
|
"{"
|
|
423
423
|
/* TokenChars.BraceLeft */
|
|
424
|
-
),
|
|
424
|
+
), D(r), o.braceNest++, _;
|
|
425
425
|
case "}":
|
|
426
426
|
return o.braceNest > 0 && o.currentType === 2 && C(se.EMPTY_PLACEHOLDER, a(), 0), r.next(), _ = N(
|
|
427
427
|
o,
|
|
428
428
|
3,
|
|
429
429
|
"}"
|
|
430
430
|
/* TokenChars.BraceRight */
|
|
431
|
-
), o.braceNest--, o.braceNest > 0 &&
|
|
431
|
+
), o.braceNest--, o.braceNest > 0 && D(r), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), _;
|
|
432
432
|
case "@":
|
|
433
433
|
return o.braceNest > 0 && C(se.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = Te(r, o) || F(o), o.braceNest = 0, _;
|
|
434
434
|
default: {
|
|
435
|
-
let M = !0, P = !0,
|
|
435
|
+
let M = !0, P = !0, p = !0;
|
|
436
436
|
if (X(r))
|
|
437
|
-
return o.braceNest > 0 && C(se.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = N(o, 1,
|
|
437
|
+
return o.braceNest > 0 && C(se.UNTERMINATED_CLOSING_BRACE, a(), 0), _ = N(o, 1, xe(r)), o.braceNest = 0, o.inLinked = !1, _;
|
|
438
438
|
if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
|
|
439
|
-
return C(se.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0,
|
|
439
|
+
return C(se.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, Be(r, o);
|
|
440
440
|
if (M = S(r, o))
|
|
441
|
-
return _ = N(o, 4, _e(r)),
|
|
441
|
+
return _ = N(o, 4, _e(r)), D(r), _;
|
|
442
442
|
if (P = c(r, o))
|
|
443
|
-
return _ = N(o, 5, ce(r)),
|
|
444
|
-
if (
|
|
445
|
-
return _ = N(o, 6,
|
|
446
|
-
if (!M && !P && !
|
|
447
|
-
return _ = N(o, 12,
|
|
443
|
+
return _ = N(o, 5, ce(r)), D(r), _;
|
|
444
|
+
if (p = b(r, o))
|
|
445
|
+
return _ = N(o, 6, fe(r)), D(r), _;
|
|
446
|
+
if (!M && !P && !p)
|
|
447
|
+
return _ = N(o, 12, ve(r)), C(se.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, _.value), D(r), _;
|
|
448
448
|
break;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
@@ -452,35 +452,35 @@ function Qs(e, t = {}) {
|
|
|
452
452
|
}
|
|
453
453
|
function Te(r, o) {
|
|
454
454
|
const { currentType: _ } = o;
|
|
455
|
-
let
|
|
455
|
+
let A = null;
|
|
456
456
|
const M = r.currentChar();
|
|
457
|
-
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M ===
|
|
457
|
+
switch ((_ === 7 || _ === 8 || _ === 11 || _ === 9) && (M === Ie || M === Pe) && C(se.INVALID_LINKED_FORMAT, a(), 0), M) {
|
|
458
458
|
case "@":
|
|
459
|
-
return r.next(),
|
|
459
|
+
return r.next(), A = N(
|
|
460
460
|
o,
|
|
461
461
|
7,
|
|
462
462
|
"@"
|
|
463
463
|
/* TokenChars.LinkedAlias */
|
|
464
|
-
), o.inLinked = !0,
|
|
464
|
+
), o.inLinked = !0, A;
|
|
465
465
|
case ".":
|
|
466
|
-
return
|
|
466
|
+
return D(r), r.next(), N(
|
|
467
467
|
o,
|
|
468
468
|
8,
|
|
469
469
|
"."
|
|
470
470
|
/* TokenChars.LinkedDot */
|
|
471
471
|
);
|
|
472
472
|
case ":":
|
|
473
|
-
return
|
|
473
|
+
return D(r), r.next(), N(
|
|
474
474
|
o,
|
|
475
475
|
9,
|
|
476
476
|
":"
|
|
477
477
|
/* TokenChars.LinkedDelimiter */
|
|
478
478
|
);
|
|
479
479
|
default:
|
|
480
|
-
return X(r) ? (
|
|
480
|
+
return X(r) ? (A = N(o, 1, xe(r)), o.braceNest = 0, o.inLinked = !1, A) : E(r, o) || R(r, o) ? (D(r), Te(r, o)) : v(r, o) ? (D(r), N(o, 11, Je(r))) : k(r, o) ? (D(r), M === "{" ? Fe(r, o) || A : N(o, 10, Ke(r))) : (_ === 7 && C(se.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, Be(r, o));
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function Be(r, o) {
|
|
484
484
|
let _ = {
|
|
485
485
|
type: 13
|
|
486
486
|
/* TokenTypes.EOF */
|
|
@@ -503,8 +503,8 @@ function Qs(e, t = {}) {
|
|
|
503
503
|
return Te(r, o) || F(o);
|
|
504
504
|
default: {
|
|
505
505
|
if (X(r))
|
|
506
|
-
return _ = N(o, 1,
|
|
507
|
-
if (
|
|
506
|
+
return _ = N(o, 1, xe(r)), o.braceNest = 0, o.inLinked = !1, _;
|
|
507
|
+
if (V(r))
|
|
508
508
|
return N(o, 0, Q(r));
|
|
509
509
|
break;
|
|
510
510
|
}
|
|
@@ -512,12 +512,12 @@ function Qs(e, t = {}) {
|
|
|
512
512
|
return _;
|
|
513
513
|
}
|
|
514
514
|
function O() {
|
|
515
|
-
const { currentType: r, offset: o, startLoc: _, endLoc:
|
|
516
|
-
return i.lastType = r, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc =
|
|
515
|
+
const { currentType: r, offset: o, startLoc: _, endLoc: A } = i;
|
|
516
|
+
return i.lastType = r, i.lastOffset = o, i.lastStartLoc = _, i.lastEndLoc = A, i.offset = l(), i.startLoc = a(), s.currentChar() === Ve ? N(
|
|
517
517
|
i,
|
|
518
518
|
13
|
|
519
519
|
/* TokenTypes.EOF */
|
|
520
|
-
) :
|
|
520
|
+
) : Be(s, i);
|
|
521
521
|
}
|
|
522
522
|
return {
|
|
523
523
|
nextToken: O,
|
|
@@ -541,136 +541,136 @@ function tr(e, t, n) {
|
|
|
541
541
|
}
|
|
542
542
|
function nr(e = {}) {
|
|
543
543
|
const t = e.location !== !1, { onError: n } = e;
|
|
544
|
-
function s(
|
|
545
|
-
const
|
|
546
|
-
if (
|
|
547
|
-
const
|
|
544
|
+
function s(f, h, S, c, ...b) {
|
|
545
|
+
const E = f.currentPosition();
|
|
546
|
+
if (E.offset += c, E.column += c, n) {
|
|
547
|
+
const v = t ? Ft(S, E) : null, R = Ct(h, v, {
|
|
548
548
|
domain: qs,
|
|
549
549
|
args: b
|
|
550
550
|
});
|
|
551
|
-
n(
|
|
551
|
+
n(R);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
function l(
|
|
555
|
-
const c = { type:
|
|
554
|
+
function l(f, h, S) {
|
|
555
|
+
const c = { type: f };
|
|
556
556
|
return t && (c.start = h, c.end = h, c.loc = { start: S, end: S }), c;
|
|
557
557
|
}
|
|
558
|
-
function a(
|
|
559
|
-
t && (
|
|
558
|
+
function a(f, h, S, c) {
|
|
559
|
+
t && (f.end = h, f.loc && (f.loc.end = S));
|
|
560
560
|
}
|
|
561
|
-
function d(
|
|
562
|
-
const S =
|
|
563
|
-
return c.value = h, a(c,
|
|
561
|
+
function d(f, h) {
|
|
562
|
+
const S = f.context(), c = l(3, S.offset, S.startLoc);
|
|
563
|
+
return c.value = h, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
564
564
|
}
|
|
565
|
-
function u(
|
|
566
|
-
const S =
|
|
567
|
-
return
|
|
565
|
+
function u(f, h) {
|
|
566
|
+
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, E = l(5, c, b);
|
|
567
|
+
return E.index = parseInt(h, 10), f.nextToken(), a(E, f.currentOffset(), f.currentPosition()), E;
|
|
568
568
|
}
|
|
569
|
-
function i(
|
|
570
|
-
const S =
|
|
571
|
-
return
|
|
569
|
+
function i(f, h) {
|
|
570
|
+
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, E = l(4, c, b);
|
|
571
|
+
return E.key = h, f.nextToken(), a(E, f.currentOffset(), f.currentPosition()), E;
|
|
572
572
|
}
|
|
573
|
-
function g(
|
|
574
|
-
const S =
|
|
575
|
-
return
|
|
573
|
+
function g(f, h) {
|
|
574
|
+
const S = f.context(), { lastOffset: c, lastStartLoc: b } = S, E = l(9, c, b);
|
|
575
|
+
return E.value = h.replace(er, tr), f.nextToken(), a(E, f.currentOffset(), f.currentPosition()), E;
|
|
576
576
|
}
|
|
577
|
-
function
|
|
578
|
-
const h =
|
|
579
|
-
return h.type !== 11 ? (s(
|
|
577
|
+
function I(f) {
|
|
578
|
+
const h = f.nextToken(), S = f.context(), { lastOffset: c, lastStartLoc: b } = S, E = l(8, c, b);
|
|
579
|
+
return h.type !== 11 ? (s(f, se.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), E.value = "", a(E, c, b), {
|
|
580
580
|
nextConsumeToken: h,
|
|
581
|
-
node:
|
|
582
|
-
}) : (h.value == null && s(
|
|
583
|
-
node:
|
|
581
|
+
node: E
|
|
582
|
+
}) : (h.value == null && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, Ae(h)), E.value = h.value || "", a(E, f.currentOffset(), f.currentPosition()), {
|
|
583
|
+
node: E
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
|
-
function C(
|
|
587
|
-
const S =
|
|
588
|
-
return c.value = h, a(c,
|
|
586
|
+
function C(f, h) {
|
|
587
|
+
const S = f.context(), c = l(7, S.offset, S.startLoc);
|
|
588
|
+
return c.value = h, a(c, f.currentOffset(), f.currentPosition()), c;
|
|
589
589
|
}
|
|
590
|
-
function N(
|
|
591
|
-
const h =
|
|
592
|
-
let c =
|
|
590
|
+
function N(f) {
|
|
591
|
+
const h = f.context(), S = l(6, h.offset, h.startLoc);
|
|
592
|
+
let c = f.nextToken();
|
|
593
593
|
if (c.type === 8) {
|
|
594
|
-
const b =
|
|
595
|
-
S.modifier = b.node, c = b.nextConsumeToken ||
|
|
594
|
+
const b = I(f);
|
|
595
|
+
S.modifier = b.node, c = b.nextConsumeToken || f.nextToken();
|
|
596
596
|
}
|
|
597
|
-
switch (c.type !== 9 && s(
|
|
597
|
+
switch (c.type !== 9 && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(c)), c = f.nextToken(), c.type === 2 && (c = f.nextToken()), c.type) {
|
|
598
598
|
case 10:
|
|
599
|
-
c.value == null && s(
|
|
599
|
+
c.value == null && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(c)), S.key = C(f, c.value || "");
|
|
600
600
|
break;
|
|
601
601
|
case 4:
|
|
602
|
-
c.value == null && s(
|
|
602
|
+
c.value == null && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(c)), S.key = i(f, c.value || "");
|
|
603
603
|
break;
|
|
604
604
|
case 5:
|
|
605
|
-
c.value == null && s(
|
|
605
|
+
c.value == null && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(c)), S.key = u(f, c.value || "");
|
|
606
606
|
break;
|
|
607
607
|
case 6:
|
|
608
|
-
c.value == null && s(
|
|
608
|
+
c.value == null && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(c)), S.key = g(f, c.value || "");
|
|
609
609
|
break;
|
|
610
610
|
default: {
|
|
611
|
-
s(
|
|
612
|
-
const b =
|
|
613
|
-
return
|
|
611
|
+
s(f, se.UNEXPECTED_EMPTY_LINKED_KEY, h.lastStartLoc, 0);
|
|
612
|
+
const b = f.context(), E = l(7, b.offset, b.startLoc);
|
|
613
|
+
return E.value = "", a(E, b.offset, b.startLoc), S.key = E, a(S, b.offset, b.startLoc), {
|
|
614
614
|
nextConsumeToken: c,
|
|
615
615
|
node: S
|
|
616
616
|
};
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
return a(S,
|
|
619
|
+
return a(S, f.currentOffset(), f.currentPosition()), {
|
|
620
620
|
node: S
|
|
621
621
|
};
|
|
622
622
|
}
|
|
623
|
-
function F(
|
|
624
|
-
const h =
|
|
623
|
+
function F(f) {
|
|
624
|
+
const h = f.context(), S = h.currentType === 1 ? f.currentOffset() : h.offset, c = h.currentType === 1 ? h.endLoc : h.startLoc, b = l(2, S, c);
|
|
625
625
|
b.items = [];
|
|
626
|
-
let
|
|
626
|
+
let E = null;
|
|
627
627
|
do {
|
|
628
|
-
const
|
|
629
|
-
switch (
|
|
628
|
+
const k = E || f.nextToken();
|
|
629
|
+
switch (E = null, k.type) {
|
|
630
630
|
case 0:
|
|
631
|
-
|
|
631
|
+
k.value == null && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(k)), b.items.push(d(f, k.value || ""));
|
|
632
632
|
break;
|
|
633
633
|
case 5:
|
|
634
|
-
|
|
634
|
+
k.value == null && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(k)), b.items.push(u(f, k.value || ""));
|
|
635
635
|
break;
|
|
636
636
|
case 4:
|
|
637
|
-
|
|
637
|
+
k.value == null && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(k)), b.items.push(i(f, k.value || ""));
|
|
638
638
|
break;
|
|
639
639
|
case 6:
|
|
640
|
-
|
|
640
|
+
k.value == null && s(f, se.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, Ae(k)), b.items.push(g(f, k.value || ""));
|
|
641
641
|
break;
|
|
642
642
|
case 7: {
|
|
643
|
-
const X = N(
|
|
644
|
-
b.items.push(X.node),
|
|
643
|
+
const X = N(f);
|
|
644
|
+
b.items.push(X.node), E = X.nextConsumeToken || null;
|
|
645
645
|
break;
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
648
|
} while (h.currentType !== 13 && h.currentType !== 1);
|
|
649
|
-
const
|
|
650
|
-
return a(b,
|
|
651
|
-
}
|
|
652
|
-
function
|
|
653
|
-
const b =
|
|
654
|
-
let
|
|
655
|
-
const
|
|
656
|
-
|
|
649
|
+
const v = h.currentType === 1 ? h.lastOffset : f.currentOffset(), R = h.currentType === 1 ? h.lastEndLoc : f.currentPosition();
|
|
650
|
+
return a(b, v, R), b;
|
|
651
|
+
}
|
|
652
|
+
function w(f, h, S, c) {
|
|
653
|
+
const b = f.context();
|
|
654
|
+
let E = c.items.length === 0;
|
|
655
|
+
const v = l(1, h, S);
|
|
656
|
+
v.cases = [], v.cases.push(c);
|
|
657
657
|
do {
|
|
658
|
-
const
|
|
659
|
-
|
|
658
|
+
const R = F(f);
|
|
659
|
+
E || (E = R.items.length === 0), v.cases.push(R);
|
|
660
660
|
} while (b.currentType !== 13);
|
|
661
|
-
return
|
|
661
|
+
return E && s(f, se.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), a(v, f.currentOffset(), f.currentPosition()), v;
|
|
662
662
|
}
|
|
663
|
-
function
|
|
664
|
-
const h =
|
|
665
|
-
return h.currentType === 13 ? b :
|
|
663
|
+
function L(f) {
|
|
664
|
+
const h = f.context(), { offset: S, startLoc: c } = h, b = F(f);
|
|
665
|
+
return h.currentType === 13 ? b : w(f, S, c, b);
|
|
666
666
|
}
|
|
667
|
-
function
|
|
668
|
-
const h = Qs(
|
|
669
|
-
return t && c.loc && (c.loc.source =
|
|
667
|
+
function D(f) {
|
|
668
|
+
const h = Qs(f, Ee({}, e)), S = h.context(), c = l(0, S.offset, S.startLoc);
|
|
669
|
+
return t && c.loc && (c.loc.source = f), c.body = L(h), e.onCacheKey && (c.cacheKey = e.onCacheKey(f)), S.currentType !== 13 && s(h, se.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, f[S.offset] || ""), a(c, h.currentOffset(), h.currentPosition()), c;
|
|
670
670
|
}
|
|
671
|
-
return { parse:
|
|
671
|
+
return { parse: D };
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function Ae(e) {
|
|
674
674
|
if (e.type === 13)
|
|
675
675
|
return "EOF";
|
|
676
676
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
@@ -823,20 +823,20 @@ function ar(e, t) {
|
|
|
823
823
|
};
|
|
824
824
|
a && e.loc && (d.source = e.loc.source);
|
|
825
825
|
const u = () => d;
|
|
826
|
-
function i(
|
|
827
|
-
d.code +=
|
|
826
|
+
function i(L, D) {
|
|
827
|
+
d.code += L;
|
|
828
828
|
}
|
|
829
|
-
function g(
|
|
830
|
-
const
|
|
831
|
-
i(l ?
|
|
829
|
+
function g(L, D = !0) {
|
|
830
|
+
const f = D ? s : "";
|
|
831
|
+
i(l ? f + " ".repeat(L) : f);
|
|
832
832
|
}
|
|
833
|
-
function
|
|
834
|
-
const
|
|
835
|
-
|
|
833
|
+
function I(L = !0) {
|
|
834
|
+
const D = ++d.indentLevel;
|
|
835
|
+
L && g(D);
|
|
836
836
|
}
|
|
837
|
-
function C(
|
|
838
|
-
const
|
|
839
|
-
|
|
837
|
+
function C(L = !0) {
|
|
838
|
+
const D = --d.indentLevel;
|
|
839
|
+
L && g(D);
|
|
840
840
|
}
|
|
841
841
|
function N() {
|
|
842
842
|
g(d.indentLevel);
|
|
@@ -844,10 +844,10 @@ function ar(e, t) {
|
|
|
844
844
|
return {
|
|
845
845
|
context: u,
|
|
846
846
|
push: i,
|
|
847
|
-
indent:
|
|
847
|
+
indent: I,
|
|
848
848
|
deindent: C,
|
|
849
849
|
newline: N,
|
|
850
|
-
helper: (
|
|
850
|
+
helper: (L) => `_${L}`,
|
|
851
851
|
needIndent: () => d.needIndent
|
|
852
852
|
};
|
|
853
853
|
}
|
|
@@ -933,7 +933,7 @@ function rt(e, t) {
|
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
935
|
const dr = (e, t = {}) => {
|
|
936
|
-
const n =
|
|
936
|
+
const n = Z(t.mode) ? t.mode : "normal", s = Z(t.filename) ? t.filename : "message.intl";
|
|
937
937
|
t.sourceMap;
|
|
938
938
|
const l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
939
939
|
`, a = t.needIndent ? t.needIndent : n !== "arrow", d = e.helpers || [], u = ar(e, {
|
|
@@ -941,7 +941,7 @@ const dr = (e, t = {}) => {
|
|
|
941
941
|
breakLineCode: l,
|
|
942
942
|
needIndent: a
|
|
943
943
|
});
|
|
944
|
-
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), d.length > 0 && (u.push(`const { ${$t(d.map((
|
|
944
|
+
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), d.length > 0 && (u.push(`const { ${$t(d.map((I) => `${I}: _${I}`), ", ")} } = ctx`), u.newline()), u.push("return "), rt(u, e), u.deindent(a), u.push("}"), delete e.helpers;
|
|
945
945
|
const { code: i, map: g } = u.context();
|
|
946
946
|
return {
|
|
947
947
|
ast: e,
|
|
@@ -950,18 +950,18 @@ const dr = (e, t = {}) => {
|
|
|
950
950
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
951
951
|
};
|
|
952
952
|
};
|
|
953
|
-
function
|
|
954
|
-
const n =
|
|
953
|
+
function mr(e, t = {}) {
|
|
954
|
+
const n = Ee({}, t), s = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize, u = nr(n).parse(e);
|
|
955
955
|
return s ? (a && or(u), l && Qe(u), { ast: u, code: "" }) : (rr(u, n), dr(u, n));
|
|
956
956
|
}
|
|
957
|
-
var
|
|
957
|
+
var fr = { env: { NODE_ENV: "production" } };
|
|
958
958
|
function _r() {
|
|
959
959
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Xe().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Xe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
960
960
|
}
|
|
961
|
-
function
|
|
962
|
-
return (n) =>
|
|
961
|
+
function Lt(e) {
|
|
962
|
+
return (n) => vr(n, e);
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function vr(e, t) {
|
|
965
965
|
const n = hr(t);
|
|
966
966
|
if (n == null)
|
|
967
967
|
throw it(
|
|
@@ -972,21 +972,21 @@ function pr(e, t) {
|
|
|
972
972
|
const a = gr(n);
|
|
973
973
|
return e.plural(a.reduce((d, u) => [
|
|
974
974
|
...d,
|
|
975
|
-
|
|
975
|
+
mn(e, u)
|
|
976
976
|
], []));
|
|
977
977
|
} else
|
|
978
|
-
return
|
|
978
|
+
return mn(e, n);
|
|
979
979
|
}
|
|
980
|
-
const
|
|
980
|
+
const pr = ["b", "body"];
|
|
981
981
|
function hr(e) {
|
|
982
|
-
return
|
|
982
|
+
return We(e, pr);
|
|
983
983
|
}
|
|
984
984
|
const br = ["c", "cases"];
|
|
985
985
|
function gr(e) {
|
|
986
|
-
return
|
|
986
|
+
return We(e, br, []);
|
|
987
987
|
}
|
|
988
|
-
function
|
|
989
|
-
const n =
|
|
988
|
+
function mn(e, t) {
|
|
989
|
+
const n = Ir(t);
|
|
990
990
|
if (n != null)
|
|
991
991
|
return e.type === "text" ? n : e.normalize([n]);
|
|
992
992
|
{
|
|
@@ -994,13 +994,13 @@ function fn(e, t) {
|
|
|
994
994
|
return e.normalize(s);
|
|
995
995
|
}
|
|
996
996
|
}
|
|
997
|
-
const
|
|
998
|
-
function
|
|
999
|
-
return
|
|
997
|
+
const Er = ["s", "static"];
|
|
998
|
+
function Ir(e) {
|
|
999
|
+
return We(e, Er);
|
|
1000
1000
|
}
|
|
1001
|
-
const
|
|
1001
|
+
const yr = ["i", "items"];
|
|
1002
1002
|
function Nr(e) {
|
|
1003
|
-
return
|
|
1003
|
+
return We(e, yr, []);
|
|
1004
1004
|
}
|
|
1005
1005
|
function Pt(e, t) {
|
|
1006
1006
|
const n = Kt(t);
|
|
@@ -1011,22 +1011,22 @@ function Pt(e, t) {
|
|
|
1011
1011
|
return _t(t, n);
|
|
1012
1012
|
case 4: {
|
|
1013
1013
|
const s = t;
|
|
1014
|
-
if (
|
|
1014
|
+
if (ke(s, "k") && s.k)
|
|
1015
1015
|
return e.interpolate(e.named(s.k));
|
|
1016
|
-
if (
|
|
1016
|
+
if (ke(s, "key") && s.key)
|
|
1017
1017
|
return e.interpolate(e.named(s.key));
|
|
1018
1018
|
throw it(n);
|
|
1019
1019
|
}
|
|
1020
1020
|
case 5: {
|
|
1021
1021
|
const s = t;
|
|
1022
|
-
if (
|
|
1022
|
+
if (ke(s, "i") && ge(s.i))
|
|
1023
1023
|
return e.interpolate(e.list(s.i));
|
|
1024
|
-
if (
|
|
1024
|
+
if (ke(s, "index") && ge(s.index))
|
|
1025
1025
|
return e.interpolate(e.list(s.index));
|
|
1026
1026
|
throw it(n);
|
|
1027
1027
|
}
|
|
1028
1028
|
case 6: {
|
|
1029
|
-
const s = t, l = Sr(s), a =
|
|
1029
|
+
const s = t, l = Sr(s), a = Lr(s);
|
|
1030
1030
|
return e.linked(Pt(e, a), l ? Pt(e, l) : void 0, e.type);
|
|
1031
1031
|
}
|
|
1032
1032
|
case 7:
|
|
@@ -1039,22 +1039,22 @@ function Pt(e, t) {
|
|
|
1039
1039
|
}
|
|
1040
1040
|
const Tr = ["t", "type"];
|
|
1041
1041
|
function Kt(e) {
|
|
1042
|
-
return
|
|
1042
|
+
return We(e, Tr);
|
|
1043
1043
|
}
|
|
1044
1044
|
const Cr = ["v", "value"];
|
|
1045
1045
|
function _t(e, t) {
|
|
1046
|
-
const n =
|
|
1046
|
+
const n = We(e, Cr);
|
|
1047
1047
|
if (n)
|
|
1048
1048
|
return n;
|
|
1049
1049
|
throw it(t);
|
|
1050
1050
|
}
|
|
1051
1051
|
const Or = ["m", "modifier"];
|
|
1052
1052
|
function Sr(e) {
|
|
1053
|
-
return
|
|
1053
|
+
return We(e, Or);
|
|
1054
1054
|
}
|
|
1055
|
-
const
|
|
1056
|
-
function
|
|
1057
|
-
const t =
|
|
1055
|
+
const kr = ["k", "key"];
|
|
1056
|
+
function Lr(e) {
|
|
1057
|
+
const t = We(e, kr);
|
|
1058
1058
|
if (t)
|
|
1059
1059
|
return t;
|
|
1060
1060
|
throw it(
|
|
@@ -1062,10 +1062,10 @@ function kr(e) {
|
|
|
1062
1062
|
/* NodeTypes.Linked */
|
|
1063
1063
|
);
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1065
|
+
function We(e, t, n) {
|
|
1066
1066
|
for (let s = 0; s < t.length; s++) {
|
|
1067
1067
|
const l = t[s];
|
|
1068
|
-
if (
|
|
1068
|
+
if (ke(e, l) && e[l] != null)
|
|
1069
1069
|
return e[l];
|
|
1070
1070
|
}
|
|
1071
1071
|
return n;
|
|
@@ -1073,45 +1073,45 @@ function Ge(e, t, n) {
|
|
|
1073
1073
|
function it(e) {
|
|
1074
1074
|
return new Error(`unhandled node type: ${e}`);
|
|
1075
1075
|
}
|
|
1076
|
-
const
|
|
1077
|
-
let
|
|
1076
|
+
const Ar = (e) => e;
|
|
1077
|
+
let vt = oe();
|
|
1078
1078
|
function ot(e) {
|
|
1079
|
-
return te(e) && Kt(e) === 0 && (
|
|
1079
|
+
return te(e) && Kt(e) === 0 && (ke(e, "b") || ke(e, "body"));
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1081
|
+
function Rr(e, t = {}) {
|
|
1082
1082
|
let n = !1;
|
|
1083
1083
|
const s = t.onError || Ys;
|
|
1084
1084
|
return t.onError = (l) => {
|
|
1085
1085
|
n = !0, s(l);
|
|
1086
|
-
}, { ...
|
|
1086
|
+
}, { ...mr(e, t), detectError: n };
|
|
1087
1087
|
}
|
|
1088
1088
|
// @__NO_SIDE_EFFECTS__
|
|
1089
1089
|
function Mr(e, t) {
|
|
1090
|
-
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ &&
|
|
1091
|
-
|
|
1092
|
-
const s = (t.onCacheKey ||
|
|
1090
|
+
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && Z(e)) {
|
|
1091
|
+
pe(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1092
|
+
const s = (t.onCacheKey || Ar)(e), l = vt[s];
|
|
1093
1093
|
if (l)
|
|
1094
1094
|
return l;
|
|
1095
|
-
const { ast: a, detectError: d } =
|
|
1095
|
+
const { ast: a, detectError: d } = Rr(e, {
|
|
1096
1096
|
...t,
|
|
1097
|
-
location:
|
|
1097
|
+
location: fr.env.NODE_ENV !== "production",
|
|
1098
1098
|
jit: !0
|
|
1099
|
-
}), u =
|
|
1100
|
-
return d ? u :
|
|
1099
|
+
}), u = Lt(a);
|
|
1100
|
+
return d ? u : vt[s] = u;
|
|
1101
1101
|
} else {
|
|
1102
1102
|
const n = e.cacheKey;
|
|
1103
1103
|
if (n) {
|
|
1104
|
-
const s =
|
|
1105
|
-
return s || (
|
|
1104
|
+
const s = vt[n];
|
|
1105
|
+
return s || (vt[n] = Lt(e));
|
|
1106
1106
|
} else
|
|
1107
|
-
return
|
|
1107
|
+
return Lt(e);
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
1110
|
let ct = null;
|
|
1111
|
-
function
|
|
1111
|
+
function wr(e) {
|
|
1112
1112
|
ct = e;
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1114
|
+
function Dr(e, t, n) {
|
|
1115
1115
|
ct && ct.emit("i18n:init", {
|
|
1116
1116
|
timestamp: Date.now(),
|
|
1117
1117
|
i18n: e,
|
|
@@ -1124,7 +1124,7 @@ function Pr(e) {
|
|
|
1124
1124
|
return (t) => ct && ct.emit(e, t);
|
|
1125
1125
|
}
|
|
1126
1126
|
const je = {
|
|
1127
|
-
INVALID_ARGUMENT:
|
|
1127
|
+
INVALID_ARGUMENT: Bs,
|
|
1128
1128
|
// 17
|
|
1129
1129
|
INVALID_DATE_ARGUMENT: 18,
|
|
1130
1130
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1136,20 +1136,20 @@ function Ue(e) {
|
|
|
1136
1136
|
return Ct(e, null, void 0);
|
|
1137
1137
|
}
|
|
1138
1138
|
function zt(e, t) {
|
|
1139
|
-
return t.locale != null ?
|
|
1139
|
+
return t.locale != null ? fn(t.locale) : fn(e.locale);
|
|
1140
1140
|
}
|
|
1141
|
-
let
|
|
1142
|
-
function
|
|
1143
|
-
if (
|
|
1141
|
+
let At;
|
|
1142
|
+
function fn(e) {
|
|
1143
|
+
if (Z(e))
|
|
1144
1144
|
return e;
|
|
1145
|
-
if (
|
|
1146
|
-
if (e.resolvedOnce &&
|
|
1147
|
-
return
|
|
1145
|
+
if (me(e)) {
|
|
1146
|
+
if (e.resolvedOnce && At != null)
|
|
1147
|
+
return At;
|
|
1148
1148
|
if (e.constructor.name === "Function") {
|
|
1149
1149
|
const t = e();
|
|
1150
|
-
if (
|
|
1150
|
+
if (Vs(t))
|
|
1151
1151
|
throw Ue(je.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1152
|
-
return
|
|
1152
|
+
return At = t;
|
|
1153
1153
|
} else
|
|
1154
1154
|
throw Ue(je.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1155
1155
|
} else
|
|
@@ -1158,11 +1158,11 @@ function mn(e) {
|
|
|
1158
1158
|
function Ur(e, t, n) {
|
|
1159
1159
|
return [.../* @__PURE__ */ new Set([
|
|
1160
1160
|
n,
|
|
1161
|
-
...be(t) ? t : te(t) ? Object.keys(t) :
|
|
1161
|
+
...be(t) ? t : te(t) ? Object.keys(t) : Z(t) ? [t] : [n]
|
|
1162
1162
|
])];
|
|
1163
1163
|
}
|
|
1164
1164
|
function Hn(e, t, n) {
|
|
1165
|
-
const s =
|
|
1165
|
+
const s = Z(n) ? n : Nt, l = e;
|
|
1166
1166
|
l.__localeChainCache || (l.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1167
1167
|
let a = l.__localeChainCache.get(s);
|
|
1168
1168
|
if (!a) {
|
|
@@ -1171,28 +1171,28 @@ function Hn(e, t, n) {
|
|
|
1171
1171
|
for (; be(d); )
|
|
1172
1172
|
d = _n(a, d, t);
|
|
1173
1173
|
const u = be(t) || !ee(t) ? t : t.default ? t.default : null;
|
|
1174
|
-
d =
|
|
1174
|
+
d = Z(u) ? [u] : u, be(d) && _n(a, d, !1), l.__localeChainCache.set(s, a);
|
|
1175
1175
|
}
|
|
1176
1176
|
return a;
|
|
1177
1177
|
}
|
|
1178
1178
|
function _n(e, t, n) {
|
|
1179
1179
|
let s = !0;
|
|
1180
|
-
for (let l = 0; l < t.length &&
|
|
1180
|
+
for (let l = 0; l < t.length && pe(s); l++) {
|
|
1181
1181
|
const a = t[l];
|
|
1182
|
-
|
|
1182
|
+
Z(a) && (s = xr(e, t[l], n));
|
|
1183
1183
|
}
|
|
1184
1184
|
return s;
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1186
|
+
function xr(e, t, n) {
|
|
1187
1187
|
let s;
|
|
1188
1188
|
const l = t.split("-");
|
|
1189
1189
|
do {
|
|
1190
1190
|
const a = l.join("-");
|
|
1191
|
-
s =
|
|
1191
|
+
s = Vr(e, a, n), l.splice(-1, 1);
|
|
1192
1192
|
} while (l.length && s === !0);
|
|
1193
1193
|
return s;
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1195
|
+
function Vr(e, t, n) {
|
|
1196
1196
|
let s = !1;
|
|
1197
1197
|
if (!e.includes(t) && (s = !0, t)) {
|
|
1198
1198
|
s = t[t.length - 1] !== "!";
|
|
@@ -1201,8 +1201,8 @@ function Wr(e, t, n) {
|
|
|
1201
1201
|
}
|
|
1202
1202
|
return s;
|
|
1203
1203
|
}
|
|
1204
|
-
const
|
|
1205
|
-
|
|
1204
|
+
const Ze = [];
|
|
1205
|
+
Ze[
|
|
1206
1206
|
0
|
|
1207
1207
|
/* States.BEFORE_PATH */
|
|
1208
1208
|
] = {
|
|
@@ -1224,7 +1224,7 @@ Be[
|
|
|
1224
1224
|
/* States.AFTER_PATH */
|
|
1225
1225
|
]
|
|
1226
1226
|
};
|
|
1227
|
-
|
|
1227
|
+
Ze[
|
|
1228
1228
|
1
|
|
1229
1229
|
/* States.IN_PATH */
|
|
1230
1230
|
] = {
|
|
@@ -1245,7 +1245,7 @@ Be[
|
|
|
1245
1245
|
/* States.AFTER_PATH */
|
|
1246
1246
|
]
|
|
1247
1247
|
};
|
|
1248
|
-
|
|
1248
|
+
Ze[
|
|
1249
1249
|
2
|
|
1250
1250
|
/* States.BEFORE_IDENT */
|
|
1251
1251
|
] = {
|
|
@@ -1264,7 +1264,7 @@ Be[
|
|
|
1264
1264
|
/* Actions.APPEND */
|
|
1265
1265
|
]
|
|
1266
1266
|
};
|
|
1267
|
-
|
|
1267
|
+
Ze[
|
|
1268
1268
|
3
|
|
1269
1269
|
/* States.IN_IDENT */
|
|
1270
1270
|
] = {
|
|
@@ -1299,7 +1299,7 @@ Be[
|
|
|
1299
1299
|
/* Actions.PUSH */
|
|
1300
1300
|
]
|
|
1301
1301
|
};
|
|
1302
|
-
|
|
1302
|
+
Ze[
|
|
1303
1303
|
4
|
|
1304
1304
|
/* States.IN_SUB_PATH */
|
|
1305
1305
|
] = {
|
|
@@ -1330,7 +1330,7 @@ Be[
|
|
|
1330
1330
|
/* Actions.APPEND */
|
|
1331
1331
|
]
|
|
1332
1332
|
};
|
|
1333
|
-
|
|
1333
|
+
Ze[
|
|
1334
1334
|
5
|
|
1335
1335
|
/* States.IN_SINGLE_QUOTE */
|
|
1336
1336
|
] = {
|
|
@@ -1346,7 +1346,7 @@ Be[
|
|
|
1346
1346
|
/* Actions.APPEND */
|
|
1347
1347
|
]
|
|
1348
1348
|
};
|
|
1349
|
-
|
|
1349
|
+
Ze[
|
|
1350
1350
|
6
|
|
1351
1351
|
/* States.IN_DOUBLE_QUOTE */
|
|
1352
1352
|
] = {
|
|
@@ -1362,15 +1362,15 @@ Be[
|
|
|
1362
1362
|
/* Actions.APPEND */
|
|
1363
1363
|
]
|
|
1364
1364
|
};
|
|
1365
|
-
const
|
|
1366
|
-
function
|
|
1367
|
-
return
|
|
1365
|
+
const Gr = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1366
|
+
function Wr(e) {
|
|
1367
|
+
return Gr.test(e);
|
|
1368
1368
|
}
|
|
1369
|
-
function
|
|
1369
|
+
function Zr(e) {
|
|
1370
1370
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1371
1371
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function Br(e) {
|
|
1374
1374
|
if (e == null)
|
|
1375
1375
|
return "o";
|
|
1376
1376
|
switch (e.charCodeAt(0)) {
|
|
@@ -1397,11 +1397,11 @@ function Zr(e) {
|
|
|
1397
1397
|
}
|
|
1398
1398
|
function Yr(e) {
|
|
1399
1399
|
const t = e.trim();
|
|
1400
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1400
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Wr(t) ? Zr(t) : "*" + t;
|
|
1401
1401
|
}
|
|
1402
1402
|
function Xr(e) {
|
|
1403
1403
|
const t = [];
|
|
1404
|
-
let n = -1, s = 0, l = 0, a, d, u, i, g,
|
|
1404
|
+
let n = -1, s = 0, l = 0, a, d, u, i, g, I, C;
|
|
1405
1405
|
const N = [];
|
|
1406
1406
|
N[
|
|
1407
1407
|
0
|
|
@@ -1440,47 +1440,47 @@ function Xr(e) {
|
|
|
1440
1440
|
}
|
|
1441
1441
|
};
|
|
1442
1442
|
function F() {
|
|
1443
|
-
const
|
|
1444
|
-
if (s === 5 &&
|
|
1445
|
-
return n++, u = "\\" +
|
|
1443
|
+
const w = e[n + 1];
|
|
1444
|
+
if (s === 5 && w === "'" || s === 6 && w === '"')
|
|
1445
|
+
return n++, u = "\\" + w, N[
|
|
1446
1446
|
0
|
|
1447
1447
|
/* Actions.APPEND */
|
|
1448
1448
|
](), !0;
|
|
1449
1449
|
}
|
|
1450
1450
|
for (; s !== null; )
|
|
1451
1451
|
if (n++, a = e[n], !(a === "\\" && F())) {
|
|
1452
|
-
if (i =
|
|
1452
|
+
if (i = Br(a), C = Ze[s], g = C[i] || C.l || 8, g === 8 || (s = g[0], g[1] !== void 0 && (I = N[g[1]], I && (u = a, I() === !1))))
|
|
1453
1453
|
return;
|
|
1454
1454
|
if (s === 7)
|
|
1455
1455
|
return t;
|
|
1456
1456
|
}
|
|
1457
1457
|
}
|
|
1458
|
-
const
|
|
1458
|
+
const vn = /* @__PURE__ */ new Map();
|
|
1459
1459
|
function Hr(e, t) {
|
|
1460
1460
|
return te(e) ? e[t] : null;
|
|
1461
1461
|
}
|
|
1462
1462
|
function $r(e, t) {
|
|
1463
1463
|
if (!te(e))
|
|
1464
1464
|
return null;
|
|
1465
|
-
let n =
|
|
1466
|
-
if (n || (n = Xr(t), n &&
|
|
1465
|
+
let n = vn.get(t);
|
|
1466
|
+
if (n || (n = Xr(t), n && vn.set(t, n)), !n)
|
|
1467
1467
|
return null;
|
|
1468
1468
|
const s = n.length;
|
|
1469
1469
|
let l = e, a = 0;
|
|
1470
1470
|
for (; a < s; ) {
|
|
1471
1471
|
const d = l[n[a]];
|
|
1472
|
-
if (d === void 0 ||
|
|
1472
|
+
if (d === void 0 || me(l))
|
|
1473
1473
|
return null;
|
|
1474
1474
|
l = d, a++;
|
|
1475
1475
|
}
|
|
1476
1476
|
return l;
|
|
1477
1477
|
}
|
|
1478
|
-
const Jr = "10.0.5", Ot = -1, Nt = "en-US",
|
|
1478
|
+
const Jr = "10.0.5", Ot = -1, Nt = "en-US", pn = "", hn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1479
1479
|
function Kr() {
|
|
1480
1480
|
return {
|
|
1481
|
-
upper: (e, t) => t === "text" &&
|
|
1482
|
-
lower: (e, t) => t === "text" &&
|
|
1483
|
-
capitalize: (e, t) => t === "text" &&
|
|
1481
|
+
upper: (e, t) => t === "text" && Z(e) ? e.toUpperCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1482
|
+
lower: (e, t) => t === "text" && Z(e) ? e.toLowerCase() : t === "vnode" && te(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1483
|
+
capitalize: (e, t) => t === "text" && Z(e) ? hn(e) : t === "vnode" && te(e) && "__v_isVNode" in e ? hn(e.children) : e
|
|
1484
1484
|
};
|
|
1485
1485
|
}
|
|
1486
1486
|
let $n;
|
|
@@ -1505,40 +1505,40 @@ const bn = (e) => {
|
|
|
1505
1505
|
}, no = () => Qn;
|
|
1506
1506
|
let gn = 0;
|
|
1507
1507
|
function so(e = {}) {
|
|
1508
|
-
const t =
|
|
1508
|
+
const t = me(e.onWarn) ? e.onWarn : Ws, n = Z(e.version) ? e.version : Jr, s = Z(e.locale) || me(e.locale) ? e.locale : Nt, l = me(s) ? Nt : s, 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 = Ee(oe(), e.modifiers, Kr()), I = e.pluralRules || oe(), C = me(e.missing) ? e.missing : null, N = pe(e.missingWarn) || yt(e.missingWarn) ? e.missingWarn : !0, F = pe(e.fallbackWarn) || yt(e.fallbackWarn) ? e.fallbackWarn : !0, w = !!e.fallbackFormat, L = !!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 || Hr, E = me(e.localeFallbacker) ? e.localeFallbacker : Kn || Ur, v = te(e.fallbackContext) ? e.fallbackContext : void 0, R = e, k = te(R.__datetimeFormatters) ? R.__datetimeFormatters : /* @__PURE__ */ new Map(), X = te(R.__numberFormatters) ? R.__numberFormatters : /* @__PURE__ */ new Map(), V = te(R.__meta) ? R.__meta : {};
|
|
1509
1509
|
gn++;
|
|
1510
|
-
const
|
|
1510
|
+
const m = {
|
|
1511
1511
|
version: n,
|
|
1512
1512
|
cid: gn,
|
|
1513
1513
|
locale: s,
|
|
1514
1514
|
fallbackLocale: a,
|
|
1515
1515
|
messages: d,
|
|
1516
1516
|
modifiers: g,
|
|
1517
|
-
pluralRules:
|
|
1517
|
+
pluralRules: I,
|
|
1518
1518
|
missing: C,
|
|
1519
1519
|
missingWarn: N,
|
|
1520
1520
|
fallbackWarn: F,
|
|
1521
|
-
fallbackFormat:
|
|
1522
|
-
unresolving:
|
|
1523
|
-
postTranslation:
|
|
1524
|
-
processor:
|
|
1521
|
+
fallbackFormat: w,
|
|
1522
|
+
unresolving: L,
|
|
1523
|
+
postTranslation: D,
|
|
1524
|
+
processor: f,
|
|
1525
1525
|
warnHtmlMessage: h,
|
|
1526
1526
|
escapeParameter: S,
|
|
1527
1527
|
messageCompiler: c,
|
|
1528
1528
|
messageResolver: b,
|
|
1529
|
-
localeFallbacker:
|
|
1530
|
-
fallbackContext:
|
|
1529
|
+
localeFallbacker: E,
|
|
1530
|
+
fallbackContext: v,
|
|
1531
1531
|
onWarn: t,
|
|
1532
|
-
__meta:
|
|
1532
|
+
__meta: V
|
|
1533
1533
|
};
|
|
1534
|
-
return
|
|
1534
|
+
return m.datetimeFormats = u, m.numberFormats = i, m.__datetimeFormatters = k, m.__numberFormatters = X, __INTLIFY_PROD_DEVTOOLS__ && Dr(m, n, V), m;
|
|
1535
1535
|
}
|
|
1536
|
-
const
|
|
1536
|
+
const Rt = (e) => ({ [e]: oe() });
|
|
1537
1537
|
function Qt(e, t, n, s, l) {
|
|
1538
1538
|
const { missing: a, onWarn: d } = e;
|
|
1539
1539
|
if (a !== null) {
|
|
1540
1540
|
const u = a(e, n, t, l);
|
|
1541
|
-
return
|
|
1541
|
+
return Z(u) ? u : t;
|
|
1542
1542
|
} else
|
|
1543
1543
|
return t;
|
|
1544
1544
|
}
|
|
@@ -1558,27 +1558,27 @@ function oo(e, t) {
|
|
|
1558
1558
|
return !0;
|
|
1559
1559
|
return !1;
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1562
|
-
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __datetimeFormatters: u } = e, [i, g,
|
|
1563
|
-
|
|
1564
|
-
const F = !!
|
|
1561
|
+
function En(e, ...t) {
|
|
1562
|
+
const { datetimeFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __datetimeFormatters: u } = e, [i, g, I, C] = jt(...t), N = pe(I.missingWarn) ? I.missingWarn : e.missingWarn;
|
|
1563
|
+
pe(I.fallbackWarn) ? I.fallbackWarn : e.fallbackWarn;
|
|
1564
|
+
const F = !!I.part, w = zt(e, I), L = d(
|
|
1565
1565
|
e,
|
|
1566
1566
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1567
1567
|
l,
|
|
1568
|
-
|
|
1568
|
+
w
|
|
1569
1569
|
);
|
|
1570
|
-
if (!
|
|
1571
|
-
return new Intl.DateTimeFormat(
|
|
1572
|
-
let
|
|
1570
|
+
if (!Z(i) || i === "")
|
|
1571
|
+
return new Intl.DateTimeFormat(w, C).format(g);
|
|
1572
|
+
let D = {}, f, h = null;
|
|
1573
1573
|
const S = "datetime format";
|
|
1574
|
-
for (let
|
|
1575
|
-
Qt(e, i,
|
|
1576
|
-
if (!ee(h) || !
|
|
1574
|
+
for (let E = 0; E < L.length && (f = L[E], D = n[f] || {}, h = D[i], !ee(h)); E++)
|
|
1575
|
+
Qt(e, i, f, N, S);
|
|
1576
|
+
if (!ee(h) || !Z(f))
|
|
1577
1577
|
return s ? Ot : i;
|
|
1578
|
-
let c = `${
|
|
1578
|
+
let c = `${f}__${i}`;
|
|
1579
1579
|
Tt(C) || (c = `${c}__${JSON.stringify(C)}`);
|
|
1580
1580
|
let b = u.get(c);
|
|
1581
|
-
return b || (b = new Intl.DateTimeFormat(
|
|
1581
|
+
return b || (b = new Intl.DateTimeFormat(f, Ee({}, h, C)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1582
1582
|
}
|
|
1583
1583
|
const qn = [
|
|
1584
1584
|
"localeMatcher",
|
|
@@ -1605,7 +1605,7 @@ const qn = [
|
|
|
1605
1605
|
function jt(...e) {
|
|
1606
1606
|
const [t, n, s, l] = e, a = oe();
|
|
1607
1607
|
let d = oe(), u;
|
|
1608
|
-
if (
|
|
1608
|
+
if (Z(t)) {
|
|
1609
1609
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1610
1610
|
if (!i)
|
|
1611
1611
|
throw Ue(je.INVALID_ISO_DATE_ARGUMENT);
|
|
@@ -1624,38 +1624,38 @@ function jt(...e) {
|
|
|
1624
1624
|
u = t;
|
|
1625
1625
|
else
|
|
1626
1626
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1627
|
-
return
|
|
1627
|
+
return Z(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1628
1628
|
qn.includes(i) ? d[i] = n[i] : a[i] = n[i];
|
|
1629
|
-
}),
|
|
1629
|
+
}), Z(s) ? a.locale = s : ee(s) && (d = s), ee(l) && (d = l), [a.key || "", u, a, d];
|
|
1630
1630
|
}
|
|
1631
|
-
function
|
|
1631
|
+
function In(e, t, n) {
|
|
1632
1632
|
const s = e;
|
|
1633
1633
|
for (const l in n) {
|
|
1634
1634
|
const a = `${t}__${l}`;
|
|
1635
1635
|
s.__datetimeFormatters.has(a) && s.__datetimeFormatters.delete(a);
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
1638
|
-
function
|
|
1639
|
-
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __numberFormatters: u } = e, [i, g,
|
|
1640
|
-
|
|
1641
|
-
const F = !!
|
|
1638
|
+
function yn(e, ...t) {
|
|
1639
|
+
const { numberFormats: n, unresolving: s, fallbackLocale: l, onWarn: a, localeFallbacker: d } = e, { __numberFormatters: u } = e, [i, g, I, C] = Ut(...t), N = pe(I.missingWarn) ? I.missingWarn : e.missingWarn;
|
|
1640
|
+
pe(I.fallbackWarn) ? I.fallbackWarn : e.fallbackWarn;
|
|
1641
|
+
const F = !!I.part, w = zt(e, I), L = d(
|
|
1642
1642
|
e,
|
|
1643
1643
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1644
1644
|
l,
|
|
1645
|
-
|
|
1645
|
+
w
|
|
1646
1646
|
);
|
|
1647
|
-
if (!
|
|
1648
|
-
return new Intl.NumberFormat(
|
|
1649
|
-
let
|
|
1647
|
+
if (!Z(i) || i === "")
|
|
1648
|
+
return new Intl.NumberFormat(w, C).format(g);
|
|
1649
|
+
let D = {}, f, h = null;
|
|
1650
1650
|
const S = "number format";
|
|
1651
|
-
for (let
|
|
1652
|
-
Qt(e, i,
|
|
1653
|
-
if (!ee(h) || !
|
|
1651
|
+
for (let E = 0; E < L.length && (f = L[E], D = n[f] || {}, h = D[i], !ee(h)); E++)
|
|
1652
|
+
Qt(e, i, f, N, S);
|
|
1653
|
+
if (!ee(h) || !Z(f))
|
|
1654
1654
|
return s ? Ot : i;
|
|
1655
|
-
let c = `${
|
|
1655
|
+
let c = `${f}__${i}`;
|
|
1656
1656
|
Tt(C) || (c = `${c}__${JSON.stringify(C)}`);
|
|
1657
1657
|
let b = u.get(c);
|
|
1658
|
-
return b || (b = new Intl.NumberFormat(
|
|
1658
|
+
return b || (b = new Intl.NumberFormat(f, Ee({}, h, C)), u.set(c, b)), F ? b.formatToParts(g) : b.format(g);
|
|
1659
1659
|
}
|
|
1660
1660
|
const es = [
|
|
1661
1661
|
"localeMatcher",
|
|
@@ -1685,9 +1685,9 @@ function Ut(...e) {
|
|
|
1685
1685
|
if (!ge(t))
|
|
1686
1686
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1687
1687
|
const u = t;
|
|
1688
|
-
return
|
|
1688
|
+
return Z(n) ? a.key = n : ee(n) && Object.keys(n).forEach((i) => {
|
|
1689
1689
|
es.includes(i) ? d[i] = n[i] : a[i] = n[i];
|
|
1690
|
-
}),
|
|
1690
|
+
}), Z(s) ? a.locale = s : ee(s) && (d = s), ee(l) && (d = l), [a.key || "", u, a, d];
|
|
1691
1691
|
}
|
|
1692
1692
|
function Nn(e, t, n) {
|
|
1693
1693
|
const s = e;
|
|
@@ -1696,97 +1696,97 @@ function Nn(e, t, n) {
|
|
|
1696
1696
|
s.__numberFormatters.has(a) && s.__numberFormatters.delete(a);
|
|
1697
1697
|
}
|
|
1698
1698
|
}
|
|
1699
|
-
const ao = (e) => e, lo = (e) => "", io = "text", co = (e) => e.length === 0 ? "" : $t(e), uo =
|
|
1699
|
+
const ao = (e) => e, lo = (e) => "", io = "text", co = (e) => e.length === 0 ? "" : $t(e), uo = Gs;
|
|
1700
1700
|
function Tn(e, t) {
|
|
1701
1701
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1702
1702
|
}
|
|
1703
|
-
function
|
|
1703
|
+
function mo(e) {
|
|
1704
1704
|
const t = ge(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1705
1705
|
return e.named && (ge(e.named.count) || ge(e.named.n)) ? ge(e.named.count) ? e.named.count : ge(e.named.n) ? e.named.n : t : t;
|
|
1706
1706
|
}
|
|
1707
|
-
function
|
|
1707
|
+
function fo(e, t) {
|
|
1708
1708
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1709
1709
|
}
|
|
1710
1710
|
function _o(e = {}) {
|
|
1711
|
-
const t = e.locale, n =
|
|
1712
|
-
ge(e.pluralIndex) &&
|
|
1713
|
-
const g = (
|
|
1714
|
-
function
|
|
1715
|
-
const S =
|
|
1716
|
-
return S || (e.parent ? e.parent.message(
|
|
1717
|
-
}
|
|
1718
|
-
const C = (
|
|
1711
|
+
const t = e.locale, n = mo(e), s = te(e.pluralRules) && Z(t) && me(e.pluralRules[t]) ? e.pluralRules[t] : Tn, l = te(e.pluralRules) && Z(t) && me(e.pluralRules[t]) ? Tn : void 0, a = (f) => f[s(n, f.length, l)], d = e.list || [], u = (f) => d[f], i = e.named || oe();
|
|
1712
|
+
ge(e.pluralIndex) && fo(n, i);
|
|
1713
|
+
const g = (f) => i[f];
|
|
1714
|
+
function I(f, h) {
|
|
1715
|
+
const S = me(e.messages) ? e.messages(f, !!h) : te(e.messages) ? e.messages[f] : !1;
|
|
1716
|
+
return S || (e.parent ? e.parent.message(f) : lo);
|
|
1717
|
+
}
|
|
1718
|
+
const C = (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
1719
|
list: u,
|
|
1720
1720
|
named: g,
|
|
1721
1721
|
plural: a,
|
|
1722
|
-
linked: (
|
|
1722
|
+
linked: (f, ...h) => {
|
|
1723
1723
|
const [S, c] = h;
|
|
1724
|
-
let b = "text",
|
|
1725
|
-
h.length === 1 ? te(S) ? (
|
|
1726
|
-
const
|
|
1724
|
+
let b = "text", E = "";
|
|
1725
|
+
h.length === 1 ? te(S) ? (E = S.modifier || E, b = S.type || b) : Z(S) && (E = S || E) : h.length === 2 && (Z(S) && (E = S || E), Z(c) && (b = c || b));
|
|
1726
|
+
const v = I(f, !0)(D), R = (
|
|
1727
1727
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1728
|
-
b === "vnode" && be(
|
|
1728
|
+
b === "vnode" && be(v) && E ? v[0] : v
|
|
1729
1729
|
);
|
|
1730
|
-
return
|
|
1730
|
+
return E ? C(E)(R, b) : R;
|
|
1731
1731
|
},
|
|
1732
|
-
message:
|
|
1733
|
-
type:
|
|
1732
|
+
message: I,
|
|
1733
|
+
type: w,
|
|
1734
1734
|
interpolate: F,
|
|
1735
1735
|
normalize: N,
|
|
1736
|
-
values:
|
|
1736
|
+
values: Ee(oe(), d, i)
|
|
1737
1737
|
};
|
|
1738
|
-
return
|
|
1738
|
+
return D;
|
|
1739
1739
|
}
|
|
1740
|
-
const Cn = () => "", Ce = (e) =>
|
|
1740
|
+
const Cn = () => "", Ce = (e) => me(e);
|
|
1741
1741
|
function On(e, ...t) {
|
|
1742
|
-
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: d, messages: u } = e, [i, g] =
|
|
1743
|
-
N &&
|
|
1744
|
-
let [
|
|
1742
|
+
const { fallbackFormat: n, postTranslation: s, unresolving: l, messageCompiler: a, fallbackLocale: d, messages: u } = e, [i, g] = xt(...t), I = pe(g.missingWarn) ? g.missingWarn : e.missingWarn, C = pe(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, N = pe(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, F = !!g.resolvedMessage, w = Z(g.default) || pe(g.default) ? pe(g.default) ? a ? i : () => i : g.default : n ? a ? i : () => i : null, L = n || w != null && (Z(w) || me(w)), D = zt(e, g);
|
|
1743
|
+
N && vo(g);
|
|
1744
|
+
let [f, h, S] = F ? [
|
|
1745
1745
|
i,
|
|
1746
|
-
|
|
1747
|
-
u[
|
|
1748
|
-
] : ts(e, i,
|
|
1749
|
-
if (!F && !(
|
|
1746
|
+
D,
|
|
1747
|
+
u[D] || oe()
|
|
1748
|
+
] : ts(e, i, D, d, C, I), c = f, b = i;
|
|
1749
|
+
if (!F && !(Z(c) || ot(c) || Ce(c)) && L && (c = w, b = c), !F && (!(Z(c) || ot(c) || Ce(c)) || !Z(h)))
|
|
1750
1750
|
return l ? Ot : i;
|
|
1751
|
-
let
|
|
1752
|
-
const
|
|
1753
|
-
|
|
1754
|
-
},
|
|
1755
|
-
if (
|
|
1751
|
+
let E = !1;
|
|
1752
|
+
const v = () => {
|
|
1753
|
+
E = !0;
|
|
1754
|
+
}, R = Ce(c) ? c : ns(e, i, h, c, b, v);
|
|
1755
|
+
if (E)
|
|
1756
1756
|
return c;
|
|
1757
|
-
const
|
|
1757
|
+
const k = bo(e, h, S, g), X = _o(k), V = po(e, R, X), m = s ? s(V, i) : V;
|
|
1758
1758
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1759
1759
|
const T = {
|
|
1760
1760
|
timestamp: Date.now(),
|
|
1761
|
-
key:
|
|
1761
|
+
key: Z(i) ? i : Ce(c) ? c.key : "",
|
|
1762
1762
|
locale: h || (Ce(c) ? c.locale : ""),
|
|
1763
|
-
format:
|
|
1764
|
-
message:
|
|
1763
|
+
format: Z(c) ? c : Ce(c) ? c.source : "",
|
|
1764
|
+
message: m
|
|
1765
1765
|
};
|
|
1766
|
-
T.meta =
|
|
1766
|
+
T.meta = Ee({}, e.__meta, /* @__PURE__ */ to() || {}), Fr(T);
|
|
1767
1767
|
}
|
|
1768
|
-
return
|
|
1768
|
+
return m;
|
|
1769
1769
|
}
|
|
1770
|
-
function
|
|
1771
|
-
be(e.list) ? e.list = e.list.map((t) =>
|
|
1772
|
-
|
|
1770
|
+
function vo(e) {
|
|
1771
|
+
be(e.list) ? e.list = e.list.map((t) => Z(t) ? ln(t) : t) : te(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1772
|
+
Z(e.named[t]) && (e.named[t] = ln(e.named[t]));
|
|
1773
1773
|
});
|
|
1774
1774
|
}
|
|
1775
1775
|
function ts(e, t, n, s, l, a) {
|
|
1776
|
-
const { messages: d, onWarn: u, messageResolver: i, localeFallbacker: g } = e,
|
|
1776
|
+
const { messages: d, onWarn: u, messageResolver: i, localeFallbacker: g } = e, I = g(e, s, n);
|
|
1777
1777
|
let C = oe(), N, F = null;
|
|
1778
|
-
const
|
|
1779
|
-
for (let
|
|
1780
|
-
if (!oo(N,
|
|
1781
|
-
const
|
|
1778
|
+
const w = "translate";
|
|
1779
|
+
for (let L = 0; L < I.length && (N = I[L], C = d[N] || oe(), (F = i(C, t)) === null && (F = C[t]), !(Z(F) || ot(F) || Ce(F))); L++)
|
|
1780
|
+
if (!oo(N, I)) {
|
|
1781
|
+
const D = Qt(
|
|
1782
1782
|
e,
|
|
1783
1783
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1784
1784
|
t,
|
|
1785
1785
|
N,
|
|
1786
1786
|
a,
|
|
1787
|
-
|
|
1787
|
+
w
|
|
1788
1788
|
);
|
|
1789
|
-
|
|
1789
|
+
D !== t && (F = D);
|
|
1790
1790
|
}
|
|
1791
1791
|
return [F, N, C];
|
|
1792
1792
|
}
|
|
@@ -1803,15 +1803,15 @@ function ns(e, t, n, s, l, a) {
|
|
|
1803
1803
|
const i = d(s, ho(e, n, l, s, u, a));
|
|
1804
1804
|
return i.locale = n, i.key = t, i.source = s, i;
|
|
1805
1805
|
}
|
|
1806
|
-
function
|
|
1806
|
+
function po(e, t, n) {
|
|
1807
1807
|
return t(n);
|
|
1808
1808
|
}
|
|
1809
|
-
function
|
|
1809
|
+
function xt(...e) {
|
|
1810
1810
|
const [t, n, s] = e, l = oe();
|
|
1811
|
-
if (!
|
|
1811
|
+
if (!Z(t) && !ge(t) && !Ce(t) && !ot(t))
|
|
1812
1812
|
throw Ue(je.INVALID_ARGUMENT);
|
|
1813
1813
|
const a = ge(t) ? String(t) : (Ce(t), t);
|
|
1814
|
-
return ge(n) ? l.plural = n :
|
|
1814
|
+
return ge(n) ? l.plural = n : Z(n) ? l.default = n : ee(n) && !Tt(n) ? l.named = n : be(n) && (l.list = n), ge(s) ? l.plural = s : Z(s) ? l.default = s : ee(s) && Ee(l, s), [a, l];
|
|
1815
1815
|
}
|
|
1816
1816
|
function ho(e, t, n, s, l, a) {
|
|
1817
1817
|
return {
|
|
@@ -1825,15 +1825,15 @@ function ho(e, t, n, s, l, a) {
|
|
|
1825
1825
|
};
|
|
1826
1826
|
}
|
|
1827
1827
|
function bo(e, t, n, s) {
|
|
1828
|
-
const { modifiers: l, pluralRules: a, messageResolver: d, fallbackLocale: u, fallbackWarn: i, missingWarn: g, fallbackContext:
|
|
1828
|
+
const { modifiers: l, pluralRules: a, messageResolver: d, fallbackLocale: u, fallbackWarn: i, missingWarn: g, fallbackContext: I } = e, N = {
|
|
1829
1829
|
locale: t,
|
|
1830
1830
|
modifiers: l,
|
|
1831
1831
|
pluralRules: a,
|
|
1832
|
-
messages: (F,
|
|
1833
|
-
let
|
|
1834
|
-
if (
|
|
1835
|
-
const [, ,
|
|
1836
|
-
|
|
1832
|
+
messages: (F, w) => {
|
|
1833
|
+
let L = d(n, F);
|
|
1834
|
+
if (L == null && (I || w)) {
|
|
1835
|
+
const [, , D] = ts(
|
|
1836
|
+
I || e,
|
|
1837
1837
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1838
1838
|
F,
|
|
1839
1839
|
t,
|
|
@@ -1841,23 +1841,23 @@ function bo(e, t, n, s) {
|
|
|
1841
1841
|
i,
|
|
1842
1842
|
g
|
|
1843
1843
|
);
|
|
1844
|
-
|
|
1844
|
+
L = d(D, F);
|
|
1845
1845
|
}
|
|
1846
|
-
if (
|
|
1847
|
-
let
|
|
1848
|
-
const h = ns(e, F, t,
|
|
1849
|
-
|
|
1846
|
+
if (Z(L) || ot(L)) {
|
|
1847
|
+
let D = !1;
|
|
1848
|
+
const h = ns(e, F, t, L, F, () => {
|
|
1849
|
+
D = !0;
|
|
1850
1850
|
});
|
|
1851
|
-
return
|
|
1852
|
-
} else return Ce(
|
|
1851
|
+
return D ? Cn : h;
|
|
1852
|
+
} else return Ce(L) ? L : Cn;
|
|
1853
1853
|
}
|
|
1854
1854
|
};
|
|
1855
1855
|
return e.processor && (N.processor = e.processor), s.list && (N.list = s.list), s.named && (N.named = s.named), ge(s.plural) && (N.pluralIndex = s.plural), N;
|
|
1856
1856
|
}
|
|
1857
1857
|
_r();
|
|
1858
|
-
var go = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_84458f34-a99c-411d-9473-bcf9abb994fe", 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_84458f34-a99c-411d-9473-bcf9abb994fe", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.8.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/30.0.16248370", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1764", ACTIONS_ORCHESTRATION_ID: "b1a25e26-7ee7-4658-9fac-bf52b1a769a9.publish.publish.__default", npm_config_engine_strict: "true", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20261004.327.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_84458f34-a99c-411d-9473-bcf9abb994fe", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:12795", 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: "37904615436", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "cd65897d5ad90f0d83e39d500ece597e39448446", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.8/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/feat/schedule-auto-schedule", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9mZWF0L3NjaGVkdWxlLWF1dG8tc2NoZWR1bGVcIixcIlBlcm1pc3Npb25cIjozfSx7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYWluXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwiYWNzbCI6IjEwIiwiYXVkIjoidnNvOjZmOTZmYTg5LWI3YmYtNDg3OC1iYWQzLTg5ODAwNjU2NmI2ZSIsImJpbGxpbmdfb3duZXJfaWQiOiJFX2tnRE9BQUpvWVEiLCJleHAiOjE3OTE1NTYzODgsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImlhdCI6MTc5MTUzNDE4OCwiaXNzIjoiaHR0cHM6Ly90b2tlbi5hY3Rpb25zLmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImpvYl9pZCI6Ijg4NjgyNjBlLTg5MzMtNTQ4MS1iOTExLTkyNTgyNDc2MDRjNiIsImpvYl93b3JrZmxvd19yZWYiOiJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW4iLCJqb2Jfd29ya2Zsb3dfc2hhIjoiMDlmNzZkOGFjNWU2YTA3MDc1NDI3NDllMWQ1Njg3YmYxZWFkNWYyYyIsIm5hbWVpZCI6ImRkZGRkZGRkLWRkZGQtZGRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsIm5iZiI6MTc5MTUzMzg4OCwib2lkY19leHRyYSI6IntcImFjdG9yXCI6XCJqdW4tbGVlLWZlZWRtZVwiLFwiYWN0b3JfaWRcIjpcIjIzOTI4Mjg2MlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCIxMTM3MzQ5NzU1MzFcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjA5Zjc2ZDhhYzVlNmEwNzA3NTQyNzQ5ZTFkNTY4N2JmMWVhZDVmMmNcIixcInJlZlwiOlwicmVmcy9oZWFkcy9mZWF0L3NjaGVkdWxlLWF1dG8tc2NoZWR1bGVcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJyZXBvc2l0b3J5XCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2VcIixcInJlcG9zaXRvcnlfaWRcIjpcIjExMjQ2NzIyMzVcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJ1bl9pZFwiOlwiMzc5MDQ2MTU0MzZcIixcInJ1bl9udW1iZXJcIjpcIjE4MlwiLFwicnVubmVyX2Vudmlyb25tZW50XCI6XCJnaXRodWItaG9zdGVkXCIsXCJzaGFcIjpcImNkNjU4OTdkNWFkOTBmMGQ4M2UzOWQ1MDBlY2U1OTdlMzk0NDg0NDZcIixcIndvcmtmbG93XCI6XCJQdWJsaXNoIGhybS1wb3J0YWxcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtaHJtLXBvcnRhbC10cnVzdGVkLnltbEByZWZzL2hlYWRzL2ZlYXQvc2NoZWR1bGUtYXV0by1zY2hlZHVsZVwiLFwid29ya2Zsb3dfc2hhXCI6XCJjZDY1ODk3ZDVhZDkwZjBkODNlMzlkNTAwZWNlNTk3ZTM5NDQ4NDQ2XCJ9Iiwib2lkY19zdWIiOiJyZXBvOmZlZWRtZXBvcy9ocm0tc2VydmljZTpyZWY6cmVmcy9oZWFkcy9mZWF0L3NjaGVkdWxlLWF1dG8tc2NoZWR1bGUiLCJvcmNoX2lkIjoiYjFhMjVlMjYtN2VlNy00NjU4LTlmYWMtYmY1MmIxYTc2OWE5LnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiJiMWEyNWUyNi03ZWU3LTQ2NTgtOWZhYy1iZjUyYjFhNzY5YTkiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiIzNzkwNDYxNTQzNiIsInJ1bl9udW1iZXIiOiIxODIiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMTg3NzUyIiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6YjFhMjVlMjYtN2VlNy00NjU4LTlmYWMtYmY1MmIxYTc2OWE5Ojg4NjgyNjBlLTg5MzMtNTQ4MS1iOTExLTkyNTgyNDc2MDRjNiBBY3Rpb25zLlJ1bm5lcjpiMWEyNWUyNi03ZWU3LTQ2NTgtOWZhYy1iZjUyYjFhNzY5YTk6ODg2ODI2MGUtODkzMy01NDgxLWI5MTEtOTI1ODI0NzYwNGM2IEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOmIxYTI1ZTI2LTdlZTctNDY1OC05ZmFjLWJmNTJiMWE3NjlhOTo4ODY4MjYwZS04OTMzLTU0ODEtYjkxMS05MjU4MjQ3NjA0YzYgZ2VuZXJhdGVfaWRfdG9rZW46YjFhMjVlMjYtN2VlNy00NjU4LTlmYWMtYmY1MmIxYTc2OWE5Ojg4NjgyNjBlLTg5MzMtNTQ4MS1iOTExLTkyNTgyNDc2MDRjNiBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6ImNkNjU4OTdkNWFkOTBmMGQ4M2UzOWQ1MDBlY2U1OTdlMzk0NDg0NDYiLCJ0cnVzdF90aWVyIjoiMSJ9.RWHxJi_NCSMB1xV8Ofa_kS45IdkbZJCXqFbh-rZIYNwbG6wYASBOEQz5M3fl4kzB2boJlLp1lqEIyM7XixDZTK5SBsDnN9k6dzKs6knh7fL7Bsy_V2x6yYJjGt3WEITJrWPR5YOkCK6DLTdPhfDWZfZ8IpxxredlRySeCogJ2EJrteu7JAL8s1MUrvwWkxxcmoTTvdU5969lRbsbTOTf15yeBVErKTyqPuRkN_bOHR-KlKzigV1Pbh7gawMtESPfe7YMvvEl96u_sGXI3DtoSuEW8V58Mp3BHkaDpVhjEQoYDBhJoOF6vQbZVepd-WxjsVxcfBLk5JCD4Vz0-K5sAA", 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_874e3383-32ae-4885-9d4d-3e5e2390bf70", INVOCATION_ID: "4c6fcc6176aa48ffac6c1718b3db4702", 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: "182", 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 1000187752", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "feat/schedule-auto-schedule", GITHUB_REPOSITORY: "feedmepos/hrm-service", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "1124672235", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/vite@5.4.21_@types+node@18.19.130_sass-embedded@1.97.1_sass@1.97.1_terser@5.44.1/node_modules:/home/runner/work/hrm-service/hrm-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "2.3.0-dev", 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: "cd65897d5ad90f0d83e39d500ece597e39448446", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/feat/schedule-auto-schedule", GITHUB_ACTOR: "jun-lee-feedme", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_84458f34-a99c-411d-9473-bcf9abb994fe", 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-1-azure-eastus.actions.githubusercontent.com/54//idtoken/b1a25e26-7ee7-4658-9fac-bf52b1a769a9/8868260e-8933-5481-b911-9258247604c6?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_84458f34-a99c-411d-9473-bcf9abb994fe", 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_84458f34-a99c-411d-9473-bcf9abb994fe", 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_84458f34-a99c-411d-9473-bcf9abb994fe", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1859
|
-
const
|
|
1860
|
-
function
|
|
1858
|
+
var go = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_631c4e81-f0de-4bae-aca4-caa517dd5c83", 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_631c4e81-f0de-4bae-aca4-caa517dd5c83", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/24.5.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_config_save_workspace_protocol: "true", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.8.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/30.0.16248370", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "1856", ACTIONS_ORCHESTRATION_ID: "d86860d8-1e3c-418d-8909-4b58634575e9.publish.publish.__default", npm_config_engine_strict: "true", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_config_prefer_workspace_packages: "true", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20261004.327.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_631c4e81-f0de-4bae-aca4-caa517dd5c83", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:12878", 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: "37939605134", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "1e1dffe3114063ec1ff626bea39edc16097674dd", 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.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy90ZXN0L3NjaGVkdWxlLWRldlwiLFwiUGVybWlzc2lvblwiOjN9LHtcIlNjb3BlXCI6XCJyZWZzL2hlYWRzL21haW5cIixcIlBlcm1pc3Npb25cIjoxfV0iLCJhY3NsIjoiMTAiLCJhdWQiOiJ2c286NmY5NmZhODktYjdiZi00ODc4LWJhZDMtODk4MDA2NTY2YjZlIiwiYmlsbGluZ19vd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsImV4cCI6MTc5MTU3NTk3MCwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiaWF0IjoxNzkxNTUzNzcwLCJpc3MiOiJodHRwczovL3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tIiwiam9iX2lkIjoiODYwZDI5MTktZjRkZC01NTU4LWE5MDItMTc4MzAxNzc3NDAwIiwiam9iX3dvcmtmbG93X3JlZiI6ImZlZWRtZXBvcy9hY3Rpb25zLy5naXRodWIvd29ya2Zsb3dzL3B1Ymxpc2gtbnBtLWdpdGh1Yi55YW1sQHJlZnMvaGVhZHMvbWFpbiIsImpvYl93b3JrZmxvd19zaGEiOiIwOWY3NmQ4YWM1ZTZhMDcwNzU0Mjc0OWUxZDU2ODdiZjFlYWQ1ZjJjIiwibmFtZWlkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwibmJmIjoxNzkxNTUzNDcwLCJvaWRjX2V4dHJhIjoie1wiYWN0b3JcIjpcIll5VDc3ODZcIixcImFjdG9yX2lkXCI6XCI5NzAwMzEyNVwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCIxMTM4NTAzMjY4NTRcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjA5Zjc2ZDhhYzVlNmEwNzA3NTQyNzQ5ZTFkNTY4N2JmMWVhZDVmMmNcIixcInJlZlwiOlwicmVmcy9oZWFkcy90ZXN0L3NjaGVkdWxlLWRldlwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiMTEyNDY3MjIzNVwiLFwicmVwb3NpdG9yeV9vd25lclwiOlwiZmVlZG1lcG9zXCIsXCJyZXBvc2l0b3J5X293bmVyX2lkXCI6XCI1NDgzMTUxNVwiLFwicmVwb3NpdG9yeV92aXNpYmlsaXR5XCI6XCJwcml2YXRlXCIsXCJydW5fYXR0ZW1wdFwiOlwiMVwiLFwicnVuX2lkXCI6XCIzNzkzOTYwNTEzNFwiLFwicnVuX251bWJlclwiOlwiMTg1XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIixcInNoYVwiOlwiMWUxZGZmZTMxMTQwNjNlYzFmZjYyNmJlYTM5ZWRjMTYwOTc2NzRkZFwiLFwid29ya2Zsb3dcIjpcIlB1Ymxpc2ggaHJtLXBvcnRhbFwiLFwid29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvaHJtLXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ocm0tcG9ydGFsLXRydXN0ZWQueW1sQHJlZnMvaGVhZHMvdGVzdC9zY2hlZHVsZS1kZXZcIixcIndvcmtmbG93X3NoYVwiOlwiMWUxZGZmZTMxMTQwNjNlYzFmZjYyNmJlYTM5ZWRjMTYwOTc2NzRkZFwifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvaHJtLXNlcnZpY2U6cmVmOnJlZnMvaGVhZHMvdGVzdC9zY2hlZHVsZS1kZXYiLCJvcmNoX2lkIjoiZDg2ODYwZDgtMWUzYy00MThkLTg5MDktNGI1ODYzNDU3NWU5LnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiJkODY4NjBkOC0xZTNjLTQxOGQtODkwOS00YjU4NjM0NTc1ZTkiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiIzNzkzOTYwNTEzNCIsInJ1bl9udW1iZXIiOiIxODUiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMTg4Mjk4IiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6ZDg2ODYwZDgtMWUzYy00MThkLTg5MDktNGI1ODYzNDU3NWU5Ojg2MGQyOTE5LWY0ZGQtNTU1OC1hOTAyLTE3ODMwMTc3NzQwMCBBY3Rpb25zLlJ1bm5lcjpkODY4NjBkOC0xZTNjLTQxOGQtODkwOS00YjU4NjM0NTc1ZTk6ODYwZDI5MTktZjRkZC01NTU4LWE5MDItMTc4MzAxNzc3NDAwIEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOmQ4Njg2MGQ4LTFlM2MtNDE4ZC04OTA5LTRiNTg2MzQ1NzVlOTo4NjBkMjkxOS1mNGRkLTU1NTgtYTkwMi0xNzgzMDE3Nzc0MDAgZ2VuZXJhdGVfaWRfdG9rZW46ZDg2ODYwZDgtMWUzYy00MThkLTg5MDktNGI1ODYzNDU3NWU5Ojg2MGQyOTE5LWY0ZGQtNTU1OC1hOTAyLTE3ODMwMTc3NzQwMCBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6IjFlMWRmZmUzMTE0MDYzZWMxZmY2MjZiZWEzOWVkYzE2MDk3Njc0ZGQiLCJ0cnVzdF90aWVyIjoiMSJ9.pKUcHtAutAbgHe-f539MV1xoLcKE9MQgx8aTYKXj1evzrFqo2kahzD_TNtt1qJ1zj92T_S7QgdDHIgSxMxLT__q4vok3jbgxPex2_D2FT1unbxwkJ4uRB4jOy50BzJkYjUjqxHkX5-zXwxRZt4h6IohKVYf6uiJzePXec5hMLs-zPjyteDdZCAnmpwyZsFf56plUmAS8AyEFmx2WasdO0ZlDuD0nvgjcQTCak8I6EiOzMYWOp319g3cIUm7MKYaOePZ7T6NufPmdf1xtFvpe-MDpE_jWjREpumQhvcOxU3ef8peHMLFHbPgbv2PhgrMdN1ep3rykrpFmefmHwhdyJw", 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_8878777d-d00a-4b84-a9de-65168809c7f9", INVOCATION_ID: "e365e7babee444e8842cf96b4d13e217", 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: "185", 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 1000188298", 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.3.0-dev.3", 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: "1e1dffe3114063ec1ff626bea39edc16097674dd", 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_631c4e81-f0de-4bae-aca4-caa517dd5c83", 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/126//idtoken/d86860d8-1e3c-418d-8909-4b58634575e9/860d2919-f4dd-5558-a902-178301777400?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_631c4e81-f0de-4bae-aca4-caa517dd5c83", 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_631c4e81-f0de-4bae-aca4-caa517dd5c83", 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_631c4e81-f0de-4bae-aca4-caa517dd5c83", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1859
|
+
const Eo = "10.0.5";
|
|
1860
|
+
function Io() {
|
|
1861
1861
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Xe().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Xe().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Xe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Xe().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1862
1862
|
}
|
|
1863
1863
|
const at = {
|
|
@@ -1876,12 +1876,12 @@ const at = {
|
|
|
1876
1876
|
function ut(e, ...t) {
|
|
1877
1877
|
return Ct(e, null, void 0);
|
|
1878
1878
|
}
|
|
1879
|
-
const
|
|
1879
|
+
const Vt = /* @__PURE__ */ $e("__translateVNode"), Gt = /* @__PURE__ */ $e("__datetimeParts"), Wt = /* @__PURE__ */ $e("__numberParts"), yo = $e("__setPluralRules"), ss = /* @__PURE__ */ $e("__injectWithOption"), Zt = /* @__PURE__ */ $e("__dispose");
|
|
1880
1880
|
function dt(e) {
|
|
1881
1881
|
if (!te(e))
|
|
1882
1882
|
return e;
|
|
1883
1883
|
for (const t in e)
|
|
1884
|
-
if (
|
|
1884
|
+
if (ke(e, t))
|
|
1885
1885
|
if (!t.includes("."))
|
|
1886
1886
|
te(e[t]) && dt(e[t]);
|
|
1887
1887
|
else {
|
|
@@ -1903,12 +1903,12 @@ function rs(e, t) {
|
|
|
1903
1903
|
if (be(s) && s.forEach((u) => {
|
|
1904
1904
|
if ("locale" in u && "resource" in u) {
|
|
1905
1905
|
const { locale: i, resource: g } = u;
|
|
1906
|
-
i ? (d[i] = d[i] || oe(),
|
|
1906
|
+
i ? (d[i] = d[i] || oe(), It(g, d[i])) : It(g, d);
|
|
1907
1907
|
} else
|
|
1908
|
-
|
|
1908
|
+
Z(u) && It(JSON.parse(u), d);
|
|
1909
1909
|
}), l == null && a)
|
|
1910
1910
|
for (const u in d)
|
|
1911
|
-
|
|
1911
|
+
ke(d, u) && dt(d[u]);
|
|
1912
1912
|
return d;
|
|
1913
1913
|
}
|
|
1914
1914
|
function os(e) {
|
|
@@ -1940,44 +1940,44 @@ function No(e, t, n) {
|
|
|
1940
1940
|
}
|
|
1941
1941
|
}
|
|
1942
1942
|
function Sn(e) {
|
|
1943
|
-
return ue(
|
|
1943
|
+
return ue(fs, null, e, 0);
|
|
1944
1944
|
}
|
|
1945
|
-
const
|
|
1946
|
-
let
|
|
1947
|
-
function
|
|
1945
|
+
const kn = "__INTLIFY_META__", Ln = () => [], To = () => !1;
|
|
1946
|
+
let An = 0;
|
|
1947
|
+
function Rn(e) {
|
|
1948
1948
|
return (t, n, s, l) => e(n, s, Yt() || void 0, l);
|
|
1949
1949
|
}
|
|
1950
1950
|
const Co = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1951
1951
|
const e = Yt();
|
|
1952
1952
|
let t = null;
|
|
1953
|
-
return e && (t = os(e)[
|
|
1953
|
+
return e && (t = os(e)[kn]) ? { [kn]: t } : null;
|
|
1954
1954
|
};
|
|
1955
1955
|
function Oo(e = {}) {
|
|
1956
1956
|
const { __root: t, __injectWithOption: n } = e, s = t === void 0, l = e.flatJson, a = on ? st : ds;
|
|
1957
|
-
let d =
|
|
1957
|
+
let d = pe(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1958
1958
|
const u = a(
|
|
1959
1959
|
// prettier-ignore
|
|
1960
|
-
t && d ? t.locale.value :
|
|
1960
|
+
t && d ? t.locale.value : Z(e.locale) ? e.locale : Nt
|
|
1961
1961
|
), i = a(
|
|
1962
1962
|
// prettier-ignore
|
|
1963
|
-
t && d ? t.fallbackLocale.value :
|
|
1964
|
-
), g = a(rs(u.value, e)),
|
|
1965
|
-
let N = t ? t.missingWarn :
|
|
1963
|
+
t && d ? t.fallbackLocale.value : Z(e.fallbackLocale) || be(e.fallbackLocale) || ee(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
1964
|
+
), g = a(rs(u.value, e)), I = a(ee(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), C = a(ee(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
|
|
1965
|
+
let N = t ? t.missingWarn : pe(e.missingWarn) || yt(e.missingWarn) ? e.missingWarn : !0, F = t ? t.fallbackWarn : pe(e.fallbackWarn) || yt(e.fallbackWarn) ? e.fallbackWarn : !0, w = t ? t.fallbackRoot : pe(e.fallbackRoot) ? e.fallbackRoot : !0, L = !!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
1966
|
const b = t ? t.modifiers : ee(e.modifiers) ? e.modifiers : {};
|
|
1967
|
-
let
|
|
1968
|
-
|
|
1967
|
+
let E = e.pluralRules || t && t.pluralRules, v;
|
|
1968
|
+
v = (() => {
|
|
1969
1969
|
s && bn(null);
|
|
1970
|
-
const
|
|
1971
|
-
version:
|
|
1970
|
+
const p = {
|
|
1971
|
+
version: Eo,
|
|
1972
1972
|
locale: u.value,
|
|
1973
1973
|
fallbackLocale: i.value,
|
|
1974
1974
|
messages: g.value,
|
|
1975
1975
|
modifiers: b,
|
|
1976
|
-
pluralRules:
|
|
1977
|
-
missing:
|
|
1976
|
+
pluralRules: E,
|
|
1977
|
+
missing: f === null ? void 0 : f,
|
|
1978
1978
|
missingWarn: N,
|
|
1979
1979
|
fallbackWarn: F,
|
|
1980
|
-
fallbackFormat:
|
|
1980
|
+
fallbackFormat: L,
|
|
1981
1981
|
unresolving: !0,
|
|
1982
1982
|
postTranslation: h === null ? void 0 : h,
|
|
1983
1983
|
warnHtmlMessage: S,
|
|
@@ -1986,190 +1986,190 @@ function Oo(e = {}) {
|
|
|
1986
1986
|
messageCompiler: e.messageCompiler,
|
|
1987
1987
|
__meta: { framework: "vue" }
|
|
1988
1988
|
};
|
|
1989
|
-
|
|
1990
|
-
const
|
|
1991
|
-
return s && bn(
|
|
1992
|
-
})(), lt(
|
|
1993
|
-
function
|
|
1989
|
+
p.datetimeFormats = I.value, p.numberFormats = C.value, p.__datetimeFormatters = ee(v) ? v.__datetimeFormatters : void 0, p.__numberFormatters = ee(v) ? v.__numberFormatters : void 0;
|
|
1990
|
+
const y = so(p);
|
|
1991
|
+
return s && bn(y), y;
|
|
1992
|
+
})(), lt(v, u.value, i.value);
|
|
1993
|
+
function k() {
|
|
1994
1994
|
return [
|
|
1995
1995
|
u.value,
|
|
1996
1996
|
i.value,
|
|
1997
1997
|
g.value,
|
|
1998
|
-
|
|
1998
|
+
I.value,
|
|
1999
1999
|
C.value
|
|
2000
2000
|
];
|
|
2001
2001
|
}
|
|
2002
2002
|
const X = z({
|
|
2003
2003
|
get: () => u.value,
|
|
2004
|
-
set: (
|
|
2005
|
-
u.value =
|
|
2004
|
+
set: (p) => {
|
|
2005
|
+
u.value = p, v.locale = u.value;
|
|
2006
2006
|
}
|
|
2007
|
-
}),
|
|
2007
|
+
}), V = z({
|
|
2008
2008
|
get: () => i.value,
|
|
2009
|
-
set: (
|
|
2010
|
-
i.value =
|
|
2009
|
+
set: (p) => {
|
|
2010
|
+
i.value = p, v.fallbackLocale = i.value, lt(v, u.value, p);
|
|
2011
2011
|
}
|
|
2012
|
-
}),
|
|
2013
|
-
function
|
|
2014
|
-
return
|
|
2012
|
+
}), m = z(() => g.value), T = /* @__PURE__ */ z(() => I.value), U = /* @__PURE__ */ z(() => C.value);
|
|
2013
|
+
function x() {
|
|
2014
|
+
return me(h) ? h : null;
|
|
2015
2015
|
}
|
|
2016
|
-
function j(
|
|
2017
|
-
h =
|
|
2016
|
+
function j(p) {
|
|
2017
|
+
h = p, v.postTranslation = p;
|
|
2018
2018
|
}
|
|
2019
|
-
function
|
|
2020
|
-
return
|
|
2019
|
+
function W() {
|
|
2020
|
+
return D;
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2023
|
-
|
|
2022
|
+
function G(p) {
|
|
2023
|
+
p !== null && (f = Rn(p)), D = p, v.missing = f;
|
|
2024
2024
|
}
|
|
2025
|
-
const
|
|
2026
|
-
|
|
2025
|
+
const B = (p, y, $, le, Ye, mt) => {
|
|
2026
|
+
k();
|
|
2027
2027
|
let ze;
|
|
2028
2028
|
try {
|
|
2029
|
-
go.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (
|
|
2029
|
+
go.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (v.fallbackContext = t ? no() : void 0), ze = p(v);
|
|
2030
2030
|
} finally {
|
|
2031
|
-
__INTLIFY_PROD_DEVTOOLS__, s || (
|
|
2031
|
+
__INTLIFY_PROD_DEVTOOLS__, s || (v.fallbackContext = void 0);
|
|
2032
2032
|
}
|
|
2033
2033
|
if ($ !== "translate exists" && // for not `te` (e.g `t`)
|
|
2034
2034
|
ge(ze) && ze === Ot || $ === "translate exists" && !ze) {
|
|
2035
|
-
const [cs,
|
|
2036
|
-
return t &&
|
|
2035
|
+
const [cs, ya] = y();
|
|
2036
|
+
return t && w ? le(t) : Ye(cs);
|
|
2037
2037
|
} else {
|
|
2038
|
-
if (
|
|
2038
|
+
if (mt(ze))
|
|
2039
2039
|
return ze;
|
|
2040
2040
|
throw ut(at.UNEXPECTED_RETURN_TYPE);
|
|
2041
2041
|
}
|
|
2042
2042
|
};
|
|
2043
|
-
function Y(...
|
|
2044
|
-
return
|
|
2043
|
+
function Y(...p) {
|
|
2044
|
+
return B((y) => Reflect.apply(On, null, [y, ...p]), () => xt(...p), "translate", (y) => Reflect.apply(y.t, y, [...p]), (y) => y, (y) => Z(y));
|
|
2045
2045
|
}
|
|
2046
|
-
function ne(...
|
|
2047
|
-
const [
|
|
2046
|
+
function ne(...p) {
|
|
2047
|
+
const [y, $, le] = p;
|
|
2048
2048
|
if (le && !te(le))
|
|
2049
2049
|
throw ut(at.INVALID_ARGUMENT);
|
|
2050
|
-
return Y(
|
|
2050
|
+
return Y(y, $, Ee({ resolvedMessage: !0 }, le || {}));
|
|
2051
2051
|
}
|
|
2052
|
-
function Q(...
|
|
2053
|
-
return
|
|
2052
|
+
function Q(...p) {
|
|
2053
|
+
return B((y) => Reflect.apply(En, null, [y, ...p]), () => jt(...p), "datetime format", (y) => Reflect.apply(y.d, y, [...p]), () => pn, (y) => Z(y));
|
|
2054
2054
|
}
|
|
2055
|
-
function _e(...
|
|
2056
|
-
return
|
|
2055
|
+
function _e(...p) {
|
|
2056
|
+
return B((y) => Reflect.apply(yn, null, [y, ...p]), () => Ut(...p), "number format", (y) => Reflect.apply(y.n, y, [...p]), () => pn, (y) => Z(y));
|
|
2057
2057
|
}
|
|
2058
|
-
function ce(
|
|
2059
|
-
return
|
|
2058
|
+
function ce(p) {
|
|
2059
|
+
return p.map((y) => Z(y) || ge(y) || pe(y) ? Sn(String(y)) : y);
|
|
2060
2060
|
}
|
|
2061
|
-
const
|
|
2061
|
+
const fe = {
|
|
2062
2062
|
normalize: ce,
|
|
2063
|
-
interpolate: (
|
|
2063
|
+
interpolate: (p) => p,
|
|
2064
2064
|
type: "vnode"
|
|
2065
2065
|
};
|
|
2066
|
-
function q(...
|
|
2067
|
-
return
|
|
2066
|
+
function q(...p) {
|
|
2067
|
+
return B((y) => {
|
|
2068
2068
|
let $;
|
|
2069
|
-
const le =
|
|
2069
|
+
const le = y;
|
|
2070
2070
|
try {
|
|
2071
|
-
le.processor =
|
|
2071
|
+
le.processor = fe, $ = Reflect.apply(On, null, [le, ...p]);
|
|
2072
2072
|
} finally {
|
|
2073
2073
|
le.processor = null;
|
|
2074
2074
|
}
|
|
2075
2075
|
return $;
|
|
2076
|
-
}, () =>
|
|
2076
|
+
}, () => xt(...p), "translate", (y) => y[Vt](...p), (y) => [Sn(y)], (y) => be(y));
|
|
2077
2077
|
}
|
|
2078
|
-
function
|
|
2079
|
-
return
|
|
2078
|
+
function De(...p) {
|
|
2079
|
+
return B((y) => Reflect.apply(yn, null, [y, ...p]), () => Ut(...p), "number format", (y) => y[Wt](...p), Ln, (y) => Z(y) || be(y));
|
|
2080
2080
|
}
|
|
2081
|
-
function K(...
|
|
2082
|
-
return
|
|
2081
|
+
function K(...p) {
|
|
2082
|
+
return B((y) => Reflect.apply(En, null, [y, ...p]), () => jt(...p), "datetime format", (y) => y[Gt](...p), Ln, (y) => Z(y) || be(y));
|
|
2083
2083
|
}
|
|
2084
|
-
function
|
|
2085
|
-
|
|
2084
|
+
function ve(p) {
|
|
2085
|
+
E = p, v.pluralRules = E;
|
|
2086
2086
|
}
|
|
2087
|
-
function Je(
|
|
2088
|
-
return
|
|
2089
|
-
if (!
|
|
2087
|
+
function Je(p, y) {
|
|
2088
|
+
return B(() => {
|
|
2089
|
+
if (!p)
|
|
2090
2090
|
return !1;
|
|
2091
|
-
const $ =
|
|
2092
|
-
return ot(Ye) || Ce(Ye) ||
|
|
2093
|
-
}, () => [
|
|
2091
|
+
const $ = Z(y) ? y : u.value, le = Fe($), Ye = v.messageResolver(le, p);
|
|
2092
|
+
return ot(Ye) || Ce(Ye) || Z(Ye);
|
|
2093
|
+
}, () => [p], "translate exists", ($) => Reflect.apply($.te, $, [p, y]), To, ($) => pe($));
|
|
2094
2094
|
}
|
|
2095
|
-
function Ke(
|
|
2096
|
-
let
|
|
2097
|
-
const $ = Hn(
|
|
2095
|
+
function Ke(p) {
|
|
2096
|
+
let y = null;
|
|
2097
|
+
const $ = Hn(v, i.value, u.value);
|
|
2098
2098
|
for (let le = 0; le < $.length; le++) {
|
|
2099
|
-
const Ye = g.value[$[le]] || {},
|
|
2100
|
-
if (
|
|
2101
|
-
|
|
2099
|
+
const Ye = g.value[$[le]] || {}, mt = v.messageResolver(Ye, p);
|
|
2100
|
+
if (mt != null) {
|
|
2101
|
+
y = mt;
|
|
2102
2102
|
break;
|
|
2103
2103
|
}
|
|
2104
2104
|
}
|
|
2105
|
-
return
|
|
2105
|
+
return y;
|
|
2106
2106
|
}
|
|
2107
|
-
function
|
|
2108
|
-
const
|
|
2109
|
-
return
|
|
2107
|
+
function xe(p) {
|
|
2108
|
+
const y = Ke(p);
|
|
2109
|
+
return y ?? (t ? t.tm(p) || {} : {});
|
|
2110
2110
|
}
|
|
2111
|
-
function Fe(
|
|
2112
|
-
return g.value[
|
|
2111
|
+
function Fe(p) {
|
|
2112
|
+
return g.value[p] || {};
|
|
2113
2113
|
}
|
|
2114
|
-
function Te(
|
|
2114
|
+
function Te(p, y) {
|
|
2115
2115
|
if (l) {
|
|
2116
|
-
const $ = { [
|
|
2116
|
+
const $ = { [p]: y };
|
|
2117
2117
|
for (const le in $)
|
|
2118
|
-
|
|
2119
|
-
|
|
2118
|
+
ke($, le) && dt($[le]);
|
|
2119
|
+
y = $[p];
|
|
2120
2120
|
}
|
|
2121
|
-
g.value[
|
|
2121
|
+
g.value[p] = y, v.messages = g.value;
|
|
2122
2122
|
}
|
|
2123
|
-
function
|
|
2124
|
-
g.value[
|
|
2125
|
-
const $ = { [
|
|
2123
|
+
function Be(p, y) {
|
|
2124
|
+
g.value[p] = g.value[p] || {};
|
|
2125
|
+
const $ = { [p]: y };
|
|
2126
2126
|
if (l)
|
|
2127
2127
|
for (const le in $)
|
|
2128
|
-
|
|
2129
|
-
|
|
2128
|
+
ke($, le) && dt($[le]);
|
|
2129
|
+
y = $[p], It(y, g.value[p]), v.messages = g.value;
|
|
2130
2130
|
}
|
|
2131
|
-
function O(
|
|
2132
|
-
return
|
|
2131
|
+
function O(p) {
|
|
2132
|
+
return I.value[p] || {};
|
|
2133
2133
|
}
|
|
2134
|
-
function r(
|
|
2135
|
-
|
|
2134
|
+
function r(p, y) {
|
|
2135
|
+
I.value[p] = y, v.datetimeFormats = I.value, In(v, p, y);
|
|
2136
2136
|
}
|
|
2137
|
-
function o(
|
|
2138
|
-
|
|
2137
|
+
function o(p, y) {
|
|
2138
|
+
I.value[p] = Ee(I.value[p] || {}, y), v.datetimeFormats = I.value, In(v, p, y);
|
|
2139
2139
|
}
|
|
2140
|
-
function _(
|
|
2141
|
-
return C.value[
|
|
2140
|
+
function _(p) {
|
|
2141
|
+
return C.value[p] || {};
|
|
2142
2142
|
}
|
|
2143
|
-
function
|
|
2144
|
-
C.value[
|
|
2143
|
+
function A(p, y) {
|
|
2144
|
+
C.value[p] = y, v.numberFormats = C.value, Nn(v, p, y);
|
|
2145
2145
|
}
|
|
2146
|
-
function M(
|
|
2147
|
-
C.value[
|
|
2146
|
+
function M(p, y) {
|
|
2147
|
+
C.value[p] = Ee(C.value[p] || {}, y), v.numberFormats = C.value, Nn(v, p, y);
|
|
2148
2148
|
}
|
|
2149
|
-
|
|
2150
|
-
d && (u.value =
|
|
2151
|
-
}),
|
|
2152
|
-
d && (i.value =
|
|
2149
|
+
An++, t && on && (wt(t.locale, (p) => {
|
|
2150
|
+
d && (u.value = p, v.locale = p, lt(v, u.value, i.value));
|
|
2151
|
+
}), wt(t.fallbackLocale, (p) => {
|
|
2152
|
+
d && (i.value = p, v.fallbackLocale = p, lt(v, u.value, i.value));
|
|
2153
2153
|
}));
|
|
2154
2154
|
const P = {
|
|
2155
|
-
id:
|
|
2155
|
+
id: An,
|
|
2156
2156
|
locale: X,
|
|
2157
|
-
fallbackLocale:
|
|
2157
|
+
fallbackLocale: V,
|
|
2158
2158
|
get inheritLocale() {
|
|
2159
2159
|
return d;
|
|
2160
2160
|
},
|
|
2161
|
-
set inheritLocale(
|
|
2162
|
-
d =
|
|
2161
|
+
set inheritLocale(p) {
|
|
2162
|
+
d = p, p && t && (u.value = t.locale.value, i.value = t.fallbackLocale.value, lt(v, u.value, i.value));
|
|
2163
2163
|
},
|
|
2164
2164
|
get availableLocales() {
|
|
2165
2165
|
return Object.keys(g.value).sort();
|
|
2166
2166
|
},
|
|
2167
|
-
messages:
|
|
2167
|
+
messages: m,
|
|
2168
2168
|
get modifiers() {
|
|
2169
2169
|
return b;
|
|
2170
2170
|
},
|
|
2171
2171
|
get pluralRules() {
|
|
2172
|
-
return
|
|
2172
|
+
return E || {};
|
|
2173
2173
|
},
|
|
2174
2174
|
get isGlobal() {
|
|
2175
2175
|
return s;
|
|
@@ -2177,50 +2177,50 @@ function Oo(e = {}) {
|
|
|
2177
2177
|
get missingWarn() {
|
|
2178
2178
|
return N;
|
|
2179
2179
|
},
|
|
2180
|
-
set missingWarn(
|
|
2181
|
-
N =
|
|
2180
|
+
set missingWarn(p) {
|
|
2181
|
+
N = p, v.missingWarn = N;
|
|
2182
2182
|
},
|
|
2183
2183
|
get fallbackWarn() {
|
|
2184
2184
|
return F;
|
|
2185
2185
|
},
|
|
2186
|
-
set fallbackWarn(
|
|
2187
|
-
F =
|
|
2186
|
+
set fallbackWarn(p) {
|
|
2187
|
+
F = p, v.fallbackWarn = F;
|
|
2188
2188
|
},
|
|
2189
2189
|
get fallbackRoot() {
|
|
2190
|
-
return
|
|
2190
|
+
return w;
|
|
2191
2191
|
},
|
|
2192
|
-
set fallbackRoot(
|
|
2193
|
-
|
|
2192
|
+
set fallbackRoot(p) {
|
|
2193
|
+
w = p;
|
|
2194
2194
|
},
|
|
2195
2195
|
get fallbackFormat() {
|
|
2196
|
-
return
|
|
2196
|
+
return L;
|
|
2197
2197
|
},
|
|
2198
|
-
set fallbackFormat(
|
|
2199
|
-
|
|
2198
|
+
set fallbackFormat(p) {
|
|
2199
|
+
L = p, v.fallbackFormat = L;
|
|
2200
2200
|
},
|
|
2201
2201
|
get warnHtmlMessage() {
|
|
2202
2202
|
return S;
|
|
2203
2203
|
},
|
|
2204
|
-
set warnHtmlMessage(
|
|
2205
|
-
S =
|
|
2204
|
+
set warnHtmlMessage(p) {
|
|
2205
|
+
S = p, v.warnHtmlMessage = p;
|
|
2206
2206
|
},
|
|
2207
2207
|
get escapeParameter() {
|
|
2208
2208
|
return c;
|
|
2209
2209
|
},
|
|
2210
|
-
set escapeParameter(
|
|
2211
|
-
c =
|
|
2210
|
+
set escapeParameter(p) {
|
|
2211
|
+
c = p, v.escapeParameter = p;
|
|
2212
2212
|
},
|
|
2213
2213
|
t: Y,
|
|
2214
2214
|
getLocaleMessage: Fe,
|
|
2215
2215
|
setLocaleMessage: Te,
|
|
2216
|
-
mergeLocaleMessage:
|
|
2217
|
-
getPostTranslationHandler:
|
|
2216
|
+
mergeLocaleMessage: Be,
|
|
2217
|
+
getPostTranslationHandler: x,
|
|
2218
2218
|
setPostTranslationHandler: j,
|
|
2219
|
-
getMissingHandler:
|
|
2220
|
-
setMissingHandler:
|
|
2221
|
-
[
|
|
2219
|
+
getMissingHandler: W,
|
|
2220
|
+
setMissingHandler: G,
|
|
2221
|
+
[yo]: ve
|
|
2222
2222
|
};
|
|
2223
|
-
return P.datetimeFormats = T, P.numberFormats = U, P.rt = ne, P.te = Je, P.tm =
|
|
2223
|
+
return P.datetimeFormats = T, P.numberFormats = U, P.rt = ne, P.te = Je, P.tm = xe, P.d = Q, P.n = _e, P.getDateTimeFormat = O, P.setDateTimeFormat = r, P.mergeDateTimeFormat = o, P.getNumberFormat = _, P.setNumberFormat = A, P.mergeNumberFormat = M, P[ss] = n, P[Vt] = q, P[Gt] = K, P[Wt] = De, P;
|
|
2224
2224
|
}
|
|
2225
2225
|
const qt = {
|
|
2226
2226
|
tag: {
|
|
@@ -2244,16 +2244,16 @@ function So({ slots: e }, t) {
|
|
|
2244
2244
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((s, l) => [
|
|
2245
2245
|
...s,
|
|
2246
2246
|
// prettier-ignore
|
|
2247
|
-
...l.type ===
|
|
2247
|
+
...l.type === Re ? l.children : [l]
|
|
2248
2248
|
], []) : t.reduce((n, s) => {
|
|
2249
2249
|
const l = e[s];
|
|
2250
2250
|
return l && (n[s] = l()), n;
|
|
2251
2251
|
}, oe());
|
|
2252
2252
|
}
|
|
2253
2253
|
function as() {
|
|
2254
|
-
return
|
|
2254
|
+
return Re;
|
|
2255
2255
|
}
|
|
2256
|
-
|
|
2256
|
+
Ee({
|
|
2257
2257
|
keypath: {
|
|
2258
2258
|
type: String,
|
|
2259
2259
|
required: !0
|
|
@@ -2263,26 +2263,26 @@ Ie({
|
|
|
2263
2263
|
validator: (e) => ge(e) || !isNaN(e)
|
|
2264
2264
|
}
|
|
2265
2265
|
}, qt);
|
|
2266
|
-
function
|
|
2267
|
-
return be(e) && !
|
|
2266
|
+
function ko(e) {
|
|
2267
|
+
return be(e) && !Z(e[0]);
|
|
2268
2268
|
}
|
|
2269
2269
|
function ls(e, t, n, s) {
|
|
2270
2270
|
const { slots: l, attrs: a } = t;
|
|
2271
2271
|
return () => {
|
|
2272
2272
|
const d = { part: !0 };
|
|
2273
2273
|
let u = oe();
|
|
2274
|
-
e.locale && (d.locale = e.locale),
|
|
2274
|
+
e.locale && (d.locale = e.locale), Z(e.format) ? d.key = e.format : te(e.format) && (Z(e.format.key) && (d.key = e.format.key), u = Object.keys(e.format).reduce((N, F) => n.includes(F) ? Ee(oe(), N, { [F]: e.format[F] }) : N, oe()));
|
|
2275
2275
|
const i = s(e.value, d, u);
|
|
2276
2276
|
let g = [d.key];
|
|
2277
2277
|
be(i) ? g = i.map((N, F) => {
|
|
2278
|
-
const
|
|
2279
|
-
return
|
|
2280
|
-
}) :
|
|
2281
|
-
const
|
|
2282
|
-
return
|
|
2278
|
+
const w = l[N.type], L = w ? w({ [N.type]: N.value, index: F, parts: i }) : [N.value];
|
|
2279
|
+
return ko(L) && (L[0].key = `${N.type}-${F}`), L;
|
|
2280
|
+
}) : Z(i) && (g = [i]);
|
|
2281
|
+
const I = Ee(oe(), a), C = Z(e.tag) || te(e.tag) ? e.tag : as();
|
|
2282
|
+
return Gn(C, I, g);
|
|
2283
2283
|
};
|
|
2284
2284
|
}
|
|
2285
|
-
|
|
2285
|
+
Ee({
|
|
2286
2286
|
value: {
|
|
2287
2287
|
type: Number,
|
|
2288
2288
|
required: !0
|
|
@@ -2291,7 +2291,7 @@ Ie({
|
|
|
2291
2291
|
type: [String, Object]
|
|
2292
2292
|
}
|
|
2293
2293
|
}, qt);
|
|
2294
|
-
|
|
2294
|
+
Ee({
|
|
2295
2295
|
value: {
|
|
2296
2296
|
type: [Number, Date],
|
|
2297
2297
|
required: !0
|
|
@@ -2300,44 +2300,44 @@ Ie({
|
|
|
2300
2300
|
type: [String, Object]
|
|
2301
2301
|
}
|
|
2302
2302
|
}, qt);
|
|
2303
|
-
const
|
|
2303
|
+
const Lo = /* @__PURE__ */ $e("global-vue-i18n");
|
|
2304
2304
|
function St(e = {}) {
|
|
2305
2305
|
const t = Yt();
|
|
2306
2306
|
if (t == null)
|
|
2307
2307
|
throw ut(at.MUST_BE_CALL_SETUP_TOP);
|
|
2308
2308
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2309
2309
|
throw ut(at.NOT_INSTALLED);
|
|
2310
|
-
const n =
|
|
2310
|
+
const n = Ao(t), s = Mo(n), l = os(t), a = Ro(e, l);
|
|
2311
2311
|
if (a === "global")
|
|
2312
2312
|
return No(s, e, l), s;
|
|
2313
2313
|
if (a === "parent") {
|
|
2314
|
-
let i =
|
|
2314
|
+
let i = wo(n, t, e.__useComponent);
|
|
2315
2315
|
return i == null && (i = s), i;
|
|
2316
2316
|
}
|
|
2317
2317
|
const d = n;
|
|
2318
2318
|
let u = d.__getInstance(t);
|
|
2319
2319
|
if (u == null) {
|
|
2320
|
-
const i =
|
|
2321
|
-
"__i18n" in l && (i.__i18n = l.__i18n), s && (i.__root = s), u = Oo(i), d.__composerExtend && (u[
|
|
2320
|
+
const i = Ee({}, e);
|
|
2321
|
+
"__i18n" in l && (i.__i18n = l.__i18n), s && (i.__root = s), u = Oo(i), d.__composerExtend && (u[Zt] = d.__composerExtend(u)), Fo(d, t, u), d.__setInstance(t, u);
|
|
2322
2322
|
}
|
|
2323
2323
|
return u;
|
|
2324
2324
|
}
|
|
2325
|
-
function
|
|
2326
|
-
const t = us(e.isCE ?
|
|
2325
|
+
function Ao(e) {
|
|
2326
|
+
const t = us(e.isCE ? Lo : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2327
2327
|
if (!t)
|
|
2328
2328
|
throw ut(e.isCE ? at.NOT_INSTALLED_WITH_PROVIDE : at.UNEXPECTED_ERROR);
|
|
2329
2329
|
return t;
|
|
2330
2330
|
}
|
|
2331
|
-
function
|
|
2331
|
+
function Ro(e, t) {
|
|
2332
2332
|
return Tt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2333
2333
|
}
|
|
2334
2334
|
function Mo(e) {
|
|
2335
2335
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2336
2336
|
}
|
|
2337
|
-
function
|
|
2337
|
+
function wo(e, t, n = !1) {
|
|
2338
2338
|
let s = null;
|
|
2339
2339
|
const l = t.root;
|
|
2340
|
-
let a =
|
|
2340
|
+
let a = Do(t, n);
|
|
2341
2341
|
for (; a != null; ) {
|
|
2342
2342
|
const d = e;
|
|
2343
2343
|
if (e.mode === "composition")
|
|
@@ -2352,27 +2352,27 @@ function Do(e, t, n = !1) {
|
|
|
2352
2352
|
}
|
|
2353
2353
|
return s;
|
|
2354
2354
|
}
|
|
2355
|
-
function
|
|
2355
|
+
function Do(e, t = !1) {
|
|
2356
2356
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2357
2357
|
}
|
|
2358
2358
|
function Fo(e, t, n) {
|
|
2359
|
-
|
|
2360
|
-
}, t),
|
|
2359
|
+
Vn(() => {
|
|
2360
|
+
}, t), ms(() => {
|
|
2361
2361
|
const s = n;
|
|
2362
2362
|
e.__deleteInstance(t);
|
|
2363
|
-
const l = s[
|
|
2364
|
-
l && (l(), delete s[
|
|
2363
|
+
const l = s[Zt];
|
|
2364
|
+
l && (l(), delete s[Zt]);
|
|
2365
2365
|
}, t);
|
|
2366
2366
|
}
|
|
2367
|
-
|
|
2367
|
+
Io();
|
|
2368
2368
|
zr(Mr);
|
|
2369
2369
|
Qr($r);
|
|
2370
2370
|
qr(Hn);
|
|
2371
2371
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2372
2372
|
const e = Xe();
|
|
2373
|
-
e.__INTLIFY__ = !0,
|
|
2373
|
+
e.__INTLIFY__ = !0, wr(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2374
2374
|
}
|
|
2375
|
-
const
|
|
2375
|
+
const pt = /* @__PURE__ */ Le({
|
|
2376
2376
|
__name: "InheritPermissionTooltip",
|
|
2377
2377
|
props: {
|
|
2378
2378
|
item: {
|
|
@@ -2383,7 +2383,7 @@ const vt = /* @__PURE__ */ ke({
|
|
|
2383
2383
|
setup(e) {
|
|
2384
2384
|
const { t } = St();
|
|
2385
2385
|
return (n, s) => {
|
|
2386
|
-
const l =
|
|
2386
|
+
const l = we("FmIcon"), a = we("FmTooltip");
|
|
2387
2387
|
return J(), Ne(a, {
|
|
2388
2388
|
variant: "plain",
|
|
2389
2389
|
placement: "right",
|
|
@@ -2391,7 +2391,7 @@ const vt = /* @__PURE__ */ ke({
|
|
|
2391
2391
|
}, {
|
|
2392
2392
|
content: de(() => [
|
|
2393
2393
|
ae("div", null, Oe(H(t)("team.memberForm.permissions.inherited")), 1),
|
|
2394
|
-
(J(!0), ie(
|
|
2394
|
+
(J(!0), ie(Re, null, ye(e.item.setNames, (d) => (J(), ie("div", { key: d }, [
|
|
2395
2395
|
ae("div", null, "- " + Oe(d), 1)
|
|
2396
2396
|
]))), 128))
|
|
2397
2397
|
]),
|
|
@@ -2421,7 +2421,7 @@ function Mn(e, t, n) {
|
|
|
2421
2421
|
actions: Array.from(a)
|
|
2422
2422
|
});
|
|
2423
2423
|
}
|
|
2424
|
-
const
|
|
2424
|
+
const wn = Object.values(Ss), Po = {
|
|
2425
2425
|
read: "View",
|
|
2426
2426
|
create: "Duplicate",
|
|
2427
2427
|
update: "Edit"
|
|
@@ -2429,72 +2429,72 @@ const Dn = Object.values(Ss), Po = {
|
|
|
2429
2429
|
function jo(e, t, n, s) {
|
|
2430
2430
|
const { t: l } = He(), { getFlagValue: a, getFlag: d } = Os(), u = z(() => {
|
|
2431
2431
|
var j;
|
|
2432
|
-
const
|
|
2433
|
-
for (const
|
|
2434
|
-
const
|
|
2435
|
-
if (!
|
|
2436
|
-
const
|
|
2437
|
-
if (n.value.includes(
|
|
2432
|
+
const m = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map();
|
|
2433
|
+
for (const W of t.value) {
|
|
2434
|
+
const G = W.category;
|
|
2435
|
+
if (!G) continue;
|
|
2436
|
+
const B = W.subject;
|
|
2437
|
+
if (n.value.includes(W.subject) || W.showByFeatureFlag && ((j = d(W.showByFeatureFlag)) == null ? void 0 : j.enabled) === !1 && a(W.showByFeatureFlag) === "true")
|
|
2438
2438
|
continue;
|
|
2439
|
-
|
|
2440
|
-
const Y = U.get(
|
|
2441
|
-
U.set(
|
|
2442
|
-
label: l(`permissionSet.permissionLabels.${
|
|
2443
|
-
value:
|
|
2444
|
-
optionKey: `${
|
|
2445
|
-
}), T.has(
|
|
2439
|
+
m.has(G) || m.set(G, []);
|
|
2440
|
+
const Y = U.get(B) ?? 0;
|
|
2441
|
+
U.set(B, Y + 1), m.get(G).push({
|
|
2442
|
+
label: l(`permissionSet.permissionLabels.${B}`, W.label),
|
|
2443
|
+
value: B,
|
|
2444
|
+
optionKey: `${B}::${Y}`
|
|
2445
|
+
}), T.has(B) || T.set(B, W);
|
|
2446
2446
|
}
|
|
2447
|
-
return [...
|
|
2448
|
-
const
|
|
2449
|
-
return
|
|
2450
|
-
}).map((
|
|
2451
|
-
const
|
|
2452
|
-
for (const K of
|
|
2453
|
-
const
|
|
2454
|
-
|
|
2447
|
+
return [...m.keys()].sort((W, G) => {
|
|
2448
|
+
const B = wn.indexOf(W), Y = wn.indexOf(G);
|
|
2449
|
+
return B === -1 && Y === -1 ? W.localeCompare(G) : B === -1 ? 1 : Y === -1 ? -1 : B - Y;
|
|
2450
|
+
}).map((W) => {
|
|
2451
|
+
const G = m.get(W), B = l(`permissionSet.categoryLabels.${W}`, W), Y = /* @__PURE__ */ new Map();
|
|
2452
|
+
for (const K of G) {
|
|
2453
|
+
const ve = T.get(K.value);
|
|
2454
|
+
ve && Y.set(K.value, ve.actions);
|
|
2455
2455
|
}
|
|
2456
|
-
const ne =
|
|
2457
|
-
const
|
|
2458
|
-
return
|
|
2456
|
+
const ne = G.some((K) => {
|
|
2457
|
+
const ve = Y.get(K.value);
|
|
2458
|
+
return ve && ve.length > 1;
|
|
2459
2459
|
}), Q = ne ? [
|
|
2460
2460
|
...new Set(
|
|
2461
|
-
|
|
2461
|
+
G.flatMap((K) => Y.get(K.value) ?? []).filter((K) => K !== "manage")
|
|
2462
2462
|
)
|
|
2463
2463
|
] : [], _e = /* @__PURE__ */ new Map();
|
|
2464
2464
|
for (const K of e.value)
|
|
2465
|
-
|
|
2465
|
+
G.some((ve) => ve.value === K.subject) && !K.inverted && _e.set(K.subject, new Set(K.actions));
|
|
2466
2466
|
const ce = ne ? e.value.filter(
|
|
2467
|
-
(K) =>
|
|
2468
|
-
).map((K) => K.subject) : e.value.filter((K) =>
|
|
2469
|
-
var
|
|
2470
|
-
return (
|
|
2471
|
-
}),
|
|
2467
|
+
(K) => G.some((ve) => ve.value === K.subject) && !K.inverted && K.actions.includes("manage")
|
|
2468
|
+
).map((K) => K.subject) : e.value.filter((K) => G.some((ve) => ve.value === K.subject) && !K.inverted).map((K) => K.subject), re = G.find((K) => {
|
|
2469
|
+
var ve;
|
|
2470
|
+
return (ve = T.get(K.value)) == null ? void 0 : ve.isCategoryCover;
|
|
2471
|
+
}), fe = (re == null ? void 0 : re.value) ?? null, q = fe ? _e.get(fe) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), De = q.has("manage");
|
|
2472
2472
|
return {
|
|
2473
|
-
category:
|
|
2474
|
-
label:
|
|
2475
|
-
options:
|
|
2473
|
+
category: W,
|
|
2474
|
+
label: B,
|
|
2475
|
+
options: G,
|
|
2476
2476
|
selectedSubjects: ce,
|
|
2477
2477
|
isMultiAction: ne,
|
|
2478
2478
|
actionColumns: Q,
|
|
2479
2479
|
permissionActionsMap: Y,
|
|
2480
2480
|
selectedActionsMap: _e,
|
|
2481
|
-
coverSubject:
|
|
2481
|
+
coverSubject: fe,
|
|
2482
2482
|
coverSelectedActions: q,
|
|
2483
|
-
coverCoversAll:
|
|
2483
|
+
coverCoversAll: De
|
|
2484
2484
|
};
|
|
2485
2485
|
});
|
|
2486
2486
|
});
|
|
2487
|
-
function i(
|
|
2488
|
-
const U = u.value.find((Q) => Q.category ===
|
|
2487
|
+
function i(m, T) {
|
|
2488
|
+
const U = u.value.find((Q) => Q.category === m), x = (U == null ? void 0 : U.options) ?? [], j = new Set(x.map((Q) => Q.value)), W = new Set(T), G = /* @__PURE__ */ new Map();
|
|
2489
2489
|
for (const Q of e.value)
|
|
2490
|
-
j.has(Q.subject) && !Q.inverted &&
|
|
2491
|
-
const
|
|
2490
|
+
j.has(Q.subject) && !Q.inverted && G.set(Q.subject, Q.conditions);
|
|
2491
|
+
const B = U != null && U.coverSubject ? G.get(U.coverSubject) : void 0, Y = /* @__PURE__ */ new Set(), ne = t.value.flatMap(
|
|
2492
2492
|
({ category: Q, showByFeatureFlag: _e, isCategoryCover: ce, ...re }) => {
|
|
2493
|
-
const
|
|
2494
|
-
if (!
|
|
2495
|
-
Y.add(
|
|
2493
|
+
const fe = re.subject;
|
|
2494
|
+
if (!W.has(fe) || Y.has(fe)) return [];
|
|
2495
|
+
Y.add(fe);
|
|
2496
2496
|
let q;
|
|
2497
|
-
return
|
|
2497
|
+
return G.has(fe) ? q = G.get(fe) : U != null && U.coverSubject && fe !== U.coverSubject && (q = B), [
|
|
2498
2498
|
{ ...re, ...q !== void 0 && { conditions: q } }
|
|
2499
2499
|
];
|
|
2500
2500
|
}
|
|
@@ -2504,206 +2504,206 @@ function jo(e, t, n, s) {
|
|
|
2504
2504
|
...ne
|
|
2505
2505
|
]);
|
|
2506
2506
|
}
|
|
2507
|
-
function g(
|
|
2508
|
-
return F(
|
|
2507
|
+
function g(m, T) {
|
|
2508
|
+
return F(m, T) || c(m, T);
|
|
2509
2509
|
}
|
|
2510
|
-
function
|
|
2511
|
-
return
|
|
2510
|
+
function I(m) {
|
|
2511
|
+
return m.options.length > 0 && m.options.every((T) => g(m, T.value));
|
|
2512
2512
|
}
|
|
2513
|
-
function C(
|
|
2514
|
-
return
|
|
2515
|
-
(T) => g(
|
|
2513
|
+
function C(m) {
|
|
2514
|
+
return m.options.length === 0 || I(m) ? !1 : m.options.some(
|
|
2515
|
+
(T) => g(m, T.value) || w(m, T.value).length > 0
|
|
2516
2516
|
);
|
|
2517
2517
|
}
|
|
2518
|
-
function N(
|
|
2519
|
-
const T = new Set(
|
|
2520
|
-
if (
|
|
2518
|
+
function N(m) {
|
|
2519
|
+
const T = new Set(m.options.map((x) => x.value)), U = e.value.filter((x) => !T.has(x.subject));
|
|
2520
|
+
if (I(m))
|
|
2521
2521
|
s("update:model-value", U);
|
|
2522
2522
|
else {
|
|
2523
|
-
const
|
|
2524
|
-
for (const
|
|
2525
|
-
T.has(
|
|
2526
|
-
const j =
|
|
2527
|
-
({ category:
|
|
2523
|
+
const x = /* @__PURE__ */ new Map();
|
|
2524
|
+
for (const B of e.value)
|
|
2525
|
+
T.has(B.subject) && !B.inverted && x.set(B.subject, B.conditions);
|
|
2526
|
+
const j = m.coverSubject ? x.get(m.coverSubject) : void 0, W = /* @__PURE__ */ new Set(), G = t.value.flatMap(
|
|
2527
|
+
({ category: B, showByFeatureFlag: Y, isCategoryCover: ne, ...Q }) => {
|
|
2528
2528
|
const _e = Q.subject;
|
|
2529
|
-
if (!T.has(_e) ||
|
|
2530
|
-
|
|
2529
|
+
if (!T.has(_e) || W.has(_e)) return [];
|
|
2530
|
+
W.add(_e);
|
|
2531
2531
|
let ce;
|
|
2532
|
-
return
|
|
2532
|
+
return x.has(_e) ? ce = x.get(_e) : m.coverSubject && _e !== m.coverSubject && (ce = j), [
|
|
2533
2533
|
{ ...Q, ...ce !== void 0 && { conditions: ce } }
|
|
2534
2534
|
];
|
|
2535
2535
|
}
|
|
2536
2536
|
);
|
|
2537
|
-
s("update:model-value", [...U, ...
|
|
2537
|
+
s("update:model-value", [...U, ...G]);
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
|
-
function F(
|
|
2541
|
-
const U =
|
|
2540
|
+
function F(m, T) {
|
|
2541
|
+
const U = m.selectedActionsMap.get(T);
|
|
2542
2542
|
return U ? U.has("manage") : !1;
|
|
2543
2543
|
}
|
|
2544
|
-
function
|
|
2545
|
-
const U =
|
|
2544
|
+
function w(m, T) {
|
|
2545
|
+
const U = m.permissionActionsMap.get(T);
|
|
2546
2546
|
return U ? U.filter((j) => j !== "manage").filter(
|
|
2547
|
-
(j) => S(
|
|
2547
|
+
(j) => S(m, T, j) || b(m, T, j)
|
|
2548
2548
|
) : [];
|
|
2549
2549
|
}
|
|
2550
|
-
function
|
|
2551
|
-
return c(
|
|
2550
|
+
function L(m, T) {
|
|
2551
|
+
return c(m, T) ? !1 : !F(m, T) && w(m, T).length > 0;
|
|
2552
2552
|
}
|
|
2553
|
-
function
|
|
2554
|
-
if (!
|
|
2553
|
+
function D(m, T) {
|
|
2554
|
+
if (!m.coverSubject || T === m.coverSubject) return;
|
|
2555
2555
|
const U = e.value.find(
|
|
2556
|
-
(
|
|
2556
|
+
(x) => !x.inverted && x.subject === m.coverSubject
|
|
2557
2557
|
);
|
|
2558
2558
|
return (U == null ? void 0 : U.conditions) || void 0;
|
|
2559
2559
|
}
|
|
2560
|
-
function m
|
|
2560
|
+
function f(m, T, U) {
|
|
2561
2561
|
if (U) {
|
|
2562
|
-
const
|
|
2563
|
-
if (!
|
|
2562
|
+
const x = t.value.find((Q) => Q.subject === T);
|
|
2563
|
+
if (!x) return;
|
|
2564
2564
|
const {
|
|
2565
2565
|
category: j,
|
|
2566
|
-
showByFeatureFlag:
|
|
2567
|
-
isCategoryCover:
|
|
2568
|
-
...
|
|
2569
|
-
} =
|
|
2566
|
+
showByFeatureFlag: W,
|
|
2567
|
+
isCategoryCover: G,
|
|
2568
|
+
...B
|
|
2569
|
+
} = x, Y = D(m, T), ne = e.value.filter((Q) => Q.subject !== T);
|
|
2570
2570
|
ne.push({
|
|
2571
|
-
...
|
|
2571
|
+
...B,
|
|
2572
2572
|
...Y !== void 0 && { conditions: Y }
|
|
2573
2573
|
}), s("update:model-value", ne);
|
|
2574
2574
|
} else
|
|
2575
2575
|
s(
|
|
2576
2576
|
"update:model-value",
|
|
2577
|
-
e.value.filter((
|
|
2577
|
+
e.value.filter((x) => x.subject !== T)
|
|
2578
2578
|
);
|
|
2579
2579
|
}
|
|
2580
|
-
function h(
|
|
2581
|
-
const U =
|
|
2582
|
-
return U ? U.some((
|
|
2580
|
+
function h(m, T) {
|
|
2581
|
+
const U = m.permissionActionsMap.get(T);
|
|
2582
|
+
return U ? U.some((x) => x !== "manage") : !1;
|
|
2583
2583
|
}
|
|
2584
|
-
function S(
|
|
2585
|
-
const
|
|
2586
|
-
return
|
|
2584
|
+
function S(m, T, U) {
|
|
2585
|
+
const x = m.selectedActionsMap.get(T);
|
|
2586
|
+
return x ? x.has(U) : !1;
|
|
2587
2587
|
}
|
|
2588
|
-
function c(
|
|
2589
|
-
return !
|
|
2588
|
+
function c(m, T) {
|
|
2589
|
+
return !m.coverSubject || T === m.coverSubject ? !1 : m.coverCoversAll;
|
|
2590
2590
|
}
|
|
2591
|
-
function b(
|
|
2592
|
-
return !
|
|
2591
|
+
function b(m, T, U) {
|
|
2592
|
+
return !m.coverSubject || T === m.coverSubject ? !1 : m.coverCoversAll ? !0 : m.coverSelectedActions.has(U);
|
|
2593
2593
|
}
|
|
2594
|
-
function
|
|
2595
|
-
const
|
|
2596
|
-
return
|
|
2594
|
+
function E(m, T, U) {
|
|
2595
|
+
const x = m.permissionActionsMap.get(T);
|
|
2596
|
+
return x ? x.includes(U) : !1;
|
|
2597
2597
|
}
|
|
2598
|
-
function
|
|
2599
|
-
const
|
|
2598
|
+
function v(m, T, U) {
|
|
2599
|
+
const x = [...e.value], j = x.findIndex((G) => G.subject === m && !G.inverted);
|
|
2600
2600
|
if (U)
|
|
2601
2601
|
if (j >= 0) {
|
|
2602
|
-
const
|
|
2603
|
-
|
|
2602
|
+
const G = { ...x[j] }, B = new Set(G.actions);
|
|
2603
|
+
B.add(T), G.actions = Array.from(B), x[j] = G;
|
|
2604
2604
|
} else {
|
|
2605
|
-
const
|
|
2606
|
-
if (!
|
|
2605
|
+
const G = t.value.find((re) => re.subject === m);
|
|
2606
|
+
if (!G) return;
|
|
2607
2607
|
const {
|
|
2608
|
-
category:
|
|
2608
|
+
category: B,
|
|
2609
2609
|
showByFeatureFlag: Y,
|
|
2610
2610
|
isCategoryCover: ne,
|
|
2611
2611
|
...Q
|
|
2612
|
-
} =
|
|
2613
|
-
(re) => re.options.some((
|
|
2614
|
-
), ce = _e ?
|
|
2615
|
-
|
|
2612
|
+
} = G, _e = u.value.find(
|
|
2613
|
+
(re) => re.options.some((fe) => fe.value === m)
|
|
2614
|
+
), ce = _e ? D(_e, m) : void 0;
|
|
2615
|
+
x.push({
|
|
2616
2616
|
...Q,
|
|
2617
2617
|
actions: [T],
|
|
2618
2618
|
...ce !== void 0 && { conditions: ce }
|
|
2619
2619
|
});
|
|
2620
2620
|
}
|
|
2621
2621
|
else if (j >= 0) {
|
|
2622
|
-
const
|
|
2623
|
-
|
|
2622
|
+
const G = { ...x[j] }, B = G.actions.filter((Y) => Y !== T);
|
|
2623
|
+
B.length === 0 ? x.splice(j, 1) : (G.actions = B, x[j] = G);
|
|
2624
2624
|
}
|
|
2625
|
-
const
|
|
2626
|
-
|
|
2625
|
+
const W = t.value.find((G) => G.subject === m);
|
|
2626
|
+
W && Mn(x, m, W.actions), s("update:model-value", x);
|
|
2627
2627
|
}
|
|
2628
|
-
function
|
|
2629
|
-
const U =
|
|
2630
|
-
(
|
|
2628
|
+
function R(m, T) {
|
|
2629
|
+
const U = m.options.filter(
|
|
2630
|
+
(x) => E(m, x.value, T)
|
|
2631
2631
|
);
|
|
2632
2632
|
return U.length === 0 ? !1 : U.every(
|
|
2633
|
-
(
|
|
2633
|
+
(x) => S(m, x.value, T) || b(m, x.value, T)
|
|
2634
2634
|
);
|
|
2635
2635
|
}
|
|
2636
|
-
function
|
|
2637
|
-
const U =
|
|
2638
|
-
(j) =>
|
|
2636
|
+
function k(m, T) {
|
|
2637
|
+
const U = m.options.filter(
|
|
2638
|
+
(j) => E(m, j.value, T)
|
|
2639
2639
|
);
|
|
2640
2640
|
if (U.length === 0) return !1;
|
|
2641
|
-
const
|
|
2642
|
-
(j) => S(
|
|
2641
|
+
const x = U.filter(
|
|
2642
|
+
(j) => S(m, j.value, T) || b(m, j.value, T)
|
|
2643
2643
|
).length;
|
|
2644
|
-
return
|
|
2645
|
-
}
|
|
2646
|
-
function X(
|
|
2647
|
-
const
|
|
2648
|
-
for (const j of
|
|
2649
|
-
if (!
|
|
2650
|
-
const
|
|
2651
|
-
(Y) => Y.subject ===
|
|
2644
|
+
return x > 0 && x < U.length;
|
|
2645
|
+
}
|
|
2646
|
+
function X(m, T, U) {
|
|
2647
|
+
const x = [...e.value];
|
|
2648
|
+
for (const j of m.options) {
|
|
2649
|
+
if (!E(m, j.value, T)) continue;
|
|
2650
|
+
const W = j.value, G = x.findIndex(
|
|
2651
|
+
(Y) => Y.subject === W && !Y.inverted
|
|
2652
2652
|
);
|
|
2653
2653
|
if (U)
|
|
2654
|
-
if (
|
|
2655
|
-
const Y = { ...
|
|
2656
|
-
ne.add(T), Y.actions = Array.from(ne),
|
|
2654
|
+
if (G >= 0) {
|
|
2655
|
+
const Y = { ...x[G] }, ne = new Set(Y.actions);
|
|
2656
|
+
ne.add(T), Y.actions = Array.from(ne), x[G] = Y;
|
|
2657
2657
|
} else {
|
|
2658
|
-
const Y = t.value.find((
|
|
2658
|
+
const Y = t.value.find((fe) => fe.subject === W);
|
|
2659
2659
|
if (!Y) continue;
|
|
2660
2660
|
const {
|
|
2661
2661
|
category: ne,
|
|
2662
2662
|
showByFeatureFlag: Q,
|
|
2663
2663
|
isCategoryCover: _e,
|
|
2664
2664
|
...ce
|
|
2665
|
-
} = Y, re =
|
|
2666
|
-
|
|
2665
|
+
} = Y, re = D(m, W);
|
|
2666
|
+
x.push({
|
|
2667
2667
|
...ce,
|
|
2668
2668
|
actions: [T],
|
|
2669
2669
|
...re !== void 0 && { conditions: re }
|
|
2670
2670
|
});
|
|
2671
2671
|
}
|
|
2672
|
-
else if (
|
|
2673
|
-
const Y = { ...
|
|
2674
|
-
ne.length === 0 ?
|
|
2672
|
+
else if (G >= 0) {
|
|
2673
|
+
const Y = { ...x[G] }, ne = Y.actions.filter((Q) => Q !== T);
|
|
2674
|
+
ne.length === 0 ? x.splice(G, 1) : (Y.actions = ne, x[G] = Y);
|
|
2675
2675
|
}
|
|
2676
|
-
const
|
|
2677
|
-
|
|
2676
|
+
const B = t.value.find((Y) => Y.subject === W);
|
|
2677
|
+
B && Mn(x, W, B.actions);
|
|
2678
2678
|
}
|
|
2679
|
-
s("update:model-value",
|
|
2679
|
+
s("update:model-value", x);
|
|
2680
2680
|
}
|
|
2681
|
-
function
|
|
2682
|
-
const T = `permissionSet.actionLabels.${
|
|
2681
|
+
function V(m) {
|
|
2682
|
+
const T = `permissionSet.actionLabels.${m}`, U = Po[m] ?? m.charAt(0).toUpperCase() + m.slice(1);
|
|
2683
2683
|
return l(T, U);
|
|
2684
2684
|
}
|
|
2685
2685
|
return {
|
|
2686
2686
|
categoryGroups: u,
|
|
2687
2687
|
toggleCategory: i,
|
|
2688
|
-
isAllManageChecked:
|
|
2688
|
+
isAllManageChecked: I,
|
|
2689
2689
|
isAllManageIndeterminate: C,
|
|
2690
2690
|
toggleAllManage: N,
|
|
2691
2691
|
isManageChecked: F,
|
|
2692
|
-
isManageIndeterminate:
|
|
2693
|
-
toggleManage:
|
|
2692
|
+
isManageIndeterminate: L,
|
|
2693
|
+
toggleManage: f,
|
|
2694
2694
|
hasNonManageActions: h,
|
|
2695
2695
|
isActionChecked: S,
|
|
2696
2696
|
isRowFullyCoveredByCover: c,
|
|
2697
2697
|
isActionCoveredByCover: b,
|
|
2698
|
-
permissionDefinesAction:
|
|
2699
|
-
toggleAction:
|
|
2700
|
-
isAllActionChecked:
|
|
2701
|
-
isAllActionIndeterminate:
|
|
2698
|
+
permissionDefinesAction: E,
|
|
2699
|
+
toggleAction: v,
|
|
2700
|
+
isAllActionChecked: R,
|
|
2701
|
+
isAllActionIndeterminate: k,
|
|
2702
2702
|
toggleAllAction: X,
|
|
2703
|
-
actionLabel:
|
|
2703
|
+
actionLabel: V
|
|
2704
2704
|
};
|
|
2705
2705
|
}
|
|
2706
|
-
const Uo = { class: "flex flex-col gap-16" },
|
|
2706
|
+
const Uo = { class: "flex flex-col gap-16" }, xo = { class: "fm-typo-en-title-sm-600" }, Vo = { class: "mt-16" }, 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__ */ Le({
|
|
2707
2707
|
__name: "BasePermission",
|
|
2708
2708
|
props: {
|
|
2709
2709
|
modelValue: {
|
|
@@ -2725,19 +2725,19 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2725
2725
|
},
|
|
2726
2726
|
emits: ["update:model-value"],
|
|
2727
2727
|
setup(e, { emit: t }) {
|
|
2728
|
-
const n = e, s = t, { t: l } = He(), a = z(() => [...
|
|
2728
|
+
const n = e, s = t, { t: l } = He(), a = z(() => [...Wn, ...n.additionalPermissions]), {
|
|
2729
2729
|
categoryGroups: d,
|
|
2730
2730
|
isAllManageChecked: u,
|
|
2731
2731
|
isAllManageIndeterminate: i,
|
|
2732
2732
|
toggleAllManage: g,
|
|
2733
|
-
isManageChecked:
|
|
2733
|
+
isManageChecked: I,
|
|
2734
2734
|
isManageIndeterminate: C,
|
|
2735
2735
|
toggleManage: N,
|
|
2736
2736
|
isActionChecked: F,
|
|
2737
|
-
isRowFullyCoveredByCover:
|
|
2738
|
-
isActionCoveredByCover:
|
|
2739
|
-
permissionDefinesAction:
|
|
2740
|
-
toggleAction:
|
|
2737
|
+
isRowFullyCoveredByCover: w,
|
|
2738
|
+
isActionCoveredByCover: L,
|
|
2739
|
+
permissionDefinesAction: D,
|
|
2740
|
+
toggleAction: f,
|
|
2741
2741
|
isAllActionChecked: h,
|
|
2742
2742
|
isAllActionIndeterminate: S,
|
|
2743
2743
|
toggleAllAction: c,
|
|
@@ -2746,124 +2746,124 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2746
2746
|
en(n, "modelValue"),
|
|
2747
2747
|
a,
|
|
2748
2748
|
en(n, "excludedSubjects"),
|
|
2749
|
-
(
|
|
2749
|
+
(R, k) => s("update:model-value", k)
|
|
2750
2750
|
);
|
|
2751
|
-
function
|
|
2752
|
-
const
|
|
2753
|
-
return
|
|
2751
|
+
function E(R) {
|
|
2752
|
+
const k = R.selectedSubjects.length;
|
|
2753
|
+
return k === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: k });
|
|
2754
2754
|
}
|
|
2755
|
-
function
|
|
2756
|
-
return
|
|
2757
|
-
(X) =>
|
|
2755
|
+
function v(R, k) {
|
|
2756
|
+
return I(R, k) || w(R, k) ? !0 : R.actionColumns.some(
|
|
2757
|
+
(X) => D(R, k, X) && (F(R, k, X) || L(R, k, X))
|
|
2758
2758
|
);
|
|
2759
2759
|
}
|
|
2760
|
-
return (
|
|
2761
|
-
const X =
|
|
2760
|
+
return (R, k) => {
|
|
2761
|
+
const X = we("FmCheckbox");
|
|
2762
2762
|
return J(), ie("div", Uo, [
|
|
2763
|
-
(J(!0), ie(
|
|
2764
|
-
key:
|
|
2765
|
-
subtitle:
|
|
2763
|
+
(J(!0), ie(Re, null, ye(H(d), (V) => (J(), Ne(Xt, {
|
|
2764
|
+
key: V.category,
|
|
2765
|
+
subtitle: E(V)
|
|
2766
2766
|
}, {
|
|
2767
2767
|
title: de(() => [
|
|
2768
|
-
ae("p",
|
|
2768
|
+
ae("p", xo, Oe(V.label), 1)
|
|
2769
2769
|
]),
|
|
2770
2770
|
default: de(() => [
|
|
2771
|
-
ae("div",
|
|
2771
|
+
ae("div", Vo, [
|
|
2772
2772
|
ae("div", {
|
|
2773
2773
|
class: "grid items-center px-12 py-8",
|
|
2774
2774
|
style: nt({
|
|
2775
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2775
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${V.actionColumns.length + 1}, 80px)`
|
|
2776
2776
|
})
|
|
2777
2777
|
}, [
|
|
2778
|
-
|
|
2779
|
-
ae("div",
|
|
2780
|
-
(J(!0), ie(
|
|
2781
|
-
key: `header-${
|
|
2778
|
+
k[0] || (k[0] = ae("div", null, null, -1)),
|
|
2779
|
+
ae("div", Go, Oe(H(l)("team.memberForm.permissions.columnManage")), 1),
|
|
2780
|
+
(J(!0), ie(Re, null, ye(V.actionColumns, (m) => (J(), ie("div", {
|
|
2781
|
+
key: `header-${m}`,
|
|
2782
2782
|
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2783
|
-
}, Oe(H(b)(
|
|
2783
|
+
}, Oe(H(b)(m)), 1))), 128))
|
|
2784
2784
|
], 4),
|
|
2785
2785
|
ae("div", {
|
|
2786
2786
|
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
2787
2787
|
style: nt({
|
|
2788
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2788
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${V.actionColumns.length + 1}, 80px)`
|
|
2789
2789
|
})
|
|
2790
2790
|
}, [
|
|
2791
2791
|
ae("div", {
|
|
2792
2792
|
class: "cursor-pointer font-semibold",
|
|
2793
|
-
onClick: (
|
|
2794
|
-
}, Oe(H(l)("team.labels.all")), 9,
|
|
2795
|
-
ae("div",
|
|
2793
|
+
onClick: (m) => !e.disable && H(g)(V)
|
|
2794
|
+
}, Oe(H(l)("team.labels.all")), 9, Wo),
|
|
2795
|
+
ae("div", Zo, [
|
|
2796
2796
|
ue(X, {
|
|
2797
|
-
"model-value": H(u)(
|
|
2798
|
-
indeterminate: H(i)(
|
|
2797
|
+
"model-value": H(u)(V),
|
|
2798
|
+
indeterminate: H(i)(V),
|
|
2799
2799
|
value: !0,
|
|
2800
2800
|
disabled: e.disable,
|
|
2801
2801
|
size: "sm",
|
|
2802
2802
|
dense: "",
|
|
2803
|
-
"onUpdate:modelValue": (
|
|
2803
|
+
"onUpdate:modelValue": (m) => H(g)(V)
|
|
2804
2804
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2805
2805
|
]),
|
|
2806
|
-
(J(!0), ie(
|
|
2807
|
-
key: `all-${
|
|
2806
|
+
(J(!0), ie(Re, null, ye(V.actionColumns, (m) => (J(), ie("div", {
|
|
2807
|
+
key: `all-${m}`,
|
|
2808
2808
|
class: "flex justify-center"
|
|
2809
2809
|
}, [
|
|
2810
2810
|
ue(X, {
|
|
2811
|
-
"model-value": H(h)(
|
|
2812
|
-
indeterminate: H(S)(
|
|
2813
|
-
value:
|
|
2811
|
+
"model-value": H(h)(V, m),
|
|
2812
|
+
indeterminate: H(S)(V, m),
|
|
2813
|
+
value: m,
|
|
2814
2814
|
disabled: e.disable,
|
|
2815
2815
|
size: "sm",
|
|
2816
2816
|
dense: "",
|
|
2817
|
-
"onUpdate:modelValue": (T) => H(c)(
|
|
2817
|
+
"onUpdate:modelValue": (T) => H(c)(V, m, T)
|
|
2818
2818
|
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2819
2819
|
]))), 128))
|
|
2820
2820
|
], 4),
|
|
2821
|
-
|
|
2822
|
-
(J(!0), ie(
|
|
2823
|
-
key:
|
|
2821
|
+
k[1] || (k[1] = ae("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2822
|
+
(J(!0), ie(Re, null, ye(V.options, (m) => (J(), ie("div", {
|
|
2823
|
+
key: m.optionKey,
|
|
2824
2824
|
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2825
2825
|
style: nt({
|
|
2826
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${
|
|
2826
|
+
gridTemplateColumns: `minmax(0, 1fr) repeat(${V.actionColumns.length + 1}, 80px)`
|
|
2827
2827
|
})
|
|
2828
2828
|
}, [
|
|
2829
|
-
ae("div",
|
|
2829
|
+
ae("div", Bo, [
|
|
2830
2830
|
ae("span", {
|
|
2831
2831
|
class: "block truncate cursor-pointer",
|
|
2832
|
-
title:
|
|
2833
|
-
onClick: (T) => !e.disable && !H(
|
|
2834
|
-
}, Oe(
|
|
2835
|
-
Se(
|
|
2836
|
-
option:
|
|
2837
|
-
isEffectiveSelected:
|
|
2838
|
-
isCoveredByCover: H(
|
|
2832
|
+
title: m.label,
|
|
2833
|
+
onClick: (T) => !e.disable && !H(w)(V, m.value) && H(N)(V, m.value, !H(I)(V, m.value))
|
|
2834
|
+
}, Oe(m.label), 9, Yo),
|
|
2835
|
+
Se(R.$slots, `checkbox-${m.value}-append`, {
|
|
2836
|
+
option: m,
|
|
2837
|
+
isEffectiveSelected: v(V, m.value),
|
|
2838
|
+
isCoveredByCover: H(w)(V, m.value) || V.actionColumns.some((T) => H(L)(V, m.value, T))
|
|
2839
2839
|
}),
|
|
2840
|
-
Se(
|
|
2841
|
-
option:
|
|
2842
|
-
isEffectiveSelected:
|
|
2843
|
-
isCoveredByCover: H(
|
|
2840
|
+
Se(R.$slots, `checkbox-${m.value}-icon`, {
|
|
2841
|
+
option: m,
|
|
2842
|
+
isEffectiveSelected: v(V, m.value),
|
|
2843
|
+
isCoveredByCover: H(w)(V, m.value) || V.actionColumns.some((T) => H(L)(V, m.value, T))
|
|
2844
2844
|
})
|
|
2845
2845
|
]),
|
|
2846
2846
|
ae("div", Xo, [
|
|
2847
2847
|
ue(X, {
|
|
2848
|
-
"model-value": H(
|
|
2849
|
-
value:
|
|
2850
|
-
disabled: e.disable || H(
|
|
2851
|
-
indeterminate: H(C)(
|
|
2848
|
+
"model-value": H(I)(V, m.value) || H(w)(V, m.value),
|
|
2849
|
+
value: m.value,
|
|
2850
|
+
disabled: e.disable || H(w)(V, m.value),
|
|
2851
|
+
indeterminate: H(C)(V, m.value),
|
|
2852
2852
|
size: "sm",
|
|
2853
|
-
"onUpdate:modelValue": (T) => H(N)(
|
|
2853
|
+
"onUpdate:modelValue": (T) => H(N)(V, m.value, T)
|
|
2854
2854
|
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2855
2855
|
]),
|
|
2856
|
-
(J(!0), ie(
|
|
2857
|
-
key: `${
|
|
2856
|
+
(J(!0), ie(Re, null, ye(V.actionColumns, (T) => (J(), ie("div", {
|
|
2857
|
+
key: `${m.optionKey}-${T}`,
|
|
2858
2858
|
class: "flex justify-center"
|
|
2859
2859
|
}, [
|
|
2860
|
-
H(
|
|
2860
|
+
H(D)(V, m.value, T) ? (J(), Ne(X, {
|
|
2861
2861
|
key: 0,
|
|
2862
|
-
"model-value": H(F)(
|
|
2862
|
+
"model-value": H(F)(V, m.value, T) || H(L)(V, m.value, T),
|
|
2863
2863
|
value: T,
|
|
2864
|
-
disabled: e.disable || H(
|
|
2864
|
+
disabled: e.disable || H(L)(V, m.value, T),
|
|
2865
2865
|
size: "sm",
|
|
2866
|
-
"onUpdate:modelValue": (U) => H(
|
|
2866
|
+
"onUpdate:modelValue": (U) => H(f)(m.value, T, U)
|
|
2867
2867
|
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Me("", !0)
|
|
2868
2868
|
]))), 128))
|
|
2869
2869
|
], 4))), 128))
|
|
@@ -2880,7 +2880,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2880
2880
|
}, Ko = {
|
|
2881
2881
|
key: 0,
|
|
2882
2882
|
class: "q-mr-xs text-red col"
|
|
2883
|
-
}, zo = { class: "form-input" }, Qo = /* @__PURE__ */
|
|
2883
|
+
}, zo = { class: "form-input" }, Qo = /* @__PURE__ */ Le({
|
|
2884
2884
|
__name: "AppForm",
|
|
2885
2885
|
props: {
|
|
2886
2886
|
title: {
|
|
@@ -2916,7 +2916,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2916
2916
|
}), qo = { class: "col flex items-center" }, ea = {
|
|
2917
2917
|
key: 1,
|
|
2918
2918
|
class: "q-pa-sm form-error-message text-error"
|
|
2919
|
-
}, is = /* @__PURE__ */
|
|
2919
|
+
}, is = /* @__PURE__ */ Le({
|
|
2920
2920
|
__name: "CheckboxInput",
|
|
2921
2921
|
props: {
|
|
2922
2922
|
options: {
|
|
@@ -2974,36 +2974,36 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
2974
2974
|
},
|
|
2975
2975
|
emits: ["update:model-value"],
|
|
2976
2976
|
setup(e, { emit: t }) {
|
|
2977
|
-
const n = e, s = t, { t: l } = He(), a = st(!1), d =
|
|
2978
|
-
() => n.modelValue.filter((
|
|
2977
|
+
const n = e, s = t, { t: l } = He(), a = st(!1), d = vs(), 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-${Ls(6)}`, g = z(() => u.value !== !0), I = z(
|
|
2978
|
+
() => n.modelValue.filter((L) => n.options.some((D) => D.value === L))
|
|
2979
2979
|
), C = z(
|
|
2980
2980
|
() => typeof n.showAllToggle == "boolean" ? l("team.labels.all") : n.showAllToggle
|
|
2981
|
-
), N = z(() => n.options.length > 0 && n.options.length ===
|
|
2981
|
+
), N = z(() => n.options.length > 0 && n.options.length === I.value.length);
|
|
2982
2982
|
function F() {
|
|
2983
|
-
const
|
|
2983
|
+
const L = n.modelValue.filter((D) => !I.value.includes(D));
|
|
2984
2984
|
if (N.value === !0)
|
|
2985
|
-
s("update:model-value",
|
|
2985
|
+
s("update:model-value", L);
|
|
2986
2986
|
else {
|
|
2987
|
-
const
|
|
2988
|
-
s("update:model-value", [...
|
|
2987
|
+
const D = n.includeDisabledOptionsWhenSelectAll ? n.options.map((f) => f.value) : n.options.filter((f) => !f.disabled).map((f) => f.value);
|
|
2988
|
+
s("update:model-value", [...L, ...D]);
|
|
2989
2989
|
}
|
|
2990
2990
|
}
|
|
2991
|
-
function
|
|
2992
|
-
let
|
|
2993
|
-
|
|
2991
|
+
function w(L, D) {
|
|
2992
|
+
let f = Et(n.modelValue);
|
|
2993
|
+
D ? f.every((h) => h !== L) && f.push(L) : f = f.filter((h) => h !== L), s("update:model-value", f);
|
|
2994
2994
|
}
|
|
2995
|
-
return (
|
|
2996
|
-
const
|
|
2995
|
+
return (L, D) => {
|
|
2996
|
+
const f = we("FmCheckbox");
|
|
2997
2997
|
return J(), Ne(Qo, {
|
|
2998
2998
|
id: i,
|
|
2999
2999
|
title: e.title,
|
|
3000
3000
|
required: !1
|
|
3001
3001
|
}, {
|
|
3002
3002
|
top: de(() => [
|
|
3003
|
-
Se(
|
|
3003
|
+
Se(L.$slots, "top")
|
|
3004
3004
|
]),
|
|
3005
3005
|
default: de(() => [
|
|
3006
|
-
n.showAllToggle ? (J(), Ne(
|
|
3006
|
+
n.showAllToggle ? (J(), Ne(f, {
|
|
3007
3007
|
key: 0,
|
|
3008
3008
|
"model-value": N.value,
|
|
3009
3009
|
disabled: e.disable,
|
|
@@ -3014,7 +3014,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3014
3014
|
value: C.value,
|
|
3015
3015
|
"onUpdate:modelValue": F
|
|
3016
3016
|
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Me("", !0),
|
|
3017
|
-
(J(!0), ie(
|
|
3017
|
+
(J(!0), ie(Re, null, ye(e.options, (h, S) => (J(), ie("div", {
|
|
3018
3018
|
key: h.value,
|
|
3019
3019
|
style: nt(`margin-bottom: ${S < e.options.length - 1 ? n.gutter : 0}px`),
|
|
3020
3020
|
class: qe(S < e.options.length - 1 ? "q-mb-sm" : "")
|
|
@@ -3023,15 +3023,15 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3023
3023
|
class: qe(["row justify-between", e.alignCenter ? "items-center" : "items-start"])
|
|
3024
3024
|
}, [
|
|
3025
3025
|
ae("div", qo, [
|
|
3026
|
-
ue(
|
|
3026
|
+
ue(f, {
|
|
3027
3027
|
"model-value": e.modelValue.includes(h.value),
|
|
3028
3028
|
disabled: e.disable || h.disabled,
|
|
3029
3029
|
size: "sm",
|
|
3030
3030
|
label: h.label,
|
|
3031
3031
|
value: h.label,
|
|
3032
|
-
"onUpdate:modelValue": (c) =>
|
|
3032
|
+
"onUpdate:modelValue": (c) => w(h.value, c)
|
|
3033
3033
|
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
3034
|
-
Se(
|
|
3034
|
+
Se(L.$slots, `checkbox-${h.key || h.value}-append`, {
|
|
3035
3035
|
option: h,
|
|
3036
3036
|
selected: e.modelValue.includes(h.value)
|
|
3037
3037
|
})
|
|
@@ -3040,7 +3040,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3040
3040
|
key: 0,
|
|
3041
3041
|
class: qe([{ "q-checkbox disabled": e.disable || h.disabled }, "col"])
|
|
3042
3042
|
}, [
|
|
3043
|
-
Se(
|
|
3043
|
+
Se(L.$slots, `checkbox-${h.key || h.value}-end`, {
|
|
3044
3044
|
option: h,
|
|
3045
3045
|
value: e.modelValue.includes(h.value),
|
|
3046
3046
|
disable: e.disable || h.disabled
|
|
@@ -3052,7 +3052,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3052
3052
|
class: qe(["q-mt-sm", { "q-checkbox disabled": e.disable || h.disabled }]),
|
|
3053
3053
|
style: nt(`margin-left: ${e.bottomSlotIndent}`)
|
|
3054
3054
|
}, [
|
|
3055
|
-
Se(
|
|
3055
|
+
Se(L.$slots, `checkbox-${h.key || h.value}-bottom`, {
|
|
3056
3056
|
option: h,
|
|
3057
3057
|
disable: e.disable || h.disabled,
|
|
3058
3058
|
value: e.modelValue.includes(h.value)
|
|
@@ -3065,7 +3065,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3065
3065
|
}, 8, ["title"]);
|
|
3066
3066
|
};
|
|
3067
3067
|
}
|
|
3068
|
-
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture",
|
|
3068
|
+
}), ta = { class: "fm-typo-en-title-sm-600" }, ht = "includedFuture", Dn = /* @__PURE__ */ Le({
|
|
3069
3069
|
__name: "ConditionPermission",
|
|
3070
3070
|
props: {
|
|
3071
3071
|
modelValue: {
|
|
@@ -3095,19 +3095,19 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3095
3095
|
disabled: !!n.modelValue && n.options.length > n.modelValue.length
|
|
3096
3096
|
},
|
|
3097
3097
|
...n.options.filter(
|
|
3098
|
-
(
|
|
3098
|
+
(I) => I.label.toLocaleLowerCase().includes(g.value.toLocaleLowerCase())
|
|
3099
3099
|
)
|
|
3100
|
-
]), d = z(() => n.modelValue ? n.modelValue : [ht, ...n.options.map((
|
|
3101
|
-
const
|
|
3102
|
-
return
|
|
3100
|
+
]), d = z(() => n.modelValue ? n.modelValue : [ht, ...n.options.map((I) => I.value)]), u = z(() => {
|
|
3101
|
+
const I = d.value.filter((C) => C !== ht).length;
|
|
3102
|
+
return I === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: I });
|
|
3103
3103
|
});
|
|
3104
|
-
function i(
|
|
3105
|
-
const C =
|
|
3106
|
-
s("update:model-value", C ? null :
|
|
3104
|
+
function i(I) {
|
|
3105
|
+
const C = I.length === a.value.length;
|
|
3106
|
+
s("update:model-value", C ? null : I.filter((N) => N !== ht));
|
|
3107
3107
|
}
|
|
3108
3108
|
const g = st("");
|
|
3109
|
-
return (
|
|
3110
|
-
const N =
|
|
3109
|
+
return (I, C) => {
|
|
3110
|
+
const N = we("fm-search");
|
|
3111
3111
|
return J(), Ne(Xt, { subtitle: u.value }, {
|
|
3112
3112
|
title: de(() => [
|
|
3113
3113
|
ae("p", ta, Oe(H(l)("team.memberForm.permissions.manageable", { context: e.context })), 1)
|
|
@@ -3131,10 +3131,10 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3131
3131
|
class: "mt-16",
|
|
3132
3132
|
"onUpdate:modelValue": i
|
|
3133
3133
|
}, et({ _: 2 }, [
|
|
3134
|
-
|
|
3134
|
+
ye(a.value, (F) => ({
|
|
3135
3135
|
name: `checkbox-${F.value}-append`,
|
|
3136
|
-
fn: de(({ option:
|
|
3137
|
-
Se(
|
|
3136
|
+
fn: de(({ option: w }) => [
|
|
3137
|
+
Se(I.$slots, `checkbox-${F.value}-append`, { option: w })
|
|
3138
3138
|
])
|
|
3139
3139
|
}))
|
|
3140
3140
|
]), 1032, ["model-value", "options", "disable"])
|
|
@@ -3143,7 +3143,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3143
3143
|
}, 8, ["subtitle"]);
|
|
3144
3144
|
};
|
|
3145
3145
|
}
|
|
3146
|
-
}), na = { class: "fm-typo-en-title-sm-600" }, bt = "includedNewRole", sa = /* @__PURE__ */
|
|
3146
|
+
}), na = { class: "fm-typo-en-title-sm-600" }, bt = "includedNewRole", sa = /* @__PURE__ */ Le({
|
|
3147
3147
|
__name: "PosRolePermission",
|
|
3148
3148
|
props: {
|
|
3149
3149
|
modelValue: {
|
|
@@ -3173,21 +3173,21 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3173
3173
|
value: bt,
|
|
3174
3174
|
disabled: !!n.modelValue && n.roles.length > n.modelValue.length
|
|
3175
3175
|
},
|
|
3176
|
-
...n.roles.map((
|
|
3177
|
-
label:
|
|
3178
|
-
value:
|
|
3179
|
-
disabled: !!g &&
|
|
3176
|
+
...n.roles.map((I) => ({
|
|
3177
|
+
label: I.name,
|
|
3178
|
+
value: I._id,
|
|
3179
|
+
disabled: !!g && I.restaurants.every(({ id: C }) => !g.includes(C))
|
|
3180
3180
|
}))
|
|
3181
3181
|
];
|
|
3182
3182
|
}), d = z(() => n.modelValue ? n.modelValue : [bt, ...n.roles.map((g) => g._id)]), u = z(() => {
|
|
3183
|
-
const g = d.value.filter((
|
|
3183
|
+
const g = d.value.filter((I) => I !== bt).length;
|
|
3184
3184
|
return g === 0 ? "" : l("team.memberForm.permissions.allowedCount", { count: g });
|
|
3185
3185
|
});
|
|
3186
3186
|
function i(g) {
|
|
3187
|
-
const
|
|
3188
|
-
s("update:model-value",
|
|
3187
|
+
const I = g.length === a.value.length;
|
|
3188
|
+
s("update:model-value", I ? null : g.filter((C) => C !== bt));
|
|
3189
3189
|
}
|
|
3190
|
-
return (g,
|
|
3190
|
+
return (g, I) => (J(), Ne(Xt, { subtitle: u.value }, {
|
|
3191
3191
|
title: de(() => [
|
|
3192
3192
|
ae("p", na, Oe(H(l)("team.memberForm.permissions.roles")), 1)
|
|
3193
3193
|
]),
|
|
@@ -3202,7 +3202,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3202
3202
|
class: "mt-16",
|
|
3203
3203
|
"onUpdate:modelValue": i
|
|
3204
3204
|
}, et({ _: 2 }, [
|
|
3205
|
-
|
|
3205
|
+
ye(a.value, (C) => ({
|
|
3206
3206
|
name: `checkbox-${C.value}-append`,
|
|
3207
3207
|
fn: de(({ option: N }) => [
|
|
3208
3208
|
Se(g.$slots, `checkbox-${C.value}-append`, { option: N })
|
|
@@ -3223,7 +3223,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3223
3223
|
}, aa = {
|
|
3224
3224
|
key: 0,
|
|
3225
3225
|
class: "ml-32"
|
|
3226
|
-
}, Fn = /* @__PURE__ */
|
|
3226
|
+
}, Fn = /* @__PURE__ */ Le({
|
|
3227
3227
|
__name: "PortalConditionForm",
|
|
3228
3228
|
props: {
|
|
3229
3229
|
entry: {},
|
|
@@ -3242,7 +3242,7 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3242
3242
|
setup(e, { emit: t }) {
|
|
3243
3243
|
const n = t, { t: s } = He();
|
|
3244
3244
|
return (l, a) => {
|
|
3245
|
-
const d =
|
|
3245
|
+
const d = we("FmRadio"), u = we("FmRadioGroup");
|
|
3246
3246
|
return J(), Ne(Ts, {
|
|
3247
3247
|
title: e.title,
|
|
3248
3248
|
builders: e.builders,
|
|
@@ -3302,11 +3302,11 @@ const Uo = { class: "flex flex-col gap-16" }, Vo = { class: "fm-typo-en-title-sm
|
|
|
3302
3302
|
}
|
|
3303
3303
|
}), la = {
|
|
3304
3304
|
async readWarehouses() {
|
|
3305
|
-
return
|
|
3305
|
+
return As(await Rs().get("/warehouses"));
|
|
3306
3306
|
}
|
|
3307
3307
|
};
|
|
3308
3308
|
function Pn(e, t) {
|
|
3309
|
-
return
|
|
3309
|
+
return Zn(e, Bn).some(
|
|
3310
3310
|
(n) => n.subject === t && !n.inverted && n.actions.includes("manage")
|
|
3311
3311
|
);
|
|
3312
3312
|
}
|
|
@@ -3331,35 +3331,35 @@ function ia(e, t, n, s) {
|
|
|
3331
3331
|
);
|
|
3332
3332
|
let u = [...n];
|
|
3333
3333
|
for (const i of l)
|
|
3334
|
-
a.has(i) || (d.has(i) && (u = u.filter((
|
|
3334
|
+
a.has(i) || (d.has(i) && (u = u.filter((I) => I.subject !== i)), (!d.has(i) || Pn(u, i)) && (u = jn(u, i)));
|
|
3335
3335
|
for (const i of a)
|
|
3336
3336
|
if (!l.has(i)) {
|
|
3337
|
-
const g = u.some((
|
|
3338
|
-
if (u = u.filter((
|
|
3339
|
-
const
|
|
3337
|
+
const g = u.some((I) => I.subject === i && I.inverted);
|
|
3338
|
+
if (u = u.filter((I) => !(I.subject === i && I.inverted)), !g && !d.has(i)) {
|
|
3339
|
+
const I = t.find(
|
|
3340
3340
|
(N) => N.subject === i && !N.inverted
|
|
3341
3341
|
), C = s(i);
|
|
3342
|
-
C &&
|
|
3342
|
+
C && I && u.push(Un(C, I.actions, I.conditions));
|
|
3343
3343
|
}
|
|
3344
3344
|
}
|
|
3345
3345
|
for (const i of a) {
|
|
3346
3346
|
if (!l.has(i)) continue;
|
|
3347
|
-
const g = e.find((
|
|
3348
|
-
if (!g || !
|
|
3349
|
-
const C = new Set(g.actions), N = new Set(
|
|
3350
|
-
if (C.size === N.size && [...C].every((
|
|
3347
|
+
const g = e.find((w) => w.subject === i && !w.inverted), I = t.find((w) => w.subject === i && !w.inverted);
|
|
3348
|
+
if (!g || !I) continue;
|
|
3349
|
+
const C = new Set(g.actions), N = new Set(I.actions);
|
|
3350
|
+
if (C.size === N.size && [...C].every((w) => N.has(w)))
|
|
3351
3351
|
continue;
|
|
3352
|
-
const F = u.findIndex((
|
|
3352
|
+
const F = u.findIndex((w) => w.subject === i && !w.inverted);
|
|
3353
3353
|
if (F >= 0)
|
|
3354
3354
|
u[F] = {
|
|
3355
3355
|
...u[F],
|
|
3356
3356
|
actions: Array.from(N)
|
|
3357
3357
|
};
|
|
3358
3358
|
else {
|
|
3359
|
-
const
|
|
3360
|
-
|
|
3359
|
+
const w = s(i);
|
|
3360
|
+
w && u.push(Un(w, Array.from(N)));
|
|
3361
3361
|
}
|
|
3362
|
-
C.has("manage") && !N.has("manage") && Pn(u, i) && (u = jn(u, i)), !C.has("manage") && N.has("manage") && (u = u.filter((
|
|
3362
|
+
C.has("manage") && !N.has("manage") && Pn(u, i) && (u = jn(u, i)), !C.has("manage") && N.has("manage") && (u = u.filter((w) => !(w.subject === i && w.inverted)));
|
|
3363
3363
|
}
|
|
3364
3364
|
return u;
|
|
3365
3365
|
}
|
|
@@ -3388,267 +3388,267 @@ function da(e, t) {
|
|
|
3388
3388
|
function gt(e, t) {
|
|
3389
3389
|
return `${e}::${t.builderKey}`;
|
|
3390
3390
|
}
|
|
3391
|
-
function
|
|
3391
|
+
function Ge(e) {
|
|
3392
3392
|
try {
|
|
3393
3393
|
return e.conditions ? JSON.parse(e.conditions) : void 0;
|
|
3394
3394
|
} catch {
|
|
3395
3395
|
return;
|
|
3396
3396
|
}
|
|
3397
3397
|
}
|
|
3398
|
-
function
|
|
3398
|
+
function ma(e, t) {
|
|
3399
3399
|
return e.find((n) => !n.inverted && n.subject === t);
|
|
3400
3400
|
}
|
|
3401
3401
|
function Mt(e, t) {
|
|
3402
3402
|
const n = new Set(e.actions);
|
|
3403
3403
|
return n.has(he.Action.manage) ? !0 : t.actions.every((s) => n.has(s));
|
|
3404
3404
|
}
|
|
3405
|
-
function
|
|
3406
|
-
const n =
|
|
3407
|
-
return
|
|
3405
|
+
function Bt(e, t) {
|
|
3406
|
+
const n = Ge(e);
|
|
3407
|
+
return Dt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3408
3408
|
}
|
|
3409
|
-
function
|
|
3409
|
+
function xn(e, t, n) {
|
|
3410
3410
|
return {
|
|
3411
|
-
...
|
|
3412
|
-
...tt(
|
|
3411
|
+
...Bt(e, n),
|
|
3412
|
+
...tt(Ge(t), n)
|
|
3413
3413
|
};
|
|
3414
3414
|
}
|
|
3415
|
-
function
|
|
3415
|
+
function fa(e, t, n) {
|
|
3416
3416
|
const s = st(/* @__PURE__ */ new Set());
|
|
3417
3417
|
function l(c) {
|
|
3418
|
-
return
|
|
3418
|
+
return Ds(c, t.value);
|
|
3419
3419
|
}
|
|
3420
3420
|
function a(c) {
|
|
3421
3421
|
return t.value.find((b) => b.subject === c);
|
|
3422
3422
|
}
|
|
3423
3423
|
function d(c) {
|
|
3424
|
-
var
|
|
3424
|
+
var E;
|
|
3425
3425
|
const b = l(c);
|
|
3426
|
-
return b ? (
|
|
3426
|
+
return b ? (E = a(b)) == null ? void 0 : E.label : void 0;
|
|
3427
3427
|
}
|
|
3428
3428
|
function u(c) {
|
|
3429
|
-
return
|
|
3429
|
+
return ma(e.value, c);
|
|
3430
3430
|
}
|
|
3431
3431
|
function i(c, b) {
|
|
3432
|
-
return tt(
|
|
3432
|
+
return tt(Ge(c), b);
|
|
3433
3433
|
}
|
|
3434
3434
|
function g(c, b) {
|
|
3435
|
-
var
|
|
3436
|
-
if (!(((
|
|
3437
|
-
const
|
|
3438
|
-
if (!
|
|
3439
|
-
const
|
|
3440
|
-
return
|
|
3441
|
-
}
|
|
3442
|
-
function
|
|
3435
|
+
var R;
|
|
3436
|
+
if (!(((R = b.appliesToActions) == null ? void 0 : R.call(b, c.actions)) ?? !0)) return !1;
|
|
3437
|
+
const E = l(c.subject);
|
|
3438
|
+
if (!E) return !1;
|
|
3439
|
+
const v = u(E);
|
|
3440
|
+
return v ? Object.keys(i(v, b)).length > 0 : !1;
|
|
3441
|
+
}
|
|
3442
|
+
function I(c, b) {
|
|
3443
3443
|
if (!g(c, b) || s.value.has(gt(c.subject, b))) return "custom";
|
|
3444
3444
|
if (c.index === null) return "inherit";
|
|
3445
|
-
const
|
|
3446
|
-
if (
|
|
3447
|
-
const
|
|
3448
|
-
if (JSON.stringify(
|
|
3445
|
+
const E = e.value[c.index], v = l(c.subject), R = v ? u(v) : void 0;
|
|
3446
|
+
if (E && R) {
|
|
3447
|
+
const k = tt(Ge(E), b), X = i(R, b);
|
|
3448
|
+
if (JSON.stringify(k) === JSON.stringify(X)) return "inherit";
|
|
3449
3449
|
}
|
|
3450
3450
|
return "custom";
|
|
3451
3451
|
}
|
|
3452
|
-
function C(c, b,
|
|
3452
|
+
function C(c, b, E) {
|
|
3453
3453
|
if (!b.summarizeForm) return;
|
|
3454
|
-
const
|
|
3455
|
-
if (!
|
|
3456
|
-
const
|
|
3457
|
-
if (!
|
|
3458
|
-
const
|
|
3459
|
-
return b.summarizeForm(
|
|
3454
|
+
const v = l(c.subject);
|
|
3455
|
+
if (!v) return;
|
|
3456
|
+
const R = u(v);
|
|
3457
|
+
if (!R) return;
|
|
3458
|
+
const k = b.fromCondition(i(R, b));
|
|
3459
|
+
return b.summarizeForm(k, { timeZone: E });
|
|
3460
3460
|
}
|
|
3461
3461
|
function N(c, b) {
|
|
3462
3462
|
if (c.index === null) return;
|
|
3463
|
-
const
|
|
3464
|
-
if (
|
|
3465
|
-
|
|
3466
|
-
else if (
|
|
3467
|
-
const T =
|
|
3468
|
-
Object.keys(T).length === 0 ? delete
|
|
3463
|
+
const E = [...e.value], v = { ...E[c.index] }, R = Bt(v, b), k = Object.keys(R).length === 0, X = l(c.subject), V = X ? u(X) : void 0, m = V ? Mt(V, v) : !1;
|
|
3464
|
+
if (k && m)
|
|
3465
|
+
E.splice(c.index, 1);
|
|
3466
|
+
else if (V) {
|
|
3467
|
+
const T = xn(v, V, b);
|
|
3468
|
+
Object.keys(T).length === 0 ? delete v.conditions : v.conditions = JSON.stringify(T), E[c.index] = v;
|
|
3469
3469
|
} else
|
|
3470
|
-
|
|
3471
|
-
n(
|
|
3472
|
-
}
|
|
3473
|
-
function F(c, b,
|
|
3474
|
-
const
|
|
3475
|
-
if (
|
|
3476
|
-
const
|
|
3477
|
-
|
|
3470
|
+
k ? delete v.conditions : v.conditions = JSON.stringify(R), E[c.index] = v;
|
|
3471
|
+
n(E);
|
|
3472
|
+
}
|
|
3473
|
+
function F(c, b, E) {
|
|
3474
|
+
const v = gt(c.subject, b);
|
|
3475
|
+
if (E === "inherit") {
|
|
3476
|
+
const k = new Set(s.value);
|
|
3477
|
+
k.delete(v), s.value = k, N(c, b);
|
|
3478
3478
|
return;
|
|
3479
3479
|
}
|
|
3480
|
-
const
|
|
3481
|
-
|
|
3480
|
+
const R = new Set(s.value);
|
|
3481
|
+
R.add(v), s.value = R, c.index === null && h(c, b, b.fromCondition(void 0), {
|
|
3482
3482
|
forceCreateRule: !0
|
|
3483
3483
|
});
|
|
3484
3484
|
}
|
|
3485
|
-
function
|
|
3485
|
+
function w(c) {
|
|
3486
3486
|
const b = l(c);
|
|
3487
3487
|
if (!b) return [];
|
|
3488
|
-
const
|
|
3489
|
-
return (
|
|
3490
|
-
}
|
|
3491
|
-
function
|
|
3492
|
-
return e.value.filter((
|
|
3493
|
-
if (
|
|
3494
|
-
const
|
|
3495
|
-
return
|
|
3488
|
+
const E = u(b);
|
|
3489
|
+
return (E == null ? void 0 : E.actions) ?? [];
|
|
3490
|
+
}
|
|
3491
|
+
function L(c, b) {
|
|
3492
|
+
return e.value.filter((E) => {
|
|
3493
|
+
if (E.inverted) return !1;
|
|
3494
|
+
const v = E.subject;
|
|
3495
|
+
return v === c || l(v) !== c ? !1 : s.value.has(gt(v, b)) ? !0 : Object.keys(tt(Ge(E), b)).length > 0;
|
|
3496
3496
|
});
|
|
3497
3497
|
}
|
|
3498
|
-
function
|
|
3499
|
-
const
|
|
3500
|
-
for (const
|
|
3501
|
-
if (!
|
|
3502
|
-
const
|
|
3503
|
-
l(
|
|
3498
|
+
function D(c, b) {
|
|
3499
|
+
const E = `::${b.builderKey}`, v = new Set(s.value);
|
|
3500
|
+
for (const R of v) {
|
|
3501
|
+
if (!R.endsWith(E)) continue;
|
|
3502
|
+
const k = R.slice(0, -E.length);
|
|
3503
|
+
l(k) === c && v.delete(R);
|
|
3504
3504
|
}
|
|
3505
|
-
s.value =
|
|
3506
|
-
}
|
|
3507
|
-
function
|
|
3508
|
-
const
|
|
3509
|
-
return c.reduce((
|
|
3510
|
-
if (
|
|
3511
|
-
return
|
|
3512
|
-
const X =
|
|
3513
|
-
if (X ===
|
|
3514
|
-
return
|
|
3515
|
-
if (Mt(b,
|
|
3516
|
-
return
|
|
3517
|
-
const
|
|
3518
|
-
if (Object.keys(
|
|
3519
|
-
const { conditions: T, ...U } =
|
|
3520
|
-
|
|
3505
|
+
s.value = v;
|
|
3506
|
+
}
|
|
3507
|
+
function f(c, b, E) {
|
|
3508
|
+
const v = b.subject;
|
|
3509
|
+
return c.reduce((R, k) => {
|
|
3510
|
+
if (k.inverted)
|
|
3511
|
+
return R.push(k), R;
|
|
3512
|
+
const X = k.subject;
|
|
3513
|
+
if (X === v || l(X) !== v)
|
|
3514
|
+
return R.push(k), R;
|
|
3515
|
+
if (Mt(b, k) && Object.keys(Bt(k, E)).length === 0)
|
|
3516
|
+
return R;
|
|
3517
|
+
const m = xn(k, b, E);
|
|
3518
|
+
if (Object.keys(m).length === 0) {
|
|
3519
|
+
const { conditions: T, ...U } = k;
|
|
3520
|
+
R.push(U);
|
|
3521
3521
|
} else
|
|
3522
|
-
|
|
3523
|
-
return
|
|
3522
|
+
R.push({ ...k, conditions: JSON.stringify(m) });
|
|
3523
|
+
return R;
|
|
3524
3524
|
}, []);
|
|
3525
3525
|
}
|
|
3526
|
-
function h(c, b,
|
|
3527
|
-
var
|
|
3528
|
-
const
|
|
3529
|
-
let
|
|
3530
|
-
const X = b.toCondition(
|
|
3531
|
-
if (
|
|
3532
|
-
if (
|
|
3533
|
-
const j =
|
|
3526
|
+
function h(c, b, E, v = {}) {
|
|
3527
|
+
var x;
|
|
3528
|
+
const R = [...e.value];
|
|
3529
|
+
let k = c.index;
|
|
3530
|
+
const X = b.toCondition(E), V = Object.keys(X).length > 0;
|
|
3531
|
+
if (k === null && !V && !v.forceCreateRule) return;
|
|
3532
|
+
if (k === null) {
|
|
3533
|
+
const j = R.findIndex((W) => !W.inverted && W.subject === c.subject);
|
|
3534
3534
|
if (j !== -1)
|
|
3535
|
-
|
|
3535
|
+
k = j;
|
|
3536
3536
|
else {
|
|
3537
|
-
const
|
|
3538
|
-
if (!
|
|
3537
|
+
const W = t.value.find((Q) => Q.subject === c.subject);
|
|
3538
|
+
if (!W) return;
|
|
3539
3539
|
const {
|
|
3540
|
-
category:
|
|
3541
|
-
showByFeatureFlag:
|
|
3540
|
+
category: G,
|
|
3541
|
+
showByFeatureFlag: B,
|
|
3542
3542
|
isCategoryCover: Y,
|
|
3543
3543
|
...ne
|
|
3544
|
-
} =
|
|
3545
|
-
|
|
3544
|
+
} = W;
|
|
3545
|
+
R.push({
|
|
3546
3546
|
...ne,
|
|
3547
3547
|
actions: c.actions.length > 0 ? c.actions : ne.actions
|
|
3548
|
-
}),
|
|
3548
|
+
}), k = R.length - 1;
|
|
3549
3549
|
}
|
|
3550
3550
|
}
|
|
3551
|
-
const
|
|
3552
|
-
|
|
3553
|
-
.../* @__PURE__ */ new Set([...
|
|
3551
|
+
const m = { ...R[k] };
|
|
3552
|
+
m.actions = [
|
|
3553
|
+
.../* @__PURE__ */ new Set([...m.actions, ...c.actions])
|
|
3554
3554
|
];
|
|
3555
|
-
const T =
|
|
3556
|
-
if (Object.keys(U).length === 0 ? delete
|
|
3557
|
-
const j =
|
|
3558
|
-
var
|
|
3559
|
-
|
|
3560
|
-
},
|
|
3561
|
-
var
|
|
3562
|
-
n(
|
|
3555
|
+
const T = Ge(m), U = Dt(T, [{ builder: b, formValue: E }]);
|
|
3556
|
+
if (Object.keys(U).length === 0 ? delete m.conditions : m.conditions = JSON.stringify(U), R[k] = m, rn(c.subject, t.value)) {
|
|
3557
|
+
const j = L(c.subject, b), W = () => {
|
|
3558
|
+
var B;
|
|
3559
|
+
D(c.subject, b), n(f(R, m, b)), (B = v.afterCommit) == null || B.call(v);
|
|
3560
|
+
}, G = () => {
|
|
3561
|
+
var B;
|
|
3562
|
+
n(R), (B = v.afterCommit) == null || B.call(v);
|
|
3563
3563
|
};
|
|
3564
3564
|
if (j.length === 0) {
|
|
3565
|
-
|
|
3565
|
+
W();
|
|
3566
3566
|
return;
|
|
3567
3567
|
}
|
|
3568
|
-
|
|
3568
|
+
v.onOverridesConflict ? v.onOverridesConflict({ override: W, keep: G }) : G();
|
|
3569
3569
|
return;
|
|
3570
3570
|
}
|
|
3571
|
-
n(
|
|
3571
|
+
n(R), (x = v.afterCommit) == null || x.call(v);
|
|
3572
3572
|
}
|
|
3573
|
-
function S(c, b,
|
|
3573
|
+
function S(c, b, E = {}) {
|
|
3574
3574
|
if (b.length === 0) return;
|
|
3575
|
-
const
|
|
3576
|
-
let
|
|
3575
|
+
const v = [...e.value];
|
|
3576
|
+
let R = v.findIndex((j) => !j.inverted && j.subject === c.subject), k = R === -1 ? void 0 : { ...v[R] }, X = Ge(k ?? {}) ?? {};
|
|
3577
3577
|
for (const j of b) {
|
|
3578
|
-
const
|
|
3579
|
-
X =
|
|
3578
|
+
const W = j.mode === "inherit" ? j.builder.fromCondition(void 0) : j.form;
|
|
3579
|
+
X = Dt(X, [{ builder: j.builder, formValue: W }]);
|
|
3580
3580
|
}
|
|
3581
|
-
const
|
|
3582
|
-
if (!
|
|
3581
|
+
const V = b.some((j) => j.mode === "custom");
|
|
3582
|
+
if (!k && (Object.keys(X).length > 0 || V)) {
|
|
3583
3583
|
const j = t.value.find((ne) => ne.subject === c.subject);
|
|
3584
3584
|
if (!j) return;
|
|
3585
3585
|
const {
|
|
3586
|
-
category:
|
|
3587
|
-
showByFeatureFlag:
|
|
3588
|
-
isCategoryCover:
|
|
3586
|
+
category: W,
|
|
3587
|
+
showByFeatureFlag: G,
|
|
3588
|
+
isCategoryCover: B,
|
|
3589
3589
|
...Y
|
|
3590
3590
|
} = j;
|
|
3591
|
-
|
|
3591
|
+
k = {
|
|
3592
3592
|
...Y,
|
|
3593
3593
|
actions: c.actions.length > 0 ? c.actions : Y.actions
|
|
3594
|
-
},
|
|
3594
|
+
}, v.push(k), R = v.length - 1;
|
|
3595
3595
|
}
|
|
3596
|
-
if (
|
|
3597
|
-
const j = l(c.subject),
|
|
3598
|
-
if (!
|
|
3599
|
-
|
|
3596
|
+
if (k) {
|
|
3597
|
+
const j = l(c.subject), W = j ? u(j) : void 0;
|
|
3598
|
+
if (!V && Object.keys(X).length === 0 && !!W && Mt(W, k))
|
|
3599
|
+
v.splice(R, 1), k = void 0;
|
|
3600
3600
|
else {
|
|
3601
|
-
if (
|
|
3602
|
-
.../* @__PURE__ */ new Set([...
|
|
3603
|
-
],
|
|
3604
|
-
for (const
|
|
3605
|
-
|
|
3601
|
+
if (k.actions = [
|
|
3602
|
+
.../* @__PURE__ */ new Set([...k.actions, ...c.actions])
|
|
3603
|
+
], W)
|
|
3604
|
+
for (const B of b)
|
|
3605
|
+
B.mode === "inherit" && (X = {
|
|
3606
3606
|
...X,
|
|
3607
|
-
...tt(
|
|
3607
|
+
...tt(Ge(W), B.builder)
|
|
3608
3608
|
});
|
|
3609
|
-
Object.keys(X).length === 0 ? delete
|
|
3609
|
+
Object.keys(X).length === 0 ? delete k.conditions : k.conditions = JSON.stringify(X), v[R] = k;
|
|
3610
3610
|
}
|
|
3611
3611
|
}
|
|
3612
|
-
const
|
|
3612
|
+
const m = () => {
|
|
3613
3613
|
const j = new Set(s.value);
|
|
3614
|
-
for (const
|
|
3615
|
-
const
|
|
3616
|
-
|
|
3614
|
+
for (const W of b) {
|
|
3615
|
+
const G = gt(c.subject, W.builder);
|
|
3616
|
+
W.mode === "custom" ? j.add(G) : j.delete(G);
|
|
3617
3617
|
}
|
|
3618
3618
|
s.value = j;
|
|
3619
3619
|
}, T = (j) => {
|
|
3620
|
-
var
|
|
3621
|
-
|
|
3620
|
+
var W;
|
|
3621
|
+
m(), n(j), (W = E.afterCommit) == null || W.call(E);
|
|
3622
3622
|
};
|
|
3623
|
-
if (!rn(c.subject, t.value) || !
|
|
3624
|
-
T(
|
|
3623
|
+
if (!rn(c.subject, t.value) || !k) {
|
|
3624
|
+
T(v);
|
|
3625
3625
|
return;
|
|
3626
3626
|
}
|
|
3627
|
-
const U = b.map((j) => j.builder).filter((j) =>
|
|
3628
|
-
let j =
|
|
3629
|
-
for (const
|
|
3630
|
-
|
|
3627
|
+
const U = b.map((j) => j.builder).filter((j) => L(c.subject, j).length > 0), x = () => {
|
|
3628
|
+
let j = v;
|
|
3629
|
+
for (const W of b.map((G) => G.builder))
|
|
3630
|
+
D(c.subject, W), j = f(j, k, W);
|
|
3631
3631
|
T(j);
|
|
3632
3632
|
};
|
|
3633
|
-
if (U.length > 0 &&
|
|
3634
|
-
|
|
3633
|
+
if (U.length > 0 && E.onOverridesConflict) {
|
|
3634
|
+
E.onOverridesConflict({ override: x, keep: () => T(v) });
|
|
3635
3635
|
return;
|
|
3636
3636
|
}
|
|
3637
|
-
U.length > 0 ? T(
|
|
3637
|
+
U.length > 0 ? T(v) : x();
|
|
3638
3638
|
}
|
|
3639
3639
|
return {
|
|
3640
3640
|
getCoverSubject: l,
|
|
3641
3641
|
coverLabel: d,
|
|
3642
3642
|
shouldShowInheritToggle: g,
|
|
3643
|
-
inheritMode:
|
|
3643
|
+
inheritMode: I,
|
|
3644
3644
|
setInheritMode: F,
|
|
3645
3645
|
inheritedSummary: C,
|
|
3646
|
-
getEffectiveActions:
|
|
3646
|
+
getEffectiveActions: w,
|
|
3647
3647
|
updateBuilderCondition: h,
|
|
3648
3648
|
applyConditionDrafts: S
|
|
3649
3649
|
};
|
|
3650
3650
|
}
|
|
3651
|
-
const _a = { class: "flex flex-col gap-32" },
|
|
3651
|
+
const _a = { class: "flex flex-col gap-32" }, va = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, pa = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ha = { class: "h-[24px] w-[24px] flex items-center justify-center" }, ba = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ga = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Ea = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, Ia = "condition-form-select-menu", Da = /* @__PURE__ */ Le({
|
|
3652
3652
|
__name: "PortalPermissionEditor",
|
|
3653
3653
|
props: /* @__PURE__ */ tn({
|
|
3654
3654
|
disable: {
|
|
@@ -3665,20 +3665,20 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3665
3665
|
}),
|
|
3666
3666
|
emits: /* @__PURE__ */ tn(["permissionChanged"], ["update:modelValue"]),
|
|
3667
3667
|
setup(e, { emit: t }) {
|
|
3668
|
-
const n =
|
|
3669
|
-
fetchCustomReportPermissions:
|
|
3668
|
+
const n = ps(e, "modelValue"), s = e, l = t, { t: a } = He(), d = hs(), u = bs(), { breakpoints: i } = gs(), g = z(() => i.value.xs || i.value.sm), {
|
|
3669
|
+
fetchCustomReportPermissions: I,
|
|
3670
3670
|
customReportPermissions: C
|
|
3671
|
-
} =
|
|
3672
|
-
...
|
|
3671
|
+
} = Es(), N = z(() => [
|
|
3672
|
+
...Wn,
|
|
3673
3673
|
...C.value
|
|
3674
3674
|
]), F = z(() => {
|
|
3675
3675
|
const O = d.currentBusiness.value, r = d.currentCountry.value, o = r instanceof Object ? r.code : r;
|
|
3676
3676
|
return da(O, o);
|
|
3677
3677
|
});
|
|
3678
|
-
function
|
|
3678
|
+
function w(O) {
|
|
3679
3679
|
return N.value.find((r) => r.subject === O);
|
|
3680
3680
|
}
|
|
3681
|
-
function
|
|
3681
|
+
function L(O, r) {
|
|
3682
3682
|
return sn(O).filter(
|
|
3683
3683
|
(o) => {
|
|
3684
3684
|
var _;
|
|
@@ -3686,9 +3686,9 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3686
3686
|
}
|
|
3687
3687
|
);
|
|
3688
3688
|
}
|
|
3689
|
-
const
|
|
3689
|
+
const D = z(() => {
|
|
3690
3690
|
const O = N.value.filter((o) => !c.includes(o.subject)).map((o) => o.subject);
|
|
3691
|
-
return
|
|
3691
|
+
return Is(
|
|
3692
3692
|
s.inheritPermissions.map((o) => ({
|
|
3693
3693
|
...o,
|
|
3694
3694
|
permissions: o.permissions.filter((_) => O.includes(_.subject))
|
|
@@ -3697,17 +3697,17 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3697
3697
|
id: o.subject,
|
|
3698
3698
|
setNames: o.setNames
|
|
3699
3699
|
}));
|
|
3700
|
-
}),
|
|
3700
|
+
}), f = z(() => {
|
|
3701
3701
|
const O = s.inheritPermissions.map((r) => ({
|
|
3702
3702
|
...r,
|
|
3703
3703
|
permissions: r.permissions.filter(
|
|
3704
3704
|
(o) => o.subject === he.Subject.Business.inventory_stock
|
|
3705
3705
|
)
|
|
3706
3706
|
}));
|
|
3707
|
-
return
|
|
3707
|
+
return kt(
|
|
3708
3708
|
O,
|
|
3709
3709
|
"warehouseId",
|
|
3710
|
-
|
|
3710
|
+
E.value.map((r) => r._id)
|
|
3711
3711
|
);
|
|
3712
3712
|
}), h = z(() => {
|
|
3713
3713
|
const O = s.inheritPermissions.map((r) => ({
|
|
@@ -3716,7 +3716,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3716
3716
|
(o) => o.subject === he.Subject.Restaurant.restaurant
|
|
3717
3717
|
)
|
|
3718
3718
|
}));
|
|
3719
|
-
return
|
|
3719
|
+
return kt(
|
|
3720
3720
|
O,
|
|
3721
3721
|
"restaurantId",
|
|
3722
3722
|
X.value.map((r) => r._id)
|
|
@@ -3726,10 +3726,10 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3726
3726
|
...r,
|
|
3727
3727
|
permissions: r.permissions.filter((o) => o.subject === he.Subject.Business.role)
|
|
3728
3728
|
}));
|
|
3729
|
-
return
|
|
3729
|
+
return kt(
|
|
3730
3730
|
O,
|
|
3731
3731
|
"roleId",
|
|
3732
|
-
|
|
3732
|
+
V.value.map((r) => r._id)
|
|
3733
3733
|
);
|
|
3734
3734
|
}), c = [
|
|
3735
3735
|
he.Subject.Business.restaurant,
|
|
@@ -3742,16 +3742,16 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3742
3742
|
(o) => o.subject === he.Subject.Business.inventory_stock
|
|
3743
3743
|
);
|
|
3744
3744
|
return O ? O.conditions ? JSON.parse(O.conditions).warehouseId.$in : null : [];
|
|
3745
|
-
}),
|
|
3745
|
+
}), E = st([]), v = z(() => E.value.map((O) => ({
|
|
3746
3746
|
label: O.profile.name,
|
|
3747
3747
|
value: O._id
|
|
3748
3748
|
})));
|
|
3749
|
-
function
|
|
3750
|
-
const r =
|
|
3749
|
+
function R(O) {
|
|
3750
|
+
const r = k(n.value, O);
|
|
3751
3751
|
n.value = r;
|
|
3752
3752
|
}
|
|
3753
|
-
function
|
|
3754
|
-
let o =
|
|
3753
|
+
function k(O, r) {
|
|
3754
|
+
let o = Et(
|
|
3755
3755
|
O.filter((_) => _.subject !== he.Subject.Business.inventory_stock)
|
|
3756
3756
|
);
|
|
3757
3757
|
if (!r || r.length > 0) {
|
|
@@ -3763,52 +3763,52 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3763
3763
|
}
|
|
3764
3764
|
return o;
|
|
3765
3765
|
}
|
|
3766
|
-
const { restaurants: X } = d,
|
|
3766
|
+
const { restaurants: X } = d, V = Ms().roles, m = z(() => X.value.map((O) => ({
|
|
3767
3767
|
label: `${O.profile.code ? O.profile.code + "-" : ""}${O.profile.name}`,
|
|
3768
3768
|
value: O._id
|
|
3769
|
-
}))), T = z(() => X.value.reduce((O, r) => (O[r._id] =
|
|
3770
|
-
function
|
|
3771
|
-
const r =
|
|
3769
|
+
}))), T = z(() => X.value.reduce((O, r) => (O[r._id] = V.value.filter((o) => o.restaurants.some((_) => _.id === r._id)).map((o) => o._id), O), {})), U = z(() => ys(n.value));
|
|
3770
|
+
function x(O) {
|
|
3771
|
+
const r = W(n.value, O);
|
|
3772
3772
|
n.value = r;
|
|
3773
3773
|
}
|
|
3774
3774
|
const j = z(() => Ns(n.value));
|
|
3775
|
-
function
|
|
3775
|
+
function W(O, r) {
|
|
3776
3776
|
var _;
|
|
3777
|
-
let o =
|
|
3777
|
+
let o = Et(
|
|
3778
3778
|
O.filter(
|
|
3779
|
-
(
|
|
3779
|
+
(A) => A.subject !== he.Subject.Business.restaurant && A.subject !== he.Subject.Restaurant.restaurant
|
|
3780
3780
|
)
|
|
3781
3781
|
);
|
|
3782
3782
|
if (!r || r.length > 0) {
|
|
3783
3783
|
const {
|
|
3784
|
-
category:
|
|
3784
|
+
category: A,
|
|
3785
3785
|
showByFeatureFlag: M,
|
|
3786
3786
|
...P
|
|
3787
|
-
} =
|
|
3787
|
+
} = ks.restaurant;
|
|
3788
3788
|
o.push(P);
|
|
3789
|
-
const
|
|
3789
|
+
const p = {
|
|
3790
3790
|
actions: [he.Action.manage],
|
|
3791
3791
|
subject: he.Subject.Restaurant.restaurant
|
|
3792
3792
|
};
|
|
3793
|
-
r && (
|
|
3793
|
+
r && (p.conditions = JSON.stringify({ restaurantId: { $in: r } })), o.push(p);
|
|
3794
3794
|
}
|
|
3795
3795
|
if (r) {
|
|
3796
|
-
const
|
|
3796
|
+
const A = [
|
|
3797
3797
|
...new Set(r.map((P) => T.value[P]).flatMap((P) => P))
|
|
3798
|
-
], M =
|
|
3799
|
-
|
|
3798
|
+
], M = V.value.map((P) => P._id);
|
|
3799
|
+
A.length !== M.length && (o = B(
|
|
3800
3800
|
o,
|
|
3801
|
-
(_ = j.value || M) == null ? void 0 : _.filter((P) =>
|
|
3801
|
+
(_ = j.value || M) == null ? void 0 : _.filter((P) => A.includes(P))
|
|
3802
3802
|
));
|
|
3803
3803
|
}
|
|
3804
3804
|
return o;
|
|
3805
3805
|
}
|
|
3806
|
-
function
|
|
3807
|
-
const r =
|
|
3806
|
+
function G(O) {
|
|
3807
|
+
const r = B(n.value, O);
|
|
3808
3808
|
n.value = r;
|
|
3809
3809
|
}
|
|
3810
|
-
function
|
|
3811
|
-
let o =
|
|
3810
|
+
function B(O, r) {
|
|
3811
|
+
let o = Et(
|
|
3812
3812
|
O.filter((_) => _.subject !== he.Subject.Business.role)
|
|
3813
3813
|
);
|
|
3814
3814
|
if (r && r.length > 0) {
|
|
@@ -3821,15 +3821,15 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3821
3821
|
}
|
|
3822
3822
|
return o;
|
|
3823
3823
|
}
|
|
3824
|
-
|
|
3824
|
+
Vn(async () => {
|
|
3825
3825
|
await Promise.all([
|
|
3826
|
-
la.readWarehouses().then((O) =>
|
|
3827
|
-
|
|
3826
|
+
la.readWarehouses().then((O) => E.value = O),
|
|
3827
|
+
I()
|
|
3828
3828
|
]);
|
|
3829
3829
|
});
|
|
3830
|
-
const Y = z(() =>
|
|
3830
|
+
const Y = z(() => Zn(
|
|
3831
3831
|
n.value,
|
|
3832
|
-
|
|
3832
|
+
Bn
|
|
3833
3833
|
).filter((o) => {
|
|
3834
3834
|
const _ = o.source;
|
|
3835
3835
|
return (_ == null ? void 0 : _.type) !== "systemPermissionSet" ? !0 : o.actions.includes("manage");
|
|
@@ -3837,17 +3837,17 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3837
3837
|
if (o.inverted) return o;
|
|
3838
3838
|
const _ = o.actions;
|
|
3839
3839
|
if (!_.includes("manage")) return o;
|
|
3840
|
-
const
|
|
3841
|
-
if (!
|
|
3842
|
-
const M =
|
|
3843
|
-
return M.length <= 1 || M.filter((
|
|
3840
|
+
const A = w(o.subject);
|
|
3841
|
+
if (!A) return o;
|
|
3842
|
+
const M = A.actions;
|
|
3843
|
+
return M.length <= 1 || M.filter((p) => !_.includes(p)).length === 0 ? o : { ...o, actions: [...M] };
|
|
3844
3844
|
}));
|
|
3845
3845
|
function ne(O) {
|
|
3846
3846
|
n.value = ia(
|
|
3847
3847
|
Y.value,
|
|
3848
3848
|
O,
|
|
3849
3849
|
n.value,
|
|
3850
|
-
|
|
3850
|
+
w
|
|
3851
3851
|
);
|
|
3852
3852
|
}
|
|
3853
3853
|
const Q = z(() => new Set(
|
|
@@ -3861,8 +3861,8 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3861
3861
|
)
|
|
3862
3862
|
})).filter(({ rule: r }) => !r.inverted).forEach(({ rule: r, index: o }) => {
|
|
3863
3863
|
var P;
|
|
3864
|
-
const _ = r.actions,
|
|
3865
|
-
if (
|
|
3864
|
+
const _ = r.actions, A = L(r.subject, _);
|
|
3865
|
+
if (A.length === 0) return;
|
|
3866
3866
|
let M;
|
|
3867
3867
|
try {
|
|
3868
3868
|
M = r.conditions ? JSON.parse(r.conditions) : void 0;
|
|
@@ -3872,45 +3872,45 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3872
3872
|
O.set(r.subject, {
|
|
3873
3873
|
index: o >= 0 ? o : null,
|
|
3874
3874
|
subject: r.subject,
|
|
3875
|
-
label: ((P =
|
|
3875
|
+
label: ((P = w(r.subject)) == null ? void 0 : P.label) ?? r.subject,
|
|
3876
3876
|
actions: _,
|
|
3877
3877
|
// Each builder only ever sees its own slice of the stored condition.
|
|
3878
|
-
sections:
|
|
3879
|
-
builder:
|
|
3880
|
-
formValue:
|
|
3878
|
+
sections: A.map((p) => ({
|
|
3879
|
+
builder: p,
|
|
3880
|
+
formValue: p.fromCondition(tt(M, p))
|
|
3881
3881
|
}))
|
|
3882
3882
|
});
|
|
3883
3883
|
}), O;
|
|
3884
|
-
}), ce =
|
|
3884
|
+
}), ce = fa(n, N, (O) => {
|
|
3885
3885
|
n.value = O;
|
|
3886
|
-
}), re = Cs(n),
|
|
3886
|
+
}), re = Cs(n), fe = st(null);
|
|
3887
3887
|
function q(O, r) {
|
|
3888
3888
|
const o = _e.value.get(O);
|
|
3889
3889
|
if (o) return o;
|
|
3890
|
-
const _ = ce.getEffectiveActions(O),
|
|
3891
|
-
if (
|
|
3890
|
+
const _ = ce.getEffectiveActions(O), A = L(O, _);
|
|
3891
|
+
if (A.length !== 0)
|
|
3892
3892
|
return {
|
|
3893
3893
|
index: null,
|
|
3894
3894
|
subject: O,
|
|
3895
3895
|
label: r,
|
|
3896
3896
|
actions: _,
|
|
3897
|
-
sections:
|
|
3897
|
+
sections: A.map((M) => ({
|
|
3898
3898
|
builder: M,
|
|
3899
3899
|
formValue: M.fromCondition(void 0)
|
|
3900
3900
|
}))
|
|
3901
3901
|
};
|
|
3902
3902
|
}
|
|
3903
|
-
function
|
|
3903
|
+
function De(O, r) {
|
|
3904
3904
|
const o = re.getDraft({ subject: O.subject, builderKey: r.builderKey });
|
|
3905
3905
|
if (o) return o.formValue;
|
|
3906
|
-
const _ = O.sections.find((
|
|
3906
|
+
const _ = O.sections.find((A) => A.builder.builderKey === r.builderKey);
|
|
3907
3907
|
return _ == null ? void 0 : _.formValue;
|
|
3908
3908
|
}
|
|
3909
3909
|
function K(O, r) {
|
|
3910
3910
|
const o = re.getDraft({ subject: O.subject, builderKey: r.builderKey });
|
|
3911
3911
|
return o != null && o.inheritMode ? o.inheritMode : ce.inheritMode(O, r);
|
|
3912
3912
|
}
|
|
3913
|
-
function
|
|
3913
|
+
function ve(O, r, o) {
|
|
3914
3914
|
const _ = re.getDraft({
|
|
3915
3915
|
subject: O.subject,
|
|
3916
3916
|
builderKey: r.builderKey
|
|
@@ -3927,11 +3927,11 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3927
3927
|
const _ = re.getDraft({
|
|
3928
3928
|
subject: O.subject,
|
|
3929
3929
|
builderKey: r.builderKey
|
|
3930
|
-
}),
|
|
3930
|
+
}), A = O.sections.find((M) => M.builder.builderKey === r.builderKey);
|
|
3931
3931
|
re.setDraft(
|
|
3932
3932
|
{ subject: O.subject, builderKey: r.builderKey },
|
|
3933
3933
|
{
|
|
3934
|
-
formValue: (_ == null ? void 0 : _.formValue) ?? (
|
|
3934
|
+
formValue: (_ == null ? void 0 : _.formValue) ?? (A == null ? void 0 : A.formValue),
|
|
3935
3935
|
inheritMode: o
|
|
3936
3936
|
}
|
|
3937
3937
|
);
|
|
@@ -3939,26 +3939,26 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3939
3939
|
function Ke(O) {
|
|
3940
3940
|
return re.hasDraftsForSubject(O);
|
|
3941
3941
|
}
|
|
3942
|
-
function
|
|
3942
|
+
function xe(O, r) {
|
|
3943
3943
|
const o = O.sections.flatMap((_) => {
|
|
3944
|
-
const
|
|
3944
|
+
const A = re.getDraft({
|
|
3945
3945
|
subject: O.subject,
|
|
3946
3946
|
builderKey: _.builder.builderKey
|
|
3947
3947
|
});
|
|
3948
|
-
return
|
|
3948
|
+
return A ? [{ builder: _.builder, form: A.formValue, mode: A.inheritMode ?? "custom" }] : [];
|
|
3949
3949
|
});
|
|
3950
3950
|
ce.applyConditionDrafts(O, o, {
|
|
3951
3951
|
afterCommit: () => {
|
|
3952
3952
|
re.clearDraftsForSubject(O.subject), r();
|
|
3953
3953
|
},
|
|
3954
|
-
onOverridesConflict:
|
|
3954
|
+
onOverridesConflict: Be(O).onOverridesConflict
|
|
3955
3955
|
});
|
|
3956
3956
|
}
|
|
3957
3957
|
function Fe(O) {
|
|
3958
3958
|
return O.sections.some((r) => ce.shouldShowInheritToggle(O, r.builder) ? ce.inheritMode(O, r.builder) === "custom" : Object.keys(r.builder.toCondition(r.formValue)).length > 0);
|
|
3959
3959
|
}
|
|
3960
3960
|
let Te = !1;
|
|
3961
|
-
function
|
|
3961
|
+
function Be(O, r = {}) {
|
|
3962
3962
|
return {
|
|
3963
3963
|
...r,
|
|
3964
3964
|
onOverridesConflict: ({ override: o, keep: _ }) => {
|
|
@@ -3987,47 +3987,47 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
3987
3987
|
}
|
|
3988
3988
|
};
|
|
3989
3989
|
}
|
|
3990
|
-
return
|
|
3990
|
+
return wt(
|
|
3991
3991
|
n,
|
|
3992
3992
|
(O) => {
|
|
3993
3993
|
l("permissionChanged", O);
|
|
3994
3994
|
},
|
|
3995
3995
|
{ deep: !0 }
|
|
3996
3996
|
), (O, r) => {
|
|
3997
|
-
const o =
|
|
3997
|
+
const o = we("FmIcon"), _ = we("FmBottomSheet"), A = we("FmPopover");
|
|
3998
3998
|
return J(), ie("div", _a, [
|
|
3999
|
-
ae("div",
|
|
3999
|
+
ae("div", va, [
|
|
4000
4000
|
ue(Ho, {
|
|
4001
4001
|
"model-value": Y.value,
|
|
4002
4002
|
"excluded-subjects": c,
|
|
4003
4003
|
"additional-permissions": H(C),
|
|
4004
4004
|
"onUpdate:modelValue": ne
|
|
4005
4005
|
}, et({ _: 2 }, [
|
|
4006
|
-
|
|
4006
|
+
ye(D.value, (M) => ({
|
|
4007
4007
|
name: `checkbox-${M.id}-append`,
|
|
4008
4008
|
fn: de(() => [
|
|
4009
|
-
ue(
|
|
4009
|
+
ue(pt, { item: M }, null, 8, ["item"])
|
|
4010
4010
|
])
|
|
4011
4011
|
})),
|
|
4012
|
-
|
|
4012
|
+
ye(Q.value, (M) => ({
|
|
4013
4013
|
name: `checkbox-${M}-icon`,
|
|
4014
|
-
fn: de(({ option: P, isEffectiveSelected:
|
|
4015
|
-
|
|
4014
|
+
fn: de(({ option: P, isEffectiveSelected: p }) => [
|
|
4015
|
+
p && q(M, P.label) ? (J(), ie(Re, { key: 0 }, [
|
|
4016
4016
|
g.value ? (J(), Ne(_, {
|
|
4017
4017
|
key: 0,
|
|
4018
|
-
"model-value":
|
|
4018
|
+
"model-value": fe.value === M,
|
|
4019
4019
|
header: H(a)("team.memberForm.permissions.conditionTitle", {
|
|
4020
4020
|
context: q(M, P.label).label
|
|
4021
4021
|
}),
|
|
4022
4022
|
"dismiss-away": "",
|
|
4023
4023
|
"z-index": 100,
|
|
4024
4024
|
class: "h-5 flex items-center",
|
|
4025
|
-
"onUpdate:modelValue": (
|
|
4026
|
-
|
|
4025
|
+
"onUpdate:modelValue": (y) => {
|
|
4026
|
+
fe.value = y ? M : null, y || H(re).clearDraftsForSubject(M);
|
|
4027
4027
|
}
|
|
4028
4028
|
}, {
|
|
4029
4029
|
"bottom-sheet-button": de(() => [
|
|
4030
|
-
ae("div",
|
|
4030
|
+
ae("div", pa, [
|
|
4031
4031
|
ue(o, {
|
|
4032
4032
|
name: "settings",
|
|
4033
4033
|
size: "sm",
|
|
@@ -4041,29 +4041,29 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4041
4041
|
default: de(() => [
|
|
4042
4042
|
ue(Fn, {
|
|
4043
4043
|
entry: q(M, P.label),
|
|
4044
|
-
builders: q(M, P.label).sections.map((
|
|
4044
|
+
builders: q(M, P.label).sections.map((y) => y.builder),
|
|
4045
4045
|
subject: M,
|
|
4046
4046
|
"time-zone": F.value,
|
|
4047
4047
|
"cover-override": H(ce),
|
|
4048
|
-
"inherit-mode-for": (
|
|
4049
|
-
"form-value-for": (
|
|
4048
|
+
"inherit-mode-for": (y) => K(q(M, P.label), y),
|
|
4049
|
+
"form-value-for": (y) => De(q(M, P.label), y),
|
|
4050
4050
|
"has-changes": Ke(M),
|
|
4051
4051
|
disable: e.disable,
|
|
4052
4052
|
"full-width": !0,
|
|
4053
|
-
onUpdateInheritMode: ({ builder:
|
|
4054
|
-
onUpdateForm: ({ builder:
|
|
4055
|
-
onApply: (
|
|
4053
|
+
onUpdateInheritMode: ({ builder: y, mode: $ }) => Je(q(M, P.label), y, $),
|
|
4054
|
+
onUpdateForm: ({ builder: y, form: $ }) => ve(q(M, P.label), y, $),
|
|
4055
|
+
onApply: (y) => xe(q(M, P.label), () => fe.value = null)
|
|
4056
4056
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4057
4057
|
]),
|
|
4058
4058
|
_: 2
|
|
4059
|
-
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (J(), Ne(
|
|
4059
|
+
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (J(), Ne(A, {
|
|
4060
4060
|
key: 1,
|
|
4061
4061
|
disabled: e.disable,
|
|
4062
4062
|
"z-index": 100,
|
|
4063
|
-
"exclude-el-from-click-outside": [
|
|
4063
|
+
"exclude-el-from-click-outside": [Ia],
|
|
4064
4064
|
class: "h-5 flex items-center",
|
|
4065
|
-
onPopoverChanged: (
|
|
4066
|
-
|
|
4065
|
+
onPopoverChanged: (y) => {
|
|
4066
|
+
y || H(re).clearDraftsForSubject(M);
|
|
4067
4067
|
}
|
|
4068
4068
|
}, {
|
|
4069
4069
|
"popover-button": de(() => [
|
|
@@ -4078,7 +4078,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4078
4078
|
}, null, 8, ["class"])
|
|
4079
4079
|
])
|
|
4080
4080
|
]),
|
|
4081
|
-
default: de(({ hide:
|
|
4081
|
+
default: de(({ hide: y }) => [
|
|
4082
4082
|
ue(Fn, {
|
|
4083
4083
|
entry: q(M, P.label),
|
|
4084
4084
|
builders: q(M, P.label).sections.map(($) => $.builder),
|
|
@@ -4089,7 +4089,7 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4089
4089
|
context: q(M, P.label).label
|
|
4090
4090
|
}),
|
|
4091
4091
|
"inherit-mode-for": ($) => K(q(M, P.label), $),
|
|
4092
|
-
"form-value-for": ($) =>
|
|
4092
|
+
"form-value-for": ($) => De(q(M, P.label), $),
|
|
4093
4093
|
"has-changes": Ke(M),
|
|
4094
4094
|
disable: e.disable,
|
|
4095
4095
|
onUpdateInheritMode: ({ builder: $, mode: le }) => Je(
|
|
@@ -4097,8 +4097,8 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4097
4097
|
$,
|
|
4098
4098
|
le
|
|
4099
4099
|
),
|
|
4100
|
-
onUpdateForm: ({ builder: $, form: le }) =>
|
|
4101
|
-
onApply: ($) =>
|
|
4100
|
+
onUpdateForm: ({ builder: $, form: le }) => ve(q(M, P.label), $, le),
|
|
4101
|
+
onApply: ($) => xe(q(M, P.label), y)
|
|
4102
4102
|
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "title", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4103
4103
|
]),
|
|
4104
4104
|
_: 2
|
|
@@ -4114,46 +4114,46 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4114
4114
|
]), 1032, ["model-value", "additional-permissions"])
|
|
4115
4115
|
]),
|
|
4116
4116
|
ae("div", ba, [
|
|
4117
|
-
ue(
|
|
4117
|
+
ue(Dn, {
|
|
4118
4118
|
"model-value": b.value,
|
|
4119
|
-
options:
|
|
4119
|
+
options: v.value,
|
|
4120
4120
|
context: H(a)("team.labels.warehouse"),
|
|
4121
|
-
"onUpdate:modelValue":
|
|
4121
|
+
"onUpdate:modelValue": R
|
|
4122
4122
|
}, et({ _: 2 }, [
|
|
4123
|
-
|
|
4123
|
+
ye(f.value, (M) => ({
|
|
4124
4124
|
name: `checkbox-${M.id}-append`,
|
|
4125
4125
|
fn: de(() => [
|
|
4126
|
-
ue(
|
|
4126
|
+
ue(pt, { item: M }, null, 8, ["item"])
|
|
4127
4127
|
])
|
|
4128
4128
|
}))
|
|
4129
4129
|
]), 1032, ["model-value", "options", "context"])
|
|
4130
4130
|
]),
|
|
4131
4131
|
ae("div", ga, [
|
|
4132
|
-
ue(
|
|
4132
|
+
ue(Dn, {
|
|
4133
4133
|
"model-value": U.value,
|
|
4134
|
-
options:
|
|
4134
|
+
options: m.value,
|
|
4135
4135
|
context: H(a)("team.labels.restaurant"),
|
|
4136
|
-
"onUpdate:modelValue":
|
|
4136
|
+
"onUpdate:modelValue": x
|
|
4137
4137
|
}, et({ _: 2 }, [
|
|
4138
|
-
|
|
4138
|
+
ye(h.value, (M) => ({
|
|
4139
4139
|
name: `checkbox-${M.id}-append`,
|
|
4140
4140
|
fn: de(() => [
|
|
4141
|
-
ue(
|
|
4141
|
+
ue(pt, { item: M }, null, 8, ["item"])
|
|
4142
4142
|
])
|
|
4143
4143
|
}))
|
|
4144
4144
|
]), 1032, ["model-value", "options", "context"])
|
|
4145
4145
|
]),
|
|
4146
|
-
ae("div",
|
|
4146
|
+
ae("div", Ea, [
|
|
4147
4147
|
ue(sa, {
|
|
4148
|
-
roles: H(
|
|
4148
|
+
roles: H(V),
|
|
4149
4149
|
"model-value": j.value,
|
|
4150
4150
|
"restaurant-ids": U.value,
|
|
4151
|
-
"onUpdate:modelValue":
|
|
4151
|
+
"onUpdate:modelValue": G
|
|
4152
4152
|
}, et({ _: 2 }, [
|
|
4153
|
-
|
|
4153
|
+
ye(S.value, (M) => ({
|
|
4154
4154
|
name: `checkbox-${M.id}-append`,
|
|
4155
4155
|
fn: de(() => [
|
|
4156
|
-
ue(
|
|
4156
|
+
ue(pt, { item: M }, null, 8, ["item"])
|
|
4157
4157
|
])
|
|
4158
4158
|
}))
|
|
4159
4159
|
]), 1032, ["roles", "model-value", "restaurant-ids"])
|
|
@@ -4163,5 +4163,5 @@ const _a = { class: "flex flex-col gap-32" }, pa = { class: "p-16 fm-corner-radi
|
|
|
4163
4163
|
}
|
|
4164
4164
|
});
|
|
4165
4165
|
export {
|
|
4166
|
-
|
|
4166
|
+
Da as _
|
|
4167
4167
|
};
|