/** 串关列表表头与玩法类型（labelKey 对应 main.ts bet.*） */
export const PARLAY_MARKET_TYPES = [
  { key: 'FT_HANDICAP', labelKey: 'market_ft_handicap' },
  { key: 'FT_OVER_UNDER', labelKey: 'market_ft_ou' },
  { key: 'FT_1X2', labelKey: 'market_ft_1x2' },
  { key: 'FT_ODD_EVEN', labelKey: 'market_ft_oe' },
  { key: 'HT_HANDICAP', labelKey: 'market_ht_handicap' },
  { key: 'HT_OVER_UNDER', labelKey: 'market_ht_ou' },
  { key: 'HT_1X2', labelKey: 'market_ht_1x2' },
] as const;

export type ParlayMarketType = (typeof PARLAY_MARKET_TYPES)[number]['key'];

/** 按全场 / 半场分组（headerKey 对应 bet.ft / bet.ht） */
export const PARLAY_MARKET_GROUPS = [
  {
    headerKey: 'ft',
    columns: [
      { key: 'FT_HANDICAP', labelKey: 'parlay_lbl_handicap' },
      { key: 'FT_OVER_UNDER', labelKey: 'parlay_lbl_ou' },
      { key: 'FT_1X2', labelKey: 'parlay_lbl_1x2' },
      { key: 'FT_ODD_EVEN', labelKey: 'parlay_lbl_oe' },
    ],
  },
  {
    headerKey: 'ht',
    columns: [
      { key: 'HT_HANDICAP', labelKey: 'parlay_lbl_handicap' },
      { key: 'HT_OVER_UNDER', labelKey: 'parlay_lbl_ou' },
      { key: 'HT_1X2', labelKey: 'parlay_lbl_1x2' },
    ],
  },
] as const;

/** 选项简称 i18n key（串关格内展示） */
export const PARLAY_SELECTION_KEYS: Record<string, string> = {
  HOME: 'parlay_sel_home',
  AWAY: 'parlay_sel_away',
  DRAW: 'parlay_sel_draw',
  OVER: 'parlay_sel_over',
  UNDER: 'parlay_sel_under',
  ODD: 'parlay_sel_odd',
  EVEN: 'parlay_sel_even',
};
