forlogic-core 3.0.10 → 4.0.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 (1978) hide show
  1. package/bin/ds-knowledge.js +129 -0
  2. package/dist/action-plans/index.esm.js +1 -1
  3. package/dist/action-plans/index.js +1 -1
  4. package/dist/assets/fonts/Roobert-Bold.woff2 +0 -0
  5. package/dist/assets/fonts/Roobert-Regular.woff2 +0 -0
  6. package/dist/assets/fonts/Roobert-RegularItalic.woff2 +0 -0
  7. package/dist/audit-trail/index.esm.js +1 -1
  8. package/dist/audit-trail/index.js +1 -1
  9. package/dist/auth/commonV5RedirectSuppression.d.ts +6 -0
  10. package/dist/auth/components/ProfilePhotoDialog.d.ts +25 -0
  11. package/dist/auth/contexts/AuthContext.d.ts +11 -0
  12. package/dist/components/dashboards/panels/index.d.ts +1 -0
  13. package/dist/components/dashboards/panels/panel-chart-theme.d.ts +111 -0
  14. package/dist/components/insights/index.d.ts +11 -0
  15. package/dist/components/insights/insight-card.d.ts +88 -0
  16. package/dist/components/insights/insight-motion.d.ts +222 -0
  17. package/dist/components/insights/insight-phases.d.ts +52 -0
  18. package/dist/components/insights/insight-primitives.d.ts +289 -0
  19. package/dist/components/insights/insight-tokens.d.ts +71 -0
  20. package/dist/components/insights/insight-variants.d.ts +153 -0
  21. package/dist/components/insights/insight-widgets.d.ts +145 -0
  22. package/dist/components/layout/AppHeader.d.ts +6 -0
  23. package/dist/components/layout/AppLayout.d.ts +8 -0
  24. package/dist/components/layout/AppSidebar.d.ts +8 -1
  25. package/dist/components/layout/HeaderLegacyMenu.d.ts +18 -0
  26. package/dist/components/layout/HeaderUserMenu.d.ts +24 -0
  27. package/dist/components/layout/PageHeader.d.ts +46 -0
  28. package/dist/components/layout/PageHeaderScope.d.ts +16 -0
  29. package/dist/components/layout/SectionHeading.d.ts +57 -0
  30. package/dist/components/layout/SidebarAtoms.d.ts +60 -0
  31. package/dist/components/layout/SidebarBrandBar.d.ts +27 -0
  32. package/dist/components/layout/sidebar-utils.d.ts +2 -0
  33. package/dist/components/ui/accordion.d.ts +50 -5
  34. package/dist/components/ui/action-button.d.ts +1 -1
  35. package/dist/components/ui/alert-dialog.d.ts +11 -5
  36. package/dist/components/ui/alert.d.ts +1 -1
  37. package/dist/components/ui/badge.d.ts +17 -12
  38. package/dist/components/ui/breadcrumb-icons.d.ts +24 -0
  39. package/dist/components/ui/breadcrumb.d.ts +27 -1
  40. package/dist/components/ui/button.d.ts +9 -22
  41. package/dist/components/ui/calendar.d.ts +13 -2
  42. package/dist/components/ui/card-select-dialog.d.ts +59 -0
  43. package/dist/components/ui/card.d.ts +27 -3
  44. package/dist/components/ui/combobox.d.ts +1 -2
  45. package/dist/components/ui/confirm-dialog.d.ts +61 -0
  46. package/dist/components/ui/date-picker-themed.d.ts +98 -0
  47. package/dist/components/ui/date-picker-variants.d.ts +104 -0
  48. package/dist/components/ui/delete-account-dialog.d.ts +25 -0
  49. package/dist/components/ui/dialog-signal.d.ts +42 -0
  50. package/dist/components/ui/dialog-wizard.d.ts +42 -26
  51. package/dist/components/ui/dialog.d.ts +32 -13
  52. package/dist/components/ui/disabled-menu-item.d.ts +2 -0
  53. package/dist/components/ui/feature-announcement-dialog.d.ts +46 -0
  54. package/dist/components/ui/forlogic-assembly.d.ts +42 -0
  55. package/dist/components/ui/forlogic-loader.d.ts +50 -0
  56. package/dist/components/ui/forlogic-mark.d.ts +25 -0
  57. package/dist/components/ui/icon-hover-duotone.d.ts +19 -0
  58. package/dist/components/ui/input-group.d.ts +3 -3
  59. package/dist/components/ui/input.d.ts +5 -0
  60. package/dist/components/ui/kanban-card.d.ts +104 -0
  61. package/dist/components/ui/overlay-title.d.ts +23 -0
  62. package/dist/components/ui/page-breadcrumb.d.ts +42 -27
  63. package/dist/components/ui/progress.d.ts +3 -1
  64. package/dist/components/ui/resizable.d.ts +1 -1
  65. package/dist/components/ui/scroll-area.d.ts +1 -1
  66. package/dist/components/ui/select.d.ts +4 -1
  67. package/dist/components/ui/selection-chip.d.ts +35 -0
  68. package/dist/components/ui/share-link-dialog.d.ts +31 -0
  69. package/dist/components/ui/sheet.d.ts +12 -10
  70. package/dist/components/ui/side-panel.d.ts +32 -0
  71. package/dist/components/ui/sidebar.d.ts +7 -14
  72. package/dist/components/ui/sonner.d.ts +12 -1
  73. package/dist/components/ui/spinner.d.ts +30 -6
  74. package/dist/components/ui/split-button.d.ts +5 -5
  75. package/dist/components/ui/stat-card.d.ts +97 -0
  76. package/dist/components/ui/status-badge.d.ts +54 -24
  77. package/dist/components/ui/status-bar.d.ts +43 -0
  78. package/dist/components/ui/table-dialog.d.ts +51 -0
  79. package/dist/components/ui/table.d.ts +1 -1
  80. package/dist/components/ui/tabs.d.ts +36 -28
  81. package/dist/components/ui/textarea.d.ts +2 -0
  82. package/dist/components/ui/toggle-group.d.ts +4 -4
  83. package/dist/components/ui/toggle.d.ts +4 -4
  84. package/dist/components/ui/typography.d.ts +1 -1
  85. package/dist/crud/actions/qualityActions.d.ts +55 -0
  86. package/dist/crud/actions/useRowActions.d.ts +114 -0
  87. package/dist/crud/components/ActionMenuItems.d.ts +6 -9
  88. package/dist/crud/components/ColumnManagerMenu.d.ts +56 -0
  89. package/dist/crud/components/ColumnSettingsPopover.d.ts +7 -3
  90. package/dist/crud/components/ContextMenu.d.ts +8 -5
  91. package/dist/crud/components/CrudActionBar.d.ts +3 -1
  92. package/dist/crud/components/CrudGrid.d.ts +7 -1
  93. package/dist/crud/components/CrudTable.d.ts +39 -8
  94. package/dist/crud/components/InlineRowActions.d.ts +9 -5
  95. package/dist/crud/components/KanbanActionBar.d.ts +67 -0
  96. package/dist/crud/components/RowActions.d.ts +30 -0
  97. package/dist/crud/components/RowActionsMenuItems.d.ts +19 -0
  98. package/dist/crud/components/RowContextMenu.d.ts +21 -0
  99. package/dist/crud/components/SelectionToolbar.d.ts +27 -0
  100. package/dist/crud/components/TableRowActions.d.ts +11 -8
  101. package/dist/crud/createCrudPage.d.ts +0 -3
  102. package/dist/crud/createSimpleService.d.ts +0 -2
  103. package/dist/crud/hooks/useColumnDragReorder.d.ts +18 -0
  104. package/dist/crud/hooks/useColumnManager.d.ts +7 -1
  105. package/dist/crud/hooks/useCrud.d.ts +1 -5
  106. package/dist/crud/primitives/ActionMenu.d.ts +10 -54
  107. package/dist/crud/utils/columnTitle.d.ts +37 -0
  108. package/dist/exports/crud.d.ts +17 -0
  109. package/dist/exports/legacy.d.ts +10 -0
  110. package/dist/exports/ui.d.ts +20 -1
  111. package/dist/hooks/useHorizontalOverflow.d.ts +17 -0
  112. package/dist/hooks/usePrefersReducedMotion.d.ts +9 -0
  113. package/dist/index.css +1 -1
  114. package/dist/index.css.map +1 -1
  115. package/dist/index.d.ts +25 -1
  116. package/dist/index.esm.js +1 -1
  117. package/dist/index.js +1 -1
  118. package/dist/leadership/index.esm.js +1 -1
  119. package/dist/leadership/index.js +1 -1
  120. package/dist/legacy/components/ErrorBoundary.d.ts +19 -0
  121. package/dist/legacy/components/dashboards/dashboard-form.d.ts +65 -0
  122. package/dist/legacy/components/dashboards/dashboard-general-view.d.ts +124 -0
  123. package/dist/legacy/components/dashboards/dashboard-grid.d.ts +66 -0
  124. package/dist/legacy/components/dashboards/dashboard-list.d.ts +41 -0
  125. package/dist/legacy/components/dashboards/dashboard-view.d.ts +48 -0
  126. package/dist/legacy/components/dashboards/panels/burndown-panel.d.ts +42 -0
  127. package/dist/legacy/components/dashboards/panels/cartesian-panel.d.ts +67 -0
  128. package/dist/legacy/components/dashboards/panels/list-panel.d.ts +45 -0
  129. package/dist/legacy/components/dashboards/panels/matrix-risk-panel.d.ts +75 -0
  130. package/dist/legacy/components/dashboards/panels/numeric-panel.d.ts +33 -0
  131. package/dist/legacy/components/dashboards/panels/panel-error.d.ts +19 -0
  132. package/dist/legacy/components/dashboards/panels/panel-header.d.ts +27 -0
  133. package/dist/legacy/components/dashboards/panels/panel-loader.d.ts +18 -0
  134. package/dist/legacy/components/dashboards/panels/panel-no-data.d.ts +17 -0
  135. package/dist/legacy/components/dashboards/panels/panel-unavailable.d.ts +17 -0
  136. package/dist/legacy/components/dashboards/panels/pareto-panel.d.ts +31 -0
  137. package/dist/legacy/components/dashboards/panels/performance-panel.d.ts +40 -0
  138. package/dist/legacy/components/dashboards/panels/pie-panel.d.ts +30 -0
  139. package/dist/legacy/components/dashboards/panels/text-panel.d.ts +29 -0
  140. package/dist/legacy/components/layout/AppLayout.d.ts +11 -0
  141. package/dist/legacy/components/layout/AppSidebar.d.ts +10 -0
  142. package/dist/legacy/components/layout/BodyContent.d.ts +60 -0
  143. package/dist/legacy/components/layout/PageHeader.d.ts +26 -0
  144. package/dist/legacy/components/layout/SidebarActionTrigger.d.ts +46 -0
  145. package/dist/legacy/components/layout/SidebarHeader.d.ts +5 -0
  146. package/dist/legacy/components/layout/SidebarLogo.d.ts +5 -0
  147. package/dist/legacy/components/modules/AccessDeniedDialog.d.ts +43 -0
  148. package/dist/legacy/components/modules/ModuleAccessGuard.d.ts +61 -0
  149. package/dist/legacy/components/modules/ModuleGrid.d.ts +9 -0
  150. package/dist/legacy/components/modules/ModuleOfferContent.d.ts +20 -0
  151. package/dist/legacy/components/modules/ModulesContent.d.ts +23 -0
  152. package/dist/legacy/components/modules/ModulesDialog.d.ts +3 -0
  153. package/dist/legacy/components/modules/ModulesFooterCards.d.ts +10 -0
  154. package/dist/legacy/components/modules/icons/ModulesCardIcons.d.ts +20 -0
  155. package/dist/legacy/components/modules/types.d.ts +45 -0
  156. package/dist/legacy/components/ui/alert-dialog.d.ts +102 -0
  157. package/dist/legacy/components/ui/alert.d.ts +44 -0
  158. package/dist/legacy/components/ui/badge.d.ts +41 -0
  159. package/dist/legacy/components/ui/breadcrumb.d.ts +73 -0
  160. package/dist/legacy/components/ui/button.d.ts +66 -0
  161. package/dist/legacy/components/ui/calendar.d.ts +27 -0
  162. package/dist/legacy/components/ui/chart.d.ts +97 -0
  163. package/dist/legacy/components/ui/combo-tree.d.ts +103 -0
  164. package/dist/legacy/components/ui/combobox.d.ts +66 -0
  165. package/dist/legacy/components/ui/command.d.ts +89 -0
  166. package/dist/legacy/components/ui/context-menu.d.ts +122 -0
  167. package/dist/legacy/components/ui/data-list.d.ts +86 -0
  168. package/dist/legacy/components/ui/date-picker.d.ts +31 -0
  169. package/dist/legacy/components/ui/dialog-wizard.d.ts +100 -0
  170. package/dist/legacy/components/ui/dialog.d.ts +229 -0
  171. package/dist/legacy/components/ui/drawer.d.ts +94 -0
  172. package/dist/legacy/components/ui/dropdown-menu.d.ts +180 -0
  173. package/dist/legacy/components/ui/electronic-signature-dialog.d.ts +32 -0
  174. package/dist/legacy/components/ui/empty-state.d.ts +79 -0
  175. package/dist/legacy/components/ui/export-dialog.d.ts +48 -0
  176. package/dist/legacy/components/ui/forlogic-assembly.d.ts +32 -0
  177. package/dist/legacy/components/ui/forlogic-loader.d.ts +30 -0
  178. package/dist/legacy/components/ui/forlogic-mark.d.ts +25 -0
  179. package/dist/legacy/components/ui/form.d.ts +119 -0
  180. package/dist/legacy/components/ui/grid.d.ts +53 -0
  181. package/dist/legacy/components/ui/iframe-dialog.d.ts +25 -0
  182. package/dist/legacy/components/ui/input-group.d.ts +113 -0
  183. package/dist/legacy/components/ui/loading-state.d.ts +52 -0
  184. package/dist/legacy/components/ui/menubar.d.ts +113 -0
  185. package/dist/legacy/components/ui/multiselect-permissions.d.ts +84 -0
  186. package/dist/legacy/components/ui/online-editor-dialog.d.ts +29 -0
  187. package/dist/legacy/components/ui/page-breadcrumb.d.ts +77 -0
  188. package/dist/legacy/components/ui/pagination.d.ts +81 -0
  189. package/dist/legacy/components/ui/report-request-list.d.ts +65 -0
  190. package/dist/legacy/components/ui/resizable.d.ts +38 -0
  191. package/dist/legacy/components/ui/select.d.ts +94 -0
  192. package/dist/legacy/components/ui/sheet.d.ts +108 -0
  193. package/dist/legacy/components/ui/sidebar.d.ts +269 -0
  194. package/dist/legacy/components/ui/skeleton-variants.d.ts +41 -0
  195. package/dist/legacy/components/ui/skeleton.d.ts +14 -0
  196. package/dist/legacy/components/ui/sonner.d.ts +8 -0
  197. package/dist/legacy/components/ui/spinner.d.ts +11 -0
  198. package/dist/legacy/components/ui/split-button.d.ts +77 -0
  199. package/dist/legacy/components/ui/stack.d.ts +17 -0
  200. package/dist/legacy/components/ui/stat-card.d.ts +95 -0
  201. package/dist/legacy/components/ui/status-badge.d.ts +53 -0
  202. package/dist/legacy/components/ui/step-selector.d.ts +47 -0
  203. package/dist/legacy/components/ui/stimulsoft-viewer.d.ts +29 -0
  204. package/dist/legacy/components/ui/tab-page-layout.d.ts +52 -0
  205. package/dist/legacy/components/ui/terms-of-use-dialog.d.ts +103 -0
  206. package/dist/legacy/components/ui/toggle-group.d.ts +37 -0
  207. package/dist/legacy/components/ui/toggle.d.ts +33 -0
  208. package/dist/legacy/components/ui/tooltip.d.ts +61 -0
  209. package/dist/legacy/components/ui/truncated-cell.d.ts +20 -0
  210. package/dist/legacy/components/ui/updates-notification.d.ts +53 -0
  211. package/dist/legacy/components/ui/users-groups-selector.d.ts +88 -0
  212. package/dist/legacy/components/ui/viewer-dialog.d.ts +185 -0
  213. package/dist/legacy/crud/components/BaseForm.d.ts +53 -0
  214. package/dist/legacy/crud/components/ColumnSettingsPopover.d.ts +29 -0
  215. package/dist/legacy/crud/components/ContextMenu.d.ts +22 -0
  216. package/dist/legacy/crud/components/CrudActionBar.d.ts +59 -0
  217. package/dist/legacy/crud/components/CrudGrid.d.ts +53 -0
  218. package/dist/legacy/crud/components/CrudPagination.d.ts +18 -0
  219. package/dist/legacy/crud/components/CrudTable.d.ts +68 -0
  220. package/dist/legacy/crud/components/FilterBar.d.ts +136 -0
  221. package/dist/legacy/crud/components/GroupDropZone.d.ts +17 -0
  222. package/dist/legacy/crud/components/TableFooter.d.ts +15 -0
  223. package/dist/legacy/crud/createCrudPage.d.ts +140 -0
  224. package/dist/legacy/crud/createSimpleService.d.ts +87 -0
  225. package/dist/legacy/crud/generateCrudConfig.d.ts +78 -0
  226. package/dist/legacy/crud/hooks/useBaseForm.d.ts +47 -0
  227. package/dist/legacy/crud/hooks/useColumnManager.d.ts +85 -0
  228. package/dist/legacy/crud/hooks/useCrud.d.ts +156 -0
  229. package/dist/legacy/crud/primitives/ActionMenu.d.ts +70 -0
  230. package/dist/legacy/crud/primitives/FilterBar.d.ts +70 -0
  231. package/dist/legacy/crud/primitives/Pagination.d.ts +30 -0
  232. package/dist/legacy/crud/primitives/Table.d.ts +32 -0
  233. package/dist/legacy/crud/primitives/TreeTable.d.ts +8 -0
  234. package/dist/legacy/crud/utils/routingHelpers.d.ts +41 -0
  235. package/dist/legacy/hooks/useModuleAccess.d.ts +59 -0
  236. package/dist/legacy/hooks/useSidebarResize.d.ts +37 -0
  237. package/dist/legacy/index.css +3 -0
  238. package/dist/legacy/index.d.ts +113 -0
  239. package/dist/legacy/index.esm.js +1 -0
  240. package/dist/legacy/index.js +1 -0
  241. package/dist/motion/tab-crossfade.d.ts +45 -0
  242. package/dist/places/index.esm.js +1 -1
  243. package/dist/places/index.js +1 -1
  244. package/dist/providers/CoreProviders.d.ts +7 -1
  245. package/dist/sign/index.esm.js +1 -1
  246. package/dist/sign/index.js +1 -1
  247. package/dist/tailwind/index.esm.js +79 -8
  248. package/dist/tailwind/index.js +79 -8
  249. package/dist/types/sidebar.d.ts +24 -0
  250. package/dist/types.d.ts +4 -0
  251. package/dist/versioning/DsVersionSwitch.d.ts +20 -0
  252. package/dist/versioning/index.d.ts +12 -0
  253. package/dist/versioning/index.esm.js +1 -0
  254. package/dist/versioning/index.js +1 -0
  255. package/dist/versioning/registry.d.ts +28 -0
  256. package/dist/versioning/resolve-versioned.d.ts +23 -0
  257. package/dist/versioning/version-context.d.ts +45 -0
  258. package/dist/versioning/versioned-components.d.ts +20 -0
  259. package/docs/DS_KNOWLEDGE.md +385 -0
  260. package/docs/DS_KNOWLEDGE_COMPACT.md +75 -0
  261. package/docs/design-system/README.md +1 -1
  262. package/docs/design-system/knowledge/RULES.md +217 -0
  263. package/package.json +54 -7
  264. package/.note/memory/features/import/attachment-idempotency-registry.md +0 -8
  265. package/.note/memory/features/import/attachment-strategy.md +0 -30
  266. package/.note/memory/patterns/admin-i18n-policy.md +0 -20
  267. package/.note/memory/patterns/alias-url-resolution.md +0 -69
  268. package/.note/memory/patterns/doc-sync-rule.md +0 -35
  269. package/.note/memory/patterns/documentation-standard.md +0 -17
  270. package/.note/memory/patterns/dynamic-supabase-config.md +0 -4
  271. package/.note/memory/patterns/environment-detection-logic.md +0 -41
  272. package/.note/memory/patterns/i18n-architecture.md +0 -3
  273. package/.note/memory/security/lib-hardening-roadmap.md +0 -45
  274. package/.note/memory/security/react-router-dom-v7-migration.md +0 -33
  275. package/.note/memory/security/react19-migration-roadmap.md +0 -66
  276. package/dist/action-plans/action-plans/components/ActionPlanAttachmentsTab.d.ts +0 -21
  277. package/dist/action-plans/action-plans/components/ActionPlanCommentsTab.d.ts +0 -21
  278. package/dist/action-plans/action-plans/components/ActionPlanCostTab.d.ts +0 -15
  279. package/dist/action-plans/action-plans/components/ActionPlanGeneralTab.d.ts +0 -21
  280. package/dist/action-plans/action-plans/components/ActionPlanHistoryTab.d.ts +0 -16
  281. package/dist/action-plans/action-plans/components/ActionPlanPage.d.ts +0 -25
  282. package/dist/action-plans/action-plans/components/ActionPlanPredecessorsTab.d.ts +0 -15
  283. package/dist/action-plans/action-plans/components/ActionPlanProgressDialog.d.ts +0 -16
  284. package/dist/action-plans/action-plans/components/ActionPlanProgressTab.d.ts +0 -10
  285. package/dist/action-plans/action-plans/components/ActionPlanStatusBadge.d.ts +0 -18
  286. package/dist/action-plans/action-plans/constants.d.ts +0 -86
  287. package/dist/action-plans/action-plans/hooks/useActionPlan.d.ts +0 -19
  288. package/dist/action-plans/action-plans/hooks/useActionPlanProgress.d.ts +0 -20
  289. package/dist/action-plans/action-plans/index.d.ts +0 -15
  290. package/dist/action-plans/action-plans/types.d.ts +0 -413
  291. package/dist/action-plans/action-plans/utils/formatTime.d.ts +0 -24
  292. package/dist/action-plans/approval-flow/components/ApprovalSidenav.d.ts +0 -16
  293. package/dist/action-plans/approval-flow/components/ApproveDialog.d.ts +0 -13
  294. package/dist/action-plans/approval-flow/components/SelectApproverDialog.d.ts +0 -11
  295. package/dist/action-plans/approval-flow/index.d.ts +0 -4
  296. package/dist/action-plans/approval-flow/types.d.ts +0 -76
  297. package/dist/action-plans/assets/index.d.ts +0 -7
  298. package/dist/action-plans/audit-trail/components/AuditTrailDetails.d.ts +0 -27
  299. package/dist/action-plans/audit-trail/components/AuditTrailFilter.d.ts +0 -29
  300. package/dist/action-plans/audit-trail/components/AuditTrailPage.d.ts +0 -40
  301. package/dist/action-plans/audit-trail/index.d.ts +0 -9
  302. package/dist/action-plans/audit-trail/types.d.ts +0 -209
  303. package/dist/action-plans/audit-trail/utils.d.ts +0 -54
  304. package/dist/action-plans/auth/components/AliasRedirect.d.ts +0 -13
  305. package/dist/action-plans/auth/components/AliasRouteGuard.d.ts +0 -20
  306. package/dist/action-plans/auth/components/EditProfileDialog.d.ts +0 -13
  307. package/dist/action-plans/auth/components/ProtectedRoute.d.ts +0 -11
  308. package/dist/action-plans/auth/components/UserInfo.d.ts +0 -10
  309. package/dist/action-plans/auth/contexts/AuthContext.d.ts +0 -89
  310. package/dist/action-plans/auth/pages/CallbackPage.d.ts +0 -6
  311. package/dist/action-plans/auth/pages/LoginPage.d.ts +0 -2
  312. package/dist/action-plans/auth/services/AuthService.d.ts +0 -64
  313. package/dist/action-plans/auth/services/SupabaseTokenService.d.ts +0 -3
  314. package/dist/action-plans/auth/services/TokenManager.d.ts +0 -66
  315. package/dist/action-plans/auth/services/TokenRegenerationService.d.ts +0 -14
  316. package/dist/action-plans/auth/services/TokenService.d.ts +0 -48
  317. package/dist/action-plans/auth/utils/ErrorInterceptor.d.ts +0 -20
  318. package/dist/action-plans/components/ErrorBoundary.d.ts +0 -19
  319. package/dist/action-plans/components/dashboards/dashboard-form.d.ts +0 -65
  320. package/dist/action-plans/components/dashboards/dashboard-general-view.d.ts +0 -124
  321. package/dist/action-plans/components/dashboards/dashboard-grid.d.ts +0 -66
  322. package/dist/action-plans/components/dashboards/dashboard-list.d.ts +0 -41
  323. package/dist/action-plans/components/dashboards/dashboard-view.d.ts +0 -48
  324. package/dist/action-plans/components/dashboards/panels/burndown-panel.d.ts +0 -41
  325. package/dist/action-plans/components/dashboards/panels/cartesian-panel.d.ts +0 -66
  326. package/dist/action-plans/components/dashboards/panels/list-panel.d.ts +0 -45
  327. package/dist/action-plans/components/dashboards/panels/matrix-risk-panel.d.ts +0 -74
  328. package/dist/action-plans/components/dashboards/panels/numeric-panel.d.ts +0 -32
  329. package/dist/action-plans/components/dashboards/panels/panel-error.d.ts +0 -18
  330. package/dist/action-plans/components/dashboards/panels/panel-header.d.ts +0 -27
  331. package/dist/action-plans/components/dashboards/panels/panel-loader.d.ts +0 -17
  332. package/dist/action-plans/components/dashboards/panels/panel-no-data.d.ts +0 -16
  333. package/dist/action-plans/components/dashboards/panels/panel-unavailable.d.ts +0 -16
  334. package/dist/action-plans/components/dashboards/panels/pareto-panel.d.ts +0 -30
  335. package/dist/action-plans/components/dashboards/panels/performance-panel.d.ts +0 -39
  336. package/dist/action-plans/components/dashboards/panels/pie-panel.d.ts +0 -29
  337. package/dist/action-plans/components/dashboards/panels/text-panel.d.ts +0 -28
  338. package/dist/action-plans/components/layout/AppLayout.d.ts +0 -10
  339. package/dist/action-plans/components/layout/AppSidebar.d.ts +0 -10
  340. package/dist/action-plans/components/layout/BodyContent.d.ts +0 -60
  341. package/dist/action-plans/components/layout/SidebarActionTrigger.d.ts +0 -46
  342. package/dist/action-plans/components/layout/SidebarHeader.d.ts +0 -5
  343. package/dist/action-plans/components/layout/SidebarLogo.d.ts +0 -5
  344. package/dist/action-plans/components/modules/AccessDeniedDialog.d.ts +0 -43
  345. package/dist/action-plans/components/modules/ModuleAccessGuard.d.ts +0 -42
  346. package/dist/action-plans/components/modules/ModuleGrid.d.ts +0 -9
  347. package/dist/action-plans/components/modules/ModuleOfferContent.d.ts +0 -20
  348. package/dist/action-plans/components/modules/ModulesContent.d.ts +0 -21
  349. package/dist/action-plans/components/modules/ModulesDialog.d.ts +0 -3
  350. package/dist/action-plans/components/modules/ModulesFooterCards.d.ts +0 -10
  351. package/dist/action-plans/components/modules/icons/ModulesCardIcons.d.ts +0 -19
  352. package/dist/action-plans/components/modules/types.d.ts +0 -41
  353. package/dist/action-plans/components/ui/alert-dialog.d.ts +0 -102
  354. package/dist/action-plans/components/ui/alert.d.ts +0 -44
  355. package/dist/action-plans/components/ui/badge.d.ts +0 -41
  356. package/dist/action-plans/components/ui/breadcrumb.d.ts +0 -73
  357. package/dist/action-plans/components/ui/button.d.ts +0 -66
  358. package/dist/action-plans/components/ui/calendar.d.ts +0 -24
  359. package/dist/action-plans/components/ui/chart.d.ts +0 -97
  360. package/dist/action-plans/components/ui/combo-tree.d.ts +0 -103
  361. package/dist/action-plans/components/ui/combobox.d.ts +0 -64
  362. package/dist/action-plans/components/ui/command.d.ts +0 -89
  363. package/dist/action-plans/components/ui/context-menu.d.ts +0 -122
  364. package/dist/action-plans/components/ui/data-list.d.ts +0 -86
  365. package/dist/action-plans/components/ui/date-picker.d.ts +0 -19
  366. package/dist/action-plans/components/ui/dialog-wizard.d.ts +0 -100
  367. package/dist/action-plans/components/ui/dialog.d.ts +0 -229
  368. package/dist/action-plans/components/ui/drawer.d.ts +0 -94
  369. package/dist/action-plans/components/ui/dropdown-menu.d.ts +0 -180
  370. package/dist/action-plans/components/ui/electronic-signature-dialog.d.ts +0 -31
  371. package/dist/action-plans/components/ui/empty-state.d.ts +0 -79
  372. package/dist/action-plans/components/ui/export-dialog.d.ts +0 -48
  373. package/dist/action-plans/components/ui/form.d.ts +0 -119
  374. package/dist/action-plans/components/ui/grid.d.ts +0 -53
  375. package/dist/action-plans/components/ui/iframe-dialog.d.ts +0 -24
  376. package/dist/action-plans/components/ui/input-group.d.ts +0 -113
  377. package/dist/action-plans/components/ui/loading-state.d.ts +0 -52
  378. package/dist/action-plans/components/ui/menubar.d.ts +0 -113
  379. package/dist/action-plans/components/ui/multiselect-permissions.d.ts +0 -84
  380. package/dist/action-plans/components/ui/online-editor-dialog.d.ts +0 -28
  381. package/dist/action-plans/components/ui/page-breadcrumb.d.ts +0 -77
  382. package/dist/action-plans/components/ui/pagination.d.ts +0 -81
  383. package/dist/action-plans/components/ui/report-request-list.d.ts +0 -64
  384. package/dist/action-plans/components/ui/resizable.d.ts +0 -38
  385. package/dist/action-plans/components/ui/select.d.ts +0 -94
  386. package/dist/action-plans/components/ui/sheet.d.ts +0 -108
  387. package/dist/action-plans/components/ui/sidebar.d.ts +0 -269
  388. package/dist/action-plans/components/ui/skeleton-variants.d.ts +0 -41
  389. package/dist/action-plans/components/ui/skeleton.d.ts +0 -14
  390. package/dist/action-plans/components/ui/sonner.d.ts +0 -8
  391. package/dist/action-plans/components/ui/spinner.d.ts +0 -11
  392. package/dist/action-plans/components/ui/split-button.d.ts +0 -76
  393. package/dist/action-plans/components/ui/stack.d.ts +0 -17
  394. package/dist/action-plans/components/ui/status-badge.d.ts +0 -52
  395. package/dist/action-plans/components/ui/step-selector.d.ts +0 -46
  396. package/dist/action-plans/components/ui/stimulsoft-viewer.d.ts +0 -28
  397. package/dist/action-plans/components/ui/tab-page-layout.d.ts +0 -52
  398. package/dist/action-plans/components/ui/terms-of-use-dialog.d.ts +0 -102
  399. package/dist/action-plans/components/ui/toggle-group.d.ts +0 -37
  400. package/dist/action-plans/components/ui/toggle.d.ts +0 -33
  401. package/dist/action-plans/components/ui/tooltip.d.ts +0 -61
  402. package/dist/action-plans/components/ui/truncated-cell.d.ts +0 -20
  403. package/dist/action-plans/components/ui/updates-notification.d.ts +0 -47
  404. package/dist/action-plans/components/ui/users-groups-selector.d.ts +0 -87
  405. package/dist/action-plans/components/ui/viewer-dialog.d.ts +0 -184
  406. package/dist/action-plans/config/backend.d.ts +0 -10
  407. package/dist/action-plans/config/environments.d.ts +0 -27
  408. package/dist/action-plans/config/index.d.ts +0 -75
  409. package/dist/action-plans/contexts/LocaleContext.d.ts +0 -15
  410. package/dist/action-plans/contexts/ModalStateContext.d.ts +0 -57
  411. package/dist/action-plans/contexts/ModuleContext.d.ts +0 -34
  412. package/dist/action-plans/contexts/NavigationContext.d.ts +0 -13
  413. package/dist/action-plans/contexts/PageMetadataContext.d.ts +0 -48
  414. package/dist/action-plans/crud/components/BaseForm.d.ts +0 -52
  415. package/dist/action-plans/crud/components/ColumnSettingsPopover.d.ts +0 -28
  416. package/dist/action-plans/crud/components/ContextMenu.d.ts +0 -21
  417. package/dist/action-plans/crud/components/CrudActionBar.d.ts +0 -59
  418. package/dist/action-plans/crud/components/CrudGrid.d.ts +0 -53
  419. package/dist/action-plans/crud/components/CrudPagination.d.ts +0 -17
  420. package/dist/action-plans/crud/components/CrudTable.d.ts +0 -66
  421. package/dist/action-plans/crud/components/FilterBar.d.ts +0 -136
  422. package/dist/action-plans/crud/components/GroupDropZone.d.ts +0 -16
  423. package/dist/action-plans/crud/components/TableFooter.d.ts +0 -14
  424. package/dist/action-plans/crud/createCrudPage.d.ts +0 -134
  425. package/dist/action-plans/crud/createSimpleService.d.ts +0 -85
  426. package/dist/action-plans/crud/generateCrudConfig.d.ts +0 -78
  427. package/dist/action-plans/crud/hooks/useBaseForm.d.ts +0 -47
  428. package/dist/action-plans/crud/hooks/useColumnManager.d.ts +0 -85
  429. package/dist/action-plans/crud/hooks/useCrud.d.ts +0 -152
  430. package/dist/action-plans/crud/primitives/ActionMenu.d.ts +0 -69
  431. package/dist/action-plans/crud/primitives/FilterBar.d.ts +0 -69
  432. package/dist/action-plans/crud/primitives/Pagination.d.ts +0 -29
  433. package/dist/action-plans/crud/primitives/Table.d.ts +0 -31
  434. package/dist/action-plans/crud/primitives/TreeTable.d.ts +0 -7
  435. package/dist/action-plans/crud/utils/routingHelpers.d.ts +0 -41
  436. package/dist/action-plans/custom-form-fields/components/CustomFormFields.d.ts +0 -11
  437. package/dist/action-plans/custom-form-fields/fields/FormDateField.d.ts +0 -9
  438. package/dist/action-plans/custom-form-fields/fields/FormMultiSelectionField.d.ts +0 -9
  439. package/dist/action-plans/custom-form-fields/fields/FormNumericField.d.ts +0 -9
  440. package/dist/action-plans/custom-form-fields/fields/FormQuestionsField.d.ts +0 -9
  441. package/dist/action-plans/custom-form-fields/fields/FormSingleSelectionField.d.ts +0 -9
  442. package/dist/action-plans/custom-form-fields/fields/FormTextField.d.ts +0 -9
  443. package/dist/action-plans/custom-form-fields/fields/FormTimeField.d.ts +0 -9
  444. package/dist/action-plans/custom-form-fields/fields/FormUrlField.d.ts +0 -9
  445. package/dist/action-plans/custom-form-fields/fields/ReadOnlyTextField.d.ts +0 -9
  446. package/dist/action-plans/custom-form-fields/index.d.ts +0 -13
  447. package/dist/action-plans/custom-form-fields/types.d.ts +0 -206
  448. package/dist/action-plans/exports/action-plans.d.ts +0 -16
  449. package/dist/action-plans/exports/audit-trail.d.ts +0 -1
  450. package/dist/action-plans/exports/crud.d.ts +0 -31
  451. package/dist/action-plans/exports/custom-form-fields.d.ts +0 -1
  452. package/dist/action-plans/exports/file-upload.d.ts +0 -1
  453. package/dist/action-plans/exports/integrations.d.ts +0 -15
  454. package/dist/action-plans/exports/ui.d.ts +0 -100
  455. package/dist/action-plans/file-upload/components/SingleFileUpload.d.ts +0 -102
  456. package/dist/action-plans/file-upload/index.d.ts +0 -6
  457. package/dist/action-plans/file-upload/types.d.ts +0 -26
  458. package/dist/action-plans/file-upload/utils/formatBytes.d.ts +0 -6
  459. package/dist/action-plans/file-upload/utils/getFileExtension.d.ts +0 -6
  460. package/dist/action-plans/hooks/useModuleAccess.d.ts +0 -59
  461. package/dist/action-plans/hooks/useSidebarResize.d.ts +0 -37
  462. package/dist/action-plans/i18n/LanguageBootstrap.d.ts +0 -14
  463. package/dist/action-plans/i18n/config.d.ts +0 -13
  464. package/dist/action-plans/i18n/constants.d.ts +0 -126
  465. package/dist/action-plans/i18n/index.d.ts +0 -12
  466. package/dist/action-plans/i18n/utils.d.ts +0 -14
  467. package/dist/action-plans/integrations/clarity/clarityTracking.d.ts +0 -31
  468. package/dist/action-plans/integrations/clarity/index.d.ts +0 -3
  469. package/dist/action-plans/integrations/clarity/types.d.ts +0 -46
  470. package/dist/action-plans/integrations/clarity/useClarity.d.ts +0 -34
  471. package/dist/action-plans/integrations/index.d.ts +0 -5
  472. package/dist/action-plans/leadership/components/LeadershipDialog.d.ts +0 -10
  473. package/dist/action-plans/leadership/components/LeadershipForm.d.ts +0 -8
  474. package/dist/action-plans/leadership/components/LeadershipPage.d.ts +0 -19
  475. package/dist/action-plans/leadership/hooks/useLeadershipApi.d.ts +0 -4
  476. package/dist/action-plans/leadership/hooks/useLeadershipMutations.d.ts +0 -29
  477. package/dist/action-plans/leadership/index.d.ts +0 -13
  478. package/dist/action-plans/leadership/types.d.ts +0 -23
  479. package/dist/action-plans/leadership/utils/leadershipUtils.d.ts +0 -8
  480. package/dist/action-plans/media/components/ImageEditor.d.ts +0 -22
  481. package/dist/action-plans/media/components/ImageRenderer.d.ts +0 -23
  482. package/dist/action-plans/media/components/VideoEditor.d.ts +0 -2
  483. package/dist/action-plans/media/components/VideoRenderer.d.ts +0 -2
  484. package/dist/action-plans/media/hooks/useMediaUpload.d.ts +0 -19
  485. package/dist/action-plans/media/index.d.ts +0 -49
  486. package/dist/action-plans/media/types.d.ts +0 -66
  487. package/dist/action-plans/media/utils/imageHelpers.d.ts +0 -28
  488. package/dist/action-plans/media/utils/videoHelpers.d.ts +0 -35
  489. package/dist/action-plans/mind-map/components/MindMap.d.ts +0 -23
  490. package/dist/action-plans/mind-map/components/MindMapConnection.d.ts +0 -12
  491. package/dist/action-plans/mind-map/components/MindMapNodeView.d.ts +0 -24
  492. package/dist/action-plans/mind-map/components/MindMapToolbar.d.ts +0 -26
  493. package/dist/action-plans/mind-map/hooks/useMindMapKeyboard.d.ts +0 -15
  494. package/dist/action-plans/mind-map/hooks/useMindMapLayout.d.ts +0 -5
  495. package/dist/action-plans/mind-map/hooks/useMindMapPanZoom.d.ts +0 -21
  496. package/dist/action-plans/mind-map/hooks/useMindMapState.d.ts +0 -32
  497. package/dist/action-plans/mind-map/index.d.ts +0 -4
  498. package/dist/action-plans/mind-map/types.d.ts +0 -91
  499. package/dist/action-plans/mind-map/utils/export-image.d.ts +0 -9
  500. package/dist/action-plans/mind-map/utils/layout.d.ts +0 -15
  501. package/dist/action-plans/mind-map/utils/nodeOps.d.ts +0 -66
  502. package/dist/action-plans/mind-map/utils/serialize.d.ts +0 -10
  503. package/dist/action-plans/modules/softwaresMap.d.ts +0 -4
  504. package/dist/action-plans/places/components/ManageAccessModal.d.ts +0 -11
  505. package/dist/action-plans/places/components/PlaceCard.d.ts +0 -12
  506. package/dist/action-plans/places/components/PlacesList.d.ts +0 -12
  507. package/dist/action-plans/places/index.d.ts +0 -8
  508. package/dist/action-plans/places/services/PlaceService.d.ts +0 -9
  509. package/dist/action-plans/places/types.d.ts +0 -10
  510. package/dist/action-plans/providers/CoreProviders.d.ts +0 -107
  511. package/dist/action-plans/providers/index.d.ts +0 -2
  512. package/dist/action-plans/qualiex/components/QualiexUserField.d.ts +0 -133
  513. package/dist/action-plans/qualiex/hooks/useQualiexUsers.d.ts +0 -41
  514. package/dist/action-plans/qualiex/services/qualiexApi.d.ts +0 -75
  515. package/dist/action-plans/qualiex/utils/QualiexErrorInterceptor.d.ts +0 -20
  516. package/dist/action-plans/qualiex/utils/userPlaceUtils.d.ts +0 -16
  517. package/dist/action-plans/services/BaseService.d.ts +0 -51
  518. package/dist/action-plans/services/EmailService.d.ts +0 -110
  519. package/dist/action-plans/services/ErrorService.d.ts +0 -19
  520. package/dist/action-plans/services/QualiexEnrichmentService.d.ts +0 -53
  521. package/dist/action-plans/services/QualiexFieldHelpers.d.ts +0 -17
  522. package/dist/action-plans/setup/favicon.d.ts +0 -1
  523. package/dist/action-plans/setup.d.ts +0 -16
  524. package/dist/action-plans/sign/components/D4SignWidget.d.ts +0 -2
  525. package/dist/action-plans/sign/components/DocumentSigner.d.ts +0 -2
  526. package/dist/action-plans/sign/components/SignConfigForm.d.ts +0 -2
  527. package/dist/action-plans/sign/components/SignWidget.d.ts +0 -9
  528. package/dist/action-plans/sign/hooks/useSignConfig.d.ts +0 -6
  529. package/dist/action-plans/sign/index.d.ts +0 -8
  530. package/dist/action-plans/sign/services/signService.d.ts +0 -17
  531. package/dist/action-plans/sign/types.d.ts +0 -53
  532. package/dist/action-plans/sign/utils/loadClicksignScript.d.ts +0 -13
  533. package/dist/action-plans/supabase/SupabaseSingleton.d.ts +0 -34
  534. package/dist/action-plans/supabase/client.d.ts +0 -2
  535. package/dist/action-plans/supabase/legacyKeyGuard.d.ts +0 -19
  536. package/dist/action-plans/supabase/publicClient.d.ts +0 -2
  537. package/dist/action-plans/supabase/types.d.ts +0 -377
  538. package/dist/action-plans/team-selector/components/TeamSelector.d.ts +0 -24
  539. package/dist/action-plans/team-selector/index.d.ts +0 -2
  540. package/dist/action-plans/team-selector/types.d.ts +0 -10
  541. package/dist/action-plans/types/sidebar.d.ts +0 -52
  542. package/dist/action-plans/utils/color.d.ts +0 -26
  543. package/dist/action-plans/utils/formatters/currencyFormatters.d.ts +0 -1
  544. package/dist/action-plans/utils/formatters/dateFormatters.d.ts +0 -52
  545. package/dist/action-plans/utils/index.d.ts +0 -9
  546. package/dist/action-plans/utils/linkHelpers.d.ts +0 -9
  547. package/dist/action-plans/utils/load-fonts.d.ts +0 -1
  548. package/dist/audit-trail/action-plans/components/ActionPlanAttachmentsTab.d.ts +0 -21
  549. package/dist/audit-trail/action-plans/components/ActionPlanCommentsTab.d.ts +0 -21
  550. package/dist/audit-trail/action-plans/components/ActionPlanCostTab.d.ts +0 -15
  551. package/dist/audit-trail/action-plans/components/ActionPlanGeneralTab.d.ts +0 -21
  552. package/dist/audit-trail/action-plans/components/ActionPlanHistoryTab.d.ts +0 -16
  553. package/dist/audit-trail/action-plans/components/ActionPlanPage.d.ts +0 -25
  554. package/dist/audit-trail/action-plans/components/ActionPlanPredecessorsTab.d.ts +0 -15
  555. package/dist/audit-trail/action-plans/components/ActionPlanProgressDialog.d.ts +0 -16
  556. package/dist/audit-trail/action-plans/components/ActionPlanProgressTab.d.ts +0 -10
  557. package/dist/audit-trail/action-plans/components/ActionPlanStatusBadge.d.ts +0 -18
  558. package/dist/audit-trail/action-plans/constants.d.ts +0 -86
  559. package/dist/audit-trail/action-plans/hooks/useActionPlan.d.ts +0 -19
  560. package/dist/audit-trail/action-plans/hooks/useActionPlanProgress.d.ts +0 -20
  561. package/dist/audit-trail/action-plans/index.d.ts +0 -15
  562. package/dist/audit-trail/action-plans/types.d.ts +0 -413
  563. package/dist/audit-trail/action-plans/utils/formatTime.d.ts +0 -24
  564. package/dist/audit-trail/approval-flow/components/ApprovalSidenav.d.ts +0 -16
  565. package/dist/audit-trail/approval-flow/components/ApproveDialog.d.ts +0 -13
  566. package/dist/audit-trail/approval-flow/components/SelectApproverDialog.d.ts +0 -11
  567. package/dist/audit-trail/approval-flow/index.d.ts +0 -4
  568. package/dist/audit-trail/approval-flow/types.d.ts +0 -76
  569. package/dist/audit-trail/assets/index.d.ts +0 -7
  570. package/dist/audit-trail/audit-trail/components/AuditTrailDetails.d.ts +0 -27
  571. package/dist/audit-trail/audit-trail/components/AuditTrailFilter.d.ts +0 -29
  572. package/dist/audit-trail/audit-trail/components/AuditTrailPage.d.ts +0 -40
  573. package/dist/audit-trail/audit-trail/index.d.ts +0 -9
  574. package/dist/audit-trail/audit-trail/types.d.ts +0 -209
  575. package/dist/audit-trail/audit-trail/utils.d.ts +0 -54
  576. package/dist/audit-trail/auth/components/AliasRedirect.d.ts +0 -13
  577. package/dist/audit-trail/auth/components/AliasRouteGuard.d.ts +0 -20
  578. package/dist/audit-trail/auth/components/EditProfileDialog.d.ts +0 -13
  579. package/dist/audit-trail/auth/components/ProtectedRoute.d.ts +0 -11
  580. package/dist/audit-trail/auth/components/UserInfo.d.ts +0 -10
  581. package/dist/audit-trail/auth/contexts/AuthContext.d.ts +0 -89
  582. package/dist/audit-trail/auth/pages/CallbackPage.d.ts +0 -6
  583. package/dist/audit-trail/auth/pages/LoginPage.d.ts +0 -2
  584. package/dist/audit-trail/auth/services/AuthService.d.ts +0 -64
  585. package/dist/audit-trail/auth/services/SupabaseTokenService.d.ts +0 -3
  586. package/dist/audit-trail/auth/services/TokenManager.d.ts +0 -66
  587. package/dist/audit-trail/auth/services/TokenRegenerationService.d.ts +0 -14
  588. package/dist/audit-trail/auth/services/TokenService.d.ts +0 -48
  589. package/dist/audit-trail/auth/utils/ErrorInterceptor.d.ts +0 -20
  590. package/dist/audit-trail/components/ErrorBoundary.d.ts +0 -19
  591. package/dist/audit-trail/components/dashboards/dashboard-form.d.ts +0 -65
  592. package/dist/audit-trail/components/dashboards/dashboard-general-view.d.ts +0 -124
  593. package/dist/audit-trail/components/dashboards/dashboard-grid.d.ts +0 -66
  594. package/dist/audit-trail/components/dashboards/dashboard-list.d.ts +0 -41
  595. package/dist/audit-trail/components/dashboards/dashboard-panel-renderer.d.ts +0 -31
  596. package/dist/audit-trail/components/dashboards/dashboard-view.d.ts +0 -48
  597. package/dist/audit-trail/components/dashboards/helpers.d.ts +0 -86
  598. package/dist/audit-trail/components/dashboards/index.d.ts +0 -9
  599. package/dist/audit-trail/components/dashboards/panels/burndown-panel.d.ts +0 -41
  600. package/dist/audit-trail/components/dashboards/panels/cartesian-panel.d.ts +0 -66
  601. package/dist/audit-trail/components/dashboards/panels/index.d.ts +0 -14
  602. package/dist/audit-trail/components/dashboards/panels/list-panel.d.ts +0 -45
  603. package/dist/audit-trail/components/dashboards/panels/matrix-risk-panel.d.ts +0 -74
  604. package/dist/audit-trail/components/dashboards/panels/numeric-panel.d.ts +0 -32
  605. package/dist/audit-trail/components/dashboards/panels/panel-error.d.ts +0 -18
  606. package/dist/audit-trail/components/dashboards/panels/panel-header.d.ts +0 -27
  607. package/dist/audit-trail/components/dashboards/panels/panel-loader.d.ts +0 -17
  608. package/dist/audit-trail/components/dashboards/panels/panel-no-data.d.ts +0 -16
  609. package/dist/audit-trail/components/dashboards/panels/panel-unavailable.d.ts +0 -16
  610. package/dist/audit-trail/components/dashboards/panels/pareto-panel.d.ts +0 -30
  611. package/dist/audit-trail/components/dashboards/panels/performance-panel.d.ts +0 -39
  612. package/dist/audit-trail/components/dashboards/panels/pie-panel.d.ts +0 -29
  613. package/dist/audit-trail/components/dashboards/panels/text-panel.d.ts +0 -28
  614. package/dist/audit-trail/components/dashboards/types.d.ts +0 -755
  615. package/dist/audit-trail/components/layout/AppHeader.d.ts +0 -6
  616. package/dist/audit-trail/components/layout/AppLayout.d.ts +0 -10
  617. package/dist/audit-trail/components/layout/AppSidebar.d.ts +0 -10
  618. package/dist/audit-trail/components/layout/BodyContent.d.ts +0 -60
  619. package/dist/audit-trail/components/layout/SidebarActionTrigger.d.ts +0 -46
  620. package/dist/audit-trail/components/layout/SidebarHeader.d.ts +0 -5
  621. package/dist/audit-trail/components/layout/SidebarLogo.d.ts +0 -5
  622. package/dist/audit-trail/components/layout/sidebar-utils.d.ts +0 -12
  623. package/dist/audit-trail/components/modules/AccessDeniedDialog.d.ts +0 -43
  624. package/dist/audit-trail/components/modules/ModuleAccessGuard.d.ts +0 -42
  625. package/dist/audit-trail/components/modules/ModuleGrid.d.ts +0 -9
  626. package/dist/audit-trail/components/modules/ModuleOfferContent.d.ts +0 -20
  627. package/dist/audit-trail/components/modules/ModulesContent.d.ts +0 -21
  628. package/dist/audit-trail/components/modules/ModulesDialog.d.ts +0 -3
  629. package/dist/audit-trail/components/modules/ModulesFooterCards.d.ts +0 -10
  630. package/dist/audit-trail/components/modules/icons/ModulesCardIcons.d.ts +0 -19
  631. package/dist/audit-trail/components/modules/index.d.ts +0 -14
  632. package/dist/audit-trail/components/modules/modulesData.d.ts +0 -6
  633. package/dist/audit-trail/components/modules/types.d.ts +0 -41
  634. package/dist/audit-trail/components/ui/accordion.d.ts +0 -42
  635. package/dist/audit-trail/components/ui/action-button.d.ts +0 -48
  636. package/dist/audit-trail/components/ui/alert-dialog.d.ts +0 -102
  637. package/dist/audit-trail/components/ui/alert.d.ts +0 -44
  638. package/dist/audit-trail/components/ui/avatar.d.ts +0 -36
  639. package/dist/audit-trail/components/ui/badge.d.ts +0 -41
  640. package/dist/audit-trail/components/ui/breadcrumb.d.ts +0 -73
  641. package/dist/audit-trail/components/ui/button-group.d.ts +0 -24
  642. package/dist/audit-trail/components/ui/button.d.ts +0 -66
  643. package/dist/audit-trail/components/ui/calendar.d.ts +0 -24
  644. package/dist/audit-trail/components/ui/card.d.ts +0 -57
  645. package/dist/audit-trail/components/ui/chart.d.ts +0 -97
  646. package/dist/audit-trail/components/ui/checkbox.d.ts +0 -15
  647. package/dist/audit-trail/components/ui/collapsible.d.ts +0 -20
  648. package/dist/audit-trail/components/ui/color-picker.d.ts +0 -19
  649. package/dist/audit-trail/components/ui/combo-tree.d.ts +0 -103
  650. package/dist/audit-trail/components/ui/combobox.d.ts +0 -64
  651. package/dist/audit-trail/components/ui/command.d.ts +0 -89
  652. package/dist/audit-trail/components/ui/context-menu.d.ts +0 -122
  653. package/dist/audit-trail/components/ui/data-list.d.ts +0 -86
  654. package/dist/audit-trail/components/ui/date-picker.d.ts +0 -19
  655. package/dist/audit-trail/components/ui/dialog-wizard.d.ts +0 -100
  656. package/dist/audit-trail/components/ui/dialog.d.ts +0 -229
  657. package/dist/audit-trail/components/ui/disabled-menu-item.d.ts +0 -25
  658. package/dist/audit-trail/components/ui/drawer.d.ts +0 -94
  659. package/dist/audit-trail/components/ui/dropdown-menu.d.ts +0 -180
  660. package/dist/audit-trail/components/ui/electronic-signature-dialog.d.ts +0 -31
  661. package/dist/audit-trail/components/ui/empty-state.d.ts +0 -79
  662. package/dist/audit-trail/components/ui/export-dialog.d.ts +0 -48
  663. package/dist/audit-trail/components/ui/form.d.ts +0 -119
  664. package/dist/audit-trail/components/ui/grid.d.ts +0 -53
  665. package/dist/audit-trail/components/ui/hover-card.d.ts +0 -21
  666. package/dist/audit-trail/components/ui/icon-picker.d.ts +0 -17
  667. package/dist/audit-trail/components/ui/iframe-dialog.d.ts +0 -24
  668. package/dist/audit-trail/components/ui/input-group.d.ts +0 -113
  669. package/dist/audit-trail/components/ui/input.d.ts +0 -24
  670. package/dist/audit-trail/components/ui/label.d.ts +0 -23
  671. package/dist/audit-trail/components/ui/loading-state.d.ts +0 -52
  672. package/dist/audit-trail/components/ui/menubar.d.ts +0 -113
  673. package/dist/audit-trail/components/ui/multiselect-permissions.d.ts +0 -84
  674. package/dist/audit-trail/components/ui/navigation-menu.d.ts +0 -57
  675. package/dist/audit-trail/components/ui/onboarding-dialog.d.ts +0 -58
  676. package/dist/audit-trail/components/ui/online-editor-dialog.d.ts +0 -28
  677. package/dist/audit-trail/components/ui/page-breadcrumb.d.ts +0 -77
  678. package/dist/audit-trail/components/ui/pagination.d.ts +0 -81
  679. package/dist/audit-trail/components/ui/popover.d.ts +0 -57
  680. package/dist/audit-trail/components/ui/progress.d.ts +0 -22
  681. package/dist/audit-trail/components/ui/radio-group.d.ts +0 -66
  682. package/dist/audit-trail/components/ui/report-request-list.d.ts +0 -64
  683. package/dist/audit-trail/components/ui/resizable.d.ts +0 -38
  684. package/dist/audit-trail/components/ui/rich-text-editor.d.ts +0 -58
  685. package/dist/audit-trail/components/ui/scroll-area.d.ts +0 -40
  686. package/dist/audit-trail/components/ui/select.d.ts +0 -94
  687. package/dist/audit-trail/components/ui/separator.d.ts +0 -17
  688. package/dist/audit-trail/components/ui/sheet.d.ts +0 -108
  689. package/dist/audit-trail/components/ui/sidebar.d.ts +0 -269
  690. package/dist/audit-trail/components/ui/skeleton-variants.d.ts +0 -41
  691. package/dist/audit-trail/components/ui/skeleton.d.ts +0 -14
  692. package/dist/audit-trail/components/ui/slider.d.ts +0 -9
  693. package/dist/audit-trail/components/ui/sonner.d.ts +0 -8
  694. package/dist/audit-trail/components/ui/spinner.d.ts +0 -11
  695. package/dist/audit-trail/components/ui/split-button.d.ts +0 -76
  696. package/dist/audit-trail/components/ui/stack.d.ts +0 -17
  697. package/dist/audit-trail/components/ui/status-badge.d.ts +0 -52
  698. package/dist/audit-trail/components/ui/step-selector.d.ts +0 -46
  699. package/dist/audit-trail/components/ui/stimulsoft-viewer.d.ts +0 -28
  700. package/dist/audit-trail/components/ui/switch.d.ts +0 -25
  701. package/dist/audit-trail/components/ui/tab-page-layout.d.ts +0 -52
  702. package/dist/audit-trail/components/ui/table-resize-handle.d.ts +0 -22
  703. package/dist/audit-trail/components/ui/table.d.ts +0 -112
  704. package/dist/audit-trail/components/ui/tabs.d.ts +0 -66
  705. package/dist/audit-trail/components/ui/terms-of-use-dialog.d.ts +0 -102
  706. package/dist/audit-trail/components/ui/textarea.d.ts +0 -33
  707. package/dist/audit-trail/components/ui/timepicker.d.ts +0 -34
  708. package/dist/audit-trail/components/ui/toggle-group.d.ts +0 -37
  709. package/dist/audit-trail/components/ui/toggle.d.ts +0 -33
  710. package/dist/audit-trail/components/ui/tooltip.d.ts +0 -61
  711. package/dist/audit-trail/components/ui/truncated-cell.d.ts +0 -20
  712. package/dist/audit-trail/components/ui/typography.d.ts +0 -135
  713. package/dist/audit-trail/components/ui/updates-notification.d.ts +0 -47
  714. package/dist/audit-trail/components/ui/users-groups-selector.d.ts +0 -87
  715. package/dist/audit-trail/components/ui/viewer-dialog.d.ts +0 -184
  716. package/dist/audit-trail/config/backend.d.ts +0 -10
  717. package/dist/audit-trail/config/environments.d.ts +0 -27
  718. package/dist/audit-trail/config/index.d.ts +0 -75
  719. package/dist/audit-trail/contexts/LocaleContext.d.ts +0 -15
  720. package/dist/audit-trail/contexts/ModalStateContext.d.ts +0 -57
  721. package/dist/audit-trail/contexts/ModuleContext.d.ts +0 -34
  722. package/dist/audit-trail/contexts/NavigationContext.d.ts +0 -13
  723. package/dist/audit-trail/contexts/PageMetadataContext.d.ts +0 -48
  724. package/dist/audit-trail/crud/components/ActionMenuItems.d.ts +0 -22
  725. package/dist/audit-trail/crud/components/BaseForm.d.ts +0 -52
  726. package/dist/audit-trail/crud/components/ColumnSettingsPopover.d.ts +0 -28
  727. package/dist/audit-trail/crud/components/ContextMenu.d.ts +0 -21
  728. package/dist/audit-trail/crud/components/CrudActionBar.d.ts +0 -59
  729. package/dist/audit-trail/crud/components/CrudGrid.d.ts +0 -53
  730. package/dist/audit-trail/crud/components/CrudPagination.d.ts +0 -17
  731. package/dist/audit-trail/crud/components/CrudTable.d.ts +0 -66
  732. package/dist/audit-trail/crud/components/FilterBar.d.ts +0 -136
  733. package/dist/audit-trail/crud/components/GroupDropZone.d.ts +0 -16
  734. package/dist/audit-trail/crud/components/InlineRowActions.d.ts +0 -15
  735. package/dist/audit-trail/crud/components/SelectionCheckbox.d.ts +0 -9
  736. package/dist/audit-trail/crud/components/TableFooter.d.ts +0 -14
  737. package/dist/audit-trail/crud/components/TableRowActions.d.ts +0 -19
  738. package/dist/audit-trail/crud/createCrudPage.d.ts +0 -134
  739. package/dist/audit-trail/crud/createSimpleService.d.ts +0 -85
  740. package/dist/audit-trail/crud/generateCrudConfig.d.ts +0 -78
  741. package/dist/audit-trail/crud/hooks/useBaseForm.d.ts +0 -47
  742. package/dist/audit-trail/crud/hooks/useColumnDragReorder.d.ts +0 -19
  743. package/dist/audit-trail/crud/hooks/useColumnManager.d.ts +0 -85
  744. package/dist/audit-trail/crud/hooks/useCrud.d.ts +0 -152
  745. package/dist/audit-trail/crud/primitives/ActionMenu.d.ts +0 -69
  746. package/dist/audit-trail/crud/primitives/FilterBar.d.ts +0 -69
  747. package/dist/audit-trail/crud/primitives/Pagination.d.ts +0 -29
  748. package/dist/audit-trail/crud/primitives/Table.d.ts +0 -31
  749. package/dist/audit-trail/crud/primitives/TreeTable.d.ts +0 -7
  750. package/dist/audit-trail/crud/primitives/index.d.ts +0 -12
  751. package/dist/audit-trail/crud/primitives/types.d.ts +0 -199
  752. package/dist/audit-trail/crud/utils/routingHelpers.d.ts +0 -41
  753. package/dist/audit-trail/custom-form-fields/components/CustomFormFields.d.ts +0 -11
  754. package/dist/audit-trail/custom-form-fields/fields/FormDateField.d.ts +0 -9
  755. package/dist/audit-trail/custom-form-fields/fields/FormMultiSelectionField.d.ts +0 -9
  756. package/dist/audit-trail/custom-form-fields/fields/FormNumericField.d.ts +0 -9
  757. package/dist/audit-trail/custom-form-fields/fields/FormQuestionsField.d.ts +0 -9
  758. package/dist/audit-trail/custom-form-fields/fields/FormSingleSelectionField.d.ts +0 -9
  759. package/dist/audit-trail/custom-form-fields/fields/FormTextField.d.ts +0 -9
  760. package/dist/audit-trail/custom-form-fields/fields/FormTimeField.d.ts +0 -9
  761. package/dist/audit-trail/custom-form-fields/fields/FormUrlField.d.ts +0 -9
  762. package/dist/audit-trail/custom-form-fields/fields/ReadOnlyTextField.d.ts +0 -9
  763. package/dist/audit-trail/custom-form-fields/index.d.ts +0 -13
  764. package/dist/audit-trail/custom-form-fields/types.d.ts +0 -206
  765. package/dist/audit-trail/exports/action-plans.d.ts +0 -16
  766. package/dist/audit-trail/exports/audit-trail.d.ts +0 -1
  767. package/dist/audit-trail/exports/crud.d.ts +0 -31
  768. package/dist/audit-trail/exports/custom-form-fields.d.ts +0 -1
  769. package/dist/audit-trail/exports/file-upload.d.ts +0 -1
  770. package/dist/audit-trail/exports/integrations.d.ts +0 -15
  771. package/dist/audit-trail/exports/ui.d.ts +0 -100
  772. package/dist/audit-trail/file-upload/components/SingleFileUpload.d.ts +0 -102
  773. package/dist/audit-trail/file-upload/index.d.ts +0 -6
  774. package/dist/audit-trail/file-upload/types.d.ts +0 -26
  775. package/dist/audit-trail/file-upload/utils/formatBytes.d.ts +0 -6
  776. package/dist/audit-trail/file-upload/utils/getFileExtension.d.ts +0 -6
  777. package/dist/audit-trail/hooks/useActiveModules.d.ts +0 -45
  778. package/dist/audit-trail/hooks/useAliasFromUrl.d.ts +0 -33
  779. package/dist/audit-trail/hooks/useColumnResize.d.ts +0 -45
  780. package/dist/audit-trail/hooks/useDebounce.d.ts +0 -56
  781. package/dist/audit-trail/hooks/useDerivedContractedModules.d.ts +0 -8
  782. package/dist/audit-trail/hooks/useI18nFormatters.d.ts +0 -40
  783. package/dist/audit-trail/hooks/useMediaQuery.d.ts +0 -14
  784. package/dist/audit-trail/hooks/useModuleAccess.d.ts +0 -59
  785. package/dist/audit-trail/hooks/usePageTitle.d.ts +0 -10
  786. package/dist/audit-trail/hooks/usePermissionQuery.d.ts +0 -49
  787. package/dist/audit-trail/hooks/useRowResize.d.ts +0 -37
  788. package/dist/audit-trail/hooks/useSidebarResize.d.ts +0 -37
  789. package/dist/audit-trail/hooks/useUpdatesNotification.d.ts +0 -27
  790. package/dist/audit-trail/hooks/useWizard.d.ts +0 -40
  791. package/dist/audit-trail/i18n/LanguageBootstrap.d.ts +0 -14
  792. package/dist/audit-trail/i18n/config.d.ts +0 -13
  793. package/dist/audit-trail/i18n/constants.d.ts +0 -126
  794. package/dist/audit-trail/i18n/index.d.ts +0 -12
  795. package/dist/audit-trail/i18n/utils.d.ts +0 -14
  796. package/dist/audit-trail/integrations/clarity/clarityTracking.d.ts +0 -31
  797. package/dist/audit-trail/integrations/clarity/index.d.ts +0 -3
  798. package/dist/audit-trail/integrations/clarity/types.d.ts +0 -46
  799. package/dist/audit-trail/integrations/clarity/useClarity.d.ts +0 -34
  800. package/dist/audit-trail/integrations/index.d.ts +0 -5
  801. package/dist/audit-trail/leadership/components/LeadershipDialog.d.ts +0 -10
  802. package/dist/audit-trail/leadership/components/LeadershipForm.d.ts +0 -8
  803. package/dist/audit-trail/leadership/components/LeadershipPage.d.ts +0 -19
  804. package/dist/audit-trail/leadership/hooks/useLeadershipApi.d.ts +0 -4
  805. package/dist/audit-trail/leadership/hooks/useLeadershipMutations.d.ts +0 -29
  806. package/dist/audit-trail/leadership/index.d.ts +0 -13
  807. package/dist/audit-trail/leadership/types.d.ts +0 -23
  808. package/dist/audit-trail/leadership/utils/leadershipUtils.d.ts +0 -8
  809. package/dist/audit-trail/media/components/ImageEditor.d.ts +0 -22
  810. package/dist/audit-trail/media/components/ImageRenderer.d.ts +0 -23
  811. package/dist/audit-trail/media/components/VideoEditor.d.ts +0 -2
  812. package/dist/audit-trail/media/components/VideoRenderer.d.ts +0 -2
  813. package/dist/audit-trail/media/hooks/useMediaUpload.d.ts +0 -19
  814. package/dist/audit-trail/media/index.d.ts +0 -49
  815. package/dist/audit-trail/media/types.d.ts +0 -66
  816. package/dist/audit-trail/media/utils/imageHelpers.d.ts +0 -28
  817. package/dist/audit-trail/media/utils/videoHelpers.d.ts +0 -35
  818. package/dist/audit-trail/mind-map/components/MindMap.d.ts +0 -23
  819. package/dist/audit-trail/mind-map/components/MindMapConnection.d.ts +0 -12
  820. package/dist/audit-trail/mind-map/components/MindMapNodeView.d.ts +0 -24
  821. package/dist/audit-trail/mind-map/components/MindMapToolbar.d.ts +0 -26
  822. package/dist/audit-trail/mind-map/hooks/useMindMapKeyboard.d.ts +0 -15
  823. package/dist/audit-trail/mind-map/hooks/useMindMapLayout.d.ts +0 -5
  824. package/dist/audit-trail/mind-map/hooks/useMindMapPanZoom.d.ts +0 -21
  825. package/dist/audit-trail/mind-map/hooks/useMindMapState.d.ts +0 -32
  826. package/dist/audit-trail/mind-map/index.d.ts +0 -4
  827. package/dist/audit-trail/mind-map/types.d.ts +0 -91
  828. package/dist/audit-trail/mind-map/utils/export-image.d.ts +0 -9
  829. package/dist/audit-trail/mind-map/utils/layout.d.ts +0 -15
  830. package/dist/audit-trail/mind-map/utils/nodeOps.d.ts +0 -66
  831. package/dist/audit-trail/mind-map/utils/serialize.d.ts +0 -10
  832. package/dist/audit-trail/modules/softwaresMap.d.ts +0 -4
  833. package/dist/audit-trail/places/components/ManageAccessModal.d.ts +0 -11
  834. package/dist/audit-trail/places/components/PlaceCard.d.ts +0 -12
  835. package/dist/audit-trail/places/components/PlacesList.d.ts +0 -12
  836. package/dist/audit-trail/places/index.d.ts +0 -8
  837. package/dist/audit-trail/places/services/PlaceService.d.ts +0 -9
  838. package/dist/audit-trail/places/types.d.ts +0 -10
  839. package/dist/audit-trail/providers/CoreProviders.d.ts +0 -107
  840. package/dist/audit-trail/providers/index.d.ts +0 -2
  841. package/dist/audit-trail/qualiex/components/QualiexUserField.d.ts +0 -133
  842. package/dist/audit-trail/qualiex/hooks/useQualiexUsers.d.ts +0 -41
  843. package/dist/audit-trail/qualiex/services/qualiexApi.d.ts +0 -75
  844. package/dist/audit-trail/qualiex/utils/QualiexErrorInterceptor.d.ts +0 -20
  845. package/dist/audit-trail/qualiex/utils/userPlaceUtils.d.ts +0 -16
  846. package/dist/audit-trail/services/BaseService.d.ts +0 -51
  847. package/dist/audit-trail/services/EmailService.d.ts +0 -110
  848. package/dist/audit-trail/services/ErrorService.d.ts +0 -19
  849. package/dist/audit-trail/services/QualiexEnrichmentService.d.ts +0 -53
  850. package/dist/audit-trail/services/QualiexFieldHelpers.d.ts +0 -17
  851. package/dist/audit-trail/setup/favicon.d.ts +0 -1
  852. package/dist/audit-trail/setup.d.ts +0 -16
  853. package/dist/audit-trail/sign/components/D4SignWidget.d.ts +0 -2
  854. package/dist/audit-trail/sign/components/DocumentSigner.d.ts +0 -2
  855. package/dist/audit-trail/sign/components/SignConfigForm.d.ts +0 -2
  856. package/dist/audit-trail/sign/components/SignWidget.d.ts +0 -9
  857. package/dist/audit-trail/sign/hooks/useSignConfig.d.ts +0 -6
  858. package/dist/audit-trail/sign/index.d.ts +0 -8
  859. package/dist/audit-trail/sign/services/signService.d.ts +0 -17
  860. package/dist/audit-trail/sign/types.d.ts +0 -53
  861. package/dist/audit-trail/sign/utils/loadClicksignScript.d.ts +0 -13
  862. package/dist/audit-trail/supabase/SupabaseSingleton.d.ts +0 -34
  863. package/dist/audit-trail/supabase/client.d.ts +0 -2
  864. package/dist/audit-trail/supabase/legacyKeyGuard.d.ts +0 -19
  865. package/dist/audit-trail/supabase/publicClient.d.ts +0 -2
  866. package/dist/audit-trail/supabase/types.d.ts +0 -377
  867. package/dist/audit-trail/team-selector/components/TeamSelector.d.ts +0 -24
  868. package/dist/audit-trail/team-selector/index.d.ts +0 -2
  869. package/dist/audit-trail/team-selector/types.d.ts +0 -10
  870. package/dist/audit-trail/types/sidebar.d.ts +0 -52
  871. package/dist/audit-trail/utils/color.d.ts +0 -26
  872. package/dist/audit-trail/utils/formatters/currencyFormatters.d.ts +0 -1
  873. package/dist/audit-trail/utils/formatters/dateFormatters.d.ts +0 -52
  874. package/dist/audit-trail/utils/index.d.ts +0 -9
  875. package/dist/audit-trail/utils/linkHelpers.d.ts +0 -9
  876. package/dist/audit-trail/utils/load-fonts.d.ts +0 -1
  877. package/dist/leadership/action-plans/components/ActionPlanAttachmentsTab.d.ts +0 -21
  878. package/dist/leadership/action-plans/components/ActionPlanCommentsTab.d.ts +0 -21
  879. package/dist/leadership/action-plans/components/ActionPlanCostTab.d.ts +0 -15
  880. package/dist/leadership/action-plans/components/ActionPlanGeneralTab.d.ts +0 -21
  881. package/dist/leadership/action-plans/components/ActionPlanHistoryTab.d.ts +0 -16
  882. package/dist/leadership/action-plans/components/ActionPlanPage.d.ts +0 -25
  883. package/dist/leadership/action-plans/components/ActionPlanPredecessorsTab.d.ts +0 -15
  884. package/dist/leadership/action-plans/components/ActionPlanProgressDialog.d.ts +0 -16
  885. package/dist/leadership/action-plans/components/ActionPlanProgressTab.d.ts +0 -10
  886. package/dist/leadership/action-plans/components/ActionPlanStatusBadge.d.ts +0 -18
  887. package/dist/leadership/action-plans/constants.d.ts +0 -86
  888. package/dist/leadership/action-plans/hooks/useActionPlan.d.ts +0 -19
  889. package/dist/leadership/action-plans/hooks/useActionPlanProgress.d.ts +0 -20
  890. package/dist/leadership/action-plans/index.d.ts +0 -15
  891. package/dist/leadership/action-plans/types.d.ts +0 -413
  892. package/dist/leadership/action-plans/utils/formatTime.d.ts +0 -24
  893. package/dist/leadership/approval-flow/components/ApprovalSidenav.d.ts +0 -16
  894. package/dist/leadership/approval-flow/components/ApproveDialog.d.ts +0 -13
  895. package/dist/leadership/approval-flow/components/SelectApproverDialog.d.ts +0 -11
  896. package/dist/leadership/approval-flow/index.d.ts +0 -4
  897. package/dist/leadership/approval-flow/types.d.ts +0 -76
  898. package/dist/leadership/assets/index.d.ts +0 -7
  899. package/dist/leadership/audit-trail/components/AuditTrailDetails.d.ts +0 -27
  900. package/dist/leadership/audit-trail/components/AuditTrailFilter.d.ts +0 -29
  901. package/dist/leadership/audit-trail/components/AuditTrailPage.d.ts +0 -40
  902. package/dist/leadership/audit-trail/index.d.ts +0 -9
  903. package/dist/leadership/audit-trail/types.d.ts +0 -209
  904. package/dist/leadership/audit-trail/utils.d.ts +0 -54
  905. package/dist/leadership/auth/components/AliasRedirect.d.ts +0 -13
  906. package/dist/leadership/auth/components/AliasRouteGuard.d.ts +0 -20
  907. package/dist/leadership/auth/components/EditProfileDialog.d.ts +0 -13
  908. package/dist/leadership/auth/components/ProtectedRoute.d.ts +0 -11
  909. package/dist/leadership/auth/components/UserInfo.d.ts +0 -10
  910. package/dist/leadership/auth/contexts/AuthContext.d.ts +0 -89
  911. package/dist/leadership/auth/pages/CallbackPage.d.ts +0 -6
  912. package/dist/leadership/auth/pages/LoginPage.d.ts +0 -2
  913. package/dist/leadership/auth/services/AuthService.d.ts +0 -64
  914. package/dist/leadership/auth/services/SupabaseTokenService.d.ts +0 -3
  915. package/dist/leadership/auth/services/TokenManager.d.ts +0 -66
  916. package/dist/leadership/auth/services/TokenRegenerationService.d.ts +0 -14
  917. package/dist/leadership/auth/services/TokenService.d.ts +0 -48
  918. package/dist/leadership/auth/utils/ErrorInterceptor.d.ts +0 -20
  919. package/dist/leadership/components/ErrorBoundary.d.ts +0 -19
  920. package/dist/leadership/components/dashboards/dashboard-form.d.ts +0 -65
  921. package/dist/leadership/components/dashboards/dashboard-general-view.d.ts +0 -124
  922. package/dist/leadership/components/dashboards/dashboard-grid.d.ts +0 -66
  923. package/dist/leadership/components/dashboards/dashboard-list.d.ts +0 -41
  924. package/dist/leadership/components/dashboards/dashboard-panel-renderer.d.ts +0 -31
  925. package/dist/leadership/components/dashboards/dashboard-view.d.ts +0 -48
  926. package/dist/leadership/components/dashboards/helpers.d.ts +0 -86
  927. package/dist/leadership/components/dashboards/index.d.ts +0 -9
  928. package/dist/leadership/components/dashboards/panels/burndown-panel.d.ts +0 -41
  929. package/dist/leadership/components/dashboards/panels/cartesian-panel.d.ts +0 -66
  930. package/dist/leadership/components/dashboards/panels/index.d.ts +0 -14
  931. package/dist/leadership/components/dashboards/panels/list-panel.d.ts +0 -45
  932. package/dist/leadership/components/dashboards/panels/matrix-risk-panel.d.ts +0 -74
  933. package/dist/leadership/components/dashboards/panels/numeric-panel.d.ts +0 -32
  934. package/dist/leadership/components/dashboards/panels/panel-error.d.ts +0 -18
  935. package/dist/leadership/components/dashboards/panels/panel-header.d.ts +0 -27
  936. package/dist/leadership/components/dashboards/panels/panel-loader.d.ts +0 -17
  937. package/dist/leadership/components/dashboards/panels/panel-no-data.d.ts +0 -16
  938. package/dist/leadership/components/dashboards/panels/panel-unavailable.d.ts +0 -16
  939. package/dist/leadership/components/dashboards/panels/pareto-panel.d.ts +0 -30
  940. package/dist/leadership/components/dashboards/panels/performance-panel.d.ts +0 -39
  941. package/dist/leadership/components/dashboards/panels/pie-panel.d.ts +0 -29
  942. package/dist/leadership/components/dashboards/panels/text-panel.d.ts +0 -28
  943. package/dist/leadership/components/dashboards/types.d.ts +0 -755
  944. package/dist/leadership/components/layout/AppHeader.d.ts +0 -6
  945. package/dist/leadership/components/layout/AppLayout.d.ts +0 -10
  946. package/dist/leadership/components/layout/AppSidebar.d.ts +0 -10
  947. package/dist/leadership/components/layout/BodyContent.d.ts +0 -60
  948. package/dist/leadership/components/layout/SidebarActionTrigger.d.ts +0 -46
  949. package/dist/leadership/components/layout/SidebarHeader.d.ts +0 -5
  950. package/dist/leadership/components/layout/SidebarLogo.d.ts +0 -5
  951. package/dist/leadership/components/layout/sidebar-utils.d.ts +0 -12
  952. package/dist/leadership/components/modules/AccessDeniedDialog.d.ts +0 -43
  953. package/dist/leadership/components/modules/ModuleAccessGuard.d.ts +0 -42
  954. package/dist/leadership/components/modules/ModuleGrid.d.ts +0 -9
  955. package/dist/leadership/components/modules/ModuleOfferContent.d.ts +0 -20
  956. package/dist/leadership/components/modules/ModulesContent.d.ts +0 -21
  957. package/dist/leadership/components/modules/ModulesDialog.d.ts +0 -3
  958. package/dist/leadership/components/modules/ModulesFooterCards.d.ts +0 -10
  959. package/dist/leadership/components/modules/icons/ModulesCardIcons.d.ts +0 -19
  960. package/dist/leadership/components/modules/index.d.ts +0 -14
  961. package/dist/leadership/components/modules/modulesData.d.ts +0 -6
  962. package/dist/leadership/components/modules/types.d.ts +0 -41
  963. package/dist/leadership/components/ui/accordion.d.ts +0 -42
  964. package/dist/leadership/components/ui/action-button.d.ts +0 -48
  965. package/dist/leadership/components/ui/alert-dialog.d.ts +0 -102
  966. package/dist/leadership/components/ui/alert.d.ts +0 -44
  967. package/dist/leadership/components/ui/avatar.d.ts +0 -36
  968. package/dist/leadership/components/ui/badge.d.ts +0 -41
  969. package/dist/leadership/components/ui/breadcrumb.d.ts +0 -73
  970. package/dist/leadership/components/ui/button-group.d.ts +0 -24
  971. package/dist/leadership/components/ui/button.d.ts +0 -66
  972. package/dist/leadership/components/ui/calendar.d.ts +0 -24
  973. package/dist/leadership/components/ui/card.d.ts +0 -57
  974. package/dist/leadership/components/ui/chart.d.ts +0 -97
  975. package/dist/leadership/components/ui/checkbox.d.ts +0 -15
  976. package/dist/leadership/components/ui/collapsible.d.ts +0 -20
  977. package/dist/leadership/components/ui/color-picker.d.ts +0 -19
  978. package/dist/leadership/components/ui/combo-tree.d.ts +0 -103
  979. package/dist/leadership/components/ui/combobox.d.ts +0 -64
  980. package/dist/leadership/components/ui/command.d.ts +0 -89
  981. package/dist/leadership/components/ui/context-menu.d.ts +0 -122
  982. package/dist/leadership/components/ui/data-list.d.ts +0 -86
  983. package/dist/leadership/components/ui/date-picker.d.ts +0 -19
  984. package/dist/leadership/components/ui/dialog-wizard.d.ts +0 -100
  985. package/dist/leadership/components/ui/dialog.d.ts +0 -229
  986. package/dist/leadership/components/ui/disabled-menu-item.d.ts +0 -25
  987. package/dist/leadership/components/ui/drawer.d.ts +0 -94
  988. package/dist/leadership/components/ui/dropdown-menu.d.ts +0 -180
  989. package/dist/leadership/components/ui/electronic-signature-dialog.d.ts +0 -31
  990. package/dist/leadership/components/ui/empty-state.d.ts +0 -79
  991. package/dist/leadership/components/ui/export-dialog.d.ts +0 -48
  992. package/dist/leadership/components/ui/form.d.ts +0 -119
  993. package/dist/leadership/components/ui/grid.d.ts +0 -53
  994. package/dist/leadership/components/ui/hover-card.d.ts +0 -21
  995. package/dist/leadership/components/ui/icon-picker.d.ts +0 -17
  996. package/dist/leadership/components/ui/iframe-dialog.d.ts +0 -24
  997. package/dist/leadership/components/ui/input-group.d.ts +0 -113
  998. package/dist/leadership/components/ui/input.d.ts +0 -24
  999. package/dist/leadership/components/ui/label.d.ts +0 -23
  1000. package/dist/leadership/components/ui/loading-state.d.ts +0 -52
  1001. package/dist/leadership/components/ui/menubar.d.ts +0 -113
  1002. package/dist/leadership/components/ui/multiselect-permissions.d.ts +0 -84
  1003. package/dist/leadership/components/ui/navigation-menu.d.ts +0 -57
  1004. package/dist/leadership/components/ui/onboarding-dialog.d.ts +0 -58
  1005. package/dist/leadership/components/ui/online-editor-dialog.d.ts +0 -28
  1006. package/dist/leadership/components/ui/page-breadcrumb.d.ts +0 -77
  1007. package/dist/leadership/components/ui/pagination.d.ts +0 -81
  1008. package/dist/leadership/components/ui/popover.d.ts +0 -57
  1009. package/dist/leadership/components/ui/progress.d.ts +0 -22
  1010. package/dist/leadership/components/ui/radio-group.d.ts +0 -66
  1011. package/dist/leadership/components/ui/report-request-list.d.ts +0 -64
  1012. package/dist/leadership/components/ui/resizable.d.ts +0 -38
  1013. package/dist/leadership/components/ui/rich-text-editor.d.ts +0 -58
  1014. package/dist/leadership/components/ui/scroll-area.d.ts +0 -40
  1015. package/dist/leadership/components/ui/select.d.ts +0 -94
  1016. package/dist/leadership/components/ui/separator.d.ts +0 -17
  1017. package/dist/leadership/components/ui/sheet.d.ts +0 -108
  1018. package/dist/leadership/components/ui/sidebar.d.ts +0 -269
  1019. package/dist/leadership/components/ui/skeleton-variants.d.ts +0 -41
  1020. package/dist/leadership/components/ui/skeleton.d.ts +0 -14
  1021. package/dist/leadership/components/ui/slider.d.ts +0 -9
  1022. package/dist/leadership/components/ui/sonner.d.ts +0 -8
  1023. package/dist/leadership/components/ui/spinner.d.ts +0 -11
  1024. package/dist/leadership/components/ui/split-button.d.ts +0 -76
  1025. package/dist/leadership/components/ui/stack.d.ts +0 -17
  1026. package/dist/leadership/components/ui/status-badge.d.ts +0 -52
  1027. package/dist/leadership/components/ui/step-selector.d.ts +0 -46
  1028. package/dist/leadership/components/ui/stimulsoft-viewer.d.ts +0 -28
  1029. package/dist/leadership/components/ui/switch.d.ts +0 -25
  1030. package/dist/leadership/components/ui/tab-page-layout.d.ts +0 -52
  1031. package/dist/leadership/components/ui/table-resize-handle.d.ts +0 -22
  1032. package/dist/leadership/components/ui/table.d.ts +0 -112
  1033. package/dist/leadership/components/ui/tabs.d.ts +0 -66
  1034. package/dist/leadership/components/ui/terms-of-use-dialog.d.ts +0 -102
  1035. package/dist/leadership/components/ui/textarea.d.ts +0 -33
  1036. package/dist/leadership/components/ui/timepicker.d.ts +0 -34
  1037. package/dist/leadership/components/ui/toggle-group.d.ts +0 -37
  1038. package/dist/leadership/components/ui/toggle.d.ts +0 -33
  1039. package/dist/leadership/components/ui/tooltip.d.ts +0 -61
  1040. package/dist/leadership/components/ui/truncated-cell.d.ts +0 -20
  1041. package/dist/leadership/components/ui/typography.d.ts +0 -135
  1042. package/dist/leadership/components/ui/updates-notification.d.ts +0 -47
  1043. package/dist/leadership/components/ui/users-groups-selector.d.ts +0 -87
  1044. package/dist/leadership/components/ui/viewer-dialog.d.ts +0 -184
  1045. package/dist/leadership/config/backend.d.ts +0 -10
  1046. package/dist/leadership/config/environments.d.ts +0 -27
  1047. package/dist/leadership/config/index.d.ts +0 -75
  1048. package/dist/leadership/contexts/LocaleContext.d.ts +0 -15
  1049. package/dist/leadership/contexts/ModalStateContext.d.ts +0 -57
  1050. package/dist/leadership/contexts/ModuleContext.d.ts +0 -34
  1051. package/dist/leadership/contexts/NavigationContext.d.ts +0 -13
  1052. package/dist/leadership/contexts/PageMetadataContext.d.ts +0 -48
  1053. package/dist/leadership/crud/components/ActionMenuItems.d.ts +0 -22
  1054. package/dist/leadership/crud/components/BaseForm.d.ts +0 -52
  1055. package/dist/leadership/crud/components/ColumnSettingsPopover.d.ts +0 -28
  1056. package/dist/leadership/crud/components/ContextMenu.d.ts +0 -21
  1057. package/dist/leadership/crud/components/CrudActionBar.d.ts +0 -59
  1058. package/dist/leadership/crud/components/CrudGrid.d.ts +0 -53
  1059. package/dist/leadership/crud/components/CrudPagination.d.ts +0 -17
  1060. package/dist/leadership/crud/components/CrudTable.d.ts +0 -66
  1061. package/dist/leadership/crud/components/FilterBar.d.ts +0 -136
  1062. package/dist/leadership/crud/components/GroupDropZone.d.ts +0 -16
  1063. package/dist/leadership/crud/components/InlineRowActions.d.ts +0 -15
  1064. package/dist/leadership/crud/components/SelectionCheckbox.d.ts +0 -9
  1065. package/dist/leadership/crud/components/TableFooter.d.ts +0 -14
  1066. package/dist/leadership/crud/components/TableRowActions.d.ts +0 -19
  1067. package/dist/leadership/crud/createCrudPage.d.ts +0 -134
  1068. package/dist/leadership/crud/createSimpleService.d.ts +0 -85
  1069. package/dist/leadership/crud/generateCrudConfig.d.ts +0 -78
  1070. package/dist/leadership/crud/hooks/useBaseForm.d.ts +0 -47
  1071. package/dist/leadership/crud/hooks/useColumnDragReorder.d.ts +0 -19
  1072. package/dist/leadership/crud/hooks/useColumnManager.d.ts +0 -85
  1073. package/dist/leadership/crud/hooks/useCrud.d.ts +0 -152
  1074. package/dist/leadership/crud/primitives/ActionMenu.d.ts +0 -69
  1075. package/dist/leadership/crud/primitives/FilterBar.d.ts +0 -69
  1076. package/dist/leadership/crud/primitives/Pagination.d.ts +0 -29
  1077. package/dist/leadership/crud/primitives/Table.d.ts +0 -31
  1078. package/dist/leadership/crud/primitives/TreeTable.d.ts +0 -7
  1079. package/dist/leadership/crud/primitives/index.d.ts +0 -12
  1080. package/dist/leadership/crud/primitives/types.d.ts +0 -199
  1081. package/dist/leadership/crud/utils/routingHelpers.d.ts +0 -41
  1082. package/dist/leadership/custom-form-fields/components/CustomFormFields.d.ts +0 -11
  1083. package/dist/leadership/custom-form-fields/fields/FormDateField.d.ts +0 -9
  1084. package/dist/leadership/custom-form-fields/fields/FormMultiSelectionField.d.ts +0 -9
  1085. package/dist/leadership/custom-form-fields/fields/FormNumericField.d.ts +0 -9
  1086. package/dist/leadership/custom-form-fields/fields/FormQuestionsField.d.ts +0 -9
  1087. package/dist/leadership/custom-form-fields/fields/FormSingleSelectionField.d.ts +0 -9
  1088. package/dist/leadership/custom-form-fields/fields/FormTextField.d.ts +0 -9
  1089. package/dist/leadership/custom-form-fields/fields/FormTimeField.d.ts +0 -9
  1090. package/dist/leadership/custom-form-fields/fields/FormUrlField.d.ts +0 -9
  1091. package/dist/leadership/custom-form-fields/fields/ReadOnlyTextField.d.ts +0 -9
  1092. package/dist/leadership/custom-form-fields/index.d.ts +0 -13
  1093. package/dist/leadership/custom-form-fields/types.d.ts +0 -206
  1094. package/dist/leadership/exports/action-plans.d.ts +0 -16
  1095. package/dist/leadership/exports/audit-trail.d.ts +0 -1
  1096. package/dist/leadership/exports/crud.d.ts +0 -31
  1097. package/dist/leadership/exports/custom-form-fields.d.ts +0 -1
  1098. package/dist/leadership/exports/file-upload.d.ts +0 -1
  1099. package/dist/leadership/exports/integrations.d.ts +0 -15
  1100. package/dist/leadership/exports/ui.d.ts +0 -100
  1101. package/dist/leadership/file-upload/components/SingleFileUpload.d.ts +0 -102
  1102. package/dist/leadership/file-upload/index.d.ts +0 -6
  1103. package/dist/leadership/file-upload/types.d.ts +0 -26
  1104. package/dist/leadership/file-upload/utils/formatBytes.d.ts +0 -6
  1105. package/dist/leadership/file-upload/utils/getFileExtension.d.ts +0 -6
  1106. package/dist/leadership/hooks/useActiveModules.d.ts +0 -45
  1107. package/dist/leadership/hooks/useAliasFromUrl.d.ts +0 -33
  1108. package/dist/leadership/hooks/useColumnResize.d.ts +0 -45
  1109. package/dist/leadership/hooks/useDebounce.d.ts +0 -56
  1110. package/dist/leadership/hooks/useDerivedContractedModules.d.ts +0 -8
  1111. package/dist/leadership/hooks/useI18nFormatters.d.ts +0 -40
  1112. package/dist/leadership/hooks/useMediaQuery.d.ts +0 -14
  1113. package/dist/leadership/hooks/useModuleAccess.d.ts +0 -59
  1114. package/dist/leadership/hooks/usePageTitle.d.ts +0 -10
  1115. package/dist/leadership/hooks/usePermissionQuery.d.ts +0 -49
  1116. package/dist/leadership/hooks/useRowResize.d.ts +0 -37
  1117. package/dist/leadership/hooks/useSidebarResize.d.ts +0 -37
  1118. package/dist/leadership/hooks/useUpdatesNotification.d.ts +0 -27
  1119. package/dist/leadership/hooks/useWizard.d.ts +0 -40
  1120. package/dist/leadership/i18n/LanguageBootstrap.d.ts +0 -14
  1121. package/dist/leadership/i18n/config.d.ts +0 -13
  1122. package/dist/leadership/i18n/constants.d.ts +0 -126
  1123. package/dist/leadership/i18n/index.d.ts +0 -12
  1124. package/dist/leadership/i18n/utils.d.ts +0 -14
  1125. package/dist/leadership/integrations/clarity/clarityTracking.d.ts +0 -31
  1126. package/dist/leadership/integrations/clarity/index.d.ts +0 -3
  1127. package/dist/leadership/integrations/clarity/types.d.ts +0 -46
  1128. package/dist/leadership/integrations/clarity/useClarity.d.ts +0 -34
  1129. package/dist/leadership/integrations/index.d.ts +0 -5
  1130. package/dist/leadership/leadership/components/LeadershipDialog.d.ts +0 -10
  1131. package/dist/leadership/leadership/components/LeadershipForm.d.ts +0 -8
  1132. package/dist/leadership/leadership/components/LeadershipPage.d.ts +0 -19
  1133. package/dist/leadership/leadership/hooks/useLeadershipApi.d.ts +0 -4
  1134. package/dist/leadership/leadership/hooks/useLeadershipMutations.d.ts +0 -29
  1135. package/dist/leadership/leadership/index.d.ts +0 -13
  1136. package/dist/leadership/leadership/types.d.ts +0 -23
  1137. package/dist/leadership/leadership/utils/leadershipUtils.d.ts +0 -8
  1138. package/dist/leadership/media/components/ImageEditor.d.ts +0 -22
  1139. package/dist/leadership/media/components/ImageRenderer.d.ts +0 -23
  1140. package/dist/leadership/media/components/VideoEditor.d.ts +0 -2
  1141. package/dist/leadership/media/components/VideoRenderer.d.ts +0 -2
  1142. package/dist/leadership/media/hooks/useMediaUpload.d.ts +0 -19
  1143. package/dist/leadership/media/index.d.ts +0 -49
  1144. package/dist/leadership/media/types.d.ts +0 -66
  1145. package/dist/leadership/media/utils/imageHelpers.d.ts +0 -28
  1146. package/dist/leadership/media/utils/videoHelpers.d.ts +0 -35
  1147. package/dist/leadership/mind-map/components/MindMap.d.ts +0 -23
  1148. package/dist/leadership/mind-map/components/MindMapConnection.d.ts +0 -12
  1149. package/dist/leadership/mind-map/components/MindMapNodeView.d.ts +0 -24
  1150. package/dist/leadership/mind-map/components/MindMapToolbar.d.ts +0 -26
  1151. package/dist/leadership/mind-map/hooks/useMindMapKeyboard.d.ts +0 -15
  1152. package/dist/leadership/mind-map/hooks/useMindMapLayout.d.ts +0 -5
  1153. package/dist/leadership/mind-map/hooks/useMindMapPanZoom.d.ts +0 -21
  1154. package/dist/leadership/mind-map/hooks/useMindMapState.d.ts +0 -32
  1155. package/dist/leadership/mind-map/index.d.ts +0 -4
  1156. package/dist/leadership/mind-map/types.d.ts +0 -91
  1157. package/dist/leadership/mind-map/utils/export-image.d.ts +0 -9
  1158. package/dist/leadership/mind-map/utils/layout.d.ts +0 -15
  1159. package/dist/leadership/mind-map/utils/nodeOps.d.ts +0 -66
  1160. package/dist/leadership/mind-map/utils/serialize.d.ts +0 -10
  1161. package/dist/leadership/modules/softwaresMap.d.ts +0 -4
  1162. package/dist/leadership/places/components/ManageAccessModal.d.ts +0 -11
  1163. package/dist/leadership/places/components/PlaceCard.d.ts +0 -12
  1164. package/dist/leadership/places/components/PlacesList.d.ts +0 -12
  1165. package/dist/leadership/places/index.d.ts +0 -8
  1166. package/dist/leadership/places/services/PlaceService.d.ts +0 -9
  1167. package/dist/leadership/places/types.d.ts +0 -10
  1168. package/dist/leadership/providers/CoreProviders.d.ts +0 -107
  1169. package/dist/leadership/providers/index.d.ts +0 -2
  1170. package/dist/leadership/qualiex/components/QualiexUserField.d.ts +0 -133
  1171. package/dist/leadership/qualiex/hooks/useQualiexUsers.d.ts +0 -41
  1172. package/dist/leadership/qualiex/services/qualiexApi.d.ts +0 -75
  1173. package/dist/leadership/qualiex/utils/QualiexErrorInterceptor.d.ts +0 -20
  1174. package/dist/leadership/qualiex/utils/userPlaceUtils.d.ts +0 -16
  1175. package/dist/leadership/services/BaseService.d.ts +0 -51
  1176. package/dist/leadership/services/EmailService.d.ts +0 -110
  1177. package/dist/leadership/services/ErrorService.d.ts +0 -19
  1178. package/dist/leadership/services/QualiexEnrichmentService.d.ts +0 -53
  1179. package/dist/leadership/services/QualiexFieldHelpers.d.ts +0 -17
  1180. package/dist/leadership/setup/favicon.d.ts +0 -1
  1181. package/dist/leadership/setup.d.ts +0 -16
  1182. package/dist/leadership/sign/components/D4SignWidget.d.ts +0 -2
  1183. package/dist/leadership/sign/components/DocumentSigner.d.ts +0 -2
  1184. package/dist/leadership/sign/components/SignConfigForm.d.ts +0 -2
  1185. package/dist/leadership/sign/components/SignWidget.d.ts +0 -9
  1186. package/dist/leadership/sign/hooks/useSignConfig.d.ts +0 -6
  1187. package/dist/leadership/sign/index.d.ts +0 -8
  1188. package/dist/leadership/sign/services/signService.d.ts +0 -17
  1189. package/dist/leadership/sign/types.d.ts +0 -53
  1190. package/dist/leadership/sign/utils/loadClicksignScript.d.ts +0 -13
  1191. package/dist/leadership/supabase/SupabaseSingleton.d.ts +0 -34
  1192. package/dist/leadership/supabase/client.d.ts +0 -2
  1193. package/dist/leadership/supabase/legacyKeyGuard.d.ts +0 -19
  1194. package/dist/leadership/supabase/publicClient.d.ts +0 -2
  1195. package/dist/leadership/supabase/types.d.ts +0 -377
  1196. package/dist/leadership/team-selector/components/TeamSelector.d.ts +0 -24
  1197. package/dist/leadership/team-selector/index.d.ts +0 -2
  1198. package/dist/leadership/team-selector/types.d.ts +0 -10
  1199. package/dist/leadership/types/sidebar.d.ts +0 -52
  1200. package/dist/leadership/utils/color.d.ts +0 -26
  1201. package/dist/leadership/utils/formatters/currencyFormatters.d.ts +0 -1
  1202. package/dist/leadership/utils/formatters/dateFormatters.d.ts +0 -52
  1203. package/dist/leadership/utils/index.d.ts +0 -9
  1204. package/dist/leadership/utils/linkHelpers.d.ts +0 -9
  1205. package/dist/leadership/utils/load-fonts.d.ts +0 -1
  1206. package/dist/places/action-plans/components/ActionPlanAttachmentsTab.d.ts +0 -21
  1207. package/dist/places/action-plans/components/ActionPlanCommentsTab.d.ts +0 -21
  1208. package/dist/places/action-plans/components/ActionPlanCostTab.d.ts +0 -15
  1209. package/dist/places/action-plans/components/ActionPlanGeneralTab.d.ts +0 -21
  1210. package/dist/places/action-plans/components/ActionPlanHistoryTab.d.ts +0 -16
  1211. package/dist/places/action-plans/components/ActionPlanPage.d.ts +0 -25
  1212. package/dist/places/action-plans/components/ActionPlanPredecessorsTab.d.ts +0 -15
  1213. package/dist/places/action-plans/components/ActionPlanProgressDialog.d.ts +0 -16
  1214. package/dist/places/action-plans/components/ActionPlanProgressTab.d.ts +0 -10
  1215. package/dist/places/action-plans/components/ActionPlanStatusBadge.d.ts +0 -18
  1216. package/dist/places/action-plans/constants.d.ts +0 -86
  1217. package/dist/places/action-plans/hooks/useActionPlan.d.ts +0 -19
  1218. package/dist/places/action-plans/hooks/useActionPlanProgress.d.ts +0 -20
  1219. package/dist/places/action-plans/index.d.ts +0 -15
  1220. package/dist/places/action-plans/types.d.ts +0 -413
  1221. package/dist/places/action-plans/utils/formatTime.d.ts +0 -24
  1222. package/dist/places/approval-flow/components/ApprovalSidenav.d.ts +0 -16
  1223. package/dist/places/approval-flow/components/ApproveDialog.d.ts +0 -13
  1224. package/dist/places/approval-flow/components/SelectApproverDialog.d.ts +0 -11
  1225. package/dist/places/approval-flow/index.d.ts +0 -4
  1226. package/dist/places/approval-flow/types.d.ts +0 -76
  1227. package/dist/places/assets/index.d.ts +0 -7
  1228. package/dist/places/audit-trail/components/AuditTrailDetails.d.ts +0 -27
  1229. package/dist/places/audit-trail/components/AuditTrailFilter.d.ts +0 -29
  1230. package/dist/places/audit-trail/components/AuditTrailPage.d.ts +0 -40
  1231. package/dist/places/audit-trail/index.d.ts +0 -9
  1232. package/dist/places/audit-trail/types.d.ts +0 -209
  1233. package/dist/places/audit-trail/utils.d.ts +0 -54
  1234. package/dist/places/auth/components/AliasRedirect.d.ts +0 -13
  1235. package/dist/places/auth/components/AliasRouteGuard.d.ts +0 -20
  1236. package/dist/places/auth/components/EditProfileDialog.d.ts +0 -13
  1237. package/dist/places/auth/components/ProtectedRoute.d.ts +0 -11
  1238. package/dist/places/auth/components/UserInfo.d.ts +0 -10
  1239. package/dist/places/auth/contexts/AuthContext.d.ts +0 -89
  1240. package/dist/places/auth/pages/CallbackPage.d.ts +0 -6
  1241. package/dist/places/auth/pages/LoginPage.d.ts +0 -2
  1242. package/dist/places/auth/services/AuthService.d.ts +0 -64
  1243. package/dist/places/auth/services/SupabaseTokenService.d.ts +0 -3
  1244. package/dist/places/auth/services/TokenManager.d.ts +0 -66
  1245. package/dist/places/auth/services/TokenRegenerationService.d.ts +0 -14
  1246. package/dist/places/auth/services/TokenService.d.ts +0 -48
  1247. package/dist/places/auth/utils/ErrorInterceptor.d.ts +0 -20
  1248. package/dist/places/components/ErrorBoundary.d.ts +0 -19
  1249. package/dist/places/components/dashboards/dashboard-form.d.ts +0 -65
  1250. package/dist/places/components/dashboards/dashboard-general-view.d.ts +0 -124
  1251. package/dist/places/components/dashboards/dashboard-grid.d.ts +0 -66
  1252. package/dist/places/components/dashboards/dashboard-list.d.ts +0 -41
  1253. package/dist/places/components/dashboards/dashboard-panel-renderer.d.ts +0 -31
  1254. package/dist/places/components/dashboards/dashboard-view.d.ts +0 -48
  1255. package/dist/places/components/dashboards/helpers.d.ts +0 -86
  1256. package/dist/places/components/dashboards/index.d.ts +0 -9
  1257. package/dist/places/components/dashboards/panels/burndown-panel.d.ts +0 -41
  1258. package/dist/places/components/dashboards/panels/cartesian-panel.d.ts +0 -66
  1259. package/dist/places/components/dashboards/panels/index.d.ts +0 -14
  1260. package/dist/places/components/dashboards/panels/list-panel.d.ts +0 -45
  1261. package/dist/places/components/dashboards/panels/matrix-risk-panel.d.ts +0 -74
  1262. package/dist/places/components/dashboards/panels/numeric-panel.d.ts +0 -32
  1263. package/dist/places/components/dashboards/panels/panel-error.d.ts +0 -18
  1264. package/dist/places/components/dashboards/panels/panel-header.d.ts +0 -27
  1265. package/dist/places/components/dashboards/panels/panel-loader.d.ts +0 -17
  1266. package/dist/places/components/dashboards/panels/panel-no-data.d.ts +0 -16
  1267. package/dist/places/components/dashboards/panels/panel-unavailable.d.ts +0 -16
  1268. package/dist/places/components/dashboards/panels/pareto-panel.d.ts +0 -30
  1269. package/dist/places/components/dashboards/panels/performance-panel.d.ts +0 -39
  1270. package/dist/places/components/dashboards/panels/pie-panel.d.ts +0 -29
  1271. package/dist/places/components/dashboards/panels/text-panel.d.ts +0 -28
  1272. package/dist/places/components/dashboards/types.d.ts +0 -755
  1273. package/dist/places/components/layout/AppHeader.d.ts +0 -6
  1274. package/dist/places/components/layout/AppLayout.d.ts +0 -10
  1275. package/dist/places/components/layout/AppSidebar.d.ts +0 -10
  1276. package/dist/places/components/layout/BodyContent.d.ts +0 -60
  1277. package/dist/places/components/layout/SidebarActionTrigger.d.ts +0 -46
  1278. package/dist/places/components/layout/SidebarHeader.d.ts +0 -5
  1279. package/dist/places/components/layout/SidebarLogo.d.ts +0 -5
  1280. package/dist/places/components/layout/sidebar-utils.d.ts +0 -12
  1281. package/dist/places/components/modules/AccessDeniedDialog.d.ts +0 -43
  1282. package/dist/places/components/modules/ModuleAccessGuard.d.ts +0 -42
  1283. package/dist/places/components/modules/ModuleGrid.d.ts +0 -9
  1284. package/dist/places/components/modules/ModuleOfferContent.d.ts +0 -20
  1285. package/dist/places/components/modules/ModulesContent.d.ts +0 -21
  1286. package/dist/places/components/modules/ModulesDialog.d.ts +0 -3
  1287. package/dist/places/components/modules/ModulesFooterCards.d.ts +0 -10
  1288. package/dist/places/components/modules/icons/ModulesCardIcons.d.ts +0 -19
  1289. package/dist/places/components/modules/index.d.ts +0 -14
  1290. package/dist/places/components/modules/modulesData.d.ts +0 -6
  1291. package/dist/places/components/modules/types.d.ts +0 -41
  1292. package/dist/places/components/ui/accordion.d.ts +0 -42
  1293. package/dist/places/components/ui/action-button.d.ts +0 -48
  1294. package/dist/places/components/ui/alert-dialog.d.ts +0 -102
  1295. package/dist/places/components/ui/alert.d.ts +0 -44
  1296. package/dist/places/components/ui/avatar.d.ts +0 -36
  1297. package/dist/places/components/ui/badge.d.ts +0 -41
  1298. package/dist/places/components/ui/breadcrumb.d.ts +0 -73
  1299. package/dist/places/components/ui/button-group.d.ts +0 -24
  1300. package/dist/places/components/ui/button.d.ts +0 -66
  1301. package/dist/places/components/ui/calendar.d.ts +0 -24
  1302. package/dist/places/components/ui/card.d.ts +0 -57
  1303. package/dist/places/components/ui/chart.d.ts +0 -97
  1304. package/dist/places/components/ui/checkbox.d.ts +0 -15
  1305. package/dist/places/components/ui/collapsible.d.ts +0 -20
  1306. package/dist/places/components/ui/color-picker.d.ts +0 -19
  1307. package/dist/places/components/ui/combo-tree.d.ts +0 -103
  1308. package/dist/places/components/ui/combobox.d.ts +0 -64
  1309. package/dist/places/components/ui/command.d.ts +0 -89
  1310. package/dist/places/components/ui/context-menu.d.ts +0 -122
  1311. package/dist/places/components/ui/data-list.d.ts +0 -86
  1312. package/dist/places/components/ui/date-picker.d.ts +0 -19
  1313. package/dist/places/components/ui/dialog-wizard.d.ts +0 -100
  1314. package/dist/places/components/ui/dialog.d.ts +0 -229
  1315. package/dist/places/components/ui/disabled-menu-item.d.ts +0 -25
  1316. package/dist/places/components/ui/drawer.d.ts +0 -94
  1317. package/dist/places/components/ui/dropdown-menu.d.ts +0 -180
  1318. package/dist/places/components/ui/electronic-signature-dialog.d.ts +0 -31
  1319. package/dist/places/components/ui/empty-state.d.ts +0 -79
  1320. package/dist/places/components/ui/export-dialog.d.ts +0 -48
  1321. package/dist/places/components/ui/form.d.ts +0 -119
  1322. package/dist/places/components/ui/grid.d.ts +0 -53
  1323. package/dist/places/components/ui/hover-card.d.ts +0 -21
  1324. package/dist/places/components/ui/icon-picker.d.ts +0 -17
  1325. package/dist/places/components/ui/iframe-dialog.d.ts +0 -24
  1326. package/dist/places/components/ui/input-group.d.ts +0 -113
  1327. package/dist/places/components/ui/input.d.ts +0 -24
  1328. package/dist/places/components/ui/label.d.ts +0 -23
  1329. package/dist/places/components/ui/loading-state.d.ts +0 -52
  1330. package/dist/places/components/ui/menubar.d.ts +0 -113
  1331. package/dist/places/components/ui/multiselect-permissions.d.ts +0 -84
  1332. package/dist/places/components/ui/navigation-menu.d.ts +0 -57
  1333. package/dist/places/components/ui/onboarding-dialog.d.ts +0 -58
  1334. package/dist/places/components/ui/online-editor-dialog.d.ts +0 -28
  1335. package/dist/places/components/ui/page-breadcrumb.d.ts +0 -77
  1336. package/dist/places/components/ui/pagination.d.ts +0 -81
  1337. package/dist/places/components/ui/popover.d.ts +0 -57
  1338. package/dist/places/components/ui/progress.d.ts +0 -22
  1339. package/dist/places/components/ui/radio-group.d.ts +0 -66
  1340. package/dist/places/components/ui/report-request-list.d.ts +0 -64
  1341. package/dist/places/components/ui/resizable.d.ts +0 -38
  1342. package/dist/places/components/ui/rich-text-editor.d.ts +0 -58
  1343. package/dist/places/components/ui/scroll-area.d.ts +0 -40
  1344. package/dist/places/components/ui/select.d.ts +0 -94
  1345. package/dist/places/components/ui/separator.d.ts +0 -17
  1346. package/dist/places/components/ui/sheet.d.ts +0 -108
  1347. package/dist/places/components/ui/sidebar.d.ts +0 -269
  1348. package/dist/places/components/ui/skeleton-variants.d.ts +0 -41
  1349. package/dist/places/components/ui/skeleton.d.ts +0 -14
  1350. package/dist/places/components/ui/slider.d.ts +0 -9
  1351. package/dist/places/components/ui/sonner.d.ts +0 -8
  1352. package/dist/places/components/ui/spinner.d.ts +0 -11
  1353. package/dist/places/components/ui/split-button.d.ts +0 -76
  1354. package/dist/places/components/ui/stack.d.ts +0 -17
  1355. package/dist/places/components/ui/status-badge.d.ts +0 -52
  1356. package/dist/places/components/ui/step-selector.d.ts +0 -46
  1357. package/dist/places/components/ui/stimulsoft-viewer.d.ts +0 -28
  1358. package/dist/places/components/ui/switch.d.ts +0 -25
  1359. package/dist/places/components/ui/tab-page-layout.d.ts +0 -52
  1360. package/dist/places/components/ui/table-resize-handle.d.ts +0 -22
  1361. package/dist/places/components/ui/table.d.ts +0 -112
  1362. package/dist/places/components/ui/tabs.d.ts +0 -66
  1363. package/dist/places/components/ui/terms-of-use-dialog.d.ts +0 -102
  1364. package/dist/places/components/ui/textarea.d.ts +0 -33
  1365. package/dist/places/components/ui/timepicker.d.ts +0 -34
  1366. package/dist/places/components/ui/toggle-group.d.ts +0 -37
  1367. package/dist/places/components/ui/toggle.d.ts +0 -33
  1368. package/dist/places/components/ui/tooltip.d.ts +0 -61
  1369. package/dist/places/components/ui/truncated-cell.d.ts +0 -20
  1370. package/dist/places/components/ui/typography.d.ts +0 -135
  1371. package/dist/places/components/ui/updates-notification.d.ts +0 -47
  1372. package/dist/places/components/ui/users-groups-selector.d.ts +0 -87
  1373. package/dist/places/components/ui/viewer-dialog.d.ts +0 -184
  1374. package/dist/places/config/backend.d.ts +0 -10
  1375. package/dist/places/config/environments.d.ts +0 -27
  1376. package/dist/places/config/index.d.ts +0 -75
  1377. package/dist/places/contexts/LocaleContext.d.ts +0 -15
  1378. package/dist/places/contexts/ModalStateContext.d.ts +0 -57
  1379. package/dist/places/contexts/ModuleContext.d.ts +0 -34
  1380. package/dist/places/contexts/NavigationContext.d.ts +0 -13
  1381. package/dist/places/contexts/PageMetadataContext.d.ts +0 -48
  1382. package/dist/places/crud/components/ActionMenuItems.d.ts +0 -22
  1383. package/dist/places/crud/components/BaseForm.d.ts +0 -52
  1384. package/dist/places/crud/components/ColumnSettingsPopover.d.ts +0 -28
  1385. package/dist/places/crud/components/ContextMenu.d.ts +0 -21
  1386. package/dist/places/crud/components/CrudActionBar.d.ts +0 -59
  1387. package/dist/places/crud/components/CrudGrid.d.ts +0 -53
  1388. package/dist/places/crud/components/CrudPagination.d.ts +0 -17
  1389. package/dist/places/crud/components/CrudTable.d.ts +0 -66
  1390. package/dist/places/crud/components/FilterBar.d.ts +0 -136
  1391. package/dist/places/crud/components/GroupDropZone.d.ts +0 -16
  1392. package/dist/places/crud/components/InlineRowActions.d.ts +0 -15
  1393. package/dist/places/crud/components/SelectionCheckbox.d.ts +0 -9
  1394. package/dist/places/crud/components/TableFooter.d.ts +0 -14
  1395. package/dist/places/crud/components/TableRowActions.d.ts +0 -19
  1396. package/dist/places/crud/createCrudPage.d.ts +0 -134
  1397. package/dist/places/crud/createSimpleService.d.ts +0 -85
  1398. package/dist/places/crud/generateCrudConfig.d.ts +0 -78
  1399. package/dist/places/crud/hooks/useBaseForm.d.ts +0 -47
  1400. package/dist/places/crud/hooks/useColumnDragReorder.d.ts +0 -19
  1401. package/dist/places/crud/hooks/useColumnManager.d.ts +0 -85
  1402. package/dist/places/crud/hooks/useCrud.d.ts +0 -152
  1403. package/dist/places/crud/primitives/ActionMenu.d.ts +0 -69
  1404. package/dist/places/crud/primitives/FilterBar.d.ts +0 -69
  1405. package/dist/places/crud/primitives/Pagination.d.ts +0 -29
  1406. package/dist/places/crud/primitives/Table.d.ts +0 -31
  1407. package/dist/places/crud/primitives/TreeTable.d.ts +0 -7
  1408. package/dist/places/crud/primitives/index.d.ts +0 -12
  1409. package/dist/places/crud/primitives/types.d.ts +0 -199
  1410. package/dist/places/crud/utils/routingHelpers.d.ts +0 -41
  1411. package/dist/places/custom-form-fields/components/CustomFormFields.d.ts +0 -11
  1412. package/dist/places/custom-form-fields/fields/FormDateField.d.ts +0 -9
  1413. package/dist/places/custom-form-fields/fields/FormMultiSelectionField.d.ts +0 -9
  1414. package/dist/places/custom-form-fields/fields/FormNumericField.d.ts +0 -9
  1415. package/dist/places/custom-form-fields/fields/FormQuestionsField.d.ts +0 -9
  1416. package/dist/places/custom-form-fields/fields/FormSingleSelectionField.d.ts +0 -9
  1417. package/dist/places/custom-form-fields/fields/FormTextField.d.ts +0 -9
  1418. package/dist/places/custom-form-fields/fields/FormTimeField.d.ts +0 -9
  1419. package/dist/places/custom-form-fields/fields/FormUrlField.d.ts +0 -9
  1420. package/dist/places/custom-form-fields/fields/ReadOnlyTextField.d.ts +0 -9
  1421. package/dist/places/custom-form-fields/index.d.ts +0 -13
  1422. package/dist/places/custom-form-fields/types.d.ts +0 -206
  1423. package/dist/places/exports/action-plans.d.ts +0 -16
  1424. package/dist/places/exports/audit-trail.d.ts +0 -1
  1425. package/dist/places/exports/crud.d.ts +0 -31
  1426. package/dist/places/exports/custom-form-fields.d.ts +0 -1
  1427. package/dist/places/exports/file-upload.d.ts +0 -1
  1428. package/dist/places/exports/integrations.d.ts +0 -15
  1429. package/dist/places/exports/ui.d.ts +0 -100
  1430. package/dist/places/file-upload/components/SingleFileUpload.d.ts +0 -102
  1431. package/dist/places/file-upload/index.d.ts +0 -6
  1432. package/dist/places/file-upload/types.d.ts +0 -26
  1433. package/dist/places/file-upload/utils/formatBytes.d.ts +0 -6
  1434. package/dist/places/file-upload/utils/getFileExtension.d.ts +0 -6
  1435. package/dist/places/hooks/useActiveModules.d.ts +0 -45
  1436. package/dist/places/hooks/useAliasFromUrl.d.ts +0 -33
  1437. package/dist/places/hooks/useColumnResize.d.ts +0 -45
  1438. package/dist/places/hooks/useDebounce.d.ts +0 -56
  1439. package/dist/places/hooks/useDerivedContractedModules.d.ts +0 -8
  1440. package/dist/places/hooks/useI18nFormatters.d.ts +0 -40
  1441. package/dist/places/hooks/useMediaQuery.d.ts +0 -14
  1442. package/dist/places/hooks/useModuleAccess.d.ts +0 -59
  1443. package/dist/places/hooks/usePageTitle.d.ts +0 -10
  1444. package/dist/places/hooks/usePermissionQuery.d.ts +0 -49
  1445. package/dist/places/hooks/useRowResize.d.ts +0 -37
  1446. package/dist/places/hooks/useSidebarResize.d.ts +0 -37
  1447. package/dist/places/hooks/useUpdatesNotification.d.ts +0 -27
  1448. package/dist/places/hooks/useWizard.d.ts +0 -40
  1449. package/dist/places/i18n/LanguageBootstrap.d.ts +0 -14
  1450. package/dist/places/i18n/config.d.ts +0 -13
  1451. package/dist/places/i18n/constants.d.ts +0 -126
  1452. package/dist/places/i18n/index.d.ts +0 -12
  1453. package/dist/places/i18n/utils.d.ts +0 -14
  1454. package/dist/places/integrations/clarity/clarityTracking.d.ts +0 -31
  1455. package/dist/places/integrations/clarity/index.d.ts +0 -3
  1456. package/dist/places/integrations/clarity/types.d.ts +0 -46
  1457. package/dist/places/integrations/clarity/useClarity.d.ts +0 -34
  1458. package/dist/places/integrations/index.d.ts +0 -5
  1459. package/dist/places/leadership/components/LeadershipDialog.d.ts +0 -10
  1460. package/dist/places/leadership/components/LeadershipForm.d.ts +0 -8
  1461. package/dist/places/leadership/components/LeadershipPage.d.ts +0 -19
  1462. package/dist/places/leadership/hooks/useLeadershipApi.d.ts +0 -4
  1463. package/dist/places/leadership/hooks/useLeadershipMutations.d.ts +0 -29
  1464. package/dist/places/leadership/index.d.ts +0 -13
  1465. package/dist/places/leadership/types.d.ts +0 -23
  1466. package/dist/places/leadership/utils/leadershipUtils.d.ts +0 -8
  1467. package/dist/places/media/components/ImageEditor.d.ts +0 -22
  1468. package/dist/places/media/components/ImageRenderer.d.ts +0 -23
  1469. package/dist/places/media/components/VideoEditor.d.ts +0 -2
  1470. package/dist/places/media/components/VideoRenderer.d.ts +0 -2
  1471. package/dist/places/media/hooks/useMediaUpload.d.ts +0 -19
  1472. package/dist/places/media/index.d.ts +0 -49
  1473. package/dist/places/media/types.d.ts +0 -66
  1474. package/dist/places/media/utils/imageHelpers.d.ts +0 -28
  1475. package/dist/places/media/utils/videoHelpers.d.ts +0 -35
  1476. package/dist/places/mind-map/components/MindMap.d.ts +0 -23
  1477. package/dist/places/mind-map/components/MindMapConnection.d.ts +0 -12
  1478. package/dist/places/mind-map/components/MindMapNodeView.d.ts +0 -24
  1479. package/dist/places/mind-map/components/MindMapToolbar.d.ts +0 -26
  1480. package/dist/places/mind-map/hooks/useMindMapKeyboard.d.ts +0 -15
  1481. package/dist/places/mind-map/hooks/useMindMapLayout.d.ts +0 -5
  1482. package/dist/places/mind-map/hooks/useMindMapPanZoom.d.ts +0 -21
  1483. package/dist/places/mind-map/hooks/useMindMapState.d.ts +0 -32
  1484. package/dist/places/mind-map/index.d.ts +0 -4
  1485. package/dist/places/mind-map/types.d.ts +0 -91
  1486. package/dist/places/mind-map/utils/export-image.d.ts +0 -9
  1487. package/dist/places/mind-map/utils/layout.d.ts +0 -15
  1488. package/dist/places/mind-map/utils/nodeOps.d.ts +0 -66
  1489. package/dist/places/mind-map/utils/serialize.d.ts +0 -10
  1490. package/dist/places/modules/softwaresMap.d.ts +0 -4
  1491. package/dist/places/places/components/ManageAccessModal.d.ts +0 -11
  1492. package/dist/places/places/components/PlaceCard.d.ts +0 -12
  1493. package/dist/places/places/components/PlacesList.d.ts +0 -12
  1494. package/dist/places/places/index.d.ts +0 -8
  1495. package/dist/places/places/services/PlaceService.d.ts +0 -9
  1496. package/dist/places/places/types.d.ts +0 -10
  1497. package/dist/places/providers/CoreProviders.d.ts +0 -107
  1498. package/dist/places/providers/index.d.ts +0 -2
  1499. package/dist/places/qualiex/components/QualiexUserField.d.ts +0 -133
  1500. package/dist/places/qualiex/hooks/useQualiexUsers.d.ts +0 -41
  1501. package/dist/places/qualiex/services/qualiexApi.d.ts +0 -75
  1502. package/dist/places/qualiex/utils/QualiexErrorInterceptor.d.ts +0 -20
  1503. package/dist/places/qualiex/utils/userPlaceUtils.d.ts +0 -16
  1504. package/dist/places/services/BaseService.d.ts +0 -51
  1505. package/dist/places/services/EmailService.d.ts +0 -110
  1506. package/dist/places/services/ErrorService.d.ts +0 -19
  1507. package/dist/places/services/QualiexEnrichmentService.d.ts +0 -53
  1508. package/dist/places/services/QualiexFieldHelpers.d.ts +0 -17
  1509. package/dist/places/setup/favicon.d.ts +0 -1
  1510. package/dist/places/setup.d.ts +0 -16
  1511. package/dist/places/sign/components/D4SignWidget.d.ts +0 -2
  1512. package/dist/places/sign/components/DocumentSigner.d.ts +0 -2
  1513. package/dist/places/sign/components/SignConfigForm.d.ts +0 -2
  1514. package/dist/places/sign/components/SignWidget.d.ts +0 -9
  1515. package/dist/places/sign/hooks/useSignConfig.d.ts +0 -6
  1516. package/dist/places/sign/index.d.ts +0 -8
  1517. package/dist/places/sign/services/signService.d.ts +0 -17
  1518. package/dist/places/sign/types.d.ts +0 -53
  1519. package/dist/places/sign/utils/loadClicksignScript.d.ts +0 -13
  1520. package/dist/places/supabase/SupabaseSingleton.d.ts +0 -34
  1521. package/dist/places/supabase/client.d.ts +0 -2
  1522. package/dist/places/supabase/legacyKeyGuard.d.ts +0 -19
  1523. package/dist/places/supabase/publicClient.d.ts +0 -2
  1524. package/dist/places/supabase/types.d.ts +0 -377
  1525. package/dist/places/team-selector/components/TeamSelector.d.ts +0 -24
  1526. package/dist/places/team-selector/index.d.ts +0 -2
  1527. package/dist/places/team-selector/types.d.ts +0 -10
  1528. package/dist/places/types/sidebar.d.ts +0 -52
  1529. package/dist/places/utils/color.d.ts +0 -26
  1530. package/dist/places/utils/formatters/currencyFormatters.d.ts +0 -1
  1531. package/dist/places/utils/formatters/dateFormatters.d.ts +0 -52
  1532. package/dist/places/utils/index.d.ts +0 -9
  1533. package/dist/places/utils/linkHelpers.d.ts +0 -9
  1534. package/dist/places/utils/load-fonts.d.ts +0 -1
  1535. package/dist/sign/action-plans/components/ActionPlanAttachmentsTab.d.ts +0 -21
  1536. package/dist/sign/action-plans/components/ActionPlanCommentsTab.d.ts +0 -21
  1537. package/dist/sign/action-plans/components/ActionPlanCostTab.d.ts +0 -15
  1538. package/dist/sign/action-plans/components/ActionPlanGeneralTab.d.ts +0 -21
  1539. package/dist/sign/action-plans/components/ActionPlanHistoryTab.d.ts +0 -16
  1540. package/dist/sign/action-plans/components/ActionPlanPage.d.ts +0 -25
  1541. package/dist/sign/action-plans/components/ActionPlanPredecessorsTab.d.ts +0 -15
  1542. package/dist/sign/action-plans/components/ActionPlanProgressDialog.d.ts +0 -16
  1543. package/dist/sign/action-plans/components/ActionPlanProgressTab.d.ts +0 -10
  1544. package/dist/sign/action-plans/components/ActionPlanStatusBadge.d.ts +0 -18
  1545. package/dist/sign/action-plans/constants.d.ts +0 -86
  1546. package/dist/sign/action-plans/hooks/useActionPlan.d.ts +0 -19
  1547. package/dist/sign/action-plans/hooks/useActionPlanProgress.d.ts +0 -20
  1548. package/dist/sign/action-plans/index.d.ts +0 -15
  1549. package/dist/sign/action-plans/types.d.ts +0 -413
  1550. package/dist/sign/action-plans/utils/formatTime.d.ts +0 -24
  1551. package/dist/sign/approval-flow/components/ApprovalSidenav.d.ts +0 -16
  1552. package/dist/sign/approval-flow/components/ApproveDialog.d.ts +0 -13
  1553. package/dist/sign/approval-flow/components/SelectApproverDialog.d.ts +0 -11
  1554. package/dist/sign/approval-flow/index.d.ts +0 -4
  1555. package/dist/sign/approval-flow/types.d.ts +0 -76
  1556. package/dist/sign/assets/index.d.ts +0 -7
  1557. package/dist/sign/audit-trail/components/AuditTrailDetails.d.ts +0 -27
  1558. package/dist/sign/audit-trail/components/AuditTrailFilter.d.ts +0 -29
  1559. package/dist/sign/audit-trail/components/AuditTrailPage.d.ts +0 -40
  1560. package/dist/sign/audit-trail/index.d.ts +0 -9
  1561. package/dist/sign/audit-trail/types.d.ts +0 -209
  1562. package/dist/sign/audit-trail/utils.d.ts +0 -54
  1563. package/dist/sign/auth/components/AliasRedirect.d.ts +0 -13
  1564. package/dist/sign/auth/components/AliasRouteGuard.d.ts +0 -20
  1565. package/dist/sign/auth/components/EditProfileDialog.d.ts +0 -13
  1566. package/dist/sign/auth/components/ProtectedRoute.d.ts +0 -11
  1567. package/dist/sign/auth/components/UserInfo.d.ts +0 -10
  1568. package/dist/sign/auth/contexts/AuthContext.d.ts +0 -89
  1569. package/dist/sign/auth/pages/CallbackPage.d.ts +0 -6
  1570. package/dist/sign/auth/pages/LoginPage.d.ts +0 -2
  1571. package/dist/sign/auth/services/AuthService.d.ts +0 -64
  1572. package/dist/sign/auth/services/SupabaseTokenService.d.ts +0 -3
  1573. package/dist/sign/auth/services/TokenManager.d.ts +0 -66
  1574. package/dist/sign/auth/services/TokenRegenerationService.d.ts +0 -14
  1575. package/dist/sign/auth/services/TokenService.d.ts +0 -48
  1576. package/dist/sign/auth/utils/ErrorInterceptor.d.ts +0 -20
  1577. package/dist/sign/components/ErrorBoundary.d.ts +0 -19
  1578. package/dist/sign/components/dashboards/dashboard-form.d.ts +0 -65
  1579. package/dist/sign/components/dashboards/dashboard-general-view.d.ts +0 -124
  1580. package/dist/sign/components/dashboards/dashboard-grid.d.ts +0 -66
  1581. package/dist/sign/components/dashboards/dashboard-list.d.ts +0 -41
  1582. package/dist/sign/components/dashboards/dashboard-panel-renderer.d.ts +0 -31
  1583. package/dist/sign/components/dashboards/dashboard-view.d.ts +0 -48
  1584. package/dist/sign/components/dashboards/helpers.d.ts +0 -86
  1585. package/dist/sign/components/dashboards/index.d.ts +0 -9
  1586. package/dist/sign/components/dashboards/panels/burndown-panel.d.ts +0 -41
  1587. package/dist/sign/components/dashboards/panels/cartesian-panel.d.ts +0 -66
  1588. package/dist/sign/components/dashboards/panels/index.d.ts +0 -14
  1589. package/dist/sign/components/dashboards/panels/list-panel.d.ts +0 -45
  1590. package/dist/sign/components/dashboards/panels/matrix-risk-panel.d.ts +0 -74
  1591. package/dist/sign/components/dashboards/panels/numeric-panel.d.ts +0 -32
  1592. package/dist/sign/components/dashboards/panels/panel-error.d.ts +0 -18
  1593. package/dist/sign/components/dashboards/panels/panel-header.d.ts +0 -27
  1594. package/dist/sign/components/dashboards/panels/panel-loader.d.ts +0 -17
  1595. package/dist/sign/components/dashboards/panels/panel-no-data.d.ts +0 -16
  1596. package/dist/sign/components/dashboards/panels/panel-unavailable.d.ts +0 -16
  1597. package/dist/sign/components/dashboards/panels/pareto-panel.d.ts +0 -30
  1598. package/dist/sign/components/dashboards/panels/performance-panel.d.ts +0 -39
  1599. package/dist/sign/components/dashboards/panels/pie-panel.d.ts +0 -29
  1600. package/dist/sign/components/dashboards/panels/text-panel.d.ts +0 -28
  1601. package/dist/sign/components/dashboards/types.d.ts +0 -755
  1602. package/dist/sign/components/layout/AppHeader.d.ts +0 -6
  1603. package/dist/sign/components/layout/AppLayout.d.ts +0 -10
  1604. package/dist/sign/components/layout/AppSidebar.d.ts +0 -10
  1605. package/dist/sign/components/layout/BodyContent.d.ts +0 -60
  1606. package/dist/sign/components/layout/SidebarActionTrigger.d.ts +0 -46
  1607. package/dist/sign/components/layout/SidebarHeader.d.ts +0 -5
  1608. package/dist/sign/components/layout/SidebarLogo.d.ts +0 -5
  1609. package/dist/sign/components/layout/sidebar-utils.d.ts +0 -12
  1610. package/dist/sign/components/modules/AccessDeniedDialog.d.ts +0 -43
  1611. package/dist/sign/components/modules/ModuleAccessGuard.d.ts +0 -42
  1612. package/dist/sign/components/modules/ModuleGrid.d.ts +0 -9
  1613. package/dist/sign/components/modules/ModuleOfferContent.d.ts +0 -20
  1614. package/dist/sign/components/modules/ModulesContent.d.ts +0 -21
  1615. package/dist/sign/components/modules/ModulesDialog.d.ts +0 -3
  1616. package/dist/sign/components/modules/ModulesFooterCards.d.ts +0 -10
  1617. package/dist/sign/components/modules/icons/ModulesCardIcons.d.ts +0 -19
  1618. package/dist/sign/components/modules/index.d.ts +0 -14
  1619. package/dist/sign/components/modules/modulesData.d.ts +0 -6
  1620. package/dist/sign/components/modules/types.d.ts +0 -41
  1621. package/dist/sign/components/ui/accordion.d.ts +0 -42
  1622. package/dist/sign/components/ui/action-button.d.ts +0 -48
  1623. package/dist/sign/components/ui/alert-dialog.d.ts +0 -102
  1624. package/dist/sign/components/ui/alert.d.ts +0 -44
  1625. package/dist/sign/components/ui/avatar.d.ts +0 -36
  1626. package/dist/sign/components/ui/badge.d.ts +0 -41
  1627. package/dist/sign/components/ui/breadcrumb.d.ts +0 -73
  1628. package/dist/sign/components/ui/button-group.d.ts +0 -24
  1629. package/dist/sign/components/ui/button.d.ts +0 -66
  1630. package/dist/sign/components/ui/calendar.d.ts +0 -24
  1631. package/dist/sign/components/ui/card.d.ts +0 -57
  1632. package/dist/sign/components/ui/chart.d.ts +0 -97
  1633. package/dist/sign/components/ui/checkbox.d.ts +0 -15
  1634. package/dist/sign/components/ui/collapsible.d.ts +0 -20
  1635. package/dist/sign/components/ui/color-picker.d.ts +0 -19
  1636. package/dist/sign/components/ui/combo-tree.d.ts +0 -103
  1637. package/dist/sign/components/ui/combobox.d.ts +0 -64
  1638. package/dist/sign/components/ui/command.d.ts +0 -89
  1639. package/dist/sign/components/ui/context-menu.d.ts +0 -122
  1640. package/dist/sign/components/ui/data-list.d.ts +0 -86
  1641. package/dist/sign/components/ui/date-picker.d.ts +0 -19
  1642. package/dist/sign/components/ui/dialog-wizard.d.ts +0 -100
  1643. package/dist/sign/components/ui/dialog.d.ts +0 -229
  1644. package/dist/sign/components/ui/disabled-menu-item.d.ts +0 -25
  1645. package/dist/sign/components/ui/drawer.d.ts +0 -94
  1646. package/dist/sign/components/ui/dropdown-menu.d.ts +0 -180
  1647. package/dist/sign/components/ui/electronic-signature-dialog.d.ts +0 -31
  1648. package/dist/sign/components/ui/empty-state.d.ts +0 -79
  1649. package/dist/sign/components/ui/export-dialog.d.ts +0 -48
  1650. package/dist/sign/components/ui/form.d.ts +0 -119
  1651. package/dist/sign/components/ui/grid.d.ts +0 -53
  1652. package/dist/sign/components/ui/hover-card.d.ts +0 -21
  1653. package/dist/sign/components/ui/icon-picker.d.ts +0 -17
  1654. package/dist/sign/components/ui/iframe-dialog.d.ts +0 -24
  1655. package/dist/sign/components/ui/input-group.d.ts +0 -113
  1656. package/dist/sign/components/ui/input.d.ts +0 -24
  1657. package/dist/sign/components/ui/label.d.ts +0 -23
  1658. package/dist/sign/components/ui/loading-state.d.ts +0 -52
  1659. package/dist/sign/components/ui/menubar.d.ts +0 -113
  1660. package/dist/sign/components/ui/multiselect-permissions.d.ts +0 -84
  1661. package/dist/sign/components/ui/navigation-menu.d.ts +0 -57
  1662. package/dist/sign/components/ui/onboarding-dialog.d.ts +0 -58
  1663. package/dist/sign/components/ui/online-editor-dialog.d.ts +0 -28
  1664. package/dist/sign/components/ui/page-breadcrumb.d.ts +0 -77
  1665. package/dist/sign/components/ui/pagination.d.ts +0 -81
  1666. package/dist/sign/components/ui/popover.d.ts +0 -57
  1667. package/dist/sign/components/ui/progress.d.ts +0 -22
  1668. package/dist/sign/components/ui/radio-group.d.ts +0 -66
  1669. package/dist/sign/components/ui/report-request-list.d.ts +0 -64
  1670. package/dist/sign/components/ui/resizable.d.ts +0 -38
  1671. package/dist/sign/components/ui/rich-text-editor.d.ts +0 -58
  1672. package/dist/sign/components/ui/scroll-area.d.ts +0 -40
  1673. package/dist/sign/components/ui/select.d.ts +0 -94
  1674. package/dist/sign/components/ui/separator.d.ts +0 -17
  1675. package/dist/sign/components/ui/sheet.d.ts +0 -108
  1676. package/dist/sign/components/ui/sidebar.d.ts +0 -269
  1677. package/dist/sign/components/ui/skeleton-variants.d.ts +0 -41
  1678. package/dist/sign/components/ui/skeleton.d.ts +0 -14
  1679. package/dist/sign/components/ui/slider.d.ts +0 -9
  1680. package/dist/sign/components/ui/sonner.d.ts +0 -8
  1681. package/dist/sign/components/ui/spinner.d.ts +0 -11
  1682. package/dist/sign/components/ui/split-button.d.ts +0 -76
  1683. package/dist/sign/components/ui/stack.d.ts +0 -17
  1684. package/dist/sign/components/ui/status-badge.d.ts +0 -52
  1685. package/dist/sign/components/ui/step-selector.d.ts +0 -46
  1686. package/dist/sign/components/ui/stimulsoft-viewer.d.ts +0 -28
  1687. package/dist/sign/components/ui/switch.d.ts +0 -25
  1688. package/dist/sign/components/ui/tab-page-layout.d.ts +0 -52
  1689. package/dist/sign/components/ui/table-resize-handle.d.ts +0 -22
  1690. package/dist/sign/components/ui/table.d.ts +0 -112
  1691. package/dist/sign/components/ui/tabs.d.ts +0 -66
  1692. package/dist/sign/components/ui/terms-of-use-dialog.d.ts +0 -102
  1693. package/dist/sign/components/ui/textarea.d.ts +0 -33
  1694. package/dist/sign/components/ui/timepicker.d.ts +0 -34
  1695. package/dist/sign/components/ui/toggle-group.d.ts +0 -37
  1696. package/dist/sign/components/ui/toggle.d.ts +0 -33
  1697. package/dist/sign/components/ui/tooltip.d.ts +0 -61
  1698. package/dist/sign/components/ui/truncated-cell.d.ts +0 -20
  1699. package/dist/sign/components/ui/typography.d.ts +0 -135
  1700. package/dist/sign/components/ui/updates-notification.d.ts +0 -47
  1701. package/dist/sign/components/ui/users-groups-selector.d.ts +0 -87
  1702. package/dist/sign/components/ui/viewer-dialog.d.ts +0 -184
  1703. package/dist/sign/config/backend.d.ts +0 -10
  1704. package/dist/sign/config/environments.d.ts +0 -27
  1705. package/dist/sign/config/index.d.ts +0 -75
  1706. package/dist/sign/contexts/LocaleContext.d.ts +0 -15
  1707. package/dist/sign/contexts/ModalStateContext.d.ts +0 -57
  1708. package/dist/sign/contexts/ModuleContext.d.ts +0 -34
  1709. package/dist/sign/contexts/NavigationContext.d.ts +0 -13
  1710. package/dist/sign/contexts/PageMetadataContext.d.ts +0 -48
  1711. package/dist/sign/crud/components/ActionMenuItems.d.ts +0 -22
  1712. package/dist/sign/crud/components/BaseForm.d.ts +0 -52
  1713. package/dist/sign/crud/components/ColumnSettingsPopover.d.ts +0 -28
  1714. package/dist/sign/crud/components/ContextMenu.d.ts +0 -21
  1715. package/dist/sign/crud/components/CrudActionBar.d.ts +0 -59
  1716. package/dist/sign/crud/components/CrudGrid.d.ts +0 -53
  1717. package/dist/sign/crud/components/CrudPagination.d.ts +0 -17
  1718. package/dist/sign/crud/components/CrudTable.d.ts +0 -66
  1719. package/dist/sign/crud/components/FilterBar.d.ts +0 -136
  1720. package/dist/sign/crud/components/GroupDropZone.d.ts +0 -16
  1721. package/dist/sign/crud/components/InlineRowActions.d.ts +0 -15
  1722. package/dist/sign/crud/components/SelectionCheckbox.d.ts +0 -9
  1723. package/dist/sign/crud/components/TableFooter.d.ts +0 -14
  1724. package/dist/sign/crud/components/TableRowActions.d.ts +0 -19
  1725. package/dist/sign/crud/createCrudPage.d.ts +0 -134
  1726. package/dist/sign/crud/createSimpleService.d.ts +0 -85
  1727. package/dist/sign/crud/generateCrudConfig.d.ts +0 -78
  1728. package/dist/sign/crud/hooks/useBaseForm.d.ts +0 -47
  1729. package/dist/sign/crud/hooks/useColumnDragReorder.d.ts +0 -19
  1730. package/dist/sign/crud/hooks/useColumnManager.d.ts +0 -85
  1731. package/dist/sign/crud/hooks/useCrud.d.ts +0 -152
  1732. package/dist/sign/crud/primitives/ActionMenu.d.ts +0 -69
  1733. package/dist/sign/crud/primitives/FilterBar.d.ts +0 -69
  1734. package/dist/sign/crud/primitives/Pagination.d.ts +0 -29
  1735. package/dist/sign/crud/primitives/Table.d.ts +0 -31
  1736. package/dist/sign/crud/primitives/TreeTable.d.ts +0 -7
  1737. package/dist/sign/crud/primitives/index.d.ts +0 -12
  1738. package/dist/sign/crud/primitives/types.d.ts +0 -199
  1739. package/dist/sign/crud/utils/routingHelpers.d.ts +0 -41
  1740. package/dist/sign/custom-form-fields/components/CustomFormFields.d.ts +0 -11
  1741. package/dist/sign/custom-form-fields/fields/FormDateField.d.ts +0 -9
  1742. package/dist/sign/custom-form-fields/fields/FormMultiSelectionField.d.ts +0 -9
  1743. package/dist/sign/custom-form-fields/fields/FormNumericField.d.ts +0 -9
  1744. package/dist/sign/custom-form-fields/fields/FormQuestionsField.d.ts +0 -9
  1745. package/dist/sign/custom-form-fields/fields/FormSingleSelectionField.d.ts +0 -9
  1746. package/dist/sign/custom-form-fields/fields/FormTextField.d.ts +0 -9
  1747. package/dist/sign/custom-form-fields/fields/FormTimeField.d.ts +0 -9
  1748. package/dist/sign/custom-form-fields/fields/FormUrlField.d.ts +0 -9
  1749. package/dist/sign/custom-form-fields/fields/ReadOnlyTextField.d.ts +0 -9
  1750. package/dist/sign/custom-form-fields/index.d.ts +0 -13
  1751. package/dist/sign/custom-form-fields/types.d.ts +0 -206
  1752. package/dist/sign/exports/action-plans.d.ts +0 -16
  1753. package/dist/sign/exports/audit-trail.d.ts +0 -1
  1754. package/dist/sign/exports/crud.d.ts +0 -31
  1755. package/dist/sign/exports/custom-form-fields.d.ts +0 -1
  1756. package/dist/sign/exports/file-upload.d.ts +0 -1
  1757. package/dist/sign/exports/integrations.d.ts +0 -15
  1758. package/dist/sign/exports/ui.d.ts +0 -100
  1759. package/dist/sign/file-upload/components/SingleFileUpload.d.ts +0 -102
  1760. package/dist/sign/file-upload/index.d.ts +0 -6
  1761. package/dist/sign/file-upload/types.d.ts +0 -26
  1762. package/dist/sign/file-upload/utils/formatBytes.d.ts +0 -6
  1763. package/dist/sign/file-upload/utils/getFileExtension.d.ts +0 -6
  1764. package/dist/sign/hooks/useActiveModules.d.ts +0 -45
  1765. package/dist/sign/hooks/useAliasFromUrl.d.ts +0 -33
  1766. package/dist/sign/hooks/useColumnResize.d.ts +0 -45
  1767. package/dist/sign/hooks/useDebounce.d.ts +0 -56
  1768. package/dist/sign/hooks/useDerivedContractedModules.d.ts +0 -8
  1769. package/dist/sign/hooks/useI18nFormatters.d.ts +0 -40
  1770. package/dist/sign/hooks/useMediaQuery.d.ts +0 -14
  1771. package/dist/sign/hooks/useModuleAccess.d.ts +0 -59
  1772. package/dist/sign/hooks/usePageTitle.d.ts +0 -10
  1773. package/dist/sign/hooks/usePermissionQuery.d.ts +0 -49
  1774. package/dist/sign/hooks/useRowResize.d.ts +0 -37
  1775. package/dist/sign/hooks/useSidebarResize.d.ts +0 -37
  1776. package/dist/sign/hooks/useUpdatesNotification.d.ts +0 -27
  1777. package/dist/sign/hooks/useWizard.d.ts +0 -40
  1778. package/dist/sign/i18n/LanguageBootstrap.d.ts +0 -14
  1779. package/dist/sign/i18n/config.d.ts +0 -13
  1780. package/dist/sign/i18n/constants.d.ts +0 -126
  1781. package/dist/sign/i18n/index.d.ts +0 -12
  1782. package/dist/sign/i18n/utils.d.ts +0 -14
  1783. package/dist/sign/integrations/clarity/clarityTracking.d.ts +0 -31
  1784. package/dist/sign/integrations/clarity/index.d.ts +0 -3
  1785. package/dist/sign/integrations/clarity/types.d.ts +0 -46
  1786. package/dist/sign/integrations/clarity/useClarity.d.ts +0 -34
  1787. package/dist/sign/integrations/index.d.ts +0 -5
  1788. package/dist/sign/leadership/components/LeadershipDialog.d.ts +0 -10
  1789. package/dist/sign/leadership/components/LeadershipForm.d.ts +0 -8
  1790. package/dist/sign/leadership/components/LeadershipPage.d.ts +0 -19
  1791. package/dist/sign/leadership/hooks/useLeadershipApi.d.ts +0 -4
  1792. package/dist/sign/leadership/hooks/useLeadershipMutations.d.ts +0 -29
  1793. package/dist/sign/leadership/index.d.ts +0 -13
  1794. package/dist/sign/leadership/types.d.ts +0 -23
  1795. package/dist/sign/leadership/utils/leadershipUtils.d.ts +0 -8
  1796. package/dist/sign/media/components/ImageEditor.d.ts +0 -22
  1797. package/dist/sign/media/components/ImageRenderer.d.ts +0 -23
  1798. package/dist/sign/media/components/VideoEditor.d.ts +0 -2
  1799. package/dist/sign/media/components/VideoRenderer.d.ts +0 -2
  1800. package/dist/sign/media/hooks/useMediaUpload.d.ts +0 -19
  1801. package/dist/sign/media/index.d.ts +0 -49
  1802. package/dist/sign/media/types.d.ts +0 -66
  1803. package/dist/sign/media/utils/imageHelpers.d.ts +0 -28
  1804. package/dist/sign/media/utils/videoHelpers.d.ts +0 -35
  1805. package/dist/sign/mind-map/components/MindMap.d.ts +0 -23
  1806. package/dist/sign/mind-map/components/MindMapConnection.d.ts +0 -12
  1807. package/dist/sign/mind-map/components/MindMapNodeView.d.ts +0 -24
  1808. package/dist/sign/mind-map/components/MindMapToolbar.d.ts +0 -26
  1809. package/dist/sign/mind-map/hooks/useMindMapKeyboard.d.ts +0 -15
  1810. package/dist/sign/mind-map/hooks/useMindMapLayout.d.ts +0 -5
  1811. package/dist/sign/mind-map/hooks/useMindMapPanZoom.d.ts +0 -21
  1812. package/dist/sign/mind-map/hooks/useMindMapState.d.ts +0 -32
  1813. package/dist/sign/mind-map/index.d.ts +0 -4
  1814. package/dist/sign/mind-map/types.d.ts +0 -91
  1815. package/dist/sign/mind-map/utils/export-image.d.ts +0 -9
  1816. package/dist/sign/mind-map/utils/layout.d.ts +0 -15
  1817. package/dist/sign/mind-map/utils/nodeOps.d.ts +0 -66
  1818. package/dist/sign/mind-map/utils/serialize.d.ts +0 -10
  1819. package/dist/sign/modules/softwaresMap.d.ts +0 -4
  1820. package/dist/sign/places/components/ManageAccessModal.d.ts +0 -11
  1821. package/dist/sign/places/components/PlaceCard.d.ts +0 -12
  1822. package/dist/sign/places/components/PlacesList.d.ts +0 -12
  1823. package/dist/sign/places/index.d.ts +0 -8
  1824. package/dist/sign/places/services/PlaceService.d.ts +0 -9
  1825. package/dist/sign/places/types.d.ts +0 -10
  1826. package/dist/sign/providers/CoreProviders.d.ts +0 -107
  1827. package/dist/sign/providers/index.d.ts +0 -2
  1828. package/dist/sign/qualiex/components/QualiexUserField.d.ts +0 -133
  1829. package/dist/sign/qualiex/hooks/useQualiexUsers.d.ts +0 -41
  1830. package/dist/sign/qualiex/services/qualiexApi.d.ts +0 -75
  1831. package/dist/sign/qualiex/utils/QualiexErrorInterceptor.d.ts +0 -20
  1832. package/dist/sign/qualiex/utils/userPlaceUtils.d.ts +0 -16
  1833. package/dist/sign/services/BaseService.d.ts +0 -51
  1834. package/dist/sign/services/EmailService.d.ts +0 -110
  1835. package/dist/sign/services/ErrorService.d.ts +0 -19
  1836. package/dist/sign/services/QualiexEnrichmentService.d.ts +0 -53
  1837. package/dist/sign/services/QualiexFieldHelpers.d.ts +0 -17
  1838. package/dist/sign/setup/favicon.d.ts +0 -1
  1839. package/dist/sign/setup.d.ts +0 -16
  1840. package/dist/sign/sign/components/D4SignWidget.d.ts +0 -2
  1841. package/dist/sign/sign/components/DocumentSigner.d.ts +0 -2
  1842. package/dist/sign/sign/components/SignConfigForm.d.ts +0 -2
  1843. package/dist/sign/sign/components/SignWidget.d.ts +0 -9
  1844. package/dist/sign/sign/hooks/useSignConfig.d.ts +0 -6
  1845. package/dist/sign/sign/index.d.ts +0 -8
  1846. package/dist/sign/sign/services/signService.d.ts +0 -17
  1847. package/dist/sign/sign/types.d.ts +0 -53
  1848. package/dist/sign/sign/utils/loadClicksignScript.d.ts +0 -13
  1849. package/dist/sign/supabase/SupabaseSingleton.d.ts +0 -34
  1850. package/dist/sign/supabase/client.d.ts +0 -2
  1851. package/dist/sign/supabase/legacyKeyGuard.d.ts +0 -19
  1852. package/dist/sign/supabase/publicClient.d.ts +0 -2
  1853. package/dist/sign/supabase/types.d.ts +0 -377
  1854. package/dist/sign/team-selector/components/TeamSelector.d.ts +0 -24
  1855. package/dist/sign/team-selector/index.d.ts +0 -2
  1856. package/dist/sign/team-selector/types.d.ts +0 -10
  1857. package/dist/sign/types/sidebar.d.ts +0 -52
  1858. package/dist/sign/utils/color.d.ts +0 -26
  1859. package/dist/sign/utils/formatters/currencyFormatters.d.ts +0 -1
  1860. package/dist/sign/utils/formatters/dateFormatters.d.ts +0 -52
  1861. package/dist/sign/utils/index.d.ts +0 -9
  1862. package/dist/sign/utils/linkHelpers.d.ts +0 -9
  1863. package/dist/sign/utils/load-fonts.d.ts +0 -1
  1864. package/docs/PUBLISH.md +0 -180
  1865. package/docs/SECURITY.md +0 -245
  1866. package/docs/STORAGE_BUCKETS.md +0 -456
  1867. package/docs/SUPABASE_SECRETS.md +0 -122
  1868. package/docs/WORKSPACE_KNOWLEDGE.md +0 -189
  1869. package/docs/design-system/buttons-actions.md +0 -433
  1870. package/docs/design-system/charts-dashboards.md +0 -547
  1871. package/docs/design-system/crud.md +0 -243
  1872. package/docs/design-system/data-display.md +0 -365
  1873. package/docs/design-system/dialogs.md +0 -590
  1874. package/docs/design-system/domain.md +0 -671
  1875. package/docs/design-system/examples.md +0 -275
  1876. package/docs/design-system/foundation.md +0 -82
  1877. package/docs/design-system/infra-utils.md +0 -36
  1878. package/docs/design-system/inputs.md +0 -561
  1879. package/docs/design-system/layout.md +0 -351
  1880. package/docs/design-system/navigation.md +0 -609
  1881. package/docs/design-system/notifications-feedback.md +0 -139
  1882. package/docs/design-system/patterns/README.md +0 -53
  1883. package/docs/design-system/patterns/action-button.md +0 -22
  1884. package/docs/design-system/patterns/alertdialog-deletion.md +0 -46
  1885. package/docs/design-system/patterns/baseform-custom-fields.md +0 -59
  1886. package/docs/design-system/patterns/baseform-usage.md +0 -42
  1887. package/docs/design-system/patterns/body-content-scroll.md +0 -56
  1888. package/docs/design-system/patterns/combo-tree.md +0 -23
  1889. package/docs/design-system/patterns/components-registry.md +0 -17
  1890. package/docs/design-system/patterns/core-providers.md +0 -258
  1891. package/docs/design-system/patterns/crud-bulk-actions.md +0 -12
  1892. package/docs/design-system/patterns/crud-config-props.md +0 -17
  1893. package/docs/design-system/patterns/crud-defaults.md +0 -17
  1894. package/docs/design-system/patterns/crud-toolbar.md +0 -28
  1895. package/docs/design-system/patterns/delete-confirmation.md +0 -40
  1896. package/docs/design-system/patterns/dialog-body-scroll.md +0 -26
  1897. package/docs/design-system/patterns/dialog-structure.md +0 -32
  1898. package/docs/design-system/patterns/dialog-variants.md +0 -41
  1899. package/docs/design-system/patterns/feature-flags.md +0 -113
  1900. package/docs/design-system/patterns/header-metadata.md +0 -57
  1901. package/docs/design-system/patterns/i18n-setup.md +0 -117
  1902. package/docs/design-system/patterns/module-access.md +0 -72
  1903. package/docs/design-system/patterns/pagination.md +0 -27
  1904. package/docs/design-system/patterns/single-scroll.md +0 -39
  1905. package/docs/design-system/patterns/vite-tailwind-setup.md +0 -49
  1906. package/docs/design-system/platform.md +0 -55
  1907. package/docs/design-system/selectors.md +0 -481
  1908. package/docs/design-system/tables-grids.md +0 -114
  1909. package/docs/sql/import/00_infra.sql +0 -210
  1910. package/docs/sql/import/validate_criteria.sql +0 -209
  1911. package/docs/sql/import/validate_materials_services.sql +0 -216
  1912. package/docs/sql/import/validate_occurrences.sql +0 -289
  1913. package/docs/sql/import/validate_occurrences_categories.sql +0 -249
  1914. package/docs/sql/import/validate_occurrences_causes_classification.sql +0 -112
  1915. package/docs/sql/import/validate_occurrences_types.sql +0 -113
  1916. package/docs/sql/import/validate_risks.sql +0 -221
  1917. package/docs/sql/import/validate_risks_categories.sql +0 -231
  1918. package/docs/sql/import/validate_risks_groups.sql +0 -194
  1919. package/docs/sql/import/validate_suppliers.sql +0 -250
  1920. package/docs/sql/import/validate_suppliers_categories.sql +0 -150
  1921. package/docs/sql/import/validate_supply_types.sql +0 -165
  1922. /package/dist/{action-plans → legacy}/components/dashboards/dashboard-panel-renderer.d.ts +0 -0
  1923. /package/dist/{action-plans → legacy}/components/dashboards/helpers.d.ts +0 -0
  1924. /package/dist/{action-plans → legacy}/components/dashboards/index.d.ts +0 -0
  1925. /package/dist/{action-plans → legacy}/components/dashboards/panels/index.d.ts +0 -0
  1926. /package/dist/{action-plans → legacy}/components/dashboards/types.d.ts +0 -0
  1927. /package/dist/{action-plans → legacy}/components/layout/AppHeader.d.ts +0 -0
  1928. /package/dist/{action-plans → legacy}/components/layout/sidebar-utils.d.ts +0 -0
  1929. /package/dist/{action-plans → legacy}/components/modules/index.d.ts +0 -0
  1930. /package/dist/{action-plans → legacy}/components/modules/modulesData.d.ts +0 -0
  1931. /package/dist/{action-plans → legacy}/components/ui/accordion.d.ts +0 -0
  1932. /package/dist/{action-plans → legacy}/components/ui/action-button.d.ts +0 -0
  1933. /package/dist/{action-plans → legacy}/components/ui/avatar.d.ts +0 -0
  1934. /package/dist/{action-plans → legacy}/components/ui/button-group.d.ts +0 -0
  1935. /package/dist/{action-plans → legacy}/components/ui/card.d.ts +0 -0
  1936. /package/dist/{action-plans → legacy}/components/ui/checkbox.d.ts +0 -0
  1937. /package/dist/{action-plans → legacy}/components/ui/collapsible.d.ts +0 -0
  1938. /package/dist/{action-plans → legacy}/components/ui/color-picker.d.ts +0 -0
  1939. /package/dist/{action-plans → legacy}/components/ui/disabled-menu-item.d.ts +0 -0
  1940. /package/dist/{action-plans → legacy}/components/ui/hover-card.d.ts +0 -0
  1941. /package/dist/{action-plans → legacy}/components/ui/icon-picker.d.ts +0 -0
  1942. /package/dist/{action-plans → legacy}/components/ui/input.d.ts +0 -0
  1943. /package/dist/{action-plans → legacy}/components/ui/label.d.ts +0 -0
  1944. /package/dist/{action-plans → legacy}/components/ui/navigation-menu.d.ts +0 -0
  1945. /package/dist/{action-plans → legacy}/components/ui/onboarding-dialog.d.ts +0 -0
  1946. /package/dist/{action-plans → legacy}/components/ui/popover.d.ts +0 -0
  1947. /package/dist/{action-plans → legacy}/components/ui/progress.d.ts +0 -0
  1948. /package/dist/{action-plans → legacy}/components/ui/radio-group.d.ts +0 -0
  1949. /package/dist/{action-plans → legacy}/components/ui/rich-text-editor.d.ts +0 -0
  1950. /package/dist/{action-plans → legacy}/components/ui/scroll-area.d.ts +0 -0
  1951. /package/dist/{action-plans → legacy}/components/ui/separator.d.ts +0 -0
  1952. /package/dist/{action-plans → legacy}/components/ui/slider.d.ts +0 -0
  1953. /package/dist/{action-plans → legacy}/components/ui/switch.d.ts +0 -0
  1954. /package/dist/{action-plans → legacy}/components/ui/table-resize-handle.d.ts +0 -0
  1955. /package/dist/{action-plans → legacy}/components/ui/table.d.ts +0 -0
  1956. /package/dist/{action-plans → legacy}/components/ui/tabs.d.ts +0 -0
  1957. /package/dist/{action-plans → legacy}/components/ui/textarea.d.ts +0 -0
  1958. /package/dist/{action-plans → legacy}/components/ui/timepicker.d.ts +0 -0
  1959. /package/dist/{action-plans → legacy}/components/ui/typography.d.ts +0 -0
  1960. /package/dist/{action-plans → legacy}/crud/components/ActionMenuItems.d.ts +0 -0
  1961. /package/dist/{action-plans → legacy}/crud/components/InlineRowActions.d.ts +0 -0
  1962. /package/dist/{action-plans → legacy}/crud/components/SelectionCheckbox.d.ts +0 -0
  1963. /package/dist/{action-plans → legacy}/crud/components/TableRowActions.d.ts +0 -0
  1964. /package/dist/{action-plans → legacy}/crud/hooks/useColumnDragReorder.d.ts +0 -0
  1965. /package/dist/{action-plans → legacy}/crud/primitives/index.d.ts +0 -0
  1966. /package/dist/{action-plans → legacy}/crud/primitives/types.d.ts +0 -0
  1967. /package/dist/{action-plans → legacy}/hooks/useActiveModules.d.ts +0 -0
  1968. /package/dist/{action-plans → legacy}/hooks/useAliasFromUrl.d.ts +0 -0
  1969. /package/dist/{action-plans → legacy}/hooks/useColumnResize.d.ts +0 -0
  1970. /package/dist/{action-plans → legacy}/hooks/useDebounce.d.ts +0 -0
  1971. /package/dist/{action-plans → legacy}/hooks/useDerivedContractedModules.d.ts +0 -0
  1972. /package/dist/{action-plans → legacy}/hooks/useI18nFormatters.d.ts +0 -0
  1973. /package/dist/{action-plans → legacy}/hooks/useMediaQuery.d.ts +0 -0
  1974. /package/dist/{action-plans → legacy}/hooks/usePageTitle.d.ts +0 -0
  1975. /package/dist/{action-plans → legacy}/hooks/usePermissionQuery.d.ts +0 -0
  1976. /package/dist/{action-plans → legacy}/hooks/useRowResize.d.ts +0 -0
  1977. /package/dist/{action-plans → legacy}/hooks/useUpdatesNotification.d.ts +0 -0
  1978. /package/dist/{action-plans → legacy}/hooks/useWizard.d.ts +0 -0
@@ -0,0 +1 @@
1
+ "use strict";var e=require("forlogic-core"),t=require("react/jsx-runtime"),a=require("react"),s=require("@radix-ui/react-slot"),r=require("class-variance-authority"),n=require("lucide-react"),o=require("@radix-ui/react-label"),i=require("@radix-ui/react-dialog"),l=require("@radix-ui/react-separator"),c=require("i18next"),d=require("@radix-ui/react-alert-dialog"),u=require("react-hook-form"),m=require("@radix-ui/react-select"),h=require("@radix-ui/react-checkbox"),p=require("sonner"),f=require("@radix-ui/react-dropdown-menu"),x=require("@radix-ui/react-tooltip"),g=require("@radix-ui/react-popover"),b=require("react-i18next"),v=require("@tanstack/react-query"),j=require("react-router"),y=require("@radix-ui/react-context-menu"),N=require("@radix-ui/react-toggle-group"),w=require("@radix-ui/react-toggle"),C=require("@radix-ui/react-scroll-area"),k=require("@radix-ui/react-switch"),S=require("@radix-ui/react-tabs"),D=require("@radix-ui/react-collapsible");function A(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(a){if("default"!==a){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}}),t.default=e,Object.freeze(t)}var M=A(a),P=A(o),R=A(i),E=A(l),z=A(d),O=A(m),_=A(h),I=A(f),T=A(x),L=A(g),F=A(y),B=A(N),q=A(w),V=A(C),$=A(k),G=A(S),U=A(D);const W=r.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-[hsl(var(--button-primary-hover))] hover:shadow-md active:bg-[hsl(var(--button-primary-active))] shadow-sm active:scale-[0.98]",secondary:"bg-[hsl(var(--button-secondary-bg))] text-secondary-foreground border border-[color:hsl(var(--button-secondary-border))] shadow-[shadow:var(--shadow-btn-secondary)] hover:border-[color:hsl(var(--button-secondary-hover-border))] hover:bg-gradient-to-b hover:from-[hsl(var(--button-secondary-hover-top))] hover:to-[hsl(var(--button-secondary-hover-bottom))] hover:shadow-[shadow:var(--shadow-btn-secondary-hover)] active:border-[color:hsl(var(--button-secondary-active-border))] active:bg-[hsl(var(--button-secondary-active-bg))] active:shadow-[shadow:var(--shadow-btn-secondary-active)]",tertiary:"bg-[hsl(var(--button-tertiary-bg))] text-foreground border border-[color:hsl(var(--button-tertiary-border))] hover:border-[color:hsl(var(--button-tertiary-hover-border))] hover:bg-[hsl(var(--button-tertiary-hover-bg))] active:border-[color:hsl(var(--button-tertiary-active-border))] active:bg-[hsl(var(--button-tertiary-active-bg))]",outline:"border border-[color:hsl(var(--button-outline-border))] bg-transparent hover:border-[color:hsl(var(--button-outline-hover-border))] hover:bg-[hsl(var(--button-outline-hover-bg))] active:border-[color:hsl(var(--button-outline-active-border))] active:bg-[hsl(var(--button-outline-active-bg))]",ghost:"font-normal hover:bg-[hsl(var(--button-ghost-hover-bg))] active:bg-[hsl(var(--button-ghost-active-bg))]",subtle:"font-normal text-muted-foreground hover:text-foreground hover:bg-[hsl(var(--button-subtle-hover-bg))] active:bg-[hsl(var(--button-subtle-active-bg))]",destructive:"bg-destructive text-destructive-foreground hover:bg-[hsl(var(--button-danger-hover))] hover:shadow-md shadow-sm active:bg-[hsl(var(--button-danger-active))]",danger:"bg-destructive text-destructive-foreground hover:bg-[hsl(var(--button-danger-hover))] hover:shadow-md shadow-sm active:bg-[hsl(var(--button-danger-active))]",link:"font-normal text-primary underline-offset-4 hover:underline",icon:"bg-transparent border border-input hover:border-[color:hsl(var(--button-icon-hover-border))] hover:bg-[hsl(var(--button-icon-hover-bg))] active:border-[color:hsl(var(--button-icon-active-border))] active:bg-[hsl(var(--button-icon-active-bg))] p-2",loading:"bg-[hsl(var(--button-loading-bg))] text-primary-foreground cursor-wait",default:"bg-primary text-primary-foreground hover:bg-[hsl(var(--button-primary-hover))] active:bg-[hsl(var(--button-primary-active))]",action:"bg-[hsl(var(--button-action-bg))] text-[hsl(var(--button-action-fg))] border border-[color:hsl(var(--button-action-border))] hover:border-[color:hsl(var(--button-action-hover-border))] hover:bg-[hsl(var(--button-action-hover-bg))] focus-visible:border-[color:hsl(var(--button-action-hover-border))] focus-visible:bg-[hsl(var(--button-action-hover-bg))] active:border-[color:hsl(var(--button-action-active-border))] active:bg-[hsl(var(--button-action-active-bg))] disabled:border-[color:hsl(var(--button-action-disabled-border))] disabled:bg-[hsl(var(--button-action-disabled-bg))] disabled:text-[hsl(var(--button-action-disabled-fg))]","icon-only":"bg-transparent border border-input hover:border-[color:hsl(var(--button-icon-hover-border))] hover:bg-[hsl(var(--button-icon-hover-bg))] active:border-[color:hsl(var(--button-icon-active-border))] active:bg-[hsl(var(--button-icon-active-bg))] p-2","external-link":"bg-transparent text-muted-foreground hover:text-foreground hover:bg-[hsl(var(--button-ghost-hover-bg))] transition-colors","action-primary":"bg-primary text-primary-foreground hover:bg-[hsl(var(--button-primary-hover))] shadow-sm active:bg-[hsl(var(--button-primary-active))]","action-secondary":"bg-[hsl(var(--button-secondary-bg))] text-secondary-foreground border border-[color:hsl(var(--button-secondary-border))] shadow-[shadow:var(--shadow-btn-secondary)] hover:border-[color:hsl(var(--button-secondary-hover-border))] hover:bg-gradient-to-b hover:from-[hsl(var(--button-secondary-hover-top))] hover:to-[hsl(var(--button-secondary-hover-bottom))] hover:shadow-[shadow:var(--shadow-btn-secondary-hover)] active:border-[color:hsl(var(--button-secondary-active-border))] active:bg-[hsl(var(--button-secondary-active-bg))] active:shadow-[shadow:var(--shadow-btn-secondary-active)]"},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"}}),H=M.forwardRef(({className:a,variant:r,size:n,asChild:o=!1,...i},l)=>{const c=o?s.Slot:"button";return t.jsx(c,{className:e.cn(W({variant:r,size:n,className:a})),ref:l,"data-ds-button":r??"primary",...i})});H.displayName="Button";const K=a.forwardRef(({className:a,children:s,variant:r="action",...o},i)=>t.jsx(H,{ref:i,variant:r,size:"icon",className:e.cn("h-8 w-8",a),...o,children:s||t.jsx(n.EllipsisVertical,{size:16})}));K.displayName="ActionButton";const Q=M.forwardRef(({className:a,type:s,showCharCount:r,maxLength:n,onChange:o,...i},l)=>{const[c,d]=M.useState(0);M.useEffect(()=>{"string"==typeof i.value?d(i.value.length):"string"==typeof i.defaultValue&&d(i.defaultValue.length)},[i.value,i.defaultValue]);return t.jsxs("div",{className:"w-full",children:[t.jsx("input",{type:s,className:e.cn("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-control-placeholder 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",a),ref:l,maxLength:n,onChange:e=>{d(e.target.value.length),o?.(e)},...i}),r&&n&&t.jsxs("div",{className:"text-right text-xs text-muted-foreground mt-1",children:[c," / ",n]})]})});Q.displayName="Input";const X=r.cva("text-sm font-normal leading-none text-muted-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),J=M.forwardRef(({className:a,...s},r)=>t.jsx(P.Root,{ref:r,className:e.cn(X(),a),...s}));J.displayName=P.Root.displayName;const Z=M.forwardRef(({className:a,...s},r)=>t.jsx("div",{ref:r,className:e.cn("rounded-lg border bg-card text-card-foreground shadow-sm",a),...s}));Z.displayName="Card";const Y=M.forwardRef(({className:a,...s},r)=>t.jsx("div",{ref:r,className:e.cn("flex flex-col space-y-1.5 p-6",a),...s}));Y.displayName="CardHeader";const ee=M.forwardRef(({className:a,...s},r)=>t.jsx("h3",{ref:r,className:e.cn("text-2xl font-semibold leading-none tracking-tight",a),...s}));ee.displayName="CardTitle";const te=M.forwardRef(({className:a,...s},r)=>t.jsx("p",{ref:r,className:e.cn("text-sm text-muted-foreground",a),...s}));te.displayName="CardDescription";const ae=M.forwardRef(({className:a,...s},r)=>t.jsx("div",{ref:r,className:e.cn("p-6 pt-0",a),...s}));ae.displayName="CardContent";M.forwardRef(({className:a,...s},r)=>t.jsx("div",{ref:r,className:e.cn("flex items-center p-6 pt-0",a),...s})).displayName="CardFooter";const se=M.forwardRef(({className:a,orientation:s="horizontal",decorative:r=!0,...n},o)=>t.jsx(E.Root,{ref:o,decorative:r,orientation:s,className:e.cn("shrink-0 bg-border","horizontal"===s?"h-[1px] w-full":"h-full w-[1px]",a),...n}));se.displayName=E.Root.displayName;const re=z.Root,ne=z.Portal,oe=M.forwardRef(({className:a,...s},r)=>t.jsx(z.Overlay,{className:e.cn("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",a),...s,ref:r}));oe.displayName=z.Overlay.displayName;const ie=M.forwardRef(({className:a,...s},r)=>t.jsxs(ne,{children:[t.jsx(oe,{}),t.jsx(z.Content,{ref:r,className:e.cn("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",a),...s})]}));ie.displayName=z.Content.displayName;const le=({className:a,...s})=>t.jsx("div",{className:e.cn("flex flex-col space-y-2 text-center sm:text-left",a),...s});le.displayName="AlertDialogHeader";const ce=({className:a,...s})=>t.jsx("div",{className:e.cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...s});ce.displayName="AlertDialogFooter";const de=M.forwardRef(({className:a,...s},r)=>t.jsx(z.Title,{ref:r,className:e.cn("text-lg font-semibold",a),...s}));de.displayName=z.Title.displayName;const ue=M.forwardRef(({className:a,...s},r)=>t.jsx(z.Description,{ref:r,className:e.cn("text-sm text-muted-foreground",a),...s}));ue.displayName=z.Description.displayName;const me=M.forwardRef(({className:a,...s},r)=>t.jsx(z.Action,{ref:r,className:e.cn(W(),a),...s}));me.displayName=z.Action.displayName;const he=M.forwardRef(({className:a,...s},r)=>t.jsx(z.Cancel,{ref:r,className:e.cn(W({variant:"outline"}),"mt-2 sm:mt-0",a),...s}));he.displayName=z.Cancel.displayName;const pe=R.Root,fe=R.Trigger,xe=R.Portal,ge=M.forwardRef(({className:a,...s},r)=>t.jsx(R.Overlay,{ref:r,className:e.cn("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",a),...s}));ge.displayName=R.Overlay.displayName;const be={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"}},ve=M.forwardRef(({className:a,children:s,size:r,variant:o="informative",isDirty:i,customWidth:l,customMinWidth:d,customMaxWidth:u,customHeight:m,customMinHeight:h,customMaxHeight:p,unsavedChangesTitle:f=c.t("unsaved_changes"),unsavedChangesDescription:x=c.t("unsaved_changes_description"),cancelText:g=c.t("cancel"),leaveWithoutSavingText:b=c.t("leave_without_saving"),style:v,onInteractOutside:j,onEscapeKeyDown:y,...N},w)=>{const[C,k]=M.useState(!1),S=M.useRef(null),D=M.useRef(!1),A=r??(l||d||u||m||h||p?void 0:"md"),P=A?be[A]:{},E={...l??P.width?{width:l??P.width}:{},...d??P.minWidth?{minWidth:d??P.minWidth}:{},...u??P.maxWidth?{maxWidth:u??P.maxWidth}:{},...m??P.height?{height:m??P.height}:{},...h??P.minHeight?{minHeight:h??P.minHeight}:{},...p??P.maxHeight?{maxHeight:p??P.maxHeight}:{},...v},z=M.useCallback(e=>{"form"===o&&i?(S.current=e,k(!0)):e()},[o,i]),O=M.useRef(null),_="destructive"!==o;if("development"===process.env.NODE_ENV&&s){const e=M.Children.toArray(s);e.some(e=>M.isValidElement(e)&&"DialogFooter"===e.type?.displayName),e.some(e=>M.isValidElement(e)&&"DialogBody"===e.type?.displayName)}return t.jsxs(xe,{children:[t.jsx(ge,{}),t.jsxs(R.Content,{ref:w,className:e.cn("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:E,onInteractOutside:e=>{"form"!==o&&"destructive"!==o?j?.(e):e.preventDefault()},onEscapeKeyDown:e=>{if("destructive"!==o)return"form"===o&&i?(e.preventDefault(),void z(()=>{D.current=!0,O.current?.click()})):void y?.(e);e.preventDefault()},...N,children:[s,_&&t.jsxs(R.Close,{ref:O,onClick:e=>{D.current?D.current=!1:"form"===o&&i&&(e.preventDefault(),z(()=>{D.current=!0,O.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:[t.jsx(n.X,{className:"h-4 w-4"}),t.jsx("span",{className:"sr-only",children:"Close"})]})]}),t.jsx(re,{open:C,onOpenChange:k,children:t.jsxs(ie,{children:[t.jsxs(le,{children:[t.jsx(de,{children:f}),t.jsx(ue,{children:x})]}),t.jsxs(ce,{children:[t.jsx(he,{onClick:()=>{k(!1),S.current=null},children:g}),t.jsx(me,{onClick:()=>{k(!1),S.current?.(),S.current=null},children:b})]})]})})]})});ve.displayName=R.Content.displayName;const je=({className:a,showSeparator:s=!1,children:r,...n})=>t.jsxs("div",{className:e.cn("flex flex-col flex-shrink-0",a),...n,children:[t.jsx("div",{className:"flex flex-col text-left",children:r}),s&&t.jsx(se,{className:"mt-2"})]});je.displayName="DialogHeader";const ye=({className:a,children:s,...r})=>t.jsxs("div",{className:"flex-shrink-0 pt-4",children:[t.jsx(se,{className:"mb-4"}),t.jsx("div",{className:e.cn("flex flex-row justify-end gap-2",a),...r,children:s})]});ye.displayName="DialogFooter";const Ne=M.forwardRef(({className:a,...s},r)=>t.jsx(R.Title,{ref:r,className:e.cn("text-xl font-semibold leading-none tracking-tight",a),...s}));Ne.displayName=R.Title.displayName;const we=M.forwardRef(({className:a,...s},r)=>t.jsx(R.Description,{ref:r,className:e.cn("text-sm text-muted-foreground",a),...s}));we.displayName=R.Description.displayName;const Ce=u.FormProvider,ke=M.createContext({}),Se=()=>{const e=M.useContext(ke),t=M.useContext(De),{getFieldState:a,formState:s}=u.useFormContext(),r=a(e.name,s);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:n}=t;return{id:n,name:e.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...r}},De=M.createContext({}),Ae=M.forwardRef(({className:a,...s},r)=>{const n=M.useId();return t.jsx(De.Provider,{value:{id:n},children:t.jsx("div",{ref:r,className:e.cn("space-y-1.5",a),...s})})});Ae.displayName="FormItem";const Me=M.forwardRef(({className:a,...s},r)=>{const{error:n,formItemId:o}=Se();return t.jsx(J,{ref:r,className:e.cn(n&&"text-destructive",a),htmlFor:o,...s})});Me.displayName="FormLabel";const Pe=M.forwardRef(({...e},a)=>{const{error:r,formItemId:n,formDescriptionId:o,formMessageId:i}=Se();return t.jsx(s.Slot,{ref:a,id:n,"aria-describedby":r?`${o} ${i}`:`${o}`,"aria-invalid":!!r,...e})});Pe.displayName="FormControl";M.forwardRef(({className:a,...s},r)=>{const{formDescriptionId:n}=Se();return t.jsx("p",{ref:r,id:n,className:e.cn("text-sm text-muted-foreground",a),...s})}).displayName="FormDescription";const Re=M.forwardRef(({className:a,children:s,...r},n)=>{const{error:o,formMessageId:i}=Se(),l=o?String(o?.message):s;return l?t.jsx("p",{ref:n,id:i,className:e.cn("text-sm font-medium text-destructive",a),...r,children:l}):null});Re.displayName="FormMessage";const Ee=M.createContext({showCheck:!1}),ze=({showCheck:e=!1,...a})=>t.jsx(Ee.Provider,{value:{showCheck:e},children:t.jsx(O.Root,{...a})}),Oe=O.Value,_e=M.forwardRef(({className:a,children:s,...r},o)=>t.jsxs(O.Trigger,{ref:o,className:e.cn("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-control-placeholder 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",a),...r,children:[s,t.jsx(O.Icon,{asChild:!0,children:t.jsx(n.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));_e.displayName=O.Trigger.displayName;const Ie=M.forwardRef(({className:a,...s},r)=>t.jsx(O.ScrollUpButton,{ref:r,className:e.cn("flex cursor-default items-center justify-center py-1",a),...s,children:t.jsx(n.ChevronUp,{className:"h-4 w-4"})}));Ie.displayName=O.ScrollUpButton.displayName;const Te=M.forwardRef(({className:a,...s},r)=>t.jsx(O.ScrollDownButton,{ref:r,className:e.cn("flex cursor-default items-center justify-center py-1",a),...s,children:t.jsx(n.ChevronDown,{className:"h-4 w-4"})}));Te.displayName=O.ScrollDownButton.displayName;const Le=M.forwardRef(({className:a,children:s,position:r="popper",container:n,collisionBoundary:o,...i},l)=>t.jsx(O.Portal,{container:n,children:t.jsxs(O.Content,{ref:l,className:e.cn("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"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:r,collisionBoundary:o,...i,children:[t.jsx(Ie,{}),t.jsx(O.Viewport,{className:e.cn("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),t.jsx(Te,{})]})}));Le.displayName=O.Content.displayName;M.forwardRef(({className:a,...s},r)=>t.jsx(O.Label,{ref:r,className:e.cn("py-1.5 pl-8 pr-2 text-sm font-semibold",a),...s})).displayName=O.Label.displayName;const Fe=M.forwardRef(({className:a,children:s,...r},o)=>{const{showCheck:i}=M.useContext(Ee);return t.jsxs(O.Item,{ref:o,className:e.cn("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",i?"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",i?"data-[state=checked]:pl-[calc(2rem-2px)]":"data-[state=checked]:pl-[calc(0.5rem-2px)]",a),...r,children:[i&&t.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:t.jsx(O.ItemIndicator,{children:t.jsx(n.Check,{className:"h-4 w-4"})})}),t.jsx(O.ItemText,{children:s})]})});Fe.displayName=O.Item.displayName;M.forwardRef(({className:a,...s},r)=>t.jsx(O.Separator,{ref:r,className:e.cn("-mx-1 my-1 h-px bg-muted",a),...s})).displayName=O.Separator.displayName;const Be=M.forwardRef(({className:a,...s},r)=>t.jsx(_.Root,{ref:r,className:e.cn("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",a),...s,children:t.jsx(_.Indicator,{className:e.cn("flex items-center justify-center text-current"),children:t.jsx(n.Check,{className:"h-4 w-4"})})}));Be.displayName=_.Root.displayName;const qe=M.forwardRef(({className:a,showCharCount:s,maxLength:r,onChange:n,...o},i)=>{const[l,c]=M.useState(0);M.useEffect(()=>{"string"==typeof o.value?c(o.value.length):"string"==typeof o.defaultValue&&c(o.defaultValue.length)},[o.value,o.defaultValue]);return t.jsxs("div",{className:"w-full",children:[t.jsx("textarea",{className:e.cn("flex min-h-[80px] w-full rounded-lg border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-control-placeholder 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",a),ref:i,maxLength:r,onChange:e=>{c(e.target.value.length),n?.(e)},...o}),s&&r&&t.jsxs("div",{className:"text-right text-xs text-muted-foreground mt-1",children:[l," / ",r]})]})});qe.displayName="Textarea";const Ve=r.cva("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",danger:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",success:"border-transparent bg-success text-success-foreground hover:bg-success/90",warning:"border-transparent bg-warning text-warning-foreground hover:bg-warning/90",info:"border-transparent bg-primary/10 text-primary hover:bg-primary/20",sharp:"border-transparent bg-[hsl(78,70%,46%)] text-foreground hover:bg-[hsl(78,70%,40%)]"}},defaultVariants:{variant:"default"}}),$e=M.forwardRef(({className:a,variant:s,...r},n)=>t.jsx("div",{ref:n,className:e.cn(Ve({variant:s}),a),...r}));$e.displayName="Badge";const Ge={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"};function Ue({size:a="md",className:s}){return t.jsx(n.Loader2,{className:e.cn("animate-spin text-muted-foreground",Ge[a],s)})}const We=I.Root,He=I.Trigger;M.forwardRef(({className:a,inset:s,children:r,...o},i)=>t.jsxs(I.SubTrigger,{ref:i,className:e.cn("flex cursor-default select-none items-center px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",s&&"pl-8",a),...o,children:[r,t.jsx(n.ChevronRight,{className:"ml-auto h-4 w-4"})]})).displayName=I.SubTrigger.displayName;M.forwardRef(({className:a,...s},r)=>t.jsx(I.SubContent,{ref:r,className:e.cn("z-50 min-w-[8rem] overflow-hidden border bg-popover p-1 text-popover-foreground shadow-lg 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",a),...s})).displayName=I.SubContent.displayName;const Ke=M.forwardRef(({className:a,sideOffset:s=4,...r},n)=>t.jsx(I.Portal,{children:t.jsx(I.Content,{ref:n,sideOffset:s,className:e.cn("z-[100] min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground p-1 shadow-lg 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",a),...r})}));Ke.displayName=I.Content.displayName;const Qe=M.forwardRef(({className:a,inset:s,...r},n)=>t.jsx(I.Item,{ref:n,className:e.cn("relative flex cursor-default select-none items-center px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s&&"pl-8",a),...r}));Qe.displayName=I.Item.displayName;M.forwardRef(({className:a,children:s,checked:r,...o},i)=>t.jsxs(I.CheckboxItem,{ref:i,className:e.cn("relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:r,...o,children:[t.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:t.jsx(I.ItemIndicator,{children:t.jsx(n.Check,{className:"h-4 w-4"})})}),s]})).displayName=I.CheckboxItem.displayName;M.forwardRef(({className:a,children:s,...r},o)=>t.jsxs(I.RadioItem,{ref:o,className:e.cn("relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...r,children:[t.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:t.jsx(I.ItemIndicator,{children:t.jsx(n.Circle,{className:"h-2 w-2 fill-current"})})}),s]})).displayName=I.RadioItem.displayName;M.forwardRef(({className:a,inset:s,...r},n)=>t.jsx(I.Label,{ref:n,className:e.cn("px-2 py-1.5 text-sm font-semibold",s&&"pl-8",a),...r})).displayName=I.Label.displayName;const Xe=M.forwardRef(({className:a,...s},r)=>t.jsx(I.Separator,{ref:r,className:e.cn("-mx-1 my-1 h-px bg-muted",a),...s}));Xe.displayName=I.Separator.displayName;const Je=({delayDuration:e=300,...a})=>t.jsx(T.Provider,{delayDuration:e,...a}),Ze=T.Root,Ye=T.Trigger,et=M.forwardRef(({className:a,sideOffset:s=4,collisionPadding:r=8,hideWhenDetached:n=!0,container:o,...i},l)=>t.jsx(T.Portal,{container:o,children:t.jsx(T.Content,{ref:l,sideOffset:s,collisionPadding:r,hideWhenDetached:n,className:e.cn("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",a),...i})}));et.displayName=T.Content.displayName;const tt=M.forwardRef(({children:a,disabledReason:s,className:r},n)=>{const o=t.jsx(Qe,{ref:n,className:e.cn("opacity-50 cursor-not-allowed pointer-events-auto",r),onSelect:e=>{e.preventDefault(),e.stopPropagation()},onClick:e=>{e.preventDefault(),e.stopPropagation()},children:a});return s?t.jsx(Je,{delayDuration:100,children:t.jsxs(Ze,{children:[t.jsx(Ye,{asChild:!0,children:t.jsx("div",{className:"w-full",children:o})}),t.jsx(et,{side:"right",sideOffset:8,className:"max-w-[200px] z-[100]",children:s})]})}):o});tt.displayName="DisabledMenuItem";const at=L.Root,st=L.Trigger,rt=M.forwardRef(({className:a,align:s="center",sideOffset:r=4,container:n,...o},i)=>t.jsx(L.Portal,{container:n,children:t.jsx(L.Content,{ref:i,align:s,sideOffset:r,className:e.cn("z-50 w-72 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",a),...o})}));rt.displayName=L.Content.displayName;const nt=M.forwardRef(({className:a,...s},r)=>t.jsx("div",{ref:r,className:e.cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",a),...s}));nt.displayName="Command";const ot=M.forwardRef(({className:a,...s},r)=>t.jsx("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:t.jsx("input",{ref:r,className:e.cn("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-control-placeholder disabled:cursor-not-allowed disabled:opacity-50",a),...s})}));ot.displayName="CommandInput";const it=M.forwardRef(({className:a,...s},r)=>t.jsx("div",{ref:r,className:e.cn("max-h-[300px] overflow-y-auto overflow-x-hidden",a),...s}));it.displayName="CommandList";const lt=M.forwardRef(({className:a,...s},r)=>t.jsx("div",{ref:r,className:e.cn("py-6 text-center text-sm text-muted-foreground",a),...s}));lt.displayName="CommandEmpty";const ct=M.forwardRef(({className:a,...s},r)=>t.jsx("div",{ref:r,className:e.cn("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",a),...s}));ct.displayName="CommandGroup";M.forwardRef(({className:a,...s},r)=>t.jsx("div",{ref:r,className:e.cn("-mx-1 h-px bg-border",a),...s})).displayName="CommandSeparator";const dt=M.forwardRef(({className:a,disabled:s,onSelect:r,value:n,...o},i)=>t.jsx("div",{ref:i,className:e.cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-accent hover:text-accent-foreground data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",a),"data-disabled":s,onClick:()=>!s&&r?.(n||""),...o}));function ut({className:a,...s}){return t.jsx("div",{className:e.cn("animate-pulse rounded-md bg-muted",a),...s})}dt.displayName="CommandItem";const mt=e=>e.normalize("NFD").replace(/\p{Diacritic}/gu,"").toLowerCase();function ht({multiple:s,options:r,value:o,onChange:i,getOptionValue:l,getOptionLabel:d,renderOption:u,placeholder:m,label:h,icon:p,emptyMessage:f,searchPlaceholder:x,searchInputTestId:g,disabled:b,required:v,className:j,sortOptions:y,maxDisplayedBadges:N,popoverContainer:w,onOpen:C,onClose:k,clearable:S,showCheck:D}){const[A,M]=a.useState(!1),[P,R]=a.useState(""),E=a.useMemo(()=>o?Array.isArray(o)?o:[o]:[],[o]),z=a.useMemo(()=>{if(!w)return;let e=w,t=0;try{for(;e&&t<3;){const a=window.getComputedStyle(e),s=a.overflowY||a.overflow;if(!s||"visible"===s||"unset"===s)break;e=e.parentElement,t++}}catch{}return e??void 0},[w]),O=a.useMemo(()=>{const e=r.map(e=>({original:e,value:l(e),label:d(e)}));return y?e.sort((e,t)=>e.label.localeCompare(t.label,"pt-BR",{sensitivity:"base"})):e},[r,l,d,y]),_=a.useMemo(()=>{if(!P)return O;const e=mt(P);return O.filter(t=>mt(t.label).includes(e))},[O,P]),I=a.useMemo(()=>O.filter(e=>E.includes(e.value)),[O,E]),T=e=>{M(e),e?C?.():(R(""),k?.())},L=(e,t)=>{t.preventDefault(),t.stopPropagation(),i&&i(s?E.filter(t=>t!==e):"")},F=N?I.slice(0,N):I,B=N&&I.length>N?I.length-N:0;return t.jsxs("div",{className:e.cn("space-y-2",j),children:[h&&t.jsxs(J,{children:[h,v&&t.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),t.jsxs(at,{open:A,onOpenChange:T,modal:!1,children:[s?t.jsx(st,{asChild:!0,children:t.jsxs("div",{role:"combobox","aria-expanded":A,"aria-disabled":b,tabIndex:b?-1:0,onKeyDown:e=>{b||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),T(!A))},className:e.cn("flex w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","min-h-10 h-auto cursor-pointer",b&&"pointer-events-none opacity-50 cursor-not-allowed",0===I.length&&"text-muted-foreground"),children:[0===I.length?t.jsxs("span",{className:"flex items-center gap-2",children:[p&&t.jsx(p,{className:"h-4 w-4"}),m]}):t.jsxs("div",{className:"flex flex-wrap gap-1.5 flex-1 mr-2",children:[F.map(e=>t.jsxs($e,{variant:"secondary",className:"gap-1 pr-1",children:[e.label,t.jsx("button",{type:"button",className:"rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",onKeyDown:t=>{"Enter"===t.key&&L(e.value,t)},onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:t=>L(e.value,t),children:t.jsx(n.X,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})]},e.value)),B>0&&t.jsxs($e,{variant:"outline",className:"gap-1",children:["+",B]})]}),t.jsx(n.ChevronDown,{className:"h-4 w-4 shrink-0 opacity-50"})]})}):t.jsxs("div",{className:"relative",children:[t.jsx(st,{asChild:!0,children:t.jsxs(H,{variant:"outline",role:"combobox","aria-expanded":A,disabled:b,className:e.cn("relative w-full justify-start min-h-10 h-auto pr-10",S&&I.length>0&&"pr-16",0===I.length&&"text-muted-foreground"),children:[0===I.length?t.jsxs("span",{className:"flex min-w-0 flex-1 items-center gap-2 truncate text-left",children:[p&&t.jsx(p,{className:"h-4 w-4"}),t.jsx("span",{className:"truncate",children:m})]}):t.jsxs("span",{className:"flex min-w-0 flex-1 items-center gap-2 truncate text-left",children:[p&&t.jsx(p,{className:"h-4 w-4"}),t.jsx("span",{className:"truncate",children:I[0]?.label})]}),t.jsx(n.ChevronDown,{className:"absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 opacity-50"})]})}),S&&I.length>0&&t.jsx("button",{type:"button",disabled:b,className:"absolute right-8 top-1/2 z-10 inline-flex h-5 w-5 -translate-y-1/2 items-center justify-center rounded-sm text-muted-foreground hover:bg-accent hover:text-foreground focus:outline-none focus:ring-2 focus:ring-ring disabled:pointer-events-none disabled:opacity-50",onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:e=>L("",e),title:"Limpar seleção","aria-label":"Limpar seleção",children:t.jsx(n.X,{className:"h-3.5 w-3.5"})})]}),t.jsx(rt,{className:"w-full p-0 bg-popover z-[60]",align:"start",container:z,collisionBoundary:z,children:t.jsxs(nt,{children:[t.jsxs("div",{className:"relative",children:[t.jsx(ot,{placeholder:x,value:P,onChange:e=>R(e.target.value),"data-testid":g}),P&&t.jsx("button",{type:"button",className:"absolute right-2 top-1/2 -translate-y-1/2 rounded-sm p-0.5 text-muted-foreground hover:text-foreground",onClick:()=>R(""),children:t.jsx(n.X,{className:"h-3.5 w-3.5"})})]}),t.jsx(it,{children:0===r.length?t.jsx(lt,{children:f}):0===_.length?t.jsx(lt,{children:c.t("no_results")}):t.jsx(ct,{children:_.map(a=>{const r=E.includes(a.value);return t.jsxs(dt,{value:a.value,onSelect:()=>(e=>{if(i)if(s){const t=E.includes(e)?E.filter(t=>t!==e):[...E,e];i(t)}else i(e),M(!1)})(a.value),className:e.cn("cursor-pointer",r&&"bg-accent text-accent-foreground font-medium border-l-2 border-primary pl-[calc(0.5rem-2px)] data-[selected=true]:bg-accent"),children:[D&&t.jsx(n.Check,{className:e.cn("mr-2 h-4 w-4",r?"opacity-100":"opacity-0")}),u?u(a.original):a.label]},a.value)})})})]})})]})]})}function pt({multiple:a=!1,options:s,items:r,value:o,onChange:i,onValueChange:l,getOptionValue:c=e=>e.value,getOptionLabel:d=e=>e.label,renderOption:u,placeholder:m,label:h,icon:p,emptyMessage:f,searchPlaceholder:x,searchInputTestId:g,disabled:v=!1,required:j=!1,isLoading:y=!1,error:N,className:w,sortOptions:C=!0,maxDisplayedBadges:k,popoverContainer:S,onOpen:D,onClose:A,clearable:M=!0,showCheck:P=!1}){const{t:R}=b.useTranslation(),E=s||r||[],z=l||i,O=m||R("select_placeholder","Selecione..."),_=f||R("no_results",R("no_results")),I=x||R("search_placeholder","Pesquisar...");if(y)return t.jsxs("div",{className:e.cn("space-y-2",w),children:[h&&t.jsxs(J,{children:[h,j&&t.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),t.jsx(ut,{className:"h-10 w-full"})]});const T="string"==typeof N?N:N instanceof Error?N.message:N?R("error_loading",R("error_loading")):void 0;return T?t.jsxs("div",{className:e.cn("space-y-2",w),children:[h&&t.jsxs(J,{children:[h,j&&t.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),t.jsxs("div",{className:"flex items-center gap-2 p-3 border border-destructive rounded-md bg-destructive/10 text-destructive",children:[t.jsx(n.AlertCircle,{className:"h-4 w-4"}),t.jsx("span",{className:"text-sm",children:T})]})]}):t.jsx(ht,{multiple:a,options:E,value:o||(a?[]:""),onChange:z,getOptionValue:c,getOptionLabel:d,renderOption:u,placeholder:O,label:h,icon:p,emptyMessage:_,searchPlaceholder:I,searchInputTestId:g,disabled:v,required:j,className:w,sortOptions:C,maxDisplayedBadges:k,popoverContainer:S,onOpen:D,onClose:A,clearable:M,showCheck:P})}const ft=e=>e.normalize("NFD").replace(/\p{Diacritic}/gu,"").toLowerCase();function xt(e,t){if(!t)return null;const a=ft(t),s=[];for(const r of e){const e=ft(r.label).includes(a),n=r.children?xt(r.children,t):null,o=n&&n.length>0;(e||o)&&s.push({...r,children:e?r.children:o?n:r.children})}return s}function gt(e,t){for(const a of e){if(a.value===t)return a.label;if(a.children){const e=gt(a.children,t);if(e)return e}}}function bt({node:a,level:s,expanded:r,onToggleExpand:o,selectedValues:i,onSelect:l,showCheck:c}){const d=a.children&&a.children.length>0,u=i.includes(a.value),m=8+20*s;return t.jsxs("div",{role:"treeitem","aria-expanded":d?r:void 0,"aria-selected":u,className:e.cn("flex items-center gap-1 rounded-sm py-1.5 pr-2 text-sm cursor-pointer outline-none","hover:bg-accent hover:text-accent-foreground",u&&"bg-accent text-accent-foreground font-medium border-l-2 border-primary"),style:{paddingLeft:m-(u?2:0)+"px"},children:[t.jsxs("span",{className:"flex flex-1 items-center gap-2 truncate",onClick:e=>{e.stopPropagation(),l(a.value)},children:[c&&t.jsx(n.Check,{className:e.cn("h-4 w-4 shrink-0",u?"opacity-100":"opacity-0")}),(()=>{const s=u?a.iconSelected??(r?a.iconOpen:null)??a.icon:r?a.iconOpen??a.icon:a.icon;return s?t.jsx(s,{className:e.cn("h-4 w-4 shrink-0",a.iconClassName||"text-muted-foreground")}):null})(),t.jsx("span",{className:"truncate",children:a.label})]}),d&&t.jsx("button",{type:"button",className:"flex h-5 w-5 shrink-0 items-center justify-center rounded-sm hover:bg-muted ml-auto",onClick:e=>{e.stopPropagation(),o(a.value)},tabIndex:-1,"aria-label":r?"Recolher":"Expandir",children:r?t.jsx(n.ChevronDown,{className:"h-3.5 w-3.5 text-muted-foreground"}):t.jsx(n.ChevronRight,{className:"h-3.5 w-3.5 text-muted-foreground"})})]})}function vt({nodes:e,level:s,expandedIds:r,onToggleExpand:n,selectedValues:o,onSelect:i,showCheck:l}){return t.jsx(t.Fragment,{children:e.map(e=>{const c=r.has(e.value);return t.jsxs(a.Fragment,{children:[t.jsx(bt,{node:e,level:s,expanded:c,onToggleExpand:n,selectedValues:o,onSelect:i,showCheck:l}),c&&e.children&&e.children.length>0&&t.jsx(vt,{nodes:e.children,level:s+1,expandedIds:r,onToggleExpand:n,selectedValues:o,onSelect:i,showCheck:l})]},e.value)})})}function jt(e){return`crud-sort-${e}`}function yt(e){try{const t=localStorage.getItem(jt(e));if(!t)return null;const a=JSON.parse(t);return"string"!=typeof a?.field||"asc"!==a.direction&&"desc"!==a.direction?null:a}catch{return null}}function Nt({queryKey:t,service:s,entityName:r,searchFields:n,additionalFilters:o={},onSuccess:i}){const[l,c]=j.useSearchParams(),d=v.useQueryClient(),{alias:u,userId:m,isAuthenticated:h}=e.useAuth(),{t:f}=b.useTranslation(),x=a.useCallback(e=>{const a=`${t}_${e}`,s=l.get(a);return s||(l.get(e)||"")},[l,t]),g=x("search"),y=parseInt(x("page")||"1"),N=parseInt(x("limit")||String(e.CRUD_CONFIG.pagination.defaultPageSize)),[w]=a.useState(()=>null!==yt(t)),[C,k]=a.useState(()=>yt(t)??{field:e.CRUD_CONFIG.sorting.defaultField,direction:e.CRUD_CONFIG.sorting.defaultDirection}),S=C.field,D=C.direction,A=g,M=a.useMemo(()=>({search:A,sortField:S,sortDirection:D,page:y,limit:N,...o}),[A,S,D,y,N,o]),P=a.useCallback(()=>s.getAll(M),[s,M]),R=v.useQuery({queryKey:[t,u,m,M],queryFn:P,enabled:!!u&&h});if(!R)throw new Error(`useCrud: Query initialization failed for "${r}". Ensure QueryClientProvider is configured in your app root.`);const E=v.useMutation({mutationFn:s.create,onSuccess:()=>{d.invalidateQueries({queryKey:[t]}),p.toast.success(e.MESSAGES.success.created(r)),i?.()},onError:t=>{p.toast.error(`${e.MESSAGES.error.create(r)}: ${t.message}`)}}),z=v.useMutation({mutationFn:({id:e,data:t})=>s.update(e,t),onSuccess:()=>{d.invalidateQueries({queryKey:[t]}),p.toast.success(e.MESSAGES.success.updated(r)),i?.()},onError:t=>{p.toast.error(`${e.MESSAGES.error.update(r)}: ${t.message}`)}}),O=v.useMutation({mutationFn:s.delete,onSuccess:()=>{d.invalidateQueries({queryKey:[t]}),p.toast.success(e.MESSAGES.success.deleted(r))},onError:t=>{p.toast.error(`${e.MESSAGES.error.delete(r)}: ${t.message}`)}}),_=a.useCallback(e=>{const a={...Object.fromEntries(l)};Object.entries(e).forEach(([e,s])=>{const r=`${t}_${e}`;""===s||0===s?delete a[r]:a[r]=String(s)}),delete a.sortField,delete a.sortDirection,delete a[`${t}_sortField`],delete a[`${t}_sortDirection`],c(a)},[l,c,t]),I=a.useCallback(e=>{_({search:e,page:1})},[_]),T=a.useCallback((e,a)=>{k({field:e,direction:a}),function(e,t){try{localStorage.setItem(jt(e),JSON.stringify(t))}catch{}}(t,{field:e,direction:a})},[t]),L=a.useCallback(e=>{T(e,S===e&&"asc"===D?"desc":"asc"),_({page:1})},[S,D,T,_]),F=a.useCallback(e=>{_({page:e})},[_]),B=a.useCallback(e=>{_({limit:e,page:1})},[_]),q=a.useCallback(()=>{const e=Object.fromEntries(l),a=`${t}_`,s=Object.fromEntries(Object.entries(e).filter(([e])=>!e.startsWith(a)));c(s)},[c,l,t]),[V,$]=a.useState([]),G=a.useCallback(e=>{$(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[]),U=a.useCallback(()=>{const e=R?.data?.data.map(e=>e.id)||[];$(t=>t.length===e.length?[]:e)},[R?.data?.data]),W=a.useCallback(()=>{$([])},[]),H=a.useMemo(()=>{const e=R?.data?.data.map(e=>e.id)||[];return e.length>0&&V.length===e.length},[V,R?.data?.data]),K=v.useMutation({mutationFn:async e=>{await Promise.all(e.map(e=>s.delete(e)))},onSuccess:(e,a)=>{d.invalidateQueries({queryKey:[t]}),p.toast.success(f("bulk_delete_success",`${a.length} ${r}(s) deletado(s) com sucesso`)),W()},onError:e=>{p.toast.error(f("bulk_delete_error",`Erro ao deletar itens: ${e.message}`))}}),Q=a.useCallback((e,t)=>{const a=t?t(e):e;e.id?z.mutate({id:e.id,data:a}):E.mutate({...a,alias:u})},[u,E,z]);return{entities:R?.data?.data||[],pagination:{data:R?.data?.data||[],currentPage:R?.data?.currentPage||1,totalPages:R?.data?.totalPages||1,totalItems:R?.data?.totalItems||0,itemsPerPage:R?.data?.itemsPerPage||e.CRUD_CONFIG.pagination.defaultPageSize,hasNextPage:R?.data?.hasNextPage||!1,hasPreviousPage:R?.data?.hasPreviousPage||!1},isLoading:R?.isLoading??!0,isCreating:E?.isPending??!1,isUpdating:z?.isPending??!1,isDeleting:O?.isPending??!1,error:R?.error||null,searchTerm:g,sortField:S,sortDirection:D,hasStoredSort:w,currentPage:y,itemsPerPage:N,queryKey:t,createEntity:E.mutate,updateEntity:(e,t)=>z.mutate({id:e,data:t}),deleteEntity:O.mutate,save:Q,handleSearch:I,handleSort:L,setSort:T,handlePageChange:F,handleItemsPerPageChange:B,clearFilters:q,refetch:R.refetch,selectedIds:V,selectItem:G,selectAll:U,clearSelection:W,isAllSelected:H,bulkDelete:e=>K.mutateAsync(e),isBulkDeleting:K.isPending}}function wt(e){const[t,s]=a.useState(()=>"undefined"!=typeof window&&window.matchMedia(e).matches);return a.useEffect(()=>{const t=window.matchMedia(e);s(t.matches);const a=e=>{s(e.matches)};return t.addEventListener("change",a),()=>t.removeEventListener("change",a)},[e]),t}function Ct(e=768){return wt(`(max-width: ${e-1}px)`)}const kt=M.forwardRef(({className:a,...s},r)=>t.jsx("table",{ref:r,className:e.cn("w-full caption-bottom text-[13px] table-fixed",a),...s}));kt.displayName="Table";const St=M.forwardRef(({className:a,...s},r)=>t.jsx("thead",{ref:r,className:e.cn("[&_tr]:border-b sticky top-0 z-[1] bg-background",a),...s}));St.displayName="TableHeader";const Dt=M.forwardRef(({className:a,...s},r)=>t.jsx("tbody",{ref:r,className:e.cn("[&_tr:last-child]:border-0",a),...s}));Dt.displayName="TableBody";M.forwardRef(({className:a,...s},r)=>t.jsx("tfoot",{ref:r,className:e.cn("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...s})).displayName="TableFooter";const At=M.forwardRef(({className:a,...s},r)=>t.jsx("tr",{ref:r,className:e.cn("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted even:bg-table-stripe",a),...s}));At.displayName="TableRow";const Mt=M.forwardRef(({className:a,...s},r)=>t.jsx("th",{ref:r,className:e.cn("h-9 px-4 py-2 text-left align-middle font-medium text-muted-foreground bg-background border-b whitespace-nowrap overflow-hidden text-ellipsis [&:has([role=checkbox])]:pr-0",a),...s}));Mt.displayName="TableHead";const Pt=M.forwardRef(({className:a,...s},r)=>t.jsx("td",{ref:r,className:e.cn("px-4 py-2 align-middle whitespace-nowrap overflow-hidden text-ellipsis [&:has([role=checkbox])]:pr-0",a),...s}));Pt.displayName="TableCell";function Rt({rows:e=5,columns:a=4}){return t.jsx("div",{className:"w-full",children:t.jsxs("div",{className:"rounded-md border",children:[t.jsx("div",{className:"border-b bg-muted/50 px-4 py-3",children:t.jsx("div",{className:"flex space-x-4",children:Array.from({length:a}).map((e,a)=>t.jsx(ut,{className:"h-4 w-24"},a))})}),t.jsx("div",{children:Array.from({length:e}).map((e,s)=>t.jsx("div",{className:"border-b px-4 py-3 last:border-0",children:t.jsx("div",{className:"flex space-x-4",children:Array.from({length:a}).map((e,a)=>t.jsx(ut,{className:"h-4 w-20"},a))})},s))})]})})}function Et({count:e=3}){return t.jsx("div",{className:"space-y-4",children:Array.from({length:e}).map((e,a)=>t.jsxs(Z,{children:[t.jsxs(Y,{children:[t.jsx(ut,{className:"h-4 w-3/4"}),t.jsx(ut,{className:"h-3 w-1/2"})]}),t.jsx(ae,{children:t.jsxs("div",{className:"space-y-2",children:[t.jsx(ut,{className:"h-3 w-full"}),t.jsx(ut,{className:"h-3 w-2/3"})]})})]},a))})}M.forwardRef(({className:a,...s},r)=>t.jsx("caption",{ref:r,className:e.cn("mt-4 text-sm text-muted-foreground",a),...s})).displayName="TableCaption";const zt={default:n.FileX,search:n.Search,error:n.AlertCircle};function Ot({icon:a,title:s,description:r,action:n,className:o,variant:i="default"}){const{t:l}=b.useTranslation(),c=!!a,d=zt[i];return t.jsxs("div",{className:e.cn("flex flex-col items-center justify-center py-12 px-4 text-center",o),children:[t.jsx("div",{className:"flex items-center justify-center w-16 h-16 rounded-full bg-muted mb-4",children:c?a:t.jsx(d,{className:"h-8 w-8 text-muted-foreground"})}),t.jsx("h3",{className:"text-lg font-semibold mb-2",children:s}),r&&t.jsx("p",{className:"text-muted-foreground mb-6 max-w-sm",children:r}),n&&t.jsx(H,{onClick:n.onClick,variant:"outline",children:n.label})]})}function _t({children:e,className:a}){const s=M.useRef(null),[r,n]=M.useState(!1);M.useEffect(()=>{const e=()=>{const e=s.current;e&&n(e.scrollWidth>e.clientWidth)};e();const t=new ResizeObserver(e);return s.current&&t.observe(s.current),()=>t.disconnect()},[e]);const o=t.jsx("div",{ref:s,className:`truncate w-full max-w-full ${a||""}`,children:e});return r?t.jsx(Je,{delayDuration:300,children:t.jsxs(Ze,{children:[t.jsx(Ye,{asChild:!0,children:o}),t.jsx(et,{side:"top",className:"max-w-[400px] break-words",children:e})]})}):o}const It=M.forwardRef(({direction:a,onMouseDown:s,isDragging:r,className:n},o)=>{const i="horizontal"===a;return t.jsx("div",{ref:o,onMouseDown:s,className:e.cn("absolute z-20 select-none touch-none","transition-colors duration-150",i&&["top-0 right-0 h-full w-2 -mr-1","cursor-col-resize","hover:bg-primary/20","group flex items-center justify-center"],!i&&["bottom-0 left-0 w-full h-2 -mb-1","cursor-row-resize","hover:bg-primary/20","group flex items-center justify-center"],r&&"bg-primary/30",n),children:t.jsx("div",{className:e.cn("rounded-full bg-border transition-colors group-hover:bg-primary",r&&"bg-primary",i?"h-6 w-0.5":"w-6 h-0.5")})})});It.displayName="TableResizeHandle";const Tt=F.Root,Lt=F.Trigger;M.forwardRef(({className:a,inset:s,children:r,...o},i)=>t.jsxs(F.SubTrigger,{ref:i,className:e.cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",s&&"pl-8",a),...o,children:[r,t.jsx(n.ChevronRight,{className:"ml-auto h-4 w-4"})]})).displayName=F.SubTrigger.displayName;M.forwardRef(({className:a,...s},r)=>t.jsx(F.SubContent,{ref:r,className:e.cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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",a),...s})).displayName=F.SubContent.displayName;const Ft=M.forwardRef(({className:a,...s},r)=>t.jsx(F.Portal,{children:t.jsx(F.Content,{ref:r,className:e.cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 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",a),...s})}));Ft.displayName=F.Content.displayName;const Bt=M.forwardRef(({className:a,inset:s,...r},n)=>t.jsx(F.Item,{ref:n,className:e.cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s&&"pl-8",a),...r}));Bt.displayName=F.Item.displayName;M.forwardRef(({className:a,children:s,checked:r,...o},i)=>t.jsxs(F.CheckboxItem,{ref:i,className:e.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:r,...o,children:[t.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:t.jsx(F.ItemIndicator,{children:t.jsx(n.Check,{className:"h-4 w-4"})})}),s]})).displayName=F.CheckboxItem.displayName;M.forwardRef(({className:a,children:s,...r},o)=>t.jsxs(F.RadioItem,{ref:o,className:e.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...r,children:[t.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:t.jsx(F.ItemIndicator,{children:t.jsx(n.Circle,{className:"h-2 w-2 fill-current"})})}),s]})).displayName=F.RadioItem.displayName;M.forwardRef(({className:a,inset:s,...r},n)=>t.jsx(F.Label,{ref:n,className:e.cn("px-2 py-1.5 text-sm font-semibold text-foreground",s&&"pl-8",a),...r})).displayName=F.Label.displayName;M.forwardRef(({className:a,...s},r)=>t.jsx(F.Separator,{ref:r,className:e.cn("-mx-1 my-1 h-px bg-border",a),...s})).displayName=F.Separator.displayName;const qt=({onEdit:a,onDelete:s,onToggleStatus:r,isActive:o=!0,canDelete:i=!0,customActions:l=[],renderAs:c})=>{const{t:d}=b.useTranslation(),u=[];if(a){const e={icon:n.Edit,label:d("edit"),onClick:a};u.push(e)}if(l.forEach(e=>{u.push(e)}),r){const e={icon:o?n.PowerOff:n.Power,label:o?"Inativar":"Ativar",onClick:r};u.push(e)}if(i&&s){const e={icon:n.Trash2,label:d("ap_delete"),onClick:s,destructive:!0};u.push(e)}const m="dropdown"===c?Qe:Bt;return t.jsx(t.Fragment,{children:u.map((a,s)=>t.jsxs(m,{onClick:a.onClick,className:e.cn("whitespace-normal cursor-pointer",a.destructive&&"text-destructive focus:text-destructive"),children:[t.jsx(a.icon,{className:"mr-2 h-4 w-4 flex-shrink-0"}),a.label]},s))})},Vt=({onEdit:e,onDelete:a,canDelete:s=!0,onToggleStatus:r,isActive:o=!0,customActions:i=[]})=>t.jsxs(We,{children:[t.jsx(He,{asChild:!0,children:t.jsx(H,{variant:"action",size:"sm",className:"h-7 px-2 text-xs",children:t.jsx(n.EllipsisVertical,{size:12})})}),t.jsx(Ke,{align:"end",className:"bg-background border border-border shadow-lg min-w-[160px]",children:t.jsx(qt,{onEdit:e?t=>{t?.stopPropagation(),e?.()}:void 0,onDelete:a?e=>{e?.stopPropagation(),a?.()}:void 0,onToggleStatus:r?e=>{e?.stopPropagation(),r?.()}:void 0,isActive:o,canDelete:s&&!!a,customActions:i,renderAs:"dropdown"})})]}),$t=({onEdit:a,onDelete:s,canDelete:r=!0,onToggleStatus:o,isActive:i=!0,customActions:l=[]})=>{const{t:c}=b.useTranslation();return t.jsx(Je,{delayDuration:200,children:t.jsxs("div",{className:"flex items-center justify-end gap-0.5",children:[a&&t.jsxs(Ze,{children:[t.jsx(Ye,{asChild:!0,children:t.jsx(H,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:e=>{e.stopPropagation(),a()},children:t.jsx(n.Pencil,{size:14})})}),t.jsx(et,{children:c("edit")})]}),l.map((e,a)=>{const s=e.icon;return t.jsxs(Ze,{children:[t.jsx(Ye,{asChild:!0,children:t.jsx(H,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:t=>{t.stopPropagation(),e.onClick()},children:t.jsx(s,{size:14})})}),t.jsx(et,{children:e.label})]},a)}),o&&t.jsxs(Ze,{children:[t.jsx(Ye,{asChild:!0,children:t.jsx(H,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:e=>{e.stopPropagation(),o()},children:i?t.jsx(n.ToggleRight,{size:14}):t.jsx(n.ToggleLeft,{size:14})})}),t.jsx(et,{children:i?"Inativar":"Ativar"})]}),s&&r&&t.jsxs(Ze,{children:[t.jsx(Ye,{asChild:!0,children:t.jsx(H,{variant:"ghost",size:"icon",className:e.cn("h-7 w-7 hover:text-destructive"),onClick:e=>{e.stopPropagation(),s()},children:t.jsx(n.Trash2,{size:14})})}),t.jsx(et,{children:c("ap_delete")})]})]})})},Gt=150;function Ut({columns:e,storageKey:t,onResize:s,enabled:r=!0}){const[n,o]=a.useState(()=>{if(!r||"undefined"==typeof window)return e.reduce((e,t)=>(e[t.key]=t.defaultWidth??Gt,e),{});if(t){const e=localStorage.getItem(t);if(e)try{return JSON.parse(e)}catch{}}return e.reduce((e,t)=>(e[t.key]=t.defaultWidth??Gt,e),{})}),[i,l]=a.useState(!1),[c,d]=a.useState(null),u=a.useRef(0),m=a.useRef(0),h=a.useCallback((e,t)=>{r&&(t.preventDefault(),t.stopPropagation(),l(!0),d(e),u.current=t.clientX,m.current=n[e]??Gt)},[r,n]);a.useEffect(()=>{if(!i||!c)return;const a=e.find(e=>e.key===c),r=a?.minWidth??60,n=a?.maxWidth??500,h=e=>{const t=e.clientX-u.current,a=Math.max(r,Math.min(n,m.current+t));o(e=>{const t={...e,[c]:a};return s?.(t),t})},p=()=>{l(!1),d(null),t&&o(e=>(localStorage.setItem(t,JSON.stringify(e)),e))};return document.addEventListener("mousemove",h),document.addEventListener("mouseup",p),()=>{document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",p)}},[i,c,e,t,s]),a.useEffect(()=>(i?(document.body.style.cursor="col-resize",document.body.style.userSelect="none"):(document.body.style.cursor="",document.body.style.userSelect=""),()=>{document.body.style.cursor="",document.body.style.userSelect=""}),[i]);const p=a.useCallback(()=>{const a=e.reduce((e,t)=>(e[t.key]=t.defaultWidth??Gt,e),{});o(a),t&&localStorage.removeItem(t),s?.(a)},[e,t,s]);return{columnWidths:n,isDragging:i,activeColumn:c,handleMouseDown:h,resetWidths:p}}const Wt=r.cva("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}});M.forwardRef(({className:a,variant:s,size:r,...n},o)=>t.jsx(q.Root,{ref:o,className:e.cn(Wt({variant:s,size:r,className:a})),...n})).displayName=q.Root.displayName;const Ht=M.createContext({size:"default",variant:"default"}),Kt=M.forwardRef(({className:a,variant:s,size:r,children:n,...o},i)=>t.jsx(B.Root,{ref:i,className:e.cn("flex items-center justify-center gap-1",a),...o,children:t.jsx(Ht.Provider,{value:{variant:s,size:r},children:n})}));Kt.displayName=B.Root.displayName;const Qt=M.forwardRef(({className:a,children:s,variant:r,size:n,...o},i)=>{const l=M.useContext(Ht);return t.jsx(B.Item,{ref:i,className:e.cn(Wt({variant:l.variant||r,size:l.size||n}),a),...o,children:s})});Qt.displayName=B.Item.displayName;const Xt=a.memo(function({onNew:a,newButtonLabel:s,showNewButton:r=!0,showSearch:o=!1,searchValue:i="",onSearchChange:l,searchPlaceholder:c,showBulkActions:d=!1,selectedCount:u=0,bulkActions:m=[],onBulkDelete:h,onClearSelection:p,customActions:f=[],filters:x,viewMode:g,onViewModeChange:v,showViewToggle:j=!1,availableViewModes:y=["table","list","grid"],rightSlot:N,className:w}){const{t:C}=b.useTranslation(),k=u>0,S=a&&r||f.length>0,D=x||j||N,A=o&&l;return S||A||D||d&&k?t.jsxs("div",{className:e.cn("flex-shrink-0 flex items-center px-4 py-1.5 bg-muted/50 border-b gap-4",w),children:[t.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[a&&r&&t.jsxs(H,{onClick:a,children:[t.jsx(n.Plus,{size:16,className:"mr-2"}),s||"Novo"]}),f.map((e,a)=>{const s=e.icon;return t.jsxs(H,{onClick:e.action,variant:e.variant||"outline",disabled:e.disabled,title:e.disabled?e.disabledReason:void 0,children:[s&&t.jsx(s,{size:16,className:"mr-2"}),e.label]},a)})]}),d&&k&&t.jsxs("div",{className:"flex items-center gap-1 shrink-0 border-l pl-4",children:[t.jsx($e,{variant:"secondary",className:"mr-1 tabular-nums",children:u}),t.jsxs(Je,{delayDuration:200,children:[m.length>0?m.map((a,s)=>{const r=a.icon,n=a.disabled;return t.jsxs(Ze,{children:[t.jsx(Ye,{asChild:!0,children:t.jsx(H,{variant:"ghost",size:"icon",className:e.cn("h-8 w-8","destructive"===a.variant&&"text-destructive hover:text-destructive hover:bg-destructive/10"),disabled:n,onClick:()=>a.action([]),children:r?t.jsx(r,{size:16}):t.jsx("span",{className:"text-xs",children:a.label[0]})})}),t.jsx(et,{children:a.label})]},s)}):t.jsxs(Ze,{children:[t.jsx(Ye,{asChild:!0,children:t.jsx(H,{variant:"ghost",size:"icon",className:"h-8 w-8 text-destructive hover:text-destructive hover:bg-destructive/10",onClick:h,children:t.jsx(n.Trash2,{size:16})})}),t.jsx(et,{children:C("ap_delete")})]}),t.jsxs(Ze,{children:[t.jsx(Ye,{asChild:!0,children:t.jsx(H,{variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground",onClick:p,children:t.jsx(n.X,{size:16})})}),t.jsx(et,{children:C("clear_selection")})]})]})]}),A&&t.jsx("div",{className:"flex-1 flex justify-start max-w-md mr-auto",children:t.jsxs("div",{className:"relative w-full",children:[t.jsx(n.Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),t.jsx(Q,{type:"text",placeholder:c||"Pesquisar",value:i,onChange:e=>l?.(e.target.value),className:"pl-9 w-full"})]})}),D&&t.jsxs("div",{className:"flex items-center gap-2 shrink-0 ml-auto",children:[x,j&&g&&v&&t.jsx(Kt,{type:"single",value:g,onValueChange:e=>e&&v(e),size:"sm",children:y.map(e=>{const a=(e=>{switch(e){case"table":return n.Table2;case"list":return n.List;case"grid":return n.LayoutGrid}})(e);return t.jsx(Qt,{value:e,"aria-label":"Visualizar como "+("table"===e?"tabela":"list"===e?"lista":"grade"),children:t.jsx(a,{className:"h-4 w-4"})},e)})}),N]})]}):null}),Jt=a.memo(({checked:e,onCheckedChange:a})=>t.jsx(Be,{checked:e,onCheckedChange:a}),(e,t)=>e.checked===t.checked);function Zt(e){try{const t=localStorage.getItem(e);if(!t)return null;const a=JSON.parse(t);let s=a.groupByColumns||[];return 0===s.length&&a.groupByColumn&&(s=[a.groupByColumn]),{hiddenColumns:new Set(a.hiddenColumns||[]),columnOrder:a.columnOrder||[],groupByColumns:s}}catch{return null}}function Yt({columns:e,storageKey:t,enabled:s=!0,defaultHiddenColumns:r}){const n=a.useMemo(()=>e.map(e=>String(e.key)),[e]),o=a.useMemo(()=>new Set(r??[]),[r]),[i,l]=a.useState(()=>{if(!s)return o;if(!t)return o;const e=Zt(t);return e?.hiddenColumns??o}),[c,d]=a.useState(()=>{if(!s||!t)return n;const e=Zt(t)?.columnOrder;return e&&e.length>0?e:n}),[u,m]=a.useState(()=>s&&t?Zt(t)?.groupByColumns??[]:[]),[h,p]=a.useState(new Set);a.useEffect(()=>{s&&t&&function(e,t){try{localStorage.setItem(e,JSON.stringify({hiddenColumns:Array.from(t.hiddenColumns),columnOrder:t.columnOrder,groupByColumns:t.groupByColumns}))}catch{}}(t,{hiddenColumns:i,columnOrder:c,groupByColumns:u})},[i,c,u,t,s]),a.useEffect(()=>{const t=new Set(e.map(e=>String(e.key))),a=new Set(c),s=[...t].filter(e=>!a.has(e));if(s.length>0){d(e=>[...e.filter(e=>t.has(e)),...s]);const e=s.filter(e=>o.has(e));e.length>0&&l(t=>new Set([...t,...e]))}},[e,o]);const f=a.useCallback(e=>i.has(e),[i]),x=a.useCallback(e=>{l(t=>{const a=new Set(t);return a.has(e)?a.delete(e):a.add(e),a})},[]),g=a.useCallback(()=>{l(new Set)},[]),b=a.useCallback(()=>{if(l(o),d(n),m([]),p(new Set),t)try{localStorage.removeItem(t)}catch{}},[n,o,t]),v=a.useCallback((e,t)=>{d(a=>{const s=[...a],[r]=s.splice(e,1);return s.splice(t,0,r),s})},[]),j=a.useCallback(e=>{p(t=>{const a=new Set(t);return a.has(e)?a.delete(e):a.add(e),a})},[]),y=a.useCallback(e=>{m(e),p(new Set)},[]),N=a.useCallback(e=>{m(t=>t.includes(e)?t:[...t,e])},[]),w=a.useCallback(e=>{m(t=>t.filter(t=>t!==e)),p(t=>{const a=new Set;for(const s of t)s.includes(`${e}:`)||a.add(s);return a})},[]),C=a.useCallback((e,t)=>{m(a=>{const s=[...a],[r]=s.splice(e,1);return s.splice(t,0,r),s}),p(new Set)},[]),k=u[0]??null,S=a.useCallback(e=>{m(e?[e]:[]),p(new Set)},[]),D=a.useMemo(()=>{if(!s)return e;const t=new Map(e.map(e=>[String(e.key),e]));return c.filter(e=>!i.has(e)&&t.has(e)).map(e=>t.get(e))},[e,c,i,s]),A=a.useCallback(e=>{if(0===u.length)return[{groupKey:"__all__",groupValue:"",items:e,count:e.length,level:0}];return function e(t,a,s,r){if(0===a.length)return[{groupKey:r||"__leaf__",groupValue:"",items:t,count:t.length,level:s}];const[n,...o]=a,i=new Map;for(const l of t){const e=String(l[n]??"(vazio)");i.has(e)||i.set(e,[]),i.get(e).push(l)}return Array.from(i.entries()).map(([t,a])=>{const i=r?`${r}|${n}:${t}`:`${n}:${t}`,l=o.length>0?e(a,o,s+1,i):void 0;return{groupKey:i,groupValue:t,items:a,count:a.length,level:s,children:l}})}(e,u,0,"")},[u]);return{visibleColumns:D,allColumns:e,isColumnHidden:f,toggleColumn:x,showAllColumns:g,resetColumns:b,columnOrder:c,reorderColumns:v,groupByColumn:k,setGroupByColumn:S,groupByColumns:u,setGroupByColumns:y,addGroupByColumn:N,removeGroupByColumn:w,reorderGroupByColumns:C,getGroupedData:A,collapsedGroups:h,toggleGroupCollapse:j}}function ea({columns:s,columnOrder:r,isColumnHidden:o,toggleColumn:i,showAllColumns:l,reorderColumns:c,groupByColumn:d,setGroupByColumn:u,groupByColumns:m=[],addGroupByColumn:h,removeGroupByColumn:p,resetColumns:f}){const{t:x}=b.useTranslation(),[g,v]=a.useState(null),[j,y]=a.useState(null),N=a.useRef(null),w=new Map(s.map(e=>[String(e.key),e])),C=r.filter(e=>w.has(e)).map(e=>w.get(e)),k=()=>{N.current=null,v(null),y(null)};C.some(e=>o(String(e.key)));const S=C.every(e=>!o(String(e.key)));return t.jsxs(at,{children:[t.jsx(st,{asChild:!0,children:t.jsx(H,{variant:"outline",size:"icon",className:"h-8 w-8",children:t.jsx(n.Columns3,{size:16})})}),t.jsxs(rt,{className:"w-[260px] p-0",align:"end",children:[t.jsx("div",{className:"px-3 py-2 border-b",children:t.jsx("span",{className:"text-sm font-medium",children:x("columns")})}),t.jsx("div",{className:"max-h-[300px] overflow-auto py-1",children:t.jsx(Je,{delayDuration:300,children:C.map((a,s)=>{const r=String(a.key),l=o(r),f=!1!==a.hideable,b=!0===a.groupable,w=m.includes(r)||d===r;return t.jsxs("div",{draggable:!0,onDragStart:()=>(e=>{N.current=e,v(e)})(s),onDragOver:e=>((e,t)=>{e.preventDefault(),y(t)})(e,s),onDrop:()=>(e=>{null!==N.current&&N.current!==e&&c(N.current,e),N.current=null,v(null),y(null)})(s),onDragEnd:k,className:e.cn("flex items-center gap-2 px-3 py-1.5 text-sm cursor-grab active:cursor-grabbing","hover:bg-muted/50 transition-colors",g===s&&"opacity-50",j===s&&"border-t-2 border-primary"),children:[t.jsx(n.GripVertical,{size:14,className:"text-muted-foreground shrink-0"}),t.jsx(Be,{checked:!l,onCheckedChange:()=>f&&i(r),disabled:!f,className:"shrink-0"}),t.jsx("span",{className:e.cn("flex-1 truncate",l&&"text-muted-foreground"),children:a.header}),b&&t.jsxs(Ze,{children:[t.jsx(Ye,{asChild:!0,children:t.jsx(H,{variant:"ghost",size:"icon",className:e.cn("h-6 w-6 shrink-0",w&&"text-primary bg-primary/10"),onClick:e=>{e.stopPropagation(),w?p?p(r):u?.(null):h?h(r):u?.(r)},children:t.jsx(n.Group,{size:14})})}),t.jsx(et,{children:x(w?"remove_grouping":"group_by_column")})]})]},r)})})}),t.jsxs("div",{className:"border-t px-3 py-2 space-y-1",children:[t.jsx(H,{variant:"ghost",size:"sm",className:"w-full text-xs font-normal justify-start",onClick:S?()=>C.filter(e=>!1!==e.hideable).forEach(e=>i(String(e.key))):l,children:x(S?"deselect_all":"select_all_columns")}),f&&t.jsx(H,{variant:"ghost",size:"sm",className:"w-full text-xs font-normal justify-start",onClick:f,children:x("reset_default")})]})]})]})}function ta({columns:s,groupByColumns:r,addGroupByColumn:o,removeGroupByColumn:i,reorderGroupByColumns:l}){const[c,d]=a.useState(!1),[u,m]=a.useState(null),[h,p]=a.useState(null),f=new Map(s.map(e=>[String(e.key),e])),x=()=>{m(null),p(null)},g=r.length>0;return t.jsxs("div",{onDragOver:e=>{e.preventDefault(),e.dataTransfer.dropEffect="move",d(!0)},onDragLeave:e=>{e.currentTarget.contains(e.relatedTarget)||d(!1)},onDrop:e=>{e.preventDefault(),d(!1);if(Array.from(e.dataTransfer.types).includes("application/group-chip-index"))return;const t=e.dataTransfer.getData("application/column-key");if(t&&!r.includes(t)){const e=f.get(t);e&&e.groupable&&o(t)}},className:e.cn("flex items-center gap-2 px-4 py-2 min-h-[40px] border-b transition-colors",c&&"bg-primary/5 border-primary/30",!g&&"text-muted-foreground"),children:[t.jsx(n.Group,{size:14,className:"shrink-0 text-muted-foreground"}),t.jsx("div",{className:"flex-1 flex items-center gap-1.5 flex-wrap",children:g?r.map((s,r)=>{const o=f.get(s);if(!o)return null;const c=u===r,d=h===r&&u!==r;return t.jsxs(a.Fragment,{children:[r>0&&t.jsx("span",{className:"text-xs text-muted-foreground",children:"›"}),t.jsxs($e,{variant:"secondary",className:e.cn("cursor-grab active:cursor-grabbing gap-1 pr-1 select-none",c&&"opacity-50",d&&"ring-2 ring-primary"),draggable:!0,onDragStart:e=>((e,t)=>{e.stopPropagation(),e.dataTransfer.setData("application/group-chip-index",String(t)),e.dataTransfer.effectAllowed="move",m(t)})(e,r),onDragOver:e=>((e,t)=>{e.preventDefault(),e.stopPropagation(),p(t)})(e,r),onDrop:e=>((e,t)=>{e.preventDefault(),e.stopPropagation();const a=e.dataTransfer.getData("application/group-chip-index");if(""!==a){const e=parseInt(a,10);isNaN(e)||e===t||l(e,t)}m(null),p(null)})(e,r),onDragEnd:x,children:[o.header,t.jsx("button",{onClick:e=>{e.stopPropagation(),i(s)},className:"ml-0.5 rounded-full p-0.5 hover:bg-muted-foreground/20 transition-colors",children:t.jsx(n.X,{size:12})})]})]},s)}):t.jsx("span",{className:"text-xs",children:"Arraste um cabeçalho de coluna aqui para agrupar"})})]})}const aa=({manager:s,columns:r,onEdit:o,onView:i,onToggleStatus:l,onDelete:d,renderActions:u,customRowActions:m,enableBulkActions:h=!1,rowActionsVariant:p="dropdown",onNew:f,newButtonLabel:x,showNewButton:g=!0,customActions:v=[],hideActionBar:j,showActionBar:y=!0,showSearch:N=!1,searchValue:w,onSearchChange:C,searchPlaceholder:k,bulkActions:S=[],onBulkDelete:D,filters:A,viewMode:M,onViewModeChange:P,showViewToggle:R=!1,enableColumnResize:E=!0,resizeStorageKey:z,enableColumnManager:O=!0,columnManagerStorageKey:_,defaultHiddenColumns:I,enableGrouping:T=!1,enableExpandableRows:L=!1,renderExpandedContent:F,expandedRowIds:B,onToggleExpand:q,defaultExpandAll:V=!1,hideActionsColumn:$=!1,readOnly:G=!1})=>{const{t:U}=b.useTranslation(),{setSearchVisible:W}=e.useAuth(),H=Ct(),[K,Q]=a.useState(()=>V&&L?new Set(s.entities.map(e=>e.id)):new Set),X=void 0!==B,J=X?new Set(B):K,Y=a.useCallback(e=>{X&&q?q(e):Q(t=>{const a=new Set(t);return a.has(e)?a.delete(e):a.add(e),a})},[X,q]),ee=void 0!==j?!j:y;a.useEffect(()=>{if(!N)return W(!0),()=>W(!1)},[W,N]);const te=Yt({columns:r,storageKey:_,enabled:O,defaultHiddenColumns:I}),se=function({enabled:e=!1,onReorder:t}){const[s,r]=a.useState(null),[n,o]=a.useState(null),i=a.useCallback(()=>{r(null),o(null)},[]),l=a.useCallback((a,n)=>({draggable:e,onDragStart:t=>{e&&(r(a),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setData("text/plain",String(a)),n&&t.dataTransfer.setData("application/column-key",n))},onDragOver:t=>{e&&null!==s&&(t.preventDefault(),t.dataTransfer.dropEffect="move")},onDragEnter:t=>{e&&null!==s&&(t.preventDefault(),o(a))},onDrop:r=>{r.preventDefault(),e&&null!==s&&s!==a?(t(s,a),i()):i()},onDragEnd:()=>{i()}}),[e,s,t,i]);return a.useMemo(()=>({dragFromIndex:s,dragOverIndex:n,isDragging:null!==s,getDragProps:l}),[s,n,l])}({enabled:O,onReorder:te.reorderColumns}),re=O?te.visibleColumns:r,{columnWidths:ne,isDragging:oe,activeColumn:ie,handleMouseDown:le}=Ut({columns:re.map(e=>({key:String(e.key),minWidth:e.minWidth??60,maxWidth:500,defaultWidth:e.width??e.minWidth??150})),storageKey:z?`${z}-columns`:void 0,enabled:E}),ce=a.useMemo(()=>(()=>{if(E){const e=re.map(e=>ne[String(e.key)]??e.width??e.minWidth??150),t=e.reduce((e,t)=>e+t,0);return re.map((a,s)=>({...a,calculatedWidth:e[s],style:{width:e[s]/t*100+"%"}}))}let e=0;const t=re.map(t=>{if(t.width)return e+=t.width,{...t,calculatedWidth:t.width,isFixed:!0};{const a=t.minWidth||120,s=t.weight||1;return e+=a,{...t,calculatedWidth:a,weight:s,isFixed:!1}}});return e+=50,t.map(e=>e.isFixed?{...e,style:{width:`${e.calculatedWidth}px`}}:{...e,style:{minWidth:`${e.calculatedWidth}px`,width:`${e.calculatedWidth}px`}})})(),[re,E,ne]),de=f||v.length>0||N||h||A||R||O,ue=ee&&de,me=$||G,he=D||(()=>{s.bulkDelete?.(s.selectedIds)}),pe=e=>t.jsx(Pt,{className:"text-center",children:u?u(e):"inline"===p?t.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity duration-150",children:t.jsx($t,{onEdit:o?()=>o(e):void 0,onDelete:d?()=>d(e):void 0,onToggleStatus:l?()=>l(e):void 0,isActive:e.is_actived,customActions:m?m(e):[]})}):t.jsx(Vt,{onEdit:o?()=>o(e):void 0,onDelete:d?()=>d(e):void 0,onToggleStatus:l?()=>l(e):void 0,isActive:e.is_actived,customActions:m?m(e):[]})}),fe=e=>t.jsx(Ft,{className:"w-[160px]",children:t.jsx(qt,{onEdit:o?()=>o(e):void 0,onDelete:d?()=>d(e):void 0,onToggleStatus:l?()=>l(e):void 0,isActive:e.is_actived,canDelete:!!d,customActions:m?m(e):[],renderAs:"context"})}),xe=O?t.jsx(ea,{columns:r,columnOrder:te.columnOrder,isColumnHidden:te.isColumnHidden,toggleColumn:te.toggleColumn,showAllColumns:te.showAllColumns,resetColumns:te.resetColumns,reorderColumns:te.reorderColumns,groupByColumn:T?te.groupByColumn:void 0,setGroupByColumn:T?te.setGroupByColumn:void 0,groupByColumns:T?te.groupByColumns:void 0,addGroupByColumn:T?te.addGroupByColumn:void 0,removeGroupByColumn:T?te.removeGroupByColumn:void 0}):void 0;if(H)return s.isLoading?t.jsx(Et,{count:3}):0===s.entities.length?t.jsx(Ot,{title:c.t("no_items_found_empty"),description:c.t("no_data_to_display"),variant:"search"}):t.jsxs("div",{className:"flex flex-col h-full",children:[ue&&t.jsx(Xt,{onNew:f,newButtonLabel:x,showNewButton:g,showSearch:N,searchValue:w,onSearchChange:C,searchPlaceholder:k,showBulkActions:h,selectedCount:s.selectedIds.length,bulkActions:S,onBulkDelete:he,onClearSelection:s.clearSelection,customActions:v,filters:A,viewMode:M,onViewModeChange:P,showViewToggle:R}),t.jsx("div",{className:"flex-1 overflow-auto space-y-4 p-4",children:s.entities.map(a=>{const r=t.jsx(Z,{className:e.cn("overflow-hidden cursor-pointer hover:bg-muted/50",h&&s.selectedIds.includes(a.id)&&"bg-muted"),onClick:e=>{e.stopPropagation(),h?s.selectItem(a.id):o?.(a)},children:t.jsx(ae,{className:"p-4",children:t.jsxs("div",{className:"flex items-start gap-3",children:[h&&t.jsx("div",{className:"pt-0.5",onClick:e=>e.stopPropagation(),children:t.jsx(Jt,{checked:s.selectedIds.includes(a.id),onCheckedChange:()=>s.selectItem(a.id)})}),t.jsxs("div",{className:"flex-1",children:[re.map(e=>t.jsxs("div",{className:"flex justify-between items-start mb-2 last:mb-0",children:[t.jsxs("span",{className:"text-sm font-medium text-muted-foreground min-w-0 mr-2",children:[e.header,":"]}),t.jsx("div",{className:"text-sm text-foreground text-right min-w-0 flex-1",children:e.render?e.render(a):String(a[e.key]??"")})]},String(e.key))),(o||i||u)&&t.jsx("div",{className:"mt-3 pt-3 border-t flex justify-end",onClick:e=>e.stopPropagation(),children:u?u(a):t.jsx(Vt,{onEdit:o?()=>{o(a)}:void 0,onDelete:d?()=>d(a):void 0,onToggleStatus:l?()=>l(a):void 0,isActive:a.is_actived,customActions:m?m(a):[]})})]})]})})},a.id);return G?r:t.jsxs(Tt,{children:[t.jsx(Lt,{asChild:!0,children:r}),fe(a)]},a.id)})})]});const ge=T&&te.groupByColumns.length>0?te.getGroupedData(s.entities):null,be=null!==ge,ve=(L?1:0)+(h?1:0)+re.length+(me?0:1),je=r=>{const i=L&&J.has(r.id),l=t.jsxs(At,{className:e.cn("cursor-pointer hover:bg-muted/50 relative",("inline"===p||me)&&"group",h&&s.selectedIds.includes(r.id)&&"bg-muted"),onClick:e=>{e.stopPropagation(),h?s.selectItem(r.id):o?.(r)},children:[L&&t.jsx(Pt,{className:"w-[40px] px-2",children:t.jsx("button",{onClick:e=>{e.stopPropagation(),Y(r.id)},className:"p-1 rounded-sm hover:bg-muted transition-colors","aria-label":U(i?"collapse_row":"expand_row"),children:i?t.jsx(n.ChevronDown,{size:16,className:"text-muted-foreground"}):t.jsx(n.ChevronRight,{size:16,className:"text-muted-foreground"})})}),h&&t.jsx(Pt,{onClick:e=>e.stopPropagation(),children:t.jsx(Jt,{checked:s.selectedIds.includes(r.id),onCheckedChange:()=>s.selectItem(r.id)})}),re.map(e=>t.jsx(Pt,{className:e.className,children:t.jsx(_t,{children:e.render?e.render(r):String(r[e.key]??"")})},String(e.key))),!me&&pe(r)]});return t.jsxs(a.Fragment,{children:[G?l:t.jsxs(Tt,{children:[t.jsx(Lt,{asChild:!0,children:l}),fe(r)]}),i&&F&&t.jsx(At,{className:"bg-muted/30 hover:bg-muted/30",children:t.jsx(Pt,{colSpan:ve,className:"p-0",children:t.jsx("div",{className:"animate-accordion-down overflow-hidden",children:F(r)})})})]},r.id)},ye=(s,r)=>s.map(s=>{const o=te.collapsedGroups.has(s.groupKey),i=16*s.level,l=Math.max(30,70-15*s.level);return t.jsxs(a.Fragment,{children:[t.jsx(At,{className:e.cn("hover:bg-muted cursor-pointer"),style:{backgroundColor:`hsl(var(--muted) / ${l}%)`},onClick:()=>te.toggleGroupCollapse(s.groupKey),children:t.jsx(Pt,{colSpan:r,className:"py-2 px-4",children:t.jsxs("div",{className:"flex items-center gap-2 font-medium text-sm",style:{paddingLeft:`${i}px`},children:[o?t.jsx(n.ChevronRight,{size:16}):t.jsx(n.ChevronDown,{size:16}),t.jsx("span",{children:s.groupValue}),t.jsxs("span",{className:"text-muted-foreground font-normal",children:["(",s.count,")"]})]})})}),!o&&(s.children?ye(s.children,r):s.items.map(je))]},s.groupKey)});return t.jsxs("div",{className:"flex flex-col h-full",children:[ue&&t.jsx(Xt,{onNew:f,newButtonLabel:x,showNewButton:g,showSearch:N,searchValue:w,onSearchChange:C,searchPlaceholder:k,showBulkActions:h,selectedCount:s.selectedIds.length,bulkActions:S,onBulkDelete:he,onClearSelection:s.clearSelection,customActions:v,filters:A,viewMode:M,onViewModeChange:P,showViewToggle:R}),s.isLoading?t.jsx(Rt,{rows:5,columns:re.length}):t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[T&&t.jsx(ta,{columns:r,groupByColumns:te.groupByColumns,addGroupByColumn:te.addGroupByColumn,removeGroupByColumn:te.removeGroupByColumn,reorderGroupByColumns:te.reorderGroupByColumns}),t.jsx("div",{className:"flex-1 overflow-auto",children:t.jsxs(kt,{className:"table-fixed w-full",children:[t.jsxs("colgroup",{children:[L&&t.jsx("col",{style:{width:"40px"}}),h&&t.jsx("col",{style:{width:"50px"}}),ce.map((e,a)=>t.jsx("col",{style:e.style},a)),!me&&t.jsx("col",{style:{width:"inline"===p?"auto":"50px",minWidth:"50px"}})]}),t.jsx(St,{children:t.jsxs(At,{children:[L&&t.jsx(Mt,{className:"w-[40px]"}),h&&t.jsx(Mt,{className:"w-[50px]",children:t.jsx(Jt,{checked:s.isAllSelected,onCheckedChange:s.selectAll})}),re.map((a,r)=>{const o=E&&!1!==a.resizable,i=ie===String(a.key),l=O?se.getDragProps(r,String(a.key)):{},c=se.dragFromIndex===r,d=se.dragOverIndex===r&&se.dragFromIndex!==r;return t.jsxs(Mt,{className:e.cn(a.className,!1!==a.sortable&&"hover:bg-muted/50 cursor-pointer","relative transition-opacity",O&&se.isDragging&&"cursor-grabbing",c&&"opacity-50",d&&"border-l-2 border-primary"),onClick:!1!==a.sortable?()=>s.handleSort(String(a.key)):void 0,...l,children:[t.jsxs("div",{className:"flex items-center "+(a.className?.includes("text-center")?"justify-center":""),children:[a.header,!1!==a.sortable&&(u=String(a.key),s.sortField!==u?null:"asc"===s.sortDirection?t.jsx(n.ArrowUp,{size:14,className:"ml-1"}):t.jsx(n.ArrowDown,{size:14,className:"ml-1"}))]}),o&&t.jsx(It,{direction:"horizontal",onMouseDown:e=>le(String(a.key),e),isDragging:i})]},String(a.key));var u}),!me&&t.jsx(Mt,{className:"w-[50px] text-center",children:xe||c.t("actions")})]})}),t.jsx(Dt,{children:0===s.entities.length?t.jsx(At,{children:t.jsx(Pt,{colSpan:ve,className:"h-32",children:t.jsx(Ot,{title:c.t("no_items_found_empty"),description:"Não há dados para exibir no momento.",variant:"search"})})}):be?ye(ge,ve):s.entities.map(je)})]})})]})]})};function sa(e,t,s,r){const[n,o]=a.useState({}),[i,l]=a.useState({}),c=a.useMemo(()=>e,[e]),d=e=>e instanceof Date&&!isNaN(e.getTime()),u=e=>{if(void 0!==e.defaultValue)return e.defaultValue;switch(e.type){case"multiselect":return[];case"checkbox":return!1;case"number":return 0;case"date":default:return"";case"group":return{}}},m=(e,t)=>{if(e.computedValue&&"function"==typeof e.computedValue)try{return e.computedValue(t)}catch(a){return u(e)}},h=(e,t,a)=>{if(e.required&&(""===t||null==t||Array.isArray(t)&&0===t.length))return`${e.label} é obrigatório`;if(e.validation){let r;if("function"==typeof e.validation?r=e.validation:e.validation.custom&&"function"==typeof e.validation.custom&&(r=e.validation.custom),r)try{const e=r(t,a);if(e)return e}catch(s){}}};a.useEffect(()=>{if(!r)return;const e=t=>{const a=[];return t.forEach(t=>{a.push(t),t.fields&&a.push(...e(t.fields))}),a},a=e(c),s={};a.forEach(e=>{let a;if(t&&void 0!==t[e.name]){if(a=t[e.name],null==a&&(a=""),"date"===e.type&&a)if("string"==typeof a){const e=new Date(a);d(e)&&(a=e.toISOString().split("T")[0])}else d(a)&&(a=a.toISOString().split("T")[0])}else a=u(e);s[e.name]=a}),a.forEach(e=>{const t=m(e,s);void 0!==t&&(s[e.name]=t)}),t&&Object.keys(t).forEach(e=>{a.find(t=>t.name===e)||void 0===t[e]||(s[e]=t[e])}),o(s),l({})},[c,t,s,r]);const p=e=>{const t=[];return e.forEach(e=>{t.push(e),e.fields&&t.push(...p(e.fields))}),t},f=()=>{const e=p(c),t={};return e.forEach(e=>{const a=h(e,n[e.name],n);a&&(t[e.name]=a)}),l(t),0===Object.keys(t).length};return{formData:n,errors:i,updateField:(e,t)=>{o(a=>{const s={...a,[e]:t},r=((e,t)=>{let a={...t};const s=e=>{const t=[];return e.forEach(e=>{t.push(e),e.fields&&t.push(...s(e.fields))}),t};return s(c).filter(t=>t.dependsOn===e).forEach(e=>{const t=m(e,a);void 0!==t&&(a={...a,[e.name]:t})}),a})(e,s);return r}),i[e]&&l(t=>{const a={...t};return delete a[e],a});const a=p(c).find(t=>t.name===e);if(a){const s=h(a,t,n);s&&l(t=>({...t,[e]:s}))}},validateForm:f,handleSubmit:e=>t=>{t&&(t.preventDefault(),t.stopPropagation()),f()&&e(n)}}}const ra=[{name:"gray",hue:220,saturation:8},{name:"red",hue:0,saturation:80},{name:"pink",hue:330,saturation:75},{name:"purple",hue:270,saturation:70},{name:"indigo",hue:230,saturation:75},{name:"blue",hue:210,saturation:85},{name:"cyan",hue:190,saturation:75},{name:"teal",hue:170,saturation:65},{name:"green",hue:140,saturation:60},{name:"yellow",hue:45,saturation:90},{name:"orange",hue:25,saturation:90}],na=[10,22,35,45,55,68,78,87,94].flatMap(e=>ra.map(({hue:t,saturation:a})=>((e,t,a)=>{a/=100;const s=t=>(t+e/30)%12,r=(t/=100)*Math.min(a,1-a),n=e=>{const t=a-r*Math.max(-1,Math.min(s(e)-3,Math.min(9-s(e),1)));return Math.round(255*t).toString(16).padStart(2,"0")};return`#${n(0)}${n(8)}${n(4)}`})(t,a,e))),oa=({value:e="#3b82f6",onChange:s,label:r,customColorLabel:o,presetColorsLabel:i,showHexValue:l=!0})=>{const{t:c}=b.useTranslation(),d=o??c("custom_color"),u=i??c("preset_colors"),[m,h]=a.useState(!1),p=a.useRef([]),f=ra.length,x=a.useMemo(()=>{const t=na.findIndex(t=>t.toLowerCase()===e.toLowerCase());return t>=0?t:0},[e]),[g,v]=a.useState(x);a.useEffect(()=>{m&&(v(x),requestAnimationFrame(()=>{p.current[x]?.focus()}))},[m,x]);const j=e=>{const t=Math.max(0,Math.min(na.length-1,e));v(t),p.current[t]?.focus()},y=e=>{s?.(e),h(!1)};return t.jsxs("div",{className:"space-y-2",children:[r&&t.jsx(J,{children:r}),t.jsxs(at,{open:m,onOpenChange:h,children:[t.jsx(st,{asChild:!0,children:t.jsxs(H,{variant:"outline",className:"w-full justify-between text-left font-normal",onKeyDown:e=>{"ArrowDown"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||(e.preventDefault(),h(!0))},children:[t.jsxs("span",{className:"flex items-center min-w-0",children:[t.jsx("span",{className:"h-4 w-4 rounded border mr-2 shrink-0",style:{backgroundColor:e}}),l&&t.jsx("span",{className:"truncate",children:e})]}),t.jsx(n.ChevronDown,{className:"h-4 w-4 opacity-50 shrink-0"})]})}),t.jsx(rt,{className:"w-auto p-3",onOpenAutoFocus:e=>{e.preventDefault(),requestAnimationFrame(()=>{p.current[x]?.focus()})},children:t.jsxs("div",{className:"space-y-3",children:[t.jsxs("div",{children:[t.jsx(J,{children:u}),t.jsx("div",{className:"grid gap-1 mt-2",style:{gridTemplateColumns:`repeat(${ra.length}, minmax(0, 1fr))`},onKeyDown:e=>{switch(e.key){case"ArrowRight":e.preventDefault(),j(g+1);break;case"ArrowLeft":e.preventDefault(),j(g-1);break;case"ArrowDown":e.preventDefault(),j(g+f);break;case"ArrowUp":e.preventDefault(),j(g-f);break;case"Home":e.preventDefault(),j(0);break;case"End":e.preventDefault(),j(na.length-1);break;case"Enter":e.preventDefault(),y(na[g]);break;case"Tab":e.preventDefault(),h(!1)}},role:"grid",children:na.map((a,s)=>{const r=a.toLowerCase()===e.toLowerCase();return t.jsx("button",{ref:e=>{p.current[s]=e},type:"button",tabIndex:s===g?0:-1,className:"h-5 w-5 rounded-sm border transition-transform hover:scale-110 hover:z-10 focus:outline-none focus:ring-2 focus:ring-ring focus:z-10 "+(r?"border-foreground ring-2 ring-foreground/30":"border-border/40"),style:{backgroundColor:a},onClick:()=>y(a),"aria-label":`Selecionar cor ${a}`},`${a}-${s}`)})})]}),t.jsxs("div",{children:[t.jsx(J,{htmlFor:"color-input",children:d}),t.jsx(Q,{id:"color-input",type:"color",value:e,onChange:e=>s?.(e.target.value),className:"h-8 w-full mt-2"})]})]})})]})]})},ia=M.forwardRef(({className:a,children:s,...r},n)=>t.jsxs(V.Root,{ref:n,className:e.cn("relative overflow-hidden",a),...r,children:[t.jsx(V.Viewport,{className:"h-full w-full rounded-[inherit]",children:s}),t.jsx(la,{}),t.jsx(V.Corner,{})]}));ia.displayName=V.Root.displayName;const la=M.forwardRef(({className:a,orientation:s="vertical",...r},n)=>t.jsx(V.ScrollAreaScrollbar,{ref:n,orientation:s,className:e.cn("flex touch-none select-none transition-colors","vertical"===s&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===s&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",a),...r,children:t.jsx(V.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));la.displayName=V.ScrollAreaScrollbar.displayName;const ca=[{name:"alarm",filled:!1},{name:"account_box",filled:!0},{name:"announcement",filled:!0},{name:"assessment",filled:!0},{name:"assignment",filled:!0},{name:"bookmark",filled:!0},{name:"build",filled:!0},{name:"change_history",filled:!1},{name:"credit_card",filled:!1},{name:"date_range",filled:!0},{name:"extension",filled:!0},{name:"face",filled:!0},{name:"favorite",filled:!0},{name:"store",filled:!0},{name:"group_work",filled:!0},{name:"home",filled:!0},{name:"label",filled:!0},{name:"lightbulb_2",filled:!1},{name:"list",filled:!0},{name:"line_weight",filled:!0},{name:"question_answer",filled:!0},{name:"mode_heat",filled:!0},{name:"reorder",filled:!0},{name:"warning",filled:!0},{name:"room",filled:!0},{name:"settings",filled:!0},{name:"shopping_cart",filled:!0},{name:"work",filled:!0},{name:"star_rate",filled:!0},{name:"monetization_on",filled:!0},{name:"view_list",filled:!0},{name:"visibility",filled:!0},{name:"error",filled:!0},{name:"equalizer",filled:!0},{name:"release_alert",filled:!0},{name:"mic",filled:!0},{name:"videocam",filled:!0},{name:"call",filled:!0},{name:"chat",filled:!0},{name:"chat_bubble",filled:!0},{name:"email",filled:!0},{name:"link",filled:!0},{name:"report",filled:!0},{name:"flag",filled:!0},{name:"attach_file",filled:!0},{name:"attachment",filled:!0},{name:"attach_money",filled:!0},{name:"bubble_chart",filled:!0},{name:"folder",filled:!0},{name:"business",filled:!0},{name:"device_hub",filled:!0},{name:"flash_on",filled:!0},{name:"image",filled:!0},{name:"lens",filled:!0},{name:"photo_camera",filled:!0},{name:"style",filled:!0},{name:"view_compact",filled:!0},{name:"wb_incandescent",filled:!0},{name:"directions_bus",filled:!0},{name:"directions_car",filled:!0},{name:"flight",filled:!0},{name:"hotel",filled:!0},{name:"local_offer",filled:!0},{name:"restaurant",filled:!0},{name:"restaurant_menu",filled:!0},{name:"local_shipping",filled:!0},{name:"all_inclusive",filled:!0},{name:"business_center",filled:!0},{name:"notifications",filled:!0},{name:"share",filled:!0}];function da({name:e,filled:a,className:s}){return t.jsx("span",{className:`material-symbols-outlined ${s??""}`,style:a?{fontVariationSettings:"'FILL' 1"}:void 0,children:e})}const ua=({value:e=null,onChange:s,label:r,noIconLabel:o="SEM ÍCONE",color:i="text-foreground/60"})=>{const[l,c]=a.useState(!1),d=a.useRef([]),u=e?(m=e,ca.find(e=>e.name===m)):null;var m;const h=a.useMemo(()=>{if(!e)return 0;const t=ca.findIndex(t=>t.name===e);return t>=0?t:0},[e]),[p,f]=a.useState(h);a.useEffect(()=>{l&&(f(h),requestAnimationFrame(()=>{d.current[h]?.focus()}))},[l,h]);const x=a.useCallback(e=>{const t=Math.max(0,Math.min(ca.length-1,e));f(t),d.current[t]?.focus()},[]),g=a.useCallback(e=>{s?.(e),c(!1)},[s]),b=a.useCallback(e=>{"ArrowDown"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||(e.preventDefault(),c(!0))},[]),v=a.useCallback(e=>{switch(e.key){case"ArrowRight":e.preventDefault(),x(p+1);break;case"ArrowLeft":e.preventDefault(),x(p-1);break;case"ArrowDown":e.preventDefault(),x(p+10);break;case"ArrowUp":e.preventDefault(),x(p-10);break;case"Home":e.preventDefault(),x(0);break;case"End":e.preventDefault(),x(ca.length-1);break;case"Enter":e.preventDefault(),g(ca[p]?.name??null);break;case"Tab":e.preventDefault(),c(!1)}},[p,x,g]);return t.jsxs("div",{className:"space-y-2",children:[r&&t.jsx(J,{children:r}),t.jsxs(at,{open:l,onOpenChange:c,children:[t.jsx(st,{asChild:!0,children:t.jsxs(H,{variant:"outline",className:"justify-start text-left font-normal gap-2",onKeyDown:b,children:[u?t.jsx(da,{name:u.name,filled:u.filled,className:`text-xl ${i}`}):t.jsx("span",{className:"text-muted-foreground text-sm",children:o}),t.jsx(n.ChevronDown,{className:"ml-auto h-4 w-4 opacity-50"})]})}),t.jsx(rt,{className:"w-auto max-w-[min(640px,calc(100vw-2rem))] p-3",align:"start",onOpenAutoFocus:e=>{e.preventDefault(),requestAnimationFrame(()=>{d.current[h]?.focus()})},children:t.jsxs("div",{className:"space-y-3",children:[t.jsx(ia,{className:"max-h-[min(480px,calc(100vh-12rem))]",children:t.jsx("div",{className:"grid grid-cols-10 gap-1",onKeyDown:v,role:"grid",children:ca.map((a,s)=>t.jsx("button",{ref:e=>{d.current[s]=e},type:"button",tabIndex:s===p?0:-1,className:`flex items-center justify-center p-1.5 rounded border transition-colors ${i} ${e===a.name?"bg-accent border-ring":"border-transparent hover:bg-accent"}`,onClick:()=>g(a.name),title:a.name,children:t.jsx(da,{name:a.name,filled:a.filled,className:"text-2xl"})},a.name))})}),t.jsx("button",{type:"button",className:"w-full py-2 text-sm font-semibold text-foreground hover:bg-accent rounded transition-colors border-t pt-3",onClick:()=>g(null),children:o})]})})]})]})},ma=M.forwardRef(({className:a,...s},r)=>t.jsx($.Root,{className:e.cn("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",a),...s,ref:r,children:t.jsx($.Thumb,{className:e.cn("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));function ha({title:s,sections:r,initialData:n,onSubmit:o,onCancel:i,open:l,submitButtonText:c,isLoading:d=!1,usersData:u}){const[m,h]=a.useState(r?.[0]?.id||""),p=a.useRef(null),[f,x]=a.useState(null),g=a.useCallback(e=>{p.current=e,x(e)},[]),b=a.useMemo(()=>r&&Array.isArray(r)?r.flatMap(e=>e.fields.flatMap(e=>"group"===e.type?e.fields||[]:e)):[],[r]),{formData:v,errors:j,updateField:y,handleSubmit:N}=sa(b,n,void 0,l),w=a.useMemo(()=>r&&Array.isArray(r)?r.map(e=>({...e,disabled:e.condition?!e.condition(v):e.disabled||!1})):[],[r,v]),C=a.useMemo(()=>{const e=w.find(e=>e.id===m);if(e&&!e.disabled)return m;const t=w.find(e=>!e.disabled);return t?.id||m},[w,m]);a.useEffect(()=>{C!==m&&h(C)},[C,m]);const k=w.find(e=>e.id===C),S=a=>{const s=(a.computedValue,v[a.name]),r=void 0!==s?s:"",n=j[a.name];switch(a.type){case"group":const s="horizontal"===a.layout,o=s?`flex gap-3 w-full ${a.className||""}`:"space-y-3",i=s?e.cn("space-y-2 w-full",a.wrapperClassName):e.cn("space-y-2",a.className,a.wrapperClassName);return t.jsxs("div",{className:i,children:[a.label,t.jsx("div",{className:o,children:a.fields?.map(e=>S(e))})]},a.name);case"user-select":return t.jsxs("div",{className:`space-y-2 ${a.className||""}`,children:[t.jsxs(J,{htmlFor:a.name,children:[a.label,a.required&&t.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),t.jsx(e.QualiexUserField,{value:r||"",onChange:e=>y(a.name,e),placeholder:a.placeholder,disabled:a.disabled,className:n?"border-destructive":""}),n&&t.jsx("p",{className:"text-sm text-destructive",children:n})]},a.name);case"textarea":return t.jsxs("div",{className:`space-y-2 ${a.className||""}`,children:[t.jsxs(J,{htmlFor:a.name,children:[a.label,a.required&&t.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),t.jsx(qe,{id:a.name,value:r||"",onChange:e=>{y(a.name,e.target.value)},placeholder:a.placeholder,disabled:a.disabled,rows:a.rows,maxLength:a.maxLength,className:`${n?"border-destructive":""} ${a.disabled?"bg-muted cursor-not-allowed":""}`}),n&&t.jsx("p",{className:"text-sm text-destructive",children:n})]},a.name);case"select":return t.jsxs("div",{className:`space-y-2 ${a.className||""}`,children:[t.jsxs(J,{htmlFor:a.name,children:[a.label,a.required&&t.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),t.jsxs(ze,{value:String(r),onValueChange:e=>{y(a.name,e),a.onValueChange&&a.onValueChange(e)},disabled:a.disabled,children:[t.jsx(_e,{className:`${n?"border-destructive":""} ${a.disabled?"bg-muted cursor-not-allowed":""}`,children:t.jsx(Oe,{placeholder:a.placeholder})}),t.jsx(Le,{children:a.options?.map(e=>t.jsx(Fe,{value:e.value,children:e.label},e.value))})]}),n&&t.jsx("p",{className:"text-sm text-destructive",children:n})]},a.name);case"multiselect":return t.jsxs("div",{className:`space-y-2 ${a.className||""}`,children:[t.jsxs(J,{htmlFor:a.name,children:[a.label,a.required&&t.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),t.jsx(pt,{options:a.options||[],value:Array.isArray(r)?r:[],onChange:e=>y(a.name,e),placeholder:a.placeholder,disabled:a.disabled,error:n,popoverContainer:f,getOptionValue:e=>String(e.value),getOptionLabel:e=>e.label}),n&&t.jsx("p",{className:"text-sm text-destructive",children:n})]},a.name);case"date":return t.jsxs("div",{className:`space-y-2 ${a.className||""}`,children:[t.jsxs(J,{htmlFor:a.name,children:[a.label,a.required&&t.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),t.jsx(Q,{id:a.name,type:"date",value:String(r),onChange:e=>y(a.name,e.target.value),placeholder:a.placeholder,disabled:a.disabled,className:e.cn("w-full",n?"border-destructive":"",a.disabled?"bg-muted cursor-not-allowed":"")}),n&&t.jsx("p",{className:"text-sm text-destructive",children:n})]},a.name);case"color":return t.jsxs("div",{children:[t.jsxs(J,{htmlFor:a.name,children:[a.label,a.required&&t.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),t.jsx(Q,{id:a.name,type:"color",value:r||a.defaultValue||"#000000",onChange:e=>y(a.name,e.target.value),className:"h-10"}),n&&t.jsx("p",{className:"text-sm text-destructive mt-1",children:n})]},a.name);case"color-picker":return t.jsxs("div",{children:[t.jsxs(J,{htmlFor:a.name,children:[a.label,a.required&&t.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),t.jsx(oa,{value:r||a.defaultValue||"#3b82f6",onChange:e=>y(a.name,e)}),n&&t.jsx("p",{className:"text-sm text-destructive mt-1",children:n})]},a.name);case"icon-picker":return t.jsxs("div",{children:[t.jsxs(J,{htmlFor:a.name,children:[a.label,a.required&&t.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),t.jsx(ua,{value:r||a.defaultValue||null,onChange:e=>y(a.name,e)}),n&&t.jsx("p",{className:"text-sm text-destructive mt-1",children:n})]},a.name);case"custom":if(!a.component)return null;const l=a.component,c="function"==typeof a.componentProps?a.componentProps(v):a.componentProps||{};return t.jsxs("div",{className:`space-y-2 ${a.className||""}`,children:[a.label&&t.jsxs(J,{htmlFor:a.name,children:[a.label,a.required&&t.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),t.jsx(l,{value:r,onChange:e=>{y(a.name,e),a.onValueChange&&a.onValueChange(e)},disabled:a.disabled,error:n,popoverContainer:f,...c}),n&&t.jsx("p",{className:"text-sm text-destructive",children:n})]},a.name);case"number":return t.jsxs("div",{className:`space-y-2 ${a.className||""}`,children:[t.jsxs(J,{htmlFor:a.name,children:[a.label,a.required&&t.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),t.jsx(Q,{id:a.name,type:"number",value:null!=r?String(r):"",onChange:e=>{const t=e.target.value,s=""===t?null:Number(t);y(a.name,s)},placeholder:a.placeholder,disabled:a.disabled,className:`${n?"border-destructive":""} ${a.disabled?"bg-muted cursor-not-allowed":""}`,min:a.min,step:a.step||"1"}),n&&t.jsx("p",{className:"text-sm text-destructive",children:n})]},a.name);case"checkbox":return t.jsxs("div",{className:`flex items-center space-x-2 ${a.className||""}`,children:[t.jsx(Be,{id:a.name,checked:!!r,onCheckedChange:e=>y(a.name,e),disabled:a.disabled}),t.jsxs(J,{htmlFor:a.name,className:"cursor-pointer",children:[a.label,a.required&&t.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),n&&t.jsx("p",{className:"text-sm text-destructive",children:n})]},a.name);case"switch":return t.jsxs("div",{className:`flex items-center justify-between space-x-2 ${a.className||""}`,children:[t.jsxs(J,{htmlFor:a.name,children:[a.label,a.required&&t.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),t.jsx(ma,{id:a.name,checked:!!r,onCheckedChange:e=>y(a.name,e),disabled:a.disabled}),n&&t.jsx("p",{className:"text-sm text-destructive mt-2",children:n})]},a.name);default:return t.jsxs("div",{className:`space-y-2 ${a.className||""}`,children:[t.jsxs(J,{htmlFor:a.name,children:[a.label,a.required&&t.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),t.jsx(Q,{id:a.name,type:"text",value:r||"",onChange:e=>{y(a.name,e.target.value)},placeholder:a.placeholder,disabled:a.disabled,className:`${n?"border-destructive":""} ${a.disabled?"bg-muted cursor-not-allowed":""}`,readOnly:a.disabled}),n&&t.jsx("p",{className:"text-sm text-destructive",children:n})]},a.name)}},D=a.useCallback(()=>{if(!k)return null;if(k.disabled)return t.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[t.jsx("div",{className:"rounded-full bg-muted p-3 mb-4",children:t.jsx("svg",{className:"h-6 w-6 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15v2m0 0v2m0-2h2m-2 0H9m3-8V9m0-4V3"})})}),t.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Seção não disponível"}),t.jsx("p",{className:"text-muted-foreground max-w-sm",children:"Complete as informações obrigatórias na seção i18n.t('ap_general_info') para acessar esta seção."})]});if(k.component){const e=k.component;return t.jsx(e,{formData:v,updateField:y,errors:j,users:u,disabled:k.disabled})}return t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:k.fields.map(S)})},[k,v,y,j,u,S]),A=t.jsxs("div",{className:"flex flex-col max-h-[80vh]",children:[w.length>1&&t.jsx("div",{className:"flex-shrink-0 p-4 border-b",children:t.jsx("div",{className:"flex space-x-2",children:w.map(e=>t.jsx(H,{variant:C===e.id?"action-primary":"action-secondary",size:"sm",onClick:()=>(e=>{const t=w.find(t=>t.id===e);t&&!t.disabled&&h(e)})(e.id),disabled:e.disabled,className:e.disabled?"opacity-50 cursor-not-allowed":"",children:e.title},e.id))})}),t.jsx("div",{className:"flex-1 overflow-y-auto px-2 md:px-4 py-4",children:d?t.jsx("div",{className:"flex items-center justify-center py-12",children:t.jsx("div",{className:"text-muted-foreground",children:"Carregando..."})}):t.jsxs("form",{onSubmit:N(o),className:"space-y-3 md:space-y-4",children:[D(),t.jsxs("div",{className:"flex justify-end space-x-2 pt-4",children:[t.jsx(H,{type:"button",variant:"outline",onClick:i,children:"Cancelar"}),t.jsx(H,{type:"submit",disabled:d,children:c||"Salvar"})]})]})})]});return t.jsx(pe,{open:l,onOpenChange:e=>{!1===e&&!0===l&&i()},children:t.jsxs(ve,{ref:g,variant:"form",className:"max-w-4xl max-h-[90vh] overflow-visible",children:[t.jsxs(je,{showSeparator:!0,children:[t.jsx(Ne,{children:s}),t.jsx(we,{className:"sr-only",children:"Formulário para preenchimento de dados"})]}),A]})})}function pa({currentPage:e,totalPages:a,totalItems:s,itemsPerPage:r,onPageChange:o,onItemsPerPageChange:i,variant:l="full"}){const{t:c}=b.useTranslation();if(0===s)return null;const d=(e-1)*r+1,u=Math.min(e*r,s);return t.jsxs("div",{className:"flex items-center justify-between px-4 py-3 gap-4",children:[t.jsx("div",{className:"flex items-center gap-2",children:"full"===l&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-sm text-muted-foreground whitespace-nowrap",children:c("rows_per_page","Linhas por página")}),t.jsxs(ze,{value:String(r),onValueChange:e=>i(Number(e)),children:[t.jsx(_e,{className:"h-8 w-[70px]",children:t.jsx(Oe,{})}),t.jsxs(Le,{children:[t.jsx(Fe,{value:"10",children:"10"}),t.jsx(Fe,{value:"25",children:"25"}),t.jsx(Fe,{value:"50",children:"50"}),t.jsx(Fe,{value:"100",children:"100"})]})]})]})}),t.jsxs("div",{className:"text-sm text-muted-foreground text-center hidden sm:block",children:[d,"-",u," ",c("of","de")," ",s," ",c("items","itens")]}),t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx(H,{variant:"outline",size:"sm",onClick:()=>o(1),disabled:1===e,className:"h-8 w-8 p-0",children:t.jsx(n.ChevronsLeft,{size:16})}),t.jsx(H,{variant:"outline",size:"sm",onClick:()=>o(e-1),disabled:1===e,className:"h-8 w-8 p-0",children:t.jsx(n.ChevronLeft,{size:16})}),t.jsxs("div",{className:"flex items-center gap-1 px-2",children:[t.jsx("span",{className:"text-sm font-medium",children:e}),t.jsx("span",{className:"text-sm text-muted-foreground",children:c("of","de")}),t.jsx("span",{className:"text-sm font-medium",children:a})]}),t.jsx(H,{variant:"outline",size:"sm",onClick:()=>o(e+1),disabled:e===a,className:"h-8 w-8 p-0",children:t.jsx(n.ChevronRight,{size:16})}),t.jsx(H,{variant:"outline",size:"sm",onClick:()=>o(a),disabled:e===a,className:"h-8 w-8 p-0",children:t.jsx(n.ChevronsRight,{size:16})})]})]})}function fa({manager:e}){return t.jsx(pa,{currentPage:e.pagination.currentPage,totalPages:e.pagination.totalPages,totalItems:e.pagination.totalItems,itemsPerPage:e.pagination.itemsPerPage,onPageChange:e.handlePageChange,onItemsPerPageChange:e.handleItemsPerPageChange,variant:"full"})}ma.displayName=$.Root.displayName;const xa={xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"},ga={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},ba={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"};function va({children:a,direction:s="column",gap:r="md",align:n="stretch",justify:o="start",wrap:i=!1,className:l}){return t.jsx("div",{className:e.cn("flex","column"===s?"flex-col":"flex-row",xa[r],ga[n],ba[o],i&&"flex-wrap",l),children:a})}function ja({manager:a,filters:s,inline:r=!1}){const{t:o}=b.useTranslation(),{isSearchVisible:i}=e.useAuth(),l=a.searchTerm,c=t.jsxs(t.Fragment,{children:[s.some(e=>"search"===e.type)&&!i&&t.jsxs("div",{className:"relative flex-1",children:[t.jsx(n.Search,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground h-4 w-4"}),t.jsx(Q,{placeholder:"Pesquisar",value:a.searchTerm,onChange:e=>a.handleSearch(e.target.value),className:"pl-10"})]}),s.filter(e=>"select"===e.type&&e.options).map((e,a)=>t.jsxs(ze,{value:e.value||"",onValueChange:t=>e.onChange?.(t),children:[t.jsx(_e,{className:"w-[180px]",children:t.jsx(Oe,{placeholder:e.placeholder})}),t.jsx(Le,{children:e.options.map(e=>t.jsx(Fe,{value:e.value,children:e.label},e.value))})]},`select-${a}`)),s.filter(e=>"custom"===e.type&&e.component).map((e,a)=>{const s=e.component;return t.jsx("div",{className:r?"":"w-full sm:w-auto",children:t.jsx(s,{...e.props})},`custom-${a}`)}),l&&t.jsxs(H,{variant:"outline",onClick:a.clearFilters,className:"whitespace-nowrap",children:[t.jsx(n.X,{className:"h-4 w-4 mr-2"}),"Limpar"]})]});return r?t.jsx("div",{className:"flex items-center gap-2",children:c}):t.jsx(va,{direction:"column",gap:"md",className:"mb-6",children:t.jsx(va,{direction:"row",gap:"md",wrap:!0,className:"flex-col sm:flex-row",children:c})})}function ya({manager:s,config:r,formSections:n,onSave:o,onToggleStatus:i,defaultSort:l,readOnly:c=!1}){s&&s.queryKey;const{setSearchVisible:d}=e.useAuth(),[u,m]=a.useState(!1),[h,p]=a.useState(null),[f,x]=a.useState({isOpen:!1,entityId:null,entityName:""}),[g,b]=a.useState({isOpen:!1,count:0});a.useEffect(()=>(d(!0),()=>{d(!1)}),[d]),a.useEffect(()=>{l&&s?.setSort&&!s.hasStoredSort&&s.setSort(l.column,l.direction)},[]);const v=!c&&n.length>0?e=>{r.onEdit?r.onEdit(e):(p(e),m(!0))}:void 0,j=c||!1===r.showDeleteAction||"function"!=typeof s?.deleteEntity?void 0:e=>{x({isOpen:!0,entityId:e.id,entityName:e.title||e.name||"Item"})},y=()=>{x({isOpen:!1,entityId:null,entityName:""})},N=void 0!==r.hideNewButton?!r.hideNewButton:r.showNewButton??!0,w=(r.customActions||[]).map(e=>({label:e.label,icon:e.icon,action:e.action,variant:"destructive"===e.variant?"default":e.variant,disabled:e.disabled,disabledReason:e.disabledReason}));return t.jsxs("div",{className:"flex-1 flex flex-col h-full",children:[(r.showActionBar??!0)&&t.jsx(Xt,{onNew:()=>{r.onNew?r.onNew():(p(null),m(!0))},newButtonLabel:r.newButtonLabel,showNewButton:N,showSearch:r.showSearch,searchValue:s.searchTerm,onSearchChange:s.handleSearch,searchPlaceholder:r.searchPlaceholder,showBulkActions:r.enableBulkActions,selectedCount:s.selectedIds.length,bulkActions:r.bulkActions,onBulkDelete:()=>{b({isOpen:!0,count:s.selectedIds.length})},onClearSelection:s.clearSelection,customActions:w,filters:r.filters&&r.filters.length>0?t.jsx(ja,{manager:s,filters:r.filters,inline:!0}):void 0}),t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:r.customListView?t.jsx("div",{className:"flex-1 overflow-auto p-4",children:r.customListView(s.entities,s)}):t.jsx(aa,{manager:s,columns:r.columns,onEdit:v,onDelete:j,onToggleStatus:i,enableBulkActions:r.enableBulkActions,customRowActions:r.customRowActions,enableColumnManager:!0,columnManagerStorageKey:`crud-${r.entityName.toLowerCase().replace(/\s+/g,"-")}-columns`,resizeStorageKey:`crud-${r.entityName.toLowerCase().replace(/\s+/g,"-")}-resize`,defaultHiddenColumns:r.defaultHiddenColumns,readOnly:c})}),t.jsx("div",{className:"flex-shrink-0 border-t bg-background",children:t.jsx(fa,{manager:s})}),!r.useCustomRouting&&!r.onNew&&n.length>0&&t.jsx(ha,{open:u,title:h?`Editar ${r.entityName}`:`Novo ${r.entityName}`,sections:n,initialData:h||void 0,onSubmit:e=>{o(e),m(!1),p(null)},onCancel:()=>{m(!1),p(null)},isLoading:s.isLoading,submitButtonText:h?"Atualizar":"Criar"}),t.jsx(pe,{open:f.isOpen,onOpenChange:y,children:t.jsxs(ve,{size:"sm",variant:"destructive",children:[t.jsx(je,{showSeparator:!0,children:t.jsx(Ne,{children:"Você tem certeza absoluta?"})}),t.jsx("div",{className:"flex-1 min-h-0 overflow-auto py-4 px-1 -mx-1",children:t.jsxs("p",{className:"text-sm text-muted-foreground",children:["Você está prestes a excluir ",t.jsx("strong",{children:f.entityName}),". Esta ação não pode ser desfeita."]})}),t.jsxs(ye,{children:[t.jsx(H,{variant:"outline",onClick:y,children:"Cancelar"}),t.jsx(H,{variant:"destructive",onClick:()=>{f.entityId&&"function"==typeof s?.deleteEntity&&(s.deleteEntity(f.entityId),x({isOpen:!1,entityId:null,entityName:""}))},disabled:s.isDeleting,children:s.isDeleting?"Excluindo...":"Sim, excluir"})]})]})}),t.jsx(pe,{open:g.isOpen,onOpenChange:()=>b({isOpen:!1,count:0}),children:t.jsxs(ve,{size:"sm",variant:"destructive",children:[t.jsx(je,{showSeparator:!0,children:t.jsx(Ne,{children:"Você tem certeza absoluta?"})}),t.jsx("div",{className:"flex-1 min-h-0 overflow-auto py-4 px-1 -mx-1",children:t.jsxs("p",{className:"text-sm text-muted-foreground",children:["Você está prestes a excluir ",t.jsx("strong",{children:g.count})," ",1===g.count?r.entityName:r.entityNamePlural,". Esta ação não pode ser desfeita."]})}),t.jsxs(ye,{children:[t.jsx(H,{variant:"outline",onClick:()=>b({isOpen:!1,count:0}),children:"Cancelar"}),t.jsx(H,{variant:"destructive",onClick:()=>{s.bulkDelete?.(s.selectedIds),b({isOpen:!1,count:0})},disabled:s.isBulkDeleting,children:s.isBulkDeleting?"Excluindo...":"Sim, excluir"})]})]})})]})}function Na(e,t){const a=e.toLowerCase();return a.includes("email")?{type:"email",required:!0}:a.includes("phone")||a.includes("tel")?{type:"tel"}:a.includes("description")||a.includes("content")||a.includes("notes")?{type:"textarea"}:a.includes("status")||a.includes("type")||a.includes("category")?{type:"select",options:[]}:"boolean"==typeof t?{type:"boolean"}:"number"==typeof t?{type:"number"}:t instanceof Date?{type:"date"}:{type:"text"}}function wa(e){return e.replace(/([A-Z])/g," $1").replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()).trim()}function Ca(e,t){if(!e)return"";const a=e.find(e=>e.path===t);if(a)return a.label;const s=e.find(e=>t.startsWith(e.path+"/"));return s?.label||""}function ka(e,t){const[s,r]=a.useState(e),n=a.useRef(void 0),o=a.useCallback(()=>{n.current&&(clearTimeout(n.current),n.current=void 0)},[]);return a.useEffect(()=>(o(),n.current=setTimeout(()=>{r(e)},t),o),[e,t,o]),[s,o]}const Sa=R.Root,Da=R.Portal,Aa=M.forwardRef(({className:a,...s},r)=>t.jsx(R.Overlay,{className:e.cn("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",a),...s,ref:r}));Aa.displayName=R.Overlay.displayName;const Ma=r.cva("fixed z-50 flex flex-col bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b max-h-[70vh] data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t max-h-[70vh] data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Pa=M.forwardRef(({side:a="right",className:s,children:r,...o},i)=>t.jsxs(Da,{children:[t.jsx(Aa,{}),t.jsxs(R.Content,{ref:i,className:e.cn(Ma({side:a}),s),...o,children:[r,t.jsxs(R.Close,{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-secondary",children:[t.jsx(n.X,{className:"h-4 w-4"}),t.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Pa.displayName=R.Content.displayName;const Ra=M.forwardRef(({className:a,...s},r)=>t.jsx(R.Title,{ref:r,className:e.cn("text-lg font-semibold text-foreground",a),...s}));Ra.displayName=R.Title.displayName;M.forwardRef(({className:a,...s},r)=>t.jsx(R.Description,{ref:r,className:e.cn("text-sm text-muted-foreground",a),...s})).displayName=R.Description.displayName;const Ea="sidebar:state",za=M.createContext(null);function Oa(){const e=M.useContext(za);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const _a=M.forwardRef(({defaultOpen:a=!0,open:s,onOpenChange:r,className:n,style:o,children:i,...l},c)=>{const d=Ct(),[u,m]=M.useState(!1),[h,p]=M.useState(()=>{if("undefined"!=typeof window){const e=localStorage.getItem(Ea);return null!==e?"true"===e:a}return a}),f=s??h,x=M.useCallback(e=>{const t="function"==typeof e?e(f):e;r?r(t):p(t),"undefined"!=typeof window&&localStorage.setItem(Ea,String(t))},[r,f]),g=M.useCallback(()=>d?m(e=>!e):x(e=>!e),[d,x,m]);M.useEffect(()=>{const e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),g())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[g]);const b=f?"expanded":"collapsed",v=M.useMemo(()=>({state:b,open:f,setOpen:x,isMobile:d,openMobile:u,setOpenMobile:m,toggleSidebar:g}),[b,f,x,d,u,m,g]);return t.jsx(za.Provider,{value:v,children:t.jsx(Je,{delayDuration:0,children:t.jsx("div",{className:e.cn("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar sidebar-container",n),style:{"--sidebar-width":"16rem","--sidebar-width-icon":"4rem",...o},ref:c,...l,children:i})})})});_a.displayName="SidebarProvider";const Ia=M.forwardRef(({side:a="left",variant:s="sidebar",collapsible:r="offcanvas",className:n,children:o,...i},l)=>{const{isMobile:c,state:d,openMobile:u,setOpenMobile:m}=Oa();return"none"===r?t.jsx("div",{className:e.cn("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",n),ref:l,...i,children:o}):c?t.jsx(Sa,{open:u,onOpenChange:m,...i,children:t.jsxs(Pa,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden sidebar-mobile",style:{"--sidebar-width":"18rem"},side:a,children:[t.jsx(Ra,{className:"sr-only",children:"Menu de Navegação"}),t.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):t.jsxs("div",{ref:l,className:"group peer hidden md:block text-sidebar-foreground","data-state":d,"data-collapsible":"collapsed"===d?r:"","data-variant":s,"data-side":a,children:[t.jsx("div",{className:e.cn("duration-200 relative h-[calc(100svh-var(--header-height,0px))] w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===s||"inset"===s?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),t.jsx("div",{className:e.cn("duration-200 fixed z-30 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex overflow-visible","top-[var(--header-height,0px)] h-[calc(100svh-var(--header-height,0px))]","left"===a?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===s||"inset"===s?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",n),...i,children:t.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col overflow-visible group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow bg-white",children:o})})]})});Ia.displayName="Sidebar";M.forwardRef(({className:a,onClick:s,...r},o)=>{const{toggleSidebar:i}=Oa();return t.jsxs(H,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:e.cn("h-7 w-7",a),onClick:e=>{s?.(e),i()},...r,children:[t.jsx(n.PanelLeft,{}),t.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}).displayName="SidebarTrigger";M.forwardRef(({className:a,...s},r)=>{const{toggleSidebar:n}=Oa();return t.jsx("button",{ref:r,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:e.cn("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",a),...s})}).displayName="SidebarRail";M.forwardRef(({className:a,...s},r)=>t.jsx("main",{ref:r,className:e.cn("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",a),...s})).displayName="SidebarInset";M.forwardRef(({className:a,...s},r)=>t.jsx(Q,{ref:r,"data-sidebar":"input",className:e.cn("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",a),...s})).displayName="SidebarInput";const Ta=M.forwardRef(({className:a,...s},r)=>t.jsx("div",{ref:r,"data-sidebar":"header",className:e.cn("flex flex-col gap-2 p-2",a),...s}));Ta.displayName="SidebarHeader";M.forwardRef(({className:a,...s},r)=>t.jsx("div",{ref:r,"data-sidebar":"footer",className:e.cn("flex flex-col gap-2 p-2",a),...s})).displayName="SidebarFooter";const La=M.forwardRef(({className:a,...s},r)=>t.jsx(se,{ref:r,"data-sidebar":"separator",className:e.cn("mx-2 w-auto bg-sidebar-border",a),...s}));La.displayName="SidebarSeparator";const Fa=M.forwardRef(({className:a,...s},r)=>t.jsx("div",{ref:r,"data-sidebar":"content",className:e.cn("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",a),...s}));Fa.displayName="SidebarContent";const Ba=M.forwardRef(({className:a,...s},r)=>t.jsx("div",{ref:r,"data-sidebar":"group",className:e.cn("relative flex w-full min-w-0 flex-col p-2",a),...s}));Ba.displayName="SidebarGroup";M.forwardRef(({className:a,asChild:r=!1,...n},o)=>{const i=r?s.Slot:"div";return t.jsx(i,{ref:o,"data-sidebar":"group-label",className:e.cn("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",a),...n})}).displayName="SidebarGroupLabel";M.forwardRef(({className:a,asChild:r=!1,...n},o)=>{const i=r?s.Slot:"button";return t.jsx(i,{ref:o,"data-sidebar":"group-action",className:e.cn("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",a),...n})}).displayName="SidebarGroupAction";const qa=M.forwardRef(({className:a,...s},r)=>t.jsx("div",{ref:r,"data-sidebar":"group-content",className:e.cn("w-full text-sm",a),...s}));qa.displayName="SidebarGroupContent";const Va=M.forwardRef(({className:a,...s},r)=>t.jsx("ul",{ref:r,"data-sidebar":"menu",className:e.cn("flex w-full min-w-0 flex-col gap-1",a),...s}));Va.displayName="SidebarMenu";const $a=M.forwardRef(({className:a,...s},r)=>t.jsx("li",{ref:r,"data-sidebar":"menu-item",className:e.cn("group/menu-item relative",a),...s}));$a.displayName="SidebarMenuItem";const Ga=r.cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-primary/10 data-[active=true]:font-medium data-[active=true]:text-primary data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:gap-0 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 group-data-[collapsible=icon]:[&>*]:!mr-0 group-data-[collapsible=icon]:[&>*]:!ml-0 group-data-[collapsible=icon]:bg-[hsl(var(--button-secondary-bg))] group-data-[collapsible=icon]:border group-data-[collapsible=icon]:border-[color:hsl(var(--button-secondary-border))] group-data-[collapsible=icon]:shadow-[shadow:var(--shadow-btn-secondary)] group-data-[collapsible=icon]:hover:border-[color:hsl(var(--button-secondary-hover-border))] group-data-[collapsible=icon]:hover:shadow-[shadow:var(--shadow-btn-secondary-hover)] group-data-[collapsible=icon]:active:shadow-[shadow:var(--shadow-btn-secondary-active)]",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-10 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Ua=M.forwardRef(({asChild:a=!1,isActive:r=!1,variant:n="default",size:o="default",tooltip:i,className:l,...c},d)=>{const u=a?s.Slot:"button",{isMobile:m,state:h}=Oa(),p=t.jsx(u,{ref:d,"data-sidebar":"menu-button","data-size":o,"data-active":r,className:e.cn(Ga({variant:n,size:o}),l),...c});return i?("string"==typeof i&&(i={children:i}),t.jsxs(Ze,{children:[t.jsx(Ye,{asChild:!0,children:p}),t.jsx(et,{side:"right",align:"center",hidden:"collapsed"!==h||m,...i})]})):p});Ua.displayName="SidebarMenuButton";M.forwardRef(({className:a,asChild:r=!1,showOnHover:n=!1,...o},i)=>{const l=r?s.Slot:"button";return t.jsx(l,{ref:i,"data-sidebar":"menu-action",className:e.cn("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",a),...o})}).displayName="SidebarMenuAction";M.forwardRef(({className:a,...s},r)=>t.jsx("div",{ref:r,"data-sidebar":"menu-badge",className:e.cn("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a),...s})).displayName="SidebarMenuBadge";M.forwardRef(({className:a,showIcon:s=!1,...r},n)=>{const o=M.useMemo(()=>`${Math.floor(40*Math.random())+50}%`,[]);return t.jsxs("div",{ref:n,"data-sidebar":"menu-skeleton",className:e.cn("rounded-md h-8 flex gap-2 px-2 items-center",a),...r,children:[s&&t.jsx("div",{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),t.jsx("div",{className:"h-4 flex-1 max-w-[--skeleton-width] skeleton-width","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})}).displayName="SidebarMenuSkeleton";const Wa=M.forwardRef(({className:a,...s},r)=>t.jsx("ul",{ref:r,"data-sidebar":"menu-sub",className:e.cn("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",a),...s}));Wa.displayName="SidebarMenuSub";M.forwardRef(({...e},a)=>t.jsx("li",{ref:a,...e})).displayName="SidebarMenuSubItem";function Ha(t){const a=e.TokenManager.getAccessToken(),s={"Content-Type":"application/json",...a?{Authorization:`Bearer ${a}`}:{},"un-alias":t};if(a)try{const e=JSON.parse(atob(a.split(".")[1]));e.sub&&(s["x-waf-rate"]=btoa(e.sub))}catch{}return s}async function Ka(t,a,s){let r=await fetch(t,a);if(401===r.status){if(await e.QualiexErrorInterceptor.handleApiError({status:401})){const e={...a,headers:Ha(s)};r=await fetch(t,e)}}return r}M.forwardRef(({asChild:a=!1,size:r="md",isActive:n,className:o,...i},l)=>{const c=a?s.Slot:"a";return t.jsx(c,{ref:l,"data-sidebar":"menu-sub-button","data-size":r,"data-active":n,className:e.cn("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground","sm"===r&&"text-xs","md"===r&&"text-sm","group-data-[collapsible=icon]:hidden",o),...i})}).displayName="SidebarMenuSubButton";const Qa=a.forwardRef(({updates:s,badgeCount:r,onOpen:o,onViewAll:i,viewAllPath:l},d)=>{const u=void 0===s,m=e.useAuth(),h=m?.alias??null,p=function(t){const[s,r]=a.useState([]),[n,o]=a.useState(0),[i,l]=a.useState(!1);a.useEffect(()=>{if(!t)return;let a=!1;const s=`${e.getQualiexApiUrl().replace(/\/?$/,"/")}api/common/v1/updates/listUpdatesNotification`;return async function(){l(!0);try{const e=Ha(t),n=await Ka(s,{method:"GET",headers:e},t);if(!n.ok)return;const i=await n.json();!a&&i.data?.[0]&&(r(i.data[0].updates??[]),o(i.data[0].valueBadge??0))}catch(e){}finally{a||l(!1)}}(),()=>{a=!0}},[t]);const c=a.useCallback(async()=>{if(!t||n<=0||0===s.length)return;const a=s[0].id,r=`${e.getQualiexApiUrl().replace(/\/?$/,"/")}api/common/v1/Updates/userVisualized/3/undefined`;o(0);try{const e=Ha(t),s=JSON.stringify({id:a,idUpdateType:3});await Ka(r,{method:"POST",headers:e,body:s},t)}catch(i){}},[t,n,s]);return{updates:s,badgeCount:n,loading:i,markAsVisualized:c}}(u?h:null),f=j.useNavigate(),x=u?p.updates??[]:s,g=u?p.badgeCount??0:r??0,b=o??(u?p.markAsVisualized:void 0),v=i??(u&&h?()=>{if(l)return void f(l);const t=e.getCommonV5AppUrl().replace(/\/?$/,"/");window.open(`${t}${h}/up/view`,"_blank","noopener,noreferrer")}:void 0);return t.jsxs(at,{children:[t.jsx(st,{asChild:!0,children:t.jsxs(H,{ref:d,variant:"ghost",size:"sm",className:"relative h-9 w-9 p-0 text-primary-foreground hover:text-primary-foreground hover:bg-primary-foreground/10",onClick:b,title:c.t("updates"),children:[t.jsx(n.Coffee,{className:"h-7 w-7"}),g>0&&t.jsx("span",{className:"absolute -top-1 -right-1 flex h-5 min-w-5 items-center justify-center rounded-full bg-destructive px-1 text-[10px] font-bold text-destructive-foreground",children:g>99?"99+":g})]})}),t.jsxs(rt,{align:"end",className:"w-80 p-0",children:[t.jsx("div",{className:"border-b border-border px-4 py-3",children:t.jsx("h4",{className:"text-sm font-semibold text-foreground",children:"Atualizações"})}),t.jsx("div",{className:"max-h-72 overflow-y-auto",children:x.length>0?t.jsx("ul",{className:"divide-y divide-border",children:x.map(e=>t.jsxs("li",{className:"px-4 py-3 hover:bg-muted/50 transition-colors cursor-pointer",onClick:v,children:[t.jsx("p",{className:"text-sm font-medium text-foreground",children:e.title}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 line-clamp-2",children:e.text})]},e.id))}):t.jsxs("div",{className:"flex flex-col items-center justify-center py-8 px-4 text-center",children:[t.jsx(n.Coffee,{className:"h-8 w-8 text-muted-foreground mb-2"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Nenhum café quentinho, ou melhor, atualização quentinha no momento!"})]})}),t.jsx("div",{className:"border-t border-border px-4 py-2",children:t.jsxs(H,{variant:"ghost",size:"sm",className:"w-full justify-between text-primary hover:text-primary",onClick:v,children:["Ver todas as atualizações",t.jsx(n.ArrowRight,{className:"h-[18px] w-[18px]"})]})})]})]})});Qa.displayName="UpdatesNotification";const Xa=G.Root,Ja=M.forwardRef(({className:a,...s},r)=>t.jsx(G.List,{ref:r,className:e.cn("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",a),...s}));Ja.displayName=G.List.displayName;const Za=M.forwardRef(({className:a,...s},r)=>t.jsx(G.Trigger,{ref:r,className:e.cn("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",a),...s}));Za.displayName=G.Trigger.displayName;const Ya=M.forwardRef(({className:a,...s},r)=>t.jsx(G.Content,{ref:r,className:e.cn("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...s}));function es({className:e}){return t.jsxs("svg",{className:e,width:"32",height:"34",viewBox:"0 0 32 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M0.5 11.7455C0.5 10.2633 2.25695 9.52546 3.36816 10.4399L22.4346 26.1528C23.3588 26.9137 23.229 28.3353 22.1953 28.9301L16.3418 32.2963C15.7961 32.6097 15.1199 32.6098 14.5742 32.2963L1.36133 24.7006C0.832671 24.3966 0.500052 23.8398 0.5 23.2289V11.7455Z",stroke:"currentColor"}),t.jsx("path",{d:"M14.612 0.735352C15.1576 0.421927 15.833 0.421964 16.3786 0.735352L25.3776 5.90723V5.9082C26.5447 6.5808 26.5183 8.24018 25.3298 8.875L25.3307 8.87598L13.9333 14.9697L13.9323 14.9688C13.3016 15.3066 12.5233 15.2301 11.9733 14.7773L4.90302 8.9541C3.97881 8.19317 4.1086 6.77256 5.14227 6.17773L14.612 0.735352Z",stroke:"currentColor"}),t.jsx("path",{d:"M28.1066 9.7966C29.2466 9.18579 30.6895 9.9732 30.6896 11.2937V23.0691C30.6895 23.6825 30.3539 24.2382 29.8264 24.5417L29.8254 24.5427L27.3449 25.9607C26.7486 26.3015 26.0057 26.264 25.4494 25.8747L25.341 25.7917L16.6076 18.5974C15.6649 17.821 15.8224 16.3676 16.8937 15.7937V15.7927L28.1066 9.79758V9.7966Z",stroke:"currentColor"})]})}function ts({className:e}){return t.jsxs("svg",{className:e,width:"18",height:"33",viewBox:"0 0 18 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M0.524143 8.74979C1.44754 8.74979 2.36325 8.74979 3.30973 8.74979C3.30973 8.90069 3.30973 9.05162 3.30973 9.19497C3.30973 9.79101 3.64061 10.1154 4.24082 10.1154C6.8879 10.1154 9.54268 10.1154 12.1898 10.1154C12.7592 10.1154 13.1286 9.77589 13.1132 9.27793C13.0978 8.8856 12.8054 8.5612 12.3745 8.51594C11.2279 8.38767 10.0736 8.26696 8.91938 8.1387C7.72666 8.01043 6.52625 7.88216 5.33352 7.74635C4.71792 7.67845 4.10232 7.61811 3.48672 7.53511C2.00928 7.32386 0.754978 6.06386 0.547213 4.61526C0.331752 3.10631 1.00122 1.73316 2.34015 0.963593C2.89419 0.646712 3.5021 0.503353 4.14848 0.503353C6.84943 0.503353 9.55038 0.495808 12.2513 0.503353C14.0904 0.510898 15.5448 1.71808 15.8603 3.49865C15.8988 3.7099 15.8988 3.92116 15.9065 4.13996C15.9141 4.2984 15.9065 4.44928 15.9065 4.61526C14.9677 4.61526 14.0443 4.61526 13.0978 4.61526C13.0978 4.44928 13.0978 4.28329 13.0978 4.1173C13.0901 3.58162 12.7592 3.25719 12.2206 3.24965C9.53499 3.24965 6.84943 3.24965 4.17157 3.24965C3.69448 3.24965 3.36359 3.52881 3.30203 3.97396C3.24816 4.3512 3.51749 4.73597 3.90224 4.8265C4.10231 4.87177 4.31008 4.88687 4.51784 4.9095C5.8183 5.05285 7.12645 5.19622 8.42691 5.33957C9.71198 5.48292 10.997 5.63382 12.2898 5.75453C13.1824 5.83753 13.9981 6.08649 14.6906 6.68253C16.1604 7.92742 16.3066 10.2588 14.9984 11.6696C14.2443 12.4845 13.3132 12.8844 12.1975 12.8844C9.5273 12.8844 6.84944 12.8844 4.17927 12.8844C2.55562 12.8844 1.21669 11.9563 0.678043 10.4549C0.539533 9.98715 0.470277 9.38356 0.524143 8.74979Z",stroke:"currentColor"}),t.jsx("path",{d:"M8.21913 24.2393C8.21913 24.2317 8.21913 24.2317 8.21913 24.2393ZM8.21913 24.2393C8.98863 24.2393 9.75812 24.2619 10.5199 24.2317C11.7511 24.1789 12.9285 23.1378 13.067 21.9381C13.1439 21.3119 13.1285 20.6706 13.1131 20.0368C13.067 18.6335 11.8743 17.4339 10.443 17.3962C8.96554 17.3584 7.4881 17.366 6.00296 17.3962C4.70251 17.4263 3.54055 18.4373 3.37896 19.6973C3.29431 20.3462 3.3097 21.0101 3.34048 21.6665C3.40204 23.017 4.58708 24.1789 5.96449 24.2317C6.7186 24.2619 7.46502 24.2393 8.21913 24.2393ZM13.1439 15.427C13.7441 14.8385 14.3367 14.2575 14.9138 13.6917C15.5756 14.333 16.2296 14.9818 16.9222 15.6608C16.8914 15.6759 16.8298 15.7061 16.7837 15.7438C16.2604 16.2493 15.7448 16.7624 15.2216 17.2679C15.1446 17.3434 15.1369 17.4037 15.1908 17.4943C15.7064 18.3845 15.9526 19.3427 15.9295 20.3613C15.9141 20.9799 15.9526 21.6062 15.8603 22.2097C15.5371 24.2846 14.352 25.7332 12.3975 26.5782C11.7126 26.8724 10.9816 26.9931 10.2352 26.9931C8.89629 26.9931 7.56504 26.9931 6.22611 26.9931C3.49438 26.9931 1.20897 25.1899 0.631845 22.5719C0.56259 22.2475 0.524115 21.9155 0.51642 21.5835C0.508725 20.9422 0.470242 20.2933 0.547192 19.6596C0.816518 17.3584 2.08619 15.7967 4.27927 14.9516C4.84101 14.7328 5.42584 14.6347 6.02605 14.6347C7.4958 14.6347 8.96554 14.6272 10.4276 14.6423C11.3279 14.6498 12.1667 14.9064 12.9516 15.3289C13.0131 15.3591 13.067 15.3892 13.1439 15.427Z",stroke:"currentColor"}),t.jsx("path",{d:"M0.508791 28.3813C1.43989 28.3813 2.3633 28.3813 3.2944 28.3813C3.31748 28.4945 3.32516 28.6001 3.35594 28.7058C3.50984 29.2943 4.01772 29.7017 4.63332 29.7319C4.76414 29.7394 4.89496 29.7394 5.02578 29.7394C7.22655 29.7394 9.4273 29.7394 11.6281 29.7394C12.3206 29.7394 12.8439 29.3923 13.0363 28.7963C13.0747 28.668 13.0978 28.5323 13.1286 28.3889C14.0443 28.3889 14.9677 28.3889 15.9142 28.3889C15.9219 28.7435 15.868 29.0906 15.7757 29.4301C15.2986 31.1955 13.6519 32.4782 11.7897 32.4857C9.39653 32.5008 7.01108 32.5083 4.61794 32.4857C2.44025 32.4706 0.624216 30.7353 0.508791 28.6077C0.501096 28.5322 0.508791 28.4643 0.508791 28.3813Z",stroke:"currentColor"})]})}function as({educaUrl:a="https://educacao.sabergestao.com.br/{alias}/fe",saberGestaoUrl:s="https://sabergestao.com.br/",wikiUrl:r,alias:o,sourceModule:i}){const{t:l}=b.useTranslation(),c=e.buildModuleUrl(a||r||"https://educacao.sabergestao.com.br/{alias}/fe",o),d=t=>{e.trackFooterClick({resource:t,sourceModule:i,alias:o})};return t.jsxs("div",{className:"flex-shrink-0 pt-4",children:[t.jsx(se,{className:"mb-4"}),t.jsxs("div",{className:"grid grid-cols-1 min-[480px]:grid-cols-2 lg:grid-cols-3 gap-2 sm:gap-3",children:[t.jsxs("div",{className:"bg-primary text-primary-foreground rounded-lg p-4 relative overflow-hidden",children:[t.jsxs("div",{className:"relative z-10",children:[t.jsx("h4",{className:"font-semibold text-sm text-white",children:l("learn_qualiex")}),t.jsxs("a",{href:c,target:"_blank",rel:"noopener noreferrer",onClick:()=>d("educa"),className:"inline-flex items-center gap-1 text-sm text-white underline underline-offset-2 hover:opacity-80 mt-2",children:["Conheça o ForLogic Educa",t.jsx(n.ExternalLink,{className:"h-3.5 w-3.5"})]})]}),t.jsx(es,{className:"absolute right-2 bottom-2 w-16 h-16 text-[#043481] pointer-events-none"})]}),t.jsxs("div",{className:"bg-muted rounded-lg p-4 relative overflow-hidden",children:[t.jsxs("div",{className:"relative z-10",children:[t.jsx("h4",{className:"font-semibold text-sm text-foreground",children:l("know_saber_gestao")}),t.jsxs("a",{href:s,target:"_blank",rel:"noopener noreferrer",onClick:()=>d("saber-gestao"),className:"inline-flex items-center gap-1 text-sm text-primary underline underline-offset-2 hover:opacity-80 mt-2",children:["Saiba mais",t.jsx(n.ExternalLink,{className:"h-3.5 w-3.5"})]})]}),t.jsx(ts,{className:"absolute right-2 bottom-2 w-12 h-16 text-[#E0E0E0] pointer-events-none"})]}),t.jsxs("div",{className:"bg-muted rounded-lg p-4 relative overflow-hidden",children:[t.jsxs("div",{className:"relative z-10",children:[t.jsx("h4",{className:"font-semibold text-sm text-foreground",children:"Dúvidas sobre os módulos?"}),t.jsxs("a",{href:r||"https://wiki.qualiex.com/",target:"_blank",rel:"noopener noreferrer",onClick:()=>d("wiki"),className:"inline-flex items-center gap-1 text-sm text-primary underline underline-offset-2 hover:opacity-80 mt-2",children:["Consulte nossa Wiki",t.jsx(n.ExternalLink,{className:"h-3.5 w-3.5"})]})]}),t.jsx(n.NotebookText,{className:"absolute right-2 top-2 bottom-2 h-[calc(100%-1rem)] w-auto text-[#E0E0E0] pointer-events-none",strokeWidth:1})]})]})]})}Ya.displayName=G.Content.displayName;const ss=[{id:"qualiex",label:"Qualiex",modules:[{name:"Análises",description:"Análise de dados",color:"bg-[#002338]",softwareAlias:"analysis",url:"https://apps4.qualiex.com/analysis/{alias}"},{name:"Atas e Decisões",description:"Gestão de atas e decisões",color:"bg-[#7DB3B2]",softwareAlias:"decisions",url:"https://apps4.qualiex.com/decisions/{alias}"},{name:"Auditorias",description:"Gestão de auditorias",color:"bg-[#912F71]",softwareAlias:"audit",url:"https://apps4.qualiex.com/audit/{alias}"},{name:"Configurações",description:"Configurações gerais",color:"bg-[#5C6BC0]",softwareAlias:"common",url:"https://apps4.qualiex.com/common/{alias}"},{name:"Documentos",description:"Gestão de documentos",color:"bg-[#1D43A6]",softwareAlias:"docs",url:"https://apps4.qualiex.com/docs/{alias}"},{name:"Fluxos",description:"Gestão de fluxos",color:"bg-[#8BFFE0]",softwareAlias:"flow",url:"https://apps4.qualiex.com/flow/{alias}"},{name:"Fornecedores",description:"Gestão de fornecedores",color:"bg-[#5C5094]",softwareAlias:"suppliers",url:"https://apps4.qualiex.com/suppliers/{alias}"},{name:"Mapeamentos",description:"Mapeamento de dados pessoais",color:"bg-[#62416B]",softwareAlias:"mapping",url:"https://apps4.qualiex.com/mapping/{alias}"},{name:"Metrologia",description:"Gestão de metrologia",color:"bg-[#8CC74F]",softwareAlias:"metrology",url:"https://apps4.qualiex.com/metrology/{alias}"},{name:"Ocorrências",description:"Gestão de ocorrências",color:"bg-[#EE7121]",softwareAlias:"occurrences",url:"https://apps4.qualiex.com/occurrences/{alias}"},{name:"OKR",description:"Objetivos e resultados-chave",color:"bg-[#4A90D9]",softwareAlias:"okr",url:"https://okr.qualiex.com/{alias}"},{name:"Planos",description:"Planos de ação",color:"bg-[#FBC02D]",softwareAlias:"plans",url:"https://apps4.qualiex.com/plans/{alias}"},{name:"Portal do Fornecedor",description:"Portal do Fornecedor",color:"bg-[#26A69A]",softwareAlias:"suppliers-portal",url:"https://portaldofornecedor.qualiex.com/{alias}"},{name:"Riscos",description:"Gestão de riscos",color:"bg-[#ED7096]",softwareAlias:"risks",url:"https://apps4.qualiex.com/risks/{alias}"},{name:"Competências",description:"Gestão de competências",color:"bg-[#9B4F96]",softwareAlias:"competencies",url:"https://competencias.sabergestao.com.br/{alias}"},{name:"Desempenho",description:"Gestão de desempenho",color:"bg-[#4A90D9]",softwareAlias:"performance",url:"https://desempenho.sabergestao.com.br/{alias}"},{name:"Educação",description:"Plataforma de ensino",color:"bg-[#00BCD4]",softwareAlias:"education",url:"https://educacao.sabergestao.com.br/{alias}"},{name:"PDI",description:"Plano de desenvolvimento individual",color:"bg-[#7CB342]",softwareAlias:"pdi",url:"https://pdi.sabergestao.com.br/{alias}"},{name:"Pulso",description:"Pesquisas de clima",color:"bg-[#F5A623]",softwareAlias:"pulse",url:"https://nr1pulso.sabergestao.com.br/{alias}"},{name:"Treinamentos",description:"Gestão de treinamentos",color:"bg-[#26A69A]",softwareAlias:"staff",url:"https://treinamentos.sabergestao.com.br/{alias}"}]},{id:"classico",label:"Clássicos",modules:[{name:"Action",description:"Planos de ação",color:"bg-[#fbe356]",url:"https://apps1.qualiex.com/action?unitalias={alias}"},{name:"Audit",description:"Gestão de auditorias",color:"bg-[#ca76b5]",url:"https://apps1.qualiex.com/audit?unitalias={alias}"},{name:"Configurações v3",description:"Configurações",color:"bg-[#5C6BC0]",url:"https://apps3.qualiex.com/{alias}/common"},{name:"Dashboards v1",description:"Dashboards",color:"bg-[#EC407A]",url:"https://apps1.qualiex.com/shared/dashboard?unitalias={alias}"},{name:"Docs v1",description:"Gestão de Documentos",color:"bg-[#58b4db]",url:"https://apps1.qualiex.com/docs?unitalias={alias}"},{name:"Indicators",description:"Gestão de Indicadores",color:"bg-[#f91b1d]",url:"https://apps1.qualiex.com/indicators?unitalias={alias}"},{name:"Meeting",description:"Gestão de reuniões",color:"bg-[#96c2c1]",url:"https://apps1.qualiex.com/meeting?unitalias={alias}"},{name:"Metrology v3",description:"Gestão de Metrologia",color:"bg-[#afd884]",url:"https://apps3.qualiex.com/{alias}/metrology/"},{name:"Planner",description:"Planejamento estratégico",color:"bg-[#4dc6f4]",url:"https://apps3.qualiex.com/{alias}/planner/m"},{name:"Relatórios v1",description:"Relatórios",color:"bg-[#FFA726]",url:"https://apps1.qualiex.com/common/reports?unitalias={alias}"},{name:"Risks",description:"Gestão de riscos",color:"bg-[#ef7b9e]",url:"https://apps1.qualiex.com/risks?unitalias={alias}"},{name:"Staff",description:"Avaliação de competências",color:"bg-[#0978d6]",url:"https://apps1.qualiex.com/staff?unitalias={alias}"},{name:"Supply",description:"Avaliação de fornecedores",color:"bg-[#8276b7]",url:"https://apps1.qualiex.com/supply?unitalias={alias}"},{name:"Tracker1",description:"Gestão de ocorrências",color:"bg-[#fe883b]",url:"https://apps1.qualiex.com/tracker1?unitalias={alias}"},{name:"Tracker2",description:"Gestão de ocorrências",color:"bg-[#fe883b]",url:"https://apps1.qualiex.com/tracker2?unitalias={alias}"}]},{id:"backoffice",label:"Backoffice",modules:[{name:"Backoffice",description:"Operações administrativas",color:"bg-[#5C6BC0]",url:"https://admin.qualiex.com/{alias}",alwaysContracted:!0}]}];function rs({module:a,onClick:s}){return t.jsxs("button",{type:"button",onClick:s,className:"flex items-start gap-3 p-2 rounded-lg transition-colors text-left w-full group hover:bg-muted/50",children:[t.jsx("div",{className:e.cn("w-4 h-4 rounded-sm shrink-0 mt-0.5",a.color)}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"font-medium transition-colors text-foreground group-hover:text-primary",children:a.name}),a.description&&t.jsx("div",{className:"text-sm text-muted-foreground truncate",children:a.description})]})]})}function ns(e,t){if(0===e.length)return e;const a=Math.ceil(e.length/t),s=[];for(let r=0;r<a;r++)for(let n=0;n<t;n++){const t=n*a+r;t<e.length&&s.push(e[t])}return s}function os({modules:e,onModuleClick:s,contractedModules:r,onModuleInterest:n}){const o=function(){const[e,t]=a.useState(4);return a.useEffect(()=>{const e=()=>{window.matchMedia("(min-width: 1280px)").matches?t(4):window.matchMedia("(min-width: 768px)").matches?t(3):window.matchMedia("(min-width: 640px)").matches?t(2):t(1)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}(),i=[...e].sort((e,t)=>e.name.localeCompare(t.name)),l=void 0!==r,c=e=>!0===e.alwaysContracted||!l||r.includes(e.name),d=i.filter(c),u=l?i.filter(e=>!c(e)):[],m=ns(d,o),h=ns(u,o),p=(e,t)=>{t?s?.(e):n?.(e)};return t.jsxs("div",{className:"space-y-6",children:[m.length>0&&t.jsx("section",{children:t.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-4 gap-1",children:m.map(e=>t.jsx(rs,{module:e,onClick:()=>p(e,!0)},e.name))})}),h.length>0&&t.jsxs("section",{className:"bg-neutral-100 dark:bg-neutral-800 rounded-lg p-4 mt-4",children:[t.jsx("h3",{className:"text-sm font-medium text-muted-foreground mb-3",children:"Conheça também"}),t.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-4 gap-1",children:h.map(e=>t.jsx(rs,{module:e,onClick:()=>p(e,!1)},e.name))})]})]})}function is({onModuleClick:s,contractedModules:r,onModuleInterest:n,nonContractedUrl:o="https://qualiex.com/",educaUrl:i="https://educacao.sabergestao.com.br/{alias}/fe",saberGestaoUrl:l="https://sabergestao.com.br/",wikiUrl:c,alias:d,sourceModule:u,showAdminGroup:m=!1}){const[h,p]=a.useState("qualiex"),f=m?ss.find(e=>"backoffice"===e.id)?.modules??[]:[],x=ss.filter(e=>"backoffice"!==e.id).map(e=>"qualiex"===e.id?{...e,modules:[...e.modules,...f]}:e),g=t=>{e.trackInterestClick({module:t,sourceModule:u,alias:d}),window.open(o,"_blank","noopener,noreferrer"),n?.(t)};return t.jsxs("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:[t.jsxs(Xa,{value:h,onValueChange:p,className:"flex-1 flex flex-col min-h-0",children:[t.jsx(Ja,{className:"w-fit shrink-0",children:x.map(e=>t.jsxs(Za,{value:e.id,children:[e.label,t.jsxs("span",{className:"ml-1.5 text-xs text-muted-foreground",children:["(",e.modules.length,")"]})]},e.id))}),x.map(a=>t.jsx(Ya,{value:a.id,className:"flex-1 mt-4 overflow-auto pr-2",children:t.jsx(os,{modules:a.modules,onModuleClick:t=>((t,a)=>{const n=!!t.alwaysContracted||"qualiex"!==a||!r||r.includes(t.name);e.trackModuleClick({module:t,isContracted:n,sourceModule:u,alias:d}),s?.(t)})(t,a.id),contractedModules:"qualiex"===a.id?r:void 0,onModuleInterest:g})},a.id))]}),t.jsx(as,{educaUrl:i,saberGestaoUrl:l,wikiUrl:c,alias:d,sourceModule:u})]})}const ls=6e5;function cs(t){const{moduleAlias:s,associationsBaseUrl:r}=e.useModuleConfig(),{alias:n,user:o,isAuthenticated:i}=e.useAuth(),l=t??s,c=o?.id??null,d=i&&!!n&&!!c,{data:u=[],isLoading:m}=v.useQuery({queryKey:["qualiex-associations",c,n,r??null],queryFn:()=>e.qualiexApi.fetchUserAssociations(c,n,r?{baseUrl:r}:void 0),enabled:d,staleTime:ls,gcTime:12e5}),h=a.useMemo(()=>n&&0!==u.length?u.find(e=>e.companyAlias===n)??null:null,[u,n]),p="common"===s,{data:f=!1,isLoading:x}=e.useHasCommonV5Phase3(p),g=a.useCallback(t=>{if(!h)return!1;return(Array.isArray(t)?t:[t]).every(t=>{const a=e.SOFTWARES_MAP[t];return void 0!==a&&h.softwares.includes(a)})},[h]),b=a.useCallback(e=>{if(!h)return!1;return(Array.isArray(e)?e:[e]).every(e=>!("common"!==e||!p||!f)||g(e))},[h,p,f,g]),j=a.useMemo(()=>!l||b(l),[l,b]),y=a.useMemo(()=>h?{id:h.roleId,name:h.roleName}:null,[h]);return{hasAccess:j,isLoading:d&&(m||p&&x),role:y,association:h,hasAccessTo:b,hasNativeAccessTo:g}}function ds(t){const{association:s}=cs();return a.useMemo(()=>{if(t)return t;if(!s?.softwares)return;const a=s.softwares,r=ss.find(e=>"qualiex"===e.id);return r?r.modules.filter(t=>{if(!t.softwareAlias)return!1;const s=e.SOFTWARES_MAP[t.softwareAlias];return void 0!==s&&a.includes(s)}).map(e=>e.name):void 0},[t,s])}function us({open:a,onOpenChange:s,onModuleClick:r,contractedModules:n,onModuleInterest:o,educaUrl:i,saberGestaoUrl:l,wikiUrl:c,sourceModule:d,showAdminGroup:u}){const{alias:m,user:h}=e.useAuth(),p=ds(n),f=u??!!h?.isSysAdmin;return t.jsx(pe,{open:a,onOpenChange:s,children:t.jsxs(ve,{size:"lg",className:"overflow-hidden flex flex-col",children:[t.jsx(je,{className:"sr-only",children:t.jsx(Ne,{children:"Módulos"})}),t.jsx(is,{onModuleClick:t=>{r?r(t):t.url&&e.handleExternalLink(e.buildModuleUrl(t.url,m||void 0))},contractedModules:p,onModuleInterest:o,educaUrl:i,saberGestaoUrl:l,wikiUrl:c,alias:m||void 0,sourceModule:d,showAdminGroup:f})]})})}function ms({appName:s}){const[r,o]=a.useState(!1),{association:i}=cs(),l=e.resolveBrandLogo({isQualitfy:i?.isQualitfy,isMetroex:i?.isMetroex});return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("button",{className:"flex-shrink-0 cursor-pointer",onClick:()=>o(!0),children:t.jsx("img",{src:l,alt:"Logo",className:"h-8 max-w-[140px] object-contain"})}),s&&t.jsxs(t.Fragment,{children:[t.jsx("span",{"aria-hidden":!0,className:"h-7 w-px shrink-0 bg-primary-foreground/30"}),t.jsx("button",{className:"min-w-0 text-sm font-medium text-left cursor-pointer text-primary-foreground/90 hover:text-primary-foreground/70 transition-colors leading-tight py-1",onClick:()=>o(!0),children:t.jsx("span",{className:"line-clamp-2",children:(e=>{const a=e.split(" ");if(a.length<=1)return t.jsxs("span",{className:"whitespace-nowrap",children:[e," ",t.jsx(n.ChevronDown,{size:12,className:"inline-block align-middle ml-1 opacity-60 text-primary-foreground"})]});const s=a[a.length-1],r=a.slice(0,-1).join(" ");return t.jsxs(t.Fragment,{children:[r," ",t.jsxs("span",{className:"whitespace-nowrap",children:[s," ",t.jsx(n.ChevronDown,{size:12,className:"inline-block align-middle ml-1 opacity-60 text-primary-foreground"})]})]})})(s)})})]})]}),t.jsx(us,{open:r,onOpenChange:o})]})}const hs=a.memo(function({actions:s}){const r=j.useLocation(),o=j.useNavigate(),{navigation:i,appName:l}=e.useNavigation(),d=Ca(i,r.pathname),{metadata:u,headerActions:m}=e.usePageMetadataContext(),{setOpenMobile:h}=Oa(),{companies:p,alias:f,isSearchVisible:x,clearSearch:g,refreshData:b,switchUnit:v}=e.useAuth(),y=f?p?.find(e=>e.alias===f)||p?.[0]||null:p?.[0]||null,[N,w]=j.useSearchParams(),C=a.useCallback(e=>{const{pathname:t,search:a,hash:s}=r;if(f){const r=t.split("/"),n=r.indexOf(f);if(n>=0)return r[n]=e.alias,void o(r.join("/")+a+s)}v(e)},[f,r,o,v]),[k,S]=a.useState(()=>N.get("search")||""),[D,A]=ka(k,e.SEARCH_CONFIG.debounceDelay);a.useEffect(()=>{if(!x)return;const e=new URLSearchParams(N);D?(e.set("search",D),e.set("page","1")):e.delete("search"),w(e)},[D,w,x]);const M=i?.find(e=>e.path===r.pathname)||i?.find(e=>r.pathname.startsWith(e.path+"/")),P=u.title||d,R=u.subtitle||M?.complementaryText||"";return t.jsx("header",{className:"bg-primary px-2 md:px-4 py-2 shadow-[inset_0_1px_0_0_hsl(0_0%_100%/0.20),inset_0_-1px_0_0_hsl(var(--button-primary-border))]",children:t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(H,{variant:"ghost",size:"sm",className:"md:hidden h-8 w-8 p-0 flex-shrink-0 text-primary-foreground hover:text-primary-foreground hover:bg-primary-foreground/10",onClick:()=>h(!0),children:t.jsx(n.Menu,{size:20})}),t.jsx("div",{className:"hidden md:flex items-center flex-shrink-0",children:t.jsx(ms,{appName:l})}),t.jsxs("div",{className:"hidden md:flex items-stretch h-8 flex-shrink-0","aria-hidden":"true",children:[t.jsx("div",{className:"w-px bg-[hsl(var(--button-primary-border))]"}),t.jsx("div",{className:"w-px bg-white/20"})]}),t.jsxs("div",{className:"flex-shrink-0",children:[u.breadcrumbs&&u.breadcrumbs.length>0&&t.jsx("nav",{className:"flex items-center gap-1 text-xs text-primary-foreground/70 mb-0.5",children:u.breadcrumbs.map((e,a)=>t.jsxs("span",{className:"flex items-center gap-1",children:[a>0&&t.jsx(n.ChevronRight,{className:"h-3 w-3"}),e.href?t.jsx(j.Link,{to:e.href,className:"hover:text-primary-foreground transition-colors",children:e.label}):t.jsx("span",{children:e.label})]},a))}),t.jsx("div",{className:"flex items-center gap-2 mb-1",children:t.jsx("h1",{className:"text-lg font-semibold text-primary-foreground truncate",children:P})}),R&&t.jsx("div",{className:"text-sm text-primary-foreground/70 truncate",children:R})]}),x&&t.jsxs("div",{className:"flex items-center gap-2 flex-1 max-w-2xl",children:[t.jsxs("div",{className:"relative flex-1",children:[t.jsx(n.Search,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground h-4 w-4"}),t.jsx(Q,{placeholder:"Pesquisar",value:k,onChange:e=>{return t=e.target.value,void S(t);var t},className:"w-full pl-10 pr-8"}),k&&t.jsx(H,{variant:"ghost",size:"sm",className:"absolute right-1 top-1/2 transform -translate-y-1/2 h-6 w-6 p-0 hover:bg-primary-foreground/10 text-primary-foreground/60",onClick:()=>{A(),S("");const e=new URLSearchParams(N);e.delete("search"),e.delete("page"),w(e)},title:c.t("clear_search"),children:t.jsx(n.X,{size:14})})]}),t.jsx(H,{variant:"outline",size:"sm",onClick:b,className:"flex-shrink-0 h-10 w-10 p-0 bg-primary-foreground/20 border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground/30 hover:text-primary-foreground",title:c.t("refresh_data"),children:t.jsx(n.RefreshCw,{size:14})})]}),t.jsxs("div",{className:"flex-shrink-0 ml-auto flex items-center gap-3",children:[(m||s)&&t.jsx("div",{className:"flex items-center gap-2",children:m||s}),(void 0).VITE_WIKI_URL&&t.jsx(H,{variant:"ghost",size:"sm",className:"h-8 px-3 text-primary-foreground hover:text-primary-foreground hover:bg-primary-foreground/10",onClick:t=>e.handleExternalLink((void 0).VITE_WIKI_URL,t),title:c.t("open_wiki"),children:"Wiki"}),t.jsx(Qa,{}),t.jsx("div",{className:"text-sm",children:t.jsx(e,{variant:"dropdown",selectedUnit:y,onUnitChange:C})})]})]})})}),ps=U.Root,fs=U.CollapsibleTrigger,xs=U.CollapsibleContent,gs=({key:e,enabled:t,checkFn:a,staleTime:s=3e5,gcTime:r=6e5})=>v.useQuery({queryKey:["permission",e],queryFn:a,enabled:t,staleTime:s,gcTime:r,retry:0,refetchOnWindowFocus:!1});function bs({label:a,onClick:s,icon:r,actions:o=[],variant:i="default",size:l="default",disabled:c=!1,loading:d=!1,menuAlign:u="end",className:m}){const{t:h}=b.useTranslation(),p=c||d;if(!(o.length>0))return t.jsxs(H,{variant:i,size:l,disabled:p,onClick:s,className:m,children:[d?t.jsx(n.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}):r?t.jsx(r,{className:"mr-2 h-4 w-4"}):null,a]});return t.jsxs("div",{className:e.cn("inline-flex rounded-md shadow-sm",m),children:[t.jsxs(H,{variant:i,size:l,disabled:p,onClick:s,className:"rounded-r-none border-r-0 focus:z-10",children:[d?t.jsx(n.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}):r?t.jsx(r,{className:"mr-2 h-4 w-4"}):null,a]}),t.jsxs(We,{children:[t.jsx(He,{asChild:!0,children:t.jsx(H,{variant:i,size:l,disabled:p,className:e.cn("rounded-l-none focus:z-10",{sm:"w-7 min-w-7 px-0",default:"w-8 min-w-8 px-0",lg:"w-9 min-w-9 px-0"}[l]),"aria-label":h("more_options"),children:t.jsx(n.ChevronDown,{className:{sm:"h-3 w-3",default:"h-4 w-4",lg:"h-4 w-4"}[l]})})}),t.jsx(Ke,{align:u,className:"min-w-[160px]",children:o.map(a=>{const s=a.icon;return t.jsxs(Qe,{onClick:a.onClick,disabled:a.disabled,className:e.cn("destructive"===a.variant&&"text-destructive focus:text-destructive"),children:[s&&t.jsx(s,{className:"mr-2 h-4 w-4"}),a.label]},a.id)})})]})]})}function vs({config:a,isCollapsed:s=!1,isDisabled:r=!1,className:o}){const{t:i}=b.useTranslation(),{actions:l,triggerLabel:c="Criar",triggerIcon:d=n.Plus,variant:u="button"}=a;if(!l||0===l.length)return null;if("split-button"===u){const a=l[0],n=a.icon||d,i=l.slice(1).map(e=>({id:e.id,label:e.label,icon:e.icon,onClick:e.onClick,disabled:e.disabled}));if(s){const s=t.jsx(H,{onClick:a.onClick,disabled:r||a.disabled,className:e.cn("justify-center px-2 w-full",o),variant:"outline",size:"default",children:t.jsx(n,{className:"h-4 w-4 shrink-0"})});return t.jsxs(Ze,{children:[t.jsx(Ye,{asChild:!0,children:s}),t.jsx(et,{side:"right",children:t.jsx("p",{children:a.label})})]})}return t.jsx(bs,{label:a.label,onClick:a.onClick,icon:n,actions:i,variant:"outline",disabled:r||a.disabled,className:e.cn("w-full",o),menuAlign:"start"})}const m=(e,a,r=!1)=>t.jsxs(t.Fragment,{children:[e,!s&&a&&t.jsx("span",{className:"truncate",children:a}),!s&&r&&t.jsx(n.ChevronDown,{className:"ml-auto h-4 w-4 shrink-0"})]});if(!(l.length>1)){const a=l[0],n=a.icon||d,i=r||a.disabled,c=t.jsx(H,{onClick:a.onClick,disabled:i,className:e.cn("w-full gap-2 justify-start",s&&"justify-center px-2",o),variant:"outline",size:"default",children:m(t.jsx(n,{className:"h-4 w-4 shrink-0"}),a.label)});return s?t.jsxs(Ze,{children:[t.jsx(Ye,{asChild:!0,children:c}),t.jsx(et,{side:"right",children:t.jsx("p",{children:a.label})})]}):c}const h=t.jsx(H,{disabled:r,className:e.cn("w-full gap-2 justify-start",s&&"justify-center px-2",o),variant:"outline",size:"default",children:m(t.jsx(d,{className:"h-4 w-4 shrink-0"}),c,!0)});return t.jsxs(We,{children:[t.jsx(He,{asChild:!0,children:s?t.jsxs(Ze,{children:[t.jsx(Ye,{asChild:!0,children:h}),t.jsx(et,{side:"right",children:t.jsx("p",{children:c})})]}):h}),t.jsx(Ke,{align:"start",side:s?"right":"bottom",className:"w-56 bg-popover",children:l.map(e=>{const a=e.icon;return t.jsxs(Qe,{onClick:e.onClick,disabled:e.disabled,className:"cursor-pointer",children:[a&&t.jsx(a,{className:"mr-2 h-4 w-4"}),e.label]},e.id)})})]})}const js="forlogic-sidebar-pinned",ys=()=>{try{const e=localStorage.getItem(js);return!!e&&JSON.parse(e)}catch{return!1}};function Ns({direction:e="right",minWidth:t=224,maxWidth:s=384,defaultWidth:r=290,storageKey:n="sidebar-width",onResize:o,isOpen:i=!0}={}){const[l,c]=a.useState(()=>{if("undefined"==typeof window)return r;const e=localStorage.getItem(n);return e?parseInt(e):r}),[d,u]=a.useState(!1),m=a.useRef(null);a.useEffect(()=>{const e=document.querySelector(".sidebar-container");e&&e instanceof HTMLElement&&(i?e.style.setProperty("--sidebar-width",`${l}px`):e.style.setProperty("--sidebar-width","290px"))},[l,i]);const h=a.useCallback(e=>{e.preventDefault(),u(!0)},[]);return a.useEffect(()=>{if(!d)return;const a=a=>{let r;r="left"===e?window.innerWidth-a.clientX:a.clientX,r=Math.max(t,Math.min(s,r)),c(r),o?.(r)},r=()=>{u(!1),c(e=>(localStorage.setItem(n,e.toString()),e))};return document.addEventListener("mousemove",a),document.addEventListener("mouseup",r),()=>{document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",r)}},[d,e,t,s,l,n,o]),a.useEffect(()=>(d?(document.body.style.cursor="ew-resize",document.body.style.userSelect="none"):(document.body.style.cursor="",document.body.style.userSelect=""),()=>{document.body.style.cursor="",document.body.style.userSelect=""}),[d,e]),{width:l,isDragging:d,dragRef:m,handleMouseDown:h}}function ws({config:s,customContent:r,resizable:o=!1,minWidth:i=224,maxWidth:l=384}={}){const{t:c}=b.useTranslation(),{open:d,setOpen:u,setOpenMobile:m}=Oa(),h=j.useLocation(),{alias:p,user:f}=e.useAuth(),{appName:x}=e.useNavigation(),{hasOpenModal:g}=e.useModalState(),[v,y]=a.useState(ys),N=Ct(),w=!!N||d,C=a.useCallback(()=>{N&&m(!1)},[N,m]),k=o?Ns({minWidth:i,maxWidth:l,storageKey:"app-sidebar-width",isOpen:d}):null;a.useEffect(()=>{u(!!v)},[v,u]);const S=e=>h.pathname===e||h.pathname.startsWith(e+"/");return t.jsxs(Ia,{collapsible:"icon",className:e.cn("app-sidebar bg-background border-r border-border flex flex-col",w?"px-3":"px-1.5"),style:k&&w?{width:`${k.width}px`,transition:"none"}:{transition:"width 300ms ease-in-out"},children:[s?.moduleActions&&s.moduleActions.actions.length>0&&t.jsx("div",{className:"py-3",children:t.jsx(Je,{children:t.jsx(vs,{config:s.moduleActions,isCollapsed:!w,isDisabled:g})})}),t.jsx(Fa,{className:e.cn(s?.moduleActions&&s.moduleActions.actions.length>0?"pt-0":"pt-3"),children:r||t.jsx(Ba,{className:"p-0",children:t.jsx(qa,{children:t.jsx(Va,{className:"gap-1",children:t.jsx(Je,{children:s?.navigation?.map((a,s)=>{if("separator"===a.type)return t.jsx(La,{className:"my-2"},`sep-${s}`);const r=({item:a,index:s})=>{const o=`${a.path}-${s}-${p??"noalias"}-${f?.id??"nouser"}`,{data:i=!0,isLoading:l}=gs({key:o,enabled:Boolean(a.permissionCheck&&p&&f?.id),checkFn:a.permissionCheck||(()=>Promise.resolve(!0))}),d=a.permissionCheck&&!i,u=l?n.Loader2:d?n.Lock:a.icon;d?c("restricted_access"):a.complementaryText;return a.children&&a.children.length>0?w?t.jsx(ps,{defaultOpen:!0,className:"group/collapsible",children:t.jsxs($a,{children:[t.jsx(fs,{asChild:!0,children:t.jsx(Ua,{size:"default",children:t.jsxs("div",{className:"flex w-full items-center gap-3",children:[t.jsx("span",{className:"flex items-center justify-center h-8 w-8",children:t.jsx(u,{className:"h-4 w-4"})}),t.jsx("span",{className:"font-medium sidebar-text",children:a.label}),t.jsx(n.ChevronRight,{className:"ml-auto h-4 w-4 transition-transform group-data-[state=open]/collapsible:rotate-90"})]})})}),t.jsx(xs,{children:t.jsx(Wa,{children:a.children.map((e,a)=>t.jsx(r,{item:e,index:a},e.path))})})]})},a.path):t.jsx($a,{children:t.jsxs(Ze,{children:[t.jsx(Ye,{asChild:!0,children:t.jsx("div",{className:e.cn("flex items-center justify-center h-8 w-8 mx-auto rounded-md transition-colors cursor-pointer","hover:bg-accent hover:text-accent-foreground"),children:t.jsx(u,{className:"h-4 w-4"})})}),t.jsx(et,{side:"right",children:t.jsx("p",{children:a.label})})]})},a.path):t.jsx($a,{children:d||l?t.jsxs(Ze,{children:[t.jsx(Ye,{asChild:!0,children:w?t.jsx(Ua,{size:"default",className:"opacity-50 cursor-not-allowed",onClick:e=>e.preventDefault(),children:t.jsxs("div",{className:"flex w-full items-center gap-3",children:[t.jsx("span",{className:"flex items-center justify-center h-8 w-8",children:t.jsx(u,{className:"h-4 w-4 "+(l?"animate-spin":"")})}),t.jsx("span",{className:"font-medium sidebar-text",children:a.label})]})}):t.jsx("div",{className:"flex items-center justify-center h-8 w-8 mx-auto rounded-md opacity-50 cursor-not-allowed",onClick:e=>e.preventDefault(),children:t.jsx(u,{className:"h-4 w-4 "+(l?"animate-spin":"")})})}),t.jsx(et,{side:"right",children:t.jsx("p",{children:l?"Verificando acesso...":c("restricted_access")})})]}):w?t.jsx(Ua,{asChild:!0,isActive:S(a.path),size:"default",children:t.jsxs(j.Link,{to:a.path,className:"flex w-full items-center gap-3",onClick:C,children:[t.jsx("span",{className:"flex items-center justify-center h-8 w-8",children:t.jsx(u,{className:"h-4 w-4"})}),t.jsx("span",{className:"font-medium sidebar-text",children:a.label})]})}):t.jsxs(Ze,{children:[t.jsx(Ye,{asChild:!0,children:t.jsx(j.Link,{to:a.path,onClick:C,className:e.cn("flex items-center justify-center h-8 w-8 mx-auto rounded-md transition-colors",S(a.path)?"bg-primary/10 text-primary":"hover:bg-accent hover:text-accent-foreground"),children:t.jsx(u,{className:"h-4 w-4"})})}),t.jsx(et,{side:"right",children:t.jsx("p",{children:a.label})})]})},a.path)};return t.jsx(r,{item:a,index:s},a.path)})})})})})}),!N&&t.jsx("div",{className:e.cn("mt-auto pb-4 pt-2 flex items-center gap-2",w?"justify-end px-1":"justify-center flex-col"),children:t.jsxs(Ze,{children:[t.jsx(Ye,{asChild:!0,children:t.jsx("button",{id:"btn-expand-side-nav",onClick:()=>{const e=!v;y(e),(e=>{try{localStorage.setItem(js,JSON.stringify(e))}catch{}})(e)},className:"h-6 w-6 flex items-center justify-center rounded-full bg-primary hover:bg-[hsl(var(--button-primary-hover))] shadow-md transition-colors",children:d?t.jsx(n.ChevronLeft,{className:"h-3.5 w-3.5 text-primary-foreground"}):t.jsx(n.ChevronRight,{className:"h-3.5 w-3.5 text-primary-foreground"})})}),t.jsx(et,{side:"right",children:t.jsx("p",{children:d?"Recolher":"Expandir"})})]})}),o&&k&&w&&t.jsx("div",{ref:k.dragRef,onMouseDown:k.handleMouseDown,className:e.cn("absolute inset-y-0 right-0 w-1 cursor-ew-resize","hover:bg-primary/20 transition-colors","after:absolute after:inset-y-0 after:-left-1 after:-right-1 after:content-['']",k.isDragging&&"bg-primary/40")})]})}const Cs=a.memo(function({children:s,sidebar:r,sidebarConfig:n,showHeader:o=!0,showSidebar:i=!0}){const l=a.useMemo(()=>i?r||t.jsx(ws,{config:n}):null,[r,n,i]),c=a.useMemo(()=>({"--sidebar-width":"290px","--sidebar-width-icon":"58px"}),[]),d=a.useRef(null),u=a.useRef(null),m=a.useCallback(()=>{if(d.current&&u.current){const e=d.current.offsetHeight;u.current.style.setProperty("--header-height",`${e}px`)}},[]);return a.useEffect(()=>{m();const e=new ResizeObserver(m);return d.current&&e.observe(d.current),()=>e.disconnect()},[m]),t.jsx(e.NavigationProvider,{config:n,children:t.jsx(e.PageMetadataProvider,{children:t.jsx(_a,{defaultOpen:!1,style:c,children:t.jsxs("div",{ref:u,className:"flex flex-col h-screen w-full overflow-hidden",children:[o&&t.jsxs("div",{ref:d,className:"flex-shrink-0 sticky top-0 z-40 bg-primary",children:[t.jsx(hs,{}),t.jsx(e.UserUpdatesViewer,{})]}),t.jsxs("div",{className:"sidebar-container flex flex-1 overflow-hidden",children:[l,t.jsx("main",{className:"relative z-0 flex-1 flex flex-col overflow-hidden",children:t.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto bg-muted/30",children:s})})]})]})})})})});const ks=M.forwardRef(({...e},a)=>t.jsx("nav",{ref:a,"aria-label":"breadcrumb",...e}));ks.displayName="Breadcrumb";const Ss=M.forwardRef(({className:a,...s},r)=>t.jsx("ol",{ref:r,className:e.cn("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",a),...s}));Ss.displayName="BreadcrumbList";const Ds=M.forwardRef(({className:a,...s},r)=>t.jsx("li",{ref:r,className:e.cn("inline-flex items-center gap-1.5",a),...s}));Ds.displayName="BreadcrumbItem";const As=M.forwardRef(({asChild:a,className:r,...n},o)=>{const i=a?s.Slot:"a";return t.jsx(i,{ref:o,className:e.cn("transition-colors hover:text-foreground",r),...n})});As.displayName="BreadcrumbLink";const Ms=M.forwardRef(({className:a,...s},r)=>t.jsx("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:e.cn("font-normal text-foreground",a),...s}));Ms.displayName="BreadcrumbPage";const Ps=({children:a,className:s,...r})=>t.jsx("li",{role:"presentation","aria-hidden":"true",className:e.cn("[&>svg]:h-3.5 [&>svg]:w-3.5",s),...r,children:a??t.jsx(n.ChevronRight,{})});Ps.displayName="BreadcrumbSeparator";var Rs=Object.defineProperty,Es=(e,t,a)=>((e,t,a)=>t in e?Rs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a)(e,t+"",a);class zs extends a.Component{constructor(t){super(t),Es(this,"copyErrorDetails",()=>{const t=e.errorService.getErrors().slice(0,2),a=`\n=== ERRO ATUAL ===\n${this.state.error?.message||c.t("unknown_error")}\n\nStack Trace:\n${this.state.error?.stack||c.t("not_available")}\n\n=== ÚLTIMOS ERROS ===\n${t.map((e,t)=>`${t+1}. [${new Date(e.timestamp).toLocaleTimeString()}] ${e.message}`).join("\n")||c.t("no_errors_recorded")}\n `.trim();navigator.clipboard.writeText(a),p.toast.success("Detalhes copiados!",{description:c.t("error_copied_clipboard")})}),this.state={hasError:!1,showDetails:!1}}static getDerivedStateFromError(e){if((void 0).DEV)throw e;return{hasError:!0,error:e}}componentDidCatch(t,a){if((void 0).DEV)throw t;e.errorService.handleError(t,!1),this.setState({errorInfo:a})}render(){if(this.state.hasError){if(this.props.fallback)return this.props.fallback;const a=e.errorService.getErrors().slice(0,2);return t.jsx("div",{className:"flex items-center justify-center min-h-screen p-4",children:t.jsxs(Z,{className:"w-full max-w-2xl",children:[t.jsxs(Y,{className:"text-center",children:[t.jsx("div",{className:"flex justify-center mb-4",children:t.jsx(n.AlertTriangle,{className:"h-12 w-12 text-destructive"})}),t.jsx(ee,{children:c.t("something_went_wrong")})]}),t.jsxs(ae,{className:"space-y-4",children:[t.jsx("p",{className:"text-center text-muted-foreground",children:"Ocorreu um erro inesperado. Tente recarregar a página."}),t.jsxs(ps,{open:this.state.showDetails,onOpenChange:e=>this.setState({showDetails:e}),children:[t.jsx(fs,{asChild:!0,children:t.jsxs(H,{variant:"outline",className:"w-full flex items-center justify-center gap-2",children:[t.jsx(n.ChevronDown,{className:"h-4 w-4 transition-transform "+(this.state.showDetails?"rotate-180":"")}),"Ver Detalhes Técnicos"]})}),t.jsxs(xs,{className:"mt-4 space-y-4",children:[t.jsxs("div",{className:"rounded-lg border bg-card p-4 space-y-3",children:[t.jsxs("div",{children:[t.jsx("h4",{className:"font-semibold text-sm mb-2 flex items-center gap-2",children:"📋 Erro Atual"}),t.jsxs("div",{className:"text-sm space-y-2",children:[t.jsx("p",{className:"font-medium text-destructive",children:this.state.error?.message||c.t("unknown_error")}),this.state.error?.stack&&t.jsx(ia,{className:"h-32 w-full rounded border bg-muted p-2",children:t.jsx("pre",{className:"text-xs text-muted-foreground whitespace-pre-wrap",children:this.state.error.stack})})]})]}),a.length>0&&t.jsxs("div",{className:"pt-3 border-t",children:[t.jsx("h4",{className:"font-semibold text-sm mb-2 flex items-center gap-2",children:"📜 Últimos Erros"}),t.jsx("div",{className:"space-y-2",children:a.map((e,a)=>t.jsx("div",{className:"text-sm p-2 rounded bg-muted/50",children:t.jsxs("div",{className:"flex items-start gap-2",children:[t.jsxs("span",{className:"font-medium text-muted-foreground shrink-0",children:[a+1,"."]}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"flex items-center gap-2 flex-wrap",children:t.jsxs("span",{className:"text-xs text-muted-foreground",children:["[",new Date(e.timestamp).toLocaleTimeString(),"]"]})}),t.jsx("p",{className:"text-sm break-words",children:e.message})]})]})},e.id))})]})]}),t.jsxs(H,{variant:"outline",onClick:this.copyErrorDetails,className:"w-full flex items-center justify-center gap-2",children:[t.jsx(n.Copy,{className:"h-4 w-4"}),"Copiar Detalhes"]})]})]}),t.jsx(H,{onClick:()=>window.location.reload(),className:"w-full",children:"Recarregar Página"})]})]})})}return this.props.children}}function Os({open:e,onOpenChange:s,onModuleClick:r,contractedModules:o,onModuleInterest:i,userName:l,unitName:d,units:u=[],currentAlias:m,onUnitChange:h,onLogout:p,educaUrl:f,saberGestaoUrl:x,wikiUrl:g,blocking:v=!0,size:j="lg",children:y,sourceModule:N}){const{t:w}=b.useTranslation(),C=a.useMemo(()=>{if(!u.length)return[];const e=new Map;u.forEach(t=>e.set(t.alias,t));const t=Array.from(e.values()),a=t.find(e=>e.alias===m),s=t.filter(e=>e.alias!==m).sort((e,t)=>(e.name||"").localeCompare(t.name||"","pt-BR",{sensitivity:"base"}));return a?[a,...s]:s},[u,m]);return t.jsx(pe,{open:e,onOpenChange:v?void 0:s,children:t.jsxs(ve,{size:j,variant:"destructive",className:"overflow-hidden flex flex-col max-h-[85vh]",onPointerDownOutside:v?e=>e.preventDefault():void 0,onEscapeKeyDown:v?e=>e.preventDefault():void 0,children:[t.jsxs("div",{className:"flex items-start justify-between gap-4 flex-shrink-0",children:[t.jsxs("div",{className:"flex flex-col gap-1.5 text-left",children:[t.jsx(Ne,{children:w("no_access_page")}),t.jsx(we,{children:"Selecione um módulo para continuar navegando!"})]}),t.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[C.length>1&&t.jsxs(We,{children:[t.jsx(He,{asChild:!0,children:t.jsxs(H,{variant:"outline",size:"sm",className:"gap-2 max-w-[200px]",children:[t.jsx(n.Building2,{className:"h-4 w-4 shrink-0"}),t.jsx("span",{className:"truncate text-xs",children:d||"Unidade"}),t.jsx(n.ChevronDown,{className:"h-3 w-3 shrink-0"})]})}),t.jsx(Ke,{align:"end",className:"max-h-[300px] overflow-auto",children:C.map(e=>t.jsxs(Qe,{onClick:()=>h?.(e),className:e.alias===m?"bg-muted":"",children:[t.jsx(n.Building2,{className:"mr-2 h-4 w-4 shrink-0"}),t.jsx("span",{className:"truncate",children:e.name}),e.alias===m&&t.jsx($e,{variant:"outline",className:"ml-auto text-xs shrink-0",children:"Atual"})]},e.alias))})]}),t.jsxs(We,{children:[t.jsx(He,{asChild:!0,children:t.jsxs(H,{variant:"ghost",size:"sm",className:"gap-2",children:[t.jsx("div",{className:"w-7 h-7 bg-primary rounded-full flex items-center justify-center",children:t.jsx(n.User,{className:"h-3.5 w-3.5 text-primary-foreground"})}),t.jsx(n.ChevronDown,{className:"h-3 w-3"})]})}),t.jsxs(Ke,{align:"end",children:[t.jsxs("div",{className:"px-2 py-1.5",children:[t.jsx("p",{className:"text-sm font-medium",children:l||c.t("user")}),t.jsx("p",{className:"text-xs text-muted-foreground",children:d})]}),t.jsx(Xe,{}),t.jsxs(Qe,{onClick:p,children:[t.jsx(n.LogOut,{className:"mr-2 h-4 w-4"}),"Sair"]})]})]})]})]}),y?t.jsxs("div",{className:"flex-1 min-h-0 overflow-auto flex flex-col",children:[t.jsx("div",{className:"flex-1",children:y}),t.jsx(as,{educaUrl:f,saberGestaoUrl:x,wikiUrl:g,alias:m,sourceModule:N})]}):t.jsx(is,{onModuleClick:r,contractedModules:o,onModuleInterest:i,educaUrl:f,saberGestaoUrl:x,wikiUrl:g,alias:m,sourceModule:N})]})})}function _s(e,t){return t.some(t=>t.endsWith("*")?e.startsWith(t.slice(0,-1)):e===t)}Object.defineProperty(exports,"AliasRedirect",{enumerable:!0,get:function(){return e.AliasRedirect}}),Object.defineProperty(exports,"AliasRouteGuard",{enumerable:!0,get:function(){return e.AliasRouteGuard}}),Object.defineProperty(exports,"CallbackPage",{enumerable:!0,get:function(){return e.CallbackPage}}),Object.defineProperty(exports,"CoreProviders",{enumerable:!0,get:function(){return e.CoreProviders}}),Object.defineProperty(exports,"DocumentFileUpload",{enumerable:!0,get:function(){return e.DocumentFileUpload}}),Object.defineProperty(exports,"DocumentFileViewer",{enumerable:!0,get:function(){return e.DocumentFileViewer}}),Object.defineProperty(exports,"EDocumentAssociationType",{enumerable:!0,get:function(){return e.EDocumentAssociationType}}),exports.EditProfileDialog=e,Object.defineProperty(exports,"EditProfilePage",{enumerable:!0,get:function(){return e.EditProfilePage}}),Object.defineProperty(exports,"EmailService",{enumerable:!0,get:function(){return e.EmailService}}),Object.defineProperty(exports,"LoginPage",{enumerable:!0,get:function(){return e.LoginPage}}),Object.defineProperty(exports,"ModalStateProvider",{enumerable:!0,get:function(){return e.ModalStateProvider}}),Object.defineProperty(exports,"ModuleProvider",{enumerable:!0,get:function(){return e.ModuleProvider}}),Object.defineProperty(exports,"PageMetadataProvider",{enumerable:!0,get:function(){return e.PageMetadataProvider}}),Object.defineProperty(exports,"ProtectedRoute",{enumerable:!0,get:function(){return e.ProtectedRoute}}),Object.defineProperty(exports,"applyFavicon",{enumerable:!0,get:function(){return e.applyFavicon}}),Object.defineProperty(exports,"cn",{enumerable:!0,get:function(){return e.cn}}),Object.defineProperty(exports,"configureEnvironment",{enumerable:!0,get:function(){return e.configureEnvironment}}),Object.defineProperty(exports,"deriveEmailField",{enumerable:!0,get:function(){return e.deriveEmailField}}),Object.defineProperty(exports,"deriveNameField",{enumerable:!0,get:function(){return e.deriveNameField}}),Object.defineProperty(exports,"deriveUsernameField",{enumerable:!0,get:function(){return e.deriveUsernameField}}),Object.defineProperty(exports,"documentsFilesApi",{enumerable:!0,get:function(){return e.documentsFilesApi}}),Object.defineProperty(exports,"emailService",{enumerable:!0,get:function(){return e.emailService}}),Object.defineProperty(exports,"errorService",{enumerable:!0,get:function(){return e.errorService}}),Object.defineProperty(exports,"formatCurrency",{enumerable:!0,get:function(){return e.formatCurrency}}),Object.defineProperty(exports,"formatDate",{enumerable:!0,get:function(){return e.formatDate}}),Object.defineProperty(exports,"formatDatetime",{enumerable:!0,get:function(){return e.formatDatetime}}),Object.defineProperty(exports,"getAppEnv",{enumerable:!0,get:function(){return e.getAppEnv}}),Object.defineProperty(exports,"getBackendMode",{enumerable:!0,get:function(){return e.getBackendMode}}),Object.defineProperty(exports,"getEnvironmentConfig",{enumerable:!0,get:function(){return e.getEnvironmentConfig}}),Object.defineProperty(exports,"getSecurityMode",{enumerable:!0,get:function(){return e.getSecurityMode}}),Object.defineProperty(exports,"getUserProfile",{enumerable:!0,get:function(){return e.getUserProfile}}),Object.defineProperty(exports,"isDevEnv",{enumerable:!0,get:function(){return e.isDevEnv}}),Object.defineProperty(exports,"isSupabaseBackend",{enumerable:!0,get:function(){return e.isSupabaseBackend}}),Object.defineProperty(exports,"isSupabaseConfigured",{enumerable:!0,get:function(){return e.isSupabaseConfigured}}),Object.defineProperty(exports,"loadForlogicFonts",{enumerable:!0,get:function(){return e.loadForlogicFonts}}),Object.defineProperty(exports,"resolveFieldMappings",{enumerable:!0,get:function(){return e.resolveFieldMappings}}),Object.defineProperty(exports,"setBackendMode",{enumerable:!0,get:function(){return e.setBackendMode}}),Object.defineProperty(exports,"setupQualiexCore",{enumerable:!0,get:function(){return e.setupQualiexCore}}),Object.defineProperty(exports,"updateUserProfile",{enumerable:!0,get:function(){return e.updateUserProfile}}),Object.defineProperty(exports,"useAuth",{enumerable:!0,get:function(){return e.useAuth}}),Object.defineProperty(exports,"useHasOpenModal",{enumerable:!0,get:function(){return e.useHasOpenModal}}),Object.defineProperty(exports,"useModalState",{enumerable:!0,get:function(){return e.useModalState}}),Object.defineProperty(exports,"useModuleConfig",{enumerable:!0,get:function(){return e.useModuleConfig}}),Object.defineProperty(exports,"usePageMetadata",{enumerable:!0,get:function(){return e.usePageMetadata}}),Object.defineProperty(exports,"usePageMetadataContext",{enumerable:!0,get:function(){return e.usePageMetadataContext}}),Object.defineProperty(exports,"useSuppressCommonV5Redirect",{enumerable:!0,get:function(){return e.useSuppressCommonV5Redirect}}),Object.defineProperty(exports,"toast",{enumerable:!0,get:function(){return p.toast}}),exports.AccessDeniedDialog=Os,exports.ActionButton=K,exports.AppHeader=hs,exports.AppLayout=Cs,exports.AppSidebar=ws,exports.Badge=$e,exports.BaseForm=ha,exports.BodyContent=function({breadcrumbs:a,children:s,className:r}){return t.jsxs("div",{className:e.cn("bg-neutral-100 dark:bg-neutral-900","h-full overflow-y-auto","p-6",r),children:[a&&a.length>0&&t.jsx(ks,{className:"mb-4",children:t.jsx(Ss,{children:a.map((e,s)=>{const r=s===a.length-1;return t.jsxs(M.Fragment,{children:[s>0&&t.jsx(Ps,{}),t.jsx(Ds,{children:r||!e.href?t.jsx(Ms,{children:e.label}):e.asChild&&e.children?t.jsx(As,{asChild:!0,children:e.children}):t.jsx(As,{asChild:!0,children:t.jsx(j.Link,{to:e.href||"/",children:e.label})})})]},`${e.label}-${s}`)})})}),t.jsx("div",{className:"space-y-6",children:s})]})},exports.Button=H,exports.Card=Z,exports.CardContent=ae,exports.CardDescription=te,exports.CardHeader=Y,exports.CardTitle=ee,exports.Checkbox=Be,exports.ComboTree=function({multiple:s=!1,options:r,value:o,onChange:i,placeholder:l,label:c,icon:d,emptyMessage:u,searchPlaceholder:m,disabled:h=!1,required:p=!1,isLoading:f=!1,error:x,className:g,maxDisplayedBadges:v,popoverContainer:j,onOpen:y,onClose:N,defaultExpanded:w=!0,showCheck:C=!1}){const{t:k}=b.useTranslation(),[S,D]=a.useState(!1),[A,M]=a.useState(""),[P,R]=a.useState(()=>w?function(e){const t=new Set;return function e(a){for(const s of a)s.children&&s.children.length>0&&(t.add(s.value),e(s.children))}(e),t}(r):new Set),E=l||k("select_placeholder","Selecione..."),z=u||k("no_results",k("no_results")),O=m||k("search_placeholder","Pesquisar..."),_=a.useMemo(()=>o?Array.isArray(o)?o:[o]:[],[o]),I=a.useMemo(()=>{if(!j)return;let e=j,t=0;try{for(;e&&t<3;){const a=window.getComputedStyle(e),s=a.overflowY||a.overflow;if(!s||"visible"===s||"unset"===s)break;e=e.parentElement,t++}}catch{}return e??void 0},[j]),T=a.useMemo(()=>xt(r,A),[r,A])??r,L=a.useMemo(()=>A?function(e,t){const a=new Set,s=ft(t);function r(e){if(!e.children||0===e.children.length)return ft(e.label).includes(s);let t=!1;for(const a of e.children)r(a)&&(t=!0);return t&&a.add(e.value),t||ft(e.label).includes(s)}for(const n of e)r(n);return a}(r,A):new Set,[r,A]),F=A?L:P,B=a.useCallback(e=>{A||R(t=>{const a=new Set(t);return a.has(e)?a.delete(e):a.add(e),a})},[A]),q=a.useMemo(()=>_.map(e=>({value:e,label:gt(r,e)||e})),[_,r]),V=e=>{D(e),e?y?.():(M(""),N?.())},$=a.useCallback(e=>{if(i)if(s){const t=_.includes(e)?_.filter(t=>t!==e):[..._,e];i(t)}else i(e),D(!1)},[i,s,_]),G=(e,t)=>{t.preventDefault(),t.stopPropagation(),i&&i(s?_.filter(t=>t!==e):"")},U=v?q.slice(0,v):q,W=v&&q.length>v?q.length-v:0;if(f)return t.jsxs("div",{className:e.cn("space-y-2",g),children:[c&&t.jsxs(J,{children:[c,p&&t.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),t.jsx(ut,{className:"h-10 w-full"})]});const K="string"==typeof x?x:x instanceof Error?x.message:x?k("error_loading",k("error_loading")):void 0;return K?t.jsxs("div",{className:e.cn("space-y-2",g),children:[c&&t.jsxs(J,{children:[c,p&&t.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),t.jsxs("div",{className:"flex items-center gap-2 p-3 border border-destructive rounded-md bg-destructive/10 text-destructive",children:[t.jsx(n.AlertCircle,{className:"h-4 w-4"}),t.jsx("span",{className:"text-sm",children:K})]})]}):t.jsxs("div",{className:e.cn("space-y-2",g),children:[c&&t.jsxs(J,{children:[c,p&&t.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),t.jsxs(at,{open:S,onOpenChange:V,modal:!1,children:[t.jsx(st,{asChild:!0,children:s?t.jsxs("div",{role:"combobox","aria-expanded":S,"aria-disabled":h,tabIndex:h?-1:0,onKeyDown:e=>{h||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),V(!S))},className:e.cn("flex w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","min-h-10 h-auto cursor-pointer",h&&"pointer-events-none opacity-50 cursor-not-allowed",0===q.length&&"text-muted-foreground"),children:[0===q.length?t.jsxs("span",{className:"flex items-center gap-2",children:[d&&t.jsx(d,{className:"h-4 w-4"}),E]}):t.jsxs("div",{className:"flex flex-wrap gap-1.5 flex-1 mr-2",children:[U.map(e=>t.jsxs($e,{variant:"secondary",className:"gap-1 pr-1",children:[e.label,t.jsx("button",{type:"button",className:"rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",onKeyDown:t=>{"Enter"===t.key&&G(e.value,t)},onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:t=>G(e.value,t),children:t.jsx(n.X,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})]},e.value)),W>0&&t.jsxs($e,{variant:"outline",className:"gap-1",children:["+",W]})]}),t.jsx(n.ChevronDown,{className:"h-4 w-4 shrink-0 opacity-50"})]}):t.jsxs(H,{variant:"outline",role:"combobox","aria-expanded":S,disabled:h,className:e.cn("w-full justify-between min-h-10 h-auto font-normal",0===q.length&&"text-muted-foreground"),children:[0===q.length?t.jsxs("span",{className:"flex items-center gap-2",children:[d&&t.jsx(d,{className:"h-4 w-4"}),E]}):t.jsxs("span",{className:"flex items-center gap-2",children:[d&&t.jsx(d,{className:"h-4 w-4"}),q[0]?.label]}),t.jsx(n.ChevronDown,{className:"h-4 w-4 shrink-0 opacity-50"})]})}),t.jsxs(rt,{className:"w-full p-0 bg-popover z-[60]",align:"start",container:I,collisionBoundary:I,children:[t.jsxs("div",{className:"flex items-center border-b px-3",children:[t.jsx(n.Search,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),t.jsx("input",{className:"flex h-10 w-full bg-transparent py-3 px-2 text-sm outline-none placeholder:text-control-placeholder disabled:cursor-not-allowed disabled:opacity-50",placeholder:O,value:A,onChange:e=>M(e.target.value)}),A&&t.jsx("button",{type:"button",className:"rounded-sm p-0.5 text-muted-foreground hover:text-foreground",onClick:()=>M(""),children:t.jsx(n.X,{className:"h-3.5 w-3.5"})})]}),t.jsx("div",{className:"max-h-[300px] overflow-y-auto overflow-x-hidden",children:t.jsx("div",{role:"tree",className:"p-1",children:0===T.length?t.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:0===r.length?z:k("no_search_results",k("no_results"))}):t.jsx(vt,{nodes:T,level:0,expandedIds:F,onToggleExpand:B,selectedValues:_,onSelect:$,showCheck:C})})})]})]})]})},exports.Combobox=pt,exports.ContentContainer=function({title:a,subtitle:s,children:r,className:n,hasHeader:o=!0}){const i=a||s;return t.jsxs("div",{className:e.cn("bg-white dark:bg-card","rounded-lg","shadow-sm","border border-border/40","overflow-visible",n),children:[o&&i&&t.jsxs("div",{className:"px-6 py-4 border-b border-border/50",children:[a&&t.jsx("h2",{className:"text-xl font-semibold text-foreground",children:a}),s&&t.jsx("p",{className:"text-sm text-muted-foreground mt-0.5",children:s})]}),r&&t.jsx("div",{className:e.cn("p-6",!o&&i&&"pt-4"),children:r})]})},exports.CrudPageInternal=ya,exports.Dialog=pe,exports.DialogContent=ve,exports.DialogFooter=ye,exports.DialogHeader=je,exports.DialogTitle=Ne,exports.DialogTrigger=fe,exports.DisabledMenuItem=tt,exports.ErrorBoundary=zs,exports.Form=Ce,exports.FormControl=Pe,exports.FormField=({...e})=>t.jsx(ke.Provider,{value:{name:e.name},children:t.jsx(u.Controller,{...e})}),exports.FormItem=Ae,exports.FormLabel=Me,exports.FormMessage=Re,exports.Input=Q,exports.Label=J,exports.LoadingState=function({isLoading:a,children:s,className:r,type:n="spinner",size:o="md"}){return a?"overlay"===n?t.jsxs("div",{className:e.cn("relative",r),children:[s,t.jsx("div",{className:"absolute inset-0 bg-background/50 backdrop-blur-sm flex items-center justify-center z-10",children:t.jsx(Ue,{size:o})})]}):"skeleton"===n?t.jsx("div",{className:e.cn("animate-pulse",r),children:t.jsx("div",{className:"bg-muted rounded-md h-full w-full"})}):t.jsx("div",{className:e.cn("flex items-center justify-center py-8",r),children:t.jsx(Ue,{size:o})}):t.jsx(t.Fragment,{children:s})},exports.MODULES_DATA=ss,exports.ModuleAccessGuard=function({children:s,contractedModules:r,onModuleClick:n,onModuleInterest:o,educaUrl:i="https://educacao.sabergestao.com.br/{alias}/fe",saberGestaoUrl:l="https://sabergestao.com.br/",wikiUrl:c,bypassPaths:d,noAccessRedirectPath:u,noAccessRedirectMode:m,accessDeniedRoutes:h,sourceModule:p}){const{t:f}=b.useTranslation(),{hasAccess:x,isLoading:g,association:v}=cs(),{user:j,alias:y,companies:N,isAuthenticated:w,isLoading:C,logout:k,switchUnit:S}=e.useAuth(),D=ds(r),A=a.useMemo(()=>N?.length?y&&N.find(e=>e.alias===y)||N[0]:null,[N,y]),M=a.useMemo(()=>N?.length?N.map(e=>({alias:e.alias,name:e.name||e.alias})):[],[N]),P=a.useCallback(e=>{const t=N?.find(t=>t.alias===e.alias);if(!t)return;const{pathname:a,search:s,hash:r}=window.location;if(y){const e=a.split("/"),n=e.indexOf(y);if(n>=0)return e[n]=t.alias,void(window.location.href=e.join("/")+s+r)}S(t)},[y,S,N]),R=a.useCallback(t=>{n?n(t):t.url&&e.handleExternalLink(e.buildModuleUrl(t.url,y||void 0))},[n,y]),E=a.useMemo(()=>{if(!h)return;const e="undefined"!=typeof window?window.location.pathname:"",t=Object.keys(h).find(t=>_s(e,[t]));return t?h[t]:void 0},[h]),z="undefined"!=typeof window?window.location.pathname:"",O=!(!d?.length||!_s(z,d)),_=!C&&w&&!g&&!x&&!O&&!!u&&"always"===(m??"always")?function(e,t){return t&&e.startsWith("/")?e.split("/")[1]===t?e:`/${t}${e}`:e}(u,y):null;return a.useEffect(()=>{_&&_!==z&&window.location.replace(_)},[_,z]),C||!w||O?t.jsx(t.Fragment,{children:s}):g?t.jsx("div",{className:"flex items-center justify-center min-h-screen",children:t.jsx(Ue,{size:"lg"})}):x?t.jsx(t.Fragment,{children:s}):_?_===z?t.jsx(t.Fragment,{children:s}):t.jsx("div",{className:"flex items-center justify-center min-h-screen",children:t.jsx(Ue,{size:"lg"})}):t.jsx(Os,{open:!0,onModuleClick:R,contractedModules:D,onModuleInterest:o,userName:j?.name,unitName:A?.name,units:M,currentAlias:y||void 0,onUnitChange:P,onLogout:k,educaUrl:i,saberGestaoUrl:l,wikiUrl:c,sourceModule:p,blocking:!0,children:E})},exports.ModuleGrid=os,exports.ModuleOfferContent=function({title:e,description:a,image:s,icon:r,ctaLabel:o,onCtaClick:i,children:l}){const{t:c}=b.useTranslation(),d=o??c("want_to_know_more");return t.jsxs("div",{className:"flex flex-col items-center text-center gap-6 py-8 px-4",children:[!l&&(s||r)&&t.jsx("div",{className:"flex items-center justify-center",children:s?t.jsx("img",{src:s,alt:e,className:"max-h-48 w-auto object-contain rounded-lg"}):r?t.jsx("div",{className:"w-24 h-24 rounded-2xl bg-primary/10 flex items-center justify-center",children:t.jsx(r,{className:"h-12 w-12 text-primary"})}):null}),t.jsxs("div",{className:"space-y-3 max-w-lg",children:[t.jsx("h3",{className:"text-xl font-semibold text-foreground",children:e}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:a})]}),l?t.jsx("div",{className:"w-full",children:l}):i?t.jsxs(H,{onClick:i,size:"lg",className:"gap-2",children:[t.jsx(n.Sparkles,{className:"h-4 w-4"}),d]}):null]})},exports.ModulesContent=is,exports.ModulesDialog=us,exports.ModulesFooterCards=as,exports.MultiSelect=pt,exports.Select=ze,exports.SelectContent=Le,exports.SelectItem=Fe,exports.SelectSearch=pt,exports.SelectTrigger=_e,exports.SelectValue=Oe,exports.SidebarActionTrigger=vs,exports.SidebarHeader=function({open:s,appName:r}){const[o,i]=a.useState(!1),{association:l}=cs(),c=e.resolveBrandLogo({isQualitfy:l?.isQualitfy,isMetroex:l?.isMetroex});return t.jsxs(t.Fragment,{children:[t.jsx(Ta,{className:"p-0 gap-0",children:s?t.jsxs("div",{className:"flex items-center gap-2 pl-2 min-h-10",children:[t.jsx("button",{className:"flex-shrink-0 cursor-pointer",onClick:()=>i(!0),children:t.jsx("img",{src:c,alt:"Logo",className:"h-8 max-w-[140px] object-contain"})}),r&&t.jsx("button",{className:"flex-1 min-w-0 text-sm font-medium text-right cursor-pointer text-primary-foreground hover:text-primary-foreground/80 transition-colors leading-tight py-1",onClick:()=>i(!0),children:t.jsx("span",{className:"line-clamp-2",children:(e=>{const a=e.split(" ");if(a.length<=1)return t.jsxs("span",{className:"whitespace-nowrap",children:[e," ",t.jsx(n.ChevronDown,{size:12,className:"inline-block align-middle ml-1 opacity-60 text-primary-foreground"})]});const s=a[a.length-1],r=a.slice(0,-1).join(" ");return t.jsxs(t.Fragment,{children:[r," ",t.jsxs("span",{className:"whitespace-nowrap",children:[s," ",t.jsx(n.ChevronDown,{size:12,className:"inline-block align-middle ml-1 opacity-60 text-primary-foreground"})]})]})})(r)})})]}):t.jsx("div",{className:"flex flex-col items-center justify-center w-full",children:t.jsx("button",{className:"flex items-center justify-center h-10 w-8 cursor-pointer",onClick:()=>i(!0),children:t.jsx("img",{src:e.assets.smallLogo,alt:"Logo",className:"h-6 w-auto object-contain"})})})}),t.jsx(us,{open:o,onOpenChange:i})]})},exports.SidebarLogo=ms,exports.Textarea=qe,exports.Toaster=({...e})=>t.jsx(p.Toaster,{className:"group",position:"top-right",expand:!0,visibleToasts:5,closeButton:!0,icons:{success:t.jsx(n.CircleCheckIcon,{className:"h-4 w-4"}),info:t.jsx(n.InfoIcon,{className:"h-4 w-4"}),warning:t.jsx(n.TriangleAlertIcon,{className:"h-4 w-4"}),error:t.jsx(n.OctagonXIcon,{className:"h-4 w-4"}),loading:t.jsx(n.Loader2Icon,{className:"h-4 w-4 animate-spin"})},toastOptions:{classNames:{toast:"group toast group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg group-[.toaster]:relative",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground",closeButton:"group-[.toast]:absolute group-[.toast]:right-2 group-[.toast]:top-2 group-[.toast]:left-auto group-[.toast]:transform-none group-[.toast]:border-0 group-[.toast]:bg-transparent group-[.toast]:opacity-70 group-[.toast]:hover:opacity-100 group-[.toast]:hover:bg-transparent group-[.toast]:transition-opacity",success:"!bg-success-light !border-success-light",error:"!bg-destructive-light !border-destructive-light",warning:"!bg-warning-light !border-warning-light",info:"!bg-info-light !border-info-light"}},...e}),exports.createCrudPage=function(e){return({manager:a})=>{const{manager:s,config:r,onSave:n,onEdit:o,onToggleStatus:i}=e,l=a??s,c={entityName:r.entityName,entityNamePlural:r.entityNamePlural,filters:r.filters||[],columns:r.columns,cardFields:r.cardFields||[],enableBulkActions:r.enableBulkActions??!1,bulkActions:r.bulkActions||[],customActions:r.customActions,customRowActions:r.customRowActions,customListView:r.customListView,onEdit:o||r.onEdit,onNew:r.onNew,useCustomRouting:r.useCustomRouting,hideNewButton:r.hideNewButton,showNewButton:r.showNewButton,newButtonLabel:r.newButtonLabel,showSearch:r.showSearch,searchPlaceholder:r.searchPlaceholder,showActionBar:r.showActionBar,defaultHiddenColumns:r.defaultHiddenColumns,showDeleteAction:r.showDeleteAction};return t.jsx(ya,{manager:l,config:c,formSections:r.formSections,onSave:n,onToggleStatus:i,defaultSort:r.defaultSort,readOnly:r.readOnly})}},exports.createSimpleSaveHandler=function(e,t,a){return s=>{if(s.id){const t=a(s);e.updateEntity(s.id,t)}else{const a=t(s);e.createEntity(a)}}},exports.createSimpleService=function(t){const a=e.createService({tableName:t.tableName,searchFields:t.searchFields||["title"],selectFields:t.selectFields,schemaName:t.schemaName||"central",entityName:t.entityName,enableQualiexEnrichment:t.enableQualiexEnrichment??!0,userIdFields:t.userIdFields,userFieldsMapping:t.userFieldsMapping});return{service:a,useCrudHook:(e,s)=>Nt({queryKey:t.tableName,service:a,entityName:t.entityName,additionalFilters:e,onSuccess:s})}},exports.generateCrudConfig=function(e,t,a={}){const s=[];return Object.keys(t).forEach(e=>{if("id"!==e&&!e.endsWith("_at")){const a=t[e],r={key:e,header:wa(e),label:wa(e),...Na(e,a),sortable:!0,searchable:"string"==typeof a};s.push(r)}}),{title:e,columns:s,searchPlaceholder:`Buscar ${e.toLowerCase()}...`,itemsPerPage:10,enableCreate:!0,enableEdit:!0,enableDelete:!0,enableSearch:!0,enableFilters:!1,...a}},exports.resolvePageTitle=Ca,exports.useActiveModules=(t={})=>{const{enabled:a=!0}=t,{alias:s}=e.useAuth();return v.useQuery({queryKey:["active-modules",s],queryFn:async()=>{if(!s)return[];const t=e.getSupabaseClient(),{data:a,error:r}=await t.schema("central").from("modules").select("\n id, name, url,\n modules_alias!inner(alias)\n ").eq("modules_alias.alias",s).eq("status","active").order("name");if(r){if(!e.AuthErrorInterceptor.handleError(r))throw r;return[]}return a||[]},enabled:a&&!!s})},exports.useAliasFromUrl=function(t={}){const{paramName:s="alias"}=t,r=j.useParams(),{alias:n,companies:o}=e.useAuth(),i=r[s]||null;return a.useMemo(()=>{if(!i)return{urlAlias:null,isAliasMismatch:!1,isValidAlias:!1,isMissing:!0,matchedCompany:null};const e=o?.find(e=>e.alias===i)||null,t=!!e;return{urlAlias:i,isAliasMismatch:t&&i!==n,isValidAlias:t,isMissing:!1,matchedCompany:e}},[i,n,o])},exports.useColumnResize=Ut,exports.useDebounce=ka,exports.useDerivedContractedModules=ds,exports.useI18nFormatters=()=>{const{locale:t,timezone:a}=e.useLocale(),s=e.DEFAULT_DATETIME_FORMAT;return{formatDatetime:r=>e.formatDatetime(r,s,a,t),formatDate:s=>e.formatDate(s,t,a),locale:t,timezone:a,datetimeFormat:s}},exports.useIsMobile=Ct,exports.useMediaQuery=wt,exports.useModuleAccess=cs,exports.usePageTitle=function(){const t=j.useLocation(),{navigation:a}=e.useNavigation();return Ca(a,t.pathname)},exports.usePermissionQuery=gs,exports.useRowResize=function({rowIds:e,defaultHeight:t=48,minHeight:s=32,maxHeight:r=120,storageKey:n,onResize:o,enabled:i=!0}){const[l,c]=a.useState(()=>{if(!i||"undefined"==typeof window)return{};if(n){const e=localStorage.getItem(n);if(e)try{return JSON.parse(e)}catch{}}return{}}),[d,u]=a.useState(!1),[m,h]=a.useState(null),p=a.useRef(0),f=a.useRef(0),x=a.useCallback(e=>l[e]??t,[l,t]),g=a.useCallback((e,a)=>{i&&(a.preventDefault(),a.stopPropagation(),u(!0),h(e),p.current=a.clientY,f.current=l[e]??t)},[i,l,t]);a.useEffect(()=>{if(!d||!m)return;const e=e=>{const t=e.clientY-p.current,a=Math.max(s,Math.min(r,f.current+t));c(e=>{const t={...e,[m]:a};return o?.(t),t})},t=()=>{u(!1),h(null),n&&c(e=>(localStorage.setItem(n,JSON.stringify(e)),e))};return document.addEventListener("mousemove",e),document.addEventListener("mouseup",t),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",t)}},[d,m,s,r,n,o]),a.useEffect(()=>(d?(document.body.style.cursor="row-resize",document.body.style.userSelect="none"):(document.body.style.cursor="",document.body.style.userSelect=""),()=>{document.body.style.cursor="",document.body.style.userSelect=""}),[d]);const b=a.useCallback(()=>{c({}),n&&localStorage.removeItem(n),o?.({})},[n,o]);return{rowHeights:l,isDragging:d,activeRow:m,handleMouseDown:g,resetHeights:b,getRowHeight:x}},exports.useSidebarResize=Ns,exports.useWizard=function(e){const{steps:t,initialStep:s=0,initialData:r={},onComplete:n,onCancel:o}=e,[i,l]=a.useState(s),[c,d]=a.useState(r),[u,m]=a.useState(!1),[h,p]=a.useState(!1),f=t.length,x=0===i,g=i===f-1,b=t[i],v=f>1?(i+1)/f*100:100,j=a.useCallback(()=>!b?.canProceed||b.canProceed(),[b]),y=a.useMemo(()=>j(),[j,c]),N=a.useMemo(()=>!x&&!b?.disableBack,[x,b]),w=a.useCallback(e=>{d(t=>({...t,...e}))},[]),C=a.useCallback((e,t)=>{d(a=>({...a,[e]:t}))},[]),k=a.useCallback(()=>{l(s),d(r),m(!1),p(!1),o?.()},[s,r,o]),S=a.useCallback(async()=>{if(j()&&!h){p(!0);try{await(n?.(c))}finally{p(!1)}}},[j,h,c,n]),D=a.useCallback(async()=>{j()&&!u&&(g?await S():l(e=>Math.min(e+1,f-1)))},[j,u,g,f,S]),A=a.useCallback(()=>{N&&!u&&l(e=>Math.max(e-1,0))},[N,u]),M=a.useCallback(e=>{e<0||e>=f||u||(e<=i||e===i+1)&&l(e)},[i,f,u]),P=a.useCallback(e=>{m(e)},[]);return{currentStep:i,currentStepConfig:b,data:c,isFirstStep:x,isLastStep:g,isLoading:u,isCompleting:h,next:D,back:A,goTo:M,canProceed:y,canGoBack:N,setData:w,updateField:C,reset:k,complete:S,setLoading:P,progress:v,stepIndex:i,totalSteps:f}},Object.keys(e).forEach(function(t){"default"===t||Object.prototype.hasOwnProperty.call(exports,t)||Object.defineProperty(exports,t,{enumerable:!0,get:function(){return e[t]}})});
@@ -0,0 +1,45 @@
1
+ import { type CSSProperties, type ReactNode } from 'react';
2
+ /**
3
+ * Configuração do crossfade entre abas/rotas do Design System.
4
+ *
5
+ * O objetivo é uma transição *quase imperceptível*: o header fixo permanece
6
+ * estável (nada de reflow) e apenas o conteúdo faz um fade + micro-deslocamento.
7
+ */
8
+ export interface TabCrossfadeConfig {
9
+ /** Duração da animação em ms. @default 180 */
10
+ durationMs: number;
11
+ /**
12
+ * Intensidade da transição, de `0` (invisível) a `1` (marcada).
13
+ * Controla a opacidade inicial e o deslocamento vertical.
14
+ * @default 0.45
15
+ */
16
+ intensity: number;
17
+ /** Curva de easing. @default 'cubic-bezier(0.32, 0.72, 0, 1)' */
18
+ easing: string;
19
+ /** Desliga o crossfade por completo. @default false */
20
+ disabled: boolean;
21
+ }
22
+ export declare const DEFAULT_TAB_CROSSFADE: TabCrossfadeConfig;
23
+ export declare function setTabCrossfadeConfig(config: Partial<TabCrossfadeConfig>): void;
24
+ export declare function getTabCrossfadeConfig(): TabCrossfadeConfig;
25
+ export interface TabCrossfadeProviderProps {
26
+ children: ReactNode;
27
+ config?: Partial<TabCrossfadeConfig>;
28
+ }
29
+ export declare function TabCrossfadeProvider({ children, config }: TabCrossfadeProviderProps): import("react").JSX.Element;
30
+ export declare function useTabCrossfade(overrides?: Partial<TabCrossfadeConfig>): TabCrossfadeConfig;
31
+ /** Converte a config em CSS custom properties consumidas por `.ds-tab-crossfade`. */
32
+ export declare function tabCrossfadeStyle(config: TabCrossfadeConfig): CSSProperties;
33
+ export interface TabCrossfadeProps {
34
+ children: ReactNode;
35
+ /** Chave que dispara a transição (normalmente `location.pathname`). */
36
+ transitionKey: string;
37
+ className?: string;
38
+ /** Overrides pontuais da config do provider. */
39
+ config?: Partial<TabCrossfadeConfig>;
40
+ }
41
+ /**
42
+ * Envolve o conteúdo de uma aba/rota e aplica o crossfade configurável.
43
+ * Não altera scroll nem rouba foco — apenas opacidade/translate.
44
+ */
45
+ export declare function TabCrossfade({ children, transitionKey, className, config }: TabCrossfadeProps): import("react").JSX.Element;