/* global React, C */
// data.js — sample data for the prototype.

const GOLFERS = [
  { name: 'Scottie Scheffler', country: 'USA', price: 56, points: 87.6, live: true,  tone: 2, status: 'Thru 14 · R4' },
  { name: 'Rory McIlroy',      country: 'NIR', price: 52, points: 71.2, live: true,  tone: 3, status: 'Thru 12 · R4' },
  { name: 'Xander Schauffele', country: 'USA', price: 41, points: 64.8, live: false, tone: 1, status: 'Finished R4' },
  { name: 'Viktor Hovland',    country: 'NOR', price: 36, points: 49.1, live: true,  tone: 6, status: 'Thru 9 · R4' },
  { name: 'Sungjae Im',        country: 'KOR', price: 28, points: 33.4, live: true,  tone: 5, status: 'Thru 11 · R4' },
  { name: 'Akshay Bhatia',     country: 'USA', price: 18, points: 11.4, live: false, tone: 4, status: 'Finished R4' },
];

// Opponent lineup (for matchup view)
const OPP_LINEUP = [
  { name: 'Scottie Scheffler', country: 'USA', price: 56, points: 87.6, live: true,  tone: 2, status: 'Thru 14 · R4' }, // common
  { name: 'Collin Morikawa',   country: 'USA', price: 44, points: 58.2, live: true,  tone: 1, status: 'Thru 13 · R4' },
  { name: 'Ludvig Åberg',      country: 'SWE', price: 38, points: 47.5, live: true,  tone: 4, status: 'Thru 10 · R4' },
  { name: 'Tony Finau',        country: 'USA', price: 33, points: 39.8, live: false, tone: 6, status: 'Finished R4' },
  { name: 'Sungjae Im',        country: 'KOR', price: 28, points: 33.4, live: true,  tone: 5, status: 'Thru 11 · R4' }, // common
  { name: 'Sahith Theegala',   country: 'USA', price: 21, points: 4.0,  live: false, tone: 3, status: 'MC', mc: true },
];

const FIELD = [
  { name: 'Scottie Scheffler', country: 'USA', price: 56, owned: 42, tone: 2, rank: 1 },
  { name: 'Rory McIlroy',      country: 'NIR', price: 52, owned: 38, tone: 3, rank: 2 },
  { name: 'Jon Rahm',          country: 'ESP', price: 50, owned: 22, tone: 5, rank: 3 },
  { name: 'Collin Morikawa',   country: 'USA', price: 44, owned: 28, tone: 1, rank: 4 },
  { name: 'Xander Schauffele', country: 'USA', price: 41, owned: 31, tone: 1, rank: 5 },
  { name: 'Justin Thomas',     country: 'USA', price: 40, owned: 18, tone: 6, rank: 6 },
  { name: 'Ludvig Åberg',      country: 'SWE', price: 38, owned: 19, tone: 4, rank: 7 },
  { name: 'Viktor Hovland',    country: 'NOR', price: 36, owned: 14, tone: 6, rank: 8 },
  { name: 'Tony Finau',        country: 'USA', price: 33, owned: 11, tone: 6, rank: 14 },
  { name: 'Hideki Matsuyama',  country: 'JPN', price: 30, owned: 12, tone: 7, rank: 12 },
  { name: 'Sepp Straka',       country: 'AUT', price: 30, owned:  9, tone: 7, rank: 18 },
  { name: 'Sungjae Im',        country: 'KOR', price: 28, owned: 24, tone: 5, rank: 22 },
  { name: 'Patrick Cantlay',   country: 'USA', price: 28, owned: 17, tone: 2, rank: 11 },
  { name: 'Tom Hoge',          country: 'USA', price: 24, owned:  7, tone: 5, rank: 35 },
  { name: 'Si Woo Kim',        country: 'KOR', price: 24, owned:  8, tone: 5, rank: 41 },
  { name: 'Sahith Theegala',   country: 'USA', price: 21, owned: 19, tone: 3, rank: 47 },
  { name: 'Akshay Bhatia',     country: 'USA', price: 18, owned:  4, tone: 4, rank: 52 },
  { name: 'Min Woo Lee',       country: 'AUS', price: 14, owned:  5, tone: 4, rank: 64 },
  { name: 'Eric Cole',         country: 'USA', price: 12, owned:  3, tone: 1, rank: 78 },
  { name: 'Beau Hossler',      country: 'USA', price: 10, owned:  2, tone: 3, rank: 92 },
  { name: 'Carson Young',      country: 'USA', price:  8, owned:  1, tone: 7, rank: 118 },
];

const STANDINGS = [
  { rank: 1,  name: 'Drew Petersen',   handle: '@drewp',    phr: 1452.6, points: 274.4, status: '6 playing',    tone: 2, you: false, champion: true },
  { rank: 2,  name: 'CamBam',          handle: '@cambam',   phr: 1428.2, points: 268.1, status: '5 playing',    tone: 6, you: true },
  { rank: 3,  name: 'Marco Reyes',     handle: '@mreyes',   phr: 1409.0, points: 251.8, status: '4 playing',    tone: 3, you: false },
  { rank: 4,  name: 'Sasha Patel',     handle: '@spatel',   phr: 1387.5, points: 240.3, status: '5 playing',    tone: 4, you: false },
  { rank: 5,  name: 'Henry Liu',       handle: '@hliu',     phr: 1361.8, points: 231.7, status: '3 playing',    tone: 1, you: false },
  { rank: 6,  name: 'Ben Karlsson',    handle: '@bk',       phr: 1340.4, points: 218.0, status: '4 playing',    tone: 5, you: false },
  { rank: 7,  name: 'Olivia Chen',     handle: '@ochen',    phr: 1318.9, points: 209.6, status: '2 playing',    tone: 2, you: false },
  { rank: 8,  name: 'Tyler Brooks',    handle: '@tylerb',   phr: 1297.2, points: 198.2, status: '3 playing',    tone: 3, you: false },
];

// Game log for Scottie detail sheet
const GAME_LOG = [
  { date: 'May 11', name: 'AT&T Byron Nelson',   finish: 'T2',  salary: 56, points: 92.4, score: -18, r: [64, 66, 65, 67] },
  { date: 'May 4',  name: 'Wells Fargo',         finish: 'T8',  salary: 56, points: 64.1, score: -11, r: [67, 68, 70, 68] },
  { date: 'Apr 20', name: 'RBC Heritage',        finish: '1',   salary: 54, points: 118.7, score: -19, r: [62, 67, 66, 70] },
  { date: 'Apr 13', name: 'Masters Tournament',  finish: '1',   salary: 52, points: 134.2, score: -11, r: [66, 72, 71, 68] },
  { date: 'Mar 30', name: 'Texas Children\'s',   finish: 'T5',  salary: 52, points: 78.0,  score: -14, r: [68, 67, 69, 70] },
  { date: 'Mar 17', name: 'THE PLAYERS',         finish: '1',   salary: 50, points: 142.6, score: -20, r: [65, 67, 65, 67] },
];

// NFL games for week view
const NFL_GAMES = [
  { id: 1,  away: 'KC',  home: 'BUF', awayName: 'Chiefs',    homeName: 'Bills',     kickoff: 'Sun 4:25p',  pick: 'BUF', conf: 16 },
  { id: 2,  away: 'SF',  home: 'GB',  awayName: '49ers',     homeName: 'Packers',   kickoff: 'Sun 4:25p',  pick: 'SF',  conf: 15 },
  { id: 3,  away: 'DAL', home: 'PHI', awayName: 'Cowboys',   homeName: 'Eagles',    kickoff: 'Sun 8:20p',  pick: 'PHI', conf: 14 },
  { id: 4,  away: 'BAL', home: 'CIN', awayName: 'Ravens',    homeName: 'Bengals',   kickoff: 'Sun 1:00p',  pick: 'BAL', conf: 13 },
  { id: 5,  away: 'MIA', home: 'NYJ', awayName: 'Dolphins',  homeName: 'Jets',      kickoff: 'Sun 1:00p',  pick: 'MIA', conf: 12 },
  { id: 6,  away: 'DET', home: 'MIN', awayName: 'Lions',     homeName: 'Vikings',   kickoff: 'Sun 1:00p',  pick: 'DET', conf: 11 },
  { id: 7,  away: 'LAR', home: 'SEA', awayName: 'Rams',      homeName: 'Seahawks',  kickoff: 'Sun 4:05p',  pick: 'SEA', conf: 10 },
  { id: 8,  away: 'HOU', home: 'IND', awayName: 'Texans',    homeName: 'Colts',     kickoff: 'Sun 1:00p',  pick: 'HOU', conf:  9 },
  { id: 9,  away: 'PIT', home: 'CLE', awayName: 'Steelers',  homeName: 'Browns',    kickoff: 'Sun 1:00p',  pick: 'PIT', conf:  8 },
  { id: 10, away: 'TB',  home: 'ATL', awayName: 'Buccaneers',homeName: 'Falcons',   kickoff: 'Sun 1:00p',  pick: 'TB',  conf:  7 },
  { id: 11, away: 'JAX', home: 'TEN', awayName: 'Jaguars',   homeName: 'Titans',    kickoff: 'Sun 1:00p',  pick: null,  conf:  null },
  { id: 12, away: 'CAR', home: 'NO',  awayName: 'Panthers',  homeName: 'Saints',    kickoff: 'Sun 1:00p',  pick: 'NO',  conf:  5 },
  { id: 13, away: 'CHI', home: 'WAS', awayName: 'Bears',     homeName: 'Commanders',kickoff: 'Mon 8:15p',  pick: 'WAS', conf:  4 },
];

Object.assign(window, { GOLFERS, OPP_LINEUP, FIELD, STANDINGS, GAME_LOG, NFL_GAMES });
