// src/pages/agent-office/constants.js
import stockImg from './assets/agent_stock.webp';
import musicImg from './assets/agent_music.webp';
import instaImg from './assets/agent_insta.webp';
import realestateImg from './assets/agent_realestate.webp';
import lottoImg from './assets/agent_lotto.webp';
import undeterminedImg from './assets/agent_undetermined.webp';

export const AGENT_META = {
  stock:      { displayName: '주식 트레이더',   color: '#4488cc', image: stockImg },
  music:      { displayName: '음악 프로듀서',   color: '#44aa88', image: musicImg },
  insta:      { displayName: '인스타 큐레이터', color: '#d97706', image: instaImg },
  realestate: { displayName: '청약 애널리스트', color: '#c026d3', image: realestateImg },
  lotto:      { displayName: '로또 큐레이터',   color: '#ef4444', image: lottoImg },
};

// 3x3 슬롯 (좌→우, 위→아래). 처음 5칸은 active, 나머지 4칸은 placeholder.
export const GRID_SLOTS = [
  { agentId: 'stock' },
  { agentId: 'music' },
  { agentId: 'insta' },
  { agentId: 'realestate' },
  { agentId: 'lotto' },
  { agentId: null },
  { agentId: null },
  { agentId: null },
  { agentId: null },
];

export const ACTIVE_AGENT_IDS = GRID_SLOTS.filter(s => s.agentId !== null).map(s => s.agentId);

export const PLACEHOLDER_IMAGE = undeterminedImg;
export const PLACEHOLDER_LABEL = '준비 중';

// 상태 → dot 색상 매핑 (AgentCard에서 공유)
export const STATE_COLORS = {
  idle:             { color: '#6b7280', pulse: false },
  working:          { color: '#22c55e', pulse: true  },
  error:            { color: '#ef4444', pulse: false },
  waiting_approval: { color: '#f59e0b', pulse: true  },
};

export const DEFAULT_STATE_COLOR = STATE_COLORS.idle;
