import { Component, Input, TemplateRef } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
export class TooltipComponent {
    constructor() {
    }
    ngOnInit() {
    }
    get contentType() {
        if (this.content instanceof TemplateRef) {
            return 'template';
        }
        return 'primitive';
    }
}
TooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.4", ngImport: i0, type: TooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
TooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.4", type: TooltipComponent, selector: "[ui-tooltip]", inputs: { content: ["ui-tooltip", "content"] }, ngImport: i0, template: "<ng-content></ng-content>\n<div class=\"tooltip\" [ngSwitch]=\"contentType\">\n  <ng-container *ngSwitchCase=\"'primitive'\">{{content}}</ng-container>\n  <ng-container *ngSwitchCase=\"'template'\">\n    <ng-container [ngTemplateOutlet]=\"content\"></ng-container>\n  </ng-container>\n</div>\n", styles: [""], directives: [{ type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.4", ngImport: i0, type: TooltipComponent, decorators: [{
            type: Component,
            args: [{ selector: '[ui-tooltip]', template: "<ng-content></ng-content>\n<div class=\"tooltip\" [ngSwitch]=\"contentType\">\n  <ng-container *ngSwitchCase=\"'primitive'\">{{content}}</ng-container>\n  <ng-container *ngSwitchCase=\"'template'\">\n    <ng-container [ngTemplateOutlet]=\"content\"></ng-container>\n  </ng-container>\n</div>\n", styles: [""] }]
        }], ctorParameters: function () { return []; }, propDecorators: { content: [{
                type: Input,
                args: ['ui-tooltip']
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIj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