"use strict";
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
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());
    });
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.updateIndexHtml = void 0;
const core_1 = require("@angular-devkit/core");
const schematics_1 = require("@angular/cdk/schematics");
/** Adds the Material Design fonts to the index HTML file. */
function updateIndexHtml(options) {
    return (host) => __awaiter(this, void 0, void 0, function* () {
        let include = "";
        if (options.uiFramework == 'primeNG') {
            include = ` <link id="theme-css" rel="stylesheet" type="text/css" href="assets/theme/lara-dark-teal/theme.css">`;
        }
        (0, schematics_1.appendHtmlElementToHead)(host, (0, core_1.normalize)(`/${options.sourceRoot}/index.html`), include);
    });
}
exports.updateIndexHtml = updateIndexHtml;
//# sourceMappingURL=updateIndexHtml.js.map