var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { CdkTree } from '@angular/cdk/tree';
import { ChangeDetectionStrategy, Component, ViewChild, ViewEncapsulation } from '@angular/core';
import { NtTreeNodeOutletDirective } from './outlet.directive';
var NtTreeComponent = (function (_super) {
    __extends(NtTreeComponent, _super);
    function NtTreeComponent() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    NtTreeComponent_1 = NtTreeComponent;
    var NtTreeComponent_1;
    __decorate([
        ViewChild(NtTreeNodeOutletDirective, { static: true })
    ], NtTreeComponent.prototype, "_nodeOutlet", void 0);
    NtTreeComponent = NtTreeComponent_1 = __decorate([
        Component({
            selector: 'nt-tree, [nt-tree]',
            template: "<ng-container ntTreeNodeOutlet></ng-container>",
            encapsulation: ViewEncapsulation.None,
            changeDetection: ChangeDetectionStrategy.OnPush,
            providers: [
                { provide: CdkTree, useExisting: NtTreeComponent_1 }
            ],
            host: {
                'class': 'nt-tree'
            }
        })
    ], NtTreeComponent);
    return NtTreeComponent;
}(CdkTree));
export { NtTreeComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2Z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