"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const descriptionsRow = require("./descriptions-row.js");
const token = require("./token.js");
const descriptionsCell = require("./descriptions-cell.js");
const vue = require("vue");
const _hoisted_1 = { key: 1 };
var descriptions_row_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue.defineComponent({
  name: "ElDescriptionsRow",
  __name: "descriptions-row",
  props: descriptionsRow.descriptionsRowProps,
  setup(__props) {
    const descriptions = vue.inject(token.descriptionsKey, {});
    return (_ctx, _cache) => {
      return vue.unref(descriptions).direction === "vertical" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [vue.createElementVNode("tr", null, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.row, (cell, _index) => {
        return vue.openBlock(), vue.createBlock(vue.unref(descriptionsCell.default), {
          key: `tr1-${_index}`,
          cell,
          tag: "th",
          type: "label"
        }, null, 8, ["cell"]);
      }), 128))]), vue.createElementVNode("tr", null, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.row, (cell, _index) => {
        return vue.openBlock(), vue.createBlock(vue.unref(descriptionsCell.default), {
          key: `tr2-${_index}`,
          cell,
          tag: "td",
          type: "content"
        }, null, 8, ["cell"]);
      }), 128))])], 64)) : (vue.openBlock(), vue.createElementBlock("tr", _hoisted_1, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.row, (cell, _index) => {
        return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: `tr3-${_index}` }, [vue.unref(descriptions).border ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [vue.createVNode(vue.unref(descriptionsCell.default), {
          cell,
          tag: "td",
          type: "label"
        }, null, 8, ["cell"]), vue.createVNode(vue.unref(descriptionsCell.default), {
          cell,
          tag: "td",
          type: "content"
        }, null, 8, ["cell"])], 64)) : (vue.openBlock(), vue.createBlock(vue.unref(descriptionsCell.default), {
          key: 1,
          cell,
          tag: "td",
          type: "both"
        }, null, 8, ["cell"]))], 64);
      }), 128))]));
    };
  }
});
exports.default = descriptions_row_vue_vue_type_script_setup_true_lang_default;
