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

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

export type WorkingGroupFiltersValue = {
  year: string;
  status: string[];
  agency: 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 = {
  year: "2018",
  status: [],
  agency: [],
  report: [],
};

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 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: "MOC", value: "moc" },
  { label: "MAFF", value: "maff" },
  { label: "MIME", value: "mime" },
  { label: "MPWT", value: "mpwt" },
  { label: "MISTI", value: "misti" },
  { label: "MOH", value: "moh" },
  { label: "MOI", value: "moi" },
];

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: "CDC-2",
    solved: 9,
    inProgress: 1,
    solvedDisplay: 0.84,
    inProgressDisplay: 0.16,
  },
  {
    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 },
];
