import { Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
export class HighlightTreeComponent {
    tree;
    isSource;
    highlight;
    constructor() { }
    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: HighlightTreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
    static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: HighlightTreeComponent, selector: "tld-highlight-tree", inputs: { tree: "tree", isSource: "isSource", highlight: "highlight" }, ngImport: i0, template: "<ng-template #highlightTree let-tree=\"tree\">\r\n\t<ng-container *ngIf=\"!tree.children\">\r\n\t\t<ng-container *ngIf=\"tree.text\">\r\n\t\t\t<span class=\"{{ tree.class }}\" [innerHTML]=\"tree.text\"></span>\r\n\t\t</ng-container>\r\n\t\t<ng-container *ngIf=\"!tree.text\">\r\n\t\t\t<br />\r\n\t\t</ng-container>\r\n\t</ng-container>\r\n\t<ng-container *ngIf=\"tree.children\">\r\n\t\t<span class=\"highlight-tree-child-wrapper {{ tree.class }}\">\r\n\t\t\t<ng-template ngFor let-child [ngForOf]=\"tree.children\">\r\n\t\t\t\t<ng-template [ngTemplateOutlet]=\"highlightTree\" [ngTemplateOutletContext]=\"{ tree: child }\"> </ng-template>\r\n\t\t\t</ng-template>\r\n\t\t</span>\r\n\t</ng-container>\r\n</ng-template>\r\n\r\n<div *ngIf=\"tree\" class=\"tld-highlight-tree\">\r\n\t<ng-template [ngTemplateOutlet]=\"highlightTree\" [ngTemplateOutletContext]=\"{ tree: tree }\"></ng-template>\r\n</div>\r\n", styles: ["span{white-space:pre-wrap}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: HighlightTreeComponent, decorators: [{
            type: Component,
            args: [{ selector: 'tld-highlight-tree', template: "<ng-template #highlightTree let-tree=\"tree\">\r\n\t<ng-container *ngIf=\"!tree.children\">\r\n\t\t<ng-container *ngIf=\"tree.text\">\r\n\t\t\t<span class=\"{{ tree.class }}\" [innerHTML]=\"tree.text\"></span>\r\n\t\t</ng-container>\r\n\t\t<ng-container *ngIf=\"!tree.text\">\r\n\t\t\t<br />\r\n\t\t</ng-container>\r\n\t</ng-container>\r\n\t<ng-container *ngIf=\"tree.children\">\r\n\t\t<span class=\"highlight-tree-child-wrapper {{ tree.class }}\">\r\n\t\t\t<ng-template ngFor let-child [ngForOf]=\"tree.children\">\r\n\t\t\t\t<ng-template [ngTemplateOutlet]=\"highlightTree\" [ngTemplateOutletContext]=\"{ tree: child }\"> </ng-template>\r\n\t\t\t</ng-template>\r\n\t\t</span>\r\n\t</ng-container>\r\n</ng-template>\r\n\r\n<div *ngIf=\"tree\" class=\"tld-highlight-tree\">\r\n\t<ng-template [ngTemplateOutlet]=\"highlightTree\" [ngTemplateOutletContext]=\"{ tree: tree }\"></ng-template>\r\n</div>\r\n", styles: ["span{white-space:pre-wrap}\n"] }]
        }], ctorParameters: () => [], propDecorators: { tree: [{
                type: Input
            }], isSource: [{
                type: Input
            }], highlight: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGlnaGxpZ2h0LXRyZWUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdGxkLXRyYW5zbGF0ZS9zcmMvbGliL21vZHVsZXMvdGxkLXRleHQvY29tcG9uZW50cy9oa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