import { n as e, F as a, z as n, x as d, B as l } from "./index-e250a75e.mjs";
import "vue";
const c = {
  key: "_dialog",
  name: e("_.builtIn.element.dialog.name"),
  description: "",
  icon: "mdiDockWindow",
  sequence: 31,
  transform: function({ config: o, context: s }) {
    if (s.mode.value == "edit") {
      const t = a("el-card", { config: o }), i = n(o, "footer");
      return i.style = { "text-align": "right" }, t["#footer"] = i, t.header = (t.title || "No title") + e("_.builtIn.element.dialog.prompt"), t.style = {
        position: "absolute",
        top: "10%",
        // right: '25%',
        // bottom: '20%',
        left: "15%",
        width: o.width || "50%",
        overflow: "auto",
        "z-index": 999
      }, t;
    } else {
      const t = a("el-dialog", { config: o });
      return t["#footer"] = n(o, "footer"), t;
    }
  },
  editor: {
    basic: {
      ui: [
        d("title", e("_.builtIn.element.dialog.title")),
        d("width", e("_.builtIn.element.dialog.width")),
        l("modal", e("_.builtIn.element.dialog.modal")),
        l("close-on-click-modal", e("_.builtIn.element.dialog.closeOnClick")),
        l("close-on-press-escape", e("_.builtIn.element.dialog.closeOnEscape")),
        l("show-close", e("_.builtIn.element.dialog.showClose")),
        l("append-to-body", e("_.builtIn.element.dialog.appendToBody")),
        l("destroy-on-close", e("_.builtIn.element.dialog.destroyOnClose")),
        l("fullscreen", e("_.builtIn.element.dialog.fullscreen")),
        l("draggable", e("_.builtIn.element.dialog.draggable")),
        l("center", e("_.builtIn.element.dialog.center"))
      ],
      init: {
        title: "Dialog default title",
        width: "50%",
        modal: !1,
        "close-on-click-modal": !1,
        "close-on-press-escape": !1,
        "show-close": !0,
        "append-to-body": !1,
        "destroy-on-close": !1,
        fullscreen: !1,
        draggable: !0,
        center: !1
      }
    },
    data: {
      type: "Boolean",
      init: {
        mode: "fixed",
        dataContent: "true"
      }
    },
    display: {}
  }
};
export {
  c as default
};
