/*
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 { StrategyBasedIndicator } from "./StrategyBasedIndicator";
import { CustomIndicatorStrategy } from "./CustomIndicatorStrategy";
import { String_$type, fromEnum, markType } from "igniteui-react-core";
import { FinancialEventArgs } from "./FinancialEventArgs";
import { List$1 } from "igniteui-react-core";
/**
 * @hidden
 */
export let CustomIndicator = /*@__PURE__*/ (() => {
    class CustomIndicator extends StrategyBasedIndicator {
        constructor() {
            super(...arguments);
            this.s6 = null;
            this.s5 = null;
        }
        get_sk() {
            return new CustomIndicatorStrategy();
        }
        get sk() {
            return this.get_sk();
        }
        get_sx() {
            return CustomIndicator.$;
        }
        get sx() {
            return this.get_sx();
        }
        rw(a, b) {
            let c = this.ot(a, b);
            let d = this.ou(c);
            let e = new List$1(String_$type, 0);
            if (this.basedOnColumns != null) {
                let f = new FinancialEventArgs(c.calculateFrom, c.calculateCount, c, d, this);
                this.basedOnColumns(this, f);
                if (f.basedOn != null) {
                    for (let g of fromEnum(f.basedOn)) {
                        e.add(g);
                    }
                }
            }
            return e;
        }
        get indicator() {
            return this.s6;
        }
        set indicator(a) {
            this.s6 = a;
            this.r4();
        }
        get basedOnColumns() {
            return this.s5;
        }
        set basedOnColumns(a) {
            this.s5 = a;
        }
        rt(a, b) {
            super.rt(a, b);
            if (this.indicator != null) {
                let c = this.ot(a, b);
                if (b == 0) {
                    return false;
                }
                if (!this.pp(this.rw(a, b))) {
                    return false;
                }
                this.indicator(this, new FinancialEventArgs(a, b, c, this.ou(c), this));
                if (this.sm(c) && this.o2 != null) {
                    this.o2.cn();
                }
                return true;
            }
            return false;
        }
    }
    CustomIndicator.$t = /*@__PURE__*/ markType(CustomIndicator, 'CustomIndicator', StrategyBasedIndicator.$);
    return CustomIndicator;
})();
//# sourceMappingURL=CustomIndicator.js.map
