// =============================================================================
// Obligations Document — Types, Defaults & Status/Priority Labels
// =============================================================================

export interface ObligationDocumentOrgHeader {
  organizationName: string
  industry: string
  dpoName: string
  dpoContact: string
  responsiblePerson: string
  legalDepartment: string
  documentVersion: string
  lastReviewDate: string
  nextReviewDate: string
  reviewInterval: string
}

export interface ObligationDocumentRevision {
  version: string
  date: string
  author: string
  changes: string
}

export function createDefaultObligationDocumentOrgHeader(): ObligationDocumentOrgHeader {
  const now = new Date()
  const nextYear = new Date()
  nextYear.setFullYear(nextYear.getFullYear() + 1)

  return {
    organizationName: '',
    industry: '',
    dpoName: '',
    dpoContact: '',
    responsiblePerson: '',
    legalDepartment: '',
    documentVersion: '1.0',
    lastReviewDate: now.toISOString().split('T')[0],
    nextReviewDate: nextYear.toISOString().split('T')[0],
    reviewInterval: 'Jaehrlich',
  }
}

export const STATUS_LABELS_DE: Record<string, string> = {
  'pending': 'Ausstehend',
  'in-progress': 'In Bearbeitung',
  'completed': 'Abgeschlossen',
  'overdue': 'Ueberfaellig',
}

export const STATUS_BADGE_CLASSES: Record<string, string> = {
  'pending': 'badge-draft',
  'in-progress': 'badge-review',
  'completed': 'badge-active',
  'overdue': 'badge-critical',
}

export const PRIORITY_LABELS_DE: Record<string, string> = {
  critical: 'Kritisch',
  high: 'Hoch',
  medium: 'Mittel',
  low: 'Niedrig',
}

export const PRIORITY_BADGE_CLASSES: Record<string, string> = {
  critical: 'badge-critical',
  high: 'badge-high',
  medium: 'badge-medium',
  low: 'badge-low',
}
