"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AGENT_FIELD_ICON_URL = exports.AI_FIELD_ICON_URL = exports.COMPONENT_ICON_MAP = exports.AI_TASK_TYPE_MAP = exports.FIELD_LABEL_MAP = exports.AGENT_FIELD_TYPES = exports.FORMULA_FIELD_WHITELIST_COMPONENTS = exports.FORMULA_FIELD_TYPES = exports.AI_FIELD_TYPES = void 0;
const i18n_1 = __importDefault(require("../../../../../../../locales/i18n.js"));
/**
 * 字段类型相关常量配置
 */
const ai_table_icons_1 = require("../../../../../../../cn-ai-table/view/constants/ai-table-icons");
/** AI 字段类型列表（包括菜包AI字段和原有AI字段） */
exports.AI_FIELD_TYPES = [
    // 菜包AI字段
    'ai-generate',
    'format-convert',
    'customer-call-follow',
    'analyze-records',
    'smart-summary',
    'target-responsible',
    'logistics-order-recognition',
    'create-ai-field',
    // 原有AI字段
    'info-extract',
    'extract-number',
    'match-classify',
    'doc-summary',
];
/** 公式字段类型列表 */
exports.FORMULA_FIELD_TYPES = ['formula'];
/**
 * 公式字段可引用的组件白名单
 * 与 cn-next-smart SUPPORT_FORMULA_LIST 保持对齐
 */
exports.FORMULA_FIELD_WHITELIST_COMPONENTS = [
    // 数值类
    'NumberPicker',
    'CnNumberPicker',
    'Rating',
    'CnRating',
    'CnRange',
    'Range',
    // 文本类
    'Input',
    'CnInput',
    'TextArea',
    'CnTextArea',
    'Email',
    'Phone',
    'IDCard',
    // 选择类
    'Select',
    'CnSelect',
    'CnAsyncSelect',
    'SelectList',
    'RadioGroup',
    'CnRadioGroup',
    // 日期时间类
    'RangeTimePicker',
    'CnRangeTimePickerPro',
    'TimePicker',
    'CnTimePickerPro',
    'RangePicker',
    'CnRangeDatePickerPro',
    'DatePicker',
    'CnDatePickerPro',
    // 扫码类
    'CnDingTalkScanInput',
    'CnDingTalkScanInputList',
    // 开关
    'Switch',
    'CnSwitch',
    // 序号
    'SerialNumber',
    // 人员
    'EmployeeSelect',
    'CnEmployeeSelect',
    // 上传
    'Upload',
    'CnUpload',
    'OSSImageUpload',
    // 公式
    'Formula',
];
/** Agent 字段类型列表 */
exports.AGENT_FIELD_TYPES = [
    'logistics-product-manager',
    'sales-assistant',
    'smart-summary-agent',
    'create-ai-field-agent',
];
/** 字段类型到中文名称的映射 */
exports.FIELD_LABEL_MAP = {
    // 菜包AI字段
    'ai-generate': i18n_1.default.get({ id: 'GenerateText', dm: '生成文本' }),
    'format-convert': i18n_1.default.get({ id: 'FormatConversion', dm: '格式转化' }),
    'customer-call-follow': i18n_1.default.get({ id: 'CustomerPhoneFollowup', dm: '客户电话跟进' }),
    'analyze-records': i18n_1.default.get({ id: 'AnalysisRecords', dm: '分析记录' }),
    'smart-summary': i18n_1.default.get({ id: 'SmartSummary', dm: '智能总结' }),
    'target-responsible': i18n_1.default.get({ id: 'TargetLeader', dm: '目标负责人' }),
    'logistics-order-recognition': i18n_1.default.get({ id: 'LogisticListIdentification', dm: '物流单识别' }),
    'create-ai-field': i18n_1.default.get({ id: 'CreateAnAIField', dm: '创建AI字段' }),
    // 菜包Agent字段
    'logistics-product-manager': i18n_1.default.get({ id: 'LogisticsProductManager', dm: '物流产品经理' }),
    'sales-assistant': i18n_1.default.get({ id: 'SalesAssistant', dm: '销售助手' }),
    'smart-summary-agent': i18n_1.default.get({ id: 'SmartSummary', dm: '智能总结' }),
    'create-ai-field-agent': i18n_1.default.get({ id: 'CreateAnAIField', dm: '创建AI字段' }),
    // 原有字段
    'info-extract': i18n_1.default.get({ id: 'InformationExtraction', dm: '信息提取' }),
    'extract-number': i18n_1.default.get({ id: 'ExtractNumbers', dm: '提取数字' }),
    'match-classify': i18n_1.default.get({ id: 'MatchClassification', dm: '匹配分类' }),
    'doc-summary': i18n_1.default.get({ id: 'DocumentSummary', dm: '文档总结' }),
    text: i18n_1.default.get({ id: 'Text', dm: '文本' }),
    number: i18n_1.default.get({ id: 'Numbers', dm: '数字' }),
    date: i18n_1.default.get({ id: 'Date', dm: '日期' }),
    currency: i18n_1.default.get({ id: 'Currency', dm: '货币' }),
    progress: i18n_1.default.get({ id: 'Progress', dm: '进度' }),
    formula: i18n_1.default.get({ id: 'Formula', dm: '公式' }),
    'single-choice': i18n_1.default.get({ id: 'MultipleChoice', dm: '单选' }),
    'multiple-choice': i18n_1.default.get({ id: 'MultipleChoice.kEGzO', dm: '多选' }),
    personnel: i18n_1.default.get({ id: 'Personnel', dm: '人员' }),
    attachment: i18n_1.default.get({ id: 'PicturesAndAttachments', dm: '图片和附件' }),
    link: i18n_1.default.get({ id: 'Link', dm: '链接' }),
    button: i18n_1.default.get({ id: 'Button', dm: '按钮' }),
    checkbox: i18n_1.default.get({ id: 'Checkbox', dm: '复选框' }),
    phone: i18n_1.default.get({ id: 'Telephone', dm: '电话' }),
    rating: i18n_1.default.get({ id: 'Rating', dm: '评分' }),
    process: i18n_1.default.get({ id: 'Process', dm: '流程' }),
    personnel2: i18n_1.default.get({ id: 'Personnel', dm: '人员' }),
    department: i18n_1.default.get({ id: 'Department', dm: '部门' }),
    group: i18n_1.default.get({ id: 'Group', dm: '群组' }),
};
/** AI 任务类型映射 */
exports.AI_TASK_TYPE_MAP = {
    'info-extract': 'info-extract',
    'format-convert': 'format-convert',
    'customer-call-follow': 'customer-call-follow',
    'analyze-records': 'analyze-records',
    'smart-summary': 'smart-summary',
    'target-responsible': 'target-responsible',
    'logistics-order-recognition': 'logistics-order-recognition',
    'ai-generate': 'ai-generate',
    'extract-number': 'extract-number',
    'match-classify': 'match-classify',
    'doc-summary': 'doc-summary',
};
/** 组件类型到图标的映射 */
exports.COMPONENT_ICON_MAP = {
    Input: 'edit',
    CnInput: 'edit',
    TextArea: 'edit',
    CnTextArea: 'edit',
    Email: 'edit',
    Phone: 'edit',
    IDCard: 'edit',
    NumberPicker: 'hashtag',
    CnNumberPicker: 'hashtag',
    Rating: 'hashtag',
    CnRating: 'hashtag',
    Range: 'hashtag',
    CnRange: 'hashtag',
    SerialNumber: 'hashtag',
    DatePicker: 'calendar',
    CnDatePickerPro: 'calendar',
    TimePicker: 'calendar',
    CnTimePickerPro: 'calendar',
    RangePicker: 'calendar',
    CnRangeDatePickerPro: 'calendar',
    RangeTimePicker: 'calendar',
    CnRangeTimePickerPro: 'calendar',
    Select: 'list',
    CnSelect: 'list',
    CnAsyncSelect: 'list',
    SelectList: 'list',
    RadioGroup: 'dot-circle',
    CnRadioGroup: 'dot-circle',
    EmployeeSelect: 'user',
    CnEmployeeSelect: 'user',
    CnDepartmentSelect: 'group',
    CnTreeSelect: 'tree',
    CnCheckboxGroup: 'check-square',
    Switch: 'check-square',
    CnSwitch: 'check-square',
    Upload: 'attachment',
    CnUpload: 'attachment',
    OSSImageUpload: 'attachment',
    CnDingTalkScanInput: 'edit',
    CnDingTalkScanInputList: 'edit',
    Formula: 'hashtag',
};
/** AI 字段图标 URL */
exports.AI_FIELD_ICON_URL = ai_table_icons_1.AI_TABLE_ICONS.FIELD_AI;
/** Agent 字段图标 URL */
exports.AGENT_FIELD_ICON_URL = ai_table_icons_1.AI_TABLE_ICONS.FIELD_AGENT;
