"use strict";
/** @format */
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.AWS_APPLICATION_TEMPLATE = exports.TENCENT_APPLICATION_TEMPLATE = exports.ALIBABA_APPLICATION_TEMPLATE = exports.APPLICATION_TEMPLATE = void 0;
var inquirer = __importStar(require("inquirer"));
var chalk_1 = __importDefault(require("chalk"));
var common_1 = require("../utils/common");
var data = [
    new inquirer.Separator("\n" + common_1.emoji('👋') + " Hello Serverless for Cloud Vendors"),
    {
        key: 'alibaba',
        name: 'Alibaba Cloud Serverless',
        value: 'alibaba',
    },
    {
        key: 'aws',
        name: 'AWS Cloud Serverless',
        value: 'aws',
    },
    {
        key: 'tencent',
        name: 'Tencent Cloud Serverless',
        value: 'tencent',
    },
    new inquirer.Separator("\n" + common_1.emoji('🚀') + " DK Framework for Serverless JamStack"),
    {
        key: 'devsapp/dk-http',
        name: 'DK HTTP API',
        value: 'devsapp/dk-http',
    },
    {
        key: 'devsapp/dk-tablestore-mail',
        name: 'DK TableStore Mail',
        value: 'devsapp/dk-tablestore-mail',
    },
    {
        key: 'devsapp/start-jamstack',
        name: 'Serverless JamStack Example',
        value: 'devsapp/start-jamstack',
    },
    new inquirer.Separator("\n" + common_1.emoji('🧩') + " Serverless Dev Framework"),
    {
        key: 'devsapp/midway-hook-vue',
        name: 'Midway - Midway FaaS Framework',
        value: 'devsapp/midway-hook-vue',
    },
    {
        key: 'devsapp/start-malagu',
        name: 'Malagu - Malagu Framework',
        value: 'devsapp/start-malagu',
    },
    new inquirer.Separator("\n" + common_1.emoji('🍼') + " Dev Template for Serverless Devs"),
    {
        key: 'devsapp/start-application',
        name: 'Application Scaffolding',
        value: 'devsapp/start-application',
    },
    {
        key: 'devsapp/start-component',
        name: 'Component Scaffolding',
        value: 'devsapp/start-component',
    },
];
var data_small = [
    {
        key: 'alibaba',
        name: chalk_1.default.gray("[" + common_1.emoji('👋') + " Hello Serverless]") + "\tAlibaba Cloud Serverless",
        value: 'alibaba',
    },
    {
        key: 'aws',
        name: chalk_1.default.gray("[" + common_1.emoji('👋') + " Hello Serverless]") + "\tAWS Cloud Serverless",
        value: 'aws',
    },
    {
        key: 'tencent',
        name: chalk_1.default.gray("[" + common_1.emoji('👋') + " Hello Serverless]") + "\tTencent Cloud Serverless",
        value: 'tencent',
    },
    {
        key: 'devsapp/dk-http',
        name: chalk_1.default.gray("[" + common_1.emoji('🚀') + " DK Framework]") + "\tDK HTTP API",
        value: 'devsapp/dk-http',
    },
    {
        key: 'devsapp/dk-tablestore-mail',
        name: chalk_1.default.gray("[" + common_1.emoji('🚀') + " DK Framework]") + "\tDK TableStore Mail",
        value: 'devsapp/dk-tablestore-mail',
    },
    // {
    //   key: 'devsapp/start-component',
    //   name: 'FullStack Website',
    //   value: 'devsapp/start-component',
    // },
    {
        key: 'devsapp/midway-hook-vue',
        name: chalk_1.default.gray("[" + common_1.emoji('🧩') + " Serverless Dev]") + "\tMidway - Midway FaaS Framework",
        value: 'devsapp/midway-hook-vue',
    },
    {
        key: 'devsapp/start-malagu',
        name: chalk_1.default.gray("[" + common_1.emoji('🧩') + " Serverless Dev]") + "\tMalagu - Malagu Framework",
        value: 'devsapp/start-malagu',
    },
    {
        key: 'devsapp/start-application',
        name: chalk_1.default.gray("[" + common_1.emoji('🍼') + " Dev Template]]") + "\tApplication Scaffolding",
        value: 'devsapp/start-application',
    },
    {
        key: 'devsapp/start-component',
        name: chalk_1.default.gray("[" + common_1.emoji('🍼') + " Dev Template]]") + "\tComponent Scaffolding",
        value: 'devsapp/start-component',
    },
];
var alibaba_data = [
    new inquirer.Separator("\n" + common_1.emoji('👏') + " Event Function"),
    {
        key: 'devsapp/start-fc-event-nodejs12',
        name: 'Node.js 12 Example',
        value: 'devsapp/start-fc-event-nodejs12',
    },
    {
        key: 'devsapp/start-fc-event-nodejs10',
        name: 'Node.js 10 Example',
        value: 'devsapp/start-fc-event-nodejs10',
    },
    {
        key: 'devsapp/start-fc-event-python3',
        name: 'Python3 Example',
        value: 'devsapp/start-fc-event-python3',
    },
    {
        key: 'devsapp/start-fc-event-python2',
        name: 'Python2 Example',
        value: 'devsapp/start-fc-event-python2',
    },
    {
        key: 'devsapp/start-fc-event-php7',
        name: 'PHP7.2 Example',
        value: 'devsapp/start-fc-event-php7',
    },
    {
        key: 'devsapp/start-fc-event-java8',
        name: 'Java8 Example',
        value: 'devsapp/start-fc-event-java8',
    },
    new inquirer.Separator("\n" + common_1.emoji('🌏') + " HTTP Function"),
    {
        key: 'devsapp/start-fc-http-nodejs12',
        name: 'Node.js 12 Example',
        value: 'devsapp/start-fc-http-nodejs12',
    },
    {
        key: 'devsapp/start-fc-http-nodejs10',
        name: 'Node.js 10 Example',
        value: 'devsapp/start-fc-http-nodejs10',
    },
    {
        key: 'devsapp/start-fc-http-python3',
        name: 'Python3 Example',
        value: 'devsapp/start-fc-http-python3',
    },
    {
        key: 'devsapp/start-fc-http-python2',
        name: 'Python2 Example',
        value: 'devsapp/start-fc-http-python2',
    },
    {
        key: 'devsapp/start-fc-http-php7',
        name: 'PHP7.2 Example',
        value: 'devsapp/start-fc-http-php7',
    },
    {
        key: 'devsapp/start-fc-http-java8',
        name: 'Java8 Example',
        value: 'devsapp/start-fc-http-java8',
    },
    new inquirer.Separator("\n" + common_1.emoji('🚕') + " Project Example"),
    // {
    //   key: 'devsapp/start-fc-http-nodejs12',
    //   name: 'Chatroom - Websocket Example',
    //   value: 'devsapp/start-fc-http-nodejs12',
    // },
    {
        key: 'devsapp/todolist-app',
        name: 'TodoList - Node.js Example',
        value: 'devsapp/todolist-app',
    },
    {
        key: 'devsapp/django-blog',
        name: 'Django Blog - Python Example',
        value: 'devsapp/django-blog',
    },
    {
        key: 'devsapp/puppeteer-app',
        name: 'Puppeteer - Front-end Example',
        value: 'devsapp/puppeteer-app',
    },
    {
        key: 'devsapp/image-prediction-app',
        name: 'Image Prediction - AI Example',
        value: 'devsapp/image-prediction-app',
    },
    {
        key: 'devsapp/ffmpeg-app',
        name: 'Video Processing - FFmpeg Example',
        value: 'devsapp/ffmpeg-app',
    },
    new inquirer.Separator("\n" + common_1.emoji('🚢') + " Web Framework Example"),
    {
        key: 'devsapp/start-express',
        name: 'Express - Node.js Framework',
        value: 'devsapp/start-express',
    },
    {
        key: 'devsapp/start-flask',
        name: 'Flask - Python Framework',
        value: 'devsapp/start-flask',
    },
    {
        key: 'devsapp/start-springboot',
        name: 'SpringBoot - Java Framework',
        value: 'devsapp/start-springboot',
    },
    {
        key: 'devsapp/start-zblog',
        name: 'Zblog - PHP Framework',
        value: 'devsapp/start-zblog',
    },
    new inquirer.Separator("\n" + common_1.emoji('🎡') + " Static Website"),
    {
        key: 'devsapp/website-vue',
        name: 'Vue - Front-end Framework',
        value: 'devsapp/website-vue',
    },
    {
        key: 'devsapp/website-react',
        name: 'React - Front-end Framework',
        value: 'devsapp/website-react',
    },
    {
        key: 'devsapp/website-docusaurus',
        name: 'Docusaurus - Static Web Framework',
        value: 'devsapp/website-docusaurus',
    },
    {
        key: 'devsapp/website-hexo',
        name: 'Hexo - Static Web Framework',
        value: 'devsapp/website-hexo',
    },
    {
        key: 'devsapp/website-vuepress',
        name: 'Vuepress - Static Web Framework',
        value: 'devsapp/website-vuepress',
    },
];
var alibaba_data_small = [
    {
        key: 'devsapp/start-fc-event-nodejs12',
        name: chalk_1.default.gray("[" + common_1.emoji('👏') + " Event Function]") + "\tNode.js 12 Example",
        value: 'devsapp/start-fc-event-nodejs12',
    },
    {
        key: 'devsapp/start-fc-event-nodejs10',
        name: chalk_1.default.gray("[" + common_1.emoji('👏') + " Event Function]") + "\tNode.js 10 Example",
        value: 'devsapp/start-fc-event-nodejs10',
    },
    {
        key: 'devsapp/start-fc-event-python3',
        name: chalk_1.default.gray("[" + common_1.emoji('👏') + " Event Function]") + "\tPython3 Example",
        value: 'devsapp/start-fc-event-python3',
    },
    {
        key: 'devsapp/start-fc-event-python2',
        name: chalk_1.default.gray("[" + common_1.emoji('👏') + " Event Function]") + "\tPython2 Example",
        value: 'devsapp/start-fc-event-python2',
    },
    {
        key: 'devsapp/start-fc-event-php7',
        name: chalk_1.default.gray("[" + common_1.emoji('👏') + " Event Function]") + "\tPHP7.2 Example",
        value: 'devsapp/start-fc-event-php7',
    },
    {
        key: 'devsapp/start-fc-event-java8',
        name: chalk_1.default.gray("[" + common_1.emoji('👏') + " Event Function]") + "\tJava8 Example",
        value: 'devsapp/start-fc-event-java8',
    },
    {
        key: 'devsapp/start-fc-http-nodejs12',
        name: chalk_1.default.gray("[" + common_1.emoji('🌏') + " HTTP Function]") + "\tNode.js 12 Example",
        value: 'devsapp/start-fc-http-nodejs12',
    },
    {
        key: 'devsapp/start-fc-http-nodejs10',
        name: chalk_1.default.gray("[" + common_1.emoji('🌏') + " HTTP Function]") + "\tNode.js 10 Example",
        value: 'devsapp/start-fc-http-nodejs10',
    },
    {
        key: 'devsapp/start-fc-http-python3',
        name: chalk_1.default.gray("[" + common_1.emoji('🌏') + " HTTP Function]") + "\tPython3 Example",
        value: 'devsapp/start-fc-http-python3',
    },
    {
        key: 'devsapp/start-fc-http-python2',
        name: chalk_1.default.gray("[" + common_1.emoji('🌏') + " HTTP Function]") + "\tPython2 Example",
        value: 'devsapp/start-fc-http-python2',
    },
    {
        key: 'devsapp/start-fc-http-php7',
        name: chalk_1.default.gray("[" + common_1.emoji('🌏') + " HTTP Function]") + "\tPHP7.2 Example",
        value: 'devsapp/start-fc-http-php7',
    },
    {
        key: 'devsapp/start-fc-http-java8',
        name: chalk_1.default.gray("[" + common_1.emoji('🌏') + " HTTP Function]") + "\tJava8 Example",
        value: 'devsapp/start-fc-http-java8',
    },
    {
        key: 'devsapp/todolist-app',
        name: chalk_1.default.gray("[" + common_1.emoji('🚕') + " Project Example]") + "\tTodoList - Node.js Example",
        value: 'devsapp/todolist-app',
    },
    {
        key: 'devsapp/django-blog',
        name: chalk_1.default.gray("[" + common_1.emoji('🚕') + " Project Example]") + "\tDjango Blog - Python Example",
        value: 'devsapp/django-blog',
    },
    {
        key: 'devsapp/puppeteer-app',
        name: chalk_1.default.gray("[" + common_1.emoji('🚕') + " Project Example]") + "\tPuppeteer - Front-end Example",
        value: 'devsapp/puppeteer-app',
    },
    {
        key: 'devsapp/image-prediction-app',
        name: chalk_1.default.gray("[" + common_1.emoji('🚕') + " Project Example]") + "\tImage Prediction - AI Example",
        value: 'devsapp/image-prediction-app',
    },
    {
        key: 'devsapp/ffmpeg-app',
        name: chalk_1.default.gray("[" + common_1.emoji('🚕') + " Project Example]") + "\tVideo Processing - FFmpeg Example",
        value: 'devsapp/ffmpeg-app',
    },
    {
        key: 'devsapp/start-express',
        name: chalk_1.default.gray("[" + common_1.emoji('🚢') + " Web Framework]") + "\tExpress - Node.js Framework",
        value: 'devsapp/start-express',
    },
    {
        key: 'devsapp/start-flask',
        name: chalk_1.default.gray("[" + common_1.emoji('🚢') + " Web Framework]") + "\tFlask - Python Framework",
        value: 'devsapp/start-flask',
    },
    {
        key: 'devsapp/start-springboot',
        name: chalk_1.default.gray("[" + common_1.emoji('🚢') + " Web Framework]") + "\tSpringBoot - Java Framework",
        value: 'devsapp/start-springboot',
    },
    {
        key: 'devsapp/start-zblog',
        name: chalk_1.default.gray("[" + common_1.emoji('🚢') + " Web Framework]") + "\tZblog - PHP Framework",
        value: 'devsapp/start-zblog',
    },
    {
        key: 'devsapp/website-vue',
        name: chalk_1.default.gray("[" + common_1.emoji('🎡') + " Static Website]") + "\tVue - Front-end Framework",
        value: 'devsapp/website-vue',
    },
    {
        key: 'devsapp/website-react',
        name: chalk_1.default.gray("[" + common_1.emoji('🎡') + " Static Website]") + "\tReact - Front-end Framework",
        value: 'devsapp/website-react',
    },
    {
        key: 'devsapp/website-docusaurus',
        name: chalk_1.default.gray("[" + common_1.emoji('🎡') + " Static Website]") + "\tDocusaurus - Static Web Framework",
        value: 'devsapp/website-docusaurus',
    },
    {
        key: 'devsapp/website-hexo',
        name: chalk_1.default.gray("[" + common_1.emoji('🎡') + " Static Website]") + "\tHexo - Static Web Framework",
        value: 'devsapp/website-hexo',
    },
    {
        key: 'devsapp/website-vuepress',
        name: chalk_1.default.gray("[" + common_1.emoji('🎡') + " Static Website]") + "\tVuepress - Static Web Framework",
        value: 'devsapp/website-vuepress',
    },
];
var aws_data = [
    {
        key: 'devscomp/start-lambda',
        name: 'nodejs12.x-httpe',
        value: 'devscomp/start-lambda',
    },
];
var tencent_data = [
    {
        key: 'devscomp/start-scf',
        name: 'nodejs12.x-http',
        value: 'devscomp/start-scf',
    },
];
exports.APPLICATION_TEMPLATE = [
    {
        type: 'autocomplete',
        name: 'template',
        message: 'Hello, serverlessor. Which template do you like? \nPlease select or input: ',
        loop: true,
        pageSize: 20,
        source: function (answersSoFar, input) {
            if (!input) {
                return process.env['serverless_devs_temp_height'] == '1' ? data : data_small;
            }
            return data.filter(function (item) { return item.name && item.name.indexOf(input) !== -1; });
        },
    },
];
exports.ALIBABA_APPLICATION_TEMPLATE = [
    {
        type: 'autocomplete',
        name: 'template',
        message: ' Which Alibaba Cloud Serverless template do you like? \nPlease select or input: ',
        loop: true,
        pageSize: 20,
        source: function (answersSoFar, input) {
            if (!input) {
                return process.env['serverless_devs_temp_height'] == '1' ? alibaba_data : alibaba_data_small;
            }
            return alibaba_data.filter(function (item) { return item.name && item.name.indexOf(input) !== -1; });
        },
    },
];
exports.TENCENT_APPLICATION_TEMPLATE = [
    {
        type: 'autocomplete',
        name: 'template',
        message: ' Which Tencent Cloud Serverless template do you like? \nPlease select or input: ',
        loop: false,
        pageSize: 20,
        source: function (answersSoFar, input) {
            if (!input) {
                return tencent_data;
            }
            return tencent_data.filter(function (item) { return item.name && item.name.indexOf(input) !== -1; });
        },
    },
];
exports.AWS_APPLICATION_TEMPLATE = [
    {
        type: 'autocomplete',
        name: 'template',
        message: ' Which AWS Cloud Serverless template do you like? \nPlease select or input: ',
        loop: false,
        pageSize: 20,
        source: function (answersSoFar, input) {
            if (!input) {
                return aws_data;
            }
            return aws_data.filter(function (item) { return item.name && item.name.indexOf(input) !== -1; });
        },
    },
];
exports.PROJECT_NAME_INPUT = [
    {
        type: 'input',
        name: 'projectName',
        message: 'Please input your project name (init dir)',
    },
];
//# sourceMappingURL=data:application/json;base64, 