"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.NestedTableLeafNodeState = void 0;
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
class NestedTableLeafNodeState {
  constructor(params) {
    (0, _defineProperty2.default)(this, "_parentNode", void 0);
    (0, _defineProperty2.default)(this, "_parent", void 0);
    this._parentNode = params.parentNode;
    this._parent = params.parent;
  }
  getParent() {
    return this._parentNode;
  }
  getDescendants() {
    return [];
  }
  getData() {
    const {
      _parent,
      _parentNode
    } = this;
    if (_parent == null || _parentNode == null) {
      return null;
    }
    return _parentNode.collection.getItem(_parent.key);
  }
  toggleExpand() {}
  get expanded() {
    return false;
  }
  get depth() {
    return this._parentNode.childrenDepth;
  }
}
exports.NestedTableLeafNodeState = NestedTableLeafNodeState;
//# sourceMappingURL=NestedTableLeafNodeState.js.map