Skip to content

CanvasAnvil is an open source AI diagram maker and flowchart generator - an infinite-canvas diagram editor and self-hosted drawio alternative that writes editable .drawio files. Text to diagram, then fix nodes, layout and labels in place. Also AI presentations, interior design CAD/BOM, posters and infographics.

36.4 KB
Raw Blame
import type { PresetTemplate, TemplateCategory } from "@/workspaces/ppt/canvas/types";

/** Marks a version synthesised from a slide that had no explicit version yet. */
export const SYNTHETIC_PRIMARY_VERSION_PREFIX = "synthetic-primary:";

/** PowerPoint measures type in points; the canvas draws in CSS pixels. */
export const PPT_POINT_TO_CSS_PX = 96 / 72;

export const PPT_TEMPLATE_UPLOADS_KEY = "ppt_template_uploads_v1";
export const PPT_TEMPLATE_HIDDEN_PRESETS_KEY = "ppt_template_hidden_presets_v1";

/**
 * Buckets for the template picker, in the order the filter shows them.
 *
 * There are more of these than there are templates on purpose: the library is
 * meant to grow, and a new template should only need a file, a name and one or
 * more of these ids. A bucket with nothing in it is not rendered, so an unused
 * id costs nothing until it is used.
 */
export const TEMPLATE_CATEGORIES: TemplateCategory[] = [
  { id: "business", zhName: "商务办公", enName: "Business" },
  { id: "tech", zhName: "科技互联网", enName: "Tech" },
  { id: "academic", zhName: "学术教育", enName: "Academic" },
  { id: "report", zhName: "总结汇报", enName: "Report" },
  { id: "marketing", zhName: "营销发布", enName: "Marketing" },
  { id: "minimal", zhName: "极简", enName: "Minimal" },
  { id: "creative", zhName: "创意插画", enName: "Creative" },
  { id: "data", zhName: "数据图表", enName: "Data" },
  { id: "finance", zhName: "金融财经", enName: "Finance" },
  { id: "medical", zhName: "医疗健康", enName: "Medical" },
  { id: "culture", zhName: "文化艺术", enName: "Culture" },
  { id: "nature", zhName: "自然环保", enName: "Nature" },
  { id: "festival", zhName: "节日庆典", enName: "Festival" },
  { id: "resume", zhName: "简历求职", enName: "Resume" },
  { id: "other", zhName: "其他", enName: "Other" },
];

/**
 * The picker's thumbnail for a preset: a 480px copy under `thumbs/`.
 *
 * The grid used to show every full-size template as its own thumbnail --
 * 231 slides at 1-2MB each, for 200px tiles. The full file is still what
 * gets sent to the model once a template is chosen.
 */
export const templateThumbPath = (path: string) => path.replace(/^\/templates\//, "/templates/thumbs/");

export const PRESET_TEMPLATES: PresetTemplate[] = [
  { id: "preset-tech-business", zhName: "科技商务", enName: "Tech Business", path: "/templates/template_b.jpg", categoryId: "tech" },
  { id: "preset-academic", zhName: "学术汇报", enName: "Academic", path: "/templates/template_academic.jpg", categoryId: "academic" },
  { id: "preset-minimal", zhName: "极简主义", enName: "Minimal", path: "/templates/template_s.jpg", categoryId: "minimal" },
  { id: "preset-vector", zhName: "矢量插画", enName: "Vector Illustration", path: "/templates/template_vector_illustration.jpg", categoryId: "creative" },
  { id: "preset-yellow", zhName: "活力黄", enName: "Vibrant Yellow", path: "/templates/template_y.jpg", categoryId: "marketing" },
  { id: "preset-glass", zhName: "磨砂玻璃", enName: "Frosted Glass", path: "/templates/template_glass.jpg", categoryId: "minimal" },
  { id: "preset-business-01", zhName: "季度业绩总结", enName: "Dashboard", path: "/templates/template_business_01.jpg", categoryId: "business" },
  { id: "preset-business-02", zhName: "项目实施时间轴", enName: "Timeline", path: "/templates/template_business_02.jpg", categoryId: "business" },
  { id: "preset-business-03", zhName: "传统模式 对比 数字化转型", enName: "Comparison", path: "/templates/template_business_03.jpg", categoryId: "business" },
  { id: "preset-business-04", zhName: "核心竞争优势", enName: "Icon Grid", path: "/templates/template_business_04.jpg", categoryId: "business" },
  { id: "preset-business-05", zhName: "年度关键成果", enName: "Big Numbers", path: "/templates/template_business_05.jpg", categoryId: "business" },
  { id: "preset-business-06", zhName: "目录", enName: "Contents", path: "/templates/template_business_06.jpg", categoryId: "business" },
  { id: "preset-business-07", zhName: "核心团队介绍", enName: "Team", path: "/templates/template_business_07.jpg", categoryId: "business" },
  { id: "preset-business-08", zhName: "项目落地五步法", enName: "Steps", path: "/templates/template_business_08.jpg", categoryId: "business" },
  { id: "preset-business-09", zhName: "部门预算明细", enName: "Table", path: "/templates/template_business_09.jpg", categoryId: "business" },
  { id: "preset-business-10", zhName: "全国业务分布", enName: "Map", path: "/templates/template_business_10.jpg", categoryId: "business" },
  { id: "preset-business-11", zhName: "企业文化理念", enName: "Image+Text", path: "/templates/template_business_11.jpg", categoryId: "business" },
  { id: "preset-business-12", zhName: "业务发展矩阵分析", enName: "Matrix", path: "/templates/template_business_12.jpg", categoryId: "business" },
  { id: "preset-business-13", zhName: "综合能力评估雷达图", enName: "Radar", path: "/templates/template_business_13.jpg", categoryId: "business" },
  { id: "preset-business-14", zhName: "项目验收清单", enName: "Checklist", path: "/templates/template_business_14.jpg", categoryId: "business" },
  { id: "preset-business-15", zhName: "标杆客户案例分享", enName: "Case Study", path: "/templates/template_business_15.jpg", categoryId: "business" },
  { id: "preset-tech-01", zhName: "平台核心数据指标", enName: "Dashboard", path: "/templates/template_tech_01.jpg", categoryId: "tech" },
  { id: "preset-tech-02", zhName: "产品迭代路线图", enName: "Timeline", path: "/templates/template_tech_02.jpg", categoryId: "tech" },
  { id: "preset-tech-03", zhName: "传统架构 对比 云原生架构", enName: "Comparison", path: "/templates/template_tech_03.jpg", categoryId: "tech" },
  { id: "preset-tech-04", zhName: "四大核心技术优势", enName: "Icon Grid", path: "/templates/template_tech_04.jpg", categoryId: "tech" },
  { id: "preset-tech-05", zhName: "平台运行关键数据", enName: "Big Numbers", path: "/templates/template_tech_05.jpg", categoryId: "tech" },
  { id: "preset-tech-06", zhName: "目录", enName: "Contents", path: "/templates/template_tech_06.jpg", categoryId: "tech" },
  { id: "preset-tech-07", zhName: "技术研发团队", enName: "Team", path: "/templates/template_tech_07.jpg", categoryId: "tech" },
  { id: "preset-tech-08", zhName: "系统上线五步流程", enName: "Steps", path: "/templates/template_tech_08.jpg", categoryId: "tech" },
  { id: "preset-tech-09", zhName: "服务器资源配置表", enName: "Table", path: "/templates/template_tech_09.jpg", categoryId: "tech" },
  { id: "preset-tech-10", zhName: "全球节点分布", enName: "Map", path: "/templates/template_tech_10.jpg", categoryId: "tech" },
  { id: "preset-tech-11", zhName: "智能算法架构图解", enName: "Image+Text", path: "/templates/template_tech_11.jpg", categoryId: "tech" },
  { id: "preset-tech-12", zhName: "技术能力矩阵分析", enName: "Matrix", path: "/templates/template_tech_12.jpg", categoryId: "tech" },
  { id: "preset-tech-13", zhName: "系统性能雷达评估", enName: "Radar", path: "/templates/template_tech_13.jpg", categoryId: "tech" },
  { id: "preset-tech-14", zhName: "上线前检查清单", enName: "Checklist", path: "/templates/template_tech_14.jpg", categoryId: "tech" },
  { id: "preset-tech-15", zhName: "标杆技术应用案例", enName: "Case Study", path: "/templates/template_tech_15.jpg", categoryId: "tech" },
  { id: "preset-academic-01", zhName: "研究数据统计", enName: "Dashboard", path: "/templates/template_academic_01.jpg", categoryId: "academic" },
  { id: "preset-academic-02", zhName: "课题研究时间轴", enName: "Timeline", path: "/templates/template_academic_02.jpg", categoryId: "academic" },
  { id: "preset-academic-03", zhName: "传统教学 对比 创新教学", enName: "Comparison", path: "/templates/template_academic_03.jpg", categoryId: "academic" },
  { id: "preset-academic-04", zhName: "教学四大目标", enName: "Icon Grid", path: "/templates/template_academic_04.jpg", categoryId: "academic" },
  { id: "preset-academic-05", zhName: "学术成果关键数字", enName: "Big Numbers", path: "/templates/template_academic_05.jpg", categoryId: "academic" },
  { id: "preset-academic-06", zhName: "目录", enName: "Contents", path: "/templates/template_academic_06.jpg", categoryId: "academic" },
  { id: "preset-academic-07", zhName: "研究团队介绍", enName: "Team", path: "/templates/template_academic_07.jpg", categoryId: "academic" },
  { id: "preset-academic-08", zhName: "论文写作五步法", enName: "Steps", path: "/templates/template_academic_08.jpg", categoryId: "academic" },
  { id: "preset-academic-09", zhName: "课程安排表", enName: "Table", path: "/templates/template_academic_09.jpg", categoryId: "academic" },
  { id: "preset-academic-10", zhName: "生源地区分布", enName: "Map", path: "/templates/template_academic_10.jpg", categoryId: "academic" },
  { id: "preset-academic-11", zhName: "研究方法图文说明", enName: "Image+Text", path: "/templates/template_academic_11.jpg", categoryId: "academic" },
  { id: "preset-academic-12", zhName: "学习能力矩阵评估", enName: "Matrix", path: "/templates/template_academic_12.jpg", categoryId: "academic" },
  { id: "preset-academic-13", zhName: "综合素养雷达评估", enName: "Radar", path: "/templates/template_academic_13.jpg", categoryId: "academic" },
  { id: "preset-academic-14", zhName: "开题报告检查清单", enName: "Checklist", path: "/templates/template_academic_14.jpg", categoryId: "academic" },
  { id: "preset-academic-15", zhName: "优秀课题案例分享", enName: "Case Study", path: "/templates/template_academic_15.jpg", categoryId: "academic" },
  { id: "preset-report-01", zhName: "本月工作数据看板", enName: "Dashboard", path: "/templates/template_report_01.jpg", categoryId: "report" },
  { id: "preset-report-02", zhName: "工作进度时间轴", enName: "Timeline", path: "/templates/template_report_02.jpg", categoryId: "report" },
  { id: "preset-report-03", zhName: "计划完成 对比 实际完成", enName: "Comparison", path: "/templates/template_report_03.jpg", categoryId: "report" },
  { id: "preset-report-04", zhName: "四大工作亮点", enName: "Icon Grid", path: "/templates/template_report_04.jpg", categoryId: "report" },
  { id: "preset-report-05", zhName: "核心业绩数字", enName: "Big Numbers", path: "/templates/template_report_05.jpg", categoryId: "report" },
  { id: "preset-report-06", zhName: "目录", enName: "Contents", path: "/templates/template_report_06.jpg", categoryId: "report" },
  { id: "preset-report-07", zhName: "项目小组成员", enName: "Team", path: "/templates/template_report_07.jpg", categoryId: "report" },
  { id: "preset-report-08", zhName: "汇报撰写五步法", enName: "Steps", path: "/templates/template_report_08.jpg", categoryId: "report" },
  { id: "preset-report-09", zhName: "各部门数据对比表", enName: "Table", path: "/templates/template_report_09.jpg", categoryId: "report" },
  { id: "preset-report-10", zhName: "区域业绩分布", enName: "Map", path: "/templates/template_report_10.jpg", categoryId: "report" },
  { id: "preset-report-11", zhName: "工作成果图文展示", enName: "Image+Text", path: "/templates/template_report_11.jpg", categoryId: "report" },
  { id: "preset-report-12", zhName: "工作成效矩阵分析", enName: "Matrix", path: "/templates/template_report_12.jpg", categoryId: "report" },
  { id: "preset-report-13", zhName: "岗位能力雷达评估", enName: "Radar", path: "/templates/template_report_13.jpg", categoryId: "report" },
  { id: "preset-report-14", zhName: "月度工作检查清单", enName: "Checklist", path: "/templates/template_report_14.jpg", categoryId: "report" },
  { id: "preset-report-15", zhName: "优秀案例经验分享", enName: "Case Study", path: "/templates/template_report_15.jpg", categoryId: "report" },
  { id: "preset-marketing-01", zhName: "活动传播数据看板", enName: "Dashboard", path: "/templates/template_marketing_01.jpg", categoryId: "marketing" },
  { id: "preset-marketing-02", zhName: "新品发布时间轴", enName: "Timeline", path: "/templates/template_marketing_02.jpg", categoryId: "marketing" },
  { id: "preset-marketing-03", zhName: "传统营销 对比 新媒体营销", enName: "Comparison", path: "/templates/template_marketing_03.jpg", categoryId: "marketing" },
  { id: "preset-marketing-04", zhName: "四大营销亮点", enName: "Icon Grid", path: "/templates/template_marketing_04.jpg", categoryId: "marketing" },
  { id: "preset-marketing-05", zhName: "活动关键成果数字", enName: "Big Numbers", path: "/templates/template_marketing_05.jpg", categoryId: "marketing" },
  { id: "preset-marketing-06", zhName: "目录", enName: "Contents", path: "/templates/template_marketing_06.jpg", categoryId: "marketing" },
  { id: "preset-marketing-07", zhName: "营销团队介绍", enName: "Team", path: "/templates/template_marketing_07.jpg", categoryId: "marketing" },
  { id: "preset-marketing-08", zhName: "营销活动五步法", enName: "Steps", path: "/templates/template_marketing_08.jpg", categoryId: "marketing" },
  { id: "preset-marketing-09", zhName: "渠道投放明细表", enName: "Table", path: "/templates/template_marketing_09.jpg", categoryId: "marketing" },
  { id: "preset-marketing-10", zhName: "用户地域分布", enName: "Map", path: "/templates/template_marketing_10.jpg", categoryId: "marketing" },
  { id: "preset-marketing-11", zhName: "产品卖点图文展示", enName: "Image+Text", path: "/templates/template_marketing_11.jpg", categoryId: "marketing" },
  { id: "preset-marketing-12", zhName: "营销策略矩阵分析", enName: "Matrix", path: "/templates/template_marketing_12.jpg", categoryId: "marketing" },
  { id: "preset-marketing-13", zhName: "品牌影响力雷达评估", enName: "Radar", path: "/templates/template_marketing_13.jpg", categoryId: "marketing" },
  { id: "preset-marketing-14", zhName: "活动上线检查清单", enName: "Checklist", path: "/templates/template_marketing_14.jpg", categoryId: "marketing" },
  { id: "preset-marketing-15", zhName: "爆款营销案例分享", enName: "Case Study", path: "/templates/template_marketing_15.jpg", categoryId: "marketing" },
  { id: "preset-minimal-01", zhName: "简约数据展示", enName: "Dashboard", path: "/templates/template_minimal_01.jpg", categoryId: "minimal" },
  { id: "preset-minimal-02", zhName: "简约流程时间轴", enName: "Timeline", path: "/templates/template_minimal_02.jpg", categoryId: "minimal" },
  { id: "preset-minimal-03", zhName: "简约对比排版", enName: "Comparison", path: "/templates/template_minimal_03.jpg", categoryId: "minimal" },
  { id: "preset-minimal-04", zhName: "简约要点四宫格", enName: "Icon Grid", path: "/templates/template_minimal_04.jpg", categoryId: "minimal" },
  { id: "preset-minimal-05", zhName: "简约数字统计", enName: "Big Numbers", path: "/templates/template_minimal_05.jpg", categoryId: "minimal" },
  { id: "preset-minimal-06", zhName: "目录", enName: "Contents", path: "/templates/template_minimal_06.jpg", categoryId: "minimal" },
  { id: "preset-minimal-07", zhName: "简约团队展示", enName: "Team", path: "/templates/template_minimal_07.jpg", categoryId: "minimal" },
  { id: "preset-minimal-08", zhName: "简约五步流程", enName: "Steps", path: "/templates/template_minimal_08.jpg", categoryId: "minimal" },
  { id: "preset-minimal-09", zhName: "简约数据表格", enName: "Table", path: "/templates/template_minimal_09.jpg", categoryId: "minimal" },
  { id: "preset-minimal-10", zhName: "简约分布示意", enName: "Map", path: "/templates/template_minimal_10.jpg", categoryId: "minimal" },
  { id: "preset-minimal-11", zhName: "简约图文排版", enName: "Image+Text", path: "/templates/template_minimal_11.jpg", categoryId: "minimal" },
  { id: "preset-minimal-12", zhName: "简约矩阵图示", enName: "Matrix", path: "/templates/template_minimal_12.jpg", categoryId: "minimal" },
  { id: "preset-minimal-13", zhName: "简约雷达图展示", enName: "Radar", path: "/templates/template_minimal_13.jpg", categoryId: "minimal" },
  { id: "preset-minimal-14", zhName: "简约清单排版", enName: "Checklist", path: "/templates/template_minimal_14.jpg", categoryId: "minimal" },
  { id: "preset-minimal-15", zhName: "简约案例展示", enName: "Case Study", path: "/templates/template_minimal_15.jpg", categoryId: "minimal" },
  { id: "preset-creative-01", zhName: "创意项目数据展示", enName: "Dashboard", path: "/templates/template_creative_01.jpg", categoryId: "creative" },
  { id: "preset-creative-02", zhName: "创作灵感时间轴", enName: "Timeline", path: "/templates/template_creative_02.jpg", categoryId: "creative" },
  { id: "preset-creative-03", zhName: "灵感碰撞 对比 落地执行", enName: "Comparison", path: "/templates/template_creative_03.jpg", categoryId: "creative" },
  { id: "preset-creative-04", zhName: "创意四大亮点", enName: "Icon Grid", path: "/templates/template_creative_04.jpg", categoryId: "creative" },
  { id: "preset-creative-05", zhName: "创作成果数字", enName: "Big Numbers", path: "/templates/template_creative_05.jpg", categoryId: "creative" },
  { id: "preset-creative-06", zhName: "目录", enName: "Contents", path: "/templates/template_creative_06.jpg", categoryId: "creative" },
  { id: "preset-creative-07", zhName: "创意团队介绍", enName: "Team", path: "/templates/template_creative_07.jpg", categoryId: "creative" },
  { id: "preset-creative-08", zhName: "创作流程五步法", enName: "Steps", path: "/templates/template_creative_08.jpg", categoryId: "creative" },
  { id: "preset-creative-09", zhName: "素材清单表格", enName: "Table", path: "/templates/template_creative_09.jpg", categoryId: "creative" },
  { id: "preset-creative-10", zhName: "灵感来源分布", enName: "Map", path: "/templates/template_creative_10.jpg", categoryId: "creative" },
  { id: "preset-creative-11", zhName: "创意作品图文展示", enName: "Image+Text", path: "/templates/template_creative_11.jpg", categoryId: "creative" },
  { id: "preset-creative-12", zhName: "创意能力矩阵", enName: "Matrix", path: "/templates/template_creative_12.jpg", categoryId: "creative" },
  { id: "preset-creative-13", zhName: "创意维度雷达图", enName: "Radar", path: "/templates/template_creative_13.jpg", categoryId: "creative" },
  { id: "preset-creative-14", zhName: "创作灵感清单", enName: "Checklist", path: "/templates/template_creative_14.jpg", categoryId: "creative" },
  { id: "preset-creative-15", zhName: "创意作品案例展示", enName: "Case Study", path: "/templates/template_creative_15.jpg", categoryId: "creative" },
  { id: "preset-data-01", zhName: "核心数据指标看板", enName: "Dashboard", path: "/templates/template_data_01.jpg", categoryId: "data" },
  { id: "preset-data-02", zhName: "数据分析时间轴", enName: "Timeline", path: "/templates/template_data_02.jpg", categoryId: "data" },
  { id: "preset-data-03", zhName: "传统分析 对比 智能分析", enName: "Comparison", path: "/templates/template_data_03.jpg", categoryId: "data" },
  { id: "preset-data-04", zhName: "数据平台四大优势", enName: "Icon Grid", path: "/templates/template_data_04.jpg", categoryId: "data" },
  { id: "preset-data-05", zhName: "关键运营数字", enName: "Big Numbers", path: "/templates/template_data_05.jpg", categoryId: "data" },
  { id: "preset-data-06", zhName: "目录", enName: "Contents", path: "/templates/template_data_06.jpg", categoryId: "data" },
  { id: "preset-data-07", zhName: "数据分析团队", enName: "Team", path: "/templates/template_data_07.jpg", categoryId: "data" },
  { id: "preset-data-08", zhName: "数据分析五步法", enName: "Steps", path: "/templates/template_data_08.jpg", categoryId: "data" },
  { id: "preset-data-09", zhName: "指标监控表格", enName: "Table", path: "/templates/template_data_09.jpg", categoryId: "data" },
  { id: "preset-data-10", zhName: "用户分布热力图", enName: "Map", path: "/templates/template_data_10.jpg", categoryId: "data" },
  { id: "preset-data-11", zhName: "数据模型图文说明", enName: "Image+Text", path: "/templates/template_data_11.jpg", categoryId: "data" },
  { id: "preset-data-12", zhName: "数据能力矩阵分析", enName: "Matrix", path: "/templates/template_data_12.jpg", categoryId: "data" },
  { id: "preset-data-13", zhName: "多维数据雷达图", enName: "Radar", path: "/templates/template_data_13.jpg", categoryId: "data" },
  { id: "preset-data-14", zhName: "数据质量检查清单", enName: "Checklist", path: "/templates/template_data_14.jpg", categoryId: "data" },
  { id: "preset-data-15", zhName: "数据分析成功案例", enName: "Case Study", path: "/templates/template_data_15.jpg", categoryId: "data" },
  { id: "preset-finance-01", zhName: "财务数据看板", enName: "Dashboard", path: "/templates/template_finance_01.jpg", categoryId: "finance" },
  { id: "preset-finance-02", zhName: "资产配置时间轴", enName: "Timeline", path: "/templates/template_finance_02.jpg", categoryId: "finance" },
  { id: "preset-finance-03", zhName: "传统理财 对比 智能理财", enName: "Comparison", path: "/templates/template_finance_03.jpg", categoryId: "finance" },
  { id: "preset-finance-04", zhName: "四大财务优势", enName: "Icon Grid", path: "/templates/template_finance_04.jpg", categoryId: "finance" },
  { id: "preset-finance-05", zhName: "年度财务关键数字", enName: "Big Numbers", path: "/templates/template_finance_05.jpg", categoryId: "finance" },
  { id: "preset-finance-06", zhName: "目录", enName: "Contents", path: "/templates/template_finance_06.jpg", categoryId: "finance" },
  { id: "preset-finance-07", zhName: "财务团队介绍", enName: "Team", path: "/templates/template_finance_07.jpg", categoryId: "finance" },
  { id: "preset-finance-08", zhName: "投资决策五步法", enName: "Steps", path: "/templates/template_finance_08.jpg", categoryId: "finance" },
  { id: "preset-finance-09", zhName: "收支明细表", enName: "Table", path: "/templates/template_finance_09.jpg", categoryId: "finance" },
  { id: "preset-finance-10", zhName: "资产区域分布", enName: "Map", path: "/templates/template_finance_10.jpg", categoryId: "finance" },
  { id: "preset-finance-11", zhName: "财务模型图文说明", enName: "Image+Text", path: "/templates/template_finance_11.jpg", categoryId: "finance" },
  { id: "preset-finance-12", zhName: "风险收益矩阵分析", enName: "Matrix", path: "/templates/template_finance_12.jpg", categoryId: "finance" },
  { id: "preset-finance-13", zhName: "财务健康雷达评估", enName: "Radar", path: "/templates/template_finance_13.jpg", categoryId: "finance" },
  { id: "preset-finance-14", zhName: "投资决策检查清单", enName: "Checklist", path: "/templates/template_finance_14.jpg", categoryId: "finance" },
  { id: "preset-finance-15", zhName: "财务优化成功案例", enName: "Case Study", path: "/templates/template_finance_15.jpg", categoryId: "finance" },
  { id: "preset-medical-01", zhName: "健康数据看板", enName: "Dashboard", path: "/templates/template_medical_01.jpg", categoryId: "medical" },
  { id: "preset-medical-02", zhName: "诊疗流程时间轴", enName: "Timeline", path: "/templates/template_medical_02.jpg", categoryId: "medical" },
  { id: "preset-medical-03", zhName: "传统诊疗 对比 智慧医疗", enName: "Comparison", path: "/templates/template_medical_03.jpg", categoryId: "medical" },
  { id: "preset-medical-04", zhName: "医疗服务四大优势", enName: "Icon Grid", path: "/templates/template_medical_04.jpg", categoryId: "medical" },
  { id: "preset-medical-05", zhName: "诊疗关键数字", enName: "Big Numbers", path: "/templates/template_medical_05.jpg", categoryId: "medical" },
  { id: "preset-medical-06", zhName: "目录", enName: "Contents", path: "/templates/template_medical_06.jpg", categoryId: "medical" },
  { id: "preset-medical-07", zhName: "医护团队介绍", enName: "Team", path: "/templates/template_medical_07.jpg", categoryId: "medical" },
  { id: "preset-medical-08", zhName: "就诊流程五步法", enName: "Steps", path: "/templates/template_medical_08.jpg", categoryId: "medical" },
  { id: "preset-medical-09", zhName: "患者信息表格", enName: "Table", path: "/templates/template_medical_09.jpg", categoryId: "medical" },
  { id: "preset-medical-10", zhName: "病例区域分布", enName: "Map", path: "/templates/template_medical_10.jpg", categoryId: "medical" },
  { id: "preset-medical-11", zhName: "诊疗方案图文说明", enName: "Image+Text", path: "/templates/template_medical_11.jpg", categoryId: "medical" },
  { id: "preset-medical-12", zhName: "健康评估矩阵", enName: "Matrix", path: "/templates/template_medical_12.jpg", categoryId: "medical" },
  { id: "preset-medical-13", zhName: "健康指标雷达图", enName: "Radar", path: "/templates/template_medical_13.jpg", categoryId: "medical" },
  { id: "preset-medical-14", zhName: "诊前检查清单", enName: "Checklist", path: "/templates/template_medical_14.jpg", categoryId: "medical" },
  { id: "preset-medical-15", zhName: "康复治疗成功案例", enName: "Case Study", path: "/templates/template_medical_15.jpg", categoryId: "medical" },
  { id: "preset-culture-01", zhName: "文化活动数据展示", enName: "Dashboard", path: "/templates/template_culture_01.jpg", categoryId: "culture" },
  { id: "preset-culture-02", zhName: "艺术展览时间轴", enName: "Timeline", path: "/templates/template_culture_02.jpg", categoryId: "culture" },
  { id: "preset-culture-03", zhName: "传统文化 对比 现代演绎", enName: "Comparison", path: "/templates/template_culture_03.jpg", categoryId: "culture" },
  { id: "preset-culture-04", zhName: "文化传承四大亮点", enName: "Icon Grid", path: "/templates/template_culture_04.jpg", categoryId: "culture" },
  { id: "preset-culture-05", zhName: "展览关键数字", enName: "Big Numbers", path: "/templates/template_culture_05.jpg", categoryId: "culture" },
  { id: "preset-culture-06", zhName: "目录", enName: "Contents", path: "/templates/template_culture_06.jpg", categoryId: "culture" },
  { id: "preset-culture-07", zhName: "策展团队介绍", enName: "Team", path: "/templates/template_culture_07.jpg", categoryId: "culture" },
  { id: "preset-culture-08", zhName: "展览策划五步法", enName: "Steps", path: "/templates/template_culture_08.jpg", categoryId: "culture" },
  { id: "preset-culture-09", zhName: "展品清单表格", enName: "Table", path: "/templates/template_culture_09.jpg", categoryId: "culture" },
  { id: "preset-culture-10", zhName: "观众地域分布", enName: "Map", path: "/templates/template_culture_10.jpg", categoryId: "culture" },
  { id: "preset-culture-11", zhName: "艺术作品图文赏析", enName: "Image+Text", path: "/templates/template_culture_11.jpg", categoryId: "culture" },
  { id: "preset-culture-12", zhName: "文化影响力矩阵", enName: "Matrix", path: "/templates/template_culture_12.jpg", categoryId: "culture" },
  { id: "preset-culture-13", zhName: "艺术风格雷达评估", enName: "Radar", path: "/templates/template_culture_13.jpg", categoryId: "culture" },
  { id: "preset-culture-14", zhName: "展览筹备检查清单", enName: "Checklist", path: "/templates/template_culture_14.jpg", categoryId: "culture" },
  { id: "preset-culture-15", zhName: "经典文化案例赏析", enName: "Case Study", path: "/templates/template_culture_15.jpg", categoryId: "culture" },
  { id: "preset-nature-01", zhName: "环保数据看板", enName: "Dashboard", path: "/templates/template_nature_01.jpg", categoryId: "nature" },
  { id: "preset-nature-02", zhName: "生态治理时间轴", enName: "Timeline", path: "/templates/template_nature_02.jpg", categoryId: "nature" },
  { id: "preset-nature-03", zhName: "传统模式 对比 绿色发展", enName: "Comparison", path: "/templates/template_nature_03.jpg", categoryId: "nature" },
  { id: "preset-nature-04", zhName: "环保行动四大成果", enName: "Icon Grid", path: "/templates/template_nature_04.jpg", categoryId: "nature" },
  { id: "preset-nature-05", zhName: "减排关键数字", enName: "Big Numbers", path: "/templates/template_nature_05.jpg", categoryId: "nature" },
  { id: "preset-nature-06", zhName: "目录", enName: "Contents", path: "/templates/template_nature_06.jpg", categoryId: "nature" },
  { id: "preset-nature-07", zhName: "环保团队介绍", enName: "Team", path: "/templates/template_nature_07.jpg", categoryId: "nature" },
  { id: "preset-nature-08", zhName: "环保行动五步法", enName: "Steps", path: "/templates/template_nature_08.jpg", categoryId: "nature" },
  { id: "preset-nature-09", zhName: "资源消耗对比表", enName: "Table", path: "/templates/template_nature_09.jpg", categoryId: "nature" },
  { id: "preset-nature-10", zhName: "生态区域分布", enName: "Map", path: "/templates/template_nature_10.jpg", categoryId: "nature" },
  { id: "preset-nature-11", zhName: "生态修复图文说明", enName: "Image+Text", path: "/templates/template_nature_11.jpg", categoryId: "nature" },
  { id: "preset-nature-12", zhName: "可持续发展矩阵", enName: "Matrix", path: "/templates/template_nature_12.jpg", categoryId: "nature" },
  { id: "preset-nature-13", zhName: "生态健康雷达评估", enName: "Radar", path: "/templates/template_nature_13.jpg", categoryId: "nature" },
  { id: "preset-nature-14", zhName: "环保行动检查清单", enName: "Checklist", path: "/templates/template_nature_14.jpg", categoryId: "nature" },
  { id: "preset-nature-15", zhName: "生态修复成功案例", enName: "Case Study", path: "/templates/template_nature_15.jpg", categoryId: "nature" },
  { id: "preset-festival-01", zhName: "活动数据看板", enName: "Dashboard", path: "/templates/template_festival_01.jpg", categoryId: "festival" },
  { id: "preset-festival-02", zhName: "庆典筹备时间轴", enName: "Timeline", path: "/templates/template_festival_02.jpg", categoryId: "festival" },
  { id: "preset-festival-03", zhName: "往年庆典 对比 本届庆典", enName: "Comparison", path: "/templates/template_festival_03.jpg", categoryId: "festival" },
  { id: "preset-festival-04", zhName: "庆典四大亮点", enName: "Icon Grid", path: "/templates/template_festival_04.jpg", categoryId: "festival" },
  { id: "preset-festival-05", zhName: "活动关键数字", enName: "Big Numbers", path: "/templates/template_festival_05.jpg", categoryId: "festival" },
  { id: "preset-festival-06", zhName: "目录", enName: "Contents", path: "/templates/template_festival_06.jpg", categoryId: "festival" },
  { id: "preset-festival-07", zhName: "活动筹备团队", enName: "Team", path: "/templates/template_festival_07.jpg", categoryId: "festival" },
  { id: "preset-festival-08", zhName: "庆典活动五步法", enName: "Steps", path: "/templates/template_festival_08.jpg", categoryId: "festival" },
  { id: "preset-festival-09", zhName: "活动日程表", enName: "Table", path: "/templates/template_festival_09.jpg", categoryId: "festival" },
  { id: "preset-festival-10", zhName: "参与人群分布", enName: "Map", path: "/templates/template_festival_10.jpg", categoryId: "festival" },
  { id: "preset-festival-11", zhName: "庆典亮点图文展示", enName: "Image+Text", path: "/templates/template_festival_11.jpg", categoryId: "festival" },
  { id: "preset-festival-12", zhName: "活动效果矩阵分析", enName: "Matrix", path: "/templates/template_festival_12.jpg", categoryId: "festival" },
  { id: "preset-festival-13", zhName: "活动满意度雷达图", enName: "Radar", path: "/templates/template_festival_13.jpg", categoryId: "festival" },
  { id: "preset-festival-14", zhName: "庆典筹备检查清单", enName: "Checklist", path: "/templates/template_festival_14.jpg", categoryId: "festival" },
  { id: "preset-festival-15", zhName: "往届庆典精彩案例", enName: "Case Study", path: "/templates/template_festival_15.jpg", categoryId: "festival" },
  { id: "preset-resume-01", zhName: "个人能力数据展示", enName: "Dashboard", path: "/templates/template_resume_01.jpg", categoryId: "resume" },
  { id: "preset-resume-02", zhName: "职业经历时间轴", enName: "Timeline", path: "/templates/template_resume_02.jpg", categoryId: "resume" },
  { id: "preset-resume-03", zhName: "过往经验 对比 未来规划", enName: "Comparison", path: "/templates/template_resume_03.jpg", categoryId: "resume" },
  { id: "preset-resume-04", zhName: "核心技能四宫格", enName: "Icon Grid", path: "/templates/template_resume_04.jpg", categoryId: "resume" },
  { id: "preset-resume-05", zhName: "个人成就关键数字", enName: "Big Numbers", path: "/templates/template_resume_05.jpg", categoryId: "resume" },
  { id: "preset-resume-06", zhName: "目录", enName: "Contents", path: "/templates/template_resume_06.jpg", categoryId: "resume" },
  { id: "preset-resume-07", zhName: "项目团队经历", enName: "Team", path: "/templates/template_resume_07.jpg", categoryId: "resume" },
  { id: "preset-resume-08", zhName: "求职规划五步法", enName: "Steps", path: "/templates/template_resume_08.jpg", categoryId: "resume" },
  { id: "preset-resume-09", zhName: "教育背景表格", enName: "Table", path: "/templates/template_resume_09.jpg", categoryId: "resume" },
  { id: "preset-resume-10", zhName: "实习经历分布", enName: "Map", path: "/templates/template_resume_10.jpg", categoryId: "resume" },
  { id: "preset-resume-11", zhName: "项目经验图文展示", enName: "Image+Text", path: "/templates/template_resume_11.jpg", categoryId: "resume" },
  { id: "preset-resume-12", zhName: "能力素质矩阵", enName: "Matrix", path: "/templates/template_resume_12.jpg", categoryId: "resume" },
  { id: "preset-resume-13", zhName: "综合能力雷达图", enName: "Radar", path: "/templates/template_resume_13.jpg", categoryId: "resume" },
  { id: "preset-resume-14", zhName: "求职准备清单", enName: "Checklist", path: "/templates/template_resume_14.jpg", categoryId: "resume" },
  { id: "preset-resume-15", zhName: "项目实践案例展示", enName: "Case Study", path: "/templates/template_resume_15.jpg", categoryId: "resume" },
  { id: "preset-other-01", zhName: "通用数据看板", enName: "Dashboard", path: "/templates/template_other_01.jpg", categoryId: "other" },
  { id: "preset-other-02", zhName: "通用项目时间轴", enName: "Timeline", path: "/templates/template_other_02.jpg", categoryId: "other" },
  { id: "preset-other-03", zhName: "方案A 对比 方案B", enName: "Comparison", path: "/templates/template_other_03.jpg", categoryId: "other" },
  { id: "preset-other-04", zhName: "核心亮点四宫格", enName: "Icon Grid", path: "/templates/template_other_04.jpg", categoryId: "other" },
  { id: "preset-other-05", zhName: "关键成果数字", enName: "Big Numbers", path: "/templates/template_other_05.jpg", categoryId: "other" },
  { id: "preset-other-06", zhName: "目录", enName: "Contents", path: "/templates/template_other_06.jpg", categoryId: "other" },
  { id: "preset-other-07", zhName: "项目团队介绍", enName: "Team", path: "/templates/template_other_07.jpg", categoryId: "other" },
  { id: "preset-other-08", zhName: "实施方案五步法", enName: "Steps", path: "/templates/template_other_08.jpg", categoryId: "other" },
  { id: "preset-other-09", zhName: "数据统计表格", enName: "Table", path: "/templates/template_other_09.jpg", categoryId: "other" },
  { id: "preset-other-10", zhName: "区域分布示意", enName: "Map", path: "/templates/template_other_10.jpg", categoryId: "other" },
  { id: "preset-other-11", zhName: "方案图文说明", enName: "Image+Text", path: "/templates/template_other_11.jpg", categoryId: "other" },
  { id: "preset-other-12", zhName: "综合评估矩阵", enName: "Matrix", path: "/templates/template_other_12.jpg", categoryId: "other" },
  { id: "preset-other-13", zhName: "综合能力雷达图", enName: "Radar", path: "/templates/template_other_13.jpg", categoryId: "other" },
  { id: "preset-other-14", zhName: "实施检查清单", enName: "Checklist", path: "/templates/template_other_14.jpg", categoryId: "other" },
  { id: "preset-other-15", zhName: "典型应用案例", enName: "Case Study", path: "/templates/template_other_15.jpg", categoryId: "other" },
];

/** Fan-out limits: the provider rejects larger bursts of per-slide calls. */
export const MODEL_CONCURRENCY = 5;
export const BEAUTIFY_CONCURRENCY = 5;
export const EDITABLE_EXPORT_CONCURRENCY = 3;
/**
 * Pictures one chat message may carry into slide generation.
 *
 * Kept below the generation ceiling so a slide's own materials and the deck
 * template still fit alongside them.
 */
export const UPLOADED_IMAGE_LIMIT = 3;
export const EDITABLE_REVIEW_CONCURRENCY = 4;
export const BEAUTIFY_RETRY_MAX_ATTEMPTS = 3;
export const BEAUTIFY_RETRY_BASE_DELAY_MS = 1200;