/*
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 { __extends } from "tslib";
import { Base, markType } from "igniteui-angular-core";
import { ArgumentOutOfRangeException } from "igniteui-angular-core";
import { dateFromValues } from "igniteui-angular-core";
/**
 * @hidden
 */
var CalendarEraInfo = /** @class */ /*@__PURE__*/ (function (_super) {
    __extends(CalendarEraInfo, _super);
    function CalendarEraInfo(a, b, c, d, e, f, g, h, i, j) {
        var _this = _super.call(this) || this;
        _this.b = 0;
        _this.a = new Date();
        _this.e = 0;
        _this.g = 0;
        _this.f = 0;
        _this.j = null;
        _this.h = null;
        _this.i = null;
        _this.b = a;
        _this.a = dateFromValues(b, c, d, 0, 0, 0, 0);
        _this.e = e;
        _this.g = f;
        _this.f = g;
        _this.j = h;
        _this.h = i;
        _this.i = j;
        return _this;
    }
    CalendarEraInfo.c = function (a, b) {
        for (var c = 0; c < a.length; c++) {
            if (b == a[c].b) {
                return c;
            }
        }
        return -1;
    };
    CalendarEraInfo.d = function (a, b, c) {
        var d = CalendarEraInfo.c(a, c);
        if (d < 0) {
            throw new ArgumentOutOfRangeException(0);
        }
        var e = a[d];
        if (b < e.g || e.f < b) {
            throw new ArgumentOutOfRangeException(0);
        }
        return e.e + b;
    };
    CalendarEraInfo.$t = markType(CalendarEraInfo, 'CalendarEraInfo');
    return CalendarEraInfo;
}(Base));
export { CalendarEraInfo };
