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.
- package/bin/ds-knowledge.js +129 -0
- package/dist/action-plans/index.esm.js +1 -1
- package/dist/action-plans/index.js +1 -1
- package/dist/assets/fonts/Roobert-Bold.woff2 +0 -0
- package/dist/assets/fonts/Roobert-Regular.woff2 +0 -0
- package/dist/assets/fonts/Roobert-RegularItalic.woff2 +0 -0
- package/dist/audit-trail/index.esm.js +1 -1
- package/dist/audit-trail/index.js +1 -1
- package/dist/auth/commonV5RedirectSuppression.d.ts +6 -0
- package/dist/auth/components/ProfilePhotoDialog.d.ts +25 -0
- package/dist/auth/contexts/AuthContext.d.ts +11 -0
- package/dist/components/dashboards/panels/index.d.ts +1 -0
- package/dist/components/dashboards/panels/panel-chart-theme.d.ts +111 -0
- package/dist/components/insights/index.d.ts +11 -0
- package/dist/components/insights/insight-card.d.ts +88 -0
- package/dist/components/insights/insight-motion.d.ts +222 -0
- package/dist/components/insights/insight-phases.d.ts +52 -0
- package/dist/components/insights/insight-primitives.d.ts +289 -0
- package/dist/components/insights/insight-tokens.d.ts +71 -0
- package/dist/components/insights/insight-variants.d.ts +153 -0
- package/dist/components/insights/insight-widgets.d.ts +145 -0
- package/dist/components/layout/AppHeader.d.ts +6 -0
- package/dist/components/layout/AppLayout.d.ts +8 -0
- package/dist/components/layout/AppSidebar.d.ts +8 -1
- package/dist/components/layout/HeaderLegacyMenu.d.ts +18 -0
- package/dist/components/layout/HeaderUserMenu.d.ts +24 -0
- package/dist/components/layout/PageHeader.d.ts +46 -0
- package/dist/components/layout/PageHeaderScope.d.ts +16 -0
- package/dist/components/layout/SectionHeading.d.ts +57 -0
- package/dist/components/layout/SidebarAtoms.d.ts +60 -0
- package/dist/components/layout/SidebarBrandBar.d.ts +27 -0
- package/dist/components/layout/sidebar-utils.d.ts +2 -0
- package/dist/components/ui/accordion.d.ts +50 -5
- package/dist/components/ui/action-button.d.ts +1 -1
- package/dist/components/ui/alert-dialog.d.ts +11 -5
- package/dist/components/ui/alert.d.ts +1 -1
- package/dist/components/ui/badge.d.ts +17 -12
- package/dist/components/ui/breadcrumb-icons.d.ts +24 -0
- package/dist/components/ui/breadcrumb.d.ts +27 -1
- package/dist/components/ui/button.d.ts +9 -22
- package/dist/components/ui/calendar.d.ts +13 -2
- package/dist/components/ui/card-select-dialog.d.ts +59 -0
- package/dist/components/ui/card.d.ts +27 -3
- package/dist/components/ui/combobox.d.ts +1 -2
- package/dist/components/ui/confirm-dialog.d.ts +61 -0
- package/dist/components/ui/date-picker-themed.d.ts +98 -0
- package/dist/components/ui/date-picker-variants.d.ts +104 -0
- package/dist/components/ui/delete-account-dialog.d.ts +25 -0
- package/dist/components/ui/dialog-signal.d.ts +42 -0
- package/dist/components/ui/dialog-wizard.d.ts +42 -26
- package/dist/components/ui/dialog.d.ts +32 -13
- package/dist/components/ui/disabled-menu-item.d.ts +2 -0
- package/dist/components/ui/feature-announcement-dialog.d.ts +46 -0
- package/dist/components/ui/forlogic-assembly.d.ts +42 -0
- package/dist/components/ui/forlogic-loader.d.ts +50 -0
- package/dist/components/ui/forlogic-mark.d.ts +25 -0
- package/dist/components/ui/icon-hover-duotone.d.ts +19 -0
- package/dist/components/ui/input-group.d.ts +3 -3
- package/dist/components/ui/input.d.ts +5 -0
- package/dist/components/ui/kanban-card.d.ts +104 -0
- package/dist/components/ui/overlay-title.d.ts +23 -0
- package/dist/components/ui/page-breadcrumb.d.ts +42 -27
- package/dist/components/ui/progress.d.ts +3 -1
- package/dist/components/ui/resizable.d.ts +1 -1
- package/dist/components/ui/scroll-area.d.ts +1 -1
- package/dist/components/ui/select.d.ts +4 -1
- package/dist/components/ui/selection-chip.d.ts +35 -0
- package/dist/components/ui/share-link-dialog.d.ts +31 -0
- package/dist/components/ui/sheet.d.ts +12 -10
- package/dist/components/ui/side-panel.d.ts +32 -0
- package/dist/components/ui/sidebar.d.ts +7 -14
- package/dist/components/ui/sonner.d.ts +12 -1
- package/dist/components/ui/spinner.d.ts +30 -6
- package/dist/components/ui/split-button.d.ts +5 -5
- package/dist/components/ui/stat-card.d.ts +97 -0
- package/dist/components/ui/status-badge.d.ts +54 -24
- package/dist/components/ui/status-bar.d.ts +43 -0
- package/dist/components/ui/table-dialog.d.ts +51 -0
- package/dist/components/ui/table.d.ts +1 -1
- package/dist/components/ui/tabs.d.ts +36 -28
- package/dist/components/ui/textarea.d.ts +2 -0
- package/dist/components/ui/toggle-group.d.ts +4 -4
- package/dist/components/ui/toggle.d.ts +4 -4
- package/dist/components/ui/typography.d.ts +1 -1
- package/dist/crud/actions/qualityActions.d.ts +55 -0
- package/dist/crud/actions/useRowActions.d.ts +114 -0
- package/dist/crud/components/ActionMenuItems.d.ts +6 -9
- package/dist/crud/components/ColumnManagerMenu.d.ts +56 -0
- package/dist/crud/components/ColumnSettingsPopover.d.ts +7 -3
- package/dist/crud/components/ContextMenu.d.ts +8 -5
- package/dist/crud/components/CrudActionBar.d.ts +3 -1
- package/dist/crud/components/CrudGrid.d.ts +7 -1
- package/dist/crud/components/CrudTable.d.ts +39 -8
- package/dist/crud/components/InlineRowActions.d.ts +9 -5
- package/dist/crud/components/KanbanActionBar.d.ts +67 -0
- package/dist/crud/components/RowActions.d.ts +30 -0
- package/dist/crud/components/RowActionsMenuItems.d.ts +19 -0
- package/dist/crud/components/RowContextMenu.d.ts +21 -0
- package/dist/crud/components/SelectionToolbar.d.ts +27 -0
- package/dist/crud/components/TableRowActions.d.ts +11 -8
- package/dist/crud/createCrudPage.d.ts +0 -3
- package/dist/crud/createSimpleService.d.ts +0 -2
- package/dist/crud/hooks/useColumnDragReorder.d.ts +18 -0
- package/dist/crud/hooks/useColumnManager.d.ts +7 -1
- package/dist/crud/hooks/useCrud.d.ts +1 -5
- package/dist/crud/primitives/ActionMenu.d.ts +10 -54
- package/dist/crud/utils/columnTitle.d.ts +37 -0
- package/dist/exports/crud.d.ts +17 -0
- package/dist/exports/legacy.d.ts +10 -0
- package/dist/exports/ui.d.ts +20 -1
- package/dist/hooks/useHorizontalOverflow.d.ts +17 -0
- package/dist/hooks/usePrefersReducedMotion.d.ts +9 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/leadership/index.esm.js +1 -1
- package/dist/leadership/index.js +1 -1
- package/dist/legacy/components/ErrorBoundary.d.ts +19 -0
- package/dist/legacy/components/dashboards/dashboard-form.d.ts +65 -0
- package/dist/legacy/components/dashboards/dashboard-general-view.d.ts +124 -0
- package/dist/legacy/components/dashboards/dashboard-grid.d.ts +66 -0
- package/dist/legacy/components/dashboards/dashboard-list.d.ts +41 -0
- package/dist/legacy/components/dashboards/dashboard-view.d.ts +48 -0
- package/dist/legacy/components/dashboards/panels/burndown-panel.d.ts +42 -0
- package/dist/legacy/components/dashboards/panels/cartesian-panel.d.ts +67 -0
- package/dist/legacy/components/dashboards/panels/list-panel.d.ts +45 -0
- package/dist/legacy/components/dashboards/panels/matrix-risk-panel.d.ts +75 -0
- package/dist/legacy/components/dashboards/panels/numeric-panel.d.ts +33 -0
- package/dist/legacy/components/dashboards/panels/panel-error.d.ts +19 -0
- package/dist/legacy/components/dashboards/panels/panel-header.d.ts +27 -0
- package/dist/legacy/components/dashboards/panels/panel-loader.d.ts +18 -0
- package/dist/legacy/components/dashboards/panels/panel-no-data.d.ts +17 -0
- package/dist/legacy/components/dashboards/panels/panel-unavailable.d.ts +17 -0
- package/dist/legacy/components/dashboards/panels/pareto-panel.d.ts +31 -0
- package/dist/legacy/components/dashboards/panels/performance-panel.d.ts +40 -0
- package/dist/legacy/components/dashboards/panels/pie-panel.d.ts +30 -0
- package/dist/legacy/components/dashboards/panels/text-panel.d.ts +29 -0
- package/dist/legacy/components/layout/AppLayout.d.ts +11 -0
- package/dist/legacy/components/layout/AppSidebar.d.ts +10 -0
- package/dist/legacy/components/layout/BodyContent.d.ts +60 -0
- package/dist/legacy/components/layout/PageHeader.d.ts +26 -0
- package/dist/legacy/components/layout/SidebarActionTrigger.d.ts +46 -0
- package/dist/legacy/components/layout/SidebarHeader.d.ts +5 -0
- package/dist/legacy/components/layout/SidebarLogo.d.ts +5 -0
- package/dist/legacy/components/modules/AccessDeniedDialog.d.ts +43 -0
- package/dist/legacy/components/modules/ModuleAccessGuard.d.ts +61 -0
- package/dist/legacy/components/modules/ModuleGrid.d.ts +9 -0
- package/dist/legacy/components/modules/ModuleOfferContent.d.ts +20 -0
- package/dist/legacy/components/modules/ModulesContent.d.ts +23 -0
- package/dist/legacy/components/modules/ModulesDialog.d.ts +3 -0
- package/dist/legacy/components/modules/ModulesFooterCards.d.ts +10 -0
- package/dist/legacy/components/modules/icons/ModulesCardIcons.d.ts +20 -0
- package/dist/legacy/components/modules/types.d.ts +45 -0
- package/dist/legacy/components/ui/alert-dialog.d.ts +102 -0
- package/dist/legacy/components/ui/alert.d.ts +44 -0
- package/dist/legacy/components/ui/badge.d.ts +41 -0
- package/dist/legacy/components/ui/breadcrumb.d.ts +73 -0
- package/dist/legacy/components/ui/button.d.ts +66 -0
- package/dist/legacy/components/ui/calendar.d.ts +27 -0
- package/dist/legacy/components/ui/chart.d.ts +97 -0
- package/dist/legacy/components/ui/combo-tree.d.ts +103 -0
- package/dist/legacy/components/ui/combobox.d.ts +66 -0
- package/dist/legacy/components/ui/command.d.ts +89 -0
- package/dist/legacy/components/ui/context-menu.d.ts +122 -0
- package/dist/legacy/components/ui/data-list.d.ts +86 -0
- package/dist/legacy/components/ui/date-picker.d.ts +31 -0
- package/dist/legacy/components/ui/dialog-wizard.d.ts +100 -0
- package/dist/legacy/components/ui/dialog.d.ts +229 -0
- package/dist/legacy/components/ui/drawer.d.ts +94 -0
- package/dist/legacy/components/ui/dropdown-menu.d.ts +180 -0
- package/dist/legacy/components/ui/electronic-signature-dialog.d.ts +32 -0
- package/dist/legacy/components/ui/empty-state.d.ts +79 -0
- package/dist/legacy/components/ui/export-dialog.d.ts +48 -0
- package/dist/legacy/components/ui/forlogic-assembly.d.ts +32 -0
- package/dist/legacy/components/ui/forlogic-loader.d.ts +30 -0
- package/dist/legacy/components/ui/forlogic-mark.d.ts +25 -0
- package/dist/legacy/components/ui/form.d.ts +119 -0
- package/dist/legacy/components/ui/grid.d.ts +53 -0
- package/dist/legacy/components/ui/iframe-dialog.d.ts +25 -0
- package/dist/legacy/components/ui/input-group.d.ts +113 -0
- package/dist/legacy/components/ui/loading-state.d.ts +52 -0
- package/dist/legacy/components/ui/menubar.d.ts +113 -0
- package/dist/legacy/components/ui/multiselect-permissions.d.ts +84 -0
- package/dist/legacy/components/ui/online-editor-dialog.d.ts +29 -0
- package/dist/legacy/components/ui/page-breadcrumb.d.ts +77 -0
- package/dist/legacy/components/ui/pagination.d.ts +81 -0
- package/dist/legacy/components/ui/report-request-list.d.ts +65 -0
- package/dist/legacy/components/ui/resizable.d.ts +38 -0
- package/dist/legacy/components/ui/select.d.ts +94 -0
- package/dist/legacy/components/ui/sheet.d.ts +108 -0
- package/dist/legacy/components/ui/sidebar.d.ts +269 -0
- package/dist/legacy/components/ui/skeleton-variants.d.ts +41 -0
- package/dist/legacy/components/ui/skeleton.d.ts +14 -0
- package/dist/legacy/components/ui/sonner.d.ts +8 -0
- package/dist/legacy/components/ui/spinner.d.ts +11 -0
- package/dist/legacy/components/ui/split-button.d.ts +77 -0
- package/dist/legacy/components/ui/stack.d.ts +17 -0
- package/dist/legacy/components/ui/stat-card.d.ts +95 -0
- package/dist/legacy/components/ui/status-badge.d.ts +53 -0
- package/dist/legacy/components/ui/step-selector.d.ts +47 -0
- package/dist/legacy/components/ui/stimulsoft-viewer.d.ts +29 -0
- package/dist/legacy/components/ui/tab-page-layout.d.ts +52 -0
- package/dist/legacy/components/ui/terms-of-use-dialog.d.ts +103 -0
- package/dist/legacy/components/ui/toggle-group.d.ts +37 -0
- package/dist/legacy/components/ui/toggle.d.ts +33 -0
- package/dist/legacy/components/ui/tooltip.d.ts +61 -0
- package/dist/legacy/components/ui/truncated-cell.d.ts +20 -0
- package/dist/legacy/components/ui/updates-notification.d.ts +53 -0
- package/dist/legacy/components/ui/users-groups-selector.d.ts +88 -0
- package/dist/legacy/components/ui/viewer-dialog.d.ts +185 -0
- package/dist/legacy/crud/components/BaseForm.d.ts +53 -0
- package/dist/legacy/crud/components/ColumnSettingsPopover.d.ts +29 -0
- package/dist/legacy/crud/components/ContextMenu.d.ts +22 -0
- package/dist/legacy/crud/components/CrudActionBar.d.ts +59 -0
- package/dist/legacy/crud/components/CrudGrid.d.ts +53 -0
- package/dist/legacy/crud/components/CrudPagination.d.ts +18 -0
- package/dist/legacy/crud/components/CrudTable.d.ts +68 -0
- package/dist/legacy/crud/components/FilterBar.d.ts +136 -0
- package/dist/legacy/crud/components/GroupDropZone.d.ts +17 -0
- package/dist/legacy/crud/components/TableFooter.d.ts +15 -0
- package/dist/legacy/crud/createCrudPage.d.ts +140 -0
- package/dist/legacy/crud/createSimpleService.d.ts +87 -0
- package/dist/legacy/crud/generateCrudConfig.d.ts +78 -0
- package/dist/legacy/crud/hooks/useBaseForm.d.ts +47 -0
- package/dist/legacy/crud/hooks/useColumnManager.d.ts +85 -0
- package/dist/legacy/crud/hooks/useCrud.d.ts +156 -0
- package/dist/legacy/crud/primitives/ActionMenu.d.ts +70 -0
- package/dist/legacy/crud/primitives/FilterBar.d.ts +70 -0
- package/dist/legacy/crud/primitives/Pagination.d.ts +30 -0
- package/dist/legacy/crud/primitives/Table.d.ts +32 -0
- package/dist/legacy/crud/primitives/TreeTable.d.ts +8 -0
- package/dist/legacy/crud/utils/routingHelpers.d.ts +41 -0
- package/dist/legacy/hooks/useModuleAccess.d.ts +59 -0
- package/dist/legacy/hooks/useSidebarResize.d.ts +37 -0
- package/dist/legacy/index.css +3 -0
- package/dist/legacy/index.d.ts +113 -0
- package/dist/legacy/index.esm.js +1 -0
- package/dist/legacy/index.js +1 -0
- package/dist/motion/tab-crossfade.d.ts +45 -0
- package/dist/places/index.esm.js +1 -1
- package/dist/places/index.js +1 -1
- package/dist/providers/CoreProviders.d.ts +7 -1
- package/dist/sign/index.esm.js +1 -1
- package/dist/sign/index.js +1 -1
- package/dist/tailwind/index.esm.js +79 -8
- package/dist/tailwind/index.js +79 -8
- package/dist/types/sidebar.d.ts +24 -0
- package/dist/types.d.ts +4 -0
- package/dist/versioning/DsVersionSwitch.d.ts +20 -0
- package/dist/versioning/index.d.ts +12 -0
- package/dist/versioning/index.esm.js +1 -0
- package/dist/versioning/index.js +1 -0
- package/dist/versioning/registry.d.ts +28 -0
- package/dist/versioning/resolve-versioned.d.ts +23 -0
- package/dist/versioning/version-context.d.ts +45 -0
- package/dist/versioning/versioned-components.d.ts +20 -0
- package/docs/DS_KNOWLEDGE.md +385 -0
- package/docs/DS_KNOWLEDGE_COMPACT.md +75 -0
- package/docs/design-system/README.md +1 -1
- package/docs/design-system/knowledge/RULES.md +217 -0
- package/package.json +54 -7
- package/.note/memory/features/import/attachment-idempotency-registry.md +0 -8
- package/.note/memory/features/import/attachment-strategy.md +0 -30
- package/.note/memory/patterns/admin-i18n-policy.md +0 -20
- package/.note/memory/patterns/alias-url-resolution.md +0 -69
- package/.note/memory/patterns/doc-sync-rule.md +0 -35
- package/.note/memory/patterns/documentation-standard.md +0 -17
- package/.note/memory/patterns/dynamic-supabase-config.md +0 -4
- package/.note/memory/patterns/environment-detection-logic.md +0 -41
- package/.note/memory/patterns/i18n-architecture.md +0 -3
- package/.note/memory/security/lib-hardening-roadmap.md +0 -45
- package/.note/memory/security/react-router-dom-v7-migration.md +0 -33
- package/.note/memory/security/react19-migration-roadmap.md +0 -66
- package/dist/action-plans/action-plans/components/ActionPlanAttachmentsTab.d.ts +0 -21
- package/dist/action-plans/action-plans/components/ActionPlanCommentsTab.d.ts +0 -21
- package/dist/action-plans/action-plans/components/ActionPlanCostTab.d.ts +0 -15
- package/dist/action-plans/action-plans/components/ActionPlanGeneralTab.d.ts +0 -21
- package/dist/action-plans/action-plans/components/ActionPlanHistoryTab.d.ts +0 -16
- package/dist/action-plans/action-plans/components/ActionPlanPage.d.ts +0 -25
- package/dist/action-plans/action-plans/components/ActionPlanPredecessorsTab.d.ts +0 -15
- package/dist/action-plans/action-plans/components/ActionPlanProgressDialog.d.ts +0 -16
- package/dist/action-plans/action-plans/components/ActionPlanProgressTab.d.ts +0 -10
- package/dist/action-plans/action-plans/components/ActionPlanStatusBadge.d.ts +0 -18
- package/dist/action-plans/action-plans/constants.d.ts +0 -86
- package/dist/action-plans/action-plans/hooks/useActionPlan.d.ts +0 -19
- package/dist/action-plans/action-plans/hooks/useActionPlanProgress.d.ts +0 -20
- package/dist/action-plans/action-plans/index.d.ts +0 -15
- package/dist/action-plans/action-plans/types.d.ts +0 -413
- package/dist/action-plans/action-plans/utils/formatTime.d.ts +0 -24
- package/dist/action-plans/approval-flow/components/ApprovalSidenav.d.ts +0 -16
- package/dist/action-plans/approval-flow/components/ApproveDialog.d.ts +0 -13
- package/dist/action-plans/approval-flow/components/SelectApproverDialog.d.ts +0 -11
- package/dist/action-plans/approval-flow/index.d.ts +0 -4
- package/dist/action-plans/approval-flow/types.d.ts +0 -76
- package/dist/action-plans/assets/index.d.ts +0 -7
- package/dist/action-plans/audit-trail/components/AuditTrailDetails.d.ts +0 -27
- package/dist/action-plans/audit-trail/components/AuditTrailFilter.d.ts +0 -29
- package/dist/action-plans/audit-trail/components/AuditTrailPage.d.ts +0 -40
- package/dist/action-plans/audit-trail/index.d.ts +0 -9
- package/dist/action-plans/audit-trail/types.d.ts +0 -209
- package/dist/action-plans/audit-trail/utils.d.ts +0 -54
- package/dist/action-plans/auth/components/AliasRedirect.d.ts +0 -13
- package/dist/action-plans/auth/components/AliasRouteGuard.d.ts +0 -20
- package/dist/action-plans/auth/components/EditProfileDialog.d.ts +0 -13
- package/dist/action-plans/auth/components/ProtectedRoute.d.ts +0 -11
- package/dist/action-plans/auth/components/UserInfo.d.ts +0 -10
- package/dist/action-plans/auth/contexts/AuthContext.d.ts +0 -89
- package/dist/action-plans/auth/pages/CallbackPage.d.ts +0 -6
- package/dist/action-plans/auth/pages/LoginPage.d.ts +0 -2
- package/dist/action-plans/auth/services/AuthService.d.ts +0 -64
- package/dist/action-plans/auth/services/SupabaseTokenService.d.ts +0 -3
- package/dist/action-plans/auth/services/TokenManager.d.ts +0 -66
- package/dist/action-plans/auth/services/TokenRegenerationService.d.ts +0 -14
- package/dist/action-plans/auth/services/TokenService.d.ts +0 -48
- package/dist/action-plans/auth/utils/ErrorInterceptor.d.ts +0 -20
- package/dist/action-plans/components/ErrorBoundary.d.ts +0 -19
- package/dist/action-plans/components/dashboards/dashboard-form.d.ts +0 -65
- package/dist/action-plans/components/dashboards/dashboard-general-view.d.ts +0 -124
- package/dist/action-plans/components/dashboards/dashboard-grid.d.ts +0 -66
- package/dist/action-plans/components/dashboards/dashboard-list.d.ts +0 -41
- package/dist/action-plans/components/dashboards/dashboard-view.d.ts +0 -48
- package/dist/action-plans/components/dashboards/panels/burndown-panel.d.ts +0 -41
- package/dist/action-plans/components/dashboards/panels/cartesian-panel.d.ts +0 -66
- package/dist/action-plans/components/dashboards/panels/list-panel.d.ts +0 -45
- package/dist/action-plans/components/dashboards/panels/matrix-risk-panel.d.ts +0 -74
- package/dist/action-plans/components/dashboards/panels/numeric-panel.d.ts +0 -32
- package/dist/action-plans/components/dashboards/panels/panel-error.d.ts +0 -18
- package/dist/action-plans/components/dashboards/panels/panel-header.d.ts +0 -27
- package/dist/action-plans/components/dashboards/panels/panel-loader.d.ts +0 -17
- package/dist/action-plans/components/dashboards/panels/panel-no-data.d.ts +0 -16
- package/dist/action-plans/components/dashboards/panels/panel-unavailable.d.ts +0 -16
- package/dist/action-plans/components/dashboards/panels/pareto-panel.d.ts +0 -30
- package/dist/action-plans/components/dashboards/panels/performance-panel.d.ts +0 -39
- package/dist/action-plans/components/dashboards/panels/pie-panel.d.ts +0 -29
- package/dist/action-plans/components/dashboards/panels/text-panel.d.ts +0 -28
- package/dist/action-plans/components/layout/AppLayout.d.ts +0 -10
- package/dist/action-plans/components/layout/AppSidebar.d.ts +0 -10
- package/dist/action-plans/components/layout/BodyContent.d.ts +0 -60
- package/dist/action-plans/components/layout/SidebarActionTrigger.d.ts +0 -46
- package/dist/action-plans/components/layout/SidebarHeader.d.ts +0 -5
- package/dist/action-plans/components/layout/SidebarLogo.d.ts +0 -5
- package/dist/action-plans/components/modules/AccessDeniedDialog.d.ts +0 -43
- package/dist/action-plans/components/modules/ModuleAccessGuard.d.ts +0 -42
- package/dist/action-plans/components/modules/ModuleGrid.d.ts +0 -9
- package/dist/action-plans/components/modules/ModuleOfferContent.d.ts +0 -20
- package/dist/action-plans/components/modules/ModulesContent.d.ts +0 -21
- package/dist/action-plans/components/modules/ModulesDialog.d.ts +0 -3
- package/dist/action-plans/components/modules/ModulesFooterCards.d.ts +0 -10
- package/dist/action-plans/components/modules/icons/ModulesCardIcons.d.ts +0 -19
- package/dist/action-plans/components/modules/types.d.ts +0 -41
- package/dist/action-plans/components/ui/alert-dialog.d.ts +0 -102
- package/dist/action-plans/components/ui/alert.d.ts +0 -44
- package/dist/action-plans/components/ui/badge.d.ts +0 -41
- package/dist/action-plans/components/ui/breadcrumb.d.ts +0 -73
- package/dist/action-plans/components/ui/button.d.ts +0 -66
- package/dist/action-plans/components/ui/calendar.d.ts +0 -24
- package/dist/action-plans/components/ui/chart.d.ts +0 -97
- package/dist/action-plans/components/ui/combo-tree.d.ts +0 -103
- package/dist/action-plans/components/ui/combobox.d.ts +0 -64
- package/dist/action-plans/components/ui/command.d.ts +0 -89
- package/dist/action-plans/components/ui/context-menu.d.ts +0 -122
- package/dist/action-plans/components/ui/data-list.d.ts +0 -86
- package/dist/action-plans/components/ui/date-picker.d.ts +0 -19
- package/dist/action-plans/components/ui/dialog-wizard.d.ts +0 -100
- package/dist/action-plans/components/ui/dialog.d.ts +0 -229
- package/dist/action-plans/components/ui/drawer.d.ts +0 -94
- package/dist/action-plans/components/ui/dropdown-menu.d.ts +0 -180
- package/dist/action-plans/components/ui/electronic-signature-dialog.d.ts +0 -31
- package/dist/action-plans/components/ui/empty-state.d.ts +0 -79
- package/dist/action-plans/components/ui/export-dialog.d.ts +0 -48
- package/dist/action-plans/components/ui/form.d.ts +0 -119
- package/dist/action-plans/components/ui/grid.d.ts +0 -53
- package/dist/action-plans/components/ui/iframe-dialog.d.ts +0 -24
- package/dist/action-plans/components/ui/input-group.d.ts +0 -113
- package/dist/action-plans/components/ui/loading-state.d.ts +0 -52
- package/dist/action-plans/components/ui/menubar.d.ts +0 -113
- package/dist/action-plans/components/ui/multiselect-permissions.d.ts +0 -84
- package/dist/action-plans/components/ui/online-editor-dialog.d.ts +0 -28
- package/dist/action-plans/components/ui/page-breadcrumb.d.ts +0 -77
- package/dist/action-plans/components/ui/pagination.d.ts +0 -81
- package/dist/action-plans/components/ui/report-request-list.d.ts +0 -64
- package/dist/action-plans/components/ui/resizable.d.ts +0 -38
- package/dist/action-plans/components/ui/select.d.ts +0 -94
- package/dist/action-plans/components/ui/sheet.d.ts +0 -108
- package/dist/action-plans/components/ui/sidebar.d.ts +0 -269
- package/dist/action-plans/components/ui/skeleton-variants.d.ts +0 -41
- package/dist/action-plans/components/ui/skeleton.d.ts +0 -14
- package/dist/action-plans/components/ui/sonner.d.ts +0 -8
- package/dist/action-plans/components/ui/spinner.d.ts +0 -11
- package/dist/action-plans/components/ui/split-button.d.ts +0 -76
- package/dist/action-plans/components/ui/stack.d.ts +0 -17
- package/dist/action-plans/components/ui/status-badge.d.ts +0 -52
- package/dist/action-plans/components/ui/step-selector.d.ts +0 -46
- package/dist/action-plans/components/ui/stimulsoft-viewer.d.ts +0 -28
- package/dist/action-plans/components/ui/tab-page-layout.d.ts +0 -52
- package/dist/action-plans/components/ui/terms-of-use-dialog.d.ts +0 -102
- package/dist/action-plans/components/ui/toggle-group.d.ts +0 -37
- package/dist/action-plans/components/ui/toggle.d.ts +0 -33
- package/dist/action-plans/components/ui/tooltip.d.ts +0 -61
- package/dist/action-plans/components/ui/truncated-cell.d.ts +0 -20
- package/dist/action-plans/components/ui/updates-notification.d.ts +0 -47
- package/dist/action-plans/components/ui/users-groups-selector.d.ts +0 -87
- package/dist/action-plans/components/ui/viewer-dialog.d.ts +0 -184
- package/dist/action-plans/config/backend.d.ts +0 -10
- package/dist/action-plans/config/environments.d.ts +0 -27
- package/dist/action-plans/config/index.d.ts +0 -75
- package/dist/action-plans/contexts/LocaleContext.d.ts +0 -15
- package/dist/action-plans/contexts/ModalStateContext.d.ts +0 -57
- package/dist/action-plans/contexts/ModuleContext.d.ts +0 -34
- package/dist/action-plans/contexts/NavigationContext.d.ts +0 -13
- package/dist/action-plans/contexts/PageMetadataContext.d.ts +0 -48
- package/dist/action-plans/crud/components/BaseForm.d.ts +0 -52
- package/dist/action-plans/crud/components/ColumnSettingsPopover.d.ts +0 -28
- package/dist/action-plans/crud/components/ContextMenu.d.ts +0 -21
- package/dist/action-plans/crud/components/CrudActionBar.d.ts +0 -59
- package/dist/action-plans/crud/components/CrudGrid.d.ts +0 -53
- package/dist/action-plans/crud/components/CrudPagination.d.ts +0 -17
- package/dist/action-plans/crud/components/CrudTable.d.ts +0 -66
- package/dist/action-plans/crud/components/FilterBar.d.ts +0 -136
- package/dist/action-plans/crud/components/GroupDropZone.d.ts +0 -16
- package/dist/action-plans/crud/components/TableFooter.d.ts +0 -14
- package/dist/action-plans/crud/createCrudPage.d.ts +0 -134
- package/dist/action-plans/crud/createSimpleService.d.ts +0 -85
- package/dist/action-plans/crud/generateCrudConfig.d.ts +0 -78
- package/dist/action-plans/crud/hooks/useBaseForm.d.ts +0 -47
- package/dist/action-plans/crud/hooks/useColumnManager.d.ts +0 -85
- package/dist/action-plans/crud/hooks/useCrud.d.ts +0 -152
- package/dist/action-plans/crud/primitives/ActionMenu.d.ts +0 -69
- package/dist/action-plans/crud/primitives/FilterBar.d.ts +0 -69
- package/dist/action-plans/crud/primitives/Pagination.d.ts +0 -29
- package/dist/action-plans/crud/primitives/Table.d.ts +0 -31
- package/dist/action-plans/crud/primitives/TreeTable.d.ts +0 -7
- package/dist/action-plans/crud/utils/routingHelpers.d.ts +0 -41
- package/dist/action-plans/custom-form-fields/components/CustomFormFields.d.ts +0 -11
- package/dist/action-plans/custom-form-fields/fields/FormDateField.d.ts +0 -9
- package/dist/action-plans/custom-form-fields/fields/FormMultiSelectionField.d.ts +0 -9
- package/dist/action-plans/custom-form-fields/fields/FormNumericField.d.ts +0 -9
- package/dist/action-plans/custom-form-fields/fields/FormQuestionsField.d.ts +0 -9
- package/dist/action-plans/custom-form-fields/fields/FormSingleSelectionField.d.ts +0 -9
- package/dist/action-plans/custom-form-fields/fields/FormTextField.d.ts +0 -9
- package/dist/action-plans/custom-form-fields/fields/FormTimeField.d.ts +0 -9
- package/dist/action-plans/custom-form-fields/fields/FormUrlField.d.ts +0 -9
- package/dist/action-plans/custom-form-fields/fields/ReadOnlyTextField.d.ts +0 -9
- package/dist/action-plans/custom-form-fields/index.d.ts +0 -13
- package/dist/action-plans/custom-form-fields/types.d.ts +0 -206
- package/dist/action-plans/exports/action-plans.d.ts +0 -16
- package/dist/action-plans/exports/audit-trail.d.ts +0 -1
- package/dist/action-plans/exports/crud.d.ts +0 -31
- package/dist/action-plans/exports/custom-form-fields.d.ts +0 -1
- package/dist/action-plans/exports/file-upload.d.ts +0 -1
- package/dist/action-plans/exports/integrations.d.ts +0 -15
- package/dist/action-plans/exports/ui.d.ts +0 -100
- package/dist/action-plans/file-upload/components/SingleFileUpload.d.ts +0 -102
- package/dist/action-plans/file-upload/index.d.ts +0 -6
- package/dist/action-plans/file-upload/types.d.ts +0 -26
- package/dist/action-plans/file-upload/utils/formatBytes.d.ts +0 -6
- package/dist/action-plans/file-upload/utils/getFileExtension.d.ts +0 -6
- package/dist/action-plans/hooks/useModuleAccess.d.ts +0 -59
- package/dist/action-plans/hooks/useSidebarResize.d.ts +0 -37
- package/dist/action-plans/i18n/LanguageBootstrap.d.ts +0 -14
- package/dist/action-plans/i18n/config.d.ts +0 -13
- package/dist/action-plans/i18n/constants.d.ts +0 -126
- package/dist/action-plans/i18n/index.d.ts +0 -12
- package/dist/action-plans/i18n/utils.d.ts +0 -14
- package/dist/action-plans/integrations/clarity/clarityTracking.d.ts +0 -31
- package/dist/action-plans/integrations/clarity/index.d.ts +0 -3
- package/dist/action-plans/integrations/clarity/types.d.ts +0 -46
- package/dist/action-plans/integrations/clarity/useClarity.d.ts +0 -34
- package/dist/action-plans/integrations/index.d.ts +0 -5
- package/dist/action-plans/leadership/components/LeadershipDialog.d.ts +0 -10
- package/dist/action-plans/leadership/components/LeadershipForm.d.ts +0 -8
- package/dist/action-plans/leadership/components/LeadershipPage.d.ts +0 -19
- package/dist/action-plans/leadership/hooks/useLeadershipApi.d.ts +0 -4
- package/dist/action-plans/leadership/hooks/useLeadershipMutations.d.ts +0 -29
- package/dist/action-plans/leadership/index.d.ts +0 -13
- package/dist/action-plans/leadership/types.d.ts +0 -23
- package/dist/action-plans/leadership/utils/leadershipUtils.d.ts +0 -8
- package/dist/action-plans/media/components/ImageEditor.d.ts +0 -22
- package/dist/action-plans/media/components/ImageRenderer.d.ts +0 -23
- package/dist/action-plans/media/components/VideoEditor.d.ts +0 -2
- package/dist/action-plans/media/components/VideoRenderer.d.ts +0 -2
- package/dist/action-plans/media/hooks/useMediaUpload.d.ts +0 -19
- package/dist/action-plans/media/index.d.ts +0 -49
- package/dist/action-plans/media/types.d.ts +0 -66
- package/dist/action-plans/media/utils/imageHelpers.d.ts +0 -28
- package/dist/action-plans/media/utils/videoHelpers.d.ts +0 -35
- package/dist/action-plans/mind-map/components/MindMap.d.ts +0 -23
- package/dist/action-plans/mind-map/components/MindMapConnection.d.ts +0 -12
- package/dist/action-plans/mind-map/components/MindMapNodeView.d.ts +0 -24
- package/dist/action-plans/mind-map/components/MindMapToolbar.d.ts +0 -26
- package/dist/action-plans/mind-map/hooks/useMindMapKeyboard.d.ts +0 -15
- package/dist/action-plans/mind-map/hooks/useMindMapLayout.d.ts +0 -5
- package/dist/action-plans/mind-map/hooks/useMindMapPanZoom.d.ts +0 -21
- package/dist/action-plans/mind-map/hooks/useMindMapState.d.ts +0 -32
- package/dist/action-plans/mind-map/index.d.ts +0 -4
- package/dist/action-plans/mind-map/types.d.ts +0 -91
- package/dist/action-plans/mind-map/utils/export-image.d.ts +0 -9
- package/dist/action-plans/mind-map/utils/layout.d.ts +0 -15
- package/dist/action-plans/mind-map/utils/nodeOps.d.ts +0 -66
- package/dist/action-plans/mind-map/utils/serialize.d.ts +0 -10
- package/dist/action-plans/modules/softwaresMap.d.ts +0 -4
- package/dist/action-plans/places/components/ManageAccessModal.d.ts +0 -11
- package/dist/action-plans/places/components/PlaceCard.d.ts +0 -12
- package/dist/action-plans/places/components/PlacesList.d.ts +0 -12
- package/dist/action-plans/places/index.d.ts +0 -8
- package/dist/action-plans/places/services/PlaceService.d.ts +0 -9
- package/dist/action-plans/places/types.d.ts +0 -10
- package/dist/action-plans/providers/CoreProviders.d.ts +0 -107
- package/dist/action-plans/providers/index.d.ts +0 -2
- package/dist/action-plans/qualiex/components/QualiexUserField.d.ts +0 -133
- package/dist/action-plans/qualiex/hooks/useQualiexUsers.d.ts +0 -41
- package/dist/action-plans/qualiex/services/qualiexApi.d.ts +0 -75
- package/dist/action-plans/qualiex/utils/QualiexErrorInterceptor.d.ts +0 -20
- package/dist/action-plans/qualiex/utils/userPlaceUtils.d.ts +0 -16
- package/dist/action-plans/services/BaseService.d.ts +0 -51
- package/dist/action-plans/services/EmailService.d.ts +0 -110
- package/dist/action-plans/services/ErrorService.d.ts +0 -19
- package/dist/action-plans/services/QualiexEnrichmentService.d.ts +0 -53
- package/dist/action-plans/services/QualiexFieldHelpers.d.ts +0 -17
- package/dist/action-plans/setup/favicon.d.ts +0 -1
- package/dist/action-plans/setup.d.ts +0 -16
- package/dist/action-plans/sign/components/D4SignWidget.d.ts +0 -2
- package/dist/action-plans/sign/components/DocumentSigner.d.ts +0 -2
- package/dist/action-plans/sign/components/SignConfigForm.d.ts +0 -2
- package/dist/action-plans/sign/components/SignWidget.d.ts +0 -9
- package/dist/action-plans/sign/hooks/useSignConfig.d.ts +0 -6
- package/dist/action-plans/sign/index.d.ts +0 -8
- package/dist/action-plans/sign/services/signService.d.ts +0 -17
- package/dist/action-plans/sign/types.d.ts +0 -53
- package/dist/action-plans/sign/utils/loadClicksignScript.d.ts +0 -13
- package/dist/action-plans/supabase/SupabaseSingleton.d.ts +0 -34
- package/dist/action-plans/supabase/client.d.ts +0 -2
- package/dist/action-plans/supabase/legacyKeyGuard.d.ts +0 -19
- package/dist/action-plans/supabase/publicClient.d.ts +0 -2
- package/dist/action-plans/supabase/types.d.ts +0 -377
- package/dist/action-plans/team-selector/components/TeamSelector.d.ts +0 -24
- package/dist/action-plans/team-selector/index.d.ts +0 -2
- package/dist/action-plans/team-selector/types.d.ts +0 -10
- package/dist/action-plans/types/sidebar.d.ts +0 -52
- package/dist/action-plans/utils/color.d.ts +0 -26
- package/dist/action-plans/utils/formatters/currencyFormatters.d.ts +0 -1
- package/dist/action-plans/utils/formatters/dateFormatters.d.ts +0 -52
- package/dist/action-plans/utils/index.d.ts +0 -9
- package/dist/action-plans/utils/linkHelpers.d.ts +0 -9
- package/dist/action-plans/utils/load-fonts.d.ts +0 -1
- package/dist/audit-trail/action-plans/components/ActionPlanAttachmentsTab.d.ts +0 -21
- package/dist/audit-trail/action-plans/components/ActionPlanCommentsTab.d.ts +0 -21
- package/dist/audit-trail/action-plans/components/ActionPlanCostTab.d.ts +0 -15
- package/dist/audit-trail/action-plans/components/ActionPlanGeneralTab.d.ts +0 -21
- package/dist/audit-trail/action-plans/components/ActionPlanHistoryTab.d.ts +0 -16
- package/dist/audit-trail/action-plans/components/ActionPlanPage.d.ts +0 -25
- package/dist/audit-trail/action-plans/components/ActionPlanPredecessorsTab.d.ts +0 -15
- package/dist/audit-trail/action-plans/components/ActionPlanProgressDialog.d.ts +0 -16
- package/dist/audit-trail/action-plans/components/ActionPlanProgressTab.d.ts +0 -10
- package/dist/audit-trail/action-plans/components/ActionPlanStatusBadge.d.ts +0 -18
- package/dist/audit-trail/action-plans/constants.d.ts +0 -86
- package/dist/audit-trail/action-plans/hooks/useActionPlan.d.ts +0 -19
- package/dist/audit-trail/action-plans/hooks/useActionPlanProgress.d.ts +0 -20
- package/dist/audit-trail/action-plans/index.d.ts +0 -15
- package/dist/audit-trail/action-plans/types.d.ts +0 -413
- package/dist/audit-trail/action-plans/utils/formatTime.d.ts +0 -24
- package/dist/audit-trail/approval-flow/components/ApprovalSidenav.d.ts +0 -16
- package/dist/audit-trail/approval-flow/components/ApproveDialog.d.ts +0 -13
- package/dist/audit-trail/approval-flow/components/SelectApproverDialog.d.ts +0 -11
- package/dist/audit-trail/approval-flow/index.d.ts +0 -4
- package/dist/audit-trail/approval-flow/types.d.ts +0 -76
- package/dist/audit-trail/assets/index.d.ts +0 -7
- package/dist/audit-trail/audit-trail/components/AuditTrailDetails.d.ts +0 -27
- package/dist/audit-trail/audit-trail/components/AuditTrailFilter.d.ts +0 -29
- package/dist/audit-trail/audit-trail/components/AuditTrailPage.d.ts +0 -40
- package/dist/audit-trail/audit-trail/index.d.ts +0 -9
- package/dist/audit-trail/audit-trail/types.d.ts +0 -209
- package/dist/audit-trail/audit-trail/utils.d.ts +0 -54
- package/dist/audit-trail/auth/components/AliasRedirect.d.ts +0 -13
- package/dist/audit-trail/auth/components/AliasRouteGuard.d.ts +0 -20
- package/dist/audit-trail/auth/components/EditProfileDialog.d.ts +0 -13
- package/dist/audit-trail/auth/components/ProtectedRoute.d.ts +0 -11
- package/dist/audit-trail/auth/components/UserInfo.d.ts +0 -10
- package/dist/audit-trail/auth/contexts/AuthContext.d.ts +0 -89
- package/dist/audit-trail/auth/pages/CallbackPage.d.ts +0 -6
- package/dist/audit-trail/auth/pages/LoginPage.d.ts +0 -2
- package/dist/audit-trail/auth/services/AuthService.d.ts +0 -64
- package/dist/audit-trail/auth/services/SupabaseTokenService.d.ts +0 -3
- package/dist/audit-trail/auth/services/TokenManager.d.ts +0 -66
- package/dist/audit-trail/auth/services/TokenRegenerationService.d.ts +0 -14
- package/dist/audit-trail/auth/services/TokenService.d.ts +0 -48
- package/dist/audit-trail/auth/utils/ErrorInterceptor.d.ts +0 -20
- package/dist/audit-trail/components/ErrorBoundary.d.ts +0 -19
- package/dist/audit-trail/components/dashboards/dashboard-form.d.ts +0 -65
- package/dist/audit-trail/components/dashboards/dashboard-general-view.d.ts +0 -124
- package/dist/audit-trail/components/dashboards/dashboard-grid.d.ts +0 -66
- package/dist/audit-trail/components/dashboards/dashboard-list.d.ts +0 -41
- package/dist/audit-trail/components/dashboards/dashboard-panel-renderer.d.ts +0 -31
- package/dist/audit-trail/components/dashboards/dashboard-view.d.ts +0 -48
- package/dist/audit-trail/components/dashboards/helpers.d.ts +0 -86
- package/dist/audit-trail/components/dashboards/index.d.ts +0 -9
- package/dist/audit-trail/components/dashboards/panels/burndown-panel.d.ts +0 -41
- package/dist/audit-trail/components/dashboards/panels/cartesian-panel.d.ts +0 -66
- package/dist/audit-trail/components/dashboards/panels/index.d.ts +0 -14
- package/dist/audit-trail/components/dashboards/panels/list-panel.d.ts +0 -45
- package/dist/audit-trail/components/dashboards/panels/matrix-risk-panel.d.ts +0 -74
- package/dist/audit-trail/components/dashboards/panels/numeric-panel.d.ts +0 -32
- package/dist/audit-trail/components/dashboards/panels/panel-error.d.ts +0 -18
- package/dist/audit-trail/components/dashboards/panels/panel-header.d.ts +0 -27
- package/dist/audit-trail/components/dashboards/panels/panel-loader.d.ts +0 -17
- package/dist/audit-trail/components/dashboards/panels/panel-no-data.d.ts +0 -16
- package/dist/audit-trail/components/dashboards/panels/panel-unavailable.d.ts +0 -16
- package/dist/audit-trail/components/dashboards/panels/pareto-panel.d.ts +0 -30
- package/dist/audit-trail/components/dashboards/panels/performance-panel.d.ts +0 -39
- package/dist/audit-trail/components/dashboards/panels/pie-panel.d.ts +0 -29
- package/dist/audit-trail/components/dashboards/panels/text-panel.d.ts +0 -28
- package/dist/audit-trail/components/dashboards/types.d.ts +0 -755
- package/dist/audit-trail/components/layout/AppHeader.d.ts +0 -6
- package/dist/audit-trail/components/layout/AppLayout.d.ts +0 -10
- package/dist/audit-trail/components/layout/AppSidebar.d.ts +0 -10
- package/dist/audit-trail/components/layout/BodyContent.d.ts +0 -60
- package/dist/audit-trail/components/layout/SidebarActionTrigger.d.ts +0 -46
- package/dist/audit-trail/components/layout/SidebarHeader.d.ts +0 -5
- package/dist/audit-trail/components/layout/SidebarLogo.d.ts +0 -5
- package/dist/audit-trail/components/layout/sidebar-utils.d.ts +0 -12
- package/dist/audit-trail/components/modules/AccessDeniedDialog.d.ts +0 -43
- package/dist/audit-trail/components/modules/ModuleAccessGuard.d.ts +0 -42
- package/dist/audit-trail/components/modules/ModuleGrid.d.ts +0 -9
- package/dist/audit-trail/components/modules/ModuleOfferContent.d.ts +0 -20
- package/dist/audit-trail/components/modules/ModulesContent.d.ts +0 -21
- package/dist/audit-trail/components/modules/ModulesDialog.d.ts +0 -3
- package/dist/audit-trail/components/modules/ModulesFooterCards.d.ts +0 -10
- package/dist/audit-trail/components/modules/icons/ModulesCardIcons.d.ts +0 -19
- package/dist/audit-trail/components/modules/index.d.ts +0 -14
- package/dist/audit-trail/components/modules/modulesData.d.ts +0 -6
- package/dist/audit-trail/components/modules/types.d.ts +0 -41
- package/dist/audit-trail/components/ui/accordion.d.ts +0 -42
- package/dist/audit-trail/components/ui/action-button.d.ts +0 -48
- package/dist/audit-trail/components/ui/alert-dialog.d.ts +0 -102
- package/dist/audit-trail/components/ui/alert.d.ts +0 -44
- package/dist/audit-trail/components/ui/avatar.d.ts +0 -36
- package/dist/audit-trail/components/ui/badge.d.ts +0 -41
- package/dist/audit-trail/components/ui/breadcrumb.d.ts +0 -73
- package/dist/audit-trail/components/ui/button-group.d.ts +0 -24
- package/dist/audit-trail/components/ui/button.d.ts +0 -66
- package/dist/audit-trail/components/ui/calendar.d.ts +0 -24
- package/dist/audit-trail/components/ui/card.d.ts +0 -57
- package/dist/audit-trail/components/ui/chart.d.ts +0 -97
- package/dist/audit-trail/components/ui/checkbox.d.ts +0 -15
- package/dist/audit-trail/components/ui/collapsible.d.ts +0 -20
- package/dist/audit-trail/components/ui/color-picker.d.ts +0 -19
- package/dist/audit-trail/components/ui/combo-tree.d.ts +0 -103
- package/dist/audit-trail/components/ui/combobox.d.ts +0 -64
- package/dist/audit-trail/components/ui/command.d.ts +0 -89
- package/dist/audit-trail/components/ui/context-menu.d.ts +0 -122
- package/dist/audit-trail/components/ui/data-list.d.ts +0 -86
- package/dist/audit-trail/components/ui/date-picker.d.ts +0 -19
- package/dist/audit-trail/components/ui/dialog-wizard.d.ts +0 -100
- package/dist/audit-trail/components/ui/dialog.d.ts +0 -229
- package/dist/audit-trail/components/ui/disabled-menu-item.d.ts +0 -25
- package/dist/audit-trail/components/ui/drawer.d.ts +0 -94
- package/dist/audit-trail/components/ui/dropdown-menu.d.ts +0 -180
- package/dist/audit-trail/components/ui/electronic-signature-dialog.d.ts +0 -31
- package/dist/audit-trail/components/ui/empty-state.d.ts +0 -79
- package/dist/audit-trail/components/ui/export-dialog.d.ts +0 -48
- package/dist/audit-trail/components/ui/form.d.ts +0 -119
- package/dist/audit-trail/components/ui/grid.d.ts +0 -53
- package/dist/audit-trail/components/ui/hover-card.d.ts +0 -21
- package/dist/audit-trail/components/ui/icon-picker.d.ts +0 -17
- package/dist/audit-trail/components/ui/iframe-dialog.d.ts +0 -24
- package/dist/audit-trail/components/ui/input-group.d.ts +0 -113
- package/dist/audit-trail/components/ui/input.d.ts +0 -24
- package/dist/audit-trail/components/ui/label.d.ts +0 -23
- package/dist/audit-trail/components/ui/loading-state.d.ts +0 -52
- package/dist/audit-trail/components/ui/menubar.d.ts +0 -113
- package/dist/audit-trail/components/ui/multiselect-permissions.d.ts +0 -84
- package/dist/audit-trail/components/ui/navigation-menu.d.ts +0 -57
- package/dist/audit-trail/components/ui/onboarding-dialog.d.ts +0 -58
- package/dist/audit-trail/components/ui/online-editor-dialog.d.ts +0 -28
- package/dist/audit-trail/components/ui/page-breadcrumb.d.ts +0 -77
- package/dist/audit-trail/components/ui/pagination.d.ts +0 -81
- package/dist/audit-trail/components/ui/popover.d.ts +0 -57
- package/dist/audit-trail/components/ui/progress.d.ts +0 -22
- package/dist/audit-trail/components/ui/radio-group.d.ts +0 -66
- package/dist/audit-trail/components/ui/report-request-list.d.ts +0 -64
- package/dist/audit-trail/components/ui/resizable.d.ts +0 -38
- package/dist/audit-trail/components/ui/rich-text-editor.d.ts +0 -58
- package/dist/audit-trail/components/ui/scroll-area.d.ts +0 -40
- package/dist/audit-trail/components/ui/select.d.ts +0 -94
- package/dist/audit-trail/components/ui/separator.d.ts +0 -17
- package/dist/audit-trail/components/ui/sheet.d.ts +0 -108
- package/dist/audit-trail/components/ui/sidebar.d.ts +0 -269
- package/dist/audit-trail/components/ui/skeleton-variants.d.ts +0 -41
- package/dist/audit-trail/components/ui/skeleton.d.ts +0 -14
- package/dist/audit-trail/components/ui/slider.d.ts +0 -9
- package/dist/audit-trail/components/ui/sonner.d.ts +0 -8
- package/dist/audit-trail/components/ui/spinner.d.ts +0 -11
- package/dist/audit-trail/components/ui/split-button.d.ts +0 -76
- package/dist/audit-trail/components/ui/stack.d.ts +0 -17
- package/dist/audit-trail/components/ui/status-badge.d.ts +0 -52
- package/dist/audit-trail/components/ui/step-selector.d.ts +0 -46
- package/dist/audit-trail/components/ui/stimulsoft-viewer.d.ts +0 -28
- package/dist/audit-trail/components/ui/switch.d.ts +0 -25
- package/dist/audit-trail/components/ui/tab-page-layout.d.ts +0 -52
- package/dist/audit-trail/components/ui/table-resize-handle.d.ts +0 -22
- package/dist/audit-trail/components/ui/table.d.ts +0 -112
- package/dist/audit-trail/components/ui/tabs.d.ts +0 -66
- package/dist/audit-trail/components/ui/terms-of-use-dialog.d.ts +0 -102
- package/dist/audit-trail/components/ui/textarea.d.ts +0 -33
- package/dist/audit-trail/components/ui/timepicker.d.ts +0 -34
- package/dist/audit-trail/components/ui/toggle-group.d.ts +0 -37
- package/dist/audit-trail/components/ui/toggle.d.ts +0 -33
- package/dist/audit-trail/components/ui/tooltip.d.ts +0 -61
- package/dist/audit-trail/components/ui/truncated-cell.d.ts +0 -20
- package/dist/audit-trail/components/ui/typography.d.ts +0 -135
- package/dist/audit-trail/components/ui/updates-notification.d.ts +0 -47
- package/dist/audit-trail/components/ui/users-groups-selector.d.ts +0 -87
- package/dist/audit-trail/components/ui/viewer-dialog.d.ts +0 -184
- package/dist/audit-trail/config/backend.d.ts +0 -10
- package/dist/audit-trail/config/environments.d.ts +0 -27
- package/dist/audit-trail/config/index.d.ts +0 -75
- package/dist/audit-trail/contexts/LocaleContext.d.ts +0 -15
- package/dist/audit-trail/contexts/ModalStateContext.d.ts +0 -57
- package/dist/audit-trail/contexts/ModuleContext.d.ts +0 -34
- package/dist/audit-trail/contexts/NavigationContext.d.ts +0 -13
- package/dist/audit-trail/contexts/PageMetadataContext.d.ts +0 -48
- package/dist/audit-trail/crud/components/ActionMenuItems.d.ts +0 -22
- package/dist/audit-trail/crud/components/BaseForm.d.ts +0 -52
- package/dist/audit-trail/crud/components/ColumnSettingsPopover.d.ts +0 -28
- package/dist/audit-trail/crud/components/ContextMenu.d.ts +0 -21
- package/dist/audit-trail/crud/components/CrudActionBar.d.ts +0 -59
- package/dist/audit-trail/crud/components/CrudGrid.d.ts +0 -53
- package/dist/audit-trail/crud/components/CrudPagination.d.ts +0 -17
- package/dist/audit-trail/crud/components/CrudTable.d.ts +0 -66
- package/dist/audit-trail/crud/components/FilterBar.d.ts +0 -136
- package/dist/audit-trail/crud/components/GroupDropZone.d.ts +0 -16
- package/dist/audit-trail/crud/components/InlineRowActions.d.ts +0 -15
- package/dist/audit-trail/crud/components/SelectionCheckbox.d.ts +0 -9
- package/dist/audit-trail/crud/components/TableFooter.d.ts +0 -14
- package/dist/audit-trail/crud/components/TableRowActions.d.ts +0 -19
- package/dist/audit-trail/crud/createCrudPage.d.ts +0 -134
- package/dist/audit-trail/crud/createSimpleService.d.ts +0 -85
- package/dist/audit-trail/crud/generateCrudConfig.d.ts +0 -78
- package/dist/audit-trail/crud/hooks/useBaseForm.d.ts +0 -47
- package/dist/audit-trail/crud/hooks/useColumnDragReorder.d.ts +0 -19
- package/dist/audit-trail/crud/hooks/useColumnManager.d.ts +0 -85
- package/dist/audit-trail/crud/hooks/useCrud.d.ts +0 -152
- package/dist/audit-trail/crud/primitives/ActionMenu.d.ts +0 -69
- package/dist/audit-trail/crud/primitives/FilterBar.d.ts +0 -69
- package/dist/audit-trail/crud/primitives/Pagination.d.ts +0 -29
- package/dist/audit-trail/crud/primitives/Table.d.ts +0 -31
- package/dist/audit-trail/crud/primitives/TreeTable.d.ts +0 -7
- package/dist/audit-trail/crud/primitives/index.d.ts +0 -12
- package/dist/audit-trail/crud/primitives/types.d.ts +0 -199
- package/dist/audit-trail/crud/utils/routingHelpers.d.ts +0 -41
- package/dist/audit-trail/custom-form-fields/components/CustomFormFields.d.ts +0 -11
- package/dist/audit-trail/custom-form-fields/fields/FormDateField.d.ts +0 -9
- package/dist/audit-trail/custom-form-fields/fields/FormMultiSelectionField.d.ts +0 -9
- package/dist/audit-trail/custom-form-fields/fields/FormNumericField.d.ts +0 -9
- package/dist/audit-trail/custom-form-fields/fields/FormQuestionsField.d.ts +0 -9
- package/dist/audit-trail/custom-form-fields/fields/FormSingleSelectionField.d.ts +0 -9
- package/dist/audit-trail/custom-form-fields/fields/FormTextField.d.ts +0 -9
- package/dist/audit-trail/custom-form-fields/fields/FormTimeField.d.ts +0 -9
- package/dist/audit-trail/custom-form-fields/fields/FormUrlField.d.ts +0 -9
- package/dist/audit-trail/custom-form-fields/fields/ReadOnlyTextField.d.ts +0 -9
- package/dist/audit-trail/custom-form-fields/index.d.ts +0 -13
- package/dist/audit-trail/custom-form-fields/types.d.ts +0 -206
- package/dist/audit-trail/exports/action-plans.d.ts +0 -16
- package/dist/audit-trail/exports/audit-trail.d.ts +0 -1
- package/dist/audit-trail/exports/crud.d.ts +0 -31
- package/dist/audit-trail/exports/custom-form-fields.d.ts +0 -1
- package/dist/audit-trail/exports/file-upload.d.ts +0 -1
- package/dist/audit-trail/exports/integrations.d.ts +0 -15
- package/dist/audit-trail/exports/ui.d.ts +0 -100
- package/dist/audit-trail/file-upload/components/SingleFileUpload.d.ts +0 -102
- package/dist/audit-trail/file-upload/index.d.ts +0 -6
- package/dist/audit-trail/file-upload/types.d.ts +0 -26
- package/dist/audit-trail/file-upload/utils/formatBytes.d.ts +0 -6
- package/dist/audit-trail/file-upload/utils/getFileExtension.d.ts +0 -6
- package/dist/audit-trail/hooks/useActiveModules.d.ts +0 -45
- package/dist/audit-trail/hooks/useAliasFromUrl.d.ts +0 -33
- package/dist/audit-trail/hooks/useColumnResize.d.ts +0 -45
- package/dist/audit-trail/hooks/useDebounce.d.ts +0 -56
- package/dist/audit-trail/hooks/useDerivedContractedModules.d.ts +0 -8
- package/dist/audit-trail/hooks/useI18nFormatters.d.ts +0 -40
- package/dist/audit-trail/hooks/useMediaQuery.d.ts +0 -14
- package/dist/audit-trail/hooks/useModuleAccess.d.ts +0 -59
- package/dist/audit-trail/hooks/usePageTitle.d.ts +0 -10
- package/dist/audit-trail/hooks/usePermissionQuery.d.ts +0 -49
- package/dist/audit-trail/hooks/useRowResize.d.ts +0 -37
- package/dist/audit-trail/hooks/useSidebarResize.d.ts +0 -37
- package/dist/audit-trail/hooks/useUpdatesNotification.d.ts +0 -27
- package/dist/audit-trail/hooks/useWizard.d.ts +0 -40
- package/dist/audit-trail/i18n/LanguageBootstrap.d.ts +0 -14
- package/dist/audit-trail/i18n/config.d.ts +0 -13
- package/dist/audit-trail/i18n/constants.d.ts +0 -126
- package/dist/audit-trail/i18n/index.d.ts +0 -12
- package/dist/audit-trail/i18n/utils.d.ts +0 -14
- package/dist/audit-trail/integrations/clarity/clarityTracking.d.ts +0 -31
- package/dist/audit-trail/integrations/clarity/index.d.ts +0 -3
- package/dist/audit-trail/integrations/clarity/types.d.ts +0 -46
- package/dist/audit-trail/integrations/clarity/useClarity.d.ts +0 -34
- package/dist/audit-trail/integrations/index.d.ts +0 -5
- package/dist/audit-trail/leadership/components/LeadershipDialog.d.ts +0 -10
- package/dist/audit-trail/leadership/components/LeadershipForm.d.ts +0 -8
- package/dist/audit-trail/leadership/components/LeadershipPage.d.ts +0 -19
- package/dist/audit-trail/leadership/hooks/useLeadershipApi.d.ts +0 -4
- package/dist/audit-trail/leadership/hooks/useLeadershipMutations.d.ts +0 -29
- package/dist/audit-trail/leadership/index.d.ts +0 -13
- package/dist/audit-trail/leadership/types.d.ts +0 -23
- package/dist/audit-trail/leadership/utils/leadershipUtils.d.ts +0 -8
- package/dist/audit-trail/media/components/ImageEditor.d.ts +0 -22
- package/dist/audit-trail/media/components/ImageRenderer.d.ts +0 -23
- package/dist/audit-trail/media/components/VideoEditor.d.ts +0 -2
- package/dist/audit-trail/media/components/VideoRenderer.d.ts +0 -2
- package/dist/audit-trail/media/hooks/useMediaUpload.d.ts +0 -19
- package/dist/audit-trail/media/index.d.ts +0 -49
- package/dist/audit-trail/media/types.d.ts +0 -66
- package/dist/audit-trail/media/utils/imageHelpers.d.ts +0 -28
- package/dist/audit-trail/media/utils/videoHelpers.d.ts +0 -35
- package/dist/audit-trail/mind-map/components/MindMap.d.ts +0 -23
- package/dist/audit-trail/mind-map/components/MindMapConnection.d.ts +0 -12
- package/dist/audit-trail/mind-map/components/MindMapNodeView.d.ts +0 -24
- package/dist/audit-trail/mind-map/components/MindMapToolbar.d.ts +0 -26
- package/dist/audit-trail/mind-map/hooks/useMindMapKeyboard.d.ts +0 -15
- package/dist/audit-trail/mind-map/hooks/useMindMapLayout.d.ts +0 -5
- package/dist/audit-trail/mind-map/hooks/useMindMapPanZoom.d.ts +0 -21
- package/dist/audit-trail/mind-map/hooks/useMindMapState.d.ts +0 -32
- package/dist/audit-trail/mind-map/index.d.ts +0 -4
- package/dist/audit-trail/mind-map/types.d.ts +0 -91
- package/dist/audit-trail/mind-map/utils/export-image.d.ts +0 -9
- package/dist/audit-trail/mind-map/utils/layout.d.ts +0 -15
- package/dist/audit-trail/mind-map/utils/nodeOps.d.ts +0 -66
- package/dist/audit-trail/mind-map/utils/serialize.d.ts +0 -10
- package/dist/audit-trail/modules/softwaresMap.d.ts +0 -4
- package/dist/audit-trail/places/components/ManageAccessModal.d.ts +0 -11
- package/dist/audit-trail/places/components/PlaceCard.d.ts +0 -12
- package/dist/audit-trail/places/components/PlacesList.d.ts +0 -12
- package/dist/audit-trail/places/index.d.ts +0 -8
- package/dist/audit-trail/places/services/PlaceService.d.ts +0 -9
- package/dist/audit-trail/places/types.d.ts +0 -10
- package/dist/audit-trail/providers/CoreProviders.d.ts +0 -107
- package/dist/audit-trail/providers/index.d.ts +0 -2
- package/dist/audit-trail/qualiex/components/QualiexUserField.d.ts +0 -133
- package/dist/audit-trail/qualiex/hooks/useQualiexUsers.d.ts +0 -41
- package/dist/audit-trail/qualiex/services/qualiexApi.d.ts +0 -75
- package/dist/audit-trail/qualiex/utils/QualiexErrorInterceptor.d.ts +0 -20
- package/dist/audit-trail/qualiex/utils/userPlaceUtils.d.ts +0 -16
- package/dist/audit-trail/services/BaseService.d.ts +0 -51
- package/dist/audit-trail/services/EmailService.d.ts +0 -110
- package/dist/audit-trail/services/ErrorService.d.ts +0 -19
- package/dist/audit-trail/services/QualiexEnrichmentService.d.ts +0 -53
- package/dist/audit-trail/services/QualiexFieldHelpers.d.ts +0 -17
- package/dist/audit-trail/setup/favicon.d.ts +0 -1
- package/dist/audit-trail/setup.d.ts +0 -16
- package/dist/audit-trail/sign/components/D4SignWidget.d.ts +0 -2
- package/dist/audit-trail/sign/components/DocumentSigner.d.ts +0 -2
- package/dist/audit-trail/sign/components/SignConfigForm.d.ts +0 -2
- package/dist/audit-trail/sign/components/SignWidget.d.ts +0 -9
- package/dist/audit-trail/sign/hooks/useSignConfig.d.ts +0 -6
- package/dist/audit-trail/sign/index.d.ts +0 -8
- package/dist/audit-trail/sign/services/signService.d.ts +0 -17
- package/dist/audit-trail/sign/types.d.ts +0 -53
- package/dist/audit-trail/sign/utils/loadClicksignScript.d.ts +0 -13
- package/dist/audit-trail/supabase/SupabaseSingleton.d.ts +0 -34
- package/dist/audit-trail/supabase/client.d.ts +0 -2
- package/dist/audit-trail/supabase/legacyKeyGuard.d.ts +0 -19
- package/dist/audit-trail/supabase/publicClient.d.ts +0 -2
- package/dist/audit-trail/supabase/types.d.ts +0 -377
- package/dist/audit-trail/team-selector/components/TeamSelector.d.ts +0 -24
- package/dist/audit-trail/team-selector/index.d.ts +0 -2
- package/dist/audit-trail/team-selector/types.d.ts +0 -10
- package/dist/audit-trail/types/sidebar.d.ts +0 -52
- package/dist/audit-trail/utils/color.d.ts +0 -26
- package/dist/audit-trail/utils/formatters/currencyFormatters.d.ts +0 -1
- package/dist/audit-trail/utils/formatters/dateFormatters.d.ts +0 -52
- package/dist/audit-trail/utils/index.d.ts +0 -9
- package/dist/audit-trail/utils/linkHelpers.d.ts +0 -9
- package/dist/audit-trail/utils/load-fonts.d.ts +0 -1
- package/dist/leadership/action-plans/components/ActionPlanAttachmentsTab.d.ts +0 -21
- package/dist/leadership/action-plans/components/ActionPlanCommentsTab.d.ts +0 -21
- package/dist/leadership/action-plans/components/ActionPlanCostTab.d.ts +0 -15
- package/dist/leadership/action-plans/components/ActionPlanGeneralTab.d.ts +0 -21
- package/dist/leadership/action-plans/components/ActionPlanHistoryTab.d.ts +0 -16
- package/dist/leadership/action-plans/components/ActionPlanPage.d.ts +0 -25
- package/dist/leadership/action-plans/components/ActionPlanPredecessorsTab.d.ts +0 -15
- package/dist/leadership/action-plans/components/ActionPlanProgressDialog.d.ts +0 -16
- package/dist/leadership/action-plans/components/ActionPlanProgressTab.d.ts +0 -10
- package/dist/leadership/action-plans/components/ActionPlanStatusBadge.d.ts +0 -18
- package/dist/leadership/action-plans/constants.d.ts +0 -86
- package/dist/leadership/action-plans/hooks/useActionPlan.d.ts +0 -19
- package/dist/leadership/action-plans/hooks/useActionPlanProgress.d.ts +0 -20
- package/dist/leadership/action-plans/index.d.ts +0 -15
- package/dist/leadership/action-plans/types.d.ts +0 -413
- package/dist/leadership/action-plans/utils/formatTime.d.ts +0 -24
- package/dist/leadership/approval-flow/components/ApprovalSidenav.d.ts +0 -16
- package/dist/leadership/approval-flow/components/ApproveDialog.d.ts +0 -13
- package/dist/leadership/approval-flow/components/SelectApproverDialog.d.ts +0 -11
- package/dist/leadership/approval-flow/index.d.ts +0 -4
- package/dist/leadership/approval-flow/types.d.ts +0 -76
- package/dist/leadership/assets/index.d.ts +0 -7
- package/dist/leadership/audit-trail/components/AuditTrailDetails.d.ts +0 -27
- package/dist/leadership/audit-trail/components/AuditTrailFilter.d.ts +0 -29
- package/dist/leadership/audit-trail/components/AuditTrailPage.d.ts +0 -40
- package/dist/leadership/audit-trail/index.d.ts +0 -9
- package/dist/leadership/audit-trail/types.d.ts +0 -209
- package/dist/leadership/audit-trail/utils.d.ts +0 -54
- package/dist/leadership/auth/components/AliasRedirect.d.ts +0 -13
- package/dist/leadership/auth/components/AliasRouteGuard.d.ts +0 -20
- package/dist/leadership/auth/components/EditProfileDialog.d.ts +0 -13
- package/dist/leadership/auth/components/ProtectedRoute.d.ts +0 -11
- package/dist/leadership/auth/components/UserInfo.d.ts +0 -10
- package/dist/leadership/auth/contexts/AuthContext.d.ts +0 -89
- package/dist/leadership/auth/pages/CallbackPage.d.ts +0 -6
- package/dist/leadership/auth/pages/LoginPage.d.ts +0 -2
- package/dist/leadership/auth/services/AuthService.d.ts +0 -64
- package/dist/leadership/auth/services/SupabaseTokenService.d.ts +0 -3
- package/dist/leadership/auth/services/TokenManager.d.ts +0 -66
- package/dist/leadership/auth/services/TokenRegenerationService.d.ts +0 -14
- package/dist/leadership/auth/services/TokenService.d.ts +0 -48
- package/dist/leadership/auth/utils/ErrorInterceptor.d.ts +0 -20
- package/dist/leadership/components/ErrorBoundary.d.ts +0 -19
- package/dist/leadership/components/dashboards/dashboard-form.d.ts +0 -65
- package/dist/leadership/components/dashboards/dashboard-general-view.d.ts +0 -124
- package/dist/leadership/components/dashboards/dashboard-grid.d.ts +0 -66
- package/dist/leadership/components/dashboards/dashboard-list.d.ts +0 -41
- package/dist/leadership/components/dashboards/dashboard-panel-renderer.d.ts +0 -31
- package/dist/leadership/components/dashboards/dashboard-view.d.ts +0 -48
- package/dist/leadership/components/dashboards/helpers.d.ts +0 -86
- package/dist/leadership/components/dashboards/index.d.ts +0 -9
- package/dist/leadership/components/dashboards/panels/burndown-panel.d.ts +0 -41
- package/dist/leadership/components/dashboards/panels/cartesian-panel.d.ts +0 -66
- package/dist/leadership/components/dashboards/panels/index.d.ts +0 -14
- package/dist/leadership/components/dashboards/panels/list-panel.d.ts +0 -45
- package/dist/leadership/components/dashboards/panels/matrix-risk-panel.d.ts +0 -74
- package/dist/leadership/components/dashboards/panels/numeric-panel.d.ts +0 -32
- package/dist/leadership/components/dashboards/panels/panel-error.d.ts +0 -18
- package/dist/leadership/components/dashboards/panels/panel-header.d.ts +0 -27
- package/dist/leadership/components/dashboards/panels/panel-loader.d.ts +0 -17
- package/dist/leadership/components/dashboards/panels/panel-no-data.d.ts +0 -16
- package/dist/leadership/components/dashboards/panels/panel-unavailable.d.ts +0 -16
- package/dist/leadership/components/dashboards/panels/pareto-panel.d.ts +0 -30
- package/dist/leadership/components/dashboards/panels/performance-panel.d.ts +0 -39
- package/dist/leadership/components/dashboards/panels/pie-panel.d.ts +0 -29
- package/dist/leadership/components/dashboards/panels/text-panel.d.ts +0 -28
- package/dist/leadership/components/dashboards/types.d.ts +0 -755
- package/dist/leadership/components/layout/AppHeader.d.ts +0 -6
- package/dist/leadership/components/layout/AppLayout.d.ts +0 -10
- package/dist/leadership/components/layout/AppSidebar.d.ts +0 -10
- package/dist/leadership/components/layout/BodyContent.d.ts +0 -60
- package/dist/leadership/components/layout/SidebarActionTrigger.d.ts +0 -46
- package/dist/leadership/components/layout/SidebarHeader.d.ts +0 -5
- package/dist/leadership/components/layout/SidebarLogo.d.ts +0 -5
- package/dist/leadership/components/layout/sidebar-utils.d.ts +0 -12
- package/dist/leadership/components/modules/AccessDeniedDialog.d.ts +0 -43
- package/dist/leadership/components/modules/ModuleAccessGuard.d.ts +0 -42
- package/dist/leadership/components/modules/ModuleGrid.d.ts +0 -9
- package/dist/leadership/components/modules/ModuleOfferContent.d.ts +0 -20
- package/dist/leadership/components/modules/ModulesContent.d.ts +0 -21
- package/dist/leadership/components/modules/ModulesDialog.d.ts +0 -3
- package/dist/leadership/components/modules/ModulesFooterCards.d.ts +0 -10
- package/dist/leadership/components/modules/icons/ModulesCardIcons.d.ts +0 -19
- package/dist/leadership/components/modules/index.d.ts +0 -14
- package/dist/leadership/components/modules/modulesData.d.ts +0 -6
- package/dist/leadership/components/modules/types.d.ts +0 -41
- package/dist/leadership/components/ui/accordion.d.ts +0 -42
- package/dist/leadership/components/ui/action-button.d.ts +0 -48
- package/dist/leadership/components/ui/alert-dialog.d.ts +0 -102
- package/dist/leadership/components/ui/alert.d.ts +0 -44
- package/dist/leadership/components/ui/avatar.d.ts +0 -36
- package/dist/leadership/components/ui/badge.d.ts +0 -41
- package/dist/leadership/components/ui/breadcrumb.d.ts +0 -73
- package/dist/leadership/components/ui/button-group.d.ts +0 -24
- package/dist/leadership/components/ui/button.d.ts +0 -66
- package/dist/leadership/components/ui/calendar.d.ts +0 -24
- package/dist/leadership/components/ui/card.d.ts +0 -57
- package/dist/leadership/components/ui/chart.d.ts +0 -97
- package/dist/leadership/components/ui/checkbox.d.ts +0 -15
- package/dist/leadership/components/ui/collapsible.d.ts +0 -20
- package/dist/leadership/components/ui/color-picker.d.ts +0 -19
- package/dist/leadership/components/ui/combo-tree.d.ts +0 -103
- package/dist/leadership/components/ui/combobox.d.ts +0 -64
- package/dist/leadership/components/ui/command.d.ts +0 -89
- package/dist/leadership/components/ui/context-menu.d.ts +0 -122
- package/dist/leadership/components/ui/data-list.d.ts +0 -86
- package/dist/leadership/components/ui/date-picker.d.ts +0 -19
- package/dist/leadership/components/ui/dialog-wizard.d.ts +0 -100
- package/dist/leadership/components/ui/dialog.d.ts +0 -229
- package/dist/leadership/components/ui/disabled-menu-item.d.ts +0 -25
- package/dist/leadership/components/ui/drawer.d.ts +0 -94
- package/dist/leadership/components/ui/dropdown-menu.d.ts +0 -180
- package/dist/leadership/components/ui/electronic-signature-dialog.d.ts +0 -31
- package/dist/leadership/components/ui/empty-state.d.ts +0 -79
- package/dist/leadership/components/ui/export-dialog.d.ts +0 -48
- package/dist/leadership/components/ui/form.d.ts +0 -119
- package/dist/leadership/components/ui/grid.d.ts +0 -53
- package/dist/leadership/components/ui/hover-card.d.ts +0 -21
- package/dist/leadership/components/ui/icon-picker.d.ts +0 -17
- package/dist/leadership/components/ui/iframe-dialog.d.ts +0 -24
- package/dist/leadership/components/ui/input-group.d.ts +0 -113
- package/dist/leadership/components/ui/input.d.ts +0 -24
- package/dist/leadership/components/ui/label.d.ts +0 -23
- package/dist/leadership/components/ui/loading-state.d.ts +0 -52
- package/dist/leadership/components/ui/menubar.d.ts +0 -113
- package/dist/leadership/components/ui/multiselect-permissions.d.ts +0 -84
- package/dist/leadership/components/ui/navigation-menu.d.ts +0 -57
- package/dist/leadership/components/ui/onboarding-dialog.d.ts +0 -58
- package/dist/leadership/components/ui/online-editor-dialog.d.ts +0 -28
- package/dist/leadership/components/ui/page-breadcrumb.d.ts +0 -77
- package/dist/leadership/components/ui/pagination.d.ts +0 -81
- package/dist/leadership/components/ui/popover.d.ts +0 -57
- package/dist/leadership/components/ui/progress.d.ts +0 -22
- package/dist/leadership/components/ui/radio-group.d.ts +0 -66
- package/dist/leadership/components/ui/report-request-list.d.ts +0 -64
- package/dist/leadership/components/ui/resizable.d.ts +0 -38
- package/dist/leadership/components/ui/rich-text-editor.d.ts +0 -58
- package/dist/leadership/components/ui/scroll-area.d.ts +0 -40
- package/dist/leadership/components/ui/select.d.ts +0 -94
- package/dist/leadership/components/ui/separator.d.ts +0 -17
- package/dist/leadership/components/ui/sheet.d.ts +0 -108
- package/dist/leadership/components/ui/sidebar.d.ts +0 -269
- package/dist/leadership/components/ui/skeleton-variants.d.ts +0 -41
- package/dist/leadership/components/ui/skeleton.d.ts +0 -14
- package/dist/leadership/components/ui/slider.d.ts +0 -9
- package/dist/leadership/components/ui/sonner.d.ts +0 -8
- package/dist/leadership/components/ui/spinner.d.ts +0 -11
- package/dist/leadership/components/ui/split-button.d.ts +0 -76
- package/dist/leadership/components/ui/stack.d.ts +0 -17
- package/dist/leadership/components/ui/status-badge.d.ts +0 -52
- package/dist/leadership/components/ui/step-selector.d.ts +0 -46
- package/dist/leadership/components/ui/stimulsoft-viewer.d.ts +0 -28
- package/dist/leadership/components/ui/switch.d.ts +0 -25
- package/dist/leadership/components/ui/tab-page-layout.d.ts +0 -52
- package/dist/leadership/components/ui/table-resize-handle.d.ts +0 -22
- package/dist/leadership/components/ui/table.d.ts +0 -112
- package/dist/leadership/components/ui/tabs.d.ts +0 -66
- package/dist/leadership/components/ui/terms-of-use-dialog.d.ts +0 -102
- package/dist/leadership/components/ui/textarea.d.ts +0 -33
- package/dist/leadership/components/ui/timepicker.d.ts +0 -34
- package/dist/leadership/components/ui/toggle-group.d.ts +0 -37
- package/dist/leadership/components/ui/toggle.d.ts +0 -33
- package/dist/leadership/components/ui/tooltip.d.ts +0 -61
- package/dist/leadership/components/ui/truncated-cell.d.ts +0 -20
- package/dist/leadership/components/ui/typography.d.ts +0 -135
- package/dist/leadership/components/ui/updates-notification.d.ts +0 -47
- package/dist/leadership/components/ui/users-groups-selector.d.ts +0 -87
- package/dist/leadership/components/ui/viewer-dialog.d.ts +0 -184
- package/dist/leadership/config/backend.d.ts +0 -10
- package/dist/leadership/config/environments.d.ts +0 -27
- package/dist/leadership/config/index.d.ts +0 -75
- package/dist/leadership/contexts/LocaleContext.d.ts +0 -15
- package/dist/leadership/contexts/ModalStateContext.d.ts +0 -57
- package/dist/leadership/contexts/ModuleContext.d.ts +0 -34
- package/dist/leadership/contexts/NavigationContext.d.ts +0 -13
- package/dist/leadership/contexts/PageMetadataContext.d.ts +0 -48
- package/dist/leadership/crud/components/ActionMenuItems.d.ts +0 -22
- package/dist/leadership/crud/components/BaseForm.d.ts +0 -52
- package/dist/leadership/crud/components/ColumnSettingsPopover.d.ts +0 -28
- package/dist/leadership/crud/components/ContextMenu.d.ts +0 -21
- package/dist/leadership/crud/components/CrudActionBar.d.ts +0 -59
- package/dist/leadership/crud/components/CrudGrid.d.ts +0 -53
- package/dist/leadership/crud/components/CrudPagination.d.ts +0 -17
- package/dist/leadership/crud/components/CrudTable.d.ts +0 -66
- package/dist/leadership/crud/components/FilterBar.d.ts +0 -136
- package/dist/leadership/crud/components/GroupDropZone.d.ts +0 -16
- package/dist/leadership/crud/components/InlineRowActions.d.ts +0 -15
- package/dist/leadership/crud/components/SelectionCheckbox.d.ts +0 -9
- package/dist/leadership/crud/components/TableFooter.d.ts +0 -14
- package/dist/leadership/crud/components/TableRowActions.d.ts +0 -19
- package/dist/leadership/crud/createCrudPage.d.ts +0 -134
- package/dist/leadership/crud/createSimpleService.d.ts +0 -85
- package/dist/leadership/crud/generateCrudConfig.d.ts +0 -78
- package/dist/leadership/crud/hooks/useBaseForm.d.ts +0 -47
- package/dist/leadership/crud/hooks/useColumnDragReorder.d.ts +0 -19
- package/dist/leadership/crud/hooks/useColumnManager.d.ts +0 -85
- package/dist/leadership/crud/hooks/useCrud.d.ts +0 -152
- package/dist/leadership/crud/primitives/ActionMenu.d.ts +0 -69
- package/dist/leadership/crud/primitives/FilterBar.d.ts +0 -69
- package/dist/leadership/crud/primitives/Pagination.d.ts +0 -29
- package/dist/leadership/crud/primitives/Table.d.ts +0 -31
- package/dist/leadership/crud/primitives/TreeTable.d.ts +0 -7
- package/dist/leadership/crud/primitives/index.d.ts +0 -12
- package/dist/leadership/crud/primitives/types.d.ts +0 -199
- package/dist/leadership/crud/utils/routingHelpers.d.ts +0 -41
- package/dist/leadership/custom-form-fields/components/CustomFormFields.d.ts +0 -11
- package/dist/leadership/custom-form-fields/fields/FormDateField.d.ts +0 -9
- package/dist/leadership/custom-form-fields/fields/FormMultiSelectionField.d.ts +0 -9
- package/dist/leadership/custom-form-fields/fields/FormNumericField.d.ts +0 -9
- package/dist/leadership/custom-form-fields/fields/FormQuestionsField.d.ts +0 -9
- package/dist/leadership/custom-form-fields/fields/FormSingleSelectionField.d.ts +0 -9
- package/dist/leadership/custom-form-fields/fields/FormTextField.d.ts +0 -9
- package/dist/leadership/custom-form-fields/fields/FormTimeField.d.ts +0 -9
- package/dist/leadership/custom-form-fields/fields/FormUrlField.d.ts +0 -9
- package/dist/leadership/custom-form-fields/fields/ReadOnlyTextField.d.ts +0 -9
- package/dist/leadership/custom-form-fields/index.d.ts +0 -13
- package/dist/leadership/custom-form-fields/types.d.ts +0 -206
- package/dist/leadership/exports/action-plans.d.ts +0 -16
- package/dist/leadership/exports/audit-trail.d.ts +0 -1
- package/dist/leadership/exports/crud.d.ts +0 -31
- package/dist/leadership/exports/custom-form-fields.d.ts +0 -1
- package/dist/leadership/exports/file-upload.d.ts +0 -1
- package/dist/leadership/exports/integrations.d.ts +0 -15
- package/dist/leadership/exports/ui.d.ts +0 -100
- package/dist/leadership/file-upload/components/SingleFileUpload.d.ts +0 -102
- package/dist/leadership/file-upload/index.d.ts +0 -6
- package/dist/leadership/file-upload/types.d.ts +0 -26
- package/dist/leadership/file-upload/utils/formatBytes.d.ts +0 -6
- package/dist/leadership/file-upload/utils/getFileExtension.d.ts +0 -6
- package/dist/leadership/hooks/useActiveModules.d.ts +0 -45
- package/dist/leadership/hooks/useAliasFromUrl.d.ts +0 -33
- package/dist/leadership/hooks/useColumnResize.d.ts +0 -45
- package/dist/leadership/hooks/useDebounce.d.ts +0 -56
- package/dist/leadership/hooks/useDerivedContractedModules.d.ts +0 -8
- package/dist/leadership/hooks/useI18nFormatters.d.ts +0 -40
- package/dist/leadership/hooks/useMediaQuery.d.ts +0 -14
- package/dist/leadership/hooks/useModuleAccess.d.ts +0 -59
- package/dist/leadership/hooks/usePageTitle.d.ts +0 -10
- package/dist/leadership/hooks/usePermissionQuery.d.ts +0 -49
- package/dist/leadership/hooks/useRowResize.d.ts +0 -37
- package/dist/leadership/hooks/useSidebarResize.d.ts +0 -37
- package/dist/leadership/hooks/useUpdatesNotification.d.ts +0 -27
- package/dist/leadership/hooks/useWizard.d.ts +0 -40
- package/dist/leadership/i18n/LanguageBootstrap.d.ts +0 -14
- package/dist/leadership/i18n/config.d.ts +0 -13
- package/dist/leadership/i18n/constants.d.ts +0 -126
- package/dist/leadership/i18n/index.d.ts +0 -12
- package/dist/leadership/i18n/utils.d.ts +0 -14
- package/dist/leadership/integrations/clarity/clarityTracking.d.ts +0 -31
- package/dist/leadership/integrations/clarity/index.d.ts +0 -3
- package/dist/leadership/integrations/clarity/types.d.ts +0 -46
- package/dist/leadership/integrations/clarity/useClarity.d.ts +0 -34
- package/dist/leadership/integrations/index.d.ts +0 -5
- package/dist/leadership/leadership/components/LeadershipDialog.d.ts +0 -10
- package/dist/leadership/leadership/components/LeadershipForm.d.ts +0 -8
- package/dist/leadership/leadership/components/LeadershipPage.d.ts +0 -19
- package/dist/leadership/leadership/hooks/useLeadershipApi.d.ts +0 -4
- package/dist/leadership/leadership/hooks/useLeadershipMutations.d.ts +0 -29
- package/dist/leadership/leadership/index.d.ts +0 -13
- package/dist/leadership/leadership/types.d.ts +0 -23
- package/dist/leadership/leadership/utils/leadershipUtils.d.ts +0 -8
- package/dist/leadership/media/components/ImageEditor.d.ts +0 -22
- package/dist/leadership/media/components/ImageRenderer.d.ts +0 -23
- package/dist/leadership/media/components/VideoEditor.d.ts +0 -2
- package/dist/leadership/media/components/VideoRenderer.d.ts +0 -2
- package/dist/leadership/media/hooks/useMediaUpload.d.ts +0 -19
- package/dist/leadership/media/index.d.ts +0 -49
- package/dist/leadership/media/types.d.ts +0 -66
- package/dist/leadership/media/utils/imageHelpers.d.ts +0 -28
- package/dist/leadership/media/utils/videoHelpers.d.ts +0 -35
- package/dist/leadership/mind-map/components/MindMap.d.ts +0 -23
- package/dist/leadership/mind-map/components/MindMapConnection.d.ts +0 -12
- package/dist/leadership/mind-map/components/MindMapNodeView.d.ts +0 -24
- package/dist/leadership/mind-map/components/MindMapToolbar.d.ts +0 -26
- package/dist/leadership/mind-map/hooks/useMindMapKeyboard.d.ts +0 -15
- package/dist/leadership/mind-map/hooks/useMindMapLayout.d.ts +0 -5
- package/dist/leadership/mind-map/hooks/useMindMapPanZoom.d.ts +0 -21
- package/dist/leadership/mind-map/hooks/useMindMapState.d.ts +0 -32
- package/dist/leadership/mind-map/index.d.ts +0 -4
- package/dist/leadership/mind-map/types.d.ts +0 -91
- package/dist/leadership/mind-map/utils/export-image.d.ts +0 -9
- package/dist/leadership/mind-map/utils/layout.d.ts +0 -15
- package/dist/leadership/mind-map/utils/nodeOps.d.ts +0 -66
- package/dist/leadership/mind-map/utils/serialize.d.ts +0 -10
- package/dist/leadership/modules/softwaresMap.d.ts +0 -4
- package/dist/leadership/places/components/ManageAccessModal.d.ts +0 -11
- package/dist/leadership/places/components/PlaceCard.d.ts +0 -12
- package/dist/leadership/places/components/PlacesList.d.ts +0 -12
- package/dist/leadership/places/index.d.ts +0 -8
- package/dist/leadership/places/services/PlaceService.d.ts +0 -9
- package/dist/leadership/places/types.d.ts +0 -10
- package/dist/leadership/providers/CoreProviders.d.ts +0 -107
- package/dist/leadership/providers/index.d.ts +0 -2
- package/dist/leadership/qualiex/components/QualiexUserField.d.ts +0 -133
- package/dist/leadership/qualiex/hooks/useQualiexUsers.d.ts +0 -41
- package/dist/leadership/qualiex/services/qualiexApi.d.ts +0 -75
- package/dist/leadership/qualiex/utils/QualiexErrorInterceptor.d.ts +0 -20
- package/dist/leadership/qualiex/utils/userPlaceUtils.d.ts +0 -16
- package/dist/leadership/services/BaseService.d.ts +0 -51
- package/dist/leadership/services/EmailService.d.ts +0 -110
- package/dist/leadership/services/ErrorService.d.ts +0 -19
- package/dist/leadership/services/QualiexEnrichmentService.d.ts +0 -53
- package/dist/leadership/services/QualiexFieldHelpers.d.ts +0 -17
- package/dist/leadership/setup/favicon.d.ts +0 -1
- package/dist/leadership/setup.d.ts +0 -16
- package/dist/leadership/sign/components/D4SignWidget.d.ts +0 -2
- package/dist/leadership/sign/components/DocumentSigner.d.ts +0 -2
- package/dist/leadership/sign/components/SignConfigForm.d.ts +0 -2
- package/dist/leadership/sign/components/SignWidget.d.ts +0 -9
- package/dist/leadership/sign/hooks/useSignConfig.d.ts +0 -6
- package/dist/leadership/sign/index.d.ts +0 -8
- package/dist/leadership/sign/services/signService.d.ts +0 -17
- package/dist/leadership/sign/types.d.ts +0 -53
- package/dist/leadership/sign/utils/loadClicksignScript.d.ts +0 -13
- package/dist/leadership/supabase/SupabaseSingleton.d.ts +0 -34
- package/dist/leadership/supabase/client.d.ts +0 -2
- package/dist/leadership/supabase/legacyKeyGuard.d.ts +0 -19
- package/dist/leadership/supabase/publicClient.d.ts +0 -2
- package/dist/leadership/supabase/types.d.ts +0 -377
- package/dist/leadership/team-selector/components/TeamSelector.d.ts +0 -24
- package/dist/leadership/team-selector/index.d.ts +0 -2
- package/dist/leadership/team-selector/types.d.ts +0 -10
- package/dist/leadership/types/sidebar.d.ts +0 -52
- package/dist/leadership/utils/color.d.ts +0 -26
- package/dist/leadership/utils/formatters/currencyFormatters.d.ts +0 -1
- package/dist/leadership/utils/formatters/dateFormatters.d.ts +0 -52
- package/dist/leadership/utils/index.d.ts +0 -9
- package/dist/leadership/utils/linkHelpers.d.ts +0 -9
- package/dist/leadership/utils/load-fonts.d.ts +0 -1
- package/dist/places/action-plans/components/ActionPlanAttachmentsTab.d.ts +0 -21
- package/dist/places/action-plans/components/ActionPlanCommentsTab.d.ts +0 -21
- package/dist/places/action-plans/components/ActionPlanCostTab.d.ts +0 -15
- package/dist/places/action-plans/components/ActionPlanGeneralTab.d.ts +0 -21
- package/dist/places/action-plans/components/ActionPlanHistoryTab.d.ts +0 -16
- package/dist/places/action-plans/components/ActionPlanPage.d.ts +0 -25
- package/dist/places/action-plans/components/ActionPlanPredecessorsTab.d.ts +0 -15
- package/dist/places/action-plans/components/ActionPlanProgressDialog.d.ts +0 -16
- package/dist/places/action-plans/components/ActionPlanProgressTab.d.ts +0 -10
- package/dist/places/action-plans/components/ActionPlanStatusBadge.d.ts +0 -18
- package/dist/places/action-plans/constants.d.ts +0 -86
- package/dist/places/action-plans/hooks/useActionPlan.d.ts +0 -19
- package/dist/places/action-plans/hooks/useActionPlanProgress.d.ts +0 -20
- package/dist/places/action-plans/index.d.ts +0 -15
- package/dist/places/action-plans/types.d.ts +0 -413
- package/dist/places/action-plans/utils/formatTime.d.ts +0 -24
- package/dist/places/approval-flow/components/ApprovalSidenav.d.ts +0 -16
- package/dist/places/approval-flow/components/ApproveDialog.d.ts +0 -13
- package/dist/places/approval-flow/components/SelectApproverDialog.d.ts +0 -11
- package/dist/places/approval-flow/index.d.ts +0 -4
- package/dist/places/approval-flow/types.d.ts +0 -76
- package/dist/places/assets/index.d.ts +0 -7
- package/dist/places/audit-trail/components/AuditTrailDetails.d.ts +0 -27
- package/dist/places/audit-trail/components/AuditTrailFilter.d.ts +0 -29
- package/dist/places/audit-trail/components/AuditTrailPage.d.ts +0 -40
- package/dist/places/audit-trail/index.d.ts +0 -9
- package/dist/places/audit-trail/types.d.ts +0 -209
- package/dist/places/audit-trail/utils.d.ts +0 -54
- package/dist/places/auth/components/AliasRedirect.d.ts +0 -13
- package/dist/places/auth/components/AliasRouteGuard.d.ts +0 -20
- package/dist/places/auth/components/EditProfileDialog.d.ts +0 -13
- package/dist/places/auth/components/ProtectedRoute.d.ts +0 -11
- package/dist/places/auth/components/UserInfo.d.ts +0 -10
- package/dist/places/auth/contexts/AuthContext.d.ts +0 -89
- package/dist/places/auth/pages/CallbackPage.d.ts +0 -6
- package/dist/places/auth/pages/LoginPage.d.ts +0 -2
- package/dist/places/auth/services/AuthService.d.ts +0 -64
- package/dist/places/auth/services/SupabaseTokenService.d.ts +0 -3
- package/dist/places/auth/services/TokenManager.d.ts +0 -66
- package/dist/places/auth/services/TokenRegenerationService.d.ts +0 -14
- package/dist/places/auth/services/TokenService.d.ts +0 -48
- package/dist/places/auth/utils/ErrorInterceptor.d.ts +0 -20
- package/dist/places/components/ErrorBoundary.d.ts +0 -19
- package/dist/places/components/dashboards/dashboard-form.d.ts +0 -65
- package/dist/places/components/dashboards/dashboard-general-view.d.ts +0 -124
- package/dist/places/components/dashboards/dashboard-grid.d.ts +0 -66
- package/dist/places/components/dashboards/dashboard-list.d.ts +0 -41
- package/dist/places/components/dashboards/dashboard-panel-renderer.d.ts +0 -31
- package/dist/places/components/dashboards/dashboard-view.d.ts +0 -48
- package/dist/places/components/dashboards/helpers.d.ts +0 -86
- package/dist/places/components/dashboards/index.d.ts +0 -9
- package/dist/places/components/dashboards/panels/burndown-panel.d.ts +0 -41
- package/dist/places/components/dashboards/panels/cartesian-panel.d.ts +0 -66
- package/dist/places/components/dashboards/panels/index.d.ts +0 -14
- package/dist/places/components/dashboards/panels/list-panel.d.ts +0 -45
- package/dist/places/components/dashboards/panels/matrix-risk-panel.d.ts +0 -74
- package/dist/places/components/dashboards/panels/numeric-panel.d.ts +0 -32
- package/dist/places/components/dashboards/panels/panel-error.d.ts +0 -18
- package/dist/places/components/dashboards/panels/panel-header.d.ts +0 -27
- package/dist/places/components/dashboards/panels/panel-loader.d.ts +0 -17
- package/dist/places/components/dashboards/panels/panel-no-data.d.ts +0 -16
- package/dist/places/components/dashboards/panels/panel-unavailable.d.ts +0 -16
- package/dist/places/components/dashboards/panels/pareto-panel.d.ts +0 -30
- package/dist/places/components/dashboards/panels/performance-panel.d.ts +0 -39
- package/dist/places/components/dashboards/panels/pie-panel.d.ts +0 -29
- package/dist/places/components/dashboards/panels/text-panel.d.ts +0 -28
- package/dist/places/components/dashboards/types.d.ts +0 -755
- package/dist/places/components/layout/AppHeader.d.ts +0 -6
- package/dist/places/components/layout/AppLayout.d.ts +0 -10
- package/dist/places/components/layout/AppSidebar.d.ts +0 -10
- package/dist/places/components/layout/BodyContent.d.ts +0 -60
- package/dist/places/components/layout/SidebarActionTrigger.d.ts +0 -46
- package/dist/places/components/layout/SidebarHeader.d.ts +0 -5
- package/dist/places/components/layout/SidebarLogo.d.ts +0 -5
- package/dist/places/components/layout/sidebar-utils.d.ts +0 -12
- package/dist/places/components/modules/AccessDeniedDialog.d.ts +0 -43
- package/dist/places/components/modules/ModuleAccessGuard.d.ts +0 -42
- package/dist/places/components/modules/ModuleGrid.d.ts +0 -9
- package/dist/places/components/modules/ModuleOfferContent.d.ts +0 -20
- package/dist/places/components/modules/ModulesContent.d.ts +0 -21
- package/dist/places/components/modules/ModulesDialog.d.ts +0 -3
- package/dist/places/components/modules/ModulesFooterCards.d.ts +0 -10
- package/dist/places/components/modules/icons/ModulesCardIcons.d.ts +0 -19
- package/dist/places/components/modules/index.d.ts +0 -14
- package/dist/places/components/modules/modulesData.d.ts +0 -6
- package/dist/places/components/modules/types.d.ts +0 -41
- package/dist/places/components/ui/accordion.d.ts +0 -42
- package/dist/places/components/ui/action-button.d.ts +0 -48
- package/dist/places/components/ui/alert-dialog.d.ts +0 -102
- package/dist/places/components/ui/alert.d.ts +0 -44
- package/dist/places/components/ui/avatar.d.ts +0 -36
- package/dist/places/components/ui/badge.d.ts +0 -41
- package/dist/places/components/ui/breadcrumb.d.ts +0 -73
- package/dist/places/components/ui/button-group.d.ts +0 -24
- package/dist/places/components/ui/button.d.ts +0 -66
- package/dist/places/components/ui/calendar.d.ts +0 -24
- package/dist/places/components/ui/card.d.ts +0 -57
- package/dist/places/components/ui/chart.d.ts +0 -97
- package/dist/places/components/ui/checkbox.d.ts +0 -15
- package/dist/places/components/ui/collapsible.d.ts +0 -20
- package/dist/places/components/ui/color-picker.d.ts +0 -19
- package/dist/places/components/ui/combo-tree.d.ts +0 -103
- package/dist/places/components/ui/combobox.d.ts +0 -64
- package/dist/places/components/ui/command.d.ts +0 -89
- package/dist/places/components/ui/context-menu.d.ts +0 -122
- package/dist/places/components/ui/data-list.d.ts +0 -86
- package/dist/places/components/ui/date-picker.d.ts +0 -19
- package/dist/places/components/ui/dialog-wizard.d.ts +0 -100
- package/dist/places/components/ui/dialog.d.ts +0 -229
- package/dist/places/components/ui/disabled-menu-item.d.ts +0 -25
- package/dist/places/components/ui/drawer.d.ts +0 -94
- package/dist/places/components/ui/dropdown-menu.d.ts +0 -180
- package/dist/places/components/ui/electronic-signature-dialog.d.ts +0 -31
- package/dist/places/components/ui/empty-state.d.ts +0 -79
- package/dist/places/components/ui/export-dialog.d.ts +0 -48
- package/dist/places/components/ui/form.d.ts +0 -119
- package/dist/places/components/ui/grid.d.ts +0 -53
- package/dist/places/components/ui/hover-card.d.ts +0 -21
- package/dist/places/components/ui/icon-picker.d.ts +0 -17
- package/dist/places/components/ui/iframe-dialog.d.ts +0 -24
- package/dist/places/components/ui/input-group.d.ts +0 -113
- package/dist/places/components/ui/input.d.ts +0 -24
- package/dist/places/components/ui/label.d.ts +0 -23
- package/dist/places/components/ui/loading-state.d.ts +0 -52
- package/dist/places/components/ui/menubar.d.ts +0 -113
- package/dist/places/components/ui/multiselect-permissions.d.ts +0 -84
- package/dist/places/components/ui/navigation-menu.d.ts +0 -57
- package/dist/places/components/ui/onboarding-dialog.d.ts +0 -58
- package/dist/places/components/ui/online-editor-dialog.d.ts +0 -28
- package/dist/places/components/ui/page-breadcrumb.d.ts +0 -77
- package/dist/places/components/ui/pagination.d.ts +0 -81
- package/dist/places/components/ui/popover.d.ts +0 -57
- package/dist/places/components/ui/progress.d.ts +0 -22
- package/dist/places/components/ui/radio-group.d.ts +0 -66
- package/dist/places/components/ui/report-request-list.d.ts +0 -64
- package/dist/places/components/ui/resizable.d.ts +0 -38
- package/dist/places/components/ui/rich-text-editor.d.ts +0 -58
- package/dist/places/components/ui/scroll-area.d.ts +0 -40
- package/dist/places/components/ui/select.d.ts +0 -94
- package/dist/places/components/ui/separator.d.ts +0 -17
- package/dist/places/components/ui/sheet.d.ts +0 -108
- package/dist/places/components/ui/sidebar.d.ts +0 -269
- package/dist/places/components/ui/skeleton-variants.d.ts +0 -41
- package/dist/places/components/ui/skeleton.d.ts +0 -14
- package/dist/places/components/ui/slider.d.ts +0 -9
- package/dist/places/components/ui/sonner.d.ts +0 -8
- package/dist/places/components/ui/spinner.d.ts +0 -11
- package/dist/places/components/ui/split-button.d.ts +0 -76
- package/dist/places/components/ui/stack.d.ts +0 -17
- package/dist/places/components/ui/status-badge.d.ts +0 -52
- package/dist/places/components/ui/step-selector.d.ts +0 -46
- package/dist/places/components/ui/stimulsoft-viewer.d.ts +0 -28
- package/dist/places/components/ui/switch.d.ts +0 -25
- package/dist/places/components/ui/tab-page-layout.d.ts +0 -52
- package/dist/places/components/ui/table-resize-handle.d.ts +0 -22
- package/dist/places/components/ui/table.d.ts +0 -112
- package/dist/places/components/ui/tabs.d.ts +0 -66
- package/dist/places/components/ui/terms-of-use-dialog.d.ts +0 -102
- package/dist/places/components/ui/textarea.d.ts +0 -33
- package/dist/places/components/ui/timepicker.d.ts +0 -34
- package/dist/places/components/ui/toggle-group.d.ts +0 -37
- package/dist/places/components/ui/toggle.d.ts +0 -33
- package/dist/places/components/ui/tooltip.d.ts +0 -61
- package/dist/places/components/ui/truncated-cell.d.ts +0 -20
- package/dist/places/components/ui/typography.d.ts +0 -135
- package/dist/places/components/ui/updates-notification.d.ts +0 -47
- package/dist/places/components/ui/users-groups-selector.d.ts +0 -87
- package/dist/places/components/ui/viewer-dialog.d.ts +0 -184
- package/dist/places/config/backend.d.ts +0 -10
- package/dist/places/config/environments.d.ts +0 -27
- package/dist/places/config/index.d.ts +0 -75
- package/dist/places/contexts/LocaleContext.d.ts +0 -15
- package/dist/places/contexts/ModalStateContext.d.ts +0 -57
- package/dist/places/contexts/ModuleContext.d.ts +0 -34
- package/dist/places/contexts/NavigationContext.d.ts +0 -13
- package/dist/places/contexts/PageMetadataContext.d.ts +0 -48
- package/dist/places/crud/components/ActionMenuItems.d.ts +0 -22
- package/dist/places/crud/components/BaseForm.d.ts +0 -52
- package/dist/places/crud/components/ColumnSettingsPopover.d.ts +0 -28
- package/dist/places/crud/components/ContextMenu.d.ts +0 -21
- package/dist/places/crud/components/CrudActionBar.d.ts +0 -59
- package/dist/places/crud/components/CrudGrid.d.ts +0 -53
- package/dist/places/crud/components/CrudPagination.d.ts +0 -17
- package/dist/places/crud/components/CrudTable.d.ts +0 -66
- package/dist/places/crud/components/FilterBar.d.ts +0 -136
- package/dist/places/crud/components/GroupDropZone.d.ts +0 -16
- package/dist/places/crud/components/InlineRowActions.d.ts +0 -15
- package/dist/places/crud/components/SelectionCheckbox.d.ts +0 -9
- package/dist/places/crud/components/TableFooter.d.ts +0 -14
- package/dist/places/crud/components/TableRowActions.d.ts +0 -19
- package/dist/places/crud/createCrudPage.d.ts +0 -134
- package/dist/places/crud/createSimpleService.d.ts +0 -85
- package/dist/places/crud/generateCrudConfig.d.ts +0 -78
- package/dist/places/crud/hooks/useBaseForm.d.ts +0 -47
- package/dist/places/crud/hooks/useColumnDragReorder.d.ts +0 -19
- package/dist/places/crud/hooks/useColumnManager.d.ts +0 -85
- package/dist/places/crud/hooks/useCrud.d.ts +0 -152
- package/dist/places/crud/primitives/ActionMenu.d.ts +0 -69
- package/dist/places/crud/primitives/FilterBar.d.ts +0 -69
- package/dist/places/crud/primitives/Pagination.d.ts +0 -29
- package/dist/places/crud/primitives/Table.d.ts +0 -31
- package/dist/places/crud/primitives/TreeTable.d.ts +0 -7
- package/dist/places/crud/primitives/index.d.ts +0 -12
- package/dist/places/crud/primitives/types.d.ts +0 -199
- package/dist/places/crud/utils/routingHelpers.d.ts +0 -41
- package/dist/places/custom-form-fields/components/CustomFormFields.d.ts +0 -11
- package/dist/places/custom-form-fields/fields/FormDateField.d.ts +0 -9
- package/dist/places/custom-form-fields/fields/FormMultiSelectionField.d.ts +0 -9
- package/dist/places/custom-form-fields/fields/FormNumericField.d.ts +0 -9
- package/dist/places/custom-form-fields/fields/FormQuestionsField.d.ts +0 -9
- package/dist/places/custom-form-fields/fields/FormSingleSelectionField.d.ts +0 -9
- package/dist/places/custom-form-fields/fields/FormTextField.d.ts +0 -9
- package/dist/places/custom-form-fields/fields/FormTimeField.d.ts +0 -9
- package/dist/places/custom-form-fields/fields/FormUrlField.d.ts +0 -9
- package/dist/places/custom-form-fields/fields/ReadOnlyTextField.d.ts +0 -9
- package/dist/places/custom-form-fields/index.d.ts +0 -13
- package/dist/places/custom-form-fields/types.d.ts +0 -206
- package/dist/places/exports/action-plans.d.ts +0 -16
- package/dist/places/exports/audit-trail.d.ts +0 -1
- package/dist/places/exports/crud.d.ts +0 -31
- package/dist/places/exports/custom-form-fields.d.ts +0 -1
- package/dist/places/exports/file-upload.d.ts +0 -1
- package/dist/places/exports/integrations.d.ts +0 -15
- package/dist/places/exports/ui.d.ts +0 -100
- package/dist/places/file-upload/components/SingleFileUpload.d.ts +0 -102
- package/dist/places/file-upload/index.d.ts +0 -6
- package/dist/places/file-upload/types.d.ts +0 -26
- package/dist/places/file-upload/utils/formatBytes.d.ts +0 -6
- package/dist/places/file-upload/utils/getFileExtension.d.ts +0 -6
- package/dist/places/hooks/useActiveModules.d.ts +0 -45
- package/dist/places/hooks/useAliasFromUrl.d.ts +0 -33
- package/dist/places/hooks/useColumnResize.d.ts +0 -45
- package/dist/places/hooks/useDebounce.d.ts +0 -56
- package/dist/places/hooks/useDerivedContractedModules.d.ts +0 -8
- package/dist/places/hooks/useI18nFormatters.d.ts +0 -40
- package/dist/places/hooks/useMediaQuery.d.ts +0 -14
- package/dist/places/hooks/useModuleAccess.d.ts +0 -59
- package/dist/places/hooks/usePageTitle.d.ts +0 -10
- package/dist/places/hooks/usePermissionQuery.d.ts +0 -49
- package/dist/places/hooks/useRowResize.d.ts +0 -37
- package/dist/places/hooks/useSidebarResize.d.ts +0 -37
- package/dist/places/hooks/useUpdatesNotification.d.ts +0 -27
- package/dist/places/hooks/useWizard.d.ts +0 -40
- package/dist/places/i18n/LanguageBootstrap.d.ts +0 -14
- package/dist/places/i18n/config.d.ts +0 -13
- package/dist/places/i18n/constants.d.ts +0 -126
- package/dist/places/i18n/index.d.ts +0 -12
- package/dist/places/i18n/utils.d.ts +0 -14
- package/dist/places/integrations/clarity/clarityTracking.d.ts +0 -31
- package/dist/places/integrations/clarity/index.d.ts +0 -3
- package/dist/places/integrations/clarity/types.d.ts +0 -46
- package/dist/places/integrations/clarity/useClarity.d.ts +0 -34
- package/dist/places/integrations/index.d.ts +0 -5
- package/dist/places/leadership/components/LeadershipDialog.d.ts +0 -10
- package/dist/places/leadership/components/LeadershipForm.d.ts +0 -8
- package/dist/places/leadership/components/LeadershipPage.d.ts +0 -19
- package/dist/places/leadership/hooks/useLeadershipApi.d.ts +0 -4
- package/dist/places/leadership/hooks/useLeadershipMutations.d.ts +0 -29
- package/dist/places/leadership/index.d.ts +0 -13
- package/dist/places/leadership/types.d.ts +0 -23
- package/dist/places/leadership/utils/leadershipUtils.d.ts +0 -8
- package/dist/places/media/components/ImageEditor.d.ts +0 -22
- package/dist/places/media/components/ImageRenderer.d.ts +0 -23
- package/dist/places/media/components/VideoEditor.d.ts +0 -2
- package/dist/places/media/components/VideoRenderer.d.ts +0 -2
- package/dist/places/media/hooks/useMediaUpload.d.ts +0 -19
- package/dist/places/media/index.d.ts +0 -49
- package/dist/places/media/types.d.ts +0 -66
- package/dist/places/media/utils/imageHelpers.d.ts +0 -28
- package/dist/places/media/utils/videoHelpers.d.ts +0 -35
- package/dist/places/mind-map/components/MindMap.d.ts +0 -23
- package/dist/places/mind-map/components/MindMapConnection.d.ts +0 -12
- package/dist/places/mind-map/components/MindMapNodeView.d.ts +0 -24
- package/dist/places/mind-map/components/MindMapToolbar.d.ts +0 -26
- package/dist/places/mind-map/hooks/useMindMapKeyboard.d.ts +0 -15
- package/dist/places/mind-map/hooks/useMindMapLayout.d.ts +0 -5
- package/dist/places/mind-map/hooks/useMindMapPanZoom.d.ts +0 -21
- package/dist/places/mind-map/hooks/useMindMapState.d.ts +0 -32
- package/dist/places/mind-map/index.d.ts +0 -4
- package/dist/places/mind-map/types.d.ts +0 -91
- package/dist/places/mind-map/utils/export-image.d.ts +0 -9
- package/dist/places/mind-map/utils/layout.d.ts +0 -15
- package/dist/places/mind-map/utils/nodeOps.d.ts +0 -66
- package/dist/places/mind-map/utils/serialize.d.ts +0 -10
- package/dist/places/modules/softwaresMap.d.ts +0 -4
- package/dist/places/places/components/ManageAccessModal.d.ts +0 -11
- package/dist/places/places/components/PlaceCard.d.ts +0 -12
- package/dist/places/places/components/PlacesList.d.ts +0 -12
- package/dist/places/places/index.d.ts +0 -8
- package/dist/places/places/services/PlaceService.d.ts +0 -9
- package/dist/places/places/types.d.ts +0 -10
- package/dist/places/providers/CoreProviders.d.ts +0 -107
- package/dist/places/providers/index.d.ts +0 -2
- package/dist/places/qualiex/components/QualiexUserField.d.ts +0 -133
- package/dist/places/qualiex/hooks/useQualiexUsers.d.ts +0 -41
- package/dist/places/qualiex/services/qualiexApi.d.ts +0 -75
- package/dist/places/qualiex/utils/QualiexErrorInterceptor.d.ts +0 -20
- package/dist/places/qualiex/utils/userPlaceUtils.d.ts +0 -16
- package/dist/places/services/BaseService.d.ts +0 -51
- package/dist/places/services/EmailService.d.ts +0 -110
- package/dist/places/services/ErrorService.d.ts +0 -19
- package/dist/places/services/QualiexEnrichmentService.d.ts +0 -53
- package/dist/places/services/QualiexFieldHelpers.d.ts +0 -17
- package/dist/places/setup/favicon.d.ts +0 -1
- package/dist/places/setup.d.ts +0 -16
- package/dist/places/sign/components/D4SignWidget.d.ts +0 -2
- package/dist/places/sign/components/DocumentSigner.d.ts +0 -2
- package/dist/places/sign/components/SignConfigForm.d.ts +0 -2
- package/dist/places/sign/components/SignWidget.d.ts +0 -9
- package/dist/places/sign/hooks/useSignConfig.d.ts +0 -6
- package/dist/places/sign/index.d.ts +0 -8
- package/dist/places/sign/services/signService.d.ts +0 -17
- package/dist/places/sign/types.d.ts +0 -53
- package/dist/places/sign/utils/loadClicksignScript.d.ts +0 -13
- package/dist/places/supabase/SupabaseSingleton.d.ts +0 -34
- package/dist/places/supabase/client.d.ts +0 -2
- package/dist/places/supabase/legacyKeyGuard.d.ts +0 -19
- package/dist/places/supabase/publicClient.d.ts +0 -2
- package/dist/places/supabase/types.d.ts +0 -377
- package/dist/places/team-selector/components/TeamSelector.d.ts +0 -24
- package/dist/places/team-selector/index.d.ts +0 -2
- package/dist/places/team-selector/types.d.ts +0 -10
- package/dist/places/types/sidebar.d.ts +0 -52
- package/dist/places/utils/color.d.ts +0 -26
- package/dist/places/utils/formatters/currencyFormatters.d.ts +0 -1
- package/dist/places/utils/formatters/dateFormatters.d.ts +0 -52
- package/dist/places/utils/index.d.ts +0 -9
- package/dist/places/utils/linkHelpers.d.ts +0 -9
- package/dist/places/utils/load-fonts.d.ts +0 -1
- package/dist/sign/action-plans/components/ActionPlanAttachmentsTab.d.ts +0 -21
- package/dist/sign/action-plans/components/ActionPlanCommentsTab.d.ts +0 -21
- package/dist/sign/action-plans/components/ActionPlanCostTab.d.ts +0 -15
- package/dist/sign/action-plans/components/ActionPlanGeneralTab.d.ts +0 -21
- package/dist/sign/action-plans/components/ActionPlanHistoryTab.d.ts +0 -16
- package/dist/sign/action-plans/components/ActionPlanPage.d.ts +0 -25
- package/dist/sign/action-plans/components/ActionPlanPredecessorsTab.d.ts +0 -15
- package/dist/sign/action-plans/components/ActionPlanProgressDialog.d.ts +0 -16
- package/dist/sign/action-plans/components/ActionPlanProgressTab.d.ts +0 -10
- package/dist/sign/action-plans/components/ActionPlanStatusBadge.d.ts +0 -18
- package/dist/sign/action-plans/constants.d.ts +0 -86
- package/dist/sign/action-plans/hooks/useActionPlan.d.ts +0 -19
- package/dist/sign/action-plans/hooks/useActionPlanProgress.d.ts +0 -20
- package/dist/sign/action-plans/index.d.ts +0 -15
- package/dist/sign/action-plans/types.d.ts +0 -413
- package/dist/sign/action-plans/utils/formatTime.d.ts +0 -24
- package/dist/sign/approval-flow/components/ApprovalSidenav.d.ts +0 -16
- package/dist/sign/approval-flow/components/ApproveDialog.d.ts +0 -13
- package/dist/sign/approval-flow/components/SelectApproverDialog.d.ts +0 -11
- package/dist/sign/approval-flow/index.d.ts +0 -4
- package/dist/sign/approval-flow/types.d.ts +0 -76
- package/dist/sign/assets/index.d.ts +0 -7
- package/dist/sign/audit-trail/components/AuditTrailDetails.d.ts +0 -27
- package/dist/sign/audit-trail/components/AuditTrailFilter.d.ts +0 -29
- package/dist/sign/audit-trail/components/AuditTrailPage.d.ts +0 -40
- package/dist/sign/audit-trail/index.d.ts +0 -9
- package/dist/sign/audit-trail/types.d.ts +0 -209
- package/dist/sign/audit-trail/utils.d.ts +0 -54
- package/dist/sign/auth/components/AliasRedirect.d.ts +0 -13
- package/dist/sign/auth/components/AliasRouteGuard.d.ts +0 -20
- package/dist/sign/auth/components/EditProfileDialog.d.ts +0 -13
- package/dist/sign/auth/components/ProtectedRoute.d.ts +0 -11
- package/dist/sign/auth/components/UserInfo.d.ts +0 -10
- package/dist/sign/auth/contexts/AuthContext.d.ts +0 -89
- package/dist/sign/auth/pages/CallbackPage.d.ts +0 -6
- package/dist/sign/auth/pages/LoginPage.d.ts +0 -2
- package/dist/sign/auth/services/AuthService.d.ts +0 -64
- package/dist/sign/auth/services/SupabaseTokenService.d.ts +0 -3
- package/dist/sign/auth/services/TokenManager.d.ts +0 -66
- package/dist/sign/auth/services/TokenRegenerationService.d.ts +0 -14
- package/dist/sign/auth/services/TokenService.d.ts +0 -48
- package/dist/sign/auth/utils/ErrorInterceptor.d.ts +0 -20
- package/dist/sign/components/ErrorBoundary.d.ts +0 -19
- package/dist/sign/components/dashboards/dashboard-form.d.ts +0 -65
- package/dist/sign/components/dashboards/dashboard-general-view.d.ts +0 -124
- package/dist/sign/components/dashboards/dashboard-grid.d.ts +0 -66
- package/dist/sign/components/dashboards/dashboard-list.d.ts +0 -41
- package/dist/sign/components/dashboards/dashboard-panel-renderer.d.ts +0 -31
- package/dist/sign/components/dashboards/dashboard-view.d.ts +0 -48
- package/dist/sign/components/dashboards/helpers.d.ts +0 -86
- package/dist/sign/components/dashboards/index.d.ts +0 -9
- package/dist/sign/components/dashboards/panels/burndown-panel.d.ts +0 -41
- package/dist/sign/components/dashboards/panels/cartesian-panel.d.ts +0 -66
- package/dist/sign/components/dashboards/panels/index.d.ts +0 -14
- package/dist/sign/components/dashboards/panels/list-panel.d.ts +0 -45
- package/dist/sign/components/dashboards/panels/matrix-risk-panel.d.ts +0 -74
- package/dist/sign/components/dashboards/panels/numeric-panel.d.ts +0 -32
- package/dist/sign/components/dashboards/panels/panel-error.d.ts +0 -18
- package/dist/sign/components/dashboards/panels/panel-header.d.ts +0 -27
- package/dist/sign/components/dashboards/panels/panel-loader.d.ts +0 -17
- package/dist/sign/components/dashboards/panels/panel-no-data.d.ts +0 -16
- package/dist/sign/components/dashboards/panels/panel-unavailable.d.ts +0 -16
- package/dist/sign/components/dashboards/panels/pareto-panel.d.ts +0 -30
- package/dist/sign/components/dashboards/panels/performance-panel.d.ts +0 -39
- package/dist/sign/components/dashboards/panels/pie-panel.d.ts +0 -29
- package/dist/sign/components/dashboards/panels/text-panel.d.ts +0 -28
- package/dist/sign/components/dashboards/types.d.ts +0 -755
- package/dist/sign/components/layout/AppHeader.d.ts +0 -6
- package/dist/sign/components/layout/AppLayout.d.ts +0 -10
- package/dist/sign/components/layout/AppSidebar.d.ts +0 -10
- package/dist/sign/components/layout/BodyContent.d.ts +0 -60
- package/dist/sign/components/layout/SidebarActionTrigger.d.ts +0 -46
- package/dist/sign/components/layout/SidebarHeader.d.ts +0 -5
- package/dist/sign/components/layout/SidebarLogo.d.ts +0 -5
- package/dist/sign/components/layout/sidebar-utils.d.ts +0 -12
- package/dist/sign/components/modules/AccessDeniedDialog.d.ts +0 -43
- package/dist/sign/components/modules/ModuleAccessGuard.d.ts +0 -42
- package/dist/sign/components/modules/ModuleGrid.d.ts +0 -9
- package/dist/sign/components/modules/ModuleOfferContent.d.ts +0 -20
- package/dist/sign/components/modules/ModulesContent.d.ts +0 -21
- package/dist/sign/components/modules/ModulesDialog.d.ts +0 -3
- package/dist/sign/components/modules/ModulesFooterCards.d.ts +0 -10
- package/dist/sign/components/modules/icons/ModulesCardIcons.d.ts +0 -19
- package/dist/sign/components/modules/index.d.ts +0 -14
- package/dist/sign/components/modules/modulesData.d.ts +0 -6
- package/dist/sign/components/modules/types.d.ts +0 -41
- package/dist/sign/components/ui/accordion.d.ts +0 -42
- package/dist/sign/components/ui/action-button.d.ts +0 -48
- package/dist/sign/components/ui/alert-dialog.d.ts +0 -102
- package/dist/sign/components/ui/alert.d.ts +0 -44
- package/dist/sign/components/ui/avatar.d.ts +0 -36
- package/dist/sign/components/ui/badge.d.ts +0 -41
- package/dist/sign/components/ui/breadcrumb.d.ts +0 -73
- package/dist/sign/components/ui/button-group.d.ts +0 -24
- package/dist/sign/components/ui/button.d.ts +0 -66
- package/dist/sign/components/ui/calendar.d.ts +0 -24
- package/dist/sign/components/ui/card.d.ts +0 -57
- package/dist/sign/components/ui/chart.d.ts +0 -97
- package/dist/sign/components/ui/checkbox.d.ts +0 -15
- package/dist/sign/components/ui/collapsible.d.ts +0 -20
- package/dist/sign/components/ui/color-picker.d.ts +0 -19
- package/dist/sign/components/ui/combo-tree.d.ts +0 -103
- package/dist/sign/components/ui/combobox.d.ts +0 -64
- package/dist/sign/components/ui/command.d.ts +0 -89
- package/dist/sign/components/ui/context-menu.d.ts +0 -122
- package/dist/sign/components/ui/data-list.d.ts +0 -86
- package/dist/sign/components/ui/date-picker.d.ts +0 -19
- package/dist/sign/components/ui/dialog-wizard.d.ts +0 -100
- package/dist/sign/components/ui/dialog.d.ts +0 -229
- package/dist/sign/components/ui/disabled-menu-item.d.ts +0 -25
- package/dist/sign/components/ui/drawer.d.ts +0 -94
- package/dist/sign/components/ui/dropdown-menu.d.ts +0 -180
- package/dist/sign/components/ui/electronic-signature-dialog.d.ts +0 -31
- package/dist/sign/components/ui/empty-state.d.ts +0 -79
- package/dist/sign/components/ui/export-dialog.d.ts +0 -48
- package/dist/sign/components/ui/form.d.ts +0 -119
- package/dist/sign/components/ui/grid.d.ts +0 -53
- package/dist/sign/components/ui/hover-card.d.ts +0 -21
- package/dist/sign/components/ui/icon-picker.d.ts +0 -17
- package/dist/sign/components/ui/iframe-dialog.d.ts +0 -24
- package/dist/sign/components/ui/input-group.d.ts +0 -113
- package/dist/sign/components/ui/input.d.ts +0 -24
- package/dist/sign/components/ui/label.d.ts +0 -23
- package/dist/sign/components/ui/loading-state.d.ts +0 -52
- package/dist/sign/components/ui/menubar.d.ts +0 -113
- package/dist/sign/components/ui/multiselect-permissions.d.ts +0 -84
- package/dist/sign/components/ui/navigation-menu.d.ts +0 -57
- package/dist/sign/components/ui/onboarding-dialog.d.ts +0 -58
- package/dist/sign/components/ui/online-editor-dialog.d.ts +0 -28
- package/dist/sign/components/ui/page-breadcrumb.d.ts +0 -77
- package/dist/sign/components/ui/pagination.d.ts +0 -81
- package/dist/sign/components/ui/popover.d.ts +0 -57
- package/dist/sign/components/ui/progress.d.ts +0 -22
- package/dist/sign/components/ui/radio-group.d.ts +0 -66
- package/dist/sign/components/ui/report-request-list.d.ts +0 -64
- package/dist/sign/components/ui/resizable.d.ts +0 -38
- package/dist/sign/components/ui/rich-text-editor.d.ts +0 -58
- package/dist/sign/components/ui/scroll-area.d.ts +0 -40
- package/dist/sign/components/ui/select.d.ts +0 -94
- package/dist/sign/components/ui/separator.d.ts +0 -17
- package/dist/sign/components/ui/sheet.d.ts +0 -108
- package/dist/sign/components/ui/sidebar.d.ts +0 -269
- package/dist/sign/components/ui/skeleton-variants.d.ts +0 -41
- package/dist/sign/components/ui/skeleton.d.ts +0 -14
- package/dist/sign/components/ui/slider.d.ts +0 -9
- package/dist/sign/components/ui/sonner.d.ts +0 -8
- package/dist/sign/components/ui/spinner.d.ts +0 -11
- package/dist/sign/components/ui/split-button.d.ts +0 -76
- package/dist/sign/components/ui/stack.d.ts +0 -17
- package/dist/sign/components/ui/status-badge.d.ts +0 -52
- package/dist/sign/components/ui/step-selector.d.ts +0 -46
- package/dist/sign/components/ui/stimulsoft-viewer.d.ts +0 -28
- package/dist/sign/components/ui/switch.d.ts +0 -25
- package/dist/sign/components/ui/tab-page-layout.d.ts +0 -52
- package/dist/sign/components/ui/table-resize-handle.d.ts +0 -22
- package/dist/sign/components/ui/table.d.ts +0 -112
- package/dist/sign/components/ui/tabs.d.ts +0 -66
- package/dist/sign/components/ui/terms-of-use-dialog.d.ts +0 -102
- package/dist/sign/components/ui/textarea.d.ts +0 -33
- package/dist/sign/components/ui/timepicker.d.ts +0 -34
- package/dist/sign/components/ui/toggle-group.d.ts +0 -37
- package/dist/sign/components/ui/toggle.d.ts +0 -33
- package/dist/sign/components/ui/tooltip.d.ts +0 -61
- package/dist/sign/components/ui/truncated-cell.d.ts +0 -20
- package/dist/sign/components/ui/typography.d.ts +0 -135
- package/dist/sign/components/ui/updates-notification.d.ts +0 -47
- package/dist/sign/components/ui/users-groups-selector.d.ts +0 -87
- package/dist/sign/components/ui/viewer-dialog.d.ts +0 -184
- package/dist/sign/config/backend.d.ts +0 -10
- package/dist/sign/config/environments.d.ts +0 -27
- package/dist/sign/config/index.d.ts +0 -75
- package/dist/sign/contexts/LocaleContext.d.ts +0 -15
- package/dist/sign/contexts/ModalStateContext.d.ts +0 -57
- package/dist/sign/contexts/ModuleContext.d.ts +0 -34
- package/dist/sign/contexts/NavigationContext.d.ts +0 -13
- package/dist/sign/contexts/PageMetadataContext.d.ts +0 -48
- package/dist/sign/crud/components/ActionMenuItems.d.ts +0 -22
- package/dist/sign/crud/components/BaseForm.d.ts +0 -52
- package/dist/sign/crud/components/ColumnSettingsPopover.d.ts +0 -28
- package/dist/sign/crud/components/ContextMenu.d.ts +0 -21
- package/dist/sign/crud/components/CrudActionBar.d.ts +0 -59
- package/dist/sign/crud/components/CrudGrid.d.ts +0 -53
- package/dist/sign/crud/components/CrudPagination.d.ts +0 -17
- package/dist/sign/crud/components/CrudTable.d.ts +0 -66
- package/dist/sign/crud/components/FilterBar.d.ts +0 -136
- package/dist/sign/crud/components/GroupDropZone.d.ts +0 -16
- package/dist/sign/crud/components/InlineRowActions.d.ts +0 -15
- package/dist/sign/crud/components/SelectionCheckbox.d.ts +0 -9
- package/dist/sign/crud/components/TableFooter.d.ts +0 -14
- package/dist/sign/crud/components/TableRowActions.d.ts +0 -19
- package/dist/sign/crud/createCrudPage.d.ts +0 -134
- package/dist/sign/crud/createSimpleService.d.ts +0 -85
- package/dist/sign/crud/generateCrudConfig.d.ts +0 -78
- package/dist/sign/crud/hooks/useBaseForm.d.ts +0 -47
- package/dist/sign/crud/hooks/useColumnDragReorder.d.ts +0 -19
- package/dist/sign/crud/hooks/useColumnManager.d.ts +0 -85
- package/dist/sign/crud/hooks/useCrud.d.ts +0 -152
- package/dist/sign/crud/primitives/ActionMenu.d.ts +0 -69
- package/dist/sign/crud/primitives/FilterBar.d.ts +0 -69
- package/dist/sign/crud/primitives/Pagination.d.ts +0 -29
- package/dist/sign/crud/primitives/Table.d.ts +0 -31
- package/dist/sign/crud/primitives/TreeTable.d.ts +0 -7
- package/dist/sign/crud/primitives/index.d.ts +0 -12
- package/dist/sign/crud/primitives/types.d.ts +0 -199
- package/dist/sign/crud/utils/routingHelpers.d.ts +0 -41
- package/dist/sign/custom-form-fields/components/CustomFormFields.d.ts +0 -11
- package/dist/sign/custom-form-fields/fields/FormDateField.d.ts +0 -9
- package/dist/sign/custom-form-fields/fields/FormMultiSelectionField.d.ts +0 -9
- package/dist/sign/custom-form-fields/fields/FormNumericField.d.ts +0 -9
- package/dist/sign/custom-form-fields/fields/FormQuestionsField.d.ts +0 -9
- package/dist/sign/custom-form-fields/fields/FormSingleSelectionField.d.ts +0 -9
- package/dist/sign/custom-form-fields/fields/FormTextField.d.ts +0 -9
- package/dist/sign/custom-form-fields/fields/FormTimeField.d.ts +0 -9
- package/dist/sign/custom-form-fields/fields/FormUrlField.d.ts +0 -9
- package/dist/sign/custom-form-fields/fields/ReadOnlyTextField.d.ts +0 -9
- package/dist/sign/custom-form-fields/index.d.ts +0 -13
- package/dist/sign/custom-form-fields/types.d.ts +0 -206
- package/dist/sign/exports/action-plans.d.ts +0 -16
- package/dist/sign/exports/audit-trail.d.ts +0 -1
- package/dist/sign/exports/crud.d.ts +0 -31
- package/dist/sign/exports/custom-form-fields.d.ts +0 -1
- package/dist/sign/exports/file-upload.d.ts +0 -1
- package/dist/sign/exports/integrations.d.ts +0 -15
- package/dist/sign/exports/ui.d.ts +0 -100
- package/dist/sign/file-upload/components/SingleFileUpload.d.ts +0 -102
- package/dist/sign/file-upload/index.d.ts +0 -6
- package/dist/sign/file-upload/types.d.ts +0 -26
- package/dist/sign/file-upload/utils/formatBytes.d.ts +0 -6
- package/dist/sign/file-upload/utils/getFileExtension.d.ts +0 -6
- package/dist/sign/hooks/useActiveModules.d.ts +0 -45
- package/dist/sign/hooks/useAliasFromUrl.d.ts +0 -33
- package/dist/sign/hooks/useColumnResize.d.ts +0 -45
- package/dist/sign/hooks/useDebounce.d.ts +0 -56
- package/dist/sign/hooks/useDerivedContractedModules.d.ts +0 -8
- package/dist/sign/hooks/useI18nFormatters.d.ts +0 -40
- package/dist/sign/hooks/useMediaQuery.d.ts +0 -14
- package/dist/sign/hooks/useModuleAccess.d.ts +0 -59
- package/dist/sign/hooks/usePageTitle.d.ts +0 -10
- package/dist/sign/hooks/usePermissionQuery.d.ts +0 -49
- package/dist/sign/hooks/useRowResize.d.ts +0 -37
- package/dist/sign/hooks/useSidebarResize.d.ts +0 -37
- package/dist/sign/hooks/useUpdatesNotification.d.ts +0 -27
- package/dist/sign/hooks/useWizard.d.ts +0 -40
- package/dist/sign/i18n/LanguageBootstrap.d.ts +0 -14
- package/dist/sign/i18n/config.d.ts +0 -13
- package/dist/sign/i18n/constants.d.ts +0 -126
- package/dist/sign/i18n/index.d.ts +0 -12
- package/dist/sign/i18n/utils.d.ts +0 -14
- package/dist/sign/integrations/clarity/clarityTracking.d.ts +0 -31
- package/dist/sign/integrations/clarity/index.d.ts +0 -3
- package/dist/sign/integrations/clarity/types.d.ts +0 -46
- package/dist/sign/integrations/clarity/useClarity.d.ts +0 -34
- package/dist/sign/integrations/index.d.ts +0 -5
- package/dist/sign/leadership/components/LeadershipDialog.d.ts +0 -10
- package/dist/sign/leadership/components/LeadershipForm.d.ts +0 -8
- package/dist/sign/leadership/components/LeadershipPage.d.ts +0 -19
- package/dist/sign/leadership/hooks/useLeadershipApi.d.ts +0 -4
- package/dist/sign/leadership/hooks/useLeadershipMutations.d.ts +0 -29
- package/dist/sign/leadership/index.d.ts +0 -13
- package/dist/sign/leadership/types.d.ts +0 -23
- package/dist/sign/leadership/utils/leadershipUtils.d.ts +0 -8
- package/dist/sign/media/components/ImageEditor.d.ts +0 -22
- package/dist/sign/media/components/ImageRenderer.d.ts +0 -23
- package/dist/sign/media/components/VideoEditor.d.ts +0 -2
- package/dist/sign/media/components/VideoRenderer.d.ts +0 -2
- package/dist/sign/media/hooks/useMediaUpload.d.ts +0 -19
- package/dist/sign/media/index.d.ts +0 -49
- package/dist/sign/media/types.d.ts +0 -66
- package/dist/sign/media/utils/imageHelpers.d.ts +0 -28
- package/dist/sign/media/utils/videoHelpers.d.ts +0 -35
- package/dist/sign/mind-map/components/MindMap.d.ts +0 -23
- package/dist/sign/mind-map/components/MindMapConnection.d.ts +0 -12
- package/dist/sign/mind-map/components/MindMapNodeView.d.ts +0 -24
- package/dist/sign/mind-map/components/MindMapToolbar.d.ts +0 -26
- package/dist/sign/mind-map/hooks/useMindMapKeyboard.d.ts +0 -15
- package/dist/sign/mind-map/hooks/useMindMapLayout.d.ts +0 -5
- package/dist/sign/mind-map/hooks/useMindMapPanZoom.d.ts +0 -21
- package/dist/sign/mind-map/hooks/useMindMapState.d.ts +0 -32
- package/dist/sign/mind-map/index.d.ts +0 -4
- package/dist/sign/mind-map/types.d.ts +0 -91
- package/dist/sign/mind-map/utils/export-image.d.ts +0 -9
- package/dist/sign/mind-map/utils/layout.d.ts +0 -15
- package/dist/sign/mind-map/utils/nodeOps.d.ts +0 -66
- package/dist/sign/mind-map/utils/serialize.d.ts +0 -10
- package/dist/sign/modules/softwaresMap.d.ts +0 -4
- package/dist/sign/places/components/ManageAccessModal.d.ts +0 -11
- package/dist/sign/places/components/PlaceCard.d.ts +0 -12
- package/dist/sign/places/components/PlacesList.d.ts +0 -12
- package/dist/sign/places/index.d.ts +0 -8
- package/dist/sign/places/services/PlaceService.d.ts +0 -9
- package/dist/sign/places/types.d.ts +0 -10
- package/dist/sign/providers/CoreProviders.d.ts +0 -107
- package/dist/sign/providers/index.d.ts +0 -2
- package/dist/sign/qualiex/components/QualiexUserField.d.ts +0 -133
- package/dist/sign/qualiex/hooks/useQualiexUsers.d.ts +0 -41
- package/dist/sign/qualiex/services/qualiexApi.d.ts +0 -75
- package/dist/sign/qualiex/utils/QualiexErrorInterceptor.d.ts +0 -20
- package/dist/sign/qualiex/utils/userPlaceUtils.d.ts +0 -16
- package/dist/sign/services/BaseService.d.ts +0 -51
- package/dist/sign/services/EmailService.d.ts +0 -110
- package/dist/sign/services/ErrorService.d.ts +0 -19
- package/dist/sign/services/QualiexEnrichmentService.d.ts +0 -53
- package/dist/sign/services/QualiexFieldHelpers.d.ts +0 -17
- package/dist/sign/setup/favicon.d.ts +0 -1
- package/dist/sign/setup.d.ts +0 -16
- package/dist/sign/sign/components/D4SignWidget.d.ts +0 -2
- package/dist/sign/sign/components/DocumentSigner.d.ts +0 -2
- package/dist/sign/sign/components/SignConfigForm.d.ts +0 -2
- package/dist/sign/sign/components/SignWidget.d.ts +0 -9
- package/dist/sign/sign/hooks/useSignConfig.d.ts +0 -6
- package/dist/sign/sign/index.d.ts +0 -8
- package/dist/sign/sign/services/signService.d.ts +0 -17
- package/dist/sign/sign/types.d.ts +0 -53
- package/dist/sign/sign/utils/loadClicksignScript.d.ts +0 -13
- package/dist/sign/supabase/SupabaseSingleton.d.ts +0 -34
- package/dist/sign/supabase/client.d.ts +0 -2
- package/dist/sign/supabase/legacyKeyGuard.d.ts +0 -19
- package/dist/sign/supabase/publicClient.d.ts +0 -2
- package/dist/sign/supabase/types.d.ts +0 -377
- package/dist/sign/team-selector/components/TeamSelector.d.ts +0 -24
- package/dist/sign/team-selector/index.d.ts +0 -2
- package/dist/sign/team-selector/types.d.ts +0 -10
- package/dist/sign/types/sidebar.d.ts +0 -52
- package/dist/sign/utils/color.d.ts +0 -26
- package/dist/sign/utils/formatters/currencyFormatters.d.ts +0 -1
- package/dist/sign/utils/formatters/dateFormatters.d.ts +0 -52
- package/dist/sign/utils/index.d.ts +0 -9
- package/dist/sign/utils/linkHelpers.d.ts +0 -9
- package/dist/sign/utils/load-fonts.d.ts +0 -1
- package/docs/PUBLISH.md +0 -180
- package/docs/SECURITY.md +0 -245
- package/docs/STORAGE_BUCKETS.md +0 -456
- package/docs/SUPABASE_SECRETS.md +0 -122
- package/docs/WORKSPACE_KNOWLEDGE.md +0 -189
- package/docs/design-system/buttons-actions.md +0 -433
- package/docs/design-system/charts-dashboards.md +0 -547
- package/docs/design-system/crud.md +0 -243
- package/docs/design-system/data-display.md +0 -365
- package/docs/design-system/dialogs.md +0 -590
- package/docs/design-system/domain.md +0 -671
- package/docs/design-system/examples.md +0 -275
- package/docs/design-system/foundation.md +0 -82
- package/docs/design-system/infra-utils.md +0 -36
- package/docs/design-system/inputs.md +0 -561
- package/docs/design-system/layout.md +0 -351
- package/docs/design-system/navigation.md +0 -609
- package/docs/design-system/notifications-feedback.md +0 -139
- package/docs/design-system/patterns/README.md +0 -53
- package/docs/design-system/patterns/action-button.md +0 -22
- package/docs/design-system/patterns/alertdialog-deletion.md +0 -46
- package/docs/design-system/patterns/baseform-custom-fields.md +0 -59
- package/docs/design-system/patterns/baseform-usage.md +0 -42
- package/docs/design-system/patterns/body-content-scroll.md +0 -56
- package/docs/design-system/patterns/combo-tree.md +0 -23
- package/docs/design-system/patterns/components-registry.md +0 -17
- package/docs/design-system/patterns/core-providers.md +0 -258
- package/docs/design-system/patterns/crud-bulk-actions.md +0 -12
- package/docs/design-system/patterns/crud-config-props.md +0 -17
- package/docs/design-system/patterns/crud-defaults.md +0 -17
- package/docs/design-system/patterns/crud-toolbar.md +0 -28
- package/docs/design-system/patterns/delete-confirmation.md +0 -40
- package/docs/design-system/patterns/dialog-body-scroll.md +0 -26
- package/docs/design-system/patterns/dialog-structure.md +0 -32
- package/docs/design-system/patterns/dialog-variants.md +0 -41
- package/docs/design-system/patterns/feature-flags.md +0 -113
- package/docs/design-system/patterns/header-metadata.md +0 -57
- package/docs/design-system/patterns/i18n-setup.md +0 -117
- package/docs/design-system/patterns/module-access.md +0 -72
- package/docs/design-system/patterns/pagination.md +0 -27
- package/docs/design-system/patterns/single-scroll.md +0 -39
- package/docs/design-system/patterns/vite-tailwind-setup.md +0 -49
- package/docs/design-system/platform.md +0 -55
- package/docs/design-system/selectors.md +0 -481
- package/docs/design-system/tables-grids.md +0 -114
- package/docs/sql/import/00_infra.sql +0 -210
- package/docs/sql/import/validate_criteria.sql +0 -209
- package/docs/sql/import/validate_materials_services.sql +0 -216
- package/docs/sql/import/validate_occurrences.sql +0 -289
- package/docs/sql/import/validate_occurrences_categories.sql +0 -249
- package/docs/sql/import/validate_occurrences_causes_classification.sql +0 -112
- package/docs/sql/import/validate_occurrences_types.sql +0 -113
- package/docs/sql/import/validate_risks.sql +0 -221
- package/docs/sql/import/validate_risks_categories.sql +0 -231
- package/docs/sql/import/validate_risks_groups.sql +0 -194
- package/docs/sql/import/validate_suppliers.sql +0 -250
- package/docs/sql/import/validate_suppliers_categories.sql +0 -150
- package/docs/sql/import/validate_supply_types.sql +0 -165
- /package/dist/{action-plans → legacy}/components/dashboards/dashboard-panel-renderer.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/dashboards/helpers.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/dashboards/index.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/dashboards/panels/index.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/dashboards/types.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/layout/AppHeader.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/layout/sidebar-utils.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/modules/index.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/modules/modulesData.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/accordion.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/action-button.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/avatar.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/button-group.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/card.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/checkbox.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/collapsible.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/color-picker.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/disabled-menu-item.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/hover-card.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/icon-picker.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/input.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/label.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/navigation-menu.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/onboarding-dialog.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/popover.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/progress.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/radio-group.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/rich-text-editor.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/scroll-area.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/separator.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/slider.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/switch.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/table-resize-handle.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/table.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/tabs.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/textarea.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/timepicker.d.ts +0 -0
- /package/dist/{action-plans → legacy}/components/ui/typography.d.ts +0 -0
- /package/dist/{action-plans → legacy}/crud/components/ActionMenuItems.d.ts +0 -0
- /package/dist/{action-plans → legacy}/crud/components/InlineRowActions.d.ts +0 -0
- /package/dist/{action-plans → legacy}/crud/components/SelectionCheckbox.d.ts +0 -0
- /package/dist/{action-plans → legacy}/crud/components/TableRowActions.d.ts +0 -0
- /package/dist/{action-plans → legacy}/crud/hooks/useColumnDragReorder.d.ts +0 -0
- /package/dist/{action-plans → legacy}/crud/primitives/index.d.ts +0 -0
- /package/dist/{action-plans → legacy}/crud/primitives/types.d.ts +0 -0
- /package/dist/{action-plans → legacy}/hooks/useActiveModules.d.ts +0 -0
- /package/dist/{action-plans → legacy}/hooks/useAliasFromUrl.d.ts +0 -0
- /package/dist/{action-plans → legacy}/hooks/useColumnResize.d.ts +0 -0
- /package/dist/{action-plans → legacy}/hooks/useDebounce.d.ts +0 -0
- /package/dist/{action-plans → legacy}/hooks/useDerivedContractedModules.d.ts +0 -0
- /package/dist/{action-plans → legacy}/hooks/useI18nFormatters.d.ts +0 -0
- /package/dist/{action-plans → legacy}/hooks/useMediaQuery.d.ts +0 -0
- /package/dist/{action-plans → legacy}/hooks/usePageTitle.d.ts +0 -0
- /package/dist/{action-plans → legacy}/hooks/usePermissionQuery.d.ts +0 -0
- /package/dist/{action-plans → legacy}/hooks/useRowResize.d.ts +0 -0
- /package/dist/{action-plans → legacy}/hooks/useUpdatesNotification.d.ts +0 -0
- /package/dist/{action-plans → legacy}/hooks/useWizard.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{cn as a,useAuth as t,CRUD_CONFIG as r,MESSAGES as n,createService as s,QualiexUserField as o,useNavigation as i,getQualiexApiUrl as l,TokenManager as d,QualiexErrorInterceptor as c,getCommonV5AppUrl as m,buildModuleUrl as u,trackFooterClick as h,trackInterestClick as p,trackModuleClick as f,useModuleConfig as g,qualiexApi as b,useHasCommonV5Phase3 as v,SOFTWARES_MAP as x,handleExternalLink as N,resolveBrandLogo as y,usePageMetadataContext as w,SEARCH_CONFIG as C,useModalState as k,NavigationProvider as S,PageMetadataProvider as D,UserUpdatesViewer as A,assets as z,errorService as R,getSupabaseClient as M,AuthErrorInterceptor as _,useLocale as P,DEFAULT_DATETIME_FORMAT as I,formatDate as E,formatDatetime as B}from"forlogic-core";export*from"forlogic-core";export{AliasRedirect,AliasRouteGuard,CallbackPage,CoreProviders,DocumentFileUpload,DocumentFileViewer,EDocumentAssociationType,default as EditProfileDialog,EditProfilePage,EmailService,LoginPage,ModalStateProvider,ModuleProvider,PageMetadataProvider,ProtectedRoute,applyFavicon,cn,configureEnvironment,deriveEmailField,deriveNameField,deriveUsernameField,documentsFilesApi,emailService,errorService,formatCurrency,formatDate,formatDatetime,getAppEnv,getBackendMode,getEnvironmentConfig,getSecurityMode,getUserProfile,isDevEnv,isSupabaseBackend,isSupabaseConfigured,loadForlogicFonts,resolveFieldMappings,setBackendMode,setupQualiexCore,updateUserProfile,useAuth,useHasOpenModal,useModalState,useModuleConfig,usePageMetadata,usePageMetadataContext,useSuppressCommonV5Redirect}from"forlogic-core";import{jsx as O,jsxs as L,Fragment as T}from"react/jsx-runtime";import*as F from"react";import j,{useState as $,useMemo as V,useCallback as q,useEffect as G,useRef as W,memo as U,Component as H}from"react";import{Slot as K}from"@radix-ui/react-slot";import{cva as Q}from"class-variance-authority";import{EllipsisVertical as J,X as Z,ChevronDown as X,ChevronUp as Y,Check as ee,Loader2 as ae,Loader2Icon as te,OctagonXIcon as re,TriangleAlertIcon as ne,InfoIcon as se,CircleCheckIcon as oe,ChevronRight as ie,Circle as le,AlertCircle as de,Search as ce,FileX as me,Edit as ue,PowerOff as he,Power as pe,Trash2 as fe,Pencil as ge,ToggleRight as be,ToggleLeft as ve,Plus as xe,LayoutGrid as Ne,List as ye,Table2 as we,Columns3 as Ce,GripVertical as ke,Group as Se,ArrowUp as De,ArrowDown as Ae,ChevronsLeft as ze,ChevronLeft as Re,ChevronsRight as Me,PanelLeft as _e,Coffee as Pe,ArrowRight as Ie,ExternalLink as Ee,NotebookText as Be,Menu as Oe,RefreshCw as Le,Lock as Te,AlertTriangle as Fe,Copy as je,Building2 as $e,User as Ve,LogOut as qe,Sparkles as Ge}from"lucide-react";import*as We from"@radix-ui/react-label";import*as Ue from"@radix-ui/react-dialog";import*as He from"@radix-ui/react-separator";import Ke from"i18next";import*as Qe from"@radix-ui/react-alert-dialog";import{useFormContext as Je,FormProvider as Ze,Controller as Xe}from"react-hook-form";import*as Ye from"@radix-ui/react-select";import*as ea from"@radix-ui/react-checkbox";import{Toaster as aa,toast as ta}from"sonner";export{toast}from"sonner";import*as ra from"@radix-ui/react-dropdown-menu";import*as na from"@radix-ui/react-tooltip";import*as sa from"@radix-ui/react-popover";import{useTranslation as oa}from"react-i18next";import{useQueryClient as ia,useQuery as la,useMutation as da}from"@tanstack/react-query";import{useSearchParams as ca,useLocation as ma,useNavigate as ua,Link as ha,useParams as pa}from"react-router";import*as fa from"@radix-ui/react-context-menu";import*as ga from"@radix-ui/react-toggle-group";import*as ba from"@radix-ui/react-toggle";import*as va from"@radix-ui/react-scroll-area";import*as xa from"@radix-ui/react-switch";import*as Na from"@radix-ui/react-tabs";import*as ya from"@radix-ui/react-collapsible";const wa=Q("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"}}),Ca=F.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...s},o)=>O(n?K:"button",{className:a(wa({variant:t,size:r,className:e})),ref:o,"data-ds-button":t??"primary",...s}));Ca.displayName="Button";const ka=j.forwardRef(({className:e,children:t,variant:r="action",...n},s)=>O(Ca,{ref:s,variant:r,size:"icon",className:a("h-8 w-8",e),...n,children:t||O(J,{size:16})}));ka.displayName="ActionButton";const Sa=F.forwardRef(({className:e,type:t,showCharCount:r,maxLength:n,onChange:s,...o},i)=>{const[l,d]=F.useState(0);F.useEffect(()=>{"string"==typeof o.value?d(o.value.length):"string"==typeof o.defaultValue&&d(o.defaultValue.length)},[o.value,o.defaultValue]);return L("div",{className:"w-full",children:[O("input",{type:t,className:a("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",e),ref:i,maxLength:n,onChange:e=>{d(e.target.value.length),s?.(e)},...o}),r&&n&&L("div",{className:"text-right text-xs text-muted-foreground mt-1",children:[l," / ",n]})]})});Sa.displayName="Input";const Da=Q("text-sm font-normal leading-none text-muted-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Aa=F.forwardRef(({className:e,...t},r)=>O(We.Root,{ref:r,className:a(Da(),e),...t}));Aa.displayName=We.Root.displayName;const za=F.forwardRef(({className:e,...t},r)=>O("div",{ref:r,className:a("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));za.displayName="Card";const Ra=F.forwardRef(({className:e,...t},r)=>O("div",{ref:r,className:a("flex flex-col space-y-1.5 p-6",e),...t}));Ra.displayName="CardHeader";const Ma=F.forwardRef(({className:e,...t},r)=>O("h3",{ref:r,className:a("text-2xl font-semibold leading-none tracking-tight",e),...t}));Ma.displayName="CardTitle";const _a=F.forwardRef(({className:e,...t},r)=>O("p",{ref:r,className:a("text-sm text-muted-foreground",e),...t}));_a.displayName="CardDescription";const Pa=F.forwardRef(({className:e,...t},r)=>O("div",{ref:r,className:a("p-6 pt-0",e),...t}));Pa.displayName="CardContent";F.forwardRef(({className:e,...t},r)=>O("div",{ref:r,className:a("flex items-center p-6 pt-0",e),...t})).displayName="CardFooter";const Ia=F.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},s)=>O(He.Root,{ref:s,decorative:r,orientation:t,className:a("shrink-0 bg-border","horizontal"===t?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Ia.displayName=He.Root.displayName;const Ea=Qe.Root,Ba=Qe.Portal,Oa=F.forwardRef(({className:e,...t},r)=>O(Qe.Overlay,{className:a("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:r}));Oa.displayName=Qe.Overlay.displayName;const La=F.forwardRef(({className:e,...t},r)=>L(Ba,{children:[O(Oa,{}),O(Qe.Content,{ref:r,className:a("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));La.displayName=Qe.Content.displayName;const Ta=({className:e,...t})=>O("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t});Ta.displayName="AlertDialogHeader";const Fa=({className:e,...t})=>O("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Fa.displayName="AlertDialogFooter";const ja=F.forwardRef(({className:e,...t},r)=>O(Qe.Title,{ref:r,className:a("text-lg font-semibold",e),...t}));ja.displayName=Qe.Title.displayName;const $a=F.forwardRef(({className:e,...t},r)=>O(Qe.Description,{ref:r,className:a("text-sm text-muted-foreground",e),...t}));$a.displayName=Qe.Description.displayName;const Va=F.forwardRef(({className:e,...t},r)=>O(Qe.Action,{ref:r,className:a(wa(),e),...t}));Va.displayName=Qe.Action.displayName;const qa=F.forwardRef(({className:e,...t},r)=>O(Qe.Cancel,{ref:r,className:a(wa({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));qa.displayName=Qe.Cancel.displayName;const Ga=Ue.Root,Wa=Ue.Trigger,Ua=Ue.Portal,Ha=F.forwardRef(({className:e,...t},r)=>O(Ue.Overlay,{ref:r,className:a("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Ha.displayName=Ue.Overlay.displayName;const Ka={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"}},Qa=F.forwardRef(({className:e,children:t,size:r,variant:n="informative",isDirty:s,customWidth:o,customMinWidth:i,customMaxWidth:l,customHeight:d,customMinHeight:c,customMaxHeight:m,unsavedChangesTitle:u=Ke.t("unsaved_changes"),unsavedChangesDescription:h=Ke.t("unsaved_changes_description"),cancelText:p=Ke.t("cancel"),leaveWithoutSavingText:f=Ke.t("leave_without_saving"),style:g,onInteractOutside:b,onEscapeKeyDown:v,...x},N)=>{const[y,w]=F.useState(!1),C=F.useRef(null),k=F.useRef(!1),S=r??(o||i||l||d||c||m?void 0:"md"),D=S?Ka[S]:{},A={...o??D.width?{width:o??D.width}:{},...i??D.minWidth?{minWidth:i??D.minWidth}:{},...l??D.maxWidth?{maxWidth:l??D.maxWidth}:{},...d??D.height?{height:d??D.height}:{},...c??D.minHeight?{minHeight:c??D.minHeight}:{},...m??D.maxHeight?{maxHeight:m??D.maxHeight}:{},...g},z=F.useCallback(e=>{"form"===n&&s?(C.current=e,w(!0)):e()},[n,s]),R=F.useRef(null),M="destructive"!==n;if("development"===process.env.NODE_ENV&&t){const e=F.Children.toArray(t);e.some(e=>F.isValidElement(e)&&"DialogFooter"===e.type?.displayName),e.some(e=>F.isValidElement(e)&&"DialogBody"===e.type?.displayName)}return L(Ua,{children:[O(Ha,{}),L(Ue.Content,{ref:N,className:a("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",e),style:A,onInteractOutside:e=>{"form"!==n&&"destructive"!==n?b?.(e):e.preventDefault()},onEscapeKeyDown:e=>{if("destructive"!==n)return"form"===n&&s?(e.preventDefault(),void z(()=>{k.current=!0,R.current?.click()})):void v?.(e);e.preventDefault()},...x,children:[t,M&&L(Ue.Close,{ref:R,onClick:e=>{k.current?k.current=!1:"form"===n&&s&&(e.preventDefault(),z(()=>{k.current=!0,R.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:[O(Z,{className:"h-4 w-4"}),O("span",{className:"sr-only",children:"Close"})]})]}),O(Ea,{open:y,onOpenChange:w,children:L(La,{children:[L(Ta,{children:[O(ja,{children:u}),O($a,{children:h})]}),L(Fa,{children:[O(qa,{onClick:()=>{w(!1),C.current=null},children:p}),O(Va,{onClick:()=>{w(!1),C.current?.(),C.current=null},children:f})]})]})})]})});Qa.displayName=Ue.Content.displayName;const Ja=({className:e,showSeparator:t=!1,children:r,...n})=>L("div",{className:a("flex flex-col flex-shrink-0",e),...n,children:[O("div",{className:"flex flex-col text-left",children:r}),t&&O(Ia,{className:"mt-2"})]});Ja.displayName="DialogHeader";const Za=({className:e,children:t,...r})=>L("div",{className:"flex-shrink-0 pt-4",children:[O(Ia,{className:"mb-4"}),O("div",{className:a("flex flex-row justify-end gap-2",e),...r,children:t})]});Za.displayName="DialogFooter";const Xa=F.forwardRef(({className:e,...t},r)=>O(Ue.Title,{ref:r,className:a("text-xl font-semibold leading-none tracking-tight",e),...t}));Xa.displayName=Ue.Title.displayName;const Ya=F.forwardRef(({className:e,...t},r)=>O(Ue.Description,{ref:r,className:a("text-sm text-muted-foreground",e),...t}));Ya.displayName=Ue.Description.displayName;const et=Ze,at=F.createContext({}),tt=({...e})=>O(at.Provider,{value:{name:e.name},children:O(Xe,{...e})}),rt=()=>{const e=F.useContext(at),a=F.useContext(nt),{getFieldState:t,formState:r}=Je(),n=t(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:s}=a;return{id:s,name:e.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...n}},nt=F.createContext({}),st=F.forwardRef(({className:e,...t},r)=>{const n=F.useId();return O(nt.Provider,{value:{id:n},children:O("div",{ref:r,className:a("space-y-1.5",e),...t})})});st.displayName="FormItem";const ot=F.forwardRef(({className:e,...t},r)=>{const{error:n,formItemId:s}=rt();return O(Aa,{ref:r,className:a(n&&"text-destructive",e),htmlFor:s,...t})});ot.displayName="FormLabel";const it=F.forwardRef(({...e},a)=>{const{error:t,formItemId:r,formDescriptionId:n,formMessageId:s}=rt();return O(K,{ref:a,id:r,"aria-describedby":t?`${n} ${s}`:`${n}`,"aria-invalid":!!t,...e})});it.displayName="FormControl";F.forwardRef(({className:e,...t},r)=>{const{formDescriptionId:n}=rt();return O("p",{ref:r,id:n,className:a("text-sm text-muted-foreground",e),...t})}).displayName="FormDescription";const lt=F.forwardRef(({className:e,children:t,...r},n)=>{const{error:s,formMessageId:o}=rt(),i=s?String(s?.message):t;return i?O("p",{ref:n,id:o,className:a("text-sm font-medium text-destructive",e),...r,children:i}):null});lt.displayName="FormMessage";const dt=F.createContext({showCheck:!1}),ct=({showCheck:e=!1,...a})=>O(dt.Provider,{value:{showCheck:e},children:O(Ye.Root,{...a})}),mt=Ye.Value,ut=F.forwardRef(({className:e,children:t,...r},n)=>L(Ye.Trigger,{ref:n,className:a("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",e),...r,children:[t,O(Ye.Icon,{asChild:!0,children:O(X,{className:"h-4 w-4 opacity-50"})})]}));ut.displayName=Ye.Trigger.displayName;const ht=F.forwardRef(({className:e,...t},r)=>O(Ye.ScrollUpButton,{ref:r,className:a("flex cursor-default items-center justify-center py-1",e),...t,children:O(Y,{className:"h-4 w-4"})}));ht.displayName=Ye.ScrollUpButton.displayName;const pt=F.forwardRef(({className:e,...t},r)=>O(Ye.ScrollDownButton,{ref:r,className:a("flex cursor-default items-center justify-center py-1",e),...t,children:O(X,{className:"h-4 w-4"})}));pt.displayName=Ye.ScrollDownButton.displayName;const ft=F.forwardRef(({className:e,children:t,position:r="popper",container:n,collisionBoundary:s,...o},i)=>O(Ye.Portal,{container:n,children:L(Ye.Content,{ref:i,className:a("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",e),position:r,collisionBoundary:s,...o,children:[O(ht,{}),O(Ye.Viewport,{className:a("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),O(pt,{})]})}));ft.displayName=Ye.Content.displayName;F.forwardRef(({className:e,...t},r)=>O(Ye.Label,{ref:r,className:a("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t})).displayName=Ye.Label.displayName;const gt=F.forwardRef(({className:e,children:t,...r},n)=>{const{showCheck:s}=F.useContext(dt);return L(Ye.Item,{ref:n,className:a("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",s?"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",s?"data-[state=checked]:pl-[calc(2rem-2px)]":"data-[state=checked]:pl-[calc(0.5rem-2px)]",e),...r,children:[s&&O("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:O(Ye.ItemIndicator,{children:O(ee,{className:"h-4 w-4"})})}),O(Ye.ItemText,{children:t})]})});gt.displayName=Ye.Item.displayName;F.forwardRef(({className:e,...t},r)=>O(Ye.Separator,{ref:r,className:a("-mx-1 my-1 h-px bg-muted",e),...t})).displayName=Ye.Separator.displayName;const bt=F.forwardRef(({className:e,...t},r)=>O(ea.Root,{ref:r,className:a("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:O(ea.Indicator,{className:a("flex items-center justify-center text-current"),children:O(ee,{className:"h-4 w-4"})})}));bt.displayName=ea.Root.displayName;const vt=F.forwardRef(({className:e,showCharCount:t,maxLength:r,onChange:n,...s},o)=>{const[i,l]=F.useState(0);F.useEffect(()=>{"string"==typeof s.value?l(s.value.length):"string"==typeof s.defaultValue&&l(s.defaultValue.length)},[s.value,s.defaultValue]);return L("div",{className:"w-full",children:[O("textarea",{className:a("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",e),ref:o,maxLength:r,onChange:e=>{l(e.target.value.length),n?.(e)},...s}),t&&r&&L("div",{className:"text-right text-xs text-muted-foreground mt-1",children:[i," / ",r]})]})});vt.displayName="Textarea";const xt=Q("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"}}),Nt=F.forwardRef(({className:e,variant:t,...r},n)=>O("div",{ref:n,className:a(xt({variant:t}),e),...r}));Nt.displayName="Badge";const yt={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"};function wt({size:e="md",className:t}){return O(ae,{className:a("animate-spin text-muted-foreground",yt[e],t)})}function Ct({isLoading:e,children:t,className:r,type:n="spinner",size:s="md"}){return e?"overlay"===n?L("div",{className:a("relative",r),children:[t,O("div",{className:"absolute inset-0 bg-background/50 backdrop-blur-sm flex items-center justify-center z-10",children:O(wt,{size:s})})]}):O("div","skeleton"===n?{className:a("animate-pulse",r),children:O("div",{className:"bg-muted rounded-md h-full w-full"})}:{className:a("flex items-center justify-center py-8",r),children:O(wt,{size:s})}):O(T,{children:t})}const kt=({...e})=>O(aa,{className:"group",position:"top-right",expand:!0,visibleToasts:5,closeButton:!0,icons:{success:O(oe,{className:"h-4 w-4"}),info:O(se,{className:"h-4 w-4"}),warning:O(ne,{className:"h-4 w-4"}),error:O(re,{className:"h-4 w-4"}),loading:O(te,{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}),St=ra.Root,Dt=ra.Trigger;F.forwardRef(({className:e,inset:t,children:r,...n},s)=>L(ra.SubTrigger,{ref:s,className:a("flex cursor-default select-none items-center px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...n,children:[r,O(ie,{className:"ml-auto h-4 w-4"})]})).displayName=ra.SubTrigger.displayName;F.forwardRef(({className:e,...t},r)=>O(ra.SubContent,{ref:r,className:a("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",e),...t})).displayName=ra.SubContent.displayName;const At=F.forwardRef(({className:e,sideOffset:t=4,...r},n)=>O(ra.Portal,{children:O(ra.Content,{ref:n,sideOffset:t,className:a("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",e),...r})}));At.displayName=ra.Content.displayName;const zt=F.forwardRef(({className:e,inset:t,...r},n)=>O(ra.Item,{ref:n,className:a("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",t&&"pl-8",e),...r}));zt.displayName=ra.Item.displayName;F.forwardRef(({className:e,children:t,checked:r,...n},s)=>L(ra.CheckboxItem,{ref:s,className:a("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",e),checked:r,...n,children:[O("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:O(ra.ItemIndicator,{children:O(ee,{className:"h-4 w-4"})})}),t]})).displayName=ra.CheckboxItem.displayName;F.forwardRef(({className:e,children:t,...r},n)=>L(ra.RadioItem,{ref:n,className:a("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",e),...r,children:[O("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:O(ra.ItemIndicator,{children:O(le,{className:"h-2 w-2 fill-current"})})}),t]})).displayName=ra.RadioItem.displayName;F.forwardRef(({className:e,inset:t,...r},n)=>O(ra.Label,{ref:n,className:a("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r})).displayName=ra.Label.displayName;const Rt=F.forwardRef(({className:e,...t},r)=>O(ra.Separator,{ref:r,className:a("-mx-1 my-1 h-px bg-muted",e),...t}));Rt.displayName=ra.Separator.displayName;const Mt=({delayDuration:e=300,...a})=>O(na.Provider,{delayDuration:e,...a}),_t=na.Root,Pt=na.Trigger,It=F.forwardRef(({className:e,sideOffset:t=4,collisionPadding:r=8,hideWhenDetached:n=!0,container:s,...o},i)=>O(na.Portal,{container:s,children:O(na.Content,{ref:i,sideOffset:t,collisionPadding:r,hideWhenDetached:n,className:a("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",e),...o})}));It.displayName=na.Content.displayName;const Et=F.forwardRef(({children:e,disabledReason:t,className:r},n)=>{const s=O(zt,{ref:n,className:a("opacity-50 cursor-not-allowed pointer-events-auto",r),onSelect:e=>{e.preventDefault(),e.stopPropagation()},onClick:e=>{e.preventDefault(),e.stopPropagation()},children:e});return t?O(Mt,{delayDuration:100,children:L(_t,{children:[O(Pt,{asChild:!0,children:O("div",{className:"w-full",children:s})}),O(It,{side:"right",sideOffset:8,className:"max-w-[200px] z-[100]",children:t})]})}):s});Et.displayName="DisabledMenuItem";const Bt=sa.Root,Ot=sa.Trigger,Lt=F.forwardRef(({className:e,align:t="center",sideOffset:r=4,container:n,...s},o)=>O(sa.Portal,{container:n,children:O(sa.Content,{ref:o,align:t,sideOffset:r,className:a("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",e),...s})}));Lt.displayName=sa.Content.displayName;const Tt=F.forwardRef(({className:e,...t},r)=>O("div",{ref:r,className:a("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Tt.displayName="Command";const Ft=F.forwardRef(({className:e,...t},r)=>O("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:O("input",{ref:r,className:a("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",e),...t})}));Ft.displayName="CommandInput";const jt=F.forwardRef(({className:e,...t},r)=>O("div",{ref:r,className:a("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));jt.displayName="CommandList";const $t=F.forwardRef(({className:e,...t},r)=>O("div",{ref:r,className:a("py-6 text-center text-sm text-muted-foreground",e),...t}));$t.displayName="CommandEmpty";const Vt=F.forwardRef(({className:e,...t},r)=>O("div",{ref:r,className:a("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",e),...t}));Vt.displayName="CommandGroup";F.forwardRef(({className:e,...t},r)=>O("div",{ref:r,className:a("-mx-1 h-px bg-border",e),...t})).displayName="CommandSeparator";const qt=F.forwardRef(({className:e,disabled:t,onSelect:r,value:n,...s},o)=>O("div",{ref:o,className:a("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",e),"data-disabled":t,onClick:()=>!t&&r?.(n||""),...s}));function Gt({className:e,...t}){return O("div",{className:a("animate-pulse rounded-md bg-muted",e),...t})}qt.displayName="CommandItem";const Wt=e=>e.normalize("NFD").replace(/\p{Diacritic}/gu,"").toLowerCase();function Ut({multiple:e,options:t,value:r,onChange:n,getOptionValue:s,getOptionLabel:o,renderOption:i,placeholder:l,label:d,icon:c,emptyMessage:m,searchPlaceholder:u,searchInputTestId:h,disabled:p,required:f,className:g,sortOptions:b,maxDisplayedBadges:v,popoverContainer:x,onOpen:N,onClose:y,clearable:w,showCheck:C}){const[k,S]=$(!1),[D,A]=$(""),z=V(()=>r?Array.isArray(r)?r:[r]:[],[r]),R=V(()=>{if(!x)return;let e=x,a=0;try{for(;e&&a<3;){const t=window.getComputedStyle(e),r=t.overflowY||t.overflow;if(!r||"visible"===r||"unset"===r)break;e=e.parentElement,a++}}catch{}return e??void 0},[x]),M=V(()=>{const e=t.map(e=>({original:e,value:s(e),label:o(e)}));return b?e.sort((e,a)=>e.label.localeCompare(a.label,"pt-BR",{sensitivity:"base"})):e},[t,s,o,b]),_=V(()=>{if(!D)return M;const e=Wt(D);return M.filter(a=>Wt(a.label).includes(e))},[M,D]),P=V(()=>M.filter(e=>z.includes(e.value)),[M,z]),I=e=>{S(e),e?N?.():(A(""),y?.())},E=(a,t)=>{t.preventDefault(),t.stopPropagation(),n&&n(e?z.filter(e=>e!==a):"")},B=v?P.slice(0,v):P,T=v&&P.length>v?P.length-v:0;return L("div",{className:a("space-y-2",g),children:[d&&L(Aa,{children:[d,f&&O("span",{className:"text-destructive ml-1",children:"*"})]}),L(Bt,{open:k,onOpenChange:I,modal:!1,children:[e?O(Ot,{asChild:!0,children:L("div",{role:"combobox","aria-expanded":k,"aria-disabled":p,tabIndex:p?-1:0,onKeyDown:e=>{p||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),I(!k))},className:a("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",p&&"pointer-events-none opacity-50 cursor-not-allowed",0===P.length&&"text-muted-foreground"),children:[0===P.length?L("span",{className:"flex items-center gap-2",children:[c&&O(c,{className:"h-4 w-4"}),l]}):L("div",{className:"flex flex-wrap gap-1.5 flex-1 mr-2",children:[B.map(e=>L(Nt,{variant:"secondary",className:"gap-1 pr-1",children:[e.label,O("button",{type:"button",className:"rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",onKeyDown:a=>{"Enter"===a.key&&E(e.value,a)},onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:a=>E(e.value,a),children:O(Z,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})]},e.value)),T>0&&L(Nt,{variant:"outline",className:"gap-1",children:["+",T]})]}),O(X,{className:"h-4 w-4 shrink-0 opacity-50"})]})}):L("div",{className:"relative",children:[O(Ot,{asChild:!0,children:L(Ca,{variant:"outline",role:"combobox","aria-expanded":k,disabled:p,className:a("relative w-full justify-start min-h-10 h-auto pr-10",w&&P.length>0&&"pr-16",0===P.length&&"text-muted-foreground"),children:[0===P.length?L("span",{className:"flex min-w-0 flex-1 items-center gap-2 truncate text-left",children:[c&&O(c,{className:"h-4 w-4"}),O("span",{className:"truncate",children:l})]}):L("span",{className:"flex min-w-0 flex-1 items-center gap-2 truncate text-left",children:[c&&O(c,{className:"h-4 w-4"}),O("span",{className:"truncate",children:P[0]?.label})]}),O(X,{className:"absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 opacity-50"})]})}),w&&P.length>0&&O("button",{type:"button",disabled:p,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=>E("",e),title:"Limpar seleção","aria-label":"Limpar seleção",children:O(Z,{className:"h-3.5 w-3.5"})})]}),O(Lt,{className:"w-full p-0 bg-popover z-[60]",align:"start",container:R,collisionBoundary:R,children:L(Tt,{children:[L("div",{className:"relative",children:[O(Ft,{placeholder:u,value:D,onChange:e=>A(e.target.value),"data-testid":h}),D&&O("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:()=>A(""),children:O(Z,{className:"h-3.5 w-3.5"})})]}),O(jt,{children:0===t.length?O($t,{children:m}):0===_.length?O($t,{children:Ke.t("no_results")}):O(Vt,{children:_.map(t=>{const r=z.includes(t.value);return L(qt,{value:t.value,onSelect:()=>(a=>{if(n)if(e){const e=z.includes(a)?z.filter(e=>e!==a):[...z,a];n(e)}else n(a),S(!1)})(t.value),className:a("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:[C&&O(ee,{className:a("mr-2 h-4 w-4",r?"opacity-100":"opacity-0")}),i?i(t.original):t.label]},t.value)})})})]})})]})]})}function Ht({multiple:e=!1,options:t,items:r,value:n,onChange:s,onValueChange:o,getOptionValue:i=e=>e.value,getOptionLabel:l=e=>e.label,renderOption:d,placeholder:c,label:m,icon:u,emptyMessage:h,searchPlaceholder:p,searchInputTestId:f,disabled:g=!1,required:b=!1,isLoading:v=!1,error:x,className:N,sortOptions:y=!0,maxDisplayedBadges:w,popoverContainer:C,onOpen:k,onClose:S,clearable:D=!0,showCheck:A=!1}){const{t:z}=oa(),R=t||r||[],M=o||s,_=c||z("select_placeholder","Selecione..."),P=h||z("no_results",z("no_results")),I=p||z("search_placeholder","Pesquisar...");if(v)return L("div",{className:a("space-y-2",N),children:[m&&L(Aa,{children:[m,b&&O("span",{className:"text-destructive ml-1",children:"*"})]}),O(Gt,{className:"h-10 w-full"})]});const E="string"==typeof x?x:x instanceof Error?x.message:x?z("error_loading",z("error_loading")):void 0;return E?L("div",{className:a("space-y-2",N),children:[m&&L(Aa,{children:[m,b&&O("span",{className:"text-destructive ml-1",children:"*"})]}),L("div",{className:"flex items-center gap-2 p-3 border border-destructive rounded-md bg-destructive/10 text-destructive",children:[O(de,{className:"h-4 w-4"}),O("span",{className:"text-sm",children:E})]})]}):O(Ut,{multiple:e,options:R,value:n||(e?[]:""),onChange:M,getOptionValue:i,getOptionLabel:l,renderOption:d,placeholder:_,label:m,icon:u,emptyMessage:P,searchPlaceholder:I,searchInputTestId:f,disabled:g,required:b,className:N,sortOptions:y,maxDisplayedBadges:w,popoverContainer:C,onOpen:k,onClose:S,clearable:D,showCheck:A})}const Kt=e=>e.normalize("NFD").replace(/\p{Diacritic}/gu,"").toLowerCase();function Qt(e,a){if(!a)return null;const t=Kt(a),r=[];for(const n of e){const e=Kt(n.label).includes(t),s=n.children?Qt(n.children,a):null,o=s&&s.length>0;(e||o)&&r.push({...n,children:e?n.children:o?s:n.children})}return r}function Jt(e,a){for(const t of e){if(t.value===a)return t.label;if(t.children){const e=Jt(t.children,a);if(e)return e}}}function Zt({node:e,level:t,expanded:r,onToggleExpand:n,selectedValues:s,onSelect:o,showCheck:i}){const l=e.children&&e.children.length>0,d=s.includes(e.value),c=8+20*t;return L("div",{role:"treeitem","aria-expanded":l?r:void 0,"aria-selected":d,className:a("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",d&&"bg-accent text-accent-foreground font-medium border-l-2 border-primary"),style:{paddingLeft:c-(d?2:0)+"px"},children:[L("span",{className:"flex flex-1 items-center gap-2 truncate",onClick:a=>{a.stopPropagation(),o(e.value)},children:[i&&O(ee,{className:a("h-4 w-4 shrink-0",d?"opacity-100":"opacity-0")}),(()=>{const t=d?e.iconSelected??(r?e.iconOpen:null)??e.icon:r?e.iconOpen??e.icon:e.icon;return t?O(t,{className:a("h-4 w-4 shrink-0",e.iconClassName||"text-muted-foreground")}):null})(),O("span",{className:"truncate",children:e.label})]}),l&&O("button",{type:"button",className:"flex h-5 w-5 shrink-0 items-center justify-center rounded-sm hover:bg-muted ml-auto",onClick:a=>{a.stopPropagation(),n(e.value)},tabIndex:-1,"aria-label":r?"Recolher":"Expandir",children:O(r?X:ie,{className:"h-3.5 w-3.5 text-muted-foreground"})})]})}function Xt({nodes:e,level:a,expandedIds:t,onToggleExpand:r,selectedValues:n,onSelect:s,showCheck:o}){return O(T,{children:e.map(e=>{const i=t.has(e.value);return L(j.Fragment,{children:[O(Zt,{node:e,level:a,expanded:i,onToggleExpand:r,selectedValues:n,onSelect:s,showCheck:o}),i&&e.children&&e.children.length>0&&O(Xt,{nodes:e.children,level:a+1,expandedIds:t,onToggleExpand:r,selectedValues:n,onSelect:s,showCheck:o})]},e.value)})})}function Yt({multiple:e=!1,options:t,value:r,onChange:n,placeholder:s,label:o,icon:i,emptyMessage:l,searchPlaceholder:d,disabled:c=!1,required:m=!1,isLoading:u=!1,error:h,className:p,maxDisplayedBadges:f,popoverContainer:g,onOpen:b,onClose:v,defaultExpanded:x=!0,showCheck:N=!1}){const{t:y}=oa(),[w,C]=$(!1),[k,S]=$(""),[D,A]=$(()=>x?function(e){const a=new Set;return function e(t){for(const r of t)r.children&&r.children.length>0&&(a.add(r.value),e(r.children))}(e),a}(t):new Set),z=s||y("select_placeholder","Selecione..."),R=l||y("no_results",y("no_results")),M=d||y("search_placeholder","Pesquisar..."),_=V(()=>r?Array.isArray(r)?r:[r]:[],[r]),P=V(()=>{if(!g)return;let e=g,a=0;try{for(;e&&a<3;){const t=window.getComputedStyle(e),r=t.overflowY||t.overflow;if(!r||"visible"===r||"unset"===r)break;e=e.parentElement,a++}}catch{}return e??void 0},[g]),I=V(()=>Qt(t,k),[t,k])??t,E=V(()=>k?function(e,a){const t=new Set,r=Kt(a);function n(e){if(!e.children||0===e.children.length)return Kt(e.label).includes(r);let a=!1;for(const t of e.children)n(t)&&(a=!0);return a&&t.add(e.value),a||Kt(e.label).includes(r)}for(const s of e)n(s);return t}(t,k):new Set,[t,k]),B=k?E:D,T=q(e=>{k||A(a=>{const t=new Set(a);return t.has(e)?t.delete(e):t.add(e),t})},[k]),F=V(()=>_.map(e=>({value:e,label:Jt(t,e)||e})),[_,t]),j=e=>{C(e),e?b?.():(S(""),v?.())},G=q(a=>{if(n)if(e){const e=_.includes(a)?_.filter(e=>e!==a):[..._,a];n(e)}else n(a),C(!1)},[n,e,_]),W=(a,t)=>{t.preventDefault(),t.stopPropagation(),n&&n(e?_.filter(e=>e!==a):"")},U=f?F.slice(0,f):F,H=f&&F.length>f?F.length-f:0;if(u)return L("div",{className:a("space-y-2",p),children:[o&&L(Aa,{children:[o,m&&O("span",{className:"text-destructive ml-1",children:"*"})]}),O(Gt,{className:"h-10 w-full"})]});const K="string"==typeof h?h:h instanceof Error?h.message:h?y("error_loading",y("error_loading")):void 0;return L("div",K?{className:a("space-y-2",p),children:[o&&L(Aa,{children:[o,m&&O("span",{className:"text-destructive ml-1",children:"*"})]}),L("div",{className:"flex items-center gap-2 p-3 border border-destructive rounded-md bg-destructive/10 text-destructive",children:[O(de,{className:"h-4 w-4"}),O("span",{className:"text-sm",children:K})]})]}:{className:a("space-y-2",p),children:[o&&L(Aa,{children:[o,m&&O("span",{className:"text-destructive ml-1",children:"*"})]}),L(Bt,{open:w,onOpenChange:j,modal:!1,children:[O(Ot,{asChild:!0,children:e?L("div",{role:"combobox","aria-expanded":w,"aria-disabled":c,tabIndex:c?-1:0,onKeyDown:e=>{c||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),j(!w))},className:a("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",c&&"pointer-events-none opacity-50 cursor-not-allowed",0===F.length&&"text-muted-foreground"),children:[0===F.length?L("span",{className:"flex items-center gap-2",children:[i&&O(i,{className:"h-4 w-4"}),z]}):L("div",{className:"flex flex-wrap gap-1.5 flex-1 mr-2",children:[U.map(e=>L(Nt,{variant:"secondary",className:"gap-1 pr-1",children:[e.label,O("button",{type:"button",className:"rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",onKeyDown:a=>{"Enter"===a.key&&W(e.value,a)},onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:a=>W(e.value,a),children:O(Z,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})]},e.value)),H>0&&L(Nt,{variant:"outline",className:"gap-1",children:["+",H]})]}),O(X,{className:"h-4 w-4 shrink-0 opacity-50"})]}):L(Ca,{variant:"outline",role:"combobox","aria-expanded":w,disabled:c,className:a("w-full justify-between min-h-10 h-auto font-normal",0===F.length&&"text-muted-foreground"),children:[0===F.length?L("span",{className:"flex items-center gap-2",children:[i&&O(i,{className:"h-4 w-4"}),z]}):L("span",{className:"flex items-center gap-2",children:[i&&O(i,{className:"h-4 w-4"}),F[0]?.label]}),O(X,{className:"h-4 w-4 shrink-0 opacity-50"})]})}),L(Lt,{className:"w-full p-0 bg-popover z-[60]",align:"start",container:P,collisionBoundary:P,children:[L("div",{className:"flex items-center border-b px-3",children:[O(ce,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),O("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:M,value:k,onChange:e=>S(e.target.value)}),k&&O("button",{type:"button",className:"rounded-sm p-0.5 text-muted-foreground hover:text-foreground",onClick:()=>S(""),children:O(Z,{className:"h-3.5 w-3.5"})})]}),O("div",{className:"max-h-[300px] overflow-y-auto overflow-x-hidden",children:O("div",{role:"tree",className:"p-1",children:0===I.length?O("div",{className:"py-6 text-center text-sm text-muted-foreground",children:0===t.length?R:y("no_search_results",y("no_results"))}):O(Xt,{nodes:I,level:0,expandedIds:B,onToggleExpand:T,selectedValues:_,onSelect:G,showCheck:N})})})]})]})]})}function er(e){return`crud-sort-${e}`}function ar(e){try{const a=localStorage.getItem(er(e));if(!a)return null;const t=JSON.parse(a);return"string"!=typeof t?.field||"asc"!==t.direction&&"desc"!==t.direction?null:t}catch{return null}}function tr({queryKey:e,service:a,entityName:s,searchFields:o,additionalFilters:i={},onSuccess:l}){const[d,c]=ca(),m=ia(),{alias:u,userId:h,isAuthenticated:p}=t(),{t:f}=oa(),g=q(a=>{const t=`${e}_${a}`,r=d.get(t);return r||(d.get(a)||"")},[d,e]),b=g("search"),v=parseInt(g("page")||"1"),x=parseInt(g("limit")||String(r.pagination.defaultPageSize)),[N]=$(()=>null!==ar(e)),[y,w]=$(()=>ar(e)??{field:r.sorting.defaultField,direction:r.sorting.defaultDirection}),C=y.field,k=y.direction,S=b,D=V(()=>({search:S,sortField:C,sortDirection:k,page:v,limit:x,...i}),[S,C,k,v,x,i]),A=q(()=>a.getAll(D),[a,D]),z=la({queryKey:[e,u,h,D],queryFn:A,enabled:!!u&&p});if(!z)throw new Error(`useCrud: Query initialization failed for "${s}". Ensure QueryClientProvider is configured in your app root.`);const R=da({mutationFn:a.create,onSuccess:()=>{m.invalidateQueries({queryKey:[e]}),ta.success(n.success.created(s)),l?.()},onError:e=>{ta.error(`${n.error.create(s)}: ${e.message}`)}}),M=da({mutationFn:({id:e,data:t})=>a.update(e,t),onSuccess:()=>{m.invalidateQueries({queryKey:[e]}),ta.success(n.success.updated(s)),l?.()},onError:e=>{ta.error(`${n.error.update(s)}: ${e.message}`)}}),_=da({mutationFn:a.delete,onSuccess:()=>{m.invalidateQueries({queryKey:[e]}),ta.success(n.success.deleted(s))},onError:e=>{ta.error(`${n.error.delete(s)}: ${e.message}`)}}),P=q(a=>{const t={...Object.fromEntries(d)};Object.entries(a).forEach(([a,r])=>{const n=`${e}_${a}`;""===r||0===r?delete t[n]:t[n]=String(r)}),delete t.sortField,delete t.sortDirection,delete t[`${e}_sortField`],delete t[`${e}_sortDirection`],c(t)},[d,c,e]),I=q(e=>{P({search:e,page:1})},[P]),E=q((a,t)=>{w({field:a,direction:t}),function(e,a){try{localStorage.setItem(er(e),JSON.stringify(a))}catch{}}(e,{field:a,direction:t})},[e]),B=q(e=>{E(e,C===e&&"asc"===k?"desc":"asc"),P({page:1})},[C,k,E,P]),O=q(e=>{P({page:e})},[P]),L=q(e=>{P({limit:e,page:1})},[P]),T=q(()=>{const a=Object.fromEntries(d),t=`${e}_`,r=Object.fromEntries(Object.entries(a).filter(([e])=>!e.startsWith(t)));c(r)},[c,d,e]),[F,j]=$([]),G=q(e=>{j(a=>a.includes(e)?a.filter(a=>a!==e):[...a,e])},[]),W=q(()=>{const e=z?.data?.data.map(e=>e.id)||[];j(a=>a.length===e.length?[]:e)},[z?.data?.data]),U=q(()=>{j([])},[]),H=V(()=>{const e=z?.data?.data.map(e=>e.id)||[];return e.length>0&&F.length===e.length},[F,z?.data?.data]),K=da({mutationFn:async e=>{await Promise.all(e.map(e=>a.delete(e)))},onSuccess:(a,t)=>{m.invalidateQueries({queryKey:[e]}),ta.success(f("bulk_delete_success",`${t.length} ${s}(s) deletado(s) com sucesso`)),U()},onError:e=>{ta.error(f("bulk_delete_error",`Erro ao deletar itens: ${e.message}`))}}),Q=q((e,a)=>{const t=a?a(e):e;e.id?M.mutate({id:e.id,data:t}):R.mutate({...t,alias:u})},[u,R,M]);return{entities:z?.data?.data||[],pagination:{data:z?.data?.data||[],currentPage:z?.data?.currentPage||1,totalPages:z?.data?.totalPages||1,totalItems:z?.data?.totalItems||0,itemsPerPage:z?.data?.itemsPerPage||r.pagination.defaultPageSize,hasNextPage:z?.data?.hasNextPage||!1,hasPreviousPage:z?.data?.hasPreviousPage||!1},isLoading:z?.isLoading??!0,isCreating:R?.isPending??!1,isUpdating:M?.isPending??!1,isDeleting:_?.isPending??!1,error:z?.error||null,searchTerm:b,sortField:C,sortDirection:k,hasStoredSort:N,currentPage:v,itemsPerPage:x,queryKey:e,createEntity:R.mutate,updateEntity:(e,a)=>M.mutate({id:e,data:a}),deleteEntity:_.mutate,save:Q,handleSearch:I,handleSort:B,setSort:E,handlePageChange:O,handleItemsPerPageChange:L,clearFilters:T,refetch:z.refetch,selectedIds:F,selectItem:G,selectAll:W,clearSelection:U,isAllSelected:H,bulkDelete:e=>K.mutateAsync(e),isBulkDeleting:K.isPending}}function rr(e){const a=s({tableName:e.tableName,searchFields:e.searchFields||["title"],selectFields:e.selectFields,schemaName:e.schemaName||"central",entityName:e.entityName,enableQualiexEnrichment:e.enableQualiexEnrichment??!0,userIdFields:e.userIdFields,userFieldsMapping:e.userFieldsMapping});return{service:a,useCrudHook:(t,r)=>tr({queryKey:e.tableName,service:a,entityName:e.entityName,additionalFilters:t,onSuccess:r})}}function nr(e){const[a,t]=$(()=>"undefined"!=typeof window&&window.matchMedia(e).matches);return G(()=>{const a=window.matchMedia(e);t(a.matches);const r=e=>{t(e.matches)};return a.addEventListener("change",r),()=>a.removeEventListener("change",r)},[e]),a}function sr(e=768){return nr(`(max-width: ${e-1}px)`)}const or=F.forwardRef(({className:e,...t},r)=>O("table",{ref:r,className:a("w-full caption-bottom text-[13px] table-fixed",e),...t}));or.displayName="Table";const ir=F.forwardRef(({className:e,...t},r)=>O("thead",{ref:r,className:a("[&_tr]:border-b sticky top-0 z-[1] bg-background",e),...t}));ir.displayName="TableHeader";const lr=F.forwardRef(({className:e,...t},r)=>O("tbody",{ref:r,className:a("[&_tr:last-child]:border-0",e),...t}));lr.displayName="TableBody";F.forwardRef(({className:e,...t},r)=>O("tfoot",{ref:r,className:a("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t})).displayName="TableFooter";const dr=F.forwardRef(({className:e,...t},r)=>O("tr",{ref:r,className:a("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted even:bg-table-stripe",e),...t}));dr.displayName="TableRow";const cr=F.forwardRef(({className:e,...t},r)=>O("th",{ref:r,className:a("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",e),...t}));cr.displayName="TableHead";const mr=F.forwardRef(({className:e,...t},r)=>O("td",{ref:r,className:a("px-4 py-2 align-middle whitespace-nowrap overflow-hidden text-ellipsis [&:has([role=checkbox])]:pr-0",e),...t}));mr.displayName="TableCell";function ur({rows:e=5,columns:a=4}){return O("div",{className:"w-full",children:L("div",{className:"rounded-md border",children:[O("div",{className:"border-b bg-muted/50 px-4 py-3",children:O("div",{className:"flex space-x-4",children:Array.from({length:a}).map((e,a)=>O(Gt,{className:"h-4 w-24"},a))})}),O("div",{children:Array.from({length:e}).map((e,t)=>O("div",{className:"border-b px-4 py-3 last:border-0",children:O("div",{className:"flex space-x-4",children:Array.from({length:a}).map((e,a)=>O(Gt,{className:"h-4 w-20"},a))})},t))})]})})}function hr({count:e=3}){return O("div",{className:"space-y-4",children:Array.from({length:e}).map((e,a)=>L(za,{children:[L(Ra,{children:[O(Gt,{className:"h-4 w-3/4"}),O(Gt,{className:"h-3 w-1/2"})]}),O(Pa,{children:L("div",{className:"space-y-2",children:[O(Gt,{className:"h-3 w-full"}),O(Gt,{className:"h-3 w-2/3"})]})})]},a))})}F.forwardRef(({className:e,...t},r)=>O("caption",{ref:r,className:a("mt-4 text-sm text-muted-foreground",e),...t})).displayName="TableCaption";const pr={default:me,search:ce,error:de};function fr({icon:e,title:t,description:r,action:n,className:s,variant:o="default"}){const{t:i}=oa(),l=!!e,d=pr[o];return L("div",{className:a("flex flex-col items-center justify-center py-12 px-4 text-center",s),children:[O("div",{className:"flex items-center justify-center w-16 h-16 rounded-full bg-muted mb-4",children:l?e:O(d,{className:"h-8 w-8 text-muted-foreground"})}),O("h3",{className:"text-lg font-semibold mb-2",children:t}),r&&O("p",{className:"text-muted-foreground mb-6 max-w-sm",children:r}),n&&O(Ca,{onClick:n.onClick,variant:"outline",children:n.label})]})}function gr({children:e,className:a}){const t=F.useRef(null),[r,n]=F.useState(!1);F.useEffect(()=>{const e=()=>{const e=t.current;e&&n(e.scrollWidth>e.clientWidth)};e();const a=new ResizeObserver(e);return t.current&&a.observe(t.current),()=>a.disconnect()},[e]);const s=O("div",{ref:t,className:`truncate w-full max-w-full ${a||""}`,children:e});return r?O(Mt,{delayDuration:300,children:L(_t,{children:[O(Pt,{asChild:!0,children:s}),O(It,{side:"top",className:"max-w-[400px] break-words",children:e})]})}):s}const br=F.forwardRef(({direction:e,onMouseDown:t,isDragging:r,className:n},s)=>{const o="horizontal"===e;return O("div",{ref:s,onMouseDown:t,className:a("absolute z-20 select-none touch-none","transition-colors duration-150",o&&["top-0 right-0 h-full w-2 -mr-1","cursor-col-resize","hover:bg-primary/20","group flex items-center justify-center"],!o&&["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:O("div",{className:a("rounded-full bg-border transition-colors group-hover:bg-primary",r&&"bg-primary",o?"h-6 w-0.5":"w-6 h-0.5")})})});br.displayName="TableResizeHandle";const vr=fa.Root,xr=fa.Trigger;F.forwardRef(({className:e,inset:t,children:r,...n},s)=>L(fa.SubTrigger,{ref:s,className:a("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",t&&"pl-8",e),...n,children:[r,O(ie,{className:"ml-auto h-4 w-4"})]})).displayName=fa.SubTrigger.displayName;F.forwardRef(({className:e,...t},r)=>O(fa.SubContent,{ref:r,className:a("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",e),...t})).displayName=fa.SubContent.displayName;const Nr=F.forwardRef(({className:e,...t},r)=>O(fa.Portal,{children:O(fa.Content,{ref:r,className:a("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",e),...t})}));Nr.displayName=fa.Content.displayName;const yr=F.forwardRef(({className:e,inset:t,...r},n)=>O(fa.Item,{ref:n,className:a("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",t&&"pl-8",e),...r}));yr.displayName=fa.Item.displayName;F.forwardRef(({className:e,children:t,checked:r,...n},s)=>L(fa.CheckboxItem,{ref:s,className:a("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",e),checked:r,...n,children:[O("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:O(fa.ItemIndicator,{children:O(ee,{className:"h-4 w-4"})})}),t]})).displayName=fa.CheckboxItem.displayName;F.forwardRef(({className:e,children:t,...r},n)=>L(fa.RadioItem,{ref:n,className:a("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",e),...r,children:[O("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:O(fa.ItemIndicator,{children:O(le,{className:"h-2 w-2 fill-current"})})}),t]})).displayName=fa.RadioItem.displayName;F.forwardRef(({className:e,inset:t,...r},n)=>O(fa.Label,{ref:n,className:a("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...r})).displayName=fa.Label.displayName;F.forwardRef(({className:e,...t},r)=>O(fa.Separator,{ref:r,className:a("-mx-1 my-1 h-px bg-border",e),...t})).displayName=fa.Separator.displayName;const wr=({onEdit:e,onDelete:t,onToggleStatus:r,isActive:n=!0,canDelete:s=!0,customActions:o=[],renderAs:i})=>{const{t:l}=oa(),d=[];if(e){const a={icon:ue,label:l("edit"),onClick:e};d.push(a)}if(o.forEach(e=>{d.push(e)}),r){const e={icon:n?he:pe,label:n?"Inativar":"Ativar",onClick:r};d.push(e)}if(s&&t){const e={icon:fe,label:l("ap_delete"),onClick:t,destructive:!0};d.push(e)}const c="dropdown"===i?zt:yr;return O(T,{children:d.map((e,t)=>L(c,{onClick:e.onClick,className:a("whitespace-normal cursor-pointer",e.destructive&&"text-destructive focus:text-destructive"),children:[O(e.icon,{className:"mr-2 h-4 w-4 flex-shrink-0"}),e.label]},t))})},Cr=({onEdit:e,onDelete:a,canDelete:t=!0,onToggleStatus:r,isActive:n=!0,customActions:s=[]})=>L(St,{children:[O(Dt,{asChild:!0,children:O(Ca,{variant:"action",size:"sm",className:"h-7 px-2 text-xs",children:O(J,{size:12})})}),O(At,{align:"end",className:"bg-background border border-border shadow-lg min-w-[160px]",children:O(wr,{onEdit:e?a=>{a?.stopPropagation(),e?.()}:void 0,onDelete:a?e=>{e?.stopPropagation(),a?.()}:void 0,onToggleStatus:r?e=>{e?.stopPropagation(),r?.()}:void 0,isActive:n,canDelete:t&&!!a,customActions:s,renderAs:"dropdown"})})]}),kr=({onEdit:e,onDelete:t,canDelete:r=!0,onToggleStatus:n,isActive:s=!0,customActions:o=[]})=>{const{t:i}=oa();return O(Mt,{delayDuration:200,children:L("div",{className:"flex items-center justify-end gap-0.5",children:[e&&L(_t,{children:[O(Pt,{asChild:!0,children:O(Ca,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:a=>{a.stopPropagation(),e()},children:O(ge,{size:14})})}),O(It,{children:i("edit")})]}),o.map((e,a)=>{const t=e.icon;return L(_t,{children:[O(Pt,{asChild:!0,children:O(Ca,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:a=>{a.stopPropagation(),e.onClick()},children:O(t,{size:14})})}),O(It,{children:e.label})]},a)}),n&&L(_t,{children:[O(Pt,{asChild:!0,children:O(Ca,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:e=>{e.stopPropagation(),n()},children:O(s?be:ve,{size:14})})}),O(It,{children:s?"Inativar":"Ativar"})]}),t&&r&&L(_t,{children:[O(Pt,{asChild:!0,children:O(Ca,{variant:"ghost",size:"icon",className:a("h-7 w-7 hover:text-destructive"),onClick:e=>{e.stopPropagation(),t()},children:O(fe,{size:14})})}),O(It,{children:i("ap_delete")})]})]})})},Sr=150;function Dr({columns:e,storageKey:a,onResize:t,enabled:r=!0}){const[n,s]=$(()=>{if(!r||"undefined"==typeof window)return e.reduce((e,a)=>(e[a.key]=a.defaultWidth??Sr,e),{});if(a){const e=localStorage.getItem(a);if(e)try{return JSON.parse(e)}catch{}}return e.reduce((e,a)=>(e[a.key]=a.defaultWidth??Sr,e),{})}),[o,i]=$(!1),[l,d]=$(null),c=W(0),m=W(0),u=q((e,a)=>{r&&(a.preventDefault(),a.stopPropagation(),i(!0),d(e),c.current=a.clientX,m.current=n[e]??Sr)},[r,n]);G(()=>{if(!o||!l)return;const r=e.find(e=>e.key===l),n=r?.minWidth??60,u=r?.maxWidth??500,h=e=>{const a=e.clientX-c.current,r=Math.max(n,Math.min(u,m.current+a));s(e=>{const a={...e,[l]:r};return t?.(a),a})},p=()=>{i(!1),d(null),a&&s(e=>(localStorage.setItem(a,JSON.stringify(e)),e))};return document.addEventListener("mousemove",h),document.addEventListener("mouseup",p),()=>{document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",p)}},[o,l,e,a,t]),G(()=>(o?(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=""}),[o]);const h=q(()=>{const r=e.reduce((e,a)=>(e[a.key]=a.defaultWidth??Sr,e),{});s(r),a&&localStorage.removeItem(a),t?.(r)},[e,a,t]);return{columnWidths:n,isDragging:o,activeColumn:l,handleMouseDown:u,resetWidths:h}}const Ar=Q("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"}});F.forwardRef(({className:e,variant:t,size:r,...n},s)=>O(ba.Root,{ref:s,className:a(Ar({variant:t,size:r,className:e})),...n})).displayName=ba.Root.displayName;const zr=F.createContext({size:"default",variant:"default"}),Rr=F.forwardRef(({className:e,variant:t,size:r,children:n,...s},o)=>O(ga.Root,{ref:o,className:a("flex items-center justify-center gap-1",e),...s,children:O(zr.Provider,{value:{variant:t,size:r},children:n})}));Rr.displayName=ga.Root.displayName;const Mr=F.forwardRef(({className:e,children:t,variant:r,size:n,...s},o)=>{const i=F.useContext(zr);return O(ga.Item,{ref:o,className:a(Ar({variant:i.variant||r,size:i.size||n}),e),...s,children:t})});Mr.displayName=ga.Item.displayName;const _r=U(function({onNew:e,newButtonLabel:t,showNewButton:r=!0,showSearch:n=!1,searchValue:s="",onSearchChange:o,searchPlaceholder:i,showBulkActions:l=!1,selectedCount:d=0,bulkActions:c=[],onBulkDelete:m,onClearSelection:u,customActions:h=[],filters:p,viewMode:f,onViewModeChange:g,showViewToggle:b=!1,availableViewModes:v=["table","list","grid"],rightSlot:x,className:N}){const{t:y}=oa(),w=d>0,C=e&&r||h.length>0,k=p||b||x,S=n&&o;return C||S||k||l&&w?L("div",{className:a("flex-shrink-0 flex items-center px-4 py-1.5 bg-muted/50 border-b gap-4",N),children:[L("div",{className:"flex items-center gap-2 shrink-0",children:[e&&r&&L(Ca,{onClick:e,children:[O(xe,{size:16,className:"mr-2"}),t||"Novo"]}),h.map((e,a)=>{const t=e.icon;return L(Ca,{onClick:e.action,variant:e.variant||"outline",disabled:e.disabled,title:e.disabled?e.disabledReason:void 0,children:[t&&O(t,{size:16,className:"mr-2"}),e.label]},a)})]}),l&&w&&L("div",{className:"flex items-center gap-1 shrink-0 border-l pl-4",children:[O(Nt,{variant:"secondary",className:"mr-1 tabular-nums",children:d}),L(Mt,{delayDuration:200,children:[c.length>0?c.map((e,t)=>{const r=e.icon,n=e.disabled;return L(_t,{children:[O(Pt,{asChild:!0,children:O(Ca,{variant:"ghost",size:"icon",className:a("h-8 w-8","destructive"===e.variant&&"text-destructive hover:text-destructive hover:bg-destructive/10"),disabled:n,onClick:()=>e.action([]),children:r?O(r,{size:16}):O("span",{className:"text-xs",children:e.label[0]})})}),O(It,{children:e.label})]},t)}):L(_t,{children:[O(Pt,{asChild:!0,children:O(Ca,{variant:"ghost",size:"icon",className:"h-8 w-8 text-destructive hover:text-destructive hover:bg-destructive/10",onClick:m,children:O(fe,{size:16})})}),O(It,{children:y("ap_delete")})]}),L(_t,{children:[O(Pt,{asChild:!0,children:O(Ca,{variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground",onClick:u,children:O(Z,{size:16})})}),O(It,{children:y("clear_selection")})]})]})]}),S&&O("div",{className:"flex-1 flex justify-start max-w-md mr-auto",children:L("div",{className:"relative w-full",children:[O(ce,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),O(Sa,{type:"text",placeholder:i||"Pesquisar",value:s,onChange:e=>o?.(e.target.value),className:"pl-9 w-full"})]})}),k&&L("div",{className:"flex items-center gap-2 shrink-0 ml-auto",children:[p,b&&f&&g&&O(Rr,{type:"single",value:f,onValueChange:e=>e&&g(e),size:"sm",children:v.map(e=>{const a=(e=>{switch(e){case"table":return we;case"list":return ye;case"grid":return Ne}})(e);return O(Mr,{value:e,"aria-label":"Visualizar como "+("table"===e?"tabela":"list"===e?"lista":"grade"),children:O(a,{className:"h-4 w-4"})},e)})}),x]})]}):null}),Pr=U(({checked:e,onCheckedChange:a})=>O(bt,{checked:e,onCheckedChange:a}),(e,a)=>e.checked===a.checked);function Ir(e){try{const a=localStorage.getItem(e);if(!a)return null;const t=JSON.parse(a);let r=t.groupByColumns||[];return 0===r.length&&t.groupByColumn&&(r=[t.groupByColumn]),{hiddenColumns:new Set(t.hiddenColumns||[]),columnOrder:t.columnOrder||[],groupByColumns:r}}catch{return null}}function Er({columns:e,storageKey:a,enabled:t=!0,defaultHiddenColumns:r}){const n=V(()=>e.map(e=>String(e.key)),[e]),s=V(()=>new Set(r??[]),[r]),[o,i]=$(()=>{if(!t)return s;if(!a)return s;const e=Ir(a);return e?.hiddenColumns??s}),[l,d]=$(()=>{if(!t||!a)return n;const e=Ir(a)?.columnOrder;return e&&e.length>0?e:n}),[c,m]=$(()=>t&&a?Ir(a)?.groupByColumns??[]:[]),[u,h]=$(new Set);G(()=>{t&&a&&function(e,a){try{localStorage.setItem(e,JSON.stringify({hiddenColumns:Array.from(a.hiddenColumns),columnOrder:a.columnOrder,groupByColumns:a.groupByColumns}))}catch{}}(a,{hiddenColumns:o,columnOrder:l,groupByColumns:c})},[o,l,c,a,t]),G(()=>{const a=new Set(e.map(e=>String(e.key))),t=new Set(l),r=[...a].filter(e=>!t.has(e));if(r.length>0){d(e=>[...e.filter(e=>a.has(e)),...r]);const e=r.filter(e=>s.has(e));e.length>0&&i(a=>new Set([...a,...e]))}},[e,s]);const p=q(e=>o.has(e),[o]),f=q(e=>{i(a=>{const t=new Set(a);return t.has(e)?t.delete(e):t.add(e),t})},[]),g=q(()=>{i(new Set)},[]),b=q(()=>{if(i(s),d(n),m([]),h(new Set),a)try{localStorage.removeItem(a)}catch{}},[n,s,a]),v=q((e,a)=>{d(t=>{const r=[...t],[n]=r.splice(e,1);return r.splice(a,0,n),r})},[]),x=q(e=>{h(a=>{const t=new Set(a);return t.has(e)?t.delete(e):t.add(e),t})},[]),N=q(e=>{m(e),h(new Set)},[]),y=q(e=>{m(a=>a.includes(e)?a:[...a,e])},[]),w=q(e=>{m(a=>a.filter(a=>a!==e)),h(a=>{const t=new Set;for(const r of a)r.includes(`${e}:`)||t.add(r);return t})},[]),C=q((e,a)=>{m(t=>{const r=[...t],[n]=r.splice(e,1);return r.splice(a,0,n),r}),h(new Set)},[]),k=c[0]??null,S=q(e=>{m(e?[e]:[]),h(new Set)},[]),D=V(()=>{if(!t)return e;const a=new Map(e.map(e=>[String(e.key),e]));return l.filter(e=>!o.has(e)&&a.has(e)).map(e=>a.get(e))},[e,l,o,t]),A=q(e=>{if(0===c.length)return[{groupKey:"__all__",groupValue:"",items:e,count:e.length,level:0}];return function e(a,t,r,n){if(0===t.length)return[{groupKey:n||"__leaf__",groupValue:"",items:a,count:a.length,level:r}];const[s,...o]=t,i=new Map;for(const l of a){const e=String(l[s]??"(vazio)");i.has(e)||i.set(e,[]),i.get(e).push(l)}return Array.from(i.entries()).map(([a,t])=>{const i=n?`${n}|${s}:${a}`:`${s}:${a}`,l=o.length>0?e(t,o,r+1,i):void 0;return{groupKey:i,groupValue:a,items:t,count:t.length,level:r,children:l}})}(e,c,0,"")},[c]);return{visibleColumns:D,allColumns:e,isColumnHidden:p,toggleColumn:f,showAllColumns:g,resetColumns:b,columnOrder:l,reorderColumns:v,groupByColumn:k,setGroupByColumn:S,groupByColumns:c,setGroupByColumns:N,addGroupByColumn:y,removeGroupByColumn:w,reorderGroupByColumns:C,getGroupedData:A,collapsedGroups:u,toggleGroupCollapse:x}}function Br({columns:e,columnOrder:t,isColumnHidden:r,toggleColumn:n,showAllColumns:s,reorderColumns:o,groupByColumn:i,setGroupByColumn:l,groupByColumns:d=[],addGroupByColumn:c,removeGroupByColumn:m,resetColumns:u}){const{t:h}=oa(),[p,f]=$(null),[g,b]=$(null),v=W(null),x=new Map(e.map(e=>[String(e.key),e])),N=t.filter(e=>x.has(e)).map(e=>x.get(e)),y=()=>{v.current=null,f(null),b(null)};N.some(e=>r(String(e.key)));const w=N.every(e=>!r(String(e.key)));return L(Bt,{children:[O(Ot,{asChild:!0,children:O(Ca,{variant:"outline",size:"icon",className:"h-8 w-8",children:O(Ce,{size:16})})}),L(Lt,{className:"w-[260px] p-0",align:"end",children:[O("div",{className:"px-3 py-2 border-b",children:O("span",{className:"text-sm font-medium",children:h("columns")})}),O("div",{className:"max-h-[300px] overflow-auto py-1",children:O(Mt,{delayDuration:300,children:N.map((e,t)=>{const s=String(e.key),u=r(s),x=!1!==e.hideable,N=!0===e.groupable,w=d.includes(s)||i===s;return L("div",{draggable:!0,onDragStart:()=>(e=>{v.current=e,f(e)})(t),onDragOver:e=>((e,a)=>{e.preventDefault(),b(a)})(e,t),onDrop:()=>(e=>{null!==v.current&&v.current!==e&&o(v.current,e),v.current=null,f(null),b(null)})(t),onDragEnd:y,className:a("flex items-center gap-2 px-3 py-1.5 text-sm cursor-grab active:cursor-grabbing","hover:bg-muted/50 transition-colors",p===t&&"opacity-50",g===t&&"border-t-2 border-primary"),children:[O(ke,{size:14,className:"text-muted-foreground shrink-0"}),O(bt,{checked:!u,onCheckedChange:()=>x&&n(s),disabled:!x,className:"shrink-0"}),O("span",{className:a("flex-1 truncate",u&&"text-muted-foreground"),children:e.header}),N&&L(_t,{children:[O(Pt,{asChild:!0,children:O(Ca,{variant:"ghost",size:"icon",className:a("h-6 w-6 shrink-0",w&&"text-primary bg-primary/10"),onClick:e=>{e.stopPropagation(),w?m?m(s):l?.(null):c?c(s):l?.(s)},children:O(Se,{size:14})})}),O(It,{children:h(w?"remove_grouping":"group_by_column")})]})]},s)})})}),L("div",{className:"border-t px-3 py-2 space-y-1",children:[O(Ca,{variant:"ghost",size:"sm",className:"w-full text-xs font-normal justify-start",onClick:w?()=>N.filter(e=>!1!==e.hideable).forEach(e=>n(String(e.key))):s,children:h(w?"deselect_all":"select_all_columns")}),u&&O(Ca,{variant:"ghost",size:"sm",className:"w-full text-xs font-normal justify-start",onClick:u,children:h("reset_default")})]})]})]})}function Or({columns:e,groupByColumns:t,addGroupByColumn:r,removeGroupByColumn:n,reorderGroupByColumns:s}){const[o,i]=$(!1),[l,d]=$(null),[c,m]=$(null),u=new Map(e.map(e=>[String(e.key),e])),h=()=>{d(null),m(null)},p=t.length>0;return L("div",{onDragOver:e=>{e.preventDefault(),e.dataTransfer.dropEffect="move",i(!0)},onDragLeave:e=>{e.currentTarget.contains(e.relatedTarget)||i(!1)},onDrop:e=>{e.preventDefault(),i(!1);if(Array.from(e.dataTransfer.types).includes("application/group-chip-index"))return;const a=e.dataTransfer.getData("application/column-key");if(a&&!t.includes(a)){const e=u.get(a);e&&e.groupable&&r(a)}},className:a("flex items-center gap-2 px-4 py-2 min-h-[40px] border-b transition-colors",o&&"bg-primary/5 border-primary/30",!p&&"text-muted-foreground"),children:[O(Se,{size:14,className:"shrink-0 text-muted-foreground"}),O("div",{className:"flex-1 flex items-center gap-1.5 flex-wrap",children:p?t.map((e,t)=>{const r=u.get(e);if(!r)return null;const o=l===t,i=c===t&&l!==t;return L(j.Fragment,{children:[t>0&&O("span",{className:"text-xs text-muted-foreground",children:"›"}),L(Nt,{variant:"secondary",className:a("cursor-grab active:cursor-grabbing gap-1 pr-1 select-none",o&&"opacity-50",i&&"ring-2 ring-primary"),draggable:!0,onDragStart:e=>((e,a)=>{e.stopPropagation(),e.dataTransfer.setData("application/group-chip-index",String(a)),e.dataTransfer.effectAllowed="move",d(a)})(e,t),onDragOver:e=>((e,a)=>{e.preventDefault(),e.stopPropagation(),m(a)})(e,t),onDrop:e=>((e,a)=>{e.preventDefault(),e.stopPropagation();const t=e.dataTransfer.getData("application/group-chip-index");if(""!==t){const e=parseInt(t,10);isNaN(e)||e===a||s(e,a)}d(null),m(null)})(e,t),onDragEnd:h,children:[r.header,O("button",{onClick:a=>{a.stopPropagation(),n(e)},className:"ml-0.5 rounded-full p-0.5 hover:bg-muted-foreground/20 transition-colors",children:O(Z,{size:12})})]})]},e)}):O("span",{className:"text-xs",children:"Arraste um cabeçalho de coluna aqui para agrupar"})})]})}const Lr=({manager:e,columns:r,onEdit:n,onView:s,onToggleStatus:o,onDelete:i,renderActions:l,customRowActions:d,enableBulkActions:c=!1,rowActionsVariant:m="dropdown",onNew:u,newButtonLabel:h,showNewButton:p=!0,customActions:f=[],hideActionBar:g,showActionBar:b=!0,showSearch:v=!1,searchValue:x,onSearchChange:N,searchPlaceholder:y,bulkActions:w=[],onBulkDelete:C,filters:k,viewMode:S,onViewModeChange:D,showViewToggle:A=!1,enableColumnResize:z=!0,resizeStorageKey:R,enableColumnManager:M=!0,columnManagerStorageKey:_,defaultHiddenColumns:P,enableGrouping:I=!1,enableExpandableRows:E=!1,renderExpandedContent:B,expandedRowIds:T,onToggleExpand:F,defaultExpandAll:W=!1,hideActionsColumn:U=!1,readOnly:H=!1})=>{const{t:K}=oa(),{setSearchVisible:Q}=t(),J=sr(),[Z,Y]=$(()=>W&&E?new Set(e.entities.map(e=>e.id)):new Set),ee=void 0!==T,ae=ee?new Set(T):Z,te=q(e=>{ee&&F?F(e):Y(a=>{const t=new Set(a);return t.has(e)?t.delete(e):t.add(e),t})},[ee,F]),re=void 0!==g?!g:b;G(()=>{if(!v)return Q(!0),()=>Q(!1)},[Q,v]);const ne=Er({columns:r,storageKey:_,enabled:M,defaultHiddenColumns:P}),se=function({enabled:e=!1,onReorder:a}){const[t,r]=$(null),[n,s]=$(null),o=q(()=>{r(null),s(null)},[]),i=q((n,i)=>({draggable:e,onDragStart:a=>{e&&(r(n),a.dataTransfer.effectAllowed="copyMove",a.dataTransfer.setData("text/plain",String(n)),i&&a.dataTransfer.setData("application/column-key",i))},onDragOver:a=>{e&&null!==t&&(a.preventDefault(),a.dataTransfer.dropEffect="move")},onDragEnter:a=>{e&&null!==t&&(a.preventDefault(),s(n))},onDrop:r=>{r.preventDefault(),e&&null!==t&&t!==n?(a(t,n),o()):o()},onDragEnd:()=>{o()}}),[e,t,a,o]);return V(()=>({dragFromIndex:t,dragOverIndex:n,isDragging:null!==t,getDragProps:i}),[t,n,i])}({enabled:M,onReorder:ne.reorderColumns}),oe=M?ne.visibleColumns:r,{columnWidths:le,isDragging:de,activeColumn:ce,handleMouseDown:me}=Dr({columns:oe.map(e=>({key:String(e.key),minWidth:e.minWidth??60,maxWidth:500,defaultWidth:e.width??e.minWidth??150})),storageKey:R?`${R}-columns`:void 0,enabled:z}),ue=V(()=>(()=>{if(z){const e=oe.map(e=>le[String(e.key)]??e.width??e.minWidth??150),a=e.reduce((e,a)=>e+a,0);return oe.map((t,r)=>({...t,calculatedWidth:e[r],style:{width:e[r]/a*100+"%"}}))}let e=0;const a=oe.map(a=>{if(a.width)return e+=a.width,{...a,calculatedWidth:a.width,isFixed:!0};{const t=a.minWidth||120,r=a.weight||1;return e+=t,{...a,calculatedWidth:t,weight:r,isFixed:!1}}});return e+=50,a.map(e=>e.isFixed?{...e,style:{width:`${e.calculatedWidth}px`}}:{...e,style:{minWidth:`${e.calculatedWidth}px`,width:`${e.calculatedWidth}px`}})})(),[oe,z,le]),he=u||f.length>0||v||c||k||A||M,pe=re&&he,fe=U||H,ge=C||(()=>{e.bulkDelete?.(e.selectedIds)}),be=e=>O(mr,{className:"text-center",children:l?l(e):"inline"===m?O("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity duration-150",children:O(kr,{onEdit:n?()=>n(e):void 0,onDelete:i?()=>i(e):void 0,onToggleStatus:o?()=>o(e):void 0,isActive:e.is_actived,customActions:d?d(e):[]})}):O(Cr,{onEdit:n?()=>n(e):void 0,onDelete:i?()=>i(e):void 0,onToggleStatus:o?()=>o(e):void 0,isActive:e.is_actived,customActions:d?d(e):[]})}),ve=e=>O(Nr,{className:"w-[160px]",children:O(wr,{onEdit:n?()=>n(e):void 0,onDelete:i?()=>i(e):void 0,onToggleStatus:o?()=>o(e):void 0,isActive:e.is_actived,canDelete:!!i,customActions:d?d(e):[],renderAs:"context"})}),xe=M?O(Br,{columns:r,columnOrder:ne.columnOrder,isColumnHidden:ne.isColumnHidden,toggleColumn:ne.toggleColumn,showAllColumns:ne.showAllColumns,resetColumns:ne.resetColumns,reorderColumns:ne.reorderColumns,groupByColumn:I?ne.groupByColumn:void 0,setGroupByColumn:I?ne.setGroupByColumn:void 0,groupByColumns:I?ne.groupByColumns:void 0,addGroupByColumn:I?ne.addGroupByColumn:void 0,removeGroupByColumn:I?ne.removeGroupByColumn:void 0}):void 0;if(J)return e.isLoading?O(hr,{count:3}):0===e.entities.length?O(fr,{title:Ke.t("no_items_found_empty"),description:Ke.t("no_data_to_display"),variant:"search"}):L("div",{className:"flex flex-col h-full",children:[pe&&O(_r,{onNew:u,newButtonLabel:h,showNewButton:p,showSearch:v,searchValue:x,onSearchChange:N,searchPlaceholder:y,showBulkActions:c,selectedCount:e.selectedIds.length,bulkActions:w,onBulkDelete:ge,onClearSelection:e.clearSelection,customActions:f,filters:k,viewMode:S,onViewModeChange:D,showViewToggle:A}),O("div",{className:"flex-1 overflow-auto space-y-4 p-4",children:e.entities.map(t=>{const r=O(za,{className:a("overflow-hidden cursor-pointer hover:bg-muted/50",c&&e.selectedIds.includes(t.id)&&"bg-muted"),onClick:a=>{a.stopPropagation(),c?e.selectItem(t.id):n?.(t)},children:O(Pa,{className:"p-4",children:L("div",{className:"flex items-start gap-3",children:[c&&O("div",{className:"pt-0.5",onClick:e=>e.stopPropagation(),children:O(Pr,{checked:e.selectedIds.includes(t.id),onCheckedChange:()=>e.selectItem(t.id)})}),L("div",{className:"flex-1",children:[oe.map(e=>L("div",{className:"flex justify-between items-start mb-2 last:mb-0",children:[L("span",{className:"text-sm font-medium text-muted-foreground min-w-0 mr-2",children:[e.header,":"]}),O("div",{className:"text-sm text-foreground text-right min-w-0 flex-1",children:e.render?e.render(t):String(t[e.key]??"")})]},String(e.key))),(n||s||l)&&O("div",{className:"mt-3 pt-3 border-t flex justify-end",onClick:e=>e.stopPropagation(),children:l?l(t):O(Cr,{onEdit:n?()=>{n(t)}:void 0,onDelete:i?()=>i(t):void 0,onToggleStatus:o?()=>o(t):void 0,isActive:t.is_actived,customActions:d?d(t):[]})})]})]})})},t.id);return H?r:L(vr,{children:[O(xr,{asChild:!0,children:r}),ve(t)]},t.id)})})]});const Ne=I&&ne.groupByColumns.length>0?ne.getGroupedData(e.entities):null,ye=null!==Ne,we=(E?1:0)+(c?1:0)+oe.length+(fe?0:1),Ce=t=>{const r=E&&ae.has(t.id),s=L(dr,{className:a("cursor-pointer hover:bg-muted/50 relative",("inline"===m||fe)&&"group",c&&e.selectedIds.includes(t.id)&&"bg-muted"),onClick:a=>{a.stopPropagation(),c?e.selectItem(t.id):n?.(t)},children:[E&&O(mr,{className:"w-[40px] px-2",children:O("button",{onClick:e=>{e.stopPropagation(),te(t.id)},className:"p-1 rounded-sm hover:bg-muted transition-colors","aria-label":K(r?"collapse_row":"expand_row"),children:O(r?X:ie,{size:16,className:"text-muted-foreground"})})}),c&&O(mr,{onClick:e=>e.stopPropagation(),children:O(Pr,{checked:e.selectedIds.includes(t.id),onCheckedChange:()=>e.selectItem(t.id)})}),oe.map(e=>O(mr,{className:e.className,children:O(gr,{children:e.render?e.render(t):String(t[e.key]??"")})},String(e.key))),!fe&&be(t)]});return L(j.Fragment,{children:[H?s:L(vr,{children:[O(xr,{asChild:!0,children:s}),ve(t)]}),r&&B&&O(dr,{className:"bg-muted/30 hover:bg-muted/30",children:O(mr,{colSpan:we,className:"p-0",children:O("div",{className:"animate-accordion-down overflow-hidden",children:B(t)})})})]},t.id)},ke=(e,t)=>e.map(e=>{const r=ne.collapsedGroups.has(e.groupKey),n=16*e.level,s=Math.max(30,70-15*e.level);return L(j.Fragment,{children:[O(dr,{className:a("hover:bg-muted cursor-pointer"),style:{backgroundColor:`hsl(var(--muted) / ${s}%)`},onClick:()=>ne.toggleGroupCollapse(e.groupKey),children:O(mr,{colSpan:t,className:"py-2 px-4",children:L("div",{className:"flex items-center gap-2 font-medium text-sm",style:{paddingLeft:`${n}px`},children:[O(r?ie:X,{size:16}),O("span",{children:e.groupValue}),L("span",{className:"text-muted-foreground font-normal",children:["(",e.count,")"]})]})})}),!r&&(e.children?ke(e.children,t):e.items.map(Ce))]},e.groupKey)});return L("div",{className:"flex flex-col h-full",children:[pe&&O(_r,{onNew:u,newButtonLabel:h,showNewButton:p,showSearch:v,searchValue:x,onSearchChange:N,searchPlaceholder:y,showBulkActions:c,selectedCount:e.selectedIds.length,bulkActions:w,onBulkDelete:ge,onClearSelection:e.clearSelection,customActions:f,filters:k,viewMode:S,onViewModeChange:D,showViewToggle:A}),e.isLoading?O(ur,{rows:5,columns:oe.length}):L("div",{className:"flex flex-col h-full overflow-hidden",children:[I&&O(Or,{columns:r,groupByColumns:ne.groupByColumns,addGroupByColumn:ne.addGroupByColumn,removeGroupByColumn:ne.removeGroupByColumn,reorderGroupByColumns:ne.reorderGroupByColumns}),O("div",{className:"flex-1 overflow-auto",children:L(or,{className:"table-fixed w-full",children:[L("colgroup",{children:[E&&O("col",{style:{width:"40px"}}),c&&O("col",{style:{width:"50px"}}),ue.map((e,a)=>O("col",{style:e.style},a)),!fe&&O("col",{style:{width:"inline"===m?"auto":"50px",minWidth:"50px"}})]}),O(ir,{children:L(dr,{children:[E&&O(cr,{className:"w-[40px]"}),c&&O(cr,{className:"w-[50px]",children:O(Pr,{checked:e.isAllSelected,onCheckedChange:e.selectAll})}),oe.map((t,r)=>{const n=z&&!1!==t.resizable,s=ce===String(t.key),o=M?se.getDragProps(r,String(t.key)):{},i=se.dragFromIndex===r,l=se.dragOverIndex===r&&se.dragFromIndex!==r;return L(cr,{className:a(t.className,!1!==t.sortable&&"hover:bg-muted/50 cursor-pointer","relative transition-opacity",M&&se.isDragging&&"cursor-grabbing",i&&"opacity-50",l&&"border-l-2 border-primary"),onClick:!1!==t.sortable?()=>e.handleSort(String(t.key)):void 0,...o,children:[L("div",{className:"flex items-center "+(t.className?.includes("text-center")?"justify-center":""),children:[t.header,!1!==t.sortable&&(d=String(t.key),e.sortField!==d?null:"asc"===e.sortDirection?O(De,{size:14,className:"ml-1"}):O(Ae,{size:14,className:"ml-1"}))]}),n&&O(br,{direction:"horizontal",onMouseDown:e=>me(String(t.key),e),isDragging:s})]},String(t.key));var d}),!fe&&O(cr,{className:"w-[50px] text-center",children:xe||Ke.t("actions")})]})}),O(lr,{children:0===e.entities.length?O(dr,{children:O(mr,{colSpan:we,className:"h-32",children:O(fr,{title:Ke.t("no_items_found_empty"),description:"Não há dados para exibir no momento.",variant:"search"})})}):ye?ke(Ne,we):e.entities.map(Ce)})]})})]})]})};function Tr(e,a,t,r){const[n,s]=$({}),[o,i]=$({}),l=V(()=>e,[e]),d=e=>e instanceof Date&&!isNaN(e.getTime()),c=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,a)=>{if(e.computedValue&&"function"==typeof e.computedValue)try{return e.computedValue(a)}catch(t){return c(e)}},u=(e,a,t)=>{if(e.required&&(""===a||null==a||Array.isArray(a)&&0===a.length))return`${e.label} é obrigatório`;if(e.validation){let n;if("function"==typeof e.validation?n=e.validation:e.validation.custom&&"function"==typeof e.validation.custom&&(n=e.validation.custom),n)try{const e=n(a,t);if(e)return e}catch(r){}}};G(()=>{if(!r)return;const e=a=>{const t=[];return a.forEach(a=>{t.push(a),a.fields&&t.push(...e(a.fields))}),t},t=e(l),n={};t.forEach(e=>{let t;if(a&&void 0!==a[e.name]){if(t=a[e.name],null==t&&(t=""),"date"===e.type&&t)if("string"==typeof t){const e=new Date(t);d(e)&&(t=e.toISOString().split("T")[0])}else d(t)&&(t=t.toISOString().split("T")[0])}else t=c(e);n[e.name]=t}),t.forEach(e=>{const a=m(e,n);void 0!==a&&(n[e.name]=a)}),a&&Object.keys(a).forEach(e=>{t.find(a=>a.name===e)||void 0===a[e]||(n[e]=a[e])}),s(n),i({})},[l,a,t,r]);const h=e=>{const a=[];return e.forEach(e=>{a.push(e),e.fields&&a.push(...h(e.fields))}),a},p=()=>{const e=h(l),a={};return e.forEach(e=>{const t=u(e,n[e.name],n);t&&(a[e.name]=t)}),i(a),0===Object.keys(a).length};return{formData:n,errors:o,updateField:(e,a)=>{s(t=>{const r={...t,[e]:a},n=((e,a)=>{let t={...a};const r=e=>{const a=[];return e.forEach(e=>{a.push(e),e.fields&&a.push(...r(e.fields))}),a};return r(l).filter(a=>a.dependsOn===e).forEach(e=>{const a=m(e,t);void 0!==a&&(t={...t,[e.name]:a})}),t})(e,r);return n}),o[e]&&i(a=>{const t={...a};return delete t[e],t});const t=h(l).find(a=>a.name===e);if(t){const r=u(t,a,n);r&&i(a=>({...a,[e]:r}))}},validateForm:p,handleSubmit:e=>a=>{a&&(a.preventDefault(),a.stopPropagation()),p()&&e(n)}}}const Fr=[{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}],jr=[10,22,35,45,55,68,78,87,94].flatMap(e=>Fr.map(({hue:a,saturation:t})=>((e,a,t)=>{t/=100;const r=a=>(a+e/30)%12,n=(a/=100)*Math.min(t,1-t),s=e=>{const a=t-n*Math.max(-1,Math.min(r(e)-3,Math.min(9-r(e),1)));return Math.round(255*a).toString(16).padStart(2,"0")};return`#${s(0)}${s(8)}${s(4)}`})(a,t,e))),$r=({value:e="#3b82f6",onChange:a,label:t,customColorLabel:r,presetColorsLabel:n,showHexValue:s=!0})=>{const{t:o}=oa(),i=r??o("custom_color"),l=n??o("preset_colors"),[d,c]=j.useState(!1),m=j.useRef([]),u=Fr.length,h=j.useMemo(()=>{const a=jr.findIndex(a=>a.toLowerCase()===e.toLowerCase());return a>=0?a:0},[e]),[p,f]=j.useState(h);j.useEffect(()=>{d&&(f(h),requestAnimationFrame(()=>{m.current[h]?.focus()}))},[d,h]);const g=e=>{const a=Math.max(0,Math.min(jr.length-1,e));f(a),m.current[a]?.focus()},b=e=>{a?.(e),c(!1)};return L("div",{className:"space-y-2",children:[t&&O(Aa,{children:t}),L(Bt,{open:d,onOpenChange:c,children:[O(Ot,{asChild:!0,children:L(Ca,{variant:"outline",className:"w-full justify-between text-left font-normal",onKeyDown:e=>{"ArrowDown"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||(e.preventDefault(),c(!0))},children:[L("span",{className:"flex items-center min-w-0",children:[O("span",{className:"h-4 w-4 rounded border mr-2 shrink-0",style:{backgroundColor:e}}),s&&O("span",{className:"truncate",children:e})]}),O(X,{className:"h-4 w-4 opacity-50 shrink-0"})]})}),O(Lt,{className:"w-auto p-3",onOpenAutoFocus:e=>{e.preventDefault(),requestAnimationFrame(()=>{m.current[h]?.focus()})},children:L("div",{className:"space-y-3",children:[L("div",{children:[O(Aa,{children:l}),O("div",{className:"grid gap-1 mt-2",style:{gridTemplateColumns:`repeat(${Fr.length}, minmax(0, 1fr))`},onKeyDown:e=>{switch(e.key){case"ArrowRight":e.preventDefault(),g(p+1);break;case"ArrowLeft":e.preventDefault(),g(p-1);break;case"ArrowDown":e.preventDefault(),g(p+u);break;case"ArrowUp":e.preventDefault(),g(p-u);break;case"Home":e.preventDefault(),g(0);break;case"End":e.preventDefault(),g(jr.length-1);break;case"Enter":e.preventDefault(),b(jr[p]);break;case"Tab":e.preventDefault(),c(!1)}},role:"grid",children:jr.map((a,t)=>{const r=a.toLowerCase()===e.toLowerCase();return O("button",{ref:e=>{m.current[t]=e},type:"button",tabIndex:t===p?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:()=>b(a),"aria-label":`Selecionar cor ${a}`},`${a}-${t}`)})})]}),L("div",{children:[O(Aa,{htmlFor:"color-input",children:i}),O(Sa,{id:"color-input",type:"color",value:e,onChange:e=>a?.(e.target.value),className:"h-8 w-full mt-2"})]})]})})]})]})},Vr=F.forwardRef(({className:e,children:t,...r},n)=>L(va.Root,{ref:n,className:a("relative overflow-hidden",e),...r,children:[O(va.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),O(qr,{}),O(va.Corner,{})]}));Vr.displayName=va.Root.displayName;const qr=F.forwardRef(({className:e,orientation:t="vertical",...r},n)=>O(va.ScrollAreaScrollbar,{ref:n,orientation:t,className:a("flex touch-none select-none transition-colors","vertical"===t&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===t&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:O(va.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));qr.displayName=va.ScrollAreaScrollbar.displayName;const Gr=[{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 Wr({name:e,filled:a,className:t}){return O("span",{className:`material-symbols-outlined ${t??""}`,style:a?{fontVariationSettings:"'FILL' 1"}:void 0,children:e})}const Ur=({value:e=null,onChange:a,label:t,noIconLabel:r="SEM ÍCONE",color:n="text-foreground/60"})=>{const[s,o]=$(!1),i=W([]),l=e?(d=e,Gr.find(e=>e.name===d)):null;var d;const c=V(()=>{if(!e)return 0;const a=Gr.findIndex(a=>a.name===e);return a>=0?a:0},[e]),[m,u]=$(c);G(()=>{s&&(u(c),requestAnimationFrame(()=>{i.current[c]?.focus()}))},[s,c]);const h=q(e=>{const a=Math.max(0,Math.min(Gr.length-1,e));u(a),i.current[a]?.focus()},[]),p=q(e=>{a?.(e),o(!1)},[a]),f=q(e=>{"ArrowDown"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||(e.preventDefault(),o(!0))},[]),g=q(e=>{switch(e.key){case"ArrowRight":e.preventDefault(),h(m+1);break;case"ArrowLeft":e.preventDefault(),h(m-1);break;case"ArrowDown":e.preventDefault(),h(m+10);break;case"ArrowUp":e.preventDefault(),h(m-10);break;case"Home":e.preventDefault(),h(0);break;case"End":e.preventDefault(),h(Gr.length-1);break;case"Enter":e.preventDefault(),p(Gr[m]?.name??null);break;case"Tab":e.preventDefault(),o(!1)}},[m,h,p]);return L("div",{className:"space-y-2",children:[t&&O(Aa,{children:t}),L(Bt,{open:s,onOpenChange:o,children:[O(Ot,{asChild:!0,children:L(Ca,{variant:"outline",className:"justify-start text-left font-normal gap-2",onKeyDown:f,children:[l?O(Wr,{name:l.name,filled:l.filled,className:`text-xl ${n}`}):O("span",{className:"text-muted-foreground text-sm",children:r}),O(X,{className:"ml-auto h-4 w-4 opacity-50"})]})}),O(Lt,{className:"w-auto max-w-[min(640px,calc(100vw-2rem))] p-3",align:"start",onOpenAutoFocus:e=>{e.preventDefault(),requestAnimationFrame(()=>{i.current[c]?.focus()})},children:L("div",{className:"space-y-3",children:[O(Vr,{className:"max-h-[min(480px,calc(100vh-12rem))]",children:O("div",{className:"grid grid-cols-10 gap-1",onKeyDown:g,role:"grid",children:Gr.map((a,t)=>O("button",{ref:e=>{i.current[t]=e},type:"button",tabIndex:t===m?0:-1,className:`flex items-center justify-center p-1.5 rounded border transition-colors ${n} ${e===a.name?"bg-accent border-ring":"border-transparent hover:bg-accent"}`,onClick:()=>p(a.name),title:a.name,children:O(Wr,{name:a.name,filled:a.filled,className:"text-2xl"})},a.name))})}),O("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:()=>p(null),children:r})]})})]})]})},Hr=F.forwardRef(({className:e,...t},r)=>O(xa.Root,{className:a("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",e),...t,ref:r,children:O(xa.Thumb,{className:a("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 Kr({title:e,sections:t,initialData:r,onSubmit:n,onCancel:s,open:i,submitButtonText:l,isLoading:d=!1,usersData:c}){const[m,u]=$(t?.[0]?.id||""),h=W(null),[p,f]=$(null),g=q(e=>{h.current=e,f(e)},[]),b=V(()=>t&&Array.isArray(t)?t.flatMap(e=>e.fields.flatMap(e=>"group"===e.type?e.fields||[]:e)):[],[t]),{formData:v,errors:x,updateField:N,handleSubmit:y}=Tr(b,r,void 0,i),w=V(()=>t&&Array.isArray(t)?t.map(e=>({...e,disabled:e.condition?!e.condition(v):e.disabled||!1})):[],[t,v]),C=V(()=>{const e=w.find(e=>e.id===m);if(e&&!e.disabled)return m;const a=w.find(e=>!e.disabled);return a?.id||m},[w,m]);j.useEffect(()=>{C!==m&&u(C)},[C,m]);const k=w.find(e=>e.id===C),S=e=>{const t=(e.computedValue,v[e.name]),r=void 0!==t?t:"",n=x[e.name];switch(e.type){case"group":const t="horizontal"===e.layout,s=t?`flex gap-3 w-full ${e.className||""}`:"space-y-3",i=t?a("space-y-2 w-full",e.wrapperClassName):a("space-y-2",e.className,e.wrapperClassName);return L("div",{className:i,children:[e.label,O("div",{className:s,children:e.fields?.map(e=>S(e))})]},e.name);case"user-select":return L("div",{className:`space-y-2 ${e.className||""}`,children:[L(Aa,{htmlFor:e.name,children:[e.label,e.required&&O("span",{className:"text-destructive ml-1",children:"*"})]}),O(o,{value:r||"",onChange:a=>N(e.name,a),placeholder:e.placeholder,disabled:e.disabled,className:n?"border-destructive":""}),n&&O("p",{className:"text-sm text-destructive",children:n})]},e.name);case"textarea":return L("div",{className:`space-y-2 ${e.className||""}`,children:[L(Aa,{htmlFor:e.name,children:[e.label,e.required&&O("span",{className:"text-destructive ml-1",children:"*"})]}),O(vt,{id:e.name,value:r||"",onChange:a=>{N(e.name,a.target.value)},placeholder:e.placeholder,disabled:e.disabled,rows:e.rows,maxLength:e.maxLength,className:`${n?"border-destructive":""} ${e.disabled?"bg-muted cursor-not-allowed":""}`}),n&&O("p",{className:"text-sm text-destructive",children:n})]},e.name);case"select":return L("div",{className:`space-y-2 ${e.className||""}`,children:[L(Aa,{htmlFor:e.name,children:[e.label,e.required&&O("span",{className:"text-destructive ml-1",children:"*"})]}),L(ct,{value:String(r),onValueChange:a=>{N(e.name,a),e.onValueChange&&e.onValueChange(a)},disabled:e.disabled,children:[O(ut,{className:`${n?"border-destructive":""} ${e.disabled?"bg-muted cursor-not-allowed":""}`,children:O(mt,{placeholder:e.placeholder})}),O(ft,{children:e.options?.map(e=>O(gt,{value:e.value,children:e.label},e.value))})]}),n&&O("p",{className:"text-sm text-destructive",children:n})]},e.name);case"multiselect":return L("div",{className:`space-y-2 ${e.className||""}`,children:[L(Aa,{htmlFor:e.name,children:[e.label,e.required&&O("span",{className:"text-destructive ml-1",children:"*"})]}),O(Ht,{options:e.options||[],value:Array.isArray(r)?r:[],onChange:a=>N(e.name,a),placeholder:e.placeholder,disabled:e.disabled,error:n,popoverContainer:p,getOptionValue:e=>String(e.value),getOptionLabel:e=>e.label}),n&&O("p",{className:"text-sm text-destructive",children:n})]},e.name);case"date":return L("div",{className:`space-y-2 ${e.className||""}`,children:[L(Aa,{htmlFor:e.name,children:[e.label,e.required&&O("span",{className:"text-destructive ml-1",children:"*"})]}),O(Sa,{id:e.name,type:"date",value:String(r),onChange:a=>N(e.name,a.target.value),placeholder:e.placeholder,disabled:e.disabled,className:a("w-full",n?"border-destructive":"",e.disabled?"bg-muted cursor-not-allowed":"")}),n&&O("p",{className:"text-sm text-destructive",children:n})]},e.name);case"color":return L("div",{children:[L(Aa,{htmlFor:e.name,children:[e.label,e.required&&O("span",{className:"text-destructive ml-1",children:"*"})]}),O(Sa,{id:e.name,type:"color",value:r||e.defaultValue||"#000000",onChange:a=>N(e.name,a.target.value),className:"h-10"}),n&&O("p",{className:"text-sm text-destructive mt-1",children:n})]},e.name);case"color-picker":return L("div",{children:[L(Aa,{htmlFor:e.name,children:[e.label,e.required&&O("span",{className:"text-destructive ml-1",children:"*"})]}),O($r,{value:r||e.defaultValue||"#3b82f6",onChange:a=>N(e.name,a)}),n&&O("p",{className:"text-sm text-destructive mt-1",children:n})]},e.name);case"icon-picker":return L("div",{children:[L(Aa,{htmlFor:e.name,children:[e.label,e.required&&O("span",{className:"text-destructive ml-1",children:"*"})]}),O(Ur,{value:r||e.defaultValue||null,onChange:a=>N(e.name,a)}),n&&O("p",{className:"text-sm text-destructive mt-1",children:n})]},e.name);case"custom":if(!e.component)return null;const l=e.component,d="function"==typeof e.componentProps?e.componentProps(v):e.componentProps||{};return L("div",{className:`space-y-2 ${e.className||""}`,children:[e.label&&L(Aa,{htmlFor:e.name,children:[e.label,e.required&&O("span",{className:"text-destructive ml-1",children:"*"})]}),O(l,{value:r,onChange:a=>{N(e.name,a),e.onValueChange&&e.onValueChange(a)},disabled:e.disabled,error:n,popoverContainer:p,...d}),n&&O("p",{className:"text-sm text-destructive",children:n})]},e.name);case"number":return L("div",{className:`space-y-2 ${e.className||""}`,children:[L(Aa,{htmlFor:e.name,children:[e.label,e.required&&O("span",{className:"text-destructive ml-1",children:"*"})]}),O(Sa,{id:e.name,type:"number",value:null!=r?String(r):"",onChange:a=>{const t=a.target.value,r=""===t?null:Number(t);N(e.name,r)},placeholder:e.placeholder,disabled:e.disabled,className:`${n?"border-destructive":""} ${e.disabled?"bg-muted cursor-not-allowed":""}`,min:e.min,step:e.step||"1"}),n&&O("p",{className:"text-sm text-destructive",children:n})]},e.name);case"checkbox":return L("div",{className:`flex items-center space-x-2 ${e.className||""}`,children:[O(bt,{id:e.name,checked:!!r,onCheckedChange:a=>N(e.name,a),disabled:e.disabled}),L(Aa,{htmlFor:e.name,className:"cursor-pointer",children:[e.label,e.required&&O("span",{className:"text-destructive ml-1",children:"*"})]}),n&&O("p",{className:"text-sm text-destructive",children:n})]},e.name);case"switch":return L("div",{className:`flex items-center justify-between space-x-2 ${e.className||""}`,children:[L(Aa,{htmlFor:e.name,children:[e.label,e.required&&O("span",{className:"text-destructive ml-1",children:"*"})]}),O(Hr,{id:e.name,checked:!!r,onCheckedChange:a=>N(e.name,a),disabled:e.disabled}),n&&O("p",{className:"text-sm text-destructive mt-2",children:n})]},e.name);default:return L("div",{className:`space-y-2 ${e.className||""}`,children:[L(Aa,{htmlFor:e.name,children:[e.label,e.required&&O("span",{className:"text-destructive ml-1",children:"*"})]}),O(Sa,{id:e.name,type:"text",value:r||"",onChange:a=>{N(e.name,a.target.value)},placeholder:e.placeholder,disabled:e.disabled,className:`${n?"border-destructive":""} ${e.disabled?"bg-muted cursor-not-allowed":""}`,readOnly:e.disabled}),n&&O("p",{className:"text-sm text-destructive",children:n})]},e.name)}},D=q(()=>{if(!k)return null;if(k.disabled)return L("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[O("div",{className:"rounded-full bg-muted p-3 mb-4",children:O("svg",{className:"h-6 w-6 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:O("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15v2m0 0v2m0-2h2m-2 0H9m3-8V9m0-4V3"})})}),O("h3",{className:"text-lg font-semibold mb-2",children:"Seção não disponível"}),O("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 O(e,{formData:v,updateField:N,errors:x,users:c,disabled:k.disabled})}return O("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:k.fields.map(S)})},[k,v,N,x,c,S]),A=L("div",{className:"flex flex-col max-h-[80vh]",children:[w.length>1&&O("div",{className:"flex-shrink-0 p-4 border-b",children:O("div",{className:"flex space-x-2",children:w.map(e=>O(Ca,{variant:C===e.id?"action-primary":"action-secondary",size:"sm",onClick:()=>(e=>{const a=w.find(a=>a.id===e);a&&!a.disabled&&u(e)})(e.id),disabled:e.disabled,className:e.disabled?"opacity-50 cursor-not-allowed":"",children:e.title},e.id))})}),O("div",{className:"flex-1 overflow-y-auto px-2 md:px-4 py-4",children:d?O("div",{className:"flex items-center justify-center py-12",children:O("div",{className:"text-muted-foreground",children:"Carregando..."})}):L("form",{onSubmit:y(n),className:"space-y-3 md:space-y-4",children:[D(),L("div",{className:"flex justify-end space-x-2 pt-4",children:[O(Ca,{type:"button",variant:"outline",onClick:s,children:"Cancelar"}),O(Ca,{type:"submit",disabled:d,children:l||"Salvar"})]})]})})]});return O(Ga,{open:i,onOpenChange:e=>{!1===e&&!0===i&&s()},children:L(Qa,{ref:g,variant:"form",className:"max-w-4xl max-h-[90vh] overflow-visible",children:[L(Ja,{showSeparator:!0,children:[O(Xa,{children:e}),O(Ya,{className:"sr-only",children:"Formulário para preenchimento de dados"})]}),A]})})}function Qr({currentPage:e,totalPages:a,totalItems:t,itemsPerPage:r,onPageChange:n,onItemsPerPageChange:s,variant:o="full"}){const{t:i}=oa();if(0===t)return null;const l=(e-1)*r+1,d=Math.min(e*r,t);return L("div",{className:"flex items-center justify-between px-4 py-3 gap-4",children:[O("div",{className:"flex items-center gap-2",children:"full"===o&&L(T,{children:[O("span",{className:"text-sm text-muted-foreground whitespace-nowrap",children:i("rows_per_page","Linhas por página")}),L(ct,{value:String(r),onValueChange:e=>s(Number(e)),children:[O(ut,{className:"h-8 w-[70px]",children:O(mt,{})}),L(ft,{children:[O(gt,{value:"10",children:"10"}),O(gt,{value:"25",children:"25"}),O(gt,{value:"50",children:"50"}),O(gt,{value:"100",children:"100"})]})]})]})}),L("div",{className:"text-sm text-muted-foreground text-center hidden sm:block",children:[l,"-",d," ",i("of","de")," ",t," ",i("items","itens")]}),L("div",{className:"flex items-center gap-1",children:[O(Ca,{variant:"outline",size:"sm",onClick:()=>n(1),disabled:1===e,className:"h-8 w-8 p-0",children:O(ze,{size:16})}),O(Ca,{variant:"outline",size:"sm",onClick:()=>n(e-1),disabled:1===e,className:"h-8 w-8 p-0",children:O(Re,{size:16})}),L("div",{className:"flex items-center gap-1 px-2",children:[O("span",{className:"text-sm font-medium",children:e}),O("span",{className:"text-sm text-muted-foreground",children:i("of","de")}),O("span",{className:"text-sm font-medium",children:a})]}),O(Ca,{variant:"outline",size:"sm",onClick:()=>n(e+1),disabled:e===a,className:"h-8 w-8 p-0",children:O(ie,{size:16})}),O(Ca,{variant:"outline",size:"sm",onClick:()=>n(a),disabled:e===a,className:"h-8 w-8 p-0",children:O(Me,{size:16})})]})]})}function Jr({manager:e}){return O(Qr,{currentPage:e.pagination.currentPage,totalPages:e.pagination.totalPages,totalItems:e.pagination.totalItems,itemsPerPage:e.pagination.itemsPerPage,onPageChange:e.handlePageChange,onItemsPerPageChange:e.handleItemsPerPageChange,variant:"full"})}Hr.displayName=xa.Root.displayName;const Zr={xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"},Xr={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},Yr={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"};function en({children:e,direction:t="column",gap:r="md",align:n="stretch",justify:s="start",wrap:o=!1,className:i}){return O("div",{className:a("flex","column"===t?"flex-col":"flex-row",Zr[r],Xr[n],Yr[s],o&&"flex-wrap",i),children:e})}function an({manager:e,filters:a,inline:r=!1}){const{t:n}=oa(),{isSearchVisible:s}=t(),o=e.searchTerm,i=L(T,{children:[a.some(e=>"search"===e.type)&&!s&&L("div",{className:"relative flex-1",children:[O(ce,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground h-4 w-4"}),O(Sa,{placeholder:"Pesquisar",value:e.searchTerm,onChange:a=>e.handleSearch(a.target.value),className:"pl-10"})]}),a.filter(e=>"select"===e.type&&e.options).map((e,a)=>L(ct,{value:e.value||"",onValueChange:a=>e.onChange?.(a),children:[O(ut,{className:"w-[180px]",children:O(mt,{placeholder:e.placeholder})}),O(ft,{children:e.options.map(e=>O(gt,{value:e.value,children:e.label},e.value))})]},`select-${a}`)),a.filter(e=>"custom"===e.type&&e.component).map((e,a)=>{const t=e.component;return O("div",{className:r?"":"w-full sm:w-auto",children:O(t,{...e.props})},`custom-${a}`)}),o&&L(Ca,{variant:"outline",onClick:e.clearFilters,className:"whitespace-nowrap",children:[O(Z,{className:"h-4 w-4 mr-2"}),"Limpar"]})]});return r?O("div",{className:"flex items-center gap-2",children:i}):O(en,{direction:"column",gap:"md",className:"mb-6",children:O(en,{direction:"row",gap:"md",wrap:!0,className:"flex-col sm:flex-row",children:i})})}function tn({manager:e,config:a,formSections:r,onSave:n,onToggleStatus:s,defaultSort:o,readOnly:i=!1}){e&&e.queryKey;const{setSearchVisible:l}=t(),[d,c]=$(!1),[m,u]=$(null),[h,p]=$({isOpen:!1,entityId:null,entityName:""}),[f,g]=$({isOpen:!1,count:0});G(()=>(l(!0),()=>{l(!1)}),[l]),G(()=>{o&&e?.setSort&&!e.hasStoredSort&&e.setSort(o.column,o.direction)},[]);const b=!i&&r.length>0?e=>{a.onEdit?a.onEdit(e):(u(e),c(!0))}:void 0,v=i||!1===a.showDeleteAction||"function"!=typeof e?.deleteEntity?void 0:e=>{p({isOpen:!0,entityId:e.id,entityName:e.title||e.name||"Item"})},x=()=>{p({isOpen:!1,entityId:null,entityName:""})},N=void 0!==a.hideNewButton?!a.hideNewButton:a.showNewButton??!0,y=(a.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 L("div",{className:"flex-1 flex flex-col h-full",children:[(a.showActionBar??!0)&&O(_r,{onNew:()=>{a.onNew?a.onNew():(u(null),c(!0))},newButtonLabel:a.newButtonLabel,showNewButton:N,showSearch:a.showSearch,searchValue:e.searchTerm,onSearchChange:e.handleSearch,searchPlaceholder:a.searchPlaceholder,showBulkActions:a.enableBulkActions,selectedCount:e.selectedIds.length,bulkActions:a.bulkActions,onBulkDelete:()=>{g({isOpen:!0,count:e.selectedIds.length})},onClearSelection:e.clearSelection,customActions:y,filters:a.filters&&a.filters.length>0?O(an,{manager:e,filters:a.filters,inline:!0}):void 0}),O("div",{className:"flex-1 flex flex-col overflow-hidden",children:a.customListView?O("div",{className:"flex-1 overflow-auto p-4",children:a.customListView(e.entities,e)}):O(Lr,{manager:e,columns:a.columns,onEdit:b,onDelete:v,onToggleStatus:s,enableBulkActions:a.enableBulkActions,customRowActions:a.customRowActions,enableColumnManager:!0,columnManagerStorageKey:`crud-${a.entityName.toLowerCase().replace(/\s+/g,"-")}-columns`,resizeStorageKey:`crud-${a.entityName.toLowerCase().replace(/\s+/g,"-")}-resize`,defaultHiddenColumns:a.defaultHiddenColumns,readOnly:i})}),O("div",{className:"flex-shrink-0 border-t bg-background",children:O(Jr,{manager:e})}),!a.useCustomRouting&&!a.onNew&&r.length>0&&O(Kr,{open:d,title:m?`Editar ${a.entityName}`:`Novo ${a.entityName}`,sections:r,initialData:m||void 0,onSubmit:e=>{n(e),c(!1),u(null)},onCancel:()=>{c(!1),u(null)},isLoading:e.isLoading,submitButtonText:m?"Atualizar":"Criar"}),O(Ga,{open:h.isOpen,onOpenChange:x,children:L(Qa,{size:"sm",variant:"destructive",children:[O(Ja,{showSeparator:!0,children:O(Xa,{children:"Você tem certeza absoluta?"})}),O("div",{className:"flex-1 min-h-0 overflow-auto py-4 px-1 -mx-1",children:L("p",{className:"text-sm text-muted-foreground",children:["Você está prestes a excluir ",O("strong",{children:h.entityName}),". Esta ação não pode ser desfeita."]})}),L(Za,{children:[O(Ca,{variant:"outline",onClick:x,children:"Cancelar"}),O(Ca,{variant:"destructive",onClick:()=>{h.entityId&&"function"==typeof e?.deleteEntity&&(e.deleteEntity(h.entityId),p({isOpen:!1,entityId:null,entityName:""}))},disabled:e.isDeleting,children:e.isDeleting?"Excluindo...":"Sim, excluir"})]})]})}),O(Ga,{open:f.isOpen,onOpenChange:()=>g({isOpen:!1,count:0}),children:L(Qa,{size:"sm",variant:"destructive",children:[O(Ja,{showSeparator:!0,children:O(Xa,{children:"Você tem certeza absoluta?"})}),O("div",{className:"flex-1 min-h-0 overflow-auto py-4 px-1 -mx-1",children:L("p",{className:"text-sm text-muted-foreground",children:["Você está prestes a excluir ",O("strong",{children:f.count})," ",1===f.count?a.entityName:a.entityNamePlural,". Esta ação não pode ser desfeita."]})}),L(Za,{children:[O(Ca,{variant:"outline",onClick:()=>g({isOpen:!1,count:0}),children:"Cancelar"}),O(Ca,{variant:"destructive",onClick:()=>{e.bulkDelete?.(e.selectedIds),g({isOpen:!1,count:0})},disabled:e.isBulkDeleting,children:e.isBulkDeleting?"Excluindo...":"Sim, excluir"})]})]})})]})}function rn(e){return({manager:a})=>{const{manager:t,config:r,onSave:n,onEdit:s,onToggleStatus:o}=e,i=a??t,l={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:s||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 O(tn,{manager:i,config:l,formSections:r.formSections,onSave:n,onToggleStatus:o,defaultSort:r.defaultSort,readOnly:r.readOnly})}}function nn(e,a,t){return r=>{if(r.id){const a=t(r);e.updateEntity(r.id,a)}else{const t=a(r);e.createEntity(t)}}}function sn(e,a,t={}){const r=[];return Object.keys(a).forEach(e=>{if("id"!==e&&!e.endsWith("_at")){const t=a[e],n={key:e,header:ln(e),label:ln(e),...on(e,t),sortable:!0,searchable:"string"==typeof t};r.push(n)}}),{title:e,columns:r,searchPlaceholder:`Buscar ${e.toLowerCase()}...`,itemsPerPage:10,enableCreate:!0,enableEdit:!0,enableDelete:!0,enableSearch:!0,enableFilters:!1,...t}}function on(e,a){const t=e.toLowerCase();return t.includes("email")?{type:"email",required:!0}:t.includes("phone")||t.includes("tel")?{type:"tel"}:t.includes("description")||t.includes("content")||t.includes("notes")?{type:"textarea"}:t.includes("status")||t.includes("type")||t.includes("category")?{type:"select",options:[]}:"boolean"==typeof a?{type:"boolean"}:"number"==typeof a?{type:"number"}:a instanceof Date?{type:"date"}:{type:"text"}}function ln(e){return e.replace(/([A-Z])/g," $1").replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()).trim()}function dn(){const e=ma(),{navigation:a}=i();return mn(a,e.pathname)}function mn(e,a){if(!e)return"";const t=e.find(e=>e.path===a);if(t)return t.label;const r=e.find(e=>a.startsWith(e.path+"/"));return r?.label||""}function un(e,a){const[t,r]=$(e),n=W(void 0),s=q(()=>{n.current&&(clearTimeout(n.current),n.current=void 0)},[]);return G(()=>(s(),n.current=setTimeout(()=>{r(e)},a),s),[e,a,s]),[t,s]}const hn=Ue.Root,pn=Ue.Portal,fn=F.forwardRef(({className:e,...t},r)=>O(Ue.Overlay,{className:a("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:r}));fn.displayName=Ue.Overlay.displayName;const gn=Q("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"}}),bn=F.forwardRef(({side:e="right",className:t,children:r,...n},s)=>L(pn,{children:[O(fn,{}),L(Ue.Content,{ref:s,className:a(gn({side:e}),t),...n,children:[r,L(Ue.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:[O(Z,{className:"h-4 w-4"}),O("span",{className:"sr-only",children:"Close"})]})]})]}));bn.displayName=Ue.Content.displayName;const vn=F.forwardRef(({className:e,...t},r)=>O(Ue.Title,{ref:r,className:a("text-lg font-semibold text-foreground",e),...t}));vn.displayName=Ue.Title.displayName;F.forwardRef(({className:e,...t},r)=>O(Ue.Description,{ref:r,className:a("text-sm text-muted-foreground",e),...t})).displayName=Ue.Description.displayName;const xn="sidebar:state",Nn=F.createContext(null);function yn(){const e=F.useContext(Nn);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const wn=F.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:r,className:n,style:s,children:o,...i},l)=>{const d=sr(),[c,m]=F.useState(!1),[u,h]=F.useState(()=>{if("undefined"!=typeof window){const a=localStorage.getItem(xn);return null!==a?"true"===a:e}return e}),p=t??u,f=F.useCallback(e=>{const a="function"==typeof e?e(p):e;r?r(a):h(a),"undefined"!=typeof window&&localStorage.setItem(xn,String(a))},[r,p]),g=F.useCallback(()=>d?m(e=>!e):f(e=>!e),[d,f,m]);F.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=p?"expanded":"collapsed",v=F.useMemo(()=>({state:b,open:p,setOpen:f,isMobile:d,openMobile:c,setOpenMobile:m,toggleSidebar:g}),[b,p,f,d,c,m,g]);return O(Nn.Provider,{value:v,children:O(Mt,{delayDuration:0,children:O("div",{className:a("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",...s},ref:l,...i,children:o})})})});wn.displayName="SidebarProvider";const Cn=F.forwardRef(({side:e="left",variant:t="sidebar",collapsible:r="offcanvas",className:n,children:s,...o},i)=>{const{isMobile:l,state:d,openMobile:c,setOpenMobile:m}=yn();return"none"===r?O("div",{className:a("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",n),ref:i,...o,children:s}):l?O(hn,{open:c,onOpenChange:m,...o,children:L(bn,{"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:e,children:[O(vn,{className:"sr-only",children:"Menu de Navegação"}),O("div",{className:"flex h-full w-full flex-col",children:s})]})}):L("div",{ref:i,className:"group peer hidden md:block text-sidebar-foreground","data-state":d,"data-collapsible":"collapsed"===d?r:"","data-variant":t,"data-side":e,children:[O("div",{className:a("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"===t||"inset"===t?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),O("div",{className:a("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"===e?"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"===t||"inset"===t?"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),...o,children:O("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:s})})]})});Cn.displayName="Sidebar";F.forwardRef(({className:e,onClick:t,...r},n)=>{const{toggleSidebar:s}=yn();return L(Ca,{ref:n,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:a("h-7 w-7",e),onClick:e=>{t?.(e),s()},...r,children:[O(_e,{}),O("span",{className:"sr-only",children:"Toggle Sidebar"})]})}).displayName="SidebarTrigger";F.forwardRef(({className:e,...t},r)=>{const{toggleSidebar:n}=yn();return O("button",{ref:r,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:a("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",e),...t})}).displayName="SidebarRail";F.forwardRef(({className:e,...t},r)=>O("main",{ref:r,className:a("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",e),...t})).displayName="SidebarInset";F.forwardRef(({className:e,...t},r)=>O(Sa,{ref:r,"data-sidebar":"input",className:a("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t})).displayName="SidebarInput";const kn=F.forwardRef(({className:e,...t},r)=>O("div",{ref:r,"data-sidebar":"header",className:a("flex flex-col gap-2 p-2",e),...t}));kn.displayName="SidebarHeader";F.forwardRef(({className:e,...t},r)=>O("div",{ref:r,"data-sidebar":"footer",className:a("flex flex-col gap-2 p-2",e),...t})).displayName="SidebarFooter";const Sn=F.forwardRef(({className:e,...t},r)=>O(Ia,{ref:r,"data-sidebar":"separator",className:a("mx-2 w-auto bg-sidebar-border",e),...t}));Sn.displayName="SidebarSeparator";const Dn=F.forwardRef(({className:e,...t},r)=>O("div",{ref:r,"data-sidebar":"content",className:a("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Dn.displayName="SidebarContent";const An=F.forwardRef(({className:e,...t},r)=>O("div",{ref:r,"data-sidebar":"group",className:a("relative flex w-full min-w-0 flex-col p-2",e),...t}));An.displayName="SidebarGroup";F.forwardRef(({className:e,asChild:t=!1,...r},n)=>O(t?K:"div",{ref:n,"data-sidebar":"group-label",className:a("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",e),...r})).displayName="SidebarGroupLabel";F.forwardRef(({className:e,asChild:t=!1,...r},n)=>O(t?K:"button",{ref:n,"data-sidebar":"group-action",className:a("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",e),...r})).displayName="SidebarGroupAction";const zn=F.forwardRef(({className:e,...t},r)=>O("div",{ref:r,"data-sidebar":"group-content",className:a("w-full text-sm",e),...t}));zn.displayName="SidebarGroupContent";const Rn=F.forwardRef(({className:e,...t},r)=>O("ul",{ref:r,"data-sidebar":"menu",className:a("flex w-full min-w-0 flex-col gap-1",e),...t}));Rn.displayName="SidebarMenu";const Mn=F.forwardRef(({className:e,...t},r)=>O("li",{ref:r,"data-sidebar":"menu-item",className:a("group/menu-item relative",e),...t}));Mn.displayName="SidebarMenuItem";const _n=Q("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"}}),Pn=F.forwardRef(({asChild:e=!1,isActive:t=!1,variant:r="default",size:n="default",tooltip:s,className:o,...i},l)=>{const d=e?K:"button",{isMobile:c,state:m}=yn(),u=O(d,{ref:l,"data-sidebar":"menu-button","data-size":n,"data-active":t,className:a(_n({variant:r,size:n}),o),...i});return s?("string"==typeof s&&(s={children:s}),L(_t,{children:[O(Pt,{asChild:!0,children:u}),O(It,{side:"right",align:"center",hidden:"collapsed"!==m||c,...s})]})):u});Pn.displayName="SidebarMenuButton";F.forwardRef(({className:e,asChild:t=!1,showOnHover:r=!1,...n},s)=>O(t?K:"button",{ref:s,"data-sidebar":"menu-action",className:a("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",r&&"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",e),...n})).displayName="SidebarMenuAction";F.forwardRef(({className:e,...t},r)=>O("div",{ref:r,"data-sidebar":"menu-badge",className:a("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",e),...t})).displayName="SidebarMenuBadge";F.forwardRef(({className:e,showIcon:t=!1,...r},n)=>{const s=F.useMemo(()=>`${Math.floor(40*Math.random())+50}%`,[]);return L("div",{ref:n,"data-sidebar":"menu-skeleton",className:a("rounded-md h-8 flex gap-2 px-2 items-center",e),...r,children:[t&&O("div",{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),O("div",{className:"h-4 flex-1 max-w-[--skeleton-width] skeleton-width","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":s}})]})}).displayName="SidebarMenuSkeleton";const In=F.forwardRef(({className:e,...t},r)=>O("ul",{ref:r,"data-sidebar":"menu-sub",className:a("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",e),...t}));In.displayName="SidebarMenuSub";F.forwardRef(({...e},a)=>O("li",{ref:a,...e})).displayName="SidebarMenuSubItem";function En(e){const a=d.getAccessToken(),t={"Content-Type":"application/json",...a?{Authorization:`Bearer ${a}`}:{},"un-alias":e};if(a)try{const e=JSON.parse(atob(a.split(".")[1]));e.sub&&(t["x-waf-rate"]=btoa(e.sub))}catch{}return t}async function Bn(e,a,t){let r=await fetch(e,a);if(401===r.status){if(await c.handleApiError({status:401})){const n={...a,headers:En(t)};r=await fetch(e,n)}}return r}F.forwardRef(({asChild:e=!1,size:t="md",isActive:r,className:n,...s},o)=>O(e?K:"a",{ref:o,"data-sidebar":"menu-sub-button","data-size":t,"data-active":r,className:a("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"===t&&"text-xs","md"===t&&"text-sm","group-data-[collapsible=icon]:hidden",n),...s})).displayName="SidebarMenuSubButton";const On=j.forwardRef(({updates:e,badgeCount:a,onOpen:r,onViewAll:n,viewAllPath:s},o)=>{const i=void 0===e,d=t(),c=d?.alias??null,u=function(e){const[a,t]=$([]),[r,n]=$(0),[s,o]=$(!1);G(()=>{if(!e)return;let a=!1;const r=`${l().replace(/\/?$/,"/")}api/common/v1/updates/listUpdatesNotification`;return async function(){o(!0);try{const s=En(e),o=await Bn(r,{method:"GET",headers:s},e);if(!o.ok)return;const i=await o.json();!a&&i.data?.[0]&&(t(i.data[0].updates??[]),n(i.data[0].valueBadge??0))}catch(s){}finally{a||o(!1)}}(),()=>{a=!0}},[e]);const i=q(async()=>{if(!e||r<=0||0===a.length)return;const t=a[0].id,s=`${l().replace(/\/?$/,"/")}api/common/v1/Updates/userVisualized/3/undefined`;n(0);try{const a=En(e),r=JSON.stringify({id:t,idUpdateType:3});await Bn(s,{method:"POST",headers:a,body:r},e)}catch(o){}},[e,r,a]);return{updates:a,badgeCount:r,loading:s,markAsVisualized:i}}(i?c:null),h=ua(),p=i?u.updates??[]:e,f=i?u.badgeCount??0:a??0,g=r??(i?u.markAsVisualized:void 0),b=n??(i&&c?()=>{if(s)return void h(s);const e=m().replace(/\/?$/,"/");window.open(`${e}${c}/up/view`,"_blank","noopener,noreferrer")}:void 0);return L(Bt,{children:[O(Ot,{asChild:!0,children:L(Ca,{ref:o,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:g,title:Ke.t("updates"),children:[O(Pe,{className:"h-7 w-7"}),f>0&&O("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:f>99?"99+":f})]})}),L(Lt,{align:"end",className:"w-80 p-0",children:[O("div",{className:"border-b border-border px-4 py-3",children:O("h4",{className:"text-sm font-semibold text-foreground",children:"Atualizações"})}),O("div",{className:"max-h-72 overflow-y-auto",children:p.length>0?O("ul",{className:"divide-y divide-border",children:p.map(e=>L("li",{className:"px-4 py-3 hover:bg-muted/50 transition-colors cursor-pointer",onClick:b,children:[O("p",{className:"text-sm font-medium text-foreground",children:e.title}),O("p",{className:"text-xs text-muted-foreground mt-0.5 line-clamp-2",children:e.text})]},e.id))}):L("div",{className:"flex flex-col items-center justify-center py-8 px-4 text-center",children:[O(Pe,{className:"h-8 w-8 text-muted-foreground mb-2"}),O("p",{className:"text-sm text-muted-foreground",children:"Nenhum café quentinho, ou melhor, atualização quentinha no momento!"})]})}),O("div",{className:"border-t border-border px-4 py-2",children:L(Ca,{variant:"ghost",size:"sm",className:"w-full justify-between text-primary hover:text-primary",onClick:b,children:["Ver todas as atualizações",O(Ie,{className:"h-[18px] w-[18px]"})]})})]})]})});On.displayName="UpdatesNotification";const Ln=Na.Root,Tn=F.forwardRef(({className:e,...t},r)=>O(Na.List,{ref:r,className:a("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));Tn.displayName=Na.List.displayName;const Fn=F.forwardRef(({className:e,...t},r)=>O(Na.Trigger,{ref:r,className:a("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",e),...t}));Fn.displayName=Na.Trigger.displayName;const jn=F.forwardRef(({className:e,...t},r)=>O(Na.Content,{ref:r,className:a("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));function $n({className:e}){return L("svg",{className:e,width:"32",height:"34",viewBox:"0 0 32 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O("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"}),O("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"}),O("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 Vn({className:e}){return L("svg",{className:e,width:"18",height:"33",viewBox:"0 0 18 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O("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"}),O("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"}),O("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 qn({educaUrl:e="https://educacao.sabergestao.com.br/{alias}/fe",saberGestaoUrl:a="https://sabergestao.com.br/",wikiUrl:t,alias:r,sourceModule:n}){const{t:s}=oa(),o=u(e||t||"https://educacao.sabergestao.com.br/{alias}/fe",r),i=e=>{h({resource:e,sourceModule:n,alias:r})};return L("div",{className:"flex-shrink-0 pt-4",children:[O(Ia,{className:"mb-4"}),L("div",{className:"grid grid-cols-1 min-[480px]:grid-cols-2 lg:grid-cols-3 gap-2 sm:gap-3",children:[L("div",{className:"bg-primary text-primary-foreground rounded-lg p-4 relative overflow-hidden",children:[L("div",{className:"relative z-10",children:[O("h4",{className:"font-semibold text-sm text-white",children:s("learn_qualiex")}),L("a",{href:o,target:"_blank",rel:"noopener noreferrer",onClick:()=>i("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",O(Ee,{className:"h-3.5 w-3.5"})]})]}),O($n,{className:"absolute right-2 bottom-2 w-16 h-16 text-[#043481] pointer-events-none"})]}),L("div",{className:"bg-muted rounded-lg p-4 relative overflow-hidden",children:[L("div",{className:"relative z-10",children:[O("h4",{className:"font-semibold text-sm text-foreground",children:s("know_saber_gestao")}),L("a",{href:a,target:"_blank",rel:"noopener noreferrer",onClick:()=>i("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",O(Ee,{className:"h-3.5 w-3.5"})]})]}),O(Vn,{className:"absolute right-2 bottom-2 w-12 h-16 text-[#E0E0E0] pointer-events-none"})]}),L("div",{className:"bg-muted rounded-lg p-4 relative overflow-hidden",children:[L("div",{className:"relative z-10",children:[O("h4",{className:"font-semibold text-sm text-foreground",children:"Dúvidas sobre os módulos?"}),L("a",{href:t||"https://wiki.qualiex.com/",target:"_blank",rel:"noopener noreferrer",onClick:()=>i("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",O(Ee,{className:"h-3.5 w-3.5"})]})]}),O(Be,{className:"absolute right-2 top-2 bottom-2 h-[calc(100%-1rem)] w-auto text-[#E0E0E0] pointer-events-none",strokeWidth:1})]})]})]})}jn.displayName=Na.Content.displayName;const Gn=[{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 Wn({module:e,onClick:t}){return L("button",{type:"button",onClick:t,className:"flex items-start gap-3 p-2 rounded-lg transition-colors text-left w-full group hover:bg-muted/50",children:[O("div",{className:a("w-4 h-4 rounded-sm shrink-0 mt-0.5",e.color)}),L("div",{className:"min-w-0",children:[O("div",{className:"font-medium transition-colors text-foreground group-hover:text-primary",children:e.name}),e.description&&O("div",{className:"text-sm text-muted-foreground truncate",children:e.description})]})]})}function Un(e,a){if(0===e.length)return e;const t=Math.ceil(e.length/a),r=[];for(let n=0;n<t;n++)for(let s=0;s<a;s++){const a=s*t+n;a<e.length&&r.push(e[a])}return r}function Hn({modules:e,onModuleClick:a,contractedModules:t,onModuleInterest:r}){const n=function(){const[e,a]=$(4);return G(()=>{const e=()=>{window.matchMedia("(min-width: 1280px)").matches?a(4):window.matchMedia("(min-width: 768px)").matches?a(3):window.matchMedia("(min-width: 640px)").matches?a(2):a(1)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}(),s=[...e].sort((e,a)=>e.name.localeCompare(a.name)),o=void 0!==t,i=e=>!0===e.alwaysContracted||!o||t.includes(e.name),l=s.filter(i),d=o?s.filter(e=>!i(e)):[],c=Un(l,n),m=Un(d,n),u=(e,t)=>{t?a?.(e):r?.(e)};return L("div",{className:"space-y-6",children:[c.length>0&&O("section",{children:O("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-4 gap-1",children:c.map(e=>O(Wn,{module:e,onClick:()=>u(e,!0)},e.name))})}),m.length>0&&L("section",{className:"bg-neutral-100 dark:bg-neutral-800 rounded-lg p-4 mt-4",children:[O("h3",{className:"text-sm font-medium text-muted-foreground mb-3",children:"Conheça também"}),O("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-4 gap-1",children:m.map(e=>O(Wn,{module:e,onClick:()=>u(e,!1)},e.name))})]})]})}function Kn({onModuleClick:e,contractedModules:a,onModuleInterest:t,nonContractedUrl:r="https://qualiex.com/",educaUrl:n="https://educacao.sabergestao.com.br/{alias}/fe",saberGestaoUrl:s="https://sabergestao.com.br/",wikiUrl:o,alias:i,sourceModule:l,showAdminGroup:d=!1}){const[c,m]=$("qualiex"),u=d?Gn.find(e=>"backoffice"===e.id)?.modules??[]:[],h=Gn.filter(e=>"backoffice"!==e.id).map(e=>"qualiex"===e.id?{...e,modules:[...e.modules,...u]}:e),g=e=>{p({module:e,sourceModule:l,alias:i}),window.open(r,"_blank","noopener,noreferrer"),t?.(e)};return L("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:[L(Ln,{value:c,onValueChange:m,className:"flex-1 flex flex-col min-h-0",children:[O(Tn,{className:"w-fit shrink-0",children:h.map(e=>L(Fn,{value:e.id,children:[e.label,L("span",{className:"ml-1.5 text-xs text-muted-foreground",children:["(",e.modules.length,")"]})]},e.id))}),h.map(t=>O(jn,{value:t.id,className:"flex-1 mt-4 overflow-auto pr-2",children:O(Hn,{modules:t.modules,onModuleClick:r=>((t,r)=>{const n=!!t.alwaysContracted||"qualiex"!==r||!a||a.includes(t.name);f({module:t,isContracted:n,sourceModule:l,alias:i}),e?.(t)})(r,t.id),contractedModules:"qualiex"===t.id?a:void 0,onModuleInterest:g})},t.id))]}),O(qn,{educaUrl:n,saberGestaoUrl:s,wikiUrl:o,alias:i,sourceModule:l})]})}const Qn=6e5;function Jn(e){const{moduleAlias:a,associationsBaseUrl:r}=g(),{alias:n,user:s,isAuthenticated:o}=t(),i=e??a,l=s?.id??null,d=o&&!!n&&!!l,{data:c=[],isLoading:m}=la({queryKey:["qualiex-associations",l,n,r??null],queryFn:()=>b.fetchUserAssociations(l,n,r?{baseUrl:r}:void 0),enabled:d,staleTime:Qn,gcTime:12e5}),u=V(()=>n&&0!==c.length?c.find(e=>e.companyAlias===n)??null:null,[c,n]),h="common"===a,{data:p=!1,isLoading:f}=v(h),N=q(e=>{if(!u)return!1;return(Array.isArray(e)?e:[e]).every(e=>{const a=x[e];return void 0!==a&&u.softwares.includes(a)})},[u]),y=q(e=>{if(!u)return!1;return(Array.isArray(e)?e:[e]).every(e=>!("common"!==e||!h||!p)||N(e))},[u,h,p,N]),w=V(()=>!i||y(i),[i,y]),C=V(()=>u?{id:u.roleId,name:u.roleName}:null,[u]);return{hasAccess:w,isLoading:d&&(m||h&&f),role:C,association:u,hasAccessTo:y,hasNativeAccessTo:N}}function Zn(e){const{association:a}=Jn();return V(()=>{if(e)return e;if(!a?.softwares)return;const t=a.softwares,r=Gn.find(e=>"qualiex"===e.id);return r?r.modules.filter(e=>{if(!e.softwareAlias)return!1;const a=x[e.softwareAlias];return void 0!==a&&t.includes(a)}).map(e=>e.name):void 0},[e,a])}function Xn({open:e,onOpenChange:a,onModuleClick:r,contractedModules:n,onModuleInterest:s,educaUrl:o,saberGestaoUrl:i,wikiUrl:l,sourceModule:d,showAdminGroup:c}){const{alias:m,user:h}=t(),p=Zn(n),f=c??!!h?.isSysAdmin;return O(Ga,{open:e,onOpenChange:a,children:L(Qa,{size:"lg",className:"overflow-hidden flex flex-col",children:[O(Ja,{className:"sr-only",children:O(Xa,{children:"Módulos"})}),O(Kn,{onModuleClick:e=>{r?r(e):e.url&&N(u(e.url,m||void 0))},contractedModules:p,onModuleInterest:s,educaUrl:o,saberGestaoUrl:i,wikiUrl:l,alias:m||void 0,sourceModule:d,showAdminGroup:f})]})})}function Yn({appName:e}){const[a,t]=$(!1),{association:r}=Jn(),n=y({isQualitfy:r?.isQualitfy,isMetroex:r?.isMetroex});return L(T,{children:[L("div",{className:"flex items-center gap-3",children:[O("button",{className:"flex-shrink-0 cursor-pointer",onClick:()=>t(!0),children:O("img",{src:n,alt:"Logo",className:"h-8 max-w-[140px] object-contain"})}),e&&L(T,{children:[O("span",{"aria-hidden":!0,className:"h-7 w-px shrink-0 bg-primary-foreground/30"}),O("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:()=>t(!0),children:O("span",{className:"line-clamp-2",children:(e=>{const a=e.split(" ");if(a.length<=1)return L("span",{className:"whitespace-nowrap",children:[e," ",O(X,{size:12,className:"inline-block align-middle ml-1 opacity-60 text-primary-foreground"})]});const t=a[a.length-1],r=a.slice(0,-1).join(" ");return L(T,{children:[r," ",L("span",{className:"whitespace-nowrap",children:[t," ",O(X,{size:12,className:"inline-block align-middle ml-1 opacity-60 text-primary-foreground"})]})]})})(e)})})]})]}),O(Xn,{open:a,onOpenChange:t})]})}const es=U(function({actions:a}){const r=ma(),n=ua(),{navigation:s,appName:o}=i(),l=mn(s,r.pathname),{metadata:d,headerActions:c}=w(),{setOpenMobile:m}=yn(),{companies:u,alias:h,isSearchVisible:p,clearSearch:f,refreshData:g,switchUnit:b}=t(),v=h?u?.find(e=>e.alias===h)||u?.[0]||null:u?.[0]||null,[x,y]=ca(),k=q(e=>{const{pathname:a,search:t,hash:s}=r;if(h){const r=a.split("/"),o=r.indexOf(h);if(o>=0)return r[o]=e.alias,void n(r.join("/")+t+s)}b(e)},[h,r,n,b]),[S,D]=$(()=>x.get("search")||""),[A,z]=un(S,C.debounceDelay);G(()=>{if(!p)return;const e=new URLSearchParams(x);A?(e.set("search",A),e.set("page","1")):e.delete("search"),y(e)},[A,y,p]);const R=s?.find(e=>e.path===r.pathname)||s?.find(e=>r.pathname.startsWith(e.path+"/")),M=d.title||l,_=d.subtitle||R?.complementaryText||"";return O("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:L("div",{className:"flex items-center gap-4",children:[O(Ca,{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:()=>m(!0),children:O(Oe,{size:20})}),O("div",{className:"hidden md:flex items-center flex-shrink-0",children:O(Yn,{appName:o})}),L("div",{className:"hidden md:flex items-stretch h-8 flex-shrink-0","aria-hidden":"true",children:[O("div",{className:"w-px bg-[hsl(var(--button-primary-border))]"}),O("div",{className:"w-px bg-white/20"})]}),L("div",{className:"flex-shrink-0",children:[d.breadcrumbs&&d.breadcrumbs.length>0&&O("nav",{className:"flex items-center gap-1 text-xs text-primary-foreground/70 mb-0.5",children:d.breadcrumbs.map((e,a)=>L("span",{className:"flex items-center gap-1",children:[a>0&&O(ie,{className:"h-3 w-3"}),e.href?O(ha,{to:e.href,className:"hover:text-primary-foreground transition-colors",children:e.label}):O("span",{children:e.label})]},a))}),O("div",{className:"flex items-center gap-2 mb-1",children:O("h1",{className:"text-lg font-semibold text-primary-foreground truncate",children:M})}),_&&O("div",{className:"text-sm text-primary-foreground/70 truncate",children:_})]}),p&&L("div",{className:"flex items-center gap-2 flex-1 max-w-2xl",children:[L("div",{className:"relative flex-1",children:[O(ce,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground h-4 w-4"}),O(Sa,{placeholder:"Pesquisar",value:S,onChange:e=>{return a=e.target.value,void D(a);var a},className:"w-full pl-10 pr-8"}),S&&O(Ca,{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:()=>{z(),D("");const e=new URLSearchParams(x);e.delete("search"),e.delete("page"),y(e)},title:Ke.t("clear_search"),children:O(Z,{size:14})})]}),O(Ca,{variant:"outline",size:"sm",onClick:g,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:Ke.t("refresh_data"),children:O(Le,{size:14})})]}),L("div",{className:"flex-shrink-0 ml-auto flex items-center gap-3",children:[(c||a)&&O("div",{className:"flex items-center gap-2",children:c||a}),import.meta.env.VITE_WIKI_URL&&O(Ca,{variant:"ghost",size:"sm",className:"h-8 px-3 text-primary-foreground hover:text-primary-foreground hover:bg-primary-foreground/10",onClick:e=>N(import.meta.env.VITE_WIKI_URL,e),title:Ke.t("open_wiki"),children:"Wiki"}),O(On,{}),O("div",{className:"text-sm",children:O(e,{variant:"dropdown",selectedUnit:v,onUnitChange:k})})]})]})})}),as=ya.Root,ts=ya.CollapsibleTrigger,rs=ya.CollapsibleContent,ns=({key:e,enabled:a,checkFn:t,staleTime:r=3e5,gcTime:n=6e5})=>la({queryKey:["permission",e],queryFn:t,enabled:a,staleTime:r,gcTime:n,retry:0,refetchOnWindowFocus:!1});function ss({label:e,onClick:t,icon:r,actions:n=[],variant:s="default",size:o="default",disabled:i=!1,loading:l=!1,menuAlign:d="end",className:c}){const{t:m}=oa(),u=i||l;if(!(n.length>0))return L(Ca,{variant:s,size:o,disabled:u,onClick:t,className:c,children:[l?O(ae,{className:"mr-2 h-4 w-4 animate-spin"}):r?O(r,{className:"mr-2 h-4 w-4"}):null,e]});return L("div",{className:a("inline-flex rounded-md shadow-sm",c),children:[L(Ca,{variant:s,size:o,disabled:u,onClick:t,className:"rounded-r-none border-r-0 focus:z-10",children:[l?O(ae,{className:"mr-2 h-4 w-4 animate-spin"}):r?O(r,{className:"mr-2 h-4 w-4"}):null,e]}),L(St,{children:[O(Dt,{asChild:!0,children:O(Ca,{variant:s,size:o,disabled:u,className:a("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"}[o]),"aria-label":m("more_options"),children:O(X,{className:{sm:"h-3 w-3",default:"h-4 w-4",lg:"h-4 w-4"}[o]})})}),O(At,{align:d,className:"min-w-[160px]",children:n.map(e=>{const t=e.icon;return L(zt,{onClick:e.onClick,disabled:e.disabled,className:a("destructive"===e.variant&&"text-destructive focus:text-destructive"),children:[t&&O(t,{className:"mr-2 h-4 w-4"}),e.label]},e.id)})})]})]})}function os({config:e,isCollapsed:t=!1,isDisabled:r=!1,className:n}){const{t:s}=oa(),{actions:o,triggerLabel:i="Criar",triggerIcon:l=xe,variant:d="button"}=e;if(!o||0===o.length)return null;if("split-button"===d){const e=o[0],s=e.icon||l,i=o.slice(1).map(e=>({id:e.id,label:e.label,icon:e.icon,onClick:e.onClick,disabled:e.disabled}));if(t){const t=O(Ca,{onClick:e.onClick,disabled:r||e.disabled,className:a("justify-center px-2 w-full",n),variant:"outline",size:"default",children:O(s,{className:"h-4 w-4 shrink-0"})});return L(_t,{children:[O(Pt,{asChild:!0,children:t}),O(It,{side:"right",children:O("p",{children:e.label})})]})}return O(ss,{label:e.label,onClick:e.onClick,icon:s,actions:i,variant:"outline",disabled:r||e.disabled,className:a("w-full",n),menuAlign:"start"})}const c=(e,a,r=!1)=>L(T,{children:[e,!t&&a&&O("span",{className:"truncate",children:a}),!t&&r&&O(X,{className:"ml-auto h-4 w-4 shrink-0"})]});if(!(o.length>1)){const e=o[0],s=e.icon||l,i=r||e.disabled,d=O(Ca,{onClick:e.onClick,disabled:i,className:a("w-full gap-2 justify-start",t&&"justify-center px-2",n),variant:"outline",size:"default",children:c(O(s,{className:"h-4 w-4 shrink-0"}),e.label)});return t?L(_t,{children:[O(Pt,{asChild:!0,children:d}),O(It,{side:"right",children:O("p",{children:e.label})})]}):d}const m=O(Ca,{disabled:r,className:a("w-full gap-2 justify-start",t&&"justify-center px-2",n),variant:"outline",size:"default",children:c(O(l,{className:"h-4 w-4 shrink-0"}),i,!0)});return L(St,{children:[O(Dt,{asChild:!0,children:t?L(_t,{children:[O(Pt,{asChild:!0,children:m}),O(It,{side:"right",children:O("p",{children:i})})]}):m}),O(At,{align:"start",side:t?"right":"bottom",className:"w-56 bg-popover",children:o.map(e=>{const a=e.icon;return L(zt,{onClick:e.onClick,disabled:e.disabled,className:"cursor-pointer",children:[a&&O(a,{className:"mr-2 h-4 w-4"}),e.label]},e.id)})})]})}const is="forlogic-sidebar-pinned",ls=()=>{try{const e=localStorage.getItem(is);return!!e&&JSON.parse(e)}catch{return!1}};function ds({direction:e="right",minWidth:a=224,maxWidth:t=384,defaultWidth:r=290,storageKey:n="sidebar-width",onResize:s,isOpen:o=!0}={}){const[i,l]=$(()=>{if("undefined"==typeof window)return r;const e=localStorage.getItem(n);return e?parseInt(e):r}),[d,c]=$(!1),m=W(null);G(()=>{const e=document.querySelector(".sidebar-container");e&&e instanceof HTMLElement&&(o?e.style.setProperty("--sidebar-width",`${i}px`):e.style.setProperty("--sidebar-width","290px"))},[i,o]);const u=q(e=>{e.preventDefault(),c(!0)},[]);return G(()=>{if(!d)return;const r=r=>{let n;n="left"===e?window.innerWidth-r.clientX:r.clientX,n=Math.max(a,Math.min(t,n)),l(n),s?.(n)},o=()=>{c(!1),l(e=>(localStorage.setItem(n,e.toString()),e))};return document.addEventListener("mousemove",r),document.addEventListener("mouseup",o),()=>{document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",o)}},[d,e,a,t,i,n,s]),G(()=>(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:i,isDragging:d,dragRef:m,handleMouseDown:u}}function cs({config:e,customContent:r,resizable:n=!1,minWidth:s=224,maxWidth:o=384}={}){const{t:l}=oa(),{open:d,setOpen:c,setOpenMobile:m}=yn(),u=ma(),{alias:h,user:p}=t(),{appName:f}=i(),{hasOpenModal:g}=k(),[b,v]=$(ls),x=sr(),N=!!x||d,y=q(()=>{x&&m(!1)},[x,m]),w=n?ds({minWidth:s,maxWidth:o,storageKey:"app-sidebar-width",isOpen:d}):null;G(()=>{c(!!b)},[b,c]);const C=e=>u.pathname===e||u.pathname.startsWith(e+"/");return L(Cn,{collapsible:"icon",className:a("app-sidebar bg-background border-r border-border flex flex-col",N?"px-3":"px-1.5"),style:w&&N?{width:`${w.width}px`,transition:"none"}:{transition:"width 300ms ease-in-out"},children:[e?.moduleActions&&e.moduleActions.actions.length>0&&O("div",{className:"py-3",children:O(Mt,{children:O(os,{config:e.moduleActions,isCollapsed:!N,isDisabled:g})})}),O(Dn,{className:a(e?.moduleActions&&e.moduleActions.actions.length>0?"pt-0":"pt-3"),children:r||O(An,{className:"p-0",children:O(zn,{children:O(Rn,{className:"gap-1",children:O(Mt,{children:e?.navigation?.map((e,t)=>{if("separator"===e.type)return O(Sn,{className:"my-2"},`sep-${t}`);const r=({item:e,index:t})=>{const n=`${e.path}-${t}-${h??"noalias"}-${p?.id??"nouser"}`,{data:s=!0,isLoading:o}=ns({key:n,enabled:Boolean(e.permissionCheck&&h&&p?.id),checkFn:e.permissionCheck||(()=>Promise.resolve(!0))}),i=e.permissionCheck&&!s,d=o?ae:i?Te:e.icon;i?l("restricted_access"):e.complementaryText;return e.children&&e.children.length>0?N?O(as,{defaultOpen:!0,className:"group/collapsible",children:L(Mn,{children:[O(ts,{asChild:!0,children:O(Pn,{size:"default",children:L("div",{className:"flex w-full items-center gap-3",children:[O("span",{className:"flex items-center justify-center h-8 w-8",children:O(d,{className:"h-4 w-4"})}),O("span",{className:"font-medium sidebar-text",children:e.label}),O(ie,{className:"ml-auto h-4 w-4 transition-transform group-data-[state=open]/collapsible:rotate-90"})]})})}),O(rs,{children:O(In,{children:e.children.map((e,a)=>O(r,{item:e,index:a},e.path))})})]})},e.path):O(Mn,{children:L(_t,{children:[O(Pt,{asChild:!0,children:O("div",{className:a("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:O(d,{className:"h-4 w-4"})})}),O(It,{side:"right",children:O("p",{children:e.label})})]})},e.path):O(Mn,{children:i||o?L(_t,{children:[O(Pt,{asChild:!0,children:N?O(Pn,{size:"default",className:"opacity-50 cursor-not-allowed",onClick:e=>e.preventDefault(),children:L("div",{className:"flex w-full items-center gap-3",children:[O("span",{className:"flex items-center justify-center h-8 w-8",children:O(d,{className:"h-4 w-4 "+(o?"animate-spin":"")})}),O("span",{className:"font-medium sidebar-text",children:e.label})]})}):O("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:O(d,{className:"h-4 w-4 "+(o?"animate-spin":"")})})}),O(It,{side:"right",children:O("p",{children:o?"Verificando acesso...":l("restricted_access")})})]}):N?O(Pn,{asChild:!0,isActive:C(e.path),size:"default",children:L(ha,{to:e.path,className:"flex w-full items-center gap-3",onClick:y,children:[O("span",{className:"flex items-center justify-center h-8 w-8",children:O(d,{className:"h-4 w-4"})}),O("span",{className:"font-medium sidebar-text",children:e.label})]})}):L(_t,{children:[O(Pt,{asChild:!0,children:O(ha,{to:e.path,onClick:y,className:a("flex items-center justify-center h-8 w-8 mx-auto rounded-md transition-colors",C(e.path)?"bg-primary/10 text-primary":"hover:bg-accent hover:text-accent-foreground"),children:O(d,{className:"h-4 w-4"})})}),O(It,{side:"right",children:O("p",{children:e.label})})]})},e.path)};return O(r,{item:e,index:t},e.path)})})})})})}),!x&&O("div",{className:a("mt-auto pb-4 pt-2 flex items-center gap-2",N?"justify-end px-1":"justify-center flex-col"),children:L(_t,{children:[O(Pt,{asChild:!0,children:O("button",{id:"btn-expand-side-nav",onClick:()=>{const e=!b;v(e),(e=>{try{localStorage.setItem(is,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:O(d?Re:ie,{className:"h-3.5 w-3.5 text-primary-foreground"})})}),O(It,{side:"right",children:O("p",{children:d?"Recolher":"Expandir"})})]})}),n&&w&&N&&O("div",{ref:w.dragRef,onMouseDown:w.handleMouseDown,className:a("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-['']",w.isDragging&&"bg-primary/40")})]})}const ms=U(function({children:e,sidebar:a,sidebarConfig:t,showHeader:r=!0,showSidebar:n=!0}){const s=V(()=>n?a||O(cs,{config:t}):null,[a,t,n]),o=V(()=>({"--sidebar-width":"290px","--sidebar-width-icon":"58px"}),[]),i=W(null),l=W(null),d=q(()=>{if(i.current&&l.current){const e=i.current.offsetHeight;l.current.style.setProperty("--header-height",`${e}px`)}},[]);return G(()=>{d();const e=new ResizeObserver(d);return i.current&&e.observe(i.current),()=>e.disconnect()},[d]),O(S,{config:t,children:O(D,{children:O(wn,{defaultOpen:!1,style:o,children:L("div",{ref:l,className:"flex flex-col h-screen w-full overflow-hidden",children:[r&&L("div",{ref:i,className:"flex-shrink-0 sticky top-0 z-40 bg-primary",children:[O(es,{}),O(A,{})]}),L("div",{className:"sidebar-container flex flex-1 overflow-hidden",children:[s,O("main",{className:"relative z-0 flex-1 flex flex-col overflow-hidden",children:O("div",{className:"flex-1 min-h-0 overflow-y-auto bg-muted/30",children:e})})]})]})})})})});function us({open:e,appName:a}){const[t,r]=$(!1),{association:n}=Jn(),s=y({isQualitfy:n?.isQualitfy,isMetroex:n?.isMetroex});return L(T,{children:[O(kn,{className:"p-0 gap-0",children:e?L("div",{className:"flex items-center gap-2 pl-2 min-h-10",children:[O("button",{className:"flex-shrink-0 cursor-pointer",onClick:()=>r(!0),children:O("img",{src:s,alt:"Logo",className:"h-8 max-w-[140px] object-contain"})}),a&&O("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:()=>r(!0),children:O("span",{className:"line-clamp-2",children:(e=>{const a=e.split(" ");if(a.length<=1)return L("span",{className:"whitespace-nowrap",children:[e," ",O(X,{size:12,className:"inline-block align-middle ml-1 opacity-60 text-primary-foreground"})]});const t=a[a.length-1],r=a.slice(0,-1).join(" ");return L(T,{children:[r," ",L("span",{className:"whitespace-nowrap",children:[t," ",O(X,{size:12,className:"inline-block align-middle ml-1 opacity-60 text-primary-foreground"})]})]})})(a)})})]}):O("div",{className:"flex flex-col items-center justify-center w-full",children:O("button",{className:"flex items-center justify-center h-10 w-8 cursor-pointer",onClick:()=>r(!0),children:O("img",{src:z.smallLogo,alt:"Logo",className:"h-6 w-auto object-contain"})})})}),O(Xn,{open:t,onOpenChange:r})]})}const hs=F.forwardRef(({...e},a)=>O("nav",{ref:a,"aria-label":"breadcrumb",...e}));hs.displayName="Breadcrumb";const ps=F.forwardRef(({className:e,...t},r)=>O("ol",{ref:r,className:a("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));ps.displayName="BreadcrumbList";const fs=F.forwardRef(({className:e,...t},r)=>O("li",{ref:r,className:a("inline-flex items-center gap-1.5",e),...t}));fs.displayName="BreadcrumbItem";const gs=F.forwardRef(({asChild:e,className:t,...r},n)=>O(e?K:"a",{ref:n,className:a("transition-colors hover:text-foreground",t),...r}));gs.displayName="BreadcrumbLink";const bs=F.forwardRef(({className:e,...t},r)=>O("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:a("font-normal text-foreground",e),...t}));bs.displayName="BreadcrumbPage";const vs=({children:e,className:t,...r})=>O("li",{role:"presentation","aria-hidden":"true",className:a("[&>svg]:h-3.5 [&>svg]:w-3.5",t),...r,children:e??O(ie,{})});function xs({title:e,subtitle:t,children:r,className:n,hasHeader:s=!0}){const o=e||t;return L("div",{className:a("bg-white dark:bg-card","rounded-lg","shadow-sm","border border-border/40","overflow-visible",n),children:[s&&o&&L("div",{className:"px-6 py-4 border-b border-border/50",children:[e&&O("h2",{className:"text-xl font-semibold text-foreground",children:e}),t&&O("p",{className:"text-sm text-muted-foreground mt-0.5",children:t})]}),r&&O("div",{className:a("p-6",!s&&o&&"pt-4"),children:r})]})}function Ns({breadcrumbs:e,children:t,className:r}){return L("div",{className:a("bg-neutral-100 dark:bg-neutral-900","h-full overflow-y-auto","p-6",r),children:[e&&e.length>0&&O(hs,{className:"mb-4",children:O(ps,{children:e.map((a,t)=>{const r=t===e.length-1;return L(F.Fragment,{children:[t>0&&O(vs,{}),O(fs,{children:r||!a.href?O(bs,{children:a.label}):a.asChild&&a.children?O(gs,{asChild:!0,children:a.children}):O(gs,{asChild:!0,children:O(ha,{to:a.href||"/",children:a.label})})})]},`${a.label}-${t}`)})})}),O("div",{className:"space-y-6",children:t})]})}vs.displayName="BreadcrumbSeparator";var ys=Object.defineProperty,ws=(e,a,t)=>((e,a,t)=>a in e?ys(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t)(e,a+"",t);class Cs extends H{constructor(e){super(e),ws(this,"copyErrorDetails",()=>{const e=R.getErrors().slice(0,2),a=`\n=== ERRO ATUAL ===\n${this.state.error?.message||Ke.t("unknown_error")}\n\nStack Trace:\n${this.state.error?.stack||Ke.t("not_available")}\n\n=== ÚLTIMOS ERROS ===\n${e.map((e,a)=>`${a+1}. [${new Date(e.timestamp).toLocaleTimeString()}] ${e.message}`).join("\n")||Ke.t("no_errors_recorded")}\n `.trim();navigator.clipboard.writeText(a),ta.success("Detalhes copiados!",{description:Ke.t("error_copied_clipboard")})}),this.state={hasError:!1,showDetails:!1}}static getDerivedStateFromError(e){if(import.meta.env.DEV)throw e;return{hasError:!0,error:e}}componentDidCatch(e,a){if(import.meta.env.DEV)throw e;R.handleError(e,!1),this.setState({errorInfo:a})}render(){if(this.state.hasError){if(this.props.fallback)return this.props.fallback;const e=R.getErrors().slice(0,2);return O("div",{className:"flex items-center justify-center min-h-screen p-4",children:L(za,{className:"w-full max-w-2xl",children:[L(Ra,{className:"text-center",children:[O("div",{className:"flex justify-center mb-4",children:O(Fe,{className:"h-12 w-12 text-destructive"})}),O(Ma,{children:Ke.t("something_went_wrong")})]}),L(Pa,{className:"space-y-4",children:[O("p",{className:"text-center text-muted-foreground",children:"Ocorreu um erro inesperado. Tente recarregar a página."}),L(as,{open:this.state.showDetails,onOpenChange:e=>this.setState({showDetails:e}),children:[O(ts,{asChild:!0,children:L(Ca,{variant:"outline",className:"w-full flex items-center justify-center gap-2",children:[O(X,{className:"h-4 w-4 transition-transform "+(this.state.showDetails?"rotate-180":"")}),"Ver Detalhes Técnicos"]})}),L(rs,{className:"mt-4 space-y-4",children:[L("div",{className:"rounded-lg border bg-card p-4 space-y-3",children:[L("div",{children:[O("h4",{className:"font-semibold text-sm mb-2 flex items-center gap-2",children:"📋 Erro Atual"}),L("div",{className:"text-sm space-y-2",children:[O("p",{className:"font-medium text-destructive",children:this.state.error?.message||Ke.t("unknown_error")}),this.state.error?.stack&&O(Vr,{className:"h-32 w-full rounded border bg-muted p-2",children:O("pre",{className:"text-xs text-muted-foreground whitespace-pre-wrap",children:this.state.error.stack})})]})]}),e.length>0&&L("div",{className:"pt-3 border-t",children:[O("h4",{className:"font-semibold text-sm mb-2 flex items-center gap-2",children:"📜 Últimos Erros"}),O("div",{className:"space-y-2",children:e.map((e,a)=>O("div",{className:"text-sm p-2 rounded bg-muted/50",children:L("div",{className:"flex items-start gap-2",children:[L("span",{className:"font-medium text-muted-foreground shrink-0",children:[a+1,"."]}),L("div",{className:"flex-1 min-w-0",children:[O("div",{className:"flex items-center gap-2 flex-wrap",children:L("span",{className:"text-xs text-muted-foreground",children:["[",new Date(e.timestamp).toLocaleTimeString(),"]"]})}),O("p",{className:"text-sm break-words",children:e.message})]})]})},e.id))})]})]}),L(Ca,{variant:"outline",onClick:this.copyErrorDetails,className:"w-full flex items-center justify-center gap-2",children:[O(je,{className:"h-4 w-4"}),"Copiar Detalhes"]})]})]}),O(Ca,{onClick:()=>window.location.reload(),className:"w-full",children:"Recarregar Página"})]})]})})}return this.props.children}}const ks=(e={})=>{const{enabled:a=!0}=e,{alias:r}=t();return la({queryKey:["active-modules",r],queryFn:async()=>{if(!r)return[];const e=M(),{data:a,error:t}=await e.schema("central").from("modules").select("\n id, name, url,\n modules_alias!inner(alias)\n ").eq("modules_alias.alias",r).eq("status","active").order("name");if(t){if(!_.handleError(t))throw t;return[]}return a||[]},enabled:a&&!!r})};function Ss({rowIds:e,defaultHeight:a=48,minHeight:t=32,maxHeight:r=120,storageKey:n,onResize:s,enabled:o=!0}){const[i,l]=$(()=>{if(!o||"undefined"==typeof window)return{};if(n){const e=localStorage.getItem(n);if(e)try{return JSON.parse(e)}catch{}}return{}}),[d,c]=$(!1),[m,u]=$(null),h=W(0),p=W(0),f=q(e=>i[e]??a,[i,a]),g=q((e,t)=>{o&&(t.preventDefault(),t.stopPropagation(),c(!0),u(e),h.current=t.clientY,p.current=i[e]??a)},[o,i,a]);G(()=>{if(!d||!m)return;const e=e=>{const a=e.clientY-h.current,n=Math.max(t,Math.min(r,p.current+a));l(e=>{const a={...e,[m]:n};return s?.(a),a})},a=()=>{c(!1),u(null),n&&l(e=>(localStorage.setItem(n,JSON.stringify(e)),e))};return document.addEventListener("mousemove",e),document.addEventListener("mouseup",a),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",a)}},[d,m,t,r,n,s]),G(()=>(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=q(()=>{l({}),n&&localStorage.removeItem(n),s?.({})},[n,s]);return{rowHeights:i,isDragging:d,activeRow:m,handleMouseDown:g,resetHeights:b,getRowHeight:f}}function Ds(e){const{steps:a,initialStep:t=0,initialData:r={},onComplete:n,onCancel:s}=e,[o,i]=$(t),[l,d]=$(r),[c,m]=$(!1),[u,h]=$(!1),p=a.length,f=0===o,g=o===p-1,b=a[o],v=p>1?(o+1)/p*100:100,x=q(()=>!b?.canProceed||b.canProceed(),[b]),N=V(()=>x(),[x,l]),y=V(()=>!f&&!b?.disableBack,[f,b]),w=q(e=>{d(a=>({...a,...e}))},[]),C=q((e,a)=>{d(t=>({...t,[e]:a}))},[]),k=q(()=>{i(t),d(r),m(!1),h(!1),s?.()},[t,r,s]),S=q(async()=>{if(x()&&!u){h(!0);try{await(n?.(l))}finally{h(!1)}}},[x,u,l,n]),D=q(async()=>{x()&&!c&&(g?await S():i(e=>Math.min(e+1,p-1)))},[x,c,g,p,S]),A=q(()=>{y&&!c&&i(e=>Math.max(e-1,0))},[y,c]),z=q(e=>{e<0||e>=p||c||(e<=o||e===o+1)&&i(e)},[o,p,c]),R=q(e=>{m(e)},[]);return{currentStep:o,currentStepConfig:b,data:l,isFirstStep:f,isLastStep:g,isLoading:c,isCompleting:u,next:D,back:A,goTo:z,canProceed:N,canGoBack:y,setData:w,updateField:C,reset:k,complete:S,setLoading:R,progress:v,stepIndex:o,totalSteps:p}}function As(e={}){const{paramName:a="alias"}=e,r=pa(),{alias:n,companies:s}=t(),o=r[a]||null;return V(()=>{if(!o)return{urlAlias:null,isAliasMismatch:!1,isValidAlias:!1,isMissing:!0,matchedCompany:null};const e=s?.find(e=>e.alias===o)||null,a=!!e;return{urlAlias:o,isAliasMismatch:a&&o!==n,isValidAlias:a,isMissing:!1,matchedCompany:e}},[o,n,s])}const zs=()=>{const{locale:e,timezone:a}=P(),t=I;return{formatDatetime:r=>B(r,t,a,e),formatDate:t=>E(t,e,a),locale:e,timezone:a,datetimeFormat:t}};function Rs({open:e,onOpenChange:a,onModuleClick:t,contractedModules:r,onModuleInterest:n,userName:s,unitName:o,units:i=[],currentAlias:l,onUnitChange:d,onLogout:c,educaUrl:m,saberGestaoUrl:u,wikiUrl:h,blocking:p=!0,size:f="lg",children:g,sourceModule:b}){const{t:v}=oa(),x=V(()=>{if(!i.length)return[];const e=new Map;i.forEach(a=>e.set(a.alias,a));const a=Array.from(e.values()),t=a.find(e=>e.alias===l),r=a.filter(e=>e.alias!==l).sort((e,a)=>(e.name||"").localeCompare(a.name||"","pt-BR",{sensitivity:"base"}));return t?[t,...r]:r},[i,l]);return O(Ga,{open:e,onOpenChange:p?void 0:a,children:L(Qa,{size:f,variant:"destructive",className:"overflow-hidden flex flex-col max-h-[85vh]",onPointerDownOutside:p?e=>e.preventDefault():void 0,onEscapeKeyDown:p?e=>e.preventDefault():void 0,children:[L("div",{className:"flex items-start justify-between gap-4 flex-shrink-0",children:[L("div",{className:"flex flex-col gap-1.5 text-left",children:[O(Xa,{children:v("no_access_page")}),O(Ya,{children:"Selecione um módulo para continuar navegando!"})]}),L("div",{className:"flex items-center gap-2 shrink-0",children:[x.length>1&&L(St,{children:[O(Dt,{asChild:!0,children:L(Ca,{variant:"outline",size:"sm",className:"gap-2 max-w-[200px]",children:[O($e,{className:"h-4 w-4 shrink-0"}),O("span",{className:"truncate text-xs",children:o||"Unidade"}),O(X,{className:"h-3 w-3 shrink-0"})]})}),O(At,{align:"end",className:"max-h-[300px] overflow-auto",children:x.map(e=>L(zt,{onClick:()=>d?.(e),className:e.alias===l?"bg-muted":"",children:[O($e,{className:"mr-2 h-4 w-4 shrink-0"}),O("span",{className:"truncate",children:e.name}),e.alias===l&&O(Nt,{variant:"outline",className:"ml-auto text-xs shrink-0",children:"Atual"})]},e.alias))})]}),L(St,{children:[O(Dt,{asChild:!0,children:L(Ca,{variant:"ghost",size:"sm",className:"gap-2",children:[O("div",{className:"w-7 h-7 bg-primary rounded-full flex items-center justify-center",children:O(Ve,{className:"h-3.5 w-3.5 text-primary-foreground"})}),O(X,{className:"h-3 w-3"})]})}),L(At,{align:"end",children:[L("div",{className:"px-2 py-1.5",children:[O("p",{className:"text-sm font-medium",children:s||Ke.t("user")}),O("p",{className:"text-xs text-muted-foreground",children:o})]}),O(Rt,{}),L(zt,{onClick:c,children:[O(qe,{className:"mr-2 h-4 w-4"}),"Sair"]})]})]})]})]}),g?L("div",{className:"flex-1 min-h-0 overflow-auto flex flex-col",children:[O("div",{className:"flex-1",children:g}),O(qn,{educaUrl:m,saberGestaoUrl:u,wikiUrl:h,alias:l,sourceModule:b})]}):O(Kn,{onModuleClick:t,contractedModules:r,onModuleInterest:n,educaUrl:m,saberGestaoUrl:u,wikiUrl:h,alias:l,sourceModule:b})]})})}function Ms(e,a){return a.some(a=>a.endsWith("*")?e.startsWith(a.slice(0,-1)):e===a)}function _s({children:e,contractedModules:a,onModuleClick:r,onModuleInterest:n,educaUrl:s="https://educacao.sabergestao.com.br/{alias}/fe",saberGestaoUrl:o="https://sabergestao.com.br/",wikiUrl:i,bypassPaths:l,noAccessRedirectPath:d,noAccessRedirectMode:c,accessDeniedRoutes:m,sourceModule:h}){const{t:p}=oa(),{hasAccess:f,isLoading:g,association:b}=Jn(),{user:v,alias:x,companies:y,isAuthenticated:w,isLoading:C,logout:k,switchUnit:S}=t(),D=Zn(a),A=V(()=>y?.length?x&&y.find(e=>e.alias===x)||y[0]:null,[y,x]),z=V(()=>y?.length?y.map(e=>({alias:e.alias,name:e.name||e.alias})):[],[y]),R=q(e=>{const a=y?.find(a=>a.alias===e.alias);if(!a)return;const{pathname:t,search:r,hash:n}=window.location;if(x){const e=t.split("/"),s=e.indexOf(x);if(s>=0)return e[s]=a.alias,void(window.location.href=e.join("/")+r+n)}S(a)},[x,S,y]),M=q(e=>{r?r(e):e.url&&N(u(e.url,x||void 0))},[r,x]),_=V(()=>{if(!m)return;const e="undefined"!=typeof window?window.location.pathname:"",a=Object.keys(m).find(a=>Ms(e,[a]));return a?m[a]:void 0},[m]),P="undefined"!=typeof window?window.location.pathname:"",I=!(!l?.length||!Ms(P,l)),E=!C&&w&&!g&&!f&&!I&&!!d&&"always"===(c??"always")?function(e,a){return a&&e.startsWith("/")?e.split("/")[1]===a?e:`/${a}${e}`:e}(d,x):null;return G(()=>{E&&E!==P&&window.location.replace(E)},[E,P]),C||!w||I?O(T,{children:e}):g?O("div",{className:"flex items-center justify-center min-h-screen",children:O(wt,{size:"lg"})}):f?O(T,{children:e}):E?E===P?O(T,{children:e}):O("div",{className:"flex items-center justify-center min-h-screen",children:O(wt,{size:"lg"})}):O(Rs,{open:!0,onModuleClick:M,contractedModules:D,onModuleInterest:n,userName:v?.name,unitName:A?.name,units:z,currentAlias:x||void 0,onUnitChange:R,onLogout:k,educaUrl:s,saberGestaoUrl:o,wikiUrl:i,sourceModule:h,blocking:!0,children:_})}function Ps({title:e,description:a,image:t,icon:r,ctaLabel:n,onCtaClick:s,children:o}){const{t:i}=oa(),l=n??i("want_to_know_more");return L("div",{className:"flex flex-col items-center text-center gap-6 py-8 px-4",children:[!o&&(t||r)&&O("div",{className:"flex items-center justify-center",children:t?O("img",{src:t,alt:e,className:"max-h-48 w-auto object-contain rounded-lg"}):r?O("div",{className:"w-24 h-24 rounded-2xl bg-primary/10 flex items-center justify-center",children:O(r,{className:"h-12 w-12 text-primary"})}):null}),L("div",{className:"space-y-3 max-w-lg",children:[O("h3",{className:"text-xl font-semibold text-foreground",children:e}),O("p",{className:"text-sm text-muted-foreground leading-relaxed",children:a})]}),o?O("div",{className:"w-full",children:o}):s?L(Ca,{onClick:s,size:"lg",className:"gap-2",children:[O(Ge,{className:"h-4 w-4"}),l]}):null]})}export{Rs as AccessDeniedDialog,ka as ActionButton,es as AppHeader,ms as AppLayout,cs as AppSidebar,Nt as Badge,Kr as BaseForm,Ns as BodyContent,Ca as Button,za as Card,Pa as CardContent,_a as CardDescription,Ra as CardHeader,Ma as CardTitle,bt as Checkbox,Yt as ComboTree,Ht as Combobox,xs as ContentContainer,tn as CrudPageInternal,Ga as Dialog,Qa as DialogContent,Za as DialogFooter,Ja as DialogHeader,Xa as DialogTitle,Wa as DialogTrigger,Et as DisabledMenuItem,Cs as ErrorBoundary,et as Form,it as FormControl,tt as FormField,st as FormItem,ot as FormLabel,lt as FormMessage,Sa as Input,Aa as Label,Ct as LoadingState,Gn as MODULES_DATA,_s as ModuleAccessGuard,Hn as ModuleGrid,Ps as ModuleOfferContent,Kn as ModulesContent,Xn as ModulesDialog,qn as ModulesFooterCards,Ht as MultiSelect,ct as Select,ft as SelectContent,gt as SelectItem,Ht as SelectSearch,ut as SelectTrigger,mt as SelectValue,os as SidebarActionTrigger,us as SidebarHeader,Yn as SidebarLogo,vt as Textarea,kt as Toaster,rn as createCrudPage,nn as createSimpleSaveHandler,rr as createSimpleService,sn as generateCrudConfig,mn as resolvePageTitle,ks as useActiveModules,As as useAliasFromUrl,Dr as useColumnResize,un as useDebounce,Zn as useDerivedContractedModules,zs as useI18nFormatters,sr as useIsMobile,nr as useMediaQuery,Jn as useModuleAccess,dn as usePageTitle,ns as usePermissionQuery,Ss as useRowResize,ds as useSidebarResize,Ds as useWizard};
|