/*
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 { CellPresenterBase } from "./CellPresenterBase";
import { DateTimeCellModel } from "./DateTimeCellModel";
import { ContentCellModelHelper } from "./ContentCellModelHelper";
import { typeCast, Date_$type, markType } from "igniteui-webcomponents-core";
import { stringEmpty } from "igniteui-webcomponents-core";
/**
 * @hidden
 */
var DateTimeCellPresenter = /** @class */ /*@__PURE__*/ (function (_super) {
    tslib_1.__extends(DateTimeCellPresenter, _super);
    function DateTimeCellPresenter(a) {
        return _super.call(this, a) || this;
    }
    Object.defineProperty(DateTimeCellPresenter.prototype, "d", {
        get: function () {
            return this.a;
        },
        enumerable: true,
        configurable: true
    });
    DateTimeCellPresenter.prototype.b = function (a) {
        _super.prototype.b.call(this, a);
        var b = a;
        if (a.as) {
            if (a.ax(DateTimeCellModel.k8) || a.ax(DateTimeCellModel.k9) || a.ax(DateTimeCellModel.k7) || a.ax(DateTimeCellModel.fm)) {
                this.e(b);
                this.d.b9.setRawText(b.ir);
            }
            ContentCellModelHelper.a(this.a.w, b, this.a.z, this.d.b9, this.a);
        }
    };
    DateTimeCellPresenter.prototype.e = function (a) {
        a.ir = a.lk(a.k6);
        if (a.ir == stringEmpty()) {
            if (a.gp != null && !(typeCast(Date_$type, a.gp) !== null)) {
                a.ir = a.gp.toString();
            }
        }
    };
    DateTimeCellPresenter.$t = markType(DateTimeCellPresenter, 'DateTimeCellPresenter', CellPresenterBase.$);
    return DateTimeCellPresenter;
}(CellPresenterBase));
export { DateTimeCellPresenter };
//# sourceMappingURL=DateTimeCellPresenter.js.map
