import {
  displayList,
  serialNumberTypeList,
  serialNumberStyleList,
  serialNumberPositionList,
  pinyinPositionList,
} from '@/views/book/courseware/data/common';

export function getDescribeProperty() {
  return {
    serial_number: 1, // 序号
    sn_type: serialNumberTypeList[0].value, // 序号类型：letter字母 number数字  capital大写字母 bracket_number括号数字
    sn_position: serialNumberPositionList[0].value, // 序号位置：top-start top top-end，left-start left left-end等
    sn_display_mode: displayList[0].value,
    sn_style: serialNumberStyleList[0].value,
    sn_background_color: '#ea3232', // 序号背景色
    view_pinyin: 'true', // 显示拼音
    pinyin_position: pinyinPositionList[0].value, // top bottom
    is_first_sentence_first_hz_pinyin_first_char_upper_case: 'false', // 句首大写
  };
}

export function getDescribeData() {
  return {
    type: 'describe',
    title: '描述',
    content: '',
    paragraph_list: [],
    paragraph_list_parameter: {
      text: '',
      is_first_sentence_first_hz_pinyin_first_char_upper_case: 'false',
      pinyin_proofread_word_list: [],
    },
    property: getDescribeProperty(),
  };
}
