/*
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 { CellModel } from "./CellModel";
import { TextCellModel } from "./TextCellModel";
import { markType } from "igniteui-webcomponents-core";
import { ContentCellModelHelper } from "./ContentCellModelHelper";
/**
 * @hidden
 */
export let TextCellPresenter = /*@__PURE__*/ (() => {
    class TextCellPresenter 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(TextCellModel.kw) || a.ax(CellModel.fm)) {
                    if (b.ky != null) {
                        b.ir = b.ky;
                    }
                    else {
                        if (b.gp == null) {
                            b.ir = "";
                        }
                        else {
                            b.ir = b.gp.toString();
                        }
                    }
                    this.d.b9.setRawText(b.ir);
                }
                ContentCellModelHelper.a(this.a.w, b, this.a.z, this.d.b9, this.a);
            }
        }
    }
    TextCellPresenter.$t = /*@__PURE__*/ markType(TextCellPresenter, 'TextCellPresenter', CellPresenterBase.$);
    return TextCellPresenter;
})();
//# sourceMappingURL=TextCellPresenter.js.map
