@progress/kendo-angular-tooltip 3.1.0 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-angular-tooltip.js +1 -1
- package/dist/cdn/main.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/fesm2015/index.js +1 -1
- package/dist/fesm5/index.js +1 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-angular-tooltip.js +1 -1
- package/package.json +1 -1
- package/schematics/ngAdd/index.js +1 -2
- package/schematics/ngAdd/index.js.map +1 -1
|
@@ -17,4 +17,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
17
17
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
18
18
|
PERFORMANCE OF THIS SOFTWARE.
|
|
19
19
|
***************************************************************************** */
|
|
20
|
-
var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r=function(){return(r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}function a(e,t,n,o){var i,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,n,s):i(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return function(n,o){t(n,o,e)}}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,o){return new(n||(n=Promise))((function(i,r){function s(e){try{c(o.next(e))}catch(e){r(e)}}function a(e){try{c(o.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((o=o.apply(e,t||[])).next())}))}function l(e,t){var n,o,i,r,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,o=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){s.label=r[1];break}if(6===r[0]&&s.label<i[1]){s.label=i[1],i=r;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(r);break}i[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}function d(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}function h(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function g(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,i++)o[i]=r[s];return o}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=n.apply(e,t||[]),r=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(e){i[e]&&(o[e]=function(t){return new Promise((function(n,o){r.push([e,t,n,o])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof b?Promise.resolve(n.value.v).then(c,p):u(r[0][2],n)}catch(e){u(r[0][3],e)}var n}function c(e){a("next",e)}function p(e){a("throw",e)}function u(e,t){e(t),r.shift(),r.length&&a(r[0][0],r[0][1])}}function _(e){var t,n;return t={},o("next"),o("throw",(function(e){throw e})),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,i){t[o]=e[o]?function(t){return(n=!n)?{value:b(e[o](t)),done:"return"===o}:i?i(t):t}:i}}function O(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new Promise((function(o,i){(function(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)})(o,i,(t=e[n](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function P(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function j(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"ResizeService",(function(){return F})),n.d(t,"PreventableEvent",(function(){return te})),n.d(t,"DraggableDirective",(function(){return S})),n.d(t,"DraggableModule",(function(){return E})),n.d(t,"closestInScope",(function(){return P})),n.d(t,"closest",(function(){return j})),n.d(t,"contains",(function(){return C})),n.d(t,"findElement",(function(){return x})),n.d(t,"findFocusableChild",(function(){return z})),n.d(t,"findFocusable",(function(){return R})),n.d(t,"hasClasses",(function(){return M})),n.d(t,"isFocusableWithTabKey",(function(){return D})),n.d(t,"isFocusable",(function(){return k})),n.d(t,"isVisible",(function(){return A})),n.d(t,"matchesClasses",(function(){return L})),n.d(t,"matchesNodeName",(function(){return N})),n.d(t,"rtlScrollPosition",(function(){return H})),n.d(t,"EventsOutsideAngularDirective",(function(){return V})),n.d(t,"EventsModule",(function(){return Z})),n.d(t,"ResizeSensorComponent",(function(){return J})),n.d(t,"ResizeBatchService",(function(){return X})),n.d(t,"ResizeCompatService",(function(){return W})),n.d(t,"ResizeObserverService",(function(){return G})),n.d(t,"ResizeSensorModule",(function(){return Q})),n.d(t,"KendoInput",(function(){return ee})),n.d(t,"isDocumentAvailable",(function(){return b})),n.d(t,"isChanged",(function(){return y})),n.d(t,"anyChanged",(function(){return _})),n.d(t,"hasObservers",(function(){return O})),n.d(t,"guid",(function(){return w})),n.d(t,"Keys",(function(){return K}));var o=n(1),i=n(0),r=function(e,t){return function(n){return t(e(n))}},s=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},a=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},c=function(){},p=function(e){return e.preventDefault()},u=/touch/;function l(e){return e.type.match(u)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var d=function(e){var t=this,n=e.press;void 0===n&&(n=c);var o=e.drag;void 0===o&&(o=c);var i=e.release;void 0===i&&(i=c);var u=e.mouseOnly;void 0===u&&(u=!1),this._pressHandler=r(l,n),this._dragHandler=r(l,o),this._releaseHandler=r(l,i),this._ignoreMouse=!1,this._mouseOnly=u,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(s(t.document,"mousemove",t._mousemove),s(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){a(t.document,"mousemove",t._mousemove),a(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(s(t.document,"pointermove",t._pointermove),s(t.document,"pointerup",t._pointerup),s(t.document,"pointercancel",t._pointerup),s(t.document,"contextmenu",p),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(a(t.document,"pointermove",t._pointermove),a(t.document,"pointerup",t._pointerup),a(t.document,"pointercancel",t._pointerup),a(t.document,"contextmenu",p),t._releaseHandler(e))}},h={document:{configurable:!0}};d.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},h.document.get=function(){return this._element?this._element.ownerDocument:document},d.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},d.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?s(e,"pointerdown",this._pointerdown):(s(e,"mousedown",this._mousedown),this._mouseOnly||(s(e,"touchstart",this._touchstart),s(e,"touchmove",this._touchmove),s(e,"touchend",this._touchend)))},d.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return a(e,"pointerdown",this._pointerdown),a(this.document,"pointermove",this._pointermove),a(this.document,"pointerup",this._pointerup),a(this.document,"contextmenu",p),void a(this.document,"pointercancel",this._pointerup);a(e,"mousedown",this._mousedown),this._mouseOnly||(a(e,"touchstart",this._touchstart),a(e,"touchmove",this._touchmove),a(e,"touchend",this._touchend))},d.prototype._usePointers=function(){return!this._mouseOnly&&d.supportPointerEvent()},d.prototype.update=function(e){var t=e.press;void 0===t&&(t=c);var n=e.drag;void 0===n&&(n=c);var o=e.release;void 0===o&&(o=c);var i=e.mouseOnly;void 0===i&&(i=!1),this._pressHandler=r(l,t),this._dragHandler=r(l,n),this._releaseHandler=r(l,o),this._mouseOnly=i},d.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(d.prototype,h),d.default=d;var f=d,v=n(5),m=n(4),g=n(3),b=function(){return"undefined"!=typeof document},y=function(e,t,n){return void 0===n&&(n=!0),!(void 0===t[e]||t[e].isFirstChange()&&n||t[e].previousValue===t[e].currentValue)},_=function(e,t,n){return void 0===n&&(n=!0),e.some((function(e){return y(e,t,n)}))},O=function(e){return e&&e.observers.length>0},w=function(){for(var e="",t=0;t<32;t++){var n=16*Math.random()|0;8!==t&&12!==t&&16!==t&&20!==t||(e+="-"),e+=(12===t?4:16===t?3&n|8:n).toString(16)}return e},S=function(){function e(e,t){this.element=e,this.ngZone=t,this.enableDrag=!0,this.kendoPress=new i.EventEmitter,this.kendoDrag=new i.EventEmitter,this.kendoRelease=new i.EventEmitter}return e.prototype.ngOnInit=function(){this.toggleDraggable()},e.prototype.ngOnChanges=function(e){y("enableDrag",e)&&this.toggleDraggable()},e.prototype.ngOnDestroy=function(){this.destroyDraggable()},e.prototype.toggleDraggable=function(){var e=this;b()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new f({drag:function(t){return e.kendoDrag.next(t)},press:function(t){return e.kendoPress.next(t)},release:function(t){return e.kendoRelease.next(t)}}),this.ngZone.runOutsideAngular((function(){return e.draggable.bindTo(e.element.nativeElement)}))))},e.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"enableDrag",void 0),Object(o.__decorate)([Object(i.Output)(),Object(o.__metadata)("design:type",i.EventEmitter)],e.prototype,"kendoPress",void 0),Object(o.__decorate)([Object(i.Output)(),Object(o.__metadata)("design:type",i.EventEmitter)],e.prototype,"kendoDrag",void 0),Object(o.__decorate)([Object(i.Output)(),Object(o.__metadata)("design:type",i.EventEmitter)],e.prototype,"kendoRelease",void 0),e=Object(o.__decorate)([Object(i.Directive)({selector:"[kendoDraggable]"}),Object(o.__metadata)("design:paramtypes",[i.ElementRef,i.NgZone])],e)}(),E=function(){function e(){}return e=Object(o.__decorate)([Object(i.NgModule)({declarations:[S],exports:[S],imports:[v.CommonModule]})],e)}(),P=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},j=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},C=function(e,t,n){if(void 0===n&&(n=!1),!j(t,(function(t){return t===e})))return!1;var o=j(t,(function(e){return e===t}));return o&&(n||o!==e)},x=function(e,t,n){if(void 0===n&&(n=!0),e){if(n&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var o=x(e,t);if(o)return o}e=e.nextSibling}}},T=/^(?:a|input|select|option|textarea|button|object)$/i,k=function(e){if(!e.tagName)return!1;var t=e.tagName.toLowerCase(),n=Boolean(e.getAttribute("tabIndex"));return!e.disabled&&T.test(t)||n},A=function(e){var t=e.getBoundingClientRect(),n=t.width>0&&t.height>0,o=0!==t.x&&0!==t.y;return(n||o)&&"hidden"!==window.getComputedStyle(e).visibility},D=function(e,t){if(void 0===t&&(t=!0),!k(e))return!1;var n=e.getAttribute("tabIndex");return(!t||A(e))&&"-1"!==n},z=function(e,t){return void 0===t&&(t=!0),x(e,(function(e){return D(e,t)}),!1)},R=function(e,t){return void 0===t&&(t=!0),x(e,(function(e){return D(e,t)}))},I=function(e){return String(e).trim().split(" ")},M=function(e,t){var n=I(t);return Boolean(I(e.className).find((function(e){return n.indexOf(e)>=0})))},L=function(e){return function(t){return M(t,e)}},B={},N=function(e){return B[e]||(B[e]=function(t){return String(t.nodeName).toLowerCase()===e.toLowerCase()}),B[e]};function H(e,t,n){var o=e;return n<0?o=-e:n>0&&(o=t.scrollWidth-t.offsetWidth-e),o}var K,V=function(){function e(e,t,n){this.element=e,this.ngZone=t,this.renderer=n,this.events={}}return e.prototype.ngOnInit=function(){var e=this;if(this.element&&this.element.nativeElement){var t=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular((function(){for(var n in t)t.hasOwnProperty(n)&&e.subscriptions.push(e.renderer.listen(e.element.nativeElement,n,e.scope?t[n].bind(e.scope):t[n]))}))}},e.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var e=0;e<this.subscriptions.length;e++)this.subscriptions[e]();this.subscriptions=null}},Object(o.__decorate)([Object(i.Input)("kendoEventsOutsideAngular"),Object(o.__metadata)("design:type",Object)],e.prototype,"events",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"scope",void 0),e=Object(o.__decorate)([Object(i.Directive)({selector:"[kendoEventsOutsideAngular]"}),Object(o.__metadata)("design:paramtypes",[i.ElementRef,i.NgZone,i.Renderer2])],e)}(),Z=function(){function e(){}return e=Object(o.__decorate)([Object(i.NgModule)({declarations:[V],exports:[V]})],e)}(),F=function(){function e(e){this.resizeBatchService=e,this.resize=new i.EventEmitter,this.acceptedSize=!1,this.state=0}return e.prototype.acceptSize=function(e){void 0===e&&(e=this.measure()),this.lastWidth=e.width,this.lastHeight=e.height,this.acceptedSize=!0},e.prototype.checkChanges=function(){b()&&0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))},e.prototype.destroy=function(){this.resizeBatchService.cancel(this)},e.prototype.checkSize=function(){if(this.parentElement){var e=this.measure(),t=e.width,n=e.height;if(!(t===this.lastWidth&&n===this.lastHeight))return this.lastWidth=t,this.lastHeight=n,this.acceptedSize=!1,this.resize.emit(),!0}},e.prototype.initSize=function(){var e=this.measure();this.lastWidth=e.width,this.lastHeight=e.height},e.prototype.measure=function(){var e=0,t=0;return this.parentElement&&(t=this.parentElement.offsetHeight,e=this.parentElement.offsetWidth),{height:t,width:e}},e}(),U=function(e){var t=document.createElement("div");return t.style.cssText=e,t},q="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",W=function(e){function t(t,n,o){var i=e.call(this,t)||this;return i.element=n,i.ngZone=o,i}return Object(o.__extends)(t,e),t.prototype.checkChanges=function(){2!==this.state?e.prototype.checkChanges.call(this):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize)},t.prototype.destroy=function(){if(e.prototype.destroy.call(this),this.subscription&&this.subscription.unsubscribe(),this.expand){var t=this.element.nativeElement;t.removeChild(this.expand),t.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null}},t.prototype.checkSize=function(){if(e.prototype.checkSize.call(this))return this.reset(),!0},t.prototype.init=function(){var e,t=this.parentElement=this.element.nativeElement.parentElement;"static"===(e="position",getComputedStyle(t,null).getPropertyValue(e))&&(t.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()},t.prototype.render=function(){var e=this.element.nativeElement;e.style.cssText=q,e.setAttribute("dir","ltr"),this.expand=U(q),this.expandChild=U("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),e.appendChild(this.expand),this.shrink=U(q);var t=U("position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;");this.shrink.appendChild(t),e.appendChild(this.shrink)},t.prototype.reset=function(){var e=this.expandChild;e.style.width="100000px",e.style.height="100000px";var t=this.expand;t.scrollLeft=1e5,t.scrollTop=1e5;var n=this.shrink;n.scrollLeft=1e5,n.scrollTop=1e5},t.prototype.subscribe=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.subscription=Object(g.merge)(Object(g.fromEvent)(e.shrink,"scroll"),Object(g.fromEvent)(e.expand,"scroll")).subscribe((function(){e.checkSize()}))}))},t}(F),Y="undefined"!=typeof ResizeObserver,G=function(e){function t(t,n,o){var i=e.call(this,t)||this;return i.element=n,i.ngZone=o,i}return Object(o.__extends)(t,e),t.supported=function(){return Y},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null},t.prototype.init=function(){var e=this;this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular((function(){e.resizeObserver=new ResizeObserver((function(){e.checkSize()})),e.resizeObserver.observe(e.parentElement)}))},t}(F),X=function(){function e(e){this.ngZone=e,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return e.prototype.schedule=function(e,t){var n=this;this.scheduled.push({instance:e,method:t}),this.subscription||this.ngZone.runOutsideAngular((function(){n.subscription=Object(g.from)(n.resolvedPromise).subscribe(n.flush)}))},e.prototype.isScheduled=function(e){return Boolean(this.scheduled.find((function(t){return t.instance===e})))},e.prototype.cancel=function(e){for(var t=this.scheduled,n=t.length,o=0;o<n;o++)if(t[o].instance===e)return t.splice(o,1),void(t.length||this.unsubscribe())},e.prototype.ngOnDestroy=function(){this.unsubscribe()},e.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},e.prototype.flush=function(){this.scheduled.forEach((function(e){e.method.call(e.instance)})),this.scheduled=[],this.unsubscribe()},e=Object(o.__decorate)([Object(i.Injectable)(),Object(o.__metadata)("design:paramtypes",[i.NgZone])],e)}(),J=function(){function e(e,t,n){var o=this;this.rateLimit=10,this.resize=new i.EventEmitter;var r=G.supported()?G:W;this.resizeService=new r(e,t,n);var s=1e3/(this.rateLimit||10);this.subscription=this.resizeService.resize.pipe(Object(m.auditTime)(s)).subscribe((function(){o.resizeService.acceptedSize||o.resize.emit()}))}return e.prototype.ngAfterViewChecked=function(){this.resizeService.checkChanges()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe(),this.resizeService.destroy()},e.prototype.acceptSize=function(e){this.resizeService.acceptSize(e)},Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"rateLimit",void 0),Object(o.__decorate)([Object(i.Output)(),Object(o.__metadata)("design:type",i.EventEmitter)],e.prototype,"resize",void 0),e=Object(o.__decorate)([Object(i.Component)({selector:"kendo-resize-sensor",template:""}),Object(o.__metadata)("design:paramtypes",[X,i.ElementRef,i.NgZone])],e)}(),$=[J],Q=function(){function e(){}return e=Object(o.__decorate)([Object(i.NgModule)({declarations:[$],exports:[$],providers:[X]})],e)}(),ee=function(){};!function(e){e[e.Alt=18]="Alt",e[e.ArrowDown=40]="ArrowDown",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowUp=38]="ArrowUp",e[e.Backspace=8]="Backspace",e[e.Control=17]="Control",e[e.Delete=46]="Delete",e[e.Digit0=48]="Digit0",e[e.Digit1=49]="Digit1",e[e.Digit2=50]="Digit2",e[e.Digit3=51]="Digit3",e[e.Digit4=52]="Digit4",e[e.Digit5=53]="Digit5",e[e.Digit6=54]="Digit6",e[e.Digit7=55]="Digit7",e[e.Digit8=56]="Digit8",e[e.Digit9=57]="Digit9",e[e.End=35]="End",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F10=121]="F10",e[e.Home=36]="Home",e[e.Insert=45]="Insert",e[e.KeyA=65]="KeyA",e[e.KeyB=66]="KeyB",e[e.KeyC=67]="KeyC",e[e.KeyD=68]="KeyD",e[e.KeyE=69]="KeyE",e[e.KeyF=70]="KeyF",e[e.KeyG=71]="KeyG",e[e.KeyH=72]="KeyH",e[e.KeyI=73]="KeyI",e[e.KeyJ=74]="KeyJ",e[e.KeyK=75]="KeyK",e[e.KeyL=76]="KeyL",e[e.KeyM=77]="KeyM",e[e.KeyN=78]="KeyN",e[e.KeyO=79]="KeyO",e[e.KeyP=80]="KeyP",e[e.KeyQ=81]="KeyQ",e[e.KeyR=82]="KeyR",e[e.KeyS=83]="KeyS",e[e.KeyT=84]="KeyT",e[e.KeyU=85]="KeyU",e[e.KeyV=86]="KeyV",e[e.KeyW=87]="KeyW",e[e.KeyX=88]="KeyX",e[e.KeyY=89]="KeyY",e[e.KeyZ=90]="KeyZ",e[e.NumpadDecimal=110]="NumpadDecimal",e[e.PageDown=34]="PageDown",e[e.PageUp=33]="PageUp",e[e.Shift=16]="Shift",e[e.Space=32]="Space",e[e.Tab=9]="Tab"}(K||(K={}));var te=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}()},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=o},function(e,t,n){"use strict";n.r(t),n.d(t,"AlignService",(function(){return te})),n.d(t,"AnimationService",(function(){return se})),n.d(t,"DOMService",(function(){return Q})),n.d(t,"PositionService",(function(){return ne})),n.d(t,"ResizeService",(function(){return oe})),n.d(t,"ScrollableService",(function(){return ie})),n.d(t,"PopupService",(function(){return le})),n.d(t,"POPUP_CONTAINER",(function(){return ue})),n.d(t,"PopupComponent",(function(){return pe})),n.d(t,"PopupModule",(function(){return he})),n.d(t,"SCALE",(function(){return ee}));var o=n(1),i=n(0),r="bottom",s="center",a="middle",c="left",p="right",u="top",l=function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,i=e.elementAlign,c=e.margin;void 0===c&&(c={});var u=n.horizontal,l=n.vertical,d=i.horizontal,h=i.vertical,f=c.horizontal||0,v=c.vertical||0,m=t.top,g=t.left;return l===r&&(m+=t.height),l!==s&&l!==a||(m+=Math.round(t.height/2)),h===r&&(m-=o.height,v*=-1),h!==s&&h!==a||(m-=Math.round(o.height/2),v*=-1),u===p&&(g+=t.width),u!==s&&u!==a||(g+=Math.round(t.width/2)),d===p&&(g-=o.width,f*=-1),d!==s&&d!==a||(g-=Math.round(o.width/2),f*=-1),{top:m+v,left:g+f}};function d(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}function h(e){return e.ownerDocument||e.document||e}var f=function(e){return h(e).defaultView},v=function(e){return h(e).documentElement},m=0;function g(){if(!m&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",document.body.appendChild(e),m=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return m}function b(e){var t=f(e),n=v(e),o={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=g()),o}var y=function(e){if(!e.getBoundingClientRect){var t=b(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},_=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||v(e)},O=function(e){var t=e.getBoundingClientRect(),n=t.left,o=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,o=t.left,i=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var r=e.getBoundingClientRect();return e.style.display=n,e.style.left=o,e.style.position=i,r}(e)),{top:o,left:n,height:t.height,width:t.width}},w=function(e,t){for(var n=[],o=e.parentNode;o&&(n.push(o),o!==t);)o=o.parentNode;return n};function S(e){var t=v(e),n=f(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var E=function(e){return e===(e.ownerDocument||{}).body?S(e):{x:e.scrollLeft,y:e.scrollTop}};var P=function(e,t){var n=f(e),o=n.getComputedStyle(e),i=O(e),r=t||_(e),s=e.ownerDocument,a=r!==s.body&&r!==s.documentElement,c={top:0,left:0};if("fixed"!==o.position&&a){var p=n.getComputedStyle(r);(c=O(r)).top+=parseInt(p.borderTopWidth,10),c.left+=parseInt(p.borderLeftWidth,10)}return{top:i.top-c.top,left:i.left-c.left,height:i.height,width:i.width}},j=function(e,t){return e?E(e):function(e){var t=_(e);return t?E(t):{x:0,y:0}}(t)},C=function(e,t,n){void 0===n&&(n=1);var o=t?_(t):null,i=P(e,o),r=i.top,s=i.left,a=i.height,c=i.width,p=j(o,e),u=p.x,l=p.y,d=e.ownerDocument,h=o===d.body||o===d.documentElement?1:n;return{top:r+l*h,left:s+u*h,height:a,width:c}};function x(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}var T="fit",k="flip",A=function(e,t,n){var o=0;return e+t>n&&(o=n-(e+t)),e<0&&(o=-e),o},D=function(e){var t=e.offset,n=e.size,o=e.anchorSize,i=e.viewPortSize,r=e.anchorAlignPoint,p=e.elementAlignPoint,l=0,d=2*e.margin;if(p!==r&&!(p===s||p===a)&&!(r===s||r===a)){var h=r===u||r===c;t<0&&h?t+(l=n+o+d)+n>i&&(l=0):t>=0&&!h&&(t+n>i&&(l+=-(o+n+d)),t+l<0&&(l=0))}return l},z=function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,i=e.elementAlign,r=e.collisions,s=e.viewPort,a=e.margin;void 0===a&&(a={});var c=o.top,p=o.left,u=o.height,l=o.width,d=s.height,h=s.width,f=a.horizontal||0,v=a.vertical||0,m=0,g=0,b=r.vertical===T,y=r.horizontal===T,_=r.vertical===k,O=r.horizontal===k;b&&(g+=A(c,u,d)),y&&(m+=A(p,l,h)),_&&(g+=D({margin:v,offset:c,size:u,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:i.vertical})),O&&(m+=D({margin:f,offset:p,size:l,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:i.horizontal}));var w=_&&0!==g,S=O&&0!==m,E=b&&0!==g,P=y&&0!==m;return{flipped:S||w,fitted:E||P,flip:{horizontal:S,vertical:w},fit:{horizontal:P,vertical:E},offset:{left:m,top:g}}},R=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},I=function(e,t){for(var n,o,i=w(e),r=t;r&&(n=R(r),!(o=i.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)r=r.parentElement;return o};M=function(e){if(!N())return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),o},B=!1;var M,L,B,N=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},H=n(2),K=n(3),V=n(4),Z=n(7),F=n(9),U=n(5),q=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},W=function(){return"undefined"!=typeof window},Y=/auto|scroll/,G=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)};var X=function(e){var t,n=!1;return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return n||(t=e.apply(void 0,o),n=!0),t}}((function(){if(!Object(H.isDocumentAvailable)()&&null!==document.body)return!1;var e=document.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(e);var t=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),t})),J=function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},$=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],Q=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.addScroll=function(e,t){return d(e,t)},e.prototype.align=function(e){return l(e)},e.prototype.boundingOffset=function(e){return y(this.nativeElement(e))},e.prototype.getFontStyles=function(e){var t=this.getWindow();if(!t||!e)return[];var n=t.getComputedStyle(this.nativeElement(e));return $.map((function(e){return{key:e,value:n[e]}}))},e.prototype.getWindow=function(){return W()?window:null},e.prototype.hasOffsetParent=function(e){return!!e&&!!this.nativeElement(e).offsetParent},e.prototype.offset=function(e){return e?O(this.nativeElement(e)):null},e.prototype.offsetAtPoint=function(e,t){if(!e)return null;var n=this.nativeElement(e),o=n.style,i=o.left,r=o.top,s=o.transition;n.style.transition="none",n.style.left=t.left+"px",n.style.top=t.top+"px";var a=O(n);return n.style.left=i,n.style.top=r,n.offsetHeight,n.style.transition=s,a},e.prototype.nativeElement=function(e){return e?e.nativeElement||e:null},e.prototype.position=function(e,t,n){return void 0===n&&(n=1),e&&t?C(this.nativeElement(e),this.nativeElement(t),n):null},e.prototype.removeScroll=function(e,t){return x(e,t)},e.prototype.restrictToView=function(e){return z(e)},e.prototype.scrollPosition=function(e){return S(this.nativeElement(e))},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!Object(H.isDocumentAvailable)()||!W())return t;for(var n=e.parentElement;n;)(Y.test(G(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t}(this.nativeElement(e))},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?O(t):null},e.prototype.stackingElementScroll=function(e){var t=this.getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},e.prototype.getRelativeContextElement=function(e){if(!e||!X())return null;for(var t=this.nativeElement(e).parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},e.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},e.prototype.windowViewPort=function(e){return b(this.nativeElement(e))},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!Object(H.isDocumentAvailable)()||!W())return null;var n=I(e,t);if(!n)return null;var o=[e].concat(w(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,o=parseInt(n,10);return o>e?o:e}),0);return o?o+1:null}(this.nativeElement(e),this.nativeElement(t))},e.prototype.zoomLevel=function(){return Object(H.isDocumentAvailable)()&&W()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e=Object(o.__decorate)([Object(i.Injectable)()],e)}(),ee=new i.InjectionToken("Popup Document Scale"),te=function(){function e(e,t){void 0===t&&(t=1),this._dom=e,this.scale=t}return e.prototype.alignElement=function(e){var t=e.anchor,n=e.element,o=e.anchorAlign,i=e.elementAlign,r=e.margin,s=e.offset,a=e.positionMode,c=this.scale||1,p="fixed"===a||!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,s,c):this.relativeRect(t,n,s,c),u=J(this._dom.offset(n),c);return this._dom.align({anchorAlign:o,anchorRect:p,elementAlign:i,elementRect:u,margin:r})},e.prototype.absoluteRect=function(e,t,n,o){var i=this.elementScrollPosition(e,t),r=q(this._dom.offset(e),n),s=2*o,a=this._dom.stackingElementScroll(t);1!==o&&a&&(a.x/=s,a.y/=s);var c=this._dom.stackingElementOffset(t);return 1!==o&&c&&(c.left/=s,c.top/=s),this._dom.removeScroll(this._dom.addScroll(function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e}(J(r,o),c),a),i)},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n,o){var i=q(this._dom.position(e,t,o),n);return J(i,o)},e=Object(o.__decorate)([Object(i.Injectable)(),Object(o.__param)(1,Object(i.Inject)(ee)),Object(o.__param)(1,Object(i.Optional)()),Object(o.__metadata)("design:paramtypes",[Q,Number])],e)}(),ne=function(){function e(e,t){void 0===t&&(t=1),this._dom=e,this.scale=t}return e.prototype.positionElement=function(e){var t=e.anchor,n=e.currentLocation,o=e.element,i=e.anchorAlign,r=e.elementAlign,s=e.collisions,a=e.margin,c=this._dom,p=this.scale||1,u=c.offsetAtPoint(o,n),l=J(u,p),d=J(c.offset(t),p),h=q(d,n),f=e.viewPort||c.windowViewPort(o);f.width=f.width/p,f.height=f.height/p;var v=c.restrictToView({anchorAlign:i,anchorRect:h,collisions:s,elementAlign:r,elementRect:l,margin:a,viewPort:f}),m=c.addOffset(n,v.offset);return{flip:v.flip,flipped:v.flipped,offset:m}},e=Object(o.__decorate)([Object(i.Injectable)(),Object(o.__param)(1,Object(i.Inject)(ee)),Object(o.__param)(1,Object(i.Optional)()),Object(o.__metadata)("design:paramtypes",[Q,Number])],e)}(),oe=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.subscribe=function(e){var t=this;Object(H.isDocumentAvailable)()&&this._zone.runOutsideAngular((function(){t.subscription=Object(K.fromEvent)(t._dom.getWindow(),"resize").pipe(Object(V.auditTime)(1e3/60)).subscribe((function(){return e()}))}))},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},e=Object(o.__decorate)([Object(i.Injectable)(),Object(o.__metadata)("design:paramtypes",[Q,i.NgZone])],e)}(),ie=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.forElement=function(e){return this.unsubscribe(),this.element=e,this},e.prototype.subscribe=function(e){var t=this;if(e&&Object(H.isDocumentAvailable)()&&this.element){var n=this._dom.nativeElement(this.element),o=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular((function(){var i=o.map((function(e){return Object(K.fromEvent)(e,"scroll").pipe(Object(V.auditTime)(1e3/60))}));t.subscription=K.merge.apply(void 0,i).subscribe((function(i){var r=i.target,s=o.filter((function(e){return e===r})).length>0,a=r===document,c=r===window;(s||a||c)&&e(t.isVisible(n,r))}))}))}},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isVisible=function(e,t){var n=this._dom.boundingOffset(e),o=this._dom.boundingOffset(t);return!(1<o.top-n.bottom)&&(!(1<n.top-o.bottom)&&(!(1<n.left-o.right)&&!(1<o.left-n.right)))},e=Object(o.__decorate)([Object(i.Injectable)(),Object(o.__metadata)("design:paramtypes",[Q,i.NgZone])],e)}(),re={expand:function(e){var t="up"===e||"down"===e?"scaleY":"scaleX";return{start:{transform:t+"(0)",transformOrigin:"down"===e?"top":"left"===e?"right":"right"===e?"left":"bottom"},end:{transform:t+"(1)"}}},slide:function(e){var t="left"===e||"right"===e?"translateX":"translateY";return{start:{transform:t+"("+("right"===e||"down"===e?-100:100)+"%)"},end:{transform:t+"(0%)"}}},fade:function(){return{start:{opacity:0},end:{opacity:1}}},zoom:function(){return{start:{transform:"scale(0)"},end:{transform:"scale(1)"}}}},se=function(){function e(e){this.animationBuilder=e,this.start=new i.EventEmitter,this.end=new i.EventEmitter}return e.prototype.play=function(e,t,n){if(!this.flip||this.flip.horizontal!==n.horizontal||this.flip.vertical!==n.vertical){this.flip=n;var o=t.type||"slide",r=re[o];if(r){var s=r(this.getDirection(n,t));this.playStates(e,s,t)}else if(Object(i.isDevMode)())throw new Error('Unsupported animation type: "'+o+'". The supported types are slide, expand, fade and zoom.')}},e.prototype.ngOnDestroy=function(){this.stopPlayer()},e.prototype.playStates=function(e,t,n){var o=this;this.stopPlayer();var i=n.duration||100,r=this.animationBuilder.build([Object(Z.style)(t.start),Object(Z.animate)(i+"ms ease-in",Object(Z.style)(t.end))]),s=this.player=r.create(e);s.onDone((function(){o.end.emit(),o.stopPlayer()})),this.start.emit(),s.play()},e.prototype.getDirection=function(e,t){var n=t.direction||"down";return e.horizontal&&("left"===n?n="right":"right"===n&&(n="left")),e.vertical&&("down"===n?n="up":"up"===n&&(n="down")),n},e.prototype.stopPlayer=function(){this.player&&(this.player.destroy(),this.player=null)},e=Object(o.__decorate)([Object(i.Injectable)(),Object(o.__metadata)("design:paramtypes",[Z.AnimationBuilder])],e)}(),ae={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642583997,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"},ce={left:-1e4,top:0},pe=function(){function e(e,t,n,o,r,s,a,c,p){this.container=e,this._alignService=t,this.domService=n,this._positionService=o,this._resizeService=r,this._scrollableService=s,this.animationService=a,this._renderer=c,this._zone=p,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.copyAnchorStyles=!1,this.positionMode="fixed",this.offset=ce,this.anchorViewportLeave=new i.EventEmitter,this.close=new i.EventEmitter,this.open=new i.EventEmitter,this.positionChange=new i.EventEmitter,this.resolvedPromise=Promise.resolve(null),this.initialCheck=!0,Object(F.validatePackage)(ae),this._renderer.addClass(e.nativeElement,"k-animation-container"),this.updateFixedClass()}return e.prototype.ngOnInit=function(){this.reposition=this.reposition.bind(this),this._resizeService.subscribe(this.reposition),this.animationSubscriptions=this.animationService.start.subscribe(this.onAnimationStart.bind(this)),this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this))),this._scrollableService.forElement(this.anchor||this.container).subscribe(this.onScroll.bind(this)),this.currentOffset=ce,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass(),this.reposition()},e.prototype.ngOnChanges=function(e){e.copyAnchorStyles&&this.copyFontStyles(),e.positionMode&&this.updateFixedClass()},e.prototype.ngAfterViewInit=function(){var e=this;this.animate||this.resolvedPromise.then((function(){e.onAnimationEnd()}))},e.prototype.ngAfterViewChecked=function(){var e=this;this.initialCheck?this.initialCheck=!1:this._zone.runOutsideAngular((function(){e.unsubscribeReposition(),e.repositionSubscription=Object(K.from)(e.resolvedPromise).subscribe(e.reposition)}))},e.prototype.ngOnDestroy=function(){this.anchorViewportLeave.complete(),this.positionChange.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe(),this.animationSubscriptions.unsubscribe(),this.unsubscribeReposition()},e.prototype.onResize=function(){this.reposition()},e.prototype.onAnimationStart=function(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")},e.prototype.onAnimationEnd=function(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()},Object.defineProperty(e.prototype,"currentOffset",{get:function(){return this._currentOffset},set:function(e){this.setContainerStyle("left",e.left+"px"),this.setContainerStyle("top",e.top+"px"),this._currentOffset=e},enumerable:!0,configurable:!0}),e.prototype.setZIndex=function(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.anchor,this.container)))},e.prototype.reposition=function(){var e=this;if(Object(H.isDocumentAvailable)()){var t,n,o,i,r,s,a=this.position(),c=a.flip,p=a.offset;(!this.currentOffset||(t=this.currentOffset,n=p,o=t.left,i=t.top,r=n.left,s=n.top,Math.abs(o-r)>=1||Math.abs(i-s)>=1))&&(this.currentOffset=p,Object(H.hasObservers)(this.positionChange)&&this._zone.run((function(){return e.positionChange.emit({offset:p,flip:c})}))),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,c),this.resizeSensor.acceptSize()}},e.prototype.position=function(){var e=this._alignService.alignElement({anchor:this.anchor,anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.anchor,anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:e,element:this.container,elementAlign:this.popupAlign,margin:this.margin})},e.prototype.onScroll=function(e){var t=this,n=Object(H.hasObservers)(this.anchorViewportLeave);e||!n?this.reposition():n&&this._zone.run((function(){t.anchorViewportLeave.emit()}))},e.prototype.copyFontStyles=function(){var e=this;this.anchor&&this.copyAnchorStyles&&this.domService.getFontStyles(this.anchor).forEach((function(t){return e.setContainerStyle(t.key,t.value)}))},e.prototype.updateFixedClass=function(){var e="fixed"===this.positionMode?"addClass":"removeClass";this._renderer[e](this.container.nativeElement,"k-animation-container-fixed")},e.prototype.setContainerStyle=function(e,t){this._renderer.setStyle(this.container.nativeElement,e,t)},e.prototype.unsubscribeReposition=function(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()},Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"animate",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",i.ElementRef)],e.prototype,"anchor",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"anchorAlign",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"collision",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"popupAlign",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"copyAnchorStyles",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"popupClass",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"positionMode",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"offset",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"margin",void 0),Object(o.__decorate)([Object(i.Output)(),Object(o.__metadata)("design:type",i.EventEmitter)],e.prototype,"anchorViewportLeave",void 0),Object(o.__decorate)([Object(i.Output)(),Object(o.__metadata)("design:type",i.EventEmitter)],e.prototype,"close",void 0),Object(o.__decorate)([Object(i.Output)(),Object(o.__metadata)("design:type",i.EventEmitter)],e.prototype,"open",void 0),Object(o.__decorate)([Object(i.Output)(),Object(o.__metadata)("design:type",i.EventEmitter)],e.prototype,"positionChange",void 0),Object(o.__decorate)([Object(i.ViewChild)("container",{static:!0}),Object(o.__metadata)("design:type",i.ElementRef)],e.prototype,"contentContainer",void 0),Object(o.__decorate)([Object(i.ViewChild)(H.ResizeSensorComponent,{static:!0}),Object(o.__metadata)("design:type",H.ResizeSensorComponent)],e.prototype,"resizeSensor",void 0),e=Object(o.__decorate)([Object(i.Component)({exportAs:"kendo-popup",providers:[te,se,Q,ne,oe,ie],selector:"kendo-popup",template:'\n <div class="k-popup" [ngClass]="popupClass" #container>\n <ng-content></ng-content>\n <ng-template [ngTemplateOutlet]="content" [ngIf]="content"></ng-template>\n <kendo-resize-sensor [rateLimit]="100" (resize)="onResize()">\n </kendo-resize-sensor>\n </div>\n '}),Object(o.__metadata)("design:paramtypes",[i.ElementRef,te,Q,ne,oe,ie,se,i.Renderer2,i.NgZone])],e)}(),ue=new i.InjectionToken("Popup Container"),le=function(){function e(e,t,n,o){this.applicationRef=e,this.componentFactoryResolver=t,this.injector=n,this.container=o}return Object.defineProperty(e.prototype,"rootViewContainer",{get:function(){var e=this.applicationRef.components||[];if(e[0])return e[0];throw new Error("\n View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n ")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rootViewContainerNode",{get:function(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)},enumerable:!0,configurable:!0}),e.prototype.open=function(e){void 0===e&&(e={});var t=this.contentFrom(e.content),n=t.component,o=t.nodes,i=this.appendPopup(o,e.appendTo),r=i.instance;this.projectComponentInputs(i,e),i.changeDetectorRef.detectChanges(),n&&n.changeDetectorRef.detectChanges();var s=this.getComponentRootNode(i);return{close:function(){var e;n&&n.destroy(),i.destroy(),(e=s)&&e.parentNode&&e.parentNode.removeChild(e)},content:n,popup:i,popupAnchorViewportLeave:r.anchorViewportLeave,popupClose:r.close,popupElement:s,popupOpen:r.open,popupPositionChange:r.positionChange}},e.prototype.appendPopup=function(e,t){var n=this.createComponent(pe,e,t);return t||this.rootViewContainerNode.appendChild(this.getComponentRootNode(n)),n},e.prototype.getComponentRootNode=function(e){return e.location.nativeElement},e.prototype.getComponentFactory=function(e){return this.componentFactoryResolver.resolveComponentFactory(e)},e.prototype.createComponent=function(e,t,n){var o=this.getComponentFactory(e);if(n)return n.createComponent(o,void 0,this.injector,t);var i=o.create(this.injector,t);return this.applicationRef.attachView(i.hostView),i},e.prototype.projectComponentInputs=function(e,t){return Object.getOwnPropertyNames(t).filter((function(e){return"content"!==e||t.content instanceof i.TemplateRef})).map((function(n){e.instance[n]=t[n]})),e},e.prototype.contentFrom=function(e){if(!e||e instanceof i.TemplateRef)return{component:null,nodes:[[]]};var t=this.createComponent(e);return{component:t,nodes:[t?[t.location.nativeElement]:[]]}},e=Object(o.__decorate)([Object(i.Injectable)(),Object(o.__param)(3,Object(i.Inject)(ue)),Object(o.__param)(3,Object(i.Optional)()),Object(o.__metadata)("design:paramtypes",[i.ApplicationRef,i.ComponentFactoryResolver,i.Injector,i.ElementRef])],e)}(),de=[pe],he=function(){function e(){}return e=Object(o.__decorate)([Object(i.NgModule)({declarations:[de],entryComponents:[de],exports:[de],imports:[U.CommonModule,H.ResizeSensorModule],providers:[le]})],e)}()},function(e,t){e.exports=i},function(e,t,n){"use strict";function o(e){return 9===e.nodeType}Object.defineProperty(t,"__esModule",{value:!0}),t.align=function(e,t){var n={},o={},i={};switch(e){case"top":n={horizontal:"center",vertical:"top"},o={horizontal:"center",vertical:"bottom"},i={horizontal:0,vertical:t};break;case"bottom":n={horizontal:"center",vertical:"bottom"},o={horizontal:"center",vertical:"top"},i={horizontal:0,vertical:t};break;case"right":n={horizontal:"right",vertical:"center"},o={horizontal:"left",vertical:"center"},i={horizontal:t,vertical:0};break;case"left":n={horizontal:"left",vertical:"center"},o={horizontal:"right",vertical:"center"},i={horizontal:t,vertical:0}}return{anchorAlign:n,popupAlign:o,popupMargin:i}},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 n=Element.prototype.matches?function(e,t){return e.matches(t)}:function(e,t){return e.msMatchesSelector(t)},i=e;i&&!o(i);){if(n(i,t))return i;i=i.parentNode}},t.contains=function(e,t){return!!e&&(!o(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,n){var o=e.getBoundingClientRect();return o[t]+o[n]/2},t.containsItem=function(e,t){return-1!==e.indexOf(t)}},function(e,t,n){"use strict";n.r(t),n.d(t,"setScriptKey",(function(){return p})),n.d(t,"validatePackage",(function(){return u}));var o,i,r=["EMfOwhq=","z3jVDxbfBMq=","B2jQzwn0","u2vLia==","BKDQzKK=","zNvUy3rPB24=","zgf0yq==","D1rPsKq=","z2v0","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","DgLTzxn0yw1W","y29Kzq==","DhLWzq==","C2v0","DMvYC2LVBG==","ChjVzhvJDenVzgvZ","u3PgAeu=","BMfTzq==","sg94tgG=","zun0Beq=","z3jVDxa=","ChjVzhvJDhm=","CgfYC2u=","BfP2zKS=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","Cfj6wKC=","tM8GBgLJzw5ZzsbMB3vUzc4k","ChjVzhvJDe5HBwu=","uwrAy0q=","BefHr0m=","t3jquwq=","s1Ldrvi=","CNvlCgC=","AgfZ","zxHWAxj5rgf0zq==","CgfJA2fNzu5HBwu=","y3LqC08=","CMr1Aui=","CNvHzve=","zg9JC1vYBa==","uhjVz3jLC3mG","ChvIBgLZAerHDgu=","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","D2fYBG==","B3nTvxa=","swTrwfO=","CLfMrLm=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","whv2wMO=","rLbJyLa=","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","C2nYAxb0s2v5","BgLJzw5ZAw5Nrg9JC1vYBa==","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG","EfbArNi=","zMLUza==","Dw5KzwzPBMvK","Dg9mB2nHBgvtDhjPBMC=","BgvUz3rO"];o=r,i=131,function(e){for(;--e;)o.push(o.shift())}(++i);var s=function(e,t){var n=r[e-=0];if(void 0===s.eVebMg){s.JsjtEd=function(e){for(var t=function(e){for(var t,n,o=String(e).replace(/=+$/,""),i="",r=0,s=0;n=o.charAt(s++);~n&&(t=r%4?64*t+n:n,r++%4)?i+=String.fromCharCode(255&t>>(-2*r&6)):0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);return i}(e),n=[],o=0,i=t.length;o<i;o++)n+="%"+("00"+t.charCodeAt(o).toString(16)).slice(-2);return decodeURIComponent(n)},s.rqrXoU={},s.eVebMg=!0}var o=s.rqrXoU[e];return void 0===o?(n=s.JsjtEd(n),s.rqrXoU[e]=n):n=o,n},a={data:' {"timestamp":1635163540,"products":[{"trial":false,"code":"KENDOUIREACT","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUICOMPLETE","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUIVUE","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUIANGULAR","licenseExpirationDate":1642770000}],"integrity":"Iq+/hmrfWBiuOSBY/c3zb/zGgBg="} '},c=new Map;function p(e){}function u(e){if(c[s("0x14")](e[s("0x4")])){if(s("0x35")==s("0x35"))return c[s("0x36")](e[s("0x4")])}var t,n=e[s("0x1")]?" v"+e[s("0x1")]:"",o=e[s("0x4")]+n,i=JSON[s("0x9")](a[s("0x34")]),r=!i[s("0x26")]&&!i[s("0x38")],p=i[s("0x26")]&&typeof KendoLicensing===s("0x2b"),u=function(e,t){var n=e[s("0x8")];if(!n||!n[s("0x2d")]){if(s("0x11")==s("0x11"))return null}var o=new Set(t);return n[s("0x2a")]((function(e){if(s("0xa")!==s("0x18"))return o[s("0x14")](e[s("0x39")])}))}(i,e[s("0x2")]);if(r||p)if(s("0x29")!=s("0x29")){}else t={type:0,packageName:o,docsUrl:e[s("0x27")]};else if(s("0xf")===s("0x24")){}else if(u){if(s("0x12")!=s("0x12")){}else if(u[s("0x37")]<e[s("0x1c")])if(s("0x21")===s("0x32")){}else t={type:2,packageName:o,publishDate:l(e[s("0x1c")]),expiryDate:l(u[s("0x37")]),docsUrl:e[s("0x27")]}}else if(s("0x6")!=s("0x6")){}else t={type:1,packageName:o,docsUrl:e[s("0x27")]};if(t&&typeof console===s("0x30"))if(s("0x5")===s("0x3")){}else{var d=s("0x1b")+e[s("0xe")],h=typeof console[s("0x7")]===s("0x33");if(h)if(s("0xc")!=s("0xc")){}else console[s("0x7")](d);else if(s("0x17")!=s("0x17")){}else console[s("0x1e")](d);if(console[s("0x1e")](function(e){var t=s("0x28")+e[s("0x16")]+"\n";if(2===e[s("0x3a")])if(s("0x20")!=s("0x20")){}else t+=s("0x25")+e[s("0x15")][s("0x2c")]()+s("0xb")+e[s("0x1c")][s("0x2c")]()+".\n";else if(0===e[s("0x3a")])if(s("0x13")!==s("0x10"))t+=s("0xd");else{}else if(1===e[s("0x3a")])if(s("0x2e")===s("0x23")){}else t+=s("0x1d");return t+=s("0x31")+e[s("0x1a")]+s("0x22")}(t)),h)if(s("0x1f")!==s("0x19"))console[s("0x2f")]();else{}}var f=!t;return c[s("0x0")](e[s("0x4")],f),f}function l(e){return new Date(1e3*e)}},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(10),s=n(3),a=n(9),c=n(16),p=n(19),u=n(12),l=n(13),d=n(14),h=function(){function e(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 s.Subscription,this._templateData=function(){return null},a.validatePackage(c.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(i.isDevMode&&"function"!=typeof e)throw new Error(p.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 n=t.rtl;e.direction=n?"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}}},o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"position",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],e.prototype,"offset",null),o.__decorate([i.HostBinding("style.width"),i.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],e.prototype,"width",null),o.__decorate([i.HostBinding("style.height"),i.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],e.prototype,"height",null),o.__decorate([i.HostBinding("attr.dir"),o.__metadata("design:type",String)],e.prototype,"direction",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"title",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"subtitle",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"body",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],e.prototype,"callout",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"animation",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[Function])],e.prototype,"templateData",null),o.__decorate([i.HostBinding("class.k-hidden"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],e.prototype,"isHidden",null),o.__decorate([i.HostBinding("attr.aria-hidden"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],e.prototype,"hasAttributeHidden",null),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"show",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"shown",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"hide",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"hidden",void 0),o.__decorate([i.ContentChild(u.PopoverTitleTemplateDirective,{static:!1}),o.__metadata("design:type",u.PopoverTitleTemplateDirective)],e.prototype,"titleTemplate",void 0),o.__decorate([i.ContentChild(l.PopoverBodyTemplateDirective,{static:!1}),o.__metadata("design:type",l.PopoverBodyTemplateDirective)],e.prototype,"bodyTemplate",void 0),o.__decorate([i.ContentChild(d.PopoverActionsTemplateDirective,{static:!1}),o.__metadata("design:type",d.PopoverActionsTemplateDirective)],e.prototype,"actionsTemplate",void 0),e=o.__decorate([i.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 '}),o.__metadata("design:paramtypes",[r.LocalizationService])],e)}();t.PopoverComponent=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=function(){function e(e){this.templateRef=e}return e=o.__decorate([i.Directive({selector:"[kendoPopoverTitleTemplate]"}),o.__param(0,i.Optional()),o.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PopoverTitleTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=function(){function e(e){this.templateRef=e}return e=o.__decorate([i.Directive({selector:"[kendoPopoverBodyTemplate]"}),o.__param(0,i.Optional()),o.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PopoverBodyTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=function(){function e(e){this.templateRef=e}return e=o.__decorate([i.Directive({selector:"[kendoPopoverActionsTemplate]"}),o.__param(0,i.Optional()),o.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PopoverActionsTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(4),s=n(3),a=n(6),c=n(9),p=n(16),u=n(17),l=n(18),d=n(8),h=function(){function e(e,t,n,o,i,a){var u=this;this.tooltipWrapper=e,this.ngZone=t,this.renderer=n,this.popupService=o,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"],c.validatePackage(p.packageMetadata),Object.assign(this,i,a),this.ngZone.runOutsideAngular((function(){var e=u.tooltipWrapper.nativeElement;u.anchorTitleSubscription=s.fromEvent(e,"mouseover").pipe(r.filter((function(){return""!==u.filter}))).subscribe((function(e){var t=d.closestBySelector(e.target,u.filter);t&&u.hideElementTitle({nativeElement:t})})),u.mouseOverSubscription=s.fromEvent(e,"mouseover").pipe(r.debounceTime(100),r.filter((function(){return""!==u.filter}))).subscribe((function(e){return u.onMouseOver(e)})),u.mouseOutSubscription=s.fromEvent(e,"mouseout").pipe(r.debounceTime(100)).subscribe((function(e){return u.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 n=this.anchor&&this.anchor.nativeElement;e instanceof Element&&(e={nativeElement:e}),n!==e.nativeElement&&this.hide(),n===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 n=this,o=e.instance;this.closeClickSubscription=o.close.subscribe((function(){n.hide()})),this.template?o.templateRef=this.template:o.templateString=this.anchor.nativeElement.getAttribute("data-title"),this.titleTemplate&&(o.titleTemplate=this.titleTemplate),o.closeTitle=this.closeTitle,o.anchor=t,o.callout=this.callout,o.closable=this.closable,o.position=this.position,o.tooltipWidth=this.tooltipWidth,o.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,n=d.align(this.position,this.offset),o=n.anchorAlign,i=n.popupAlign,r=n.popupMargin;this.popupRef=this.popupService.open({anchor:e,anchorAlign:o,animate:!1,content:l.TooltipContentComponent,collision:d.collision(this.collision,this.position),margin:r,popupAlign:i,popupClass:"k-popup-transparent"}),this.renderer.addClass(this.popupRef.popupElement,"k-tooltip-wrapper"),this.tooltipClass&&this.renderer.addClass(this.popupRef.popupElement,this.tooltipClass);var a=this.popupRef.content.instance;a.callout&&(this.popupPositionChangeSubscription=this.popupRef.popupPositionChange.subscribe((function(e){var n=e.flip,o=!0===n.horizontal||!0===n.vertical;a.updateCalloutPosition(t.position,o)}))),"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 n=e.target,o=d.closestBySelector(n,this.filter),i=this.popupRef&&this.popupRef.popupElement;if(i){if(i.contains(n))return;if(this.closable)return}t.contains(n)&&o?this.toggle(o,!0):i&&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,n=e.relatedTarget;n&&this.anchor&&d.contains(this.anchor.nativeElement,n)||n&&d.contains(t,n)||this.hide()}},e.prototype.verifyProperties=function(){if(i.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'.")}},o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"filter",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"position",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef)],e.prototype,"titleTemplate",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"showOn",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],e.prototype,"showAfter",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],e.prototype,"callout",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],e.prototype,"closable",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],e.prototype,"offset",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],e.prototype,"tooltipWidth",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],e.prototype,"tooltipHeight",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"tooltipClass",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"collision",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"closeTitle",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef),o.__metadata("design:paramtypes",[i.TemplateRef])],e.prototype,"tooltipTemplate",null),e=o.__decorate([i.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip"}),o.__param(4,i.Optional()),o.__param(5,i.Optional()),o.__param(5,i.Inject(u.TOOLTIP_SETTINGS)),o.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,i.Renderer2,a.PopupService,u.TooltipSettings,u.TooltipSettings])],e)}();t.TooltipDirective=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-tooltip",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642590228,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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0);t.TOOLTIP_SETTINGS=new i.InjectionToken("kendo-ui-tooltip-settings");var r=function(){function e(){}return e=o.__decorate([i.Injectable()],e)}();t.TooltipSettings=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(10),s=n(8),a=function(){function e(e,t){this.content=e,this.localizationService=t,this.close=new i.EventEmitter,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=function(e,t,n){var o={},i="top"===e||"bottom"===e;return n?("top"===e?o.bottom="unset":"bottom"===e?o.top="unset":"left"===e?o.right="unset":"right"===e&&(o.left="unset"),o[e]=-t+"px",o.transform=i?"rotateX(180deg)":"rotateY(180deg)",o):(o.transform=i?"rotateX(0deg)":"rotateY(0deg)",o)},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 n=t.rtl;return e.direction=n?"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 n=this.content.nativeElement.querySelector(".k-callout"),o="top"===e||"bottom"===e,i=o?"width":"height",r=o?"left":"top",a=o?"marginLeft":"marginTop",c=n.getBoundingClientRect()[i],p=s.getCenterOffset(this.anchor.nativeElement,r,i),u=s.getCenterOffset(this.content.nativeElement,r,i),l=Math.abs(u-p);if(l>1||0===l||0===Math.round(l)){var d=u-p+c/2;n.style[a]=-d+"px"}var h=this.calloutStyles(e,c,t);Object.keys(h).forEach((function(e){n.style[e]=h[e]}))}},o.__decorate([i.HostBinding("attr.dir"),o.__metadata("design:type",String)],e.prototype,"direction",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"close",void 0),o.__decorate([i.HostBinding("class"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],e.prototype,"cssClasses",null),o.__decorate([i.HostBinding("class.k-tooltip-closable"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],e.prototype,"className",null),o.__decorate([i.HostBinding("style.position"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],e.prototype,"cssPosition",null),o.__decorate([i.HostBinding("style.width.px"),i.Input(),o.__metadata("design:type",Number)],e.prototype,"tooltipWidth",void 0),o.__decorate([i.HostBinding("style.height.px"),i.Input(),o.__metadata("design:type",Number)],e.prototype,"tooltipHeight",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef)],e.prototype,"titleTemplate",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.ElementRef)],e.prototype,"anchor",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],e.prototype,"closable",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef)],e.prototype,"templateRef",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"templateString",void 0),e=o.__decorate([i.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"}]}),o.__metadata("design:paramtypes",[i.ElementRef,r.LocalizationService])],e)}();t.TooltipContentComponent=a},function(e,t,n){"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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(2),s=n(6),a=n(4),c=n(8),p=n(21),u=n(23),l=function(e){function t(t,n,o,i,s){var c=e.call(this,n,o,i)||this;return c.wrapperEl=t,c.ngZone=n,c.popupService=o,c.renderer=i,c.popoverService=s,c.mouseenterHandler=function(e){c.controlVisibility(e,!0)},c.mouseleaveHandler=function(e){var t=e.anchor;c.isPrevented(t,!1)||c._hideSub||(c._hideSub=c.popoverService.hidePopover.subscribe((function(e){var t=e[0],n=e[2],o=e[3];t||n||(c.hide(),!n&&o&&c.show(o))})))},c.focusHandler=function(e){c.controlVisibility(e,!0)},c.blurHandler=function(e){var t=e.anchor,n=e.domEvent;if(!c.isPrevented(t,!1)){var o=!!r.closest(n.relatedTarget,(function(e){return e.classList&&e.classList.contains("k-popover")}));o||c.hide(),c._focusInsideSub||(c._focusInsideSub=c.popoverService.isFocusInsidePopover.pipe(a.filter((function(e){return null!==e}))).subscribe((function(e){e||o||c.hide()})))}},c._popoverService=c.popoverService,c}return o.__extends(t,e),t.prototype.show=function(e){this.popupRef||this.openPopup(e)},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 n=c.closestBySelector(t.target,e.filter);e.clickHandler(n,t)}))},t.prototype.subscribeToEvents=function(e){var t=this;Array.from(document.querySelectorAll(this.filter)).forEach((function(n){t.subs.add(t.renderer.listen(n,e[0].name,(function(){t.popoverService.emitAnchorState(!0,n),e[0].handler(n)}))),t.subs.add(t.renderer.listen(n,e[1].name,(function(o){t.popoverService.emitAnchorState(!1,null),e[1].handler({anchor:n,domEvent:o})})))}))},t.prototype.clickHandler=function(e,t){var n=!!r.closest(t.target,(function(e){return e.classList&&e.classList.contains("k-popup")})),o=this.popupRef&&this.popupRef.content.instance.anchor,i=!!r.closest(t.target,(function(t){return t===(o||e)}));"click"!==this.showOn||n||this.popupRef&&i||(e||!this.popupRef?i?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())},o.__decorate([i.Input(),o.__metadata("design:type",String)],t.prototype,"filter",void 0),t=o.__decorate([i.Directive({selector:"[kendoPopoverContainer]",exportAs:"kendoPopoverContainer",providers:[u.PopoverService]}),o.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,s.PopupService,i.Renderer2,u.PopoverService])],t)}(p.PopoverDirectivesBase);t.PopoverContainerDirective=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(4),s=n(2),a=n(19),c=n(22),p=n(8),u=n(11),l=n(3),d=["hover","click","none","focus"],h=function(){function e(e,t,n){this.ngZone=e,this.popupService=t,this.renderer=n,this.subs=new l.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(i.isDevMode)throw new Error(a.ERRORS.popover)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showOn",{get:function(){return this._showOn},set:function(e){if(i.isDevMode&&!p.containsItem(d,e))throw new Error(a.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=this,n=e instanceof i.ElementRef?e.nativeElement:e,o=this.popover instanceof u.PopoverComponent?this.popover:this.popover(n),s=p.align(o.position,o.offset),a=s.anchorAlign,c=s.popupAlign,l=s.popupMargin,d=o.animation;this.ngZone.run((function(){t.popupRef=t.popupService.open({anchor:{nativeElement:n},animate:d,content:u.PopoverComponent,popupAlign:c,anchorAlign:a,margin:l,popupClass:"k-popup-transparent",collision:{horizontal:"fit",vertical:"fit"}});var i=t.popupRef.content.instance;Object.assign(i,o),i.anchor=e,i.contextData=i.templateData(e),i.visible=!0,t.popupRef.content.changeDetectorRef.detectChanges(),t.monitorPopup(),t.initializeFinishingEvents(o,n)})),this.popupRef.popupAnchorViewportLeave.pipe(r.take(1)).subscribe((function(){return t.hide()}))},e.prototype.isPrevented=function(e,t){var n,o=this.popover instanceof u.PopoverComponent?this.popover:this.popover(e);return(n=this.initializeEvents(o,n,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){s.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.initializeEvents=function(e,t,n,o){var i=this;return n?this.ngZone.run((function(n){t=new c.PopoverShowEvent(o),i.popupRef||e.show.emit(t)})):this.ngZone.run((function(n){t=new c.PopoverHideEvent(o,i.popupRef),i.popupRef&&e.hide.emit(t)})),t},e.prototype.initializeFinishingEvents=function(e,t){var n=this;this._popupOpenSub||this.popupRef.popupOpen.subscribe((function(){var o=new c.PopoverShownEvent(t,n.popupRef);e.shown.emit(o)})),this._popupCloseSub||this.popupRef.popupClose.subscribe((function(){n.ngZone.run((function(n){var o=new c.PopoverHiddenEvent(t);e.hidden.emit(o)}))}))},o.__decorate([i.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],e.prototype,"popover",null),o.__decorate([i.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],e.prototype,"showOn",null),e}();t.PopoverDirectivesBase=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(2),r=function(e){function t(t){var n=e.call(this)||this;return n.anchor=t,n}return o.__extends(t,e),t}(i.PreventableEvent);t.PopoverShowEvent=r;var s=function(e){function t(t,n){var o=e.call(this)||this;return o.anchor=t,o.popover=n,o}return o.__extends(t,e),t}(i.PreventableEvent);t.PopoverHideEvent=s;var a=function(e,t){this.anchor=e,this.popover=t};t.PopoverShownEvent=a;var c=function(e){this.anchor=e};t.PopoverHiddenEvent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(3),s=n(4),a=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(n){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 n=this;this._isOrigin=this.originAnchor===t,this.currentAnchor=t,e&&(this.originAnchor=t),this.ngZone.run((function(t){return n._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(n){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 n=t[0],o=t[1];e._hidePopover.next([n,o,e._isOrigin,e.currentAnchor])})))},e=o.__decorate([i.Injectable(),o.__metadata("design:paramtypes",[i.NgZone])],e)}();t.PopoverService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(2),s=n(6),a=n(4),c=n(21),p=n(23),u=function(e){function t(t,n,o,i,s){var c=e.call(this,n,o,i)||this;return c.hostEl=t,c.ngZone=n,c.popupService=o,c.renderer=i,c.popoverService=s,c.mouseenterHandler=function(){c.controlVisibility(c.hostEl.nativeElement,!0)},c.mouseleaveHandler=function(){c.isPrevented(c.hostEl.nativeElement,!1)||c._hideSub||(c._hideSub=c.popoverService.hidePopover.subscribe((function(e){var t=e[0],n=e[1];t||n||c.hide()})))},c.focusHandler=function(){c.controlVisibility(c.hostEl.nativeElement,!0)},c.blurHandler=function(e){var t=e.domEvent;c.isPrevented(c.hostEl.nativeElement,!1)||(!!r.closest(t.relatedTarget,(function(e){return e.classList&&e.classList.contains("k-popover")}))||c.hide(),c._focusInsideSub||(c._focusInsideSub=c.popoverService.isFocusInsidePopover.pipe(a.filter((function(e){return null!==e}))).subscribe((function(e){e||c.hide()}))))},c._popoverService=c.popoverService,c}return o.__extends(t,e),t.prototype.show=function(){this.popupRef||this.openPopup(this.hostEl.nativeElement)},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(n){t.popoverService.emitAnchorState(!1,null),e[1].handler({domEvent:n})})))},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,n=!!r.closest(e.target,(function(e){return e.classList&&e.classList.contains("k-popup")})),o=!!r.closest(e.target,(function(e){return e===t.hostEl.nativeElement}));n||this.popupRef&&o||(o?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=o.__decorate([i.Directive({selector:"[kendoPopoverAnchor]",exportAs:"kendoPopoverAnchor",providers:[p.PopoverService]}),o.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,s.PopupService,i.Renderer2,p.PopoverService])],t)}(c.PopoverDirectivesBase);t.PopoverAnchorDirective=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(5),s=n(15),a=n(6),c=n(18),p=n(28),u=[s.TooltipDirective,c.TooltipContentComponent,p.LocalizedMessagesDirective],l=[a.PopupModule],d=function(){function e(){}return e=o.__decorate([i.NgModule({declarations:[u],entryComponents:[c.TooltipContentComponent],imports:[r.CommonModule].concat(l),exports:[u]})],e)}();t.TooltipModule=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(5),r=n(0),s=n(6),a=n(24),c=n(20),p=n(11),u=n(12),l=n(13),d=[n(14).PopoverActionsTemplateDirective,l.PopoverBodyTemplateDirective,u.PopoverTitleTemplateDirective,a.PopoverAnchorDirective,c.PopoverContainerDirective],h=function(){function e(){}return e=o.__decorate([r.NgModule({declarations:d.concat([p.PopoverComponent]),entryComponents:[p.PopoverComponent],exports:d.concat([p.PopoverComponent]),imports:[i.CommonModule,s.PopupModule]})],e)}();t.PopoverModule=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(15);t.TooltipDirective=o.TooltipDirective;var i=n(17);t.TooltipSettings=i.TooltipSettings,t.TOOLTIP_SETTINGS=i.TOOLTIP_SETTINGS;var r=n(11);t.PopoverComponent=r.PopoverComponent;var s=n(20);t.PopoverContainerDirective=s.PopoverContainerDirective;var a=n(24);t.PopoverAnchorDirective=a.PopoverAnchorDirective;var c=n(12);t.PopoverTitleTemplateDirective=c.PopoverTitleTemplateDirective;var p=n(13);t.PopoverBodyTemplateDirective=p.PopoverBodyTemplateDirective;var u=n(14);t.PopoverActionsTemplateDirective=u.PopoverActionsTemplateDirective;var l=n(22);t.PopoverShowEvent=l.PopoverShowEvent,t.PopoverShownEvent=l.PopoverShownEvent,t.PopoverHideEvent=l.PopoverHideEvent,t.PopoverHiddenEvent=l.PopoverHiddenEvent;var d=n(25);t.TooltipModule=d.TooltipModule;var h=n(26);t.PopoverModule=h.PopoverModule;var f=n(29);t.TooltipsModule=f.TooltipsModule},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(10),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return o.__extends(t,e),n=t,o.__decorate([i.Input(),o.__metadata("design:type",String)],t.prototype,"closeTitle",void 0),t=n=o.__decorate([i.Directive({providers:[{provide:r.ComponentMessages,useExisting:i.forwardRef((function(){return n}))}],selector:"[kendoTooltipLocalizedMessages]"}),o.__metadata("design:paramtypes",[r.LocalizationService])],t)}(r.ComponentMessages);t.LocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(25),s=n(26),a=function(){function e(){}return e=o.__decorate([i.NgModule({exports:[r.TooltipModule,s.PopoverModule]})],e)}();t.TooltipsModule=a}])}));
|
|
20
|
+
var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r=function(){return(r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}function a(e,t,n,o){var i,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,n,s):i(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return function(n,o){t(n,o,e)}}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,o){return new(n||(n=Promise))((function(i,r){function s(e){try{c(o.next(e))}catch(e){r(e)}}function a(e){try{c(o.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((o=o.apply(e,t||[])).next())}))}function l(e,t){var n,o,i,r,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,o=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){s.label=r[1];break}if(6===r[0]&&s.label<i[1]){s.label=i[1],i=r;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(r);break}i[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}function d(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}function h(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function g(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,i++)o[i]=r[s];return o}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=n.apply(e,t||[]),r=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(e){i[e]&&(o[e]=function(t){return new Promise((function(n,o){r.push([e,t,n,o])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof b?Promise.resolve(n.value.v).then(c,p):u(r[0][2],n)}catch(e){u(r[0][3],e)}var n}function c(e){a("next",e)}function p(e){a("throw",e)}function u(e,t){e(t),r.shift(),r.length&&a(r[0][0],r[0][1])}}function _(e){var t,n;return t={},o("next"),o("throw",(function(e){throw e})),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,i){t[o]=e[o]?function(t){return(n=!n)?{value:b(e[o](t)),done:"return"===o}:i?i(t):t}:i}}function O(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new Promise((function(o,i){(function(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)})(o,i,(t=e[n](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function P(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function j(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"ResizeService",(function(){return F})),n.d(t,"PreventableEvent",(function(){return te})),n.d(t,"DraggableDirective",(function(){return S})),n.d(t,"DraggableModule",(function(){return E})),n.d(t,"closestInScope",(function(){return P})),n.d(t,"closest",(function(){return j})),n.d(t,"contains",(function(){return C})),n.d(t,"findElement",(function(){return x})),n.d(t,"findFocusableChild",(function(){return z})),n.d(t,"findFocusable",(function(){return R})),n.d(t,"hasClasses",(function(){return M})),n.d(t,"isFocusableWithTabKey",(function(){return D})),n.d(t,"isFocusable",(function(){return k})),n.d(t,"isVisible",(function(){return A})),n.d(t,"matchesClasses",(function(){return L})),n.d(t,"matchesNodeName",(function(){return N})),n.d(t,"rtlScrollPosition",(function(){return H})),n.d(t,"EventsOutsideAngularDirective",(function(){return V})),n.d(t,"EventsModule",(function(){return Z})),n.d(t,"ResizeSensorComponent",(function(){return J})),n.d(t,"ResizeBatchService",(function(){return X})),n.d(t,"ResizeCompatService",(function(){return W})),n.d(t,"ResizeObserverService",(function(){return G})),n.d(t,"ResizeSensorModule",(function(){return Q})),n.d(t,"KendoInput",(function(){return ee})),n.d(t,"isDocumentAvailable",(function(){return b})),n.d(t,"isChanged",(function(){return y})),n.d(t,"anyChanged",(function(){return _})),n.d(t,"hasObservers",(function(){return O})),n.d(t,"guid",(function(){return w})),n.d(t,"Keys",(function(){return K}));var o=n(1),i=n(0),r=function(e,t){return function(n){return t(e(n))}},s=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},a=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},c=function(){},p=function(e){return e.preventDefault()},u=/touch/;function l(e){return e.type.match(u)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var d=function(e){var t=this,n=e.press;void 0===n&&(n=c);var o=e.drag;void 0===o&&(o=c);var i=e.release;void 0===i&&(i=c);var u=e.mouseOnly;void 0===u&&(u=!1),this._pressHandler=r(l,n),this._dragHandler=r(l,o),this._releaseHandler=r(l,i),this._ignoreMouse=!1,this._mouseOnly=u,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(s(t.document,"mousemove",t._mousemove),s(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){a(t.document,"mousemove",t._mousemove),a(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(s(t.document,"pointermove",t._pointermove),s(t.document,"pointerup",t._pointerup),s(t.document,"pointercancel",t._pointerup),s(t.document,"contextmenu",p),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(a(t.document,"pointermove",t._pointermove),a(t.document,"pointerup",t._pointerup),a(t.document,"pointercancel",t._pointerup),a(t.document,"contextmenu",p),t._releaseHandler(e))}},h={document:{configurable:!0}};d.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},h.document.get=function(){return this._element?this._element.ownerDocument:document},d.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},d.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?s(e,"pointerdown",this._pointerdown):(s(e,"mousedown",this._mousedown),this._mouseOnly||(s(e,"touchstart",this._touchstart),s(e,"touchmove",this._touchmove),s(e,"touchend",this._touchend)))},d.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return a(e,"pointerdown",this._pointerdown),a(this.document,"pointermove",this._pointermove),a(this.document,"pointerup",this._pointerup),a(this.document,"contextmenu",p),void a(this.document,"pointercancel",this._pointerup);a(e,"mousedown",this._mousedown),this._mouseOnly||(a(e,"touchstart",this._touchstart),a(e,"touchmove",this._touchmove),a(e,"touchend",this._touchend))},d.prototype._usePointers=function(){return!this._mouseOnly&&d.supportPointerEvent()},d.prototype.update=function(e){var t=e.press;void 0===t&&(t=c);var n=e.drag;void 0===n&&(n=c);var o=e.release;void 0===o&&(o=c);var i=e.mouseOnly;void 0===i&&(i=!1),this._pressHandler=r(l,t),this._dragHandler=r(l,n),this._releaseHandler=r(l,o),this._mouseOnly=i},d.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(d.prototype,h),d.default=d;var f=d,v=n(5),m=n(4),g=n(3),b=function(){return"undefined"!=typeof document},y=function(e,t,n){return void 0===n&&(n=!0),!(void 0===t[e]||t[e].isFirstChange()&&n||t[e].previousValue===t[e].currentValue)},_=function(e,t,n){return void 0===n&&(n=!0),e.some((function(e){return y(e,t,n)}))},O=function(e){return e&&e.observers.length>0},w=function(){for(var e="",t=0;t<32;t++){var n=16*Math.random()|0;8!==t&&12!==t&&16!==t&&20!==t||(e+="-"),e+=(12===t?4:16===t?3&n|8:n).toString(16)}return e},S=function(){function e(e,t){this.element=e,this.ngZone=t,this.enableDrag=!0,this.kendoPress=new i.EventEmitter,this.kendoDrag=new i.EventEmitter,this.kendoRelease=new i.EventEmitter}return e.prototype.ngOnInit=function(){this.toggleDraggable()},e.prototype.ngOnChanges=function(e){y("enableDrag",e)&&this.toggleDraggable()},e.prototype.ngOnDestroy=function(){this.destroyDraggable()},e.prototype.toggleDraggable=function(){var e=this;b()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new f({drag:function(t){return e.kendoDrag.next(t)},press:function(t){return e.kendoPress.next(t)},release:function(t){return e.kendoRelease.next(t)}}),this.ngZone.runOutsideAngular((function(){return e.draggable.bindTo(e.element.nativeElement)}))))},e.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"enableDrag",void 0),Object(o.__decorate)([Object(i.Output)(),Object(o.__metadata)("design:type",i.EventEmitter)],e.prototype,"kendoPress",void 0),Object(o.__decorate)([Object(i.Output)(),Object(o.__metadata)("design:type",i.EventEmitter)],e.prototype,"kendoDrag",void 0),Object(o.__decorate)([Object(i.Output)(),Object(o.__metadata)("design:type",i.EventEmitter)],e.prototype,"kendoRelease",void 0),e=Object(o.__decorate)([Object(i.Directive)({selector:"[kendoDraggable]"}),Object(o.__metadata)("design:paramtypes",[i.ElementRef,i.NgZone])],e)}(),E=function(){function e(){}return e=Object(o.__decorate)([Object(i.NgModule)({declarations:[S],exports:[S],imports:[v.CommonModule]})],e)}(),P=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},j=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},C=function(e,t,n){if(void 0===n&&(n=!1),!j(t,(function(t){return t===e})))return!1;var o=j(t,(function(e){return e===t}));return o&&(n||o!==e)},x=function(e,t,n){if(void 0===n&&(n=!0),e){if(n&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var o=x(e,t);if(o)return o}e=e.nextSibling}}},T=/^(?:a|input|select|option|textarea|button|object)$/i,k=function(e){if(!e.tagName)return!1;var t=e.tagName.toLowerCase(),n=Boolean(e.getAttribute("tabIndex"));return!e.disabled&&T.test(t)||n},A=function(e){var t=e.getBoundingClientRect(),n=t.width>0&&t.height>0,o=0!==t.x&&0!==t.y;return(n||o)&&"hidden"!==window.getComputedStyle(e).visibility},D=function(e,t){if(void 0===t&&(t=!0),!k(e))return!1;var n=e.getAttribute("tabIndex");return(!t||A(e))&&"-1"!==n},z=function(e,t){return void 0===t&&(t=!0),x(e,(function(e){return D(e,t)}),!1)},R=function(e,t){return void 0===t&&(t=!0),x(e,(function(e){return D(e,t)}))},I=function(e){return String(e).trim().split(" ")},M=function(e,t){var n=I(t);return Boolean(I(e.className).find((function(e){return n.indexOf(e)>=0})))},L=function(e){return function(t){return M(t,e)}},B={},N=function(e){return B[e]||(B[e]=function(t){return String(t.nodeName).toLowerCase()===e.toLowerCase()}),B[e]};function H(e,t,n){var o=e;return n<0?o=-e:n>0&&(o=t.scrollWidth-t.offsetWidth-e),o}var K,V=function(){function e(e,t,n){this.element=e,this.ngZone=t,this.renderer=n,this.events={}}return e.prototype.ngOnInit=function(){var e=this;if(this.element&&this.element.nativeElement){var t=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular((function(){for(var n in t)t.hasOwnProperty(n)&&e.subscriptions.push(e.renderer.listen(e.element.nativeElement,n,e.scope?t[n].bind(e.scope):t[n]))}))}},e.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var e=0;e<this.subscriptions.length;e++)this.subscriptions[e]();this.subscriptions=null}},Object(o.__decorate)([Object(i.Input)("kendoEventsOutsideAngular"),Object(o.__metadata)("design:type",Object)],e.prototype,"events",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"scope",void 0),e=Object(o.__decorate)([Object(i.Directive)({selector:"[kendoEventsOutsideAngular]"}),Object(o.__metadata)("design:paramtypes",[i.ElementRef,i.NgZone,i.Renderer2])],e)}(),Z=function(){function e(){}return e=Object(o.__decorate)([Object(i.NgModule)({declarations:[V],exports:[V]})],e)}(),F=function(){function e(e){this.resizeBatchService=e,this.resize=new i.EventEmitter,this.acceptedSize=!1,this.state=0}return e.prototype.acceptSize=function(e){void 0===e&&(e=this.measure()),this.lastWidth=e.width,this.lastHeight=e.height,this.acceptedSize=!0},e.prototype.checkChanges=function(){b()&&0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))},e.prototype.destroy=function(){this.resizeBatchService.cancel(this)},e.prototype.checkSize=function(){if(this.parentElement){var e=this.measure(),t=e.width,n=e.height;if(!(t===this.lastWidth&&n===this.lastHeight))return this.lastWidth=t,this.lastHeight=n,this.acceptedSize=!1,this.resize.emit(),!0}},e.prototype.initSize=function(){var e=this.measure();this.lastWidth=e.width,this.lastHeight=e.height},e.prototype.measure=function(){var e=0,t=0;return this.parentElement&&(t=this.parentElement.offsetHeight,e=this.parentElement.offsetWidth),{height:t,width:e}},e}(),U=function(e){var t=document.createElement("div");return t.style.cssText=e,t},q="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",W=function(e){function t(t,n,o){var i=e.call(this,t)||this;return i.element=n,i.ngZone=o,i}return Object(o.__extends)(t,e),t.prototype.checkChanges=function(){2!==this.state?e.prototype.checkChanges.call(this):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize)},t.prototype.destroy=function(){if(e.prototype.destroy.call(this),this.subscription&&this.subscription.unsubscribe(),this.expand){var t=this.element.nativeElement;t.removeChild(this.expand),t.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null}},t.prototype.checkSize=function(){if(e.prototype.checkSize.call(this))return this.reset(),!0},t.prototype.init=function(){var e,t=this.parentElement=this.element.nativeElement.parentElement;"static"===(e="position",getComputedStyle(t,null).getPropertyValue(e))&&(t.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()},t.prototype.render=function(){var e=this.element.nativeElement;e.style.cssText=q,e.setAttribute("dir","ltr"),this.expand=U(q),this.expandChild=U("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),e.appendChild(this.expand),this.shrink=U(q);var t=U("position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;");this.shrink.appendChild(t),e.appendChild(this.shrink)},t.prototype.reset=function(){var e=this.expandChild;e.style.width="100000px",e.style.height="100000px";var t=this.expand;t.scrollLeft=1e5,t.scrollTop=1e5;var n=this.shrink;n.scrollLeft=1e5,n.scrollTop=1e5},t.prototype.subscribe=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.subscription=Object(g.merge)(Object(g.fromEvent)(e.shrink,"scroll"),Object(g.fromEvent)(e.expand,"scroll")).subscribe((function(){e.checkSize()}))}))},t}(F),Y="undefined"!=typeof ResizeObserver,G=function(e){function t(t,n,o){var i=e.call(this,t)||this;return i.element=n,i.ngZone=o,i}return Object(o.__extends)(t,e),t.supported=function(){return Y},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null},t.prototype.init=function(){var e=this;this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular((function(){e.resizeObserver=new ResizeObserver((function(){e.checkSize()})),e.resizeObserver.observe(e.parentElement)}))},t}(F),X=function(){function e(e){this.ngZone=e,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return e.prototype.schedule=function(e,t){var n=this;this.scheduled.push({instance:e,method:t}),this.subscription||this.ngZone.runOutsideAngular((function(){n.subscription=Object(g.from)(n.resolvedPromise).subscribe(n.flush)}))},e.prototype.isScheduled=function(e){return Boolean(this.scheduled.find((function(t){return t.instance===e})))},e.prototype.cancel=function(e){for(var t=this.scheduled,n=t.length,o=0;o<n;o++)if(t[o].instance===e)return t.splice(o,1),void(t.length||this.unsubscribe())},e.prototype.ngOnDestroy=function(){this.unsubscribe()},e.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},e.prototype.flush=function(){this.scheduled.forEach((function(e){e.method.call(e.instance)})),this.scheduled=[],this.unsubscribe()},e=Object(o.__decorate)([Object(i.Injectable)(),Object(o.__metadata)("design:paramtypes",[i.NgZone])],e)}(),J=function(){function e(e,t,n){var o=this;this.rateLimit=10,this.resize=new i.EventEmitter;var r=G.supported()?G:W;this.resizeService=new r(e,t,n);var s=1e3/(this.rateLimit||10);this.subscription=this.resizeService.resize.pipe(Object(m.auditTime)(s)).subscribe((function(){o.resizeService.acceptedSize||o.resize.emit()}))}return e.prototype.ngAfterViewChecked=function(){this.resizeService.checkChanges()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe(),this.resizeService.destroy()},e.prototype.acceptSize=function(e){this.resizeService.acceptSize(e)},Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"rateLimit",void 0),Object(o.__decorate)([Object(i.Output)(),Object(o.__metadata)("design:type",i.EventEmitter)],e.prototype,"resize",void 0),e=Object(o.__decorate)([Object(i.Component)({selector:"kendo-resize-sensor",template:""}),Object(o.__metadata)("design:paramtypes",[X,i.ElementRef,i.NgZone])],e)}(),$=[J],Q=function(){function e(){}return e=Object(o.__decorate)([Object(i.NgModule)({declarations:[$],exports:[$],providers:[X]})],e)}(),ee=function(){};!function(e){e[e.Alt=18]="Alt",e[e.ArrowDown=40]="ArrowDown",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowUp=38]="ArrowUp",e[e.Backspace=8]="Backspace",e[e.Control=17]="Control",e[e.Delete=46]="Delete",e[e.Digit0=48]="Digit0",e[e.Digit1=49]="Digit1",e[e.Digit2=50]="Digit2",e[e.Digit3=51]="Digit3",e[e.Digit4=52]="Digit4",e[e.Digit5=53]="Digit5",e[e.Digit6=54]="Digit6",e[e.Digit7=55]="Digit7",e[e.Digit8=56]="Digit8",e[e.Digit9=57]="Digit9",e[e.End=35]="End",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F10=121]="F10",e[e.Home=36]="Home",e[e.Insert=45]="Insert",e[e.KeyA=65]="KeyA",e[e.KeyB=66]="KeyB",e[e.KeyC=67]="KeyC",e[e.KeyD=68]="KeyD",e[e.KeyE=69]="KeyE",e[e.KeyF=70]="KeyF",e[e.KeyG=71]="KeyG",e[e.KeyH=72]="KeyH",e[e.KeyI=73]="KeyI",e[e.KeyJ=74]="KeyJ",e[e.KeyK=75]="KeyK",e[e.KeyL=76]="KeyL",e[e.KeyM=77]="KeyM",e[e.KeyN=78]="KeyN",e[e.KeyO=79]="KeyO",e[e.KeyP=80]="KeyP",e[e.KeyQ=81]="KeyQ",e[e.KeyR=82]="KeyR",e[e.KeyS=83]="KeyS",e[e.KeyT=84]="KeyT",e[e.KeyU=85]="KeyU",e[e.KeyV=86]="KeyV",e[e.KeyW=87]="KeyW",e[e.KeyX=88]="KeyX",e[e.KeyY=89]="KeyY",e[e.KeyZ=90]="KeyZ",e[e.NumpadDecimal=110]="NumpadDecimal",e[e.PageDown=34]="PageDown",e[e.PageUp=33]="PageUp",e[e.Shift=16]="Shift",e[e.Space=32]="Space",e[e.Tab=9]="Tab"}(K||(K={}));var te=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}()},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=o},function(e,t,n){"use strict";n.r(t),n.d(t,"AlignService",(function(){return te})),n.d(t,"AnimationService",(function(){return se})),n.d(t,"DOMService",(function(){return Q})),n.d(t,"PositionService",(function(){return ne})),n.d(t,"ResizeService",(function(){return oe})),n.d(t,"ScrollableService",(function(){return ie})),n.d(t,"PopupService",(function(){return le})),n.d(t,"POPUP_CONTAINER",(function(){return ue})),n.d(t,"PopupComponent",(function(){return pe})),n.d(t,"PopupModule",(function(){return he})),n.d(t,"SCALE",(function(){return ee}));var o=n(1),i=n(0),r="bottom",s="center",a="middle",c="left",p="right",u="top",l=function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,i=e.elementAlign,c=e.margin;void 0===c&&(c={});var u=n.horizontal,l=n.vertical,d=i.horizontal,h=i.vertical,f=c.horizontal||0,v=c.vertical||0,m=t.top,g=t.left;return l===r&&(m+=t.height),l!==s&&l!==a||(m+=Math.round(t.height/2)),h===r&&(m-=o.height,v*=-1),h!==s&&h!==a||(m-=Math.round(o.height/2),v*=-1),u===p&&(g+=t.width),u!==s&&u!==a||(g+=Math.round(t.width/2)),d===p&&(g-=o.width,f*=-1),d!==s&&d!==a||(g-=Math.round(o.width/2),f*=-1),{top:m+v,left:g+f}};function d(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}function h(e){return e.ownerDocument||e.document||e}var f=function(e){return h(e).defaultView},v=function(e){return h(e).documentElement},m=0;function g(){if(!m&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",document.body.appendChild(e),m=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return m}function b(e){var t=f(e),n=v(e),o={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=g()),o}var y=function(e){if(!e.getBoundingClientRect){var t=b(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},_=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||v(e)},O=function(e){var t=e.getBoundingClientRect(),n=t.left,o=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,o=t.left,i=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var r=e.getBoundingClientRect();return e.style.display=n,e.style.left=o,e.style.position=i,r}(e)),{top:o,left:n,height:t.height,width:t.width}},w=function(e,t){for(var n=[],o=e.parentNode;o&&(n.push(o),o!==t);)o=o.parentNode;return n};function S(e){var t=v(e),n=f(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var E=function(e){return e===(e.ownerDocument||{}).body?S(e):{x:e.scrollLeft,y:e.scrollTop}};var P=function(e,t){var n=f(e),o=n.getComputedStyle(e),i=O(e),r=t||_(e),s=e.ownerDocument,a=r!==s.body&&r!==s.documentElement,c={top:0,left:0};if("fixed"!==o.position&&a){var p=n.getComputedStyle(r);(c=O(r)).top+=parseInt(p.borderTopWidth,10),c.left+=parseInt(p.borderLeftWidth,10)}return{top:i.top-c.top,left:i.left-c.left,height:i.height,width:i.width}},j=function(e,t){return e?E(e):function(e){var t=_(e);return t?E(t):{x:0,y:0}}(t)},C=function(e,t,n){void 0===n&&(n=1);var o=t?_(t):null,i=P(e,o),r=i.top,s=i.left,a=i.height,c=i.width,p=j(o,e),u=p.x,l=p.y,d=e.ownerDocument,h=o===d.body||o===d.documentElement?1:n;return{top:r+l*h,left:s+u*h,height:a,width:c}};function x(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}var T="fit",k="flip",A=function(e,t,n){var o=0;return e+t>n&&(o=n-(e+t)),e<0&&(o=-e),o},D=function(e){var t=e.offset,n=e.size,o=e.anchorSize,i=e.viewPortSize,r=e.anchorAlignPoint,p=e.elementAlignPoint,l=0,d=2*e.margin;if(p!==r&&!(p===s||p===a)&&!(r===s||r===a)){var h=r===u||r===c;t<0&&h?t+(l=n+o+d)+n>i&&(l=0):t>=0&&!h&&(t+n>i&&(l+=-(o+n+d)),t+l<0&&(l=0))}return l},z=function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,i=e.elementAlign,r=e.collisions,s=e.viewPort,a=e.margin;void 0===a&&(a={});var c=o.top,p=o.left,u=o.height,l=o.width,d=s.height,h=s.width,f=a.horizontal||0,v=a.vertical||0,m=0,g=0,b=r.vertical===T,y=r.horizontal===T,_=r.vertical===k,O=r.horizontal===k;b&&(g+=A(c,u,d)),y&&(m+=A(p,l,h)),_&&(g+=D({margin:v,offset:c,size:u,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:i.vertical})),O&&(m+=D({margin:f,offset:p,size:l,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:i.horizontal}));var w=_&&0!==g,S=O&&0!==m,E=b&&0!==g,P=y&&0!==m;return{flipped:S||w,fitted:E||P,flip:{horizontal:S,vertical:w},fit:{horizontal:P,vertical:E},offset:{left:m,top:g}}},R=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},I=function(e,t){for(var n,o,i=w(e),r=t;r&&(n=R(r),!(o=i.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)r=r.parentElement;return o};M=function(e){if(!N())return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),o},B=!1;var M,L,B,N=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},H=n(2),K=n(3),V=n(4),Z=n(7),F=n(9),U=n(5),q=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},W=function(){return"undefined"!=typeof window},Y=/auto|scroll/,G=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)};var X=function(e){var t,n=!1;return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return n||(t=e.apply(void 0,o),n=!0),t}}((function(){if(!Object(H.isDocumentAvailable)()&&null!==document.body)return!1;var e=document.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(e);var t=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),t})),J=function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},$=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],Q=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.addScroll=function(e,t){return d(e,t)},e.prototype.align=function(e){return l(e)},e.prototype.boundingOffset=function(e){return y(this.nativeElement(e))},e.prototype.getFontStyles=function(e){var t=this.getWindow();if(!t||!e)return[];var n=t.getComputedStyle(this.nativeElement(e));return $.map((function(e){return{key:e,value:n[e]}}))},e.prototype.getWindow=function(){return W()?window:null},e.prototype.hasOffsetParent=function(e){return!!e&&!!this.nativeElement(e).offsetParent},e.prototype.offset=function(e){return e?O(this.nativeElement(e)):null},e.prototype.offsetAtPoint=function(e,t){if(!e)return null;var n=this.nativeElement(e),o=n.style,i=o.left,r=o.top,s=o.transition;n.style.transition="none",n.style.left=t.left+"px",n.style.top=t.top+"px";var a=O(n);return n.style.left=i,n.style.top=r,n.offsetHeight,n.style.transition=s,a},e.prototype.nativeElement=function(e){return e?e.nativeElement||e:null},e.prototype.position=function(e,t,n){return void 0===n&&(n=1),e&&t?C(this.nativeElement(e),this.nativeElement(t),n):null},e.prototype.removeScroll=function(e,t){return x(e,t)},e.prototype.restrictToView=function(e){return z(e)},e.prototype.scrollPosition=function(e){return S(this.nativeElement(e))},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!Object(H.isDocumentAvailable)()||!W())return t;for(var n=e.parentElement;n;)(Y.test(G(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t}(this.nativeElement(e))},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?O(t):null},e.prototype.stackingElementScroll=function(e){var t=this.getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},e.prototype.getRelativeContextElement=function(e){if(!e||!X())return null;for(var t=this.nativeElement(e).parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},e.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},e.prototype.windowViewPort=function(e){return b(this.nativeElement(e))},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!Object(H.isDocumentAvailable)()||!W())return null;var n=I(e,t);if(!n)return null;var o=[e].concat(w(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,o=parseInt(n,10);return o>e?o:e}),0);return o?o+1:null}(this.nativeElement(e),this.nativeElement(t))},e.prototype.zoomLevel=function(){return Object(H.isDocumentAvailable)()&&W()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e=Object(o.__decorate)([Object(i.Injectable)()],e)}(),ee=new i.InjectionToken("Popup Document Scale"),te=function(){function e(e,t){void 0===t&&(t=1),this._dom=e,this.scale=t}return e.prototype.alignElement=function(e){var t=e.anchor,n=e.element,o=e.anchorAlign,i=e.elementAlign,r=e.margin,s=e.offset,a=e.positionMode,c=this.scale||1,p="fixed"===a||!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,s,c):this.relativeRect(t,n,s,c),u=J(this._dom.offset(n),c);return this._dom.align({anchorAlign:o,anchorRect:p,elementAlign:i,elementRect:u,margin:r})},e.prototype.absoluteRect=function(e,t,n,o){var i=this.elementScrollPosition(e,t),r=q(this._dom.offset(e),n),s=2*o,a=this._dom.stackingElementScroll(t);1!==o&&a&&(a.x/=s,a.y/=s);var c=this._dom.stackingElementOffset(t);return 1!==o&&c&&(c.left/=s,c.top/=s),this._dom.removeScroll(this._dom.addScroll(function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e}(J(r,o),c),a),i)},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n,o){var i=q(this._dom.position(e,t,o),n);return J(i,o)},e=Object(o.__decorate)([Object(i.Injectable)(),Object(o.__param)(1,Object(i.Inject)(ee)),Object(o.__param)(1,Object(i.Optional)()),Object(o.__metadata)("design:paramtypes",[Q,Number])],e)}(),ne=function(){function e(e,t){void 0===t&&(t=1),this._dom=e,this.scale=t}return e.prototype.positionElement=function(e){var t=e.anchor,n=e.currentLocation,o=e.element,i=e.anchorAlign,r=e.elementAlign,s=e.collisions,a=e.margin,c=this._dom,p=this.scale||1,u=c.offsetAtPoint(o,n),l=J(u,p),d=J(c.offset(t),p),h=q(d,n),f=e.viewPort||c.windowViewPort(o);f.width=f.width/p,f.height=f.height/p;var v=c.restrictToView({anchorAlign:i,anchorRect:h,collisions:s,elementAlign:r,elementRect:l,margin:a,viewPort:f}),m=c.addOffset(n,v.offset);return{flip:v.flip,flipped:v.flipped,offset:m}},e=Object(o.__decorate)([Object(i.Injectable)(),Object(o.__param)(1,Object(i.Inject)(ee)),Object(o.__param)(1,Object(i.Optional)()),Object(o.__metadata)("design:paramtypes",[Q,Number])],e)}(),oe=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.subscribe=function(e){var t=this;Object(H.isDocumentAvailable)()&&this._zone.runOutsideAngular((function(){t.subscription=Object(K.fromEvent)(t._dom.getWindow(),"resize").pipe(Object(V.auditTime)(1e3/60)).subscribe((function(){return e()}))}))},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},e=Object(o.__decorate)([Object(i.Injectable)(),Object(o.__metadata)("design:paramtypes",[Q,i.NgZone])],e)}(),ie=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.forElement=function(e){return this.unsubscribe(),this.element=e,this},e.prototype.subscribe=function(e){var t=this;if(e&&Object(H.isDocumentAvailable)()&&this.element){var n=this._dom.nativeElement(this.element),o=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular((function(){var i=o.map((function(e){return Object(K.fromEvent)(e,"scroll").pipe(Object(V.auditTime)(1e3/60))}));t.subscription=K.merge.apply(void 0,i).subscribe((function(i){var r=i.target,s=o.filter((function(e){return e===r})).length>0,a=r===document,c=r===window;(s||a||c)&&e(t.isVisible(n,r))}))}))}},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isVisible=function(e,t){var n=this._dom.boundingOffset(e),o=this._dom.boundingOffset(t);return!(1<o.top-n.bottom)&&(!(1<n.top-o.bottom)&&(!(1<n.left-o.right)&&!(1<o.left-n.right)))},e=Object(o.__decorate)([Object(i.Injectable)(),Object(o.__metadata)("design:paramtypes",[Q,i.NgZone])],e)}(),re={expand:function(e){var t="up"===e||"down"===e?"scaleY":"scaleX";return{start:{transform:t+"(0)",transformOrigin:"down"===e?"top":"left"===e?"right":"right"===e?"left":"bottom"},end:{transform:t+"(1)"}}},slide:function(e){var t="left"===e||"right"===e?"translateX":"translateY";return{start:{transform:t+"("+("right"===e||"down"===e?-100:100)+"%)"},end:{transform:t+"(0%)"}}},fade:function(){return{start:{opacity:0},end:{opacity:1}}},zoom:function(){return{start:{transform:"scale(0)"},end:{transform:"scale(1)"}}}},se=function(){function e(e){this.animationBuilder=e,this.start=new i.EventEmitter,this.end=new i.EventEmitter}return e.prototype.play=function(e,t,n){if(!this.flip||this.flip.horizontal!==n.horizontal||this.flip.vertical!==n.vertical){this.flip=n;var o=t.type||"slide",r=re[o];if(r){var s=r(this.getDirection(n,t));this.playStates(e,s,t)}else if(Object(i.isDevMode)())throw new Error('Unsupported animation type: "'+o+'". The supported types are slide, expand, fade and zoom.')}},e.prototype.ngOnDestroy=function(){this.stopPlayer()},e.prototype.playStates=function(e,t,n){var o=this;this.stopPlayer();var i=n.duration||100,r=this.animationBuilder.build([Object(Z.style)(t.start),Object(Z.animate)(i+"ms ease-in",Object(Z.style)(t.end))]),s=this.player=r.create(e);s.onDone((function(){o.end.emit(),o.stopPlayer()})),this.start.emit(),s.play()},e.prototype.getDirection=function(e,t){var n=t.direction||"down";return e.horizontal&&("left"===n?n="right":"right"===n&&(n="left")),e.vertical&&("down"===n?n="up":"up"===n&&(n="down")),n},e.prototype.stopPlayer=function(){this.player&&(this.player.destroy(),this.player=null)},e=Object(o.__decorate)([Object(i.Injectable)(),Object(o.__metadata)("design:paramtypes",[Z.AnimationBuilder])],e)}(),ae={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642583997,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"},ce={left:-1e4,top:0},pe=function(){function e(e,t,n,o,r,s,a,c,p){this.container=e,this._alignService=t,this.domService=n,this._positionService=o,this._resizeService=r,this._scrollableService=s,this.animationService=a,this._renderer=c,this._zone=p,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.copyAnchorStyles=!1,this.positionMode="fixed",this.offset=ce,this.anchorViewportLeave=new i.EventEmitter,this.close=new i.EventEmitter,this.open=new i.EventEmitter,this.positionChange=new i.EventEmitter,this.resolvedPromise=Promise.resolve(null),this.initialCheck=!0,Object(F.validatePackage)(ae),this._renderer.addClass(e.nativeElement,"k-animation-container"),this.updateFixedClass()}return e.prototype.ngOnInit=function(){this.reposition=this.reposition.bind(this),this._resizeService.subscribe(this.reposition),this.animationSubscriptions=this.animationService.start.subscribe(this.onAnimationStart.bind(this)),this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this))),this._scrollableService.forElement(this.anchor||this.container).subscribe(this.onScroll.bind(this)),this.currentOffset=ce,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass(),this.reposition()},e.prototype.ngOnChanges=function(e){e.copyAnchorStyles&&this.copyFontStyles(),e.positionMode&&this.updateFixedClass()},e.prototype.ngAfterViewInit=function(){var e=this;this.animate||this.resolvedPromise.then((function(){e.onAnimationEnd()}))},e.prototype.ngAfterViewChecked=function(){var e=this;this.initialCheck?this.initialCheck=!1:this._zone.runOutsideAngular((function(){e.unsubscribeReposition(),e.repositionSubscription=Object(K.from)(e.resolvedPromise).subscribe(e.reposition)}))},e.prototype.ngOnDestroy=function(){this.anchorViewportLeave.complete(),this.positionChange.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe(),this.animationSubscriptions.unsubscribe(),this.unsubscribeReposition()},e.prototype.onResize=function(){this.reposition()},e.prototype.onAnimationStart=function(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")},e.prototype.onAnimationEnd=function(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()},Object.defineProperty(e.prototype,"currentOffset",{get:function(){return this._currentOffset},set:function(e){this.setContainerStyle("left",e.left+"px"),this.setContainerStyle("top",e.top+"px"),this._currentOffset=e},enumerable:!0,configurable:!0}),e.prototype.setZIndex=function(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.anchor,this.container)))},e.prototype.reposition=function(){var e=this;if(Object(H.isDocumentAvailable)()){var t,n,o,i,r,s,a=this.position(),c=a.flip,p=a.offset;(!this.currentOffset||(t=this.currentOffset,n=p,o=t.left,i=t.top,r=n.left,s=n.top,Math.abs(o-r)>=1||Math.abs(i-s)>=1))&&(this.currentOffset=p,Object(H.hasObservers)(this.positionChange)&&this._zone.run((function(){return e.positionChange.emit({offset:p,flip:c})}))),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,c),this.resizeSensor.acceptSize()}},e.prototype.position=function(){var e=this._alignService.alignElement({anchor:this.anchor,anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.anchor,anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:e,element:this.container,elementAlign:this.popupAlign,margin:this.margin})},e.prototype.onScroll=function(e){var t=this,n=Object(H.hasObservers)(this.anchorViewportLeave);e||!n?this.reposition():n&&this._zone.run((function(){t.anchorViewportLeave.emit()}))},e.prototype.copyFontStyles=function(){var e=this;this.anchor&&this.copyAnchorStyles&&this.domService.getFontStyles(this.anchor).forEach((function(t){return e.setContainerStyle(t.key,t.value)}))},e.prototype.updateFixedClass=function(){var e="fixed"===this.positionMode?"addClass":"removeClass";this._renderer[e](this.container.nativeElement,"k-animation-container-fixed")},e.prototype.setContainerStyle=function(e,t){this._renderer.setStyle(this.container.nativeElement,e,t)},e.prototype.unsubscribeReposition=function(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()},Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"animate",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",i.ElementRef)],e.prototype,"anchor",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"anchorAlign",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"collision",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"popupAlign",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"copyAnchorStyles",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"popupClass",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"positionMode",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"offset",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"margin",void 0),Object(o.__decorate)([Object(i.Output)(),Object(o.__metadata)("design:type",i.EventEmitter)],e.prototype,"anchorViewportLeave",void 0),Object(o.__decorate)([Object(i.Output)(),Object(o.__metadata)("design:type",i.EventEmitter)],e.prototype,"close",void 0),Object(o.__decorate)([Object(i.Output)(),Object(o.__metadata)("design:type",i.EventEmitter)],e.prototype,"open",void 0),Object(o.__decorate)([Object(i.Output)(),Object(o.__metadata)("design:type",i.EventEmitter)],e.prototype,"positionChange",void 0),Object(o.__decorate)([Object(i.ViewChild)("container",{static:!0}),Object(o.__metadata)("design:type",i.ElementRef)],e.prototype,"contentContainer",void 0),Object(o.__decorate)([Object(i.ViewChild)(H.ResizeSensorComponent,{static:!0}),Object(o.__metadata)("design:type",H.ResizeSensorComponent)],e.prototype,"resizeSensor",void 0),e=Object(o.__decorate)([Object(i.Component)({exportAs:"kendo-popup",providers:[te,se,Q,ne,oe,ie],selector:"kendo-popup",template:'\n <div class="k-popup" [ngClass]="popupClass" #container>\n <ng-content></ng-content>\n <ng-template [ngTemplateOutlet]="content" [ngIf]="content"></ng-template>\n <kendo-resize-sensor [rateLimit]="100" (resize)="onResize()">\n </kendo-resize-sensor>\n </div>\n '}),Object(o.__metadata)("design:paramtypes",[i.ElementRef,te,Q,ne,oe,ie,se,i.Renderer2,i.NgZone])],e)}(),ue=new i.InjectionToken("Popup Container"),le=function(){function e(e,t,n,o){this.applicationRef=e,this.componentFactoryResolver=t,this.injector=n,this.container=o}return Object.defineProperty(e.prototype,"rootViewContainer",{get:function(){var e=this.applicationRef.components||[];if(e[0])return e[0];throw new Error("\n View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n ")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rootViewContainerNode",{get:function(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)},enumerable:!0,configurable:!0}),e.prototype.open=function(e){void 0===e&&(e={});var t=this.contentFrom(e.content),n=t.component,o=t.nodes,i=this.appendPopup(o,e.appendTo),r=i.instance;this.projectComponentInputs(i,e),i.changeDetectorRef.detectChanges(),n&&n.changeDetectorRef.detectChanges();var s=this.getComponentRootNode(i);return{close:function(){var e;n&&n.destroy(),i.destroy(),(e=s)&&e.parentNode&&e.parentNode.removeChild(e)},content:n,popup:i,popupAnchorViewportLeave:r.anchorViewportLeave,popupClose:r.close,popupElement:s,popupOpen:r.open,popupPositionChange:r.positionChange}},e.prototype.appendPopup=function(e,t){var n=this.createComponent(pe,e,t);return t||this.rootViewContainerNode.appendChild(this.getComponentRootNode(n)),n},e.prototype.getComponentRootNode=function(e){return e.location.nativeElement},e.prototype.getComponentFactory=function(e){return this.componentFactoryResolver.resolveComponentFactory(e)},e.prototype.createComponent=function(e,t,n){var o=this.getComponentFactory(e);if(n)return n.createComponent(o,void 0,this.injector,t);var i=o.create(this.injector,t);return this.applicationRef.attachView(i.hostView),i},e.prototype.projectComponentInputs=function(e,t){return Object.getOwnPropertyNames(t).filter((function(e){return"content"!==e||t.content instanceof i.TemplateRef})).map((function(n){e.instance[n]=t[n]})),e},e.prototype.contentFrom=function(e){if(!e||e instanceof i.TemplateRef)return{component:null,nodes:[[]]};var t=this.createComponent(e);return{component:t,nodes:[t?[t.location.nativeElement]:[]]}},e=Object(o.__decorate)([Object(i.Injectable)(),Object(o.__param)(3,Object(i.Inject)(ue)),Object(o.__param)(3,Object(i.Optional)()),Object(o.__metadata)("design:paramtypes",[i.ApplicationRef,i.ComponentFactoryResolver,i.Injector,i.ElementRef])],e)}(),de=[pe],he=function(){function e(){}return e=Object(o.__decorate)([Object(i.NgModule)({declarations:[de],entryComponents:[de],exports:[de],imports:[U.CommonModule,H.ResizeSensorModule],providers:[le]})],e)}()},function(e,t){e.exports=i},function(e,t,n){"use strict";function o(e){return 9===e.nodeType}Object.defineProperty(t,"__esModule",{value:!0}),t.align=function(e,t){var n={},o={},i={};switch(e){case"top":n={horizontal:"center",vertical:"top"},o={horizontal:"center",vertical:"bottom"},i={horizontal:0,vertical:t};break;case"bottom":n={horizontal:"center",vertical:"bottom"},o={horizontal:"center",vertical:"top"},i={horizontal:0,vertical:t};break;case"right":n={horizontal:"right",vertical:"center"},o={horizontal:"left",vertical:"center"},i={horizontal:t,vertical:0};break;case"left":n={horizontal:"left",vertical:"center"},o={horizontal:"right",vertical:"center"},i={horizontal:t,vertical:0}}return{anchorAlign:n,popupAlign:o,popupMargin:i}},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 n=Element.prototype.matches?function(e,t){return e.matches(t)}:function(e,t){return e.msMatchesSelector(t)},i=e;i&&!o(i);){if(n(i,t))return i;i=i.parentNode}},t.contains=function(e,t){return!!e&&(!o(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,n){var o=e.getBoundingClientRect();return o[t]+o[n]/2},t.containsItem=function(e,t){return-1!==e.indexOf(t)}},function(e,t,n){"use strict";n.r(t),n.d(t,"setScriptKey",(function(){return p})),n.d(t,"validatePackage",(function(){return u}));var o,i,r=["EMfOwhq=","z3jVDxbfBMq=","B2jQzwn0","u2vLia==","BKDQzKK=","zNvUy3rPB24=","zgf0yq==","D1rPsKq=","z2v0","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","DgLTzxn0yw1W","y29Kzq==","DhLWzq==","C2v0","DMvYC2LVBG==","ChjVzhvJDenVzgvZ","u3PgAeu=","BMfTzq==","sg94tgG=","zun0Beq=","z3jVDxa=","ChjVzhvJDhm=","CgfYC2u=","BfP2zKS=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","Cfj6wKC=","tM8GBgLJzw5ZzsbMB3vUzc4k","ChjVzhvJDe5HBwu=","uwrAy0q=","BefHr0m=","t3jquwq=","s1Ldrvi=","CNvlCgC=","AgfZ","zxHWAxj5rgf0zq==","CgfJA2fNzu5HBwu=","y3LqC08=","CMr1Aui=","CNvHzve=","zg9JC1vYBa==","uhjVz3jLC3mG","ChvIBgLZAerHDgu=","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","D2fYBG==","B3nTvxa=","swTrwfO=","CLfMrLm=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","whv2wMO=","rLbJyLa=","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","C2nYAxb0s2v5","BgLJzw5ZAw5Nrg9JC1vYBa==","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG","EfbArNi=","zMLUza==","Dw5KzwzPBMvK","Dg9mB2nHBgvtDhjPBMC=","BgvUz3rO"];o=r,i=131,function(e){for(;--e;)o.push(o.shift())}(++i);var s=function(e,t){var n=r[e-=0];if(void 0===s.eVebMg){s.JsjtEd=function(e){for(var t=function(e){for(var t,n,o=String(e).replace(/=+$/,""),i="",r=0,s=0;n=o.charAt(s++);~n&&(t=r%4?64*t+n:n,r++%4)?i+=String.fromCharCode(255&t>>(-2*r&6)):0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);return i}(e),n=[],o=0,i=t.length;o<i;o++)n+="%"+("00"+t.charCodeAt(o).toString(16)).slice(-2);return decodeURIComponent(n)},s.rqrXoU={},s.eVebMg=!0}var o=s.rqrXoU[e];return void 0===o?(n=s.JsjtEd(n),s.rqrXoU[e]=n):n=o,n},a={data:' {"timestamp":1635163540,"products":[{"trial":false,"code":"KENDOUIREACT","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUICOMPLETE","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUIVUE","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUIANGULAR","licenseExpirationDate":1642770000}],"integrity":"Iq+/hmrfWBiuOSBY/c3zb/zGgBg="} '},c=new Map;function p(e){}function u(e){if(c[s("0x14")](e[s("0x4")])){if(s("0x35")==s("0x35"))return c[s("0x36")](e[s("0x4")])}var t,n=e[s("0x1")]?" v"+e[s("0x1")]:"",o=e[s("0x4")]+n,i=JSON[s("0x9")](a[s("0x34")]),r=!i[s("0x26")]&&!i[s("0x38")],p=i[s("0x26")]&&typeof KendoLicensing===s("0x2b"),u=function(e,t){var n=e[s("0x8")];if(!n||!n[s("0x2d")]){if(s("0x11")==s("0x11"))return null}var o=new Set(t);return n[s("0x2a")]((function(e){if(s("0xa")!==s("0x18"))return o[s("0x14")](e[s("0x39")])}))}(i,e[s("0x2")]);if(r||p)if(s("0x29")!=s("0x29")){}else t={type:0,packageName:o,docsUrl:e[s("0x27")]};else if(s("0xf")===s("0x24")){}else if(u){if(s("0x12")!=s("0x12")){}else if(u[s("0x37")]<e[s("0x1c")])if(s("0x21")===s("0x32")){}else t={type:2,packageName:o,publishDate:l(e[s("0x1c")]),expiryDate:l(u[s("0x37")]),docsUrl:e[s("0x27")]}}else if(s("0x6")!=s("0x6")){}else t={type:1,packageName:o,docsUrl:e[s("0x27")]};if(t&&typeof console===s("0x30"))if(s("0x5")===s("0x3")){}else{var d=s("0x1b")+e[s("0xe")],h=typeof console[s("0x7")]===s("0x33");if(h)if(s("0xc")!=s("0xc")){}else console[s("0x7")](d);else if(s("0x17")!=s("0x17")){}else console[s("0x1e")](d);if(console[s("0x1e")](function(e){var t=s("0x28")+e[s("0x16")]+"\n";if(2===e[s("0x3a")])if(s("0x20")!=s("0x20")){}else t+=s("0x25")+e[s("0x15")][s("0x2c")]()+s("0xb")+e[s("0x1c")][s("0x2c")]()+".\n";else if(0===e[s("0x3a")])if(s("0x13")!==s("0x10"))t+=s("0xd");else{}else if(1===e[s("0x3a")])if(s("0x2e")===s("0x23")){}else t+=s("0x1d");return t+=s("0x31")+e[s("0x1a")]+s("0x22")}(t)),h)if(s("0x1f")!==s("0x19"))console[s("0x2f")]();else{}}var f=!t;return c[s("0x0")](e[s("0x4")],f),f}function l(e){return new Date(1e3*e)}},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(10),s=n(3),a=n(9),c=n(16),p=n(19),u=n(12),l=n(13),d=n(14),h=function(){function e(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 s.Subscription,this._templateData=function(){return null},a.validatePackage(c.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(i.isDevMode&&"function"!=typeof e)throw new Error(p.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 n=t.rtl;e.direction=n?"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}}},o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"position",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],e.prototype,"offset",null),o.__decorate([i.HostBinding("style.width"),i.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],e.prototype,"width",null),o.__decorate([i.HostBinding("style.height"),i.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],e.prototype,"height",null),o.__decorate([i.HostBinding("attr.dir"),o.__metadata("design:type",String)],e.prototype,"direction",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"title",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"subtitle",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"body",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],e.prototype,"callout",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"animation",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[Function])],e.prototype,"templateData",null),o.__decorate([i.HostBinding("class.k-hidden"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],e.prototype,"isHidden",null),o.__decorate([i.HostBinding("attr.aria-hidden"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],e.prototype,"hasAttributeHidden",null),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"show",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"shown",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"hide",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"hidden",void 0),o.__decorate([i.ContentChild(u.PopoverTitleTemplateDirective,{static:!1}),o.__metadata("design:type",u.PopoverTitleTemplateDirective)],e.prototype,"titleTemplate",void 0),o.__decorate([i.ContentChild(l.PopoverBodyTemplateDirective,{static:!1}),o.__metadata("design:type",l.PopoverBodyTemplateDirective)],e.prototype,"bodyTemplate",void 0),o.__decorate([i.ContentChild(d.PopoverActionsTemplateDirective,{static:!1}),o.__metadata("design:type",d.PopoverActionsTemplateDirective)],e.prototype,"actionsTemplate",void 0),e=o.__decorate([i.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 '}),o.__metadata("design:paramtypes",[r.LocalizationService])],e)}();t.PopoverComponent=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=function(){function e(e){this.templateRef=e}return e=o.__decorate([i.Directive({selector:"[kendoPopoverTitleTemplate]"}),o.__param(0,i.Optional()),o.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PopoverTitleTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=function(){function e(e){this.templateRef=e}return e=o.__decorate([i.Directive({selector:"[kendoPopoverBodyTemplate]"}),o.__param(0,i.Optional()),o.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PopoverBodyTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=function(){function e(e){this.templateRef=e}return e=o.__decorate([i.Directive({selector:"[kendoPopoverActionsTemplate]"}),o.__param(0,i.Optional()),o.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PopoverActionsTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(4),s=n(3),a=n(6),c=n(9),p=n(16),u=n(17),l=n(18),d=n(8),h=function(){function e(e,t,n,o,i,a){var u=this;this.tooltipWrapper=e,this.ngZone=t,this.renderer=n,this.popupService=o,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"],c.validatePackage(p.packageMetadata),Object.assign(this,i,a),this.ngZone.runOutsideAngular((function(){var e=u.tooltipWrapper.nativeElement;u.anchorTitleSubscription=s.fromEvent(e,"mouseover").pipe(r.filter((function(){return""!==u.filter}))).subscribe((function(e){var t=d.closestBySelector(e.target,u.filter);t&&u.hideElementTitle({nativeElement:t})})),u.mouseOverSubscription=s.fromEvent(e,"mouseover").pipe(r.debounceTime(100),r.filter((function(){return""!==u.filter}))).subscribe((function(e){return u.onMouseOver(e)})),u.mouseOutSubscription=s.fromEvent(e,"mouseout").pipe(r.debounceTime(100)).subscribe((function(e){return u.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 n=this.anchor&&this.anchor.nativeElement;e instanceof Element&&(e={nativeElement:e}),n!==e.nativeElement&&this.hide(),n===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 n=this,o=e.instance;this.closeClickSubscription=o.close.subscribe((function(){n.hide()})),this.template?o.templateRef=this.template:o.templateString=this.anchor.nativeElement.getAttribute("data-title"),this.titleTemplate&&(o.titleTemplate=this.titleTemplate),o.closeTitle=this.closeTitle,o.anchor=t,o.callout=this.callout,o.closable=this.closable,o.position=this.position,o.tooltipWidth=this.tooltipWidth,o.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,n=d.align(this.position,this.offset),o=n.anchorAlign,i=n.popupAlign,r=n.popupMargin;this.popupRef=this.popupService.open({anchor:e,anchorAlign:o,animate:!1,content:l.TooltipContentComponent,collision:d.collision(this.collision,this.position),margin:r,popupAlign:i,popupClass:"k-popup-transparent"}),this.renderer.addClass(this.popupRef.popupElement,"k-tooltip-wrapper"),this.tooltipClass&&this.renderer.addClass(this.popupRef.popupElement,this.tooltipClass);var a=this.popupRef.content.instance;a.callout&&(this.popupPositionChangeSubscription=this.popupRef.popupPositionChange.subscribe((function(e){var n=e.flip,o=!0===n.horizontal||!0===n.vertical;a.updateCalloutPosition(t.position,o)}))),"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 n=e.target,o=d.closestBySelector(n,this.filter),i=this.popupRef&&this.popupRef.popupElement;if(i){if(i.contains(n))return;if(this.closable)return}t.contains(n)&&o?this.toggle(o,!0):i&&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,n=e.relatedTarget;n&&this.anchor&&d.contains(this.anchor.nativeElement,n)||n&&d.contains(t,n)||this.hide()}},e.prototype.verifyProperties=function(){if(i.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'.")}},o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"filter",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"position",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef)],e.prototype,"titleTemplate",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"showOn",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],e.prototype,"showAfter",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],e.prototype,"callout",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],e.prototype,"closable",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],e.prototype,"offset",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],e.prototype,"tooltipWidth",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],e.prototype,"tooltipHeight",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"tooltipClass",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"collision",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"closeTitle",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef),o.__metadata("design:paramtypes",[i.TemplateRef])],e.prototype,"tooltipTemplate",null),e=o.__decorate([i.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip"}),o.__param(4,i.Optional()),o.__param(5,i.Optional()),o.__param(5,i.Inject(u.TOOLTIP_SETTINGS)),o.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,i.Renderer2,a.PopupService,u.TooltipSettings,u.TooltipSettings])],e)}();t.TooltipDirective=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-tooltip",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642667921,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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0);t.TOOLTIP_SETTINGS=new i.InjectionToken("kendo-ui-tooltip-settings");var r=function(){function e(){}return e=o.__decorate([i.Injectable()],e)}();t.TooltipSettings=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(10),s=n(8),a=function(){function e(e,t){this.content=e,this.localizationService=t,this.close=new i.EventEmitter,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=function(e,t,n){var o={},i="top"===e||"bottom"===e;return n?("top"===e?o.bottom="unset":"bottom"===e?o.top="unset":"left"===e?o.right="unset":"right"===e&&(o.left="unset"),o[e]=-t+"px",o.transform=i?"rotateX(180deg)":"rotateY(180deg)",o):(o.transform=i?"rotateX(0deg)":"rotateY(0deg)",o)},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 n=t.rtl;return e.direction=n?"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 n=this.content.nativeElement.querySelector(".k-callout"),o="top"===e||"bottom"===e,i=o?"width":"height",r=o?"left":"top",a=o?"marginLeft":"marginTop",c=n.getBoundingClientRect()[i],p=s.getCenterOffset(this.anchor.nativeElement,r,i),u=s.getCenterOffset(this.content.nativeElement,r,i),l=Math.abs(u-p);if(l>1||0===l||0===Math.round(l)){var d=u-p+c/2;n.style[a]=-d+"px"}var h=this.calloutStyles(e,c,t);Object.keys(h).forEach((function(e){n.style[e]=h[e]}))}},o.__decorate([i.HostBinding("attr.dir"),o.__metadata("design:type",String)],e.prototype,"direction",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"close",void 0),o.__decorate([i.HostBinding("class"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],e.prototype,"cssClasses",null),o.__decorate([i.HostBinding("class.k-tooltip-closable"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],e.prototype,"className",null),o.__decorate([i.HostBinding("style.position"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],e.prototype,"cssPosition",null),o.__decorate([i.HostBinding("style.width.px"),i.Input(),o.__metadata("design:type",Number)],e.prototype,"tooltipWidth",void 0),o.__decorate([i.HostBinding("style.height.px"),i.Input(),o.__metadata("design:type",Number)],e.prototype,"tooltipHeight",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef)],e.prototype,"titleTemplate",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.ElementRef)],e.prototype,"anchor",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],e.prototype,"closable",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef)],e.prototype,"templateRef",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"templateString",void 0),e=o.__decorate([i.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"}]}),o.__metadata("design:paramtypes",[i.ElementRef,r.LocalizationService])],e)}();t.TooltipContentComponent=a},function(e,t,n){"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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(2),s=n(6),a=n(4),c=n(8),p=n(21),u=n(23),l=function(e){function t(t,n,o,i,s){var c=e.call(this,n,o,i)||this;return c.wrapperEl=t,c.ngZone=n,c.popupService=o,c.renderer=i,c.popoverService=s,c.mouseenterHandler=function(e){c.controlVisibility(e,!0)},c.mouseleaveHandler=function(e){var t=e.anchor;c.isPrevented(t,!1)||c._hideSub||(c._hideSub=c.popoverService.hidePopover.subscribe((function(e){var t=e[0],n=e[2],o=e[3];t||n||(c.hide(),!n&&o&&c.show(o))})))},c.focusHandler=function(e){c.controlVisibility(e,!0)},c.blurHandler=function(e){var t=e.anchor,n=e.domEvent;if(!c.isPrevented(t,!1)){var o=!!r.closest(n.relatedTarget,(function(e){return e.classList&&e.classList.contains("k-popover")}));o||c.hide(),c._focusInsideSub||(c._focusInsideSub=c.popoverService.isFocusInsidePopover.pipe(a.filter((function(e){return null!==e}))).subscribe((function(e){e||o||c.hide()})))}},c._popoverService=c.popoverService,c}return o.__extends(t,e),t.prototype.show=function(e){this.popupRef||this.openPopup(e)},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 n=c.closestBySelector(t.target,e.filter);e.clickHandler(n,t)}))},t.prototype.subscribeToEvents=function(e){var t=this;Array.from(document.querySelectorAll(this.filter)).forEach((function(n){t.subs.add(t.renderer.listen(n,e[0].name,(function(){t.popoverService.emitAnchorState(!0,n),e[0].handler(n)}))),t.subs.add(t.renderer.listen(n,e[1].name,(function(o){t.popoverService.emitAnchorState(!1,null),e[1].handler({anchor:n,domEvent:o})})))}))},t.prototype.clickHandler=function(e,t){var n=!!r.closest(t.target,(function(e){return e.classList&&e.classList.contains("k-popup")})),o=this.popupRef&&this.popupRef.content.instance.anchor,i=!!r.closest(t.target,(function(t){return t===(o||e)}));"click"!==this.showOn||n||this.popupRef&&i||(e||!this.popupRef?i?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())},o.__decorate([i.Input(),o.__metadata("design:type",String)],t.prototype,"filter",void 0),t=o.__decorate([i.Directive({selector:"[kendoPopoverContainer]",exportAs:"kendoPopoverContainer",providers:[u.PopoverService]}),o.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,s.PopupService,i.Renderer2,u.PopoverService])],t)}(p.PopoverDirectivesBase);t.PopoverContainerDirective=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(4),s=n(2),a=n(19),c=n(22),p=n(8),u=n(11),l=n(3),d=["hover","click","none","focus"],h=function(){function e(e,t,n){this.ngZone=e,this.popupService=t,this.renderer=n,this.subs=new l.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(i.isDevMode)throw new Error(a.ERRORS.popover)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showOn",{get:function(){return this._showOn},set:function(e){if(i.isDevMode&&!p.containsItem(d,e))throw new Error(a.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=this,n=e instanceof i.ElementRef?e.nativeElement:e,o=this.popover instanceof u.PopoverComponent?this.popover:this.popover(n),s=p.align(o.position,o.offset),a=s.anchorAlign,c=s.popupAlign,l=s.popupMargin,d=o.animation;this.ngZone.run((function(){t.popupRef=t.popupService.open({anchor:{nativeElement:n},animate:d,content:u.PopoverComponent,popupAlign:c,anchorAlign:a,margin:l,popupClass:"k-popup-transparent",collision:{horizontal:"fit",vertical:"fit"}});var i=t.popupRef.content.instance;Object.assign(i,o),i.anchor=e,i.contextData=i.templateData(e),i.visible=!0,t.popupRef.content.changeDetectorRef.detectChanges(),t.monitorPopup(),t.initializeFinishingEvents(o,n)})),this.popupRef.popupAnchorViewportLeave.pipe(r.take(1)).subscribe((function(){return t.hide()}))},e.prototype.isPrevented=function(e,t){var n,o=this.popover instanceof u.PopoverComponent?this.popover:this.popover(e);return(n=this.initializeEvents(o,n,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){s.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.initializeEvents=function(e,t,n,o){var i=this;return n?this.ngZone.run((function(n){t=new c.PopoverShowEvent(o),i.popupRef||e.show.emit(t)})):this.ngZone.run((function(n){t=new c.PopoverHideEvent(o,i.popupRef),i.popupRef&&e.hide.emit(t)})),t},e.prototype.initializeFinishingEvents=function(e,t){var n=this;this._popupOpenSub||this.popupRef.popupOpen.subscribe((function(){var o=new c.PopoverShownEvent(t,n.popupRef);e.shown.emit(o)})),this._popupCloseSub||this.popupRef.popupClose.subscribe((function(){n.ngZone.run((function(n){var o=new c.PopoverHiddenEvent(t);e.hidden.emit(o)}))}))},o.__decorate([i.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],e.prototype,"popover",null),o.__decorate([i.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],e.prototype,"showOn",null),e}();t.PopoverDirectivesBase=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(2),r=function(e){function t(t){var n=e.call(this)||this;return n.anchor=t,n}return o.__extends(t,e),t}(i.PreventableEvent);t.PopoverShowEvent=r;var s=function(e){function t(t,n){var o=e.call(this)||this;return o.anchor=t,o.popover=n,o}return o.__extends(t,e),t}(i.PreventableEvent);t.PopoverHideEvent=s;var a=function(e,t){this.anchor=e,this.popover=t};t.PopoverShownEvent=a;var c=function(e){this.anchor=e};t.PopoverHiddenEvent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(3),s=n(4),a=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(n){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 n=this;this._isOrigin=this.originAnchor===t,this.currentAnchor=t,e&&(this.originAnchor=t),this.ngZone.run((function(t){return n._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(n){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 n=t[0],o=t[1];e._hidePopover.next([n,o,e._isOrigin,e.currentAnchor])})))},e=o.__decorate([i.Injectable(),o.__metadata("design:paramtypes",[i.NgZone])],e)}();t.PopoverService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(2),s=n(6),a=n(4),c=n(21),p=n(23),u=function(e){function t(t,n,o,i,s){var c=e.call(this,n,o,i)||this;return c.hostEl=t,c.ngZone=n,c.popupService=o,c.renderer=i,c.popoverService=s,c.mouseenterHandler=function(){c.controlVisibility(c.hostEl.nativeElement,!0)},c.mouseleaveHandler=function(){c.isPrevented(c.hostEl.nativeElement,!1)||c._hideSub||(c._hideSub=c.popoverService.hidePopover.subscribe((function(e){var t=e[0],n=e[1];t||n||c.hide()})))},c.focusHandler=function(){c.controlVisibility(c.hostEl.nativeElement,!0)},c.blurHandler=function(e){var t=e.domEvent;c.isPrevented(c.hostEl.nativeElement,!1)||(!!r.closest(t.relatedTarget,(function(e){return e.classList&&e.classList.contains("k-popover")}))||c.hide(),c._focusInsideSub||(c._focusInsideSub=c.popoverService.isFocusInsidePopover.pipe(a.filter((function(e){return null!==e}))).subscribe((function(e){e||c.hide()}))))},c._popoverService=c.popoverService,c}return o.__extends(t,e),t.prototype.show=function(){this.popupRef||this.openPopup(this.hostEl.nativeElement)},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(n){t.popoverService.emitAnchorState(!1,null),e[1].handler({domEvent:n})})))},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,n=!!r.closest(e.target,(function(e){return e.classList&&e.classList.contains("k-popup")})),o=!!r.closest(e.target,(function(e){return e===t.hostEl.nativeElement}));n||this.popupRef&&o||(o?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=o.__decorate([i.Directive({selector:"[kendoPopoverAnchor]",exportAs:"kendoPopoverAnchor",providers:[p.PopoverService]}),o.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,s.PopupService,i.Renderer2,p.PopoverService])],t)}(c.PopoverDirectivesBase);t.PopoverAnchorDirective=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(5),s=n(15),a=n(6),c=n(18),p=n(28),u=[s.TooltipDirective,c.TooltipContentComponent,p.LocalizedMessagesDirective],l=[a.PopupModule],d=function(){function e(){}return e=o.__decorate([i.NgModule({declarations:[u],entryComponents:[c.TooltipContentComponent],imports:[r.CommonModule].concat(l),exports:[u]})],e)}();t.TooltipModule=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(5),r=n(0),s=n(6),a=n(24),c=n(20),p=n(11),u=n(12),l=n(13),d=[n(14).PopoverActionsTemplateDirective,l.PopoverBodyTemplateDirective,u.PopoverTitleTemplateDirective,a.PopoverAnchorDirective,c.PopoverContainerDirective],h=function(){function e(){}return e=o.__decorate([r.NgModule({declarations:d.concat([p.PopoverComponent]),entryComponents:[p.PopoverComponent],exports:d.concat([p.PopoverComponent]),imports:[i.CommonModule,s.PopupModule]})],e)}();t.PopoverModule=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(15);t.TooltipDirective=o.TooltipDirective;var i=n(17);t.TooltipSettings=i.TooltipSettings,t.TOOLTIP_SETTINGS=i.TOOLTIP_SETTINGS;var r=n(11);t.PopoverComponent=r.PopoverComponent;var s=n(20);t.PopoverContainerDirective=s.PopoverContainerDirective;var a=n(24);t.PopoverAnchorDirective=a.PopoverAnchorDirective;var c=n(12);t.PopoverTitleTemplateDirective=c.PopoverTitleTemplateDirective;var p=n(13);t.PopoverBodyTemplateDirective=p.PopoverBodyTemplateDirective;var u=n(14);t.PopoverActionsTemplateDirective=u.PopoverActionsTemplateDirective;var l=n(22);t.PopoverShowEvent=l.PopoverShowEvent,t.PopoverShownEvent=l.PopoverShownEvent,t.PopoverHideEvent=l.PopoverHideEvent,t.PopoverHiddenEvent=l.PopoverHiddenEvent;var d=n(25);t.TooltipModule=d.TooltipModule;var h=n(26);t.PopoverModule=h.PopoverModule;var f=n(29);t.TooltipsModule=f.TooltipsModule},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(10),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return o.__extends(t,e),n=t,o.__decorate([i.Input(),o.__metadata("design:type",String)],t.prototype,"closeTitle",void 0),t=n=o.__decorate([i.Directive({providers:[{provide:r.ComponentMessages,useExisting:i.forwardRef((function(){return n}))}],selector:"[kendoTooltipLocalizedMessages]"}),o.__metadata("design:paramtypes",[r.LocalizationService])],t)}(r.ComponentMessages);t.LocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(25),s=n(26),a=function(){function e(){}return e=o.__decorate([i.NgModule({exports:[r.TooltipModule,s.PopoverModule]})],e)}();t.TooltipsModule=a}])}));
|
package/dist/cdn/main.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("rxjs/operators"),require("@progress/kendo-angular-popup"),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","rxjs/operators","@progress/kendo-angular-popup","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("rxjs/operators"),require("@progress/kendo-angular-popup"),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["rxjs/operators"],e["@progress/kendo-angular-popup"],e.rxjs,e["@progress/kendo-angular-common"],e["@progress/kendo-angular-l10n"],e["@progress/kendo-licensing"],e["@angular/common"])}(window,(function(e,t,o,n,i,r,s,p,a){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},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 n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)o.d(n,i,function(t){return e[t]}.bind(null,i));return n},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=n},function(e,t){e.exports=i},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={},n={},i={};switch(e){case"top":o={horizontal:"center",vertical:"top"},n={horizontal:"center",vertical:"bottom"},i={horizontal:0,vertical:t};break;case"bottom":o={horizontal:"center",vertical:"bottom"},n={horizontal:"center",vertical:"top"},i={horizontal:0,vertical:t};break;case"right":o={horizontal:"right",vertical:"center"},n={horizontal:"left",vertical:"center"},i={horizontal:t,vertical:0};break;case"left":o={horizontal:"left",vertical:"center"},n={horizontal:"right",vertical:"center"},i={horizontal:t,vertical:0}}return{anchorAlign:o,popupAlign:n,popupMargin:i}},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){var n=e.getBoundingClientRect();return n[t]+n[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 n=o(0),i=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 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 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(i.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}}},n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"position",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],e.prototype,"offset",null),n.__decorate([i.HostBinding("style.width"),i.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"width",null),n.__decorate([i.HostBinding("style.height"),i.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"height",null),n.__decorate([i.HostBinding("attr.dir"),n.__metadata("design:type",String)],e.prototype,"direction",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"title",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"subtitle",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"body",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"callout",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"animation",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"templateData",null),n.__decorate([i.HostBinding("class.k-hidden"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isHidden",null),n.__decorate([i.HostBinding("attr.aria-hidden"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"hasAttributeHidden",null),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"show",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"shown",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"hide",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"hidden",void 0),n.__decorate([i.ContentChild(c.PopoverTitleTemplateDirective,{static:!1}),n.__metadata("design:type",c.PopoverTitleTemplateDirective)],e.prototype,"titleTemplate",void 0),n.__decorate([i.ContentChild(l.PopoverBodyTemplateDirective,{static:!1}),n.__metadata("design:type",l.PopoverBodyTemplateDirective)],e.prototype,"bodyTemplate",void 0),n.__decorate([i.ContentChild(d.PopoverActionsTemplateDirective,{static:!1}),n.__metadata("design:type",d.PopoverActionsTemplateDirective)],e.prototype,"actionsTemplate",void 0),e=n.__decorate([i.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 '}),n.__metadata("design:paramtypes",[r.LocalizationService])],e)}();t.PopoverComponent=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=function(){function e(e){this.templateRef=e}return e=n.__decorate([i.Directive({selector:"[kendoPopoverTitleTemplate]"}),n.__param(0,i.Optional()),n.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PopoverTitleTemplateDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=function(){function e(e){this.templateRef=e}return e=n.__decorate([i.Directive({selector:"[kendoPopoverBodyTemplate]"}),n.__param(0,i.Optional()),n.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PopoverBodyTemplateDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=function(){function e(e){this.templateRef=e}return e=n.__decorate([i.Directive({selector:"[kendoPopoverActionsTemplate]"}),n.__param(0,i.Optional()),n.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PopoverActionsTemplateDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(2),s=o(4),p=o(3),a=o(13),u=o(14),c=o(15),l=o(16),d=o(5),h=function(){function e(e,t,o,n,i,p){var c=this;this.tooltipWrapper=e,this.ngZone=t,this.renderer=o,this.popupService=n,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,i,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,n=e.instance;this.closeClickSubscription=n.close.subscribe((function(){o.hide()})),this.template?n.templateRef=this.template:n.templateString=this.anchor.nativeElement.getAttribute("data-title"),this.titleTemplate&&(n.titleTemplate=this.titleTemplate),n.closeTitle=this.closeTitle,n.anchor=t,n.callout=this.callout,n.closable=this.closable,n.position=this.position,n.tooltipWidth=this.tooltipWidth,n.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),n=o.anchorAlign,i=o.popupAlign,r=o.popupMargin;this.popupRef=this.popupService.open({anchor:e,anchorAlign:n,animate:!1,content:l.TooltipContentComponent,collision:d.collision(this.collision,this.position),margin:r,popupAlign:i,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,n=!0===o.horizontal||!0===o.vertical;p.updateCalloutPosition(t.position,n)}))),"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,n=d.closestBySelector(o,this.filter),i=this.popupRef&&this.popupRef.popupElement;if(i){if(i.contains(o))return;if(this.closable)return}t.contains(o)&&n?this.toggle(n,!0):i&&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(i.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'.")}},n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"filter",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"position",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.TemplateRef)],e.prototype,"titleTemplate",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"showOn",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],e.prototype,"showAfter",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"callout",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"closable",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],e.prototype,"offset",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],e.prototype,"tooltipWidth",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],e.prototype,"tooltipHeight",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"tooltipClass",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"collision",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"closeTitle",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.TemplateRef),n.__metadata("design:paramtypes",[i.TemplateRef])],e.prototype,"tooltipTemplate",null),e=n.__decorate([i.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip"}),n.__param(4,i.Optional()),n.__param(5,i.Optional()),n.__param(5,i.Inject(c.TOOLTIP_SETTINGS)),n.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,i.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:1642590228,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 n=o(0),i=o(1);t.TOOLTIP_SETTINGS=new i.InjectionToken("kendo-ui-tooltip-settings");var r=function(){function e(){}return e=n.__decorate([i.Injectable()],e)}();t.TooltipSettings=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(7),s=o(5),p=function(){function e(e,t){this.content=e,this.localizationService=t,this.close=new i.EventEmitter,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=function(e,t,o){var n={},i="top"===e||"bottom"===e;return o?("top"===e?n.bottom="unset":"bottom"===e?n.top="unset":"left"===e?n.right="unset":"right"===e&&(n.left="unset"),n[e]=-t+"px",n.transform=i?"rotateX(180deg)":"rotateY(180deg)",n):(n.transform=i?"rotateX(0deg)":"rotateY(0deg)",n)},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"),n="top"===e||"bottom"===e,i=n?"width":"height",r=n?"left":"top",p=n?"marginLeft":"marginTop",a=o.getBoundingClientRect()[i],u=s.getCenterOffset(this.anchor.nativeElement,r,i),c=s.getCenterOffset(this.content.nativeElement,r,i),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]}))}},n.__decorate([i.HostBinding("attr.dir"),n.__metadata("design:type",String)],e.prototype,"direction",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"close",void 0),n.__decorate([i.HostBinding("class"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"cssClasses",null),n.__decorate([i.HostBinding("class.k-tooltip-closable"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"className",null),n.__decorate([i.HostBinding("style.position"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"cssPosition",null),n.__decorate([i.HostBinding("style.width.px"),i.Input(),n.__metadata("design:type",Number)],e.prototype,"tooltipWidth",void 0),n.__decorate([i.HostBinding("style.height.px"),i.Input(),n.__metadata("design:type",Number)],e.prototype,"tooltipHeight",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.TemplateRef)],e.prototype,"titleTemplate",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.ElementRef)],e.prototype,"anchor",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"closable",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.TemplateRef)],e.prototype,"templateRef",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"templateString",void 0),e=n.__decorate([i.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"}]}),n.__metadata("design:paramtypes",[i.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 n=o(0),i=o(1),r=o(6),s=o(3),p=o(2),a=o(5),u=o(19),c=o(21),l=function(e){function t(t,o,n,i,s){var a=e.call(this,o,n,i)||this;return a.wrapperEl=t,a.ngZone=o,a.popupService=n,a.renderer=i,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],n=e[3];t||o||(a.hide(),!o&&n&&a.show(n))})))},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 n=!!r.closest(o.relatedTarget,(function(e){return e.classList&&e.classList.contains("k-popover")}));n||a.hide(),a._focusInsideSub||(a._focusInsideSub=a.popoverService.isFocusInsidePopover.pipe(p.filter((function(e){return null!==e}))).subscribe((function(e){e||n||a.hide()})))}},a._popoverService=a.popoverService,a}return n.__extends(t,e),t.prototype.show=function(e){this.popupRef||this.openPopup(e)},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;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(n){t.popoverService.emitAnchorState(!1,null),e[1].handler({anchor:o,domEvent:n})})))}))},t.prototype.clickHandler=function(e,t){var o=!!r.closest(t.target,(function(e){return e.classList&&e.classList.contains("k-popup")})),n=this.popupRef&&this.popupRef.content.instance.anchor,i=!!r.closest(t.target,(function(t){return t===(n||e)}));"click"!==this.showOn||o||this.popupRef&&i||(e||!this.popupRef?i?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())},n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"filter",void 0),t=n.__decorate([i.Directive({selector:"[kendoPopoverContainer]",exportAs:"kendoPopoverContainer",providers:[c.PopoverService]}),n.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,s.PopupService,i.Renderer2,c.PopoverService])],t)}(u.PopoverDirectivesBase);t.PopoverContainerDirective=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(2),s=o(6),p=o(17),a=o(20),u=o(5),c=o(8),l=o(4),d=["hover","click","none","focus"],h=function(){function e(e,t,o){this.ngZone=e,this.popupService=t,this.renderer=o,this.subs=new l.Subscription,this._showOn="click"}return Object.defineProperty(e.prototype,"popover",{get:function(){return this._popover},set:function(e){if(e instanceof c.PopoverComponent||"function"==typeof e)this._popover=e;else if(i.isDevMode)throw new Error(p.ERRORS.popover)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showOn",{get:function(){return this._showOn},set:function(e){if(i.isDevMode&&!u.containsItem(d,e))throw new Error(p.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=this,o=e instanceof i.ElementRef?e.nativeElement:e,n=this.popover instanceof c.PopoverComponent?this.popover:this.popover(o),s=u.align(n.position,n.offset),p=s.anchorAlign,a=s.popupAlign,l=s.popupMargin,d=n.animation;this.ngZone.run((function(){t.popupRef=t.popupService.open({anchor:{nativeElement:o},animate:d,content:c.PopoverComponent,popupAlign:a,anchorAlign:p,margin:l,popupClass:"k-popup-transparent",collision:{horizontal:"fit",vertical:"fit"}});var i=t.popupRef.content.instance;Object.assign(i,n),i.anchor=e,i.contextData=i.templateData(e),i.visible=!0,t.popupRef.content.changeDetectorRef.detectChanges(),t.monitorPopup(),t.initializeFinishingEvents(n,o)})),this.popupRef.popupAnchorViewportLeave.pipe(r.take(1)).subscribe((function(){return t.hide()}))},e.prototype.isPrevented=function(e,t){var o,n=this.popover instanceof c.PopoverComponent?this.popover:this.popover(e);return(o=this.initializeEvents(n,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){s.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.initializeEvents=function(e,t,o,n){var i=this;return o?this.ngZone.run((function(o){t=new a.PopoverShowEvent(n),i.popupRef||e.show.emit(t)})):this.ngZone.run((function(o){t=new a.PopoverHideEvent(n,i.popupRef),i.popupRef&&e.hide.emit(t)})),t},e.prototype.initializeFinishingEvents=function(e,t){var o=this;this._popupOpenSub||this.popupRef.popupOpen.subscribe((function(){var n=new a.PopoverShownEvent(t,o.popupRef);e.shown.emit(n)})),this._popupCloseSub||this.popupRef.popupClose.subscribe((function(){o.ngZone.run((function(o){var n=new a.PopoverHiddenEvent(t);e.hidden.emit(n)}))}))},n.__decorate([i.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"popover",null),n.__decorate([i.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"showOn",null),e}();t.PopoverDirectivesBase=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(6),r=function(e){function t(t){var o=e.call(this)||this;return o.anchor=t,o}return n.__extends(t,e),t}(i.PreventableEvent);t.PopoverShowEvent=r;var s=function(e){function t(t,o){var n=e.call(this)||this;return n.anchor=t,n.popover=o,n}return n.__extends(t,e),t}(i.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 n=o(0),i=o(1),r=o(4),s=o(2),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],n=t[1];e._hidePopover.next([o,n,e._isOrigin,e.currentAnchor])})))},e=n.__decorate([i.Injectable(),n.__metadata("design:paramtypes",[i.NgZone])],e)}();t.PopoverService=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(6),s=o(3),p=o(2),a=o(19),u=o(21),c=function(e){function t(t,o,n,i,s){var a=e.call(this,o,n,i)||this;return a.hostEl=t,a.ngZone=o,a.popupService=n,a.renderer=i,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 n.__extends(t,e),t.prototype.show=function(){this.popupRef||this.openPopup(this.hostEl.nativeElement)},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")})),n=!!r.closest(e.target,(function(e){return e===t.hostEl.nativeElement}));o||this.popupRef&&n||(n?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=n.__decorate([i.Directive({selector:"[kendoPopoverAnchor]",exportAs:"kendoPopoverAnchor",providers:[u.PopoverService]}),n.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,s.PopupService,i.Renderer2,u.PopoverService])],t)}(a.PopoverDirectivesBase);t.PopoverAnchorDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(24),s=o(12),p=o(3),a=o(16),u=o(27),c=[s.TooltipDirective,a.TooltipContentComponent,u.LocalizedMessagesDirective],l=[p.PopupModule],d=function(){function e(){}return e=n.__decorate([i.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 n=o(0),i=o(24),r=o(1),s=o(3),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=n.__decorate([r.NgModule({declarations:d.concat([u.PopoverComponent]),entryComponents:[u.PopoverComponent],exports:d.concat([u.PopoverComponent]),imports:[i.CommonModule,s.PopupModule]})],e)}();t.PopoverModule=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(12);t.TooltipDirective=n.TooltipDirective;var i=o(15);t.TooltipSettings=i.TooltipSettings,t.TOOLTIP_SETTINGS=i.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 n=o(0),i=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 n.__extends(t,e),o=t,n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"closeTitle",void 0),t=o=n.__decorate([i.Directive({providers:[{provide:r.ComponentMessages,useExisting:i.forwardRef((function(){return o}))}],selector:"[kendoTooltipLocalizedMessages]"}),n.__metadata("design:paramtypes",[r.LocalizationService])],t)}(r.ComponentMessages);t.LocalizedMessagesDirective=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(23),s=o(25),p=function(){function e(){}return e=n.__decorate([i.NgModule({exports:[r.TooltipModule,s.PopoverModule]})],e)}();t.TooltipsModule=p}])}));
|
|
5
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("rxjs/operators"),require("@progress/kendo-angular-popup"),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","rxjs/operators","@progress/kendo-angular-popup","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("rxjs/operators"),require("@progress/kendo-angular-popup"),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["rxjs/operators"],e["@progress/kendo-angular-popup"],e.rxjs,e["@progress/kendo-angular-common"],e["@progress/kendo-angular-l10n"],e["@progress/kendo-licensing"],e["@angular/common"])}(window,(function(e,t,o,n,i,r,s,p,a){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},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 n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)o.d(n,i,function(t){return e[t]}.bind(null,i));return n},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=n},function(e,t){e.exports=i},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={},n={},i={};switch(e){case"top":o={horizontal:"center",vertical:"top"},n={horizontal:"center",vertical:"bottom"},i={horizontal:0,vertical:t};break;case"bottom":o={horizontal:"center",vertical:"bottom"},n={horizontal:"center",vertical:"top"},i={horizontal:0,vertical:t};break;case"right":o={horizontal:"right",vertical:"center"},n={horizontal:"left",vertical:"center"},i={horizontal:t,vertical:0};break;case"left":o={horizontal:"left",vertical:"center"},n={horizontal:"right",vertical:"center"},i={horizontal:t,vertical:0}}return{anchorAlign:o,popupAlign:n,popupMargin:i}},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){var n=e.getBoundingClientRect();return n[t]+n[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 n=o(0),i=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 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 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(i.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}}},n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"position",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],e.prototype,"offset",null),n.__decorate([i.HostBinding("style.width"),i.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"width",null),n.__decorate([i.HostBinding("style.height"),i.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"height",null),n.__decorate([i.HostBinding("attr.dir"),n.__metadata("design:type",String)],e.prototype,"direction",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"title",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"subtitle",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"body",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"callout",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"animation",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"templateData",null),n.__decorate([i.HostBinding("class.k-hidden"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isHidden",null),n.__decorate([i.HostBinding("attr.aria-hidden"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"hasAttributeHidden",null),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"show",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"shown",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"hide",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"hidden",void 0),n.__decorate([i.ContentChild(c.PopoverTitleTemplateDirective,{static:!1}),n.__metadata("design:type",c.PopoverTitleTemplateDirective)],e.prototype,"titleTemplate",void 0),n.__decorate([i.ContentChild(l.PopoverBodyTemplateDirective,{static:!1}),n.__metadata("design:type",l.PopoverBodyTemplateDirective)],e.prototype,"bodyTemplate",void 0),n.__decorate([i.ContentChild(d.PopoverActionsTemplateDirective,{static:!1}),n.__metadata("design:type",d.PopoverActionsTemplateDirective)],e.prototype,"actionsTemplate",void 0),e=n.__decorate([i.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 '}),n.__metadata("design:paramtypes",[r.LocalizationService])],e)}();t.PopoverComponent=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=function(){function e(e){this.templateRef=e}return e=n.__decorate([i.Directive({selector:"[kendoPopoverTitleTemplate]"}),n.__param(0,i.Optional()),n.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PopoverTitleTemplateDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=function(){function e(e){this.templateRef=e}return e=n.__decorate([i.Directive({selector:"[kendoPopoverBodyTemplate]"}),n.__param(0,i.Optional()),n.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PopoverBodyTemplateDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=function(){function e(e){this.templateRef=e}return e=n.__decorate([i.Directive({selector:"[kendoPopoverActionsTemplate]"}),n.__param(0,i.Optional()),n.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PopoverActionsTemplateDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(2),s=o(4),p=o(3),a=o(13),u=o(14),c=o(15),l=o(16),d=o(5),h=function(){function e(e,t,o,n,i,p){var c=this;this.tooltipWrapper=e,this.ngZone=t,this.renderer=o,this.popupService=n,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,i,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,n=e.instance;this.closeClickSubscription=n.close.subscribe((function(){o.hide()})),this.template?n.templateRef=this.template:n.templateString=this.anchor.nativeElement.getAttribute("data-title"),this.titleTemplate&&(n.titleTemplate=this.titleTemplate),n.closeTitle=this.closeTitle,n.anchor=t,n.callout=this.callout,n.closable=this.closable,n.position=this.position,n.tooltipWidth=this.tooltipWidth,n.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),n=o.anchorAlign,i=o.popupAlign,r=o.popupMargin;this.popupRef=this.popupService.open({anchor:e,anchorAlign:n,animate:!1,content:l.TooltipContentComponent,collision:d.collision(this.collision,this.position),margin:r,popupAlign:i,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,n=!0===o.horizontal||!0===o.vertical;p.updateCalloutPosition(t.position,n)}))),"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,n=d.closestBySelector(o,this.filter),i=this.popupRef&&this.popupRef.popupElement;if(i){if(i.contains(o))return;if(this.closable)return}t.contains(o)&&n?this.toggle(n,!0):i&&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(i.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'.")}},n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"filter",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"position",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.TemplateRef)],e.prototype,"titleTemplate",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"showOn",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],e.prototype,"showAfter",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"callout",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"closable",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],e.prototype,"offset",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],e.prototype,"tooltipWidth",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],e.prototype,"tooltipHeight",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"tooltipClass",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"collision",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"closeTitle",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.TemplateRef),n.__metadata("design:paramtypes",[i.TemplateRef])],e.prototype,"tooltipTemplate",null),e=n.__decorate([i.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip"}),n.__param(4,i.Optional()),n.__param(5,i.Optional()),n.__param(5,i.Inject(c.TOOLTIP_SETTINGS)),n.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,i.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:1642667921,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 n=o(0),i=o(1);t.TOOLTIP_SETTINGS=new i.InjectionToken("kendo-ui-tooltip-settings");var r=function(){function e(){}return e=n.__decorate([i.Injectable()],e)}();t.TooltipSettings=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(7),s=o(5),p=function(){function e(e,t){this.content=e,this.localizationService=t,this.close=new i.EventEmitter,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=function(e,t,o){var n={},i="top"===e||"bottom"===e;return o?("top"===e?n.bottom="unset":"bottom"===e?n.top="unset":"left"===e?n.right="unset":"right"===e&&(n.left="unset"),n[e]=-t+"px",n.transform=i?"rotateX(180deg)":"rotateY(180deg)",n):(n.transform=i?"rotateX(0deg)":"rotateY(0deg)",n)},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"),n="top"===e||"bottom"===e,i=n?"width":"height",r=n?"left":"top",p=n?"marginLeft":"marginTop",a=o.getBoundingClientRect()[i],u=s.getCenterOffset(this.anchor.nativeElement,r,i),c=s.getCenterOffset(this.content.nativeElement,r,i),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]}))}},n.__decorate([i.HostBinding("attr.dir"),n.__metadata("design:type",String)],e.prototype,"direction",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"close",void 0),n.__decorate([i.HostBinding("class"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"cssClasses",null),n.__decorate([i.HostBinding("class.k-tooltip-closable"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"className",null),n.__decorate([i.HostBinding("style.position"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"cssPosition",null),n.__decorate([i.HostBinding("style.width.px"),i.Input(),n.__metadata("design:type",Number)],e.prototype,"tooltipWidth",void 0),n.__decorate([i.HostBinding("style.height.px"),i.Input(),n.__metadata("design:type",Number)],e.prototype,"tooltipHeight",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.TemplateRef)],e.prototype,"titleTemplate",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.ElementRef)],e.prototype,"anchor",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"closable",void 0),n.__decorate([i.Input(),n.__metadata("design:type",i.TemplateRef)],e.prototype,"templateRef",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"templateString",void 0),e=n.__decorate([i.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"}]}),n.__metadata("design:paramtypes",[i.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 n=o(0),i=o(1),r=o(6),s=o(3),p=o(2),a=o(5),u=o(19),c=o(21),l=function(e){function t(t,o,n,i,s){var a=e.call(this,o,n,i)||this;return a.wrapperEl=t,a.ngZone=o,a.popupService=n,a.renderer=i,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],n=e[3];t||o||(a.hide(),!o&&n&&a.show(n))})))},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 n=!!r.closest(o.relatedTarget,(function(e){return e.classList&&e.classList.contains("k-popover")}));n||a.hide(),a._focusInsideSub||(a._focusInsideSub=a.popoverService.isFocusInsidePopover.pipe(p.filter((function(e){return null!==e}))).subscribe((function(e){e||n||a.hide()})))}},a._popoverService=a.popoverService,a}return n.__extends(t,e),t.prototype.show=function(e){this.popupRef||this.openPopup(e)},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;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(n){t.popoverService.emitAnchorState(!1,null),e[1].handler({anchor:o,domEvent:n})})))}))},t.prototype.clickHandler=function(e,t){var o=!!r.closest(t.target,(function(e){return e.classList&&e.classList.contains("k-popup")})),n=this.popupRef&&this.popupRef.content.instance.anchor,i=!!r.closest(t.target,(function(t){return t===(n||e)}));"click"!==this.showOn||o||this.popupRef&&i||(e||!this.popupRef?i?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())},n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"filter",void 0),t=n.__decorate([i.Directive({selector:"[kendoPopoverContainer]",exportAs:"kendoPopoverContainer",providers:[c.PopoverService]}),n.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,s.PopupService,i.Renderer2,c.PopoverService])],t)}(u.PopoverDirectivesBase);t.PopoverContainerDirective=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(2),s=o(6),p=o(17),a=o(20),u=o(5),c=o(8),l=o(4),d=["hover","click","none","focus"],h=function(){function e(e,t,o){this.ngZone=e,this.popupService=t,this.renderer=o,this.subs=new l.Subscription,this._showOn="click"}return Object.defineProperty(e.prototype,"popover",{get:function(){return this._popover},set:function(e){if(e instanceof c.PopoverComponent||"function"==typeof e)this._popover=e;else if(i.isDevMode)throw new Error(p.ERRORS.popover)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showOn",{get:function(){return this._showOn},set:function(e){if(i.isDevMode&&!u.containsItem(d,e))throw new Error(p.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=this,o=e instanceof i.ElementRef?e.nativeElement:e,n=this.popover instanceof c.PopoverComponent?this.popover:this.popover(o),s=u.align(n.position,n.offset),p=s.anchorAlign,a=s.popupAlign,l=s.popupMargin,d=n.animation;this.ngZone.run((function(){t.popupRef=t.popupService.open({anchor:{nativeElement:o},animate:d,content:c.PopoverComponent,popupAlign:a,anchorAlign:p,margin:l,popupClass:"k-popup-transparent",collision:{horizontal:"fit",vertical:"fit"}});var i=t.popupRef.content.instance;Object.assign(i,n),i.anchor=e,i.contextData=i.templateData(e),i.visible=!0,t.popupRef.content.changeDetectorRef.detectChanges(),t.monitorPopup(),t.initializeFinishingEvents(n,o)})),this.popupRef.popupAnchorViewportLeave.pipe(r.take(1)).subscribe((function(){return t.hide()}))},e.prototype.isPrevented=function(e,t){var o,n=this.popover instanceof c.PopoverComponent?this.popover:this.popover(e);return(o=this.initializeEvents(n,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){s.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.initializeEvents=function(e,t,o,n){var i=this;return o?this.ngZone.run((function(o){t=new a.PopoverShowEvent(n),i.popupRef||e.show.emit(t)})):this.ngZone.run((function(o){t=new a.PopoverHideEvent(n,i.popupRef),i.popupRef&&e.hide.emit(t)})),t},e.prototype.initializeFinishingEvents=function(e,t){var o=this;this._popupOpenSub||this.popupRef.popupOpen.subscribe((function(){var n=new a.PopoverShownEvent(t,o.popupRef);e.shown.emit(n)})),this._popupCloseSub||this.popupRef.popupClose.subscribe((function(){o.ngZone.run((function(o){var n=new a.PopoverHiddenEvent(t);e.hidden.emit(n)}))}))},n.__decorate([i.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"popover",null),n.__decorate([i.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"showOn",null),e}();t.PopoverDirectivesBase=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(6),r=function(e){function t(t){var o=e.call(this)||this;return o.anchor=t,o}return n.__extends(t,e),t}(i.PreventableEvent);t.PopoverShowEvent=r;var s=function(e){function t(t,o){var n=e.call(this)||this;return n.anchor=t,n.popover=o,n}return n.__extends(t,e),t}(i.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 n=o(0),i=o(1),r=o(4),s=o(2),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],n=t[1];e._hidePopover.next([o,n,e._isOrigin,e.currentAnchor])})))},e=n.__decorate([i.Injectable(),n.__metadata("design:paramtypes",[i.NgZone])],e)}();t.PopoverService=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(6),s=o(3),p=o(2),a=o(19),u=o(21),c=function(e){function t(t,o,n,i,s){var a=e.call(this,o,n,i)||this;return a.hostEl=t,a.ngZone=o,a.popupService=n,a.renderer=i,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 n.__extends(t,e),t.prototype.show=function(){this.popupRef||this.openPopup(this.hostEl.nativeElement)},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")})),n=!!r.closest(e.target,(function(e){return e===t.hostEl.nativeElement}));o||this.popupRef&&n||(n?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=n.__decorate([i.Directive({selector:"[kendoPopoverAnchor]",exportAs:"kendoPopoverAnchor",providers:[u.PopoverService]}),n.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,s.PopupService,i.Renderer2,u.PopoverService])],t)}(a.PopoverDirectivesBase);t.PopoverAnchorDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(24),s=o(12),p=o(3),a=o(16),u=o(27),c=[s.TooltipDirective,a.TooltipContentComponent,u.LocalizedMessagesDirective],l=[p.PopupModule],d=function(){function e(){}return e=n.__decorate([i.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 n=o(0),i=o(24),r=o(1),s=o(3),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=n.__decorate([r.NgModule({declarations:d.concat([u.PopoverComponent]),entryComponents:[u.PopoverComponent],exports:d.concat([u.PopoverComponent]),imports:[i.CommonModule,s.PopupModule]})],e)}();t.PopoverModule=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(12);t.TooltipDirective=n.TooltipDirective;var i=o(15);t.TooltipSettings=i.TooltipSettings,t.TOOLTIP_SETTINGS=i.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 n=o(0),i=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 n.__extends(t,e),o=t,n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"closeTitle",void 0),t=o=n.__decorate([i.Directive({providers:[{provide:r.ComponentMessages,useExisting:i.forwardRef((function(){return o}))}],selector:"[kendoTooltipLocalizedMessages]"}),n.__metadata("design:paramtypes",[r.LocalizationService])],t)}(r.ComponentMessages);t.LocalizedMessagesDirective=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(23),s=o(25),p=function(){function e(){}return e=n.__decorate([i.NgModule({exports:[r.TooltipModule,s.PopoverModule]})],e)}();t.TooltipsModule=p}])}));
|
|
@@ -9,7 +9,7 @@ export var packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-tooltip',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1642667921,
|
|
13
13
|
version: '',
|
|
14
14
|
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'
|
|
15
15
|
};
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-tooltip',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1642667921,
|
|
13
13
|
version: '',
|
|
14
14
|
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'
|
|
15
15
|
};
|
package/dist/fesm2015/index.js
CHANGED
|
@@ -19,7 +19,7 @@ const packageMetadata = {
|
|
|
19
19
|
name: '@progress/kendo-angular-tooltip',
|
|
20
20
|
productName: 'Kendo UI for Angular',
|
|
21
21
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
22
|
-
publishDate:
|
|
22
|
+
publishDate: 1642667921,
|
|
23
23
|
version: '',
|
|
24
24
|
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'
|
|
25
25
|
};
|
package/dist/fesm5/index.js
CHANGED
|
@@ -19,7 +19,7 @@ var packageMetadata = {
|
|
|
19
19
|
name: '@progress/kendo-angular-tooltip',
|
|
20
20
|
productName: 'Kendo UI for Angular',
|
|
21
21
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
22
|
-
publishDate:
|
|
22
|
+
publishDate: 1642667921,
|
|
23
23
|
version: '',
|
|
24
24
|
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'
|
|
25
25
|
};
|
|
@@ -11,7 +11,7 @@ exports.packageMetadata = {
|
|
|
11
11
|
name: '@progress/kendo-angular-tooltip',
|
|
12
12
|
productName: 'Kendo UI for Angular',
|
|
13
13
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
14
|
-
publishDate:
|
|
14
|
+
publishDate: 1642667921,
|
|
15
15
|
version: '',
|
|
16
16
|
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'
|
|
17
17
|
};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
System.register("@progress/kendo-angular-tooltip",["@angular/core","tslib","@progress/kendo-angular-popup","@angular/common","@progress/kendo-angular-common","rxjs/operators","@progress/kendo-licensing","rxjs","@progress/kendo-angular-l10n"],function(r){var s,p,a,c,u,l,d,h,v;function t(e){return e.__useDefault?e.default:e}return{setters:[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)},function(e){v=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=p},function(e,t){e.exports=s},function(e,t){e.exports=a},function(e,t){e.exports=l},function(e,t){e.exports=u},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=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),o=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=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),o=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=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),o=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=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(11),s=o(6),p=o(24),a=o(23),c=o(20),u=o(9),l=o(8),o=o(7),r=(Object.defineProperty(d.prototype,"offset",{get:function(){return this.callout?14+this._offset:this._offset},set:function(e){this._offset=e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"width",{get:function(){return this._width},set:function(e){this._width="number"==typeof e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"height",{get:function(){return this._height},set:function(e){this._height="number"==typeof e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"templateData",{get:function(){return this._templateData},set:function(e){if(n.isDevMode&&"function"!=typeof e)throw new Error(c.ERRORS.templateData+" "+JSON.stringify(e)+".");this._templateData=e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"isHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasAttributeHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),d.prototype.ngOnInit=function(){var t=this;this.subs.add(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"}))},d.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},d.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)],d.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],d.prototype,"offset",null),i.__decorate([n.HostBinding("style.width"),n.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],d.prototype,"width",null),i.__decorate([n.HostBinding("style.height"),n.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],d.prototype,"height",null),i.__decorate([n.HostBinding("attr.dir"),i.__metadata("design:type",String)],d.prototype,"direction",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"title",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"subtitle",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"body",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],d.prototype,"callout",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],d.prototype,"animation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],d.prototype,"templateData",null),i.__decorate([n.HostBinding("class.k-hidden"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],d.prototype,"isHidden",null),i.__decorate([n.HostBinding("attr.aria-hidden"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],d.prototype,"hasAttributeHidden",null),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],d.prototype,"show",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],d.prototype,"shown",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],d.prototype,"hide",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],d.prototype,"hidden",void 0),i.__decorate([n.ContentChild(u.PopoverTitleTemplateDirective,{static:!1}),i.__metadata("design:type",u.PopoverTitleTemplateDirective)],d.prototype,"titleTemplate",void 0),i.__decorate([n.ContentChild(l.PopoverBodyTemplateDirective,{static:!1}),i.__metadata("design:type",l.PopoverBodyTemplateDirective)],d.prototype,"bodyTemplate",void 0),i.__decorate([n.ContentChild(o.PopoverActionsTemplateDirective,{static:!1}),i.__metadata("design:type",o.PopoverActionsTemplateDirective)],d.prototype,"actionsTemplate",void 0),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])],d));function d(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)}t.PopoverComponent=r},function(e,t){e.exports=v},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(13),r=o(1),s=o(2),p=o(15),a=o(19),c=o(10),u=o(9),l=o(8),a=[o(7).PopoverActionsTemplateDirective,l.PopoverBodyTemplateDirective,u.PopoverTitleTemplateDirective,p.PopoverAnchorDirective,a.PopoverContainerDirective],s=i.__decorate([r.NgModule({declarations:a.concat([c.PopoverComponent]),entryComponents:[c.PopoverComponent],exports:a.concat([c.PopoverComponent]),imports:[n.CommonModule,s.PopupModule]})],d);function d(){}t.PopoverModule=s},function(e,t){e.exports=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(13),s=o(25),p=o(2),a=o(21),o=o(27),o=[s.TooltipDirective,a.TooltipContentComponent,o.LocalizedMessagesDirective],p=[p.PopupModule],o=i.__decorate([n.NgModule({declarations:[o],entryComponents:[a.TooltipContentComponent],imports:[r.CommonModule].concat(p),exports:[o]})],c);function c(){}t.TooltipModule=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,i=o(0),n=o(1),p=o(4),r=o(2),a=o(3),c=o(18),o=o(16),o=(s=c.PopoverDirectivesBase,i.__extends(u,s),u.prototype.show=function(){this.popupRef||this.openPopup(this.hostEl.nativeElement)},u.prototype.toggle=function(){this.popupRef?this.hide():this.show()},u.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})}))},u.prototype.subscribeClick=function(){var t=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",function(e){t.onClick(e)})},u.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))},u.prototype.controlVisibility=function(e,t){this.isPrevented(e,t)||(t?this.show():this.hide())},i.__decorate([n.Directive({selector:"[kendoPopoverAnchor]",exportAs:"kendoPopoverAnchor",providers:[o.PopoverService]}),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,r.PopupService,n.Renderer2,o.PopoverService])],u));function u(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}t.PopoverAnchorDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(6),s=o(3),n=(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=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(4),o=(i=r.PreventableEvent,n.__extends(s,i),s);function s(e){var t=i.call(this)||this;return t.anchor=e,t}t.PopoverShowEvent=o;var p,n=(p=r.PreventableEvent,n.__extends(a,p),a);function a(e,t){var o=p.call(this)||this;return o.anchor=e,o.popover=t,o}t.PopoverHideEvent=n,t.PopoverShownEvent=function(e,t){this.anchor=e,this.popover=t},t.PopoverHiddenEvent=function(e){this.anchor=e}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),c=o(1),u=o(3),n=o(4),r=o(20),s=o(17),l=o(5),d=o(10),p=o(6),a=["hover","click","none","focus"],i=(Object.defineProperty(h.prototype,"popover",{get:function(){return this._popover},set:function(e){if(e instanceof d.PopoverComponent||"function"==typeof e)this._popover=e;else if(c.isDevMode)throw new Error(r.ERRORS.popover)},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"showOn",{get:function(){return this._showOn},set:function(e){if(c.isDevMode&&!l.containsItem(a,e))throw new Error(r.ERRORS.showOn);this._showOn=e},enumerable:!0,configurable:!0}),h.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()}})},h.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()},h.prototype.hide=function(){this.closePopup()},h.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.disposePopupHoverOutListener&&this.disposePopupHoverOutListener(),this.disposePopupHoverInListener&&this.disposePopupHoverInListener(),this.disposePopupFocusOutListener&&this.disposePopupFocusOutListener())},h.prototype.openPopup=function(t){var o=this,i=t instanceof c.ElementRef?t.nativeElement:t,n=this.popover instanceof d.PopoverComponent?this.popover:this.popover(i),e=l.align(n.position,n.offset),r=e.anchorAlign,s=e.popupAlign,p=e.popupMargin,a=n.animation;this.ngZone.run(function(){o.popupRef=o.popupService.open({anchor:{nativeElement:i},animate:a,content:d.PopoverComponent,popupAlign:s,anchorAlign:r,margin:p,popupClass:"k-popup-transparent",collision:{horizontal:"fit",vertical:"fit"}});var e=o.popupRef.content.instance;Object.assign(e,n),e.anchor=t,e.contextData=e.templateData(t),e.visible=!0,o.popupRef.content.changeDetectorRef.detectChanges(),o.monitorPopup(),o.initializeFinishingEvents(n,i)}),this.popupRef.popupAnchorViewportLeave.pipe(u.take(1)).subscribe(function(){return o.hide()})},h.prototype.isPrevented=function(e,t){var o=this.popover instanceof d.PopoverComponent?this.popover:this.popover(e);return this.initializeEvents(o,void 0,t,e).isDefaultPrevented()},h.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){n.closest(e.relatedTarget,function(e){return e.classList&&e.classList.contains("k-popover")})||t.ngZone.run(function(e){return t._popoverService.emitFocusInsidePopover(!1)})})})},h.prototype.initializeEvents=function(t,o,e,i){var n=this;return e?this.ngZone.run(function(e){o=new s.PopoverShowEvent(i),n.popupRef||t.show.emit(o)}):this.ngZone.run(function(e){o=new s.PopoverHideEvent(i,n.popupRef),n.popupRef&&t.hide.emit(o)}),o},h.prototype.initializeFinishingEvents=function(o,i){var t=this;this._popupOpenSub||this.popupRef.popupOpen.subscribe(function(){var e=new s.PopoverShownEvent(i,t.popupRef);o.shown.emit(e)}),this._popupCloseSub||this.popupRef.popupClose.subscribe(function(){t.ngZone.run(function(e){var t=new s.PopoverHiddenEvent(i);o.hidden.emit(t)})})},i.__decorate([c.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],h.prototype,"popover",null),i.__decorate([c.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],h.prototype,"showOn",null),h);function h(e,t,o){this.ngZone=e,this.popupService=t,this.renderer=o,this.subs=new p.Subscription,this._showOn="click"}t.PopoverDirectivesBase=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,i=o(0),n=o(1),p=o(4),r=o(2),a=o(3),c=o(5),u=o(18),o=o(16),o=(s=u.PopoverDirectivesBase,i.__extends(l,s),l.prototype.show=function(e){this.popupRef||this.openPopup(e)},l.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)},l.prototype.subscribeClick=function(){var o=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",function(e){var t=c.closestBySelector(e.target,o.filter);o.clickHandler(t,e)})},l.prototype.subscribeToEvents=function(o){var i=this;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})}))})},l.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))},l.prototype.controlVisibility=function(e,t){this.isPrevented(e,t)||(t?this.show(e):this.hide())},i.__decorate([n.Input(),i.__metadata("design:type",String)],l.prototype,"filter",void 0),i.__decorate([n.Directive({selector:"[kendoPopoverContainer]",exportAs:"kendoPopoverContainer",providers:[o.PopoverService]}),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,r.PopupService,n.Renderer2,o.PopoverService])],l));function l(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}t.PopoverContainerDirective=o},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(5),r=(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=(r="top"===e||"bottom"===e)?"width":"height",s=r?"left":"top",i=r?"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=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1);t.TOOLTIP_SETTINGS=new o.InjectionToken("kendo-ui-tooltip-settings");o=i.__decorate([o.Injectable()],n);function n(){}t.TooltipSettings=o},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:1642590228,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=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),p=o(3),a=o(6),r=o(2),c=o(24),u=o(23),s=o(22),l=o(21),d=o(5),s=(Object.defineProperty(h.prototype,"tooltipTemplate",{get:function(){return this.template},set:function(e){this.template=e},enumerable:!0,configurable:!0}),h.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)))},h.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()},h.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()},h.prototype.ngOnInit=function(){void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties()},h.prototype.ngOnChanges=function(e){e.showOn&&this.subscribeClick()},h.prototype.ngAfterViewChecked=function(){this.popupRef&&this.anchor&&!d.hasParent(this.anchor.nativeElement||this.anchor,this.tooltipWrapper.nativeElement)&&(this.anchor=null,this.hide())},h.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()},h.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()}))},h.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()},h.prototype.hideElementTitle=function(e){e=e.nativeElement;e.getAttribute("title")&&(e.setAttribute("data-title",e.getAttribute("title")),e.setAttribute("title",""))},h.prototype.openPopup=function(e){var t=this,o=d.align(this.position,this.offset),i=o.anchorAlign,n=o.popupAlign,o=o.popupMargin;this.popupRef=this.popupService.open({anchor:e,anchorAlign:i,animate:!1,content:l.TooltipContentComponent,collision:d.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);var r=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)})})},h.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe()},h.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)}))},h.prototype.onMouseClick=function(e,t){var o=e.target,i=d.closestBySelector(o,this.filter),e=this.popupRef&&this.popupRef.popupElement;if(e){if(e.contains(o))return;if(this.closable)return}t.contains(o)&&i?this.toggle(i,!0):e&&this.hide()},h.prototype.onMouseOver=function(e){e=d.closestBySelector(e.target,this.filter);"hover"===this.showOn&&e&&this.toggle(e,!0)},h.prototype.onMouseOut=function(e){var t;"hover"!==this.showOn||this.closable||(t=this.popupRef&&this.popupRef.popupElement,(e=e.relatedTarget)&&this.anchor&&d.contains(this.anchor.nativeElement,e)||e&&d.contains(t,e)||this.hide())},h.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)],h.prototype,"filter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],h.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"showOn",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"showAfter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],h.prototype,"callout",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],h.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"offset",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"tooltipWidth",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"tooltipClass",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],h.prototype,"collision",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"closeTitle",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef),i.__metadata("design:paramtypes",[n.TemplateRef])],h.prototype,"tooltipTemplate",null),i.__decorate([n.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip"}),i.__param(4,n.Optional()),i.__param(5,n.Optional()),i.__param(5,n.Inject(s.TOOLTIP_SETTINGS)),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,n.Renderer2,r.PopupService,s.TooltipSettings,s.TooltipSettings])],h));function h(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"],c.validatePackage(u.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=d.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)})})}t.TooltipDirective=s},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),o=i.__decorate([n.NgModule({exports:[r.TooltipModule,o.PopoverModule]})],s);function s(){}t.TooltipsModule=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n,r=o(0),s=o(1),o=o(11),o=(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=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(25);t.TooltipDirective=i.TooltipDirective;i=o(22);t.TooltipSettings=i.TooltipSettings,t.TOOLTIP_SETTINGS=i.TOOLTIP_SETTINGS;i=o(10);t.PopoverComponent=i.PopoverComponent;i=o(19);t.PopoverContainerDirective=i.PopoverContainerDirective;i=o(15);t.PopoverAnchorDirective=i.PopoverAnchorDirective;i=o(9);t.PopoverTitleTemplateDirective=i.PopoverTitleTemplateDirective;i=o(8);t.PopoverBodyTemplateDirective=i.PopoverBodyTemplateDirective;i=o(7);t.PopoverActionsTemplateDirective=i.PopoverActionsTemplateDirective;i=o(17);t.PopoverShowEvent=i.PopoverShowEvent,t.PopoverShownEvent=i.PopoverShownEvent,t.PopoverHideEvent=i.PopoverHideEvent,t.PopoverHiddenEvent=i.PopoverHiddenEvent;i=o(14);t.TooltipModule=i.TooltipModule;i=o(12);t.PopoverModule=i.PopoverModule;o=o(26);t.TooltipsModule=o.TooltipsModule,function(e){for(var t in e)r(t,e[t])}(t)}],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)}}});
|
|
5
|
+
System.register("@progress/kendo-angular-tooltip",["tslib","@angular/core","@angular/common","@progress/kendo-angular-popup","@progress/kendo-angular-common","rxjs/operators","rxjs","@progress/kendo-licensing","@progress/kendo-angular-l10n"],function(r){var s,p,a,c,u,l,d,h,v;function t(e){return e.__useDefault?e.default:e}return{setters:[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)},function(e){v=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=p},function(e,t){e.exports=c},function(e,t){e.exports=l},function(e,t){e.exports=u},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=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),o=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=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),o=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=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1),o=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=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(11),s=o(6),p=o(24),a=o(23),c=o(20),u=o(9),l=o(8),o=o(7),r=(Object.defineProperty(d.prototype,"offset",{get:function(){return this.callout?14+this._offset:this._offset},set:function(e){this._offset=e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"width",{get:function(){return this._width},set:function(e){this._width="number"==typeof e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"height",{get:function(){return this._height},set:function(e){this._height="number"==typeof e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"templateData",{get:function(){return this._templateData},set:function(e){if(n.isDevMode&&"function"!=typeof e)throw new Error(c.ERRORS.templateData+" "+JSON.stringify(e)+".");this._templateData=e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"isHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasAttributeHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),d.prototype.ngOnInit=function(){var t=this;this.subs.add(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"}))},d.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},d.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)],d.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],d.prototype,"offset",null),i.__decorate([n.HostBinding("style.width"),n.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],d.prototype,"width",null),i.__decorate([n.HostBinding("style.height"),n.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],d.prototype,"height",null),i.__decorate([n.HostBinding("attr.dir"),i.__metadata("design:type",String)],d.prototype,"direction",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"title",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"subtitle",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],d.prototype,"body",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],d.prototype,"callout",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],d.prototype,"animation",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],d.prototype,"templateData",null),i.__decorate([n.HostBinding("class.k-hidden"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],d.prototype,"isHidden",null),i.__decorate([n.HostBinding("attr.aria-hidden"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],d.prototype,"hasAttributeHidden",null),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],d.prototype,"show",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],d.prototype,"shown",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],d.prototype,"hide",void 0),i.__decorate([n.Output(),i.__metadata("design:type",n.EventEmitter)],d.prototype,"hidden",void 0),i.__decorate([n.ContentChild(u.PopoverTitleTemplateDirective,{static:!1}),i.__metadata("design:type",u.PopoverTitleTemplateDirective)],d.prototype,"titleTemplate",void 0),i.__decorate([n.ContentChild(l.PopoverBodyTemplateDirective,{static:!1}),i.__metadata("design:type",l.PopoverBodyTemplateDirective)],d.prototype,"bodyTemplate",void 0),i.__decorate([n.ContentChild(o.PopoverActionsTemplateDirective,{static:!1}),i.__metadata("design:type",o.PopoverActionsTemplateDirective)],d.prototype,"actionsTemplate",void 0),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])],d));function d(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)}t.PopoverComponent=r},function(e,t){e.exports=v},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(13),r=o(1),s=o(2),p=o(15),a=o(19),c=o(10),u=o(9),l=o(8),a=[o(7).PopoverActionsTemplateDirective,l.PopoverBodyTemplateDirective,u.PopoverTitleTemplateDirective,p.PopoverAnchorDirective,a.PopoverContainerDirective],s=i.__decorate([r.NgModule({declarations:a.concat([c.PopoverComponent]),entryComponents:[c.PopoverComponent],exports:a.concat([c.PopoverComponent]),imports:[n.CommonModule,s.PopupModule]})],d);function d(){}t.PopoverModule=s},function(e,t){e.exports=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(13),s=o(25),p=o(2),a=o(21),o=o(27),o=[s.TooltipDirective,a.TooltipContentComponent,o.LocalizedMessagesDirective],p=[p.PopupModule],o=i.__decorate([n.NgModule({declarations:[o],entryComponents:[a.TooltipContentComponent],imports:[r.CommonModule].concat(p),exports:[o]})],c);function c(){}t.TooltipModule=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,i=o(0),n=o(1),p=o(4),r=o(2),a=o(3),c=o(18),o=o(16),o=(s=c.PopoverDirectivesBase,i.__extends(u,s),u.prototype.show=function(){this.popupRef||this.openPopup(this.hostEl.nativeElement)},u.prototype.toggle=function(){this.popupRef?this.hide():this.show()},u.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})}))},u.prototype.subscribeClick=function(){var t=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",function(e){t.onClick(e)})},u.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))},u.prototype.controlVisibility=function(e,t){this.isPrevented(e,t)||(t?this.show():this.hide())},i.__decorate([n.Directive({selector:"[kendoPopoverAnchor]",exportAs:"kendoPopoverAnchor",providers:[o.PopoverService]}),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,r.PopupService,n.Renderer2,o.PopoverService])],u));function u(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}t.PopoverAnchorDirective=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(6),s=o(3),n=(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=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(0),r=o(4),o=(i=r.PreventableEvent,n.__extends(s,i),s);function s(e){var t=i.call(this)||this;return t.anchor=e,t}t.PopoverShowEvent=o;var p,n=(p=r.PreventableEvent,n.__extends(a,p),a);function a(e,t){var o=p.call(this)||this;return o.anchor=e,o.popover=t,o}t.PopoverHideEvent=n,t.PopoverShownEvent=function(e,t){this.anchor=e,this.popover=t},t.PopoverHiddenEvent=function(e){this.anchor=e}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),c=o(1),u=o(3),n=o(4),r=o(20),s=o(17),l=o(5),d=o(10),p=o(6),a=["hover","click","none","focus"],i=(Object.defineProperty(h.prototype,"popover",{get:function(){return this._popover},set:function(e){if(e instanceof d.PopoverComponent||"function"==typeof e)this._popover=e;else if(c.isDevMode)throw new Error(r.ERRORS.popover)},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"showOn",{get:function(){return this._showOn},set:function(e){if(c.isDevMode&&!l.containsItem(a,e))throw new Error(r.ERRORS.showOn);this._showOn=e},enumerable:!0,configurable:!0}),h.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()}})},h.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()},h.prototype.hide=function(){this.closePopup()},h.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.disposePopupHoverOutListener&&this.disposePopupHoverOutListener(),this.disposePopupHoverInListener&&this.disposePopupHoverInListener(),this.disposePopupFocusOutListener&&this.disposePopupFocusOutListener())},h.prototype.openPopup=function(t){var o=this,i=t instanceof c.ElementRef?t.nativeElement:t,n=this.popover instanceof d.PopoverComponent?this.popover:this.popover(i),e=l.align(n.position,n.offset),r=e.anchorAlign,s=e.popupAlign,p=e.popupMargin,a=n.animation;this.ngZone.run(function(){o.popupRef=o.popupService.open({anchor:{nativeElement:i},animate:a,content:d.PopoverComponent,popupAlign:s,anchorAlign:r,margin:p,popupClass:"k-popup-transparent",collision:{horizontal:"fit",vertical:"fit"}});var e=o.popupRef.content.instance;Object.assign(e,n),e.anchor=t,e.contextData=e.templateData(t),e.visible=!0,o.popupRef.content.changeDetectorRef.detectChanges(),o.monitorPopup(),o.initializeFinishingEvents(n,i)}),this.popupRef.popupAnchorViewportLeave.pipe(u.take(1)).subscribe(function(){return o.hide()})},h.prototype.isPrevented=function(e,t){var o=this.popover instanceof d.PopoverComponent?this.popover:this.popover(e);return this.initializeEvents(o,void 0,t,e).isDefaultPrevented()},h.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){n.closest(e.relatedTarget,function(e){return e.classList&&e.classList.contains("k-popover")})||t.ngZone.run(function(e){return t._popoverService.emitFocusInsidePopover(!1)})})})},h.prototype.initializeEvents=function(t,o,e,i){var n=this;return e?this.ngZone.run(function(e){o=new s.PopoverShowEvent(i),n.popupRef||t.show.emit(o)}):this.ngZone.run(function(e){o=new s.PopoverHideEvent(i,n.popupRef),n.popupRef&&t.hide.emit(o)}),o},h.prototype.initializeFinishingEvents=function(o,i){var t=this;this._popupOpenSub||this.popupRef.popupOpen.subscribe(function(){var e=new s.PopoverShownEvent(i,t.popupRef);o.shown.emit(e)}),this._popupCloseSub||this.popupRef.popupClose.subscribe(function(){t.ngZone.run(function(e){var t=new s.PopoverHiddenEvent(i);o.hidden.emit(t)})})},i.__decorate([c.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],h.prototype,"popover",null),i.__decorate([c.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],h.prototype,"showOn",null),h);function h(e,t,o){this.ngZone=e,this.popupService=t,this.renderer=o,this.subs=new p.Subscription,this._showOn="click"}t.PopoverDirectivesBase=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,i=o(0),n=o(1),p=o(4),r=o(2),a=o(3),c=o(5),u=o(18),o=o(16),o=(s=u.PopoverDirectivesBase,i.__extends(l,s),l.prototype.show=function(e){this.popupRef||this.openPopup(e)},l.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)},l.prototype.subscribeClick=function(){var o=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",function(e){var t=c.closestBySelector(e.target,o.filter);o.clickHandler(t,e)})},l.prototype.subscribeToEvents=function(o){var i=this;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})}))})},l.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))},l.prototype.controlVisibility=function(e,t){this.isPrevented(e,t)||(t?this.show(e):this.hide())},i.__decorate([n.Input(),i.__metadata("design:type",String)],l.prototype,"filter",void 0),i.__decorate([n.Directive({selector:"[kendoPopoverContainer]",exportAs:"kendoPopoverContainer",providers:[o.PopoverService]}),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,r.PopupService,n.Renderer2,o.PopoverService])],l));function l(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}t.PopoverContainerDirective=o},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(5),r=(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=(r="top"===e||"bottom"===e)?"width":"height",s=r?"left":"top",i=r?"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=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),o=o(1);t.TOOLTIP_SETTINGS=new o.InjectionToken("kendo-ui-tooltip-settings");o=i.__decorate([o.Injectable()],n);function n(){}t.TooltipSettings=o},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:1642667921,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=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),n=o(1),p=o(3),a=o(6),r=o(2),c=o(24),u=o(23),s=o(22),l=o(21),d=o(5),s=(Object.defineProperty(h.prototype,"tooltipTemplate",{get:function(){return this.template},set:function(e){this.template=e},enumerable:!0,configurable:!0}),h.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)))},h.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()},h.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()},h.prototype.ngOnInit=function(){void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties()},h.prototype.ngOnChanges=function(e){e.showOn&&this.subscribeClick()},h.prototype.ngAfterViewChecked=function(){this.popupRef&&this.anchor&&!d.hasParent(this.anchor.nativeElement||this.anchor,this.tooltipWrapper.nativeElement)&&(this.anchor=null,this.hide())},h.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()},h.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()}))},h.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()},h.prototype.hideElementTitle=function(e){e=e.nativeElement;e.getAttribute("title")&&(e.setAttribute("data-title",e.getAttribute("title")),e.setAttribute("title",""))},h.prototype.openPopup=function(e){var t=this,o=d.align(this.position,this.offset),i=o.anchorAlign,n=o.popupAlign,o=o.popupMargin;this.popupRef=this.popupService.open({anchor:e,anchorAlign:i,animate:!1,content:l.TooltipContentComponent,collision:d.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);var r=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)})})},h.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe()},h.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)}))},h.prototype.onMouseClick=function(e,t){var o=e.target,i=d.closestBySelector(o,this.filter),e=this.popupRef&&this.popupRef.popupElement;if(e){if(e.contains(o))return;if(this.closable)return}t.contains(o)&&i?this.toggle(i,!0):e&&this.hide()},h.prototype.onMouseOver=function(e){e=d.closestBySelector(e.target,this.filter);"hover"===this.showOn&&e&&this.toggle(e,!0)},h.prototype.onMouseOut=function(e){var t;"hover"!==this.showOn||this.closable||(t=this.popupRef&&this.popupRef.popupElement,(e=e.relatedTarget)&&this.anchor&&d.contains(this.anchor.nativeElement,e)||e&&d.contains(t,e)||this.hide())},h.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)],h.prototype,"filter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"position",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef)],h.prototype,"titleTemplate",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"showOn",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"showAfter",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],h.prototype,"callout",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Boolean)],h.prototype,"closable",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"offset",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"tooltipWidth",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Number)],h.prototype,"tooltipHeight",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"tooltipClass",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Object)],h.prototype,"collision",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],h.prototype,"closeTitle",void 0),i.__decorate([n.Input(),i.__metadata("design:type",n.TemplateRef),i.__metadata("design:paramtypes",[n.TemplateRef])],h.prototype,"tooltipTemplate",null),i.__decorate([n.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip"}),i.__param(4,n.Optional()),i.__param(5,n.Optional()),i.__param(5,n.Inject(s.TOOLTIP_SETTINGS)),i.__metadata("design:paramtypes",[n.ElementRef,n.NgZone,n.Renderer2,r.PopupService,s.TooltipSettings,s.TooltipSettings])],h));function h(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"],c.validatePackage(u.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=d.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)})})}t.TooltipDirective=s},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),o=i.__decorate([n.NgModule({exports:[r.TooltipModule,o.PopoverModule]})],s);function s(){}t.TooltipsModule=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n,r=o(0),s=o(1),o=o(11),o=(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=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(25);t.TooltipDirective=i.TooltipDirective;i=o(22);t.TooltipSettings=i.TooltipSettings,t.TOOLTIP_SETTINGS=i.TOOLTIP_SETTINGS;i=o(10);t.PopoverComponent=i.PopoverComponent;i=o(19);t.PopoverContainerDirective=i.PopoverContainerDirective;i=o(15);t.PopoverAnchorDirective=i.PopoverAnchorDirective;i=o(9);t.PopoverTitleTemplateDirective=i.PopoverTitleTemplateDirective;i=o(8);t.PopoverBodyTemplateDirective=i.PopoverBodyTemplateDirective;i=o(7);t.PopoverActionsTemplateDirective=i.PopoverActionsTemplateDirective;i=o(17);t.PopoverShowEvent=i.PopoverShowEvent,t.PopoverShownEvent=i.PopoverShownEvent,t.PopoverHideEvent=i.PopoverHideEvent,t.PopoverHiddenEvent=i.PopoverHiddenEvent;i=o(14);t.TooltipModule=i.TooltipModule;i=o(12);t.PopoverModule=i.PopoverModule;o=o(26);t.TooltipsModule=o.TooltipsModule,function(e){for(var t in e)r(t,e[t])}(t)}],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)}}});
|
package/package.json
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
4
|
function default_1(options) {
|
|
5
|
-
const finalOptions = Object.assign({}, options, { mainNgModule: '
|
|
6
|
-
});
|
|
5
|
+
const finalOptions = Object.assign({}, options, { mainNgModule: 'TooltipsModule', package: 'tooltip' });
|
|
7
6
|
return schematics_1.externalSchematic('@progress/kendo-schematics', 'ng-add', finalOptions);
|
|
8
7
|
}
|
|
9
8
|
exports.default = default_1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../tooling/schematics/ngAdd/index.ts"],"names":[],"mappings":";;AAAA,2DAKqC;AAErC,mBAAyB,OAAY;IACjC,MAAM,YAAY,qBACX,OAAO,IACV,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../tooling/schematics/ngAdd/index.ts"],"names":[],"mappings":";;AAAA,2DAKqC;AAErC,mBAAyB,OAAY;IACjC,MAAM,YAAY,qBACX,OAAO,IACV,YAAY,EAAE,gBAAgB,EAC9B,OAAO,EAAE,SAAS,GACrB,CAAC;IAEF,OAAO,8BAAiB,CAAC,4BAA4B,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;AACnF,CAAC;AARD,4BAQC"}
|