import type { BatchScopeType, BatchToolCard } from '../../types';

/** 批量工具卡片配置。 */
export const BATCH_TOOL_CARDS: BatchToolCard[] = [
  {
    key: 'price',
    title: '批量调价',
    description: '按范围统一涨价或降价，支持预览后执行。',
    icon: 'lucide:dollar-sign',
    tone: 'orange',
  },
  {
    key: 'sale',
    title: '批量上下架',
    description: '快速批量上架或下架商品。',
    icon: 'lucide:arrow-up-down',
    tone: 'green',
  },
  {
    key: 'category',
    title: '批量移动分类',
    description: '将一批商品迁移到目标分类。',
    icon: 'lucide:folder-input',
    tone: 'blue',
  },
  {
    key: 'sync',
    title: '批量同步门店',
    description: '把源门店商品同步到其他门店。',
    icon: 'lucide:refresh-cw',
    tone: 'purple',
  },
  {
    key: 'excel',
    title: '导入导出',
    description: '下载模板导入商品，或按范围导出 Excel。',
    icon: 'lucide:file-spreadsheet',
    tone: 'cyan',
  },
];

/** 范围选项。 */
export const BATCH_SCOPE_OPTIONS: Array<{
  label: string;
  value: BatchScopeType;
}> = [
  { label: '全部商品', value: 'all' },
  { label: '按分类', value: 'category' },
  { label: '手动选择', value: 'manual' },
];

/** 调价方向选项。 */
export const PRICE_DIRECTION_OPTIONS = [
  { label: '涨价', value: 'up' as const },
  { label: '降价', value: 'down' as const },
];

/** 调价方式选项。 */
export const PRICE_AMOUNT_TYPE_OPTIONS = [
  { label: '固定金额', value: 'fixed' as const },
  { label: '百分比', value: 'percent' as const },
];

/** 上下架动作。 */
export const SALE_ACTION_OPTIONS = [
  { label: '上架', value: 'on' as const },
  { label: '下架', value: 'off' as const },
];
