const CATALOG_PRODUCT_IMAGE_BY_TYPE: Record<string, string> = {
  'алюминиевый скотч': '/catalog-products/aluminum-tape.webp',
  'армированный скотч': '/catalog-products/reinforced-tape.webp',
  'вспененный скотч': '/catalog-products/double-sided-foam-tape.webp',
  'двусторонний pvc': '/catalog-products/double-sided-superglue-foam-tape.webp',
  'двусторонний пп': '/catalog-products/double-sided-polypropylene-tape.webp',
  'джамбо-рулоны': '/catalog-products/jumbo-rolls.webp',
  'крепп': '/catalog-products/masking-tape-indoor.webp',
  'лента алюминиевая': '/catalog-products/aluminum-tape.webp',
  'лента армированная': '/catalog-products/reinforced-tape.webp',
  'лента двусторонняя': '/catalog-products/double-sided-polypropylene-tape.webp',
  'лента малярная': '/catalog-products/masking-tape-indoor.webp',
  'лента металлизированная': '/catalog-products/metallized-tape.webp',
  'лента с логотипом': '/catalog-products/logo-tape.webp',
  'лента сигнальная': '/catalog-products/signal-tape.webp',
  'лента упаковочная': '/catalog-products/packaging-tape.webp',
  'малярная лента': '/catalog-products/masking-tape-outdoor.webp',
  'металлизированный скотч': '/catalog-products/metallized-tape.webp',
  'перчатки хб': '/catalog-products/cotton-gloves.webp',
  'сигнальная лента': '/catalog-products/signal-tape.webp',
  'стретч-пленка': '/catalog-products/stretch-film.webp',
  'упаковочный скотч': '/catalog-products/packaging-tape.webp',
};

function normalizeCatalogProductType(value: string | null | undefined) {
  return String(value ?? '').replaceAll(/\s+/g, ' ').trim().toLowerCase();
}

export function catalogProductImageSrc(productType: string | null | undefined) {
  return CATALOG_PRODUCT_IMAGE_BY_TYPE[normalizeCatalogProductType(productType)] ?? null;
}
