"use strict";

exports.__esModule = true;
exports.NestedTableRowUniDriver = NestedTableRowUniDriver;
var _unidriver = require("@wix/wix-ui-test-utils/unidriver");
var _NestedTableParentCellUni = require("./NestedTableParentCell.uni.driver");
function NestedTableRowUniDriver(base, body) {
  const getMainColumn = () => (0, _NestedTableParentCellUni.NestedTableParentCellUniDriver)(base.$('td[data-hook="nested-mode-main-column"]'), body);
  return {
    ...(0, _unidriver.baseUniDriverFactory)(base),
    getMainColumn,
    isExpanded: () => getMainColumn().getExpandCollapseButton().isExpanded(),
    clickExpandToggleButton: () => getMainColumn().getExpandCollapseButton().click(),
    getVirtualDirectChildrenCount: async () => Number(await base.attr('data-virtual-direct-children-count')),
    getLevel: async () => Number(await base.attr('data-level')),
    getIndentationWidth: async () => Number(await base.attr('data-indentation-width')),
    isExpandable: () => getMainColumn().getExpandCollapseButton().exists(),
    getKey: async () => {
      const dataHookAttr = await base.attr('data-hook');
      return dataHookAttr == null ? void 0 : dataHookAttr.split('table-row-')[1];
    }
  };
}
//# sourceMappingURL=NestedTableRow.uni.driver.js.map