@progress/kendo-angular-popup 4.0.4 → 4.0.6-dev.202203091019

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.
@@ -2,7 +2,7 @@
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("@angular/core"),require("rxjs"),require("rxjs/operators"),require("@angular/common"),require("@angular/animations")):"function"==typeof define&&define.amd?define(["@angular/core","rxjs","rxjs/operators","@angular/common","@angular/animations"],t):"object"==typeof exports?exports.KendoAngularPopup=t(require("@angular/core"),require("rxjs"),require("rxjs/operators"),require("@angular/common"),require("@angular/animations")):e.KendoAngularPopup=t(e["@angular/core"],e.rxjs,e["rxjs/operators"],e["@angular/common"],e["@angular/animations"])}(window,(function(e,t,n,i,o){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=12)}([function(t,n){t.exports=e},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return o})),n.d(t,"__assign",(function(){return r})),n.d(t,"__rest",(function(){return s})),n.d(t,"__decorate",(function(){return a})),n.d(t,"__param",(function(){return u})),n.d(t,"__metadata",(function(){return c})),n.d(t,"__awaiter",(function(){return l})),n.d(t,"__generator",(function(){return p})),n.d(t,"__createBinding",(function(){return f})),n.d(t,"__exportStar",(function(){return d})),n.d(t,"__values",(function(){return h})),n.d(t,"__read",(function(){return m})),n.d(t,"__spread",(function(){return v})),n.d(t,"__spreadArrays",(function(){return g})),n.d(t,"__await",(function(){return y})),n.d(t,"__asyncGenerator",(function(){return b})),n.d(t,"__asyncDelegator",(function(){return _})),n.d(t,"__asyncValues",(function(){return w})),n.d(t,"__makeTemplateObject",(function(){return O})),n.d(t,"__importStar",(function(){return x})),n.d(t,"__importDefault",(function(){return S})),n.d(t,"__classPrivateFieldGet",(function(){return E})),n.d(t,"__classPrivateFieldSet",(function(){return C}));
5
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@angular/core"),require("@progress/kendo-angular-common"),require("rxjs"),require("rxjs/operators"),require("@angular/animations"),require("@progress/kendo-licensing"),require("@angular/common")):"function"==typeof define&&define.amd?define([,,,,,,],e):"object"==typeof exports?exports.KendoAngularPopup=e(require("@angular/core"),require("@progress/kendo-angular-common"),require("rxjs"),require("rxjs/operators"),require("@angular/animations"),require("@progress/kendo-licensing"),require("@angular/common")):t.KendoAngularPopup=e(t.ng.core,t.KendoAngularCommon,t.rxjs,t.rxjs.operators,t.ng.animations,t.KendoLicensing,t.ng.common)}(window,(function(t,e,n,o,r,i,a){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=11)}([function(e,n){e.exports=t},function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return r})),n.d(e,"__assign",(function(){return i})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return c})),n.d(e,"__metadata",(function(){return l})),n.d(e,"__awaiter",(function(){return u})),n.d(e,"__generator",(function(){return f})),n.d(e,"__createBinding",(function(){return p})),n.d(e,"__exportStar",(function(){return d})),n.d(e,"__values",(function(){return h})),n.d(e,"__read",(function(){return m})),n.d(e,"__spread",(function(){return v})),n.d(e,"__spreadArrays",(function(){return y})),n.d(e,"__await",(function(){return g})),n.d(e,"__asyncGenerator",(function(){return _})),n.d(e,"__asyncDelegator",(function(){return b})),n.d(e,"__asyncValues",(function(){return w})),n.d(e,"__makeTemplateObject",(function(){return S})),n.d(e,"__importStar",(function(){return O})),n.d(e,"__importDefault",(function(){return P})),n.d(e,"__classPrivateFieldGet",(function(){return E})),n.d(e,"__classPrivateFieldSet",(function(){return C}));
6
6
  /*! *****************************************************************************
7
7
  Copyright (c) Microsoft Corporation.
8
8
 
@@ -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 i=function(e,t){return(i=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 o(e,t){function n(){this.constructor=e}i(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,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}function a(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s}function u(e,t){return function(n,i){t(n,i,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((i=i.apply(e,t||[])).next())}))}function p(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[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,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}function f(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}function d(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function g(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function b(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,o=n.apply(e,t||[]),r=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(e){o[e]&&(i[e]=function(t){return new Promise((function(n,i){r.push([e,t,n,i])>1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof y?Promise.resolve(n.value.v).then(u,c):l(r[0][2],n)}catch(e){l(r[0][3],e)}var n}function u(e){a("next",e)}function c(e){a("throw",e)}function l(e,t){e(t),r.shift(),r.length&&a(r[0][0],r[0][1])}}function _(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,o){t[i]=e[i]?function(t){return(n=!n)?{value:y(e[i](t)),done:"return"===i}:o?o(t):t}:o}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,o){(function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)})(i,o,(t=e[n](t)).done,t.value)}))}}}function O(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function x(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 S(e){return e&&e.__esModule?e:{default:e}}function E(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function C(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,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(11),o=n(4);t.eitherRect=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},t.replaceOffset=function(e,t){return t?{height:e.height,left:t.left,top:t.top,width:e.width}:e},t.removeStackingOffset=function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e},t.isDifferentOffset=function(e,t){var n=e.left,i=e.top,o=t.left,r=t.top;return Math.abs(n-o)>=1||Math.abs(i-r)>=1},t.isWindowAvailable=function(){return"undefined"!=typeof window},t.hasBoundingRect=function(e){return!!e.getBoundingClientRect},t.OVERFLOW_REGEXP=/auto|scroll/;var r,s,a,u=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)};t.scrollableParents=function(e){var n=[];if(!o.isDocumentAvailable()||!t.isWindowAvailable())return n;for(var i=e.parentElement;i;)(t.OVERFLOW_REGEXP.test(u(i))||i.hasAttribute("data-scrollable"))&&n.push(i),i=i.parentElement;return n.push(window),n},t.FRAME_DURATION=1e3/60,t.hasRelativeStackingContext=(r=function(){if(!o.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},a=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a||(s=r.apply(void 0,e),a=!0),s}),t.zIndex=function(e,n){if(!e||!o.isDocumentAvailable()||!t.isWindowAvailable())return null;var r=i.siblingContainer(e,n);if(!r)return null;var s=[e].concat(i.parents(e,r)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,i=parseInt(n,10);return i>e?i:e}),0);return s?s+1:null},t.scaleRect=function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e}},function(e,t,n){"use strict";n.r(t),n.d(t,"ResizeService",(function(){return U})),n.d(t,"PreventableEvent",(function(){return te})),n.d(t,"DraggableDirective",(function(){return x})),n.d(t,"DraggableModule",(function(){return S})),n.d(t,"closestInScope",(function(){return E})),n.d(t,"closest",(function(){return C})),n.d(t,"contains",(function(){return P})),n.d(t,"findElement",(function(){return z})),n.d(t,"findFocusableChild",(function(){return I})),n.d(t,"findFocusable",(function(){return M})),n.d(t,"hasClasses",(function(){return L})),n.d(t,"isFocusableWithTabKey",(function(){return R})),n.d(t,"isFocusable",(function(){return j})),n.d(t,"isVisible",(function(){return D})),n.d(t,"matchesClasses",(function(){return K})),n.d(t,"matchesNodeName",(function(){return N})),n.d(t,"rtlScrollPosition",(function(){return B})),n.d(t,"EventsOutsideAngularDirective",(function(){return F})),n.d(t,"EventsModule",(function(){return H})),n.d(t,"ResizeSensorComponent",(function(){return J})),n.d(t,"ResizeBatchService",(function(){return G})),n.d(t,"ResizeCompatService",(function(){return Y})),n.d(t,"ResizeObserverService",(function(){return X})),n.d(t,"ResizeSensorModule",(function(){return $})),n.d(t,"KendoInput",(function(){return ee})),n.d(t,"isDocumentAvailable",(function(){return y})),n.d(t,"isChanged",(function(){return b})),n.d(t,"anyChanged",(function(){return _})),n.d(t,"hasObservers",(function(){return w})),n.d(t,"guid",(function(){return O})),n.d(t,"Keys",(function(){return V}));var i=n(1),o=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)},u=function(){},c=function(e){return e.preventDefault()},l=/touch/;function p(e){return e.type.match(l)?{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 f=function(e){var t=this,n=e.press;void 0===n&&(n=u);var i=e.drag;void 0===i&&(i=u);var o=e.release;void 0===o&&(o=u);var l=e.mouseOnly;void 0===l&&(l=!1),this._pressHandler=r(p,n),this._dragHandler=r(p,i),this._releaseHandler=r(p,o),this._ignoreMouse=!1,this._mouseOnly=l,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",c),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",c),t._releaseHandler(e))}},d={document:{configurable:!0}};f.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},d.document.get=function(){return this._element?this._element.ownerDocument:document},f.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},f.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)))},f.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",c),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))},f.prototype._usePointers=function(){return!this._mouseOnly&&f.supportPointerEvent()},f.prototype.update=function(e){var t=e.press;void 0===t&&(t=u);var n=e.drag;void 0===n&&(n=u);var i=e.release;void 0===i&&(i=u);var o=e.mouseOnly;void 0===o&&(o=!1),this._pressHandler=r(p,t),this._dragHandler=r(p,n),this._releaseHandler=r(p,i),this._mouseOnly=o},f.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(f.prototype,d),f.default=f;var h=f,m=n(9),v=n(6),g=n(2),y=function(){return"undefined"!=typeof document},b=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 b(e,t,n)}))},w=function(e){return e&&e.observers.length>0},O=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},x=function(){function e(e,t){this.element=e,this.ngZone=t,this.enableDrag=!0,this.kendoPress=new o.EventEmitter,this.kendoDrag=new o.EventEmitter,this.kendoRelease=new o.EventEmitter}return e.prototype.ngOnInit=function(){this.toggleDraggable()},e.prototype.ngOnChanges=function(e){b("enableDrag",e)&&this.toggleDraggable()},e.prototype.ngOnDestroy=function(){this.destroyDraggable()},e.prototype.toggleDraggable=function(){var e=this;y()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new h({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(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"enableDrag",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"kendoPress",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"kendoDrag",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"kendoRelease",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoDraggable]"}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.NgZone])],e)}(),S=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[x],exports:[x],imports:[m.CommonModule]})],e)}(),E=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},C=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},P=function(e,t,n){if(void 0===n&&(n=!1),!C(t,(function(t){return t===e})))return!1;var i=C(t,(function(e){return e===t}));return i&&(n||i!==e)},z=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 i=z(e,t);if(i)return i}e=e.nextSibling}}},A=/^(?:a|input|select|option|textarea|button|object)$/i,j=function(e){if(!e.tagName)return!1;var t=e.tagName.toLowerCase(),n=Boolean(e.getAttribute("tabIndex"));return!e.disabled&&A.test(t)||n},D=function(e){var t=e.getBoundingClientRect(),n=t.width>0&&t.height>0,i=0!==t.x&&0!==t.y;return(n||i)&&"hidden"!==window.getComputedStyle(e).visibility},R=function(e,t){if(void 0===t&&(t=!0),!j(e))return!1;var n=e.getAttribute("tabIndex");return(!t||D(e))&&"-1"!==n},I=function(e,t){return void 0===t&&(t=!0),z(e,(function(e){return R(e,t)}),!1)},M=function(e,t){return void 0===t&&(t=!0),z(e,(function(e){return R(e,t)}))},k=function(e){return String(e).trim().split(" ")},L=function(e,t){var n=k(t);return Boolean(k(e.className).find((function(e){return n.indexOf(e)>=0})))},K=function(e){return function(t){return L(t,e)}},T={},N=function(e){return T[e]||(T[e]=function(t){return String(t.nodeName).toLowerCase()===e.toLowerCase()}),T[e]};function B(e,t,n){var i=e;return n<0?i=-e:n>0&&(i=t.scrollWidth-t.offsetWidth-e),i}var V,F=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(i.__decorate)([Object(o.Input)("kendoEventsOutsideAngular"),Object(i.__metadata)("design:type",Object)],e.prototype,"events",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"scope",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoEventsOutsideAngular]"}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.NgZone,o.Renderer2])],e)}(),H=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[F],exports:[F]})],e)}(),U=function(){function e(e){this.resizeBatchService=e,this.resize=new o.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(){y()&&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}(),W=function(e){var t=document.createElement("div");return t.style.cssText=e,t},Z="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",Y=function(e){function t(t,n,i){var o=e.call(this,t)||this;return o.element=n,o.ngZone=i,o}return Object(i.__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=Z,e.setAttribute("dir","ltr"),this.expand=W(Z),this.expandChild=W("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),e.appendChild(this.expand),this.shrink=W(Z);var t=W("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}(U),q="undefined"!=typeof ResizeObserver,X=function(e){function t(t,n,i){var o=e.call(this,t)||this;return o.element=n,o.ngZone=i,o}return Object(i.__extends)(t,e),t.supported=function(){return q},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}(U),G=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,i=0;i<n;i++)if(t[i].instance===e)return t.splice(i,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(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[o.NgZone])],e)}(),J=function(){function e(e,t,n){var i=this;this.rateLimit=10,this.resize=new o.EventEmitter;var r=X.supported()?X:Y;this.resizeService=new r(e,t,n);var s=1e3/(this.rateLimit||10);this.subscription=this.resizeService.resize.pipe(Object(v.auditTime)(s)).subscribe((function(){i.resizeService.acceptedSize||i.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(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"rateLimit",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"resize",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-resize-sensor",template:""}),Object(i.__metadata)("design:paramtypes",[G,o.ElementRef,o.NgZone])],e)}(),Q=[J],$=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Q],exports:[Q],providers:[G]})],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"}(V||(V={}));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,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(11),s=n(3),a=n(4),u=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],c=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 r.addScroll(e,t)},e.prototype.align=function(e){return r.align(e)},e.prototype.boundingOffset=function(e){return r.boundingOffset(this.nativeElement(e))},e.prototype.getFontStyles=function(e){var t=this.getWindow();if(!t||!e)return[];var n=t.getComputedStyle(this.nativeElement(e));return u.map((function(e){return{key:e,value:n[e]}}))},e.prototype.getWindow=function(){return s.isWindowAvailable()?window:null},e.prototype.hasOffsetParent=function(e){return!!e&&!!this.nativeElement(e).offsetParent},e.prototype.offset=function(e){return e?r.offset(this.nativeElement(e)):null},e.prototype.offsetAtPoint=function(e,t){if(!e)return null;var n=this.nativeElement(e),i=n.style,o=i.left,s=i.top,a=i.transition;n.style.transition="none",n.style.left=t.left+"px",n.style.top=t.top+"px";var u=r.offset(n);return n.style.left=o,n.style.top=s,n.offsetHeight,n.style.transition=a,u},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?r.positionWithScroll(this.nativeElement(e),this.nativeElement(t),n):null},e.prototype.removeScroll=function(e,t){return r.removeScroll(e,t)},e.prototype.restrictToView=function(e){return r.restrictToView(e)},e.prototype.scrollPosition=function(e){return r.scrollPosition(this.nativeElement(e))},e.prototype.scrollableParents=function(e){return s.scrollableParents(this.nativeElement(e))},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?r.offset(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||!s.hasRelativeStackingContext())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 r.getWindowViewPort(this.nativeElement(e))},e.prototype.zIndex=function(e,t){return s.zIndex(this.nativeElement(e),this.nativeElement(t))},e.prototype.zoomLevel=function(){return a.isDocumentAvailable()&&s.isWindowAvailable()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e=i.__decorate([o.Injectable()],e)}();t.DOMService=c},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(13),s=n(5),a=n(14),u=n(15),c=n(16),l=n(17),p=n(3),f=n(4),d=n(2),h=n(19),m=n(20),v={left:-1e4,top:0},g=function(){function e(e,t,n,i,r,s,a,u,c){this.container=e,this._alignService=t,this.domService=n,this._positionService=i,this._resizeService=r,this._scrollableService=s,this.animationService=a,this._renderer=u,this._zone=c,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=v,this.anchorViewportLeave=new o.EventEmitter,this.close=new o.EventEmitter,this.open=new o.EventEmitter,this.positionChange=new o.EventEmitter,this.resolvedPromise=Promise.resolve(null),this.initialCheck=!0,h.validatePackage(m.packageMetadata),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=v,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=d.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(f.isDocumentAvailable()){var t=this.position(),n=t.flip,i=t.offset;this.currentOffset&&!p.isDifferentOffset(this.currentOffset,i)||(this.currentOffset=i,f.hasObservers(this.positionChange)&&this._zone.run((function(){return e.positionChange.emit({offset:i,flip:n})}))),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,n),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=f.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()},i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"animate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.ElementRef)],e.prototype,"anchor",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"anchorAlign",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"collision",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"popupAlign",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"copyAnchorStyles",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"popupClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"positionMode",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"offset",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"anchorViewportLeave",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"close",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"open",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"positionChange",void 0),i.__decorate([o.ViewChild("container",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"contentContainer",void 0),i.__decorate([o.ViewChild(f.ResizeSensorComponent,{static:!0}),i.__metadata("design:type",f.ResizeSensorComponent)],e.prototype,"resizeSensor",void 0),e=i.__decorate([o.Component({exportAs:"kendo-popup",providers:[r.AlignService,l.AnimationService,s.DOMService,a.PositionService,u.ResizeService,c.ScrollableService],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 '}),i.__metadata("design:paramtypes",[o.ElementRef,r.AlignService,s.DOMService,a.PositionService,u.ResizeService,c.ScrollableService,l.AnimationService,o.Renderer2,o.NgZone])],e)}();t.PopupComponent=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.SCALE=new i.InjectionToken("Popup Document Scale")},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(7);t.POPUP_CONTAINER=new o.InjectionToken("Popup Container");var s=function(){function e(e,t,n,i){this.applicationRef=e,this.componentFactoryResolver=t,this.injector=n,this.container=i}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,i=t.nodes,o=this.appendPopup(i,e.appendTo),r=o.instance;this.projectComponentInputs(o,e),o.changeDetectorRef.detectChanges(),n&&n.changeDetectorRef.detectChanges();var s=this.getComponentRootNode(o);return{close:function(){var e;n&&n.destroy(),o.destroy(),(e=s)&&e.parentNode&&e.parentNode.removeChild(e)},content:n,popup:o,popupAnchorViewportLeave:r.anchorViewportLeave,popupClose:r.close,popupElement:s,popupOpen:r.open,popupPositionChange:r.positionChange}},e.prototype.appendPopup=function(e,t){var n=this.createComponent(r.PopupComponent,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 i=this.getComponentFactory(e);if(n)return n.createComponent(i,void 0,this.injector,t);var o=i.create(this.injector,t);return this.applicationRef.attachView(o.hostView),o},e.prototype.projectComponentInputs=function(e,t){return Object.getOwnPropertyNames(t).filter((function(e){return"content"!==e||t.content instanceof o.TemplateRef})).map((function(n){e.instance[n]=t[n]})),e},e.prototype.contentFrom=function(e){if(!e||e instanceof o.TemplateRef)return{component:null,nodes:[[]]};var t=this.createComponent(e);return{component:t,nodes:[t?[t.location.nativeElement]:[]]}},e=i.__decorate([o.Injectable(),i.__param(3,o.Inject(t.POPUP_CONTAINER)),i.__param(3,o.Optional()),i.__metadata("design:paramtypes",[o.ApplicationRef,o.ComponentFactoryResolver,o.Injector,o.ElementRef])],e)}();t.PopupService=s},function(e,t,n){"use strict";n.r(t),n.d(t,"align",(function(){return o})),n.d(t,"addScroll",(function(){return r})),n.d(t,"applyLocationOffset",(function(){return s})),n.d(t,"boundingOffset",(function(){return d})),n.d(t,"isBodyOffset",(function(){return m})),n.d(t,"offsetParent",(function(){return h})),n.d(t,"offset",(function(){return v})),n.d(t,"parents",(function(){return g})),n.d(t,"parentScrollPosition",(function(){return _})),n.d(t,"position",(function(){return w})),n.d(t,"positionWithScroll",(function(){return O})),n.d(t,"removeScroll",(function(){return x})),n.d(t,"restrictToView",(function(){return P})),n.d(t,"scrollPosition",(function(){return y})),n.d(t,"siblingContainer",(function(){return A})),n.d(t,"siblings",(function(){return z})),n.d(t,"zIndex",(function(){return j})),n.d(t,"alignElement",(function(){return W})),n.d(t,"domUtils",(function(){return H})),n.d(t,"utils",(function(){return L})),n.d(t,"positionElement",(function(){return Z})),n.d(t,"getDocumentElement",(function(){return c})),n.d(t,"getWindow",(function(){return u})),n.d(t,"getWindowViewPort",(function(){return f})),n.d(t,"AlignPoint",(function(){return i})),n.d(t,"Collision",(function(){return S}));var i={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"},o=function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,s=e.margin;void 0===s&&(s={});var a=n.horizontal,u=n.vertical,c=r.horizontal,l=r.vertical,p=s.horizontal||0,f=s.vertical||0,d=t.top,h=t.left;return u===i.bottom&&(d+=t.height),u!==i.center&&u!==i.middle||(d+=Math.round(t.height/2)),l===i.bottom&&(d-=o.height,f*=-1),l!==i.center&&l!==i.middle||(d-=Math.round(o.height/2),f*=-1),a===i.right&&(h+=t.width),a!==i.center&&a!==i.middle||(h+=Math.round(t.width/2)),c===i.right&&(h-=o.width,p*=-1),c!==i.center&&c!==i.middle||(h-=Math.round(o.width/2),p*=-1),{top:d+f,left:h+p}};function r(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}function s(e,t,n){var i=e.top,o=e.left;return n&&(o=0,i=0),{top:i+t.top,left:o+t.left,height:e.height,width:e.width}}function a(e){return e.ownerDocument||e.document||e}var u=function(e){return a(e).defaultView},c=function(e){return a(e).documentElement},l=0;function p(){if(!l&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),l=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return l}function f(e){var t=u(e),n=c(e),i={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(i.width-=p()),i}var d=function(e){if(!e.getBoundingClientRect){var t=f(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}},h=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||c(e)},m=function(e){return h(e)===e.ownerDocument.body},v=function(e){var t=e.getBoundingClientRect(),n=t.left,i=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,i=t.left,o=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=i,e.style.position=o,r}(e)),{top:i,left:n,height:t.height,width:t.width}},g=function(e,t){for(var n=[],i=e.parentNode;i&&(n.push(i),i!==t);)i=i.parentNode;return n};function y(e){var t=c(e),n=u(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var b=function(e){return e===(e.ownerDocument||{}).body?y(e):{x:e.scrollLeft,y:e.scrollTop}};function _(e){var t=h(e);return t?b(t):{x:0,y:0}}var w=function(e,t){var n=u(e),i=n.getComputedStyle(e),o=v(e),r=t||h(e),s=e.ownerDocument,a=r!==s.body&&r!==s.documentElement,c={top:0,left:0};if("fixed"!==i.position&&a){var l=n.getComputedStyle(r);(c=v(r)).top+=parseInt(l.borderTopWidth,10),c.left+=parseInt(l.borderLeftWidth,10)}return{top:o.top-c.top,left:o.left-c.left,height:o.height,width:o.width}},O=function(e,t,n){void 0===n&&(n=1);var i=t?h(t):null,o=w(e,i),r=o.top,s=o.left,a=o.height,u=o.width,c=function(e,t){return e?b(e):_(t)}(i,e),l=c.x,p=c.y,f=e.ownerDocument,d=i===f.body||i===f.documentElement?1:n;return{top:r+p*d,left:s+l*d,height:a,width:u}};function x(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}var S={fit:"fit",flip:"flip",none:"none"},E=function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),e<0&&(i=-e),i},C=function(e){var t=e.offset,n=e.size,o=e.anchorSize,r=e.viewPortSize,s=e.anchorAlignPoint,a=e.elementAlignPoint,u=e.margin,c=0,l=a===i.center||a===i.middle,p=s===i.center||s===i.middle,f=2*u;if(a!==s&&!l&&!p){var d=s===i.top||s===i.left;t<0&&d?t+(c=n+o+f)+n>r&&(c=0):t>=0&&!d&&(t+n>r&&(c+=-(o+n+f)),t+c<0&&(c=0))}return c},P=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,r=e.collisions,s=e.viewPort,a=e.margin;void 0===a&&(a={});var u=i.top,c=i.left,l=i.height,p=i.width,f=s.height,d=s.width,h=a.horizontal||0,m=a.vertical||0,v=0,g=0,y=r.vertical===S.fit,b=r.horizontal===S.fit,_=r.vertical===S.flip,w=r.horizontal===S.flip;y&&(g+=E(u,l,f)),b&&(v+=E(c,p,d)),_&&(g+=C({margin:m,offset:u,size:l,anchorSize:t.height,viewPortSize:f,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),w&&(v+=C({margin:h,offset:c,size:p,anchorSize:t.width,viewPortSize:d,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var O=_&&0!==g,x=w&&0!==v,P=y&&0!==g,z=b&&0!==v;return{flipped:x||O,fitted:P||z,flip:{horizontal:x,vertical:O},fit:{horizontal:z,vertical:P},offset:{left:v,top:g}}},z=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},A=function(e,t){for(var n,i,o=g(e),r=t;r&&(n=z(r),!(i=o.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)r=r.parentElement;return i};function j(e,t){if(!e||!t)return null;var n=A(e,t);if(!n)return null;var i=[e].concat(g(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,i=parseInt(n,10);return i>e?i:e}),0);return i?i+1:null}var D,R,I,M=(D=function(e){if(!k())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 i=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),i},I=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return I||(R=D.apply(void 0,e),I=!0),R}),k=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},L={eitherRect:function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},scaleRect:function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},removeStackingOffset:function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e},hasRelativeStackingContext:M,canUseDOM:k},K=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],T=function(){return L.canUseDOM()?window:null},N=/auto|scroll/,B=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)},V=function(e){if(!e||!L.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},F=function(){return L.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},H={addOffset:function(e,t){return{left:e.left+t.left,top:e.top+t.top}},addScroll:r,align:o,boundingOffset:d,getFontStyles:function(e){var t=T();if(!t||!e)return[];var n=t.getComputedStyle(e);return K.map((function(e){return{key:e,value:n[e]}}))},getWindow:T,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?v(e):null},offsetAtPoint:function(e,t){if(!e)return null;var n=e.style,i=n.left,o=n.top,r=n.transition;e.style.transition="none",e.style.left=t.left+"px",e.style.top=t.top+"px";var s=v(e);return e.style.left=i,e.style.top=o,e.offsetHeight,e.style.transition=r,s},position:function(e,t,n){return e&&t?O(e,t,n||1):null},removeScroll:x,restrictToView:P,scrollPosition:y,scrollableParents:function(e){var t=[];if(!L.canUseDOM())return t;for(var n=e.parentElement;n;)(N.test(B(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:V,stackingElementOffset:function(e){var t=V(e);return t?v(t):null},stackingElementScroll:function(e){var t=V(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=V(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(V(e))},windowViewPort:f,zoomLevel:F,isZoomed:function(){return F()>1},zIndex:function(e,t){if(!e||!L.canUseDOM())return null;var n=A(e,t);if(!n)return null;var i=[e].concat(g(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,i=parseInt(n,10);return i>e?i:e}),0);return i?i+1:null}},U=function(e,t){return e?{x:0,y:0}:H.scrollPosition(t)},W=function(e){var t=e.anchor,n=e.element,i=e.anchorAlign,o=e.elementAlign,r=e.margin,s=e.offset,a=e.positionMode,u=e.scale||1,c="fixed"===a||!H.hasOffsetParent(n)?function(e,t,n,i){var o=U(e,t),r=L.eitherRect(H.offset(e),n),s=2*i,a=H.stackingElementScroll(t);1!==i&&a&&(a.x/=s,a.y/=s);var u=H.stackingElementOffset(t);return 1!==i&&u&&(u.left/=s,u.top/=s),H.removeScroll(H.addScroll(L.removeStackingOffset(L.scaleRect(r,i),u),a),o)}(t,n,s,u):function(e,t,n,i){var o=L.eitherRect(H.position(e,t,i),n);return L.scaleRect(o,i)}(t,n,s,u),l=L.scaleRect(H.offset(n),u);return H.align({anchorAlign:i,anchorRect:c,elementAlign:o,elementRect:l,margin:r})},Z=function(e){var t=e.anchor,n=e.currentLocation,i=e.element,o=e.anchorAlign,r=e.elementAlign,s=e.collisions,a=e.margin,u=e.scale||1,c=H.offsetAtPoint(i,n),l=L.scaleRect(c,u),p=L.scaleRect(H.offset(t),u),f=L.eitherRect(p,n),d=e.viewPort||H.windowViewPort(i);d.width=d.width/u,d.height=d.height/u;var h=H.restrictToView({anchorAlign:o,anchorRect:f,collisions:s,elementAlign:r,elementRect:l,margin:a,viewPort:d}),m=H.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:m}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(10);t.PopupService=i.PopupService,t.POPUP_CONTAINER=i.POPUP_CONTAINER;var o=n(7);t.PopupComponent=o.PopupComponent;var r=n(21);t.PopupModule=r.PopupModule;var s=n(8);t.SCALE=s.SCALE},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(5),s=n(3),a=n(8),u=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,i=e.anchorAlign,o=e.elementAlign,r=e.margin,a=e.offset,u=e.positionMode,c=this.scale||1,l="fixed"===u||!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,a,c):this.relativeRect(t,n,a,c),p=s.scaleRect(this._dom.offset(n),c);return this._dom.align({anchorAlign:i,anchorRect:l,elementAlign:o,elementRect:p,margin:r})},e.prototype.absoluteRect=function(e,t,n,i){var o=this.elementScrollPosition(e,t),r=s.eitherRect(this._dom.offset(e),n),a=2*i,u=this._dom.stackingElementScroll(t);1!==i&&u&&(u.x/=a,u.y/=a);var c=this._dom.stackingElementOffset(t);return 1!==i&&c&&(c.left/=a,c.top/=a),this._dom.removeScroll(this._dom.addScroll(s.removeStackingOffset(s.scaleRect(r,i),c),u),o)},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n,i){var o=s.eitherRect(this._dom.position(e,t,i),n);return s.scaleRect(o,i)},e=i.__decorate([o.Injectable(),i.__param(1,o.Inject(a.SCALE)),i.__param(1,o.Optional()),i.__metadata("design:paramtypes",[r.DOMService,Number])],e)}();t.AlignService=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(5),s=n(3),a=n(8),u=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,i=e.element,o=e.anchorAlign,r=e.elementAlign,a=e.collisions,u=e.margin,c=this._dom,l=this.scale||1,p=c.offsetAtPoint(i,n),f=s.scaleRect(p,l),d=s.scaleRect(c.offset(t),l),h=s.eitherRect(d,n),m=e.viewPort||c.windowViewPort(i);m.width=m.width/l,m.height=m.height/l;var v=c.restrictToView({anchorAlign:o,anchorRect:h,collisions:a,elementAlign:r,elementRect:f,margin:u,viewPort:m}),g=c.addOffset(n,v.offset);return{flip:v.flip,flipped:v.flipped,offset:g}},e=i.__decorate([o.Injectable(),i.__param(1,o.Inject(a.SCALE)),i.__param(1,o.Optional()),i.__metadata("design:paramtypes",[r.DOMService,Number])],e)}();t.PositionService=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(2),s=n(6),a=n(4),u=n(3),c=n(5),l=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.subscribe=function(e){var t=this;a.isDocumentAvailable()&&this._zone.runOutsideAngular((function(){t.subscription=r.fromEvent(t._dom.getWindow(),"resize").pipe(s.auditTime(u.FRAME_DURATION)).subscribe((function(){return e()}))}))},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[c.DOMService,o.NgZone])],e)}();t.ResizeService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(2),s=n(6),a=n(4),u=n(5),c=n(3);t.THRESHOLD_DIFF=1;var l=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&&a.isDocumentAvailable()&&this.element){var n=this._dom.nativeElement(this.element),i=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular((function(){var o=i.map((function(e){return r.fromEvent(e,"scroll").pipe(s.auditTime(c.FRAME_DURATION))}));t.subscription=r.merge.apply(void 0,o).subscribe((function(o){var r=o.target,s=i.filter((function(e){return e===r})).length>0,a=r===document,u=r===window;(s||a||u)&&e(t.isVisible(n,r))}))}))}},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isVisible=function(e,n){var i=this._dom.boundingOffset(e),o=this._dom.boundingOffset(n);return!(t.THRESHOLD_DIFF<o.top-i.bottom)&&(!(t.THRESHOLD_DIFF<i.top-o.bottom)&&(!(t.THRESHOLD_DIFF<i.left-o.right)&&!(t.THRESHOLD_DIFF<o.left-i.right)))},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[u.DOMService,o.NgZone])],e)}();t.ScrollableService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(18),s={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)"}}}},a=function(){function e(e){this.animationBuilder=e,this.start=new o.EventEmitter,this.end=new o.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 i=t.type||"slide",r=s[i];if(r){var a=r(this.getDirection(n,t));this.playStates(e,a,t)}else if(o.isDevMode())throw new Error('Unsupported animation type: "'+i+'". The supported types are slide, expand, fade and zoom.')}},e.prototype.ngOnDestroy=function(){this.stopPlayer()},e.prototype.playStates=function(e,t,n){var i=this;this.stopPlayer();var o=n.duration||100,s=this.animationBuilder.build([r.style(t.start),r.animate(o+"ms ease-in",r.style(t.end))]),a=this.player=s.create(e);a.onDone((function(){i.end.emit(),i.stopPlayer()})),this.start.emit(),a.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=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[r.AnimationBuilder])],e)}();t.AnimationService=a},function(e,t){e.exports=o},function(e,t,n){"use strict";n.r(t),n.d(t,"setScriptKey",(function(){return c})),n.d(t,"validatePackage",(function(){return l}));var i,o,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"];i=r,o=131,function(e){for(;--e;)i.push(i.shift())}(++o);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,i=String(e).replace(/=+$/,""),o="",r=0,s=0;n=i.charAt(s++);~n&&(t=r%4?64*t+n:n,r++%4)?o+=String.fromCharCode(255&t>>(-2*r&6)):0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);return o}(e),n=[],i=0,o=t.length;i<o;i++)n+="%"+("00"+t.charCodeAt(i).toString(16)).slice(-2);return decodeURIComponent(n)},s.rqrXoU={},s.eVebMg=!0}var i=s.rqrXoU[e];return void 0===i?(n=s.JsjtEd(n),s.rqrXoU[e]=n):n=i,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="} '},u=new Map;function c(e){}function l(e){if(u[s("0x14")](e[s("0x4")])){if(s("0x35")==s("0x35"))return u[s("0x36")](e[s("0x4")])}var t,n=e[s("0x1")]?" v"+e[s("0x1")]:"",i=e[s("0x4")]+n,o=JSON[s("0x9")](a[s("0x34")]),r=!o[s("0x26")]&&!o[s("0x38")],c=o[s("0x26")]&&typeof KendoLicensing===s("0x2b"),l=function(e,t){var n=e[s("0x8")];if(!n||!n[s("0x2d")]){if(s("0x11")==s("0x11"))return null}var i=new Set(t);return n[s("0x2a")]((function(e){if(s("0xa")!==s("0x18"))return i[s("0x14")](e[s("0x39")])}))}(o,e[s("0x2")]);if(r||c)if(s("0x29")!=s("0x29")){}else t={type:0,packageName:i,docsUrl:e[s("0x27")]};else if(s("0xf")===s("0x24")){}else if(l){if(s("0x12")!=s("0x12")){}else if(l[s("0x37")]<e[s("0x1c")])if(s("0x21")===s("0x32")){}else t={type:2,packageName:i,publishDate:p(e[s("0x1c")]),expiryDate:p(l[s("0x37")]),docsUrl:e[s("0x27")]}}else if(s("0x6")!=s("0x6")){}else t={type:1,packageName:i,docsUrl:e[s("0x27")]};if(t&&typeof console===s("0x30"))if(s("0x5")===s("0x3")){}else{var f=s("0x1b")+e[s("0xe")],d=typeof console[s("0x7")]===s("0x33");if(d)if(s("0xc")!=s("0xc")){}else console[s("0x7")](f);else if(s("0x17")!=s("0x17")){}else console[s("0x1e")](f);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)),d)if(s("0x1f")!==s("0x19"))console[s("0x2f")]();else{}}var h=!t;return u[s("0x0")](e[s("0x4")],h),h}function p(e){return new Date(1e3*e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(9),s=n(7),a=n(4),u=n(10),c=[s.PopupComponent],l=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[c],entryComponents:[c],exports:[c],imports:[r.CommonModule,a.ResizeSensorModule],providers:[u.PopupService]})],e)}();t.PopupModule=l}])}));
20
+ var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function r(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return(i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n}function s(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}function c(t,e){return function(n,o){e(n,o,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))}function f(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function p(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}function d(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function h(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(m(arguments[e]));return t}function y(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var o=Array(t),r=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,r++)o[r]=i[a];return o}function g(t){return this instanceof g?(this.v=t,this):new g(t)}function _(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(t,e||[]),i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(t){r[t]&&(o[t]=function(e){return new Promise((function(n,o){i.push([t,e,n,o])>1||s(t,e)}))})}function s(t,e){try{(n=r[t](e)).value instanceof g?Promise.resolve(n.value.v).then(c,l):u(i[0][2],n)}catch(t){u(i[0][3],t)}var n}function c(t){s("next",t)}function l(t){s("throw",t)}function u(t,e){t(e),i.shift(),i.length&&s(i[0][0],i[0][1])}}function b(t){var e,n;return e={},o("next"),o("throw",(function(t){throw t})),o("return"),e[Symbol.iterator]=function(){return this},e;function o(o,r){e[o]=t[o]?function(e){return(n=!n)?{value:g(t[o](e)),done:"return"===o}:r?r(e):e}:r}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=h(t),e={},o("next"),o("throw"),o("return"),e[Symbol.asyncIterator]=function(){return this},e);function o(n){e[n]=t[n]&&function(e){return new Promise((function(o,r){(function(t,e,n,o){Promise.resolve(o).then((function(e){t({value:e,done:n})}),e)})(o,r,(e=t[n](e)).done,e.value)}))}}}function S(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function O(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function P(t){return t&&t.__esModule?t:{default:t}}function E(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function C(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(10),r=n(3);e.eitherRect=function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},e.replaceOffset=function(t,e){return e?{height:t.height,left:e.left,top:e.top,width:t.width}:t},e.removeStackingOffset=function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t},e.isDifferentOffset=function(t,e){var n=t.left,o=t.top,r=e.left,i=e.top;return Math.abs(n-r)>=1||Math.abs(o-i)>=1},e.isWindowAvailable=function(){return"undefined"!=typeof window},e.hasBoundingRect=function(t){return!!t.getBoundingClientRect},e.OVERFLOW_REGEXP=/auto|scroll/;var i,a,s,c=function(t){return function(t){return""+t.style.overflow+t.style.overflowX+t.style.overflowY}(t)||function(t){var e=window.getComputedStyle(t);return""+e.overflow+e.overflowX+e.overflowY}(t)};e.scrollableParents=function(t){var n=[];if(!r.isDocumentAvailable()||!e.isWindowAvailable())return n;for(var o=t.parentElement;o;)(e.OVERFLOW_REGEXP.test(c(o))||o.hasAttribute("data-scrollable"))&&n.push(o),o=o.parentElement;return n.push(window),n},e.FRAME_DURATION=1e3/60,e.hasRelativeStackingContext=(i=function(){if(!r.isDocumentAvailable()&&null!==document.body)return!1;var t=document.createElement("div");t.style.transform="matrix(10, 0, 0, 10, 0, 0)",t.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(t);var e=10!==t.children[0].getBoundingClientRect().top;return document.body.removeChild(t),e},s=!1,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return s||(a=i.apply(void 0,t),s=!0),a}),e.zIndex=function(t,n){if(!t||!r.isDocumentAvailable()||!e.isWindowAvailable())return null;var i=o.siblingContainer(t,n);if(!i)return null;var a=[t].concat(o.parents(t,i)).reduce((function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(n,10);return o>t?o:t}),0);return a?a+1:null},e.scaleRect=function(t,e){return t&&1!==e?{height:t.height/e,left:t.left/e,top:t.top/e,width:t.width/e}:t}},function(t,n){t.exports=e},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0),i=n(10),a=n(2),s=n(3),c=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],l=function(){function t(){}return t.prototype.addOffset=function(t,e){return{left:t.left+e.left,top:t.top+e.top}},t.prototype.addScroll=function(t,e){return i.addScroll(t,e)},t.prototype.align=function(t){return i.align(t)},t.prototype.boundingOffset=function(t){return i.boundingOffset(this.nativeElement(t))},t.prototype.getFontStyles=function(t){var e=this.getWindow();if(!e||!t)return[];var n=e.getComputedStyle(this.nativeElement(t));return c.map((function(t){return{key:t,value:n[t]}}))},t.prototype.getWindow=function(){return a.isWindowAvailable()?window:null},t.prototype.hasOffsetParent=function(t){return!!t&&!!this.nativeElement(t).offsetParent},t.prototype.offset=function(t){return t?i.offset(this.nativeElement(t)):null},t.prototype.offsetAtPoint=function(t,e){if(!t)return null;var n=this.nativeElement(t),o=n.style,r=o.left,a=o.top,s=o.transition;n.style.transition="none",n.style.left=e.left+"px",n.style.top=e.top+"px";var c=i.offset(n);return n.style.left=r,n.style.top=a,n.offsetHeight,n.style.transition=s,c},t.prototype.nativeElement=function(t){return t?t.nativeElement||t:null},t.prototype.position=function(t,e,n){return void 0===n&&(n=1),t&&e?i.positionWithScroll(this.nativeElement(t),this.nativeElement(e),n):null},t.prototype.removeScroll=function(t,e){return i.removeScroll(t,e)},t.prototype.restrictToView=function(t){return i.restrictToView(t)},t.prototype.scrollPosition=function(t){return i.scrollPosition(this.nativeElement(t))},t.prototype.scrollableParents=function(t){return a.scrollableParents(this.nativeElement(t))},t.prototype.stackingElementOffset=function(t){var e=this.getRelativeContextElement(t);return e?i.offset(e):null},t.prototype.stackingElementScroll=function(t){var e=this.getRelativeContextElement(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},t.prototype.getRelativeContextElement=function(t){if(!t||!a.hasRelativeStackingContext())return null;for(var e=this.nativeElement(t).parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},t.prototype.useRelativePosition=function(t){return!!this.getRelativeContextElement(t)},t.prototype.windowViewPort=function(t){return i.getWindowViewPort(this.nativeElement(t))},t.prototype.zIndex=function(t,e){return a.zIndex(this.nativeElement(t),this.nativeElement(e))},t.prototype.zoomLevel=function(){return s.isDocumentAvailable()&&a.isWindowAvailable()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},t.prototype.isZoomed=function(){return this.zoomLevel()>1},t=o.__decorate([r.Injectable()],t)}();e.DOMService=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0),i=n(12),a=n(4),s=n(13),c=n(14),l=n(15),u=n(16),f=n(2),p=n(3),d=n(7),h=n(18),m=n(19),v={left:-1e4,top:0},y=function(){function t(t,e,n,o,i,a,s,c,l){this.container=t,this._alignService=e,this.domService=n,this._positionService=o,this._resizeService=i,this._scrollableService=a,this.animationService=s,this._renderer=c,this._zone=l,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=v,this.anchorViewportLeave=new r.EventEmitter,this.close=new r.EventEmitter,this.open=new r.EventEmitter,this.positionChange=new r.EventEmitter,this.resolvedPromise=Promise.resolve(null),this.initialCheck=!0,h.validatePackage(m.packageMetadata),this._renderer.addClass(t.nativeElement,"k-animation-container"),this.updateFixedClass()}return t.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=v,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass(),this.reposition()},t.prototype.ngOnChanges=function(t){t.copyAnchorStyles&&this.copyFontStyles(),t.positionMode&&this.updateFixedClass()},t.prototype.ngAfterViewInit=function(){var t=this;this.animate||this.resolvedPromise.then((function(){t.onAnimationEnd()}))},t.prototype.ngAfterViewChecked=function(){var t=this;this.initialCheck?this.initialCheck=!1:this._zone.runOutsideAngular((function(){t.unsubscribeReposition(),t.repositionSubscription=d.from(t.resolvedPromise).subscribe(t.reposition)}))},t.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()},t.prototype.onResize=function(){this.reposition()},t.prototype.onAnimationStart=function(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")},t.prototype.onAnimationEnd=function(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()},Object.defineProperty(t.prototype,"currentOffset",{get:function(){return this._currentOffset},set:function(t){this.setContainerStyle("left",t.left+"px"),this.setContainerStyle("top",t.top+"px"),this._currentOffset=t},enumerable:!0,configurable:!0}),t.prototype.setZIndex=function(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.anchor,this.container)))},t.prototype.reposition=function(){var t=this;if(p.isDocumentAvailable()){var e=this.position(),n=e.flip,o=e.offset;this.currentOffset&&!f.isDifferentOffset(this.currentOffset,o)||(this.currentOffset=o,p.hasObservers(this.positionChange)&&this._zone.run((function(){return t.positionChange.emit({offset:o,flip:n})}))),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,n),this.resizeSensor.acceptSize()}},t.prototype.position=function(){var t=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:t,element:this.container,elementAlign:this.popupAlign,margin:this.margin})},t.prototype.onScroll=function(t){var e=this,n=p.hasObservers(this.anchorViewportLeave);t||!n?this.reposition():n&&this._zone.run((function(){e.anchorViewportLeave.emit()}))},t.prototype.copyFontStyles=function(){var t=this;this.anchor&&this.copyAnchorStyles&&this.domService.getFontStyles(this.anchor).forEach((function(e){return t.setContainerStyle(e.key,e.value)}))},t.prototype.updateFixedClass=function(){var t="fixed"===this.positionMode?"addClass":"removeClass";this._renderer[t](this.container.nativeElement,"k-animation-container-fixed")},t.prototype.setContainerStyle=function(t,e){this._renderer.setStyle(this.container.nativeElement,t,e)},t.prototype.unsubscribeReposition=function(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()},o.__decorate([r.Input(),o.__metadata("design:type",Object)],t.prototype,"animate",void 0),o.__decorate([r.Input(),o.__metadata("design:type",r.ElementRef)],t.prototype,"anchor",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],t.prototype,"anchorAlign",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],t.prototype,"collision",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],t.prototype,"popupAlign",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],t.prototype,"copyAnchorStyles",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],t.prototype,"popupClass",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],t.prototype,"positionMode",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],t.prototype,"offset",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],t.prototype,"margin",void 0),o.__decorate([r.Output(),o.__metadata("design:type",r.EventEmitter)],t.prototype,"anchorViewportLeave",void 0),o.__decorate([r.Output(),o.__metadata("design:type",r.EventEmitter)],t.prototype,"close",void 0),o.__decorate([r.Output(),o.__metadata("design:type",r.EventEmitter)],t.prototype,"open",void 0),o.__decorate([r.Output(),o.__metadata("design:type",r.EventEmitter)],t.prototype,"positionChange",void 0),o.__decorate([r.ViewChild("container",{static:!0}),o.__metadata("design:type",r.ElementRef)],t.prototype,"contentContainer",void 0),o.__decorate([r.ViewChild(p.ResizeSensorComponent,{static:!0}),o.__metadata("design:type",p.ResizeSensorComponent)],t.prototype,"resizeSensor",void 0),t=o.__decorate([r.Component({exportAs:"kendo-popup",providers:[i.AlignService,u.AnimationService,a.DOMService,s.PositionService,c.ResizeService,l.ScrollableService],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 '}),o.__metadata("design:paramtypes",[r.ElementRef,i.AlignService,a.DOMService,s.PositionService,c.ResizeService,l.ScrollableService,u.AnimationService,r.Renderer2,r.NgZone])],t)}();e.PopupComponent=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0);e.SCALE=new o.InjectionToken("Popup Document Scale")},function(t,e){t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0),i=n(5);e.POPUP_CONTAINER=new r.InjectionToken("Popup Container");var a=function(){function t(t,e,n,o){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n,this.container=o}return Object.defineProperty(t.prototype,"rootViewContainer",{get:function(){var t=this.applicationRef.components||[];if(t[0])return t[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(t.prototype,"rootViewContainerNode",{get:function(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)},enumerable:!0,configurable:!0}),t.prototype.open=function(t){void 0===t&&(t={});var e=this.contentFrom(t.content),n=e.component,o=e.nodes,r=this.appendPopup(o,t.appendTo),i=r.instance;this.projectComponentInputs(r,t),r.changeDetectorRef.detectChanges(),n&&n.changeDetectorRef.detectChanges();var a=this.getComponentRootNode(r);return{close:function(){var t;n&&n.destroy(),r.destroy(),(t=a)&&t.parentNode&&t.parentNode.removeChild(t)},content:n,popup:r,popupAnchorViewportLeave:i.anchorViewportLeave,popupClose:i.close,popupElement:a,popupOpen:i.open,popupPositionChange:i.positionChange}},t.prototype.appendPopup=function(t,e){var n=this.createComponent(i.PopupComponent,t,e);return e||this.rootViewContainerNode.appendChild(this.getComponentRootNode(n)),n},t.prototype.getComponentRootNode=function(t){return t.location.nativeElement},t.prototype.getComponentFactory=function(t){return this.componentFactoryResolver.resolveComponentFactory(t)},t.prototype.createComponent=function(t,e,n){var o=this.getComponentFactory(t);if(n)return n.createComponent(o,void 0,this.injector,e);var r=o.create(this.injector,e);return this.applicationRef.attachView(r.hostView),r},t.prototype.projectComponentInputs=function(t,e){return Object.getOwnPropertyNames(e).filter((function(t){return"content"!==t||e.content instanceof r.TemplateRef})).map((function(n){t.instance[n]=e[n]})),t},t.prototype.contentFrom=function(t){if(!t||t instanceof r.TemplateRef)return{component:null,nodes:[[]]};var e=this.createComponent(t);return{component:e,nodes:[e?[e.location.nativeElement]:[]]}},t=o.__decorate([r.Injectable(),o.__param(3,r.Inject(e.POPUP_CONTAINER)),o.__param(3,r.Optional()),o.__metadata("design:paramtypes",[r.ApplicationRef,r.ComponentFactoryResolver,r.Injector,r.ElementRef])],t)}();e.PopupService=a},function(t,e){t.exports=o},function(t,e,n){"use strict";n.r(e),n.d(e,"align",(function(){return r})),n.d(e,"addScroll",(function(){return i})),n.d(e,"applyLocationOffset",(function(){return a})),n.d(e,"boundingOffset",(function(){return d})),n.d(e,"isBodyOffset",(function(){return m})),n.d(e,"offsetParent",(function(){return h})),n.d(e,"offset",(function(){return v})),n.d(e,"parents",(function(){return y})),n.d(e,"parentScrollPosition",(function(){return b})),n.d(e,"position",(function(){return w})),n.d(e,"positionWithScroll",(function(){return S})),n.d(e,"removeScroll",(function(){return O})),n.d(e,"restrictToView",(function(){return R})),n.d(e,"scrollPosition",(function(){return g})),n.d(e,"siblingContainer",(function(){return A})),n.d(e,"siblings",(function(){return x})),n.d(e,"zIndex",(function(){return j})),n.d(e,"alignElement",(function(){return q})),n.d(e,"domUtils",(function(){return H})),n.d(e,"utils",(function(){return T})),n.d(e,"positionElement",(function(){return X})),n.d(e,"getDocumentElement",(function(){return l})),n.d(e,"getWindow",(function(){return c})),n.d(e,"getWindowViewPort",(function(){return p})),n.d(e,"AlignPoint",(function(){return o})),n.d(e,"Collision",(function(){return P}));var o={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"},r=function(t){var e=t.anchorRect,n=t.anchorAlign,r=t.elementRect,i=t.elementAlign,a=t.margin;void 0===a&&(a={});var s=n.horizontal,c=n.vertical,l=i.horizontal,u=i.vertical,f=a.horizontal||0,p=a.vertical||0,d=e.top,h=e.left;return c===o.bottom&&(d+=e.height),c!==o.center&&c!==o.middle||(d+=Math.round(e.height/2)),u===o.bottom&&(d-=r.height,p*=-1),u!==o.center&&u!==o.middle||(d-=Math.round(r.height/2),p*=-1),s===o.right&&(h+=e.width),s!==o.center&&s!==o.middle||(h+=Math.round(e.width/2)),l===o.right&&(h-=r.width,f*=-1),l!==o.center&&l!==o.middle||(h-=Math.round(r.width/2),f*=-1),{top:d+p,left:h+f}};function i(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}}function a(t,e,n){var o=t.top,r=t.left;return n&&(r=0,o=0),{top:o+e.top,left:r+e.left,height:t.height,width:t.width}}function s(t){return t.ownerDocument||t.document||t}var c=function(t){return s(t).defaultView},l=function(t){return s(t).documentElement},u=0;function f(){if(!u&&"undefined"!=typeof document){var t=document.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",document.body.appendChild(t),u=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return u}function p(t){var e=c(t),n=l(t),o={height:e.innerHeight,width:e.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=f()),o}var d=function(t){if(!t.getBoundingClientRect){var e=p(t);return{bottom:e.height,left:0,right:e.width,top:0}}var n=t.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},h=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||l(t)},m=function(t){return h(t)===t.ownerDocument.body},v=function(t){var e=t.getBoundingClientRect(),n=e.left,o=e.top;return e.height||e.width||(e=function(t){var e=t.style,n=e.display,o=e.left,r=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";var i=t.getBoundingClientRect();return t.style.display=n,t.style.left=o,t.style.position=r,i}(t)),{top:o,left:n,height:e.height,width:e.width}},y=function(t,e){for(var n=[],o=t.parentNode;o&&(n.push(o),o!==e);)o=o.parentNode;return n};function g(t){var e=l(t),n=c(t);return{x:n.pageXOffset||e.scrollLeft||0,y:n.pageYOffset||e.scrollTop||0}}var _=function(t){return t===(t.ownerDocument||{}).body?g(t):{x:t.scrollLeft,y:t.scrollTop}};function b(t){var e=h(t);return e?_(e):{x:0,y:0}}var w=function(t,e){var n=c(t),o=n.getComputedStyle(t),r=v(t),i=e||h(t),a=t.ownerDocument,s=i!==a.body&&i!==a.documentElement,l={top:0,left:0};if("fixed"!==o.position&&s){var u=n.getComputedStyle(i);(l=v(i)).top+=parseInt(u.borderTopWidth,10),l.left+=parseInt(u.borderLeftWidth,10)}return{top:r.top-l.top,left:r.left-l.left,height:r.height,width:r.width}},S=function(t,e,n){void 0===n&&(n=1);var o=e?h(e):null,r=w(t,o),i=r.top,a=r.left,s=r.height,c=r.width,l=function(t,e){return t?_(t):b(e)}(o,t),u=l.x,f=l.y,p=t.ownerDocument,d=o===p.body||o===p.documentElement?1:n;return{top:i+f*d,left:a+u*d,height:s,width:c}};function O(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}}var P={fit:"fit",flip:"flip",none:"none"},E=function(t,e,n){var o=0;return t+e>n&&(o=n-(t+e)),t<0&&(o=-t),o},C=function(t){var e=t.offset,n=t.size,r=t.anchorSize,i=t.viewPortSize,a=t.anchorAlignPoint,s=t.elementAlignPoint,c=t.margin,l=0,u=s===o.center||s===o.middle,f=a===o.center||a===o.middle,p=2*c;if(s!==a&&!u&&!f){var d=a===o.top||a===o.left;e<0&&d?e+(l=n+r+p)+n>i&&(l=0):e>=0&&!d&&(e+n>i&&(l+=-(r+n+p)),e+l<0&&(l=0))}return l},R=function(t){var e=t.anchorRect,n=t.anchorAlign,o=t.elementRect,r=t.elementAlign,i=t.collisions,a=t.viewPort,s=t.margin;void 0===s&&(s={});var c=o.top,l=o.left,u=o.height,f=o.width,p=a.height,d=a.width,h=s.horizontal||0,m=s.vertical||0,v=0,y=0,g=i.vertical===P.fit,_=i.horizontal===P.fit,b=i.vertical===P.flip,w=i.horizontal===P.flip;g&&(y+=E(c,u,p)),_&&(v+=E(l,f,d)),b&&(y+=C({margin:m,offset:c,size:u,anchorSize:e.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),w&&(v+=C({margin:h,offset:l,size:f,anchorSize:e.width,viewPortSize:d,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var S=b&&0!==y,O=w&&0!==v,R=g&&0!==y,x=_&&0!==v;return{flipped:O||S,fitted:R||x,flip:{horizontal:O,vertical:S},fit:{horizontal:x,vertical:R},offset:{left:v,top:y}}},x=function(t){for(var e=[],n=t.parentNode.firstElementChild;n;)n!==t&&e.push(n),n=n.nextElementSibling;return e},A=function(t,e){for(var n,o,r=y(t),i=e;i&&(n=x(i),!(o=r.reduce((function(t,e){return t.concat(n.filter((function(t){return t===e})))}),[])[0]));)i=i.parentElement;return o};function j(t,e){if(!t||!e)return null;var n=A(t,e);if(!n)return null;var o=[t].concat(y(t,n)).reduce((function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(n,10);return o>t?o:t}),0);return o?o+1:null}var I,z,M,D=(I=function(t){if(!k())return!1;var e=t?t.ownerDocument:document;if(!e||!e.body)return!1;var n=e.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',e.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return e.body.removeChild(n),o},M=!1,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return M||(z=I.apply(void 0,t),M=!0),z}),k=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},T={eitherRect:function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},scaleRect:function(t,e){return t&&1!==e?{height:t.height/e,left:t.left/e,top:t.top/e,width:t.width/e}:t},removeStackingOffset:function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t},hasRelativeStackingContext:D,canUseDOM:k},F=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],L=function(){return T.canUseDOM()?window:null},V=/auto|scroll/,N=function(t){return function(t){return""+t.style.overflow+t.style.overflowX+t.style.overflowY}(t)||function(t){var e=window.getComputedStyle(t);return""+e.overflow+e.overflowX+e.overflowY}(t)},W=function(t){if(!t||!T.hasRelativeStackingContext())return null;for(var e=t.parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},U=function(){return T.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},H={addOffset:function(t,e){return{left:t.left+e.left,top:t.top+e.top}},addScroll:i,align:r,boundingOffset:d,getFontStyles:function(t){var e=L();if(!e||!t)return[];var n=e.getComputedStyle(t);return F.map((function(t){return{key:t,value:n[t]}}))},getWindow:L,hasOffsetParent:function(t){return!!t&&Boolean(t.offsetParent)},offset:function(t){return t?v(t):null},offsetAtPoint:function(t,e){if(!t)return null;var n=t.style,o=n.left,r=n.top,i=n.transition;t.style.transition="none",t.style.left=e.left+"px",t.style.top=e.top+"px";var a=v(t);return t.style.left=o,t.style.top=r,t.offsetHeight,t.style.transition=i,a},position:function(t,e,n){return t&&e?S(t,e,n||1):null},removeScroll:O,restrictToView:R,scrollPosition:g,scrollableParents:function(t){var e=[];if(!T.canUseDOM())return e;for(var n=t.parentElement;n;)(V.test(N(n))||n.hasAttribute("data-scrollable"))&&e.push(n),n=n.parentElement;return e.push(window),e},getRelativeContextElement:W,stackingElementOffset:function(t){var e=W(t);return e?v(e):null},stackingElementScroll:function(t){var e=W(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(t){var e=W(t);return e?{height:e.scrollHeight,width:e.scrollWidth}:null},useRelativePosition:function(t){return Boolean(W(t))},windowViewPort:p,zoomLevel:U,isZoomed:function(){return U()>1},zIndex:function(t,e){if(!t||!T.canUseDOM())return null;var n=A(t,e);if(!n)return null;var o=[t].concat(y(t,n)).reduce((function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(n,10);return o>t?o:t}),0);return o?o+1:null}},B=function(t,e){return t?{x:0,y:0}:H.scrollPosition(e)},q=function(t){var e=t.anchor,n=t.element,o=t.anchorAlign,r=t.elementAlign,i=t.margin,a=t.offset,s=t.positionMode,c=t.scale||1,l="fixed"===s||!H.hasOffsetParent(n)?function(t,e,n,o){var r=B(t,e),i=T.eitherRect(H.offset(t),n),a=2*o,s=H.stackingElementScroll(e);1!==o&&s&&(s.x/=a,s.y/=a);var c=H.stackingElementOffset(e);return 1!==o&&c&&(c.left/=a,c.top/=a),H.removeScroll(H.addScroll(T.removeStackingOffset(T.scaleRect(i,o),c),s),r)}(e,n,a,c):function(t,e,n,o){var r=T.eitherRect(H.position(t,e,o),n);return T.scaleRect(r,o)}(e,n,a,c),u=T.scaleRect(H.offset(n),c);return H.align({anchorAlign:o,anchorRect:l,elementAlign:r,elementRect:u,margin:i})},X=function(t){var e=t.anchor,n=t.currentLocation,o=t.element,r=t.anchorAlign,i=t.elementAlign,a=t.collisions,s=t.margin,c=t.scale||1,l=H.offsetAtPoint(o,n),u=T.scaleRect(l,c),f=T.scaleRect(H.offset(e),c),p=T.eitherRect(f,n),d=t.viewPort||H.windowViewPort(o);d.width=d.width/c,d.height=d.height/c;var h=H.restrictToView({anchorAlign:r,anchorRect:p,collisions:a,elementAlign:i,elementRect:u,margin:s,viewPort:d}),m=H.addOffset(n,h.offset);return{flip:h.flip,flipped:h.flipped,offset:m}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(8);e.PopupService=o.PopupService,e.POPUP_CONTAINER=o.POPUP_CONTAINER;var r=n(5);e.PopupComponent=r.PopupComponent;var i=n(20);e.PopupModule=i.PopupModule;var a=n(6);e.SCALE=a.SCALE},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0),i=n(4),a=n(2),s=n(6),c=function(){function t(t,e){void 0===e&&(e=1),this._dom=t,this.scale=e}return t.prototype.alignElement=function(t){var e=t.anchor,n=t.element,o=t.anchorAlign,r=t.elementAlign,i=t.margin,s=t.offset,c=t.positionMode,l=this.scale||1,u="fixed"===c||!this._dom.hasOffsetParent(n)?this.absoluteRect(e,n,s,l):this.relativeRect(e,n,s,l),f=a.scaleRect(this._dom.offset(n),l);return this._dom.align({anchorAlign:o,anchorRect:u,elementAlign:r,elementRect:f,margin:i})},t.prototype.absoluteRect=function(t,e,n,o){var r=this.elementScrollPosition(t,e),i=a.eitherRect(this._dom.offset(t),n),s=2*o,c=this._dom.stackingElementScroll(e);1!==o&&c&&(c.x/=s,c.y/=s);var l=this._dom.stackingElementOffset(e);return 1!==o&&l&&(l.left/=s,l.top/=s),this._dom.removeScroll(this._dom.addScroll(a.removeStackingOffset(a.scaleRect(i,o),l),c),r)},t.prototype.elementScrollPosition=function(t,e){return t?{x:0,y:0}:this._dom.scrollPosition(e)},t.prototype.relativeRect=function(t,e,n,o){var r=a.eitherRect(this._dom.position(t,e,o),n);return a.scaleRect(r,o)},t=o.__decorate([r.Injectable(),o.__param(1,r.Inject(s.SCALE)),o.__param(1,r.Optional()),o.__metadata("design:paramtypes",[i.DOMService,Number])],t)}();e.AlignService=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0),i=n(4),a=n(2),s=n(6),c=function(){function t(t,e){void 0===e&&(e=1),this._dom=t,this.scale=e}return t.prototype.positionElement=function(t){var e=t.anchor,n=t.currentLocation,o=t.element,r=t.anchorAlign,i=t.elementAlign,s=t.collisions,c=t.margin,l=this._dom,u=this.scale||1,f=l.offsetAtPoint(o,n),p=a.scaleRect(f,u),d=a.scaleRect(l.offset(e),u),h=a.eitherRect(d,n),m=t.viewPort||l.windowViewPort(o);m.width=m.width/u,m.height=m.height/u;var v=l.restrictToView({anchorAlign:r,anchorRect:h,collisions:s,elementAlign:i,elementRect:p,margin:c,viewPort:m}),y=l.addOffset(n,v.offset);return{flip:v.flip,flipped:v.flipped,offset:y}},t=o.__decorate([r.Injectable(),o.__param(1,r.Inject(s.SCALE)),o.__param(1,r.Optional()),o.__metadata("design:paramtypes",[i.DOMService,Number])],t)}();e.PositionService=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0),i=n(7),a=n(9),s=n(3),c=n(2),l=n(4),u=function(){function t(t,e){this._dom=t,this._zone=e}return t.prototype.subscribe=function(t){var e=this;s.isDocumentAvailable()&&this._zone.runOutsideAngular((function(){e.subscription=i.fromEvent(e._dom.getWindow(),"resize").pipe(a.auditTime(c.FRAME_DURATION)).subscribe((function(){return t()}))}))},t.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},t=o.__decorate([r.Injectable(),o.__metadata("design:paramtypes",[l.DOMService,r.NgZone])],t)}();e.ResizeService=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0),i=n(7),a=n(9),s=n(3),c=n(4),l=n(2);e.THRESHOLD_DIFF=1;var u=function(){function t(t,e){this._dom=t,this._zone=e}return t.prototype.forElement=function(t){return this.unsubscribe(),this.element=t,this},t.prototype.subscribe=function(t){var e=this;if(t&&s.isDocumentAvailable()&&this.element){var n=this._dom.nativeElement(this.element),o=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular((function(){var r=o.map((function(t){return i.fromEvent(t,"scroll").pipe(a.auditTime(l.FRAME_DURATION))}));e.subscription=i.merge.apply(void 0,r).subscribe((function(r){var i=r.target,a=o.filter((function(t){return t===i})).length>0,s=i===document,c=i===window;(a||s||c)&&t(e.isVisible(n,i))}))}))}},t.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.isVisible=function(t,n){var o=this._dom.boundingOffset(t),r=this._dom.boundingOffset(n);return!(e.THRESHOLD_DIFF<r.top-o.bottom)&&(!(e.THRESHOLD_DIFF<o.top-r.bottom)&&(!(e.THRESHOLD_DIFF<o.left-r.right)&&!(e.THRESHOLD_DIFF<r.left-o.right)))},t=o.__decorate([r.Injectable(),o.__metadata("design:paramtypes",[c.DOMService,r.NgZone])],t)}();e.ScrollableService=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0),i=n(17),a={expand:function(t){var e="up"===t||"down"===t?"scaleY":"scaleX";return{start:{transform:e+"(0)",transformOrigin:"down"===t?"top":"left"===t?"right":"right"===t?"left":"bottom"},end:{transform:e+"(1)"}}},slide:function(t){var e="left"===t||"right"===t?"translateX":"translateY";return{start:{transform:e+"("+("right"===t||"down"===t?-100:100)+"%)"},end:{transform:e+"(0%)"}}},fade:function(){return{start:{opacity:0},end:{opacity:1}}},zoom:function(){return{start:{transform:"scale(0)"},end:{transform:"scale(1)"}}}},s=function(){function t(t){this.animationBuilder=t,this.start=new r.EventEmitter,this.end=new r.EventEmitter}return t.prototype.play=function(t,e,n){if(!this.flip||this.flip.horizontal!==n.horizontal||this.flip.vertical!==n.vertical){this.flip=n;var o=e.type||"slide",i=a[o];if(i){var s=i(this.getDirection(n,e));this.playStates(t,s,e)}else if(r.isDevMode())throw new Error('Unsupported animation type: "'+o+'". The supported types are slide, expand, fade and zoom.')}},t.prototype.ngOnDestroy=function(){this.stopPlayer()},t.prototype.playStates=function(t,e,n){var o=this;this.stopPlayer();var r=n.duration||100,a=this.animationBuilder.build([i.style(e.start),i.animate(r+"ms ease-in",i.style(e.end))]),s=this.player=a.create(t);s.onDone((function(){o.end.emit(),o.stopPlayer()})),this.start.emit(),s.play()},t.prototype.getDirection=function(t,e){var n=e.direction||"down";return t.horizontal&&("left"===n?n="right":"right"===n&&(n="left")),t.vertical&&("down"===n?n="up":"up"===n&&(n="down")),n},t.prototype.stopPlayer=function(){this.player&&(this.player.destroy(),this.player=null)},t=o.__decorate([r.Injectable(),o.__metadata("design:paramtypes",[i.AnimationBuilder])],t)}();e.AnimationService=s},function(t,e){t.exports=r},function(t,e){t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646821120,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(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0),i=n(21),a=n(5),s=n(3),c=n(8),l=[a.PopupComponent],u=function(){function t(){}return t=o.__decorate([r.NgModule({declarations:[l],entryComponents:[l],exports:[l],imports:[i.CommonModule,s.ResizeSensorModule],providers:[c.PopupService]})],t)}();e.PopupModule=u},function(t,e){t.exports=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("@angular/core"),require("tslib"),require("@progress/kendo-angular-common"),require("rxjs"),require("@progress/kendo-popup-common"),require("rxjs/operators"),require("@angular/animations"),require("@progress/kendo-licensing"),require("@angular/common")):"function"==typeof define&&define.amd?define(["@angular/core","tslib","@progress/kendo-angular-common","rxjs","@progress/kendo-popup-common","rxjs/operators","@angular/animations","@progress/kendo-licensing","@angular/common"],t):"object"==typeof exports?exports.KendoAngularPopup=t(require("@angular/core"),require("tslib"),require("@progress/kendo-angular-common"),require("rxjs"),require("@progress/kendo-popup-common"),require("rxjs/operators"),require("@angular/animations"),require("@progress/kendo-licensing"),require("@angular/common")):e.KendoAngularPopup=t(e["@angular/core"],e.tslib,e["@progress/kendo-angular-common"],e.rxjs,e["@progress/kendo-popup-common"],e["rxjs/operators"],e["@angular/animations"],e["@progress/kendo-licensing"],e["@angular/common"])}(window,(function(e,t,n,o,i,r,s,a,p){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=11)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(9),i=n(3);t.eitherRect=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},t.replaceOffset=function(e,t){return t?{height:e.height,left:t.left,top:t.top,width:e.width}:e},t.removeStackingOffset=function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e},t.isDifferentOffset=function(e,t){var n=e.left,o=e.top,i=t.left,r=t.top;return Math.abs(n-i)>=1||Math.abs(o-r)>=1},t.isWindowAvailable=function(){return"undefined"!=typeof window},t.hasBoundingRect=function(e){return!!e.getBoundingClientRect},t.OVERFLOW_REGEXP=/auto|scroll/;var r,s,a,p=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)};t.scrollableParents=function(e){var n=[];if(!i.isDocumentAvailable()||!t.isWindowAvailable())return n;for(var o=e.parentElement;o;)(t.OVERFLOW_REGEXP.test(p(o))||o.hasAttribute("data-scrollable"))&&n.push(o),o=o.parentElement;return n.push(window),n},t.FRAME_DURATION=1e3/60,t.hasRelativeStackingContext=(r=function(){if(!i.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},a=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a||(s=r.apply(void 0,e),a=!0),s}),t.zIndex=function(e,n){if(!e||!i.isDocumentAvailable()||!t.isWindowAvailable())return null;var r=o.siblingContainer(e,n);if(!r)return null;var s=[e].concat(o.parents(e,r)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,o=parseInt(n,10);return o>e?o:e}),0);return s?s+1:null},t.scaleRect=function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e}},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(9),s=n(2),a=n(3),p=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],c=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 r.addScroll(e,t)},e.prototype.align=function(e){return r.align(e)},e.prototype.boundingOffset=function(e){return r.boundingOffset(this.nativeElement(e))},e.prototype.getFontStyles=function(e){var t=this.getWindow();if(!t||!e)return[];var n=t.getComputedStyle(this.nativeElement(e));return p.map((function(e){return{key:e,value:n[e]}}))},e.prototype.getWindow=function(){return s.isWindowAvailable()?window:null},e.prototype.hasOffsetParent=function(e){return!!e&&!!this.nativeElement(e).offsetParent},e.prototype.offset=function(e){return e?r.offset(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,s=o.top,a=o.transition;n.style.transition="none",n.style.left=t.left+"px",n.style.top=t.top+"px";var p=r.offset(n);return n.style.left=i,n.style.top=s,n.offsetHeight,n.style.transition=a,p},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?r.positionWithScroll(this.nativeElement(e),this.nativeElement(t),n):null},e.prototype.removeScroll=function(e,t){return r.removeScroll(e,t)},e.prototype.restrictToView=function(e){return r.restrictToView(e)},e.prototype.scrollPosition=function(e){return r.scrollPosition(this.nativeElement(e))},e.prototype.scrollableParents=function(e){return s.scrollableParents(this.nativeElement(e))},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?r.offset(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||!s.hasRelativeStackingContext())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 r.getWindowViewPort(this.nativeElement(e))},e.prototype.zIndex=function(e,t){return s.zIndex(this.nativeElement(e),this.nativeElement(t))},e.prototype.zoomLevel=function(){return a.isDocumentAvailable()&&s.isWindowAvailable()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e=o.__decorate([i.Injectable()],e)}();t.DOMService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(12),s=n(4),a=n(13),p=n(14),c=n(15),l=n(16),u=n(2),d=n(3),f=n(7),h=n(18),m=n(19),v={left:-1e4,top:0},y=function(){function e(e,t,n,o,r,s,a,p,c){this.container=e,this._alignService=t,this.domService=n,this._positionService=o,this._resizeService=r,this._scrollableService=s,this.animationService=a,this._renderer=p,this._zone=c,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=v,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,h.validatePackage(m.packageMetadata),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=v,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=f.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(d.isDocumentAvailable()){var t=this.position(),n=t.flip,o=t.offset;this.currentOffset&&!u.isDifferentOffset(this.currentOffset,o)||(this.currentOffset=o,d.hasObservers(this.positionChange)&&this._zone.run((function(){return e.positionChange.emit({offset:o,flip:n})}))),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,n),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=d.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()},o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"animate",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",Object)],e.prototype,"anchorAlign",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"collision",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"popupAlign",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],e.prototype,"copyAnchorStyles",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"popupClass",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"positionMode",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"offset",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"margin",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"anchorViewportLeave",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"close",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"open",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"positionChange",void 0),o.__decorate([i.ViewChild("container",{static:!0}),o.__metadata("design:type",i.ElementRef)],e.prototype,"contentContainer",void 0),o.__decorate([i.ViewChild(d.ResizeSensorComponent,{static:!0}),o.__metadata("design:type",d.ResizeSensorComponent)],e.prototype,"resizeSensor",void 0),e=o.__decorate([i.Component({exportAs:"kendo-popup",providers:[r.AlignService,l.AnimationService,s.DOMService,a.PositionService,p.ResizeService,c.ScrollableService],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 '}),o.__metadata("design:paramtypes",[i.ElementRef,r.AlignService,s.DOMService,a.PositionService,p.ResizeService,c.ScrollableService,l.AnimationService,i.Renderer2,i.NgZone])],e)}();t.PopupComponent=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);t.SCALE=new o.InjectionToken("Popup Document Scale")},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(5);t.POPUP_CONTAINER=new i.InjectionToken("Popup Container");var s=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(r.PopupComponent,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=o.__decorate([i.Injectable(),o.__param(3,i.Inject(t.POPUP_CONTAINER)),o.__param(3,i.Optional()),o.__metadata("design:paramtypes",[i.ApplicationRef,i.ComponentFactoryResolver,i.Injector,i.ElementRef])],e)}();t.PopupService=s},function(e,t){e.exports=i},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(8);t.PopupService=o.PopupService,t.POPUP_CONTAINER=o.POPUP_CONTAINER;var i=n(5);t.PopupComponent=i.PopupComponent;var r=n(20);t.PopupModule=r.PopupModule;var s=n(6);t.SCALE=s.SCALE},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(6),p=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,a=e.offset,p=e.positionMode,c=this.scale||1,l="fixed"===p||!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,a,c):this.relativeRect(t,n,a,c),u=s.scaleRect(this._dom.offset(n),c);return this._dom.align({anchorAlign:o,anchorRect:l,elementAlign:i,elementRect:u,margin:r})},e.prototype.absoluteRect=function(e,t,n,o){var i=this.elementScrollPosition(e,t),r=s.eitherRect(this._dom.offset(e),n),a=2*o,p=this._dom.stackingElementScroll(t);1!==o&&p&&(p.x/=a,p.y/=a);var c=this._dom.stackingElementOffset(t);return 1!==o&&c&&(c.left/=a,c.top/=a),this._dom.removeScroll(this._dom.addScroll(s.removeStackingOffset(s.scaleRect(r,o),c),p),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=s.eitherRect(this._dom.position(e,t,o),n);return s.scaleRect(i,o)},e=o.__decorate([i.Injectable(),o.__param(1,i.Inject(a.SCALE)),o.__param(1,i.Optional()),o.__metadata("design:paramtypes",[r.DOMService,Number])],e)}();t.AlignService=p},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(6),p=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,a=e.collisions,p=e.margin,c=this._dom,l=this.scale||1,u=c.offsetAtPoint(o,n),d=s.scaleRect(u,l),f=s.scaleRect(c.offset(t),l),h=s.eitherRect(f,n),m=e.viewPort||c.windowViewPort(o);m.width=m.width/l,m.height=m.height/l;var v=c.restrictToView({anchorAlign:i,anchorRect:h,collisions:a,elementAlign:r,elementRect:d,margin:p,viewPort:m}),y=c.addOffset(n,v.offset);return{flip:v.flip,flipped:v.flipped,offset:y}},e=o.__decorate([i.Injectable(),o.__param(1,i.Inject(a.SCALE)),o.__param(1,i.Optional()),o.__metadata("design:paramtypes",[r.DOMService,Number])],e)}();t.PositionService=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(7),s=n(10),a=n(3),p=n(2),c=n(4),l=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.subscribe=function(e){var t=this;a.isDocumentAvailable()&&this._zone.runOutsideAngular((function(){t.subscription=r.fromEvent(t._dom.getWindow(),"resize").pipe(s.auditTime(p.FRAME_DURATION)).subscribe((function(){return e()}))}))},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},e=o.__decorate([i.Injectable(),o.__metadata("design:paramtypes",[c.DOMService,i.NgZone])],e)}();t.ResizeService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(7),s=n(10),a=n(3),p=n(4),c=n(2);t.THRESHOLD_DIFF=1;var l=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&&a.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 r.fromEvent(e,"scroll").pipe(s.auditTime(c.FRAME_DURATION))}));t.subscription=r.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,p=r===window;(s||a||p)&&e(t.isVisible(n,r))}))}))}},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isVisible=function(e,n){var o=this._dom.boundingOffset(e),i=this._dom.boundingOffset(n);return!(t.THRESHOLD_DIFF<i.top-o.bottom)&&(!(t.THRESHOLD_DIFF<o.top-i.bottom)&&(!(t.THRESHOLD_DIFF<o.left-i.right)&&!(t.THRESHOLD_DIFF<i.left-o.right)))},e=o.__decorate([i.Injectable(),o.__metadata("design:paramtypes",[p.DOMService,i.NgZone])],e)}();t.ScrollableService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(17),s={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)"}}}},a=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=s[o];if(r){var a=r(this.getDirection(n,t));this.playStates(e,a,t)}else if(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,s=this.animationBuilder.build([r.style(t.start),r.animate(i+"ms ease-in",r.style(t.end))]),a=this.player=s.create(e);a.onDone((function(){o.end.emit(),o.stopPlayer()})),this.start.emit(),a.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=o.__decorate([i.Injectable(),o.__metadata("design:paramtypes",[r.AnimationBuilder])],e)}();t.AnimationService=a},function(e,t){e.exports=s},function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(21),s=n(5),a=n(3),p=n(8),c=[s.PopupComponent],l=function(){function e(){}return e=o.__decorate([i.NgModule({declarations:[c],entryComponents:[c],exports:[c],imports:[r.CommonModule,a.ResizeSensorModule],providers:[p.PopupService]})],e)}();t.PopupModule=l},function(e,t){e.exports=p}])}));
5
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core"),require("tslib"),require("@progress/kendo-angular-common"),require("rxjs"),require("@progress/kendo-popup-common"),require("rxjs/operators"),require("@angular/animations"),require("@progress/kendo-licensing"),require("@angular/common")):"function"==typeof define&&define.amd?define([,,,,,,,,],t):"object"==typeof exports?exports.KendoAngularPopup=t(require("@angular/core"),require("tslib"),require("@progress/kendo-angular-common"),require("rxjs"),require("@progress/kendo-popup-common"),require("rxjs/operators"),require("@angular/animations"),require("@progress/kendo-licensing"),require("@angular/common")):e.KendoAngularPopup=t(e.ng.core,e.self,e.KendoAngularCommon,e.rxjs,e.KendoPopupCommon,e.rxjs.operators,e.ng.animations,e.KendoLicensing,e.ng.common)}(window,(function(e,t,n,o,i,r,s,a,p){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=11)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(9),i=n(3);t.eitherRect=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},t.replaceOffset=function(e,t){return t?{height:e.height,left:t.left,top:t.top,width:e.width}:e},t.removeStackingOffset=function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e},t.isDifferentOffset=function(e,t){var n=e.left,o=e.top,i=t.left,r=t.top;return Math.abs(n-i)>=1||Math.abs(o-r)>=1},t.isWindowAvailable=function(){return"undefined"!=typeof window},t.hasBoundingRect=function(e){return!!e.getBoundingClientRect},t.OVERFLOW_REGEXP=/auto|scroll/;var r,s,a,p=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)};t.scrollableParents=function(e){var n=[];if(!i.isDocumentAvailable()||!t.isWindowAvailable())return n;for(var o=e.parentElement;o;)(t.OVERFLOW_REGEXP.test(p(o))||o.hasAttribute("data-scrollable"))&&n.push(o),o=o.parentElement;return n.push(window),n},t.FRAME_DURATION=1e3/60,t.hasRelativeStackingContext=(r=function(){if(!i.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},a=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a||(s=r.apply(void 0,e),a=!0),s}),t.zIndex=function(e,n){if(!e||!i.isDocumentAvailable()||!t.isWindowAvailable())return null;var r=o.siblingContainer(e,n);if(!r)return null;var s=[e].concat(o.parents(e,r)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,o=parseInt(n,10);return o>e?o:e}),0);return s?s+1:null},t.scaleRect=function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e}},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(9),s=n(2),a=n(3),p=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],c=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 r.addScroll(e,t)},e.prototype.align=function(e){return r.align(e)},e.prototype.boundingOffset=function(e){return r.boundingOffset(this.nativeElement(e))},e.prototype.getFontStyles=function(e){var t=this.getWindow();if(!t||!e)return[];var n=t.getComputedStyle(this.nativeElement(e));return p.map((function(e){return{key:e,value:n[e]}}))},e.prototype.getWindow=function(){return s.isWindowAvailable()?window:null},e.prototype.hasOffsetParent=function(e){return!!e&&!!this.nativeElement(e).offsetParent},e.prototype.offset=function(e){return e?r.offset(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,s=o.top,a=o.transition;n.style.transition="none",n.style.left=t.left+"px",n.style.top=t.top+"px";var p=r.offset(n);return n.style.left=i,n.style.top=s,n.offsetHeight,n.style.transition=a,p},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?r.positionWithScroll(this.nativeElement(e),this.nativeElement(t),n):null},e.prototype.removeScroll=function(e,t){return r.removeScroll(e,t)},e.prototype.restrictToView=function(e){return r.restrictToView(e)},e.prototype.scrollPosition=function(e){return r.scrollPosition(this.nativeElement(e))},e.prototype.scrollableParents=function(e){return s.scrollableParents(this.nativeElement(e))},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?r.offset(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||!s.hasRelativeStackingContext())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 r.getWindowViewPort(this.nativeElement(e))},e.prototype.zIndex=function(e,t){return s.zIndex(this.nativeElement(e),this.nativeElement(t))},e.prototype.zoomLevel=function(){return a.isDocumentAvailable()&&s.isWindowAvailable()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e=o.__decorate([i.Injectable()],e)}();t.DOMService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(12),s=n(4),a=n(13),p=n(14),c=n(15),l=n(16),u=n(2),f=n(3),d=n(7),h=n(18),m=n(19),v={left:-1e4,top:0},y=function(){function e(e,t,n,o,r,s,a,p,c){this.container=e,this._alignService=t,this.domService=n,this._positionService=o,this._resizeService=r,this._scrollableService=s,this.animationService=a,this._renderer=p,this._zone=c,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=v,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,h.validatePackage(m.packageMetadata),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=v,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=d.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(f.isDocumentAvailable()){var t=this.position(),n=t.flip,o=t.offset;this.currentOffset&&!u.isDifferentOffset(this.currentOffset,o)||(this.currentOffset=o,f.hasObservers(this.positionChange)&&this._zone.run((function(){return e.positionChange.emit({offset:o,flip:n})}))),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,n),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=f.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()},o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"animate",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",Object)],e.prototype,"anchorAlign",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"collision",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"popupAlign",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],e.prototype,"copyAnchorStyles",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"popupClass",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"positionMode",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"offset",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"margin",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"anchorViewportLeave",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"close",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"open",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"positionChange",void 0),o.__decorate([i.ViewChild("container",{static:!0}),o.__metadata("design:type",i.ElementRef)],e.prototype,"contentContainer",void 0),o.__decorate([i.ViewChild(f.ResizeSensorComponent,{static:!0}),o.__metadata("design:type",f.ResizeSensorComponent)],e.prototype,"resizeSensor",void 0),e=o.__decorate([i.Component({exportAs:"kendo-popup",providers:[r.AlignService,l.AnimationService,s.DOMService,a.PositionService,p.ResizeService,c.ScrollableService],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 '}),o.__metadata("design:paramtypes",[i.ElementRef,r.AlignService,s.DOMService,a.PositionService,p.ResizeService,c.ScrollableService,l.AnimationService,i.Renderer2,i.NgZone])],e)}();t.PopupComponent=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);t.SCALE=new o.InjectionToken("Popup Document Scale")},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(5);t.POPUP_CONTAINER=new i.InjectionToken("Popup Container");var s=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(r.PopupComponent,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=o.__decorate([i.Injectable(),o.__param(3,i.Inject(t.POPUP_CONTAINER)),o.__param(3,i.Optional()),o.__metadata("design:paramtypes",[i.ApplicationRef,i.ComponentFactoryResolver,i.Injector,i.ElementRef])],e)}();t.PopupService=s},function(e,t){e.exports=i},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(8);t.PopupService=o.PopupService,t.POPUP_CONTAINER=o.POPUP_CONTAINER;var i=n(5);t.PopupComponent=i.PopupComponent;var r=n(20);t.PopupModule=r.PopupModule;var s=n(6);t.SCALE=s.SCALE},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(6),p=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,a=e.offset,p=e.positionMode,c=this.scale||1,l="fixed"===p||!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,a,c):this.relativeRect(t,n,a,c),u=s.scaleRect(this._dom.offset(n),c);return this._dom.align({anchorAlign:o,anchorRect:l,elementAlign:i,elementRect:u,margin:r})},e.prototype.absoluteRect=function(e,t,n,o){var i=this.elementScrollPosition(e,t),r=s.eitherRect(this._dom.offset(e),n),a=2*o,p=this._dom.stackingElementScroll(t);1!==o&&p&&(p.x/=a,p.y/=a);var c=this._dom.stackingElementOffset(t);return 1!==o&&c&&(c.left/=a,c.top/=a),this._dom.removeScroll(this._dom.addScroll(s.removeStackingOffset(s.scaleRect(r,o),c),p),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=s.eitherRect(this._dom.position(e,t,o),n);return s.scaleRect(i,o)},e=o.__decorate([i.Injectable(),o.__param(1,i.Inject(a.SCALE)),o.__param(1,i.Optional()),o.__metadata("design:paramtypes",[r.DOMService,Number])],e)}();t.AlignService=p},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(6),p=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,a=e.collisions,p=e.margin,c=this._dom,l=this.scale||1,u=c.offsetAtPoint(o,n),f=s.scaleRect(u,l),d=s.scaleRect(c.offset(t),l),h=s.eitherRect(d,n),m=e.viewPort||c.windowViewPort(o);m.width=m.width/l,m.height=m.height/l;var v=c.restrictToView({anchorAlign:i,anchorRect:h,collisions:a,elementAlign:r,elementRect:f,margin:p,viewPort:m}),y=c.addOffset(n,v.offset);return{flip:v.flip,flipped:v.flipped,offset:y}},e=o.__decorate([i.Injectable(),o.__param(1,i.Inject(a.SCALE)),o.__param(1,i.Optional()),o.__metadata("design:paramtypes",[r.DOMService,Number])],e)}();t.PositionService=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(7),s=n(10),a=n(3),p=n(2),c=n(4),l=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.subscribe=function(e){var t=this;a.isDocumentAvailable()&&this._zone.runOutsideAngular((function(){t.subscription=r.fromEvent(t._dom.getWindow(),"resize").pipe(s.auditTime(p.FRAME_DURATION)).subscribe((function(){return e()}))}))},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},e=o.__decorate([i.Injectable(),o.__metadata("design:paramtypes",[c.DOMService,i.NgZone])],e)}();t.ResizeService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(7),s=n(10),a=n(3),p=n(4),c=n(2);t.THRESHOLD_DIFF=1;var l=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&&a.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 r.fromEvent(e,"scroll").pipe(s.auditTime(c.FRAME_DURATION))}));t.subscription=r.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,p=r===window;(s||a||p)&&e(t.isVisible(n,r))}))}))}},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isVisible=function(e,n){var o=this._dom.boundingOffset(e),i=this._dom.boundingOffset(n);return!(t.THRESHOLD_DIFF<i.top-o.bottom)&&(!(t.THRESHOLD_DIFF<o.top-i.bottom)&&(!(t.THRESHOLD_DIFF<o.left-i.right)&&!(t.THRESHOLD_DIFF<i.left-o.right)))},e=o.__decorate([i.Injectable(),o.__metadata("design:paramtypes",[p.DOMService,i.NgZone])],e)}();t.ScrollableService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(17),s={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)"}}}},a=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=s[o];if(r){var a=r(this.getDirection(n,t));this.playStates(e,a,t)}else if(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,s=this.animationBuilder.build([r.style(t.start),r.animate(i+"ms ease-in",r.style(t.end))]),a=this.player=s.create(e);a.onDone((function(){o.end.emit(),o.stopPlayer()})),this.start.emit(),a.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=o.__decorate([i.Injectable(),o.__metadata("design:paramtypes",[r.AnimationBuilder])],e)}();t.AnimationService=a},function(e,t){e.exports=s},function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646821120,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),r=n(21),s=n(5),a=n(3),p=n(8),c=[s.PopupComponent],l=function(){function e(){}return e=o.__decorate([i.NgModule({declarations:[c],entryComponents:[c],exports:[c],imports:[r.CommonModule,a.ResizeSensorModule],providers:[p.PopupService]})],e)}();t.PopupModule=l},function(e,t){e.exports=p}])}));
@@ -9,7 +9,7 @@ export var packageMetadata = {
9
9
  name: '@progress/kendo-angular-popup',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1642583997,
12
+ publishDate: 1646821120,
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-popup',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1642583997,
12
+ publishDate: 1646821120,
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
  };
@@ -639,7 +639,7 @@ const packageMetadata = {
639
639
  name: '@progress/kendo-angular-popup',
640
640
  productName: 'Kendo UI for Angular',
641
641
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
642
- publishDate: 1642583997,
642
+ publishDate: 1646821120,
643
643
  version: '',
644
644
  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'
645
645
  };
@@ -657,7 +657,7 @@ var packageMetadata = {
657
657
  name: '@progress/kendo-angular-popup',
658
658
  productName: 'Kendo UI for Angular',
659
659
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
660
- publishDate: 1642583997,
660
+ publishDate: 1646821120,
661
661
  version: '',
662
662
  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'
663
663
  };
@@ -11,7 +11,7 @@ exports.packageMetadata = {
11
11
  name: '@progress/kendo-angular-popup',
12
12
  productName: 'Kendo UI for Angular',
13
13
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
14
- publishDate: 1642583997,
14
+ publishDate: 1646821120,
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-popup",["tslib","@angular/core","@angular/common","@progress/kendo-angular-common","rxjs","@progress/kendo-licensing","@progress/kendo-popup-common","rxjs/operators","@angular/animations"],function(r){var s,a,p,c,l,u,f,d,h;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){s=e(t)},function(t){a=e(t)},function(t){p=e(t)},function(t){c=e(t)},function(t){l=e(t)},function(t){u=e(t)},function(t){f=e(t)},function(t){d=e(t)},function(t){h=e(t)}],execute:function(){function o(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var n,i;i={},o.m=n=[function(t,e){t.exports=a},function(t,e){t.exports=s},function(t,e){t.exports=c},function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e(9),r=e(2);i.eitherRect=function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},i.replaceOffset=function(t,e){return e?{height:t.height,left:e.left,top:e.top,width:t.width}:t},i.removeStackingOffset=function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t},i.isDifferentOffset=function(t,e){var n=t.left,o=t.top,t=e.left,e=e.top;return 1<=Math.abs(n-t)||1<=Math.abs(o-e)},i.isWindowAvailable=function(){return"undefined"!=typeof window},i.hasBoundingRect=function(t){return!!t.getBoundingClientRect},i.OVERFLOW_REGEXP=/auto|scroll/;var o,s;i.scrollableParents=function(t){var e=[];if(!r.isDocumentAvailable()||!i.isWindowAvailable())return e;for(var n,o=t.parentElement;o;)(i.OVERFLOW_REGEXP.test(""+(n=o).style.overflow+n.style.overflowX+n.style.overflowY||""+(n=window.getComputedStyle(n)).overflow+n.overflowX+n.overflowY)||o.hasAttribute("data-scrollable"))&&e.push(o),o=o.parentElement;return e.push(window),e},i.FRAME_DURATION=1e3/60,i.hasRelativeStackingContext=(s=!1,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return s||(o=function(){if(!r.isDocumentAvailable()&&null!==document.body)return!1;var t=document.createElement("div");t.style.transform="matrix(10, 0, 0, 10, 0, 0)",t.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(t);var e=10!==t.children[0].getBoundingClientRect().top;return document.body.removeChild(t),e}.apply(void 0,t),s=!0),o}),i.zIndex=function(t,e){if(!t||!r.isDocumentAvailable()||!i.isWindowAvailable())return null;e=n.siblingContainer(t,e);if(!e)return null;e=[t].concat(n.parents(t,e)).reduce(function(t,e){e=e.style.zIndex||window.getComputedStyle(e).zIndex,e=parseInt(e,10);return t<e?e:t},0);return e?e+1:null},i.scaleRect=function(t,e){return t&&1!==e?{height:t.height/e,left:t.left/e,top:t.top/e,width:t.width/e}:t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(9),s=n(3),a=n(2),p=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],i=(c.prototype.addOffset=function(t,e){return{left:t.left+e.left,top:t.top+e.top}},c.prototype.addScroll=function(t,e){return r.addScroll(t,e)},c.prototype.align=function(t){return r.align(t)},c.prototype.boundingOffset=function(t){return r.boundingOffset(this.nativeElement(t))},c.prototype.getFontStyles=function(t){var e=this.getWindow();if(!e||!t)return[];var n=e.getComputedStyle(this.nativeElement(t));return p.map(function(t){return{key:t,value:n[t]}})},c.prototype.getWindow=function(){return s.isWindowAvailable()?window:null},c.prototype.hasOffsetParent=function(t){return!!t&&!!this.nativeElement(t).offsetParent},c.prototype.offset=function(t){return t?r.offset(this.nativeElement(t)):null},c.prototype.offsetAtPoint=function(t,e){if(!t)return null;var n=this.nativeElement(t),o=n.style,i=o.left,t=o.top,o=o.transition;n.style.transition="none",n.style.left=e.left+"px",n.style.top=e.top+"px";e=r.offset(n);return n.style.left=i,n.style.top=t,n.offsetHeight,n.style.transition=o,e},c.prototype.nativeElement=function(t){return t?t.nativeElement||t:null},c.prototype.position=function(t,e,n){return void 0===n&&(n=1),t&&e?r.positionWithScroll(this.nativeElement(t),this.nativeElement(e),n):null},c.prototype.removeScroll=function(t,e){return r.removeScroll(t,e)},c.prototype.restrictToView=function(t){return r.restrictToView(t)},c.prototype.scrollPosition=function(t){return r.scrollPosition(this.nativeElement(t))},c.prototype.scrollableParents=function(t){return s.scrollableParents(this.nativeElement(t))},c.prototype.stackingElementOffset=function(t){t=this.getRelativeContextElement(t);return t?r.offset(t):null},c.prototype.stackingElementScroll=function(t){t=this.getRelativeContextElement(t);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},c.prototype.getRelativeContextElement=function(t){if(!t||!s.hasRelativeStackingContext())return null;for(var e=this.nativeElement(t).parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},c.prototype.useRelativePosition=function(t){return!!this.getRelativeContextElement(t)},c.prototype.windowViewPort=function(t){return r.getWindowViewPort(this.nativeElement(t))},c.prototype.zIndex=function(t,e){return s.zIndex(this.nativeElement(t),this.nativeElement(e))},c.prototype.zoomLevel=function(){return a.isDocumentAvailable()&&s.isWindowAvailable()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},c.prototype.isZoomed=function(){return 1<this.zoomLevel()},o.__decorate([i.Injectable()],c));function c(){}e.DOMService=i},function(t,e){t.exports=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});n=n(0);e.SCALE=new n.InjectionToken("Popup Document Scale")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),c=n(0),i=n(20),r=n(4),s=n(19),a=n(18),p=n(17),l=n(16),u=n(3),f=n(2),d=n(5),h=n(14),m=n(13),v={left:-1e4,top:0},l=(y.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=v,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass(),this.reposition()},y.prototype.ngOnChanges=function(t){t.copyAnchorStyles&&this.copyFontStyles(),t.positionMode&&this.updateFixedClass()},y.prototype.ngAfterViewInit=function(){var t=this;this.animate||this.resolvedPromise.then(function(){t.onAnimationEnd()})},y.prototype.ngAfterViewChecked=function(){var t=this;this.initialCheck?this.initialCheck=!1:this._zone.runOutsideAngular(function(){t.unsubscribeReposition(),t.repositionSubscription=d.from(t.resolvedPromise).subscribe(t.reposition)})},y.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()},y.prototype.onResize=function(){this.reposition()},y.prototype.onAnimationStart=function(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")},y.prototype.onAnimationEnd=function(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()},Object.defineProperty(y.prototype,"currentOffset",{get:function(){return this._currentOffset},set:function(t){this.setContainerStyle("left",t.left+"px"),this.setContainerStyle("top",t.top+"px"),this._currentOffset=t},enumerable:!0,configurable:!0}),y.prototype.setZIndex=function(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.anchor,this.container)))},y.prototype.reposition=function(){var t,e,n,o=this;f.isDocumentAvailable()&&(t=this.position(),e=t.flip,n=t.offset,this.currentOffset&&!u.isDifferentOffset(this.currentOffset,n)||(this.currentOffset=n,f.hasObservers(this.positionChange)&&this._zone.run(function(){return o.positionChange.emit({offset:n,flip:e})})),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,e),this.resizeSensor.acceptSize())},y.prototype.position=function(){var t=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:t,element:this.container,elementAlign:this.popupAlign,margin:this.margin})},y.prototype.onScroll=function(t){var e=this,n=f.hasObservers(this.anchorViewportLeave);t||!n?this.reposition():n&&this._zone.run(function(){e.anchorViewportLeave.emit()})},y.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)})},y.prototype.updateFixedClass=function(){var t="fixed"===this.positionMode?"addClass":"removeClass";this._renderer[t](this.container.nativeElement,"k-animation-container-fixed")},y.prototype.setContainerStyle=function(t,e){this._renderer.setStyle(this.container.nativeElement,t,e)},y.prototype.unsubscribeReposition=function(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()},o.__decorate([c.Input(),o.__metadata("design:type",Object)],y.prototype,"animate",void 0),o.__decorate([c.Input(),o.__metadata("design:type",c.ElementRef)],y.prototype,"anchor",void 0),o.__decorate([c.Input(),o.__metadata("design:type",Object)],y.prototype,"anchorAlign",void 0),o.__decorate([c.Input(),o.__metadata("design:type",Object)],y.prototype,"collision",void 0),o.__decorate([c.Input(),o.__metadata("design:type",Object)],y.prototype,"popupAlign",void 0),o.__decorate([c.Input(),o.__metadata("design:type",Boolean)],y.prototype,"copyAnchorStyles",void 0),o.__decorate([c.Input(),o.__metadata("design:type",Object)],y.prototype,"popupClass",void 0),o.__decorate([c.Input(),o.__metadata("design:type",String)],y.prototype,"positionMode",void 0),o.__decorate([c.Input(),o.__metadata("design:type",Object)],y.prototype,"offset",void 0),o.__decorate([c.Input(),o.__metadata("design:type",Object)],y.prototype,"margin",void 0),o.__decorate([c.Output(),o.__metadata("design:type",c.EventEmitter)],y.prototype,"anchorViewportLeave",void 0),o.__decorate([c.Output(),o.__metadata("design:type",c.EventEmitter)],y.prototype,"close",void 0),o.__decorate([c.Output(),o.__metadata("design:type",c.EventEmitter)],y.prototype,"open",void 0),o.__decorate([c.Output(),o.__metadata("design:type",c.EventEmitter)],y.prototype,"positionChange",void 0),o.__decorate([c.ViewChild("container",{static:!0}),o.__metadata("design:type",c.ElementRef)],y.prototype,"contentContainer",void 0),o.__decorate([c.ViewChild(f.ResizeSensorComponent,{static:!0}),o.__metadata("design:type",f.ResizeSensorComponent)],y.prototype,"resizeSensor",void 0),o.__decorate([c.Component({exportAs:"kendo-popup",providers:[i.AlignService,l.AnimationService,r.DOMService,s.PositionService,a.ResizeService,p.ScrollableService],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 '}),o.__metadata("design:paramtypes",[c.ElementRef,i.AlignService,r.DOMService,s.PositionService,a.ResizeService,p.ScrollableService,l.AnimationService,c.Renderer2,c.NgZone])],y));function y(t,e,n,o,i,r,s,a,p){this.container=t,this._alignService=e,this.domService=n,this._positionService=o,this._resizeService=i,this._scrollableService=r,this.animationService=s,this._renderer=a,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=v,this.anchorViewportLeave=new c.EventEmitter,this.close=new c.EventEmitter,this.open=new c.EventEmitter,this.positionChange=new c.EventEmitter,this.resolvedPromise=Promise.resolve(null),this.initialCheck=!0,h.validatePackage(m.packageMetadata),this._renderer.addClass(t.nativeElement,"k-animation-container"),this.updateFixedClass()}e.PopupComponent=l},function(t,e){t.exports=d},function(t,e){t.exports=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(7);e.POPUP_CONTAINER=new i.InjectionToken("Popup Container");Object.defineProperty(s.prototype,"rootViewContainer",{get:function(){var t=this.applicationRef.components||[];if(t[0])return t[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(s.prototype,"rootViewContainerNode",{get:function(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)},enumerable:!0,configurable:!0}),s.prototype.open=function(t){var e=this.contentFrom((t=void 0===t?{}:t).content),n=e.component,e=e.nodes,o=this.appendPopup(e,t.appendTo),e=o.instance;this.projectComponentInputs(o,t),o.changeDetectorRef.detectChanges(),n&&n.changeDetectorRef.detectChanges();var i=this.getComponentRootNode(o);return{close:function(){var t;n&&n.destroy(),o.destroy(),(t=i)&&t.parentNode&&t.parentNode.removeChild(t)},content:n,popup:o,popupAnchorViewportLeave:e.anchorViewportLeave,popupClose:e.close,popupElement:i,popupOpen:e.open,popupPositionChange:e.positionChange}},s.prototype.appendPopup=function(t,e){t=this.createComponent(r.PopupComponent,t,e);return e||this.rootViewContainerNode.appendChild(this.getComponentRootNode(t)),t},s.prototype.getComponentRootNode=function(t){return t.location.nativeElement},s.prototype.getComponentFactory=function(t){return this.componentFactoryResolver.resolveComponentFactory(t)},s.prototype.createComponent=function(t,e,n){t=this.getComponentFactory(t);if(n)return n.createComponent(t,void 0,this.injector,e);e=t.create(this.injector,e);return this.applicationRef.attachView(e.hostView),e},s.prototype.projectComponentInputs=function(e,n){return Object.getOwnPropertyNames(n).filter(function(t){return"content"!==t||n.content instanceof i.TemplateRef}).map(function(t){e.instance[t]=n[t]}),e},s.prototype.contentFrom=function(t){if(!t||t instanceof i.TemplateRef)return{component:null,nodes:[[]]};t=this.createComponent(t);return{component:t,nodes:[t?[t.location.nativeElement]:[]]}},o=o.__decorate([i.Injectable(),o.__param(3,i.Inject(e.POPUP_CONTAINER)),o.__param(3,i.Optional()),o.__metadata("design:paramtypes",[i.ApplicationRef,i.ComponentFactoryResolver,i.Injector,i.ElementRef])],s);function s(t,e,n,o){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n,this.container=o}e.PopupService=o},function(t,e){t.exports=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(11),s=n(7),a=n(2),n=n(10),s=[s.PopupComponent],n=o.__decorate([i.NgModule({declarations:[s],entryComponents:[s],exports:[s],imports:[r.CommonModule,a.ResizeSensorModule],providers:[n.PopupService]})],p);function p(){}e.PopupModule=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={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"}},function(t,e){t.exports=u},function(t,e){t.exports=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0),i=n(15),s={expand:function(t){var e="up"===t||"down"===t?"scaleY":"scaleX";return{start:{transform:e+"(0)",transformOrigin:"down"===t?"top":"left"===t?"right":"right"===t?"left":"bottom"},end:{transform:e+"(1)"}}},slide:function(t){var e="left"===t||"right"===t?"translateX":"translateY";return{start:{transform:e+"("+("right"===t||"down"===t?-100:100)+"%)"},end:{transform:e+"(0%)"}}},fade:function(){return{start:{opacity:0},end:{opacity:1}}},zoom:function(){return{start:{transform:"scale(0)"},end:{transform:"scale(1)"}}}},o=(a.prototype.play=function(t,e,n){if(!this.flip||this.flip.horizontal!==n.horizontal||this.flip.vertical!==n.vertical){this.flip=n;var o=e.type||"slide",i=s[o];if(i){n=i(this.getDirection(n,e));this.playStates(t,n,e)}else if(r.isDevMode())throw new Error('Unsupported animation type: "'+o+'". The supported types are slide, expand, fade and zoom.')}},a.prototype.ngOnDestroy=function(){this.stopPlayer()},a.prototype.playStates=function(t,e,n){var o=this;this.stopPlayer();n=n.duration||100,e=this.animationBuilder.build([i.style(e.start),i.animate(n+"ms ease-in",i.style(e.end))]),t=this.player=e.create(t);t.onDone(function(){o.end.emit(),o.stopPlayer()}),this.start.emit(),t.play()},a.prototype.getDirection=function(t,e){e=e.direction||"down";return t.horizontal&&("left"===e?e="right":"right"===e&&(e="left")),t.vertical&&("down"===e?e="up":"up"===e&&(e="down")),e},a.prototype.stopPlayer=function(){this.player&&(this.player.destroy(),this.player=null)},o.__decorate([r.Injectable(),o.__metadata("design:paramtypes",[i.AnimationBuilder])],a));function a(t){this.animationBuilder=t,this.start=new r.EventEmitter,this.end=new r.EventEmitter}e.AnimationService=o},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=e(1),i=e(0),p=e(5),c=e(8),l=e(2),r=e(4),u=e(3);n.THRESHOLD_DIFF=1;s.prototype.forElement=function(t){return this.unsubscribe(),this.element=t,this},s.prototype.subscribe=function(i){var r,s,a=this;i&&l.isDocumentAvailable()&&this.element&&(r=this._dom.nativeElement(this.element),s=this._dom.scrollableParents(this.element),this._zone.runOutsideAngular(function(){var t=s.map(function(t){return p.fromEvent(t,"scroll").pipe(c.auditTime(u.FRAME_DURATION))});a.subscription=p.merge.apply(void 0,t).subscribe(function(t){var e=t.target,n=0<s.filter(function(t){return t===e}).length,o=e===document,t=e===window;(n||o||t)&&i(a.isVisible(r,e))})}))},s.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},s.prototype.isVisible=function(t,e){t=this._dom.boundingOffset(t),e=this._dom.boundingOffset(e);return!(n.THRESHOLD_DIFF<e.top-t.bottom||n.THRESHOLD_DIFF<t.top-e.bottom||n.THRESHOLD_DIFF<t.left-e.right||n.THRESHOLD_DIFF<e.left-t.right)},i=o.__decorate([i.Injectable(),o.__metadata("design:paramtypes",[r.DOMService,i.NgZone])],s);function s(t,e){this._dom=t,this._zone=e}n.ScrollableService=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(5),s=n(8),a=n(2),p=n(3),n=n(4),i=(c.prototype.subscribe=function(t){var e=this;a.isDocumentAvailable()&&this._zone.runOutsideAngular(function(){e.subscription=r.fromEvent(e._dom.getWindow(),"resize").pipe(s.auditTime(p.FRAME_DURATION)).subscribe(function(){return t()})})},c.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},c.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},o.__decorate([i.Injectable(),o.__metadata("design:paramtypes",[n.DOMService,i.NgZone])],c));function c(t,e){this._dom=t,this._zone=e}e.ResizeService=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(4),u=n(3),n=n(6),r=(s.prototype.positionElement=function(t){var e=t.anchor,n=t.currentLocation,o=t.element,i=t.anchorAlign,r=t.elementAlign,s=t.collisions,a=t.margin,p=this._dom,c=this.scale||1,l=p.offsetAtPoint(o,n),l=u.scaleRect(l,c),e=u.scaleRect(p.offset(e),c),e=u.eitherRect(e,n),o=t.viewPort||p.windowViewPort(o);o.width=o.width/c,o.height=o.height/c;o=p.restrictToView({anchorAlign:i,anchorRect:e,collisions:s,elementAlign:r,elementRect:l,margin:a,viewPort:o}),n=p.addOffset(n,o.offset);return{flip:o.flip,flipped:o.flipped,offset:n}},o.__decorate([i.Injectable(),o.__param(1,i.Inject(n.SCALE)),o.__param(1,i.Optional()),o.__metadata("design:paramtypes",[r.DOMService,Number])],s));function s(t,e){void 0===e&&(e=1),this._dom=t,this.scale=e}e.PositionService=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(4),p=n(3),n=n(6),r=(s.prototype.alignElement=function(t){var e=t.anchor,n=t.element,o=t.anchorAlign,i=t.elementAlign,r=t.margin,s=t.offset,a=t.positionMode,t=this.scale||1,s="fixed"!==a&&this._dom.hasOffsetParent(n)?this.relativeRect(e,n,s,t):this.absoluteRect(e,n,s,t),t=p.scaleRect(this._dom.offset(n),t);return this._dom.align({anchorAlign:o,anchorRect:s,elementAlign:i,elementRect:t,margin:r})},s.prototype.absoluteRect=function(t,e,n,o){var i=this.elementScrollPosition(t,e),r=p.eitherRect(this._dom.offset(t),n),t=2*o,n=this._dom.stackingElementScroll(e);1!==o&&n&&(n.x/=t,n.y/=t);e=this._dom.stackingElementOffset(e);return 1!==o&&e&&(e.left/=t,e.top/=t),this._dom.removeScroll(this._dom.addScroll(p.removeStackingOffset(p.scaleRect(r,o),e),n),i)},s.prototype.elementScrollPosition=function(t,e){return t?{x:0,y:0}:this._dom.scrollPosition(e)},s.prototype.relativeRect=function(t,e,n,o){n=p.eitherRect(this._dom.position(t,e,o),n);return p.scaleRect(n,o)},o.__decorate([i.Injectable(),o.__param(1,i.Inject(n.SCALE)),o.__param(1,i.Optional()),o.__metadata("design:paramtypes",[r.DOMService,Number])],s));function s(t,e){void 0===e&&(e=1),this._dom=t,this.scale=e}e.AlignService=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(10);e.PopupService=o.PopupService,e.POPUP_CONTAINER=o.POPUP_CONTAINER;o=n(7);e.PopupComponent=o.PopupComponent;o=n(12);e.PopupModule=o.PopupModule;n=n(6);e.SCALE=n.SCALE,function(t){for(var e in t)r(e,t[e])}(e)}],o.c=i,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},o.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=21)}}});
5
+ System.register("@progress/kendo-angular-popup",["@angular/core","@progress/kendo-angular-common","rxjs","@progress/kendo-licensing","tslib","@angular/common","@progress/kendo-popup-common","rxjs/operators","@angular/animations"],function(s){var r,a,p,c,l,u,f,d,h;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){r=e(t)},function(t){a=e(t)},function(t){p=e(t)},function(t){c=e(t)},function(t){l=e(t)},function(t){u=e(t)},function(t){f=e(t)},function(t){d=e(t)},function(t){h=e(t)}],execute:function(){function o(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var n,i;n=[function(t,e){t.exports=r},function(t,e){t.exports=l},function(t,e){t.exports=a},function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n,o,r=e(9),s=e(2);i.eitherRect=function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},i.replaceOffset=function(t,e){return e?{height:t.height,left:e.left,top:e.top,width:t.width}:t},i.removeStackingOffset=function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t},i.isDifferentOffset=function(t,e){var n=t.left,t=t.top,o=e.left,e=e.top;return 1<=Math.abs(n-o)||1<=Math.abs(t-e)},i.isWindowAvailable=function(){return"undefined"!=typeof window},i.hasBoundingRect=function(t){return!!t.getBoundingClientRect},i.OVERFLOW_REGEXP=/auto|scroll/;i.scrollableParents=function(t){var e=[];if(!s.isDocumentAvailable()||!i.isWindowAvailable())return e;for(var n,o=t.parentElement;o;)(i.OVERFLOW_REGEXP.test(""+(n=o).style.overflow+n.style.overflowX+n.style.overflowY||""+(n=window.getComputedStyle(n)).overflow+n.overflowX+n.overflowY)||o.hasAttribute("data-scrollable"))&&e.push(o),o=o.parentElement;return e.push(window),e},i.FRAME_DURATION=1e3/60,i.hasRelativeStackingContext=(o=!1,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o||(n=function(){if(!s.isDocumentAvailable()&&null!==document.body)return!1;var t=document.createElement("div"),e=(t.style.transform="matrix(10, 0, 0, 10, 0, 0)",t.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(t),10!==t.children[0].getBoundingClientRect().top);return document.body.removeChild(t),e}.apply(void 0,t),o=!0),n}),i.zIndex=function(t,e){if(!t||!s.isDocumentAvailable()||!i.isWindowAvailable())return null;e=r.siblingContainer(t,e);if(!e)return null;t=[t].concat(r.parents(t,e)).reduce(function(t,e){e=e.style.zIndex||window.getComputedStyle(e).zIndex,e=parseInt(e,10);return t<e?e:t},0);return t?t+1:null},i.scaleRect=function(t,e){return t&&1!==e?{height:t.height/e,left:t.left/e,top:t.top/e,width:t.width/e}:t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(9),s=n(3),a=n(2),p=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],n=(c.prototype.addOffset=function(t,e){return{left:t.left+e.left,top:t.top+e.top}},c.prototype.addScroll=function(t,e){return r.addScroll(t,e)},c.prototype.align=function(t){return r.align(t)},c.prototype.boundingOffset=function(t){return r.boundingOffset(this.nativeElement(t))},c.prototype.getFontStyles=function(t){var e=this.getWindow();if(!e||!t)return[];var n=e.getComputedStyle(this.nativeElement(t));return p.map(function(t){return{key:t,value:n[t]}})},c.prototype.getWindow=function(){return s.isWindowAvailable()?window:null},c.prototype.hasOffsetParent=function(t){return!!t&&!!this.nativeElement(t).offsetParent},c.prototype.offset=function(t){return t?r.offset(this.nativeElement(t)):null},c.prototype.offsetAtPoint=function(t,e){if(!t)return null;var t=this.nativeElement(t),n=t.style,o=n.left,i=n.top,n=n.transition,e=(t.style.transition="none",t.style.left=e.left+"px",t.style.top=e.top+"px",r.offset(t));return t.style.left=o,t.style.top=i,t.offsetHeight,t.style.transition=n,e},c.prototype.nativeElement=function(t){return t?t.nativeElement||t:null},c.prototype.position=function(t,e,n){return void 0===n&&(n=1),t&&e?r.positionWithScroll(this.nativeElement(t),this.nativeElement(e),n):null},c.prototype.removeScroll=function(t,e){return r.removeScroll(t,e)},c.prototype.restrictToView=function(t){return r.restrictToView(t)},c.prototype.scrollPosition=function(t){return r.scrollPosition(this.nativeElement(t))},c.prototype.scrollableParents=function(t){return s.scrollableParents(this.nativeElement(t))},c.prototype.stackingElementOffset=function(t){t=this.getRelativeContextElement(t);return t?r.offset(t):null},c.prototype.stackingElementScroll=function(t){t=this.getRelativeContextElement(t);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},c.prototype.getRelativeContextElement=function(t){if(!t||!s.hasRelativeStackingContext())return null;for(var e=this.nativeElement(t).parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},c.prototype.useRelativePosition=function(t){return!!this.getRelativeContextElement(t)},c.prototype.windowViewPort=function(t){return r.getWindowViewPort(this.nativeElement(t))},c.prototype.zIndex=function(t,e){return s.zIndex(this.nativeElement(t),this.nativeElement(e))},c.prototype.zoomLevel=function(){return a.isDocumentAvailable()&&s.isWindowAvailable()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},c.prototype.isZoomed=function(){return 1<this.zoomLevel()},o.__decorate([i.Injectable()],c));function c(){}e.DOMService=n},function(t,e){t.exports=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});n=n(0);e.SCALE=new n.InjectionToken("Popup Document Scale")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),c=n(0),i=n(20),r=n(4),s=n(19),a=n(18),p=n(17),l=n(16),u=n(3),f=n(2),d=n(5),h=n(14),m=n(13),v={left:-1e4,top:0},n=(y.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=v,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass(),this.reposition()},y.prototype.ngOnChanges=function(t){t.copyAnchorStyles&&this.copyFontStyles(),t.positionMode&&this.updateFixedClass()},y.prototype.ngAfterViewInit=function(){var t=this;this.animate||this.resolvedPromise.then(function(){t.onAnimationEnd()})},y.prototype.ngAfterViewChecked=function(){var t=this;this.initialCheck?this.initialCheck=!1:this._zone.runOutsideAngular(function(){t.unsubscribeReposition(),t.repositionSubscription=d.from(t.resolvedPromise).subscribe(t.reposition)})},y.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()},y.prototype.onResize=function(){this.reposition()},y.prototype.onAnimationStart=function(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")},y.prototype.onAnimationEnd=function(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()},Object.defineProperty(y.prototype,"currentOffset",{get:function(){return this._currentOffset},set:function(t){this.setContainerStyle("left",t.left+"px"),this.setContainerStyle("top",t.top+"px"),this._currentOffset=t},enumerable:!0,configurable:!0}),y.prototype.setZIndex=function(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.anchor,this.container)))},y.prototype.reposition=function(){var t,e,n,o=this;f.isDocumentAvailable()&&(t=this.position(),e=t.flip,n=t.offset,this.currentOffset&&!u.isDifferentOffset(this.currentOffset,n)||(this.currentOffset=n,f.hasObservers(this.positionChange)&&this._zone.run(function(){return o.positionChange.emit({offset:n,flip:e})})),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,e),this.resizeSensor.acceptSize())},y.prototype.position=function(){var t=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:t,element:this.container,elementAlign:this.popupAlign,margin:this.margin})},y.prototype.onScroll=function(t){var e=this,n=f.hasObservers(this.anchorViewportLeave);t||!n?this.reposition():n&&this._zone.run(function(){e.anchorViewportLeave.emit()})},y.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)})},y.prototype.updateFixedClass=function(){var t="fixed"===this.positionMode?"addClass":"removeClass";this._renderer[t](this.container.nativeElement,"k-animation-container-fixed")},y.prototype.setContainerStyle=function(t,e){this._renderer.setStyle(this.container.nativeElement,t,e)},y.prototype.unsubscribeReposition=function(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()},o.__decorate([c.Input(),o.__metadata("design:type",Object)],y.prototype,"animate",void 0),o.__decorate([c.Input(),o.__metadata("design:type",c.ElementRef)],y.prototype,"anchor",void 0),o.__decorate([c.Input(),o.__metadata("design:type",Object)],y.prototype,"anchorAlign",void 0),o.__decorate([c.Input(),o.__metadata("design:type",Object)],y.prototype,"collision",void 0),o.__decorate([c.Input(),o.__metadata("design:type",Object)],y.prototype,"popupAlign",void 0),o.__decorate([c.Input(),o.__metadata("design:type",Boolean)],y.prototype,"copyAnchorStyles",void 0),o.__decorate([c.Input(),o.__metadata("design:type",Object)],y.prototype,"popupClass",void 0),o.__decorate([c.Input(),o.__metadata("design:type",String)],y.prototype,"positionMode",void 0),o.__decorate([c.Input(),o.__metadata("design:type",Object)],y.prototype,"offset",void 0),o.__decorate([c.Input(),o.__metadata("design:type",Object)],y.prototype,"margin",void 0),o.__decorate([c.Output(),o.__metadata("design:type",c.EventEmitter)],y.prototype,"anchorViewportLeave",void 0),o.__decorate([c.Output(),o.__metadata("design:type",c.EventEmitter)],y.prototype,"close",void 0),o.__decorate([c.Output(),o.__metadata("design:type",c.EventEmitter)],y.prototype,"open",void 0),o.__decorate([c.Output(),o.__metadata("design:type",c.EventEmitter)],y.prototype,"positionChange",void 0),o.__decorate([c.ViewChild("container",{static:!0}),o.__metadata("design:type",c.ElementRef)],y.prototype,"contentContainer",void 0),o.__decorate([c.ViewChild(f.ResizeSensorComponent,{static:!0}),o.__metadata("design:type",f.ResizeSensorComponent)],y.prototype,"resizeSensor",void 0),o.__decorate([c.Component({exportAs:"kendo-popup",providers:[i.AlignService,l.AnimationService,r.DOMService,s.PositionService,a.ResizeService,p.ScrollableService],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 '}),o.__metadata("design:paramtypes",[c.ElementRef,i.AlignService,r.DOMService,s.PositionService,a.ResizeService,p.ScrollableService,l.AnimationService,c.Renderer2,c.NgZone])],y));function y(t,e,n,o,i,r,s,a,p){this.container=t,this._alignService=e,this.domService=n,this._positionService=o,this._resizeService=i,this._scrollableService=r,this.animationService=s,this._renderer=a,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=v,this.anchorViewportLeave=new c.EventEmitter,this.close=new c.EventEmitter,this.open=new c.EventEmitter,this.positionChange=new c.EventEmitter,this.resolvedPromise=Promise.resolve(null),this.initialCheck=!0,h.validatePackage(m.packageMetadata),this._renderer.addClass(t.nativeElement,"k-animation-container"),this.updateFixedClass()}e.PopupComponent=n},function(t,e){t.exports=d},function(t,e){t.exports=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(7),n=(e.POPUP_CONTAINER=new i.InjectionToken("Popup Container"),Object.defineProperty(s.prototype,"rootViewContainer",{get:function(){var t=this.applicationRef.components||[];if(t[0])return t[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(s.prototype,"rootViewContainerNode",{get:function(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)},enumerable:!0,configurable:!0}),s.prototype.open=function(t){var e=this.contentFrom((t=void 0===t?{}:t).content),n=e.component,e=e.nodes,o=this.appendPopup(e,t.appendTo),e=o.instance,i=(this.projectComponentInputs(o,t),o.changeDetectorRef.detectChanges(),n&&n.changeDetectorRef.detectChanges(),this.getComponentRootNode(o));return{close:function(){var t;n&&n.destroy(),o.destroy(),(t=i)&&t.parentNode&&t.parentNode.removeChild(t)},content:n,popup:o,popupAnchorViewportLeave:e.anchorViewportLeave,popupClose:e.close,popupElement:i,popupOpen:e.open,popupPositionChange:e.positionChange}},s.prototype.appendPopup=function(t,e){t=this.createComponent(r.PopupComponent,t,e);return e||this.rootViewContainerNode.appendChild(this.getComponentRootNode(t)),t},s.prototype.getComponentRootNode=function(t){return t.location.nativeElement},s.prototype.getComponentFactory=function(t){return this.componentFactoryResolver.resolveComponentFactory(t)},s.prototype.createComponent=function(t,e,n){t=this.getComponentFactory(t);if(n)return n.createComponent(t,void 0,this.injector,e);n=t.create(this.injector,e);return this.applicationRef.attachView(n.hostView),n},s.prototype.projectComponentInputs=function(e,n){return Object.getOwnPropertyNames(n).filter(function(t){return"content"!==t||n.content instanceof i.TemplateRef}).map(function(t){e.instance[t]=n[t]}),e},s.prototype.contentFrom=function(t){if(!t||t instanceof i.TemplateRef)return{component:null,nodes:[[]]};t=this.createComponent(t);return{component:t,nodes:[t?[t.location.nativeElement]:[]]}},o.__decorate([i.Injectable(),o.__param(3,i.Inject(e.POPUP_CONTAINER)),o.__param(3,i.Optional()),o.__metadata("design:paramtypes",[i.ApplicationRef,i.ComponentFactoryResolver,i.Injector,i.ElementRef])],s));function s(t,e,n,o){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n,this.container=o}e.PopupService=n},function(t,e){t.exports=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(11),s=n(7),a=n(2),n=n(10),s=[s.PopupComponent],o=o.__decorate([i.NgModule({declarations:[s],entryComponents:[s],exports:[s],imports:[r.CommonModule,a.ResizeSensorModule],providers:[n.PopupService]})],p);function p(){}e.PopupModule=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646821120,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(t,e){t.exports=c},function(t,e){t.exports=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0),i=n(15),s={expand:function(t){var e="up"===t||"down"===t?"scaleY":"scaleX";return{start:{transform:e+"(0)",transformOrigin:"down"===t?"top":"left"===t?"right":"right"===t?"left":"bottom"},end:{transform:e+"(1)"}}},slide:function(t){var e="left"===t||"right"===t?"translateX":"translateY";return{start:{transform:e+"("+("right"===t||"down"===t?-100:100)+"%)"},end:{transform:e+"(0%)"}}},fade:function(){return{start:{opacity:0},end:{opacity:1}}},zoom:function(){return{start:{transform:"scale(0)"},end:{transform:"scale(1)"}}}},n=(a.prototype.play=function(t,e,n){if(!this.flip||this.flip.horizontal!==n.horizontal||this.flip.vertical!==n.vertical){this.flip=n;var o=e.type||"slide",i=s[o];if(i){i=i(this.getDirection(n,e));this.playStates(t,i,e)}else if(r.isDevMode())throw new Error('Unsupported animation type: "'+o+'". The supported types are slide, expand, fade and zoom.')}},a.prototype.ngOnDestroy=function(){this.stopPlayer()},a.prototype.playStates=function(t,e,n){var o=this,n=(this.stopPlayer(),n.duration||100),n=this.animationBuilder.build([i.style(e.start),i.animate(n+"ms ease-in",i.style(e.end))]),e=this.player=n.create(t);e.onDone(function(){o.end.emit(),o.stopPlayer()}),this.start.emit(),e.play()},a.prototype.getDirection=function(t,e){e=e.direction||"down";return t.horizontal&&("left"===e?e="right":"right"===e&&(e="left")),t.vertical&&("down"===e?e="up":"up"===e&&(e="down")),e},a.prototype.stopPlayer=function(){this.player&&(this.player.destroy(),this.player=null)},o.__decorate([r.Injectable(),o.__metadata("design:paramtypes",[i.AnimationBuilder])],a));function a(t){this.animationBuilder=t,this.start=new r.EventEmitter,this.end=new r.EventEmitter}e.AnimationService=n},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=e(1),i=e(0),p=e(5),c=e(8),l=e(2),r=e(4),u=e(3),e=(n.THRESHOLD_DIFF=1,s.prototype.forElement=function(t){return this.unsubscribe(),this.element=t,this},s.prototype.subscribe=function(i){var r,s,a=this;i&&l.isDocumentAvailable()&&this.element&&(r=this._dom.nativeElement(this.element),s=this._dom.scrollableParents(this.element),this._zone.runOutsideAngular(function(){var t=s.map(function(t){return p.fromEvent(t,"scroll").pipe(c.auditTime(u.FRAME_DURATION))});a.subscription=p.merge.apply(void 0,t).subscribe(function(t){var e=t.target,t=0<s.filter(function(t){return t===e}).length,n=e===document,o=e===window;(t||n||o)&&i(a.isVisible(r,e))})}))},s.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},s.prototype.isVisible=function(t,e){t=this._dom.boundingOffset(t),e=this._dom.boundingOffset(e);return!(n.THRESHOLD_DIFF<e.top-t.bottom||n.THRESHOLD_DIFF<t.top-e.bottom||n.THRESHOLD_DIFF<t.left-e.right||n.THRESHOLD_DIFF<e.left-t.right)},o.__decorate([i.Injectable(),o.__metadata("design:paramtypes",[r.DOMService,i.NgZone])],s));function s(t,e){this._dom=t,this._zone=e}n.ScrollableService=e},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(5),s=n(8),a=n(2),p=n(3),n=n(4),o=(c.prototype.subscribe=function(t){var e=this;a.isDocumentAvailable()&&this._zone.runOutsideAngular(function(){e.subscription=r.fromEvent(e._dom.getWindow(),"resize").pipe(s.auditTime(p.FRAME_DURATION)).subscribe(function(){return t()})})},c.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},c.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},o.__decorate([i.Injectable(),o.__metadata("design:paramtypes",[n.DOMService,i.NgZone])],c));function c(t,e){this._dom=t,this._zone=e}e.ResizeService=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(4),u=n(3),n=n(6),n=(s.prototype.positionElement=function(t){var e=t.anchor,n=t.currentLocation,o=t.element,i=t.anchorAlign,r=t.elementAlign,s=t.collisions,a=t.margin,p=this._dom,c=this.scale||1,l=p.offsetAtPoint(o,n),l=u.scaleRect(l,c),e=u.scaleRect(p.offset(e),c),e=u.eitherRect(e,n),t=t.viewPort||p.windowViewPort(o),o=(t.width=t.width/c,t.height=t.height/c,p.restrictToView({anchorAlign:i,anchorRect:e,collisions:s,elementAlign:r,elementRect:l,margin:a,viewPort:t})),c=p.addOffset(n,o.offset);return{flip:o.flip,flipped:o.flipped,offset:c}},o.__decorate([i.Injectable(),o.__param(1,i.Inject(n.SCALE)),o.__param(1,i.Optional()),o.__metadata("design:paramtypes",[r.DOMService,Number])],s));function s(t,e){void 0===e&&(e=1),this._dom=t,this.scale=e}e.PositionService=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(4),p=n(3),n=n(6),n=(s.prototype.alignElement=function(t){var e=t.anchor,n=t.element,o=t.anchorAlign,i=t.elementAlign,r=t.margin,s=t.offset,t=t.positionMode,a=this.scale||1,t="fixed"!==t&&this._dom.hasOffsetParent(n)?this.relativeRect(e,n,s,a):this.absoluteRect(e,n,s,a),e=p.scaleRect(this._dom.offset(n),a);return this._dom.align({anchorAlign:o,anchorRect:t,elementAlign:i,elementRect:e,margin:r})},s.prototype.absoluteRect=function(t,e,n,o){var i=this.elementScrollPosition(t,e),t=p.eitherRect(this._dom.offset(t),n),n=2*o,r=this._dom.stackingElementScroll(e),e=(1!==o&&r&&(r.x/=n,r.y/=n),this._dom.stackingElementOffset(e));return 1!==o&&e&&(e.left/=n,e.top/=n),this._dom.removeScroll(this._dom.addScroll(p.removeStackingOffset(p.scaleRect(t,o),e),r),i)},s.prototype.elementScrollPosition=function(t,e){return t?{x:0,y:0}:this._dom.scrollPosition(e)},s.prototype.relativeRect=function(t,e,n,o){t=p.eitherRect(this._dom.position(t,e,o),n);return p.scaleRect(t,o)},o.__decorate([i.Injectable(),o.__param(1,i.Inject(n.SCALE)),o.__param(1,i.Optional()),o.__metadata("design:paramtypes",[r.DOMService,Number])],s));function s(t,e){void 0===e&&(e=1),this._dom=t,this.scale=e}e.AlignService=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o,i=n(10),i=(e.PopupService=i.PopupService,e.POPUP_CONTAINER=i.POPUP_CONTAINER,n(7)),i=(e.PopupComponent=i.PopupComponent,n(12)),i=(e.PopupModule=i.PopupModule,n(6)),r=(e.SCALE=i.SCALE,e);for(o in r)s(o,r[o])}],i={},o.m=n,o.c=i,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},o.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=21)}}});
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Kendo UI Angular Popup component",
4
4
  "author": "Progress",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
- "version": "4.0.4",
6
+ "version": "4.0.6-dev.202203091019",
7
7
  "main": "dist/npm/index.js",
8
8
  "module": "dist/fesm5/index.js",
9
9
  "es2015": "dist/fesm2015/index.js",
@@ -63,7 +63,7 @@
63
63
  "@progress/kendo-angular-intl": "^3.0.0",
64
64
  "@progress/kendo-angular-jest-preset": "^2.0.0",
65
65
  "@progress/kendo-angular-l10n": "^3.0.0",
66
- "@progress/kendo-angular-tasks": "^18.0.2",
66
+ "@progress/kendo-angular-tasks": "18.1.2-cdn-bundle-v18.10",
67
67
  "@progress/kendo-angular-inputs": "^8.0.0",
68
68
  "@progress/kendo-angular-buttons": "^7.0.0",
69
69
  "@progress/kendo-drawing": "^1.5.12",