Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@progress/kendo-angular-tooltip

Package Overview
Dependencies
Maintainers
1
Versions
837
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@progress/kendo-angular-tooltip - npm Package Compare versions

Comparing version 3.1.5-dev.202201261018 to 3.1.5

2

dist/cdn/main.js

@@ -5,2 +5,2 @@ /**-----------------------------------------------------------------------------------------

*-------------------------------------------------------------------------------------------*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-popup"),require("rxjs/operators"),require("rxjs"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@angular/common")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","@progress/kendo-angular-popup","rxjs/operators","rxjs","@progress/kendo-angular-common","@progress/kendo-angular-l10n","@progress/kendo-licensing","@angular/common"],t):"object"==typeof exports?exports.KendoAngularTooltip=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-popup"),require("rxjs/operators"),require("rxjs"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@angular/common")):e.KendoAngularTooltip=t(e.tslib,e["@angular/core"],e["@progress/kendo-angular-popup"],e["rxjs/operators"],e.rxjs,e["@progress/kendo-angular-common"],e["@progress/kendo-angular-l10n"],e["@progress/kendo-licensing"],e["@angular/common"])}(window,(function(e,t,o,i,n,r,s,p,a){return function(e){var t={};function o(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=e,o.c=t,o.d=function(e,t,i){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(i,n,function(t){return e[t]}.bind(null,n));return i},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=26)}([function(t,o){t.exports=e},function(e,o){e.exports=t},function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t){e.exports=n},function(e,t,o){"use strict";function i(e){return 9===e.nodeType}Object.defineProperty(t,"__esModule",{value:!0}),t.align=function(e,t){var o={},i={},n={};switch(e){case"top":o={horizontal:"center",vertical:"top"},i={horizontal:"center",vertical:"bottom"},n={horizontal:0,vertical:t};break;case"bottom":o={horizontal:"center",vertical:"bottom"},i={horizontal:"center",vertical:"top"},n={horizontal:0,vertical:t};break;case"right":o={horizontal:"right",vertical:"center"},i={horizontal:"left",vertical:"center"},n={horizontal:t,vertical:0};break;case"left":o={horizontal:"left",vertical:"center"},i={horizontal:"right",vertical:"center"},n={horizontal:t,vertical:0}}return{anchorAlign:o,popupAlign:i,popupMargin:n}},t.collision=function(e,t){return e||("top"===t||"bottom"===t?{horizontal:"fit",vertical:"flip"}:{horizontal:"flip",vertical:"fit"})},t.closestBySelector=function(e,t){if(e.closest)return e.closest(t);for(var o=Element.prototype.matches?function(e,t){return e.matches(t)}:function(e,t){return e.msMatchesSelector(t)},n=e;n&&!i(n);){if(o(n,t))return n;n=n.parentNode}},t.contains=function(e,t){return!!e&&(!i(e)&&(e.contains?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY):void 0))},t.hasParent=function(e,t){for(;e&&e!==t;)e=e.parentNode;return e},t.getCenterOffset=function(e,t,o){var i=e.getBoundingClientRect();return i[t]+i[o]/2},t.containsItem=function(e,t){return-1!==e.indexOf(t)}},function(e,t){e.exports=r},function(e,t){e.exports=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(7),s=o(4),p=o(13),a=o(14),u=o(17),c=o(9),l=o(10),d=o(11),h=function(){function e(e){this.localization=e,this.position="right",this.callout=!0,this.animation=!1,this.visible=!1,this.show=new n.EventEmitter,this.shown=new n.EventEmitter,this.hide=new n.EventEmitter,this.hidden=new n.EventEmitter,this._offset=6,this._width="auto",this._height="auto",this.subs=new s.Subscription,this._templateData=function(){return null},p.validatePackage(a.packageMetadata)}return Object.defineProperty(e.prototype,"offset",{get:function(){return this.callout?14+this._offset:this._offset},set:function(e){this._offset=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(e){this._width="number"==typeof e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(e){this._height="number"==typeof e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"templateData",{get:function(){return this._templateData},set:function(e){if(n.isDevMode&&"function"!=typeof e)throw new Error(u.ERRORS.templateData+" "+JSON.stringify(e)+".");this._templateData=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasAttributeHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subs.add(this.localization.changes.subscribe((function(t){var o=t.rtl;e.direction=o?"rtl":"ltr"})))},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.prototype.getCalloutPosition=function(){switch(this.position){case"top":return{"k-callout-s":!0};case"bottom":return{"k-callout-n":!0};case"left":return{"k-callout-e":!0};case"right":return{"k-callout-w":!0};default:return{"k-callout-s":!0}}},i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"offset",null),i.__decorate([n.HostBinding("style.width"),n.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"width",null),i.__decorate([n.HostBinding("style.height"),n.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"height",null),i.__decorate([n.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"subtitle",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"body",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"callout",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"animation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"templateData",null),i.__decorate([n.HostBinding("class.k-hidden"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"isHidden",null),i.__decorate([n.HostBinding("attr.aria-hidden"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"hasAttributeHidden",null),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],e.prototype,"show",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],e.prototype,"shown",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],e.prototype,"hide",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],e.prototype,"hidden",void 0),i.__decorate([n.ContentChild(c.PopoverTitleTemplateDirective,{static:!1}),i.__metadata("design:type",c.PopoverTitleTemplateDirective)],e.prototype,"titleTemplate",void 0),i.__decorate([n.ContentChild(l.PopoverBodyTemplateDirective,{static:!1}),i.__metadata("design:type",l.PopoverBodyTemplateDirective)],e.prototype,"bodyTemplate",void 0),i.__decorate([n.ContentChild(d.PopoverActionsTemplateDirective,{static:!1}),i.__metadata("design:type",d.PopoverActionsTemplateDirective)],e.prototype,"actionsTemplate",void 0),e=i.__decorate([n.Component({selector:"kendo-popover",providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.popover"}],template:'\n <div *ngIf="visible" role="tooltip" class="k-popover" [ngStyle]="{\'width.px\': width, \'height.px\': height}">\n <div class="k-popover-callout" [ngClass]="getCalloutPosition()" *ngIf="callout"></div>\n\n <div *ngIf="titleTemplate || title" class="k-popover-header">\n <ng-template *ngIf="titleTemplate"\n [ngTemplateOutlet]="titleTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n <ng-container *ngIf="title && !titleTemplate">\n {{ title }}\n </ng-container>\n </div>\n\n <div *ngIf="bodyTemplate || body" class="k-popover-body">\n <ng-template *ngIf="bodyTemplate"\n [ngTemplateOutlet]="bodyTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n <ng-container *ngIf="body && !bodyTemplate">\n {{ body }}\n </ng-container>\n </div>\n\n <div *ngIf="actionsTemplate" class="k-popover-actions k-actions k-hstack k-justify-content-between">\n <ng-template *ngIf="actionsTemplate"\n [ngTemplateOutlet]="actionsTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n </div>\n </div>\n '}),i.__metadata("design:paramtypes",[r.LocalizationService])],e)}();t.PopoverComponent=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([n.Directive({selector:"[kendoPopoverTitleTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],e)}();t.PopoverTitleTemplateDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([n.Directive({selector:"[kendoPopoverBodyTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],e)}();t.PopoverBodyTemplateDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([n.Directive({selector:"[kendoPopoverActionsTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],e)}();t.PopoverActionsTemplateDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(3),s=o(4),p=o(2),a=o(13),u=o(14),c=o(15),l=o(16),d=o(5),h=function(){function e(e,t,o,i,n,p){var c=this;this.tooltipWrapper=e,this.ngZone=t,this.renderer=o,this.popupService=i,this.filter="[title]",this.position="top",this.showAfter=100,this.callout=!0,this.closable=!1,this.offset=6,this.anchor=null,this.validPositions=["top","bottom","right","left"],this.validShowOptions=["hover","click","none"],a.validatePackage(u.packageMetadata),Object.assign(this,n,p),this.ngZone.runOutsideAngular((function(){var e=c.tooltipWrapper.nativeElement;c.anchorTitleSubscription=s.fromEvent(e,"mouseover").pipe(r.filter((function(){return""!==c.filter}))).subscribe((function(e){var t=d.closestBySelector(e.target,c.filter);t&&c.hideElementTitle({nativeElement:t})})),c.mouseOverSubscription=s.fromEvent(e,"mouseover").pipe(r.debounceTime(100),r.filter((function(){return""!==c.filter}))).subscribe((function(e){return c.onMouseOver(e)})),c.mouseOutSubscription=s.fromEvent(e,"mouseout").pipe(r.debounceTime(100)).subscribe((function(e){return c.onMouseOut(e)}))}))}return Object.defineProperty(e.prototype,"tooltipTemplate",{get:function(){return this.template},set:function(e){this.template=e},enumerable:!0,configurable:!0}),e.prototype.show=function(e){var t=this;if(!this.popupRef)if(e instanceof Element&&(e={nativeElement:e}),this.anchor=e,"hover"===this.showOn){if(this.popupRef)return;clearTimeout(this.showTimeout),this.showTimeout=window.setTimeout((function(){return t.showContent(t.anchor)}),this.showAfter)}else this.hideElementTitle(this.anchor),this.showContent(this.anchor)},e.prototype.hide=function(){clearTimeout(this.showTimeout);var e=this.anchor&&this.anchor.nativeElement;e&&e.getAttribute("data-title")&&(!e.getAttribute("title")&&e.hasAttribute("title")&&e.setAttribute("title",e.getAttribute("data-title")),e.setAttribute("data-title","")),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe(),this.closeClickSubscription&&this.closeClickSubscription.unsubscribe(),this.closePopup()},e.prototype.toggle=function(e,t){var o=this.anchor&&this.anchor.nativeElement;e instanceof Element&&(e={nativeElement:e}),o!==e.nativeElement&&this.hide(),o===e.nativeElement&&"click"===this.showOn&&this.hide(),void 0===t&&(t=!this.popupRef),t?this.show(e):this.hide()},e.prototype.ngOnInit=function(){void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties()},e.prototype.ngOnChanges=function(e){e.showOn&&this.subscribeClick()},e.prototype.ngAfterViewChecked=function(){this.popupRef&&this.anchor&&!d.hasParent(this.anchor.nativeElement||this.anchor,this.tooltipWrapper.nativeElement)&&(this.anchor=null,this.hide())},e.prototype.ngOnDestroy=function(){this.hide(),this.template=null,this.anchorTitleSubscription.unsubscribe(),this.mouseOverSubscription.unsubscribe(),this.mouseOutSubscription.unsubscribe(),this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe(),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe()},e.prototype.showContent=function(e){var t=this;(e.nativeElement.getAttribute("data-title")||this.template)&&(this.ngZone.run((function(){t.openPopup(e),t.bindContent(t.popupRef.content,e)})),this.popupRef.popupAnchorViewportLeave.pipe(r.take(1)).subscribe((function(){return t.hide()})))},e.prototype.bindContent=function(e,t){var o=this,i=e.instance;this.closeClickSubscription=i.close.subscribe((function(){o.hide()})),this.template?i.templateRef=this.template:i.templateString=this.anchor.nativeElement.getAttribute("data-title"),this.titleTemplate&&(i.titleTemplate=this.titleTemplate),i.closeTitle=this.closeTitle,i.anchor=t,i.callout=this.callout,i.closable=this.closable,i.position=this.position,i.tooltipWidth=this.tooltipWidth,i.tooltipHeight=this.tooltipHeight,this.popupRef.content.changeDetectorRef.detectChanges()},e.prototype.hideElementTitle=function(e){var t=e.nativeElement;t.getAttribute("title")&&(t.setAttribute("data-title",t.getAttribute("title")),t.setAttribute("title",""))},e.prototype.openPopup=function(e){var t=this,o=d.align(this.position,this.offset),i=o.anchorAlign,n=o.popupAlign,r=o.popupMargin;this.popupRef=this.popupService.open({anchor:e,anchorAlign:i,animate:!1,content:l.TooltipContentComponent,collision:d.collision(this.collision,this.position),margin:r,popupAlign:n,popupClass:"k-popup-transparent"}),this.renderer.addClass(this.popupRef.popupElement,"k-tooltip-wrapper"),this.tooltipClass&&this.renderer.addClass(this.popupRef.popupElement,this.tooltipClass);var p=this.popupRef.content.instance;p.callout&&(this.popupPositionChangeSubscription=this.popupRef.popupPositionChange.subscribe((function(e){var o=e.flip,i=!0===o.horizontal||!0===o.vertical;p.updateCalloutPosition(t.position,i)}))),"hover"===this.showOn&&this.ngZone.runOutsideAngular((function(){var e=t.popupRef.popupElement;t.popupMouseOutSubscription=s.fromEvent(e,"mouseout").subscribe((function(e){return t.onMouseOut(e)}))}))},e.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe()},e.prototype.subscribeClick=function(){var e=this;this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),"click"===this.showOn&&(this.mouseClickSubscription=s.fromEvent(document,"click").pipe(r.filter((function(){return""!==e.filter}))).subscribe((function(t){return e.onMouseClick(t,e.tooltipWrapper.nativeElement)})))},e.prototype.onMouseClick=function(e,t){var o=e.target,i=d.closestBySelector(o,this.filter),n=this.popupRef&&this.popupRef.popupElement;if(n){if(n.contains(o))return;if(this.closable)return}t.contains(o)&&i?this.toggle(i,!0):n&&this.hide()},e.prototype.onMouseOver=function(e){var t=d.closestBySelector(e.target,this.filter);"hover"===this.showOn&&t&&this.toggle(t,!0)},e.prototype.onMouseOut=function(e){if("hover"===this.showOn&&!this.closable){var t=this.popupRef&&this.popupRef.popupElement,o=e.relatedTarget;o&&this.anchor&&d.contains(this.anchor.nativeElement,o)||o&&d.contains(t,o)||this.hide()}},e.prototype.verifyProperties=function(){if(n.isDevMode()){if(!d.containsItem(this.validPositions,this.position))throw new Error("Invalid value provided for position property.The available options are 'top', 'bottom', 'left', or 'right'.");if(!d.containsItem(this.validShowOptions,this.showOn))throw new Error("Invalid value provided for showOn property.The available options are 'hover' or 'none'.")}},i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"filter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],e.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"showOn",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"showAfter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"callout",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"offset",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"tooltipWidth",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"tooltipClass",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"collision",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"closeTitle",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef),i.__metadata("design:paramtypes",[n.TemplateRef])],e.prototype,"tooltipTemplate",null),e=i.__decorate([n.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip"}),i.__param(4,n.Optional()),i.__param(5,n.Optional()),i.__param(5,n.Inject(c.TOOLTIP_SETTINGS)),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,n.Renderer2,p.PopupService,c.TooltipSettings,c.TooltipSettings])],e)}();t.TooltipDirective=h},function(e,t){e.exports=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-tooltip",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1643192233,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1);t.TOOLTIP_SETTINGS=new n.InjectionToken("kendo-ui-tooltip-settings");var r=function(){function e(){}return e=i.__decorate([n.Injectable()],e)}();t.TooltipSettings=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(7),s=o(5),p=function(){function e(e,t){this.content=e,this.localizationService=t,this.close=new n.EventEmitter,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=function(e,t,o){var i={},n="top"===e||"bottom"===e;return o?("top"===e?i.bottom="unset":"bottom"===e?i.top="unset":"left"===e?i.right="unset":"right"===e&&(i.left="unset"),i[e]=-t+"px",i.transform=n?"rotateX(180deg)":"rotateY(180deg)",i):(i.transform=n?"rotateX(0deg)":"rotateY(0deg)",i)},this.direction=t.rtl?"rtl":"ltr"}return Object.defineProperty(e.prototype,"cssClasses",{get:function(){return"k-widget k-tooltip"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){return this.closable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cssPosition",{get:function(){return"relative"},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(t){var o=t.rtl;return e.direction=o?"rtl":"ltr"}))},e.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},Object.defineProperty(e.prototype,"closeButtonTitle",{get:function(){return this.closeTitle||this.localizationService.get("closeTitle")},enumerable:!0,configurable:!0}),e.prototype.calloutPositionClass=function(){return{top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"}[this.position]},e.prototype.onCloseClick=function(e){e.preventDefault(),this.close.emit()},e.prototype.updateCalloutPosition=function(e,t){if(this.callout){var o=this.content.nativeElement.querySelector(".k-callout"),i="top"===e||"bottom"===e,n=i?"width":"height",r=i?"left":"top",p=i?"marginLeft":"marginTop",a=o.getBoundingClientRect()[n],u=s.getCenterOffset(this.anchor.nativeElement,r,n),c=s.getCenterOffset(this.content.nativeElement,r,n),l=Math.abs(c-u);if(l>1||0===l||0===Math.round(l)){var d=c-u+a/2;o.style[p]=-d+"px"}var h=this.calloutStyles(e,a,t);Object.keys(h).forEach((function(e){o.style[e]=h[e]}))}},i.__decorate([n.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],e.prototype,"close",void 0),i.__decorate([n.HostBinding("class"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"cssClasses",null),i.__decorate([n.HostBinding("class.k-tooltip-closable"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"className",null),i.__decorate([n.HostBinding("style.position"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"cssPosition",null),i.__decorate([n.HostBinding("style.width.px"),n.Input(),i.__metadata("design:type",Number)],e.prototype,"tooltipWidth",void 0),i.__decorate([n.HostBinding("style.height.px"),n.Input(),i.__metadata("design:type",Number)],e.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],e.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.ElementRef)],e.prototype,"anchor",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],e.prototype,"templateRef",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"templateString",void 0),e=i.__decorate([n.Component({selector:"kendo-tooltip",template:'\n <ng-container kendoTooltipLocalizedMessages\n i18n-closeTitle="kendo.tooltip.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n </ng-container>\n\n <div class="k-tooltip-content">\n <div class="k-tooltip-title" *ngIf="titleTemplate">\n <ng-template\n [ngIf]="titleTemplate"\n [ngTemplateOutlet]="titleTemplate"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n </div>\n\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n <ng-template\n [ngIf]="templateString">\n {{ templateString }}\n </ng-template>\n </div>\n\n <div *ngIf="closable" class="k-tooltip-button" (click)="onCloseClick($event)">\n <a href="#" class="k-icon k-i-close" [attr.title]="closeButtonTitle"></a>\n </div>\n\n <div class="k-callout" *ngIf="callout" [ngClass]="calloutPositionClass()"></div>\n ',providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.tooltip"}]}),i.__metadata("design:paramtypes",[n.ElementRef,r.LocalizationService])],e)}();t.TooltipContentComponent=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERRORS={popover:"Invalid value provided for the 'popover' property. The accepted data types are 'PopoverComponent' or 'PopoverFn'.",templateData:"templateData must be a function, but received",showOn:"Invalid value provided for the 'showOn' property. The available options are 'click', 'hover', 'focus' or 'none'."}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(6),s=o(2),p=o(3),a=o(5),u=o(19),c=o(21),l=function(e){function t(t,o,i,n,s){var a=e.call(this,o,i,n)||this;return a.wrapperEl=t,a.ngZone=o,a.popupService=i,a.renderer=n,a.popoverService=s,a.mouseenterHandler=function(e){a.controlVisibility(e,!0)},a.mouseleaveHandler=function(e){var t=e.anchor;a.isPrevented(t,!1)||a._hideSub||(a._hideSub=a.popoverService.hidePopover.subscribe((function(e){var t=e[0],o=e[2],i=e[3];t||o||(a.hide(),!o&&i&&a.show(i))})))},a.focusHandler=function(e){a.controlVisibility(e,!0)},a.blurHandler=function(e){var t=e.anchor,o=e.domEvent;if(!a.isPrevented(t,!1)){var i=!!r.closest(o.relatedTarget,(function(e){return e.classList&&e.classList.contains("k-popover")}));i||a.hide(),a._focusInsideSub||(a._focusInsideSub=a.popoverService.isFocusInsidePopover.pipe(p.filter((function(e){return null!==e}))).subscribe((function(e){e||i||a.hide()})))}},a._popoverService=a.popoverService,a}return i.__extends(t,e),t.prototype.show=function(e){var t=this;this.popupRef||(this.ngZone.run((function(){t.openPopup(e)})),this.popupRef.popupAnchorViewportLeave.pipe(p.take(1)).subscribe((function(){return t.hide()})))},t.prototype.toggle=function(e){var t=this.popupRef&&this.popupRef.content.instance.anchor;this.popupRef?(this.hide(),t!==e&&this.show(e)):this.show(e)},t.prototype.subscribeClick=function(){var e=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",(function(t){var o=a.closestBySelector(t.target,e.filter);e.clickHandler(o,t)}))},t.prototype.subscribeToEvents=function(e){var t=this;r.isDocumentAvailable()&&Array.from(document.querySelectorAll(this.filter)).forEach((function(o){t.subs.add(t.renderer.listen(o,e[0].name,(function(){t.popoverService.emitAnchorState(!0,o),e[0].handler(o)}))),t.subs.add(t.renderer.listen(o,e[1].name,(function(i){t.popoverService.emitAnchorState(!1,null),e[1].handler({anchor:o,domEvent:i})})))}))},t.prototype.clickHandler=function(e,t){var o=!!r.closest(t.target,(function(e){return e.classList&&e.classList.contains("k-popup")})),i=this.popupRef&&this.popupRef.content.instance.anchor,n=!!r.closest(t.target,(function(t){return t===(i||e)}));"click"!==this.showOn||o||this.popupRef&&n||(e||!this.popupRef?n?this.controlVisibility(e,!0):this.popupRef&&(this.controlVisibility(e,!1),this.controlVisibility(e,!0)):this.controlVisibility(e,!1))},t.prototype.controlVisibility=function(e,t){this.isPrevented(e,t)||(t?this.show(e):this.hide())},i.__decorate([n.Input(),i.__metadata("design:type",String)],t.prototype,"filter",void 0),t=i.__decorate([n.Directive({selector:"[kendoPopoverContainer]",exportAs:"kendoPopoverContainer",providers:[c.PopoverService]}),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,s.PopupService,n.Renderer2,c.PopoverService])],t)}(u.PopoverDirectivesBase);t.PopoverContainerDirective=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(6),s=o(17),p=o(20),a=o(5),u=o(8),c=o(4),l=["hover","click","none","focus"],d=function(){function e(e,t,o){this.ngZone=e,this.popupService=t,this.renderer=o,this.subs=new c.Subscription,this._showOn="click"}return Object.defineProperty(e.prototype,"popover",{get:function(){return this._popover},set:function(e){if(e instanceof u.PopoverComponent||"function"==typeof e)this._popover=e;else if(n.isDevMode)throw new Error(s.ERRORS.popover)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showOn",{get:function(){return this._showOn},set:function(e){if(n.isDevMode&&!a.containsItem(l,e))throw new Error(s.ERRORS.showOn);this._showOn=e},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.ngZone.runOutsideAngular((function(){switch(e.showOn){case"hover":e.subscribeToEvents([{name:"mouseenter",handler:e.mouseenterHandler},{name:"mouseleave",handler:e.mouseleaveHandler}]);break;case"focus":e.subscribeToEvents([{name:"focus",handler:e.focusHandler},{name:"blur",handler:e.blurHandler}]);break;case"click":e.subscribeClick()}}))},e.prototype.ngOnDestroy=function(){this.closePopup(),this.disposeHoverOverListener&&this.disposeHoverOverListener(),this.disposeHoverOutListener&&this.disposeHoverOutListener(),this.disposeClickListener&&this.disposeClickListener(),this._focusInsideSub&&this._focusInsideSub.unsubscribe(),this._hideSub&&this._hideSub.unsubscribe(),this.subs&&this.subs.unsubscribe(),this._popupOpenSub&&this._popupOpenSub.unsubscribe(),this._popupCloseSub&&this._popupCloseSub.unsubscribe()},e.prototype.hide=function(){this.closePopup()},e.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.disposePopupHoverOutListener&&this.disposePopupHoverOutListener(),this.disposePopupHoverInListener&&this.disposePopupHoverInListener(),this.disposePopupFocusOutListener&&this.disposePopupFocusOutListener())},e.prototype.openPopup=function(e){var t=e instanceof n.ElementRef?e.nativeElement:e,o=this.popover instanceof u.PopoverComponent?this.popover:this.popover(t),i=a.align(o.position,o.offset),r=i.anchorAlign,s=i.popupAlign,p=i.popupMargin,c=o.animation;this.popupRef=this.popupService.open({anchor:{nativeElement:t},animate:c,content:u.PopoverComponent,popupAlign:s,anchorAlign:r,margin:p,popupClass:"k-popup-transparent",collision:{horizontal:"fit",vertical:"fit"}}),this.applySettings(this.popupRef.content,o,e),this.monitorPopup(),this.initializeCompletionEvents(o,t)},e.prototype.isPrevented=function(e,t){var o,i=this.popover instanceof u.PopoverComponent?this.popover:this.popover(e);return(o=this.initializeEvents(i,o,t,e)).isDefaultPrevented()},e.prototype.monitorPopup=function(){var e=this;"hover"===this.showOn&&this.ngZone.runOutsideAngular((function(){var t=e.popupRef.popupElement;e.disposePopupHoverInListener=e.renderer.listen(t,"mouseenter",(function(t){e.ngZone.run((function(t){return e._popoverService.emitPopoverState(!0)}))})),e.disposePopupHoverOutListener=e.renderer.listen(t,"mouseleave",(function(t){e.ngZone.run((function(t){return e._popoverService.emitPopoverState(!1)}))}))})),"focus"===this.showOn&&this.ngZone.runOutsideAngular((function(){var t=e.popupRef.popupElement;e.disposePopupFocusOutListener=e.renderer.listen(t,"focusout",(function(t){r.closest(t.relatedTarget,(function(e){return e.classList&&e.classList.contains("k-popover")}))||e.ngZone.run((function(t){return e._popoverService.emitFocusInsidePopover(!1)}))}))}))},e.prototype.applySettings=function(e,t,o){var i=e.instance,r=o instanceof n.ElementRef?o.nativeElement:o;i.visible=!0,i.anchor=r,i.position=t.position,i.offset=t.offset,i.width=t.width,i.height=t.height,i.title=t.title,i.body=t.body,i.callout=t.callout,i.animation=t.animation,i.contextData=t.templateData(r),i.titleTemplate=t.titleTemplate,i.bodyTemplate=t.bodyTemplate,i.actionsTemplate=t.actionsTemplate,this.popupRef.content.changeDetectorRef.detectChanges()},e.prototype.initializeEvents=function(e,t,o,i){var n=this;return o?this.ngZone.run((function(o){t=new p.PopoverShowEvent(i),n.popupRef||e.show.emit(t)})):this.ngZone.run((function(o){t=new p.PopoverHideEvent(i,n.popupRef),n.popupRef&&e.hide.emit(t)})),t},e.prototype.initializeCompletionEvents=function(e,t){var o=this;this._popupOpenSub||this.popupRef.popupOpen.subscribe((function(){var i=new p.PopoverShownEvent(t,o.popupRef);e.shown.emit(i)})),this._popupCloseSub||this.popupRef.popupClose.subscribe((function(){o.ngZone.run((function(o){var i=new p.PopoverHiddenEvent(t);e.hidden.emit(i)}))}))},i.__decorate([n.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"popover",null),i.__decorate([n.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"showOn",null),e}();t.PopoverDirectivesBase=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(6),r=function(e){function t(t){var o=e.call(this)||this;return o.anchor=t,o}return i.__extends(t,e),t}(n.PreventableEvent);t.PopoverShowEvent=r;var s=function(e){function t(t,o){var i=e.call(this)||this;return i.anchor=t,i.popover=o,i}return i.__extends(t,e),t}(n.PreventableEvent);t.PopoverHideEvent=s;var p=function(e,t){this.anchor=e,this.popover=t};t.PopoverShownEvent=p;var a=function(e){this.anchor=e};t.PopoverHiddenEvent=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(4),s=o(3),p=function(){function e(e){this.ngZone=e,this._pointerOverPopup=new r.BehaviorSubject(null),this._pointerOverAnchor=new r.BehaviorSubject(null),this._focusInsidePopover=new r.BehaviorSubject(null),this._hidePopover=new r.Subject,this.subs=new r.Subscription,this.monitor()}return e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},Object.defineProperty(e.prototype,"isPopoverHovered",{get:function(){return this._pointerOverPopup.asObservable()},enumerable:!0,configurable:!0}),e.prototype.emitPopoverState=function(e){var t=this;this.ngZone.run((function(o){return t._pointerOverPopup.next(e)}))},Object.defineProperty(e.prototype,"isAnchorHovered",{get:function(){return this._pointerOverAnchor.asObservable()},enumerable:!0,configurable:!0}),e.prototype.emitAnchorState=function(e,t){var o=this;this._isOrigin=this.originAnchor===t,this.currentAnchor=t,e&&(this.originAnchor=t),this.ngZone.run((function(t){return o._pointerOverAnchor.next(e)}))},Object.defineProperty(e.prototype,"isFocusInsidePopover",{get:function(){return this._focusInsidePopover.asObservable()},enumerable:!0,configurable:!0}),e.prototype.emitFocusInsidePopover=function(e){var t=this;this.ngZone.run((function(o){return t._focusInsidePopover.next(e)})),this._focusInsidePopover.next(null)},Object.defineProperty(e.prototype,"hidePopover",{get:function(){return this._hidePopover.asObservable()},enumerable:!0,configurable:!0}),e.prototype.monitor=function(){var e=this;this.subs.add(r.combineLatest(this.isPopoverHovered,this.isAnchorHovered).pipe(s.auditTime(20)).subscribe((function(t){var o=t[0],i=t[1];e._hidePopover.next([o,i,e._isOrigin,e.currentAnchor])})))},e=i.__decorate([n.Injectable(),i.__metadata("design:paramtypes",[n.NgZone])],e)}();t.PopoverService=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(6),s=o(2),p=o(3),a=o(19),u=o(21),c=function(e){function t(t,o,i,n,s){var a=e.call(this,o,i,n)||this;return a.hostEl=t,a.ngZone=o,a.popupService=i,a.renderer=n,a.popoverService=s,a.mouseenterHandler=function(){a.controlVisibility(a.hostEl.nativeElement,!0)},a.mouseleaveHandler=function(){a.isPrevented(a.hostEl.nativeElement,!1)||a._hideSub||(a._hideSub=a.popoverService.hidePopover.subscribe((function(e){var t=e[0],o=e[1];t||o||a.hide()})))},a.focusHandler=function(){a.controlVisibility(a.hostEl.nativeElement,!0)},a.blurHandler=function(e){var t=e.domEvent;a.isPrevented(a.hostEl.nativeElement,!1)||(!!r.closest(t.relatedTarget,(function(e){return e.classList&&e.classList.contains("k-popover")}))||a.hide(),a._focusInsideSub||(a._focusInsideSub=a.popoverService.isFocusInsidePopover.pipe(p.filter((function(e){return null!==e}))).subscribe((function(e){e||a.hide()}))))},a._popoverService=a.popoverService,a}return i.__extends(t,e),t.prototype.show=function(){var e=this;this.popupRef||(this.ngZone.run((function(){e.openPopup(e.hostEl)})),this.popupRef.popupAnchorViewportLeave.pipe(p.take(1)).subscribe((function(){return e.hide()})))},t.prototype.toggle=function(){this.popupRef?this.hide():this.show()},t.prototype.subscribeToEvents=function(e){var t=this;this.subs.add(this.renderer.listen(this.hostEl.nativeElement,e[0].name,(function(){t.popoverService.emitAnchorState(!0,t.hostEl.nativeElement),e[0].handler()}))),this.subs.add(this.renderer.listen(this.hostEl.nativeElement,e[1].name,(function(o){t.popoverService.emitAnchorState(!1,null),e[1].handler({domEvent:o})})))},t.prototype.subscribeClick=function(){var e=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",(function(t){e.onClick(t)}))},t.prototype.onClick=function(e){var t=this,o=!!r.closest(e.target,(function(e){return e.classList&&e.classList.contains("k-popup")})),i=!!r.closest(e.target,(function(e){return e===t.hostEl.nativeElement}));o||this.popupRef&&i||(i?this.controlVisibility(this.hostEl.nativeElement,!0):this.controlVisibility(this.hostEl.nativeElement,!1))},t.prototype.controlVisibility=function(e,t){this.isPrevented(e,t)||(t?this.show():this.hide())},t=i.__decorate([n.Directive({selector:"[kendoPopoverAnchor]",exportAs:"kendoPopoverAnchor",providers:[u.PopoverService]}),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,s.PopupService,n.Renderer2,u.PopoverService])],t)}(a.PopoverDirectivesBase);t.PopoverAnchorDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(24),s=o(12),p=o(2),a=o(16),u=o(27),c=[s.TooltipDirective,a.TooltipContentComponent,u.LocalizedMessagesDirective],l=[p.PopupModule],d=function(){function e(){}return e=i.__decorate([n.NgModule({declarations:[c],entryComponents:[a.TooltipContentComponent],imports:[r.CommonModule].concat(l),exports:[c]})],e)}();t.TooltipModule=d},function(e,t){e.exports=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(24),r=o(1),s=o(2),p=o(22),a=o(18),u=o(8),c=o(9),l=o(10),d=[o(11).PopoverActionsTemplateDirective,l.PopoverBodyTemplateDirective,c.PopoverTitleTemplateDirective,p.PopoverAnchorDirective,a.PopoverContainerDirective],h=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:d.concat([u.PopoverComponent]),entryComponents:[u.PopoverComponent],exports:d.concat([u.PopoverComponent]),imports:[n.CommonModule,s.PopupModule]})],e)}();t.PopoverModule=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(12);t.TooltipDirective=i.TooltipDirective;var n=o(15);t.TooltipSettings=n.TooltipSettings,t.TOOLTIP_SETTINGS=n.TOOLTIP_SETTINGS;var r=o(8);t.PopoverComponent=r.PopoverComponent;var s=o(18);t.PopoverContainerDirective=s.PopoverContainerDirective;var p=o(22);t.PopoverAnchorDirective=p.PopoverAnchorDirective;var a=o(9);t.PopoverTitleTemplateDirective=a.PopoverTitleTemplateDirective;var u=o(10);t.PopoverBodyTemplateDirective=u.PopoverBodyTemplateDirective;var c=o(11);t.PopoverActionsTemplateDirective=c.PopoverActionsTemplateDirective;var l=o(20);t.PopoverShowEvent=l.PopoverShowEvent,t.PopoverShownEvent=l.PopoverShownEvent,t.PopoverHideEvent=l.PopoverHideEvent,t.PopoverHiddenEvent=l.PopoverHiddenEvent;var d=o(23);t.TooltipModule=d.TooltipModule;var h=o(25);t.PopoverModule=h.PopoverModule;var v=o(28);t.TooltipsModule=v.TooltipsModule},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(7),s=function(e){function t(t){var o=e.call(this)||this;return o.service=t,o}var o;return i.__extends(t,e),o=t,i.__decorate([n.Input(),i.__metadata("design:type",String)],t.prototype,"closeTitle",void 0),t=o=i.__decorate([n.Directive({providers:[{provide:r.ComponentMessages,useExisting:n.forwardRef((function(){return o}))}],selector:"[kendoTooltipLocalizedMessages]"}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(r.ComponentMessages);t.LocalizedMessagesDirective=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(23),s=o(25),p=function(){function e(){}return e=i.__decorate([n.NgModule({exports:[r.TooltipModule,s.PopoverModule]})],e)}();t.TooltipsModule=p}])}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-popup"),require("rxjs/operators"),require("rxjs"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@angular/common")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","@progress/kendo-angular-popup","rxjs/operators","rxjs","@progress/kendo-angular-common","@progress/kendo-angular-l10n","@progress/kendo-licensing","@angular/common"],t):"object"==typeof exports?exports.KendoAngularTooltip=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-popup"),require("rxjs/operators"),require("rxjs"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@angular/common")):e.KendoAngularTooltip=t(e.tslib,e["@angular/core"],e["@progress/kendo-angular-popup"],e["rxjs/operators"],e.rxjs,e["@progress/kendo-angular-common"],e["@progress/kendo-angular-l10n"],e["@progress/kendo-licensing"],e["@angular/common"])}(window,(function(e,t,o,i,n,r,s,p,a){return function(e){var t={};function o(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=e,o.c=t,o.d=function(e,t,i){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(i,n,function(t){return e[t]}.bind(null,n));return i},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=26)}([function(t,o){t.exports=e},function(e,o){e.exports=t},function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t){e.exports=n},function(e,t,o){"use strict";function i(e){return 9===e.nodeType}Object.defineProperty(t,"__esModule",{value:!0}),t.align=function(e,t){var o={},i={},n={};switch(e){case"top":o={horizontal:"center",vertical:"top"},i={horizontal:"center",vertical:"bottom"},n={horizontal:0,vertical:t};break;case"bottom":o={horizontal:"center",vertical:"bottom"},i={horizontal:"center",vertical:"top"},n={horizontal:0,vertical:t};break;case"right":o={horizontal:"right",vertical:"center"},i={horizontal:"left",vertical:"center"},n={horizontal:t,vertical:0};break;case"left":o={horizontal:"left",vertical:"center"},i={horizontal:"right",vertical:"center"},n={horizontal:t,vertical:0}}return{anchorAlign:o,popupAlign:i,popupMargin:n}},t.collision=function(e,t){return e||("top"===t||"bottom"===t?{horizontal:"fit",vertical:"flip"}:{horizontal:"flip",vertical:"fit"})},t.closestBySelector=function(e,t){if(e.closest)return e.closest(t);for(var o=Element.prototype.matches?function(e,t){return e.matches(t)}:function(e,t){return e.msMatchesSelector(t)},n=e;n&&!i(n);){if(o(n,t))return n;n=n.parentNode}},t.contains=function(e,t){return!!e&&(!i(e)&&(e.contains?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY):void 0))},t.hasParent=function(e,t){for(;e&&e!==t;)e=e.parentNode;return e},t.getCenterOffset=function(e,t,o){var i=e.getBoundingClientRect();return i[t]+i[o]/2},t.containsItem=function(e,t){return-1!==e.indexOf(t)}},function(e,t){e.exports=r},function(e,t){e.exports=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(7),s=o(4),p=o(13),a=o(14),u=o(17),c=o(9),l=o(10),d=o(11),h=function(){function e(e){this.localization=e,this.position="right",this.callout=!0,this.animation=!1,this.visible=!1,this.show=new n.EventEmitter,this.shown=new n.EventEmitter,this.hide=new n.EventEmitter,this.hidden=new n.EventEmitter,this._offset=6,this._width="auto",this._height="auto",this.subs=new s.Subscription,this._templateData=function(){return null},p.validatePackage(a.packageMetadata)}return Object.defineProperty(e.prototype,"offset",{get:function(){return this.callout?14+this._offset:this._offset},set:function(e){this._offset=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(e){this._width="number"==typeof e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(e){this._height="number"==typeof e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"templateData",{get:function(){return this._templateData},set:function(e){if(n.isDevMode&&"function"!=typeof e)throw new Error(u.ERRORS.templateData+" "+JSON.stringify(e)+".");this._templateData=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasAttributeHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subs.add(this.localization.changes.subscribe((function(t){var o=t.rtl;e.direction=o?"rtl":"ltr"})))},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.prototype.getCalloutPosition=function(){switch(this.position){case"top":return{"k-callout-s":!0};case"bottom":return{"k-callout-n":!0};case"left":return{"k-callout-e":!0};case"right":return{"k-callout-w":!0};default:return{"k-callout-s":!0}}},i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"offset",null),i.__decorate([n.HostBinding("style.width"),n.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"width",null),i.__decorate([n.HostBinding("style.height"),n.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"height",null),i.__decorate([n.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"subtitle",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"body",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"callout",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"animation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"templateData",null),i.__decorate([n.HostBinding("class.k-hidden"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"isHidden",null),i.__decorate([n.HostBinding("attr.aria-hidden"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"hasAttributeHidden",null),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],e.prototype,"show",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],e.prototype,"shown",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],e.prototype,"hide",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],e.prototype,"hidden",void 0),i.__decorate([n.ContentChild(c.PopoverTitleTemplateDirective,{static:!1}),i.__metadata("design:type",c.PopoverTitleTemplateDirective)],e.prototype,"titleTemplate",void 0),i.__decorate([n.ContentChild(l.PopoverBodyTemplateDirective,{static:!1}),i.__metadata("design:type",l.PopoverBodyTemplateDirective)],e.prototype,"bodyTemplate",void 0),i.__decorate([n.ContentChild(d.PopoverActionsTemplateDirective,{static:!1}),i.__metadata("design:type",d.PopoverActionsTemplateDirective)],e.prototype,"actionsTemplate",void 0),e=i.__decorate([n.Component({selector:"kendo-popover",providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.popover"}],template:'\n <div *ngIf="visible" role="tooltip" class="k-popover" [ngStyle]="{\'width.px\': width, \'height.px\': height}">\n <div class="k-popover-callout" [ngClass]="getCalloutPosition()" *ngIf="callout"></div>\n\n <div *ngIf="titleTemplate || title" class="k-popover-header">\n <ng-template *ngIf="titleTemplate"\n [ngTemplateOutlet]="titleTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n <ng-container *ngIf="title && !titleTemplate">\n {{ title }}\n </ng-container>\n </div>\n\n <div *ngIf="bodyTemplate || body" class="k-popover-body">\n <ng-template *ngIf="bodyTemplate"\n [ngTemplateOutlet]="bodyTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n <ng-container *ngIf="body && !bodyTemplate">\n {{ body }}\n </ng-container>\n </div>\n\n <div *ngIf="actionsTemplate" class="k-popover-actions k-actions k-hstack k-justify-content-between">\n <ng-template *ngIf="actionsTemplate"\n [ngTemplateOutlet]="actionsTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n </div>\n </div>\n '}),i.__metadata("design:paramtypes",[r.LocalizationService])],e)}();t.PopoverComponent=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([n.Directive({selector:"[kendoPopoverTitleTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],e)}();t.PopoverTitleTemplateDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([n.Directive({selector:"[kendoPopoverBodyTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],e)}();t.PopoverBodyTemplateDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([n.Directive({selector:"[kendoPopoverActionsTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],e)}();t.PopoverActionsTemplateDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(3),s=o(4),p=o(2),a=o(13),u=o(14),c=o(15),l=o(16),d=o(5),h=function(){function e(e,t,o,i,n,p){var c=this;this.tooltipWrapper=e,this.ngZone=t,this.renderer=o,this.popupService=i,this.filter="[title]",this.position="top",this.showAfter=100,this.callout=!0,this.closable=!1,this.offset=6,this.anchor=null,this.validPositions=["top","bottom","right","left"],this.validShowOptions=["hover","click","none"],a.validatePackage(u.packageMetadata),Object.assign(this,n,p),this.ngZone.runOutsideAngular((function(){var e=c.tooltipWrapper.nativeElement;c.anchorTitleSubscription=s.fromEvent(e,"mouseover").pipe(r.filter((function(){return""!==c.filter}))).subscribe((function(e){var t=d.closestBySelector(e.target,c.filter);t&&c.hideElementTitle({nativeElement:t})})),c.mouseOverSubscription=s.fromEvent(e,"mouseover").pipe(r.debounceTime(100),r.filter((function(){return""!==c.filter}))).subscribe((function(e){return c.onMouseOver(e)})),c.mouseOutSubscription=s.fromEvent(e,"mouseout").pipe(r.debounceTime(100)).subscribe((function(e){return c.onMouseOut(e)}))}))}return Object.defineProperty(e.prototype,"tooltipTemplate",{get:function(){return this.template},set:function(e){this.template=e},enumerable:!0,configurable:!0}),e.prototype.show=function(e){var t=this;if(!this.popupRef)if(e instanceof Element&&(e={nativeElement:e}),this.anchor=e,"hover"===this.showOn){if(this.popupRef)return;clearTimeout(this.showTimeout),this.showTimeout=window.setTimeout((function(){return t.showContent(t.anchor)}),this.showAfter)}else this.hideElementTitle(this.anchor),this.showContent(this.anchor)},e.prototype.hide=function(){clearTimeout(this.showTimeout);var e=this.anchor&&this.anchor.nativeElement;e&&e.getAttribute("data-title")&&(!e.getAttribute("title")&&e.hasAttribute("title")&&e.setAttribute("title",e.getAttribute("data-title")),e.setAttribute("data-title","")),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe(),this.closeClickSubscription&&this.closeClickSubscription.unsubscribe(),this.closePopup()},e.prototype.toggle=function(e,t){var o=this.anchor&&this.anchor.nativeElement;e instanceof Element&&(e={nativeElement:e}),o!==e.nativeElement&&this.hide(),o===e.nativeElement&&"click"===this.showOn&&this.hide(),void 0===t&&(t=!this.popupRef),t?this.show(e):this.hide()},e.prototype.ngOnInit=function(){void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties()},e.prototype.ngOnChanges=function(e){e.showOn&&this.subscribeClick()},e.prototype.ngAfterViewChecked=function(){this.popupRef&&this.anchor&&!d.hasParent(this.anchor.nativeElement||this.anchor,this.tooltipWrapper.nativeElement)&&(this.anchor=null,this.hide())},e.prototype.ngOnDestroy=function(){this.hide(),this.template=null,this.anchorTitleSubscription.unsubscribe(),this.mouseOverSubscription.unsubscribe(),this.mouseOutSubscription.unsubscribe(),this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe(),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe()},e.prototype.showContent=function(e){var t=this;(e.nativeElement.getAttribute("data-title")||this.template)&&(this.ngZone.run((function(){t.openPopup(e),t.bindContent(t.popupRef.content,e)})),this.popupRef.popupAnchorViewportLeave.pipe(r.take(1)).subscribe((function(){return t.hide()})))},e.prototype.bindContent=function(e,t){var o=this,i=e.instance;this.closeClickSubscription=i.close.subscribe((function(){o.hide()})),this.template?i.templateRef=this.template:i.templateString=this.anchor.nativeElement.getAttribute("data-title"),this.titleTemplate&&(i.titleTemplate=this.titleTemplate),i.closeTitle=this.closeTitle,i.anchor=t,i.callout=this.callout,i.closable=this.closable,i.position=this.position,i.tooltipWidth=this.tooltipWidth,i.tooltipHeight=this.tooltipHeight,this.popupRef.content.changeDetectorRef.detectChanges()},e.prototype.hideElementTitle=function(e){var t=e.nativeElement;t.getAttribute("title")&&(t.setAttribute("data-title",t.getAttribute("title")),t.setAttribute("title",""))},e.prototype.openPopup=function(e){var t=this,o=d.align(this.position,this.offset),i=o.anchorAlign,n=o.popupAlign,r=o.popupMargin;this.popupRef=this.popupService.open({anchor:e,anchorAlign:i,animate:!1,content:l.TooltipContentComponent,collision:d.collision(this.collision,this.position),margin:r,popupAlign:n,popupClass:"k-popup-transparent"}),this.renderer.addClass(this.popupRef.popupElement,"k-tooltip-wrapper"),this.tooltipClass&&this.renderer.addClass(this.popupRef.popupElement,this.tooltipClass);var p=this.popupRef.content.instance;p.callout&&(this.popupPositionChangeSubscription=this.popupRef.popupPositionChange.subscribe((function(e){var o=e.flip,i=!0===o.horizontal||!0===o.vertical;p.updateCalloutPosition(t.position,i)}))),"hover"===this.showOn&&this.ngZone.runOutsideAngular((function(){var e=t.popupRef.popupElement;t.popupMouseOutSubscription=s.fromEvent(e,"mouseout").subscribe((function(e){return t.onMouseOut(e)}))}))},e.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe()},e.prototype.subscribeClick=function(){var e=this;this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),"click"===this.showOn&&(this.mouseClickSubscription=s.fromEvent(document,"click").pipe(r.filter((function(){return""!==e.filter}))).subscribe((function(t){return e.onMouseClick(t,e.tooltipWrapper.nativeElement)})))},e.prototype.onMouseClick=function(e,t){var o=e.target,i=d.closestBySelector(o,this.filter),n=this.popupRef&&this.popupRef.popupElement;if(n){if(n.contains(o))return;if(this.closable)return}t.contains(o)&&i?this.toggle(i,!0):n&&this.hide()},e.prototype.onMouseOver=function(e){var t=d.closestBySelector(e.target,this.filter);"hover"===this.showOn&&t&&this.toggle(t,!0)},e.prototype.onMouseOut=function(e){if("hover"===this.showOn&&!this.closable){var t=this.popupRef&&this.popupRef.popupElement,o=e.relatedTarget;o&&this.anchor&&d.contains(this.anchor.nativeElement,o)||o&&d.contains(t,o)||this.hide()}},e.prototype.verifyProperties=function(){if(n.isDevMode()){if(!d.containsItem(this.validPositions,this.position))throw new Error("Invalid value provided for position property.The available options are 'top', 'bottom', 'left', or 'right'.");if(!d.containsItem(this.validShowOptions,this.showOn))throw new Error("Invalid value provided for showOn property.The available options are 'hover' or 'none'.")}},i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"filter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],e.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"showOn",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"showAfter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"callout",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"offset",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"tooltipWidth",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],e.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"tooltipClass",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],e.prototype,"collision",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"closeTitle",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef),i.__metadata("design:paramtypes",[n.TemplateRef])],e.prototype,"tooltipTemplate",null),e=i.__decorate([n.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip"}),i.__param(4,n.Optional()),i.__param(5,n.Optional()),i.__param(5,n.Inject(c.TOOLTIP_SETTINGS)),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,n.Renderer2,p.PopupService,c.TooltipSettings,c.TooltipSettings])],e)}();t.TooltipDirective=h},function(e,t){e.exports=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-tooltip",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1643372174,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1);t.TOOLTIP_SETTINGS=new n.InjectionToken("kendo-ui-tooltip-settings");var r=function(){function e(){}return e=i.__decorate([n.Injectable()],e)}();t.TooltipSettings=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(7),s=o(5),p=function(){function e(e,t){this.content=e,this.localizationService=t,this.close=new n.EventEmitter,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=function(e,t,o){var i={},n="top"===e||"bottom"===e;return o?("top"===e?i.bottom="unset":"bottom"===e?i.top="unset":"left"===e?i.right="unset":"right"===e&&(i.left="unset"),i[e]=-t+"px",i.transform=n?"rotateX(180deg)":"rotateY(180deg)",i):(i.transform=n?"rotateX(0deg)":"rotateY(0deg)",i)},this.direction=t.rtl?"rtl":"ltr"}return Object.defineProperty(e.prototype,"cssClasses",{get:function(){return"k-widget k-tooltip"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){return this.closable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cssPosition",{get:function(){return"relative"},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(t){var o=t.rtl;return e.direction=o?"rtl":"ltr"}))},e.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},Object.defineProperty(e.prototype,"closeButtonTitle",{get:function(){return this.closeTitle||this.localizationService.get("closeTitle")},enumerable:!0,configurable:!0}),e.prototype.calloutPositionClass=function(){return{top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"}[this.position]},e.prototype.onCloseClick=function(e){e.preventDefault(),this.close.emit()},e.prototype.updateCalloutPosition=function(e,t){if(this.callout){var o=this.content.nativeElement.querySelector(".k-callout"),i="top"===e||"bottom"===e,n=i?"width":"height",r=i?"left":"top",p=i?"marginLeft":"marginTop",a=o.getBoundingClientRect()[n],u=s.getCenterOffset(this.anchor.nativeElement,r,n),c=s.getCenterOffset(this.content.nativeElement,r,n),l=Math.abs(c-u);if(l>1||0===l||0===Math.round(l)){var d=c-u+a/2;o.style[p]=-d+"px"}var h=this.calloutStyles(e,a,t);Object.keys(h).forEach((function(e){o.style[e]=h[e]}))}},i.__decorate([n.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],e.prototype,"close",void 0),i.__decorate([n.HostBinding("class"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"cssClasses",null),i.__decorate([n.HostBinding("class.k-tooltip-closable"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"className",null),i.__decorate([n.HostBinding("style.position"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"cssPosition",null),i.__decorate([n.HostBinding("style.width.px"),n.Input(),i.__metadata("design:type",Number)],e.prototype,"tooltipWidth",void 0),i.__decorate([n.HostBinding("style.height.px"),n.Input(),i.__metadata("design:type",Number)],e.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],e.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.ElementRef)],e.prototype,"anchor",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],e.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],e.prototype,"templateRef",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],e.prototype,"templateString",void 0),e=i.__decorate([n.Component({selector:"kendo-tooltip",template:'\n <ng-container kendoTooltipLocalizedMessages\n i18n-closeTitle="kendo.tooltip.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n </ng-container>\n\n <div class="k-tooltip-content">\n <div class="k-tooltip-title" *ngIf="titleTemplate">\n <ng-template\n [ngIf]="titleTemplate"\n [ngTemplateOutlet]="titleTemplate"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n </div>\n\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n <ng-template\n [ngIf]="templateString">\n {{ templateString }}\n </ng-template>\n </div>\n\n <div *ngIf="closable" class="k-tooltip-button" (click)="onCloseClick($event)">\n <a href="#" class="k-icon k-i-close" [attr.title]="closeButtonTitle"></a>\n </div>\n\n <div class="k-callout" *ngIf="callout" [ngClass]="calloutPositionClass()"></div>\n ',providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.tooltip"}]}),i.__metadata("design:paramtypes",[n.ElementRef,r.LocalizationService])],e)}();t.TooltipContentComponent=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERRORS={popover:"Invalid value provided for the 'popover' property. The accepted data types are 'PopoverComponent' or 'PopoverFn'.",templateData:"templateData must be a function, but received",showOn:"Invalid value provided for the 'showOn' property. The available options are 'click', 'hover', 'focus' or 'none'."}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(6),s=o(2),p=o(3),a=o(5),u=o(19),c=o(21),l=function(e){function t(t,o,i,n,s){var a=e.call(this,o,i,n)||this;return a.wrapperEl=t,a.ngZone=o,a.popupService=i,a.renderer=n,a.popoverService=s,a.mouseenterHandler=function(e){a.controlVisibility(e,!0)},a.mouseleaveHandler=function(e){var t=e.anchor;a.isPrevented(t,!1)||a._hideSub||(a._hideSub=a.popoverService.hidePopover.subscribe((function(e){var t=e[0],o=e[2],i=e[3];t||o||(a.hide(),!o&&i&&a.show(i))})))},a.focusHandler=function(e){a.controlVisibility(e,!0)},a.blurHandler=function(e){var t=e.anchor,o=e.domEvent;if(!a.isPrevented(t,!1)){var i=!!r.closest(o.relatedTarget,(function(e){return e.classList&&e.classList.contains("k-popover")}));i||a.hide(),a._focusInsideSub||(a._focusInsideSub=a.popoverService.isFocusInsidePopover.pipe(p.filter((function(e){return null!==e}))).subscribe((function(e){e||i||a.hide()})))}},a._popoverService=a.popoverService,a}return i.__extends(t,e),t.prototype.show=function(e){var t=this;this.popupRef||(this.ngZone.run((function(){t.openPopup(e)})),this.popupRef.popupAnchorViewportLeave.pipe(p.take(1)).subscribe((function(){return t.hide()})))},t.prototype.toggle=function(e){var t=this.popupRef&&this.popupRef.content.instance.anchor;this.popupRef?(this.hide(),t!==e&&this.show(e)):this.show(e)},t.prototype.subscribeClick=function(){var e=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",(function(t){var o=a.closestBySelector(t.target,e.filter);e.clickHandler(o,t)}))},t.prototype.subscribeToEvents=function(e){var t=this;r.isDocumentAvailable()&&Array.from(document.querySelectorAll(this.filter)).forEach((function(o){t.subs.add(t.renderer.listen(o,e[0].name,(function(){t.popoverService.emitAnchorState(!0,o),e[0].handler(o)}))),t.subs.add(t.renderer.listen(o,e[1].name,(function(i){t.popoverService.emitAnchorState(!1,null),e[1].handler({anchor:o,domEvent:i})})))}))},t.prototype.clickHandler=function(e,t){var o=!!r.closest(t.target,(function(e){return e.classList&&e.classList.contains("k-popup")})),i=this.popupRef&&this.popupRef.content.instance.anchor,n=!!r.closest(t.target,(function(t){return t===(i||e)}));"click"!==this.showOn||o||this.popupRef&&n||(e||!this.popupRef?n?this.controlVisibility(e,!0):this.popupRef&&(this.controlVisibility(e,!1),this.controlVisibility(e,!0)):this.controlVisibility(e,!1))},t.prototype.controlVisibility=function(e,t){this.isPrevented(e,t)||(t?this.show(e):this.hide())},i.__decorate([n.Input(),i.__metadata("design:type",String)],t.prototype,"filter",void 0),t=i.__decorate([n.Directive({selector:"[kendoPopoverContainer]",exportAs:"kendoPopoverContainer",providers:[c.PopoverService]}),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,s.PopupService,n.Renderer2,c.PopoverService])],t)}(u.PopoverDirectivesBase);t.PopoverContainerDirective=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(6),s=o(17),p=o(20),a=o(5),u=o(8),c=o(4),l=["hover","click","none","focus"],d=function(){function e(e,t,o){this.ngZone=e,this.popupService=t,this.renderer=o,this.subs=new c.Subscription,this._showOn="click"}return Object.defineProperty(e.prototype,"popover",{get:function(){return this._popover},set:function(e){if(e instanceof u.PopoverComponent||"function"==typeof e)this._popover=e;else if(n.isDevMode)throw new Error(s.ERRORS.popover)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showOn",{get:function(){return this._showOn},set:function(e){if(n.isDevMode&&!a.containsItem(l,e))throw new Error(s.ERRORS.showOn);this._showOn=e},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.ngZone.runOutsideAngular((function(){switch(e.showOn){case"hover":e.subscribeToEvents([{name:"mouseenter",handler:e.mouseenterHandler},{name:"mouseleave",handler:e.mouseleaveHandler}]);break;case"focus":e.subscribeToEvents([{name:"focus",handler:e.focusHandler},{name:"blur",handler:e.blurHandler}]);break;case"click":e.subscribeClick()}}))},e.prototype.ngOnDestroy=function(){this.closePopup(),this.disposeHoverOverListener&&this.disposeHoverOverListener(),this.disposeHoverOutListener&&this.disposeHoverOutListener(),this.disposeClickListener&&this.disposeClickListener(),this._focusInsideSub&&this._focusInsideSub.unsubscribe(),this._hideSub&&this._hideSub.unsubscribe(),this.subs&&this.subs.unsubscribe(),this._popupOpenSub&&this._popupOpenSub.unsubscribe(),this._popupCloseSub&&this._popupCloseSub.unsubscribe()},e.prototype.hide=function(){this.closePopup()},e.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.disposePopupHoverOutListener&&this.disposePopupHoverOutListener(),this.disposePopupHoverInListener&&this.disposePopupHoverInListener(),this.disposePopupFocusOutListener&&this.disposePopupFocusOutListener())},e.prototype.openPopup=function(e){var t=e instanceof n.ElementRef?e.nativeElement:e,o=this.popover instanceof u.PopoverComponent?this.popover:this.popover(t),i=a.align(o.position,o.offset),r=i.anchorAlign,s=i.popupAlign,p=i.popupMargin,c=o.animation;this.popupRef=this.popupService.open({anchor:{nativeElement:t},animate:c,content:u.PopoverComponent,popupAlign:s,anchorAlign:r,margin:p,popupClass:"k-popup-transparent",collision:{horizontal:"fit",vertical:"fit"}}),this.applySettings(this.popupRef.content,o,e),this.monitorPopup(),this.initializeCompletionEvents(o,t)},e.prototype.isPrevented=function(e,t){var o,i=this.popover instanceof u.PopoverComponent?this.popover:this.popover(e);return(o=this.initializeEvents(i,o,t,e)).isDefaultPrevented()},e.prototype.monitorPopup=function(){var e=this;"hover"===this.showOn&&this.ngZone.runOutsideAngular((function(){var t=e.popupRef.popupElement;e.disposePopupHoverInListener=e.renderer.listen(t,"mouseenter",(function(t){e.ngZone.run((function(t){return e._popoverService.emitPopoverState(!0)}))})),e.disposePopupHoverOutListener=e.renderer.listen(t,"mouseleave",(function(t){e.ngZone.run((function(t){return e._popoverService.emitPopoverState(!1)}))}))})),"focus"===this.showOn&&this.ngZone.runOutsideAngular((function(){var t=e.popupRef.popupElement;e.disposePopupFocusOutListener=e.renderer.listen(t,"focusout",(function(t){r.closest(t.relatedTarget,(function(e){return e.classList&&e.classList.contains("k-popover")}))||e.ngZone.run((function(t){return e._popoverService.emitFocusInsidePopover(!1)}))}))}))},e.prototype.applySettings=function(e,t,o){var i=e.instance,r=o instanceof n.ElementRef?o.nativeElement:o;i.visible=!0,i.anchor=r,i.position=t.position,i.offset=t.offset,i.width=t.width,i.height=t.height,i.title=t.title,i.body=t.body,i.callout=t.callout,i.animation=t.animation,i.contextData=t.templateData(r),i.titleTemplate=t.titleTemplate,i.bodyTemplate=t.bodyTemplate,i.actionsTemplate=t.actionsTemplate,this.popupRef.content.changeDetectorRef.detectChanges()},e.prototype.initializeEvents=function(e,t,o,i){var n=this;return o?this.ngZone.run((function(o){t=new p.PopoverShowEvent(i),n.popupRef||e.show.emit(t)})):this.ngZone.run((function(o){t=new p.PopoverHideEvent(i,n.popupRef),n.popupRef&&e.hide.emit(t)})),t},e.prototype.initializeCompletionEvents=function(e,t){var o=this;this._popupOpenSub||this.popupRef.popupOpen.subscribe((function(){var i=new p.PopoverShownEvent(t,o.popupRef);e.shown.emit(i)})),this._popupCloseSub||this.popupRef.popupClose.subscribe((function(){o.ngZone.run((function(o){var i=new p.PopoverHiddenEvent(t);e.hidden.emit(i)}))}))},i.__decorate([n.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"popover",null),i.__decorate([n.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"showOn",null),e}();t.PopoverDirectivesBase=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(6),r=function(e){function t(t){var o=e.call(this)||this;return o.anchor=t,o}return i.__extends(t,e),t}(n.PreventableEvent);t.PopoverShowEvent=r;var s=function(e){function t(t,o){var i=e.call(this)||this;return i.anchor=t,i.popover=o,i}return i.__extends(t,e),t}(n.PreventableEvent);t.PopoverHideEvent=s;var p=function(e,t){this.anchor=e,this.popover=t};t.PopoverShownEvent=p;var a=function(e){this.anchor=e};t.PopoverHiddenEvent=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(4),s=o(3),p=function(){function e(e){this.ngZone=e,this._pointerOverPopup=new r.BehaviorSubject(null),this._pointerOverAnchor=new r.BehaviorSubject(null),this._focusInsidePopover=new r.BehaviorSubject(null),this._hidePopover=new r.Subject,this.subs=new r.Subscription,this.monitor()}return e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},Object.defineProperty(e.prototype,"isPopoverHovered",{get:function(){return this._pointerOverPopup.asObservable()},enumerable:!0,configurable:!0}),e.prototype.emitPopoverState=function(e){var t=this;this.ngZone.run((function(o){return t._pointerOverPopup.next(e)}))},Object.defineProperty(e.prototype,"isAnchorHovered",{get:function(){return this._pointerOverAnchor.asObservable()},enumerable:!0,configurable:!0}),e.prototype.emitAnchorState=function(e,t){var o=this;this._isOrigin=this.originAnchor===t,this.currentAnchor=t,e&&(this.originAnchor=t),this.ngZone.run((function(t){return o._pointerOverAnchor.next(e)}))},Object.defineProperty(e.prototype,"isFocusInsidePopover",{get:function(){return this._focusInsidePopover.asObservable()},enumerable:!0,configurable:!0}),e.prototype.emitFocusInsidePopover=function(e){var t=this;this.ngZone.run((function(o){return t._focusInsidePopover.next(e)})),this._focusInsidePopover.next(null)},Object.defineProperty(e.prototype,"hidePopover",{get:function(){return this._hidePopover.asObservable()},enumerable:!0,configurable:!0}),e.prototype.monitor=function(){var e=this;this.subs.add(r.combineLatest(this.isPopoverHovered,this.isAnchorHovered).pipe(s.auditTime(20)).subscribe((function(t){var o=t[0],i=t[1];e._hidePopover.next([o,i,e._isOrigin,e.currentAnchor])})))},e=i.__decorate([n.Injectable(),i.__metadata("design:paramtypes",[n.NgZone])],e)}();t.PopoverService=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(6),s=o(2),p=o(3),a=o(19),u=o(21),c=function(e){function t(t,o,i,n,s){var a=e.call(this,o,i,n)||this;return a.hostEl=t,a.ngZone=o,a.popupService=i,a.renderer=n,a.popoverService=s,a.mouseenterHandler=function(){a.controlVisibility(a.hostEl.nativeElement,!0)},a.mouseleaveHandler=function(){a.isPrevented(a.hostEl.nativeElement,!1)||a._hideSub||(a._hideSub=a.popoverService.hidePopover.subscribe((function(e){var t=e[0],o=e[1];t||o||a.hide()})))},a.focusHandler=function(){a.controlVisibility(a.hostEl.nativeElement,!0)},a.blurHandler=function(e){var t=e.domEvent;a.isPrevented(a.hostEl.nativeElement,!1)||(!!r.closest(t.relatedTarget,(function(e){return e.classList&&e.classList.contains("k-popover")}))||a.hide(),a._focusInsideSub||(a._focusInsideSub=a.popoverService.isFocusInsidePopover.pipe(p.filter((function(e){return null!==e}))).subscribe((function(e){e||a.hide()}))))},a._popoverService=a.popoverService,a}return i.__extends(t,e),t.prototype.show=function(){var e=this;this.popupRef||(this.ngZone.run((function(){e.openPopup(e.hostEl)})),this.popupRef.popupAnchorViewportLeave.pipe(p.take(1)).subscribe((function(){return e.hide()})))},t.prototype.toggle=function(){this.popupRef?this.hide():this.show()},t.prototype.subscribeToEvents=function(e){var t=this;this.subs.add(this.renderer.listen(this.hostEl.nativeElement,e[0].name,(function(){t.popoverService.emitAnchorState(!0,t.hostEl.nativeElement),e[0].handler()}))),this.subs.add(this.renderer.listen(this.hostEl.nativeElement,e[1].name,(function(o){t.popoverService.emitAnchorState(!1,null),e[1].handler({domEvent:o})})))},t.prototype.subscribeClick=function(){var e=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",(function(t){e.onClick(t)}))},t.prototype.onClick=function(e){var t=this,o=!!r.closest(e.target,(function(e){return e.classList&&e.classList.contains("k-popup")})),i=!!r.closest(e.target,(function(e){return e===t.hostEl.nativeElement}));o||this.popupRef&&i||(i?this.controlVisibility(this.hostEl.nativeElement,!0):this.controlVisibility(this.hostEl.nativeElement,!1))},t.prototype.controlVisibility=function(e,t){this.isPrevented(e,t)||(t?this.show():this.hide())},t=i.__decorate([n.Directive({selector:"[kendoPopoverAnchor]",exportAs:"kendoPopoverAnchor",providers:[u.PopoverService]}),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,s.PopupService,n.Renderer2,u.PopoverService])],t)}(a.PopoverDirectivesBase);t.PopoverAnchorDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(24),s=o(12),p=o(2),a=o(16),u=o(27),c=[s.TooltipDirective,a.TooltipContentComponent,u.LocalizedMessagesDirective],l=[p.PopupModule],d=function(){function e(){}return e=i.__decorate([n.NgModule({declarations:[c],entryComponents:[a.TooltipContentComponent],imports:[r.CommonModule].concat(l),exports:[c]})],e)}();t.TooltipModule=d},function(e,t){e.exports=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(24),r=o(1),s=o(2),p=o(22),a=o(18),u=o(8),c=o(9),l=o(10),d=[o(11).PopoverActionsTemplateDirective,l.PopoverBodyTemplateDirective,c.PopoverTitleTemplateDirective,p.PopoverAnchorDirective,a.PopoverContainerDirective],h=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:d.concat([u.PopoverComponent]),entryComponents:[u.PopoverComponent],exports:d.concat([u.PopoverComponent]),imports:[n.CommonModule,s.PopupModule]})],e)}();t.PopoverModule=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(12);t.TooltipDirective=i.TooltipDirective;var n=o(15);t.TooltipSettings=n.TooltipSettings,t.TOOLTIP_SETTINGS=n.TOOLTIP_SETTINGS;var r=o(8);t.PopoverComponent=r.PopoverComponent;var s=o(18);t.PopoverContainerDirective=s.PopoverContainerDirective;var p=o(22);t.PopoverAnchorDirective=p.PopoverAnchorDirective;var a=o(9);t.PopoverTitleTemplateDirective=a.PopoverTitleTemplateDirective;var u=o(10);t.PopoverBodyTemplateDirective=u.PopoverBodyTemplateDirective;var c=o(11);t.PopoverActionsTemplateDirective=c.PopoverActionsTemplateDirective;var l=o(20);t.PopoverShowEvent=l.PopoverShowEvent,t.PopoverShownEvent=l.PopoverShownEvent,t.PopoverHideEvent=l.PopoverHideEvent,t.PopoverHiddenEvent=l.PopoverHiddenEvent;var d=o(23);t.TooltipModule=d.TooltipModule;var h=o(25);t.PopoverModule=h.PopoverModule;var v=o(28);t.TooltipsModule=v.TooltipsModule},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(7),s=function(e){function t(t){var o=e.call(this)||this;return o.service=t,o}var o;return i.__extends(t,e),o=t,i.__decorate([n.Input(),i.__metadata("design:type",String)],t.prototype,"closeTitle",void 0),t=o=i.__decorate([n.Directive({providers:[{provide:r.ComponentMessages,useExisting:n.forwardRef((function(){return o}))}],selector:"[kendoTooltipLocalizedMessages]"}),i.__metadata("design:paramtypes",[r.LocalizationService])],t)}(r.ComponentMessages);t.LocalizedMessagesDirective=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(23),s=o(25),p=function(){function e(){}return e=i.__decorate([n.NgModule({exports:[r.TooltipModule,s.PopoverModule]})],e)}();t.TooltipsModule=p}])}));

@@ -12,5 +12,5 @@ /**-----------------------------------------------------------------------------------------

productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
publishDate: 1643192233,
publishDate: 1643372174,
version: '',
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
};

@@ -12,5 +12,5 @@ /**-----------------------------------------------------------------------------------------

productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
publishDate: 1643192233,
publishDate: 1643372174,
version: '',
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
};

@@ -14,5 +14,5 @@ /**-----------------------------------------------------------------------------------------

productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
publishDate: 1643192233,
publishDate: 1643372174,
version: '',
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
};

@@ -5,2 +5,2 @@ /**-----------------------------------------------------------------------------------------

*-------------------------------------------------------------------------------------------*/
System.register("@progress/kendo-angular-tooltip",["tslib","@angular/core","@angular/common","@progress/kendo-angular-popup","rxjs/operators","rxjs","@progress/kendo-licensing","@progress/kendo-angular-l10n","@progress/kendo-angular-common"],function(v){var r,s,p,a,c,u,l,d,h;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){r=t(e)},function(e){s=t(e)},function(e){p=t(e)},function(e){a=t(e)},function(e){c=t(e)},function(e){u=t(e)},function(e){l=t(e)},function(e){d=t(e)},function(e){h=t(e)}],execute:function(){function i(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var o,n;n={},i.m=o=[function(e,t){e.exports=r},function(e,t){e.exports=s},function(e,t){e.exports=a},function(e,t){e.exports=h},function(e,t,o){"use strict";function n(e){return 9===e.nodeType}Object.defineProperty(t,"__esModule",{value:!0}),t.align=function(e,t){var o={},i={},n={};switch(e){case"top":o={horizontal:"center",vertical:"top"},i={horizontal:"center",vertical:"bottom"},n={horizontal:0,vertical:t};break;case"bottom":o={horizontal:"center",vertical:"bottom"},i={horizontal:"center",vertical:"top"},n={horizontal:0,vertical:t};break;case"right":o={horizontal:"right",vertical:"center"},i={horizontal:"left",vertical:"center"},n={horizontal:t,vertical:0};break;case"left":o={horizontal:"left",vertical:"center"},i={horizontal:"right",vertical:"center"},n={horizontal:t,vertical:0}}return{anchorAlign:o,popupAlign:i,popupMargin:n}},t.collision=function(e,t){return e||("top"===t||"bottom"===t?{horizontal:"fit",vertical:"flip"}:{horizontal:"flip",vertical:"fit"})},t.closestBySelector=function(e,t){if(e.closest)return e.closest(t);for(var o=Element.prototype.matches?function(e,t){return e.matches(t)}:function(e,t){return e.msMatchesSelector(t)},i=e;i&&!n(i);){if(o(i,t))return i;i=i.parentNode}},t.contains=function(e,t){return!!e&&!n(e)&&(e.contains?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY):void 0)},t.hasParent=function(e,t){for(;e&&e!==t;)e=e.parentNode;return e},t.getCenterOffset=function(e,t,o){e=e.getBoundingClientRect();return e[t]+e[o]/2},t.containsItem=function(e,t){return-1!==e.indexOf(t)}},function(e,t){e.exports=u},function(e,t){e.exports=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),i=i.__decorate([o.Directive({selector:"[kendoPopoverActionsTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],n);function n(e){this.templateRef=e}t.PopoverActionsTemplateDirective=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),i=i.__decorate([o.Directive({selector:"[kendoPopoverBodyTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],n);function n(e){this.templateRef=e}t.PopoverBodyTemplateDirective=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),i=i.__decorate([o.Directive({selector:"[kendoPopoverTitleTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],n);function n(e){this.templateRef=e}t.PopoverTitleTemplateDirective=i},function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=t(0),i=t(1),n=t(11),r=t(5),s=t(24),l=t(23),d=t(20),p=t(9),a=t(8),t=t(7),p=(Object.defineProperty(c.prototype,"offset",{get:function(){return this.callout?14+this._offset:this._offset},set:function(e){this._offset=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"width",{get:function(){return this._width},set:function(e){this._width="number"==typeof e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"height",{get:function(){return this._height},set:function(e){this._height="number"==typeof e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"templateData",{get:function(){return this._templateData},set:function(e){if(i.isDevMode&&"function"!=typeof e)throw new Error(d.ERRORS.templateData+" "+JSON.stringify(e)+".");this._templateData=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"hasAttributeHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),c.prototype.ngOnInit=function(){var t=this;this.subs.add(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"}))},c.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},c.prototype.getCalloutPosition=function(){switch(this.position){case"top":return{"k-callout-s":!0};case"bottom":return{"k-callout-n":!0};case"left":return{"k-callout-e":!0};case"right":return{"k-callout-w":!0};default:return{"k-callout-s":!0}}},o.__decorate([i.Input(),o.__metadata("design:type",String)],c.prototype,"position",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],c.prototype,"offset",null),o.__decorate([i.HostBinding("style.width"),i.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],c.prototype,"width",null),o.__decorate([i.HostBinding("style.height"),i.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],c.prototype,"height",null),o.__decorate([i.HostBinding("attr.dir"),o.__metadata("design:type",String)],c.prototype,"direction",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],c.prototype,"title",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],c.prototype,"subtitle",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],c.prototype,"body",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],c.prototype,"callout",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],c.prototype,"animation",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[Function])],c.prototype,"templateData",null),o.__decorate([i.HostBinding("class.k-hidden"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],c.prototype,"isHidden",null),o.__decorate([i.HostBinding("attr.aria-hidden"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],c.prototype,"hasAttributeHidden",null),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],c.prototype,"show",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],c.prototype,"shown",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],c.prototype,"hide",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],c.prototype,"hidden",void 0),o.__decorate([i.ContentChild(p.PopoverTitleTemplateDirective,{static:!1}),o.__metadata("design:type",p.PopoverTitleTemplateDirective)],c.prototype,"titleTemplate",void 0),o.__decorate([i.ContentChild(a.PopoverBodyTemplateDirective,{static:!1}),o.__metadata("design:type",a.PopoverBodyTemplateDirective)],c.prototype,"bodyTemplate",void 0),o.__decorate([i.ContentChild(t.PopoverActionsTemplateDirective,{static:!1}),o.__metadata("design:type",t.PopoverActionsTemplateDirective)],c.prototype,"actionsTemplate",void 0),o.__decorate([i.Component({selector:"kendo-popover",providers:[n.LocalizationService,{provide:n.L10N_PREFIX,useValue:"kendo.popover"}],template:'\n <div *ngIf="visible" role="tooltip" class="k-popover" [ngStyle]="{\'width.px\': width, \'height.px\': height}">\n <div class="k-popover-callout" [ngClass]="getCalloutPosition()" *ngIf="callout"></div>\n\n <div *ngIf="titleTemplate || title" class="k-popover-header">\n <ng-template *ngIf="titleTemplate"\n [ngTemplateOutlet]="titleTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n <ng-container *ngIf="title && !titleTemplate">\n {{ title }}\n </ng-container>\n </div>\n\n <div *ngIf="bodyTemplate || body" class="k-popover-body">\n <ng-template *ngIf="bodyTemplate"\n [ngTemplateOutlet]="bodyTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n <ng-container *ngIf="body && !bodyTemplate">\n {{ body }}\n </ng-container>\n </div>\n\n <div *ngIf="actionsTemplate" class="k-popover-actions k-actions k-hstack k-justify-content-between">\n <ng-template *ngIf="actionsTemplate"\n [ngTemplateOutlet]="actionsTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n </div>\n </div>\n '}),o.__metadata("design:paramtypes",[n.LocalizationService])],c));function c(e){this.localization=e,this.position="right",this.callout=!0,this.animation=!1,this.visible=!1,this.show=new i.EventEmitter,this.shown=new i.EventEmitter,this.hide=new i.EventEmitter,this.hidden=new i.EventEmitter,this._offset=6,this._width="auto",this._height="auto",this.subs=new r.Subscription,this._templateData=function(){return null},s.validatePackage(l.packageMetadata)}e.PopoverComponent=p},function(e,t){e.exports=d},function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=t(0),i=t(13),n=t(1),r=t(2),s=t(15),p=t(19),a=t(10),l=t(9),c=t(8),t=[t(7).PopoverActionsTemplateDirective,c.PopoverBodyTemplateDirective,l.PopoverTitleTemplateDirective,s.PopoverAnchorDirective,p.PopoverContainerDirective],c=o.__decorate([n.NgModule({declarations:t.concat([a.PopoverComponent]),entryComponents:[a.PopoverComponent],exports:t.concat([a.PopoverComponent]),imports:[i.CommonModule,r.PopupModule]})],d);function d(){}e.PopoverModule=c},function(e,t){e.exports=p},function(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=t(0),i=t(1),n=t(13),r=t(25),s=t(2),p=t(21),t=t(27),r=[r.TooltipDirective,p.TooltipContentComponent,t.LocalizedMessagesDirective],t=[s.PopupModule],s=o.__decorate([i.NgModule({declarations:[r],entryComponents:[p.TooltipContentComponent],imports:[n.CommonModule].concat(t),exports:[r]})],a);function a(){}e.TooltipModule=s},function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s,o=t(0),i=t(1),p=t(3),n=t(2),a=t(6),r=t(18),t=t(16),r=(s=r.PopoverDirectivesBase,o.__extends(c,s),c.prototype.show=function(){var e=this;this.popupRef||(this.ngZone.run(function(){e.openPopup(e.hostEl)}),this.popupRef.popupAnchorViewportLeave.pipe(a.take(1)).subscribe(function(){return e.hide()}))},c.prototype.toggle=function(){this.popupRef?this.hide():this.show()},c.prototype.subscribeToEvents=function(t){var o=this;this.subs.add(this.renderer.listen(this.hostEl.nativeElement,t[0].name,function(){o.popoverService.emitAnchorState(!0,o.hostEl.nativeElement),t[0].handler()})),this.subs.add(this.renderer.listen(this.hostEl.nativeElement,t[1].name,function(e){o.popoverService.emitAnchorState(!1,null),t[1].handler({domEvent:e})}))},c.prototype.subscribeClick=function(){var t=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",function(e){t.onClick(e)})},c.prototype.onClick=function(e){var t=this,o=!!p.closest(e.target,function(e){return e.classList&&e.classList.contains("k-popup")}),e=!!p.closest(e.target,function(e){return e===t.hostEl.nativeElement});o||this.popupRef&&e||(e?this.controlVisibility(this.hostEl.nativeElement,!0):this.controlVisibility(this.hostEl.nativeElement,!1))},c.prototype.controlVisibility=function(e,t){this.isPrevented(e,t)||(t?this.show():this.hide())},o.__decorate([i.Directive({selector:"[kendoPopoverAnchor]",exportAs:"kendoPopoverAnchor",providers:[t.PopoverService]}),o.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,n.PopupService,i.Renderer2,t.PopoverService])],c));function c(e,t,o,i,n){var r=s.call(this,t,o,i)||this;return r.hostEl=e,r.ngZone=t,r.popupService=o,r.renderer=i,r.popoverService=n,r.mouseenterHandler=function(){r.controlVisibility(r.hostEl.nativeElement,!0)},r.mouseleaveHandler=function(){r.isPrevented(r.hostEl.nativeElement,!1)||r._hideSub||(r._hideSub=r.popoverService.hidePopover.subscribe(function(e){var t=e[0],e=e[1];t||e||r.hide()}))},r.focusHandler=function(){r.controlVisibility(r.hostEl.nativeElement,!0)},r.blurHandler=function(e){e=e.domEvent;r.isPrevented(r.hostEl.nativeElement,!1)||(p.closest(e.relatedTarget,function(e){return e.classList&&e.classList.contains("k-popover")})||r.hide(),r._focusInsideSub||(r._focusInsideSub=r.popoverService.isFocusInsidePopover.pipe(a.filter(function(e){return null!==e})).subscribe(function(e){e||r.hide()})))},r._popoverService=r.popoverService,r}e.PopoverAnchorDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(5),s=o(6),o=(p.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},Object.defineProperty(p.prototype,"isPopoverHovered",{get:function(){return this._pointerOverPopup.asObservable()},enumerable:!0,configurable:!0}),p.prototype.emitPopoverState=function(t){var o=this;this.ngZone.run(function(e){return o._pointerOverPopup.next(t)})},Object.defineProperty(p.prototype,"isAnchorHovered",{get:function(){return this._pointerOverAnchor.asObservable()},enumerable:!0,configurable:!0}),p.prototype.emitAnchorState=function(t,e){var o=this;this._isOrigin=this.originAnchor===e,this.currentAnchor=e,t&&(this.originAnchor=e),this.ngZone.run(function(e){return o._pointerOverAnchor.next(t)})},Object.defineProperty(p.prototype,"isFocusInsidePopover",{get:function(){return this._focusInsidePopover.asObservable()},enumerable:!0,configurable:!0}),p.prototype.emitFocusInsidePopover=function(t){var o=this;this.ngZone.run(function(e){return o._focusInsidePopover.next(t)}),this._focusInsidePopover.next(null)},Object.defineProperty(p.prototype,"hidePopover",{get:function(){return this._hidePopover.asObservable()},enumerable:!0,configurable:!0}),p.prototype.monitor=function(){var o=this;this.subs.add(r.combineLatest(this.isPopoverHovered,this.isAnchorHovered).pipe(s.auditTime(20)).subscribe(function(e){var t=e[0],e=e[1];o._hidePopover.next([t,e,o._isOrigin,o.currentAnchor])}))},i.__decorate([n.Injectable(),i.__metadata("design:paramtypes",[n.NgZone])],p));function p(e){this.ngZone=e,this._pointerOverPopup=new r.BehaviorSubject(null),this._pointerOverAnchor=new r.BehaviorSubject(null),this._focusInsidePopover=new r.BehaviorSubject(null),this._hidePopover=new r.Subject,this.subs=new r.Subscription,this.monitor()}t.PopoverService=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n,r=o(0),o=o(3);function s(e){var t=i.call(this)||this;return t.anchor=e,t}function p(e,t){var o=n.call(this)||this;return o.anchor=e,o.popover=t,o}i=o.PreventableEvent,r.__extends(s,i),t.PopoverShowEvent=s,n=o.PreventableEvent,r.__extends(p,n),t.PopoverHideEvent=p;function a(e){this.anchor=e}t.PopoverShownEvent=function(e,t){this.anchor=e,this.popover=t};t.PopoverHiddenEvent=a},function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=t(0),p=t(1),i=t(3),n=t(20),r=t(17),a=t(4),c=t(10),l=t(5),d=["hover","click","none","focus"];function s(e,t,o){this.ngZone=e,this.popupService=t,this.renderer=o,this.subs=new l.Subscription,this._showOn="click"}Object.defineProperty(s.prototype,"popover",{get:function(){return this._popover},set:function(e){if(e instanceof c.PopoverComponent||"function"==typeof e)this._popover=e;else if(p.isDevMode)throw new Error(n.ERRORS.popover)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"showOn",{get:function(){return this._showOn},set:function(e){if(p.isDevMode&&!a.containsItem(d,e))throw new Error(n.ERRORS.showOn);this._showOn=e},enumerable:!0,configurable:!0}),s.prototype.ngAfterViewInit=function(){var e=this;this.ngZone.runOutsideAngular(function(){switch(e.showOn){case"hover":e.subscribeToEvents([{name:"mouseenter",handler:e.mouseenterHandler},{name:"mouseleave",handler:e.mouseleaveHandler}]);break;case"focus":e.subscribeToEvents([{name:"focus",handler:e.focusHandler},{name:"blur",handler:e.blurHandler}]);break;case"click":e.subscribeClick()}})},s.prototype.ngOnDestroy=function(){this.closePopup(),this.disposeHoverOverListener&&this.disposeHoverOverListener(),this.disposeHoverOutListener&&this.disposeHoverOutListener(),this.disposeClickListener&&this.disposeClickListener(),this._focusInsideSub&&this._focusInsideSub.unsubscribe(),this._hideSub&&this._hideSub.unsubscribe(),this.subs&&this.subs.unsubscribe(),this._popupOpenSub&&this._popupOpenSub.unsubscribe(),this._popupCloseSub&&this._popupCloseSub.unsubscribe()},s.prototype.hide=function(){this.closePopup()},s.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.disposePopupHoverOutListener&&this.disposePopupHoverOutListener(),this.disposePopupHoverInListener&&this.disposePopupHoverInListener(),this.disposePopupFocusOutListener&&this.disposePopupFocusOutListener())},s.prototype.openPopup=function(e){var t=e instanceof p.ElementRef?e.nativeElement:e,o=this.popover instanceof c.PopoverComponent?this.popover:this.popover(t),i=a.align(o.position,o.offset),n=i.anchorAlign,r=i.popupAlign,i=i.popupMargin,s=o.animation;this.popupRef=this.popupService.open({anchor:{nativeElement:t},animate:s,content:c.PopoverComponent,popupAlign:r,anchorAlign:n,margin:i,popupClass:"k-popup-transparent",collision:{horizontal:"fit",vertical:"fit"}}),this.applySettings(this.popupRef.content,o,e),this.monitorPopup(),this.initializeCompletionEvents(o,t)},s.prototype.isPrevented=function(e,t){var o=this.popover instanceof c.PopoverComponent?this.popover:this.popover(e);return this.initializeEvents(o,void 0,t,e).isDefaultPrevented()},s.prototype.monitorPopup=function(){var t=this;"hover"===this.showOn&&this.ngZone.runOutsideAngular(function(){var e=t.popupRef.popupElement;t.disposePopupHoverInListener=t.renderer.listen(e,"mouseenter",function(e){t.ngZone.run(function(e){return t._popoverService.emitPopoverState(!0)})}),t.disposePopupHoverOutListener=t.renderer.listen(e,"mouseleave",function(e){t.ngZone.run(function(e){return t._popoverService.emitPopoverState(!1)})})}),"focus"===this.showOn&&this.ngZone.runOutsideAngular(function(){var e=t.popupRef.popupElement;t.disposePopupFocusOutListener=t.renderer.listen(e,"focusout",function(e){i.closest(e.relatedTarget,function(e){return e.classList&&e.classList.contains("k-popover")})||t.ngZone.run(function(e){return t._popoverService.emitFocusInsidePopover(!1)})})})},s.prototype.applySettings=function(e,t,o){e=e.instance,o=o instanceof p.ElementRef?o.nativeElement:o;e.visible=!0,e.anchor=o,e.position=t.position,e.offset=t.offset,e.width=t.width,e.height=t.height,e.title=t.title,e.body=t.body,e.callout=t.callout,e.animation=t.animation,e.contextData=t.templateData(o),e.titleTemplate=t.titleTemplate,e.bodyTemplate=t.bodyTemplate,e.actionsTemplate=t.actionsTemplate,this.popupRef.content.changeDetectorRef.detectChanges()},s.prototype.initializeEvents=function(t,o,e,i){var n=this;return e?this.ngZone.run(function(e){o=new r.PopoverShowEvent(i),n.popupRef||t.show.emit(o)}):this.ngZone.run(function(e){o=new r.PopoverHideEvent(i,n.popupRef),n.popupRef&&t.hide.emit(o)}),o},s.prototype.initializeCompletionEvents=function(o,i){var t=this;this._popupOpenSub||this.popupRef.popupOpen.subscribe(function(){var e=new r.PopoverShownEvent(i,t.popupRef);o.shown.emit(e)}),this._popupCloseSub||this.popupRef.popupClose.subscribe(function(){t.ngZone.run(function(e){var t=new r.PopoverHiddenEvent(i);o.hidden.emit(t)})})},o.__decorate([p.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],s.prototype,"popover",null),o.__decorate([p.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],s.prototype,"showOn",null),e.PopoverDirectivesBase=s},function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s,o=t(0),i=t(1),p=t(3),n=t(2),a=t(6),l=t(4),r=t(18),t=t(16),r=(s=r.PopoverDirectivesBase,o.__extends(c,s),c.prototype.show=function(e){var t=this;this.popupRef||(this.ngZone.run(function(){t.openPopup(e)}),this.popupRef.popupAnchorViewportLeave.pipe(a.take(1)).subscribe(function(){return t.hide()}))},c.prototype.toggle=function(e){var t=this.popupRef&&this.popupRef.content.instance.anchor;this.popupRef?(this.hide(),t!==e&&this.show(e)):this.show(e)},c.prototype.subscribeClick=function(){var o=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",function(e){var t=l.closestBySelector(e.target,o.filter);o.clickHandler(t,e)})},c.prototype.subscribeToEvents=function(o){var i=this;p.isDocumentAvailable()&&Array.from(document.querySelectorAll(this.filter)).forEach(function(t){i.subs.add(i.renderer.listen(t,o[0].name,function(){i.popoverService.emitAnchorState(!0,t),o[0].handler(t)})),i.subs.add(i.renderer.listen(t,o[1].name,function(e){i.popoverService.emitAnchorState(!1,null),o[1].handler({anchor:t,domEvent:e})}))})},c.prototype.clickHandler=function(t,e){var o=!!p.closest(e.target,function(e){return e.classList&&e.classList.contains("k-popup")}),i=this.popupRef&&this.popupRef.content.instance.anchor,e=!!p.closest(e.target,function(e){return e===(i||t)});"click"!==this.showOn||o||this.popupRef&&e||(t||!this.popupRef?e?this.controlVisibility(t,!0):this.popupRef&&(this.controlVisibility(t,!1),this.controlVisibility(t,!0)):this.controlVisibility(t,!1))},c.prototype.controlVisibility=function(e,t){this.isPrevented(e,t)||(t?this.show(e):this.hide())},o.__decorate([i.Input(),o.__metadata("design:type",String)],c.prototype,"filter",void 0),o.__decorate([i.Directive({selector:"[kendoPopoverContainer]",exportAs:"kendoPopoverContainer",providers:[t.PopoverService]}),o.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,n.PopupService,i.Renderer2,t.PopoverService])],c));function c(e,t,o,i,n){var r=s.call(this,t,o,i)||this;return r.wrapperEl=e,r.ngZone=t,r.popupService=o,r.renderer=i,r.popoverService=n,r.mouseenterHandler=function(e){r.controlVisibility(e,!0)},r.mouseleaveHandler=function(e){e=e.anchor;r.isPrevented(e,!1)||r._hideSub||(r._hideSub=r.popoverService.hidePopover.subscribe(function(e){var t=e[0],o=e[2],e=e[3];t||o||(r.hide(),!o&&e&&r.show(e))}))},r.focusHandler=function(e){r.controlVisibility(e,!0)},r.blurHandler=function(e){var t,o=e.anchor,e=e.domEvent;r.isPrevented(o,!1)||((t=!!p.closest(e.relatedTarget,function(e){return e.classList&&e.classList.contains("k-popover")}))||r.hide(),r._focusInsideSub||(r._focusInsideSub=r.popoverService.isFocusInsidePopover.pipe(a.filter(function(e){return null!==e})).subscribe(function(e){e||t||r.hide()})))},r._popoverService=r.popoverService,r}e.PopoverContainerDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERRORS={popover:"Invalid value provided for the 'popover' property. The accepted data types are 'PopoverComponent' or 'PopoverFn'.",templateData:"templateData must be a function, but received",showOn:"Invalid value provided for the 'showOn' property. The available options are 'click', 'hover', 'focus' or 'none'."}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(11),c=o(4),o=(Object.defineProperty(s.prototype,"cssClasses",{get:function(){return"k-widget k-tooltip"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"className",{get:function(){return this.closable},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"cssPosition",{get:function(){return"relative"},enumerable:!0,configurable:!0}),s.prototype.ngOnInit=function(){var t=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(e){e=e.rtl;return t.direction=e?"rtl":"ltr"})},s.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},Object.defineProperty(s.prototype,"closeButtonTitle",{get:function(){return this.closeTitle||this.localizationService.get("closeTitle")},enumerable:!0,configurable:!0}),s.prototype.calloutPositionClass=function(){return{top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"}[this.position]},s.prototype.onCloseClick=function(e){e.preventDefault(),this.close.emit()},s.prototype.updateCalloutPosition=function(e,t){var o,i,n,r,s,p,a;this.callout&&(p=(i="top"===e||"bottom"===e)?"width":"height",s=i?"left":"top",i=i?"marginLeft":"marginTop",n=(o=this.content.nativeElement.querySelector(".k-callout")).getBoundingClientRect()[p],r=c.getCenterOffset(this.anchor.nativeElement,s,p),s=c.getCenterOffset(this.content.nativeElement,s,p),(1<(p=Math.abs(s-r))||0===p||0===Math.round(p))&&(o.style[i]=-(s-r+n/2)+"px"),a=this.calloutStyles(e,n,t),Object.keys(a).forEach(function(e){o.style[e]=a[e]}))},i.__decorate([n.HostBinding("attr.dir"),i.__metadata("design:type",String)],s.prototype,"direction",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],s.prototype,"close",void 0),i.__decorate([n.HostBinding("class"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],s.prototype,"cssClasses",null),i.__decorate([n.HostBinding("class.k-tooltip-closable"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],s.prototype,"className",null),i.__decorate([n.HostBinding("style.position"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],s.prototype,"cssPosition",null),i.__decorate([n.HostBinding("style.width.px"),n.Input(),i.__metadata("design:type",Number)],s.prototype,"tooltipWidth",void 0),i.__decorate([n.HostBinding("style.height.px"),n.Input(),i.__metadata("design:type",Number)],s.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],s.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.ElementRef)],s.prototype,"anchor",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],s.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],s.prototype,"templateRef",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],s.prototype,"templateString",void 0),i.__decorate([n.Component({selector:"kendo-tooltip",template:'\n <ng-container kendoTooltipLocalizedMessages\n i18n-closeTitle="kendo.tooltip.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n </ng-container>\n\n <div class="k-tooltip-content">\n <div class="k-tooltip-title" *ngIf="titleTemplate">\n <ng-template\n [ngIf]="titleTemplate"\n [ngTemplateOutlet]="titleTemplate"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n </div>\n\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n <ng-template\n [ngIf]="templateString">\n {{ templateString }}\n </ng-template>\n </div>\n\n <div *ngIf="closable" class="k-tooltip-button" (click)="onCloseClick($event)">\n <a href="#" class="k-icon k-i-close" [attr.title]="closeButtonTitle"></a>\n </div>\n\n <div class="k-callout" *ngIf="callout" [ngClass]="calloutPositionClass()"></div>\n ',providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.tooltip"}]}),i.__metadata("design:paramtypes",[n.ElementRef,r.LocalizationService])],s));function s(e,t){this.content=e,this.localizationService=t,this.close=new n.EventEmitter,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=function(e,t,o){var i={},n="top"===e||"bottom"===e;return o?("top"===e?i.bottom="unset":"bottom"===e?i.top="unset":"left"===e?i.right="unset":"right"===e&&(i.left="unset"),i[e]=-t+"px",i.transform=n?"rotateX(180deg)":"rotateY(180deg)"):i.transform=n?"rotateX(0deg)":"rotateY(0deg)",i},this.direction=t.rtl?"rtl":"ltr"}t.TooltipContentComponent=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),i=(t.TOOLTIP_SETTINGS=new o.InjectionToken("kendo-ui-tooltip-settings"),i.__decorate([o.Injectable()],n));function n(){}t.TooltipSettings=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-tooltip",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1643192233,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t){e.exports=l},function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=t(0),i=t(1),p=t(6),a=t(5),n=t(2),l=t(24),d=t(23),r=t(22),h=t(21),c=t(4),t=(Object.defineProperty(s.prototype,"tooltipTemplate",{get:function(){return this.template},set:function(e){this.template=e},enumerable:!0,configurable:!0}),s.prototype.show=function(e){var t=this;this.popupRef||(e instanceof Element&&(e={nativeElement:e}),this.anchor=e,"hover"===this.showOn?this.popupRef||(clearTimeout(this.showTimeout),this.showTimeout=window.setTimeout(function(){return t.showContent(t.anchor)},this.showAfter)):(this.hideElementTitle(this.anchor),this.showContent(this.anchor)))},s.prototype.hide=function(){clearTimeout(this.showTimeout);var e=this.anchor&&this.anchor.nativeElement;e&&e.getAttribute("data-title")&&(!e.getAttribute("title")&&e.hasAttribute("title")&&e.setAttribute("title",e.getAttribute("data-title")),e.setAttribute("data-title","")),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe(),this.closeClickSubscription&&this.closeClickSubscription.unsubscribe(),this.closePopup()},s.prototype.toggle=function(e,t){var o=this.anchor&&this.anchor.nativeElement;o!==(e=e instanceof Element?{nativeElement:e}:e).nativeElement&&this.hide(),o===e.nativeElement&&"click"===this.showOn&&this.hide(),(t=void 0===t?!this.popupRef:t)?this.show(e):this.hide()},s.prototype.ngOnInit=function(){void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties()},s.prototype.ngOnChanges=function(e){e.showOn&&this.subscribeClick()},s.prototype.ngAfterViewChecked=function(){this.popupRef&&this.anchor&&!c.hasParent(this.anchor.nativeElement||this.anchor,this.tooltipWrapper.nativeElement)&&(this.anchor=null,this.hide())},s.prototype.ngOnDestroy=function(){this.hide(),this.template=null,this.anchorTitleSubscription.unsubscribe(),this.mouseOverSubscription.unsubscribe(),this.mouseOutSubscription.unsubscribe(),this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe(),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe()},s.prototype.showContent=function(e){var t=this;(e.nativeElement.getAttribute("data-title")||this.template)&&(this.ngZone.run(function(){t.openPopup(e),t.bindContent(t.popupRef.content,e)}),this.popupRef.popupAnchorViewportLeave.pipe(p.take(1)).subscribe(function(){return t.hide()}))},s.prototype.bindContent=function(e,t){var o=this,e=e.instance;this.closeClickSubscription=e.close.subscribe(function(){o.hide()}),this.template?e.templateRef=this.template:e.templateString=this.anchor.nativeElement.getAttribute("data-title"),this.titleTemplate&&(e.titleTemplate=this.titleTemplate),e.closeTitle=this.closeTitle,e.anchor=t,e.callout=this.callout,e.closable=this.closable,e.position=this.position,e.tooltipWidth=this.tooltipWidth,e.tooltipHeight=this.tooltipHeight,this.popupRef.content.changeDetectorRef.detectChanges()},s.prototype.hideElementTitle=function(e){e=e.nativeElement;e.getAttribute("title")&&(e.setAttribute("data-title",e.getAttribute("title")),e.setAttribute("title",""))},s.prototype.openPopup=function(e){var t=this,o=c.align(this.position,this.offset),i=o.anchorAlign,n=o.popupAlign,o=o.popupMargin,r=(this.popupRef=this.popupService.open({anchor:e,anchorAlign:i,animate:!1,content:h.TooltipContentComponent,collision:c.collision(this.collision,this.position),margin:o,popupAlign:n,popupClass:"k-popup-transparent"}),this.renderer.addClass(this.popupRef.popupElement,"k-tooltip-wrapper"),this.tooltipClass&&this.renderer.addClass(this.popupRef.popupElement,this.tooltipClass),this.popupRef.content.instance);r.callout&&(this.popupPositionChangeSubscription=this.popupRef.popupPositionChange.subscribe(function(e){e=e.flip,e=!0===e.horizontal||!0===e.vertical;r.updateCalloutPosition(t.position,e)})),"hover"===this.showOn&&this.ngZone.runOutsideAngular(function(){var e=t.popupRef.popupElement;t.popupMouseOutSubscription=a.fromEvent(e,"mouseout").subscribe(function(e){return t.onMouseOut(e)})})},s.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe()},s.prototype.subscribeClick=function(){var t=this;this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),"click"===this.showOn&&(this.mouseClickSubscription=a.fromEvent(document,"click").pipe(p.filter(function(){return""!==t.filter})).subscribe(function(e){return t.onMouseClick(e,t.tooltipWrapper.nativeElement)}))},s.prototype.onMouseClick=function(e,t){var e=e.target,o=c.closestBySelector(e,this.filter),i=this.popupRef&&this.popupRef.popupElement;if(i){if(i.contains(e))return;if(this.closable)return}t.contains(e)&&o?this.toggle(o,!0):i&&this.hide()},s.prototype.onMouseOver=function(e){e=c.closestBySelector(e.target,this.filter);"hover"===this.showOn&&e&&this.toggle(e,!0)},s.prototype.onMouseOut=function(e){var t;"hover"!==this.showOn||this.closable||(t=this.popupRef&&this.popupRef.popupElement,(e=e.relatedTarget)&&this.anchor&&c.contains(this.anchor.nativeElement,e)||e&&c.contains(t,e)||this.hide())},s.prototype.verifyProperties=function(){if(i.isDevMode()){if(!c.containsItem(this.validPositions,this.position))throw new Error("Invalid value provided for position property.The available options are 'top', 'bottom', 'left', or 'right'.");if(!c.containsItem(this.validShowOptions,this.showOn))throw new Error("Invalid value provided for showOn property.The available options are 'hover' or 'none'.")}},o.__decorate([i.Input(),o.__metadata("design:type",String)],s.prototype,"filter",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],s.prototype,"position",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef)],s.prototype,"titleTemplate",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],s.prototype,"showOn",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],s.prototype,"showAfter",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],s.prototype,"callout",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],s.prototype,"closable",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],s.prototype,"offset",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],s.prototype,"tooltipWidth",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],s.prototype,"tooltipHeight",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],s.prototype,"tooltipClass",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],s.prototype,"collision",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],s.prototype,"closeTitle",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef),o.__metadata("design:paramtypes",[i.TemplateRef])],s.prototype,"tooltipTemplate",null),o.__decorate([i.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip"}),o.__param(4,i.Optional()),o.__param(5,i.Optional()),o.__param(5,i.Inject(r.TOOLTIP_SETTINGS)),o.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,i.Renderer2,n.PopupService,r.TooltipSettings,r.TooltipSettings])],s));function s(e,t,o,i,n,r){var s=this;this.tooltipWrapper=e,this.ngZone=t,this.renderer=o,this.popupService=i,this.filter="[title]",this.position="top",this.showAfter=100,this.callout=!0,this.closable=!1,this.offset=6,this.anchor=null,this.validPositions=["top","bottom","right","left"],this.validShowOptions=["hover","click","none"],l.validatePackage(d.packageMetadata),Object.assign(this,n,r),this.ngZone.runOutsideAngular(function(){var e=s.tooltipWrapper.nativeElement;s.anchorTitleSubscription=a.fromEvent(e,"mouseover").pipe(p.filter(function(){return""!==s.filter})).subscribe(function(e){e=c.closestBySelector(e.target,s.filter);e&&s.hideElementTitle({nativeElement:e})}),s.mouseOverSubscription=a.fromEvent(e,"mouseover").pipe(p.debounceTime(100),p.filter(function(){return""!==s.filter})).subscribe(function(e){return s.onMouseOver(e)}),s.mouseOutSubscription=a.fromEvent(e,"mouseout").pipe(p.debounceTime(100)).subscribe(function(e){return s.onMouseOut(e)})})}e.TooltipDirective=t},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(14),o=o(12),i=i.__decorate([n.NgModule({exports:[r.TooltipModule,o.PopoverModule]})],s);function s(){}t.TooltipsModule=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n,r=o(0),s=o(1),o=o(11),s=(i=o.ComponentMessages,r.__extends(p,i),n=p,r.__decorate([s.Input(),r.__metadata("design:type",String)],p.prototype,"closeTitle",void 0),n=r.__decorate([s.Directive({providers:[{provide:o.ComponentMessages,useExisting:s.forwardRef(function(){return n})}],selector:"[kendoTooltipLocalizedMessages]"}),r.__metadata("design:paramtypes",[o.LocalizationService])],p));function p(e){var t=i.call(this)||this;return t.service=e,t}t.LocalizedMessagesDirective=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(25),n=(t.TooltipDirective=n.TooltipDirective,o(22)),n=(t.TooltipSettings=n.TooltipSettings,t.TOOLTIP_SETTINGS=n.TOOLTIP_SETTINGS,o(10)),n=(t.PopoverComponent=n.PopoverComponent,o(19)),n=(t.PopoverContainerDirective=n.PopoverContainerDirective,o(15)),n=(t.PopoverAnchorDirective=n.PopoverAnchorDirective,o(9)),n=(t.PopoverTitleTemplateDirective=n.PopoverTitleTemplateDirective,o(8)),n=(t.PopoverBodyTemplateDirective=n.PopoverBodyTemplateDirective,o(7)),n=(t.PopoverActionsTemplateDirective=n.PopoverActionsTemplateDirective,o(17)),n=(t.PopoverShowEvent=n.PopoverShowEvent,t.PopoverShownEvent=n.PopoverShownEvent,t.PopoverHideEvent=n.PopoverHideEvent,t.PopoverHiddenEvent=n.PopoverHiddenEvent,o(14)),n=(t.TooltipModule=n.TooltipModule,o(12)),n=(t.PopoverModule=n.PopoverModule,o(26)),r=(t.TooltipsModule=n.TooltipsModule,t);for(i in r)v(i,r[i])}],i.c=n,i.d=function(e,t,o){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},i.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=28)}}});
System.register("@progress/kendo-angular-tooltip",["@angular/core","tslib","@angular/common","@progress/kendo-angular-popup","rxjs/operators","rxjs","@progress/kendo-licensing","@progress/kendo-angular-l10n","@progress/kendo-angular-common"],function(v){var r,s,p,a,c,u,l,d,h;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){r=t(e)},function(e){s=t(e)},function(e){p=t(e)},function(e){a=t(e)},function(e){c=t(e)},function(e){u=t(e)},function(e){l=t(e)},function(e){d=t(e)},function(e){h=t(e)}],execute:function(){function i(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var o,n;n={},i.m=o=[function(e,t){e.exports=s},function(e,t){e.exports=r},function(e,t){e.exports=a},function(e,t){e.exports=h},function(e,t,o){"use strict";function n(e){return 9===e.nodeType}Object.defineProperty(t,"__esModule",{value:!0}),t.align=function(e,t){var o={},i={},n={};switch(e){case"top":o={horizontal:"center",vertical:"top"},i={horizontal:"center",vertical:"bottom"},n={horizontal:0,vertical:t};break;case"bottom":o={horizontal:"center",vertical:"bottom"},i={horizontal:"center",vertical:"top"},n={horizontal:0,vertical:t};break;case"right":o={horizontal:"right",vertical:"center"},i={horizontal:"left",vertical:"center"},n={horizontal:t,vertical:0};break;case"left":o={horizontal:"left",vertical:"center"},i={horizontal:"right",vertical:"center"},n={horizontal:t,vertical:0}}return{anchorAlign:o,popupAlign:i,popupMargin:n}},t.collision=function(e,t){return e||("top"===t||"bottom"===t?{horizontal:"fit",vertical:"flip"}:{horizontal:"flip",vertical:"fit"})},t.closestBySelector=function(e,t){if(e.closest)return e.closest(t);for(var o=Element.prototype.matches?function(e,t){return e.matches(t)}:function(e,t){return e.msMatchesSelector(t)},i=e;i&&!n(i);){if(o(i,t))return i;i=i.parentNode}},t.contains=function(e,t){return!!e&&!n(e)&&(e.contains?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY):void 0)},t.hasParent=function(e,t){for(;e&&e!==t;)e=e.parentNode;return e},t.getCenterOffset=function(e,t,o){e=e.getBoundingClientRect();return e[t]+e[o]/2},t.containsItem=function(e,t){return-1!==e.indexOf(t)}},function(e,t){e.exports=u},function(e,t){e.exports=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),i=i.__decorate([o.Directive({selector:"[kendoPopoverActionsTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],n);function n(e){this.templateRef=e}t.PopoverActionsTemplateDirective=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),i=i.__decorate([o.Directive({selector:"[kendoPopoverBodyTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],n);function n(e){this.templateRef=e}t.PopoverBodyTemplateDirective=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),i=i.__decorate([o.Directive({selector:"[kendoPopoverTitleTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],n);function n(e){this.templateRef=e}t.PopoverTitleTemplateDirective=i},function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=t(0),i=t(1),n=t(11),r=t(5),s=t(24),l=t(23),d=t(20),p=t(9),a=t(8),t=t(7),p=(Object.defineProperty(c.prototype,"offset",{get:function(){return this.callout?14+this._offset:this._offset},set:function(e){this._offset=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"width",{get:function(){return this._width},set:function(e){this._width="number"==typeof e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"height",{get:function(){return this._height},set:function(e){this._height="number"==typeof e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"templateData",{get:function(){return this._templateData},set:function(e){if(i.isDevMode&&"function"!=typeof e)throw new Error(d.ERRORS.templateData+" "+JSON.stringify(e)+".");this._templateData=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"hasAttributeHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),c.prototype.ngOnInit=function(){var t=this;this.subs.add(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"}))},c.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},c.prototype.getCalloutPosition=function(){switch(this.position){case"top":return{"k-callout-s":!0};case"bottom":return{"k-callout-n":!0};case"left":return{"k-callout-e":!0};case"right":return{"k-callout-w":!0};default:return{"k-callout-s":!0}}},o.__decorate([i.Input(),o.__metadata("design:type",String)],c.prototype,"position",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],c.prototype,"offset",null),o.__decorate([i.HostBinding("style.width"),i.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],c.prototype,"width",null),o.__decorate([i.HostBinding("style.height"),i.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],c.prototype,"height",null),o.__decorate([i.HostBinding("attr.dir"),o.__metadata("design:type",String)],c.prototype,"direction",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],c.prototype,"title",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],c.prototype,"subtitle",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],c.prototype,"body",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],c.prototype,"callout",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],c.prototype,"animation",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[Function])],c.prototype,"templateData",null),o.__decorate([i.HostBinding("class.k-hidden"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],c.prototype,"isHidden",null),o.__decorate([i.HostBinding("attr.aria-hidden"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],c.prototype,"hasAttributeHidden",null),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],c.prototype,"show",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],c.prototype,"shown",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],c.prototype,"hide",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],c.prototype,"hidden",void 0),o.__decorate([i.ContentChild(p.PopoverTitleTemplateDirective,{static:!1}),o.__metadata("design:type",p.PopoverTitleTemplateDirective)],c.prototype,"titleTemplate",void 0),o.__decorate([i.ContentChild(a.PopoverBodyTemplateDirective,{static:!1}),o.__metadata("design:type",a.PopoverBodyTemplateDirective)],c.prototype,"bodyTemplate",void 0),o.__decorate([i.ContentChild(t.PopoverActionsTemplateDirective,{static:!1}),o.__metadata("design:type",t.PopoverActionsTemplateDirective)],c.prototype,"actionsTemplate",void 0),o.__decorate([i.Component({selector:"kendo-popover",providers:[n.LocalizationService,{provide:n.L10N_PREFIX,useValue:"kendo.popover"}],template:'\n <div *ngIf="visible" role="tooltip" class="k-popover" [ngStyle]="{\'width.px\': width, \'height.px\': height}">\n <div class="k-popover-callout" [ngClass]="getCalloutPosition()" *ngIf="callout"></div>\n\n <div *ngIf="titleTemplate || title" class="k-popover-header">\n <ng-template *ngIf="titleTemplate"\n [ngTemplateOutlet]="titleTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n <ng-container *ngIf="title && !titleTemplate">\n {{ title }}\n </ng-container>\n </div>\n\n <div *ngIf="bodyTemplate || body" class="k-popover-body">\n <ng-template *ngIf="bodyTemplate"\n [ngTemplateOutlet]="bodyTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n <ng-container *ngIf="body && !bodyTemplate">\n {{ body }}\n </ng-container>\n </div>\n\n <div *ngIf="actionsTemplate" class="k-popover-actions k-actions k-hstack k-justify-content-between">\n <ng-template *ngIf="actionsTemplate"\n [ngTemplateOutlet]="actionsTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n </div>\n </div>\n '}),o.__metadata("design:paramtypes",[n.LocalizationService])],c));function c(e){this.localization=e,this.position="right",this.callout=!0,this.animation=!1,this.visible=!1,this.show=new i.EventEmitter,this.shown=new i.EventEmitter,this.hide=new i.EventEmitter,this.hidden=new i.EventEmitter,this._offset=6,this._width="auto",this._height="auto",this.subs=new r.Subscription,this._templateData=function(){return null},s.validatePackage(l.packageMetadata)}e.PopoverComponent=p},function(e,t){e.exports=d},function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=t(0),i=t(13),n=t(1),r=t(2),s=t(15),p=t(19),a=t(10),l=t(9),c=t(8),t=[t(7).PopoverActionsTemplateDirective,c.PopoverBodyTemplateDirective,l.PopoverTitleTemplateDirective,s.PopoverAnchorDirective,p.PopoverContainerDirective],c=o.__decorate([n.NgModule({declarations:t.concat([a.PopoverComponent]),entryComponents:[a.PopoverComponent],exports:t.concat([a.PopoverComponent]),imports:[i.CommonModule,r.PopupModule]})],d);function d(){}e.PopoverModule=c},function(e,t){e.exports=p},function(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=t(0),i=t(1),n=t(13),r=t(25),s=t(2),p=t(21),t=t(27),r=[r.TooltipDirective,p.TooltipContentComponent,t.LocalizedMessagesDirective],t=[s.PopupModule],s=o.__decorate([i.NgModule({declarations:[r],entryComponents:[p.TooltipContentComponent],imports:[n.CommonModule].concat(t),exports:[r]})],a);function a(){}e.TooltipModule=s},function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s,o=t(0),i=t(1),p=t(3),n=t(2),a=t(6),r=t(18),t=t(16),r=(s=r.PopoverDirectivesBase,o.__extends(c,s),c.prototype.show=function(){var e=this;this.popupRef||(this.ngZone.run(function(){e.openPopup(e.hostEl)}),this.popupRef.popupAnchorViewportLeave.pipe(a.take(1)).subscribe(function(){return e.hide()}))},c.prototype.toggle=function(){this.popupRef?this.hide():this.show()},c.prototype.subscribeToEvents=function(t){var o=this;this.subs.add(this.renderer.listen(this.hostEl.nativeElement,t[0].name,function(){o.popoverService.emitAnchorState(!0,o.hostEl.nativeElement),t[0].handler()})),this.subs.add(this.renderer.listen(this.hostEl.nativeElement,t[1].name,function(e){o.popoverService.emitAnchorState(!1,null),t[1].handler({domEvent:e})}))},c.prototype.subscribeClick=function(){var t=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",function(e){t.onClick(e)})},c.prototype.onClick=function(e){var t=this,o=!!p.closest(e.target,function(e){return e.classList&&e.classList.contains("k-popup")}),e=!!p.closest(e.target,function(e){return e===t.hostEl.nativeElement});o||this.popupRef&&e||(e?this.controlVisibility(this.hostEl.nativeElement,!0):this.controlVisibility(this.hostEl.nativeElement,!1))},c.prototype.controlVisibility=function(e,t){this.isPrevented(e,t)||(t?this.show():this.hide())},o.__decorate([i.Directive({selector:"[kendoPopoverAnchor]",exportAs:"kendoPopoverAnchor",providers:[t.PopoverService]}),o.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,n.PopupService,i.Renderer2,t.PopoverService])],c));function c(e,t,o,i,n){var r=s.call(this,t,o,i)||this;return r.hostEl=e,r.ngZone=t,r.popupService=o,r.renderer=i,r.popoverService=n,r.mouseenterHandler=function(){r.controlVisibility(r.hostEl.nativeElement,!0)},r.mouseleaveHandler=function(){r.isPrevented(r.hostEl.nativeElement,!1)||r._hideSub||(r._hideSub=r.popoverService.hidePopover.subscribe(function(e){var t=e[0],e=e[1];t||e||r.hide()}))},r.focusHandler=function(){r.controlVisibility(r.hostEl.nativeElement,!0)},r.blurHandler=function(e){e=e.domEvent;r.isPrevented(r.hostEl.nativeElement,!1)||(p.closest(e.relatedTarget,function(e){return e.classList&&e.classList.contains("k-popover")})||r.hide(),r._focusInsideSub||(r._focusInsideSub=r.popoverService.isFocusInsidePopover.pipe(a.filter(function(e){return null!==e})).subscribe(function(e){e||r.hide()})))},r._popoverService=r.popoverService,r}e.PopoverAnchorDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(5),s=o(6),o=(p.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},Object.defineProperty(p.prototype,"isPopoverHovered",{get:function(){return this._pointerOverPopup.asObservable()},enumerable:!0,configurable:!0}),p.prototype.emitPopoverState=function(t){var o=this;this.ngZone.run(function(e){return o._pointerOverPopup.next(t)})},Object.defineProperty(p.prototype,"isAnchorHovered",{get:function(){return this._pointerOverAnchor.asObservable()},enumerable:!0,configurable:!0}),p.prototype.emitAnchorState=function(t,e){var o=this;this._isOrigin=this.originAnchor===e,this.currentAnchor=e,t&&(this.originAnchor=e),this.ngZone.run(function(e){return o._pointerOverAnchor.next(t)})},Object.defineProperty(p.prototype,"isFocusInsidePopover",{get:function(){return this._focusInsidePopover.asObservable()},enumerable:!0,configurable:!0}),p.prototype.emitFocusInsidePopover=function(t){var o=this;this.ngZone.run(function(e){return o._focusInsidePopover.next(t)}),this._focusInsidePopover.next(null)},Object.defineProperty(p.prototype,"hidePopover",{get:function(){return this._hidePopover.asObservable()},enumerable:!0,configurable:!0}),p.prototype.monitor=function(){var o=this;this.subs.add(r.combineLatest(this.isPopoverHovered,this.isAnchorHovered).pipe(s.auditTime(20)).subscribe(function(e){var t=e[0],e=e[1];o._hidePopover.next([t,e,o._isOrigin,o.currentAnchor])}))},i.__decorate([n.Injectable(),i.__metadata("design:paramtypes",[n.NgZone])],p));function p(e){this.ngZone=e,this._pointerOverPopup=new r.BehaviorSubject(null),this._pointerOverAnchor=new r.BehaviorSubject(null),this._focusInsidePopover=new r.BehaviorSubject(null),this._hidePopover=new r.Subject,this.subs=new r.Subscription,this.monitor()}t.PopoverService=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n,r=o(0),o=o(3);function s(e){var t=i.call(this)||this;return t.anchor=e,t}function p(e,t){var o=n.call(this)||this;return o.anchor=e,o.popover=t,o}i=o.PreventableEvent,r.__extends(s,i),t.PopoverShowEvent=s,n=o.PreventableEvent,r.__extends(p,n),t.PopoverHideEvent=p;function a(e){this.anchor=e}t.PopoverShownEvent=function(e,t){this.anchor=e,this.popover=t};t.PopoverHiddenEvent=a},function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=t(0),p=t(1),i=t(3),n=t(20),r=t(17),a=t(4),c=t(10),l=t(5),d=["hover","click","none","focus"];function s(e,t,o){this.ngZone=e,this.popupService=t,this.renderer=o,this.subs=new l.Subscription,this._showOn="click"}Object.defineProperty(s.prototype,"popover",{get:function(){return this._popover},set:function(e){if(e instanceof c.PopoverComponent||"function"==typeof e)this._popover=e;else if(p.isDevMode)throw new Error(n.ERRORS.popover)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"showOn",{get:function(){return this._showOn},set:function(e){if(p.isDevMode&&!a.containsItem(d,e))throw new Error(n.ERRORS.showOn);this._showOn=e},enumerable:!0,configurable:!0}),s.prototype.ngAfterViewInit=function(){var e=this;this.ngZone.runOutsideAngular(function(){switch(e.showOn){case"hover":e.subscribeToEvents([{name:"mouseenter",handler:e.mouseenterHandler},{name:"mouseleave",handler:e.mouseleaveHandler}]);break;case"focus":e.subscribeToEvents([{name:"focus",handler:e.focusHandler},{name:"blur",handler:e.blurHandler}]);break;case"click":e.subscribeClick()}})},s.prototype.ngOnDestroy=function(){this.closePopup(),this.disposeHoverOverListener&&this.disposeHoverOverListener(),this.disposeHoverOutListener&&this.disposeHoverOutListener(),this.disposeClickListener&&this.disposeClickListener(),this._focusInsideSub&&this._focusInsideSub.unsubscribe(),this._hideSub&&this._hideSub.unsubscribe(),this.subs&&this.subs.unsubscribe(),this._popupOpenSub&&this._popupOpenSub.unsubscribe(),this._popupCloseSub&&this._popupCloseSub.unsubscribe()},s.prototype.hide=function(){this.closePopup()},s.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.disposePopupHoverOutListener&&this.disposePopupHoverOutListener(),this.disposePopupHoverInListener&&this.disposePopupHoverInListener(),this.disposePopupFocusOutListener&&this.disposePopupFocusOutListener())},s.prototype.openPopup=function(e){var t=e instanceof p.ElementRef?e.nativeElement:e,o=this.popover instanceof c.PopoverComponent?this.popover:this.popover(t),i=a.align(o.position,o.offset),n=i.anchorAlign,r=i.popupAlign,i=i.popupMargin,s=o.animation;this.popupRef=this.popupService.open({anchor:{nativeElement:t},animate:s,content:c.PopoverComponent,popupAlign:r,anchorAlign:n,margin:i,popupClass:"k-popup-transparent",collision:{horizontal:"fit",vertical:"fit"}}),this.applySettings(this.popupRef.content,o,e),this.monitorPopup(),this.initializeCompletionEvents(o,t)},s.prototype.isPrevented=function(e,t){var o=this.popover instanceof c.PopoverComponent?this.popover:this.popover(e);return this.initializeEvents(o,void 0,t,e).isDefaultPrevented()},s.prototype.monitorPopup=function(){var t=this;"hover"===this.showOn&&this.ngZone.runOutsideAngular(function(){var e=t.popupRef.popupElement;t.disposePopupHoverInListener=t.renderer.listen(e,"mouseenter",function(e){t.ngZone.run(function(e){return t._popoverService.emitPopoverState(!0)})}),t.disposePopupHoverOutListener=t.renderer.listen(e,"mouseleave",function(e){t.ngZone.run(function(e){return t._popoverService.emitPopoverState(!1)})})}),"focus"===this.showOn&&this.ngZone.runOutsideAngular(function(){var e=t.popupRef.popupElement;t.disposePopupFocusOutListener=t.renderer.listen(e,"focusout",function(e){i.closest(e.relatedTarget,function(e){return e.classList&&e.classList.contains("k-popover")})||t.ngZone.run(function(e){return t._popoverService.emitFocusInsidePopover(!1)})})})},s.prototype.applySettings=function(e,t,o){e=e.instance,o=o instanceof p.ElementRef?o.nativeElement:o;e.visible=!0,e.anchor=o,e.position=t.position,e.offset=t.offset,e.width=t.width,e.height=t.height,e.title=t.title,e.body=t.body,e.callout=t.callout,e.animation=t.animation,e.contextData=t.templateData(o),e.titleTemplate=t.titleTemplate,e.bodyTemplate=t.bodyTemplate,e.actionsTemplate=t.actionsTemplate,this.popupRef.content.changeDetectorRef.detectChanges()},s.prototype.initializeEvents=function(t,o,e,i){var n=this;return e?this.ngZone.run(function(e){o=new r.PopoverShowEvent(i),n.popupRef||t.show.emit(o)}):this.ngZone.run(function(e){o=new r.PopoverHideEvent(i,n.popupRef),n.popupRef&&t.hide.emit(o)}),o},s.prototype.initializeCompletionEvents=function(o,i){var t=this;this._popupOpenSub||this.popupRef.popupOpen.subscribe(function(){var e=new r.PopoverShownEvent(i,t.popupRef);o.shown.emit(e)}),this._popupCloseSub||this.popupRef.popupClose.subscribe(function(){t.ngZone.run(function(e){var t=new r.PopoverHiddenEvent(i);o.hidden.emit(t)})})},o.__decorate([p.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],s.prototype,"popover",null),o.__decorate([p.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],s.prototype,"showOn",null),e.PopoverDirectivesBase=s},function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s,o=t(0),i=t(1),p=t(3),n=t(2),a=t(6),l=t(4),r=t(18),t=t(16),r=(s=r.PopoverDirectivesBase,o.__extends(c,s),c.prototype.show=function(e){var t=this;this.popupRef||(this.ngZone.run(function(){t.openPopup(e)}),this.popupRef.popupAnchorViewportLeave.pipe(a.take(1)).subscribe(function(){return t.hide()}))},c.prototype.toggle=function(e){var t=this.popupRef&&this.popupRef.content.instance.anchor;this.popupRef?(this.hide(),t!==e&&this.show(e)):this.show(e)},c.prototype.subscribeClick=function(){var o=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",function(e){var t=l.closestBySelector(e.target,o.filter);o.clickHandler(t,e)})},c.prototype.subscribeToEvents=function(o){var i=this;p.isDocumentAvailable()&&Array.from(document.querySelectorAll(this.filter)).forEach(function(t){i.subs.add(i.renderer.listen(t,o[0].name,function(){i.popoverService.emitAnchorState(!0,t),o[0].handler(t)})),i.subs.add(i.renderer.listen(t,o[1].name,function(e){i.popoverService.emitAnchorState(!1,null),o[1].handler({anchor:t,domEvent:e})}))})},c.prototype.clickHandler=function(t,e){var o=!!p.closest(e.target,function(e){return e.classList&&e.classList.contains("k-popup")}),i=this.popupRef&&this.popupRef.content.instance.anchor,e=!!p.closest(e.target,function(e){return e===(i||t)});"click"!==this.showOn||o||this.popupRef&&e||(t||!this.popupRef?e?this.controlVisibility(t,!0):this.popupRef&&(this.controlVisibility(t,!1),this.controlVisibility(t,!0)):this.controlVisibility(t,!1))},c.prototype.controlVisibility=function(e,t){this.isPrevented(e,t)||(t?this.show(e):this.hide())},o.__decorate([i.Input(),o.__metadata("design:type",String)],c.prototype,"filter",void 0),o.__decorate([i.Directive({selector:"[kendoPopoverContainer]",exportAs:"kendoPopoverContainer",providers:[t.PopoverService]}),o.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,n.PopupService,i.Renderer2,t.PopoverService])],c));function c(e,t,o,i,n){var r=s.call(this,t,o,i)||this;return r.wrapperEl=e,r.ngZone=t,r.popupService=o,r.renderer=i,r.popoverService=n,r.mouseenterHandler=function(e){r.controlVisibility(e,!0)},r.mouseleaveHandler=function(e){e=e.anchor;r.isPrevented(e,!1)||r._hideSub||(r._hideSub=r.popoverService.hidePopover.subscribe(function(e){var t=e[0],o=e[2],e=e[3];t||o||(r.hide(),!o&&e&&r.show(e))}))},r.focusHandler=function(e){r.controlVisibility(e,!0)},r.blurHandler=function(e){var t,o=e.anchor,e=e.domEvent;r.isPrevented(o,!1)||((t=!!p.closest(e.relatedTarget,function(e){return e.classList&&e.classList.contains("k-popover")}))||r.hide(),r._focusInsideSub||(r._focusInsideSub=r.popoverService.isFocusInsidePopover.pipe(a.filter(function(e){return null!==e})).subscribe(function(e){e||t||r.hide()})))},r._popoverService=r.popoverService,r}e.PopoverContainerDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERRORS={popover:"Invalid value provided for the 'popover' property. The accepted data types are 'PopoverComponent' or 'PopoverFn'.",templateData:"templateData must be a function, but received",showOn:"Invalid value provided for the 'showOn' property. The available options are 'click', 'hover', 'focus' or 'none'."}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(11),c=o(4),o=(Object.defineProperty(s.prototype,"cssClasses",{get:function(){return"k-widget k-tooltip"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"className",{get:function(){return this.closable},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"cssPosition",{get:function(){return"relative"},enumerable:!0,configurable:!0}),s.prototype.ngOnInit=function(){var t=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(e){e=e.rtl;return t.direction=e?"rtl":"ltr"})},s.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},Object.defineProperty(s.prototype,"closeButtonTitle",{get:function(){return this.closeTitle||this.localizationService.get("closeTitle")},enumerable:!0,configurable:!0}),s.prototype.calloutPositionClass=function(){return{top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"}[this.position]},s.prototype.onCloseClick=function(e){e.preventDefault(),this.close.emit()},s.prototype.updateCalloutPosition=function(e,t){var o,i,n,r,s,p,a;this.callout&&(p=(i="top"===e||"bottom"===e)?"width":"height",s=i?"left":"top",i=i?"marginLeft":"marginTop",n=(o=this.content.nativeElement.querySelector(".k-callout")).getBoundingClientRect()[p],r=c.getCenterOffset(this.anchor.nativeElement,s,p),s=c.getCenterOffset(this.content.nativeElement,s,p),(1<(p=Math.abs(s-r))||0===p||0===Math.round(p))&&(o.style[i]=-(s-r+n/2)+"px"),a=this.calloutStyles(e,n,t),Object.keys(a).forEach(function(e){o.style[e]=a[e]}))},i.__decorate([n.HostBinding("attr.dir"),i.__metadata("design:type",String)],s.prototype,"direction",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],s.prototype,"close",void 0),i.__decorate([n.HostBinding("class"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],s.prototype,"cssClasses",null),i.__decorate([n.HostBinding("class.k-tooltip-closable"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],s.prototype,"className",null),i.__decorate([n.HostBinding("style.position"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],s.prototype,"cssPosition",null),i.__decorate([n.HostBinding("style.width.px"),n.Input(),i.__metadata("design:type",Number)],s.prototype,"tooltipWidth",void 0),i.__decorate([n.HostBinding("style.height.px"),n.Input(),i.__metadata("design:type",Number)],s.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],s.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.ElementRef)],s.prototype,"anchor",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],s.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],s.prototype,"templateRef",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],s.prototype,"templateString",void 0),i.__decorate([n.Component({selector:"kendo-tooltip",template:'\n <ng-container kendoTooltipLocalizedMessages\n i18n-closeTitle="kendo.tooltip.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n </ng-container>\n\n <div class="k-tooltip-content">\n <div class="k-tooltip-title" *ngIf="titleTemplate">\n <ng-template\n [ngIf]="titleTemplate"\n [ngTemplateOutlet]="titleTemplate"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n </div>\n\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n <ng-template\n [ngIf]="templateString">\n {{ templateString }}\n </ng-template>\n </div>\n\n <div *ngIf="closable" class="k-tooltip-button" (click)="onCloseClick($event)">\n <a href="#" class="k-icon k-i-close" [attr.title]="closeButtonTitle"></a>\n </div>\n\n <div class="k-callout" *ngIf="callout" [ngClass]="calloutPositionClass()"></div>\n ',providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.tooltip"}]}),i.__metadata("design:paramtypes",[n.ElementRef,r.LocalizationService])],s));function s(e,t){this.content=e,this.localizationService=t,this.close=new n.EventEmitter,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=function(e,t,o){var i={},n="top"===e||"bottom"===e;return o?("top"===e?i.bottom="unset":"bottom"===e?i.top="unset":"left"===e?i.right="unset":"right"===e&&(i.left="unset"),i[e]=-t+"px",i.transform=n?"rotateX(180deg)":"rotateY(180deg)"):i.transform=n?"rotateX(0deg)":"rotateY(0deg)",i},this.direction=t.rtl?"rtl":"ltr"}t.TooltipContentComponent=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),i=(t.TOOLTIP_SETTINGS=new o.InjectionToken("kendo-ui-tooltip-settings"),i.__decorate([o.Injectable()],n));function n(){}t.TooltipSettings=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-tooltip",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1643372174,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t){e.exports=l},function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=t(0),i=t(1),p=t(6),a=t(5),n=t(2),l=t(24),d=t(23),r=t(22),h=t(21),c=t(4),t=(Object.defineProperty(s.prototype,"tooltipTemplate",{get:function(){return this.template},set:function(e){this.template=e},enumerable:!0,configurable:!0}),s.prototype.show=function(e){var t=this;this.popupRef||(e instanceof Element&&(e={nativeElement:e}),this.anchor=e,"hover"===this.showOn?this.popupRef||(clearTimeout(this.showTimeout),this.showTimeout=window.setTimeout(function(){return t.showContent(t.anchor)},this.showAfter)):(this.hideElementTitle(this.anchor),this.showContent(this.anchor)))},s.prototype.hide=function(){clearTimeout(this.showTimeout);var e=this.anchor&&this.anchor.nativeElement;e&&e.getAttribute("data-title")&&(!e.getAttribute("title")&&e.hasAttribute("title")&&e.setAttribute("title",e.getAttribute("data-title")),e.setAttribute("data-title","")),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe(),this.closeClickSubscription&&this.closeClickSubscription.unsubscribe(),this.closePopup()},s.prototype.toggle=function(e,t){var o=this.anchor&&this.anchor.nativeElement;o!==(e=e instanceof Element?{nativeElement:e}:e).nativeElement&&this.hide(),o===e.nativeElement&&"click"===this.showOn&&this.hide(),(t=void 0===t?!this.popupRef:t)?this.show(e):this.hide()},s.prototype.ngOnInit=function(){void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties()},s.prototype.ngOnChanges=function(e){e.showOn&&this.subscribeClick()},s.prototype.ngAfterViewChecked=function(){this.popupRef&&this.anchor&&!c.hasParent(this.anchor.nativeElement||this.anchor,this.tooltipWrapper.nativeElement)&&(this.anchor=null,this.hide())},s.prototype.ngOnDestroy=function(){this.hide(),this.template=null,this.anchorTitleSubscription.unsubscribe(),this.mouseOverSubscription.unsubscribe(),this.mouseOutSubscription.unsubscribe(),this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe(),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe()},s.prototype.showContent=function(e){var t=this;(e.nativeElement.getAttribute("data-title")||this.template)&&(this.ngZone.run(function(){t.openPopup(e),t.bindContent(t.popupRef.content,e)}),this.popupRef.popupAnchorViewportLeave.pipe(p.take(1)).subscribe(function(){return t.hide()}))},s.prototype.bindContent=function(e,t){var o=this,e=e.instance;this.closeClickSubscription=e.close.subscribe(function(){o.hide()}),this.template?e.templateRef=this.template:e.templateString=this.anchor.nativeElement.getAttribute("data-title"),this.titleTemplate&&(e.titleTemplate=this.titleTemplate),e.closeTitle=this.closeTitle,e.anchor=t,e.callout=this.callout,e.closable=this.closable,e.position=this.position,e.tooltipWidth=this.tooltipWidth,e.tooltipHeight=this.tooltipHeight,this.popupRef.content.changeDetectorRef.detectChanges()},s.prototype.hideElementTitle=function(e){e=e.nativeElement;e.getAttribute("title")&&(e.setAttribute("data-title",e.getAttribute("title")),e.setAttribute("title",""))},s.prototype.openPopup=function(e){var t=this,o=c.align(this.position,this.offset),i=o.anchorAlign,n=o.popupAlign,o=o.popupMargin,r=(this.popupRef=this.popupService.open({anchor:e,anchorAlign:i,animate:!1,content:h.TooltipContentComponent,collision:c.collision(this.collision,this.position),margin:o,popupAlign:n,popupClass:"k-popup-transparent"}),this.renderer.addClass(this.popupRef.popupElement,"k-tooltip-wrapper"),this.tooltipClass&&this.renderer.addClass(this.popupRef.popupElement,this.tooltipClass),this.popupRef.content.instance);r.callout&&(this.popupPositionChangeSubscription=this.popupRef.popupPositionChange.subscribe(function(e){e=e.flip,e=!0===e.horizontal||!0===e.vertical;r.updateCalloutPosition(t.position,e)})),"hover"===this.showOn&&this.ngZone.runOutsideAngular(function(){var e=t.popupRef.popupElement;t.popupMouseOutSubscription=a.fromEvent(e,"mouseout").subscribe(function(e){return t.onMouseOut(e)})})},s.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe()},s.prototype.subscribeClick=function(){var t=this;this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),"click"===this.showOn&&(this.mouseClickSubscription=a.fromEvent(document,"click").pipe(p.filter(function(){return""!==t.filter})).subscribe(function(e){return t.onMouseClick(e,t.tooltipWrapper.nativeElement)}))},s.prototype.onMouseClick=function(e,t){var e=e.target,o=c.closestBySelector(e,this.filter),i=this.popupRef&&this.popupRef.popupElement;if(i){if(i.contains(e))return;if(this.closable)return}t.contains(e)&&o?this.toggle(o,!0):i&&this.hide()},s.prototype.onMouseOver=function(e){e=c.closestBySelector(e.target,this.filter);"hover"===this.showOn&&e&&this.toggle(e,!0)},s.prototype.onMouseOut=function(e){var t;"hover"!==this.showOn||this.closable||(t=this.popupRef&&this.popupRef.popupElement,(e=e.relatedTarget)&&this.anchor&&c.contains(this.anchor.nativeElement,e)||e&&c.contains(t,e)||this.hide())},s.prototype.verifyProperties=function(){if(i.isDevMode()){if(!c.containsItem(this.validPositions,this.position))throw new Error("Invalid value provided for position property.The available options are 'top', 'bottom', 'left', or 'right'.");if(!c.containsItem(this.validShowOptions,this.showOn))throw new Error("Invalid value provided for showOn property.The available options are 'hover' or 'none'.")}},o.__decorate([i.Input(),o.__metadata("design:type",String)],s.prototype,"filter",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],s.prototype,"position",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef)],s.prototype,"titleTemplate",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],s.prototype,"showOn",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],s.prototype,"showAfter",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],s.prototype,"callout",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],s.prototype,"closable",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],s.prototype,"offset",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],s.prototype,"tooltipWidth",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],s.prototype,"tooltipHeight",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],s.prototype,"tooltipClass",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],s.prototype,"collision",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],s.prototype,"closeTitle",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef),o.__metadata("design:paramtypes",[i.TemplateRef])],s.prototype,"tooltipTemplate",null),o.__decorate([i.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip"}),o.__param(4,i.Optional()),o.__param(5,i.Optional()),o.__param(5,i.Inject(r.TOOLTIP_SETTINGS)),o.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,i.Renderer2,n.PopupService,r.TooltipSettings,r.TooltipSettings])],s));function s(e,t,o,i,n,r){var s=this;this.tooltipWrapper=e,this.ngZone=t,this.renderer=o,this.popupService=i,this.filter="[title]",this.position="top",this.showAfter=100,this.callout=!0,this.closable=!1,this.offset=6,this.anchor=null,this.validPositions=["top","bottom","right","left"],this.validShowOptions=["hover","click","none"],l.validatePackage(d.packageMetadata),Object.assign(this,n,r),this.ngZone.runOutsideAngular(function(){var e=s.tooltipWrapper.nativeElement;s.anchorTitleSubscription=a.fromEvent(e,"mouseover").pipe(p.filter(function(){return""!==s.filter})).subscribe(function(e){e=c.closestBySelector(e.target,s.filter);e&&s.hideElementTitle({nativeElement:e})}),s.mouseOverSubscription=a.fromEvent(e,"mouseover").pipe(p.debounceTime(100),p.filter(function(){return""!==s.filter})).subscribe(function(e){return s.onMouseOver(e)}),s.mouseOutSubscription=a.fromEvent(e,"mouseout").pipe(p.debounceTime(100)).subscribe(function(e){return s.onMouseOut(e)})})}e.TooltipDirective=t},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(14),o=o(12),i=i.__decorate([n.NgModule({exports:[r.TooltipModule,o.PopoverModule]})],s);function s(){}t.TooltipsModule=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n,r=o(0),s=o(1),o=o(11),s=(i=o.ComponentMessages,r.__extends(p,i),n=p,r.__decorate([s.Input(),r.__metadata("design:type",String)],p.prototype,"closeTitle",void 0),n=r.__decorate([s.Directive({providers:[{provide:o.ComponentMessages,useExisting:s.forwardRef(function(){return n})}],selector:"[kendoTooltipLocalizedMessages]"}),r.__metadata("design:paramtypes",[o.LocalizationService])],p));function p(e){var t=i.call(this)||this;return t.service=e,t}t.LocalizedMessagesDirective=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(25),n=(t.TooltipDirective=n.TooltipDirective,o(22)),n=(t.TooltipSettings=n.TooltipSettings,t.TOOLTIP_SETTINGS=n.TOOLTIP_SETTINGS,o(10)),n=(t.PopoverComponent=n.PopoverComponent,o(19)),n=(t.PopoverContainerDirective=n.PopoverContainerDirective,o(15)),n=(t.PopoverAnchorDirective=n.PopoverAnchorDirective,o(9)),n=(t.PopoverTitleTemplateDirective=n.PopoverTitleTemplateDirective,o(8)),n=(t.PopoverBodyTemplateDirective=n.PopoverBodyTemplateDirective,o(7)),n=(t.PopoverActionsTemplateDirective=n.PopoverActionsTemplateDirective,o(17)),n=(t.PopoverShowEvent=n.PopoverShowEvent,t.PopoverShownEvent=n.PopoverShownEvent,t.PopoverHideEvent=n.PopoverHideEvent,t.PopoverHiddenEvent=n.PopoverHiddenEvent,o(14)),n=(t.TooltipModule=n.TooltipModule,o(12)),n=(t.PopoverModule=n.PopoverModule,o(26)),r=(t.TooltipsModule=n.TooltipsModule,t);for(i in r)v(i,r[i])}],i.c=n,i.d=function(e,t,o){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},i.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=28)}}});

@@ -6,3 +6,3 @@ {

"license": "SEE LICENSE IN LICENSE.md",
"version": "3.1.5-dev.202201261018",
"version": "3.1.5",
"main": "dist/npm/index.js",

@@ -9,0 +9,0 @@ "module": "dist/fesm5/index.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc