export const pageConfig = {
  name: 'TheGreedyKing',
  routePath: '/activities/games/the-greedy-king',
  routeName: 'games-the-greedy-king',
  assetPath: 'Activities/Games/TheGreedyKing/',

  activity: {
    templateId: '1994334094730010626',
    activityType: 1068,
    cycleType: 3,
    cycleKey: '202511',
  },

  preload: {
    blocking: [
      'bg',
      'helpBt',
      'timeBg',
      'rankingBt',
      'rewardsBt',
      'RankingMain',
      'RankingItem',
      'RankingBottomBorder',
      'myRankingBg',
      'helpInfoBg',
      'frameTop1',
      'frameTop2',
      'frameTop3',
      'rewardBgTop1',
      'rewardBgTop2',
      'rewardBgTop3',
      'giftItemBg',
    ],
    background: [],
  },

  modules: {
    tabs: {
      enabled: true,
      defaultValue: 'ranking',
      items: [
        {
          value: 'ranking',
          label: 'Ranking',
          buttonImage: 'rankingBt',
          activeButtonImage: 'rankingBt',
          remark: '排行榜按钮只有一张图片，非展示模块时页面置灰。',
        },
        {
          value: 'reward',
          label: 'Rewards',
          buttonImage: 'rewardsBt',
          activeButtonImage: 'rewardsBt',
          remark: '奖励按钮只有一张图片，非展示模块时页面置灰。',
        },
      ],
    },
    sections: [
      {
        name: 'ranking',
        label: 'Ranking',
        enabled: true,
        apis: ['getRankingListAndMyRanking'],
        loadMode: 'client-incremental',
        pageSize: 10,
        images: ['RankingMain', 'RankingItem', 'RankingBottomBorder', 'myRankingBg'],
        previewImages: ['frameTop1', 'frameTop2', 'frameTop3'],
        remark: '保留旧页排行榜布局：前三名、第四名之后列表和底部我的排名。',
        children: {},
      },
      {
        name: 'reward',
        label: 'Rewards',
        enabled: true,
        apis: ['getThisWeekRewardsAndGifts'],
        images: ['rewardBgTop1', 'rewardBgTop2', 'rewardBgTop3', 'giftItemBg'],
        previewImages: [],
        remark: '保留旧页奖励列表布局，并沿用旧页追加前三名美元奖励的逻辑。',
        children: {},
      },
    ],
    popups: [
      {
        name: 'help',
        triggerImage: 'helpBt',
        backgroundImage: 'helpInfoBg',
        contentImage: '',
        apis: [],
        remark: '规则说明弹窗使用 itemCenter 承载 helpInfoBg，内部通过 greedy_king_help_rule_* 多语言 key 渲染。',
      },
    ],
    features: [
      {
        name: 'countdown',
        enabled: true,
        deadline: '2026-06-08 05:00:00',
        images: ['timeBg'],
        fields: {
          endTime: '2026-06-08 05:00:00',
          remainingText: '',
        },
        remark: '倒计时截止时间和计算方式按 BountyFootball/index.vue 对齐。',
      },
    ],
  },

  images: {
    localized: {
      ar: ['helpInfoBg', 'rankingBt', 'RankingMain', 'rewardsBt'],
      bn: ['helpInfoBg', 'rankingBt', 'RankingMain', 'rewardsBt'],
      tr: ['helpInfoBg', 'rankingBt', 'RankingMain', 'rewardsBt'],
    },
  },
}
