You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.4 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import { LAYER_IDS } from "./Map/Layers/constants";
export const STATUSES = {
initial: "Pending",
approve: "Installation",
working: "Working",
cancelled: "Cancelled",
};
export const STATUS_LABEL_MAPPER = {
[STATUSES.initial]: "К рассмотрению",
[STATUSES.approve]: "Согласование-установка",
[STATUSES.working]: "Работает",
[STATUSES.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]: [LAYER_IDS.initial, LAYER_IDS.working, LAYER_IDS.cancelled],
[MODES.APPROVE_WORKING]: [
LAYER_IDS.approve,
LAYER_IDS.working,
LAYER_IDS.cancelled,
],
[MODES.WORKING]: [LAYER_IDS.filteredWorking],
};