"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NavStylerManager = void 0;
/**
 * Responsible for managing nav stylers
 */
var NavStylerManager = /** @class */ (function () {
    /**
     * Initializes NavStylerManager
     *
     * @param _stylers - An array of stlyers
     */
    function NavStylerManager(_stylers) {
        this._stylers = _stylers;
    }
    /**
     * Highlights the current step in the navigation bar
     *
     * This method will loop through each of the step elements and explicitly
     * set their style. The system makes no attempt to figure out which steps
     * should be changed as there is very little overhead with setting the style
     * of each of the steps. The additional logic would over-complicate things.
     *
     * @param step_id - id of the step to highlight
     */
    NavStylerManager.prototype.highlightStep = function (step_id) {
        this._stylers.forEach(function (styler) { return styler.highlightStep(step_id); });
        return this;
    };
    /**
     * Sets whether the quote has been locked
     *
     * @param value - whether quote is locked
     */
    NavStylerManager.prototype.quoteLocked = function (value) {
        this._stylers.forEach(function (styler) { return styler.quoteLocked(value); });
        return this;
    };
    return NavStylerManager;
}());
exports.NavStylerManager = NavStylerManager;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTmF2U3R5bGVyTWFuYWdlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIk5hdlN0eWxlck1hbmFnZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBc0JBOztHQUVHO0FBQ0g7SUFDRTs7OztPQUlHO0lBQ0gsMEJBQTZCLFFBQXFCO1FBQXJCLGFBQVEsR0FBUixRQUFRLENBQWE7SUFBRyxDQUFDO0lBRXREOzs7Ozs7Ozs7T0FTRztJQUNILHdDQUFhLEdBQWIsVUFBYyxPQUFlO1FBQzNCLElBQUksQ0FBQyxRQUFRLENBQUMsT0FBTyxDQUFDLFVBQUEsTUFBTSxJQUFJLE9BQUEsTUFBTSxDQUFDLGFBQWEsQ0FBQyxPQUFPLENBQUMsRUFBN0IsQ0FBNkIsQ0FBQyxDQUFDO1FBRS9ELE9BQU8sSUFBSSxDQUFDO0lBQ2QsQ0FBQztJQUVEOzs7O09BSUc7SUFDSCxzQ0FBVyxHQUFYLFVBQVksS0FBYztRQUN4QixJQUFJLENBQUMsUUFBUSxDQUFDLE9BQU8sQ0FBQyxVQUFBLE1BQU0sSUFBSSxPQUFBLE1BQU0sQ0FBQyxXQUFXLENBQUMsS0FBSyxDQUFDLEVBQXpCLENBQXlCLENBQUMsQ0FBQztRQUUzRCxPQUFPLElBQUksQ0FBQztJQUNkLENBQUM7SUFDSCx1QkFBQztBQUFELENBQUMsQUFsQ0QsSUFrQ0M7QUFsQ1ksNENBQWdCIn0=