@feedmepos/mf-hrm-portal 2.3.4-dev → 2.4.0

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.
Files changed (310) hide show
  1. package/dist/{ApprovalCodeList-C_F98cwM.js → ApprovalCodeList-D62tXKEd.js} +15 -14
  2. package/dist/AuditLogList-DQOdhFJm.js +2021 -0
  3. package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BDT1AfXa.js +438 -0
  4. package/dist/EmployeeList-Bd211chl.js +776 -0
  5. package/dist/FormItem.vue_vue_type_script_setup_true_lang-CUBQnkkY.js +45 -0
  6. package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +49 -0
  7. package/dist/{GrantUserList-BZGwZLsp.js → GrantUserList-DaUUILOT.js} +16 -15
  8. package/dist/{Main-CvVhcEJ-.js → Main-B95BdgQd.js} +5 -5
  9. package/dist/Main-CvGjvEQL.js +96 -0
  10. package/dist/{Main-iG516Bly.js → Main-Dh3E2cEf.js} +11 -11
  11. package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +243 -0
  12. package/dist/{PermissionSetList-COn_Nrzd.js → PermissionSetList-BIzlo_EV.js} +102 -100
  13. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BYYiW77c.js +4181 -0
  14. package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CSYNrTGr.js +35 -0
  15. package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +132 -0
  16. package/dist/RoleList-QJV3cGvV.js +740 -0
  17. package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DsKfRa5Z.js +544 -0
  18. package/dist/ScheduleGeneralPage-D6NPsdrU.js +811 -0
  19. package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-kYGNELLb.js +2556 -0
  20. package/dist/SchedulePage-CO_ZP2QD.js +19446 -0
  21. package/dist/SchedulePositionPage-DFjWfRwI.js +282 -0
  22. package/dist/SelectFilter-B94Z_Fat.js +263 -0
  23. package/dist/TeamMemberList-BbGMw0jg.js +1150 -0
  24. package/dist/{TimesheetList-DoNzT6xQ.js → TimesheetList-DiTCj2H7.js} +11 -11
  25. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-n8cnb0Zw.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-B97k3KNz.js} +4 -4
  26. package/dist/{app-BYPvZve5.js → app-BRlNuQIz.js} +11579 -6690
  27. package/dist/app.js +3 -3
  28. package/dist/{approval-code-CeijALXj.js → approval-code-D6eLRwC7.js} +4 -4
  29. package/dist/{dayjs.min-CS0wjvq4.js → dayjs.min-BaLuYA95.js} +13 -13
  30. package/dist/{employee-DH4Wibqh.js → employee-DF_QGtpu.js} +71 -67
  31. package/dist/{grant-user-C0ko4LW8.js → grant-user-CdkuTYlZ.js} +2 -2
  32. package/dist/{iteration-Cnj0KTDr.js → iteration-t4kb_i13.js} +1 -1
  33. package/dist/{lodash-DAd2V4v-.js → lodash-Dv0NUeUP.js} +1 -1
  34. package/dist/object-Dwyg2LgX.js +16 -0
  35. package/dist/restaurant-D2q9eNtu.js +2685 -0
  36. package/dist/{role-DSu9cpI6.js → role-y253W1Ep.js} +20 -22
  37. package/dist/{rule-BmRzz26L.js → rule-DaFOMP6z.js} +164 -172
  38. package/dist/src/api/audit-log/index.d.ts +6 -0
  39. package/dist/src/api/employee/index.d.ts +2 -2
  40. package/dist/src/api/restaurant/index.d.ts +2 -0
  41. package/dist/src/api/schedule/index.d.ts +68 -0
  42. package/dist/src/components/AppForm.vue.d.ts +2 -2
  43. package/dist/src/components/CheckboxInput.vue.d.ts +2 -2
  44. package/dist/src/components/CollapsibleWrapper.vue.d.ts +3 -11
  45. package/dist/src/components/layout/PortalShell.vue.d.ts +12 -0
  46. package/dist/src/components/layout/withScheduleShell.d.ts +10 -0
  47. package/dist/src/composables/useDiscardConfirm.d.ts +3 -1
  48. package/dist/src/composables/useMessage.d.ts +8 -2
  49. package/dist/src/composables/useTenant.d.ts +11 -0
  50. package/dist/src/helpers/string.d.ts +1 -10
  51. package/dist/src/router/courtGuard.d.ts +4 -0
  52. package/dist/src/router/shared.d.ts +3 -2
  53. package/dist/src/stores/approval-code.d.ts +1 -1
  54. package/dist/src/stores/employee.d.ts +14 -14
  55. package/dist/src/stores/grant-user.d.ts +1 -1
  56. package/dist/src/stores/permission-assignment.d.ts +2 -2
  57. package/dist/src/stores/permission-set.d.ts +2 -2
  58. package/dist/src/stores/restaurant.d.ts +9 -9
  59. package/dist/src/stores/role.d.ts +2 -2
  60. package/dist/src/stores/team.d.ts +2 -32
  61. package/dist/src/stores/timesheet.d.ts +2 -2
  62. package/dist/src/types/employee.d.ts +1 -0
  63. package/dist/src/types/schedule.d.ts +23 -0
  64. package/dist/src/types/team.d.ts +1 -17
  65. package/dist/src/views/audit-log/constants.d.ts +9 -30
  66. package/dist/src/views/audit-log/locales/index.d.ts +532 -0
  67. package/dist/src/views/audit-log/pos-row.d.ts +27 -0
  68. package/dist/src/views/audit-log/useTraceIdDeepLink.d.ts +19 -0
  69. package/dist/src/views/hr/locales/index.d.ts +4 -24
  70. package/dist/src/views/hr/role/RoleForm.vue.d.ts +2 -29
  71. package/dist/src/views/scheduling/ScheduleGeneralPage.vue.d.ts +3 -0
  72. package/dist/src/views/scheduling/SchedulePage.vue.d.ts +3 -0
  73. package/dist/src/views/scheduling/SchedulePositionPage.vue.d.ts +3 -0
  74. package/dist/src/views/scheduling/components/ScheduleAddEmployeeIdentitySection.vue.d.ts +6 -0
  75. package/dist/src/views/scheduling/components/ScheduleAddEmployeeModal.vue.d.ts +12 -0
  76. package/dist/src/views/scheduling/components/ScheduleAddEmployeeModeStep.vue.d.ts +6 -0
  77. package/dist/src/views/scheduling/components/ScheduleAddEmployeePosAccessSection.vue.d.ts +6 -0
  78. package/dist/src/views/scheduling/components/ScheduleAddEmployeePositionsSection.vue.d.ts +10 -0
  79. package/dist/src/views/scheduling/components/ScheduleAddEmployeeSchedulingSection.vue.d.ts +6 -0
  80. package/dist/src/views/scheduling/components/ScheduleAddPickPopover.vue.d.ts +6 -0
  81. package/dist/src/views/scheduling/components/ScheduleAddPositionModal.vue.d.ts +6 -0
  82. package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +41 -0
  83. package/dist/src/views/scheduling/components/ScheduleAutoScheduleDetailsModal.vue.d.ts +6 -0
  84. package/dist/src/views/scheduling/components/ScheduleAutoScheduleDoneArt.vue.d.ts +2 -0
  85. package/dist/src/views/{team/member/ExistingMemberNotice.vue.d.ts → scheduling/components/ScheduleAutoScheduleModal.vue.d.ts} +5 -6
  86. package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +25 -0
  87. package/dist/src/views/scheduling/components/ScheduleBoardEditOverlays.vue.d.ts +17 -0
  88. package/dist/src/views/scheduling/components/ScheduleBoardEmployeeRows.vue.d.ts +31 -0
  89. package/dist/src/views/scheduling/components/ScheduleBoardGridHeader.vue.d.ts +29 -0
  90. package/dist/src/views/scheduling/components/ScheduleBoardInteractionOverlays.vue.d.ts +34 -0
  91. package/dist/src/views/scheduling/components/ScheduleBoardOnboardingOverlays.vue.d.ts +26 -0
  92. package/dist/src/views/scheduling/components/ScheduleBoardRails.vue.d.ts +17 -0
  93. package/dist/src/views/scheduling/components/ScheduleBoardToolbar.vue.d.ts +38 -0
  94. package/dist/src/views/scheduling/components/ScheduleBoardUtilityOverlays.vue.d.ts +22 -0
  95. package/dist/src/views/scheduling/components/ScheduleButton.vue.d.ts +23 -0
  96. package/dist/src/views/scheduling/components/ScheduleChangeEmployeeModal.vue.d.ts +8 -0
  97. package/dist/src/views/scheduling/components/ScheduleCloneOutletModal.vue.d.ts +6 -0
  98. package/dist/src/views/scheduling/components/ScheduleCoach.vue.d.ts +6 -0
  99. package/dist/src/views/scheduling/components/ScheduleCompletionDialog.vue.d.ts +15 -0
  100. package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +33 -0
  101. package/dist/src/views/scheduling/components/ScheduleContextMenu.vue.d.ts +17 -0
  102. package/dist/src/views/scheduling/components/ScheduleCostRail.vue.d.ts +8 -0
  103. package/dist/src/views/scheduling/components/ScheduleCostRailEmptyArt.vue.d.ts +2 -0
  104. package/dist/src/views/scheduling/components/ScheduleDateRangePopover.vue.d.ts +6 -0
  105. package/dist/src/views/scheduling/components/ScheduleDayNotePopover.vue.d.ts +6 -0
  106. package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +17 -0
  107. package/dist/src/views/scheduling/components/ScheduleDemandRow.vue.d.ts +23 -0
  108. package/dist/src/views/scheduling/components/ScheduleDemandSheet.vue.d.ts +10 -0
  109. package/dist/src/views/scheduling/components/ScheduleDotsIcon.vue.d.ts +2 -0
  110. package/dist/src/views/scheduling/components/ScheduleEmployeeDetailPanel.vue.d.ts +12 -0
  111. package/dist/src/views/scheduling/components/ScheduleEmployeeIdentity.vue.d.ts +17 -0
  112. package/dist/src/views/scheduling/components/ScheduleExportPreview.vue.d.ts +7 -0
  113. package/dist/src/views/scheduling/components/ScheduleFilterBar.vue.d.ts +18 -0
  114. package/dist/src/views/scheduling/components/ScheduleGapPopover.vue.d.ts +6 -0
  115. package/dist/src/views/scheduling/components/ScheduleGridHeader.vue.d.ts +18 -0
  116. package/dist/src/views/scheduling/components/ScheduleGridSkeleton.vue.d.ts +2 -0
  117. package/dist/src/views/scheduling/components/ScheduleLeaveEditModal.vue.d.ts +6 -0
  118. package/dist/src/views/scheduling/components/ScheduleLoadState.vue.d.ts +9 -0
  119. package/dist/src/views/scheduling/components/ScheduleModal.vue.d.ts +26 -0
  120. package/dist/src/views/scheduling/components/ScheduleOnboardingAssignPositionModal.vue.d.ts +6 -0
  121. package/dist/src/views/scheduling/components/ScheduleOnboardingClosedDayConfirm.vue.d.ts +6 -0
  122. package/dist/src/views/scheduling/components/ScheduleOnboardingDemandDays.vue.d.ts +6 -0
  123. package/dist/src/views/scheduling/components/ScheduleOnboardingDemandFooter.vue.d.ts +6 -0
  124. package/dist/src/views/scheduling/components/ScheduleOnboardingDemandHeader.vue.d.ts +6 -0
  125. package/dist/src/views/scheduling/components/ScheduleOnboardingDoneArt.vue.d.ts +2 -0
  126. package/dist/src/views/scheduling/components/ScheduleOnboardingHoursProfileNotice.vue.d.ts +10 -0
  127. package/dist/src/views/scheduling/components/ScheduleOnboardingPositions.vue.d.ts +6 -0
  128. package/dist/src/views/scheduling/components/ScheduleOnboardingReview.vue.d.ts +6 -0
  129. package/dist/src/views/scheduling/components/ScheduleOnboardingSettings.vue.d.ts +6 -0
  130. package/dist/src/views/scheduling/components/ScheduleOnboardingWelcome.vue.d.ts +11 -0
  131. package/dist/src/views/scheduling/components/ScheduleOnboardingWizard.vue.d.ts +9 -0
  132. package/dist/src/views/scheduling/components/ScheduleOnboardingWizardFooter.vue.d.ts +6 -0
  133. package/dist/src/views/scheduling/components/ScheduleOnboardingWizardHeader.vue.d.ts +11 -0
  134. package/dist/src/views/scheduling/components/SchedulePublishModal.vue.d.ts +8 -0
  135. package/dist/src/views/scheduling/components/SchedulePublishShareArt.vue.d.ts +2 -0
  136. package/dist/src/views/scheduling/components/ScheduleReviewBar.vue.d.ts +12 -0
  137. package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +70 -0
  138. package/dist/src/views/scheduling/components/ScheduleSelectExistingEmployeeModal.vue.d.ts +6 -0
  139. package/dist/src/views/scheduling/components/ScheduleSetupBanner.vue.d.ts +12 -0
  140. package/dist/src/views/scheduling/components/ScheduleShiftCell.vue.d.ts +35 -0
  141. package/dist/src/views/scheduling/components/ScheduleShiftHeadcountEditor.vue.d.ts +10 -0
  142. package/dist/src/views/scheduling/components/ScheduleShiftImpact.vue.d.ts +6 -0
  143. package/dist/src/views/scheduling/components/ScheduleShiftMoreOptions.vue.d.ts +8 -0
  144. package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +16 -0
  145. package/dist/src/views/scheduling/components/ScheduleShiftRepeatDaysRow.vue.d.ts +8 -0
  146. package/dist/src/views/scheduling/components/ScheduleShiftSegmentsEditor.vue.d.ts +8 -0
  147. package/dist/src/views/scheduling/components/ScheduleShiftWhoPicker.vue.d.ts +25 -0
  148. package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +16 -0
  149. package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +50 -0
  150. package/dist/src/views/scheduling/components/ScheduleStatsRow.vue.d.ts +12 -0
  151. package/dist/src/views/scheduling/components/ScheduleSwapShiftsModal.vue.d.ts +8 -0
  152. package/dist/src/views/scheduling/components/ScheduleTimePickerPopover.vue.d.ts +6 -0
  153. package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +20 -0
  154. package/dist/src/views/scheduling/composables/auto-schedule-mapping.d.ts +35 -0
  155. package/dist/src/views/scheduling/composables/onboarding-constants.d.ts +7 -0
  156. package/dist/src/views/scheduling/composables/onboarding-hours.d.ts +7 -0
  157. package/dist/src/views/scheduling/composables/onboarding-types.d.ts +51 -0
  158. package/dist/src/views/scheduling/composables/remyPrompt.d.ts +15 -0
  159. package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +82 -0
  160. package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +63 -0
  161. package/dist/src/views/scheduling/composables/schedule-breaks.d.ts +9 -0
  162. package/dist/src/views/scheduling/composables/schedule-calendar.d.ts +17 -0
  163. package/dist/src/views/scheduling/composables/schedule-cost.d.ts +24 -0
  164. package/dist/src/views/scheduling/composables/schedule-currency.d.ts +22 -0
  165. package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +21 -0
  166. package/dist/src/views/scheduling/composables/schedule-demand-domain.d.ts +23 -0
  167. package/dist/src/views/scheduling/composables/schedule-employee-profile.d.ts +7 -0
  168. package/dist/src/views/scheduling/composables/schedule-error.d.ts +1 -0
  169. package/dist/src/views/scheduling/composables/schedule-export-matrix.d.ts +14 -0
  170. package/dist/src/views/scheduling/composables/schedule-leave-split.d.ts +9 -0
  171. package/dist/src/views/scheduling/composables/schedule-popover-position.d.ts +16 -0
  172. package/dist/src/views/scheduling/composables/schedule-quick-pick.d.ts +23 -0
  173. package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +29 -0
  174. package/dist/src/views/scheduling/composables/schedule-time.d.ts +8 -0
  175. package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +9 -0
  176. package/dist/src/views/scheduling/composables/useCollapsedList.d.ts +9 -0
  177. package/dist/src/views/scheduling/composables/useRemyAppStore.d.ts +16 -0
  178. package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +137 -0
  179. package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +75 -0
  180. package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +50 -0
  181. package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +11 -0
  182. package/dist/src/views/scheduling/composables/useScheduleAssignmentMutations.d.ts +13 -0
  183. package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +301 -0
  184. package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +615 -0
  185. package/dist/src/views/scheduling/composables/useScheduleCellState.d.ts +27 -0
  186. package/dist/src/views/scheduling/composables/useScheduleClashDetection.d.ts +28 -0
  187. package/dist/src/views/scheduling/composables/useScheduleCloneOutletModal.d.ts +21 -0
  188. package/dist/src/views/scheduling/composables/useScheduleCoach.d.ts +80 -0
  189. package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +12 -0
  190. package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +60 -0
  191. package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +44 -0
  192. package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +111 -0
  193. package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +59 -0
  194. package/dist/src/views/scheduling/composables/useScheduleDemandRow.d.ts +47 -0
  195. package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +166 -0
  196. package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +55 -0
  197. package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +24 -0
  198. package/dist/src/views/scheduling/composables/useScheduleEmployeeAvailability.d.ts +13 -0
  199. package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +49 -0
  200. package/dist/src/views/scheduling/composables/useScheduleEmployeeCompensation.d.ts +7 -0
  201. package/dist/src/views/scheduling/composables/useScheduleEmployeeForm.d.ts +22 -0
  202. package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +50 -0
  203. package/dist/src/views/scheduling/composables/useScheduleEmployeeMenu.d.ts +38 -0
  204. package/dist/src/views/scheduling/composables/useScheduleEmployeePersistence.d.ts +32 -0
  205. package/dist/src/views/scheduling/composables/useScheduleEmployeeProfile.d.ts +16 -0
  206. package/dist/src/views/scheduling/composables/useScheduleEmployeeValidation.d.ts +18 -0
  207. package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +52 -0
  208. package/dist/src/views/scheduling/composables/useScheduleFilterBar.d.ts +14 -0
  209. package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +79 -0
  210. package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +60 -0
  211. package/dist/src/views/scheduling/composables/useScheduleLegend.d.ts +15 -0
  212. package/dist/src/views/scheduling/composables/useScheduleOnboardingAvailability.d.ts +58 -0
  213. package/dist/src/views/scheduling/composables/useScheduleOnboardingDemand.d.ts +45 -0
  214. package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +231 -0
  215. package/dist/src/views/scheduling/composables/useScheduleOnboardingFlow.d.ts +9 -0
  216. package/dist/src/views/scheduling/composables/useScheduleOnboardingHours.d.ts +15 -0
  217. package/dist/src/views/scheduling/composables/useScheduleOnboardingNavigation.d.ts +11 -0
  218. package/dist/src/views/scheduling/composables/useScheduleOnboardingPersistence.d.ts +13 -0
  219. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +1543 -0
  220. package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +25 -0
  221. package/dist/src/views/scheduling/composables/useSchedulePageActions.d.ts +18 -0
  222. package/dist/src/views/scheduling/composables/useSchedulePageBootstrap.d.ts +9 -0
  223. package/dist/src/views/scheduling/composables/useSchedulePageCellActions.d.ts +21 -0
  224. package/dist/src/views/scheduling/composables/useSchedulePageCellDrop.d.ts +20 -0
  225. package/dist/src/views/scheduling/composables/useSchedulePageClearActions.d.ts +33 -0
  226. package/dist/src/views/scheduling/composables/useSchedulePageEmployeeActions.d.ts +22 -0
  227. package/dist/src/views/scheduling/composables/useSchedulePageOverlays.d.ts +21 -0
  228. package/dist/src/views/scheduling/composables/useSchedulePdfExport.d.ts +19 -0
  229. package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +55 -0
  230. package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +35 -0
  231. package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +127 -0
  232. package/dist/src/views/scheduling/composables/useSchedulePublishPersistence.d.ts +11 -0
  233. package/dist/src/views/scheduling/composables/useScheduleRangeCalendar.d.ts +27 -0
  234. package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +313 -0
  235. package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +40 -0
  236. package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +17 -0
  237. package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +245 -0
  238. package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +63 -0
  239. package/dist/src/views/scheduling/composables/useScheduleShiftPersistence.d.ts +17 -0
  240. package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +255 -0
  241. package/dist/src/views/scheduling/composables/useScheduleStatsRow.d.ts +27 -0
  242. package/dist/src/views/scheduling/composables/useScheduleTimePicker.d.ts +49 -0
  243. package/dist/src/views/scheduling/composables/useScheduleTour.d.ts +95 -0
  244. package/dist/src/views/scheduling/composables/useScheduleViewportFit.d.ts +9 -0
  245. package/dist/src/views/scheduling/country-rules/index.d.ts +33 -0
  246. package/dist/src/views/scheduling/data.d.ts +123 -0
  247. package/dist/src/views/scheduling/locales/index.d.ts +6988 -0
  248. package/dist/src/views/scheduling/schedule-constants.d.ts +7 -0
  249. package/dist/src/views/scheduling/schedule-state.d.ts +767 -0
  250. package/dist/src/views/scheduling/schedule-store.d.ts +140 -0
  251. package/dist/src/views/scheduling/types.d.ts +381 -0
  252. package/dist/src/views/team/components/BasePermission.vue.d.ts +0 -11
  253. package/dist/src/views/team/components/ConditionPermission.vue.d.ts +0 -11
  254. package/dist/src/views/team/components/PortalConditionForm.vue.d.ts +2 -2
  255. package/dist/src/views/team/components/PortalPermissionEditor.vue.d.ts +0 -21
  256. package/dist/src/views/team/components/PosRolePermission.vue.d.ts +0 -11
  257. package/dist/src/views/team/condition-builders/ConditionBuilderForm.vue.d.ts +2 -2
  258. package/dist/src/views/team/locales/index.d.ts +0 -716
  259. package/dist/src/views/team/member/AddMemberForm.vue.d.ts +3 -48
  260. package/dist/src/views/team/{components/MemberStatusBadge.vue.d.ts → member/MemberInfo.vue.d.ts} +2 -2
  261. package/dist/src/views/team/member/TeamMemberList.vue.d.ts +0 -1
  262. package/dist/string-VNuQNweN.js +15 -0
  263. package/dist/style.css +1 -1
  264. package/dist/tsconfig.app.tsbuildinfo +1 -1
  265. package/dist/{useAppStore-BL4Iv-0s.js → useAppStore-CIPpnfP7.js} +1 -1
  266. package/dist/useDiscardConfirm-CzZSPyvh.js +28 -0
  267. package/dist/{useLoading-BEIlprgm.js → useLoading-BRCeBVXP.js} +1 -1
  268. package/dist/useMessage-_ywT_N9X.js +17 -0
  269. package/dist/useReportPermissions-Bveud3kc.js +80 -0
  270. package/package.json +8 -6
  271. package/dist/AuditLogList-CRQjG28b.js +0 -1777
  272. package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BA4pgKNh.js +0 -459
  273. package/dist/EmployeeList-DurHeTfl.js +0 -907
  274. package/dist/FormSection.vue_vue_type_script_setup_true_lang-BDGewUFD.js +0 -90
  275. package/dist/Main-DZ_LJKco.js +0 -101
  276. package/dist/MyPosProfile-C8iBUFAt.js +0 -301
  277. package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js +0 -126
  278. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C1k42T7U.js +0 -4243
  279. package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DAbgu49T.js +0 -1831
  280. package/dist/RoleForm.vue_vue_type_script_setup_true_lang-CoWKz1qm.js +0 -547
  281. package/dist/RoleList-C5f_ulk9.js +0 -274
  282. package/dist/SelectFilter-ATOm0hdn.js +0 -269
  283. package/dist/TeamMemberList-DCSbXFdg.js +0 -2085
  284. package/dist/member-grant-BaABegLK.js +0 -55
  285. package/dist/restaurant-CNsV-2OE.js +0 -45
  286. package/dist/src/api/my-pos-profile/index.d.ts +0 -5
  287. package/dist/src/api/sso-provider/index.d.ts +0 -5
  288. package/dist/src/api/staff-invite/index.d.ts +0 -16
  289. package/dist/src/components/form/SegmentedTabs.vue.d.ts +0 -23
  290. package/dist/src/composables/useMenuAccess.d.ts +0 -56
  291. package/dist/src/composables/useSsoProviders.d.ts +0 -19
  292. package/dist/src/composables/useStaffInviteProviders.d.ts +0 -8
  293. package/dist/src/helpers/member-grant.d.ts +0 -36
  294. package/dist/src/helpers/my-pos-profile.d.ts +0 -37
  295. package/dist/src/helpers/pos-assignment-rows.d.ts +0 -28
  296. package/dist/src/helpers/staff-invite.d.ts +0 -54
  297. package/dist/src/router/menu-access-guard.d.ts +0 -17
  298. package/dist/src/types/my-pos-profile.d.ts +0 -25
  299. package/dist/src/types/sso-provider.d.ts +0 -10
  300. package/dist/src/types/staff-invite.d.ts +0 -100
  301. package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +0 -4
  302. package/dist/src/views/my-pos-profile/locales/index.d.ts +0 -200
  303. package/dist/src/views/team/components/MemberGrantFields.vue.d.ts +0 -51
  304. package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +0 -44
  305. package/dist/src/views/team/member/MemberDetailsCard.vue.d.ts +0 -35
  306. package/dist/src/views/team/member/MemberHeaderCard.vue.d.ts +0 -19
  307. package/dist/string-DZQ1uNjn.js +0 -22
  308. package/dist/useDiscardConfirm-DPhEV6v0.js +0 -157
  309. package/dist/useReportPermissions-BhiSxQCh.js +0 -82
  310. /package/dist/src/{views/my-pos-profile/MyPosProfile.vue.d.ts → components/layout/SchedulePromoBanner.vue.d.ts} +0 -0
@@ -1,47 +1,45 @@
1
- import { s as W, c as q, e as y } from "./iteration-Cnj0KTDr.js";
2
- import { g, b as v, y as O, v as z, m as _, z as F, k as x, C as S, O as ee, D as B } from "./app-BYPvZve5.js";
3
- import { s as se } from "./utils-BZkjJbju.js";
4
- import { defineStore as V, storeToRefs as K } from "pinia";
5
- import { ref as h, computed as J } from "vue";
6
- import { useCoreStore as X } from "@feedmepos/mf-common";
7
- import { u as te } from "./restaurant-CNsV-2OE.js";
8
- const E = "/permission-sets", N = {
1
+ import { s as W, c as q, e as y } from "./iteration-t4kb_i13.js";
2
+ import { u as K, f as _, I as V, p as E, w as ee, d as F, n as S, X as se, L as M } from "./app-BRlNuQIz.js";
3
+ import { s as te } from "./utils-BZkjJbju.js";
4
+ import { g, b as v, q as x, u as ne } from "./restaurant-D2q9eNtu.js";
5
+ import { defineStore as X, storeToRefs as z } from "pinia";
6
+ import { ref as h, computed as T } from "vue";
7
+ const N = "/permission-sets", U = {
9
8
  async read() {
10
- return g(await v().get(E));
9
+ return g(await v().get(N));
11
10
  },
12
11
  async create(e) {
13
- return g(await v().post(E, e));
12
+ return g(await v().post(N, e));
14
13
  },
15
14
  async update(e, s) {
16
- return g(await v().put(`${E}/${e}`, s));
15
+ return g(await v().put(`${N}/${e}`, s));
17
16
  },
18
17
  async delete(e) {
19
- return g(await v().delete(`${E}/${e}`));
18
+ return g(await v().delete(`${N}/${e}`));
20
19
  }
21
- }, ne = V("permissionSet", () => {
22
- const { currentBusiness: e } = X(), s = h([]), r = h(!1), n = h(null);
20
+ }, re = X("hrm-permission-set", () => {
21
+ const e = K(), s = h([]), r = h(!1), n = h(null);
23
22
  async function i() {
24
- var l;
25
- const c = ((l = e.value) == null ? void 0 : l._id) ?? null;
23
+ const c = e.id.value ?? null;
26
24
  if (n.value !== c)
27
25
  try {
28
26
  r.value = !0;
29
- const d = await N.read();
30
- s.value = u(d), n.value = c;
27
+ const l = await U.read();
28
+ s.value = u(l), n.value = c;
31
29
  } finally {
32
30
  r.value = !1;
33
31
  }
34
32
  }
35
33
  async function t(c) {
36
- const l = await N.create(c);
34
+ const l = await U.create(c);
37
35
  s.value = u([...s.value, l]);
38
36
  }
39
37
  async function a(c, l) {
40
- const d = await N.update(c, l);
41
- s.value = u(s.value.map((m) => m.id === c ? d : m));
38
+ const d = await U.update(c, l);
39
+ s.value = u(s.value.map((f) => f.id === c ? d : f));
42
40
  }
43
41
  async function o(c) {
44
- await N.delete(c), s.value = u(s.value.filter((l) => l.id !== c));
42
+ await U.delete(c), s.value = u(s.value.filter((l) => l.id !== c));
45
43
  }
46
44
  function u(c) {
47
45
  return c.sort((l, d) => l.name.localeCompare(d.name));
@@ -54,14 +52,14 @@ const E = "/permission-sets", N = {
54
52
  updatePermissionSet: a,
55
53
  deletePermissionSet: o
56
54
  };
57
- }), re = () => {
58
- const e = ne();
55
+ }), ie = () => {
56
+ const e = re();
59
57
  return {
60
58
  ...e,
61
- ...K(e)
59
+ ...z(e)
62
60
  };
63
61
  };
64
- function k(e) {
62
+ function D(e) {
65
63
  if (e) {
66
64
  if (typeof e == "string") {
67
65
  if (e === "{}") return;
@@ -83,7 +81,7 @@ function j(e) {
83
81
  function Q(e) {
84
82
  const s = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), n = (i, t, a) => {
85
83
  var o, u;
86
- const c = k(t.conditions);
84
+ const c = D(t.conditions);
87
85
  let l = `${t.subject}::${JSON.stringify([...t.actions].sort())}`;
88
86
  j(c) || (l += `::${JSON.stringify(c)}`);
89
87
  const d = i.get(l);
@@ -92,45 +90,45 @@ function Q(e) {
92
90
  return;
93
91
  }
94
92
  d.setNames.push(a.name);
95
- const m = k(d.conditions);
96
- if (!m || !c) {
93
+ const f = D(d.conditions);
94
+ if (!f || !c) {
97
95
  d.conditions = void 0;
98
96
  return;
99
97
  }
100
- for (const f in c)
101
- (o = m[f]) != null && o.$in && (u = c[f]) != null && u.$in ? m[f].$in = Array.from(
102
- /* @__PURE__ */ new Set([...m[f].$in, ...c[f].$in])
103
- ) : m[f] || (m[f] = c[f]);
104
- d.conditions = JSON.stringify(m);
98
+ for (const m in c)
99
+ (o = f[m]) != null && o.$in && (u = c[m]) != null && u.$in ? f[m].$in = Array.from(
100
+ /* @__PURE__ */ new Set([...f[m].$in, ...c[m].$in])
101
+ ) : f[m] || (f[m] = c[m]);
102
+ d.conditions = JSON.stringify(f);
105
103
  };
106
104
  for (const i of e)
107
105
  for (const t of i.permissions)
108
106
  n(t.inverted ? r : s, t, i);
109
107
  return [...Array.from(s.values()), ...Array.from(r.values())];
110
108
  }
111
- function T(e, s) {
109
+ function L(e, s) {
112
110
  return `${e}::${[...s].sort().join(",")}`;
113
111
  }
114
112
  function G(e, s) {
115
113
  const r = [...e], n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new Set();
116
114
  for (const o of e) {
117
- const u = O(o.subject);
118
- n.add(T(u, o.actions)), o.inverted && o.actions.includes("manage") && i.add(`set_${u}`), !o.inverted && o.actions.includes("manage") && t.add(u);
115
+ const u = _(o.subject);
116
+ n.add(L(u, o.actions)), o.inverted && o.actions.includes("manage") && i.add(`set_${u}`), !o.inverted && o.actions.includes("manage") && t.add(u);
119
117
  }
120
118
  const a = [...e];
121
119
  for (; a.length > 0; ) {
122
- const o = a.shift(), u = `set_${O(o.subject)}`, c = s[u];
120
+ const o = a.shift(), u = `set_${_(o.subject)}`, c = s[u];
123
121
  if (!c || i.has(u) || !o.actions.includes("manage") || o.inverted) continue;
124
122
  i.add(u);
125
- const l = ie(o);
123
+ const l = oe(o);
126
124
  o.source && !o.source.trace && (o.source = { ...o.source, trace: l });
127
125
  const d = [...l, `${c.name} (system)`];
128
- for (const m of c.permissions ?? []) {
129
- const f = O(m.subject), p = T(f, m.actions);
130
- n.has(p) || t.has(f) || (n.add(p), r.push({
131
- ...m,
126
+ for (const f of c.permissions ?? []) {
127
+ const m = _(f.subject), p = L(m, f.actions);
128
+ n.has(p) || t.has(m) || (n.add(p), r.push({
129
+ ...f,
132
130
  // FdoPermissionRule.fields is string[] | null; RawRule expects string[] | undefined
133
- fields: m.fields ?? void 0,
131
+ fields: f.fields ?? void 0,
134
132
  source: {
135
133
  type: "systemPermissionSet",
136
134
  permissionSetId: c.key,
@@ -139,9 +137,9 @@ function G(e, s) {
139
137
  }
140
138
  }));
141
139
  }
142
- for (const m of c.permissionSets ?? []) {
143
- const f = O(m), p = T(f, ["manage"]), b = {
144
- subject: f,
140
+ for (const f of c.permissionSets ?? []) {
141
+ const m = _(f), p = L(m, ["manage"]), b = {
142
+ subject: m,
145
143
  actions: ["manage"],
146
144
  source: {
147
145
  type: "systemPermissionSet",
@@ -155,7 +153,7 @@ function G(e, s) {
155
153
  }
156
154
  return [...r.filter((o) => !o.inverted), ...r.filter((o) => o.inverted)];
157
155
  }
158
- function ie(e) {
156
+ function oe(e) {
159
157
  if (!e.source) return [];
160
158
  const { type: s, trace: r, permissionSetName: n } = e.source;
161
159
  if (r && r.length > 0) return r;
@@ -183,7 +181,7 @@ function Ae(e) {
183
181
  const s = Q(e).map(
184
182
  ({ setNames: i, setId: t, ...a }) => a
185
183
  ), r = s.filter((i) => !i.inverted), n = s.filter((i) => i.inverted);
186
- return L(r, n);
184
+ return B(r, n);
187
185
  }
188
186
  function Oe(e, s, r) {
189
187
  const n = /* @__PURE__ */ new Map();
@@ -226,28 +224,28 @@ function _e(e, s) {
226
224
  JSON.stringify(l) !== JSON.stringify(d) && t.push(c);
227
225
  continue;
228
226
  }
229
- const m = Object.keys(l)[0], f = l[m].$in.filter(
230
- (b) => !d[m].$in.includes(b)
227
+ const f = Object.keys(l)[0], m = l[f].$in.filter(
228
+ (b) => !d[f].$in.includes(b)
231
229
  );
232
- f.length > 0 && t.push(r(u, f)), d[m].$in.filter(
233
- (b) => !l[m].$in.includes(b)
230
+ m.length > 0 && t.push(r(u, m)), d[f].$in.filter(
231
+ (b) => !l[f].$in.includes(b)
234
232
  ).length > 0 && t.push(c);
235
233
  } else if (!u.conditions && c.conditions)
236
234
  t.push(c);
237
235
  else if (u.conditions && !c.conditions)
238
236
  j(JSON.parse(u.conditions)) || t.push(c);
239
237
  else if (!u.conditions && !c.conditions) {
240
- const l = new Set(u.actions), d = new Set(c.actions), m = c.actions.some((p) => !l.has(p)), f = u.actions.filter((p) => !d.has(p));
241
- if (m) {
238
+ const l = new Set(u.actions), d = new Set(c.actions), f = c.actions.some((p) => !l.has(p)), m = u.actions.filter((p) => !d.has(p));
239
+ if (f) {
242
240
  const p = c.actions.filter((b) => !l.has(b));
243
241
  t.push({
244
242
  ...c,
245
243
  actions: p
246
244
  });
247
245
  }
248
- f.length > 0 && t.push({
246
+ m.length > 0 && t.push({
249
247
  ...u,
250
- actions: f,
248
+ actions: m,
251
249
  inverted: !0
252
250
  });
253
251
  }
@@ -271,7 +269,7 @@ function _e(e, s) {
271
269
  function Ee(e) {
272
270
  const s = G(
273
271
  e,
274
- z
272
+ V
275
273
  ), r = new Set(
276
274
  s.filter((i) => {
277
275
  var t;
@@ -287,23 +285,23 @@ function Ee(e) {
287
285
  );
288
286
  return e.filter((i) => i.inverted ? !(r.has(i.subject) && !n.has(i.subject)) : !r.has(i.subject));
289
287
  }
290
- const oe = "business::report::";
288
+ const ae = "business::report::";
291
289
  function Ne(e, s) {
292
290
  const r = [], n = e.filter((i) => {
293
291
  const t = i.subject;
294
- return !t.startsWith(oe) || s.has(t) ? !0 : (r.push(t), !1);
292
+ return !t.startsWith(ae) || s.has(t) ? !0 : (r.push(t), !1);
295
293
  });
296
294
  return r.length > 0 && console.warn("[filterStalePermissions] dropped stale report permissions:", r), n;
297
295
  }
298
- const ae = "business::report::reports::", ce = _.Subject.Business.report_reports_allDefaultReports, ue = _.Subject.Business.report_reports_allCustomReports;
299
- function le(e, s) {
296
+ const ce = "business::report::reports::", ue = E.Subject.Business.report_reports_allDefaultReports, le = E.Subject.Business.report_reports_allCustomReports;
297
+ function de(e, s) {
300
298
  return e.conditions ? !!s.conditions && e.conditions === s.conditions : !s.conditions;
301
299
  }
302
300
  function Ue(e, s) {
303
301
  const r = e.find(
304
- (a) => !a.inverted && a.subject === ce
305
- ), n = e.find(
306
302
  (a) => !a.inverted && a.subject === ue
303
+ ), n = e.find(
304
+ (a) => !a.inverted && a.subject === le
307
305
  );
308
306
  if (!r && !n) return e;
309
307
  const i = r ? new Set(r.actions) : null, t = n ? new Set(n.actions) : null;
@@ -311,22 +309,22 @@ function Ue(e, s) {
311
309
  if (o.inverted)
312
310
  return a.push(o), a;
313
311
  const u = o.subject;
314
- if (!u.startsWith(ae))
312
+ if (!u.startsWith(ce))
315
313
  return a.push(o), a;
316
314
  const c = s.has(u), l = c ? i : t, d = c ? r : n;
317
- if (!l || !d || !le(d, o))
315
+ if (!l || !d || !de(d, o))
318
316
  return a.push(o), a;
319
317
  if (l.has("manage")) return a;
320
- const m = o.actions;
321
- if (m.includes("manage"))
318
+ const f = o.actions;
319
+ if (f.includes("manage"))
322
320
  return a.push(o), a;
323
- const f = new Set(m);
321
+ const m = new Set(f);
324
322
  for (const p of l)
325
- f.delete(p);
326
- return f.size === 0 || a.push({ ...o, actions: Array.from(f) }), a;
323
+ m.delete(p);
324
+ return m.size === 0 || a.push({ ...o, actions: Array.from(m) }), a;
327
325
  }, []);
328
326
  }
329
- function L(e, s) {
327
+ function B(e, s) {
330
328
  var n, i;
331
329
  const r = new Map(e.map((t) => [t.subject, t]));
332
330
  for (const t of s) {
@@ -339,10 +337,10 @@ function L(e, s) {
339
337
  r.delete(t.subject);
340
338
  continue;
341
339
  }
342
- const l = Object.keys(c)[0], d = ((n = c[l]) == null ? void 0 : n.$in) ?? [], f = (((i = u[l]) == null ? void 0 : i.$in) ?? []).filter((p) => !d.includes(p));
343
- f.length > 0 ? r.set(t.subject, {
340
+ const l = Object.keys(c)[0], d = ((n = c[l]) == null ? void 0 : n.$in) ?? [], m = (((i = u[l]) == null ? void 0 : i.$in) ?? []).filter((p) => !d.includes(p));
341
+ m.length > 0 ? r.set(t.subject, {
344
342
  ...o,
345
- conditions: JSON.stringify({ [l]: { $in: f } })
343
+ conditions: JSON.stringify({ [l]: { $in: m } })
346
344
  }) : r.delete(t.subject);
347
345
  } else
348
346
  r.delete(t.subject);
@@ -377,8 +375,8 @@ function L(e, s) {
377
375
  }
378
376
  return Array.from(r.values());
379
377
  }
380
- function de(e, s) {
381
- const r = L(e, s), n = new Set(e.map((t) => t.subject)), i = s.filter(
378
+ function fe(e, s) {
379
+ const r = B(e, s), n = new Set(e.map((t) => t.subject)), i = s.filter(
382
380
  (t) => t.inverted && !n.has(t.subject)
383
381
  );
384
382
  return [...r, ...i];
@@ -407,7 +405,7 @@ const P = "/permission-assignments", I = {
407
405
  await v().post("/my-permissions/report-manage", { permissionKey: e, label: s })
408
406
  );
409
407
  }
410
- }, me = V("permissionAssignment", () => {
408
+ }, me = X("hrm-permission-assignment", () => {
411
409
  const e = h([]);
412
410
  async function s() {
413
411
  const o = await I.readAll();
@@ -439,60 +437,59 @@ const P = "/permission-assignments", I = {
439
437
  deletePermissionAssignment: t,
440
438
  getPermissionAssignmentByUserId: a
441
439
  };
442
- }), fe = () => {
440
+ }), pe = () => {
443
441
  const e = me();
444
442
  return {
445
443
  ...e,
446
- ...K(e)
444
+ ...z(e)
447
445
  };
448
- }, pe = {
446
+ }, ge = {
449
447
  async fetchReportPermissions(e, s) {
450
448
  const r = s ? { lang: s } : {};
451
449
  return g(
452
- await F().get(`/report-query/hrm/${e}/reports`, { params: r })
450
+ await x().get(`/report-query/hrm/${e}/reports`, { params: r })
453
451
  );
454
452
  },
455
453
  async fetchReportPermissionsForPortal(e, s) {
456
454
  const r = s ? { isSupportPos: !1, lang: s } : { isSupportPos: !1 };
457
455
  return g(
458
- await F().get(`/report-query/hrm/${e}/reports`, { params: r })
456
+ await x().get(`/report-query/hrm/${e}/reports`, { params: r })
459
457
  );
460
458
  }
461
- }, U = h([]), C = h(!1), R = h(!1), $ = h(null), D = h(null), M = h(!1);
462
- function ge() {
463
- const e = X();
459
+ }, R = h([]), C = h(!1), $ = h(!1), A = h(null), k = h(null), J = h(!1);
460
+ function ve() {
461
+ const e = K();
464
462
  async function s() {
465
- var t;
466
- const n = (t = e.currentBusiness.value) == null ? void 0 : t.id;
463
+ const n = e.id.value;
467
464
  if (!n) return;
468
465
  const i = localStorage.getItem("locale");
469
- if ($.value !== n && (U.value = [], C.value = !1, R.value = !1, $.value = n, M.value = !1), !(C.value && D.value === i)) {
470
- if (R.value) {
471
- M.value = !0;
466
+ if (A.value !== n && (R.value = [], C.value = !1, $.value = !1, A.value = n, J.value = !1), !(C.value && k.value === i)) {
467
+ if ($.value) {
468
+ J.value = !0;
472
469
  return;
473
470
  }
474
- R.value = !0;
471
+ $.value = !0;
475
472
  try {
476
- const a = await pe.fetchReportPermissionsForPortal(n, i);
477
- if ($.value !== n) return;
478
- U.value = a, C.value = !0, D.value = i;
479
- } catch (a) {
480
- if ($.value !== n) return;
481
- console.warn("Failed to fetch custom report permissions:", a), U.value = [];
473
+ const t = await ge.fetchReportPermissionsForPortal(n, i);
474
+ if (A.value !== n) return;
475
+ R.value = t, C.value = !0, k.value = i;
476
+ } catch (t) {
477
+ if (A.value !== n) return;
478
+ console.warn("Failed to fetch custom report permissions:", t), R.value = [];
482
479
  } finally {
483
- $.value === n && (R.value = !1, M.value && (M.value = !1, await s()));
480
+ A.value === n && ($.value = !1, J.value && (J.value = !1, await s()));
484
481
  }
485
482
  }
486
483
  }
487
- const r = J(() => U.value.map(
488
- (n) => n.isDefault ? {
489
- label: n.name,
490
- subject: `business::report::reports::${n.permissionKey}`,
484
+ const r = T(() => (e.isFoodCourt.value ? R.value.filter((i) => !i.isDefault || ee.has(i.permissionKey)) : R.value).map(
485
+ (i) => i.isDefault ? {
486
+ label: i.name,
487
+ subject: `business::report::reports::${i.permissionKey}`,
491
488
  actions: [S.manage, S.read, S.create],
492
- category: x.reports
489
+ category: F.reports
493
490
  } : {
494
- label: n.name,
495
- subject: `business::report::reports::${n.permissionKey}`,
491
+ label: i.name,
492
+ subject: `business::report::reports::${i.permissionKey}`,
496
493
  actions: [
497
494
  S.manage,
498
495
  S.read,
@@ -500,59 +497,56 @@ function ge() {
500
497
  S.update,
501
498
  S.delete
502
499
  ],
503
- category: x.customReports
500
+ category: F.customReports
504
501
  }
505
502
  ));
506
503
  return {
507
504
  fetchCustomReportPermissions: s,
508
505
  customReportPermissions: r,
509
- isLoading: J(() => R.value),
510
- isLoaded: J(() => C.value)
506
+ isLoading: T(() => $.value),
507
+ isLoaded: T(() => C.value)
511
508
  };
512
509
  }
513
- function A(e) {
514
- const s = re(), r = fe(), n = te().restaurants, { customReportPermissions: i } = ge(), t = r.getPermissionAssignmentByUserId(e.id), a = H(
515
- (t == null ? void 0 : t.permissionSetIds) ?? e.permissionSetIds ?? [],
510
+ function O(e) {
511
+ const s = ie(), r = pe(), n = ne().restaurants, { customReportPermissions: i } = ve(), t = r.getPermissionAssignmentByUserId(e.id), a = H(
512
+ (t == null ? void 0 : t.permissionSetIds) ?? [],
516
513
  s.permissionSets.value
517
514
  ), o = Q(a).map(
518
515
  ({ setNames: p, ...b }) => b
519
516
  ), u = t == null ? void 0 : t.customPermissions, c = u ?? e.permissions.map((p) => ({
520
517
  ...p,
521
- subject: O(p.subject)
522
- })), l = L(o, c), d = G(
523
- de(o, c),
524
- z
525
- ).filter((p) => !p.inverted), m = Y(d), f = m ?? n.value.map((p) => p._id);
518
+ subject: _(p.subject)
519
+ })), l = B(o, c), d = G(
520
+ fe(o, c),
521
+ V
522
+ ).filter((p) => !p.inverted), f = Y(d), m = f ?? n.value.map((p) => p._id);
526
523
  return {
527
524
  doc: e,
528
525
  id: e.id,
529
- // An invite's name is the admin's, or its sign-in key when it has none.
530
- name: e.status === "invited" ? e.name || "-" : e.name && e.name !== e.email && e.name !== e.phoneNumber ? e.name : "-",
526
+ name: e.name && e.name !== e.email && e.name !== e.phoneNumber ? e.name : "-",
531
527
  phoneNumber: e.phoneNumber,
532
528
  email: e.email,
533
529
  restaurants: W(
534
- f.map((p) => {
530
+ m.map((p) => {
535
531
  var b;
536
532
  return ((b = n.value.find((Z) => Z._id === p)) == null ? void 0 : b.profile.name) ?? "";
537
533
  })
538
534
  ),
539
- managableRestaurantIds: m,
540
- permissionLabels: Se(d, i.value),
541
- permissions: l,
542
- status: e.status ?? "active",
543
- loginMethod: e.loginMethod ?? "feedme"
535
+ managableRestaurantIds: f,
536
+ permissionLabels: ye(d, i.value),
537
+ permissions: l
544
538
  };
545
539
  }
546
- const ve = Object.freeze(
547
- Object.values(ee)
540
+ const be = Object.freeze(
541
+ Object.values(se)
548
542
  ), Ce = {
549
543
  async readTeamMembers() {
550
544
  return g(
551
545
  await v().get("/portal-users")
552
- ).map(A);
546
+ ).map(O);
553
547
  },
554
548
  async readTeamMembersPage(e) {
555
- var r, n, i, t, a;
549
+ var r, n, i;
556
550
  const s = g(
557
551
  await v().get("/portal-users/paged", {
558
552
  params: {
@@ -561,29 +555,27 @@ const ve = Object.freeze(
561
555
  search: e.search,
562
556
  restaurantIds: (r = e.restaurantIds) != null && r.length ? e.restaurantIds : void 0,
563
557
  permissionSubjects: (n = e.permissionSubjects) != null && n.length ? e.permissionSubjects : void 0,
564
- permissionSetIds: (i = e.permissionSetIds) != null && i.length ? e.permissionSetIds : void 0,
565
- statuses: (t = e.statuses) != null && t.length ? e.statuses : void 0,
566
- loginMethods: (a = e.loginMethods) != null && a.length ? e.loginMethods : void 0
558
+ permissionSetIds: (i = e.permissionSetIds) != null && i.length ? e.permissionSetIds : void 0
567
559
  }
568
560
  })
569
561
  );
570
562
  return {
571
- items: s.items.map(A),
563
+ items: s.items.map(O),
572
564
  total: s.total
573
565
  };
574
566
  },
575
567
  async readTeamMember(e) {
576
- return A(
568
+ return O(
577
569
  g(await v().get(`/portal-users/${e}`))
578
570
  );
579
571
  },
580
572
  async createTeamMember(e) {
581
- return A(
573
+ return O(
582
574
  g(await v().post("/portal-users", e))
583
575
  );
584
576
  },
585
577
  async updateTeamMember(e, s) {
586
- return A(
578
+ return O(
587
579
  g(await v().put(`/portal-users/${e}`, s))
588
580
  );
589
581
  },
@@ -602,9 +594,9 @@ const ve = Object.freeze(
602
594
  )}`;
603
595
  }
604
596
  };
605
- function Me(e, s, r) {
597
+ function Je(e, s, r) {
606
598
  if (e.some((a) => a.subject === "all")) return "All";
607
- const n = (r ?? B).filter(
599
+ const n = (r ?? M).filter(
608
600
  (a) => a.subject === s
609
601
  ), i = new Set(n.map((a) => w(a).value)), t = e.filter((a) => a.subject === s).filter((a) => i.has(w(a).value));
610
602
  return t.length === n.length ? "All" : t.length === 0 ? "-" : `${t.length} permission allow`;
@@ -657,7 +649,7 @@ function w(e) {
657
649
  return n === void 0 ? r.toString() : n.endsWith("_") ? n.slice(0, n.length - 1) : n;
658
650
  },
659
651
  get label() {
660
- return s.label || se(this.formatted);
652
+ return s.label || te(this.formatted);
661
653
  },
662
654
  get value() {
663
655
  const n = this.discriminator;
@@ -665,7 +657,7 @@ function w(e) {
665
657
  }
666
658
  };
667
659
  }
668
- function Je(e) {
660
+ function Te(e) {
669
661
  var n, i;
670
662
  const s = e.map((t) => w(t)).find((t) => t.isDiscountOperation);
671
663
  if (!s) return 100;
@@ -674,21 +666,21 @@ function Je(e) {
674
666
  }
675
667
  function Y(e) {
676
668
  const s = e.find(
677
- (r) => r.subject === _.Subject.Restaurant.restaurant
669
+ (r) => r.subject === E.Subject.Restaurant.restaurant
678
670
  );
679
671
  return s ? s.conditions ? JSON.parse(s.conditions).restaurantId.$in : null : [];
680
672
  }
681
- function Te(e, s) {
682
- return s.isOwner ? { restaurantIds: null, roleIds: null } : { restaurantIds: Y(e), roleIds: be(e) };
673
+ function Le(e, s) {
674
+ return s.isOwner ? { restaurantIds: null, roleIds: null } : { restaurantIds: Y(e), roleIds: he(e) };
683
675
  }
684
- function Be(e) {
676
+ function Me(e) {
685
677
  return (e == null ? void 0 : e.some((s) => s.subject === "all")) ?? !1;
686
678
  }
687
- function be(e) {
688
- const s = e.find((r) => r.subject === _.Subject.Business.role);
679
+ function he(e) {
680
+ const s = e.find((r) => r.subject === E.Subject.Business.role);
689
681
  return s ? s.conditions ? JSON.parse(s.conditions).roleId.$in : null : [];
690
682
  }
691
- function Le(e) {
683
+ function Be(e) {
692
684
  const s = w(e);
693
685
  if (!s.isReportPermission) return;
694
686
  const { name: r, ...n } = s.conditions ?? {};
@@ -696,7 +688,7 @@ function Le(e) {
696
688
  }
697
689
  function Fe(e, s, r) {
698
690
  return e.flatMap((n) => {
699
- const i = he(n);
691
+ const i = Se(n);
700
692
  if (!i) return [];
701
693
  const t = i.isReportPermission ? r == null ? void 0 : r.get(n) : void 0;
702
694
  return [
@@ -712,11 +704,11 @@ function Fe(e, s, r) {
712
704
  ];
713
705
  });
714
706
  }
715
- function he(e) {
707
+ function Se(e) {
716
708
  const s = e.indexOf(":"), r = s === -1 ? e : e.slice(0, s), n = s === -1 ? void 0 : e.slice(s + 1);
717
709
  if (s !== -1 && !n) return;
718
710
  let i;
719
- return n ? (i = B.find((t) => {
711
+ return n ? (i = M.find((t) => {
720
712
  if (t.subject !== r) return !1;
721
713
  const a = typeof t.conditions == "string" ? JSON.parse(t.conditions) : t.conditions;
722
714
  return [a == null ? void 0 : a.operation, a == null ? void 0 : a.name].includes(n);
@@ -727,7 +719,7 @@ function he(e) {
727
719
  conditions: { name: n },
728
720
  inverted: !1,
729
721
  reason: ""
730
- })) : i = B.find((t) => t.subject === r), i ? w(i) : void 0;
722
+ })) : i = M.find((t) => t.subject === r), i ? w(i) : void 0;
731
723
  }
732
724
  function xe(e, s) {
733
725
  const r = { values: [], passthrough: [], dropped: [] };
@@ -742,14 +734,14 @@ function xe(e, s) {
742
734
  }
743
735
  return r;
744
736
  }
745
- function Se(e, s = []) {
737
+ function ye(e, s = []) {
746
738
  return W(
747
739
  e.reduce((r, n) => {
748
- const i = ve.find(
740
+ const i = be.find(
749
741
  (t) => t.subject === n.subject && n.actions.includes("manage")
750
742
  ) || s.find((t) => t.subject === n.subject);
751
743
  if (i) {
752
- const t = i.subject === _.Subject.Business.inventory_stock ? "Warehouse Management" : i.label;
744
+ const t = i.subject === E.Subject.Business.inventory_stock ? "Warehouse Management" : i.label;
753
745
  r.push(t);
754
746
  }
755
747
  return r;
@@ -759,30 +751,30 @@ function Se(e, s = []) {
759
751
  export {
760
752
  G as N,
761
753
  Q as P,
762
- oe as R,
763
- ge as a,
764
- Te as b,
754
+ ge as R,
755
+ Je as a,
756
+ fe as b,
765
757
  H as c,
766
- fe as d,
767
- Fe as e,
768
- Me as f,
769
- de as g,
770
- Be as h,
771
- Je as i,
758
+ ve as d,
759
+ Be as e,
760
+ Fe as f,
761
+ Te as g,
762
+ Me as h,
763
+ ae as i,
772
764
  Le as j,
773
- pe as k,
774
- Ne as l,
765
+ Ee as k,
766
+ _e as l,
775
767
  Ae as m,
776
- Ue as n,
777
- Ee as o,
778
- ve as p,
779
- _e as q,
768
+ Ne as n,
769
+ Ue as o,
770
+ be as p,
771
+ pe as q,
780
772
  w as r,
781
773
  xe as s,
782
774
  Ce as t,
783
- re as u,
784
- Se as v,
775
+ ie as u,
776
+ ye as v,
785
777
  Oe as w,
786
778
  Y as x,
787
- be as y
779
+ he as y
788
780
  };