"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.ConfirmModalBIReporter = void 0;
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _v = require("@wix/bex-utils/@wix/bi-logger-os-data/v2");
class ConfirmModalBIReporter {
  constructor(params) {
    (0, _defineProperty2.default)(this, "reportBi", void 0);
    (0, _defineProperty2.default)(this, "itemId", void 0);
    (0, _defineProperty2.default)(this, "itemIndex", void 0);
    this.reportBi = params.reportBi;
    this.itemId = params.itemId;
    this.itemIndex = params.itemIndex;
  }
  get biParams() {
    return {
      isSelectAll: false,
      location: 'actionCell',
      numItems: 1,
      itemId: this.itemId,
      itemIndex: this.itemIndex
    };
  }
  reportDeleteModalShown() {
    this.reportBi((0, _v.wixPatternsDeleteModalShownSrc144Evid10)(this.biParams));
  }
  reportDeleteModalCtaClicked(ctaName) {
    this.reportBi((0, _v.wixPatternsDeleteModalCtaClickedSrc144Evid11)({
      ...this.biParams,
      ctaName
    }));
  }
}
exports.ConfirmModalBIReporter = ConfirmModalBIReporter;
//# sourceMappingURL=ConfirmModalBIReporter.js.map