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