/*
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 { TemplatedHtmlControl } from "./TemplatedHtmlControl";
import { EventArgs, markType } from "igniteui-react-core/ES5/type";
var FinancialChartDropDownControl = /** @class */ (function (_super) {
    tslib_1.__extends(FinancialChartDropDownControl, _super);
    function FinancialChartDropDownControl(a, b, c) {
        var _this = _super.call(this, a, b, c) || this;
        _this.selectionChanged = null;
        _this.n = null;
        _this.o = null;
        return _this;
    }
    FinancialChartDropDownControl.prototype.u = function () {
        if (this.selectionChanged != null) {
            this.selectionChanged(this, EventArgs.empty);
        }
    };
    FinancialChartDropDownControl.prototype.l = function (a) {
        _super.prototype.l.call(this, a);
        this.n.f(this.d, this.o, this.r, this.s);
    };
    FinancialChartDropDownControl.prototype.get_p = function () {
        return false;
    };
    Object.defineProperty(FinancialChartDropDownControl.prototype, "p", {
        get: function () {
            return this.get_p();
        },
        enumerable: true,
        configurable: true
    });
    FinancialChartDropDownControl.prototype.t = function (a) {
        if (this.o.isOpen) {
            var b = a.target;
            var c = b.classList.contains(this.r.substr(1));
            var d = c || (this.p && b.matches(this.s + " *"));
            if (!d) {
                this.o.isOpen = false;
                this.o.updateUI();
            }
        }
    };
    FinancialChartDropDownControl.$t = markType(FinancialChartDropDownControl, 'FinancialChartDropDownControl', TemplatedHtmlControl.$);
    return FinancialChartDropDownControl;
}(TemplatedHtmlControl));
export { FinancialChartDropDownControl };
