@feedmepos/mf-hrm-portal 2.3.2-dev → 2.3.2-dev.10

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 (295) hide show
  1. package/dist/{ApprovalCodeList-xOyDG5ug.js → ApprovalCodeList-RKU5B8SO.js} +14 -15
  2. package/dist/AuditLogList-DuDCMjGR.js +2026 -0
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Cixg_icC.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-pL2zRc67.js} +10 -10
  4. package/dist/{EmployeeList-BG2KPvOB.js → EmployeeList-nrYsS5uz.js} +196 -208
  5. package/dist/FormSection.vue_vue_type_script_setup_true_lang-7S2w36aY.js +90 -0
  6. package/dist/{GrantUserList-CUkuf3VV.js → GrantUserList-BSjeC4MC.js} +15 -16
  7. package/dist/{Main-Cg9SOzcz.js → Main-CpuHaXU6.js} +5 -5
  8. package/dist/{Main-BSHf8gTE.js → Main-DbdoVLCE.js} +12 -11
  9. package/dist/{Main-BcixH7R5.js → Main-DtmCBbTR.js} +1005 -999
  10. package/dist/MyPosProfile-CsTCfGNT.js +360 -0
  11. package/dist/{PermissionSetList-I3u2_qHR.js → PermissionSetList-B1c-uGZO.js} +82 -80
  12. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Toq6qrLx.js +4208 -0
  13. package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-D6Z9z_Yt.js +1831 -0
  14. package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +132 -0
  15. package/dist/RoleForm.vue_vue_type_script_setup_true_lang-TWTVo_9Y.js +547 -0
  16. package/dist/RoleList-CwaGNsFy.js +265 -0
  17. package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-C2ekVXdR.js +544 -0
  18. package/dist/ScheduleGeneralPage-BVtXmxtp.js +811 -0
  19. package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-DdsQ8v-5.js +2557 -0
  20. package/dist/SchedulePage-3qksmT2I.js +19446 -0
  21. package/dist/SchedulePositionPage-DAU20KPZ.js +282 -0
  22. package/dist/SelectFilter-BpzBwBmQ.js +263 -0
  23. package/dist/TeamMemberList-Bdpm40i3.js +2087 -0
  24. package/dist/TimesheetList-CL_eJp2h.js +437 -0
  25. package/dist/{app-CdrnR_Pw.js → app-DEZT4wdV.js} +14439 -5834
  26. package/dist/app.js +1 -1
  27. package/dist/{approval-code-Bwvwehz9.js → approval-code-BZTz5OXK.js} +4 -4
  28. package/dist/{dayjs.min-BO8bcI17.js → dayjs.min-B55I-uhI.js} +12 -12
  29. package/dist/employee-C6z5i6O4.js +172 -0
  30. package/dist/{grant-user-whFOaPZI.js → grant-user-B2rYztyf.js} +2 -2
  31. package/dist/{iteration-ZpERYj3o.js → index-Bfdseotz.js} +698 -726
  32. package/dist/iteration-CcXrOMQe.js +30 -0
  33. package/dist/{lodash-7SZBZ8VQ.js → lodash-B8bqa6a9.js} +1 -1
  34. package/dist/member-grant-BIpKkuu8.js +54 -0
  35. package/dist/object-Dwyg2LgX.js +16 -0
  36. package/dist/restaurant-ejyX2jEG.js +52 -0
  37. package/dist/role-C_t3DDlG.js +98 -0
  38. package/dist/rule-Ccopk8R_.js +843 -0
  39. package/dist/src/api/audit-log/index.d.ts +6 -0
  40. package/dist/src/api/employee/index.d.ts +3 -4
  41. package/dist/src/api/my-pos-profile/index.d.ts +1 -3
  42. package/dist/src/api/restaurant/index.d.ts +2 -0
  43. package/dist/src/api/schedule/index.d.ts +68 -0
  44. package/dist/src/api/sso-provider/index.d.ts +5 -0
  45. package/dist/src/api/staff-invite/index.d.ts +1 -2
  46. package/dist/src/api/timesheet/index.d.ts +1 -1
  47. package/dist/src/components/AppForm.vue.d.ts +2 -2
  48. package/dist/src/components/CheckboxInput.vue.d.ts +2 -2
  49. package/dist/src/components/layout/PortalShell.vue.d.ts +12 -0
  50. package/dist/src/components/layout/SchedulePromoBanner.vue.d.ts +2 -0
  51. package/dist/src/components/layout/withScheduleShell.d.ts +10 -0
  52. package/dist/src/composables/useDiscardConfirm.d.ts +3 -1
  53. package/dist/src/composables/useMessage.d.ts +8 -2
  54. package/dist/src/composables/useSsoProviders.d.ts +19 -0
  55. package/dist/src/composables/useStaffInviteProviders.d.ts +1 -12
  56. package/dist/src/helpers/permission-set.d.ts +1 -102
  57. package/dist/src/helpers/pos-assignment-rows.d.ts +2 -0
  58. package/dist/src/helpers/rule.d.ts +2 -2
  59. package/dist/src/helpers/staff-invite.d.ts +3 -0
  60. package/dist/src/router/shared.d.ts +3 -0
  61. package/dist/src/stores/approval-code.d.ts +1 -1
  62. package/dist/src/stores/employee.d.ts +15 -21
  63. package/dist/src/stores/grant-user.d.ts +1 -1
  64. package/dist/src/stores/permission-assignment.d.ts +2 -2
  65. package/dist/src/stores/permission-set.d.ts +2 -2
  66. package/dist/src/stores/restaurant.d.ts +63 -3
  67. package/dist/src/stores/role.d.ts +2 -2
  68. package/dist/src/stores/team.d.ts +1 -1
  69. package/dist/src/stores/timesheet.d.ts +68 -53
  70. package/dist/src/types/employee.d.ts +1 -0
  71. package/dist/src/types/my-pos-profile.d.ts +2 -3
  72. package/dist/src/types/schedule.d.ts +23 -0
  73. package/dist/src/types/sso-provider.d.ts +10 -0
  74. package/dist/src/types/timesheet.d.ts +3 -0
  75. package/dist/src/views/audit-log/constants.d.ts +9 -30
  76. package/dist/src/views/audit-log/locales/index.d.ts +528 -0
  77. package/dist/src/views/audit-log/pos-row.d.ts +27 -0
  78. package/dist/src/views/audit-log/useTraceIdDeepLink.d.ts +19 -0
  79. package/dist/src/views/hr/locales/index.d.ts +24 -4
  80. package/dist/src/views/hr/role/RoleForm.vue.d.ts +29 -2
  81. package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +1 -1
  82. package/dist/src/views/my-pos-profile/locales/index.d.ts +40 -4
  83. package/dist/src/views/scheduling/ScheduleGeneralPage.vue.d.ts +3 -0
  84. package/dist/src/views/scheduling/SchedulePage.vue.d.ts +3 -0
  85. package/dist/src/views/scheduling/SchedulePositionPage.vue.d.ts +3 -0
  86. package/dist/src/views/scheduling/components/ScheduleAddEmployeeIdentitySection.vue.d.ts +6 -0
  87. package/dist/src/views/scheduling/components/ScheduleAddEmployeeModal.vue.d.ts +12 -0
  88. package/dist/src/views/scheduling/components/ScheduleAddEmployeeModeStep.vue.d.ts +6 -0
  89. package/dist/src/views/scheduling/components/ScheduleAddEmployeePosAccessSection.vue.d.ts +6 -0
  90. package/dist/src/views/scheduling/components/ScheduleAddEmployeePositionsSection.vue.d.ts +10 -0
  91. package/dist/src/views/scheduling/components/ScheduleAddEmployeeSchedulingSection.vue.d.ts +6 -0
  92. package/dist/src/views/scheduling/components/ScheduleAddPickPopover.vue.d.ts +6 -0
  93. package/dist/src/views/scheduling/components/ScheduleAddPositionModal.vue.d.ts +6 -0
  94. package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +41 -0
  95. package/dist/src/views/scheduling/components/ScheduleAutoScheduleDetailsModal.vue.d.ts +6 -0
  96. package/dist/src/views/scheduling/components/ScheduleAutoScheduleDoneArt.vue.d.ts +2 -0
  97. package/dist/src/views/scheduling/components/ScheduleAutoScheduleModal.vue.d.ts +10 -0
  98. package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +25 -0
  99. package/dist/src/views/scheduling/components/ScheduleBoardEditOverlays.vue.d.ts +17 -0
  100. package/dist/src/views/scheduling/components/ScheduleBoardEmployeeRows.vue.d.ts +31 -0
  101. package/dist/src/views/scheduling/components/ScheduleBoardGridHeader.vue.d.ts +29 -0
  102. package/dist/src/views/scheduling/components/ScheduleBoardInteractionOverlays.vue.d.ts +34 -0
  103. package/dist/src/views/scheduling/components/ScheduleBoardOnboardingOverlays.vue.d.ts +26 -0
  104. package/dist/src/views/scheduling/components/ScheduleBoardRails.vue.d.ts +17 -0
  105. package/dist/src/views/scheduling/components/ScheduleBoardToolbar.vue.d.ts +38 -0
  106. package/dist/src/views/scheduling/components/ScheduleBoardUtilityOverlays.vue.d.ts +22 -0
  107. package/dist/src/views/scheduling/components/ScheduleButton.vue.d.ts +23 -0
  108. package/dist/src/views/scheduling/components/ScheduleChangeEmployeeModal.vue.d.ts +8 -0
  109. package/dist/src/views/scheduling/components/ScheduleCloneOutletModal.vue.d.ts +6 -0
  110. package/dist/src/views/scheduling/components/ScheduleCoach.vue.d.ts +6 -0
  111. package/dist/src/views/scheduling/components/ScheduleCompletionDialog.vue.d.ts +15 -0
  112. package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +33 -0
  113. package/dist/src/views/scheduling/components/ScheduleContextMenu.vue.d.ts +17 -0
  114. package/dist/src/views/scheduling/components/ScheduleCostRail.vue.d.ts +8 -0
  115. package/dist/src/views/scheduling/components/ScheduleCostRailEmptyArt.vue.d.ts +2 -0
  116. package/dist/src/views/scheduling/components/ScheduleDateRangePopover.vue.d.ts +6 -0
  117. package/dist/src/views/scheduling/components/ScheduleDayNotePopover.vue.d.ts +6 -0
  118. package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +17 -0
  119. package/dist/src/views/scheduling/components/ScheduleDemandRow.vue.d.ts +23 -0
  120. package/dist/src/views/scheduling/components/ScheduleDemandSheet.vue.d.ts +10 -0
  121. package/dist/src/views/scheduling/components/ScheduleDotsIcon.vue.d.ts +2 -0
  122. package/dist/src/views/scheduling/components/ScheduleEmployeeDetailPanel.vue.d.ts +12 -0
  123. package/dist/src/views/scheduling/components/ScheduleEmployeeIdentity.vue.d.ts +17 -0
  124. package/dist/src/views/scheduling/components/ScheduleExportPreview.vue.d.ts +7 -0
  125. package/dist/src/views/scheduling/components/ScheduleFilterBar.vue.d.ts +18 -0
  126. package/dist/src/views/scheduling/components/ScheduleGapPopover.vue.d.ts +6 -0
  127. package/dist/src/views/scheduling/components/ScheduleGridHeader.vue.d.ts +18 -0
  128. package/dist/src/views/scheduling/components/ScheduleGridSkeleton.vue.d.ts +2 -0
  129. package/dist/src/views/scheduling/components/ScheduleLeaveEditModal.vue.d.ts +6 -0
  130. package/dist/src/views/scheduling/components/ScheduleLoadState.vue.d.ts +9 -0
  131. package/dist/src/views/scheduling/components/ScheduleModal.vue.d.ts +26 -0
  132. package/dist/src/views/scheduling/components/ScheduleOnboardingAssignPositionModal.vue.d.ts +6 -0
  133. package/dist/src/views/scheduling/components/ScheduleOnboardingClosedDayConfirm.vue.d.ts +6 -0
  134. package/dist/src/views/scheduling/components/ScheduleOnboardingDemandDays.vue.d.ts +6 -0
  135. package/dist/src/views/scheduling/components/ScheduleOnboardingDemandFooter.vue.d.ts +6 -0
  136. package/dist/src/views/scheduling/components/ScheduleOnboardingDemandHeader.vue.d.ts +6 -0
  137. package/dist/src/views/scheduling/components/ScheduleOnboardingDoneArt.vue.d.ts +2 -0
  138. package/dist/src/views/scheduling/components/ScheduleOnboardingHoursProfileNotice.vue.d.ts +10 -0
  139. package/dist/src/views/scheduling/components/ScheduleOnboardingPositions.vue.d.ts +6 -0
  140. package/dist/src/views/scheduling/components/ScheduleOnboardingReview.vue.d.ts +6 -0
  141. package/dist/src/views/scheduling/components/ScheduleOnboardingSettings.vue.d.ts +6 -0
  142. package/dist/src/views/scheduling/components/ScheduleOnboardingWelcome.vue.d.ts +11 -0
  143. package/dist/src/views/scheduling/components/ScheduleOnboardingWizard.vue.d.ts +9 -0
  144. package/dist/src/views/scheduling/components/ScheduleOnboardingWizardFooter.vue.d.ts +6 -0
  145. package/dist/src/views/scheduling/components/ScheduleOnboardingWizardHeader.vue.d.ts +11 -0
  146. package/dist/src/views/scheduling/components/SchedulePublishModal.vue.d.ts +8 -0
  147. package/dist/src/views/scheduling/components/SchedulePublishShareArt.vue.d.ts +2 -0
  148. package/dist/src/views/scheduling/components/ScheduleReviewBar.vue.d.ts +12 -0
  149. package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +70 -0
  150. package/dist/src/views/scheduling/components/ScheduleSelectExistingEmployeeModal.vue.d.ts +6 -0
  151. package/dist/src/views/scheduling/components/ScheduleSetupBanner.vue.d.ts +12 -0
  152. package/dist/src/views/scheduling/components/ScheduleShiftCell.vue.d.ts +35 -0
  153. package/dist/src/views/scheduling/components/ScheduleShiftHeadcountEditor.vue.d.ts +10 -0
  154. package/dist/src/views/scheduling/components/ScheduleShiftImpact.vue.d.ts +6 -0
  155. package/dist/src/views/scheduling/components/ScheduleShiftMoreOptions.vue.d.ts +8 -0
  156. package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +16 -0
  157. package/dist/src/views/scheduling/components/ScheduleShiftRepeatDaysRow.vue.d.ts +8 -0
  158. package/dist/src/views/scheduling/components/ScheduleShiftSegmentsEditor.vue.d.ts +8 -0
  159. package/dist/src/views/scheduling/components/ScheduleShiftWhoPicker.vue.d.ts +25 -0
  160. package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +16 -0
  161. package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +50 -0
  162. package/dist/src/views/scheduling/components/ScheduleStatsRow.vue.d.ts +12 -0
  163. package/dist/src/views/scheduling/components/ScheduleSwapShiftsModal.vue.d.ts +8 -0
  164. package/dist/src/views/scheduling/components/ScheduleTimePickerPopover.vue.d.ts +6 -0
  165. package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +20 -0
  166. package/dist/src/views/scheduling/composables/auto-schedule-mapping.d.ts +35 -0
  167. package/dist/src/views/scheduling/composables/onboarding-constants.d.ts +7 -0
  168. package/dist/src/views/scheduling/composables/onboarding-hours.d.ts +7 -0
  169. package/dist/src/views/scheduling/composables/onboarding-types.d.ts +51 -0
  170. package/dist/src/views/scheduling/composables/remyPrompt.d.ts +15 -0
  171. package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +82 -0
  172. package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +63 -0
  173. package/dist/src/views/scheduling/composables/schedule-breaks.d.ts +9 -0
  174. package/dist/src/views/scheduling/composables/schedule-calendar.d.ts +17 -0
  175. package/dist/src/views/scheduling/composables/schedule-cost.d.ts +24 -0
  176. package/dist/src/views/scheduling/composables/schedule-currency.d.ts +22 -0
  177. package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +21 -0
  178. package/dist/src/views/scheduling/composables/schedule-demand-domain.d.ts +23 -0
  179. package/dist/src/views/scheduling/composables/schedule-employee-profile.d.ts +7 -0
  180. package/dist/src/views/scheduling/composables/schedule-error.d.ts +1 -0
  181. package/dist/src/views/scheduling/composables/schedule-export-matrix.d.ts +14 -0
  182. package/dist/src/views/scheduling/composables/schedule-leave-split.d.ts +9 -0
  183. package/dist/src/views/scheduling/composables/schedule-popover-position.d.ts +16 -0
  184. package/dist/src/views/scheduling/composables/schedule-quick-pick.d.ts +23 -0
  185. package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +29 -0
  186. package/dist/src/views/scheduling/composables/schedule-time.d.ts +8 -0
  187. package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +9 -0
  188. package/dist/src/views/scheduling/composables/useCollapsedList.d.ts +9 -0
  189. package/dist/src/views/scheduling/composables/useRemyAppStore.d.ts +16 -0
  190. package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +137 -0
  191. package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +75 -0
  192. package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +50 -0
  193. package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +11 -0
  194. package/dist/src/views/scheduling/composables/useScheduleAssignmentMutations.d.ts +13 -0
  195. package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +301 -0
  196. package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +615 -0
  197. package/dist/src/views/scheduling/composables/useScheduleCellState.d.ts +27 -0
  198. package/dist/src/views/scheduling/composables/useScheduleClashDetection.d.ts +28 -0
  199. package/dist/src/views/scheduling/composables/useScheduleCloneOutletModal.d.ts +21 -0
  200. package/dist/src/views/scheduling/composables/useScheduleCoach.d.ts +80 -0
  201. package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +12 -0
  202. package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +60 -0
  203. package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +44 -0
  204. package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +111 -0
  205. package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +59 -0
  206. package/dist/src/views/scheduling/composables/useScheduleDemandRow.d.ts +47 -0
  207. package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +166 -0
  208. package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +55 -0
  209. package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +24 -0
  210. package/dist/src/views/scheduling/composables/useScheduleEmployeeAvailability.d.ts +13 -0
  211. package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +49 -0
  212. package/dist/src/views/scheduling/composables/useScheduleEmployeeCompensation.d.ts +7 -0
  213. package/dist/src/views/scheduling/composables/useScheduleEmployeeForm.d.ts +22 -0
  214. package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +50 -0
  215. package/dist/src/views/scheduling/composables/useScheduleEmployeeMenu.d.ts +38 -0
  216. package/dist/src/views/scheduling/composables/useScheduleEmployeePersistence.d.ts +32 -0
  217. package/dist/src/views/scheduling/composables/useScheduleEmployeeProfile.d.ts +16 -0
  218. package/dist/src/views/scheduling/composables/useScheduleEmployeeValidation.d.ts +18 -0
  219. package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +52 -0
  220. package/dist/src/views/scheduling/composables/useScheduleFilterBar.d.ts +14 -0
  221. package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +79 -0
  222. package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +60 -0
  223. package/dist/src/views/scheduling/composables/useScheduleLegend.d.ts +15 -0
  224. package/dist/src/views/scheduling/composables/useScheduleOnboardingAvailability.d.ts +58 -0
  225. package/dist/src/views/scheduling/composables/useScheduleOnboardingDemand.d.ts +45 -0
  226. package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +231 -0
  227. package/dist/src/views/scheduling/composables/useScheduleOnboardingFlow.d.ts +9 -0
  228. package/dist/src/views/scheduling/composables/useScheduleOnboardingHours.d.ts +15 -0
  229. package/dist/src/views/scheduling/composables/useScheduleOnboardingNavigation.d.ts +11 -0
  230. package/dist/src/views/scheduling/composables/useScheduleOnboardingPersistence.d.ts +13 -0
  231. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +1543 -0
  232. package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +25 -0
  233. package/dist/src/views/scheduling/composables/useSchedulePageActions.d.ts +18 -0
  234. package/dist/src/views/scheduling/composables/useSchedulePageBootstrap.d.ts +9 -0
  235. package/dist/src/views/scheduling/composables/useSchedulePageCellActions.d.ts +21 -0
  236. package/dist/src/views/scheduling/composables/useSchedulePageCellDrop.d.ts +20 -0
  237. package/dist/src/views/scheduling/composables/useSchedulePageClearActions.d.ts +33 -0
  238. package/dist/src/views/scheduling/composables/useSchedulePageEmployeeActions.d.ts +22 -0
  239. package/dist/src/views/scheduling/composables/useSchedulePageOverlays.d.ts +21 -0
  240. package/dist/src/views/scheduling/composables/useSchedulePdfExport.d.ts +19 -0
  241. package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +55 -0
  242. package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +35 -0
  243. package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +127 -0
  244. package/dist/src/views/scheduling/composables/useSchedulePublishPersistence.d.ts +11 -0
  245. package/dist/src/views/scheduling/composables/useScheduleRangeCalendar.d.ts +27 -0
  246. package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +313 -0
  247. package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +40 -0
  248. package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +17 -0
  249. package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +245 -0
  250. package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +63 -0
  251. package/dist/src/views/scheduling/composables/useScheduleShiftPersistence.d.ts +17 -0
  252. package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +255 -0
  253. package/dist/src/views/scheduling/composables/useScheduleStatsRow.d.ts +27 -0
  254. package/dist/src/views/scheduling/composables/useScheduleTimePicker.d.ts +49 -0
  255. package/dist/src/views/scheduling/composables/useScheduleTour.d.ts +95 -0
  256. package/dist/src/views/scheduling/composables/useScheduleViewportFit.d.ts +9 -0
  257. package/dist/src/views/scheduling/country-rules/index.d.ts +33 -0
  258. package/dist/src/views/scheduling/data.d.ts +123 -0
  259. package/dist/src/views/scheduling/locales/index.d.ts +6988 -0
  260. package/dist/src/views/scheduling/schedule-constants.d.ts +7 -0
  261. package/dist/src/views/scheduling/schedule-state.d.ts +767 -0
  262. package/dist/src/views/scheduling/schedule-store.d.ts +140 -0
  263. package/dist/src/views/scheduling/types.d.ts +381 -0
  264. package/dist/src/views/team/components/MemberGrantFields.vue.d.ts +2 -6
  265. package/dist/src/views/team/components/PortalConditionForm.vue.d.ts +2 -2
  266. package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +0 -2
  267. package/dist/src/views/team/condition-builders/ConditionBuilderForm.vue.d.ts +2 -2
  268. package/dist/src/views/team/member/AddMemberForm.vue.d.ts +0 -2
  269. package/dist/src/views/team/member/TeamMemberMasterUser.vue.d.ts +0 -2
  270. package/dist/style.css +1 -1
  271. package/dist/timesheet-CZHcebqS.js +76 -0
  272. package/dist/tsconfig.app.tsbuildinfo +1 -1
  273. package/dist/{useAppStore-CL6EEDuw.js → useAppStore-DfqsbhT2.js} +1 -1
  274. package/dist/useDiscardConfirm-CzZSPyvh.js +28 -0
  275. package/dist/{useLoading-BBjBUzGJ.js → useLoading-CQnX5WjI.js} +1 -1
  276. package/dist/useMessage-_ywT_N9X.js +17 -0
  277. package/dist/{useReportPermissions-Bg0fma6m.js → useReportPermissions-kTjftFk7.js} +13 -13
  278. package/package.json +7 -5
  279. package/dist/AuditLogList-Dd6HyFhk.js +0 -1777
  280. package/dist/FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js +0 -45
  281. package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +0 -49
  282. package/dist/MyPosProfile-CN8Bj3aV.js +0 -301
  283. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BBoRXQPn.js +0 -4243
  284. package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-B5QDOF0L.js +0 -1840
  285. package/dist/RoleList-ALmAwN0U.js +0 -739
  286. package/dist/SelectFilter-ATOm0hdn.js +0 -269
  287. package/dist/TeamMemberList-DZfEnOs1.js +0 -2097
  288. package/dist/TimesheetList-CECFKt7H.js +0 -402
  289. package/dist/TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-RIyoAmeb.js +0 -58
  290. package/dist/employee-Dg-J9goA.js +0 -205
  291. package/dist/member-grant-C46lvrh2.js +0 -55
  292. package/dist/restaurant-CKhT6kgj.js +0 -45
  293. package/dist/role-C6hFKOfU.js +0 -93
  294. package/dist/rule-BlMymDXm.js +0 -788
  295. package/dist/useDiscardConfirm-DPhEV6v0.js +0 -157
@@ -1,22 +1,23 @@
1
- import { defineComponent as Ve, computed as x, resolveComponent as I, createElementBlock as O, openBlock as _, createElementVNode as m, createVNode as n, toDisplayString as N, Fragment as ke, renderList as je, createCommentVNode as H, withKeys as Ie, withModifiers as oe, normalizeClass as be, toRaw as Ge, ref as h, watch as re, renderSlot as qe, unref as t, withCtx as w, createBlock as D, onUnmounted as He, isRef as Re, createTextVNode as he, resolveDynamicComponent as Je, h as pe } from "vue";
2
- import { useI18n as $e, useCoreStore as We } from "@feedmepos/mf-common";
3
- import { useSnackbar as Me, components as Pe, useDialog as Qe, useBreakpoints as Ye } from "@feedmepos/ui-library";
4
- import { S as fe, _ as Ze } from "./SelectFilter-ATOm0hdn.js";
5
- import { _ as Xe, a as ea } from "./app-CdrnR_Pw.js";
6
- import { _ as Ee, u as aa, H as la } from "./FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js";
7
- import { u as ta, _ as sa } from "./useDiscardConfirm-DPhEV6v0.js";
8
- import { _ as oa } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
9
- import { c as ra, b as na, a as ia, p as ua, r as da, s as ca, _ as ma, d as pa, e as Fe } from "./PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js";
10
- import { u as fa } from "./useDebounce-B8ZPVS5C.js";
11
- import { n as va } from "./string-DZQ1uNjn.js";
12
- import { u as Ae, E as ya } from "./employee-Dg-J9goA.js";
13
- import { u as De } from "./restaurant-CKhT6kgj.js";
14
- import { l as ga } from "./lodash-7SZBZ8VQ.js";
15
- import { _ as Ue } from "./FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js";
16
- import { u as Ne } from "./useLoading-BBjBUzGJ.js";
17
- import { u as _e } from "./role-C6hFKOfU.js";
1
+ import { defineComponent as Ve, computed as k, resolveComponent as w, createElementBlock as O, openBlock as b, createElementVNode as m, createVNode as n, toDisplayString as N, Fragment as ke, renderList as Be, createCommentVNode as H, withKeys as Ie, withModifiers as oe, normalizeClass as be, ref as h, watch as re, renderSlot as je, unref as t, withCtx as x, createBlock as D, onUnmounted as Ge, isRef as Re, createTextVNode as he, resolveDynamicComponent as qe, h as pe } from "vue";
2
+ import { useI18n as Le, useCoreStore as He } from "@feedmepos/mf-common";
3
+ import { useSnackbar as $e, components as Me, useDialog as We, useBreakpoints as Je } from "@feedmepos/ui-library";
4
+ import { S as fe } from "./SelectFilter-BpzBwBmQ.js";
5
+ import { _ as Qe, c as Ye, a as Ze } from "./app-DEZT4wdV.js";
6
+ import { _ as Ee, a as Fe, u as Xe, H as ea } from "./FormSection.vue_vue_type_script_setup_true_lang-7S2w36aY.js";
7
+ import { _ as aa } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
8
+ import { _ as la } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
9
+ import { c as ta, b as sa, a as oa, p as ra, r as na, s as ia, _ as ua, d as da, e as Ue } from "./PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js";
10
+ import { u as ca } from "./useDebounce-B8ZPVS5C.js";
11
+ import { n as ma } from "./string-DZQ1uNjn.js";
12
+ import { u as Pe, E as pa } from "./employee-C6z5i6O4.js";
13
+ import { u as Ae } from "./restaurant-ejyX2jEG.js";
14
+ import { l as fa } from "./lodash-B8bqa6a9.js";
15
+ import { u as va } from "./useDiscardConfirm-CzZSPyvh.js";
16
+ import { u as De } from "./useLoading-CQnX5WjI.js";
17
+ import { c as Se } from "./object-Dwyg2LgX.js";
18
+ import { u as _e } from "./role-C_t3DDlG.js";
18
19
  /* empty css */
19
- const ha = { class: "rounded-lg border border-fm-color-neutral-gray-200 p-16 space-y-16" }, ba = { class: "fm-typo-en-title-sm-600" }, _a = { class: "space-y-16" }, Va = { class: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] gap-16" }, ka = { class: "text-sm font-semibold text-fm-color-typo-primary" }, xa = { class: "text-sm font-semibold text-fm-color-typo-primary" }, wa = { class: "flex justify-self-end" }, Ia = ["tabindex", "aria-disabled", "aria-label", "onClick", "onKeydown"], Ra = /* @__PURE__ */ Ve({
20
+ const ya = { class: "rounded-lg border border-fm-color-neutral-gray-200 p-16 space-y-16" }, ga = { class: "fm-typo-en-title-sm-600" }, ha = { class: "space-y-16" }, ba = { class: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] gap-16" }, _a = { class: "text-sm font-semibold text-fm-color-typo-primary" }, Va = { class: "text-sm font-semibold text-fm-color-typo-primary" }, ka = { class: "flex justify-self-end" }, xa = ["tabindex", "aria-disabled", "aria-label", "onClick", "onKeydown"], wa = /* @__PURE__ */ Ve({
20
21
  __name: "OutletRoleAssignment",
21
22
  props: {
22
23
  modelValue: {},
@@ -32,49 +33,49 @@ const ha = { class: "rounded-lg border border-fm-color-neutral-gray-200 p-16 spa
32
33
  removeLabel: {}
33
34
  },
34
35
  emits: ["update:modelValue"],
35
- setup(b, { emit: Z }) {
36
- const l = b, V = Z, f = x(() => ({
36
+ setup(R, { emit: Z }) {
37
+ const l = R, _ = Z, f = k(() => ({
37
38
  isRoleUsable: l.isRoleUsable,
38
39
  isRestaurantLocked: l.isRestaurantLocked
39
40
  }));
40
41
  function L(y) {
41
- return na(l.restaurants, l.modelValue, y);
42
+ return sa(l.restaurants, l.modelValue, y);
42
43
  }
43
44
  function X(y) {
44
- return ia(l.roles, y.restaurantId, y.roleId, f.value);
45
+ return oa(l.roles, y.restaurantId, y.roleId, f.value);
45
46
  }
46
- function k(y) {
47
+ function V(y) {
47
48
  return l.isRestaurantLocked(y);
48
49
  }
49
50
  function ee(y, U) {
50
- const v = l.modelValue[y], R = ua(l.roles, U, v.roleId, f.value), M = [...l.modelValue];
51
- M[y] = { ...v, restaurantId: U, roleId: R }, V("update:modelValue", M);
51
+ const v = l.modelValue[y], I = ra(l.roles, U, v.roleId, f.value), M = [...l.modelValue];
52
+ M[y] = { ...v, restaurantId: U, roleId: I }, _("update:modelValue", M);
52
53
  }
53
54
  function u(y, U) {
54
- const v = l.modelValue[y], R = [...l.modelValue];
55
- R[y] = { ...v, roleId: U }, V("update:modelValue", R);
55
+ const v = l.modelValue[y], I = [...l.modelValue];
56
+ I[y] = { ...v, roleId: U }, _("update:modelValue", I);
56
57
  }
57
58
  function E() {
58
- V("update:modelValue", [...l.modelValue, l.createRow()]);
59
+ _("update:modelValue", [...l.modelValue, l.createRow()]);
59
60
  }
60
61
  function F(y) {
61
- V(
62
+ _(
62
63
  "update:modelValue",
63
- da(l.modelValue, y, l.createRow, f.value)
64
+ na(l.modelValue, y, l.createRow, f.value)
64
65
  );
65
66
  }
66
- const K = x(() => ra(l.restaurants, l.modelValue));
67
+ const K = k(() => ta(l.restaurants, l.modelValue));
67
68
  return (y, U) => {
68
- const v = I("FmSelect"), R = I("FmIcon"), M = I("FmButton");
69
- return _(), O("div", ha, [
70
- m("div", ba, N(b.title), 1),
71
- m("div", _a, [
72
- m("div", Va, [
73
- m("div", ka, N(b.restaurantLabel), 1),
74
- m("div", xa, N(b.roleLabel), 1),
69
+ const v = w("FmSelect"), I = w("FmIcon"), M = w("FmButton");
70
+ return b(), O("div", ya, [
71
+ m("div", ga, N(R.title), 1),
72
+ m("div", ha, [
73
+ m("div", ba, [
74
+ m("div", _a, N(R.restaurantLabel), 1),
75
+ m("div", Va, N(R.roleLabel), 1),
75
76
  U[0] || (U[0] = m("div", null, null, -1))
76
77
  ]),
77
- (_(!0), O(ke, null, je(b.modelValue, (p, s) => (_(), O("div", {
78
+ (b(!0), O(ke, null, Be(R.modelValue, (p, s) => (b(), O("div", {
78
79
  key: `${p.restaurantId || "new"}-${s}`,
79
80
  class: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] items-center gap-16"
80
81
  }, [
@@ -85,41 +86,41 @@ const ha = { class: "rounded-lg border border-fm-color-neutral-gray-200 p-16 spa
85
86
  multiselect: !1,
86
87
  searchable: "",
87
88
  "search-debounce": 300,
88
- placeholder: b.restaurantLabel,
89
- disabled: k(p.restaurantId),
90
- "onUpdate:modelValue": (C) => ee(s, C)
89
+ placeholder: R.restaurantLabel,
90
+ disabled: V(p.restaurantId),
91
+ "onUpdate:modelValue": (S) => ee(s, S)
91
92
  }, null, 8, ["model-value", "items", "placeholder", "disabled", "onUpdate:modelValue"]),
92
93
  n(v, {
93
94
  class: "min-w-0",
94
95
  "model-value": p.roleId,
95
96
  items: X(p),
96
97
  multiselect: !1,
97
- placeholder: b.roleLabel,
98
- disabled: !p.restaurantId || k(p.restaurantId),
99
- "onUpdate:modelValue": (C) => u(s, C)
98
+ placeholder: R.roleLabel,
99
+ disabled: !p.restaurantId || V(p.restaurantId),
100
+ "onUpdate:modelValue": (S) => u(s, S)
100
101
  }, null, 8, ["model-value", "items", "placeholder", "disabled", "onUpdate:modelValue"]),
101
- m("div", wa, [
102
- b.modelValue.length > 1 ? (_(), O("div", {
102
+ m("div", ka, [
103
+ R.modelValue.length > 1 ? (b(), O("div", {
103
104
  key: 0,
104
105
  role: "button",
105
- tabindex: k(p.restaurantId) ? -1 : 0,
106
- "aria-disabled": k(p.restaurantId),
106
+ tabindex: V(p.restaurantId) ? -1 : 0,
107
+ "aria-disabled": V(p.restaurantId),
107
108
  class: be(["inline-flex h-40 w-40 shrink-0 items-center justify-center rounded-lg text-fm-color-neutral-gray-400 transition-colors hover:bg-fm-color-neutral-gray-100 focus:outline-none focus:ring-2 focus:ring-fm-color-primary disabled:cursor-not-allowed disabled:text-fm-color-neutral-gray-200 disabled:hover:bg-transparent", {
108
- "cursor-pointer": !k(p.restaurantId),
109
- "pointer-events-none": k(p.restaurantId)
109
+ "cursor-pointer": !V(p.restaurantId),
110
+ "pointer-events-none": V(p.restaurantId)
110
111
  }]),
111
- "aria-label": b.removeLabel,
112
- onClick: oe((C) => F(s), ["stop"]),
112
+ "aria-label": R.removeLabel,
113
+ onClick: oe((S) => F(s), ["stop"]),
113
114
  onKeydown: [
114
- Ie(oe((C) => F(s), ["prevent", "stop"]), ["enter"]),
115
- Ie(oe((C) => F(s), ["prevent", "stop"]), ["space"])
115
+ Ie(oe((S) => F(s), ["prevent", "stop"]), ["enter"]),
116
+ Ie(oe((S) => F(s), ["prevent", "stop"]), ["space"])
116
117
  ]
117
118
  }, [
118
- n(R, {
119
+ n(I, {
119
120
  name: "delete",
120
121
  size: "md"
121
122
  })
122
- ], 42, Ia)) : H("", !0)
123
+ ], 42, xa)) : H("", !0)
123
124
  ])
124
125
  ]))), 128))
125
126
  ]),
@@ -129,7 +130,7 @@ const ha = { class: "rounded-lg border border-fm-color-neutral-gray-200 p-16 spa
129
130
  "text-color": "primary",
130
131
  "border-color": "primary",
131
132
  "prepend-icon": "add",
132
- label: b.addLabel,
133
+ label: R.addLabel,
133
134
  size: "md",
134
135
  disabled: !K.value,
135
136
  onClick: oe(E, ["stop"])
@@ -137,20 +138,7 @@ const ha = { class: "rounded-lg border border-fm-color-neutral-gray-200 p-16 spa
137
138
  ]);
138
139
  };
139
140
  }
140
- });
141
- function Ce(b) {
142
- return JSON.parse(JSON.stringify(b));
143
- }
144
- function Se(b) {
145
- if (typeof structuredClone > "u")
146
- return Ce(b);
147
- try {
148
- return structuredClone(Ge(b));
149
- } catch {
150
- return Ce(b);
151
- }
152
- }
153
- const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class: "fm-typo-en-title-md-600" }, Ua = { class: "space-y-40" }, Ca = { class: "flex flex-row gap-16" }, Sa = { class: "space-y-16" }, La = { class: "flex gap-8 items-center justify-start" }, Le = 4, $a = /* @__PURE__ */ Ve({
141
+ }), Ia = { class: "flex w-full items-center justify-between" }, Ra = { class: "fm-typo-en-title-md-600" }, Ea = { class: "space-y-40" }, Fa = { class: "flex flex-row gap-16" }, Ua = { class: "space-y-16" }, Sa = { class: "flex gap-8 items-center justify-start" }, Ce = 4, Ca = /* @__PURE__ */ Ve({
154
142
  __name: "EmployeeForm",
155
143
  props: {
156
144
  roleErrorMessage: {
@@ -159,8 +147,8 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
159
147
  }
160
148
  },
161
149
  emits: ["submitted"],
162
- setup(b, { expose: Z, emit: l }) {
163
- const V = _e(), f = De(), L = Ae(), X = Me(), k = Ne(X), ee = l, { t: u } = $e(), E = h(!1), F = h(!0);
150
+ setup(R, { expose: Z, emit: l }) {
151
+ const _ = _e(), f = Ae(), L = Pe(), X = $e(), V = De(X), ee = l, { t: u } = Le(), E = h(!1), F = h(!0);
164
152
  function K() {
165
153
  return {
166
154
  restaurantId: "",
@@ -175,14 +163,14 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
175
163
  isMasterUser: r.isMasterUser ?? !1,
176
164
  name: r.name ?? "",
177
165
  passcode: r.passcode ?? "",
178
- restaurants: r.restaurants.length > 0 ? r.restaurants.map(({ restaurantId: S, roleId: P }) => ({
179
- restaurantId: S,
166
+ restaurants: r.restaurants.length > 0 ? r.restaurants.map(({ restaurantId: C, roleId: P }) => ({
167
+ restaurantId: C,
180
168
  roleId: P
181
169
  })) : [K()]
182
170
  };
183
171
  }
184
172
  const U = (d) => {
185
- s.value = y(d), p.value = Se(s.value), C.value = d == null ? void 0 : d._id, A.value = [], s.value.passcode ? (A.value = s.value.passcode.split(""), B.value = !0) : B.value = !1, F.value = !d, E.value = !0;
173
+ s.value = y(d), p.value = Se(s.value), S.value = d == null ? void 0 : d._id, A.value = [], s.value.passcode ? (A.value = s.value.passcode.split(""), B.value = !0) : B.value = !1, F.value = !d, E.value = !0;
186
174
  };
187
175
  function v() {
188
176
  return {
@@ -193,24 +181,24 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
193
181
  restaurants: [K()]
194
182
  };
195
183
  }
196
- const R = x(() => F.value ? u("hr.employee.form.add") : u("hr.employee.form.update")), M = x(() => F.value ? u("common.create") : u("common.update")), p = h(v()), s = h(v()), C = h(void 0), T = x(
197
- () => ca(s.value.restaurants)
184
+ const I = k(() => F.value ? u("hr.employee.form.add") : u("hr.employee.form.update")), M = k(() => F.value ? u("common.create") : u("common.update")), p = h(v()), s = h(v()), S = h(void 0), T = k(
185
+ () => ia(s.value.restaurants)
198
186
  );
199
187
  function ne(d) {
200
188
  var r;
201
- return d ? !((r = f.restaurants.value.find((S) => S._id === d)) != null && r.managable) : !1;
189
+ return d ? !((r = f.restaurants.value.find((C) => C._id === d)) != null && r.managable) : !1;
202
190
  }
203
191
  function ie(d) {
204
192
  return d.isUsable;
205
193
  }
206
- const A = h([]), B = h(!1), J = h(!1), ae = h(!1), ue = x(() => T.value.length > 0);
194
+ const A = h([]), B = h(!1), W = h(!1), ae = h(!1), ue = k(() => T.value.length > 0);
207
195
  async function j() {
208
196
  if (ue.value)
209
197
  try {
210
- const d = await k.custom(
211
- () => ya.generateEmployeePasscode({
198
+ const d = await V.custom(
199
+ () => pa.generateEmployeePasscode({
212
200
  restaurantIds: T.value,
213
- excludePosUserId: C.value
201
+ excludePosUserId: S.value
214
202
  }),
215
203
  { isLoading: ae }
216
204
  );
@@ -218,8 +206,8 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
218
206
  } catch {
219
207
  }
220
208
  }
221
- const W = ta(
222
- () => !ga.isEqual(s.value, p.value),
209
+ const J = va(
210
+ () => !fa.isEqual(s.value, p.value),
223
211
  () => {
224
212
  E.value = !1;
225
213
  }
@@ -237,7 +225,7 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
237
225
  }
238
226
  async function le() {
239
227
  var P, z;
240
- const d = p.value, r = C.value, S = {
228
+ const d = p.value, r = S.value, C = {
241
229
  user: {
242
230
  name: s.value.name,
243
231
  passcode: s.value.passcode
@@ -249,7 +237,7 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
249
237
  }))
250
238
  };
251
239
  if (!s.value.isMasterUser)
252
- await L.updateEmployee(r, S);
240
+ await L.updateEmployee(r, C);
253
241
  else {
254
242
  const $ = {
255
243
  user: {
@@ -267,21 +255,21 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
267
255
  }
268
256
  }
269
257
  async function Q() {
270
- F.value ? await k.minor(
258
+ F.value ? await V.minor(
271
259
  async () => {
272
260
  await ve();
273
261
  },
274
262
  {
275
263
  successMessage: u("hr.employee.create.successMessage"),
276
- isLoading: J
264
+ isLoading: W
277
265
  }
278
- ) : await k.minor(
266
+ ) : await V.minor(
279
267
  async () => {
280
268
  await le();
281
269
  },
282
270
  {
283
271
  successMessage: u("hr.employee.update.successMessage"),
284
- isLoading: J
272
+ isLoading: W
285
273
  }
286
274
  ), ee("submitted"), E.value = !1;
287
275
  }
@@ -293,61 +281,61 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
293
281
  show: E,
294
282
  trigger: U
295
283
  }), (d, r) => {
296
- const S = I("FmIcon"), P = I("FmSwitch"), z = I("FmTextField"), $ = I("FmFormGroup"), G = I("fm-button"), de = I("fm-side-sheet");
297
- return _(), O(ke, null, [
298
- qe(d.$slots, "default", { trigger: U }),
284
+ const C = w("FmIcon"), P = w("FmSwitch"), z = w("FmTextField"), $ = w("FmFormGroup"), G = w("fm-button"), de = w("fm-side-sheet");
285
+ return b(), O(ke, null, [
286
+ je(d.$slots, "default", { trigger: U }),
299
287
  n(de, {
300
288
  id: "unit-form",
301
289
  modelValue: E.value,
302
290
  "onUpdate:modelValue": r[9] || (r[9] = (o) => E.value = o),
303
- "is-container": t(Pe).FmForm,
291
+ "is-container": t(Me).FmForm,
304
292
  "is-container-props": {
305
293
  onValidationSuccess: Q,
306
294
  blameFormChildOnValidationFailed: !0
307
295
  },
308
296
  "max-width": 960,
309
297
  "close-button": !1,
310
- "onOn:clickedAway": t(W)
298
+ "onOn:clickedAway": t(J)
311
299
  }, {
312
- "side-sheet-header": w(() => [
313
- m("div", Ea, [
314
- m("p", Fa, N(R.value), 1),
315
- n(S, {
300
+ "side-sheet-header": x(() => [
301
+ m("div", Ia, [
302
+ m("p", Ra, N(I.value), 1),
303
+ n(C, {
316
304
  name: "close",
317
305
  size: "md",
318
306
  class: "cursor-pointer",
319
- onClick: t(W)
307
+ onClick: t(J)
320
308
  }, null, 8, ["onClick"])
321
309
  ])
322
310
  ]),
323
- "side-sheet-footer": w(() => [
324
- m("div", La, [
311
+ "side-sheet-footer": x(() => [
312
+ m("div", Sa, [
325
313
  n(G, {
326
314
  label: M.value,
327
315
  size: "lg",
328
316
  type: "submit",
329
317
  variant: "primary",
330
- disabled: J.value
318
+ disabled: W.value
331
319
  }, null, 8, ["label", "disabled"]),
332
320
  n(G, {
333
321
  label: t(u)("common.cancel"),
334
322
  size: "lg",
335
323
  variant: "tertiary",
336
- disabled: J.value,
337
- onClick: t(W)
324
+ disabled: W.value,
325
+ onClick: t(J)
338
326
  }, null, 8, ["label", "disabled", "onClick"])
339
327
  ])
340
328
  ]),
341
- default: w(() => [
342
- m("div", Ua, [
343
- n(Ue, {
329
+ default: x(() => [
330
+ m("div", Ea, [
331
+ n(Ee, {
344
332
  title: t(u)("hr.employee.form.employeeSetting")
345
333
  }, {
346
- default: w(() => [
347
- n(Ee, {
334
+ default: x(() => [
335
+ n(Fe, {
348
336
  label: t(u)("hr.employee.form.masterUserConfig")
349
337
  }, {
350
- default: w(() => [
338
+ default: x(() => [
351
339
  n(P, {
352
340
  modelValue: s.value.isMasterUser,
353
341
  "onUpdate:modelValue": r[0] || (r[0] = (o) => s.value.isMasterUser = o),
@@ -359,8 +347,8 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
359
347
  ]),
360
348
  _: 1
361
349
  }, 8, ["label"]),
362
- m("div", Ca, [
363
- s.value.isMasterUser ? (_(), D(z, {
350
+ m("div", Fa, [
351
+ s.value.isMasterUser ? (b(), D(z, {
364
352
  key: 0,
365
353
  modelValue: s.value.code,
366
354
  "onUpdate:modelValue": r[1] || (r[1] = (o) => s.value.code = o),
@@ -374,32 +362,32 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
374
362
  rules: [(o) => !!o || t(u)("hr.employee.form.required")]
375
363
  }, null, 8, ["modelValue", "label", "rules"])
376
364
  ]),
377
- n(Ee, {
365
+ n(Fe, {
378
366
  label: t(u)("hr.employee.form.passcode")
379
367
  }, {
380
- default: w(() => [
381
- m("div", Sa, [
368
+ default: x(() => [
369
+ m("div", Ua, [
382
370
  n($, {
383
371
  modelValue: A.value,
384
372
  "onUpdate:modelValue": r[6] || (r[6] = (o) => A.value = o),
385
373
  rules: [
386
- (o) => (o == null ? void 0 : o.filter((Y) => !!Y).length) !== Le ? t(u)("hr.employee.form.passcodeRequired") : !0
374
+ (o) => (o == null ? void 0 : o.filter((Y) => !!Y).length) !== Ce ? t(u)("hr.employee.form.passcodeRequired") : !0
387
375
  ]
388
376
  }, {
389
- default: w(() => [
390
- n(ma, {
377
+ default: x(() => [
378
+ n(ua, {
391
379
  modelValue: A.value,
392
380
  "onUpdate:modelValue": r[3] || (r[3] = (o) => A.value = o),
393
381
  masked: B.value,
394
382
  "onUpdate:masked": r[4] || (r[4] = (o) => B.value = o),
395
- length: Le,
383
+ length: Ce,
396
384
  "toggle-label": t(u)("hr.employee.form.passcodeToggleVisibility"),
397
385
  onComplete: r[5] || (r[5] = (o) => s.value.passcode = o)
398
386
  }, null, 8, ["modelValue", "masked", "toggle-label"])
399
387
  ]),
400
388
  _: 1
401
389
  }, 8, ["modelValue", "rules"]),
402
- n(pa, {
390
+ n(da, {
403
391
  label: t(u)("hr.employee.form.passcodeGenerate"),
404
392
  hint: t(u)("hr.employee.form.passcodeSelectOutletFirst"),
405
393
  loading: ae.value,
@@ -413,8 +401,8 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
413
401
  ]),
414
402
  _: 1
415
403
  }, 8, ["title"]),
416
- n(Ue, null, {
417
- default: w(() => [
404
+ n(Ee, null, {
405
+ default: x(() => [
418
406
  n($, {
419
407
  modelValue: s.value.restaurants,
420
408
  "onUpdate:modelValue": r[8] || (r[8] = (o) => s.value.restaurants = o),
@@ -424,12 +412,12 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
424
412
  (o) => o.every((Y) => Y.restaurantId && Y.roleId) || t(u)("hr.employee.form.roleRequired")
425
413
  ]
426
414
  }, {
427
- default: w(() => [
428
- n(Ra, {
415
+ default: x(() => [
416
+ n(wa, {
429
417
  modelValue: s.value.restaurants,
430
418
  "onUpdate:modelValue": r[7] || (r[7] = (o) => s.value.restaurants = o),
431
419
  restaurants: t(f).restaurants.value,
432
- roles: t(V).roles.value,
420
+ roles: t(_).roles.value,
433
421
  "is-role-usable": ie,
434
422
  "is-restaurant-locked": ne,
435
423
  "create-row": K,
@@ -452,48 +440,48 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
452
440
  ], 64);
453
441
  };
454
442
  }
455
- }), Ma = {
443
+ }), La = {
456
444
  class: "space-y-8"
457
- }, Pa = {
445
+ }, $a = {
458
446
  key: 0,
459
447
  class: "flex w-full items-start justify-between"
460
- }, Aa = {
448
+ }, Ma = {
461
449
  class: "flex items-start gap-8"
462
- }, Da = {
450
+ }, Pa = {
463
451
  class: "flex"
464
- }, Na = {
452
+ }, Aa = {
465
453
  key: 1,
466
454
  class: "space-y-4"
467
- }, Oa = {
455
+ }, Da = {
468
456
  class: "px-16"
469
- }, Ka = {
457
+ }, Na = {
470
458
  class: "px-16 flex items-start gap-8"
471
- }, za = {
459
+ }, Oa = {
472
460
  class: "flex h-full flex-col overflow-auto"
473
- }, Ta = {
461
+ }, Ka = {
474
462
  class: "space-y-4"
475
- }, Ba = {
463
+ }, za = {
476
464
  class: "fm-typo-en-body-lg-600"
477
- }, ja = {
465
+ }, Ta = {
478
466
  key: 0,
479
467
  class: "mr-4"
480
- }, Ga = {
468
+ }, Ba = {
481
469
  class: "text-fm-color-typo-secondary"
482
- }, qa = {
470
+ }, ja = {
483
471
  class: "line-clamp-2"
484
- }, Ha = {
472
+ }, Ga = {
485
473
  class: "font-bold"
486
- }, q = 200, Ja = /* @__PURE__ */ Ve({
474
+ }, q = 200, qa = /* @__PURE__ */ Ve({
487
475
  __name: "EmployeeList",
488
- setup(b, {
476
+ setup(R, {
489
477
  expose: Z
490
478
  }) {
491
479
  const {
492
480
  t: l
493
- } = $e(), V = h(), f = Ae(), L = De(), X = We(), {
494
- currentBusiness: k,
481
+ } = Le(), _ = h(), f = Pe(), L = Ae(), X = He(), {
482
+ currentBusiness: V,
495
483
  sessionUser: ee
496
- } = X, u = _e(), E = x(() => L.isLoading.value), F = h(u.roles.value.length === 0);
484
+ } = X, u = _e(), E = k(() => L.isLoading.value), F = h(u.roles.value.length === 0);
497
485
  re(L.restaurants, (e) => {
498
486
  if (e.length > 0 && f.listEmployees.value.length > 0) {
499
487
  const a = new Map(e.map((i) => [i._id, i]));
@@ -510,7 +498,7 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
510
498
  }));
511
499
  }
512
500
  });
513
- const K = x(() => L.restaurants.value.map((e) => ({
501
+ const K = k(() => L.restaurants.value.map((e) => ({
514
502
  label: `${e.profile.code ? `${e.profile.code} - ` : ""}${e.profile.name}`,
515
503
  value: e._id
516
504
  }))), y = re(u.roles, (e) => {
@@ -527,14 +515,14 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
527
515
  }
528
516
  y();
529
517
  }
530
- }), U = x(() => f.listEmployees.value), {
518
+ }), U = k(() => f.listEmployees.value), {
531
519
  searchKey: v
532
- } = aa(), R = h(""), M = x(() => U.value), p = x(() => f.totalEmployees.value), s = h(1), C = x(() => f.isLoading.value), T = h(!1), ne = x(() => {
520
+ } = Xe(), I = h(""), M = k(() => U.value), p = k(() => f.totalEmployees.value), s = h(1), S = k(() => f.isLoading.value), T = h(!1), ne = k(() => {
533
521
  var e;
534
522
  return JSON.stringify({
535
- businessId: ((e = k.value) == null ? void 0 : e._id) ?? "",
536
- search: R.value.trim(),
537
- restaurantIds: [...V.value ?? []].sort(),
523
+ businessId: ((e = V.value) == null ? void 0 : e._id) ?? "",
524
+ search: I.value.trim(),
525
+ restaurantIds: [..._.value ?? []].sort(),
538
526
  roleIds: [...o.value ?? []].sort()
539
527
  });
540
528
  }), ie = (e) => {
@@ -544,14 +532,14 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
544
532
  function B(e) {
545
533
  return [{
546
534
  label: l("hr.employee.form.update"),
547
- onClick: () => S(e)
535
+ onClick: () => C(e)
548
536
  }, {
549
537
  label: l("hr.employee.remove.title"),
550
538
  onClick: () => z(e),
551
539
  itemClass: "text-fm-color-typo-error"
552
540
  }];
553
541
  }
554
- const J = ({
542
+ const W = ({
555
543
  employee: e,
556
544
  className: a = ""
557
545
  }) => n("div", {
@@ -559,7 +547,7 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
559
547
  onClick: (i) => {
560
548
  i.stopPropagation();
561
549
  }
562
- }, [n(sa, {
550
+ }, [n(aa, {
563
551
  items: B(e)
564
552
  }, null)]), ae = [{
565
553
  accessorKey: "code",
@@ -573,9 +561,9 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
573
561
  const a = e.row.original;
574
562
  return n("div", {
575
563
  class: "flex items-center gap-8"
576
- }, [n(Pe.FmAvatar, {
564
+ }, [n(Me.FmAvatar, {
577
565
  name: a.name,
578
- initials: va(a.name),
566
+ initials: ma(a.name),
579
567
  size: "sm",
580
568
  class: "shrink-0"
581
569
  }, null), n("span", {
@@ -588,7 +576,7 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
588
576
  header: () => l("hr.employee.columns.restaurants"),
589
577
  enableSorting: !1,
590
578
  cell(e) {
591
- return E.value || F.value ? pe(Fe) : e.row.original.restaurants.map((a, i) => {
579
+ return E.value || F.value ? pe(Ue) : e.row.original.restaurants.map((a, i) => {
592
580
  const g = ie(a);
593
581
  return pe("div", {
594
582
  key: a.restaurantId || i
@@ -602,7 +590,7 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
602
590
  header: () => l("hr.employee.columns.assignedRole"),
603
591
  enableSorting: !1,
604
592
  cell(e) {
605
- return E.value || F.value ? pe(Fe, {
593
+ return E.value || F.value ? pe(Ue, {
606
594
  width: "120px"
607
595
  }) : e.row.original.restaurants.map((a, i) => {
608
596
  const g = A(a);
@@ -624,7 +612,7 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
624
612
  headerContentClass: "-mx-16"
625
613
  },
626
614
  cell(e) {
627
- return J({
615
+ return W({
628
616
  employee: e.row.original,
629
617
  className: "flex w-full items-center justify-end"
630
618
  });
@@ -640,7 +628,7 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
640
628
  row: {
641
629
  original: e
642
630
  }
643
- }) : e[a.accessorKey]]))]), j = Me(), W = Qe(), ve = Ne(j), le = h(!1), Q = h(), d = h();
631
+ }) : e[a.accessorKey]]))]), j = $e(), J = We(), ve = De(j), le = h(!1), Q = h(), d = h();
644
632
  function r(e) {
645
633
  const a = e.isRestricted;
646
634
  return a && j.open({
@@ -650,13 +638,13 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
650
638
  type: "error"
651
639
  }), a;
652
640
  }
653
- const S = (e) => {
641
+ const C = (e) => {
654
642
  var i;
655
643
  e && r(e) || (i = d.value) == null || i.trigger(e);
656
644
  }, {
657
645
  breakpoints: P
658
- } = Ye(), z = (e) => {
659
- r(e) || W.open({
646
+ } = Je(), z = (e) => {
647
+ r(e) || J.open({
660
648
  title: l("hr.employee.remove.title"),
661
649
  message: l("hr.employee.remove.message", {
662
650
  name: e.name
@@ -683,14 +671,14 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
683
671
  name: e.name
684
672
  })
685
673
  }).catch(() => {
686
- }), W.close();
674
+ }), J.close();
687
675
  });
688
676
  }, $ = h("");
689
677
  function G() {
690
678
  var e;
691
679
  (e = d.value) == null || e.trigger();
692
680
  }
693
- const de = x(() => _e().roles.value.map((e) => ({
681
+ const de = k(() => _e().roles.value.map((e) => ({
694
682
  label: e.name,
695
683
  value: e._id
696
684
  }))), o = h();
@@ -713,8 +701,8 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
713
701
  await f.readEmployeesPage({
714
702
  limit: q,
715
703
  offset: (e - 1) * q,
716
- search: R.value.trim() || void 0,
717
- restaurantIds: (a = V.value) != null && a.length ? V.value : void 0,
704
+ search: I.value.trim() || void 0,
705
+ restaurantIds: (a = _.value) != null && a.length ? _.value : void 0,
718
706
  roleIds: (i = o.value) != null && i.length ? o.value : void 0
719
707
  });
720
708
  } catch (g) {
@@ -726,29 +714,29 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
726
714
  }
727
715
  async function ye() {
728
716
  var a;
729
- if (!((a = k.value) != null && a._id)) return;
717
+ if (!((a = V.value) != null && a._id)) return;
730
718
  await ce(s.value);
731
719
  const e = Math.max(1, Math.ceil(p.value / q));
732
720
  s.value > e && (s.value = e, await ce(s.value));
733
721
  }
734
- async function Oe() {
722
+ async function Ne() {
735
723
  var e, a;
736
724
  return await f.readAllEmployeesPage({
737
- search: R.value.trim() || void 0,
738
- restaurantIds: (e = V.value) != null && e.length ? V.value : void 0,
725
+ search: I.value.trim() || void 0,
726
+ restaurantIds: (e = _.value) != null && e.length ? _.value : void 0,
739
727
  roleIds: (a = o.value) != null && a.length ? o.value : void 0
740
728
  }, p.value);
741
729
  }
742
- const Ke = fa(v, () => {
743
- R.value = v.value;
730
+ const Oe = ca(v, () => {
731
+ I.value = v.value;
744
732
  }, 300);
745
- He(Ke);
733
+ Ge(Oe);
746
734
  let ge = !1;
747
- async function ze({
735
+ async function Ke({
748
736
  pageIndex: e
749
737
  }) {
750
738
  var a;
751
- if ((a = k.value) != null && a._id && !ge && !(e === 0 && s.value === 1 && M.value.length > 0)) {
739
+ if ((a = V.value) != null && a._id && !ge && !(e === 0 && s.value === 1 && M.value.length > 0)) {
752
740
  ge = !0, s.value = e + 1;
753
741
  try {
754
742
  await ce(s.value);
@@ -759,22 +747,22 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
759
747
  }
760
748
  re(ne, async () => {
761
749
  var e;
762
- s.value = 1, T.value = !1, (e = k.value) != null && e._id && (await ce(1), T.value = !0);
750
+ s.value = 1, T.value = !1, (e = V.value) != null && e._id && (await ce(1), T.value = !0);
763
751
  }, {
764
752
  immediate: !0
765
753
  }), re(() => Q.value && Q.value.restaurants, (e) => {
766
754
  e && e.length > 0 && ($.value = "");
767
755
  });
768
- const Te = x(() => p.value > q);
756
+ const ze = k(() => p.value > q);
769
757
  return Z({
770
758
  create: G,
771
759
  filteredEmployees: M,
772
- exportEmployees: Oe,
773
- getHasPaginationFooter: () => Te.value
760
+ exportEmployees: Ne,
761
+ getHasPaginationFooter: () => ze.value
774
762
  }), (e, a) => {
775
763
  var xe, we;
776
- const i = I("FmButton"), g = I("FmTooltip"), te = I("FmSearch"), se = I("FmListItem"), Be = I("FmTable");
777
- return _(), O(ke, null, [n($a, {
764
+ const i = w("FmButton"), g = w("FmTooltip"), te = w("FmSearch"), se = w("FmListItem"), Te = w("FmTable");
765
+ return b(), O(ke, null, [n(Ca, {
778
766
  ref_key: "employeeFormRef",
779
767
  ref: d,
780
768
  modelValue: Q.value,
@@ -782,13 +770,13 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
782
770
  "role-error-message": $.value,
783
771
  class: "gap-8",
784
772
  onSubmitted: ye
785
- }, null, 8, ["modelValue", "role-error-message"]), m("div", Ma, [t(P).xs ? (_(), O("div", Na, [m("div", Oa, [n(te, {
773
+ }, null, 8, ["modelValue", "role-error-message"]), m("div", La, [t(P).xs ? (b(), O("div", Aa, [m("div", Da, [n(te, {
786
774
  modelValue: t(v),
787
775
  "onUpdate:modelValue": a[4] || (a[4] = (c) => Re(v) ? v.value = c : null),
788
776
  placeholder: t(l)("hr.employee.search.placeholder")
789
- }, null, 8, ["modelValue", "placeholder"])]), n(la), m("div", Ka, [n(fe, {
790
- modelValue: V.value,
791
- "onUpdate:modelValue": a[5] || (a[5] = (c) => V.value = c),
777
+ }, null, 8, ["modelValue", "placeholder"])]), n(ea), m("div", Na, [n(fe, {
778
+ modelValue: _.value,
779
+ "onUpdate:modelValue": a[5] || (a[5] = (c) => _.value = c),
792
780
  multiple: "",
793
781
  items: K.value,
794
782
  variant: "dark",
@@ -803,9 +791,9 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
803
791
  variant: "dark",
804
792
  "selected-prefix": t(l)("hr.employee.filter.selected_role_prefix"),
805
793
  placeholder: t(l)("hr.employee.filter.role_placeholder")
806
- }, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])])])) : (_(), O("div", Pa, [m("div", Aa, [n(fe, {
807
- modelValue: V.value,
808
- "onUpdate:modelValue": a[1] || (a[1] = (c) => V.value = c),
794
+ }, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])])])) : (b(), O("div", $a, [m("div", Ma, [n(fe, {
795
+ modelValue: _.value,
796
+ "onUpdate:modelValue": a[1] || (a[1] = (c) => _.value = c),
809
797
  multiple: "",
810
798
  items: K.value,
811
799
  variant: "dark",
@@ -820,11 +808,11 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
820
808
  items: de.value,
821
809
  "selected-prefix": t(l)("hr.employee.filter.selected_role_prefix"),
822
810
  placeholder: t(l)("hr.employee.filter.role_placeholder")
823
- }, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])]), m("div", Da, [(xe = t(ee)) != null && xe.role.isAdmin ? (_(), D(g, {
811
+ }, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])]), m("div", Pa, [(xe = t(ee)) != null && xe.role.isAdmin ? (b(), D(g, {
824
812
  key: 0,
825
813
  content: t(l)("hr.employee.sync.tooltip")
826
814
  }, {
827
- default: w(() => [n(i, {
815
+ default: x(() => [n(i, {
828
816
  icon: "refresh",
829
817
  label: t(l)("hr.employee.sync.tooltip"),
830
818
  variant: "tertiary",
@@ -837,43 +825,43 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
837
825
  autofocus: "",
838
826
  class: "pl-4 w-[320px]",
839
827
  placeholder: t(l)("hr.employee.search.placeholder")
840
- }, null, 8, ["modelValue", "placeholder"])])])), (we = t(k)) != null && we._id ? (_(), D(Xe, {
828
+ }, null, 8, ["modelValue", "placeholder"])])])), (we = t(V)) != null && we._id ? (b(), D(Qe, {
841
829
  key: 2
842
830
  }, {
843
- default: w(() => [m("div", za, [!T.value && t(f).isLoading.value ? (_(), D(ea, {
831
+ default: x(() => [m("div", Oa, [!T.value && t(f).isLoading.value ? (b(), D(Ye, {
844
832
  key: 0
845
- })) : H("", !0), T.value ? (_(), D(oa, {
833
+ })) : H("", !0), T.value ? (b(), D(la, {
846
834
  key: 1,
847
835
  "is-loading": t(f).isLoading.value,
848
836
  "is-empty": p.value === 0,
849
837
  title: t(l)("hr.employee.noData.title"),
850
838
  subtitle: t(l)("hr.employee.noData.subtitle")
851
839
  }, {
852
- default: w(() => [(_(), D(Be, {
840
+ default: x(() => [(b(), D(Te, {
853
841
  key: ne.value,
854
842
  class: be(["employee-list-table h-full", {
855
- "employee-list-table--pagination-loading": C.value
843
+ "employee-list-table--pagination-loading": S.value
856
844
  }]),
857
845
  "column-defs": ae,
858
846
  "row-data": M.value,
859
847
  "page-size": q,
860
848
  "page-count": Math.ceil(p.value / q),
861
849
  "row-count": p.value,
862
- "fetch-fn": ze,
850
+ "fetch-fn": Ke,
863
851
  "hide-footer": p.value <= q,
864
852
  loading: t(f).isLoading.value,
865
853
  virtual: !1,
866
854
  "pin-header-row": "",
867
- onRowClick: a[7] || (a[7] = (c) => S(c.original))
855
+ onRowClick: a[7] || (a[7] = (c) => C(c.original))
868
856
  }, {
869
- "list-row": w((c) => [t(P).xs ? (_(), D(se, {
857
+ "list-row": x((c) => [t(P).xs ? (b(), D(se, {
870
858
  key: 0,
871
859
  class: be(["py-12 px-16 items-center justify-between", {
872
860
  "border-t border-fm-color-neutral-gray-100": c.index > 0
873
861
  }]),
874
- onClick: (me) => S(c.original)
862
+ onClick: (me) => C(c.original)
875
863
  }, {
876
- default: w(() => [m("div", Ta, [m("p", Ba, [c.original.code ? (_(), O("span", ja, N(c.original.code) + ".", 1)) : H("", !0), he(N(c.original.name), 1)]), m("div", Ga, [m("p", qa, [m("span", Ha, N(t(l)("hr.employee.columns.restaurants")) + ":", 1), he(" " + N(c.original.restaurants.map((me) => ie(me)).join(", ")), 1)]), m("p", null, [a[8] || (a[8] = m("span", {
864
+ default: x(() => [m("div", Ka, [m("p", za, [c.original.code ? (b(), O("span", Ta, N(c.original.code) + ".", 1)) : H("", !0), he(N(c.original.name), 1)]), m("div", Ba, [m("p", ja, [m("span", Ga, N(t(l)("hr.employee.columns.restaurants")) + ":", 1), he(" " + N(c.original.restaurants.map((me) => ie(me)).join(", ")), 1)]), m("p", null, [a[8] || (a[8] = m("span", {
877
865
  class: "font-bold"
878
866
  }, "Since:", -1)), he(" " + N(c.original.since), 1)])])]), n(i, {
879
867
  icon: "delete",
@@ -882,14 +870,14 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
882
870
  onClick: oe((me) => z(c.original), ["stop"])
883
871
  }, null, 8, ["onClick"])]),
884
872
  _: 2
885
- }, 1032, ["class", "onClick"])) : (_(), D(se, {
873
+ }, 1032, ["class", "onClick"])) : (b(), D(se, {
886
874
  key: 1,
887
875
  style: {
888
876
  padding: "0"
889
877
  },
890
- onClick: (me) => S(c.original)
878
+ onClick: (me) => C(c.original)
891
879
  }, {
892
- default: w(() => [(_(), D(Je(ue), {
880
+ default: x(() => [(b(), D(qe(ue), {
893
881
  employee: c.original
894
882
  }, null, 8, ["employee"]))]),
895
883
  _: 2
@@ -902,7 +890,7 @@ const Ea = { class: "flex w-full items-center justify-between" }, Fa = { class:
902
890
  })) : H("", !0)])], 64);
903
891
  };
904
892
  }
905
- }), pl = /* @__PURE__ */ Ze(Ja, [["__scopeId", "data-v-5aed0d1c"]]);
893
+ }), ml = /* @__PURE__ */ Ze(qa, [["__scopeId", "data-v-5aed0d1c"]]);
906
894
  export {
907
- pl as default
895
+ ml as default
908
896
  };