SCRIPT_TYPE_FIX = 101
SCRIPT_TYPE_PROMPT = 102
SCRIPT_TYPE_SYSTEM = 103
SCRIPT_TYPE_ACTION = 105
SCRIPT_TYPES = {
    "固定剧本": SCRIPT_TYPE_FIX,
    "Prompt": SCRIPT_TYPE_PROMPT,
    "系统角色": SCRIPT_TYPE_SYSTEM,
}

SCRIPT_TYPE_VALUES = {
    SCRIPT_TYPE_FIX: "固定剧本",
    SCRIPT_TYPE_PROMPT: "Prompt",
    SCRIPT_TYPE_SYSTEM: "系统角色",
}

CONTENT_TYPE_TEXT = 201
CONTENT_TYPE_IMAGE = 202
CONTENT_TYPES = {"文本": CONTENT_TYPE_TEXT, "图片": CONTENT_TYPE_IMAGE}

UI_TYPE_BUTTON = 301
UI_TYPE_INPUT = 302
UI_TYPE_EMPTY = 303
UI_TYPE_TO_PAY = 304
UI_TYPE_SELECTION = 305
UI_TYPE_PHONE = 306
UI_TYPE_CHECKCODE = 307
UI_TYPE_LOGIN = 308
UI_TYPE_BRANCH = 309

# only generate content block
UI_TYPE_CONTENT = 330
UI_TYPE_BREAK = 331
UI_TYPE_ASK = 321
UI_TYPES = {
    "显示 按钮": UI_TYPE_BUTTON,
    "显示 输入框": UI_TYPE_INPUT,
    "显示 付款码": UI_TYPE_TO_PAY,
    "显示 按钮组": UI_TYPE_SELECTION,
    "输入 手机号": UI_TYPE_PHONE,
    "输入 验证码": UI_TYPE_CHECKCODE,
    "弹出 登录注册框": UI_TYPE_LOGIN,
    "显示 登录注册框": UI_TYPE_LOGIN,
    "无": UI_TYPE_EMPTY,
    "跳转按钮": UI_TYPE_BRANCH,
}

UI_TYPE_VALUES = {
    UI_TYPE_BUTTON: "显示 按钮",
    UI_TYPE_INPUT: "显示 输入框",
    UI_TYPE_TO_PAY: "显示 付款码",
    UI_TYPE_SELECTION: "显示 按钮组",
    UI_TYPE_PHONE: "输入 手机号",
    UI_TYPE_CHECKCODE: "输入 验证码",
    UI_TYPE_LOGIN: "弹出 登录注册框",
    UI_TYPE_EMPTY: "无",
    UI_TYPE_BRANCH: "跳转按钮",
}

LESSON_TYPE_TRIAL = 401
LESSON_TYPE_NORMAL = 402
LESSON_TYPE_EXTEND = 403
LESSON_TYPE_BRANCH = 404
LESSON_TYPE_BRANCH_HIDDEN = 405
LESSON_TYPES = {
    "试用课": LESSON_TYPE_TRIAL,
    "正式课": LESSON_TYPE_NORMAL,
    "延展课": LESSON_TYPE_EXTEND,
    "分支课": LESSON_TYPE_BRANCH,
    "隐藏分支课": LESSON_TYPE_BRANCH_HIDDEN,
}

LESSON_STATUS = {1: "有效", 0: "无效"}
SCRIPT_STATUS = {1: "有效", 0: "无效"}

LESSON_TYPE_VALUES = {
    LESSON_TYPE_TRIAL: "试用课",
    LESSON_TYPE_NORMAL: "正式课",
    LESSON_TYPE_EXTEND: "延展课",
    LESSON_TYPE_BRANCH: "分支课",
    LESSON_TYPE_BRANCH_HIDDEN: "隐藏分支课",
}

ASK_MODE_DEFAULT = 5101
ASK_MODE_DISABLE = 5102
ASK_MODE_ENABLE = 5103

ASK_MODES = {
    "默认": ASK_MODE_DEFAULT,
    "禁用": ASK_MODE_DISABLE,
    "启用": ASK_MODE_ENABLE,
}

STATUS_DELETE = 0
STATUS_PUBLISH = 1
STATUS_DRAFT = 2
STATUS_HISTORY = 3
STATUS_TO_DELETE = 4
