/*
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 { 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
 */
export let DateTimeCellPresenter = /*@__PURE__*/ (() => {
    class DateTimeCellPresenter extends CellPresenterBase {
        constructor(a) {
            super(a);
        }
        get d() {
            return this.a;
        }
        b(a) {
            super.b(a);
            let 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);
            }
        }
        e(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 = /*@__PURE__*/ markType(DateTimeCellPresenter, 'DateTimeCellPresenter', CellPresenterBase.$);
    return DateTimeCellPresenter;
})();
//# sourceMappingURL=DateTimeCellPresenter.js.map
