/*
Copyright (C) 2025 QuantumNous
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
For commercial licensing, please contact support@quantumnous.com
*/
import React, { useCallback, useMemo, useState } from 'react';
import { Button, Card, Typography } from '@/components/ui';
import { ActionCenter, ACTION_TABS } from './ActionCenter';
import {
ChangeAttribution,
TiersAndRankings,
TopModels,
TrendChart,
} from './Analysis';
import { HealthSegments, KeyFindings, KpiGrid, ReportHeader } from './Overview';
import { SectionTitle } from './shared';
import {
EMPTY_DETAIL_FILTER,
exportOrgDetail,
OrgDetailTable,
SalesRepTable,
} from './Tables';
import {
deriveActionLists,
deriveFindings,
deriveSalesReps,
getCnyParams,
} from './utils';
const { Text } = Typography;
// 页签内锚点跳转:顶栏与跑马灯为 fixed,元素上已加 scroll-mt 让位
const scrollToId = (id) => {
const el = document.getElementById(id);
if (el) el.scrollIntoView({ behavior: 'smooth', block: 'start' });
};
const ReportSkeleton = () => (