source: trip-planner-front/node_modules/@angular/compiler/src/config.js@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 5.7 KB
RevLine 
[6a3a178]1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8(function (factory) {
9 if (typeof module === "object" && typeof module.exports === "object") {
10 var v = factory(require, exports);
11 if (v !== undefined) module.exports = v;
12 }
13 else if (typeof define === "function" && define.amd) {
14 define("@angular/compiler/src/config", ["require", "exports", "@angular/compiler/src/core", "@angular/compiler/src/util"], factory);
15 }
16})(function (require, exports) {
17 "use strict";
18 Object.defineProperty(exports, "__esModule", { value: true });
19 exports.preserveWhitespacesDefault = exports.CompilerConfig = void 0;
20 var core_1 = require("@angular/compiler/src/core");
21 var util_1 = require("@angular/compiler/src/util");
22 var CompilerConfig = /** @class */ (function () {
23 function CompilerConfig(_a) {
24 var _b = _a === void 0 ? {} : _a, _c = _b.defaultEncapsulation, defaultEncapsulation = _c === void 0 ? core_1.ViewEncapsulation.Emulated : _c, _d = _b.useJit, useJit = _d === void 0 ? true : _d, _e = _b.jitDevMode, jitDevMode = _e === void 0 ? false : _e, _f = _b.missingTranslation, missingTranslation = _f === void 0 ? null : _f, preserveWhitespaces = _b.preserveWhitespaces, strictInjectionParameters = _b.strictInjectionParameters;
25 this.defaultEncapsulation = defaultEncapsulation;
26 this.useJit = !!useJit;
27 this.jitDevMode = !!jitDevMode;
28 this.missingTranslation = missingTranslation;
29 this.preserveWhitespaces = preserveWhitespacesDefault(util_1.noUndefined(preserveWhitespaces));
30 this.strictInjectionParameters = strictInjectionParameters === true;
31 }
32 return CompilerConfig;
33 }());
34 exports.CompilerConfig = CompilerConfig;
35 function preserveWhitespacesDefault(preserveWhitespacesOption, defaultSetting) {
36 if (defaultSetting === void 0) { defaultSetting = false; }
37 return preserveWhitespacesOption === null ? defaultSetting : preserveWhitespacesOption;
38 }
39 exports.preserveWhitespacesDefault = preserveWhitespacesDefault;
40});
41//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29tcGlsZXIvc3JjL2NvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7Ozs7Ozs7Ozs7Ozs7SUFFSCxtREFBcUU7SUFDckUsbURBQW1DO0lBRW5DO1FBUUUsd0JBQVksRUFjTjtnQkFkTSxxQkFjUixFQUFFLEtBQUEsRUFiSiw0QkFBaUQsRUFBakQsb0JBQW9CLG1CQUFHLHdCQUFpQixDQUFDLFFBQVEsS0FBQSxFQUNqRCxjQUFhLEVBQWIsTUFBTSxtQkFBRyxJQUFJLEtBQUEsRUFDYixrQkFBa0IsRUFBbEIsVUFBVSxtQkFBRyxLQUFLLEtBQUEsRUFDbEIsMEJBQXlCLEVBQXpCLGtCQUFrQixtQkFBRyxJQUFJLEtBQUEsRUFDekIsbUJBQW1CLHlCQUFBLEVBQ25CLHlCQUF5QiwrQkFBQTtZQVN6QixJQUFJLENBQUMsb0JBQW9CLEdBQUcsb0JBQW9CLENBQUM7WUFDakQsSUFBSSxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsTUFBTSxDQUFDO1lBQ3ZCLElBQUksQ0FBQyxVQUFVLEdBQUcsQ0FBQyxDQUFDLFVBQVUsQ0FBQztZQUMvQixJQUFJLENBQUMsa0JBQWtCLEdBQUcsa0JBQWtCLENBQUM7WUFDN0MsSUFBSSxDQUFDLG1CQUFtQixHQUFHLDBCQUEwQixDQUFDLGtCQUFXLENBQUMsbUJBQW1CLENBQUMsQ0FBQyxDQUFDO1lBQ3hGLElBQUksQ0FBQyx5QkFBeUIsR0FBRyx5QkFBeUIsS0FBS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