export const APP_INFO = {
  VERSION: "6.2.0",  // @jaz_version
};

export const LOCAL_STORAGE = {
  USER: "USER",
  EXTERNAL_LOGIN_LINK: "EXTERNAL_LOGIN_LINK",
  USE_CONFIRM_BOX: "USE_CONFIRM_BOX",
};

export const SESSION_STORAGE = {
  JOB_EXEC_MANAGE_TABLE_VIEW: "JOB_EXEC_MANAGE_TABLE_VIEW",
  IS_SIDEBAR_COLLAPSE: "IS_SIDEBAR_COLLAPSE",
  ERROR_OPERATOION_INFO_HIDE_ROWS: "ERROR_OPERATOION_INFO_HIDE_ROWS",
};

export const OBJECT_CATEGORY = {
  CALENDAR: "calendar",
  FILTER: "filter",
  SCHEDULE: "schedule",
  JOBNET: "jobnet",
};

export const FORM_TYPE = {
  CREATE: "create",
  EDIT: "edit",
  NEW_VERSION: "new-version",
  NEW_OBJECT: "new-object",
  SCHEDULE: "schedule",
  JOBNET: "jobnet",
};

export const FORM_ID = {
  JOBNET: "JOBNET",
};

export const REGEX_PATTERM = {
  MATCH_HANKAKU_UNDERBAR_HYPHEN_PERIOD: "^[0-9a-zA-Z_\\-\\.]*$",
  MATCH_HANKAKU_HYPHEN_UNDERBAR: "^[0-9a-zA-Z_-]*$",
  PROHIBITED_CHARACTER_USER_NAME: '["/[\\];:|<>+=,?*]',
  PROHIBITED_CHARACTER_USER_PW: '.*["<>]+.*', // check " < >
  MATCH_HANKAKU_COMMA_HYPHEN: "^[0-9\\,\\-]*$",
  MATCH_HANKAKU_UNDERBAR: "^[0-9a-zA-Z_]*$",
  MATCH_HANKAKU: "^[0-9]*$",
  MATCH_ASCII: "^[\\x00-\\x7F]*$",
  MATCH_HANKAKU_DOLLAR_UNDERBAR: "^[0-9a-zA-Z$_]*$",
  MATCH_HANKAKU_LETTER: "^[a-zA-Z]*$",
  MATCH_HANKAKU_LETTER_UNDERBAR: "^[a-zA-Z_]*$",
  MATCH_HANKAKU_HYPHEN_UNDERBAR_SLASH: "^[0-9a-zA-Z-_/]*$",
};

export const USER_TYPE = {
  USER_TYPE_GENERAL: 1,
  USER_TYPE_ADMIN: 2,
  USER_TYPE_SUPER: 3,
};
