"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const index = require("../../../hooks/use-namespace/index.js");
const row = require("./row.js");
const constants = require("./constants.js");
const vue = require("vue");
var row_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue.defineComponent({
  name: "ElRow",
  __name: "row",
  props: row.rowProps,
  setup(__props) {
    const props = __props;
    const ns = index.useNamespace("row");
    vue.provide(constants.rowContextKey, { gutter: vue.computed(() => props.gutter) });
    const style = vue.computed(() => {
      const styles = {};
      if (!props.gutter) return styles;
      styles.marginRight = styles.marginLeft = `-${props.gutter / 2}px`;
      return styles;
    });
    const rowKls = vue.computed(() => [
      ns.b(),
      ns.is(`justify-${props.justify}`, props.justify !== "start"),
      ns.is(`align-${props.align}`, !!props.align)
    ]);
    return (_ctx, _cache) => {
      return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(__props.tag), {
        class: vue.normalizeClass(rowKls.value),
        style: vue.normalizeStyle(style.value)
      }, {
        default: vue.withCtx(() => [vue.renderSlot(_ctx.$slots, "default")]),
        _: 3
      }, 8, ["class", "style"]);
    };
  }
});
exports.default = row_vue_vue_type_script_setup_true_lang_default;
