/*
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 { NumericCellModel } from "./NumericCellModel";
import { CanvasContentCellModelHelper } from "./CanvasContentCellModelHelper";
import { markType } from "igniteui-webcomponents-core";
import { NumericCellFormatter } from "./NumericCellFormatter";
/**
 * @hidden
 */
export let CanvasNumericCellPresenter = /*@__PURE__*/ (() => {
    class CanvasNumericCellPresenter 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(NumericCellModel.ll) || b.k2()) {
                    b.ir = this.e(b);
                    this.d.ck(b.ir);
                }
                CanvasContentCellModelHelper.a(this.a.bl, b, this.a);
            }
        }
        e(a) {
            if (a.lr != null) {
                let val_ = a.k5;
                let override_ = a.lr;
                return (override_.format(val_));
            }
            return NumericCellFormatter.b(a);
        }
    }
    CanvasNumericCellPresenter.$t = /*@__PURE__*/ markType(CanvasNumericCellPresenter, 'CanvasNumericCellPresenter', CanvasCellPresenterBase.$);
    return CanvasNumericCellPresenter;
})();
//# sourceMappingURL=CanvasNumericCellPresenter.js.map
