import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "./tooltip.directive";
import * as i2 from "./tooltip-content.directive";
function TooltipComponent_div_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵprojection(1, 1);
    i0.ɵɵelementEnd();
} }
const _c0 = [[["", 8, "fusiontooltiptrigger"]], [["", 8, "fusiontooltipcontent"]]];
const _c1 = [".fusionTooltipTrigger", ".fusionTooltipContent"];
export class TooltipComponent {
    constructor() {
        /** @internal */
        this.tooltipText = '';
    }
    /** @internal */
    set fusionTooltipText(value) {
        this.tooltipText = value;
    }
    /** @internal */
    set tooltipConfiguration(value) {
        this.tooltipConfig = { ...value };
    }
    static { this.ɵfac = function TooltipComponent_Factory(t) { return new (t || TooltipComponent)(); }; }
    static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TooltipComponent, selectors: [["fusion-tooltip"]], inputs: { fusionTooltipText: "fusionTooltipText", tooltipConfiguration: "tooltipConfiguration" }, ngContentSelectors: _c1, decls: 5, vars: 2, consts: [[1, "tooltip-container", 3, "fusionTooltip", "configuration"], ["tooltipTriggerElement", ""], [4, "fusionTooltipContent"]], template: function TooltipComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵprojectionDef(_c0);
            i0.ɵɵelementStart(0, "div", 0)(1, "div", null, 1);
            i0.ɵɵprojection(3);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(4, TooltipComponent_div_4_Template, 2, 0, "div", 2);
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵproperty("fusionTooltip", ctx.tooltipText)("configuration", ctx.tooltipConfig);
        } }, dependencies: [i1.TooltipDirective, i2.TooltipContentDirective], styles: [".tooltip-container[_ngcontent-%COMP%]{display:inline-block;position:relative}"], changeDetection: 0 }); }
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TooltipComponent, [{
        type: Component,
        args: [{ selector: 'fusion-tooltip', template: `
        <div class="tooltip-container" [fusionTooltip]="tooltipText" [configuration]="tooltipConfig">
            <div #tooltipTriggerElement>
                <ng-content select=".fusionTooltipTrigger"></ng-content>
            </div>
            <div *fusionTooltipContent>
                <ng-content select=".fusionTooltipContent"></ng-content>
            </div>
        </div>
    `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".tooltip-container{display:inline-block;position:relative}\n"] }]
    }], null, { fusionTooltipText: [{
            type: Input
        }], tooltipConfiguration: [{
            type: Input
        }] }); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TooltipComponent, { className: "TooltipComponent", filePath: "tooltip.component.ts", lineNumber: 26 }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHRpcC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mdXNpb24tdWkvY29tcG9uZW50cy90b29sdGlwL3YzL3Rvb2x0aXAuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7OztJQVU1RCwyQkFBMkI7SUFDdkIscUJBQXdEO0lBQzVELGlCQUFNOzs7O0FBYWxCLE1BQU0sT0FBTyxnQkFBZ0I7SUF0QjdCO1FBa0NJLGdCQUFnQjtRQUNoQixnQkFBVyxHQUFXLEVBQUUsQ0FBQztLQUM1QjtJQWJHLGdCQUFnQjtJQUNoQixJQUFhLGlCQUFpQixDQUFDLEtBQWE7UUFDeEMsSUFBSSxDQUFDLFdBQVcsR0FBRyxLQUFLLENBQUM7SUFDN0IsQ0FBQztJQUNELGdCQUFnQjtJQUNoQixJQUFhLG9CQUFvQixDQUFDLEtBQTJCO1FBQ3p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ICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgIDxkaXYgKmZ1c2lvblRvb2x0aXBDb250ZW50PlxuICAgICAgICAgICAgICAgIDxuZy1jb250ZW50IHNlbGVjdD1cIi5mdXNpb25Ub29sdGlwQ29udGVudFwiPjwvbmctY29udGVudD5cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICA8L2Rpdj5cbiAgICBgLFxuICAgIHN0eWxlczogW1xuICAgICAgICBgXG4gICAgICAgICAgICAudG9vbHRpcC1jb250YWluZXIge1xuICAgICAgICAgICAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgICAgICAgICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgICAgICAgICB9XG4gICAgICAgIGBcbiAgICBdLFxuICAgIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoXG59KVxuZXhwb3J0IGNsYXNzIFRvb2x0aXBDb21wb25lbnQge1xuICAgIC8qKiBAaW50ZXJuYWwgKi9cbiAgICBASW5wdXQoKSBzZXQgZnVzaW9uVG9vbHRpcFRleHQodmFsdWU6IHN0cmluZykge1xuICAgICAgICB0aGlzLnRvb2x0aXBUZXh0ID0gdmFsdWU7XG4gICAgfVxuICAgIC8qKiBAaW50ZXJuYWwgKi9cbiAgICBASW5wdXQoKSBzZXQgdG9vbHRpcENvbmZpZ3VyYXRpb24odmFsdWU6IHRvb2x0aXBDb25maWd1cmF0aW9uKSB7XG4gICAgICAgIHRoaXMudG9vbHRpcENvbmZpZyA9IHsuLi52YWx1ZX07XG4gICAgfVxuXG4gICAgLyoqIEBpbnRlcm5hbCAqL1xuICAgIHRvb2x0aXBDb25maWc6IHRvb2x0aXBDb25maWd1cmF0aW9uO1xuICAgIC8qKiBAaW50ZXJuYWwgKi9cbiAgICB0b29sdGlwVGV4dDogc3RyaW5nID0gJyc7XG59XG4iXX0=