"use strict";
/*---------------------------------------------------------------------------------------------
 * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
 * See LICENSE.md in the project root for license terms and full copyright notice.
 *--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
 * @module Frontstage
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.NestedFrontstage = void 0;
const CommandItemDef_1 = require("../shared/CommandItemDef");
const UiFramework_1 = require("../UiFramework");
const appui_abstract_1 = require("@itwin/appui-abstract");
const progress_backward_svg_1 = require("@bentley/icons-generic/icons/progress-backward.svg");
/**
 * Nested Frontstage related classes and commands
 * @public
 */
class NestedFrontstage {
    /** Command that returns to the previous Frontstage */
    static get backToPreviousFrontstageCommand() {
        return new CommandItemDef_1.CommandItemDef({
            commandId: "backToPreviousFrontstage",
            iconSpec: NestedFrontstage.iconSpec,
            labelKey: "UiFramework:commands.backToPreviousFrontstage",
            execute: async () => {
                await UiFramework_1.UiFramework.frontstages.closeNestedFrontstage();
            },
        });
    }
}
NestedFrontstage.iconSpec = appui_abstract_1.IconSpecUtilities.createWebComponentIconSpec(progress_backward_svg_1.default);
exports.NestedFrontstage = NestedFrontstage;
//# sourceMappingURL=NestedFrontstage.js.map