'use strict';

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

const index = require('./index-47da0942.js');

const tableBodyCss = ".sc-bds-table-body-h{display:table-row-group;height:64px}.multiple.sc-bds-table-body-h{border-bottom:1px solid var(--color-border-2, #e0e0e0)}.sc-bds-table-body-h:last-child{border-bottom:none}";

const TableBody = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
    this.multipleRows = false;
  }
  componentWillLoad() {
    const bdsTable = this.element.closest('bds-table');
    if (bdsTable && (bdsTable.getAttribute('collapse') === 'true' || bdsTable.collapse === true)) {
      this.multipleRows = true;
    }
  }
  render() {
    return (index.h(index.Host, { class: { host: true, multiple: this.multipleRows } }, index.h("slot", null)));
  }
  get element() { return index.getElement(this); }
};
TableBody.style = tableBodyCss;

exports.bds_table_body = TableBody;
