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