'use strict';

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

var vue = require('vue');

"use strict";
const __default__ = vue.defineComponent({
  name: "me-flex-box"
});
var script = /* @__PURE__ */ vue.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 = vue.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 vue.openBlock(), vue.createElementBlock(
        "div",
        {
          style: vue.normalizeStyle(style.value),
          class: vue.normalizeClass(["me-flex-box", { "me-div-scroller": props.scrollbar }])
        },
        [
          vue.renderSlot(_ctx.$slots, "default")
        ],
        6
        /* CLASS, STYLE */
      );
    };
  }
});

exports.default = script;
//# sourceMappingURL=flex-box.vue2.js.map
