"use strict";

exports.__esModule = true;
exports.NestedTableGhostRowUniDriver = NestedTableGhostRowUniDriver;
var _unidriver = require("@wix/wix-ui-test-utils/unidriver");
var _getUniDriverStyle = require("../../test-utils/getUniDriverStyle");
function NestedTableGhostRowUniDriver(base, _body) {
  return {
    ...(0, _unidriver.baseUniDriverFactory)(base),
    getIndentationCellDepth: async () => {
      const width = Number((await (0, _getUniDriverStyle.getUniDriverStyle)(base)).width.split('px')[0]);
      const indentationWidth = Number(await base.attr('data-indentation-width'));
      const parentCellPaddingStart = Number(await base.attr('data-parent-cell-padding-start'));
      const widthWithoutPaddingOrZero = Math.max(0, width - parentCellPaddingStart);
      return widthWithoutPaddingOrZero / indentationWidth;
    }
  };
}
//# sourceMappingURL=NestedTableGhostRow.uni.driver.js.map