"use strict";

exports.__esModule = true;
exports.NestedTableParentCellUniDriver = NestedTableParentCellUniDriver;
var _unidriver = require("../../unidriver");
var _ExpandCollapseButtonUni = require("./ExpandCollapseButton.uni.driver");
var _getUniDriverStyle = require("../../test-utils/getUniDriverStyle");
function NestedTableParentCellUniDriver(base, body) {
  const getWrapper = () => base.$('[data-hook="indentation-wrapper"]');
  return {
    ...(0, _unidriver.baseUniDriverFactory)(base),
    getTitle: () => getWrapper().$('[data-hook="title"]').text(),
    getSubtitle: () => getWrapper().$('[data-hook="subtitle"]').text(),
    getDragHandle: () => getWrapper().$('[data-hook="drag-handle"]'),
    getExpandCollapseButton: () => (0, _ExpandCollapseButtonUni.ExpandCollapseButtonUniDriver)(getWrapper().$('[data-hook="expand-collapse-wrapper"]'), body),
    getIndentationDepth: async () => {
      var _await$getUniDriverSt;
      const padding = Number((_await$getUniDriverSt = (await (0, _getUniDriverStyle.getUniDriverStyle)(getWrapper()))['padding-inline-start']) == null ? void 0 : _await$getUniDriverSt.split('px')[0]);
      const indentationWidth = Number(await getWrapper().attr('data-indentation-width'));
      return padding / indentationWidth;
    }
  };
}
//# sourceMappingURL=NestedTableParentCell.uni.driver.js.map