@e-llm-studio/federated-dashboard-components 2.2.11 → 2.2.13-rca-alpha-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/ExecutiveDashboard/ExecutiveDashboardWrapper.js +1 -1
- package/dist/ExecutiveDashboard/api/dashboardApi.js +1 -1
- package/dist/ExecutiveDashboard/api/insightsApi.js +2 -0
- package/dist/ExecutiveDashboard/api/insightsApi.js.map +1 -0
- package/dist/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.js +1 -1
- package/dist/ExecutiveDashboard/components/DashboardDateFilter/QuarterPicker.js +2 -0
- package/dist/ExecutiveDashboard/components/DashboardDateFilter/QuarterPicker.js.map +1 -0
- package/dist/ExecutiveDashboard/components/DashboardDateFilter/datePreset.js +1 -1
- package/dist/ExecutiveDashboard/components/DashboardDateFilter/dateRanges.js +2 -0
- package/dist/ExecutiveDashboard/components/DashboardDateFilter/dateRanges.js.map +1 -0
- package/dist/ExecutiveDashboard/components/DashboardGrid/buildDashboardWidgets.js +1 -1
- package/dist/ExecutiveDashboard/components/DashboardGrid/kpiCollapse.js +2 -0
- package/dist/ExecutiveDashboard/components/DashboardGrid/kpiCollapse.js.map +1 -0
- package/dist/ExecutiveDashboard/components/DashboardHeader/DashboardHeader.js +2 -0
- package/dist/ExecutiveDashboard/components/DashboardHeader/DashboardHeader.js.map +1 -0
- package/dist/ExecutiveDashboard/components/DataAccess/DataAccessMessage.js +2 -0
- package/dist/ExecutiveDashboard/components/DataAccess/DataAccessMessage.js.map +1 -0
- package/dist/ExecutiveDashboard/components/DataAccess/DataAccessScopeChip.js +2 -0
- package/dist/ExecutiveDashboard/components/DataAccess/DataAccessScopeChip.js.map +1 -0
- package/dist/ExecutiveDashboard/components/ExecutiveDashboard.js +1 -1
- package/dist/ExecutiveDashboard/components/FiltersSidebar/FiltersSidebar.js +1 -1
- package/dist/ExecutiveDashboard/components/Graph/Graph.js +1 -1
- package/dist/ExecutiveDashboard/components/Graph/LineChart.js +1 -1
- package/dist/ExecutiveDashboard/components/Graph/axisDomain.js +2 -0
- package/dist/ExecutiveDashboard/components/Graph/axisDomain.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Graph/inlineLabels.js +2 -0
- package/dist/ExecutiveDashboard/components/Graph/inlineLabels.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/AgCharts.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/AgCharts.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/AgReport.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/AgReport.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/CommentsThread.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/CommentsThread.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/DrillLevel.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/DrillLevel.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/DrillTable.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/DrillTable.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/DriverActivity.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/DriverActivity.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/FilterNotice.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/FilterNotice.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/InsightTabs.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/InsightTabs.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/InsightsContext.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/InsightsContext.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/KpiChart.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/KpiChart.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/L1Report.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/L1Report.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/NeedsAttention.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/NeedsAttention.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/ReportDrawer.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/ReportDrawer.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/RowDetail.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/RowDetail.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/agPrimitives.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/agPrimitives.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/drillDay.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/drillDay.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/insightsContextCore.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/insightsContextCore.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/insightsErrors.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/insightsErrors.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/insightsFilters.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/insightsFilters.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/insightsFormat.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/insightsFormat.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Insights/insightsUtils.js +2 -0
- package/dist/ExecutiveDashboard/components/Insights/insightsUtils.js.map +1 -0
- package/dist/ExecutiveDashboard/components/IntegrationTracking/ MarkdownDocsModal.js +2 -0
- package/dist/ExecutiveDashboard/components/IntegrationTracking/ MarkdownDocsModal.js.map +1 -0
- package/dist/ExecutiveDashboard/components/IntegrationTracking/ useModeTrackingStatus.js +2 -0
- package/dist/ExecutiveDashboard/components/IntegrationTracking/ useModeTrackingStatus.js.map +1 -0
- package/dist/ExecutiveDashboard/components/IntegrationTracking/TrackingBanner.js +2 -0
- package/dist/ExecutiveDashboard/components/IntegrationTracking/TrackingBanner.js.map +1 -0
- package/dist/ExecutiveDashboard/components/IntegrationTracking/trackingIntegrationApi.js +2 -0
- package/dist/ExecutiveDashboard/components/IntegrationTracking/trackingIntegrationApi.js.map +1 -0
- package/dist/ExecutiveDashboard/components/RcaDecisionComponent/CitationMarkdown.js +2 -0
- package/dist/ExecutiveDashboard/components/RcaDecisionComponent/CitationMarkdown.js.map +1 -0
- package/dist/ExecutiveDashboard/components/RcaDecisionComponent/RcaDecisionComponent.js +1 -1
- package/dist/ExecutiveDashboard/components/Table/FTable.js +1 -1
- package/dist/ExecutiveDashboard/utils/sectionOrder.js +1 -1
- package/dist/HumanIntelligence/components/ReviewLearningConditionsModal/ReviewLearningConditionsModal.js +1 -1
- package/dist/HumanIntelligence/components/ReviewLearningConditionsModal/ReviewLearningConditionsModal.module.css.js +1 -1
- package/dist/HumanIntelligence/components/ReviewLearningConditionsModal/parser.js +1 -1
- package/dist/cjs/ExecutiveDashboard/ExecutiveDashboardWrapper.js +1 -1
- package/dist/cjs/ExecutiveDashboard/api/dashboardApi.js +1 -1
- package/dist/cjs/ExecutiveDashboard/api/insightsApi.js +2 -0
- package/dist/cjs/ExecutiveDashboard/api/insightsApi.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/QuarterPicker.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/QuarterPicker.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/datePreset.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/dateRanges.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/dateRanges.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardGrid/buildDashboardWidgets.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/DashboardGrid/kpiCollapse.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardGrid/kpiCollapse.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardHeader/DashboardHeader.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardHeader/DashboardHeader.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/DataAccess/DataAccessMessage.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DataAccess/DataAccessMessage.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/DataAccess/DataAccessScopeChip.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DataAccess/DataAccessScopeChip.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/ExecutiveDashboard.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/FiltersSidebar/FiltersSidebar.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/Graph/Graph.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/Graph/LineChart.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/Graph/axisDomain.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Graph/axisDomain.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Graph/inlineLabels.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Graph/inlineLabels.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/AgCharts.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/AgCharts.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/AgReport.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/AgReport.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/CommentsThread.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/CommentsThread.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/DrillLevel.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/DrillLevel.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/DrillTable.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/DrillTable.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/DriverActivity.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/DriverActivity.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/FilterNotice.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/FilterNotice.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/InsightTabs.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/InsightTabs.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/InsightsContext.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/InsightsContext.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/KpiChart.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/KpiChart.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/L1Report.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/L1Report.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/NeedsAttention.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/NeedsAttention.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/ReportDrawer.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/ReportDrawer.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/RowDetail.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/RowDetail.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/agPrimitives.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/agPrimitives.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/drillDay.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/drillDay.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/insightsContextCore.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/insightsContextCore.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/insightsErrors.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/insightsErrors.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/insightsFilters.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/insightsFilters.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/insightsFormat.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/insightsFormat.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/insightsUtils.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Insights/insightsUtils.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/IntegrationTracking/ MarkdownDocsModal.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/IntegrationTracking/ MarkdownDocsModal.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/IntegrationTracking/ useModeTrackingStatus.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/IntegrationTracking/ useModeTrackingStatus.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/IntegrationTracking/TrackingBanner.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/IntegrationTracking/TrackingBanner.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/IntegrationTracking/trackingIntegrationApi.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/IntegrationTracking/trackingIntegrationApi.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/RcaDecisionComponent/CitationMarkdown.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/RcaDecisionComponent/CitationMarkdown.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/RcaDecisionComponent/RcaDecisionComponent.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/Table/FTable.js +1 -1
- package/dist/cjs/ExecutiveDashboard/utils/sectionOrder.js +1 -1
- package/dist/cjs/HumanIntelligence/components/ReviewLearningConditionsModal/ReviewLearningConditionsModal.js +1 -1
- package/dist/cjs/HumanIntelligence/components/ReviewLearningConditionsModal/ReviewLearningConditionsModal.module.css.js +1 -1
- package/dist/cjs/HumanIntelligence/components/ReviewLearningConditionsModal/parser.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/styles.css +1 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/ExecutiveDashboard/ExecutiveDashboardWrapper.d.ts +1 -1
- package/dist/types/ExecutiveDashboard/ExecutiveDashboardWrapper.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/TestExecutiveDashboard.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/api/dashboardApi.d.ts +10 -2
- package/dist/types/ExecutiveDashboard/api/dashboardApi.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/api/insightsApi.d.ts +200 -0
- package/dist/types/ExecutiveDashboard/api/insightsApi.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.d.ts +5 -1
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/QuarterPicker.d.ts +9 -0
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/QuarterPicker.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/datePreset.d.ts +47 -2
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/datePreset.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/dateRanges.d.ts +7 -0
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/dateRanges.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DashboardGrid/buildDashboardWidgets.d.ts +12 -1
- package/dist/types/ExecutiveDashboard/components/DashboardGrid/buildDashboardWidgets.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/DashboardGrid/kpiCollapse.d.ts +10 -0
- package/dist/types/ExecutiveDashboard/components/DashboardGrid/kpiCollapse.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DashboardHeader/DashboardHeader.d.ts +17 -0
- package/dist/types/ExecutiveDashboard/components/DashboardHeader/DashboardHeader.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DataAccess/DataAccessMessage.d.ts +18 -0
- package/dist/types/ExecutiveDashboard/components/DataAccess/DataAccessMessage.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DataAccess/DataAccessScopeChip.d.ts +16 -0
- package/dist/types/ExecutiveDashboard/components/DataAccess/DataAccessScopeChip.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/ExecutiveDashboard.d.ts +45 -2
- package/dist/types/ExecutiveDashboard/components/ExecutiveDashboard.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/FiltersSidebar/FiltersSidebar.d.ts +11 -1
- package/dist/types/ExecutiveDashboard/components/FiltersSidebar/FiltersSidebar.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/Graph/Graph.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/Graph/LineChart.d.ts +6 -1
- package/dist/types/ExecutiveDashboard/components/Graph/LineChart.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/Graph/axisDomain.d.ts +24 -0
- package/dist/types/ExecutiveDashboard/components/Graph/axisDomain.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Graph/inlineLabels.d.ts +49 -0
- package/dist/types/ExecutiveDashboard/components/Graph/inlineLabels.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Graph/types.d.ts +85 -0
- package/dist/types/ExecutiveDashboard/components/Graph/types.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/Insights/AgCharts.d.ts +74 -0
- package/dist/types/ExecutiveDashboard/components/Insights/AgCharts.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/AgReport.d.ts +160 -0
- package/dist/types/ExecutiveDashboard/components/Insights/AgReport.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/CommentsThread.d.ts +6 -0
- package/dist/types/ExecutiveDashboard/components/Insights/CommentsThread.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.d.ts +65 -0
- package/dist/types/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/DrillLevel.d.ts +35 -0
- package/dist/types/ExecutiveDashboard/components/Insights/DrillLevel.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/DrillTable.d.ts +29 -0
- package/dist/types/ExecutiveDashboard/components/Insights/DrillTable.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/DriverActivity.d.ts +10 -0
- package/dist/types/ExecutiveDashboard/components/Insights/DriverActivity.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/FilterNotice.d.ts +7 -0
- package/dist/types/ExecutiveDashboard/components/Insights/FilterNotice.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/InsightTabs.d.ts +17 -0
- package/dist/types/ExecutiveDashboard/components/Insights/InsightTabs.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/InsightsContext.d.ts +73 -0
- package/dist/types/ExecutiveDashboard/components/Insights/InsightsContext.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/KpiChart.d.ts +128 -0
- package/dist/types/ExecutiveDashboard/components/Insights/KpiChart.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/L1Report.d.ts +41 -0
- package/dist/types/ExecutiveDashboard/components/Insights/L1Report.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/NeedsAttention.d.ts +27 -0
- package/dist/types/ExecutiveDashboard/components/Insights/NeedsAttention.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/ReportDrawer.d.ts +13 -0
- package/dist/types/ExecutiveDashboard/components/Insights/ReportDrawer.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/RowDetail.d.ts +21 -0
- package/dist/types/ExecutiveDashboard/components/Insights/RowDetail.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/agPrimitives.d.ts +176 -0
- package/dist/types/ExecutiveDashboard/components/Insights/agPrimitives.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/drillDay.d.ts +17 -0
- package/dist/types/ExecutiveDashboard/components/Insights/drillDay.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/insightsContextCore.d.ts +128 -0
- package/dist/types/ExecutiveDashboard/components/Insights/insightsContextCore.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/insightsErrors.d.ts +11 -0
- package/dist/types/ExecutiveDashboard/components/Insights/insightsErrors.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/insightsFilters.d.ts +9 -0
- package/dist/types/ExecutiveDashboard/components/Insights/insightsFilters.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/insightsFormat.d.ts +92 -0
- package/dist/types/ExecutiveDashboard/components/Insights/insightsFormat.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Insights/insightsUtils.d.ts +85 -0
- package/dist/types/ExecutiveDashboard/components/Insights/insightsUtils.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/IntegrationTracking/ MarkdownDocsModal.d.ts +24 -0
- package/dist/types/ExecutiveDashboard/components/IntegrationTracking/ MarkdownDocsModal.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/IntegrationTracking/ useModeTrackingStatus.d.ts +9 -0
- package/dist/types/ExecutiveDashboard/components/IntegrationTracking/ useModeTrackingStatus.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/IntegrationTracking/TrackingBanner.d.ts +25 -0
- package/dist/types/ExecutiveDashboard/components/IntegrationTracking/TrackingBanner.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/IntegrationTracking/index.d.ts +5 -0
- package/dist/types/ExecutiveDashboard/components/IntegrationTracking/index.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/IntegrationTracking/trackingIntegrationApi.d.ts +17 -0
- package/dist/types/ExecutiveDashboard/components/IntegrationTracking/trackingIntegrationApi.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/CitationMarkdown.d.ts +54 -0
- package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/CitationMarkdown.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/RcaDecisionComponent.d.ts +13 -2
- package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/RcaDecisionComponent.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/index.d.ts +1 -1
- package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/index.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/types.d.ts +46 -2
- package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/types.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/Table/FTable.d.ts +2 -0
- package/dist/types/ExecutiveDashboard/components/Table/FTable.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/types/index.d.ts +122 -2
- package/dist/types/ExecutiveDashboard/types/index.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/types/insights.d.ts +893 -0
- package/dist/types/ExecutiveDashboard/types/insights.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/utils/sectionOrder.d.ts.map +1 -1
- package/dist/types/HumanIntelligence/components/ReviewLearningConditionsModal/ReviewLearningConditionsModal.d.ts.map +1 -1
- package/dist/types/index.d.ts +20 -2
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as n,__spreadArray as e,__awaiter as i,__generator as t}from"../../../_virtual/_tslib.js";import{jsxs as l,jsx as o,Fragment as r}from"react/jsx-runtime";import{useState as a,useMemo as d,useEffect as u,useId as s,useRef as c,Fragment as v}from"react";import{Sparkles as p,TrendingUp as g,ChevronDown as y,ChevronRight as h,X as m}from"lucide-react";import{fetchGraphGroups as f,toIsoDay as b,fetchInsightsSummary as w,fetchInsightsSeries as D,fetchInsightsReports as K,fetchRowReport as _,generateInsightsSummary as k}from"../../api/insightsApi.js";import{useInsights as T}from"./insightsContextCore.js";import{insightsErrorText as I}from"./insightsErrors.js";import{useInsightsFetch as N,useInsightsModal as C,useScrollToTopOnStep as x,useJob as O}from"./insightsUtils.js";import{toTrendPoints as j,TrendChart as L,ActivityChart as A}from"./AgCharts.js";import{KpiChart as B}from"./KpiChart.js";import{titleCase as R,CorrelationSection as G,reportOutsideRange as M,outsideRangeText as S,reportDayOf as E,RegenerateSummary as F,SummaryCard as P,DecisionCard as U,TopDriversSection as H,MAX_SERIES as V}from"./AgReport.js";import{periodStart as W,averageShort as q}from"./insightsFormat.js";import z from"./CommentsThread.js";import J,{popupRowFromDriver as Q,DEFAULT_LEVEL as X}from"./DrillLevel.js";import{periodHeading as Y,DaysDropdown as Z,SectionHeader as $,MetricsSkeleton as nn,TrendMetricsSection as en,ChartSkeleton as tn,CriticalityChip as ln,MovementChip as on,ReportAccordion as rn,CollapsibleVisualSection as an,toneOf as dn}from"./agPrimitives.js";import un from"./FilterNotice.js";import{MarkdownDocsModal as sn}from"../IntegrationTracking/ MarkdownDocsModal.js";import{TrackingBanner as cn}from"../IntegrationTracking/TrackingBanner.js";import{useModeTrackingStatus as vn}from"../IntegrationTracking/ useModeTrackingStatus.js";var pn=["#4F46E5","#64748B","#0F766E","#7C3AED","#475569"],gn="decision-advantage-l1",yn=function(n,e,i){return void 0===i&&(i="root"),null==n?void 0:n.find(function(n){return n.kpiId===e&&n.nodeKey===i})},hn=function(n){var e=n.split("-").map(Number),i=e[0],t=e[1],l=e[2];return new Date(i,t-1,l)};function mn(n){var e,i;if(!n)return null;var t=n,l="string"==typeof t.summary?t.summary:(null===(e=t.summary)||void 0===e?void 0:e.headline)||(null===(i=t.summary)||void 0===i?void 0:i.body)||t.executiveSummary||t.executive_summary||t.summaryText||t.summary_text;return(null==l?void 0:l.trim())||null}function fn(n){var e,i,t=N(n?function(e){return f(n.api,e)}:null,[null==n?void 0:n.api.configId,null==n?void 0:n.revision]),l=a(null),o=l[0],r=l[1];u(function(){var n,e;null===o&&((null===(n=t.data)||void 0===n?void 0:n.groups.length)?r((null!==(e=t.data.groups.find(function(n){return n.isDefault}))&&void 0!==e?e:t.data.groups[0]).groupKey):t.loading||r(""))},[o,t.data,t.loading]);var d=t.error||null===(e=t.data)||void 0===e?void 0:e.groups;return{groups:d,group:o,setGroup:r,days:null===(i=null==d?void 0:d.find(function(n){return n.groupKey===o}))||void 0===i?void 0:i.days}}function bn(e,i,t,l,o){void 0===l&&(l=[]);var r=N(e&&i.length&&null!==o?function(r){var a=n(n({},e.range),{workingDaysOnly:t,group:o||void 0}),d=i.slice(0,V);return D(e.api,a,l.length?{kpiIds:d,nodeKeys:l}:{kpiIds:d},r)}:null,[null==e?void 0:e.api.configId,null==e?void 0:e.rangeKey,i.join(","),l.join(","),t,o,null==e?void 0:e.revision]);return n(n({},r),{loading:r.loading||Boolean(e&&i.length&&null===o)})}function wn(l,o,r){var u,s,c,v,p,g,y,h,m,f,D,_,k=this,I=T(),C=a([]),x=C[0],O=C[1],L=null!==(u=null==I?void 0:I.headlineKpi)&&void 0!==u?u:null,A=d(function(){var n,i=null!==(n=null==I?void 0:I.tierKpis[1])&&void 0!==n?n:[];return L?e([L],i.filter(function(n){return n!==L}),!0):i},[I,L]),B=d(function(){var n;return null!==(n=null==I?void 0:I.tierKpis[2].filter(function(n){return n!==L}))&&void 0!==n?n:[]},[I,L]),R=bn(I,A,o,[],r),G=bn(I,B,o,[],r),F=bn(I,L&&x.length?[L]:[],o,x.map(function(n){return n.nodeKey}),r),P=null===(s=R.data)||void 0===s?void 0:s.context.filters,U="node"===(null==P?void 0:P.mode)&&"string"==typeof P.nodeKey?P.nodeKey:"root",H=null!=l?l:I?b(I.range.endDate):null,W=N(I&&H?function(n){return function(n,e,l,o){return i(this,void 0,void 0,function(){var i,r,a,d;return t(this,function(t){switch(t.label){case 0:return i=hn(e),[4,w(n,{startDate:i,endDate:i,filters:o},l)];case 1:return"generated"===(r=t.sent()).report.status?[2,r]:((a=new Date(i)).setDate(a.getDate()-6),[4,w(n,{startDate:a,endDate:i,filters:o},l)]);case 2:return[2,"generated"===(d=t.sent()).report.status?d:r]}})})}(I.api,H,n,I.range.filters)}:null,[null==I?void 0:I.api.configId,H,null==I?void 0:I.rangeKey,null==I?void 0:I.revision],"".concat(null!==(c=null==I?void 0:I.api.configId)&&void 0!==c?c:"",":").concat(null!=H?H:"",":").concat(null!==(v=null==I?void 0:I.rangeKey)&&void 0!==v?v:"")),q=N(I&&L?function(n){return i(k,void 0,void 0,function(){var e;return t(this,function(i){return e={nodeKey:"root",kpiId:L,startDate:b(I.range.startDate),endDate:b(I.range.endDate),filters:I.range.filters},[2,K(I.api,e,n)]})})}:null,[null==I?void 0:I.api.configId,null==I?void 0:I.rangeKey,L,null==I?void 0:I.revision]),z=d(function(){var n;return j(yn(null===(n=R.data)||void 0===n?void 0:n.series,L,U))},[R.data,L,U]),J=d(function(){var n,e,i,t,l=null!==(t=null!==(e=null===(n=q.data)||void 0===n?void 0:n.reportsByDay)&&void 0!==e?e:null===(i=q.data)||void 0===i?void 0:i.reports_by_day)&&void 0!==t?t:{},o=new Set(Object.keys(l).map(function(n){return n.slice(0,10)}));return z.filter(function(n){return o.has(n.day)||Boolean(n.reportId||n.criticality||n.movementType&&"stable"!==n.movementType)}).map(function(n){return n.day})},[z,q.data]),Q=N(I&&J.length?function(n){return i(k,void 0,void 0,function(){var e,l=this;return t(this,function(o){switch(o.label){case 0:return[4,Promise.all(J.map(function(e){return i(l,void 0,void 0,function(){var i,l;return t(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,w(I.api,{startDate:hn(e),endDate:hn(e),filters:I.range.filters},n)];case 1:return[2,"generated"===(i=t.sent()).report.status&&i.context.period.end.slice(0,10)===e?[e,i.report]:null];case 2:if(l=t.sent(),n.aborted)throw l;return[2,null];case 3:return[2]}})})}))];case 1:return e=o.sent(),[2,Object.fromEntries(e.filter(function(n){return Boolean(n)}))]}})})}:null,[null==I?void 0:I.api.configId,null==I?void 0:I.rangeKey,J.join(","),null==I?void 0:I.revision]),X=d(function(){var e,i,t,l,o=null!==(l=null!==(i=null===(e=q.data)||void 0===e?void 0:e.reportsByDay)&&void 0!==i?i:null===(t=q.data)||void 0===t?void 0:t.reports_by_day)&&void 0!==l?l:{},r=new Map(Object.entries(o).map(function(n){var e=n[0],i=n[1];return[e.slice(0,10),i]}));return z.map(function(e){var i,t,l,o=null!==(t=null===(i=Q.data)||void 0===i?void 0:i[e.day])&&void 0!==t?t:r.get(e.day),a="object"==typeof(null==o?void 0:o.summary)?o.summary:null;return o?n(n({},e),{headline:mn(o)||e.headline,reportId:o.reportId||e.reportId,criticality:(null==a?void 0:a.criticality)||e.criticality,commentCount:null!==(l=o.commentCount)&&void 0!==l?l:e.commentCount}):e})},[z,q.data,Q.data]),Y=d(function(){var n,i,t=A.slice(1).map(function(n,e){var i,t,l=yn(null===(i=R.data)||void 0===i?void 0:i.series,n,U);return l?{key:n,label:null!==(t=null==I?void 0:I.kpiLabel(n))&&void 0!==t?t:n,color:pn[e%pn.length],data:l.points.map(function(n){return{x:n.x,y:n.y}})}:null}),l=new Set(x.map(function(n){return n.nodeKey})),o=(null!==(i=null===(n=F.data)||void 0===n?void 0:n.series)&&void 0!==i?i:[]).filter(function(n){return l.has(n.nodeKey)}).map(function(n,e){var i;return{key:"row_".concat(n.nodeKey),label:null!==(i=n.label)&&void 0!==i?i:n.nodeKey,color:pn[(e+2)%pn.length],data:n.points.map(function(n){return{x:n.x,y:n.y}})}});return e(e([],t.filter(Boolean),!0),o,!0)},[A,R.data,U,F.data,x,I]),Z=null===l&&null!==I&&M(W.data,I),$=Z||null===(p=W.data)||void 0===p?void 0:p.report,nn=Z&&I?S(null===(g=W.data)||void 0===g?void 0:g.context,I.period.grain):null,en="generated"===(null==$?void 0:$.status),tn=null!==(D=null!==(m=null!==(h=en?E(null===(y=W.data)||void 0===y?void 0:y.context):null)&&void 0!==h?h:l)&&void 0!==m?m:null===(f=e([],X,!0).reverse().find(function(n){return null!=n.value}))||void 0===f?void 0:f.day)&&void 0!==D?D:null,ln=null!==(_=X.find(function(n){return n.day===(null!=l?l:tn)}))&&void 0!==_?_:l?void 0:e([],X,!0).reverse().find(function(n){return null!=n.value});return{insights:I,headline:L,tier2:B,trend:R,activity:G,seriesNodeKey:U,summary:W,report:$,generated:en,outOfRange:Z,emptyText:nn,reportDay:tn,points:X,dayPoint:ln,extraLines:Y,graphed:x,toggleGraphed:function(n){return O(function(i){return i.some(function(e){return e.nodeKey===n.nodeKey})?i.filter(function(e){return e.nodeKey!==n.nodeKey}):i.length<V?e(e([],i,!0),[n],!1):i})}}}function Dn(e){var r,d=this,u=e.dataDay,s=T(),c=a(null),v=c[0],p=c[1],g=a(null),y=g[0],h=g[1];if(O(v,null!==(r=null==s?void 0:s.api)&&void 0!==r?r:null,function(){p(null),null==s||s.refresh()}),!(null==s?void 0:s.viewer.isAdmin))return null;return l("span",{children:[l("button",n({type:"button",className:"ins-link",disabled:Boolean(v),onClick:function(){return i(d,void 0,void 0,function(){var n,e;return t(this,function(i){switch(i.label){case 0:h(null),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,k(s.api,{dataDay:u,window:"day"})];case 2:return(n=i.sent()).jobId?p(n.jobId):s.refresh(),[3,4];case 3:return e=i.sent(),h(I(e,"The report couldn't be rerun.")),[3,4];case 4:return[2]}})})},title:"Writes the summary, Root Cause and Next Steps again together, so they agree"},{children:[o("span",n({"aria-hidden":"true"},{children:"↻"})),v?"Rerunning…":"Rerun RCA"]})),y?o("span",n({className:"ins-error"},{children:y})):null]})}function Kn(e){var i,t,r=e.l1,d=e.children,s=e.onOpenDriver,c=e.attention,v=void 0!==c&&c,p=r.insights,g=r.headline,y=r.summary,h=r.report,m=r.reportDay,f=r.dayPoint,w=r.emptyText,D=a(!0),K=D[0],_=D[1];if(u(function(){var n=window.setTimeout(function(){return _(!1)},3500);return function(){return window.clearTimeout(n)}},[]),!p)return null;var k=p.goodDirection(null!=g?g:""),T=y.loading&&!y.data,I="string"==typeof(null===(t=null===(i=y.data)||void 0===i?void 0:i.context.filters)||void 0===t?void 0:t.nodeKey)?y.data.context.filters.nodeKey:"root",N=null!=m?m:W(b(p.range.endDate),p.period.grain);return l("div",n({className:"ag-stack"},{children:[l("div",{children:[o($,{title:"Summary",action:o(F,{dataDay:m})}),o("div",n({className:K?"ins-summary-section ins-summary-section--highlighted":"ins-summary-section"},{children:o(P,{report:h,loading:T,error:y.error,movementType:f?f.movementType:void 0,direction:null==f?void 0:f.direction,good:k,emptyText:w})}))]}),o(U,{report:h,error:y.error,loading:T,emptyText:w}),p.filtersActive&&"none"===(null==h?void 0:h.status)&&g?o("button",n({type:"button",className:"ins-link",onClick:function(){return p.openReport({nodeKey:I,kpiId:g,dataDay:N,title:"L1 Report"})}},{children:"Write report"})):null,m&&!T?o(H,{dataDay:m,title:"Top Drivers",graphed:r.graphed.map(function(n){return n.nodeKey}),onToggleGraph:r.toggleGraphed,onOpenDriver:s,onDecisionSettled:y.reload,initialTab:v?"attention":"drivers"}):null,d]}))}function _n(n){var e=n.l1,i=e.insights,t=e.headline,l=e.trend,r=e.dayPoint;if(!i)return null;if(l.loading)return o(nn,{});if(!r)return null;var a=t?i.kpiLabel(t):"Value";return o(en,{dashboardKpiCards:i.dashboardKpiCards,dailyLabel:"".concat(i.period.adjective," ").concat(a),daily:r.value,fast:r.fast,slow:r.slow,long:r.long,windows:i.windows,good:i.goodDirection(null!=t?t:""),format:function(n){return i.formatKpi(t,n)},kpiLabel:a})}function kn(e){var i=e.l1,t=e.highlightDay,l=e.onOpenDay,r=e.onOpenAttention,a=i.insights,d=i.headline,u=i.trend,s=i.points,c=i.extraLines;if(!a)return null;if(u.loading)return o(tn,{height:300,label:"Loading trend"});if(u.error)return o("div",n({className:"ag-empty"},{children:"The trend is unavailable right now."}));var v=d?a.kpiLabel(d):"Value";return o(L,{points:s,label:v,good:a.goodDirection(null!=d?d:""),windows:a.windows,kpiId:d,extraLines:c,highlightDay:t,syncId:gn,onOpenDay:d?l:void 0,onOpenAttention:r})}function Tn(n){var i,t,a,d,u,c,v,p=n.l1,g=n.highlightDay,y=n.onOpenDay,h=p.insights,m=p.headline,f=p.tier2,b=p.extraLines,w=p.points,D="decision-advantage-kpis-".concat(s());if(!h)return null;var K=null===(i=h.decisionAdvantage)||void 0===i?void 0:i.trendChart,_=e([m],h.tierKpis[1].filter(function(n){return n!==m}),!0).filter(function(n){return Boolean(n)}),k=b.filter(function(n){return n.key.startsWith("row_")});return l(r,{children:[o(B,{section:null==K?void 0:K.primary,fallbackKpis:_.slice(0,1),defaultAverageKpis:_.slice(0,1),chartTitle:null!==(a=null===(t=null==K?void 0:K.primary)||void 0===t?void 0:t.title)&&void 0!==a?a:h.labels.trendChartTitle||void 0,extraLines:k,highlightDay:g,onOpenDay:m?y:void 0,storyOf:function(n){var e=w.find(function(e){return e.day===n});return e&&(e.headline||e.movementType&&"stable"!==e.movementType||e.criticality)?e:null},syncId:D}),f.length||(null===(u=null===(d=null==K?void 0:K.secondary)||void 0===d?void 0:d.defaultKpis)||void 0===u?void 0:u.length)?o(B,{section:null==K?void 0:K.secondary,fallbackKpis:f.slice(0,3),chartTitle:null!==(v=null===(c=null==K?void 0:K.secondary)||void 0===c?void 0:c.title)&&void 0!==v?v:h.labels.activityTitle,showMovement:!1,height:230,syncId:D}):null]})}function In(e){var i,t,l=e.l1,r=l.insights,a=l.tier2,d=l.activity,u=l.seriesNodeKey;return r&&a.length?d.loading?o(tn,{height:220,label:"Loading user activity"}):d.error?o("div",n({className:"ag-empty"},{children:"User activity is unavailable right now."})):o(A,{items:(null!==(t=null===(i=d.data)||void 0===i?void 0:i.series)&&void 0!==t?t:[]).filter(function(n){return n.nodeKey===u}),labelOf:r.kpiLabel,goodOf:r.goodDirection,syncId:gn},a.join(",")):null}var Nn=function(e,i){var t;return(null===(t=null==e?void 0:e.defaultKpis)||void 0===t?void 0:t.length)&&!i.some(function(n){return e.defaultKpis.includes(n)})?n(n({},e),{defaultKpis:void 0,defaultAverages:void 0}):e};function Cn(u){var c,v,p,g,y,h,m,f=this,w=u.nodeKey,D=u.label,k=u.kpiId,I=u.dataDay,C=u.tier2Kpis,x=u.show,O=void 0===x?{}:x,R=u.onOpenDay,M=O.trend,S=void 0===M||M,E=O.activity,F=void 0===E||E,P=O.correlation,U=void 0===P||P,H=T(),V=a(!1),W=V[0],z=V[1],J=vn(D||w,"EntityDetailVisualsActivity",null===(c=null==H?void 0:H.api)||void 0===c?void 0:c.accessToken,null==H?void 0:H.eventsBaseUrl,null==H?void 0:H.intervalDays),Q=J.showBanner,X=J.message,Y=null===(v=null==H?void 0:H.decisionAdvantage)||void 0===v?void 0:v.trendChart,ln=Boolean(null==Y?void 0:Y.dualAxis),on="decision-advantage-drill-".concat(s()),rn=a(Boolean(null==H?void 0:H.defaultWorkingDays)),un=rn[0],pn=rn[1],gn=fn(H),hn=bn(H,[k],un,[w],gn.group),wn=null!==(p=null!=C?C:null==H?void 0:H.tierKpis[2])&&void 0!==p?p:[],Dn=bn(H,ln?[]:wn,un,[w],gn.group),Kn=yn(null===(g=hn.data)||void 0===g?void 0:g.series,k,w),_n=d(function(){return j(Kn)},[Kn]),kn=N(H?function(n){return K(H.api,{nodeKey:w,kpiId:k,startDate:b(H.range.startDate),endDate:b(H.range.endDate),filters:H.range.filters},n)}:null,[null==H?void 0:H.api.configId,null==H?void 0:H.rangeKey,w,k,null==H?void 0:H.revision]),Tn=d(function(){var n,e,i,t,l=null!==(t=null!==(e=null===(n=kn.data)||void 0===n?void 0:n.reportsByDay)&&void 0!==e?e:null===(i=kn.data)||void 0===i?void 0:i.reports_by_day)&&void 0!==t?t:{},o=new Set(Object.keys(l).map(function(n){return n.slice(0,10)}));return _n.filter(function(n){return o.has(n.day)||Boolean(n.reportId||n.criticality||n.movementType&&"stable"!==n.movementType)}).map(function(n){return n.day})},[_n,kn.data]),In=N(H&&Tn.length?function(n){return i(f,void 0,void 0,function(){var e,l=this;return t(this,function(o){switch(o.label){case 0:return[4,Promise.all(Tn.map(function(e){return i(l,void 0,void 0,function(){var i,l,o;return t(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,_(H.api,w,{kpiId:k,dataDay:e},n)];case 1:return[2,"generated"===(i=t.sent()).report.status&&(null===(o=i.period)||void 0===o?void 0:o.end.slice(0,10))===e?[e,i.report]:null];case 2:if(l=t.sent(),n.aborted)throw l;return[2,null];case 3:return[2]}})})}))];case 1:return e=o.sent(),[2,Object.fromEntries(e.filter(function(n){return Boolean(n)}))]}})})}:null,[null==H?void 0:H.api.configId,null==H?void 0:H.rangeKey,w,k,Tn.join(","),null==H?void 0:H.revision]),Cn=d(function(){return _n.map(function(e){var i,t,l=null===(i=In.data)||void 0===i?void 0:i[e.day],o=null==l?void 0:l.summary;return l?n(n({},e),{headline:mn(l)||e.headline,reportId:l.reportId||e.reportId,criticality:(null==o?void 0:o.criticality)||e.criticality,commentCount:null!==(t=l.commentCount)&&void 0!==t?t:e.commentCount}):e})},[_n,In.data]),xn=null!==(y=Cn.find(function(n){return n.day===I}))&&void 0!==y?y:e([],Cn,!0).reverse().find(function(n){return null!=n.value});if(!H)return null;var On=H.goodDirection(k),jn=null!=(null==xn?void 0:xn.fast)&&null!=xn.slow&&0!==xn.slow?(xn.fast-xn.slow)/Math.abs(xn.slow)*100:null,Ln=null!=(null==xn?void 0:xn.slow)&&null!=xn.long&&0!==xn.long?(xn.slow-xn.long)/Math.abs(xn.long)*100:null,An=dn(jn,On),Bn=dn(Ln,On);return l("div",n({className:"ag-stack"},{children:[S?l(r,{children:[l("section",{children:[o($,{title:"Averages"}),hn.loading?o(nn,{}):xn?o(en,{fast:xn.fast,slow:xn.slow,long:xn.long,windows:H.windows,good:On,format:function(n){return H.formatKpi(k,n)},kpiLabel:H.kpiLabel(k)}):o("div",n({className:"ag-empty"},{children:"No averages are available for this selection."})),xn?l("div",n({className:"ag-average-details"},{children:[l("span",{children:[o("i",n({className:"good"===An?"ag-text--good":"bad"===An?"ag-text--bad":void 0},{children:null==jn?"—":jn<0?"↓":"↑"}))," ",q(H.windows.fast,H.windows.unit)," vs ",q(H.windows.slow,H.windows.unit)," avg: ",o("b",{children:null==jn?"—":"".concat(jn>0?"+":"").concat(jn.toFixed(1),"%")})]}),l("span",{children:[o("i",n({className:"good"===Bn?"ag-text--good":"bad"===Bn?"ag-text--bad":void 0},{children:null==Ln?"—":Ln<0?"↓":"↑"}))," ",q(H.windows.slow,H.windows.unit)," vs ",q(H.windows.long,H.windows.unit)," avg: ",o("b",{children:null==Ln?"—":"".concat(Ln>0?"+":"").concat(Ln.toFixed(1),"%")})]})]})):null]}),ln?o(B,{section:Nn(null==Y?void 0:Y.primary,[k]),fallbackKpis:[k],defaultAverageKpis:[k],chartTitle:H.labels.trendTitle,nodeKey:w,highlightDay:I,onOpenDay:R,storyOf:function(n){var e=Cn.find(function(e){return e.day===n});return e&&(e.headline||e.movementType&&"stable"!==e.movementType||e.criticality)?e:null},syncId:on},"trend:".concat(w)):o(an,n({title:H.labels.trendTitle,action:o(Z,{value:un,onChange:pn,groups:gn.groups,group:gn.group,onGroupChange:gn.setGroup})},{children:hn.error?o("div",n({className:"ag-empty"},{children:"The trend is unavailable right now."})):hn.loading?o(tn,{height:300,label:"Loading trend"}):o(L,{points:Cn,label:H.kpiLabel(k),good:On,windows:H.windows,kpiId:k,highlightDay:I,onOpenDay:R?function(n){return R(n.day)}:void 0,syncId:on,syncMethod:"value"})}))]}):null,F&&wn.length&&ln?l(r,{children:[Q&&o(cn,{message:X,onHowToIntegrate:function(){return z(!0)}}),o(B,{section:Nn(null==Y?void 0:Y.secondary,wn),fallbackKpis:wn.slice(0,3),chartTitle:"".concat(H.labels.activityTitle," · ").concat(D),nodeKey:w,showMovement:!1,height:230,syncId:on},"activity:".concat(w))]}):F&&wn.length?l(an,n({title:H.labels.activityTitle,meta:D},{children:[Q&&o(cn,{message:X,onHowToIntegrate:function(){return z(!0)}}),Dn.error?o("div",n({className:"ag-empty"},{children:"User activity is unavailable right now."})):Dn.loading?o(tn,{height:220,label:"Loading user activity"}):o(A,{items:(null!==(m=null===(h=Dn.data)||void 0===h?void 0:h.series)&&void 0!==m?m:[]).filter(function(n){return n.nodeKey===w}),labelOf:H.kpiLabel,goodOf:H.goodDirection,syncId:on,syncMethod:"value"})]})):null,U?o(G,{dataDay:I,nodeKey:w,kpiId:k,dayGroup:gn.days}):null,o(sn,{open:W,onClose:function(){return z(!1)}})]}))}function xn(e){var i=e.eyebrow,t=e.title,r=e.children;return l("section",n({className:"ag-popup__section"},{children:[l("div",n({className:"ag-popup__head"},{children:[o("p",n({className:"ag-popup__eyebrow"},{children:i})),o("h3",n({className:"ag-popup__title"},{children:t}))]})),r]}))}function On(i){var t,d,s,g,y,f,b,w,D,K,_,k,I,N,O=i.day,j=i.workingDays,L=i.initialAttention,A=void 0!==L&&L,B=i.initialDriver,R=void 0===B?null:B,M=i.onClose,S=i.showActivityBanner,E=i.activityBannerMessage,F=i.onHowToIntegrate,P=a(O),U=P[0],H=P[1],V=a(j),W=V[0],q=V[1],$=a(R),nn=$[0],en=$[1],tn=a([]),dn=tn[0],un=tn[1],sn=a(A),vn=sn[0],pn=sn[1],gn=T(),yn=function(n){var e,i,t;n&&gn&&!gn.matchDrillLevel(null!==(e=n.entityKey)&&void 0!==e?e:"",[])?gn.openReport({reportId:null===(i=n.report)||void 0===i?void 0:i.reportId,nodeKey:n.nodeKey,kpiId:null!==(t=gn.headlineKpi)&&void 0!==t?t:void 0,dataDay:U,title:n.label}):(en(n),un([]))},hn=fn(gn),mn=wn(U,W,hn.group),bn=c(null),Nn=c(null),Cn=C(M,bn);x(Nn,nn?e([nn.nodeKey],dn.map(function(n){return n.nodeKey}),!0).join(">"):""),u(function(){H(O),en(R),pn(A)},[O,A,R]);var On=mn.insights,jn=mn.headline,Ln=mn.report,An=mn.generated,Bn=mn.summary,Rn=mn.reportDay,Gn=mn.dayPoint;if(!On)return null;var Mn=An?null==Ln?void 0:Ln.summary:null,Sn=null!==(t=null==Mn?void 0:Mn.criticality)&&void 0!==t?t:null,En=null!==(s=null!==(d=null==Mn?void 0:Mn.movementType)&&void 0!==d?d:null==Gn?void 0:Gn.movementType)&&void 0!==s?s:null,Fn=null!==(y=null!==(g=null==Gn?void 0:Gn.direction)&&void 0!==g?g:null==Mn?void 0:Mn.movementDirection)&&void 0!==y?y:null,Pn=An&&Rn&&Rn!==U;return o("div",n({className:Cn,role:"presentation",onMouseDown:function(n){return n.target===n.currentTarget&&M()}},{children:l("div",n({ref:Nn,className:"ag-modal__dialog",role:"dialog","aria-modal":"true","aria-labelledby":"ag-l1-modal-title"},{children:[l("header",n({className:"ag-modal__head"},{children:[l("div",nn?n({className:"ag-modal__detail-title"},{children:[l("div",n({className:"ag-modal__breadcrumb"},{children:[o("button",n({type:"button",onClick:function(){return yn(null)}},{children:"Top drivers"})),e([{nodeKey:nn.nodeKey,label:nn.label}],dn,!0).map(function(e,i,t){return l(v,{children:[o(h,{"aria-hidden":"true"}),i===t.length-1?o("strong",n({id:"ag-l1-modal-title"},{children:e.label})):o("button",n({type:"button",onClick:function(){return un(dn.slice(0,i))}},{children:e.label}))]},"".concat(e.nodeKey,"-").concat(i))})]})),o("span",n({className:"ag-modal__date"},{children:Y(U,On.period.grain)}))]}):n({className:"ag-modal__titles"},{children:[l("h2",n({id:"ag-l1-modal-title",className:"ag-modal__title"},{children:[o(p,{"aria-hidden":"true"}),"L1 Report"]})),o("span",n({className:"ag-modal__date"},{children:Y(null!=Rn?Rn:U,On.period.grain)})),!Bn.loading||Bn.data?l(r,{children:[o(ln,{criticality:Sn,compact:!1}),o(on,{movementType:En,direction:Fn,good:On.goodDirection(null!=jn?jn:"")})]}):null,jn?o(Dn,{dataDay:null!=Rn?Rn:U}):null]})),o("button",n({ref:bn,type:"button",className:"ag-modal__close","aria-label":"Close",onClick:M},{children:o(m,{"aria-hidden":"true"})}))]})),l("div",n({className:"ag-modal__body"},{children:[Pn?l("p",n({className:"ag-modal__notice"},{children:["No report was written for ",Y(U,On.period.grain),". Showing the latest one before it, from ",Y(Rn,On.period.grain),"."]})):null,nn&&jn?function(){var n,i=e([Q(On,nn,jn)],dn,!0),t=i[i.length-1],l=null!==(n=On.matchDrillLevel(t.entityKey,i.slice(0,-1).map(function(n){return n.entityKey})))&&void 0!==n?n:X;return o(J,{trail:i,level:l,kpiId:jn,dataDay:U,reportDay:U,onReportDay:H,onOpen:function(n){return un(e(e([],dn,!0),[n],!1))}})}():l("div",n({className:"ag-popup"},{children:[o(xn,n({eyebrow:"Analysis",title:"Summary, Categories & RCA"},{children:o(Kn,n({l1:mn,onOpenDriver:yn,attention:vn},{children:An&&(null==Ln?void 0:Ln.reportId)?o(rn,n({title:"Comments".concat(Ln.commentCount?" (".concat(Ln.commentCount,")"):""),defaultExpanded:!1},{children:o(z,{reportId:Ln.reportId})})):null}))})),o(xn,n({eyebrow:"Visuals",title:"L1 Trend"},{children:l("div",n({className:"ag-stack"},{children:[o(_n,{l1:mn}),(null===(w=null===(b=null===(f=mn.insights)||void 0===f?void 0:f.decisionAdvantage)||void 0===b?void 0:b.trendChart)||void 0===w?void 0:w.dualAxis)?o(Tn,{l1:mn,highlightDay:U,onOpenDay:function(n){H(n),en(null),pn(!1)}}):l(r,{children:[o(an,n({title:null!==(K=null===(D=mn.insights)||void 0===D?void 0:D.labels.trendTitle)&&void 0!==K?K:"Trend",action:o(Z,{value:W,onChange:q,groups:hn.groups,group:hn.group,onGroupChange:hn.setGroup})},{children:o(kn,{l1:mn,highlightDay:U,onOpenDay:function(n){H(n.day),en(null),pn(!1)},onOpenAttention:function(n){H(n.day),en(null),pn(!0)}})})),mn.tier2.length?l(an,n({title:null!==(k=null===(_=mn.insights)||void 0===_?void 0:_.labels.activityTitle)&&void 0!==k?k:"User Activity",meta:null!==(N=null===(I=mn.insights)||void 0===I?void 0:I.labels.platformScope)&&void 0!==N?N:"Platform-wide"},{children:[S&&o(cn,{message:E,onHowToIntegrate:F}),o(In,{l1:mn})]})):null]}),o(G,{dataDay:U,dayGroup:hn.days})]}))}))]}))]}))]}))}))}function jn(){var e,i,t,u,s,c,v,h,m=T(),f=a(Boolean(null==m?void 0:m.defaultWorkingDays)),b=f[0],w=f[1],D=fn(m),K=a(!1),_=K[0],k=K[1],I=a(null),N=I[0],C=I[1],x=a(!1),O=x[0],j=x[1],L=wn(null,b,D.group),A=d(function(){var n=(null==m?void 0:m.sidebarFilters)||{},e=Object.keys(n).find(function(n){return n.toLowerCase().includes("mode")||n.toLowerCase().includes("application")});return e?n[e]:void 0},[null==m?void 0:m.sidebarFilters]),B=vn(A,"L1UserActivity",null===(e=null==m?void 0:m.api)||void 0===e?void 0:e.accessToken,null==m?void 0:m.eventsBaseUrl,null==m?void 0:m.intervalDays),M=B.showBanner,S=B.message;if(!m)return null;var E=L.headline,F=L.reportDay,P=L.summary,U=E?m.kpiLabel(E):"Value",H=null===(t=null===(i=P.data)||void 0===i?void 0:i.context.filters)||void 0===t?void 0:t.label,V=Boolean(null===(s=null===(u=m.decisionAdvantage)||void 0===u?void 0:u.trendChart)||void 0===s?void 0:s.dualAxis);return l("section",n({className:"ag-report","aria-labelledby":"ag-l1-title"},{children:[l("div",n({className:"ag-report__header"},{children:[l("h2",n({id:"ag-l1-title",className:"ag-report__title"},{children:[o(p,{"aria-hidden":"true"}),H?"L1 Report · ".concat(H):"L1 Report"]})),P.loading&&!P.data?o("span",{className:"ag-skel__line ag-report__date-skel","aria-hidden":"true"}):F?o("span",n({className:"ag-report__date"},{children:!L.outOfRange&&(null===(v=null===(c=P.data)||void 0===c?void 0:c.context.period)||void 0===v?void 0:v.label)||Y(F,m.period.grain)})):null]})),o(un,{context:null===(h=P.data)||void 0===h?void 0:h.context}),l("div",n({className:"ag-report__grid"},{children:[o("div",n({className:"ag-report__analysis-scroll",role:"region","aria-label":"L1 report analysis",tabIndex:0},{children:o(Kn,{l1:L,onOpenDriver:function(n){var e,i;F&&(m.matchDrillLevel(null!==(e=n.entityKey)&&void 0!==e?e:"",[])?C({day:F,attention:!1,driver:n}):m.openReport({reportId:null===(i=n.report)||void 0===i?void 0:i.reportId,nodeKey:n.nodeKey,kpiId:null!=E?E:void 0,dataDay:F,title:n.label}))}})})),l("div",n({className:"ag-stack"},{children:[l("section",n({className:"ag-trend-card"},{children:[l("header",n({className:"ag-trend-card__head"},{children:[o("span",n({className:"ag-trend-card__icon"},{children:o(g,{"aria-hidden":"true"})})),l("div",n({className:"ag-trend-card__titles"},{children:[o("h3",{children:m.labels.trendCardTitle.replace("{kpi}",R(U))}),o("p",{children:m.labels.trendCardSubtitle.replace("{kpi}",U)})]})),o("button",n({type:"button",className:"ag-icon-button","aria-label":_?"Expand trend":"Collapse trend","aria-expanded":!_,onClick:function(){return k(function(n){return!n})}},{children:o(y,{"aria-hidden":"true",className:_?"is-closed":"is-open"})}))]})),_?null:l("div",n({className:"ag-trend-card__body"},{children:[o("div",n({className:"ag-trend-card__tools"},{children:o(Z,{value:b,onChange:w,groups:D.groups,group:D.group,onGroupChange:D.setGroup})})),o(_n,{l1:L}),V?o(Tn,{l1:L,highlightDay:F,onOpenDay:function(n){return C({day:n,attention:!1})}}):l(r,{children:[m.labels.trendChartTitle?o($,{title:m.labels.trendChartTitle}):null,o(kn,{l1:L,highlightDay:F,onOpenDay:function(n){return C({day:n.day,attention:!1})},onOpenAttention:function(n){return C({day:n.day,attention:!0})}}),L.tier2.length?l("div",n({className:"ag-trend-card__activity"},{children:[o($,{title:m.labels.activityTitle,meta:m.labels.platformScope}),M&&o(cn,{message:S,onHowToIntegrate:function(){return j(!0)}}),o(In,{l1:L})]})):null]})]}))]})),o(G,{dataDay:F,dayGroup:D.days})]}))]})),N?o(On,{day:N.day,workingDays:b,initialAttention:N.attention,initialDriver:N.driver,onClose:function(){return C(null)},showActivityBanner:M,activityBannerMessage:S,onHowToIntegrate:function(){return j(!0)}}):null,o(sn,{open:O,onClose:function(){return j(!1)},integrationDocs:null==m?void 0:m.integrationDocs})]}))}export{Cn as EntityDetailVisuals,On as L1ReportModal,jn as default};
|
|
2
|
+
//# sourceMappingURL=L1Report.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"L1Report.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__spreadArray as n,__assign as e,__awaiter as t,__generator as a}from"../../../_virtual/_tslib.js";import{jsxs as i,jsx as l,Fragment as o}from"react/jsx-runtime";import{useState as r,useMemo as c}from"react";import{Check as s,X as d,AlertTriangle as u,RotateCcw as h,ChevronDown as v}from"lucide-react";import{fetchObservations as g,fetchNeedsAttention as p,decideObservation as f}from"../../api/insightsApi.js";import{useInsights as m}from"./insightsContextCore.js";import{insightsErrorText as _}from"./insightsErrors.js";import{useInsightsFetch as b,useJob as w,formatValue as y}from"./insightsUtils.js";var N={pending:"Not counted",flagged:"Counted · flagged",accepted:"Accepted",rejected:"Rejected"};function k(t){var a,i,l,o,r,c="object"==typeof t.context&&t.context?t.context:{},s=Object.entries(e(e({},null!==(a=t.dimensions)&&void 0!==a?a:{}),c)).map(function(n){var e=n[0],t=n[1];return[e,null==t?"":String(t).trim()]}).filter(function(n){var e,t=n[0],a=n[1];return""!==a&&(e=a,!(/(^|_)id$/.test(t)||/^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(e)))}),d=function(n,e){return s.find(function(t){var a=t[0];return!e.includes(a)&&n(a)})},u=d(function(n){return/user.*name|name.*user|reviewer|author/.test(n)},[]),h=d(function(n){return/email|user/.test(n)},u?[u[0]]:[]),v=null!=u?u:h,g=[null==v?void 0:v[0],null==u?void 0:u[0],null==h?void 0:h[0]].filter(Boolean),p=s.filter(function(n){var e=n[0];return!g.includes(e)&&/description|comment|feedback|reason|text|note|title/.test(e)}),f="string"==typeof t.context&&t.context?t.context:null!==(l=null===(i=n([],p,!0).sort(function(n,e){return e[1].length-n[1].length})[0])||void 0===i?void 0:i[1])&&void 0!==l?l:null,m=p.map(function(n){return n[0]}),_=d(function(n){return/_name$/.test(n)&&!m.includes(n)},g),b=s.filter(function(e){var t=e[0];return!n(n(n([],g,!0),m,!0),[null==_?void 0:_[0]],!1).includes(t)});return{who:null!==(o=null==v?void 0:v[1])&&void 0!==o?o:null,where:null!==(r=null==_?void 0:_[1])&&void 0!==r?r:null,text:f,rest:b}}function j(n,e,t){var a,i=m(),l=null!==(a=null!=t?t:null==i?void 0:i.headlineKpi)&&void 0!==a?a:void 0;return b(i?function(t){return p(i.api,{dataDay:n,kpiId:l,nodeKey:e,filters:i.range.filters},t)}:null,[null==i?void 0:i.api.configId,null==i?void 0:i.rangeKey,n,e,l,null==i?void 0:i.revision])}var x=["pending","flagged","accepted","rejected"],I=function(n){return x.some(function(e){return e===n})};function C(p){var j,x,C,S,D,R,A,K,U,B,E,L,F,M,T,q=this,O=p.dataDay,P=p.nodeKey,W=p.kpiId,$=p.attention,z=p.onDecisionSettled,V=m(),Z=null===(j=$.data)||void 0===j?void 0:j.counts,G=r(null),H=G[0],J=G[1],Q=null!=H?H:Z&&!Z.pending&&Z.flagged?"flagged":"review",X=null!==(x=null!=W?W:null==V?void 0:V.headlineKpi)&&void 0!==x?x:void 0,Y=b(V&&"decided"===Q?function(n){return g(V.api,{dataDay:O,kpiId:X,nodeKey:P,limit:500,filters:V.range.filters},n)}:null,[null==V?void 0:V.api.configId,null==V?void 0:V.rangeKey,O,P,X,Q,null==V?void 0:V.revision]),nn=r(new Set),en=nn[0],tn=nn[1],an=r(null),ln=an[0],on=an[1],rn=r(""),cn=rn[0],sn=rn[1],dn=r(!1),un=dn[0],hn=dn[1],vn=r(null),gn=vn[0],pn=vn[1],fn=r(null),mn=fn[0],_n=fn[1],bn=r({}),wn=bn[0],yn=bn[1];w(mn,null!==(C=null==V?void 0:V.api)&&void 0!==C?C:null,function(){_n(null),null==z||z()});var Nn=c(function(){var n,e,t,a;if("decided"===Q)return(null!==(e=null===(n=Y.data)||void 0===n?void 0:n.observations)&&void 0!==e?e:[]).filter(function(n){return"accepted"===n.state||"rejected"===n.state});var i="review"===Q?"pending":"flagged";return(null!==(a=null===(t=$.data)||void 0===t?void 0:t.observations)&&void 0!==a?a:[]).filter(function(n){return n.state===i})},[Q,$.data,Y.data]),kn=c(function(){var e=new Map;return Nn.forEach(function(n){var t=k(n).who,a=null!=t?t:"—";e.has(a)||e.set(a,{who:t,rows:[]}),e.get(a).rows.push(n)}),Array.from(e.entries()).map(function(e){var t=e[0],a=e[1];return{key:t,who:a.who,rows:n([],a.rows,!0).sort(function(n,e){var t,a;return(null!==(t=n.value)&&void 0!==t?t:0)-(null!==(a=e.value)&&void 0!==a?a:0)})}}).sort(function(n,e){return e.rows.length-n.rows.length})},[Nn]);if(!V)return null;var jn=(null!==(S=null==Z?void 0:Z.pending)&&void 0!==S?S:0)+(null!==(D=null==Z?void 0:Z.flagged)&&void 0!==D?D:0)+(null!==(R=null==Z?void 0:Z.accepted)&&void 0!==R?R:0)+(null!==(A=null==Z?void 0:Z.rejected)&&void 0!==A?A:0),xn=null!==(U=null===(K=$.data)||void 0===K?void 0:K.filled)&&void 0!==U?U:[];if($.data&&!jn&&!xn.length&&!$.error)return null;var In=V.viewer.isAdmin,Cn=V.minReasonLength,Sn=X?V.kpiLabel(X):"Value",Dn=null!==(E=null===(B=Nn.find(function(n){return null!=n.baseline}))||void 0===B?void 0:B.baseline)&&void 0!==E?E:null,Rn=[{key:"review",label:"Needs a decision",count:null!==(L=null==Z?void 0:Z.pending)&&void 0!==L?L:0},{key:"flagged",label:"Counted, flagged",count:null!==(F=null==Z?void 0:Z.flagged)&&void 0!==F?F:0},{key:"decided",label:"Decided",count:(null!==(M=null==Z?void 0:Z.accepted)&&void 0!==M?M:0)+(null!==(T=null==Z?void 0:Z.rejected)&&void 0!==T?T:0)}],An=null!=Dn?" ".concat(y(Dn)):"",Kn="review"===Q?"Ratings far below the usual".concat(An," with no reason given. They are left out of the day's ").concat(Sn," until someone accepts them."):"flagged"===Q?"Far below the usual".concat(An,", but a reason was given, so they count. Listed so someone can take a look."):"Every decision is kept with who made it and why. Undo puts a point back to what the check said.",Un=function(n,e){on({ids:n,decision:e}),sn(""),pn(null)},Bn=function(i,l){return t(q,void 0,void 0,function(){var t,o,r,c,s,d,u,h;return a(this,function(v){switch(v.label){case 0:if("undo"!==l&&cn.trim().length<Cn)return[2];hn(!0),pn(null),t=0,o=null,r=null,c=function(i){var c,s;return a(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,f(V.api,i,l,"undo"===l?void 0:cn.trim())];case 1:return c=a.sent(),t+=1,$.updateData(function(t){return function(t,a){if(!t)return t;var i=t.observations.find(function(n){return n.observationId===a.observationId}),l=e({},t.counts);return i&&i.state!==a.state&&(I(i.state)&&(l[i.state]=Math.max(0,l[i.state]-1)),I(a.state)&&(l[a.state]+=1)),e(e({},t),{counts:l,observations:i?t.observations.map(function(n){return n.observationId===a.observationId?a:n}):n(n([],t.observations,!0),[a],!1)})}(t,c.observation)}),Y.updateData(function(n){return n?e(e({},n),{observations:n.observations.map(function(n){return n.observationId===c.observation.observationId?c.observation:n})}):n}),c.jobId&&(o=c.jobId),[3,3];case 2:return s=a.sent(),r=_(s,"The decision couldn't be saved."),[2,"break"];case 3:return[2]}})},s=0,d=i,v.label=1;case 1:return s<d.length?(u=d[s],[5,c(u)]):[3,4];case 2:if("break"===v.sent())return[3,4];v.label=3;case 3:return s++,[3,1];case 4:return hn(!1),t&&(on(null),tn(new Set),sn(""),o?_n(o):null==z||z()),h="accept"===l?"accepted":"reject"===l?"rejected":"put back",r?pn({tone:"error",text:t?"".concat(t," ").concat(h,". Then: ").concat(r):r}):t&&pn({tone:"info",text:o?"".concat(t," ").concat(1===t?"point":"points"," ").concat(h,". Recalculating the day and its summary…"):"".concat(t," ").concat(1===t?"point":"points"," ").concat(h,".")}),[2]}})})},En=function(n,t){return i("div",e({className:"ag-na__editor"},{children:[i("label",e({htmlFor:"ag-na-reason-".concat(n[0])},{children:["accept"===t?"Why should ":"Why leave ",n.length>1?"these ".concat(n.length," points"):"this point","accept"===t?" count?":" out?"]})),l("textarea",{id:"ag-na-reason-".concat(n[0]),value:cn,rows:2,autoFocus:!0,onChange:function(n){return sn(n.target.value)},placeholder:"accept"===t?"For example: verified with the user":"For example: test rating, nothing to act on"}),i("div",e({className:"ag-na__editor-foot"},{children:[i("span",e({className:cn.trim().length<Cn?"ag-na__count":"ag-na__count is-ok"},{children:[cn.trim().length," / ",Cn," characters"]})),l("button",e({type:"button",className:"ag-na__btn",onClick:function(){return on(null)},disabled:un},{children:"Cancel"})),l("button",e({type:"button",className:"ag-na__btn ag-na__btn--".concat(t),disabled:un||cn.trim().length<Cn,onClick:function(){return Bn(n,t)}},{children:un?"Saving…":"".concat("accept"===t?"Accept":"Reject").concat(n.length>1?" ".concat(n.length):"")}))]}))]}))},Ln="decided"===Q?Y.loading&&!Y.data:$.loading&&!$.data,Fn="decided"===Q?Y.error:$.error,Mn=In&&"decided"!==Q,Tn=Array.from(en).filter(function(n){return Nn.some(function(e){return e.observationId===n})});return i("section",e({className:"ag-na","aria-label":"Data points needing review"},{children:[i("header",e({className:"ag-na__head"},{children:[l("h4",{children:"Data points needing review"}),mn?l("span",e({className:"ag-na__working"},{children:"Recalculating…"})):null]})),l("div",e({className:"ag-na__tabs",role:"tablist","aria-label":"Data point states"},{children:Rn.map(function(n){return i("button",e({type:"button",role:"tab","aria-selected":Q===n.key,className:Q===n.key?"is-active":void 0,onClick:function(){return e=n.key,J(e),tn(new Set),on(null),void pn(null);var e}},{children:[n.label,l("span",e({className:"ag-na__pill".concat("review"===n.key&&n.count?" is-alert":"")},{children:n.count}))]}),n.key)})})),l("p",e({className:"ag-na__explain"},{children:Kn})),gn?l("p",e({className:"ag-na__msg ag-na__msg--".concat(gn.tone),role:"error"===gn.tone?"alert":"status"},{children:gn.text})):null,Mn&&Tn.length?i("div",e({className:"ag-na__bulk"},{children:[i("div",e({className:"ag-na__bulk-bar"},{children:[i("span",{children:[Tn.length," selected"]}),i("button",e({type:"button",className:"ag-na__btn ag-na__btn--accept",onClick:function(){return Un(Tn,"accept")}},{children:[l(s,{"aria-hidden":"true"}),"Accept"]})),i("button",e({type:"button",className:"ag-na__btn ag-na__btn--reject",onClick:function(){return Un(Tn,"reject")}},{children:[l(d,{"aria-hidden":"true"}),"Reject"]})),l("button",e({type:"button",className:"ag-na__link",onClick:function(){return tn(new Set)}},{children:"Clear"}))]})),ln&&ln.ids.length>1?En(ln.ids,ln.decision):null]})):null,Ln?i("div",e({className:"ag-na__skeleton","aria-busy":"true","aria-label":"Loading data points"},{children:[l("span",{}),l("span",{}),l("span",{})]})):Fn?l("p",e({className:"ag-na__msg ag-na__msg--error"},{children:Fn.message})):Nn.length?l("div",e({className:"ag-na__groups"},{children:kn.map(function(n){var t,a,r,c,g,p=null!==(t=wn[n.key])&&void 0!==t&&t,f=p?n.rows:n.rows.slice(0,3),m=n.rows.map(function(n){return n.value}).filter(function(n){return null!=n}),_=m.length?m.reduce(function(n,e){return n+e},0)/m.length:null,b=Boolean(n.who)&&n.rows.length>=3&&n.rows.length/Nn.length>=.25,w=n.rows.map(function(n){return n.observationId}),j=w.every(function(n){return en.has(n)});return i("div",e({className:"ag-na__group"},{children:[i("div",e({className:"ag-na__group-head"},{children:[Mn?l("input",{type:"checkbox",checked:j,"aria-label":"Select all ".concat(n.rows.length," from ").concat(null!==(a=n.who)&&void 0!==a?a:"this group"),onChange:function(){return tn(function(n){var e=new Set(n);return w.forEach(function(n){return j?e.delete(n):e.add(n)}),e})}}):null,l("span",e({className:"ag-na__avatar","aria-hidden":"true"},{children:(null!==(r=n.who)&&void 0!==r?r:"?").replace(/[^A-Za-z]/g,"").slice(0,2).toUpperCase()||"?"})),i("span",e({className:"ag-na__who",title:null!==(c=n.who)&&void 0!==c?c:void 0},{children:[l("strong",{children:null!==(g=n.who)&&void 0!==g?g:"Unknown source"}),i("small",{children:[n.rows.length," ",1===n.rows.length?"rating":"ratings",null!=_?" · average ".concat(y(Math.round(100*_)/100)):""]})]})),b?i("span",e({className:"ag-na__warn",title:"One person gave a large share of this day's low ratings"},{children:[l(u,{"aria-hidden":"true"}),"Many from one person"]})):null]})),l("ul",e({className:"ag-na__rows"},{children:f.map(function(n){var t,a,r,c,u=k(n),v=1===(null==ln?void 0:ln.ids.length)&&ln.ids[0]===n.observationId,g="accepted"===n.state||"rejected"===n.state;return i("li",e({className:"ag-na__row is-".concat(n.state)},{children:[i("div",e({className:"ag-na__row-main"},{children:[Mn?l("input",{type:"checkbox",checked:en.has(n.observationId),onChange:function(){return e=n.observationId,tn(function(n){var t=new Set(n);return t.has(e)?t.delete(e):t.add(e),t});var e},"aria-label":"Select ".concat(n.kpiLabel||Sn," ").concat(y(n.value)).concat(u.who?" from ".concat(u.who):"")}):null,i("span",e({className:"ag-na__score"},{children:[l("strong",{children:y(n.value)}),null!=n.deviationPct?i("small",{children:[Math.round(n.deviationPct),"%"]}):null]})),i("span",e({className:"ag-na__body"},{children:[i("span",e({className:"ag-na__line"},{children:[l("span",e({className:"ag-na__where"},{children:null!==(r=null!==(a=null!==(t=u.where)&&void 0!==t?t:n.label)&&void 0!==a?a:n.kpiLabel)&&void 0!==r?r:Sn})),l("span",e({className:"ag-na__state ag-na__state--".concat(n.state)},{children:null!==(c=N[n.state])&&void 0!==c?c:n.state}))]})),u.text?l("q",e({className:"ag-na__quote"},{children:u.text})):l("span",e({className:"ag-na__noreason"},{children:"No reason given"})),u.rest.length?l("span",e({className:"ag-na__meta"},{children:u.rest.map(function(n){var e,t=n[0],a=n[1];return i("span",{children:[(e=t,e.replace(/_/g," ").replace(/^./,function(n){return n.toUpperCase()})),": ",a]},t)})})):null,g?i("span",e({className:"ag-na__decided"},{children:[N[n.state],n.decidedByName||n.decidedByEmail?" by ".concat(n.decidedByName||n.decidedByEmail):"",n.decisionReason?": “".concat(n.decisionReason,"”"):""]})):null]})),In?l("span",e({className:"ag-na__actions"},{children:g?l("button",e({type:"button",className:"ag-na__icon","aria-label":"Undo this decision",title:"Undo",disabled:un,onClick:function(){return Bn([n.observationId],"undo")}},{children:l(h,{"aria-hidden":"true"})})):i(o,{children:[l("button",e({type:"button",className:"ag-na__icon ag-na__icon--accept","aria-label":"Accept: count this point",title:"Accept: count it","aria-pressed":v&&"accept"===(null==ln?void 0:ln.decision),onClick:function(){return Un([n.observationId],"accept")}},{children:l(s,{"aria-hidden":"true"})})),l("button",e({type:"button",className:"ag-na__icon ag-na__icon--reject","aria-label":"Reject: leave this point out",title:"Reject: leave it out","aria-pressed":v&&"reject"===(null==ln?void 0:ln.decision),onClick:function(){return Un([n.observationId],"reject")}},{children:l(d,{"aria-hidden":"true"})}))]})})):null]})),v&&ln?En([n.observationId],ln.decision):null]}),n.observationId)})})),n.rows.length>3?i("button",e({type:"button",className:"ag-na__more","aria-expanded":p,onClick:function(){return yn(function(t){var a;return e(e({},t),((a={})[n.key]=!p,a))})}},{children:[p?"Show less":"Show ".concat(n.rows.length-3," more"),l(v,{"aria-hidden":"true",className:p?"is-open":void 0})]})):null]}),n.key)})})):l("p",e({className:"ag-na__empty"},{children:"review"===Q?"Nothing waiting for a decision on this day.":"flagged"===Q?"No flagged points on this day.":"No decisions yet on this day."})),xn.length?i("div",e({className:"ag-na__filled"},{children:[l("strong",{children:"Shown with a stand-in"}),xn.map(function(n,e){return l("p",{children:n.message||"".concat(n.dataDay,": no data, a stand-in value is shown in gray.")},"".concat(n.dataDay,":").concat(e))})]})):null]}))}export{C as default,j as useNeedsAttention};
|
|
2
|
+
//# sourceMappingURL=NeedsAttention.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NeedsAttention.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__spreadArray as e,__assign as r,__awaiter as n,__generator as t}from"../../../_virtual/_tslib.js";import{jsx as i,jsxs as o,Fragment as a}from"react/jsx-runtime";import{useState as l,useRef as d,useEffect as s}from"react";import{PenLine as u,RefreshCw as c,ChevronUp as p,ChevronDown as m,X as h}from"lucide-react";import v from"react-markdown";import f from"remark-gfm";import{fetchInsightsReport as g,generateInsightsReport as k}from"../../api/insightsApi.js";import{InsightsSkeleton as b,InsightsStateCard as w,ReportView as y}from"./DecisionAdvantageCard.js";import I from"./CommentsThread.js";import{useInsights as _}from"./insightsContextCore.js";import{insightsErrorText as N}from"./insightsErrors.js";import{useInsightsFetch as C,useJob as j,shortDay as D,formatReportDate as A}from"./insightsUtils.js";function x(x){var L,R,T,E,K,B,W,F=this,M=x.target,O=x.onClose,P=_(),U=l(null!==(L=M.reportId)&&void 0!==L?L:null),q=U[0],z=U[1],G=l(null),H=G[0],J=G[1],Q=l(!1),S=Q[0],V=Q[1],X=l(null),Y=X[0],Z=X[1],$=l(!1),ee=$[0],re=$[1],ne=d(null);s(function(){var e;z(null!==(e=M.reportId)&&void 0!==e?e:null),J(null),V(!1),Z(null),re(!1)},[M]),s(function(){var e;null===(e=ne.current)||void 0===e||e.focus();var r=function(e){return"Escape"===e.key&&O()};return window.addEventListener("keydown",r),function(){return window.removeEventListener("keydown",r)}},[O]);var te=C(P&&q?function(e){return g(P.api,q,e)}:null,[q,null==P?void 0:P.api.configId,null==P?void 0:P.revision],"".concat(null!==(R=null==P?void 0:P.api.configId)&&void 0!==R?R:"",":").concat(null!=q?q:"")),ie=j(H,null!==(T=null==P?void 0:P.api)&&void 0!==T?T:null,function(e){J(null),e===q?te.reload():e&&z(e)});if(s(function(){ie.error&&Z(ie.error)},[ie.error]),!P)return null;var oe,ae=Boolean(M.nodeKey&&M.kpiId&&M.dataDay),le=function(e){return void 0===e&&(e=!1),n(F,void 0,void 0,function(){var n,i;return t(this,function(t){switch(t.label){case 0:if(!ae)return[2];Z(null),V(!0),t.label=1;case 1:return t.trys.push([1,3,4,5]),[4,k(P.api,r({nodeKey:M.nodeKey,kpiId:M.kpiId,dataDay:M.dataDay},e?{force:!0}:{}))];case 2:return"report"===(n=t.sent()).kind?(J(null),n.report.reportId===q?te.reload():z(n.report.reportId)):J(n.jobId),[3,5];case 3:return i=t.sent(),J(null),Z(429===(null==(o=i)?void 0:o.status)&&"RateLimited"!==o.errorType?o.message:N(o,"The report couldn't be written.")),[3,5];case 4:return V(!1),[7];case 5:return[2]}var o})})},de=M.title||[M.kpiId?P.kpiLabel(M.kpiId):"",M.dataDay?D(M.dataDay):""].filter(Boolean).join(" · ")||"Decision Advantage",se=te.loading?void 0:te.data,ue=P.levelOf(null===(E=null==se?void 0:se.node)||void 0===E?void 0:E.entityKey),ce=se?e(e(["L".concat(ue," report")],ue>1&&(null===(K=se.node)||void 0===K?void 0:K.label)?[se.node.label]:[],!0),M.kpiId?[P.kpiLabel(M.kpiId)]:[],!0).join(" · "):de,pe=S||Boolean(H&&"failed"!==ie.status);return oe=q?te.error?i(w,{title:"Decision Advantage",heading:"Couldn't load the report",text:te.error.message,action:o("button",r({type:"button",className:"ins-link",onClick:te.reload},{children:[i(c,{"aria-hidden":"true"})," Try again"]}))}):se?o(a,{children:[i(y,{report:se.report,title:"Decision Advantage",onRetry:te.reload}),ae?o("button",r({type:"button",className:"ins-link",disabled:pe,onClick:function(){return le(!0)}},{children:[i(c,{"aria-hidden":"true"})," ",pe?"Rerunning…":"Rerun RCA"]})):null,se.markdown?o("section",r({className:"ins-drawer__text"},{children:[o("button",r({type:"button",className:"ins-drawer__text-toggle","aria-expanded":ee,onClick:function(){return re(function(e){return!e})}},{children:["Full report ",i(ee?p:m,{"aria-hidden":"true"})]})),ee?i("div",r({className:"ins-drawer__markdown"},{children:i(v,r({remarkPlugins:[f]},{children:se.markdown}))})):null]})):null,se.report.reportId&&"generated"===se.report.status?i(I,{reportId:se.report.reportId}):null]}):i(b,{title:"Decision Advantage"}):pe?i(b,{title:"Writing the report…"}):i(w,{title:"Decision Advantage",icon:i(u,{"aria-hidden":"true"}),heading:"No report for this change yet",text:ae?"Reports are written automatically for the biggest changes. Ask the AI to write one for this change now; it takes a minute or two.":"There's no report for this change.",action:ae?o("button",r({type:"button",className:"ins-button",onClick:function(){return le()}},{children:[i(u,{"aria-hidden":"true"})," Write report"]})):null}),i("div",r({className:"ins-drawer",role:"presentation",onMouseDown:function(e){return e.target===e.currentTarget&&O()}},{children:o("aside",r({className:"ins-drawer__panel",role:"dialog","aria-modal":"true","aria-label":ce},{children:[o("header",r({className:"ins-drawer__header"},{children:[o("div",r({className:"ins-drawer__titles"},{children:[i("h2",{children:ce}),(null==se?void 0:se.period)?o("p",{children:[A(se.period),(null===(W=null===(B=se.node)||void 0===B?void 0:B.path)||void 0===W?void 0:W.length)?" · ".concat(se.node.path.join(" › ")):""]}):null]})),i("button",r({ref:ne,type:"button",className:"ins-icon-button",onClick:O,"aria-label":"Close report"},{children:i(h,{"aria-hidden":"true"})}))]})),o("div",r({className:"ins-drawer__body"},{children:[Y?i("p",r({className:"ins-error"},{children:Y})):null,oe]}))]}))}))}export{x as default};
|
|
2
|
+
//# sourceMappingURL=ReportDrawer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReportDrawer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as i}from"../../../_virtual/_tslib.js";import{jsxs as o,jsx as n,Fragment as r}from"react/jsx-runtime";import{useEffect as l}from"react";import{ChevronLeft as e}from"lucide-react";import{fetchInsightsReport as d,fetchRowDetail as t,fetchRowReport as a}from"../../api/insightsApi.js";import{useInsights as c}from"./insightsContextCore.js";import{useInsightsFetch as u}from"./insightsUtils.js";import{CriticalityChip as v,MovementChip as p,DayOverDayChange as s,SectionHeader as m,ReportAccordion as g}from"./agPrimitives.js";import{SummaryCard as h,DecisionCard as f,TopDriversSection as y}from"./AgReport.js";import I from"./CommentsThread.js";function D(D){var j,k,b,N,C,P,_,w,O,T,L,R,x,K,A=D.nodeKey,B=D.kpiId,S=D.dataDay,U=D.reportId,q=D.embedded,z=void 0!==q&&q,E=D.onReportDay,F=D.onBack,G=D.onOpenDriver,H=D.backLabel,J=void 0===H?"L1 Report › Top drivers":H,M=D.show,Q=void 0===M?{}:M,V=Q.summary,W=void 0===V||V,X=Q.decision,Y=void 0===X||X,Z=Q.topDrivers,$=void 0===Z||Z,ii=c(),oi=u(ii&&U?function(i){return d(ii.api,U,i)}:null,[null==ii?void 0:ii.api.configId,U,null==ii?void 0:ii.revision],"".concat(null!==(j=null==ii?void 0:ii.api.configId)&&void 0!==j?j:"",":").concat(null!=U?U:"")),ni=(null===(b=null===(k=oi.data)||void 0===k?void 0:k.period)||void 0===b?void 0:b.end)||S,ri=u(!ii||z||U&&!oi.data?null:function(i){return t(ii.api,A,{kpiId:B,dataDay:ni},i)},[null==ii?void 0:ii.api.configId,A,B,ni,z,null==ii?void 0:ii.revision],"".concat(null!==(N=null==ii?void 0:ii.api.configId)&&void 0!==N?N:"",":").concat(A,":").concat(B,":").concat(ni)),li=u(ii&&!U?function(i){return a(ii.api,A,{kpiId:B,dataDay:ni},i)}:null,[null==ii?void 0:ii.api.configId,A,B,ni,U,null==ii?void 0:ii.revision],"".concat(null!==(C=null==ii?void 0:ii.api.configId)&&void 0!==C?C:"",":").concat(A,":").concat(B,":").concat(ni,":").concat(null!=U?U:"")),ei=null!==(w=null===(_=null===(P=oi.data)||void 0===P?void 0:P.period)||void 0===_?void 0:_.end)&&void 0!==w?w:null===(T=null===(O=li.data)||void 0===O?void 0:O.period)||void 0===T?void 0:T.end;l(function(){ei?null==E||E(ei):(oi.error||li.error)&&(null==E||E(S))},[S,E,ei,oi.error,li.error]);var di=null!==(R=null===(L=oi.data)||void 0===L?void 0:L.report)&&void 0!==R?R:null===(x=li.data)||void 0===x?void 0:x.report,ti=U?oi.loading:li.loading,ai=U?oi.error:li.error;if(!ii)return null;var ci=ri.data,ui=null==ci?void 0:ci.movement;return o("div",i({className:"ag-row-detail"},{children:[!z&&F?o("button",i({type:"button",className:"ins-link",onClick:F},{children:[n(e,{"aria-hidden":"true"})," ",J]})):null,z?null:n("h3",{children:(null==ci?void 0:ci.label)||"Row details"}),!z&&(null===(K=null==ci?void 0:ci.path)||void 0===K?void 0:K.length)?n("p",i({className:"ag-muted"},{children:ci.path.join(" › ")})):null,z||!ri.loading||ci?null:n("p",i({className:"ag-muted"},{children:"Loading row…"})),ri.error&&!oi.data?n("p",i({className:"ins-error"},{children:ri.error.message})):null,!z&&ci?o(r,{children:[o("div",i({className:"ag-driver__chips"},{children:[n(v,{criticality:null==ui?void 0:ui.criticality}),n(p,{movementType:null==ui?void 0:ui.movementType,direction:null==ui?void 0:ui.direction,good:ii.goodDirection(B)})]})),null!=ci.shareOfParentPct?o("p",{children:[ci.shareOfParentPct,"% of parent"]}):null,n("dl",i({className:"ag-row-detail__metrics"},{children:Object.entries(ci.metrics).map(function(i){var r=i[0],l=i[1];return o("div",{children:[n("dt",{children:ii.kpiLabel(r)}),o("dd",{children:[ii.formatKpi(r,l.value)," ",n(s,{deltaPct:l.deltaPct,direction:l.direction,tone:l.tone,good:ii.goodDirection(r)})]})]},r)})}))]}):null,o("div",i({className:"ag-stack"},{children:[W?o("div",{children:[n(m,{title:"Summary"}),n(h,{report:di,loading:ti,error:ai,good:ii.goodDirection(B)})]}):null,Y?n(f,{report:di,loading:ti,error:ai}):null,$?n(y,{dataDay:ni,parentNodeKey:A,kpiId:B,title:"Top Drivers",graphed:[],onOpenDriver:G}):null,(null==di?void 0:di.reportId)?n(g,i({title:"Comments".concat(di.commentCount?" (".concat(di.commentCount,")"):"")},{children:n(I,{reportId:di.reportId})})):null]}))]}))}export{D as default};
|
|
2
|
+
//# sourceMappingURL=RowDetail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RowDetail.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as n,jsx as a,Fragment as t}from"react/jsx-runtime";import{useState as r,useRef as i,useId as o,useEffect as l,useMemo as c,Fragment as d}from"react";import{TrendingUp as u,TrendingDown as s,ChevronDown as v,CalendarDays as p,Check as m,Minus as g,Plus as f,ArrowUpRight as h,ArrowDownRight as b}from"lucide-react";import{longPeriod as _,averageLabel as w,kpiMentions as y,figureDirections as N}from"./insightsFormat.js";import{useInsights as x}from"./insightsContextCore.js";import{hasCitationLink as k,CitationMarkdown as D}from"../RcaDecisionComponent/CitationMarkdown.js";var C="#E11D48",E="#15803D",M="#5928ED",T="#0F172A",F=function(e,n){return e===n};function L(e,n){return"up"===n||"increase"===n?"up":"down"===n||"decrease"===n?"down":"spike"===e?"up":"drop"===e?"down":null}function S(e,n,a){if(void 0===a&&(a="up"),"spike"===e||"drop"===e){var t=L(e,n);return F(t,a)?E:C}return null==e?"#2563EB":"stable"===e?T:"recovered"!==e||"up"!==n&&"down"!==n?M:F(n,a)?E:C}var A=function(e){return e===T?"#F1F5F9":e===M?"#C4B5FD":e};function j(e,n){switch(e){case"spike":case"drop":return"Significant change";case"fast_mover":case"slow_mover":return"down"===n||"decrease"===n?"Trending down":"Trending up";case"new_entity":return"New entity";case"dormant_entity":return"Now dormant";case"recovered":return"Recovered";default:return"No significant change"}}function G(e,n){var a="down"!==L(e,n);switch(e){case"spike":case"drop":return{label:a?"Spiking up":"Spiking down",dir:a?"up":"down"};case"fast_mover":return{label:a?"Picking up":"Cooling off",dir:a?"up":"down"};case"slow_mover":return{label:a?"Trending up":"Trending down",dir:a?"up":"down"};case"new_entity":return{label:"Just appeared",dir:"flat"};case"dormant_entity":return{label:"Gone quiet",dir:"flat"};case"recovered":return{label:"Recovered",dir:"flat"};case"stable":return{label:"Steady",dir:"flat"};default:return null}}var H={Critical:"ag-tone--critical",High:"ag-tone--high",Medium:"ag-tone--medium",Low:"ag-tone--low"};function B(e){if(!e)return"";var n=e.slice(0,10).split("-").map(Number),a=n[0],t=n[1],r=n[2];return a&&t&&r?new Date(a,t-1,r).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):e}function R(e,n){return e?n&&"day"!==n?_(e.slice(0,10),n):B(e):""}function K(t){var r=t.title,i=t.meta,o=t.action;return n("div",e({className:"ag-section-header"},{children:[n("div",e({className:"ag-section-header__title"},{children:[a("h4",{children:r}),i?a("span",e({className:"ag-meta-chip"},{children:i})):null]})),o]}))}function q(t){var i=t.title,o=t.meta,l=t.action,c=t.children,d=t.className,u=void 0===d?"":d,s=t.defaultExpanded,p=r(void 0===s||s),m=p[0],g=p[1];return n("section",e({className:"ag-visual".concat(m?"":" is-collapsed"," ").concat(u).trim()},{children:[n("div",e({className:"ag-visual__head"},{children:[n("div",e({className:"ag-visual__title"},{children:[a("span",{children:i}),o?a("span",e({className:"ag-meta-chip"},{children:o})):null]})),m?l:null,a("button",e({type:"button",className:"ag-icon-button","aria-label":"".concat(m?"Collapse":"Expand"," ").concat(i),"aria-expanded":m,onClick:function(){return g(function(e){return!e})}},{children:a(v,{"aria-hidden":"true",className:m?"is-open":"is-closed"})}))]})),m?c:null]}))}function U(n){var t=n.children,r=n.tone,i=n.compact;return a("span",e({className:"ag-token".concat(void 0!==i&&i?" ag-token--compact":""," ").concat(r)},{children:t}))}function W(t){var r=t.movementType,i=t.direction,o=t.good,l=void 0===o?"up":o,c=G(r,i);if(!c)return null;var d="flat"===c.dir?"flat":F(c.dir,l)?"good":"bad";return n(U,e({compact:!0,tone:"ag-tone--movement-".concat(d)},{children:["up"===c.dir?a(u,{"aria-hidden":"true"}):"down"===c.dir?a(s,{"aria-hidden":"true"}):null,c.label]}))}function $(n){var t=n.criticality,r=n.compact;return t&&H[t]?a(U,e({compact:void 0===r||r,tone:H[t]},{children:t})):null}function I(t){var i=t.title,o=t.defaultExpanded,l=void 0===o||o,c=t.children,d=r(l),u=d[0],s=d[1];return n("section",e({className:"ag-accordion"},{children:[a("h3",{children:n("button",e({type:"button","aria-expanded":u,onClick:function(){return s(function(e){return!e})}},{children:[i,a(v,{"aria-hidden":"true",className:u?"is-open":"is-closed"})]}))}),u?a("div",e({className:"ag-accordion__body"},{children:c})):null]}))}function P(e,n){return null!=e&&Number.isFinite(e)?Math.abs(e)<1e-4?"flat":F(e>0?"up":"down",n)?"good":"bad":null}function V(t){var r=t.label,i=t.value,o=t.change,l=t.good,c=void 0===o?null:P(o,void 0===l?"up":l),d="flat"===c?g:null!=o&&o>0?h:b;return n("div",e({className:"ag-metric"},{children:[a("div",e({className:"ag-metric__label"},{children:r})),n("div",e({className:"ag-metric__row"},{children:[a("div",e({className:"ag-metric__value".concat(c&&"flat"!==c?" ag-metric__value--".concat(c):"")},{children:i})),c?n("span",e({className:"ag-metric__badge ag-metric__badge--".concat(c)},{children:[a(d,{"aria-hidden":"true"}),"flat"===c?"No change":o>0?"Going up":"Going down"]})):null]}))]}))}function z(t){var i=t.dailyLabel,l=t.daily,c=t.fast,d=t.slow,u=t.long,s=t.windows,v=t.good,p=t.format,m=t.dashboardKpiCards,h=t.kpiLabel,b=h&&s.unit&&"day"!==s.unit?" ".concat(h):"",_=r(!1),y=_[0],N=_[1],x=o(),k=null!=c&&null!=d?c-d:null,D=null!=d&&null!=u?d-u:null;return n("div",e({className:"ag-trend-metrics"},{children:[n("div",e({className:"ag-trend-metrics__preview".concat(m?" ag-trend-metrics__preview--expandable":"")},{children:[n("div",e({className:"ag-metrics".concat(i?" ag-metrics--four":"")},{children:[i?a(V,{label:i,value:p(l)}):null,a(V,{label:"".concat(w(s.fast,s.unit)).concat(b),value:p(c),change:k,good:v}),a(V,{label:"".concat(w(s.slow,s.unit)).concat(b),value:p(d)}),a(V,{label:"".concat(w(s.long,s.unit)).concat(b),value:p(u),change:D,good:v})]})),Boolean(m)&&n("button",e({type:"button",className:"ag-trend-metrics__toggle","aria-expanded":y,"aria-controls":x,onClick:function(){return N(function(e){return!e})}},{children:[a(y?g:f,{size:16,"aria-hidden":"true"}),n("span",{children:["View",a("br",{}),y?"Less":"More"]})]}))]})),y&&Boolean(m)&&a("div",e({id:x,className:"ag-trend-metrics__additional"},{children:m}))]}))}var J=/([↑↓]\s?[\d,]+(?:\.\d+)?%)/;function O(n){var r=n.text,i=n.good,o=void 0===i?"up":i,l=n.tone,u=n.renderText,s=n.citations,v=n.excelDisplay,p=n.excelHover,m=x(),g=c(function(){return y(null==m?void 0:m.kpis)},[null==m?void 0:m.kpis]),f=c(function(){return N(r,g,J)},[r,g]),h=function(e,n){var a,t=e.startsWith("↑")?"up":"down",r=null!==(a=f[(n-1)/2])&&void 0!==a?a:null,i=r?F(t,r)?"good":"bad":null!=l?l:F(t,o)?"good":"bad";return"ag-arrow ag-arrow--".concat(i)};if(k(r)){var b=r.split(J).map(function(e,n){return n%2==1?'<span class="'.concat(h(e,n),'">').concat(e,"</span>"):e}).join("");return a(D,{text:b,citations:s,excelDisplay:v,excelHover:p})}return a(t,{children:r.split(J).map(function(n,t){return t%2!=1?u?a(d,{children:u(n)},t):n:a("span",e({className:h(n,t)},{children:n}),t)})})}function Q(n,t){if((null==n?void 0:n.length)&&t){var r=new Map(n.map(function(e){return[e.label,e]})),i=Array.from(r.keys()).sort(function(e,n){return n.length-e.length}).map(function(e){return e.replace(/[.*+?^$(){}|[\]\\]/g,"\\$&")}).join("|"),o=new RegExp("(?<![\\w.])("+i+")(?![\\w])");return function(n){return n.split(o).map(function(n,i){var o=i%2==1?r.get(n):void 0;return o?a("button",e({type:"button",className:"ag-rowlink",title:"Open the latest report for ".concat(o.label),onClick:function(){return t(o)}},{children:n}),i):n})}}}var X=/^(Good news|Bad news)\s*[-–—]\s*([\s\S]*)$/;function Y(e){var n=e.match(X);return n?{prefix:n[1],rest:n[2]}:{prefix:null,rest:e}}function Z(r){var i=r.text,o=r.good,l=void 0===o?"up":o,c=r.arrowsFollowVerdict,d=void 0!==c&&c,u=r.renderText,s=r.citations,v=r.excelDisplay,p=r.excelHover,m=Y(i.trim()),g=m.prefix,f=m.rest;return g?n(t,{children:[a("span",e({className:"Good news"===g?"ag-verdict--good":"ag-verdict--bad"},{children:g}))," - ",a(O,{text:f,good:l,tone:d?"Good news"===g?"good":"bad":void 0,renderText:u,citations:s,excelDisplay:v,excelHover:p})]}):a(O,{text:f,good:l,renderText:u,citations:s,excelDisplay:v,excelHover:p})}function ee(t){var r=t.deltaPct,i=t.good,o=void 0===i?"up":i,l=t.suffix,c=void 0===l?"vs last day":l,d=t.direction,u=t.tone;if(null==r||!Number.isFinite(r))return null;var s=Math.round(Math.abs(r)),v="up"===d?"↑":"down"===d?"↓":"flat"===d||0===s?"→":r>0?"↑":"↓",p="good"===u||"bad"===u||"flat"===u?u:0===s?"flat":P(r,o);return n("span",e({className:"ag-dod"},{children:[n("span",e({className:"ag-dod__value ag-dod__value--".concat(p)},{children:[s,"% ",v]})),a("span",e({className:"ag-dod__suffix"},{children:c}))]}))}var ne=function(e){return"good"===e?E:"bad"===e?C:M};function ae(n){var t=n.widths,r=void 0===t?[40,90,75]:t,i=n.label;return a("div",e({className:"ag-skel","aria-busy":"true","aria-label":void 0===i?"Loading":i},{children:r.map(function(e,n){return a("span",{className:"ag-skel__line",style:{width:"".concat(e,"%")}},n)})}))}function te(t){var r=t.count,i=void 0===r?4:r;return a("div",e({className:"ag-metrics".concat(4===i?" ag-metrics--four":""),"aria-busy":"true","aria-label":"Loading averages"},{children:Array.from({length:i},function(t,r){return n("div",e({className:"ag-metric"},{children:[a("span",{className:"ag-skel__line",style:{width:"60%"}}),a("span",{className:"ag-skel__line ag-skel__line--big",style:{width:"45%"}})]}),r)})}))}function re(n){var t=n.height,r=void 0===t?260:t,i=n.label;return a("div",e({className:"ag-skel-chart",style:{height:r},"aria-busy":"true","aria-label":void 0===i?"Loading chart":i},{children:a("svg",e({viewBox:"0 0 400 120",preserveAspectRatio:"none","aria-hidden":"true"},{children:a("polyline",{points:"0,90 50,70 100,78 150,50 200,62 250,38 300,52 350,30 400,44"})}))}))}var ie=[{value:!1,label:"Complete",hint:"Every calendar day"},{value:!0,label:"Working Days",hint:"Weekdays only, weekends left out"}];function oe(n){var t=x();return t&&"day"!==t.period.grain?null:a(le,e({},n))}function le(t){var c,d,u,s,g=t.value,f=t.onChange,h=t.disabled,b=t.groups,_=t.group,w=t.onGroupChange,y=r(!1),N=y[0],x=y[1],k=r(0),D=k[0],C=k[1],E=i(null),M=i(null),T=o(),F=(null==b?void 0:b.length)?b.map(function(e){return{value:e.groupKey,label:e.displayName,hint:e.description}}):ie,L=F.findIndex(function(e){return e.value===((null==b?void 0:b.length)?_:g)});l(function(){var e;if(N){C(Math.max(0,L)),null===(e=M.current)||void 0===e||e.focus();var n=function(e){var n;(null===(n=E.current)||void 0===n?void 0:n.contains(e.target))||x(!1)};return document.addEventListener("mousedown",n),function(){return document.removeEventListener("mousedown",n)}}},[N]);var S=function(e){var n,a;x(!1),null===(a=null===(n=E.current)||void 0===n?void 0:n.querySelector("button"))||void 0===a||a.focus();var t=F[e].value;"string"==typeof t?null==w||w(t):t!==g&&f(t)};return n("div",e({className:"ag-dd".concat(N?" is-open":""),ref:E},{children:[n("button",e({type:"button",className:"ag-dd__button","aria-haspopup":"listbox","aria-expanded":N,"aria-controls":"".concat(T,"-list"),"aria-label":"Days to show: ".concat(null!==(d=null===(c=F[L])||void 0===c?void 0:c.label)&&void 0!==d?d:"Complete"),disabled:h,onClick:function(){return x(function(e){return!e})},onKeyDown:function(e){["ArrowDown","ArrowUp"].includes(e.key)&&(e.preventDefault(),x(!0))}},{children:[a(p,{"aria-hidden":"true",className:"ag-dd__icon"}),a("span",{children:null!==(s=null===(u=F[L])||void 0===u?void 0:u.label)&&void 0!==s?s:"Complete"}),a(v,{"aria-hidden":"true",className:"ag-dd__chevron"})]})),N?a("ul",e({ref:M,id:"".concat(T,"-list"),className:"ag-dd__menu",role:"listbox",tabIndex:-1,"aria-label":"Days to show","aria-activedescendant":"".concat(T,"-opt-").concat(D),onKeyDown:function(e){var n,a;if("ArrowDown"===e.key)C(function(e){return Math.min(F.length-1,e+1)});else if("ArrowUp"===e.key)C(function(e){return Math.max(0,e-1)});else if("Home"===e.key)C(0);else if("End"===e.key)C(F.length-1);else if("Enter"===e.key||" "===e.key)S(D);else if("Escape"===e.key)x(!1),null===(a=null===(n=E.current)||void 0===n?void 0:n.querySelector("button"))||void 0===a||a.focus();else{if("Tab"!==e.key)return;x(!1)}"Tab"!==e.key&&e.preventDefault()}},{children:F.map(function(t,r){return n("li",e({id:"".concat(T,"-opt-").concat(r),role:"option","aria-selected":r===L,className:"ag-dd__option".concat(r===D?" is-active":"").concat(r===L?" is-selected":""),onMouseEnter:function(){return C(r)},onMouseDown:function(e){return e.preventDefault()},onClick:function(){return S(r)}},{children:[n("span",e({className:"ag-dd__text"},{children:[a("span",e({className:"ag-dd__label"},{children:t.label})),a("span",e({className:"ag-dd__hint"},{children:t.hint}))]})),r===L?a(m,{"aria-hidden":"true",className:"ag-dd__check"}):null]}),t.label)})})):null]}))}export{O as ArrowColoredText,H as CRITICALITY_TONE,re as ChartSkeleton,q as CollapsibleVisualSection,$ as CriticalityChip,ee as DayOverDayChange,oe as DaysDropdown,V as Metric,te as MetricsSkeleton,W as MovementChip,I as ReportAccordion,K as SectionHeader,ae as SkeletonLines,U as StatusToken,z as TrendMetricsSection,Z as VerdictSentence,B as formatHeaderDate,G as getMovementPhrase,Q as linkedText,S as movementColorHex,j as movementVerdictLabel,R as periodHeading,Y as splitVerdict,P as toneOf,A as tooltipSafeColorHex,ne as verdictToneHex};
|
|
2
|
+
//# sourceMappingURL=agPrimitives.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agPrimitives.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as t}from"../../../_virtual/_tslib.js";var e=function(t){return"".concat(t.getFullYear(),"-").concat(String(t.getMonth()+1).padStart(2,"0"),"-").concat(String(t.getDate()).padStart(2,"0"))},a=function(t){return Boolean(t)&&"day"!==t};function n(t){var n=t.endDate,r=t.workingDays,o=t.selectedDay,D=t.reportDay,g=t.now,i=void 0===g?new Date:g,u=t.grain;if(o)return o;if(a(u))return D||function(t,a){return e("month"===a?new Date(t.getFullYear(),t.getMonth(),1):"quarter"===a?new Date(t.getFullYear(),3*Math.floor(t.getMonth()/3),1):"year"===a?new Date(t.getFullYear(),0,1):t)}(n,u);if(!r)return D||e(n);var l=new Date(i.getFullYear(),i.getMonth(),i.getDate());l.setDate(l.getDate()-1);var c=new Date(n.getFullYear(),n.getMonth(),n.getDate());for(c<l&&l.setTime(c.getTime());0===l.getDay()||6===l.getDay();)l.setDate(l.getDate()-1);return e(l)}function r(e,r,o,D,g){if((!r||a(g))&&!o)return t(t({},e),{workingDaysOnly:!1});var i=n({endDate:e.endDate,workingDays:r,selectedDay:o,now:D,grain:g}),u=new Date("".concat(i,"T00:00:00"));return t(t({},e),{startDate:o||e.startDate>u?u:e.startDate,endDate:u,workingDaysOnly:!o&&r})}export{n as resolveDrillDay,r as resolveL2SummaryRange};
|
|
2
|
+
//# sourceMappingURL=drillDay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drillDay.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insightsContextCore.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e="Your session has expired. Sign in again and retry.",a="You don't have permission to do this on this dashboard. Ask an admin for access.";function s(s,n){var i=s;switch(null==i?void 0:i.errorType){case"NotModeAdmin":case"Forbidden":return(null==i?void 0:i.message)||a;case"SessionExpired":case"InvalidToken":case"MissingToken":return e;case"ModeIdRequired":case"ModeNotFound":case"ModeNameMissing":return"This dashboard isn't linked to a known mode, so your access can't be checked. Contact the dashboard owner.";case"AccessCheckUnavailable":case"ModeRegistryUnavailable":return"Your access couldn't be checked right now. Try again in a few minutes.";case"RateLimited":return"This dashboard has asked for 20 reports this hour. Try again later.";case"QueueUnavailable":return"Reports can't be written right now. Try again in a few minutes."}return 401===(null==i?void 0:i.status)?e:403===(null==i?void 0:i.status)?(null==i?void 0:i.message)||a:(null==i?void 0:i.message)||n}export{s as insightsErrorText};
|
|
2
|
+
//# sourceMappingURL=insightsErrors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insightsErrors.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function r(r,n){var t=Object.fromEntries((null!=n?n:[]).map(function(r){return[r.schemaFilterName,r.label]}));return{filters:Object.fromEntries(Object.entries(null!=r?r:{}).flatMap(function(r){var n=r[0],e=r[1];if(!(n in t))return[];var i=(Array.isArray(e)?e:[e]).filter(function(r){return""!==r&&null!=r}).map(String);return i.length?[[n,i]]:[]}).sort(function(r,n){var t=r[0],e=n[0];return String(t).localeCompare(String(e))})),labels:t}}export{r as resolveInsightsSidebarFilters};
|
|
2
|
+
//# sourceMappingURL=insightsFilters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insightsFilters.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as n,__spreadArray as t}from"../../../_virtual/_tslib.js";function e(n,t){var e,r;if(!t||null==n||!Number.isFinite(n))return null;var a=Math.max(0,Math.min(Number.isFinite(Number(t.decimals))?Number(t.decimals):1,4)),o=n,i="";if(t.compact)for(var l=0,u=[[1e9,"B"],[1e6,"M"],[1e3,"K"]];l<u.length;l++){var c=u[l],d=c[0],f=c[1];if(Math.abs(o)>=d){o/=d,i=f;break}}var s=Math.abs(o).toLocaleString("en-US",{minimumFractionDigits:a,maximumFractionDigits:a});return"".concat(o<0?"-":"").concat(null!==(e=t.prefix)&&void 0!==e?e:"").concat(s).concat(i).concat(null!==(r=t.suffix)&&void 0!==r?r:"")}var r=function(n){return n.replace(/\.(\d*?)0+(?!\d)/,function(n,t){return t?".".concat(t):""})};function a(t,a){if(!a)return null;var o=e(t,a.compact?n(n({},a),{decimals:0}):a);return o&&!a.compact?r(o):o}var o={day:{grain:"day",unit:"day",adjective:"Daily"},week:{grain:"week",unit:"week",adjective:"Weekly"},month:{grain:"month",unit:"month",adjective:"Monthly"},quarter:{grain:"quarter",unit:"quarter",adjective:"Quarterly"}},i=function(n){var t;return null!==(t=o[String(null!=n?n:"day")])&&void 0!==t?t:o.day},l=function(n){return n.charAt(0).toUpperCase()+n.slice(1)},u=function(n,t){return void 0===t&&(t="day"),"day"===t?"".concat(n,"-day average"):"".concat(n,"-").concat(l(t)," Average")},c=function(n,t){return void 0===t&&(t="day"),"day"===t?"".concat(n,"-day Average"):"".concat(n,"-").concat(l(t)," Average")},d=function(n,t){return void 0===t&&(t="day"),"".concat(n).concat(t.charAt(0))},f=function(n){var t=n.slice(0,10).split("-").map(Number),e=t[0],r=t[1],a=t[2];return new Date(e,(r||1)-1,a||1)};function s(n,t){var e=String(n);if(!/^\d{4}-\d{2}-\d{2}/.test(e))return e;if("month"===t)return f(e).toLocaleString("en-GB",{month:"short"});if("quarter"===t){var r=f(e);return"Q".concat(Math.floor(r.getMonth()/3)+1," ").concat(r.getFullYear())}return"".concat(e.slice(5,7),"/").concat(e.slice(8,10))}function v(n,t){var e=String(n);if(!t||"day"===t||!/^\d{4}-\d{2}-\d{2}/.test(e))return e;var r=f(e);return"month"===t?"".concat(r.toLocaleString("en-GB",{month:"long"})," ").concat(r.getFullYear()):"quarter"===t?"Q".concat(Math.floor(r.getMonth()/3)+1," ").concat(r.getFullYear()):"Week of ".concat(r.getDate()," ").concat(r.toLocaleString("en-GB",{month:"short"})," ").concat(r.getFullYear())}v.axisTitle=function(n){return l(n)};var g=function(n){return"".concat(n.getFullYear(),"-").concat(String(n.getMonth()+1).padStart(2,"0"),"-").concat(String(n.getDate()).padStart(2,"0"))};function h(n,t){if(!/^\d{4}-\d{2}-\d{2}/.test(n))return n;var e=f(n);return"month"===t?g(new Date(e.getFullYear(),e.getMonth(),1)):"quarter"===t?g(new Date(e.getFullYear(),3*Math.floor(e.getMonth()/3),1)):"year"===t?g(new Date(e.getFullYear(),0,1)):n.slice(0,10)}function m(n,t){if(!/^\d{4}-\d{2}-\d{2}/.test(n))return n;var e=f(h(n,t));return"month"===t?g(new Date(e.getFullYear(),e.getMonth()+1,0)):"quarter"===t?g(new Date(e.getFullYear(),e.getMonth()+3,0)):"year"===t?g(new Date(e.getFullYear(),11,31)):"week"===t?g(new Date(e.getFullYear(),e.getMonth(),e.getDate()+6)):n.slice(0,10)}function p(n,t,e,r){var a=((null==n?void 0:n.start)||(null==n?void 0:n.end)||"").slice(0,10),o=((null==n?void 0:n.end)||(null==n?void 0:n.start)||"").slice(0,10);return!(!a||!o)&&(m(o,r)>=t&&a<=e)}var y=/\b(?:costs?|expenses?|expenditures?|spend(?:ing)?|opex|overheads?)\b/gi;function w(n){var e=new Map;return Object.entries(null!=n?n:{}).forEach(function(n){var r,a,o=n[0],i=n[1],l="down"===(null==i?void 0:i.goodDirection)?"down":"up",u=Array.isArray(null==i?void 0:i.aliases)?i.aliases.filter(function(n){return"string"==typeof n}):[];t([null!==(r=null==i?void 0:i.label)&&void 0!==r?r:"",(null!==(a=null==i?void 0:i.label)&&void 0!==a?a:"").replace(/\s*\([^()]*\)\s*$/,""),o.replace(/_/g," ")],u,!0).forEach(function(n){var t=n.trim();t.length>=3&&!e.has(t.toLowerCase())&&e.set(t.toLowerCase(),{name:t,good:l})})}),Array.from(e.values()).sort(function(n,t){return t.name.length-n.name.length})}var b=/[.!?]\s+(?=[A-Z(])/g;function x(n,e,r){var a=[];e.forEach(function(t){var e=t.name,r=t.good;Array.from(n.matchAll(new RegExp("(?<![\\w])".concat(function(n){return n.replace(/[.*+?^$(){}|[\]\\/]/g,"\\$&")}(e),"(?![\\w])"),"gi"))).forEach(function(n){var t,e;a.push({start:null!==(t=n.index)&&void 0!==t?t:0,end:(null!==(e=n.index)&&void 0!==e?e:0)+n[0].length,good:r})})}),Array.from(n.matchAll(y)).forEach(function(n){var t,e=null!==(t=n.index)&&void 0!==t?t:0;a.some(function(t){return t.start<=e&&t.end>=e+n[0].length})||a.push({start:e,end:e+n[0].length,good:"down"})});var o=t([0],Array.from(n.matchAll(b),function(n){var t;return(null!==(t=n.index)&&void 0!==t?t:0)+n[0].length}),!0),i=new RegExp(r.source,r.flags.includes("g")?r.flags:"".concat(r.flags,"g")),l=Array.from(n.matchAll(i),function(n){var t;return null!==(t=n.index)&&void 0!==t?t:0});return Array.from(n.matchAll(i),function(t){var e,r=null!==(e=t.index)&&void 0!==e?e:0,i=r+t[0].length,u=/^\)?\s*(?:in|of|for)\s+(?:the\s+)?/i.exec(n.slice(i));if(u){var c=i+u[0].length,d=a.filter(function(n){return n.start===c}).sort(function(n,t){return t.end-n.end})[0];if(d)return d.good}var f=Math.max.apply(Math,o.filter(function(n){return n<=r})),s=a.filter(function(n){return n.start>=f&&n.end<=r&&function(n){return!l.some(function(t){return t>=n.end&&t<r})}(n)}).sort(function(n,t){return t.start-n.start||t.end-n.end})[0];return s?s.good:null})}var A=function(n){return n.toLowerCase().replace(/[^a-z0-9]+/g,"").replace(/s$/,"")};function M(n,t){var e,r,a=null===(e=null==n?void 0:n.label)||void 0===e?void 0:e.trim();if(a&&(null===(r=null==t?void 0:t.options)||void 0===r?void 0:r.length)){var o=A(a),i=t.options.find(function(n){var t;return A(n.label)===o||(null!==(t=n.aliases)&&void 0!==t?t:[]).some(function(n){return A(n)===o})});return i?{label:i.label,tone:i.tone}:!1===t.showUnknown?void 0:{label:a,tone:"neutral"}}}function F(n,t){var e,r=function(n){var t,e;return null!==(e=null===(t=/^[\s\S]*?[.!?](?=\s+[A-Z(]|\s*$)/.exec(n))||void 0===t?void 0:t[0])&&void 0!==e?e:n}(n);return null===(e=null==t?void 0:t.find(function(n){return n.label&&r.includes(n.label)}))||void 0===e?void 0:e.label}export{u as averageLabel,c as averageLineLabel,d as averageShort,x as figureDirections,a as formatAxisFigure,e as formatFigure,w as kpiMentions,v as longPeriod,p as periodInRange,m as periodLastDay,h as periodStart,i as periodWordsOf,M as rootCauseTag,F as rootCauseTitle,s as shortPeriod,r as trimZeros};
|
|
2
|
+
//# sourceMappingURL=insightsFormat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insightsFormat.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as n,__spreadArray as e,__awaiter as t,__generator as i}from"../../../_virtual/_tslib.js";import{useState as o,useRef as r,useEffect as a,useLayoutEffect as l,createElement as u}from"react";import{fetchRowReport as c,toIsoDay as d,fetchInsightsJob as s}from"../../api/insightsApi.js";import{VerdictSentence as v,linkedText as f}from"./agPrimitives.js";import{stripMarkup as g}from"../RcaDecisionComponent/CitationMarkdown.js";import{longPeriod as p,periodStart as m,rootCauseTag as y,rootCauseTitle as h}from"./insightsFormat.js";export{averageLabel,averageLineLabel,averageShort,formatAxisFigure,formatFigure,longPeriod,periodWordsOf,rootCauseTag,shortPeriod}from"./insightsFormat.js";import{useInsights as b}from"./insightsContextCore.js";var w=[],F=null;function k(n,e){var t=r(n);t.current=n;var i=o(function(){return w.length>0})[0],a=o(!1),u=a[0],c=a[1];return l(function(){var n,i={};w.length&&c(!0),w.push(i),F||(F={overflow:document.body.style.overflow,focus:document.activeElement}),document.body.style.overflow="hidden",null===(n=e.current)||void 0===n||n.focus({preventScroll:!0});var o=function(n){"Escape"===n.key&&w[w.length-1]===i&&t.current()};return document.addEventListener("keydown",o),function(){document.removeEventListener("keydown",o),w.splice(w.indexOf(i),1),queueMicrotask(function(){var n,e;if(!w.length&&F){var t=F;F=null,document.body.style.overflow=t.overflow,null===(e=null===(n=t.focus)||void 0===n?void 0:n.focus)||void 0===e||e.call(n)}})}},[]),"ag-modal".concat(i?" ag-modal--instant":"").concat(u?" ag-modal--stacked":"")}function x(n,e){l(function(){n.current&&(n.current.scrollTop=0)},[e])}function D(n){var e=null==n?void 0:n.enabled;return!0===e||"string"==typeof e&&["true","yes","y","1"].includes(e.trim().toLowerCase())}function K(n){var e=null==n?void 0:n.summaryCard;return e&&!1!==e.enabled?e:null}function I(n){var e,t;return(null!==(t=null===(e=null==n?void 0:n.tabs)||void 0===e?void 0:e.items)&&void 0!==t?t:[]).filter(function(n){return n&&"string"==typeof n.entityKey&&n.entityKey})}var M=function(n){var e=n?new Date("".concat(n.slice(0,10),"T00:00:00")).getDay():1;return 0===e||6===e?"vs previous weekend day":"vs previous working day"},S=function(n,e){return e&&"day"!==e?"vs previous ".concat(e):M(n)},C=function(n,e){if(!e||"day"===e||!n)return"today";var t=p(n,e);return"month"===e?t.split(" ")[0]:t},j=function(n){var e=n.slice(0,10).split("-").map(Number),t=e[0],i=e[1],o=e[2];return new Date(t,(i||1)-1,o||1)};function A(n){if(null==n?void 0:n.label)return n.label;if(!(null==n?void 0:n.start)||!(null==n?void 0:n.end))return"";var e=j(n.start),t=j(n.end),i=function(n){return n.getDate()},o=function(n){return n.toLocaleString("en-GB",{month:"short"})};return n.start===n.end?"".concat(i(t)," ").concat(o(t)," ").concat(t.getFullYear()):e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()?"".concat(i(e),"–").concat(i(t)," ").concat(o(t)," ").concat(t.getFullYear()):e.getFullYear()===t.getFullYear()?"".concat(i(e)," ").concat(o(e)," – ").concat(i(t)," ").concat(o(t)," ").concat(t.getFullYear()):"".concat(i(e)," ").concat(o(e)," ").concat(e.getFullYear()," – ").concat(i(t)," ").concat(o(t)," ").concat(t.getFullYear())}var Y=function(n){return(null==n?void 0:n.label)?n.label:(null==n?void 0:n.end)?A({start:n.end,end:n.end}):""},T=function(n){var e=String(n);return/^\d{4}-\d{2}-\d{2}/.test(e)?"".concat(e.slice(5,7),"/").concat(e.slice(8,10)):e},_=function(n){return null!=n&&Number.isFinite(n)?String(n):"—"},E={spike:"Spike",drop:"Drop",fast_mover:"Fast mover",slow_mover:"Slow mover",new_entity:"New",dormant_entity:"Went quiet",recovered:"Recovered",stable:"Stable"},L=function(n){var e;return n?null!==(e=E[n])&&void 0!==e?e:n.replace(/_/g," "):""};function B(n,e){return void 0===e&&(e="up"),"up"!==n&&"down"!==n?"#d97706":n===e?"#16a34a":"#dc2626"}var N="insights:open-entity-report";function P(){var n=this,e=b();return function(o){return t(n,void 0,void 0,function(){var n,t,r,a;return i(this,function(i){switch(i.label){case 0:if(!e)return[2];if(n=new CustomEvent(N,{detail:o,cancelable:!0}),window.dispatchEvent(n),n.defaultPrevented)return[3,4];if(!(t=e.headlineKpi))return[2];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,c(e.api,o.nodeKey,{kpiId:t,dataDay:o.dataDay||m(d(e.range.endDate),e.period.grain)})];case 2:return r=i.sent(),(null===(a=r.report)||void 0===a?void 0:a.reportId)&&e.openReport({reportId:r.report.reportId,title:o.label}),[3,4];case 3:return i.sent(),[3,4];case 4:return[2]}})})}}var R=function(n,e,t){return(null!=n?n:[]).map(function(n){var i,o,r,a,l,c,d,s,p,m,b,w,F,k,x=null!==(o=null===(i=n.cited)||void 0===i?void 0:i.citation)&&void 0!==o?o:void 0;return{id:n.id,tag:y(n.tag,t),title:h(g(n.content),n.links),detail:null!==(a=null===(r=n.decisioning)||void 0===r?void 0:r.explanation)&&void 0!==a?a:void 0,citations:x,content:(null===(l=n.links)||void 0===l?void 0:l.length)&&e?u(v,{text:n.content,arrowsFollowVerdict:!0,renderText:f(n.links,e),citations:x}):/^(Good|Bad) news\s*[-–—]|[↑↓]/.test(n.content)?u(v,{text:n.content,arrowsFollowVerdict:!0,citations:x}):n.content,decisioning:n.decisioning?{citations:x,explanation:null!==(c=n.decisioning.explanation)&&void 0!==c?c:void 0,decisionMakingFactors:(null!==(d=n.decisioning.decisionMakingFactors)&&void 0!==d?d:[]).slice(0,3),gapsInDecision:null!==(s=n.decisioning.gapsInDecision)&&void 0!==s?s:[],score:null!==(p=n.decisioning.score)&&void 0!==p?p:void 0,evidence:n.decisioning.evidence?{label:n.decisioning.evidence.label,title:null!==(m=n.decisioning.evidence.title)&&void 0!==m?m:void 0,description:null!==(b=n.decisioning.evidence.description)&&void 0!==b?b:void 0,items:null!==(w=n.decisioning.evidence.items)&&void 0!==w?w:[],highlight:null!==(F=n.decisioning.evidence.highlight)&&void 0!==F?F:void 0,footer:null!==(k=n.decisioning.evidence.footer)&&void 0!==k?k:void 0}:void 0}:void 0}})},O=function(n,e){return Array.from(new Set(n.map(function(n){return(null!=n?n:"").trim()}).filter(Boolean))).slice(0,e)};function q(n,t){var i,o,r,a,l,u,c,d,s,v,f,p,m,y;if(!n||"generated"!==n.status)return null;var h=null!==(r=null===(o=null===(i=n.summary)||void 0===i?void 0:i.cited)||void 0===o?void 0:o.citation)&&void 0!==r?r:void 0,b=null===(a=n.summary)||void 0===a?void 0:a.decisioning;if(b)return{explanation:null!=t?t:b.explanation||(null===(l=n.summary)||void 0===l?void 0:l.body)||void 0,decisionMakingFactors:null!==(u=b.decisionMakingFactors)&&void 0!==u?u:[],gapsInDecision:null!==(c=b.gapsInDecision)&&void 0!==c?c:[],score:null!==(s=null!==(d=b.score)&&void 0!==d?d:n.score)&&void 0!==s?s:void 0,citations:h};var w=e(e([],null!==(v=n.rootCause)&&void 0!==v?v:[],!0),null!==(f=n.nextSteps)&&void 0!==f?f:[],!0).map(function(n){return n.decisioning}).filter(Boolean),F=O(w.flatMap(function(n){var e;return null!==(e=n.decisionMakingFactors)&&void 0!==e?e:[]}).map(g),3),k=O(w.flatMap(function(n){var e;return null!==(e=n.gapsInDecision)&&void 0!==e?e:[]}).map(g),4);return F.length||k.length||null!=n.score?{explanation:null!=t?t:(null===(p=n.summary)||void 0===p?void 0:p.body)||((null===(m=w[0])||void 0===m?void 0:m.explanation)?g(w[0].explanation):void 0),decisionMakingFactors:F,gapsInDecision:k,score:null!==(y=n.score)&&void 0!==y?y:void 0,citations:h}:null}function G(n){var e,t,i;try{var o=null==n?void 0:n.replace(/^bearer\s+/i,"").split(".")[1];if(!o)return{email:null,isAdmin:!1};var r=JSON.parse(decodeURIComponent(escape(atob(o.replace(/-/g,"+").replace(/_/g,"/"))))),a=[].concat(null!==(e=r.rolename)&&void 0!==e?e:[],null!==(t=r.role)&&void 0!==t?t:[],null!==(i=r.roles)&&void 0!==i?i:[]).map(String);return{email:r.email||r.sub||null,isAdmin:a.some(function(n){return"cw-admin"===n||/ Admin$/.test(n)})}}catch(n){return{email:null,isAdmin:!1}}}function V(t,i,l){var u=o({loading:Boolean(t),identityKey:l}),c=u[0],d=u[1],s=o(0),v=s[0],f=s[1],g=r(t);g.current=t,a(function(){var e=g.current;if(e){var t=new AbortController;return d(function(n){return{data:n.identityKey===l?n.data:void 0,loading:!0,identityKey:l}}),e(t.signal).then(function(n){t.signal.aborted||d({data:n,loading:!1,identityKey:l})}).catch(function(n){t.signal.aborted||"AbortError"===(null==n?void 0:n.name)||d({error:n,loading:!1,identityKey:l})}),function(){return t.abort()}}d(function(e){return n(n({},e),{data:e.identityKey===l?e.data:void 0,error:void 0,loading:!1,identityKey:l})})},e(e([],i,!0),[v,l],!1));var p=void 0===l||c.identityKey===l;return n(n({},c),{data:p?c.data:void 0,error:p?c.error:void 0,loading:p?c.loading:Boolean(t),reload:function(){return f(function(n){return n+1})},updateData:function(e){return d(function(t){return n(n({},t),{data:e(t.identityKey===l?t.data:void 0),identityKey:l})})}})}function W(n,e,l){var u=this,c=o({status:null,error:null}),d=c[0],v=c[1],f=r(l);return f.current=l,a(function(){if(n&&e){var o,r=!1,a=function(){return t(u,void 0,void 0,function(){var t,l,u;return i(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,s(e,n)];case 1:return t=i.sent(),r?[2]:(v({status:t.status,error:"failed"===t.status?t.error||"The job failed.":null}),"succeeded"===t.status?null===(u=f.current)||void 0===u||u.call(f,t.reportId):"failed"!==t.status&&(o=setTimeout(a,4e3)),[3,3]);case 2:return l=i.sent(),r||v({status:"failed",error:l.message||"The job couldn't be checked."}),[3,3];case 3:return[2]}})})};return a(),function(){r=!0,clearTimeout(o)}}v({status:null,error:null})},[n,e]),d}export{N as OPEN_INSIGHTS_ENTITY_REPORT,A as formatPeriod,Y as formatReportDate,_ as formatValue,I as insightTabItems,D as isInsightsOn,L as movementLabel,C as periodName,M as previousDayLabel,S as previousPeriodLabel,q as reportDecisioning,B as sentimentColor,T as shortDay,K as summaryCardConfig,R as toRcaItems,V as useInsightsFetch,k as useInsightsModal,W as useJob,P as useOpenRow,x as useScrollToTopOnStep,G as viewerFromToken};
|
|
2
|
+
//# sourceMappingURL=insightsUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insightsUtils.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsx as t,jsxs as n,Fragment as a}from"react/jsx-runtime";import r,{useState as l}from"react";import{BookOpen as i,Zap as c,FileText as d,Activity as o,Sun as s,Moon as u,X as m,ExternalLink as h,ArrowRight as p,Check as g,Copy as b}from"lucide-react";import f from"react-markdown";import v from"remark-gfm";import k from"rehype-raw";function N(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function y(r){var i=r.code,c=r.language,d=l(!1),o=d[0],s=d[1],u=(c||"").toLowerCase().trim(),m=function(e,t){for(var n=(t||"").toLowerCase().trim(),a="bash"===n||"sh"===n||"shell"===n,r=[],l=0,i=[{type:"comment",regex:a?/#[^\r\n]*/g:/(\/\/[^\r\n]*|\/\*[\s\S]*?\*\/)/g},{type:"string",regex:/("(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|`(?:\\.|[^`\\])*`)/g},{type:"keyword",regex:a?/\b(npm|pnpm|yarn|npx|git|curl|node|export|echo|set|if|then|else|fi|for|in|do|done)\b/g:/\b(import|export|from|as|default|const|let|var|function|return|if|else|switch|case|break|for|while|do|try|catch|finally|throw|new|typeof|instanceof|void|delete|in|of|class|extends|interface|type|enum|implements|private|protected|public|static|readonly|async|await|yield)\b/g},{type:"boolean",regex:/\b(true|false|null|undefined)\b/g},{type:"number",regex:/\b\d+(?:\.\d+)?\b/g},{type:"function",regex:/\b[a-zA-Z_$][a-zA-Z0-9_$]*(?=\s*\()/g},{type:"class-name",regex:/\b[A-Z][a-zA-Z0-9_$]*\b/g},{type:"variable",regex:a?/--?[a-zA-Z0-9_-]+/g:/(?!)/g}];l<i.length;l++)for(var c=i[l],d=c.type,o=c.regex,s=void 0,u=new RegExp(o.source,o.flags);null!==(s=u.exec(e));)r.push({start:s.index,end:s.index+s[0].length,type:d,text:s[0]});r.sort(function(e,t){return e.start-t.start||t.end-e.end});for(var m=[],h=0,p=0,g=r;p<g.length;p++)(y=g[p]).start>=h&&(m.push(y),h=y.end);for(var b="",f=0,v=0,k=m;v<k.length;v++){var y;(y=k[v]).start>f&&(b+=N(e.slice(f,y.start))),b+='<span class="token '.concat(y.type,'">').concat(N(y.text),"</span>"),f=y.end}return f<e.length&&(b+=N(e.slice(f))),b}(i,u);return n("div",e({className:"md-code-block"},{children:[n("div",e({className:"md-code-header"},{children:[t("div",e({className:"md-code-lang"},{children:t("span",{children:c||"code"})})),t("button",e({type:"button",onClick:function(){navigator.clipboard.writeText(i),s(!0),setTimeout(function(){return s(!1)},2e3)},className:"md-code-copy-btn","aria-label":"Copy code"},{children:n(a,o?{children:[t(g,{className:"w-4 h-4",size:14}),t("span",{children:"Copied!"})]}:{children:[t(b,{className:"w-4 h-4",size:14}),t("span",{children:"Copy code"})]})}))]})),t("div",e({className:"md-code-body"},{children:t("pre",e({className:"language-vscode"},{children:t("code",{className:"language-".concat(u||"tsx"),dangerouslySetInnerHTML:{__html:m}})}))}))]}))}var x=function(g){var b=g.open,N=g.onClose,x=g.title,w=g.subtitle,C=g.content,z=g.integrationDocs,T=g.showQuickStartToggle,q=void 0===T||T,D=g.isQuickStart,S=void 0!==D&&D,_=g.onQuickStartToggle,A=g.activeTab,L=g.onTabChange,Q=l("light"),Z=Q[0],E=Q[1],$=l(null!=A?A:S?"quick-start":"task-tracking"),I=$[0],M=$[1];if(r.useEffect(function(){A&&M(A)},[A]),!b)return null;var P="dark"===Z,j=null!=A?A:I,F=function(e){M(e),null==L||L(e),_&&("quick-start"!==e||S?"quick-start"!==e&&S&&_():_())},G=function(){var e,t,n;switch(j){case"detailed":return{title:null!=x?x:"Mode Integration Guide",subtitle:null!=w?w:"Documentation • @e-llm-studio/feedback-flow",content:null!==(e=null!=C?C:null==z?void 0:z.detailed)&&void 0!==e?e:""};case"task-tracking":return{title:null!=x?x:"Feature-Based Task Tracking",subtitle:null!=w?w:"Documentation • eCG Analytics Usage Tracking",content:null!==(t=null==z?void 0:z.taskTracking)&&void 0!==t?t:""};default:return{title:null!=x?x:"Mode Integration Quick Start",subtitle:null!=w?w:"Documentation • @e-llm-studio/feedback-flow",content:null!==(n=null==z?void 0:z.quickStart)&&void 0!==n?n:""}}}();return t("div",e({className:"md-modal-overlay",onClick:N},{children:n("div",e({className:"md-modal-dialog ".concat(P?"md-dark":"md-light"),onClick:function(e){return e.stopPropagation()}},{children:[n("div",e({className:"md-modal-header"},{children:[n("div",e({className:"md-header-left"},{children:[t("div",e({className:"md-header-icon"},{children:t(i,{size:16})})),n("div",{children:[t("h3",e({className:"md-header-title"},{children:G.title})),t("p",e({className:"md-header-subtitle"},{children:G.subtitle}))]})]})),n("div",e({className:"md-header-right"},{children:[q&&n("div",e({className:"md-tab-group"},{children:[n("button",e({type:"button",onClick:function(){return F("quick-start")},className:"md-tab-btn ".concat("quick-start"===j?"active":"")},{children:[n("div",e({className:"md-tab-btn-title"},{children:[t(c,{size:13}),t("span",{children:"Quick start"})]})),t("span",e({className:"md-tab-btn-time"},{children:"15 min"}))]})),n("button",e({type:"button",onClick:function(){return F("detailed")},className:"md-tab-btn ".concat("detailed"===j?"active":"")},{children:[n("div",e({className:"md-tab-btn-title"},{children:[t(d,{size:13}),t("span",{children:"Detailed guide"})]})),t("span",e({className:"md-tab-btn-time"},{children:"45 min"}))]})),n("button",e({type:"button",onClick:function(){return F("task-tracking")},className:"md-tab-btn ".concat("task-tracking"===j?"active":"")},{children:[n("div",e({className:"md-tab-btn-title"},{children:[t(o,{size:13}),t("span",{children:"Task tracking"})]})),t("span",e({className:"md-tab-btn-time"},{children:"20 min"}))]}))]})),t("button",e({type:"button",onClick:function(){return E(P?"light":"dark")},className:"md-theme-toggle",title:"Switch to ".concat(P?"Light":"Dark"," mode")},{children:n(a,P?{children:[t(s,{size:13,color:"#f59e0b"}),t("span",{children:"Light"})]}:{children:[t(u,{size:13,color:"#5928ED"}),t("span",{children:"Dark"})]})})),t("button",e({type:"button",onClick:N,className:"md-close-btn","aria-label":"Close"},{children:t(m,{size:18})}))]}))]})),t("div",e({className:"md-modal-body"},{children:n("article",e({className:"md-article"},{children:[t(f,e({remarkPlugins:[v],rehypePlugins:[k],components:{h1:function(n){var a=n.children;return t("h1",e({className:"md-h1"},{children:a}))},h2:function(n){var a=n.children;return t("h2",e({className:"md-h2"},{children:a}))},h3:function(n){var a=n.children;return t("h3",e({className:"md-h3"},{children:a}))},p:function(n){var a=n.children;return t("p",e({className:"md-p"},{children:a}))},ul:function(n){var a=n.children;return t("ul",e({className:"md-ul"},{children:a}))},ol:function(n){var a=n.children;return t("ol",e({className:"md-ol"},{children:a}))},li:function(n){var a=n.children;return t("li",e({className:"md-li"},{children:a}))},blockquote:function(n){var a=n.children;return t("blockquote",e({className:"md-blockquote"},{children:a}))},hr:function(){return t("hr",{className:"md-hr"})},a:function(a){var r=a.href,l=a.children;return n("a",e({href:r,target:"_blank",rel:"noreferrer",className:"md-link"},{children:[t("span",{children:l}),t(h,{size:12})]}))},strong:function(n){var a=n.children;return t("strong",e({className:"md-strong"},{children:a}))},pre:function(e){var n=e.children;return t(a,{children:n})},code:function(n){var a=n.inline,r=n.className,l=n.children,i=String(l).replace(/\n$/,"");if(!a&&(r||i.includes("\n"))){var c=/language-(\w+)/.exec(r||""),d=c?c[1]:"typescript";return t(y,{code:i,language:d})}return t("code",e({className:"md-inline-code"},{children:l}))}}},{children:G.content})),"quick-start"===j&&n("div",e({className:"md-footer-cta"},{children:[n("div",{children:[t("h4",e({className:"md-cta-title"},{children:"Need more control?"})),t("p",e({className:"md-cta-desc"},{children:"For advanced customization and configuration, explore the Advanced Docs."}))]}),n("button",e({type:"button",onClick:function(){return F("detailed")},className:"md-cta-btn"},{children:[t("span",{children:"Explore Advanced Docs"}),t(p,{size:14})]}))]}))]}))}))]}))}))};export{x as MarkdownDocsModal,x as default};
|
|
2
|
+
//# sourceMappingURL= MarkdownDocsModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":" MarkdownDocsModal.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{useState as n,useEffect as e}from"react";import{checkModeTrackingIntegration as r}from"./trackingIntegrationApi.js";function t(t,i,o,a,c){void 0===i&&(i="Tracking");var s=n(!1),f=s[0],l=s[1],d=n(!1),u=d[0],g=d[1],v=n(""),m=v[0],h=v[1],k=n(!0),p=k[0],y=k[1],I=function(n){var e,r,t;if(n){if("string"==typeof n)return n.trim();if("object"==typeof n){var i=null!==(t=null!==(r=null!==(e=n.value)&&void 0!==e?e:n.label)&&void 0!==r?r:n.name)&&void 0!==t?t:n.id;if("string"==typeof i&&i.trim().length>0)return i.trim()}}},A=Array.isArray(t)?1===t.length?I(t[0]):void 0:I(t);return e(function(){if(!A)return l(!1),g(!1),y(!0),void h("");var n=!0;return l(!0),r({mode:A,accessToken:o,eventsBaseUrl:a,intervalDays:c}).then(function(e){n&&(l(!1),y(e.isIntegrated),h(e.message||""),g(!e.isIntegrated))}).catch(function(e){n&&(l(!1),g(!1),y(!0),console.warn("[MODE TRACKING - ".concat(i,'] Tracking API check timed out or failed for "').concat(A,'". Fallback: banner hidden.'),e))}),function(){n=!1}},[A,i,o,a,c]),{isChecking:f,showBanner:u,message:m,isIntegrated:p,singleMode:A}}export{t as useModeTrackingStatus};
|
|
2
|
+
//# sourceMappingURL= useModeTrackingStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":" useModeTrackingStatus.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as n}from"../../../_virtual/_tslib.js";import{jsxs as i,jsx as a,Fragment as e}from"react/jsx-runtime";import{useState as r}from"react";import{X as t}from"lucide-react";import{MarkdownDocsModal as o}from"./ MarkdownDocsModal.js";var c=function(e){var r=e.message,t=void 0===r?"Integration Required: Task tracking is missing for this mode/application, it may impact the accuracy of Decision Advantage metrics, including Total Tasks Submitted and Task Completion Rate":r,o=e.onHowToIntegrate;return i("div",n({className:"tracking-integration-banner"},{children:[i("div",n({className:"tracking-banner-content"},{children:[a("span",n({className:"tracking-banner-icon","aria-hidden":"true"},{children:"⚠️"})),i("div",n({className:"tracking-banner-text"},{children:[a("span",n({className:"tracking-banner-title"},{children:"Integration Required: "})),a("span",{children:t.replace(/^Integration Required:\s*/i,"")})]}))]})),o&&i("button",n({type:"button",onClick:o,className:"tracking-banner-link"},{children:[a("span",{children:"How to integrate"}),a("span",n({"aria-hidden":"true"},{children:"→"}))]}))]}))},s=function(c){var s=c.open,l=c.onClose;c.mode;var d=c.loading,m=void 0!==d&&d,g=c.onHowToIntegrate,h=c.integrationDocs,p=r(!1),u=p[0],b=p[1];if(!s&&!u)return null;return i(e,{children:[s&&!u&&a("div",n({className:"irm-overlay",onClick:l,role:"presentation"},{children:i("div",n({className:"irm-dialog",role:"dialog","aria-modal":"true",onClick:function(n){return n.stopPropagation()}},{children:[a("button",n({type:"button",className:"irm-close-btn",onClick:l,"aria-label":"Close"},{children:a(t,{size:18})})),m?i("div",n({style:{padding:"16px 0",display:"flex",flexDirection:"column",alignItems:"center"}},{children:[a("div",{className:"irm-loading-spinner"}),a("p",n({className:"irm-loading-text"},{children:"Checking integration status..."}))]})):i(e,{children:[a("div",n({className:"irm-icon-wrapper"},{children:a("div",n({className:"irm-icon-badge"},{children:a("span",n({className:"irm-icon","aria-hidden":"true"},{children:"⚠️"}))}))})),a("h3",n({className:"irm-title"},{children:"Integration Required"})),i("p",n({className:"irm-description"},{children:["Task tracking is missing for this mode/application, it may ",a("strong",{children:" impact the accuracy of Decision Advantage"})," metrics, including ",a("strong",{children:"Total Tasks Submitted"})," and ",a("strong",{children:"Task Completion Rate"}),"."]})),i("div",n({className:"irm-actions"},{children:[a("button",n({type:"button",className:"irm-btn irm-btn--secondary",onClick:l},{children:"Later"})),a("button",n({type:"button",className:"irm-btn irm-btn--primary",onClick:function(){g?g():b(!0)}},{children:"How to integrate"}))]}))]})]}))})),a(o,{open:u,onClose:function(){b(!1),l()},integrationDocs:h})]})},l=function(e){var r=e.message,o=void 0===r?"Integration Required: Task tracking is missing for this mode/application, it may impact the accuracy of Decision Advantage metrics, including Total Tasks Submitted and Task Completion Rate.":r,c=e.onHowToIntegrate,s=e.onClose;return i("div",n({className:"dashboard-tracking-banner",role:"alert"},{children:[i("div",n({className:"dashboard-tracking-banner__left"},{children:[a("span",n({className:"dashboard-tracking-banner__icon","aria-hidden":"true"},{children:"⚠️"})),i("div",n({className:"dashboard-tracking-banner__text"},{children:[a("span",n({className:"dashboard-tracking-banner__title"},{children:"Integration Required: "})),a("span",{children:o.replace(/^Integration Required:\s*/i,"")}),c&&i("button",n({type:"button",onClick:c,className:"dashboard-tracking-banner__link"},{children:[a("span",{children:"How to integrate"}),a("span",n({"aria-hidden":"true"},{children:"→"}))]}))]}))]})),s&&a("button",n({type:"button",onClick:s,className:"dashboard-tracking-banner__close","aria-label":"Dismiss banner"},{children:a(t,{size:16})}))]}))};export{l as DashboardTrackingBanner,s as IntegrationRequiredModal,c as TrackingBanner,c as default};
|
|
2
|
+
//# sourceMappingURL=TrackingBanner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TrackingBanner.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__awaiter as e,__generator as t}from"../../../_virtual/_tslib.js";function r(r,a,n){return e(this,void 0,void 0,function(){var e,o,i;return t(this,function(t){switch(t.label){case 0:return e={accept:"application/json"},a&&"string"==typeof a&&a.trim()&&(e.Authorization="Bearer ".concat(a.replace(/^Bearer\s+/i,"").trim())),[4,fetch(r,{method:"GET",headers:e,signal:n})];case 1:return(o=t.sent()).ok?[3,3]:[4,o.json().catch(function(){return null})];case 2:throw i=t.sent(),new Error((null==i?void 0:i.error)||(null==i?void 0:i.message)||"Request failed with status ".concat(o.status));case 3:return[4,o.json()];case 4:return[2,t.sent()]}})})}var a=new Map;function n(n,o){var i=n.mode,s=n.eventsBaseUrl,c=void 0===s?"":s,l=n.accessToken,u=n.intervalDays;return e(this,void 0,void 0,function(){var e,n,s,d,m,h,g;return t(this,function(t){switch(t.label){case 0:return e=(null==c?void 0:c.trim())||"",n=null!=u?u:5,(s=a.get(i))?[2,s]:[4,r("".concat((v=e,v.replace(/\/+$/,"")),"/llm-load-balancer/api/analytics/mode-integration-status?mode_name=").concat(encodeURIComponent(i),"&interval_days=").concat(n),l,null!=o?o:AbortSignal.timeout(6e3))];case 1:if((d=t.sent())&&"object"==typeof d&&!Array.isArray(d)&&d.error)throw new Error(d.error);return Array.isArray(d)&&d.length>0?(h=d[0],g=Boolean(h.is_integrated),m={mode:h.mode_name||i,isIntegrated:g,message:g?"Mode is integrated.":"Integration Required: Task/feature tracking is not integrated for this mode/application. The data displayed here may not be accurate."}):m={mode:i,isIntegrated:!0,message:"Mode is integrated."},a.set(i,m),[2,m]}var v})})}export{n as checkModeTrackingIntegration};
|
|
2
|
+
//# sourceMappingURL=trackingIntegrationApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trackingIntegrationApi.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__awaiter as e,__generator as n,__assign as t,__rest as o}from"../../../_virtual/_tslib.js";import{jsx as r,Fragment as i,jsxs as a}from"react/jsx-runtime";import{createContext as c,useContext as l,useState as u,useRef as d,useCallback as s,useEffect as p}from"react";import{createPortal as v}from"react-dom";import{X as h}from"lucide-react";import f from"react-markdown";import m from"rehype-raw";import{BPACitationRenderer as w,ExcelHoverCard as g}from"@e-llm-studio/citation";var y=function(e){return e.replace(/<[^>]+>/g,"")},b=function(e){return Boolean(e&&/<a\s[^>]*href=|\]\([^)\s]+\)/i.test(e))},_=c(void 0);function C(o,r){var i=this,a=(null!=o?o:"").replace(/\/+$/,"");if(a){var c="".concat(a.endsWith("/backend")?a:"".concat(a,"/backend"),"/gcs/get-signed-url/");return function(o){return e(i,void 0,void 0,function(){var e,i,a,l,u;return n(this,function(n){switch(n.label){case 0:return[4,fetch(c,{method:"POST",headers:t({accept:"application/json","Content-Type":"application/json"},r?{Authorization:"Bearer ".concat(r)}:{}),body:JSON.stringify({gsutil_url:o.startsWith("gs://")?o:"gs://".concat(o)})})];case 1:if(!(e=n.sent()).ok)throw new Error("Could not get a signed URL for the workbook (".concat(e.status,")"));return[4,e.json()];case 2:return i=n.sent(),[2,null!==(u=null!==(a=null==i?void 0:i.signed_url)&&void 0!==a?a:null===(l=null==i?void 0:i.data)||void 0===l?void 0:l.signed_url)&&void 0!==u?u:null]}})})}}}var N=/^([a-z][a-z0-9_]*)\$(\d+)\$?(.*)$/i,x={excel_citations:"excel_citation",scanned_doc_citations:"scanned_doc_citation"};var k=function(e,n){try{return"true"===new URL(e,"http://example.com").searchParams.get(n)}catch(e){return!1}},H=c(!1),E=c(!1),M=function(e){var n=window.getComputedStyle(e).overflowY;return("auto"===n||"scroll"===n||"overlay"===n)&&e.scrollHeight>e.clientHeight+1};function T(e,n){p(function(){if(n){var t=0,o=!1,r=0,i=Number.NaN,a=performance.now()+2e4,c=function(){var n,l;if(!o){var u=e.current,d=null!==(l=null!==(n=null==u?void 0:u.querySelector('[data-cite-anchor="true"]'))&&void 0!==n?n:null==u?void 0:u.querySelector('[data-cite-anchor-row="true"]'))&&void 0!==l?l:null;if(u&&d){var s=d.getBoundingClientRect().top;if(r=Math.abs(s-i)<1?r+1:0,i=s,r>=6)return void function(e,n){for(var t=function(n,t){var o=e.getBoundingClientRect();return o.top>=n+24&&o.bottom<=t-24?0:o.top+o.height/2-(n+t)/2},o=n.parentElement;o&&o!==document.body&&o!==document.documentElement;o=o.parentElement)if(M(o)){var r=o.getBoundingClientRect(),i=t(Math.max(r.top,0),Math.min(r.bottom,window.innerHeight));Math.abs(i)>=1&&(o.scrollTop+=i)}var a=t(0,window.innerHeight);Math.abs(a)>=1&&window.scrollBy({top:a})}(d,u)}performance.now()<a&&(t=requestAnimationFrame(c))}};return t=requestAnimationFrame(c),function(){o=!0,cancelAnimationFrame(t)}}},[n,e])}var L=function(e){return"excel_citation"===e||"excel_citations"===e};function P(e){var n=e.title,o=e.onClose,i=e.children;return p(function(){var e=function(e){"Escape"===e.key&&o()},n=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",e),function(){document.body.style.overflow=n,window.removeEventListener("keydown",e)}},[o]),v(r("div",t({className:"rca-cite-popup",onClick:function(e){e.stopPropagation(),o()}},{children:a("div",t({className:"rca-cite-popup__panel",role:"dialog","aria-modal":"true",onClick:function(e){return e.stopPropagation()}},{children:[a("div",t({className:"rca-cite-popup__header"},{children:[r("span",t({className:"rca-cite-popup__title"},{children:n})),r("button",t({type:"button",className:"rca-cite-popup__close","aria-label":"Close citation",onClick:o},{children:r(h,{"aria-hidden":"true"})}))]})),r("div",t({className:"rca-cite-popup__body"},{children:i}))]}))})),document.body)}function R(e){var n,o,c,l=e.href,h=e.citations,f=e.resolveGcsUrl,m=e.display,y=e.hoverEnabled,b=e.autoScroll,_=e.children,C=u(!1),N=C[0],x=C[1],H=d(null);T(H,b&&N);var E=s(function(){return x(!1)},[]),M="popup"===m,R=y&&k(l,"hover")&&null!==(c=null===(o=null===(n=function(e,n){var t,o;if(!(null==e?void 0:e.length))return null;var r=null;try{var i=new URL(n,"http://example.com").searchParams;r=null!==(t=i.get("citationNumber"))&&void 0!==t?t:i.get("citation_number")}catch(e){return null}return r&&null!==(o=e.find(function(e){var n,t,o,i=null!==(t=null===(n=null==e?void 0:e.customMetaData)||void 0===n?void 0:n.type)&&void 0!==t?t:null===(o=null==e?void 0:e.customMetadata)||void 0===o?void 0:o.type;return L(i)&&String(null==e?void 0:e.citation_number)===r}))&&void 0!==o?o:null}(h,l))||void 0===n?void 0:n.customMetaData)||void 0===o?void 0:o.hover)&&void 0!==c?c:"",S=function(e){var n=d(null),t=d(void 0),o=u(null),r=o[0],i=o[1],a=function(){return window.clearTimeout(t.current)},c=s(function(){window.clearTimeout(t.current),i(null)},[]);return p(function(){if(r)return window.addEventListener("scroll",c,!0),function(){return window.removeEventListener("scroll",c,!0)}},[r,c]),p(function(){return function(){return window.clearTimeout(t.current)}},[]),{anchorRef:n,position:r,show:function(){var t;a();var o=null===(t=n.current)||void 0===t?void 0:t.getBoundingClientRect();if(e&&o){var r=Math.max(16,Math.min(o.left,window.innerWidth-280-16)),c=window.innerHeight-o.bottom<280&&o.top>window.innerHeight-o.bottom;i({left:r,top:c?o.top-6:o.bottom+6,above:c})}},scheduleHide:function(){a(),t.current=window.setTimeout(function(){return i(null)},120)},cancelClose:a,hide:c}}(Boolean(R.trim())),B=k(l,"calculation"),U=r(w,t({href:l,citations:h,excelCitationData:{citations:h,resolveGcsUrl:f,openFullscreenOnExpand:!0,showCalculation:B}},{children:_}));return a(i,{children:[r("button",t({ref:S.anchorRef,type:"button",className:"rca-cite-link".concat(!M&&N?" rca-cite-link--open":""),"aria-haspopup":M?"dialog":void 0,"aria-expanded":M?void 0:N,onMouseEnter:S.show,onMouseLeave:S.scheduleHide,onFocus:S.show,onBlur:S.scheduleHide,onClick:function(e){e.stopPropagation(),S.hide(),x(function(e){return!!M||!e})}},{children:_})),!S.position||M&&N||"undefined"==typeof document?null:v(r("div",t({className:"rca-cite-hover",role:"tooltip",style:{left:S.position.left,top:S.position.top,transform:S.position.above?"translateY(-100%)":void 0},onMouseEnter:S.cancelClose,onMouseLeave:S.scheduleHide},{children:r(g,{hover:R,action:a("button",t({type:"button",className:"rca-cite-hover__open",onClick:function(e){e.stopPropagation(),S.hide(),x(!0)}},{children:["Click to open the source ",r("span",t({"aria-hidden":"true"},{children:"→"}))]}))})})),document.body),N&&M?r(P,t({title:_,onClose:E},{children:r("span",t({ref:H,className:"rca-cite-popup__citation"},{children:U}))})):null,N&&!M?r("span",t({ref:H,className:"rca-cite-dropdown",onClick:function(e){return e.stopPropagation()}},{children:U})):null]})}function S(e){var n=e.text,a=e.citations,c=e.resolveGcsUrl,u=e.excelDisplay,d=void 0===u?"dropdown":u,s=e.excelHover,p=e.autoScrollToCitedCell,v=l(H),h=null!=p?p:v,g=l(E),y=null!=s?s:g,b=l(_),C=null!=c?c:b,k={p:function(e){var n=e.children;return r(i,{children:n})},red:function(e){var n=e.children;return r("span",t({className:"rca-cite-red"},{children:n}))},green:function(e){var n=e.children;return r("span",t({className:"rca-cite-green"},{children:n}))},a:function(e){var n=e.href,i=e.children;e.node;var c=o(e,["href","children","node"]),l=n?function(e){var n,t,o=N.exec(e.trim());try{t=new URL(o?o[3]||"./":e,"http://example.com")}catch(n){return{citationType:null,rendererHref:e}}var r=t.searchParams,i=(null==o?void 0:o[1])||r.get("citation_type");return o&&i?(r.set("citation_type",null!==(n=x[i])&&void 0!==n?n:i),r.get("citationNumber")||r.set("citationNumber",o[2]),{citationType:i,rendererHref:".".concat(t.pathname,"?").concat(r.toString())}):{citationType:i,rendererHref:e}}(n):null;return(null==l?void 0:l.citationType)?L(l.citationType)?r(R,t({href:l.rendererHref,citations:a,resolveGcsUrl:C,display:d,hoverEnabled:y,autoScroll:h},{children:i})):r(w,t({href:l.rendererHref,citations:a,excelCitationData:{citations:a,resolveGcsUrl:C}},{children:i})):r("a",t({href:n},c,{children:i}))}};return r(f,t({rehypePlugins:[m],components:k},{children:n}))}export{H as AutoScrollToCitedCellContext,S as CitationMarkdown,_ as ExcelGcsResolverContext,E as ExcelHoverContext,C as createCwGcsResolver,b as hasCitationLink,y as stripMarkup};
|
|
2
|
+
//# sourceMappingURL=CitationMarkdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CitationMarkdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsx as i,jsxs as n,Fragment as c}from"react/jsx-runtime";import{useState as t,useId as a}from"react";import{Sparkles as l,Search as r,CheckCircle2 as o,ChevronUp as s,ChevronDown as d,Lightbulb as u}from"lucide-react";import{AutoScrollToCitedCellContext as h,ExcelHoverContext as _,hasCitationLink as v,CitationMarkdown as m}from"./CitationMarkdown.js";import g from"../../../assets/icons/cognitive_desicioning_icon_brain.svg.js";var p=function(e){return void 0===e&&(e=0),Math.max(0,Math.min(100,Math.round(e)))};function N(n){var t=n.text.split(/(\*\*[^*]+\*\*|`[^`]+`)/g);return i(c,{children:t.map(function(n,c){return/^\*\*[^*]+\*\*$/.test(n)?i("strong",e({className:"rca-decision__strong"},{children:n.slice(2,-2)}),c):/^`[^`]+`$/.test(n)?i("code",e({className:"rca-decision__code"},{children:n.slice(1,-1)}),c):n})})}function f(e){var n=e.text,t=e.citations,a=e.resolveGcsUrl,l=e.excelDisplay,r=e.excelHover;return"string"!=typeof n?i(c,{children:n}):v(n)?i(m,{text:n,citations:t,resolveGcsUrl:a,excelDisplay:l,excelHover:r}):i(N,{text:n})}function x(c){var t=c.open,a=c.onToggle,l=c.label,r=void 0===l?"cognitive decisioning":l;return n("button",e({type:"button",className:"rca-decision__reasoning-trigger","aria-label":"".concat(t?"Hide":"Show"," ").concat(r),"aria-expanded":t,onClick:a},{children:[i("img",{src:g,alt:""}),i(t?s:d,{"aria-hidden":"true"})]}))}function b(c){var a,o,h=c.decisioning,_=c.resolveExcelCitationGcsUrl,v=t(!0),N=v[0],f=v[1],x=p(h.score),b=null!==(a=h.decisionMakingFactors)&&void 0!==a?a:[],C=null!==(o=h.gapsInDecision)&&void 0!==o?o:[];return n("div",e({className:"rca-decision__reasoning"},{children:[h.explanation?n("section",e({className:"rca-decision__explanation"},{children:[i("h3",{children:"Explanation"}),i("div",{children:"string"==typeof h.explanation?i(m,{text:h.explanation,citations:h.citations,resolveGcsUrl:_}):h.explanation})]})):null,n("section",e({className:"rca-decision__cognitive"},{children:[n("button",e({type:"button",className:"rca-decision__cognitive-toggle","aria-expanded":N,onClick:function(){return f(function(e){return!e})}},{children:[n("span",e({className:"rca-decision__cognitive-title"},{children:[i("img",{src:g,alt:""}),"Cognitive Decisioning AI"]})),n("span",e({className:"rca-decision__score"},{children:[i(l,{"aria-hidden":"true"}),x,"%"]})),i(N?s:d,{"aria-hidden":"true"})]})),N?n("div",e({className:"rca-decision__cognitive-body"},{children:[i(y,{icon:i(u,{"aria-hidden":"true"}),title:"Decision Making Factors",items:b,evidence:h.evidence,citations:h.citations,resolveGcsUrl:_}),i(y,{icon:i(r,{"aria-hidden":"true"}),title:"Gaps in Decision",items:C.length?C:["No gaps identified"],citations:h.citations,resolveGcsUrl:_})]})):null]}))]}))}function y(a){var r=a.icon,o=a.title,u=a.items,h=a.evidence,_=a.citations,g=a.resolveGcsUrl,p=t(!1),N=p[0],f=p[1];return u.length?n("div",e({className:"rca-decision__reasoning-section"},{children:[n("h4",{children:[i("span",e({className:"rca-decision__subsection-icon"},{children:r})),o]}),i("ol",{children:u.map(function(t,a){return n("li",{children:["string"==typeof t&&v(t)?i(m,{text:t,citations:_,resolveGcsUrl:g}):t,0===a&&h?n(c,{children:[n("button",e({type:"button",className:"rca-decision__evidence-trigger","aria-expanded":N,onClick:function(){return f(function(e){return!e})}},{children:[i(l,{"aria-hidden":"true"}),h.label,i(N?s:d,{"aria-hidden":"true"})]})),N?i(C,{evidence:h,onClose:function(){return f(!1)}}):null]}):null]},"".concat(o,"-").concat(a))})})]})):null}function C(t){var a,l,r=t.evidence,o=t.onClose,d=function(e){if(!r.highlight||"string"!=typeof e)return e;var t=e.indexOf(r.highlight);return t<0?e:n(c,{children:[e.slice(0,t),i("mark",{children:r.highlight}),e.slice(t+r.highlight.length)]})};return n("div",e({className:"rca-decision__evidence-detail"},{children:[n("button",e({type:"button",className:"rca-decision__evidence-header",onClick:o},{children:[i("span",{children:null!==(a=r.title)&&void 0!==a?a:r.label}),i(s,{"aria-hidden":"true"})]})),n("div",e({className:"rca-decision__evidence-body"},{children:[r.description?i("p",{children:r.description}):null,null===(l=r.items)||void 0===l?void 0:l.map(function(e,n){return i("p",{children:d(e)},n)})]})),r.footer?i("div",e({className:"rca-decision__evidence-footer"},{children:r.footer})):null]}))}function G(c){var l=c.title,r=c.items,o=c.tone,u=c.icon,h=c.layout,_=void 0===h?"list":h,v=c.resolveExcelCitationGcsUrl,m=t(null),g=m[0],p=m[1],N=t(function(){return new Set}),y=N[0];N[1];var C=t(!1),G=C[0],U=C[1],w=a(),k=G?r:r.slice(0,3),E="cards"===_;return n("section",e({className:"rca-decision__section"},{children:[n("h2",{children:[i("span",e({className:"rca-decision__section-icon rca-decision__section-icon--".concat(o)},{children:u})),l]}),i("ol",e({className:"rca-decision__items".concat(E?" rca-decision__items--cards":""),id:w},{children:k.map(function(c,t){var a,l,r,s=null!==(a=c.id)&&void 0!==a?a:"".concat(o,"-").concat(t),d=g===s;if(E){y.has(s);var u=c.tag?i("span",e({className:"rca-decision__tag rca-decision__tag--".concat(null!==(l=c.tag.tone)&&void 0!==l?l:"neutral")},{children:c.tag.label})):null;return n("li",e({className:"rca-decision__card"},{children:[c.title?n("div",e({className:"rca-decision__card-head"},{children:[n("span",e({className:"rca-decision__card-title"},{children:[t+1,". ",c.title]})),u]})):null,n("div",e({className:"rca-decision__item-row"},{children:[c.title?null:u,c.title?null:n("span",e({className:"rca-decision__card-number"},{children:[t+1,". "]})),i("div",e({className:"rca-decision__item-content"},{children:i(f,{text:c.content,citations:c.citations,resolveGcsUrl:v})})),c.decisioning?i(x,{open:d,onToggle:function(){return p(d?null:s)}}):null]})),null,null,d&&c.decisioning?i(b,{decisioning:c.decisioning,resolveExcelCitationGcsUrl:v}):null]}),s)}return n("li",{children:[n("div",e({className:"rca-decision__item-row"},{children:[c.tag?i("span",e({className:"rca-decision__tag rca-decision__tag--".concat(null!==(r=c.tag.tone)&&void 0!==r?r:"neutral")},{children:c.tag.label})):null,i("div",e({className:"rca-decision__item-content"},{children:i(f,{text:c.content,citations:c.citations,resolveGcsUrl:v})})),c.decisioning?i(x,{open:d,onToggle:function(){return p(d?null:s)}}):null]})),d&&c.decisioning?i(b,{decisioning:c.decisioning,resolveExcelCitationGcsUrl:v}):null]},s)})})),r.length>3?n("button",e({type:"button",className:"rca-decision__see-more","aria-controls":w,"aria-expanded":G,onClick:function(){U(!G),p(null)}},{children:[G?"See Less":"See More (".concat(r.length-3,")"),i(G?s:d,{"aria-hidden":"true"})]})):null]}))}function U(c){var a=c.title,s=void 0===a?"Decision Advantage":a,d=c.score,u=c.summary,v=c.footer,m=c.evidenceNote,g=c.notice,N=c.headerActions,y=c.afterSections,C=c.decisioning,U=c.rootCause,w=c.rootCauseLayout,k=void 0===w?"list":w,E=c.nextSteps,D=c.resolveExcelCitationGcsUrl,S=c.autoScrollToCitedCell,M=void 0!==S&&S,H=c.excelHover,T=void 0!==H&&H,j=c.width,A=c.maxWidth,I=c.height,F=c.className,L=void 0===F?"":F,P=t(!1),W=P[0],$=P[1];return i(h.Provider,e({value:M},{children:i(_.Provider,e({value:T},{children:n("article",e({className:"rca-decision ".concat(void 0!==I?"rca-decision--fixed-height":""," ").concat(L).trim(),style:{width:j,height:I,maxWidth:null!=A?A:j?"none":void 0}},{children:[n("header",e({className:"rca-decision__header"},{children:[i("span",{children:s}),n("span",e({className:"rca-decision__header-end"},{children:[N,C?i(x,{open:W,onToggle:function(){return $(function(e){return!e})},label:"how the AI reached this report"}):null,null!=d?n("span",e({className:"rca-decision__header-score"},{children:[i(l,{"aria-hidden":"true"}),p(d),"%"]})):null]}))]})),n("div",e({className:"rca-decision__body"},{children:[g?i("div",e({className:"rca-decision__notice"},{children:g})):null,W&&C?i("div",e({className:"rca-decision__header-reasoning"},{children:i(b,{decisioning:C,resolveExcelCitationGcsUrl:D})})):null,u&&(u.headline||u.body)?n("section",e({className:"rca-decision__summary"},{children:[u.eyebrow?i("span",e({className:"rca-decision__eyebrow"},{children:u.eyebrow})):null,u.headline?i("h2",e({className:"rca-decision__headline"},{children:i(f,{text:u.headline,citations:u.citations,resolveGcsUrl:D,excelDisplay:"popup",excelHover:!0})})):null,u.body?i("div",e({className:"rca-decision__summary-body"},{children:i(f,{text:u.body,citations:u.citations,resolveGcsUrl:D,excelHover:!0})})):null,m?i("p",e({className:"rca-decision__evidence-note"},{children:m})):null]})):m?i("p",e({className:"rca-decision__evidence-note"},{children:m})):null,U.length?i(G,{title:"Root Cause",items:U,tone:"root-cause",icon:i(r,{"aria-hidden":"true"}),layout:k,resolveExcelCitationGcsUrl:D}):null,E.length?i(G,{title:"Next Steps",items:E,tone:"next-steps",icon:i(o,{"aria-hidden":"true"}),resolveExcelCitationGcsUrl:D}):null,y,v?i("p",e({className:"rca-decision__footer"},{children:v})):null]}))]}))}))}))}export{U as RcaDecisionComponent,b as ReasoningPanel,x as ReasoningTrigger,U as default};
|
|
2
2
|
//# sourceMappingURL=RcaDecisionComponent.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as l,__spreadArray as e,__assign as i}from"../../../_virtual/_tslib.js";import{jsx as o,jsxs as n}from"react/jsx-runtime";import{useRef as t,useState as r,useEffect as a}from"react";import{DataTable as d}from"primereact/datatable";import{Column as u}from"primereact/column";import{ColumnGroup as c}from"primereact/columngroup";import{Row as s}from"primereact/row";import{Skeleton as p}from"primereact/skeleton";import"primereact/resources/primereact.min.css";import"primeicons/primeicons.css";function m(m){var v,f,h,g,y=m.rows,w=void 0===y?[]:y,N=m.loading,
|
|
1
|
+
import{__rest as l,__spreadArray as e,__assign as i}from"../../../_virtual/_tslib.js";import{jsx as o,jsxs as n}from"react/jsx-runtime";import{useRef as t,useState as r,useEffect as a}from"react";import{DataTable as d}from"primereact/datatable";import{Column as u}from"primereact/column";import{ColumnGroup as c}from"primereact/columngroup";import{Row as s}from"primereact/row";import{Skeleton as p}from"primereact/skeleton";import"primereact/resources/primereact.min.css";import"primeicons/primeicons.css";function m(m){var v,f,h,g,y=m.rows,w=void 0===y?[]:y,N=m.loading,b=m.loadingMore,x=m.onLoadMore,C=m.hasMore,_=m.emptyState,k=m.columns,S=m.tableProps,R=m.onRowClick,E=m.rowDetail,j=m.scrollHeight,T=void 0===j?"flex":j,D=t(null);t(null);var H="function"==typeof(null==E?void 0:E.render),M=r({}),L=M[0],q=M[1],A=function(l){return!(!(null==l?void 0:l.id)||!L[l.id])},B=function(l){(null==l?void 0:l.id)&&q(function(e){var o,n;return(null==E?void 0:E.multiple)?i(i({},e),((o={})[l.id]=!0,o)):((n={})[l.id]=!0,n)})},z=function(l){(null==l?void 0:l.id)&&q(function(e){var o=i({},e);return delete o[l.id],o})},F=function(l){return A(l)?z(l):B(l)},G=null!=S?S:{},K=G.onRowClick,O=G.rowClassName,P=l(G,["onRowClick","rowClassName"]),W=e(e([],w,!0),b?[{id:"__loading-more",__loading:!0}]:[],!0),I=!b&&x&&!1===C&&(null!==(v=null==k?void 0:k.length)&&void 0!==v?v:0)>0?o(c,{children:o(s,{children:o(u,{colSpan:k.length,footer:n("span",i({className:"audit-paginationEndContent"},{children:[o("i",{className:"pi pi-check-circle","aria-hidden":"true"}),"No more records to load"]})),footerClassName:"audit-paginationEnd"})})}):void 0;return a(function(){var l,e=null===(l=D.current)||void 0===l?void 0:l.querySelector(".p-datatable-wrapper");if(e){var i=!1,o=function(){i||(i=!0,requestAnimationFrame(function(){var l=e.scrollTop;e.scrollHeight-l-e.clientHeight<100&&C&&!b&&(null==x||x()),i=!1}))};return e.addEventListener("scroll",o),function(){e.removeEventListener("scroll",o)}}},[w,C,b,x]),N?o("div",{children:e([],Array(5),!0).map(function(l,e){return n("div",i({className:"audit-skeletonRow"},{children:[o(p,{height:0===e?"55px":"25px",width:"25%"}),o(p,{height:0===e?"55px":"25px",width:"50%"}),o(p,{height:0===e?"55px":"25px",width:"25%"})]}),e)})}):w&&0!==w.length?o("div",i({className:"audit-tableWrap",ref:D},{children:o(d,i({value:W,className:"audit-table ".concat(null!==(g=null==S?void 0:S.className)&&void 0!==g?g:""),dataKey:"id",scrollable:!0,scrollHeight:T},P,{rowClassName:function(l,e){var o="function"==typeof O?O(l,e):O,n=!H&&!R||(null==l?void 0:l.__loading)?"":"audit-row--clickable";return o&&"object"==typeof o?i(i({},o),{"audit-row--clickable":!!n}):[o,n].filter(Boolean).join(" ")},expandedRows:L,onRowToggle:function(l){return q(l.data)},rowExpansionTemplate:H?function(l){var e;return!H||(null==l?void 0:l.__loading)?null:o("div",i({className:"audit-rowDetail ".concat(null!==(e=null==E?void 0:E.className)&&void 0!==e?e:""),style:null==E?void 0:E.style},{children:E.render(l,{close:function(){return z(l)}})}))}:void 0,onRowClick:function(l){var e,i,o=null==l?void 0:l.data;if(o&&!o.__loading){var n=null===(e=null==l?void 0:l.originalEvent)||void 0===e?void 0:e.target;(null===(i=null==n?void 0:n.closest)||void 0===i?void 0:i.call(n,"button, a, input, .audit-seeMore"))||(null==R||R(o,{isExpanded:A(o),expand:function(){return B(o)},collapse:function(){return z(o)},toggle:function(){return F(o)}}),H&&!1!==(null==E?void 0:E.expandOnRowClick)&&F(o)),null==K||K(l)}},footerColumnGroup:I},{children:null==k?void 0:k.map(function(l){return o(u,{field:l.key,sortable:l.sortable,header:null==l?void 0:l.header,body:function(e){return(null==e?void 0:e.__loading)?o(p,{height:"25px"}):null==l?void 0:l.body(e)},style:null==l?void 0:l.style,headerStyle:null==l?void 0:l.headerStyle,bodyStyle:null==l?void 0:l.bodyStyle,headerClassName:null==l?void 0:l.headerClassName,bodyClassName:null==l?void 0:l.bodyClassName,pt:{bodyCell:{style:{padding:"16px"}},headerCell:{style:{padding:"16px"}}}},null==l?void 0:l.key)})}))})):n("div",i({className:"audit-emptyState"},{children:[(null==_?void 0:_.icon)?_.icon:o("i",{className:"pi pi-file",style:{fontSize:"63px",marginBottom:"8px"}}),o("div",i({className:"audit-emptyTitle"},{children:null!==(f=null==_?void 0:_.title)&&void 0!==f?f:"No Data found"})),o("div",i({className:"audit-emptyDesc"},{children:null!==(h=null==_?void 0:_.description)&&void 0!==h?h:"Try adjusting your filters or search criteria."}))]}))}export{m as default};
|
|
2
2
|
//# sourceMappingURL=FTable.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__spreadArray as r}from"../../_virtual/_tslib.js";var n=["graphBuilder","kpiCards","barCharts","pieCharts","tableBuilder"],e=["dateFilters","sidebarFilters"],t={barchartbuilder:"barcharts",piechartbuilder:"piecharts"};function i(r){var n;if("string"!=typeof r)return null;var e=r.trim().toLowerCase().replace(/[\s_-]/g,"");return e.length?null!==(n=t[e])&&void 0!==n?n:e:null}function a(r,n){if(!Array.isArray(r))return!1;var e=i(n);return null!=e&&r.some(function(r){return i(r)===e})}function o(r,n,e){n.length&&"production"!==process.env.NODE_ENV&&console.warn("[federated-dashboard] ".concat(r,": ignored unrecognized section ")+"".concat(1===n.length?"name":"names"," ").concat(n.map(function(r){return JSON.stringify(r)}).join(", "),". Available sections: ").concat(e.join(", "),"."))}function u(r,n,t){if(null==r)return[];if(!Array.isArray(r))return o(t,[r],n),[];var a=new Map;n.forEach(function(r){var n=i(r);n&&a.set(n,r)});for(var u=new Set(e.map(i)),c=[],s=[],l=0,d=r;l<d.length;l++){var f=d[l],h=i(f),p=h?a.get(h):void 0;p?c.includes(p)||c.push(p):h&&u.has(h)||s.push(f)}return o(t,s,n),c}function c(e,t,i,a){void 0===a&&(a=n);var o=u(e,a,"sectionOrder"),c=o.length?o:u(i,a,"uiConfig.data.sectionOrder"),s=u(t,a,"hiddenSections");return r(r([],c,!0),a.filter(function(r){return!c.includes(r)}),!0).filter(function(r){return!s.includes(r)})}export{n as DASHBOARD_SECTION_KEYS,e as PINNED_SECTION_KEYS,a as isSectionHidden,c as resolveSectionOrder};
|
|
1
|
+
import{__spreadArray as r}from"../../_virtual/_tslib.js";var n=["graphBuilder","kpiCards","decisionAdvantage","barCharts","pieCharts","tableBuilder"],e=["dateFilters","sidebarFilters"],t={barchartbuilder:"barcharts",piechartbuilder:"piecharts"};function i(r){var n;if("string"!=typeof r)return null;var e=r.trim().toLowerCase().replace(/[\s_-]/g,"");return e.length?null!==(n=t[e])&&void 0!==n?n:e:null}function a(r,n){if(!Array.isArray(r))return!1;var e=i(n);return null!=e&&r.some(function(r){return i(r)===e})}function o(r,n,e){n.length&&"production"!==process.env.NODE_ENV&&console.warn("[federated-dashboard] ".concat(r,": ignored unrecognized section ")+"".concat(1===n.length?"name":"names"," ").concat(n.map(function(r){return JSON.stringify(r)}).join(", "),". Available sections: ").concat(e.join(", "),"."))}function u(r,n,t){if(null==r)return[];if(!Array.isArray(r))return o(t,[r],n),[];var a=new Map;n.forEach(function(r){var n=i(r);n&&a.set(n,r)});for(var u=new Set(e.map(i)),c=[],s=[],l=0,d=r;l<d.length;l++){var f=d[l],h=i(f),p=h?a.get(h):void 0;p?c.includes(p)||c.push(p):h&&u.has(h)||s.push(f)}return o(t,s,n),c}function c(e,t,i,a){void 0===a&&(a=n);var o=u(e,a,"sectionOrder"),c=o.length?o:u(i,a,"uiConfig.data.sectionOrder"),s=u(t,a,"hiddenSections");return r(r([],c,!0),a.filter(function(r){return!c.includes(r)}),!0).filter(function(r){return!s.includes(r)})}export{n as DASHBOARD_SECTION_KEYS,e as PINNED_SECTION_KEYS,a as isSectionHidden,c as resolveSectionOrder};
|
|
2
2
|
//# sourceMappingURL=sectionOrder.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsx as n,jsxs as t}from"react/jsx-runtime";import{useState as l,useEffect as i}from"react";import{X as r,Check as a}from"lucide-react";import{parseSuggestedRule as c,buildDraftMessage as o}from"./parser.js";import s from"./ReviewLearningConditionsModal.module.css.js";var d=function(d){var u=d.isOpen,m=d.onClose,p=d.onContinue,f=d.summary,h=d.inferredLearning,g=d.isLoading,v=void 0!==g&&g,b=l([]),N=b[0],C=b[1],y=l(""),k=y[0],w=y[1],L=l(null),A=(L[0],L[1]),x=l("");x[0];var S=x[1];if(i(function(){if(u){var e=c(f);C(e.categories),w(e.ruleAction||"New rule."),A(null),S("")}},[u,f]),!u)return null;var j=(null==h?void 0:h.trim())||k||"",B=N.filter(function(e){return"configurable"===e.type}).flatMap(function(e){return e.options||[]}),R=B.length>0&&B.every(function(e){return e.selected});return n("div",e({className:s.overlay,onClick:m,role:"dialog","aria-modal":"true","aria-labelledby":"review-learning-title"},{children:t("div",e({className:s.modal,onClick:function(e){return e.stopPropagation()}},{children:[t("div",e({className:s.header},{children:[n("h2",e({id:"review-learning-title",className:s.title},{children:"Review learning conditions"})),n("p",e({className:s.subtitle},{children:"We identified these conditions from the recurring pattern. Deselect anything that should not be included in the learning."})),n("button",e({type:"button",className:s.closeButton,onClick:m,"aria-label":"Close dialog"},{children:n(r,{size:18})}))]})),t("div",e({className:s.body},{children:[Boolean(j)&&t("div",e({className:s.inferredCard},{children:[n("div",e({className:s.inferredLabel},{children:"Inferred Learning"})),n("p",e({className:s.inferredText},{children:j}))]})),n("div",e({className:s.selectAllRow},{children:t("button",e({type:"button",className:s.selectAllControl,onClick:function(){var n=!R;console.log("Select all toggled",{shouldSelectAll:n}),C(function(t){return t.map(function(t){return"configurable"!==t.type?t:e(e({},t),{options:t.options.map(function(t){return e(e({},t),{selected:n})})})})})},"aria-pressed":R},{children:[n("span",e({className:"".concat(s.selectAllCheckbox," ").concat(R?s.selectAllCheckboxChecked:"")},{children:R&&n(a,{size:12,strokeWidth:3})})),n("span",{children:"Select all"})]}))})),N.map(function(l,i){if("configurable"!==l.type)return null;var r=(l.options||[]).filter(function(e){return e.selected}).length;return l.tag,t("div",e({className:s.categorySection},{children:[t("div",e({className:s.categoryHeader},{children:[n("span",e({className:s.categoryLabel},{children:l.label})),t("span",e({className:s.categoryCount},{children:[r," selected"]}))]})),n("div",e({className:s.pillsRow},{children:(l.options||[]).map(function(l){return t("button",e({type:"button",className:"".concat(s.pill," ").concat(l.selected?s.pillSelected:s.pillDeselected),onClick:function(){return function(n,t){C(function(l){return l.map(function(l,i){return i!==n?l:e(e({},l),{options:l.options.map(function(n){return n.id===t?e(e({},n),{selected:!n.selected}):n})})})})}(i,l.id)}},{children:[l.selected&&n(a,{size:13,strokeWidth:2.5,className:s.checkIcon}),n("span",{children:l.value})]}),l.id)})}))]}),l.tag||"cat-".concat(i))})]})),t("div",e({className:s.footer},{children:[n("button",e({type:"button",className:s.cancelButton,onClick:m,disabled:v},{children:"Cancel"})),n("button",e({type:"button",className:s.continueButton,onClick:function(){var e=o(N,k);p(e)},disabled:v},{children:v?"Preparing...":"Continue to Generate Learning"}))]}))]}))}))};export{d as ReviewLearningConditionsModal,d as default};
|
|
2
2
|
//# sourceMappingURL=ReviewLearningConditionsModal.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={overlay:"ReviewLearningConditionsModal-module_overlay__7x4JS",fadeIn:"ReviewLearningConditionsModal-module_fadeIn__M5tiM",modal:"ReviewLearningConditionsModal-module_modal__b6vcs",slideUp:"ReviewLearningConditionsModal-module_slideUp__I1z5s",header:"ReviewLearningConditionsModal-module_header__H37IG",title:"ReviewLearningConditionsModal-module_title__IxeAR",subtitle:"ReviewLearningConditionsModal-module_subtitle__UfjDL",closeButton:"ReviewLearningConditionsModal-module_closeButton__P1hJi",body:"ReviewLearningConditionsModal-module_body__ZXzL-",inferredCard:"ReviewLearningConditionsModal-module_inferredCard__JFTxd",inferredLabel:"ReviewLearningConditionsModal-module_inferredLabel__saLT7",inferredText:"ReviewLearningConditionsModal-module_inferredText__WNLhx",categorySection:"ReviewLearningConditionsModal-module_categorySection__AILgJ",categoryHeader:"ReviewLearningConditionsModal-module_categoryHeader__LaW5a",categoryLabel:"ReviewLearningConditionsModal-module_categoryLabel__H4Nn9",categoryCount:"ReviewLearningConditionsModal-module_categoryCount__opzUO",pillsRow:"ReviewLearningConditionsModal-module_pillsRow__DLqtd",pill:"ReviewLearningConditionsModal-module_pill__qPAoB",pillSelected:"ReviewLearningConditionsModal-module_pillSelected__hd3EE",pillDeselected:"ReviewLearningConditionsModal-module_pillDeselected__Fkbfn",checkIcon:"ReviewLearningConditionsModal-module_checkIcon__yWJ7l",addButton:"ReviewLearningConditionsModal-module_addButton__kpXy1",addInputContainer:"ReviewLearningConditionsModal-module_addInputContainer__rkGYe",addInput:"ReviewLearningConditionsModal-module_addInput__lIcIg",addConfirmButton:"ReviewLearningConditionsModal-module_addConfirmButton__HczRO",addCancelButton:"ReviewLearningConditionsModal-module_addCancelButton__XigwV",footer:"ReviewLearningConditionsModal-module_footer__7FiJ7",cancelButton:"ReviewLearningConditionsModal-module_cancelButton__OqwLc",continueButton:"ReviewLearningConditionsModal-module_continueButton__dNBHk"};export{e as default};
|
|
1
|
+
var e={overlay:"ReviewLearningConditionsModal-module_overlay__7x4JS",fadeIn:"ReviewLearningConditionsModal-module_fadeIn__M5tiM",modal:"ReviewLearningConditionsModal-module_modal__b6vcs",slideUp:"ReviewLearningConditionsModal-module_slideUp__I1z5s",header:"ReviewLearningConditionsModal-module_header__H37IG",title:"ReviewLearningConditionsModal-module_title__IxeAR",subtitle:"ReviewLearningConditionsModal-module_subtitle__UfjDL",closeButton:"ReviewLearningConditionsModal-module_closeButton__P1hJi",body:"ReviewLearningConditionsModal-module_body__ZXzL-",inferredCard:"ReviewLearningConditionsModal-module_inferredCard__JFTxd",inferredLabel:"ReviewLearningConditionsModal-module_inferredLabel__saLT7",inferredText:"ReviewLearningConditionsModal-module_inferredText__WNLhx",categorySection:"ReviewLearningConditionsModal-module_categorySection__AILgJ",categoryHeader:"ReviewLearningConditionsModal-module_categoryHeader__LaW5a",categoryLabel:"ReviewLearningConditionsModal-module_categoryLabel__H4Nn9",categoryCount:"ReviewLearningConditionsModal-module_categoryCount__opzUO",selectAllRow:"ReviewLearningConditionsModal-module_selectAllRow__-H8PS",selectAllControl:"ReviewLearningConditionsModal-module_selectAllControl__NUtrJ",selectAllCheckbox:"ReviewLearningConditionsModal-module_selectAllCheckbox__eOk-V",selectAllCheckboxChecked:"ReviewLearningConditionsModal-module_selectAllCheckboxChecked__BG0OE",pillsRow:"ReviewLearningConditionsModal-module_pillsRow__DLqtd",pill:"ReviewLearningConditionsModal-module_pill__qPAoB",pillSelected:"ReviewLearningConditionsModal-module_pillSelected__hd3EE",pillDeselected:"ReviewLearningConditionsModal-module_pillDeselected__Fkbfn",checkIcon:"ReviewLearningConditionsModal-module_checkIcon__yWJ7l",addButton:"ReviewLearningConditionsModal-module_addButton__kpXy1",addInputContainer:"ReviewLearningConditionsModal-module_addInputContainer__rkGYe",addInput:"ReviewLearningConditionsModal-module_addInput__lIcIg",addConfirmButton:"ReviewLearningConditionsModal-module_addConfirmButton__HczRO",addCancelButton:"ReviewLearningConditionsModal-module_addCancelButton__XigwV",footer:"ReviewLearningConditionsModal-module_footer__7FiJ7",cancelButton:"ReviewLearningConditionsModal-module_cancelButton__OqwLc",continueButton:"ReviewLearningConditionsModal-module_continueButton__dNBHk"};export{e as default};
|
|
2
2
|
//# sourceMappingURL=ReviewLearningConditionsModal.module.css.js.map
|