export const SUBPAGES = [
  {
    label: '闯入记录',
    value: 'break',
  },
  {
    label: '访客记录',
    value: 'enter',
  },
];

export enum BREAK_EVENT_TYPE {
  BREAK = 1,
}

export const BREAK_EVENT_TYPE_LABEL = {
  [BREAK_EVENT_TYPE.BREAK]: '闯入',
};

export enum DATA_SOURCE_TYPE {
  ZHOUJIE = 1,
  AI = 2,
}

export const DATA_SOURCE_TYPE_LABEL = {
  [DATA_SOURCE_TYPE.ZHOUJIE]: '周界系统',
  [DATA_SOURCE_TYPE.AI]: 'AI检测',
};

export const VISITOR_TABLE_SEARCH_OPTIONS: SelectOption[] = [
  {
    label: '姓名',
    value: 'visitorName',
    disabled: false,
  },
  {
    label: '身份信息',
    value: 'identityInfor',
    disabled: false,
  },
  {
    label: '手机号码',
    value: 'mobile',
    disabled: false,
  },
  {
    label: '单位',
    value: 'company',
    disabled: false,
  },
  {
    label: '来访事由',
    value: 'visitReason',
    disabled: false,
  },
  {
    label: '被访问姓名',
    value: 'respondentName',
    disabled: false,
  },
];

export enum IS_FOREIGNER_TYPE {
  FALSE = 0,
  TRUE = 1,
}

export const IS_FOREIGNER_TYPE_LABEL = {
  [IS_FOREIGNER_TYPE.TRUE]: '是',
  [IS_FOREIGNER_TYPE.FALSE]: '否',
};

export const IS_FOREIGNER_TYPE_OPTIONS: SelectOption[] = [
  {
    label: IS_FOREIGNER_TYPE_LABEL[IS_FOREIGNER_TYPE.TRUE],
    value: IS_FOREIGNER_TYPE.TRUE,
    disabled: false,
  },
  {
    label: IS_FOREIGNER_TYPE_LABEL[IS_FOREIGNER_TYPE.FALSE],
    value: IS_FOREIGNER_TYPE.FALSE,
    disabled: false,
  },
];

export enum VISIT_STATE_TYPE {
  VISITING = 0,
  LEAVE = 1,
}

export const VISIT_STATE_TYPE_LABEL = {
  [VISIT_STATE_TYPE.VISITING]: '拜访中',
  [VISIT_STATE_TYPE.LEAVE]: '已离开',
};

export const VISIT_STATE_TYPE_OPTIONS: SelectOption[] = [
  {
    label: VISIT_STATE_TYPE_LABEL[VISIT_STATE_TYPE.VISITING],
    value: VISIT_STATE_TYPE.VISITING,
    disabled: false,
  },
  {
    label: VISIT_STATE_TYPE_LABEL[VISIT_STATE_TYPE.LEAVE],
    value: VISIT_STATE_TYPE.LEAVE,
    disabled: false,
  },
];

export const VISITOR_MANAGEMENT_PROMISSION_CODE = 'security_business_module:visitor_manage';
export const ALARM_PUSH_PROMISSION_CODE = 'security_business_module:alarm_push';
