/*
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 { IndicatorCalculationStrategy } from "./IndicatorCalculationStrategy";
import { markType } from "igniteui-react-core/ES5/type";
/**
 * @hidden
 */
var ItemwiseStrategyCalculationStrategy = /** @class */ (function (_super) {
    tslib_1.__extends(ItemwiseStrategyCalculationStrategy, _super);
    function ItemwiseStrategyCalculationStrategy() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.c = null;
        return _this;
    }
    ItemwiseStrategyCalculationStrategy.prototype.b = function (a, b) {
        return this.c.b(a, b);
    };
    ItemwiseStrategyCalculationStrategy.prototype.a = function (a, b) {
        var c = true;
        for (var d = a.calculateFrom; d < a.calculateFrom + a.calculateCount; d++) {
            c = this.c.a(a, b, d);
            if (!c) {
                return false;
            }
        }
        return c;
    };
    ItemwiseStrategyCalculationStrategy.$t = markType(ItemwiseStrategyCalculationStrategy, 'ItemwiseStrategyCalculationStrategy', IndicatorCalculationStrategy.$);
    return ItemwiseStrategyCalculationStrategy;
}(IndicatorCalculationStrategy));
export { ItemwiseStrategyCalculationStrategy };
