import { watch as t } from "vue";
import { cloneDeep as u, isEqual as m } from "lodash";
const f = (e, r, c, n) => {
  t(() => e.sources, () => {
    e.sources && e.sources.length > 0 && r(e.option);
  }, {
    deep: !0
  }), t(() => u(e.option), (o, i) => {
    m(o, i) || c(o);
  }, {
    deep: !0
  });
};
export {
  f as useCommonChart
};
