define(["require", "exports", "tslib", "../../../Utilities"], function (require, exports, tslib_1, Utilities_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var ContextualMenuItemWrapper = /** @class */ (function (_super) {
        tslib_1.__extends(ContextualMenuItemWrapper, _super);
        function ContextualMenuItemWrapper() {
            var _this = _super !== null && _super.apply(this, arguments) || this;
            _this._onItemMouseEnter = function (ev) {
                var _a = _this.props, item = _a.item, onItemMouseEnter = _a.onItemMouseEnter;
                if (onItemMouseEnter) {
                    onItemMouseEnter(item, ev, ev.currentTarget);
                }
            };
            _this._onItemClick = function (ev) {
                var _a = _this.props, item = _a.item, onItemClickBase = _a.onItemClickBase;
                if (onItemClickBase) {
                    onItemClickBase(item, ev, ev.currentTarget);
                }
            };
            _this._onItemMouseLeave = function (ev) {
                var _a = _this.props, item = _a.item, onItemMouseLeave = _a.onItemMouseLeave;
                if (onItemMouseLeave) {
                    onItemMouseLeave(item, ev);
                }
            };
            _this._onItemKeyDown = function (ev) {
                var _a = _this.props, item = _a.item, onItemKeyDown = _a.onItemKeyDown;
                if (onItemKeyDown) {
                    onItemKeyDown(item, ev);
                }
            };
            _this._onItemMouseMove = function (ev) {
                var _a = _this.props, item = _a.item, onItemMouseMove = _a.onItemMouseMove;
                if (onItemMouseMove) {
                    onItemMouseMove(item, ev, ev.currentTarget);
                }
            };
            _this._getSubMenuId = function (item) {
                var getSubMenuId = _this.props.getSubMenuId;
                if (getSubMenuId) {
                    return getSubMenuId(item);
                }
            };
            _this._getSubmenuTarget = function () {
                return undefined;
            };
            return _this;
        }
        ContextualMenuItemWrapper.prototype.shouldComponentUpdate = function (newProps) {
            return !Utilities_1.shallowCompare(newProps, this.props);
        };
        return ContextualMenuItemWrapper;
    }(Utilities_1.BaseComponent));
    exports.ContextualMenuItemWrapper = ContextualMenuItemWrapper;
});
//# sourceMappingURL=ContextualMenuItemWrapper.js.map