import {ADVANCED_FEATURES} from "../shared/constants";

export const PROTOCOL_VERSION = 2;
export const RECONNECT_ALARM = "gd-reconnect";
export const RESOURCE_LIMIT = 120;
export const HEADER_SNAPSHOT_LIMIT = 80;
export const HEADER_EXPIRATION_MS = 2 * 60 * 1000;
export const BRIDGE_PERSIST_DEBOUNCE_MS = 240;
export const MAIN_FRAME_ID = 0;

export const PAIR_TOKEN_KEY = "pairToken";
export const SERVER_URL_KEY = "desktopServerUrl";
export const SHOULD_TAKE_DOWNLOADS_KEY = "shouldTakeDownloads";
export const IS_MEDIA_BUTTON_ENABLED_KEY = "isMediaButtonEnabled";
export const MIN_TAKE_SIZE_KB_KEY = "minTakeSizeKB";
export const SHOULD_TAKE_UNKNOWN_SIZE_KEY = "shouldTakeUnknownSize";
export const BYPASS_SHORTCUT_KEY = "bypassShortcut";
export const SKIP_EXTENSIONS_KEY = "skipExtensions";
export const SKIP_DOMAINS_KEY = "skipDomains";
export const SHOULD_OPEN_POPUP_ON_SENT_KEY = "shouldOpenPopupOnSent";
export const FEATURE_TAB_STATE_KEY = "featureTabState";

export const BRIDGE_RESOURCE_CACHE_KEY = "bridgeResourceCacheByTab";
export const BRIDGE_HEADER_SNAPSHOTS_KEY = "bridgeHeaderSnapshots";
export const BRIDGE_LAST_ACTIVE_TAB_KEY = "bridgeLastActiveTabId";

export const FEATURE_KEYS = ADVANCED_FEATURES.map((item) => item.key);
