@feedmepos/mf-hrm-portal 2.3.2-dev → 2.3.2-dev.11
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-xOyDG5ug.js → ApprovalCodeList-DoNoFW6w.js} +14 -15
- package/dist/AuditLogList-D5M0cl8g.js +2026 -0
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Cixg_icC.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C1dLOPFb.js} +10 -10
- package/dist/{EmployeeList-BG2KPvOB.js → EmployeeList-BX9gy9WG.js} +196 -208
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-iCgTyICI.js +90 -0
- package/dist/{GrantUserList-CUkuf3VV.js → GrantUserList-DNvmmlDI.js} +15 -16
- package/dist/{Main-Cg9SOzcz.js → Main-2NivoQNg.js} +5 -5
- package/dist/{Main-BSHf8gTE.js → Main-BHmY7VHC.js} +12 -11
- package/dist/{Main-BcixH7R5.js → Main-SzU5H5uC.js} +2394 -2383
- package/dist/MyPosProfile-2W5mT5d5.js +360 -0
- package/dist/{PermissionSetList-I3u2_qHR.js → PermissionSetList-BCAm8rHm.js} +82 -80
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-e2vu_Mcn.js +4208 -0
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DYbfmF2P.js +1797 -0
- package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +132 -0
- package/dist/RoleForm.vue_vue_type_script_setup_true_lang-o4mXv2hT.js +547 -0
- package/dist/RoleList-BXkyCeH0.js +265 -0
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DOxRdHY1.js +544 -0
- package/dist/ScheduleGeneralPage-4hV53-q6.js +811 -0
- package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-D5jOHLA1.js +2557 -0
- package/dist/SchedulePage-CqNa_p32.js +19446 -0
- package/dist/SchedulePositionPage-7xYBe1xd.js +282 -0
- package/dist/SelectFilter-Dy2Nv1_D.js +263 -0
- package/dist/TeamMemberList-okhiXdLg.js +2087 -0
- package/dist/TimesheetList-BKj9OnJW.js +437 -0
- package/dist/{app-CdrnR_Pw.js → app-C37qvNnc.js} +14439 -5834
- package/dist/app.js +1 -1
- package/dist/{approval-code-Bwvwehz9.js → approval-code-B7rpc4Oe.js} +4 -4
- package/dist/{dayjs.min-BO8bcI17.js → dayjs.min-D35yhU4A.js} +12 -12
- package/dist/employee-Bn6HTMxg.js +172 -0
- package/dist/{grant-user-whFOaPZI.js → grant-user-CostZ0Md.js} +2 -2
- package/dist/{iteration-ZpERYj3o.js → index-DPiNc7mn.js} +698 -726
- package/dist/iteration-CcXrOMQe.js +30 -0
- package/dist/{lodash-7SZBZ8VQ.js → lodash-C8MGI_QW.js} +1 -1
- package/dist/member-grant-CktOoicv.js +54 -0
- package/dist/object-Dwyg2LgX.js +16 -0
- package/dist/restaurant-BgvuJL8G.js +52 -0
- package/dist/role-D8G5QOG1.js +98 -0
- package/dist/rule-EYBPBkv_.js +843 -0
- package/dist/src/api/audit-log/index.d.ts +6 -0
- package/dist/src/api/employee/index.d.ts +3 -4
- package/dist/src/api/my-pos-profile/index.d.ts +1 -3
- package/dist/src/api/restaurant/index.d.ts +2 -0
- package/dist/src/api/schedule/index.d.ts +68 -0
- package/dist/src/api/sso-provider/index.d.ts +5 -0
- package/dist/src/api/staff-invite/index.d.ts +1 -2
- package/dist/src/api/timesheet/index.d.ts +1 -1
- package/dist/src/components/AppForm.vue.d.ts +2 -2
- package/dist/src/components/CheckboxInput.vue.d.ts +2 -2
- package/dist/src/components/layout/PortalShell.vue.d.ts +12 -0
- package/dist/src/components/layout/SchedulePromoBanner.vue.d.ts +2 -0
- package/dist/src/components/layout/withScheduleShell.d.ts +10 -0
- package/dist/src/composables/useDiscardConfirm.d.ts +3 -1
- package/dist/src/composables/useMessage.d.ts +8 -2
- package/dist/src/composables/useSsoProviders.d.ts +19 -0
- package/dist/src/composables/useStaffInviteProviders.d.ts +1 -12
- package/dist/src/helpers/permission-set.d.ts +1 -102
- package/dist/src/helpers/pos-assignment-rows.d.ts +2 -0
- package/dist/src/helpers/rule.d.ts +2 -2
- package/dist/src/helpers/staff-invite.d.ts +3 -0
- package/dist/src/router/shared.d.ts +3 -0
- package/dist/src/stores/approval-code.d.ts +1 -1
- package/dist/src/stores/employee.d.ts +15 -21
- package/dist/src/stores/grant-user.d.ts +1 -1
- package/dist/src/stores/permission-assignment.d.ts +2 -2
- package/dist/src/stores/permission-set.d.ts +2 -2
- package/dist/src/stores/restaurant.d.ts +63 -3
- package/dist/src/stores/role.d.ts +2 -2
- package/dist/src/stores/team.d.ts +1 -1
- package/dist/src/stores/timesheet.d.ts +68 -53
- package/dist/src/types/employee.d.ts +1 -0
- package/dist/src/types/my-pos-profile.d.ts +2 -3
- package/dist/src/types/schedule.d.ts +23 -0
- package/dist/src/types/sso-provider.d.ts +10 -0
- package/dist/src/types/timesheet.d.ts +3 -0
- package/dist/src/views/audit-log/constants.d.ts +9 -30
- package/dist/src/views/audit-log/locales/index.d.ts +528 -0
- package/dist/src/views/audit-log/pos-row.d.ts +27 -0
- package/dist/src/views/audit-log/useTraceIdDeepLink.d.ts +19 -0
- package/dist/src/views/hr/locales/index.d.ts +24 -4
- package/dist/src/views/hr/role/RoleForm.vue.d.ts +29 -2
- package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +1 -1
- package/dist/src/views/my-pos-profile/locales/index.d.ts +40 -4
- package/dist/src/views/scheduling/ScheduleGeneralPage.vue.d.ts +3 -0
- package/dist/src/views/scheduling/SchedulePage.vue.d.ts +3 -0
- package/dist/src/views/scheduling/SchedulePositionPage.vue.d.ts +3 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeIdentitySection.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModal.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModeStep.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePosAccessSection.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePositionsSection.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeSchedulingSection.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddPickPopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddPositionModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +41 -0
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleDetailsModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleDoneArt.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleModal.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +25 -0
- package/dist/src/views/scheduling/components/ScheduleBoardEditOverlays.vue.d.ts +17 -0
- package/dist/src/views/scheduling/components/ScheduleBoardEmployeeRows.vue.d.ts +31 -0
- package/dist/src/views/scheduling/components/ScheduleBoardGridHeader.vue.d.ts +29 -0
- package/dist/src/views/scheduling/components/ScheduleBoardInteractionOverlays.vue.d.ts +34 -0
- package/dist/src/views/scheduling/components/ScheduleBoardOnboardingOverlays.vue.d.ts +26 -0
- package/dist/src/views/scheduling/components/ScheduleBoardRails.vue.d.ts +17 -0
- package/dist/src/views/scheduling/components/ScheduleBoardToolbar.vue.d.ts +38 -0
- package/dist/src/views/scheduling/components/ScheduleBoardUtilityOverlays.vue.d.ts +22 -0
- package/dist/src/views/scheduling/components/ScheduleButton.vue.d.ts +23 -0
- package/dist/src/views/scheduling/components/ScheduleChangeEmployeeModal.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleCloneOutletModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleCoach.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleCompletionDialog.vue.d.ts +15 -0
- package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +33 -0
- package/dist/src/views/scheduling/components/ScheduleContextMenu.vue.d.ts +17 -0
- package/dist/src/views/scheduling/components/ScheduleCostRail.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleCostRailEmptyArt.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleDateRangePopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleDayNotePopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +17 -0
- package/dist/src/views/scheduling/components/ScheduleDemandRow.vue.d.ts +23 -0
- package/dist/src/views/scheduling/components/ScheduleDemandSheet.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleDotsIcon.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleEmployeeDetailPanel.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleEmployeeIdentity.vue.d.ts +17 -0
- package/dist/src/views/scheduling/components/ScheduleExportPreview.vue.d.ts +7 -0
- package/dist/src/views/scheduling/components/ScheduleFilterBar.vue.d.ts +18 -0
- package/dist/src/views/scheduling/components/ScheduleGapPopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleGridHeader.vue.d.ts +18 -0
- package/dist/src/views/scheduling/components/ScheduleGridSkeleton.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleLeaveEditModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleLoadState.vue.d.ts +9 -0
- package/dist/src/views/scheduling/components/ScheduleModal.vue.d.ts +26 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingAssignPositionModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingClosedDayConfirm.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingDemandDays.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingDemandFooter.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingDemandHeader.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingDoneArt.vue.d.ts +2 -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/ScheduleOnboardingSettings.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingWelcome.vue.d.ts +11 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizard.vue.d.ts +9 -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/SchedulePublishModal.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/SchedulePublishShareArt.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleReviewBar.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +70 -0
- package/dist/src/views/scheduling/components/ScheduleSelectExistingEmployeeModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleSetupBanner.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleShiftCell.vue.d.ts +35 -0
- package/dist/src/views/scheduling/components/ScheduleShiftHeadcountEditor.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleShiftImpact.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleShiftMoreOptions.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +16 -0
- package/dist/src/views/scheduling/components/ScheduleShiftRepeatDaysRow.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleShiftSegmentsEditor.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleShiftWhoPicker.vue.d.ts +25 -0
- package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +16 -0
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +50 -0
- package/dist/src/views/scheduling/components/ScheduleStatsRow.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleSwapShiftsModal.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleTimePickerPopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +20 -0
- package/dist/src/views/scheduling/composables/auto-schedule-mapping.d.ts +35 -0
- package/dist/src/views/scheduling/composables/onboarding-constants.d.ts +7 -0
- package/dist/src/views/scheduling/composables/onboarding-hours.d.ts +7 -0
- package/dist/src/views/scheduling/composables/onboarding-types.d.ts +51 -0
- package/dist/src/views/scheduling/composables/remyPrompt.d.ts +15 -0
- package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +82 -0
- package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +63 -0
- package/dist/src/views/scheduling/composables/schedule-breaks.d.ts +9 -0
- package/dist/src/views/scheduling/composables/schedule-calendar.d.ts +17 -0
- package/dist/src/views/scheduling/composables/schedule-cost.d.ts +24 -0
- package/dist/src/views/scheduling/composables/schedule-currency.d.ts +22 -0
- package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +21 -0
- package/dist/src/views/scheduling/composables/schedule-demand-domain.d.ts +23 -0
- package/dist/src/views/scheduling/composables/schedule-employee-profile.d.ts +7 -0
- package/dist/src/views/scheduling/composables/schedule-error.d.ts +1 -0
- package/dist/src/views/scheduling/composables/schedule-export-matrix.d.ts +14 -0
- package/dist/src/views/scheduling/composables/schedule-leave-split.d.ts +9 -0
- package/dist/src/views/scheduling/composables/schedule-popover-position.d.ts +16 -0
- package/dist/src/views/scheduling/composables/schedule-quick-pick.d.ts +23 -0
- package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +29 -0
- package/dist/src/views/scheduling/composables/schedule-time.d.ts +8 -0
- package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +9 -0
- package/dist/src/views/scheduling/composables/useCollapsedList.d.ts +9 -0
- package/dist/src/views/scheduling/composables/useRemyAppStore.d.ts +16 -0
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +137 -0
- package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +75 -0
- package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +50 -0
- package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +11 -0
- package/dist/src/views/scheduling/composables/useScheduleAssignmentMutations.d.ts +13 -0
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +301 -0
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +615 -0
- package/dist/src/views/scheduling/composables/useScheduleCellState.d.ts +27 -0
- package/dist/src/views/scheduling/composables/useScheduleClashDetection.d.ts +28 -0
- package/dist/src/views/scheduling/composables/useScheduleCloneOutletModal.d.ts +21 -0
- package/dist/src/views/scheduling/composables/useScheduleCoach.d.ts +80 -0
- package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +12 -0
- package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +60 -0
- package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +44 -0
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +111 -0
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +59 -0
- package/dist/src/views/scheduling/composables/useScheduleDemandRow.d.ts +47 -0
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +166 -0
- package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +55 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +24 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAvailability.d.ts +13 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +49 -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 +50 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeMenu.d.ts +38 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeePersistence.d.ts +32 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeProfile.d.ts +16 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeValidation.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +52 -0
- package/dist/src/views/scheduling/composables/useScheduleFilterBar.d.ts +14 -0
- package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +79 -0
- package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +60 -0
- package/dist/src/views/scheduling/composables/useScheduleLegend.d.ts +15 -0
- 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 +231 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingFlow.d.ts +9 -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/useScheduleOnboardingPersistence.d.ts +13 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +1543 -0
- package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +25 -0
- package/dist/src/views/scheduling/composables/useSchedulePageActions.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useSchedulePageBootstrap.d.ts +9 -0
- package/dist/src/views/scheduling/composables/useSchedulePageCellActions.d.ts +21 -0
- package/dist/src/views/scheduling/composables/useSchedulePageCellDrop.d.ts +20 -0
- package/dist/src/views/scheduling/composables/useSchedulePageClearActions.d.ts +33 -0
- package/dist/src/views/scheduling/composables/useSchedulePageEmployeeActions.d.ts +22 -0
- package/dist/src/views/scheduling/composables/useSchedulePageOverlays.d.ts +21 -0
- package/dist/src/views/scheduling/composables/useSchedulePdfExport.d.ts +19 -0
- package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +55 -0
- package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +35 -0
- package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +127 -0
- package/dist/src/views/scheduling/composables/useSchedulePublishPersistence.d.ts +11 -0
- package/dist/src/views/scheduling/composables/useScheduleRangeCalendar.d.ts +27 -0
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +313 -0
- package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +40 -0
- package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +17 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +245 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +63 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPersistence.d.ts +17 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +255 -0
- package/dist/src/views/scheduling/composables/useScheduleStatsRow.d.ts +27 -0
- package/dist/src/views/scheduling/composables/useScheduleTimePicker.d.ts +49 -0
- package/dist/src/views/scheduling/composables/useScheduleTour.d.ts +95 -0
- package/dist/src/views/scheduling/composables/useScheduleViewportFit.d.ts +9 -0
- package/dist/src/views/scheduling/country-rules/index.d.ts +33 -0
- package/dist/src/views/scheduling/data.d.ts +123 -0
- package/dist/src/views/scheduling/locales/index.d.ts +6988 -0
- package/dist/src/views/scheduling/schedule-constants.d.ts +7 -0
- package/dist/src/views/scheduling/schedule-state.d.ts +767 -0
- package/dist/src/views/scheduling/schedule-store.d.ts +140 -0
- package/dist/src/views/scheduling/types.d.ts +381 -0
- package/dist/src/views/team/components/MemberGrantFields.vue.d.ts +2 -6
- package/dist/src/views/team/components/PortalConditionForm.vue.d.ts +2 -2
- package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +0 -2
- package/dist/src/views/team/condition-builders/ConditionBuilderForm.vue.d.ts +2 -2
- package/dist/src/views/team/member/AddMemberForm.vue.d.ts +0 -2
- package/dist/src/views/team/member/TeamMemberMasterUser.vue.d.ts +0 -2
- package/dist/style.css +1 -1
- package/dist/timesheet-D6jBeR-V.js +76 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-CL6EEDuw.js → useAppStore-BmBJPo1_.js} +1 -1
- package/dist/useDiscardConfirm-CzZSPyvh.js +28 -0
- package/dist/{useLoading-BBjBUzGJ.js → useLoading-BtyGXkm_.js} +1 -1
- package/dist/useMessage-_ywT_N9X.js +17 -0
- package/dist/{useReportPermissions-Bg0fma6m.js → useReportPermissions-C8z7EA7v.js} +13 -13
- package/dist/useSsoProviders-CZrTNgfp.js +41 -0
- package/package.json +7 -5
- package/dist/AuditLogList-Dd6HyFhk.js +0 -1777
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js +0 -45
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +0 -49
- package/dist/MyPosProfile-CN8Bj3aV.js +0 -301
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BBoRXQPn.js +0 -4243
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-B5QDOF0L.js +0 -1840
- package/dist/RoleList-ALmAwN0U.js +0 -739
- package/dist/SelectFilter-ATOm0hdn.js +0 -269
- package/dist/TeamMemberList-DZfEnOs1.js +0 -2097
- package/dist/TimesheetList-CECFKt7H.js +0 -402
- package/dist/TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-RIyoAmeb.js +0 -58
- package/dist/employee-Dg-J9goA.js +0 -205
- package/dist/member-grant-C46lvrh2.js +0 -55
- package/dist/restaurant-CKhT6kgj.js +0 -45
- package/dist/role-C6hFKOfU.js +0 -93
- package/dist/rule-BlMymDXm.js +0 -788
- package/dist/useDiscardConfirm-DPhEV6v0.js +0 -157
|
@@ -1,4243 +0,0 @@
|
|
|
1
|
-
import { getCurrentInstance as Bt, inject as mr, ref as st, shallowRef as dr, computed as z, watch as wt, onMounted as xn, onUnmounted as fr, defineComponent as Ae, h as Wn, createVNode as oe, Text as _r, Fragment as we, resolveComponent as De, createBlock as Te, openBlock as J, withCtx as ce, createElementVNode as ie, createElementBlock as re, toDisplayString as Se, unref as X, renderList as Ce, toRef as en, normalizeStyle as rt, renderSlot as Le, createCommentVNode as Ne, normalizeClass as Ee, createTextVNode as br, useSlots as vr, createSlots as tt, mergeModels as tn, useModel as pr } from "vue";
|
|
2
|
-
import { useI18n as Ke, useCoreStore as hr } from "@feedmepos/mf-common";
|
|
3
|
-
import { useDialog as gr, useBreakpoints as yr } from "@feedmepos/ui-library";
|
|
4
|
-
import "@vue/devtools-api";
|
|
5
|
-
import { p as Gn, N as Zn, d as Ir, P as Er, w as Lt, x as Cr, y as Nr } from "./rule-BlMymDXm.js";
|
|
6
|
-
import { _ as Xt, a as Tr, b as nn, u as Or } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Cixg_icC.js";
|
|
7
|
-
import { u as Sr, l as Lr, g as kr, b as Ar, v as Yn, S as Dt, A as nt, m as ye, k as rn, O as Rr } from "./app-CdrnR_Pw.js";
|
|
8
|
-
import { c as yt } from "./iteration-ZpERYj3o.js";
|
|
9
|
-
import { r as Mr, s as Bn } from "./string-DZQ1uNjn.js";
|
|
10
|
-
import { W as wr } from "./member-grant-C46lvrh2.js";
|
|
11
|
-
import { u as Dr } from "./role-C6hFKOfU.js";
|
|
12
|
-
function Xn(e, t) {
|
|
13
|
-
return Array.isArray(e) ? e.includes(t) : e === t;
|
|
14
|
-
}
|
|
15
|
-
function Fr(e) {
|
|
16
|
-
return Array.isArray(e) ? e[0] : e;
|
|
17
|
-
}
|
|
18
|
-
function Pr(e, t) {
|
|
19
|
-
const n = t.find((a) => Xn(a.subject, e));
|
|
20
|
-
if (!(n != null && n.category) || n.isCategoryCover) return;
|
|
21
|
-
const r = t.find((a) => a.category === n.category && a.isCategoryCover);
|
|
22
|
-
if (r)
|
|
23
|
-
return Fr(r.subject);
|
|
24
|
-
}
|
|
25
|
-
function sn(e, t) {
|
|
26
|
-
const n = t.find((r) => Xn(r.subject, e));
|
|
27
|
-
return !!(n != null && n.isCategoryCover);
|
|
28
|
-
}
|
|
29
|
-
/*!
|
|
30
|
-
* shared v10.0.5
|
|
31
|
-
* (c) 2024 kazuya kawaguchi
|
|
32
|
-
* Released under the MIT License.
|
|
33
|
-
*/
|
|
34
|
-
const an = typeof window < "u", ze = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), jr = (e, t, n) => Vr({ l: e, k: t, s: n }), Vr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), he = (e) => typeof e == "number" && isFinite(e), Ur = (e) => Ht(e) === "[object Date]", Et = (e) => Ht(e) === "[object RegExp]", Nt = (e) => q(e) && Object.keys(e).length === 0, ge = Object.assign, xr = Object.create, se = (e = null) => xr(e);
|
|
35
|
-
let on;
|
|
36
|
-
const $e = () => on || (on = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : se());
|
|
37
|
-
function ln(e) {
|
|
38
|
-
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
39
|
-
}
|
|
40
|
-
const Wr = Object.prototype.hasOwnProperty;
|
|
41
|
-
function ke(e, t) {
|
|
42
|
-
return Wr.call(e, t);
|
|
43
|
-
}
|
|
44
|
-
const be = Array.isArray, ue = (e) => typeof e == "function", G = (e) => typeof e == "string", _e = (e) => typeof e == "boolean", ee = (e) => e !== null && typeof e == "object", Gr = (e) => ee(e) && ue(e.then) && ue(e.catch), Hn = Object.prototype.toString, Ht = (e) => Hn.call(e), q = (e) => Ht(e) === "[object Object]", Zr = (e) => e == null ? "" : be(e) || q(e) && e.toString === Hn ? JSON.stringify(e, null, 2) : String(e);
|
|
45
|
-
function Jt(e, t = "") {
|
|
46
|
-
return e.reduce((n, r, a) => a === 0 ? n + r : n + t + r, "");
|
|
47
|
-
}
|
|
48
|
-
function Yr(e, t) {
|
|
49
|
-
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
50
|
-
}
|
|
51
|
-
const ft = (e) => !ee(e) || be(e);
|
|
52
|
-
function It(e, t) {
|
|
53
|
-
if (ft(e) || ft(t))
|
|
54
|
-
throw new Error("Invalid value");
|
|
55
|
-
const n = [{ src: e, des: t }];
|
|
56
|
-
for (; n.length; ) {
|
|
57
|
-
const { src: r, des: a } = n.pop();
|
|
58
|
-
Object.keys(r).forEach((o) => {
|
|
59
|
-
o !== "__proto__" && (ee(r[o]) && !ee(a[o]) && (a[o] = Array.isArray(r[o]) ? [] : se()), ft(a[o]) || ft(r[o]) ? a[o] = r[o] : n.push({ src: r[o], des: a[o] }));
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
function Br(e, t, n) {
|
|
64
|
-
return { line: e, column: t, offset: n };
|
|
65
|
-
}
|
|
66
|
-
function Ft(e, t, n) {
|
|
67
|
-
return { start: e, end: t };
|
|
68
|
-
}
|
|
69
|
-
const ne = {
|
|
70
|
-
// tokenizer error codes
|
|
71
|
-
EXPECTED_TOKEN: 1,
|
|
72
|
-
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
|
73
|
-
UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
|
|
74
|
-
UNKNOWN_ESCAPE_SEQUENCE: 4,
|
|
75
|
-
INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
|
|
76
|
-
UNBALANCED_CLOSING_BRACE: 6,
|
|
77
|
-
UNTERMINATED_CLOSING_BRACE: 7,
|
|
78
|
-
EMPTY_PLACEHOLDER: 8,
|
|
79
|
-
NOT_ALLOW_NEST_PLACEHOLDER: 9,
|
|
80
|
-
INVALID_LINKED_FORMAT: 10,
|
|
81
|
-
// parser error codes
|
|
82
|
-
MUST_HAVE_MESSAGES_IN_PLURAL: 11,
|
|
83
|
-
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
84
|
-
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
85
|
-
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
86
|
-
}, Xr = 17;
|
|
87
|
-
function Tt(e, t, n = {}) {
|
|
88
|
-
const { domain: r, messages: a, args: o } = n, f = e, d = new SyntaxError(String(f));
|
|
89
|
-
return d.code = e, t && (d.location = t), d.domain = r, d;
|
|
90
|
-
}
|
|
91
|
-
function Hr(e) {
|
|
92
|
-
throw e;
|
|
93
|
-
}
|
|
94
|
-
const Ve = " ", Jr = "\r", Ie = `
|
|
95
|
-
`, $r = "\u2028", Kr = "\u2029";
|
|
96
|
-
function zr(e) {
|
|
97
|
-
const t = e;
|
|
98
|
-
let n = 0, r = 1, a = 1, o = 0;
|
|
99
|
-
const f = (v) => t[v] === Jr && t[v + 1] === Ie, d = (v) => t[v] === Ie, i = (v) => t[v] === Kr, g = (v) => t[v] === $r, C = (v) => f(v) || d(v) || i(v) || g(v), O = () => n, N = () => r, w = () => a, R = () => o, k = (v) => f(v) || i(v) || g(v) ? Ie : t[v], M = () => k(n), b = () => k(n + o);
|
|
100
|
-
function p() {
|
|
101
|
-
return o = 0, C(n) && (r++, a = 0), f(n) && n++, n++, a++, t[n];
|
|
102
|
-
}
|
|
103
|
-
function S() {
|
|
104
|
-
return f(n + o) && o++, o++, t[n + o];
|
|
105
|
-
}
|
|
106
|
-
function m() {
|
|
107
|
-
n = 0, r = 1, a = 1, o = 0;
|
|
108
|
-
}
|
|
109
|
-
function y(v = 0) {
|
|
110
|
-
o = v;
|
|
111
|
-
}
|
|
112
|
-
function E() {
|
|
113
|
-
const v = n + o;
|
|
114
|
-
for (; v !== n; )
|
|
115
|
-
p();
|
|
116
|
-
o = 0;
|
|
117
|
-
}
|
|
118
|
-
return {
|
|
119
|
-
index: O,
|
|
120
|
-
line: N,
|
|
121
|
-
column: w,
|
|
122
|
-
peekOffset: R,
|
|
123
|
-
charAt: k,
|
|
124
|
-
currentChar: M,
|
|
125
|
-
currentPeek: b,
|
|
126
|
-
next: p,
|
|
127
|
-
peek: S,
|
|
128
|
-
reset: m,
|
|
129
|
-
resetPeek: y,
|
|
130
|
-
skipToPeek: E
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
const Ye = void 0, Qr = ".", cn = "'", qr = "tokenizer";
|
|
134
|
-
function es(e, t = {}) {
|
|
135
|
-
const n = t.location !== !1, r = zr(e), a = () => r.index(), o = () => Br(r.line(), r.column(), r.index()), f = o(), d = a(), i = {
|
|
136
|
-
currentType: 13,
|
|
137
|
-
offset: d,
|
|
138
|
-
startLoc: f,
|
|
139
|
-
endLoc: f,
|
|
140
|
-
lastType: 13,
|
|
141
|
-
lastOffset: d,
|
|
142
|
-
lastStartLoc: f,
|
|
143
|
-
lastEndLoc: f,
|
|
144
|
-
braceNest: 0,
|
|
145
|
-
inLinked: !1,
|
|
146
|
-
text: ""
|
|
147
|
-
}, g = () => i, { onError: C } = t;
|
|
148
|
-
function O(l, s, c, ...h) {
|
|
149
|
-
const D = g();
|
|
150
|
-
if (s.column += c, s.offset += c, C) {
|
|
151
|
-
const U = n ? Ft(D.startLoc, s) : null, u = Tt(l, U, {
|
|
152
|
-
domain: qr,
|
|
153
|
-
args: h
|
|
154
|
-
});
|
|
155
|
-
C(u);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
function N(l, s, c) {
|
|
159
|
-
l.endLoc = o(), l.currentType = s;
|
|
160
|
-
const h = { type: s };
|
|
161
|
-
return n && (h.loc = Ft(l.startLoc, l.endLoc)), c != null && (h.value = c), h;
|
|
162
|
-
}
|
|
163
|
-
const w = (l) => N(
|
|
164
|
-
l,
|
|
165
|
-
13
|
|
166
|
-
/* TokenTypes.EOF */
|
|
167
|
-
);
|
|
168
|
-
function R(l, s) {
|
|
169
|
-
return l.currentChar() === s ? (l.next(), s) : (O(ne.EXPECTED_TOKEN, o(), 0, s), "");
|
|
170
|
-
}
|
|
171
|
-
function k(l) {
|
|
172
|
-
let s = "";
|
|
173
|
-
for (; l.currentPeek() === Ve || l.currentPeek() === Ie; )
|
|
174
|
-
s += l.currentPeek(), l.peek();
|
|
175
|
-
return s;
|
|
176
|
-
}
|
|
177
|
-
function M(l) {
|
|
178
|
-
const s = k(l);
|
|
179
|
-
return l.skipToPeek(), s;
|
|
180
|
-
}
|
|
181
|
-
function b(l) {
|
|
182
|
-
if (l === Ye)
|
|
183
|
-
return !1;
|
|
184
|
-
const s = l.charCodeAt(0);
|
|
185
|
-
return s >= 97 && s <= 122 || // a-z
|
|
186
|
-
s >= 65 && s <= 90 || // A-Z
|
|
187
|
-
s === 95;
|
|
188
|
-
}
|
|
189
|
-
function p(l) {
|
|
190
|
-
if (l === Ye)
|
|
191
|
-
return !1;
|
|
192
|
-
const s = l.charCodeAt(0);
|
|
193
|
-
return s >= 48 && s <= 57;
|
|
194
|
-
}
|
|
195
|
-
function S(l, s) {
|
|
196
|
-
const { currentType: c } = s;
|
|
197
|
-
if (c !== 2)
|
|
198
|
-
return !1;
|
|
199
|
-
k(l);
|
|
200
|
-
const h = b(l.currentPeek());
|
|
201
|
-
return l.resetPeek(), h;
|
|
202
|
-
}
|
|
203
|
-
function m(l, s) {
|
|
204
|
-
const { currentType: c } = s;
|
|
205
|
-
if (c !== 2)
|
|
206
|
-
return !1;
|
|
207
|
-
k(l);
|
|
208
|
-
const h = l.currentPeek() === "-" ? l.peek() : l.currentPeek(), D = p(h);
|
|
209
|
-
return l.resetPeek(), D;
|
|
210
|
-
}
|
|
211
|
-
function y(l, s) {
|
|
212
|
-
const { currentType: c } = s;
|
|
213
|
-
if (c !== 2)
|
|
214
|
-
return !1;
|
|
215
|
-
k(l);
|
|
216
|
-
const h = l.currentPeek() === cn;
|
|
217
|
-
return l.resetPeek(), h;
|
|
218
|
-
}
|
|
219
|
-
function E(l, s) {
|
|
220
|
-
const { currentType: c } = s;
|
|
221
|
-
if (c !== 7)
|
|
222
|
-
return !1;
|
|
223
|
-
k(l);
|
|
224
|
-
const h = l.currentPeek() === ".";
|
|
225
|
-
return l.resetPeek(), h;
|
|
226
|
-
}
|
|
227
|
-
function v(l, s) {
|
|
228
|
-
const { currentType: c } = s;
|
|
229
|
-
if (c !== 8)
|
|
230
|
-
return !1;
|
|
231
|
-
k(l);
|
|
232
|
-
const h = b(l.currentPeek());
|
|
233
|
-
return l.resetPeek(), h;
|
|
234
|
-
}
|
|
235
|
-
function A(l, s) {
|
|
236
|
-
const { currentType: c } = s;
|
|
237
|
-
if (!(c === 7 || c === 11))
|
|
238
|
-
return !1;
|
|
239
|
-
k(l);
|
|
240
|
-
const h = l.currentPeek() === ":";
|
|
241
|
-
return l.resetPeek(), h;
|
|
242
|
-
}
|
|
243
|
-
function L(l, s) {
|
|
244
|
-
const { currentType: c } = s;
|
|
245
|
-
if (c !== 9)
|
|
246
|
-
return !1;
|
|
247
|
-
const h = () => {
|
|
248
|
-
const U = l.currentPeek();
|
|
249
|
-
return U === "{" ? b(l.peek()) : U === "@" || U === "|" || U === ":" || U === "." || U === Ve || !U ? !1 : U === Ie ? (l.peek(), h()) : x(l, !1);
|
|
250
|
-
}, D = h();
|
|
251
|
-
return l.resetPeek(), D;
|
|
252
|
-
}
|
|
253
|
-
function H(l) {
|
|
254
|
-
k(l);
|
|
255
|
-
const s = l.currentPeek() === "|";
|
|
256
|
-
return l.resetPeek(), s;
|
|
257
|
-
}
|
|
258
|
-
function x(l, s = !0) {
|
|
259
|
-
const c = (D = !1, U = "") => {
|
|
260
|
-
const u = l.currentPeek();
|
|
261
|
-
return u === "{" || u === "@" || !u ? D : u === "|" ? !(U === Ve || U === Ie) : u === Ve ? (l.peek(), c(!0, Ve)) : u === Ie ? (l.peek(), c(!0, Ie)) : !0;
|
|
262
|
-
}, h = c();
|
|
263
|
-
return s && l.resetPeek(), h;
|
|
264
|
-
}
|
|
265
|
-
function _(l, s) {
|
|
266
|
-
const c = l.currentChar();
|
|
267
|
-
return c === Ye ? Ye : s(c) ? (l.next(), c) : null;
|
|
268
|
-
}
|
|
269
|
-
function T(l) {
|
|
270
|
-
const s = l.charCodeAt(0);
|
|
271
|
-
return s >= 97 && s <= 122 || // a-z
|
|
272
|
-
s >= 65 && s <= 90 || // A-Z
|
|
273
|
-
s >= 48 && s <= 57 || // 0-9
|
|
274
|
-
s === 95 || // _
|
|
275
|
-
s === 36;
|
|
276
|
-
}
|
|
277
|
-
function j(l) {
|
|
278
|
-
return _(l, T);
|
|
279
|
-
}
|
|
280
|
-
function P(l) {
|
|
281
|
-
const s = l.charCodeAt(0);
|
|
282
|
-
return s >= 97 && s <= 122 || // a-z
|
|
283
|
-
s >= 65 && s <= 90 || // A-Z
|
|
284
|
-
s >= 48 && s <= 57 || // 0-9
|
|
285
|
-
s === 95 || // _
|
|
286
|
-
s === 36 || // $
|
|
287
|
-
s === 45;
|
|
288
|
-
}
|
|
289
|
-
function F(l) {
|
|
290
|
-
return _(l, P);
|
|
291
|
-
}
|
|
292
|
-
function W(l) {
|
|
293
|
-
const s = l.charCodeAt(0);
|
|
294
|
-
return s >= 48 && s <= 57;
|
|
295
|
-
}
|
|
296
|
-
function V(l) {
|
|
297
|
-
return _(l, W);
|
|
298
|
-
}
|
|
299
|
-
function Z(l) {
|
|
300
|
-
const s = l.charCodeAt(0);
|
|
301
|
-
return s >= 48 && s <= 57 || // 0-9
|
|
302
|
-
s >= 65 && s <= 70 || // A-F
|
|
303
|
-
s >= 97 && s <= 102;
|
|
304
|
-
}
|
|
305
|
-
function B(l) {
|
|
306
|
-
return _(l, Z);
|
|
307
|
-
}
|
|
308
|
-
function te(l) {
|
|
309
|
-
let s = "", c = "";
|
|
310
|
-
for (; s = V(l); )
|
|
311
|
-
c += s;
|
|
312
|
-
return c;
|
|
313
|
-
}
|
|
314
|
-
function Q(l) {
|
|
315
|
-
let s = "";
|
|
316
|
-
for (; ; ) {
|
|
317
|
-
const c = l.currentChar();
|
|
318
|
-
if (c === "{" || c === "}" || c === "@" || c === "|" || !c)
|
|
319
|
-
break;
|
|
320
|
-
if (c === Ve || c === Ie)
|
|
321
|
-
if (x(l))
|
|
322
|
-
s += c, l.next();
|
|
323
|
-
else {
|
|
324
|
-
if (H(l))
|
|
325
|
-
break;
|
|
326
|
-
s += c, l.next();
|
|
327
|
-
}
|
|
328
|
-
else
|
|
329
|
-
s += c, l.next();
|
|
330
|
-
}
|
|
331
|
-
return s;
|
|
332
|
-
}
|
|
333
|
-
function de(l) {
|
|
334
|
-
M(l);
|
|
335
|
-
let s = "", c = "";
|
|
336
|
-
for (; s = F(l); )
|
|
337
|
-
c += s;
|
|
338
|
-
return l.currentChar() === Ye && O(ne.UNTERMINATED_CLOSING_BRACE, o(), 0), c;
|
|
339
|
-
}
|
|
340
|
-
function ve(l) {
|
|
341
|
-
M(l);
|
|
342
|
-
let s = "";
|
|
343
|
-
return l.currentChar() === "-" ? (l.next(), s += `-${te(l)}`) : s += te(l), l.currentChar() === Ye && O(ne.UNTERMINATED_CLOSING_BRACE, o(), 0), s;
|
|
344
|
-
}
|
|
345
|
-
function pe(l) {
|
|
346
|
-
return l !== cn && l !== Ie;
|
|
347
|
-
}
|
|
348
|
-
function ae(l) {
|
|
349
|
-
M(l), R(l, "'");
|
|
350
|
-
let s = "", c = "";
|
|
351
|
-
for (; s = _(l, pe); )
|
|
352
|
-
s === "\\" ? c += le(l) : c += s;
|
|
353
|
-
const h = l.currentChar();
|
|
354
|
-
return h === Ie || h === Ye ? (O(ne.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), h === Ie && (l.next(), R(l, "'")), c) : (R(l, "'"), c);
|
|
355
|
-
}
|
|
356
|
-
function le(l) {
|
|
357
|
-
const s = l.currentChar();
|
|
358
|
-
switch (s) {
|
|
359
|
-
case "\\":
|
|
360
|
-
case "'":
|
|
361
|
-
return l.next(), `\\${s}`;
|
|
362
|
-
case "u":
|
|
363
|
-
return Re(l, s, 4);
|
|
364
|
-
case "U":
|
|
365
|
-
return Re(l, s, 6);
|
|
366
|
-
default:
|
|
367
|
-
return O(ne.UNKNOWN_ESCAPE_SEQUENCE, o(), 0, s), "";
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
function Re(l, s, c) {
|
|
371
|
-
R(l, s);
|
|
372
|
-
let h = "";
|
|
373
|
-
for (let D = 0; D < c; D++) {
|
|
374
|
-
const U = B(l);
|
|
375
|
-
if (!U) {
|
|
376
|
-
O(ne.INVALID_UNICODE_ESCAPE_SEQUENCE, o(), 0, `\\${s}${h}${l.currentChar()}`);
|
|
377
|
-
break;
|
|
378
|
-
}
|
|
379
|
-
h += U;
|
|
380
|
-
}
|
|
381
|
-
return `\\${s}${h}`;
|
|
382
|
-
}
|
|
383
|
-
function Y(l) {
|
|
384
|
-
return l !== "{" && l !== "}" && l !== Ve && l !== Ie;
|
|
385
|
-
}
|
|
386
|
-
function fe(l) {
|
|
387
|
-
M(l);
|
|
388
|
-
let s = "", c = "";
|
|
389
|
-
for (; s = _(l, Y); )
|
|
390
|
-
c += s;
|
|
391
|
-
return c;
|
|
392
|
-
}
|
|
393
|
-
function Je(l) {
|
|
394
|
-
let s = "", c = "";
|
|
395
|
-
for (; s = j(l); )
|
|
396
|
-
c += s;
|
|
397
|
-
return c;
|
|
398
|
-
}
|
|
399
|
-
function Qe(l) {
|
|
400
|
-
const s = (c) => {
|
|
401
|
-
const h = l.currentChar();
|
|
402
|
-
return h === "{" || h === "@" || h === "|" || h === "(" || h === ")" || !h || h === Ve ? c : (c += h, l.next(), s(c));
|
|
403
|
-
};
|
|
404
|
-
return s("");
|
|
405
|
-
}
|
|
406
|
-
function We(l) {
|
|
407
|
-
M(l);
|
|
408
|
-
const s = R(
|
|
409
|
-
l,
|
|
410
|
-
"|"
|
|
411
|
-
/* TokenChars.Pipe */
|
|
412
|
-
);
|
|
413
|
-
return M(l), s;
|
|
414
|
-
}
|
|
415
|
-
function Fe(l, s) {
|
|
416
|
-
let c = null;
|
|
417
|
-
switch (l.currentChar()) {
|
|
418
|
-
case "{":
|
|
419
|
-
return s.braceNest >= 1 && O(ne.NOT_ALLOW_NEST_PLACEHOLDER, o(), 0), l.next(), c = N(
|
|
420
|
-
s,
|
|
421
|
-
2,
|
|
422
|
-
"{"
|
|
423
|
-
/* TokenChars.BraceLeft */
|
|
424
|
-
), M(l), s.braceNest++, c;
|
|
425
|
-
case "}":
|
|
426
|
-
return s.braceNest > 0 && s.currentType === 2 && O(ne.EMPTY_PLACEHOLDER, o(), 0), l.next(), c = N(
|
|
427
|
-
s,
|
|
428
|
-
3,
|
|
429
|
-
"}"
|
|
430
|
-
/* TokenChars.BraceRight */
|
|
431
|
-
), s.braceNest--, s.braceNest > 0 && M(l), s.inLinked && s.braceNest === 0 && (s.inLinked = !1), c;
|
|
432
|
-
case "@":
|
|
433
|
-
return s.braceNest > 0 && O(ne.UNTERMINATED_CLOSING_BRACE, o(), 0), c = Pe(l, s) || w(s), s.braceNest = 0, c;
|
|
434
|
-
default: {
|
|
435
|
-
let D = !0, U = !0, u = !0;
|
|
436
|
-
if (H(l))
|
|
437
|
-
return s.braceNest > 0 && O(ne.UNTERMINATED_CLOSING_BRACE, o(), 0), c = N(s, 1, We(l)), s.braceNest = 0, s.inLinked = !1, c;
|
|
438
|
-
if (s.braceNest > 0 && (s.currentType === 4 || s.currentType === 5 || s.currentType === 6))
|
|
439
|
-
return O(ne.UNTERMINATED_CLOSING_BRACE, o(), 0), s.braceNest = 0, Ge(l, s);
|
|
440
|
-
if (D = S(l, s))
|
|
441
|
-
return c = N(s, 4, de(l)), M(l), c;
|
|
442
|
-
if (U = m(l, s))
|
|
443
|
-
return c = N(s, 5, ve(l)), M(l), c;
|
|
444
|
-
if (u = y(l, s))
|
|
445
|
-
return c = N(s, 6, ae(l)), M(l), c;
|
|
446
|
-
if (!D && !U && !u)
|
|
447
|
-
return c = N(s, 12, fe(l)), O(ne.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, c.value), M(l), c;
|
|
448
|
-
break;
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
return c;
|
|
452
|
-
}
|
|
453
|
-
function Pe(l, s) {
|
|
454
|
-
const { currentType: c } = s;
|
|
455
|
-
let h = null;
|
|
456
|
-
const D = l.currentChar();
|
|
457
|
-
switch ((c === 7 || c === 8 || c === 11 || c === 9) && (D === Ie || D === Ve) && O(ne.INVALID_LINKED_FORMAT, o(), 0), D) {
|
|
458
|
-
case "@":
|
|
459
|
-
return l.next(), h = N(
|
|
460
|
-
s,
|
|
461
|
-
7,
|
|
462
|
-
"@"
|
|
463
|
-
/* TokenChars.LinkedAlias */
|
|
464
|
-
), s.inLinked = !0, h;
|
|
465
|
-
case ".":
|
|
466
|
-
return M(l), l.next(), N(
|
|
467
|
-
s,
|
|
468
|
-
8,
|
|
469
|
-
"."
|
|
470
|
-
/* TokenChars.LinkedDot */
|
|
471
|
-
);
|
|
472
|
-
case ":":
|
|
473
|
-
return M(l), l.next(), N(
|
|
474
|
-
s,
|
|
475
|
-
9,
|
|
476
|
-
":"
|
|
477
|
-
/* TokenChars.LinkedDelimiter */
|
|
478
|
-
);
|
|
479
|
-
default:
|
|
480
|
-
return H(l) ? (h = N(s, 1, We(l)), s.braceNest = 0, s.inLinked = !1, h) : E(l, s) || A(l, s) ? (M(l), Pe(l, s)) : v(l, s) ? (M(l), N(s, 11, Je(l))) : L(l, s) ? (M(l), D === "{" ? Fe(l, s) || h : N(s, 10, Qe(l))) : (c === 7 && O(ne.INVALID_LINKED_FORMAT, o(), 0), s.braceNest = 0, s.inLinked = !1, Ge(l, s));
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
function Ge(l, s) {
|
|
484
|
-
let c = {
|
|
485
|
-
type: 13
|
|
486
|
-
/* TokenTypes.EOF */
|
|
487
|
-
};
|
|
488
|
-
if (s.braceNest > 0)
|
|
489
|
-
return Fe(l, s) || w(s);
|
|
490
|
-
if (s.inLinked)
|
|
491
|
-
return Pe(l, s) || w(s);
|
|
492
|
-
switch (l.currentChar()) {
|
|
493
|
-
case "{":
|
|
494
|
-
return Fe(l, s) || w(s);
|
|
495
|
-
case "}":
|
|
496
|
-
return O(ne.UNBALANCED_CLOSING_BRACE, o(), 0), l.next(), N(
|
|
497
|
-
s,
|
|
498
|
-
3,
|
|
499
|
-
"}"
|
|
500
|
-
/* TokenChars.BraceRight */
|
|
501
|
-
);
|
|
502
|
-
case "@":
|
|
503
|
-
return Pe(l, s) || w(s);
|
|
504
|
-
default: {
|
|
505
|
-
if (H(l))
|
|
506
|
-
return c = N(s, 1, We(l)), s.braceNest = 0, s.inLinked = !1, c;
|
|
507
|
-
if (x(l))
|
|
508
|
-
return N(s, 0, Q(l));
|
|
509
|
-
break;
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
return c;
|
|
513
|
-
}
|
|
514
|
-
function je() {
|
|
515
|
-
const { currentType: l, offset: s, startLoc: c, endLoc: h } = i;
|
|
516
|
-
return i.lastType = l, i.lastOffset = s, i.lastStartLoc = c, i.lastEndLoc = h, i.offset = a(), i.startLoc = o(), r.currentChar() === Ye ? N(
|
|
517
|
-
i,
|
|
518
|
-
13
|
|
519
|
-
/* TokenTypes.EOF */
|
|
520
|
-
) : Ge(r, i);
|
|
521
|
-
}
|
|
522
|
-
return {
|
|
523
|
-
nextToken: je,
|
|
524
|
-
currentOffset: a,
|
|
525
|
-
currentPosition: o,
|
|
526
|
-
context: g
|
|
527
|
-
};
|
|
528
|
-
}
|
|
529
|
-
const ts = "parser", ns = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
530
|
-
function rs(e, t, n) {
|
|
531
|
-
switch (e) {
|
|
532
|
-
case "\\\\":
|
|
533
|
-
return "\\";
|
|
534
|
-
case "\\'":
|
|
535
|
-
return "'";
|
|
536
|
-
default: {
|
|
537
|
-
const r = parseInt(t || n, 16);
|
|
538
|
-
return r <= 55295 || r >= 57344 ? String.fromCodePoint(r) : "�";
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
function ss(e = {}) {
|
|
543
|
-
const t = e.location !== !1, { onError: n } = e;
|
|
544
|
-
function r(b, p, S, m, ...y) {
|
|
545
|
-
const E = b.currentPosition();
|
|
546
|
-
if (E.offset += m, E.column += m, n) {
|
|
547
|
-
const v = t ? Ft(S, E) : null, A = Tt(p, v, {
|
|
548
|
-
domain: ts,
|
|
549
|
-
args: y
|
|
550
|
-
});
|
|
551
|
-
n(A);
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
function a(b, p, S) {
|
|
555
|
-
const m = { type: b };
|
|
556
|
-
return t && (m.start = p, m.end = p, m.loc = { start: S, end: S }), m;
|
|
557
|
-
}
|
|
558
|
-
function o(b, p, S, m) {
|
|
559
|
-
t && (b.end = p, b.loc && (b.loc.end = S));
|
|
560
|
-
}
|
|
561
|
-
function f(b, p) {
|
|
562
|
-
const S = b.context(), m = a(3, S.offset, S.startLoc);
|
|
563
|
-
return m.value = p, o(m, b.currentOffset(), b.currentPosition()), m;
|
|
564
|
-
}
|
|
565
|
-
function d(b, p) {
|
|
566
|
-
const S = b.context(), { lastOffset: m, lastStartLoc: y } = S, E = a(5, m, y);
|
|
567
|
-
return E.index = parseInt(p, 10), b.nextToken(), o(E, b.currentOffset(), b.currentPosition()), E;
|
|
568
|
-
}
|
|
569
|
-
function i(b, p) {
|
|
570
|
-
const S = b.context(), { lastOffset: m, lastStartLoc: y } = S, E = a(4, m, y);
|
|
571
|
-
return E.key = p, b.nextToken(), o(E, b.currentOffset(), b.currentPosition()), E;
|
|
572
|
-
}
|
|
573
|
-
function g(b, p) {
|
|
574
|
-
const S = b.context(), { lastOffset: m, lastStartLoc: y } = S, E = a(9, m, y);
|
|
575
|
-
return E.value = p.replace(ns, rs), b.nextToken(), o(E, b.currentOffset(), b.currentPosition()), E;
|
|
576
|
-
}
|
|
577
|
-
function C(b) {
|
|
578
|
-
const p = b.nextToken(), S = b.context(), { lastOffset: m, lastStartLoc: y } = S, E = a(8, m, y);
|
|
579
|
-
return p.type !== 11 ? (r(b, ne.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), E.value = "", o(E, m, y), {
|
|
580
|
-
nextConsumeToken: p,
|
|
581
|
-
node: E
|
|
582
|
-
}) : (p.value == null && r(b, ne.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, Me(p)), E.value = p.value || "", o(E, b.currentOffset(), b.currentPosition()), {
|
|
583
|
-
node: E
|
|
584
|
-
});
|
|
585
|
-
}
|
|
586
|
-
function O(b, p) {
|
|
587
|
-
const S = b.context(), m = a(7, S.offset, S.startLoc);
|
|
588
|
-
return m.value = p, o(m, b.currentOffset(), b.currentPosition()), m;
|
|
589
|
-
}
|
|
590
|
-
function N(b) {
|
|
591
|
-
const p = b.context(), S = a(6, p.offset, p.startLoc);
|
|
592
|
-
let m = b.nextToken();
|
|
593
|
-
if (m.type === 8) {
|
|
594
|
-
const y = C(b);
|
|
595
|
-
S.modifier = y.node, m = y.nextConsumeToken || b.nextToken();
|
|
596
|
-
}
|
|
597
|
-
switch (m.type !== 9 && r(b, ne.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, Me(m)), m = b.nextToken(), m.type === 2 && (m = b.nextToken()), m.type) {
|
|
598
|
-
case 10:
|
|
599
|
-
m.value == null && r(b, ne.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, Me(m)), S.key = O(b, m.value || "");
|
|
600
|
-
break;
|
|
601
|
-
case 4:
|
|
602
|
-
m.value == null && r(b, ne.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, Me(m)), S.key = i(b, m.value || "");
|
|
603
|
-
break;
|
|
604
|
-
case 5:
|
|
605
|
-
m.value == null && r(b, ne.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, Me(m)), S.key = d(b, m.value || "");
|
|
606
|
-
break;
|
|
607
|
-
case 6:
|
|
608
|
-
m.value == null && r(b, ne.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, Me(m)), S.key = g(b, m.value || "");
|
|
609
|
-
break;
|
|
610
|
-
default: {
|
|
611
|
-
r(b, ne.UNEXPECTED_EMPTY_LINKED_KEY, p.lastStartLoc, 0);
|
|
612
|
-
const y = b.context(), E = a(7, y.offset, y.startLoc);
|
|
613
|
-
return E.value = "", o(E, y.offset, y.startLoc), S.key = E, o(S, y.offset, y.startLoc), {
|
|
614
|
-
nextConsumeToken: m,
|
|
615
|
-
node: S
|
|
616
|
-
};
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
return o(S, b.currentOffset(), b.currentPosition()), {
|
|
620
|
-
node: S
|
|
621
|
-
};
|
|
622
|
-
}
|
|
623
|
-
function w(b) {
|
|
624
|
-
const p = b.context(), S = p.currentType === 1 ? b.currentOffset() : p.offset, m = p.currentType === 1 ? p.endLoc : p.startLoc, y = a(2, S, m);
|
|
625
|
-
y.items = [];
|
|
626
|
-
let E = null;
|
|
627
|
-
do {
|
|
628
|
-
const L = E || b.nextToken();
|
|
629
|
-
switch (E = null, L.type) {
|
|
630
|
-
case 0:
|
|
631
|
-
L.value == null && r(b, ne.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, Me(L)), y.items.push(f(b, L.value || ""));
|
|
632
|
-
break;
|
|
633
|
-
case 5:
|
|
634
|
-
L.value == null && r(b, ne.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, Me(L)), y.items.push(d(b, L.value || ""));
|
|
635
|
-
break;
|
|
636
|
-
case 4:
|
|
637
|
-
L.value == null && r(b, ne.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, Me(L)), y.items.push(i(b, L.value || ""));
|
|
638
|
-
break;
|
|
639
|
-
case 6:
|
|
640
|
-
L.value == null && r(b, ne.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, Me(L)), y.items.push(g(b, L.value || ""));
|
|
641
|
-
break;
|
|
642
|
-
case 7: {
|
|
643
|
-
const H = N(b);
|
|
644
|
-
y.items.push(H.node), E = H.nextConsumeToken || null;
|
|
645
|
-
break;
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
} while (p.currentType !== 13 && p.currentType !== 1);
|
|
649
|
-
const v = p.currentType === 1 ? p.lastOffset : b.currentOffset(), A = p.currentType === 1 ? p.lastEndLoc : b.currentPosition();
|
|
650
|
-
return o(y, v, A), y;
|
|
651
|
-
}
|
|
652
|
-
function R(b, p, S, m) {
|
|
653
|
-
const y = b.context();
|
|
654
|
-
let E = m.items.length === 0;
|
|
655
|
-
const v = a(1, p, S);
|
|
656
|
-
v.cases = [], v.cases.push(m);
|
|
657
|
-
do {
|
|
658
|
-
const A = w(b);
|
|
659
|
-
E || (E = A.items.length === 0), v.cases.push(A);
|
|
660
|
-
} while (y.currentType !== 13);
|
|
661
|
-
return E && r(b, ne.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), o(v, b.currentOffset(), b.currentPosition()), v;
|
|
662
|
-
}
|
|
663
|
-
function k(b) {
|
|
664
|
-
const p = b.context(), { offset: S, startLoc: m } = p, y = w(b);
|
|
665
|
-
return p.currentType === 13 ? y : R(b, S, m, y);
|
|
666
|
-
}
|
|
667
|
-
function M(b) {
|
|
668
|
-
const p = es(b, ge({}, e)), S = p.context(), m = a(0, S.offset, S.startLoc);
|
|
669
|
-
return t && m.loc && (m.loc.source = b), m.body = k(p), e.onCacheKey && (m.cacheKey = e.onCacheKey(b)), S.currentType !== 13 && r(p, ne.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, b[S.offset] || ""), o(m, p.currentOffset(), p.currentPosition()), m;
|
|
670
|
-
}
|
|
671
|
-
return { parse: M };
|
|
672
|
-
}
|
|
673
|
-
function Me(e) {
|
|
674
|
-
if (e.type === 13)
|
|
675
|
-
return "EOF";
|
|
676
|
-
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
677
|
-
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
678
|
-
}
|
|
679
|
-
function as(e, t = {}) {
|
|
680
|
-
const n = {
|
|
681
|
-
ast: e,
|
|
682
|
-
helpers: /* @__PURE__ */ new Set()
|
|
683
|
-
};
|
|
684
|
-
return { context: () => n, helper: (o) => (n.helpers.add(o), o) };
|
|
685
|
-
}
|
|
686
|
-
function un(e, t) {
|
|
687
|
-
for (let n = 0; n < e.length; n++)
|
|
688
|
-
$t(e[n], t);
|
|
689
|
-
}
|
|
690
|
-
function $t(e, t) {
|
|
691
|
-
switch (e.type) {
|
|
692
|
-
case 1:
|
|
693
|
-
un(e.cases, t), t.helper(
|
|
694
|
-
"plural"
|
|
695
|
-
/* HelperNameMap.PLURAL */
|
|
696
|
-
);
|
|
697
|
-
break;
|
|
698
|
-
case 2:
|
|
699
|
-
un(e.items, t);
|
|
700
|
-
break;
|
|
701
|
-
case 6: {
|
|
702
|
-
$t(e.key, t), t.helper(
|
|
703
|
-
"linked"
|
|
704
|
-
/* HelperNameMap.LINKED */
|
|
705
|
-
), t.helper(
|
|
706
|
-
"type"
|
|
707
|
-
/* HelperNameMap.TYPE */
|
|
708
|
-
);
|
|
709
|
-
break;
|
|
710
|
-
}
|
|
711
|
-
case 5:
|
|
712
|
-
t.helper(
|
|
713
|
-
"interpolate"
|
|
714
|
-
/* HelperNameMap.INTERPOLATE */
|
|
715
|
-
), t.helper(
|
|
716
|
-
"list"
|
|
717
|
-
/* HelperNameMap.LIST */
|
|
718
|
-
);
|
|
719
|
-
break;
|
|
720
|
-
case 4:
|
|
721
|
-
t.helper(
|
|
722
|
-
"interpolate"
|
|
723
|
-
/* HelperNameMap.INTERPOLATE */
|
|
724
|
-
), t.helper(
|
|
725
|
-
"named"
|
|
726
|
-
/* HelperNameMap.NAMED */
|
|
727
|
-
);
|
|
728
|
-
break;
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
function os(e, t = {}) {
|
|
732
|
-
const n = as(e);
|
|
733
|
-
n.helper(
|
|
734
|
-
"normalize"
|
|
735
|
-
/* HelperNameMap.NORMALIZE */
|
|
736
|
-
), e.body && $t(e.body, n);
|
|
737
|
-
const r = n.context();
|
|
738
|
-
e.helpers = Array.from(r.helpers);
|
|
739
|
-
}
|
|
740
|
-
function ls(e) {
|
|
741
|
-
const t = e.body;
|
|
742
|
-
return t.type === 2 ? mn(t) : t.cases.forEach((n) => mn(n)), e;
|
|
743
|
-
}
|
|
744
|
-
function mn(e) {
|
|
745
|
-
if (e.items.length === 1) {
|
|
746
|
-
const t = e.items[0];
|
|
747
|
-
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
748
|
-
} else {
|
|
749
|
-
const t = [];
|
|
750
|
-
for (let n = 0; n < e.items.length; n++) {
|
|
751
|
-
const r = e.items[n];
|
|
752
|
-
if (!(r.type === 3 || r.type === 9) || r.value == null)
|
|
753
|
-
break;
|
|
754
|
-
t.push(r.value);
|
|
755
|
-
}
|
|
756
|
-
if (t.length === e.items.length) {
|
|
757
|
-
e.static = Jt(t);
|
|
758
|
-
for (let n = 0; n < e.items.length; n++) {
|
|
759
|
-
const r = e.items[n];
|
|
760
|
-
(r.type === 3 || r.type === 9) && delete r.value;
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
function et(e) {
|
|
766
|
-
switch (e.t = e.type, e.type) {
|
|
767
|
-
case 0: {
|
|
768
|
-
const t = e;
|
|
769
|
-
et(t.body), t.b = t.body, delete t.body;
|
|
770
|
-
break;
|
|
771
|
-
}
|
|
772
|
-
case 1: {
|
|
773
|
-
const t = e, n = t.cases;
|
|
774
|
-
for (let r = 0; r < n.length; r++)
|
|
775
|
-
et(n[r]);
|
|
776
|
-
t.c = n, delete t.cases;
|
|
777
|
-
break;
|
|
778
|
-
}
|
|
779
|
-
case 2: {
|
|
780
|
-
const t = e, n = t.items;
|
|
781
|
-
for (let r = 0; r < n.length; r++)
|
|
782
|
-
et(n[r]);
|
|
783
|
-
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
784
|
-
break;
|
|
785
|
-
}
|
|
786
|
-
case 3:
|
|
787
|
-
case 9:
|
|
788
|
-
case 8:
|
|
789
|
-
case 7: {
|
|
790
|
-
const t = e;
|
|
791
|
-
t.value && (t.v = t.value, delete t.value);
|
|
792
|
-
break;
|
|
793
|
-
}
|
|
794
|
-
case 6: {
|
|
795
|
-
const t = e;
|
|
796
|
-
et(t.key), t.k = t.key, delete t.key, t.modifier && (et(t.modifier), t.m = t.modifier, delete t.modifier);
|
|
797
|
-
break;
|
|
798
|
-
}
|
|
799
|
-
case 5: {
|
|
800
|
-
const t = e;
|
|
801
|
-
t.i = t.index, delete t.index;
|
|
802
|
-
break;
|
|
803
|
-
}
|
|
804
|
-
case 4: {
|
|
805
|
-
const t = e;
|
|
806
|
-
t.k = t.key, delete t.key;
|
|
807
|
-
break;
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
delete e.type;
|
|
811
|
-
}
|
|
812
|
-
function is(e, t) {
|
|
813
|
-
const { filename: n, breakLineCode: r, needIndent: a } = t, o = t.location !== !1, f = {
|
|
814
|
-
filename: n,
|
|
815
|
-
code: "",
|
|
816
|
-
column: 1,
|
|
817
|
-
line: 1,
|
|
818
|
-
offset: 0,
|
|
819
|
-
map: void 0,
|
|
820
|
-
breakLineCode: r,
|
|
821
|
-
needIndent: a,
|
|
822
|
-
indentLevel: 0
|
|
823
|
-
};
|
|
824
|
-
o && e.loc && (f.source = e.loc.source);
|
|
825
|
-
const d = () => f;
|
|
826
|
-
function i(k, M) {
|
|
827
|
-
f.code += k;
|
|
828
|
-
}
|
|
829
|
-
function g(k, M = !0) {
|
|
830
|
-
const b = M ? r : "";
|
|
831
|
-
i(a ? b + " ".repeat(k) : b);
|
|
832
|
-
}
|
|
833
|
-
function C(k = !0) {
|
|
834
|
-
const M = ++f.indentLevel;
|
|
835
|
-
k && g(M);
|
|
836
|
-
}
|
|
837
|
-
function O(k = !0) {
|
|
838
|
-
const M = --f.indentLevel;
|
|
839
|
-
k && g(M);
|
|
840
|
-
}
|
|
841
|
-
function N() {
|
|
842
|
-
g(f.indentLevel);
|
|
843
|
-
}
|
|
844
|
-
return {
|
|
845
|
-
context: d,
|
|
846
|
-
push: i,
|
|
847
|
-
indent: C,
|
|
848
|
-
deindent: O,
|
|
849
|
-
newline: N,
|
|
850
|
-
helper: (k) => `_${k}`,
|
|
851
|
-
needIndent: () => f.needIndent
|
|
852
|
-
};
|
|
853
|
-
}
|
|
854
|
-
function cs(e, t) {
|
|
855
|
-
const { helper: n } = e;
|
|
856
|
-
e.push(`${n(
|
|
857
|
-
"linked"
|
|
858
|
-
/* HelperNameMap.LINKED */
|
|
859
|
-
)}(`), at(e, t.key), t.modifier ? (e.push(", "), at(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
860
|
-
}
|
|
861
|
-
function us(e, t) {
|
|
862
|
-
const { helper: n, needIndent: r } = e;
|
|
863
|
-
e.push(`${n(
|
|
864
|
-
"normalize"
|
|
865
|
-
/* HelperNameMap.NORMALIZE */
|
|
866
|
-
)}([`), e.indent(r());
|
|
867
|
-
const a = t.items.length;
|
|
868
|
-
for (let o = 0; o < a && (at(e, t.items[o]), o !== a - 1); o++)
|
|
869
|
-
e.push(", ");
|
|
870
|
-
e.deindent(r()), e.push("])");
|
|
871
|
-
}
|
|
872
|
-
function ms(e, t) {
|
|
873
|
-
const { helper: n, needIndent: r } = e;
|
|
874
|
-
if (t.cases.length > 1) {
|
|
875
|
-
e.push(`${n(
|
|
876
|
-
"plural"
|
|
877
|
-
/* HelperNameMap.PLURAL */
|
|
878
|
-
)}([`), e.indent(r());
|
|
879
|
-
const a = t.cases.length;
|
|
880
|
-
for (let o = 0; o < a && (at(e, t.cases[o]), o !== a - 1); o++)
|
|
881
|
-
e.push(", ");
|
|
882
|
-
e.deindent(r()), e.push("])");
|
|
883
|
-
}
|
|
884
|
-
}
|
|
885
|
-
function ds(e, t) {
|
|
886
|
-
t.body ? at(e, t.body) : e.push("null");
|
|
887
|
-
}
|
|
888
|
-
function at(e, t) {
|
|
889
|
-
const { helper: n } = e;
|
|
890
|
-
switch (t.type) {
|
|
891
|
-
case 0:
|
|
892
|
-
ds(e, t);
|
|
893
|
-
break;
|
|
894
|
-
case 1:
|
|
895
|
-
ms(e, t);
|
|
896
|
-
break;
|
|
897
|
-
case 2:
|
|
898
|
-
us(e, t);
|
|
899
|
-
break;
|
|
900
|
-
case 6:
|
|
901
|
-
cs(e, t);
|
|
902
|
-
break;
|
|
903
|
-
case 8:
|
|
904
|
-
e.push(JSON.stringify(t.value), t);
|
|
905
|
-
break;
|
|
906
|
-
case 7:
|
|
907
|
-
e.push(JSON.stringify(t.value), t);
|
|
908
|
-
break;
|
|
909
|
-
case 5:
|
|
910
|
-
e.push(`${n(
|
|
911
|
-
"interpolate"
|
|
912
|
-
/* HelperNameMap.INTERPOLATE */
|
|
913
|
-
)}(${n(
|
|
914
|
-
"list"
|
|
915
|
-
/* HelperNameMap.LIST */
|
|
916
|
-
)}(${t.index}))`, t);
|
|
917
|
-
break;
|
|
918
|
-
case 4:
|
|
919
|
-
e.push(`${n(
|
|
920
|
-
"interpolate"
|
|
921
|
-
/* HelperNameMap.INTERPOLATE */
|
|
922
|
-
)}(${n(
|
|
923
|
-
"named"
|
|
924
|
-
/* HelperNameMap.NAMED */
|
|
925
|
-
)}(${JSON.stringify(t.key)}))`, t);
|
|
926
|
-
break;
|
|
927
|
-
case 9:
|
|
928
|
-
e.push(JSON.stringify(t.value), t);
|
|
929
|
-
break;
|
|
930
|
-
case 3:
|
|
931
|
-
e.push(JSON.stringify(t.value), t);
|
|
932
|
-
break;
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
const fs = (e, t = {}) => {
|
|
936
|
-
const n = G(t.mode) ? t.mode : "normal", r = G(t.filename) ? t.filename : "message.intl";
|
|
937
|
-
t.sourceMap;
|
|
938
|
-
const a = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
939
|
-
`, o = t.needIndent ? t.needIndent : n !== "arrow", f = e.helpers || [], d = is(e, {
|
|
940
|
-
filename: r,
|
|
941
|
-
breakLineCode: a,
|
|
942
|
-
needIndent: o
|
|
943
|
-
});
|
|
944
|
-
d.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), d.indent(o), f.length > 0 && (d.push(`const { ${Jt(f.map((C) => `${C}: _${C}`), ", ")} } = ctx`), d.newline()), d.push("return "), at(d, e), d.deindent(o), d.push("}"), delete e.helpers;
|
|
945
|
-
const { code: i, map: g } = d.context();
|
|
946
|
-
return {
|
|
947
|
-
ast: e,
|
|
948
|
-
code: i,
|
|
949
|
-
map: g ? g.toJSON() : void 0
|
|
950
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
951
|
-
};
|
|
952
|
-
};
|
|
953
|
-
function _s(e, t = {}) {
|
|
954
|
-
const n = ge({}, t), r = !!n.jit, a = !!n.minify, o = n.optimize == null ? !0 : n.optimize, d = ss(n).parse(e);
|
|
955
|
-
return r ? (o && ls(d), a && et(d), { ast: d, code: "" }) : (os(d, n), fs(d, n));
|
|
956
|
-
}
|
|
957
|
-
var bs = { env: { NODE_ENV: "production" } };
|
|
958
|
-
function vs() {
|
|
959
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && ($e().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && ($e().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
960
|
-
}
|
|
961
|
-
function kt(e) {
|
|
962
|
-
return (n) => ps(n, e);
|
|
963
|
-
}
|
|
964
|
-
function ps(e, t) {
|
|
965
|
-
const n = gs(t);
|
|
966
|
-
if (n == null)
|
|
967
|
-
throw ct(
|
|
968
|
-
0
|
|
969
|
-
/* NodeTypes.Resource */
|
|
970
|
-
);
|
|
971
|
-
if (Kt(n) === 1) {
|
|
972
|
-
const o = Is(n);
|
|
973
|
-
return e.plural(o.reduce((f, d) => [
|
|
974
|
-
...f,
|
|
975
|
-
dn(e, d)
|
|
976
|
-
], []));
|
|
977
|
-
} else
|
|
978
|
-
return dn(e, n);
|
|
979
|
-
}
|
|
980
|
-
const hs = ["b", "body"];
|
|
981
|
-
function gs(e) {
|
|
982
|
-
return Xe(e, hs);
|
|
983
|
-
}
|
|
984
|
-
const ys = ["c", "cases"];
|
|
985
|
-
function Is(e) {
|
|
986
|
-
return Xe(e, ys, []);
|
|
987
|
-
}
|
|
988
|
-
function dn(e, t) {
|
|
989
|
-
const n = Cs(t);
|
|
990
|
-
if (n != null)
|
|
991
|
-
return e.type === "text" ? n : e.normalize([n]);
|
|
992
|
-
{
|
|
993
|
-
const r = Ts(t).reduce((a, o) => [...a, Pt(e, o)], []);
|
|
994
|
-
return e.normalize(r);
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
const Es = ["s", "static"];
|
|
998
|
-
function Cs(e) {
|
|
999
|
-
return Xe(e, Es);
|
|
1000
|
-
}
|
|
1001
|
-
const Ns = ["i", "items"];
|
|
1002
|
-
function Ts(e) {
|
|
1003
|
-
return Xe(e, Ns, []);
|
|
1004
|
-
}
|
|
1005
|
-
function Pt(e, t) {
|
|
1006
|
-
const n = Kt(t);
|
|
1007
|
-
switch (n) {
|
|
1008
|
-
case 3:
|
|
1009
|
-
return _t(t, n);
|
|
1010
|
-
case 9:
|
|
1011
|
-
return _t(t, n);
|
|
1012
|
-
case 4: {
|
|
1013
|
-
const r = t;
|
|
1014
|
-
if (ke(r, "k") && r.k)
|
|
1015
|
-
return e.interpolate(e.named(r.k));
|
|
1016
|
-
if (ke(r, "key") && r.key)
|
|
1017
|
-
return e.interpolate(e.named(r.key));
|
|
1018
|
-
throw ct(n);
|
|
1019
|
-
}
|
|
1020
|
-
case 5: {
|
|
1021
|
-
const r = t;
|
|
1022
|
-
if (ke(r, "i") && he(r.i))
|
|
1023
|
-
return e.interpolate(e.list(r.i));
|
|
1024
|
-
if (ke(r, "index") && he(r.index))
|
|
1025
|
-
return e.interpolate(e.list(r.index));
|
|
1026
|
-
throw ct(n);
|
|
1027
|
-
}
|
|
1028
|
-
case 6: {
|
|
1029
|
-
const r = t, a = ks(r), o = Rs(r);
|
|
1030
|
-
return e.linked(Pt(e, o), a ? Pt(e, a) : void 0, e.type);
|
|
1031
|
-
}
|
|
1032
|
-
case 7:
|
|
1033
|
-
return _t(t, n);
|
|
1034
|
-
case 8:
|
|
1035
|
-
return _t(t, n);
|
|
1036
|
-
default:
|
|
1037
|
-
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1038
|
-
}
|
|
1039
|
-
}
|
|
1040
|
-
const Os = ["t", "type"];
|
|
1041
|
-
function Kt(e) {
|
|
1042
|
-
return Xe(e, Os);
|
|
1043
|
-
}
|
|
1044
|
-
const Ss = ["v", "value"];
|
|
1045
|
-
function _t(e, t) {
|
|
1046
|
-
const n = Xe(e, Ss);
|
|
1047
|
-
if (n)
|
|
1048
|
-
return n;
|
|
1049
|
-
throw ct(t);
|
|
1050
|
-
}
|
|
1051
|
-
const Ls = ["m", "modifier"];
|
|
1052
|
-
function ks(e) {
|
|
1053
|
-
return Xe(e, Ls);
|
|
1054
|
-
}
|
|
1055
|
-
const As = ["k", "key"];
|
|
1056
|
-
function Rs(e) {
|
|
1057
|
-
const t = Xe(e, As);
|
|
1058
|
-
if (t)
|
|
1059
|
-
return t;
|
|
1060
|
-
throw ct(
|
|
1061
|
-
6
|
|
1062
|
-
/* NodeTypes.Linked */
|
|
1063
|
-
);
|
|
1064
|
-
}
|
|
1065
|
-
function Xe(e, t, n) {
|
|
1066
|
-
for (let r = 0; r < t.length; r++) {
|
|
1067
|
-
const a = t[r];
|
|
1068
|
-
if (ke(e, a) && e[a] != null)
|
|
1069
|
-
return e[a];
|
|
1070
|
-
}
|
|
1071
|
-
return n;
|
|
1072
|
-
}
|
|
1073
|
-
function ct(e) {
|
|
1074
|
-
return new Error(`unhandled node type: ${e}`);
|
|
1075
|
-
}
|
|
1076
|
-
const Ms = (e) => e;
|
|
1077
|
-
let bt = se();
|
|
1078
|
-
function ot(e) {
|
|
1079
|
-
return ee(e) && Kt(e) === 0 && (ke(e, "b") || ke(e, "body"));
|
|
1080
|
-
}
|
|
1081
|
-
function ws(e, t = {}) {
|
|
1082
|
-
let n = !1;
|
|
1083
|
-
const r = t.onError || Hr;
|
|
1084
|
-
return t.onError = (a) => {
|
|
1085
|
-
n = !0, r(a);
|
|
1086
|
-
}, { ..._s(e, t), detectError: n };
|
|
1087
|
-
}
|
|
1088
|
-
// @__NO_SIDE_EFFECTS__
|
|
1089
|
-
function Ds(e, t) {
|
|
1090
|
-
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && G(e)) {
|
|
1091
|
-
_e(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1092
|
-
const r = (t.onCacheKey || Ms)(e), a = bt[r];
|
|
1093
|
-
if (a)
|
|
1094
|
-
return a;
|
|
1095
|
-
const { ast: o, detectError: f } = ws(e, {
|
|
1096
|
-
...t,
|
|
1097
|
-
location: bs.env.NODE_ENV !== "production",
|
|
1098
|
-
jit: !0
|
|
1099
|
-
}), d = kt(o);
|
|
1100
|
-
return f ? d : bt[r] = d;
|
|
1101
|
-
} else {
|
|
1102
|
-
const n = e.cacheKey;
|
|
1103
|
-
if (n) {
|
|
1104
|
-
const r = bt[n];
|
|
1105
|
-
return r || (bt[n] = kt(e));
|
|
1106
|
-
} else
|
|
1107
|
-
return kt(e);
|
|
1108
|
-
}
|
|
1109
|
-
}
|
|
1110
|
-
let ut = null;
|
|
1111
|
-
function Fs(e) {
|
|
1112
|
-
ut = e;
|
|
1113
|
-
}
|
|
1114
|
-
function Ps(e, t, n) {
|
|
1115
|
-
ut && ut.emit("i18n:init", {
|
|
1116
|
-
timestamp: Date.now(),
|
|
1117
|
-
i18n: e,
|
|
1118
|
-
version: t,
|
|
1119
|
-
meta: n
|
|
1120
|
-
});
|
|
1121
|
-
}
|
|
1122
|
-
const js = /* @__PURE__ */ Vs("function:translate");
|
|
1123
|
-
function Vs(e) {
|
|
1124
|
-
return (t) => ut && ut.emit(e, t);
|
|
1125
|
-
}
|
|
1126
|
-
const Ue = {
|
|
1127
|
-
INVALID_ARGUMENT: Xr,
|
|
1128
|
-
// 17
|
|
1129
|
-
INVALID_DATE_ARGUMENT: 18,
|
|
1130
|
-
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
1131
|
-
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1132
|
-
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1133
|
-
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1134
|
-
}, Us = 24;
|
|
1135
|
-
function xe(e) {
|
|
1136
|
-
return Tt(e, null, void 0);
|
|
1137
|
-
}
|
|
1138
|
-
function zt(e, t) {
|
|
1139
|
-
return t.locale != null ? fn(t.locale) : fn(e.locale);
|
|
1140
|
-
}
|
|
1141
|
-
let At;
|
|
1142
|
-
function fn(e) {
|
|
1143
|
-
if (G(e))
|
|
1144
|
-
return e;
|
|
1145
|
-
if (ue(e)) {
|
|
1146
|
-
if (e.resolvedOnce && At != null)
|
|
1147
|
-
return At;
|
|
1148
|
-
if (e.constructor.name === "Function") {
|
|
1149
|
-
const t = e();
|
|
1150
|
-
if (Gr(t))
|
|
1151
|
-
throw xe(Ue.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1152
|
-
return At = t;
|
|
1153
|
-
} else
|
|
1154
|
-
throw xe(Ue.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1155
|
-
} else
|
|
1156
|
-
throw xe(Ue.NOT_SUPPORT_LOCALE_TYPE);
|
|
1157
|
-
}
|
|
1158
|
-
function xs(e, t, n) {
|
|
1159
|
-
return [.../* @__PURE__ */ new Set([
|
|
1160
|
-
n,
|
|
1161
|
-
...be(t) ? t : ee(t) ? Object.keys(t) : G(t) ? [t] : [n]
|
|
1162
|
-
])];
|
|
1163
|
-
}
|
|
1164
|
-
function Jn(e, t, n) {
|
|
1165
|
-
const r = G(n) ? n : Ct, a = e;
|
|
1166
|
-
a.__localeChainCache || (a.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1167
|
-
let o = a.__localeChainCache.get(r);
|
|
1168
|
-
if (!o) {
|
|
1169
|
-
o = [];
|
|
1170
|
-
let f = [n];
|
|
1171
|
-
for (; be(f); )
|
|
1172
|
-
f = _n(o, f, t);
|
|
1173
|
-
const d = be(t) || !q(t) ? t : t.default ? t.default : null;
|
|
1174
|
-
f = G(d) ? [d] : d, be(f) && _n(o, f, !1), a.__localeChainCache.set(r, o);
|
|
1175
|
-
}
|
|
1176
|
-
return o;
|
|
1177
|
-
}
|
|
1178
|
-
function _n(e, t, n) {
|
|
1179
|
-
let r = !0;
|
|
1180
|
-
for (let a = 0; a < t.length && _e(r); a++) {
|
|
1181
|
-
const o = t[a];
|
|
1182
|
-
G(o) && (r = Ws(e, t[a], n));
|
|
1183
|
-
}
|
|
1184
|
-
return r;
|
|
1185
|
-
}
|
|
1186
|
-
function Ws(e, t, n) {
|
|
1187
|
-
let r;
|
|
1188
|
-
const a = t.split("-");
|
|
1189
|
-
do {
|
|
1190
|
-
const o = a.join("-");
|
|
1191
|
-
r = Gs(e, o, n), a.splice(-1, 1);
|
|
1192
|
-
} while (a.length && r === !0);
|
|
1193
|
-
return r;
|
|
1194
|
-
}
|
|
1195
|
-
function Gs(e, t, n) {
|
|
1196
|
-
let r = !1;
|
|
1197
|
-
if (!e.includes(t) && (r = !0, t)) {
|
|
1198
|
-
r = t[t.length - 1] !== "!";
|
|
1199
|
-
const a = t.replace(/!/g, "");
|
|
1200
|
-
e.push(a), (be(n) || q(n)) && n[a] && (r = n[a]);
|
|
1201
|
-
}
|
|
1202
|
-
return r;
|
|
1203
|
-
}
|
|
1204
|
-
const He = [];
|
|
1205
|
-
He[
|
|
1206
|
-
0
|
|
1207
|
-
/* States.BEFORE_PATH */
|
|
1208
|
-
] = {
|
|
1209
|
-
w: [
|
|
1210
|
-
0
|
|
1211
|
-
/* States.BEFORE_PATH */
|
|
1212
|
-
],
|
|
1213
|
-
i: [
|
|
1214
|
-
3,
|
|
1215
|
-
0
|
|
1216
|
-
/* Actions.APPEND */
|
|
1217
|
-
],
|
|
1218
|
-
"[": [
|
|
1219
|
-
4
|
|
1220
|
-
/* States.IN_SUB_PATH */
|
|
1221
|
-
],
|
|
1222
|
-
o: [
|
|
1223
|
-
7
|
|
1224
|
-
/* States.AFTER_PATH */
|
|
1225
|
-
]
|
|
1226
|
-
};
|
|
1227
|
-
He[
|
|
1228
|
-
1
|
|
1229
|
-
/* States.IN_PATH */
|
|
1230
|
-
] = {
|
|
1231
|
-
w: [
|
|
1232
|
-
1
|
|
1233
|
-
/* States.IN_PATH */
|
|
1234
|
-
],
|
|
1235
|
-
".": [
|
|
1236
|
-
2
|
|
1237
|
-
/* States.BEFORE_IDENT */
|
|
1238
|
-
],
|
|
1239
|
-
"[": [
|
|
1240
|
-
4
|
|
1241
|
-
/* States.IN_SUB_PATH */
|
|
1242
|
-
],
|
|
1243
|
-
o: [
|
|
1244
|
-
7
|
|
1245
|
-
/* States.AFTER_PATH */
|
|
1246
|
-
]
|
|
1247
|
-
};
|
|
1248
|
-
He[
|
|
1249
|
-
2
|
|
1250
|
-
/* States.BEFORE_IDENT */
|
|
1251
|
-
] = {
|
|
1252
|
-
w: [
|
|
1253
|
-
2
|
|
1254
|
-
/* States.BEFORE_IDENT */
|
|
1255
|
-
],
|
|
1256
|
-
i: [
|
|
1257
|
-
3,
|
|
1258
|
-
0
|
|
1259
|
-
/* Actions.APPEND */
|
|
1260
|
-
],
|
|
1261
|
-
0: [
|
|
1262
|
-
3,
|
|
1263
|
-
0
|
|
1264
|
-
/* Actions.APPEND */
|
|
1265
|
-
]
|
|
1266
|
-
};
|
|
1267
|
-
He[
|
|
1268
|
-
3
|
|
1269
|
-
/* States.IN_IDENT */
|
|
1270
|
-
] = {
|
|
1271
|
-
i: [
|
|
1272
|
-
3,
|
|
1273
|
-
0
|
|
1274
|
-
/* Actions.APPEND */
|
|
1275
|
-
],
|
|
1276
|
-
0: [
|
|
1277
|
-
3,
|
|
1278
|
-
0
|
|
1279
|
-
/* Actions.APPEND */
|
|
1280
|
-
],
|
|
1281
|
-
w: [
|
|
1282
|
-
1,
|
|
1283
|
-
1
|
|
1284
|
-
/* Actions.PUSH */
|
|
1285
|
-
],
|
|
1286
|
-
".": [
|
|
1287
|
-
2,
|
|
1288
|
-
1
|
|
1289
|
-
/* Actions.PUSH */
|
|
1290
|
-
],
|
|
1291
|
-
"[": [
|
|
1292
|
-
4,
|
|
1293
|
-
1
|
|
1294
|
-
/* Actions.PUSH */
|
|
1295
|
-
],
|
|
1296
|
-
o: [
|
|
1297
|
-
7,
|
|
1298
|
-
1
|
|
1299
|
-
/* Actions.PUSH */
|
|
1300
|
-
]
|
|
1301
|
-
};
|
|
1302
|
-
He[
|
|
1303
|
-
4
|
|
1304
|
-
/* States.IN_SUB_PATH */
|
|
1305
|
-
] = {
|
|
1306
|
-
"'": [
|
|
1307
|
-
5,
|
|
1308
|
-
0
|
|
1309
|
-
/* Actions.APPEND */
|
|
1310
|
-
],
|
|
1311
|
-
'"': [
|
|
1312
|
-
6,
|
|
1313
|
-
0
|
|
1314
|
-
/* Actions.APPEND */
|
|
1315
|
-
],
|
|
1316
|
-
"[": [
|
|
1317
|
-
4,
|
|
1318
|
-
2
|
|
1319
|
-
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1320
|
-
],
|
|
1321
|
-
"]": [
|
|
1322
|
-
1,
|
|
1323
|
-
3
|
|
1324
|
-
/* Actions.PUSH_SUB_PATH */
|
|
1325
|
-
],
|
|
1326
|
-
o: 8,
|
|
1327
|
-
l: [
|
|
1328
|
-
4,
|
|
1329
|
-
0
|
|
1330
|
-
/* Actions.APPEND */
|
|
1331
|
-
]
|
|
1332
|
-
};
|
|
1333
|
-
He[
|
|
1334
|
-
5
|
|
1335
|
-
/* States.IN_SINGLE_QUOTE */
|
|
1336
|
-
] = {
|
|
1337
|
-
"'": [
|
|
1338
|
-
4,
|
|
1339
|
-
0
|
|
1340
|
-
/* Actions.APPEND */
|
|
1341
|
-
],
|
|
1342
|
-
o: 8,
|
|
1343
|
-
l: [
|
|
1344
|
-
5,
|
|
1345
|
-
0
|
|
1346
|
-
/* Actions.APPEND */
|
|
1347
|
-
]
|
|
1348
|
-
};
|
|
1349
|
-
He[
|
|
1350
|
-
6
|
|
1351
|
-
/* States.IN_DOUBLE_QUOTE */
|
|
1352
|
-
] = {
|
|
1353
|
-
'"': [
|
|
1354
|
-
4,
|
|
1355
|
-
0
|
|
1356
|
-
/* Actions.APPEND */
|
|
1357
|
-
],
|
|
1358
|
-
o: 8,
|
|
1359
|
-
l: [
|
|
1360
|
-
6,
|
|
1361
|
-
0
|
|
1362
|
-
/* Actions.APPEND */
|
|
1363
|
-
]
|
|
1364
|
-
};
|
|
1365
|
-
const Zs = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1366
|
-
function Ys(e) {
|
|
1367
|
-
return Zs.test(e);
|
|
1368
|
-
}
|
|
1369
|
-
function Bs(e) {
|
|
1370
|
-
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1371
|
-
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1372
|
-
}
|
|
1373
|
-
function Xs(e) {
|
|
1374
|
-
if (e == null)
|
|
1375
|
-
return "o";
|
|
1376
|
-
switch (e.charCodeAt(0)) {
|
|
1377
|
-
case 91:
|
|
1378
|
-
case 93:
|
|
1379
|
-
case 46:
|
|
1380
|
-
case 34:
|
|
1381
|
-
case 39:
|
|
1382
|
-
return e;
|
|
1383
|
-
case 95:
|
|
1384
|
-
case 36:
|
|
1385
|
-
case 45:
|
|
1386
|
-
return "i";
|
|
1387
|
-
case 9:
|
|
1388
|
-
case 10:
|
|
1389
|
-
case 13:
|
|
1390
|
-
case 160:
|
|
1391
|
-
case 65279:
|
|
1392
|
-
case 8232:
|
|
1393
|
-
case 8233:
|
|
1394
|
-
return "w";
|
|
1395
|
-
}
|
|
1396
|
-
return "i";
|
|
1397
|
-
}
|
|
1398
|
-
function Hs(e) {
|
|
1399
|
-
const t = e.trim();
|
|
1400
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Ys(t) ? Bs(t) : "*" + t;
|
|
1401
|
-
}
|
|
1402
|
-
function Js(e) {
|
|
1403
|
-
const t = [];
|
|
1404
|
-
let n = -1, r = 0, a = 0, o, f, d, i, g, C, O;
|
|
1405
|
-
const N = [];
|
|
1406
|
-
N[
|
|
1407
|
-
0
|
|
1408
|
-
/* Actions.APPEND */
|
|
1409
|
-
] = () => {
|
|
1410
|
-
f === void 0 ? f = d : f += d;
|
|
1411
|
-
}, N[
|
|
1412
|
-
1
|
|
1413
|
-
/* Actions.PUSH */
|
|
1414
|
-
] = () => {
|
|
1415
|
-
f !== void 0 && (t.push(f), f = void 0);
|
|
1416
|
-
}, N[
|
|
1417
|
-
2
|
|
1418
|
-
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1419
|
-
] = () => {
|
|
1420
|
-
N[
|
|
1421
|
-
0
|
|
1422
|
-
/* Actions.APPEND */
|
|
1423
|
-
](), a++;
|
|
1424
|
-
}, N[
|
|
1425
|
-
3
|
|
1426
|
-
/* Actions.PUSH_SUB_PATH */
|
|
1427
|
-
] = () => {
|
|
1428
|
-
if (a > 0)
|
|
1429
|
-
a--, r = 4, N[
|
|
1430
|
-
0
|
|
1431
|
-
/* Actions.APPEND */
|
|
1432
|
-
]();
|
|
1433
|
-
else {
|
|
1434
|
-
if (a = 0, f === void 0 || (f = Hs(f), f === !1))
|
|
1435
|
-
return !1;
|
|
1436
|
-
N[
|
|
1437
|
-
1
|
|
1438
|
-
/* Actions.PUSH */
|
|
1439
|
-
]();
|
|
1440
|
-
}
|
|
1441
|
-
};
|
|
1442
|
-
function w() {
|
|
1443
|
-
const R = e[n + 1];
|
|
1444
|
-
if (r === 5 && R === "'" || r === 6 && R === '"')
|
|
1445
|
-
return n++, d = "\\" + R, N[
|
|
1446
|
-
0
|
|
1447
|
-
/* Actions.APPEND */
|
|
1448
|
-
](), !0;
|
|
1449
|
-
}
|
|
1450
|
-
for (; r !== null; )
|
|
1451
|
-
if (n++, o = e[n], !(o === "\\" && w())) {
|
|
1452
|
-
if (i = Xs(o), O = He[r], g = O[i] || O.l || 8, g === 8 || (r = g[0], g[1] !== void 0 && (C = N[g[1]], C && (d = o, C() === !1))))
|
|
1453
|
-
return;
|
|
1454
|
-
if (r === 7)
|
|
1455
|
-
return t;
|
|
1456
|
-
}
|
|
1457
|
-
}
|
|
1458
|
-
const bn = /* @__PURE__ */ new Map();
|
|
1459
|
-
function $s(e, t) {
|
|
1460
|
-
return ee(e) ? e[t] : null;
|
|
1461
|
-
}
|
|
1462
|
-
function Ks(e, t) {
|
|
1463
|
-
if (!ee(e))
|
|
1464
|
-
return null;
|
|
1465
|
-
let n = bn.get(t);
|
|
1466
|
-
if (n || (n = Js(t), n && bn.set(t, n)), !n)
|
|
1467
|
-
return null;
|
|
1468
|
-
const r = n.length;
|
|
1469
|
-
let a = e, o = 0;
|
|
1470
|
-
for (; o < r; ) {
|
|
1471
|
-
const f = a[n[o]];
|
|
1472
|
-
if (f === void 0 || ue(a))
|
|
1473
|
-
return null;
|
|
1474
|
-
a = f, o++;
|
|
1475
|
-
}
|
|
1476
|
-
return a;
|
|
1477
|
-
}
|
|
1478
|
-
const zs = "10.0.5", Ot = -1, Ct = "en-US", vn = "", pn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1479
|
-
function Qs() {
|
|
1480
|
-
return {
|
|
1481
|
-
upper: (e, t) => t === "text" && G(e) ? e.toUpperCase() : t === "vnode" && ee(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1482
|
-
lower: (e, t) => t === "text" && G(e) ? e.toLowerCase() : t === "vnode" && ee(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1483
|
-
capitalize: (e, t) => t === "text" && G(e) ? pn(e) : t === "vnode" && ee(e) && "__v_isVNode" in e ? pn(e.children) : e
|
|
1484
|
-
};
|
|
1485
|
-
}
|
|
1486
|
-
let $n;
|
|
1487
|
-
function qs(e) {
|
|
1488
|
-
$n = e;
|
|
1489
|
-
}
|
|
1490
|
-
let Kn;
|
|
1491
|
-
function ea(e) {
|
|
1492
|
-
Kn = e;
|
|
1493
|
-
}
|
|
1494
|
-
let zn;
|
|
1495
|
-
function ta(e) {
|
|
1496
|
-
zn = e;
|
|
1497
|
-
}
|
|
1498
|
-
let Qn = null;
|
|
1499
|
-
const na = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1500
|
-
Qn = e;
|
|
1501
|
-
}, ra = /* @__NO_SIDE_EFFECTS__ */ () => Qn;
|
|
1502
|
-
let qn = null;
|
|
1503
|
-
const hn = (e) => {
|
|
1504
|
-
qn = e;
|
|
1505
|
-
}, sa = () => qn;
|
|
1506
|
-
let gn = 0;
|
|
1507
|
-
function aa(e = {}) {
|
|
1508
|
-
const t = ue(e.onWarn) ? e.onWarn : Yr, n = G(e.version) ? e.version : zs, r = G(e.locale) || ue(e.locale) ? e.locale : Ct, a = ue(r) ? Ct : r, o = be(e.fallbackLocale) || q(e.fallbackLocale) || G(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, f = q(e.messages) ? e.messages : Rt(a), d = q(e.datetimeFormats) ? e.datetimeFormats : Rt(a), i = q(e.numberFormats) ? e.numberFormats : Rt(a), g = ge(se(), e.modifiers, Qs()), C = e.pluralRules || se(), O = ue(e.missing) ? e.missing : null, N = _e(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, w = _e(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, R = !!e.fallbackFormat, k = !!e.unresolving, M = ue(e.postTranslation) ? e.postTranslation : null, b = q(e.processor) ? e.processor : null, p = _e(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, m = ue(e.messageCompiler) ? e.messageCompiler : $n, y = ue(e.messageResolver) ? e.messageResolver : Kn || $s, E = ue(e.localeFallbacker) ? e.localeFallbacker : zn || xs, v = ee(e.fallbackContext) ? e.fallbackContext : void 0, A = e, L = ee(A.__datetimeFormatters) ? A.__datetimeFormatters : /* @__PURE__ */ new Map(), H = ee(A.__numberFormatters) ? A.__numberFormatters : /* @__PURE__ */ new Map(), x = ee(A.__meta) ? A.__meta : {};
|
|
1509
|
-
gn++;
|
|
1510
|
-
const _ = {
|
|
1511
|
-
version: n,
|
|
1512
|
-
cid: gn,
|
|
1513
|
-
locale: r,
|
|
1514
|
-
fallbackLocale: o,
|
|
1515
|
-
messages: f,
|
|
1516
|
-
modifiers: g,
|
|
1517
|
-
pluralRules: C,
|
|
1518
|
-
missing: O,
|
|
1519
|
-
missingWarn: N,
|
|
1520
|
-
fallbackWarn: w,
|
|
1521
|
-
fallbackFormat: R,
|
|
1522
|
-
unresolving: k,
|
|
1523
|
-
postTranslation: M,
|
|
1524
|
-
processor: b,
|
|
1525
|
-
warnHtmlMessage: p,
|
|
1526
|
-
escapeParameter: S,
|
|
1527
|
-
messageCompiler: m,
|
|
1528
|
-
messageResolver: y,
|
|
1529
|
-
localeFallbacker: E,
|
|
1530
|
-
fallbackContext: v,
|
|
1531
|
-
onWarn: t,
|
|
1532
|
-
__meta: x
|
|
1533
|
-
};
|
|
1534
|
-
return _.datetimeFormats = d, _.numberFormats = i, _.__datetimeFormatters = L, _.__numberFormatters = H, __INTLIFY_PROD_DEVTOOLS__ && Ps(_, n, x), _;
|
|
1535
|
-
}
|
|
1536
|
-
const Rt = (e) => ({ [e]: se() });
|
|
1537
|
-
function Qt(e, t, n, r, a) {
|
|
1538
|
-
const { missing: o, onWarn: f } = e;
|
|
1539
|
-
if (o !== null) {
|
|
1540
|
-
const d = o(e, n, t, a);
|
|
1541
|
-
return G(d) ? d : t;
|
|
1542
|
-
} else
|
|
1543
|
-
return t;
|
|
1544
|
-
}
|
|
1545
|
-
function it(e, t, n) {
|
|
1546
|
-
const r = e;
|
|
1547
|
-
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1548
|
-
}
|
|
1549
|
-
function oa(e, t) {
|
|
1550
|
-
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1551
|
-
}
|
|
1552
|
-
function la(e, t) {
|
|
1553
|
-
const n = t.indexOf(e);
|
|
1554
|
-
if (n === -1)
|
|
1555
|
-
return !1;
|
|
1556
|
-
for (let r = n + 1; r < t.length; r++)
|
|
1557
|
-
if (oa(e, t[r]))
|
|
1558
|
-
return !0;
|
|
1559
|
-
return !1;
|
|
1560
|
-
}
|
|
1561
|
-
function yn(e, ...t) {
|
|
1562
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: o, localeFallbacker: f } = e, { __datetimeFormatters: d } = e, [i, g, C, O] = jt(...t), N = _e(C.missingWarn) ? C.missingWarn : e.missingWarn;
|
|
1563
|
-
_e(C.fallbackWarn) ? C.fallbackWarn : e.fallbackWarn;
|
|
1564
|
-
const w = !!C.part, R = zt(e, C), k = f(
|
|
1565
|
-
e,
|
|
1566
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1567
|
-
a,
|
|
1568
|
-
R
|
|
1569
|
-
);
|
|
1570
|
-
if (!G(i) || i === "")
|
|
1571
|
-
return new Intl.DateTimeFormat(R, O).format(g);
|
|
1572
|
-
let M = {}, b, p = null;
|
|
1573
|
-
const S = "datetime format";
|
|
1574
|
-
for (let E = 0; E < k.length && (b = k[E], M = n[b] || {}, p = M[i], !q(p)); E++)
|
|
1575
|
-
Qt(e, i, b, N, S);
|
|
1576
|
-
if (!q(p) || !G(b))
|
|
1577
|
-
return r ? Ot : i;
|
|
1578
|
-
let m = `${b}__${i}`;
|
|
1579
|
-
Nt(O) || (m = `${m}__${JSON.stringify(O)}`);
|
|
1580
|
-
let y = d.get(m);
|
|
1581
|
-
return y || (y = new Intl.DateTimeFormat(b, ge({}, p, O)), d.set(m, y)), w ? y.formatToParts(g) : y.format(g);
|
|
1582
|
-
}
|
|
1583
|
-
const er = [
|
|
1584
|
-
"localeMatcher",
|
|
1585
|
-
"weekday",
|
|
1586
|
-
"era",
|
|
1587
|
-
"year",
|
|
1588
|
-
"month",
|
|
1589
|
-
"day",
|
|
1590
|
-
"hour",
|
|
1591
|
-
"minute",
|
|
1592
|
-
"second",
|
|
1593
|
-
"timeZoneName",
|
|
1594
|
-
"formatMatcher",
|
|
1595
|
-
"hour12",
|
|
1596
|
-
"timeZone",
|
|
1597
|
-
"dateStyle",
|
|
1598
|
-
"timeStyle",
|
|
1599
|
-
"calendar",
|
|
1600
|
-
"dayPeriod",
|
|
1601
|
-
"numberingSystem",
|
|
1602
|
-
"hourCycle",
|
|
1603
|
-
"fractionalSecondDigits"
|
|
1604
|
-
];
|
|
1605
|
-
function jt(...e) {
|
|
1606
|
-
const [t, n, r, a] = e, o = se();
|
|
1607
|
-
let f = se(), d;
|
|
1608
|
-
if (G(t)) {
|
|
1609
|
-
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1610
|
-
if (!i)
|
|
1611
|
-
throw xe(Ue.INVALID_ISO_DATE_ARGUMENT);
|
|
1612
|
-
const g = i[3] ? i[3].trim().startsWith("T") ? `${i[1].trim()}${i[3].trim()}` : `${i[1].trim()}T${i[3].trim()}` : i[1].trim();
|
|
1613
|
-
d = new Date(g);
|
|
1614
|
-
try {
|
|
1615
|
-
d.toISOString();
|
|
1616
|
-
} catch {
|
|
1617
|
-
throw xe(Ue.INVALID_ISO_DATE_ARGUMENT);
|
|
1618
|
-
}
|
|
1619
|
-
} else if (Ur(t)) {
|
|
1620
|
-
if (isNaN(t.getTime()))
|
|
1621
|
-
throw xe(Ue.INVALID_DATE_ARGUMENT);
|
|
1622
|
-
d = t;
|
|
1623
|
-
} else if (he(t))
|
|
1624
|
-
d = t;
|
|
1625
|
-
else
|
|
1626
|
-
throw xe(Ue.INVALID_ARGUMENT);
|
|
1627
|
-
return G(n) ? o.key = n : q(n) && Object.keys(n).forEach((i) => {
|
|
1628
|
-
er.includes(i) ? f[i] = n[i] : o[i] = n[i];
|
|
1629
|
-
}), G(r) ? o.locale = r : q(r) && (f = r), q(a) && (f = a), [o.key || "", d, o, f];
|
|
1630
|
-
}
|
|
1631
|
-
function In(e, t, n) {
|
|
1632
|
-
const r = e;
|
|
1633
|
-
for (const a in n) {
|
|
1634
|
-
const o = `${t}__${a}`;
|
|
1635
|
-
r.__datetimeFormatters.has(o) && r.__datetimeFormatters.delete(o);
|
|
1636
|
-
}
|
|
1637
|
-
}
|
|
1638
|
-
function En(e, ...t) {
|
|
1639
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: o, localeFallbacker: f } = e, { __numberFormatters: d } = e, [i, g, C, O] = Vt(...t), N = _e(C.missingWarn) ? C.missingWarn : e.missingWarn;
|
|
1640
|
-
_e(C.fallbackWarn) ? C.fallbackWarn : e.fallbackWarn;
|
|
1641
|
-
const w = !!C.part, R = zt(e, C), k = f(
|
|
1642
|
-
e,
|
|
1643
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1644
|
-
a,
|
|
1645
|
-
R
|
|
1646
|
-
);
|
|
1647
|
-
if (!G(i) || i === "")
|
|
1648
|
-
return new Intl.NumberFormat(R, O).format(g);
|
|
1649
|
-
let M = {}, b, p = null;
|
|
1650
|
-
const S = "number format";
|
|
1651
|
-
for (let E = 0; E < k.length && (b = k[E], M = n[b] || {}, p = M[i], !q(p)); E++)
|
|
1652
|
-
Qt(e, i, b, N, S);
|
|
1653
|
-
if (!q(p) || !G(b))
|
|
1654
|
-
return r ? Ot : i;
|
|
1655
|
-
let m = `${b}__${i}`;
|
|
1656
|
-
Nt(O) || (m = `${m}__${JSON.stringify(O)}`);
|
|
1657
|
-
let y = d.get(m);
|
|
1658
|
-
return y || (y = new Intl.NumberFormat(b, ge({}, p, O)), d.set(m, y)), w ? y.formatToParts(g) : y.format(g);
|
|
1659
|
-
}
|
|
1660
|
-
const tr = [
|
|
1661
|
-
"localeMatcher",
|
|
1662
|
-
"style",
|
|
1663
|
-
"currency",
|
|
1664
|
-
"currencyDisplay",
|
|
1665
|
-
"currencySign",
|
|
1666
|
-
"useGrouping",
|
|
1667
|
-
"minimumIntegerDigits",
|
|
1668
|
-
"minimumFractionDigits",
|
|
1669
|
-
"maximumFractionDigits",
|
|
1670
|
-
"minimumSignificantDigits",
|
|
1671
|
-
"maximumSignificantDigits",
|
|
1672
|
-
"compactDisplay",
|
|
1673
|
-
"notation",
|
|
1674
|
-
"signDisplay",
|
|
1675
|
-
"unit",
|
|
1676
|
-
"unitDisplay",
|
|
1677
|
-
"roundingMode",
|
|
1678
|
-
"roundingPriority",
|
|
1679
|
-
"roundingIncrement",
|
|
1680
|
-
"trailingZeroDisplay"
|
|
1681
|
-
];
|
|
1682
|
-
function Vt(...e) {
|
|
1683
|
-
const [t, n, r, a] = e, o = se();
|
|
1684
|
-
let f = se();
|
|
1685
|
-
if (!he(t))
|
|
1686
|
-
throw xe(Ue.INVALID_ARGUMENT);
|
|
1687
|
-
const d = t;
|
|
1688
|
-
return G(n) ? o.key = n : q(n) && Object.keys(n).forEach((i) => {
|
|
1689
|
-
tr.includes(i) ? f[i] = n[i] : o[i] = n[i];
|
|
1690
|
-
}), G(r) ? o.locale = r : q(r) && (f = r), q(a) && (f = a), [o.key || "", d, o, f];
|
|
1691
|
-
}
|
|
1692
|
-
function Cn(e, t, n) {
|
|
1693
|
-
const r = e;
|
|
1694
|
-
for (const a in n) {
|
|
1695
|
-
const o = `${t}__${a}`;
|
|
1696
|
-
r.__numberFormatters.has(o) && r.__numberFormatters.delete(o);
|
|
1697
|
-
}
|
|
1698
|
-
}
|
|
1699
|
-
const ia = (e) => e, ca = (e) => "", ua = "text", ma = (e) => e.length === 0 ? "" : Jt(e), da = Zr;
|
|
1700
|
-
function Nn(e, t) {
|
|
1701
|
-
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1702
|
-
}
|
|
1703
|
-
function fa(e) {
|
|
1704
|
-
const t = he(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1705
|
-
return e.named && (he(e.named.count) || he(e.named.n)) ? he(e.named.count) ? e.named.count : he(e.named.n) ? e.named.n : t : t;
|
|
1706
|
-
}
|
|
1707
|
-
function _a(e, t) {
|
|
1708
|
-
t.count || (t.count = e), t.n || (t.n = e);
|
|
1709
|
-
}
|
|
1710
|
-
function ba(e = {}) {
|
|
1711
|
-
const t = e.locale, n = fa(e), r = ee(e.pluralRules) && G(t) && ue(e.pluralRules[t]) ? e.pluralRules[t] : Nn, a = ee(e.pluralRules) && G(t) && ue(e.pluralRules[t]) ? Nn : void 0, o = (b) => b[r(n, b.length, a)], f = e.list || [], d = (b) => f[b], i = e.named || se();
|
|
1712
|
-
he(e.pluralIndex) && _a(n, i);
|
|
1713
|
-
const g = (b) => i[b];
|
|
1714
|
-
function C(b, p) {
|
|
1715
|
-
const S = ue(e.messages) ? e.messages(b, !!p) : ee(e.messages) ? e.messages[b] : !1;
|
|
1716
|
-
return S || (e.parent ? e.parent.message(b) : ca);
|
|
1717
|
-
}
|
|
1718
|
-
const O = (b) => e.modifiers ? e.modifiers[b] : ia, N = q(e.processor) && ue(e.processor.normalize) ? e.processor.normalize : ma, w = q(e.processor) && ue(e.processor.interpolate) ? e.processor.interpolate : da, R = q(e.processor) && G(e.processor.type) ? e.processor.type : ua, M = {
|
|
1719
|
-
list: d,
|
|
1720
|
-
named: g,
|
|
1721
|
-
plural: o,
|
|
1722
|
-
linked: (b, ...p) => {
|
|
1723
|
-
const [S, m] = p;
|
|
1724
|
-
let y = "text", E = "";
|
|
1725
|
-
p.length === 1 ? ee(S) ? (E = S.modifier || E, y = S.type || y) : G(S) && (E = S || E) : p.length === 2 && (G(S) && (E = S || E), G(m) && (y = m || y));
|
|
1726
|
-
const v = C(b, !0)(M), A = (
|
|
1727
|
-
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1728
|
-
y === "vnode" && be(v) && E ? v[0] : v
|
|
1729
|
-
);
|
|
1730
|
-
return E ? O(E)(A, y) : A;
|
|
1731
|
-
},
|
|
1732
|
-
message: C,
|
|
1733
|
-
type: R,
|
|
1734
|
-
interpolate: w,
|
|
1735
|
-
normalize: N,
|
|
1736
|
-
values: ge(se(), f, i)
|
|
1737
|
-
};
|
|
1738
|
-
return M;
|
|
1739
|
-
}
|
|
1740
|
-
const Tn = () => "", Oe = (e) => ue(e);
|
|
1741
|
-
function On(e, ...t) {
|
|
1742
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: o, fallbackLocale: f, messages: d } = e, [i, g] = Ut(...t), C = _e(g.missingWarn) ? g.missingWarn : e.missingWarn, O = _e(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, N = _e(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, w = !!g.resolvedMessage, R = G(g.default) || _e(g.default) ? _e(g.default) ? o ? i : () => i : g.default : n ? o ? i : () => i : null, k = n || R != null && (G(R) || ue(R)), M = zt(e, g);
|
|
1743
|
-
N && va(g);
|
|
1744
|
-
let [b, p, S] = w ? [
|
|
1745
|
-
i,
|
|
1746
|
-
M,
|
|
1747
|
-
d[M] || se()
|
|
1748
|
-
] : nr(e, i, M, f, O, C), m = b, y = i;
|
|
1749
|
-
if (!w && !(G(m) || ot(m) || Oe(m)) && k && (m = R, y = m), !w && (!(G(m) || ot(m) || Oe(m)) || !G(p)))
|
|
1750
|
-
return a ? Ot : i;
|
|
1751
|
-
let E = !1;
|
|
1752
|
-
const v = () => {
|
|
1753
|
-
E = !0;
|
|
1754
|
-
}, A = Oe(m) ? m : rr(e, i, p, m, y, v);
|
|
1755
|
-
if (E)
|
|
1756
|
-
return m;
|
|
1757
|
-
const L = ga(e, p, S, g), H = ba(L), x = pa(e, A, H), _ = r ? r(x, i) : x;
|
|
1758
|
-
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1759
|
-
const T = {
|
|
1760
|
-
timestamp: Date.now(),
|
|
1761
|
-
key: G(i) ? i : Oe(m) ? m.key : "",
|
|
1762
|
-
locale: p || (Oe(m) ? m.locale : ""),
|
|
1763
|
-
format: G(m) ? m : Oe(m) ? m.source : "",
|
|
1764
|
-
message: _
|
|
1765
|
-
};
|
|
1766
|
-
T.meta = ge({}, e.__meta, /* @__PURE__ */ ra() || {}), js(T);
|
|
1767
|
-
}
|
|
1768
|
-
return _;
|
|
1769
|
-
}
|
|
1770
|
-
function va(e) {
|
|
1771
|
-
be(e.list) ? e.list = e.list.map((t) => G(t) ? ln(t) : t) : ee(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1772
|
-
G(e.named[t]) && (e.named[t] = ln(e.named[t]));
|
|
1773
|
-
});
|
|
1774
|
-
}
|
|
1775
|
-
function nr(e, t, n, r, a, o) {
|
|
1776
|
-
const { messages: f, onWarn: d, messageResolver: i, localeFallbacker: g } = e, C = g(e, r, n);
|
|
1777
|
-
let O = se(), N, w = null;
|
|
1778
|
-
const R = "translate";
|
|
1779
|
-
for (let k = 0; k < C.length && (N = C[k], O = f[N] || se(), (w = i(O, t)) === null && (w = O[t]), !(G(w) || ot(w) || Oe(w))); k++)
|
|
1780
|
-
if (!la(N, C)) {
|
|
1781
|
-
const M = Qt(
|
|
1782
|
-
e,
|
|
1783
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1784
|
-
t,
|
|
1785
|
-
N,
|
|
1786
|
-
o,
|
|
1787
|
-
R
|
|
1788
|
-
);
|
|
1789
|
-
M !== t && (w = M);
|
|
1790
|
-
}
|
|
1791
|
-
return [w, N, O];
|
|
1792
|
-
}
|
|
1793
|
-
function rr(e, t, n, r, a, o) {
|
|
1794
|
-
const { messageCompiler: f, warnHtmlMessage: d } = e;
|
|
1795
|
-
if (Oe(r)) {
|
|
1796
|
-
const g = r;
|
|
1797
|
-
return g.locale = g.locale || n, g.key = g.key || t, g;
|
|
1798
|
-
}
|
|
1799
|
-
if (f == null) {
|
|
1800
|
-
const g = () => r;
|
|
1801
|
-
return g.locale = n, g.key = t, g;
|
|
1802
|
-
}
|
|
1803
|
-
const i = f(r, ha(e, n, a, r, d, o));
|
|
1804
|
-
return i.locale = n, i.key = t, i.source = r, i;
|
|
1805
|
-
}
|
|
1806
|
-
function pa(e, t, n) {
|
|
1807
|
-
return t(n);
|
|
1808
|
-
}
|
|
1809
|
-
function Ut(...e) {
|
|
1810
|
-
const [t, n, r] = e, a = se();
|
|
1811
|
-
if (!G(t) && !he(t) && !Oe(t) && !ot(t))
|
|
1812
|
-
throw xe(Ue.INVALID_ARGUMENT);
|
|
1813
|
-
const o = he(t) ? String(t) : (Oe(t), t);
|
|
1814
|
-
return he(n) ? a.plural = n : G(n) ? a.default = n : q(n) && !Nt(n) ? a.named = n : be(n) && (a.list = n), he(r) ? a.plural = r : G(r) ? a.default = r : q(r) && ge(a, r), [o, a];
|
|
1815
|
-
}
|
|
1816
|
-
function ha(e, t, n, r, a, o) {
|
|
1817
|
-
return {
|
|
1818
|
-
locale: t,
|
|
1819
|
-
key: n,
|
|
1820
|
-
warnHtmlMessage: a,
|
|
1821
|
-
onError: (f) => {
|
|
1822
|
-
throw o && o(f), f;
|
|
1823
|
-
},
|
|
1824
|
-
onCacheKey: (f) => jr(t, n, f)
|
|
1825
|
-
};
|
|
1826
|
-
}
|
|
1827
|
-
function ga(e, t, n, r) {
|
|
1828
|
-
const { modifiers: a, pluralRules: o, messageResolver: f, fallbackLocale: d, fallbackWarn: i, missingWarn: g, fallbackContext: C } = e, N = {
|
|
1829
|
-
locale: t,
|
|
1830
|
-
modifiers: a,
|
|
1831
|
-
pluralRules: o,
|
|
1832
|
-
messages: (w, R) => {
|
|
1833
|
-
let k = f(n, w);
|
|
1834
|
-
if (k == null && (C || R)) {
|
|
1835
|
-
const [, , M] = nr(
|
|
1836
|
-
C || e,
|
|
1837
|
-
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1838
|
-
w,
|
|
1839
|
-
t,
|
|
1840
|
-
d,
|
|
1841
|
-
i,
|
|
1842
|
-
g
|
|
1843
|
-
);
|
|
1844
|
-
k = f(M, w);
|
|
1845
|
-
}
|
|
1846
|
-
if (G(k) || ot(k)) {
|
|
1847
|
-
let M = !1;
|
|
1848
|
-
const p = rr(e, w, t, k, w, () => {
|
|
1849
|
-
M = !0;
|
|
1850
|
-
});
|
|
1851
|
-
return M ? Tn : p;
|
|
1852
|
-
} else return Oe(k) ? k : Tn;
|
|
1853
|
-
}
|
|
1854
|
-
};
|
|
1855
|
-
return e.processor && (N.processor = e.processor), r.list && (N.list = r.list), r.named && (N.named = r.named), he(r.plural) && (N.pluralIndex = r.plural), N;
|
|
1856
|
-
}
|
|
1857
|
-
vs();
|
|
1858
|
-
var ya = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_b80bf9f0-2f3c-4e53-a2ba-b548323b3c2b", 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_b80bf9f0-2f3c-4e53-a2ba-b548323b3c2b", 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.1", 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: "1841", ACTIONS_ORCHESTRATION_ID: "6694aacf-bf73-4ca0-ab3b-e87ab8bb3f84.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: "20261012.334.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_b80bf9f0-2f3c-4e53-a2ba-b548323b3c2b", SWIFT_PATH: "/usr/share/swift/usr/bin", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:10766", 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: "39399919117", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "b6a2070d94f6ea3ef3c8cfdd1b108bedea09057e", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.9/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "feedmepos/hrm-service/.github/workflows/publish-hrm-portal-trusted.yml@refs/heads/ma/feat/kdi-5225-team-member-ui", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJhbGciOiJSUzI1NiIsImtpZCI6IjM4ODI2YjE3LTZhMzAtNWY5Yi1iMTY5LThiZWI4MjAyZjcyMyIsInR5cCI6IkpXVCIsIng1dCI6InlrTmFZNHFNX3RhNGsyVGdaT0NFWUxrY1lsQSJ9.eyJJZGVudGl0eVR5cGVDbGFpbSI6IlN5c3RlbTpTZXJ2aWNlSWRlbnRpdHkiLCJhYyI6Ilt7XCJTY29wZVwiOlwicmVmcy9oZWFkcy9tYS9mZWF0L2tkaS01MjI1LXRlYW0tbWVtYmVyLXVpXCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsImF1ZCI6InZzbzo2Zjk2ZmE4OS1iN2JmLTQ4NzgtYmFkMy04OTgwMDY1NjZiNmUiLCJiaWxsaW5nX293bmVyX2lkIjoiRV9rZ0RPQUFKb1lRIiwiZXhwIjoxNzkyNTEwMjE2LCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3ByaW1hcnlzaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9zaWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJpYXQiOjE3OTI0ODgwMTYsImlzcyI6Imh0dHBzOi8vdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJqb2JfaWQiOiJmY2NjZmUwYi05YTc2LTU3MGUtOTdiMy04OWVkMTBiNGQ1ZjUiLCJqb2Jfd29ya2Zsb3dfcmVmIjoiZmVlZG1lcG9zL2FjdGlvbnMvLmdpdGh1Yi93b3JrZmxvd3MvcHVibGlzaC1ucG0tZ2l0aHViLnlhbWxAcmVmcy9oZWFkcy9tYWluIiwiam9iX3dvcmtmbG93X3NoYSI6IjA5Zjc2ZDhhYzVlNmEwNzA3NTQyNzQ5ZTFkNTY4N2JmMWVhZDVmMmMiLCJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJuYmYiOjE3OTI0ODc3MTYsIm9pZGNfZXh0cmEiOiJ7XCJhY3RvclwiOlwiTWlyb29uOTlcIixcImFjdG9yX2lkXCI6XCI2NTYzNzQyMVwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiY2hlY2tfcnVuX2lkXCI6XCIxMTg1NTE3OTIxMzNcIixcImV2ZW50X25hbWVcIjpcIndvcmtmbG93X2Rpc3BhdGNoXCIsXCJoZWFkX3JlZlwiOlwiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvYWN0aW9ucy8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLW5wbS1naXRodWIueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjA5Zjc2ZDhhYzVlNmEwNzA3NTQyNzQ5ZTFkNTY4N2JmMWVhZDVmMmNcIixcInJlZlwiOlwicmVmcy9oZWFkcy9tYS9mZWF0L2tkaS01MjI1LXRlYW0tbWVtYmVyLXVpXCIsXCJyZWZfcHJvdGVjdGVkXCI6XCJmYWxzZVwiLFwicmVmX3R5cGVcIjpcImJyYW5jaFwiLFwicmVwb3NpdG9yeVwiOlwiZmVlZG1lcG9zL2hybS1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X2lkXCI6XCIxMTI0NjcyMjM1XCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJyZXBvc2l0b3J5X3Zpc2liaWxpdHlcIjpcInByaXZhdGVcIixcInJ1bl9hdHRlbXB0XCI6XCIxXCIsXCJydW5faWRcIjpcIjM5Mzk5OTE5MTE3XCIsXCJydW5fbnVtYmVyXCI6XCIyMjNcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwiLFwic2hhXCI6XCJiNmEyMDcwZDk0ZjZlYTNlZjNjOGNmZGQxYjEwOGJlZGVhMDkwNTdlXCIsXCJ3b3JrZmxvd1wiOlwiUHVibGlzaCBocm0tcG9ydGFsXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9ocm0tc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wdWJsaXNoLWhybS1wb3J0YWwtdHJ1c3RlZC55bWxAcmVmcy9oZWFkcy9tYS9mZWF0L2tkaS01MjI1LXRlYW0tbWVtYmVyLXVpXCIsXCJ3b3JrZmxvd19zaGFcIjpcImI2YTIwNzBkOTRmNmVhM2VmM2M4Y2ZkZDFiMTA4YmVkZWEwOTA1N2VcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL2hybS1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL21hL2ZlYXQva2RpLTUyMjUtdGVhbS1tZW1iZXItdWkiLCJvcmNoX2lkIjoiNjY5NGFhY2YtYmY3My00Y2EwLWFiM2ItZTg3YWI4YmIzZjg0LnB1Ymxpc2gucHVibGlzaC5fX2RlZmF1bHQiLCJvd25lcl9pZCI6IkVfa2dET0FBSm9ZUSIsInBsYW5faWQiOiI2Njk0YWFjZi1iZjczLTRjYTAtYWIzYi1lODdhYjhiYjNmODQiLCJyZXBvc2l0b3J5X2lkIjoiMTEyNDY3MjIzNSIsInJlcG9zaXRvcnlfb3duZXJfaWQiOiI1NDgzMTUxNSIsInJlcG9zaXRvcnlfdmlzaWJpbGl0eSI6InByaXZhdGUiLCJydW5faWQiOiIzOTM5OTkxOTExNyIsInJ1bl9udW1iZXIiOiIyMjMiLCJydW5fdHlwZSI6ImZ1bGwiLCJydW5uZXJfaWQiOiIxMDAwMjA5ODAxIiwicnVubmVyX3R5cGUiOiJob3N0ZWQiLCJzY3AiOiJBY3Rpb25zLlJlc3VsdHM6NjY5NGFhY2YtYmY3My00Y2EwLWFiM2ItZTg3YWI4YmIzZjg0OmZjY2NmZTBiLTlhNzYtNTcwZS05N2IzLTg5ZWQxMGI0ZDVmNSBBY3Rpb25zLlJ1bm5lcjo2Njk0YWFjZi1iZjczLTRjYTAtYWIzYi1lODdhYjhiYjNmODQ6ZmNjY2ZlMGItOWE3Ni01NzBlLTk3YjMtODllZDEwYjRkNWY1IEFjdGlvbnMuVXBsb2FkQXJ0aWZhY3RzOjY2OTRhYWNmLWJmNzMtNGNhMC1hYjNiLWU4N2FiOGJiM2Y4NDpmY2NjZmUwYi05YTc2LTU3MGUtOTdiMy04OWVkMTBiNGQ1ZjUgZ2VuZXJhdGVfaWRfdG9rZW46NjY5NGFhY2YtYmY3My00Y2EwLWFiM2ItZTg3YWI4YmIzZjg0OmZjY2NmZTBiLTlhNzYtNTcwZS05N2IzLTg5ZWQxMGI0ZDVmNSBBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsInNoYSI6ImI2YTIwNzBkOTRmNmVhM2VmM2M4Y2ZkZDFiMTA4YmVkZWEwOTA1N2UiLCJ0cnVzdF90aWVyIjoiMSJ9.fHxxsaA9kkoJdwvXaSZejqJF8fvcdr11nNwHah9m_UCtwZhdkIFDHWTxeDZq3V-Y2UxiQGnuBa9VyBtla6qEVr6dny8Ft-PZykAWOa5nhMmCUILiZ-kXiw3rmcF0yRTj_DQeKpIAP4qIfSMF-EnbFjtWRB3WjqFDivuzYLfwvFN-7SQEKRPjCGhcqxDDXRtrQPEfH5AU3Ns0g2mRNSD0_4G2AyaY2LJ9VqRQEPXqqEYrCNj1Cko0D28ppHVQd8tUo6epE69O4tp37bIl7ZOYNPfs8lGzBMYbeO9X_jOOUaUZ_oewbTR2WuE7CeHgmNA7Q6bsOYpHcVSTZu1mKfnEyA", 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_1f0d90f1-6157-4398-9762-88700456fcca", INVOCATION_ID: "f4cd0216aa0a47608d1594ae5a926c84", 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: "223", GITHUB_TRIGGERING_ACTOR: "Miroon99", 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 1000209801", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "ma/feat/kdi-5225-team-member-ui", 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.2-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: "b6a2070d94f6ea3ef3c8cfdd1b108bedea09057e", GITHUB_RUN_ATTEMPT: "1", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/ma/feat/kdi-5225-team-member-ui", GITHUB_ACTOR: "Miroon99", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", VITE_TARGET_ENV: "dev", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_b80bf9f0-2f3c-4e53-a2ba-b548323b3c2b", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", GITHUB_ACTOR_ID: "65637421", RUNNER_WORKSPACE: "/home/runner/work/hrm-service", npm_config_link_workspace_packages: "true", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://run-actions-2-azure-eastus.actions.githubusercontent.com/274//idtoken/6694aacf-bf73-4ca0-ab3b-e87ab8bb3f84/fcccfe0b-9a76-570e-97b3-89ed10b4d5f5?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_b80bf9f0-2f3c-4e53-a2ba-b548323b3c2b", 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_b80bf9f0-2f3c-4e53-a2ba-b548323b3c2b", 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_b80bf9f0-2f3c-4e53-a2ba-b548323b3c2b", INIT_CWD: "/home/runner/work/hrm-service/hrm-service/apps/hrm-portal", NODE_ENV: "production" } };
|
|
1859
|
-
const Ia = "10.0.5";
|
|
1860
|
-
function Ea() {
|
|
1861
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && ($e().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && ($e().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && ($e().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && ($e().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1862
|
-
}
|
|
1863
|
-
const lt = {
|
|
1864
|
-
// composer module errors
|
|
1865
|
-
UNEXPECTED_RETURN_TYPE: Us,
|
|
1866
|
-
// 24
|
|
1867
|
-
// legacy module errors
|
|
1868
|
-
INVALID_ARGUMENT: 25,
|
|
1869
|
-
// i18n module errors
|
|
1870
|
-
MUST_BE_CALL_SETUP_TOP: 26,
|
|
1871
|
-
NOT_INSTALLED: 27,
|
|
1872
|
-
NOT_INSTALLED_WITH_PROVIDE: 31,
|
|
1873
|
-
// unexpected error
|
|
1874
|
-
UNEXPECTED_ERROR: 32
|
|
1875
|
-
};
|
|
1876
|
-
function mt(e, ...t) {
|
|
1877
|
-
return Tt(e, null, void 0);
|
|
1878
|
-
}
|
|
1879
|
-
const xt = /* @__PURE__ */ ze("__translateVNode"), Wt = /* @__PURE__ */ ze("__datetimeParts"), Gt = /* @__PURE__ */ ze("__numberParts"), Ca = ze("__setPluralRules"), sr = /* @__PURE__ */ ze("__injectWithOption"), Zt = /* @__PURE__ */ ze("__dispose");
|
|
1880
|
-
function dt(e) {
|
|
1881
|
-
if (!ee(e))
|
|
1882
|
-
return e;
|
|
1883
|
-
for (const t in e)
|
|
1884
|
-
if (ke(e, t))
|
|
1885
|
-
if (!t.includes("."))
|
|
1886
|
-
ee(e[t]) && dt(e[t]);
|
|
1887
|
-
else {
|
|
1888
|
-
const n = t.split("."), r = n.length - 1;
|
|
1889
|
-
let a = e, o = !1;
|
|
1890
|
-
for (let f = 0; f < r; f++) {
|
|
1891
|
-
if (n[f] in a || (a[n[f]] = se()), !ee(a[n[f]])) {
|
|
1892
|
-
o = !0;
|
|
1893
|
-
break;
|
|
1894
|
-
}
|
|
1895
|
-
a = a[n[f]];
|
|
1896
|
-
}
|
|
1897
|
-
o || (a[n[r]] = e[t], delete e[t]), ee(a[n[r]]) && dt(a[n[r]]);
|
|
1898
|
-
}
|
|
1899
|
-
return e;
|
|
1900
|
-
}
|
|
1901
|
-
function ar(e, t) {
|
|
1902
|
-
const { messages: n, __i18n: r, messageResolver: a, flatJson: o } = t, f = q(n) ? n : be(r) ? se() : { [e]: se() };
|
|
1903
|
-
if (be(r) && r.forEach((d) => {
|
|
1904
|
-
if ("locale" in d && "resource" in d) {
|
|
1905
|
-
const { locale: i, resource: g } = d;
|
|
1906
|
-
i ? (f[i] = f[i] || se(), It(g, f[i])) : It(g, f);
|
|
1907
|
-
} else
|
|
1908
|
-
G(d) && It(JSON.parse(d), f);
|
|
1909
|
-
}), a == null && o)
|
|
1910
|
-
for (const d in f)
|
|
1911
|
-
ke(f, d) && dt(f[d]);
|
|
1912
|
-
return f;
|
|
1913
|
-
}
|
|
1914
|
-
function or(e) {
|
|
1915
|
-
return e.type;
|
|
1916
|
-
}
|
|
1917
|
-
function Na(e, t, n) {
|
|
1918
|
-
let r = ee(t.messages) ? t.messages : se();
|
|
1919
|
-
"__i18nGlobal" in n && (r = ar(e.locale.value, {
|
|
1920
|
-
messages: r,
|
|
1921
|
-
__i18n: n.__i18nGlobal
|
|
1922
|
-
}));
|
|
1923
|
-
const a = Object.keys(r);
|
|
1924
|
-
a.length && a.forEach((o) => {
|
|
1925
|
-
e.mergeLocaleMessage(o, r[o]);
|
|
1926
|
-
});
|
|
1927
|
-
{
|
|
1928
|
-
if (ee(t.datetimeFormats)) {
|
|
1929
|
-
const o = Object.keys(t.datetimeFormats);
|
|
1930
|
-
o.length && o.forEach((f) => {
|
|
1931
|
-
e.mergeDateTimeFormat(f, t.datetimeFormats[f]);
|
|
1932
|
-
});
|
|
1933
|
-
}
|
|
1934
|
-
if (ee(t.numberFormats)) {
|
|
1935
|
-
const o = Object.keys(t.numberFormats);
|
|
1936
|
-
o.length && o.forEach((f) => {
|
|
1937
|
-
e.mergeNumberFormat(f, t.numberFormats[f]);
|
|
1938
|
-
});
|
|
1939
|
-
}
|
|
1940
|
-
}
|
|
1941
|
-
}
|
|
1942
|
-
function Sn(e) {
|
|
1943
|
-
return oe(_r, null, e, 0);
|
|
1944
|
-
}
|
|
1945
|
-
const Ln = "__INTLIFY_META__", kn = () => [], Ta = () => !1;
|
|
1946
|
-
let An = 0;
|
|
1947
|
-
function Rn(e) {
|
|
1948
|
-
return (t, n, r, a) => e(n, r, Bt() || void 0, a);
|
|
1949
|
-
}
|
|
1950
|
-
const Oa = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1951
|
-
const e = Bt();
|
|
1952
|
-
let t = null;
|
|
1953
|
-
return e && (t = or(e)[Ln]) ? { [Ln]: t } : null;
|
|
1954
|
-
};
|
|
1955
|
-
function Sa(e = {}) {
|
|
1956
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, o = an ? st : dr;
|
|
1957
|
-
let f = _e(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1958
|
-
const d = o(
|
|
1959
|
-
// prettier-ignore
|
|
1960
|
-
t && f ? t.locale.value : G(e.locale) ? e.locale : Ct
|
|
1961
|
-
), i = o(
|
|
1962
|
-
// prettier-ignore
|
|
1963
|
-
t && f ? t.fallbackLocale.value : G(e.fallbackLocale) || be(e.fallbackLocale) || q(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : d.value
|
|
1964
|
-
), g = o(ar(d.value, e)), C = o(q(e.datetimeFormats) ? e.datetimeFormats : { [d.value]: {} }), O = o(q(e.numberFormats) ? e.numberFormats : { [d.value]: {} });
|
|
1965
|
-
let N = t ? t.missingWarn : _e(e.missingWarn) || Et(e.missingWarn) ? e.missingWarn : !0, w = t ? t.fallbackWarn : _e(e.fallbackWarn) || Et(e.fallbackWarn) ? e.fallbackWarn : !0, R = t ? t.fallbackRoot : _e(e.fallbackRoot) ? e.fallbackRoot : !0, k = !!e.fallbackFormat, M = ue(e.missing) ? e.missing : null, b = ue(e.missing) ? Rn(e.missing) : null, p = ue(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : _e(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, m = !!e.escapeParameter;
|
|
1966
|
-
const y = t ? t.modifiers : q(e.modifiers) ? e.modifiers : {};
|
|
1967
|
-
let E = e.pluralRules || t && t.pluralRules, v;
|
|
1968
|
-
v = (() => {
|
|
1969
|
-
r && hn(null);
|
|
1970
|
-
const u = {
|
|
1971
|
-
version: Ia,
|
|
1972
|
-
locale: d.value,
|
|
1973
|
-
fallbackLocale: i.value,
|
|
1974
|
-
messages: g.value,
|
|
1975
|
-
modifiers: y,
|
|
1976
|
-
pluralRules: E,
|
|
1977
|
-
missing: b === null ? void 0 : b,
|
|
1978
|
-
missingWarn: N,
|
|
1979
|
-
fallbackWarn: w,
|
|
1980
|
-
fallbackFormat: k,
|
|
1981
|
-
unresolving: !0,
|
|
1982
|
-
postTranslation: p === null ? void 0 : p,
|
|
1983
|
-
warnHtmlMessage: S,
|
|
1984
|
-
escapeParameter: m,
|
|
1985
|
-
messageResolver: e.messageResolver,
|
|
1986
|
-
messageCompiler: e.messageCompiler,
|
|
1987
|
-
__meta: { framework: "vue" }
|
|
1988
|
-
};
|
|
1989
|
-
u.datetimeFormats = C.value, u.numberFormats = O.value, u.__datetimeFormatters = q(v) ? v.__datetimeFormatters : void 0, u.__numberFormatters = q(v) ? v.__numberFormatters : void 0;
|
|
1990
|
-
const I = aa(u);
|
|
1991
|
-
return r && hn(I), I;
|
|
1992
|
-
})(), it(v, d.value, i.value);
|
|
1993
|
-
function L() {
|
|
1994
|
-
return [
|
|
1995
|
-
d.value,
|
|
1996
|
-
i.value,
|
|
1997
|
-
g.value,
|
|
1998
|
-
C.value,
|
|
1999
|
-
O.value
|
|
2000
|
-
];
|
|
2001
|
-
}
|
|
2002
|
-
const H = z({
|
|
2003
|
-
get: () => d.value,
|
|
2004
|
-
set: (u) => {
|
|
2005
|
-
d.value = u, v.locale = d.value;
|
|
2006
|
-
}
|
|
2007
|
-
}), x = z({
|
|
2008
|
-
get: () => i.value,
|
|
2009
|
-
set: (u) => {
|
|
2010
|
-
i.value = u, v.fallbackLocale = i.value, it(v, d.value, u);
|
|
2011
|
-
}
|
|
2012
|
-
}), _ = z(() => g.value), T = /* @__PURE__ */ z(() => C.value), j = /* @__PURE__ */ z(() => O.value);
|
|
2013
|
-
function P() {
|
|
2014
|
-
return ue(p) ? p : null;
|
|
2015
|
-
}
|
|
2016
|
-
function F(u) {
|
|
2017
|
-
p = u, v.postTranslation = u;
|
|
2018
|
-
}
|
|
2019
|
-
function W() {
|
|
2020
|
-
return M;
|
|
2021
|
-
}
|
|
2022
|
-
function V(u) {
|
|
2023
|
-
u !== null && (b = Rn(u)), M = u, v.missing = b;
|
|
2024
|
-
}
|
|
2025
|
-
const Z = (u, I, K, $, me, Ze) => {
|
|
2026
|
-
L();
|
|
2027
|
-
let qe;
|
|
2028
|
-
try {
|
|
2029
|
-
ya.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = t ? sa() : void 0), qe = u(v);
|
|
2030
|
-
} finally {
|
|
2031
|
-
__INTLIFY_PROD_DEVTOOLS__, r || (v.fallbackContext = void 0);
|
|
2032
|
-
}
|
|
2033
|
-
if (K !== "translate exists" && // for not `te` (e.g `t`)
|
|
2034
|
-
he(qe) && qe === Ot || K === "translate exists" && !qe) {
|
|
2035
|
-
const [ur, vo] = I();
|
|
2036
|
-
return t && R ? $(t) : me(ur);
|
|
2037
|
-
} else {
|
|
2038
|
-
if (Ze(qe))
|
|
2039
|
-
return qe;
|
|
2040
|
-
throw mt(lt.UNEXPECTED_RETURN_TYPE);
|
|
2041
|
-
}
|
|
2042
|
-
};
|
|
2043
|
-
function B(...u) {
|
|
2044
|
-
return Z((I) => Reflect.apply(On, null, [I, ...u]), () => Ut(...u), "translate", (I) => Reflect.apply(I.t, I, [...u]), (I) => I, (I) => G(I));
|
|
2045
|
-
}
|
|
2046
|
-
function te(...u) {
|
|
2047
|
-
const [I, K, $] = u;
|
|
2048
|
-
if ($ && !ee($))
|
|
2049
|
-
throw mt(lt.INVALID_ARGUMENT);
|
|
2050
|
-
return B(I, K, ge({ resolvedMessage: !0 }, $ || {}));
|
|
2051
|
-
}
|
|
2052
|
-
function Q(...u) {
|
|
2053
|
-
return Z((I) => Reflect.apply(yn, null, [I, ...u]), () => jt(...u), "datetime format", (I) => Reflect.apply(I.d, I, [...u]), () => vn, (I) => G(I));
|
|
2054
|
-
}
|
|
2055
|
-
function de(...u) {
|
|
2056
|
-
return Z((I) => Reflect.apply(En, null, [I, ...u]), () => Vt(...u), "number format", (I) => Reflect.apply(I.n, I, [...u]), () => vn, (I) => G(I));
|
|
2057
|
-
}
|
|
2058
|
-
function ve(u) {
|
|
2059
|
-
return u.map((I) => G(I) || he(I) || _e(I) ? Sn(String(I)) : I);
|
|
2060
|
-
}
|
|
2061
|
-
const ae = {
|
|
2062
|
-
normalize: ve,
|
|
2063
|
-
interpolate: (u) => u,
|
|
2064
|
-
type: "vnode"
|
|
2065
|
-
};
|
|
2066
|
-
function le(...u) {
|
|
2067
|
-
return Z((I) => {
|
|
2068
|
-
let K;
|
|
2069
|
-
const $ = I;
|
|
2070
|
-
try {
|
|
2071
|
-
$.processor = ae, K = Reflect.apply(On, null, [$, ...u]);
|
|
2072
|
-
} finally {
|
|
2073
|
-
$.processor = null;
|
|
2074
|
-
}
|
|
2075
|
-
return K;
|
|
2076
|
-
}, () => Ut(...u), "translate", (I) => I[xt](...u), (I) => [Sn(I)], (I) => be(I));
|
|
2077
|
-
}
|
|
2078
|
-
function Re(...u) {
|
|
2079
|
-
return Z((I) => Reflect.apply(En, null, [I, ...u]), () => Vt(...u), "number format", (I) => I[Gt](...u), kn, (I) => G(I) || be(I));
|
|
2080
|
-
}
|
|
2081
|
-
function Y(...u) {
|
|
2082
|
-
return Z((I) => Reflect.apply(yn, null, [I, ...u]), () => jt(...u), "datetime format", (I) => I[Wt](...u), kn, (I) => G(I) || be(I));
|
|
2083
|
-
}
|
|
2084
|
-
function fe(u) {
|
|
2085
|
-
E = u, v.pluralRules = E;
|
|
2086
|
-
}
|
|
2087
|
-
function Je(u, I) {
|
|
2088
|
-
return Z(() => {
|
|
2089
|
-
if (!u)
|
|
2090
|
-
return !1;
|
|
2091
|
-
const K = G(I) ? I : d.value, $ = Fe(K), me = v.messageResolver($, u);
|
|
2092
|
-
return ot(me) || Oe(me) || G(me);
|
|
2093
|
-
}, () => [u], "translate exists", (K) => Reflect.apply(K.te, K, [u, I]), Ta, (K) => _e(K));
|
|
2094
|
-
}
|
|
2095
|
-
function Qe(u) {
|
|
2096
|
-
let I = null;
|
|
2097
|
-
const K = Jn(v, i.value, d.value);
|
|
2098
|
-
for (let $ = 0; $ < K.length; $++) {
|
|
2099
|
-
const me = g.value[K[$]] || {}, Ze = v.messageResolver(me, u);
|
|
2100
|
-
if (Ze != null) {
|
|
2101
|
-
I = Ze;
|
|
2102
|
-
break;
|
|
2103
|
-
}
|
|
2104
|
-
}
|
|
2105
|
-
return I;
|
|
2106
|
-
}
|
|
2107
|
-
function We(u) {
|
|
2108
|
-
const I = Qe(u);
|
|
2109
|
-
return I ?? (t ? t.tm(u) || {} : {});
|
|
2110
|
-
}
|
|
2111
|
-
function Fe(u) {
|
|
2112
|
-
return g.value[u] || {};
|
|
2113
|
-
}
|
|
2114
|
-
function Pe(u, I) {
|
|
2115
|
-
if (a) {
|
|
2116
|
-
const K = { [u]: I };
|
|
2117
|
-
for (const $ in K)
|
|
2118
|
-
ke(K, $) && dt(K[$]);
|
|
2119
|
-
I = K[u];
|
|
2120
|
-
}
|
|
2121
|
-
g.value[u] = I, v.messages = g.value;
|
|
2122
|
-
}
|
|
2123
|
-
function Ge(u, I) {
|
|
2124
|
-
g.value[u] = g.value[u] || {};
|
|
2125
|
-
const K = { [u]: I };
|
|
2126
|
-
if (a)
|
|
2127
|
-
for (const $ in K)
|
|
2128
|
-
ke(K, $) && dt(K[$]);
|
|
2129
|
-
I = K[u], It(I, g.value[u]), v.messages = g.value;
|
|
2130
|
-
}
|
|
2131
|
-
function je(u) {
|
|
2132
|
-
return C.value[u] || {};
|
|
2133
|
-
}
|
|
2134
|
-
function l(u, I) {
|
|
2135
|
-
C.value[u] = I, v.datetimeFormats = C.value, In(v, u, I);
|
|
2136
|
-
}
|
|
2137
|
-
function s(u, I) {
|
|
2138
|
-
C.value[u] = ge(C.value[u] || {}, I), v.datetimeFormats = C.value, In(v, u, I);
|
|
2139
|
-
}
|
|
2140
|
-
function c(u) {
|
|
2141
|
-
return O.value[u] || {};
|
|
2142
|
-
}
|
|
2143
|
-
function h(u, I) {
|
|
2144
|
-
O.value[u] = I, v.numberFormats = O.value, Cn(v, u, I);
|
|
2145
|
-
}
|
|
2146
|
-
function D(u, I) {
|
|
2147
|
-
O.value[u] = ge(O.value[u] || {}, I), v.numberFormats = O.value, Cn(v, u, I);
|
|
2148
|
-
}
|
|
2149
|
-
An++, t && an && (wt(t.locale, (u) => {
|
|
2150
|
-
f && (d.value = u, v.locale = u, it(v, d.value, i.value));
|
|
2151
|
-
}), wt(t.fallbackLocale, (u) => {
|
|
2152
|
-
f && (i.value = u, v.fallbackLocale = u, it(v, d.value, i.value));
|
|
2153
|
-
}));
|
|
2154
|
-
const U = {
|
|
2155
|
-
id: An,
|
|
2156
|
-
locale: H,
|
|
2157
|
-
fallbackLocale: x,
|
|
2158
|
-
get inheritLocale() {
|
|
2159
|
-
return f;
|
|
2160
|
-
},
|
|
2161
|
-
set inheritLocale(u) {
|
|
2162
|
-
f = u, u && t && (d.value = t.locale.value, i.value = t.fallbackLocale.value, it(v, d.value, i.value));
|
|
2163
|
-
},
|
|
2164
|
-
get availableLocales() {
|
|
2165
|
-
return Object.keys(g.value).sort();
|
|
2166
|
-
},
|
|
2167
|
-
messages: _,
|
|
2168
|
-
get modifiers() {
|
|
2169
|
-
return y;
|
|
2170
|
-
},
|
|
2171
|
-
get pluralRules() {
|
|
2172
|
-
return E || {};
|
|
2173
|
-
},
|
|
2174
|
-
get isGlobal() {
|
|
2175
|
-
return r;
|
|
2176
|
-
},
|
|
2177
|
-
get missingWarn() {
|
|
2178
|
-
return N;
|
|
2179
|
-
},
|
|
2180
|
-
set missingWarn(u) {
|
|
2181
|
-
N = u, v.missingWarn = N;
|
|
2182
|
-
},
|
|
2183
|
-
get fallbackWarn() {
|
|
2184
|
-
return w;
|
|
2185
|
-
},
|
|
2186
|
-
set fallbackWarn(u) {
|
|
2187
|
-
w = u, v.fallbackWarn = w;
|
|
2188
|
-
},
|
|
2189
|
-
get fallbackRoot() {
|
|
2190
|
-
return R;
|
|
2191
|
-
},
|
|
2192
|
-
set fallbackRoot(u) {
|
|
2193
|
-
R = u;
|
|
2194
|
-
},
|
|
2195
|
-
get fallbackFormat() {
|
|
2196
|
-
return k;
|
|
2197
|
-
},
|
|
2198
|
-
set fallbackFormat(u) {
|
|
2199
|
-
k = u, v.fallbackFormat = k;
|
|
2200
|
-
},
|
|
2201
|
-
get warnHtmlMessage() {
|
|
2202
|
-
return S;
|
|
2203
|
-
},
|
|
2204
|
-
set warnHtmlMessage(u) {
|
|
2205
|
-
S = u, v.warnHtmlMessage = u;
|
|
2206
|
-
},
|
|
2207
|
-
get escapeParameter() {
|
|
2208
|
-
return m;
|
|
2209
|
-
},
|
|
2210
|
-
set escapeParameter(u) {
|
|
2211
|
-
m = u, v.escapeParameter = u;
|
|
2212
|
-
},
|
|
2213
|
-
t: B,
|
|
2214
|
-
getLocaleMessage: Fe,
|
|
2215
|
-
setLocaleMessage: Pe,
|
|
2216
|
-
mergeLocaleMessage: Ge,
|
|
2217
|
-
getPostTranslationHandler: P,
|
|
2218
|
-
setPostTranslationHandler: F,
|
|
2219
|
-
getMissingHandler: W,
|
|
2220
|
-
setMissingHandler: V,
|
|
2221
|
-
[Ca]: fe
|
|
2222
|
-
};
|
|
2223
|
-
return U.datetimeFormats = T, U.numberFormats = j, U.rt = te, U.te = Je, U.tm = We, U.d = Q, U.n = de, U.getDateTimeFormat = je, U.setDateTimeFormat = l, U.mergeDateTimeFormat = s, U.getNumberFormat = c, U.setNumberFormat = h, U.mergeNumberFormat = D, U[sr] = n, U[xt] = le, U[Wt] = Y, U[Gt] = Re, U;
|
|
2224
|
-
}
|
|
2225
|
-
const qt = {
|
|
2226
|
-
tag: {
|
|
2227
|
-
type: [String, Object]
|
|
2228
|
-
},
|
|
2229
|
-
locale: {
|
|
2230
|
-
type: String
|
|
2231
|
-
},
|
|
2232
|
-
scope: {
|
|
2233
|
-
type: String,
|
|
2234
|
-
// NOTE: avoid https://github.com/microsoft/rushstack/issues/1050
|
|
2235
|
-
validator: (e) => e === "parent" || e === "global",
|
|
2236
|
-
default: "parent"
|
|
2237
|
-
/* ComponentI18nScope */
|
|
2238
|
-
},
|
|
2239
|
-
i18n: {
|
|
2240
|
-
type: Object
|
|
2241
|
-
}
|
|
2242
|
-
};
|
|
2243
|
-
function La({ slots: e }, t) {
|
|
2244
|
-
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, a) => [
|
|
2245
|
-
...r,
|
|
2246
|
-
// prettier-ignore
|
|
2247
|
-
...a.type === we ? a.children : [a]
|
|
2248
|
-
], []) : t.reduce((n, r) => {
|
|
2249
|
-
const a = e[r];
|
|
2250
|
-
return a && (n[r] = a()), n;
|
|
2251
|
-
}, se());
|
|
2252
|
-
}
|
|
2253
|
-
function lr() {
|
|
2254
|
-
return we;
|
|
2255
|
-
}
|
|
2256
|
-
ge({
|
|
2257
|
-
keypath: {
|
|
2258
|
-
type: String,
|
|
2259
|
-
required: !0
|
|
2260
|
-
},
|
|
2261
|
-
plural: {
|
|
2262
|
-
type: [Number, String],
|
|
2263
|
-
validator: (e) => he(e) || !isNaN(e)
|
|
2264
|
-
}
|
|
2265
|
-
}, qt);
|
|
2266
|
-
function ka(e) {
|
|
2267
|
-
return be(e) && !G(e[0]);
|
|
2268
|
-
}
|
|
2269
|
-
function ir(e, t, n, r) {
|
|
2270
|
-
const { slots: a, attrs: o } = t;
|
|
2271
|
-
return () => {
|
|
2272
|
-
const f = { part: !0 };
|
|
2273
|
-
let d = se();
|
|
2274
|
-
e.locale && (f.locale = e.locale), G(e.format) ? f.key = e.format : ee(e.format) && (G(e.format.key) && (f.key = e.format.key), d = Object.keys(e.format).reduce((N, w) => n.includes(w) ? ge(se(), N, { [w]: e.format[w] }) : N, se()));
|
|
2275
|
-
const i = r(e.value, f, d);
|
|
2276
|
-
let g = [f.key];
|
|
2277
|
-
be(i) ? g = i.map((N, w) => {
|
|
2278
|
-
const R = a[N.type], k = R ? R({ [N.type]: N.value, index: w, parts: i }) : [N.value];
|
|
2279
|
-
return ka(k) && (k[0].key = `${N.type}-${w}`), k;
|
|
2280
|
-
}) : G(i) && (g = [i]);
|
|
2281
|
-
const C = ge(se(), o), O = G(e.tag) || ee(e.tag) ? e.tag : lr();
|
|
2282
|
-
return Wn(O, C, g);
|
|
2283
|
-
};
|
|
2284
|
-
}
|
|
2285
|
-
ge({
|
|
2286
|
-
value: {
|
|
2287
|
-
type: Number,
|
|
2288
|
-
required: !0
|
|
2289
|
-
},
|
|
2290
|
-
format: {
|
|
2291
|
-
type: [String, Object]
|
|
2292
|
-
}
|
|
2293
|
-
}, qt);
|
|
2294
|
-
ge({
|
|
2295
|
-
value: {
|
|
2296
|
-
type: [Number, Date],
|
|
2297
|
-
required: !0
|
|
2298
|
-
},
|
|
2299
|
-
format: {
|
|
2300
|
-
type: [String, Object]
|
|
2301
|
-
}
|
|
2302
|
-
}, qt);
|
|
2303
|
-
const Aa = /* @__PURE__ */ ze("global-vue-i18n");
|
|
2304
|
-
function St(e = {}) {
|
|
2305
|
-
const t = Bt();
|
|
2306
|
-
if (t == null)
|
|
2307
|
-
throw mt(lt.MUST_BE_CALL_SETUP_TOP);
|
|
2308
|
-
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2309
|
-
throw mt(lt.NOT_INSTALLED);
|
|
2310
|
-
const n = Ra(t), r = wa(n), a = or(t), o = Ma(e, a);
|
|
2311
|
-
if (o === "global")
|
|
2312
|
-
return Na(r, e, a), r;
|
|
2313
|
-
if (o === "parent") {
|
|
2314
|
-
let i = Da(n, t, e.__useComponent);
|
|
2315
|
-
return i == null && (i = r), i;
|
|
2316
|
-
}
|
|
2317
|
-
const f = n;
|
|
2318
|
-
let d = f.__getInstance(t);
|
|
2319
|
-
if (d == null) {
|
|
2320
|
-
const i = ge({}, e);
|
|
2321
|
-
"__i18n" in a && (i.__i18n = a.__i18n), r && (i.__root = r), d = Sa(i), f.__composerExtend && (d[Zt] = f.__composerExtend(d)), Pa(f, t, d), f.__setInstance(t, d);
|
|
2322
|
-
}
|
|
2323
|
-
return d;
|
|
2324
|
-
}
|
|
2325
|
-
function Ra(e) {
|
|
2326
|
-
const t = mr(e.isCE ? Aa : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2327
|
-
if (!t)
|
|
2328
|
-
throw mt(e.isCE ? lt.NOT_INSTALLED_WITH_PROVIDE : lt.UNEXPECTED_ERROR);
|
|
2329
|
-
return t;
|
|
2330
|
-
}
|
|
2331
|
-
function Ma(e, t) {
|
|
2332
|
-
return Nt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2333
|
-
}
|
|
2334
|
-
function wa(e) {
|
|
2335
|
-
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2336
|
-
}
|
|
2337
|
-
function Da(e, t, n = !1) {
|
|
2338
|
-
let r = null;
|
|
2339
|
-
const a = t.root;
|
|
2340
|
-
let o = Fa(t, n);
|
|
2341
|
-
for (; o != null; ) {
|
|
2342
|
-
const f = e;
|
|
2343
|
-
if (e.mode === "composition")
|
|
2344
|
-
r = f.__getInstance(o);
|
|
2345
|
-
else if (__VUE_I18N_LEGACY_API__) {
|
|
2346
|
-
const d = f.__getInstance(o);
|
|
2347
|
-
d != null && (r = d.__composer, n && r && !r[sr] && (r = null));
|
|
2348
|
-
}
|
|
2349
|
-
if (r != null || a === o)
|
|
2350
|
-
break;
|
|
2351
|
-
o = o.parent;
|
|
2352
|
-
}
|
|
2353
|
-
return r;
|
|
2354
|
-
}
|
|
2355
|
-
function Fa(e, t = !1) {
|
|
2356
|
-
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2357
|
-
}
|
|
2358
|
-
function Pa(e, t, n) {
|
|
2359
|
-
xn(() => {
|
|
2360
|
-
}, t), fr(() => {
|
|
2361
|
-
const r = n;
|
|
2362
|
-
e.__deleteInstance(t);
|
|
2363
|
-
const a = r[Zt];
|
|
2364
|
-
a && (a(), delete r[Zt]);
|
|
2365
|
-
}, t);
|
|
2366
|
-
}
|
|
2367
|
-
Ea();
|
|
2368
|
-
qs(Ds);
|
|
2369
|
-
ea(Ks);
|
|
2370
|
-
ta(Jn);
|
|
2371
|
-
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2372
|
-
const e = $e();
|
|
2373
|
-
e.__INTLIFY__ = !0, Fs(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2374
|
-
}
|
|
2375
|
-
const vt = /* @__PURE__ */ Ae({
|
|
2376
|
-
__name: "InheritPermissionTooltip",
|
|
2377
|
-
props: {
|
|
2378
|
-
item: {
|
|
2379
|
-
type: Object,
|
|
2380
|
-
required: !0
|
|
2381
|
-
}
|
|
2382
|
-
},
|
|
2383
|
-
setup(e) {
|
|
2384
|
-
const { t } = St();
|
|
2385
|
-
return (n, r) => {
|
|
2386
|
-
const a = De("FmIcon"), o = De("FmTooltip");
|
|
2387
|
-
return J(), Te(o, {
|
|
2388
|
-
variant: "plain",
|
|
2389
|
-
placement: "right",
|
|
2390
|
-
"z-index": 50
|
|
2391
|
-
}, {
|
|
2392
|
-
content: ce(() => [
|
|
2393
|
-
ie("div", null, Se(X(t)("team.memberForm.permissions.inherited")), 1),
|
|
2394
|
-
(J(!0), re(we, null, Ce(e.item.setNames, (f) => (J(), re("div", { key: f }, [
|
|
2395
|
-
ie("div", null, "- " + Se(f), 1)
|
|
2396
|
-
]))), 128))
|
|
2397
|
-
]),
|
|
2398
|
-
default: ce(() => [
|
|
2399
|
-
oe(a, {
|
|
2400
|
-
name: "admin_panel_settings",
|
|
2401
|
-
size: "sm",
|
|
2402
|
-
class: "ml-1 text-fm-color-typo-info"
|
|
2403
|
-
})
|
|
2404
|
-
]),
|
|
2405
|
-
_: 1
|
|
2406
|
-
});
|
|
2407
|
-
};
|
|
2408
|
-
}
|
|
2409
|
-
});
|
|
2410
|
-
function Mn(e, t, n) {
|
|
2411
|
-
const r = n.filter((d) => d !== "manage");
|
|
2412
|
-
if (r.length === 0) return;
|
|
2413
|
-
const a = e.findIndex((d) => d.subject === t && !d.inverted);
|
|
2414
|
-
if (a < 0) return;
|
|
2415
|
-
const o = new Set(e[a].actions), f = r.every((d) => o.has(d));
|
|
2416
|
-
f && !o.has("manage") ? (o.add("manage"), e[a] = {
|
|
2417
|
-
...e[a],
|
|
2418
|
-
actions: Array.from(o)
|
|
2419
|
-
}) : !f && o.has("manage") && (o.delete("manage"), o.size === 0 ? e.splice(a, 1) : e[a] = {
|
|
2420
|
-
...e[a],
|
|
2421
|
-
actions: Array.from(o)
|
|
2422
|
-
});
|
|
2423
|
-
}
|
|
2424
|
-
const wn = Object.values(Lr), ja = {
|
|
2425
|
-
read: "View",
|
|
2426
|
-
create: "Duplicate",
|
|
2427
|
-
update: "Edit"
|
|
2428
|
-
};
|
|
2429
|
-
function Va(e, t, n, r) {
|
|
2430
|
-
const { t: a } = Ke(), { getFlagValue: o, getFlag: f } = Sr(), d = z(() => {
|
|
2431
|
-
var F;
|
|
2432
|
-
const _ = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map();
|
|
2433
|
-
for (const W of t.value) {
|
|
2434
|
-
const V = W.category;
|
|
2435
|
-
if (!V) continue;
|
|
2436
|
-
const Z = W.subject;
|
|
2437
|
-
if (n.value.includes(W.subject) || W.showByFeatureFlag && ((F = f(W.showByFeatureFlag)) == null ? void 0 : F.enabled) === !1 && o(W.showByFeatureFlag) === "true")
|
|
2438
|
-
continue;
|
|
2439
|
-
_.has(V) || _.set(V, []);
|
|
2440
|
-
const B = j.get(Z) ?? 0;
|
|
2441
|
-
j.set(Z, B + 1), _.get(V).push({
|
|
2442
|
-
label: a(`permissionSet.permissionLabels.${Z}`, W.label),
|
|
2443
|
-
value: Z,
|
|
2444
|
-
optionKey: `${Z}::${B}`
|
|
2445
|
-
}), T.has(Z) || T.set(Z, W);
|
|
2446
|
-
}
|
|
2447
|
-
return [..._.keys()].sort((W, V) => {
|
|
2448
|
-
const Z = wn.indexOf(W), B = wn.indexOf(V);
|
|
2449
|
-
return Z === -1 && B === -1 ? W.localeCompare(V) : Z === -1 ? 1 : B === -1 ? -1 : Z - B;
|
|
2450
|
-
}).map((W) => {
|
|
2451
|
-
const V = _.get(W), Z = a(`permissionSet.categoryLabels.${W}`, W), B = /* @__PURE__ */ new Map();
|
|
2452
|
-
for (const Y of V) {
|
|
2453
|
-
const fe = T.get(Y.value);
|
|
2454
|
-
fe && B.set(Y.value, fe.actions);
|
|
2455
|
-
}
|
|
2456
|
-
const te = V.some((Y) => {
|
|
2457
|
-
const fe = B.get(Y.value);
|
|
2458
|
-
return fe && fe.length > 1;
|
|
2459
|
-
}), Q = te ? [
|
|
2460
|
-
...new Set(
|
|
2461
|
-
V.flatMap((Y) => B.get(Y.value) ?? []).filter((Y) => Y !== "manage")
|
|
2462
|
-
)
|
|
2463
|
-
] : [], de = /* @__PURE__ */ new Map();
|
|
2464
|
-
for (const Y of e.value)
|
|
2465
|
-
V.some((fe) => fe.value === Y.subject) && !Y.inverted && de.set(Y.subject, new Set(Y.actions));
|
|
2466
|
-
const ve = te ? e.value.filter(
|
|
2467
|
-
(Y) => V.some((fe) => fe.value === Y.subject) && !Y.inverted && Y.actions.includes("manage")
|
|
2468
|
-
).map((Y) => Y.subject) : e.value.filter((Y) => V.some((fe) => fe.value === Y.subject) && !Y.inverted).map((Y) => Y.subject), pe = V.find((Y) => {
|
|
2469
|
-
var fe;
|
|
2470
|
-
return (fe = T.get(Y.value)) == null ? void 0 : fe.isCategoryCover;
|
|
2471
|
-
}), ae = (pe == null ? void 0 : pe.value) ?? null, le = ae ? de.get(ae) ?? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(), Re = le.has("manage");
|
|
2472
|
-
return {
|
|
2473
|
-
category: W,
|
|
2474
|
-
label: Z,
|
|
2475
|
-
options: V,
|
|
2476
|
-
selectedSubjects: ve,
|
|
2477
|
-
isMultiAction: te,
|
|
2478
|
-
actionColumns: Q,
|
|
2479
|
-
permissionActionsMap: B,
|
|
2480
|
-
selectedActionsMap: de,
|
|
2481
|
-
coverSubject: ae,
|
|
2482
|
-
coverSelectedActions: le,
|
|
2483
|
-
coverCoversAll: Re
|
|
2484
|
-
};
|
|
2485
|
-
});
|
|
2486
|
-
});
|
|
2487
|
-
function i(_, T) {
|
|
2488
|
-
const j = d.value.find((Q) => Q.category === _), P = (j == null ? void 0 : j.options) ?? [], F = new Set(P.map((Q) => Q.value)), W = new Set(T), V = /* @__PURE__ */ new Map();
|
|
2489
|
-
for (const Q of e.value)
|
|
2490
|
-
F.has(Q.subject) && !Q.inverted && V.set(Q.subject, Q.conditions);
|
|
2491
|
-
const Z = j != null && j.coverSubject ? V.get(j.coverSubject) : void 0, B = /* @__PURE__ */ new Set(), te = t.value.flatMap(
|
|
2492
|
-
({ category: Q, showByFeatureFlag: de, isCategoryCover: ve, ...pe }) => {
|
|
2493
|
-
const ae = pe.subject;
|
|
2494
|
-
if (!W.has(ae) || B.has(ae)) return [];
|
|
2495
|
-
B.add(ae);
|
|
2496
|
-
let le;
|
|
2497
|
-
return V.has(ae) ? le = V.get(ae) : j != null && j.coverSubject && ae !== j.coverSubject && (le = Z), [
|
|
2498
|
-
{ ...pe, ...le !== void 0 && { conditions: le } }
|
|
2499
|
-
];
|
|
2500
|
-
}
|
|
2501
|
-
);
|
|
2502
|
-
r("update:model-value", [
|
|
2503
|
-
...e.value.filter((Q) => !F.has(Q.subject)),
|
|
2504
|
-
...te
|
|
2505
|
-
]);
|
|
2506
|
-
}
|
|
2507
|
-
function g(_, T) {
|
|
2508
|
-
return w(_, T) || m(_, T);
|
|
2509
|
-
}
|
|
2510
|
-
function C(_) {
|
|
2511
|
-
return _.options.length > 0 && _.options.every((T) => g(_, T.value));
|
|
2512
|
-
}
|
|
2513
|
-
function O(_) {
|
|
2514
|
-
return _.options.length === 0 || C(_) ? !1 : _.options.some(
|
|
2515
|
-
(T) => g(_, T.value) || R(_, T.value).length > 0
|
|
2516
|
-
);
|
|
2517
|
-
}
|
|
2518
|
-
function N(_) {
|
|
2519
|
-
const T = new Set(_.options.map((P) => P.value)), j = e.value.filter((P) => !T.has(P.subject));
|
|
2520
|
-
if (C(_))
|
|
2521
|
-
r("update:model-value", j);
|
|
2522
|
-
else {
|
|
2523
|
-
const P = /* @__PURE__ */ new Map();
|
|
2524
|
-
for (const Z of e.value)
|
|
2525
|
-
T.has(Z.subject) && !Z.inverted && P.set(Z.subject, Z.conditions);
|
|
2526
|
-
const F = _.coverSubject ? P.get(_.coverSubject) : void 0, W = /* @__PURE__ */ new Set(), V = t.value.flatMap(
|
|
2527
|
-
({ category: Z, showByFeatureFlag: B, isCategoryCover: te, ...Q }) => {
|
|
2528
|
-
const de = Q.subject;
|
|
2529
|
-
if (!T.has(de) || W.has(de)) return [];
|
|
2530
|
-
W.add(de);
|
|
2531
|
-
let ve;
|
|
2532
|
-
return P.has(de) ? ve = P.get(de) : _.coverSubject && de !== _.coverSubject && (ve = F), [
|
|
2533
|
-
{ ...Q, ...ve !== void 0 && { conditions: ve } }
|
|
2534
|
-
];
|
|
2535
|
-
}
|
|
2536
|
-
);
|
|
2537
|
-
r("update:model-value", [...j, ...V]);
|
|
2538
|
-
}
|
|
2539
|
-
}
|
|
2540
|
-
function w(_, T) {
|
|
2541
|
-
const j = _.selectedActionsMap.get(T);
|
|
2542
|
-
return j ? j.has("manage") : !1;
|
|
2543
|
-
}
|
|
2544
|
-
function R(_, T) {
|
|
2545
|
-
const j = _.permissionActionsMap.get(T);
|
|
2546
|
-
return j ? j.filter((F) => F !== "manage").filter(
|
|
2547
|
-
(F) => S(_, T, F) || y(_, T, F)
|
|
2548
|
-
) : [];
|
|
2549
|
-
}
|
|
2550
|
-
function k(_, T) {
|
|
2551
|
-
return m(_, T) ? !1 : !w(_, T) && R(_, T).length > 0;
|
|
2552
|
-
}
|
|
2553
|
-
function M(_, T) {
|
|
2554
|
-
if (!_.coverSubject || T === _.coverSubject) return;
|
|
2555
|
-
const j = e.value.find(
|
|
2556
|
-
(P) => !P.inverted && P.subject === _.coverSubject
|
|
2557
|
-
);
|
|
2558
|
-
return (j == null ? void 0 : j.conditions) || void 0;
|
|
2559
|
-
}
|
|
2560
|
-
function b(_, T, j) {
|
|
2561
|
-
if (j) {
|
|
2562
|
-
const P = t.value.find((Q) => Q.subject === T);
|
|
2563
|
-
if (!P) return;
|
|
2564
|
-
const {
|
|
2565
|
-
category: F,
|
|
2566
|
-
showByFeatureFlag: W,
|
|
2567
|
-
isCategoryCover: V,
|
|
2568
|
-
...Z
|
|
2569
|
-
} = P, B = M(_, T), te = e.value.filter((Q) => Q.subject !== T);
|
|
2570
|
-
te.push({
|
|
2571
|
-
...Z,
|
|
2572
|
-
...B !== void 0 && { conditions: B }
|
|
2573
|
-
}), r("update:model-value", te);
|
|
2574
|
-
} else
|
|
2575
|
-
r(
|
|
2576
|
-
"update:model-value",
|
|
2577
|
-
e.value.filter((P) => P.subject !== T)
|
|
2578
|
-
);
|
|
2579
|
-
}
|
|
2580
|
-
function p(_, T) {
|
|
2581
|
-
const j = _.permissionActionsMap.get(T);
|
|
2582
|
-
return j ? j.some((P) => P !== "manage") : !1;
|
|
2583
|
-
}
|
|
2584
|
-
function S(_, T, j) {
|
|
2585
|
-
const P = _.selectedActionsMap.get(T);
|
|
2586
|
-
return P ? P.has(j) : !1;
|
|
2587
|
-
}
|
|
2588
|
-
function m(_, T) {
|
|
2589
|
-
return !_.coverSubject || T === _.coverSubject ? !1 : _.coverCoversAll;
|
|
2590
|
-
}
|
|
2591
|
-
function y(_, T, j) {
|
|
2592
|
-
return !_.coverSubject || T === _.coverSubject ? !1 : _.coverCoversAll ? !0 : _.coverSelectedActions.has(j);
|
|
2593
|
-
}
|
|
2594
|
-
function E(_, T, j) {
|
|
2595
|
-
const P = _.permissionActionsMap.get(T);
|
|
2596
|
-
return P ? P.includes(j) : !1;
|
|
2597
|
-
}
|
|
2598
|
-
function v(_, T, j) {
|
|
2599
|
-
const P = [...e.value], F = P.findIndex((V) => V.subject === _ && !V.inverted);
|
|
2600
|
-
if (j)
|
|
2601
|
-
if (F >= 0) {
|
|
2602
|
-
const V = { ...P[F] }, Z = new Set(V.actions);
|
|
2603
|
-
Z.add(T), V.actions = Array.from(Z), P[F] = V;
|
|
2604
|
-
} else {
|
|
2605
|
-
const V = t.value.find((pe) => pe.subject === _);
|
|
2606
|
-
if (!V) return;
|
|
2607
|
-
const {
|
|
2608
|
-
category: Z,
|
|
2609
|
-
showByFeatureFlag: B,
|
|
2610
|
-
isCategoryCover: te,
|
|
2611
|
-
...Q
|
|
2612
|
-
} = V, de = d.value.find(
|
|
2613
|
-
(pe) => pe.options.some((ae) => ae.value === _)
|
|
2614
|
-
), ve = de ? M(de, _) : void 0;
|
|
2615
|
-
P.push({
|
|
2616
|
-
...Q,
|
|
2617
|
-
actions: [T],
|
|
2618
|
-
...ve !== void 0 && { conditions: ve }
|
|
2619
|
-
});
|
|
2620
|
-
}
|
|
2621
|
-
else if (F >= 0) {
|
|
2622
|
-
const V = { ...P[F] }, Z = V.actions.filter((B) => B !== T);
|
|
2623
|
-
Z.length === 0 ? P.splice(F, 1) : (V.actions = Z, P[F] = V);
|
|
2624
|
-
}
|
|
2625
|
-
const W = t.value.find((V) => V.subject === _);
|
|
2626
|
-
W && Mn(P, _, W.actions), r("update:model-value", P);
|
|
2627
|
-
}
|
|
2628
|
-
function A(_, T) {
|
|
2629
|
-
const j = _.options.filter(
|
|
2630
|
-
(P) => E(_, P.value, T)
|
|
2631
|
-
);
|
|
2632
|
-
return j.length === 0 ? !1 : j.every(
|
|
2633
|
-
(P) => S(_, P.value, T) || y(_, P.value, T)
|
|
2634
|
-
);
|
|
2635
|
-
}
|
|
2636
|
-
function L(_, T) {
|
|
2637
|
-
const j = _.options.filter(
|
|
2638
|
-
(F) => E(_, F.value, T)
|
|
2639
|
-
);
|
|
2640
|
-
if (j.length === 0) return !1;
|
|
2641
|
-
const P = j.filter(
|
|
2642
|
-
(F) => S(_, F.value, T) || y(_, F.value, T)
|
|
2643
|
-
).length;
|
|
2644
|
-
return P > 0 && P < j.length;
|
|
2645
|
-
}
|
|
2646
|
-
function H(_, T, j) {
|
|
2647
|
-
const P = [...e.value];
|
|
2648
|
-
for (const F of _.options) {
|
|
2649
|
-
if (!E(_, F.value, T)) continue;
|
|
2650
|
-
const W = F.value, V = P.findIndex(
|
|
2651
|
-
(B) => B.subject === W && !B.inverted
|
|
2652
|
-
);
|
|
2653
|
-
if (j)
|
|
2654
|
-
if (V >= 0) {
|
|
2655
|
-
const B = { ...P[V] }, te = new Set(B.actions);
|
|
2656
|
-
te.add(T), B.actions = Array.from(te), P[V] = B;
|
|
2657
|
-
} else {
|
|
2658
|
-
const B = t.value.find((ae) => ae.subject === W);
|
|
2659
|
-
if (!B) continue;
|
|
2660
|
-
const {
|
|
2661
|
-
category: te,
|
|
2662
|
-
showByFeatureFlag: Q,
|
|
2663
|
-
isCategoryCover: de,
|
|
2664
|
-
...ve
|
|
2665
|
-
} = B, pe = M(_, W);
|
|
2666
|
-
P.push({
|
|
2667
|
-
...ve,
|
|
2668
|
-
actions: [T],
|
|
2669
|
-
...pe !== void 0 && { conditions: pe }
|
|
2670
|
-
});
|
|
2671
|
-
}
|
|
2672
|
-
else if (V >= 0) {
|
|
2673
|
-
const B = { ...P[V] }, te = B.actions.filter((Q) => Q !== T);
|
|
2674
|
-
te.length === 0 ? P.splice(V, 1) : (B.actions = te, P[V] = B);
|
|
2675
|
-
}
|
|
2676
|
-
const Z = t.value.find((B) => B.subject === W);
|
|
2677
|
-
Z && Mn(P, W, Z.actions);
|
|
2678
|
-
}
|
|
2679
|
-
r("update:model-value", P);
|
|
2680
|
-
}
|
|
2681
|
-
function x(_) {
|
|
2682
|
-
const T = `permissionSet.actionLabels.${_}`, j = ja[_] ?? _.charAt(0).toUpperCase() + _.slice(1);
|
|
2683
|
-
return a(T, j);
|
|
2684
|
-
}
|
|
2685
|
-
return {
|
|
2686
|
-
categoryGroups: d,
|
|
2687
|
-
toggleCategory: i,
|
|
2688
|
-
isAllManageChecked: C,
|
|
2689
|
-
isAllManageIndeterminate: O,
|
|
2690
|
-
toggleAllManage: N,
|
|
2691
|
-
isManageChecked: w,
|
|
2692
|
-
isManageIndeterminate: k,
|
|
2693
|
-
toggleManage: b,
|
|
2694
|
-
hasNonManageActions: p,
|
|
2695
|
-
isActionChecked: S,
|
|
2696
|
-
isRowFullyCoveredByCover: m,
|
|
2697
|
-
isActionCoveredByCover: y,
|
|
2698
|
-
permissionDefinesAction: E,
|
|
2699
|
-
toggleAction: v,
|
|
2700
|
-
isAllActionChecked: A,
|
|
2701
|
-
isAllActionIndeterminate: L,
|
|
2702
|
-
toggleAllAction: H,
|
|
2703
|
-
actionLabel: x
|
|
2704
|
-
};
|
|
2705
|
-
}
|
|
2706
|
-
const Ua = { class: "flex flex-col gap-16" }, xa = { class: "mt-16" }, Wa = { class: "text-center text-sm font-semibold text-fm-color-typo-primary" }, Ga = ["onClick"], Za = { class: "flex justify-center" }, Ya = { class: "flex items-center min-w-0 gap-8" }, Ba = ["title", "onClick"], Xa = { class: "flex justify-center" }, Ha = /* @__PURE__ */ Ae({
|
|
2707
|
-
__name: "BasePermission",
|
|
2708
|
-
props: {
|
|
2709
|
-
modelValue: {
|
|
2710
|
-
type: Array,
|
|
2711
|
-
required: !0
|
|
2712
|
-
},
|
|
2713
|
-
disable: {
|
|
2714
|
-
type: Boolean,
|
|
2715
|
-
default: !1
|
|
2716
|
-
},
|
|
2717
|
-
excludedSubjects: {
|
|
2718
|
-
type: Array,
|
|
2719
|
-
required: !0
|
|
2720
|
-
},
|
|
2721
|
-
additionalPermissions: {
|
|
2722
|
-
type: Array,
|
|
2723
|
-
default: () => []
|
|
2724
|
-
},
|
|
2725
|
-
/** 'leading': the member sheet's layout, collapsed with the count under each category. */
|
|
2726
|
-
layout: {
|
|
2727
|
-
type: String,
|
|
2728
|
-
default: "trailing"
|
|
2729
|
-
}
|
|
2730
|
-
},
|
|
2731
|
-
emits: ["update:model-value"],
|
|
2732
|
-
setup(e, { emit: t }) {
|
|
2733
|
-
const n = e, r = t, { t: a } = Ke(), o = z(() => [...Gn, ...n.additionalPermissions]), {
|
|
2734
|
-
categoryGroups: f,
|
|
2735
|
-
isAllManageChecked: d,
|
|
2736
|
-
isAllManageIndeterminate: i,
|
|
2737
|
-
toggleAllManage: g,
|
|
2738
|
-
isManageChecked: C,
|
|
2739
|
-
isManageIndeterminate: O,
|
|
2740
|
-
toggleManage: N,
|
|
2741
|
-
isActionChecked: w,
|
|
2742
|
-
isRowFullyCoveredByCover: R,
|
|
2743
|
-
isActionCoveredByCover: k,
|
|
2744
|
-
permissionDefinesAction: M,
|
|
2745
|
-
toggleAction: b,
|
|
2746
|
-
isAllActionChecked: p,
|
|
2747
|
-
isAllActionIndeterminate: S,
|
|
2748
|
-
toggleAllAction: m,
|
|
2749
|
-
actionLabel: y
|
|
2750
|
-
} = Va(
|
|
2751
|
-
en(n, "modelValue"),
|
|
2752
|
-
o,
|
|
2753
|
-
en(n, "excludedSubjects"),
|
|
2754
|
-
(A, L) => r("update:model-value", L)
|
|
2755
|
-
);
|
|
2756
|
-
function E(A) {
|
|
2757
|
-
const L = A.selectedSubjects.length;
|
|
2758
|
-
return L === 0 && n.layout !== "leading" ? "" : a("team.memberForm.permissions.allowedCount", { count: L });
|
|
2759
|
-
}
|
|
2760
|
-
function v(A, L) {
|
|
2761
|
-
return C(A, L) || R(A, L) ? !0 : A.actionColumns.some(
|
|
2762
|
-
(H) => M(A, L, H) && (w(A, L, H) || k(A, L, H))
|
|
2763
|
-
);
|
|
2764
|
-
}
|
|
2765
|
-
return (A, L) => {
|
|
2766
|
-
const H = De("FmCheckbox");
|
|
2767
|
-
return J(), re("div", Ua, [
|
|
2768
|
-
(J(!0), re(we, null, Ce(X(f), (x) => (J(), Te(Xt, {
|
|
2769
|
-
key: x.category,
|
|
2770
|
-
subtitle: E(x),
|
|
2771
|
-
layout: e.layout,
|
|
2772
|
-
"initially-collapsed": e.layout === "leading"
|
|
2773
|
-
}, {
|
|
2774
|
-
title: ce(() => [
|
|
2775
|
-
ie("p", {
|
|
2776
|
-
class: Ee(e.layout === "leading" ? "text-[18px] font-semibold leading-[24px] tracking-[-0.27px]" : "fm-typo-en-title-sm-600")
|
|
2777
|
-
}, Se(x.label), 3)
|
|
2778
|
-
]),
|
|
2779
|
-
default: ce(() => [
|
|
2780
|
-
ie("div", xa, [
|
|
2781
|
-
ie("div", {
|
|
2782
|
-
class: "grid items-center px-12 py-8",
|
|
2783
|
-
style: rt({
|
|
2784
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2785
|
-
})
|
|
2786
|
-
}, [
|
|
2787
|
-
L[0] || (L[0] = ie("div", null, null, -1)),
|
|
2788
|
-
ie("div", Wa, Se(X(a)("team.memberForm.permissions.columnManage")), 1),
|
|
2789
|
-
(J(!0), re(we, null, Ce(x.actionColumns, (_) => (J(), re("div", {
|
|
2790
|
-
key: `header-${_}`,
|
|
2791
|
-
class: "text-center text-sm font-semibold text-fm-color-typo-primary"
|
|
2792
|
-
}, Se(X(y)(_)), 1))), 128))
|
|
2793
|
-
], 4),
|
|
2794
|
-
ie("div", {
|
|
2795
|
-
class: "grid items-center bg-fm-color-neutral-gray-100 px-12 py-8",
|
|
2796
|
-
style: rt({
|
|
2797
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2798
|
-
})
|
|
2799
|
-
}, [
|
|
2800
|
-
ie("div", {
|
|
2801
|
-
class: "cursor-pointer font-semibold",
|
|
2802
|
-
onClick: (_) => !e.disable && X(g)(x)
|
|
2803
|
-
}, Se(X(a)("team.labels.all")), 9, Ga),
|
|
2804
|
-
ie("div", Za, [
|
|
2805
|
-
oe(H, {
|
|
2806
|
-
"model-value": X(d)(x),
|
|
2807
|
-
indeterminate: X(i)(x),
|
|
2808
|
-
value: !0,
|
|
2809
|
-
disabled: e.disable,
|
|
2810
|
-
size: "sm",
|
|
2811
|
-
dense: "",
|
|
2812
|
-
"onUpdate:modelValue": (_) => X(g)(x)
|
|
2813
|
-
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])
|
|
2814
|
-
]),
|
|
2815
|
-
(J(!0), re(we, null, Ce(x.actionColumns, (_) => (J(), re("div", {
|
|
2816
|
-
key: `all-${_}`,
|
|
2817
|
-
class: "flex justify-center"
|
|
2818
|
-
}, [
|
|
2819
|
-
oe(H, {
|
|
2820
|
-
"model-value": X(p)(x, _),
|
|
2821
|
-
indeterminate: X(S)(x, _),
|
|
2822
|
-
value: _,
|
|
2823
|
-
disabled: e.disable,
|
|
2824
|
-
size: "sm",
|
|
2825
|
-
dense: "",
|
|
2826
|
-
"onUpdate:modelValue": (T) => X(m)(x, _, T)
|
|
2827
|
-
}, null, 8, ["model-value", "indeterminate", "value", "disabled", "onUpdate:modelValue"])
|
|
2828
|
-
]))), 128))
|
|
2829
|
-
], 4),
|
|
2830
|
-
L[1] || (L[1] = ie("div", { class: "h-px bg-fm-color-neutral-gray-200" }, null, -1)),
|
|
2831
|
-
(J(!0), re(we, null, Ce(x.options, (_) => (J(), re("div", {
|
|
2832
|
-
key: _.optionKey,
|
|
2833
|
-
class: "grid items-center rounded px-12 py-8 transition-colors hover:bg-fm-color-neutral-gray-100",
|
|
2834
|
-
style: rt({
|
|
2835
|
-
gridTemplateColumns: `minmax(0, 1fr) repeat(${x.actionColumns.length + 1}, 80px)`
|
|
2836
|
-
})
|
|
2837
|
-
}, [
|
|
2838
|
-
ie("div", Ya, [
|
|
2839
|
-
ie("span", {
|
|
2840
|
-
class: "block truncate cursor-pointer",
|
|
2841
|
-
title: _.label,
|
|
2842
|
-
onClick: (T) => !e.disable && !X(R)(x, _.value) && X(N)(x, _.value, !X(C)(x, _.value))
|
|
2843
|
-
}, Se(_.label), 9, Ba),
|
|
2844
|
-
Le(A.$slots, `checkbox-${_.value}-append`, {
|
|
2845
|
-
option: _,
|
|
2846
|
-
isEffectiveSelected: v(x, _.value),
|
|
2847
|
-
isCoveredByCover: X(R)(x, _.value) || x.actionColumns.some((T) => X(k)(x, _.value, T))
|
|
2848
|
-
}),
|
|
2849
|
-
Le(A.$slots, `checkbox-${_.value}-icon`, {
|
|
2850
|
-
option: _,
|
|
2851
|
-
isEffectiveSelected: v(x, _.value),
|
|
2852
|
-
isCoveredByCover: X(R)(x, _.value) || x.actionColumns.some((T) => X(k)(x, _.value, T))
|
|
2853
|
-
})
|
|
2854
|
-
]),
|
|
2855
|
-
ie("div", Xa, [
|
|
2856
|
-
oe(H, {
|
|
2857
|
-
"model-value": X(C)(x, _.value) || X(R)(x, _.value),
|
|
2858
|
-
value: _.value,
|
|
2859
|
-
disabled: e.disable || X(R)(x, _.value),
|
|
2860
|
-
indeterminate: X(O)(x, _.value),
|
|
2861
|
-
size: "sm",
|
|
2862
|
-
"onUpdate:modelValue": (T) => X(N)(x, _.value, T)
|
|
2863
|
-
}, null, 8, ["model-value", "value", "disabled", "indeterminate", "onUpdate:modelValue"])
|
|
2864
|
-
]),
|
|
2865
|
-
(J(!0), re(we, null, Ce(x.actionColumns, (T) => (J(), re("div", {
|
|
2866
|
-
key: `${_.optionKey}-${T}`,
|
|
2867
|
-
class: "flex justify-center"
|
|
2868
|
-
}, [
|
|
2869
|
-
X(M)(x, _.value, T) ? (J(), Te(H, {
|
|
2870
|
-
key: 0,
|
|
2871
|
-
"model-value": X(w)(x, _.value, T) || X(k)(x, _.value, T),
|
|
2872
|
-
value: T,
|
|
2873
|
-
disabled: e.disable || X(k)(x, _.value, T),
|
|
2874
|
-
size: "sm",
|
|
2875
|
-
"onUpdate:modelValue": (j) => X(b)(_.value, T, j)
|
|
2876
|
-
}, null, 8, ["model-value", "value", "disabled", "onUpdate:modelValue"])) : Ne("", !0)
|
|
2877
|
-
]))), 128))
|
|
2878
|
-
], 4))), 128))
|
|
2879
|
-
])
|
|
2880
|
-
]),
|
|
2881
|
-
_: 2
|
|
2882
|
-
}, 1032, ["subtitle", "layout", "initially-collapsed"]))), 128))
|
|
2883
|
-
]);
|
|
2884
|
-
};
|
|
2885
|
-
}
|
|
2886
|
-
}), Ja = { class: "space-y-16" }, $a = {
|
|
2887
|
-
key: 0,
|
|
2888
|
-
class: "flex fm-typo-en-title-sm-600"
|
|
2889
|
-
}, Ka = {
|
|
2890
|
-
key: 0,
|
|
2891
|
-
class: "q-mr-xs text-red col"
|
|
2892
|
-
}, za = { class: "form-input" }, Qa = /* @__PURE__ */ Ae({
|
|
2893
|
-
__name: "AppForm",
|
|
2894
|
-
props: {
|
|
2895
|
-
title: {
|
|
2896
|
-
type: String,
|
|
2897
|
-
default: void 0
|
|
2898
|
-
},
|
|
2899
|
-
required: {
|
|
2900
|
-
type: [Boolean, String],
|
|
2901
|
-
default: !1
|
|
2902
|
-
},
|
|
2903
|
-
inline: {
|
|
2904
|
-
type: Boolean,
|
|
2905
|
-
default: !1
|
|
2906
|
-
}
|
|
2907
|
-
},
|
|
2908
|
-
setup(e) {
|
|
2909
|
-
const t = e;
|
|
2910
|
-
return (n, r) => (J(), re("div", Ja, [
|
|
2911
|
-
Le(n.$slots, "top", {}, () => [
|
|
2912
|
-
t.title ? (J(), re("div", $a, [
|
|
2913
|
-
ie("div", null, [
|
|
2914
|
-
t.required ? (J(), re("span", Ka, "*")) : Ne("", !0),
|
|
2915
|
-
br(Se(t.title), 1)
|
|
2916
|
-
]),
|
|
2917
|
-
Le(n.$slots, "title-right")
|
|
2918
|
-
])) : Ne("", !0)
|
|
2919
|
-
]),
|
|
2920
|
-
ie("div", za, [
|
|
2921
|
-
Le(n.$slots, "default")
|
|
2922
|
-
])
|
|
2923
|
-
]));
|
|
2924
|
-
}
|
|
2925
|
-
}), qa = { class: "col flex items-center" }, eo = {
|
|
2926
|
-
key: 1,
|
|
2927
|
-
class: "q-pa-sm form-error-message text-error"
|
|
2928
|
-
}, cr = /* @__PURE__ */ Ae({
|
|
2929
|
-
__name: "CheckboxInput",
|
|
2930
|
-
props: {
|
|
2931
|
-
options: {
|
|
2932
|
-
type: Array,
|
|
2933
|
-
required: !0
|
|
2934
|
-
},
|
|
2935
|
-
title: {
|
|
2936
|
-
type: String,
|
|
2937
|
-
required: !0
|
|
2938
|
-
},
|
|
2939
|
-
modelValue: {
|
|
2940
|
-
type: Array,
|
|
2941
|
-
required: !0
|
|
2942
|
-
},
|
|
2943
|
-
showAllToggle: {
|
|
2944
|
-
type: [Boolean, String],
|
|
2945
|
-
default: !0
|
|
2946
|
-
},
|
|
2947
|
-
includeDisabledOptionsWhenSelectAll: {
|
|
2948
|
-
type: Boolean,
|
|
2949
|
-
default: !1
|
|
2950
|
-
},
|
|
2951
|
-
disable: {
|
|
2952
|
-
type: Boolean,
|
|
2953
|
-
default: !1
|
|
2954
|
-
},
|
|
2955
|
-
min: {
|
|
2956
|
-
type: Number,
|
|
2957
|
-
default: 0
|
|
2958
|
-
},
|
|
2959
|
-
max: {
|
|
2960
|
-
type: Number,
|
|
2961
|
-
default: void 0
|
|
2962
|
-
},
|
|
2963
|
-
showIntermediate: {
|
|
2964
|
-
type: Boolean,
|
|
2965
|
-
default: !0
|
|
2966
|
-
},
|
|
2967
|
-
gutter: {
|
|
2968
|
-
type: Number,
|
|
2969
|
-
default: void 0
|
|
2970
|
-
},
|
|
2971
|
-
falsyShowSlot: {
|
|
2972
|
-
type: Boolean,
|
|
2973
|
-
default: !1
|
|
2974
|
-
},
|
|
2975
|
-
bottomSlotIndent: {
|
|
2976
|
-
type: String,
|
|
2977
|
-
default: "36px"
|
|
2978
|
-
},
|
|
2979
|
-
alignCenter: {
|
|
2980
|
-
type: Boolean,
|
|
2981
|
-
default: !0
|
|
2982
|
-
}
|
|
2983
|
-
},
|
|
2984
|
-
emits: ["update:model-value"],
|
|
2985
|
-
setup(e, { emit: t }) {
|
|
2986
|
-
const n = e, r = t, { t: a } = Ke(), o = st(!1), f = vr(), d = 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-${Mr(6)}`, g = z(() => d.value !== !0), C = z(
|
|
2987
|
-
() => n.modelValue.filter((k) => n.options.some((M) => M.value === k))
|
|
2988
|
-
), O = z(
|
|
2989
|
-
() => typeof n.showAllToggle == "boolean" ? a("team.labels.all") : n.showAllToggle
|
|
2990
|
-
), N = z(() => n.options.length > 0 && n.options.length === C.value.length);
|
|
2991
|
-
function w() {
|
|
2992
|
-
const k = n.modelValue.filter((M) => !C.value.includes(M));
|
|
2993
|
-
if (N.value === !0)
|
|
2994
|
-
r("update:model-value", k);
|
|
2995
|
-
else {
|
|
2996
|
-
const M = n.includeDisabledOptionsWhenSelectAll ? n.options.map((b) => b.value) : n.options.filter((b) => !b.disabled).map((b) => b.value);
|
|
2997
|
-
r("update:model-value", [...k, ...M]);
|
|
2998
|
-
}
|
|
2999
|
-
}
|
|
3000
|
-
function R(k, M) {
|
|
3001
|
-
let b = yt(n.modelValue);
|
|
3002
|
-
M ? b.every((p) => p !== k) && b.push(k) : b = b.filter((p) => p !== k), r("update:model-value", b);
|
|
3003
|
-
}
|
|
3004
|
-
return (k, M) => {
|
|
3005
|
-
const b = De("FmCheckbox");
|
|
3006
|
-
return J(), Te(Qa, {
|
|
3007
|
-
id: i,
|
|
3008
|
-
title: e.title,
|
|
3009
|
-
required: !1
|
|
3010
|
-
}, {
|
|
3011
|
-
top: ce(() => [
|
|
3012
|
-
Le(k.$slots, "top")
|
|
3013
|
-
]),
|
|
3014
|
-
default: ce(() => [
|
|
3015
|
-
n.showAllToggle ? (J(), Te(b, {
|
|
3016
|
-
key: 0,
|
|
3017
|
-
"model-value": N.value,
|
|
3018
|
-
disabled: e.disable,
|
|
3019
|
-
label: O.value,
|
|
3020
|
-
style: rt(`margin-bottom: ${n.gutter}px`),
|
|
3021
|
-
size: "sm",
|
|
3022
|
-
dense: "",
|
|
3023
|
-
value: O.value,
|
|
3024
|
-
"onUpdate:modelValue": w
|
|
3025
|
-
}, null, 8, ["model-value", "disabled", "label", "style", "value"])) : Ne("", !0),
|
|
3026
|
-
(J(!0), re(we, null, Ce(e.options, (p, S) => (J(), re("div", {
|
|
3027
|
-
key: p.value,
|
|
3028
|
-
style: rt(`margin-bottom: ${S < e.options.length - 1 ? n.gutter : 0}px`),
|
|
3029
|
-
class: Ee(S < e.options.length - 1 ? "q-mb-sm" : "")
|
|
3030
|
-
}, [
|
|
3031
|
-
ie("div", {
|
|
3032
|
-
class: Ee(["row justify-between", e.alignCenter ? "items-center" : "items-start"])
|
|
3033
|
-
}, [
|
|
3034
|
-
ie("div", qa, [
|
|
3035
|
-
oe(b, {
|
|
3036
|
-
"model-value": e.modelValue.includes(p.value),
|
|
3037
|
-
disabled: e.disable || p.disabled,
|
|
3038
|
-
size: "sm",
|
|
3039
|
-
label: p.label,
|
|
3040
|
-
value: p.label,
|
|
3041
|
-
"onUpdate:modelValue": (m) => R(p.value, m)
|
|
3042
|
-
}, null, 8, ["model-value", "disabled", "label", "value", "onUpdate:modelValue"]),
|
|
3043
|
-
Le(k.$slots, `checkbox-${p.key || p.value}-append`, {
|
|
3044
|
-
option: p,
|
|
3045
|
-
selected: e.modelValue.includes(p.value)
|
|
3046
|
-
})
|
|
3047
|
-
]),
|
|
3048
|
-
X(f)[`checkbox-${p.key || p.value}-end`] && (e.modelValue.includes(p.value) || e.falsyShowSlot) ? (J(), re("div", {
|
|
3049
|
-
key: 0,
|
|
3050
|
-
class: Ee([{ "q-checkbox disabled": e.disable || p.disabled }, "col"])
|
|
3051
|
-
}, [
|
|
3052
|
-
Le(k.$slots, `checkbox-${p.key || p.value}-end`, {
|
|
3053
|
-
option: p,
|
|
3054
|
-
value: e.modelValue.includes(p.value),
|
|
3055
|
-
disable: e.disable || p.disabled
|
|
3056
|
-
})
|
|
3057
|
-
], 2)) : Ne("", !0)
|
|
3058
|
-
], 2),
|
|
3059
|
-
X(f)[`checkbox-${p.key || p.value}-bottom`] && (e.modelValue.includes(p.value) || e.falsyShowSlot) ? (J(), re("div", {
|
|
3060
|
-
key: 0,
|
|
3061
|
-
class: Ee(["q-mt-sm", { "q-checkbox disabled": e.disable || p.disabled }]),
|
|
3062
|
-
style: rt(`margin-left: ${e.bottomSlotIndent}`)
|
|
3063
|
-
}, [
|
|
3064
|
-
Le(k.$slots, `checkbox-${p.key || p.value}-bottom`, {
|
|
3065
|
-
option: p,
|
|
3066
|
-
disable: e.disable || p.disabled,
|
|
3067
|
-
value: e.modelValue.includes(p.value)
|
|
3068
|
-
})
|
|
3069
|
-
], 6)) : Ne("", !0)
|
|
3070
|
-
], 6))), 128)),
|
|
3071
|
-
o.value && g.value ? (J(), re("div", eo, Se(d.value), 1)) : Ne("", !0)
|
|
3072
|
-
]),
|
|
3073
|
-
_: 3
|
|
3074
|
-
}, 8, ["title"]);
|
|
3075
|
-
};
|
|
3076
|
-
}
|
|
3077
|
-
}), pt = "includedFuture", Dn = /* @__PURE__ */ Ae({
|
|
3078
|
-
__name: "ConditionPermission",
|
|
3079
|
-
props: {
|
|
3080
|
-
modelValue: {
|
|
3081
|
-
type: Array,
|
|
3082
|
-
default: null
|
|
3083
|
-
},
|
|
3084
|
-
options: {
|
|
3085
|
-
type: Array,
|
|
3086
|
-
required: !0
|
|
3087
|
-
},
|
|
3088
|
-
disable: {
|
|
3089
|
-
type: Boolean,
|
|
3090
|
-
default: !1
|
|
3091
|
-
},
|
|
3092
|
-
context: {
|
|
3093
|
-
type: String,
|
|
3094
|
-
required: !0
|
|
3095
|
-
},
|
|
3096
|
-
/** 'leading': the member sheet's layout, with the chosen names under the title. */
|
|
3097
|
-
layout: {
|
|
3098
|
-
type: String,
|
|
3099
|
-
default: "trailing"
|
|
3100
|
-
}
|
|
3101
|
-
},
|
|
3102
|
-
emits: ["update:model-value"],
|
|
3103
|
-
setup(e, { emit: t }) {
|
|
3104
|
-
const n = e, r = t, { t: a } = Ke(), o = z(() => [
|
|
3105
|
-
{
|
|
3106
|
-
label: a("team.memberForm.permissions.includedFuture", { context: n.context }),
|
|
3107
|
-
value: pt,
|
|
3108
|
-
// Can only be selected if all other options are selected
|
|
3109
|
-
disabled: !!n.modelValue && n.options.length > n.modelValue.length
|
|
3110
|
-
},
|
|
3111
|
-
...n.options.filter(
|
|
3112
|
-
(C) => C.label.toLocaleLowerCase().includes(g.value.toLocaleLowerCase())
|
|
3113
|
-
)
|
|
3114
|
-
]), f = z(() => n.modelValue ? n.modelValue : [pt, ...n.options.map((C) => C.value)]), d = z(() => {
|
|
3115
|
-
if (n.layout === "leading") {
|
|
3116
|
-
const O = n.modelValue ? n.options.filter((N) => n.modelValue.includes(N.value)).map((N) => N.label) : null;
|
|
3117
|
-
return Bn(O, {
|
|
3118
|
-
all: a("team.labels.all"),
|
|
3119
|
-
none: a("team.labels.none"),
|
|
3120
|
-
more: (N) => a("team.labels.more", { count: N })
|
|
3121
|
-
});
|
|
3122
|
-
}
|
|
3123
|
-
const C = f.value.filter((O) => O !== pt).length;
|
|
3124
|
-
return C === 0 ? "" : a("team.memberForm.permissions.allowedCount", { count: C });
|
|
3125
|
-
});
|
|
3126
|
-
function i(C) {
|
|
3127
|
-
const O = C.length === o.value.length;
|
|
3128
|
-
r("update:model-value", O ? null : C.filter((N) => N !== pt));
|
|
3129
|
-
}
|
|
3130
|
-
const g = st("");
|
|
3131
|
-
return (C, O) => {
|
|
3132
|
-
const N = De("fm-search");
|
|
3133
|
-
return J(), Te(Xt, {
|
|
3134
|
-
subtitle: d.value,
|
|
3135
|
-
layout: e.layout,
|
|
3136
|
-
"initially-collapsed": e.layout === "leading"
|
|
3137
|
-
}, {
|
|
3138
|
-
title: ce(() => [
|
|
3139
|
-
ie("p", {
|
|
3140
|
-
class: Ee(
|
|
3141
|
-
e.layout === "leading" ? "text-[18px] font-semibold leading-[24px] tracking-[-0.27px]" : "fm-typo-en-title-sm-600"
|
|
3142
|
-
)
|
|
3143
|
-
}, Se(X(a)("team.memberForm.permissions.manageable", { context: e.context })), 3)
|
|
3144
|
-
]),
|
|
3145
|
-
default: ce(() => [
|
|
3146
|
-
e.options.length > 1 ? (J(), Te(N, {
|
|
3147
|
-
key: 0,
|
|
3148
|
-
modelValue: g.value,
|
|
3149
|
-
"onUpdate:modelValue": O[0] || (O[0] = (w) => g.value = w),
|
|
3150
|
-
class: "mt-16",
|
|
3151
|
-
placeholder: X(a)("team.memberForm.permissions.search", { context: e.context })
|
|
3152
|
-
}, null, 8, ["modelValue", "placeholder"])) : Ne("", !0),
|
|
3153
|
-
oe(cr, {
|
|
3154
|
-
"model-value": f.value,
|
|
3155
|
-
options: o.value,
|
|
3156
|
-
"show-intermediate": !1,
|
|
3157
|
-
"show-all-toggle": !0,
|
|
3158
|
-
disable: e.disable,
|
|
3159
|
-
"include-disabled-options-when-select-all": !0,
|
|
3160
|
-
title: "",
|
|
3161
|
-
class: "mt-16",
|
|
3162
|
-
"onUpdate:modelValue": i
|
|
3163
|
-
}, tt({ _: 2 }, [
|
|
3164
|
-
Ce(o.value, (w) => ({
|
|
3165
|
-
name: `checkbox-${w.value}-append`,
|
|
3166
|
-
fn: ce(({ option: R }) => [
|
|
3167
|
-
Le(C.$slots, `checkbox-${w.value}-append`, { option: R })
|
|
3168
|
-
])
|
|
3169
|
-
}))
|
|
3170
|
-
]), 1032, ["model-value", "options", "disable"])
|
|
3171
|
-
]),
|
|
3172
|
-
_: 3
|
|
3173
|
-
}, 8, ["subtitle", "layout", "initially-collapsed"]);
|
|
3174
|
-
};
|
|
3175
|
-
}
|
|
3176
|
-
}), ht = "includedNewRole", to = /* @__PURE__ */ Ae({
|
|
3177
|
-
__name: "PosRolePermission",
|
|
3178
|
-
props: {
|
|
3179
|
-
modelValue: {
|
|
3180
|
-
type: Array,
|
|
3181
|
-
default: null
|
|
3182
|
-
},
|
|
3183
|
-
roles: {
|
|
3184
|
-
type: Array,
|
|
3185
|
-
required: !0
|
|
3186
|
-
},
|
|
3187
|
-
restaurantIds: {
|
|
3188
|
-
type: Array,
|
|
3189
|
-
default: null
|
|
3190
|
-
},
|
|
3191
|
-
disable: {
|
|
3192
|
-
type: Boolean,
|
|
3193
|
-
default: !1
|
|
3194
|
-
},
|
|
3195
|
-
/** 'leading': the member sheet's layout, with the chosen roles under the title. */
|
|
3196
|
-
layout: {
|
|
3197
|
-
type: String,
|
|
3198
|
-
default: "trailing"
|
|
3199
|
-
}
|
|
3200
|
-
},
|
|
3201
|
-
emits: ["update:model-value"],
|
|
3202
|
-
setup(e, { emit: t }) {
|
|
3203
|
-
const n = e, r = t, { t: a } = Ke(), o = z(() => {
|
|
3204
|
-
const g = n.restaurantIds;
|
|
3205
|
-
return [
|
|
3206
|
-
{
|
|
3207
|
-
label: a("team.memberForm.permissions.includedNewRole"),
|
|
3208
|
-
value: ht,
|
|
3209
|
-
disabled: !!n.modelValue && n.roles.length > n.modelValue.length
|
|
3210
|
-
},
|
|
3211
|
-
...n.roles.map((C) => ({
|
|
3212
|
-
label: C.name,
|
|
3213
|
-
value: C._id,
|
|
3214
|
-
disabled: !!g && C.restaurants.every(({ id: O }) => !g.includes(O))
|
|
3215
|
-
}))
|
|
3216
|
-
];
|
|
3217
|
-
}), f = z(() => n.modelValue ? n.modelValue : [ht, ...n.roles.map((g) => g._id)]), d = z(() => {
|
|
3218
|
-
if (n.layout === "leading") {
|
|
3219
|
-
const C = n.modelValue ? n.roles.filter((O) => n.modelValue.includes(O._id)).map((O) => O.name) : null;
|
|
3220
|
-
return Bn(C, {
|
|
3221
|
-
all: a("team.labels.all"),
|
|
3222
|
-
none: a("team.labels.none"),
|
|
3223
|
-
more: (O) => a("team.labels.more", { count: O })
|
|
3224
|
-
});
|
|
3225
|
-
}
|
|
3226
|
-
const g = f.value.filter((C) => C !== ht).length;
|
|
3227
|
-
return g === 0 ? "" : a("team.memberForm.permissions.allowedCount", { count: g });
|
|
3228
|
-
});
|
|
3229
|
-
function i(g) {
|
|
3230
|
-
const C = g.length === o.value.length;
|
|
3231
|
-
r("update:model-value", C ? null : g.filter((O) => O !== ht));
|
|
3232
|
-
}
|
|
3233
|
-
return (g, C) => (J(), Te(Xt, {
|
|
3234
|
-
subtitle: d.value,
|
|
3235
|
-
layout: e.layout,
|
|
3236
|
-
"initially-collapsed": e.layout === "leading"
|
|
3237
|
-
}, {
|
|
3238
|
-
title: ce(() => [
|
|
3239
|
-
ie("p", {
|
|
3240
|
-
class: Ee(
|
|
3241
|
-
e.layout === "leading" ? "text-[18px] font-semibold leading-[24px] tracking-[-0.27px]" : "fm-typo-en-title-sm-600"
|
|
3242
|
-
)
|
|
3243
|
-
}, Se(X(a)("team.memberForm.permissions.roles")), 3)
|
|
3244
|
-
]),
|
|
3245
|
-
default: ce(() => [
|
|
3246
|
-
oe(cr, {
|
|
3247
|
-
"model-value": f.value,
|
|
3248
|
-
options: o.value,
|
|
3249
|
-
"show-intermediate": !1,
|
|
3250
|
-
"show-all-toggle": !1,
|
|
3251
|
-
disable: e.disable,
|
|
3252
|
-
title: "",
|
|
3253
|
-
class: "mt-16",
|
|
3254
|
-
"onUpdate:modelValue": i
|
|
3255
|
-
}, tt({ _: 2 }, [
|
|
3256
|
-
Ce(o.value, (O) => ({
|
|
3257
|
-
name: `checkbox-${O.value}-append`,
|
|
3258
|
-
fn: ce(({ option: N }) => [
|
|
3259
|
-
Le(g.$slots, `checkbox-${O.value}-append`, { option: N })
|
|
3260
|
-
])
|
|
3261
|
-
}))
|
|
3262
|
-
]), 1032, ["model-value", "options", "disable"])
|
|
3263
|
-
]),
|
|
3264
|
-
_: 3
|
|
3265
|
-
}, 8, ["subtitle", "layout", "initially-collapsed"]));
|
|
3266
|
-
}
|
|
3267
|
-
}), no = {
|
|
3268
|
-
key: 0,
|
|
3269
|
-
class: "flex flex-col gap-8"
|
|
3270
|
-
}, ro = {
|
|
3271
|
-
key: 0,
|
|
3272
|
-
class: "ml-32",
|
|
3273
|
-
style: { "font-size": "12px", "line-height": "16px", color: "#8a8f98", "font-weight": "400" }
|
|
3274
|
-
}, so = {
|
|
3275
|
-
key: 0,
|
|
3276
|
-
class: "ml-32"
|
|
3277
|
-
}, Fn = /* @__PURE__ */ Ae({
|
|
3278
|
-
__name: "PortalConditionForm",
|
|
3279
|
-
props: {
|
|
3280
|
-
entry: {},
|
|
3281
|
-
builders: {},
|
|
3282
|
-
subject: {},
|
|
3283
|
-
timeZone: {},
|
|
3284
|
-
coverOverride: {},
|
|
3285
|
-
inheritModeFor: {},
|
|
3286
|
-
formValueFor: {},
|
|
3287
|
-
hasChanges: { type: Boolean },
|
|
3288
|
-
disable: { type: Boolean, default: !1 },
|
|
3289
|
-
fullWidth: { type: Boolean, default: !1 },
|
|
3290
|
-
title: { default: "" }
|
|
3291
|
-
},
|
|
3292
|
-
emits: ["update-inherit-mode", "update-form", "apply"],
|
|
3293
|
-
setup(e, { emit: t }) {
|
|
3294
|
-
const n = t, { t: r } = Ke();
|
|
3295
|
-
return (a, o) => {
|
|
3296
|
-
const f = De("FmRadio"), d = De("FmRadioGroup");
|
|
3297
|
-
return J(), Te(Tr, {
|
|
3298
|
-
title: e.title,
|
|
3299
|
-
builders: e.builders,
|
|
3300
|
-
"form-value-for": e.formValueFor,
|
|
3301
|
-
"has-changes": e.hasChanges,
|
|
3302
|
-
disable: e.disable,
|
|
3303
|
-
"full-width": e.fullWidth,
|
|
3304
|
-
onUpdateForm: o[0] || (o[0] = (i) => n("update-form", i)),
|
|
3305
|
-
onApply: o[1] || (o[1] = (i) => n("apply"))
|
|
3306
|
-
}, {
|
|
3307
|
-
section: ce(({ builder: i }) => [
|
|
3308
|
-
e.coverOverride.shouldShowInheritToggle(e.entry, i) ? (J(), re("div", no, [
|
|
3309
|
-
oe(d, {
|
|
3310
|
-
"model-value": e.inheritModeFor(i),
|
|
3311
|
-
disabled: e.disable,
|
|
3312
|
-
"onUpdate:modelValue": (g) => n("update-inherit-mode", { builder: i, mode: g })
|
|
3313
|
-
}, {
|
|
3314
|
-
default: ce(() => [
|
|
3315
|
-
ie("div", null, [
|
|
3316
|
-
oe(f, {
|
|
3317
|
-
value: "inherit",
|
|
3318
|
-
label: X(r)("team.memberForm.permissions.conditionCover.inherit", {
|
|
3319
|
-
cover: e.coverOverride.coverLabel(e.subject)
|
|
3320
|
-
})
|
|
3321
|
-
}, null, 8, ["label"]),
|
|
3322
|
-
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone) ? (J(), re("p", ro, " (" + Se(X(r)(
|
|
3323
|
-
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).labelKey,
|
|
3324
|
-
e.coverOverride.inheritedSummary(e.entry, i, e.timeZone).params ?? {}
|
|
3325
|
-
)) + ") ", 1)) : Ne("", !0)
|
|
3326
|
-
]),
|
|
3327
|
-
oe(f, {
|
|
3328
|
-
value: "custom",
|
|
3329
|
-
label: X(r)("team.memberForm.permissions.conditionCover.custom")
|
|
3330
|
-
}, null, 8, ["label"])
|
|
3331
|
-
]),
|
|
3332
|
-
_: 2
|
|
3333
|
-
}, 1032, ["model-value", "disabled", "onUpdate:modelValue"]),
|
|
3334
|
-
e.inheritModeFor(i) === "custom" ? (J(), re("div", so, [
|
|
3335
|
-
oe(nn, {
|
|
3336
|
-
builder: i,
|
|
3337
|
-
"model-value": e.formValueFor(i),
|
|
3338
|
-
disable: e.disable,
|
|
3339
|
-
"onUpdate:modelValue": (g) => n("update-form", { builder: i, form: g })
|
|
3340
|
-
}, null, 8, ["builder", "model-value", "disable", "onUpdate:modelValue"])
|
|
3341
|
-
])) : Ne("", !0)
|
|
3342
|
-
])) : (J(), Te(nn, {
|
|
3343
|
-
key: 1,
|
|
3344
|
-
builder: i,
|
|
3345
|
-
"model-value": e.formValueFor(i),
|
|
3346
|
-
disable: e.disable,
|
|
3347
|
-
"onUpdate:modelValue": (g) => n("update-form", { builder: i, form: g })
|
|
3348
|
-
}, null, 8, ["builder", "model-value", "disable", "onUpdate:modelValue"]))
|
|
3349
|
-
]),
|
|
3350
|
-
_: 1
|
|
3351
|
-
}, 8, ["title", "builders", "form-value-for", "has-changes", "disable", "full-width"]);
|
|
3352
|
-
};
|
|
3353
|
-
}
|
|
3354
|
-
}), ao = {
|
|
3355
|
-
async readWarehouses() {
|
|
3356
|
-
return kr(await Ar().get("/warehouses"));
|
|
3357
|
-
}
|
|
3358
|
-
};
|
|
3359
|
-
function Pn(e, t) {
|
|
3360
|
-
return Zn(e, Yn).some(
|
|
3361
|
-
(n) => n.subject === t && !n.inverted && n.actions.includes("manage")
|
|
3362
|
-
);
|
|
3363
|
-
}
|
|
3364
|
-
function jn(e, t) {
|
|
3365
|
-
return e.some((n) => n.subject === t && n.inverted) ? e : [...e, { subject: t, actions: ["manage"], inverted: !0 }];
|
|
3366
|
-
}
|
|
3367
|
-
function Vn(e, t, n) {
|
|
3368
|
-
const { category: r, showByFeatureFlag: a, isCategoryCover: o, ...f } = e;
|
|
3369
|
-
return {
|
|
3370
|
-
...f,
|
|
3371
|
-
actions: t,
|
|
3372
|
-
...n !== void 0 && { conditions: n }
|
|
3373
|
-
};
|
|
3374
|
-
}
|
|
3375
|
-
function oo(e, t, n, r) {
|
|
3376
|
-
const a = new Set(
|
|
3377
|
-
e.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3378
|
-
), o = new Set(
|
|
3379
|
-
t.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3380
|
-
), f = new Set(
|
|
3381
|
-
n.filter((i) => !i.inverted).map((i) => i.subject)
|
|
3382
|
-
);
|
|
3383
|
-
let d = [...n];
|
|
3384
|
-
for (const i of a)
|
|
3385
|
-
o.has(i) || (f.has(i) && (d = d.filter((C) => C.subject !== i)), (!f.has(i) || Pn(d, i)) && (d = jn(d, i)));
|
|
3386
|
-
for (const i of o)
|
|
3387
|
-
if (!a.has(i)) {
|
|
3388
|
-
const g = d.some((C) => C.subject === i && C.inverted);
|
|
3389
|
-
if (d = d.filter((C) => !(C.subject === i && C.inverted)), !g && !f.has(i)) {
|
|
3390
|
-
const C = t.find(
|
|
3391
|
-
(N) => N.subject === i && !N.inverted
|
|
3392
|
-
), O = r(i);
|
|
3393
|
-
O && C && d.push(Vn(O, C.actions, C.conditions));
|
|
3394
|
-
}
|
|
3395
|
-
}
|
|
3396
|
-
for (const i of o) {
|
|
3397
|
-
if (!a.has(i)) continue;
|
|
3398
|
-
const g = e.find((R) => R.subject === i && !R.inverted), C = t.find((R) => R.subject === i && !R.inverted);
|
|
3399
|
-
if (!g || !C) continue;
|
|
3400
|
-
const O = new Set(g.actions), N = new Set(C.actions);
|
|
3401
|
-
if (O.size === N.size && [...O].every((R) => N.has(R)))
|
|
3402
|
-
continue;
|
|
3403
|
-
const w = d.findIndex((R) => R.subject === i && !R.inverted);
|
|
3404
|
-
if (w >= 0)
|
|
3405
|
-
d[w] = {
|
|
3406
|
-
...d[w],
|
|
3407
|
-
actions: Array.from(N)
|
|
3408
|
-
};
|
|
3409
|
-
else {
|
|
3410
|
-
const R = r(i);
|
|
3411
|
-
R && d.push(Vn(R, Array.from(N)));
|
|
3412
|
-
}
|
|
3413
|
-
O.has("manage") && !N.has("manage") && Pn(d, i) && (d = jn(d, i)), !O.has("manage") && N.has("manage") && (d = d.filter((R) => !(R.subject === i && R.inverted)));
|
|
3414
|
-
}
|
|
3415
|
-
return d;
|
|
3416
|
-
}
|
|
3417
|
-
const lo = {
|
|
3418
|
-
MY: "Asia/Kuala_Lumpur",
|
|
3419
|
-
SG: "Asia/Singapore",
|
|
3420
|
-
TH: "Asia/Bangkok",
|
|
3421
|
-
ID: "Asia/Jakarta",
|
|
3422
|
-
MO: "Asia/Macau",
|
|
3423
|
-
BN: "Asia/Brunei",
|
|
3424
|
-
PK: "Asia/Karachi",
|
|
3425
|
-
MV: "Indian/Maldives",
|
|
3426
|
-
VN: "Asia/Ho_Chi_Minh",
|
|
3427
|
-
JP: "Asia/Tokyo",
|
|
3428
|
-
AU: "Australia/Sydney",
|
|
3429
|
-
AE: "Asia/Dubai",
|
|
3430
|
-
UK: "Europe/London"
|
|
3431
|
-
};
|
|
3432
|
-
function io(e) {
|
|
3433
|
-
const t = (e || "").toUpperCase();
|
|
3434
|
-
return lo[t] ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
3435
|
-
}
|
|
3436
|
-
function co(e, t) {
|
|
3437
|
-
return e != null && e.timezone ? e.timezone : e != null && e.timeZone ? e.timeZone : io((e == null ? void 0 : e.country) ?? t);
|
|
3438
|
-
}
|
|
3439
|
-
function gt(e, t) {
|
|
3440
|
-
return `${e}::${t.builderKey}`;
|
|
3441
|
-
}
|
|
3442
|
-
function Be(e) {
|
|
3443
|
-
try {
|
|
3444
|
-
return e.conditions ? JSON.parse(e.conditions) : void 0;
|
|
3445
|
-
} catch {
|
|
3446
|
-
return;
|
|
3447
|
-
}
|
|
3448
|
-
}
|
|
3449
|
-
function uo(e, t) {
|
|
3450
|
-
return e.find((n) => !n.inverted && n.subject === t);
|
|
3451
|
-
}
|
|
3452
|
-
function Mt(e, t) {
|
|
3453
|
-
const n = new Set(e.actions);
|
|
3454
|
-
return n.has(ye.Action.manage) ? !0 : t.actions.every((r) => n.has(r));
|
|
3455
|
-
}
|
|
3456
|
-
function Yt(e, t) {
|
|
3457
|
-
const n = Be(e);
|
|
3458
|
-
return Dt(n, [{ builder: t, formValue: t.fromCondition(void 0) }]);
|
|
3459
|
-
}
|
|
3460
|
-
function Un(e, t, n) {
|
|
3461
|
-
return {
|
|
3462
|
-
...Yt(e, n),
|
|
3463
|
-
...nt(Be(t), n)
|
|
3464
|
-
};
|
|
3465
|
-
}
|
|
3466
|
-
function mo(e, t, n) {
|
|
3467
|
-
const r = st(/* @__PURE__ */ new Set());
|
|
3468
|
-
function a(m) {
|
|
3469
|
-
return Pr(m, t.value);
|
|
3470
|
-
}
|
|
3471
|
-
function o(m) {
|
|
3472
|
-
return t.value.find((y) => y.subject === m);
|
|
3473
|
-
}
|
|
3474
|
-
function f(m) {
|
|
3475
|
-
var E;
|
|
3476
|
-
const y = a(m);
|
|
3477
|
-
return y ? (E = o(y)) == null ? void 0 : E.label : void 0;
|
|
3478
|
-
}
|
|
3479
|
-
function d(m) {
|
|
3480
|
-
return uo(e.value, m);
|
|
3481
|
-
}
|
|
3482
|
-
function i(m, y) {
|
|
3483
|
-
return nt(Be(m), y);
|
|
3484
|
-
}
|
|
3485
|
-
function g(m, y) {
|
|
3486
|
-
var A;
|
|
3487
|
-
if (!(((A = y.appliesToActions) == null ? void 0 : A.call(y, m.actions)) ?? !0)) return !1;
|
|
3488
|
-
const E = a(m.subject);
|
|
3489
|
-
if (!E) return !1;
|
|
3490
|
-
const v = d(E);
|
|
3491
|
-
return v ? Object.keys(i(v, y)).length > 0 : !1;
|
|
3492
|
-
}
|
|
3493
|
-
function C(m, y) {
|
|
3494
|
-
if (!g(m, y) || r.value.has(gt(m.subject, y))) return "custom";
|
|
3495
|
-
if (m.index === null) return "inherit";
|
|
3496
|
-
const E = e.value[m.index], v = a(m.subject), A = v ? d(v) : void 0;
|
|
3497
|
-
if (E && A) {
|
|
3498
|
-
const L = nt(Be(E), y), H = i(A, y);
|
|
3499
|
-
if (JSON.stringify(L) === JSON.stringify(H)) return "inherit";
|
|
3500
|
-
}
|
|
3501
|
-
return "custom";
|
|
3502
|
-
}
|
|
3503
|
-
function O(m, y, E) {
|
|
3504
|
-
if (!y.summarizeForm) return;
|
|
3505
|
-
const v = a(m.subject);
|
|
3506
|
-
if (!v) return;
|
|
3507
|
-
const A = d(v);
|
|
3508
|
-
if (!A) return;
|
|
3509
|
-
const L = y.fromCondition(i(A, y));
|
|
3510
|
-
return y.summarizeForm(L, { timeZone: E });
|
|
3511
|
-
}
|
|
3512
|
-
function N(m, y) {
|
|
3513
|
-
if (m.index === null) return;
|
|
3514
|
-
const E = [...e.value], v = { ...E[m.index] }, A = Yt(v, y), L = Object.keys(A).length === 0, H = a(m.subject), x = H ? d(H) : void 0, _ = x ? Mt(x, v) : !1;
|
|
3515
|
-
if (L && _)
|
|
3516
|
-
E.splice(m.index, 1);
|
|
3517
|
-
else if (x) {
|
|
3518
|
-
const T = Un(v, x, y);
|
|
3519
|
-
Object.keys(T).length === 0 ? delete v.conditions : v.conditions = JSON.stringify(T), E[m.index] = v;
|
|
3520
|
-
} else
|
|
3521
|
-
L ? delete v.conditions : v.conditions = JSON.stringify(A), E[m.index] = v;
|
|
3522
|
-
n(E);
|
|
3523
|
-
}
|
|
3524
|
-
function w(m, y, E) {
|
|
3525
|
-
const v = gt(m.subject, y);
|
|
3526
|
-
if (E === "inherit") {
|
|
3527
|
-
const L = new Set(r.value);
|
|
3528
|
-
L.delete(v), r.value = L, N(m, y);
|
|
3529
|
-
return;
|
|
3530
|
-
}
|
|
3531
|
-
const A = new Set(r.value);
|
|
3532
|
-
A.add(v), r.value = A, m.index === null && p(m, y, y.fromCondition(void 0), {
|
|
3533
|
-
forceCreateRule: !0
|
|
3534
|
-
});
|
|
3535
|
-
}
|
|
3536
|
-
function R(m) {
|
|
3537
|
-
const y = a(m);
|
|
3538
|
-
if (!y) return [];
|
|
3539
|
-
const E = d(y);
|
|
3540
|
-
return (E == null ? void 0 : E.actions) ?? [];
|
|
3541
|
-
}
|
|
3542
|
-
function k(m, y) {
|
|
3543
|
-
return e.value.filter((E) => {
|
|
3544
|
-
if (E.inverted) return !1;
|
|
3545
|
-
const v = E.subject;
|
|
3546
|
-
return v === m || a(v) !== m ? !1 : r.value.has(gt(v, y)) ? !0 : Object.keys(nt(Be(E), y)).length > 0;
|
|
3547
|
-
});
|
|
3548
|
-
}
|
|
3549
|
-
function M(m, y) {
|
|
3550
|
-
const E = `::${y.builderKey}`, v = new Set(r.value);
|
|
3551
|
-
for (const A of v) {
|
|
3552
|
-
if (!A.endsWith(E)) continue;
|
|
3553
|
-
const L = A.slice(0, -E.length);
|
|
3554
|
-
a(L) === m && v.delete(A);
|
|
3555
|
-
}
|
|
3556
|
-
r.value = v;
|
|
3557
|
-
}
|
|
3558
|
-
function b(m, y, E) {
|
|
3559
|
-
const v = y.subject;
|
|
3560
|
-
return m.reduce((A, L) => {
|
|
3561
|
-
if (L.inverted)
|
|
3562
|
-
return A.push(L), A;
|
|
3563
|
-
const H = L.subject;
|
|
3564
|
-
if (H === v || a(H) !== v)
|
|
3565
|
-
return A.push(L), A;
|
|
3566
|
-
if (Mt(y, L) && Object.keys(Yt(L, E)).length === 0)
|
|
3567
|
-
return A;
|
|
3568
|
-
const _ = Un(L, y, E);
|
|
3569
|
-
if (Object.keys(_).length === 0) {
|
|
3570
|
-
const { conditions: T, ...j } = L;
|
|
3571
|
-
A.push(j);
|
|
3572
|
-
} else
|
|
3573
|
-
A.push({ ...L, conditions: JSON.stringify(_) });
|
|
3574
|
-
return A;
|
|
3575
|
-
}, []);
|
|
3576
|
-
}
|
|
3577
|
-
function p(m, y, E, v = {}) {
|
|
3578
|
-
var P;
|
|
3579
|
-
const A = [...e.value];
|
|
3580
|
-
let L = m.index;
|
|
3581
|
-
const H = y.toCondition(E), x = Object.keys(H).length > 0;
|
|
3582
|
-
if (L === null && !x && !v.forceCreateRule) return;
|
|
3583
|
-
if (L === null) {
|
|
3584
|
-
const F = A.findIndex((W) => !W.inverted && W.subject === m.subject);
|
|
3585
|
-
if (F !== -1)
|
|
3586
|
-
L = F;
|
|
3587
|
-
else {
|
|
3588
|
-
const W = t.value.find((Q) => Q.subject === m.subject);
|
|
3589
|
-
if (!W) return;
|
|
3590
|
-
const {
|
|
3591
|
-
category: V,
|
|
3592
|
-
showByFeatureFlag: Z,
|
|
3593
|
-
isCategoryCover: B,
|
|
3594
|
-
...te
|
|
3595
|
-
} = W;
|
|
3596
|
-
A.push({
|
|
3597
|
-
...te,
|
|
3598
|
-
actions: m.actions.length > 0 ? m.actions : te.actions
|
|
3599
|
-
}), L = A.length - 1;
|
|
3600
|
-
}
|
|
3601
|
-
}
|
|
3602
|
-
const _ = { ...A[L] };
|
|
3603
|
-
_.actions = [
|
|
3604
|
-
.../* @__PURE__ */ new Set([..._.actions, ...m.actions])
|
|
3605
|
-
];
|
|
3606
|
-
const T = Be(_), j = Dt(T, [{ builder: y, formValue: E }]);
|
|
3607
|
-
if (Object.keys(j).length === 0 ? delete _.conditions : _.conditions = JSON.stringify(j), A[L] = _, sn(m.subject, t.value)) {
|
|
3608
|
-
const F = k(m.subject, y), W = () => {
|
|
3609
|
-
var Z;
|
|
3610
|
-
M(m.subject, y), n(b(A, _, y)), (Z = v.afterCommit) == null || Z.call(v);
|
|
3611
|
-
}, V = () => {
|
|
3612
|
-
var Z;
|
|
3613
|
-
n(A), (Z = v.afterCommit) == null || Z.call(v);
|
|
3614
|
-
};
|
|
3615
|
-
if (F.length === 0) {
|
|
3616
|
-
W();
|
|
3617
|
-
return;
|
|
3618
|
-
}
|
|
3619
|
-
v.onOverridesConflict ? v.onOverridesConflict({ override: W, keep: V }) : V();
|
|
3620
|
-
return;
|
|
3621
|
-
}
|
|
3622
|
-
n(A), (P = v.afterCommit) == null || P.call(v);
|
|
3623
|
-
}
|
|
3624
|
-
function S(m, y, E = {}) {
|
|
3625
|
-
if (y.length === 0) return;
|
|
3626
|
-
const v = [...e.value];
|
|
3627
|
-
let A = v.findIndex((F) => !F.inverted && F.subject === m.subject), L = A === -1 ? void 0 : { ...v[A] }, H = Be(L ?? {}) ?? {};
|
|
3628
|
-
for (const F of y) {
|
|
3629
|
-
const W = F.mode === "inherit" ? F.builder.fromCondition(void 0) : F.form;
|
|
3630
|
-
H = Dt(H, [{ builder: F.builder, formValue: W }]);
|
|
3631
|
-
}
|
|
3632
|
-
const x = y.some((F) => F.mode === "custom");
|
|
3633
|
-
if (!L && (Object.keys(H).length > 0 || x)) {
|
|
3634
|
-
const F = t.value.find((te) => te.subject === m.subject);
|
|
3635
|
-
if (!F) return;
|
|
3636
|
-
const {
|
|
3637
|
-
category: W,
|
|
3638
|
-
showByFeatureFlag: V,
|
|
3639
|
-
isCategoryCover: Z,
|
|
3640
|
-
...B
|
|
3641
|
-
} = F;
|
|
3642
|
-
L = {
|
|
3643
|
-
...B,
|
|
3644
|
-
actions: m.actions.length > 0 ? m.actions : B.actions
|
|
3645
|
-
}, v.push(L), A = v.length - 1;
|
|
3646
|
-
}
|
|
3647
|
-
if (L) {
|
|
3648
|
-
const F = a(m.subject), W = F ? d(F) : void 0;
|
|
3649
|
-
if (!x && Object.keys(H).length === 0 && !!W && Mt(W, L))
|
|
3650
|
-
v.splice(A, 1), L = void 0;
|
|
3651
|
-
else {
|
|
3652
|
-
if (L.actions = [
|
|
3653
|
-
.../* @__PURE__ */ new Set([...L.actions, ...m.actions])
|
|
3654
|
-
], W)
|
|
3655
|
-
for (const Z of y)
|
|
3656
|
-
Z.mode === "inherit" && (H = {
|
|
3657
|
-
...H,
|
|
3658
|
-
...nt(Be(W), Z.builder)
|
|
3659
|
-
});
|
|
3660
|
-
Object.keys(H).length === 0 ? delete L.conditions : L.conditions = JSON.stringify(H), v[A] = L;
|
|
3661
|
-
}
|
|
3662
|
-
}
|
|
3663
|
-
const _ = () => {
|
|
3664
|
-
const F = new Set(r.value);
|
|
3665
|
-
for (const W of y) {
|
|
3666
|
-
const V = gt(m.subject, W.builder);
|
|
3667
|
-
W.mode === "custom" ? F.add(V) : F.delete(V);
|
|
3668
|
-
}
|
|
3669
|
-
r.value = F;
|
|
3670
|
-
}, T = (F) => {
|
|
3671
|
-
var W;
|
|
3672
|
-
_(), n(F), (W = E.afterCommit) == null || W.call(E);
|
|
3673
|
-
};
|
|
3674
|
-
if (!sn(m.subject, t.value) || !L) {
|
|
3675
|
-
T(v);
|
|
3676
|
-
return;
|
|
3677
|
-
}
|
|
3678
|
-
const j = y.map((F) => F.builder).filter((F) => k(m.subject, F).length > 0), P = () => {
|
|
3679
|
-
let F = v;
|
|
3680
|
-
for (const W of y.map((V) => V.builder))
|
|
3681
|
-
M(m.subject, W), F = b(F, L, W);
|
|
3682
|
-
T(F);
|
|
3683
|
-
};
|
|
3684
|
-
if (j.length > 0 && E.onOverridesConflict) {
|
|
3685
|
-
E.onOverridesConflict({ override: P, keep: () => T(v) });
|
|
3686
|
-
return;
|
|
3687
|
-
}
|
|
3688
|
-
j.length > 0 ? T(v) : P();
|
|
3689
|
-
}
|
|
3690
|
-
return {
|
|
3691
|
-
getCoverSubject: a,
|
|
3692
|
-
coverLabel: f,
|
|
3693
|
-
shouldShowInheritToggle: g,
|
|
3694
|
-
inheritMode: C,
|
|
3695
|
-
setInheritMode: w,
|
|
3696
|
-
inheritedSummary: O,
|
|
3697
|
-
getEffectiveActions: R,
|
|
3698
|
-
updateBuilderCondition: p,
|
|
3699
|
-
applyConditionDrafts: S
|
|
3700
|
-
};
|
|
3701
|
-
}
|
|
3702
|
-
const fo = { class: "h-[24px] w-[24px] flex items-center justify-center" }, _o = { class: "h-[24px] w-[24px] flex items-center justify-center" }, bo = "condition-form-select-menu", Lo = /* @__PURE__ */ Ae({
|
|
3703
|
-
__name: "PortalPermissionEditor",
|
|
3704
|
-
props: /* @__PURE__ */ tn({
|
|
3705
|
-
disable: {
|
|
3706
|
-
type: Boolean,
|
|
3707
|
-
default: !1
|
|
3708
|
-
},
|
|
3709
|
-
inheritPermissions: {
|
|
3710
|
-
type: Array,
|
|
3711
|
-
default: () => []
|
|
3712
|
-
},
|
|
3713
|
-
/**
|
|
3714
|
-
* 'all': every section in its own box (permission roles page).
|
|
3715
|
-
* 'workplace': only manageable restaurant / warehouse / usable POS roles ("Where they work").
|
|
3716
|
-
* 'portal': only the portal permission categories ("Portal access").
|
|
3717
|
-
* The member sheet renders the two parts in separate cards over the same rules.
|
|
3718
|
-
*/
|
|
3719
|
-
part: {
|
|
3720
|
-
type: String,
|
|
3721
|
-
default: "all"
|
|
3722
|
-
}
|
|
3723
|
-
}, {
|
|
3724
|
-
modelValue: { default: () => [] },
|
|
3725
|
-
modelModifiers: {}
|
|
3726
|
-
}),
|
|
3727
|
-
emits: /* @__PURE__ */ tn(["permissionChanged"], ["update:modelValue"]),
|
|
3728
|
-
setup(e, { emit: t }) {
|
|
3729
|
-
const n = pr(e, "modelValue"), r = e, a = z(() => r.part === "all" ? "trailing" : "leading"), o = z(
|
|
3730
|
-
() => r.part === "all" ? "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" : ""
|
|
3731
|
-
), f = t, { t: d } = Ke(), i = hr(), g = gr(), { breakpoints: C } = yr(), O = z(() => C.value.xs || C.value.sm), {
|
|
3732
|
-
fetchCustomReportPermissions: N,
|
|
3733
|
-
customReportPermissions: w
|
|
3734
|
-
} = Ir(), R = z(() => [
|
|
3735
|
-
...Gn,
|
|
3736
|
-
...w.value
|
|
3737
|
-
]), k = z(() => {
|
|
3738
|
-
const s = i.currentBusiness.value, c = i.currentCountry.value, h = c instanceof Object ? c.code : c;
|
|
3739
|
-
return co(s, h);
|
|
3740
|
-
});
|
|
3741
|
-
function M(s) {
|
|
3742
|
-
return R.value.find((c) => c.subject === s);
|
|
3743
|
-
}
|
|
3744
|
-
function b(s, c) {
|
|
3745
|
-
return rn(s).filter(
|
|
3746
|
-
(h) => {
|
|
3747
|
-
var D;
|
|
3748
|
-
return ((D = h.appliesToActions) == null ? void 0 : D.call(h, c)) ?? !0;
|
|
3749
|
-
}
|
|
3750
|
-
);
|
|
3751
|
-
}
|
|
3752
|
-
const p = z(() => {
|
|
3753
|
-
const s = R.value.filter((h) => !E.includes(h.subject)).map((h) => h.subject);
|
|
3754
|
-
return Er(
|
|
3755
|
-
r.inheritPermissions.map((h) => ({
|
|
3756
|
-
...h,
|
|
3757
|
-
permissions: h.permissions.filter((D) => s.includes(D.subject))
|
|
3758
|
-
}))
|
|
3759
|
-
).map((h) => ({
|
|
3760
|
-
id: h.subject,
|
|
3761
|
-
setNames: h.setNames
|
|
3762
|
-
}));
|
|
3763
|
-
}), S = z(() => {
|
|
3764
|
-
const s = r.inheritPermissions.map((c) => ({
|
|
3765
|
-
...c,
|
|
3766
|
-
permissions: c.permissions.filter(
|
|
3767
|
-
(h) => h.subject === ye.Subject.Business.inventory_stock
|
|
3768
|
-
)
|
|
3769
|
-
}));
|
|
3770
|
-
return Lt(
|
|
3771
|
-
s,
|
|
3772
|
-
"warehouseId",
|
|
3773
|
-
A.value.map((c) => c._id)
|
|
3774
|
-
);
|
|
3775
|
-
}), m = z(() => {
|
|
3776
|
-
const s = r.inheritPermissions.map((c) => ({
|
|
3777
|
-
...c,
|
|
3778
|
-
permissions: c.permissions.filter(
|
|
3779
|
-
(h) => h.subject === ye.Subject.Restaurant.restaurant
|
|
3780
|
-
)
|
|
3781
|
-
}));
|
|
3782
|
-
return Lt(
|
|
3783
|
-
s,
|
|
3784
|
-
"restaurantId",
|
|
3785
|
-
_.value.map((c) => c._id)
|
|
3786
|
-
);
|
|
3787
|
-
}), y = z(() => {
|
|
3788
|
-
const s = r.inheritPermissions.map((c) => ({
|
|
3789
|
-
...c,
|
|
3790
|
-
permissions: c.permissions.filter((h) => h.subject === ye.Subject.Business.role)
|
|
3791
|
-
}));
|
|
3792
|
-
return Lt(
|
|
3793
|
-
s,
|
|
3794
|
-
"roleId",
|
|
3795
|
-
T.value.map((c) => c._id)
|
|
3796
|
-
);
|
|
3797
|
-
}), E = [...wr], v = z(() => {
|
|
3798
|
-
var c;
|
|
3799
|
-
const s = (c = n.value) == null ? void 0 : c.find(
|
|
3800
|
-
(h) => h.subject === ye.Subject.Business.inventory_stock
|
|
3801
|
-
);
|
|
3802
|
-
return s ? s.conditions ? JSON.parse(s.conditions).warehouseId.$in : null : [];
|
|
3803
|
-
}), A = st([]), L = z(() => A.value.map((s) => ({
|
|
3804
|
-
label: s.profile.name,
|
|
3805
|
-
value: s._id
|
|
3806
|
-
})));
|
|
3807
|
-
function H(s) {
|
|
3808
|
-
const c = x(n.value, s);
|
|
3809
|
-
n.value = c;
|
|
3810
|
-
}
|
|
3811
|
-
function x(s, c) {
|
|
3812
|
-
let h = yt(
|
|
3813
|
-
s.filter((D) => D.subject !== ye.Subject.Business.inventory_stock)
|
|
3814
|
-
);
|
|
3815
|
-
if (!c || c.length > 0) {
|
|
3816
|
-
const D = {
|
|
3817
|
-
actions: [ye.Action.manage],
|
|
3818
|
-
subject: ye.Subject.Business.inventory_stock
|
|
3819
|
-
};
|
|
3820
|
-
c && (D.conditions = JSON.stringify({ warehouseId: { $in: c } })), h.push(D);
|
|
3821
|
-
}
|
|
3822
|
-
return h;
|
|
3823
|
-
}
|
|
3824
|
-
const { restaurants: _ } = i, T = Dr().roles, j = z(() => _.value.map((s) => ({
|
|
3825
|
-
label: `${s.profile.code ? s.profile.code + "-" : ""}${s.profile.name}`,
|
|
3826
|
-
value: s._id
|
|
3827
|
-
}))), P = z(() => _.value.reduce((s, c) => (s[c._id] = T.value.filter((h) => h.restaurants.some((D) => D.id === c._id)).map((h) => h._id), s), {})), F = z(() => Cr(n.value));
|
|
3828
|
-
function W(s) {
|
|
3829
|
-
const c = Z(n.value, s);
|
|
3830
|
-
n.value = c;
|
|
3831
|
-
}
|
|
3832
|
-
const V = z(() => Nr(n.value));
|
|
3833
|
-
function Z(s, c) {
|
|
3834
|
-
var D;
|
|
3835
|
-
let h = yt(
|
|
3836
|
-
s.filter(
|
|
3837
|
-
(U) => U.subject !== ye.Subject.Business.restaurant && U.subject !== ye.Subject.Restaurant.restaurant
|
|
3838
|
-
)
|
|
3839
|
-
);
|
|
3840
|
-
if (!c || c.length > 0) {
|
|
3841
|
-
const {
|
|
3842
|
-
category: U,
|
|
3843
|
-
showByFeatureFlag: u,
|
|
3844
|
-
...I
|
|
3845
|
-
} = Rr.restaurant;
|
|
3846
|
-
h.push(I);
|
|
3847
|
-
const K = {
|
|
3848
|
-
actions: [ye.Action.manage],
|
|
3849
|
-
subject: ye.Subject.Restaurant.restaurant
|
|
3850
|
-
};
|
|
3851
|
-
c && (K.conditions = JSON.stringify({ restaurantId: { $in: c } })), h.push(K);
|
|
3852
|
-
}
|
|
3853
|
-
if (c) {
|
|
3854
|
-
const U = [
|
|
3855
|
-
...new Set(c.map((I) => P.value[I]).flatMap((I) => I))
|
|
3856
|
-
], u = T.value.map((I) => I._id);
|
|
3857
|
-
U.length !== u.length && (h = te(
|
|
3858
|
-
h,
|
|
3859
|
-
(D = V.value || u) == null ? void 0 : D.filter((I) => U.includes(I))
|
|
3860
|
-
));
|
|
3861
|
-
}
|
|
3862
|
-
return h;
|
|
3863
|
-
}
|
|
3864
|
-
function B(s) {
|
|
3865
|
-
const c = te(n.value, s);
|
|
3866
|
-
n.value = c;
|
|
3867
|
-
}
|
|
3868
|
-
function te(s, c) {
|
|
3869
|
-
let h = yt(
|
|
3870
|
-
s.filter((D) => D.subject !== ye.Subject.Business.role)
|
|
3871
|
-
);
|
|
3872
|
-
if (c && c.length > 0) {
|
|
3873
|
-
const D = {
|
|
3874
|
-
actions: [ye.Action.manage],
|
|
3875
|
-
subject: ye.Subject.Business.role,
|
|
3876
|
-
conditions: JSON.stringify({ roleId: { $in: c } })
|
|
3877
|
-
};
|
|
3878
|
-
h.push(D);
|
|
3879
|
-
}
|
|
3880
|
-
return h;
|
|
3881
|
-
}
|
|
3882
|
-
xn(async () => {
|
|
3883
|
-
await Promise.all([
|
|
3884
|
-
r.part !== "portal" && ao.readWarehouses().then((s) => A.value = s),
|
|
3885
|
-
N()
|
|
3886
|
-
]);
|
|
3887
|
-
});
|
|
3888
|
-
const Q = z(() => Zn(
|
|
3889
|
-
n.value,
|
|
3890
|
-
Yn
|
|
3891
|
-
).filter((h) => {
|
|
3892
|
-
const D = h.source;
|
|
3893
|
-
return (D == null ? void 0 : D.type) !== "systemPermissionSet" ? !0 : h.actions.includes("manage");
|
|
3894
|
-
}).map((h) => {
|
|
3895
|
-
if (h.inverted) return h;
|
|
3896
|
-
const D = h.actions;
|
|
3897
|
-
if (!D.includes("manage")) return h;
|
|
3898
|
-
const U = M(h.subject);
|
|
3899
|
-
if (!U) return h;
|
|
3900
|
-
const u = U.actions;
|
|
3901
|
-
return u.length <= 1 || u.filter((K) => !D.includes(K)).length === 0 ? h : { ...h, actions: [...u] };
|
|
3902
|
-
}));
|
|
3903
|
-
function de(s) {
|
|
3904
|
-
n.value = oo(
|
|
3905
|
-
Q.value,
|
|
3906
|
-
s,
|
|
3907
|
-
n.value,
|
|
3908
|
-
M
|
|
3909
|
-
);
|
|
3910
|
-
}
|
|
3911
|
-
const ve = z(() => new Set(
|
|
3912
|
-
R.value.filter((s) => rn(s.subject).length > 0).map((s) => s.subject)
|
|
3913
|
-
)), pe = z(() => {
|
|
3914
|
-
const s = /* @__PURE__ */ new Map();
|
|
3915
|
-
return Q.value.map((c) => ({
|
|
3916
|
-
rule: c,
|
|
3917
|
-
index: n.value.findIndex(
|
|
3918
|
-
(h) => !h.inverted && h.subject === c.subject
|
|
3919
|
-
)
|
|
3920
|
-
})).filter(({ rule: c }) => !c.inverted).forEach(({ rule: c, index: h }) => {
|
|
3921
|
-
var I;
|
|
3922
|
-
const D = c.actions, U = b(c.subject, D);
|
|
3923
|
-
if (U.length === 0) return;
|
|
3924
|
-
let u;
|
|
3925
|
-
try {
|
|
3926
|
-
u = c.conditions ? JSON.parse(c.conditions) : void 0;
|
|
3927
|
-
} catch {
|
|
3928
|
-
u = void 0;
|
|
3929
|
-
}
|
|
3930
|
-
s.set(c.subject, {
|
|
3931
|
-
index: h >= 0 ? h : null,
|
|
3932
|
-
subject: c.subject,
|
|
3933
|
-
label: ((I = M(c.subject)) == null ? void 0 : I.label) ?? c.subject,
|
|
3934
|
-
actions: D,
|
|
3935
|
-
// Each builder only ever sees its own slice of the stored condition.
|
|
3936
|
-
sections: U.map((K) => ({
|
|
3937
|
-
builder: K,
|
|
3938
|
-
formValue: K.fromCondition(nt(u, K))
|
|
3939
|
-
}))
|
|
3940
|
-
});
|
|
3941
|
-
}), s;
|
|
3942
|
-
}), ae = mo(n, R, (s) => {
|
|
3943
|
-
n.value = s;
|
|
3944
|
-
}), le = Or(n), Re = st(null);
|
|
3945
|
-
function Y(s, c) {
|
|
3946
|
-
const h = pe.value.get(s);
|
|
3947
|
-
if (h) return h;
|
|
3948
|
-
const D = ae.getEffectiveActions(s), U = b(s, D);
|
|
3949
|
-
if (U.length !== 0)
|
|
3950
|
-
return {
|
|
3951
|
-
index: null,
|
|
3952
|
-
subject: s,
|
|
3953
|
-
label: c,
|
|
3954
|
-
actions: D,
|
|
3955
|
-
sections: U.map((u) => ({
|
|
3956
|
-
builder: u,
|
|
3957
|
-
formValue: u.fromCondition(void 0)
|
|
3958
|
-
}))
|
|
3959
|
-
};
|
|
3960
|
-
}
|
|
3961
|
-
function fe(s, c) {
|
|
3962
|
-
const h = le.getDraft({ subject: s.subject, builderKey: c.builderKey });
|
|
3963
|
-
if (h) return h.formValue;
|
|
3964
|
-
const D = s.sections.find((U) => U.builder.builderKey === c.builderKey);
|
|
3965
|
-
return D == null ? void 0 : D.formValue;
|
|
3966
|
-
}
|
|
3967
|
-
function Je(s, c) {
|
|
3968
|
-
const h = le.getDraft({ subject: s.subject, builderKey: c.builderKey });
|
|
3969
|
-
return h != null && h.inheritMode ? h.inheritMode : ae.inheritMode(s, c);
|
|
3970
|
-
}
|
|
3971
|
-
function Qe(s, c, h) {
|
|
3972
|
-
const D = le.getDraft({
|
|
3973
|
-
subject: s.subject,
|
|
3974
|
-
builderKey: c.builderKey
|
|
3975
|
-
});
|
|
3976
|
-
le.setDraft(
|
|
3977
|
-
{ subject: s.subject, builderKey: c.builderKey },
|
|
3978
|
-
{
|
|
3979
|
-
formValue: h,
|
|
3980
|
-
inheritMode: (D == null ? void 0 : D.inheritMode) ?? Je(s, c)
|
|
3981
|
-
}
|
|
3982
|
-
);
|
|
3983
|
-
}
|
|
3984
|
-
function We(s, c, h) {
|
|
3985
|
-
const D = le.getDraft({
|
|
3986
|
-
subject: s.subject,
|
|
3987
|
-
builderKey: c.builderKey
|
|
3988
|
-
}), U = s.sections.find((u) => u.builder.builderKey === c.builderKey);
|
|
3989
|
-
le.setDraft(
|
|
3990
|
-
{ subject: s.subject, builderKey: c.builderKey },
|
|
3991
|
-
{
|
|
3992
|
-
formValue: (D == null ? void 0 : D.formValue) ?? (U == null ? void 0 : U.formValue),
|
|
3993
|
-
inheritMode: h
|
|
3994
|
-
}
|
|
3995
|
-
);
|
|
3996
|
-
}
|
|
3997
|
-
function Fe(s) {
|
|
3998
|
-
return le.hasDraftsForSubject(s);
|
|
3999
|
-
}
|
|
4000
|
-
function Pe(s, c) {
|
|
4001
|
-
const h = s.sections.flatMap((D) => {
|
|
4002
|
-
const U = le.getDraft({
|
|
4003
|
-
subject: s.subject,
|
|
4004
|
-
builderKey: D.builder.builderKey
|
|
4005
|
-
});
|
|
4006
|
-
return U ? [{ builder: D.builder, form: U.formValue, mode: U.inheritMode ?? "custom" }] : [];
|
|
4007
|
-
});
|
|
4008
|
-
ae.applyConditionDrafts(s, h, {
|
|
4009
|
-
afterCommit: () => {
|
|
4010
|
-
le.clearDraftsForSubject(s.subject), c();
|
|
4011
|
-
},
|
|
4012
|
-
onOverridesConflict: l(s).onOverridesConflict
|
|
4013
|
-
});
|
|
4014
|
-
}
|
|
4015
|
-
function Ge(s) {
|
|
4016
|
-
return s.sections.some((c) => ae.shouldShowInheritToggle(s, c.builder) ? ae.inheritMode(s, c.builder) === "custom" : Object.keys(c.builder.toCondition(c.formValue)).length > 0);
|
|
4017
|
-
}
|
|
4018
|
-
let je = !1;
|
|
4019
|
-
function l(s, c = {}) {
|
|
4020
|
-
return {
|
|
4021
|
-
...c,
|
|
4022
|
-
onOverridesConflict: ({ override: h, keep: D }) => {
|
|
4023
|
-
je || (je = !0, g.open({
|
|
4024
|
-
title: d("team.memberForm.permissions.conditionCover.confirmTitle"),
|
|
4025
|
-
message: d("team.memberForm.permissions.conditionCover.confirmMessage", {
|
|
4026
|
-
cover: s.label
|
|
4027
|
-
}),
|
|
4028
|
-
minWidth: C.value.lg ? 588 : 0,
|
|
4029
|
-
zIndex: 200,
|
|
4030
|
-
primaryActions: {
|
|
4031
|
-
text: d("team.memberForm.permissions.conditionCover.override"),
|
|
4032
|
-
close: !1
|
|
4033
|
-
},
|
|
4034
|
-
secondaryActions: {
|
|
4035
|
-
text: d("team.memberForm.permissions.conditionCover.keep"),
|
|
4036
|
-
close: !1
|
|
4037
|
-
}
|
|
4038
|
-
}).onPrimary(() => {
|
|
4039
|
-
h(), je = !1, g.close();
|
|
4040
|
-
}).onSecondary(() => {
|
|
4041
|
-
D(), je = !1, g.close();
|
|
4042
|
-
}).onClose(() => {
|
|
4043
|
-
je = !1;
|
|
4044
|
-
}));
|
|
4045
|
-
}
|
|
4046
|
-
};
|
|
4047
|
-
}
|
|
4048
|
-
return wt(
|
|
4049
|
-
n,
|
|
4050
|
-
(s) => {
|
|
4051
|
-
f("permissionChanged", s);
|
|
4052
|
-
},
|
|
4053
|
-
{ deep: !0 }
|
|
4054
|
-
), (s, c) => {
|
|
4055
|
-
const h = De("FmIcon"), D = De("FmBottomSheet"), U = De("FmPopover");
|
|
4056
|
-
return J(), re("div", {
|
|
4057
|
-
class: Ee(["flex flex-col", e.part === "all" ? "gap-32" : "gap-16"])
|
|
4058
|
-
}, [
|
|
4059
|
-
e.part !== "workplace" ? (J(), re("div", {
|
|
4060
|
-
key: 0,
|
|
4061
|
-
class: Ee(o.value)
|
|
4062
|
-
}, [
|
|
4063
|
-
oe(Ha, {
|
|
4064
|
-
"model-value": Q.value,
|
|
4065
|
-
"excluded-subjects": E,
|
|
4066
|
-
"additional-permissions": X(w),
|
|
4067
|
-
layout: a.value,
|
|
4068
|
-
"onUpdate:modelValue": de
|
|
4069
|
-
}, tt({ _: 2 }, [
|
|
4070
|
-
Ce(p.value, (u) => ({
|
|
4071
|
-
name: `checkbox-${u.id}-append`,
|
|
4072
|
-
fn: ce(() => [
|
|
4073
|
-
oe(vt, { item: u }, null, 8, ["item"])
|
|
4074
|
-
])
|
|
4075
|
-
})),
|
|
4076
|
-
Ce(ve.value, (u) => ({
|
|
4077
|
-
name: `checkbox-${u}-icon`,
|
|
4078
|
-
fn: ce(({ option: I, isEffectiveSelected: K }) => [
|
|
4079
|
-
K && Y(u, I.label) ? (J(), re(we, { key: 0 }, [
|
|
4080
|
-
O.value ? (J(), Te(D, {
|
|
4081
|
-
key: 0,
|
|
4082
|
-
"model-value": Re.value === u,
|
|
4083
|
-
header: X(d)("team.memberForm.permissions.conditionTitle", {
|
|
4084
|
-
context: Y(u, I.label).label
|
|
4085
|
-
}),
|
|
4086
|
-
"dismiss-away": "",
|
|
4087
|
-
"z-index": 100,
|
|
4088
|
-
class: "h-5 flex items-center",
|
|
4089
|
-
"onUpdate:modelValue": ($) => {
|
|
4090
|
-
Re.value = $ ? u : null, $ || X(le).clearDraftsForSubject(u);
|
|
4091
|
-
}
|
|
4092
|
-
}, {
|
|
4093
|
-
"bottom-sheet-button": ce(() => [
|
|
4094
|
-
ie("div", fo, [
|
|
4095
|
-
oe(h, {
|
|
4096
|
-
name: "settings",
|
|
4097
|
-
size: "sm",
|
|
4098
|
-
class: Ee([
|
|
4099
|
-
"cursor-pointer transition-colors",
|
|
4100
|
-
Ge(Y(u, I.label)) ? "text-fm-color-primary-main" : "text-fm-color-neutral-gray-400 hover:text-fm-color-neutral-gray-600"
|
|
4101
|
-
])
|
|
4102
|
-
}, null, 8, ["class"])
|
|
4103
|
-
])
|
|
4104
|
-
]),
|
|
4105
|
-
default: ce(() => [
|
|
4106
|
-
oe(Fn, {
|
|
4107
|
-
entry: Y(u, I.label),
|
|
4108
|
-
builders: Y(u, I.label).sections.map(($) => $.builder),
|
|
4109
|
-
subject: u,
|
|
4110
|
-
"time-zone": k.value,
|
|
4111
|
-
"cover-override": X(ae),
|
|
4112
|
-
"inherit-mode-for": ($) => Je(Y(u, I.label), $),
|
|
4113
|
-
"form-value-for": ($) => fe(Y(u, I.label), $),
|
|
4114
|
-
"has-changes": Fe(u),
|
|
4115
|
-
disable: e.disable,
|
|
4116
|
-
"full-width": !0,
|
|
4117
|
-
onUpdateInheritMode: ({ builder: $, mode: me }) => We(Y(u, I.label), $, me),
|
|
4118
|
-
onUpdateForm: ({ builder: $, form: me }) => Qe(Y(u, I.label), $, me),
|
|
4119
|
-
onApply: ($) => Pe(Y(u, I.label), () => Re.value = null)
|
|
4120
|
-
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4121
|
-
]),
|
|
4122
|
-
_: 2
|
|
4123
|
-
}, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (J(), Te(U, {
|
|
4124
|
-
key: 1,
|
|
4125
|
-
disabled: e.disable,
|
|
4126
|
-
"z-index": 100,
|
|
4127
|
-
"exclude-el-from-click-outside": [bo],
|
|
4128
|
-
class: "h-5 flex items-center",
|
|
4129
|
-
onPopoverChanged: ($) => {
|
|
4130
|
-
$ || X(le).clearDraftsForSubject(u);
|
|
4131
|
-
}
|
|
4132
|
-
}, {
|
|
4133
|
-
"popover-button": ce(() => [
|
|
4134
|
-
ie("div", _o, [
|
|
4135
|
-
oe(h, {
|
|
4136
|
-
name: "settings",
|
|
4137
|
-
size: "sm",
|
|
4138
|
-
class: Ee([
|
|
4139
|
-
"cursor-pointer transition-colors",
|
|
4140
|
-
Ge(Y(u, I.label)) ? "text-fm-color-primary-main" : "text-fm-color-neutral-gray-400 hover:text-fm-color-neutral-gray-600"
|
|
4141
|
-
])
|
|
4142
|
-
}, null, 8, ["class"])
|
|
4143
|
-
])
|
|
4144
|
-
]),
|
|
4145
|
-
default: ce(({ hide: $ }) => [
|
|
4146
|
-
oe(Fn, {
|
|
4147
|
-
entry: Y(u, I.label),
|
|
4148
|
-
builders: Y(u, I.label).sections.map((me) => me.builder),
|
|
4149
|
-
subject: u,
|
|
4150
|
-
"time-zone": k.value,
|
|
4151
|
-
"cover-override": X(ae),
|
|
4152
|
-
title: X(d)("team.memberForm.permissions.conditionTitle", {
|
|
4153
|
-
context: Y(u, I.label).label
|
|
4154
|
-
}),
|
|
4155
|
-
"inherit-mode-for": (me) => Je(Y(u, I.label), me),
|
|
4156
|
-
"form-value-for": (me) => fe(Y(u, I.label), me),
|
|
4157
|
-
"has-changes": Fe(u),
|
|
4158
|
-
disable: e.disable,
|
|
4159
|
-
onUpdateInheritMode: ({ builder: me, mode: Ze }) => We(
|
|
4160
|
-
Y(u, I.label),
|
|
4161
|
-
me,
|
|
4162
|
-
Ze
|
|
4163
|
-
),
|
|
4164
|
-
onUpdateForm: ({ builder: me, form: Ze }) => Qe(Y(u, I.label), me, Ze),
|
|
4165
|
-
onApply: (me) => Pe(Y(u, I.label), $)
|
|
4166
|
-
}, null, 8, ["entry", "builders", "subject", "time-zone", "cover-override", "title", "inherit-mode-for", "form-value-for", "has-changes", "disable", "onUpdateInheritMode", "onUpdateForm", "onApply"])
|
|
4167
|
-
]),
|
|
4168
|
-
_: 2
|
|
4169
|
-
}, 1032, ["disabled", "exclude-el-from-click-outside", "onPopoverChanged"]))
|
|
4170
|
-
], 64)) : (J(), Te(h, {
|
|
4171
|
-
key: 1,
|
|
4172
|
-
name: "settings",
|
|
4173
|
-
size: "sm",
|
|
4174
|
-
class: "invisible"
|
|
4175
|
-
}))
|
|
4176
|
-
])
|
|
4177
|
-
}))
|
|
4178
|
-
]), 1032, ["model-value", "additional-permissions", "layout"])
|
|
4179
|
-
], 2)) : Ne("", !0),
|
|
4180
|
-
e.part !== "portal" ? (J(), re("div", {
|
|
4181
|
-
key: 1,
|
|
4182
|
-
class: Ee(o.value)
|
|
4183
|
-
}, [
|
|
4184
|
-
oe(Dn, {
|
|
4185
|
-
"model-value": v.value,
|
|
4186
|
-
options: L.value,
|
|
4187
|
-
context: X(d)("team.labels.warehouse"),
|
|
4188
|
-
layout: a.value,
|
|
4189
|
-
"onUpdate:modelValue": H
|
|
4190
|
-
}, tt({ _: 2 }, [
|
|
4191
|
-
Ce(S.value, (u) => ({
|
|
4192
|
-
name: `checkbox-${u.id}-append`,
|
|
4193
|
-
fn: ce(() => [
|
|
4194
|
-
oe(vt, { item: u }, null, 8, ["item"])
|
|
4195
|
-
])
|
|
4196
|
-
}))
|
|
4197
|
-
]), 1032, ["model-value", "options", "context", "layout"])
|
|
4198
|
-
], 2)) : Ne("", !0),
|
|
4199
|
-
e.part !== "portal" ? (J(), re("div", {
|
|
4200
|
-
key: 2,
|
|
4201
|
-
class: Ee([o.value, { "order-first": e.part === "workplace" }])
|
|
4202
|
-
}, [
|
|
4203
|
-
oe(Dn, {
|
|
4204
|
-
"model-value": F.value,
|
|
4205
|
-
options: j.value,
|
|
4206
|
-
context: X(d)("team.labels.restaurant"),
|
|
4207
|
-
layout: a.value,
|
|
4208
|
-
"onUpdate:modelValue": W
|
|
4209
|
-
}, tt({ _: 2 }, [
|
|
4210
|
-
Ce(m.value, (u) => ({
|
|
4211
|
-
name: `checkbox-${u.id}-append`,
|
|
4212
|
-
fn: ce(() => [
|
|
4213
|
-
oe(vt, { item: u }, null, 8, ["item"])
|
|
4214
|
-
])
|
|
4215
|
-
}))
|
|
4216
|
-
]), 1032, ["model-value", "options", "context", "layout"])
|
|
4217
|
-
], 2)) : Ne("", !0),
|
|
4218
|
-
e.part !== "portal" ? (J(), re("div", {
|
|
4219
|
-
key: 3,
|
|
4220
|
-
class: Ee(o.value)
|
|
4221
|
-
}, [
|
|
4222
|
-
oe(to, {
|
|
4223
|
-
roles: X(T),
|
|
4224
|
-
"model-value": V.value,
|
|
4225
|
-
"restaurant-ids": F.value,
|
|
4226
|
-
layout: a.value,
|
|
4227
|
-
"onUpdate:modelValue": B
|
|
4228
|
-
}, tt({ _: 2 }, [
|
|
4229
|
-
Ce(y.value, (u) => ({
|
|
4230
|
-
name: `checkbox-${u.id}-append`,
|
|
4231
|
-
fn: ce(() => [
|
|
4232
|
-
oe(vt, { item: u }, null, 8, ["item"])
|
|
4233
|
-
])
|
|
4234
|
-
}))
|
|
4235
|
-
]), 1032, ["roles", "model-value", "restaurant-ids", "layout"])
|
|
4236
|
-
], 2)) : Ne("", !0)
|
|
4237
|
-
], 2);
|
|
4238
|
-
};
|
|
4239
|
-
}
|
|
4240
|
-
});
|
|
4241
|
-
export {
|
|
4242
|
-
Lo as _
|
|
4243
|
-
};
|