import { VxeUI } from "../../../@vxe-ui/core/es/index.esm.mjs";
import VxeWatermarkComponent from "./src/watermark.mjs";
import { dynamicApp, dynamicStore, checkDynamic } from "../dynamics/index.mjs";
const VxeWatermark = Object.assign({}, VxeWatermarkComponent, {
  install(app) {
    app.component(VxeWatermarkComponent.name, VxeWatermarkComponent);
  }
});
dynamicApp.use(VxeWatermark);
VxeUI.component(VxeWatermarkComponent);
const WatermarkController = {
  load(options) {
    checkDynamic();
    dynamicStore.globalWatermark = Object.assign({}, options);
    return Promise.resolve();
  },
  clear() {
    dynamicStore.globalWatermark = null;
    return Promise.resolve();
  }
};
VxeUI.watermark = WatermarkController;
const Watermark = VxeWatermark;
export {
  VxeWatermark,
  Watermark,
  WatermarkController,
  VxeWatermark as default
};
