var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __publicField = (obj, key, value) => {
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
  return value;
};
import { echartOptionProfixHandle } from "../../../../public/chart.mjs";
import { PublicConfigClass } from "../../../../public/publicConfig.mjs";
import { SankeyConfig } from "./index.mjs";
import cloneDeep from "../../../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/cloneDeep.mjs";
import dataJson from "./data.json.mjs";
const includes = ["legend"];
const orientList = [
  { label: "水平", value: "horizontal" },
  { label: "垂直", value: "vertical" }
];
const toolTipSwitch = [
  { label: "开启", value: 1 },
  { label: "关闭", value: 0 }
];
const option = {
  dataset: { ...dataJson },
  tooltip: {
    show: 1,
    trigger: "item",
    triggerOn: "mousemove"
  },
  series: {
    type: "sankey",
    layout: "none",
    orient: "horizontal",
    data: dataJson.label,
    links: dataJson.links,
    levels: dataJson.levels
  }
};
class Config extends PublicConfigClass {
  constructor() {
    super(...arguments);
    __publicField(this, "key", SankeyConfig.key);
    __publicField(this, "chartConfig", cloneDeep(SankeyConfig));
    // 图表配置项
    __publicField(this, "option", echartOptionProfixHandle(option, includes));
  }
}
export {
  Config as default,
  includes,
  option,
  orientList,
  toolTipSwitch
};
