import { LAYER_IDS } from "./Map/Layers/constants";

export const STATUSES = {
  initial: "К рассмотрению",
  approve: "Согласование-установка",
  working: "Работает",
  cancelled: "Отменено",
};

export const CATEGORIES = {
  kiosk: "Городской киоск",
  mfc: "МФЦ",
  library: "Библиотека",
  sport: "Спортивный объект",
  retail: "Ритейл",
  residential: "Подъезд жилого дома",
  dk: "Дом культуры/Клуб",
};

export const DISABLED_FILTER_TEXT =
  "Фильтр заблокирован - было ручное редактирование";

export const MODES = {
  INITIAL: "INITIAL",
  APPROVE_WORKING: "APPROVE_WORKING",
  WORKING: "WORKING",
};

export const MODE_TO_STATUS_MAPPER = {
  [MODES.INITIAL]: [STATUSES.initial],
  [MODES.APPROVE_WORKING]: [STATUSES.approve, STATUSES.working],
  [MODES.WORKING]: [STATUSES.working],
};

export const MODE_TO_LAYER_VISIBILITY_MAPPER = {
  [MODES.INITIAL]: {
    visible: [LAYER_IDS.initial],
    invisible: [LAYER_IDS.approve, LAYER_IDS.working],
  },
  [MODES.APPROVE_WORKING]: {
    visible: [LAYER_IDS.approve, LAYER_IDS.working],
    invisible: [LAYER_IDS.initial],
  },
  [MODES.WORKING]: {
    visible: [LAYER_IDS.working],
    invisible: [LAYER_IDS.initial, LAYER_IDS.approve],
  },
};
