export const SHUFA_URL =
  'https://jiaoxue.shufaxiaozhuangyuan.cn/index/live/autoxxl?code=eyJpdiI6IklGMm5HOVpJYTBkU2tHa1c1M2YxTXc9PSIsInZhbHVlIjoiNWNqeFVVQ1Z4bVYyUmJyS0ZRbjB0UT09In0='
const SHUFA_ACCOUNTS = [
  'sx001',
  'sx002',
  'sx003',
  'sx004',
  'sx005',
  'sx006',
  'sx007',
  'sx008',
  'sx009',
  'sx010',
  '15928631036',
]
export const SHUFA_PATH = '/sfxzy'
export const isShufaAccount = (account: any) => {
  return SHUFA_ACCOUNTS.includes(account)
}

const OSS_URL = `${import.meta.env.VITE_OSS_URL}`
export const systemApps = [
  {
    iconPath: `${OSS_URL}/urm/app_xiangji.png`,
    appName: '相机',
    pkName: 'com.android.camera2',
  },
  {
    iconPath: `${OSS_URL}/urm/app_rili.png`,
    appName: '日历',
    pkName: 'com.android.calendar',
  },
  {
    iconPath: `${OSS_URL}/urm/app_wenjianjike.png`,
    appName: '文件',
    pkName: 'com.android.documentsui',
  },
  {
    iconPath: `${OSS_URL}/urm/app_tuku.png`,
    appName: '图库',
    pkName: 'com.android.gallery3d',
  },
  {
    iconPath: `${OSS_URL}/urm/app_shezhi.png`,
    appName: '设置',
    pkName: 'com.android.settings',
  },
  {
    iconPath: `${OSS_URL}/urm/app_jisuanqi.png`,
    appName: '计算器',
    pkName: 'com.android.calculator2',
  },
  {
    iconPath: `${OSS_URL}/urm/app_shizhong.png`,
    appName: '时钟',
    pkName: 'com.android.deskclock',
  },
  {
    iconPath: `${OSS_URL}/urm/app_rijiben.png`,
    appName: '日记本',
    pkName: 'com.jxw.rijiben',
    cls: 'com.jxw.rijiben.MainActivity',
  },
  {
    iconPath: `${OSS_URL}/urm/app_kechengbiao.png`,
    appName: '课程表',
    pkName: 'com.jxw.classtable',
    cls: 'com.jxw.classtable.MainActivity',
  },
]
export const aiApps = [
  {
    iconPath: `${OSS_URL}/urm/app_shufaxiaozhuangyuan.png`,
    appName: '书法小状元',
    href: SHUFA_URL,
  },
  {
    iconPath: `${OSS_URL}/urm/app_shufaxiaozhuangyuan.png`,
    appName: '智写测评',
    href: 'http://write.xuexiaole.com/#/',
  },
  {
    iconPath: `${OSS_URL}/urm/app_zhinenghuyan.png`,
    appName: '智能护眼',
    pkName: 'com.jxw.zhinenghuyan',
    cls: 'com.jxw.zhinenghuyan.MainActivity',
  },
  {
    iconPath: `${OSS_URL}/urm/app_paizhaosouti.png`,
    appName: '拍照搜题',
    pkName: 'com.jxw.souti',
    cls: 'com.jxw.souti.ui.activity.MainActivity',
  },
  {
    iconPath: `${OSS_URL}/urm/app_zhijianchaci.png`,
    appName: '指尖查词',
    pkName: 'com.jxw.zncd',
    cls: 'com.jxw.zncd.OCRWordActivity',
  },
  {
    iconPath: `${OSS_URL}/urm/app_huibenbandu.png`,
    appName: '绘本伴读',
    pkName: 'com.jxw.huiben',
    cls: 'com.jxw.huiben.activity.SplashActivity',
    extra: {
      StartArgs: 'huiben',
    },
  },
  {
    iconPath: `${OSS_URL}/urm/app_zuoyepigai.png`,
    appName: '作业批改',
    pkName: 'com.jxw.souti',
    cls: 'com.jxw.souti.ui.activity.MainActivity',
  },
  {
    iconPath: `${OSS_URL}/urm/app_aizhidu.png`,
    appName: 'AI指读',
    pkName: 'com.jxw.huiben',
    cls: 'com.jxw.huiben.activity.SplashActivity',
    extra: {
      StartArgs: 'keben',
    },
  },
]
export const expandApps = [
  {
    iconPath: `${OSS_URL}/urm/app_meisu.png`,
    appName: '美术',
    pkName: 'com.jxw.newyouer.video',
    cls: 'com.jxw.newyouer.activity.QualityActivity',
    extra: {
      StartArgs: '美术',
    },
  },
  {
    iconPath: `${OSS_URL}/urm/app_shufa.png`,
    appName: '书法',
    pkName: 'com.jxw.newyouer.video',
    cls: 'com.jxw.newyouer.activity.QualityActivity',
    extra: {
      StartArgs: '书法',
    },
  },
  {
    iconPath: `${OSS_URL}/urm/app_zhonghuawenhua.png`,
    appName: '中华文化',
    pkName: 'com.jxw.newyouer.video',
    cls: 'com.jxw.newyouer.activity.QualityActivity',
    extra: {
      StartArgs: '中华文化',
    },
  },
  {
    iconPath: `${OSS_URL}/urm/app_huibendonghua.png`,
    appName: '绘本动画',
    pkName: 'com.jxw.newyouer.video',
    cls: 'com.jxw.newyouer.activity.QualityActivity',
    extra: {
      StartArgs: '绘本动画',
    },
  },
  {
    iconPath: `${OSS_URL}/urm/app_ergelvdong.png`,
    appName: '儿歌律动',
    pkName: 'com.jxw.newyouer.video',
    cls: 'com.jxw.newyouer.activity.QualityActivity',
    extra: {
      StartArgs: '儿歌律动',
    },
  },
  {
    iconPath: `${OSS_URL}/urm/app_youshenggushi.png`,
    appName: '有声故事',
    pkName: 'com.jxw.newyouer.video',
    cls: 'com.jxw.newyouer.activity.QualityActivity',
    extra: {
      StartArgs: '有声故事',
    },
  },
  {
    iconPath: `${OSS_URL}/urm/app_shenghuobaike.png`,
    appName: '生活百科',
    pkName: 'com.jxw.newyouer.video',
    cls: 'com.jxw.newyouer.activity.QualityActivity',
    extra: {
      StartArgs: '生活百科',
    },
  },
  {
    iconPath: `${OSS_URL}/urm/app_tongbushuyuan.png`,
    appName: '同步书苑',
    pkName: 'com.jxw.jxwbook',
    cls: 'com.jxw.jxwbook.MainActivity',
  },
  {
    iconPath: `${OSS_URL}/urm/app_zhuanzhulixunlian.png`,
    appName: '专注力训练',
    pkName: 'com.jxw.schultegrid',
    cls: 'com.jxw.schultegrid.SettingActivity',
  },
]
export const infantApps = [
  {
    iconPath: `${OSS_URL}/urm/app_meisu.png`,
    appName: '美术',
    pkName: 'com.jxw.newyouer.video',
    cls: 'com.jxw.newyouer.activity.QualityActivity',
    extra: {
      StartArgs: '美术',
    },
  },
  {
    iconPath: `${OSS_URL}/urm/app_shufa.png`,
    appName: '书法',
    pkName: 'com.jxw.newyouer.video',
    cls: 'com.jxw.newyouer.activity.QualityActivity',
    extra: {
      StartArgs: '书法',
    },
  },
  {
    iconPath: `${OSS_URL}/urm/app_zhonghuawenhua.png`,
    appName: '中华文化',
    pkName: 'com.jxw.newyouer.video',
    cls: 'com.jxw.newyouer.activity.QualityActivity',
    extra: {
      StartArgs: '中华文化',
    },
  },
  {
    iconPath: `${OSS_URL}/urm/app_huibendonghua.png`,
    appName: '绘本动画',
    pkName: 'com.jxw.newyouer.video',
    cls: 'com.jxw.newyouer.activity.QualityActivity',
    extra: {
      StartArgs: '绘本动画',
    },
  },
  {
    iconPath: `${OSS_URL}/urm/app_ergelvdong.png`,
    appName: '儿歌律动',
    pkName: 'com.jxw.newyouer.video',
    cls: 'com.jxw.newyouer.activity.QualityActivity',
    extra: {
      StartArgs: '儿歌律动',
    },
  },
  {
    iconPath: `${OSS_URL}/urm/app_youshenggushi.png`,
    appName: '有声故事',
    pkName: 'com.jxw.newyouer.video',
    cls: 'com.jxw.newyouer.activity.QualityActivity',
    extra: {
      StartArgs: '有声故事',
    },
  },
  {
    iconPath: `${OSS_URL}/urm/app_shenghuobaike.png`,
    appName: '生活百科',
    pkName: 'com.jxw.newyouer.video',
    cls: 'com.jxw.newyouer.activity.QualityActivity',
    extra: {
      StartArgs: '生活百科',
    },
  },
  {
    iconPath: `${OSS_URL}/urm/app_tongbushuyuan.png`,
    appName: '同步书苑',
    pkName: 'com.jxw.jxwbook',
    cls: 'com.jxw.jxwbook.MainActivity',
  },
  {
    iconPath: `${OSS_URL}/urm/app_renshishuzi.png`,
    appName: '认识数字',
    pkName: 'com.jxw.studydigital',
    cls: 'com.jxw.studydigital.StuDydigitalActivity',
  },
  {
    iconPath: `${OSS_URL}/urm/app_zimuxuexi.png`,
    appName: '字母学习',
    pkName: 'com.jxw.mskt.video',
    cls: 'com.jxw.mskt.video.VideoTopicActivity',
    extra: {
      isTopic: true,
      isYYGJ: true,
      url: 'http://api4.jiumentongbu.com/api/jwfd/baseapp/url?filePath=专区数据/英语广角/幼儿启蒙/ABC字母/menu.json',
    },
  },
  {
    iconPath: `${OSS_URL}/urm/app_youerpingtai.png`,
    appName: '幼儿平台',
    pkName: 'com.jxw.youer.video',
    cls: 'com.jxw.youer.activity.MainActivity',
  },
  {
    iconPath: `${OSS_URL}/urm/app_bishunguize.png`,
    appName: '笔顺规则',
    pkName: 'com.jxw.bishunguize',
    cls: 'com.example.viewpageindicator.MainActivity',
  },
]
