import "../../../../../../../node_modules/.pnpm/vue@3.3.4/node_modules/vue/dist/vue.runtime.esm-bundler.mjs";
import "../../../../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.mjs";
import "../../../../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.mjs";
import { useChartEditStore } from "../../../../../../store/modules/chartEditStore/chartEditStore.mjs";
import { useSync } from "../../../../hooks/useSync.hook.mjs";
import "../../../../../../enums/pageEnum.mjs";
import { SavePageEnum } from "../../../../../../enums/editPageEnum.mjs";
import "../../../../../../../node_modules/.pnpm/screenfull@6.0.2/node_modules/screenfull/index.mjs";
import "../../../../../../../node_modules/.pnpm/html2canvas@1.4.1/node_modules/html2canvas/dist/html2canvas.esm.mjs";
import "../../../../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseClone.mjs";
import "../../../../../../../node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/index.mjs";
import "../../../../../../router/index.mjs";
import "../../../../../../store/modules/designStore/designStore.mjs";
import { goDialog } from "../../../../../../utils/plugin.mjs";
import "../../../../../../components/GoLoading/index.mjs";
useSync();
const chartEditStore = useChartEditStore();
const syncData = () => {
  goDialog({
    message: "是否覆盖源视图内容，此操作不可撤回?",
    isMaskClosable: true,
    transformOrigin: "center",
    onPositiveCallback: () => {
      window["$message"].success("正在同步编辑器...");
      dispatchEvent(new CustomEvent(SavePageEnum.CHART, { detail: chartEditStore.getStorageInfo }));
    }
  });
};
export {
  syncData
};
