"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const StepAddon_1 = __importDefault(require("../../pages/steps/StepAddon/StepAddon"));
const Feature_1 = require("./Feature");
const StepManager_1 = __importDefault(require("../../util/StepManager"));
class InlineAddonStepFeature extends Feature_1.Feature {
    constructor() {
        super('InlineAddonStepFeature');
    }
    onLoad() {
        if (StepManager_1.default.currentSteps[15]) {
            this.originalStep = StepManager_1.default.currentSteps[15];
        }
        StepManager_1.default.addStep(15, StepAddon_1.default);
    }
    onUnLoad() {
        if (this.originalStep) {
            StepManager_1.default.addStep(15, this.originalStep);
        }
        else {
            delete StepManager_1.default.currentSteps[15];
        }
    }
}
exports.default = new InlineAddonStepFeature();
//# sourceMappingURL=InlineAddonStepFeature.js.map