-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlive-example-live-example-module-ngfactory.769a139b67c0f7025ef1.js.map
1 lines (1 loc) · 24.2 KB
/
live-example-live-example-module-ngfactory.769a139b67c0f7025ef1.js.map
1
{"version":3,"sources":["webpack:///./src/app/shared/attribute-utils.ts","webpack:///./src/app/custom-elements/live-example/live-example.component.ts","webpack:///./src/app/custom-elements/live-example/live-example.module.ts","webpack:///./src/app/custom-elements/live-example/live-example.component.ngfactory.js.pre-build-optimizer.js","webpack:///./src/app/custom-elements/live-example/live-example.component.html","webpack:///./src/app/custom-elements/live-example/live-example.component.ts.EmbeddedStackblitzComponent.html","webpack:///./src/app/custom-elements/live-example/live-example.module.ngfactory.js.pre-build-optimizer.js"],"names":["getAttrValue","attrs","attr","key","find","a","hasOwnProperty","toLowerCase","undefined","boolFromValue","attrValue","def","trim","LIVE_EXAMPLE_BASE","document_service","ZIP_BASE","live_example_component_LiveExampleComponent","LiveExampleComponent","elementRef","location","el","attrMap","_i","_a","core","nativeElement","attributes","length","name","value","getAttrs","exampleDir","this","getExampleDir","path","stackblitzName","getStackblitzName","mode","getMode","enableDownload","getEnableDownload","stackblitz","getStackblitz","zip","getZip","title","getTitle","prototype","ngAfterContentInit","textContent","content","match","downloadOnly","isEmbedded","zipName","split","EmbeddedStackblitzComponent","ngAfterViewInit","iframe","src","live_example_module_LiveExampleModule","customElementComponent","RenderType_LiveExampleComponent","encapsulation","styles","data","View_LiveExampleComponent_2","_l","_ck","_v","component","View_LiveExampleComponent_1","View_EmbeddedStackblitzComponent_0","RenderType_EmbeddedStackblitzComponent","common","ngIf","_co","View_LiveExampleComponent_3","View_LiveExampleComponent_5","View_LiveExampleComponent_4","View_LiveExampleComponent_0","ngSwitch","ngSwitchCase","LiveExampleComponentNgFactory","__webpack_require__","d","__webpack_exports__","LiveExampleModuleNgFactory"],"mappings":"8HAyBM,SAAAA,EAAuBC,EAAgBC,GAC3C,IAAMC,EAAuB,iBAATD,EACdA,EACAA,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C,cAAe,EAAGC,QAD/B,oDAC2EC,UAE/G,SAAAO,EAA6CL,GAAM,OAAO3C,EAAA,GAAQ,GAAIA,EAAA,GAAQ,UAAW,GAAKkC,OAAQ,KExB5GS,MAAA3C,EAAA,iIAA2D,WCA3D4D,EAAAC,EAAAC,EAAA,+CAAAC,IAUA,IAAIA,EAA6B/D,EAAA,GAAQoC,KAA0B,SAAUO,GAAM,OAAO3C,EAAA,IAASA,EAAA,GAAQ,IAAKA,EAAA,EAA6BA,EAAA,KAAuC,GAAI2D,KAAqC,EAAG3D,EAAA,GAA8BA,EAAA,IAAkBA,EAAA,GAAQ,KAAMkD,EAAA,EAAmBA,EAAA,GAA0BlD,EAAA,GAAe,EAAGkD,EAAA,KAAyClD,EAAA,GAAQ,WAAYkD,EAAA,EAAiBA,EAAA,MAAsBlD,EAAA,GAAQ,WAAYoC,EAAsBA","file":"live-example-live-example-module-ngfactory.769a139b67c0f7025ef1.js","sourcesContent":["// Utilities for processing HTML element attributes\nimport { ElementRef } from '@angular/core';\n\nexport interface AttrMap {\n [key: string]: string;\n}\n\n/**\n * Get attribute map from element or ElementRef `attributes`.\n * Attribute map keys are forced lowercase for case-insensitive lookup.\n * @param el The source of the attributes.\n */\nexport function getAttrs(el: HTMLElement | ElementRef): AttrMap {\n const attrs: NamedNodeMap = el instanceof ElementRef ? el.nativeElement.attributes : el.attributes;\n const attrMap: AttrMap = {};\n for (const attr of attrs as any as Attr[] /* cast due to https://github.com/Microsoft/TypeScript/issues/2695 */) {\n attrMap[attr.name.toLowerCase()] = attr.value;\n }\n return attrMap;\n}\n\n/**\n * Return the attribute that matches `attr`.\n * @param attr Name of the attribute or a string of candidate attribute names.\n */\nexport function getAttrValue(attrs: AttrMap, attr: string | string[]): string | undefined {\n const key = (typeof attr === 'string')\n ? attr\n : attr.find(a => attrs.hasOwnProperty(a.toLowerCase()));\n\n return (key === undefined) ? undefined : attrs[key.toLowerCase()];\n}\n\n/**\n * Return the boolean state of an attribute value (if supplied)\n * @param attrValue The string value of some attribute (or undefined if attribute not present).\n * @param def Default boolean value when attribute is undefined.\n */\nexport function boolFromValue(attrValue: string | undefined, def: boolean = false) {\n return attrValue === undefined ? def : attrValue.trim() !== 'false';\n}\n\n/**\n * Return the boolean state of attribute from an element\n * @param el The source of the attributes.\n * @param atty Name of the attribute or a string of candidate attribute names.\n * @param def Default boolean value when attribute is undefined.\n */\nexport function getBoolFromAttribute(\n el: HTMLElement | ElementRef,\n attr: string | string[],\n def: boolean = false): boolean {\n return boolFromValue(getAttrValue(getAttrs(el), attr), def);\n}\n","/* tslint:disable component-selector */\nimport { AfterContentInit, AfterViewInit, Component, ElementRef, Input, ViewChild } from '@angular/core';\nimport { Location } from '@angular/common';\nimport { CONTENT_URL_PREFIX } from 'app/documents/document.service';\nimport { AttrMap, boolFromValue, getAttrs, getAttrValue } from 'app/shared/attribute-utils';\n\n\nconst LIVE_EXAMPLE_BASE = CONTENT_URL_PREFIX + 'live-examples/';\nconst ZIP_BASE = CONTENT_URL_PREFIX + 'zips/';\n\n/**\n * Angular.io Live Example Embedded Component\n *\n * Renders a link to a live/host example of the doc page.\n *\n * All attributes and the text content are optional\n *\n * Usage:\n * <live-example\n * [name=\"...\"] // name of the example directory\n * [stackblitz=\"...\"\"] // name of the stackblitz file (becomes part of zip file name as well)\n * [embedded] // embed the stackblitz in the doc page, else display in new browser tab (default)\n * [noDownload] // no downloadable zip option\n * [downloadOnly] // just the zip\n * [title=\"...\"]> // text for live example link and tooltip\n * text // higher precedence way to specify text for live example link and tooltip\n * </live-example>\n * Example:\n * <p>Run <live-example>Try the live example</live-example></p>.\n * // ~/resources/live-examples/{page}/stackblitz.json\n *\n * <p>Run <live-example name=\"toh-pt1\">this example</live-example></p>.\n * // ~/resources/live-examples/toh-pt1/stackblitz.json\n *\n * // Link to the default stackblitz in the toh-pt1 sample\n * // The title overrides default (\"live example\") with \"Tour of Heroes - Part 1\"\n * <p>Run <live-example name=\"toh-pt1\" title=\"Tour of Heroes - Part 1\"></live-example></p>.\n * // ~/resources/live-examples/toh-pt1/stackblitz.json\n *\n * <p>Run <live-example stackblitz=\"minimal\"></live-example></p>.\n * // ~/resources/live-examples/{page}/minimal.stackblitz.json\n *\n * // Embed the current page's default stackblitz\n * // Text within tag is \"live example\"\n * // No title (no tooltip)\n * <live-example embedded title=\"\"></live-example>\n * // ~/resources/live-examples/{page}/stackblitz.json\n *\n * // Displays within the document page as an embedded style stackblitz editor\n * <live-example name=\"toh-pt1\" embedded stackblitz=\"minimal\">Tour of Heroes - Part 1</live-example>\n * // ~/resources/live-examples/toh-pt1/minimal.stackblitz.json\n */\n@Component({\n selector: 'live-example',\n templateUrl: 'live-example.component.html'\n})\nexport class LiveExampleComponent implements AfterContentInit {\n\n readonly mode: 'default' | 'embedded' | 'downloadOnly';\n readonly enableDownload: boolean;\n readonly stackblitz: string;\n readonly zip: string;\n title: string;\n\n @ViewChild('content')\n private content: ElementRef;\n\n constructor(elementRef: ElementRef, location: Location) {\n const attrs = getAttrs(elementRef);\n const exampleDir = this.getExampleDir(attrs, location.path(false));\n const stackblitzName = this.getStackblitzName(attrs);\n\n this.mode = this.getMode(attrs);\n this.enableDownload = this.getEnableDownload(attrs);\n this.stackblitz = this.getStackblitz(exampleDir, stackblitzName, this.mode === 'embedded');\n this.zip = this.getZip(exampleDir, stackblitzName);\n this.title = this.getTitle(attrs);\n }\n\n ngAfterContentInit() {\n // Angular will sanitize this title when displayed, so it should be plain text.\n const textContent = this.content.nativeElement.textContent.trim();\n if (textContent) {\n this.title = textContent;\n }\n }\n\n private getEnableDownload(attrs: AttrMap) {\n const downloadDisabled = boolFromValue(getAttrValue(attrs, 'noDownload'));\n return !downloadDisabled;\n }\n\n private getExampleDir(attrs: AttrMap, path: string) {\n let exampleDir = getAttrValue(attrs, 'name');\n if (!exampleDir) {\n // Take the last path segment, excluding query params and hash fragment.\n const match = path.match(/[^/?#]+(?=\\/?(?:\\?|#|$))/);\n exampleDir = match ? match[0] : 'index';\n }\n return exampleDir.trim();\n }\n\n private getMode(this: LiveExampleComponent, attrs: AttrMap): typeof this.mode {\n const downloadOnly = boolFromValue(getAttrValue(attrs, 'downloadOnly'));\n const isEmbedded = boolFromValue(getAttrValue(attrs, 'embedded'));\n\n return downloadOnly ? 'downloadOnly'\n : isEmbedded ? 'embedded' :\n 'default';\n }\n\n private getStackblitz(exampleDir: string, stackblitzName: string, isEmbedded: boolean) {\n const urlQuery = isEmbedded ? '?ctl=1' : '';\n return `${LIVE_EXAMPLE_BASE}${exampleDir}/${stackblitzName}stackblitz.html${urlQuery}`;\n }\n\n private getStackblitzName(attrs: AttrMap) {\n const attrValue = (getAttrValue(attrs, 'stackblitz') || '').trim();\n return attrValue && `${attrValue}.`;\n }\n\n private getTitle(attrs: AttrMap) {\n return (getAttrValue(attrs, 'title') || '在线例子').trim();\n }\n\n private getZip(exampleDir: string, stackblitzName: string) {\n const zipName = exampleDir.split('/')[0];\n return `${ZIP_BASE}${exampleDir}/${stackblitzName}${zipName}.zip`;\n }\n}\n\n///// EmbeddedStackblitzComponent ///\n/**\n * Hides the <iframe> so we can test LiveExampleComponent without actually triggering\n * a call to stackblitz to load the iframe\n */\n@Component({\n selector: 'aio-embedded-stackblitz',\n template: `<iframe #iframe frameborder=\"0\" width=\"100%\" height=\"100%\"></iframe>`,\n styles: [ 'iframe { min-height: 400px; }' ]\n})\nexport class EmbeddedStackblitzComponent implements AfterViewInit {\n @Input() src: string;\n\n @ViewChild('iframe') iframe: ElementRef;\n\n ngAfterViewInit() {\n // DEVELOPMENT TESTING ONLY\n // this.src = 'https://angular.io/resources/live-examples/quickstart/ts/stackblitz.json';\n\n if (this.iframe) {\n // security: the `src` is always authored by the documentation team\n // and is considered to be safe\n this.iframe.nativeElement.src = this.src;\n }\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { EmbeddedStackblitzComponent, LiveExampleComponent } from './live-example.component';\nimport { WithCustomElementComponent } from '../element-registry';\n\n@NgModule({\n imports: [ CommonModule ],\n declarations: [ LiveExampleComponent, EmbeddedStackblitzComponent ],\n entryComponents: [ LiveExampleComponent ]\n})\nexport class LiveExampleModule implements WithCustomElementComponent {\n customElementComponent: Type<any> = LiveExampleComponent;\n}\n","/**\n * @fileoverview This file was generated by the Angular template compiler. Do not edit.\n *\n * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}\n * tslint:disable\n */ \nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"./live-example.component\";\nimport * as i2 from \"@angular/common\";\nvar styles_LiveExampleComponent = [];\nvar RenderType_LiveExampleComponent = i0.ɵcrt({ encapsulation: 2, styles: styles_LiveExampleComponent, data: {} });\nexport { RenderType_LiveExampleComponent as RenderType_LiveExampleComponent };\nfunction View_LiveExampleComponent_2(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, \"p\", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, [\" \\u4F60\\u8FD8\\u53EF\\u4EE5 \"])), (_l()(), i0.ɵeld(2, 0, null, null, 1, \"a\", [[\"download\", \"\"], [\"title\", \"\\u4E0B\\u8F7D\\u8303\\u4F8B\"]], [[8, \"href\", 4]], null, null, null, null)), (_l()(), i0.ɵted(-1, null, [\"\\u4E0B\\u8F7D\\u8FD9\\u4E2A\\u4F8B\\u5B50\"])), (_l()(), i0.ɵted(-1, null, [\"\\u3002 \"]))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.zip; _ck(_v, 2, 0, currVal_0); }); }\nfunction View_LiveExampleComponent_1(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 5, \"span\", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 2, \"div\", [], [[8, \"title\", 0]], null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 1, \"aio-embedded-stackblitz\", [], null, null, null, View_EmbeddedStackblitzComponent_0, RenderType_EmbeddedStackblitzComponent)), i0.ɵdid(3, 4243456, null, 0, i1.EmbeddedStackblitzComponent, [], { src: [0, \"src\"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_LiveExampleComponent_2)), i0.ɵdid(5, 16384, null, 0, i2.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, \"ngIf\"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_1 = _co.stackblitz; _ck(_v, 3, 0, currVal_1); var currVal_2 = _co.enableDownload; _ck(_v, 5, 0, currVal_2); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = i0.ɵinlineInterpolate(1, \"\", _co.title, \"\"); _ck(_v, 1, 0, currVal_0); }); }\nfunction View_LiveExampleComponent_3(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, \"span\", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, \"a\", [[\"download\", \"\"]], [[8, \"href\", 4], [8, \"title\", 0]], null, null, null, null)), (_l()(), i0.ɵted(2, null, [\"\", \"\"]))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.zip; var currVal_1 = i0.ɵinlineInterpolate(1, \"\", _co.title, \"\"); _ck(_v, 1, 0, currVal_0, currVal_1); var currVal_2 = _co.title; _ck(_v, 2, 0, currVal_2); }); }\nfunction View_LiveExampleComponent_5(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 3, \"span\", [], null, null, null, null, null)), (_l()(), i0.ɵted(-1, null, [\" / \"])), (_l()(), i0.ɵeld(2, 0, null, null, 1, \"a\", [[\"download\", \"\"], [\"title\", \"\\u4E0B\\u8F7D\\u8303\\u4F8B\"]], [[8, \"href\", 4]], null, null, null, null)), (_l()(), i0.ɵted(-1, null, [\"\\u4E0B\\u8F7D\\u8303\\u4F8B\"]))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.zip; _ck(_v, 2, 0, currVal_0); }); }\nfunction View_LiveExampleComponent_4(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, \"span\", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, \"a\", [[\"target\", \"_blank\"]], [[8, \"href\", 4], [8, \"title\", 0]], null, null, null, null)), (_l()(), i0.ɵted(2, null, [\"\", \"\"])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_LiveExampleComponent_5)), i0.ɵdid(4, 16384, null, 0, i2.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, \"ngIf\"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_3 = _co.enableDownload; _ck(_v, 4, 0, currVal_3); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.stackblitz; var currVal_1 = i0.ɵinlineInterpolate(1, \"\", _co.title, \"\"); _ck(_v, 1, 0, currVal_0, currVal_1); var currVal_2 = _co.title; _ck(_v, 2, 0, currVal_2); }); }\nexport function View_LiveExampleComponent_0(_l) { return i0.ɵvid(0, [i0.ɵqud(402653184, 1, { content: 0 }), (_l()(), i0.ɵeld(1, 0, [[1, 0], [\"content\", 1]], null, 1, \"span\", [[\"style\", \"display: none\"]], null, null, null, null, null)), i0.ɵncd(null, 0), (_l()(), i0.ɵeld(3, 0, null, null, 7, \"span\", [], null, null, null, null, null)), i0.ɵdid(4, 16384, null, 0, i2.NgSwitch, [], { ngSwitch: [0, \"ngSwitch\"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_LiveExampleComponent_1)), i0.ɵdid(6, 278528, null, 0, i2.NgSwitchCase, [i0.ViewContainerRef, i0.TemplateRef, i2.NgSwitch], { ngSwitchCase: [0, \"ngSwitchCase\"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_LiveExampleComponent_3)), i0.ɵdid(8, 278528, null, 0, i2.NgSwitchCase, [i0.ViewContainerRef, i0.TemplateRef, i2.NgSwitch], { ngSwitchCase: [0, \"ngSwitchCase\"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_LiveExampleComponent_4)), i0.ɵdid(10, 16384, null, 0, i2.NgSwitchDefault, [i0.ViewContainerRef, i0.TemplateRef, i2.NgSwitch], null, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.mode; _ck(_v, 4, 0, currVal_0); var currVal_1 = \"embedded\"; _ck(_v, 6, 0, currVal_1); var currVal_2 = \"downloadOnly\"; _ck(_v, 8, 0, currVal_2); }, null); }\nexport function View_LiveExampleComponent_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, \"live-example\", [], null, null, null, View_LiveExampleComponent_0, RenderType_LiveExampleComponent)), i0.ɵdid(1, 1097728, null, 0, i1.LiveExampleComponent, [i0.ElementRef, i2.Location], null, null)], null, null); }\nvar LiveExampleComponentNgFactory = i0.ɵccf(\"live-example\", i1.LiveExampleComponent, View_LiveExampleComponent_Host_0, {}, {}, [\"*\"]);\nexport { LiveExampleComponentNgFactory as LiveExampleComponentNgFactory };\nvar styles_EmbeddedStackblitzComponent = [\"iframe[_ngcontent-%COMP%] { min-height: 400px; }\"];\nvar RenderType_EmbeddedStackblitzComponent = i0.ɵcrt({ encapsulation: 0, styles: styles_EmbeddedStackblitzComponent, data: {} });\nexport { RenderType_EmbeddedStackblitzComponent as RenderType_EmbeddedStackblitzComponent };\nexport function View_EmbeddedStackblitzComponent_0(_l) { return i0.ɵvid(0, [i0.ɵqud(402653184, 1, { iframe: 0 }), (_l()(), i0.ɵeld(1, 0, [[1, 0], [\"iframe\", 1]], null, 0, \"iframe\", [[\"frameborder\", \"0\"], [\"height\", \"100%\"], [\"width\", \"100%\"]], null, null, null, null, null))], null, null); }\nexport function View_EmbeddedStackblitzComponent_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, \"aio-embedded-stackblitz\", [], null, null, null, View_EmbeddedStackblitzComponent_0, RenderType_EmbeddedStackblitzComponent)), i0.ɵdid(1, 4243456, null, 0, i1.EmbeddedStackblitzComponent, [], null, null)], null, null); }\nvar EmbeddedStackblitzComponentNgFactory = i0.ɵccf(\"aio-embedded-stackblitz\", i1.EmbeddedStackblitzComponent, View_EmbeddedStackblitzComponent_Host_0, { src: \"src\" }, {}, []);\nexport { EmbeddedStackblitzComponentNgFactory as EmbeddedStackblitzComponentNgFactory };\n","<!-- Content projection is used to get the content HTML provided to the component. -->\n<span #content style=\"display: none\"><ng-content></ng-content></span>\n\n<span [ngSwitch]=\"mode\">\n <span *ngSwitchCase=\"'embedded'\">\n <div title=\"{{title}}\">\n <aio-embedded-stackblitz [src]=\"stackblitz\"></aio-embedded-stackblitz>\n </div>\n <p *ngIf=\"enableDownload\">\n 你还可以 <a [href]=\"zip\" download title=\"下载范例\">下载这个例子</a>。\n </p>\n </span>\n <span *ngSwitchCase=\"'downloadOnly'\">\n <a [href]=\"zip\" download title=\"{{title}}\">{{title}}</a>\n </span>\n <span *ngSwitchDefault>\n <a [href]=\"stackblitz\" target=\"_blank\" title=\"{{title}}\">{{title}}</a>\n <span *ngIf=\"enableDownload\">\n / <a [href]=\"zip\" download title=\"下载范例\">下载范例</a>\n </span>\n </span>\n</span>\n","<iframe #iframe frameborder=\"0\" width=\"100%\" height=\"100%\"></iframe>","/**\n * @fileoverview This file was generated by the Angular template compiler. Do not edit.\n *\n * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}\n * tslint:disable\n */ \nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"./live-example.module\";\nimport * as i2 from \"./live-example.component.ngfactory\";\nimport * as i3 from \"@angular/common\";\nvar LiveExampleModuleNgFactory = i0.ɵcmf(i1.LiveExampleModule, [], function (_l) { return i0.ɵmod([i0.ɵmpd(512, i0.ComponentFactoryResolver, i0.ɵCodegenComponentFactoryResolver, [[8, [i2.LiveExampleComponentNgFactory]], [3, i0.ComponentFactoryResolver], i0.NgModuleRef]), i0.ɵmpd(4608, i3.NgLocalization, i3.NgLocaleLocalization, [i0.LOCALE_ID, [2, i3.ɵangular_packages_common_common_a]]), i0.ɵmpd(1073742336, i3.CommonModule, i3.CommonModule, []), i0.ɵmpd(1073742336, i1.LiveExampleModule, i1.LiveExampleModule, [])]); });\nexport { LiveExampleModuleNgFactory as LiveExampleModuleNgFactory };\n"],"sourceRoot":""}