/**
 * 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';
let TooltipComponent = class TooltipComponent {
    constructor() {
        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);
export { TooltipComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHRpcC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AbWVkcmVjb3JkL3VpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJsaWIvc2hhcmVkL2NvbXBvbmVudHMvdG9vbHRpcC90b29sdGlwLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7O0dBU0c7O0FBRUgsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDL0MsT0FBTyxFQUFDLGVBQWUsRUFBRSxZQUFZLEVBQUMsTUFBTSxjQUFjLENBQUM7QUFPM0QsSUFBYSxnQkFBZ0IsR0FBN0IsTUFBYSxnQkFBZ0I7SUFpQjNCO1FBZEEsYUFBUSxHQUFvQixlQUFlLENBQUMsTUFBTSxDQUFDO1FBR25ELFVBQUssR0FBaUIsWUFBWSxDQUFDLElBQUksQ0FBQztRQUd4QyxjQUFTLEdBQUcsQ0FBQyxDQUFDO1FBR2QsZUFBVSxHQUFHLENBQUMsQ0FBQztJQUtDLENBQUM7Q0FDbEIsQ0FBQTtBQWZDO0lBREMsS0FBSyxFQUFFO2tEQUMyQztBQUduRDtJQURDLEtBQUssRUFBRTsrQ0FDZ0M7QUFHeEM7SUFEQyxLQUFLLEVBQUU7bURBQ007QUFHZDtJQURDLEtBQUssRUFBRTtvREFDTztBQUdmO0lBREMsS0FBSyxFQUFFOzhDQUNLO0FBZkYsZ0JBQWdCO0lBTDVCLFNBQVMsQ0FBQztRQUNULFFBQVEsRUFBRSxhQUFhO1FBQ3ZCLGlQQUF1Qzs7S0FFeEMsQ0FBQztH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