/**
 * ANNOTATED COPY — every line explained
 * Source: src/lib/images.ts
 * NOT used by the app — read this to learn how the real file works
 */
// Block comment — documents the file or function below
/**
 // Block comment — documents the file or function below
 * All imagery: raw, fresh, uncooked meat & seafood only.
 // Block comment — documents the file or function below
 * High-quality Unsplash photos (verified URLs).
 // Block comment — documents the file or function below
 */
// (blank line — separates logical blocks for readability)
// TypeScript type alias — union or shorthand for complex types
type UnsplashOptions = {
  // Line 7: height?: number;
  height?: number;
  // Line 8: crop?: 'center' | 'top' | 'bottom' | 'entropy';
  crop?: 'center' | 'top' | 'bottom' | 'entropy';
// Closing brace — end of block (function, if, object, JSX)
};
// (blank line — separates logical blocks for readability)
// Named export — utility function other files can import
export function unsplashUrl(
  // Property or array item — trailing comma allowed in TypeScript
  path: string,
  // Property or array item — trailing comma allowed in TypeScript
  width: number,
  // Line 14: options?: UnsplashOptions
  options?: UnsplashOptions
// Line 15: ): string {
): string {
  // Line 16: const id = path.startsWith('photo-') ? path : `photo-${pa...
  const id = path.startsWith('photo-') ? path : `photo-${path}`;
  // Line 17: const params = new URLSearchParams({
  const params = new URLSearchParams({
    // Property or array item — trailing comma allowed in TypeScript
    auto: 'format',
    // Property or array item — trailing comma allowed in TypeScript
    fit: 'crop',
    // Property or array item — trailing comma allowed in TypeScript
    w: String(width),
    // Property or array item — trailing comma allowed in TypeScript
    q: '90',
  // Closing brace — end of block (function, if, object, JSX)
  });
  // Conditional branch — different behavior based on runtime value
  if (options?.height) params.set('h', String(options.height));
  // Conditional branch — different behavior based on runtime value
  if (options?.crop) params.set('crop', options.crop);
  // Return value from function
  return `https://images.unsplash.com/${id}?${params.toString()}`;
// Closing brace — end of block (function, if, object, JSX)
}
// (blank line — separates logical blocks for readability)
// Block comment — documents the file or function below
/** Verified raw-meat & seafood Unsplash IDs */
// Line 29: const RAW = {
const RAW = {
  // Property or array item — trailing comma allowed in TypeScript
  butcherCounter: 'photo-1607623814075-e51df1bdc82f',
  // Property or array item — trailing comma allowed in TypeScript
  meatPrep: 'photo-1529692236671-f1f6cf9683ba',
  // Property or array item — trailing comma allowed in TypeScript
  chickenPieces: 'photo-1587593810167-a84920ea0781',
  // Property or array item — trailing comma allowed in TypeScript
  rawChicken: 'photo-1621996346565-e3dbc646d9a9',
  // Property or array item — trailing comma allowed in TypeScript
  beefSteaks: 'photo-1558030006-450675393462',
  // Property or array item — trailing comma allowed in TypeScript
  beefRibeye: 'photo-1559847844-5315695dadae',
  // Property or array item — trailing comma allowed in TypeScript
  lambRack: 'photo-1615937657715-bc7b4b7962c1',
  // Property or array item — trailing comma allowed in TypeScript
  beefCubes: 'photo-1546833999-b9f581a1996d',
  // Property or array item — trailing comma allowed in TypeScript
  beefMince: 'photo-1603048297172-c92544798d5a',
  // Property or array item — trailing comma allowed in TypeScript
  lambLeg: 'photo-1544025162-d76694265947',
  // Property or array item — trailing comma allowed in TypeScript
  lambChops: 'photo-1574672280600-4accfa5b6f98',
  // Property or array item — trailing comma allowed in TypeScript
  salmonFillet: 'photo-1544551763-46a013bb70d5',
  // Property or array item — trailing comma allowed in TypeScript
  rawPrawns: 'photo-1565680018434-b513d5e5fd47',
  // Property or array item — trailing comma allowed in TypeScript
  seafoodDisplay: 'photo-1504674900247-0877df9cc836',
// Closing brace — end of block (function, if, object, JSX)
} as const;
// (blank line — separates logical blocks for readability)
// Named export constant — shared config/data imported elsewhere
export const IMAGES = {
  // Property or array item — trailing comma allowed in TypeScript
  logo: '/images/kottgard-logo.jpeg',
  // Property or array item — trailing comma allowed in TypeScript
  hero: unsplashUrl(RAW.butcherCounter, 2560),
  // Property or array item — trailing comma allowed in TypeScript
  aboutMeat: unsplashUrl(RAW.meatPrep, 1920),
  // Line 50: categories: {
  categories: {
    // Property or array item — trailing comma allowed in TypeScript
    chicken: unsplashUrl(RAW.chickenPieces, 1400),
    // Property or array item — trailing comma allowed in TypeScript
    beef: unsplashUrl(RAW.beefSteaks, 1400),
    // Property or array item — trailing comma allowed in TypeScript
    lamb: unsplashUrl(RAW.lambRack, 1400),
    // Property or array item — trailing comma allowed in TypeScript
    fish: unsplashUrl(RAW.salmonFillet, 1400),
  // Closing brace — end of block (function, if, object, JSX)
  },
  // Line 56: products: {
  products: {
    // Property or array item — trailing comma allowed in TypeScript
    'chicken-whole': unsplashUrl(RAW.rawChicken, 1400),
    // Line 58: 'chicken-breast': unsplashUrl(RAW.chickenPieces, 1400, {
    'chicken-breast': unsplashUrl(RAW.chickenPieces, 1400, {
      // Property or array item — trailing comma allowed in TypeScript
      height: 1000,
      // Property or array item — trailing comma allowed in TypeScript
      crop: 'center',
    // Closing brace — end of block (function, if, object, JSX)
    }),
    // Line 62: 'chicken-thighs': unsplashUrl(RAW.rawChicken, 1400, {
    'chicken-thighs': unsplashUrl(RAW.rawChicken, 1400, {
      // Property or array item — trailing comma allowed in TypeScript
      height: 1100,
      // Property or array item — trailing comma allowed in TypeScript
      crop: 'entropy',
    // Closing brace — end of block (function, if, object, JSX)
    }),
    // Line 66: 'chicken-wings': unsplashUrl(RAW.chickenPieces, 1400, {
    'chicken-wings': unsplashUrl(RAW.chickenPieces, 1400, {
      // Property or array item — trailing comma allowed in TypeScript
      height: 900,
      // Property or array item — trailing comma allowed in TypeScript
      crop: 'top',
    // Closing brace — end of block (function, if, object, JSX)
    }),
    // Property or array item — trailing comma allowed in TypeScript
    'beef-nihari': unsplashUrl(RAW.beefCubes, 1400),
    // Property or array item — trailing comma allowed in TypeScript
    'beef-steak': unsplashUrl(RAW.beefRibeye, 1400),
    // Property or array item — trailing comma allowed in TypeScript
    'beef-mince': unsplashUrl(RAW.beefMince, 1400),
    // Property or array item — trailing comma allowed in TypeScript
    'beef-boneless': unsplashUrl(RAW.beefSteaks, 1400, { height: 1000, crop: 'center' }),
    // Property or array item — trailing comma allowed in TypeScript
    'lamb-shoulder': unsplashUrl(RAW.lambRack, 1400),
    // Property or array item — trailing comma allowed in TypeScript
    'lamb-leg': unsplashUrl(RAW.lambLeg, 1400),
    // Property or array item — trailing comma allowed in TypeScript
    'lamb-chops': unsplashUrl(RAW.lambChops, 1400),
    // Property or array item — trailing comma allowed in TypeScript
    'lamb-mince': unsplashUrl(RAW.lambChops, 1400, { height: 1000, crop: 'center' }),
    // Property or array item — trailing comma allowed in TypeScript
    'fish-salmon': unsplashUrl(RAW.salmonFillet, 1400),
    // Property or array item — trailing comma allowed in TypeScript
    'fish-rohu': unsplashUrl(RAW.seafoodDisplay, 1400, { height: 1100, crop: 'entropy' }),
    // Property or array item — trailing comma allowed in TypeScript
    'fish-prawns': unsplashUrl(RAW.rawPrawns, 1400),
    // Property or array item — trailing comma allowed in TypeScript
    'fish-basa': unsplashUrl(RAW.salmonFillet, 1400, { height: 900, crop: 'center' }),
  // Closing brace — end of block (function, if, object, JSX)
  },
// Closing brace — end of block (function, if, object, JSX)
} as const;
// (blank line — separates logical blocks for readability)
// Named export constant — shared config/data imported elsewhere
export const IMAGE_QUALITY = 90;
