export const PcUrl = __PcUrl__;

export const WechatPcAppId = __WechatPcAppId__;

export const H5Url = __H5Url__;

export const WechatH5AppId = __WechatH5AppId__;

export const QuestionDifficult = [{ label: 'Easy', value: 'easy', sort: 2 }, { label: 'Medium', value: 'medium', sort: 1 }, { label: 'Hard', value: 'hard', sort: 0 }];

export const QuestionType = [{ label: '语法SC', value: 'sc', long: 'Sentence Correnction' }, { label: '阅读RC', value: 'rc', long: 'Reading Comprehension' }, { label: '逻辑CR', value: 'cr', long: 'Critical Reasoning' }, { label: '数学PS', value: 'ps', long: 'Problem solving' }, { label: '数学DS', value: 'ds', long: 'Data Sufficiency' }, { label: '综合推理IR', value: 'ir', long: 'Integrated Reasoning' }, { label: '作文AWA', value: 'awa', long: 'Analytical Writing Assessment' }];

export const ExaminationQuestionType = [{ label: '语法SC', value: 'sc', long: 'Sentence Correnction' }, { label: '阅读RC', value: 'rc', long: 'Reading Comprehension' }, { label: '逻辑CR', value: 'cr', long: 'Critical Reasoning' }, { label: '数学PS', value: 'ps', long: 'Problem solving' }, { label: '数学DS', value: 'ds', long: 'Data Sufficiency' }];

export const FeedbackQuestionType = [{ label: '语法SC', value: 'sc' }, { label: '阅读RC', value: 'rc' }, { label: '逻辑CR', value: 'cr' }, { label: '数学PS', value: 'ps' }, { label: '数学DS', value: 'ds' }, { label: '综合推理IR', value: 'ir' }, { label: '长难句', value: 'sentence' }];

export const TextbookType = [{ label: '数学PS', value: 'ps' }, { label: '数学DS', value: 'ds' }];

export const MoneyRange = [{ label: '0', value: 0 }, { label: '1-1000', value: 1 }, { label: '1000-5000', value: 2 }, { label: '5000-10000', value: 3 }, { label: '10000以上', value: 4 }];

export const AskTarget = [{ label: '题目', value: 'question', title: '题目', key: 'question' }, { label: '官方解析', value: 'official', title: '官方解析', key: 'official' }, { label: '千行解析', value: 'qx', title: '千行解析', key: 'qx' }, { label: '题源联想', value: 'association', title: '题源联想', key: 'association' }, { label: '相关问答', value: 'qa', title: '相关问答', key: 'qa' }];

export const ServiceKey = [{ label: 'VIP', value: 'vip' }, { label: '机经', value: 'textbook', expireDays: 180, useExpireDays: 30 }, { label: '千行CAT', value: 'qx_cat', expireDays: 180, useExpireDays: 180 }];

export const ServiceParamMap = {
  vip: [{ label: '30天', value: 'month1', expireDays: 0, useExpireDays: 30 }, { label: '90天', value: 'month3', expireDays: 0, useExpireDays: 90 }, { label: '180天', value: 'month6', expireDays: 0, useExpireDays: 180 }],
};

export const AskModule = [{ label: '练习', value: 'exercise' }, { label: '模考', value: 'examination' }];

export const PaperModule = [{ label: '练习', value: 'exercise' }, { label: '模考', value: 'examination' }, { label: '长难句', value: 'sentence' }, { label: '机经', value: 'textbook' }];

export const RecordSource = [{ label: '银行转账', value: 'bank' }, { label: '微信', value: 'wechat' }, { label: '支付宝', value: 'alipay' }, { label: '实名认证', value: 'real' }, { label: '邀请好友', value: 'invite' }, { label: '备考设置', value: 'prepare' }, { label: '课程赠送', value: 'gift_course' }, { label: '活动赠送', value: 'gift_activity' }, { label: '线下报名', value: 'backend' }];

export const RecordBuySource = [{ label: '银行转账', value: 'bank' }, { label: '微信', value: 'wechat' }, { label: '支付宝', value: 'alipay' }];

export const CourseSource = [{ label: '网上报名', value: 'bank' }, { label: '网上报名', value: 'wechat' }, { label: '网上报名', value: 'alipay' }, { label: '线下报名', value: 'backend' }];

export const SwitchSelect = [{ value: 0, label: '否' }, { value: 1, label: '是' }];

export const PassSelect = [{ value: 0, label: '未认证' }, { value: 1, label: '通过' }];

export const InputSelect = [{ value: 0, label: '未填' }, { value: 1, label: '已填' }];

export const SystemSelect = [{ value: 0, label: '用户' }, { value: 1, label: '系统' }];

export const AskStatus = [{ value: 0, label: '新增' }, { value: 1, label: '已回答' }, { value: 2, label: '忽略' }];

export const FeedbackStatus = [{ value: 0, label: '新增' }, { value: 1, label: '已处理' }, { value: 2, label: '忽略' }, { value: 3, label: '无需修改' }];

export const FeedbackModule = [{ value: 'question', label: '题目' }, { value: 'data', label: '资料' }];

export const PrepareStatus = [
  { label: '学生-Domestic', value: 'student_domestic', short: '学生-D' },
  { label: '学生-Overseas', value: 'student_overseas', short: '学生-O' },
  { label: '在职-Domestic', value: 'worker_domestic', short: '在职-D' },
  { label: '在职-Overseas', value: 'worker_overseas', short: '在职-O' },
  { label: 'Gap Year', value: 'gap_year', short: 'Gap Year' },
];

export const PrepareExaminationTime = [{ label: '近1个月', value: 'one_month' }, { label: '近2个月', value: 'two_month' }, { label: '近3个月', value: 'three_month' }, { label: '半年内', value: 'six_month' }];

export const PrepareScoreTime = [{ label: '近1个月', value: 'one_month' }, { label: '近2个月', value: 'two_month' }, { label: '近3个月', value: 'three_month' }, { label: '半年内', value: 'six_month' }, { label: '1年内', value: 'one_year' }, { label: '不清楚', value: 'other' }];

export const ProductType = [{ label: '服务', value: 'service' }, { label: '课程', value: 'course' }, { label: '资料', value: 'data' }, { label: '课程-套餐', value: 'course-package' }];

export const ProductTypeMain = [{ label: '服务', value: 'service' }, { label: '课程', value: 'course' }, { label: '资料', value: 'data' }];

export const QuestionStyleType = [{ label: '单选', value: 'single' }, { label: '横纵向单选', value: 'double' }, { label: '题目内选择', value: 'inline' }];

export const QuestionRadioDirection = [{ label: '横向', value: 'landscape' }, { label: '纵向', value: 'portrait' }];

export const SentenceOption = [{ label: '平行', value: 'parallel' }, { label: '修饰', value: 'embellish' }, { label: '转折', value: 'transition' }, { label: '比较', value: 'compare' }, { label: '因果', value: 'cause' }, { label: '递进', value: 'progressively' }];

export const ExaminationSubject = [{ long: 'Analytical Writing Analysis', value: 'awa', label: '作文', english: 'AWA', ignore: true }, { long: 'Integrated Reasoning', value: 'ir', label: '综合推理', english: 'IR' }, { long: 'Quantitative', value: 'quant', label: '数学', english: 'Quant' }, { long: 'Verbal', value: 'verbal', label: '语文', english: 'Verbal' }];

export const ExaminationOrder = [
  { label: 'ARQV', value: ['awa', 'ir', 'quant', 'verbal'], list: [{ label: 'Analytical Writing Analysis', value: 'awa' }, { label: 'Integrated Reasoning', value: 'ir' }, { label: 'Quantitative', value: 'quant' }, { label: 'Verbal', value: 'verbal' }] },
  { label: 'VQRA', value: ['verbal', 'quant', 'ir', 'awa'], list: [{ label: 'Verbal', value: 'verbal' }, { label: 'Quantitative', value: 'quant' }, { label: 'Integrated Reasoning', value: 'ir' }, { label: 'Analytical Writing Analysis', value: 'awa' }] },
  { label: 'QVRA', value: ['quant', 'verbal', 'ir', 'awa'], list: [{ label: 'Quantitative', value: 'quant' }, { label: 'Verbal', value: 'verbal' }, { label: 'Integrated Reasoning', value: 'ir' }, { label: 'Analytical Writing Analysis', value: 'awa' }] },
];

export const DataType = [{ label: '电子', value: 'electron' }, { label: '纸质', value: 'paper' }];

export const ExperienceScore = [{ label: '680+', value: '_680' }, { label: '700+', value: '_700' }, { label: '730+', value: '_730' }, { label: '750+', value: '_750' }];

export const ExperienceScoreRange = [680, 800, 10];

export const ExperienceDay = [{ label: '<=1个月', value: 'lt1month' }, { label: '1-3个月', value: 'b13month' }, { label: '>=3个月', value: 'gt3month' }];

export const ExperiencePercent = [{ label: '50+', value: '_50' }, { label: '100+', value: '_100' }, { label: '150+', value: '_150' }, { label: '200+', value: '_200' }];

export const CourseModule = [{ label: '视频课程', value: 'video' }, { label: '小班课程', value: 'online' }, { label: '1v1课程', value: 'vs' }];

export const CourseModuleShow = [{ label: '在线课程', value: 'online', courseModules: ['video', 'online'] }, { label: '1V1私教', value: 'vs', courseModules: ['vs'] }];

export const CourseVsType = [{ label: '新手辅导', value: 'novice', tips: '适合未参加过实战的考生', icon: 'xinshoufudao' }, { label: '诊断辅导', value: 'coach', tips: '适合参加过实战的考生', icon: 'zhenduanfudao' }, { label: '系统授课', value: 'system', icon: 'xitongshouke' }, { label: '答疑课', value: 'answer', icon: 'dayi' }];

export const CourseVideoType = [{ label: '基础刷题', value: 'base' }, { label: '系统授课', value: 'system' }, { label: '思维提升', value: 'thinking' }];

export const CrowdList = [{ label: '新手', value: 'novice' }, { label: '非新手', value: 'veteran' }];

export const CourseStatus = [{ label: '未开通', value: 0 }, { label: '学习中', value: 1 }, { label: '已到期', value: 2 }];

export const InvoiceType = [{ label: '个人', value: 'personal' }, { label: '公司', value: 'enterprise' }];

export const TextbookQuality = [{ label: '残缺', value: 'incomplete' }, { label: '较完整', value: 'morecomplete' }, { label: '完整', value: 'complete' }];

export const TextbookSubject = [{ label: '数学', value: 'quant' }, { label: '阅读', value: 'rc' }, { label: '逻辑', value: 'ir' }];

export const TextbookFeedbackStatus = [{ value: 0, label: '新增' }, { value: 1, label: '采纳' }, { value: 2, label: '忽略' }, { value: 3, label: '无需修改' }];

export const TextbookFeedbackTarget = [{ label: '纠正解析', value: 'correct', tip: '正确的解析和答案是' }, { label: '完善已有机经', value: 'perfect', tip: '补充内容是' }, { label: '提供全新机经', value: 'new', tip: '新机经是' }];

export const ContractKey = [{ label: '注册', value: 'register' }, { label: '课程购买', value: 'course' }];

export const RoomPosition = [{ label: '北部', value: 'north' }, { label: '东部', value: 'east' }, { label: '中南', value: 'south_central' }, { label: '西部', value: 'west' }, { label: '海外', value: 'overseas' }];

export const MessageCategory = [
  { label: '注册消息', value: 'register', params: ['mobile'] },
  { label: '登录异常', value: 'login_abnormal', params: ['nickname', 'ip', 'city'] },
  { label: '机经更新', value: 'textbook_update', params: [''] },
  { label: '预习作业提醒', value: 'preview_notice', params: ['courseTitle', 'title'] },
  { label: '支付成功提醒', value: 'payed', params: ['money'] },
  { label: '资料更新', value: 'data_update', params: ['title', 'time'] },
  { label: '题目提问回复', value: 'ask_question', params: ['content', 'time', 'status'] },
  { label: '课程提问回复', value: 'ask_course', params: ['content', 'time', 'status'] },
  { label: '咨询回复', value: 'faq_callback', params: ['content', 'answer', 'channel'] },
  { label: '纠错回复', value: 'feedback_callback', params: ['content', 'object', 'correct', 'status'] },
  { label: '邀请好友注册', value: 'invited', params: ['code', 'nickname', 'url'] },
  { label: '邮箱变更', value: 'email_change', params: ['nickname', 'email'] },
  { label: '自定义消息', value: 'custom', params: ['nickname'] },
];

export const MessageEmailStatus = [
  { label: '已停止', value: 0 },
  { label: '运行中', value: 1 },
];

export const MessageCustomStatus = [
  { label: '未发送', value: 0 },
  { label: '发送中', value: 1 },
  { label: '发送完', value: 2 },
];

export const MessageType = [
  { label: '系统消息', value: 'system' },
  { label: '动态消息', value: 'feed' },
];

export const FaqChannel = [
  { label: 'GetReady', value: 'getready' },
  { label: '模考', value: 'examination' },
  { label: 'CAT难度适应性', value: 'cat', parent: 'examination' },
  { label: '非CAT', value: 'base', parent: 'examination' },
  { label: '数学机经', value: 'textbook' },
  { label: '换库', value: 'library' },
  { label: '课堂-课程', value: 'course' },
  { label: '首页', value: 'index', parent: 'course' },
  { label: '视频首页', value: 'video_index', parent: 'course' },
  { label: '单项', value: 'video', parent: 'course' },
  { label: '套餐首页', value: 'package_index', parent: 'course' },
  { label: '1对1首页', value: 'vs_index', parent: 'course' },
  { label: '课堂-资料', value: 'course_data' },
];

export const CommentChannel = [
  // { label: '网站首页', value: 'main', type: 'manual' },
  { label: '换库机经', value: 'library' },
  { label: '课堂-课程', value: 'course' },
  { label: '首页', value: 'index', parent: 'course', type: 'manual' },
  { label: '视频首页', value: 'video_index', parent: 'course', type: 'manual' },
  { label: '单项', value: 'video', parent: 'course' },
  { label: '套餐首页', value: 'package_index', parent: 'course' },
  { label: '1对1首页', value: 'vs_index', parent: 'course', type: 'manual' },
  { label: '1对1', value: 'vs', parent: 'course' },
  { label: '课堂-资料', value: 'course_data' },
];

export const AdChannel = [
  { label: '个人中心', value: 'my' },
  { label: '我的', value: 'self', parent: 'my' },
  { label: '课程', value: 'course' },
  { label: '首页', value: 'index', parent: 'course' },
];

export const AdPlace = [
  { label: '右1', value: '1', parent: 'my-self' },
  { label: '右2', value: '2', parent: 'my-self' },
  { label: '右3', value: '3', parent: 'my-self' },
  { label: '顶部', value: 'top', parent: 'course-index' },
];

export const OrderInfoMap = {
  service: {
    qx_cat: {
      label: '千行-CAT模考(6套)',
      description: '共包含6套CAT模考,在有效期内可重置一次,每套模考可做两次。',
      refund_policy: '本商品为虚拟产品,购买成功后不支持退款。',
      copyright_notes: '本商品仅限购买者本人使用,不可商用和传播。',
      result: '您已成功购买“千行-CAT模考”服务,\n确认邮件已发送至您的邮箱:{email},请注意查收。',
      tips: '您可至“个人中心- 工具”开通。',
    },
    vip: {
      label: 'VIP',
      description: '自由组卷、加强版报告、导出笔记、专享解析、换库提醒等权益。',
      refund_policy: '本商品为虚拟产品,购买成功后不支持退款。',
      copyright_notes: '本商品仅限购买者本人使用,不可商用和传播。',
      result: '您已成功购买“VIP({useExpireDays}天)”服务,\n确认邮件已发送至您的邮箱:{email},请注意查收。\nVIP有效期至:{endTime}',
      tips: '您可至“个人中心- 工具”开通。',
    },
    textbook: {
      label: '千行机经',
      description: '数学机经+阅读机经+逻辑机经,可在线查阅、在线练习或下载至本地,同时自动更新至预留邮箱。',
      refund_policy: '本商品为虚拟产品,购买成功后不支持退款。',
      copyright_notes: '本商品仅限购买者本人使用,不可商用和传播。',
      result: '您已成功购买“机经”服务,\n确认邮件已发送至您的邮箱:{email},请注意查收。',
      tips: '您可至“个人中心-工具”开通。',
    },
  },
  data: {
    refund_policy: '本商品为虚拟产品,购买成功后不支持退款。',
    copyright_notes: '本商品仅限购买者本人使用,不可商用和传播。',
    result: '您已成功购买“{title}”服务,\n确认邮件已发送至您的邮箱:{email},请注意查收。',
    tips: '您可至“个人中心-工具”开通。',
  },
  course: {
    refund_policy: '本商品为虚拟产品,购买成功后不支持退款。',
    copyright_notes: '本商品仅限购买者本人使用,不可商用和传播。',
    result: '您已成功购买“{title}”服务,\n确认邮件已发送至您的邮箱:{email},请注意查收。',
    tips: '您可至“个人中心-课程”进行开通。',
  },
  course_package: {
    refund_policy: '本商品为虚拟产品,购买成功后不支持退款。',
    copyright_notes: '本商品仅限购买者本人使用,不可商用和传播。',
    result: '您已成功购买“{title}”服务,\n确认邮件已发送至您的邮箱:{email},请注意查收。',
    tips: '您可至“个人中心-课程”进行开通。',
  },
};

export const TimeRange = [{ title: '今天', key: 'today' }, { title: '近一周', key: 'week' }, { title: '近一个月', key: 'month' }, { title: '近三个月', key: 'month3' }, { title: '全部', key: 'all' }];

export const TextbookMinYear = 2018;

export const MobileArea = ['+86', '+1'].map(row => {
  return { label: row, value: row };
});
// const content = {
//   steps: [{
//     title: '',
//     stem: '',
//   }],
//   questions: [{
//     description: '', // type!=inline
//     select: [],
//     direction: '', // type=double
//     first: '', // type=double
//     second: '', // type=double
//   }],
//   table: {
//     row: 3,
//     col: 3,
//     header: [],
//     data: [[], []],
//   },
//   type: '',
//   number: '',
//   typeset: 'one|two',
// };

// const answer = {
//   questions: [{
//     single: [true, false],
//     double: [[true, false], [false, true]],
//   }],
//   // aws作文内容
//   aws: '',
//   // sentence
//   subject: [[{ text: '', uuid: '' }, { text: '', uuid: '' }], [{ text: '', uuid: '' }]],
//   predicate: [],
//   object: [],
//   options: [],
// };

// 答案分布
// const answerDistributed = {
//   questions: [{
//     single: [0, 1],
//     double: [[0, 1], [11, 22]],
//   }],
// };

// 备考统计字段格式
// const PrepareStat = {
//   status: [{ key: '', value: '' }],
//   goal: [{ key: '', value: '' }],
//   examinationTime: [{ key: '', value: '' }],
//   scoreTime: [{ key: '', value: '' }],
// };

// 练习报告
// const exerciseReportDetail = {
//   pace: [{ no: '', time: '', userTime: '' }],
//   difficult: [{ key: '', userNumber: '', userCorrect: '', totalNumber: '', totalCorrect: '' }],
//   place: [{ key: '', userNumber: '', userCorrect: '', userTime: '' }],
//   limit: { userNumber: '', userCorrect: '' },
//   info: { times: '', finishTime: '', userTime: '', time: '', questionNumber: '', userNumber: '', userCorrect: '', totalNumber: '', totalCorrect: '', totalTime: '', correctTime: '', incorrectTime: '' },
// };

// 长难句做题结果
// const sentenceQuestionDetail = {
//   subject: true,
//   predicate: true,
//   object: true,
//   options: true,
// };

// 长难句报告
// const sentenceReportDetail = {
//   ability: { score: '', struct: '', logic: '', speed: '' },
//   info: { times: '', finishTime: '', userTime: '', time: '', questionNumber: '', userNumber: '', userCorrect: '', totalNumber: '', totalCorrect: '', totalTime: '', correctTime: '', incorrectTime: '' },
// };

// 模考题目数:/base/examination/number返回
// const examinationNumber = { verbal: { number: '36', time: '65' }, ir: { number: '12', time: '30' }, awa: { number: '1', time: '30' }, quant: { number: '31', time: '62' } };

// 模考设置
// const examinationSetting = {
//   order: [],
//   disorder: true,
//   stage: '', // 当前阶段
//   time: { verbal: 0 }, // 每个阶段时间
//   number: { verbal: 0 }, // 每个阶段做题数
//   verbal: { steps: [{ ids: [], level: 0 }] }, // 语文出题逻辑
//   quant: { steps: [{ ids: [], level: 0 }] }, // 数学出题逻辑
//   rc: { 5: 8 }, // 随机出题时,rc题的对应序号
// };

// 模考卷子分数
// const examinationScore = {
//   totalScore: 123, totalRank:12, quantScore: 123, quantRank: 123, verbalScore: 123, verbalRank: 123, irScore: 123, irRank: 123,
// };

// 模考卷子报告
// const examinationReportDetail = {
//   subject: {
//     [key]: {
//       key: '',
//       pace: [{ no: '', time: '', userTime: '' }],
//       place: [{ key: '', userNumber: '', userCorrect: '', userTime: '' }],
//       difficult: [{ key: '', userNumber: '', userCorrect: '', totalNumber: '', totalCorrect: '' }],
//       info: { questionNumber: '', time: '', userNumber: '', userTime: '', userCorrect: '', correctTime: '', incorrectTime: '', avgDiffCorrect: '', avgDiffIncorrect: '' },
//     },
//   },
//   type: {
//     [key]: {
//       key: '',
//       pace: [{ no: '', time: '', userTime: '' }],
//       place: [{ key: '', userNumber: '', userCorrect: '', userTime: '' }],
//       difficult: [{ key: '', userNumber: '', userCorrect: '', totalNumber: '', totalCorrect: '' }],
//       info: { questionNumber, '', time: '', userNumber: '', userTime: '', userCorrect: '', correctTime: '', incorrectTime: '', avgDiffCorrect: '', avgDiffIncorrect: '' },
//     },
//   },
//   info: { times: '', finishTime: '', userTime: '', time: '', questionNumber: '', userNumber: '', userCorrect: '' },
// };

// 每日统计

// 首页设置:
// const index = {
//   class: [{
//     title: '',
//     image: '',
//     link: '',
//   }],
//   activity: [{
//     image: '',
//     link: '',
//   }],
//   evaluation: [{
//     nickname: '',
//     avatar: '',
//     content: '',
//   }],
//   prepare: {
//     first: '',
//     continue: '',
//     classJunior: '',
//     classMiddle: '',
//     classSenior: '',
//   },
//   user: {
//     numberOffline: 0,
//     number700: 0,
//     numberScore: 0,
//   },
//   contact: {
//     phone: '',
//     email: '',
//     wechat: '',
//     wechatImage: '',
//     weiboImage: '',
//   },
// };

// service信息
// const service = {
//   price: 0,
//   title: '',
//   description: '',
//   expire_info: '',
//   refund_policy: '',
//   copyright_notes: '',
// }

// 心经配置
// const exerienceInfo = {
//   score: [],
//   percent: [],
//   period: 0,
// };