"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.NestedTableNestedModeStateBIReporter = void 0;
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _bi = require("@wix/bex-core/bi");
class NestedTableNestedModeStateBIReporter {
  constructor(_state) {
    (0, _defineProperty2.default)(this, "state", void 0);
    (0, _defineProperty2.default)(this, "reportExpandCollapseAll", () => {
      const {
        state
      } = this;
      this.reportBi((0, _bi.wixPatternsNestedTableCollapseAndExpandAllSrc144Evid178)({
        ...state.toolbar._commonDynamicBiParams(),
        clickType: state.isAllCollapsed ? 'Expand' : 'Collapse',
        numLevels: state.levels.length
      }));
    });
    this.state = _state;
  }
  get reportBi() {
    return this.state.wrapper.reportBi;
  }
}
exports.NestedTableNestedModeStateBIReporter = NestedTableNestedModeStateBIReporter;
//# sourceMappingURL=NestedTableNestedModeStateBIReporter.js.map