/**
 * This file is part of the MedSafe application which is commercial software created by MedVision360 B.V.
 * The source code is proprietary and confidential.
 *
 * Unauthorized copying of this file, via any medium is strictly prohibited.
 *
 * Copyright (c) by MedVision360 B.V. All rights reserved.
 *
 * For the application name: io.medrecord.medsafe
 */
import { __decorate } from "tslib";
import { Component, Input } from '@angular/core';
import { TooltipPosition, TooltipStyle } from '../../models';
var TooltipComponent = /** @class */ (function () {
    function TooltipComponent() {
        this.position = TooltipPosition.BOTTOM;
        this.style = TooltipStyle.DARK;
        this.openDelay = 0;
        this.closeDelay = 0;
    }
    __decorate([
        Input()
    ], TooltipComponent.prototype, "position", void 0);
    __decorate([
        Input()
    ], TooltipComponent.prototype, "style", void 0);
    __decorate([
        Input()
    ], TooltipComponent.prototype, "openDelay", void 0);
    __decorate([
        Input()
    ], TooltipComponent.prototype, "closeDelay", void 0);
    __decorate([
        Input()
    ], TooltipComponent.prototype, "text", void 0);
    TooltipComponent = __decorate([
        Component({
            selector: 'app-tooltip',
            template: "<div class=\"container--tooltip\"\n     [ngbTooltip]=\"text\"\n     [placement]=\"position\"\n     [tooltipClass]=\"style\"\n     [openDelay]=\"openDelay\"\n     [closeDelay]=\"closeDelay\">\n  <ng-content></ng-content>\n</div>\n",
            styles: ["/*!\n * This file is part of the MedSafe application which is commercial software created by MedVision360 B.V.\n *  The source code is proprietary and confidential.\n *\n *  Unauthorized copying of this file, via any medium is strictly prohibited.\n *\n *  Copyright (c) by MedVision360 B.V. All rights reserved.\n *\n *  For the application name: io.medrecord.medsafe\n */:host{position:relative}::ng-deep .tooltip_dark{background-color:var(--primary-color)}::ng-deep .tooltip_dark .tooltip-inner{background-color:var(--primary-color)}::ng-deep .tooltip_dark .arrow::before{border-bottom-color:var(--primary-color);margin-bottom:5px}::ng-deep .tooltip_warning{background-color:var(--warning-color)}::ng-deep .tooltip_warning .tooltip-inner{background-color:var(--warning-color)}::ng-deep .tooltip_warning .arrow::before{border-bottom-color:var(--warning-color);margin-bottom:5px}::ng-deep .tooltip_error{background-color:var(--error-color)}::ng-deep .tooltip_error .tooltip-inner{background-color:var(--error-color)}::ng-deep .tooltip_error .arrow::before{border-bottom-color:var(--error-color);margin-bottom:5px}"]
        })
    ], TooltipComponent);
    return TooltipComponent;
}());
export { TooltipComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHRpcC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AbWVkcmVjb3JkL3VpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJsaWIvc2hhcmVkL2NvbXBvbmVudHMvdG9vbHRpcC90b29sdGlwLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7O0dBU0c7O0FBRUgsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDL0MsT0FBTyxFQUFDLGVBQWUsRUFBRSxZQUFZLEVBQUMsTUFBTSxjQUFjLENBQUM7QUFPM0Q7SUFpQkU7UUFkQSxhQUFRLEdBQW9CLGVBQWUsQ0FBQyxNQUFNLENBQUM7UUFHbkQsVUFBSyxHQUFpQixZQUFZLENBQUMsSUFBSSxDQUFDO1FBR3hDLGNBQVMsR0FBRyxDQUFDLENBQUM7UUFHZCxlQUFVLEdBQUcsQ0FBQyxDQUFDO0lBS0MsQ0FBQztJQWRqQjtRQURDLEtBQUssRUFBRTtzREFDMkM7SUFHbkQ7UUFEQyxLQUFLLEVBQUU7bURBQ2dDO0lBR3hDO1FBREMsS0FBSyxFQUFFO3VEQUNNO0lBR2Q7UUFEQyxLQUFLLEVBQUU7d0RBQ087SUFHZjtRQURDLEtBQUssRUFBRTtrREFDSztJQWZGLGdCQUFnQjtRQUw1QixTQUFTLENBQUM7WUFDVCxRQUFRLEVBQUUsYUFBYTtZQUN2QixpUEFBdUM7O1NBRXhDLENBQUM7T0FDVyxnQkFBZ0IsQ0Fr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