import { SelectFilterOption } from '../../../filter';

export const selectFilterOptionsAllDeselected: SelectFilterOption[] = [
  {
    name: 'abgeholt',
    id: '256',
    selected: false,
    initial_selected_state: false,
    expanded: false,
  },
  {
    name: 'angefragt',
    id: '524288',
    selected: false,
    initial_selected_state: false,
    expanded: false,
  },
  {
    name: 'ans Lager (nicht abgeholt)',
    id: '262144',
    selected: false,
    initial_selected_state: false,
    expanded: false,
  },
  {
    name: 'bestellt',
    id: '16',
    selected: false,
    initial_selected_state: true,
    expanded: false,
  },
  {
    name: 'derzeit nicht lieferbar',
    id: '16777216',
    selected: false,
    initial_selected_state: false,
    expanded: false,
  },
  {
    name: 'eingetroffen',
    id: '128',
    selected: false,
    initial_selected_state: true,
    expanded: false,
  },
  {
    name: 'Lieferant wird ermittelt',
    id: '8388608',
    selected: false,
    initial_selected_state: false,
    expanded: false,
  },
  {
    name: 'nachbestellt',
    id: '8192',
    selected: false,
    initial_selected_state: true,
    expanded: false,
  },
  {
    name: 'neu',
    id: '1',
    selected: false,
    initial_selected_state: false,
    expanded: false,
  },
  {
    name: 'nicht lieferbar',
    id: '4096',
    selected: false,
    initial_selected_state: false,
    expanded: false,
  },
  {
    name: 'storniert',
    id: '1024',
    selected: false,
    initial_selected_state: true,
    expanded: false,
  },
  {
    name: 'storniert (Kunde)',
    id: '512',
    selected: false,
    initial_selected_state: true,
    expanded: false,
  },
  {
    name: 'storniert (Lieferant)',
    id: '2048',
    selected: false,
    initial_selected_state: true,
    expanded: false,
  },
  {
    name: 'versendet',
    id: '64',
    selected: false,
    initial_selected_state: false,
    expanded: false,
  },
  {
    name: 'weitergeleitet intern',
    id: '1048576',
    selected: false,
    initial_selected_state: false,
    expanded: false,
  },
  {
    name: 'zugestellt',
    id: '4194304',
    selected: false,
    initial_selected_state: false,
    expanded: false,
  },
];

export const selectFilterOptionsAllSelected: SelectFilterOption[] = selectFilterOptionsAllDeselected.map((o) => ({ ...o, selected: true }));

export const selectFilterOptionsMixedSelected: SelectFilterOption[] = selectFilterOptionsAllDeselected.map((o, index) =>
  index % 2 ? { ...o, selected: true } : { ...o, selected: false }
);
