import { AttachmentType } from "./providers/ProtocolProvider/protocol/packets/packet.message";
/**
 * Application directives
 */
export const SIZE_LOGIN_WIDTH_PX = 300;
export const DEVTOOLS_CHEATCODE = "rosettadev1";
export const AVATAR_PASSWORD_TO_ENCODE = "rosetta-a";
/**
 * Connection
 */
export const RECONNECTING_INTERVAL = 5;
export const RECONNECTING_TRYINGS_BEFORE_ALERT = 5;

/**
 * Messages
 */
export const MAX_MESSAGES_LOAD = 20; 
export const MESSAGE_MAX_TIME_TO_DELEVERED_S = 80; // in seconds
export const MESSAGE_MAX_LOADED = 40;
export const SCROLL_TOP_IN_MESSAGES_TO_VIEW_AFFIX = 200;
export const TIME_TO_INACTIVE_FOR_MESSAGES_UNREAD = 20;
export const MAX_ATTACHMENTS_IN_MESSAGE = 5;
export const MAX_UPLOAD_FILESIZE_MB = 1024;
export const ENTITY_LIMITS_TO_PARSE_IN_MESSAGE = 50;
export const ATTACHMENTS_NOT_ALLOWED_TO_REPLY = [
    AttachmentType.AVATAR,
    AttachmentType.MESSAGES
];
export const DIALOG_DROP_TO_REQUESTS_IF_NO_MESSAGES_FROM_ME_COUNT = 30;
/**
 * Если предыдущие сообщение было отправлено менее чем 300 секунд назад,
 * то не отображаем аватар отправителя
 */
export const MESSAGE_AVATAR_NO_RENDER_TIME_DIFF_S = 300; // 5 minutes
/**
 * Разрешенные доменные зоны
 */
export const ALLOWED_DOMAINS_ZONES = [
    'com',
    'ru',
    'ua',
    'org',
    'net',
    'edu',
    'gov',
    'io',
    'tech',
    'info',
    'biz',
    'me',
    'online',
    'site',
    'app',
    'dev',
    'chat',
    'gg',
    'fm',
    'tv',
    'im',
    'sc',
    'su',
    'by'
];