/*
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 { Base, markType } from "igniteui-angular-core";
import { intSToU } from "igniteui-angular-core";
import { stringIsNullOrEmpty } from "igniteui-angular-core";
/**
 * @hidden
 */
var SerializationNumberFormatInfo = /** @class */ (function (_super) {
    tslib_1.__extends(SerializationNumberFormatInfo, _super);
    function SerializationNumberFormatInfo() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.b = null;
        _this.c = 0;
        return _this;
    }
    SerializationNumberFormatInfo.prototype.d = function (a) {
        if (stringIsNullOrEmpty(this.b) == false) {
            a.formatString = this.b;
        }
        else if (this.c >= 0) {
            a.formatString = a.v._b2.item(this.c);
        }
    };
    SerializationNumberFormatInfo.a = function (a) {
        var b = a._cs;
        return ((function () {
            var $ret = new SerializationNumberFormatInfo();
            $ret.b = a.v._b2.ad(b);
            $ret.c = intSToU(b);
            return $ret;
        })());
    };
    SerializationNumberFormatInfo.$t = markType(SerializationNumberFormatInfo, 'SerializationNumberFormatInfo');
    return SerializationNumberFormatInfo;
}(Base));
export { SerializationNumberFormatInfo };
//# sourceMappingURL=SerializationNumberFormatInfo.js.map