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