// 실적신고관리 Mock 데이터

import type {
  PerformanceReport,
  MissedReport,
  PerformanceReportStats,
  ConfirmStatus,
} from './types';

// ===== 상태별 색상 매핑 =====

export const confirmStatusColorMap: Record<ConfirmStatus, string> = {
  확정: 'bg-green-100 text-green-800',
  미확정: 'bg-gray-100 text-gray-800',
};

// ===== Mock 데이터 - 분기별 실적신고 =====

export const mockPerformanceReports: PerformanceReport[] = [
  {
    id: '1',
    qualityDocNumber: 'QD-2026-001',
    createdDate: '2026-01-05',
    siteName: '강남 센트럴 파크',
    client: '삼성물산',
    locationCount: 45,
    requiredInfo: '입력완료',
    confirmStatus: '확정',
    confirmDate: '2026-01-10',
    memo: '3차 검사 완료',
    year: 2026,
    quarter: 'Q1',
  },
  {
    id: '2',
    qualityDocNumber: 'QD-2026-002',
    createdDate: '2026-01-08',
    siteName: '서초 리버사이드',
    client: '현대건설',
    locationCount: 32,
    requiredInfo: '입력완료',
    confirmStatus: '확정',
    confirmDate: '2026-01-12',
    memo: '',
    year: 2026,
    quarter: 'Q1',
  },
  {
    id: '3',
    qualityDocNumber: 'QD-2026-003',
    createdDate: '2026-01-12',
    siteName: '판교 테크노밸리 2단지',
    client: '대우건설',
    locationCount: 78,
    requiredInfo: '2건 누락',
    confirmStatus: '미확정',
    confirmDate: '',
    memo: '추가 검사 필요',
    year: 2026,
    quarter: 'Q1',
  },
  {
    id: '4',
    qualityDocNumber: 'QD-2026-004',
    createdDate: '2026-01-15',
    siteName: '용산 파크타워',
    client: 'GS건설',
    locationCount: 56,
    requiredInfo: '1건 누락',
    confirmStatus: '미확정',
    confirmDate: '',
    memo: '',
    year: 2026,
    quarter: 'Q1',
  },
  {
    id: '5',
    qualityDocNumber: 'QD-2026-005',
    createdDate: '2026-01-20',
    siteName: '마포 리버뷰',
    client: '포스코건설',
    locationCount: 23,
    requiredInfo: '입력완료',
    confirmStatus: '확정',
    confirmDate: '2026-01-25',
    memo: '최종 검사 완료',
    year: 2026,
    quarter: 'Q1',
  },
  {
    id: '6',
    qualityDocNumber: 'QD-2026-006',
    createdDate: '2026-01-25',
    siteName: '송파 헬리오시티',
    client: '롯데건설',
    locationCount: 91,
    requiredInfo: '미입력',
    confirmStatus: '미확정',
    confirmDate: '',
    memo: '',
    year: 2026,
    quarter: 'Q1',
  },
  {
    id: '7',
    qualityDocNumber: 'QD-2026-007',
    createdDate: '2026-01-28',
    siteName: '잠실 엘스',
    client: '삼성물산',
    locationCount: 67,
    requiredInfo: '입력완료',
    confirmStatus: '미확정',
    confirmDate: '',
    memo: '공사 일시 중단',
    year: 2026,
    quarter: 'Q1',
  },
];

// ===== Mock 데이터 - 누락체크 =====

export const mockMissedReports: MissedReport[] = [
  {
    id: 'm1',
    qualityDocNumber: 'QD-2025-089',
    siteName: '강동 그린파크',
    client: '현대건설',
    locationCount: 34,
    inspectionCompleteDate: '2025-12-15',
    memo: '',
  },
  {
    id: 'm2',
    qualityDocNumber: 'QD-2025-092',
    siteName: '성북 힐스테이트',
    client: 'GS건설',
    locationCount: 28,
    inspectionCompleteDate: '2025-12-20',
    memo: '확인 필요',
  },
  {
    id: 'm3',
    qualityDocNumber: 'QD-2025-095',
    siteName: '노원 래미안',
    client: '삼성물산',
    locationCount: 52,
    inspectionCompleteDate: '2025-12-28',
    memo: '',
  },
  {
    id: 'm4',
    qualityDocNumber: 'QD-2026-008',
    siteName: '동작 자이',
    client: 'GS건설',
    locationCount: 19,
    inspectionCompleteDate: '2026-01-05',
    memo: '',
  },
  {
    id: 'm5',
    qualityDocNumber: 'QD-2026-009',
    siteName: '관악 e편한세상',
    client: '대림건설',
    locationCount: 41,
    inspectionCompleteDate: '2026-01-10',
    memo: '서류 미비',
  },
  {
    id: 'm6',
    qualityDocNumber: 'QD-2026-010',
    siteName: '은평 뉴타운',
    client: '대우건설',
    locationCount: 63,
    inspectionCompleteDate: '2026-01-18',
    memo: '',
  },
  {
    id: 'm7',
    qualityDocNumber: 'QD-2026-011',
    siteName: '광진 현대프리미엄',
    client: '현대건설',
    locationCount: 37,
    inspectionCompleteDate: '2026-01-22',
    memo: '',
  },
];

// ===== Mock 통계 =====

export const mockPerformanceReportStats: PerformanceReportStats = {
  totalCount: 7,
  confirmedCount: 3,
  unconfirmedCount: 4,
  totalLocations: 392,
};
