import { apiUrl, hostUrl, cmsUrl } from './env';

export const configShopeeApi = {
  root: 'shopee.vn',
  domain: '.shopee.vn',
  home: 'https://shopee.vn',
  image: 'https://cf.shopee.vn/file',
  seller: 'https://banhang.shopee.vn',
  video: 'https://cvf.shopee.vn/file',
  videoPlay: 'http://play-ws.vod.shopee.com',
  affiliate: {
    api: 'https://open-api.affiliate.shopee.vn',
    graphql: 'https://open-api.affiliate.shopee.vn/graphql',
    home: 'https://affiliate.shopee.vn',
    getToken: 'https://affiliate.shopee.vn/open_api',
  },
};

export const configTiktokApi = {
  root: 'tiktok.com',
  domain: '.tiktok.com',
  home: 'https://tiktok.com',
  shop: 'https://shop-vn.tiktok.com',
  seller: 'https://seller-vn.tiktok.com',
};

export const configLazadaApi = {
  root: 'lazada.vn',
  domain: '.lazada.vn',
  home: 'https://lazada.vn',
  seller: 'https://sellercenter.lazada.vn',
};

export const configAppApi = {
  apiUrl,
  cmsUrl,
  appHost: hostUrl,
  shopee: configShopeeApi,
  tiktok: configTiktokApi,
  lazada: configLazadaApi,
};

export const SHOPEE_DOMAIN_HOME = configShopeeApi.home;
export const SHOPEE_DOMAIN_SELLER = configShopeeApi.seller;

export const LAZADA_DOMAIN_SELLER = configLazadaApi.seller;
export const LAZADA_DOMAIN_HOME = configLazadaApi.home;

export const TIKTOK_DOMAIN_SELLER = configTiktokApi.seller;
export const TIKTOK_DOMAIN_HOME = configTiktokApi.home;
