"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
const tree_vue_vue_type_script_lang = require("./tree.vue_vue_type_script_lang.js");
const Vue = require("vue");
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  const _component_el_tree_node = Vue.resolveComponent("el-tree-node");
  return Vue.openBlock(), Vue.createElementBlock("div", {
    ref: "el$",
    class: Vue.normalizeClass([
      _ctx.ns.b(),
      _ctx.ns.is("dragging", !!_ctx.dragState.draggingNode),
      _ctx.ns.is("drop-not-allow", !_ctx.dragState.allowDrop),
      _ctx.ns.is("drop-inner", _ctx.dragState.dropType === "inner"),
      { [_ctx.ns.m("highlight-current")]: _ctx.highlightCurrent }
    ]),
    role: "tree"
  }, [
    (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(_ctx.root.childNodes, (child) => {
      return Vue.openBlock(), Vue.createBlock(_component_el_tree_node, {
        key: _ctx.getNodeKey(child),
        node: child,
        props: _ctx.props,
        accordion: _ctx.accordion,
        "render-after-expand": _ctx.renderAfterExpand,
        "show-checkbox": _ctx.showCheckbox,
        "render-content": _ctx.renderContent,
        onNodeExpand: _ctx.handleNodeExpand
      }, null, 8, [
        "node",
        "props",
        "accordion",
        "render-after-expand",
        "show-checkbox",
        "render-content",
        "onNodeExpand"
      ]);
    }), 128)),
    _ctx.isEmpty ? (Vue.openBlock(), Vue.createElementBlock("div", {
      key: 0,
      class: Vue.normalizeClass(_ctx.ns.e("empty-block"))
    }, [Vue.renderSlot(_ctx.$slots, "empty", {}, () => [Vue.createElementVNode("span", { class: Vue.normalizeClass(_ctx.ns.e("empty-text")) }, Vue.toDisplayString(_ctx.emptyText ?? _ctx.t("el.tree.emptyText")), 3)])], 2)) : Vue.createCommentVNode("v-if", true),
    Vue.withDirectives(Vue.createElementVNode("div", {
      ref: "dropIndicator$",
      class: Vue.normalizeClass(_ctx.ns.e("drop-indicator"))
    }, null, 2), [[Vue.vShow, _ctx.dragState.showDropIndicator]])
  ], 2);
}
var tree_default = /* @__PURE__ */ _pluginVue_exportHelper.default(tree_vue_vue_type_script_lang.default, [["render", _sfc_render]]);
exports.default = tree_default;
