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

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