export const SOLVED_COLOR = "#0f9d58";
export const IN_PROGRESS_COLOR = "#efb12d";
export const NOT_ADDRESSED_COLOR = "#ef4444";
export const TOTAL_COLOR = "#b9dff7";

export type WorkingGroupOption = {
  label: string;
  value: string;
};

export type WorkingGroupFiltersValue = {
  workingGroup: string[];
  status: string[];
  agency: string[];
  year: string;
  report: string[];
};

export type DonutChartItem = {
  label: string;
  value: number;
  color: string;
  labelText?: string;
};

export type StatusCountItem = {
  label: string;
  count: string;
  color: string;
};

export const defaultWorkingGroupFilters: WorkingGroupFiltersValue = {
  workingGroup: [],
  status: [],
  agency: [],
  year: "2018",
  report: [],
};

export const workingGroupOptions: WorkingGroupOption[] = [
  { label: "Agriculture and Agro-Industry", value: "agriculture-agro-industry" },
  { label: "Tourism", value: "tourism" },
  { label: "SMEs, Manufacturing, and services", value: "smes-manufacturing-services" },
  { label: "Law Tax and Governance", value: "law-tax-governance" },
  { label: "Banking and Financial Services", value: "banking-financial-services" },
  { label: "Transportation and Infrastructure", value: "transportation-infrastructure" },
  { label: "Export Processing and Trade Facilitation", value: "export-processing-trade-facilitation" },
  { label: "Industrial Relations", value: "industrial-relations" },
  { label: "Rice and Paddy", value: "rice-paddy" },
  { label: "Energy and Mineral Resource", value: "energy-mineral-resource" },
  { label: "Education", value: "education" },
  { label: "Health", value: "health" },
  { label: "Construction and Real Estate", value: "construction-real-estate" },
  { label: "Non-Bank financial service", value: "non-bank-financial-service" },
  {
    label: "Digital Economy, Society and Telecommunication",
    value: "digital-economy-society-telecommunication",
  },
  {
    label: "Land Administration, Security, Public Order",
    value: "land-administration-security-public-order",
  },
];

export const statusOptions: WorkingGroupOption[] = [
  { label: "Solved", value: "solved" },
  { label: "In Progress", value: "in-progress" },
  { label: "Not Addressed", value: "not-addressed" },
];

export const agencyOptions: WorkingGroupOption[] = [
  { label: "GDT", value: "gdt" },
  { label: "MEF", value: "mef" },
  { label: "GDCE", value: "gdce" },
  { label: "MLVT", value: "mlvt" },
  { label: "MPTC", value: "mptc" },
  { label: "MAFF", value: "maff" },
  { label: "MoH", value: "moh" },
  { label: "NBC", value: "nbc" },
  { label: "MoC", value: "moc" },
  { label: "MoT", value: "mot" },
  { label: "MLMUPC", value: "mlmupc" },
  { label: "MoI", value: "moi" },
  { label: "CDC", value: "cdc" },
  { label: "MPWT", value: "mpwt" },
  { label: "MISTI", value: "misti" },
  { label: "MME", value: "mme" },
  { label: "SHV Admin", value: "shv-admin" },
  { label: "MOC", value: "moc-uppercase" },
];

export const yearOptions: WorkingGroupOption[] = [
  { label: "2018", value: "2018" },
  { label: "2019", value: "2019" },
  { label: "2020", value: "2020" },
  { label: "2021", value: "2021" },
  { label: "2022", value: "2022" },
  { label: "2023", value: "2023" },
  { label: "2024", value: "2024" },
];

export const reportOptions: WorkingGroupOption[] = [
  { label: "Both", value: "both" },
  { label: "S1", value: "s1" },
  { label: "S2", value: "s2" },
];

export const agencyRows = [
  { name: "CDC", solved: 7, inProgress: 3, solvedDisplay: 0.7, inProgressDisplay: 0.3 },
  { name: "MPWT", solved: 5, inProgress: 5, solvedDisplay: 0.5, inProgressDisplay: 0.5 },
  { name: "MME", solved: 4, inProgress: 6, solvedDisplay: 0.4, inProgressDisplay: 0.6 },
  { name: "MISTI", solved: 8, inProgress: 2, solvedDisplay: 0.8, inProgressDisplay: 0.2 },
  { name: "MoI", solved: 4, inProgress: 6, solvedDisplay: 0.4, inProgressDisplay: 0.6 },
  { name: "NBC", solved: 6, inProgress: 2, solvedDisplay: 0.75, inProgressDisplay: 0.25 },
  { name: "MLMUPC", solved: 4, inProgress: 6, solvedDisplay: 0.4, inProgressDisplay: 0.6 },
  { name: "MAFF", solved: 5, inProgress: 5, solvedDisplay: 0.5, inProgressDisplay: 0.5 },
  { name: "MLVT", solved: 5, inProgress: 5, solvedDisplay: 0.5, inProgressDisplay: 0.5 },
  { name: "MoC", solved: 9, inProgress: 1, solvedDisplay: 0.84, inProgressDisplay: 0.16 },
  { name: "GDCE", solved: 7, inProgress: 3, solvedDisplay: 0.7, inProgressDisplay: 0.3 },
  { name: "MEF", solved: 8, inProgress: 2, solvedDisplay: 0.8, inProgressDisplay: 0.2 },
];

export const workingGroupRows = [
  { label: "(A) Agriculture and Agro-Industry", solved: 50, inProgress: 50, notAddressed: 0 },
  { label: "(B) Tourism", solved: 40, inProgress: 60, notAddressed: 0 },
  { label: "(C) SMEs, Manufacturing, and Services", solved: 20, inProgress: 80, notAddressed: 0 },
  { label: "(D) Law, Tax, and Governance", solved: 70, inProgress: 30, notAddressed: 0 },
  { label: "(E) Banking and Financial Services", solved: 35, inProgress: 65, notAddressed: 0 },
  { label: "(F) Transportation and Infrastructure", solved: 48, inProgress: 52, notAddressed: 0 },
  { label: "(G) Export Processing and Trade", solved: 60, inProgress: 40, notAddressed: 0 },
  { label: "(H) Industrial Relations", solved: 95, inProgress: 5, notAddressed: 0 },
  { label: "(I) Rice and Paddy", solved: 90, inProgress: 10, notAddressed: 0 },
  { label: "(J) Energy and Mineral Resources", solved: 60, inProgress: 40, notAddressed: 0 },
  { label: "(M) Construction and Real Estate", solved: 30, inProgress: 70, notAddressed: 0 },
  { label: "(N) Non-Bank Financial Services", solved: 50, inProgress: 50, notAddressed: 0 },
];

export const categoryRows = [
  { label: "Government", value: 6 },
  { label: "Taxation", value: 3 },
  { label: "Human Resource", value: 2 },
  { label: "Trade", value: 4 },
  { label: "Legislation", value: 1 },
  { label: "Procedure", value: 1 },
  { label: "Market", value: 0 },
  { label: "Policy", value: 3 },
  { label: "Strategy", value: 0 },
];

export const overallStatusData: DonutChartItem[] = [
  { label: "Not Addressed", value: 1, color: NOT_ADDRESSED_COLOR, labelText: "5%" },
  { label: "In Progress", value: 4, color: IN_PROGRESS_COLOR, labelText: "20%" },
  { label: "Solved", value: 15, color: SOLVED_COLOR, labelText: "75%" },
];

export const overallStatusCounts: StatusCountItem[] = [
  { label: "Total Issues", count: "20", color: TOTAL_COLOR },
  { label: "Solved", count: "15", color: SOLVED_COLOR },
  { label: "In Progress", count: "4", color: IN_PROGRESS_COLOR },
  { label: "Not Addressed", count: "1", color: NOT_ADDRESSED_COLOR },
];