/*
 * @Author: renmanyi
 * @Date: 2026-04-13 10:27:04
 * @LastEditors: renmanyi
 * @LastEditTime: 2026-05-29 16:35:55
 * @Description: 描述一下咯
 * @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
 */

export const BRAND: any = process.env.BRAND;

const BrandNameMap: any = {
    xiaomai: '小麦企学院',
    syoo: '商有云课堂'
}

const BrandIconMap: any = {
    xiaomai: 'https://assets.xiaomai5.com/res/xm/bFkRBz7teA.png',
    syoo: 'https://assets.xiaomai5.com/res/xm/PfDseQHZtB.png'
}

const BrandLogoMap: any = {
    xiaomai: 'https://assets.xiaomai5.com/res/xm/6k8PPCmywG.png',
    syoo: 'https://assets.xiaomai5.com/res/xm/T7NRKwrfQE.png'
}

const BrandBannerMap: any = {
    xiaomai: 'https://assets.xiaomai5.com/res/xm/CDCcdAdaPs.png',
    syoo: 'https://assets.xiaomai5.com/res/xm/DzMHpX7GWF.png'
}
const host = typeof window !== 'undefined' && window.location.host.includes('localhost') ? 'res.xiaomai5.com' : (typeof window !== 'undefined' ? window.location.host : 'res.xiaomai5.com');
const PATH_MAP: any = {
    xiaomai: `https://${host}/xiaomai-cloud-class-web`,
    syoo: 'https://study.syoo.cn/syoo-cloud-class-web',
}

const LIVE_SHARE_MAP: any = {
    xiaomai: `https://${host}/store-live`,
    syoo: 'https://study.syoo.cn/syoo-store-live',
}


const CorpType_MAP: any = {
    xiaomai: 'X_MAI',
    syoo: 'S_YOU',
}


const XF_RWM_MAP: any = {
    xiaomai: 'https://assets.xiaomai5.com/cdn/js/qixueyuankehu.png',
    syoo: 'https://assets.xiaomai5.com/res/xm/Z2X2GTmKdj.png'
}

const LiveNameMap: any = {
    xiaomai: '小麦直播',
    syoo: '商有直播'
}


export const brandName: string = BrandNameMap[BRAND];
export const brandIcon: string = BrandIconMap[BRAND];
export const brandLogo: string = BrandLogoMap[BRAND];
export const brandBanner: string = BrandBannerMap[BRAND];
export const path: string = PATH_MAP[BRAND];
export const live: string = LIVE_SHARE_MAP[BRAND];
export const corpType: string = CorpType_MAP[BRAND];
export const xfrwm: string = XF_RWM_MAP[BRAND]
export const brandLiveName: string = LiveNameMap[BRAND]
window.brandName = BrandNameMap[BRAND];

