/*
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 { CanvasCellPresenterBase } from "./CanvasCellPresenterBase";
import { SectionHeaderCellModel } from "./SectionHeaderCellModel";
import { markType } from "igniteui-webcomponents-core";
import { CanvasContentCellModelHelper } from "./CanvasContentCellModelHelper";
/**
 * @hidden
 */
export let CanvasSectionHeaderCellPresenter = /*@__PURE__*/ (() => {
    class CanvasSectionHeaderCellPresenter extends CanvasCellPresenterBase {
        constructor(a) {
            super(a);
        }
        get d() {
            return this.a;
        }
        b(a) {
            super.b(a);
            let b = a;
            if (a.as) {
                if (a.ax(SectionHeaderCellModel.k2) || a.ax(SectionHeaderCellModel.k4)) {
                    if (b.ky == null || (b.ky.length == 0 && b.lc == null)) {
                        if (b.gp == null) {
                            b.ir = "";
                        }
                        else {
                            b.ir = b.gp.toString();
                        }
                    }
                    else {
                        if (b.la != null && b.k1 == 0) {
                            b.ir = b.lc + "    " + b.la;
                        }
                        else {
                            b.ir = b.lc;
                        }
                    }
                    this.d.ck(b.ir);
                }
                CanvasContentCellModelHelper.a(this.a.bl, b, this.a);
            }
        }
    }
    CanvasSectionHeaderCellPresenter.$t = /*@__PURE__*/ markType(CanvasSectionHeaderCellPresenter, 'CanvasSectionHeaderCellPresenter', CanvasCellPresenterBase.$);
    return CanvasSectionHeaderCellPresenter;
})();
//# sourceMappingURL=CanvasSectionHeaderCellPresenter.js.map
