import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:party-popper',
      order: 51,
      title: '常驻活动',
    },
    name: 'ResidentActivityManager',
    path: '/resident-activity/manager',
    redirect: '/resident-activity/manager/sign-in-reward/config',
    children: [
      {
        name: 'ResidentSignInRewardConfig',
        path: 'sign-in-reward/config',
        component: () => import('#/views/resident-activity/sign-in-reward-config.vue'),
        meta: { title: '签到奖励配置' },
      },
      {
        name: 'ResidentVipConfig',
        path: 'vip/config',
        component: () => import('#/views/resident-activity/vip-config.vue'),
        meta: { title: 'VIP' },
      },
      {
        name: 'ResidentCpConfig',
        path: 'cp/config',
        component: () => import('#/views/resident-activity/cp-config.vue'),
        meta: { title: 'CP' },
      },
      {
        name: 'ResidentWheelConfig',
        path: 'wheel/config',
        component: () => import('#/views/resident-activity/wheel-config.vue'),
        meta: { title: '转盘' },
      },
      {
        name: 'ResidentSmashGoldenEggConfig',
        path: 'smash-golden-egg/config',
        component: () =>
          import('#/views/resident-activity/smash-golden-egg.vue'),
        meta: { title: '砸蛋' },
      },
      {
        name: 'ResidentRechargeRewardConfig',
        path: 'recharge-reward/config',
        component: () => import('#/views/resident-activity/recharge-reward-config.vue'),
        meta: { title: '充值奖励配置' },
      },
      {
        name: 'ResidentFirstRechargeRewardConfig',
        path: 'first-recharge-reward/config',
        component: () =>
          import('#/views/resident-activity/first-recharge-reward-config.vue'),
        meta: { title: '首冲奖励' },
      },
      {
        name: 'ResidentDailyTaskConfig',
        path: 'daily-task/config',
        component: () => import('#/views/resident-activity/daily-task-config.vue'),
        meta: { title: '每日任务' },
      },
      {
        name: 'ResidentVoiceRoomRedPacket',
        path: 'voice-room-red-packet',
        component: () => import('#/views/resident-activity/voice-room-red-packet.vue'),
        meta: { title: '红包' },
      },
      {
        name: 'ResidentVoiceRoomRocket',
        path: 'voice-room-rocket',
        component: () => import('#/views/resident-activity/voice-room-rocket.vue'),
        meta: { title: '火箭' },
      },
      {
        name: 'ResidentRegisterRewardConfig',
        path: 'register-reward/config',
        component: () => import('#/views/resident-activity/register-reward-config.vue'),
        meta: { title: '注册奖励配置' },
      },
      {
        name: 'ResidentInviteConfig',
        path: 'invite/config',
        component: () => import('#/views/resident-activity/invite-config.vue'),
        meta: { title: '邀请活动配置' },
      },
      {
        name: 'ResidentInviteList',
        path: 'invite/list',
        component: () => import('#/views/resident-activity/invite-list.vue'),
        meta: { title: '邀请活动列表' },
      },
      {
        name: 'ResidentSpecifiedGiftWeeklyRank',
        path: 'specified-gift-weekly-rank',
        alias: 'week-star',
        component: () => import('#/views/resident-activity/week-star.vue'),
        meta: { title: '周星' },
      },
      {
        name: 'ResidentRoomTurnoverReward',
        path: 'room-turnover-reward',
        component: () => import('#/views/resident-activity/room-turnover-reward.vue'),
        meta: { title: '房间流水奖励' },
      },
    ],
  },
];

export default routes;
