/*
 *
 * CreativesContainer constants
 *
 */

export const DEFAULT_ACTION = 'app/CreativesContainer/DEFAULT_ACTION';
export const EMAIL = "EMAIL";
export const SMS = "SMS";
export const EBILL = "EBILL";
export const LINE = "LINE";
export const CALL_TASK = "CALL_TASK";
export const MOBILE_PUSH = "MOBILEPUSH";
export const MPUSH = "MPUSH";
export const WECHAT = "WECHAT";
export const FACEBOOK = "FACEBOOK";
export const FTP = "FTP";
export const NO_COMMUNICATION = "NO_COMMUNICATION";
export const VIBER = "VIBER";
export const WHATSAPP = "WHATSAPP";
export const PUSH = "PUSH";
export const RCS = "RCS";
export const ZALO = "ZALO";
export const INAPP = "INAPP";
export const WEBPUSH = "WEBPUSH";
export const WEBPUSH_BRAND_ICON = "WEBPUSH_BRAND_ICON";
export const PREVIEW = "preview";
export const EDIT_TEMPLATE = "editTemplate";
export const JOURNEY = "journey";
export const HTML = "HTML";

export const LOYALTY_SUPPORTED_ACTION = "SEND_COMMUNICATION_ACTION";

export const SHOW_CONTANER_LOADER = "app/CreativesContainer/SHOW_CONTANER_LOADER";
export const HIDE_CONTAINER_LOADER = "app/CreativesContainer/HIDE_CONTAINER_LOADER";
export const STORE_LOYALTY_TAG_PROPS = "app/CreativesContainer/STORE_LOYALTY_TAG_PROPS";

export const WHATSAPP_HELP_DOC_LINK = "https://docs.capillarytech.com/docs/create-whatsapp-template";

export const ENABLE_AI_SUGGESTIONS = "ENABLE_AI_SUGGESTIONS";
export const LIQUID_SUPPORTED_CHANNELS = [EMAIL, SMS, MOBILE_PUSH, INAPP];

export const EMF = "EMF";
export const VENENO = "VENENO";
export const TEXT = "TEXT";
export const IOS = "IOS";
export const ANDROID = "ANDROID";
export const EXTERNAL_URL = "EXTERNAL_URL";

export const TRANSACTION = "TRANSACTION";
export const BIG_TEXT = "BIG_TEXT";
export const GENERIC = "GENERIC";
export const LIQUID_ERROR_MSG = "LIQUID_ERROR_MSG";
export const STANDARD_ERROR_MSG = "STANDARD_ERROR_MSG";
export const COMMON_CHANNELS = ['sms', 'email', 'wechat', 'mobilepush', 'webpush', 'line', 'viber', 'facebook', 'call_task', 'ftp', 'assets'];

/** Normalized channel forms (e.g. from camelCase) that do not match pane keys; maps to canonical pane key for hide/disable. */
export const NORMALIZED_CHANNEL_ALIASES = {
  we_chat: WECHAT.toLowerCase(),
  m_push: MOBILE_PUSH.toLowerCase(),
  // paneKey `inApp` → `in_app`; TemplatesV2 pane uses key INAPP → `inapp` — both must match for channelsToHide
  in_app: INAPP.toLowerCase(),
};
export const MIXED = "MIXED";
export const VISITOR = "VISITOR";
export const ALLOWED_CHANNELS_FOR_ANONYMOUS = ['mobilepush', 'webpush'];
export const ALL_CHANNELS_NEW = [
  'sms', 'email', 'whatsapp', 'facebook', 'line', 'viber', 'rcs', 'zalo', 'inapp', 'call_task', 'ftp',
];
