import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from 'vue';

"use strict";
const __default__ = defineComponent({
  name: "me-flex-box"
});
var script = /* @__PURE__ */ defineComponent({
  ...__default__,
  props: {
    row: { type: Boolean, required: false, default: false },
    column: { type: Boolean, required: false, default: false },
    auto: { type: Boolean, required: false, default: false },
    end: { type: Boolean, required: false, default: false },
    scrollbar: { type: Boolean, required: false, default: false }
  },
  setup(__props) {
    const props = __props;
    const style = computed(() => {
      let data = {
        boxSizing: "border-box"
      };
      if (props.row) {
        data.flexDirection = "row";
      }
      if (props.column) {
        data.flexDirection = "column";
      }
      if (props.end) {
        data.justifyContent = "flex-end";
      }
      data.display = "flex";
      if (props.auto) {
        data.flex = 1;
      }
      return data;
    });
    return (_ctx, _cache) => {
      return openBlock(), createElementBlock(
        "div",
        {
          style: normalizeStyle(style.value),
          class: normalizeClass(["me-flex-box", { "me-div-scroller": props.scrollbar }])
        },
        [
          renderSlot(_ctx.$slots, "default")
        ],
        6
        /* CLASS, STYLE */
      );
    };
  }
});

export { script as default };
//# sourceMappingURL=flex-box.vue2.mjs.map
