// Mock data para Gestão de Documentos
// Simula documentos de motoristas e veículos

export const mockDocuments = [
  {
    id: 'doc-001',
    client: 'PRALOG',
    entityType: 'MOTORISTA',
    entityName: 'JOÃO SILVA',
    docType: 'CNH',
    fileName: 'cnh_joao_silva.pdf',
    filePath: '/uploads/cnh_joao_silva.pdf',
    uploadDate: '2026-01-15T10:00:00Z',
    uploadedBy: 'Supervisor João',
    fileSize: 245000 // bytes
  },
  {
    id: 'doc-002',
    client: 'PROFARMA',
    entityType: 'CAVALO',
    entityName: 'ABC-1234',
    docType: 'CRLV',
    fileName: 'crlv_abc1234.pdf',
    filePath: '/uploads/crlv_abc1234.pdf',
    uploadDate: '2026-01-20T14:30:00Z',
    uploadedBy: 'Supervisor Maria',
    fileSize: 180000
  },
  {
    id: 'doc-003',
    client: 'PETY',
    entityType: 'MOTORISTA',
    entityName: 'MARIA SANTOS',
    docType: 'Comprovante',
    fileName: 'comprovante_maria.pdf',
    filePath: '/uploads/comprovante_maria.pdf',
    uploadDate: '2026-01-25T09:15:00Z',
    uploadedBy: 'Supervisor João',
    fileSize: 120000
  },
  {
    id: 'doc-004',
    client: 'MERCADO_LIVRE',
    entityType: 'VEÍCULO',
    entityName: 'XYZ-9876',
    docType: 'CRLV',
    fileName: 'crlv_xyz9876.pdf',
    filePath: '/uploads/crlv_xyz9876.pdf',
    uploadDate: '2026-02-01T11:00:00Z',
    uploadedBy: 'Supervisor Maria',
    fileSize: 190000
  },
  {
    id: 'doc-005',
    client: 'PRALOG',
    entityType: 'MOTORISTA',
    entityName: 'CARLOS OLIVEIRA',
    docType: 'CNH',
    fileName: 'cnh_carlos.pdf',
    filePath: '/uploads/cnh_carlos.pdf',
    uploadDate: '2026-02-03T15:45:00Z',
    uploadedBy: 'Supervisor João',
    fileSize: 230000
  },
  {
    id: 'doc-006',
    client: 'PROFARMA',
    entityType: 'MOTORISTA',
    entityName: 'ANA COSTA',
    docType: 'Comprovante',
    fileName: 'comprovante_ana.jpg',
    filePath: '/uploads/comprovante_ana.jpg',
    uploadDate: '2026-02-04T10:20:00Z',
    uploadedBy: 'Supervisor Maria',
    fileSize: 350000
  },
  {
    id: 'doc-007',
    client: 'PETY',
    entityType: 'CAVALO',
    entityName: 'DEF-5678',
    docType: 'ANTT',
    fileName: 'antt_def5678.pdf',
    filePath: '/uploads/antt_def5678.pdf',
    uploadDate: '2026-02-05T08:30:00Z',
    uploadedBy: 'Supervisor João',
    fileSize: 210000
  }
];

// Tipos de documentos disponíveis
export const documentTypes = {
  MOTORISTA: ['CNH', 'Comprovante', 'Atestado Médico', 'Certidão'],
  CAVALO: ['CRLV', 'ANTT', 'Seguro', 'IPVA'],
  VEÍCULO: ['CRLV', 'ANTT', 'Seguro', 'IPVA'],
  CARRETA: ['CRLV', 'ANTT', 'Seguro']
};

// Estatísticas
export const mockDocumentStats = {
  total: mockDocuments.length,
  byEntityType: {
    MOTORISTA: mockDocuments.filter(d => d.entityType === 'MOTORISTA').length,
    CAVALO: mockDocuments.filter(d => d.entityType === 'CAVALO').length,
    VEÍCULO: mockDocuments.filter(d => d.entityType === 'VEÍCULO').length
  },
  byClient: {
    PRALOG: mockDocuments.filter(d => d.client === 'PRALOG').length,
    PROFARMA: mockDocuments.filter(d => d.client === 'PROFARMA').length,
    PETY: mockDocuments.filter(d => d.client === 'PETY').length,
    MERCADO_LIVRE: mockDocuments.filter(d => d.client === 'MERCADO_LIVRE').length
  }
};
