/*
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 { Base, runOn, markType } from "igniteui-react-core/ES2015/type";
export class FinancialChartDropDownControlView extends Base {
    constructor() {
        super(...arguments);
        this.b = false;
        this.c = false;
        this.d = null;
        this.e = null;
        this.a = null;
    }
    i(a) {
        if (!this.b && !this.c) {
            this.g();
        }
        this.b = false;
        this.c = false;
    }
    h(a) {
        this.b = true;
    }
    k(a) {
    }
    j(a) {
        this.c = true;
        this.k(a.target);
    }
    f(a, b, c, d) {
        this.a = b;
        this.a.a = runOn(this, this.j);
        this.d = a.querySelector(c);
        this.d.listen("click", runOn(this, this.h));
        this.e = a.querySelector(d);
        this.e.setStyleProperty("display", "none");
        this.e.listen("click", runOn(this, this.j));
        document.addEventListener("click", runOn(this, this.i), false);
    }
    g() {
        this.a.isOpen = false;
    }
}
FinancialChartDropDownControlView.$t = markType(FinancialChartDropDownControlView, 'FinancialChartDropDownControlView');
