// en/admin_support
export const admin_support = {
  panel_latency: 'Latency',
  panel_tokens: 'Tokens',
  panel_cost: 'Cost',
  panel_output: 'Output',
  tab_inbox: 'Inbox',
  tab_kb: 'Knowledge Base',
  tab_metrics: 'Metrics',
  tab_providers: 'AI Providers',
  tab_definitions: 'AI Agents',
  tab_settings: 'Settings',
  tab_config: 'Support Settings',
  tabs_aria_label: 'Support tabs',
  providers_title: 'LLM Providers',
  providers_add: 'Add Provider',
  providers_name: 'Display Name',
  providers_slug: 'Identifier',
  providers_type: 'Type',
  providers_base_url: 'Base URL',
  providers_api_key: 'API Key',
  providers_api_key_placeholder: '••••••••',
  providers_api_key_edit_help:
    'Leave empty to keep the existing key. Entering a value replaces it.',
  providers_type_google: 'Google Gemini',
  providers_type_openai: 'OpenAI-Compatible',
  providers_type_mock: 'Mock (Test)',
  providers_type_mock_option: 'Mock (test environment)',
  providers_delete_confirm: 'Delete this provider?',
  providers_delete_body: 'This permanently removes the provider and its stored API key: {name}',
  providers_in_use_warning:
    'Cannot delete: this provider is attached to agent definitions. Detach it on the Agents page first.',
  providers_save: 'Save',
  providers_cancel: 'Cancel',
  providers_back: 'Back to provider list',
  providers_edit: 'Edit',
  providers_delete: 'Delete',
  providers_status: 'Status',
  providers_empty: 'No LLM providers yet. Add a provider to enable AI replies on support tickets.',
  providers_load_error: 'Failed to load providers. Refresh the page and try again.',
  providers_error_name_required: 'Display name is required',
  providers_error_slug_invalid:
    'Identifier may contain only lowercase letters, digits and hyphens (a-z, 0-9, -)',
  providers_error_base_url_required: 'Base URL is required for an OpenAI-compatible provider',
  providers_error_api_key_required: 'API key is required',
  definitions_title: 'AI Agent Definitions',
  definitions_subtitle:
    'Configurations for the automated agent that handles support tickets: model chain and confidence thresholds. Deactivating an agent stops automated handling of new tickets.',
  definitions_slug: 'System ID',
  definitions_name: 'Name',
  definitions_active: 'Active',
  definitions_active_agent: 'Agent active',
  definitions_save: 'Save',
  definitions_saved: 'Changes saved successfully',
  definitions_save_error: 'Save failed. Check the values and try again.',
  definitions_load_error: 'Failed to load agent definitions. Refresh the page and try again.',
  definitions_empty:
    'No agent definitions yet. Agent definitions are created by the system seed — if this list is empty, run the seed process or contact a developer.',
  definitions_edit: 'Edit',
  definitions_cancel: 'Cancel',
  definitions_chain_title: 'Model chain (primary → fallback)',
  definitions_chain_subtitle:
    'The agent tries the first provider; on failure it falls back to the next.',
  definitions_chain_add: 'Add Provider',
  definitions_chain_provider: 'Provider',
  definitions_chain_model: 'Model',
  definitions_chain_model_placeholder: 'e.g. claude-sonnet-4',
  model_select_placeholder: 'Select a model…',
  model_search_placeholder: 'Search models…',
  model_empty_hint: 'No models — refresh in Providers setup',
  model_not_in_list: '(not in current list)',
  provider_refresh_builtin: 'Built-in',
  provider_refresh_success: '{count} models loaded',
  provider_refresh_error: 'Refresh failed: {message}',
  providers_refresh: 'Refresh models',
  providers_test: 'Test connection',
  providers_test_success: 'Connection succeeded: {response}',
  providers_test_failure: 'Connection failed: {error}',
  definitions_chain_up: 'Move up in priority order',
  definitions_chain_down: 'Move down in priority order',
  definitions_chain_remove: 'Remove',
  definitions_sla_ai: 'AI handling target (hours)',
  definitions_sla_human: 'Human handling target (hours)',
  definitions_confidence: 'AI confidence threshold (0–1)',
  definitions_max_tools: 'Max tool calls per run',
  definitions_max_cost: 'AI cost budget per run (US cents)',
  definitions_max_cost_help:
    "Example: 50 = $0.50 per run. When the run's cumulative cost exceeds the budget the agent stops and escalates to a human.",
  definitions_system_prompt: 'System Prompt Template',
  definitions_system_prompt_help:
    'Caution: changing the template affects every ticket this agent handles. Available variables are listed in the agent docs.',
  definitions_version: 'Version',
  definitions_updated: 'Updated',
  definitions_back: 'Back to list',
  definitions_editor_title: 'Edit agent: {name}',
  definitions_editor_load_error: 'Failed to load the agent definition. Refresh and try again.',
  definitions_providers_empty:
    'No AI providers configured. Add one in the "AI Providers" screen, then return here.',
  providers_active: 'Active',
  providers_inactive: 'Inactive',
  ai_rec_execute: 'Execute',
  ai_rec_execute_refund: 'Execute refund…',
  ai_rec_dismiss: 'Hide recommendation',
  ai_rec_dismiss_short: 'Hide',
  ai_rec_title: 'AI Recommendation',
  ai_rec_reasoning: 'Reasoning',
  ai_rec_confidence: 'Confidence',
  ai_rec_no_purchase: 'No linked purchase',
  ai_rec_no_return: 'No linked return',
  ai_rec_resolve_case: 'Resolve Case',
  ai_rec_approve_return: 'Approve Return',
  ai_rec_deny_return: 'Deny Return',
  ai_rec_flag_vendor: 'Route to Vendor',
  ai_rec_refund: 'Refund',
  ai_offer_title: 'AI refund offer',
  ai_offer_approve: 'Approve and refund',
  ai_offer_retry: 'Retry refund',
  ai_offer_confirm_title: 'Approve AI refund offer?',
  ai_offer_confirm_body:
    'This authorizes the exact offer amount and executes the guarded refund workflow.',
  ai_offer_processing: 'The approved refund is processing.',
  ai_offer_failed: 'The offer was approved, but refund execution failed. Review and retry.',
  ai_offer_success: 'The refund was completed and the case was resolved.',
  ai_offer_approval_failed: 'The refund offer could not be approved or executed.',
  ai_offer_missing: 'No pending AI refund offer is available.',
  ai_rec_confirm_return_approve:
    'AI recommends approving this return (refund of {amount}). Confirm?',
  ai_rec_confirm_return_approve_noamount:
    'AI recommends approving this return for the transaction amount. Confirm?',
  ai_rec_confirm_return_deny: 'AI recommends denying this return. Confirm?',
  ai_rec_confirm_resolve: 'Close case based on AI recommendation?',
  ai_decision_propose: 'Proposed action',
  decision_propose: 'Proposed',
  ai_decision_act: 'Auto-executed',
  ai_decision_escalate: 'Escalated',
  ctx_knowledge: 'Context provided to the AI',
  overview_open_tickets: 'Open Tickets',
  overview_awaiting_agent: 'In Human Handling',
  overview_awaiting_agent_tooltip: 'Tickets in status "Awaiting agent" or "Human handling"',
  overview_escalated_tickets: 'Escalated Tickets',
  overview_escalated_tickets_tooltip:
    'Tickets the AI could not resolve, handed off to a human agent',
  overview_open_tickets_tooltip:
    'All tickets not Resolved or Closed — including AI-handled tickets and tickets waiting on the customer',
  overview_open_cases: 'Open Cases',
  overview_open_cases_tooltip:
    'Transaction cases (returns, cancellations, disputes) not yet resolved or closed',
} as const;
