"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NavigateBackStep = void 0;
const MablStepV2_1 = require("../../MablStepV2");
const STEP_NAME = 'NavigateBack';
class NavigateBackStep extends MablStepV2_1.MablStepV2 {
    static stepName = STEP_NAME;
    static yamlMablScriptNames = [NavigateBackStep.stepName];
    static stepVersion = 2;
    constructor(descriptor) {
        super(NavigateBackStep.stepName, descriptor, 'navigate_back');
    }
    stepDescription() {
        return `Navigate back`;
    }
    static fromYaml(_stepName, stepDescriptor) {
        return new NavigateBackStep(stepDescriptor);
    }
    static create(descriptor) {
        descriptor.id = descriptor.id ?? MablStepV2_1.MablStepV2.generateStepId();
        return new NavigateBackStep(descriptor);
    }
}
exports.NavigateBackStep = NavigateBackStep;
