"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;
