import { getAppEnv } from "@/core/net/config/api_config";

export class AppConstants {
  private constructor() {}

  /** 隐私政策文档链接 */
  static readonly privacyPolicyUrl =
    "https://docs.google.com/document/d/1KyNkbnZ5-2gNUFlE0Jd9eqp-MGKOc95OBAa6hrxK1wg/edit?usp=sharing";

  /** 服务条款文档链接 */
  static readonly termsOfServiceUrl =
    "https://docs.google.com/document/d/1ZL5-uDKLNQrkNnWNKlVFi5atwA9hBpNVyoXzzXf1GHs/edit?usp=sharing";

  /** 开发环境 APP 标题 */
  static readonly appTitleDevelopment = "Develop";

  /** 测试环境 APP 标题 */
  static readonly appTitleTest = "Test";

  /** 生产环境 APP 标题 */
  static readonly appTitleProduction = "Cozsweet";

  /** 根据当前环境获取 APP 标题 */
  static get appTitle(): string {
    const env = getAppEnv();
    if (env === "production") return AppConstants.appTitleProduction;
    if (env === "test") return AppConstants.appTitleTest;
    return AppConstants.appTitleDevelopment;
  }

  /** APP 站点 URL（按环境区分：生产用主站域名，其余用前端测试域名） */
  static get appUrl(): string {
    return getAppEnv() === "production"
      ? "https://cozsweet.banlv-ai.com"
      : "https://frontend-test.banlv-ai.com";
  }
}
