// 注册来源
import { localizeCollection } from '@/lang'

const registerOrigins = [
  { value: "MOBILE", name: "手机号码" },
  { value: "APPLE", name: "Apple" },
  { value: "GOOGLE", name: "Google" },
  { value: "FACEBOOK", name: "Facebook" },
  { value: "SNAPCHAT", name: "Snapchat" }
];

// 来源平台
const originPlatforms = [
  { value: "Android", name: "Android" },
  { value: "iOS", name: "iOS" },
  { value: "H5", name: "H5" }
];

// app平台
const appPlatforms = [
  { value: "Android", name: "Android" },
  { value: "iOS", name: "iOS" }
];

// 设备平台
const deviceTypes = [
  // { value: 'UMENG', name: '友盟' },
  { value: "GOOGLE", name: "谷歌" }
];

// 支付方式
const payPlatforms = [
  { value: "APPLE", name: "Apple" },
  { value: "GOOGLE", name: "Google" },
  { value: "STRIPE", name: "Stripe" },
  { value: "PAY_MAX", name: "PayerMax" }
];

// 系统平台树
const sysPlatforms = [
  { value: "iOS", label: "iOS" },
  { value: "Android", label: "Android" }
];

// 系统平台
const sysOriginPlatforms = [
  {
    value: "ATYOU",
    label: "ATYOU",
    permission: "query:atyou",
    children: sysPlatforms
  }
];

// 礼物类型
const giftType = [
  { value: "GIFT", label: "礼物" },
  { value: "PROPS", label: "道具" },
  { value: "GOLD", label: "金币" }
];

const giftInfo = [
  { value: "GIFT", label: "礼物" },
  { value: "PROPS", label: "道具" },
  { value: "NOBLE_VIP", label: "贵族VIP" }
];

/**
 * 道具赠送类型
 */
const propsGiveTypes = [
  { value: "GOLD", name: "金币" },
  { value: "DIAMOND", name: "钻石" },
  { value: "BADGE", name: "徽章" },
  { value: "PROPS", name: "道具" }
];

/**
 * 徽章类型
 */
const badgeTypes = [
  { value: "ACHIEVEMENT", name: "用户-成就徽章" },
  { value: "ADMINISTRATOR", name: "用户-管理员" },
  { value: "ACTIVITY", name: "用户-活动徽章" },
  { value: "HONOR_ADMIN", name: "荣誉-管理员" },
  { value: "HONOR_ACTIVITY", name: "荣誉-活动" }
];

localizeCollection([
  registerOrigins,
  originPlatforms,
  appPlatforms,
  deviceTypes,
  payPlatforms,
  sysPlatforms,
  sysOriginPlatforms,
  giftType,
  giftInfo,
  propsGiveTypes,
  badgeTypes
])

export {
  badgeTypes,
  propsGiveTypes,
  registerOrigins,
  originPlatforms,
  appPlatforms,
  sysOriginPlatforms,
  giftType,
  giftInfo,
  payPlatforms,
  deviceTypes
};
