export type TGridUpcs = [colCount: number, strengthGroups: Record<string, string[]>];

export const EYEGLASS_STRENGTH_COLORS: Record<string, string> = {
  "3.00": "#720072",
  "2.50": "#2c6ebe",
  "2.25": "#00bcd4",
  "2.00": "#6aa84f",
  "1.75": "#ffd966",
  "1.50": "#e69138",
  "1.25": "#cc0000",
};

export function getIcuLeftPanelUpcs(): TGridUpcs {
  return [
    3,
    {
      "2.50": ["078041243397", "078041243458", "078041242734"],
      "2.00": ["078041243380", "078041243441", "078041242727"],
      "1.75": ["078041243373", "078041243434", "078041242710"],
      "1.50": ["078041243366", "078041243427", "078041242703"],
      "1.25": ["078041243359", "078041243410", "078041242697"],
    },
  ];
}

export function getIcuFrontPanelUpcs(): TGridUpcs {
  return [
    4,
    {
      "2.50": [
        "078041242796",
        "078041242949",
        "078041243090",
        "078041243243",

        "078041242857",
        "078041243007",
        "078041243151",
        "078041243304",

        "078041242895",
        "078041243045",
        "078041243199",
        "078041243342",
      ],
      "2.00": [
        "078041242789",
        "078041242932",
        "078041243083",
        "078041243236",

        "078041242840",
        "078041242994",
        "078041243144",
        "078041243298",

        "078041242888",
        "078041243038",
        "078041243182",
        "078041243335",
      ],
      "1.75": [
        "078041242772",
        "078041242925",
        "078041243076",
        "078041243229",

        "078041242833",
        "078041242987",
        "078041243137",
        "078041243281",

        "078041242871",
        "078041243021",
        "078041243175",
        "078041243328",
      ],
      "1.50": [
        "078041242765",
        "078041242918",
        "078041243069",
        "078041243212",

        "078041242826",
        "078041242970",
        "078041243120",
        "078041243274",
      ],
      "1.25": [
        "078041242758",
        "078041242901",
        "078041243052",
        "078041243205",

        "078041242819",
        "078041242963",
        "078041243113",
        "078041243267",
      ],
    },
  ];
}

export function getIcuRightPanelUpcs(): TGridUpcs {
  return [
    4,
    {
      "2.50": ["078041243519", "078041243571", "078041243632", "078041243694"],
      "2.00": ["078041243502", "078041243564", "078041243625", "078041243687"],
      "1.75": ["078041243496", "078041243557", "078041243618", "078041243670"],
      "1.50": ["078041243489", "078041243540", "078041243601", "078041243663"],
      "1.25": ["078041243472", "078041243533", "078041243595", "078041243656"],
    },
  ];
}

export function getWinkPanelUpcs(): TGridUpcs {
  return [
    5,
    {
      "2.50": ["078041189916", "078041143246", "078041138457", "078041131861", "078041132141"],
      "2.00": ["078041189909", "078041143239", "078041138440", "078041131854", "078041132134"],
      "1.50": ["078041189893", "078041143222", "078041138433", "078041131847", "078041132127"],
      "1.25": ["078041189886", "078041143215", "078041138426", "078041131830", "078041132110"],
    },
  ];
}
