/**
 * @fileoverview added by tsickle
 * Generated from: components/tooltip/tooltip.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Input, Component } from '@angular/core';
import { OverlayAnimation } from '../core/directives/overlay-animation';
export class TlToolTip {
    /**
     * @return {?}
     */
    getClassByPlacement() {
        if (this.options.placement.includes('left')) {
            return 'left';
        }
        if (this.options.placement.includes('right')) {
            return 'right';
        }
        if (this.options.placement.includes('top')) {
            return 'top';
        }
        if (this.options.placement.includes('bottom')) {
            return 'bottom';
        }
    }
}
TlToolTip.decorators = [
    { type: Component, args: [{
                selector: 'tl-tooltip',
                template: "<div class=\"tooltip-text\"\n     [style.width]=\"options?.width\"\n     [style.color]=\"options?.fontColor\"\n     [style.background]=\"options?.color\">\n  <span>{{ options?.text }}</span>\n  <div [style.border-color]=\"options?.color\"\n       [class]=\"'arrow ' + getClassByPlacement()\"></div>\n</div>\n\n",
                animations: [OverlayAnimation],
                styles: [".tooltip-text{background-color:#242525;border-radius:3px;color:#fff;display:inline-block;font-family:Lato,Segoe UI,Helvetica;font-size:1em!important;height:auto;margin:5px;padding:5px;text-align:center;width:180px;word-wrap:break-word;z-index:1}.tooltip-text .arrow{border-color:#242525;border-style:solid;border-width:0 6px 6px 0;box-sizing:border-box;height:10px;position:absolute;width:10px}.tooltip-text .left{right:0!important;top:calc(50% - 5px)!important;transform:rotate(-45deg)!important}.tooltip-text .right{left:0;top:calc(50% - 5px);transform:rotate(135deg)}.tooltip-text .bottom{left:calc(50% - 5px);top:0;transform:rotate(-135deg)}.tooltip-text .top{left:calc(50% - 5px);transform:rotate(45deg)}"]
            }] }
];
TlToolTip.propDecorators = {
    options: [{ type: Input }]
};
if (false) {
    /** @type {?} */
    TlToolTip.prototype.options;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHRpcC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzI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