/**
 * 文件职责：堂食管理页面静态常量。
 * 1. 维护状态、座位数、标签建议等固定枚举。
 * 2. 不包含任何业务数据兜底。
 */
import type {
  DineInEditableStatus,
  DineInTableStatus,
} from '#/api/store-dinein';
import type {
  DineInSeatsOption,
  DineInStatusOption,
} from '#/views/store/dine-in/types';

export const DINE_IN_SEATS_OPTIONS: DineInSeatsOption[] = [
  { label: '2人桌', value: 2 },
  { label: '4人桌', value: 4 },
  { label: '6人桌', value: 6 },
  { label: '8人桌', value: 8 },
  { label: '10人桌', value: 10 },
  { label: '12人桌', value: 12 },
];

export const DINE_IN_STATUS_MAP: Record<DineInTableStatus, DineInStatusOption> =
  {
    free: { value: 'free', label: '空闲', color: '#22c55e', className: 'free' },
    dining: {
      value: 'dining',
      label: '就餐中',
      color: '#f59e0b',
      className: 'dining',
    },
    reserved: {
      value: 'reserved',
      label: '已预约',
      color: '#1677ff',
      className: 'reserved',
    },
    disabled: {
      value: 'disabled',
      label: '停用',
      color: '#9ca3af',
      className: 'disabled',
    },
  };

export const DINE_IN_EDITABLE_STATUS_OPTIONS: Array<{
  label: string;
  value: DineInEditableStatus;
}> = [
  { label: '空闲', value: 'free' },
  { label: '停用', value: 'disabled' },
];

export const TABLE_TAG_SUGGESTIONS = [
  'VIP',
  '包厢',
  '吧台',
  '安静区',
  '家庭位',
  '靠窗',
];
