"use strict";
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;
};
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const chart = require("../../../../public/chart.js");
const publicConfig = require("../../../../public/publicConfig.js");
const index = require("./index.js");
const cloneDeep = require("../../../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/cloneDeep.js");
const data = require("./data.json.js");
const includes = ["legend"];
const orientList = [
  { label: "水平", value: "horizontal" },
  { label: "垂直", value: "vertical" }
];
const toolTipSwitch = [
  { label: "开启", value: 1 },
  { label: "关闭", value: 0 }
];
const option = {
  dataset: { ...data.default },
  tooltip: {
    show: 1,
    trigger: "item",
    triggerOn: "mousemove"
  },
  series: {
    type: "sankey",
    layout: "none",
    orient: "horizontal",
    data: data.default.label,
    links: data.default.links,
    levels: data.default.levels
  }
};
class Config extends publicConfig.PublicConfigClass {
  constructor() {
    super(...arguments);
    __publicField(this, "key", index.SankeyConfig.key);
    __publicField(this, "chartConfig", cloneDeep.default(index.SankeyConfig));
    // 图表配置项
    __publicField(this, "option", chart.echartOptionProfixHandle(option, includes));
  }
}
exports.default = Config;
exports.includes = includes;
exports.option = option;
exports.orientList = orientList;
exports.toolTipSwitch = toolTipSwitch;
