/**
 * 变量类型选项
 * 值：string/number/boolean/object/array[string]/array[number]/array[boolean]/array[object]/array[file]
 */
export const VARIABLE_TYPE_OPTIONS = [
	{ label: 'String', value: 'string' },
	{ label: 'Number', value: 'number' },
	{ label: 'Boolean', value: 'boolean' },
	{ label: 'Object', value: 'object' },
	{ label: 'Array[String]', value: 'array[string]' },
	{ label: 'Array[Number]', value: 'array[number]' },
	{ label: 'Array[Boolean]', value: 'array[boolean]' },
	{ label: 'Array[Object]', value: 'array[object]' },
	{ label: 'Array[File]', value: 'array[file]' }
]

/**
 * 变量值类型
 */
export const VARIABLE_VALUE_OPTIONS = [
	{ label: 'Constant', value: 'constant' },
	{ label: 'Variable', value: 'variable' }
]

/**
 * 变量类型操作符
 */
export const VARIABLE_TYPE_OPERATORS = {
	number: [
		{ label: '=', value: '=' },
		{ label: '≠', value: '!=' },
		{ label: '>', value: '>' },
		{ label: '<', value: '<' },
		{ label: '≥', value: '≥' },
		{ label: '≤', value: '≤' },
		{ label: '为空', value: 'empty' },
		{ label: '不为空', value: 'not_empty' }
	],
	string: [
		{ label: '包含', value: 'contains' },
		{ label: '不包含', value: 'not_contains' },
		{ label: '开头是', value: 'start_with' },
		{ label: '结尾是', value: 'end_with' },
		{ label: '是', value: 'is' },
		{ label: '不是', value: 'is_not' },
		{ label: '为空', value: 'empty' },
		{ label: '不为空', value: 'not_empty' }
	],
	boolean: [
		{ label: '是', value: 'is' },
		{ label: '不是', value: 'is_not' }
	],
	object: [
		{ label: '是', value: 'is' },
		{ label: '不是', value: 'is_not' },
		{ label: '为空', value: 'empty' },
		{ label: '不为空', value: 'not_empty' }
	],
	'array[string]': [
		{ label: '包含', value: 'contains' },
		{ label: '不包含', value: 'not_contains' },
		{ label: '为空', value: 'empty' },
		{ label: '不为空', value: 'not_empty' }
	],
	'array[number]': [
		{ label: '包含', value: 'contains' },
		{ label: '不包含', value: 'not_contains' },
		{ label: '为空', value: 'empty' },
		{ label: '不为空', value: 'not_empty' }
	],
	'array[boolean]': [
		{ label: '包含', value: 'contains' },
		{ label: '不包含', value: 'not_contains' },
		{ label: '为空', value: 'empty' },
		{ label: '不为空', value: 'not_empty' }
	],
	'array[object]': [
		{ label: '为空', value: 'empty' },
		{ label: '不为空', value: 'not_empty' }
	],
	'array[file]': [
		{ label: '包含', value: 'contains' },
		{ label: '不包含', value: 'not_contains' },
		{ label: '为空', value: 'empty' },
		{ label: '不为空', value: 'not_empty' }
	]
}
