import { Component, TemplateRef, ViewChild, ViewContainerRef } from '@angular/core';
import { TemplatePortal } from '@angular/cdk/portal';
import * as i0 from "@angular/core";
const _c0 = ["euiTabContent"];
function EuiTabContentComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵprojection(0);
} }
const _c1 = ["*"];
export class EuiTabContentComponent {
    constructor(viewContainerRef) {
        this.viewContainerRef = viewContainerRef;
    }
    ngAfterViewInit() {
        this.templatePortal = new TemplatePortal(this.templateRef, this.viewContainerRef);
    }
}
/** @nocollapse */ EuiTabContentComponent.ɵfac = function EuiTabContentComponent_Factory(t) { return new (t || EuiTabContentComponent)(i0.ɵɵdirectiveInject(i0.ViewContainerRef)); };
/** @nocollapse */ EuiTabContentComponent.ɵcmp = i0.ɵɵdefineComponent({ type: EuiTabContentComponent, selectors: [["eui-tab-content"], ["euiTabContent"]], viewQuery: function EuiTabContentComponent_Query(rf, ctx) { if (rf & 1) {
        i0.ɵɵviewQuery(_c0, true);
    } if (rf & 2) {
        var _t;
        i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templateRef = _t.first);
    } }, ngContentSelectors: _c1, decls: 2, vars: 0, consts: [["euiTabContent", ""]], template: function EuiTabContentComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵprojectionDef();
        i0.ɵɵtemplate(0, EuiTabContentComponent_ng_template_0_Template, 1, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
    } }, encapsulation: 2 });
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(EuiTabContentComponent, [{
        type: Component,
        args: [{
                selector: 'eui-tab-content, euiTabContent',
                template: `<ng-template #euiTabContent><ng-content></ng-content></ng-template>`,
            }]
    }], function () { return [{ type: i0.ViewContainerRef }]; }, { templateRef: [{
            type: ViewChild,
            args: ['euiTabContent']
        }] }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXVpLXRhYi1jb250ZW50LmNvbXBv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