"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PROJECT_NAME_INPUT = exports.APPLICATION_TEMPLATE = void 0;
var inquirer = __importStar(require("inquirer"));
var i18n_1 = __importDefault(require("../utils/i18n"));
var data = [new inquirer.Separator('\n👋 Hello World Example'), {
        key: 'devsapp/start-fc',
        name: 'Aliyun FC node.js12-http',
        value: 'devsapp/start-fc'
    }, {
        key: 'devscomp/start-lambda',
        name: 'AWS Lambda nodejs12.x-http',
        value: 'devscomp/start-lambda'
    }, {
        key: 'devscomp/start-scf',
        name: 'Tencent SCF nodejs12.x-http',
        value: 'devscomp/start-scf'
    },
    new inquirer.Separator('\n🚢 Web Framework Example'),
    {
        key: 'devsapp/start-express',
        name: 'Express',
        value: 'devsapp/start-express'
    }, {
        key: 'devsapp/start-flask',
        name: 'Flask',
        value: 'devsapp/start-flask'
    }, {
        key: 'devsapp/start-zblog',
        name: 'Zblog',
        value: 'devsapp/start-zblog'
    }, {
        key: 'devsapp/midway-hook-vue',
        name: 'Midway',
        value: 'devsapp/midway-hook-vue'
    }, {
        key: 'devsapp/start-malagu',
        name: 'Malagu',
        value: 'devsapp/start-malagu'
    }, new inquirer.Separator('\n🖥️  Static Website'),
    {
        key: 'devsapp/website-vue',
        name: 'Vue',
        value: 'devsapp/website-vue'
    }, {
        key: 'devsapp/website-react',
        name: 'React',
        value: 'devsapp/website-react'
    }, {
        key: 'devsapp/website-docusaurus',
        name: 'Docusaurus',
        value: 'devsapp/website-docusaurus'
    }, {
        key: 'devsapp/website-hexo',
        name: 'Hexo',
        value: 'devsapp/website-hexo'
    }, {
        key: 'devsapp/website-vuepress',
        name: 'Vuepress',
        value: 'devsapp/website-vuepress'
    }, new inquirer.Separator('\n🍼 Serverless Dev template'), {
        key: 'devsapp/start-application',
        name: 'Application',
        value: 'devsapp/start-application'
    }, {
        key: 'devsapp/start-component',
        name: 'Component',
        value: 'devsapp/start-component'
    }];
exports.APPLICATION_TEMPLATE = [
    {
        type: 'autocomplete',
        name: 'template',
        message: i18n_1.default.__('Hello, serverlessor. Which template do you like? \n🚀 More: https://github.com/Serverless-Devs/package-awesome\nPlease select or input: '),
        loop: false,
        pageSize: 40,
        source: function (answersSoFar, input) {
            if (!input) {
                return data;
            }
            return data.filter(function (item) { return item.name && item.name.indexOf(input) !== -1; });
        }
    }
];
exports.PROJECT_NAME_INPUT = [
    {
        type: 'input',
        name: 'projectName',
        message: i18n_1.default.__('Please input your project name'),
    }
];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5pdC1jb25maWcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5pdC9pbml0LWNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsaURBQXFDO0FBQ3JDLHVEQUFpQztBQUlqQyxJQUFNLElBQUksR0FBRyxDQUFDLElBQUksUUFBUSxDQUFDLFNBQVMsQ0FBQywwQkFBMEIsQ0FBQyxFQUFFO1FBQzlELEdBQUcsRUFBRSxrQkFBa0I7U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