export const IN_PROGRESS_COLOR = "#f3b129";
// Only used by the "In Progress Status" breakdown donut (Mid vs Early
// Progress), which is a separate concept from the overall IN_PROGRESS_COLOR.
export const MID_PROGRESS_COLOR = "#f4a261";
export const EARLY_PROGRESS_COLOR = "#f1dcb0";

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

export type PlenaryFiltersValue = {
  plenary: string[];
  status: string[];
  workingGroup: string[];
  primaryAgency: string[];
  measureCategory: string[];
  effectiveDate: string[];
};

export type PlenaryFilterConfig = {
  key: keyof PlenaryFiltersValue;
  label: string;
  width: number;
  options: PlenaryOption[];
};

export const defaultPlenaryFilters: PlenaryFiltersValue = {
  plenary: [],
  status: [],
  workingGroup: [],
  primaryAgency: [],
  measureCategory: [],
  effectiveDate: [],
};

export const plenaryFilterConfigs: PlenaryFilterConfig[] = [
  {
    key: "plenary",
    label: "Plenary",
    width: 107,
    options: [
      { label: "19th G-PSF Plenary", value: "19th" },
      { label: "20th G-PSF Plenary", value: "20th" },
      { label: "21st G-PSF Plenary", value: "21st" },
      { label: "22nd G-PSF Plenary", value: "22nd" },
    ],
  },
  {
    key: "status",
    label: "Status",
    width: 112,
    options: [
      { label: "Solved", value: "solved" },
      { label: "In Progress", value: "in-progress" },
      { label: "Not Addressed", value: "not-addressed" },
    ],
  },
  {
    key: "workingGroup",
    label: "Working Group",
    width: 153,
    options: [
      { label: "Law, Tax, and Governance", value: "law-tax-governance" },
      { label: "Tourism", value: "tourism" },
      { label: "Construction and Real Estate", value: "construction" },
      { label: "Energy and Mineral Resources", value: "energy" },
      { label: "Industrial Relations", value: "industrial-relations" },
    ],
  },
  {
    key: "primaryAgency",
    label: "Primary Agency",
    width: 159,
    options: [
      { label: "CDC", value: "cdc" },
      { label: "MPWT", value: "mpwt" },
      { label: "MISTI", value: "misti" },
      { label: "MME", value: "mme" },
      { label: "MOC", value: "moc" },
      { label: "GDT", value: "gdt" },
      { label: "MEF", value: "mef" },
      { label: "GDCE", value: "gdce" },
      { label: "MLVT", value: "mlvt" },
      { label: "MPTC", value: "mptc" },
      { label: "MoI", value: "moi" },
      { label: "NBC", value: "nbc" },
      { label: "MLMUPC", value: "mlmupc" },
      { label: "MAFF", value: "maff" },
      { label: "MoT", value: "mot" },
      { label: "MoH", value: "moh" },
    ],
  },
  {
    key: "measureCategory",
    label: "19th G-PSF Measure Category",
    width: 250,
    options: [
      {
        label: "5. Improving transportation and infrastructure",
        value: "transportation",
      },
      {
        label: "8. Banking and Finance Sector",
        value: "banking-finance",
      },
      { label: "11. Other issues", value: "other" },
      {
        label: "7. Agricultural and agro-industrial",
        value: "agriculture",
      },
      {
        label: "2. Easing the burden on compliance",
        value: "compliance",
      },
      {
        label: "9. Mining and energy sector",
        value: "mining-energy",
      },
    ],
  },
  {
    key: "effectiveDate",
    label: "Effective Date of Decision",
    width: 220,
    options: [
      { label: "Not Specified", value: "not-specified" },
      { label: "2024-01-24", value: "2024-01-24" },
      { label: "2024-11-23", value: "2024-11-23" },
      { label: "2024-10-23", value: "2024-10-23" },
      { label: "2024-06-24", value: "2024-06-24" },
      { label: "Not Applicable", value: "not-applicable" },
    ],
  },
];

export const agencyRows = [
  {
    name: "SVA MPWT",
    solved: 1,
    inProgress: 0,
    solvedDisplay: 1,
    inProgressDisplay: 0,
  },
  {
    name: "MPTC",
    solved: 0,
    inProgress: 1,
    solvedDisplay: 0,
    inProgressDisplay: 1,
  },
  {
    name: "MME",
    solved: 2,
    inProgress: 0,
    solvedDisplay: 1,
    inProgressDisplay: 0,
  },
  {
    name: "MISTI",
    solved: 3,
    inProgress: 0,
    solvedDisplay: 1,
    inProgressDisplay: 0,
  },
  {
    name: "CDC",
    solved: 3,
    inProgress: 1,
    solvedDisplay: 0.75,
    inProgressDisplay: 0.25,
  },
  {
    name: "MOI",
    solved: 4,
    inProgress: 1,
    solvedDisplay: 0.8,
    inProgressDisplay: 0.2,
  },
  {
    name: "NBC",
    solved: 5,
    inProgress: 0,
    solvedDisplay: 1,
    inProgressDisplay: 0,
  },
  {
    name: "MLMUPC",
    solved: 6,
    inProgress: 1,
    solvedDisplay: 0.82,
    inProgressDisplay: 0.18,
  },
  {
    name: "MAFF",
    solved: 6,
    inProgress: 1,
    solvedDisplay: 0.82,
    inProgressDisplay: 0.18,
  },
  {
    name: "MLVT",
    solved: 8,
    inProgress: 0,
    solvedDisplay: 1,
    inProgressDisplay: 0,
  },
  {
    name: "MOT",
    solved: 8,
    inProgress: 2,
    solvedDisplay: 0.8,
    inProgressDisplay: 0.2,
  },
  {
    name: "GDCE",
    solved: 29,
    inProgress: 0,
    solvedDisplay: 1,
    inProgressDisplay: 0,
  },
  {
    name: "MEF",
    solved: 35,
    inProgress: 6,
    solvedDisplay: 0.82,
    inProgressDisplay: 0.18,
  },
  {
    name: "GDT",
    solved: 50,
    inProgress: 0,
    solvedDisplay: 1,
    inProgressDisplay: 0,
  },
];

export const measureCategoryRows = [
  {
    label: "1. Adjusting business and investment...",
    solved: 14,
    inProgress: 4,
    notAddressed: 0,
  },
  {
    label: "10. Construction and real estate...",
    solved: 17,
    inProgress: 1,
    notAddressed: 0,
  },
  { label: "11. Other issues", solved: 3, inProgress: 2, notAddressed: 0 },
  {
    label: "2. Easing the burden on compliance",
    solved: 8,
    inProgress: 0,
    notAddressed: 0,
  },
  {
    label: "3. Facilitation of businesses...",
    solved: 52,
    inProgress: 0,
    notAddressed: 0,
  },
  {
    label: "4. Trade facilitation under customs",
    solved: 29,
    inProgress: 0,
    notAddressed: 0,
  },
  {
    label: "5. Improving transportation...",
    solved: 0,
    inProgress: 1,
    notAddressed: 0,
  },
  {
    label: "6. Rehabilitation and development",
    solved: 18,
    inProgress: 4,
    notAddressed: 0,
  },
  {
    label: "7. Agricultural and agro-industrial",
    solved: 6,
    inProgress: 1,
    notAddressed: 0,
  },
  {
    label: "8. Banking and Finance Sector",
    solved: 4,
    inProgress: 0,
    notAddressed: 0,
  },
  {
    label: "9. Mining and energy sector",
    solved: 15,
    inProgress: 0,
    notAddressed: 0,
  },
];

export const workingGroupRows = [
  {
    label: "(A) Agriculture and Agro-Industry",
    solved: 4,
    inProgress: 1,
    notAddressed: 0,
  },
  {
    label: "(E) Banking and Financial Services",
    solved: 5,
    inProgress: 0,
    notAddressed: 0,
  },
  {
    label: "(M) Construction and Real Estate",
    solved: 17,
    inProgress: 1,
    notAddressed: 0,
  },
  {
    label: "(J) Energy and Mineral Resources",
    solved: 15,
    inProgress: 0,
    notAddressed: 0,
  },
  {
    label: "(G) Export Processing and Trade",
    solved: 3,
    inProgress: 0,
    notAddressed: 0,
  },
  {
    label: "(H) Industrial Relations",
    solved: 8,
    inProgress: 0,
    notAddressed: 0,
  },
  {
    label: "(D) Law, Tax, and Governance",
    solved: 85,
    inProgress: 0,
    notAddressed: 0,
  },
  {
    label: "(N) Non-Bank Financial Services",
    solved: 4,
    inProgress: 3,
    notAddressed: 0,
  },
  { label: "Other issues", solved: 3, inProgress: 2, notAddressed: 0 },
  { label: "(I) Rice and Paddy", solved: 2, inProgress: 0, notAddressed: 0 },
  {
    label: "(C) SMEs, Manufacturing, and Services",
    solved: 3,
    inProgress: 1,
    notAddressed: 0,
  },
  { label: "(B) Tourism", solved: 17, inProgress: 4, notAddressed: 0 },
  {
    label: "(F) Transportation and Infrastructure",
    solved: 0,
    inProgress: 1,
    notAddressed: 0,
  },
];
