import "../../../../../node_modules/element-plus/es/index.mjs";
/* empty css                                                             */
/* empty css                                                                     */
import { computed, createBlock, openBlock, withCtx, resolveDynamicComponent, unref } from "vue";
import { getCurrentItem } from "../../utils/common.mjs";
import widgets from "./widgets.vue.mjs";
import _sfc_main$3 from "./optBtn.vue.mjs";
import _sfc_main$2 from "./customBtn.vue.mjs";
import _sfc_main$1 from "./filterWidgets.vue.mjs";
import { ElScrollbar } from "../../../../../node_modules/element-plus/es/components/scrollbar/index.mjs";
const _sfc_main = {
  __name: "index",
  setup(__props) {
    const currentItem = computed(() => {
      return getCurrentItem();
    });
    const editingProperty = computed(() => {
      var _a;
      switch ((_a = currentItem.value) == null ? void 0 : _a.type) {
        case "widgets":
          return widgets;
        case "optBtn":
          return _sfc_main$3;
        case "customBtn":
          return _sfc_main$2;
        case "filterWidgets":
          return _sfc_main$1;
      }
      return null;
    });
    return (_ctx, _cache) => {
      const _component_el_scrollbar = ElScrollbar;
      return openBlock(), createBlock(_component_el_scrollbar, null, {
        default: withCtx(() => [
          (openBlock(), createBlock(resolveDynamicComponent(unref(editingProperty))))
        ]),
        _: 1
      });
    };
  }
};
export {
  _sfc_main as default
};
