"use strict";
/*
 * @license
 * Copyright Endlessjs. All Rights Reserved.
 * Licensed under the MIT License. See License.txt in the project root for license information.
 */
Object.defineProperty(exports, "__esModule", { value: true });
var layoutStart = "<el-layout>\n\n  <el-layout-header fixed>\n  <!-- Insert header here -->\n  </el-layout-header>\n\n  <el-layout-column>\n";
var layoutEnd = "  </el-layout-column>\n\n  <el-layout-footer fixed>\n  <!-- Insert footer here -->\n  </el-layout-footer>\n\n</el-layout>";
function wrapInlineTemplateInLayout(template) {
    return " `\n" + padd(layoutStart, 4) + "\n" + padd(template, 4) + "\n" + padd(layoutEnd, 4) + "\n";
}
exports.wrapInlineTemplateInLayout = wrapInlineTemplateInLayout;
function wrapHtmlFileTemplateInLayout(template) {
    return layoutStart + "\n" + padd(template, 4) + "\n" + layoutEnd + "\n";
}
exports.wrapHtmlFileTemplateInLayout = wrapHtmlFileTemplateInLayout;
/**
 * Adds padding to the each line of the multyline string.
 * */
function padd(text, paddLen) {
    return text
        .split('\n')
        .map(function (line) { return "" + ' '.repeat(paddLen) + line; })
        .join('\n');
}
