// Try to import local form defaults (gitignored file with dev credentials)
let localDefaults: any = { enabled: false };
try {
  const imported = require('./environment.local');
  localDefaults = imported.localFormDefaults || { enabled: false };
} catch (e) {
  // environment.local.ts doesn't exist, which is fine
}

export const environment = {
  production: false,

  // API Configuration
  apiBase: '/api/cf',

  // Upload Configuration
  chunkSize: 1048576, // 1MB in bytes

  // Feature Flags
  enableSslValidation: false, // Show/hide SSL validation checkbox

  // Polling Configuration
  pollInterval: 5000, // 5 seconds in milliseconds
  maxPollAttempts: 120, // 10 minutes total (120 * 5 seconds)

  // UI Configuration
  defaultLogsExpanded: true,
  showDebugInfo: false,

  // Form Defaults (auto-populated from environment.local.ts in development only)
  formDefaults: localDefaults
};
