/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Component, Input } from '@angular/core';
import { config } from '../../config';
var TooltipComponent = /** @class */ (function () {
    function TooltipComponent() {
    }
    /**
     * @return {?}
     */
    TooltipComponent.prototype.ngOnInit = /**
     * @return {?}
     */
    function () {
        this.initValues();
    };
    /**
     * @return {?}
     */
    TooltipComponent.prototype.initValues = /**
     * @return {?}
     */
    function () {
        var defaultProps = TooltipComponent.defaultProps;
        this.text = this.textInput || defaultProps.text;
        this.position = this.positionInput || defaultProps.position;
        this.className = this.classNameInput || defaultProps.className;
        this.isFocused = defaultProps.isFocused;
        this.isHovered = defaultProps.isHovered;
    };
    /**
     * @param {?} event
     * @return {?}
     */
    TooltipComponent.prototype.onMouseEnter = /**
     * @param {?} event
     * @return {?}
     */
    function (event) {
        this.isHovered = true;
    };
    /**
     * @param {?} event
     * @return {?}
     */
    TooltipComponent.prototype.onMouseLeave = /**
     * @param {?} event
     * @return {?}
     */
    function (event) {
        this.isHovered = false;
    };
    /**
     * @param {?} event
     * @return {?}
     */
    TooltipComponent.prototype.onFocus = /**
     * @param {?} event
     * @return {?}
     */
    function (event) {
        this.isFocused = true;
    };
    /**
     * @param {?} event
     * @return {?}
     */
    TooltipComponent.prototype.onBlur = /**
     * @param {?} event
     * @return {?}
     */
    function (event) {
        this.isFocused = false;
    };
    TooltipComponent.defaultProps = {
        className: '',
        isFocused: false,
        isHovered: false,
        position: 'top',
        text: ''
    };
    TooltipComponent.decorators = [
        { type: Component, args: [{
                    selector: config.components.prefix + "-tooltip }",
                    template: "<div class=\"tooltip\"\n  [ngClass]=\"className\"\n  (focus)=\"onFocus($event)\"\n  (blur)=\"onBlur($event)\"\n  (mouseenter)=\"onMouseEnter($event)\"\n  (mouseleave)=\"onMouseLeave($event)\"\n  tabindex=\"0\">\n  <div class=\"tooltip-container tooltip-position-{{ position }}\"\n    [class.active]=\"isFocused || isHovered\">\n    {{ text }}\n  </div>\n  <ng-content></ng-content>\n</div>\n",
                    styles: [".tooltip{cursor:pointer;display:inline-block;outline:0;position:relative;-webkit-tap-highlight-color:transparent}.tooltip-container{background-color:#232f34;border-radius:100px;color:#fff;font-size:12px;font-weight:200;opacity:0;padding:6px 12px;position:absolute;transition-duration:250ms;transition-property:opacity,visibility;transition-timing-function:ease;visibility:hidden;z-index:-1}.tooltip-container.active{opacity:1;visibility:visible;z-index:10}.tooltip-container.tooltip-position-bottom,.tooltip-container.tooltip-position-top{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.tooltip-container.tooltip-position-bottom::before,.tooltip-container.tooltip-position-top::before{content:'';height:8px;left:0;position:absolute;right:0}.tooltip-container.tooltip-position-left,.tooltip-container.tooltip-position-right{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.tooltip-container.tooltip-position-left::before,.tooltip-container.tooltip-position-right::before{bottom:0;content:'';position:absolute;top:0;width:8px}.tooltip-container.tooltip-position-left{margin-right:8px;right:100%}.tooltip-container.tooltip-position-left::before{left:100%}.tooltip-container.tooltip-position-right{left:100%;margin-left:8px}.tooltip-container.tooltip-position-right::before{right:100%}.tooltip-container.tooltip-position-bottom{margin-top:8px;top:100%}.tooltip-container.tooltip-position-bottom::before{bottom:100%}.tooltip-container.tooltip-position-top{bottom:100%;margin-bottom:8px}.tooltip-container.tooltip-position-top::before{top:100%}"]
                }] }
    ];
    TooltipComponent.propDecorators = {
        classNameInput: [{ type: Input, args: ['className',] }],
        positionInput: [{ type: Input, args: ['position',] }],
        textInput: [{ type: Input, args: ['text',] }]
    };
    return TooltipComponent;
}());
export { TooltipComponent };
if (false) {
    /** @type {?} */
    TooltipComponent.defaultProps;
    /** @type {?} */
    TooltipComponent.prototype.classNameInput;
    /** @type {?} */
    TooltipComponent.prototype.positionInput;
    /** @type {?} */
    TooltipComponent.prototype.textInput;
    /** @type {?} */
    TooltipComponent.prototype.className;
    /** @type {?} */
    TooltipComponent.prototype.isFocused;
    /** @type {?} */
    TooltipComponent.prototype.isHovered;
    /** @type {?} */
    TooltipComponent.prototype.position;
    /** @type {?} */
    TooltipComponent.prototype.text;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHRpcC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9tYXRlcmlhbGl6ZS1hbmd1bGFyLyIsInNvdXJjZXMiOlsiYXBwL2NvbXBvbmVudHMvdG9vbHRpcC90b29sdGlwLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDekQsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUd0QztJQUFBO0lBc0RBLENBQUM7Ozs7SUE5QkMsbUNBQVE7OztJQUFSO1FBQ0UsSUFBSSxDQUFDLFVBQVUsRUFBRSxDQUFDO0lBQ3BCLENBQUM7Ozs7SUFFRCxxQ0FBVTs7O0lBQVY7UUFDVSxJQUFBLDRDQUFZO1FBRXBCLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDLFNBQVMsSUFBSSxZQUFZLENBQUMsSUFBSSxDQUFDO1FBQ2hELElBQUksQ0FBQyxRQUFRLEdBQUcsSUFBSSxDQUFDLGFBQWEsSUFBSSxZQUFZLENBQUMsUUFBUSxDQUFDO1FBQzVELElBQUksQ0FBQyxTQUFTLEdBQUcsSUFBSSxDQUFDLGNBQWMsSUFBSSxZQUFZLENBQUMsU0FBUyxDQUFDO1FBRS9ELElBQUksQ0FBQyxTQUFTLEdBQUcsWUFBWSxDQUFDLFNBQVMsQ0FBQztRQUN4QyxJQUFJLENBQUMsU0FBUyxHQUFHLFlBQVksQ0FBQyxTQUFTLENBQUM7SUFDMUMsQ0FBQzs7Ozs7SUFFRCx1Q0FBWTs7O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