export const MAP_SKELETON_VARIANTS = [
  "network-simulation",
  "scada-data-cleaning",
  "health-risk-analysis",
  "monitoring-place-optimization",
  "burst-detection",
  "burst-location",
  "burst-simulation",
  "contaminant-simulation",
  "dma-leak-detection",
  "flushing-analysis",
] as const;

export type MapSkeletonVariant = (typeof MAP_SKELETON_VARIANTS)[number];

export interface MapSkeletonConfig {
  title: string;
  panelTitle: string;
  side: "left" | "right";
  panelWidth: number;
  panelTop: number;
  panelMaxHeight: number;
  tabLabels: readonly string[];
}

export const MAP_SKELETON_CONFIGS: Record<
  MapSkeletonVariant,
  MapSkeletonConfig
> = {
  "network-simulation": {
    title: "管网模拟",
    panelTitle: "SCADA 设备列表",
    side: "left",
    panelWidth: 360,
    panelTop: 80,
    panelMaxHeight: 860,
    tabLabels: [],
  },
  "scada-data-cleaning": {
    title: "数据清洗",
    panelTitle: "SCADA 设备列表",
    side: "left",
    panelWidth: 360,
    panelTop: 80,
    panelMaxHeight: 860,
    tabLabels: [],
  },
  "health-risk-analysis": {
    title: "健康风险分析",
    panelTitle: "管道健康风险统计",
    side: "right",
    panelWidth: 640,
    panelTop: 16,
    panelMaxHeight: 614,
    tabLabels: [],
  },
  "monitoring-place-optimization": {
    title: "监测点优化",
    panelTitle: "监测点优化",
    side: "right",
    panelWidth: 520,
    panelTop: 16,
    panelMaxHeight: 850,
    tabLabels: ["优化要件", "结果编辑", "方案查询"],
  },
  "burst-detection": {
    title: "爆管侦测",
    panelTitle: "爆管侦测",
    side: "right",
    panelWidth: 450,
    panelTop: 16,
    panelMaxHeight: 850,
    tabLabels: ["侦测参数", "方案查询", "侦测结果"],
  },
  "burst-location": {
    title: "爆管定位",
    panelTitle: "爆管定位",
    side: "right",
    panelWidth: 450,
    panelTop: 16,
    panelMaxHeight: 850,
    tabLabels: ["定位参数", "方案查询", "定位结果"],
  },
  "burst-simulation": {
    title: "爆管分析",
    panelTitle: "爆管分析",
    side: "right",
    panelWidth: 520,
    panelTop: 16,
    panelMaxHeight: 850,
    tabLabels: ["分析要件", "方案查询", "分析报告", "关阀分析"],
  },
  "contaminant-simulation": {
    title: "水质模拟",
    panelTitle: "水质模拟",
    side: "right",
    panelWidth: 520,
    panelTop: 16,
    panelMaxHeight: 850,
    tabLabels: ["分析要件", "方案查询", "模拟结果"],
  },
  "dma-leak-detection": {
    title: "DMA 漏损识别",
    panelTitle: "DMA 漏损识别",
    side: "right",
    panelWidth: 450,
    panelTop: 16,
    panelMaxHeight: 850,
    tabLabels: ["识别参数", "方案查询", "识别结果"],
  },
  "flushing-analysis": {
    title: "管道冲洗分析",
    panelTitle: "管道冲洗分析",
    side: "right",
    panelWidth: 450,
    panelTop: 16,
    panelMaxHeight: 850,
    tabLabels: ["分析参数", "方案查询"],
  },
};
