export const DEFAULT_LOCALE = 'en';
export const SWITCH_ORG_REQUEST = 'cap/SWITCH_ORG_REQUEST';
export const SWITCH_ORG_SUCCESS = 'cap/SWITCH_ORG_SUCCESS';
export const SWITCH_ORG_FAILURE = 'cap/SWITCH_ORG_FAILURE';
export const LOGIN_REQUEST = 'cap/LOGIN_REQUEST';
export const LOGIN_SUCCESS = 'cap/LOGIN_SUCCESS';
export const LOGIN_FAILURE = 'cap/LOGIN_FAILURE';

export const LOGOUT_REQUEST_V2 = 'cap/LOGOUT_REQUEST_V2';
export const LOGOUT_SUCCESS_V2 = 'cap/LOGOUT_SUCCESS_V2';
export const LOGOUT_FAILURE_V2 = 'cap/LOGOUT_FAILURE_V2';
export const ADD_MESSAGE = 'cap/ADD_MESSAGE';
export const REMOVE_MESSAGE = 'cap/REMOVE_MESSAGE';
export const GET_USER_DATA_REQUEST = 'cap/GET_USER_DATA_REQUEST_V2';
export const GET_USER_DATA_SUCCESS = 'cap/GET_USER_DATA_SUCCESS_V2';
export const GET_USER_DATA_FAILURE = 'cap/GET_USER_DATA_FAILURE_V2';

export const GET_SCHEMA_FOR_ENTITY_FAILURE = 'cap/GET_SCHEMA_FOR_ENTITY_FAILURE_V2';
export const GET_SCHEMA_FOR_ENTITY_REQUEST = 'cap/GET_SCHEMA_FOR_ENTITY_REQUEST_V2';
export const GET_SCHEMA_FOR_ENTITY_SUCCESS = 'cap/GET_SCHEMA_FOR_ENTITY_SUCCESS_V2';
export const CLEAR_META_ENTITIES = 'cap/CLEAR_META_ENTITIES';
export const HIDE_TAGS = 'cap/HIDE_TAGS';

export const SET_INJECTED_TAGS = 'cap/SET_INJECTED_TAGS';

export const GET_TOPBAR_MENU_DATA_REQUEST = 'creatives/cap/GET_TOPBAR_MENU_DATA_REQUEST';
export const GET_TOPBAR_MENU_DATA_SUCCESS = 'creatives/cap/GET_TOPBAR_MENU_DATA_SUCCESS';
export const GET_TOPBAR_MENU_DATA_FAILURE = 'creatives/cap/GET_TOPBAR_MENU_DATA_FAILURE';
export const CLEAR_TOPBAR_MENU_DATA = 'creatives/cap/CLEAR_TOPBAR_MENU_DATA';

export const SET_LOYALTY_PROMOTION_RELATED_CREATIVE_TAGS_DISPLAY = 'SET_LOYALTY_PROMOTION_RELATED_CREATIVE_TAGS_DISPLAY';

export const CAMPAIGN_SETTINGS_URL = '/creatives/settings/message';
export const ORG_SETTINGS_URL = '/org/index';
export const HELP_URL = 'https://docs.capillarytech.com/docs/getting-started';
export const LOYALTY_HELP_URL = 'https://docs.capillarytech.com/docs/loyalty-overview';

export const ORG_REFRESH_SEC = 10;
export const ORG_CHANGED = 'ORG_CHANGED';

export const ENABLE_AI_SUGGESTIONS = 'ENABLE_AI_SUGGESTIONS';
export const AI_CONTENT_BOT_DISABLED = 'AI_CONTENT_BOT_DISABLED';
export const AI_DOCUMENTATION_BOT_ENABLED = 'AI_DOCUMENTATION_BOT_ENABLED';
export const ERROR_IN_FETCHING_TAGS = 'Error in fetching tags';
export const AI_DOCUMENTATION_BOT_DISABLED = 'AI_DOCUMENTATION_BOT_DISABLED';

export const GET_SUPPORT_VIDEOS_CONFIG_REQUEST =
  'cap/GET_SUPPORT_VIDEOS_CONFIG_REQUEST';
export const GET_SUPPORT_VIDEOS_CONFIG_SUCCESS =
  'cap/GET_SUPPORT_VIDEOS_CONFIG_SUCCESS';
export const GET_SUPPORT_VIDEOS_CONFIG_FAILURE =
  'cap/GET_SUPPORT_VIDEOS_CONFIG_FAILURE';

export const REQUEST = 'REQUEST';
export const SUCCESS = 'SUCCESS';
export const FAILURE = 'FAILURE';

export const ENABLE_PRODUCT_SUPPORT_VIDEOS = 'ENABLE_PRODUCT_SUPPORT_VIDEOS';
export const DEFAULT = 'default';
export const DEFAULT_MODULE = 'creatives';

export const GET_LIQUID_TAGS_FAILURE = 'cap/GET_LIQUID_TAGS_FAILURE_V2';
export const GET_LIQUID_TAGS_REQUEST = 'cap/GET_LIQUID_TAGS_REQUEST_V2';
export const GET_LIQUID_TAGS_SUCCESS = 'cap/GET_LIQUID_TAGS_SUCCESS_V2';

export const CREATE_CENTRAL_COMMS_META_ID_FAILURE = 'cap/CREATE_CENTRAL_COMMS_META_ID_FAILURE_V2';
export const CREATE_CENTRAL_COMMS_META_ID_REQUEST = 'cap/CREATE_CENTRAL_COMMS_META_ID_REQUEST_V2';
export const CREATE_CENTRAL_COMMS_META_ID_SUCCESS = 'cap/CREATE_CENTRAL_COMMS_META_ID_SUCCESS_V2';

export const BASE64_IMAGE_REGEX = /<img[^>]*\bsrc\s*=\s*["']data:image\/[^"']*["'][^>]*>/gi;
export const BASE64_IMAGE_ERROR_MESSAGE = {
  key: 'base64Error',
  message: 'Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.',
  description: 'Base64 images are not allowed. Please upload your image to a gallery and use it, or add the image URL instead.',
};
