/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE  AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE:  you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import * as tslib_1 from "tslib";
import { Base, markType, getInstanceType } from "igniteui-react-core/ES5/type";
import { DictionaryUtil } from "igniteui-react-core/ES5/dictionary";
/**
 * @hidden
 */
var MessageHandler_Spark = /** @class */ (function (_super) {
    tslib_1.__extends(MessageHandler_Spark, _super);
    function MessageHandler_Spark() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.a = DictionaryUtil.dictionaryCreate();
        return _this;
    }
    MessageHandler_Spark.prototype.addHandler = function (a, b) {
        this.a.set(a.typeName, b);
    };
    MessageHandler_Spark.prototype.messageReceived = function (a) {
        var b;
        var c = getInstanceType(a).typeName;
        if (this.a.has(c)) {
            b = this.a.get(c);
            b(a);
        }
    };
    MessageHandler_Spark.$t = markType(MessageHandler_Spark, 'MessageHandler_Spark');
    return MessageHandler_Spark;
}(Base));
export { MessageHandler_Spark };
