import { cloneDeep as s } from "lodash";
const o = "2.0.0", l = (t) => {
  const e = s(t);
  return e.version !== o ? {
    style: {
      header: {
        borderBottomColor: e.css.header.borderBottomColor,
        borderBottomStyle: e.css.header.borderBottomStyle,
        borderBottomWidth: 1,
        background: e.css.header.background,
        show: e.css.header.show,
        height: e.css.header.height,
        textStyle: {
          fontFamily: e.css.header.fontFamily,
          fontSize: e.css.header.fontSize,
          fontStyle: e.css.header.fontStyle,
          fontWeight: e.css.header.fontWeight,
          color: e.css.header.color,
          alignItems: "center",
          justifyContent: "flex-start",
          "-webkit-text-stroke-color": "#ffffff",
          "-webkit-text-stroke-width": 0,
          letterSpacing: 1,
          lineHeight: 1,
          textShadow: {
            color: "#000000",
            show: !1,
            x: 0,
            y: 0,
            value: 0
          },
          textOverflow: {
            enable: !1,
            displayLines: 1
          }
        }
      },
      body: {
        background: e.css.body.background,
        height: e.css.body.height,
        textStyle: {
          fontFamily: e.css.body.fontFamily,
          fontSize: e.css.body.fontSize,
          fontStyle: e.css.body.fontStyle,
          fontWeight: e.css.body.fontWeight,
          alignItems: "center",
          color: e.css.body.color,
          justifyContent: "flex-start",
          "-webkit-text-stroke-color": "#ffffff",
          "-webkit-text-stroke-width": 0,
          letterSpacing: 1,
          lineHeight: 1,
          textShadow: {
            color: "#000000",
            show: !1,
            x: 0,
            y: 0,
            value: 0
          },
          textOverflow: {
            enable: !1,
            displayLines: 1
          }
        }
      },
      table: {
        borderColor: e.css.table.borderColor,
        alignItems: e.css.table.alignItems,
        borderWidth: e.css.table.borderWidth,
        borderStyle: e.css.table.borderStyle,
        paddingLeft: e.css.table.paddingLeft,
        justifyContent: e.css.table.justifyContent
      },
      hoverColor: e.css.hoverColor,
      oddBackground: e.css.oddBackground
    },
    scroll: e.scroll,
    version: o
  } : t;
};
export {
  o as VERSION,
  l as upgradeTableScroll
};
