import { Component, TemplateRef, ViewChild, ViewContainerRef } from '@angular/core';
import { TemplatePortal } from '@angular/cdk/portal';
import * as i0 from "@angular/core";
const _c0 = ["euiTabLabel"];
function EuiTabLabelComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵprojection(0);
} }
const _c1 = ["*"];
export class EuiTabLabelComponent {
    constructor(viewContainerRef) {
        this.viewContainerRef = viewContainerRef;
    }
    ngAfterViewInit() {
        this.templatePortal = new TemplatePortal(this.templateRef, this.viewContainerRef);
    }
}
/** @nocollapse */ EuiTabLabelComponent.ɵfac = function EuiTabLabelComponent_Factory(t) { return new (t || EuiTabLabelComponent)(i0.ɵɵdirectiveInject(i0.ViewContainerRef)); };
/** @nocollapse */ EuiTabLabelComponent.ɵcmp = i0.ɵɵdefineComponent({ type: EuiTabLabelComponent, selectors: [["eui-tab-label"], ["euiTabLabel"]], viewQuery: function EuiTabLabelComponent_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: [["euiTabLabel", ""]], template: function EuiTabLabelComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵprojectionDef();
        i0.ɵɵtemplate(0, EuiTabLabelComponent_ng_template_0_Template, 1, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
    } }, encapsulation: 2 });
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(EuiTabLabelComponent, [{
        type: Component,
        args: [{
                selector: 'eui-tab-label, euiTabLabel',
                template: `<ng-template #euiTabLabel><ng-content></ng-content></ng-template>`,
            }]
    }], function () { return [{ type: i0.ViewContainerRef }]; }, { templateRef: [{
            type: ViewChild,
            args: ['euiTabLabel']
        }] }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXVpLXRhY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