text: !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("ngx-bootstrap/utils"),require("ngx-bootstrap/component-loader"),require("ngx-bootstrap/positioning"),require("rxjs"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-bootstrap/tooltip",["exports","@angular/core","ngx-bootstrap/utils","ngx-bootstrap/component-loader","ngx-bootstrap/positioning","rxjs","@angular/common"],e):e(((t=t||self)["ngx-bootstrap"]=t["ngx-bootstrap"]||{},t["ngx-bootstrap"].tooltip={}),t.ng.core,t.utils,t.componentLoader,t.positioning,t.rxjs,t.ng.common)}(this,(function(t,e,o,i,n,s,r){"use strict";
  /*! *****************************************************************************
      Copyright (c) Microsoft Corporation. All rights reserved.
      Licensed under the Apache License, Version 2.0 (the "License"); you may not use
      this file except in compliance with the License. You may obtain a copy of the
      License at http://www.apache.org/licenses/LICENSE-2.0
  
      THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
      KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
      WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
      MERCHANTABLITY OR NON-INFRINGEMENT.
  
      See the Apache Version 2.0 License for specific language governing permissions
      and limitations under the License.
      ***************************************************************************** */function p(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}var a=function(){function t(){this.adaptivePosition=!0,this.placement="top",this.triggers="hover focus",this.delay=0}return t.decorators=[{type:e.Injectable}],t}();var l=function(){function t(t){Object.assign(this,t)}return Object.defineProperty(t.prototype,"isBs3",{get:function(){return o.isBs3()},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){this.classMap={in:!1,fade:!1},this.classMap[this.placement]=!0,this.classMap["tooltip-"+this.placement]=!0,this.classMap.in=!0,this.animation&&(this.classMap.fade=!0),this.containerClass&&(this.classMap[this.containerClass]=!0)},t.decorators=[{type:e.Component,args:[{selector:"bs-tooltip-container",changeDetection:e.ChangeDetectionStrategy.OnPush,host:{"[class]":'"tooltip in tooltip-" + placement + " " + "bs-tooltip-" + placement + " " + placement + " " + containerClass',"[class.show]":"!isBs3","[class.bs3]":"isBs3","[attr.id]":"this.id",role:"tooltip"},template:'\n    <div class="tooltip-arrow arrow"></div>\n    <div class="tooltip-inner"><ng-content></ng-content></div>\n    ',styles:["\n    :host.tooltip {\n      display: block;\n      pointer-events: none;\n    }\n    :host.bs3.tooltip.top>.arrow {\n      margin-left: -2px;\n    }\n    :host.bs3.tooltip.bottom {\n      margin-top: 0px;\n    }\n    :host.bs3.bs-tooltip-left, :host.bs3.bs-tooltip-right{\n      margin: 0px;\n    }\n    :host.bs3.bs-tooltip-right .arrow, :host.bs3.bs-tooltip-left .arrow {\n      margin: .3rem 0;\n    }\n  "]}]}],t.ctorParameters=function(){return[{type:a}]},t}();var c=0,u=function(){function t(t,o,i,n,s,r){this._elementRef=n,this._renderer=s,this._positionService=r,this.tooltipId=c++,this.tooltipChange=new e.EventEmitter,this.containerClass="",this.tooltipAnimation=!0,this.tooltipFadeDuration=150,this.tooltipStateChanged=new e.EventEmitter,this._tooltip=o.createLoader(this._elementRef,t,this._renderer).provide({provide:a,useValue:i}),Object.assign(this,i),this.onShown=this._tooltip.onShown,this.onHidden=this._tooltip.onHidden}return Object.defineProperty(t.prototype,"isOpen",{get:function(){return this._tooltip.isShown},set:function(t){t?this.show():this.hide()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"htmlContent",{set:function(t){o.warnOnce("tooltipHtml was deprecated, please use `tooltip` instead"),this.tooltip=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_placement",{set:function(t){o.warnOnce("tooltipPlacement was deprecated, please use `placement` instead"),this.placement=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_isOpen",{get:function(){return o.warnOnce("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen},set:function(t){o.warnOnce("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_enable",{get:function(){return o.warnOnce("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled},set:function(t){o.warnOnce("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled=!t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_appendToBody",{get:function(){return o.warnOnce('tooltipAppendToBody was deprecated, please use `container="body"` instead'),"body"===this.container},set:function(t){o.warnOnce('tooltipAppendToBody was deprecated, please use `container="body"` instead'),this.container=t?"body":this.container},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_popupClass",{set:function(t){o.warnOnce("tooltipClass deprecated")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_tooltipContext",{set:function(t){o.warnOnce("tooltipContext deprecated")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_tooltipPopupDelay",{set:function(t){o.warnOnce("tooltipPopupDelay is deprecated, use `delay` instead"),this.delay=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_tooltipTrigger",{get:function(){return o.warnOnce("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers},set:function(t){o.warnOnce("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers=(t||"").toString()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this._tooltip.listen({triggers:this.triggers,show:function(){return t.show()}}),this.tooltipChange.subscribe((function(e){e||t._tooltip.hide()})),this.onShown.subscribe((function(){t.setAriaDescribedBy()})),this.onHidden.subscribe((function(){t.setAriaDescribedBy()}))},t.prototype.setAriaDescribedBy=function(){this._ariaDescribedby=this.isOpen?"tooltip-"+this.tooltipId:null,this._ariaDescribedby?this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ariaDescribedby):this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby")},t.prototype.toggle=function(){if(this.isOpen)return this.hide();this.show()},t.prototype.show=function(){var t=this;if(this._positionService.setOptions({modifiers:{flip:{enabled:this.adaptivePosition},preventOverflow:{enabled:this.adaptivePosition}}}),!(this.isOpen||this.isDisabled||this._delayTimeoutId)&&this.tooltip){var e=function(){t._delayTimeoutId&&(t._delayTimeoutId=void 0),t._tooltip.attach(l).to(t.container).position({attachment:t.placement}).show({content:t.tooltip,placement:t.placement,containerClass:t.containerClass,id:"tooltip-"+t.tooltipId})},i=function(){t._tooltipCancelShowFn&&t._tooltipCancelShowFn()};this.delay?(this._delaySubscription&&this._delaySubscription.unsubscribe(),this._delaySubscription=s.timer(this.delay).subscribe((function(){e(),i()})),this.triggers&&o.parseTriggers(this.triggers).forEach((function(e){t._tooltipCancelShowFn=t._renderer.listen(t._elementRef.nativeElement,e.close,(function(){t._delaySubscription.unsubscribe(),i()}))}))):e()}},t.prototype.hide=function(){var t=this;this._delayTimeoutId&&(clearTimeout(this._delayTimeoutId),this._delayTimeoutId=void 0),this._tooltip.isShown&&(this._tooltip.instance.classMap.in=!1,setTimeout((function(){t._tooltip.hide()}),this.tooltipFadeDuration))},t.prototype.ngOnDestroy=function(){this._tooltip.dispose(),this.tooltipChange.unsubscribe(),this._delaySubscription&&this._delaySubscription.unsubscribe(),this.onShown.unsubscribe(),this.onHidden.unsubscribe()},t.decorators=[{type:e.Directive,args:[{selector:"[tooltip], [tooltipHtml]",exportAs:"bs-tooltip"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:i.ComponentLoaderFactory},{type:a},{type:e.ElementRef},{type:e.Renderer2},{type:n.PositioningService}]},t.propDecorators={adaptivePosition:[{type:e.Input}],tooltip:[{type:e.Input}],tooltipChange:[{type:e.Output}],placement:[{type:e.Input}],triggers:[{type:e.Input}],container:[{type:e.Input}],containerClass:[{type:e.Input}],isOpen:[{type:e.Input}],isDisabled:[{type:e.Input}],delay:[{type:e.Input}],onShown:[{type:e.Output}],onHidden:[{type:e.Output}],htmlContent:[{type:e.Input,args:["tooltipHtml"]}],_placement:[{type:e.Input,args:["tooltipPlacement"]}],_isOpen:[{type:e.Input,args:["tooltipIsOpen"]}],_enable:[{type:e.Input,args:["tooltipEnable"]}],_appendToBody:[{type:e.Input,args:["tooltipAppendToBody"]}],tooltipAnimation:[{type:e.Input}],_popupClass:[{type:e.Input,args:["tooltipClass"]}],_tooltipContext:[{type:e.Input,args:["tooltipContext"]}],_tooltipPopupDelay:[{type:e.Input,args:["tooltipPopupDelay"]}],tooltipFadeDuration:[{type:e.Input}],_tooltipTrigger:[{type:e.Input,args:["tooltipTrigger"]}],tooltipStateChanged:[{type:e.Output}]},function(t,e,o,i){var n,s=arguments.length,r=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,o,i);else for(var p=t.length-1;p>=0;p--)(n=t[p])&&(r=(s<3?n(r):s>3?n(e,o,r):n(e,o))||r);s>3&&r&&Object.defineProperty(e,o,r)}([o.OnChange(),p("design:type",Object)],t.prototype,"tooltip",void 0),t}();var d=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[a,i.ComponentLoaderFactory,n.PositioningService]}},t.decorators=[{type:e.NgModule,args:[{imports:[r.CommonModule],declarations:[u,l],exports:[u],entryComponents:[l]}]}],t}();t.TooltipConfig=a,t.TooltipContainerComponent=l,t.TooltipDirective=u,t.TooltipModule=d,Object.defineProperty(t,"__esModule",{value:!0})}));
  //# sourceMappingURL=ngx-bootstrap-tooltip.umd.min.js.map