/*
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 { ContentCellModelHelper } from "./ContentCellModelHelper";
import { TypeRegistrar, markType } from "igniteui-webcomponents-core";
/**
 * @hidden
 */
export let TextHeaderCellPresenter = /*@__PURE__*/ (() => {
    class TextHeaderCellPresenter 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)) {
                    b.ir = b.ky;
                    this.d.cm.setRawText(b.ir);
                }
                if (a.ax(CellModel.f7)) {
                    let c = this.d.cg.l;
                    if (a.bb) {
                        this.d.cg.l = false;
                    }
                    this.d.cg.b = a.m;
                    if (a.bb) {
                        this.d.cg.l = c;
                    }
                }
                if (a.ax(CellModel.f8)) {
                    let d = this.d.cg.l;
                    if (a.bb) {
                        this.d.cg.l = false;
                    }
                    this.d.cg.a0 = a.kr;
                    if (a.bb) {
                        this.d.cg.l = d;
                    }
                }
                if (a.aw("IsColumnOptionsEnabled")) {
                    let e = b.k7;
                    if (e) {
                        e = this.e();
                    }
                    this.d.ci = e;
                    this.d.ck.setRawStyleProperty("display", e ? "inline-block" : "none");
                    this.a.bx(a.gg, (a.fp + a.fr + a.eb + a.ee));
                }
                if (a.aw("SortIndicatorStyle")) {
                    this.d.cg.f = b.k5;
                }
                if (a.aw("ColumnOptionsIconAlignment")) {
                    this.d.ca = b.k1;
                }
                if (a.aw("ColumnOptionsIconBehavior")) {
                    this.d.cc = b.k3;
                }
                if (a.aw("ColumnOptionsIconColor")) {
                    this.d.ce.bp = b.lj;
                }
                ContentCellModelHelper.a(this.a.w, b, this.a.z, this.d.cm, this.a);
            }
        }
        e() {
            return TypeRegistrar.isRegistered("IgxGridColumnOptionsComponent");
        }
    }
    TextHeaderCellPresenter.$t = /*@__PURE__*/ markType(TextHeaderCellPresenter, 'TextHeaderCellPresenter', CellPresenterBase.$);
    return TextHeaderCellPresenter;
})();
//# sourceMappingURL=TextHeaderCellPresenter.js.map
