"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.nextSteps = void 0;
const chalk_1 = __importDefault(require("chalk"));
/**
 * Logs app creation completion message and next steps
 * @param {string[]} appNames application name(s) for the new app
 * @param {string[]} nextStepsArr next steps to be performed after app is created
 */
const nextSteps = (appNames, nextStepsArr) => __awaiter(void 0, void 0, void 0, function* () {
    const successMessage = appNames.length > 1
        ? `JSS applications ${chalk_1.default.green(appNames.join(', '))} are ready!`
        : `JSS application ${chalk_1.default.green(appNames[0])} is ready!`;
    console.log(chalk_1.default.red('                 -/oyhdmNNNNmdhyo/-                '));
    console.log(chalk_1.default.red('             :sdMMMMMMMMMMMMMMMMMMMMds:            '));
    console.log(chalk_1.default.red('          :yNMMMMMMMMMMMMMMMMMMMMMMMMMMNy:         '));
    console.log(chalk_1.default.red('        /mMMMMMMMMMNdyo+//://+shmMMMMMMMMMm/       '));
    console.log(chalk_1.default.red('      :mMMMMMMMMh+.              `:smMMMMMMMm:     '));
    console.log(chalk_1.default.red('    `yMMMMMMMm+`                     :yMMMMMMMs`   '));
    console.log(chalk_1.default.red('   `dMMMMMMN/                          .hMMMMMMd`  '));
    console.log(chalk_1.default.red('  `mMMMMMMh`                          -s/+MMMMMMd` '));
    console.log(chalk_1.default.red('  yMMMMMMh                        `:yNMMMs/MMMMMMy '));
    console.log(chalk_1.default.red(' :MMMMMMm`                       `hMMMMMMMsoMMMMMM-'));
    console.log(chalk_1.default.red(' yMMMMMM/                          dMMMMMMM:mMMMMMy'));
    console.log(chalk_1.default.red(' NMMMMMN`                          oMyossss:sMMMMMm'));
    console.log(chalk_1.default.red(' MMMMMMN                           yM:NMMMMyoMMMMMN'));
    console.log(chalk_1.default.red(' mMMMMMM`                         :Md+MMMMMoyMMMMMm'));
    console.log(chalk_1.default.red(' yMMMMMM+                        :NN+NMMMMM-NMMMMMy'));
    console.log(chalk_1.default.red(' :MMMMMMN:-                    `sMdyMNymMMosMMMMMM-'));
    console.log(chalk_1.default.red('  yMMMMMMd/o`                .oNdhmMhhMmh++MMMMMMy '));
    console.log(chalk_1.default.red('  `dMMMMMMm+do.-         ./oyhhhNNhyNMMNosMMMMMMd` '));
    console.log(chalk_1.default.red('   `dMMMMMMMssNdhsoo+/+oyyyydMmhhhMMMNs+mMMMMMMd`  '));
    console.log(chalk_1.default.red('    `yMMMMMMMNyydMNddddddddddhmMMMMho+dMMMMMMMy`   '));
    console.log(chalk_1.default.red('      :mMMMMMMMMmhhhdNMMMMMMMMmhssohMMMMMMMMm:     '));
    console.log(chalk_1.default.red('        /mMMMMMMMMMMNdhyyyyyyyhmMMMMMMMMMMm/       '));
    console.log(chalk_1.default.red('          :yNMMMMMMMMMMMMMMMMMMMMMMMMMMNy:         '));
    console.log(chalk_1.default.red('             :sdMMMMMMMMMMMMMMMMMMMMds:            '));
    console.log(chalk_1.default.red('                `-/oyhdmNNNNmdhyo/-                '));
    console.log();
    console.log(chalk_1.default.white('                      __________'));
    console.log(chalk_1.default.white('                  __ / / __/ __/'));
    console.log(chalk_1.default.white('                 / // /\\ \\_\\ \\  '));
    console.log(chalk_1.default.white('                 \\___/___/___/'));
    console.log();
    console.log(successMessage);
    console.log();
    console.log(chalk_1.default.yellow('Next steps:'));
    nextStepsArr.forEach((step) => {
        console.log(step);
    });
    console.log('* Enable source control (i.e. git init) (optional)');
    console.log('* Check out the JSS documentation at https://jss.sitecore.com');
    console.log();
    console.log(chalk_1.default.green('Enjoy!'));
});
exports.nextSteps = nextSteps;
