export const PERIOD_DAILY = 'DAILY';
export const PERIOD_WEEKLY = 'WEEKLY';
export const PERIOD_MONTHLY = 'MONTHLY';

export const SCHEDULE_REPORT_PERIOD_OPTIONS = [
  { label: 'Daily', value: PERIOD_DAILY },
  { label: 'Weekly', value: PERIOD_WEEKLY },
  { label: 'Monthly', value: PERIOD_MONTHLY },
];

export const FONTS_OPTIONS = [
  { label: 'Arial', value: 'Arial' },
  { label: 'Helvetica', value: 'Helvetica' },
  { label: 'Times New Roman', value: 'Times New Roman' },
  { label: 'Times Courier New', value: 'Times Courier New' },
  { label: 'Courier', value: 'Courier' },
];

export const FIELD_TEXT = 'TextField';
export const FIELD_TEXTAREA = 'TextAreaField';
export const FIELD_EMAIL = 'EmailField';
export const FIELD_DATE = 'DateField';
export const FIELD_SELECT = 'SelectField';
export const FIELD_RADIO = 'RadioField';
export const FIELD_CHECKBOX = 'CheckboxOptionsField';

export const FIELDS_OPTIONS = [
  {
    id: FIELD_TEXT,
    name: 'Text',
    fontSize: '13px',
  },
  {
    id: FIELD_TEXTAREA,
    name: 'Text Area',
    fontSize: '15px',
  },
  {
    id: FIELD_EMAIL,
    name: 'Email',
    fontSize: '15px',
  },
  {
    id: FIELD_DATE,
    name: 'Date',
    fontSize: '15px',
  },
  {
    id: FIELD_SELECT,
    name: 'Dropdown',
    fontSize: '15px',
  },
  {
    id: FIELD_RADIO,
    name: 'Radio Button',
    fontSize: '15px',
  },
  {
    id: FIELD_CHECKBOX,
    name: 'Checkbox',
    fontSize: '15px',
  },
];

export const STATUS_ACTIVE = 1;
export const STATUS_ARCHIVED = -1;
export const STATUS_DISABLED = 0;

export const ALIGN_ITEMS_CENTER = 'center';
export const ALIGN_ITEMS_LEFT = 'left';
export const ALIGN_ITEMS_RIGHT = 'right';

export const TRIGGER_TIMESTAMP = 'TIMESTAMP';
export const TRIGGER_BEGINNING = 'BEGINNING_OF_VIDEO';
export const TRIGGER_END = 'END_OF_VIDEO';
export const TRIGGER_API = 'API';

export const TRIGGER_OPTIONS = [
  {
    id: TRIGGER_TIMESTAMP,
    name: 'Timestamp',
  },
  {
    id: TRIGGER_BEGINNING,
    name: 'Beginning of video',
  },
  {
    id: TRIGGER_END,
    name: 'End of video',
  },
  {
    id: TRIGGER_API,
    name: 'API',
  },
];

export const TRIGGER_PERIOD_OPTIONS = [
  { label: 'Per Day', value: PERIOD_DAILY },
  { label: 'Per Week', value: PERIOD_WEEKLY },
  { label: 'Per Month', value: PERIOD_MONTHLY },
];

export const PLAYER_SIZE_X_SMALL = 'x-small';
export const PLAYER_SIZE_SMALL = 'small';
export const PLAYER_SIZE_MEDIUM = 'medium';
export const PLAYER_SIZE_LARGE = 'large';

export const DEVICE_TYPE_DESKTOP = 'DESKTOP';
export const DEVICE_TYPE_MOBILE = 'MOBILE';
export const DEVICE_TYPE_TABLET = 'TABLET';
export const DEVICE_TYPE_CONNECTED_TV = 'CONNECTED_TV';
export const DEVICE_TYPE_OTHER = 'OTHER';

export const DEVICE_LIST = [
  { label: 'Desktop', value: DEVICE_TYPE_DESKTOP },
  { label: 'Mobile', value: DEVICE_TYPE_MOBILE },
  { label: 'Tablet', value: DEVICE_TYPE_TABLET },
  { label: 'Connected TV', value: DEVICE_TYPE_CONNECTED_TV },
  { label: 'Other', value: DEVICE_TYPE_OTHER },
];

export const FORM_SUBMIT_MODE_CREATE = 'CREATE';
export const FORM_SUBMIT_MODE_UPDATE = 'UPDATE';
export const FORM_SUBMIT_MODE_DUPLICATE = 'DUPLICATE';

export const TARGET_PLACEMENT_TYPE_WATCH = 'WATCH';
export const TARGET_PLACEMENT_TYPE_PLAYER = 'PLAYER';
export const TARGET_PLACEMENT_TYPE_VIDEO = 'VIDEO';

export const ALLOWED_IMAGE_EXT = ['jpg', 'jpeg', 'png'];
export const MAX_LOGO_SIZE_IN_BYTES = 9 * 1024 * 10; // 90kb
export const MAX_BANNER_SIZE_IN_BYTES = 50 * 1024 * 10; // 500kb

export const FIELD_MAX_LENGTH_NAME = 255;
export const FIELD_MAX_LENGTH_TITLE = 40;
export const FIELD_MAX_LENGTH_DESCRIPTION = 360;
export const FIELD_MAX_LENGTH_SUBMITTEXT = 40;
export const FIELD_MAX_LENGTH_PPTEXT = 40;
export const FIELD_MAX_LENGTH_TCTEXT = 40;
export const FIELD_MAX_LENGTH_SKIPBUTTONTEXT = 40;

export const FORM_REDUX_FIELD_NAME = 'commonForm';
