"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const index = require("../../../hooks/use-namespace/index.js");
const Vue = require("vue");
var container_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Vue.defineComponent({
  name: "ElContainer",
  __name: "container",
  props: { direction: {
    type: String,
    required: false
  } },
  setup(__props) {
    const props = __props;
    const slots = Vue.useSlots();
    const ns = index.useNamespace("container");
    const isVertical = Vue.computed(() => {
      if (props.direction === "vertical") return true;
      else if (props.direction === "horizontal") return false;
      if (slots && slots.default) return slots.default().some((vNode) => {
        const tag = vNode.type.name;
        return tag === "ElHeader" || tag === "ElFooter";
      });
      else return false;
    });
    return (_ctx, _cache) => {
      return Vue.openBlock(), Vue.createElementBlock("section", { class: Vue.normalizeClass([Vue.unref(ns).b(), Vue.unref(ns).is("vertical", isVertical.value)]) }, [Vue.renderSlot(_ctx.$slots, "default")], 2);
    };
  }
});
exports.default = container_vue_vue_type_script_setup_true_lang_default;
