'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var vue = require('vue');
require('../../../../utils/index.js');
require('../config/index.js');
var createNamespace = require('../../../../utils/create-namespace.js');
var directoryTitle = require('../config/directory-title.js');

"use strict";
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
  ...{ name: "LlTreeSelectDirectoryTitle" },
  __name: "directory-title",
  props: directoryTitle.treeSelectDirectoryTitleProps,
  emits: directoryTitle.treeSelectDirectoryTitleEmits,
  setup(__props, { emit: __emit }) {
    const emits = __emit;
    const bem = createNamespace.createNamespace("tree-search");
    return (_ctx, _cache) => {
      const _component_ll_icon = vue.resolveComponent("ll-icon");
      const _component_ll_button = vue.resolveComponent("ll-button");
      const _component_ll_tooltip = vue.resolveComponent("ll-tooltip");
      return vue.openBlock(), vue.createElementBlock(
        "div",
        {
          class: vue.normalizeClass(vue.unref(bem).e("directory-title"))
        },
        [
          vue.createElementVNode(
            "div",
            {
              class: vue.normalizeClass(vue.unref(bem).e("directory-title-container"))
            },
            [
              vue.createVNode(_component_ll_icon, {
                class: vue.normalizeClass(vue.unref(bem).e("directory-icon")),
                "icon-name": "icon-list"
              }, null, 8, ["class"]),
              vue.createElementVNode(
                "span",
                {
                  class: vue.normalizeClass(vue.unref(bem).e("directory-text"))
                },
                [
                  vue.renderSlot(_ctx.$slots, "title", {}, () => [
                    _cache[1] || (_cache[1] = vue.createTextVNode(
                      "\u76EE\u5F55",
                      -1
                      /* CACHED */
                    ))
                  ])
                ],
                2
                /* CLASS */
              )
            ],
            2
            /* CLASS */
          ),
          vue.createCommentVNode(" \u5C55\u5F00/\u6536\u8D77 "),
          vue.createVNode(_component_ll_tooltip, {
            placement: "bottom",
            tip: _ctx.isCollapseMenu ? "\u5168\u90E8\u6536\u8D77" : "\u5168\u90E8\u5C55\u5F00"
          }, {
            title: vue.withCtx(() => [
              vue.createElementVNode(
                "span",
                null,
                vue.toDisplayString(_ctx.isCollapseMenu ? "\u5168\u90E8\u6536\u8D77" : "\u5168\u90E8\u5C55\u5F00"),
                1
                /* TEXT */
              )
            ]),
            default: vue.withCtx(() => [
              vue.createVNode(_component_ll_button, {
                type: "text",
                class: vue.normalizeClass(vue.unref(bem).e("directory-button")),
                onClick: _cache[0] || (_cache[0] = ($event) => emits("collapseMenu"))
              }, {
                default: vue.withCtx(() => [
                  _ctx.isCollapseMenu ? (vue.openBlock(), vue.createBlock(_component_ll_icon, {
                    key: 0,
                    class: vue.normalizeClass(vue.unref(bem).e("directory-icon")),
                    "icon-name": "icon-expand"
                  }, null, 8, ["class"])) : (vue.openBlock(), vue.createBlock(_component_ll_icon, {
                    key: 1,
                    class: vue.normalizeClass(vue.unref(bem).e("directory-icon")),
                    "icon-name": "icon-collapse"
                  }, null, 8, ["class"]))
                ]),
                _: 1
                /* STABLE */
              }, 8, ["class"])
            ]),
            _: 1
            /* STABLE */
          }, 8, ["tip"])
        ],
        2
        /* CLASS */
      );
    };
  }
});

exports.default = _sfc_main;
//# sourceMappingURL=directory-title.vue2.js.map
