forlogic-core 2.2.8 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1677) hide show
  1. package/README.md +22 -2
  2. package/dist/action-plans/action-plans/components/ActionPlanAttachmentsTab.d.ts +21 -0
  3. package/dist/action-plans/action-plans/components/ActionPlanCommentsTab.d.ts +21 -0
  4. package/dist/action-plans/action-plans/components/ActionPlanCostTab.d.ts +15 -0
  5. package/dist/action-plans/action-plans/components/ActionPlanGeneralTab.d.ts +21 -0
  6. package/dist/action-plans/action-plans/components/ActionPlanHistoryTab.d.ts +16 -0
  7. package/dist/action-plans/action-plans/components/ActionPlanPage.d.ts +25 -0
  8. package/dist/action-plans/action-plans/components/ActionPlanPredecessorsTab.d.ts +15 -0
  9. package/dist/action-plans/action-plans/components/ActionPlanProgressDialog.d.ts +16 -0
  10. package/dist/action-plans/action-plans/components/ActionPlanProgressTab.d.ts +10 -0
  11. package/dist/action-plans/action-plans/components/ActionPlanStatusBadge.d.ts +18 -0
  12. package/dist/action-plans/action-plans/constants.d.ts +86 -0
  13. package/dist/action-plans/action-plans/hooks/useActionPlan.d.ts +19 -0
  14. package/dist/action-plans/action-plans/hooks/useActionPlanProgress.d.ts +20 -0
  15. package/dist/action-plans/action-plans/index.d.ts +15 -0
  16. package/dist/action-plans/action-plans/types.d.ts +413 -0
  17. package/dist/action-plans/action-plans/utils/formatTime.d.ts +24 -0
  18. package/dist/action-plans/approval-flow/components/ApprovalSidenav.d.ts +16 -0
  19. package/dist/action-plans/approval-flow/components/ApproveDialog.d.ts +13 -0
  20. package/dist/action-plans/approval-flow/components/SelectApproverDialog.d.ts +11 -0
  21. package/dist/action-plans/approval-flow/index.d.ts +4 -0
  22. package/dist/action-plans/approval-flow/types.d.ts +76 -0
  23. package/dist/action-plans/assets/index.d.ts +7 -0
  24. package/dist/action-plans/audit-trail/components/AuditTrailDetails.d.ts +27 -0
  25. package/dist/action-plans/audit-trail/components/AuditTrailFilter.d.ts +29 -0
  26. package/dist/action-plans/audit-trail/components/AuditTrailPage.d.ts +40 -0
  27. package/dist/action-plans/audit-trail/index.d.ts +9 -0
  28. package/dist/action-plans/audit-trail/types.d.ts +209 -0
  29. package/dist/action-plans/audit-trail/utils.d.ts +54 -0
  30. package/dist/action-plans/auth/components/AliasRedirect.d.ts +13 -0
  31. package/dist/action-plans/auth/components/AliasRouteGuard.d.ts +20 -0
  32. package/dist/action-plans/auth/components/EditProfileDialog.d.ts +13 -0
  33. package/dist/action-plans/auth/components/ProtectedRoute.d.ts +11 -0
  34. package/dist/action-plans/auth/components/UserInfo.d.ts +10 -0
  35. package/dist/action-plans/auth/contexts/AuthContext.d.ts +89 -0
  36. package/dist/action-plans/auth/pages/CallbackPage.d.ts +6 -0
  37. package/dist/action-plans/auth/pages/LoginPage.d.ts +2 -0
  38. package/dist/action-plans/auth/services/AuthService.d.ts +45 -0
  39. package/dist/action-plans/auth/services/SupabaseTokenService.d.ts +3 -0
  40. package/dist/action-plans/auth/services/TokenManager.d.ts +66 -0
  41. package/dist/action-plans/auth/services/TokenRegenerationService.d.ts +14 -0
  42. package/dist/action-plans/auth/services/TokenService.d.ts +48 -0
  43. package/dist/action-plans/auth/utils/ErrorInterceptor.d.ts +20 -0
  44. package/dist/action-plans/components/ErrorBoundary.d.ts +19 -0
  45. package/dist/action-plans/components/dashboards/dashboard-form.d.ts +65 -0
  46. package/dist/action-plans/components/dashboards/dashboard-general-view.d.ts +124 -0
  47. package/dist/action-plans/components/dashboards/dashboard-grid.d.ts +66 -0
  48. package/dist/action-plans/components/dashboards/dashboard-list.d.ts +41 -0
  49. package/dist/action-plans/components/dashboards/dashboard-panel-renderer.d.ts +31 -0
  50. package/dist/action-plans/components/dashboards/dashboard-view.d.ts +48 -0
  51. package/dist/action-plans/components/dashboards/helpers.d.ts +86 -0
  52. package/dist/action-plans/components/dashboards/index.d.ts +9 -0
  53. package/dist/action-plans/components/dashboards/panels/burndown-panel.d.ts +41 -0
  54. package/dist/action-plans/components/dashboards/panels/cartesian-panel.d.ts +66 -0
  55. package/dist/action-plans/components/dashboards/panels/index.d.ts +14 -0
  56. package/dist/action-plans/components/dashboards/panels/list-panel.d.ts +45 -0
  57. package/dist/action-plans/components/dashboards/panels/matrix-risk-panel.d.ts +74 -0
  58. package/dist/action-plans/components/dashboards/panels/numeric-panel.d.ts +32 -0
  59. package/dist/action-plans/components/dashboards/panels/panel-error.d.ts +18 -0
  60. package/dist/action-plans/components/dashboards/panels/panel-header.d.ts +27 -0
  61. package/dist/action-plans/components/dashboards/panels/panel-loader.d.ts +17 -0
  62. package/dist/action-plans/components/dashboards/panels/panel-no-data.d.ts +16 -0
  63. package/dist/action-plans/components/dashboards/panels/panel-unavailable.d.ts +16 -0
  64. package/dist/action-plans/components/dashboards/panels/pareto-panel.d.ts +30 -0
  65. package/dist/action-plans/components/dashboards/panels/performance-panel.d.ts +39 -0
  66. package/dist/action-plans/components/dashboards/panels/pie-panel.d.ts +29 -0
  67. package/dist/action-plans/components/dashboards/panels/text-panel.d.ts +28 -0
  68. package/dist/action-plans/components/dashboards/types.d.ts +755 -0
  69. package/dist/action-plans/components/layout/AppHeader.d.ts +6 -0
  70. package/dist/action-plans/components/layout/AppLayout.d.ts +10 -0
  71. package/dist/action-plans/components/layout/AppSidebar.d.ts +10 -0
  72. package/dist/action-plans/components/layout/BodyContent.d.ts +60 -0
  73. package/dist/action-plans/components/layout/SidebarActionTrigger.d.ts +46 -0
  74. package/dist/action-plans/components/layout/SidebarHeader.d.ts +5 -0
  75. package/dist/action-plans/components/layout/SidebarLogo.d.ts +5 -0
  76. package/dist/action-plans/components/layout/sidebar-utils.d.ts +12 -0
  77. package/dist/action-plans/components/modules/AccessDeniedDialog.d.ts +43 -0
  78. package/dist/action-plans/components/modules/ModuleAccessGuard.d.ts +42 -0
  79. package/dist/action-plans/components/modules/ModuleGrid.d.ts +9 -0
  80. package/dist/action-plans/components/modules/ModuleOfferContent.d.ts +20 -0
  81. package/dist/action-plans/components/modules/ModulesContent.d.ts +21 -0
  82. package/dist/action-plans/components/modules/ModulesDialog.d.ts +3 -0
  83. package/dist/action-plans/components/modules/ModulesFooterCards.d.ts +10 -0
  84. package/dist/action-plans/components/modules/icons/ModulesCardIcons.d.ts +19 -0
  85. package/dist/action-plans/components/modules/index.d.ts +14 -0
  86. package/dist/action-plans/components/modules/modulesData.d.ts +6 -0
  87. package/dist/action-plans/components/modules/types.d.ts +41 -0
  88. package/dist/action-plans/components/ui/accordion.d.ts +42 -0
  89. package/dist/action-plans/components/ui/action-button.d.ts +48 -0
  90. package/dist/action-plans/components/ui/alert-dialog.d.ts +102 -0
  91. package/dist/action-plans/components/ui/alert.d.ts +44 -0
  92. package/dist/action-plans/components/ui/avatar.d.ts +36 -0
  93. package/dist/action-plans/components/ui/badge.d.ts +41 -0
  94. package/dist/action-plans/components/ui/breadcrumb.d.ts +73 -0
  95. package/dist/action-plans/components/ui/button-group.d.ts +24 -0
  96. package/dist/action-plans/components/ui/button.d.ts +66 -0
  97. package/dist/action-plans/components/ui/calendar.d.ts +24 -0
  98. package/dist/action-plans/components/ui/card.d.ts +57 -0
  99. package/dist/action-plans/components/ui/chart.d.ts +97 -0
  100. package/dist/action-plans/components/ui/checkbox.d.ts +15 -0
  101. package/dist/action-plans/components/ui/collapsible.d.ts +20 -0
  102. package/dist/action-plans/components/ui/color-picker.d.ts +19 -0
  103. package/dist/action-plans/components/ui/combo-tree.d.ts +103 -0
  104. package/dist/action-plans/components/ui/combobox.d.ts +64 -0
  105. package/dist/action-plans/components/ui/command.d.ts +89 -0
  106. package/dist/action-plans/components/ui/context-menu.d.ts +122 -0
  107. package/dist/action-plans/components/ui/data-list.d.ts +86 -0
  108. package/dist/action-plans/components/ui/date-picker.d.ts +19 -0
  109. package/dist/action-plans/components/ui/dialog-wizard.d.ts +100 -0
  110. package/dist/action-plans/components/ui/dialog.d.ts +229 -0
  111. package/dist/action-plans/components/ui/disabled-menu-item.d.ts +25 -0
  112. package/dist/action-plans/components/ui/drawer.d.ts +94 -0
  113. package/dist/action-plans/components/ui/dropdown-menu.d.ts +180 -0
  114. package/dist/action-plans/components/ui/electronic-signature-dialog.d.ts +31 -0
  115. package/dist/action-plans/components/ui/empty-state.d.ts +79 -0
  116. package/dist/action-plans/components/ui/export-dialog.d.ts +48 -0
  117. package/dist/action-plans/components/ui/form.d.ts +119 -0
  118. package/dist/action-plans/components/ui/grid.d.ts +53 -0
  119. package/dist/action-plans/components/ui/hover-card.d.ts +21 -0
  120. package/dist/action-plans/components/ui/icon-picker.d.ts +17 -0
  121. package/dist/action-plans/components/ui/iframe-dialog.d.ts +24 -0
  122. package/dist/action-plans/components/ui/input-group.d.ts +113 -0
  123. package/dist/action-plans/components/ui/input.d.ts +24 -0
  124. package/dist/action-plans/components/ui/label.d.ts +23 -0
  125. package/dist/action-plans/components/ui/loading-state.d.ts +52 -0
  126. package/dist/action-plans/components/ui/menubar.d.ts +113 -0
  127. package/dist/action-plans/components/ui/multiselect-permissions.d.ts +84 -0
  128. package/dist/action-plans/components/ui/navigation-menu.d.ts +57 -0
  129. package/dist/action-plans/components/ui/onboarding-dialog.d.ts +58 -0
  130. package/dist/action-plans/components/ui/online-editor-dialog.d.ts +28 -0
  131. package/dist/action-plans/components/ui/page-breadcrumb.d.ts +77 -0
  132. package/dist/action-plans/components/ui/pagination.d.ts +81 -0
  133. package/dist/action-plans/components/ui/popover.d.ts +57 -0
  134. package/dist/action-plans/components/ui/progress.d.ts +22 -0
  135. package/dist/action-plans/components/ui/radio-group.d.ts +66 -0
  136. package/dist/action-plans/components/ui/report-request-list.d.ts +64 -0
  137. package/dist/action-plans/components/ui/resizable.d.ts +38 -0
  138. package/dist/action-plans/components/ui/rich-text-editor.d.ts +58 -0
  139. package/dist/action-plans/components/ui/scroll-area.d.ts +40 -0
  140. package/dist/action-plans/components/ui/select.d.ts +94 -0
  141. package/dist/action-plans/components/ui/separator.d.ts +17 -0
  142. package/dist/action-plans/components/ui/sheet.d.ts +108 -0
  143. package/dist/action-plans/components/ui/sidebar.d.ts +269 -0
  144. package/dist/action-plans/components/ui/skeleton-variants.d.ts +41 -0
  145. package/dist/action-plans/components/ui/skeleton.d.ts +14 -0
  146. package/dist/action-plans/components/ui/slider.d.ts +9 -0
  147. package/dist/action-plans/components/ui/sonner.d.ts +8 -0
  148. package/dist/action-plans/components/ui/spinner.d.ts +11 -0
  149. package/dist/action-plans/components/ui/split-button.d.ts +76 -0
  150. package/dist/action-plans/components/ui/stack.d.ts +17 -0
  151. package/dist/action-plans/components/ui/status-badge.d.ts +52 -0
  152. package/dist/action-plans/components/ui/step-selector.d.ts +46 -0
  153. package/dist/action-plans/components/ui/stimulsoft-viewer.d.ts +28 -0
  154. package/dist/action-plans/components/ui/switch.d.ts +25 -0
  155. package/dist/action-plans/components/ui/tab-page-layout.d.ts +52 -0
  156. package/dist/action-plans/components/ui/table-resize-handle.d.ts +22 -0
  157. package/dist/action-plans/components/ui/table.d.ts +112 -0
  158. package/dist/action-plans/components/ui/tabs.d.ts +66 -0
  159. package/dist/action-plans/components/ui/terms-of-use-dialog.d.ts +102 -0
  160. package/dist/action-plans/components/ui/textarea.d.ts +33 -0
  161. package/dist/action-plans/components/ui/timepicker.d.ts +34 -0
  162. package/dist/action-plans/components/ui/toggle-group.d.ts +37 -0
  163. package/dist/action-plans/components/ui/toggle.d.ts +33 -0
  164. package/dist/action-plans/components/ui/tooltip.d.ts +61 -0
  165. package/dist/action-plans/components/ui/truncated-cell.d.ts +20 -0
  166. package/dist/action-plans/components/ui/typography.d.ts +135 -0
  167. package/dist/action-plans/components/ui/updates-notification.d.ts +47 -0
  168. package/dist/action-plans/components/ui/users-groups-selector.d.ts +87 -0
  169. package/dist/action-plans/components/ui/viewer-dialog.d.ts +184 -0
  170. package/dist/action-plans/config/backend.d.ts +10 -0
  171. package/dist/action-plans/config/environments.d.ts +12 -0
  172. package/dist/action-plans/config/index.d.ts +75 -0
  173. package/dist/action-plans/contexts/LocaleContext.d.ts +15 -0
  174. package/dist/action-plans/contexts/ModalStateContext.d.ts +57 -0
  175. package/dist/action-plans/contexts/ModuleContext.d.ts +34 -0
  176. package/dist/action-plans/contexts/NavigationContext.d.ts +13 -0
  177. package/dist/action-plans/contexts/PageMetadataContext.d.ts +48 -0
  178. package/dist/action-plans/crud/components/ActionMenuItems.d.ts +22 -0
  179. package/dist/action-plans/crud/components/BaseForm.d.ts +52 -0
  180. package/dist/action-plans/crud/components/ColumnSettingsPopover.d.ts +28 -0
  181. package/dist/action-plans/crud/components/ContextMenu.d.ts +21 -0
  182. package/dist/action-plans/crud/components/CrudActionBar.d.ts +59 -0
  183. package/dist/action-plans/crud/components/CrudGrid.d.ts +53 -0
  184. package/dist/action-plans/crud/components/CrudPagination.d.ts +17 -0
  185. package/dist/action-plans/crud/components/CrudTable.d.ts +66 -0
  186. package/dist/action-plans/crud/components/FilterBar.d.ts +136 -0
  187. package/dist/action-plans/crud/components/GroupDropZone.d.ts +16 -0
  188. package/dist/action-plans/crud/components/InlineRowActions.d.ts +15 -0
  189. package/dist/action-plans/crud/components/SelectionCheckbox.d.ts +9 -0
  190. package/dist/action-plans/crud/components/TableFooter.d.ts +14 -0
  191. package/dist/action-plans/crud/components/TableRowActions.d.ts +19 -0
  192. package/dist/action-plans/crud/createCrudPage.d.ts +134 -0
  193. package/dist/action-plans/crud/createSimpleService.d.ts +85 -0
  194. package/dist/action-plans/crud/generateCrudConfig.d.ts +78 -0
  195. package/dist/action-plans/crud/hooks/useBaseForm.d.ts +47 -0
  196. package/dist/action-plans/crud/hooks/useColumnDragReorder.d.ts +19 -0
  197. package/dist/action-plans/crud/hooks/useColumnManager.d.ts +85 -0
  198. package/dist/action-plans/crud/hooks/useCrud.d.ts +152 -0
  199. package/dist/action-plans/crud/primitives/ActionMenu.d.ts +69 -0
  200. package/dist/action-plans/crud/primitives/FilterBar.d.ts +69 -0
  201. package/dist/action-plans/crud/primitives/Pagination.d.ts +29 -0
  202. package/dist/action-plans/crud/primitives/Table.d.ts +31 -0
  203. package/dist/action-plans/crud/primitives/TreeTable.d.ts +7 -0
  204. package/dist/action-plans/crud/primitives/index.d.ts +12 -0
  205. package/dist/action-plans/crud/primitives/types.d.ts +199 -0
  206. package/dist/action-plans/crud/utils/routingHelpers.d.ts +41 -0
  207. package/dist/action-plans/custom-form-fields/components/CustomFormFields.d.ts +11 -0
  208. package/dist/action-plans/custom-form-fields/fields/FormDateField.d.ts +9 -0
  209. package/dist/action-plans/custom-form-fields/fields/FormMultiSelectionField.d.ts +9 -0
  210. package/dist/action-plans/custom-form-fields/fields/FormNumericField.d.ts +9 -0
  211. package/dist/action-plans/custom-form-fields/fields/FormQuestionsField.d.ts +9 -0
  212. package/dist/action-plans/custom-form-fields/fields/FormSingleSelectionField.d.ts +9 -0
  213. package/dist/action-plans/custom-form-fields/fields/FormTextField.d.ts +9 -0
  214. package/dist/action-plans/custom-form-fields/fields/FormTimeField.d.ts +9 -0
  215. package/dist/action-plans/custom-form-fields/fields/FormUrlField.d.ts +9 -0
  216. package/dist/action-plans/custom-form-fields/fields/ReadOnlyTextField.d.ts +9 -0
  217. package/dist/action-plans/custom-form-fields/index.d.ts +13 -0
  218. package/dist/action-plans/custom-form-fields/types.d.ts +206 -0
  219. package/dist/action-plans/exports/action-plans.d.ts +16 -0
  220. package/dist/action-plans/exports/audit-trail.d.ts +1 -0
  221. package/dist/action-plans/exports/crud.d.ts +31 -0
  222. package/dist/action-plans/exports/custom-form-fields.d.ts +1 -0
  223. package/dist/action-plans/exports/file-upload.d.ts +1 -0
  224. package/dist/action-plans/exports/integrations.d.ts +15 -0
  225. package/dist/action-plans/exports/ui.d.ts +98 -0
  226. package/dist/action-plans/file-upload/components/SingleFileUpload.d.ts +102 -0
  227. package/dist/action-plans/file-upload/index.d.ts +6 -0
  228. package/dist/action-plans/file-upload/types.d.ts +26 -0
  229. package/dist/action-plans/file-upload/utils/formatBytes.d.ts +6 -0
  230. package/dist/action-plans/file-upload/utils/getFileExtension.d.ts +6 -0
  231. package/dist/action-plans/hooks/useActiveModules.d.ts +45 -0
  232. package/dist/action-plans/hooks/useAliasFromUrl.d.ts +33 -0
  233. package/dist/action-plans/hooks/useColumnResize.d.ts +45 -0
  234. package/dist/action-plans/hooks/useDebounce.d.ts +56 -0
  235. package/dist/action-plans/hooks/useDerivedContractedModules.d.ts +8 -0
  236. package/dist/action-plans/hooks/useI18nFormatters.d.ts +40 -0
  237. package/dist/action-plans/hooks/useMediaQuery.d.ts +14 -0
  238. package/dist/action-plans/hooks/useModuleAccess.d.ts +59 -0
  239. package/dist/action-plans/hooks/usePageTitle.d.ts +10 -0
  240. package/dist/action-plans/hooks/usePermissionQuery.d.ts +49 -0
  241. package/dist/action-plans/hooks/useRowResize.d.ts +37 -0
  242. package/dist/action-plans/hooks/useSidebarResize.d.ts +37 -0
  243. package/dist/action-plans/hooks/useUpdatesNotification.d.ts +27 -0
  244. package/dist/action-plans/hooks/useWizard.d.ts +40 -0
  245. package/dist/action-plans/i18n/config.d.ts +13 -0
  246. package/dist/action-plans/i18n/constants.d.ts +126 -0
  247. package/dist/action-plans/i18n/index.d.ts +11 -0
  248. package/dist/action-plans/i18n/utils.d.ts +14 -0
  249. package/dist/action-plans/index.d.ts +103 -14
  250. package/dist/action-plans/index.esm.js +1 -0
  251. package/dist/action-plans/index.js +1 -0
  252. package/dist/action-plans/integrations/clarity/clarityTracking.d.ts +31 -0
  253. package/dist/action-plans/integrations/clarity/index.d.ts +3 -0
  254. package/dist/action-plans/integrations/clarity/types.d.ts +46 -0
  255. package/dist/action-plans/integrations/clarity/useClarity.d.ts +34 -0
  256. package/dist/action-plans/integrations/index.d.ts +5 -0
  257. package/dist/action-plans/leadership/components/LeadershipDialog.d.ts +10 -0
  258. package/dist/action-plans/leadership/components/LeadershipForm.d.ts +8 -0
  259. package/dist/action-plans/leadership/components/LeadershipPage.d.ts +19 -0
  260. package/dist/action-plans/leadership/hooks/useLeadershipApi.d.ts +4 -0
  261. package/dist/action-plans/leadership/hooks/useLeadershipMutations.d.ts +29 -0
  262. package/dist/action-plans/leadership/index.d.ts +13 -0
  263. package/dist/action-plans/leadership/types.d.ts +23 -0
  264. package/dist/action-plans/leadership/utils/leadershipUtils.d.ts +8 -0
  265. package/dist/action-plans/media/components/ImageEditor.d.ts +22 -0
  266. package/dist/action-plans/media/components/ImageRenderer.d.ts +23 -0
  267. package/dist/action-plans/media/components/VideoEditor.d.ts +2 -0
  268. package/dist/action-plans/media/components/VideoRenderer.d.ts +2 -0
  269. package/dist/action-plans/media/hooks/useMediaUpload.d.ts +19 -0
  270. package/dist/action-plans/media/index.d.ts +49 -0
  271. package/dist/action-plans/media/types.d.ts +66 -0
  272. package/dist/action-plans/media/utils/imageHelpers.d.ts +28 -0
  273. package/dist/action-plans/media/utils/videoHelpers.d.ts +35 -0
  274. package/dist/action-plans/mind-map/components/MindMap.d.ts +23 -0
  275. package/dist/action-plans/mind-map/components/MindMapConnection.d.ts +12 -0
  276. package/dist/action-plans/mind-map/components/MindMapNodeView.d.ts +24 -0
  277. package/dist/action-plans/mind-map/components/MindMapToolbar.d.ts +26 -0
  278. package/dist/action-plans/mind-map/hooks/useMindMapKeyboard.d.ts +15 -0
  279. package/dist/action-plans/mind-map/hooks/useMindMapLayout.d.ts +5 -0
  280. package/dist/action-plans/mind-map/hooks/useMindMapPanZoom.d.ts +21 -0
  281. package/dist/action-plans/mind-map/hooks/useMindMapState.d.ts +32 -0
  282. package/dist/action-plans/mind-map/index.d.ts +4 -0
  283. package/dist/action-plans/mind-map/types.d.ts +91 -0
  284. package/dist/action-plans/mind-map/utils/export-image.d.ts +9 -0
  285. package/dist/action-plans/mind-map/utils/layout.d.ts +15 -0
  286. package/dist/action-plans/mind-map/utils/nodeOps.d.ts +66 -0
  287. package/dist/action-plans/mind-map/utils/serialize.d.ts +10 -0
  288. package/dist/action-plans/modules/softwaresMap.d.ts +4 -0
  289. package/dist/action-plans/places/components/ManageAccessModal.d.ts +11 -0
  290. package/dist/action-plans/places/components/PlaceCard.d.ts +12 -0
  291. package/dist/action-plans/places/components/PlacesList.d.ts +12 -0
  292. package/dist/action-plans/places/index.d.ts +8 -0
  293. package/dist/action-plans/places/services/PlaceService.d.ts +9 -0
  294. package/dist/action-plans/places/types.d.ts +10 -0
  295. package/dist/action-plans/providers/CoreProviders.d.ts +107 -0
  296. package/dist/action-plans/providers/index.d.ts +2 -0
  297. package/dist/action-plans/qualiex/components/QualiexUserField.d.ts +133 -0
  298. package/dist/action-plans/qualiex/hooks/useQualiexUsers.d.ts +41 -0
  299. package/dist/action-plans/qualiex/services/qualiexApi.d.ts +75 -0
  300. package/dist/action-plans/qualiex/utils/QualiexErrorInterceptor.d.ts +20 -0
  301. package/dist/action-plans/qualiex/utils/userPlaceUtils.d.ts +16 -0
  302. package/dist/action-plans/services/BaseService.d.ts +51 -0
  303. package/dist/action-plans/services/EmailService.d.ts +110 -0
  304. package/dist/action-plans/services/ErrorService.d.ts +19 -0
  305. package/dist/action-plans/services/QualiexEnrichmentService.d.ts +53 -0
  306. package/dist/action-plans/services/QualiexFieldHelpers.d.ts +17 -0
  307. package/dist/action-plans/setup/favicon.d.ts +1 -0
  308. package/dist/action-plans/setup.d.ts +16 -0
  309. package/dist/action-plans/sign/components/D4SignWidget.d.ts +2 -0
  310. package/dist/action-plans/sign/components/DocumentSigner.d.ts +2 -0
  311. package/dist/action-plans/sign/components/SignConfigForm.d.ts +2 -0
  312. package/dist/action-plans/sign/components/SignWidget.d.ts +9 -0
  313. package/dist/action-plans/sign/hooks/useSignConfig.d.ts +6 -0
  314. package/dist/action-plans/sign/index.d.ts +8 -0
  315. package/dist/action-plans/sign/services/signService.d.ts +17 -0
  316. package/dist/action-plans/sign/types.d.ts +53 -0
  317. package/dist/action-plans/sign/utils/loadClicksignScript.d.ts +13 -0
  318. package/dist/action-plans/supabase/SupabaseSingleton.d.ts +34 -0
  319. package/dist/action-plans/supabase/client.d.ts +2 -0
  320. package/dist/action-plans/supabase/legacyKeyGuard.d.ts +19 -0
  321. package/dist/action-plans/supabase/publicClient.d.ts +2 -0
  322. package/dist/action-plans/supabase/types.d.ts +377 -0
  323. package/dist/action-plans/team-selector/components/TeamSelector.d.ts +24 -0
  324. package/dist/action-plans/team-selector/index.d.ts +2 -0
  325. package/dist/action-plans/team-selector/types.d.ts +10 -0
  326. package/dist/action-plans/types/sidebar.d.ts +52 -0
  327. package/dist/action-plans/types.d.ts +551 -361
  328. package/dist/action-plans/utils/color.d.ts +26 -0
  329. package/dist/action-plans/utils/formatters/currencyFormatters.d.ts +1 -0
  330. package/dist/action-plans/utils/formatters/dateFormatters.d.ts +52 -0
  331. package/dist/action-plans/utils/index.d.ts +9 -0
  332. package/dist/action-plans/utils/linkHelpers.d.ts +9 -0
  333. package/dist/action-plans/utils/load-fonts.d.ts +1 -0
  334. package/dist/audit-trail/action-plans/components/ActionPlanAttachmentsTab.d.ts +21 -0
  335. package/dist/audit-trail/action-plans/components/ActionPlanCommentsTab.d.ts +21 -0
  336. package/dist/audit-trail/action-plans/components/ActionPlanCostTab.d.ts +15 -0
  337. package/dist/audit-trail/action-plans/components/ActionPlanGeneralTab.d.ts +21 -0
  338. package/dist/audit-trail/action-plans/components/ActionPlanHistoryTab.d.ts +16 -0
  339. package/dist/audit-trail/action-plans/components/ActionPlanPage.d.ts +25 -0
  340. package/dist/audit-trail/action-plans/components/ActionPlanPredecessorsTab.d.ts +15 -0
  341. package/dist/audit-trail/action-plans/components/ActionPlanProgressDialog.d.ts +16 -0
  342. package/dist/audit-trail/action-plans/components/ActionPlanProgressTab.d.ts +10 -0
  343. package/dist/audit-trail/action-plans/components/ActionPlanStatusBadge.d.ts +18 -0
  344. package/dist/audit-trail/action-plans/constants.d.ts +86 -0
  345. package/dist/audit-trail/action-plans/hooks/useActionPlan.d.ts +19 -0
  346. package/dist/audit-trail/action-plans/hooks/useActionPlanProgress.d.ts +20 -0
  347. package/dist/audit-trail/action-plans/index.d.ts +15 -0
  348. package/dist/audit-trail/action-plans/types.d.ts +413 -0
  349. package/dist/audit-trail/action-plans/utils/formatTime.d.ts +24 -0
  350. package/dist/audit-trail/approval-flow/components/ApprovalSidenav.d.ts +16 -0
  351. package/dist/audit-trail/approval-flow/components/ApproveDialog.d.ts +13 -0
  352. package/dist/audit-trail/approval-flow/components/SelectApproverDialog.d.ts +11 -0
  353. package/dist/audit-trail/approval-flow/index.d.ts +4 -0
  354. package/dist/audit-trail/approval-flow/types.d.ts +76 -0
  355. package/dist/audit-trail/assets/index.d.ts +7 -0
  356. package/dist/audit-trail/audit-trail/components/AuditTrailDetails.d.ts +27 -0
  357. package/dist/audit-trail/audit-trail/components/AuditTrailFilter.d.ts +29 -0
  358. package/dist/audit-trail/audit-trail/components/AuditTrailPage.d.ts +40 -0
  359. package/dist/audit-trail/audit-trail/index.d.ts +9 -0
  360. package/dist/audit-trail/audit-trail/types.d.ts +209 -0
  361. package/dist/audit-trail/audit-trail/utils.d.ts +54 -0
  362. package/dist/audit-trail/auth/components/AliasRedirect.d.ts +13 -0
  363. package/dist/audit-trail/auth/components/AliasRouteGuard.d.ts +20 -0
  364. package/dist/audit-trail/auth/components/EditProfileDialog.d.ts +13 -0
  365. package/dist/audit-trail/auth/components/ProtectedRoute.d.ts +11 -0
  366. package/dist/audit-trail/auth/components/UserInfo.d.ts +10 -0
  367. package/dist/audit-trail/auth/contexts/AuthContext.d.ts +89 -0
  368. package/dist/audit-trail/auth/pages/CallbackPage.d.ts +6 -0
  369. package/dist/audit-trail/auth/pages/LoginPage.d.ts +2 -0
  370. package/dist/audit-trail/auth/services/AuthService.d.ts +45 -0
  371. package/dist/audit-trail/auth/services/SupabaseTokenService.d.ts +3 -0
  372. package/dist/audit-trail/auth/services/TokenManager.d.ts +66 -0
  373. package/dist/audit-trail/auth/services/TokenRegenerationService.d.ts +14 -0
  374. package/dist/audit-trail/auth/services/TokenService.d.ts +48 -0
  375. package/dist/audit-trail/auth/utils/ErrorInterceptor.d.ts +20 -0
  376. package/dist/audit-trail/components/ErrorBoundary.d.ts +19 -0
  377. package/dist/audit-trail/components/dashboards/dashboard-form.d.ts +65 -0
  378. package/dist/audit-trail/components/dashboards/dashboard-general-view.d.ts +124 -0
  379. package/dist/audit-trail/components/dashboards/dashboard-grid.d.ts +66 -0
  380. package/dist/audit-trail/components/dashboards/dashboard-list.d.ts +41 -0
  381. package/dist/audit-trail/components/dashboards/dashboard-panel-renderer.d.ts +31 -0
  382. package/dist/audit-trail/components/dashboards/dashboard-view.d.ts +48 -0
  383. package/dist/audit-trail/components/dashboards/helpers.d.ts +86 -0
  384. package/dist/audit-trail/components/dashboards/index.d.ts +9 -0
  385. package/dist/audit-trail/components/dashboards/panels/burndown-panel.d.ts +41 -0
  386. package/dist/audit-trail/components/dashboards/panels/cartesian-panel.d.ts +66 -0
  387. package/dist/audit-trail/components/dashboards/panels/index.d.ts +14 -0
  388. package/dist/audit-trail/components/dashboards/panels/list-panel.d.ts +45 -0
  389. package/dist/audit-trail/components/dashboards/panels/matrix-risk-panel.d.ts +74 -0
  390. package/dist/audit-trail/components/dashboards/panels/numeric-panel.d.ts +32 -0
  391. package/dist/audit-trail/components/dashboards/panels/panel-error.d.ts +18 -0
  392. package/dist/audit-trail/components/dashboards/panels/panel-header.d.ts +27 -0
  393. package/dist/audit-trail/components/dashboards/panels/panel-loader.d.ts +17 -0
  394. package/dist/audit-trail/components/dashboards/panels/panel-no-data.d.ts +16 -0
  395. package/dist/audit-trail/components/dashboards/panels/panel-unavailable.d.ts +16 -0
  396. package/dist/audit-trail/components/dashboards/panels/pareto-panel.d.ts +30 -0
  397. package/dist/audit-trail/components/dashboards/panels/performance-panel.d.ts +39 -0
  398. package/dist/audit-trail/components/dashboards/panels/pie-panel.d.ts +29 -0
  399. package/dist/audit-trail/components/dashboards/panels/text-panel.d.ts +28 -0
  400. package/dist/audit-trail/components/dashboards/types.d.ts +755 -0
  401. package/dist/audit-trail/components/layout/AppHeader.d.ts +6 -0
  402. package/dist/audit-trail/components/layout/AppLayout.d.ts +10 -0
  403. package/dist/audit-trail/components/layout/AppSidebar.d.ts +10 -0
  404. package/dist/audit-trail/components/layout/BodyContent.d.ts +60 -0
  405. package/dist/audit-trail/components/layout/SidebarActionTrigger.d.ts +46 -0
  406. package/dist/audit-trail/components/layout/SidebarHeader.d.ts +5 -0
  407. package/dist/audit-trail/components/layout/SidebarLogo.d.ts +5 -0
  408. package/dist/audit-trail/components/layout/sidebar-utils.d.ts +12 -0
  409. package/dist/audit-trail/components/modules/AccessDeniedDialog.d.ts +43 -0
  410. package/dist/audit-trail/components/modules/ModuleAccessGuard.d.ts +42 -0
  411. package/dist/audit-trail/components/modules/ModuleGrid.d.ts +9 -0
  412. package/dist/audit-trail/components/modules/ModuleOfferContent.d.ts +20 -0
  413. package/dist/audit-trail/components/modules/ModulesContent.d.ts +21 -0
  414. package/dist/audit-trail/components/modules/ModulesDialog.d.ts +3 -0
  415. package/dist/audit-trail/components/modules/ModulesFooterCards.d.ts +10 -0
  416. package/dist/audit-trail/components/modules/icons/ModulesCardIcons.d.ts +19 -0
  417. package/dist/audit-trail/components/modules/index.d.ts +14 -0
  418. package/dist/audit-trail/components/modules/modulesData.d.ts +6 -0
  419. package/dist/audit-trail/components/modules/types.d.ts +41 -0
  420. package/dist/audit-trail/components/ui/accordion.d.ts +42 -0
  421. package/dist/audit-trail/components/ui/action-button.d.ts +48 -0
  422. package/dist/audit-trail/components/ui/alert-dialog.d.ts +102 -0
  423. package/dist/audit-trail/components/ui/alert.d.ts +44 -0
  424. package/dist/audit-trail/components/ui/avatar.d.ts +36 -0
  425. package/dist/audit-trail/components/ui/badge.d.ts +41 -0
  426. package/dist/audit-trail/components/ui/breadcrumb.d.ts +73 -0
  427. package/dist/audit-trail/components/ui/button-group.d.ts +24 -0
  428. package/dist/audit-trail/components/ui/button.d.ts +66 -0
  429. package/dist/audit-trail/components/ui/calendar.d.ts +24 -0
  430. package/dist/audit-trail/components/ui/card.d.ts +57 -0
  431. package/dist/audit-trail/components/ui/chart.d.ts +97 -0
  432. package/dist/audit-trail/components/ui/checkbox.d.ts +15 -0
  433. package/dist/audit-trail/components/ui/collapsible.d.ts +20 -0
  434. package/dist/audit-trail/components/ui/color-picker.d.ts +19 -0
  435. package/dist/audit-trail/components/ui/combo-tree.d.ts +103 -0
  436. package/dist/audit-trail/components/ui/combobox.d.ts +64 -0
  437. package/dist/audit-trail/components/ui/command.d.ts +89 -0
  438. package/dist/audit-trail/components/ui/context-menu.d.ts +122 -0
  439. package/dist/audit-trail/components/ui/data-list.d.ts +86 -0
  440. package/dist/audit-trail/components/ui/date-picker.d.ts +19 -0
  441. package/dist/audit-trail/components/ui/dialog-wizard.d.ts +100 -0
  442. package/dist/audit-trail/components/ui/dialog.d.ts +229 -0
  443. package/dist/audit-trail/components/ui/disabled-menu-item.d.ts +25 -0
  444. package/dist/audit-trail/components/ui/drawer.d.ts +94 -0
  445. package/dist/audit-trail/components/ui/dropdown-menu.d.ts +180 -0
  446. package/dist/audit-trail/components/ui/electronic-signature-dialog.d.ts +31 -0
  447. package/dist/audit-trail/components/ui/empty-state.d.ts +79 -0
  448. package/dist/audit-trail/components/ui/export-dialog.d.ts +48 -0
  449. package/dist/audit-trail/components/ui/form.d.ts +119 -0
  450. package/dist/audit-trail/components/ui/grid.d.ts +53 -0
  451. package/dist/audit-trail/components/ui/hover-card.d.ts +21 -0
  452. package/dist/audit-trail/components/ui/icon-picker.d.ts +17 -0
  453. package/dist/audit-trail/components/ui/iframe-dialog.d.ts +24 -0
  454. package/dist/audit-trail/components/ui/input-group.d.ts +113 -0
  455. package/dist/audit-trail/components/ui/input.d.ts +24 -0
  456. package/dist/audit-trail/components/ui/label.d.ts +23 -0
  457. package/dist/audit-trail/components/ui/loading-state.d.ts +52 -0
  458. package/dist/audit-trail/components/ui/menubar.d.ts +113 -0
  459. package/dist/audit-trail/components/ui/multiselect-permissions.d.ts +84 -0
  460. package/dist/audit-trail/components/ui/navigation-menu.d.ts +57 -0
  461. package/dist/audit-trail/components/ui/onboarding-dialog.d.ts +58 -0
  462. package/dist/audit-trail/components/ui/online-editor-dialog.d.ts +28 -0
  463. package/dist/audit-trail/components/ui/page-breadcrumb.d.ts +77 -0
  464. package/dist/audit-trail/components/ui/pagination.d.ts +81 -0
  465. package/dist/audit-trail/components/ui/popover.d.ts +57 -0
  466. package/dist/audit-trail/components/ui/progress.d.ts +22 -0
  467. package/dist/audit-trail/components/ui/radio-group.d.ts +66 -0
  468. package/dist/audit-trail/components/ui/report-request-list.d.ts +64 -0
  469. package/dist/audit-trail/components/ui/resizable.d.ts +38 -0
  470. package/dist/audit-trail/components/ui/rich-text-editor.d.ts +58 -0
  471. package/dist/audit-trail/components/ui/scroll-area.d.ts +40 -0
  472. package/dist/audit-trail/components/ui/select.d.ts +94 -0
  473. package/dist/audit-trail/components/ui/separator.d.ts +17 -0
  474. package/dist/audit-trail/components/ui/sheet.d.ts +108 -0
  475. package/dist/audit-trail/components/ui/sidebar.d.ts +269 -0
  476. package/dist/audit-trail/components/ui/skeleton-variants.d.ts +41 -0
  477. package/dist/audit-trail/components/ui/skeleton.d.ts +14 -0
  478. package/dist/audit-trail/components/ui/slider.d.ts +9 -0
  479. package/dist/audit-trail/components/ui/sonner.d.ts +8 -0
  480. package/dist/audit-trail/components/ui/spinner.d.ts +11 -0
  481. package/dist/audit-trail/components/ui/split-button.d.ts +76 -0
  482. package/dist/audit-trail/components/ui/stack.d.ts +17 -0
  483. package/dist/audit-trail/components/ui/status-badge.d.ts +52 -0
  484. package/dist/audit-trail/components/ui/step-selector.d.ts +46 -0
  485. package/dist/audit-trail/components/ui/stimulsoft-viewer.d.ts +28 -0
  486. package/dist/audit-trail/components/ui/switch.d.ts +25 -0
  487. package/dist/audit-trail/components/ui/tab-page-layout.d.ts +52 -0
  488. package/dist/audit-trail/components/ui/table-resize-handle.d.ts +22 -0
  489. package/dist/audit-trail/components/ui/table.d.ts +112 -0
  490. package/dist/audit-trail/components/ui/tabs.d.ts +66 -0
  491. package/dist/audit-trail/components/ui/terms-of-use-dialog.d.ts +102 -0
  492. package/dist/audit-trail/components/ui/textarea.d.ts +33 -0
  493. package/dist/audit-trail/components/ui/timepicker.d.ts +34 -0
  494. package/dist/audit-trail/components/ui/toggle-group.d.ts +37 -0
  495. package/dist/audit-trail/components/ui/toggle.d.ts +33 -0
  496. package/dist/audit-trail/components/ui/tooltip.d.ts +61 -0
  497. package/dist/audit-trail/components/ui/truncated-cell.d.ts +20 -0
  498. package/dist/audit-trail/components/ui/typography.d.ts +135 -0
  499. package/dist/audit-trail/components/ui/updates-notification.d.ts +47 -0
  500. package/dist/audit-trail/components/ui/users-groups-selector.d.ts +87 -0
  501. package/dist/audit-trail/components/ui/viewer-dialog.d.ts +184 -0
  502. package/dist/audit-trail/config/backend.d.ts +10 -0
  503. package/dist/audit-trail/config/environments.d.ts +12 -0
  504. package/dist/audit-trail/config/index.d.ts +75 -0
  505. package/dist/audit-trail/contexts/LocaleContext.d.ts +15 -0
  506. package/dist/audit-trail/contexts/ModalStateContext.d.ts +57 -0
  507. package/dist/audit-trail/contexts/ModuleContext.d.ts +34 -0
  508. package/dist/audit-trail/contexts/NavigationContext.d.ts +13 -0
  509. package/dist/audit-trail/contexts/PageMetadataContext.d.ts +48 -0
  510. package/dist/audit-trail/crud/components/ActionMenuItems.d.ts +22 -0
  511. package/dist/audit-trail/crud/components/BaseForm.d.ts +52 -0
  512. package/dist/audit-trail/crud/components/ColumnSettingsPopover.d.ts +28 -0
  513. package/dist/audit-trail/crud/components/ContextMenu.d.ts +21 -0
  514. package/dist/audit-trail/crud/components/CrudActionBar.d.ts +59 -0
  515. package/dist/audit-trail/crud/components/CrudGrid.d.ts +53 -0
  516. package/dist/audit-trail/crud/components/CrudPagination.d.ts +17 -0
  517. package/dist/audit-trail/crud/components/CrudTable.d.ts +66 -0
  518. package/dist/audit-trail/crud/components/FilterBar.d.ts +136 -0
  519. package/dist/audit-trail/crud/components/GroupDropZone.d.ts +16 -0
  520. package/dist/audit-trail/crud/components/InlineRowActions.d.ts +15 -0
  521. package/dist/audit-trail/crud/components/SelectionCheckbox.d.ts +9 -0
  522. package/dist/audit-trail/crud/components/TableFooter.d.ts +14 -0
  523. package/dist/audit-trail/crud/components/TableRowActions.d.ts +19 -0
  524. package/dist/audit-trail/crud/createCrudPage.d.ts +134 -0
  525. package/dist/audit-trail/crud/createSimpleService.d.ts +85 -0
  526. package/dist/audit-trail/crud/generateCrudConfig.d.ts +78 -0
  527. package/dist/audit-trail/crud/hooks/useBaseForm.d.ts +47 -0
  528. package/dist/audit-trail/crud/hooks/useColumnDragReorder.d.ts +19 -0
  529. package/dist/audit-trail/crud/hooks/useColumnManager.d.ts +85 -0
  530. package/dist/audit-trail/crud/hooks/useCrud.d.ts +152 -0
  531. package/dist/audit-trail/crud/primitives/ActionMenu.d.ts +69 -0
  532. package/dist/audit-trail/crud/primitives/FilterBar.d.ts +69 -0
  533. package/dist/audit-trail/crud/primitives/Pagination.d.ts +29 -0
  534. package/dist/audit-trail/crud/primitives/Table.d.ts +31 -0
  535. package/dist/audit-trail/crud/primitives/TreeTable.d.ts +7 -0
  536. package/dist/audit-trail/crud/primitives/index.d.ts +12 -0
  537. package/dist/audit-trail/crud/primitives/types.d.ts +199 -0
  538. package/dist/audit-trail/crud/utils/routingHelpers.d.ts +41 -0
  539. package/dist/audit-trail/custom-form-fields/components/CustomFormFields.d.ts +11 -0
  540. package/dist/audit-trail/custom-form-fields/fields/FormDateField.d.ts +9 -0
  541. package/dist/audit-trail/custom-form-fields/fields/FormMultiSelectionField.d.ts +9 -0
  542. package/dist/audit-trail/custom-form-fields/fields/FormNumericField.d.ts +9 -0
  543. package/dist/audit-trail/custom-form-fields/fields/FormQuestionsField.d.ts +9 -0
  544. package/dist/audit-trail/custom-form-fields/fields/FormSingleSelectionField.d.ts +9 -0
  545. package/dist/audit-trail/custom-form-fields/fields/FormTextField.d.ts +9 -0
  546. package/dist/audit-trail/custom-form-fields/fields/FormTimeField.d.ts +9 -0
  547. package/dist/audit-trail/custom-form-fields/fields/FormUrlField.d.ts +9 -0
  548. package/dist/audit-trail/custom-form-fields/fields/ReadOnlyTextField.d.ts +9 -0
  549. package/dist/audit-trail/custom-form-fields/index.d.ts +13 -0
  550. package/dist/audit-trail/custom-form-fields/types.d.ts +206 -0
  551. package/dist/audit-trail/exports/action-plans.d.ts +16 -0
  552. package/dist/audit-trail/exports/audit-trail.d.ts +1 -0
  553. package/dist/audit-trail/exports/crud.d.ts +31 -0
  554. package/dist/audit-trail/exports/custom-form-fields.d.ts +1 -0
  555. package/dist/audit-trail/exports/file-upload.d.ts +1 -0
  556. package/dist/audit-trail/exports/integrations.d.ts +15 -0
  557. package/dist/audit-trail/exports/ui.d.ts +98 -0
  558. package/dist/audit-trail/file-upload/components/SingleFileUpload.d.ts +102 -0
  559. package/dist/audit-trail/file-upload/index.d.ts +6 -0
  560. package/dist/audit-trail/file-upload/types.d.ts +26 -0
  561. package/dist/audit-trail/file-upload/utils/formatBytes.d.ts +6 -0
  562. package/dist/audit-trail/file-upload/utils/getFileExtension.d.ts +6 -0
  563. package/dist/audit-trail/hooks/useActiveModules.d.ts +45 -0
  564. package/dist/audit-trail/hooks/useAliasFromUrl.d.ts +33 -0
  565. package/dist/audit-trail/hooks/useColumnResize.d.ts +45 -0
  566. package/dist/audit-trail/hooks/useDebounce.d.ts +56 -0
  567. package/dist/audit-trail/hooks/useDerivedContractedModules.d.ts +8 -0
  568. package/dist/audit-trail/hooks/useI18nFormatters.d.ts +40 -0
  569. package/dist/audit-trail/hooks/useMediaQuery.d.ts +14 -0
  570. package/dist/audit-trail/hooks/useModuleAccess.d.ts +59 -0
  571. package/dist/audit-trail/hooks/usePageTitle.d.ts +10 -0
  572. package/dist/audit-trail/hooks/usePermissionQuery.d.ts +49 -0
  573. package/dist/audit-trail/hooks/useRowResize.d.ts +37 -0
  574. package/dist/audit-trail/hooks/useSidebarResize.d.ts +37 -0
  575. package/dist/audit-trail/hooks/useUpdatesNotification.d.ts +27 -0
  576. package/dist/audit-trail/hooks/useWizard.d.ts +40 -0
  577. package/dist/audit-trail/i18n/config.d.ts +13 -0
  578. package/dist/audit-trail/i18n/constants.d.ts +126 -0
  579. package/dist/audit-trail/i18n/index.d.ts +11 -0
  580. package/dist/audit-trail/i18n/utils.d.ts +14 -0
  581. package/dist/audit-trail/index.d.ts +103 -8
  582. package/dist/audit-trail/index.esm.js +1 -0
  583. package/dist/audit-trail/index.js +1 -0
  584. package/dist/audit-trail/integrations/clarity/clarityTracking.d.ts +31 -0
  585. package/dist/audit-trail/integrations/clarity/index.d.ts +3 -0
  586. package/dist/audit-trail/integrations/clarity/types.d.ts +46 -0
  587. package/dist/audit-trail/integrations/clarity/useClarity.d.ts +34 -0
  588. package/dist/audit-trail/integrations/index.d.ts +5 -0
  589. package/dist/audit-trail/leadership/components/LeadershipDialog.d.ts +10 -0
  590. package/dist/audit-trail/leadership/components/LeadershipForm.d.ts +8 -0
  591. package/dist/audit-trail/leadership/components/LeadershipPage.d.ts +19 -0
  592. package/dist/audit-trail/leadership/hooks/useLeadershipApi.d.ts +4 -0
  593. package/dist/audit-trail/leadership/hooks/useLeadershipMutations.d.ts +29 -0
  594. package/dist/audit-trail/leadership/index.d.ts +13 -0
  595. package/dist/audit-trail/leadership/types.d.ts +23 -0
  596. package/dist/audit-trail/leadership/utils/leadershipUtils.d.ts +8 -0
  597. package/dist/audit-trail/media/components/ImageEditor.d.ts +22 -0
  598. package/dist/audit-trail/media/components/ImageRenderer.d.ts +23 -0
  599. package/dist/audit-trail/media/components/VideoEditor.d.ts +2 -0
  600. package/dist/audit-trail/media/components/VideoRenderer.d.ts +2 -0
  601. package/dist/audit-trail/media/hooks/useMediaUpload.d.ts +19 -0
  602. package/dist/audit-trail/media/index.d.ts +49 -0
  603. package/dist/audit-trail/media/types.d.ts +66 -0
  604. package/dist/audit-trail/media/utils/imageHelpers.d.ts +28 -0
  605. package/dist/audit-trail/media/utils/videoHelpers.d.ts +35 -0
  606. package/dist/audit-trail/mind-map/components/MindMap.d.ts +23 -0
  607. package/dist/audit-trail/mind-map/components/MindMapConnection.d.ts +12 -0
  608. package/dist/audit-trail/mind-map/components/MindMapNodeView.d.ts +24 -0
  609. package/dist/audit-trail/mind-map/components/MindMapToolbar.d.ts +26 -0
  610. package/dist/audit-trail/mind-map/hooks/useMindMapKeyboard.d.ts +15 -0
  611. package/dist/audit-trail/mind-map/hooks/useMindMapLayout.d.ts +5 -0
  612. package/dist/audit-trail/mind-map/hooks/useMindMapPanZoom.d.ts +21 -0
  613. package/dist/audit-trail/mind-map/hooks/useMindMapState.d.ts +32 -0
  614. package/dist/audit-trail/mind-map/index.d.ts +4 -0
  615. package/dist/audit-trail/mind-map/types.d.ts +91 -0
  616. package/dist/audit-trail/mind-map/utils/export-image.d.ts +9 -0
  617. package/dist/audit-trail/mind-map/utils/layout.d.ts +15 -0
  618. package/dist/audit-trail/mind-map/utils/nodeOps.d.ts +66 -0
  619. package/dist/audit-trail/mind-map/utils/serialize.d.ts +10 -0
  620. package/dist/audit-trail/modules/softwaresMap.d.ts +4 -0
  621. package/dist/audit-trail/places/components/ManageAccessModal.d.ts +11 -0
  622. package/dist/audit-trail/places/components/PlaceCard.d.ts +12 -0
  623. package/dist/audit-trail/places/components/PlacesList.d.ts +12 -0
  624. package/dist/audit-trail/places/index.d.ts +8 -0
  625. package/dist/audit-trail/places/services/PlaceService.d.ts +9 -0
  626. package/dist/audit-trail/places/types.d.ts +10 -0
  627. package/dist/audit-trail/providers/CoreProviders.d.ts +107 -0
  628. package/dist/audit-trail/providers/index.d.ts +2 -0
  629. package/dist/audit-trail/qualiex/components/QualiexUserField.d.ts +133 -0
  630. package/dist/audit-trail/qualiex/hooks/useQualiexUsers.d.ts +41 -0
  631. package/dist/audit-trail/qualiex/services/qualiexApi.d.ts +75 -0
  632. package/dist/audit-trail/qualiex/utils/QualiexErrorInterceptor.d.ts +20 -0
  633. package/dist/audit-trail/qualiex/utils/userPlaceUtils.d.ts +16 -0
  634. package/dist/audit-trail/services/BaseService.d.ts +51 -0
  635. package/dist/audit-trail/services/EmailService.d.ts +110 -0
  636. package/dist/audit-trail/services/ErrorService.d.ts +19 -0
  637. package/dist/audit-trail/services/QualiexEnrichmentService.d.ts +53 -0
  638. package/dist/audit-trail/services/QualiexFieldHelpers.d.ts +17 -0
  639. package/dist/audit-trail/setup/favicon.d.ts +1 -0
  640. package/dist/audit-trail/setup.d.ts +16 -0
  641. package/dist/audit-trail/sign/components/D4SignWidget.d.ts +2 -0
  642. package/dist/audit-trail/sign/components/DocumentSigner.d.ts +2 -0
  643. package/dist/audit-trail/sign/components/SignConfigForm.d.ts +2 -0
  644. package/dist/audit-trail/sign/components/SignWidget.d.ts +9 -0
  645. package/dist/audit-trail/sign/hooks/useSignConfig.d.ts +6 -0
  646. package/dist/audit-trail/sign/index.d.ts +8 -0
  647. package/dist/audit-trail/sign/services/signService.d.ts +17 -0
  648. package/dist/audit-trail/sign/types.d.ts +53 -0
  649. package/dist/audit-trail/sign/utils/loadClicksignScript.d.ts +13 -0
  650. package/dist/audit-trail/supabase/SupabaseSingleton.d.ts +34 -0
  651. package/dist/audit-trail/supabase/client.d.ts +2 -0
  652. package/dist/audit-trail/supabase/legacyKeyGuard.d.ts +19 -0
  653. package/dist/audit-trail/supabase/publicClient.d.ts +2 -0
  654. package/dist/audit-trail/supabase/types.d.ts +377 -0
  655. package/dist/audit-trail/team-selector/components/TeamSelector.d.ts +24 -0
  656. package/dist/audit-trail/team-selector/index.d.ts +2 -0
  657. package/dist/audit-trail/team-selector/types.d.ts +10 -0
  658. package/dist/audit-trail/types/sidebar.d.ts +52 -0
  659. package/dist/audit-trail/types.d.ts +567 -173
  660. package/dist/audit-trail/utils/color.d.ts +26 -0
  661. package/dist/audit-trail/utils/formatters/currencyFormatters.d.ts +1 -0
  662. package/dist/audit-trail/utils/formatters/dateFormatters.d.ts +52 -0
  663. package/dist/audit-trail/utils/index.d.ts +9 -0
  664. package/dist/audit-trail/utils/linkHelpers.d.ts +9 -0
  665. package/dist/audit-trail/utils/load-fonts.d.ts +1 -0
  666. package/dist/config/backend.d.ts +10 -0
  667. package/dist/index.css +1 -1
  668. package/dist/index.css.map +1 -1
  669. package/dist/index.d.ts +4 -6
  670. package/dist/index.esm.js +1 -1
  671. package/dist/index.js +1 -1
  672. package/dist/leadership/action-plans/components/ActionPlanAttachmentsTab.d.ts +21 -0
  673. package/dist/leadership/action-plans/components/ActionPlanCommentsTab.d.ts +21 -0
  674. package/dist/leadership/action-plans/components/ActionPlanCostTab.d.ts +15 -0
  675. package/dist/leadership/action-plans/components/ActionPlanGeneralTab.d.ts +21 -0
  676. package/dist/leadership/action-plans/components/ActionPlanHistoryTab.d.ts +16 -0
  677. package/dist/leadership/action-plans/components/ActionPlanPage.d.ts +25 -0
  678. package/dist/leadership/action-plans/components/ActionPlanPredecessorsTab.d.ts +15 -0
  679. package/dist/leadership/action-plans/components/ActionPlanProgressDialog.d.ts +16 -0
  680. package/dist/leadership/action-plans/components/ActionPlanProgressTab.d.ts +10 -0
  681. package/dist/leadership/action-plans/components/ActionPlanStatusBadge.d.ts +18 -0
  682. package/dist/leadership/action-plans/constants.d.ts +86 -0
  683. package/dist/leadership/action-plans/hooks/useActionPlan.d.ts +19 -0
  684. package/dist/leadership/action-plans/hooks/useActionPlanProgress.d.ts +20 -0
  685. package/dist/leadership/action-plans/index.d.ts +15 -0
  686. package/dist/leadership/action-plans/types.d.ts +413 -0
  687. package/dist/leadership/action-plans/utils/formatTime.d.ts +24 -0
  688. package/dist/leadership/approval-flow/components/ApprovalSidenav.d.ts +16 -0
  689. package/dist/leadership/approval-flow/components/ApproveDialog.d.ts +13 -0
  690. package/dist/leadership/approval-flow/components/SelectApproverDialog.d.ts +11 -0
  691. package/dist/leadership/approval-flow/index.d.ts +4 -0
  692. package/dist/leadership/approval-flow/types.d.ts +76 -0
  693. package/dist/leadership/assets/index.d.ts +7 -0
  694. package/dist/leadership/audit-trail/components/AuditTrailDetails.d.ts +27 -0
  695. package/dist/leadership/audit-trail/components/AuditTrailFilter.d.ts +29 -0
  696. package/dist/leadership/audit-trail/components/AuditTrailPage.d.ts +40 -0
  697. package/dist/leadership/audit-trail/index.d.ts +9 -0
  698. package/dist/leadership/audit-trail/types.d.ts +209 -0
  699. package/dist/leadership/audit-trail/utils.d.ts +54 -0
  700. package/dist/leadership/auth/components/AliasRedirect.d.ts +13 -0
  701. package/dist/leadership/auth/components/AliasRouteGuard.d.ts +20 -0
  702. package/dist/leadership/auth/components/EditProfileDialog.d.ts +13 -0
  703. package/dist/leadership/auth/components/ProtectedRoute.d.ts +11 -0
  704. package/dist/leadership/auth/components/UserInfo.d.ts +10 -0
  705. package/dist/leadership/auth/contexts/AuthContext.d.ts +89 -0
  706. package/dist/leadership/auth/pages/CallbackPage.d.ts +6 -0
  707. package/dist/leadership/auth/pages/LoginPage.d.ts +2 -0
  708. package/dist/leadership/auth/services/AuthService.d.ts +45 -0
  709. package/dist/leadership/auth/services/SupabaseTokenService.d.ts +3 -0
  710. package/dist/leadership/auth/services/TokenManager.d.ts +66 -0
  711. package/dist/leadership/auth/services/TokenRegenerationService.d.ts +14 -0
  712. package/dist/leadership/auth/services/TokenService.d.ts +48 -0
  713. package/dist/leadership/auth/utils/ErrorInterceptor.d.ts +20 -0
  714. package/dist/leadership/components/ErrorBoundary.d.ts +19 -0
  715. package/dist/leadership/components/dashboards/dashboard-form.d.ts +65 -0
  716. package/dist/leadership/components/dashboards/dashboard-general-view.d.ts +124 -0
  717. package/dist/leadership/components/dashboards/dashboard-grid.d.ts +66 -0
  718. package/dist/leadership/components/dashboards/dashboard-list.d.ts +41 -0
  719. package/dist/leadership/components/dashboards/dashboard-panel-renderer.d.ts +31 -0
  720. package/dist/leadership/components/dashboards/dashboard-view.d.ts +48 -0
  721. package/dist/leadership/components/dashboards/helpers.d.ts +86 -0
  722. package/dist/leadership/components/dashboards/index.d.ts +9 -0
  723. package/dist/leadership/components/dashboards/panels/burndown-panel.d.ts +41 -0
  724. package/dist/leadership/components/dashboards/panels/cartesian-panel.d.ts +66 -0
  725. package/dist/leadership/components/dashboards/panels/index.d.ts +14 -0
  726. package/dist/leadership/components/dashboards/panels/list-panel.d.ts +45 -0
  727. package/dist/leadership/components/dashboards/panels/matrix-risk-panel.d.ts +74 -0
  728. package/dist/leadership/components/dashboards/panels/numeric-panel.d.ts +32 -0
  729. package/dist/leadership/components/dashboards/panels/panel-error.d.ts +18 -0
  730. package/dist/leadership/components/dashboards/panels/panel-header.d.ts +27 -0
  731. package/dist/leadership/components/dashboards/panels/panel-loader.d.ts +17 -0
  732. package/dist/leadership/components/dashboards/panels/panel-no-data.d.ts +16 -0
  733. package/dist/leadership/components/dashboards/panels/panel-unavailable.d.ts +16 -0
  734. package/dist/leadership/components/dashboards/panels/pareto-panel.d.ts +30 -0
  735. package/dist/leadership/components/dashboards/panels/performance-panel.d.ts +39 -0
  736. package/dist/leadership/components/dashboards/panels/pie-panel.d.ts +29 -0
  737. package/dist/leadership/components/dashboards/panels/text-panel.d.ts +28 -0
  738. package/dist/leadership/components/dashboards/types.d.ts +755 -0
  739. package/dist/leadership/components/layout/AppHeader.d.ts +6 -0
  740. package/dist/leadership/components/layout/AppLayout.d.ts +10 -0
  741. package/dist/leadership/components/layout/AppSidebar.d.ts +10 -0
  742. package/dist/leadership/components/layout/BodyContent.d.ts +60 -0
  743. package/dist/leadership/components/layout/SidebarActionTrigger.d.ts +46 -0
  744. package/dist/leadership/components/layout/SidebarHeader.d.ts +5 -0
  745. package/dist/leadership/components/layout/SidebarLogo.d.ts +5 -0
  746. package/dist/leadership/components/layout/sidebar-utils.d.ts +12 -0
  747. package/dist/leadership/components/modules/AccessDeniedDialog.d.ts +43 -0
  748. package/dist/leadership/components/modules/ModuleAccessGuard.d.ts +42 -0
  749. package/dist/leadership/components/modules/ModuleGrid.d.ts +9 -0
  750. package/dist/leadership/components/modules/ModuleOfferContent.d.ts +20 -0
  751. package/dist/leadership/components/modules/ModulesContent.d.ts +21 -0
  752. package/dist/leadership/components/modules/ModulesDialog.d.ts +3 -0
  753. package/dist/leadership/components/modules/ModulesFooterCards.d.ts +10 -0
  754. package/dist/leadership/components/modules/icons/ModulesCardIcons.d.ts +19 -0
  755. package/dist/leadership/components/modules/index.d.ts +14 -0
  756. package/dist/leadership/components/modules/modulesData.d.ts +6 -0
  757. package/dist/leadership/components/modules/types.d.ts +41 -0
  758. package/dist/leadership/components/ui/accordion.d.ts +42 -0
  759. package/dist/leadership/components/ui/action-button.d.ts +48 -0
  760. package/dist/leadership/components/ui/alert-dialog.d.ts +102 -0
  761. package/dist/leadership/components/ui/alert.d.ts +44 -0
  762. package/dist/leadership/components/ui/avatar.d.ts +36 -0
  763. package/dist/leadership/components/ui/badge.d.ts +41 -0
  764. package/dist/leadership/components/ui/breadcrumb.d.ts +73 -0
  765. package/dist/leadership/components/ui/button-group.d.ts +24 -0
  766. package/dist/leadership/components/ui/button.d.ts +66 -0
  767. package/dist/leadership/components/ui/calendar.d.ts +24 -0
  768. package/dist/leadership/components/ui/card.d.ts +57 -0
  769. package/dist/leadership/components/ui/chart.d.ts +97 -0
  770. package/dist/leadership/components/ui/checkbox.d.ts +15 -0
  771. package/dist/leadership/components/ui/collapsible.d.ts +20 -0
  772. package/dist/leadership/components/ui/color-picker.d.ts +19 -0
  773. package/dist/leadership/components/ui/combo-tree.d.ts +103 -0
  774. package/dist/leadership/components/ui/combobox.d.ts +64 -0
  775. package/dist/leadership/components/ui/command.d.ts +89 -0
  776. package/dist/leadership/components/ui/context-menu.d.ts +122 -0
  777. package/dist/leadership/components/ui/data-list.d.ts +86 -0
  778. package/dist/leadership/components/ui/date-picker.d.ts +19 -0
  779. package/dist/leadership/components/ui/dialog-wizard.d.ts +100 -0
  780. package/dist/leadership/components/ui/dialog.d.ts +229 -0
  781. package/dist/leadership/components/ui/disabled-menu-item.d.ts +25 -0
  782. package/dist/leadership/components/ui/drawer.d.ts +94 -0
  783. package/dist/leadership/components/ui/dropdown-menu.d.ts +180 -0
  784. package/dist/leadership/components/ui/electronic-signature-dialog.d.ts +31 -0
  785. package/dist/leadership/components/ui/empty-state.d.ts +79 -0
  786. package/dist/leadership/components/ui/export-dialog.d.ts +48 -0
  787. package/dist/leadership/components/ui/form.d.ts +119 -0
  788. package/dist/leadership/components/ui/grid.d.ts +53 -0
  789. package/dist/leadership/components/ui/hover-card.d.ts +21 -0
  790. package/dist/leadership/components/ui/icon-picker.d.ts +17 -0
  791. package/dist/leadership/components/ui/iframe-dialog.d.ts +24 -0
  792. package/dist/leadership/components/ui/input-group.d.ts +113 -0
  793. package/dist/leadership/components/ui/input.d.ts +24 -0
  794. package/dist/leadership/components/ui/label.d.ts +23 -0
  795. package/dist/leadership/components/ui/loading-state.d.ts +52 -0
  796. package/dist/leadership/components/ui/menubar.d.ts +113 -0
  797. package/dist/leadership/components/ui/multiselect-permissions.d.ts +84 -0
  798. package/dist/leadership/components/ui/navigation-menu.d.ts +57 -0
  799. package/dist/leadership/components/ui/onboarding-dialog.d.ts +58 -0
  800. package/dist/leadership/components/ui/online-editor-dialog.d.ts +28 -0
  801. package/dist/leadership/components/ui/page-breadcrumb.d.ts +77 -0
  802. package/dist/leadership/components/ui/pagination.d.ts +81 -0
  803. package/dist/leadership/components/ui/popover.d.ts +57 -0
  804. package/dist/leadership/components/ui/progress.d.ts +22 -0
  805. package/dist/leadership/components/ui/radio-group.d.ts +66 -0
  806. package/dist/leadership/components/ui/report-request-list.d.ts +64 -0
  807. package/dist/leadership/components/ui/resizable.d.ts +38 -0
  808. package/dist/leadership/components/ui/rich-text-editor.d.ts +58 -0
  809. package/dist/leadership/components/ui/scroll-area.d.ts +40 -0
  810. package/dist/leadership/components/ui/select.d.ts +94 -0
  811. package/dist/leadership/components/ui/separator.d.ts +17 -0
  812. package/dist/leadership/components/ui/sheet.d.ts +108 -0
  813. package/dist/leadership/components/ui/sidebar.d.ts +269 -0
  814. package/dist/leadership/components/ui/skeleton-variants.d.ts +41 -0
  815. package/dist/leadership/components/ui/skeleton.d.ts +14 -0
  816. package/dist/leadership/components/ui/slider.d.ts +9 -0
  817. package/dist/leadership/components/ui/sonner.d.ts +8 -0
  818. package/dist/leadership/components/ui/spinner.d.ts +11 -0
  819. package/dist/leadership/components/ui/split-button.d.ts +76 -0
  820. package/dist/leadership/components/ui/stack.d.ts +17 -0
  821. package/dist/leadership/components/ui/status-badge.d.ts +52 -0
  822. package/dist/leadership/components/ui/step-selector.d.ts +46 -0
  823. package/dist/leadership/components/ui/stimulsoft-viewer.d.ts +28 -0
  824. package/dist/leadership/components/ui/switch.d.ts +25 -0
  825. package/dist/leadership/components/ui/tab-page-layout.d.ts +52 -0
  826. package/dist/leadership/components/ui/table-resize-handle.d.ts +22 -0
  827. package/dist/leadership/components/ui/table.d.ts +112 -0
  828. package/dist/leadership/components/ui/tabs.d.ts +66 -0
  829. package/dist/leadership/components/ui/terms-of-use-dialog.d.ts +102 -0
  830. package/dist/leadership/components/ui/textarea.d.ts +33 -0
  831. package/dist/leadership/components/ui/timepicker.d.ts +34 -0
  832. package/dist/leadership/components/ui/toggle-group.d.ts +37 -0
  833. package/dist/leadership/components/ui/toggle.d.ts +33 -0
  834. package/dist/leadership/components/ui/tooltip.d.ts +61 -0
  835. package/dist/leadership/components/ui/truncated-cell.d.ts +20 -0
  836. package/dist/leadership/components/ui/typography.d.ts +135 -0
  837. package/dist/leadership/components/ui/updates-notification.d.ts +47 -0
  838. package/dist/leadership/components/ui/users-groups-selector.d.ts +87 -0
  839. package/dist/leadership/components/ui/viewer-dialog.d.ts +184 -0
  840. package/dist/leadership/config/backend.d.ts +10 -0
  841. package/dist/leadership/config/environments.d.ts +12 -0
  842. package/dist/leadership/config/index.d.ts +75 -0
  843. package/dist/leadership/contexts/LocaleContext.d.ts +15 -0
  844. package/dist/leadership/contexts/ModalStateContext.d.ts +57 -0
  845. package/dist/leadership/contexts/ModuleContext.d.ts +34 -0
  846. package/dist/leadership/contexts/NavigationContext.d.ts +13 -0
  847. package/dist/leadership/contexts/PageMetadataContext.d.ts +48 -0
  848. package/dist/leadership/crud/components/ActionMenuItems.d.ts +22 -0
  849. package/dist/leadership/crud/components/BaseForm.d.ts +52 -0
  850. package/dist/leadership/crud/components/ColumnSettingsPopover.d.ts +28 -0
  851. package/dist/leadership/crud/components/ContextMenu.d.ts +21 -0
  852. package/dist/leadership/crud/components/CrudActionBar.d.ts +59 -0
  853. package/dist/leadership/crud/components/CrudGrid.d.ts +53 -0
  854. package/dist/leadership/crud/components/CrudPagination.d.ts +17 -0
  855. package/dist/leadership/crud/components/CrudTable.d.ts +66 -0
  856. package/dist/leadership/crud/components/FilterBar.d.ts +136 -0
  857. package/dist/leadership/crud/components/GroupDropZone.d.ts +16 -0
  858. package/dist/leadership/crud/components/InlineRowActions.d.ts +15 -0
  859. package/dist/leadership/crud/components/SelectionCheckbox.d.ts +9 -0
  860. package/dist/leadership/crud/components/TableFooter.d.ts +14 -0
  861. package/dist/leadership/crud/components/TableRowActions.d.ts +19 -0
  862. package/dist/leadership/crud/createCrudPage.d.ts +134 -0
  863. package/dist/leadership/crud/createSimpleService.d.ts +85 -0
  864. package/dist/leadership/crud/generateCrudConfig.d.ts +78 -0
  865. package/dist/leadership/crud/hooks/useBaseForm.d.ts +47 -0
  866. package/dist/leadership/crud/hooks/useColumnDragReorder.d.ts +19 -0
  867. package/dist/leadership/crud/hooks/useColumnManager.d.ts +85 -0
  868. package/dist/leadership/crud/hooks/useCrud.d.ts +152 -0
  869. package/dist/leadership/crud/primitives/ActionMenu.d.ts +69 -0
  870. package/dist/leadership/crud/primitives/FilterBar.d.ts +69 -0
  871. package/dist/leadership/crud/primitives/Pagination.d.ts +29 -0
  872. package/dist/leadership/crud/primitives/Table.d.ts +31 -0
  873. package/dist/leadership/crud/primitives/TreeTable.d.ts +7 -0
  874. package/dist/leadership/crud/primitives/index.d.ts +12 -0
  875. package/dist/leadership/crud/primitives/types.d.ts +199 -0
  876. package/dist/leadership/crud/utils/routingHelpers.d.ts +41 -0
  877. package/dist/leadership/custom-form-fields/components/CustomFormFields.d.ts +11 -0
  878. package/dist/leadership/custom-form-fields/fields/FormDateField.d.ts +9 -0
  879. package/dist/leadership/custom-form-fields/fields/FormMultiSelectionField.d.ts +9 -0
  880. package/dist/leadership/custom-form-fields/fields/FormNumericField.d.ts +9 -0
  881. package/dist/leadership/custom-form-fields/fields/FormQuestionsField.d.ts +9 -0
  882. package/dist/leadership/custom-form-fields/fields/FormSingleSelectionField.d.ts +9 -0
  883. package/dist/leadership/custom-form-fields/fields/FormTextField.d.ts +9 -0
  884. package/dist/leadership/custom-form-fields/fields/FormTimeField.d.ts +9 -0
  885. package/dist/leadership/custom-form-fields/fields/FormUrlField.d.ts +9 -0
  886. package/dist/leadership/custom-form-fields/fields/ReadOnlyTextField.d.ts +9 -0
  887. package/dist/leadership/custom-form-fields/index.d.ts +13 -0
  888. package/dist/leadership/custom-form-fields/types.d.ts +206 -0
  889. package/dist/leadership/exports/action-plans.d.ts +16 -0
  890. package/dist/leadership/exports/audit-trail.d.ts +1 -0
  891. package/dist/leadership/exports/crud.d.ts +31 -0
  892. package/dist/leadership/exports/custom-form-fields.d.ts +1 -0
  893. package/dist/leadership/exports/file-upload.d.ts +1 -0
  894. package/dist/leadership/exports/integrations.d.ts +15 -0
  895. package/dist/leadership/exports/ui.d.ts +98 -0
  896. package/dist/leadership/file-upload/components/SingleFileUpload.d.ts +102 -0
  897. package/dist/leadership/file-upload/index.d.ts +6 -0
  898. package/dist/leadership/file-upload/types.d.ts +26 -0
  899. package/dist/leadership/file-upload/utils/formatBytes.d.ts +6 -0
  900. package/dist/leadership/file-upload/utils/getFileExtension.d.ts +6 -0
  901. package/dist/leadership/hooks/useActiveModules.d.ts +45 -0
  902. package/dist/leadership/hooks/useAliasFromUrl.d.ts +33 -0
  903. package/dist/leadership/hooks/useColumnResize.d.ts +45 -0
  904. package/dist/leadership/hooks/useDebounce.d.ts +56 -0
  905. package/dist/leadership/hooks/useDerivedContractedModules.d.ts +8 -0
  906. package/dist/leadership/hooks/useI18nFormatters.d.ts +40 -0
  907. package/dist/leadership/hooks/useMediaQuery.d.ts +14 -0
  908. package/dist/leadership/hooks/useModuleAccess.d.ts +59 -0
  909. package/dist/leadership/hooks/usePageTitle.d.ts +10 -0
  910. package/dist/leadership/hooks/usePermissionQuery.d.ts +49 -0
  911. package/dist/leadership/hooks/useRowResize.d.ts +37 -0
  912. package/dist/leadership/hooks/useSidebarResize.d.ts +37 -0
  913. package/dist/leadership/hooks/useUpdatesNotification.d.ts +27 -0
  914. package/dist/leadership/hooks/useWizard.d.ts +40 -0
  915. package/dist/leadership/i18n/config.d.ts +13 -0
  916. package/dist/leadership/i18n/constants.d.ts +126 -0
  917. package/dist/leadership/i18n/index.d.ts +11 -0
  918. package/dist/leadership/i18n/utils.d.ts +14 -0
  919. package/dist/leadership/index.d.ts +103 -12
  920. package/dist/leadership/index.esm.js +1 -0
  921. package/dist/leadership/index.js +1 -0
  922. package/dist/leadership/integrations/clarity/clarityTracking.d.ts +31 -0
  923. package/dist/leadership/integrations/clarity/index.d.ts +3 -0
  924. package/dist/leadership/integrations/clarity/types.d.ts +46 -0
  925. package/dist/leadership/integrations/clarity/useClarity.d.ts +34 -0
  926. package/dist/leadership/integrations/index.d.ts +5 -0
  927. package/dist/leadership/leadership/components/LeadershipDialog.d.ts +10 -0
  928. package/dist/leadership/leadership/components/LeadershipForm.d.ts +8 -0
  929. package/dist/leadership/leadership/components/LeadershipPage.d.ts +19 -0
  930. package/dist/leadership/leadership/hooks/useLeadershipApi.d.ts +4 -0
  931. package/dist/leadership/leadership/hooks/useLeadershipMutations.d.ts +29 -0
  932. package/dist/leadership/leadership/index.d.ts +13 -0
  933. package/dist/leadership/leadership/types.d.ts +23 -0
  934. package/dist/leadership/leadership/utils/leadershipUtils.d.ts +8 -0
  935. package/dist/leadership/media/components/ImageEditor.d.ts +22 -0
  936. package/dist/leadership/media/components/ImageRenderer.d.ts +23 -0
  937. package/dist/leadership/media/components/VideoEditor.d.ts +2 -0
  938. package/dist/leadership/media/components/VideoRenderer.d.ts +2 -0
  939. package/dist/leadership/media/hooks/useMediaUpload.d.ts +19 -0
  940. package/dist/leadership/media/index.d.ts +49 -0
  941. package/dist/leadership/media/types.d.ts +66 -0
  942. package/dist/leadership/media/utils/imageHelpers.d.ts +28 -0
  943. package/dist/leadership/media/utils/videoHelpers.d.ts +35 -0
  944. package/dist/leadership/mind-map/components/MindMap.d.ts +23 -0
  945. package/dist/leadership/mind-map/components/MindMapConnection.d.ts +12 -0
  946. package/dist/leadership/mind-map/components/MindMapNodeView.d.ts +24 -0
  947. package/dist/leadership/mind-map/components/MindMapToolbar.d.ts +26 -0
  948. package/dist/leadership/mind-map/hooks/useMindMapKeyboard.d.ts +15 -0
  949. package/dist/leadership/mind-map/hooks/useMindMapLayout.d.ts +5 -0
  950. package/dist/leadership/mind-map/hooks/useMindMapPanZoom.d.ts +21 -0
  951. package/dist/leadership/mind-map/hooks/useMindMapState.d.ts +32 -0
  952. package/dist/leadership/mind-map/index.d.ts +4 -0
  953. package/dist/leadership/mind-map/types.d.ts +91 -0
  954. package/dist/leadership/mind-map/utils/export-image.d.ts +9 -0
  955. package/dist/leadership/mind-map/utils/layout.d.ts +15 -0
  956. package/dist/leadership/mind-map/utils/nodeOps.d.ts +66 -0
  957. package/dist/leadership/mind-map/utils/serialize.d.ts +10 -0
  958. package/dist/leadership/modules/softwaresMap.d.ts +4 -0
  959. package/dist/leadership/places/components/ManageAccessModal.d.ts +11 -0
  960. package/dist/leadership/places/components/PlaceCard.d.ts +12 -0
  961. package/dist/leadership/places/components/PlacesList.d.ts +12 -0
  962. package/dist/leadership/places/index.d.ts +8 -0
  963. package/dist/leadership/places/services/PlaceService.d.ts +9 -0
  964. package/dist/leadership/places/types.d.ts +10 -0
  965. package/dist/leadership/providers/CoreProviders.d.ts +107 -0
  966. package/dist/leadership/providers/index.d.ts +2 -0
  967. package/dist/leadership/qualiex/components/QualiexUserField.d.ts +133 -0
  968. package/dist/leadership/qualiex/hooks/useQualiexUsers.d.ts +41 -0
  969. package/dist/leadership/qualiex/services/qualiexApi.d.ts +75 -0
  970. package/dist/leadership/qualiex/utils/QualiexErrorInterceptor.d.ts +20 -0
  971. package/dist/leadership/qualiex/utils/userPlaceUtils.d.ts +16 -0
  972. package/dist/leadership/services/BaseService.d.ts +51 -0
  973. package/dist/leadership/services/EmailService.d.ts +110 -0
  974. package/dist/leadership/services/ErrorService.d.ts +19 -0
  975. package/dist/leadership/services/QualiexEnrichmentService.d.ts +53 -0
  976. package/dist/leadership/services/QualiexFieldHelpers.d.ts +17 -0
  977. package/dist/leadership/setup/favicon.d.ts +1 -0
  978. package/dist/leadership/setup.d.ts +16 -0
  979. package/dist/leadership/sign/components/D4SignWidget.d.ts +2 -0
  980. package/dist/leadership/sign/components/DocumentSigner.d.ts +2 -0
  981. package/dist/leadership/sign/components/SignConfigForm.d.ts +2 -0
  982. package/dist/leadership/sign/components/SignWidget.d.ts +9 -0
  983. package/dist/leadership/sign/hooks/useSignConfig.d.ts +6 -0
  984. package/dist/leadership/sign/index.d.ts +8 -0
  985. package/dist/leadership/sign/services/signService.d.ts +17 -0
  986. package/dist/leadership/sign/types.d.ts +53 -0
  987. package/dist/leadership/sign/utils/loadClicksignScript.d.ts +13 -0
  988. package/dist/leadership/supabase/SupabaseSingleton.d.ts +34 -0
  989. package/dist/leadership/supabase/client.d.ts +2 -0
  990. package/dist/leadership/supabase/legacyKeyGuard.d.ts +19 -0
  991. package/dist/leadership/supabase/publicClient.d.ts +2 -0
  992. package/dist/leadership/supabase/types.d.ts +377 -0
  993. package/dist/leadership/team-selector/components/TeamSelector.d.ts +24 -0
  994. package/dist/leadership/team-selector/index.d.ts +2 -0
  995. package/dist/leadership/team-selector/types.d.ts +10 -0
  996. package/dist/leadership/types/sidebar.d.ts +52 -0
  997. package/dist/leadership/types.d.ts +593 -13
  998. package/dist/leadership/utils/color.d.ts +26 -0
  999. package/dist/leadership/utils/formatters/currencyFormatters.d.ts +1 -0
  1000. package/dist/leadership/utils/formatters/dateFormatters.d.ts +52 -0
  1001. package/dist/leadership/utils/index.d.ts +9 -0
  1002. package/dist/leadership/utils/linkHelpers.d.ts +9 -0
  1003. package/dist/leadership/utils/load-fonts.d.ts +1 -0
  1004. package/dist/places/action-plans/components/ActionPlanAttachmentsTab.d.ts +21 -0
  1005. package/dist/places/action-plans/components/ActionPlanCommentsTab.d.ts +21 -0
  1006. package/dist/places/action-plans/components/ActionPlanCostTab.d.ts +15 -0
  1007. package/dist/places/action-plans/components/ActionPlanGeneralTab.d.ts +21 -0
  1008. package/dist/places/action-plans/components/ActionPlanHistoryTab.d.ts +16 -0
  1009. package/dist/places/action-plans/components/ActionPlanPage.d.ts +25 -0
  1010. package/dist/places/action-plans/components/ActionPlanPredecessorsTab.d.ts +15 -0
  1011. package/dist/places/action-plans/components/ActionPlanProgressDialog.d.ts +16 -0
  1012. package/dist/places/action-plans/components/ActionPlanProgressTab.d.ts +10 -0
  1013. package/dist/places/action-plans/components/ActionPlanStatusBadge.d.ts +18 -0
  1014. package/dist/places/action-plans/constants.d.ts +86 -0
  1015. package/dist/places/action-plans/hooks/useActionPlan.d.ts +19 -0
  1016. package/dist/places/action-plans/hooks/useActionPlanProgress.d.ts +20 -0
  1017. package/dist/places/action-plans/index.d.ts +15 -0
  1018. package/dist/places/action-plans/types.d.ts +413 -0
  1019. package/dist/places/action-plans/utils/formatTime.d.ts +24 -0
  1020. package/dist/places/approval-flow/components/ApprovalSidenav.d.ts +16 -0
  1021. package/dist/places/approval-flow/components/ApproveDialog.d.ts +13 -0
  1022. package/dist/places/approval-flow/components/SelectApproverDialog.d.ts +11 -0
  1023. package/dist/places/approval-flow/index.d.ts +4 -0
  1024. package/dist/places/approval-flow/types.d.ts +76 -0
  1025. package/dist/places/assets/index.d.ts +7 -0
  1026. package/dist/places/audit-trail/components/AuditTrailDetails.d.ts +27 -0
  1027. package/dist/places/audit-trail/components/AuditTrailFilter.d.ts +29 -0
  1028. package/dist/places/audit-trail/components/AuditTrailPage.d.ts +40 -0
  1029. package/dist/places/audit-trail/index.d.ts +9 -0
  1030. package/dist/places/audit-trail/types.d.ts +209 -0
  1031. package/dist/places/audit-trail/utils.d.ts +54 -0
  1032. package/dist/places/auth/components/AliasRedirect.d.ts +13 -0
  1033. package/dist/places/auth/components/AliasRouteGuard.d.ts +20 -0
  1034. package/dist/places/auth/components/EditProfileDialog.d.ts +13 -0
  1035. package/dist/places/auth/components/ProtectedRoute.d.ts +11 -0
  1036. package/dist/places/auth/components/UserInfo.d.ts +10 -0
  1037. package/dist/places/auth/contexts/AuthContext.d.ts +89 -0
  1038. package/dist/places/auth/pages/CallbackPage.d.ts +6 -0
  1039. package/dist/places/auth/pages/LoginPage.d.ts +2 -0
  1040. package/dist/places/auth/services/AuthService.d.ts +45 -0
  1041. package/dist/places/auth/services/SupabaseTokenService.d.ts +3 -0
  1042. package/dist/places/auth/services/TokenManager.d.ts +66 -0
  1043. package/dist/places/auth/services/TokenRegenerationService.d.ts +14 -0
  1044. package/dist/places/auth/services/TokenService.d.ts +48 -0
  1045. package/dist/places/auth/utils/ErrorInterceptor.d.ts +20 -0
  1046. package/dist/places/components/ErrorBoundary.d.ts +19 -0
  1047. package/dist/places/components/dashboards/dashboard-form.d.ts +65 -0
  1048. package/dist/places/components/dashboards/dashboard-general-view.d.ts +124 -0
  1049. package/dist/places/components/dashboards/dashboard-grid.d.ts +66 -0
  1050. package/dist/places/components/dashboards/dashboard-list.d.ts +41 -0
  1051. package/dist/places/components/dashboards/dashboard-panel-renderer.d.ts +31 -0
  1052. package/dist/places/components/dashboards/dashboard-view.d.ts +48 -0
  1053. package/dist/places/components/dashboards/helpers.d.ts +86 -0
  1054. package/dist/places/components/dashboards/index.d.ts +9 -0
  1055. package/dist/places/components/dashboards/panels/burndown-panel.d.ts +41 -0
  1056. package/dist/places/components/dashboards/panels/cartesian-panel.d.ts +66 -0
  1057. package/dist/places/components/dashboards/panels/index.d.ts +14 -0
  1058. package/dist/places/components/dashboards/panels/list-panel.d.ts +45 -0
  1059. package/dist/places/components/dashboards/panels/matrix-risk-panel.d.ts +74 -0
  1060. package/dist/places/components/dashboards/panels/numeric-panel.d.ts +32 -0
  1061. package/dist/places/components/dashboards/panels/panel-error.d.ts +18 -0
  1062. package/dist/places/components/dashboards/panels/panel-header.d.ts +27 -0
  1063. package/dist/places/components/dashboards/panels/panel-loader.d.ts +17 -0
  1064. package/dist/places/components/dashboards/panels/panel-no-data.d.ts +16 -0
  1065. package/dist/places/components/dashboards/panels/panel-unavailable.d.ts +16 -0
  1066. package/dist/places/components/dashboards/panels/pareto-panel.d.ts +30 -0
  1067. package/dist/places/components/dashboards/panels/performance-panel.d.ts +39 -0
  1068. package/dist/places/components/dashboards/panels/pie-panel.d.ts +29 -0
  1069. package/dist/places/components/dashboards/panels/text-panel.d.ts +28 -0
  1070. package/dist/places/components/dashboards/types.d.ts +755 -0
  1071. package/dist/places/components/layout/AppHeader.d.ts +6 -0
  1072. package/dist/places/components/layout/AppLayout.d.ts +10 -0
  1073. package/dist/places/components/layout/AppSidebar.d.ts +10 -0
  1074. package/dist/places/components/layout/BodyContent.d.ts +60 -0
  1075. package/dist/places/components/layout/SidebarActionTrigger.d.ts +46 -0
  1076. package/dist/places/components/layout/SidebarHeader.d.ts +5 -0
  1077. package/dist/places/components/layout/SidebarLogo.d.ts +5 -0
  1078. package/dist/places/components/layout/sidebar-utils.d.ts +12 -0
  1079. package/dist/places/components/modules/AccessDeniedDialog.d.ts +43 -0
  1080. package/dist/places/components/modules/ModuleAccessGuard.d.ts +42 -0
  1081. package/dist/places/components/modules/ModuleGrid.d.ts +9 -0
  1082. package/dist/places/components/modules/ModuleOfferContent.d.ts +20 -0
  1083. package/dist/places/components/modules/ModulesContent.d.ts +21 -0
  1084. package/dist/places/components/modules/ModulesDialog.d.ts +3 -0
  1085. package/dist/places/components/modules/ModulesFooterCards.d.ts +10 -0
  1086. package/dist/places/components/modules/icons/ModulesCardIcons.d.ts +19 -0
  1087. package/dist/places/components/modules/index.d.ts +14 -0
  1088. package/dist/places/components/modules/modulesData.d.ts +6 -0
  1089. package/dist/places/components/modules/types.d.ts +41 -0
  1090. package/dist/places/components/ui/accordion.d.ts +42 -0
  1091. package/dist/places/components/ui/action-button.d.ts +48 -0
  1092. package/dist/places/components/ui/alert-dialog.d.ts +102 -0
  1093. package/dist/places/components/ui/alert.d.ts +44 -0
  1094. package/dist/places/components/ui/avatar.d.ts +36 -0
  1095. package/dist/places/components/ui/badge.d.ts +41 -0
  1096. package/dist/places/components/ui/breadcrumb.d.ts +73 -0
  1097. package/dist/places/components/ui/button-group.d.ts +24 -0
  1098. package/dist/places/components/ui/button.d.ts +66 -0
  1099. package/dist/places/components/ui/calendar.d.ts +24 -0
  1100. package/dist/places/components/ui/card.d.ts +57 -0
  1101. package/dist/places/components/ui/chart.d.ts +97 -0
  1102. package/dist/places/components/ui/checkbox.d.ts +15 -0
  1103. package/dist/places/components/ui/collapsible.d.ts +20 -0
  1104. package/dist/places/components/ui/color-picker.d.ts +19 -0
  1105. package/dist/places/components/ui/combo-tree.d.ts +103 -0
  1106. package/dist/places/components/ui/combobox.d.ts +64 -0
  1107. package/dist/places/components/ui/command.d.ts +89 -0
  1108. package/dist/places/components/ui/context-menu.d.ts +122 -0
  1109. package/dist/places/components/ui/data-list.d.ts +86 -0
  1110. package/dist/places/components/ui/date-picker.d.ts +19 -0
  1111. package/dist/places/components/ui/dialog-wizard.d.ts +100 -0
  1112. package/dist/places/components/ui/dialog.d.ts +229 -0
  1113. package/dist/places/components/ui/disabled-menu-item.d.ts +25 -0
  1114. package/dist/places/components/ui/drawer.d.ts +94 -0
  1115. package/dist/places/components/ui/dropdown-menu.d.ts +180 -0
  1116. package/dist/places/components/ui/electronic-signature-dialog.d.ts +31 -0
  1117. package/dist/places/components/ui/empty-state.d.ts +79 -0
  1118. package/dist/places/components/ui/export-dialog.d.ts +48 -0
  1119. package/dist/places/components/ui/form.d.ts +119 -0
  1120. package/dist/places/components/ui/grid.d.ts +53 -0
  1121. package/dist/places/components/ui/hover-card.d.ts +21 -0
  1122. package/dist/places/components/ui/icon-picker.d.ts +17 -0
  1123. package/dist/places/components/ui/iframe-dialog.d.ts +24 -0
  1124. package/dist/places/components/ui/input-group.d.ts +113 -0
  1125. package/dist/places/components/ui/input.d.ts +24 -0
  1126. package/dist/places/components/ui/label.d.ts +23 -0
  1127. package/dist/places/components/ui/loading-state.d.ts +52 -0
  1128. package/dist/places/components/ui/menubar.d.ts +113 -0
  1129. package/dist/places/components/ui/multiselect-permissions.d.ts +84 -0
  1130. package/dist/places/components/ui/navigation-menu.d.ts +57 -0
  1131. package/dist/places/components/ui/onboarding-dialog.d.ts +58 -0
  1132. package/dist/places/components/ui/online-editor-dialog.d.ts +28 -0
  1133. package/dist/places/components/ui/page-breadcrumb.d.ts +77 -0
  1134. package/dist/places/components/ui/pagination.d.ts +81 -0
  1135. package/dist/places/components/ui/popover.d.ts +57 -0
  1136. package/dist/places/components/ui/progress.d.ts +22 -0
  1137. package/dist/places/components/ui/radio-group.d.ts +66 -0
  1138. package/dist/places/components/ui/report-request-list.d.ts +64 -0
  1139. package/dist/places/components/ui/resizable.d.ts +38 -0
  1140. package/dist/places/components/ui/rich-text-editor.d.ts +58 -0
  1141. package/dist/places/components/ui/scroll-area.d.ts +40 -0
  1142. package/dist/places/components/ui/select.d.ts +94 -0
  1143. package/dist/places/components/ui/separator.d.ts +17 -0
  1144. package/dist/places/components/ui/sheet.d.ts +108 -0
  1145. package/dist/places/components/ui/sidebar.d.ts +269 -0
  1146. package/dist/places/components/ui/skeleton-variants.d.ts +41 -0
  1147. package/dist/places/components/ui/skeleton.d.ts +14 -0
  1148. package/dist/places/components/ui/slider.d.ts +9 -0
  1149. package/dist/places/components/ui/sonner.d.ts +8 -0
  1150. package/dist/places/components/ui/spinner.d.ts +11 -0
  1151. package/dist/places/components/ui/split-button.d.ts +76 -0
  1152. package/dist/places/components/ui/stack.d.ts +17 -0
  1153. package/dist/places/components/ui/status-badge.d.ts +52 -0
  1154. package/dist/places/components/ui/step-selector.d.ts +46 -0
  1155. package/dist/places/components/ui/stimulsoft-viewer.d.ts +28 -0
  1156. package/dist/places/components/ui/switch.d.ts +25 -0
  1157. package/dist/places/components/ui/tab-page-layout.d.ts +52 -0
  1158. package/dist/places/components/ui/table-resize-handle.d.ts +22 -0
  1159. package/dist/places/components/ui/table.d.ts +112 -0
  1160. package/dist/places/components/ui/tabs.d.ts +66 -0
  1161. package/dist/places/components/ui/terms-of-use-dialog.d.ts +102 -0
  1162. package/dist/places/components/ui/textarea.d.ts +33 -0
  1163. package/dist/places/components/ui/timepicker.d.ts +34 -0
  1164. package/dist/places/components/ui/toggle-group.d.ts +37 -0
  1165. package/dist/places/components/ui/toggle.d.ts +33 -0
  1166. package/dist/places/components/ui/tooltip.d.ts +61 -0
  1167. package/dist/places/components/ui/truncated-cell.d.ts +20 -0
  1168. package/dist/places/components/ui/typography.d.ts +135 -0
  1169. package/dist/places/components/ui/updates-notification.d.ts +47 -0
  1170. package/dist/places/components/ui/users-groups-selector.d.ts +87 -0
  1171. package/dist/places/components/ui/viewer-dialog.d.ts +184 -0
  1172. package/dist/places/config/backend.d.ts +10 -0
  1173. package/dist/places/config/environments.d.ts +12 -0
  1174. package/dist/places/config/index.d.ts +75 -0
  1175. package/dist/places/contexts/LocaleContext.d.ts +15 -0
  1176. package/dist/places/contexts/ModalStateContext.d.ts +57 -0
  1177. package/dist/places/contexts/ModuleContext.d.ts +34 -0
  1178. package/dist/places/contexts/NavigationContext.d.ts +13 -0
  1179. package/dist/places/contexts/PageMetadataContext.d.ts +48 -0
  1180. package/dist/places/crud/components/ActionMenuItems.d.ts +22 -0
  1181. package/dist/places/crud/components/BaseForm.d.ts +52 -0
  1182. package/dist/places/crud/components/ColumnSettingsPopover.d.ts +28 -0
  1183. package/dist/places/crud/components/ContextMenu.d.ts +21 -0
  1184. package/dist/places/crud/components/CrudActionBar.d.ts +59 -0
  1185. package/dist/places/crud/components/CrudGrid.d.ts +53 -0
  1186. package/dist/places/crud/components/CrudPagination.d.ts +17 -0
  1187. package/dist/places/crud/components/CrudTable.d.ts +66 -0
  1188. package/dist/places/crud/components/FilterBar.d.ts +136 -0
  1189. package/dist/places/crud/components/GroupDropZone.d.ts +16 -0
  1190. package/dist/places/crud/components/InlineRowActions.d.ts +15 -0
  1191. package/dist/places/crud/components/SelectionCheckbox.d.ts +9 -0
  1192. package/dist/places/crud/components/TableFooter.d.ts +14 -0
  1193. package/dist/places/crud/components/TableRowActions.d.ts +19 -0
  1194. package/dist/places/crud/createCrudPage.d.ts +134 -0
  1195. package/dist/places/crud/createSimpleService.d.ts +85 -0
  1196. package/dist/places/crud/generateCrudConfig.d.ts +78 -0
  1197. package/dist/places/crud/hooks/useBaseForm.d.ts +47 -0
  1198. package/dist/places/crud/hooks/useColumnDragReorder.d.ts +19 -0
  1199. package/dist/places/crud/hooks/useColumnManager.d.ts +85 -0
  1200. package/dist/places/crud/hooks/useCrud.d.ts +152 -0
  1201. package/dist/places/crud/primitives/ActionMenu.d.ts +69 -0
  1202. package/dist/places/crud/primitives/FilterBar.d.ts +69 -0
  1203. package/dist/places/crud/primitives/Pagination.d.ts +29 -0
  1204. package/dist/places/crud/primitives/Table.d.ts +31 -0
  1205. package/dist/places/crud/primitives/TreeTable.d.ts +7 -0
  1206. package/dist/places/crud/primitives/index.d.ts +12 -0
  1207. package/dist/places/crud/primitives/types.d.ts +199 -0
  1208. package/dist/places/crud/utils/routingHelpers.d.ts +41 -0
  1209. package/dist/places/custom-form-fields/components/CustomFormFields.d.ts +11 -0
  1210. package/dist/places/custom-form-fields/fields/FormDateField.d.ts +9 -0
  1211. package/dist/places/custom-form-fields/fields/FormMultiSelectionField.d.ts +9 -0
  1212. package/dist/places/custom-form-fields/fields/FormNumericField.d.ts +9 -0
  1213. package/dist/places/custom-form-fields/fields/FormQuestionsField.d.ts +9 -0
  1214. package/dist/places/custom-form-fields/fields/FormSingleSelectionField.d.ts +9 -0
  1215. package/dist/places/custom-form-fields/fields/FormTextField.d.ts +9 -0
  1216. package/dist/places/custom-form-fields/fields/FormTimeField.d.ts +9 -0
  1217. package/dist/places/custom-form-fields/fields/FormUrlField.d.ts +9 -0
  1218. package/dist/places/custom-form-fields/fields/ReadOnlyTextField.d.ts +9 -0
  1219. package/dist/places/custom-form-fields/index.d.ts +13 -0
  1220. package/dist/places/custom-form-fields/types.d.ts +206 -0
  1221. package/dist/places/exports/action-plans.d.ts +16 -0
  1222. package/dist/places/exports/audit-trail.d.ts +1 -0
  1223. package/dist/places/exports/crud.d.ts +31 -0
  1224. package/dist/places/exports/custom-form-fields.d.ts +1 -0
  1225. package/dist/places/exports/file-upload.d.ts +1 -0
  1226. package/dist/places/exports/integrations.d.ts +15 -0
  1227. package/dist/places/exports/ui.d.ts +98 -0
  1228. package/dist/places/file-upload/components/SingleFileUpload.d.ts +102 -0
  1229. package/dist/places/file-upload/index.d.ts +6 -0
  1230. package/dist/places/file-upload/types.d.ts +26 -0
  1231. package/dist/places/file-upload/utils/formatBytes.d.ts +6 -0
  1232. package/dist/places/file-upload/utils/getFileExtension.d.ts +6 -0
  1233. package/dist/places/hooks/useActiveModules.d.ts +45 -0
  1234. package/dist/places/hooks/useAliasFromUrl.d.ts +33 -0
  1235. package/dist/places/hooks/useColumnResize.d.ts +45 -0
  1236. package/dist/places/hooks/useDebounce.d.ts +56 -0
  1237. package/dist/places/hooks/useDerivedContractedModules.d.ts +8 -0
  1238. package/dist/places/hooks/useI18nFormatters.d.ts +40 -0
  1239. package/dist/places/hooks/useMediaQuery.d.ts +14 -0
  1240. package/dist/places/hooks/useModuleAccess.d.ts +59 -0
  1241. package/dist/places/hooks/usePageTitle.d.ts +10 -0
  1242. package/dist/places/hooks/usePermissionQuery.d.ts +49 -0
  1243. package/dist/places/hooks/useRowResize.d.ts +37 -0
  1244. package/dist/places/hooks/useSidebarResize.d.ts +37 -0
  1245. package/dist/places/hooks/useUpdatesNotification.d.ts +27 -0
  1246. package/dist/places/hooks/useWizard.d.ts +40 -0
  1247. package/dist/places/i18n/config.d.ts +13 -0
  1248. package/dist/places/i18n/constants.d.ts +126 -0
  1249. package/dist/places/i18n/index.d.ts +11 -0
  1250. package/dist/places/i18n/utils.d.ts +14 -0
  1251. package/dist/places/index.d.ts +104 -8
  1252. package/dist/places/index.esm.js +1 -0
  1253. package/dist/places/index.js +1 -0
  1254. package/dist/places/integrations/clarity/clarityTracking.d.ts +31 -0
  1255. package/dist/places/integrations/clarity/index.d.ts +3 -0
  1256. package/dist/places/integrations/clarity/types.d.ts +46 -0
  1257. package/dist/places/integrations/clarity/useClarity.d.ts +34 -0
  1258. package/dist/places/integrations/index.d.ts +5 -0
  1259. package/dist/places/leadership/components/LeadershipDialog.d.ts +10 -0
  1260. package/dist/places/leadership/components/LeadershipForm.d.ts +8 -0
  1261. package/dist/places/leadership/components/LeadershipPage.d.ts +19 -0
  1262. package/dist/places/leadership/hooks/useLeadershipApi.d.ts +4 -0
  1263. package/dist/places/leadership/hooks/useLeadershipMutations.d.ts +29 -0
  1264. package/dist/places/leadership/index.d.ts +13 -0
  1265. package/dist/places/leadership/types.d.ts +23 -0
  1266. package/dist/places/leadership/utils/leadershipUtils.d.ts +8 -0
  1267. package/dist/places/media/components/ImageEditor.d.ts +22 -0
  1268. package/dist/places/media/components/ImageRenderer.d.ts +23 -0
  1269. package/dist/places/media/components/VideoEditor.d.ts +2 -0
  1270. package/dist/places/media/components/VideoRenderer.d.ts +2 -0
  1271. package/dist/places/media/hooks/useMediaUpload.d.ts +19 -0
  1272. package/dist/places/media/index.d.ts +49 -0
  1273. package/dist/places/media/types.d.ts +66 -0
  1274. package/dist/places/media/utils/imageHelpers.d.ts +28 -0
  1275. package/dist/places/media/utils/videoHelpers.d.ts +35 -0
  1276. package/dist/places/mind-map/components/MindMap.d.ts +23 -0
  1277. package/dist/places/mind-map/components/MindMapConnection.d.ts +12 -0
  1278. package/dist/places/mind-map/components/MindMapNodeView.d.ts +24 -0
  1279. package/dist/places/mind-map/components/MindMapToolbar.d.ts +26 -0
  1280. package/dist/places/mind-map/hooks/useMindMapKeyboard.d.ts +15 -0
  1281. package/dist/places/mind-map/hooks/useMindMapLayout.d.ts +5 -0
  1282. package/dist/places/mind-map/hooks/useMindMapPanZoom.d.ts +21 -0
  1283. package/dist/places/mind-map/hooks/useMindMapState.d.ts +32 -0
  1284. package/dist/places/mind-map/index.d.ts +4 -0
  1285. package/dist/places/mind-map/types.d.ts +91 -0
  1286. package/dist/places/mind-map/utils/export-image.d.ts +9 -0
  1287. package/dist/places/mind-map/utils/layout.d.ts +15 -0
  1288. package/dist/places/mind-map/utils/nodeOps.d.ts +66 -0
  1289. package/dist/places/mind-map/utils/serialize.d.ts +10 -0
  1290. package/dist/places/modules/softwaresMap.d.ts +4 -0
  1291. package/dist/places/places/components/ManageAccessModal.d.ts +11 -0
  1292. package/dist/places/places/components/PlaceCard.d.ts +12 -0
  1293. package/dist/places/places/components/PlacesList.d.ts +12 -0
  1294. package/dist/places/places/index.d.ts +8 -0
  1295. package/dist/places/places/services/PlaceService.d.ts +9 -0
  1296. package/dist/places/places/types.d.ts +10 -0
  1297. package/dist/places/providers/CoreProviders.d.ts +107 -0
  1298. package/dist/places/providers/index.d.ts +2 -0
  1299. package/dist/places/qualiex/components/QualiexUserField.d.ts +133 -0
  1300. package/dist/places/qualiex/hooks/useQualiexUsers.d.ts +41 -0
  1301. package/dist/places/qualiex/services/qualiexApi.d.ts +75 -0
  1302. package/dist/places/qualiex/utils/QualiexErrorInterceptor.d.ts +20 -0
  1303. package/dist/places/qualiex/utils/userPlaceUtils.d.ts +16 -0
  1304. package/dist/places/services/BaseService.d.ts +51 -0
  1305. package/dist/places/services/EmailService.d.ts +110 -0
  1306. package/dist/places/services/ErrorService.d.ts +19 -0
  1307. package/dist/places/services/QualiexEnrichmentService.d.ts +53 -0
  1308. package/dist/places/services/QualiexFieldHelpers.d.ts +17 -0
  1309. package/dist/places/setup/favicon.d.ts +1 -0
  1310. package/dist/places/setup.d.ts +16 -0
  1311. package/dist/places/sign/components/D4SignWidget.d.ts +2 -0
  1312. package/dist/places/sign/components/DocumentSigner.d.ts +2 -0
  1313. package/dist/places/sign/components/SignConfigForm.d.ts +2 -0
  1314. package/dist/places/sign/components/SignWidget.d.ts +9 -0
  1315. package/dist/places/sign/hooks/useSignConfig.d.ts +6 -0
  1316. package/dist/places/sign/index.d.ts +8 -0
  1317. package/dist/places/sign/services/signService.d.ts +17 -0
  1318. package/dist/places/sign/types.d.ts +53 -0
  1319. package/dist/places/sign/utils/loadClicksignScript.d.ts +13 -0
  1320. package/dist/places/supabase/SupabaseSingleton.d.ts +34 -0
  1321. package/dist/places/supabase/client.d.ts +2 -0
  1322. package/dist/places/supabase/legacyKeyGuard.d.ts +19 -0
  1323. package/dist/places/supabase/publicClient.d.ts +2 -0
  1324. package/dist/places/supabase/types.d.ts +377 -0
  1325. package/dist/places/team-selector/components/TeamSelector.d.ts +24 -0
  1326. package/dist/places/team-selector/index.d.ts +2 -0
  1327. package/dist/places/team-selector/types.d.ts +10 -0
  1328. package/dist/places/types/sidebar.d.ts +52 -0
  1329. package/dist/places/types.d.ts +599 -6
  1330. package/dist/places/utils/color.d.ts +26 -0
  1331. package/dist/places/utils/formatters/currencyFormatters.d.ts +1 -0
  1332. package/dist/places/utils/formatters/dateFormatters.d.ts +52 -0
  1333. package/dist/places/utils/index.d.ts +9 -0
  1334. package/dist/places/utils/linkHelpers.d.ts +9 -0
  1335. package/dist/places/utils/load-fonts.d.ts +1 -0
  1336. package/dist/providers/CoreProviders.d.ts +14 -1
  1337. package/dist/sign/action-plans/components/ActionPlanAttachmentsTab.d.ts +21 -0
  1338. package/dist/sign/action-plans/components/ActionPlanCommentsTab.d.ts +21 -0
  1339. package/dist/sign/action-plans/components/ActionPlanCostTab.d.ts +15 -0
  1340. package/dist/sign/action-plans/components/ActionPlanGeneralTab.d.ts +21 -0
  1341. package/dist/sign/action-plans/components/ActionPlanHistoryTab.d.ts +16 -0
  1342. package/dist/sign/action-plans/components/ActionPlanPage.d.ts +25 -0
  1343. package/dist/sign/action-plans/components/ActionPlanPredecessorsTab.d.ts +15 -0
  1344. package/dist/sign/action-plans/components/ActionPlanProgressDialog.d.ts +16 -0
  1345. package/dist/sign/action-plans/components/ActionPlanProgressTab.d.ts +10 -0
  1346. package/dist/sign/action-plans/components/ActionPlanStatusBadge.d.ts +18 -0
  1347. package/dist/sign/action-plans/constants.d.ts +86 -0
  1348. package/dist/sign/action-plans/hooks/useActionPlan.d.ts +19 -0
  1349. package/dist/sign/action-plans/hooks/useActionPlanProgress.d.ts +20 -0
  1350. package/dist/sign/action-plans/index.d.ts +15 -0
  1351. package/dist/sign/action-plans/types.d.ts +413 -0
  1352. package/dist/sign/action-plans/utils/formatTime.d.ts +24 -0
  1353. package/dist/sign/approval-flow/components/ApprovalSidenav.d.ts +16 -0
  1354. package/dist/sign/approval-flow/components/ApproveDialog.d.ts +13 -0
  1355. package/dist/sign/approval-flow/components/SelectApproverDialog.d.ts +11 -0
  1356. package/dist/sign/approval-flow/index.d.ts +4 -0
  1357. package/dist/sign/approval-flow/types.d.ts +76 -0
  1358. package/dist/sign/assets/index.d.ts +7 -0
  1359. package/dist/sign/audit-trail/components/AuditTrailDetails.d.ts +27 -0
  1360. package/dist/sign/audit-trail/components/AuditTrailFilter.d.ts +29 -0
  1361. package/dist/sign/audit-trail/components/AuditTrailPage.d.ts +40 -0
  1362. package/dist/sign/audit-trail/index.d.ts +9 -0
  1363. package/dist/sign/audit-trail/types.d.ts +209 -0
  1364. package/dist/sign/audit-trail/utils.d.ts +54 -0
  1365. package/dist/sign/auth/components/AliasRedirect.d.ts +13 -0
  1366. package/dist/sign/auth/components/AliasRouteGuard.d.ts +20 -0
  1367. package/dist/sign/auth/components/EditProfileDialog.d.ts +13 -0
  1368. package/dist/sign/auth/components/ProtectedRoute.d.ts +11 -0
  1369. package/dist/sign/auth/components/UserInfo.d.ts +10 -0
  1370. package/dist/sign/auth/contexts/AuthContext.d.ts +89 -0
  1371. package/dist/sign/auth/pages/CallbackPage.d.ts +6 -0
  1372. package/dist/sign/auth/pages/LoginPage.d.ts +2 -0
  1373. package/dist/sign/auth/services/AuthService.d.ts +45 -0
  1374. package/dist/sign/auth/services/SupabaseTokenService.d.ts +3 -0
  1375. package/dist/sign/auth/services/TokenManager.d.ts +66 -0
  1376. package/dist/sign/auth/services/TokenRegenerationService.d.ts +14 -0
  1377. package/dist/sign/auth/services/TokenService.d.ts +48 -0
  1378. package/dist/sign/auth/utils/ErrorInterceptor.d.ts +20 -0
  1379. package/dist/sign/components/ErrorBoundary.d.ts +19 -0
  1380. package/dist/sign/components/dashboards/dashboard-form.d.ts +65 -0
  1381. package/dist/sign/components/dashboards/dashboard-general-view.d.ts +124 -0
  1382. package/dist/sign/components/dashboards/dashboard-grid.d.ts +66 -0
  1383. package/dist/sign/components/dashboards/dashboard-list.d.ts +41 -0
  1384. package/dist/sign/components/dashboards/dashboard-panel-renderer.d.ts +31 -0
  1385. package/dist/sign/components/dashboards/dashboard-view.d.ts +48 -0
  1386. package/dist/sign/components/dashboards/helpers.d.ts +86 -0
  1387. package/dist/sign/components/dashboards/index.d.ts +9 -0
  1388. package/dist/sign/components/dashboards/panels/burndown-panel.d.ts +41 -0
  1389. package/dist/sign/components/dashboards/panels/cartesian-panel.d.ts +66 -0
  1390. package/dist/sign/components/dashboards/panels/index.d.ts +14 -0
  1391. package/dist/sign/components/dashboards/panels/list-panel.d.ts +45 -0
  1392. package/dist/sign/components/dashboards/panels/matrix-risk-panel.d.ts +74 -0
  1393. package/dist/sign/components/dashboards/panels/numeric-panel.d.ts +32 -0
  1394. package/dist/sign/components/dashboards/panels/panel-error.d.ts +18 -0
  1395. package/dist/sign/components/dashboards/panels/panel-header.d.ts +27 -0
  1396. package/dist/sign/components/dashboards/panels/panel-loader.d.ts +17 -0
  1397. package/dist/sign/components/dashboards/panels/panel-no-data.d.ts +16 -0
  1398. package/dist/sign/components/dashboards/panels/panel-unavailable.d.ts +16 -0
  1399. package/dist/sign/components/dashboards/panels/pareto-panel.d.ts +30 -0
  1400. package/dist/sign/components/dashboards/panels/performance-panel.d.ts +39 -0
  1401. package/dist/sign/components/dashboards/panels/pie-panel.d.ts +29 -0
  1402. package/dist/sign/components/dashboards/panels/text-panel.d.ts +28 -0
  1403. package/dist/sign/components/dashboards/types.d.ts +755 -0
  1404. package/dist/sign/components/layout/AppHeader.d.ts +6 -0
  1405. package/dist/sign/components/layout/AppLayout.d.ts +10 -0
  1406. package/dist/sign/components/layout/AppSidebar.d.ts +10 -0
  1407. package/dist/sign/components/layout/BodyContent.d.ts +60 -0
  1408. package/dist/sign/components/layout/SidebarActionTrigger.d.ts +46 -0
  1409. package/dist/sign/components/layout/SidebarHeader.d.ts +5 -0
  1410. package/dist/sign/components/layout/SidebarLogo.d.ts +5 -0
  1411. package/dist/sign/components/layout/sidebar-utils.d.ts +12 -0
  1412. package/dist/sign/components/modules/AccessDeniedDialog.d.ts +43 -0
  1413. package/dist/sign/components/modules/ModuleAccessGuard.d.ts +42 -0
  1414. package/dist/sign/components/modules/ModuleGrid.d.ts +9 -0
  1415. package/dist/sign/components/modules/ModuleOfferContent.d.ts +20 -0
  1416. package/dist/sign/components/modules/ModulesContent.d.ts +21 -0
  1417. package/dist/sign/components/modules/ModulesDialog.d.ts +3 -0
  1418. package/dist/sign/components/modules/ModulesFooterCards.d.ts +10 -0
  1419. package/dist/sign/components/modules/icons/ModulesCardIcons.d.ts +19 -0
  1420. package/dist/sign/components/modules/index.d.ts +14 -0
  1421. package/dist/sign/components/modules/modulesData.d.ts +6 -0
  1422. package/dist/sign/components/modules/types.d.ts +41 -0
  1423. package/dist/sign/components/ui/accordion.d.ts +42 -0
  1424. package/dist/sign/components/ui/action-button.d.ts +48 -0
  1425. package/dist/sign/components/ui/alert-dialog.d.ts +102 -0
  1426. package/dist/sign/components/ui/alert.d.ts +44 -0
  1427. package/dist/sign/components/ui/avatar.d.ts +36 -0
  1428. package/dist/sign/components/ui/badge.d.ts +41 -0
  1429. package/dist/sign/components/ui/breadcrumb.d.ts +73 -0
  1430. package/dist/sign/components/ui/button-group.d.ts +24 -0
  1431. package/dist/sign/components/ui/button.d.ts +66 -0
  1432. package/dist/sign/components/ui/calendar.d.ts +24 -0
  1433. package/dist/sign/components/ui/card.d.ts +57 -0
  1434. package/dist/sign/components/ui/chart.d.ts +97 -0
  1435. package/dist/sign/components/ui/checkbox.d.ts +15 -0
  1436. package/dist/sign/components/ui/collapsible.d.ts +20 -0
  1437. package/dist/sign/components/ui/color-picker.d.ts +19 -0
  1438. package/dist/sign/components/ui/combo-tree.d.ts +103 -0
  1439. package/dist/sign/components/ui/combobox.d.ts +64 -0
  1440. package/dist/sign/components/ui/command.d.ts +89 -0
  1441. package/dist/sign/components/ui/context-menu.d.ts +122 -0
  1442. package/dist/sign/components/ui/data-list.d.ts +86 -0
  1443. package/dist/sign/components/ui/date-picker.d.ts +19 -0
  1444. package/dist/sign/components/ui/dialog-wizard.d.ts +100 -0
  1445. package/dist/sign/components/ui/dialog.d.ts +229 -0
  1446. package/dist/sign/components/ui/disabled-menu-item.d.ts +25 -0
  1447. package/dist/sign/components/ui/drawer.d.ts +94 -0
  1448. package/dist/sign/components/ui/dropdown-menu.d.ts +180 -0
  1449. package/dist/sign/components/ui/electronic-signature-dialog.d.ts +31 -0
  1450. package/dist/sign/components/ui/empty-state.d.ts +79 -0
  1451. package/dist/sign/components/ui/export-dialog.d.ts +48 -0
  1452. package/dist/sign/components/ui/form.d.ts +119 -0
  1453. package/dist/sign/components/ui/grid.d.ts +53 -0
  1454. package/dist/sign/components/ui/hover-card.d.ts +21 -0
  1455. package/dist/sign/components/ui/icon-picker.d.ts +17 -0
  1456. package/dist/sign/components/ui/iframe-dialog.d.ts +24 -0
  1457. package/dist/sign/components/ui/input-group.d.ts +113 -0
  1458. package/dist/sign/components/ui/input.d.ts +24 -0
  1459. package/dist/sign/components/ui/label.d.ts +23 -0
  1460. package/dist/sign/components/ui/loading-state.d.ts +52 -0
  1461. package/dist/sign/components/ui/menubar.d.ts +113 -0
  1462. package/dist/sign/components/ui/multiselect-permissions.d.ts +84 -0
  1463. package/dist/sign/components/ui/navigation-menu.d.ts +57 -0
  1464. package/dist/sign/components/ui/onboarding-dialog.d.ts +58 -0
  1465. package/dist/sign/components/ui/online-editor-dialog.d.ts +28 -0
  1466. package/dist/sign/components/ui/page-breadcrumb.d.ts +77 -0
  1467. package/dist/sign/components/ui/pagination.d.ts +81 -0
  1468. package/dist/sign/components/ui/popover.d.ts +57 -0
  1469. package/dist/sign/components/ui/progress.d.ts +22 -0
  1470. package/dist/sign/components/ui/radio-group.d.ts +66 -0
  1471. package/dist/sign/components/ui/report-request-list.d.ts +64 -0
  1472. package/dist/sign/components/ui/resizable.d.ts +38 -0
  1473. package/dist/sign/components/ui/rich-text-editor.d.ts +58 -0
  1474. package/dist/sign/components/ui/scroll-area.d.ts +40 -0
  1475. package/dist/sign/components/ui/select.d.ts +94 -0
  1476. package/dist/sign/components/ui/separator.d.ts +17 -0
  1477. package/dist/sign/components/ui/sheet.d.ts +108 -0
  1478. package/dist/sign/components/ui/sidebar.d.ts +269 -0
  1479. package/dist/sign/components/ui/skeleton-variants.d.ts +41 -0
  1480. package/dist/sign/components/ui/skeleton.d.ts +14 -0
  1481. package/dist/sign/components/ui/slider.d.ts +9 -0
  1482. package/dist/sign/components/ui/sonner.d.ts +8 -0
  1483. package/dist/sign/components/ui/spinner.d.ts +11 -0
  1484. package/dist/sign/components/ui/split-button.d.ts +76 -0
  1485. package/dist/sign/components/ui/stack.d.ts +17 -0
  1486. package/dist/sign/components/ui/status-badge.d.ts +52 -0
  1487. package/dist/sign/components/ui/step-selector.d.ts +46 -0
  1488. package/dist/sign/components/ui/stimulsoft-viewer.d.ts +28 -0
  1489. package/dist/sign/components/ui/switch.d.ts +25 -0
  1490. package/dist/sign/components/ui/tab-page-layout.d.ts +52 -0
  1491. package/dist/sign/components/ui/table-resize-handle.d.ts +22 -0
  1492. package/dist/sign/components/ui/table.d.ts +112 -0
  1493. package/dist/sign/components/ui/tabs.d.ts +66 -0
  1494. package/dist/sign/components/ui/terms-of-use-dialog.d.ts +102 -0
  1495. package/dist/sign/components/ui/textarea.d.ts +33 -0
  1496. package/dist/sign/components/ui/timepicker.d.ts +34 -0
  1497. package/dist/sign/components/ui/toggle-group.d.ts +37 -0
  1498. package/dist/sign/components/ui/toggle.d.ts +33 -0
  1499. package/dist/sign/components/ui/tooltip.d.ts +61 -0
  1500. package/dist/sign/components/ui/truncated-cell.d.ts +20 -0
  1501. package/dist/sign/components/ui/typography.d.ts +135 -0
  1502. package/dist/sign/components/ui/updates-notification.d.ts +47 -0
  1503. package/dist/sign/components/ui/users-groups-selector.d.ts +87 -0
  1504. package/dist/sign/components/ui/viewer-dialog.d.ts +184 -0
  1505. package/dist/sign/config/backend.d.ts +10 -0
  1506. package/dist/sign/config/environments.d.ts +12 -0
  1507. package/dist/sign/config/index.d.ts +75 -0
  1508. package/dist/sign/contexts/LocaleContext.d.ts +15 -0
  1509. package/dist/sign/contexts/ModalStateContext.d.ts +57 -0
  1510. package/dist/sign/contexts/ModuleContext.d.ts +34 -0
  1511. package/dist/sign/contexts/NavigationContext.d.ts +13 -0
  1512. package/dist/sign/contexts/PageMetadataContext.d.ts +48 -0
  1513. package/dist/sign/crud/components/ActionMenuItems.d.ts +22 -0
  1514. package/dist/sign/crud/components/BaseForm.d.ts +52 -0
  1515. package/dist/sign/crud/components/ColumnSettingsPopover.d.ts +28 -0
  1516. package/dist/sign/crud/components/ContextMenu.d.ts +21 -0
  1517. package/dist/sign/crud/components/CrudActionBar.d.ts +59 -0
  1518. package/dist/sign/crud/components/CrudGrid.d.ts +53 -0
  1519. package/dist/sign/crud/components/CrudPagination.d.ts +17 -0
  1520. package/dist/sign/crud/components/CrudTable.d.ts +66 -0
  1521. package/dist/sign/crud/components/FilterBar.d.ts +136 -0
  1522. package/dist/sign/crud/components/GroupDropZone.d.ts +16 -0
  1523. package/dist/sign/crud/components/InlineRowActions.d.ts +15 -0
  1524. package/dist/sign/crud/components/SelectionCheckbox.d.ts +9 -0
  1525. package/dist/sign/crud/components/TableFooter.d.ts +14 -0
  1526. package/dist/sign/crud/components/TableRowActions.d.ts +19 -0
  1527. package/dist/sign/crud/createCrudPage.d.ts +134 -0
  1528. package/dist/sign/crud/createSimpleService.d.ts +85 -0
  1529. package/dist/sign/crud/generateCrudConfig.d.ts +78 -0
  1530. package/dist/sign/crud/hooks/useBaseForm.d.ts +47 -0
  1531. package/dist/sign/crud/hooks/useColumnDragReorder.d.ts +19 -0
  1532. package/dist/sign/crud/hooks/useColumnManager.d.ts +85 -0
  1533. package/dist/sign/crud/hooks/useCrud.d.ts +152 -0
  1534. package/dist/sign/crud/primitives/ActionMenu.d.ts +69 -0
  1535. package/dist/sign/crud/primitives/FilterBar.d.ts +69 -0
  1536. package/dist/sign/crud/primitives/Pagination.d.ts +29 -0
  1537. package/dist/sign/crud/primitives/Table.d.ts +31 -0
  1538. package/dist/sign/crud/primitives/TreeTable.d.ts +7 -0
  1539. package/dist/sign/crud/primitives/index.d.ts +12 -0
  1540. package/dist/sign/crud/primitives/types.d.ts +199 -0
  1541. package/dist/sign/crud/utils/routingHelpers.d.ts +41 -0
  1542. package/dist/sign/custom-form-fields/components/CustomFormFields.d.ts +11 -0
  1543. package/dist/sign/custom-form-fields/fields/FormDateField.d.ts +9 -0
  1544. package/dist/sign/custom-form-fields/fields/FormMultiSelectionField.d.ts +9 -0
  1545. package/dist/sign/custom-form-fields/fields/FormNumericField.d.ts +9 -0
  1546. package/dist/sign/custom-form-fields/fields/FormQuestionsField.d.ts +9 -0
  1547. package/dist/sign/custom-form-fields/fields/FormSingleSelectionField.d.ts +9 -0
  1548. package/dist/sign/custom-form-fields/fields/FormTextField.d.ts +9 -0
  1549. package/dist/sign/custom-form-fields/fields/FormTimeField.d.ts +9 -0
  1550. package/dist/sign/custom-form-fields/fields/FormUrlField.d.ts +9 -0
  1551. package/dist/sign/custom-form-fields/fields/ReadOnlyTextField.d.ts +9 -0
  1552. package/dist/sign/custom-form-fields/index.d.ts +13 -0
  1553. package/dist/sign/custom-form-fields/types.d.ts +206 -0
  1554. package/dist/sign/exports/action-plans.d.ts +16 -0
  1555. package/dist/sign/exports/audit-trail.d.ts +1 -0
  1556. package/dist/sign/exports/crud.d.ts +31 -0
  1557. package/dist/sign/exports/custom-form-fields.d.ts +1 -0
  1558. package/dist/sign/exports/file-upload.d.ts +1 -0
  1559. package/dist/sign/exports/integrations.d.ts +15 -0
  1560. package/dist/sign/exports/ui.d.ts +98 -0
  1561. package/dist/sign/file-upload/components/SingleFileUpload.d.ts +102 -0
  1562. package/dist/sign/file-upload/index.d.ts +6 -0
  1563. package/dist/sign/file-upload/types.d.ts +26 -0
  1564. package/dist/sign/file-upload/utils/formatBytes.d.ts +6 -0
  1565. package/dist/sign/file-upload/utils/getFileExtension.d.ts +6 -0
  1566. package/dist/sign/hooks/useActiveModules.d.ts +45 -0
  1567. package/dist/sign/hooks/useAliasFromUrl.d.ts +33 -0
  1568. package/dist/sign/hooks/useColumnResize.d.ts +45 -0
  1569. package/dist/sign/hooks/useDebounce.d.ts +56 -0
  1570. package/dist/sign/hooks/useDerivedContractedModules.d.ts +8 -0
  1571. package/dist/sign/hooks/useI18nFormatters.d.ts +40 -0
  1572. package/dist/sign/hooks/useMediaQuery.d.ts +14 -0
  1573. package/dist/sign/hooks/useModuleAccess.d.ts +59 -0
  1574. package/dist/sign/hooks/usePageTitle.d.ts +10 -0
  1575. package/dist/sign/hooks/usePermissionQuery.d.ts +49 -0
  1576. package/dist/sign/hooks/useRowResize.d.ts +37 -0
  1577. package/dist/sign/hooks/useSidebarResize.d.ts +37 -0
  1578. package/dist/sign/hooks/useUpdatesNotification.d.ts +27 -0
  1579. package/dist/sign/hooks/useWizard.d.ts +40 -0
  1580. package/dist/sign/i18n/config.d.ts +13 -0
  1581. package/dist/sign/i18n/constants.d.ts +126 -0
  1582. package/dist/sign/i18n/index.d.ts +11 -0
  1583. package/dist/sign/i18n/utils.d.ts +14 -0
  1584. package/dist/sign/index.d.ts +104 -8
  1585. package/dist/sign/index.esm.js +1 -0
  1586. package/dist/sign/index.js +1 -0
  1587. package/dist/sign/integrations/clarity/clarityTracking.d.ts +31 -0
  1588. package/dist/sign/integrations/clarity/index.d.ts +3 -0
  1589. package/dist/sign/integrations/clarity/types.d.ts +46 -0
  1590. package/dist/sign/integrations/clarity/useClarity.d.ts +34 -0
  1591. package/dist/sign/integrations/index.d.ts +5 -0
  1592. package/dist/sign/leadership/components/LeadershipDialog.d.ts +10 -0
  1593. package/dist/sign/leadership/components/LeadershipForm.d.ts +8 -0
  1594. package/dist/sign/leadership/components/LeadershipPage.d.ts +19 -0
  1595. package/dist/sign/leadership/hooks/useLeadershipApi.d.ts +4 -0
  1596. package/dist/sign/leadership/hooks/useLeadershipMutations.d.ts +29 -0
  1597. package/dist/sign/leadership/index.d.ts +13 -0
  1598. package/dist/sign/leadership/types.d.ts +23 -0
  1599. package/dist/sign/leadership/utils/leadershipUtils.d.ts +8 -0
  1600. package/dist/sign/media/components/ImageEditor.d.ts +22 -0
  1601. package/dist/sign/media/components/ImageRenderer.d.ts +23 -0
  1602. package/dist/sign/media/components/VideoEditor.d.ts +2 -0
  1603. package/dist/sign/media/components/VideoRenderer.d.ts +2 -0
  1604. package/dist/sign/media/hooks/useMediaUpload.d.ts +19 -0
  1605. package/dist/sign/media/index.d.ts +49 -0
  1606. package/dist/sign/media/types.d.ts +66 -0
  1607. package/dist/sign/media/utils/imageHelpers.d.ts +28 -0
  1608. package/dist/sign/media/utils/videoHelpers.d.ts +35 -0
  1609. package/dist/sign/mind-map/components/MindMap.d.ts +23 -0
  1610. package/dist/sign/mind-map/components/MindMapConnection.d.ts +12 -0
  1611. package/dist/sign/mind-map/components/MindMapNodeView.d.ts +24 -0
  1612. package/dist/sign/mind-map/components/MindMapToolbar.d.ts +26 -0
  1613. package/dist/sign/mind-map/hooks/useMindMapKeyboard.d.ts +15 -0
  1614. package/dist/sign/mind-map/hooks/useMindMapLayout.d.ts +5 -0
  1615. package/dist/sign/mind-map/hooks/useMindMapPanZoom.d.ts +21 -0
  1616. package/dist/sign/mind-map/hooks/useMindMapState.d.ts +32 -0
  1617. package/dist/sign/mind-map/index.d.ts +4 -0
  1618. package/dist/sign/mind-map/types.d.ts +91 -0
  1619. package/dist/sign/mind-map/utils/export-image.d.ts +9 -0
  1620. package/dist/sign/mind-map/utils/layout.d.ts +15 -0
  1621. package/dist/sign/mind-map/utils/nodeOps.d.ts +66 -0
  1622. package/dist/sign/mind-map/utils/serialize.d.ts +10 -0
  1623. package/dist/sign/modules/softwaresMap.d.ts +4 -0
  1624. package/dist/sign/places/components/ManageAccessModal.d.ts +11 -0
  1625. package/dist/sign/places/components/PlaceCard.d.ts +12 -0
  1626. package/dist/sign/places/components/PlacesList.d.ts +12 -0
  1627. package/dist/sign/places/index.d.ts +8 -0
  1628. package/dist/sign/places/services/PlaceService.d.ts +9 -0
  1629. package/dist/sign/places/types.d.ts +10 -0
  1630. package/dist/sign/providers/CoreProviders.d.ts +107 -0
  1631. package/dist/sign/providers/index.d.ts +2 -0
  1632. package/dist/sign/qualiex/components/QualiexUserField.d.ts +133 -0
  1633. package/dist/sign/qualiex/hooks/useQualiexUsers.d.ts +41 -0
  1634. package/dist/sign/qualiex/services/qualiexApi.d.ts +75 -0
  1635. package/dist/sign/qualiex/utils/QualiexErrorInterceptor.d.ts +20 -0
  1636. package/dist/sign/qualiex/utils/userPlaceUtils.d.ts +16 -0
  1637. package/dist/sign/services/BaseService.d.ts +51 -0
  1638. package/dist/sign/services/EmailService.d.ts +110 -0
  1639. package/dist/sign/services/ErrorService.d.ts +19 -0
  1640. package/dist/sign/services/QualiexEnrichmentService.d.ts +53 -0
  1641. package/dist/sign/services/QualiexFieldHelpers.d.ts +17 -0
  1642. package/dist/sign/setup/favicon.d.ts +1 -0
  1643. package/dist/sign/setup.d.ts +16 -0
  1644. package/dist/sign/sign/components/D4SignWidget.d.ts +2 -0
  1645. package/dist/sign/sign/components/DocumentSigner.d.ts +2 -0
  1646. package/dist/sign/sign/components/SignConfigForm.d.ts +2 -0
  1647. package/dist/sign/sign/components/SignWidget.d.ts +9 -0
  1648. package/dist/sign/sign/hooks/useSignConfig.d.ts +6 -0
  1649. package/dist/sign/sign/index.d.ts +8 -0
  1650. package/dist/sign/sign/services/signService.d.ts +17 -0
  1651. package/dist/sign/sign/types.d.ts +53 -0
  1652. package/dist/sign/sign/utils/loadClicksignScript.d.ts +13 -0
  1653. package/dist/sign/supabase/SupabaseSingleton.d.ts +34 -0
  1654. package/dist/sign/supabase/client.d.ts +2 -0
  1655. package/dist/sign/supabase/legacyKeyGuard.d.ts +19 -0
  1656. package/dist/sign/supabase/publicClient.d.ts +2 -0
  1657. package/dist/sign/supabase/types.d.ts +377 -0
  1658. package/dist/sign/team-selector/components/TeamSelector.d.ts +24 -0
  1659. package/dist/sign/team-selector/index.d.ts +2 -0
  1660. package/dist/sign/team-selector/types.d.ts +10 -0
  1661. package/dist/sign/types/sidebar.d.ts +52 -0
  1662. package/dist/sign/types.d.ts +596 -46
  1663. package/dist/sign/utils/color.d.ts +26 -0
  1664. package/dist/sign/utils/formatters/currencyFormatters.d.ts +1 -0
  1665. package/dist/sign/utils/formatters/dateFormatters.d.ts +52 -0
  1666. package/dist/sign/utils/index.d.ts +9 -0
  1667. package/dist/sign/utils/linkHelpers.d.ts +9 -0
  1668. package/dist/sign/utils/load-fonts.d.ts +1 -0
  1669. package/dist/supabase/SupabaseSingleton.d.ts +19 -22
  1670. package/docs/PUBLISH.md +18 -6
  1671. package/docs/WORKSPACE_KNOWLEDGE.md +34 -1
  1672. package/docs/design-system/patterns/core-providers.md +29 -1
  1673. package/package.json +26 -1
  1674. package/dist/README.md +0 -1079
  1675. package/dist/bin/bootstrap.js +0 -40
  1676. package/dist/bin/pull-docs.js +0 -186
  1677. package/dist/docs/KNOWLEDGE.md +0 -109
@@ -0,0 +1 @@
1
+ "use strict";var e=require("i18next"),a=require("react"),t=require("@tanstack/react-query"),r=require("react/jsx-runtime"),s=require("@supabase/supabase-js"),n=require("sonner"),o=require("react-i18next"),i=require("lucide-react"),l=require("@radix-ui/react-slot"),d=require("class-variance-authority"),c=require("clsx"),u=require("tailwind-merge");require("date-fns");var m=require("@radix-ui/react-checkbox"),h=require("@radix-ui/react-hover-card"),p=require("@radix-ui/react-dialog"),f=require("@radix-ui/react-separator"),g=require("@radix-ui/react-alert-dialog"),x=require("zod"),y=require("react-hook-form"),v=require("@hookform/resolvers"),w=require("@radix-ui/react-label"),b=require("@radix-ui/react-scroll-area"),_=require("@radix-ui/react-select");function N(e){var a=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}}),a.default=e,Object.freeze(a)}var k=N(a),j=N(m),S=N(h),C=N(p),E=N(f),A=N(g),I=N(w),T=N(b),D=N(_);function U(e){const a=new Map,t=new Map,r=[];e.forEach(e=>{const r={...e,children:[],level:0};a.set(e.id,r),t.set(e.id_user,r)}),e.forEach(e=>{const s=a.get(e.id);if(e.id_leader){const a=t.get(e.id_leader);if(a)return void a.children.push(s)}r.push(s)});const s=(e,a)=>{e.level=a,e.children.forEach(e=>s(e,a+1))};r.forEach(e=>s(e,0));const n=e=>{e.sort((e,a)=>{const t=e.name||e.id_user||e.email||"",r=a.name||a.id_user||a.email||"";return t.localeCompare(r)}),e.forEach(e=>e.children.length>0&&n(e.children))};return n(r),r}function R(e){const a=[],t=e=>{a.push(e),e.children.forEach(t)};return e.forEach(t),a}class P{static normalizeBase64Url(e){let a=e.replace(/-/g,"+").replace(/_/g,"/");const t=(4-a.length%4)%4;return a+="=".repeat(t),a}static parseJwtPayload(e){try{const s=e.split(".");if(3!==s.length)return null;const n=s[1];n.length,this.LARGE_PAYLOAD_THRESHOLD;try{const e=this.normalizeBase64Url(n),a=atob(e),t=new Uint8Array(a.length);for(let s=0;s<a.length;s++)t[s]=a.charCodeAt(s);const r=new TextDecoder("utf-8").decode(t);return JSON.parse(r)}catch(a){try{const e=this.normalizeBase64Url(n),a=decodeURIComponent(atob(e).split("").map(e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(a)}catch(t){try{const e=this.normalizeBase64Url(n),a=atob(e);return JSON.parse(a)}catch(r){throw r}}}}catch(s){return null}}static validateTokens(e,a){const t=[],r=[];try{a.split(".")[1],e.split(".")[1];const s=this.parseJwtPayload(a),n=this.parseJwtPayload(e);if(!s){const e="ID token decode falhou - possível problema com base64url encoding";return r.push(e),{isValid:!1,idTokenValid:!1,accessTokenValid:!1,warnings:t,errors:r}}let o=!0;if(!n){const e="Access token decode falhou - será tentado novamente nas chamadas de API";t.push(e),o=!1}const i=Math.floor(Date.now()/1e3);if(n?.exp&&n.exp<i){const e="Access token expirado - pode precisar de refresh";t.push(e),o=!1}if(s.exp&&s.exp<i){const e="ID token expirado - autenticação inválida";return r.push(e),{isValid:!1,idTokenValid:!1,accessTokenValid:o,warnings:t,errors:r}}return{isValid:!0,idTokenValid:!0,accessTokenValid:o,warnings:t,errors:r}}catch(s){const e=`Erro na validação de tokens: ${s}`;return r.push(e),{isValid:!1,idTokenValid:!1,accessTokenValid:!1,warnings:t,errors:r}}}static isTokenExpired(e){const a=this.parseJwtPayload(e);return!a||!a.exp||1e3*a.exp<Date.now()}}P.LARGE_PAYLOAD_THRESHOLD=1e3;const L="qualiex_access_token",V="qualiex_id_token",q="supabase_token",O="oauth_state",z="oauth_nonce",M="selected_alias",B="manual_logout",$="supabase_project_id",F={setAccessToken:e=>localStorage.setItem(L,e),getAccessToken:()=>localStorage.getItem(L),setIdToken:e=>localStorage.setItem(V,e),getIdToken:()=>localStorage.getItem(V),getSupabaseToken:()=>localStorage.getItem(q),setOAuthState:e=>sessionStorage.setItem(O,e),getOAuthState:()=>sessionStorage.getItem(O),clearOAuthState:()=>sessionStorage.removeItem(O),setOAuthNonce:e=>sessionStorage.setItem(z,e),getOAuthNonce:()=>sessionStorage.getItem(z),clearOAuthNonce:()=>sessionStorage.removeItem(z),setSelectedAlias:e=>localStorage.setItem(M,e),getSelectedAlias:()=>localStorage.getItem(M),clearSelectedAlias:()=>localStorage.removeItem(M),generateOAuthNonce:()=>{const e=new Uint8Array(32);return crypto.getRandomValues(e),btoa(String.fromCharCode(...e)).replace(/[+/=]/g,"")},hasAllTokens:()=>!(!F.getAccessToken()||!F.getIdToken()),checkProjectMismatch:()=>{const e=(void 0).VITE_SUPABASE_PROJECT_ID;if(!e)return!1;const a=localStorage.getItem($);return a&&a!==e?(F.clearAll(),localStorage.setItem($,e),!0):(a||localStorage.setItem($,e),!1)},setSupabaseToken:e=>{localStorage.setItem(q,e),F._clearValidationCache()},areAllTokensValid:()=>{const e=F.getAccessToken(),a=F.getIdToken();if(!e||!a)return!1;try{const t=P.validateTokens(e,a);return!!t.idTokenValid&&t.idTokenValid}catch(t){return!1}},clearExpiredTokens:()=>{let e=!1;const a=F.getAccessToken(),t=F.getIdToken(),r=F.getSupabaseToken();return a&&F.isTokenExpired(a)&&(localStorage.removeItem(L),e=!0),t&&F.isTokenExpired(t)&&(localStorage.removeItem(V),e=!0),r&&F.isTokenExpired(r)&&(localStorage.removeItem(q),e=!0),e},clearAll:()=>{localStorage.removeItem(L),localStorage.removeItem(V),localStorage.removeItem(q),localStorage.removeItem(M),localStorage.removeItem(B),sessionStorage.removeItem(O),sessionStorage.removeItem(z),F._clearValidationCache()},setManualLogout:()=>localStorage.setItem(B,"true"),isManualLogout:()=>"true"===localStorage.getItem(B),clearManualLogout:()=>localStorage.removeItem(B),isTokenExpired:e=>{try{return P.isTokenExpired(e)}catch{return!0}},_validationCache:{isValid:!1,timestamp:0,cacheValidityMs:3e5},_clearValidationCache:()=>{F._validationCache.isValid=!1,F._validationCache.timestamp=0},isSupabaseTokenValid:()=>{const e=F.getSupabaseToken();if(!e)return!1;if(F.isTokenExpired(e))return F._clearValidationCache(),F._handleExpiredToken(),!1;const a=Date.now();return a-F._validationCache.timestamp<F._validationCache.cacheValidityMs?F._validationCache.isValid:(F._validationCache.isValid=!0,F._validationCache.timestamp=a,!0)},getValidSupabaseToken:()=>F.isSupabaseTokenValid()?F.getSupabaseToken():null,_handleExpiredToken:()=>{F.clearAll()},extractTokenData:()=>{if(!F.isSupabaseTokenValid())return null;const e=F.getSupabaseToken();if(!e)return null;try{const a=P.parseJwtPayload(e);if(!a)return null;const t=a.alias||a.default||a.user_alias,r=a.place_id||null,s=a.place_name||null;let n=a.company_id;if(!n&&t)for(const e in a)if(e.startsWith("co")&&/^co\d+$/.test(e)){const r=a[e];if(r&&"string"==typeof r){const e=r.split(";");if(e.length>7&&e[0]===t){n=e[7];break}}}return{alias:t,companyId:n,placeId:r,placeName:s,payload:a}}catch(a){return F._handleExpiredToken(),null}},getCompanyId:e=>{const a=F.getAccessToken();if(a)try{const t=P.parseJwtPayload(a);if(t)for(const a in t)if(a.startsWith("co")&&/^co\d+$/.test(a)){const r=t[a];if(r&&"string"==typeof r){const a=r.split(";");if(e&&a.length>7&&a[0]===e)return a[7];if(!e&&a.length>7)return a[7]}}}catch(s){}const t=F.extractTokenData();if(t?.companyId)return t.companyId;const r=F.getIdToken();if(r)try{const a=P.parseJwtPayload(r);if(a)for(const t in a)if(t.startsWith("co")&&/^co\d+$/.test(t)){const r=a[t];if(r&&"string"==typeof r){const a=r.split(";");if(e&&a.length>7&&a[0]===e)return a[7];if(!e&&a.length>7)return a[7]}}}catch(s){}return null},getCompanyIdInt:e=>{const a=[F.getAccessToken(),F.getIdToken()];for(const t of a)if(t)try{const a=P.parseJwtPayload(t);if(!a)continue;for(const t in a)if(t.startsWith("co")&&/^co\d+$/.test(t)){const r=a[t];if(r&&"string"==typeof r){const a=r.split(";");if(e&&a.length>1&&a[0]===e)return a[1];if(!e&&a.length>1)return a[1]}}}catch{}return null},getCurrentCompanyId:()=>{const e=F.extractTokenData();return e?.companyId||null},getAllCompaniesData:()=>{const e=F.getIdToken();if(!e)return[];try{const a=P.parseJwtPayload(e);if(!a)return[];const t=[];for(const e in a)if(e.startsWith("co")&&/^co\d+$/.test(e)){const r=a[e];if(r&&"string"==typeof r){const e=r.split(";");e.length>=4&&t.push({id:e.length>7?e[7]:"",alias:e[0].trim(),name:e[3].trim(),payload:a})}}return t}catch{return[]}}},H={storageProjectId:"ccjfvpnndclajkleyqkc",oauth:{authUrl:"https://login.qualiex.com/oauth2/authorize",clientId:"ae6021a0-e874-4aab-9716-b478e59cec20"},qualiexApiUrl:"https://common-v4-api.qualiex.com"},W={storageProjectId:"ccjfvpnndclajkleyqkc",oauth:{authUrl:"https://login-dev.qualiex.com/oauth2/authorize",clientId:"ae6021a0-e874-4aab-9716-b478e59cec20"},qualiexApiUrl:"https://common-v4-api-dev.qualiex.com"};function Q(){let e=(void 0).VITE_SUPABASE_PROJECT_ID;if(!e)try{const a=(void 0).VITE_SUPABASE_URL;a&&(e=new URL(a).hostname.split(".")[0])}catch{}return"ccjfvpnndclajkleyqkc"===e?H:W}const J={get oauth(){const e=Q();return{authUrl:e.oauth.authUrl,clientId:e.oauth.clientId,responseType:"id_token token",scope:"openid profile email"}}};(void 0).VITE_IS_QUALIEX;const K=new class{constructor(){this.errors=[],this.toastCount=0,this.lastToastTime=0}handleError(e,a=!0){const t="string"==typeof e?e:e.message;if(this.errors.push({id:Date.now().toString(),message:t,timestamp:Date.now(),count:1}),this.errors.length>50&&(this.errors=this.errors.slice(-50)),a&&this.shouldShowToast()){const e=this.getErrorTitle(t);n.toast.error(e,{description:t})}}getErrorTitle(a){const t=a.toLowerCase();return t.includes("401")||t.includes("unauthorized")||t.includes("expirou")?e.t("error_session_expired"):t.includes("token")||t.includes("autenticação")?e.t("error_authentication"):t.includes("api")||t.includes("network")?e.t("error_connection"):"Erro"}success(e,a){n.toast.success(e,{description:a})}shouldShowToast(){const e=Date.now();return e-this.lastToastTime>6e4&&(this.toastCount=0),this.toastCount<3&&(this.toastCount++,this.lastToastTime=e,!0)}getErrors(){return this.errors.slice(-50)}clearErrors(){this.errors=[]}};["[forlogic-core] ⚠️ VITE_SUPABASE_PUBLISHABLE_KEY contém uma legacy anon key (JWT).","O Supabase desativou legacy API keys. Substitua pela nova publishable key (formato sb_publishable_*).","Todas as requests retornarão 401 Unauthorized.","Causa provável: a integração Supabase do Lovable sobrescreveu o .env com a anon key legada.","Solução: defina VITE_SUPABASE_PK_OVERRIDE no .env com a publishable key correta."].join(" ");function Y(e){return!!e&&e.startsWith("eyJ")}function G(){const e=(void 0).VITE_SUPABASE_PK_OVERRIDE;return e||((void 0).VITE_SUPABASE_PUBLISHABLE_KEY??"")}let X=!1;class Z{constructor(e){this.currentToken=null,this.config=e,function(){const e=(void 0).VITE_SUPABASE_PK_OVERRIDE,a=(void 0).VITE_SUPABASE_PUBLISHABLE_KEY;X?Y(a):e&&Y(a)?X=!0:Y(a)?X=!0:X=!0}(),this.client=this.createClientWithToken(null)}createClientWithToken(e){const a={apikey:this.config.key};e&&this.isTokenValid(e)&&(a.Authorization=`Bearer ${e}`);return s.createClient(this.config.url,this.config.key,{auth:{persistSession:!1,autoRefreshToken:!1,detectSessionInUrl:!1,storage:void 0},global:{headers:a,fetch:async(e,a)=>("string"==typeof e?e:e.url).includes("/auth/v1/user")?new Response(JSON.stringify({error:"blocked"}),{status:401,headers:{"Content-Type":"application/json"}}):fetch(e,a)}})}static getInstance(){if(!Z.instance){const e=function(){const e=(void 0).VITE_SUPABASE_URL,a=G();return e&&a?{url:e,key:a}:null}();if(!e)throw new Error("[forlogic-core] Supabase não configurado. Defina VITE_SUPABASE_URL e VITE_SUPABASE_PUBLISHABLE_KEY no .env, ou não invoque getSupabaseClient() (use isSupabaseConfigured() para checar antes).");Z.instance=new Z(e)}return Z.instance}getClient(){const e=F.getValidSupabaseToken();return e!==this.currentToken&&(this.client=this.createClientWithToken(e),this.currentToken=e),this.client}isTokenValid(e){try{return!P.isTokenExpired(e)}catch(a){return K.handleError(a instanceof Error?a:"Supabase - Error validating token",!1),!1}}}function ee(){return Z.getInstance().getClient()}class ae{static async generateToken(e,a,t,r=!1){try{if(!r){const e=F.getSupabaseToken();if(e&&F.isSupabaseTokenValid())return e}const s=ee(),{data:n,error:o}=await s.functions.invoke("validate-token",{body:{access_token:e,alias:a}});return o&&(o.message?.includes("401")||o.message?.includes("Unauthorized"))?(t?.(),null):n?.access_token?(F.setSupabaseToken(n.access_token),n.access_token):null}catch(s){return s instanceof Error&&(s.message.includes("401")||s.message.includes("Unauthorized"))&&t?.(),null}}}class te{static setLogoutCallback(e){this.onLogoutCallback=e}static async attemptRegeneration(e=!1){if(this.regenerationPromise)return this.regenerationPromise;this.regenerationPromise=this._doRegenerate(e);try{return await this.regenerationPromise}finally{this.regenerationPromise=null}}static async _doRegenerate(e=!1){try{const a=F.getAccessToken(),t=F.getSelectedAlias();if(!a||!t)return null;const r=await ae.generateToken(a,t,this.onLogoutCallback||void 0,e);return r||null}catch(a){return null}}}te.regenerationPromise=null,te.onLogoutCallback=null;var re;const se={isAuthenticated:!1,isLoading:!1,user:null,alias:null,companies:[],selectedUnit:null,userId:null,userAlias:null,placeId:null,placeName:null,activePlaceId:null,activePlaceName:null};re=class{static async initialize(){try{const e=!0;if(e){if(F.checkProjectMismatch())return{...se}}if(!F.hasAllTokens()||!F.areAllTokensValid())return F.clearExpiredTokens(),{...se};const a=F.getAccessToken(),t=F.getIdToken();F.clearManualLogout();const r=this.extractUserFromIdToken(t,a),s=this.extractCompaniesFromIdToken(t),n=this.extractAliasFromAccessToken(a),o=e?F.extractTokenData():null,i=o?.alias;let l=null;if(i&&s.some(e=>e.alias===i))l=i;else{const e=F.getSelectedAlias(),a=e&&s.some(a=>a.alias===e);l=a?e:n||s[0]?.alias||null}if(e&&(!F.isSupabaseTokenValid()&&l&&await te.attemptRegeneration(),!F.isSupabaseTokenValid()))return{...se};let d=null;if(l){const e=F.getCompanyId(l),a=s.find(e=>e.alias===l);a&&(d={id:e||a.id,name:a.name,alias:a.alias})}const c=o?.placeId??null,u=o?.placeName??null;return{isAuthenticated:!0,isLoading:!1,user:r,alias:l,companies:s,selectedUnit:d,userId:r?.id||null,userAlias:r?.id||null,placeId:c,placeName:u,activePlaceId:c,activePlaceName:u}}catch(e){return{...se}}}static async loginDev(){try{const e=ee(),{data:a,error:t}=await e.functions.invoke("dev-tokens",{body:{environment:"development"}});if(t)return!1;if(!a?.access_token||!a?.id_token)return!1;const r=new URL("/callback",window.location.origin);return r.hash=`access_token=${a.access_token}&id_token=${a.id_token}&token_type=bearer`,window.location.href=r.toString(),!0}catch(e){return!1}}static loginProd(){const e="Lw==";F.setOAuthState(e);const a=F.generateOAuthNonce();F.setOAuthNonce(a);const t=`${window.location.origin}/callback`,r=new URL(J.oauth.authUrl);r.searchParams.set("client_id",J.oauth.clientId),r.searchParams.set("response_type",J.oauth.responseType),r.searchParams.set("scope",J.oauth.scope),r.searchParams.set("redirect_uri",t),r.searchParams.set("state",e),r.searchParams.set("nonce",a),r.searchParams.set("response_mode","fragment"),window.location.href=r.toString()}static async processCallback(){try{const e=new URLSearchParams(window.location.hash.startsWith("#")?window.location.hash.substring(1):window.location.hash),a=new URLSearchParams(window.location.search),t=t=>e.get(t)||a.get(t),r=t("access_token"),s=t("id_token"),n=t("error");if(n)throw new Error(`Erro OAuth: ${n}`);if(r&&s){const e=F.getAccessToken();e!==r&&F.clearAll()}const o=!0;if(F.hasAllTokens()){if(o){F.getValidSupabaseToken()||await te.attemptRegeneration(!0)}return!0}const i=r,l=s;if(!i||!l)throw new Error("Tokens não encontrados na URL de callback");F.setAccessToken(i),F.setIdToken(l),F.clearManualLogout();const d=this.extractAliasFromAccessToken(i);if(d)F.setSelectedAlias(d);else{const e=this.extractCompaniesFromIdToken(l);if(0===e.length)throw new Error("Nenhuma empresa encontrada nos tokens");F.setSelectedAlias(e[0].alias)}if(o){if(!await te.attemptRegeneration(!0))throw new Error("Falha ao gerar token Supabase")}return F.clearOAuthState(),F.clearOAuthNonce(),!0}catch(e){throw e}}static async logout(){F.setManualLogout(),F.clearAll(),localStorage.removeItem("auth_return_url"),sessionStorage.clear();try{if("caches"in window){const e=await caches.keys();await Promise.all(e.map(e=>caches.delete(e)))}}catch{}window.location.href="/login"}static decodeToken(e){return P.parseJwtPayload(e)}static extractUserFromIdToken(e,a){const t=this.decodeToken(e);if(!t)return null;const r=a?this.decodeToken(a):null;return{id:t.subNewId,email:t.email,name:t.name,identifier:t.identifier,isSysAdmin:"1"===r?.admin}}static extractCompaniesFromIdToken(e){const a=this.decodeToken(e);if(!a)return[];const t=[];return Object.keys(a).forEach(e=>{if(e.match(/^co(\d+)$/)&&"string"==typeof a[e]){const r=a[e].split(";");if(r.length>=4)t.push({id:r.length>7?r[7].trim():"",alias:r[0].trim(),name:r[3].trim()});else{const[r,s]=a[e].split("|");r&&s&&t.push({id:"",alias:r.trim(),name:s.trim()})}}}),t}static extractAliasFromAccessToken(e){const a=this.decodeToken(e);return a?.default||null}},te.setLogoutCallback(()=>{re.logout()});class ne{static handleError(e){if(!e)return!1;const a=e.message||e.toString();return!!this.isAuthenticationError(e,a)&&(F.clearAll(),window.location.href="/login",!0)}static isAuthenticationError(e,a){if(401===e.status||401===e.statusCode)return!0;const t=a.toLowerCase();return["401","unauthorized","token expired","invalid token","session expired","jwt expired","authentication failed","not authenticated"].some(e=>t.includes(e))}static async wrapAsync(e){try{return await e}catch(a){if(!this.handleError(a))throw a;throw new Error("Sua sessão expirou. Você será redirecionado para fazer login novamente.")}}}class oe{static async handleApiError(e){if(!e||this.isRetrying)return!1;const a=e.status||e.statusCode,t=e.message||e.toString();if(401===a||t.includes("401")||t.includes("Unauthorized")){this.isRetrying=!0;try{return await te.attemptRegeneration()?(this.isRetrying=!1,!0):(ne.handleError(e),this.isRetrying=!1,!1)}catch(r){return ne.handleError(e),this.isRetrying=!1,!1}}return!1}static validateToken(){const e=F.getAccessToken();return e?F.isTokenExpired(e)?{valid:!1,message:"Sua sessão expirou. Você será redirecionado para fazer login."}:{valid:!0}:{valid:!1,message:"Token OAuth não encontrado. Faça login novamente."}}}oe.isRetrying=!1;const ie=new class{get baseUrl(){return Q().qualiexApiUrl}async makeApiCall(e,a,t){const r=oe.validateToken();if(!r.valid)throw new Error(r.message||"Token inválido");const s=F.getAccessToken();if(!s)throw new Error("Token Qualiex não encontrado");if(!t||""===t.trim())throw new Error("Alias da unidade é obrigatório para chamadas à API do Qualiex");const n=new URL(e,this.baseUrl);Object.entries(a).forEach(([e,a])=>{n.searchParams.append(e,a)});const o=await fetch(n.toString(),{method:"GET",headers:{Authorization:`Bearer ${s}`,"Content-Type":"application/json",Accept:"application/json","un-alias":t}});if(!o.ok){const e=new Error(`API call failed: ${o.status} ${o.statusText}`);throw e.status=o.status,e.statusCode=o.status,e}return await o.json()}mapToQualiexUser(e){let a;return a="boolean"==typeof e.isActive?e.isActive:"boolean"==typeof e.active?e.active:"string"!=typeof e.status||"active"===e.status.toLowerCase(),{id:e.id||e.ID||"",userId:e.userId||String(e.ID),userName:e.userName||"Nome não disponível",userEmail:e.userEmail||"Email não disponível",placeId:null,placeName:e.placeName||null,roleId:e.roleId||void 0,roleName:e.roleName||void 0,companyId:e.companyId||void 0,companyName:e.companyName||void 0,isActive:a}}parseUsersResponse(e,a=""){let t=e;if(e.data)t=e.data;else{if(!Array.isArray(e))return K.handleError(`[QualiexApi] Formato de resposta inesperado${a}`,!1),null;t=e}return Array.isArray(t)?t.map(e=>this.mapToQualiexUser(e)):(K.handleError(`[QualiexApi] Resposta não é um array${a}`,!1),null)}async fetchUsers(e,a,t="active"){const r={companyId:a,search:"",filterStatus:t};try{const a=await this.makeApiCall("/api/common/v1/companiesusers",r,e);return this.parseUsersResponse(a)??[]}catch(s){if(await oe.handleApiError(s))try{const a=await this.makeApiCall("/api/common/v1/companiesusers",r,e);return this.parseUsersResponse(a," após retry")??[]}catch(n){return K.handleError(n instanceof Error?n:"Erro ao buscar usuários após renovação de token",!0),[]}return K.handleError(s instanceof Error?s.message:"Erro ao buscar usuários da API Qualiex",!0),[]}}async fetchUserById(e,a,t){try{return(await this.fetchUsers(a,t)).find(a=>a.userId===e)||null}catch(r){return K.handleError(r instanceof Error?r:"[QualiexApi] Error fetching user by ID"),null}}async fetchActiveUsersMap(e,a){const t=await this.fetchUsers(e,a,"active"),r=new Map;return t.forEach(e=>r.set(e.userId,e)),r}async fetchAllUsersMap(e,a){const t=await this.fetchUsers(e,a,"all"),r=new Map;return t.forEach(e=>r.set(e.userId,e)),r}async getUsers(e,a="active"){const t=F.extractTokenData();return t&&t.companyId?this.fetchUsers(e,t.companyId,a):[]}async fetchSoftwares(e){try{const a=await this.makeApiCall("/api/common/v1/softwares",{},e),t=a?.data||a;return Array.isArray(t)?t.map(e=>({id:e.id,alias:e.alias||"",color:e.color||"",colorLight:e.colorLight||"",namePtBr:e.namePtBr||"",nameUs:e.nameUs||"",nameEs:e.nameEs||""})):(K.handleError("[QualiexApi] fetchSoftwares: formato de resposta inesperado",!1),[])}catch(a){if(await oe.handleApiError(a))try{const a=await this.makeApiCall("/api/common/v1/softwares",{},e),t=a?.data||a;return Array.isArray(t)?t.map(e=>({id:e.id,alias:e.alias||"",color:e.color||"",colorLight:e.colorLight||"",namePtBr:e.namePtBr||"",nameUs:e.nameUs||"",nameEs:e.nameEs||""})):[]}catch(t){return K.handleError(t instanceof Error?t:"Erro ao buscar softwares após renovação de token",!0),[]}return K.handleError(a instanceof Error?a.message:"Erro ao buscar softwares da API Qualiex",!0),[]}}async fetchUserAssociations(e,a){try{const t=await this.makeApiCall(`/api/common/v1/Users/${e}/associations`,{},a),r=t?.data||t;return Array.isArray(r)?r.map(e=>({associationId:e.associationId||"",userId:e.userId||"",userName:e.userName||"",companyId:e.companyId||"",companyName:e.companyName||"",companyAlias:e.companyAlias||"",companyPhotoDate:e.companyPhotoDate,language:e.language,roleId:e.roleId||"",roleName:e.roleName||"",placeId:e.placeId,placeName:e.placeName,softwares:Array.isArray(e.softwares)?e.softwares:[],functionalities:Array.isArray(e.functionalities)?e.functionalities:[],isQualitfy:e.isQualitfy??!1,isMetroex:e.isMetroex??!1})):(K.handleError("[QualiexApi] fetchUserAssociations: formato de resposta inesperado",!1),[])}catch(t){if(await oe.handleApiError(t))try{const t=await this.makeApiCall(`/api/common/v1/Users/${e}/associations`,{},a),r=t?.data||t;return Array.isArray(r)?r.map(e=>({associationId:e.associationId||"",userId:e.userId||"",userName:e.userName||"",companyId:e.companyId||"",companyName:e.companyName||"",companyAlias:e.companyAlias||"",companyPhotoDate:e.companyPhotoDate,language:e.language,roleId:e.roleId||"",roleName:e.roleName||"",placeId:e.placeId,placeName:e.placeName,softwares:Array.isArray(e.softwares)?e.softwares:[],functionalities:Array.isArray(e.functionalities)?e.functionalities:[],isQualitfy:e.isQualitfy??!1,isMetroex:e.isMetroex??!1})):[]}catch(r){return K.handleError(r instanceof Error?r:"Erro ao buscar associações após renovação de token",!0),[]}return K.handleError(t instanceof Error?t.message:"Erro ao buscar associações do usuário",!0),[]}}},le=a.createContext(void 0),de=()=>{const e=a.useContext(le);if(void 0===e)throw new Error("useAuth deve ser usado dentro de um AuthProvider");return e};(void 0).VITE_SUPABASE_URL,G();const ce=(e={})=>{const{user:a,alias:r}=de(),{enabled:s=!0,status:n="active"}=e;return t.useQuery({queryKey:["qualiex-users",r,n],queryFn:()=>ie.getUsers(r,n),enabled:s&&!!r&&!!a,staleTime:3e5,retry:2,retryDelay:1e3})};function ue(){const{alias:r,isAuthenticated:s}=de(),n=F.getAccessToken(),{data:o=[]}=ce(),i=t.useQuery({queryKey:["leadership-raw",r],queryFn:async()=>{if(!n||!r)throw new Error("Usuário não autenticado ou unidade não selecionada");const e=ee(),{data:a,error:t}=await e.schema("common").from("leaders").select("*").eq("is_removed",!1).eq("alias",r);if(t)throw new Error("Erro ao buscar hierarquia de liderança");return a??[]},enabled:!!n&&!!r&&s}),l=a.useMemo(()=>{const a=i.data;if(!a)return;if(0===a.length)return[];const t={};o.forEach(e=>{t[e.userId]={name:e.userName||e.userEmail,email:e.userEmail||""}});const r=a.map(r=>{const s=a.filter(e=>e.id_leader===r.id_user);return{...r,name:t[r.id_user]?.name||e.t("inactive_user"),email:t[r.id_user]?.email||"",subordinatesCount:s.length,subordinateNames:s.map(e=>t[e.id_user]?.name||"[Usuário inativo]").sort((e,a)=>e.localeCompare(a))}}),s=new Set(a.map(e=>e.id_user));return new Set(a.filter(e=>e.id_leader&&!s.has(e.id_leader)).map(e=>e.id_leader)).forEach(s=>{const n=t[s],o=a.filter(e=>e.id_leader===s);r.push({id:`virtual-${s}`,alias:a[0]?.alias||"",id_user:s,id_leader:null,is_removed:!1,is_active:!0,created_at:(new Date).toISOString(),updated_at:(new Date).toISOString(),name:n?.name||e.t("inactive_user"),email:n?.email||"",subordinatesCount:o.length,subordinateNames:o.map(e=>t[e.id_user]?.name||"[Usuário inativo]").sort((e,a)=>e.localeCompare(a))})}),U(r)},[i.data,o]);return{...i,data:l}}const me="common";function he(){const{alias:e}=de(),a=t.useQueryClient(),r=ee(),{t:s}=o.useTranslation();return t.useMutation({mutationFn:async a=>{if(!e)throw new Error(s("unit_not_selected","Unidade não selecionada"));if(a.id_user===a.id_leader)throw new Error(s("cannot_be_own_leader","Usuário não pode ser seu próprio líder"));a.id_leader&&await ye(r,e,a.id_user,a.id_leader);const{data:t,error:n}=await r.schema(me).from("leaders").insert({alias:e,id_user:a.id_user,id_leader:a.id_leader,is_active:!0,is_removed:!1}).select().single();if(n)throw n;return t},onSuccess:()=>{a.invalidateQueries({queryKey:["leadership-raw",e]}),n.toast.success(s("leader_promoted_success","Líder virtual promovido com sucesso"))},onError:e=>{n.toast.error(e.message||s("leader_create_error","Erro ao criar líder"))}})}function pe(){const{alias:e}=de(),a=t.useQueryClient(),r=ee(),{t:s}=o.useTranslation();return t.useMutation({mutationFn:async a=>{if(!e)throw new Error(s("unit_not_selected","Unidade não selecionada"));if(!a.users.length)throw new Error(s("select_at_least_one",s("leadership_select_subordinates")));const t=a.users.map(e=>e.id_user),{data:n}=await r.schema(me).from("leaders").select("id_user").eq("alias",e).in("id_user",t).eq("is_removed",!1);if(n&&n.length>0){const e=n.map(e=>e.id_user);throw new Error(s("users_already_leaders",`Alguns usuários já estão cadastrados como líderes: ${e.join(", ")}`))}for(const d of a.users){if(a.id_leader&&d.id_user===a.id_leader)throw new Error(s("cannot_be_own_leader","Usuário não pode ser seu próprio líder"));a.id_leader&&await ye(r,e,d.id_user,a.id_leader)}const o=a.users.map(t=>({alias:e,id_user:t.id_user,id_leader:a.id_leader,is_active:!0,is_removed:!1})),{data:i,error:l}=await r.schema(me).from("leaders").insert(o).select();if(l)throw l;return i},onSuccess:t=>{a.invalidateQueries({queryKey:["leadership-raw",e]}),n.toast.success(s("subordinates_added_success",`${t?.length||0} liderado(s) adicionado(s) com sucesso`))},onError:e=>{n.toast.error(e.message||s("subordinates_add_error","Erro ao adicionar liderados"))}})}function fe(){const{alias:e}=de(),a=t.useQueryClient(),r=ee(),{t:s}=o.useTranslation();return t.useMutation({mutationFn:async a=>{if(!e)throw new Error(s("unit_not_selected","Unidade não selecionada"));const{data:t}=await r.schema(me).from("leaders").select("id_user").eq("id",a.id).eq("alias",e).single();if(!t)throw new Error(s("leader_not_found","Líder não encontrado"));if(t.id_user===a.id_leader)throw new Error(s("cannot_be_own_leader","Usuário não pode ser seu próprio líder"));a.id_leader&&await ye(r,e,t.id_user,a.id_leader,a.id);const{data:n,error:o}=await r.schema(me).from("leaders").update({id_leader:a.id_leader}).eq("id",a.id).eq("alias",e).select().single();if(o)throw o;return n},onSuccess:()=>{a.invalidateQueries({queryKey:["leadership-raw",e]}),n.toast.success(s("leader_updated_success","Líder atualizado com sucesso"))},onError:e=>{n.toast.error(e.message||s("leader_update_error","Erro ao atualizar líder"))}})}function ge(){const{alias:e}=de(),a=t.useQueryClient(),r=ee(),{t:s}=o.useTranslation();return t.useMutation({mutationFn:async a=>{if(!e)throw new Error(s("unit_not_selected","Unidade não selecionada"));const{error:t}=await r.schema(me).from("leaders").update({is_removed:!0}).eq("id",a).eq("alias",e);if(t)throw t},onSuccess:()=>{a.invalidateQueries({queryKey:["leadership-raw",e]}),n.toast.success(s("leader_removed_success","Líder removido com sucesso"))},onError:e=>{n.toast.error(e.message||s("leader_remove_error","Erro ao remover líder"))}})}function xe(){const{alias:e}=de(),a=t.useQueryClient(),r=ee(),{t:s}=o.useTranslation();return t.useMutation({mutationFn:async({leaderUserId:a,selectedUsers:t})=>{if(!e)throw new Error(s("unit_not_selected","Unidade não selecionada"));const n=t.map(e=>e.id_user),o=await Promise.all([r.schema(me).from("leaders").select("id, id_user, id_leader").eq("alias",e).eq("is_removed",!1).eq("id_leader",a),r.schema(me).from("leaders").select("id, id_user, id_leader").eq("alias",e).eq("is_removed",!1).in("id_user",n.length?n:["__none__"])]),[{data:i,error:l},{data:d,error:c}]=o;if(l)throw l;if(c)throw c;const u=i||[],m=d||[],h=new Set(n),p=u.filter(e=>!h.has(e.id_user)),f=m.filter(e=>e.id_leader!==a),g=new Set(m.map(e=>e.id_user)),x=t.filter(e=>!g.has(e.id_user));for(const s of f)await ye(r,e,s.id_user,a,s.id);for(const w of x){if(w.id_user===a)throw new Error(s("cannot_be_own_leader","Usuário não pode ser seu próprio líder"));await ye(r,e,w.id_user,a)}const y=[];if(p.length){const a=p.map(e=>e.id);y.push(r.schema(me).from("leaders").update({is_removed:!0}).in("id",a).eq("alias",e))}if(f.length){const t=f.map(e=>e.id);y.push(r.schema(me).from("leaders").update({id_leader:a}).in("id",t).eq("alias",e))}if(x.length){const t=x.map(t=>({alias:e,id_user:t.id_user,id_leader:a,is_active:!0,is_removed:!1}));y.push(r.schema(me).from("leaders").insert(t))}const v=(await Promise.all(y)).find(e=>e?.error);if(v?.error)throw v.error;return{unlinked:p.length,updated:f.length,created:x.length}},onSuccess:t=>{a.invalidateQueries({queryKey:["leadership-raw",e]}),n.toast.success(s("subordinates_synced_success",`Subordinados sincronizados (${t.created} adicionados, ${t.updated} atualizados, ${t.unlinked} removidos)`))},onError:e=>{n.toast.error(e.message||s("subordinates_sync_error","Erro ao sincronizar subordinados"))}})}async function ye(a,t,r,s,n){const{data:o,error:i}=await a.schema(me).from("leaders").select("id, id_user, id_leader").eq("alias",t).eq("is_removed",!1);if(i)throw i;const l=n?o.filter(e=>e.id!==n):o,d=new Set;let c=s;for(;c;){if(d.has(c))throw new Error(e.t("leadership_cycle_error"));if(c===r)throw new Error("Esta associação criaria um ciclo na hierarquia");d.add(c);const a=l.find(e=>e.id_user===c);c=a?.id_leader||null}}function ve(...e){return u.twMerge(c.clsx(e))}const we=d.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{primary:"bg-primary text-primary-foreground hover:bg-primary-hover shadow-sm hover:shadow-md active:scale-[0.98]",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary-hover border border-input shadow-sm",tertiary:"bg-background text-foreground hover:bg-accent hover:text-accent-foreground border border-border",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",subtle:"text-muted-foreground hover:text-foreground hover:bg-accent/50",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-sm hover:shadow-md",danger:"bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-sm hover:shadow-md",link:"text-primary underline-offset-4 hover:underline",icon:"bg-transparent border border-input hover:bg-accent hover:text-accent-foreground p-2",loading:"bg-primary/50 text-primary-foreground cursor-wait",default:"bg-primary text-primary-foreground hover:bg-primary/90",action:"bg-primary/10 text-primary hover:bg-primary/20 border border-primary/30","icon-only":"bg-transparent border border-input hover:bg-accent hover:text-accent-foreground p-2","external-link":"bg-transparent text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors","action-primary":"bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm","action-secondary":"bg-secondary text-secondary-foreground hover:bg-secondary/80 border border-input"},size:{sm:"h-8 px-3 text-xs rounded-lg",md:"h-10 px-4 py-2 text-sm rounded-md",lg:"h-12 px-8 text-base rounded-lg",xl:"h-14 px-10 text-lg rounded-lg",icon:"h-10 w-10","icon-sm":"h-8 w-8","icon-xs":"h-6 w-6",default:"h-10 px-4 py-2"}},defaultVariants:{variant:"primary",size:"md"}}),be=k.forwardRef(({className:e,variant:a,size:t,asChild:s=!1,...n},o)=>{const i=s?l.Slot:"button";return r.jsx(i,{className:ve(we({variant:a,size:t,className:e})),ref:o,...n})});be.displayName="Button";const _e=k.forwardRef(({className:e,...a},t)=>r.jsx(j.Root,{ref:t,className:ve("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...a,children:r.jsx(j.Indicator,{className:ve("flex items-center justify-center text-current"),children:r.jsx(i.Check,{className:"h-4 w-4"})})}));_e.displayName=j.Root.displayName;const Ne=k.forwardRef(({className:e,...a},t)=>r.jsx("table",{ref:t,className:ve("w-full caption-bottom text-[13px] table-fixed",e),...a}));Ne.displayName="Table";const ke=k.forwardRef(({className:e,...a},t)=>r.jsx("thead",{ref:t,className:ve("[&_tr]:border-b sticky top-0 z-[1] bg-background",e),...a}));ke.displayName="TableHeader";const je=k.forwardRef(({className:e,...a},t)=>r.jsx("tbody",{ref:t,className:ve("[&_tr:last-child]:border-0",e),...a}));je.displayName="TableBody";k.forwardRef(({className:e,...a},t)=>r.jsx("tfoot",{ref:t,className:ve("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...a})).displayName="TableFooter";const Se=k.forwardRef(({className:e,...a},t)=>r.jsx("tr",{ref:t,className:ve("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted even:bg-table-stripe",e),...a}));Se.displayName="TableRow";const Ce=k.forwardRef(({className:e,...a},t)=>r.jsx("th",{ref:t,className:ve("h-9 px-4 py-2 text-left align-middle font-medium text-muted-foreground bg-background border-b [&:has([role=checkbox])]:pr-0",e),...a}));Ce.displayName="TableHead";const Ee=k.forwardRef(({className:e,...a},t)=>r.jsx("td",{ref:t,className:ve("px-4 py-2 align-middle overflow-hidden [&:has([role=checkbox])]:pr-0",e),...a}));Ee.displayName="TableCell";k.forwardRef(({className:e,...a},t)=>r.jsx("caption",{ref:t,className:ve("mt-4 text-sm text-muted-foreground",e),...a})).displayName="TableCaption";const Ae=S.Root,Ie=S.Trigger,Te=k.forwardRef(({className:e,align:a="center",sideOffset:t=4,...s},n)=>r.jsx(S.Content,{ref:n,align:a,sideOffset:t,className:ve("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...s}));function De(e,a){const t=new Set;function r(e){if(e)for(const a of e)t.add(a.id),r(a.children)}return function e(t){for(const s of t){if(s.id===a)return r(s.children),!0;if(s.children&&e(s.children))return!0}return!1}(e),t}function Ue({children:e,itemId:a,enableDrag:t,onDragStartCell:s,onDragEndCell:n,onDragOverCell:o,onDropCell:i,className:l}){return r.jsx(Ee,{draggable:t,onDragStart:t?e=>s(a,e):void 0,onDragEnd:t?n:void 0,onDragOver:e=>{e.preventDefault(),e.stopPropagation(),o(a,e)},onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),o(a,e)},onDrop:e=>{e.preventDefault(),e.stopPropagation(),i(a,e)},className:l,children:e})}function Re({item:e,level:a,columns:t,nameKey:s,iconComponent:n,expandedIds:o,onToggleExpand:l,onRowClick:d,renderActions:c,rowActionsVariant:u="default",enableSelection:m,selectedIds:h,onSelectItem:p,enableRowDrag:f,draggedId:g,dragOverId:x,onDragStartCell:y,onDragEndCell:v,onDragOverCell:w,onDropCell:b,dragCount:_}){const N=o.has(e.id),k=(e.children?.length??0)>0,j=24*a,S="inline"===u,C=g===e.id||h?.has(e.id)&&g&&h?.has(g),E=x===e.id&&g!==e.id,A=h?.has(e.id)??!1,I={itemId:e.id,enableDrag:f,onDragStartCell:y,onDragEndCell:v,onDragOverCell:w,onDropCell:b};return r.jsxs(r.Fragment,{children:[r.jsxs(Se,{className:ve(d&&"cursor-pointer",S&&"group",C&&"opacity-40",E&&"ring-2 ring-primary ring-inset bg-primary/5"),onClick:d?()=>d(e):void 0,children:[r.jsx(Ue,{...I,children:r.jsxs("div",{className:"flex items-center gap-2",style:{paddingLeft:`${j}px`},children:[m&&r.jsx(_e,{checked:A,onCheckedChange:()=>p?.(e.id),onClick:e=>e.stopPropagation(),className:"shrink-0"}),f&&r.jsx("span",{className:"cursor-grab text-muted-foreground shrink-0 select-none",title:"Arrastar",children:"⠿"}),k?r.jsx("button",{onClick:a=>{a.stopPropagation(),l(e.id)},className:"p-1 hover:bg-accent rounded shrink-0",children:N?r.jsx(i.ChevronDown,{className:"h-4 w-4"}):r.jsx(i.ChevronRight,{className:"h-4 w-4"})}):r.jsx("div",{className:"w-6 shrink-0"}),n??r.jsx(i.User,{className:"h-4 w-4 text-muted-foreground shrink-0"}),r.jsx("span",{className:"truncate",children:String(e[s]??e.id)}),g===e.id&&_&&_>1&&r.jsx("span",{className:"ml-1 inline-flex items-center rounded-full bg-primary px-1.5 py-0 text-xs font-semibold text-primary-foreground",children:_})]})}),t.map(t=>{const s=e[t.key],n=t.render?t.render(e,a):null!=s?String(s):"—";return r.jsx(Ue,{...I,className:ve("text-center",t.className),children:t.hoverContent?r.jsxs(Ae,{openDelay:200,children:[r.jsx(Ie,{asChild:!0,children:r.jsx("span",{className:"cursor-default underline decoration-dotted underline-offset-4 text-foreground",children:n})}),r.jsx(Te,{side:"bottom",align:"center",className:"w-auto max-w-xs",children:t.hoverContent(e)})]}):n},String(t.key))}),c&&r.jsx(Ue,{...I,className:"text-right",children:r.jsx("div",{onClick:e=>e.stopPropagation(),className:ve("flex items-center justify-end gap-1",S&&"opacity-0 group-hover:opacity-100 transition-opacity"),children:c(e)})})]}),k&&N&&e.children.map(e=>r.jsx(Re,{item:e,level:a+1,columns:t,nameKey:s,iconComponent:n,expandedIds:o,onToggleExpand:l,onRowClick:d,renderActions:c,rowActionsVariant:u,enableSelection:m,selectedIds:h,onSelectItem:p,enableRowDrag:f,draggedId:g,dragOverId:x,onDragStartCell:y,onDragEndCell:v,onDragOverCell:w,onDropCell:b,dragCount:_},e.id))]})}function Pe({onDrop:a,isDragOver:t,onDragOver:s,onDragLeave:n,label:o}){return r.jsxs("div",{className:ve("absolute top-0 left-0 right-0 z-10 flex items-center justify-center gap-2 py-2 px-4 border-2 border-dashed rounded-md text-sm transition-colors mx-2 mt-2",t?"border-primary bg-primary/10 text-primary":"border-muted-foreground/30 text-muted-foreground bg-background/95"),onDragOver:s,onDragEnter:s,onDragLeave:n,onDrop:a,children:[r.jsx(i.ArrowUpToLine,{className:"h-4 w-4"}),o??e.t("leadership_make_root_short")]})}function Le({data:t,columns:s,nameKey:n,nameHeader:o=e.t("ap_name"),iconComponent:l,expandedIds:d,onToggleExpand:c,onRowClick:u,renderActions:m,actionsHeader:h="",rowActionsVariant:p="default",isLoading:f,emptyMessage:g="Nenhum registro encontrado.",className:x,enableSelection:y,selectedIds:v,onSelectItem:w,onSelectAll:b,isAllSelected:_,enableRowDrag:N,onMoveNode:k,onMoveNodes:j,rootDropLabel:S,actionsWidth:C=20,nameMinWidth:E=200}){const[A,I]=a.useState(null),[T,D]=a.useState(null),[U,R]=a.useState(!1),[P,L]=a.useState(1),V=a.useRef(null),q=a.useRef([]),O=a.useRef(null),z=a.useMemo(()=>new Set(v??[]),[v]),M=a.useMemo(()=>{if(!A||!t)return new Set;const e=q.current.length>0?q.current:[A],a=function(e,a){const t=new Set;for(const r of a)De(e,r).forEach(e=>t.add(e));return t}(t,e);return e.forEach(e=>a.add(e)),a},[A,t]),B=a.useRef(M);B.current=M;const $=a.useCallback(()=>{V.current=null,q.current=[],O.current=null,I(null),D(null),R(!1),L(1)},[]),F=a.useCallback((e,a)=>{e.length>1&&j?j(e,a):1===e.length&&k?.(e[0],a)},[k,j]),H=a.useCallback((e,a)=>{const t=z.has(e)&&z.size>1?Array.from(z):[e];V.current=e,q.current=t,O.current=null,I(e),L(t.length),a.dataTransfer.effectAllowed="move",a.dataTransfer.setData("text/plain",e),a.dataTransfer.setData("application/x-tree-ids",JSON.stringify(t))},[z]),W=a.useCallback((e,a)=>{a.preventDefault(),a.dataTransfer.dropEffect="move",B.current.has(e)?D(null):(O.current=e,D(e))},[]),Q=a.useCallback((e,a)=>{a.preventDefault(),a.stopPropagation();const t=B.current.has(e)?O.current:e;if(!t)return void $();let r=q.current;if(0===r.length){try{const e=a.dataTransfer.getData("application/x-tree-ids");if(e){const a=JSON.parse(e);Array.isArray(a)&&a.length>0&&(r=a)}}catch{}if(0===r.length){const e=a.dataTransfer.getData("text/plain");e&&(r=[e])}}0===r.length||r.includes(t)||F(r,t),$()},[F,$]),J=a.useCallback(e=>{e.preventDefault(),e.stopPropagation();let a=q.current;if(0===a.length){try{const t=e.dataTransfer.getData("application/x-tree-ids");if(t){const e=JSON.parse(t);Array.isArray(e)&&e.length>0&&(a=e)}}catch{}if(0===a.length){const t=e.dataTransfer.getData("text/plain");t&&(a=[t])}}0!==a.length?(F(a,null),$()):$()},[F,$]),K=a.useCallback(e=>{e.preventDefault(),e.dataTransfer.dropEffect="move",R(!0)},[]),Y=a.useCallback(e=>{N&&(e.preventDefault(),e.dataTransfer.dropEffect="move")},[N]),G=a.useCallback(e=>{if(!N)return;const a=document.elementFromPoint(e.clientX,e.clientY)?.closest?.("[data-tree-row-id]"),t=a?.dataset?.treeRowId??O.current;t&&Q(t,e)},[N,Q]);if(f)return r.jsx("div",{className:"flex items-center justify-center py-12",children:r.jsxs("div",{className:"text-center space-y-2",children:[r.jsx("div",{className:"animate-spin h-8 w-8 border-4 border-primary border-t-transparent rounded-full mx-auto"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Carregando..."})]})});if(!t||0===t.length)return r.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center space-y-2",children:[r.jsx(i.User,{className:"h-10 w-10 text-muted-foreground/50"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:g})]});const X=null!==A;return r.jsxs("div",{className:ve("border rounded-lg overflow-hidden relative",x),onDragOver:Y,onDrop:G,onDragLeave:N?e=>{const a=e.relatedTarget;a&&e.currentTarget.contains(a)||(D(null),R(!1))}:void 0,children:[N&&X&&r.jsx(Pe,{onDrop:J,isDragOver:U,onDragOver:K,onDragLeave:()=>R(!1),label:S}),r.jsxs(Ne,{children:[r.jsx(ke,{children:r.jsxs(Se,{children:[r.jsx(Ce,{className:"text-left",style:{minWidth:E},children:r.jsxs("div",{className:"flex items-center gap-2",children:[y&&r.jsx(_e,{checked:_??!1,onCheckedChange:()=>b?.()}),o]})}),s.map(e=>r.jsx(Ce,{className:ve("text-center",e.className),style:e.width?{width:e.width}:void 0,children:e.header},String(e.key))),m&&r.jsx(Ce,{className:"text-right",style:{width:C},children:h})]})}),r.jsx(je,{children:t.map(e=>r.jsx(Re,{item:e,level:0,columns:s,nameKey:n,iconComponent:l,expandedIds:d,onToggleExpand:c,onRowClick:u,renderActions:m,rowActionsVariant:p,enableSelection:y,selectedIds:z,onSelectItem:w,enableRowDrag:N,draggedId:A,dragOverId:T,onDragStartCell:H,onDragEndCell:$,onDragOverCell:W,onDropCell:Q,dragCount:P},e.id))})]})]})}Te.displayName=S.Content.displayName;const Ve=k.forwardRef(({className:e,orientation:a="horizontal",decorative:t=!0,...s},n)=>r.jsx(E.Root,{ref:n,decorative:t,orientation:a,className:ve("shrink-0 bg-border","horizontal"===a?"h-[1px] w-full":"h-full w-[1px]",e),...s}));Ve.displayName=E.Root.displayName;const qe=A.Root,Oe=A.Trigger,ze=A.Portal,Me=k.forwardRef(({className:e,...a},t)=>r.jsx(A.Overlay,{className:ve("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...a,ref:t}));Me.displayName=A.Overlay.displayName;const Be=k.forwardRef(({className:e,...a},t)=>r.jsxs(ze,{children:[r.jsx(Me,{}),r.jsx(A.Content,{ref:t,className:ve("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a})]}));Be.displayName=A.Content.displayName;const $e=({className:e,...a})=>r.jsx("div",{className:ve("flex flex-col space-y-2 text-center sm:text-left",e),...a});$e.displayName="AlertDialogHeader";const Fe=({className:e,...a})=>r.jsx("div",{className:ve("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...a});Fe.displayName="AlertDialogFooter";const He=k.forwardRef(({className:e,...a},t)=>r.jsx(A.Title,{ref:t,className:ve("text-lg font-semibold",e),...a}));He.displayName=A.Title.displayName;const We=k.forwardRef(({className:e,...a},t)=>r.jsx(A.Description,{ref:t,className:ve("text-sm text-muted-foreground",e),...a}));We.displayName=A.Description.displayName;const Qe=k.forwardRef(({className:e,...a},t)=>r.jsx(A.Action,{ref:t,className:ve(we(),e),...a}));Qe.displayName=A.Action.displayName;const Je=k.forwardRef(({className:e,...a},t)=>r.jsx(A.Cancel,{ref:t,className:ve(we({variant:"outline"}),"mt-2 sm:mt-0",e),...a}));Je.displayName=A.Cancel.displayName;const Ke=C.Root,Ye=C.Portal,Ge=k.forwardRef(({className:e,...a},t)=>r.jsx(C.Overlay,{ref:t,className:ve("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...a}));Ge.displayName=C.Overlay.displayName;const Xe={sm:{width:"30vw",minWidth:"320px",maxWidth:"480px",maxHeight:"320px"},md:{width:"50vw",minWidth:"480px",maxWidth:"720px",maxHeight:"70vh"},lg:{width:"85vw",height:"85vh",maxWidth:"1440px",minHeight:"480px",maxHeight:"900px"}},Ze=k.forwardRef(({className:a,children:t,size:s,variant:n="informative",isDirty:o,customWidth:l,customMinWidth:d,customMaxWidth:c,customHeight:u,customMinHeight:m,customMaxHeight:h,unsavedChangesTitle:p=e.t("unsaved_changes"),unsavedChangesDescription:f=e.t("unsaved_changes_description"),cancelText:g=e.t("cancel"),leaveWithoutSavingText:x=e.t("leave_without_saving"),style:y,onInteractOutside:v,onEscapeKeyDown:w,...b},_)=>{const[N,j]=k.useState(!1),S=k.useRef(null),E=k.useRef(!1),A=s??(l||d||c||u||m||h?void 0:"md"),I=A?Xe[A]:{},T={...l??I.width?{width:l??I.width}:{},...d??I.minWidth?{minWidth:d??I.minWidth}:{},...c??I.maxWidth?{maxWidth:c??I.maxWidth}:{},...u??I.height?{height:u??I.height}:{},...m??I.minHeight?{minHeight:m??I.minHeight}:{},...h??I.maxHeight?{maxHeight:h??I.maxHeight}:{},...y},D=k.useCallback(e=>{"form"===n&&o?(S.current=e,j(!0)):e()},[n,o]),U=k.useRef(null),R="destructive"!==n;if("development"===process.env.NODE_ENV&&t){const e=k.Children.toArray(t);e.some(e=>k.isValidElement(e)&&"DialogFooter"===e.type?.displayName),e.some(e=>k.isValidElement(e)&&"DialogBody"===e.type?.displayName)}return r.jsxs(Ye,{children:[r.jsx(Ge,{}),r.jsxs(C.Content,{ref:_,className:ve("fixed left-[50%] top-[50%] z-50 flex flex-col translate-x-[-50%] translate-y-[-50%] border-0 border-l-[10px] border-l-primary bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-lg max-sm:!w-[calc(100vw-2rem)] max-sm:!h-[calc(100dvh-2rem)] max-sm:!min-w-0 max-sm:!min-h-0 max-sm:!max-w-none max-sm:!max-h-none max-sm:p-4",a),style:T,onInteractOutside:e=>{"form"!==n&&"destructive"!==n?v?.(e):e.preventDefault()},onEscapeKeyDown:e=>{if("destructive"!==n)return"form"===n&&o?(e.preventDefault(),void D(()=>{E.current=!0,U.current?.click()})):void w?.(e);e.preventDefault()},...b,children:[t,R&&r.jsxs(C.Close,{ref:U,onClick:e=>{E.current?E.current=!1:"form"===n&&o&&(e.preventDefault(),D(()=>{E.current=!0,U.current?.click()}))},className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[r.jsx(i.X,{className:"h-4 w-4"}),r.jsx("span",{className:"sr-only",children:"Close"})]})]}),r.jsx(qe,{open:N,onOpenChange:j,children:r.jsxs(Be,{children:[r.jsxs($e,{children:[r.jsx(He,{children:p}),r.jsx(We,{children:f})]}),r.jsxs(Fe,{children:[r.jsx(Je,{onClick:()=>{j(!1),S.current=null},children:g}),r.jsx(Qe,{onClick:()=>{j(!1),S.current?.(),S.current=null},children:x})]})]})})]})});Ze.displayName=C.Content.displayName;const ea=({className:e,showSeparator:a=!1,children:t,...s})=>r.jsxs("div",{className:ve("flex flex-col flex-shrink-0",e),...s,children:[r.jsx("div",{className:"flex flex-col text-left",children:t}),a&&r.jsx(Ve,{className:"mt-2"})]});ea.displayName="DialogHeader";const aa=({className:e,...a})=>r.jsx("div",{className:ve("flex-1 min-h-0 overflow-auto py-4 px-2 -mx-2",e),...a});aa.displayName="DialogBody";const ta=k.forwardRef(({className:e,...a},t)=>r.jsx(C.Title,{ref:t,className:ve("text-xl font-semibold leading-none tracking-tight",e),...a}));ta.displayName=C.Title.displayName;k.forwardRef(({className:e,...a},t)=>r.jsx(C.Description,{ref:t,className:ve("text-sm text-muted-foreground",e),...a})).displayName=C.Description.displayName;var ra=function(e,a){for(var t={};e.length;){var r=e[0],s=r.code,n=r.message,o=r.path.join(".");if(!t[o])if("unionErrors"in r){var i=r.unionErrors[0].errors[0];t[o]={message:i.message,type:i.code}}else t[o]={message:n,type:s};if("unionErrors"in r&&r.unionErrors.forEach(function(a){return a.errors.forEach(function(a){return e.push(a)})}),a){var l=t[o].types,d=l&&l[r.code];t[o]=y.appendErrors(o,a,t,s,d?[].concat(d,r.message):r.message)}e.shift()}return t},sa=function(e,a,t){return void 0===t&&(t={}),function(r,s,n){try{return Promise.resolve(function(s,o){try{var i=Promise.resolve(e["sync"===t.mode?"parse":"parseAsync"](r,a)).then(function(e){return n.shouldUseNativeValidation&&v.validateFieldsNatively({},n),{errors:{},values:t.raw?r:e}})}catch(l){return o(l)}return i&&i.then?i.then(void 0,o):i}(0,function(e){if(function(e){return Array.isArray(null==e?void 0:e.errors)}(e))return{values:{},errors:v.toNestErrors(ra(e.errors,!n.shouldUseNativeValidation&&"all"===n.criteriaMode),n)};throw e}))}catch(o){return Promise.reject(o)}}};const na=d.cva("text-xs font-medium leading-none text-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),oa=k.forwardRef(({className:e,...a},t)=>r.jsx(I.Root,{ref:t,className:ve(na(),e),...a}));oa.displayName=I.Root.displayName;const ia=k.forwardRef(({className:e,children:a,...t},s)=>r.jsxs(T.Root,{ref:s,className:ve("relative overflow-hidden",e),...t,children:[r.jsx(T.Viewport,{className:"h-full w-full rounded-[inherit]",children:a}),r.jsx(la,{}),r.jsx(T.Corner,{})]}));ia.displayName=T.Root.displayName;const la=k.forwardRef(({className:e,orientation:a="vertical",...t},s)=>r.jsx(T.ScrollAreaScrollbar,{ref:s,orientation:a,className:ve("flex touch-none select-none transition-colors","vertical"===a&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===a&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...t,children:r.jsx(T.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));la.displayName=T.ScrollAreaScrollbar.displayName;const da=k.forwardRef(({className:e,type:a,showCharCount:t,maxLength:s,onChange:n,...o},i)=>{const[l,d]=k.useState(0);k.useEffect(()=>{"string"==typeof o.value?d(o.value.length):"string"==typeof o.defaultValue&&d(o.defaultValue.length)},[o.value,o.defaultValue]);return r.jsxs("div",{className:"w-full",children:[r.jsx("input",{type:a,className:ve("flex h-10 w-full rounded-lg border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground hover:border-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition-colors md:text-sm",e),ref:i,maxLength:s,onChange:e=>{d(e.target.value.length),n?.(e)},...o}),t&&s&&r.jsxs("div",{className:"text-right text-xs text-muted-foreground mt-1",children:[l," / ",s]})]})});da.displayName="Input";const ca=k.createContext({showCheck:!1}),ua=({showCheck:e=!1,...a})=>r.jsx(ca.Provider,{value:{showCheck:e},children:r.jsx(D.Root,{...a})}),ma=D.Value,ha=k.forwardRef(({className:e,children:a,...t},s)=>r.jsxs(D.Trigger,{ref:s,className:ve("flex h-10 w-full items-center justify-between rounded-lg border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground hover:border-primary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition-colors [&>span]:line-clamp-1",e),...t,children:[a,r.jsx(D.Icon,{asChild:!0,children:r.jsx(i.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));ha.displayName=D.Trigger.displayName;const pa=k.forwardRef(({className:e,...a},t)=>r.jsx(D.ScrollUpButton,{ref:t,className:ve("flex cursor-default items-center justify-center py-1",e),...a,children:r.jsx(i.ChevronUp,{className:"h-4 w-4"})}));pa.displayName=D.ScrollUpButton.displayName;const fa=k.forwardRef(({className:e,...a},t)=>r.jsx(D.ScrollDownButton,{ref:t,className:ve("flex cursor-default items-center justify-center py-1",e),...a,children:r.jsx(i.ChevronDown,{className:"h-4 w-4"})}));fa.displayName=D.ScrollDownButton.displayName;const ga=k.forwardRef(({className:e,children:a,position:t="popper",container:s,collisionBoundary:n,...o},i)=>r.jsx(D.Portal,{container:s,children:r.jsxs(D.Content,{ref:i,className:ve("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===t&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,collisionBoundary:n,...o,children:[r.jsx(pa,{}),r.jsx(D.Viewport,{className:ve("p-1","popper"===t&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),r.jsx(fa,{})]})}));ga.displayName=D.Content.displayName;k.forwardRef(({className:e,...a},t)=>r.jsx(D.Label,{ref:t,className:ve("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...a})).displayName=D.Label.displayName;const xa=k.forwardRef(({className:e,children:a,...t},s)=>{const{showCheck:n}=k.useContext(ca);return r.jsxs(D.Item,{ref:s,className:ve("relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n?"pl-8":"pl-2","data-[state=checked]:bg-accent data-[state=checked]:text-accent-foreground data-[state=checked]:font-medium data-[state=checked]:border-l-2 data-[state=checked]:border-primary",n?"data-[state=checked]:pl-[calc(2rem-2px)]":"data-[state=checked]:pl-[calc(0.5rem-2px)]",e),...t,children:[n&&r.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsx(D.ItemIndicator,{children:r.jsx(i.Check,{className:"h-4 w-4"})})}),r.jsx(D.ItemText,{children:a})]})});xa.displayName=D.Item.displayName;k.forwardRef(({className:e,...a},t)=>r.jsx(D.Separator,{ref:t,className:ve("-mx-1 my-1 h-px bg-muted",e),...a})).displayName=D.Separator.displayName;const ya=x.z.object({id_leader:x.z.string().nullable(),id_users:x.z.array(x.z.string()).min(1,e.t("leadership_select_subordinates"))}),va=x.z.object({id_leader:x.z.string().nullable(),id_users:x.z.array(x.z.string())});function wa({value:t,onChange:s,excludeUserIds:n=[],error:o}){const{data:l=[],isLoading:d}=ce(),[c,u]=a.useState(""),m=a.useRef(null),h=a.useRef(0),p=l.filter(e=>!n.includes(e.userId||"")).filter(e=>{const a=c.toLowerCase(),t=e.userName?.toLowerCase().includes(a);return t}).sort((e,a)=>{const r=t.includes(e.userId),s=t.includes(a.userId);if(r&&!s)return-1;if(!r&&s)return 1;const n=e.userName||e.userEmail||"",o=a.userName||a.userEmail||"";return n.localeCompare(o)});return a.useEffect(()=>{m.current&&h.current>0&&(m.current.scrollTop=h.current)},[p]),d?r.jsxs("div",{className:"flex items-center justify-center p-4",children:[r.jsx(i.Loader2,{className:"h-6 w-6 animate-spin"}),r.jsx("span",{className:"ml-2",children:"Carregando dados..."})]}):r.jsxs("div",{className:"space-y-2",children:[r.jsx(da,{placeholder:e.t("search_user_placeholder"),value:c,onChange:e=>u(e.target.value)}),r.jsx("div",{ref:m,className:"border rounded-md p-4 max-h-[300px] overflow-y-auto",children:0===p.length?r.jsx("p",{className:"text-sm text-muted-foreground",children:e.t("search_user_placeholder")}):r.jsx("div",{className:"space-y-2",children:p.map(e=>r.jsxs("div",{className:"flex items-center space-x-2",children:[r.jsx(_e,{id:e.userId,checked:t.includes(e.userId),onCheckedChange:()=>{return a=e.userId,m.current&&(h.current=m.current.scrollTop),void(t.includes(a)?s(t.filter(e=>e!==a)):s([...t,a]));var a}}),r.jsx(oa,{htmlFor:e.userId,className:"flex-1 cursor-pointer",children:e.userName||e.userEmail})]},e.userId))})}),t.length>0&&r.jsxs("p",{className:"text-sm text-muted-foreground",children:[t.length," selecionado(s)"]}),o&&r.jsx("p",{className:"text-sm text-destructive",children:o})]})}function ba({leader:t,prefilledLeaderId:s,onSuccess:n}){const{t:l}=o.useTranslation(),{alias:d}=de(),c=!!t,u=t?.id.startsWith("virtual-"),m=pe(),h=he(),p=fe(),f=xe(),g=ge(),{data:x=[]}=ue(),{data:v=[]}=ce(),[w,b]=a.useState(""),_=R(x).map(e=>e.id_user),N=c?R(x).filter(e=>e.id_leader===t.id_user).map(e=>e.id_user):[],k=y.useForm({resolver:sa(c?va:ya),defaultValues:{id_leader:s||(c?t?.id_leader:null)||null,id_users:c?N:[]}});a.useEffect(()=>{if(t){const e=R(x).filter(e=>e.id_leader===t.id_user).map(e=>e.id_user);k.reset({id_leader:t.id_leader||null,id_users:e})}else s?k.reset({id_leader:s,id_users:[]}):k.reset({id_leader:null,id_users:[]})},[d,t?.id,t?.id_user,t?.id_leader,s,x]);const j=m.isPending||h.isPending||p.isPending||f.isPending||g.isPending,S=k.watch("id_leader"),C=k.watch("id_users"),E=c?[t.id_user,..._.filter(e=>e!==t.id_user&&!C.includes(e)&&!N.includes(e))]:[S,..._.filter(e=>!C.includes(e))].filter(Boolean);return r.jsxs("form",{onSubmit:k.handleSubmit(async e=>{try{if(c)if(u){await h.mutateAsync({id_user:t.id_user,id_leader:e.id_leader});const a=v.filter(a=>e.id_users.includes(a.userId)).map(e=>({id_user:e.userId}));await f.mutateAsync({leaderUserId:t.id_user,selectedUsers:a})}else{await p.mutateAsync({id:t.id,id_leader:e.id_leader});const a=v.filter(a=>e.id_users.includes(a.userId)).map(e=>({id_user:e.userId}));await f.mutateAsync({leaderUserId:t.id_user,selectedUsers:a})}else{const a=v.filter(a=>e.id_users.includes(a.userId)).map(e=>({id_user:e.userId}));await m.mutateAsync({id_leader:e.id_leader,users:a})}n?.()}catch(a){}}),className:"space-y-4",children:[c&&r.jsxs("div",{children:[r.jsx(oa,{children:e.t("leader")}),r.jsx(da,{value:v.find(e=>e.userId===t.id_user)?.userName||t.name||e.t("inactive_user"),disabled:!0,className:"bg-muted"})]}),r.jsxs("div",{children:[r.jsx(oa,{children:l("leadership_immediate_superior")}),r.jsxs(ua,{value:S||"none",onValueChange:e=>k.setValue("id_leader","none"===e?null:e),children:[r.jsx(ha,{children:r.jsx(ma,{placeholder:"Selecione..."})}),r.jsxs(ga,{children:[r.jsx("div",{className:"sticky top-0 z-10 bg-background p-2 border-b",children:r.jsx(da,{placeholder:"Buscar superior...",value:w,onChange:e=>b(e.target.value),onKeyDown:e=>e.stopPropagation(),onClick:e=>e.stopPropagation(),className:"h-8"})}),r.jsxs(ia,{className:"h-[200px]",children:[r.jsx(xa,{value:"none",children:"[Nenhum]"}),v.filter(e=>{const a=c?e.userId!==t.id_user:!C.includes(e.userId),r=!w||e.userName?.toLowerCase().includes(w.toLowerCase());return a&&r}).sort((e,a)=>{const t=e.userName||e.userEmail||"",r=a.userName||a.userEmail||"";return t.localeCompare(r)}).map(e=>r.jsx(xa,{value:e.userId,children:e.userName},e.userId))]})]})]},`superior-select-${d}`),k.formState.errors.id_leader&&r.jsx("p",{className:"text-sm text-destructive mt-1",children:k.formState.errors.id_leader.message})]}),r.jsxs("div",{children:[r.jsx(oa,{children:"Subordinados *"}),r.jsx(wa,{value:C,onChange:e=>k.setValue("id_users",e),excludeUserIds:E,error:k.formState.errors.id_users?.message},`users-multiselect-${d}`)]}),r.jsxs("div",{className:"flex items-center justify-between gap-2",children:[r.jsx(be,{type:"submit",disabled:j||!c&&0===C.length,children:j&&!g.isPending?r.jsxs(r.Fragment,{children:[r.jsx(i.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}),c?"Atualizando...":"Salvando..."]}):c?"Atualizar":"Criar"}),c&&!S&&0===C.length&&r.jsxs(qe,{children:[r.jsx(Oe,{asChild:!0,children:r.jsx(be,{type:"button",variant:"destructive",disabled:j,className:"ml-auto",children:g.isPending?r.jsxs(r.Fragment,{children:[r.jsx(i.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}),"Removendo..."]}):r.jsxs(r.Fragment,{children:[r.jsx(i.Trash2,{className:"mr-2 h-4 w-4"}),"Remover"]})})}),r.jsxs(Be,{children:[r.jsxs($e,{children:[r.jsx(He,{children:l("confirm_removal")}),r.jsx(We,{children:"Tem certeza que deseja remover este líder? Esta ação não pode ser desfeita."})]}),r.jsxs(Fe,{children:[r.jsx(Je,{children:l("cancel")}),r.jsx(Qe,{onClick:async()=>{if(t)try{await g.mutateAsync(t.id),n?.()}catch(e){}},children:l("remove")})]})]})]})]})]})}function _a({open:e,onOpenChange:a,leader:t,prefilledLeaderId:s,title:n}){return r.jsx(Ke,{open:e,onOpenChange:a,children:r.jsxs(Ze,{variant:"form",className:"sm:max-w-[500px]",children:[r.jsx(ea,{showSeparator:!0,children:r.jsx(ta,{children:n})}),r.jsx(aa,{children:r.jsx(ba,{leader:t,prefilledLeaderId:s,onSuccess:()=>a(!1)})})]})})}const Na="leadership-expanded-nodes",ka=(e,a)=>{try{localStorage.setItem(`${Na}-${e}`,JSON.stringify(Array.from(a)))}catch{}};exports.LeadershipDialog=_a,exports.LeadershipForm=ba,exports.LeadershipPage=function({unassociatedUsers:t=[],onAssociateUser:s,onMoveNode:n,onMoveNodes:o,columns:l,nameHeader:d=e.t("leader"),rootDropLabel:c=e.t("leadership_make_root")}={}){const{alias:u}=de(),{data:m,isLoading:h,error:p,refetch:f}=ue(),g=fe(),x=he(),[y,v]=a.useState(()=>u?(e=>{try{const a=localStorage.getItem(`${Na}-${e}`);if(a)return new Set(JSON.parse(a))}catch{}return new Set})(u):new Set),[w,b]=a.useState([]),[_,N]=a.useState(new Set),[k,j]=a.useState(!0),[S,C]=a.useState(!1),[E,A]=a.useState(),[I,T]=a.useState(null),D=a.useMemo(()=>m?R(m):[],[m]),U=a.useMemo(()=>D.map(e=>e.id),[D]),P=U.length>0&&w.length===U.length,L=D.filter(e=>e.children.length>0).every(e=>y.has(e.id));a.useEffect(()=>{if(m&&m.length>0&&u){if(!localStorage.getItem(`${Na}-${u}`)){const e=m.map(e=>e.id),a=new Set(e);v(a),ka(u,a)}}},[m,u]);const V=a.useCallback(e=>{v(a=>{const t=new Set(a);return t.has(e)?t.delete(e):t.add(e),u&&ka(u,t),t})},[u]),q=a.useCallback(()=>{if(L){const e=new Set;v(e),u&&ka(u,e)}else{const e=new Set(D.filter(e=>e.children.length>0).map(e=>e.id));v(e),u&&ka(u,e)}},[L,D,u]),O=a.useCallback(e=>{b(a=>a.includes(e)?a.filter(a=>a!==e):[...a,e])},[]),z=a.useCallback(()=>{b(P?[]:U)},[P,U]),M=a.useCallback(e=>{N(a=>{const t=new Set(a);return t.has(e)?t.delete(e):t.add(e),t})},[]),B=a.useCallback(e=>D.find(a=>a.id===e),[D]),$=a.useCallback((e,a)=>{if(n)return void n(e,a);const r=t.find(a=>a.id===e);if(r){if(s){const e=a?B(a):null;s(r.id,e?.id_user||null)}else x.mutate({id_user:r.id,id_leader:a&&B(a)?.id_user||null});return}const o=B(e);if(!o)return;const i=a?B(a):null;g.mutate({id:o.id,id_leader:i?.id_user||null})},[n,t,s,B,g,x]),F=a.useCallback((e,a)=>{o?o(e,a):(e.forEach(e=>$(e,a)),b([]))},[o,$]),H=a.useCallback(e=>{A(e),T(null),C(!0)},[]),W=a.useCallback(()=>{A(void 0),T(null),C(!0)},[]),Q=a.useCallback(()=>{C(!1),A(void 0),T(null)},[]),J=a.useCallback((e,a)=>{const t=_.has(e)&&_.size>1?Array.from(_):[e];a.dataTransfer.effectAllowed="move",a.dataTransfer.setData("text/plain",e),a.dataTransfer.setData("application/x-tree-ids",JSON.stringify(t)),a.currentTarget.style.opacity="0.4"},[_]),K=a.useMemo(()=>[{key:"subordinatesCount",header:"Subordinados",hoverContent:e=>e.subordinateNames&&e.subordinateNames.length>0?r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("p",{className:"text-xs font-medium text-muted-foreground mb-1",children:"Subordinados diretos:"}),[...e.subordinateNames].sort((e,a)=>e.localeCompare(a)).map(e=>r.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[r.jsx(i.User,{className:"h-3 w-3 text-muted-foreground"}),r.jsx("span",{children:e})]},e))]}):r.jsx("p",{className:"text-xs text-muted-foreground",children:"Sem subordinados diretos"})},{key:"email",header:"Email",className:"text-left",width:180,render:e=>r.jsxs("span",{className:"flex items-center gap-1.5 text-muted-foreground text-sm",children:[r.jsx(i.Mail,{className:"h-3.5 w-3.5"}),e.email||"—"]})}],[]),Y=l??K;if(h)return r.jsx("div",{className:"flex items-center justify-center h-full",children:r.jsxs("div",{className:"text-center space-y-2",children:[r.jsx("div",{className:"animate-spin h-8 w-8 border-4 border-primary border-t-transparent rounded-full mx-auto"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Carregando..."})]})});if(p)return r.jsx("div",{className:"flex items-center justify-center h-full",children:r.jsxs("div",{className:"text-center",children:[r.jsx("p",{className:"text-destructive mb-4",children:"Erro ao carregar hierarquia de liderança"}),r.jsx(be,{onClick:()=>f(),children:e.t("try_again")})]})});const G=D.filter(a=>a.name!==e.t("inactive_user")).length;return r.jsxs("div",{className:"flex flex-col h-full gap-3 p-4",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex gap-2 items-center",children:[r.jsxs(be,{size:"sm",onClick:W,children:[r.jsx(i.Plus,{className:"h-4 w-4 mr-2"}),"Definir Líder"]}),r.jsx(be,{size:"sm",variant:"outline",onClick:q,children:L?r.jsxs(r.Fragment,{children:[r.jsx(i.ChevronDown,{className:"h-4 w-4 mr-1"}),"Colapsar"]}):r.jsxs(r.Fragment,{children:[r.jsx(i.ChevronRight,{className:"h-4 w-4 mr-1"}),"Expandir"]})}),r.jsx("div",{className:"flex items-center gap-2 ml-4",children:r.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-muted rounded-md",children:[r.jsx(i.Users,{className:"h-4 w-4 text-muted-foreground"}),r.jsxs("span",{className:"text-sm font-medium",children:[G," usuário",1!==G?"s":""," associado",1!==G?"s":""]})]})})]}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Arraste as linhas para reorganizar • Selecione múltiplos para mover em lote"})]}),r.jsx(Le,{data:m||[],columns:Y,nameKey:"name",nameHeader:d,expandedIds:y,onToggleExpand:V,iconComponent:r.jsx(i.Users,{className:"h-4 w-4 text-muted-foreground shrink-0"}),rowActionsVariant:"inline",enableRowDrag:!0,enableSelection:!0,selectedIds:w,onSelectItem:O,onSelectAll:z,isAllSelected:P,onMoveNode:$,onMoveNodes:F,rootDropLabel:c,emptyMessage:e.t("leadership_no_hierarchy"),renderActions:e=>r.jsx(be,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>H(e),children:r.jsx(i.Pencil,{className:"h-4 w-4"})})}),t.length>0&&r.jsxs("div",{className:"border rounded-lg overflow-hidden",children:[r.jsxs("button",{type:"button",onClick:()=>j(e=>!e),className:"w-full px-4 py-2.5 bg-muted/50 border-b flex items-center gap-2 hover:bg-muted/70 transition-colors cursor-pointer",children:[k?r.jsx(i.ChevronDown,{className:"h-4 w-4 text-muted-foreground shrink-0"}):r.jsx(i.ChevronRight,{className:"h-4 w-4 text-muted-foreground shrink-0"}),r.jsx(i.UserPlus,{className:"h-4 w-4 text-muted-foreground"}),r.jsx("span",{className:"text-sm font-medium",children:"Usuários não associados"}),r.jsxs("span",{className:"text-xs text-muted-foreground ml-1",children:["(",t.length,")"]}),_.size>0&&r.jsxs("span",{className:"text-xs text-primary ml-1",children:["(",_.size," selecionado",_.size>1?"s":"",")"]}),r.jsx("span",{className:"text-xs text-muted-foreground ml-auto",children:"Arraste para a hierarquia acima"})]}),k&&r.jsx("div",{className:"divide-y",children:t.map(e=>r.jsxs("div",{draggable:!0,onDragStart:a=>J(e.id,a),onDragEnd:e=>{e.currentTarget.style.opacity="1"},className:ve("flex items-center gap-3 px-4 py-2.5 hover:bg-accent/50 cursor-grab active:cursor-grabbing transition-colors",_.has(e.id)&&"bg-primary/5"),children:[r.jsx(_e,{checked:_.has(e.id),onCheckedChange:()=>M(e.id),onClick:e=>e.stopPropagation(),className:"shrink-0"}),r.jsx("span",{className:"text-muted-foreground shrink-0 select-none",children:"⠿"}),r.jsx(i.User,{className:"h-4 w-4 text-muted-foreground shrink-0"}),r.jsxs("div",{className:"flex flex-col min-w-0",children:[r.jsx("span",{className:"text-sm truncate",children:e.name}),r.jsx("span",{className:"text-xs text-muted-foreground truncate",children:e.email})]})]},e.id))})]}),r.jsxs("div",{className:"px-3 py-2 bg-muted/20 border rounded-lg text-xs text-muted-foreground flex justify-between",children:[r.jsxs("span",{children:["Usuários associados: ",G]}),t.length>0&&r.jsxs("span",{children:["Usuários não associados: ",t.length]})]}),r.jsx(_a,{open:S,onOpenChange:Q,leader:E,prefilledLeaderId:I,title:E?e.t("edit_name"):I?e.t("leadership_add_subordinate"):e.t("leadership_add_root")},`leadership-dialog-${u}`)]})},exports.buildHierarchy=U,exports.filterAndPromoteOrphans=function(e,a){const t=e.map(e=>({...e})),r=new Set(t.filter(e=>!a.has(e.id_user)).map(e=>e.id_user));return t.forEach(e=>{if(e.id_leader&&r.has(e.id_leader)){let a=e.id_leader;for(;a&&r.has(a);){const e=t.find(e=>e.id_user===a);a=e?.id_leader||null}e.id_leader=a}}),t.filter(e=>a.has(e.id_user))},exports.flattenTree=R,exports.useCreateMultipleLeadersMutation=pe,exports.useCreateSingleLeaderMutation=he,exports.useLeadershipApi=ue,exports.useRemoveLeaderMutation=ge,exports.useSyncSubordinatesMutation=xe,exports.useUpdateLeaderMutation=fe;
@@ -0,0 +1,31 @@
1
+ import type { Module } from '../../components/modules/types';
2
+ interface ModuleClickContext {
3
+ module: Module;
4
+ isContracted: boolean;
5
+ sourceModule?: string;
6
+ alias?: string;
7
+ }
8
+ /**
9
+ * Função utilitária `trackModuleClick`.
10
+ * @example
11
+ * trackModuleClick();
12
+ */
13
+ export declare function trackModuleClick({ module, isContracted, sourceModule, alias }: ModuleClickContext): void;
14
+ /**
15
+ * Função utilitária `trackInterestClick`.
16
+ * @example
17
+ * trackInterestClick();
18
+ */
19
+ export declare function trackInterestClick({ module, sourceModule, alias }: Omit<ModuleClickContext, 'isContracted'>): void;
20
+ interface FooterClickContext {
21
+ resource: 'educa' | 'saber-gestao' | 'wiki';
22
+ sourceModule?: string;
23
+ alias?: string;
24
+ }
25
+ /**
26
+ * Função utilitária `trackFooterClick`.
27
+ * @example
28
+ * trackFooterClick();
29
+ */
30
+ export declare function trackFooterClick({ resource, sourceModule, alias }: FooterClickContext): void;
31
+ export {};
@@ -0,0 +1,3 @@
1
+ export { useClarity } from './useClarity';
2
+ export { trackModuleClick, trackInterestClick, trackFooterClick } from './clarityTracking';
3
+ export type { ClarityMode, ClarityRuntimeMode, ModuleClickEventTags, FooterClickEventTags } from './types';
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Modos de operação do Clarity na forlogic-core.
3
+ * - `auto` (padrão): inicializa o Clarity Forlogic se nenhum outro estiver presente; caso contrário, "pega carona" no existente, prefixando eventos com `forlogic_*`.
4
+ * - `disabled`: nunca inicializa nem dispara eventos.
5
+ *
6
+ * @example
7
+ * const value: ClarityMode = {} as ClarityMode;
8
+ */
9
+ export type ClarityMode = 'auto' | 'disabled';
10
+ /** Estado interno de operação após detecção/inicialização *
11
+ * @example
12
+ * const value: ClarityRuntimeMode = {} as ClarityRuntimeMode;
13
+ */
14
+ export type ClarityRuntimeMode = 'owned' | 'piggyback' | 'inactive';
15
+ /**
16
+ * Tipo `ModuleClickEventTags` exportado pela lib.
17
+ * @example
18
+ * const value: ModuleClickEventTags = {} as ModuleClickEventTags;
19
+ */
20
+ export interface ModuleClickEventTags {
21
+ clicked_module: string;
22
+ clicked_module_id?: string;
23
+ is_contracted: string;
24
+ source_module?: string;
25
+ alias?: string;
26
+ }
27
+ /**
28
+ * Tipo `FooterClickEventTags` exportado pela lib.
29
+ * @example
30
+ * const value: FooterClickEventTags = {} as FooterClickEventTags;
31
+ */
32
+ export interface FooterClickEventTags {
33
+ footer_resource: 'educa' | 'saber-gestao' | 'wiki';
34
+ source_module?: string;
35
+ alias?: string;
36
+ }
37
+ declare global {
38
+ interface Window {
39
+ /** Função global instanciada pelo snippet do Clarity (qualquer projeto) */
40
+ clarity?: ((...args: unknown[]) => void) & Record<string, unknown>;
41
+ /** Sinaliza que a forlogic-core foi quem inicializou o Clarity */
42
+ __forlogicClarityOwned?: boolean;
43
+ /** Modo de operação detectado pela forlogic-core */
44
+ __forlogicClarityMode?: ClarityRuntimeMode;
45
+ }
46
+ }
@@ -0,0 +1,34 @@
1
+ import type { ClarityMode } from './types';
2
+ interface UseClarityOptions {
3
+ projectId?: string;
4
+ mode?: ClarityMode;
5
+ }
6
+ /**
7
+ * Hook que inicializa o Microsoft Clarity de forma idempotente e identifica o usuário autenticado.
8
+ *
9
+ * Comportamento:
10
+ * - Se `mode === 'disabled'`, não faz nada.
11
+ * - Em preview/local (shouldUseDevTokens), desabilitado.
12
+ * - Se já existir uma instância Clarity de outro projeto consumidor, entra em modo `piggyback`
13
+ * (não reinicializa, mas eventos disparados pela lib serão prefixados com `forlogic_*`).
14
+ * - Caso contrário, inicializa com o `projectId` informado (modo `owned`).
15
+ *
16
+ * Chame **uma única vez** no topo da árvore (App.tsx ou layout raiz) — internamente
17
+ * sincroniza com o `AuthContext` e re-identifica o usuário em cada login.
18
+ *
19
+ * @example
20
+ * // App.tsx — habilitado apenas em produção
21
+ * function App() {
22
+ * useClarity({
23
+ * projectId: import.meta.env.VITE_CLARITY_PROJECT_ID,
24
+ * mode: import.meta.env.PROD ? 'auto' : 'disabled',
25
+ * });
26
+ * return <CoreProviders>...</CoreProviders>;
27
+ * }
28
+ *
29
+ * @example
30
+ * // Desabilitar explicitamente (ex: ambiente sandbox de cliente)
31
+ * useClarity({ mode: 'disabled' });
32
+ */
33
+ export declare function useClarity({ projectId, mode }: UseClarityOptions): void;
34
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @module integrations
3
+ * Integrações externas opcionais. Ver `./README.md`.
4
+ */
5
+ export * from './clarity';
@@ -0,0 +1,10 @@
1
+ import { Leader } from '../types';
2
+ interface LeadershipDialogProps {
3
+ open: boolean;
4
+ onOpenChange: (open: boolean) => void;
5
+ leader?: Leader;
6
+ prefilledLeaderId?: string | null;
7
+ title: string;
8
+ }
9
+ export declare function LeadershipDialog({ open, onOpenChange, leader, prefilledLeaderId, title }: LeadershipDialogProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,8 @@
1
+ import { Leader } from '../types';
2
+ interface LeadershipFormProps {
3
+ leader?: Leader;
4
+ prefilledLeaderId?: string | null;
5
+ onSuccess?: () => void;
6
+ }
7
+ export declare function LeadershipForm({ leader, prefilledLeaderId, onSuccess }: LeadershipFormProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,19 @@
1
+ import type { TreeTableColumn } from '../../crud/primitives/types';
2
+ import { LeaderNode, UnassociatedUser } from '../types';
3
+ export interface LeadershipPageProps {
4
+ /** Lista de usuários não associados à hierarquia (fornecida pelo consumidor) */
5
+ unassociatedUsers?: UnassociatedUser[];
6
+ /** Callback quando um usuário não associado é movido para a hierarquia */
7
+ onAssociateUser?: (userId: string, targetLeaderId: string | null) => void;
8
+ /** Callback para movimentação customizada (default: usa useUpdateLeaderMutation) */
9
+ onMoveNode?: (draggedId: string, targetId: string | null) => void;
10
+ /** Callback para movimentação em lote customizada */
11
+ onMoveNodes?: (draggedIds: string[], targetId: string | null) => void;
12
+ /** Colunas customizadas para o TreeTable (default: Subordinados + Email) */
13
+ columns?: TreeTableColumn<LeaderNode>[];
14
+ /** Header da coluna de nome (default: "Líder") */
15
+ nameHeader?: string;
16
+ /** Texto da zona de drop raiz (default: t('leadership_make_root')) */
17
+ rootDropLabel?: string;
18
+ }
19
+ export declare function LeadershipPage({ unassociatedUsers, onAssociateUser, onMoveNode: customMoveNode, onMoveNodes: customMoveNodes, columns: customColumns, nameHeader, rootDropLabel, }?: LeadershipPageProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { LeaderNode } from '../types';
2
+ export declare function useLeadershipApi(): import("@tanstack/react-query").UseQueryResult<any[], Error> & {
3
+ data: LeaderNode[] | undefined;
4
+ };
@@ -0,0 +1,29 @@
1
+ interface CreateLeaderData {
2
+ id_user: string;
3
+ id_leader: string | null;
4
+ }
5
+ interface CreateMultipleLeadersData {
6
+ id_leader: string | null;
7
+ users: Array<{
8
+ id_user: string;
9
+ }>;
10
+ }
11
+ interface UpdateLeaderData {
12
+ id: string;
13
+ id_leader: string | null;
14
+ }
15
+ export declare function useCreateSingleLeaderMutation(): import("@tanstack/react-query").UseMutationResult<any, Error, CreateLeaderData, unknown>;
16
+ export declare function useCreateMultipleLeadersMutation(): import("@tanstack/react-query").UseMutationResult<any, Error, CreateMultipleLeadersData, unknown>;
17
+ export declare function useUpdateLeaderMutation(): import("@tanstack/react-query").UseMutationResult<any, Error, UpdateLeaderData, unknown>;
18
+ export declare function useRemoveLeaderMutation(): import("@tanstack/react-query").UseMutationResult<void, Error, string, unknown>;
19
+ export declare function useSyncSubordinatesMutation(): import("@tanstack/react-query").UseMutationResult<{
20
+ unlinked: number;
21
+ updated: number;
22
+ created: number;
23
+ }, Error, {
24
+ leaderUserId: string;
25
+ selectedUsers: Array<{
26
+ id_user: string;
27
+ }>;
28
+ }, unknown>;
29
+ export {};
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Leadership Module
3
+ *
4
+ * Componente hierárquico de liderança reutilizável para gerenciar
5
+ * relações de liderança entre usuários do Qualiex.
6
+ */
7
+ export * from './types';
8
+ export * from './utils/leadershipUtils';
9
+ export * from './hooks/useLeadershipApi';
10
+ export * from './hooks/useLeadershipMutations';
11
+ export * from './components/LeadershipPage';
12
+ export * from './components/LeadershipDialog';
13
+ export * from './components/LeadershipForm';
@@ -0,0 +1,23 @@
1
+ export interface Leader {
2
+ id: string;
3
+ alias: string;
4
+ id_user: string;
5
+ id_leader: string | null;
6
+ is_removed: boolean;
7
+ is_active: boolean;
8
+ created_at: string;
9
+ updated_at: string;
10
+ name?: string;
11
+ email?: string;
12
+ subordinatesCount?: number;
13
+ subordinateNames?: string[];
14
+ }
15
+ export interface UnassociatedUser {
16
+ id: string;
17
+ name: string;
18
+ email: string;
19
+ }
20
+ export interface LeaderNode extends Leader {
21
+ children: LeaderNode[];
22
+ level: number;
23
+ }
@@ -0,0 +1,8 @@
1
+ import { Leader, LeaderNode } from '../types';
2
+ /**
3
+ * Filtra líderes inválidos (sem nome enriquecido) e promove seus filhos
4
+ * para o ancestral válido mais próximo ou para a raiz
5
+ */
6
+ export declare function filterAndPromoteOrphans(leaders: Leader[], validUserIds: Set<string>): Leader[];
7
+ export declare function buildHierarchy(leaders: Leader[]): LeaderNode[];
8
+ export declare function flattenTree(nodes: LeaderNode[]): LeaderNode[];
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Image Editor Component
3
+ *
4
+ * Editor genérico de imagem para forlogic-core.
5
+ * Suporta URL e upload de arquivos.
6
+ *
7
+ * @example
8
+ * ```tsx
9
+ * import { ImageEditor } from 'forlogic-core';
10
+ *
11
+ * <ImageEditor
12
+ * value={imageData}
13
+ * onChange={setImageData}
14
+ * onSubmit={handleSave}
15
+ * onCancel={handleCancel}
16
+ * uploadFunction={myUploadFunction}
17
+ * uploadOptions={{ bucket: 'images', folder: 'content' }}
18
+ * />
19
+ * ```
20
+ */
21
+ import type { MediaEditorProps, ImageBlockContent } from '../types';
22
+ export declare function ImageEditor({ value, onChange, onSubmit, onCancel, uploadFunction, deleteFunction, uploadOptions }: MediaEditorProps<ImageBlockContent>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Image Renderer Component
3
+ *
4
+ * Renderizador genérico de imagem para forlogic-core.
5
+ * Suporta alinhamento, legenda, alt text e download.
6
+ *
7
+ * @example
8
+ * ```tsx
9
+ * import { ImageRenderer } from 'forlogic-core';
10
+ *
11
+ * <ImageRenderer
12
+ * content={{
13
+ * imageUrl: 'https://example.com/image.jpg',
14
+ * caption: 'Minha imagem',
15
+ * alt: t('image_description'),
16
+ * alignment: 'center',
17
+ * allowDownload: true
18
+ * }}
19
+ * />
20
+ * ```
21
+ */
22
+ import type { MediaRendererProps, ImageBlockContent } from '../types';
23
+ export declare function ImageRenderer({ content, className, style }: MediaRendererProps<ImageBlockContent>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { MediaEditorProps, VideoBlockContent } from '../types';
2
+ export declare function VideoEditor({ value, onChange, onSubmit, onCancel, uploadFunction, deleteFunction, uploadOptions }: MediaEditorProps<VideoBlockContent>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { MediaRendererProps, VideoBlockContent } from '../types';
2
+ export declare function VideoRenderer({ content, className, style }: MediaRendererProps<VideoBlockContent>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Generic Media Upload Hook
3
+ *
4
+ * Hook genérico para upload de mídia (imagens, vídeos, arquivos).
5
+ * Requer que o projeto forneça uma função de upload via props.
6
+ */
7
+ import type { UploadResult, UploadFunction, UploadOptions, DeleteFunction } from '../types';
8
+ export interface UseMediaUploadOptions {
9
+ uploadFunction?: UploadFunction;
10
+ deleteFunction?: DeleteFunction;
11
+ defaultOptions?: UploadOptions;
12
+ onSuccess?: (result: UploadResult) => void;
13
+ onError?: (error: Error) => void;
14
+ }
15
+ export declare function useMediaUpload(options?: UseMediaUploadOptions): {
16
+ upload: (file: File, uploadOptions?: UploadOptions) => Promise<UploadResult>;
17
+ deleteMedia: (path: string, bucket?: string) => Promise<void>;
18
+ uploading: boolean;
19
+ };
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Media Module
3
+ *
4
+ * Módulo genérico para gerenciamento de mídia (vídeo, imagem, áudio).
5
+ * Componentes reutilizáveis e independentes de contexto.
6
+ *
7
+ * @example Importar componentes
8
+ * ```tsx
9
+ * import { VideoEditor, VideoRenderer } from 'forlogic-core';
10
+ * ```
11
+ *
12
+ * @example Usar com função de upload customizada
13
+ * ```tsx
14
+ * import { VideoEditor } from 'forlogic-core';
15
+ * import { myUploadService } from './services/upload';
16
+ *
17
+ * function MyComponent() {
18
+ * const uploadFunction = async (file, options) => {
19
+ * const result = await myUploadService.upload(file, options.bucket, options.folder);
20
+ * return {
21
+ * url: result.publicUrl,
22
+ * name: file.name,
23
+ * size: file.size,
24
+ * type: file.type,
25
+ * path: result.path
26
+ * };
27
+ * };
28
+ *
29
+ * return (
30
+ * <VideoEditor
31
+ * value={videoData}
32
+ * uploadFunction={uploadFunction}
33
+ * uploadOptions={{ bucket: 'videos', folder: 'content' }}
34
+ * onSubmit={handleSave}
35
+ * onCancel={handleCancel}
36
+ * />
37
+ * );
38
+ * }
39
+ * ```
40
+ */
41
+ export type { UploadResult, UploadOptions, UploadFunction, DeleteFunction, VideoInputType, VideoProvider, VideoBlockContent, ImageBlockContent, MediaEditorProps, MediaRendererProps } from './types';
42
+ export { VideoEditor } from './components/VideoEditor';
43
+ export { VideoRenderer } from './components/VideoRenderer';
44
+ export { ImageEditor } from './components/ImageEditor';
45
+ export { ImageRenderer } from './components/ImageRenderer';
46
+ export { useMediaUpload } from './hooks/useMediaUpload';
47
+ export type { UseMediaUploadOptions } from './hooks/useMediaUpload';
48
+ export { extractYouTubeId, normalizeYouTubeUrl, extractVimeoId, normalizeVimeoUrl, parseIframeSrc, detectVideoProvider, normalizeVideoUrl } from './utils/videoHelpers';
49
+ export { calculateAspectRatio, resizeKeepingAspect, isImageUrl, extractImageFileName, formatFileSize } from './utils/imageHelpers';
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Media Module Types
3
+ *
4
+ * Tipos genéricos para gerenciamento de mídia (vídeo, imagem, áudio)
5
+ * em aplicações que utilizam forlogic-core.
6
+ */
7
+ export interface UploadResult {
8
+ url: string;
9
+ name: string;
10
+ size: number;
11
+ type: string;
12
+ path: string;
13
+ bucket?: string;
14
+ }
15
+ export interface UploadOptions {
16
+ bucket?: string;
17
+ folder?: string;
18
+ maxSize?: number;
19
+ allowedTypes?: string[];
20
+ }
21
+ export type UploadFunction = (file: File, options?: UploadOptions) => Promise<UploadResult>;
22
+ export interface DeleteFunction {
23
+ (path: string, bucket?: string): Promise<void>;
24
+ }
25
+ export type VideoInputType = 'url' | 'upload' | 'embed';
26
+ export type VideoProvider = 'youtube' | 'vimeo' | 'file' | 'embed';
27
+ export interface VideoBlockContent {
28
+ inputType?: VideoInputType;
29
+ videoUrl?: string;
30
+ videoFile?: string;
31
+ videoPath?: string;
32
+ videoSize?: number;
33
+ embedCode?: string;
34
+ thumbnail?: string;
35
+ thumbnailFile?: string;
36
+ thumbnailPath?: string;
37
+ title?: string;
38
+ autoplay?: boolean;
39
+ controls?: boolean;
40
+ }
41
+ export interface ImageBlockContent {
42
+ imageUrl?: string;
43
+ imageFile?: string;
44
+ imagePath?: string;
45
+ imageSize?: number;
46
+ caption?: string;
47
+ alt?: string;
48
+ width?: number;
49
+ height?: number;
50
+ alignment?: 'left' | 'center' | 'right';
51
+ allowDownload?: boolean;
52
+ }
53
+ export interface MediaEditorProps<T> {
54
+ value: T;
55
+ onChange: (value: T) => void;
56
+ onSubmit: (value: T) => void;
57
+ onCancel: () => void;
58
+ uploadFunction?: UploadFunction;
59
+ deleteFunction?: DeleteFunction;
60
+ uploadOptions?: UploadOptions;
61
+ }
62
+ export interface MediaRendererProps<T> {
63
+ content: T;
64
+ className?: string;
65
+ style?: React.CSSProperties;
66
+ }