-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathchunk-2ESQBAVR.js
More file actions
94 lines (93 loc) · 3.35 KB
/
chunk-2ESQBAVR.js
File metadata and controls
94 lines (93 loc) · 3.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
import {
EmbeddedEditor,
injectEmbeddedTutorialManager,
injectNodeRuntimeSandbox
} from "./chunk-LSUOPI32.js";
import "./chunk-W5GVIWPV.js";
import "./chunk-G7P5OSF4.js";
import "./chunk-4QI4G4N7.js";
import "./chunk-77HKTVJH.js";
import "./chunk-UTU76KKQ.js";
import "./chunk-CKZVQYF5.js";
import "./chunk-BQZYSKAP.js";
import "./chunk-FSDA2DZH.js";
import {
takeUntilDestroyed
} from "./chunk-7F6UZAKO.js";
import "./chunk-OF2BY3RZ.js";
import "./chunk-DAHHMHGV.js";
import "./chunk-UGE24TTQ.js";
import "./chunk-IP3YSDXJ.js";
import "./chunk-H7FALWCD.js";
import "./chunk-OV2CFM4K.js";
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
DestroyRef,
EnvironmentInjector,
__name,
__publicField,
forkJoin,
inject,
input,
setClassMetadata,
switchMap,
ɵsetClassDebugInfo,
ɵɵdefineComponent,
ɵɵelement
} from "./chunk-2CX5BJWG.js";
// src/app/features/home/components/home-editor.component.ts
var _CodeEditorComponent = class _CodeEditorComponent {
cdRef = inject(ChangeDetectorRef);
environmentInjector = inject(EnvironmentInjector);
destroyRef = inject(DestroyRef);
tutorialFiles = input.required(...ngDevMode ? [{ debugName: "tutorialFiles" }] : []);
constructor() {
this.loadEmbeddedEditor();
}
loadEmbeddedEditor() {
forkJoin([
injectNodeRuntimeSandbox(this.environmentInjector),
injectEmbeddedTutorialManager(this.environmentInjector)
]).pipe(switchMap(([nodeRuntimeSandbox, embeddedTutorialManager]) => embeddedTutorialManager.fetchAndSetTutorialFiles(this.tutorialFiles()).then(() => nodeRuntimeSandbox)), takeUntilDestroyed(this.destroyRef)).subscribe((nodeRuntimeSandbox) => {
this.cdRef.markForCheck();
nodeRuntimeSandbox.init();
});
}
};
__name(_CodeEditorComponent, "CodeEditorComponent");
__publicField(_CodeEditorComponent, "\u0275fac", /* @__PURE__ */ __name(function CodeEditorComponent_Factory(__ngFactoryType__) {
return new (__ngFactoryType__ || _CodeEditorComponent)();
}, "CodeEditorComponent_Factory"));
__publicField(_CodeEditorComponent, "\u0275cmp", /* @__PURE__ */ \u0275\u0275defineComponent({ type: _CodeEditorComponent, selectors: [["adev-code-editor"]], inputs: { tutorialFiles: [1, "tutorialFiles"] }, decls: 1, vars: 0, template: /* @__PURE__ */ __name(function CodeEditorComponent_Template(rf, ctx) {
if (rf & 1) {
\u0275\u0275element(0, "embedded-editor");
}
}, "CodeEditorComponent_Template"), dependencies: [EmbeddedEditor], encapsulation: 2, changeDetection: 0 }));
var CodeEditorComponent = _CodeEditorComponent;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(CodeEditorComponent, [{
type: Component,
args: [{
selector: "adev-code-editor",
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [EmbeddedEditor],
template: `<embedded-editor />`
}]
}], () => [], null);
})();
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(CodeEditorComponent, { className: "CodeEditorComponent", filePath: "src/app/features/home/components/home-editor.component.ts", lineNumber: 33 });
})();
export {
CodeEditorComponent
};
/*!
* @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.dev/license
*/
//# sourceMappingURL=chunk-2ESQBAVR.js.map